@cryptofi/core-ui 0.19.0 → 0.20.0
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/dist/index.js +5 -12
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.ts +27 -50
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{chakra as n,createMultiStyleConfigHelpers as r,defineStyle as i,defineStyleConfig as o,extendTheme as a,withDefaultColorScheme as c,useTheme as u,useBreakpoint as l,Portal as s,Text as f,Card as h,FormControl as p,Flex as d,FormLabel as y,Checkbox as v,FormErrorMessage as g,InputGroup as m,InputLeftElement as b,Input as w,InputRightElement as x,FormHelperText as O,Select as S,Tag as j,TagLeftIcon as A,TagLabel as M,TagRightIcon as P,TagCloseButton as E,Alert as k,AlertIcon as _,Box as T,AlertTitle as C,AlertDescription as D,CloseButton as N,Spinner as I}from"@chakra-ui/react";import B,{isValidElement as R,Children as L,PureComponent as $,cloneElement as z,forwardRef as H,useRef as Z,useImperativeHandle as U,useState as F,useCallback as q,useEffect as V,useMemo as W,createElement as Y,Component as X}from"react";const G=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12Zm0 22a10 10 0 1 1 10-10 10.011 10.011 0 0 1-10 10Z"}),e("path",{d:"M12 5.5a1 1 0 0 0-1 1v8a1 1 0 1 0 2 0v-8a1 1 0 0 0-1-1ZM13 18.5a1 1 0 1 0-2 0 1 1 0 0 0 2 0Z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),K=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m14.563 9.22-.915.947-3.02-3.125a2.542 2.542 0 0 0-1.785-.74c-.666 0-1.305.265-1.786.74l-.146.15a.846.846 0 0 1-.596.248.846.846 0 0 1-.595-.248L1.448 2.766A.842.842 0 0 0 .849 2.5a.817.817 0 0 0-.602.255A.874.874 0 0 0 0 3.38.898.898 0 0 0 .257 4l4.271 4.42c.482.476 1.121.741 1.787.741.665 0 1.305-.265 1.786-.74l.145-.151a.846.846 0 0 1 .596-.247c.222 0 .435.088.595.247l3.02 3.13-.914.947a.9.9 0 0 0-.183.95c.064.159.172.295.31.39a.821.821 0 0 0 .468.147h2.599c.335 0 .656-.137.893-.383a1.33 1.33 0 0 0 .37-.924V9.831a.893.893 0 0 0-.144-.482.849.849 0 0 0-.379-.319.816.816 0 0 0-.915.19Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h16v16H0z"})})})]}))),J=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M14.738 2H12.14a.822.822 0 0 0-.467.147.865.865 0 0 0-.31.39.898.898 0 0 0 .182.949l.914.945-3.018 3.121a.847.847 0 0 1-.595.247.847.847 0 0 1-.595-.247l-.144-.149a2.539 2.539 0 0 0-1.785-.74c-.665 0-1.304.265-1.785.74l-4.292 4.44a.889.889 0 0 0-.246.618c0 .232.09.454.248.617a.83.83 0 0 0 .598.255.83.83 0 0 0 .596-.256l4.292-4.44a.846.846 0 0 1 .595-.247c.222 0 .435.088.596.247l.143.149a2.54 2.54 0 0 0 1.785.74 2.54 2.54 0 0 0 1.785-.74l3.018-3.122.913.945a.815.815 0 0 0 .913.182.849.849 0 0 0 .376-.319.892.892 0 0 0 .142-.48V3.306a1.33 1.33 0 0 0-.37-.924A1.241 1.241 0 0 0 14.738 2Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{d:"M0 0h16v16H0z"})})})]}))),Q=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M24 23.5a1 1 0 0 1-1 1H1a1 1 0 0 1 0-2h22a1 1 0 0 1 1 1ZM.291 9.052a2.443 2.443 0 0 1 .153-2.566c.427-.627 1-1.141 1.668-1.5l7.501-3.904a5.174 5.174 0 0 1 4.774 0l7.5 3.907c.669.359 1.24.873 1.668 1.5a2.442 2.442 0 0 1 .153 2.566 2.712 2.712 0 0 1-2.416 1.445H21v8h1a1 1 0 1 1 0 2H2a1 1 0 0 1 0-2h1v-8h-.292A2.713 2.713 0 0 1 .291 9.052Zm4.71 9.448h3v-8H5v8Zm5-8v8h4v-8h-4Zm9 0h-3v8h3v-8ZM2.062 8.125a.717.717 0 0 0 .645.375h18.584a.717.717 0 0 0 .645-.375.451.451 0 0 0-.024-.5 2.699 2.699 0 0 0-.949-.864l-7.5-3.907a3.175 3.175 0 0 0-2.926 0l-7.5 3.907a2.712 2.712 0 0 0-.949.865.452.452 0 0 0-.026.5Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),tt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 23h18a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5V2a1 1 0 0 1 2 0v18a3 3 0 0 0 3 3Z"}),e("path",{d:"M6.707 20.707A1 1 0 0 1 5 20v-7a1 1 0 0 1 2 0v7a1 1 0 0 1-.293.707ZM10 11v9a1 1 0 1 0 2 0v-9a1 1 0 0 0-2 0ZM15 20v-6a1 1 0 0 1 2 0v6a1 1 0 1 1-2 0ZM20 10v10a1 1 0 1 0 2 0V10a1 1 0 0 0-2 0ZM6.707 9.707a1 1 0 1 1-1.414-1.414l3.586-3.586a3 3 0 0 1 4.242 0l2.172 2.17a1 1 0 0 0 1.414 0l5.586-5.584a1 1 0 0 1 1.414 1.414L18.12 8.293a3 3 0 0 1-4.242 0L11.707 6.12a1.025 1.025 0 0 0-1.414 0L6.707 9.707Z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),et=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M13.5 15a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM7 16.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM18.5 15a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"}),e("path",{fillRule:"evenodd",d:"M18 2h1a5.006 5.006 0 0 1 5 5v12a5.006 5.006 0 0 1-5 5H5a5.006 5.006 0 0 1-5-5V7a5.006 5.006 0 0 1 5-5h1V1a1 1 0 0 1 2 0v1h8V1a1 1 0 0 1 2 0v1ZM2.879 4.879A3 3 0 0 0 2 7v1h20V7a3 3 0 0 0-3-3H5a3 3 0 0 0-2.121.879Zm0 16.242A3 3 0 0 0 5 22h14a3 3 0 0 0 3-3v-9H2v9a3 3 0 0 0 .879 2.121Z",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),nt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m.292 7.861 8.17 8.17a5 5 0 0 0 7.08 0l8.17-8.17a1.004 1.004 0 1 0-1.42-1.42l-8.17 8.17a3 3 0 0 1-4.24 0l-8.17-8.17a1 1 0 0 0-1.42 0 1 1 0 0 0 0 1.42Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),rt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M17.17 24.5a1 1 0 0 1-.71-.29l-8.17-8.17a5 5 0 0 1 0-7.08L16.46.79a1.004 1.004 0 1 1 1.42 1.42l-8.17 8.17a3 3 0 0 0 0 4.24l8.17 8.17a1 1 0 0 1-.71 1.71Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),it=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M7 24.5a1 1 0 0 1-.71-1.71l8.17-8.17a3 3 0 0 0 0-4.24L6.29 2.21A1.004 1.004 0 0 1 7.71.79l8.17 8.17a5 5 0 0 1 0 7.08l-8.17 8.17a.999.999 0 0 1-.71.29Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ot=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.71 16.79-8.17-8.17a5 5 0 0 0-7.08 0L.29 16.79a1.004 1.004 0 1 0 1.42 1.42l8.17-8.17a3 3 0 0 1 4.24 0l8.17 8.17a1.002 1.002 0 0 0 1.64-.325 1.002 1.002 0 0 0-.22-1.095Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),at=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M11.033 5.145a.968.968 0 0 1 1.935 0v.944a6.485 6.485 0 0 1 3.618 1.827.968.968 0 0 1-1.37 1.369 4.547 4.547 0 0 0-3.215-1.332A4.534 4.534 0 0 0 7.452 12.5 4.534 4.534 0 0 0 12 17.05a4.55 4.55 0 0 0 3.209-1.339.967.967 0 0 1 1.372 1.367 6.486 6.486 0 0 1-3.612 1.833v.946a.967.967 0 1 1-1.935 0v-.944c-3.114-.47-5.516-3.17-5.516-6.41 0-3.241 2.402-5.942 5.516-6.412v-.945Z"}),e("path",{fillRule:"evenodd",d:"M12 .5C5.384.5 0 5.884 0 12.5s5.384 12 12 12 12-5.384 12-12-5.384-12-12-12Zm0 1.936A10.05 10.05 0 0 1 22.064 12.5 10.05 10.05 0 0 1 12 22.564 10.05 10.05 0 0 1 1.936 12.5 10.05 10.05 0 0 1 12 2.436Z",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ct=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M22.319 4.931 8.499 18.75a1.001 1.001 0 0 1-1.416 0L1.739 13.4a1 1 0 0 0-1.417 0 1 1 0 0 0 0 1.417l5.346 5.345a3.008 3.008 0 0 0 4.25 0L23.736 6.347a1 1 0 0 0-.709-1.71 1 1 0 0 0-.708.294Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ut=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 3.5h-6.528a1.019 1.019 0 0 1-.447-.1L8.869 1.816A3.014 3.014 0 0 0 7.528 1.5H5a5.006 5.006 0 0 0-5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-10a5.006 5.006 0 0 0-5-5Zm-14 0h2.528c.155 0 .308.033.447.1l3.156 1.58c.416.208.875.318 1.341.32H19a3 3 0 0 1 2.779 1.882L2 7.494V6.5a3 3 0 0 1 3-3Zm14 18H5a3 3 0 0 1-3-3V9.494l20-.113v9.12a3 3 0 0 1-3 3Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),lt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23.707.793a1 1 0 0 0-1.414 0L12 11.086 1.707.793a1 1 0 0 0-1.414 0 1 1 0 0 0 0 1.414L10.586 12.5.293 22.793a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0L12 13.914l10.293 10.293a1 1 0 0 0 1.414-1.414L13.414 12.5 23.707 2.207a1 1 0 0 0 0-1.414Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),st=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M21.736 16.9A5.009 5.009 0 0 0 17 13.5h-4v-1.084a6 6 0 1 0-2 0V13.5H7a5.01 5.01 0 0 0-4.736 3.4 4 4 0 1 0 2.447-.334A3 3 0 0 1 7 15.5h4v1.127a4 4 0 1 0 2 0V15.5h4a3 3 0 0 1 2.289 1.063 4 4 0 1 0 2.447.334v.003ZM8 6.5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm-2 14a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm8 0a2 2 0 1 1-4.001 0 2 2 0 0 1 4 0Zm6 2a2 2 0 1 1 0-4 2 2 0 0 1 0 4Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ft=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13 20.5a5.006 5.006 0 0 0 5-5V6.743a3.97 3.97 0 0 0-1.172-2.829l-2.242-2.242A3.972 3.972 0 0 0 11.757.5H7a5.006 5.006 0 0 0-5 5v10a5.006 5.006 0 0 0 5 5h6Zm-9-5v-10a3 3 0 0 1 3-3s4.92.014 5 .024V4.5a2 2 0 0 0 2 2h1.976c.01.081.024 9 .024 9a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3Zm18-7v11a5.005 5.005 0 0 1-5 5H8a1 1 0 0 1 0-2h9a3 3 0 0 0 3-3v-11a1 1 0 0 1 2 0Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ht=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13.932 4.5A3.071 3.071 0 0 1 17 7.568a1 1 0 0 0 2 0v-.123A5.073 5.073 0 0 0 13.932 2.5H13v-1a1 1 0 1 0-2 0v1h-.932a5.068 5.068 0 0 0-1.6 9.875L11 13.22v7.28h-.932A3.071 3.071 0 0 1 7 17.432a1 1 0 1 0-2 0v.123a5.073 5.073 0 0 0 5.068 4.945H11v1a1 1 0 0 0 2 0v-1h.932a5.068 5.068 0 0 0 1.6-9.875L13 11.78V4.5h.932Zm.97 10.021a3.068 3.068 0 0 1-.97 5.979H13v-6.613l1.902.634ZM11 11.113l-1.9-.634a3.068 3.068 0 0 1 .968-5.979H11v6.613Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),pt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M10.852 19.273a3 3 0 0 1-.974-.651l-3.21-3.207A1 1 0 0 1 8.08 14l2.91 2.908.01-15.408a1 1 0 0 1 2 0l-.008 15.427L15.92 14a1 1 0 0 1 1.414 1.411l-3.21 3.211a3 3 0 0 1-3.271.65Z"}),e("path",{d:"M22.293 16.793A1 1 0 0 1 24 17.5v4a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-4a1 1 0 1 1 2 0v4a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-4a1 1 0 0 1 .293-.707Z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),dt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{fillRule:"evenodd",d:"M18.67 1.387 6.469 13.602a4.975 4.975 0 0 0-1.465 3.541v1.346a1.002 1.002 0 0 0 1 1.002H7.35a4.963 4.963 0 0 0 3.537-1.467l12.2-12.215a3.133 3.133 0 0 0 0-4.422 3.195 3.195 0 0 0-4.416 0Zm.18 5.83-9.379 9.39a3.02 3.02 0 0 1-2.122.88h-.344v-.344c.002-.796.318-1.56.879-2.125l9.378-9.39 1.588 1.59Zm1.415-1.416 1.407-1.409a1.126 1.126 0 0 0 0-1.589 1.148 1.148 0 0 0-1.587 0l-1.407 1.409 1.587 1.589Z",clipRule:"evenodd"}),e("path",{d:"M0 23.498c0-.553.373-1.002.834-1.002H19.18c.46 0 .834.449.834 1.002 0 .553-.373 1.002-.834 1.002H.834c-.46 0-.834-.449-.834-1.002Z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),yt=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M20.914 17.62a4.966 4.966 0 0 0 1.621-1.084A4.969 4.969 0 0 0 24 12.996V2a1 1 0 0 0-2 0v10.997a2.999 2.999 0 0 1-3 2.999H2.788L7.1 11.688a1.001 1.001 0 1 0-1.418-1.414l-4.95 4.95a2.499 2.499 0 0 0 0 3.534l4.95 4.948A1 1 0 0 0 7.1 22.294l-4.3-4.299H19a4.967 4.967 0 0 0 1.914-.376Z"})}))),vt=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M3.086 17.62a4.965 4.965 0 0 1-1.621-1.084A4.969 4.969 0 0 1 0 12.996V2a1 1 0 0 1 2 0v10.997a2.999 2.999 0 0 0 3 2.999h16.212L16.9 11.688a1.003 1.003 0 0 1 .002-1.416 1 1 0 0 1 1.416.002l4.95 4.95a2.499 2.499 0 0 1 0 3.534l-4.95 4.948a1 1 0 0 1-1.418-1.412l4.3-4.299H5a4.968 4.968 0 0 1-1.914-.376Z"})}))),gt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M23.41 5.094c.373.372.585.875.59 1.401a2.002 2.002 0 0 1-.59 1.412l-4.29 4.303a1 1 0 1 1-1.41-1.421L21 7.496H11a1 1 0 0 1 0-2.001h10l-3.29-3.283A1.002 1.002 0 0 1 19.12.791l4.29 4.303ZM3 17.504h10a1 1 0 0 1 .707 1.708 1 1 0 0 1-.707.294H3l3.29 3.282a1.002 1.002 0 0 1-1.41 1.421L.59 19.906A2.002 2.002 0 0 1 0 18.505c.002-.53.214-1.038.59-1.411l4.29-4.304a1 1 0 0 1 1.629 1.096 1 1 0 0 1-.219.325L3 17.504Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),mt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M14 24.5a1 1 0 0 1-.6-.2l-4-3a1 1 0 0 1-.4-.8v-5.62L1.984 6.987A3.9 3.9 0 0 1 4.9.5h14.2a3.9 3.9 0 0 1 2.913 6.488L15 14.88v8.62a1 1 0 0 1-1 1ZM11 20l2 1.5v-7a1 1 0 0 1 .253-.664l7.268-8.177A1.9 1.9 0 0 0 19.1 2.5H4.9a1.9 1.9 0 0 0-1.421 3.158l7.269 8.178A1 1 0 0 1 11 14.5V20Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),bt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12.717 5.563A4 4 0 0 0 8 9.5a1 1 0 1 0 2 0 2.002 2.002 0 0 1 2.371-1.967 2.024 2.024 0 0 1 1.6 1.595 2 2 0 0 1-1 2.125 3.954 3.954 0 0 0-1.97 3.504v.743a1 1 0 0 0 2 0v-.743a1.982 1.982 0 0 1 .93-1.752 4 4 0 0 0-1.214-7.442ZM12 17.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"}),e("path",{fillRule:"evenodd",d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12Zm0 22a10 10 0 1 1 10-10 10.011 10.011 0 0 1-10 10Z",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),wt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",fillRule:"evenodd",d:"M22.293 11.793A1 1 0 0 1 24 12.5a11.994 11.994 0 1 1-4-8.935V1.5a1 1 0 1 1 2 0v3a3 3 0 0 1-3 3h-3a1 1 0 1 1 0-2h3a.864.864 0 0 0 .1-.021A10.034 10.034 0 1 0 22 12.5a1 1 0 0 1 .293-.707Zm-11-5A1 1 0 0 1 13 7.5v4.586l2.707 2.707a1 1 0 0 1-1.414 1.414l-3-3A1 1 0 0 1 11 12.5v-5a1 1 0 0 1 .293-.707Z",clipRule:"evenodd"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),xt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.121 9.569-7.585-7.586a5.008 5.008 0 0 0-7.072 0L.88 9.569A2.978 2.978 0 0 0 0 11.689v9.818a3 3 0 0 0 3 3h18a3 3 0 0 0 3-3V11.69a2.978 2.978 0 0 0-.879-2.121Zm-8.12 12.938H9v-3.934a3 3 0 0 1 6 0v3.934Zm7-1a1 1 0 0 1-1 1h-4v-3.934a5 5 0 0 0-10 0v3.934H3a1 1 0 0 1-1-1V11.69c0-.265.105-.52.292-.707L9.878 3.4a3.008 3.008 0 0 1 4.244 0l7.585 7.586c.186.187.291.44.293.704v9.817Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ot=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M6.41 9.5h11.18a1 1 0 0 1 .7 1.71l-5.58 5.58a1 1 0 0 1-1.42 0l-5.58-5.58a1 1 0 0 1 .7-1.71Z"})}))),St=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M6.41 16.5h11.18a1 1 0 0 0 .7-1.71l-5.58-5.58a1 1 0 0 0-1.42 0l-5.58 5.58a1 1 0 0 0 .7 1.71Z"})}))),jt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12 10.5h-1a1 1 0 0 0 0 2h1v6a1 1 0 1 0 2 0v-6a2 2 0 0 0-2-2ZM13.5 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0Z"}),e("path",{fillRule:"evenodd",d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12Zm0 22a10 10 0 1 1 10-10 10.011 10.011 0 0 1-10 10Z",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),At=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 1.5H5a5.006 5.006 0 0 0-5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-12a5.006 5.006 0 0 0-5-5Zm-14 2h14a3 3 0 0 1 2.78 1.887l-7.658 7.659a3.007 3.007 0 0 1-4.244 0L2.22 5.386A3 3 0 0 1 5 3.5Zm14 18H5a3 3 0 0 1-3-3V8l6.464 6.46a5.007 5.007 0 0 0 7.072 0L22 8v10.5a3 3 0 0 1-3 3Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Mt=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M23 4.5H1a1 1 0 1 0 0 2h22a1 1 0 1 0 0-2ZM23 11.5H1a1 1 0 1 0 0 2h22a1 1 0 1 0 0-2ZM1 18.5h22a1 1 0 1 1 0 2H1a1 1 0 1 1 0-2Z"})}))),Pt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M2 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM12 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM24 12.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Et=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m22.555 14.162-1.9-6.836A9.321 9.321 0 0 0 2.576 7.8l-1.471 6.615A5 5 0 0 0 5.986 20.5H7.1a5 5 0 0 0 9.8 0h.838a5 5 0 0 0 4.818-6.338h-.001ZM12 22.5a2.999 2.999 0 0 1-2.816-2h5.632a3 3 0 0 1-2.816 2Zm8.126-5.185a2.977 2.977 0 0 1-2.389 1.185H5.986a2.999 2.999 0 0 1-2.928-3.651l1.47-6.616a7.321 7.321 0 0 1 14.2-.372l1.9 6.836a2.978 2.978 0 0 1-.502 2.618Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),kt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23.9 11.946a11.988 11.988 0 0 0-4.279-7.717 12.006 12.006 0 0 0-16.385 1.07A11.985 11.985 0 0 0 0 13.508a11.86 11.86 0 0 0 3.759 8.705A4.842 4.842 0 0 0 7.113 23.5h9.767a4.996 4.996 0 0 0 3.509-1.428 11.933 11.933 0 0 0 3.51-10.126Zm-4.91 8.693a3.001 3.001 0 0 1-2.11.862H7.113c-.73.015-1.44-.25-1.981-.74A9.892 9.892 0 0 1 2 13.508a9.999 9.999 0 0 1 3.338-7.451 9.885 9.885 0 0 1 6.648-2.541 9.999 9.999 0 0 1 9.479 6.758 9.98 9.98 0 0 1-2.474 10.37v-.005Zm-11.183-2.85a1 1 0 1 1-1.4 1.429 7.992 7.992 0 0 1 6.736-13.623 1 1 0 0 1 .72 1.502.988.988 0 0 1-1.006.477 6.004 6.004 0 0 0-6.228 3.28 5.991 5.991 0 0 0 1.178 6.935Zm12.112-5.424c.054.379.08.76.08 1.143a7.918 7.918 0 0 1-2.407 5.711 1.002 1.002 0 0 1-1.4-1.43 5.974 5.974 0 0 0 1.744-5.138 1 1 0 0 1 1.59-.944 1 1 0 0 1 .39.659h.003Zm-5.993.631a2.03 2.03 0 0 1-2.22 2.559 2.033 2.033 0 0 1-1.495-3.039 2.033 2.033 0 0 1 2.3-.933l3.782-3.778a1 1 0 1 1 1.414 1.413l-3.781 3.778Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),_t=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("path",{fill:"#000",d:"M22.707 1.793a1 1 0 0 1 0 1.414l-20 20a1 1 0 0 1-1.414-1.414l20-20a1 1 0 0 1 1.414 0Z"}),e("path",{fill:"#000",fillRule:"evenodd",d:"M6 10.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0-6a2 2 0 1 1 0 4 2 2 0 0 1 0-4ZM15.778 15.174a4 4 0 1 1 4.444 6.653 4 4 0 0 1-4.444-6.653Zm1.11 4.99a2 2 0 1 0 2.223-3.327 2 2 0 0 0-2.222 3.326Z",clipRule:"evenodd"})]}))),Tt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",fillRule:"evenodd",clipPath:"url(#a)",clipRule:"evenodd",children:[e("path",{d:"M21.057 3.47a10.073 10.073 0 0 1 2.594 4.476 2.009 2.009 0 0 1-1.913 2.554H17.02a3 3 0 0 1-3-3V2.8a2 2 0 0 1 2.02-2 2.1 2.1 0 0 1 .543.072 10.073 10.073 0 0 1 4.475 2.598ZM17.015 8.5h4.72a8.072 8.072 0 0 0-5.677-5.702h-.026a.048.048 0 0 0-.025.01l.008 4.692a1 1 0 0 0 1 1Z"}),e("path",{d:"M14 12.5h4.713a3.056 3.056 0 0 1 2.394 1.172 2.876 2.876 0 0 1 .533 2.485A11 11 0 0 1 8.906 24.27a10.969 10.969 0 0 1-.553-21.414 2.871 2.871 0 0 1 2.48.534A2.998 2.998 0 0 1 12 5.774V10.5a2 2 0 0 0 2 2Zm3.425 7.26a8.968 8.968 0 0 0 2.276-4.092.884.884 0 0 0-.167-.768 1.041 1.041 0 0 0-.816-.4h-4.712a4 4 0 0 1-4-4V5.778a1.016 1.016 0 0 0-.4-.806.87.87 0 0 0-.764-.172 8.97 8.97 0 1 0 8.583 14.96Z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ct=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23 11.5H13v-10a1 1 0 0 0-1-1 1 1 0 0 0-1 1v10H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h10v10a1 1 0 0 0 2 0v-10h10a1 1 0 0 0 0-2Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Dt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 3.522V1.5a1 1 0 0 0-2 0v1.1a5 5 0 0 0-1-.1h-1v-1a1 1 0 0 0-2 0v1h-2v-1a1 1 0 0 0-2 0v1H8a5 5 0 0 0-1 .1V1.5a1 1 0 0 0-2 0v2.022A4.979 4.979 0 0 0 3 7.5v12a5.006 5.006 0 0 0 5 5h8a5.006 5.006 0 0 0 5-5v-12a4.978 4.978 0 0 0-2-3.978ZM19 19.5a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3v-12a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v12Zm-2-11a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h8a1 1 0 0 1 1 1Zm0 4a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h8a1 1 0 0 1 1 1Zm-4 4a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h4a1 1 0 0 1 1 1Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Nt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M18.581 2.64 12.316.551a1 1 0 0 0-.632 0l-6.265 2.09A4.993 4.993 0 0 0 2 7.382V12.5c0 7.563 9.2 11.74 9.594 11.914a1 1 0 0 0 .812 0C12.8 24.24 22 20.064 22 12.5V7.383a4.993 4.993 0 0 0-3.419-4.743Zm-1.863 7.577-4.272 4.272a1.874 1.874 0 0 1-1.335.553h-.033a1.871 1.871 0 0 1-1.345-.6l-2.306-2.4a1 1 0 1 1 1.441-1.382L11.112 13 15.3 8.8a1 1 0 0 1 1.414 1.414l.004.003Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),It=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M18.581 2.64 12.316.551a1 1 0 0 0-.632 0l-6.266 2.09A4.993 4.993 0 0 0 2 7.382V12.5c0 7.563 9.2 11.74 9.594 11.914a1 1 0 0 0 .812 0C12.8 24.24 22 20.064 22 12.5V7.383a4.993 4.993 0 0 0-3.419-4.743ZM12 19.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm1-5a1 1 0 1 1-2 0v-8a1 1 0 0 1 2 0v8Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Bt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.707 22.794-5.97-5.97a10.016 10.016 0 1 0-1.413 1.415l5.969 5.969a1 1 0 0 0 1.414-1.414ZM10 18.5a8 8 0 1 1 8-8 8.009 8.009 0 0 1-8 8Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Rt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",fillRule:"evenodd",clipPath:"url(#a)",clipRule:"evenodd",children:[e("path",{d:"M9.778 9.175a4 4 0 1 1 4.444 6.652 4 4 0 0 1-4.444-6.652Zm1.11 4.989a2 2 0 1 0 2.223-3.325 2 2 0 0 0-2.222 3.325Z"}),e("path",{d:"m20.85 14.144.444.256.001-.001a3.002 3.002 0 1 1-3 5.2l-.447-.258A8.976 8.976 0 0 1 15 20.987v.513a3 3 0 1 1-6 0v-.513a8.976 8.976 0 0 1-2.85-1.642l-.445.257a3.002 3.002 0 0 1-3-5.2l.444-.256a9.1 9.1 0 0 1 0-3.29l-.444-.256a3.002 3.002 0 1 1 3-5.2l.447.259A8.977 8.977 0 0 1 9 4.013V3.5a3 3 0 1 1 6 0v.513a8.976 8.976 0 0 1 2.849 1.642l.445-.257a3.002 3.002 0 0 1 3 5.2l-.444.256a9.1 9.1 0 0 1 0 3.29Zm-2.104.23a7.047 7.047 0 0 0 0-3.75v.001a1 1 0 0 1 .463-1.129l1.084-.626a1 1 0 1 0-1-1.732l-1.084.627a1 1 0 0 1-1.215-.165 6.983 6.983 0 0 0-3.243-1.879A1 1 0 0 1 13 4.752V3.5a1 1 0 1 0-2 0v1.252a1 1 0 0 1-.751.973A6.984 6.984 0 0 0 7.006 7.6a1 1 0 0 1-1.214.161l-1.086-.628a1 1 0 1 0-1 1.733l1.084.626a1 1 0 0 1 .465 1.129 7.048 7.048 0 0 0 0 3.75 1 1 0 0 1-.464 1.133l-1.084.626a1 1 0 1 0 1 1.732l1.084-.627a1 1 0 0 1 1.215.165c.89.91 2.01 1.56 3.242 1.879a1 1 0 0 1 .751.969V21.5a1 1 0 0 0 2 0v-1.253a1 1 0 0 1 .751-.969 6.983 6.983 0 0 0 3.243-1.875 1 1 0 0 1 1.215-.165l1.086.628a1 1 0 0 0 1-1.733l-1.084-.626a1 1 0 0 1-.464-1.133Z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Lt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M4 7.483a2.98 2.98 0 0 1-2.121-.88L.335 5.228a1.002 1.002 0 0 1 1.332-1.496l1.585 1.416a1 1 0 0 0 1.456.04l3.604-3.435a1 1 0 0 1 1.378 1.45L6.1 6.62a2.964 2.964 0 0 1-2.1.863Zm20-2.002a1.002 1.002 0 0 0-1-1H13a1 1 0 0 0-.706 1.708 1 1 0 0 0 .707.293h10a1 1 0 0 0 1-1ZM6.1 14.63l3.59-3.418a1 1 0 1 0-1.378-1.45l-3.6 3.435a1.022 1.022 0 0 1-1.414 0l-1.59-1.586a1 1 0 0 0-1.695.711c-.002.263.099.515.28.704l1.586 1.587a2.998 2.998 0 0 0 4.226.017H6.1Zm17.9-1.14a1.002 1.002 0 0 0-1-1H13a1 1 0 0 0-1 1 1.002 1.002 0 0 0 1 1.002h10a1 1 0 0 0 1-1.001ZM6.1 22.638l3.586-3.417a1.001 1.001 0 1 0-1.378-1.45l-3.6 3.435a1 1 0 0 1-1.456-.04l-1.585-1.416a1 1 0 0 0-1.665.805c.015.266.135.514.333.69l1.544 1.376a2.999 2.999 0 0 0 4.226.017H6.1ZM24 21.498a1.002 1.002 0 0 0-1-1.001H13a1 1 0 0 0-.706 1.709 1 1 0 0 0 .707.293h10a1 1 0 0 0 1-1.001Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),$t=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 22.5h2a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5v-14a5.006 5.006 0 0 1 5-5h2a1 1 0 0 1 0 2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3Z"}),e("path",{d:"M7.223 11.532 23 11.5a1 1 0 0 1 0 2l-15.744.032c.081.139.179.267.29.382l3.88 3.88a1 1 0 1 1-1.414 1.413l-3.88-3.879a4 4 0 0 1 0-5.656l3.882-3.879a1 1 0 1 1 1.414 1.414l-3.88 3.88a2.017 2.017 0 0 0-.325.445Z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),zt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 22.5h2a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5v-14a5.006 5.006 0 0 1 5-5h2a1 1 0 0 1 0 2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3Z"}),e("path",{d:"m18.95 5.792 3.879 3.88h-.004a4 4 0 0 1 0 5.655l-3.88 3.88a1 1 0 1 1-1.413-1.415l3.879-3.879c.133-.137.245-.293.334-.462-.013.001-.024.005-.036.008a.145.145 0 0 1-.042.008L5.989 13.5a1 1 0 0 1 0-2l15.684-.032c.007 0 .014.002.02.004a.072.072 0 0 0 .022.004 2.062 2.062 0 0 0-.3-.39l-3.88-3.879a1 1 0 0 1 1.415-1.414Z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ht=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M6.365 6.416a.5.5 0 0 1-.278.084H4.294v12h1.793a.5.5 0 0 1 .353.854L4 21.794a1 1 0 0 1-1.414 0l-2.44-2.44A.5.5 0 0 1 .5 18.5h1.794v-12H.5a.5.5 0 0 1-.353-.854l2.439-2.439a1 1 0 0 1 1.414 0l2.44 2.44a.5.5 0 0 1-.075.769ZM23 6.5H10a1 1 0 0 1 0-2h13a1 1 0 1 1 0 2ZM10 11.5h13a1 1 0 0 1 0 2H10a1 1 0 0 1 0-2ZM23 18.5H10a1 1 0 0 0 0 2h13a1 1 0 1 0 0-2Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Zt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13 1.5v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 2 0Zm-1 19a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1Zm-8-8a1 1 0 0 0-1-1H1a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1Zm19-1h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2Zm-4.982-9.382a1 1 0 0 0-1.367.364l-1 1.731a1 1 0 0 0 1.731 1.001l1-1.731a1 1 0 0 0-.364-1.365ZM7.987 19.421a1 1 0 0 0-1.366.364l-1 1.731a1 1 0 1 0 1.731 1.001l1-1.731a1 1 0 0 0-.365-1.365Zm-3.272-12.3-1.731-1a1 1 0 0 0-1 1.731l1.731 1a1 1 0 0 0 1-1.731Zm17.3 10.03-1.731-1a1 1 0 0 0-1 1.731l1.731 1a1 1 0 1 0 1-1.731ZM7.349 2.482a1 1 0 0 0-1.731 1l1 1.731a1 1 0 1 0 1.731-1.001l-1-1.73Zm10.03 17.3a1 1 0 0 0-1.731 1l1 1.731a1 1 0 0 0 1.731-1l-1-1.731Zm2.408-10.8a1 1 0 0 0 .5-.134l1.731-1a1 1 0 0 0-1-1.731l-1.731 1a1 1 0 0 0 .5 1.865ZM3.713 16.148l-1.731 1a1 1 0 1 0 1 1.731l1.731-1a1 1 0 0 0-1-1.731Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ut=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M21 12.924V11.5a9 9 0 0 0-18 0v1.424A5 5 0 0 0 5 22.5a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2v-1a7 7 0 0 1 14 0v1a2 2 0 0 0-2 2v6h-3a1 1 0 0 0 0 2h5a5 5 0 0 0 2-9.576ZM5 20.5a3 3 0 1 1 0-6v6Zm14 0v-6a3 3 0 0 1 0 6Z"})}))),Ft=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M10 18.5a1 1 0 0 0 1-1v-6a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1ZM14.707 18.207A1 1 0 0 1 13 17.499v-6a1 1 0 1 1 2 0v6a1 1 0 0 1-.293.707Z"}),e("path",{fillRule:"evenodd",d:"M21 4.5h-3.1a5.01 5.01 0 0 0-4.9-4h-2a5.009 5.009 0 0 0-4.9 4H3a1 1 0 0 0 0 2h1v13a5.006 5.006 0 0 0 5 5h6a5.006 5.006 0 0 0 5-5v-13h1a1 1 0 1 0 0-2Zm-10-2h2a3.006 3.006 0 0 1 2.829 2H8.171A3.006 3.006 0 0 1 11 2.5Zm7 17a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3v-13h12v13Z",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),qt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"m11 18.516.007-15.438L8.08 6.005a1 1 0 0 1-1.414-1.414l3.21-3.212a3 3 0 0 1 4.245 0l3.21 3.215a1 1 0 0 1-1.413 1.414l-2.912-2.913L13 18.516a1 1 0 1 1-2 0Z"}),e("path",{d:"M22 21.5v-4a1 1 0 0 1 2 0v4a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-4a1 1 0 0 1 2 0v4a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1Z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Vt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M12 13a6 6 0 1 0 0-12 6 6 0 0 0 0 12Zm0-10a4 4 0 1 1 0 8 4 4 0 0 1 0-8ZM12 15a9.01 9.01 0 0 0-9 9 1 1 0 0 0 2 0 7 7 0 1 1 14 0 1 1 0 0 0 2 0 9.01 9.01 0 0 0-9-9Z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Wt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1503 1504","aria-hidden":"true",...n,children:[e("path",{fill:"#fff",d:"M287 258h928v844H287z"}),e("path",{fill:"#E84142",fillRule:"evenodd",d:"M1502.5 752c0 414.77-336.23 751-751 751-414.766 0-751-336.23-751-751C.5 337.234 336.734 1 751.5 1c414.77 0 751 336.234 751 751Zm-963.812 298.86H392.94c-30.626 0-45.754 0-54.978-5.9-9.963-6.46-16.051-17.16-16.789-28.97-.554-10.88 7.011-24.168 22.139-50.735l359.87-634.32c15.313-26.936 23.061-40.404 32.839-45.385 10.516-5.35 23.062-5.35 33.578 0 9.778 4.981 17.527 18.449 32.839 45.385l73.982 129.144.377.659c16.539 28.897 24.926 43.551 28.588 58.931a109.562 109.562 0 0 1 0 51.289c-3.69 15.497-11.992 30.257-28.781 59.591L687.573 964.702l-.489.856c-16.648 29.135-25.085 43.902-36.778 55.042-12.73 12.18-28.043 21.03-44.832 26.02-15.313 4.24-32.47 4.24-66.786 4.24Zm368.062 0h208.84c30.81 0 46.31 0 55.54-6.08 9.96-6.46 16.23-17.35 16.79-29.15.53-10.53-6.87-23.3-21.37-48.323-.5-.852-1-1.719-1.51-2.601L1060.43 785.75l-1.19-2.015c-14.7-24.858-22.12-37.411-31.65-42.263a36.734 36.734 0 0 0-33.391 0c-9.594 4.981-17.342 18.08-32.655 44.462L857.306 964.891l-.357.616c-15.259 26.34-22.885 39.503-22.335 50.303.738 11.81 6.826 22.69 16.788 29.15 9.041 5.9 24.538 5.9 55.348 5.9Z",clipRule:"evenodd"})]}))),Yt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 788 788","aria-hidden":"true",...n,children:[e("circle",{cx:394,cy:394,r:394,style:{fill:"#0ac18e"}}),e("path",{d:"M516.9 261.7c-19.8-44.9-65.3-54.5-121-45.2L378 147.1 335.8 158l17.6 69.2c-11.1 2.8-22.5 5.2-33.8 8.4L302 166.8l-42.2 10.9 17.9 69.4c-9.1 2.6-85.2 22.1-85.2 22.1l11.6 45.2s31-8.7 30.7-8c17.2-4.5 25.3 4.1 29.1 12.2l49.2 190.2c.6 5.5-.4 14.9-12.2 18.1.7.4-30.7 7.9-30.7 7.9l4.6 52.7s75.4-19.3 85.3-21.8l18.1 70.2 42.2-10.9-18.1-70.7c11.6-2.7 22.9-5.5 33.9-8.4l18 70.3 42.2-10.9-18.1-70.1c65-15.8 110.9-56.8 101.5-119.5-6-37.8-47.3-68.8-81.6-72.3 21.1-18.7 31.8-46 18.7-81.7zm-20.3 165.5c8.4 62.1-77.9 69.7-106.4 77.2l-24.8-92.9c28.6-7.5 117-39 131.2 15.7zm-52-126.5c8.9 55.2-64.9 61.6-88.7 67.7l-22.6-84.3c23.9-5.9 93.2-34.5 111.3 16.6z",style:{fill:"#fff"}})]}))),Xt=n((n=>e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 4091.27 4091.73","aria-hidden":"true",...n,children:t("g",{fillRule:"nonzero",children:[e("path",{fill:"#F7931A",d:"M4030.06 2540.77C3756.82 3636.78 2646.74 4303.79 1550.6 4030.48 454.92 3757.24-212.09 2647.09 61.27 1551.17c273.12-1096.13 1383.2-1763.19 2479-1489.95C3636.33 334.46 4303.3 1444.73 4030.03 2540.79l.02-.02z"}),e("path",{fill:"#fff",d:"M2947.77 1754.38c40.72-272.26-166.56-418.61-450-516.24l91.95-368.8-224.5-55.94-89.51 359.09c-59.02-14.72-119.63-28.59-179.87-42.34L2186 768.69l-224.36-55.94-92 368.68c-48.84-11.12-96.81-22.11-143.35-33.69l.26-1.16-309.59-77.31-59.72 239.78s166.56 38.18 163.05 40.53c90.91 22.69 107.35 82.87 104.62 130.57l-104.74 420.15c6.26 1.59 14.38 3.89 23.34 7.49-7.49-1.86-15.46-3.89-23.73-5.87l-146.81 588.57c-11.11 27.62-39.31 69.07-102.87 53.33 2.25 3.26-163.17-40.72-163.17-40.72l-111.46 256.98 292.15 72.83c54.35 13.63 107.61 27.89 160.06 41.3l-92.9 373.03 224.24 55.94 92-369.07c61.26 16.63 120.71 31.97 178.91 46.43l-91.69 367.33 224.51 55.94 92.89-372.33c382.82 72.45 670.67 43.24 791.83-303.02 97.63-278.78-4.86-439.58-206.26-544.44 146.69-33.83 257.18-130.31 286.64-329.61l-.07-.05zm-512.93 719.26c-69.38 278.78-538.76 128.08-690.94 90.29l123.28-494.2c152.17 37.99 640.17 113.17 567.67 403.91zm69.43-723.3c-63.29 253.58-453.96 124.75-580.69 93.16l111.77-448.21c126.73 31.59 534.85 90.55 468.94 355.05h-.02z"})]})}))),Gt=n((n=>e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 784.37 1277.39","aria-hidden":"true",...n,children:t("g",{fillRule:"nonzero",children:[e("path",{fill:"#343434",d:"m392.07 0-8.57 29.11v844.63l8.57 8.55 392.06-231.75z"}),e("path",{fill:"#8C8C8C",d:"M392.07 0 0 650.54l392.07 231.75V472.33z"}),e("path",{fill:"#3C3C3B",d:"m392.07 956.52-4.83 5.89v300.87l4.83 14.1 392.3-552.49z"}),e("path",{fill:"#8C8C8C",d:"M392.07 1277.38V956.52L0 724.89z"}),e("path",{fill:"#141414",d:"m392.07 882.29 392.06-231.75-392.06-178.21z"}),e("path",{fill:"#393939",d:"m0 650.54 392.07 231.75V472.33z"})]})}))),Kt=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 37.8 43.6","aria-hidden":"true",...t,children:e("g",{"data-name":"Layer 2",children:e("path",{d:"m18.9 0-4 2.3L4 8.6l-4 2.3v21.8L4 35l11 6.3 4 2.3 4-2.3L33.8 35l4-2.3V10.9l-4-2.3-10.9-6.3ZM8 28.1V15.5l10.9-6.3 10.9 6.3v12.6l-10.9 6.3Z","data-name":"Layer 1",style:{fill:"#2a5ada"}})})}))),Jt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 82.6 82.6","aria-hidden":"true",...n,children:[e("circle",{cx:41.3,cy:41.3,r:36.83,style:{fill:"#fff"}}),e("path",{d:"M41.3 0a41.3 41.3 0 1 0 41.3 41.3A41.18 41.18 0 0 0 41.54 0Zm.7 42.7-4.3 14.5h23a1.16 1.16 0 0 1 1.2 1.12v.38l-2 6.9a1.49 1.49 0 0 1-1.5 1.1H23.2l5.9-20.1-6.6 2L24 44l6.6-2 8.3-28.2a1.51 1.51 0 0 1 1.5-1.1h8.9a1.16 1.16 0 0 1 1.2 1.12v.38l-7 23.8 6.6-2-1.4 4.8Z",style:{fill:"#345d9d"}})]}))),Qt=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 236.36 200","aria-hidden":"true",...t,children:e("g",{"data-name":"Layer 2",children:e("g",{"data-name":"Layer 1",children:e("path",{d:"m203 26.16-28.46 14.5-137.43 70a82.49 82.49 0 0 1-.7-10.69A81.87 81.87 0 0 1 158.2 28.6l16.29-8.3 2.43-1.24A100 100 0 0 0 18.18 100q0 3.82.29 7.61a18.19 18.19 0 0 1-9.88 17.58L0 129.57V150l25.29-12.89 8.19-4.18 8.07-4.11L186.43 55l16.28-8.29 33.65-17.15V9.14ZM236.36 50 49.78 145l-16.28 8.31L0 170.38v20.41l33.27-16.95 28.46-14.5 137.57-70.1A83.45 83.45 0 0 1 200 100a81.87 81.87 0 0 1-121.91 71.36l-1 .53-17.66 9A100 100 0 0 0 218.18 100c0-2.57-.1-5.14-.29-7.68a18.2 18.2 0 0 1 9.87-17.58l8.6-4.38Z"})})})})));function te(t,e={}){let n=!1;function r(e){const n=`chakra-${(["container","root"].includes(null!=e?e:"")?[t]:[t,e]).filter(Boolean).join("__")}`;return{className:n,selector:`.${n}`,toString:()=>e}}return{parts:function(...i){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(const t of i)e[t]=r(t);return te(t,e)},toPart:r,extend:function(...n){for(const t of n)t in e||(e[t]=r(t));return te(t,e)},selectors:function(){return Object.fromEntries(Object.entries(e).map((([t,e])=>[t,e.selector])))},classnames:function(){return Object.fromEntries(Object.entries(e).map((([t,e])=>[t,e.className])))},get keys(){return Object.keys(e)},__type:{}}}var ee=te("accordion").parts("root","container","button","panel").extend("icon"),ne=te("alert").parts("title","description","container").extend("icon","spinner");te("avatar").parts("label","badge","container").extend("excessLabel","group"),te("breadcrumb").parts("link","item","container").extend("separator"),te("button").parts();var re=te("checkbox").parts("control","icon","container").extend("label");te("progress").parts("track","filledTrack").extend("label"),te("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),te("editable").parts("preview","input","textarea"),te("form").parts("container","requiredIndicator","helperText"),te("formError").parts("text","icon");var ie=te("input").parts("addon","field","element","group");te("list").parts("container","item","icon"),te("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),te("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),te("numberinput").parts("root","field","stepperGroup","stepper"),te("pininput").parts("field"),te("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),te("progress").parts("label","filledTrack","track"),te("radio").parts("container","control","label");var oe=te("select").parts("field","icon");te("slider").parts("container","track","thumb","filledTrack","mark"),te("stat").parts("container","label","helpText","number","icon"),te("switch").parts("container","track","thumb","label"),te("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),te("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");var ae=te("tag").parts("container","label","closeButton");te("card").parts("container","header","body","footer"),te("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:ce,defineMultiStyleConfig:ue}=r(ee.keys),le=ue({baseStyle:ce({container:{border:"solid 1px lightgray",borderRadius:"md",bg:"gray.100",color:"black",marginBottom:4},panel:{bg:"white"}})}),{definePartsStyle:se,defineMultiStyleConfig:fe}=r(ne.keys),he=fe({baseStyle:se((t=>{const{colorScheme:e,theme:n}=t,r=n.colors[e];return{icon:{svg:{path:{fill:r[500]}}},container:{bg:r[100],borderColor:r[500],borderRadius:"lg",borderStyle:"solid",borderWidth:1,padding:4},description:{color:"blackAlpha.900"},title:{color:"blackAlpha.900"}}})),defaultProps:{variant:"subtle"}}),pe=o({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1.25em",path:{fill:"white"}}},variants:{alert:i({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),outline:i({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),ghost:i({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}})}}),{definePartsStyle:de,defineMultiStyleConfig:ye}=r(re.keys),ve=ye({baseStyle:de({control:{borderRadius:"base",borderColor:"brand.500",svg:{path:{fill:"inherit"}},_checked:{svg:{path:{fill:"white"}}},_hover:{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)",_disabled:{bg:"gray.100"}},_indeterminate:{bg:"brand.100",borderColor:"brand.100",_hover:{bg:"brand.100",boxShadow:"none"}},_invalid:{_checked:{borderColor:"brand.500"}}}}),sizes:{lg:{control:{boxSize:7,svg:{width:"1.75em"}}},md:{control:{boxSize:6,svg:{width:"1.5em"}}},sm:{control:{boxSize:4,svg:{width:"1.5em"}}}}}),ge=o({baseStyle:{helperText:{fontSize:"sm"}}}),me=o({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}}),be=o({baseStyle:{_groupInvalid:{color:"red.500"}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),{definePartsStyle:we,defineMultiStyleConfig:xe}=r(ie.keys),Oe=xe({baseStyle:we({group:{svg:{width:"1.25em",path:{fill:"gray.800"}},_groupDisabled:{svg:{path:{fill:"gray.400"}}}},field:{_readOnly:{pointerEvents:"none"}}}),variants:{outline:{field:{border:"solid 1px",borderRadius:"lg",borderColor:"brand.200",":focus, :hover":{borderColor:"brand.600"},":hover:not([disabled])":{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},color:"gray.800",_disabled:{bg:"gray.200",borderColor:"gray.300",color:"gray.900",":focus, :hover":{bg:"gray.200",borderColor:"gray.300"}},_invalid:{boxShadow:"none",":focus, :hover":{borderColor:"red.500"}}}}},defaultProps:{variant:"outline"}}),{definePartsStyle:Se,defineMultiStyleConfig:je}=r(oe.keys),Ae=je({baseStyle:Se({icon:{svg:{path:{fill:"gray.800"}},_disabled:{svg:{path:{fill:"gray.400"}}}},field:{_readOnly:{pointerEvents:"none"}}}),variants:{outline:{field:{border:"solid 1px",borderRadius:"lg",borderColor:"brand.200",":focus, :hover":{borderColor:"brand.600"},":hover:not([disabled])":{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},color:"gray.800",_disabled:{bg:"gray.200",borderColor:"gray.300",color:"gray.900",":focus, :hover":{bg:"gray.200",borderColor:"gray.300"}},_invalid:{boxShadow:"none",":focus, :hover":{borderColor:"red.500"}}}}},sizes:{lg:{icon:{fontSize:"lg"}},md:{icon:{fontSize:"md"}},sm:{icon:{fontSize:"sm"}},xs:{icon:{fontSize:"xs"}}},defaultProps:{variant:"outline"}});var Me="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Pe(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ee={exports:{}};Ee.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",c="day",u="week",l="month",s="quarter",f="year",h="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},m={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,l),o=n-i<0,a=e.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:f,w:u,d:c,D:h,h:a,m:o,s:i,ms:r,Q:s}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",w={};w[b]=v;var x="$isDayjsObject",O=function(t){return t instanceof M||!(!t||!t[x])},S=function t(e,n,r){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var c=e.name;w[c]=e,i=c}return!r&&i&&(b=i),i||!r&&b},j=function(t,e){if(O(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new M(n)},A=m;A.l=S,A.i=O,A.w=function(t,e){return j(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var M=function(){function v(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[x]=!0}var g=v.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(t,e){var n=j(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return j(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<j(t)},g.$g=function(t,e,n){return A.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!A.u(e)||e,s=A.p(t),p=function(t,e){var i=A.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(c)},d=function(t,e){return A.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,v=this.$M,g=this.$D,m="set"+(this.$u?"UTC":"");switch(s){case f:return r?p(1,0):p(31,11);case l:return r?p(1,v):p(0,v+1);case u:var b=this.$locale().weekStart||0,w=(y<b?y+7:y)-b;return p(r?g-w:g+(6-w),v);case c:case h:return d(m+"Hours",0);case a:return d(m+"Minutes",1);case o:return d(m+"Seconds",2);case i:return d(m+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,u=A.p(t),s="set"+(this.$u?"UTC":""),p=(n={},n[c]=s+"Date",n[h]=s+"Date",n[l]=s+"Month",n[f]=s+"FullYear",n[a]=s+"Hours",n[o]=s+"Minutes",n[i]=s+"Seconds",n[r]=s+"Milliseconds",n)[u],d=u===c?this.$D+(e-this.$W):e;if(u===l||u===f){var y=this.clone().set(h,1);y.$d[p](d),y.init(),this.$d=y.set(h,Math.min(this.$D,y.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[A.p(t)]()},g.add=function(r,s){var h,p=this;r=Number(r);var d=A.p(s),y=function(t){var e=j(p);return A.w(e.date(e.date()+Math.round(t*r)),p)};if(d===l)return this.set(l,this.$M+r);if(d===f)return this.set(f,this.$y+r);if(d===c)return y(1);if(d===u)return y(7);var v=(h={},h[o]=e,h[a]=n,h[i]=t,h)[d]||1,g=this.$d.getTime()+r*v;return A.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),o=this.$H,a=this.$m,c=this.$M,u=n.weekdays,l=n.months,s=n.meridiem,f=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},h=function(t){return A.s(o%12||12,t,"0")},d=s||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return A.s(e.$y,4,"0");case"M":return c+1;case"MM":return A.s(c+1,2,"0");case"MMM":return f(n.monthsShort,c,l,3);case"MMMM":return f(l,c);case"D":return e.$D;case"DD":return A.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(n.weekdaysMin,e.$W,u,2);case"ddd":return f(n.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(o);case"HH":return A.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return d(o,a,!0);case"A":return d(o,a,!1);case"m":return String(a);case"mm":return A.s(a,2,"0");case"s":return String(e.$s);case"ss":return A.s(e.$s,2,"0");case"SSS":return A.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,h,p){var d,y=this,v=A.p(h),g=j(r),m=(g.utcOffset()-this.utcOffset())*e,b=this-g,w=function(){return A.m(y,g)};switch(v){case f:d=w()/12;break;case l:d=w();break;case s:d=w()/3;break;case u:d=(b-m)/6048e5;break;case c:d=(b-m)/864e5;break;case a:d=b/n;break;case o:d=b/e;break;case i:d=b/t;break;default:d=b}return p?d:A.a(d)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return w[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return A.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),P=M.prototype;return j.prototype=P,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",c],["$M",l],["$y",f],["$D",h]].forEach((function(t){P[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),j.extend=function(t,e){return t.$i||(t(e,M,j),t.$i=!0),j},j.locale=S,j.isDayjs=O,j.unix=function(t){return j(1e3*t)},j.en=w[b],j.Ls=w,j.p={},j}();var ke,_e,Te,Ce=Pe(Ee.exports),De={exports:{}};De.exports=(ke="minute",_e=/[+-]\d\d(?::?\d\d)?/g,Te=/([+-]|\d\d)/g,function(t,e,n){var r=e.prototype;n.utc=function(t){return new e({date:t,utc:!0,args:arguments})},r.utc=function(t){var e=n(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),ke):e},r.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var i=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var o=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else o.call(this)};var a=r.utcOffset;r.utcOffset=function(t,e){var n=this.$utils().u;if(n(t))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(_e);if(!e)return null;var n=(""+e[0]).match(Te)||["-",0,0],r=n[0],i=60*+n[1]+ +n[2];return 0===i?0:"+"===r?i:-i}(t),null===t))return this;var r=Math.abs(t)<=16?60*t:t,i=this;if(e)return i.$offset=r,i.$u=0===t,i;if(0!==t){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(r+o,ke)).$offset=r,i.$x.$localOffset=o}else i=this.utc();return i};var c=r.format;r.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,e)},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var u=r.toDate;r.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var l=r.diff;r.diff=function(t,e,r){if(t&&this.$u===t.$u)return l.call(this,t,e,r);var i=this.local(),o=n(t).local();return l.call(i,o,e,r)}});var Ne=Pe(De.exports);Ce.extend(Ne);const Ie=({timeString:t,toEndDate:e})=>""===t?"":e?Ce(`${t}T23:59:59`).utc().unix().toString():Ce(t).utc().unix().toString(),Be=({number:t,signDisplay:e="exceptZero",isDecimal:n=!0})=>new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,signDisplay:e}).format(n?t:t/100);
|
|
2
|
-
/*!
|
|
3
|
-
* currency.js - v2.0.4
|
|
4
|
-
* http://scurker.github.io/currency.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) 2021 Jason Wilson
|
|
7
|
-
* Released under MIT license
|
|
8
|
-
*/
|
|
9
|
-
var Re={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,e){var n=e.pattern,r=e.negativePattern,i=e.symbol,o=e.separator,a=e.decimal,c=e.groups,u=(""+t).replace(/^-/,"").split("."),l=u[0],s=u[1];return(t.value>=0?n:r).replace("!",i).replace("#",l.replace(c,"$1"+o)+(s?a+s:""))},fromCents:!1},Le=function(t){return Math.round(t)},$e=function(t){return Math.pow(10,t)},ze=/(\d)(?=(\d{3})+\b)/g,He=/(\d)(?=(\d\d)+\d\b)/g;function Ze(t,e){var n=this;if(!(n instanceof Ze))return new Ze(t,e);var r=Object.assign({},Re,e),i=$e(r.precision),o=Ue(t,r);n.intValue=o,n.value=o/i,r.increment=r.increment||1/i,r.useVedic?r.groups=He:r.groups=ze,this.s=r,this.p=i}function Ue(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=0,i=e.decimal,o=e.errorOnInvalid,a=e.precision,c=e.fromCents,u=$e(a),l="number"==typeof t,s=t instanceof Ze;if(s&&c)return t.intValue;if(l||s)r=s?t.value:t;else if("string"==typeof t){var f=new RegExp("[^-\\d"+i+"]","g"),h=new RegExp("\\"+i,"g");r=(r=t.replace(/\((.*)\)/,"-$1").replace(f,"").replace(h,"."))||0}else{if(o)throw Error("Invalid Input");r=0}return c||(r=(r*=u).toFixed(4)),n?Le(r):r}Ze.prototype={add:function(t){var e=this.intValue,n=this.s,r=this.p;return Ze((e+=Ue(t,n))/(n.fromCents?1:r),n)},subtract:function(t){var e=this.intValue,n=this.s,r=this.p;return Ze((e-=Ue(t,n))/(n.fromCents?1:r),n)},multiply:function(t){var e=this.intValue,n=this.s;return Ze((e*=t)/(n.fromCents?1:$e(n.precision)),n)},divide:function(t){var e=this.intValue,n=this.s;return Ze(e/=Ue(t,n,!1),n)},distribute:function(t){for(var e=this.intValue,n=this.p,r=this.s,i=[],o=Math[e>=0?"floor":"ceil"](e/t),a=Math.abs(e-o*t),c=r.fromCents?1:n;0!==t;t--){var u=Ze(o/c,r);a-- >0&&(u=u[e>=0?"add":"subtract"](1/c)),i.push(u)}return i},dollars:function(){return~~this.value},cents:function(){return~~(this.intValue%this.p)},format:function(t){var e=this.s;return"function"==typeof t?t(this,e):e.format(this,Object.assign({},e,t))},toString:function(){var t,e,n=this.intValue,r=this.p,i=this.s;return(t=n/r,e=i.increment,Le(t/e)*e).toFixed(i.precision)},toJSON:function(){return this.value}};const Fe=({amount:t,precision:e=2,signDisplay:n=!1})=>{const r=Ze(t,{precision:e}).format();return n&&t>0?`+${r}`:r};
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";import{chakra as n,createMultiStyleConfigHelpers as r,defineStyle as i,defineStyleConfig as o,extendTheme as a,withDefaultColorScheme as c,Card as u,FormControl as l,Flex as s,FormLabel as f,Checkbox as h,FormErrorMessage as p,InputGroup as d,InputLeftElement as y,Input as v,InputRightElement as g,FormHelperText as m,Select as b,Tag as w,TagLeftIcon as x,TagLabel as O,TagRightIcon as S,TagCloseButton as j,Alert as A,AlertIcon as P,Box as M,AlertTitle as E,AlertDescription as k,CloseButton as _,Spinner as T}from"@chakra-ui/react";import D,{isValidElement as C,Children as N,PureComponent as I,cloneElement as B,forwardRef as R,useRef as $,useImperativeHandle as L,useState as z,useCallback as H,useEffect as U,useMemo as F,createElement as q,Component as W}from"react";const V=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12m0 22a10 10 0 1 1 10-10 10.01 10.01 0 0 1-10 10"}),e("path",{d:"M12 5.5a1 1 0 0 0-1 1v8a1 1 0 1 0 2 0v-8a1 1 0 0 0-1-1M13 18.5a1 1 0 1 0-2 0 1 1 0 0 0 2 0"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Y=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m14.563 9.22-.915.947-3.02-3.125a2.54 2.54 0 0 0-1.785-.74c-.666 0-1.305.265-1.786.74l-.146.15a.85.85 0 0 1-.596.248.85.85 0 0 1-.595-.248L1.448 2.766A.84.84 0 0 0 .849 2.5a.82.82 0 0 0-.602.255A.87.87 0 0 0 0 3.38.9.9 0 0 0 .257 4l4.271 4.42c.482.476 1.121.741 1.787.741S7.62 8.895 8.1 8.42l.145-.151a.85.85 0 0 1 .596-.247c.222 0 .435.088.595.247l3.02 3.13-.914.947a.9.9 0 0 0-.183.95c.064.159.172.295.31.39a.82.82 0 0 0 .468.147h2.599c.335 0 .656-.137.893-.383a1.33 1.33 0 0 0 .37-.924V9.831a.9.9 0 0 0-.144-.482.85.85 0 0 0-.379-.319.82.82 0 0 0-.915.19"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h16v16H0z"})})})]}))),X=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M14.738 2H12.14a.82.82 0 0 0-.467.147.87.87 0 0 0-.31.39.9.9 0 0 0 .182.949l.914.945-3.018 3.121a.85.85 0 0 1-.595.247.85.85 0 0 1-.595-.247l-.144-.149a2.54 2.54 0 0 0-1.785-.74c-.665 0-1.304.265-1.785.74l-4.292 4.44a.9.9 0 0 0-.246.618c0 .232.09.454.248.617a.83.83 0 0 0 .598.255.83.83 0 0 0 .596-.256l4.292-4.44a.85.85 0 0 1 .595-.247c.222 0 .435.088.596.247l.143.149a2.54 2.54 0 0 0 1.785.74 2.54 2.54 0 0 0 1.785-.74l3.018-3.122.913.945a.815.815 0 0 0 .913.182.85.85 0 0 0 .376-.319.9.9 0 0 0 .142-.48V3.306a1.33 1.33 0 0 0-.37-.924A1.24 1.24 0 0 0 14.738 2"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{d:"M0 0h16v16H0z"})})})]}))),G=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M24 23.5a1 1 0 0 1-1 1H1a1 1 0 0 1 0-2h22a1 1 0 0 1 1 1M.291 9.052a2.44 2.44 0 0 1 .153-2.566c.427-.627 1-1.141 1.668-1.5l7.501-3.904a5.17 5.17 0 0 1 4.774 0l7.5 3.907c.669.359 1.24.873 1.668 1.5a2.44 2.44 0 0 1 .153 2.566 2.71 2.71 0 0 1-2.416 1.445H21v8h1a1 1 0 1 1 0 2H2a1 1 0 0 1 0-2h1v-8h-.292A2.71 2.71 0 0 1 .291 9.052m4.71 9.448h3v-8H5zm5-8v8h4v-8zm9 0h-3v8h3zM2.062 8.125a.72.72 0 0 0 .645.375h18.584a.72.72 0 0 0 .645-.375.45.45 0 0 0-.024-.5 2.7 2.7 0 0 0-.949-.864l-7.5-3.907a3.18 3.18 0 0 0-2.926 0l-7.5 3.907a2.7 2.7 0 0 0-.949.865.45.45 0 0 0-.026.5"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),K=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 23h18a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5V2a1 1 0 0 1 2 0v18a3 3 0 0 0 3 3"}),e("path",{d:"M6.707 20.707A1 1 0 0 1 5 20v-7a1 1 0 0 1 2 0v7a1 1 0 0 1-.293.707M10 11v9a1 1 0 1 0 2 0v-9a1 1 0 0 0-2 0M15 20v-6a1 1 0 0 1 2 0v6a1 1 0 1 1-2 0M20 10v10a1 1 0 1 0 2 0V10a1 1 0 0 0-2 0M6.707 9.707a1 1 0 1 1-1.414-1.414l3.586-3.586a3 3 0 0 1 4.242 0l2.172 2.17a1 1 0 0 0 1.414 0l5.586-5.584a1 1 0 0 1 1.414 1.414L18.12 8.293a3 3 0 0 1-4.242 0L11.707 6.12a1.025 1.025 0 0 0-1.414 0z"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Z=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M13.5 15a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M7 16.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M18.5 15a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"}),e("path",{fillRule:"evenodd",d:"M18 2h1a5.006 5.006 0 0 1 5 5v12a5.006 5.006 0 0 1-5 5H5a5.006 5.006 0 0 1-5-5V7a5.006 5.006 0 0 1 5-5h1V1a1 1 0 0 1 2 0v1h8V1a1 1 0 0 1 2 0zM2.879 4.879A3 3 0 0 0 2 7v1h20V7a3 3 0 0 0-3-3H5a3 3 0 0 0-2.121.879m0 16.242A3 3 0 0 0 5 22h14a3 3 0 0 0 3-3v-9H2v9a3 3 0 0 0 .879 2.121",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),J=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m.292 7.861 8.17 8.17a5 5 0 0 0 7.08 0l8.17-8.17a1.004 1.004 0 1 0-1.42-1.42l-8.17 8.17a3 3 0 0 1-4.24 0l-8.17-8.17a1 1 0 0 0-1.42 0 1 1 0 0 0 0 1.42"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Q=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M17.17 24.5a1 1 0 0 1-.71-.29l-8.17-8.17a5 5 0 0 1 0-7.08L16.46.79a1.004 1.004 0 1 1 1.42 1.42l-8.17 8.17a3 3 0 0 0 0 4.24l8.17 8.17a1 1 0 0 1-.71 1.71"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),tt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M7 24.5a1 1 0 0 1-.71-1.71l8.17-8.17a3 3 0 0 0 0-4.24L6.29 2.21A1.004 1.004 0 0 1 7.71.79l8.17 8.17a5 5 0 0 1 0 7.08l-8.17 8.17a1 1 0 0 1-.71.29"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),et=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.71 16.79-8.17-8.17a5 5 0 0 0-7.08 0L.29 16.79a1.004 1.004 0 1 0 1.42 1.42l8.17-8.17a3 3 0 0 1 4.24 0l8.17 8.17a1.002 1.002 0 0 0 1.64-.325 1 1 0 0 0-.22-1.095"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),nt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M11.033 5.145a.968.968 0 0 1 1.935 0v.944a6.5 6.5 0 0 1 3.618 1.827.968.968 0 0 1-1.37 1.369 4.55 4.55 0 0 0-3.215-1.332A4.534 4.534 0 0 0 7.452 12.5 4.534 4.534 0 0 0 12 17.05a4.55 4.55 0 0 0 3.209-1.339.967.967 0 0 1 1.372 1.367 6.5 6.5 0 0 1-3.612 1.833v.946a.967.967 0 1 1-1.935 0v-.944c-3.114-.47-5.516-3.17-5.516-6.41S7.92 6.56 11.033 6.09z"}),e("path",{fillRule:"evenodd",d:"M12 .5C5.384.5 0 5.884 0 12.5s5.384 12 12 12 12-5.384 12-12-5.384-12-12-12m0 1.936A10.05 10.05 0 0 1 22.064 12.5 10.05 10.05 0 0 1 12 22.564 10.05 10.05 0 0 1 1.936 12.5 10.05 10.05 0 0 1 12 2.436",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),rt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M22.319 4.931 8.499 18.75a1 1 0 0 1-1.416 0L1.739 13.4a1 1 0 0 0-1.417 0 1 1 0 0 0 0 1.417l5.346 5.345a3.01 3.01 0 0 0 4.25 0L23.736 6.347a1 1 0 0 0-.709-1.71 1 1 0 0 0-.708.294"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),it=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 3.5h-6.528a1 1 0 0 1-.447-.1L8.869 1.816A3 3 0 0 0 7.528 1.5H5a5.006 5.006 0 0 0-5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-10a5.006 5.006 0 0 0-5-5m-14 0h2.528c.155 0 .308.033.447.1l3.156 1.58c.416.208.875.318 1.341.32H19a3 3 0 0 1 2.779 1.882L2 7.494V6.5a3 3 0 0 1 3-3m14 18H5a3 3 0 0 1-3-3V9.494l20-.113v9.12a3 3 0 0 1-3 3"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ot=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23.707.793a1 1 0 0 0-1.414 0L12 11.086 1.707.793a1 1 0 0 0-1.414 0 1 1 0 0 0 0 1.414L10.586 12.5.293 22.793a1 1 0 0 0 0 1.414 1 1 0 0 0 1.414 0L12 13.914l10.293 10.293a1 1 0 0 0 1.414-1.414L13.414 12.5 23.707 2.207a1 1 0 0 0 0-1.414"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),at=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M21.736 16.9A5.01 5.01 0 0 0 17 13.5h-4v-1.084a6 6 0 1 0-2 0V13.5H7a5.01 5.01 0 0 0-4.736 3.4 4 4 0 1 0 2.447-.334A3 3 0 0 1 7 15.5h4v1.127a4 4 0 1 0 2 0V15.5h4a3 3 0 0 1 2.289 1.063 4 4 0 1 0 2.447.334zM8 6.5a4 4 0 1 1 8 0 4 4 0 0 1-8 0m-2 14a2 2 0 1 1-4 0 2 2 0 0 1 4 0m8 0a2 2 0 1 1-4.001 0 2 2 0 0 1 4 0m6 2a2 2 0 1 1 0-4 2 2 0 0 1 0 4"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ct=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13 20.5a5.006 5.006 0 0 0 5-5V6.743a3.97 3.97 0 0 0-1.172-2.829l-2.242-2.242A3.97 3.97 0 0 0 11.757.5H7a5.006 5.006 0 0 0-5 5v10a5.006 5.006 0 0 0 5 5zm-9-5v-10a3 3 0 0 1 3-3s4.92.014 5 .024V4.5a2 2 0 0 0 2 2h1.976c.01.081.024 9 .024 9a3 3 0 0 1-3 3H7a3 3 0 0 1-3-3m18-7v11a5.005 5.005 0 0 1-5 5H8a1 1 0 0 1 0-2h9a3 3 0 0 0 3-3v-11a1 1 0 0 1 2 0"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ut=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13.932 4.5A3.07 3.07 0 0 1 17 7.568a1 1 0 0 0 2 0v-.123A5.073 5.073 0 0 0 13.932 2.5H13v-1a1 1 0 1 0-2 0v1h-.932a5.068 5.068 0 0 0-1.6 9.875L11 13.22v7.28h-.932A3.07 3.07 0 0 1 7 17.432a1 1 0 1 0-2 0v.123a5.073 5.073 0 0 0 5.068 4.945H11v1a1 1 0 0 0 2 0v-1h.932a5.068 5.068 0 0 0 1.6-9.875L13 11.78V4.5zm.97 10.021a3.068 3.068 0 0 1-.97 5.979H13v-6.613zM11 11.113l-1.9-.634a3.068 3.068 0 0 1 .968-5.979H11z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),lt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M10.852 19.273a3 3 0 0 1-.974-.651l-3.21-3.207A1 1 0 0 1 8.08 14l2.91 2.908.01-15.408a1 1 0 0 1 2 0l-.008 15.427L15.92 14a1 1 0 0 1 1.414 1.411l-3.21 3.211a3 3 0 0 1-3.271.65"}),e("path",{d:"M22.293 16.793A1 1 0 0 1 24 17.5v4a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-4a1 1 0 1 1 2 0v4a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1v-4a1 1 0 0 1 .293-.707"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),st=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{fillRule:"evenodd",d:"M18.67 1.387 6.469 13.602a4.97 4.97 0 0 0-1.465 3.541v1.346a1 1 0 0 0 1 1.002H7.35a4.96 4.96 0 0 0 3.537-1.467l12.2-12.215a3.133 3.133 0 0 0 0-4.422 3.195 3.195 0 0 0-4.416 0m.18 5.83-9.379 9.39a3.02 3.02 0 0 1-2.122.88h-.344v-.344c.002-.796.318-1.56.879-2.125l9.378-9.39zm1.415-1.416 1.407-1.409a1.126 1.126 0 0 0 0-1.589 1.15 1.15 0 0 0-1.587 0l-1.407 1.409z",clipRule:"evenodd"}),e("path",{d:"M0 23.498c0-.553.373-1.002.834-1.002H19.18c.46 0 .834.449.834 1.002s-.373 1.002-.834 1.002H.834c-.46 0-.834-.449-.834-1.002"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),ft=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M20.914 17.62a5 5 0 0 0 1.621-1.084A4.97 4.97 0 0 0 24 12.996V2a1 1 0 0 0-2 0v10.997a3 3 0 0 1-3 2.999H2.788L7.1 11.688a1.001 1.001 0 1 0-1.418-1.414l-4.95 4.95a2.5 2.5 0 0 0 0 3.534l4.95 4.948A1 1 0 0 0 7.1 22.294l-4.3-4.299H19a5 5 0 0 0 1.914-.376"})}))),ht=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M3.086 17.62a5 5 0 0 1-1.621-1.084A4.97 4.97 0 0 1 0 12.996V2a1 1 0 0 1 2 0v10.997a3 3 0 0 0 3 2.999h16.212L16.9 11.688a1.003 1.003 0 0 1 .002-1.416 1 1 0 0 1 1.416.002l4.95 4.95a2.5 2.5 0 0 1 0 3.534l-4.95 4.948a1 1 0 0 1-1.418-1.412l4.3-4.299H5a5 5 0 0 1-1.914-.376"})}))),pt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M23.41 5.094c.373.372.585.875.59 1.401a2 2 0 0 1-.59 1.412l-4.29 4.303a1 1 0 1 1-1.41-1.421L21 7.496H11a1 1 0 0 1 0-2.001h10l-3.29-3.283A1.002 1.002 0 0 1 19.12.791zM3 17.504h10a1 1 0 0 1 .707 1.708 1 1 0 0 1-.707.294H3l3.29 3.282a1.002 1.002 0 0 1-1.41 1.421L.59 19.906A2 2 0 0 1 0 18.505c.002-.53.214-1.038.59-1.411l4.29-4.304a1 1 0 0 1 1.629 1.096 1 1 0 0 1-.219.325z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),dt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M14 24.5a1 1 0 0 1-.6-.2l-4-3a1 1 0 0 1-.4-.8v-5.62L1.984 6.987A3.9 3.9 0 0 1 4.9.5h14.2a3.9 3.9 0 0 1 2.913 6.488L15 14.88v8.62a1 1 0 0 1-1 1M11 20l2 1.5v-7a1 1 0 0 1 .253-.664l7.268-8.177A1.9 1.9 0 0 0 19.1 2.5H4.9a1.9 1.9 0 0 0-1.421 3.158l7.269 8.178A1 1 0 0 1 11 14.5z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),yt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12.717 5.563A4 4 0 0 0 8 9.5a1 1 0 1 0 2 0 2.002 2.002 0 0 1 2.371-1.967 2.02 2.02 0 0 1 1.6 1.595 2 2 0 0 1-1 2.125 3.95 3.95 0 0 0-1.97 3.504v.743a1 1 0 0 0 2 0v-.743a1.98 1.98 0 0 1 .93-1.752 4 4 0 0 0-1.214-7.442M12 17.5a1 1 0 1 1 0 2 1 1 0 0 1 0-2"}),e("path",{fillRule:"evenodd",d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12m0 22a10 10 0 1 1 10-10 10.01 10.01 0 0 1-10 10",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),vt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",fillRule:"evenodd",d:"M22.293 11.793A1 1 0 0 1 24 12.5a11.994 11.994 0 1 1-4-8.935V1.5a1 1 0 1 1 2 0v3a3 3 0 0 1-3 3h-3a1 1 0 1 1 0-2h3a1 1 0 0 0 .1-.021A10.034 10.034 0 1 0 22 12.5a1 1 0 0 1 .293-.707m-11-5A1 1 0 0 1 13 7.5v4.586l2.707 2.707a1 1 0 0 1-1.414 1.414l-3-3A1 1 0 0 1 11 12.5v-5a1 1 0 0 1 .293-.707",clipRule:"evenodd"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),gt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.121 9.569-7.585-7.586a5.01 5.01 0 0 0-7.072 0L.88 9.569A2.98 2.98 0 0 0 0 11.689v9.818a3 3 0 0 0 3 3h18a3 3 0 0 0 3-3V11.69a2.98 2.98 0 0 0-.879-2.121m-8.12 12.938H9v-3.934a3 3 0 0 1 6 0zm7-1a1 1 0 0 1-1 1h-4v-3.934a5 5 0 0 0-10 0v3.934H3a1 1 0 0 1-1-1V11.69c0-.265.105-.52.292-.707L9.878 3.4a3.01 3.01 0 0 1 4.244 0l7.585 7.586c.186.187.291.44.293.704z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),mt=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M6.41 9.5h11.18a1 1 0 0 1 .7 1.71l-5.58 5.58a1 1 0 0 1-1.42 0l-5.58-5.58a1 1 0 0 1 .7-1.71"})}))),bt=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M6.41 16.5h11.18a1 1 0 0 0 .7-1.71l-5.58-5.58a1 1 0 0 0-1.42 0l-5.58 5.58a1 1 0 0 0 .7 1.71"})}))),wt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M12 10.5h-1a1 1 0 0 0 0 2h1v6a1 1 0 1 0 2 0v-6a2 2 0 0 0-2-2M13.5 7a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"}),e("path",{fillRule:"evenodd",d:"M12 .5a12 12 0 1 0 12 12 12.013 12.013 0 0 0-12-12m0 22a10 10 0 1 1 10-10 10.01 10.01 0 0 1-10 10",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),xt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 1.5H5a5.006 5.006 0 0 0-5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-12a5.006 5.006 0 0 0-5-5m-14 2h14a3 3 0 0 1 2.78 1.887l-7.658 7.659a3.007 3.007 0 0 1-4.244 0L2.22 5.386A3 3 0 0 1 5 3.5m14 18H5a3 3 0 0 1-3-3V8l6.464 6.46a5.007 5.007 0 0 0 7.072 0L22 8v10.5a3 3 0 0 1-3 3"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ot=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M23 4.5H1a1 1 0 1 0 0 2h22a1 1 0 1 0 0-2M23 11.5H1a1 1 0 1 0 0 2h22a1 1 0 1 0 0-2M1 18.5h22a1 1 0 1 1 0 2H1a1 1 0 1 1 0-2"})}))),St=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M2 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M12 14.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4M24 12.5a2 2 0 1 1-4 0 2 2 0 0 1 4 0"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),jt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m22.555 14.162-1.9-6.836A9.321 9.321 0 0 0 2.576 7.8l-1.471 6.615A5 5 0 0 0 5.986 20.5H7.1a5 5 0 0 0 9.8 0h.838a5 5 0 0 0 4.818-6.338zM12 22.5a3 3 0 0 1-2.816-2h5.632a3 3 0 0 1-2.816 2m8.126-5.185a2.98 2.98 0 0 1-2.389 1.185H5.986a3 3 0 0 1-2.928-3.651l1.47-6.616a7.321 7.321 0 0 1 14.2-.372l1.9 6.836a2.98 2.98 0 0 1-.502 2.618"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),At=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23.9 11.946a12 12 0 0 0-4.279-7.717 12.006 12.006 0 0 0-16.385 1.07A11.99 11.99 0 0 0 0 13.508a11.86 11.86 0 0 0 3.759 8.705A4.84 4.84 0 0 0 7.113 23.5h9.767a5 5 0 0 0 3.509-1.428 11.93 11.93 0 0 0 3.51-10.126m-4.91 8.693a3 3 0 0 1-2.11.862H7.113c-.73.015-1.44-.25-1.981-.74A9.9 9.9 0 0 1 2 13.508a10 10 0 0 1 3.338-7.451 9.89 9.89 0 0 1 6.648-2.541q.588 0 1.174.065a10 10 0 0 1 8.305 6.693 9.98 9.98 0 0 1-2.474 10.37zm-11.183-2.85a1 1 0 1 1-1.4 1.429 7.992 7.992 0 0 1 6.736-13.623 1 1 0 0 1 .72 1.502.99.99 0 0 1-1.006.477 6 6 0 0 0-6.228 3.28 5.99 5.99 0 0 0 1.178 6.935m12.112-5.424q.08.568.08 1.143a7.92 7.92 0 0 1-2.407 5.711 1.002 1.002 0 0 1-1.4-1.43 5.97 5.97 0 0 0 1.744-5.138 1 1 0 0 1 1.59-.944 1 1 0 0 1 .39.659zm-5.993.631a2.03 2.03 0 0 1-2.22 2.559 2.033 2.033 0 0 1-1.495-3.039 2.03 2.03 0 0 1 2.3-.933l3.782-3.778a1 1 0 1 1 1.414 1.413z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Pt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("path",{fill:"#000",d:"M22.707 1.793a1 1 0 0 1 0 1.414l-20 20a1 1 0 0 1-1.414-1.414l20-20a1 1 0 0 1 1.414 0"}),e("path",{fill:"#000",fillRule:"evenodd",d:"M6 10.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8m0-6a2 2 0 1 1 0 4 2 2 0 0 1 0-4M15.778 15.174a4 4 0 1 1 4.444 6.653 4 4 0 0 1-4.444-6.653m1.11 4.99a2 2 0 1 0 2.223-3.327 2 2 0 0 0-2.222 3.326",clipRule:"evenodd"})]}))),Mt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",fillRule:"evenodd",clipPath:"url(#a)",clipRule:"evenodd",children:[e("path",{d:"M21.057 3.47a10.1 10.1 0 0 1 2.594 4.476 2.01 2.01 0 0 1-1.913 2.554H17.02a3 3 0 0 1-3-3V2.8a2 2 0 0 1 2.02-2 2 2 0 0 1 .543.072 10.1 10.1 0 0 1 4.475 2.598M17.015 8.5h4.72a8.07 8.07 0 0 0-5.677-5.702h-.026a.05.05 0 0 0-.025.01l.008 4.692a1 1 0 0 0 1 1"}),e("path",{d:"M14 12.5h4.713a3.06 3.06 0 0 1 2.394 1.172 2.88 2.88 0 0 1 .533 2.485A11 11 0 0 1 8.906 24.27a10.969 10.969 0 0 1-.553-21.414 2.87 2.87 0 0 1 2.48.534A3 3 0 0 1 12 5.774V10.5a2 2 0 0 0 2 2m3.425 7.26a8.97 8.97 0 0 0 2.276-4.092.88.88 0 0 0-.167-.768 1.04 1.04 0 0 0-.816-.4h-4.712a4 4 0 0 1-4-4V5.778a1.02 1.02 0 0 0-.4-.806.87.87 0 0 0-.764-.172 8.97 8.97 0 1 0 8.583 14.96"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Et=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M23 11.5H13v-10a1 1 0 0 0-1-1 1 1 0 0 0-1 1v10H1a1 1 0 0 0-1 1 1 1 0 0 0 1 1h10v10a1 1 0 0 0 2 0v-10h10a1 1 0 0 0 0-2"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),kt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 3.522V1.5a1 1 0 0 0-2 0v1.1a5 5 0 0 0-1-.1h-1v-1a1 1 0 0 0-2 0v1h-2v-1a1 1 0 0 0-2 0v1H8a5 5 0 0 0-1 .1V1.5a1 1 0 0 0-2 0v2.022A4.98 4.98 0 0 0 3 7.5v12a5.006 5.006 0 0 0 5 5h8a5.006 5.006 0 0 0 5-5v-12a4.98 4.98 0 0 0-2-3.978M19 19.5a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3v-12a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3zm-2-11a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h8a1 1 0 0 1 1 1m0 4a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h8a1 1 0 0 1 1 1m-4 4a1 1 0 0 1-1 1H8a1 1 0 0 1 0-2h4a1 1 0 0 1 1 1"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),_t=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M18.581 2.64 12.316.551a1 1 0 0 0-.632 0l-6.265 2.09A4.99 4.99 0 0 0 2 7.382V12.5c0 7.563 9.2 11.74 9.594 11.914a1 1 0 0 0 .812 0C12.8 24.24 22 20.064 22 12.5V7.383a4.99 4.99 0 0 0-3.419-4.743m-1.863 7.577-4.272 4.272a1.87 1.87 0 0 1-1.335.553h-.033a1.87 1.87 0 0 1-1.345-.6l-2.306-2.4a1 1 0 1 1 1.441-1.382L11.112 13 15.3 8.8a1 1 0 0 1 1.414 1.414z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Tt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M18.581 2.64 12.316.551a1 1 0 0 0-.632 0l-6.266 2.09A4.99 4.99 0 0 0 2 7.382V12.5c0 7.563 9.2 11.74 9.594 11.914a1 1 0 0 0 .812 0C12.8 24.24 22 20.064 22 12.5V7.383a4.99 4.99 0 0 0-3.419-4.743M12 19.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2m1-5a1 1 0 1 1-2 0v-8a1 1 0 0 1 2 0z"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Dt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"m23.707 22.794-5.97-5.97a10.016 10.016 0 1 0-1.413 1.415l5.969 5.969a1 1 0 0 0 1.414-1.414M10 18.5a8 8 0 1 1 8-8 8.01 8.01 0 0 1-8 8"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ct=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",fillRule:"evenodd",clipPath:"url(#a)",clipRule:"evenodd",children:[e("path",{d:"M9.778 9.175a4 4 0 1 1 4.444 6.652 4 4 0 0 1-4.444-6.652m1.11 4.989a2 2 0 1 0 2.223-3.325 2 2 0 0 0-2.222 3.325"}),e("path",{d:"m20.85 14.144.444.256.001-.001a3.002 3.002 0 1 1-3 5.2l-.447-.258A9 9 0 0 1 15 20.987v.513a3 3 0 1 1-6 0v-.513a9 9 0 0 1-2.85-1.642l-.445.257a3.002 3.002 0 0 1-3-5.2l.444-.256a9.1 9.1 0 0 1 0-3.29l-.444-.256a3.002 3.002 0 1 1 3-5.2l.447.259A9 9 0 0 1 9 4.013V3.5a3 3 0 1 1 6 0v.513a9 9 0 0 1 2.849 1.642l.445-.257a3.002 3.002 0 0 1 3 5.2l-.444.256a9.1 9.1 0 0 1 0 3.29m-2.104.23a7.05 7.05 0 0 0 0-3.75v.001a1 1 0 0 1 .463-1.129l1.084-.626a1 1 0 1 0-1-1.732l-1.084.627a1 1 0 0 1-1.215-.165 7 7 0 0 0-3.243-1.879A1 1 0 0 1 13 4.752V3.5a1 1 0 1 0-2 0v1.252a1 1 0 0 1-.751.973A7 7 0 0 0 7.006 7.6a1 1 0 0 1-1.214.161l-1.086-.628a1 1 0 1 0-1 1.733l1.084.626a1 1 0 0 1 .465 1.129 7.05 7.05 0 0 0 0 3.75 1 1 0 0 1-.464 1.133l-1.084.626a1 1 0 1 0 1 1.732l1.084-.627a1 1 0 0 1 1.215.165c.89.91 2.01 1.56 3.242 1.879a1 1 0 0 1 .751.969V21.5a1 1 0 0 0 2 0v-1.253a1 1 0 0 1 .751-.969 7 7 0 0 0 3.243-1.875 1 1 0 0 1 1.215-.165l1.086.628a1 1 0 0 0 1-1.733l-1.084-.626a1 1 0 0 1-.464-1.133"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Nt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M4 7.483a2.98 2.98 0 0 1-2.121-.88L.335 5.228a1.002 1.002 0 0 1 1.332-1.496l1.585 1.416a1 1 0 0 0 1.456.04l3.604-3.435a1 1 0 0 1 1.378 1.45L6.1 6.62a2.96 2.96 0 0 1-2.1.863m20-2.002a1 1 0 0 0-1-1H13a1 1 0 0 0-.706 1.708 1 1 0 0 0 .707.293h10a1 1 0 0 0 1-1M6.1 14.63l3.59-3.418a1 1 0 1 0-1.378-1.45l-3.6 3.435a1.02 1.02 0 0 1-1.414 0l-1.59-1.586a1 1 0 0 0-1.695.711c-.002.263.099.515.28.704l1.586 1.587a3 3 0 0 0 4.226.017zm17.9-1.14a1 1 0 0 0-1-1H13a1 1 0 0 0-1 1 1 1 0 0 0 1 1.002h10a1 1 0 0 0 1-1.001M6.1 22.638l3.586-3.417a1.001 1.001 0 1 0-1.378-1.45l-3.6 3.435a1 1 0 0 1-1.456-.04l-1.585-1.416a1 1 0 0 0-1.665.805c.015.266.135.514.333.69l1.544 1.376a3 3 0 0 0 4.226.017zM24 21.498a1 1 0 0 0-1-1.001H13a1 1 0 0 0-.706 1.709 1 1 0 0 0 .707.293h10a1 1 0 0 0 1-1.001"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),It=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 22.5h2a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5v-14a5.006 5.006 0 0 1 5-5h2a1 1 0 0 1 0 2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3"}),e("path",{d:"M7.223 11.532 23 11.5a1 1 0 0 1 0 2l-15.744.032q.123.209.29.382l3.88 3.88a1 1 0 1 1-1.414 1.413l-3.88-3.879a4 4 0 0 1 0-5.656l3.882-3.879a1 1 0 1 1 1.414 1.414l-3.88 3.88a2 2 0 0 0-.325.445"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Bt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M5 22.5h2a1 1 0 0 1 0 2H5a5.006 5.006 0 0 1-5-5v-14a5.006 5.006 0 0 1 5-5h2a1 1 0 0 1 0 2H5a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3"}),e("path",{d:"m18.95 5.792 3.879 3.88h-.004a4 4 0 0 1 0 5.655l-3.88 3.88a1 1 0 1 1-1.413-1.415l3.879-3.879q.2-.207.334-.462-.019.003-.036.008a.1.1 0 0 1-.042.008L5.989 13.5a1 1 0 0 1 0-2l15.684-.032q.01 0 .02.004l.022.004a2 2 0 0 0-.3-.39l-3.88-3.879a1 1 0 0 1 1.415-1.414"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Rt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M6.365 6.416a.5.5 0 0 1-.278.084H4.294v12h1.793a.5.5 0 0 1 .353.854L4 21.794a1 1 0 0 1-1.414 0l-2.44-2.44A.5.5 0 0 1 .5 18.5h1.794v-12H.5a.5.5 0 0 1-.353-.854l2.439-2.439a1 1 0 0 1 1.414 0l2.44 2.44a.5.5 0 0 1-.075.769M23 6.5H10a1 1 0 0 1 0-2h13a1 1 0 1 1 0 2M10 11.5h13a1 1 0 0 1 0 2H10a1 1 0 0 1 0-2M23 18.5H10a1 1 0 0 0 0 2h13a1 1 0 1 0 0-2"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),$t=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M13 1.5v2a1 1 0 0 1-2 0v-2a1 1 0 0 1 2 0m-1 19a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1m-8-8a1 1 0 0 0-1-1H1a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1m19-1h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2m-4.982-9.382a1 1 0 0 0-1.367.364l-1 1.731a1 1 0 0 0 1.731 1.001l1-1.731a1 1 0 0 0-.364-1.365M7.987 19.421a1 1 0 0 0-1.366.364l-1 1.731a1 1 0 1 0 1.731 1.001l1-1.731a1 1 0 0 0-.365-1.365m-3.272-12.3-1.731-1a1 1 0 0 0-1 1.731l1.731 1a1 1 0 0 0 1-1.731m17.3 10.03-1.731-1a1 1 0 0 0-1 1.731l1.731 1a1 1 0 1 0 1-1.731M7.349 2.482a1 1 0 0 0-1.731 1l1 1.731a1 1 0 1 0 1.731-1.001zm10.03 17.3a1 1 0 0 0-1.731 1l1 1.731a1 1 0 0 0 1.731-1zm2.408-10.8a1 1 0 0 0 .5-.134l1.731-1a1 1 0 0 0-1-1.731l-1.731 1a1 1 0 0 0 .5 1.865M3.713 16.148l-1.731 1a1 1 0 1 0 1 1.731l1.731-1a1 1 0 0 0-1-1.731"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Lt=n((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M21 12.924V11.5a9 9 0 0 0-18 0v1.424A5 5 0 0 0 5 22.5a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2v-1a7 7 0 0 1 14 0v1a2 2 0 0 0-2 2v6h-3a1 1 0 0 0 0 2h5a5 5 0 0 0 2-9.576M5 20.5a3 3 0 1 1 0-6zm14 0v-6a3 3 0 0 1 0 6"})}))),zt=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"M10 18.5a1 1 0 0 0 1-1v-6a1 1 0 0 0-2 0v6a1 1 0 0 0 1 1M14.707 18.207A1 1 0 0 1 13 17.499v-6a1 1 0 1 1 2 0v6a1 1 0 0 1-.293.707"}),e("path",{fillRule:"evenodd",d:"M21 4.5h-3.1a5.01 5.01 0 0 0-4.9-4h-2a5.01 5.01 0 0 0-4.9 4H3a1 1 0 0 0 0 2h1v13a5.006 5.006 0 0 0 5 5h6a5.006 5.006 0 0 0 5-5v-13h1a1 1 0 1 0 0-2m-10-2h2a3.01 3.01 0 0 1 2.829 2H8.171A3.01 3.01 0 0 1 11 2.5m7 17a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3v-13h12z",clipRule:"evenodd"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ht=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[t("g",{fill:"#000",clipPath:"url(#a)",children:[e("path",{d:"m11 18.516.007-15.438L8.08 6.005a1 1 0 0 1-1.414-1.414l3.21-3.212a3 3 0 0 1 4.245 0l3.21 3.215a1 1 0 0 1-1.413 1.414l-2.912-2.913L13 18.516a1 1 0 1 1-2 0"}),e("path",{d:"M22 21.5v-4a1 1 0 0 1 2 0v4a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-4a1 1 0 0 1 2 0v4a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1"})]}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ut=n((n=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...n,children:[e("g",{fill:"#000",clipPath:"url(#a)",children:e("path",{d:"M12 13a6 6 0 1 0 0-12 6 6 0 0 0 0 12m0-10a4 4 0 1 1 0 8 4 4 0 0 1 0-8M12 15a9.01 9.01 0 0 0-9 9 1 1 0 0 0 2 0 7 7 0 1 1 14 0 1 1 0 0 0 2 0 9.01 9.01 0 0 0-9-9"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]})));function Ft(t,e={}){let n=!1;function r(e){const n=`chakra-${(["container","root"].includes(null!=e?e:"")?[t]:[t,e]).filter(Boolean).join("__")}`;return{className:n,selector:`.${n}`,toString:()=>e}}return{parts:function(...i){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(const t of i)e[t]=r(t);return Ft(t,e)},toPart:r,extend:function(...n){for(const t of n)t in e||(e[t]=r(t));return Ft(t,e)},selectors:function(){return Object.fromEntries(Object.entries(e).map((([t,e])=>[t,e.selector])))},classnames:function(){return Object.fromEntries(Object.entries(e).map((([t,e])=>[t,e.className])))},get keys(){return Object.keys(e)},__type:{}}}var qt=Ft("accordion").parts("root","container","button","panel").extend("icon"),Wt=Ft("alert").parts("title","description","container").extend("icon","spinner");Ft("avatar").parts("label","badge","container").extend("excessLabel","group"),Ft("breadcrumb").parts("link","item","container").extend("separator"),Ft("button").parts();var Vt=Ft("checkbox").parts("control","icon","container").extend("label");Ft("progress").parts("track","filledTrack").extend("label"),Ft("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Ft("editable").parts("preview","input","textarea"),Ft("form").parts("container","requiredIndicator","helperText"),Ft("formError").parts("text","icon");var Yt=Ft("input").parts("addon","field","element","group");Ft("list").parts("container","item","icon"),Ft("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Ft("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Ft("numberinput").parts("root","field","stepperGroup","stepper"),Ft("pininput").parts("field"),Ft("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Ft("progress").parts("label","filledTrack","track"),Ft("radio").parts("container","control","label");var Xt=Ft("select").parts("field","icon");Ft("slider").parts("container","track","thumb","filledTrack","mark"),Ft("stat").parts("container","label","helpText","number","icon"),Ft("switch").parts("container","track","thumb","label"),Ft("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Ft("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");var Gt=Ft("tag").parts("container","label","closeButton");Ft("card").parts("container","header","body","footer"),Ft("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Kt,defineMultiStyleConfig:Zt}=r(qt.keys),Jt=Zt({baseStyle:Kt({container:{border:"solid 1px lightgray",borderRadius:"md",bg:"gray.100",color:"black",marginBottom:4},panel:{bg:"white"}})}),{definePartsStyle:Qt,defineMultiStyleConfig:te}=r(Wt.keys),ee=te({baseStyle:Qt((t=>{const{colorScheme:e,theme:n}=t,r=n.colors[e];return{icon:{svg:{path:{fill:r[500]}}},container:{bg:r[100],borderColor:r[500],borderRadius:"lg",borderStyle:"solid",borderWidth:1,padding:4},description:{color:"blackAlpha.900"},title:{color:"blackAlpha.900"}}})),defaultProps:{variant:"subtle"}}),ne=o({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1.25em",path:{fill:"white"}}},variants:{alert:i({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),outline:i({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),ghost:i({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}})}}),{definePartsStyle:re,defineMultiStyleConfig:ie}=r(Vt.keys),oe=ie({baseStyle:re({control:{borderRadius:"base",borderColor:"brand.500",svg:{path:{fill:"inherit"}},_checked:{svg:{path:{fill:"white"}}},_hover:{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)",_disabled:{bg:"gray.100"}},_indeterminate:{bg:"brand.100",borderColor:"brand.100",_hover:{bg:"brand.100",boxShadow:"none"}},_invalid:{_checked:{borderColor:"brand.500"}}}}),sizes:{lg:{control:{boxSize:7,svg:{width:"1.75em"}}},md:{control:{boxSize:6,svg:{width:"1.5em"}}},sm:{control:{boxSize:4,svg:{width:"1.5em"}}}}}),ae=o({baseStyle:{helperText:{fontSize:"sm"}}}),ce=o({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}}),ue=o({baseStyle:{_groupInvalid:{color:"red.500"}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),{definePartsStyle:le,defineMultiStyleConfig:se}=r(Yt.keys),fe=se({baseStyle:le({group:{svg:{width:"1.25em",path:{fill:"gray.800"}},_groupDisabled:{svg:{path:{fill:"gray.400"}}}},field:{_readOnly:{pointerEvents:"none"}}}),variants:{outline:{field:{border:"solid 1px",borderRadius:"lg",borderColor:"brand.200",":focus, :hover":{borderColor:"brand.600"},":hover:not([disabled])":{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},color:"gray.800",_disabled:{bg:"gray.200",borderColor:"gray.300",color:"gray.900",":focus, :hover":{bg:"gray.200",borderColor:"gray.300"}},_invalid:{boxShadow:"none",":focus, :hover":{borderColor:"red.500"}}}}},defaultProps:{variant:"outline"}}),{definePartsStyle:he,defineMultiStyleConfig:pe}=r(Xt.keys),de=pe({baseStyle:he({icon:{svg:{path:{fill:"gray.800"}},_disabled:{svg:{path:{fill:"gray.400"}}}},field:{_readOnly:{pointerEvents:"none"}}}),variants:{outline:{field:{border:"solid 1px",borderRadius:"lg",borderColor:"brand.200",":focus, :hover":{borderColor:"brand.600"},":hover:not([disabled])":{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)"},color:"gray.800",_disabled:{bg:"gray.200",borderColor:"gray.300",color:"gray.900",":focus, :hover":{bg:"gray.200",borderColor:"gray.300"}},_invalid:{boxShadow:"none",":focus, :hover":{borderColor:"red.500"}}}}},sizes:{lg:{icon:{fontSize:"lg"}},md:{icon:{fontSize:"md"}},sm:{icon:{fontSize:"sm"}},xs:{icon:{fontSize:"xs"}}},defaultProps:{variant:"outline"}});var ye="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ve(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ge={exports:{}};ge.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",o="minute",a="hour",c="day",u="week",l="month",s="quarter",f="year",h="date",p="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},g=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},m={s:g,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,l),o=n-i<0,a=e.clone().add(r+(o?-1:1),l);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:l,y:f,w:u,d:c,D:h,h:a,m:o,s:i,ms:r,Q:s}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",w={};w[b]=v;var x="$isDayjsObject",O=function(t){return t instanceof P||!(!t||!t[x])},S=function t(e,n,r){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),n&&(w[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var c=e.name;w[c]=e,i=c}return!r&&i&&(b=i),i||!r&&b},j=function(t,e){if(O(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new P(n)},A=m;A.l=S,A.i=O,A.w=function(t,e){return j(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var P=function(){function v(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[x]=!0}var g=v.prototype;return g.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(A.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},g.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},g.$utils=function(){return A},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(t,e){var n=j(t);return this.startOf(e)<=n&&n<=this.endOf(e)},g.isAfter=function(t,e){return j(t)<this.startOf(e)},g.isBefore=function(t,e){return this.endOf(e)<j(t)},g.$g=function(t,e,n){return A.u(t)?this[e]:this.set(n,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var n=this,r=!!A.u(e)||e,s=A.p(t),p=function(t,e){var i=A.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(c)},d=function(t,e){return A.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,v=this.$M,g=this.$D,m="set"+(this.$u?"UTC":"");switch(s){case f:return r?p(1,0):p(31,11);case l:return r?p(1,v):p(0,v+1);case u:var b=this.$locale().weekStart||0,w=(y<b?y+7:y)-b;return p(r?g-w:g+(6-w),v);case c:case h:return d(m+"Hours",0);case a:return d(m+"Minutes",1);case o:return d(m+"Seconds",2);case i:return d(m+"Milliseconds",3);default:return this.clone()}},g.endOf=function(t){return this.startOf(t,!1)},g.$set=function(t,e){var n,u=A.p(t),s="set"+(this.$u?"UTC":""),p=(n={},n[c]=s+"Date",n[h]=s+"Date",n[l]=s+"Month",n[f]=s+"FullYear",n[a]=s+"Hours",n[o]=s+"Minutes",n[i]=s+"Seconds",n[r]=s+"Milliseconds",n)[u],d=u===c?this.$D+(e-this.$W):e;if(u===l||u===f){var y=this.clone().set(h,1);y.$d[p](d),y.init(),this.$d=y.set(h,Math.min(this.$D,y.daysInMonth())).$d}else p&&this.$d[p](d);return this.init(),this},g.set=function(t,e){return this.clone().$set(t,e)},g.get=function(t){return this[A.p(t)]()},g.add=function(r,s){var h,p=this;r=Number(r);var d=A.p(s),y=function(t){var e=j(p);return A.w(e.date(e.date()+Math.round(t*r)),p)};if(d===l)return this.set(l,this.$M+r);if(d===f)return this.set(f,this.$y+r);if(d===c)return y(1);if(d===u)return y(7);var v=(h={},h[o]=e,h[a]=n,h[i]=t,h)[d]||1,g=this.$d.getTime()+r*v;return A.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),o=this.$H,a=this.$m,c=this.$M,u=n.weekdays,l=n.months,s=n.meridiem,f=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},h=function(t){return A.s(o%12||12,t,"0")},d=s||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return A.s(e.$y,4,"0");case"M":return c+1;case"MM":return A.s(c+1,2,"0");case"MMM":return f(n.monthsShort,c,l,3);case"MMMM":return f(l,c);case"D":return e.$D;case"DD":return A.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(n.weekdaysMin,e.$W,u,2);case"ddd":return f(n.weekdaysShort,e.$W,u,3);case"dddd":return u[e.$W];case"H":return String(o);case"HH":return A.s(o,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return d(o,a,!0);case"A":return d(o,a,!1);case"m":return String(a);case"mm":return A.s(a,2,"0");case"s":return String(e.$s);case"ss":return A.s(e.$s,2,"0");case"SSS":return A.s(e.$ms,3,"0");case"Z":return i}return null}(t)||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,h,p){var d,y=this,v=A.p(h),g=j(r),m=(g.utcOffset()-this.utcOffset())*e,b=this-g,w=function(){return A.m(y,g)};switch(v){case f:d=w()/12;break;case l:d=w();break;case s:d=w()/3;break;case u:d=(b-m)/6048e5;break;case c:d=(b-m)/864e5;break;case a:d=b/n;break;case o:d=b/e;break;case i:d=b/t;break;default:d=b}return p?d:A.a(d)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return w[this.$L]},g.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},g.clone=function(){return A.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),M=P.prototype;return j.prototype=M,[["$ms",r],["$s",i],["$m",o],["$H",a],["$W",c],["$M",l],["$y",f],["$D",h]].forEach((function(t){M[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),j.extend=function(t,e){return t.$i||(t(e,P,j),t.$i=!0),j},j.locale=S,j.isDayjs=O,j.unix=function(t){return j(1e3*t)},j.en=w[b],j.Ls=w,j.p={},j}();var me,be,we,xe=ve(ge.exports),Oe={exports:{}};Oe.exports=(me="minute",be=/[+-]\d\d(?::?\d\d)?/g,we=/([+-]|\d\d)/g,function(t,e,n){var r=e.prototype;n.utc=function(t){return new e({date:t,utc:!0,args:arguments})},r.utc=function(t){var e=n(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),me):e},r.local=function(){return n(this.toDate(),{locale:this.$L,utc:!1})};var i=r.parse;r.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var o=r.init;r.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else o.call(this)};var a=r.utcOffset;r.utcOffset=function(t,e){var n=this.$utils().u;if(n(t))return this.$u?0:n(this.$offset)?a.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(be);if(!e)return null;var n=(""+e[0]).match(we)||["-",0,0],r=n[0],i=60*+n[1]+ +n[2];return 0===i?0:"+"===r?i:-i}(t),null===t))return this;var r=Math.abs(t)<=16?60*t:t,i=this;if(e)return i.$offset=r,i.$u=0===t,i;if(0!==t){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(r+o,me)).$offset=r,i.$x.$localOffset=o}else i=this.utc();return i};var c=r.format;r.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,e)},r.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},r.isUTC=function(){return!!this.$u},r.toISOString=function(){return this.toDate().toISOString()},r.toString=function(){return this.toDate().toUTCString()};var u=r.toDate;r.toDate=function(t){return"s"===t&&this.$offset?n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var l=r.diff;r.diff=function(t,e,r){if(t&&this.$u===t.$u)return l.call(this,t,e,r);var i=this.local(),o=n(t).local();return l.call(i,o,e,r)}});var Se=ve(Oe.exports);xe.extend(Se);const je=({timeString:t,toEndDate:e})=>""===t?"":e?xe(`${t}T23:59:59`).utc().unix().toString():xe(t).utc().unix().toString(),Ae=({number:t,signDisplay:e="exceptZero",isDecimal:n=!0})=>{if(!Number.isFinite(t))throw new Error("Number is not a finite number");return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,signDisplay:e}).format(n?t:t/100)},Pe=({amount:t,signDisplay:e="auto"})=>{if(!Number.isFinite(t))throw new Error("Amount is not a finite number");let n={};t>-1&&t<1&&0!==t&&(n={minimumIntegerDigits:1,minimumFractionDigits:5});return new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",signDisplay:e,...n}).format(t)};
|
|
10
2
|
/*!
|
|
11
3
|
* decimal.js v10.4.3
|
|
12
4
|
* An arbitrary-precision Decimal type for JavaScript.
|
|
13
5
|
* https://github.com/MikeMcl/decimal.js
|
|
14
6
|
* Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
15
7
|
* MIT Licence
|
|
16
|
-
*/var qe,Ve,We=9e15,Ye=1e9,Xe="0123456789abcdef",Ge="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Ke="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Je={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-We,maxE:We,crypto:!1},Qe=!0,tn="[DecimalError] ",en=tn+"Invalid argument: ",nn=tn+"Precision limit exceeded",rn=tn+"crypto unavailable",on="[object Decimal]",an=Math.floor,cn=Math.pow,un=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ln=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,sn=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,fn=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,hn=1e7,pn=7,dn=Ge.length-1,yn=Ke.length-1,vn={toStringTag:on};function gn(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)r=t[e]+"",(n=pn-r.length)&&(o+=En(n)),o+=r;a=t[e],(n=pn-(r=a+"").length)&&(o+=En(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function mn(t,e,n){if(t!==~~t||t<e||t>n)throw Error(en+t)}function bn(t,e,n,r){var i,o,a,c;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=pn,i=0):(i=Math.ceil((e+1)/pn),e%=pn),o=cn(10,pn-e),c=t[i]%o|0,null==r?e<3?(0==e?c=c/100|0:1==e&&(c=c/10|0),a=n<4&&99999==c||n>3&&49999==c||5e4==c||0==c):a=(n<4&&c+1==o||n>3&&c+1==o/2)&&(t[i+1]/o/100|0)==cn(10,e-2)-1||(c==o/2||0==c)&&0==(t[i+1]/o/100|0):e<4?(0==e?c=c/1e3|0:1==e?c=c/100|0:2==e&&(c=c/10|0),a=(r||n<4)&&9999==c||!r&&n>3&&4999==c):a=((r||n<4)&&c+1==o||!r&&n>3&&c+1==o/2)&&(t[i+1]/o/1e3|0)==cn(10,e-3)-1,a}function wn(t,e,n){for(var r,i,o=[0],a=0,c=t.length;a<c;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=Xe.indexOf(t.charAt(a++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}vn.absoluteValue=vn.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),On(t)},vn.ceil=function(){return On(new this.constructor(this),this.e+1,2)},vn.clampedTo=vn.clamp=function(t,e){var n=this,r=n.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(en+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},vn.comparedTo=vn.cmp=function(t){var e,n,r,i,o=this,a=o.d,c=(t=new o.constructor(t)).d,u=o.s,l=t.s;if(!a||!c)return u&&l?u!==l?u:a===c?0:!a^u<0?1:-1:NaN;if(!a[0]||!c[0])return a[0]?u:c[0]?-l:0;if(u!==l)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,n=(r=a.length)<(i=c.length)?r:i;e<n;++e)if(a[e]!==c[e])return a[e]>c[e]^u<0?1:-1;return r===i?0:r>i^u<0?1:-1},vn.cosine=vn.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+pn,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;r=e.d.length,r<32?i=(1/Rn(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=Bn(t,1,e.times(i),new t(1));for(var o=n;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=n,e}(r,Ln(r,n)),r.precision=t,r.rounding=e,On(2==Ve||3==Ve?n.neg():n,t,e,!0)):new r(1):new r(NaN)},vn.cubeRoot=vn.cbrt=function(){var t,e,n,r,i,o,a,c,u,l,s=this,f=s.constructor;if(!s.isFinite()||s.isZero())return new f(s);for(Qe=!1,(o=s.s*cn(s.s*s,1/3))&&Math.abs(o)!=1/0?r=new f(o.toString()):(n=gn(s.d),(o=((t=s.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=cn(n,1/3),t=an((t+1)/3)-(t%3==(t<0?-1:2)),(r=new f(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=s.s),a=(t=f.precision)+3;;)if(l=(u=(c=r).times(c).times(c)).plus(s),r=xn(l.plus(s).times(c),l.plus(u),a+2,1),gn(c.d).slice(0,a)===(n=gn(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(On(r,t+1,1),e=!r.times(r).times(r).eq(s));break}if(!i&&(On(c,t+1,0),c.times(c).times(c).eq(s))){r=c;break}a+=4,i=1}return Qe=!0,On(r,t,f.rounding,e)},vn.decimalPlaces=vn.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=((t=e.length-1)-an(this.e/pn))*pn,t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},vn.dividedBy=vn.div=function(t){return xn(this,new this.constructor(t))},vn.dividedToIntegerBy=vn.divToInt=function(t){var e=this.constructor;return On(xn(this,new e(t),0,1,1),e.precision,e.rounding)},vn.equals=vn.eq=function(t){return 0===this.cmp(t)},vn.floor=function(){return On(new this.constructor(this),this.e+1,3)},vn.greaterThan=vn.gt=function(t){return this.cmp(t)>0},vn.greaterThanOrEqualTo=vn.gte=function(t){var e=this.cmp(t);return 1==e||0===e},vn.hyperbolicCosine=vn.cosh=function(){var t,e,n,r,i,o=this,a=o.constructor,c=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return c;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/Rn(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=Bn(a,1,o.times(e),new a(1),!0);for(var u,l=t,s=new a(8);l--;)u=o.times(o),o=c.minus(u.times(s.minus(u.times(s))));return On(o,a.precision=n,a.rounding=r,!0)},vn.hyperbolicSine=vn.sinh=function(){var t,e,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=Bn(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=Bn(o,2,i=i.times(1/Rn(5,t)),i,!0);for(var a,c=new o(5),u=new o(16),l=new o(20);t--;)a=i.times(i),i=i.times(c.plus(a.times(u.times(a).plus(l))))}return o.precision=e,o.rounding=n,On(i,e,n,!0)},vn.hyperbolicTangent=vn.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,xn(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},vn.inverseCosine=vn.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?e.isNeg()?Mn(n,i,o):new n(0):new n(NaN):e.isZero()?Mn(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=Mn(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},vn.inverseHyperbolicCosine=vn.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,Qe=!1,n=n.times(n).minus(1).sqrt().plus(n),Qe=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},vn.inverseHyperbolicSine=vn.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,Qe=!1,n=n.times(n).plus(1).sqrt().plus(n),Qe=!0,r.precision=t,r.rounding=e,n.ln())},vn.inverseHyperbolicTangent=vn.atanh=function(){var t,e,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?On(new o(i),t,e,!0):(o.precision=n=r-i.e,i=xn(i.plus(1),new o(1).minus(i),n+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},vn.inverseSine=vn.asin=function(){var t,e,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==e?0===e?((t=Mn(o,n+4,r).times(.5)).s=i.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},vn.inverseTangent=vn.atan=function(){var t,e,n,r,i,o,a,c,u,l=this,s=l.constructor,f=s.precision,h=s.rounding;if(l.isFinite()){if(l.isZero())return new s(l);if(l.abs().eq(1)&&f+4<=yn)return(a=Mn(s,f+4,h).times(.25)).s=l.s,a}else{if(!l.s)return new s(NaN);if(f+4<=yn)return(a=Mn(s,f+4,h).times(.5)).s=l.s,a}for(s.precision=c=f+10,s.rounding=1,t=n=Math.min(28,c/pn+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Qe=!1,e=Math.ceil(c/pn),r=1,u=l.times(l),a=new s(l),i=l;-1!==t;)if(i=i.times(u),o=a.minus(i.div(r+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(r+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return n&&(a=a.times(2<<n-1)),Qe=!0,On(a,s.precision=f,s.rounding=h,!0)},vn.isFinite=function(){return!!this.d},vn.isInteger=vn.isInt=function(){return!!this.d&&an(this.e/pn)>this.d.length-2},vn.isNaN=function(){return!this.s},vn.isNegative=vn.isNeg=function(){return this.s<0},vn.isPositive=vn.isPos=function(){return this.s>0},vn.isZero=function(){return!!this.d&&0===this.d[0]},vn.lessThan=vn.lt=function(t){return this.cmp(t)<0},vn.lessThanOrEqualTo=vn.lte=function(t){return this.cmp(t)<1},vn.logarithm=vn.log=function(t){var e,n,r,i,o,a,c,u,l=this,s=l.constructor,f=s.precision,h=s.rounding;if(null==t)t=new s(10),e=!0;else{if(n=(t=new s(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new s(NaN);e=t.eq(10)}if(n=l.d,l.s<0||!n||!n[0]||l.eq(1))return new s(n&&!n[0]?-1/0:1!=l.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(Qe=!1,a=Dn(l,c=f+5),r=e?An(s,c+10):Dn(t,c),bn((u=xn(a,r,c,1)).d,i=f,h))do{if(a=Dn(l,c+=10),r=e?An(s,c+10):Dn(t,c),u=xn(a,r,c,1),!o){+gn(u.d).slice(i+1,i+15)+1==1e14&&(u=On(u,f+1,0));break}}while(bn(u.d,i+=10,h));return Qe=!0,On(u,f,h)},vn.minus=vn.sub=function(t){var e,n,r,i,o,a,c,u,l,s,f,h,p=this,d=p.constructor;if(t=new d(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new d(t.d||p.s!==t.s?p:NaN):t=new d(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(l=p.d,h=t.d,c=d.precision,u=d.rounding,!l[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!l[0])return new d(3===u?-0:0);t=new d(p)}return Qe?On(t,c,u):t}if(n=an(t.e/pn),s=an(p.e/pn),l=l.slice(),o=s-n){for((f=o<0)?(e=l,o=-o,a=h.length):(e=h,n=s,a=l.length),o>(r=Math.max(Math.ceil(c/pn),a)+2)&&(o=r,e.length=1),e.reverse(),r=o;r--;)e.push(0);e.reverse()}else{for((f=(r=l.length)<(a=h.length))&&(a=r),r=0;r<a;r++)if(l[r]!=h[r]){f=l[r]<h[r];break}o=0}for(f&&(e=l,l=h,h=e,t.s=-t.s),a=l.length,r=h.length-a;r>0;--r)l[a++]=0;for(r=h.length;r>o;){if(l[--r]<h[r]){for(i=r;i&&0===l[--i];)l[i]=hn-1;--l[i],l[r]+=hn}l[r]-=h[r]}for(;0===l[--a];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(t.d=l,t.e=jn(l,n),Qe?On(t,c,u):t):new d(3===u?-0:0)},vn.modulo=vn.mod=function(t){var e,n=this,r=n.constructor;return t=new r(t),!n.d||!t.s||t.d&&!t.d[0]?new r(NaN):!t.d||n.d&&!n.d[0]?On(new r(n),r.precision,r.rounding):(Qe=!1,9==r.modulo?(e=xn(n,t.abs(),0,3,1)).s*=t.s:e=xn(n,t,0,r.modulo,1),e=e.times(t),Qe=!0,n.minus(e))},vn.naturalExponential=vn.exp=function(){return Cn(this)},vn.naturalLogarithm=vn.ln=function(){return Dn(this)},vn.negated=vn.neg=function(){var t=new this.constructor(this);return t.s=-t.s,On(t)},vn.plus=vn.add=function(t){var e,n,r,i,o,a,c,u,l,s,f=this,h=f.constructor;if(t=new h(t),!f.d||!t.d)return f.s&&t.s?f.d||(t=new h(t.d||f.s===t.s?f:NaN)):t=new h(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.minus(t);if(l=f.d,s=t.d,c=h.precision,u=h.rounding,!l[0]||!s[0])return s[0]||(t=new h(f)),Qe?On(t,c,u):t;if(o=an(f.e/pn),r=an(t.e/pn),l=l.slice(),i=o-r){for(i<0?(n=l,i=-i,a=s.length):(n=s,r=o,a=l.length),i>(a=(o=Math.ceil(c/pn))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=l.length)-(i=s.length)<0&&(i=a,n=s,s=l,l=n),e=0;i;)e=(l[--i]=l[i]+s[i]+e)/hn|0,l[i]%=hn;for(e&&(l.unshift(e),++r),a=l.length;0==l[--a];)l.pop();return t.d=l,t.e=jn(l,r),Qe?On(t,c,u):t},vn.precision=vn.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(en+t);return n.d?(e=Pn(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},vn.round=function(){var t=this,e=t.constructor;return On(new e(t),t.e+1,e.rounding)},vn.sine=vn.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+pn,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:Bn(t,2,e,e);n=1.4*Math.sqrt(r),n=n>16?16:0|n,e=e.times(1/Rn(5,n)),e=Bn(t,2,e,e);for(var i,o=new t(5),a=new t(16),c=new t(20);n--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(c))));return e}(r,Ln(r,n)),r.precision=t,r.rounding=e,On(Ve>2?n.neg():n,t,e,!0)):new r(NaN)},vn.squareRoot=vn.sqrt=function(){var t,e,n,r,i,o,a=this,c=a.d,u=a.e,l=a.s,s=a.constructor;if(1!==l||!c||!c[0])return new s(!l||l<0&&(!c||c[0])?NaN:c?a:1/0);for(Qe=!1,0==(l=Math.sqrt(+a))||l==1/0?(((e=gn(c)).length+u)%2==0&&(e+="0"),l=Math.sqrt(e),u=an((u+1)/2)-(u<0||u%2),r=new s(e=l==1/0?"5e"+u:(e=l.toExponential()).slice(0,e.indexOf("e")+1)+u)):r=new s(l.toString()),n=(u=s.precision)+3;;)if(r=(o=r).plus(xn(a,o,n+2,1)).times(.5),gn(o.d).slice(0,n)===(e=gn(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(On(r,u+1,1),t=!r.times(r).eq(a));break}if(!i&&(On(o,u+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return Qe=!0,On(r,u,s.rounding,t)},vn.tangent=vn.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=xn(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,On(2==Ve||4==Ve?n.neg():n,t,e,!0)):new r(NaN)},vn.times=vn.mul=function(t){var e,n,r,i,o,a,c,u,l,s=this,f=s.constructor,h=s.d,p=(t=new f(t)).d;if(t.s*=s.s,!(h&&h[0]&&p&&p[0]))return new f(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(n=an(s.e/pn)+an(t.e/pn),(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],r=a=u+l;r--;)o.push(0);for(r=l;--r>=0;){for(e=0,i=u+r;i>r;)c=o[i]+p[r]*h[i-r-1]+e,o[i--]=c%hn|0,e=c/hn|0;o[i]=(o[i]+e)%hn|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=jn(o,n),Qe?On(t,f.precision,f.rounding):t},vn.toBinary=function(t,e){return $n(this,2,t,e)},vn.toDecimalPlaces=vn.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(mn(t,0,Ye),void 0===e?e=r.rounding:mn(e,0,8),On(n,t+n.e+1,e))},vn.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=Sn(r,!0):(mn(t,0,Ye),void 0===e?e=i.rounding:mn(e,0,8),n=Sn(r=On(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},vn.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=Sn(i):(mn(t,0,Ye),void 0===e?e=o.rounding:mn(e,0,8),n=Sn(r=On(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},vn.toFraction=function(t){var e,n,r,i,o,a,c,u,l,s,f,h,p=this,d=p.d,y=p.constructor;if(!d)return new y(p);if(l=n=new y(1),r=u=new y(0),a=(o=(e=new y(r)).e=Pn(d)-p.e-1)%pn,e.d[0]=cn(10,a<0?pn+a:a),null==t)t=o>0?e:l;else{if(!(c=new y(t)).isInt()||c.lt(l))throw Error(en+c);t=c.gt(e)?o>0?e:l:c}for(Qe=!1,c=new y(gn(d)),s=y.precision,y.precision=o=d.length*pn*2;f=xn(c,e,0,1,1),1!=(i=n.plus(f.times(r))).cmp(t);)n=r,r=i,i=l,l=u.plus(f.times(i)),u=i,i=e,e=c.minus(f.times(i)),c=i;return i=xn(t.minus(n),r,0,1,1),u=u.plus(i.times(l)),n=n.plus(i.times(r)),u.s=l.s=p.s,h=xn(l,r,o,1).minus(p).abs().cmp(xn(u,n,o,1).minus(p).abs())<1?[l,r]:[u,n],y.precision=s,Qe=!0,h},vn.toHexadecimal=vn.toHex=function(t,e){return $n(this,16,t,e)},vn.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:mn(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(Qe=!1,n=xn(n,t,0,e,1).times(t),Qe=!0,On(n)):(t.s=n.s,n=t),n},vn.toNumber=function(){return+this},vn.toOctal=function(t,e){return $n(this,8,t,e)},vn.toPower=vn.pow=function(t){var e,n,r,i,o,a,c=this,u=c.constructor,l=+(t=new u(t));if(!(c.d&&t.d&&c.d[0]&&t.d[0]))return new u(cn(+c,l));if((c=new u(c)).eq(1))return c;if(r=u.precision,o=u.rounding,t.eq(1))return On(c,r,o);if((e=an(t.e/pn))>=t.d.length-1&&(n=l<0?-l:l)<=9007199254740991)return i=kn(u,c,n,r),t.s<0?new u(1).div(i):On(i,r,o);if((a=c.s)<0){if(e<t.d.length-1)return new u(NaN);if(0==(1&t.d[e])&&(a=1),0==c.e&&1==c.d[0]&&1==c.d.length)return c.s=a,c}return(e=0!=(n=cn(+c,l))&&isFinite(n)?new u(n+"").e:an(l*(Math.log("0."+gn(c.d))/Math.LN10+c.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(Qe=!1,u.rounding=c.s=1,n=Math.min(12,(e+"").length),(i=Cn(t.times(Dn(c,r+n)),r)).d&&bn((i=On(i,r+5,1)).d,r,o)&&(e=r+10,+gn((i=On(Cn(t.times(Dn(c,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=On(i,r+1,0))),i.s=a,Qe=!0,u.rounding=o,On(i,r,o))},vn.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=Sn(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(mn(t,1,Ye),void 0===e?e=i.rounding:mn(e,0,8),n=Sn(r=On(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},vn.toSignificantDigits=vn.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(mn(t,1,Ye),void 0===e?e=n.rounding:mn(e,0,8)),On(new n(this),t,e)},vn.toString=function(){var t=this,e=t.constructor,n=Sn(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},vn.truncated=vn.trunc=function(){return On(new this.constructor(this),this.e+1,1)},vn.valueOf=vn.toJSON=function(){var t=this,e=t.constructor,n=Sn(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var xn=function(){function t(t,e,n){var r,i=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+i,t[o]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a,c,u){var l,s,f,h,p,d,y,v,g,m,b,w,x,O,S,j,A,M,P,E,k=r.constructor,_=r.s==i.s?1:-1,T=r.d,C=i.d;if(!(T&&T[0]&&C&&C[0]))return new k(r.s&&i.s&&(T?!C||T[0]!=C[0]:C)?T&&0==T[0]||!C?0*_:_/0:NaN);for(u?(p=1,s=r.e-i.e):(u=hn,p=pn,s=an(r.e/p)-an(i.e/p)),P=C.length,A=T.length,m=(g=new k(_)).d=[],f=0;C[f]==(T[f]||0);f++);if(C[f]>(T[f]||0)&&s--,null==o?(O=o=k.precision,a=k.rounding):O=c?o+(r.e-i.e)+1:o,O<0)m.push(1),d=!0;else{if(O=O/p+2|0,f=0,1==P){for(h=0,C=C[0],O++;(f<A||h)&&O--;f++)S=h*u+(T[f]||0),m[f]=S/C|0,h=S%C|0;d=h||f<A}else{for((h=u/(C[0]+1)|0)>1&&(C=t(C,h,u),T=t(T,h,u),P=C.length,A=T.length),j=P,w=(b=T.slice(0,P)).length;w<P;)b[w++]=0;(E=C.slice()).unshift(0),M=C[0],C[1]>=u/2&&++M;do{h=0,(l=e(C,b,P,w))<0?(x=b[0],P!=w&&(x=x*u+(b[1]||0)),(h=x/M|0)>1?(h>=u&&(h=u-1),1==(l=e(y=t(C,h,u),b,v=y.length,w=b.length))&&(h--,n(y,P<v?E:C,v,u))):(0==h&&(l=h=1),y=C.slice()),(v=y.length)<w&&y.unshift(0),n(b,y,w,u),-1==l&&(l=e(C,b,P,w=b.length))<1&&(h++,n(b,P<w?E:C,w,u)),w=b.length):0===l&&(h++,b=[0]),m[f++]=h,l&&b[0]?b[w++]=T[j]||0:(b=[T[j]],w=1)}while((j++<A||void 0!==b[0])&&O--);d=void 0!==b[0]}m[0]||m.shift()}if(1==p)g.e=s,qe=d;else{for(f=1,h=m[0];h>=10;h/=10)f++;g.e=f+s*p-1,On(g,c?o+g.e+1:o,a,d)}return g}}();function On(t,e,n,r){var i,o,a,c,u,l,s,f,h,p=t.constructor;t:if(null!=e){if(!(f=t.d))return t;for(i=1,c=f[0];c>=10;c/=10)i++;if((o=e-i)<0)o+=pn,a=e,u=(s=f[h=0])/cn(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/pn))>=(c=f.length)){if(!r)break t;for(;c++<=h;)f.push(0);s=u=0,i=1,a=(o%=pn)-pn+1}else{for(s=c=f[h],i=1;c>=10;c/=10)i++;u=(a=(o%=pn)-pn+i)<0?0:s/cn(10,i-a-1)%10|0}if(r=r||e<0||void 0!==f[h+1]||(a<0?s:s%cn(10,i-a-1)),l=n<4?(u||r)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?a>0?s/cn(10,i-a):0:f[h-1])%10&1||n==(t.s<0?8:7)),e<1||!f[0])return f.length=0,l?(e-=t.e+1,f[0]=cn(10,(pn-e%pn)%pn),t.e=-e||0):f[0]=t.e=0,t;if(0==o?(f.length=h,c=1,h--):(f.length=h+1,c=cn(10,pn-o),f[h]=a>0?(s/cn(10,i-a)%cn(10,a)|0)*c:0),l)for(;;){if(0==h){for(o=1,a=f[0];a>=10;a/=10)o++;for(a=f[0]+=c,c=1;a>=10;a/=10)c++;o!=c&&(t.e++,f[0]==hn&&(f[0]=1));break}if(f[h]+=c,f[h]!=hn)break;f[h--]=0,c=1}for(o=f.length;0===f[--o];)f.pop()}return Qe&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function Sn(t,e,n){if(!t.isFinite())return Nn(t);var r,i=t.e,o=gn(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+En(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+En(-i-1)+o,n&&(r=n-a)>0&&(o+=En(r))):i>=a?(o+=En(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+En(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=En(r))),o}function jn(t,e){var n=t[0];for(e*=pn;n>=10;n/=10)e++;return e}function An(t,e,n){if(e>dn)throw Qe=!0,n&&(t.precision=n),Error(nn);return On(new t(Ge),e,1,!0)}function Mn(t,e,n){if(e>yn)throw Error(nn);return On(new t(Ke),e,n,!0)}function Pn(t){var e=t.length-1,n=e*pn+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function En(t){for(var e="";t--;)e+="0";return e}function kn(t,e,n,r){var i,o=new t(1),a=Math.ceil(r/pn+4);for(Qe=!1;;){if(n%2&&zn((o=o.times(e)).d,a)&&(i=!0),0===(n=an(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}zn((e=e.times(e)).d,a)}return Qe=!0,o}function _n(t){return 1&t.d[t.d.length-1]}function Tn(t,e,n){for(var r,i=new t(e[0]),o=0;++o<e.length;){if(!(r=new t(e[o])).s){i=r;break}i[n](r)&&(i=r)}return i}function Cn(t,e){var n,r,i,o,a,c,u,l=0,s=0,f=0,h=t.constructor,p=h.rounding,d=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(Qe=!1,u=d):u=e,c=new h(.03125);t.e>-2;)t=t.times(c),f+=5;for(u+=r=Math.log(cn(2,f))/Math.LN10*2+5|0,n=o=a=new h(1),h.precision=u;;){if(o=On(o.times(t),u,1),n=n.times(++s),gn((c=a.plus(xn(o,n,u,1))).d).slice(0,u)===gn(a.d).slice(0,u)){for(i=f;i--;)a=On(a.times(a),u,1);if(null!=e)return h.precision=d,a;if(!(l<3&&bn(a.d,u-r,p,l)))return On(a,h.precision=d,p,Qe=!0);h.precision=u+=10,n=o=c=new h(1),s=0,l++}a=c}}function Dn(t,e){var n,r,i,o,a,c,u,l,s,f,h,p=1,d=t,y=d.d,v=d.constructor,g=v.rounding,m=v.precision;if(d.s<0||!y||!y[0]||!d.e&&1==y[0]&&1==y.length)return new v(y&&!y[0]?-1/0:1!=d.s?NaN:y?0:d);if(null==e?(Qe=!1,s=m):s=e,v.precision=s+=10,r=(n=gn(y)).charAt(0),!(Math.abs(o=d.e)<15e14))return l=An(v,s+2,m).times(o+""),d=Dn(new v(r+"."+n.slice(1)),s-10).plus(l),v.precision=m,null==e?On(d,m,g,Qe=!0):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=gn((d=d.times(t)).d)).charAt(0),p++;for(o=d.e,r>1?(d=new v("0."+n),o++):d=new v(r+"."+n.slice(1)),f=d,u=a=d=xn(d.minus(1),d.plus(1),s,1),h=On(d.times(d),s,1),i=3;;){if(a=On(a.times(h),s,1),gn((l=u.plus(xn(a,new v(i),s,1))).d).slice(0,s)===gn(u.d).slice(0,s)){if(u=u.times(2),0!==o&&(u=u.plus(An(v,s+2,m).times(o+""))),u=xn(u,new v(p),s,1),null!=e)return v.precision=m,u;if(!bn(u.d,s-10,g,c))return On(u,v.precision=m,g,Qe=!0);v.precision=s+=10,l=a=d=xn(f.minus(1),f.plus(1),s,1),h=On(d.times(d),s,1),i=c=1}u=l,i+=2}}function Nn(t){return String(t.s*t.s/0)}function In(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%pn,n<0&&(r+=pn),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=pn;r<i;)t.d.push(+e.slice(r,r+=pn));e=e.slice(r),r=pn-e.length}else r-=i;for(;r--;)e+="0";t.d.push(+e),Qe&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function Bn(t,e,n,r,i){var o,a,c,u,l=t.precision,s=Math.ceil(l/pn);for(Qe=!1,u=n.times(n),c=new t(r);;){if(a=xn(c.times(u),new t(e++*e++),l,1),c=i?r.plus(a):r.minus(a),r=xn(a.times(u),new t(e++*e++),l,1),void 0!==(a=c.plus(r)).d[s]){for(o=s;a.d[o]===c.d[o]&&o--;);if(-1==o)break}o=c,c=r,r=a,a=o}return Qe=!0,a.d.length=s+1,a}function Rn(t,e){for(var n=t;--e;)n*=t;return n}function Ln(t,e){var n,r=e.s<0,i=Mn(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return Ve=r?4:1,e;if((n=e.divToInt(i)).isZero())Ve=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return Ve=_n(n)?r?2:3:r?4:1,e;Ve=_n(n)?r?1:4:r?3:2}return e.minus(i).abs()}function $n(t,e,n,r){var i,o,a,c,u,l,s,f,h,p=t.constructor,d=void 0!==n;if(d?(mn(n,1,Ye),void 0===r?r=p.rounding:mn(r,0,8)):(n=p.precision,r=p.rounding),t.isFinite()){for(d?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(a=(s=Sn(t)).indexOf("."))>=0&&(s=s.replace(".",""),(h=new p(1)).e=s.length-a,h.d=wn(Sn(h),10,i),h.e=h.d.length),o=u=(f=wn(s,10,i)).length;0==f[--u];)f.pop();if(f[0]){if(a<0?o--:((t=new p(t)).d=f,t.e=o,f=(t=xn(t,h,n,r,0,i)).d,o=t.e,l=qe),a=f[n],c=i/2,l=l||void 0!==f[n+1],l=r<4?(void 0!==a||l)&&(0===r||r===(t.s<0?3:2)):a>c||a===c&&(4===r||l||6===r&&1&f[n-1]||r===(t.s<0?8:7)),f.length=n,l)for(;++f[--n]>i-1;)f[n]=0,n||(++o,f.unshift(1));for(u=f.length;!f[u-1];--u);for(a=0,s="";a<u;a++)s+=Xe.charAt(f[a]);if(d){if(u>1)if(16==e||8==e){for(a=16==e?4:3,--u;u%a;u++)s+="0";for(u=(f=wn(s,i,e)).length;!f[u-1];--u);for(a=1,s="1.";a<u;a++)s+=Xe.charAt(f[a])}else s=s.charAt(0)+"."+s.slice(1);s=s+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)s="0"+s;s="0."+s}else if(++o>u)for(o-=u;o--;)s+="0";else o<u&&(s=s.slice(0,o)+"."+s.slice(o))}else s=d?"0p+0":"0";s=(16==e?"0x":2==e?"0b":8==e?"0o":"")+s}else s=Nn(t);return t.s<0?"-"+s:s}function zn(t,e){if(t.length>e)return t.length=e,!0}function Hn(t){return new this(t).abs()}function Zn(t){return new this(t).acos()}function Un(t){return new this(t).acosh()}function Fn(t,e){return new this(t).plus(e)}function qn(t){return new this(t).asin()}function Vn(t){return new this(t).asinh()}function Wn(t){return new this(t).atan()}function Yn(t){return new this(t).atanh()}function Xn(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,o=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?Mn(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=Mn(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(xn(t,e,o,1)),e=Mn(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(xn(t,e,o,1)):(n=Mn(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function Gn(t){return new this(t).cbrt()}function Kn(t){return On(t=new this(t),t.e+1,2)}function Jn(t,e,n){return new this(t).clamp(e,n)}function Qn(t){if(!t||"object"!=typeof t)throw Error(tn+"Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,Ye,"rounding",0,8,"toExpNeg",-We,0,"toExpPos",0,We,"maxE",0,We,"minE",-We,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],i&&(this[n]=Je[n]),void 0!==(r=t[n])){if(!(an(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(en+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=Je[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(en+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(rn);this[n]=!0}else this[n]=!1}return this}function tr(t){return new this(t).cos()}function er(t){return new this(t).cosh()}function nr(t,e){return new this(t).div(e)}function rr(t){return new this(t).exp()}function ir(t){return On(t=new this(t),t.e+1,3)}function or(){var t,e,n=new this(0);for(Qe=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return Qe=!0,new this(1/0);n=e}return Qe=!0,n.sqrt()}function ar(t){return t instanceof Pr||t&&t.toStringTag===on||!1}function cr(t){return new this(t).ln()}function ur(t,e){return new this(t).log(e)}function lr(t){return new this(t).log(2)}function sr(t){return new this(t).log(10)}function fr(){return Tn(this,arguments,"lt")}function hr(){return Tn(this,arguments,"gt")}function pr(t,e){return new this(t).mod(e)}function dr(t,e){return new this(t).mul(e)}function yr(t,e){return new this(t).pow(e)}function vr(t){var e,n,r,i,o=0,a=new this(1),c=[];if(void 0===t?t=this.precision:mn(t,1,Ye),r=Math.ceil(t/pn),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:c[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(rn);for(e=crypto.randomBytes(r*=4);o<r;)(i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(c.push(i%1e7),o+=4);o=r/4}else for(;o<r;)c[o++]=1e7*Math.random()|0;for(r=c[--o],t%=pn,r&&t&&(i=cn(10,pn-t),c[o]=(r/i|0)*i);0===c[o];o--)c.pop();if(o<0)n=0,c=[0];else{for(n=-1;0===c[0];n-=pn)c.shift();for(r=1,i=c[0];i>=10;i/=10)r++;r<pn&&(n-=pn-r)}return a.e=n,a.d=c,a}function gr(t){return On(t=new this(t),t.e+1,this.rounding)}function mr(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function br(t){return new this(t).sin()}function wr(t){return new this(t).sinh()}function xr(t){return new this(t).sqrt()}function Or(t,e){return new this(t).sub(e)}function Sr(){var t=0,e=arguments,n=new this(e[t]);for(Qe=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return Qe=!0,On(n,this.precision,this.rounding)}function jr(t){return new this(t).tan()}function Ar(t){return new this(t).tanh()}function Mr(t){return On(t=new this(t),t.e+1,1)}vn[Symbol.for("nodejs.util.inspect.custom")]=vn.toString,vn[Symbol.toStringTag]="Decimal";var Pr=vn.constructor=function t(e){var n,r,i;function o(t){var e,n,r,i=this;if(!(i instanceof o))return new o(t);if(i.constructor=o,ar(t))return i.s=t.s,void(Qe?!t.d||t.e>o.maxE?(i.e=NaN,i.d=null):t.e<o.minE?(i.e=0,i.d=[0]):(i.e=t.e,i.d=t.d.slice()):(i.e=t.e,i.d=t.d?t.d.slice():t.d));if("number"===(r=typeof t)){if(0===t)return i.s=1/t<0?-1:1,i.e=0,void(i.d=[0]);if(t<0?(t=-t,i.s=-1):i.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(Qe?e>o.maxE?(i.e=NaN,i.d=null):e<o.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[t]):(i.e=e,i.d=[t]))}return 0*t!=0?(t||(i.s=NaN),i.e=NaN,void(i.d=null)):In(i,t.toString())}if("string"!==r)throw Error(en+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===n&&(t=t.slice(1)),i.s=1),fn.test(t)?In(i,t):function(t,e){var n,r,i,o,a,c,u,l,s;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),fn.test(e))return In(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(ln.test(e))n=16,e=e.toLowerCase();else if(un.test(e))n=2;else{if(!sn.test(e))throw Error(en+e);n=8}for((o=e.search(/p/i))>0?(u=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),a=(o=e.indexOf("."))>=0,r=t.constructor,a&&(o=(c=(e=e.replace(".","")).length)-o,i=kn(r,new r(n),o,2*o)),o=s=(l=wn(e,n,hn)).length-1;0===l[o];--o)l.pop();return o<0?new r(0*t.s):(t.e=jn(l,s),t.d=l,Qe=!1,a&&(t=xn(t,i,4*c)),u&&(t=t.times(Math.abs(u)<54?cn(2,u):Pr.pow(2,u))),Qe=!0,t)}(i,t)}if(o.prototype=vn,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=Qn,o.clone=t,o.isDecimal=ar,o.abs=Hn,o.acos=Zn,o.acosh=Un,o.add=Fn,o.asin=qn,o.asinh=Vn,o.atan=Wn,o.atanh=Yn,o.atan2=Xn,o.cbrt=Gn,o.ceil=Kn,o.clamp=Jn,o.cos=tr,o.cosh=er,o.div=nr,o.exp=rr,o.floor=ir,o.hypot=or,o.ln=cr,o.log=ur,o.log10=sr,o.log2=lr,o.max=fr,o.min=hr,o.mod=pr,o.mul=dr,o.pow=yr,o.random=vr,o.round=gr,o.sign=mr,o.sin=br,o.sinh=wr,o.sqrt=xr,o.sub=Or,o.sum=Sr,o.tan=jr,o.tanh=Ar,o.trunc=Mr,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}(Je);Ge=new Pr(Ge),Ke=new Pr(Ke);const Er=({data:t,dataKey:e})=>{const n=t?.length&&t[0][e],r=t?.length&&t[t.length-1][e];if(!t?.length)return{startingAmount:0,endingAmount:0,delta:0,percentChange:0,isNetGain:!0};const i=new Pr(n),o=new Pr(r),a=o.minus(i);return{startingAmount:n,endingAmount:r,delta:Number(a),percentChange:100*Number(a.dividedBy(i)),isNetGain:o.gt(i)}},kr=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},_r={redRemains:(t=1)=>Tr({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>Tr({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>Tr({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>Tr({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>Tr({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2,1]}),lighthouse:(t=1)=>Tr({rgb:"rgb(244, 244, 244)",alpha:t}),coolElegance:(t=1)=>Tr({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>Tr({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>Tr({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08,1]})},Tr=({rgb:t,alpha:e,enabledAlphaValues:n=[1]})=>{if(!n.includes(e))throw`Unsupported alpha value: ${e}. Update the color function in uiColors.ts to enable additional values.`;const[r,i,o]=t.replace(/[^\d,]/g,"").split(",");return`rgba(${r}, ${i}, ${o}, ${e})`},Cr=o({variants:{simple:{th:{borderColor:_r.coolElegance()},td:{borderColor:_r.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:Dr,defineMultiStyleConfig:Nr}=r(ae.keys),Ir=Dr({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),Br=Dr({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),Rr=Dr({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var Lr=a({colors:{brand:{50:"#fafafa",100:"#cdcfd1",200:"#bfc3c5",300:"#b2b6b9",400:"#a5a9ac",500:"#8a9094",600:"#70777b",700:"#646a6d",800:"#585d60",900:"#404345"}},components:{Accordion:le,Alert:he,Button:pe,Checkbox:ve,Input:Oe,Form:ge,FormLabel:be,FormError:me,Select:Ae,Table:Cr,Tag:Nr({baseStyle:Ir,defaultProps:{variant:"outline"},variants:{error:Br,success:Dr({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:Rr,outline:{container:{boxShadow:"none",borderColor:"brand.500",borderWidth:1}}},sizes:{sm:{container:{px:4,py:0}},md:{container:{px:6,py:1}},lg:{container:{px:6,py:1}}}})},styles:{global:{"[data-focus], :focus":{boxShadow:"none !important"}}}},c({colorScheme:"brand"}));const $r={components:Lr.components,styles:Lr.styles};function zr(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=zr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Hr(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=zr(t))&&(r&&(r+=" "),r+=e);return r}var Zr=Array.isArray,Ur="object"==typeof Me&&Me&&Me.Object===Object&&Me,Fr=Ur,qr="object"==typeof self&&self&&self.Object===Object&&self,Vr=Fr||qr||Function("return this")(),Wr=Vr.Symbol,Yr=Wr,Xr=Object.prototype,Gr=Xr.hasOwnProperty,Kr=Xr.toString,Jr=Yr?Yr.toStringTag:void 0;var Qr=function(t){var e=Gr.call(t,Jr),n=t[Jr];try{t[Jr]=void 0;var r=!0}catch(t){}var i=Kr.call(t);return r&&(e?t[Jr]=n:delete t[Jr]),i},ti=Object.prototype.toString;var ei=Qr,ni=function(t){return ti.call(t)},ri=Wr?Wr.toStringTag:void 0;var ii=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ri&&ri in Object(t)?ei(t):ni(t)};var oi=function(t){return null!=t&&"object"==typeof t},ai=ii,ci=oi;var ui=function(t){return"symbol"==typeof t||ci(t)&&"[object Symbol]"==ai(t)},li=Zr,si=ui,fi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hi=/^\w*$/;var pi=function(t,e){if(li(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!si(t))||(hi.test(t)||!fi.test(t)||null!=e&&t in Object(e))};var di=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},yi=Pe(di),vi=ii,gi=di;var mi,bi=function(t){if(!gi(t))return!1;var e=vi(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},wi=Pe(bi),xi=Vr["__core-js_shared__"],Oi=(mi=/[^.]+$/.exec(xi&&xi.keys&&xi.keys.IE_PROTO||""))?"Symbol(src)_1."+mi:"";var Si=function(t){return!!Oi&&Oi in t},ji=Function.prototype.toString;var Ai=function(t){if(null!=t){try{return ji.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Mi=bi,Pi=Si,Ei=di,ki=Ai,_i=/^\[object .+?Constructor\]$/,Ti=Function.prototype,Ci=Object.prototype,Di=Ti.toString,Ni=Ci.hasOwnProperty,Ii=RegExp("^"+Di.call(Ni).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Bi=function(t,e){return null==t?void 0:t[e]},Ri=function(t){return!(!Ei(t)||Pi(t))&&(Mi(t)?Ii:_i).test(ki(t))},Li=Bi;var $i=function(t,e){var n=Li(t,e);return Ri(n)?n:void 0},zi=$i(Object,"create"),Hi=zi;var Zi=function(){this.__data__=Hi?Hi(null):{},this.size=0};var Ui=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Fi=zi,qi=Object.prototype.hasOwnProperty;var Vi=function(t){var e=this.__data__;if(Fi){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return qi.call(e,t)?e[t]:void 0},Wi=zi,Yi=Object.prototype.hasOwnProperty;var Xi=zi;var Gi=Zi,Ki=Ui,Ji=Vi,Qi=function(t){var e=this.__data__;return Wi?void 0!==e[t]:Yi.call(e,t)},to=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Xi&&void 0===e?"__lodash_hash_undefined__":e,this};function eo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}eo.prototype.clear=Gi,eo.prototype.delete=Ki,eo.prototype.get=Ji,eo.prototype.has=Qi,eo.prototype.set=to;var no=eo;var ro=function(){this.__data__=[],this.size=0};var io=function(t,e){return t===e||t!=t&&e!=e},oo=io;var ao=function(t,e){for(var n=t.length;n--;)if(oo(t[n][0],e))return n;return-1},co=ao,uo=Array.prototype.splice;var lo=ao;var so=ao;var fo=ao;var ho=ro,po=function(t){var e=this.__data__,n=co(e,t);return!(n<0)&&(n==e.length-1?e.pop():uo.call(e,n,1),--this.size,!0)},yo=function(t){var e=this.__data__,n=lo(e,t);return n<0?void 0:e[n][1]},vo=function(t){return so(this.__data__,t)>-1},go=function(t,e){var n=this.__data__,r=fo(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function mo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}mo.prototype.clear=ho,mo.prototype.delete=po,mo.prototype.get=yo,mo.prototype.has=vo,mo.prototype.set=go;var bo=mo,wo=$i(Vr,"Map"),xo=no,Oo=bo,So=wo;var jo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Ao=function(t,e){var n=t.__data__;return jo(e)?n["string"==typeof e?"string":"hash"]:n.map},Mo=Ao;var Po=Ao;var Eo=Ao;var ko=Ao;var _o=function(){this.size=0,this.__data__={hash:new xo,map:new(So||Oo),string:new xo}},To=function(t){var e=Mo(this,t).delete(t);return this.size-=e?1:0,e},Co=function(t){return Po(this,t).get(t)},Do=function(t){return Eo(this,t).has(t)},No=function(t,e){var n=ko(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function Io(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Io.prototype.clear=_o,Io.prototype.delete=To,Io.prototype.get=Co,Io.prototype.has=Do,Io.prototype.set=No;var Bo=Io,Ro=Bo;function Lo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Lo.Cache||Ro),n}Lo.Cache=Ro;var $o=Lo;var zo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ho=/\\(\\)?/g,Zo=function(t){var e=$o(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(zo,(function(t,n,r,i){e.push(r?i.replace(Ho,"$1"):n||t)})),e})),Uo=Zo;var Fo=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},qo=Fo,Vo=Zr,Wo=ui,Yo=Wr?Wr.prototype:void 0,Xo=Yo?Yo.toString:void 0;var Go=function t(e){if("string"==typeof e)return e;if(Vo(e))return qo(e,t)+"";if(Wo(e))return Xo?Xo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},Ko=Go;var Jo=function(t){return null==t?"":Ko(t)},Qo=Zr,ta=pi,ea=Uo,na=Jo;var ra=function(t,e){return Qo(t)?t:ta(t,e)?[t]:ea(na(t))},ia=ui;var oa=function(t){if("string"==typeof t||ia(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},aa=ra,ca=oa;var ua=function(t,e){for(var n=0,r=(e=aa(e,t)).length;null!=t&&n<r;)t=t[ca(e[n++])];return n&&n==r?t:void 0},la=ua;var sa=function(t,e,n){var r=null==t?void 0:la(t,e);return void 0===r?n:r},fa=Pe(sa);var ha=Pe((function(t){return null==t})),pa=ii,da=Zr,ya=oi;var va,ga=Pe((function(t){return"string"==typeof t||!da(t)&&ya(t)&&"[object String]"==pa(t)})),ma={exports:{}},ba={};var wa,xa={};
|
|
8
|
+
*/
|
|
9
|
+
var Me,Ee,ke=9e15,_e=1e9,Te="0123456789abcdef",De="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Ce="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Ne={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-ke,maxE:ke,crypto:!1},Ie=!0,Be="[DecimalError] ",Re=Be+"Invalid argument: ",$e=Be+"Precision limit exceeded",Le=Be+"crypto unavailable",ze="[object Decimal]",He=Math.floor,Ue=Math.pow,Fe=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,qe=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,We=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Ve=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ye=1e7,Xe=7,Ge=De.length-1,Ke=Ce.length-1,Ze={toStringTag:ze};function Je(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)r=t[e]+"",(n=Xe-r.length)&&(o+=sn(n)),o+=r;a=t[e],(n=Xe-(r=a+"").length)&&(o+=sn(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function Qe(t,e,n){if(t!==~~t||t<e||t>n)throw Error(Re+t)}function tn(t,e,n,r){var i,o,a,c;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=Xe,i=0):(i=Math.ceil((e+1)/Xe),e%=Xe),o=Ue(10,Xe-e),c=t[i]%o|0,null==r?e<3?(0==e?c=c/100|0:1==e&&(c=c/10|0),a=n<4&&99999==c||n>3&&49999==c||5e4==c||0==c):a=(n<4&&c+1==o||n>3&&c+1==o/2)&&(t[i+1]/o/100|0)==Ue(10,e-2)-1||(c==o/2||0==c)&&0==(t[i+1]/o/100|0):e<4?(0==e?c=c/1e3|0:1==e?c=c/100|0:2==e&&(c=c/10|0),a=(r||n<4)&&9999==c||!r&&n>3&&4999==c):a=((r||n<4)&&c+1==o||!r&&n>3&&c+1==o/2)&&(t[i+1]/o/1e3|0)==Ue(10,e-3)-1,a}function en(t,e,n){for(var r,i,o=[0],a=0,c=t.length;a<c;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=Te.indexOf(t.charAt(a++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}Ze.absoluteValue=Ze.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),rn(t)},Ze.ceil=function(){return rn(new this.constructor(this),this.e+1,2)},Ze.clampedTo=Ze.clamp=function(t,e){var n=this,r=n.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(Re+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},Ze.comparedTo=Ze.cmp=function(t){var e,n,r,i,o=this,a=o.d,c=(t=new o.constructor(t)).d,u=o.s,l=t.s;if(!a||!c)return u&&l?u!==l?u:a===c?0:!a^u<0?1:-1:NaN;if(!a[0]||!c[0])return a[0]?u:c[0]?-l:0;if(u!==l)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,n=(r=a.length)<(i=c.length)?r:i;e<n;++e)if(a[e]!==c[e])return a[e]>c[e]^u<0?1:-1;return r===i?0:r>i^u<0?1:-1},Ze.cosine=Ze.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+Xe,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;r=e.d.length,r<32?i=(1/bn(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=mn(t,1,e.times(i),new t(1));for(var o=n;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=n,e}(r,wn(r,n)),r.precision=t,r.rounding=e,rn(2==Ee||3==Ee?n.neg():n,t,e,!0)):new r(1):new r(NaN)},Ze.cubeRoot=Ze.cbrt=function(){var t,e,n,r,i,o,a,c,u,l,s=this,f=s.constructor;if(!s.isFinite()||s.isZero())return new f(s);for(Ie=!1,(o=s.s*Ue(s.s*s,1/3))&&Math.abs(o)!=1/0?r=new f(o.toString()):(n=Je(s.d),(o=((t=s.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=Ue(n,1/3),t=He((t+1)/3)-(t%3==(t<0?-1:2)),(r=new f(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=s.s),a=(t=f.precision)+3;;)if(l=(u=(c=r).times(c).times(c)).plus(s),r=nn(l.plus(s).times(c),l.plus(u),a+2,1),Je(c.d).slice(0,a)===(n=Je(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(rn(r,t+1,1),e=!r.times(r).times(r).eq(s));break}if(!i&&(rn(c,t+1,0),c.times(c).times(c).eq(s))){r=c;break}a+=4,i=1}return Ie=!0,rn(r,t,f.rounding,e)},Ze.decimalPlaces=Ze.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=((t=e.length-1)-He(this.e/Xe))*Xe,t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},Ze.dividedBy=Ze.div=function(t){return nn(this,new this.constructor(t))},Ze.dividedToIntegerBy=Ze.divToInt=function(t){var e=this.constructor;return rn(nn(this,new e(t),0,1,1),e.precision,e.rounding)},Ze.equals=Ze.eq=function(t){return 0===this.cmp(t)},Ze.floor=function(){return rn(new this.constructor(this),this.e+1,3)},Ze.greaterThan=Ze.gt=function(t){return this.cmp(t)>0},Ze.greaterThanOrEqualTo=Ze.gte=function(t){var e=this.cmp(t);return 1==e||0===e},Ze.hyperbolicCosine=Ze.cosh=function(){var t,e,n,r,i,o=this,a=o.constructor,c=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return c;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/bn(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=mn(a,1,o.times(e),new a(1),!0);for(var u,l=t,s=new a(8);l--;)u=o.times(o),o=c.minus(u.times(s.minus(u.times(s))));return rn(o,a.precision=n,a.rounding=r,!0)},Ze.hyperbolicSine=Ze.sinh=function(){var t,e,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=mn(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=mn(o,2,i=i.times(1/bn(5,t)),i,!0);for(var a,c=new o(5),u=new o(16),l=new o(20);t--;)a=i.times(i),i=i.times(c.plus(a.times(u.times(a).plus(l))))}return o.precision=e,o.rounding=n,rn(i,e,n,!0)},Ze.hyperbolicTangent=Ze.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,nn(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},Ze.inverseCosine=Ze.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?e.isNeg()?un(n,i,o):new n(0):new n(NaN):e.isZero()?un(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=un(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},Ze.inverseHyperbolicCosine=Ze.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,Ie=!1,n=n.times(n).minus(1).sqrt().plus(n),Ie=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},Ze.inverseHyperbolicSine=Ze.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,Ie=!1,n=n.times(n).plus(1).sqrt().plus(n),Ie=!0,r.precision=t,r.rounding=e,n.ln())},Ze.inverseHyperbolicTangent=Ze.atanh=function(){var t,e,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?rn(new o(i),t,e,!0):(o.precision=n=r-i.e,i=nn(i.plus(1),new o(1).minus(i),n+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},Ze.inverseSine=Ze.asin=function(){var t,e,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==e?0===e?((t=un(o,n+4,r).times(.5)).s=i.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},Ze.inverseTangent=Ze.atan=function(){var t,e,n,r,i,o,a,c,u,l=this,s=l.constructor,f=s.precision,h=s.rounding;if(l.isFinite()){if(l.isZero())return new s(l);if(l.abs().eq(1)&&f+4<=Ke)return(a=un(s,f+4,h).times(.25)).s=l.s,a}else{if(!l.s)return new s(NaN);if(f+4<=Ke)return(a=un(s,f+4,h).times(.5)).s=l.s,a}for(s.precision=c=f+10,s.rounding=1,t=n=Math.min(28,c/Xe+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Ie=!1,e=Math.ceil(c/Xe),r=1,u=l.times(l),a=new s(l),i=l;-1!==t;)if(i=i.times(u),o=a.minus(i.div(r+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(r+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return n&&(a=a.times(2<<n-1)),Ie=!0,rn(a,s.precision=f,s.rounding=h,!0)},Ze.isFinite=function(){return!!this.d},Ze.isInteger=Ze.isInt=function(){return!!this.d&&He(this.e/Xe)>this.d.length-2},Ze.isNaN=function(){return!this.s},Ze.isNegative=Ze.isNeg=function(){return this.s<0},Ze.isPositive=Ze.isPos=function(){return this.s>0},Ze.isZero=function(){return!!this.d&&0===this.d[0]},Ze.lessThan=Ze.lt=function(t){return this.cmp(t)<0},Ze.lessThanOrEqualTo=Ze.lte=function(t){return this.cmp(t)<1},Ze.logarithm=Ze.log=function(t){var e,n,r,i,o,a,c,u,l=this,s=l.constructor,f=s.precision,h=s.rounding;if(null==t)t=new s(10),e=!0;else{if(n=(t=new s(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new s(NaN);e=t.eq(10)}if(n=l.d,l.s<0||!n||!n[0]||l.eq(1))return new s(n&&!n[0]?-1/0:1!=l.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(Ie=!1,a=yn(l,c=f+5),r=e?cn(s,c+10):yn(t,c),tn((u=nn(a,r,c,1)).d,i=f,h))do{if(a=yn(l,c+=10),r=e?cn(s,c+10):yn(t,c),u=nn(a,r,c,1),!o){+Je(u.d).slice(i+1,i+15)+1==1e14&&(u=rn(u,f+1,0));break}}while(tn(u.d,i+=10,h));return Ie=!0,rn(u,f,h)},Ze.minus=Ze.sub=function(t){var e,n,r,i,o,a,c,u,l,s,f,h,p=this,d=p.constructor;if(t=new d(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new d(t.d||p.s!==t.s?p:NaN):t=new d(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(l=p.d,h=t.d,c=d.precision,u=d.rounding,!l[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!l[0])return new d(3===u?-0:0);t=new d(p)}return Ie?rn(t,c,u):t}if(n=He(t.e/Xe),s=He(p.e/Xe),l=l.slice(),o=s-n){for((f=o<0)?(e=l,o=-o,a=h.length):(e=h,n=s,a=l.length),o>(r=Math.max(Math.ceil(c/Xe),a)+2)&&(o=r,e.length=1),e.reverse(),r=o;r--;)e.push(0);e.reverse()}else{for((f=(r=l.length)<(a=h.length))&&(a=r),r=0;r<a;r++)if(l[r]!=h[r]){f=l[r]<h[r];break}o=0}for(f&&(e=l,l=h,h=e,t.s=-t.s),a=l.length,r=h.length-a;r>0;--r)l[a++]=0;for(r=h.length;r>o;){if(l[--r]<h[r]){for(i=r;i&&0===l[--i];)l[i]=Ye-1;--l[i],l[r]+=Ye}l[r]-=h[r]}for(;0===l[--a];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(t.d=l,t.e=an(l,n),Ie?rn(t,c,u):t):new d(3===u?-0:0)},Ze.modulo=Ze.mod=function(t){var e,n=this,r=n.constructor;return t=new r(t),!n.d||!t.s||t.d&&!t.d[0]?new r(NaN):!t.d||n.d&&!n.d[0]?rn(new r(n),r.precision,r.rounding):(Ie=!1,9==r.modulo?(e=nn(n,t.abs(),0,3,1)).s*=t.s:e=nn(n,t,0,r.modulo,1),e=e.times(t),Ie=!0,n.minus(e))},Ze.naturalExponential=Ze.exp=function(){return dn(this)},Ze.naturalLogarithm=Ze.ln=function(){return yn(this)},Ze.negated=Ze.neg=function(){var t=new this.constructor(this);return t.s=-t.s,rn(t)},Ze.plus=Ze.add=function(t){var e,n,r,i,o,a,c,u,l,s,f=this,h=f.constructor;if(t=new h(t),!f.d||!t.d)return f.s&&t.s?f.d||(t=new h(t.d||f.s===t.s?f:NaN)):t=new h(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.minus(t);if(l=f.d,s=t.d,c=h.precision,u=h.rounding,!l[0]||!s[0])return s[0]||(t=new h(f)),Ie?rn(t,c,u):t;if(o=He(f.e/Xe),r=He(t.e/Xe),l=l.slice(),i=o-r){for(i<0?(n=l,i=-i,a=s.length):(n=s,r=o,a=l.length),i>(a=(o=Math.ceil(c/Xe))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=l.length)-(i=s.length)<0&&(i=a,n=s,s=l,l=n),e=0;i;)e=(l[--i]=l[i]+s[i]+e)/Ye|0,l[i]%=Ye;for(e&&(l.unshift(e),++r),a=l.length;0==l[--a];)l.pop();return t.d=l,t.e=an(l,r),Ie?rn(t,c,u):t},Ze.precision=Ze.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Re+t);return n.d?(e=ln(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},Ze.round=function(){var t=this,e=t.constructor;return rn(new e(t),t.e+1,e.rounding)},Ze.sine=Ze.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+Xe,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:mn(t,2,e,e);n=1.4*Math.sqrt(r),n=n>16?16:0|n,e=e.times(1/bn(5,n)),e=mn(t,2,e,e);for(var i,o=new t(5),a=new t(16),c=new t(20);n--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(c))));return e}(r,wn(r,n)),r.precision=t,r.rounding=e,rn(Ee>2?n.neg():n,t,e,!0)):new r(NaN)},Ze.squareRoot=Ze.sqrt=function(){var t,e,n,r,i,o,a=this,c=a.d,u=a.e,l=a.s,s=a.constructor;if(1!==l||!c||!c[0])return new s(!l||l<0&&(!c||c[0])?NaN:c?a:1/0);for(Ie=!1,0==(l=Math.sqrt(+a))||l==1/0?(((e=Je(c)).length+u)%2==0&&(e+="0"),l=Math.sqrt(e),u=He((u+1)/2)-(u<0||u%2),r=new s(e=l==1/0?"5e"+u:(e=l.toExponential()).slice(0,e.indexOf("e")+1)+u)):r=new s(l.toString()),n=(u=s.precision)+3;;)if(r=(o=r).plus(nn(a,o,n+2,1)).times(.5),Je(o.d).slice(0,n)===(e=Je(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(rn(r,u+1,1),t=!r.times(r).eq(a));break}if(!i&&(rn(o,u+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return Ie=!0,rn(r,u,s.rounding,t)},Ze.tangent=Ze.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=nn(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,rn(2==Ee||4==Ee?n.neg():n,t,e,!0)):new r(NaN)},Ze.times=Ze.mul=function(t){var e,n,r,i,o,a,c,u,l,s=this,f=s.constructor,h=s.d,p=(t=new f(t)).d;if(t.s*=s.s,!(h&&h[0]&&p&&p[0]))return new f(!t.s||h&&!h[0]&&!p||p&&!p[0]&&!h?NaN:h&&p?0*t.s:t.s/0);for(n=He(s.e/Xe)+He(t.e/Xe),(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],r=a=u+l;r--;)o.push(0);for(r=l;--r>=0;){for(e=0,i=u+r;i>r;)c=o[i]+p[r]*h[i-r-1]+e,o[i--]=c%Ye|0,e=c/Ye|0;o[i]=(o[i]+e)%Ye|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=an(o,n),Ie?rn(t,f.precision,f.rounding):t},Ze.toBinary=function(t,e){return xn(this,2,t,e)},Ze.toDecimalPlaces=Ze.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(Qe(t,0,_e),void 0===e?e=r.rounding:Qe(e,0,8),rn(n,t+n.e+1,e))},Ze.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=on(r,!0):(Qe(t,0,_e),void 0===e?e=i.rounding:Qe(e,0,8),n=on(r=rn(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},Ze.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=on(i):(Qe(t,0,_e),void 0===e?e=o.rounding:Qe(e,0,8),n=on(r=rn(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},Ze.toFraction=function(t){var e,n,r,i,o,a,c,u,l,s,f,h,p=this,d=p.d,y=p.constructor;if(!d)return new y(p);if(l=n=new y(1),r=u=new y(0),a=(o=(e=new y(r)).e=ln(d)-p.e-1)%Xe,e.d[0]=Ue(10,a<0?Xe+a:a),null==t)t=o>0?e:l;else{if(!(c=new y(t)).isInt()||c.lt(l))throw Error(Re+c);t=c.gt(e)?o>0?e:l:c}for(Ie=!1,c=new y(Je(d)),s=y.precision,y.precision=o=d.length*Xe*2;f=nn(c,e,0,1,1),1!=(i=n.plus(f.times(r))).cmp(t);)n=r,r=i,i=l,l=u.plus(f.times(i)),u=i,i=e,e=c.minus(f.times(i)),c=i;return i=nn(t.minus(n),r,0,1,1),u=u.plus(i.times(l)),n=n.plus(i.times(r)),u.s=l.s=p.s,h=nn(l,r,o,1).minus(p).abs().cmp(nn(u,n,o,1).minus(p).abs())<1?[l,r]:[u,n],y.precision=s,Ie=!0,h},Ze.toHexadecimal=Ze.toHex=function(t,e){return xn(this,16,t,e)},Ze.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:Qe(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(Ie=!1,n=nn(n,t,0,e,1).times(t),Ie=!0,rn(n)):(t.s=n.s,n=t),n},Ze.toNumber=function(){return+this},Ze.toOctal=function(t,e){return xn(this,8,t,e)},Ze.toPower=Ze.pow=function(t){var e,n,r,i,o,a,c=this,u=c.constructor,l=+(t=new u(t));if(!(c.d&&t.d&&c.d[0]&&t.d[0]))return new u(Ue(+c,l));if((c=new u(c)).eq(1))return c;if(r=u.precision,o=u.rounding,t.eq(1))return rn(c,r,o);if((e=He(t.e/Xe))>=t.d.length-1&&(n=l<0?-l:l)<=9007199254740991)return i=fn(u,c,n,r),t.s<0?new u(1).div(i):rn(i,r,o);if((a=c.s)<0){if(e<t.d.length-1)return new u(NaN);if(0==(1&t.d[e])&&(a=1),0==c.e&&1==c.d[0]&&1==c.d.length)return c.s=a,c}return(e=0!=(n=Ue(+c,l))&&isFinite(n)?new u(n+"").e:He(l*(Math.log("0."+Je(c.d))/Math.LN10+c.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(Ie=!1,u.rounding=c.s=1,n=Math.min(12,(e+"").length),(i=dn(t.times(yn(c,r+n)),r)).d&&tn((i=rn(i,r+5,1)).d,r,o)&&(e=r+10,+Je((i=rn(dn(t.times(yn(c,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=rn(i,r+1,0))),i.s=a,Ie=!0,u.rounding=o,rn(i,r,o))},Ze.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=on(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(Qe(t,1,_e),void 0===e?e=i.rounding:Qe(e,0,8),n=on(r=rn(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},Ze.toSignificantDigits=Ze.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(Qe(t,1,_e),void 0===e?e=n.rounding:Qe(e,0,8)),rn(new n(this),t,e)},Ze.toString=function(){var t=this,e=t.constructor,n=on(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},Ze.truncated=Ze.trunc=function(){return rn(new this.constructor(this),this.e+1,1)},Ze.valueOf=Ze.toJSON=function(){var t=this,e=t.constructor,n=on(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var nn=function(){function t(t,e,n){var r,i=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+i,t[o]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]<e[n]?1:0,t[n]=i*r+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a,c,u){var l,s,f,h,p,d,y,v,g,m,b,w,x,O,S,j,A,P,M,E,k=r.constructor,_=r.s==i.s?1:-1,T=r.d,D=i.d;if(!(T&&T[0]&&D&&D[0]))return new k(r.s&&i.s&&(T?!D||T[0]!=D[0]:D)?T&&0==T[0]||!D?0*_:_/0:NaN);for(u?(p=1,s=r.e-i.e):(u=Ye,p=Xe,s=He(r.e/p)-He(i.e/p)),M=D.length,A=T.length,m=(g=new k(_)).d=[],f=0;D[f]==(T[f]||0);f++);if(D[f]>(T[f]||0)&&s--,null==o?(O=o=k.precision,a=k.rounding):O=c?o+(r.e-i.e)+1:o,O<0)m.push(1),d=!0;else{if(O=O/p+2|0,f=0,1==M){for(h=0,D=D[0],O++;(f<A||h)&&O--;f++)S=h*u+(T[f]||0),m[f]=S/D|0,h=S%D|0;d=h||f<A}else{for((h=u/(D[0]+1)|0)>1&&(D=t(D,h,u),T=t(T,h,u),M=D.length,A=T.length),j=M,w=(b=T.slice(0,M)).length;w<M;)b[w++]=0;(E=D.slice()).unshift(0),P=D[0],D[1]>=u/2&&++P;do{h=0,(l=e(D,b,M,w))<0?(x=b[0],M!=w&&(x=x*u+(b[1]||0)),(h=x/P|0)>1?(h>=u&&(h=u-1),1==(l=e(y=t(D,h,u),b,v=y.length,w=b.length))&&(h--,n(y,M<v?E:D,v,u))):(0==h&&(l=h=1),y=D.slice()),(v=y.length)<w&&y.unshift(0),n(b,y,w,u),-1==l&&(l=e(D,b,M,w=b.length))<1&&(h++,n(b,M<w?E:D,w,u)),w=b.length):0===l&&(h++,b=[0]),m[f++]=h,l&&b[0]?b[w++]=T[j]||0:(b=[T[j]],w=1)}while((j++<A||void 0!==b[0])&&O--);d=void 0!==b[0]}m[0]||m.shift()}if(1==p)g.e=s,Me=d;else{for(f=1,h=m[0];h>=10;h/=10)f++;g.e=f+s*p-1,rn(g,c?o+g.e+1:o,a,d)}return g}}();function rn(t,e,n,r){var i,o,a,c,u,l,s,f,h,p=t.constructor;t:if(null!=e){if(!(f=t.d))return t;for(i=1,c=f[0];c>=10;c/=10)i++;if((o=e-i)<0)o+=Xe,a=e,u=(s=f[h=0])/Ue(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/Xe))>=(c=f.length)){if(!r)break t;for(;c++<=h;)f.push(0);s=u=0,i=1,a=(o%=Xe)-Xe+1}else{for(s=c=f[h],i=1;c>=10;c/=10)i++;u=(a=(o%=Xe)-Xe+i)<0?0:s/Ue(10,i-a-1)%10|0}if(r=r||e<0||void 0!==f[h+1]||(a<0?s:s%Ue(10,i-a-1)),l=n<4?(u||r)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?a>0?s/Ue(10,i-a):0:f[h-1])%10&1||n==(t.s<0?8:7)),e<1||!f[0])return f.length=0,l?(e-=t.e+1,f[0]=Ue(10,(Xe-e%Xe)%Xe),t.e=-e||0):f[0]=t.e=0,t;if(0==o?(f.length=h,c=1,h--):(f.length=h+1,c=Ue(10,Xe-o),f[h]=a>0?(s/Ue(10,i-a)%Ue(10,a)|0)*c:0),l)for(;;){if(0==h){for(o=1,a=f[0];a>=10;a/=10)o++;for(a=f[0]+=c,c=1;a>=10;a/=10)c++;o!=c&&(t.e++,f[0]==Ye&&(f[0]=1));break}if(f[h]+=c,f[h]!=Ye)break;f[h--]=0,c=1}for(o=f.length;0===f[--o];)f.pop()}return Ie&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function on(t,e,n){if(!t.isFinite())return vn(t);var r,i=t.e,o=Je(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+sn(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+sn(-i-1)+o,n&&(r=n-a)>0&&(o+=sn(r))):i>=a?(o+=sn(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+sn(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=sn(r))),o}function an(t,e){var n=t[0];for(e*=Xe;n>=10;n/=10)e++;return e}function cn(t,e,n){if(e>Ge)throw Ie=!0,n&&(t.precision=n),Error($e);return rn(new t(De),e,1,!0)}function un(t,e,n){if(e>Ke)throw Error($e);return rn(new t(Ce),e,n,!0)}function ln(t){var e=t.length-1,n=e*Xe+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function sn(t){for(var e="";t--;)e+="0";return e}function fn(t,e,n,r){var i,o=new t(1),a=Math.ceil(r/Xe+4);for(Ie=!1;;){if(n%2&&On((o=o.times(e)).d,a)&&(i=!0),0===(n=He(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}On((e=e.times(e)).d,a)}return Ie=!0,o}function hn(t){return 1&t.d[t.d.length-1]}function pn(t,e,n){for(var r,i=new t(e[0]),o=0;++o<e.length;){if(!(r=new t(e[o])).s){i=r;break}i[n](r)&&(i=r)}return i}function dn(t,e){var n,r,i,o,a,c,u,l=0,s=0,f=0,h=t.constructor,p=h.rounding,d=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(Ie=!1,u=d):u=e,c=new h(.03125);t.e>-2;)t=t.times(c),f+=5;for(u+=r=Math.log(Ue(2,f))/Math.LN10*2+5|0,n=o=a=new h(1),h.precision=u;;){if(o=rn(o.times(t),u,1),n=n.times(++s),Je((c=a.plus(nn(o,n,u,1))).d).slice(0,u)===Je(a.d).slice(0,u)){for(i=f;i--;)a=rn(a.times(a),u,1);if(null!=e)return h.precision=d,a;if(!(l<3&&tn(a.d,u-r,p,l)))return rn(a,h.precision=d,p,Ie=!0);h.precision=u+=10,n=o=c=new h(1),s=0,l++}a=c}}function yn(t,e){var n,r,i,o,a,c,u,l,s,f,h,p=1,d=t,y=d.d,v=d.constructor,g=v.rounding,m=v.precision;if(d.s<0||!y||!y[0]||!d.e&&1==y[0]&&1==y.length)return new v(y&&!y[0]?-1/0:1!=d.s?NaN:y?0:d);if(null==e?(Ie=!1,s=m):s=e,v.precision=s+=10,r=(n=Je(y)).charAt(0),!(Math.abs(o=d.e)<15e14))return l=cn(v,s+2,m).times(o+""),d=yn(new v(r+"."+n.slice(1)),s-10).plus(l),v.precision=m,null==e?rn(d,m,g,Ie=!0):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Je((d=d.times(t)).d)).charAt(0),p++;for(o=d.e,r>1?(d=new v("0."+n),o++):d=new v(r+"."+n.slice(1)),f=d,u=a=d=nn(d.minus(1),d.plus(1),s,1),h=rn(d.times(d),s,1),i=3;;){if(a=rn(a.times(h),s,1),Je((l=u.plus(nn(a,new v(i),s,1))).d).slice(0,s)===Je(u.d).slice(0,s)){if(u=u.times(2),0!==o&&(u=u.plus(cn(v,s+2,m).times(o+""))),u=nn(u,new v(p),s,1),null!=e)return v.precision=m,u;if(!tn(u.d,s-10,g,c))return rn(u,v.precision=m,g,Ie=!0);v.precision=s+=10,l=a=d=nn(f.minus(1),f.plus(1),s,1),h=rn(d.times(d),s,1),i=c=1}u=l,i+=2}}function vn(t){return String(t.s*t.s/0)}function gn(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%Xe,n<0&&(r+=Xe),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=Xe;r<i;)t.d.push(+e.slice(r,r+=Xe));e=e.slice(r),r=Xe-e.length}else r-=i;for(;r--;)e+="0";t.d.push(+e),Ie&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function mn(t,e,n,r,i){var o,a,c,u,l=t.precision,s=Math.ceil(l/Xe);for(Ie=!1,u=n.times(n),c=new t(r);;){if(a=nn(c.times(u),new t(e++*e++),l,1),c=i?r.plus(a):r.minus(a),r=nn(a.times(u),new t(e++*e++),l,1),void 0!==(a=c.plus(r)).d[s]){for(o=s;a.d[o]===c.d[o]&&o--;);if(-1==o)break}o=c,c=r,r=a,a=o}return Ie=!0,a.d.length=s+1,a}function bn(t,e){for(var n=t;--e;)n*=t;return n}function wn(t,e){var n,r=e.s<0,i=un(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return Ee=r?4:1,e;if((n=e.divToInt(i)).isZero())Ee=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return Ee=hn(n)?r?2:3:r?4:1,e;Ee=hn(n)?r?1:4:r?3:2}return e.minus(i).abs()}function xn(t,e,n,r){var i,o,a,c,u,l,s,f,h,p=t.constructor,d=void 0!==n;if(d?(Qe(n,1,_e),void 0===r?r=p.rounding:Qe(r,0,8)):(n=p.precision,r=p.rounding),t.isFinite()){for(d?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(a=(s=on(t)).indexOf("."))>=0&&(s=s.replace(".",""),(h=new p(1)).e=s.length-a,h.d=en(on(h),10,i),h.e=h.d.length),o=u=(f=en(s,10,i)).length;0==f[--u];)f.pop();if(f[0]){if(a<0?o--:((t=new p(t)).d=f,t.e=o,f=(t=nn(t,h,n,r,0,i)).d,o=t.e,l=Me),a=f[n],c=i/2,l=l||void 0!==f[n+1],l=r<4?(void 0!==a||l)&&(0===r||r===(t.s<0?3:2)):a>c||a===c&&(4===r||l||6===r&&1&f[n-1]||r===(t.s<0?8:7)),f.length=n,l)for(;++f[--n]>i-1;)f[n]=0,n||(++o,f.unshift(1));for(u=f.length;!f[u-1];--u);for(a=0,s="";a<u;a++)s+=Te.charAt(f[a]);if(d){if(u>1)if(16==e||8==e){for(a=16==e?4:3,--u;u%a;u++)s+="0";for(u=(f=en(s,i,e)).length;!f[u-1];--u);for(a=1,s="1.";a<u;a++)s+=Te.charAt(f[a])}else s=s.charAt(0)+"."+s.slice(1);s=s+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)s="0"+s;s="0."+s}else if(++o>u)for(o-=u;o--;)s+="0";else o<u&&(s=s.slice(0,o)+"."+s.slice(o))}else s=d?"0p+0":"0";s=(16==e?"0x":2==e?"0b":8==e?"0o":"")+s}else s=vn(t);return t.s<0?"-"+s:s}function On(t,e){if(t.length>e)return t.length=e,!0}function Sn(t){return new this(t).abs()}function jn(t){return new this(t).acos()}function An(t){return new this(t).acosh()}function Pn(t,e){return new this(t).plus(e)}function Mn(t){return new this(t).asin()}function En(t){return new this(t).asinh()}function kn(t){return new this(t).atan()}function _n(t){return new this(t).atanh()}function Tn(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,o=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?un(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=un(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(nn(t,e,o,1)),e=un(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(nn(t,e,o,1)):(n=un(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function Dn(t){return new this(t).cbrt()}function Cn(t){return rn(t=new this(t),t.e+1,2)}function Nn(t,e,n){return new this(t).clamp(e,n)}function In(t){if(!t||"object"!=typeof t)throw Error(Be+"Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,_e,"rounding",0,8,"toExpNeg",-ke,0,"toExpPos",0,ke,"maxE",0,ke,"minE",-ke,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],i&&(this[n]=Ne[n]),void 0!==(r=t[n])){if(!(He(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(Re+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=Ne[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(Re+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Le);this[n]=!0}else this[n]=!1}return this}function Bn(t){return new this(t).cos()}function Rn(t){return new this(t).cosh()}function $n(t,e){return new this(t).div(e)}function Ln(t){return new this(t).exp()}function zn(t){return rn(t=new this(t),t.e+1,3)}function Hn(){var t,e,n=new this(0);for(Ie=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)n.d&&(n=n.plus(e.times(e)));else{if(e.s)return Ie=!0,new this(1/0);n=e}return Ie=!0,n.sqrt()}function Un(t){return t instanceof lr||t&&t.toStringTag===ze||!1}function Fn(t){return new this(t).ln()}function qn(t,e){return new this(t).log(e)}function Wn(t){return new this(t).log(2)}function Vn(t){return new this(t).log(10)}function Yn(){return pn(this,arguments,"lt")}function Xn(){return pn(this,arguments,"gt")}function Gn(t,e){return new this(t).mod(e)}function Kn(t,e){return new this(t).mul(e)}function Zn(t,e){return new this(t).pow(e)}function Jn(t){var e,n,r,i,o=0,a=new this(1),c=[];if(void 0===t?t=this.precision:Qe(t,1,_e),r=Math.ceil(t/Xe),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:c[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(Le);for(e=crypto.randomBytes(r*=4);o<r;)(i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((127&e[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(e,o):(c.push(i%1e7),o+=4);o=r/4}else for(;o<r;)c[o++]=1e7*Math.random()|0;for(r=c[--o],t%=Xe,r&&t&&(i=Ue(10,Xe-t),c[o]=(r/i|0)*i);0===c[o];o--)c.pop();if(o<0)n=0,c=[0];else{for(n=-1;0===c[0];n-=Xe)c.shift();for(r=1,i=c[0];i>=10;i/=10)r++;r<Xe&&(n-=Xe-r)}return a.e=n,a.d=c,a}function Qn(t){return rn(t=new this(t),t.e+1,this.rounding)}function tr(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function er(t){return new this(t).sin()}function nr(t){return new this(t).sinh()}function rr(t){return new this(t).sqrt()}function ir(t,e){return new this(t).sub(e)}function or(){var t=0,e=arguments,n=new this(e[t]);for(Ie=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return Ie=!0,rn(n,this.precision,this.rounding)}function ar(t){return new this(t).tan()}function cr(t){return new this(t).tanh()}function ur(t){return rn(t=new this(t),t.e+1,1)}Ze[Symbol.for("nodejs.util.inspect.custom")]=Ze.toString,Ze[Symbol.toStringTag]="Decimal";var lr=Ze.constructor=function t(e){var n,r,i;function o(t){var e,n,r,i=this;if(!(i instanceof o))return new o(t);if(i.constructor=o,Un(t))return i.s=t.s,void(Ie?!t.d||t.e>o.maxE?(i.e=NaN,i.d=null):t.e<o.minE?(i.e=0,i.d=[0]):(i.e=t.e,i.d=t.d.slice()):(i.e=t.e,i.d=t.d?t.d.slice():t.d));if("number"===(r=typeof t)){if(0===t)return i.s=1/t<0?-1:1,i.e=0,void(i.d=[0]);if(t<0?(t=-t,i.s=-1):i.s=1,t===~~t&&t<1e7){for(e=0,n=t;n>=10;n/=10)e++;return void(Ie?e>o.maxE?(i.e=NaN,i.d=null):e<o.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[t]):(i.e=e,i.d=[t]))}return 0*t!=0?(t||(i.s=NaN),i.e=NaN,void(i.d=null)):gn(i,t.toString())}if("string"!==r)throw Error(Re+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===n&&(t=t.slice(1)),i.s=1),Ve.test(t)?gn(i,t):function(t,e){var n,r,i,o,a,c,u,l,s;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),Ve.test(e))return gn(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(qe.test(e))n=16,e=e.toLowerCase();else if(Fe.test(e))n=2;else{if(!We.test(e))throw Error(Re+e);n=8}for((o=e.search(/p/i))>0?(u=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),a=(o=e.indexOf("."))>=0,r=t.constructor,a&&(o=(c=(e=e.replace(".","")).length)-o,i=fn(r,new r(n),o,2*o)),o=s=(l=en(e,n,Ye)).length-1;0===l[o];--o)l.pop();return o<0?new r(0*t.s):(t.e=an(l,s),t.d=l,Ie=!1,a&&(t=nn(t,i,4*c)),u&&(t=t.times(Math.abs(u)<54?Ue(2,u):lr.pow(2,u))),Ie=!0,t)}(i,t)}if(o.prototype=Ze,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=In,o.clone=t,o.isDecimal=Un,o.abs=Sn,o.acos=jn,o.acosh=An,o.add=Pn,o.asin=Mn,o.asinh=En,o.atan=kn,o.atanh=_n,o.atan2=Tn,o.cbrt=Dn,o.ceil=Cn,o.clamp=Nn,o.cos=Bn,o.cosh=Rn,o.div=$n,o.exp=Ln,o.floor=zn,o.hypot=Hn,o.ln=Fn,o.log=qn,o.log10=Vn,o.log2=Wn,o.max=Yn,o.min=Xn,o.mod=Gn,o.mul=Kn,o.pow=Zn,o.random=Jn,o.round=Qn,o.sign=tr,o.sin=er,o.sinh=nr,o.sqrt=rr,o.sub=ir,o.sum=or,o.tan=ar,o.tanh=cr,o.trunc=ur,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}(Ne);De=new lr(De),Ce=new lr(Ce);const sr=({data:t,dataKey:e})=>{const n=t?.length&&t[0][e],r=t?.length&&t[t.length-1][e];if(t&&(!n||!r))throw new Error(`Provided dataKey ${e} was not found`);if(!Number.isFinite(n)||!Number.isFinite(r))throw new Error("Starting or ending amount is not a finite number");const i=new lr(n),o=new lr(r),a=o.minus(i);return{startingAmount:n,endingAmount:r,delta:Number(a),percentChange:100*Number(a.dividedBy(i)),isNetGain:o.gt(i)}},fr=t=>{if("object"==typeof t&&null!==t)return Object.entries(t).filter((([t,e])=>""!==e&&null!==e)).map((([t,e])=>`&${t}=${e}`)).join("")},hr=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},pr=t=>"object"!=typeof t||null===t||Object.values(t).every((t=>null==t||""===t||0===t)),dr={redRemains:(t=1)=>yr({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>yr({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>yr({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>yr({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>yr({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2,1]}),lighthouse:(t=1)=>yr({rgb:"rgb(244, 244, 244)",alpha:t}),coolElegance:(t=1)=>yr({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>yr({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>yr({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08,1]})},yr=({rgb:t,alpha:e,enabledAlphaValues:n=[1]})=>{if(!n.includes(e))throw`Unsupported alpha value: ${e}. Update the color function in uiColors.ts to enable additional values.`;const[r,i,o]=t.replace(/[^\d,]/g,"").split(",");return`rgba(${r}, ${i}, ${o}, ${e})`},vr=o({variants:{simple:{th:{borderColor:dr.coolElegance()},td:{borderColor:dr.coolElegance()}}}}),{definePartsStyle:gr,defineMultiStyleConfig:mr}=r(Gt.keys),br=gr({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),wr=gr({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),xr=gr({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var Or=a({colors:{brand:{50:"#fafafa",100:"#cdcfd1",200:"#bfc3c5",300:"#b2b6b9",400:"#a5a9ac",500:"#8a9094",600:"#70777b",700:"#646a6d",800:"#585d60",900:"#404345"}},components:{Accordion:Jt,Alert:ee,Button:ne,Checkbox:oe,Input:fe,Form:ae,FormLabel:ue,FormError:ce,Select:de,Table:vr,Tag:mr({baseStyle:br,defaultProps:{variant:"outline"},variants:{error:wr,success:gr({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:xr,outline:{container:{boxShadow:"none",borderColor:"brand.500",borderWidth:1}}},sizes:{sm:{container:{px:4,py:0}},md:{container:{px:6,py:1}},lg:{container:{px:6,py:1}}}})},styles:{global:{"[data-focus], :focus":{boxShadow:"none !important"}}}},c({colorScheme:"brand"}));const Sr={components:Or.components,styles:Or.styles};function jr(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=jr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Ar(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=jr(t))&&(r&&(r+=" "),r+=e);return r}var Pr=Array.isArray,Mr="object"==typeof ye&&ye&&ye.Object===Object&&ye,Er=Mr,kr="object"==typeof self&&self&&self.Object===Object&&self,_r=Er||kr||Function("return this")(),Tr=_r.Symbol,Dr=Tr,Cr=Object.prototype,Nr=Cr.hasOwnProperty,Ir=Cr.toString,Br=Dr?Dr.toStringTag:void 0;var Rr=function(t){var e=Nr.call(t,Br),n=t[Br];try{t[Br]=void 0;var r=!0}catch(t){}var i=Ir.call(t);return r&&(e?t[Br]=n:delete t[Br]),i},$r=Object.prototype.toString;var Lr=Rr,zr=function(t){return $r.call(t)},Hr=Tr?Tr.toStringTag:void 0;var Ur=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Hr&&Hr in Object(t)?Lr(t):zr(t)};var Fr=function(t){return null!=t&&"object"==typeof t},qr=Ur,Wr=Fr;var Vr=function(t){return"symbol"==typeof t||Wr(t)&&"[object Symbol]"==qr(t)},Yr=Pr,Xr=Vr,Gr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kr=/^\w*$/;var Zr=function(t,e){if(Yr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Xr(t))||(Kr.test(t)||!Gr.test(t)||null!=e&&t in Object(e))};var Jr=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Qr=ve(Jr),ti=Ur,ei=Jr;var ni,ri=function(t){if(!ei(t))return!1;var e=ti(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},ii=ve(ri),oi=_r["__core-js_shared__"],ai=(ni=/[^.]+$/.exec(oi&&oi.keys&&oi.keys.IE_PROTO||""))?"Symbol(src)_1."+ni:"";var ci=function(t){return!!ai&&ai in t},ui=Function.prototype.toString;var li=function(t){if(null!=t){try{return ui.call(t)}catch(t){}try{return t+""}catch(t){}}return""},si=ri,fi=ci,hi=Jr,pi=li,di=/^\[object .+?Constructor\]$/,yi=Function.prototype,vi=Object.prototype,gi=yi.toString,mi=vi.hasOwnProperty,bi=RegExp("^"+gi.call(mi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var wi=function(t,e){return null==t?void 0:t[e]},xi=function(t){return!(!hi(t)||fi(t))&&(si(t)?bi:di).test(pi(t))},Oi=wi;var Si=function(t,e){var n=Oi(t,e);return xi(n)?n:void 0},ji=Si(Object,"create"),Ai=ji;var Pi=function(){this.__data__=Ai?Ai(null):{},this.size=0};var Mi=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ei=ji,ki=Object.prototype.hasOwnProperty;var _i=function(t){var e=this.__data__;if(Ei){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ki.call(e,t)?e[t]:void 0},Ti=ji,Di=Object.prototype.hasOwnProperty;var Ci=ji;var Ni=Pi,Ii=Mi,Bi=_i,Ri=function(t){var e=this.__data__;return Ti?void 0!==e[t]:Di.call(e,t)},$i=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ci&&void 0===e?"__lodash_hash_undefined__":e,this};function Li(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Li.prototype.clear=Ni,Li.prototype.delete=Ii,Li.prototype.get=Bi,Li.prototype.has=Ri,Li.prototype.set=$i;var zi=Li;var Hi=function(){this.__data__=[],this.size=0};var Ui=function(t,e){return t===e||t!=t&&e!=e},Fi=Ui;var qi=function(t,e){for(var n=t.length;n--;)if(Fi(t[n][0],e))return n;return-1},Wi=qi,Vi=Array.prototype.splice;var Yi=qi;var Xi=qi;var Gi=qi;var Ki=Hi,Zi=function(t){var e=this.__data__,n=Wi(e,t);return!(n<0)&&(n==e.length-1?e.pop():Vi.call(e,n,1),--this.size,!0)},Ji=function(t){var e=this.__data__,n=Yi(e,t);return n<0?void 0:e[n][1]},Qi=function(t){return Xi(this.__data__,t)>-1},to=function(t,e){var n=this.__data__,r=Gi(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function eo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}eo.prototype.clear=Ki,eo.prototype.delete=Zi,eo.prototype.get=Ji,eo.prototype.has=Qi,eo.prototype.set=to;var no=eo,ro=Si(_r,"Map"),io=zi,oo=no,ao=ro;var co=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var uo=function(t,e){var n=t.__data__;return co(e)?n["string"==typeof e?"string":"hash"]:n.map},lo=uo;var so=uo;var fo=uo;var ho=uo;var po=function(){this.size=0,this.__data__={hash:new io,map:new(ao||oo),string:new io}},yo=function(t){var e=lo(this,t).delete(t);return this.size-=e?1:0,e},vo=function(t){return so(this,t).get(t)},go=function(t){return fo(this,t).has(t)},mo=function(t,e){var n=ho(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function bo(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}bo.prototype.clear=po,bo.prototype.delete=yo,bo.prototype.get=vo,bo.prototype.has=go,bo.prototype.set=mo;var wo=bo,xo=wo;function Oo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Oo.Cache||xo),n}Oo.Cache=xo;var So=Oo;var jo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ao=/\\(\\)?/g,Po=function(t){var e=So(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(jo,(function(t,n,r,i){e.push(r?i.replace(Ao,"$1"):n||t)})),e})),Mo=Po;var Eo=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i},ko=Eo,_o=Pr,To=Vr,Do=Tr?Tr.prototype:void 0,Co=Do?Do.toString:void 0;var No=function t(e){if("string"==typeof e)return e;if(_o(e))return ko(e,t)+"";if(To(e))return Co?Co.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},Io=No;var Bo=function(t){return null==t?"":Io(t)},Ro=Pr,$o=Zr,Lo=Mo,zo=Bo;var Ho=function(t,e){return Ro(t)?t:$o(t,e)?[t]:Lo(zo(t))},Uo=Vr;var Fo=function(t){if("string"==typeof t||Uo(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},qo=Ho,Wo=Fo;var Vo=function(t,e){for(var n=0,r=(e=qo(e,t)).length;null!=t&&n<r;)t=t[Wo(e[n++])];return n&&n==r?t:void 0},Yo=Vo;var Xo=function(t,e,n){var r=null==t?void 0:Yo(t,e);return void 0===r?n:r},Go=ve(Xo);var Ko=ve((function(t){return null==t})),Zo=Ur,Jo=Pr,Qo=Fr;var ta,ea=ve((function(t){return"string"==typeof t||!Jo(t)&&Qo(t)&&"[object String]"==Zo(t)})),na={exports:{}},ra={};var ia,oa={};
|
|
17
10
|
/** @license React v16.13.1
|
|
18
11
|
* react-is.production.min.js
|
|
19
12
|
*
|
|
@@ -21,10 +14,10 @@ var Re={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
|
|
|
21
14
|
*
|
|
22
15
|
* This source code is licensed under the MIT license found in the
|
|
23
16
|
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*/"production"===process.env.NODE_ENV?ma.exports=function(){if(wa)return xa;wa=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case u:case l:case r:case o:case i:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case d:case p:case a:return t;default:return h}}case n:return h}}}function w(t){return b(t)===l}return xa.AsyncMode=u,xa.ConcurrentMode=l,xa.ContextConsumer=c,xa.ContextProvider=a,xa.Element=e,xa.ForwardRef=s,xa.Fragment=r,xa.Lazy=d,xa.Memo=p,xa.Portal=n,xa.Profiler=o,xa.StrictMode=i,xa.Suspense=f,xa.isAsyncMode=function(t){return w(t)||b(t)===u},xa.isConcurrentMode=w,xa.isContextConsumer=function(t){return b(t)===c},xa.isContextProvider=function(t){return b(t)===a},xa.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},xa.isForwardRef=function(t){return b(t)===s},xa.isFragment=function(t){return b(t)===r},xa.isLazy=function(t){return b(t)===d},xa.isMemo=function(t){return b(t)===p},xa.isPortal=function(t){return b(t)===n},xa.isProfiler=function(t){return b(t)===o},xa.isStrictMode=function(t){return b(t)===i},xa.isSuspense=function(t){return b(t)===f},xa.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===o||t===i||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===g||t.$$typeof===m||t.$$typeof===y)},xa.typeOf=b,xa}():ma.exports=(va||(va=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var y=t.type;switch(y){case u:case l:case r:case o:case i:case f:return y;default:var v=y&&y.$$typeof;switch(v){case c:case s:case d:case p:case a:return v;default:return h}}case n:return h}}}var w=u,x=l,O=c,S=a,j=e,A=s,M=r,P=d,E=p,k=n,_=o,T=i,C=f,D=!1;function N(t){return b(t)===l}ba.AsyncMode=w,ba.ConcurrentMode=x,ba.ContextConsumer=O,ba.ContextProvider=S,ba.Element=j,ba.ForwardRef=A,ba.Fragment=M,ba.Lazy=P,ba.Memo=E,ba.Portal=k,ba.Profiler=_,ba.StrictMode=T,ba.Suspense=C,ba.isAsyncMode=function(t){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(t)||b(t)===u},ba.isConcurrentMode=N,ba.isContextConsumer=function(t){return b(t)===c},ba.isContextProvider=function(t){return b(t)===a},ba.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ba.isForwardRef=function(t){return b(t)===s},ba.isFragment=function(t){return b(t)===r},ba.isLazy=function(t){return b(t)===d},ba.isMemo=function(t){return b(t)===p},ba.isPortal=function(t){return b(t)===n},ba.isProfiler=function(t){return b(t)===o},ba.isStrictMode=function(t){return b(t)===i},ba.isSuspense=function(t){return b(t)===f},ba.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===o||t===i||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===g||t.$$typeof===m||t.$$typeof===y)},ba.typeOf=b}()),ba);var Oa=ma.exports,Sa=ii,ja=oi;var Aa=function(t){return"number"==typeof t||ja(t)&&"[object Number]"==Sa(t)},Ma=Pe(Aa),Pa=Aa;var Ea=Pe((function(t){return Pa(t)&&t!=+t})),ka=function(t){return 0===t?0:t>0?1:-1},_a=function(t){return ga(t)&&t.indexOf("%")===t.length-1},Ta=function(t){return Ma(t)&&!Ea(t)},Ca=function(t){return Ta(t)||ga(t)},Da=0,Na=function(t){var e=++Da;return"".concat(t||"").concat(e)},Ia=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Ta(t)&&!ga(t))return r;if(_a(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return Ea(n)&&(n=r),i&&n>e&&(n=e),n},Ba=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},Ra=function(t,e){return Ta(t)&&Ta(e)?function(n){return t+n*(e-t)}:function(){return e}};function La(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):fa(t,e))===n})):null}function $a(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}function za(t){return za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},za(t)}var Ha=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Za=["points","pathLength"],Ua={svg:["viewBox","children"],polygon:Za,polyline:Za},Fa=["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"],qa=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(R(t)&&(n=t.props),!yi(n))return null;var r={};return Object.keys(n).forEach((function(t){Fa.includes(t)&&(r[t]=e||function(e){return n[t](n,e)})})),r},Va=function(t,e,n){if(!yi(t)||"object"!==za(t))return null;var r=null;return Object.keys(t).forEach((function(i){var o=t[i];Fa.includes(i)&&"function"==typeof o&&(r||(r={}),r[i]=function(t,e,n){return function(r){return t(e,n,r),null}}(o,e,n))})),r},Wa=["children"],Ya=["children"];function Xa(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ga(t){return Ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ga(t)}var Ka={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ja=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Qa=null,tc=null,ec=function t(e){if(e===Qa&&Array.isArray(tc))return tc;var n=[];return L.forEach(e,(function(e){ha(e)||(Oa.isFragment(e)?n=n.concat(t(e.props.children)):n.push(e))})),tc=n,Qa=e,n};function nc(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map((function(t){return Ja(t)})):[Ja(e)],ec(t).forEach((function(t){var e=fa(t,"type.displayName")||fa(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n}function rc(t,e){var n=nc(t,e);return n&&n[0]}var ic=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!Ta(n)||n<=0||!Ta(r)||r<=0)},oc=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ac=function(t){return t&&"object"===Ga(t)&&"cx"in t&&"cy"in t&&"r"in t},cc=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(R(t)&&(r=t.props),!yi(r))return null;var i={};return Object.keys(r).forEach((function(t){var o;(function(t,e,n,r){var i,o=null!==(i=null==Ua?void 0:Ua[r])&&void 0!==i?i:[];return!wi(t)&&(r&&o.includes(e)||Ha.includes(e))||n&&Fa.includes(e)})(null===(o=r)||void 0===o?void 0:o[t],t,e,n)&&(i[t]=r[t])})),i},uc=function t(e,n){if(e===n)return!0;var r=L.count(e);if(r!==L.count(n))return!1;if(0===r)return!0;if(1===r)return lc(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=e[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!t(o,a))return!1}else if(!lc(o,a))return!1}return!0},lc=function(t,e){if(ha(t)&&ha(e))return!0;if(!ha(t)&&!ha(e)){var n=t.props||{},r=n.children,i=Xa(n,Wa),o=e.props||{},a=o.children,c=Xa(o,Ya);return r&&a?$a(i,c)&&uc(r,a):!r&&!a&&$a(i,c)}return!1},sc=function(t,e){var n=[],r={};return ec(t).forEach((function(t,i){if(function(t){return t&&t.type&&ga(t.type)&&oc.indexOf(t.type)>=0}(t))n.push(t);else if(t){var o=Ja(t.type),a=e[o]||{},c=a.handler,u=a.once;if(c&&(!u||!r[o])){var l=c(t,o,i);n.push(l),r[o]=!0}}})),n},fc=["children","width","height","viewBox","className","style","title","desc"];function hc(){return hc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hc.apply(this,arguments)}function pc(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function dc(t){var e=t.children,n=t.width,r=t.height,i=t.viewBox,o=t.className,a=t.style,c=t.title,u=t.desc,l=pc(t,fc),s=i||{width:n,height:r,x:0,y:0},f=Hr("recharts-surface",o);return B.createElement("svg",hc({},cc(l,!0,"svg"),{className:f,width:n,height:r,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),B.createElement("title",null,c),B.createElement("desc",null,u),e)}var yc=["children","className"];function vc(){return vc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vc.apply(this,arguments)}function gc(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var mc=B.forwardRef((function(t,e){var n=t.children,r=t.className,i=gc(t,yc),o=Hr("recharts-layer",r);return B.createElement("g",vc({className:o},cc(i,!0),{ref:e}),n)})),bc="production"!==process.env.NODE_ENV,wc=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(bc&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(e.replace(/%s/g,(function(){return r[o++]})))}};var xc=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o},Oc=xc;var Sc=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Oc(t,e,n)},jc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Ac=function(t){return jc.test(t)};var Mc=function(t){return t.split("")},Pc="\\ud800-\\udfff",Ec="["+Pc+"]",kc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",_c="\\ud83c[\\udffb-\\udfff]",Tc="[^"+Pc+"]",Cc="(?:\\ud83c[\\udde6-\\uddff]){2}",Dc="[\\ud800-\\udbff][\\udc00-\\udfff]",Nc="(?:"+kc+"|"+_c+")"+"?",Ic="[\\ufe0e\\ufe0f]?",Bc=Ic+Nc+("(?:\\u200d(?:"+[Tc,Cc,Dc].join("|")+")"+Ic+Nc+")*"),Rc="(?:"+[Tc+kc+"?",kc,Cc,Dc,Ec].join("|")+")",Lc=RegExp(_c+"(?="+_c+")|"+Rc+Bc,"g");var $c=function(t){return t.match(Lc)||[]},zc=Mc,Hc=Ac,Zc=$c;var Uc=function(t){return Hc(t)?Zc(t):zc(t)},Fc=Sc,qc=Ac,Vc=Uc,Wc=Jo;var Yc=function(t){return function(e){e=Wc(e);var n=qc(e)?Vc(e):void 0,r=n?n[0]:e.charAt(0),i=n?Fc(n,1).join(""):e.slice(1);return r[t]()+i}},Xc=Pe(Yc("toUpperCase"));function Gc(t){return function(){return t}}const Kc=Math.cos,Jc=Math.sin,Qc=Math.sqrt,tu=Math.PI,eu=2*tu,nu=Math.PI,ru=2*nu,iu=1e-6,ou=ru-iu;function au(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class cu{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?au:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return au;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,c=n-t,u=r-e,l=o-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>iu)if(Math.abs(s*c-u*l)>iu&&i){let h=n-o,p=r-a,d=c*c+u*u,y=h*h+p*p,v=Math.sqrt(d),g=Math.sqrt(f),m=i*Math.tan((nu-Math.acos((d+f-y)/(2*v*g)))/2),b=m/g,w=m/v;Math.abs(b-1)>iu&&this._append`L${t+b*l},${e+b*s}`,this._append`A${i},${i},0,0,${+(s*h>l*p)},${this._x1=t+w*c},${this._y1=e+w*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),c=n*Math.sin(r),u=t+a,l=e+c,s=1^o,f=o?r-i:i-r;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>iu||Math.abs(this._y1-l)>iu)&&this._append`L${u},${l}`,n&&(f<0&&(f=f%ru+ru),f>ou?this._append`A${n},${n},0,1,${s},${t-a},${e-c}A${n},${n},0,1,${s},${this._x1=u},${this._y1=l}`:f>iu&&this._append`A${n},${n},0,${+(f>=nu)},${s},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function uu(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new cu(e)}function lu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function su(t){this._context=t}function fu(t){return new su(t)}function hu(t){return t[0]}function pu(t){return t[1]}function du(t,e){var n=Gc(!0),r=null,i=fu,o=null,a=uu(c);function c(c){var u,l,s,f=(c=lu(c)).length,h=!1;for(null==r&&(o=i(s=a())),u=0;u<=f;++u)!(u<f&&n(l=c[u],u,c))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,u,c),+e(l,u,c));if(s)return o=null,s+""||null}return t="function"==typeof t?t:void 0===t?hu:Gc(t),e="function"==typeof e?e:void 0===e?pu:Gc(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Gc(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Gc(+t),c):e},c.defined=function(t){return arguments.length?(n="function"==typeof t?t:Gc(!!t),c):n},c.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),c):i},c.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),c):r},c}function yu(t,e,n){var r=null,i=Gc(!0),o=null,a=fu,c=null,u=uu(l);function l(l){var s,f,h,p,d,y=(l=lu(l)).length,v=!1,g=new Array(y),m=new Array(y);for(null==o&&(c=a(d=u())),s=0;s<=y;++s){if(!(s<y&&i(p=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=s-1;h>=f;--h)c.point(g[h],m[h]);c.lineEnd(),c.areaEnd()}v&&(g[s]=+t(p,s,l),m[s]=+e(p,s,l),c.point(r?+r(p,s,l):g[s],n?+n(p,s,l):m[s]))}if(d)return c=null,d+""||null}function s(){return du().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?hu:Gc(+t),e="function"==typeof e?e:Gc(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?pu:Gc(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Gc(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Gc(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Gc(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Gc(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Gc(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Gc(+t),l):n},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(n)},l.lineX1=function(){return s().x(r).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:Gc(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(c=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=c=null:c=a(o=t),l):o},l}su.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class vu{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}var gu={draw(t,e){const n=Qc(e/tu);t.moveTo(n,0),t.arc(0,0,n,0,eu)}},mu={draw(t,e){const n=Qc(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};const bu=Qc(1/3),wu=2*bu;var xu={draw(t,e){const n=Qc(e/wu),r=n*bu;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Ou={draw(t,e){const n=Qc(e),r=-n/2;t.rect(r,r,n,n)}};const Su=Jc(tu/10)/Jc(7*tu/10),ju=Jc(eu/10)*Su,Au=-Kc(eu/10)*Su;var Mu={draw(t,e){const n=Qc(.8908130915292852*e),r=ju*n,i=Au*n;t.moveTo(0,-n),t.lineTo(r,i);for(let e=1;e<5;++e){const o=eu*e/5,a=Kc(o),c=Jc(o);t.lineTo(c*n,-a*n),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}};const Pu=Qc(3);var Eu={draw(t,e){const n=-Qc(e/(3*Pu));t.moveTo(0,2*n),t.lineTo(-Pu*n,-n),t.lineTo(Pu*n,-n),t.closePath()}};const ku=-.5,_u=Qc(3)/2,Tu=1/Qc(12),Cu=3*(Tu/2+1);var Du={draw(t,e){const n=Qc(e/Cu),r=n/2,i=n*Tu,o=r,a=n*Tu+n,c=-o,u=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(c,u),t.lineTo(ku*r-_u*i,_u*r+ku*i),t.lineTo(ku*o-_u*a,_u*o+ku*a),t.lineTo(ku*c-_u*u,_u*c+ku*u),t.lineTo(ku*r+_u*i,ku*i-_u*r),t.lineTo(ku*o+_u*a,ku*a-_u*o),t.lineTo(ku*c+_u*u,ku*u-_u*c),t.closePath()}};function Nu(){}function Iu(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Bu(t){this._context=t}function Ru(t){this._context=t}function Lu(t){this._context=t}function $u(t){this._context=t}function zu(t){return t<0?-1:1}function Hu(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),c=(o*i+a*r)/(r+i);return(zu(o)+zu(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function Zu(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Uu(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,c=(o-r)/3;t._context.bezierCurveTo(r+c,i+c*e,o-c,a-c*n,o,a)}function Fu(t){this._context=t}function qu(t){this._context=new Vu(t)}function Vu(t){this._context=t}function Wu(t){this._context=t}function Yu(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Xu(t,e){this._context=t,this._t=e}function Gu(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],c=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<c;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Ku(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function Ju(t,e){return t[e]}function Qu(t){const e=[];return e.key=t,e}function tl(t){return tl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(t)}Bu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Iu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Iu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ru.prototype={areaStart:Nu,areaEnd:Nu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Iu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Iu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},$u.prototype={areaStart:Nu,areaEnd:Nu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Fu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Uu(this,this._t0,Zu(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Uu(this,Zu(this,n=Hu(this,t,e)),n);break;default:Uu(this,this._t0,n=Hu(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(qu.prototype=Object.create(Fu.prototype)).point=function(t,e){Fu.prototype.point.call(this,e,t)},Vu.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},Wu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Yu(t),i=Yu(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Xu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var el=["type","size","sizeType"];function nl(){return nl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},nl.apply(this,arguments)}function rl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function il(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rl(Object(n),!0).forEach((function(e){ol(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ol(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==tl(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==tl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===tl(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function al(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var cl={symbolCircle:gu,symbolCross:mu,symbolDiamond:xu,symbolSquare:Ou,symbolStar:Mu,symbolTriangle:Eu,symbolWye:Du},ul=Math.PI/180,ll=function(t){var e,n,r=t.type,i=void 0===r?"circle":r,o=t.size,a=void 0===o?64:o,c=t.sizeType,u=void 0===c?"area":c,l=il(il({},al(t,el)),{},{type:i,size:a,sizeType:u}),s=l.className,f=l.cx,h=l.cy,p=cc(l,!0);return f===+f&&h===+h&&a===+a?B.createElement("path",nl({},p,{className:Hr("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(Xc(t));return cl[e]||gu}(i),n=function(t,e){let n=null,r=uu(i);function i(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"==typeof t?t:Gc(t||gu),e="function"==typeof e?e:Gc(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:Gc(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:Gc(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i}().type(e).size(function(t,e,n){if("area"===e)return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var r=18*ul;return 1.25*t*t*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(a,u,i)),n())})):null};function sl(t){return sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(t)}function fl(){return fl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fl.apply(this,arguments)}function hl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ml(r.key),r)}}function dl(t,e){return dl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dl(t,e)}function yl(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vl(t);if(e){var i=vl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===sl(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function vl(t){return vl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vl(t)}function gl(t,e,n){return(e=ml(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ml(t){var e=function(t,e){if("object"!==sl(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==sl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===sl(e)?e:String(e)}ll.registerSymbol=function(t,e){cl["symbol".concat(Xc(t))]=e};var bl=32,wl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dl(t,e)}(o,$);var e,n,r,i=yl(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=16,r=bl/6,i=bl/3,o=t.inactive?e:t.color;if("plainline"===t.type)return B.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:bl,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return B.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(n,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(bl,"M").concat(2*i,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return B.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(bl,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(B.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hl(Object(n),!0).forEach((function(e){gl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return delete a.legendIcon,B.cloneElement(t.legendIcon,a)}return B.createElement(ll,{fill:o,cx:n,cy:n,size:bl,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,r=e.iconSize,i=e.layout,o=e.formatter,a=e.inactiveColor,c={x:0,y:0,width:bl,height:bl},u={display:"horizontal"===i?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var i,s=e.formatter||o,f=Hr((gl(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),gl(i,"inactive",e.inactive),i));if("none"===e.type)return null;var h=wi(e.value)?null:e.value;wc(!wi(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=e.inactive?a:e.color;return B.createElement("li",fl({className:f,style:u,key:"legend-item-".concat(n)},Va(t.props,e,n)),B.createElement(dc,{width:r,height:r,viewBox:c,style:l},t.renderIcon(e)),B.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},s?s(h,e,n):h))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,r=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return B.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&pl(e.prototype,n),r&&pl(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();gl(wl,"displayName","Legend"),gl(wl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var xl=bo;var Ol=bo,Sl=wo,jl=Bo;var Al=bo,Ml=function(){this.__data__=new xl,this.size=0},Pl=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},El=function(t){return this.__data__.get(t)},kl=function(t){return this.__data__.has(t)},_l=function(t,e){var n=this.__data__;if(n instanceof Ol){var r=n.__data__;if(!Sl||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new jl(r)}return n.set(t,e),this.size=n.size,this};function Tl(t){var e=this.__data__=new Al(t);this.size=e.size}Tl.prototype.clear=Ml,Tl.prototype.delete=Pl,Tl.prototype.get=El,Tl.prototype.has=kl,Tl.prototype.set=_l;var Cl=Tl;var Dl=Bo,Nl=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Il=function(t){return this.__data__.has(t)};function Bl(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Dl;++e<n;)this.add(t[e])}Bl.prototype.add=Bl.prototype.push=Nl,Bl.prototype.has=Il;var Rl=Bl;var Ll=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};var $l=function(t,e){return t.has(e)},zl=Rl,Hl=Ll,Zl=$l;var Ul=function(t,e,n,r,i,o){var a=1&n,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=o.get(t),s=o.get(e);if(l&&s)return l==e&&s==t;var f=-1,h=!0,p=2&n?new zl:void 0;for(o.set(t,e),o.set(e,t);++f<c;){var d=t[f],y=e[f];if(r)var v=a?r(y,d,f,e,t,o):r(d,y,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!Hl(e,(function(t,e){if(!Zl(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h};var Fl=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};var ql=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},Vl=Vr.Uint8Array,Wl=io,Yl=Ul,Xl=Fl,Gl=ql,Kl=Wr?Wr.prototype:void 0,Jl=Kl?Kl.valueOf:void 0;var Ql=function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new Vl(t),new Vl(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Wl(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=Xl;case"[object Set]":var u=1&r;if(c||(c=Gl),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var s=Yl(c(t),c(e),r,i,o,a);return a.delete(t),s;case"[object Symbol]":if(Jl)return Jl.call(t)==Jl.call(e)}return!1};var ts=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},es=ts,ns=Zr;var rs=function(t,e,n){var r=e(t);return ns(t)?r:es(r,n(t))};var is=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o};var os=is,as=function(){return[]},cs=Object.prototype.propertyIsEnumerable,us=Object.getOwnPropertySymbols,ls=us?function(t){return null==t?[]:(t=Object(t),os(us(t),(function(e){return cs.call(t,e)})))}:as,ss=ls;var fs=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},hs=ii,ps=oi;var ds=function(t){return ps(t)&&"[object Arguments]"==hs(t)},ys=oi,vs=Object.prototype,gs=vs.hasOwnProperty,ms=vs.propertyIsEnumerable,bs=ds(function(){return arguments}())?ds:function(t){return ys(t)&&gs.call(t,"callee")&&!ms.call(t,"callee")},ws={exports:{}};var xs=function(){return!1};!function(t,e){var n=Vr,r=xs,i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||r;t.exports=c}(ws,ws.exports);var Os=ws.exports,Ss=/^(?:0|[1-9]\d*)$/;var js=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ss.test(t))&&t>-1&&t%1==0&&t<e};var As=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Ms=ii,Ps=As,Es=oi,ks={};ks["[object Float32Array]"]=ks["[object Float64Array]"]=ks["[object Int8Array]"]=ks["[object Int16Array]"]=ks["[object Int32Array]"]=ks["[object Uint8Array]"]=ks["[object Uint8ClampedArray]"]=ks["[object Uint16Array]"]=ks["[object Uint32Array]"]=!0,ks["[object Arguments]"]=ks["[object Array]"]=ks["[object ArrayBuffer]"]=ks["[object Boolean]"]=ks["[object DataView]"]=ks["[object Date]"]=ks["[object Error]"]=ks["[object Function]"]=ks["[object Map]"]=ks["[object Number]"]=ks["[object Object]"]=ks["[object RegExp]"]=ks["[object Set]"]=ks["[object String]"]=ks["[object WeakMap]"]=!1;var _s=function(t){return Es(t)&&Ps(t.length)&&!!ks[Ms(t)]};var Ts=function(t){return function(e){return t(e)}},Cs={exports:{}};!function(t,e){var n=Ur,r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}(Cs,Cs.exports);var Ds=Cs.exports,Ns=_s,Is=Ts,Bs=Ds&&Ds.isTypedArray,Rs=Bs?Is(Bs):Ns,Ls=fs,$s=bs,zs=Zr,Hs=Os,Zs=js,Us=Rs,Fs=Object.prototype.hasOwnProperty;var qs=function(t,e){var n=zs(t),r=!n&&$s(t),i=!n&&!r&&Hs(t),o=!n&&!r&&!i&&Us(t),a=n||r||i||o,c=a?Ls(t.length,String):[],u=c.length;for(var l in t)!e&&!Fs.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Zs(l,u))||c.push(l);return c},Vs=Object.prototype;var Ws=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Vs)};var Ys=function(t,e){return function(n){return t(e(n))}},Xs=Ys(Object.keys,Object),Gs=Ws,Ks=Xs,Js=Object.prototype.hasOwnProperty;var Qs=function(t){if(!Gs(t))return Ks(t);var e=[];for(var n in Object(t))Js.call(t,n)&&"constructor"!=n&&e.push(n);return e},tf=bi,ef=As;var nf=function(t){return null!=t&&ef(t.length)&&!tf(t)},rf=qs,of=Qs,af=nf;var cf=function(t){return af(t)?rf(t):of(t)},uf=rs,lf=ss,sf=cf;var ff=function(t){return uf(t,sf,lf)},hf=ff,pf=Object.prototype.hasOwnProperty;var df=function(t,e,n,r,i,o){var a=1&n,c=hf(t),u=c.length;if(u!=hf(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:pf.call(e,s)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var d=a;++l<u;){var y=t[s=c[l]],v=e[s];if(r)var g=a?r(v,y,s,e,t,o):r(y,v,s,t,e,o);if(!(void 0===g?y===v||i(y,v,n,r,o):g)){p=!1;break}d||(d="constructor"==s)}if(p&&!d){var m=t.constructor,b=e.constructor;m==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p},yf=$i(Vr,"DataView"),vf=$i(Vr,"Promise"),gf=$i(Vr,"Set"),mf=yf,bf=wo,wf=vf,xf=gf,Of=$i(Vr,"WeakMap"),Sf=ii,jf=Ai,Af="[object Map]",Mf="[object Promise]",Pf="[object Set]",Ef="[object WeakMap]",kf="[object DataView]",_f=jf(mf),Tf=jf(bf),Cf=jf(wf),Df=jf(xf),Nf=jf(Of),If=Sf;(mf&&If(new mf(new ArrayBuffer(1)))!=kf||bf&&If(new bf)!=Af||wf&&If(wf.resolve())!=Mf||xf&&If(new xf)!=Pf||Of&&If(new Of)!=Ef)&&(If=function(t){var e=Sf(t),n="[object Object]"==e?t.constructor:void 0,r=n?jf(n):"";if(r)switch(r){case _f:return kf;case Tf:return Af;case Cf:return Mf;case Df:return Pf;case Nf:return Ef}return e});var Bf=Cl,Rf=Ul,Lf=Ql,$f=df,zf=If,Hf=Zr,Zf=Os,Uf=Rs,Ff="[object Arguments]",qf="[object Array]",Vf="[object Object]",Wf=Object.prototype.hasOwnProperty;var Yf=function(t,e,n,r,i,o){var a=Hf(t),c=Hf(e),u=a?qf:zf(t),l=c?qf:zf(e),s=(u=u==Ff?Vf:u)==Vf,f=(l=l==Ff?Vf:l)==Vf,h=u==l;if(h&&Zf(t)){if(!Zf(e))return!1;a=!0,s=!1}if(h&&!s)return o||(o=new Bf),a||Uf(t)?Rf(t,e,n,r,i,o):Lf(t,e,u,n,r,i,o);if(!(1&n)){var p=s&&Wf.call(t,"__wrapped__"),d=f&&Wf.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new Bf),i(y,v,n,r,o)}}return!!h&&(o||(o=new Bf),$f(t,e,n,r,i,o))},Xf=Yf,Gf=oi;var Kf=function t(e,n,r,i,o){return e===n||(null==e||null==n||!Gf(e)&&!Gf(n)?e!=e&&n!=n:Xf(e,n,r,i,t,o))},Jf=Cl,Qf=Kf;var th=function(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var c=n[i];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<o;){var u=(c=n[i])[0],l=t[u],s=c[1];if(a&&c[2]){if(void 0===l&&!(u in t))return!1}else{var f=new Jf;if(r)var h=r(l,s,u,t,e,f);if(!(void 0===h?Qf(s,l,3,r,f):h))return!1}}return!0},eh=di;var nh=function(t){return t==t&&!eh(t)},rh=nh,ih=cf;var oh=function(t){for(var e=ih(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,rh(i)]}return e};var ah=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}},ch=th,uh=oh,lh=ah;var sh=function(t){var e=uh(t);return 1==e.length&&e[0][2]?lh(e[0][0],e[0][1]):function(n){return n===t||ch(n,t,e)}};var fh=function(t,e){return null!=t&&e in Object(t)},hh=ra,ph=bs,dh=Zr,yh=js,vh=As,gh=oa;var mh=function(t,e,n){for(var r=-1,i=(e=hh(e,t)).length,o=!1;++r<i;){var a=gh(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&vh(i)&&yh(a,i)&&(dh(t)||ph(t))},bh=fh,wh=mh;var xh=function(t,e){return null!=t&&wh(t,e,bh)},Oh=Kf,Sh=sa,jh=xh,Ah=pi,Mh=nh,Ph=ah,Eh=oa;var kh=function(t,e){return Ah(t)&&Mh(e)?Ph(Eh(t),e):function(n){var r=Sh(n,t);return void 0===r&&r===e?jh(n,t):Oh(e,r,3)}};var _h=function(t){return t};var Th=function(t){return function(e){return null==e?void 0:e[t]}},Ch=ua;var Dh=function(t){return function(e){return Ch(e,t)}},Nh=Th,Ih=Dh,Bh=pi,Rh=oa;var Lh=sh,$h=kh,zh=_h,Hh=Zr,Zh=function(t){return Bh(t)?Nh(Rh(t)):Ih(t)};var Uh=function(t){return"function"==typeof t?t:null==t?zh:"object"==typeof t?Hh(t)?$h(t[0],t[1]):Lh(t):Zh(t)};var Fh=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1};var qh=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1},Vh=Fh,Wh=function(t){return t!=t},Yh=qh;var Xh=function(t,e,n){return e==e?Yh(t,e,n):Vh(t,Wh,n)},Gh=Xh;var Kh=function(t,e){return!!(null==t?0:t.length)&&Gh(t,e,0)>-1};var Jh=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1};var Qh=gf,tp=function(){},ep=Qh&&1/ql(new Qh([,-0]))[1]==1/0?function(t){return new Qh(t)}:tp,np=Rl,rp=Kh,ip=Jh,op=$l,ap=ep,cp=ql;var up=function(t,e,n){var r=-1,i=rp,o=t.length,a=!0,c=[],u=c;if(n)a=!1,i=ip;else if(o>=200){var l=e?null:ap(t);if(l)return cp(l);a=!1,i=op,u=new np}else u=e?[]:c;t:for(;++r<o;){var s=t[r],f=e?e(s):s;if(s=n||0!==s?s:0,a&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),c.push(s)}else i(u,f,n)||(u!==c&&u.push(f),c.push(s))}return c},lp=Uh,sp=up;var fp=function(t,e){return t&&t.length?sp(t,lp(e)):[]},hp=Pe(fp);function pp(t,e,n){return!0===e?hp(t,n):wi(e)?hp(t,e):t}function dp(t){return dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dp(t)}var yp=["ref"];function vp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vp(Object(n),!0).forEach((function(e){Sp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,jp(r.key),r)}}function bp(t,e){return bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},bp(t,e)}function wp(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Op(t);if(e){var i=Op(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===dp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xp(t)}(this,n)}}function xp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Op(t){return Op=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Op(t)}function Sp(t,e,n){return(e=jp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jp(t){var e=function(t,e){if("object"!==dp(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==dp(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===dp(e)?e:String(e)}function Ap(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Mp(t){return t.value}var Pp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&bp(t,e)}(o,$);var e,n,r,i=wp(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Sp(xp(t=i.call.apply(i,[this].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}return e=o,r=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&Ta(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e))}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?gp({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,c=r.margin,u=r.chartWidth,l=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),gp(gp({},e),n)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,u=gp(gp({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return B.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(B.isValidElement(t))return B.cloneElement(t,e);if("function"==typeof t)return B.createElement(t,e);e.ref;var n=Ap(e,yp);return B.createElement(wl,n)}(n,gp(gp({},this.props),{},{payload:pp(c,a,Mp)})))}}])&&mp(e.prototype,n),r&&mp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();Sp(Pp,"displayName","Legend"),Sp(Pp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ep=bs,kp=Zr,_p=Wr?Wr.isConcatSpreadable:void 0;var Tp=ts,Cp=function(t){return kp(t)||Ep(t)||!!(_p&&t&&t[_p])};var Dp=function t(e,n,r,i,o){var a=-1,c=e.length;for(r||(r=Cp),o||(o=[]);++a<c;){var u=e[a];n>0&&r(u)?n>1?t(u,n-1,r,i,o):Tp(o,u):i||(o[o.length]=u)}return o};var Np=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),c=a.length;c--;){var u=a[t?c:++i];if(!1===n(o[u],u,o))break}return e}},Ip=Np(),Bp=cf;var Rp=function(t,e){return t&&Ip(t,e,Bp)},Lp=nf;var $p=function(t,e){return function(n,r){if(null==n)return n;if(!Lp(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}(Rp),zp=$p,Hp=nf;var Zp=function(t,e){var n=-1,r=Hp(t)?Array(t.length):[];return zp(t,(function(t,i,o){r[++n]=e(t,i,o)})),r};var Up=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t},Fp=ui;var qp=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Fp(t),a=void 0!==e,c=null===e,u=e==e,l=Fp(e);if(!c&&!l&&!o&&t>e||o&&a&&u&&!c&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||c&&n&&i||!a&&i||!u)return-1}return 0};var Vp=function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,c=n.length;++r<a;){var u=qp(i[r],o[r]);if(u)return r>=c?u:u*("desc"==n[r]?-1:1)}return t.index-e.index},Wp=Fo,Yp=ua,Xp=Uh,Gp=Zp,Kp=Up,Jp=Ts,Qp=Vp,td=_h,ed=Zr;var nd=function(t,e,n){e=e.length?Wp(e,(function(t){return ed(t)?function(e){return Yp(e,1===t.length?t[0]:t)}:t})):[td];var r=-1;e=Wp(e,Jp(Xp));var i=Gp(t,(function(t,n,i){return{criteria:Wp(e,(function(e){return e(t)})),index:++r,value:t}}));return Kp(i,(function(t,e){return Qp(t,e,n)}))};var rd=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},id=Math.max;var od=function(t,e,n){return e=id(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=id(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=r[i];return c[e]=n(a),rd(t,this,c)}};var ad=function(t){return function(){return t}},cd=$i,ud=function(){try{var t=cd(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),ld=ad,sd=ud,fd=sd?function(t,e){return sd(t,"toString",{configurable:!0,enumerable:!1,value:ld(e),writable:!0})}:_h,hd=fd,pd=Date.now;var dd=function(t){var e=0,n=0;return function(){var r=pd(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(hd),yd=_h,vd=od,gd=dd;var md=io,bd=nf,wd=js,xd=di;var Od=function(t,e,n){if(!xd(n))return!1;var r=typeof e;return!!("number"==r?bd(n)&&wd(e,n.length):"string"==r&&e in n)&&md(n[e],t)},Sd=Dp,jd=nd,Ad=Od,Md=Pe(function(t,e){return gd(vd(t,e,yd),t+"")}((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Ad(t,e[0],e[1])?e=[]:n>2&&Ad(e[0],e[1],e[2])&&(e=[e[0]]),jd(t,Sd(e,1),[])})));function Pd(t){return Pd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pd(t)}function Ed(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return kd(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kd(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kd(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Td(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_d(Object(n),!0).forEach((function(e){Cd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Cd(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Pd(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Pd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Pd(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Dd(t){return Array.isArray(t)&&Ca(t[0])&&Ca(t[1])?t.join(" ~ "):t}var Nd,Id,Bd,Rd,Ld,$d,zd,Hd,Zd,Ud,Fd,qd,Vd=function(t){var e=t.separator,n=void 0===e?" : ":e,r=t.contentStyle,i=void 0===r?{}:r,o=t.itemStyle,a=void 0===o?{}:o,c=t.labelStyle,u=void 0===c?{}:c,l=t.payload,s=t.formatter,f=t.itemSorter,h=t.wrapperClassName,p=t.labelClassName,d=t.label,y=t.labelFormatter,v=Td({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),g=Td({margin:0},u),m=!ha(d),b=m?d:"",w=Hr("recharts-default-tooltip",h),x=Hr("recharts-tooltip-label",p);return m&&y&&null!=l&&(b=y(d,l)),B.createElement("div",{className:w,style:v},B.createElement("p",{className:x,style:g},B.isValidElement(b)?b:"".concat(b)),function(){if(l&&l.length){var t=(f?Md(l,f):l).map((function(t,e){if("none"===t.type)return null;var r=Td({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||Dd,o=t.value,c=t.name,u=o,f=c;if(i&&null!=u&&null!=f){var h=i(o,c,t,e,l);if(Array.isArray(h)){var p=Ed(h,2);u=p[0],f=p[1]}else u=h}return B.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:r},Ca(f)?B.createElement("span",{className:"recharts-tooltip-item-name"},f):null,Ca(f)?B.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,B.createElement("span",{className:"recharts-tooltip-item-value"},u),B.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return B.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())},Wd={exports:{}};function Yd(){if(Id)return Nd;Id=1;return Nd="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Xd(){if($d)return Ld;$d=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Ld=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(r,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(r),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))e.call(o,l)&&(c[l]=o[l]);if(t){a=t(o);for(var s=0;s<a.length;s++)n.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},Ld}function Gd(){return Hd?zd:(Hd=1,zd=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Kd=Oa;Wd.exports=function(){if(qd)return Fd;qd=1;var t=Oa,e=Xd(),n=Yd(),r=Gd(),i=function(){if(Ud)return Zd;Ud=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Yd(),n={},r=Gd();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in i)if(r(i,l)){var s;try{if("function"!=typeof i[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[l](o,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in n)){n[s.message]=!0;var h=u?u():"";t("Failed "+a+" type: "+s.message+(null!=h?h:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Zd=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Fd=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(t){return y((function(e,r,i,o,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[r];if(!Array.isArray(c))return new d("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,i,o,a+"["+u+"]",n);if(l instanceof Error)return l}return null}))},element:y((function(t,e,n,r,i){var o=t[e];return c(o)?null:new d("Invalid "+r+" `"+i+"` of type `"+b(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:y((function(e,n,r,i,o){var a=e[n];return t.isValidElementType(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,n,r,i,o){if(!(e[n]instanceof t)){var a=t.name||f;return new d("Invalid "+i+" `"+o+"` of type `"+((c=e[n]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(t,e,n,r,i){return m(t[e])?null:new d("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,i,o,a,c){if("function"!=typeof t)return new d("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=e[i],l=b(u);if("object"!==l)return new d("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+o+"`, expected an object.");for(var s in u)if(r(u,s)){var f=t(u,s,o,a,c+"."+s,n);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?y((function(e,n,r,i,o){for(var a=e[n],c=0;c<t.length;c++)if(p(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new d("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+u+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return y((function(e,i,o,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,i,o,a,c,n);if(null==s)return null;s.data&&r(s.data,"expectedType")&&u.push(s.data.expectedType)}return new d("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,r,i,o,a){var c=e[r],u=b(c);if("object"!==u)return new d("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return g(i,o,a,l,w(s));var f=s(c,l,i,o,a+"."+l,n);if(f)return f}return null}))},exact:function(t){return y((function(i,o,a,c,u){var l=i[o],s=b(l);if("object"!==s)return new d("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var h in f){var p=t[h];if(r(t,h)&&"function"!=typeof p)return g(a,c,u,h,w(p));if(!p)return new d("Invalid "+c+" `"+u+"` key `"+h+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=p(l,h,a,c,u+"."+h,n);if(y)return y}return null}))}};function p(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function i(i,a,c,l,s,h,p){if(l=l||f,h=h||c,p!==n){if(u){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,r++)}}return null==a[c]?i?null===a[c]?new d("The "+s+" `"+h+"` is marked as required in `"+l+"`, but its value is `null`."):new d("The "+s+" `"+h+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,h)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function v(t){return y((function(e,n,r,i,o,a){var c=e[n];return b(c)!==t?new d("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+r+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,n,r,i){return new d((t||"React class")+": "+e+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return d.prototype=Error.prototype,h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Fd}()(Kd.isElement,!0)}else Wd.exports=function(){if(Rd)return Bd;Rd=1;var t=Yd();function e(){}function n(){}return n.resetWarningCache=e,Bd=function(){function r(e,n,r,i,o,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o}}
|
|
17
|
+
*/"production"===process.env.NODE_ENV?na.exports=function(){if(ia)return oa;ia=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:switch(t=t.type){case u:case l:case r:case o:case i:case f:return t;default:switch(t=t&&t.$$typeof){case c:case s:case d:case p:case a:return t;default:return h}}case n:return h}}}function w(t){return b(t)===l}return oa.AsyncMode=u,oa.ConcurrentMode=l,oa.ContextConsumer=c,oa.ContextProvider=a,oa.Element=e,oa.ForwardRef=s,oa.Fragment=r,oa.Lazy=d,oa.Memo=p,oa.Portal=n,oa.Profiler=o,oa.StrictMode=i,oa.Suspense=f,oa.isAsyncMode=function(t){return w(t)||b(t)===u},oa.isConcurrentMode=w,oa.isContextConsumer=function(t){return b(t)===c},oa.isContextProvider=function(t){return b(t)===a},oa.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},oa.isForwardRef=function(t){return b(t)===s},oa.isFragment=function(t){return b(t)===r},oa.isLazy=function(t){return b(t)===d},oa.isMemo=function(t){return b(t)===p},oa.isPortal=function(t){return b(t)===n},oa.isProfiler=function(t){return b(t)===o},oa.isStrictMode=function(t){return b(t)===i},oa.isSuspense=function(t){return b(t)===f},oa.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===o||t===i||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===g||t.$$typeof===m||t.$$typeof===y)},oa.typeOf=b,oa}():na.exports=(ta||(ta=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,s=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,d=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,m=t?Symbol.for("react.scope"):60119;function b(t){if("object"==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var y=t.type;switch(y){case u:case l:case r:case o:case i:case f:return y;default:var v=y&&y.$$typeof;switch(v){case c:case s:case d:case p:case a:return v;default:return h}}case n:return h}}}var w=u,x=l,O=c,S=a,j=e,A=s,P=r,M=d,E=p,k=n,_=o,T=i,D=f,C=!1;function N(t){return b(t)===l}ra.AsyncMode=w,ra.ConcurrentMode=x,ra.ContextConsumer=O,ra.ContextProvider=S,ra.Element=j,ra.ForwardRef=A,ra.Fragment=P,ra.Lazy=M,ra.Memo=E,ra.Portal=k,ra.Profiler=_,ra.StrictMode=T,ra.Suspense=D,ra.isAsyncMode=function(t){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(t)||b(t)===u},ra.isConcurrentMode=N,ra.isContextConsumer=function(t){return b(t)===c},ra.isContextProvider=function(t){return b(t)===a},ra.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},ra.isForwardRef=function(t){return b(t)===s},ra.isFragment=function(t){return b(t)===r},ra.isLazy=function(t){return b(t)===d},ra.isMemo=function(t){return b(t)===p},ra.isPortal=function(t){return b(t)===n},ra.isProfiler=function(t){return b(t)===o},ra.isStrictMode=function(t){return b(t)===i},ra.isSuspense=function(t){return b(t)===f},ra.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===l||t===o||t===i||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===c||t.$$typeof===s||t.$$typeof===v||t.$$typeof===g||t.$$typeof===m||t.$$typeof===y)},ra.typeOf=b}()),ra);var aa=na.exports,ca=Ur,ua=Fr;var la=function(t){return"number"==typeof t||ua(t)&&"[object Number]"==ca(t)},sa=ve(la),fa=la;var ha=ve((function(t){return fa(t)&&t!=+t})),pa=function(t){return 0===t?0:t>0?1:-1},da=function(t){return ea(t)&&t.indexOf("%")===t.length-1},ya=function(t){return sa(t)&&!ha(t)},va=function(t){return ya(t)||ea(t)},ga=0,ma=function(t){var e=++ga;return"".concat(t||"").concat(e)},ba=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!ya(t)&&!ea(t))return r;if(da(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return ha(n)&&(n=r),i&&n>e&&(n=e),n},wa=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},xa=function(t,e){return ya(t)&&ya(e)?function(n){return t+n*(e-t)}:function(){return e}};function Oa(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):Go(t,e))===n})):null}function Sa(t,e){for(var n in t)if({}.hasOwnProperty.call(t,n)&&(!{}.hasOwnProperty.call(e,n)||t[n]!==e[n]))return!1;for(var r in e)if({}.hasOwnProperty.call(e,r)&&!{}.hasOwnProperty.call(t,r))return!1;return!0}function ja(t){return ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(t)}var Aa=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Pa=["points","pathLength"],Ma={svg:["viewBox","children"],polygon:Pa,polyline:Pa},Ea=["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"],ka=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(C(t)&&(n=t.props),!Qr(n))return null;var r={};return Object.keys(n).forEach((function(t){Ea.includes(t)&&(r[t]=e||function(e){return n[t](n,e)})})),r},_a=function(t,e,n){if(!Qr(t)||"object"!==ja(t))return null;var r=null;return Object.keys(t).forEach((function(i){var o=t[i];Ea.includes(i)&&"function"==typeof o&&(r||(r={}),r[i]=function(t,e,n){return function(r){return t(e,n,r),null}}(o,e,n))})),r},Ta=["children"],Da=["children"];function Ca(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Na(t){return Na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Na(t)}var Ia={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Ba=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Ra=null,$a=null,La=function t(e){if(e===Ra&&Array.isArray($a))return $a;var n=[];return N.forEach(e,(function(e){Ko(e)||(aa.isFragment(e)?n=n.concat(t(e.props.children)):n.push(e))})),$a=n,Ra=e,n};function za(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map((function(t){return Ba(t)})):[Ba(e)],La(t).forEach((function(t){var e=Go(t,"type.displayName")||Go(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n}function Ha(t,e){var n=za(t,e);return n&&n[0]}var Ua=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!ya(n)||n<=0||!ya(r)||r<=0)},Fa=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],qa=function(t){return t&&"object"===Na(t)&&"cx"in t&&"cy"in t&&"r"in t},Wa=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(C(t)&&(r=t.props),!Qr(r))return null;var i={};return Object.keys(r).forEach((function(t){var o;(function(t,e,n,r){var i,o=null!==(i=null==Ma?void 0:Ma[r])&&void 0!==i?i:[];return!ii(t)&&(r&&o.includes(e)||Aa.includes(e))||n&&Ea.includes(e)})(null===(o=r)||void 0===o?void 0:o[t],t,e,n)&&(i[t]=r[t])})),i},Va=function t(e,n){if(e===n)return!0;var r=N.count(e);if(r!==N.count(n))return!1;if(0===r)return!0;if(1===r)return Ya(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var o=e[i],a=n[i];if(Array.isArray(o)||Array.isArray(a)){if(!t(o,a))return!1}else if(!Ya(o,a))return!1}return!0},Ya=function(t,e){if(Ko(t)&&Ko(e))return!0;if(!Ko(t)&&!Ko(e)){var n=t.props||{},r=n.children,i=Ca(n,Ta),o=e.props||{},a=o.children,c=Ca(o,Da);return r&&a?Sa(i,c)&&Va(r,a):!r&&!a&&Sa(i,c)}return!1},Xa=function(t,e){var n=[],r={};return La(t).forEach((function(t,i){if(function(t){return t&&t.type&&ea(t.type)&&Fa.indexOf(t.type)>=0}(t))n.push(t);else if(t){var o=Ba(t.type),a=e[o]||{},c=a.handler,u=a.once;if(c&&(!u||!r[o])){var l=c(t,o,i);n.push(l),r[o]=!0}}})),n},Ga=["children","width","height","viewBox","className","style","title","desc"];function Ka(){return Ka=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ka.apply(this,arguments)}function Za(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Ja(t){var e=t.children,n=t.width,r=t.height,i=t.viewBox,o=t.className,a=t.style,c=t.title,u=t.desc,l=Za(t,Ga),s=i||{width:n,height:r,x:0,y:0},f=Ar("recharts-surface",o);return D.createElement("svg",Ka({},Wa(l,!0,"svg"),{className:f,width:n,height:r,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),D.createElement("title",null,c),D.createElement("desc",null,u),e)}var Qa=["children","className"];function tc(){return tc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tc.apply(this,arguments)}function ec(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var nc=D.forwardRef((function(t,e){var n=t.children,r=t.className,i=ec(t,Qa),o=Ar("recharts-layer",r);return D.createElement("g",tc({className:o},Wa(i,!0),{ref:e}),n)})),rc="production"!==process.env.NODE_ENV,ic=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(rc&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(e.replace(/%s/g,(function(){return r[o++]})))}};var oc=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o},ac=oc;var cc=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:ac(t,e,n)},uc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var lc=function(t){return uc.test(t)};var sc=function(t){return t.split("")},fc="\\ud800-\\udfff",hc="["+fc+"]",pc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",dc="\\ud83c[\\udffb-\\udfff]",yc="[^"+fc+"]",vc="(?:\\ud83c[\\udde6-\\uddff]){2}",gc="[\\ud800-\\udbff][\\udc00-\\udfff]",mc="(?:"+pc+"|"+dc+")"+"?",bc="[\\ufe0e\\ufe0f]?",wc=bc+mc+("(?:\\u200d(?:"+[yc,vc,gc].join("|")+")"+bc+mc+")*"),xc="(?:"+[yc+pc+"?",pc,vc,gc,hc].join("|")+")",Oc=RegExp(dc+"(?="+dc+")|"+xc+wc,"g");var Sc=function(t){return t.match(Oc)||[]},jc=sc,Ac=lc,Pc=Sc;var Mc=function(t){return Ac(t)?Pc(t):jc(t)},Ec=cc,kc=lc,_c=Mc,Tc=Bo;var Dc=function(t){return function(e){e=Tc(e);var n=kc(e)?_c(e):void 0,r=n?n[0]:e.charAt(0),i=n?Ec(n,1).join(""):e.slice(1);return r[t]()+i}},Cc=ve(Dc("toUpperCase"));function Nc(t){return function(){return t}}const Ic=Math.cos,Bc=Math.sin,Rc=Math.sqrt,$c=Math.PI,Lc=2*$c,zc=Math.PI,Hc=2*zc,Uc=1e-6,Fc=Hc-Uc;function qc(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Wc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?qc:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return qc;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,c=n-t,u=r-e,l=o-t,s=a-e,f=l*l+s*s;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Uc)if(Math.abs(s*c-u*l)>Uc&&i){let h=n-o,p=r-a,d=c*c+u*u,y=h*h+p*p,v=Math.sqrt(d),g=Math.sqrt(f),m=i*Math.tan((zc-Math.acos((d+f-y)/(2*v*g)))/2),b=m/g,w=m/v;Math.abs(b-1)>Uc&&this._append`L${t+b*l},${e+b*s}`,this._append`A${i},${i},0,0,${+(s*h>l*p)},${this._x1=t+w*c},${this._y1=e+w*u}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),c=n*Math.sin(r),u=t+a,l=e+c,s=1^o,f=o?r-i:i-r;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Uc||Math.abs(this._y1-l)>Uc)&&this._append`L${u},${l}`,n&&(f<0&&(f=f%Hc+Hc),f>Fc?this._append`A${n},${n},0,1,${s},${t-a},${e-c}A${n},${n},0,1,${s},${this._x1=u},${this._y1=l}`:f>Uc&&this._append`A${n},${n},0,${+(f>=zc)},${s},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Vc(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Wc(e)}function Yc(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Xc(t){this._context=t}function Gc(t){return new Xc(t)}function Kc(t){return t[0]}function Zc(t){return t[1]}function Jc(t,e){var n=Nc(!0),r=null,i=Gc,o=null,a=Vc(c);function c(c){var u,l,s,f=(c=Yc(c)).length,h=!1;for(null==r&&(o=i(s=a())),u=0;u<=f;++u)!(u<f&&n(l=c[u],u,c))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,u,c),+e(l,u,c));if(s)return o=null,s+""||null}return t="function"==typeof t?t:void 0===t?Kc:Nc(t),e="function"==typeof e?e:void 0===e?Zc:Nc(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Nc(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Nc(+t),c):e},c.defined=function(t){return arguments.length?(n="function"==typeof t?t:Nc(!!t),c):n},c.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),c):i},c.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),c):r},c}function Qc(t,e,n){var r=null,i=Nc(!0),o=null,a=Gc,c=null,u=Vc(l);function l(l){var s,f,h,p,d,y=(l=Yc(l)).length,v=!1,g=new Array(y),m=new Array(y);for(null==o&&(c=a(d=u())),s=0;s<=y;++s){if(!(s<y&&i(p=l[s],s,l))===v)if(v=!v)f=s,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=s-1;h>=f;--h)c.point(g[h],m[h]);c.lineEnd(),c.areaEnd()}v&&(g[s]=+t(p,s,l),m[s]=+e(p,s,l),c.point(r?+r(p,s,l):g[s],n?+n(p,s,l):m[s]))}if(d)return c=null,d+""||null}function s(){return Jc().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Kc:Nc(+t),e="function"==typeof e?e:Nc(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?Zc:Nc(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Nc(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Nc(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Nc(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Nc(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Nc(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Nc(+t),l):n},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(n)},l.lineX1=function(){return s().x(r).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:Nc(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(c=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=c=null:c=a(o=t),l):o},l}Xc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};class tu{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}var eu={draw(t,e){const n=Rc(e/$c);t.moveTo(n,0),t.arc(0,0,n,0,Lc)}},nu={draw(t,e){const n=Rc(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};const ru=Rc(1/3),iu=2*ru;var ou={draw(t,e){const n=Rc(e/iu),r=n*ru;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},au={draw(t,e){const n=Rc(e),r=-n/2;t.rect(r,r,n,n)}};const cu=Bc($c/10)/Bc(7*$c/10),uu=Bc(Lc/10)*cu,lu=-Ic(Lc/10)*cu;var su={draw(t,e){const n=Rc(.8908130915292852*e),r=uu*n,i=lu*n;t.moveTo(0,-n),t.lineTo(r,i);for(let e=1;e<5;++e){const o=Lc*e/5,a=Ic(o),c=Bc(o);t.lineTo(c*n,-a*n),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}};const fu=Rc(3);var hu={draw(t,e){const n=-Rc(e/(3*fu));t.moveTo(0,2*n),t.lineTo(-fu*n,-n),t.lineTo(fu*n,-n),t.closePath()}};const pu=-.5,du=Rc(3)/2,yu=1/Rc(12),vu=3*(yu/2+1);var gu={draw(t,e){const n=Rc(e/vu),r=n/2,i=n*yu,o=r,a=n*yu+n,c=-o,u=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(c,u),t.lineTo(pu*r-du*i,du*r+pu*i),t.lineTo(pu*o-du*a,du*o+pu*a),t.lineTo(pu*c-du*u,du*c+pu*u),t.lineTo(pu*r+du*i,pu*i-du*r),t.lineTo(pu*o+du*a,pu*a-du*o),t.lineTo(pu*c+du*u,pu*u-du*c),t.closePath()}};function mu(){}function bu(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function wu(t){this._context=t}function xu(t){this._context=t}function Ou(t){this._context=t}function Su(t){this._context=t}function ju(t){return t<0?-1:1}function Au(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),c=(o*i+a*r)/(r+i);return(ju(o)+ju(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function Pu(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Mu(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,c=(o-r)/3;t._context.bezierCurveTo(r+c,i+c*e,o-c,a-c*n,o,a)}function Eu(t){this._context=t}function ku(t){this._context=new _u(t)}function _u(t){this._context=t}function Tu(t){this._context=t}function Du(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function Cu(t,e){this._context=t,this._t=e}function Nu(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],c=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<c;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Iu(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function Bu(t,e){return t[e]}function Ru(t){const e=[];return e.key=t,e}function $u(t){return $u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(t)}wu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:bu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:bu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},xu.prototype={areaStart:mu,areaEnd:mu,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:bu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ou.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:bu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Su.prototype={areaStart:mu,areaEnd:mu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Eu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Mu(this,this._t0,Pu(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Mu(this,Pu(this,n=Au(this,t,e)),n);break;default:Mu(this,this._t0,n=Au(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(ku.prototype=Object.create(Eu.prototype)).point=function(t,e){Eu.prototype.point.call(this,e,t)},_u.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},Tu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=Du(t),i=Du(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Cu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Lu=["type","size","sizeType"];function zu(){return zu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},zu.apply(this,arguments)}function Hu(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Uu(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hu(Object(n),!0).forEach((function(e){Fu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fu(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==$u(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==$u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===$u(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qu(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var Wu={symbolCircle:eu,symbolCross:nu,symbolDiamond:ou,symbolSquare:au,symbolStar:su,symbolTriangle:hu,symbolWye:gu},Vu=Math.PI/180,Yu=function(t){var e,n,r=t.type,i=void 0===r?"circle":r,o=t.size,a=void 0===o?64:o,c=t.sizeType,u=void 0===c?"area":c,l=Uu(Uu({},qu(t,Lu)),{},{type:i,size:a,sizeType:u}),s=l.className,f=l.cx,h=l.cy,p=Wa(l,!0);return f===+f&&h===+h&&a===+a?D.createElement("path",zu({},p,{className:Ar("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(Cc(t));return Wu[e]||eu}(i),n=function(t,e){let n=null,r=Vc(i);function i(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"==typeof t?t:Nc(t||eu),e="function"==typeof e?e:Nc(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:Nc(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:Nc(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i}().type(e).size(function(t,e,n){if("area"===e)return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var r=18*Vu;return 1.25*t*t*(Math.tan(r)-Math.tan(2*r)*Math.pow(Math.tan(r),2));case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}}(a,u,i)),n())})):null};function Xu(t){return Xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xu(t)}function Gu(){return Gu=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Gu.apply(this,arguments)}function Ku(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,nl(r.key),r)}}function Ju(t,e){return Ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ju(t,e)}function Qu(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=tl(t);if(e){var i=tl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Xu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function tl(t){return tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tl(t)}function el(t,e,n){return(e=nl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nl(t){var e=function(t,e){if("object"!==Xu(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Xu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xu(e)?e:String(e)}Yu.registerSymbol=function(t,e){Wu["symbol".concat(Cc(t))]=e};var rl=32,il=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ju(t,e)}(o,I);var e,n,r,i=Qu(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,n=16,r=rl/6,i=rl/3,o=t.inactive?e:t.color;if("plainline"===t.type)return D.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:rl,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return D.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(n,"h").concat(i,"\n A").concat(r,",").concat(r,",0,1,1,").concat(2*i,",").concat(n,"\n H").concat(rl,"M").concat(2*i,",").concat(n,"\n A").concat(r,",").concat(r,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===t.type)return D.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(rl,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(D.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ku(Object(n),!0).forEach((function(e){el(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ku(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return delete a.legendIcon,D.cloneElement(t.legendIcon,a)}return D.createElement(Yu,{fill:o,cx:n,cy:n,size:rl,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,n=e.payload,r=e.iconSize,i=e.layout,o=e.formatter,a=e.inactiveColor,c={x:0,y:0,width:rl,height:rl},u={display:"horizontal"===i?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(e,n){var i,s=e.formatter||o,f=Ar((el(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),el(i,"inactive",e.inactive),i));if("none"===e.type)return null;var h=ii(e.value)?null:e.value;ic(!ii(e.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=e.inactive?a:e.color;return D.createElement("li",Gu({className:f,style:u,key:"legend-item-".concat(n)},_a(t.props,e,n)),D.createElement(Ja,{width:r,height:r,viewBox:c,style:l},t.renderIcon(e)),D.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},s?s(h,e,n):h))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,r=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?r:"left"};return D.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&Zu(e.prototype,n),r&&Zu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();el(il,"displayName","Legend"),el(il,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ol=no;var al=no,cl=ro,ul=wo;var ll=no,sl=function(){this.__data__=new ol,this.size=0},fl=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},hl=function(t){return this.__data__.get(t)},pl=function(t){return this.__data__.has(t)},dl=function(t,e){var n=this.__data__;if(n instanceof al){var r=n.__data__;if(!cl||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ul(r)}return n.set(t,e),this.size=n.size,this};function yl(t){var e=this.__data__=new ll(t);this.size=e.size}yl.prototype.clear=sl,yl.prototype.delete=fl,yl.prototype.get=hl,yl.prototype.has=pl,yl.prototype.set=dl;var vl=yl;var gl=wo,ml=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},bl=function(t){return this.__data__.has(t)};function wl(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new gl;++e<n;)this.add(t[e])}wl.prototype.add=wl.prototype.push=ml,wl.prototype.has=bl;var xl=wl;var Ol=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1};var Sl=function(t,e){return t.has(e)},jl=xl,Al=Ol,Pl=Sl;var Ml=function(t,e,n,r,i,o){var a=1&n,c=t.length,u=e.length;if(c!=u&&!(a&&u>c))return!1;var l=o.get(t),s=o.get(e);if(l&&s)return l==e&&s==t;var f=-1,h=!0,p=2&n?new jl:void 0;for(o.set(t,e),o.set(e,t);++f<c;){var d=t[f],y=e[f];if(r)var v=a?r(y,d,f,e,t,o):r(d,y,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!Al(e,(function(t,e){if(!Pl(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,n,r,o)){h=!1;break}}return o.delete(t),o.delete(e),h};var El=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};var kl=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},_l=_r.Uint8Array,Tl=Ui,Dl=Ml,Cl=El,Nl=kl,Il=Tr?Tr.prototype:void 0,Bl=Il?Il.valueOf:void 0;var Rl=function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new _l(t),new _l(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Tl(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=Cl;case"[object Set]":var u=1&r;if(c||(c=Nl),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var s=Dl(c(t),c(e),r,i,o,a);return a.delete(t),s;case"[object Symbol]":if(Bl)return Bl.call(t)==Bl.call(e)}return!1};var $l=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},Ll=$l,zl=Pr;var Hl=function(t,e,n){var r=e(t);return zl(t)?r:Ll(r,n(t))};var Ul=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o};var Fl=Ul,ql=function(){return[]},Wl=Object.prototype.propertyIsEnumerable,Vl=Object.getOwnPropertySymbols,Yl=Vl?function(t){return null==t?[]:(t=Object(t),Fl(Vl(t),(function(e){return Wl.call(t,e)})))}:ql,Xl=Yl;var Gl=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},Kl=Ur,Zl=Fr;var Jl=function(t){return Zl(t)&&"[object Arguments]"==Kl(t)},Ql=Fr,ts=Object.prototype,es=ts.hasOwnProperty,ns=ts.propertyIsEnumerable,rs=Jl(function(){return arguments}())?Jl:function(t){return Ql(t)&&es.call(t,"callee")&&!ns.call(t,"callee")},is={exports:{}};var os=function(){return!1};!function(t,e){var n=_r,r=os,i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||r;t.exports=c}(is,is.exports);var as=is.exports,cs=/^(?:0|[1-9]\d*)$/;var us=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&cs.test(t))&&t>-1&&t%1==0&&t<e};var ls=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},ss=Ur,fs=ls,hs=Fr,ps={};ps["[object Float32Array]"]=ps["[object Float64Array]"]=ps["[object Int8Array]"]=ps["[object Int16Array]"]=ps["[object Int32Array]"]=ps["[object Uint8Array]"]=ps["[object Uint8ClampedArray]"]=ps["[object Uint16Array]"]=ps["[object Uint32Array]"]=!0,ps["[object Arguments]"]=ps["[object Array]"]=ps["[object ArrayBuffer]"]=ps["[object Boolean]"]=ps["[object DataView]"]=ps["[object Date]"]=ps["[object Error]"]=ps["[object Function]"]=ps["[object Map]"]=ps["[object Number]"]=ps["[object Object]"]=ps["[object RegExp]"]=ps["[object Set]"]=ps["[object String]"]=ps["[object WeakMap]"]=!1;var ds=function(t){return hs(t)&&fs(t.length)&&!!ps[ss(t)]};var ys=function(t){return function(e){return t(e)}},vs={exports:{}};!function(t,e){var n=Mr,r=e&&!e.nodeType&&e,i=r&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}(vs,vs.exports);var gs=vs.exports,ms=ds,bs=ys,ws=gs&&gs.isTypedArray,xs=ws?bs(ws):ms,Os=Gl,Ss=rs,js=Pr,As=as,Ps=us,Ms=xs,Es=Object.prototype.hasOwnProperty;var ks=function(t,e){var n=js(t),r=!n&&Ss(t),i=!n&&!r&&As(t),o=!n&&!r&&!i&&Ms(t),a=n||r||i||o,c=a?Os(t.length,String):[],u=c.length;for(var l in t)!e&&!Es.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ps(l,u))||c.push(l);return c},_s=Object.prototype;var Ts=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_s)};var Ds=function(t,e){return function(n){return t(e(n))}},Cs=Ds(Object.keys,Object),Ns=Ts,Is=Cs,Bs=Object.prototype.hasOwnProperty;var Rs=function(t){if(!Ns(t))return Is(t);var e=[];for(var n in Object(t))Bs.call(t,n)&&"constructor"!=n&&e.push(n);return e},$s=ri,Ls=ls;var zs=function(t){return null!=t&&Ls(t.length)&&!$s(t)},Hs=ks,Us=Rs,Fs=zs;var qs=function(t){return Fs(t)?Hs(t):Us(t)},Ws=Hl,Vs=Xl,Ys=qs;var Xs=function(t){return Ws(t,Ys,Vs)},Gs=Xs,Ks=Object.prototype.hasOwnProperty;var Zs=function(t,e,n,r,i,o){var a=1&n,c=Gs(t),u=c.length;if(u!=Gs(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:Ks.call(e,s)))return!1}var f=o.get(t),h=o.get(e);if(f&&h)return f==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);for(var d=a;++l<u;){var y=t[s=c[l]],v=e[s];if(r)var g=a?r(v,y,s,e,t,o):r(y,v,s,t,e,o);if(!(void 0===g?y===v||i(y,v,n,r,o):g)){p=!1;break}d||(d="constructor"==s)}if(p&&!d){var m=t.constructor,b=e.constructor;m==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(t),o.delete(e),p},Js=Si(_r,"DataView"),Qs=Si(_r,"Promise"),tf=Si(_r,"Set"),ef=Js,nf=ro,rf=Qs,of=tf,af=Si(_r,"WeakMap"),cf=Ur,uf=li,lf="[object Map]",sf="[object Promise]",ff="[object Set]",hf="[object WeakMap]",pf="[object DataView]",df=uf(ef),yf=uf(nf),vf=uf(rf),gf=uf(of),mf=uf(af),bf=cf;(ef&&bf(new ef(new ArrayBuffer(1)))!=pf||nf&&bf(new nf)!=lf||rf&&bf(rf.resolve())!=sf||of&&bf(new of)!=ff||af&&bf(new af)!=hf)&&(bf=function(t){var e=cf(t),n="[object Object]"==e?t.constructor:void 0,r=n?uf(n):"";if(r)switch(r){case df:return pf;case yf:return lf;case vf:return sf;case gf:return ff;case mf:return hf}return e});var wf=vl,xf=Ml,Of=Rl,Sf=Zs,jf=bf,Af=Pr,Pf=as,Mf=xs,Ef="[object Arguments]",kf="[object Array]",_f="[object Object]",Tf=Object.prototype.hasOwnProperty;var Df=function(t,e,n,r,i,o){var a=Af(t),c=Af(e),u=a?kf:jf(t),l=c?kf:jf(e),s=(u=u==Ef?_f:u)==_f,f=(l=l==Ef?_f:l)==_f,h=u==l;if(h&&Pf(t)){if(!Pf(e))return!1;a=!0,s=!1}if(h&&!s)return o||(o=new wf),a||Mf(t)?xf(t,e,n,r,i,o):Of(t,e,u,n,r,i,o);if(!(1&n)){var p=s&&Tf.call(t,"__wrapped__"),d=f&&Tf.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new wf),i(y,v,n,r,o)}}return!!h&&(o||(o=new wf),Sf(t,e,n,r,i,o))},Cf=Df,Nf=Fr;var If=function t(e,n,r,i,o){return e===n||(null==e||null==n||!Nf(e)&&!Nf(n)?e!=e&&n!=n:Cf(e,n,r,i,t,o))},Bf=vl,Rf=If;var $f=function(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var c=n[i];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<o;){var u=(c=n[i])[0],l=t[u],s=c[1];if(a&&c[2]){if(void 0===l&&!(u in t))return!1}else{var f=new Bf;if(r)var h=r(l,s,u,t,e,f);if(!(void 0===h?Rf(s,l,3,r,f):h))return!1}}return!0},Lf=Jr;var zf=function(t){return t==t&&!Lf(t)},Hf=zf,Uf=qs;var Ff=function(t){for(var e=Uf(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Hf(i)]}return e};var qf=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}},Wf=$f,Vf=Ff,Yf=qf;var Xf=function(t){var e=Vf(t);return 1==e.length&&e[0][2]?Yf(e[0][0],e[0][1]):function(n){return n===t||Wf(n,t,e)}};var Gf=function(t,e){return null!=t&&e in Object(t)},Kf=Ho,Zf=rs,Jf=Pr,Qf=us,th=ls,eh=Fo;var nh=function(t,e,n){for(var r=-1,i=(e=Kf(e,t)).length,o=!1;++r<i;){var a=eh(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&th(i)&&Qf(a,i)&&(Jf(t)||Zf(t))},rh=Gf,ih=nh;var oh=function(t,e){return null!=t&&ih(t,e,rh)},ah=If,ch=Xo,uh=oh,lh=Zr,sh=zf,fh=qf,hh=Fo;var ph=function(t,e){return lh(t)&&sh(e)?fh(hh(t),e):function(n){var r=ch(n,t);return void 0===r&&r===e?uh(n,t):ah(e,r,3)}};var dh=function(t){return t};var yh=function(t){return function(e){return null==e?void 0:e[t]}},vh=Vo;var gh=function(t){return function(e){return vh(e,t)}},mh=yh,bh=gh,wh=Zr,xh=Fo;var Oh=Xf,Sh=ph,jh=dh,Ah=Pr,Ph=function(t){return wh(t)?mh(xh(t)):bh(t)};var Mh=function(t){return"function"==typeof t?t:null==t?jh:"object"==typeof t?Ah(t)?Sh(t[0],t[1]):Oh(t):Ph(t)};var Eh=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1};var kh=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1},_h=Eh,Th=function(t){return t!=t},Dh=kh;var Ch=function(t,e,n){return e==e?Dh(t,e,n):_h(t,Th,n)},Nh=Ch;var Ih=function(t,e){return!!(null==t?0:t.length)&&Nh(t,e,0)>-1};var Bh=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1};var Rh=tf,$h=function(){},Lh=Rh&&1/kl(new Rh([,-0]))[1]==1/0?function(t){return new Rh(t)}:$h,zh=xl,Hh=Ih,Uh=Bh,Fh=Sl,qh=Lh,Wh=kl;var Vh=function(t,e,n){var r=-1,i=Hh,o=t.length,a=!0,c=[],u=c;if(n)a=!1,i=Uh;else if(o>=200){var l=e?null:qh(t);if(l)return Wh(l);a=!1,i=Fh,u=new zh}else u=e?[]:c;t:for(;++r<o;){var s=t[r],f=e?e(s):s;if(s=n||0!==s?s:0,a&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue t;e&&u.push(f),c.push(s)}else i(u,f,n)||(u!==c&&u.push(f),c.push(s))}return c},Yh=Mh,Xh=Vh;var Gh=function(t,e){return t&&t.length?Xh(t,Yh(e)):[]},Kh=ve(Gh);function Zh(t,e,n){return!0===e?Kh(t,n):ii(e)?Kh(t,e):t}function Jh(t){return Jh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jh(t)}var Qh=["ref"];function tp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ep(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tp(Object(n),!0).forEach((function(e){cp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function np(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,up(r.key),r)}}function rp(t,e){return rp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rp(t,e)}function ip(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ap(t);if(e){var i=ap(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Jh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return op(t)}(this,n)}}function op(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ap(t){return ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ap(t)}function cp(t,e,n){return(e=up(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function up(t){var e=function(t,e){if("object"!==Jh(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Jh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Jh(e)?e:String(e)}function lp(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function sp(t){return t.value}var fp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rp(t,e)}(o,I);var e,n,r,i=ip(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return cp(op(t=i.call.apply(i,[this].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}return e=o,r=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&ya(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],(n=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){return this.wrapperNode&&this.wrapperNode.getBoundingClientRect?this.wrapperNode.getBoundingClientRect():null}},{key:"updateBBox",value:function(){var t=this.props.onBBoxUpdate;if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.lastBoundingBox.width)>1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e))}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?ep({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,c=r.margin,u=r.chartWidth,l=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),ep(ep({},e),n)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,u=ep(ep({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return D.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(D.isValidElement(t))return D.cloneElement(t,e);if("function"==typeof t)return D.createElement(t,e);e.ref;var n=lp(e,Qh);return D.createElement(il,n)}(n,ep(ep({},this.props),{},{payload:Zh(c,a,sp)})))}}])&&np(e.prototype,n),r&&np(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();cp(fp,"displayName","Legend"),cp(fp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var hp=rs,pp=Pr,dp=Tr?Tr.isConcatSpreadable:void 0;var yp=$l,vp=function(t){return pp(t)||hp(t)||!!(dp&&t&&t[dp])};var gp=function t(e,n,r,i,o){var a=-1,c=e.length;for(r||(r=vp),o||(o=[]);++a<c;){var u=e[a];n>0&&r(u)?n>1?t(u,n-1,r,i,o):yp(o,u):i||(o[o.length]=u)}return o};var mp=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),c=a.length;c--;){var u=a[t?c:++i];if(!1===n(o[u],u,o))break}return e}},bp=mp(),wp=qs;var xp=function(t,e){return t&&bp(t,e,wp)},Op=zs;var Sp=function(t,e){return function(n,r){if(null==n)return n;if(!Op(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=Object(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}(xp),jp=Sp,Ap=zs;var Pp=function(t,e){var n=-1,r=Ap(t)?Array(t.length):[];return jp(t,(function(t,i,o){r[++n]=e(t,i,o)})),r};var Mp=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t},Ep=Vr;var kp=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Ep(t),a=void 0!==e,c=null===e,u=e==e,l=Ep(e);if(!c&&!l&&!o&&t>e||o&&a&&u&&!c&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||c&&n&&i||!a&&i||!u)return-1}return 0};var _p=function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,c=n.length;++r<a;){var u=kp(i[r],o[r]);if(u)return r>=c?u:u*("desc"==n[r]?-1:1)}return t.index-e.index},Tp=Eo,Dp=Vo,Cp=Mh,Np=Pp,Ip=Mp,Bp=ys,Rp=_p,$p=dh,Lp=Pr;var zp=function(t,e,n){e=e.length?Tp(e,(function(t){return Lp(t)?function(e){return Dp(e,1===t.length?t[0]:t)}:t})):[$p];var r=-1;e=Tp(e,Bp(Cp));var i=Np(t,(function(t,n,i){return{criteria:Tp(e,(function(e){return e(t)})),index:++r,value:t}}));return Ip(i,(function(t,e){return Rp(t,e,n)}))};var Hp=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Up=Math.max;var Fp=function(t,e,n){return e=Up(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Up(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=r[i];return c[e]=n(a),Hp(t,this,c)}};var qp=function(t){return function(){return t}},Wp=Si,Vp=function(){try{var t=Wp(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Yp=qp,Xp=Vp,Gp=Xp?function(t,e){return Xp(t,"toString",{configurable:!0,enumerable:!1,value:Yp(e),writable:!0})}:dh,Kp=Gp,Zp=Date.now;var Jp=function(t){var e=0,n=0;return function(){var r=Zp(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Kp),Qp=dh,td=Fp,ed=Jp;var nd=Ui,rd=zs,id=us,od=Jr;var ad=function(t,e,n){if(!od(n))return!1;var r=typeof e;return!!("number"==r?rd(n)&&id(e,n.length):"string"==r&&e in n)&&nd(n[e],t)},cd=gp,ud=zp,ld=ad,sd=ve(function(t,e){return ed(td(t,e,Qp),t+"")}((function(t,e){if(null==t)return[];var n=e.length;return n>1&&ld(t,e[0],e[1])?e=[]:n>2&&ld(e[0],e[1],e[2])&&(e=[e[0]]),ud(t,cd(e,1),[])})));function fd(t){return fd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fd(t)}function hd(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return pd(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pd(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pd(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function dd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dd(Object(n),!0).forEach((function(e){vd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vd(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==fd(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===fd(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gd(t){return Array.isArray(t)&&va(t[0])&&va(t[1])?t.join(" ~ "):t}var md,bd,wd,xd,Od,Sd,jd,Ad,Pd,Md,Ed,kd,_d=function(t){var e=t.separator,n=void 0===e?" : ":e,r=t.contentStyle,i=void 0===r?{}:r,o=t.itemStyle,a=void 0===o?{}:o,c=t.labelStyle,u=void 0===c?{}:c,l=t.payload,s=t.formatter,f=t.itemSorter,h=t.wrapperClassName,p=t.labelClassName,d=t.label,y=t.labelFormatter,v=yd({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),g=yd({margin:0},u),m=!Ko(d),b=m?d:"",w=Ar("recharts-default-tooltip",h),x=Ar("recharts-tooltip-label",p);return m&&y&&null!=l&&(b=y(d,l)),D.createElement("div",{className:w,style:v},D.createElement("p",{className:x,style:g},D.isValidElement(b)?b:"".concat(b)),function(){if(l&&l.length){var t=(f?sd(l,f):l).map((function(t,e){if("none"===t.type)return null;var r=yd({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||gd,o=t.value,c=t.name,u=o,f=c;if(i&&null!=u&&null!=f){var h=i(o,c,t,e,l);if(Array.isArray(h)){var p=hd(h,2);u=p[0],f=p[1]}else u=h}return D.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:r},va(f)?D.createElement("span",{className:"recharts-tooltip-item-name"},f):null,va(f)?D.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,D.createElement("span",{className:"recharts-tooltip-item-value"},u),D.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return D.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())},Td={exports:{}};function Dd(){if(bd)return md;bd=1;return md="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Cd(){if(Sd)return Od;Sd=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Od=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(r,i){for(var o,a,c=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(r),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))e.call(o,l)&&(c[l]=o[l]);if(t){a=t(o);for(var s=0;s<a.length;s++)n.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},Od}function Nd(){return Ad?jd:(Ad=1,jd=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Id=aa;Td.exports=function(){if(kd)return Ed;kd=1;var t=aa,e=Cd(),n=Dd(),r=Nd(),i=function(){if(Md)return Pd;Md=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Dd(),n={},r=Nd();t=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}}function i(i,o,a,c,u){if("production"!==process.env.NODE_ENV)for(var l in i)if(r(i,l)){var s;try{if("function"!=typeof i[l]){var f=Error((c||"React class")+": "+a+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}s=i[l](o,l,c,a,null,e)}catch(t){s=t}if(!s||s instanceof Error||t((c||"React class")+": type specification of "+a+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof s+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),s instanceof Error&&!(s.message in n)){n[s.message]=!0;var h=u?u():"";t("Failed "+a+" type: "+s.message+(null!=h?h:""))}}}return i.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},Pd=i}(),o=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(o=function(t){var e="Warning: "+t;"undefined"!=typeof console&&console.error(e);try{throw new Error(e)}catch(t){}}),Ed=function(c,u){var l="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",f="<<anonymous>>",h={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:y(a),arrayOf:function(t){return y((function(e,r,i,o,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[r];if(!Array.isArray(c))return new d("Invalid "+o+" `"+a+"` of type `"+b(c)+"` supplied to `"+i+"`, expected an array.");for(var u=0;u<c.length;u++){var l=t(c,u,i,o,a+"["+u+"]",n);if(l instanceof Error)return l}return null}))},element:y((function(t,e,n,r,i){var o=t[e];return c(o)?null:new d("Invalid "+r+" `"+i+"` of type `"+b(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:y((function(e,n,r,i,o){var a=e[n];return t.isValidElementType(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,n,r,i,o){if(!(e[n]instanceof t)){var a=t.name||f;return new d("Invalid "+i+" `"+o+"` of type `"+((c=e[n]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(t,e,n,r,i){return m(t[e])?null:new d("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(t){return y((function(e,i,o,a,c){if("function"!=typeof t)return new d("Property `"+c+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var u=e[i],l=b(u);if("object"!==l)return new d("Invalid "+a+" `"+c+"` of type `"+l+"` supplied to `"+o+"`, expected an object.");for(var s in u)if(r(u,s)){var f=t(u,s,o,a,c+"."+s,n);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?y((function(e,n,r,i,o){for(var a=e[n],c=0;c<t.length;c++)if(p(a,t[c]))return null;var u=JSON.stringify(t,(function(t,e){return"symbol"===w(e)?String(e):e}));return new d("Invalid "+i+" `"+o+"` of value `"+String(a)+"` supplied to `"+r+"`, expected one of "+u+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(t){if(!Array.isArray(t))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var e=0;e<t.length;e++){var i=t[e];if("function"!=typeof i)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(i)+" at index "+e+"."),a}return y((function(e,i,o,a,c){for(var u=[],l=0;l<t.length;l++){var s=(0,t[l])(e,i,o,a,c,n);if(null==s)return null;s.data&&r(s.data,"expectedType")&&u.push(s.data.expectedType)}return new d("Invalid "+a+" `"+c+"` supplied to `"+o+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(t){return y((function(e,r,i,o,a){var c=e[r],u=b(c);if("object"!==u)return new d("Invalid "+o+" `"+a+"` of type `"+u+"` supplied to `"+i+"`, expected `object`.");for(var l in t){var s=t[l];if("function"!=typeof s)return g(i,o,a,l,w(s));var f=s(c,l,i,o,a+"."+l,n);if(f)return f}return null}))},exact:function(t){return y((function(i,o,a,c,u){var l=i[o],s=b(l);if("object"!==s)return new d("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var f=e({},i[o],t);for(var h in f){var p=t[h];if(r(t,h)&&"function"!=typeof p)return g(a,c,u,h,w(p));if(!p)return new d("Invalid "+c+" `"+u+"` key `"+h+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(i[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(t),null," "));var y=p(l,h,a,c,u+"."+h,n);if(y)return y}return null}))}};function p(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function d(t,e){this.message=t,this.data=e&&"object"==typeof e?e:{},this.stack=""}function y(t){if("production"!==process.env.NODE_ENV)var e={},r=0;function i(i,a,c,l,s,h,p){if(l=l||f,h=h||c,p!==n){if(u){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var v=l+":"+c;!e[v]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+h+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),e[v]=!0,r++)}}return null==a[c]?i?null===a[c]?new d("The "+s+" `"+h+"` is marked as required in `"+l+"`, but its value is `null`."):new d("The "+s+" `"+h+"` is marked as required in `"+l+"`, but its value is `undefined`."):null:t(a,c,l,s,h)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function v(t){return y((function(e,n,r,i,o,a){var c=e[n];return b(c)!==t?new d("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+r+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,n,r,i){return new d((t||"React class")+": "+e+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function m(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(m);if(null===t||c(t))return!0;var e=function(t){var e=t&&(l&&t[l]||t[s]);if("function"==typeof e)return e}(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function b(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":function(t,e){return"symbol"===t||!!e&&("Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol)}(e,t)?"symbol":e}function w(t){if(null==t)return""+t;var e=b(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function x(t){var e=w(t);switch(e){case"array":case"object":return"an "+e;case"boolean":case"date":case"regexp":return"a "+e;default:return e}}return d.prototype=Error.prototype,h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Ed}()(Id.isElement,!0)}else Td.exports=function(){if(xd)return wd;xd=1;var t=Dd();function e(){}function n(){}return n.resetWarningCache=e,wd=function(){function r(e,n,r,i,o,a){if(a!==t){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o}}
|
|
25
18
|
/*
|
|
26
19
|
object-assign
|
|
27
20
|
(c) Sindre Sorhus
|
|
28
21
|
@license MIT
|
|
29
|
-
*/()();var Jd=Pe(Wd.exports),Qd=Object.getOwnPropertyNames,ty=Object.getOwnPropertySymbols,ey=Object.prototype.hasOwnProperty;function ny(t,e){return function(n,r,i){return t(n,r,i)&&e(n,r,i)}}function ry(t){return function(e,n,r){if(!e||!n||"object"!=typeof e||"object"!=typeof n)return t(e,n,r);var i=r.cache,o=i.get(e),a=i.get(n);if(o&&a)return o===n&&a===e;i.set(e,n),i.set(n,e);var c=t(e,n,r);return i.delete(e),i.delete(n),c}}function iy(t){return Qd(t).concat(ty(t))}var oy=Object.hasOwn||function(t,e){return ey.call(t,e)};function ay(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var cy="_owner",uy=Object.getOwnPropertyDescriptor,ly=Object.keys;function sy(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function fy(t,e){return ay(t.getTime(),e.getTime())}function hy(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.entries(),c=0;(r=a.next())&&!r.done;){for(var u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=r.value,h=f[0],p=f[1],d=i.value,y=d[0],v=d[1];l||o[s]||!(l=n.equals(h,y,c,s,t,e,n)&&n.equals(p,v,h,y,t,e,n))||(o[s]=!0),s++}if(!l)return!1;c++}return!0}function py(t,e,n){var r,i=ly(t),o=i.length;if(ly(e).length!==o)return!1;for(;o-- >0;){if((r=i[o])===cy&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!oy(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1}return!0}function dy(t,e,n){var r,i,o,a=iy(t),c=a.length;if(iy(e).length!==c)return!1;for(;c-- >0;){if((r=a[c])===cy&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!oy(e,r))return!1;if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;if(i=uy(t,r),o=uy(e,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function yy(t,e){return ay(t.valueOf(),e.valueOf())}function vy(t,e){return t.source===e.source&&t.flags===e.flags}function gy(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.values();(r=a.next())&&!r.done;){for(var c=e.values(),u=!1,l=0;(i=c.next())&&!i.done;)u||o[l]||!(u=n.equals(r.value,i.value,r.value,i.value,t,e,n))||(o[l]=!0),l++;if(!u)return!1}return!0}function my(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}var by="[object Arguments]",wy="[object Boolean]",xy="[object Date]",Oy="[object Map]",Sy="[object Number]",jy="[object Object]",Ay="[object RegExp]",My="[object Set]",Py="[object String]",Ey=Array.isArray,ky="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,_y=Object.assign,Ty=Object.prototype.toString.call.bind(Object.prototype.toString);var Cy=Dy();function Dy(t){void 0===t&&(t={});var e,n=t.circular,r=void 0!==n&&n,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,i={areArraysEqual:r?dy:sy,areDatesEqual:fy,areMapsEqual:r?ny(hy,dy):hy,areObjectsEqual:r?dy:py,arePrimitiveWrappersEqual:yy,areRegExpsEqual:vy,areSetsEqual:r?ny(gy,dy):gy,areTypedArraysEqual:r?dy:my};if(n&&(i=_y({},i,n(i))),e){var o=ry(i.areArraysEqual),a=ry(i.areMapsEqual),c=ry(i.areObjectsEqual),u=ry(i.areSetsEqual);i=_y({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t),l=function(t){var e=t.areArraysEqual,n=t.areDatesEqual,r=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return i(t,l,s);if(Ey(t))return e(t,l,s);if(null!=ky&&ky(t))return u(t,l,s);if(f===Date)return n(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return r(t,l,s);if(f===Set)return c(t,l,s);var h=Ty(t);return h===xy?n(t,l,s):h===Ay?a(t,l,s):h===Oy?r(t,l,s):h===My?c(t,l,s):h===jy?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):h===by?i(t,l,s):(h===wy||h===Sy||h===Py)&&o(t,l,s)}}(u),s=i?i(l):(e=l,function(t,n,r,i,o,a,c){return e(t,n,c)});return function(t){var e=t.circular,n=t.comparator,r=t.createState,i=t.equals,o=t.strict;if(r)return function(t,a){var c=r(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return n(t,a,{cache:l,equals:i,meta:s,strict:o})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return n(t,e,a)}}({circular:r,comparator:l,createState:o,equals:s,strict:c})}function Ny(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(i){n<0&&(n=i),i-n>e?(t(i),n=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(r)}))}function Iy(t){return Iy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iy(t)}function By(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Ry(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ry(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ry(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ly(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=By(r),o=i[0],a=i.slice(1);return"number"==typeof o?void Ny(n.bind(null,a),o):(n(o),void Ny(n.bind(null,a)))}"object"===Iy(r)&&t(r),"function"==typeof r&&r()}};return{stop:function(){e=!0},start:function(t){e=!1,n(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function $y(t){return $y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$y(t)}function zy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zy(Object(n),!0).forEach((function(e){Zy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zy(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==$y(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==$y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===$y(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Dy({strict:!0}),Dy({circular:!0}),Dy({circular:!0,strict:!0}),Dy({createInternalComparator:function(){return ay}}),Dy({strict:!0,createInternalComparator:function(){return ay}}),Dy({circular:!0,createInternalComparator:function(){return ay}}),Dy({circular:!0,createInternalComparator:function(){return ay},strict:!0});var Uy=["Webkit","Moz","O","ms"],Fy=["-webkit-","-moz-","-o-","-ms-"],qy=["transform","transformOrigin","transition"],Vy=function(t){return t},Wy=function(t,e){return Object.keys(e).reduce((function(n,r){return Hy(Hy({},n),{},Zy({},r,t(r,e[r])))}),{})},Yy=function(t){return Object.keys(t).reduce((function(t,e){return Hy(Hy({},t),function(t,e){if(-1===qy.indexOf(t))return Zy({},t,Number.isNaN(e)?0:e);var n="transition"===t,r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),i=e;return Uy.reduce((function(t,o,a){return n&&(i=e.replace(/(transform|transform-origin)/gim,"".concat(Fy[a],"$1"))),Hy(Hy({},t),{},Zy({},o+r,i))}),{})}(e,t[e]))}),t)},Xy=function(t,e,n){return t.map((function(t){return"".concat((r=t,r.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(n);var r})).join(",")},Gy="production"!==process.env.NODE_ENV,Ky=function(t,e,n,r,i,o,a,c){if(Gy&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function Jy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||tv(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qy(t){return function(t){if(Array.isArray(t))return ev(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||tv(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tv(t,e){if(t){if("string"==typeof t)return ev(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ev(t,e):void 0}}function ev(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var nv=1e-4,rv=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},iv=function(t,e){return t.map((function(t,n){return t*Math.pow(e,n)})).reduce((function(t,e){return t+e}))},ov=function(t,e){return function(n){var r=rv(t,e);return iv(r,n)}},av=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":r=0,i=0,o=1,a=1;break;case"ease":r=.25,i=.1,o=.25,a=1;break;case"ease-in":r=.42,i=0,o=1,a=1;break;case"ease-out":r=.42,i=0,o=.58,a=1;break;case"ease-in-out":r=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=Jy(u,4);r=l[0],i=l[1],o=l[2],a=l[3]}else Ky(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Ky([r,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,h=ov(r,o),p=ov(i,a),d=(s=r,f=o,function(t){var e=rv(s,f),n=[].concat(Qy(e.map((function(t,e){return t*e})).slice(1)),[0]);return iv(n,t)}),y=function(t){for(var e,n=t>1?1:t,r=n,i=0;i<8;++i){var o=h(r)-n,a=d(r);if(Math.abs(o-n)<nv||a<nv)return p(r);r=(e=r-o/a)>1?1:e<0?0:e}return p(r)};return y.isStepper=!1,y},cv=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return av(r);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,c=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,c=r*a/1e3+t;return Math.abs(c-e)<nv&&Math.abs(o)<nv?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===r.split("(")[0])return av(r);Ky(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof r?r:(Ky(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function uv(t){return uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uv(t)}function lv(t){return function(t){if(Array.isArray(t))return yv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||dv(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function fv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sv(Object(n),!0).forEach((function(e){hv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hv(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==uv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==uv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===uv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||dv(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dv(t,e){if(t){if("string"==typeof t)return yv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yv(t,e):void 0}}function yv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var vv=function(t,e,n){return t+(e-t)*n},gv=function(t){return t.from!==t.to},mv=function t(e,n,r){var i=Wy((function(t,n){if(gv(n)){var r=pv(e(n.from,n.to,n.velocity),2),i=r[0],o=r[1];return fv(fv({},n),{},{from:i,velocity:o})}return n}),n);return r<1?Wy((function(t,e){return gv(e)?fv(fv({},e),{},{velocity:vv(e.velocity,i[t].velocity,r),from:vv(e.from,i[t].from,r)}):e}),n):t(e,i,r-1)},bv=function(t,e,n,r,i){var o,a,c,u,l=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(n,r){return fv(fv({},n),{},hv({},r,[t[r],e[r]]))}),{}),f=l.reduce((function(n,r){return fv(fv({},n),{},hv({},r,{from:t[r],velocity:0,to:e[r]}))}),{}),h=-1,p=function(){return null};return p=n.isStepper?function(r){c||(c=r);var o=(r-c)/n.dt;f=mv(n,f,o),i(fv(fv(fv({},t),e),Wy((function(t,e){return e.from}),f))),c=r,Object.values(f).filter(gv).length&&(h=requestAnimationFrame(p))}:function(o){u||(u=o);var a=(o-u)/r,c=Wy((function(t,e){return vv.apply(void 0,lv(e).concat([n(a)]))}),s);if(i(fv(fv(fv({},t),e),c)),a<1)h=requestAnimationFrame(p);else{var l=Wy((function(t,e){return vv.apply(void 0,lv(e).concat([n(1)]))}),s);i(fv(fv(fv({},t),e),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(h)}}};function wv(t){return wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wv(t)}var xv=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Ov(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Sv(t){return function(t){if(Array.isArray(t))return jv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return jv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jv(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Av(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Av(Object(n),!0).forEach((function(e){Pv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Av(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Pv(t,e,n){return(e=kv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ev(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kv(r.key),r)}}function kv(t){var e=function(t,e){if("object"!==wv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==wv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wv(e)?e:String(e)}function _v(t,e){return _v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_v(t,e)}function Tv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Nv(t);if(e){var i=Nv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Cv(this,n)}}function Cv(t,e){if(e&&("object"===wv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Dv(t)}function Dv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nv(t){return Nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nv(t)}var Iv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_v(t,e)}(o,$);var e,n,r,i=Tv(o);function o(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var r=(n=i.call(this,t,e)).props,a=r.isActive,c=r.attributeName,u=r.from,l=r.to,s=r.steps,f=r.children,h=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(Dv(n)),n.changeStyle=n.changeStyle.bind(Dv(n)),!a||h<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:l}),Cv(n);if(s&&s.length)n.state={style:s[0].style};else if(u){if("function"==typeof f)return n.state={style:u},Cv(n);n.state={style:c?Pv({},c,u):u}}else n.state={style:{}};return n}return e=o,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,n=t.canBegin;this.mounted=!0,e&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isActive,r=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(r)if(n){if(!(Cy(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||o?c:t.to;if(this.state&&u){var f={style:i?Pv({},i,s):s};(i&&[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation(Mv(Mv({},this.props),{},{from:s,begin:0}))}}else{var h={style:i?Pv({},i,a):a};this.state&&u&&(i&&u[i]!==a||!i&&u!==a)&&this.setState(h)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,n=t.from,r=t.to,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=bv(n,r,cv(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,n=t.steps,r=t.begin,i=t.onAnimationStart,o=n[0],a=o.style,c=o.duration,u=void 0===c?0:c;return this.manager.start([i].concat(Sv(n.reduce((function(t,r,i){if(0===i)return t;var o=r.duration,a=r.easing,c=void 0===a?"ease":a,u=r.style,l=r.properties,s=r.onAnimationEnd,f=i>0?n[i-1]:r,h=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(Sv(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var p=Xy(h,o,c),d=Mv(Mv(Mv({},f.style),u),{},{transition:p});return[].concat(Sv(t),[d,o,s]).filter(Vy)}),[a,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Ly());var e=t.begin,n=t.duration,r=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=r?Pv({},r,i):i,h=Xy(Object.keys(f),n,o);s.start([a,e,Mv(Mv({},f),{},{transition:h}),n,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var n=t.duration;t.attributeName,t.easing;var r=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=Ov(t,xv),o=L.count(e),a=Yy(this.state.style);if("function"==typeof e)return e(a);if(!r||0===o||n<=0)return e;var c=function(t){var e=t.props,n=e.style,r=void 0===n?{}:n,o=e.className;return z(t,Mv(Mv({},i),{},{style:Mv(Mv({},r),a),className:o}))};return 1===o?c(L.only(e)):B.createElement("div",null,L.map(e,(function(t){return c(t)})))}}])&&Ev(e.prototype,n),r&&Ev(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();function Bv(t){return Bv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bv(t)}function Rv(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Bv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Bv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Bv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Iv.displayName="Animate",Iv.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Iv.propTypes={from:Jd.oneOfType([Jd.object,Jd.string]),to:Jd.oneOfType([Jd.object,Jd.string]),attributeName:Jd.string,duration:Jd.number,begin:Jd.number,easing:Jd.oneOfType([Jd.string,Jd.func]),steps:Jd.arrayOf(Jd.shape({duration:Jd.number.isRequired,style:Jd.object.isRequired,easing:Jd.oneOfType([Jd.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Jd.func]),properties:Jd.arrayOf("string"),onAnimationEnd:Jd.func})),children:Jd.oneOfType([Jd.node,Jd.func]),isActive:Jd.bool,canBegin:Jd.bool,onAnimationEnd:Jd.func,shouldReAnimate:Jd.bool,onAnimationStart:Jd.func,onAnimationReStart:Jd.func},void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)}),Jd.object,Jd.object,Jd.object,Jd.element,Jd.object,Jd.object,Jd.object,Jd.oneOfType([Jd.array,Jd.element]),Jd.any;var Lv="recharts-tooltip-wrapper",$v={visibility:"hidden"};function zv(t){var e,n=t.coordinate,r=t.translateX,i=t.translateY;return Hr(Lv,(Rv(e={},"".concat(Lv,"-right"),Ta(r)&&n&&Ta(n.x)&&r>=n.x),Rv(e,"".concat(Lv,"-left"),Ta(r)&&n&&Ta(n.x)&&r<n.x),Rv(e,"".concat(Lv,"-bottom"),Ta(i)&&n&&Ta(n.y)&&i>=n.y),Rv(e,"".concat(Lv,"-top"),Ta(i)&&n&&Ta(n.y)&&i<n.y),e))}function Hv(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.key,i=t.offsetTopLeft,o=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(o&&Ta(o[r]))return o[r];var s=n[r]-c-i,f=n[r]+i;return e[r]?a[r]?s:f:a[r]?s<u[r]?Math.max(f,u[r]):Math.max(s,u[r]):f+c>u[r]+l?Math.max(s,u[r]):Math.max(f,u[r])}function Zv(t){var e,n,r,i=t.allowEscapeViewBox,o=t.coordinate,a=t.offsetTopLeft,c=t.position,u=t.reverseDirection,l=t.tooltipBox,s=t.useTranslate3d,f=t.viewBox;return e=l.height>0&&l.width>0&&o?function(t){var e=t.translateX,n=t.translateY,r=t.useTranslate3d;return Yy({transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})}({translateX:n=Hv({allowEscapeViewBox:i,coordinate:o,key:"x",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),translateY:r=Hv({allowEscapeViewBox:i,coordinate:o,key:"y",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:s}):$v,{cssProperties:e,cssClasses:zv({translateX:n,translateY:r,coordinate:o})}}function Uv(t){return Uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uv(t)}function Fv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fv(Object(n),!0).forEach((function(e){Kv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Jv(r.key),r)}}function Wv(t,e){return Wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wv(t,e)}function Yv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Gv(t);if(e){var i=Gv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Uv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xv(t)}(this,n)}}function Xv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Gv(t){return Gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gv(t)}function Kv(t,e,n){return(e=Jv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Jv(t){var e=function(t,e){if("object"!==Uv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Uv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Uv(e)?e:String(e)}var Qv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wv(t,e)}(o,$);var e,n,r,i=Yv(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Kv(Xv(t=i.call.apply(i,[this].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Kv(Xv(t),"lastBoundingBox",{width:-1,height:-1}),Kv(Xv(t),"handleKeyDown",(function(e){var n,r,i,o;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=t.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(i=null===(o=t.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})})),t}return e=o,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,n=e.active,r=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.children,c=e.coordinate,u=e.hasPayload,l=e.isAnimationActive,s=e.offset,f=e.position,h=e.reverseDirection,p=e.useTranslate3d,d=e.viewBox,y=e.wrapperStyle,v=Zv({allowEscapeViewBox:r,coordinate:c,offsetTopLeft:s,position:f,reverseDirection:h,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:p,viewBox:d}),g=v.cssClasses,m=v.cssProperties,b=qv(qv(qv({},l&&n&&Yy({transition:"transform ".concat(i,"ms ").concat(o)})),m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&u?"visible":"hidden",position:"absolute",top:0,left:0},y);return B.createElement("div",{tabIndex:-1,role:"dialog",className:g,style:b,ref:function(e){t.wrapperNode=e}},a)}}])&&Vv(e.prototype,n),r&&Vv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(),tg={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return tg[t]},set:function(t,e){if("string"==typeof t)tg[t]=e;else{var n=Object.keys(t);n&&n.length&&n.forEach((function(e){tg[e]=t[e]}))}}};function eg(t){return eg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eg(t)}function ng(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function rg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ng(Object(n),!0).forEach((function(e){ug(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ng(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ig(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,lg(r.key),r)}}function og(t,e){return og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},og(t,e)}function ag(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=cg(t);if(e){var i=cg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===eg(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function cg(t){return cg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cg(t)}function ug(t,e,n){return(e=lg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lg(t){var e=function(t,e){if("object"!==eg(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==eg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===eg(e)?e:String(e)}function sg(t){return t.dataKey}var fg=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&og(t,e)}(o,$);var e,n,r,i=ag(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"render",value:function(){var t=this.props,e=t.active,n=t.allowEscapeViewBox,r=t.animationDuration,i=t.animationEasing,o=t.content,a=t.coordinate,c=t.filterNull,u=t.isAnimationActive,l=t.offset,s=t.payload,f=t.payloadUniqBy,h=t.position,p=t.reverseDirection,d=t.useTranslate3d,y=t.viewBox,v=t.wrapperStyle,g=null!=s?s:[];c&&g.length&&(g=pp(s.filter((function(t){return null!=t.value})),f,sg));var m=g.length>0;return B.createElement(Qv,{allowEscapeViewBox:n,animationDuration:r,animationEasing:i,isAnimationActive:u,active:e,coordinate:a,hasPayload:m,offset:l,position:h,reverseDirection:p,useTranslate3d:d,viewBox:y,wrapperStyle:v},function(t,e){return B.isValidElement(t)?B.cloneElement(t,e):"function"==typeof t?B.createElement(t,e):B.createElement(Vd,e)}(o,rg(rg({},this.props),{},{payload:g})))}}])&&ig(e.prototype,n),r&&ig(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();ug(fg,"displayName","Tooltip"),ug(fg,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!tg.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var hg=Vr,pg=/\s/;var dg=function(t){for(var e=t.length;e--&&pg.test(t.charAt(e)););return e},yg=dg,vg=/^\s+/;var gg=function(t){return t?t.slice(0,yg(t)+1).replace(vg,""):t},mg=gg,bg=di,wg=ui,xg=/^[-+]0x[0-9a-f]+$/i,Og=/^0b[01]+$/i,Sg=/^0o[0-7]+$/i,jg=parseInt;var Ag=function(t){if("number"==typeof t)return t;if(wg(t))return NaN;if(bg(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=bg(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=mg(t);var n=Og.test(t);return n||Sg.test(t)?jg(t.slice(2),n?2:8):xg.test(t)?NaN:+t},Mg=di,Pg=function(){return hg.Date.now()},Eg=Ag,kg=Math.max,_g=Math.min;var Tg=function(t,e,n){var r,i,o,a,c,u,l=0,s=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=r,o=i;return r=i=void 0,l=e,a=t.apply(o,n)}function d(t){var n=t-u;return void 0===u||n>=e||n<0||f&&t-l>=o}function y(){var t=Pg();if(d(t))return v(t);c=setTimeout(y,function(t){var n=e-(t-u);return f?_g(n,o-(t-l)):n}(t))}function v(t){return c=void 0,h&&r?p(t):(r=i=void 0,a)}function g(){var t=Pg(),n=d(t);if(r=arguments,i=this,u=t,n){if(void 0===c)return function(t){return l=t,c=setTimeout(y,e),s?p(t):a}(u);if(f)return clearTimeout(c),c=setTimeout(y,e),p(u)}return void 0===c&&(c=setTimeout(y,e)),a}return e=Eg(e)||0,Mg(n)&&(s=!!n.leading,o=(f="maxWait"in n)?kg(Eg(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),g.cancel=function(){void 0!==c&&clearTimeout(c),l=0,r=u=i=c=void 0},g.flush=function(){return void 0===c?a:v(Pg())},g},Cg=Tg,Dg=di;var Ng=Pe((function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Dg(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Cg(t,e,{leading:r,maxWait:e,trailing:i})}));function Ig(t){return Ig="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ig(t)}function Bg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Rg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bg(Object(n),!0).forEach((function(e){Lg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Lg(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Ig(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ig(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ig(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $g(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return zg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zg(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Hg=H((function(t,e){var n=t.aspect,r=t.initialDimension,i=void 0===r?{width:-1,height:-1}:r,o=t.width,a=void 0===o?"100%":o,c=t.height,u=void 0===c?"100%":c,l=t.minWidth,s=void 0===l?0:l,f=t.minHeight,h=t.maxHeight,p=t.children,d=t.debounce,y=void 0===d?0:d,v=t.id,g=t.className,m=t.onResize,b=t.style,w=void 0===b?{}:b,x=Z(null),O=Z();O.current=m,U(e,(function(){return x}));var S=$g(F({containerWidth:i.width,containerHeight:i.height}),2),j=S[0],A=S[1],M=q((function(t,e){A((function(n){var r=Math.round(t),i=Math.round(e);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}}))}),[]);V((function(){var t=function(t){var e,n=t[0].contentRect,r=n.width,i=n.height;M(r,i),null===(e=O.current)||void 0===e||e.call(O,r,i)};y>0&&(t=Ng(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),n=x.current.getBoundingClientRect(),r=n.width,i=n.height;return M(r,i),e.observe(x.current),function(){e.disconnect()}}),[M,y]);var P=W((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;wc(_a(a)||_a(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),wc(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=_a(a)?t:a,i=_a(u)?e:u;n&&n>0&&(r?i=r/n:i&&(r=i*n),h&&i>h&&(i=h)),wc(r>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,i,a,u,s,f,n);var o=!Array.isArray(p)&&Oa.isElement(p)&&Ja(p.type).endsWith("Chart");return B.Children.map(p,(function(t){return Oa.isElement(t)?z(t,Rg({width:r,height:i},o?{style:Rg({height:"100%",width:"100%",maxHeight:i,maxWidth:r},t.props.style)}:{})):t}))}),[n,p,u,h,f,s,j,a]);return B.createElement("div",{id:v?"".concat(v):void 0,className:Hr("recharts-responsive-container",g),style:Rg(Rg({},w),{},{width:a,height:u,minWidth:s,minHeight:f,maxHeight:h}),ref:x},P)})),Zg=function(t){return null};function Ug(t){return Ug="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ug(t)}function Fg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fg(Object(n),!0).forEach((function(e){Vg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vg(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Ug(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ug(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ug(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Zg.displayName="Cell";var Wg={widthCache:{},cacheCount:0},Yg={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Xg="recharts_measurement_span";var Gg=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||tg.isSsr)return{width:0,height:0};var n,r=(n=qg({},e),Object.keys(n).forEach((function(t){n[t]||delete n[t]})),n),i=JSON.stringify({text:t,copyStyle:r});if(Wg.widthCache[i])return Wg.widthCache[i];try{var o=document.getElementById(Xg);o||((o=document.createElement("span")).setAttribute("id",Xg),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=qg(qg({},Yg),r);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return Wg.widthCache[i]=u,++Wg.cacheCount>2e3&&(Wg.cacheCount=0,Wg.widthCache={}),u}catch(t){return{width:0,height:0}}};function Kg(t){return Kg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kg(t)}function Jg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Qg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qg(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function tm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,o=function(t,e){if("object"!==Kg(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Kg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Kg(o)?o:String(o)),r)}var i,o}var em=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,nm=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rm=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,im=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,om={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},am=Object.keys(om),cm="NaN";var um=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=n,this.num=e,this.unit=n,Number.isNaN(e)&&(this.unit=""),""===n||rm.test(n)||(this.num=NaN,this.unit=""),am.includes(n)&&(this.num=function(t,e){return t*om[e]}(e,n),this.unit="px")}var e,n,r;return e=t,r=[{key:"parse",value:function(e){var n,r=Jg(null!==(n=im.exec(e))&&void 0!==n?n:[],3),i=r[1],o=r[2];return new t(parseFloat(i),null!=o?o:"")}}],(n=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&tm(e.prototype,n),r&&tm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function lm(t){if(t.includes(cm))return cm;for(var e=t;e.includes("*")||e.includes("/");){var n,r=Jg(null!==(n=em.exec(e))&&void 0!==n?n:[],4),i=r[1],o=r[2],a=r[3],c=um.parse(null!=i?i:""),u=um.parse(null!=a?a:""),l="*"===o?c.multiply(u):c.divide(u);if(l.isNaN())return cm;e=e.replace(em,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Jg(null!==(s=nm.exec(e))&&void 0!==s?s:[],4),h=f[1],p=f[2],d=f[3],y=um.parse(null!=h?h:""),v=um.parse(null!=d?d:""),g="+"===p?y.add(v):y.subtract(v);if(g.isNaN())return cm;e=e.replace(nm,g.toString())}return e}var sm=/\(([^()]*)\)/;function fm(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var n=Jg(sm.exec(e),2)[1];e=e.replace(sm,lm(n))}return e}(e),e=lm(e)}function hm(t){var e=function(t){try{return fm(t)}catch(t){return cm}}(t.slice(5,-1));return e===cm?"":e}var pm=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],dm=["dx","dy","angle","className","breakAll"];function ym(){return ym=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ym.apply(this,arguments)}function vm(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function gm(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return mm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mm(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var bm=/[ \f\n\r\t\v\u2028\u2029]+/,wm=function(t){var e=t.children,n=t.breakAll,r=t.style;try{var i=[];return ha(e)||(i=n?e.toString().split(""):e.toString().split(bm)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:Gg(t,r).width}})),spaceWidth:n?0:Gg(" ",r).width}}catch(t){return null}},xm=function(t){return[{words:ha(t)?[]:t.toString().split(bm)}]},Om=function(t){var e=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||n)&&!tg.isSsr){var c=wm({breakAll:o,children:r,style:i});return c?function(t,e,n,r,i){var o=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=Ta(o),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var o=e.word,a=e.width,c=t[t.length-1];if(c&&(null==r||i||c.width+a+n<Number(r)))c.words.push(o),c.width+=a+n;else{var u={words:[o],width:a};t.push(u)}return t}),[])},h=f(e);if(!l)return h;for(var p,d=function(t){var e=s.slice(0,t),n=wm({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,i=f(n),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(r);return[a,i]},y=0,v=s.length-1,g=0;y<=v&&g<=s.length-1;){var m=Math.floor((y+v)/2),b=gm(d(m-1),2),w=b[0],x=b[1],O=gm(d(m),1)[0];if(w||O||(y=m+1),w&&O&&(v=m-1),!w&&O){p=x;break}g++}return p||h}({breakAll:o,children:r,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,n):xm(r)}return xm(r)},Sm="#808080",jm=function(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.lineHeight,a=void 0===o?"1em":o,c=t.capHeight,u=void 0===c?"0.71em":c,l=t.scaleToFit,s=void 0!==l&&l,f=t.textAnchor,h=void 0===f?"start":f,p=t.verticalAnchor,d=void 0===p?"end":p,y=t.fill,v=void 0===y?Sm:y,g=vm(t,pm),m=W((function(){return Om({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:s,style:g.style,width:g.width})}),[g.breakAll,g.children,g.maxLines,s,g.style,g.width]),b=g.dx,w=g.dy,x=g.angle,O=g.className,S=g.breakAll,j=vm(g,dm);if(!Ca(n)||!Ca(i))return null;var A,M=n+(Ta(b)?b:0),P=i+(Ta(w)?w:0);switch(d){case"start":A=hm("calc(".concat(u,")"));break;case"middle":A=hm("calc(".concat((m.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:A=hm("calc(".concat(m.length-1," * -").concat(a,")"))}var E=[];if(s){var k=m[0].width,_=g.width;E.push("scale(".concat((Ta(_)?_/k:1)/k,")"))}return x&&E.push("rotate(".concat(x,", ").concat(M,", ").concat(P,")")),E.length&&(j.transform=E.join(" ")),B.createElement("text",ym({},cc(j,!0),{x:M,y:P,className:Hr("recharts-text",O),textAnchor:h,fill:v.includes("url")?Sm:v}),m.map((function(t,e){var n=t.words.join(S?"":" ");return B.createElement("tspan",{x:M,dy:0===e?A:a,key:n},n)})))};function Am(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Mm(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Pm(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Am,n=(e,n)=>Am(t(e),n),r=(e,n)=>t(e)-n):(e=t===Am||t===Mm?t:Em,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function Em(){return 0}function km(t){return null===t?NaN:+t}const _m=Pm(Am).right;Pm(km).center;var Tm=_m;class Cm extends Map{constructor(t,e=Nm){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Dm(this,t))}has(t){return super.has(Dm(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);t.has(r)&&(n=t.get(r),t.delete(r));return n}(this,t))}}function Dm({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Nm(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Im(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const Bm=Math.sqrt(50),Rm=Math.sqrt(10),Lm=Math.sqrt(2);function $m(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=Bm?10:o>=Rm?5:o>=Lm?2:1;let c,u,l;return i<0?(l=Math.pow(10,-i)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,i)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=n&&n<2?$m(t,e,2*n):[c,u,l]}function zm(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[i,o,a]=r?$m(e,t,n):$m(t,e,n);if(!(o>=i))return[];const c=o-i+1,u=new Array(c);if(r)if(a<0)for(let t=0;t<c;++t)u[t]=(o-t)/-a;else for(let t=0;t<c;++t)u[t]=(o-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(i+t)/-a;else for(let t=0;t<c;++t)u[t]=(i+t)*a;return u}function Hm(t,e,n){return $m(t=+t,e=+e,n=+n)[2]}function Zm(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?Hm(e,t,n):Hm(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function Um(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Fm(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function qm(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=void 0===i?Im:function(t=Am){if(t===Am)return Im;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(i);r>n;){if(r-n>600){const o=r-n+1,a=e-n+1,c=Math.log(o),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(o-u)/o)*(a-o/2<0?-1:1);qm(t,e,Math.max(n,Math.floor(e-a*u/o+l)),Math.min(r,Math.floor(e+(o-a)*u/o+l)),i)}const o=t[e];let a=n,c=r;for(Vm(t,n,e),i(t[r],o)>0&&Vm(t,n,r);a<c;){for(Vm(t,a,c),++a,--c;i(t[a],o)<0;)++a;for(;i(t[c],o)>0;)--c}0===i(t[n],o)?Vm(t,n,c):(++c,Vm(t,c,r)),c<=e&&(n=c+1),e<=c&&(r=c-1)}return t}function Vm(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Wm(t,e,n=km){if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function Ym(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Xm(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Gm=Symbol("implicit");function Km(){var t=new Cm,e=[],n=[],r=Gm;function i(i){let o=t.get(i);if(void 0===o){if(r!==Gm)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Cm;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Km(e,n).unknown(r)},Ym.apply(i,arguments),i}function Jm(){var t,e,n=Km().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var n=r().length,f=a<o,h=f?a:o,p=f?o:a;t=(p-h)/Math.max(1,n-u+2*l),c&&(t=Math.floor(t)),h+=(p-h-t*(n-u))*s,e=t*(1-u),c&&(h=Math.round(h),e=Math.round(e));var d=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return h+t*e}));return i(f?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,c=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(c=!!t,f()):c},n.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},n.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},n.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},n.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},n.copy=function(){return Jm(r(),[o,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},Ym.apply(f(),arguments)}function Qm(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Qm(e())},t}function tb(){return Qm(Jm.apply(null,arguments).paddingInner(1))}function eb(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function nb(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function rb(){}var ib=.7,ob=1/ib,ab="\\s*([+-]?\\d+)\\s*",cb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ub="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lb=/^#([0-9a-f]{3,8})$/,sb=new RegExp(`^rgb\\(${ab},${ab},${ab}\\)$`),fb=new RegExp(`^rgb\\(${ub},${ub},${ub}\\)$`),hb=new RegExp(`^rgba\\(${ab},${ab},${ab},${cb}\\)$`),pb=new RegExp(`^rgba\\(${ub},${ub},${ub},${cb}\\)$`),db=new RegExp(`^hsl\\(${cb},${ub},${ub}\\)$`),yb=new RegExp(`^hsla\\(${cb},${ub},${ub},${cb}\\)$`),vb={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function gb(){return this.rgb().formatHex()}function mb(){return this.rgb().formatRgb()}function bb(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=lb.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?wb(e):3===n?new Sb(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?xb(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?xb(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=sb.exec(t))?new Sb(e[1],e[2],e[3],1):(e=fb.exec(t))?new Sb(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=hb.exec(t))?xb(e[1],e[2],e[3],e[4]):(e=pb.exec(t))?xb(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=db.exec(t))?kb(e[1],e[2]/100,e[3]/100,1):(e=yb.exec(t))?kb(e[1],e[2]/100,e[3]/100,e[4]):vb.hasOwnProperty(t)?wb(vb[t]):"transparent"===t?new Sb(NaN,NaN,NaN,0):null}function wb(t){return new Sb(t>>16&255,t>>8&255,255&t,1)}function xb(t,e,n,r){return r<=0&&(t=e=n=NaN),new Sb(t,e,n,r)}function Ob(t,e,n,r){return 1===arguments.length?((i=t)instanceof rb||(i=bb(i)),i?new Sb((i=i.rgb()).r,i.g,i.b,i.opacity):new Sb):new Sb(t,e,n,null==r?1:r);var i}function Sb(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function jb(){return`#${Eb(this.r)}${Eb(this.g)}${Eb(this.b)}`}function Ab(){const t=Mb(this.opacity);return`${1===t?"rgb(":"rgba("}${Pb(this.r)}, ${Pb(this.g)}, ${Pb(this.b)}${1===t?")":`, ${t})`}`}function Mb(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Pb(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Eb(t){return((t=Pb(t))<16?"0":"")+t.toString(16)}function kb(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Tb(t,e,n,r)}function _b(t){if(t instanceof Tb)return new Tb(t.h,t.s,t.l,t.opacity);if(t instanceof rb||(t=bb(t)),!t)return new Tb;if(t instanceof Tb)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,c=o-i,u=(o+i)/2;return c?(a=e===o?(n-r)/c+6*(n<r):n===o?(r-e)/c+2:(e-n)/c+4,c/=u<.5?o+i:2-o-i,a*=60):c=u>0&&u<1?0:a,new Tb(a,c,u,t.opacity)}function Tb(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Cb(t){return(t=(t||0)%360)<0?t+360:t}function Db(t){return Math.max(0,Math.min(1,t||0))}function Nb(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}eb(rb,bb,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:gb,formatHex:gb,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _b(this).formatHsl()},formatRgb:mb,toString:mb}),eb(Sb,Ob,nb(rb,{brighter(t){return t=null==t?ob:Math.pow(ob,t),new Sb(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?ib:Math.pow(ib,t),new Sb(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Sb(Pb(this.r),Pb(this.g),Pb(this.b),Mb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:jb,formatHex:jb,formatHex8:function(){return`#${Eb(this.r)}${Eb(this.g)}${Eb(this.b)}${Eb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ab,toString:Ab})),eb(Tb,(function(t,e,n,r){return 1===arguments.length?_b(t):new Tb(t,e,n,null==r?1:r)}),nb(rb,{brighter(t){return t=null==t?ob:Math.pow(ob,t),new Tb(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?ib:Math.pow(ib,t),new Tb(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Sb(Nb(t>=240?t-240:t+120,i,r),Nb(t,i,r),Nb(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Tb(Cb(this.h),Db(this.s),Db(this.l),Mb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Mb(this.opacity);return`${1===t?"hsl(":"hsla("}${Cb(this.h)}, ${100*Db(this.s)}%, ${100*Db(this.l)}%${1===t?")":`, ${t})`}`}}));var Ib=t=>()=>t;function Bb(t){return 1==(t=+t)?Rb:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ib(isNaN(e)?n:e)}}function Rb(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ib(isNaN(t)?e:t)}var Lb=function t(e){var n=Bb(e);function r(t,e){var r=n((t=Ob(t)).r,(e=Ob(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Rb(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function $b(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function zb(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Wb(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Hb(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Zb(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ub(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Wb(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Fb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qb=new RegExp(Fb.source,"g");function Vb(t,e){var n,r,i,o=Fb.lastIndex=qb.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(n=Fb.exec(t))&&(r=qb.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,u.push({i:a,x:Zb(n,r)})),o=qb.lastIndex;return o<e.length&&(i=e.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)c[(n=u[r]).i]=n.x(t);return c.join("")})}function Wb(t,e){var n,r=typeof e;return null==e||"boolean"===r?Ib(e):("number"===r?Zb:"string"===r?(n=bb(e))?(e=n,Lb):Vb:e instanceof bb?Lb:e instanceof Date?Hb:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?$b:Array.isArray(e)?zb:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ub:Zb)(t,e)}function Yb(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Xb(t,e){void 0===e&&(e=t,t=Wb);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}function Gb(t){return+t}var Kb=[0,1];function Jb(t){return t}function Qb(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function tw(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Qb(i,r),o=n(a,o)):(r=Qb(r,i),o=n(o,a)),function(t){return o(r(t))}}function ew(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Qb(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Tm(t,e,1,r)-1;return o[n](i[n](e))}}function nw(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function rw(){var t,e,n,r,i,o,a=Kb,c=Kb,u=Wb,l=Jb;function s(){var t=Math.min(a.length,c.length);return l!==Jb&&(l=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?ew:tw,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),c,u)))(t(l(e)))}return f.invert=function(n){return l(e((o||(o=r(c,a.map(t),Zb)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Gb),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=Yb,s()},f.clamp=function(t){return arguments.length?(l=!!t||Jb,s()):l!==Jb},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,s()}}function iw(){return rw()(Jb,Jb)}function ow(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function aw(t){return(t=ow(Math.abs(t)))?t[1]:NaN}var cw,uw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function lw(t){if(!(e=uw.exec(t)))throw new Error("invalid format: "+t);var e;return new sw({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function sw(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function fw(t,e){var n=ow(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}lw.prototype=sw.prototype,sw.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var hw={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>fw(100*t,e),r:fw,s:function(t,e){var n=ow(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(cw=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ow(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function pw(t){return t}var dw,yw,vw,gw=Array.prototype.map,mw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bw(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?pw:(e=gw.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,c=e[0],u=0;i>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),o.push(t.substring(i-=c,i+c)),!((u+=c+1)>r));)c=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?pw:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(gw.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=lw(t)).fill,n=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,y=t.comma,v=t.precision,g=t.trim,m=t.type;"n"===m?(y=!0,m="g"):hw[m]||(void 0===v&&(v=12),g=!0,m="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?o:/[%p]/.test(m)?u:"",x=hw[m],O=/[defgprs%]/.test(m);function S(t){var i,o,u,h=b,S=w;if("c"===m)S=x(t)+S,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),v),g&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),h=(j?"("===f?f:l:"-"===f||"("===f?"":f)+h,S=("s"===m?mw[8+cw/3]:"")+S+(j&&"("===f?")":""),O)for(i=-1,o=t.length;++i<o;)if(48>(u=t.charCodeAt(i))||u>57){S=(46===u?a+t.slice(i+1):t.slice(i))+S,t=t.slice(0,i);break}}y&&!p&&(t=r(t,1/0));var A=h.length+t.length+S.length,M=A<d?new Array(d-A+1).join(e):"";switch(y&&p&&(t=r(M+t,M.length?d-S.length:1/0),M=""),n){case"<":t=h+t+S+M;break;case"=":t=h+M+t+S;break;case"^":t=M.slice(0,A=M.length>>1)+h+t+S+M.slice(A);break;default:t=M+h+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var n=f(((t=lw(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(aw(e)/3))),i=Math.pow(10,-r),o=mw[8+r/3];return function(t){return n(i*t)+o}}}}function ww(t,e,n,r){var i,o=Zm(t,e,n);switch((r=lw(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(aw(e)/3)))-aw(Math.abs(t)))}(o,a))||(r.precision=i),vw(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,aw(e)-aw(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-aw(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return yw(r)}function xw(t){var e=t.domain;return t.ticks=function(t){var n=e();return zm(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ww(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,c=o.length-1,u=o[a],l=o[c],s=10;for(l<u&&(i=u,u=l,l=i,i=a,a=c,c=i);s-- >0;){if((i=Hm(u,l,n))===r)return o[a]=u,o[c]=l,e(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function Ow(){var t=iw();return t.copy=function(){return nw(t,Ow())},Ym.apply(t,arguments),xw(t)}function Sw(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function jw(t){return Math.log(t)}function Aw(t){return Math.exp(t)}function Mw(t){return-Math.log(-t)}function Pw(t){return-Math.exp(-t)}function Ew(t){return isFinite(t)?+("1e"+t):t<0?0:t}function kw(t){return(e,n)=>-t(-e,n)}function _w(t){const e=t(jw,Aw),n=e.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(o),i=function(t){return 10===t?Ew:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),n()[0]<0?(r=kw(r),i=kw(i),t(Mw,Pw)):t(jw,Aw),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=r(a),h=r(c);const p=null==t?10:+t;let d=[];if(!(o%1)&&h-f<p){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(l=1;l<o;++l)if(s=f<0?l/i(-f):l*i(f),!(s<a)){if(s>c)break;d.push(s)}}else for(;f<=h;++f)for(l=o-1;l>=1;--l)if(s=f>0?l/i(-f):l*i(f),!(s<a)){if(s>c)break;d.push(s)}2*d.length<p&&(d=zm(a,c,p))}else d=zm(f,h,Math.min(h-f,p)).map(i);return u?d.reverse():d},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=lw(n)).precision||(n.trim=!0),n=yw(n)),t===1/0)return n;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(r(t)));return e*o<o-.5&&(e*=o),e<=a?n(t):""}},e.nice=()=>n(Sw(n(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),e}function Tw(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Cw(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Dw(t){var e=1,n=t(Tw(e),Cw(e));return n.constant=function(n){return arguments.length?t(Tw(e=+n),Cw(e)):e},xw(n)}function Nw(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Iw(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Bw(t){return t<0?-t*t:t*t}function Rw(t){var e=t(Jb,Jb),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(Jb,Jb):.5===n?t(Iw,Bw):t(Nw(n),Nw(1/n)):n},xw(e)}function Lw(){var t=Rw(rw());return t.copy=function(){return nw(t,Lw()).exponent(t.exponent())},Ym.apply(t,arguments),t}function $w(t){return Math.sign(t)*t*t}dw=bw({thousands:",",grouping:[3],currency:["$",""]}),yw=dw.format,vw=dw.formatPrefix;const zw=new Date,Hw=new Date;function Zw(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let c;do{a.push(c=new Date(+n)),e(n,o),t(n)}while(c<n&&n<r);return a},i.filter=n=>Zw((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(zw.setTime(+e),Hw.setTime(+r),t(zw),t(Hw),Math.floor(n(zw,Hw))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Uw=Zw((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Uw.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Zw((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):Uw:null),Uw.range;const Fw=1e3,qw=6e4,Vw=36e5,Ww=864e5,Yw=6048e5,Xw=2592e6,Gw=31536e6,Kw=Zw((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Fw)}),((t,e)=>(e-t)/Fw),(t=>t.getUTCSeconds()));Kw.range;const Jw=Zw((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fw)}),((t,e)=>{t.setTime(+t+e*qw)}),((t,e)=>(e-t)/qw),(t=>t.getMinutes()));Jw.range;const Qw=Zw((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*qw)}),((t,e)=>(e-t)/qw),(t=>t.getUTCMinutes()));Qw.range;const tx=Zw((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fw-t.getMinutes()*qw)}),((t,e)=>{t.setTime(+t+e*Vw)}),((t,e)=>(e-t)/Vw),(t=>t.getHours()));tx.range;const ex=Zw((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Vw)}),((t,e)=>(e-t)/Vw),(t=>t.getUTCHours()));ex.range;const nx=Zw((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*qw)/Ww),(t=>t.getDate()-1));nx.range;const rx=Zw((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Ww),(t=>t.getUTCDate()-1));rx.range;const ix=Zw((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Ww),(t=>Math.floor(t/Ww)));function ox(t){return Zw((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*qw)/Yw))}ix.range;const ax=ox(0),cx=ox(1),ux=ox(2),lx=ox(3),sx=ox(4),fx=ox(5),hx=ox(6);function px(t){return Zw((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Yw))}ax.range,cx.range,ux.range,lx.range,sx.range,fx.range,hx.range;const dx=px(0),yx=px(1),vx=px(2),gx=px(3),mx=px(4),bx=px(5),wx=px(6);dx.range,yx.range,vx.range,gx.range,mx.range,bx.range,wx.range;const xx=Zw((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()));xx.range;const Ox=Zw((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()));Ox.range;const Sx=Zw((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));Sx.every=t=>isFinite(t=Math.floor(t))&&t>0?Zw((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null,Sx.range;const jx=Zw((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function Ax(t,e,n,r,i,o){const a=[[Kw,1,Fw],[Kw,5,5e3],[Kw,15,15e3],[Kw,30,3e4],[o,1,qw],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Vw],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Ww],[r,2,1728e5],[n,1,Yw],[e,1,Xw],[e,3,7776e6],[t,1,Gw]];function c(e,n,r){const i=Math.abs(n-e)/r,o=Pm((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(Zm(e/Gw,n/Gw,r));if(0===o)return Uw.every(Math.max(Zm(e,n,r),1));const[c,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(u)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:c(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},c]}jx.every=t=>isFinite(t=Math.floor(t))&&t>0?Zw((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null,jx.range;const[Mx,Px]=Ax(jx,Ox,dx,ix,ex,Qw),[Ex,kx]=Ax(Sx,xx,ax,nx,tx,Jw);function _x(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Tx(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Cx(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Dx,Nx,Ix,Bx={"-":"",_:" ",0:"0"},Rx=/^\s*\d+/,Lx=/^%/,$x=/[\\^$*+?|[\]().{}]/g;function zx(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Hx(t){return t.replace($x,"\\$&")}function Zx(t){return new RegExp("^(?:"+t.map(Hx).join("|")+")","i")}function Ux(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Fx(t,e,n){var r=Rx.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function qx(t,e,n){var r=Rx.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Vx(t,e,n){var r=Rx.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Wx(t,e,n){var r=Rx.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Yx(t,e,n){var r=Rx.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Xx(t,e,n){var r=Rx.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Gx(t,e,n){var r=Rx.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Kx(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Jx(t,e,n){var r=Rx.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Qx(t,e,n){var r=Rx.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function tO(t,e,n){var r=Rx.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function eO(t,e,n){var r=Rx.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function nO(t,e,n){var r=Rx.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function rO(t,e,n){var r=Rx.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function iO(t,e,n){var r=Rx.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function oO(t,e,n){var r=Rx.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function aO(t,e,n){var r=Rx.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function cO(t,e,n){var r=Lx.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function uO(t,e,n){var r=Rx.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function lO(t,e,n){var r=Rx.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function sO(t,e){return zx(t.getDate(),e,2)}function fO(t,e){return zx(t.getHours(),e,2)}function hO(t,e){return zx(t.getHours()%12||12,e,2)}function pO(t,e){return zx(1+nx.count(Sx(t),t),e,3)}function dO(t,e){return zx(t.getMilliseconds(),e,3)}function yO(t,e){return dO(t,e)+"000"}function vO(t,e){return zx(t.getMonth()+1,e,2)}function gO(t,e){return zx(t.getMinutes(),e,2)}function mO(t,e){return zx(t.getSeconds(),e,2)}function bO(t){var e=t.getDay();return 0===e?7:e}function wO(t,e){return zx(ax.count(Sx(t)-1,t),e,2)}function xO(t){var e=t.getDay();return e>=4||0===e?sx(t):sx.ceil(t)}function OO(t,e){return t=xO(t),zx(sx.count(Sx(t),t)+(4===Sx(t).getDay()),e,2)}function SO(t){return t.getDay()}function jO(t,e){return zx(cx.count(Sx(t)-1,t),e,2)}function AO(t,e){return zx(t.getFullYear()%100,e,2)}function MO(t,e){return zx((t=xO(t)).getFullYear()%100,e,2)}function PO(t,e){return zx(t.getFullYear()%1e4,e,4)}function EO(t,e){var n=t.getDay();return zx((t=n>=4||0===n?sx(t):sx.ceil(t)).getFullYear()%1e4,e,4)}function kO(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+zx(e/60|0,"0",2)+zx(e%60,"0",2)}function _O(t,e){return zx(t.getUTCDate(),e,2)}function TO(t,e){return zx(t.getUTCHours(),e,2)}function CO(t,e){return zx(t.getUTCHours()%12||12,e,2)}function DO(t,e){return zx(1+rx.count(jx(t),t),e,3)}function NO(t,e){return zx(t.getUTCMilliseconds(),e,3)}function IO(t,e){return NO(t,e)+"000"}function BO(t,e){return zx(t.getUTCMonth()+1,e,2)}function RO(t,e){return zx(t.getUTCMinutes(),e,2)}function LO(t,e){return zx(t.getUTCSeconds(),e,2)}function $O(t){var e=t.getUTCDay();return 0===e?7:e}function zO(t,e){return zx(dx.count(jx(t)-1,t),e,2)}function HO(t){var e=t.getUTCDay();return e>=4||0===e?mx(t):mx.ceil(t)}function ZO(t,e){return t=HO(t),zx(mx.count(jx(t),t)+(4===jx(t).getUTCDay()),e,2)}function UO(t){return t.getUTCDay()}function FO(t,e){return zx(yx.count(jx(t)-1,t),e,2)}function qO(t,e){return zx(t.getUTCFullYear()%100,e,2)}function VO(t,e){return zx((t=HO(t)).getUTCFullYear()%100,e,2)}function WO(t,e){return zx(t.getUTCFullYear()%1e4,e,4)}function YO(t,e){var n=t.getUTCDay();return zx((t=n>=4||0===n?mx(t):mx.ceil(t)).getUTCFullYear()%1e4,e,4)}function XO(){return"+0000"}function GO(){return"%"}function KO(t){return+t}function JO(t){return Math.floor(+t/1e3)}function QO(t){return new Date(t)}function tS(t){return t instanceof Date?+t:+new Date(+t)}function eS(t,e,n,r,i,o,a,c,u,l){var s=iw(),f=s.invert,h=s.domain,p=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),g=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(t){return(u(t)<t?p:c(t)<t?d:a(t)<t?y:o(t)<t?v:r(t)<t?i(t)<t?g:m:n(t)<t?b:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?h(Array.from(t,tS)):h().map(QO)},s.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(Sw(n,t)):s},s.copy=function(){return nw(s,eS(t,e,n,r,i,o,a,c,u,l))},s}function nS(){var t,e,n,r,i,o=0,a=1,c=Jb,u=!1;function l(e){return null==e||isNaN(e=+e)?i:c(0===n?.5:(e=(r(e)-t)*n,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var n,r;return arguments.length?([n,r]=e,c=t(n,r),l):[c(0),c(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),e=r(a=+a),n=t===e?0:1/(e-t),l):[o,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(Wb),l.rangeRound=s(Yb),l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return r=i,t=i(o),e=i(a),n=t===e?0:1/(e-t),l}}function rS(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function iS(){var t=Rw(nS());return t.copy=function(){return rS(t,iS()).exponent(t.exponent())},Xm.apply(t,arguments)}function oS(){var t,e,n,r,i,o,a,c=0,u=.5,l=1,s=1,f=Jb,h=!1;function p(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(s*t<s*e?r:i),f(h?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var n,r,i;return arguments.length?([n,r,i]=e,f=Xb(t,[n,r,i]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([c,u,l]=a,t=o(c=+c),e=o(u=+u),n=o(l=+l),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),s=e<t?-1:1,p):[c,u,l]},p.clamp=function(t){return arguments.length?(h=!!t,p):h},p.interpolator=function(t){return arguments.length?(f=t,p):f},p.range=d(Wb),p.rangeRound=d(Yb),p.unknown=function(t){return arguments.length?(a=t,p):a},function(a){return o=a,t=a(c),e=a(u),n=a(l),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),s=e<t?-1:1,p}}function aS(){var t=Rw(oS());return t.copy=function(){return rS(t,aS()).exponent(t.exponent())},Xm.apply(t,arguments)}!function(t){Dx=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=Zx(i),s=Ux(i),f=Zx(o),h=Ux(o),p=Zx(a),d=Ux(a),y=Zx(c),v=Ux(c),g=Zx(u),m=Ux(u),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:sO,e:sO,f:yO,g:MO,G:EO,H:fO,I:hO,j:pO,L:dO,m:vO,M:gO,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:KO,s:JO,S:mO,u:bO,U:wO,V:OO,w:SO,W:jO,x:null,X:null,y:AO,Y:PO,Z:kO,"%":GO},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:_O,e:_O,f:IO,g:VO,G:YO,H:TO,I:CO,j:DO,L:NO,m:BO,M:RO,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:KO,s:JO,S:LO,u:$O,U:zO,V:ZO,w:UO,W:FO,x:null,X:null,y:qO,Y:WO,Z:XO,"%":GO},x={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return j(t,e,n,r)},d:tO,e:tO,f:aO,g:Gx,G:Xx,H:nO,I:nO,j:eO,L:oO,m:Qx,M:rO,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:Jx,Q:uO,s:lO,S:iO,u:qx,U:Vx,V:Wx,w:Fx,W:Yx,x:function(t,e,r){return j(t,n,e,r)},X:function(t,e,n){return j(t,r,e,n)},y:Gx,Y:Xx,Z:Kx,"%":cO};function O(t,e){return function(n){var r,i,o,a=[],c=-1,u=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(i=Bx[r=t.charAt(++c)])?r=t.charAt(++c):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(n){var r,i,o=Cx(1900,void 0,1);if(j(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Tx(Cx(o.y,0,1))).getUTCDay(),r=i>4||0===i?yx.ceil(r):yx(r),r=rx.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=_x(Cx(o.y,0,1))).getDay(),r=i>4||0===i?cx.ceil(r):cx(r),r=nx.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Tx(Cx(o.y,0,1)).getUTCDay():_x(Cx(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Tx(o)):_x(o)}}function j(t,e,n,r){for(var i,o,a=0,c=e.length,u=n.length;a<c;){if(r>=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in Bx?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(e,b),w.x=O(n,w),w.X=O(r,w),w.c=O(e,w),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),Nx=Dx.format,Dx.parse,Ix=Dx.utcFormat,Dx.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var cS=Object.freeze({__proto__:null,scaleBand:Jm,scaleDiverging:function t(){var e=xw(oS()(Jb));return e.copy=function(){return rS(e,t())},Xm.apply(e,arguments)},scaleDivergingLog:function t(){var e=_w(oS()).domain([.1,1,10]);return e.copy=function(){return rS(e,t()).base(e.base())},Xm.apply(e,arguments)},scaleDivergingPow:aS,scaleDivergingSqrt:function(){return aS.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=Dw(oS());return e.copy=function(){return rS(e,t()).constant(e.constant())},Xm.apply(e,arguments)},scaleIdentity:function t(e){var n;function r(t){return null==t||isNaN(t=+t)?n:t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,Gb),r):e.slice()},r.unknown=function(t){return arguments.length?(n=t,r):n},r.copy=function(){return t(e).unknown(n)},e=arguments.length?Array.from(e,Gb):[0,1],xw(r)},scaleImplicit:Gm,scaleLinear:Ow,scaleLog:function t(){const e=_w(rw()).domain([1,10]);return e.copy=()=>nw(e,t()).base(e.base()),Ym.apply(e,arguments),e},scaleOrdinal:Km,scalePoint:tb,scalePow:Lw,scaleQuantile:function t(){var e,n=[],r=[],i=[];function o(){var t=0,e=Math.max(1,r.length);for(i=new Array(e-1);++t<e;)i[t-1]=Wm(n,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:r[Tm(i,t)]}return a.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:n[0],e<i.length?i[e]:n[n.length-1]]},a.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(Am),o()},a.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return i.slice()},a.copy=function(){return t().domain(n).range(r).unknown(e)},Ym.apply(a,arguments)},scaleQuantize:function t(){var e,n=0,r=1,i=1,o=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[Tm(o,t,0,i)]:e}function u(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*r-(t-i)*n)/(i+1);return c}return c.domain=function(t){return arguments.length?([n,r]=t,n=+n,r=+r,u()):[n,r]},c.range=function(t){return arguments.length?(i=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,o[0]]:e>=i?[o[i-1],r]:[o[e-1],o[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return o.slice()},c.copy=function(){return t().domain([n,r]).range(a).unknown(e)},Ym.apply(xw(c),arguments)},scaleRadial:function t(){var e,n=iw(),r=[0,1],i=!1;function o(t){var r=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(n(t));return isNaN(r)?e:i?Math.round(r):r}return o.invert=function(t){return n.invert($w(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((r=Array.from(t,Gb)).map($w)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(n.domain(),r).round(i).clamp(n.clamp()).unknown(e)},Ym.apply(o,arguments),xw(o)},scaleSequential:function t(){var e=xw(nS()(Jb));return e.copy=function(){return rS(e,t())},Xm.apply(e,arguments)},scaleSequentialLog:function t(){var e=_w(nS()).domain([1,10]);return e.copy=function(){return rS(e,t()).base(e.base())},Xm.apply(e,arguments)},scaleSequentialPow:iS,scaleSequentialQuantile:function t(){var e=[],n=Jb;function r(t){if(null!=t&&!isNaN(t=+t))return n((Tm(e,t,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(Am),r},r.interpolator=function(t){return arguments.length?(n=t,r):n},r.range=function(){return e.map(((t,r)=>n(r/(e.length-1))))},r.quantiles=function(t){return Array.from({length:t+1},((n,r)=>function(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),(r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return Fm(t);if(e>=1)return Um(t);var r,i=(r-1)*e,o=Math.floor(i),a=Um(qm(t,o).subarray(0,o+1));return a+(Fm(t.subarray(o+1))-a)*(i-o)}}(e,r/t)))},r.copy=function(){return t(n).domain(e)},Xm.apply(r,arguments)},scaleSequentialSqrt:function(){return iS.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=Dw(nS());return e.copy=function(){return rS(e,t()).constant(e.constant())},Xm.apply(e,arguments)},scaleSqrt:function(){return Lw.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=Dw(rw());return e.copy=function(){return nw(e,t()).constant(e.constant())},Ym.apply(e,arguments)},scaleThreshold:function t(){var e,n=[.5],r=[0,1],i=1;function o(t){return null!=t&&t<=t?r[Tm(n,t,0,i)]:e}return o.domain=function(t){return arguments.length?(n=Array.from(t),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(n).range(r).unknown(e)},Ym.apply(o,arguments)},scaleTime:function(){return Ym.apply(eS(Ex,kx,Sx,xx,ax,nx,tx,Jw,Kw,Nx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Ym.apply(eS(Mx,Px,jx,Ox,dx,rx,ex,Qw,Kw,Ix).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:ww}),uS=ui;var lS=function(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===c?a==a&&!uS(a):n(a,c)))var c=a,u=o}return u};var sS=lS,fS=function(t,e){return t>e},hS=_h;var pS=function(t){return t&&t.length?sS(t,hS,fS):void 0},dS=Pe(pS);var yS=lS,vS=function(t,e){return t<e},gS=_h;var mS=function(t){return t&&t.length?yS(t,gS,vS):void 0},bS=Pe(mS),wS=Fo,xS=Uh,OS=Zp,SS=Zr;var jS=Dp,AS=function(t,e){return(SS(t)?wS:OS)(t,xS(e))};var MS=Pe((function(t,e){return jS(AS(t,e),1)})),PS=Kf;var ES,kS=Pe((function(t,e){return PS(t,e)})),_S=1e9,TS=!0,CS="[DecimalError] ",DS=CS+"Invalid argument: ",NS=CS+"Exponent out of range: ",IS=Math.floor,BS=Math.pow,RS=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,LS=1e7,$S=7,zS=9007199254740991,HS=IS(zS/$S),ZS={};function US(t,e){var n,r,i,o,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),TS?QS(e,f):e;if(u=t.d,l=e.d,a=t.e,i=e.e,u=u.slice(),o=a-i){for(o<0?(r=u,o=-o,c=l.length):(r=l,i=a,c=u.length),o>(c=(a=Math.ceil(f/$S))>c?a+1:c+1)&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((c=u.length)-(o=l.length)<0&&(o=c,r=l,l=u,u=r),n=0;o;)n=(u[--o]=u[o]+l[o]+n)/LS|0,u[o]%=LS;for(n&&(u.unshift(n),++i),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=i,TS?QS(e,f):e}function FS(t,e,n){if(t!==~~t||t<e||t>n)throw Error(DS+t)}function qS(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)r=t[e]+"",(n=$S-r.length)&&(o+=GS(n)),o+=r;a=t[e],(n=$S-(r=a+"").length)&&(o+=GS(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}ZS.absoluteValue=ZS.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},ZS.comparedTo=ZS.cmp=function(t){var e,n,r,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,n=(r=o.d.length)<(i=t.d.length)?r:i;e<n;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},ZS.decimalPlaces=ZS.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*$S;if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},ZS.dividedBy=ZS.div=function(t){return VS(this,new this.constructor(t))},ZS.dividedToIntegerBy=ZS.idiv=function(t){var e=this.constructor;return QS(VS(this,new e(t),0,1),e.precision)},ZS.equals=ZS.eq=function(t){return!this.cmp(t)},ZS.exponent=function(){return YS(this)},ZS.greaterThan=ZS.gt=function(t){return this.cmp(t)>0},ZS.greaterThanOrEqualTo=ZS.gte=function(t){return this.cmp(t)>=0},ZS.isInteger=ZS.isint=function(){return this.e>this.d.length-2},ZS.isNegative=ZS.isneg=function(){return this.s<0},ZS.isPositive=ZS.ispos=function(){return this.s>0},ZS.isZero=function(){return 0===this.s},ZS.lessThan=ZS.lt=function(t){return this.cmp(t)<0},ZS.lessThanOrEqualTo=ZS.lte=function(t){return this.cmp(t)<1},ZS.logarithm=ZS.log=function(t){var e,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(ES))throw Error(CS+"NaN");if(n.s<1)throw Error(CS+(n.s?"NaN":"-Infinity"));return n.eq(ES)?new r(0):(TS=!1,e=VS(KS(n,o),KS(t,o),o),TS=!0,QS(e,i))},ZS.minus=ZS.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?tj(e,t):US(e,(t.s=-t.s,t))},ZS.modulo=ZS.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(CS+"NaN");return n.s?(TS=!1,e=VS(n,t,0,1).times(t),TS=!0,n.minus(e)):QS(new r(n),i)},ZS.naturalExponential=ZS.exp=function(){return WS(this)},ZS.naturalLogarithm=ZS.ln=function(){return KS(this)},ZS.negated=ZS.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},ZS.plus=ZS.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?US(e,t):tj(e,(t.s=-t.s,t))},ZS.precision=ZS.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(DS+t);if(e=YS(i)+1,n=(r=i.d.length-1)*$S+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},ZS.squareRoot=ZS.sqrt=function(){var t,e,n,r,i,o,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(CS+"NaN")}for(t=YS(c),TS=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=qS(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=IS((t+1)/2)-(t<0||t%2),r=new u(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new u(i.toString()),i=a=(n=u.precision)+3;;)if(r=(o=r).plus(VS(c,o,a+2)).times(.5),qS(o.d).slice(0,a)===(e=qS(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(QS(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=e)break;a+=4}return TS=!0,QS(r,n)},ZS.times=ZS.mul=function(t){var e,n,r,i,o,a,c,u,l,s=this,f=s.constructor,h=s.d,p=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,n=s.e+t.e,(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],r=a=u+l;r--;)o.push(0);for(r=l;--r>=0;){for(e=0,i=u+r;i>r;)c=o[i]+p[r]*h[i-r-1]+e,o[i--]=c%LS|0,e=c/LS|0;o[i]=(o[i]+e)%LS|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,TS?QS(t,f.precision):t},ZS.toDecimalPlaces=ZS.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(FS(t,0,_S),void 0===e?e=r.rounding:FS(e,0,8),QS(n,t+YS(n)+1,e))},ZS.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=ej(r,!0):(FS(t,0,_S),void 0===e?e=i.rounding:FS(e,0,8),n=ej(r=QS(new i(r),t+1,e),!0,t+1)),n},ZS.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?ej(i):(FS(t,0,_S),void 0===e?e=o.rounding:FS(e,0,8),n=ej((r=QS(new o(i),t+YS(i)+1,e)).abs(),!1,t+YS(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},ZS.toInteger=ZS.toint=function(){var t=this,e=t.constructor;return QS(new e(t),YS(t)+1,e.rounding)},ZS.toNumber=function(){return+this},ZS.toPower=ZS.pow=function(t){var e,n,r,i,o,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(ES);if(!(c=new u(c)).s){if(t.s<1)throw Error(CS+"Infinity");return c}if(c.eq(ES))return c;if(r=u.precision,t.eq(ES))return QS(c,r);if(a=(e=t.e)>=(n=t.d.length-1),o=c.s,a){if((n=l<0?-l:l)<=zS){for(i=new u(ES),e=Math.ceil(r/$S+4),TS=!1;n%2&&nj((i=i.times(c)).d,e),0!==(n=IS(n/2));)nj((c=c.times(c)).d,e);return TS=!0,t.s<0?new u(ES).div(i):QS(i,r)}}else if(o<0)throw Error(CS+"NaN");return o=o<0&&1&t.d[Math.max(e,n)]?-1:1,c.s=1,TS=!1,i=t.times(KS(c,r+12)),TS=!0,(i=WS(i)).s=o,i},ZS.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?r=ej(i,(n=YS(i))<=o.toExpNeg||n>=o.toExpPos):(FS(t,1,_S),void 0===e?e=o.rounding:FS(e,0,8),r=ej(i=QS(new o(i),t,e),t<=(n=YS(i))||n<=o.toExpNeg,t)),r},ZS.toSignificantDigits=ZS.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(FS(t,1,_S),void 0===e?e=n.rounding:FS(e,0,8)),QS(new n(this),t,e)},ZS.toString=ZS.valueOf=ZS.val=ZS.toJSON=ZS[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=YS(t),n=t.constructor;return ej(t,e<=n.toExpNeg||e>=n.toExpPos)};var VS=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%LS|0,r=n/LS|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*LS+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a){var c,u,l,s,f,h,p,d,y,v,g,m,b,w,x,O,S,j,A=r.constructor,M=r.s==i.s?1:-1,P=r.d,E=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(CS+"Division by zero");for(u=r.e-i.e,S=E.length,x=P.length,d=(p=new A(M)).d=[],l=0;E[l]==(P[l]||0);)++l;if(E[l]>(P[l]||0)&&--u,(m=null==o?o=A.precision:a?o+(YS(r)-YS(i))+1:o)<0)return new A(0);if(m=m/$S+2|0,l=0,1==S)for(s=0,E=E[0],m++;(l<x||s)&&m--;l++)b=s*LS+(P[l]||0),d[l]=b/E|0,s=b%E|0;else{for((s=LS/(E[0]+1)|0)>1&&(E=t(E,s),P=t(P,s),S=E.length,x=P.length),w=S,v=(y=P.slice(0,S)).length;v<S;)y[v++]=0;(j=E.slice()).unshift(0),O=E[0],E[1]>=LS/2&&++O;do{s=0,(c=e(E,y,S,v))<0?(g=y[0],S!=v&&(g=g*LS+(y[1]||0)),(s=g/O|0)>1?(s>=LS&&(s=LS-1),1==(c=e(f=t(E,s),y,h=f.length,v=y.length))&&(s--,n(f,S<h?j:E,h))):(0==s&&(c=s=1),f=E.slice()),(h=f.length)<v&&f.unshift(0),n(y,f,v),-1==c&&(c=e(E,y,S,v=y.length))<1&&(s++,n(y,S<v?j:E,v)),v=y.length):0===c&&(s++,y=[0]),d[l++]=s,c&&y[0]?y[v++]=P[w]||0:(y=[P[w]],v=1)}while((w++<x||void 0!==y[0])&&m--)}return d[0]||d.shift(),p.e=u,QS(p,a?o+YS(p)+1:o)}}();function WS(t,e){var n,r,i,o,a,c=0,u=0,l=t.constructor,s=l.precision;if(YS(t)>16)throw Error(NS+YS(t));if(!t.s)return new l(ES);for(null==e?(TS=!1,a=s):a=e,o=new l(.03125);t.abs().gte(.1);)t=t.times(o),u+=5;for(a+=Math.log(BS(2,u))/Math.LN10*2+5|0,n=r=i=new l(ES),l.precision=a;;){if(r=QS(r.times(t),a),n=n.times(++c),qS((o=i.plus(VS(r,n,a))).d).slice(0,a)===qS(i.d).slice(0,a)){for(;u--;)i=QS(i.times(i),a);return l.precision=s,null==e?(TS=!0,QS(i,s)):i}i=o}}function YS(t){for(var e=t.e*$S,n=t.d[0];n>=10;n/=10)e++;return e}function XS(t,e,n){if(e>t.LN10.sd())throw TS=!0,n&&(t.precision=n),Error(CS+"LN10 precision limit exceeded");return QS(new t(t.LN10),e)}function GS(t){for(var e="";t--;)e+="0";return e}function KS(t,e){var n,r,i,o,a,c,u,l,s,f=1,h=t,p=h.d,d=h.constructor,y=d.precision;if(h.s<1)throw Error(CS+(h.s?"NaN":"-Infinity"));if(h.eq(ES))return new d(0);if(null==e?(TS=!1,l=y):l=e,h.eq(10))return null==e&&(TS=!0),XS(d,l);if(l+=10,d.precision=l,r=(n=qS(p)).charAt(0),o=YS(h),!(Math.abs(o)<15e14))return u=XS(d,l+2,y).times(o+""),h=KS(new d(r+"."+n.slice(1)),l-10).plus(u),d.precision=y,null==e?(TS=!0,QS(h,y)):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=qS((h=h.times(t)).d)).charAt(0),f++;for(o=YS(h),r>1?(h=new d("0."+n),o++):h=new d(r+"."+n.slice(1)),c=a=h=VS(h.minus(ES),h.plus(ES),l),s=QS(h.times(h),l),i=3;;){if(a=QS(a.times(s),l),qS((u=c.plus(VS(a,new d(i),l))).d).slice(0,l)===qS(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(XS(d,l+2,y).times(o+""))),c=VS(c,new d(f),l),d.precision=y,null==e?(TS=!0,QS(c,y)):c;c=u,i+=2}}function JS(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=IS(n/$S),t.d=[],r=(n+1)%$S,n<0&&(r+=$S),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=$S;r<i;)t.d.push(+e.slice(r,r+=$S));e=e.slice(r),r=$S-e.length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),TS&&(t.e>HS||t.e<-HS))throw Error(NS+n)}else t.s=0,t.e=0,t.d=[0];return t}function QS(t,e,n){var r,i,o,a,c,u,l,s,f=t.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=$S,i=e,l=f[s=0];else{if((s=Math.ceil((r+1)/$S))>=(o=f.length))return t;for(l=o=f[s],a=1;o>=10;o/=10)a++;i=(r%=$S)-$S+a}if(void 0!==n&&(c=l/(o=BS(10,a-i-1))%10|0,u=e<0||void 0!==f[s+1]||l%o,u=n<4?(c||u)&&(0==n||n==(t.s<0?3:2)):c>5||5==c&&(4==n||u||6==n&&(r>0?i>0?l/BS(10,a-i):0:f[s-1])%10&1||n==(t.s<0?8:7))),e<1||!f[0])return u?(o=YS(t),f.length=1,e=e-o-1,f[0]=BS(10,($S-e%$S)%$S),t.e=IS(-e/$S)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==r?(f.length=s,o=1,s--):(f.length=s+1,o=BS(10,$S-r),f[s]=i>0?(l/BS(10,a-i)%BS(10,i)|0)*o:0),u)for(;;){if(0==s){(f[0]+=o)==LS&&(f[0]=1,++t.e);break}if(f[s]+=o,f[s]!=LS)break;f[s--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(TS&&(t.e>HS||t.e<-HS))throw Error(NS+YS(t));return t}function tj(t,e){var n,r,i,o,a,c,u,l,s,f,h=t.constructor,p=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),TS?QS(e,p):e;if(u=t.d,f=e.d,r=e.e,l=t.e,u=u.slice(),a=l-r){for((s=a<0)?(n=u,a=-a,c=f.length):(n=f,r=l,c=u.length),a>(i=Math.max(Math.ceil(p/$S),c)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((s=(i=u.length)<(c=f.length))&&(c=i),i=0;i<c;i++)if(u[i]!=f[i]){s=u[i]<f[i];break}a=0}for(s&&(n=u,u=f,f=n,e.s=-e.s),c=u.length,i=f.length-c;i>0;--i)u[c++]=0;for(i=f.length;i>a;){if(u[--i]<f[i]){for(o=i;o&&0===u[--o];)u[o]=LS-1;--u[o],u[i]+=LS}u[i]-=f[i]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--r;return u[0]?(e.d=u,e.e=r,TS?QS(e,p):e):new h(0)}function ej(t,e,n){var r,i=YS(t),o=qS(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+GS(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+GS(-i-1)+o,n&&(r=n-a)>0&&(o+=GS(r))):i>=a?(o+=GS(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+GS(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=GS(r))),t.s<0?"-"+o:o}function nj(t,e){if(t.length>e)return t.length=e,!0}function rj(t){if(!t||"object"!=typeof t)throw Error(CS+"Object expected");var e,n,r,i=["precision",1,_S,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(r=t[n=i[e]])){if(!(IS(r)===r&&r>=i[e+1]&&r<=i[e+2]))throw Error(DS+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(DS+n+": "+r);this[n]=new this(r)}return this}var ij=function t(e){var n,r,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(DS+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):JS(e,t.toString())}if("string"!=typeof t)throw Error(DS+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!RS.test(t))throw Error(DS+t);JS(e,t)}if(o.prototype=ZS,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=rj,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});ES=new ij(1);var oj=ij;function aj(t){return function(t){if(Array.isArray(t))return cj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return cj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cj(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var uj=function(t){return t},lj={"@@functional/placeholder":!0},sj=function(t){return t===lj},fj=function(t){return function e(){return 0===arguments.length||1===arguments.length&&sj(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},hj=function t(e,n){return 1===e?n:fj((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==lj})).length;return a>=e?n.apply(void 0,i):t(e-a,fj((function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var o=i.map((function(t){return sj(t)?e.shift():t}));return n.apply(void 0,aj(o).concat(e))})))}))},pj=function(t){return hj(t.length,t)},dj=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n},yj=pj((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),vj=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return uj;var r=e.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},gj=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},mj=function(t){var e=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e&&i.every((function(t,n){return t===e[n]}))?n:(e=i,n=t.apply(void 0,i))}};var bj=pj((function(t,e,n){var r=+t;return r+n*(+e-r)})),wj=pj((function(t,e,n){var r=e-+t;return(n-t)/(r=r||1/0)})),xj=pj((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))})),Oj={rangeStep:function(t,e,n){for(var r=new oj(t),i=0,o=[];r.lt(e)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new oj(t).abs().log(10).toNumber())+1},interpolateNumber:bj,uninterpolateNumber:wj,uninterpolateTruncation:xj};function Sj(t){return function(t){if(Array.isArray(t))return Mj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Aj(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||Aj(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Aj(t,e){if(t){if("string"==typeof t)return Mj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mj(t,e):void 0}}function Mj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pj(t){var e=jj(t,2),n=e[0],r=e[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function Ej(t,e,n){if(t.lte(0))return new oj(0);var r=Oj.getDigitCount(t.toNumber()),i=new oj(10).pow(r),o=t.div(i),a=1!==r?.05:.1,c=new oj(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?c:new oj(Math.ceil(c))}function kj(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new oj(0),tickMin:new oj(0),tickMax:new oj(0)};var o,a=Ej(new oj(e).sub(t).div(n-1),r,i);o=t<=0&&e>=0?new oj(0):(o=new oj(t).add(e).div(2)).sub(new oj(o).mod(a));var c=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new oj(e).sub(o).div(a).toNumber()),l=c+u+1;return l>n?kj(t,e,n,r,i+1):(l<n&&(u=e>0?u+(n-l):u,c=e>0?c:c+(n-l)),{step:a,tickMin:o.sub(new oj(c).mul(a)),tickMax:o.add(new oj(u).mul(a))})}var _j=mj((function(t){var e=jj(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=jj(Pj([n,r]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(Sj(dj(0,i-1).map((function(){return 1/0})))):[].concat(Sj(dj(0,i-1).map((function(){return-1/0}))),[l]);return n>r?gj(s):s}if(u===l)return function(t,e,n){var r=1,i=new oj(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new oj(10).pow(Oj.getDigitCount(t)-1),i=new oj(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new oj(Math.floor(t)))}else 0===t?i=new oj(Math.floor((e-1)/2)):n||(i=new oj(Math.floor(t)));var a=Math.floor((e-1)/2);return vj(yj((function(t){return i.add(new oj(t-a).mul(r)).toNumber()})),dj)(0,e)}(u,i,o);var f=kj(u,l,a,o),h=f.step,p=f.tickMin,d=f.tickMax,y=Oj.rangeStep(p,d.add(new oj(.1).mul(h)),h);return n>r?gj(y):y})),Tj=mj((function(t,e){var n=jj(t,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=jj(Pj([r,i]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var l=Math.max(e,2),s=Ej(new oj(u).sub(c).div(l-1),o,0),f=[].concat(Sj(Oj.rangeStep(new oj(c),new oj(u).sub(new oj(.99).mul(s)),s)),[u]);return r>i?gj(f):f})),Cj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Dj(){return Dj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Dj.apply(this,arguments)}function Nj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Ij(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ij(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ij(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Bj(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Rj(t){var e=t.offset,n=t.layout,r=t.width,i=t.dataKey,o=t.data,a=t.dataPointFormatter,c=t.xAxis,u=t.yAxis,l=Bj(t,Cj),s=cc(l),f=o.map((function(t){var o=a(t,i),l=o.x,f=o.y,h=o.value,p=o.errorVal;if(!p)return null;var d,y,v=[];if(Array.isArray(p)){var g=Nj(p,2);d=g[0],y=g[1]}else d=y=p;if("vertical"===n){var m=c.scale,b=f+e,w=b+r,x=b-r,O=m(h-d),S=m(h+y);v.push({x1:S,y1:w,x2:S,y2:x}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===n){var j=u.scale,A=l+e,M=A-r,P=A+r,E=j(h-d),k=j(h+y);v.push({x1:M,y1:k,x2:P,y2:k}),v.push({x1:A,y1:E,x2:A,y2:k}),v.push({x1:M,y1:E,x2:P,y2:E})}return B.createElement(mc,Dj({className:"recharts-errorBar",key:"bar-".concat(v.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},s),v.map((function(t){return B.createElement("line",Dj({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return B.createElement(mc,{className:"recharts-errorBars"},f)}function Lj(t){return Lj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lj(t)}function $j(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$j(Object(n),!0).forEach((function(e){Hj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$j(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hj(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Lj(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Lj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Lj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Rj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},Rj.displayName="ErrorBar";var Zj=function(t){var e,n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=rc(n,Pp);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(t,e){var n=e.item,r=e.props,i=r.sectors||r.data||[];return t.concat(i.map((function(t){return{type:a.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,n=e.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:Kj(e),value:i||r,payload:e.props}})),zj(zj(zj({},a.props),Pp.getWithHeight(a,i)),{},{payload:e,item:a})):null};function Uj(t){return Uj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uj(t)}function Fj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fj(Object(n),!0).forEach((function(e){Vj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vj(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Uj(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Uj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Uj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wj(t){return function(t){if(Array.isArray(t))return Yj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Yj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yj(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xj(t,e,n){return ha(t)||ha(e)?n:Ca(e)?fa(t,e,n):wi(e)?e(t):n}function Gj(t,e,n,r){var i=MS(t,(function(t){return Xj(t,e)}));if("number"===n){var o=i.filter((function(t){return Ta(t)||parseFloat(t)}));return o.length?[bS(o),dS(o)]:[1/0,-1/0]}return(r?i.filter((function(t){return!ha(t)})):i).map((function(t){return Ca(t)||t instanceof Date?t:""}))}var Kj=function(t){var e,n=t.type.displayName,r=t.props,i=r.stroke,o=r.fill;switch(n){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},Jj=function(t,e,n,r,i){var o=nc(e.props.children,Rj).filter((function(t){return function(t,e,n){return!!ha(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===n?"xAxis"===e:"y"!==n||"yAxis"===e)}(r,i,t.props.direction)}));if(o&&o.length){var a=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=Xj(e,n,0),i=Array.isArray(r)?[bS(r),dS(r)]:[r,r],o=a.reduce((function(t,n){var r=Xj(e,n,0),o=i[0]-Math.abs(Array.isArray(r)?r[0]:r),a=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},Qj=function(t,e,n,r,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===n&&o&&Jj(t,e,o,r)||Gj(t,o,n,i)}));if("number"===n)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(t,e){for(var n=0,r=e.length;n<r;n++)a[e[n]]||(a[e[n]]=!0,t.push(e[n]));return t}),[])},tA=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},eA=function(t,e,n,r){if(r)return t.map((function(t){return t.coordinate}));var i,o,a=t.map((function(t){return t.coordinate===e&&(i=!0),t.coordinate===n&&(o=!0),t.coordinate}));return i||a.push(e),o||a.push(n),a},nA=function(t,e,n){if(!t)return null;var r=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,c="scaleBand"===t.realScaleType?r.bandwidth()/2:2,u=(e||n)&&"category"===o&&r.bandwidth?r.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*ka(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=i?i.indexOf(t):t;return{coordinate:r(e)+u,value:t,offset:u}})).filter((function(t){return!Ea(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:r(t)+u,value:t,index:e,offset:u}})):r.ticks&&!n?r.ticks(t.tickCount).map((function(t){return{coordinate:r(t)+u,value:t,offset:u}})):r.domain().map((function(t,e){return{coordinate:r(t)+u,value:i?i[t]:t,index:e,offset:u}}))},rA=new WeakMap,iA=function(t,e){if("function"!=typeof e)return t;rA.has(t)||rA.set(t,new WeakMap);var n=rA.get(t);if(n.has(e))return n.get(e);var r=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return n.set(e,r),r},oA=1e-4,aA={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0,a=0;a<e;++a){var c=Ea(t[a][n][1])?t[a][n][0]:t[a][n][1];c>=0?(t[a][n][0]=i,t[a][n][1]=i+c,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+c,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}Gu(t,e)}},none:Gu,silhouette:function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,c=0;a<n;++a)c+=t[a][r][1]||0;i[r][1]+=i[r][0]=-c/2}Gu(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var c=0,u=0,l=0;c<i;++c){for(var s=t[e[c]],f=s[a][1]||0,h=(f-(s[a-1][1]||0))/2,p=0;p<c;++p){var d=t[e[p]];h+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,l+=h*f}n[a-1][1]+=n[a-1][0]=o,u&&(o-=l/u)}n[a-1][1]+=n[a-1][0]=o,Gu(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0;o<e;++o){var a=Ea(t[o][n][1])?t[o][n][0]:t[o][n][1];a>=0?(t[o][n][0]=i,t[o][n][1]=i+a,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}}},cA=function(t,e,n){var r=e.map((function(t){return t.props.dataKey})),i=aA[n],o=function(){var t=Gc([]),e=Ku,n=Gu,r=Ju;function i(i){var o,a,c=Array.from(t.apply(this,arguments),Qu),u=c.length,l=-1;for(const t of i)for(o=0,++l;o<u;++o)(c[o][l]=[0,+r(t,c[o].key,l,i)]).data=t;for(o=0,a=lu(e(c));o<u;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:Gc(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Gc(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Ku:"function"==typeof t?t:Gc(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Gu:t,i):n},i}().keys(r).value((function(t,e){return+Xj(t,e,0)})).order(Ku).offset(i);return o(t)},uA=function(t){var e=t.axis,n=t.ticks,r=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!ha(i[e.dataKey])){var c=La(n,"value",i[e.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=Xj(i,ha(a)?e.dataKey:a);return ha(u)?null:e.scale(u)},lA=function(t){var e=t.axis,n=t.ticks,r=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return n[a]?n[a].coordinate+r:null;var c=Xj(o,e.dataKey,e.domain[a]);return ha(c)?null:e.scale(c)-i/2+r},sA=function(t,e,n){return Object.keys(t).reduce((function(r,i){var o=t[i].stackedData.reduce((function(t,r){var i=r.slice(e,n+1).reduce((function(t,e){return[bS(e.concat([t[0]]).filter(Ta)),dS(e.concat([t[1]]).filter(Ta))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},fA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hA=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,pA=function(t,e,n){if(wi(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if(Ta(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(fA.test(t[0])){var i=+fA.exec(t[0])[1];r[0]=e[0]-i}else wi(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if(Ta(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(hA.test(t[1])){var o=+hA.exec(t[1])[1];r[1]=e[1]+o}else wi(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},dA=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var i=Md(e,(function(t){return t.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var u=i[a],l=i[a-1];o=Math.min((u.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},yA=function(t,e,n){return t&&t.length?kS(t,fa(n,"type.defaultProps.domain"))?e:t:e},vA=function(t,e){var n=t.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,c=n.tooltipType,u=n.chartType;return qj(qj({},cc(t)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:Kj(t),value:Xj(e,r),type:c,payload:e,chartType:u})};function gA(t){return gA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gA(t)}function mA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function bA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?mA(Object(n),!0).forEach((function(e){wA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):mA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function wA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==gA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==gA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===gA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xA=Math.PI/180,OA=function(t){return 180*t/Math.PI},SA=function(t,e,n,r){return{x:t+Math.cos(-xA*r)*n,y:e+Math.sin(-xA*r)*n}},jA=function(t,e){var n=t.x,r=t.y,i=e.cx,o=e.cy,a=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var c=(n-i)/a,u=Math.acos(c);return r>o&&(u=2*Math.PI-u),{radius:a,angle:OA(u),angleInRadian:u}},AA=function(t,e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return t+360*Math.min(i,o)},MA=function(t,e){var n=t.x,r=t.y,i=jA({x:n,y:r},e),o=i.radius,a=i.angle,c=e.innerRadius,u=e.outerRadius;if(o<c||o>u)return!1;if(0===o)return!0;var l,s=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:e-360*o,endAngle:n-360*o}}(e),f=s.startAngle,h=s.endAngle,p=a;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;l=p>=h&&p<=f}return l?bA(bA({},e),{},{radius:o,angle:AA(p,e)}):null};function PA(t){return PA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},PA(t)}var EA=["offset"];function kA(t){return function(t){if(Array.isArray(t))return _A(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _A(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _A(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function TA(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function CA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function DA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?CA(Object(n),!0).forEach((function(e){NA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function NA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==PA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==PA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===PA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function IA(){return IA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},IA.apply(this,arguments)}var BA=function(t){var e=t.value,n=t.formatter,r=ha(t.children)?e:t.children;return wi(n)?n(r):r},RA=function(t,e,n){var r,i,o=t.position,a=t.viewBox,c=t.offset,u=t.className,l=a,s=l.cx,f=l.cy,h=l.innerRadius,p=l.outerRadius,d=l.startAngle,y=l.endAngle,v=l.clockWise,g=(h+p)/2,m=function(t,e){return ka(e-t)*Math.min(Math.abs(e-t),360)}(d,y),b=m>=0?1:-1;"insideStart"===o?(r=d+b*c,i=v):"insideEnd"===o?(r=y-b*c,i=!v):"end"===o&&(r=y+b*c,i=v),i=m<=0?i:!i;var w=SA(s,f,g,r),x=SA(s,f,g,r+359*(i?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),S=ha(t.id)?Na("recharts-radial-line-"):t.id;return B.createElement("text",IA({},n,{dominantBaseline:"central",className:Hr("recharts-radial-bar-label",u)}),B.createElement("defs",null,B.createElement("path",{id:S,d:O})),B.createElement("textPath",{xlinkHref:"#".concat(S)},e))},LA=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e,o=i.cx,a=i.cy,c=i.innerRadius,u=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===r){var s=SA(o,a,u+n,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var h=SA(o,a,(c+u)/2,l);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}},$A=function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,i=t.position,o=e,a=o.x,c=o.y,u=o.width,l=o.height,s=l>=0?1:-1,f=s*r,h=s>0?"end":"start",p=s>0?"start":"end",d=u>=0?1:-1,y=d*r,v=d>0?"end":"start",g=d>0?"start":"end";if("top"===i)return DA(DA({},{x:a+u/2,y:c-s*r,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(c-n.y,0),width:u}:{});if("bottom"===i)return DA(DA({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(c+l),0),width:u}:{});if("left"===i){var m={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return DA(DA({},m),n?{width:Math.max(m.x-n.x,0),height:l}:{})}if("right"===i){var b={x:a+u+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return DA(DA({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:u,height:l}:{};return"insideLeft"===i?DA({x:a+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===i?DA({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?DA({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===i?DA({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:h},w):"insideTopLeft"===i?DA({x:a+y,y:c+f,textAnchor:g,verticalAnchor:p},w):"insideTopRight"===i?DA({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===i?DA({x:a+y,y:c+l-f,textAnchor:g,verticalAnchor:h},w):"insideBottomRight"===i?DA({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:h},w):yi(i)&&(Ta(i.x)||_a(i.x))&&(Ta(i.y)||_a(i.y))?DA({x:a+Ia(i.x,u),y:c+Ia(i.y,l),textAnchor:"end",verticalAnchor:"end"},w):DA({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},zA=function(t){return"cx"in t&&Ta(t.cx)};function HA(t){var e,n=t.offset,r=DA({offset:void 0===n?5:n},TA(t,EA)),i=r.viewBox,o=r.position,a=r.value,c=r.children,u=r.content,l=r.className,s=void 0===l?"":l,f=r.textBreakAll;if(!i||ha(a)&&ha(c)&&!R(u)&&!wi(u))return null;if(R(u))return z(u,r);if(wi(u)){if(R(e=Y(u,r)))return e}else e=BA(r);var h=zA(i),p=cc(r,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return RA(r,e,p);var d=h?LA(r):$A(r);return B.createElement(jm,IA({className:Hr("recharts-label",s)},p,d,{breakAll:f}),e)}HA.displayName="Label";var ZA=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,h=t.top,p=t.left,d=t.width,y=t.height,v=t.clockWise,g=t.labelViewBox;if(g)return g;if(Ta(d)&&Ta(y)){if(Ta(s)&&Ta(f))return{x:s,y:f,width:d,height:y};if(Ta(h)&&Ta(p))return{x:h,y:p,width:d,height:y}}return Ta(s)&&Ta(f)?{x:s,y:f,width:0,height:0}:Ta(e)&&Ta(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};HA.parseViewBox=ZA,HA.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=ZA(t),o=nc(r,HA).map((function(t,n){return z(t,{viewBox:e||i,key:"label-".concat(n)})}));if(!n)return o;var a=function(t,e){return t?!0===t?B.createElement(HA,{key:"label-implicit",viewBox:e}):Ca(t)?B.createElement(HA,{key:"label-implicit",viewBox:e,value:t}):R(t)?t.type===HA?z(t,{key:"label-implicit",viewBox:e}):B.createElement(HA,{key:"label-implicit",content:t,viewBox:e}):wi(t)?B.createElement(HA,{key:"label-implicit",content:t,viewBox:e}):yi(t)?B.createElement(HA,IA({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat(kA(o))};var UA=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},FA=Pe(UA);function qA(t){return qA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qA(t)}var VA=["valueAccessor"],WA=["data","dataKey","clockWise","id","textBreakAll"];function YA(t){return function(t){if(Array.isArray(t))return XA(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return XA(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XA(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function GA(){return GA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},GA.apply(this,arguments)}function KA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function JA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?KA(Object(n),!0).forEach((function(e){QA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):KA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function QA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==qA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==qA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===qA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tM(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var eM=function(t){return Array.isArray(t.value)?FA(t.value):t.value};function nM(t){var e=t.valueAccessor,n=void 0===e?eM:e,r=tM(t,VA),i=r.data,o=r.dataKey,a=r.clockWise,c=r.id,u=r.textBreakAll,l=tM(r,WA);return i&&i.length?B.createElement(mc,{className:"recharts-label-list"},i.map((function(t,e){var r=ha(o)?n(t,e):Xj(t&&t.payload,o),i=ha(c)?{}:{id:"".concat(c,"-").concat(e)};return B.createElement(HA,GA({},cc(t,!0),l,i,{parentViewBox:t.parentViewBox,value:r,textBreakAll:u,viewBox:HA.parseViewBox(ha(a)?t:JA(JA({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}function rM(t){return rM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rM(t)}function iM(){return iM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},iM.apply(this,arguments)}function oM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function aM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oM(Object(n),!0).forEach((function(e){cM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cM(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==rM(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==rM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rM(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}nM.displayName="LabelList",nM.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=nc(t.children,nM).map((function(t,n){return z(t,{data:e,key:"labelList-".concat(n)})}));return n?[function(t,e){return t?!0===t?B.createElement(nM,{key:"labelList-implicit",data:e}):B.isValidElement(t)||wi(t)?B.createElement(nM,{key:"labelList-implicit",data:e,content:t}):yi(t)?B.createElement(nM,GA({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(YA(r)):r};var uM=function(t){var e=t.cx,n=t.cy,r=t.radius,i=t.angle,o=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+r,s=Math.asin(c/l)/xA,f=u?i:i+o*s,h=u?i-o*s:i;return{center:SA(e,n,l,f),circleTangency:SA(e,n,r,f),lineTangency:SA(e,n,l*Math.cos(s*xA),h),theta:s}},lM=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return ka(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+a,u=SA(e,n,i,o),l=SA(e,n,i,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=SA(e,n,r,o),h=SA(e,n,r,c);s+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(n," Z");return s},sM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},fM=function(t){var e=aM(aM({},sM),t),n=e.cx,r=e.cy,i=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,u=e.cornerIsExternal,l=e.startAngle,s=e.endAngle,f=e.className;if(o<i||l===s)return null;var h,p=Hr("recharts-sector",f),d=o-i,y=Ia(a,d,0,!0);return h=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=ka(l-u),f=uM({cx:e,cy:n,radius:i,angle:u,sign:s,cornerRadius:o,cornerIsExternal:c}),h=f.circleTangency,p=f.lineTangency,d=f.theta,y=uM({cx:e,cy:n,radius:i,angle:l,sign:-s,cornerRadius:o,cornerIsExternal:c}),v=y.circleTangency,g=y.lineTangency,m=y.theta,b=c?Math.abs(u-l):Math.abs(u-l)-d-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):lM({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(g.x,",").concat(g.y,"\n ");if(r>0){var x=uM({cx:e,cy:n,radius:r,angle:u,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,j=x.theta,A=uM({cx:e,cy:n,radius:r,angle:l,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),M=A.circleTangency,P=A.lineTangency,E=A.theta,k=c?Math.abs(u-l):Math.abs(u-l)-j-E;if(k<0&&0===o)return"".concat(w,"L").concat(e,",").concat(n,"Z");w+="L".concat(P.x,",").concat(P.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(M.x,",").concat(M.y,"\n A").concat(r,",").concat(r,",0,").concat(+(k>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(e,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,d/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:s}):lM({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:s}),B.createElement("path",iM({},cc(e,!0),{className:p,d:h,role:"img"}))};function hM(t){return hM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hM(t)}function pM(){return pM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},pM.apply(this,arguments)}function dM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dM(Object(n),!0).forEach((function(e){vM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vM(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==hM(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==hM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hM(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gM={curveBasisClosed:function(t){return new Ru(t)},curveBasisOpen:function(t){return new Lu(t)},curveBasis:function(t){return new Bu(t)},curveBumpX:function(t){return new vu(t,!0)},curveBumpY:function(t){return new vu(t,!1)},curveLinearClosed:function(t){return new $u(t)},curveLinear:fu,curveMonotoneX:function(t){return new Fu(t)},curveMonotoneY:function(t){return new qu(t)},curveNatural:function(t){return new Wu(t)},curveStep:function(t){return new Xu(t,.5)},curveStepAfter:function(t){return new Xu(t,1)},curveStepBefore:function(t){return new Xu(t,0)}},mM=function(t){return t.x===+t.x&&t.y===+t.y},bM=function(t){return t.x},wM=function(t){return t.y},xM=function(t){var e,n=t.type,r=void 0===n?"linear":n,i=t.points,o=void 0===i?[]:i,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(wi(t))return t;var n="curve".concat(Xc(t));return"curveMonotone"!==n&&"curveBump"!==n||!e?gM[n]||fu:gM["".concat(n).concat("vertical"===e?"Y":"X")]}(r,c),f=l?o.filter((function(t){return mM(t)})):o;if(Array.isArray(a)){var h=l?a.filter((function(t){return mM(t)})):a,p=f.map((function(t,e){return yM(yM({},t),{},{base:h[e]})}));return(e="vertical"===c?yu().y(wM).x1(bM).x0((function(t){return t.base.x})):yu().x(bM).y1(wM).y0((function(t){return t.base.y}))).defined(mM).curve(s),e(p)}return(e="vertical"===c&&Ta(a)?yu().y(wM).x1(bM).x0(a):Ta(a)?yu().x(bM).y1(wM).y0(a):du().x(bM).y(wM)).defined(mM).curve(s),e(f)},OM=function(t){var e=t.className,n=t.points,r=t.path,i=t.pathRef;if(!(n&&n.length||r))return null;var o=n&&n.length?xM(t):r;return B.createElement("path",pM({},cc(t),qa(t),{className:Hr("recharts-curve",e),d:o,ref:i}))};function SM(t){return SM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},SM(t)}function jM(){return jM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},jM.apply(this,arguments)}function AM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return MM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MM(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function MM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function PM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function EM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?PM(Object(n),!0).forEach((function(e){kM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):PM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function kM(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==SM(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==SM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===SM(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _M=function(t,e,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),c=r>=0?1:-1,u=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),o+="L ".concat(t+n-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+n,",").concat(e+c*s[1])),o+="L ".concat(t+n,",").concat(e+r-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+n-u*s[2],",").concat(e+r)),o+="L ".concat(t+u*s[3],",").concat(e+r),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+r-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);o="M ".concat(t,",").concat(e+c*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+u*h,",").concat(e,"\n L ").concat(t+n-u*h,",").concat(e,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+n,",").concat(e+c*h,"\n L ").concat(t+n,",").concat(e+r-c*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+n-u*h,",").concat(e+r,"\n L ").concat(t+u*h,",").concat(e+r,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t,",").concat(e+r-c*h," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},TM=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(i,i+a),l=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return n>=u&&n<=l&&r>=s&&r<=f}return!1},CM={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},DM=function(t){var e=EM(EM({},CM),t),n=Z(),r=AM(F(-1),2),i=r[0],o=r[1];V((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.width,l=e.height,s=e.radius,f=e.className,h=e.animationEasing,p=e.animationDuration,d=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var g=Hr("recharts-rectangle",f);return v?B.createElement(Iv,{canBegin:i>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:p,animationEasing:h,isActive:v},(function(t){var r=t.width,o=t.height,a=t.x,c=t.y;return B.createElement(Iv,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:y,easing:h},B.createElement("path",jM({},cc(e,!0),{className:g,d:_M(a,c,r,o,s),ref:n})))})):B.createElement("path",jM({},cc(e,!0),{className:g,d:_M(a,c,u,l,s)}))};function NM(){return NM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},NM.apply(this,arguments)}var IM=function(t){var e=t.cx,n=t.cy,r=t.r,i=Hr("recharts-dot",t.className);return e===+e&&n===+n&&r===+r?B.createElement("circle",NM({},cc(t),qa(t),{className:i,cx:e,cy:n,r:r})):null};function BM(t){return BM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},BM(t)}var RM=["x","y","top","left","width","height","className"];function LM(){return LM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},LM.apply(this,arguments)}function $M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zM(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==BM(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==BM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===BM(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function HM(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var ZM=function(t,e,n,r,i,o){return"M".concat(t,",").concat(i,"v").concat(r,"M").concat(o,",").concat(e,"h").concat(n)},UM=function(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.top,a=void 0===o?0:o,c=t.left,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,h=void 0===f?0:f,p=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$M(Object(n),!0).forEach((function(e){zM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({x:n,y:i,top:a,left:u,width:s,height:h},HM(t,RM));return Ta(n)&&Ta(i)&&Ta(s)&&Ta(h)&&Ta(a)&&Ta(u)?B.createElement("path",LM({},cc(d,!0),{className:Hr("recharts-cross",p),d:ZM(n,i,s,h,a,u)})):null},FM=Ys(Object.getPrototypeOf,Object),qM=ii,VM=FM,WM=oi,YM=Function.prototype,XM=Object.prototype,GM=YM.toString,KM=XM.hasOwnProperty,JM=GM.call(Object);var QM=Pe((function(t){if(!WM(t)||"[object Object]"!=qM(t))return!1;var e=VM(t);if(null===e)return!0;var n=KM.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&GM.call(n)==JM})),tP=ii,eP=oi;var nP=Pe((function(t){return!0===t||!1===t||eP(t)&&"[object Boolean]"==tP(t)}));function rP(t){return rP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rP(t)}function iP(){return iP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},iP.apply(this,arguments)}function oP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return aP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return aP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function aP(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function cP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function uP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cP(Object(n),!0).forEach((function(e){lP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==rP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==rP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sP=function(t,e,n,r,i){var o,a=n-r;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+n,",").concat(e),o+="L ".concat(t+n-a/2,",").concat(e+i),o+="L ".concat(t+n-a/2-r,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},fP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},hP=function(t){var e=uP(uP({},fP),t),n=Z(),r=oP(F(-1),2),i=r[0],o=r[1];V((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,h=e.animationEasing,p=e.animationDuration,d=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var v=Hr("recharts-trapezoid",f);return y?B.createElement(Iv,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:p,animationEasing:h,isActive:y},(function(t){var r=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return B.createElement(Iv,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:h},B.createElement("path",iP({},cc(e,!0),{className:v,d:sP(c,u,r,o,a),ref:n})))})):B.createElement("g",null,B.createElement("path",iP({},cc(e,!0),{className:v,d:sP(a,c,u,l,s)})))},pP=["option","shapeType","propTransformer","activeClassName","isActive"];function dP(t){return dP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dP(t)}function yP(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function vP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vP(Object(n),!0).forEach((function(e){mP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==dP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==dP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===dP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bP(t,e){return gP(gP({},e),t)}function wP(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return B.createElement(DM,n);case"trapezoid":return B.createElement(hP,n);case"sector":return B.createElement(fM,n);case"symbols":if(function(t,e){return"symbols"===t}(e))return B.createElement(ll,n);break;default:return null}}function xP(t){var e,n=t.option,r=t.shapeType,i=t.propTransformer,o=void 0===i?bP:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=yP(t,pP);if(R(n))e=z(n,gP(gP({},l),function(t){return R(t)?t.props:t}(n)));else if(wi(n))e=n(l);else if(QM(n)&&!nP(n)){var s=o(n,l);e=B.createElement(wP,{shapeType:r,elementProps:s})}else{var f=l;e=B.createElement(wP,{shapeType:r,elementProps:f})}return u?B.createElement(mc,{className:c},e):e}function OP(t,e){return null!=e&&"trapezoids"in t.props}function SP(t,e){return null!=e&&"sectors"in t.props}function jP(t,e){return null!=e&&"points"in t.props}function AP(t,e){var n,r,i=t.x===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.x)||t.x===e.x,o=t.y===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.y)||t.y===e.y;return i&&o}function MP(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function PP(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}function EP(t){var e=t.activeTooltipItem,n=t.graphicalItem,r=t.itemData,i=function(t,e){var n;return OP(t,e)?n="trapezoids":SP(t,e)?n="sectors":jP(t,e)&&(n="points"),n}(n,e),o=function(t,e){var n,r;return OP(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:SP(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:jP(t,e)?e.payload:{}}(n,e),a=r.filter((function(t,r){var a=kS(o,t),c=n.props[i].filter((function(t){var r=function(t,e){var n;return OP(t,e)?n=AP:SP(t,e)?n=MP:jP(t,e)&&(n=PP),n}(n,e);return r(t,e)})),u=n.props[i].indexOf(c[c.length-1]);return a&&r===u}));return r.indexOf(a[a.length-1])}var kP=Math.ceil,_P=Math.max;var TP=Ag,CP=1/0;var DP=function(t){return t?(t=TP(t))===CP||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},NP=function(t,e,n,r){for(var i=-1,o=_P(kP((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a},IP=Od,BP=DP;var RP=Pe(function(t){return function(e,n,r){return r&&"number"!=typeof r&&IP(e,n,r)&&(n=r=void 0),e=BP(e),void 0===n?(n=e,e=0):n=BP(n),r=void 0===r?e<n?1:-1:BP(r),NP(e,n,r,t)}}());function LP(t){return LP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},LP(t)}function $P(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$P(Object(n),!0).forEach((function(e){HP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$P(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function HP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==LP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==LP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===LP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ZP=["Webkit","Moz","O","ms"];function UP(t){return UP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},UP(t)}function FP(){return FP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},FP.apply(this,arguments)}function qP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function VP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qP(Object(n),!0).forEach((function(e){JP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function WP(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,QP(r.key),r)}}function YP(t,e){return YP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},YP(t,e)}function XP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=KP(t);if(e){var i=KP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===UP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return GP(t)}(this,n)}}function GP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function KP(t){return KP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},KP(t)}function JP(t,e,n){return(e=QP(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function QP(t){var e=function(t,e){if("object"!==UP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==UP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===UP(e)?e:String(e)}var tE=function(t){return t.changedTouches&&!!t.changedTouches.length},eE=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&YP(t,e)}(o,$);var e,n,r,i=XP(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),JP(GP(e=i.call(this,t)),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),JP(GP(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),JP(GP(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=e.props,n=t.endIndex,r=t.onDragEnd,i=t.startIndex;null==r||r({endIndex:n,startIndex:i})})),e.detachDragEndListener()})),JP(GP(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),JP(GP(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),JP(GP(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),JP(GP(e),"handleSlideDragStart",(function(t){var n=tE(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(GP(e),"startX"),endX:e.handleTravellerDragStart.bind(GP(e),"endX")},e.state={},e}return e=o,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(e,n),l=Math.max(e,n),s=o.getIndexInRange(r,u),f=o.getIndexInRange(r,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=Xj(n[t],i,t);return wi(r)?r(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,u=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,h=t.pageX-n;h>0?h=Math.min(h,a+c-u-i,a+c-u-r):h<0&&(h=Math.max(h,a-r,a-i));var p=this.getIndex({startX:r+h,endX:i+h});p.startIndex===l&&p.endIndex===s||!f||f(p),this.setState({startX:r+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=tE(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,c=this.state[i],u=this.props,l=u.x,s=u.width,f=u.travellerWidth,h=u.onChange,p=u.gap,d=u.data,y={startX:this.state.startX,endX:this.state.endX},v=t.pageX-r;v>0?v=Math.min(v,l+s-f-c):v<0&&(v=Math.max(v,l-c)),y[i]=c+v;var g=this.getIndex(y),m=g.startIndex,b=g.endIndex;this.setState((JP(e={},i,c+v),JP(e,"brushMoveStartX",t.pageX),e),(function(){var t;h&&(t=d.length-1,("startX"===i&&(o>a?m%p==0:b%p==0)||o<a&&b===t||"endX"===i&&(o>a?b%p==0:m%p==0)||o>a&&b===t)&&h(g))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var n=this,r=this.state,i=r.scaleValues,o=r.startX,a=r.endX,c=this.state[e],u=i.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(JP({},e,s),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.fill,a=t.stroke;return B.createElement("rect",{stroke:a,fill:o,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,u=L.only(a);return u?B.cloneElement(u,{x:e,y:n,width:r,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,e){var n=this,r=this.props,i=r.y,a=r.travellerWidth,c=r.height,u=r.traveller,l=r.ariaLabel,s=r.data,f=r.startIndex,h=r.endIndex,p=Math.max(t,this.props.x),d=VP(VP({},cc(this.props)),{},{x:p,y:i,width:a,height:c}),y=l||"Min value: ".concat(s[f].name,", Max value: ").concat(s[h].name);return B.createElement(mc,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},o.renderTraveller(u,d))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,o=n.stroke,a=n.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return B.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:r,width:u,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return B.createElement(mc,{className:"recharts-brush-texts"},B.createElement(jm,FP({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+i/2},s),this.getTextOfTick(e)),B.createElement(jm,FP({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:r+i/2},s),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,o=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,h=l.isTextActive,p=l.isSlideMoving,d=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!Ta(i)||!Ta(o)||!Ta(a)||!Ta(c)||a<=0||c<=0)return null;var v=Hr("recharts-brush",n),g=1===B.Children.count(r),m=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),r=ZP.reduce((function(t,r){return zP(zP({},t),{},HP({},r+n,e))}),{});return r[t]=e,r}("userSelect","none");return B.createElement(mc,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(h||p||d||y||u)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.stroke,a=Math.floor(n+i/2)-1;return B.createElement(B.Fragment,null,B.createElement("rect",{x:e,y:n,width:r,height:i,fill:o,stroke:"none"}),B.createElement("line",{x1:e+1,y1:a,x2:e+r-1,y2:a,fill:"none",stroke:"#fff"}),B.createElement("line",{x1:e+1,y1:a+2,x2:e+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return B.isValidElement(t)?B.cloneElement(t,e):wi(t)?t(e):o.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return VP({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(t){var e=t.data,n=t.startIndex,r=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=tb().domain(RP(0,c)).range([i,i+o-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(r),scale:u,scaleValues:l}}({data:n,width:r,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+r-o]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i}return e>=t[r]?r:n}}],n&&WP(e.prototype,n),r&&WP(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();JP(eE,"displayName","Brush"),JP(eE,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var nE=$p;var rE=Ll,iE=Uh,oE=function(t,e){var n;return nE(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n},aE=Zr,cE=Od;var uE=Pe((function(t,e,n){var r=aE(t)?rE:oE;return n&&cE(t,e,n)&&(e=void 0),r(t,iE(e))})),lE=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},sE=ud;var fE=function(t,e,n){"__proto__"==e&&sE?sE(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},hE=fE,pE=Rp,dE=Uh;var yE=function(t,e){var n={};return e=dE(e),pE(t,(function(t,r,i){hE(n,r,e(t,r,i))})),n},vE=Pe(yE);var gE=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0},mE=$p;var bE=gE,wE=function(t,e){var n=!0;return mE(t,(function(t,r,i){return n=!!e(t,r,i)})),n},xE=Uh,OE=Zr,SE=Od;var jE=Pe((function(t,e,n){var r=OE(t)?bE:wE;return n&&SE(t,e,n)&&(e=void 0),r(t,xE(e))}));function AE(t){return AE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AE(t)}var ME=["x","y"];function PE(){return PE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},PE.apply(this,arguments)}function EE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?EE(Object(n),!0).forEach((function(e){_E(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):EE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _E(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==AE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==AE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===AE(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function TE(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function CE(t,e){var n=t.x,r=t.y,i=TE(t,ME),o="".concat(n),a=parseInt(o,10),c="".concat(r),u=parseInt(c,10),l="".concat(e.height||i.height),s=parseInt(l,10),f="".concat(e.width||i.width),h=parseInt(f,10);return kE(kE(kE(kE(kE({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:h,name:e.name,radius:e.radius})}function DE(t){return B.createElement(xP,PE({shapeType:"rectangle",propTransformer:CE,activeClassName:"recharts-active-bar"},t))}var NE=["value","background"];function IE(t){return IE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},IE(t)}function BE(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function RE(){return RE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},RE.apply(this,arguments)}function LE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $E(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?LE(Object(n),!0).forEach((function(e){qE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):LE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zE(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,VE(r.key),r)}}function HE(t,e){return HE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},HE(t,e)}function ZE(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=FE(t);if(e){var i=FE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===IE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return UE(t)}(this,n)}}function UE(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FE(t){return FE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},FE(t)}function qE(t,e,n){return(e=VE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VE(t){var e=function(t,e){if("object"!==IE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==IE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===IE(e)?e:String(e)}var WE=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&HE(t,e)}(o,$);var e,n,r,i=ZE(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return qE(UE(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),qE(UE(t),"id",Na("recharts-bar-")),qE(UE(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),qE(UE(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return e=o,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props,r=n.shape,i=n.dataKey,o=n.activeIndex,a=n.activeBar,c=cc(this.props);return t&&t.map((function(t,n){var u=n===o,l=u?a:r,s=$E($E($E({},c),t),{},{isActive:u,option:l,index:n,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return B.createElement(mc,RE({className:"recharts-bar-rectangle"},Va(e.props,t,n),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),B.createElement(DE,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,n=e.data,r=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return B.createElement(Iv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=n.map((function(t,e){var n=l&&l[e];if(n){var o=Ra(n.x,t.x),a=Ra(n.y,t.y),c=Ra(n.width,t.width),u=Ra(n.height,t.height);return $E($E({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===r){var s=Ra(0,t.height)(i);return $E($E({},t),{},{y:t.y+t.height-s,height:s})}var f=Ra(0,t.width)(i);return $E($E({},t),{},{width:f})}));return B.createElement(mc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&kS(r,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,n=e.data,r=e.dataKey,i=e.activeIndex,o=cc(this.props.background);return n.map((function(e,n){e.value;var a=e.background,c=BE(e,NE);if(!a)return null;var u=$E($E($E($E($E({},c),{},{fill:"#eee"},a),o),Va(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return B.createElement(DE,RE({option:t.props.background,isActive:n===i},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,o=n.yAxis,a=n.layout,c=nc(n.children,Rj);if(!c)return null;var u="vertical"===a?r[0].height/2:r[0].width/2,l=function(t,e){var n=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:n,errorVal:Xj(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return B.createElement(mc,s,c.map((function(t){return B.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:r,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,h=t.id;if(e||!n||!n.length)return null;var p=this.state.isAnimationFinished,d=Hr("recharts-bar",r),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,g=y||v,m=ha(h)?this.id:h;return B.createElement(mc,{className:d},y||v?B.createElement("defs",null,B.createElement("clipPath",{id:"clipPath-".concat(m)},B.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,B.createElement(mc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||p)&&nM.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&zE(e.prototype,n),r&&zE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();function YE(t){return YE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},YE(t)}function XE(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,QE(r.key),r)}}function GE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function KE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?GE(Object(n),!0).forEach((function(e){JE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):GE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function JE(t,e,n){return(e=QE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function QE(t){var e=function(t,e){if("object"!==YE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==YE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===YE(e)?e:String(e)}qE(WE,"displayName","Bar"),qE(WE,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!tg.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),qE(WE,"getComposedData",(function(t){var e=t.props,n=t.item,r=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,h=t.offset,p=function(t,e){if(!t)return null;for(var n=0,r=t.length;n<r;n++)if(t[n].item===e)return t[n].position;return null}(r,n);if(!p)return null;var d=e.layout,y=n.props,v=y.dataKey,g=y.children,m=y.minPointSize,b="horizontal"===d?a:o,w=l?b.scale.domain():null,x=function(t){var e=t.numericAxis,n=e.scale.domain();if("number"===e.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]}({numericAxis:b}),O=nc(g,Zg),S=f.map((function(t,e){var r,f,h,y,g,b;if(l?r=function(t,e){if(!e||2!==e.length||!Ta(e[0])||!Ta(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!Ta(t[0])||t[0]<n)&&(i[0]=n),(!Ta(t[1])||t[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i}(l[s+e],w):(r=Xj(t,v),Array.isArray(r)||(r=[x,r])),"horizontal"===d){var S,j=[a.scale(r[0]),a.scale(r[1])],A=j[0],M=j[1];f=lA({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:t,index:e}),h=null!==(S=null!=M?M:A)&&void 0!==S?S:void 0,y=p.size;var P=A-M;if(g=Number.isNaN(P)?0:P,b={x:f,y:a.y,width:y,height:a.height},Math.abs(m)>0&&Math.abs(g)<Math.abs(m)){var E=ka(g||m)*(Math.abs(m)-Math.abs(g));h-=E,g+=E}}else{var k=[o.scale(r[0]),o.scale(r[1])],_=k[0],T=k[1];if(f=_,h=lA({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:t,index:e}),y=T-_,g=p.size,b={x:o.x,y:h,width:o.width,height:g},Math.abs(m)>0&&Math.abs(y)<Math.abs(m))y+=ka(y||m)*(Math.abs(m)-Math.abs(y))}return $E($E($E({},t),{},{x:f,y:h,width:y,height:g,value:l?r:r[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[vA(n,t)],tooltipPosition:{x:f+y/2,y:h+g/2}})}));return $E({data:S,layout:d},h)}));var tk=function(t,e,n,r,i){var o=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!rc(u,WE);return l.reduce((function(o,a){var u,l,h,p,d,y=e[a],v=y.orientation,g=y.domain,m=y.padding,b=void 0===m?{}:m,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=g[1]-g[0],j=1/0,A=y.categoricalDomain.sort();A.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(A[e-1]||0),j))}));var M=j/S,P="vertical"===y.layout?n.height:n.width;if("gap"===y.padding&&(u=M*P/2),"no-gap"===y.padding){var E=Ia(t.barCategoryGap,M*P),k=M*P/2;u=k-E-(k-E)/P*E}}l="xAxis"===r?[n.left+(b.left||0)+(u||0),n.left+n.width-(b.right||0)-(u||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(u||0),n.top+n.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var _=function(t,e,n){var r=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:Jm(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Ow(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:tb(),realScaleType:"point"}:"category"===i?{scale:Jm(),realScaleType:"band"}:{scale:Ow(),realScaleType:"linear"};if(ga(r)){var c="scale".concat(Xc(r));return{scale:(cS[c]||tb)(),realScaleType:cS[c]?c:"point"}}return wi(r)?{scale:r}:{scale:tb(),realScaleType:"point"}}(y,i,f),T=_.scale,C=_.realScaleType;T.domain(g).range(l),function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-oA,o=Math.max(r[0],r[1])+oA,a=t(e[0]),c=t(e[n-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[n-1]])}}(T);var D=function(t,e){var n=e.realScaleType,r=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=n||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain();if(!u.length)return null;var l=_j(u,i,a);return t.domain([bS(l),dS(l)]),{niceTicks:l}}if(i&&"number"===r){var s=t.domain();return{niceTicks:Tj(s,i,a)}}return null}(T,KE(KE({},y),{},{realScaleType:C}));"xAxis"===r?(d="top"===v&&!w||"bottom"===v&&w,h=n.left,p=s[O]-d*y.height):"yAxis"===r&&(d="left"===v&&!w||"right"===v&&w,h=s[O]-d*y.width,p=n.top);var N=KE(KE(KE({},y),D),{},{realScaleType:C,x:h,y:p,scale:T,width:"xAxis"===r?n.width:y.width,height:"yAxis"===r?n.height:y.height});return N.bandSize=dA(N,D),y.hide||"xAxis"!==r?y.hide||(s[O]+=(d?-1:1)*N.width):s[O]+=(d?-1:1)*N.height,KE(KE({},o),{},JE({},a,N))}),{})},ek=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},nk=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,n,r;return e=t,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],r=[{key:"create",value:function(e){return new t(e)}}],n&&XE(e.prototype,n),r&&XE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();JE(nk,"EPS",1e-4);var rk=function(t){var e=Object.keys(t).reduce((function(e,n){return KE(KE({},e),{},JE({},n,nk.create(t[n])))}),{});return KE(KE({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return vE(t,(function(t,n){return e[n].apply(t,{bandAware:r,position:i})}))},isInRange:function(t){return jE(t,(function(t,n){return e[n].isInRange(t)}))}})};var ik=function(t){var e=t.width,n=t.height,r=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=r*Math.PI/180,o=Math.atan(n/e),a=i>o&&i<Math.PI-o?n/Math.sin(i):e/Math.cos(i);return Math.abs(a)};function ok(t){return ok="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ok(t)}function ak(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ck(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ak(Object(n),!0).forEach((function(e){uk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ak(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function uk(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==ok(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ok(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ok(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return sk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sk(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sk(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fk(){return fk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fk.apply(this,arguments)}function hk(t){var e=t.x,n=t.y,r=t.segment,i=t.xAxis,o=t.yAxis,a=t.shape,c=t.className,u=t.alwaysShow,l=t.clipPathId;wc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var s=function(t,e,n,r,i){var o=i.viewBox,a=o.x,c=o.y,u=o.width,l=o.height,s=i.position;if(n){var f=i.y,h=i.yAxis.orientation,p=t.y.apply(f,{position:s});if(lE(i,"discard")&&!t.y.isInRange(p))return null;var d=[{x:a+u,y:p},{x:a,y:p}];return"left"===h?d.reverse():d}if(e){var y=i.x,v=i.xAxis.orientation,g=t.x.apply(y,{position:s});if(lE(i,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:c+l},{x:g,y:c}];return"top"===v?m.reverse():m}if(r){var b=i.segment.map((function(e){return t.apply(e,{position:s})}));return lE(i,"discard")&&uE(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(rk({x:i.scale,y:o.scale}),Ca(e),Ca(n),r&&2===r.length,t);if(!s)return null;var f=lk(s,2),h=f[0],p=h.x,d=h.y,y=f[1],v=y.x,g=y.y,m=ck(ck({clipPath:lE(t,"hidden")?"url(#".concat(l,")"):void 0},cc(t,!0)),{},{x1:p,y1:d,x2:v,y2:g});return B.createElement(mc,{className:Hr("recharts-reference-line",c)},function(t,e){return B.isValidElement(t)?B.cloneElement(t,e):wi(t)?t(e):B.createElement("line",fk({},e,{className:"recharts-reference-line-line"}))}(a,m),HA.renderCallByParent(t,function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2;return ek({x:e,y:n},{x:r,y:i})}({x1:p,y1:d,x2:v,y2:g})))}function pk(t){return pk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pk(t)}function dk(){return dk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},dk.apply(this,arguments)}function yk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yk(Object(n),!0).forEach((function(e){gk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gk(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==pk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==pk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pk(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}hk.displayName="ReferenceLine",hk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function mk(t){var e=t.x,n=t.y,r=t.r,i=t.alwaysShow,o=t.clipPathId,a=Ca(e),c=Ca(n);if(wc(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!c)return null;var u=function(t){var e=t.x,n=t.y,r=t.xAxis,i=t.yAxis,o=rk({x:r.scale,y:i.scale}),a=o.apply({x:e,y:n},{bandAware:!0});return lE(t,"discard")&&!o.isInRange(a)?null:a}(t);if(!u)return null;var l=u.x,s=u.y,f=t.shape,h=t.className,p=vk(vk({clipPath:lE(t,"hidden")?"url(#".concat(o,")"):void 0},cc(t,!0)),{},{cx:l,cy:s});return B.createElement(mc,{className:Hr("recharts-reference-dot",h)},mk.renderDot(f,p),HA.renderCallByParent(t,{x:l-r,y:s-r,width:2*r,height:2*r}))}function bk(t){return bk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bk(t)}function wk(){return wk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},wk.apply(this,arguments)}function xk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ok(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xk(Object(n),!0).forEach((function(e){Sk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Sk(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==bk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==bk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bk(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}mk.displayName="ReferenceDot",mk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},mk.renderDot=function(t,e){return B.isValidElement(t)?B.cloneElement(t,e):wi(t)?t(e):B.createElement(IM,dk({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};function jk(t){var e=t.x1,n=t.x2,r=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,c=t.clipPathId;wc(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Ca(e),l=Ca(n),s=Ca(r),f=Ca(i),h=t.shape;if(!(u||l||s||f||h))return null;var p=function(t,e,n,r,i){var o=i.x1,a=i.x2,c=i.y1,u=i.y2,l=i.xAxis,s=i.yAxis;if(!l||!s)return null;var f=rk({x:l.scale,y:s.scale}),h={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(c,{position:"start"}):f.y.rangeMin},p={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!lE(i,"discard")||f.isInRange(h)&&f.isInRange(p)?ek(h,p):null}(u,l,s,f,t);if(!p&&!h)return null;var d=lE(t,"hidden")?"url(#".concat(c,")"):void 0;return B.createElement(mc,{className:Hr("recharts-reference-area",o)},jk.renderRect(h,Ok(Ok({clipPath:d},cc(t,!0)),p)),HA.renderCallByParent(t,p))}function Ak(t,e,n){if(e<1)return[];if(1===e&&void 0===n)return t;for(var r=[],i=0;i<t.length;i+=e){if(void 0!==n&&!0!==n(t[i]))return;r.push(t[i])}return r}function Mk(t,e,n,r,i){if(t*e<t*r||t*e>t*i)return!1;var o=n();return t*(e-t*o/2-r)>=0&&t*(e+t*o/2-i)<=0}function Pk(t){return Pk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pk(t)}function Ek(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ek(Object(n),!0).forEach((function(e){_k(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ek(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _k(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Pk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Pk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Pk(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tk(t,e,n){var r=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!r)return[];if(Ta(u)||tg.isSsr)return function(t,e){return Ak(t,e+1)}(i,"number"==typeof u&&Ta(u)?u:0);var h=[],p="top"===c||"bottom"===c?"width":"height",d=s&&"width"===p?Gg(s,{fontSize:e,letterSpacing:n}):{width:0,height:0},y=function(t,r){var i=wi(l)?l(t.value,r):t.value;return"width"===p?function(t,e,n){var r={width:t.width+e.width,height:t.height+e.height};return ik(r,n)}(Gg(i,{fontSize:e,letterSpacing:n}),d,f):Gg(i,{fontSize:e,letterSpacing:n})[p]},v=i.length>=2?ka(i[1].coordinate-i[0].coordinate):1,g=function(t,e,n){var r="width"===n,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:r?i:o,end:r?i+a:o+c}:{start:r?i+a:o+c,end:r?i:o}}(o,v,p);return"equidistantPreserveStart"===u?function(t,e,n,r,i){for(var o,a=(r||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,h=function(){var e=null==r?void 0:r[l];if(void 0===e)return{v:Ak(r,s)};var o,a=l,h=function(){return void 0===o&&(o=n(e,a)),o},p=e.coordinate,d=0===l||Mk(t,p,h,f,u);d||(l=0,f=c,s+=1),d&&(f=p+t*(h()/2+i),l+=s)};s<=a.length;)if(o=h())return o.v;return[]}(v,g,y,i,a):(h="preserveStart"===u||"preserveStartEnd"===u?function(t,e,n,r,i,o){var a=(r||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=r[c-1],f=n(s,c-1),h=t*(s.coordinate+t*f/2-l);a[c-1]=s=kk(kk({},s),{},{tickCoord:h>0?s.coordinate-h*t:s.coordinate}),Mk(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=kk(kk({},s),{},{isShow:!0}))}for(var p=o?c-1:c,d=function(e){var r,o=a[e],c=function(){return void 0===r&&(r=n(o,e)),r};if(0===e){var s=t*(o.coordinate-t*c()/2-u);a[e]=o=kk(kk({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=kk(kk({},o),{},{tickCoord:o.coordinate});Mk(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=kk(kk({},o),{},{isShow:!0}))},y=0;y<p;y++)d(y);return a}(v,g,y,i,a,"preserveStartEnd"===u):function(t,e,n,r,i){for(var o=(r||[]).slice(),a=o.length,c=e.start,u=e.end,l=function(e){var r,l=o[e],s=function(){return void 0===r&&(r=n(l,e)),r};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);o[e]=l=kk(kk({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=kk(kk({},l),{},{tickCoord:l.coordinate});Mk(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=kk(kk({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return o}(v,g,y,i,a),h.filter((function(t){return t.isShow})))}jk.displayName="ReferenceArea",jk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},jk.renderRect=function(t,e){return B.isValidElement(t)?B.cloneElement(t,e):wi(t)?t(e):B.createElement(DM,wk({},e,{className:"recharts-reference-area-rect"}))};var Ck=["viewBox"],Dk=["viewBox"],Nk=["ticks"];function Ik(t){return Ik="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ik(t)}function Bk(){return Bk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Bk.apply(this,arguments)}function Rk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rk(Object(n),!0).forEach((function(e){Fk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $k(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function zk(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,qk(r.key),r)}}function Hk(t,e){return Hk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hk(t,e)}function Zk(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Uk(t);if(e){var i=Uk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ik(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Uk(t){return Uk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Uk(t)}function Fk(t,e,n){return(e=qk(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qk(t){var e=function(t,e){if("object"!==Ik(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ik(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ik(e)?e:String(e)}var Vk=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hk(t,e)}(o,X);var e,n,r,i=Zk(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this,t)).state={fontSize:"",letterSpacing:""},e}return e=o,n=[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=$k(t,Ck),i=this.props,o=i.viewBox,a=$k(i,Dk);return!$a(n,o)||!$a(r,a)||!$a(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,n,r,i,o,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,h=c.orientation,p=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,g=t.tickSize||p,m=Ta(t.tickCoord)?t.tickCoord:t.coordinate;switch(h){case"top":e=n=t.coordinate,a=(r=(i=l+ +!d*f)-v*g)-v*y,o=m;break;case"left":r=i=t.coordinate,o=(e=(n=u+ +!d*s)-v*g)-v*y,a=m;break;case"right":r=i=t.coordinate,o=(e=(n=u+ +d*s)+v*g)+v*y,a=m;break;default:e=n=t.coordinate,a=(r=(i=l+ +d*f)+v*g)+v*y,o=m}return{line:{x1:e,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,u=Lk(Lk(Lk({},cc(this.props)),cc(c)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=Lk(Lk({},u),{},{x1:e,y1:n+l*i,x2:e+r,y2:n+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=Lk(Lk({},u),{},{x1:e+s*r,y1:n,x2:e+s*r,y2:n+i})}return B.createElement("line",Bk({},u,{className:Hr("recharts-cartesian-axis-line",fa(c,"className"))}))}},{key:"renderTicks",value:function(t,e,n){var r=this,i=this.props,a=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,s=i.unit,f=Tk(Lk(Lk({},this.props),{},{ticks:t}),e,n),h=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=cc(this.props),y=cc(u),v=Lk(Lk({},d),{},{fill:"none"},cc(a)),g=f.map((function(t,e){var n=r.getTickLineCoord(t),i=n.line,g=n.tick,m=Lk(Lk(Lk(Lk({textAnchor:h,verticalAnchor:p},d),{},{stroke:"none",fill:c},y),g),{},{index:e,payload:t,visibleTicksCount:f.length,tickFormatter:l});return B.createElement(mc,Bk({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Va(r.props,t,e)),a&&B.createElement("line",Bk({},v,i,{className:Hr("recharts-cartesian-axis-tick-line",fa(a,"className"))})),u&&o.renderTickItem(u,m,"".concat(wi(l)?l(t.value,e):t.value).concat(s||"")))}));return B.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,n=e.axisLine,r=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=$k(c,Nk),s=u;return wi(o)&&(s=u&&u.length>0?o(this.props):o(l)),r<=0||i<=0||!s||!s.length?null:B.createElement(mc,{className:Hr("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),HA.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,n){return B.isValidElement(t)?B.cloneElement(t,e):wi(t)?t(e):B.createElement(jm,Bk({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&zk(e.prototype,n),r&&zk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();Fk(Vk,"displayName","CartesianAxis"),Fk(Vk,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Wk=["type","layout","connectNulls","ref"];function Yk(t){return Yk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yk(t)}function Xk(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Gk(){return Gk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Gk.apply(this,arguments)}function Kk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Kk(Object(n),!0).forEach((function(e){a_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Kk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qk(t){return function(t){if(Array.isArray(t))return t_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return t_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t_(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t_(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function e_(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,c_(r.key),r)}}function n_(t,e){return n_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},n_(t,e)}function r_(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=o_(t);if(e){var i=o_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Yk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i_(t)}(this,n)}}function i_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function o_(t){return o_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o_(t)}function a_(t,e,n){return(e=c_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c_(t){var e=function(t,e){if("object"!==Yk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Yk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yk(e)?e:String(e)}var u_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n_(t,e)}(o,$);var e,n,r,i=r_(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return a_(i_(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),a_(i_(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),a_(i_(t),"getStrokeDasharray",(function(e,n,r){var i=r.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(n,e);for(var a=Math.floor(e/i),c=e%i,u=n-e,l=[],s=0,f=0;s<r.length;f+=r[s],++s)if(f+r[s]>c){l=[].concat(Qk(r.slice(0,s)),[c-f]);break}var h=l.length%2==0?[0,u]:[u];return[].concat(Qk(o.repeat(r,a)),Qk(l),h).map((function(t){return"".concat(t,"px")})).join(", ")})),a_(i_(t),"id",Na("recharts-line-")),a_(i_(t),"pathRef",(function(e){t.mainCurve=e})),a_(i_(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),a_(i_(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return e=o,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,o=n.yAxis,a=n.layout,c=nc(n.children,Rj);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Xj(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return B.createElement(mc,l,c.map((function(t){return B.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:r,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,a=r.points,c=r.dataKey,u=cc(this.props),l=cc(i,!0),s=a.map((function(t,e){var n=Jk(Jk(Jk({key:"dot-".concat(e),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:e,payload:t.payload});return o.renderDotItem(i,n)})),f={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(n,")"):null};return B.createElement(mc,Gk({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,n,r){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var u=Xk(i,Wk),l=Jk(Jk(Jk({},cc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},r),{},{type:o,layout:a,connectNulls:c});return B.createElement(OM,Gk({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,a=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,s=r.animationId,f=r.animateNewValues,h=r.width,p=r.height,d=this.state,y=d.prevPoints,v=d.totalLength;return B.createElement(Iv,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(y){var c=y.length/i.length,u=i.map((function(t,e){var n=Math.floor(e*c);if(y[n]){var r=y[n],i=Ra(r.x,t.x),o=Ra(r.y,t.y);return Jk(Jk({},t),{},{x:i(a),y:o(a)})}if(f){var u=Ra(2*h,t.x),l=Ra(p/2,t.y);return Jk(Jk({},t),{},{x:u(a),y:l(a)})}return Jk(Jk({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(u,t,e)}var l,s=Ra(0,v)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=n.getStrokeDasharray(s,v,d)}else l=n.generateSimpleStrokeDasharray(v,s);return n.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&r&&r.length&&(!a&&c>0||!kS(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,r=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,h=e.isAnimationActive,p=e.id;if(n||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=Hr("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=ha(p)?this.id:p,x=null!==(t=cc(r))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,M=(ac(r)?r:{}).clipDot,P=void 0===M||M,E=2*S+A;return B.createElement(mc,{className:v},g||m?B.createElement("defs",null,B.createElement("clipPath",{id:"clipPath-".concat(w)},B.createElement("rect",{x:g?l:l-s/2,y:m?u:u-f/2,width:g?s:2*s,height:m?f:2*f})),!P&&B.createElement("clipPath",{id:"clipPath-dots-".concat(w)},B.createElement("rect",{x:l-E/2,y:u-E/2,width:s+E,height:f+E}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||r)&&this.renderDots(b,P,w),(!h||d)&&nM.renderCallByParent(this.props,i))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var n=t.length%2!=0?[].concat(Qk(t),[0]):t,r=[],i=0;i<e;++i)r=[].concat(Qk(r),Qk(n));return r}},{key:"renderDotItem",value:function(t,e){var n;if(B.isValidElement(t))n=B.cloneElement(t,e);else if(wi(t))n=t(e);else{var r=Hr("recharts-line-dot",t?t.className:"");n=B.createElement(IM,Gk({},e,{className:r}))}return n}}],n&&e_(e.prototype,n),r&&e_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();a_(u_,"displayName","Line"),a_(u_,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!tg.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),a_(u_,"getComposedData",(function(t){var e=t.props,n=t.xAxis,r=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return Jk({points:u.map((function(t,e){var u=Xj(t,a);return"horizontal"===s?{x:uA({axis:n,ticks:i,bandSize:c,entry:t,index:e}),y:ha(u)?null:r.scale(u),value:u,payload:t}:{x:ha(u)?null:n.scale(u),y:uA({axis:r,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var l_,s_=["layout","type","stroke","connectNulls","isRange","ref"];function f_(t){return f_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f_(t)}function h_(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function p_(){return p_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},p_.apply(this,arguments)}function d_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d_(Object(n),!0).forEach((function(e){x_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function v_(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,O_(r.key),r)}}function g_(t,e){return g_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},g_(t,e)}function m_(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=w_(t);if(e){var i=w_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===f_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return b_(t)}(this,n)}}function b_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w_(t){return w_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},w_(t)}function x_(t,e,n){return(e=O_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O_(t){var e=function(t,e){if("object"!==f_(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==f_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===f_(e)?e:String(e)}var S_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&g_(t,e)}(o,$);var e,n,r,i=m_(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return x_(b_(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),x_(b_(t),"id",Na("recharts-area-")),x_(b_(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),wi(e)&&e()})),x_(b_(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),wi(e)&&e()})),t}return e=o,n=[{key:"renderDots",value:function(t,e,n){var r=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(r&&!i)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=cc(this.props),f=cc(c,!0),h=u.map((function(t,e){var n=y_(y_(y_({key:"dot-".concat(e),r:3},s),f),{},{dataKey:l,cx:t.x,cy:t.y,index:e,value:t.value,payload:t.payload});return o.renderDotItem(c,n)})),p={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(n,")"):null};return B.createElement(mc,p_({className:"recharts-area-dots"},p),h)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,i=e.strokeWidth,o=r[0].x,a=r[r.length-1].x,c=t*Math.abs(o-a),u=dS(r.map((function(t){return t.y||0})));return Ta(n)&&"number"==typeof n?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(dS(n.map((function(t){return t.y||0}))),u)),Ta(u)?B.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,i=e.strokeWidth,o=r[0].y,a=r[r.length-1].y,c=t*Math.abs(o-a),u=dS(r.map((function(t){return t.x||0})));return Ta(n)&&"number"==typeof n?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(dS(n.map((function(t){return t.x||0}))),u)),Ta(u)?B.createElement("rect",{x:0,y:o<a?o:o-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,n,r){var i=this.props,o=i.layout,a=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var s=h_(i,s_);return B.createElement(mc,{clipPath:n?"url(#clipPath-".concat(r,")"):null},B.createElement(OM,p_({},cc(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&B.createElement(OM,p_({},cc(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&B.createElement(OM,p_({},cc(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,o=r.baseLine,a=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,s=r.animationId,f=this.state,h=f.prevPoints,p=f.prevBaseLine;return B.createElement(Iv,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(h){var c,u=h.length/i.length,l=i.map((function(t,e){var n=Math.floor(e*u);if(h[n]){var r=h[n],i=Ra(r.x,t.x),o=Ra(r.y,t.y);return y_(y_({},t),{},{x:i(a),y:o(a)})}return t}));return c=Ta(o)&&"number"==typeof o?Ra(p,o)(a):ha(o)||Ea(o)?Ra(p,0)(a):o.map((function(t,e){var n=Math.floor(e*u);if(p[n]){var r=p[n],i=Ra(r.x,t.x),o=Ra(r.y,t.y);return y_(y_({},t),{},{x:i(a),y:o(a)})}return t})),n.renderAreaStatically(l,c,t,e)}return B.createElement(mc,null,B.createElement("defs",null,B.createElement("clipPath",{id:"animationClipPath-".concat(e)},n.renderClipRect(a))),B.createElement(mc,{clipPath:"url(#animationClipPath-".concat(e,")")},n.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return o&&r&&r.length&&(!c&&l>0||!kS(c,r)||!kS(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,i,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,r=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,h=e.isAnimationActive,p=e.id;if(n||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=Hr("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=ha(p)?this.id:p,x=null!==(t=cc(r))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,M=(ac(r)?r:{}).clipDot,P=void 0===M||M,E=2*S+A;return B.createElement(mc,{className:v},g||m?B.createElement("defs",null,B.createElement("clipPath",{id:"clipPath-".concat(w)},B.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!P&&B.createElement("clipPath",{id:"clipPath-dots-".concat(w)},B.createElement("rect",{x:c-E/2,y:a-E/2,width:s+E,height:f+E}))):null,y?null:this.renderArea(b,w),(r||y)&&this.renderDots(b,P,w),(!h||d)&&nM.renderCallByParent(this.props,i))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&v_(e.prototype,n),r&&v_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();l_=S_,x_(S_,"displayName","Area"),x_(S_,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!tg.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),x_(S_,"getBaseValue",(function(t,e,n,r){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Ta(c)&&"number"==typeof c)return c;var u="horizontal"===i?r:n,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),x_(S_,"getComposedData",(function(t){var e,n=t.props,r=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,h=t.displayedData,p=t.offset,d=n.layout,y=s&&s.length,v=l_.getBaseValue(n,r,i,o),g="horizontal"===d,m=!1,b=h.map((function(t,e){var n;y?n=s[f+e]:(n=Xj(t,l),Array.isArray(n)?m=!0:n=[v,n]);var r=null==n[1]||y&&null==Xj(t,l);return g?{x:uA({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:r?null:o.scale(n[1]),value:n,payload:t}:{x:r?null:i.scale(n[1]),y:uA({axis:o,ticks:c,bandSize:u,entry:t,index:e}),value:n,payload:t}}));return e=y||m?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return g?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):g?o.scale(v):i.scale(v),y_({points:b,baseLine:e,layout:d,isRange:m},p)})),x_(S_,"renderDotItem",(function(t,e){return B.isValidElement(t)?B.cloneElement(t,e):wi(t)?t(e):B.createElement(IM,p_({},e,{className:"recharts-area-dot"}))}));var j_=function(){return null};j_.displayName="XAxis",j_.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var A_=function(){return null};A_.displayName="YAxis",A_.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var M_=Uh,P_=nf,E_=cf;var k_=function(t){return function(e,n,r){var i=Object(e);if(!P_(e)){var o=M_(n);e=E_(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}},__=DP;var T_=Fh,C_=Uh,D_=function(t){var e=__(t),n=e%1;return e==e?n?e-n:e:0},N_=Math.max;var I_=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:D_(n);return i<0&&(i=N_(r+i,0)),T_(t,C_(e),i)},B_=Pe(k_(I_)),R_="production"===process.env.NODE_ENV,L_="Invariant failed";function $_(t,e){if(!t){if(R_)throw new Error(L_);var n="function"==typeof e?e():e,r=n?"".concat(L_,": ").concat(n):L_;throw new Error(r)}}function z_(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,o=t.endAngle;return{points:[SA(e,n,r,i),SA(e,n,r,o)],cx:e,cy:n,radius:r,startAngle:i,endAngle:o}}function H_(t){return function(t){if(Array.isArray(t))return Z_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Z_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z_(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Z_(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var U_=function(t,e,n,r,i){var o=nc(t,hk),a=nc(t,mk),c=[].concat(H_(o),H_(a)),u=nc(t,jk),l="".concat(r,"Id"),s=r[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===n&&lE(e.props,"extendDomain")&&Ta(e.props[s])){var r=e.props[s];return[Math.min(t[0],r),Math.max(t[1],r)]}return t}),f)),u.length){var h="".concat(s,"1"),p="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===n&&lE(e.props,"extendDomain")&&Ta(e.props[h])&&Ta(e.props[p])){var r=e.props[h],i=e.props[p];return[Math.min(t[0],r,i),Math.max(t[1],r,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return Ta(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},F_={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new i(r,o||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},c.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},c.prototype.emit=function(t,e,r,i,o,a){var c=n?n+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,r),!0;case 4:return s.fn.call(s.context,e,r,i),!0;case 5:return s.fn.call(s.context,e,r,i,o),!0;case 6:return s.fn.call(s.context,e,r,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var h,p=s.length;for(l=0;l<p;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,r);break;case 4:s[l].fn.call(s[l].context,e,r,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},c.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},c.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||r&&c.context!==r||a(this,o);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||i&&!c[u].once||r&&c[u].context!==r)&&l.push(c[u]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,t.exports=c}(F_);var q_=new(Pe(F_.exports)),V_="recharts.syncMouseEvents";function W_(t){return W_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W_(t)}function Y_(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,G_(r.key),r)}}function X_(t,e,n){return(e=G_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function G_(t){var e=function(t,e){if("object"!==W_(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==W_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===W_(e)?e:String(e)}var K_=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),X_(this,"activeIndex",0),X_(this,"coordinateList",[]),X_(this,"layout","horizontal")}var e,n,r;return e=t,n=[{key:"setDetails",value:function(t){var e=t.coordinateList,n=void 0===e?[]:e,r=t.container,i=void 0===r?null:r,o=t.layout,a=void 0===o?null:o,c=t.offset,u=void 0===c?null:c,l=t.mouseHandlerCallback,s=void 0===l?null:l;this.coordinateList=null!=n?n:this.coordinateList,this.container=null!=i?i:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=s?s:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,i=n.y,o=n.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=r+a+c,s=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}],n&&Y_(e.prototype,n),r&&Y_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function J_(t,e,n){var r,i,o,a;if("horizontal"===t)o=r=e.x,i=n.top,a=n.top+n.height;else if("vertical"===t)a=i=e.y,r=n.left,o=n.left+n.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return z_(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,h=SA(c,u,l,f),p=SA(c,u,s,f);r=h.x,i=h.y,o=p.x,a=p.y}return[{x:r,y:i},{x:o,y:a}]}var Q_=["item"],tT=["children","className","width","height","style","compact","title","desc"];function eT(t){return eT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eT(t)}function nT(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||fT(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rT(){return rT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},rT.apply(this,arguments)}function iT(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function oT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vT(r.key),r)}}function aT(t,e){return aT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},aT(t,e)}function cT(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=lT(t);if(e){var i=lT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===eT(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return uT(t)}(this,n)}}function uT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lT(t){return lT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lT(t)}function sT(t){return function(t){if(Array.isArray(t))return hT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||fT(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fT(t,e){if(t){if("string"==typeof t)return hT(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hT(t,e):void 0}}function hT(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function pT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function dT(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pT(Object(n),!0).forEach((function(e){yT(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pT(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yT(t,e,n){return(e=vT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vT(t){var e=function(t,e){if("object"!==eT(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==eT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===eT(e)?e:String(e)}var gT={xAxis:["bottom","top"],yAxis:["left","right"]},mT={width:"100%",height:"100%"},bT={x:0,y:0},wT=function(t,e){var n=e.graphicalItems,r=e.dataStartIndex,i=e.dataEndIndex,o=(null!=n?n:[]).reduce((function(t,e){var n=e.props.data;return n&&n.length?[].concat(sT(t),sT(n)):t}),[]);return o.length>0?o:t&&t.length&&Ta(r)&&Ta(i)?t.slice(r,i+1):[]};function xT(t){return"number"===t?[0,"auto"]:void 0}var OT=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,a=wT(e,t);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(i,c){var u;if(c.props.hide)return i;var l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?l=La(void 0===s?a:s,o.dataKey,r):l=s&&s[n]||a[n];return l?[].concat(sT(i),[vA(c,l)]):i}),[])},ST=function(t,e,n,r){var i=r||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,n),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<a;u++){var l=u>0?r[u-1].coordinate:r[a-1].coordinate,s=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,h=void 0;if(ka(s-l)!==ka(f-s)){var p=[];if(ka(f-s)===ka(c[1]-c[0])){h=f;var d=s+c[1]-c[0];p[0]=Math.min(d,(d+l)/2),p[1]=Math.max(d,(d+l)/2)}else{h=l;var y=f+c[1]-c[0];p[0]=Math.min(s,(y+s)/2),p[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(h+s)/2),Math.max(s,(h+s)/2)];if(t>v[0]&&t<=v[1]||t>=p[0]&&t<=p[1]){o=r[u].index;break}}else{var g=Math.min(l,f),m=Math.max(l,f);if(t>(g+s)/2&&t<=(m+s)/2){o=r[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}return o}(o,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=OT(t,e,l,s),h=function(t,e,n,r){var i=e.find((function(t){return t&&t.index===n}));if(i){if("horizontal"===t)return{x:i.coordinate,y:r.y};if("vertical"===t)return{x:r.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=r.radius;return dT(dT(dT({},r),SA(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=r.angle;return dT(dT(dT({},r),SA(r.cx,r.cy,c,u)),{},{angle:u,radius:c})}return bT}(n,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:h}}return null},jT=function(t,e){var n=e.axes,r=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,h=tA(l,i);return n.reduce((function(e,n){var p,d=n.props,y=d.type,v=d.dataKey,g=d.allowDataOverflow,m=d.allowDuplicatedCategory,b=d.scale,w=d.ticks,x=d.includeHidden,O=n.props[o];if(e[O])return e;var S,j,A,M=wT(t.data,{graphicalItems:r.filter((function(t){return t.props[o]===O})),dataStartIndex:c,dataEndIndex:u}),P=M.length;(function(t,e,n){if("number"===n&&!0===e&&Array.isArray(t)){var r=null==t?void 0:t[0],i=null==t?void 0:t[1];if(r&&i&&Ta(r)&&Ta(i))return!0}return!1})(n.props.domain,g,y)&&(S=pA(n.props.domain,null,g),!h||"number"!==y&&"auto"===b||(A=Gj(M,v,"category")));var E=xT(y);if(!S||0===S.length){var k,_=null!==(k=n.props.domain)&&void 0!==k?k:E;if(v){if(S=Gj(M,v,y),"category"===y&&h){var T=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,n={},r=0;r<e;r++){if(n[t[r]])return!0;n[t[r]]=!0}return!1}(S);m&&T?(j=S,S=RP(0,P)):m||(S=yA(_,S,n).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(sT(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!ha(t)})):yA(_,S,n).reduce((function(t,e){return t.indexOf(e)>=0||""===e||ha(e)?t:[].concat(sT(t),[e])}),[]);else if("number"===y){var C=function(t,e,n,r,i){var o=e.map((function(e){return Jj(t,e,n,i,r)})).filter((function(t){return!ha(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(M,r.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),v,i,l);C&&(S=C)}!h||"number"!==y&&"auto"===b||(A=Gj(M,v,"category"))}else S=h?RP(0,P):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:sA(a[O].stackGroups,c,u):Qj(M,r.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),y,l,!0);if("number"===y)S=U_(s,S,O,i,w),_&&(S=pA(_,S,g));else if("category"===y&&_){var D=_;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return dT(dT({},e),{},yT({},O,dT(dT({},n.props),{},{axisType:i,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:E,isCategorical:h,layout:l})))}),{})},AT=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(r,"Id"),f=nc(l,i),h={};return f&&f.length?h=jT(t,{axes:f,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=wT(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),h=f.length,p=tA(l,i),d=-1;return n.reduce((function(t,e){var y,v=e.props[o],g=xT("number");return t[v]?t:(d++,p?y=RP(0,h):a&&a[v]&&a[v].hasStack?(y=sA(a[v].stackGroups,c,u),y=U_(s,y,v,i)):(y=pA(g,Qj(f,n.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",l),r.defaultProps.allowDataOverflow),y=U_(s,y,v,i)),dT(dT({},t),{},yT({},v,dT(dT({axisType:i},r.defaultProps),{},{hide:!0,orientation:fa(gT,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:g,isCategorical:p,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),h},MT=function(t){var e=t.children,n=t.defaultShowTooltip,r=rc(e,eE),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},PT=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},ET=function(t,e){var n=t.props,r=(t.graphicalItems,t.xAxisMap),i=void 0===r?{}:r,o=t.yAxisMap,a=void 0===o?{}:o,c=n.width,u=n.height,l=n.children,s=n.margin||{},f=rc(l,eE),h=rc(l,Pp),p=Object.keys(a).reduce((function(t,e){var n=a[e],r=n.orientation;return n.mirror||n.hide?t:dT(dT({},t),{},yT({},r,t[r]+n.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var n=i[e],r=n.orientation;return n.mirror||n.hide?t:dT(dT({},t),{},yT({},r,fa(t,"".concat(r))+n.height))}),{top:s.top||0,bottom:s.bottom||0}),y=dT(dT({},d),p),v=y.bottom;f&&(y.bottom+=f.props.height||eE.defaultProps.height),h&&e&&(y=function(t,e,n,r){var i=n.children,o=n.width,a=n.margin,c=o-(a.left||0)-(a.right||0),u=Zj({children:i,legendWidth:c});if(u){var l=r||{},s=l.width,f=l.height,h=u.align,p=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===p)&&"center"!==h&&Ta(t[h]))return qj(qj({},t),{},Vj({},h,t[h]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===h)&&"middle"!==p&&Ta(t[p]))return qj(qj({},t),{},Vj({},p,t[p]+(f||0)))}return t}(y,0,n,e));var g=c-y.left-y.right,m=u-y.top-y.bottom;return dT(dT({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},kT=function(t){var e,n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=void 0===i?"axis":i,a=t.validateTooltipEventTypes,c=void 0===a?["axis"]:a,u=t.axisComponents,l=t.legendContent,s=t.formatAxisMap,f=t.defaultProps,h=function(t,e){var n=e.graphicalItems,r=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,h=t.barCategoryGap,p=t.maxBarSize,d=PT(s),y=d.numericAxisName,v=d.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Ja(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(n),m=g&&function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,c=o.length;a<c;a++)for(var u=r[o[a]].stackGroups,l=Object.keys(u),s=0,f=l.length;s<f;s++){var h=u[l[s]],p=h.items,d=h.cateAxisId,y=p.filter((function(t){return Ja(t.type).indexOf("Bar")>=0}));if(y&&y.length){var v=y[0].props.barSize,g=y[0].props[d];i[g]||(i[g]=[]),i[g].push({item:y[0],stackList:y.slice(1),barSize:ha(v)?e:v})}}return i}({barSize:l,stackGroups:r}),b=[];return n.forEach((function(n,l){var d=wT(t.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:c}),g=n.props,w=g.dataKey,x=g.maxBarSize,O=n.props["".concat(y,"Id")],S=n.props["".concat(v,"Id")],j=u.reduce((function(t,r){var i,o,a,c=e["".concat(r.axisType,"Map")],u=n.props["".concat(r.axisType,"Id")];c&&c[u]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?$_(!1,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==n||null===(o=n.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):$_(!1));var l=c[u];return dT(dT({},t),{},(yT(a={},r.axisType,l),yT(a,"".concat(r.axisType,"Ticks"),nA(l)),a))}),{}),A=j[v],M=j["".concat(v,"Ticks")],P=r&&r[O]&&r[O].hasStack&&function(t,e){var n=t.props.stackId;if(Ca(n)){var r=e[n];if(r){var i=r.items.indexOf(t);return i>=0?r.stackedData[i]:null}}return null}(n,r[O].stackGroups),E=Ja(n.type).indexOf("Bar")>=0,k=dA(A,M),_=[];if(E){var T,C,D=ha(x)?p:x,N=null!==(T=null!==(C=dA(A,M,!0))&&void 0!==C?C:D)&&void 0!==T?T:0;_=function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var u,l=Ia(e,r,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,h=r/c,p=o.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(c-1)*l)>=r&&(p-=(c-1)*l,l=0),p>=r&&h>0&&(f=!0,p=c*(h*=.9));var d={offset:((r-p)/2>>0)-l,size:0};u=o.reduce((function(t,e){var n={item:e.item,position:{offset:d.offset+d.size+l,size:f?h:e.barSize}},r=[].concat(Wj(t),[n]);return d=r[r.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:d})})),r}),s)}else{var y=Ia(n,r,0,!0);r-2*y-(c-1)*l<=0&&(l=0);var v=(r-2*y-(c-1)*l)/c;v>1&&(v>>=0);var g=a===+a?Math.min(v,a):v;u=o.reduce((function(t,e,n){var r=[].concat(Wj(t),[{item:e.item,position:{offset:y+(v+l)*n+(v-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),s)}return u}({barGap:f,barCategoryGap:h,bandSize:N!==k?N:k,sizeList:m[S],maxBarSize:D}),N!==k&&(_=_.map((function(t){return dT(dT({},t),{},{position:dT(dT({},t.position),{},{offset:t.position.offset-N/2})})})))}var I,B,R,L=n&&n.type&&n.type.getComposedData;L&&b.push({props:dT(dT({},L(dT(dT({},j),{},{displayedData:d,props:t,dataKey:w,item:n,bandSize:k,barPosition:_,offset:i,stackedData:P,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},(I={key:n.key||"item-".concat(l)},yT(I,y,j[y]),yT(I,v,j[v]),yT(I,"animationId",o),I)),childIndex:(B=n,R=t.children,ec(R).indexOf(B)),item:n})})),b},p=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!ic({props:i}))return null;var l=i.children,f=i.layout,p=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=PT(f),g=v.numericAxisName,m=v.cateAxisName,b=nc(l,r),w=function(t,e,n,r,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[n],c=t[a]||{hasStack:!1,stackGroups:{}};if(Ca(o)){var u=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[o]=u}else c.stackGroups[Na("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return qj(qj({},t),{},Vj({},a,c))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return qj(qj({},e),{},Vj({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:cA(t,a.items,i)}))}),{})),qj(qj({},e),{},Vj({},o,c))}),{})}(d,b,"".concat(g,"Id"),"".concat(m,"Id"),p,y),x=u.reduce((function(t,e){var n="".concat(e.axisType,"Map");return dT(dT({},t),{},yT({},n,AT(i,dT(dT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=ET(dT(dT({},x),{},{props:i,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(x).forEach((function(t){x[t]=s(i,x[t],O,t.replace("Map",""),n)}));var S,j,A=x["".concat(m,"Map")],M=(S=Ba(A),{tooltipTicks:j=nA(S,!1,!0),orderedTooltipTicks:Md(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:dA(S,j)}),P=h(i,dT(dT({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:O}));return dT(dT({formattedGraphicalItems:P,graphicalItems:b,offset:O,stackGroups:w},M),x)};return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&aT(t,e)}(u,X);var e,r,i,a=cT(u);function u(t){var e,r,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),yT(uT(i=a.call(this,t)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),yT(uT(i),"accessibilityManager",new K_),yT(uT(i),"handleLegendBBoxUpdate",(function(t){if(t){var e=i.state,n=e.dataStartIndex,r=e.dataEndIndex,o=e.updateId;i.setState(dT({legendBBox:t},p({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},dT(dT({},i.state),{},{legendBBox:t}))))}})),yT(uT(i),"handleReceiveSyncEvent",(function(t,e,n){if(i.props.syncId===t){if(n===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}})),yT(uT(i),"handleBrushChange",(function(t){var e=t.startIndex,n=t.endIndex;if(e!==i.state.dataStartIndex||n!==i.state.dataEndIndex){var r=i.state.updateId;i.setState((function(){return dT({dataStartIndex:e,dataEndIndex:n},p({props:i.props,dataStartIndex:e,dataEndIndex:n,updateId:r},i.state))})),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}})),yT(uT(i),"handleMouseEnter",(function(t){var e=i.getMouseInfo(t);if(e){var n=dT(dT({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;wi(r)&&r(n,t)}})),yT(uT(i),"triggeredAfterMouseMove",(function(t){var e=i.getMouseInfo(t),n=e?dT(dT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;wi(r)&&r(n,t)})),yT(uT(i),"handleItemMouseEnter",(function(t){i.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),yT(uT(i),"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),yT(uT(i),"handleMouseMove",(function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)})),yT(uT(i),"handleMouseLeave",(function(t){var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var n=i.props.onMouseLeave;wi(n)&&n(e,t)})),yT(uT(i),"handleOuterEvent",(function(t){var e,n=function(t){var e=t&&t.type;return e&&Ka[e]?Ka[e]:null}(t),r=fa(i.props,"".concat(n));n&&wi(r)&&r(null!==(e=/.*touch.*/i.test(n)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)})),yT(uT(i),"handleClick",(function(t){var e=i.getMouseInfo(t);if(e){var n=dT(dT({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;wi(r)&&r(n,t)}})),yT(uT(i),"handleMouseDown",(function(t){var e=i.props.onMouseDown;wi(e)&&e(i.getMouseInfo(t),t)})),yT(uT(i),"handleMouseUp",(function(t){var e=i.props.onMouseUp;wi(e)&&e(i.getMouseInfo(t),t)})),yT(uT(i),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),yT(uT(i),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])})),yT(uT(i),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])})),yT(uT(i),"triggerSyncEvent",(function(t){void 0!==i.props.syncId&&q_.emit(V_,i.props.syncId,t,i.eventEmitterSymbol)})),yT(uT(i),"applySyncEvent",(function(t){var e=i.props,n=e.layout,r=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(dT({dataStartIndex:a,dataEndIndex:c},p({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof r)s=r(d,t);else if("value"===r){s=-1;for(var y=0;y<d.length;y++)if(d[y].value===t.activeLabel){s=y;break}}var v=dT(dT({},h),{},{x:h.left,y:h.top}),g=Math.min(u,v.x+v.width),m=Math.min(l,v.y+v.height),b=d[s]&&d[s].value,w=OT(i.state,i.props.data,s),x=d[s]?{x:"horizontal"===n?d[s].coordinate:g,y:"horizontal"===n?m:d[s].coordinate}:bT;i.setState(dT(dT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(t)})),yT(uT(i),"verticalCoordinatesGenerator",(function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return eA(Tk(dT(dT(dT({},Vk.defaultProps),n),{},{ticks:nA(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)})),yT(uT(i),"horizontalCoordinatesGenerator",(function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return eA(Tk(dT(dT(dT({},Vk.defaultProps),n),{},{ticks:nA(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)})),yT(uT(i),"axesTicksGenerator",(function(t){return nA(t,!0)})),yT(uT(i),"renderCursor",(function(t){var e,r=i.state,o=r.isTooltipActive,a=r.activeCoordinate,c=r.activePayload,u=r.offset,l=r.activeTooltipIndex,s=r.tooltipAxisBandSize,f=i.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:o;if(!t||!t.props.cursor||!h||!a||"ScatterChart"!==n&&"axis"!==f)return null;var p,d=i.props.layout,y=OM;if("ScatterChart"===n)p=a,y=UM;else if("BarChart"===n)p=function(t,e,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:n.left+.5,y:"horizontal"===t?n.top+.5:e.y-i,width:"horizontal"===t?r:n.width-1,height:"horizontal"===t?n.height-1:r}}(d,a,u,s),y=DM;else if("radial"===d){var v=z_(a),g=v.cx,m=v.cy,b=v.radius;p={cx:g,cy:m,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},y=fM}else p={points:J_(d,a,u)},y=OM;var w=t.key||"_recharts-cursor",x=dT(dT(dT(dT({stroke:"#ccc",pointerEvents:"none"},u),p),cc(t.props.cursor)),{},{payload:c,payloadIndex:l,key:w,className:"recharts-tooltip-cursor"});return R(t.props.cursor)?z(t.props.cursor,x):Y(y,x)})),yT(uT(i),"renderPolarAxis",(function(t,e,n){var r=fa(t,"type.axisType"),o=fa(i.state,"".concat(r,"Map")),a=o&&o[t.props["".concat(r,"Id")]];return z(t,dT(dT({},a),{},{className:r,key:t.key||"".concat(e,"-").concat(n),ticks:nA(a,!0)}))})),yT(uT(i),"renderXAxis",(function(t,e,n){var r=i.state.xAxisMap[t.props.xAxisId];return i.renderAxis(r,t,e,n)})),yT(uT(i),"renderYAxis",(function(t,e,n){var r=i.state.yAxisMap[t.props.yAxisId];return i.renderAxis(r,t,e,n)})),yT(uT(i),"renderGrid",(function(t){var e=i.state,n=e.xAxisMap,r=e.yAxisMap,o=e.offset,a=i.props,c=a.width,u=a.height,l=Ba(n),s=B_(r,(function(t){return jE(t.domain,Number.isFinite)}))||Ba(r),f=t.props||{};return z(t,{key:t.key||"grid",x:Ta(f.x)?f.x:o.left,y:Ta(f.y)?f.y:o.top,width:Ta(f.width)?f.width:o.width,height:Ta(f.height)?f.height:o.height,xAxis:l,yAxis:s,offset:o,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||i.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||i.horizontalCoordinatesGenerator})})),yT(uT(i),"renderPolarGrid",(function(t){var e=t.props,n=e.radialLines,r=e.polarAngles,o=e.polarRadius,a=i.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=Ba(c),s=Ba(u),f=s.cx,h=s.cy,p=s.innerRadius,d=s.outerRadius;return z(t,{polarAngles:Array.isArray(r)?r:nA(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:nA(l,!0).map((function(t){return t.coordinate})),cx:f,cy:h,innerRadius:p,outerRadius:d,key:t.key||"polar-grid",radialLines:n})})),yT(uT(i),"renderLegend",(function(){var t=i.state.formattedGraphicalItems,e=i.props,n=e.children,r=e.width,o=e.height,a=i.props.margin||{},c=r-(a.left||0)-(a.right||0),u=Zj({children:n,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=iT(u,Q_);return z(s,dT(dT({},f),{},{chartWidth:r,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),yT(uT(i),"renderTooltip",(function(){var t,e=rc(i.props.children,fg);if(!e)return null;var n=i.state,r=n.isTooltipActive,o=n.activeCoordinate,a=n.activePayload,c=n.activeLabel,u=n.offset,l=null!==(t=e.props.active)&&void 0!==t?t:r;return z(e,{viewBox:dT(dT({},u),{},{x:u.left,y:u.top}),active:l,label:c,payload:l?a:[],coordinate:o})})),yT(uT(i),"renderBrush",(function(t){var e=i.props,n=e.margin,r=e.data,o=i.state,a=o.offset,c=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return z(t,{key:t.key||"_recharts-brush",onChange:iA(i.handleBrushChange,t.props.onChange),data:r,x:Ta(t.props.x)?t.props.x:a.left,y:Ta(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:Ta(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),yT(uT(i),"renderReferenceElement",(function(t,e,n){if(!t)return null;var r=uT(i).clipPathId,o=i.state,a=o.xAxisMap,c=o.yAxisMap,u=o.offset,l=t.props,s=l.xAxisId,f=l.yAxisId;return z(t,{key:t.key||"".concat(e,"-").concat(n),xAxis:a[s],yAxis:c[f],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:r})})),yT(uT(i),"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,r=t.basePoint,i=t.childIndex,o=t.isRange,a=[],c=e.props.key,l=e.item.props,s=l.activeDot,f=dT(dT({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Kj(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(i)},cc(s)),qa(s));return a.push(u.renderActiveDot(s,f)),r?a.push(u.renderActiveDot(s,dT(dT({},f),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a})),yT(uT(i),"renderGraphicChild",(function(t,e,n){var r=i.filterFormatItem(t,e,n);if(!r)return null;var o=i.getTooltipEventType(),a=i.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=rc(i.props.children,fg),h=r.props,p=h.points,d=h.isRange,y=h.baseLine,v=r.item.props,g=v.activeDot,m=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==o&&f&&"click"===f.props.trigger?O={onClick:iA(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:iA(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:iA(i.handleItemMouseEnter,t.props.onMouseEnter)});var S=z(t,dT(dT({},r.props),O));if(x){if(!(l>=0)){var j,A=(null!==(j=i.getItemByXY(i.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,M=A.item,P=void 0===M?t:M,E=A.childIndex,k=dT(dT(dT({},r.props),O),{},{activeIndex:E});return[z(P,k),null,null]}var _,T;if(u.dataKey&&!u.allowDuplicatedCategory){var C="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());_=La(p,C,s),T=d&&y&&La(y,C,s)}else _=null==p?void 0:p[l],T=d&&y&&y[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[z(t,dT(dT(dT({},r.props),O),{},{activeIndex:D})),null,null]}if(!ha(_))return[S].concat(sT(i.renderActivePoints({item:r,activePoint:_,basePoint:T,childIndex:l,isRange:d})))}return d?[S,null,null]:[S,null]})),yT(uT(i),"renderCustomized",(function(t,e,n){return z(t,dT(dT({key:"recharts-customized-".concat(n)},i.props),i.state))})),yT(uT(i),"renderMap",{CartesianGrid:{handler:i.renderGrid,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:i.renderReferenceElement},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:i.renderXAxis},YAxis:{handler:i.renderYAxis},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(e=t.id)&&void 0!==e?e:Na("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=Ng(i.triggeredAfterMouseMove,null!==(r=t.throttleDelay)&&void 0!==r?r:1e3/60),i.state={},i}return e=u,r=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=rc(this.props.children,fg);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return c.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,n=this.container,r=n.getBoundingClientRect(),i={top:(e=r).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=r.width/n.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=Ba(l).scale,h=Ba(s).scale,p=f&&f.invert?f.invert(o.chartX):null,d=h&&h.invert?h.invert(o.chartY):null;return dT(dT({},o),{},{xValue:p,yValue:d})}var y=ST(this.state,this.props.data,this.props.layout,c);return y?dT(dT({},o),y):null}},{key:"inRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,i=t/n,o=e/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=Ba(u);return MA({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=rc(t,fg),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),dT(dT({},qa(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){q_.on(V_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){q_.removeListener(V_,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===t||a.props.key===t.key||e===Ja(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,n,r){var i=this.props,o=i.width,a=i.height;return B.createElement(Vk,rT({},t,{className:Hr("recharts-".concat(t.axisType," ").concat(t.axisType),t.className),key:e.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:o,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,r=e.top,i=e.height,o=e.width;return B.createElement("defs",null,B.createElement("clipPath",{id:t},B.createElement("rect",{x:n,y:r,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=nT(e,2),r=n[0],i=n[1];return dT(dT({},t),{},yT({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=nT(e,2),r=n[0],i=n[1];return dT(dT({},t),{},yT({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,n=e.formattedGraphicalItems,r=e.activeItem;if(n&&n.length)for(var i=0,o=n.length;i<o;i++){var a=n[i],c=a.props,u=a.item,l=Ja(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return TM(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return MA(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(OP(a,r)||SP(a,r)||jP(a,r)){var h=EP({graphicalItem:a,activeTooltipItem:r,itemData:u.props.data}),p=void 0===u.props.activeIndex?h:u.props.activeIndex;return{graphicalItem:dT(dT({},a),{},{childIndex:p}),payload:jP(a,r)?u.props.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!ic(this))return null;var e,n,r=this.props,i=r.children,o=r.className,a=r.width,c=r.height,u=r.style,l=r.compact,s=r.title,f=r.desc,h=iT(r,tT),p=cc(h);if(l)return B.createElement(dc,rT({},p,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),sc(i,this.renderMap));this.props.accessibilityLayer&&(p.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,p.role=null!==(n=this.props.role)&&void 0!==n?n:"img",p.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},p.onFocus=function(){t.accessibilityManager.focus()});var d=this.parseEventsOfWrapper();return B.createElement("div",rT({className:Hr("recharts-wrapper",o),style:dT({position:"relative",cursor:"default",width:a,height:c},u)},d,{ref:function(e){t.container=e},role:"region"}),B.createElement(dc,rT({},p,{width:a,height:c,title:s,desc:f,style:mT}),this.renderClipPath(),sc(i,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],r&&oT(e.prototype,r),i&&oT(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(),yT(e,"displayName",n),yT(e,"defaultProps",dT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),yT(e,"getDerivedStateFromProps",(function(t,e){var n=t.dataKey,r=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin;if(void 0===e.updateId){var s=MT(t);return dT(dT(dT({},s),{},{updateId:0},p(dT(dT({props:t},s),{},{updateId:0}),e)),{},{prevDataKey:n,prevData:r,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(n!==e.prevDataKey||r!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!$a(l,e.prevMargin)){var f=MT(t),h={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},d=dT(dT({},ST(e,r,c)),{},{updateId:e.updateId+1}),y=dT(dT(dT({},f),h),d);return dT(dT(dT({},y),p(dT({props:t},y),e)),{},{prevDataKey:n,prevData:r,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!uc(i,e.prevChildren)){var v=!ha(r)?e.updateId:e.updateId+1;return dT(dT({updateId:v},p(dT(dT({props:t},e),{},{updateId:v}),e)),{},{prevChildren:i})}return null})),yT(e,"renderActiveDot",(function(t,e){var n;return n=R(t)?z(t,e):wi(t)?t(e):B.createElement(IM,e),B.createElement(mc,{className:"recharts-active-dot",key:e.key},n)})),e},_T=kT({chartName:"LineChart",GraphicalChild:u_,axisComponents:[{axisType:"xAxis",AxisComp:j_},{axisType:"yAxis",AxisComp:A_}],formatAxisMap:tk}),TT=kT({chartName:"AreaChart",GraphicalChild:S_,axisComponents:[{axisType:"xAxis",AxisComp:j_},{axisType:"yAxis",AxisComp:A_}],formatAxisMap:tk});const CT=({data:n,dataKey:r,width:i="100%",height:o="100%",areaType:a="monotone",showTooltip:c=!1,isAnimated:l=!1})=>{const{isNetGain:s}=Er({data:n,dataKey:r}),f=s?_r.mint():_r.coolElegance(),h=crypto.randomUUID(),{colors:p}=u();return e(Hg,{width:i,minHeight:o,children:t(TT,{data:n,margin:{top:20,right:0,left:0,bottom:20},style:{cursor:c?"crosshair":"default"},children:[e("defs",{children:t("linearGradient",{id:h,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:f,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:f,stopOpacity:0})]})}),e(A_,{domain:["dataMin","dataMax"],hide:!0}),e(S_,{type:a,dataKey:r,stroke:f,fill:`url(#${h})`,isAnimationActive:l,activeDot:n=>(({cx:n,cy:r,value:i,colors:o})=>t("svg",{x:n-27,y:r-59,width:"60",height:"68",viewBox:"0 0 54 68",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"13",y:"40",width:"28",height:"28",rx:"14",fill:o.brand[500],fillOpacity:"0.3"}),e("path",{d:"M25.7929 44.2071L26.5 44.9142L27.2071 44.2071L34.4142 37H40C47.1797 37 53 31.1797 53 24V14C53 6.8203 47.1797 1 40 1H14C6.8203 1 1 6.8203 1 14V24C1 31.1797 6.8203 37 14 37H18.5858L25.7929 44.2071Z",fill:_r.lighthouse(),stroke:"white",strokeWidth:"2"}),e("text",{textAnchor:"middle",dy:26,dx:27,fontSize:10,children:Fe({amount:i[1]})}),e("rect",{x:"19.9297",y:"47",width:"14",height:"14",rx:"7",fill:o.brand[500],stroke:"white",strokeWidth:"2"})]}))({...n,colors:p}),dot:!1}),c&&e(fg,{cursor:!1,content:()=>null})]})})},DT=()=>{const t=l({ssr:!1});return e(s,{children:e(f,{bgColor:{base:"rgba(255, 143, 163, 0.9)",sm:"rgba(255, 117, 143, 0.9)",md:"rgba(255, 77, 109, 0.9)",lg:"rgba(201, 24, 74, 0.9)",xl:"rgba(164, 19, 60, 0.9)","2xl":"rgba(128, 15, 47, 0.9)"},color:{base:"black",md:"white"},position:"absolute",top:"0",right:"0",padding:"2",fontSize:"xs",zIndex:"5",width:"10rem",children:t})})},NT=({children:t,...n})=>e(h,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:_r.coolElegance(),boxShadow:"none",borderRadius:"xl",...n,children:t}),IT=n=>{const{size:r,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,errorMessage:u,label:l,labelPosition:s="left",spaceBetween:f,...h}=n;let m;return c||(m=e(ct,{})),t(p,{as:d,flexDir:"column",isInvalid:Boolean(u),isDisabled:i,isReadOnly:o,isRequired:a,...h,children:[t(d,{w:"full",justifyContent:f?"space-between":"auto",children:["left"===s&&e(y,{size:r,m:"0",mr:"3",children:l}),e(v,{icon:m,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(u),size:r}),"right"===s&&e(y,{size:r,m:"0",ml:"3",children:l})]}),e(d,{w:"full",children:u&&e(g,{size:r,children:u})})]})},BT=n=>{const{size:r,isDisabled:i,isReadOnly:o,isRequired:a,spellCheck:c=!1,name:u,label:l,register:s,errorMessage:f,helperText:h,IconLeft:d,IconRight:v,...S}=n,j=kr(r),A=s?s(u):void 0;return t(p,{isInvalid:Boolean(f),isDisabled:i,isReadOnly:o,isRequired:a,children:[l&&e(y,{size:r,children:l}),t(m,{size:r,children:[d&&e(b,{children:e(d,{})}),e(w,{size:r,spellCheck:c,...A,...S}),v&&e(x,{children:e(v,{})})]}),f&&e(g,{size:r,children:f}),h&&e(O,{fontSize:j,children:h})]})},RT=({data:n,dataKey:r,width:i="100%",height:o="100%",lineType:a="linear",showTooltip:c=!1,isAnimated:u=!1,formatter:l})=>{const{isNetGain:s}=Er({data:n,dataKey:r}),f=s?_r.mint():_r.heroicRed();return e(Hg,{width:i,minHeight:o,children:t(_T,{data:n,style:{cursor:c?"crosshair":"default"},children:[e(A_,{domain:["dataMin","dataMax"],hide:!0}),e(u_,{isAnimationActive:u,type:a,dataKey:r,stroke:f,strokeWidth:"2",dot:!1,scale:"threshold"}),c&&e(fg,{cursor:!1,formatter:l})]})})},LT=n=>{const{children:r,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:h,...d}=n,v=kr(i),m=l?l(u):void 0;return t(p,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[h&&e(y,{size:i,children:h}),e(S,{icon:e(nt,{}),size:i,...m,...d,children:r}),s&&e(g,{size:i,children:s}),f&&e(O,{fontSize:v,children:f})]})},$T=n=>{const{label:r,IconLeft:i,IconRight:o,onClose:a,...c}=n,[u,l]=F(!0);return u?t(j,{...c,children:[i&&e(A,{as:i}),e(M,{children:r}),o&&e(P,{as:o}),a&&e(E,{onClick:()=>{a(),l(!1)}})]}):null},zT=n=>{const{description:r,title:i,onClose:o,isClosable:a,status:c}=n;let u,l;switch(c){case"error":l=G;break;case"success":l=ct;break;case"warning":l=jt,u="yellow";break;case"loading":u="brand",l=I;break;default:u="brand",l=jt}return t(k,{as:d,colorScheme:u,justifyContent:"space-between",status:c,children:[t(d,{alignItems:"center",children:[e(_,{children:e(l,{size:"sm"})}),t(T,{children:[e(C,{children:i}),e(D,{children:r})]})]}),a&&e(N,{onClick:o})]})};export{CT as CfAreaChart,DT as CfBreakpointDebugger,NT as CfCard,IT as CfCheckbox,BT as CfInput,RT as CfLineChart,LT as CfSelect,$T as CfTag,zT as CfToast,G as IconAlert,K as IconArrowDown,J as IconArrowUp,Wt as IconAvax,Q as IconBank,tt as IconBarChart,Yt as IconBch,Xt as IconBtc,et as IconCalendar,nt as IconCaretDown,rt as IconCaretLeft,it as IconCaretRight,ot as IconCaretUp,at as IconCent,ct as IconCheck,ut as IconChecking,lt as IconClose,st as IconConnect,ft as IconCopy,ht as IconDollar,pt as IconDownload,dt as IconEdit,yt as IconEnter,vt as IconEnterInverted,Gt as IconEth,gt as IconExchange,mt as IconFilter,bt as IconHelp,wt as IconHistory,xt as IconHome,Ot as IconIndicatorDown,St as IconIndicatorUp,jt as IconInfo,Kt as IconLink,Jt as IconLtc,At as IconMail,Mt as IconMenu,Pt as IconMore,Et as IconNotification,kt as IconOverview,_t as IconPercent,Tt as IconPieChart,Ct as IconPlus,Dt as IconReports,Nt as IconReservesSuccess,It as IconReservesWarning,Bt as IconSearch,Rt as IconSettings,Lt as IconSettlement,$t as IconSignIn,zt as IconSignOut,Ht as IconSort,Zt as IconSpinner,Ut as IconSupport,Ft as IconTrash,qt as IconUpload,Vt as IconUser,Qt as IconXlm,Ie as convertToUTCEpochTime,$r as coreTheme,Be as formatPercentage,Fe as formatUSD,Er as getDelta,_r as uiColors};
|
|
22
|
+
*/()();var Bd=ve(Td.exports),Rd=Object.getOwnPropertyNames,$d=Object.getOwnPropertySymbols,Ld=Object.prototype.hasOwnProperty;function zd(t,e){return function(n,r,i){return t(n,r,i)&&e(n,r,i)}}function Hd(t){return function(e,n,r){if(!e||!n||"object"!=typeof e||"object"!=typeof n)return t(e,n,r);var i=r.cache,o=i.get(e),a=i.get(n);if(o&&a)return o===n&&a===e;i.set(e,n),i.set(n,e);var c=t(e,n,r);return i.delete(e),i.delete(n),c}}function Ud(t){return Rd(t).concat($d(t))}var Fd=Object.hasOwn||function(t,e){return Ld.call(t,e)};function qd(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var Wd="_owner",Vd=Object.getOwnPropertyDescriptor,Yd=Object.keys;function Xd(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function Gd(t,e){return qd(t.getTime(),e.getTime())}function Kd(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.entries(),c=0;(r=a.next())&&!r.done;){for(var u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=r.value,h=f[0],p=f[1],d=i.value,y=d[0],v=d[1];l||o[s]||!(l=n.equals(h,y,c,s,t,e,n)&&n.equals(p,v,h,y,t,e,n))||(o[s]=!0),s++}if(!l)return!1;c++}return!0}function Zd(t,e,n){var r,i=Yd(t),o=i.length;if(Yd(e).length!==o)return!1;for(;o-- >0;){if((r=i[o])===Wd&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Fd(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1}return!0}function Jd(t,e,n){var r,i,o,a=Ud(t),c=a.length;if(Ud(e).length!==c)return!1;for(;c-- >0;){if((r=a[c])===Wd&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Fd(e,r))return!1;if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;if(i=Vd(t,r),o=Vd(e,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function Qd(t,e){return qd(t.valueOf(),e.valueOf())}function ty(t,e){return t.source===e.source&&t.flags===e.flags}function ey(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.values();(r=a.next())&&!r.done;){for(var c=e.values(),u=!1,l=0;(i=c.next())&&!i.done;)u||o[l]||!(u=n.equals(r.value,i.value,r.value,i.value,t,e,n))||(o[l]=!0),l++;if(!u)return!1}return!0}function ny(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}var ry="[object Arguments]",iy="[object Boolean]",oy="[object Date]",ay="[object Map]",cy="[object Number]",uy="[object Object]",ly="[object RegExp]",sy="[object Set]",fy="[object String]",hy=Array.isArray,py="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,dy=Object.assign,yy=Object.prototype.toString.call.bind(Object.prototype.toString);var vy=gy();function gy(t){void 0===t&&(t={});var e,n=t.circular,r=void 0!==n&&n,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,i={areArraysEqual:r?Jd:Xd,areDatesEqual:Gd,areMapsEqual:r?zd(Kd,Jd):Kd,areObjectsEqual:r?Jd:Zd,arePrimitiveWrappersEqual:Qd,areRegExpsEqual:ty,areSetsEqual:r?zd(ey,Jd):ey,areTypedArraysEqual:r?Jd:ny};if(n&&(i=dy({},i,n(i))),e){var o=Hd(i.areArraysEqual),a=Hd(i.areMapsEqual),c=Hd(i.areObjectsEqual),u=Hd(i.areSetsEqual);i=dy({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t),l=function(t){var e=t.areArraysEqual,n=t.areDatesEqual,r=t.areMapsEqual,i=t.areObjectsEqual,o=t.arePrimitiveWrappersEqual,a=t.areRegExpsEqual,c=t.areSetsEqual,u=t.areTypedArraysEqual;return function(t,l,s){if(t===l)return!0;if(null==t||null==l||"object"!=typeof t||"object"!=typeof l)return t!=t&&l!=l;var f=t.constructor;if(f!==l.constructor)return!1;if(f===Object)return i(t,l,s);if(hy(t))return e(t,l,s);if(null!=py&&py(t))return u(t,l,s);if(f===Date)return n(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return r(t,l,s);if(f===Set)return c(t,l,s);var h=yy(t);return h===oy?n(t,l,s):h===ly?a(t,l,s):h===ay?r(t,l,s):h===sy?c(t,l,s):h===uy?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):h===ry?i(t,l,s):(h===iy||h===cy||h===fy)&&o(t,l,s)}}(u),s=i?i(l):(e=l,function(t,n,r,i,o,a,c){return e(t,n,c)});return function(t){var e=t.circular,n=t.comparator,r=t.createState,i=t.equals,o=t.strict;if(r)return function(t,a){var c=r(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return n(t,a,{cache:l,equals:i,meta:s,strict:o})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return n(t,e,a)}}({circular:r,comparator:l,createState:o,equals:s,strict:c})}function my(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame((function r(i){n<0&&(n=i),i-n>e?(t(i),n=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(r)}))}function by(t){return by="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},by(t)}function wy(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return xy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xy(t,e)}(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Oy(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=wy(r),o=i[0],a=i.slice(1);return"number"==typeof o?void my(n.bind(null,a),o):(n(o),void my(n.bind(null,a)))}"object"===by(r)&&t(r),"function"==typeof r&&r()}};return{stop:function(){e=!0},start:function(t){e=!1,n(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function Sy(t){return Sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sy(t)}function jy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ay(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?jy(Object(n),!0).forEach((function(e){Py(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):jy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Py(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Sy(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Sy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Sy(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}gy({strict:!0}),gy({circular:!0}),gy({circular:!0,strict:!0}),gy({createInternalComparator:function(){return qd}}),gy({strict:!0,createInternalComparator:function(){return qd}}),gy({circular:!0,createInternalComparator:function(){return qd}}),gy({circular:!0,createInternalComparator:function(){return qd},strict:!0});var My=["Webkit","Moz","O","ms"],Ey=["-webkit-","-moz-","-o-","-ms-"],ky=["transform","transformOrigin","transition"],_y=function(t){return t},Ty=function(t,e){return Object.keys(e).reduce((function(n,r){return Ay(Ay({},n),{},Py({},r,t(r,e[r])))}),{})},Dy=function(t){return Object.keys(t).reduce((function(t,e){return Ay(Ay({},t),function(t,e){if(-1===ky.indexOf(t))return Py({},t,Number.isNaN(e)?0:e);var n="transition"===t,r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),i=e;return My.reduce((function(t,o,a){return n&&(i=e.replace(/(transform|transform-origin)/gim,"".concat(Ey[a],"$1"))),Ay(Ay({},t),{},Py({},o+r,i))}),{})}(e,t[e]))}),t)},Cy=function(t,e,n){return t.map((function(t){return"".concat((r=t,r.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(n);var r})).join(",")},Ny="production"!==process.env.NODE_ENV,Iy=function(t,e,n,r,i,o,a,c){if(Ny&&"undefined"!=typeof console&&console.warn&&(void 0===e&&console.warn("LogUtils requires an error message argument"),!t))if(void 0===e)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function By(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||$y(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ry(t){return function(t){if(Array.isArray(t))return Ly(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||$y(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $y(t,e){if(t){if("string"==typeof t)return Ly(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ly(t,e):void 0}}function Ly(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var zy=1e-4,Hy=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Uy=function(t,e){return t.map((function(t,n){return t*Math.pow(e,n)})).reduce((function(t,e){return t+e}))},Fy=function(t,e){return function(n){var r=Hy(t,e);return Uy(r,n)}},qy=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":r=0,i=0,o=1,a=1;break;case"ease":r=.25,i=.1,o=.25,a=1;break;case"ease-in":r=.42,i=0,o=1,a=1;break;case"ease-out":r=.42,i=0,o=.58,a=1;break;case"ease-in-out":r=0,i=0,o=.58,a=1;break;default:var c=e[0].split("(");if("cubic-bezier"===c[0]&&4===c[1].split(")")[0].split(",").length){var u=c[1].split(")")[0].split(",").map((function(t){return parseFloat(t)})),l=By(u,4);r=l[0],i=l[1],o=l[2],a=l[3]}else Iy(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",e)}Iy([r,o,i,a].every((function(t){return"number"==typeof t&&t>=0&&t<=1})),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",e);var s,f,h=Fy(r,o),p=Fy(i,a),d=(s=r,f=o,function(t){var e=Hy(s,f),n=[].concat(Ry(e.map((function(t,e){return t*e})).slice(1)),[0]);return Uy(n,t)}),y=function(t){for(var e,n=t>1?1:t,r=n,i=0;i<8;++i){var o=h(r)-n,a=d(r);if(Math.abs(o-n)<zy||a<zy)return p(r);r=(e=r-o/a)>1?1:e<0?0:e}return p(r)};return y.isStepper=!1,y},Wy=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return qy(r);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,c=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,c=r*a/1e3+t;return Math.abs(c-e)<zy&&Math.abs(o)<zy?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===r.split("(")[0])return qy(r);Iy(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",e)}return"function"==typeof r?r:(Iy(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function Vy(t){return Vy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vy(t)}function Yy(t){return function(t){if(Array.isArray(t))return Qy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Jy(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Gy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xy(Object(n),!0).forEach((function(e){Ky(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ky(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Vy(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Vy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Vy(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zy(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||Jy(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Jy(t,e){if(t){if("string"==typeof t)return Qy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qy(t,e):void 0}}function Qy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var tv=function(t,e,n){return t+(e-t)*n},ev=function(t){return t.from!==t.to},nv=function t(e,n,r){var i=Ty((function(t,n){if(ev(n)){var r=Zy(e(n.from,n.to,n.velocity),2),i=r[0],o=r[1];return Gy(Gy({},n),{},{from:i,velocity:o})}return n}),n);return r<1?Ty((function(t,e){return ev(e)?Gy(Gy({},e),{},{velocity:tv(e.velocity,i[t].velocity,r),from:tv(e.from,i[t].from,r)}):e}),n):t(e,i,r-1)},rv=function(t,e,n,r,i){var o,a,c,u,l=(o=t,a=e,[Object.keys(o),Object.keys(a)].reduce((function(t,e){return t.filter((function(t){return e.includes(t)}))}))),s=l.reduce((function(n,r){return Gy(Gy({},n),{},Ky({},r,[t[r],e[r]]))}),{}),f=l.reduce((function(n,r){return Gy(Gy({},n),{},Ky({},r,{from:t[r],velocity:0,to:e[r]}))}),{}),h=-1,p=function(){return null};return p=n.isStepper?function(r){c||(c=r);var o=(r-c)/n.dt;f=nv(n,f,o),i(Gy(Gy(Gy({},t),e),Ty((function(t,e){return e.from}),f))),c=r,Object.values(f).filter(ev).length&&(h=requestAnimationFrame(p))}:function(o){u||(u=o);var a=(o-u)/r,c=Ty((function(t,e){return tv.apply(void 0,Yy(e).concat([n(a)]))}),s);if(i(Gy(Gy(Gy({},t),e),c)),a<1)h=requestAnimationFrame(p);else{var l=Ty((function(t,e){return tv.apply(void 0,Yy(e).concat([n(1)]))}),s);i(Gy(Gy(Gy({},t),e),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(h)}}};function iv(t){return iv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iv(t)}var ov=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function av(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function cv(t){return function(t){if(Array.isArray(t))return uv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return uv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uv(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function lv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function sv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lv(Object(n),!0).forEach((function(e){fv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fv(t,e,n){return(e=pv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,pv(r.key),r)}}function pv(t){var e=function(t,e){if("object"!==iv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==iv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===iv(e)?e:String(e)}function dv(t,e){return dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},dv(t,e)}function yv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=mv(t);if(e){var i=mv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vv(this,n)}}function vv(t,e){if(e&&("object"===iv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return gv(t)}function gv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mv(t){return mv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mv(t)}var bv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&dv(t,e)}(o,I);var e,n,r,i=yv(o);function o(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var r=(n=i.call(this,t,e)).props,a=r.isActive,c=r.attributeName,u=r.from,l=r.to,s=r.steps,f=r.children,h=r.duration;if(n.handleStyleChange=n.handleStyleChange.bind(gv(n)),n.changeStyle=n.changeStyle.bind(gv(n)),!a||h<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:l}),vv(n);if(s&&s.length)n.state={style:s[0].style};else if(u){if("function"==typeof f)return n.state={style:u},vv(n);n.state={style:c?fv({},c,u):u}}else n.state={style:{}};return n}return e=o,(n=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,n=t.canBegin;this.mounted=!0,e&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.isActive,r=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(r)if(n){if(!(vy(t.to,a)&&t.canBegin&&t.isActive)){var l=!t.canBegin||!t.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var s=l||o?c:t.to;if(this.state&&u){var f={style:i?fv({},i,s):s};(i&&[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation(sv(sv({},this.props),{},{from:s,begin:0}))}}else{var h={style:i?fv({},i,a):a};this.state&&u&&(i&&u[i]!==a||!i&&u!==a)&&this.setState(h)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var t=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}},{key:"handleStyleChange",value:function(t){this.changeStyle(t)}},{key:"changeStyle",value:function(t){this.mounted&&this.setState({style:t})}},{key:"runJSAnimation",value:function(t){var e=this,n=t.from,r=t.to,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=rv(n,r,Wy(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,n=t.steps,r=t.begin,i=t.onAnimationStart,o=n[0],a=o.style,c=o.duration,u=void 0===c?0:c;return this.manager.start([i].concat(cv(n.reduce((function(t,r,i){if(0===i)return t;var o=r.duration,a=r.easing,c=void 0===a?"ease":a,u=r.style,l=r.properties,s=r.onAnimationEnd,f=i>0?n[i-1]:r,h=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(cv(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var p=Cy(h,o,c),d=sv(sv(sv({},f.style),u),{},{transition:p});return[].concat(cv(t),[d,o,s]).filter(_y)}),[a,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=Oy());var e=t.begin,n=t.duration,r=t.attributeName,i=t.to,o=t.easing,a=t.onAnimationStart,c=t.onAnimationEnd,u=t.steps,l=t.children,s=this.manager;if(this.unSubscribe=s.subscribe(this.handleStyleChange),"function"!=typeof o&&"function"!=typeof l&&"spring"!==o)if(u.length>1)this.runStepAnimation(t);else{var f=r?fv({},r,i):i,h=Cy(Object.keys(f),n,o);s.start([a,e,sv(sv({},f),{},{transition:h}),n,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var n=t.duration;t.attributeName,t.easing;var r=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=av(t,ov),o=N.count(e),a=Dy(this.state.style);if("function"==typeof e)return e(a);if(!r||0===o||n<=0)return e;var c=function(t){var e=t.props,n=e.style,r=void 0===n?{}:n,o=e.className;return B(t,sv(sv({},i),{},{style:sv(sv({},r),a),className:o}))};return 1===o?c(N.only(e)):D.createElement("div",null,N.map(e,(function(t){return c(t)})))}}])&&hv(e.prototype,n),r&&hv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();function wv(t){return wv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wv(t)}function xv(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==wv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==wv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}bv.displayName="Animate",bv.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},bv.propTypes={from:Bd.oneOfType([Bd.object,Bd.string]),to:Bd.oneOfType([Bd.object,Bd.string]),attributeName:Bd.string,duration:Bd.number,begin:Bd.number,easing:Bd.oneOfType([Bd.string,Bd.func]),steps:Bd.arrayOf(Bd.shape({duration:Bd.number.isRequired,style:Bd.object.isRequired,easing:Bd.oneOfType([Bd.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Bd.func]),properties:Bd.arrayOf("string"),onAnimationEnd:Bd.func})),children:Bd.oneOfType([Bd.node,Bd.func]),isActive:Bd.bool,canBegin:Bd.bool,onAnimationEnd:Bd.func,shouldReAnimate:Bd.bool,onAnimationStart:Bd.func,onAnimationReStart:Bd.func},void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)}),Bd.object,Bd.object,Bd.object,Bd.element,Bd.object,Bd.object,Bd.object,Bd.oneOfType([Bd.array,Bd.element]),Bd.any;var Ov="recharts-tooltip-wrapper",Sv={visibility:"hidden"};function jv(t){var e,n=t.coordinate,r=t.translateX,i=t.translateY;return Ar(Ov,(xv(e={},"".concat(Ov,"-right"),ya(r)&&n&&ya(n.x)&&r>=n.x),xv(e,"".concat(Ov,"-left"),ya(r)&&n&&ya(n.x)&&r<n.x),xv(e,"".concat(Ov,"-bottom"),ya(i)&&n&&ya(n.y)&&i>=n.y),xv(e,"".concat(Ov,"-top"),ya(i)&&n&&ya(n.y)&&i<n.y),e))}function Av(t){var e=t.allowEscapeViewBox,n=t.coordinate,r=t.key,i=t.offsetTopLeft,o=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(o&&ya(o[r]))return o[r];var s=n[r]-c-i,f=n[r]+i;return e[r]?a[r]?s:f:a[r]?s<u[r]?Math.max(f,u[r]):Math.max(s,u[r]):f+c>u[r]+l?Math.max(s,u[r]):Math.max(f,u[r])}function Pv(t){var e,n,r,i=t.allowEscapeViewBox,o=t.coordinate,a=t.offsetTopLeft,c=t.position,u=t.reverseDirection,l=t.tooltipBox,s=t.useTranslate3d,f=t.viewBox;return e=l.height>0&&l.width>0&&o?function(t){var e=t.translateX,n=t.translateY,r=t.useTranslate3d;return Dy({transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})}({translateX:n=Av({allowEscapeViewBox:i,coordinate:o,key:"x",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),translateY:r=Av({allowEscapeViewBox:i,coordinate:o,key:"y",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:s}):Sv,{cssProperties:e,cssClasses:jv({translateX:n,translateY:r,coordinate:o})}}function Mv(t){return Mv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mv(t)}function Ev(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ev(Object(n),!0).forEach((function(e){Iv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ev(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Bv(r.key),r)}}function Tv(t,e){return Tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Tv(t,e)}function Dv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Nv(t);if(e){var i=Nv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Mv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Cv(t)}(this,n)}}function Cv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Nv(t){return Nv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nv(t)}function Iv(t,e,n){return(e=Bv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bv(t){var e=function(t,e){if("object"!==Mv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Mv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Mv(e)?e:String(e)}var Rv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tv(t,e)}(o,I);var e,n,r,i=Dv(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Iv(Cv(t=i.call.apply(i,[this].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Iv(Cv(t),"lastBoundingBox",{width:-1,height:-1}),Iv(Cv(t),"handleKeyDown",(function(e){var n,r,i,o;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(n=null===(r=t.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==n?n:0,y:null!==(i=null===(o=t.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})})),t}return e=o,(n=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var t=this.wrapperNode.getBoundingClientRect();(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height)}else-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)===this.state.dismissedAtCoordinate.x&&(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var t=this,e=this.props,n=e.active,r=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.children,c=e.coordinate,u=e.hasPayload,l=e.isAnimationActive,s=e.offset,f=e.position,h=e.reverseDirection,p=e.useTranslate3d,d=e.viewBox,y=e.wrapperStyle,v=Pv({allowEscapeViewBox:r,coordinate:c,offsetTopLeft:s,position:f,reverseDirection:h,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:p,viewBox:d}),g=v.cssClasses,m=v.cssProperties,b=kv(kv(kv({},l&&n&&Dy({transition:"transform ".concat(i,"ms ").concat(o)})),m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&u?"visible":"hidden",position:"absolute",top:0,left:0},y);return D.createElement("div",{tabIndex:-1,role:"dialog",className:g,style:b,ref:function(e){t.wrapperNode=e}},a)}}])&&_v(e.prototype,n),r&&_v(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(),$v={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return $v[t]},set:function(t,e){if("string"==typeof t)$v[t]=e;else{var n=Object.keys(t);n&&n.length&&n.forEach((function(e){$v[e]=t[e]}))}}};function Lv(t){return Lv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lv(t)}function zv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?zv(Object(n),!0).forEach((function(e){Vv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Uv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Yv(r.key),r)}}function Fv(t,e){return Fv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fv(t,e)}function qv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Wv(t);if(e){var i=Wv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Lv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Wv(t){return Wv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wv(t)}function Vv(t,e,n){return(e=Yv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yv(t){var e=function(t,e){if("object"!==Lv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Lv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Lv(e)?e:String(e)}function Xv(t){return t.dataKey}var Gv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fv(t,e)}(o,I);var e,n,r,i=qv(o);function o(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"render",value:function(){var t=this.props,e=t.active,n=t.allowEscapeViewBox,r=t.animationDuration,i=t.animationEasing,o=t.content,a=t.coordinate,c=t.filterNull,u=t.isAnimationActive,l=t.offset,s=t.payload,f=t.payloadUniqBy,h=t.position,p=t.reverseDirection,d=t.useTranslate3d,y=t.viewBox,v=t.wrapperStyle,g=null!=s?s:[];c&&g.length&&(g=Zh(s.filter((function(t){return null!=t.value})),f,Xv));var m=g.length>0;return D.createElement(Rv,{allowEscapeViewBox:n,animationDuration:r,animationEasing:i,isAnimationActive:u,active:e,coordinate:a,hasPayload:m,offset:l,position:h,reverseDirection:p,useTranslate3d:d,viewBox:y,wrapperStyle:v},function(t,e){return D.isValidElement(t)?D.cloneElement(t,e):"function"==typeof t?D.createElement(t,e):D.createElement(_d,e)}(o,Hv(Hv({},this.props),{},{payload:g})))}}])&&Uv(e.prototype,n),r&&Uv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();Vv(Gv,"displayName","Tooltip"),Vv(Gv,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!$v.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Kv=_r,Zv=/\s/;var Jv=function(t){for(var e=t.length;e--&&Zv.test(t.charAt(e)););return e},Qv=Jv,tg=/^\s+/;var eg=function(t){return t?t.slice(0,Qv(t)+1).replace(tg,""):t},ng=eg,rg=Jr,ig=Vr,og=/^[-+]0x[0-9a-f]+$/i,ag=/^0b[01]+$/i,cg=/^0o[0-7]+$/i,ug=parseInt;var lg=function(t){if("number"==typeof t)return t;if(ig(t))return NaN;if(rg(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=rg(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=ng(t);var n=ag.test(t);return n||cg.test(t)?ug(t.slice(2),n?2:8):og.test(t)?NaN:+t},sg=Jr,fg=function(){return Kv.Date.now()},hg=lg,pg=Math.max,dg=Math.min;var yg=function(t,e,n){var r,i,o,a,c,u,l=0,s=!1,f=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function p(e){var n=r,o=i;return r=i=void 0,l=e,a=t.apply(o,n)}function d(t){var n=t-u;return void 0===u||n>=e||n<0||f&&t-l>=o}function y(){var t=fg();if(d(t))return v(t);c=setTimeout(y,function(t){var n=e-(t-u);return f?dg(n,o-(t-l)):n}(t))}function v(t){return c=void 0,h&&r?p(t):(r=i=void 0,a)}function g(){var t=fg(),n=d(t);if(r=arguments,i=this,u=t,n){if(void 0===c)return function(t){return l=t,c=setTimeout(y,e),s?p(t):a}(u);if(f)return clearTimeout(c),c=setTimeout(y,e),p(u)}return void 0===c&&(c=setTimeout(y,e)),a}return e=hg(e)||0,sg(n)&&(s=!!n.leading,o=(f="maxWait"in n)?pg(hg(n.maxWait)||0,e):o,h="trailing"in n?!!n.trailing:h),g.cancel=function(){void 0!==c&&clearTimeout(c),l=0,r=u=i=c=void 0},g.flush=function(){return void 0===c?a:v(fg())},g},vg=yg,gg=Jr;var mg=ve((function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return gg(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),vg(t,e,{leading:r,maxWait:e,trailing:i})}));function bg(t){return bg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bg(t)}function wg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function xg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wg(Object(n),!0).forEach((function(e){Og(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Og(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==bg(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==bg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bg(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return jg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jg(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ag=R((function(t,e){var n=t.aspect,r=t.initialDimension,i=void 0===r?{width:-1,height:-1}:r,o=t.width,a=void 0===o?"100%":o,c=t.height,u=void 0===c?"100%":c,l=t.minWidth,s=void 0===l?0:l,f=t.minHeight,h=t.maxHeight,p=t.children,d=t.debounce,y=void 0===d?0:d,v=t.id,g=t.className,m=t.onResize,b=t.style,w=void 0===b?{}:b,x=$(null),O=$();O.current=m,L(e,(function(){return x}));var S=Sg(z({containerWidth:i.width,containerHeight:i.height}),2),j=S[0],A=S[1],P=H((function(t,e){A((function(n){var r=Math.round(t),i=Math.round(e);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}}))}),[]);U((function(){var t=function(t){var e,n=t[0].contentRect,r=n.width,i=n.height;P(r,i),null===(e=O.current)||void 0===e||e.call(O,r,i)};y>0&&(t=mg(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),n=x.current.getBoundingClientRect(),r=n.width,i=n.height;return P(r,i),e.observe(x.current),function(){e.disconnect()}}),[P,y]);var M=F((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;ic(da(a)||da(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),ic(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=da(a)?t:a,i=da(u)?e:u;n&&n>0&&(r?i=r/n:i&&(r=i*n),h&&i>h&&(i=h)),ic(r>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",r,i,a,u,s,f,n);var o=!Array.isArray(p)&&aa.isElement(p)&&Ba(p.type).endsWith("Chart");return D.Children.map(p,(function(t){return aa.isElement(t)?B(t,xg({width:r,height:i},o?{style:xg({height:"100%",width:"100%",maxHeight:i,maxWidth:r},t.props.style)}:{})):t}))}),[n,p,u,h,f,s,j,a]);return D.createElement("div",{id:v?"".concat(v):void 0,className:Ar("recharts-responsive-container",g),style:xg(xg({},w),{},{width:a,height:u,minWidth:s,minHeight:f,maxHeight:h}),ref:x},M)})),Pg=function(t){return null};function Mg(t){return Mg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mg(t)}function Eg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Eg(Object(n),!0).forEach((function(e){_g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Eg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _g(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Mg(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Mg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Mg(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Pg.displayName="Cell";var Tg={widthCache:{},cacheCount:0},Dg={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Cg="recharts_measurement_span";var Ng=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||$v.isSsr)return{width:0,height:0};var n,r=(n=kg({},e),Object.keys(n).forEach((function(t){n[t]||delete n[t]})),n),i=JSON.stringify({text:t,copyStyle:r});if(Tg.widthCache[i])return Tg.widthCache[i];try{var o=document.getElementById(Cg);o||((o=document.createElement("span")).setAttribute("id",Cg),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=kg(kg({},Dg),r);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return Tg.widthCache[i]=u,++Tg.cacheCount>2e3&&(Tg.cacheCount=0,Tg.widthCache={}),u}catch(t){return{width:0,height:0}}};function Ig(t){return Ig="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ig(t)}function Bg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Rg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rg(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,o=function(t,e){if("object"!==Ig(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ig(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Ig(o)?o:String(o)),r)}var i,o}var Lg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Hg=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Ug=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Fg={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},qg=Object.keys(Fg),Wg="NaN";var Vg=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=n,this.num=e,this.unit=n,Number.isNaN(e)&&(this.unit=""),""===n||Hg.test(n)||(this.num=NaN,this.unit=""),qg.includes(n)&&(this.num=function(t,e){return t*Fg[e]}(e,n),this.unit="px")}var e,n,r;return e=t,r=[{key:"parse",value:function(e){var n,r=Bg(null!==(n=Ug.exec(e))&&void 0!==n?n:[],3),i=r[1],o=r[2];return new t(parseFloat(i),null!=o?o:"")}}],(n=[{key:"add",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num+e.num,this.unit)}},{key:"subtract",value:function(e){return this.unit!==e.unit?new t(NaN,""):new t(this.num-e.num,this.unit)}},{key:"multiply",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num*e.num,this.unit||e.unit)}},{key:"divide",value:function(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new t(NaN,""):new t(this.num/e.num,this.unit||e.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&$g(e.prototype,n),r&&$g(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Yg(t){if(t.includes(Wg))return Wg;for(var e=t;e.includes("*")||e.includes("/");){var n,r=Bg(null!==(n=Lg.exec(e))&&void 0!==n?n:[],4),i=r[1],o=r[2],a=r[3],c=Vg.parse(null!=i?i:""),u=Vg.parse(null!=a?a:""),l="*"===o?c.multiply(u):c.divide(u);if(l.isNaN())return Wg;e=e.replace(Lg,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Bg(null!==(s=zg.exec(e))&&void 0!==s?s:[],4),h=f[1],p=f[2],d=f[3],y=Vg.parse(null!=h?h:""),v=Vg.parse(null!=d?d:""),g="+"===p?y.add(v):y.subtract(v);if(g.isNaN())return Wg;e=e.replace(zg,g.toString())}return e}var Xg=/\(([^()]*)\)/;function Gg(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var n=Bg(Xg.exec(e),2)[1];e=e.replace(Xg,Yg(n))}return e}(e),e=Yg(e)}function Kg(t){var e=function(t){try{return Gg(t)}catch(t){return Wg}}(t.slice(5,-1));return e===Wg?"":e}var Zg=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Jg=["dx","dy","angle","className","breakAll"];function Qg(){return Qg=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qg.apply(this,arguments)}function tm(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function em(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return nm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nm(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var rm=/[ \f\n\r\t\v\u2028\u2029]+/,im=function(t){var e=t.children,n=t.breakAll,r=t.style;try{var i=[];return Ko(e)||(i=n?e.toString().split(""):e.toString().split(rm)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:Ng(t,r).width}})),spaceWidth:n?0:Ng(" ",r).width}}catch(t){return null}},om=function(t){return[{words:Ko(t)?[]:t.toString().split(rm)}]},am=function(t){var e=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||n)&&!$v.isSsr){var c=im({breakAll:o,children:r,style:i});return c?function(t,e,n,r,i){var o=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=ya(o),s=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(t,e){var o=e.word,a=e.width,c=t[t.length-1];if(c&&(null==r||i||c.width+a+n<Number(r)))c.words.push(o),c.width+=a+n;else{var u={words:[o],width:a};t.push(u)}return t}),[])},h=f(e);if(!l)return h;for(var p,d=function(t){var e=s.slice(0,t),n=im({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,i=f(n),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(r);return[a,i]},y=0,v=s.length-1,g=0;y<=v&&g<=s.length-1;){var m=Math.floor((y+v)/2),b=em(d(m-1),2),w=b[0],x=b[1],O=em(d(m),1)[0];if(w||O||(y=m+1),w&&O&&(v=m-1),!w&&O){p=x;break}g++}return p||h}({breakAll:o,children:r,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,n):om(r)}return om(r)},cm="#808080",um=function(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.lineHeight,a=void 0===o?"1em":o,c=t.capHeight,u=void 0===c?"0.71em":c,l=t.scaleToFit,s=void 0!==l&&l,f=t.textAnchor,h=void 0===f?"start":f,p=t.verticalAnchor,d=void 0===p?"end":p,y=t.fill,v=void 0===y?cm:y,g=tm(t,Zg),m=F((function(){return am({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:s,style:g.style,width:g.width})}),[g.breakAll,g.children,g.maxLines,s,g.style,g.width]),b=g.dx,w=g.dy,x=g.angle,O=g.className,S=g.breakAll,j=tm(g,Jg);if(!va(n)||!va(i))return null;var A,P=n+(ya(b)?b:0),M=i+(ya(w)?w:0);switch(d){case"start":A=Kg("calc(".concat(u,")"));break;case"middle":A=Kg("calc(".concat((m.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:A=Kg("calc(".concat(m.length-1," * -").concat(a,")"))}var E=[];if(s){var k=m[0].width,_=g.width;E.push("scale(".concat((ya(_)?_/k:1)/k,")"))}return x&&E.push("rotate(".concat(x,", ").concat(P,", ").concat(M,")")),E.length&&(j.transform=E.join(" ")),D.createElement("text",Qg({},Wa(j,!0),{x:P,y:M,className:Ar("recharts-text",O),textAnchor:h,fill:v.includes("url")?cm:v}),m.map((function(t,e){var n=t.words.join(S?"":" ");return D.createElement("tspan",{x:P,dy:0===e?A:a,key:n},n)})))};function lm(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function sm(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function fm(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=lm,n=(e,n)=>lm(t(e),n),r=(e,n)=>t(e)-n):(e=t===lm||t===sm?t:hm,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function hm(){return 0}function pm(t){return null===t?NaN:+t}const dm=fm(lm).right;fm(pm).center;var ym=dm;class vm extends Map{constructor(t,e=mm){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(gm(this,t))}has(t){return super.has(gm(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);t.has(r)&&(n=t.get(r),t.delete(r));return n}(this,t))}}function gm({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function mm(t){return null!==t&&"object"==typeof t?t.valueOf():t}function bm(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const wm=Math.sqrt(50),xm=Math.sqrt(10),Om=Math.sqrt(2);function Sm(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=wm?10:o>=xm?5:o>=Om?2:1;let c,u,l;return i<0?(l=Math.pow(10,-i)/a,c=Math.round(t*l),u=Math.round(e*l),c/l<t&&++c,u/l>e&&--u,l=-l):(l=Math.pow(10,i)*a,c=Math.round(t/l),u=Math.round(e/l),c*l<t&&++c,u*l>e&&--u),u<c&&.5<=n&&n<2?Sm(t,e,2*n):[c,u,l]}function jm(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[i,o,a]=r?Sm(e,t,n):Sm(t,e,n);if(!(o>=i))return[];const c=o-i+1,u=new Array(c);if(r)if(a<0)for(let t=0;t<c;++t)u[t]=(o-t)/-a;else for(let t=0;t<c;++t)u[t]=(o-t)*a;else if(a<0)for(let t=0;t<c;++t)u[t]=(i+t)/-a;else for(let t=0;t<c;++t)u[t]=(i+t)*a;return u}function Am(t,e,n){return Sm(t=+t,e=+e,n=+n)[2]}function Pm(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?Am(e,t,n):Am(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function Mm(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Em(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function km(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=void 0===i?bm:function(t=lm){if(t===lm)return bm;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(i);r>n;){if(r-n>600){const o=r-n+1,a=e-n+1,c=Math.log(o),u=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*u*(o-u)/o)*(a-o/2<0?-1:1);km(t,e,Math.max(n,Math.floor(e-a*u/o+l)),Math.min(r,Math.floor(e+(o-a)*u/o+l)),i)}const o=t[e];let a=n,c=r;for(_m(t,n,e),i(t[r],o)>0&&_m(t,n,r);a<c;){for(_m(t,a,c),++a,--c;i(t[a],o)<0;)++a;for(;i(t[c],o)>0;)--c}0===i(t[n],o)?_m(t,n,c):(++c,_m(t,c,r)),c<=e&&(n=c+1),e<=c&&(r=c-1)}return t}function _m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Tm(t,e,n=pm){if((r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function Dm(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Cm(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}const Nm=Symbol("implicit");function Im(){var t=new vm,e=[],n=[],r=Nm;function i(i){let o=t.get(i);if(void 0===o){if(r!==Nm)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new vm;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Im(e,n).unknown(r)},Dm.apply(i,arguments),i}function Bm(){var t,e,n=Im().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var n=r().length,f=a<o,h=f?a:o,p=f?o:a;t=(p-h)/Math.max(1,n-u+2*l),c&&(t=Math.floor(t)),h+=(p-h-t*(n-u))*s,e=t*(1-u),c&&(h=Math.round(h),e=Math.round(e));var d=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return h+t*e}));return i(f?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,c=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(c=!!t,f()):c},n.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},n.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},n.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},n.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},n.copy=function(){return Bm(r(),[o,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},Dm.apply(f(),arguments)}function Rm(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Rm(e())},t}function $m(){return Rm(Bm.apply(null,arguments).paddingInner(1))}function Lm(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function zm(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Hm(){}var Um=.7,Fm=1/Um,qm="\\s*([+-]?\\d+)\\s*",Wm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ym=/^#([0-9a-f]{3,8})$/,Xm=new RegExp(`^rgb\\(${qm},${qm},${qm}\\)$`),Gm=new RegExp(`^rgb\\(${Vm},${Vm},${Vm}\\)$`),Km=new RegExp(`^rgba\\(${qm},${qm},${qm},${Wm}\\)$`),Zm=new RegExp(`^rgba\\(${Vm},${Vm},${Vm},${Wm}\\)$`),Jm=new RegExp(`^hsl\\(${Wm},${Vm},${Vm}\\)$`),Qm=new RegExp(`^hsla\\(${Wm},${Vm},${Vm},${Wm}\\)$`),tb={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function eb(){return this.rgb().formatHex()}function nb(){return this.rgb().formatRgb()}function rb(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Ym.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ib(e):3===n?new cb(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ob(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ob(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Xm.exec(t))?new cb(e[1],e[2],e[3],1):(e=Gm.exec(t))?new cb(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Km.exec(t))?ob(e[1],e[2],e[3],e[4]):(e=Zm.exec(t))?ob(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Jm.exec(t))?pb(e[1],e[2]/100,e[3]/100,1):(e=Qm.exec(t))?pb(e[1],e[2]/100,e[3]/100,e[4]):tb.hasOwnProperty(t)?ib(tb[t]):"transparent"===t?new cb(NaN,NaN,NaN,0):null}function ib(t){return new cb(t>>16&255,t>>8&255,255&t,1)}function ob(t,e,n,r){return r<=0&&(t=e=n=NaN),new cb(t,e,n,r)}function ab(t,e,n,r){return 1===arguments.length?((i=t)instanceof Hm||(i=rb(i)),i?new cb((i=i.rgb()).r,i.g,i.b,i.opacity):new cb):new cb(t,e,n,null==r?1:r);var i}function cb(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ub(){return`#${hb(this.r)}${hb(this.g)}${hb(this.b)}`}function lb(){const t=sb(this.opacity);return`${1===t?"rgb(":"rgba("}${fb(this.r)}, ${fb(this.g)}, ${fb(this.b)}${1===t?")":`, ${t})`}`}function sb(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function fb(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function hb(t){return((t=fb(t))<16?"0":"")+t.toString(16)}function pb(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new yb(t,e,n,r)}function db(t){if(t instanceof yb)return new yb(t.h,t.s,t.l,t.opacity);if(t instanceof Hm||(t=rb(t)),!t)return new yb;if(t instanceof yb)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,c=o-i,u=(o+i)/2;return c?(a=e===o?(n-r)/c+6*(n<r):n===o?(r-e)/c+2:(e-n)/c+4,c/=u<.5?o+i:2-o-i,a*=60):c=u>0&&u<1?0:a,new yb(a,c,u,t.opacity)}function yb(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function vb(t){return(t=(t||0)%360)<0?t+360:t}function gb(t){return Math.max(0,Math.min(1,t||0))}function mb(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Lm(Hm,rb,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:eb,formatHex:eb,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return db(this).formatHsl()},formatRgb:nb,toString:nb}),Lm(cb,ab,zm(Hm,{brighter(t){return t=null==t?Fm:Math.pow(Fm,t),new cb(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Um:Math.pow(Um,t),new cb(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new cb(fb(this.r),fb(this.g),fb(this.b),sb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ub,formatHex:ub,formatHex8:function(){return`#${hb(this.r)}${hb(this.g)}${hb(this.b)}${hb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:lb,toString:lb})),Lm(yb,(function(t,e,n,r){return 1===arguments.length?db(t):new yb(t,e,n,null==r?1:r)}),zm(Hm,{brighter(t){return t=null==t?Fm:Math.pow(Fm,t),new yb(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Um:Math.pow(Um,t),new yb(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new cb(mb(t>=240?t-240:t+120,i,r),mb(t,i,r),mb(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new yb(vb(this.h),gb(this.s),gb(this.l),sb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=sb(this.opacity);return`${1===t?"hsl(":"hsla("}${vb(this.h)}, ${100*gb(this.s)}%, ${100*gb(this.l)}%${1===t?")":`, ${t})`}`}}));var bb=t=>()=>t;function wb(t){return 1==(t=+t)?xb:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):bb(isNaN(e)?n:e)}}function xb(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):bb(isNaN(t)?e:t)}var Ob=function t(e){var n=wb(e);function r(t,e){var r=n((t=ab(t)).r,(e=ab(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=xb(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Sb(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function jb(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Tb(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Ab(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Pb(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Mb(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Tb(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Eb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,kb=new RegExp(Eb.source,"g");function _b(t,e){var n,r,i,o=Eb.lastIndex=kb.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(n=Eb.exec(t))&&(r=kb.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,u.push({i:a,x:Pb(n,r)})),o=kb.lastIndex;return o<e.length&&(i=e.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)c[(n=u[r]).i]=n.x(t);return c.join("")})}function Tb(t,e){var n,r=typeof e;return null==e||"boolean"===r?bb(e):("number"===r?Pb:"string"===r?(n=rb(e))?(e=n,Ob):_b:e instanceof rb?Ob:e instanceof Date?Ab:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Sb:Array.isArray(e)?jb:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Mb:Pb)(t,e)}function Db(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Cb(t,e){void 0===e&&(e=t,t=Tb);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[e](t-e)}}function Nb(t){return+t}var Ib=[0,1];function Bb(t){return t}function Rb(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function $b(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Rb(i,r),o=n(a,o)):(r=Rb(r,i),o=n(o,a)),function(t){return o(r(t))}}function Lb(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=Rb(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=ym(t,e,1,r)-1;return o[n](i[n](e))}}function zb(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Hb(){var t,e,n,r,i,o,a=Ib,c=Ib,u=Tb,l=Bb;function s(){var t=Math.min(a.length,c.length);return l!==Bb&&(l=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?Lb:$b,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),c,u)))(t(l(e)))}return f.invert=function(n){return l(e((o||(o=r(c,a.map(t),Pb)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Nb),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=Db,s()},f.clamp=function(t){return arguments.length?(l=!!t||Bb,s()):l!==Bb},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,s()}}function Ub(){return Hb()(Bb,Bb)}function Fb(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function qb(t){return(t=Fb(Math.abs(t)))?t[1]:NaN}var Wb,Vb=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yb(t){if(!(e=Vb.exec(t)))throw new Error("invalid format: "+t);var e;return new Xb({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Xb(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Gb(t,e){var n=Fb(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Yb.prototype=Xb.prototype,Xb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Kb={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Gb(100*t,e),r:Gb,s:function(t,e){var n=Fb(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Wb=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Fb(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Zb(t){return t}var Jb,Qb,tw,ew=Array.prototype.map,nw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rw(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Zb:(e=ew.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,c=e[0],u=0;i>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),o.push(t.substring(i-=c,i+c)),!((u+=c+1)>r));)c=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",c=void 0===t.numerals?Zb:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ew.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Yb(t)).fill,n=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,y=t.comma,v=t.precision,g=t.trim,m=t.type;"n"===m?(y=!0,m="g"):Kb[m]||(void 0===v&&(v=12),g=!0,m="g"),(p||"0"===e&&"="===n)&&(p=!0,e="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?o:/[%p]/.test(m)?u:"",x=Kb[m],O=/[defgprs%]/.test(m);function S(t){var i,o,u,h=b,S=w;if("c"===m)S=x(t)+S,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:x(Math.abs(t),v),g&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),h=(j?"("===f?f:l:"-"===f||"("===f?"":f)+h,S=("s"===m?nw[8+Wb/3]:"")+S+(j&&"("===f?")":""),O)for(i=-1,o=t.length;++i<o;)if(48>(u=t.charCodeAt(i))||u>57){S=(46===u?a+t.slice(i+1):t.slice(i))+S,t=t.slice(0,i);break}}y&&!p&&(t=r(t,1/0));var A=h.length+t.length+S.length,P=A<d?new Array(d-A+1).join(e):"";switch(y&&p&&(t=r(P+t,P.length?d-S.length:1/0),P=""),n){case"<":t=h+t+S+P;break;case"=":t=h+P+t+S;break;case"^":t=P.slice(0,A=P.length>>1)+h+t+S+P.slice(A);break;default:t=P+h+t+S}return c(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return t+""},S}return{format:f,formatPrefix:function(t,e){var n=f(((t=Yb(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(qb(e)/3))),i=Math.pow(10,-r),o=nw[8+r/3];return function(t){return n(i*t)+o}}}}function iw(t,e,n,r){var i,o=Pm(t,e,n);switch((r=Yb(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(qb(e)/3)))-qb(Math.abs(t)))}(o,a))||(r.precision=i),tw(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,qb(e)-qb(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-qb(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return Qb(r)}function ow(t){var e=t.domain;return t.ticks=function(t){var n=e();return jm(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return iw(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,c=o.length-1,u=o[a],l=o[c],s=10;for(l<u&&(i=u,u=l,l=i,i=a,a=c,c=i);s-- >0;){if((i=Am(u,l,n))===r)return o[a]=u,o[c]=l,e(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function aw(){var t=Ub();return t.copy=function(){return zb(t,aw())},Dm.apply(t,arguments),ow(t)}function cw(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}function uw(t){return Math.log(t)}function lw(t){return Math.exp(t)}function sw(t){return-Math.log(-t)}function fw(t){return-Math.exp(-t)}function hw(t){return isFinite(t)?+("1e"+t):t<0?0:t}function pw(t){return(e,n)=>-t(-e,n)}function dw(t){const e=t(uw,lw),n=e.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}(o),i=function(t){return 10===t?hw:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),n()[0]<0?(r=pw(r),i=pw(i),t(sw,fw)):t(uw,lw),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=r(a),h=r(c);const p=null==t?10:+t;let d=[];if(!(o%1)&&h-f<p){if(f=Math.floor(f),h=Math.ceil(h),a>0){for(;f<=h;++f)for(l=1;l<o;++l)if(s=f<0?l/i(-f):l*i(f),!(s<a)){if(s>c)break;d.push(s)}}else for(;f<=h;++f)for(l=o-1;l>=1;--l)if(s=f>0?l/i(-f):l*i(f),!(s<a)){if(s>c)break;d.push(s)}2*d.length<p&&(d=jm(a,c,p))}else d=jm(f,h,Math.min(h-f,p)).map(i);return u?d.reverse():d},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=Yb(n)).precision||(n.trim=!0),n=Qb(n)),t===1/0)return n;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(r(t)));return e*o<o-.5&&(e*=o),e<=a?n(t):""}},e.nice=()=>n(cw(n(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),e}function yw(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function vw(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function gw(t){var e=1,n=t(yw(e),vw(e));return n.constant=function(n){return arguments.length?t(yw(e=+n),vw(e)):e},ow(n)}function mw(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function bw(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ww(t){return t<0?-t*t:t*t}function xw(t){var e=t(Bb,Bb),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(Bb,Bb):.5===n?t(bw,ww):t(mw(n),mw(1/n)):n},ow(e)}function Ow(){var t=xw(Hb());return t.copy=function(){return zb(t,Ow()).exponent(t.exponent())},Dm.apply(t,arguments),t}function Sw(t){return Math.sign(t)*t*t}Jb=rw({thousands:",",grouping:[3],currency:["$",""]}),Qb=Jb.format,tw=Jb.formatPrefix;const jw=new Date,Aw=new Date;function Pw(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let c;do{a.push(c=new Date(+n)),e(n,o),t(n)}while(c<n&&n<r);return a},i.filter=n=>Pw((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(jw.setTime(+e),Aw.setTime(+r),t(jw),t(Aw),Math.floor(n(jw,Aw))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Mw=Pw((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Mw.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Pw((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):Mw:null),Mw.range;const Ew=1e3,kw=6e4,_w=36e5,Tw=864e5,Dw=6048e5,Cw=2592e6,Nw=31536e6,Iw=Pw((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Ew)}),((t,e)=>(e-t)/Ew),(t=>t.getUTCSeconds()));Iw.range;const Bw=Pw((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ew)}),((t,e)=>{t.setTime(+t+e*kw)}),((t,e)=>(e-t)/kw),(t=>t.getMinutes()));Bw.range;const Rw=Pw((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*kw)}),((t,e)=>(e-t)/kw),(t=>t.getUTCMinutes()));Rw.range;const $w=Pw((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ew-t.getMinutes()*kw)}),((t,e)=>{t.setTime(+t+e*_w)}),((t,e)=>(e-t)/_w),(t=>t.getHours()));$w.range;const Lw=Pw((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*_w)}),((t,e)=>(e-t)/_w),(t=>t.getUTCHours()));Lw.range;const zw=Pw((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*kw)/Tw),(t=>t.getDate()-1));zw.range;const Hw=Pw((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Tw),(t=>t.getUTCDate()-1));Hw.range;const Uw=Pw((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Tw),(t=>Math.floor(t/Tw)));function Fw(t){return Pw((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*kw)/Dw))}Uw.range;const qw=Fw(0),Ww=Fw(1),Vw=Fw(2),Yw=Fw(3),Xw=Fw(4),Gw=Fw(5),Kw=Fw(6);function Zw(t){return Pw((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Dw))}qw.range,Ww.range,Vw.range,Yw.range,Xw.range,Gw.range,Kw.range;const Jw=Zw(0),Qw=Zw(1),tx=Zw(2),ex=Zw(3),nx=Zw(4),rx=Zw(5),ix=Zw(6);Jw.range,Qw.range,tx.range,ex.range,nx.range,rx.range,ix.range;const ox=Pw((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()));ox.range;const ax=Pw((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()));ax.range;const cx=Pw((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));cx.every=t=>isFinite(t=Math.floor(t))&&t>0?Pw((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null,cx.range;const ux=Pw((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function lx(t,e,n,r,i,o){const a=[[Iw,1,Ew],[Iw,5,5e3],[Iw,15,15e3],[Iw,30,3e4],[o,1,kw],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,_w],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Tw],[r,2,1728e5],[n,1,Dw],[e,1,Cw],[e,3,7776e6],[t,1,Nw]];function c(e,n,r){const i=Math.abs(n-e)/r,o=fm((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(Pm(e/Nw,n/Nw,r));if(0===o)return Mw.every(Math.max(Pm(e,n,r),1));const[c,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(u)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:c(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},c]}ux.every=t=>isFinite(t=Math.floor(t))&&t>0?Pw((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null,ux.range;const[sx,fx]=lx(ux,ax,Jw,Uw,Lw,Rw),[hx,px]=lx(cx,ox,qw,zw,$w,Bw);function dx(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function yx(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function vx(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var gx,mx,bx,wx={"-":"",_:" ",0:"0"},xx=/^\s*\d+/,Ox=/^%/,Sx=/[\\^$*+?|[\]().{}]/g;function jx(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function Ax(t){return t.replace(Sx,"\\$&")}function Px(t){return new RegExp("^(?:"+t.map(Ax).join("|")+")","i")}function Mx(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Ex(t,e,n){var r=xx.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function kx(t,e,n){var r=xx.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function _x(t,e,n){var r=xx.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Tx(t,e,n){var r=xx.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Dx(t,e,n){var r=xx.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Cx(t,e,n){var r=xx.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Nx(t,e,n){var r=xx.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ix(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Bx(t,e,n){var r=xx.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Rx(t,e,n){var r=xx.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function $x(t,e,n){var r=xx.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Lx(t,e,n){var r=xx.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function zx(t,e,n){var r=xx.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Hx(t,e,n){var r=xx.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Ux(t,e,n){var r=xx.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Fx(t,e,n){var r=xx.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function qx(t,e,n){var r=xx.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Wx(t,e,n){var r=Ox.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Vx(t,e,n){var r=xx.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Yx(t,e,n){var r=xx.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Xx(t,e){return jx(t.getDate(),e,2)}function Gx(t,e){return jx(t.getHours(),e,2)}function Kx(t,e){return jx(t.getHours()%12||12,e,2)}function Zx(t,e){return jx(1+zw.count(cx(t),t),e,3)}function Jx(t,e){return jx(t.getMilliseconds(),e,3)}function Qx(t,e){return Jx(t,e)+"000"}function tO(t,e){return jx(t.getMonth()+1,e,2)}function eO(t,e){return jx(t.getMinutes(),e,2)}function nO(t,e){return jx(t.getSeconds(),e,2)}function rO(t){var e=t.getDay();return 0===e?7:e}function iO(t,e){return jx(qw.count(cx(t)-1,t),e,2)}function oO(t){var e=t.getDay();return e>=4||0===e?Xw(t):Xw.ceil(t)}function aO(t,e){return t=oO(t),jx(Xw.count(cx(t),t)+(4===cx(t).getDay()),e,2)}function cO(t){return t.getDay()}function uO(t,e){return jx(Ww.count(cx(t)-1,t),e,2)}function lO(t,e){return jx(t.getFullYear()%100,e,2)}function sO(t,e){return jx((t=oO(t)).getFullYear()%100,e,2)}function fO(t,e){return jx(t.getFullYear()%1e4,e,4)}function hO(t,e){var n=t.getDay();return jx((t=n>=4||0===n?Xw(t):Xw.ceil(t)).getFullYear()%1e4,e,4)}function pO(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+jx(e/60|0,"0",2)+jx(e%60,"0",2)}function dO(t,e){return jx(t.getUTCDate(),e,2)}function yO(t,e){return jx(t.getUTCHours(),e,2)}function vO(t,e){return jx(t.getUTCHours()%12||12,e,2)}function gO(t,e){return jx(1+Hw.count(ux(t),t),e,3)}function mO(t,e){return jx(t.getUTCMilliseconds(),e,3)}function bO(t,e){return mO(t,e)+"000"}function wO(t,e){return jx(t.getUTCMonth()+1,e,2)}function xO(t,e){return jx(t.getUTCMinutes(),e,2)}function OO(t,e){return jx(t.getUTCSeconds(),e,2)}function SO(t){var e=t.getUTCDay();return 0===e?7:e}function jO(t,e){return jx(Jw.count(ux(t)-1,t),e,2)}function AO(t){var e=t.getUTCDay();return e>=4||0===e?nx(t):nx.ceil(t)}function PO(t,e){return t=AO(t),jx(nx.count(ux(t),t)+(4===ux(t).getUTCDay()),e,2)}function MO(t){return t.getUTCDay()}function EO(t,e){return jx(Qw.count(ux(t)-1,t),e,2)}function kO(t,e){return jx(t.getUTCFullYear()%100,e,2)}function _O(t,e){return jx((t=AO(t)).getUTCFullYear()%100,e,2)}function TO(t,e){return jx(t.getUTCFullYear()%1e4,e,4)}function DO(t,e){var n=t.getUTCDay();return jx((t=n>=4||0===n?nx(t):nx.ceil(t)).getUTCFullYear()%1e4,e,4)}function CO(){return"+0000"}function NO(){return"%"}function IO(t){return+t}function BO(t){return Math.floor(+t/1e3)}function RO(t){return new Date(t)}function $O(t){return t instanceof Date?+t:+new Date(+t)}function LO(t,e,n,r,i,o,a,c,u,l){var s=Ub(),f=s.invert,h=s.domain,p=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),g=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(t){return(u(t)<t?p:c(t)<t?d:a(t)<t?y:o(t)<t?v:r(t)<t?i(t)<t?g:m:n(t)<t?b:w)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?h(Array.from(t,$O)):h().map(RO)},s.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(cw(n,t)):s},s.copy=function(){return zb(s,LO(t,e,n,r,i,o,a,c,u,l))},s}function zO(){var t,e,n,r,i,o=0,a=1,c=Bb,u=!1;function l(e){return null==e||isNaN(e=+e)?i:c(0===n?.5:(e=(r(e)-t)*n,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var n,r;return arguments.length?([n,r]=e,c=t(n,r),l):[c(0),c(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),e=r(a=+a),n=t===e?0:1/(e-t),l):[o,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(c=t,l):c},l.range=s(Tb),l.rangeRound=s(Db),l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return r=i,t=i(o),e=i(a),n=t===e?0:1/(e-t),l}}function HO(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function UO(){var t=xw(zO());return t.copy=function(){return HO(t,UO()).exponent(t.exponent())},Cm.apply(t,arguments)}function FO(){var t,e,n,r,i,o,a,c=0,u=.5,l=1,s=1,f=Bb,h=!1;function p(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(s*t<s*e?r:i),f(h?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var n,r,i;return arguments.length?([n,r,i]=e,f=Cb(t,[n,r,i]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([c,u,l]=a,t=o(c=+c),e=o(u=+u),n=o(l=+l),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),s=e<t?-1:1,p):[c,u,l]},p.clamp=function(t){return arguments.length?(h=!!t,p):h},p.interpolator=function(t){return arguments.length?(f=t,p):f},p.range=d(Tb),p.rangeRound=d(Db),p.unknown=function(t){return arguments.length?(a=t,p):a},function(a){return o=a,t=a(c),e=a(u),n=a(l),r=t===e?0:.5/(e-t),i=e===n?0:.5/(n-e),s=e<t?-1:1,p}}function qO(){var t=xw(FO());return t.copy=function(){return HO(t,qO()).exponent(t.exponent())},Cm.apply(t,arguments)}!function(t){gx=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=Px(i),s=Mx(i),f=Px(o),h=Mx(o),p=Px(a),d=Mx(a),y=Px(c),v=Mx(c),g=Px(u),m=Mx(u),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:Xx,e:Xx,f:Qx,g:sO,G:hO,H:Gx,I:Kx,j:Zx,L:Jx,m:tO,M:eO,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:IO,s:BO,S:nO,u:rO,U:iO,V:aO,w:cO,W:uO,x:null,X:null,y:lO,Y:fO,Z:pO,"%":NO},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:dO,e:dO,f:bO,g:_O,G:DO,H:yO,I:vO,j:gO,L:mO,m:wO,M:xO,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:IO,s:BO,S:OO,u:SO,U:jO,V:PO,w:MO,W:EO,x:null,X:null,y:kO,Y:TO,Z:CO,"%":NO},x={a:function(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return j(t,e,n,r)},d:$x,e:$x,f:qx,g:Nx,G:Cx,H:zx,I:zx,j:Lx,L:Fx,m:Rx,M:Hx,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:Bx,Q:Vx,s:Yx,S:Ux,u:kx,U:_x,V:Tx,w:Ex,W:Dx,x:function(t,e,r){return j(t,n,e,r)},X:function(t,e,n){return j(t,r,e,n)},y:Nx,Y:Cx,Z:Ix,"%":Wx};function O(t,e){return function(n){var r,i,o,a=[],c=-1,u=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(i=wx[r=t.charAt(++c)])?r=t.charAt(++c):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(n){var r,i,o=vx(1900,void 0,1);if(j(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=yx(vx(o.y,0,1))).getUTCDay(),r=i>4||0===i?Qw.ceil(r):Qw(r),r=Hw.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=dx(vx(o.y,0,1))).getDay(),r=i>4||0===i?Ww.ceil(r):Ww(r),r=zw.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?yx(vx(o.y,0,1)).getUTCDay():dx(vx(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,yx(o)):dx(o)}}function j(t,e,n,r){for(var i,o,a=0,c=e.length,u=n.length;a<c;){if(r>=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in wx?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(e,b),w.x=O(n,w),w.X=O(r,w),w.c=O(e,w),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}(t),mx=gx.format,gx.parse,bx=gx.utcFormat,gx.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var WO=Object.freeze({__proto__:null,scaleBand:Bm,scaleDiverging:function t(){var e=ow(FO()(Bb));return e.copy=function(){return HO(e,t())},Cm.apply(e,arguments)},scaleDivergingLog:function t(){var e=dw(FO()).domain([.1,1,10]);return e.copy=function(){return HO(e,t()).base(e.base())},Cm.apply(e,arguments)},scaleDivergingPow:qO,scaleDivergingSqrt:function(){return qO.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=gw(FO());return e.copy=function(){return HO(e,t()).constant(e.constant())},Cm.apply(e,arguments)},scaleIdentity:function t(e){var n;function r(t){return null==t||isNaN(t=+t)?n:t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,Nb),r):e.slice()},r.unknown=function(t){return arguments.length?(n=t,r):n},r.copy=function(){return t(e).unknown(n)},e=arguments.length?Array.from(e,Nb):[0,1],ow(r)},scaleImplicit:Nm,scaleLinear:aw,scaleLog:function t(){const e=dw(Hb()).domain([1,10]);return e.copy=()=>zb(e,t()).base(e.base()),Dm.apply(e,arguments),e},scaleOrdinal:Im,scalePoint:$m,scalePow:Ow,scaleQuantile:function t(){var e,n=[],r=[],i=[];function o(){var t=0,e=Math.max(1,r.length);for(i=new Array(e-1);++t<e;)i[t-1]=Tm(n,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:r[ym(i,t)]}return a.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:n[0],e<i.length?i[e]:n[n.length-1]]},a.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(lm),o()},a.range=function(t){return arguments.length?(r=Array.from(t),o()):r.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return i.slice()},a.copy=function(){return t().domain(n).range(r).unknown(e)},Dm.apply(a,arguments)},scaleQuantize:function t(){var e,n=0,r=1,i=1,o=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[ym(o,t,0,i)]:e}function u(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*r-(t-i)*n)/(i+1);return c}return c.domain=function(t){return arguments.length?([n,r]=t,n=+n,r=+r,u()):[n,r]},c.range=function(t){return arguments.length?(i=(a=Array.from(t)).length-1,u()):a.slice()},c.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,o[0]]:e>=i?[o[i-1],r]:[o[e-1],o[e]]},c.unknown=function(t){return arguments.length?(e=t,c):c},c.thresholds=function(){return o.slice()},c.copy=function(){return t().domain([n,r]).range(a).unknown(e)},Dm.apply(ow(c),arguments)},scaleRadial:function t(){var e,n=Ub(),r=[0,1],i=!1;function o(t){var r=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(n(t));return isNaN(r)?e:i?Math.round(r):r}return o.invert=function(t){return n.invert(Sw(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((r=Array.from(t,Nb)).map(Sw)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(n.domain(),r).round(i).clamp(n.clamp()).unknown(e)},Dm.apply(o,arguments),ow(o)},scaleSequential:function t(){var e=ow(zO()(Bb));return e.copy=function(){return HO(e,t())},Cm.apply(e,arguments)},scaleSequentialLog:function t(){var e=dw(zO()).domain([1,10]);return e.copy=function(){return HO(e,t()).base(e.base())},Cm.apply(e,arguments)},scaleSequentialPow:UO,scaleSequentialQuantile:function t(){var e=[],n=Bb;function r(t){if(null!=t&&!isNaN(t=+t))return n((ym(e,t,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(lm),r},r.interpolator=function(t){return arguments.length?(n=t,r):n},r.range=function(){return e.map(((t,r)=>n(r/(e.length-1))))},r.quantiles=function(t){return Array.from({length:t+1},((n,r)=>function(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),(r=t.length)&&!isNaN(e=+e)){if(e<=0||r<2)return Em(t);if(e>=1)return Mm(t);var r,i=(r-1)*e,o=Math.floor(i),a=Mm(km(t,o).subarray(0,o+1));return a+(Em(t.subarray(o+1))-a)*(i-o)}}(e,r/t)))},r.copy=function(){return t(n).domain(e)},Cm.apply(r,arguments)},scaleSequentialSqrt:function(){return UO.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=gw(zO());return e.copy=function(){return HO(e,t()).constant(e.constant())},Cm.apply(e,arguments)},scaleSqrt:function(){return Ow.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=gw(Hb());return e.copy=function(){return zb(e,t()).constant(e.constant())},Dm.apply(e,arguments)},scaleThreshold:function t(){var e,n=[.5],r=[0,1],i=1;function o(t){return null!=t&&t<=t?r[ym(n,t,0,i)]:e}return o.domain=function(t){return arguments.length?(n=Array.from(t),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(n).range(r).unknown(e)},Dm.apply(o,arguments)},scaleTime:function(){return Dm.apply(LO(hx,px,cx,ox,qw,zw,$w,Bw,Iw,mx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Dm.apply(LO(sx,fx,ux,ax,Jw,Hw,Lw,Rw,Iw,bx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:iw}),VO=Vr;var YO=function(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===c?a==a&&!VO(a):n(a,c)))var c=a,u=o}return u};var XO=YO,GO=function(t,e){return t>e},KO=dh;var ZO=function(t){return t&&t.length?XO(t,KO,GO):void 0},JO=ve(ZO);var QO=YO,tS=function(t,e){return t<e},eS=dh;var nS=function(t){return t&&t.length?QO(t,eS,tS):void 0},rS=ve(nS),iS=Eo,oS=Mh,aS=Pp,cS=Pr;var uS=gp,lS=function(t,e){return(cS(t)?iS:aS)(t,oS(e))};var sS=ve((function(t,e){return uS(lS(t,e),1)})),fS=If;var hS,pS=ve((function(t,e){return fS(t,e)})),dS=1e9,yS=!0,vS="[DecimalError] ",gS=vS+"Invalid argument: ",mS=vS+"Exponent out of range: ",bS=Math.floor,wS=Math.pow,xS=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,OS=1e7,SS=7,jS=9007199254740991,AS=bS(jS/SS),PS={};function MS(t,e){var n,r,i,o,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),yS?RS(e,f):e;if(u=t.d,l=e.d,a=t.e,i=e.e,u=u.slice(),o=a-i){for(o<0?(r=u,o=-o,c=l.length):(r=l,i=a,c=u.length),o>(c=(a=Math.ceil(f/SS))>c?a+1:c+1)&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((c=u.length)-(o=l.length)<0&&(o=c,r=l,l=u,u=r),n=0;o;)n=(u[--o]=u[o]+l[o]+n)/OS|0,u[o]%=OS;for(n&&(u.unshift(n),++i),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=i,yS?RS(e,f):e}function ES(t,e,n){if(t!==~~t||t<e||t>n)throw Error(gS+t)}function kS(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)r=t[e]+"",(n=SS-r.length)&&(o+=NS(n)),o+=r;a=t[e],(n=SS-(r=a+"").length)&&(o+=NS(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}PS.absoluteValue=PS.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},PS.comparedTo=PS.cmp=function(t){var e,n,r,i,o=this;if(t=new o.constructor(t),o.s!==t.s)return o.s||-t.s;if(o.e!==t.e)return o.e>t.e^o.s<0?1:-1;for(e=0,n=(r=o.d.length)<(i=t.d.length)?r:i;e<n;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},PS.decimalPlaces=PS.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*SS;if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},PS.dividedBy=PS.div=function(t){return _S(this,new this.constructor(t))},PS.dividedToIntegerBy=PS.idiv=function(t){var e=this.constructor;return RS(_S(this,new e(t),0,1),e.precision)},PS.equals=PS.eq=function(t){return!this.cmp(t)},PS.exponent=function(){return DS(this)},PS.greaterThan=PS.gt=function(t){return this.cmp(t)>0},PS.greaterThanOrEqualTo=PS.gte=function(t){return this.cmp(t)>=0},PS.isInteger=PS.isint=function(){return this.e>this.d.length-2},PS.isNegative=PS.isneg=function(){return this.s<0},PS.isPositive=PS.ispos=function(){return this.s>0},PS.isZero=function(){return 0===this.s},PS.lessThan=PS.lt=function(t){return this.cmp(t)<0},PS.lessThanOrEqualTo=PS.lte=function(t){return this.cmp(t)<1},PS.logarithm=PS.log=function(t){var e,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(hS))throw Error(vS+"NaN");if(n.s<1)throw Error(vS+(n.s?"NaN":"-Infinity"));return n.eq(hS)?new r(0):(yS=!1,e=_S(IS(n,o),IS(t,o),o),yS=!0,RS(e,i))},PS.minus=PS.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?$S(e,t):MS(e,(t.s=-t.s,t))},PS.modulo=PS.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(vS+"NaN");return n.s?(yS=!1,e=_S(n,t,0,1).times(t),yS=!0,n.minus(e)):RS(new r(n),i)},PS.naturalExponential=PS.exp=function(){return TS(this)},PS.naturalLogarithm=PS.ln=function(){return IS(this)},PS.negated=PS.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},PS.plus=PS.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?MS(e,t):$S(e,(t.s=-t.s,t))},PS.precision=PS.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(gS+t);if(e=DS(i)+1,n=(r=i.d.length-1)*SS+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},PS.squareRoot=PS.sqrt=function(){var t,e,n,r,i,o,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(vS+"NaN")}for(t=DS(c),yS=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=kS(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=bS((t+1)/2)-(t<0||t%2),r=new u(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new u(i.toString()),i=a=(n=u.precision)+3;;)if(r=(o=r).plus(_S(c,o,a+2)).times(.5),kS(o.d).slice(0,a)===(e=kS(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(RS(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=e)break;a+=4}return yS=!0,RS(r,n)},PS.times=PS.mul=function(t){var e,n,r,i,o,a,c,u,l,s=this,f=s.constructor,h=s.d,p=(t=new f(t)).d;if(!s.s||!t.s)return new f(0);for(t.s*=s.s,n=s.e+t.e,(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],r=a=u+l;r--;)o.push(0);for(r=l;--r>=0;){for(e=0,i=u+r;i>r;)c=o[i]+p[r]*h[i-r-1]+e,o[i--]=c%OS|0,e=c/OS|0;o[i]=(o[i]+e)%OS|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,yS?RS(t,f.precision):t},PS.toDecimalPlaces=PS.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(ES(t,0,dS),void 0===e?e=r.rounding:ES(e,0,8),RS(n,t+DS(n)+1,e))},PS.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=LS(r,!0):(ES(t,0,dS),void 0===e?e=i.rounding:ES(e,0,8),n=LS(r=RS(new i(r),t+1,e),!0,t+1)),n},PS.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?LS(i):(ES(t,0,dS),void 0===e?e=o.rounding:ES(e,0,8),n=LS((r=RS(new o(i),t+DS(i)+1,e)).abs(),!1,t+DS(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},PS.toInteger=PS.toint=function(){var t=this,e=t.constructor;return RS(new e(t),DS(t)+1,e.rounding)},PS.toNumber=function(){return+this},PS.toPower=PS.pow=function(t){var e,n,r,i,o,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(hS);if(!(c=new u(c)).s){if(t.s<1)throw Error(vS+"Infinity");return c}if(c.eq(hS))return c;if(r=u.precision,t.eq(hS))return RS(c,r);if(a=(e=t.e)>=(n=t.d.length-1),o=c.s,a){if((n=l<0?-l:l)<=jS){for(i=new u(hS),e=Math.ceil(r/SS+4),yS=!1;n%2&&zS((i=i.times(c)).d,e),0!==(n=bS(n/2));)zS((c=c.times(c)).d,e);return yS=!0,t.s<0?new u(hS).div(i):RS(i,r)}}else if(o<0)throw Error(vS+"NaN");return o=o<0&&1&t.d[Math.max(e,n)]?-1:1,c.s=1,yS=!1,i=t.times(IS(c,r+12)),yS=!0,(i=TS(i)).s=o,i},PS.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?r=LS(i,(n=DS(i))<=o.toExpNeg||n>=o.toExpPos):(ES(t,1,dS),void 0===e?e=o.rounding:ES(e,0,8),r=LS(i=RS(new o(i),t,e),t<=(n=DS(i))||n<=o.toExpNeg,t)),r},PS.toSignificantDigits=PS.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(ES(t,1,dS),void 0===e?e=n.rounding:ES(e,0,8)),RS(new n(this),t,e)},PS.toString=PS.valueOf=PS.val=PS.toJSON=PS[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=DS(t),n=t.constructor;return LS(t,e<=n.toExpNeg||e>=n.toExpPos)};var _S=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%OS|0,r=n/OS|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]<e[n]?1:0,t[n]=r*OS+t[n]-e[n];for(;!t[0]&&t.length>1;)t.shift()}return function(r,i,o,a){var c,u,l,s,f,h,p,d,y,v,g,m,b,w,x,O,S,j,A=r.constructor,P=r.s==i.s?1:-1,M=r.d,E=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(vS+"Division by zero");for(u=r.e-i.e,S=E.length,x=M.length,d=(p=new A(P)).d=[],l=0;E[l]==(M[l]||0);)++l;if(E[l]>(M[l]||0)&&--u,(m=null==o?o=A.precision:a?o+(DS(r)-DS(i))+1:o)<0)return new A(0);if(m=m/SS+2|0,l=0,1==S)for(s=0,E=E[0],m++;(l<x||s)&&m--;l++)b=s*OS+(M[l]||0),d[l]=b/E|0,s=b%E|0;else{for((s=OS/(E[0]+1)|0)>1&&(E=t(E,s),M=t(M,s),S=E.length,x=M.length),w=S,v=(y=M.slice(0,S)).length;v<S;)y[v++]=0;(j=E.slice()).unshift(0),O=E[0],E[1]>=OS/2&&++O;do{s=0,(c=e(E,y,S,v))<0?(g=y[0],S!=v&&(g=g*OS+(y[1]||0)),(s=g/O|0)>1?(s>=OS&&(s=OS-1),1==(c=e(f=t(E,s),y,h=f.length,v=y.length))&&(s--,n(f,S<h?j:E,h))):(0==s&&(c=s=1),f=E.slice()),(h=f.length)<v&&f.unshift(0),n(y,f,v),-1==c&&(c=e(E,y,S,v=y.length))<1&&(s++,n(y,S<v?j:E,v)),v=y.length):0===c&&(s++,y=[0]),d[l++]=s,c&&y[0]?y[v++]=M[w]||0:(y=[M[w]],v=1)}while((w++<x||void 0!==y[0])&&m--)}return d[0]||d.shift(),p.e=u,RS(p,a?o+DS(p)+1:o)}}();function TS(t,e){var n,r,i,o,a,c=0,u=0,l=t.constructor,s=l.precision;if(DS(t)>16)throw Error(mS+DS(t));if(!t.s)return new l(hS);for(null==e?(yS=!1,a=s):a=e,o=new l(.03125);t.abs().gte(.1);)t=t.times(o),u+=5;for(a+=Math.log(wS(2,u))/Math.LN10*2+5|0,n=r=i=new l(hS),l.precision=a;;){if(r=RS(r.times(t),a),n=n.times(++c),kS((o=i.plus(_S(r,n,a))).d).slice(0,a)===kS(i.d).slice(0,a)){for(;u--;)i=RS(i.times(i),a);return l.precision=s,null==e?(yS=!0,RS(i,s)):i}i=o}}function DS(t){for(var e=t.e*SS,n=t.d[0];n>=10;n/=10)e++;return e}function CS(t,e,n){if(e>t.LN10.sd())throw yS=!0,n&&(t.precision=n),Error(vS+"LN10 precision limit exceeded");return RS(new t(t.LN10),e)}function NS(t){for(var e="";t--;)e+="0";return e}function IS(t,e){var n,r,i,o,a,c,u,l,s,f=1,h=t,p=h.d,d=h.constructor,y=d.precision;if(h.s<1)throw Error(vS+(h.s?"NaN":"-Infinity"));if(h.eq(hS))return new d(0);if(null==e?(yS=!1,l=y):l=e,h.eq(10))return null==e&&(yS=!0),CS(d,l);if(l+=10,d.precision=l,r=(n=kS(p)).charAt(0),o=DS(h),!(Math.abs(o)<15e14))return u=CS(d,l+2,y).times(o+""),h=IS(new d(r+"."+n.slice(1)),l-10).plus(u),d.precision=y,null==e?(yS=!0,RS(h,y)):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=kS((h=h.times(t)).d)).charAt(0),f++;for(o=DS(h),r>1?(h=new d("0."+n),o++):h=new d(r+"."+n.slice(1)),c=a=h=_S(h.minus(hS),h.plus(hS),l),s=RS(h.times(h),l),i=3;;){if(a=RS(a.times(s),l),kS((u=c.plus(_S(a,new d(i),l))).d).slice(0,l)===kS(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(CS(d,l+2,y).times(o+""))),c=_S(c,new d(f),l),d.precision=y,null==e?(yS=!0,RS(c,y)):c;c=u,i+=2}}function BS(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=bS(n/SS),t.d=[],r=(n+1)%SS,n<0&&(r+=SS),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=SS;r<i;)t.d.push(+e.slice(r,r+=SS));e=e.slice(r),r=SS-e.length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),yS&&(t.e>AS||t.e<-AS))throw Error(mS+n)}else t.s=0,t.e=0,t.d=[0];return t}function RS(t,e,n){var r,i,o,a,c,u,l,s,f=t.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=SS,i=e,l=f[s=0];else{if((s=Math.ceil((r+1)/SS))>=(o=f.length))return t;for(l=o=f[s],a=1;o>=10;o/=10)a++;i=(r%=SS)-SS+a}if(void 0!==n&&(c=l/(o=wS(10,a-i-1))%10|0,u=e<0||void 0!==f[s+1]||l%o,u=n<4?(c||u)&&(0==n||n==(t.s<0?3:2)):c>5||5==c&&(4==n||u||6==n&&(r>0?i>0?l/wS(10,a-i):0:f[s-1])%10&1||n==(t.s<0?8:7))),e<1||!f[0])return u?(o=DS(t),f.length=1,e=e-o-1,f[0]=wS(10,(SS-e%SS)%SS),t.e=bS(-e/SS)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==r?(f.length=s,o=1,s--):(f.length=s+1,o=wS(10,SS-r),f[s]=i>0?(l/wS(10,a-i)%wS(10,i)|0)*o:0),u)for(;;){if(0==s){(f[0]+=o)==OS&&(f[0]=1,++t.e);break}if(f[s]+=o,f[s]!=OS)break;f[s--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(yS&&(t.e>AS||t.e<-AS))throw Error(mS+DS(t));return t}function $S(t,e){var n,r,i,o,a,c,u,l,s,f,h=t.constructor,p=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),yS?RS(e,p):e;if(u=t.d,f=e.d,r=e.e,l=t.e,u=u.slice(),a=l-r){for((s=a<0)?(n=u,a=-a,c=f.length):(n=f,r=l,c=u.length),a>(i=Math.max(Math.ceil(p/SS),c)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((s=(i=u.length)<(c=f.length))&&(c=i),i=0;i<c;i++)if(u[i]!=f[i]){s=u[i]<f[i];break}a=0}for(s&&(n=u,u=f,f=n,e.s=-e.s),c=u.length,i=f.length-c;i>0;--i)u[c++]=0;for(i=f.length;i>a;){if(u[--i]<f[i]){for(o=i;o&&0===u[--o];)u[o]=OS-1;--u[o],u[i]+=OS}u[i]-=f[i]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--r;return u[0]?(e.d=u,e.e=r,yS?RS(e,p):e):new h(0)}function LS(t,e,n){var r,i=DS(t),o=kS(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+NS(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+NS(-i-1)+o,n&&(r=n-a)>0&&(o+=NS(r))):i>=a?(o+=NS(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+NS(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=NS(r))),t.s<0?"-"+o:o}function zS(t,e){if(t.length>e)return t.length=e,!0}function HS(t){if(!t||"object"!=typeof t)throw Error(vS+"Object expected");var e,n,r,i=["precision",1,dS,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(r=t[n=i[e]])){if(!(bS(r)===r&&r>=i[e+1]&&r<=i[e+2]))throw Error(gS+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(gS+n+": "+r);this[n]=new this(r)}return this}var US=function t(e){var n,r,i;function o(t){var e=this;if(!(e instanceof o))return new o(t);if(e.constructor=o,t instanceof o)return e.s=t.s,e.e=t.e,void(e.d=(t=t.d)?t.slice():t);if("number"==typeof t){if(0*t!=0)throw Error(gS+t);if(t>0)e.s=1;else{if(!(t<0))return e.s=0,e.e=0,void(e.d=[0]);t=-t,e.s=-1}return t===~~t&&t<1e7?(e.e=0,void(e.d=[t])):BS(e,t.toString())}if("string"!=typeof t)throw Error(gS+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!xS.test(t))throw Error(gS+t);BS(e,t)}if(o.prototype=PS,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=HS,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)e.hasOwnProperty(r=i[n++])||(e[r]=this[r]);return o.config(e),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});hS=new US(1);var FS=US;function qS(t){return function(t){if(Array.isArray(t))return WS(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return WS(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WS(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WS(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var VS=function(t){return t},YS={"@@functional/placeholder":!0},XS=function(t){return t===YS},GS=function(t){return function e(){return 0===arguments.length||1===arguments.length&&XS(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},KS=function t(e,n){return 1===e?n:GS((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==YS})).length;return a>=e?n.apply(void 0,i):t(e-a,GS((function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var o=i.map((function(t){return XS(t)?e.shift():t}));return n.apply(void 0,qS(o).concat(e))})))}))},ZS=function(t){return KS(t.length,t)},JS=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n},QS=ZS((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),tj=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return VS;var r=e.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},ej=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},nj=function(t){var e=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e&&i.every((function(t,n){return t===e[n]}))?n:(e=i,n=t.apply(void 0,i))}};var rj=ZS((function(t,e,n){var r=+t;return r+n*(+e-r)})),ij=ZS((function(t,e,n){var r=e-+t;return(n-t)/(r=r||1/0)})),oj=ZS((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))})),aj={rangeStep:function(t,e,n){for(var r=new FS(t),i=0,o=[];r.lt(e)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new FS(t).abs().log(10).toNumber())+1},interpolateNumber:rj,uninterpolateNumber:ij,uninterpolateTruncation:oj};function cj(t){return function(t){if(Array.isArray(t))return sj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||lj(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function uj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||lj(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lj(t,e){if(t){if("string"==typeof t)return sj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?sj(t,e):void 0}}function sj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fj(t){var e=uj(t,2),n=e[0],r=e[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function hj(t,e,n){if(t.lte(0))return new FS(0);var r=aj.getDigitCount(t.toNumber()),i=new FS(10).pow(r),o=t.div(i),a=1!==r?.05:.1,c=new FS(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?c:new FS(Math.ceil(c))}function pj(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(n-1)))return{step:new FS(0),tickMin:new FS(0),tickMax:new FS(0)};var o,a=hj(new FS(e).sub(t).div(n-1),r,i);o=t<=0&&e>=0?new FS(0):(o=new FS(t).add(e).div(2)).sub(new FS(o).mod(a));var c=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new FS(e).sub(o).div(a).toNumber()),l=c+u+1;return l>n?pj(t,e,n,r,i+1):(l<n&&(u=e>0?u+(n-l):u,c=e>0?c:c+(n-l)),{step:a,tickMin:o.sub(new FS(c).mul(a)),tickMax:o.add(new FS(u).mul(a))})}var dj=nj((function(t){var e=uj(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=uj(fj([n,r]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(cj(JS(0,i-1).map((function(){return 1/0})))):[].concat(cj(JS(0,i-1).map((function(){return-1/0}))),[l]);return n>r?ej(s):s}if(u===l)return function(t,e,n){var r=1,i=new FS(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new FS(10).pow(aj.getDigitCount(t)-1),i=new FS(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new FS(Math.floor(t)))}else 0===t?i=new FS(Math.floor((e-1)/2)):n||(i=new FS(Math.floor(t)));var a=Math.floor((e-1)/2);return tj(QS((function(t){return i.add(new FS(t-a).mul(r)).toNumber()})),JS)(0,e)}(u,i,o);var f=pj(u,l,a,o),h=f.step,p=f.tickMin,d=f.tickMax,y=aj.rangeStep(p,d.add(new FS(.1).mul(h)),h);return n>r?ej(y):y})),yj=nj((function(t,e){var n=uj(t,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=uj(fj([r,i]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var l=Math.max(e,2),s=hj(new FS(u).sub(c).div(l-1),o,0),f=[].concat(cj(aj.rangeStep(new FS(c),new FS(u).sub(new FS(.99).mul(s)),s)),[u]);return r>i?ej(f):f})),vj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function gj(){return gj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},gj.apply(this,arguments)}function mj(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return bj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bj(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wj(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function xj(t){var e=t.offset,n=t.layout,r=t.width,i=t.dataKey,o=t.data,a=t.dataPointFormatter,c=t.xAxis,u=t.yAxis,l=wj(t,vj),s=Wa(l),f=o.map((function(t){var o=a(t,i),l=o.x,f=o.y,h=o.value,p=o.errorVal;if(!p)return null;var d,y,v=[];if(Array.isArray(p)){var g=mj(p,2);d=g[0],y=g[1]}else d=y=p;if("vertical"===n){var m=c.scale,b=f+e,w=b+r,x=b-r,O=m(h-d),S=m(h+y);v.push({x1:S,y1:w,x2:S,y2:x}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:w,x2:O,y2:x})}else if("horizontal"===n){var j=u.scale,A=l+e,P=A-r,M=A+r,E=j(h-d),k=j(h+y);v.push({x1:P,y1:k,x2:M,y2:k}),v.push({x1:A,y1:E,x2:A,y2:k}),v.push({x1:P,y1:E,x2:M,y2:E})}return D.createElement(nc,gj({className:"recharts-errorBar",key:"bar-".concat(v.map((function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)})))},s),v.map((function(t){return D.createElement("line",gj({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return D.createElement(nc,{className:"recharts-errorBars"},f)}function Oj(t){return Oj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oj(t)}function Sj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function jj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Sj(Object(n),!0).forEach((function(e){Aj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Sj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Aj(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Oj(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Oj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Oj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}xj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},xj.displayName="ErrorBar";var Pj=function(t){var e,n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Ha(n,fp);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(t,e){var n=e.item,r=e.props,i=r.sectors||r.data||[];return t.concat(i.map((function(t){return{type:a.props.iconType||n.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(r||[]).map((function(t){var e=t.item,n=e.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:Ij(e),value:i||r,payload:e.props}})),jj(jj(jj({},a.props),fp.getWithHeight(a,i)),{},{payload:e,item:a})):null};function Mj(t){return Mj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mj(t)}function Ej(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function kj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ej(Object(n),!0).forEach((function(e){_j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ej(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _j(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Mj(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Mj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Mj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tj(t){return function(t){if(Array.isArray(t))return Dj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Dj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dj(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Cj(t,e,n){return Ko(t)||Ko(e)?n:va(e)?Go(t,e,n):ii(e)?e(t):n}function Nj(t,e,n,r){var i=sS(t,(function(t){return Cj(t,e)}));if("number"===n){var o=i.filter((function(t){return ya(t)||parseFloat(t)}));return o.length?[rS(o),JO(o)]:[1/0,-1/0]}return(r?i.filter((function(t){return!Ko(t)})):i).map((function(t){return va(t)||t instanceof Date?t:""}))}var Ij=function(t){var e,n=t.type.displayName,r=t.props,i=r.stroke,o=r.fill;switch(n){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},Bj=function(t,e,n,r,i){var o=za(e.props.children,xj).filter((function(t){return function(t,e,n){return!!Ko(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===n?"xAxis"===e:"y"!==n||"yAxis"===e)}(r,i,t.props.direction)}));if(o&&o.length){var a=o.map((function(t){return t.props.dataKey}));return t.reduce((function(t,e){var r=Cj(e,n,0),i=Array.isArray(r)?[rS(r),JO(r)]:[r,r],o=a.reduce((function(t,n){var r=Cj(e,n,0),o=i[0]-Math.abs(Array.isArray(r)?r[0]:r),a=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]}),[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]}),[1/0,-1/0])}return null},Rj=function(t,e,n,r,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===n&&o&&Bj(t,e,o,r)||Nj(t,o,n,i)}));if("number"===n)return o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(t,e){for(var n=0,r=e.length;n<r;n++)a[e[n]]||(a[e[n]]=!0,t.push(e[n]));return t}),[])},$j=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Lj=function(t,e,n,r){if(r)return t.map((function(t){return t.coordinate}));var i,o,a=t.map((function(t){return t.coordinate===e&&(i=!0),t.coordinate===n&&(o=!0),t.coordinate}));return i||a.push(e),o||a.push(n),a},zj=function(t,e,n){if(!t)return null;var r=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,c="scaleBand"===t.realScaleType?r.bandwidth()/2:2,u=(e||n)&&"category"===o&&r.bandwidth?r.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*pa(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks)?(t.ticks||t.niceTicks).map((function(t){var e=i?i.indexOf(t):t;return{coordinate:r(e)+u,value:t,offset:u}})).filter((function(t){return!ha(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:r(t)+u,value:t,index:e,offset:u}})):r.ticks&&!n?r.ticks(t.tickCount).map((function(t){return{coordinate:r(t)+u,value:t,offset:u}})):r.domain().map((function(t,e){return{coordinate:r(t)+u,value:i?i[t]:t,index:e,offset:u}}))},Hj=new WeakMap,Uj=function(t,e){if("function"!=typeof e)return t;Hj.has(t)||Hj.set(t,new WeakMap);var n=Hj.get(t);if(n.has(e))return n.get(e);var r=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return n.set(e,r),r},Fj=1e-4,qj={sign:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0,a=0;a<e;++a){var c=ha(t[a][n][1])?t[a][n][0]:t[a][n][1];c>=0?(t[a][n][0]=i,t[a][n][1]=i+c,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+c,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=t[n][o][1]||0;if(i)for(n=0;n<r;++n)t[n][o][1]/=i}Nu(t,e)}},none:Nu,silhouette:function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r<o;++r){for(var a=0,c=0;a<n;++a)c+=t[a][r][1]||0;i[r][1]+=i[r][0]=-c/2}Nu(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var c=0,u=0,l=0;c<i;++c){for(var s=t[e[c]],f=s[a][1]||0,h=(f-(s[a-1][1]||0))/2,p=0;p<c;++p){var d=t[e[p]];h+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,l+=h*f}n[a-1][1]+=n[a-1][0]=o,u&&(o-=l/u)}n[a-1][1]+=n[a-1][0]=o,Nu(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var n=0,r=t[0].length;n<r;++n)for(var i=0,o=0;o<e;++o){var a=ha(t[o][n][1])?t[o][n][0]:t[o][n][1];a>=0?(t[o][n][0]=i,t[o][n][1]=i+a,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}}},Wj=function(t,e,n){var r=e.map((function(t){return t.props.dataKey})),i=qj[n],o=function(){var t=Nc([]),e=Iu,n=Nu,r=Bu;function i(i){var o,a,c=Array.from(t.apply(this,arguments),Ru),u=c.length,l=-1;for(const t of i)for(o=0,++l;o<u;++o)(c[o][l]=[0,+r(t,c[o].key,l,i)]).data=t;for(o=0,a=Yc(e(c));o<u;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:Nc(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Nc(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Iu:"function"==typeof t?t:Nc(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Nu:t,i):n},i}().keys(r).value((function(t,e){return+Cj(t,e,0)})).order(Iu).offset(i);return o(t)},Vj=function(t){var e=t.axis,n=t.ticks,r=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!Ko(i[e.dataKey])){var c=Oa(n,"value",i[e.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=Cj(i,Ko(a)?e.dataKey:a);return Ko(u)?null:e.scale(u)},Yj=function(t){var e=t.axis,n=t.ticks,r=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return n[a]?n[a].coordinate+r:null;var c=Cj(o,e.dataKey,e.domain[a]);return Ko(c)?null:e.scale(c)-i/2+r},Xj=function(t,e,n){return Object.keys(t).reduce((function(r,i){var o=t[i].stackedData.reduce((function(t,r){var i=r.slice(e,n+1).reduce((function(t,e){return[rS(e.concat([t[0]]).filter(ya)),JO(e.concat([t[1]]).filter(ya))]}),[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},Gj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Kj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Zj=function(t,e,n){if(ii(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if(ya(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(Gj.test(t[0])){var i=+Gj.exec(t[0])[1];r[0]=e[0]-i}else ii(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if(ya(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(Kj.test(t[1])){var o=+Kj.exec(t[1])[1];r[1]=e[1]+o}else ii(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},Jj=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var i=sd(e,(function(t){return t.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var u=i[a],l=i[a-1];o=Math.min((u.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Qj=function(t,e,n){return t&&t.length?pS(t,Go(n,"type.defaultProps.domain"))?e:t:e},tA=function(t,e){var n=t.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,c=n.tooltipType,u=n.chartType;return kj(kj({},Wa(t)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:Ij(t),value:Cj(e,r),type:c,payload:e,chartType:u})};function eA(t){return eA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eA(t)}function nA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function rA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nA(Object(n),!0).forEach((function(e){iA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function iA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==eA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==eA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===eA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var oA=Math.PI/180,aA=function(t){return 180*t/Math.PI},cA=function(t,e,n,r){return{x:t+Math.cos(-oA*r)*n,y:e+Math.sin(-oA*r)*n}},uA=function(t,e){var n=t.x,r=t.y,i=e.cx,o=e.cy,a=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var c=(n-i)/a,u=Math.acos(c);return r>o&&(u=2*Math.PI-u),{radius:a,angle:aA(u),angleInRadian:u}},lA=function(t,e){var n=e.startAngle,r=e.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return t+360*Math.min(i,o)},sA=function(t,e){var n=t.x,r=t.y,i=uA({x:n,y:r},e),o=i.radius,a=i.angle,c=e.innerRadius,u=e.outerRadius;if(o<c||o>u)return!1;if(0===o)return!0;var l,s=function(t){var e=t.startAngle,n=t.endAngle,r=Math.floor(e/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:e-360*o,endAngle:n-360*o}}(e),f=s.startAngle,h=s.endAngle,p=a;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;l=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;l=p>=h&&p<=f}return l?rA(rA({},e),{},{radius:o,angle:lA(p,e)}):null};function fA(t){return fA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fA(t)}var hA=["offset"];function pA(t){return function(t){if(Array.isArray(t))return dA(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return dA(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dA(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function yA(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function vA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function gA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vA(Object(n),!0).forEach((function(e){mA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==fA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===fA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function bA(){return bA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},bA.apply(this,arguments)}var wA=function(t){var e=t.value,n=t.formatter,r=Ko(t.children)?e:t.children;return ii(n)?n(r):r},xA=function(t,e,n){var r,i,o=t.position,a=t.viewBox,c=t.offset,u=t.className,l=a,s=l.cx,f=l.cy,h=l.innerRadius,p=l.outerRadius,d=l.startAngle,y=l.endAngle,v=l.clockWise,g=(h+p)/2,m=function(t,e){return pa(e-t)*Math.min(Math.abs(e-t),360)}(d,y),b=m>=0?1:-1;"insideStart"===o?(r=d+b*c,i=v):"insideEnd"===o?(r=y-b*c,i=!v):"end"===o&&(r=y+b*c,i=v),i=m<=0?i:!i;var w=cA(s,f,g,r),x=cA(s,f,g,r+359*(i?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),S=Ko(t.id)?ma("recharts-radial-line-"):t.id;return D.createElement("text",bA({},n,{dominantBaseline:"central",className:Ar("recharts-radial-bar-label",u)}),D.createElement("defs",null,D.createElement("path",{id:S,d:O})),D.createElement("textPath",{xlinkHref:"#".concat(S)},e))},OA=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e,o=i.cx,a=i.cy,c=i.innerRadius,u=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===r){var s=cA(o,a,u+n,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var h=cA(o,a,(c+u)/2,l);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}},SA=function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,i=t.position,o=e,a=o.x,c=o.y,u=o.width,l=o.height,s=l>=0?1:-1,f=s*r,h=s>0?"end":"start",p=s>0?"start":"end",d=u>=0?1:-1,y=d*r,v=d>0?"end":"start",g=d>0?"start":"end";if("top"===i)return gA(gA({},{x:a+u/2,y:c-s*r,textAnchor:"middle",verticalAnchor:h}),n?{height:Math.max(c-n.y,0),width:u}:{});if("bottom"===i)return gA(gA({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(c+l),0),width:u}:{});if("left"===i){var m={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return gA(gA({},m),n?{width:Math.max(m.x-n.x,0),height:l}:{})}if("right"===i){var b={x:a+u+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return gA(gA({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:u,height:l}:{};return"insideLeft"===i?gA({x:a+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===i?gA({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?gA({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===i?gA({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:h},w):"insideTopLeft"===i?gA({x:a+y,y:c+f,textAnchor:g,verticalAnchor:p},w):"insideTopRight"===i?gA({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===i?gA({x:a+y,y:c+l-f,textAnchor:g,verticalAnchor:h},w):"insideBottomRight"===i?gA({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:h},w):Qr(i)&&(ya(i.x)||da(i.x))&&(ya(i.y)||da(i.y))?gA({x:a+ba(i.x,u),y:c+ba(i.y,l),textAnchor:"end",verticalAnchor:"end"},w):gA({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},jA=function(t){return"cx"in t&&ya(t.cx)};function AA(t){var e,n=t.offset,r=gA({offset:void 0===n?5:n},yA(t,hA)),i=r.viewBox,o=r.position,a=r.value,c=r.children,u=r.content,l=r.className,s=void 0===l?"":l,f=r.textBreakAll;if(!i||Ko(a)&&Ko(c)&&!C(u)&&!ii(u))return null;if(C(u))return B(u,r);if(ii(u)){if(C(e=q(u,r)))return e}else e=wA(r);var h=jA(i),p=Wa(r,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return xA(r,e,p);var d=h?OA(r):SA(r);return D.createElement(um,bA({className:Ar("recharts-label",s)},p,d,{breakAll:f}),e)}AA.displayName="Label";var PA=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,h=t.top,p=t.left,d=t.width,y=t.height,v=t.clockWise,g=t.labelViewBox;if(g)return g;if(ya(d)&&ya(y)){if(ya(s)&&ya(f))return{x:s,y:f,width:d,height:y};if(ya(h)&&ya(p))return{x:h,y:p,width:d,height:y}}return ya(s)&&ya(f)?{x:s,y:f,width:0,height:0}:ya(e)&&ya(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};AA.parseViewBox=PA,AA.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=t.children,i=PA(t),o=za(r,AA).map((function(t,n){return B(t,{viewBox:e||i,key:"label-".concat(n)})}));if(!n)return o;var a=function(t,e){return t?!0===t?D.createElement(AA,{key:"label-implicit",viewBox:e}):va(t)?D.createElement(AA,{key:"label-implicit",viewBox:e,value:t}):C(t)?t.type===AA?B(t,{key:"label-implicit",viewBox:e}):D.createElement(AA,{key:"label-implicit",content:t,viewBox:e}):ii(t)?D.createElement(AA,{key:"label-implicit",content:t,viewBox:e}):Qr(t)?D.createElement(AA,bA({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat(pA(o))};var MA=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},EA=ve(MA);function kA(t){return kA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kA(t)}var _A=["valueAccessor"],TA=["data","dataKey","clockWise","id","textBreakAll"];function DA(t){return function(t){if(Array.isArray(t))return CA(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return CA(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CA(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CA(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function NA(){return NA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},NA.apply(this,arguments)}function IA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function BA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?IA(Object(n),!0).forEach((function(e){RA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):IA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function RA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==kA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==kA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===kA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $A(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var LA=function(t){return Array.isArray(t.value)?EA(t.value):t.value};function zA(t){var e=t.valueAccessor,n=void 0===e?LA:e,r=$A(t,_A),i=r.data,o=r.dataKey,a=r.clockWise,c=r.id,u=r.textBreakAll,l=$A(r,TA);return i&&i.length?D.createElement(nc,{className:"recharts-label-list"},i.map((function(t,e){var r=Ko(o)?n(t,e):Cj(t&&t.payload,o),i=Ko(c)?{}:{id:"".concat(c,"-").concat(e)};return D.createElement(AA,NA({},Wa(t,!0),l,i,{parentViewBox:t.parentViewBox,value:r,textBreakAll:u,viewBox:AA.parseViewBox(Ko(a)?t:BA(BA({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}function HA(t){return HA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},HA(t)}function UA(){return UA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},UA.apply(this,arguments)}function FA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?FA(Object(n),!0).forEach((function(e){WA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):FA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function WA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==HA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==HA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===HA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}zA.displayName="LabelList",zA.renderCallByParent=function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&n&&!t.label)return null;var r=za(t.children,zA).map((function(t,n){return B(t,{data:e,key:"labelList-".concat(n)})}));return n?[function(t,e){return t?!0===t?D.createElement(zA,{key:"labelList-implicit",data:e}):D.isValidElement(t)||ii(t)?D.createElement(zA,{key:"labelList-implicit",data:e,content:t}):Qr(t)?D.createElement(zA,NA({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(DA(r)):r};var VA=function(t){var e=t.cx,n=t.cy,r=t.radius,i=t.angle,o=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+r,s=Math.asin(c/l)/oA,f=u?i:i+o*s,h=u?i-o*s:i;return{center:cA(e,n,l,f),circleTangency:cA(e,n,r,f),lineTangency:cA(e,n,l*Math.cos(s*oA),h),theta:s}},YA=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return pa(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+a,u=cA(e,n,i,o),l=cA(e,n,i,c),s="M ".concat(u.x,",").concat(u.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=cA(e,n,r,o),h=cA(e,n,r,c);s+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(n," Z");return s},XA={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},GA=function(t){var e=qA(qA({},XA),t),n=e.cx,r=e.cy,i=e.innerRadius,o=e.outerRadius,a=e.cornerRadius,c=e.forceCornerRadius,u=e.cornerIsExternal,l=e.startAngle,s=e.endAngle,f=e.className;if(o<i||l===s)return null;var h,p=Ar("recharts-sector",f),d=o-i,y=ba(a,d,0,!0);return h=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=pa(l-u),f=VA({cx:e,cy:n,radius:i,angle:u,sign:s,cornerRadius:o,cornerIsExternal:c}),h=f.circleTangency,p=f.lineTangency,d=f.theta,y=VA({cx:e,cy:n,radius:i,angle:l,sign:-s,cornerRadius:o,cornerIsExternal:c}),v=y.circleTangency,g=y.lineTangency,m=y.theta,b=c?Math.abs(u-l):Math.abs(u-l)-d-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):YA({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(h.x,",").concat(h.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(g.x,",").concat(g.y,"\n ");if(r>0){var x=VA({cx:e,cy:n,radius:r,angle:u,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,j=x.theta,A=VA({cx:e,cy:n,radius:r,angle:l,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),P=A.circleTangency,M=A.lineTangency,E=A.theta,k=c?Math.abs(u-l):Math.abs(u-l)-j-E;if(k<0&&0===o)return"".concat(w,"L").concat(e,",").concat(n,"Z");w+="L".concat(M.x,",").concat(M.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(P.x,",").concat(P.y,"\n A").concat(r,",").concat(r,",0,").concat(+(k>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else w+="L".concat(e,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,d/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:s}):YA({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:s}),D.createElement("path",UA({},Wa(e,!0),{className:p,d:h,role:"img"}))};function KA(t){return KA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},KA(t)}function ZA(){return ZA=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ZA.apply(this,arguments)}function JA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function QA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?JA(Object(n),!0).forEach((function(e){tP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):JA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==KA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==KA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===KA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var eP={curveBasisClosed:function(t){return new xu(t)},curveBasisOpen:function(t){return new Ou(t)},curveBasis:function(t){return new wu(t)},curveBumpX:function(t){return new tu(t,!0)},curveBumpY:function(t){return new tu(t,!1)},curveLinearClosed:function(t){return new Su(t)},curveLinear:Gc,curveMonotoneX:function(t){return new Eu(t)},curveMonotoneY:function(t){return new ku(t)},curveNatural:function(t){return new Tu(t)},curveStep:function(t){return new Cu(t,.5)},curveStepAfter:function(t){return new Cu(t,1)},curveStepBefore:function(t){return new Cu(t,0)}},nP=function(t){return t.x===+t.x&&t.y===+t.y},rP=function(t){return t.x},iP=function(t){return t.y},oP=function(t){var e,n=t.type,r=void 0===n?"linear":n,i=t.points,o=void 0===i?[]:i,a=t.baseLine,c=t.layout,u=t.connectNulls,l=void 0!==u&&u,s=function(t,e){if(ii(t))return t;var n="curve".concat(Cc(t));return"curveMonotone"!==n&&"curveBump"!==n||!e?eP[n]||Gc:eP["".concat(n).concat("vertical"===e?"Y":"X")]}(r,c),f=l?o.filter((function(t){return nP(t)})):o;if(Array.isArray(a)){var h=l?a.filter((function(t){return nP(t)})):a,p=f.map((function(t,e){return QA(QA({},t),{},{base:h[e]})}));return(e="vertical"===c?Qc().y(iP).x1(rP).x0((function(t){return t.base.x})):Qc().x(rP).y1(iP).y0((function(t){return t.base.y}))).defined(nP).curve(s),e(p)}return(e="vertical"===c&&ya(a)?Qc().y(iP).x1(rP).x0(a):ya(a)?Qc().x(rP).y1(iP).y0(a):Jc().x(rP).y(iP)).defined(nP).curve(s),e(f)},aP=function(t){var e=t.className,n=t.points,r=t.path,i=t.pathRef;if(!(n&&n.length||r))return null;var o=n&&n.length?oP(t):r;return D.createElement("path",ZA({},Wa(t),ka(t),{className:Ar("recharts-curve",e),d:o,ref:i}))};function cP(t){return cP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cP(t)}function uP(){return uP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},uP.apply(this,arguments)}function lP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return sP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sP(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function fP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?fP(Object(n),!0).forEach((function(e){pP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function pP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==cP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==cP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===cP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dP=function(t,e,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),c=r>=0?1:-1,u=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),o+="L ".concat(t+n-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+n,",").concat(e+c*s[1])),o+="L ".concat(t+n,",").concat(e+r-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+n-u*s[2],",").concat(e+r)),o+="L ".concat(t+u*s[3],",").concat(e+r),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+r-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);o="M ".concat(t,",").concat(e+c*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+u*h,",").concat(e,"\n L ").concat(t+n-u*h,",").concat(e,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+n,",").concat(e+c*h,"\n L ").concat(t+n,",").concat(e+r-c*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+n-u*h,",").concat(e+r,"\n L ").concat(t+u*h,",").concat(e+r,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t,",").concat(e+r-c*h," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},yP=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,i=e.x,o=e.y,a=e.width,c=e.height;if(Math.abs(a)>0&&Math.abs(c)>0){var u=Math.min(i,i+a),l=Math.max(i,i+a),s=Math.min(o,o+c),f=Math.max(o,o+c);return n>=u&&n<=l&&r>=s&&r<=f}return!1},vP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gP=function(t){var e=hP(hP({},vP),t),n=$(),r=lP(z(-1),2),i=r[0],o=r[1];U((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.width,l=e.height,s=e.radius,f=e.className,h=e.animationEasing,p=e.animationDuration,d=e.animationBegin,y=e.isAnimationActive,v=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||0===u||0===l)return null;var g=Ar("recharts-rectangle",f);return v?D.createElement(bv,{canBegin:i>0,from:{width:u,height:l,x:a,y:c},to:{width:u,height:l,x:a,y:c},duration:p,animationEasing:h,isActive:v},(function(t){var r=t.width,o=t.height,a=t.x,c=t.y;return D.createElement(bv,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:y,easing:h},D.createElement("path",uP({},Wa(e,!0),{className:g,d:dP(a,c,r,o,s),ref:n})))})):D.createElement("path",uP({},Wa(e,!0),{className:g,d:dP(a,c,u,l,s)}))};function mP(){return mP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},mP.apply(this,arguments)}var bP=function(t){var e=t.cx,n=t.cy,r=t.r,i=Ar("recharts-dot",t.className);return e===+e&&n===+n&&r===+r?D.createElement("circle",mP({},Wa(t),ka(t),{className:i,cx:e,cy:n,r:r})):null};function wP(t){return wP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wP(t)}var xP=["x","y","top","left","width","height","className"];function OP(){return OP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},OP.apply(this,arguments)}function SP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function jP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==wP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==wP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function AP(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var PP=function(t,e,n,r,i,o){return"M".concat(t,",").concat(i,"v").concat(r,"M").concat(o,",").concat(e,"h").concat(n)},MP=function(t){var e=t.x,n=void 0===e?0:e,r=t.y,i=void 0===r?0:r,o=t.top,a=void 0===o?0:o,c=t.left,u=void 0===c?0:c,l=t.width,s=void 0===l?0:l,f=t.height,h=void 0===f?0:f,p=t.className,d=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?SP(Object(n),!0).forEach((function(e){jP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):SP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({x:n,y:i,top:a,left:u,width:s,height:h},AP(t,xP));return ya(n)&&ya(i)&&ya(s)&&ya(h)&&ya(a)&&ya(u)?D.createElement("path",OP({},Wa(d,!0),{className:Ar("recharts-cross",p),d:PP(n,i,s,h,a,u)})):null},EP=Ds(Object.getPrototypeOf,Object),kP=Ur,_P=EP,TP=Fr,DP=Function.prototype,CP=Object.prototype,NP=DP.toString,IP=CP.hasOwnProperty,BP=NP.call(Object);var RP=ve((function(t){if(!TP(t)||"[object Object]"!=kP(t))return!1;var e=_P(t);if(null===e)return!0;var n=IP.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&NP.call(n)==BP})),$P=Ur,LP=Fr;var zP=ve((function(t){return!0===t||!1===t||LP(t)&&"[object Boolean]"==$P(t)}));function HP(t){return HP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},HP(t)}function UP(){return UP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},UP.apply(this,arguments)}function FP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return qP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qP(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qP(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function WP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function VP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?WP(Object(n),!0).forEach((function(e){YP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):WP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function YP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==HP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==HP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===HP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var XP=function(t,e,n,r,i){var o,a=n-r;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+n,",").concat(e),o+="L ".concat(t+n-a/2,",").concat(e+i),o+="L ".concat(t+n-a/2-r,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},GP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},KP=function(t){var e=VP(VP({},GP),t),n=$(),r=FP(z(-1),2),i=r[0],o=r[1];U((function(){if(n.current&&n.current.getTotalLength)try{var t=n.current.getTotalLength();t&&o(t)}catch(t){}}),[]);var a=e.x,c=e.y,u=e.upperWidth,l=e.lowerWidth,s=e.height,f=e.className,h=e.animationEasing,p=e.animationDuration,d=e.animationBegin,y=e.isUpdateAnimationActive;if(a!==+a||c!==+c||u!==+u||l!==+l||s!==+s||0===u&&0===l||0===s)return null;var v=Ar("recharts-trapezoid",f);return y?D.createElement(bv,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:s,x:a,y:c},to:{upperWidth:u,lowerWidth:l,height:s,x:a,y:c},duration:p,animationEasing:h,isActive:y},(function(t){var r=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return D.createElement(bv,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:h},D.createElement("path",UP({},Wa(e,!0),{className:v,d:XP(c,u,r,o,a),ref:n})))})):D.createElement("g",null,D.createElement("path",UP({},Wa(e,!0),{className:v,d:XP(a,c,u,l,s)})))},ZP=["option","shapeType","propTransformer","activeClassName","isActive"];function JP(t){return JP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JP(t)}function QP(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function tM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function eM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tM(Object(n),!0).forEach((function(e){nM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function nM(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==JP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==JP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===JP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rM(t,e){return eM(eM({},e),t)}function iM(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return D.createElement(gP,n);case"trapezoid":return D.createElement(KP,n);case"sector":return D.createElement(GA,n);case"symbols":if(function(t,e){return"symbols"===t}(e))return D.createElement(Yu,n);break;default:return null}}function oM(t){var e,n=t.option,r=t.shapeType,i=t.propTransformer,o=void 0===i?rM:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=QP(t,ZP);if(C(n))e=B(n,eM(eM({},l),function(t){return C(t)?t.props:t}(n)));else if(ii(n))e=n(l);else if(RP(n)&&!zP(n)){var s=o(n,l);e=D.createElement(iM,{shapeType:r,elementProps:s})}else{var f=l;e=D.createElement(iM,{shapeType:r,elementProps:f})}return u?D.createElement(nc,{className:c},e):e}function aM(t,e){return null!=e&&"trapezoids"in t.props}function cM(t,e){return null!=e&&"sectors"in t.props}function uM(t,e){return null!=e&&"points"in t.props}function lM(t,e){var n,r,i=t.x===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.x)||t.x===e.x,o=t.y===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.y)||t.y===e.y;return i&&o}function sM(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function fM(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}function hM(t){var e=t.activeTooltipItem,n=t.graphicalItem,r=t.itemData,i=function(t,e){var n;return aM(t,e)?n="trapezoids":cM(t,e)?n="sectors":uM(t,e)&&(n="points"),n}(n,e),o=function(t,e){var n,r;return aM(t,e)?null===(n=e.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:cM(t,e)?null===(r=e.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:uM(t,e)?e.payload:{}}(n,e),a=r.filter((function(t,r){var a=pS(o,t),c=n.props[i].filter((function(t){var r=function(t,e){var n;return aM(t,e)?n=lM:cM(t,e)?n=sM:uM(t,e)&&(n=fM),n}(n,e);return r(t,e)})),u=n.props[i].indexOf(c[c.length-1]);return a&&r===u}));return r.indexOf(a[a.length-1])}var pM=Math.ceil,dM=Math.max;var yM=lg,vM=1/0;var gM=function(t){return t?(t=yM(t))===vM||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},mM=function(t,e,n,r){for(var i=-1,o=dM(pM((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a},bM=ad,wM=gM;var xM=ve(function(t){return function(e,n,r){return r&&"number"!=typeof r&&bM(e,n,r)&&(n=r=void 0),e=wM(e),void 0===n?(n=e,e=0):n=wM(n),r=void 0===r?e<n?1:-1:wM(r),mM(e,n,r,t)}}());function OM(t){return OM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OM(t)}function SM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function jM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?SM(Object(n),!0).forEach((function(e){AM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function AM(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==OM(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==OM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===OM(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var PM=["Webkit","Moz","O","ms"];function MM(t){return MM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MM(t)}function EM(){return EM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},EM.apply(this,arguments)}function kM(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _M(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?kM(Object(n),!0).forEach((function(e){BM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function TM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,RM(r.key),r)}}function DM(t,e){return DM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},DM(t,e)}function CM(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=IM(t);if(e){var i=IM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===MM(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return NM(t)}(this,n)}}function NM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function IM(t){return IM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},IM(t)}function BM(t,e,n){return(e=RM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function RM(t){var e=function(t,e){if("object"!==MM(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==MM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===MM(e)?e:String(e)}var $M=function(t){return t.changedTouches&&!!t.changedTouches.length},LM=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&DM(t,e)}(o,I);var e,n,r,i=CM(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),BM(NM(e=i.call(this,t)),"handleDrag",(function(t){e.leaveTimer&&(clearTimeout(e.leaveTimer),e.leaveTimer=null),e.state.isTravellerMoving?e.handleTravellerMove(t):e.state.isSlideMoving&&e.handleSlideDrag(t)})),BM(NM(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),BM(NM(e),"handleDragEnd",(function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=e.props,n=t.endIndex,r=t.onDragEnd,i=t.startIndex;null==r||r({endIndex:n,startIndex:i})})),e.detachDragEndListener()})),BM(NM(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),BM(NM(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),BM(NM(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),BM(NM(e),"handleSlideDragStart",(function(t){var n=$M(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(NM(e),"startX"),endX:e.handleTravellerDragStart.bind(NM(e),"endX")},e.state={},e}return e=o,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,r=this.state.scaleValues,i=this.props,a=i.gap,c=i.data.length-1,u=Math.min(e,n),l=Math.max(e,n),s=o.getIndexInRange(r,u),f=o.getIndexInRange(r,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=Cj(n[t],i,t);return ii(r)?r(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,u=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,h=t.pageX-n;h>0?h=Math.min(h,a+c-u-i,a+c-u-r):h<0&&(h=Math.max(h,a-r,a-i));var p=this.getIndex({startX:r+h,endX:i+h});p.startIndex===l&&p.endIndex===s||!f||f(p),this.setState({startX:r+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=$M(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,c=this.state[i],u=this.props,l=u.x,s=u.width,f=u.travellerWidth,h=u.onChange,p=u.gap,d=u.data,y={startX:this.state.startX,endX:this.state.endX},v=t.pageX-r;v>0?v=Math.min(v,l+s-f-c):v<0&&(v=Math.max(v,l-c)),y[i]=c+v;var g=this.getIndex(y),m=g.startIndex,b=g.endIndex;this.setState((BM(e={},i,c+v),BM(e,"brushMoveStartX",t.pageX),e),(function(){var t;h&&(t=d.length-1,("startX"===i&&(o>a?m%p==0:b%p==0)||o<a&&b===t||"endX"===i&&(o>a?b%p==0:m%p==0)||o>a&&b===t)&&h(g))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var n=this,r=this.state,i=r.scaleValues,o=r.startX,a=r.endX,c=this.state[e],u=i.indexOf(c);if(-1!==u){var l=u+t;if(!(-1===l||l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(BM({},e,s),(function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.fill,a=t.stroke;return D.createElement("rect",{stroke:a,fill:o,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,u=N.only(a);return u?D.cloneElement(u,{x:e,y:n,width:r,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,e){var n=this,r=this.props,i=r.y,a=r.travellerWidth,c=r.height,u=r.traveller,l=r.ariaLabel,s=r.data,f=r.startIndex,h=r.endIndex,p=Math.max(t,this.props.x),d=_M(_M({},Wa(this.props)),{},{x:p,y:i,width:a,height:c}),y=l||"Min value: ".concat(s[f].name,", Max value: ").concat(s[h].name);return D.createElement(nc,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},o.renderTraveller(u,d))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,o=n.stroke,a=n.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return D.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:c,y:r,width:u,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return D.createElement(nc,{className:"recharts-brush-texts"},D.createElement(um,EM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+i/2},s),this.getTextOfTick(e)),D.createElement(um,EM({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:r+i/2},s),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,o=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,h=l.isTextActive,p=l.isSlideMoving,d=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!ya(i)||!ya(o)||!ya(a)||!ya(c)||a<=0||c<=0)return null;var v=Ar("recharts-brush",n),g=1===D.Children.count(r),m=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),r=PM.reduce((function(t,r){return jM(jM({},t),{},AM({},r+n,e))}),{});return r[t]=e,r}("userSelect","none");return D.createElement(nc,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),g&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(h||p||d||y||u)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.stroke,a=Math.floor(n+i/2)-1;return D.createElement(D.Fragment,null,D.createElement("rect",{x:e,y:n,width:r,height:i,fill:o,stroke:"none"}),D.createElement("line",{x1:e+1,y1:a,x2:e+r-1,y2:a,fill:"none",stroke:"#fff"}),D.createElement("line",{x1:e+1,y1:a+2,x2:e+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return D.isValidElement(t)?D.cloneElement(t,e):ii(t)?t(e):o.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return _M({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(t){var e=t.data,n=t.startIndex,r=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=$m().domain(xM(0,c)).range([i,i+o-a]),l=u.domain().map((function(t){return u(t)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(r),scale:u,scaleValues:l}}({data:n,width:r,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+r-o]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=0,r=t.length-1;r-n>1;){var i=Math.floor((n+r)/2);t[i]>e?r=i:n=i}return e>=t[r]?r:n}}],n&&TM(e.prototype,n),r&&TM(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();BM(LM,"displayName","Brush"),BM(LM,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var zM=Sp;var HM=Ol,UM=Mh,FM=function(t,e){var n;return zM(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n},qM=Pr,WM=ad;var VM=ve((function(t,e,n){var r=qM(t)?HM:FM;return n&&WM(t,e,n)&&(e=void 0),r(t,UM(e))})),YM=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},XM=Vp;var GM=function(t,e,n){"__proto__"==e&&XM?XM(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},KM=GM,ZM=xp,JM=Mh;var QM=function(t,e){var n={};return e=JM(e),ZM(t,(function(t,r,i){KM(n,r,e(t,r,i))})),n},tE=ve(QM);var eE=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0},nE=Sp;var rE=eE,iE=function(t,e){var n=!0;return nE(t,(function(t,r,i){return n=!!e(t,r,i)})),n},oE=Mh,aE=Pr,cE=ad;var uE=ve((function(t,e,n){var r=aE(t)?rE:iE;return n&&cE(t,e,n)&&(e=void 0),r(t,oE(e))}));function lE(t){return lE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lE(t)}var sE=["x","y"];function fE(){return fE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},fE.apply(this,arguments)}function hE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hE(Object(n),!0).forEach((function(e){dE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dE(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==lE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==lE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===lE(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yE(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function vE(t,e){var n=t.x,r=t.y,i=yE(t,sE),o="".concat(n),a=parseInt(o,10),c="".concat(r),u=parseInt(c,10),l="".concat(e.height||i.height),s=parseInt(l,10),f="".concat(e.width||i.width),h=parseInt(f,10);return pE(pE(pE(pE(pE({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:h,name:e.name,radius:e.radius})}function gE(t){return D.createElement(oM,fE({shapeType:"rectangle",propTransformer:vE,activeClassName:"recharts-active-bar"},t))}var mE=["value","background"];function bE(t){return bE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bE(t)}function wE(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function xE(){return xE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},xE.apply(this,arguments)}function OE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function SE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?OE(Object(n),!0).forEach((function(e){kE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):OE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jE(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_E(r.key),r)}}function AE(t,e){return AE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},AE(t,e)}function PE(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=EE(t);if(e){var i=EE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===bE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ME(t)}(this,n)}}function ME(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function EE(t){return EE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},EE(t)}function kE(t,e,n){return(e=_E(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _E(t){var e=function(t,e){if("object"!==bE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==bE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bE(e)?e:String(e)}var TE=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&AE(t,e)}(o,I);var e,n,r,i=PE(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return kE(ME(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),kE(ME(t),"id",ma("recharts-bar-")),kE(ME(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),kE(ME(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return e=o,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props,r=n.shape,i=n.dataKey,o=n.activeIndex,a=n.activeBar,c=Wa(this.props);return t&&t.map((function(t,n){var u=n===o,l=u?a:r,s=SE(SE(SE({},c),t),{},{isActive:u,option:l,index:n,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return D.createElement(nc,xE({className:"recharts-bar-rectangle"},_a(e.props,t,n),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),D.createElement(gE,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,n=e.data,r=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return D.createElement(bv,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t,o=n.map((function(t,e){var n=l&&l[e];if(n){var o=xa(n.x,t.x),a=xa(n.y,t.y),c=xa(n.width,t.width),u=xa(n.height,t.height);return SE(SE({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===r){var s=xa(0,t.height)(i);return SE(SE({},t),{},{y:t.y+t.height-s,height:s})}var f=xa(0,t.width)(i);return SE(SE({},t),{},{width:f})}));return D.createElement(nc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,n=t.isAnimationActive,r=this.state.prevData;return!(n&&e&&e.length)||r&&pS(r,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,n=e.data,r=e.dataKey,i=e.activeIndex,o=Wa(this.props.background);return n.map((function(e,n){e.value;var a=e.background,c=wE(e,mE);if(!a)return null;var u=SE(SE(SE(SE(SE({},c),{},{fill:"#eee"},a),o),_a(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return D.createElement(gE,xE({option:t.props.background,isActive:n===i},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,o=n.yAxis,a=n.layout,c=za(n.children,xj);if(!c)return null;var u="vertical"===a?r[0].height/2:r[0].width/2,l=function(t,e){var n=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:n,errorVal:Cj(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return D.createElement(nc,s,c.map((function(t){return D.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:r,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,h=t.id;if(e||!n||!n.length)return null;var p=this.state.isAnimationFinished,d=Ar("recharts-bar",r),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,g=y||v,m=Ko(h)?this.id:h;return D.createElement(nc,{className:d},y||v?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(m)},D.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,D.createElement(nc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||p)&&zA.renderCallByParent(this.props,n))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],n&&jE(e.prototype,n),r&&jE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();function DE(t){return DE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},DE(t)}function CE(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,RE(r.key),r)}}function NE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function IE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?NE(Object(n),!0).forEach((function(e){BE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):NE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function BE(t,e,n){return(e=RE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function RE(t){var e=function(t,e){if("object"!==DE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==DE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===DE(e)?e:String(e)}kE(TE,"displayName","Bar"),kE(TE,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!$v.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),kE(TE,"getComposedData",(function(t){var e=t.props,n=t.item,r=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,c=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,s=t.dataStartIndex,f=t.displayedData,h=t.offset,p=function(t,e){if(!t)return null;for(var n=0,r=t.length;n<r;n++)if(t[n].item===e)return t[n].position;return null}(r,n);if(!p)return null;var d=e.layout,y=n.props,v=y.dataKey,g=y.children,m=y.minPointSize,b="horizontal"===d?a:o,w=l?b.scale.domain():null,x=function(t){var e=t.numericAxis,n=e.scale.domain();if("number"===e.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]}({numericAxis:b}),O=za(g,Pg),S=f.map((function(t,e){var r,f,h,y,g,b;if(l?r=function(t,e){if(!e||2!==e.length||!ya(e[0])||!ya(e[1]))return t;var n=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!ya(t[0])||t[0]<n)&&(i[0]=n),(!ya(t[1])||t[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i}(l[s+e],w):(r=Cj(t,v),Array.isArray(r)||(r=[x,r])),"horizontal"===d){var S,j=[a.scale(r[0]),a.scale(r[1])],A=j[0],P=j[1];f=Yj({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:t,index:e}),h=null!==(S=null!=P?P:A)&&void 0!==S?S:void 0,y=p.size;var M=A-P;if(g=Number.isNaN(M)?0:M,b={x:f,y:a.y,width:y,height:a.height},Math.abs(m)>0&&Math.abs(g)<Math.abs(m)){var E=pa(g||m)*(Math.abs(m)-Math.abs(g));h-=E,g+=E}}else{var k=[o.scale(r[0]),o.scale(r[1])],_=k[0],T=k[1];if(f=_,h=Yj({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:t,index:e}),y=T-_,g=p.size,b={x:o.x,y:h,width:o.width,height:g},Math.abs(m)>0&&Math.abs(y)<Math.abs(m))y+=pa(y||m)*(Math.abs(m)-Math.abs(y))}return SE(SE(SE({},t),{},{x:f,y:h,width:y,height:g,value:l?r:r[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[tA(n,t)],tooltipPosition:{x:f+y/2,y:h+g/2}})}));return SE({data:S,layout:d},h)}));var $E=function(t,e,n,r,i){var o=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!Ha(u,TE);return l.reduce((function(o,a){var u,l,h,p,d,y=e[a],v=y.orientation,g=y.domain,m=y.padding,b=void 0===m?{}:m,w=y.mirror,x=y.reversed,O="".concat(v).concat(w?"Mirror":"");if("number"===y.type&&("gap"===y.padding||"no-gap"===y.padding)){var S=g[1]-g[0],j=1/0,A=y.categoricalDomain.sort();A.forEach((function(t,e){e>0&&(j=Math.min((t||0)-(A[e-1]||0),j))}));var P=j/S,M="vertical"===y.layout?n.height:n.width;if("gap"===y.padding&&(u=P*M/2),"no-gap"===y.padding){var E=ba(t.barCategoryGap,P*M),k=P*M/2;u=k-E-(k-E)/M*E}}l="xAxis"===r?[n.left+(b.left||0)+(u||0),n.left+n.width-(b.right||0)-(u||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(u||0),n.top+n.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var _=function(t,e,n){var r=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:Bm(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:aw(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:$m(),realScaleType:"point"}:"category"===i?{scale:Bm(),realScaleType:"band"}:{scale:aw(),realScaleType:"linear"};if(ea(r)){var c="scale".concat(Cc(r));return{scale:(WO[c]||$m)(),realScaleType:WO[c]?c:"point"}}return ii(r)?{scale:r}:{scale:$m(),realScaleType:"point"}}(y,i,f),T=_.scale,D=_.realScaleType;T.domain(g).range(l),function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-Fj,o=Math.max(r[0],r[1])+Fj,a=t(e[0]),c=t(e[n-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[n-1]])}}(T);var C=function(t,e){var n=e.realScaleType,r=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=n||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain();if(!u.length)return null;var l=dj(u,i,a);return t.domain([rS(l),JO(l)]),{niceTicks:l}}if(i&&"number"===r){var s=t.domain();return{niceTicks:yj(s,i,a)}}return null}(T,IE(IE({},y),{},{realScaleType:D}));"xAxis"===r?(d="top"===v&&!w||"bottom"===v&&w,h=n.left,p=s[O]-d*y.height):"yAxis"===r&&(d="left"===v&&!w||"right"===v&&w,h=s[O]-d*y.width,p=n.top);var N=IE(IE(IE({},y),C),{},{realScaleType:D,x:h,y:p,scale:T,width:"xAxis"===r?n.width:y.width,height:"yAxis"===r?n.height:y.height});return N.bandSize=Jj(N,C),y.hide||"xAxis"!==r?y.hide||(s[O]+=(d?-1:1)*N.width):s[O]+=(d?-1:1)*N.height,IE(IE({},o),{},BE({},a,N))}),{})},LE=function(t,e){var n=t.x,r=t.y,i=e.x,o=e.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},zE=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scale=e}var e,n,r;return e=t,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],r=[{key:"create",value:function(e){return new t(e)}}],n&&CE(e.prototype,n),r&&CE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();BE(zE,"EPS",1e-4);var HE=function(t){var e=Object.keys(t).reduce((function(e,n){return IE(IE({},e),{},BE({},n,zE.create(t[n])))}),{});return IE(IE({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return tE(t,(function(t,n){return e[n].apply(t,{bandAware:r,position:i})}))},isInRange:function(t){return uE(t,(function(t,n){return e[n].isInRange(t)}))}})};var UE=function(t){var e=t.width,n=t.height,r=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=r*Math.PI/180,o=Math.atan(n/e),a=i>o&&i<Math.PI-o?n/Math.sin(i):e/Math.cos(i);return Math.abs(a)};function FE(t){return FE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},FE(t)}function qE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function WE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?qE(Object(n),!0).forEach((function(e){VE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):qE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function VE(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==FE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==FE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===FE(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YE(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return XE(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XE(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XE(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function GE(){return GE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},GE.apply(this,arguments)}function KE(t){var e=t.x,n=t.y,r=t.segment,i=t.xAxis,o=t.yAxis,a=t.shape,c=t.className,u=t.alwaysShow,l=t.clipPathId;ic(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var s=function(t,e,n,r,i){var o=i.viewBox,a=o.x,c=o.y,u=o.width,l=o.height,s=i.position;if(n){var f=i.y,h=i.yAxis.orientation,p=t.y.apply(f,{position:s});if(YM(i,"discard")&&!t.y.isInRange(p))return null;var d=[{x:a+u,y:p},{x:a,y:p}];return"left"===h?d.reverse():d}if(e){var y=i.x,v=i.xAxis.orientation,g=t.x.apply(y,{position:s});if(YM(i,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:c+l},{x:g,y:c}];return"top"===v?m.reverse():m}if(r){var b=i.segment.map((function(e){return t.apply(e,{position:s})}));return YM(i,"discard")&&VM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(HE({x:i.scale,y:o.scale}),va(e),va(n),r&&2===r.length,t);if(!s)return null;var f=YE(s,2),h=f[0],p=h.x,d=h.y,y=f[1],v=y.x,g=y.y,m=WE(WE({clipPath:YM(t,"hidden")?"url(#".concat(l,")"):void 0},Wa(t,!0)),{},{x1:p,y1:d,x2:v,y2:g});return D.createElement(nc,{className:Ar("recharts-reference-line",c)},function(t,e){return D.isValidElement(t)?D.cloneElement(t,e):ii(t)?t(e):D.createElement("line",GE({},e,{className:"recharts-reference-line-line"}))}(a,m),AA.renderCallByParent(t,function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2;return LE({x:e,y:n},{x:r,y:i})}({x1:p,y1:d,x2:v,y2:g})))}function ZE(t){return ZE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZE(t)}function JE(){return JE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},JE.apply(this,arguments)}function QE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function tk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?QE(Object(n),!0).forEach((function(e){ek(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):QE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ek(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==ZE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ZE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ZE(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}KE.displayName="ReferenceLine",KE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function nk(t){var e=t.x,n=t.y,r=t.r,i=t.alwaysShow,o=t.clipPathId,a=va(e),c=va(n);if(ic(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!c)return null;var u=function(t){var e=t.x,n=t.y,r=t.xAxis,i=t.yAxis,o=HE({x:r.scale,y:i.scale}),a=o.apply({x:e,y:n},{bandAware:!0});return YM(t,"discard")&&!o.isInRange(a)?null:a}(t);if(!u)return null;var l=u.x,s=u.y,f=t.shape,h=t.className,p=tk(tk({clipPath:YM(t,"hidden")?"url(#".concat(o,")"):void 0},Wa(t,!0)),{},{cx:l,cy:s});return D.createElement(nc,{className:Ar("recharts-reference-dot",h)},nk.renderDot(f,p),AA.renderCallByParent(t,{x:l-r,y:s-r,width:2*r,height:2*r}))}function rk(t){return rk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rk(t)}function ik(){return ik=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ik.apply(this,arguments)}function ok(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ak(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ok(Object(n),!0).forEach((function(e){ck(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ck(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==rk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==rk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rk(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}nk.displayName="ReferenceDot",nk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},nk.renderDot=function(t,e){return D.isValidElement(t)?D.cloneElement(t,e):ii(t)?t(e):D.createElement(bP,JE({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};function uk(t){var e=t.x1,n=t.x2,r=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,c=t.clipPathId;ic(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=va(e),l=va(n),s=va(r),f=va(i),h=t.shape;if(!(u||l||s||f||h))return null;var p=function(t,e,n,r,i){var o=i.x1,a=i.x2,c=i.y1,u=i.y2,l=i.xAxis,s=i.yAxis;if(!l||!s)return null;var f=HE({x:l.scale,y:s.scale}),h={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(c,{position:"start"}):f.y.rangeMin},p={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!YM(i,"discard")||f.isInRange(h)&&f.isInRange(p)?LE(h,p):null}(u,l,s,f,t);if(!p&&!h)return null;var d=YM(t,"hidden")?"url(#".concat(c,")"):void 0;return D.createElement(nc,{className:Ar("recharts-reference-area",o)},uk.renderRect(h,ak(ak({clipPath:d},Wa(t,!0)),p)),AA.renderCallByParent(t,p))}function lk(t,e,n){if(e<1)return[];if(1===e&&void 0===n)return t;for(var r=[],i=0;i<t.length;i+=e){if(void 0!==n&&!0!==n(t[i]))return;r.push(t[i])}return r}function sk(t,e,n,r,i){if(t*e<t*r||t*e>t*i)return!1;var o=n();return t*(e-t*o/2-r)>=0&&t*(e+t*o/2-i)<=0}function fk(t){return fk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fk(t)}function hk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function pk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hk(Object(n),!0).forEach((function(e){dk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dk(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==fk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===fk(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yk(t,e,n){var r=t.tick,i=t.ticks,o=t.viewBox,a=t.minTickGap,c=t.orientation,u=t.interval,l=t.tickFormatter,s=t.unit,f=t.angle;if(!i||!i.length||!r)return[];if(ya(u)||$v.isSsr)return function(t,e){return lk(t,e+1)}(i,"number"==typeof u&&ya(u)?u:0);var h=[],p="top"===c||"bottom"===c?"width":"height",d=s&&"width"===p?Ng(s,{fontSize:e,letterSpacing:n}):{width:0,height:0},y=function(t,r){var i=ii(l)?l(t.value,r):t.value;return"width"===p?function(t,e,n){var r={width:t.width+e.width,height:t.height+e.height};return UE(r,n)}(Ng(i,{fontSize:e,letterSpacing:n}),d,f):Ng(i,{fontSize:e,letterSpacing:n})[p]},v=i.length>=2?pa(i[1].coordinate-i[0].coordinate):1,g=function(t,e,n){var r="width"===n,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:r?i:o,end:r?i+a:o+c}:{start:r?i+a:o+c,end:r?i:o}}(o,v,p);return"equidistantPreserveStart"===u?function(t,e,n,r,i){for(var o,a=(r||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,h=function(){var e=null==r?void 0:r[l];if(void 0===e)return{v:lk(r,s)};var o,a=l,h=function(){return void 0===o&&(o=n(e,a)),o},p=e.coordinate,d=0===l||sk(t,p,h,f,u);d||(l=0,f=c,s+=1),d&&(f=p+t*(h()/2+i),l+=s)};s<=a.length;)if(o=h())return o.v;return[]}(v,g,y,i,a):(h="preserveStart"===u||"preserveStartEnd"===u?function(t,e,n,r,i,o){var a=(r||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=r[c-1],f=n(s,c-1),h=t*(s.coordinate+t*f/2-l);a[c-1]=s=pk(pk({},s),{},{tickCoord:h>0?s.coordinate-h*t:s.coordinate}),sk(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=pk(pk({},s),{},{isShow:!0}))}for(var p=o?c-1:c,d=function(e){var r,o=a[e],c=function(){return void 0===r&&(r=n(o,e)),r};if(0===e){var s=t*(o.coordinate-t*c()/2-u);a[e]=o=pk(pk({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=pk(pk({},o),{},{tickCoord:o.coordinate});sk(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=pk(pk({},o),{},{isShow:!0}))},y=0;y<p;y++)d(y);return a}(v,g,y,i,a,"preserveStartEnd"===u):function(t,e,n,r,i){for(var o=(r||[]).slice(),a=o.length,c=e.start,u=e.end,l=function(e){var r,l=o[e],s=function(){return void 0===r&&(r=n(l,e)),r};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);o[e]=l=pk(pk({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=pk(pk({},l),{},{tickCoord:l.coordinate});sk(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=pk(pk({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return o}(v,g,y,i,a),h.filter((function(t){return t.isShow})))}uk.displayName="ReferenceArea",uk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},uk.renderRect=function(t,e){return D.isValidElement(t)?D.cloneElement(t,e):ii(t)?t(e):D.createElement(gP,ik({},e,{className:"recharts-reference-area-rect"}))};var vk=["viewBox"],gk=["viewBox"],mk=["ticks"];function bk(t){return bk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bk(t)}function wk(){return wk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},wk.apply(this,arguments)}function xk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ok(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xk(Object(n),!0).forEach((function(e){Ek(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Sk(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function jk(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,kk(r.key),r)}}function Ak(t,e){return Ak=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ak(t,e)}function Pk(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Mk(t);if(e){var i=Mk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===bk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Mk(t){return Mk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mk(t)}function Ek(t,e,n){return(e=kk(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kk(t){var e=function(t,e){if("object"!==bk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==bk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bk(e)?e:String(e)}var _k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ak(t,e)}(o,W);var e,n,r,i=Pk(o);function o(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this,t)).state={fontSize:"",letterSpacing:""},e}return e=o,n=[{key:"shouldComponentUpdate",value:function(t,e){var n=t.viewBox,r=Sk(t,vk),i=this.props,o=i.viewBox,a=Sk(i,gk);return!Sa(n,o)||!Sa(r,a)||!Sa(e,this.state)}},{key:"componentDidMount",value:function(){var t=this.layerReference;if(t){var e=t.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];e&&this.setState({fontSize:window.getComputedStyle(e).fontSize,letterSpacing:window.getComputedStyle(e).letterSpacing})}}},{key:"getTickLineCoord",value:function(t){var e,n,r,i,o,a,c=this.props,u=c.x,l=c.y,s=c.width,f=c.height,h=c.orientation,p=c.tickSize,d=c.mirror,y=c.tickMargin,v=d?-1:1,g=t.tickSize||p,m=ya(t.tickCoord)?t.tickCoord:t.coordinate;switch(h){case"top":e=n=t.coordinate,a=(r=(i=l+ +!d*f)-v*g)-v*y,o=m;break;case"left":r=i=t.coordinate,o=(e=(n=u+ +!d*s)-v*g)-v*y,a=m;break;case"right":r=i=t.coordinate,o=(e=(n=u+ +d*s)+v*g)+v*y,a=m;break;default:e=n=t.coordinate,a=(r=(i=l+ +d*f)+v*g)+v*y,o=m}return{line:{x1:e,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,n=e.orientation,r=e.mirror;switch(n){case"left":t=r?"start":"end";break;case"right":t=r?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,n=t.mirror,r="end";switch(e){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,u=Ok(Ok(Ok({},Wa(this.props)),Wa(c)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=Ok(Ok({},u),{},{x1:e,y1:n+l*i,x2:e+r,y2:n+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=Ok(Ok({},u),{},{x1:e+s*r,y1:n,x2:e+s*r,y2:n+i})}return D.createElement("line",wk({},u,{className:Ar("recharts-cartesian-axis-line",Go(c,"className"))}))}},{key:"renderTicks",value:function(t,e,n){var r=this,i=this.props,a=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,s=i.unit,f=yk(Ok(Ok({},this.props),{},{ticks:t}),e,n),h=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=Wa(this.props),y=Wa(u),v=Ok(Ok({},d),{},{fill:"none"},Wa(a)),g=f.map((function(t,e){var n=r.getTickLineCoord(t),i=n.line,g=n.tick,m=Ok(Ok(Ok(Ok({textAnchor:h,verticalAnchor:p},d),{},{stroke:"none",fill:c},y),g),{},{index:e,payload:t,visibleTicksCount:f.length,tickFormatter:l});return D.createElement(nc,wk({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},_a(r.props,t,e)),a&&D.createElement("line",wk({},v,i,{className:Ar("recharts-cartesian-axis-tick-line",Go(a,"className"))})),u&&o.renderTickItem(u,m,"".concat(ii(l)?l(t.value,e):t.value).concat(s||"")))}));return D.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,n=e.axisLine,r=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=Sk(c,mk),s=u;return ii(o)&&(s=u&&u.length>0?o(this.props):o(l)),r<=0||i<=0||!s||!s.length?null:D.createElement(nc,{className:Ar("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),AA.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,n){return D.isValidElement(t)?D.cloneElement(t,e):ii(t)?t(e):D.createElement(um,wk({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&jk(e.prototype,n),r&&jk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();Ek(_k,"displayName","CartesianAxis"),Ek(_k,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Tk=["type","layout","connectNulls","ref"];function Dk(t){return Dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dk(t)}function Ck(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Nk(){return Nk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Nk.apply(this,arguments)}function Ik(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Bk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ik(Object(n),!0).forEach((function(e){qk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ik(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Rk(t){return function(t){if(Array.isArray(t))return $k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return $k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $k(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Lk(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wk(r.key),r)}}function zk(t,e){return zk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zk(t,e)}function Hk(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Fk(t);if(e){var i=Fk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Dk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Uk(t)}(this,n)}}function Uk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Fk(t){return Fk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fk(t)}function qk(t,e,n){return(e=Wk(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wk(t){var e=function(t,e){if("object"!==Dk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Dk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Dk(e)?e:String(e)}var Vk=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zk(t,e)}(o,I);var e,n,r,i=Hk(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return qk(Uk(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),qk(Uk(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),qk(Uk(t),"getStrokeDasharray",(function(e,n,r){var i=r.reduce((function(t,e){return t+e}));if(!i)return t.generateSimpleStrokeDasharray(n,e);for(var a=Math.floor(e/i),c=e%i,u=n-e,l=[],s=0,f=0;s<r.length;f+=r[s],++s)if(f+r[s]>c){l=[].concat(Rk(r.slice(0,s)),[c-f]);break}var h=l.length%2==0?[0,u]:[u];return[].concat(Rk(o.repeat(r,a)),Rk(l),h).map((function(t){return"".concat(t,"px")})).join(", ")})),qk(Uk(t),"id",ma("recharts-line-")),qk(Uk(t),"pathRef",(function(e){t.mainCurve=e})),qk(Uk(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),qk(Uk(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}return e=o,n=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,o=n.yAxis,a=n.layout,c=za(n.children,xj);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Cj(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return D.createElement(nc,l,c.map((function(t){return D.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:r,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,a=r.points,c=r.dataKey,u=Wa(this.props),l=Wa(i,!0),s=a.map((function(t,e){var n=Bk(Bk(Bk({key:"dot-".concat(e),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:e,payload:t.payload});return o.renderDotItem(i,n)})),f={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(n,")"):null};return D.createElement(nc,Nk({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,n,r){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var u=Ck(i,Tk),l=Bk(Bk(Bk({},Wa(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},r),{},{type:o,layout:a,connectNulls:c});return D.createElement(aP,Nk({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,a=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,s=r.animationId,f=r.animateNewValues,h=r.width,p=r.height,d=this.state,y=d.prevPoints,v=d.totalLength;return D.createElement(bv,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(y){var c=y.length/i.length,u=i.map((function(t,e){var n=Math.floor(e*c);if(y[n]){var r=y[n],i=xa(r.x,t.x),o=xa(r.y,t.y);return Bk(Bk({},t),{},{x:i(a),y:o(a)})}if(f){var u=xa(2*h,t.x),l=xa(p/2,t.y);return Bk(Bk({},t),{},{x:u(a),y:l(a)})}return Bk(Bk({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(u,t,e)}var l,s=xa(0,v)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=n.getStrokeDasharray(s,v,d)}else l=n.generateSimpleStrokeDasharray(v,s);return n.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&r&&r.length&&(!a&&c>0||!pS(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,r=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,h=e.isAnimationActive,p=e.id;if(n||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=Ar("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=Ko(p)?this.id:p,x=null!==(t=Wa(r))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,P=(qa(r)?r:{}).clipDot,M=void 0===P||P,E=2*S+A;return D.createElement(nc,{className:v},g||m?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(w)},D.createElement("rect",{x:g?l:l-s/2,y:m?u:u-f/2,width:g?s:2*s,height:m?f:2*f})),!M&&D.createElement("clipPath",{id:"clipPath-dots-".concat(w)},D.createElement("rect",{x:l-E/2,y:u-E/2,width:s+E,height:f+E}))):null,!y&&this.renderCurve(b,w),this.renderErrorBar(b,w),(y||r)&&this.renderDots(b,M,w),(!h||d)&&zA.renderCallByParent(this.props,i))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var n=t.length%2!=0?[].concat(Rk(t),[0]):t,r=[],i=0;i<e;++i)r=[].concat(Rk(r),Rk(n));return r}},{key:"renderDotItem",value:function(t,e){var n;if(D.isValidElement(t))n=D.cloneElement(t,e);else if(ii(t))n=t(e);else{var r=Ar("recharts-line-dot",t?t.className:"");n=D.createElement(bP,Nk({},e,{className:r}))}return n}}],n&&Lk(e.prototype,n),r&&Lk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();qk(Vk,"displayName","Line"),qk(Vk,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!$v.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),qk(Vk,"getComposedData",(function(t){var e=t.props,n=t.xAxis,r=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return Bk({points:u.map((function(t,e){var u=Cj(t,a);return"horizontal"===s?{x:Vj({axis:n,ticks:i,bandSize:c,entry:t,index:e}),y:Ko(u)?null:r.scale(u),value:u,payload:t}:{x:Ko(u)?null:n.scale(u),y:Vj({axis:r,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var Yk,Xk=["layout","type","stroke","connectNulls","isRange","ref"];function Gk(t){return Gk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gk(t)}function Kk(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Zk(){return Zk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Zk.apply(this,arguments)}function Jk(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Jk(Object(n),!0).forEach((function(e){o_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function t_(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a_(r.key),r)}}function e_(t,e){return e_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},e_(t,e)}function n_(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=i_(t);if(e){var i=i_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Gk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return r_(t)}(this,n)}}function r_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i_(t){return i_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i_(t)}function o_(t,e,n){return(e=a_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a_(t){var e=function(t,e){if("object"!==Gk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Gk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Gk(e)?e:String(e)}var c_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&e_(t,e)}(o,I);var e,n,r,i=n_(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return o_(r_(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),o_(r_(t),"id",ma("recharts-area-")),o_(r_(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),ii(e)&&e()})),o_(r_(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),ii(e)&&e()})),t}return e=o,n=[{key:"renderDots",value:function(t,e,n){var r=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(r&&!i)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=Wa(this.props),f=Wa(c,!0),h=u.map((function(t,e){var n=Qk(Qk(Qk({key:"dot-".concat(e),r:3},s),f),{},{dataKey:l,cx:t.x,cy:t.y,index:e,value:t.value,payload:t.payload});return o.renderDotItem(c,n)})),p={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(n,")"):null};return D.createElement(nc,Zk({className:"recharts-area-dots"},p),h)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,i=e.strokeWidth,o=r[0].x,a=r[r.length-1].x,c=t*Math.abs(o-a),u=JO(r.map((function(t){return t.y||0})));return ya(n)&&"number"==typeof n?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(JO(n.map((function(t){return t.y||0}))),u)),ya(u)?D.createElement("rect",{x:o<a?o:o-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var e=this.props,n=e.baseLine,r=e.points,i=e.strokeWidth,o=r[0].y,a=r[r.length-1].y,c=t*Math.abs(o-a),u=JO(r.map((function(t){return t.x||0})));return ya(n)&&"number"==typeof n?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(JO(n.map((function(t){return t.x||0}))),u)),ya(u)?D.createElement("rect",{x:0,y:o<a?o:o-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(t){return"vertical"===this.props.layout?this.renderVerticalRect(t):this.renderHorizontalRect(t)}},{key:"renderAreaStatically",value:function(t,e,n,r){var i=this.props,o=i.layout,a=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var s=Kk(i,Xk);return D.createElement(nc,{clipPath:n?"url(#clipPath-".concat(r,")"):null},D.createElement(aP,Zk({},Wa(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&D.createElement(aP,Zk({},Wa(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&D.createElement(aP,Zk({},Wa(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,o=r.baseLine,a=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,s=r.animationId,f=this.state,h=f.prevPoints,p=f.prevBaseLine;return D.createElement(bv,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(h){var c,u=h.length/i.length,l=i.map((function(t,e){var n=Math.floor(e*u);if(h[n]){var r=h[n],i=xa(r.x,t.x),o=xa(r.y,t.y);return Qk(Qk({},t),{},{x:i(a),y:o(a)})}return t}));return c=ya(o)&&"number"==typeof o?xa(p,o)(a):Ko(o)||ha(o)?xa(p,0)(a):o.map((function(t,e){var n=Math.floor(e*u);if(p[n]){var r=p[n],i=xa(r.x,t.x),o=xa(r.y,t.y);return Qk(Qk({},t),{},{x:i(a),y:o(a)})}return t})),n.renderAreaStatically(l,c,t,e)}return D.createElement(nc,null,D.createElement("defs",null,D.createElement("clipPath",{id:"animationClipPath-".concat(e)},n.renderClipRect(a))),D.createElement(nc,{clipPath:"url(#animationClipPath-".concat(e,")")},n.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return o&&r&&r.length&&(!c&&l>0||!pS(c,r)||!pS(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(r,i,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,r=e.dot,i=e.points,o=e.className,a=e.top,c=e.left,u=e.xAxis,l=e.yAxis,s=e.width,f=e.height,h=e.isAnimationActive,p=e.id;if(n||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=Ar("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=Ko(p)?this.id:p,x=null!==(t=Wa(r))&&void 0!==t?t:{r:3,strokeWidth:2},O=x.r,S=void 0===O?3:O,j=x.strokeWidth,A=void 0===j?2:j,P=(qa(r)?r:{}).clipDot,M=void 0===P||P,E=2*S+A;return D.createElement(nc,{className:v},g||m?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(w)},D.createElement("rect",{x:g?c:c-s/2,y:m?a:a-f/2,width:g?s:2*s,height:m?f:2*f})),!M&&D.createElement("clipPath",{id:"clipPath-dots-".concat(w)},D.createElement("rect",{x:c-E/2,y:a-E/2,width:s+E,height:f+E}))):null,y?null:this.renderArea(b,w),(r||y)&&this.renderDots(b,M,w),(!h||d)&&zA.renderCallByParent(this.props,i))}}],r=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,curBaseLine:t.baseLine,prevPoints:e.curPoints,prevBaseLine:e.curBaseLine}:t.points!==e.curPoints||t.baseLine!==e.curBaseLine?{curPoints:t.points,curBaseLine:t.baseLine}:null}}],n&&t_(e.prototype,n),r&&t_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();Yk=c_,o_(c_,"displayName","Area"),o_(c_,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!$v.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),o_(c_,"getBaseValue",(function(t,e,n,r){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(ya(c)&&"number"==typeof c)return c;var u="horizontal"===i?r:n,l=u.scale.domain();if("number"===u.type){var s=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),o_(c_,"getComposedData",(function(t){var e,n=t.props,r=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,c=t.yAxisTicks,u=t.bandSize,l=t.dataKey,s=t.stackedData,f=t.dataStartIndex,h=t.displayedData,p=t.offset,d=n.layout,y=s&&s.length,v=Yk.getBaseValue(n,r,i,o),g="horizontal"===d,m=!1,b=h.map((function(t,e){var n;y?n=s[f+e]:(n=Cj(t,l),Array.isArray(n)?m=!0:n=[v,n]);var r=null==n[1]||y&&null==Cj(t,l);return g?{x:Vj({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:r?null:o.scale(n[1]),value:n,payload:t}:{x:r?null:i.scale(n[1]),y:Vj({axis:o,ticks:c,bandSize:u,entry:t,index:e}),value:n,payload:t}}));return e=y||m?b.map((function(t){var e=Array.isArray(t.value)?t.value[0]:null;return g?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}})):g?o.scale(v):i.scale(v),Qk({points:b,baseLine:e,layout:d,isRange:m},p)})),o_(c_,"renderDotItem",(function(t,e){return D.isValidElement(t)?D.cloneElement(t,e):ii(t)?t(e):D.createElement(bP,Zk({},e,{className:"recharts-area-dot"}))}));var u_=function(){return null};u_.displayName="XAxis",u_.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var l_=function(){return null};l_.displayName="YAxis",l_.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var s_=Mh,f_=zs,h_=qs;var p_=function(t){return function(e,n,r){var i=Object(e);if(!f_(e)){var o=s_(n);e=h_(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}},d_=gM;var y_=Eh,v_=Mh,g_=function(t){var e=d_(t),n=e%1;return e==e?n?e-n:e:0},m_=Math.max;var b_=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:g_(n);return i<0&&(i=m_(r+i,0)),y_(t,v_(e),i)},w_=ve(p_(b_)),x_="production"===process.env.NODE_ENV,O_="Invariant failed";function S_(t,e){if(!t){if(x_)throw new Error(O_);var n="function"==typeof e?e():e,r=n?"".concat(O_,": ").concat(n):O_;throw new Error(r)}}function j_(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,o=t.endAngle;return{points:[cA(e,n,r,i),cA(e,n,r,o)],cx:e,cy:n,radius:r,startAngle:i,endAngle:o}}function A_(t){return function(t){if(Array.isArray(t))return P_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return P_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P_(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P_(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var M_=function(t,e,n,r,i){var o=za(t,KE),a=za(t,nk),c=[].concat(A_(o),A_(a)),u=za(t,uk),l="".concat(r,"Id"),s=r[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===n&&YM(e.props,"extendDomain")&&ya(e.props[s])){var r=e.props[s];return[Math.min(t[0],r),Math.max(t[1],r)]}return t}),f)),u.length){var h="".concat(s,"1"),p="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===n&&YM(e.props,"extendDomain")&&ya(e.props[h])&&ya(e.props[p])){var r=e.props[h],i=e.props[p];return[Math.min(t[0],r,i),Math.max(t[1],r,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return ya(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},E_={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}function i(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(t,e,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new i(r,o||t,a),u=n?n+e:e;return t._events[u]?t._events[u].fn?t._events[u]=[t._events[u],c]:t._events[u].push(c):(t._events[u]=c,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var t,r,i=[];if(0===this._eventsCount)return i;for(r in t=this._events)e.call(t,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},c.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},c.prototype.emit=function(t,e,r,i,o,a){var c=n?n+t:t;if(!this._events[c])return!1;var u,l,s=this._events[c],f=arguments.length;if(s.fn){switch(s.once&&this.removeListener(t,s.fn,void 0,!0),f){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,e),!0;case 3:return s.fn.call(s.context,e,r),!0;case 4:return s.fn.call(s.context,e,r,i),!0;case 5:return s.fn.call(s.context,e,r,i,o),!0;case 6:return s.fn.call(s.context,e,r,i,o,a),!0}for(l=1,u=new Array(f-1);l<f;l++)u[l-1]=arguments[l];s.fn.apply(s.context,u)}else{var h,p=s.length;for(l=0;l<p;l++)switch(s[l].once&&this.removeListener(t,s[l].fn,void 0,!0),f){case 1:s[l].fn.call(s[l].context);break;case 2:s[l].fn.call(s[l].context,e);break;case 3:s[l].fn.call(s[l].context,e,r);break;case 4:s[l].fn.call(s[l].context,e,r,i);break;default:if(!u)for(h=1,u=new Array(f-1);h<f;h++)u[h-1]=arguments[h];s[l].fn.apply(s[l].context,u)}}return!0},c.prototype.on=function(t,e,n){return o(this,t,e,n,!1)},c.prototype.once=function(t,e,n){return o(this,t,e,n,!0)},c.prototype.removeListener=function(t,e,r,i){var o=n?n+t:t;if(!this._events[o])return this;if(!e)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==e||i&&!c.once||r&&c.context!==r||a(this,o);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||i&&!c[u].once||r&&c[u].context!==r)&&l.push(c[u]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},c.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,t.exports=c}(E_);var k_=new(ve(E_.exports)),__="recharts.syncMouseEvents";function T_(t){return T_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T_(t)}function D_(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,N_(r.key),r)}}function C_(t,e,n){return(e=N_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N_(t){var e=function(t,e){if("object"!==T_(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==T_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===T_(e)?e:String(e)}var I_=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),C_(this,"activeIndex",0),C_(this,"coordinateList",[]),C_(this,"layout","horizontal")}var e,n,r;return e=t,n=[{key:"setDetails",value:function(t){var e=t.coordinateList,n=void 0===e?[]:e,r=t.container,i=void 0===r?null:r,o=t.layout,a=void 0===o?null:o,c=t.offset,u=void 0===c?null:c,l=t.mouseHandlerCallback,s=void 0===l?null:l;this.coordinateList=null!=n?n:this.coordinateList,this.container=null!=i?i:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=u?u:this.offset,this.mouseHandlerCallback=null!=s?s:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(t){if(0!==this.coordinateList.length)switch(t.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,i=n.y,o=n.height,a=this.coordinateList[this.activeIndex].coordinate,c=(null===(t=window)||void 0===t?void 0:t.scrollX)||0,u=(null===(e=window)||void 0===e?void 0:e.scrollY)||0,l=r+a+c,s=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}],n&&D_(e.prototype,n),r&&D_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function B_(t,e,n){var r,i,o,a;if("horizontal"===t)o=r=e.x,i=n.top,a=n.top+n.height;else if("vertical"===t)a=i=e.y,r=n.left,o=n.left+n.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return j_(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,h=cA(c,u,l,f),p=cA(c,u,s,f);r=h.x,i=h.y,o=p.x,a=p.y}return[{x:r,y:i},{x:o,y:a}]}var R_=["item"],$_=["children","className","width","height","style","compact","title","desc"];function L_(t){return L_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},L_(t)}function z_(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||G_(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function H_(){return H_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},H_.apply(this,arguments)}function U_(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function F_(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,tT(r.key),r)}}function q_(t,e){return q_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},q_(t,e)}function W_(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=Y_(t);if(e){var i=Y_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===L_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return V_(t)}(this,n)}}function V_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Y_(t){return Y_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Y_(t)}function X_(t){return function(t){if(Array.isArray(t))return K_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||G_(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function G_(t,e){if(t){if("string"==typeof t)return K_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K_(t,e):void 0}}function K_(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Z_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function J_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Z_(Object(n),!0).forEach((function(e){Q_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Z_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Q_(t,e,n){return(e=tT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tT(t){var e=function(t,e){if("object"!==L_(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==L_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===L_(e)?e:String(e)}var eT={xAxis:["bottom","top"],yAxis:["left","right"]},nT={width:"100%",height:"100%"},rT={x:0,y:0},iT=function(t,e){var n=e.graphicalItems,r=e.dataStartIndex,i=e.dataEndIndex,o=(null!=n?n:[]).reduce((function(t,e){var n=e.props.data;return n&&n.length?[].concat(X_(t),X_(n)):t}),[]);return o.length>0?o:t&&t.length&&ya(r)&&ya(i)?t.slice(r,i+1):[]};function oT(t){return"number"===t?[0,"auto"]:void 0}var aT=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,a=iT(e,t);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(i,c){var u;if(c.props.hide)return i;var l,s=null!==(u=c.props.data)&&void 0!==u?u:e;(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory)?l=Oa(void 0===s?a:s,o.dataKey,r):l=s&&s[n]||a[n];return l?[].concat(X_(i),[tA(c,l)]):i}),[])},cT=function(t,e,n,r){var i=r||{x:t.chartX,y:t.chartY},o=function(t,e){return"horizontal"===e?t.x:"vertical"===e?t.y:"centric"===e?t.angle:t.radius}(i,n),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,u=0;u<a;u++){var l=u>0?r[u-1].coordinate:r[a-1].coordinate,s=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,h=void 0;if(pa(s-l)!==pa(f-s)){var p=[];if(pa(f-s)===pa(c[1]-c[0])){h=f;var d=s+c[1]-c[0];p[0]=Math.min(d,(d+l)/2),p[1]=Math.max(d,(d+l)/2)}else{h=l;var y=f+c[1]-c[0];p[0]=Math.min(s,(y+s)/2),p[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(h+s)/2),Math.max(s,(h+s)/2)];if(t>v[0]&&t<=v[1]||t>=p[0]&&t<=p[1]){o=r[u].index;break}}else{var g=Math.min(l,f),m=Math.max(l,f);if(t>(g+s)/2&&t<=(m+s)/2){o=r[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}return o}(o,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=aT(t,e,l,s),h=function(t,e,n,r){var i=e.find((function(t){return t&&t.index===n}));if(i){if("horizontal"===t)return{x:i.coordinate,y:r.y};if("vertical"===t)return{x:r.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=r.radius;return J_(J_(J_({},r),cA(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=r.angle;return J_(J_(J_({},r),cA(r.cx,r.cy,c,u)),{},{angle:u,radius:c})}return rT}(n,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:h}}return null},uT=function(t,e){var n=e.axes,r=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,h=$j(l,i);return n.reduce((function(e,n){var p,d=n.props,y=d.type,v=d.dataKey,g=d.allowDataOverflow,m=d.allowDuplicatedCategory,b=d.scale,w=d.ticks,x=d.includeHidden,O=n.props[o];if(e[O])return e;var S,j,A,P=iT(t.data,{graphicalItems:r.filter((function(t){return t.props[o]===O})),dataStartIndex:c,dataEndIndex:u}),M=P.length;(function(t,e,n){if("number"===n&&!0===e&&Array.isArray(t)){var r=null==t?void 0:t[0],i=null==t?void 0:t[1];if(r&&i&&ya(r)&&ya(i))return!0}return!1})(n.props.domain,g,y)&&(S=Zj(n.props.domain,null,g),!h||"number"!==y&&"auto"===b||(A=Nj(P,v,"category")));var E=oT(y);if(!S||0===S.length){var k,_=null!==(k=n.props.domain)&&void 0!==k?k:E;if(v){if(S=Nj(P,v,y),"category"===y&&h){var T=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,n={},r=0;r<e;r++){if(n[t[r]])return!0;n[t[r]]=!0}return!1}(S);m&&T?(j=S,S=xM(0,M)):m||(S=Qj(_,S,n).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(X_(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!Ko(t)})):Qj(_,S,n).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Ko(e)?t:[].concat(X_(t),[e])}),[]);else if("number"===y){var D=function(t,e,n,r,i){var o=e.map((function(e){return Bj(t,e,n,i,r)})).filter((function(t){return!Ko(t)}));return o&&o.length?o.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0]):null}(P,r.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),v,i,l);D&&(S=D)}!h||"number"!==y&&"auto"===b||(A=Nj(P,v,"category"))}else S=h?xM(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:Xj(a[O].stackGroups,c,u):Rj(P,r.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),y,l,!0);if("number"===y)S=M_(s,S,O,i,w),_&&(S=Zj(_,S,g));else if("category"===y&&_){var C=_;S.every((function(t){return C.indexOf(t)>=0}))&&(S=C)}}return J_(J_({},e),{},Q_({},O,J_(J_({},n.props),{},{axisType:i,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:E,isCategorical:h,layout:l})))}),{})},lT=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(r,"Id"),f=za(l,i),h={};return f&&f.length?h=uT(t,{axes:f,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=iT(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),h=f.length,p=$j(l,i),d=-1;return n.reduce((function(t,e){var y,v=e.props[o],g=oT("number");return t[v]?t:(d++,p?y=xM(0,h):a&&a[v]&&a[v].hasStack?(y=Xj(a[v].stackGroups,c,u),y=M_(s,y,v,i)):(y=Zj(g,Rj(f,n.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",l),r.defaultProps.allowDataOverflow),y=M_(s,y,v,i)),J_(J_({},t),{},Q_({},v,J_(J_({axisType:i},r.defaultProps),{},{hide:!0,orientation:Go(eT,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:g,isCategorical:p,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),h},sT=function(t){var e=t.children,n=t.defaultShowTooltip,r=Ha(e,LM),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},fT=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},hT=function(t,e){var n=t.props,r=(t.graphicalItems,t.xAxisMap),i=void 0===r?{}:r,o=t.yAxisMap,a=void 0===o?{}:o,c=n.width,u=n.height,l=n.children,s=n.margin||{},f=Ha(l,LM),h=Ha(l,fp),p=Object.keys(a).reduce((function(t,e){var n=a[e],r=n.orientation;return n.mirror||n.hide?t:J_(J_({},t),{},Q_({},r,t[r]+n.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var n=i[e],r=n.orientation;return n.mirror||n.hide?t:J_(J_({},t),{},Q_({},r,Go(t,"".concat(r))+n.height))}),{top:s.top||0,bottom:s.bottom||0}),y=J_(J_({},d),p),v=y.bottom;f&&(y.bottom+=f.props.height||LM.defaultProps.height),h&&e&&(y=function(t,e,n,r){var i=n.children,o=n.width,a=n.margin,c=o-(a.left||0)-(a.right||0),u=Pj({children:i,legendWidth:c});if(u){var l=r||{},s=l.width,f=l.height,h=u.align,p=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===p)&&"center"!==h&&ya(t[h]))return kj(kj({},t),{},_j({},h,t[h]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===h)&&"middle"!==p&&ya(t[p]))return kj(kj({},t),{},_j({},p,t[p]+(f||0)))}return t}(y,0,n,e));var g=c-y.left-y.right,m=u-y.top-y.bottom;return J_(J_({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},pT=function(t){var e,n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,o=void 0===i?"axis":i,a=t.validateTooltipEventTypes,c=void 0===a?["axis"]:a,u=t.axisComponents,l=t.legendContent,s=t.formatAxisMap,f=t.defaultProps,h=function(t,e){var n=e.graphicalItems,r=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,l=t.barSize,s=t.layout,f=t.barGap,h=t.barCategoryGap,p=t.maxBarSize,d=fT(s),y=d.numericAxisName,v=d.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Ba(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(n),m=g&&function(t){var e=t.barSize,n=t.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,c=o.length;a<c;a++)for(var u=r[o[a]].stackGroups,l=Object.keys(u),s=0,f=l.length;s<f;s++){var h=u[l[s]],p=h.items,d=h.cateAxisId,y=p.filter((function(t){return Ba(t.type).indexOf("Bar")>=0}));if(y&&y.length){var v=y[0].props.barSize,g=y[0].props[d];i[g]||(i[g]=[]),i[g].push({item:y[0],stackList:y.slice(1),barSize:Ko(v)?e:v})}}return i}({barSize:l,stackGroups:r}),b=[];return n.forEach((function(n,l){var d=iT(t.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:c}),g=n.props,w=g.dataKey,x=g.maxBarSize,O=n.props["".concat(y,"Id")],S=n.props["".concat(v,"Id")],j=u.reduce((function(t,r){var i,o,a,c=e["".concat(r.axisType,"Map")],u=n.props["".concat(r.axisType,"Id")];c&&c[u]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?S_(!1,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==n||null===(o=n.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):S_(!1));var l=c[u];return J_(J_({},t),{},(Q_(a={},r.axisType,l),Q_(a,"".concat(r.axisType,"Ticks"),zj(l)),a))}),{}),A=j[v],P=j["".concat(v,"Ticks")],M=r&&r[O]&&r[O].hasStack&&function(t,e){var n=t.props.stackId;if(va(n)){var r=e[n];if(r){var i=r.items.indexOf(t);return i>=0?r.stackedData[i]:null}}return null}(n,r[O].stackGroups),E=Ba(n.type).indexOf("Bar")>=0,k=Jj(A,P),_=[];if(E){var T,D,C=Ko(x)?p:x,N=null!==(T=null!==(D=Jj(A,P,!0))&&void 0!==D?D:C)&&void 0!==T?T:0;_=function(t){var e=t.barGap,n=t.barCategoryGap,r=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var u,l=ba(e,r,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,h=r/c,p=o.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(c-1)*l)>=r&&(p-=(c-1)*l,l=0),p>=r&&h>0&&(f=!0,p=c*(h*=.9));var d={offset:((r-p)/2>>0)-l,size:0};u=o.reduce((function(t,e){var n={item:e.item,position:{offset:d.offset+d.size+l,size:f?h:e.barSize}},r=[].concat(Tj(t),[n]);return d=r[r.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:d})})),r}),s)}else{var y=ba(n,r,0,!0);r-2*y-(c-1)*l<=0&&(l=0);var v=(r-2*y-(c-1)*l)/c;v>1&&(v>>=0);var g=a===+a?Math.min(v,a):v;u=o.reduce((function(t,e,n){var r=[].concat(Tj(t),[{item:e.item,position:{offset:y+(v+l)*n+(v-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){r.push({item:t,position:r[r.length-1].position})})),r}),s)}return u}({barGap:f,barCategoryGap:h,bandSize:N!==k?N:k,sizeList:m[S],maxBarSize:C}),N!==k&&(_=_.map((function(t){return J_(J_({},t),{},{position:J_(J_({},t.position),{},{offset:t.position.offset-N/2})})})))}var I,B,R,$=n&&n.type&&n.type.getComposedData;$&&b.push({props:J_(J_({},$(J_(J_({},j),{},{displayedData:d,props:t,dataKey:w,item:n,bandSize:k,barPosition:_,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},(I={key:n.key||"item-".concat(l)},Q_(I,y,j[y]),Q_(I,v,j[v]),Q_(I,"animationId",o),I)),childIndex:(B=n,R=t.children,La(R).indexOf(B)),item:n})})),b},p=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Ua({props:i}))return null;var l=i.children,f=i.layout,p=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=fT(f),g=v.numericAxisName,m=v.cateAxisName,b=za(l,r),w=function(t,e,n,r,i,o){if(!t)return null;var a=(o?e.reverse():e).reduce((function(t,e){var i=e.props,o=i.stackId;if(i.hide)return t;var a=e.props[n],c=t[a]||{hasStack:!1,stackGroups:{}};if(va(o)){var u=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[o]=u}else c.stackGroups[ma("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return kj(kj({},t),{},_j({},a,c))}),{});return Object.keys(a).reduce((function(e,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(e,o){var a=c.stackGroups[o];return kj(kj({},e),{},_j({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Wj(t,a.items,i)}))}),{})),kj(kj({},e),{},_j({},o,c))}),{})}(d,b,"".concat(g,"Id"),"".concat(m,"Id"),p,y),x=u.reduce((function(t,e){var n="".concat(e.axisType,"Map");return J_(J_({},t),{},Q_({},n,lT(i,J_(J_({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=hT(J_(J_({},x),{},{props:i,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(x).forEach((function(t){x[t]=s(i,x[t],O,t.replace("Map",""),n)}));var S,j,A=x["".concat(m,"Map")],P=(S=wa(A),{tooltipTicks:j=zj(S,!1,!0),orderedTooltipTicks:sd(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:Jj(S,j)}),M=h(i,J_(J_({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:O}));return J_(J_({formattedGraphicalItems:M,graphicalItems:b,offset:O,stackGroups:w},P),x)};return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&q_(t,e)}(u,W);var e,r,i,a=W_(u);function u(t){var e,r,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),Q_(V_(i=a.call(this,t)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Q_(V_(i),"accessibilityManager",new I_),Q_(V_(i),"handleLegendBBoxUpdate",(function(t){if(t){var e=i.state,n=e.dataStartIndex,r=e.dataEndIndex,o=e.updateId;i.setState(J_({legendBBox:t},p({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},J_(J_({},i.state),{},{legendBBox:t}))))}})),Q_(V_(i),"handleReceiveSyncEvent",(function(t,e,n){if(i.props.syncId===t){if(n===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}})),Q_(V_(i),"handleBrushChange",(function(t){var e=t.startIndex,n=t.endIndex;if(e!==i.state.dataStartIndex||n!==i.state.dataEndIndex){var r=i.state.updateId;i.setState((function(){return J_({dataStartIndex:e,dataEndIndex:n},p({props:i.props,dataStartIndex:e,dataEndIndex:n,updateId:r},i.state))})),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}})),Q_(V_(i),"handleMouseEnter",(function(t){var e=i.getMouseInfo(t);if(e){var n=J_(J_({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;ii(r)&&r(n,t)}})),Q_(V_(i),"triggeredAfterMouseMove",(function(t){var e=i.getMouseInfo(t),n=e?J_(J_({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;ii(r)&&r(n,t)})),Q_(V_(i),"handleItemMouseEnter",(function(t){i.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),Q_(V_(i),"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),Q_(V_(i),"handleMouseMove",(function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)})),Q_(V_(i),"handleMouseLeave",(function(t){var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var n=i.props.onMouseLeave;ii(n)&&n(e,t)})),Q_(V_(i),"handleOuterEvent",(function(t){var e,n=function(t){var e=t&&t.type;return e&&Ia[e]?Ia[e]:null}(t),r=Go(i.props,"".concat(n));n&&ii(r)&&r(null!==(e=/.*touch.*/i.test(n)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)})),Q_(V_(i),"handleClick",(function(t){var e=i.getMouseInfo(t);if(e){var n=J_(J_({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;ii(r)&&r(n,t)}})),Q_(V_(i),"handleMouseDown",(function(t){var e=i.props.onMouseDown;ii(e)&&e(i.getMouseInfo(t),t)})),Q_(V_(i),"handleMouseUp",(function(t){var e=i.props.onMouseUp;ii(e)&&e(i.getMouseInfo(t),t)})),Q_(V_(i),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),Q_(V_(i),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])})),Q_(V_(i),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])})),Q_(V_(i),"triggerSyncEvent",(function(t){void 0!==i.props.syncId&&k_.emit(__,i.props.syncId,t,i.eventEmitterSymbol)})),Q_(V_(i),"applySyncEvent",(function(t){var e=i.props,n=e.layout,r=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(J_({dataStartIndex:a,dataEndIndex:c},p({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof r)s=r(d,t);else if("value"===r){s=-1;for(var y=0;y<d.length;y++)if(d[y].value===t.activeLabel){s=y;break}}var v=J_(J_({},h),{},{x:h.left,y:h.top}),g=Math.min(u,v.x+v.width),m=Math.min(l,v.y+v.height),b=d[s]&&d[s].value,w=aT(i.state,i.props.data,s),x=d[s]?{x:"horizontal"===n?d[s].coordinate:g,y:"horizontal"===n?m:d[s].coordinate}:rT;i.setState(J_(J_({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(t)})),Q_(V_(i),"verticalCoordinatesGenerator",(function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return Lj(yk(J_(J_(J_({},_k.defaultProps),n),{},{ticks:zj(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)})),Q_(V_(i),"horizontalCoordinatesGenerator",(function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return Lj(yk(J_(J_(J_({},_k.defaultProps),n),{},{ticks:zj(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)})),Q_(V_(i),"axesTicksGenerator",(function(t){return zj(t,!0)})),Q_(V_(i),"renderCursor",(function(t){var e,r=i.state,o=r.isTooltipActive,a=r.activeCoordinate,c=r.activePayload,u=r.offset,l=r.activeTooltipIndex,s=r.tooltipAxisBandSize,f=i.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:o;if(!t||!t.props.cursor||!h||!a||"ScatterChart"!==n&&"axis"!==f)return null;var p,d=i.props.layout,y=aP;if("ScatterChart"===n)p=a,y=MP;else if("BarChart"===n)p=function(t,e,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:n.left+.5,y:"horizontal"===t?n.top+.5:e.y-i,width:"horizontal"===t?r:n.width-1,height:"horizontal"===t?n.height-1:r}}(d,a,u,s),y=gP;else if("radial"===d){var v=j_(a),g=v.cx,m=v.cy,b=v.radius;p={cx:g,cy:m,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},y=GA}else p={points:B_(d,a,u)},y=aP;var w=t.key||"_recharts-cursor",x=J_(J_(J_(J_({stroke:"#ccc",pointerEvents:"none"},u),p),Wa(t.props.cursor)),{},{payload:c,payloadIndex:l,key:w,className:"recharts-tooltip-cursor"});return C(t.props.cursor)?B(t.props.cursor,x):q(y,x)})),Q_(V_(i),"renderPolarAxis",(function(t,e,n){var r=Go(t,"type.axisType"),o=Go(i.state,"".concat(r,"Map")),a=o&&o[t.props["".concat(r,"Id")]];return B(t,J_(J_({},a),{},{className:r,key:t.key||"".concat(e,"-").concat(n),ticks:zj(a,!0)}))})),Q_(V_(i),"renderXAxis",(function(t,e,n){var r=i.state.xAxisMap[t.props.xAxisId];return i.renderAxis(r,t,e,n)})),Q_(V_(i),"renderYAxis",(function(t,e,n){var r=i.state.yAxisMap[t.props.yAxisId];return i.renderAxis(r,t,e,n)})),Q_(V_(i),"renderGrid",(function(t){var e=i.state,n=e.xAxisMap,r=e.yAxisMap,o=e.offset,a=i.props,c=a.width,u=a.height,l=wa(n),s=w_(r,(function(t){return uE(t.domain,Number.isFinite)}))||wa(r),f=t.props||{};return B(t,{key:t.key||"grid",x:ya(f.x)?f.x:o.left,y:ya(f.y)?f.y:o.top,width:ya(f.width)?f.width:o.width,height:ya(f.height)?f.height:o.height,xAxis:l,yAxis:s,offset:o,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||i.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||i.horizontalCoordinatesGenerator})})),Q_(V_(i),"renderPolarGrid",(function(t){var e=t.props,n=e.radialLines,r=e.polarAngles,o=e.polarRadius,a=i.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=wa(c),s=wa(u),f=s.cx,h=s.cy,p=s.innerRadius,d=s.outerRadius;return B(t,{polarAngles:Array.isArray(r)?r:zj(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:zj(l,!0).map((function(t){return t.coordinate})),cx:f,cy:h,innerRadius:p,outerRadius:d,key:t.key||"polar-grid",radialLines:n})})),Q_(V_(i),"renderLegend",(function(){var t=i.state.formattedGraphicalItems,e=i.props,n=e.children,r=e.width,o=e.height,a=i.props.margin||{},c=r-(a.left||0)-(a.right||0),u=Pj({children:n,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=U_(u,R_);return B(s,J_(J_({},f),{},{chartWidth:r,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),Q_(V_(i),"renderTooltip",(function(){var t,e=Ha(i.props.children,Gv);if(!e)return null;var n=i.state,r=n.isTooltipActive,o=n.activeCoordinate,a=n.activePayload,c=n.activeLabel,u=n.offset,l=null!==(t=e.props.active)&&void 0!==t?t:r;return B(e,{viewBox:J_(J_({},u),{},{x:u.left,y:u.top}),active:l,label:c,payload:l?a:[],coordinate:o})})),Q_(V_(i),"renderBrush",(function(t){var e=i.props,n=e.margin,r=e.data,o=i.state,a=o.offset,c=o.dataStartIndex,u=o.dataEndIndex,l=o.updateId;return B(t,{key:t.key||"_recharts-brush",onChange:Uj(i.handleBrushChange,t.props.onChange),data:r,x:ya(t.props.x)?t.props.x:a.left,y:ya(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:ya(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),Q_(V_(i),"renderReferenceElement",(function(t,e,n){if(!t)return null;var r=V_(i).clipPathId,o=i.state,a=o.xAxisMap,c=o.yAxisMap,u=o.offset,l=t.props,s=l.xAxisId,f=l.yAxisId;return B(t,{key:t.key||"".concat(e,"-").concat(n),xAxis:a[s],yAxis:c[f],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:r})})),Q_(V_(i),"renderActivePoints",(function(t){var e=t.item,n=t.activePoint,r=t.basePoint,i=t.childIndex,o=t.isRange,a=[],c=e.props.key,l=e.item.props,s=l.activeDot,f=J_(J_({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Ij(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(i)},Wa(s)),ka(s));return a.push(u.renderActiveDot(s,f)),r?a.push(u.renderActiveDot(s,J_(J_({},f),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a})),Q_(V_(i),"renderGraphicChild",(function(t,e,n){var r=i.filterFormatItem(t,e,n);if(!r)return null;var o=i.getTooltipEventType(),a=i.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=Ha(i.props.children,Gv),h=r.props,p=h.points,d=h.isRange,y=h.baseLine,v=r.item.props,g=v.activeDot,m=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==o&&f&&"click"===f.props.trigger?O={onClick:Uj(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:Uj(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:Uj(i.handleItemMouseEnter,t.props.onMouseEnter)});var S=B(t,J_(J_({},r.props),O));if(x){if(!(l>=0)){var j,A=(null!==(j=i.getItemByXY(i.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,P=A.item,M=void 0===P?t:P,E=A.childIndex,k=J_(J_(J_({},r.props),O),{},{activeIndex:E});return[B(M,k),null,null]}var _,T;if(u.dataKey&&!u.allowDuplicatedCategory){var D="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());_=Oa(p,D,s),T=d&&y&&Oa(y,D,s)}else _=null==p?void 0:p[l],T=d&&y&&y[l];if(w||b){var C=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[B(t,J_(J_(J_({},r.props),O),{},{activeIndex:C})),null,null]}if(!Ko(_))return[S].concat(X_(i.renderActivePoints({item:r,activePoint:_,basePoint:T,childIndex:l,isRange:d})))}return d?[S,null,null]:[S,null]})),Q_(V_(i),"renderCustomized",(function(t,e,n){return B(t,J_(J_({key:"recharts-customized-".concat(n)},i.props),i.state))})),Q_(V_(i),"renderMap",{CartesianGrid:{handler:i.renderGrid,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:i.renderReferenceElement},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:i.renderXAxis},YAxis:{handler:i.renderYAxis},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(e=t.id)&&void 0!==e?e:ma("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=mg(i.triggeredAfterMouseMove,null!==(r=t.throttleDelay)&&void 0!==r?r:1e3/60),i.state={},i}return e=u,r=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(t,e){return this.props.accessibilityLayer?(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Ha(this.props.children,Gv);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return c.indexOf(e)>=0?e:o}return o}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e,n=this.container,r=n.getBoundingClientRect(),i={top:(e=r).top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft},o={chartX:Math.round(t.pageX-i.left),chartY:Math.round(t.pageY-i.top)},a=r.width/n.offsetWidth||1,c=this.inRange(o.chartX,o.chartY,a);if(!c)return null;var u=this.state,l=u.xAxisMap,s=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&l&&s){var f=wa(l).scale,h=wa(s).scale,p=f&&f.invert?f.invert(o.chartX):null,d=h&&h.invert?h.invert(o.chartY):null;return J_(J_({},o),{},{xValue:p,yValue:d})}var y=cT(this.state,this.props.data,this.props.layout,c);return y?J_(J_({},o),y):null}},{key:"inRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,i=t/n,o=e/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;if(u&&l){var s=wa(u);return sA({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=Ha(t,Gv),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),J_(J_({},ka(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){k_.on(__,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){k_.removeListener(__,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===t||a.props.key===t.key||e===Ba(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,e,n,r){var i=this.props,o=i.width,a=i.height;return D.createElement(_k,H_({},t,{className:Ar("recharts-".concat(t.axisType," ").concat(t.axisType),t.className),key:e.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:o,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,n=e.left,r=e.top,i=e.height,o=e.width;return D.createElement("defs",null,D.createElement("clipPath",{id:t},D.createElement("rect",{x:n,y:r,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=z_(e,2),r=n[0],i=n[1];return J_(J_({},t),{},Q_({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=z_(e,2),r=n[0],i=n[1];return J_(J_({},t),{},Q_({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(t){var e;return null===(e=this.state.xAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getYScaleByAxisId",value:function(t){var e;return null===(e=this.state.yAxisMap)||void 0===e||null===(e=e[t])||void 0===e?void 0:e.scale}},{key:"getItemByXY",value:function(t){var e=this.state,n=e.formattedGraphicalItems,r=e.activeItem;if(n&&n.length)for(var i=0,o=n.length;i<o;i++){var a=n[i],c=a.props,u=a.item,l=Ba(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return yP(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return sA(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(aM(a,r)||cM(a,r)||uM(a,r)){var h=hM({graphicalItem:a,activeTooltipItem:r,itemData:u.props.data}),p=void 0===u.props.activeIndex?h:u.props.activeIndex;return{graphicalItem:J_(J_({},a),{},{childIndex:p}),payload:uM(a,r)?u.props.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!Ua(this))return null;var e,n,r=this.props,i=r.children,o=r.className,a=r.width,c=r.height,u=r.style,l=r.compact,s=r.title,f=r.desc,h=U_(r,$_),p=Wa(h);if(l)return D.createElement(Ja,H_({},p,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),Xa(i,this.renderMap));this.props.accessibilityLayer&&(p.tabIndex=null!==(e=this.props.tabIndex)&&void 0!==e?e:0,p.role=null!==(n=this.props.role)&&void 0!==n?n:"img",p.onKeyDown=function(e){t.accessibilityManager.keyboardEvent(e)},p.onFocus=function(){t.accessibilityManager.focus()});var d=this.parseEventsOfWrapper();return D.createElement("div",H_({className:Ar("recharts-wrapper",o),style:J_({position:"relative",cursor:"default",width:a,height:c},u)},d,{ref:function(e){t.container=e},role:"region"}),D.createElement(Ja,H_({},p,{width:a,height:c,title:s,desc:f,style:nT}),this.renderClipPath(),Xa(i,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],r&&F_(e.prototype,r),i&&F_(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(),Q_(e,"displayName",n),Q_(e,"defaultProps",J_({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),Q_(e,"getDerivedStateFromProps",(function(t,e){var n=t.dataKey,r=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin;if(void 0===e.updateId){var s=sT(t);return J_(J_(J_({},s),{},{updateId:0},p(J_(J_({props:t},s),{},{updateId:0}),e)),{},{prevDataKey:n,prevData:r,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(n!==e.prevDataKey||r!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!Sa(l,e.prevMargin)){var f=sT(t),h={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},d=J_(J_({},cT(e,r,c)),{},{updateId:e.updateId+1}),y=J_(J_(J_({},f),h),d);return J_(J_(J_({},y),p(J_({props:t},y),e)),{},{prevDataKey:n,prevData:r,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!Va(i,e.prevChildren)){var v=!Ko(r)?e.updateId:e.updateId+1;return J_(J_({updateId:v},p(J_(J_({props:t},e),{},{updateId:v}),e)),{},{prevChildren:i})}return null})),Q_(e,"renderActiveDot",(function(t,e){var n;return n=C(t)?B(t,e):ii(t)?t(e):D.createElement(bP,e),D.createElement(nc,{className:"recharts-active-dot",key:e.key},n)})),e},dT=pT({chartName:"LineChart",GraphicalChild:Vk,axisComponents:[{axisType:"xAxis",AxisComp:u_},{axisType:"yAxis",AxisComp:l_}],formatAxisMap:$E}),yT=pT({chartName:"AreaChart",GraphicalChild:c_,axisComponents:[{axisType:"xAxis",AxisComp:u_},{axisType:"yAxis",AxisComp:l_}],formatAxisMap:$E});const vT=({data:n,dataKey:r,width:i="100%",height:o="100%",areaType:a="monotone"})=>{const{isNetGain:c}=sr({data:n,dataKey:r}),u=c?dr.mint():dr.coolElegance();return e(Ag,{width:i,minHeight:o,children:t(yT,{data:n,margin:{top:0,right:0,left:0,bottom:0},children:[e("defs",{children:t("linearGradient",{id:"dataFill",x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:u,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:u,stopOpacity:0})]})}),e(c_,{type:a,dataKey:r,stroke:u,fill:"url(#dataFill)"})]})})},gT=({children:t,...n})=>e(u,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:dr.coolElegance(),boxShadow:"none",borderRadius:"xl",...n,children:t}),mT=n=>{const{size:r,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,errorMessage:u,label:d,labelPosition:y="left",spaceBetween:v,...g}=n;let m;return c||(m=e(rt,{})),t(l,{as:s,flexDir:"column",isInvalid:Boolean(u),isDisabled:i,isReadOnly:o,isRequired:a,...g,children:[t(s,{w:"full",justifyContent:v?"space-between":"auto",children:["left"===y&&e(f,{size:r,m:"0",mr:"3",children:d}),e(h,{icon:m,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(u),size:r}),"right"===y&&e(f,{size:r,m:"0",ml:"3",children:d})]}),e(s,{w:"full",children:u&&e(p,{size:r,children:u})})]})},bT=n=>{const{size:r,isDisabled:i,isReadOnly:o,isRequired:a,spellCheck:c=!1,name:u,register:s,rules:h,errorMessage:b,helperText:w,label:x,IconLeft:O,IconRight:S,...j}=n,A=hr(r);return t(l,{isInvalid:Boolean(b),isDisabled:i,isReadOnly:o,isRequired:a,children:[x&&e(f,{size:r,children:x}),t(d,{size:r,children:[O&&e(y,{children:e(O,{})}),e(v,{isDisabled:i,isReadOnly:o,isRequired:a,isInvalid:Boolean(b),size:r,spellCheck:c,...s(u,{...h}),...j}),S&&e(g,{children:e(S,{})})]}),b&&e(p,{size:r,children:b}),w&&e(m,{fontSize:A,children:w})]})},wT=({data:n,dataKey:r,width:i="100%",height:o="100%",lineType:a="linear"})=>{const{isNetGain:c}=sr({data:n,dataKey:r}),u=c?dr.mint():dr.heroicRed();return e(Ag,{width:i,minHeight:o,children:t(dT,{data:n,children:[e(l_,{domain:["dataMin","dataMax"],hide:!0}),e(Vk,{type:a,dataKey:r,stroke:u,strokeWidth:"2",dot:!1,scale:"threshold"})]})})},xT=n=>{const{children:r,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:u,register:s,rules:h,errorMessage:d,helperText:y,label:v,...g}=n,w=hr(i);return t(l,{isInvalid:Boolean(d),isDisabled:o,isReadOnly:a,isRequired:c,children:[v&&e(f,{size:i,children:v}),e(b,{icon:e(J,{}),isDisabled:o,isReadOnly:a,isRequired:c,isInvalid:Boolean(d),size:i,...s(u,h),...g,children:r}),d&&e(p,{size:i,children:d}),y&&e(m,{fontSize:w,children:y})]})},OT=n=>{const{label:r,IconLeft:i,IconRight:o,onClose:a,...c}=n,[u,l]=z(!0);return u?t(w,{...c,children:[i&&e(x,{as:i}),e(O,{children:r}),o&&e(S,{as:o}),a&&e(j,{onClick:()=>{a(),l(!1)}})]}):null},ST=n=>{const{description:r,title:i,onClose:o,isClosable:a,status:c}=n;let u,l;switch(c){case"error":l=V;break;case"success":l=rt;break;case"warning":l=wt,u="yellow";break;case"loading":u="brand",l=T;break;default:u="brand",l=wt}return t(A,{as:s,colorScheme:u,flexDir:"row",justifyContent:"space-between",status:c,children:[t(s,{alignItems:"center",children:[e(P,{children:e(l,{size:"sm"})}),t(M,{children:[e(E,{children:i}),e(k,{children:r})]})]}),a&&e(_,{onClick:o})]})};export{vT as CfAreaChart,gT as CfCard,mT as CfCheckbox,bT as CfInput,wT as CfLineChart,xT as CfSelect,OT as CfTag,ST as CfToast,V as IconAlert,Y as IconArrowDown,X as IconArrowUp,G as IconBank,K as IconBarChart,Z as IconCalendar,J as IconCaretDown,Q as IconCaretLeft,tt as IconCaretRight,et as IconCaretUp,nt as IconCent,rt as IconCheck,it as IconChecking,ot as IconClose,at as IconConnect,ct as IconCopy,ut as IconDollar,lt as IconDownload,st as IconEdit,ft as IconEnter,ht as IconEnterInverted,pt as IconExchange,dt as IconFilter,yt as IconHelp,vt as IconHistory,gt as IconHome,mt as IconIndicatorDown,bt as IconIndicatorUp,wt as IconInfo,xt as IconMail,Ot as IconMenu,St as IconMore,jt as IconNotification,At as IconOverview,Pt as IconPercent,Mt as IconPieChart,Et as IconPlus,kt as IconReports,_t as IconReservesSuccess,Tt as IconReservesWarning,Dt as IconSearch,Ct as IconSettings,Nt as IconSettlement,It as IconSignIn,Bt as IconSignOut,Rt as IconSort,$t as IconSpinner,Lt as IconSupport,zt as IconTrash,Ht as IconUpload,Ut as IconUser,je as convertToUTCEpochTime,Sr as coreTheme,Ae as formatPercentage,Pe as formatUSD,sr as getDelta,fr as getFormDataQuery,pr as isFormDataEmpty,dr as uiColors};
|
|
30
23
|
//# sourceMappingURL=index.js.map
|