@cryptofi/core-ui 0.11.0 → 0.13.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 CHANGED
@@ -1,12 +1,19 @@
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,useBreakpoint as u,Portal as l,Text as s,Card as f,FormControl as h,Flex as p,FormLabel as d,Checkbox as y,FormErrorMessage as v,InputGroup as g,InputLeftElement as m,Input as b,InputRightElement as w,FormHelperText as x,Select as O,Tag as S,TagLeftIcon as j,TagLabel as A,TagRightIcon as P,TagCloseButton as M,Alert as E,AlertIcon as k,Box as _,AlertTitle as T,AlertDescription as N,CloseButton as C,Spinner as I}from"@chakra-ui/react";import D,{isValidElement as B,Children as R,PureComponent as L,cloneElement as z,forwardRef as $,useRef as H,useImperativeHandle as U,useState as F,useCallback as q,useEffect as W,useMemo as V,createElement as X,Component as G}from"react";const Y=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"})})})]}))),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.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"})})})]}))),Z=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"})})})]}))),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:"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"})})})]}))),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:[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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:[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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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.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"})})})]}))),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:"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"})})})]}))),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",{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"})})})]}))),dt=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"})}))),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:"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"})}))),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:"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"})})})]}))),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:"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"})})})]}))),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",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"})})})]}))),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",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"})})})]}))),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",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"})})})]}))),xt=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"})}))),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 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"})}))),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",{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"})})})]}))),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:"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"})})})]}))),At=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"})}))),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 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"})})})]}))),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:"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"})})})]}))),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.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"})})})]}))),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("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"})]}))),_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",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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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.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"})})})]}))),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",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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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 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"})})})]}))),$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",{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"})})})]}))),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 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"})})})]}))),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.576M5 20.5a3 3 0 1 1 0-6zm14 0v-6a3 3 0 0 1 0 6"})}))),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 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"})})})]}))),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 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"})})})]}))),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",{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 Vt(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 Vt(t,e)},toPart:r,extend:function(...n){for(const t of n)t in e||(e[t]=r(t));return Vt(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 Xt=Vt("accordion").parts("root","container","button","panel").extend("icon"),Gt=Vt("alert").parts("title","description","container").extend("icon","spinner");Vt("avatar").parts("label","badge","container").extend("excessLabel","group"),Vt("breadcrumb").parts("link","item","container").extend("separator"),Vt("button").parts();var Yt=Vt("checkbox").parts("control","icon","container").extend("label");Vt("progress").parts("track","filledTrack").extend("label"),Vt("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Vt("editable").parts("preview","input","textarea"),Vt("form").parts("container","requiredIndicator","helperText"),Vt("formError").parts("text","icon");var Kt=Vt("input").parts("addon","field","element","group");Vt("list").parts("container","item","icon"),Vt("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Vt("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Vt("numberinput").parts("root","field","stepperGroup","stepper"),Vt("pininput").parts("field"),Vt("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Vt("progress").parts("label","filledTrack","track"),Vt("radio").parts("container","control","label");var Zt=Vt("select").parts("field","icon");Vt("slider").parts("container","track","thumb","filledTrack","mark"),Vt("stat").parts("container","label","helpText","number","icon"),Vt("switch").parts("container","track","thumb","label"),Vt("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Vt("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");var Jt=Vt("tag").parts("container","label","closeButton");Vt("card").parts("container","header","body","footer"),Vt("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Qt,defineMultiStyleConfig:te}=r(Xt.keys),ee=te({baseStyle:Qt({container:{border:"solid 1px lightgray",borderRadius:"md",bg:"gray.100",color:"black",marginBottom:4},panel:{bg:"white"}})}),{definePartsStyle:ne,defineMultiStyleConfig:re}=r(Gt.keys),ie=re({baseStyle:ne((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"}}),oe=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:ae,defineMultiStyleConfig:ce}=r(Yt.keys),ue=ce({baseStyle:ae({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"}}}}}),le=o({baseStyle:{helperText:{fontSize:"sm"}}}),se=o({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}}),fe=o({baseStyle:{_groupInvalid:{color:"red.500"}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),{definePartsStyle:he,defineMultiStyleConfig:pe}=r(Kt.keys),de=pe({baseStyle:he({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:ye,defineMultiStyleConfig:ve}=r(Zt.keys),ge=ve({baseStyle:ye({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"}}),me=({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)},be=({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)};
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,useBreakpoint as u,Portal as l,Text as s,Card as f,FormControl as h,Flex as p,FormLabel as d,Checkbox as y,FormErrorMessage as v,InputGroup as g,InputLeftElement as m,Input as b,InputRightElement as w,FormHelperText as x,Select as O,Tag as S,TagLeftIcon as j,TagLabel as A,TagRightIcon as P,TagCloseButton as M,Alert as E,AlertIcon as k,Box as _,AlertTitle as T,AlertDescription as C,CloseButton as N,Spinner as D}from"@chakra-ui/react";import I,{isValidElement as B,Children as R,PureComponent as $,cloneElement as L,forwardRef as z,useRef as H,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-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"})})})]}))),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.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"})})})]}))),Z=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"})})})]}))),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:"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"})})})]}))),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:[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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:[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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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.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"})})})]}))),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:"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"})})})]}))),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",{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"})})})]}))),dt=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"})}))),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:"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"})}))),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:"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"})})})]}))),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:"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"})})})]}))),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",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"})})})]}))),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",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"})})})]}))),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",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"})})})]}))),xt=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"})}))),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 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"})}))),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",{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"})})})]}))),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:"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"})})})]}))),At=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"})}))),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 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"})})})]}))),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:"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"})})})]}))),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.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"})})})]}))),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("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"})]}))),_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",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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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.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"})})})]}))),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:"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"})})})]}))),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:"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"})})})]}))),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",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"})})})]}))),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:"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"})})})]}))),$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 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"})})})]}))),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:"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"})})})]}))),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",{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"})})})]}))),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 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"})})})]}))),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.576M5 20.5a3 3 0 1 1 0-6zm14 0v-6a3 3 0 0 1 0 6"})}))),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 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"})})})]}))),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 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"})})})]}))),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 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 Wt(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 Wt(t,e)},toPart:r,extend:function(...n){for(const t of n)t in e||(e[t]=r(t));return Wt(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 Yt=Wt("accordion").parts("root","container","button","panel").extend("icon"),Xt=Wt("alert").parts("title","description","container").extend("icon","spinner");Wt("avatar").parts("label","badge","container").extend("excessLabel","group"),Wt("breadcrumb").parts("link","item","container").extend("separator"),Wt("button").parts();var Gt=Wt("checkbox").parts("control","icon","container").extend("label");Wt("progress").parts("track","filledTrack").extend("label"),Wt("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Wt("editable").parts("preview","input","textarea"),Wt("form").parts("container","requiredIndicator","helperText"),Wt("formError").parts("text","icon");var Kt=Wt("input").parts("addon","field","element","group");Wt("list").parts("container","item","icon"),Wt("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),Wt("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),Wt("numberinput").parts("root","field","stepperGroup","stepper"),Wt("pininput").parts("field"),Wt("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),Wt("progress").parts("label","filledTrack","track"),Wt("radio").parts("container","control","label");var Zt=Wt("select").parts("field","icon");Wt("slider").parts("container","track","thumb","filledTrack","mark"),Wt("stat").parts("container","label","helpText","number","icon"),Wt("switch").parts("container","track","thumb","label"),Wt("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),Wt("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");var Jt=Wt("tag").parts("container","label","closeButton");Wt("card").parts("container","header","body","footer"),Wt("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Qt,defineMultiStyleConfig:te}=r(Yt.keys),ee=te({baseStyle:Qt({container:{border:"solid 1px lightgray",borderRadius:"md",bg:"gray.100",color:"black",marginBottom:4},panel:{bg:"white"}})}),{definePartsStyle:ne,defineMultiStyleConfig:re}=r(Xt.keys),ie=re({baseStyle:ne((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"}}),oe=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:ae,defineMultiStyleConfig:ce}=r(Gt.keys),ue=ce({baseStyle:ae({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"}}}}}),le=o({baseStyle:{helperText:{fontSize:"sm"}}}),se=o({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}}),fe=o({baseStyle:{_groupInvalid:{color:"red.500"}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),{definePartsStyle:he,defineMultiStyleConfig:pe}=r(Kt.keys),de=pe({baseStyle:he({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:ye,defineMultiStyleConfig:ve}=r(Zt.keys),ge=ve({baseStyle:ye({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 be(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var we={exports:{}};we.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 xe,Oe,Se,je=be(we.exports),Ae={exports:{}};Ae.exports=(xe="minute",Oe=/[+-]\d\d(?::?\d\d)?/g,Se=/([+-]|\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(),xe):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(Oe);if(!e)return null;var n=(""+e[0]).match(Se)||["-",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,xe)).$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 Pe=be(Ae.exports);je.extend(Pe);const Me=({timeString:t,toEndDate:e})=>""===t?"":e?je(`${t}T23:59:59`).utc().unix().toString():je(t).utc().unix().toString(),Ee=({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)};
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 ke={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},_e=function(t){return Math.round(t)},Te=function(t){return Math.pow(10,t)},Ce=/(\d)(?=(\d{3})+\b)/g,Ne=/(\d)(?=(\d\d)+\d\b)/g;function De(t,e){var n=this;if(!(n instanceof De))return new De(t,e);var r=Object.assign({},ke,e),i=Te(r.precision),o=Ie(t,r);n.intValue=o,n.value=o/i,r.increment=r.increment||1/i,r.useVedic?r.groups=Ne:r.groups=Ce,this.s=r,this.p=i}function Ie(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=Te(a),l="number"==typeof t,s=t instanceof De;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?_e(r):r}De.prototype={add:function(t){var e=this.intValue,n=this.s,r=this.p;return De((e+=Ie(t,n))/(n.fromCents?1:r),n)},subtract:function(t){var e=this.intValue,n=this.s,r=this.p;return De((e-=Ie(t,n))/(n.fromCents?1:r),n)},multiply:function(t){var e=this.intValue,n=this.s;return De((e*=t)/(n.fromCents?1:Te(n.precision)),n)},divide:function(t){var e=this.intValue,n=this.s;return De(e/=Ie(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=De(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,_e(t/e)*e).toFixed(i.precision)},toJSON:function(){return this.value}};const Be=({amount:t,precision:e=2,signDisplay:n=!1})=>{if(!Number.isFinite(t))throw new Error("Amount is not a finite number");const r=De(t,{precision:e}).format();return n&&t>0?`+${r}`:r};
2
10
  /*!
3
11
  * decimal.js v10.4.3
4
12
  * An arbitrary-precision Decimal type for JavaScript.
5
13
  * https://github.com/MikeMcl/decimal.js
6
14
  * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
7
15
  * MIT Licence
8
- */
9
- var we,xe,Oe=9e15,Se=1e9,je="0123456789abcdef",Ae="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Pe="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Me={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Oe,maxE:Oe,crypto:!1},Ee=!0,ke="[DecimalError] ",_e=ke+"Invalid argument: ",Te=ke+"Precision limit exceeded",Ne=ke+"crypto unavailable",Ce="[object Decimal]",Ie=Math.floor,De=Math.pow,Be=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Re=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Le=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,ze=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,$e=1e7,He=7,Ue=Ae.length-1,Fe=Pe.length-1,qe={toStringTag:Ce};function We(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=He-r.length)&&(o+=nn(n)),o+=r;a=t[e],(n=He-(r=a+"").length)&&(o+=nn(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function Ve(t,e,n){if(t!==~~t||t<e||t>n)throw Error(_e+t)}function Xe(t,e,n,r){var i,o,a,c;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=He,i=0):(i=Math.ceil((e+1)/He),e%=He),o=De(10,He-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)==De(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)==De(10,e-3)-1,a}function Ge(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]+=je.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()}qe.absoluteValue=qe.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),Ke(t)},qe.ceil=function(){return Ke(new this.constructor(this),this.e+1,2)},qe.clampedTo=qe.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(_e+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},qe.comparedTo=qe.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},qe.cosine=qe.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())+He,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;r=e.d.length,r<32?i=(1/hn(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=fn(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,pn(r,n)),r.precision=t,r.rounding=e,Ke(2==xe||3==xe?n.neg():n,t,e,!0)):new r(1):new r(NaN)},qe.cubeRoot=qe.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(Ee=!1,(o=s.s*De(s.s*s,1/3))&&Math.abs(o)!=1/0?r=new f(o.toString()):(n=We(s.d),(o=((t=s.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=De(n,1/3),t=Ie((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=Ye(l.plus(s).times(c),l.plus(u),a+2,1),We(c.d).slice(0,a)===(n=We(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))||(Ke(r,t+1,1),e=!r.times(r).times(r).eq(s));break}if(!i&&(Ke(c,t+1,0),c.times(c).times(c).eq(s))){r=c;break}a+=4,i=1}return Ee=!0,Ke(r,t,f.rounding,e)},qe.decimalPlaces=qe.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=((t=e.length-1)-Ie(this.e/He))*He,t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},qe.dividedBy=qe.div=function(t){return Ye(this,new this.constructor(t))},qe.dividedToIntegerBy=qe.divToInt=function(t){var e=this.constructor;return Ke(Ye(this,new e(t),0,1,1),e.precision,e.rounding)},qe.equals=qe.eq=function(t){return 0===this.cmp(t)},qe.floor=function(){return Ke(new this.constructor(this),this.e+1,3)},qe.greaterThan=qe.gt=function(t){return this.cmp(t)>0},qe.greaterThanOrEqualTo=qe.gte=function(t){var e=this.cmp(t);return 1==e||0===e},qe.hyperbolicCosine=qe.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/hn(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=fn(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 Ke(o,a.precision=n,a.rounding=r,!0)},qe.hyperbolicSine=qe.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=fn(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=fn(o,2,i=i.times(1/hn(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,Ke(i,e,n,!0)},qe.hyperbolicTangent=qe.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,Ye(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},qe.inverseCosine=qe.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()?tn(n,i,o):new n(0):new n(NaN):e.isZero()?tn(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=tn(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},qe.inverseHyperbolicCosine=qe.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,Ee=!1,n=n.times(n).minus(1).sqrt().plus(n),Ee=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},qe.inverseHyperbolicSine=qe.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,Ee=!1,n=n.times(n).plus(1).sqrt().plus(n),Ee=!0,r.precision=t,r.rounding=e,n.ln())},qe.inverseHyperbolicTangent=qe.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?Ke(new o(i),t,e,!0):(o.precision=n=r-i.e,i=Ye(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)},qe.inverseSine=qe.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=tn(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)))},qe.inverseTangent=qe.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<=Fe)return(a=tn(s,f+4,h).times(.25)).s=l.s,a}else{if(!l.s)return new s(NaN);if(f+4<=Fe)return(a=tn(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/He+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Ee=!1,e=Math.ceil(c/He),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)),Ee=!0,Ke(a,s.precision=f,s.rounding=h,!0)},qe.isFinite=function(){return!!this.d},qe.isInteger=qe.isInt=function(){return!!this.d&&Ie(this.e/He)>this.d.length-2},qe.isNaN=function(){return!this.s},qe.isNegative=qe.isNeg=function(){return this.s<0},qe.isPositive=qe.isPos=function(){return this.s>0},qe.isZero=function(){return!!this.d&&0===this.d[0]},qe.lessThan=qe.lt=function(t){return this.cmp(t)<0},qe.lessThanOrEqualTo=qe.lte=function(t){return this.cmp(t)<1},qe.logarithm=qe.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(Ee=!1,a=un(l,c=f+5),r=e?Qe(s,c+10):un(t,c),Xe((u=Ye(a,r,c,1)).d,i=f,h))do{if(a=un(l,c+=10),r=e?Qe(s,c+10):un(t,c),u=Ye(a,r,c,1),!o){+We(u.d).slice(i+1,i+15)+1==1e14&&(u=Ke(u,f+1,0));break}}while(Xe(u.d,i+=10,h));return Ee=!0,Ke(u,f,h)},qe.minus=qe.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 Ee?Ke(t,c,u):t}if(n=Ie(t.e/He),s=Ie(p.e/He),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/He),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]=$e-1;--l[i],l[r]+=$e}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=Je(l,n),Ee?Ke(t,c,u):t):new d(3===u?-0:0)},qe.modulo=qe.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]?Ke(new r(n),r.precision,r.rounding):(Ee=!1,9==r.modulo?(e=Ye(n,t.abs(),0,3,1)).s*=t.s:e=Ye(n,t,0,r.modulo,1),e=e.times(t),Ee=!0,n.minus(e))},qe.naturalExponential=qe.exp=function(){return cn(this)},qe.naturalLogarithm=qe.ln=function(){return un(this)},qe.negated=qe.neg=function(){var t=new this.constructor(this);return t.s=-t.s,Ke(t)},qe.plus=qe.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)),Ee?Ke(t,c,u):t;if(o=Ie(f.e/He),r=Ie(t.e/He),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/He))>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)/$e|0,l[i]%=$e;for(e&&(l.unshift(e),++r),a=l.length;0==l[--a];)l.pop();return t.d=l,t.e=Je(l,r),Ee?Ke(t,c,u):t},qe.precision=qe.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(_e+t);return n.d?(e=en(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},qe.round=function(){var t=this,e=t.constructor;return Ke(new e(t),t.e+1,e.rounding)},qe.sine=qe.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())+He,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:fn(t,2,e,e);n=1.4*Math.sqrt(r),n=n>16?16:0|n,e=e.times(1/hn(5,n)),e=fn(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,pn(r,n)),r.precision=t,r.rounding=e,Ke(xe>2?n.neg():n,t,e,!0)):new r(NaN)},qe.squareRoot=qe.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(Ee=!1,0==(l=Math.sqrt(+a))||l==1/0?(((e=We(c)).length+u)%2==0&&(e+="0"),l=Math.sqrt(e),u=Ie((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(Ye(a,o,n+2,1)).times(.5),We(o.d).slice(0,n)===(e=We(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))||(Ke(r,u+1,1),t=!r.times(r).eq(a));break}if(!i&&(Ke(o,u+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return Ee=!0,Ke(r,u,s.rounding,t)},qe.tangent=qe.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=Ye(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,Ke(2==xe||4==xe?n.neg():n,t,e,!0)):new r(NaN)},qe.times=qe.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=Ie(s.e/He)+Ie(t.e/He),(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%$e|0,e=c/$e|0;o[i]=(o[i]+e)%$e|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=Je(o,n),Ee?Ke(t,f.precision,f.rounding):t},qe.toBinary=function(t,e){return dn(this,2,t,e)},qe.toDecimalPlaces=qe.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(Ve(t,0,Se),void 0===e?e=r.rounding:Ve(e,0,8),Ke(n,t+n.e+1,e))},qe.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=Ze(r,!0):(Ve(t,0,Se),void 0===e?e=i.rounding:Ve(e,0,8),n=Ze(r=Ke(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},qe.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=Ze(i):(Ve(t,0,Se),void 0===e?e=o.rounding:Ve(e,0,8),n=Ze(r=Ke(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},qe.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=en(d)-p.e-1)%He,e.d[0]=De(10,a<0?He+a:a),null==t)t=o>0?e:l;else{if(!(c=new y(t)).isInt()||c.lt(l))throw Error(_e+c);t=c.gt(e)?o>0?e:l:c}for(Ee=!1,c=new y(We(d)),s=y.precision,y.precision=o=d.length*He*2;f=Ye(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=Ye(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=Ye(l,r,o,1).minus(p).abs().cmp(Ye(u,n,o,1).minus(p).abs())<1?[l,r]:[u,n],y.precision=s,Ee=!0,h},qe.toHexadecimal=qe.toHex=function(t,e){return dn(this,16,t,e)},qe.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:Ve(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]?(Ee=!1,n=Ye(n,t,0,e,1).times(t),Ee=!0,Ke(n)):(t.s=n.s,n=t),n},qe.toNumber=function(){return+this},qe.toOctal=function(t,e){return dn(this,8,t,e)},qe.toPower=qe.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(De(+c,l));if((c=new u(c)).eq(1))return c;if(r=u.precision,o=u.rounding,t.eq(1))return Ke(c,r,o);if((e=Ie(t.e/He))>=t.d.length-1&&(n=l<0?-l:l)<=9007199254740991)return i=rn(u,c,n,r),t.s<0?new u(1).div(i):Ke(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=De(+c,l))&&isFinite(n)?new u(n+"").e:Ie(l*(Math.log("0."+We(c.d))/Math.LN10+c.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(Ee=!1,u.rounding=c.s=1,n=Math.min(12,(e+"").length),(i=cn(t.times(un(c,r+n)),r)).d&&Xe((i=Ke(i,r+5,1)).d,r,o)&&(e=r+10,+We((i=Ke(cn(t.times(un(c,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=Ke(i,r+1,0))),i.s=a,Ee=!0,u.rounding=o,Ke(i,r,o))},qe.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=Ze(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(Ve(t,1,Se),void 0===e?e=i.rounding:Ve(e,0,8),n=Ze(r=Ke(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},qe.toSignificantDigits=qe.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(Ve(t,1,Se),void 0===e?e=n.rounding:Ve(e,0,8)),Ke(new n(this),t,e)},qe.toString=function(){var t=this,e=t.constructor,n=Ze(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},qe.truncated=qe.trunc=function(){return Ke(new this.constructor(this),this.e+1,1)},qe.valueOf=qe.toJSON=function(){var t=this,e=t.constructor,n=Ze(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var Ye=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,N=i.d;if(!(T&&T[0]&&N&&N[0]))return new k(r.s&&i.s&&(T?!N||T[0]!=N[0]:N)?T&&0==T[0]||!N?0*_:_/0:NaN);for(u?(p=1,s=r.e-i.e):(u=$e,p=He,s=Ie(r.e/p)-Ie(i.e/p)),M=N.length,A=T.length,m=(g=new k(_)).d=[],f=0;N[f]==(T[f]||0);f++);if(N[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,N=N[0],O++;(f<A||h)&&O--;f++)S=h*u+(T[f]||0),m[f]=S/N|0,h=S%N|0;d=h||f<A}else{for((h=u/(N[0]+1)|0)>1&&(N=t(N,h,u),T=t(T,h,u),M=N.length,A=T.length),j=M,w=(b=T.slice(0,M)).length;w<M;)b[w++]=0;(E=N.slice()).unshift(0),P=N[0],N[1]>=u/2&&++P;do{h=0,(l=e(N,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(N,h,u),b,v=y.length,w=b.length))&&(h--,n(y,M<v?E:N,v,u))):(0==h&&(l=h=1),y=N.slice()),(v=y.length)<w&&y.unshift(0),n(b,y,w,u),-1==l&&(l=e(N,b,M,w=b.length))<1&&(h++,n(b,M<w?E:N,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,we=d;else{for(f=1,h=m[0];h>=10;h/=10)f++;g.e=f+s*p-1,Ke(g,c?o+g.e+1:o,a,d)}return g}}();function Ke(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+=He,a=e,u=(s=f[h=0])/De(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/He))>=(c=f.length)){if(!r)break t;for(;c++<=h;)f.push(0);s=u=0,i=1,a=(o%=He)-He+1}else{for(s=c=f[h],i=1;c>=10;c/=10)i++;u=(a=(o%=He)-He+i)<0?0:s/De(10,i-a-1)%10|0}if(r=r||e<0||void 0!==f[h+1]||(a<0?s:s%De(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/De(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]=De(10,(He-e%He)%He),t.e=-e||0):f[0]=t.e=0,t;if(0==o?(f.length=h,c=1,h--):(f.length=h+1,c=De(10,He-o),f[h]=a>0?(s/De(10,i-a)%De(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]==$e&&(f[0]=1));break}if(f[h]+=c,f[h]!=$e)break;f[h--]=0,c=1}for(o=f.length;0===f[--o];)f.pop()}return Ee&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function Ze(t,e,n){if(!t.isFinite())return ln(t);var r,i=t.e,o=We(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+nn(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+nn(-i-1)+o,n&&(r=n-a)>0&&(o+=nn(r))):i>=a?(o+=nn(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+nn(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=nn(r))),o}function Je(t,e){var n=t[0];for(e*=He;n>=10;n/=10)e++;return e}function Qe(t,e,n){if(e>Ue)throw Ee=!0,n&&(t.precision=n),Error(Te);return Ke(new t(Ae),e,1,!0)}function tn(t,e,n){if(e>Fe)throw Error(Te);return Ke(new t(Pe),e,n,!0)}function en(t){var e=t.length-1,n=e*He+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function nn(t){for(var e="";t--;)e+="0";return e}function rn(t,e,n,r){var i,o=new t(1),a=Math.ceil(r/He+4);for(Ee=!1;;){if(n%2&&yn((o=o.times(e)).d,a)&&(i=!0),0===(n=Ie(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}yn((e=e.times(e)).d,a)}return Ee=!0,o}function on(t){return 1&t.d[t.d.length-1]}function an(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?(Ee=!1,u=d):u=e,c=new h(.03125);t.e>-2;)t=t.times(c),f+=5;for(u+=r=Math.log(De(2,f))/Math.LN10*2+5|0,n=o=a=new h(1),h.precision=u;;){if(o=Ke(o.times(t),u,1),n=n.times(++s),We((c=a.plus(Ye(o,n,u,1))).d).slice(0,u)===We(a.d).slice(0,u)){for(i=f;i--;)a=Ke(a.times(a),u,1);if(null!=e)return h.precision=d,a;if(!(l<3&&Xe(a.d,u-r,p,l)))return Ke(a,h.precision=d,p,Ee=!0);h.precision=u+=10,n=o=c=new h(1),s=0,l++}a=c}}function un(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?(Ee=!1,s=m):s=e,v.precision=s+=10,r=(n=We(y)).charAt(0),!(Math.abs(o=d.e)<15e14))return l=Qe(v,s+2,m).times(o+""),d=un(new v(r+"."+n.slice(1)),s-10).plus(l),v.precision=m,null==e?Ke(d,m,g,Ee=!0):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=We((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=Ye(d.minus(1),d.plus(1),s,1),h=Ke(d.times(d),s,1),i=3;;){if(a=Ke(a.times(h),s,1),We((l=u.plus(Ye(a,new v(i),s,1))).d).slice(0,s)===We(u.d).slice(0,s)){if(u=u.times(2),0!==o&&(u=u.plus(Qe(v,s+2,m).times(o+""))),u=Ye(u,new v(p),s,1),null!=e)return v.precision=m,u;if(!Xe(u.d,s-10,g,c))return Ke(u,v.precision=m,g,Ee=!0);v.precision=s+=10,l=a=d=Ye(f.minus(1),f.plus(1),s,1),h=Ke(d.times(d),s,1),i=c=1}u=l,i+=2}}function ln(t){return String(t.s*t.s/0)}function sn(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)%He,n<0&&(r+=He),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=He;r<i;)t.d.push(+e.slice(r,r+=He));e=e.slice(r),r=He-e.length}else r-=i;for(;r--;)e+="0";t.d.push(+e),Ee&&(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 fn(t,e,n,r,i){var o,a,c,u,l=t.precision,s=Math.ceil(l/He);for(Ee=!1,u=n.times(n),c=new t(r);;){if(a=Ye(c.times(u),new t(e++*e++),l,1),c=i?r.plus(a):r.minus(a),r=Ye(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 Ee=!0,a.d.length=s+1,a}function hn(t,e){for(var n=t;--e;)n*=t;return n}function pn(t,e){var n,r=e.s<0,i=tn(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return xe=r?4:1,e;if((n=e.divToInt(i)).isZero())xe=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return xe=on(n)?r?2:3:r?4:1,e;xe=on(n)?r?1:4:r?3:2}return e.minus(i).abs()}function dn(t,e,n,r){var i,o,a,c,u,l,s,f,h,p=t.constructor,d=void 0!==n;if(d?(Ve(n,1,Se),void 0===r?r=p.rounding:Ve(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=Ze(t)).indexOf("."))>=0&&(s=s.replace(".",""),(h=new p(1)).e=s.length-a,h.d=Ge(Ze(h),10,i),h.e=h.d.length),o=u=(f=Ge(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=Ye(t,h,n,r,0,i)).d,o=t.e,l=we),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+=je.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=Ge(s,i,e)).length;!f[u-1];--u);for(a=1,s="1.";a<u;a++)s+=je.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=ln(t);return t.s<0?"-"+s:s}function yn(t,e){if(t.length>e)return t.length=e,!0}function vn(t){return new this(t).abs()}function gn(t){return new this(t).acos()}function mn(t){return new this(t).acosh()}function bn(t,e){return new this(t).plus(e)}function wn(t){return new this(t).asin()}function xn(t){return new this(t).asinh()}function On(t){return new this(t).atan()}function Sn(t){return new this(t).atanh()}function jn(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?tn(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=tn(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(Ye(t,e,o,1)),e=tn(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(Ye(t,e,o,1)):(n=tn(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function An(t){return new this(t).cbrt()}function Pn(t){return Ke(t=new this(t),t.e+1,2)}function Mn(t,e,n){return new this(t).clamp(e,n)}function En(t){if(!t||"object"!=typeof t)throw Error(ke+"Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,Se,"rounding",0,8,"toExpNeg",-Oe,0,"toExpPos",0,Oe,"maxE",0,Oe,"minE",-Oe,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],i&&(this[n]=Me[n]),void 0!==(r=t[n])){if(!(Ie(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(_e+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=Me[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(_e+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Ne);this[n]=!0}else this[n]=!1}return this}function kn(t){return new this(t).cos()}function _n(t){return new this(t).cosh()}function Tn(t,e){return new this(t).div(e)}function Nn(t){return new this(t).exp()}function Cn(t){return Ke(t=new this(t),t.e+1,3)}function In(){var t,e,n=new this(0);for(Ee=!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 Ee=!0,new this(1/0);n=e}return Ee=!0,n.sqrt()}function Dn(t){return t instanceof nr||t&&t.toStringTag===Ce||!1}function Bn(t){return new this(t).ln()}function Rn(t,e){return new this(t).log(e)}function Ln(t){return new this(t).log(2)}function zn(t){return new this(t).log(10)}function $n(){return an(this,arguments,"lt")}function Hn(){return an(this,arguments,"gt")}function Un(t,e){return new this(t).mod(e)}function Fn(t,e){return new this(t).mul(e)}function qn(t,e){return new this(t).pow(e)}function Wn(t){var e,n,r,i,o=0,a=new this(1),c=[];if(void 0===t?t=this.precision:Ve(t,1,Se),r=Math.ceil(t/He),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(Ne);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%=He,r&&t&&(i=De(10,He-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-=He)c.shift();for(r=1,i=c[0];i>=10;i/=10)r++;r<He&&(n-=He-r)}return a.e=n,a.d=c,a}function Vn(t){return Ke(t=new this(t),t.e+1,this.rounding)}function Xn(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function Gn(t){return new this(t).sin()}function Yn(t){return new this(t).sinh()}function Kn(t){return new this(t).sqrt()}function Zn(t,e){return new this(t).sub(e)}function Jn(){var t=0,e=arguments,n=new this(e[t]);for(Ee=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return Ee=!0,Ke(n,this.precision,this.rounding)}function Qn(t){return new this(t).tan()}function tr(t){return new this(t).tanh()}function er(t){return Ke(t=new this(t),t.e+1,1)}qe[Symbol.for("nodejs.util.inspect.custom")]=qe.toString,qe[Symbol.toStringTag]="Decimal";var nr=qe.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,Dn(t))return i.s=t.s,void(Ee?!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(Ee?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)):sn(i,t.toString())}if("string"!==r)throw Error(_e+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===n&&(t=t.slice(1)),i.s=1),ze.test(t)?sn(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"),ze.test(e))return sn(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(Re.test(e))n=16,e=e.toLowerCase();else if(Be.test(e))n=2;else{if(!Le.test(e))throw Error(_e+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=rn(r,new r(n),o,2*o)),o=s=(l=Ge(e,n,$e)).length-1;0===l[o];--o)l.pop();return o<0?new r(0*t.s):(t.e=Je(l,s),t.d=l,Ee=!1,a&&(t=Ye(t,i,4*c)),u&&(t=t.times(Math.abs(u)<54?De(2,u):nr.pow(2,u))),Ee=!0,t)}(i,t)}if(o.prototype=qe,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=En,o.clone=t,o.isDecimal=Dn,o.abs=vn,o.acos=gn,o.acosh=mn,o.add=bn,o.asin=wn,o.asinh=xn,o.atan=On,o.atanh=Sn,o.atan2=jn,o.cbrt=An,o.ceil=Pn,o.clamp=Mn,o.cos=kn,o.cosh=_n,o.div=Tn,o.exp=Nn,o.floor=Cn,o.hypot=In,o.ln=Bn,o.log=Rn,o.log10=zn,o.log2=Ln,o.max=$n,o.min=Hn,o.mod=Un,o.mul=Fn,o.pow=qn,o.random=Wn,o.round=Vn,o.sign=Xn,o.sin=Gn,o.sinh=Yn,o.sqrt=Kn,o.sub=Zn,o.sum=Jn,o.tan=Qn,o.tanh=tr,o.trunc=er,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}(Me);Ae=new nr(Ae),Pe=new nr(Pe);const rr=({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 nr(n),o=new nr(r),a=o.minus(i);return{startingAmount:n,endingAmount:r,delta:Number(a),percentChange:100*Number(a.dividedBy(i)),isNetGain:o.gt(i)}},ir=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},or={redRemains:(t=1)=>ar({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>ar({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>ar({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>ar({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>ar({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2,1]}),lighthouse:(t=1)=>ar({rgb:"rgb(244, 244, 244)",alpha:t}),coolElegance:(t=1)=>ar({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>ar({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>ar({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08,1]})},ar=({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:or.coolElegance()},td:{borderColor:or.coolElegance()}}}}),{definePartsStyle:ur,defineMultiStyleConfig:lr}=r(Jt.keys),sr=ur({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),fr=ur({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),hr=ur({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var pr=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:ee,Alert:ie,Button:oe,Checkbox:ue,Input:de,Form:le,FormLabel:fe,FormError:se,Select:ge,Table:cr,Tag:lr({baseStyle:sr,defaultProps:{variant:"outline"},variants:{error:fr,success:ur({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:hr,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 dr={components:pr.components,styles:pr.styles};function yr(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=yr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function vr(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=yr(t))&&(r&&(r+=" "),r+=e);return r}var gr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function mr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var br=Array.isArray,wr="object"==typeof gr&&gr&&gr.Object===Object&&gr,xr=wr,Or="object"==typeof self&&self&&self.Object===Object&&self,Sr=xr||Or||Function("return this")(),jr=Sr.Symbol,Ar=jr,Pr=Object.prototype,Mr=Pr.hasOwnProperty,Er=Pr.toString,kr=Ar?Ar.toStringTag:void 0;var _r=function(t){var e=Mr.call(t,kr),n=t[kr];try{t[kr]=void 0;var r=!0}catch(t){}var i=Er.call(t);return r&&(e?t[kr]=n:delete t[kr]),i},Tr=Object.prototype.toString;var Nr=_r,Cr=function(t){return Tr.call(t)},Ir=jr?jr.toStringTag:void 0;var Dr=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ir&&Ir in Object(t)?Nr(t):Cr(t)};var Br=function(t){return null!=t&&"object"==typeof t},Rr=Dr,Lr=Br;var zr=function(t){return"symbol"==typeof t||Lr(t)&&"[object Symbol]"==Rr(t)},$r=br,Hr=zr,Ur=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fr=/^\w*$/;var qr=function(t,e){if($r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Hr(t))||(Fr.test(t)||!Ur.test(t)||null!=e&&t in Object(e))};var Wr=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Vr=mr(Wr),Xr=Dr,Gr=Wr;var Yr,Kr=function(t){if(!Gr(t))return!1;var e=Xr(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Zr=mr(Kr),Jr=Sr["__core-js_shared__"],Qr=(Yr=/[^.]+$/.exec(Jr&&Jr.keys&&Jr.keys.IE_PROTO||""))?"Symbol(src)_1."+Yr:"";var ti=function(t){return!!Qr&&Qr in t},ei=Function.prototype.toString;var ni=function(t){if(null!=t){try{return ei.call(t)}catch(t){}try{return t+""}catch(t){}}return""},ri=Kr,ii=ti,oi=Wr,ai=ni,ci=/^\[object .+?Constructor\]$/,ui=Function.prototype,li=Object.prototype,si=ui.toString,fi=li.hasOwnProperty,hi=RegExp("^"+si.call(fi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var pi=function(t,e){return null==t?void 0:t[e]},di=function(t){return!(!oi(t)||ii(t))&&(ri(t)?hi:ci).test(ai(t))},yi=pi;var vi=function(t,e){var n=yi(t,e);return di(n)?n:void 0},gi=vi(Object,"create"),mi=gi;var bi=function(){this.__data__=mi?mi(null):{},this.size=0};var wi=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},xi=gi,Oi=Object.prototype.hasOwnProperty;var Si=function(t){var e=this.__data__;if(xi){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Oi.call(e,t)?e[t]:void 0},ji=gi,Ai=Object.prototype.hasOwnProperty;var Pi=gi;var Mi=bi,Ei=wi,ki=Si,_i=function(t){var e=this.__data__;return ji?void 0!==e[t]:Ai.call(e,t)},Ti=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Pi&&void 0===e?"__lodash_hash_undefined__":e,this};function Ni(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])}}Ni.prototype.clear=Mi,Ni.prototype.delete=Ei,Ni.prototype.get=ki,Ni.prototype.has=_i,Ni.prototype.set=Ti;var Ci=Ni;var Ii=function(){this.__data__=[],this.size=0};var Di=function(t,e){return t===e||t!=t&&e!=e},Bi=Di;var Ri=function(t,e){for(var n=t.length;n--;)if(Bi(t[n][0],e))return n;return-1},Li=Ri,zi=Array.prototype.splice;var $i=Ri;var Hi=Ri;var Ui=Ri;var Fi=Ii,qi=function(t){var e=this.__data__,n=Li(e,t);return!(n<0)&&(n==e.length-1?e.pop():zi.call(e,n,1),--this.size,!0)},Wi=function(t){var e=this.__data__,n=$i(e,t);return n<0?void 0:e[n][1]},Vi=function(t){return Hi(this.__data__,t)>-1},Xi=function(t,e){var n=this.__data__,r=Ui(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function Gi(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])}}Gi.prototype.clear=Fi,Gi.prototype.delete=qi,Gi.prototype.get=Wi,Gi.prototype.has=Vi,Gi.prototype.set=Xi;var Yi=Gi,Ki=vi(Sr,"Map"),Zi=Ci,Ji=Yi,Qi=Ki;var to=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var eo=function(t,e){var n=t.__data__;return to(e)?n["string"==typeof e?"string":"hash"]:n.map},no=eo;var ro=eo;var io=eo;var oo=eo;var ao=function(){this.size=0,this.__data__={hash:new Zi,map:new(Qi||Ji),string:new Zi}},co=function(t){var e=no(this,t).delete(t);return this.size-=e?1:0,e},uo=function(t){return ro(this,t).get(t)},lo=function(t){return io(this,t).has(t)},so=function(t,e){var n=oo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};function fo(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])}}fo.prototype.clear=ao,fo.prototype.delete=co,fo.prototype.get=uo,fo.prototype.has=lo,fo.prototype.set=so;var ho=fo,po=ho;function yo(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(yo.Cache||po),n}yo.Cache=po;var vo=yo;var go=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mo=/\\(\\)?/g,bo=function(t){var e=vo(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(go,(function(t,n,r,i){e.push(r?i.replace(mo,"$1"):n||t)})),e})),wo=bo;var xo=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},Oo=xo,So=br,jo=zr,Ao=jr?jr.prototype:void 0,Po=Ao?Ao.toString:void 0;var Mo=function t(e){if("string"==typeof e)return e;if(So(e))return Oo(e,t)+"";if(jo(e))return Po?Po.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},Eo=Mo;var ko=function(t){return null==t?"":Eo(t)},_o=br,To=qr,No=wo,Co=ko;var Io=function(t,e){return _o(t)?t:To(t,e)?[t]:No(Co(t))},Do=zr;var Bo=function(t){if("string"==typeof t||Do(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},Ro=Io,Lo=Bo;var zo=function(t,e){for(var n=0,r=(e=Ro(e,t)).length;null!=t&&n<r;)t=t[Lo(e[n++])];return n&&n==r?t:void 0},$o=zo;var Ho=function(t,e,n){var r=null==t?void 0:$o(t,e);return void 0===r?n:r},Uo=mr(Ho);var Fo=mr((function(t){return null==t})),qo=Dr,Wo=br,Vo=Br;var Xo,Go=mr((function(t){return"string"==typeof t||!Wo(t)&&Vo(t)&&"[object String]"==qo(t)})),Yo={exports:{}},Ko={};var Zo,Jo={};
16
+ */var Re,$e,Le=9e15,ze=1e9,He="0123456789abcdef",Ue="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Fe="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",qe={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Le,maxE:Le,crypto:!1},Ve=!0,We="[DecimalError] ",Ye=We+"Invalid argument: ",Xe=We+"Precision limit exceeded",Ge=We+"crypto unavailable",Ke="[object Decimal]",Ze=Math.floor,Je=Math.pow,Qe=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,tn=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,en=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,nn=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,rn=1e7,on=7,an=Ue.length-1,cn=Fe.length-1,un={toStringTag:Ke};function ln(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=on-r.length)&&(o+=wn(n)),o+=r;a=t[e],(n=on-(r=a+"").length)&&(o+=wn(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function sn(t,e,n){if(t!==~~t||t<e||t>n)throw Error(Ye+t)}function fn(t,e,n,r){var i,o,a,c;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=on,i=0):(i=Math.ceil((e+1)/on),e%=on),o=Je(10,on-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)==Je(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)==Je(10,e-3)-1,a}function hn(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]+=He.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()}un.absoluteValue=un.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),dn(t)},un.ceil=function(){return dn(new this.constructor(this),this.e+1,2)},un.clampedTo=un.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(Ye+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},un.comparedTo=un.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},un.cosine=un.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())+on,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;r=e.d.length,r<32?i=(1/kn(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=En(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,_n(r,n)),r.precision=t,r.rounding=e,dn(2==$e||3==$e?n.neg():n,t,e,!0)):new r(1):new r(NaN)},un.cubeRoot=un.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(Ve=!1,(o=s.s*Je(s.s*s,1/3))&&Math.abs(o)!=1/0?r=new f(o.toString()):(n=ln(s.d),(o=((t=s.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=Je(n,1/3),t=Ze((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=pn(l.plus(s).times(c),l.plus(u),a+2,1),ln(c.d).slice(0,a)===(n=ln(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))||(dn(r,t+1,1),e=!r.times(r).times(r).eq(s));break}if(!i&&(dn(c,t+1,0),c.times(c).times(c).eq(s))){r=c;break}a+=4,i=1}return Ve=!0,dn(r,t,f.rounding,e)},un.decimalPlaces=un.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=((t=e.length-1)-Ze(this.e/on))*on,t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},un.dividedBy=un.div=function(t){return pn(this,new this.constructor(t))},un.dividedToIntegerBy=un.divToInt=function(t){var e=this.constructor;return dn(pn(this,new e(t),0,1,1),e.precision,e.rounding)},un.equals=un.eq=function(t){return 0===this.cmp(t)},un.floor=function(){return dn(new this.constructor(this),this.e+1,3)},un.greaterThan=un.gt=function(t){return this.cmp(t)>0},un.greaterThanOrEqualTo=un.gte=function(t){var e=this.cmp(t);return 1==e||0===e},un.hyperbolicCosine=un.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/kn(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=En(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 dn(o,a.precision=n,a.rounding=r,!0)},un.hyperbolicSine=un.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=En(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=En(o,2,i=i.times(1/kn(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,dn(i,e,n,!0)},un.hyperbolicTangent=un.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,pn(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},un.inverseCosine=un.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))},un.inverseHyperbolicCosine=un.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,Ve=!1,n=n.times(n).minus(1).sqrt().plus(n),Ve=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},un.inverseHyperbolicSine=un.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,Ve=!1,n=n.times(n).plus(1).sqrt().plus(n),Ve=!0,r.precision=t,r.rounding=e,n.ln())},un.inverseHyperbolicTangent=un.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?dn(new o(i),t,e,!0):(o.precision=n=r-i.e,i=pn(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)},un.inverseSine=un.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)))},un.inverseTangent=un.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<=cn)return(a=mn(s,f+4,h).times(.25)).s=l.s,a}else{if(!l.s)return new s(NaN);if(f+4<=cn)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/on+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Ve=!1,e=Math.ceil(c/on),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)),Ve=!0,dn(a,s.precision=f,s.rounding=h,!0)},un.isFinite=function(){return!!this.d},un.isInteger=un.isInt=function(){return!!this.d&&Ze(this.e/on)>this.d.length-2},un.isNaN=function(){return!this.s},un.isNegative=un.isNeg=function(){return this.s<0},un.isPositive=un.isPos=function(){return this.s>0},un.isZero=function(){return!!this.d&&0===this.d[0]},un.lessThan=un.lt=function(t){return this.cmp(t)<0},un.lessThanOrEqualTo=un.lte=function(t){return this.cmp(t)<1},un.logarithm=un.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(Ve=!1,a=An(l,c=f+5),r=e?gn(s,c+10):An(t,c),fn((u=pn(a,r,c,1)).d,i=f,h))do{if(a=An(l,c+=10),r=e?gn(s,c+10):An(t,c),u=pn(a,r,c,1),!o){+ln(u.d).slice(i+1,i+15)+1==1e14&&(u=dn(u,f+1,0));break}}while(fn(u.d,i+=10,h));return Ve=!0,dn(u,f,h)},un.minus=un.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 Ve?dn(t,c,u):t}if(n=Ze(t.e/on),s=Ze(p.e/on),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/on),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]=rn-1;--l[i],l[r]+=rn}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=vn(l,n),Ve?dn(t,c,u):t):new d(3===u?-0:0)},un.modulo=un.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]?dn(new r(n),r.precision,r.rounding):(Ve=!1,9==r.modulo?(e=pn(n,t.abs(),0,3,1)).s*=t.s:e=pn(n,t,0,r.modulo,1),e=e.times(t),Ve=!0,n.minus(e))},un.naturalExponential=un.exp=function(){return jn(this)},un.naturalLogarithm=un.ln=function(){return An(this)},un.negated=un.neg=function(){var t=new this.constructor(this);return t.s=-t.s,dn(t)},un.plus=un.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)),Ve?dn(t,c,u):t;if(o=Ze(f.e/on),r=Ze(t.e/on),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/on))>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)/rn|0,l[i]%=rn;for(e&&(l.unshift(e),++r),a=l.length;0==l[--a];)l.pop();return t.d=l,t.e=vn(l,r),Ve?dn(t,c,u):t},un.precision=un.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Ye+t);return n.d?(e=bn(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},un.round=function(){var t=this,e=t.constructor;return dn(new e(t),t.e+1,e.rounding)},un.sine=un.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())+on,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:En(t,2,e,e);n=1.4*Math.sqrt(r),n=n>16?16:0|n,e=e.times(1/kn(5,n)),e=En(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,_n(r,n)),r.precision=t,r.rounding=e,dn($e>2?n.neg():n,t,e,!0)):new r(NaN)},un.squareRoot=un.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(Ve=!1,0==(l=Math.sqrt(+a))||l==1/0?(((e=ln(c)).length+u)%2==0&&(e+="0"),l=Math.sqrt(e),u=Ze((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(pn(a,o,n+2,1)).times(.5),ln(o.d).slice(0,n)===(e=ln(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))||(dn(r,u+1,1),t=!r.times(r).eq(a));break}if(!i&&(dn(o,u+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return Ve=!0,dn(r,u,s.rounding,t)},un.tangent=un.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=pn(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,dn(2==$e||4==$e?n.neg():n,t,e,!0)):new r(NaN)},un.times=un.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=Ze(s.e/on)+Ze(t.e/on),(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%rn|0,e=c/rn|0;o[i]=(o[i]+e)%rn|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=vn(o,n),Ve?dn(t,f.precision,f.rounding):t},un.toBinary=function(t,e){return Tn(this,2,t,e)},un.toDecimalPlaces=un.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(sn(t,0,ze),void 0===e?e=r.rounding:sn(e,0,8),dn(n,t+n.e+1,e))},un.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=yn(r,!0):(sn(t,0,ze),void 0===e?e=i.rounding:sn(e,0,8),n=yn(r=dn(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},un.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=yn(i):(sn(t,0,ze),void 0===e?e=o.rounding:sn(e,0,8),n=yn(r=dn(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},un.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=bn(d)-p.e-1)%on,e.d[0]=Je(10,a<0?on+a:a),null==t)t=o>0?e:l;else{if(!(c=new y(t)).isInt()||c.lt(l))throw Error(Ye+c);t=c.gt(e)?o>0?e:l:c}for(Ve=!1,c=new y(ln(d)),s=y.precision,y.precision=o=d.length*on*2;f=pn(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=pn(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=pn(l,r,o,1).minus(p).abs().cmp(pn(u,n,o,1).minus(p).abs())<1?[l,r]:[u,n],y.precision=s,Ve=!0,h},un.toHexadecimal=un.toHex=function(t,e){return Tn(this,16,t,e)},un.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:sn(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]?(Ve=!1,n=pn(n,t,0,e,1).times(t),Ve=!0,dn(n)):(t.s=n.s,n=t),n},un.toNumber=function(){return+this},un.toOctal=function(t,e){return Tn(this,8,t,e)},un.toPower=un.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(Je(+c,l));if((c=new u(c)).eq(1))return c;if(r=u.precision,o=u.rounding,t.eq(1))return dn(c,r,o);if((e=Ze(t.e/on))>=t.d.length-1&&(n=l<0?-l:l)<=9007199254740991)return i=xn(u,c,n,r),t.s<0?new u(1).div(i):dn(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=Je(+c,l))&&isFinite(n)?new u(n+"").e:Ze(l*(Math.log("0."+ln(c.d))/Math.LN10+c.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(Ve=!1,u.rounding=c.s=1,n=Math.min(12,(e+"").length),(i=jn(t.times(An(c,r+n)),r)).d&&fn((i=dn(i,r+5,1)).d,r,o)&&(e=r+10,+ln((i=dn(jn(t.times(An(c,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=dn(i,r+1,0))),i.s=a,Ve=!0,u.rounding=o,dn(i,r,o))},un.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=yn(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(sn(t,1,ze),void 0===e?e=i.rounding:sn(e,0,8),n=yn(r=dn(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},un.toSignificantDigits=un.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(sn(t,1,ze),void 0===e?e=n.rounding:sn(e,0,8)),dn(new n(this),t,e)},un.toString=function(){var t=this,e=t.constructor,n=yn(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},un.truncated=un.trunc=function(){return dn(new this.constructor(this),this.e+1,1)},un.valueOf=un.toJSON=function(){var t=this,e=t.constructor,n=yn(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var pn=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,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=rn,p=on,s=Ze(r.e/p)-Ze(i.e/p)),M=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==M){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),M=C.length,A=T.length),j=M,w=(b=T.slice(0,M)).length;w<M;)b[w++]=0;(E=C.slice()).unshift(0),P=C[0],C[1]>=u/2&&++P;do{h=0,(l=e(C,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(C,h,u),b,v=y.length,w=b.length))&&(h--,n(y,M<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,M,w=b.length))<1&&(h++,n(b,M<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,Re=d;else{for(f=1,h=m[0];h>=10;h/=10)f++;g.e=f+s*p-1,dn(g,c?o+g.e+1:o,a,d)}return g}}();function dn(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+=on,a=e,u=(s=f[h=0])/Je(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/on))>=(c=f.length)){if(!r)break t;for(;c++<=h;)f.push(0);s=u=0,i=1,a=(o%=on)-on+1}else{for(s=c=f[h],i=1;c>=10;c/=10)i++;u=(a=(o%=on)-on+i)<0?0:s/Je(10,i-a-1)%10|0}if(r=r||e<0||void 0!==f[h+1]||(a<0?s:s%Je(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/Je(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]=Je(10,(on-e%on)%on),t.e=-e||0):f[0]=t.e=0,t;if(0==o?(f.length=h,c=1,h--):(f.length=h+1,c=Je(10,on-o),f[h]=a>0?(s/Je(10,i-a)%Je(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]==rn&&(f[0]=1));break}if(f[h]+=c,f[h]!=rn)break;f[h--]=0,c=1}for(o=f.length;0===f[--o];)f.pop()}return Ve&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function yn(t,e,n){if(!t.isFinite())return Pn(t);var r,i=t.e,o=ln(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+wn(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+wn(-i-1)+o,n&&(r=n-a)>0&&(o+=wn(r))):i>=a?(o+=wn(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+wn(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=wn(r))),o}function vn(t,e){var n=t[0];for(e*=on;n>=10;n/=10)e++;return e}function gn(t,e,n){if(e>an)throw Ve=!0,n&&(t.precision=n),Error(Xe);return dn(new t(Ue),e,1,!0)}function mn(t,e,n){if(e>cn)throw Error(Xe);return dn(new t(Fe),e,n,!0)}function bn(t){var e=t.length-1,n=e*on+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function wn(t){for(var e="";t--;)e+="0";return e}function xn(t,e,n,r){var i,o=new t(1),a=Math.ceil(r/on+4);for(Ve=!1;;){if(n%2&&Cn((o=o.times(e)).d,a)&&(i=!0),0===(n=Ze(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}Cn((e=e.times(e)).d,a)}return Ve=!0,o}function On(t){return 1&t.d[t.d.length-1]}function Sn(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 jn(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?(Ve=!1,u=d):u=e,c=new h(.03125);t.e>-2;)t=t.times(c),f+=5;for(u+=r=Math.log(Je(2,f))/Math.LN10*2+5|0,n=o=a=new h(1),h.precision=u;;){if(o=dn(o.times(t),u,1),n=n.times(++s),ln((c=a.plus(pn(o,n,u,1))).d).slice(0,u)===ln(a.d).slice(0,u)){for(i=f;i--;)a=dn(a.times(a),u,1);if(null!=e)return h.precision=d,a;if(!(l<3&&fn(a.d,u-r,p,l)))return dn(a,h.precision=d,p,Ve=!0);h.precision=u+=10,n=o=c=new h(1),s=0,l++}a=c}}function An(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?(Ve=!1,s=m):s=e,v.precision=s+=10,r=(n=ln(y)).charAt(0),!(Math.abs(o=d.e)<15e14))return l=gn(v,s+2,m).times(o+""),d=An(new v(r+"."+n.slice(1)),s-10).plus(l),v.precision=m,null==e?dn(d,m,g,Ve=!0):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=ln((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=pn(d.minus(1),d.plus(1),s,1),h=dn(d.times(d),s,1),i=3;;){if(a=dn(a.times(h),s,1),ln((l=u.plus(pn(a,new v(i),s,1))).d).slice(0,s)===ln(u.d).slice(0,s)){if(u=u.times(2),0!==o&&(u=u.plus(gn(v,s+2,m).times(o+""))),u=pn(u,new v(p),s,1),null!=e)return v.precision=m,u;if(!fn(u.d,s-10,g,c))return dn(u,v.precision=m,g,Ve=!0);v.precision=s+=10,l=a=d=pn(f.minus(1),f.plus(1),s,1),h=dn(d.times(d),s,1),i=c=1}u=l,i+=2}}function Pn(t){return String(t.s*t.s/0)}function Mn(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)%on,n<0&&(r+=on),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=on;r<i;)t.d.push(+e.slice(r,r+=on));e=e.slice(r),r=on-e.length}else r-=i;for(;r--;)e+="0";t.d.push(+e),Ve&&(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 En(t,e,n,r,i){var o,a,c,u,l=t.precision,s=Math.ceil(l/on);for(Ve=!1,u=n.times(n),c=new t(r);;){if(a=pn(c.times(u),new t(e++*e++),l,1),c=i?r.plus(a):r.minus(a),r=pn(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 Ve=!0,a.d.length=s+1,a}function kn(t,e){for(var n=t;--e;)n*=t;return n}function _n(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 $e=r?4:1,e;if((n=e.divToInt(i)).isZero())$e=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return $e=On(n)?r?2:3:r?4:1,e;$e=On(n)?r?1:4:r?3:2}return e.minus(i).abs()}function Tn(t,e,n,r){var i,o,a,c,u,l,s,f,h,p=t.constructor,d=void 0!==n;if(d?(sn(n,1,ze),void 0===r?r=p.rounding:sn(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=yn(t)).indexOf("."))>=0&&(s=s.replace(".",""),(h=new p(1)).e=s.length-a,h.d=hn(yn(h),10,i),h.e=h.d.length),o=u=(f=hn(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=pn(t,h,n,r,0,i)).d,o=t.e,l=Re),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+=He.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=hn(s,i,e)).length;!f[u-1];--u);for(a=1,s="1.";a<u;a++)s+=He.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=Pn(t);return t.s<0?"-"+s:s}function Cn(t,e){if(t.length>e)return t.length=e,!0}function Nn(t){return new this(t).abs()}function Dn(t){return new this(t).acos()}function In(t){return new this(t).acosh()}function Bn(t,e){return new this(t).plus(e)}function Rn(t){return new this(t).asin()}function $n(t){return new this(t).asinh()}function Ln(t){return new this(t).atan()}function zn(t){return new this(t).atanh()}function Hn(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(pn(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(pn(t,e,o,1)):(n=mn(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function Un(t){return new this(t).cbrt()}function Fn(t){return dn(t=new this(t),t.e+1,2)}function qn(t,e,n){return new this(t).clamp(e,n)}function Vn(t){if(!t||"object"!=typeof t)throw Error(We+"Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,ze,"rounding",0,8,"toExpNeg",-Le,0,"toExpPos",0,Le,"maxE",0,Le,"minE",-Le,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(n=o[e],i&&(this[n]=qe[n]),void 0!==(r=t[n])){if(!(Ze(r)===r&&r>=o[e+1]&&r<=o[e+2]))throw Error(Ye+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=qe[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(Ye+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Ge);this[n]=!0}else this[n]=!1}return this}function Wn(t){return new this(t).cos()}function Yn(t){return new this(t).cosh()}function Xn(t,e){return new this(t).div(e)}function Gn(t){return new this(t).exp()}function Kn(t){return dn(t=new this(t),t.e+1,3)}function Zn(){var t,e,n=new this(0);for(Ve=!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 Ve=!0,new this(1/0);n=e}return Ve=!0,n.sqrt()}function Jn(t){return t instanceof br||t&&t.toStringTag===Ke||!1}function Qn(t){return new this(t).ln()}function tr(t,e){return new this(t).log(e)}function er(t){return new this(t).log(2)}function nr(t){return new this(t).log(10)}function rr(){return Sn(this,arguments,"lt")}function ir(){return Sn(this,arguments,"gt")}function or(t,e){return new this(t).mod(e)}function ar(t,e){return new this(t).mul(e)}function cr(t,e){return new this(t).pow(e)}function ur(t){var e,n,r,i,o=0,a=new this(1),c=[];if(void 0===t?t=this.precision:sn(t,1,ze),r=Math.ceil(t/on),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(Ge);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%=on,r&&t&&(i=Je(10,on-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-=on)c.shift();for(r=1,i=c[0];i>=10;i/=10)r++;r<on&&(n-=on-r)}return a.e=n,a.d=c,a}function lr(t){return dn(t=new this(t),t.e+1,this.rounding)}function sr(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function fr(t){return new this(t).sin()}function hr(t){return new this(t).sinh()}function pr(t){return new this(t).sqrt()}function dr(t,e){return new this(t).sub(e)}function yr(){var t=0,e=arguments,n=new this(e[t]);for(Ve=!1;n.s&&++t<e.length;)n=n.plus(e[t]);return Ve=!0,dn(n,this.precision,this.rounding)}function vr(t){return new this(t).tan()}function gr(t){return new this(t).tanh()}function mr(t){return dn(t=new this(t),t.e+1,1)}un[Symbol.for("nodejs.util.inspect.custom")]=un.toString,un[Symbol.toStringTag]="Decimal";var br=un.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,Jn(t))return i.s=t.s,void(Ve?!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(Ve?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)):Mn(i,t.toString())}if("string"!==r)throw Error(Ye+t);return 45===(n=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===n&&(t=t.slice(1)),i.s=1),nn.test(t)?Mn(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"),nn.test(e))return Mn(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(tn.test(e))n=16,e=e.toLowerCase();else if(Qe.test(e))n=2;else{if(!en.test(e))throw Error(Ye+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=xn(r,new r(n),o,2*o)),o=s=(l=hn(e,n,rn)).length-1;0===l[o];--o)l.pop();return o<0?new r(0*t.s):(t.e=vn(l,s),t.d=l,Ve=!1,a&&(t=pn(t,i,4*c)),u&&(t=t.times(Math.abs(u)<54?Je(2,u):br.pow(2,u))),Ve=!0,t)}(i,t)}if(o.prototype=un,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=Vn,o.clone=t,o.isDecimal=Jn,o.abs=Nn,o.acos=Dn,o.acosh=In,o.add=Bn,o.asin=Rn,o.asinh=$n,o.atan=Ln,o.atanh=zn,o.atan2=Hn,o.cbrt=Un,o.ceil=Fn,o.clamp=qn,o.cos=Wn,o.cosh=Yn,o.div=Xn,o.exp=Gn,o.floor=Kn,o.hypot=Zn,o.ln=Qn,o.log=tr,o.log10=nr,o.log2=er,o.max=rr,o.min=ir,o.mod=or,o.mul=ar,o.pow=cr,o.random=ur,o.round=lr,o.sign=sr,o.sin=fr,o.sinh=hr,o.sqrt=pr,o.sub=dr,o.sum=yr,o.tan=vr,o.tanh=gr,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}(qe);Ue=new br(Ue),Fe=new br(Fe);const wr=({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 br(n),o=new br(r),a=o.minus(i);return{startingAmount:n,endingAmount:r,delta:Number(a),percentChange:100*Number(a.dividedBy(i)),isNetGain:o.gt(i)}},xr=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},Or={redRemains:(t=1)=>Sr({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>Sr({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>Sr({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>Sr({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>Sr({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2,1]}),lighthouse:(t=1)=>Sr({rgb:"rgb(244, 244, 244)",alpha:t}),coolElegance:(t=1)=>Sr({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>Sr({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>Sr({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08,1]})},Sr=({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})`},jr=o({variants:{simple:{th:{borderColor:Or.coolElegance()},td:{borderColor:Or.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:Ar,defineMultiStyleConfig:Pr}=r(Jt.keys),Mr=Ar({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),Er=Ar({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),kr=Ar({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var _r=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:ee,Alert:ie,Button:oe,Checkbox:ue,Input:de,Form:le,FormLabel:fe,FormError:se,Select:ge,Table:jr,Tag:Pr({baseStyle:Mr,defaultProps:{variant:"outline"},variants:{error:Er,success:Ar({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:kr,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 Tr={components:_r.components,styles:_r.styles};function Cr(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=Cr(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function Nr(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Cr(t))&&(r&&(r+=" "),r+=e);return r}var Dr=Array.isArray,Ir="object"==typeof me&&me&&me.Object===Object&&me,Br=Ir,Rr="object"==typeof self&&self&&self.Object===Object&&self,$r=Br||Rr||Function("return this")(),Lr=$r.Symbol,zr=Lr,Hr=Object.prototype,Ur=Hr.hasOwnProperty,Fr=Hr.toString,qr=zr?zr.toStringTag:void 0;var Vr=function(t){var e=Ur.call(t,qr),n=t[qr];try{t[qr]=void 0;var r=!0}catch(t){}var i=Fr.call(t);return r&&(e?t[qr]=n:delete t[qr]),i},Wr=Object.prototype.toString;var Yr=Vr,Xr=function(t){return Wr.call(t)},Gr=Lr?Lr.toStringTag:void 0;var Kr=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Gr&&Gr in Object(t)?Yr(t):Xr(t)};var Zr=function(t){return null!=t&&"object"==typeof t},Jr=Kr,Qr=Zr;var ti=function(t){return"symbol"==typeof t||Qr(t)&&"[object Symbol]"==Jr(t)},ei=Dr,ni=ti,ri=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ii=/^\w*$/;var oi=function(t,e){if(ei(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ni(t))||(ii.test(t)||!ri.test(t)||null!=e&&t in Object(e))};var ai=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},ci=be(ai),ui=Kr,li=ai;var si,fi=function(t){if(!li(t))return!1;var e=ui(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},hi=be(fi),pi=$r["__core-js_shared__"],di=(si=/[^.]+$/.exec(pi&&pi.keys&&pi.keys.IE_PROTO||""))?"Symbol(src)_1."+si:"";var yi=function(t){return!!di&&di in t},vi=Function.prototype.toString;var gi=function(t){if(null!=t){try{return vi.call(t)}catch(t){}try{return t+""}catch(t){}}return""},mi=fi,bi=yi,wi=ai,xi=gi,Oi=/^\[object .+?Constructor\]$/,Si=Function.prototype,ji=Object.prototype,Ai=Si.toString,Pi=ji.hasOwnProperty,Mi=RegExp("^"+Ai.call(Pi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ei=function(t,e){return null==t?void 0:t[e]},ki=function(t){return!(!wi(t)||bi(t))&&(mi(t)?Mi:Oi).test(xi(t))},_i=Ei;var Ti=function(t,e){var n=_i(t,e);return ki(n)?n:void 0},Ci=Ti(Object,"create"),Ni=Ci;var Di=function(){this.__data__=Ni?Ni(null):{},this.size=0};var Ii=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Bi=Ci,Ri=Object.prototype.hasOwnProperty;var $i=function(t){var e=this.__data__;if(Bi){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ri.call(e,t)?e[t]:void 0},Li=Ci,zi=Object.prototype.hasOwnProperty;var Hi=Ci;var Ui=Di,Fi=Ii,qi=$i,Vi=function(t){var e=this.__data__;return Li?void 0!==e[t]:zi.call(e,t)},Wi=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Hi&&void 0===e?"__lodash_hash_undefined__":e,this};function Yi(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])}}Yi.prototype.clear=Ui,Yi.prototype.delete=Fi,Yi.prototype.get=qi,Yi.prototype.has=Vi,Yi.prototype.set=Wi;var Xi=Yi;var Gi=function(){this.__data__=[],this.size=0};var Ki=function(t,e){return t===e||t!=t&&e!=e},Zi=Ki;var Ji=function(t,e){for(var n=t.length;n--;)if(Zi(t[n][0],e))return n;return-1},Qi=Ji,to=Array.prototype.splice;var eo=Ji;var no=Ji;var ro=Ji;var io=Gi,oo=function(t){var e=this.__data__,n=Qi(e,t);return!(n<0)&&(n==e.length-1?e.pop():to.call(e,n,1),--this.size,!0)},ao=function(t){var e=this.__data__,n=eo(e,t);return n<0?void 0:e[n][1]},co=function(t){return no(this.__data__,t)>-1},uo=function(t,e){var n=this.__data__,r=ro(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};function lo(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])}}lo.prototype.clear=io,lo.prototype.delete=oo,lo.prototype.get=ao,lo.prototype.has=co,lo.prototype.set=uo;var so=lo,fo=Ti($r,"Map"),ho=Xi,po=so,yo=fo;var vo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var go=function(t,e){var n=t.__data__;return vo(e)?n["string"==typeof e?"string":"hash"]:n.map},mo=go;var bo=go;var wo=go;var xo=go;var Oo=function(){this.size=0,this.__data__={hash:new ho,map:new(yo||po),string:new ho}},So=function(t){var e=mo(this,t).delete(t);return this.size-=e?1:0,e},jo=function(t){return bo(this,t).get(t)},Ao=function(t){return wo(this,t).has(t)},Po=function(t,e){var n=xo(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,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=Oo,Mo.prototype.delete=So,Mo.prototype.get=jo,Mo.prototype.has=Ao,Mo.prototype.set=Po;var Eo=Mo,ko=Eo;function _o(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(_o.Cache||ko),n}_o.Cache=ko;var To=_o;var Co=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,No=/\\(\\)?/g,Do=function(t){var e=To(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(Co,(function(t,n,r,i){e.push(r?i.replace(No,"$1"):n||t)})),e})),Io=Do;var Bo=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},Ro=Bo,$o=Dr,Lo=ti,zo=Lr?Lr.prototype:void 0,Ho=zo?zo.toString:void 0;var Uo=function t(e){if("string"==typeof e)return e;if($o(e))return Ro(e,t)+"";if(Lo(e))return Ho?Ho.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n},Fo=Uo;var qo=function(t){return null==t?"":Fo(t)},Vo=Dr,Wo=oi,Yo=Io,Xo=qo;var Go=function(t,e){return Vo(t)?t:Wo(t,e)?[t]:Yo(Xo(t))},Ko=ti;var Zo=function(t){if("string"==typeof t||Ko(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},Jo=Go,Qo=Zo;var ta=function(t,e){for(var n=0,r=(e=Jo(e,t)).length;null!=t&&n<r;)t=t[Qo(e[n++])];return n&&n==r?t:void 0},ea=ta;var na=function(t,e,n){var r=null==t?void 0:ea(t,e);return void 0===r?n:r},ra=be(na);var ia=be((function(t){return null==t})),oa=Kr,aa=Dr,ca=Zr;var ua,la=be((function(t){return"string"==typeof t||!aa(t)&&ca(t)&&"[object String]"==oa(t)})),sa={exports:{}},fa={};var ha,pa={};
10
17
  /** @license React v16.13.1
11
18
  * react-is.production.min.js
12
19
  *
@@ -14,10 +21,10 @@ var we,xe,Oe=9e15,Se=1e9,je="0123456789abcdef",Ae="2.302585092994045684017991454
14
21
  *
15
22
  * This source code is licensed under the MIT license found in the
16
23
  * LICENSE file in the root directory of this source tree.
17
- */"production"===process.env.NODE_ENV?Yo.exports=function(){if(Zo)return Jo;Zo=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 Jo.AsyncMode=u,Jo.ConcurrentMode=l,Jo.ContextConsumer=c,Jo.ContextProvider=a,Jo.Element=e,Jo.ForwardRef=s,Jo.Fragment=r,Jo.Lazy=d,Jo.Memo=p,Jo.Portal=n,Jo.Profiler=o,Jo.StrictMode=i,Jo.Suspense=f,Jo.isAsyncMode=function(t){return w(t)||b(t)===u},Jo.isConcurrentMode=w,Jo.isContextConsumer=function(t){return b(t)===c},Jo.isContextProvider=function(t){return b(t)===a},Jo.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Jo.isForwardRef=function(t){return b(t)===s},Jo.isFragment=function(t){return b(t)===r},Jo.isLazy=function(t){return b(t)===d},Jo.isMemo=function(t){return b(t)===p},Jo.isPortal=function(t){return b(t)===n},Jo.isProfiler=function(t){return b(t)===o},Jo.isStrictMode=function(t){return b(t)===i},Jo.isSuspense=function(t){return b(t)===f},Jo.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)},Jo.typeOf=b,Jo}():Yo.exports=(Xo||(Xo=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,N=f,C=!1;function I(t){return b(t)===l}Ko.AsyncMode=w,Ko.ConcurrentMode=x,Ko.ContextConsumer=O,Ko.ContextProvider=S,Ko.Element=j,Ko.ForwardRef=A,Ko.Fragment=P,Ko.Lazy=M,Ko.Memo=E,Ko.Portal=k,Ko.Profiler=_,Ko.StrictMode=T,Ko.Suspense=N,Ko.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.")),I(t)||b(t)===u},Ko.isConcurrentMode=I,Ko.isContextConsumer=function(t){return b(t)===c},Ko.isContextProvider=function(t){return b(t)===a},Ko.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ko.isForwardRef=function(t){return b(t)===s},Ko.isFragment=function(t){return b(t)===r},Ko.isLazy=function(t){return b(t)===d},Ko.isMemo=function(t){return b(t)===p},Ko.isPortal=function(t){return b(t)===n},Ko.isProfiler=function(t){return b(t)===o},Ko.isStrictMode=function(t){return b(t)===i},Ko.isSuspense=function(t){return b(t)===f},Ko.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)},Ko.typeOf=b}()),Ko);var Qo=Yo.exports,ta=Dr,ea=Br;var na=function(t){return"number"==typeof t||ea(t)&&"[object Number]"==ta(t)},ra=mr(na),ia=na;var oa=mr((function(t){return ia(t)&&t!=+t})),aa=function(t){return 0===t?0:t>0?1:-1},ca=function(t){return Go(t)&&t.indexOf("%")===t.length-1},ua=function(t){return ra(t)&&!oa(t)},la=function(t){return ua(t)||Go(t)},sa=0,fa=function(t){var e=++sa;return"".concat(t||"").concat(e)},ha=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(!ua(t)&&!Go(t))return r;if(ca(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return oa(n)&&(n=r),i&&n>e&&(n=e),n},pa=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},da=function(t,e){return ua(t)&&ua(e)?function(n){return t+n*(e-t)}:function(){return e}};function ya(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):Uo(t,e))===n})):null}function va(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 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 ma=["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"],ba=["points","pathLength"],wa={svg:["viewBox","children"],polygon:ba,polyline:ba},xa=["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"],Oa=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(B(t)&&(n=t.props),!Vr(n))return null;var r={};return Object.keys(n).forEach((function(t){xa.includes(t)&&(r[t]=e||function(e){return n[t](n,e)})})),r},Sa=function(t,e,n){if(!Vr(t)||"object"!==ga(t))return null;var r=null;return Object.keys(t).forEach((function(i){var o=t[i];xa.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},ja=["children"],Aa=["children"];function Pa(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 Ma(t){return Ma="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},Ma(t)}var Ea={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},ka=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},_a=null,Ta=null,Na=function t(e){if(e===_a&&Array.isArray(Ta))return Ta;var n=[];return R.forEach(e,(function(e){Fo(e)||(Qo.isFragment(e)?n=n.concat(t(e.props.children)):n.push(e))})),Ta=n,_a=e,n};function Ca(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map((function(t){return ka(t)})):[ka(e)],Na(t).forEach((function(t){var e=Uo(t,"type.displayName")||Uo(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n}function Ia(t,e){var n=Ca(t,e);return n&&n[0]}var Da=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!ua(n)||n<=0||!ua(r)||r<=0)},Ba=["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"],Ra=function(t){return t&&"object"===Ma(t)&&"cx"in t&&"cy"in t&&"r"in t},La=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(B(t)&&(r=t.props),!Vr(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==wa?void 0:wa[r])&&void 0!==i?i:[];return!Zr(t)&&(r&&o.includes(e)||ma.includes(e))||n&&xa.includes(e)})(null===(o=r)||void 0===o?void 0:o[t],t,e,n)&&(i[t]=r[t])})),i},za=function t(e,n){if(e===n)return!0;var r=R.count(e);if(r!==R.count(n))return!1;if(0===r)return!0;if(1===r)return $a(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(!$a(o,a))return!1}return!0},$a=function(t,e){if(Fo(t)&&Fo(e))return!0;if(!Fo(t)&&!Fo(e)){var n=t.props||{},r=n.children,i=Pa(n,ja),o=e.props||{},a=o.children,c=Pa(o,Aa);return r&&a?va(i,c)&&za(r,a):!r&&!a&&va(i,c)}return!1},Ha=function(t,e){var n=[],r={};return Na(t).forEach((function(t,i){if(function(t){return t&&t.type&&Go(t.type)&&Ba.indexOf(t.type)>=0}(t))n.push(t);else if(t){var o=ka(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},Ua=["children","width","height","viewBox","className","style","title","desc"];function Fa(){return Fa=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},Fa.apply(this,arguments)}function qa(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 Wa(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=qa(t,Ua),s=i||{width:n,height:r,x:0,y:0},f=vr("recharts-surface",o);return D.createElement("svg",Fa({},La(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 Va=["children","className"];function Xa(){return Xa=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},Xa.apply(this,arguments)}function Ga(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 Ya=D.forwardRef((function(t,e){var n=t.children,r=t.className,i=Ga(t,Va),o=vr("recharts-layer",r);return D.createElement("g",Xa({className:o},La(i,!0),{ref:e}),n)})),Ka="production"!==process.env.NODE_ENV,Za=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(Ka&&"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 Ja=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},Qa=Ja;var tc=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Qa(t,e,n)},ec=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var nc=function(t){return ec.test(t)};var rc=function(t){return t.split("")},ic="\\ud800-\\udfff",oc="["+ic+"]",ac="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",cc="\\ud83c[\\udffb-\\udfff]",uc="[^"+ic+"]",lc="(?:\\ud83c[\\udde6-\\uddff]){2}",sc="[\\ud800-\\udbff][\\udc00-\\udfff]",fc="(?:"+ac+"|"+cc+")"+"?",hc="[\\ufe0e\\ufe0f]?",pc=hc+fc+("(?:\\u200d(?:"+[uc,lc,sc].join("|")+")"+hc+fc+")*"),dc="(?:"+[uc+ac+"?",ac,lc,sc,oc].join("|")+")",yc=RegExp(cc+"(?="+cc+")|"+dc+pc,"g");var vc=function(t){return t.match(yc)||[]},gc=rc,mc=nc,bc=vc;var wc=function(t){return mc(t)?bc(t):gc(t)},xc=tc,Oc=nc,Sc=wc,jc=ko;var Ac=function(t){return function(e){e=jc(e);var n=Oc(e)?Sc(e):void 0,r=n?n[0]:e.charAt(0),i=n?xc(n,1).join(""):e.slice(1);return r[t]()+i}},Pc=mr(Ac("toUpperCase"));function Mc(t){return function(){return t}}const Ec=Math.cos,kc=Math.sin,_c=Math.sqrt,Tc=Math.PI,Nc=2*Tc,Cc=Math.PI,Ic=2*Cc,Dc=1e-6,Bc=Ic-Dc;function Rc(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Lc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Rc:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Rc;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>Dc)if(Math.abs(s*c-u*l)>Dc&&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((Cc-Math.acos((d+f-y)/(2*v*g)))/2),b=m/g,w=m/v;Math.abs(b-1)>Dc&&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)>Dc||Math.abs(this._y1-l)>Dc)&&this._append`L${u},${l}`,n&&(f<0&&(f=f%Ic+Ic),f>Bc?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>Dc&&this._append`A${n},${n},0,${+(f>=Cc)},${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 zc(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 Lc(e)}function $c(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Hc(t){this._context=t}function Uc(t){return new Hc(t)}function Fc(t){return t[0]}function qc(t){return t[1]}function Wc(t,e){var n=Mc(!0),r=null,i=Uc,o=null,a=zc(c);function c(c){var u,l,s,f=(c=$c(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?Fc:Mc(t),e="function"==typeof e?e:void 0===e?qc:Mc(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Mc(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Mc(+t),c):e},c.defined=function(t){return arguments.length?(n="function"==typeof t?t:Mc(!!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 Vc(t,e,n){var r=null,i=Mc(!0),o=null,a=Uc,c=null,u=zc(l);function l(l){var s,f,h,p,d,y=(l=$c(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 Wc().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Fc:Mc(+t),e="function"==typeof e?e:Mc(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?qc:Mc(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Mc(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Mc(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Mc(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Mc(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Mc(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Mc(+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:Mc(!!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}Hc.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 Xc{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 Gc={draw(t,e){const n=_c(e/Tc);t.moveTo(n,0),t.arc(0,0,n,0,Nc)}},Yc={draw(t,e){const n=_c(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 Kc=_c(1/3),Zc=2*Kc;var Jc={draw(t,e){const n=_c(e/Zc),r=n*Kc;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Qc={draw(t,e){const n=_c(e),r=-n/2;t.rect(r,r,n,n)}};const tu=kc(Tc/10)/kc(7*Tc/10),eu=kc(Nc/10)*tu,nu=-Ec(Nc/10)*tu;var ru={draw(t,e){const n=_c(.8908130915292852*e),r=eu*n,i=nu*n;t.moveTo(0,-n),t.lineTo(r,i);for(let e=1;e<5;++e){const o=Nc*e/5,a=Ec(o),c=kc(o);t.lineTo(c*n,-a*n),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}};const iu=_c(3);var ou={draw(t,e){const n=-_c(e/(3*iu));t.moveTo(0,2*n),t.lineTo(-iu*n,-n),t.lineTo(iu*n,-n),t.closePath()}};const au=-.5,cu=_c(3)/2,uu=1/_c(12),lu=3*(uu/2+1);var su={draw(t,e){const n=_c(e/lu),r=n/2,i=n*uu,o=r,a=n*uu+n,c=-o,u=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(c,u),t.lineTo(au*r-cu*i,cu*r+au*i),t.lineTo(au*o-cu*a,cu*o+au*a),t.lineTo(au*c-cu*u,cu*c+au*u),t.lineTo(au*r+cu*i,au*i-cu*r),t.lineTo(au*o+cu*a,au*a-cu*o),t.lineTo(au*c+cu*u,au*u-cu*c),t.closePath()}};function fu(){}function hu(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 pu(t){this._context=t}function du(t){this._context=t}function yu(t){this._context=t}function vu(t){this._context=t}function gu(t){return t<0?-1:1}function mu(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(gu(o)+gu(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function bu(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function wu(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 xu(t){this._context=t}function Ou(t){this._context=new Su(t)}function Su(t){this._context=t}function ju(t){this._context=t}function Au(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 Pu(t,e){this._context=t,this._t=e}function Mu(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 Eu(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function ku(t,e){return t[e]}function _u(t){const e=[];return e.key=t,e}function Tu(t){return Tu="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},Tu(t)}pu.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:hu(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:hu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},du.prototype={areaStart:fu,areaEnd:fu,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:hu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},yu.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:hu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},vu.prototype={areaStart:fu,areaEnd:fu,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))}},xu.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:wu(this,this._t0,bu(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,wu(this,bu(this,n=mu(this,t,e)),n);break;default:wu(this,this._t0,n=mu(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Ou.prototype=Object.create(xu.prototype)).point=function(t,e){xu.prototype.point.call(this,e,t)},Su.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)}},ju.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=Au(t),i=Au(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)}},Pu.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 Nu=["type","size","sizeType"];function Cu(){return Cu=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},Cu.apply(this,arguments)}function Iu(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 Du(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Iu(Object(n),!0).forEach((function(e){Bu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Iu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bu(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Tu(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Tu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Tu(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ru(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 Lu={symbolCircle:Gc,symbolCross:Yc,symbolDiamond:Jc,symbolSquare:Qc,symbolStar:ru,symbolTriangle:ou,symbolWye:su},zu=Math.PI/180,$u=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=Du(Du({},Ru(t,Nu)),{},{type:i,size:a,sizeType:u}),s=l.className,f=l.cx,h=l.cy,p=La(l,!0);return f===+f&&h===+h&&a===+a?D.createElement("path",Cu({},p,{className:vr("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(Pc(t));return Lu[e]||Gc}(i),n=function(t,e){let n=null,r=zc(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:Mc(t||Gc),e="function"==typeof e?e:Mc(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:Mc(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:Mc(+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*zu;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 Hu(t){return Hu="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},Hu(t)}function Uu(){return Uu=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},Uu.apply(this,arguments)}function Fu(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 qu(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,Yu(r.key),r)}}function Wu(t,e){return Wu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Wu(t,e)}function Vu(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=Xu(t);if(e){var i=Xu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Hu(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 Xu(t){return Xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xu(t)}function Gu(t,e,n){return(e=Yu(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yu(t){var e=function(t,e){if("object"!==Hu(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Hu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Hu(e)?e:String(e)}$u.registerSymbol=function(t,e){Lu["symbol".concat(Pc(t))]=e};var Ku=32,Zu=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&&Wu(t,e)}(o,L);var e,n,r,i=Vu(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=Ku/6,i=Ku/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:Ku,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(Ku,"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(Ku,"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?Fu(Object(n),!0).forEach((function(e){Gu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fu(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($u,{fill:o,cx:n,cy:n,size:Ku,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:Ku,height:Ku},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=vr((Gu(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),Gu(i,"inactive",e.inactive),i));if("none"===e.type)return null;var h=Zr(e.value)?null:e.value;Za(!Zr(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",Uu({className:f,style:u,key:"legend-item-".concat(n)},Sa(t.props,e,n)),D.createElement(Wa,{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&&qu(e.prototype,n),r&&qu(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();Gu(Zu,"displayName","Legend"),Gu(Zu,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Ju=Yi;var Qu=Yi,tl=Ki,el=ho;var nl=Yi,rl=function(){this.__data__=new Ju,this.size=0},il=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ol=function(t){return this.__data__.get(t)},al=function(t){return this.__data__.has(t)},cl=function(t,e){var n=this.__data__;if(n instanceof Qu){var r=n.__data__;if(!tl||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new el(r)}return n.set(t,e),this.size=n.size,this};function ul(t){var e=this.__data__=new nl(t);this.size=e.size}ul.prototype.clear=rl,ul.prototype.delete=il,ul.prototype.get=ol,ul.prototype.has=al,ul.prototype.set=cl;var ll=ul;var sl=ho,fl=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},hl=function(t){return this.__data__.has(t)};function pl(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new sl;++e<n;)this.add(t[e])}pl.prototype.add=pl.prototype.push=fl,pl.prototype.has=hl;var dl=pl;var yl=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 vl=function(t,e){return t.has(e)},gl=dl,ml=yl,bl=vl;var wl=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 gl: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(!ml(e,(function(t,e){if(!bl(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 xl=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};var Ol=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},Sl=Sr.Uint8Array,jl=Di,Al=wl,Pl=xl,Ml=Ol,El=jr?jr.prototype:void 0,kl=El?El.valueOf:void 0;var _l=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 Sl(t),new Sl(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return jl(+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=Pl;case"[object Set]":var u=1&r;if(c||(c=Ml),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=Al(c(t),c(e),r,i,o,a);return a.delete(t),s;case"[object Symbol]":if(kl)return kl.call(t)==kl.call(e)}return!1};var Tl=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},Nl=Tl,Cl=br;var Il=function(t,e,n){var r=e(t);return Cl(t)?r:Nl(r,n(t))};var Dl=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 Bl=Dl,Rl=function(){return[]},Ll=Object.prototype.propertyIsEnumerable,zl=Object.getOwnPropertySymbols,$l=zl?function(t){return null==t?[]:(t=Object(t),Bl(zl(t),(function(e){return Ll.call(t,e)})))}:Rl,Hl=$l;var Ul=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},Fl=Dr,ql=Br;var Wl=function(t){return ql(t)&&"[object Arguments]"==Fl(t)},Vl=Br,Xl=Object.prototype,Gl=Xl.hasOwnProperty,Yl=Xl.propertyIsEnumerable,Kl=Wl(function(){return arguments}())?Wl:function(t){return Vl(t)&&Gl.call(t,"callee")&&!Yl.call(t,"callee")},Zl={exports:{}};var Jl=function(){return!1};!function(t,e){var n=Sr,r=Jl,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}(Zl,Zl.exports);var Ql=Zl.exports,ts=/^(?:0|[1-9]\d*)$/;var es=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ts.test(t))&&t>-1&&t%1==0&&t<e};var ns=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},rs=Dr,is=ns,os=Br,as={};as["[object Float32Array]"]=as["[object Float64Array]"]=as["[object Int8Array]"]=as["[object Int16Array]"]=as["[object Int32Array]"]=as["[object Uint8Array]"]=as["[object Uint8ClampedArray]"]=as["[object Uint16Array]"]=as["[object Uint32Array]"]=!0,as["[object Arguments]"]=as["[object Array]"]=as["[object ArrayBuffer]"]=as["[object Boolean]"]=as["[object DataView]"]=as["[object Date]"]=as["[object Error]"]=as["[object Function]"]=as["[object Map]"]=as["[object Number]"]=as["[object Object]"]=as["[object RegExp]"]=as["[object Set]"]=as["[object String]"]=as["[object WeakMap]"]=!1;var cs=function(t){return os(t)&&is(t.length)&&!!as[rs(t)]};var us=function(t){return function(e){return t(e)}},ls={exports:{}};!function(t,e){var n=wr,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}(ls,ls.exports);var ss=ls.exports,fs=cs,hs=us,ps=ss&&ss.isTypedArray,ds=ps?hs(ps):fs,ys=Ul,vs=Kl,gs=br,ms=Ql,bs=es,ws=ds,xs=Object.prototype.hasOwnProperty;var Os=function(t,e){var n=gs(t),r=!n&&vs(t),i=!n&&!r&&ms(t),o=!n&&!r&&!i&&ws(t),a=n||r||i||o,c=a?ys(t.length,String):[],u=c.length;for(var l in t)!e&&!xs.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||bs(l,u))||c.push(l);return c},Ss=Object.prototype;var js=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Ss)};var As=function(t,e){return function(n){return t(e(n))}},Ps=As(Object.keys,Object),Ms=js,Es=Ps,ks=Object.prototype.hasOwnProperty;var _s=function(t){if(!Ms(t))return Es(t);var e=[];for(var n in Object(t))ks.call(t,n)&&"constructor"!=n&&e.push(n);return e},Ts=Kr,Ns=ns;var Cs=function(t){return null!=t&&Ns(t.length)&&!Ts(t)},Is=Os,Ds=_s,Bs=Cs;var Rs=function(t){return Bs(t)?Is(t):Ds(t)},Ls=Il,zs=Hl,$s=Rs;var Hs=function(t){return Ls(t,$s,zs)},Us=Hs,Fs=Object.prototype.hasOwnProperty;var qs=function(t,e,n,r,i,o){var a=1&n,c=Us(t),u=c.length;if(u!=Us(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:Fs.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},Ws=vi(Sr,"DataView"),Vs=vi(Sr,"Promise"),Xs=vi(Sr,"Set"),Gs=Ws,Ys=Ki,Ks=Vs,Zs=Xs,Js=vi(Sr,"WeakMap"),Qs=Dr,tf=ni,ef="[object Map]",nf="[object Promise]",rf="[object Set]",of="[object WeakMap]",af="[object DataView]",cf=tf(Gs),uf=tf(Ys),lf=tf(Ks),sf=tf(Zs),ff=tf(Js),hf=Qs;(Gs&&hf(new Gs(new ArrayBuffer(1)))!=af||Ys&&hf(new Ys)!=ef||Ks&&hf(Ks.resolve())!=nf||Zs&&hf(new Zs)!=rf||Js&&hf(new Js)!=of)&&(hf=function(t){var e=Qs(t),n="[object Object]"==e?t.constructor:void 0,r=n?tf(n):"";if(r)switch(r){case cf:return af;case uf:return ef;case lf:return nf;case sf:return rf;case ff:return of}return e});var pf=ll,df=wl,yf=_l,vf=qs,gf=hf,mf=br,bf=Ql,wf=ds,xf="[object Arguments]",Of="[object Array]",Sf="[object Object]",jf=Object.prototype.hasOwnProperty;var Af=function(t,e,n,r,i,o){var a=mf(t),c=mf(e),u=a?Of:gf(t),l=c?Of:gf(e),s=(u=u==xf?Sf:u)==Sf,f=(l=l==xf?Sf:l)==Sf,h=u==l;if(h&&bf(t)){if(!bf(e))return!1;a=!0,s=!1}if(h&&!s)return o||(o=new pf),a||wf(t)?df(t,e,n,r,i,o):yf(t,e,u,n,r,i,o);if(!(1&n)){var p=s&&jf.call(t,"__wrapped__"),d=f&&jf.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new pf),i(y,v,n,r,o)}}return!!h&&(o||(o=new pf),vf(t,e,n,r,i,o))},Pf=Af,Mf=Br;var Ef=function t(e,n,r,i,o){return e===n||(null==e||null==n||!Mf(e)&&!Mf(n)?e!=e&&n!=n:Pf(e,n,r,i,t,o))},kf=ll,_f=Ef;var Tf=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 kf;if(r)var h=r(l,s,u,t,e,f);if(!(void 0===h?_f(s,l,3,r,f):h))return!1}}return!0},Nf=Wr;var Cf=function(t){return t==t&&!Nf(t)},If=Cf,Df=Rs;var Bf=function(t){for(var e=Df(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,If(i)]}return e};var Rf=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}},Lf=Tf,zf=Bf,$f=Rf;var Hf=function(t){var e=zf(t);return 1==e.length&&e[0][2]?$f(e[0][0],e[0][1]):function(n){return n===t||Lf(n,t,e)}};var Uf=function(t,e){return null!=t&&e in Object(t)},Ff=Io,qf=Kl,Wf=br,Vf=es,Xf=ns,Gf=Bo;var Yf=function(t,e,n){for(var r=-1,i=(e=Ff(e,t)).length,o=!1;++r<i;){var a=Gf(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Xf(i)&&Vf(a,i)&&(Wf(t)||qf(t))},Kf=Uf,Zf=Yf;var Jf=function(t,e){return null!=t&&Zf(t,e,Kf)},Qf=Ef,th=Ho,eh=Jf,nh=qr,rh=Cf,ih=Rf,oh=Bo;var ah=function(t,e){return nh(t)&&rh(e)?ih(oh(t),e):function(n){var r=th(n,t);return void 0===r&&r===e?eh(n,t):Qf(e,r,3)}};var ch=function(t){return t};var uh=function(t){return function(e){return null==e?void 0:e[t]}},lh=zo;var sh=function(t){return function(e){return lh(e,t)}},fh=uh,hh=sh,ph=qr,dh=Bo;var yh=Hf,vh=ah,gh=ch,mh=br,bh=function(t){return ph(t)?fh(dh(t)):hh(t)};var wh=function(t){return"function"==typeof t?t:null==t?gh:"object"==typeof t?mh(t)?vh(t[0],t[1]):yh(t):bh(t)};var xh=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 Oh=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1},Sh=xh,jh=function(t){return t!=t},Ah=Oh;var Ph=function(t,e,n){return e==e?Ah(t,e,n):Sh(t,jh,n)},Mh=Ph;var Eh=function(t,e){return!!(null==t?0:t.length)&&Mh(t,e,0)>-1};var kh=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 _h=Xs,Th=function(){},Nh=_h&&1/Ol(new _h([,-0]))[1]==1/0?function(t){return new _h(t)}:Th,Ch=dl,Ih=Eh,Dh=kh,Bh=vl,Rh=Nh,Lh=Ol;var zh=function(t,e,n){var r=-1,i=Ih,o=t.length,a=!0,c=[],u=c;if(n)a=!1,i=Dh;else if(o>=200){var l=e?null:Rh(t);if(l)return Lh(l);a=!1,i=Bh,u=new Ch}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},$h=wh,Hh=zh;var Uh=function(t,e){return t&&t.length?Hh(t,$h(e)):[]},Fh=mr(Uh);function qh(t,e,n){return!0===e?Fh(t,n):Zr(e)?Fh(t,e):t}function Wh(t){return Wh="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},Wh(t)}var Vh=["ref"];function Xh(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 Gh(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xh(Object(n),!0).forEach((function(e){tp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Yh(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,ep(r.key),r)}}function Kh(t,e){return Kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kh(t,e)}function Zh(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=Qh(t);if(e){var i=Qh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Wh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Jh(t)}(this,n)}}function Jh(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Qh(t){return Qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qh(t)}function tp(t,e,n){return(e=ep(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ep(t){var e=function(t,e){if("object"!==Wh(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Wh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Wh(e)?e:String(e)}function np(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 rp(t){return t.value}var ip=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&&Kh(t,e)}(o,L);var e,n,r,i=Zh(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 tp(Jh(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&&ua(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?Gh({},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}),Gh(Gh({},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=Gh(Gh({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=np(e,Vh);return D.createElement(Zu,n)}(n,Gh(Gh({},this.props),{},{payload:qh(c,a,rp)})))}}])&&Yh(e.prototype,n),r&&Yh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();tp(ip,"displayName","Legend"),tp(ip,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var op=Kl,ap=br,cp=jr?jr.isConcatSpreadable:void 0;var up=Tl,lp=function(t){return ap(t)||op(t)||!!(cp&&t&&t[cp])};var sp=function t(e,n,r,i,o){var a=-1,c=e.length;for(r||(r=lp),o||(o=[]);++a<c;){var u=e[a];n>0&&r(u)?n>1?t(u,n-1,r,i,o):up(o,u):i||(o[o.length]=u)}return o};var fp=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}},hp=fp(),pp=Rs;var dp=function(t,e){return t&&hp(t,e,pp)},yp=Cs;var vp=function(t,e){return function(n,r){if(null==n)return n;if(!yp(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}}(dp),gp=vp,mp=Cs;var bp=function(t,e){var n=-1,r=mp(t)?Array(t.length):[];return gp(t,(function(t,i,o){r[++n]=e(t,i,o)})),r};var wp=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t},xp=zr;var Op=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=xp(t),a=void 0!==e,c=null===e,u=e==e,l=xp(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 Sp=function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,c=n.length;++r<a;){var u=Op(i[r],o[r]);if(u)return r>=c?u:u*("desc"==n[r]?-1:1)}return t.index-e.index},jp=xo,Ap=zo,Pp=wh,Mp=bp,Ep=wp,kp=us,_p=Sp,Tp=ch,Np=br;var Cp=function(t,e,n){e=e.length?jp(e,(function(t){return Np(t)?function(e){return Ap(e,1===t.length?t[0]:t)}:t})):[Tp];var r=-1;e=jp(e,kp(Pp));var i=Mp(t,(function(t,n,i){return{criteria:jp(e,(function(e){return e(t)})),index:++r,value:t}}));return Ep(i,(function(t,e){return _p(t,e,n)}))};var Ip=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)},Dp=Math.max;var Bp=function(t,e,n){return e=Dp(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Dp(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),Ip(t,this,c)}};var Rp=function(t){return function(){return t}},Lp=vi,zp=function(){try{var t=Lp(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),$p=Rp,Hp=zp,Up=Hp?function(t,e){return Hp(t,"toString",{configurable:!0,enumerable:!1,value:$p(e),writable:!0})}:ch,Fp=Up,qp=Date.now;var Wp=function(t){var e=0,n=0;return function(){var r=qp(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Fp),Vp=ch,Xp=Bp,Gp=Wp;var Yp=Di,Kp=Cs,Zp=es,Jp=Wr;var Qp=function(t,e,n){if(!Jp(n))return!1;var r=typeof e;return!!("number"==r?Kp(n)&&Zp(e,n.length):"string"==r&&e in n)&&Yp(n[e],t)},td=sp,ed=Cp,nd=Qp,rd=mr(function(t,e){return Gp(Xp(t,e,Vp),t+"")}((function(t,e){if(null==t)return[];var n=e.length;return n>1&&nd(t,e[0],e[1])?e=[]:n>2&&nd(e[0],e[1],e[2])&&(e=[e[0]]),ed(t,td(e,1),[])})));function id(t){return id="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},id(t)}function od(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 ad(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 ad(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 ad(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 cd(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 ud(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?cd(Object(n),!0).forEach((function(e){ld(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ld(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==id(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==id(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===id(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sd(t){return Array.isArray(t)&&la(t[0])&&la(t[1])?t.join(" ~ "):t}var fd,hd,pd,dd,yd,vd,gd,md,bd,wd,xd,Od,Sd=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=ud({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),g=ud({margin:0},u),m=!Fo(d),b=m?d:"",w=vr("recharts-default-tooltip",h),x=vr("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?rd(l,f):l).map((function(t,e){if("none"===t.type)return null;var r=ud({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||sd,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=od(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},la(f)?D.createElement("span",{className:"recharts-tooltip-item-name"},f):null,la(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}())},jd={exports:{}};function Ad(){if(hd)return fd;hd=1;return fd="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Pd(){if(vd)return yd;vd=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return yd=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},yd}function Md(){return md?gd:(md=1,gd=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Ed=Qo;jd.exports=function(){if(Od)return xd;Od=1;var t=Qo,e=Pd(),n=Ad(),r=Md(),i=function(){if(wd)return bd;wd=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=Ad(),n={},r=Md();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={})},bd=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){}}),xd=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},xd}()(Ed.isElement,!0)}else jd.exports=function(){if(dd)return pd;dd=1;var t=Ad();function e(){}function n(){}return n.resetWarningCache=e,pd=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}}
24
+ */"production"===process.env.NODE_ENV?sa.exports=function(){if(ha)return pa;ha=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 pa.AsyncMode=u,pa.ConcurrentMode=l,pa.ContextConsumer=c,pa.ContextProvider=a,pa.Element=e,pa.ForwardRef=s,pa.Fragment=r,pa.Lazy=d,pa.Memo=p,pa.Portal=n,pa.Profiler=o,pa.StrictMode=i,pa.Suspense=f,pa.isAsyncMode=function(t){return w(t)||b(t)===u},pa.isConcurrentMode=w,pa.isContextConsumer=function(t){return b(t)===c},pa.isContextProvider=function(t){return b(t)===a},pa.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},pa.isForwardRef=function(t){return b(t)===s},pa.isFragment=function(t){return b(t)===r},pa.isLazy=function(t){return b(t)===d},pa.isMemo=function(t){return b(t)===p},pa.isPortal=function(t){return b(t)===n},pa.isProfiler=function(t){return b(t)===o},pa.isStrictMode=function(t){return b(t)===i},pa.isSuspense=function(t){return b(t)===f},pa.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)},pa.typeOf=b,pa}():sa.exports=(ua||(ua=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,C=f,N=!1;function D(t){return b(t)===l}fa.AsyncMode=w,fa.ConcurrentMode=x,fa.ContextConsumer=O,fa.ContextProvider=S,fa.Element=j,fa.ForwardRef=A,fa.Fragment=P,fa.Lazy=M,fa.Memo=E,fa.Portal=k,fa.Profiler=_,fa.StrictMode=T,fa.Suspense=C,fa.isAsyncMode=function(t){return N||(N=!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.")),D(t)||b(t)===u},fa.isConcurrentMode=D,fa.isContextConsumer=function(t){return b(t)===c},fa.isContextProvider=function(t){return b(t)===a},fa.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},fa.isForwardRef=function(t){return b(t)===s},fa.isFragment=function(t){return b(t)===r},fa.isLazy=function(t){return b(t)===d},fa.isMemo=function(t){return b(t)===p},fa.isPortal=function(t){return b(t)===n},fa.isProfiler=function(t){return b(t)===o},fa.isStrictMode=function(t){return b(t)===i},fa.isSuspense=function(t){return b(t)===f},fa.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)},fa.typeOf=b}()),fa);var da=sa.exports,ya=Kr,va=Zr;var ga=function(t){return"number"==typeof t||va(t)&&"[object Number]"==ya(t)},ma=be(ga),ba=ga;var wa=be((function(t){return ba(t)&&t!=+t})),xa=function(t){return 0===t?0:t>0?1:-1},Oa=function(t){return la(t)&&t.indexOf("%")===t.length-1},Sa=function(t){return ma(t)&&!wa(t)},ja=function(t){return Sa(t)||la(t)},Aa=0,Pa=function(t){var e=++Aa;return"".concat(t||"").concat(e)},Ma=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(!Sa(t)&&!la(t))return r;if(Oa(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return wa(n)&&(n=r),i&&n>e&&(n=e),n},Ea=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},ka=function(t,e){return Sa(t)&&Sa(e)?function(n){return t+n*(e-t)}:function(){return e}};function _a(t,e,n){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):ra(t,e))===n})):null}function Ta(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 Ca(t){return Ca="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},Ca(t)}var Na=["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"],Da=["points","pathLength"],Ia={svg:["viewBox","children"],polygon:Da,polyline:Da},Ba=["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"],Ra=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(B(t)&&(n=t.props),!ci(n))return null;var r={};return Object.keys(n).forEach((function(t){Ba.includes(t)&&(r[t]=e||function(e){return n[t](n,e)})})),r},$a=function(t,e,n){if(!ci(t)||"object"!==Ca(t))return null;var r=null;return Object.keys(t).forEach((function(i){var o=t[i];Ba.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},La=["children"],za=["children"];function Ha(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 Ua(t){return Ua="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},Ua(t)}var Fa={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},qa=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Va=null,Wa=null,Ya=function t(e){if(e===Va&&Array.isArray(Wa))return Wa;var n=[];return R.forEach(e,(function(e){ia(e)||(da.isFragment(e)?n=n.concat(t(e.props.children)):n.push(e))})),Wa=n,Va=e,n};function Xa(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map((function(t){return qa(t)})):[qa(e)],Ya(t).forEach((function(t){var e=ra(t,"type.displayName")||ra(t,"type.name");-1!==r.indexOf(e)&&n.push(t)})),n}function Ga(t,e){var n=Xa(t,e);return n&&n[0]}var Ka=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!(!Sa(n)||n<=0||!Sa(r)||r<=0)},Za=["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"],Ja=function(t){return t&&"object"===Ua(t)&&"cx"in t&&"cy"in t&&"r"in t},Qa=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(B(t)&&(r=t.props),!ci(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==Ia?void 0:Ia[r])&&void 0!==i?i:[];return!hi(t)&&(r&&o.includes(e)||Na.includes(e))||n&&Ba.includes(e)})(null===(o=r)||void 0===o?void 0:o[t],t,e,n)&&(i[t]=r[t])})),i},tc=function t(e,n){if(e===n)return!0;var r=R.count(e);if(r!==R.count(n))return!1;if(0===r)return!0;if(1===r)return ec(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(!ec(o,a))return!1}return!0},ec=function(t,e){if(ia(t)&&ia(e))return!0;if(!ia(t)&&!ia(e)){var n=t.props||{},r=n.children,i=Ha(n,La),o=e.props||{},a=o.children,c=Ha(o,za);return r&&a?Ta(i,c)&&tc(r,a):!r&&!a&&Ta(i,c)}return!1},nc=function(t,e){var n=[],r={};return Ya(t).forEach((function(t,i){if(function(t){return t&&t.type&&la(t.type)&&Za.indexOf(t.type)>=0}(t))n.push(t);else if(t){var o=qa(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},rc=["children","width","height","viewBox","className","style","title","desc"];function ic(){return ic=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},ic.apply(this,arguments)}function oc(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 ac(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=oc(t,rc),s=i||{width:n,height:r,x:0,y:0},f=Nr("recharts-surface",o);return I.createElement("svg",ic({},Qa(l,!0,"svg"),{className:f,width:n,height:r,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),I.createElement("title",null,c),I.createElement("desc",null,u),e)}var cc=["children","className"];function uc(){return uc=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},uc.apply(this,arguments)}function lc(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 sc=I.forwardRef((function(t,e){var n=t.children,r=t.className,i=lc(t,cc),o=Nr("recharts-layer",r);return I.createElement("g",uc({className:o},Qa(i,!0),{ref:e}),n)})),fc="production"!==process.env.NODE_ENV,hc=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(fc&&"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 pc=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},dc=pc;var yc=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:dc(t,e,n)},vc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var gc=function(t){return vc.test(t)};var mc=function(t){return t.split("")},bc="\\ud800-\\udfff",wc="["+bc+"]",xc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Oc="\\ud83c[\\udffb-\\udfff]",Sc="[^"+bc+"]",jc="(?:\\ud83c[\\udde6-\\uddff]){2}",Ac="[\\ud800-\\udbff][\\udc00-\\udfff]",Pc="(?:"+xc+"|"+Oc+")"+"?",Mc="[\\ufe0e\\ufe0f]?",Ec=Mc+Pc+("(?:\\u200d(?:"+[Sc,jc,Ac].join("|")+")"+Mc+Pc+")*"),kc="(?:"+[Sc+xc+"?",xc,jc,Ac,wc].join("|")+")",_c=RegExp(Oc+"(?="+Oc+")|"+kc+Ec,"g");var Tc=function(t){return t.match(_c)||[]},Cc=mc,Nc=gc,Dc=Tc;var Ic=function(t){return Nc(t)?Dc(t):Cc(t)},Bc=yc,Rc=gc,$c=Ic,Lc=qo;var zc=function(t){return function(e){e=Lc(e);var n=Rc(e)?$c(e):void 0,r=n?n[0]:e.charAt(0),i=n?Bc(n,1).join(""):e.slice(1);return r[t]()+i}},Hc=be(zc("toUpperCase"));function Uc(t){return function(){return t}}const Fc=Math.cos,qc=Math.sin,Vc=Math.sqrt,Wc=Math.PI,Yc=2*Wc,Xc=Math.PI,Gc=2*Xc,Kc=1e-6,Zc=Gc-Kc;function Jc(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Qc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Jc:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Jc;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>Kc)if(Math.abs(s*c-u*l)>Kc&&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((Xc-Math.acos((d+f-y)/(2*v*g)))/2),b=m/g,w=m/v;Math.abs(b-1)>Kc&&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)>Kc||Math.abs(this._y1-l)>Kc)&&this._append`L${u},${l}`,n&&(f<0&&(f=f%Gc+Gc),f>Zc?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>Kc&&this._append`A${n},${n},0,${+(f>=Xc)},${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 tu(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 Qc(e)}function eu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function nu(t){this._context=t}function ru(t){return new nu(t)}function iu(t){return t[0]}function ou(t){return t[1]}function au(t,e){var n=Uc(!0),r=null,i=ru,o=null,a=tu(c);function c(c){var u,l,s,f=(c=eu(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?iu:Uc(t),e="function"==typeof e?e:void 0===e?ou:Uc(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:Uc(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Uc(+t),c):e},c.defined=function(t){return arguments.length?(n="function"==typeof t?t:Uc(!!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 cu(t,e,n){var r=null,i=Uc(!0),o=null,a=ru,c=null,u=tu(l);function l(l){var s,f,h,p,d,y=(l=eu(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 au().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?iu:Uc(+t),e="function"==typeof e?e:Uc(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?ou:Uc(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:Uc(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:Uc(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Uc(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:Uc(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:Uc(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Uc(+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:Uc(!!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}nu.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 uu{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 lu={draw(t,e){const n=Vc(e/Wc);t.moveTo(n,0),t.arc(0,0,n,0,Yc)}},su={draw(t,e){const n=Vc(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 fu=Vc(1/3),hu=2*fu;var pu={draw(t,e){const n=Vc(e/hu),r=n*fu;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},du={draw(t,e){const n=Vc(e),r=-n/2;t.rect(r,r,n,n)}};const yu=qc(Wc/10)/qc(7*Wc/10),vu=qc(Yc/10)*yu,gu=-Fc(Yc/10)*yu;var mu={draw(t,e){const n=Vc(.8908130915292852*e),r=vu*n,i=gu*n;t.moveTo(0,-n),t.lineTo(r,i);for(let e=1;e<5;++e){const o=Yc*e/5,a=Fc(o),c=qc(o);t.lineTo(c*n,-a*n),t.lineTo(a*r-c*i,c*r+a*i)}t.closePath()}};const bu=Vc(3);var wu={draw(t,e){const n=-Vc(e/(3*bu));t.moveTo(0,2*n),t.lineTo(-bu*n,-n),t.lineTo(bu*n,-n),t.closePath()}};const xu=-.5,Ou=Vc(3)/2,Su=1/Vc(12),ju=3*(Su/2+1);var Au={draw(t,e){const n=Vc(e/ju),r=n/2,i=n*Su,o=r,a=n*Su+n,c=-o,u=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(c,u),t.lineTo(xu*r-Ou*i,Ou*r+xu*i),t.lineTo(xu*o-Ou*a,Ou*o+xu*a),t.lineTo(xu*c-Ou*u,Ou*c+xu*u),t.lineTo(xu*r+Ou*i,xu*i-Ou*r),t.lineTo(xu*o+Ou*a,xu*a-Ou*o),t.lineTo(xu*c+Ou*u,xu*u-Ou*c),t.closePath()}};function Pu(){}function Mu(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 Eu(t){this._context=t}function ku(t){this._context=t}function _u(t){this._context=t}function Tu(t){this._context=t}function Cu(t){return t<0?-1:1}function Nu(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(Cu(o)+Cu(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function Du(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Iu(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 Bu(t){this._context=t}function Ru(t){this._context=new $u(t)}function $u(t){this._context=t}function Lu(t){this._context=t}function zu(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 Hu(t,e){this._context=t,this._t=e}function Uu(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 Fu(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function qu(t,e){return t[e]}function Vu(t){const e=[];return e.key=t,e}function Wu(t){return Wu="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},Wu(t)}Eu.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:Mu(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:Mu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ku.prototype={areaStart:Pu,areaEnd:Pu,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:Mu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},_u.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:Mu(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Tu.prototype={areaStart:Pu,areaEnd:Pu,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))}},Bu.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:Iu(this,this._t0,Du(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,Iu(this,Du(this,n=Nu(this,t,e)),n);break;default:Iu(this,this._t0,n=Nu(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Ru.prototype=Object.create(Bu.prototype)).point=function(t,e){Bu.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)}},Lu.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=zu(t),i=zu(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)}},Hu.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 Yu=["type","size","sizeType"];function Xu(){return Xu=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},Xu.apply(this,arguments)}function Gu(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 Ku(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gu(Object(n),!0).forEach((function(e){Zu(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gu(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zu(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Wu(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Wu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Wu(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ju(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 Qu={symbolCircle:lu,symbolCross:su,symbolDiamond:pu,symbolSquare:du,symbolStar:mu,symbolTriangle:wu,symbolWye:Au},tl=Math.PI/180,el=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=Ku(Ku({},Ju(t,Yu)),{},{type:i,size:a,sizeType:u}),s=l.className,f=l.cx,h=l.cy,p=Qa(l,!0);return f===+f&&h===+h&&a===+a?I.createElement("path",Xu({},p,{className:Nr("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(Hc(t));return Qu[e]||lu}(i),n=function(t,e){let n=null,r=tu(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:Uc(t||lu),e="function"==typeof e?e:Uc(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:Uc(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:Uc(+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*tl;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 nl(t){return nl="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},nl(t)}function rl(){return rl=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},rl.apply(this,arguments)}function il(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 ol(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,sl(r.key),r)}}function al(t,e){return al=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},al(t,e)}function cl(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=ul(t);if(e){var i=ul(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===nl(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 ul(t){return ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ul(t)}function ll(t,e,n){return(e=sl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sl(t){var e=function(t,e){if("object"!==nl(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==nl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===nl(e)?e:String(e)}el.registerSymbol=function(t,e){Qu["symbol".concat(Hc(t))]=e};var fl=32,hl=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&&al(t,e)}(o,$);var e,n,r,i=cl(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=fl/6,i=fl/3,o=t.inactive?e:t.color;if("plainline"===t.type)return I.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:n,x2:fl,y2:n,className:"recharts-legend-icon"});if("line"===t.type)return I.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(fl,"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 I.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(fl,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(I.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?il(Object(n),!0).forEach((function(e){ll(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):il(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return delete a.legendIcon,I.cloneElement(t.legendIcon,a)}return I.createElement(el,{fill:o,cx:n,cy:n,size:fl,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:fl,height:fl},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=Nr((ll(i={"recharts-legend-item":!0},"legend-item-".concat(n),!0),ll(i,"inactive",e.inactive),i));if("none"===e.type)return null;var h=hi(e.value)?null:e.value;hc(!hi(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 I.createElement("li",rl({className:f,style:u,key:"legend-item-".concat(n)},$a(t.props,e,n)),I.createElement(ac,{width:r,height:r,viewBox:c,style:l},t.renderIcon(e)),I.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 I.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&ol(e.prototype,n),r&&ol(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();ll(hl,"displayName","Legend"),ll(hl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var pl=so;var dl=so,yl=fo,vl=Eo;var gl=so,ml=function(){this.__data__=new pl,this.size=0},bl=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},wl=function(t){return this.__data__.get(t)},xl=function(t){return this.__data__.has(t)},Ol=function(t,e){var n=this.__data__;if(n instanceof dl){var r=n.__data__;if(!yl||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new vl(r)}return n.set(t,e),this.size=n.size,this};function Sl(t){var e=this.__data__=new gl(t);this.size=e.size}Sl.prototype.clear=ml,Sl.prototype.delete=bl,Sl.prototype.get=wl,Sl.prototype.has=xl,Sl.prototype.set=Ol;var jl=Sl;var Al=Eo,Pl=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ml=function(t){return this.__data__.has(t)};function El(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Al;++e<n;)this.add(t[e])}El.prototype.add=El.prototype.push=Pl,El.prototype.has=Ml;var kl=El;var _l=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 Tl=function(t,e){return t.has(e)},Cl=kl,Nl=_l,Dl=Tl;var Il=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 Cl: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(!Nl(e,(function(t,e){if(!Dl(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 Bl=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n};var Rl=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},$l=$r.Uint8Array,Ll=Ki,zl=Il,Hl=Bl,Ul=Rl,Fl=Lr?Lr.prototype:void 0,ql=Fl?Fl.valueOf:void 0;var Vl=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 Ll(+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=Hl;case"[object Set]":var u=1&r;if(c||(c=Ul),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=zl(c(t),c(e),r,i,o,a);return a.delete(t),s;case"[object Symbol]":if(ql)return ql.call(t)==ql.call(e)}return!1};var Wl=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},Yl=Wl,Xl=Dr;var Gl=function(t,e,n){var r=e(t);return Xl(t)?r:Yl(r,n(t))};var Kl=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 Zl=Kl,Jl=function(){return[]},Ql=Object.prototype.propertyIsEnumerable,ts=Object.getOwnPropertySymbols,es=ts?function(t){return null==t?[]:(t=Object(t),Zl(ts(t),(function(e){return Ql.call(t,e)})))}:Jl,ns=es;var rs=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r},is=Kr,os=Zr;var as=function(t){return os(t)&&"[object Arguments]"==is(t)},cs=Zr,us=Object.prototype,ls=us.hasOwnProperty,ss=us.propertyIsEnumerable,fs=as(function(){return arguments}())?as:function(t){return cs(t)&&ls.call(t,"callee")&&!ss.call(t,"callee")},hs={exports:{}};var ps=function(){return!1};!function(t,e){var n=$r,r=ps,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}(hs,hs.exports);var ds=hs.exports,ys=/^(?:0|[1-9]\d*)$/;var vs=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ys.test(t))&&t>-1&&t%1==0&&t<e};var gs=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},ms=Kr,bs=gs,ws=Zr,xs={};xs["[object Float32Array]"]=xs["[object Float64Array]"]=xs["[object Int8Array]"]=xs["[object Int16Array]"]=xs["[object Int32Array]"]=xs["[object Uint8Array]"]=xs["[object Uint8ClampedArray]"]=xs["[object Uint16Array]"]=xs["[object Uint32Array]"]=!0,xs["[object Arguments]"]=xs["[object Array]"]=xs["[object ArrayBuffer]"]=xs["[object Boolean]"]=xs["[object DataView]"]=xs["[object Date]"]=xs["[object Error]"]=xs["[object Function]"]=xs["[object Map]"]=xs["[object Number]"]=xs["[object Object]"]=xs["[object RegExp]"]=xs["[object Set]"]=xs["[object String]"]=xs["[object WeakMap]"]=!1;var Os=function(t){return ws(t)&&bs(t.length)&&!!xs[ms(t)]};var Ss=function(t){return function(e){return t(e)}},js={exports:{}};!function(t,e){var n=Ir,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}(js,js.exports);var As=js.exports,Ps=Os,Ms=Ss,Es=As&&As.isTypedArray,ks=Es?Ms(Es):Ps,_s=rs,Ts=fs,Cs=Dr,Ns=ds,Ds=vs,Is=ks,Bs=Object.prototype.hasOwnProperty;var Rs=function(t,e){var n=Cs(t),r=!n&&Ts(t),i=!n&&!r&&Ns(t),o=!n&&!r&&!i&&Is(t),a=n||r||i||o,c=a?_s(t.length,String):[],u=c.length;for(var l in t)!e&&!Bs.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ds(l,u))||c.push(l);return c},$s=Object.prototype;var Ls=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||$s)};var zs=function(t,e){return function(n){return t(e(n))}},Hs=zs(Object.keys,Object),Us=Ls,Fs=Hs,qs=Object.prototype.hasOwnProperty;var Vs=function(t){if(!Us(t))return Fs(t);var e=[];for(var n in Object(t))qs.call(t,n)&&"constructor"!=n&&e.push(n);return e},Ws=fi,Ys=gs;var Xs=function(t){return null!=t&&Ys(t.length)&&!Ws(t)},Gs=Rs,Ks=Vs,Zs=Xs;var Js=function(t){return Zs(t)?Gs(t):Ks(t)},Qs=Gl,tf=ns,ef=Js;var nf=function(t){return Qs(t,ef,tf)},rf=nf,of=Object.prototype.hasOwnProperty;var af=function(t,e,n,r,i,o){var a=1&n,c=rf(t),u=c.length;if(u!=rf(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:of.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},cf=Ti($r,"DataView"),uf=Ti($r,"Promise"),lf=Ti($r,"Set"),sf=cf,ff=fo,hf=uf,pf=lf,df=Ti($r,"WeakMap"),yf=Kr,vf=gi,gf="[object Map]",mf="[object Promise]",bf="[object Set]",wf="[object WeakMap]",xf="[object DataView]",Of=vf(sf),Sf=vf(ff),jf=vf(hf),Af=vf(pf),Pf=vf(df),Mf=yf;(sf&&Mf(new sf(new ArrayBuffer(1)))!=xf||ff&&Mf(new ff)!=gf||hf&&Mf(hf.resolve())!=mf||pf&&Mf(new pf)!=bf||df&&Mf(new df)!=wf)&&(Mf=function(t){var e=yf(t),n="[object Object]"==e?t.constructor:void 0,r=n?vf(n):"";if(r)switch(r){case Of:return xf;case Sf:return gf;case jf:return mf;case Af:return bf;case Pf:return wf}return e});var Ef=jl,kf=Il,_f=Vl,Tf=af,Cf=Mf,Nf=Dr,Df=ds,If=ks,Bf="[object Arguments]",Rf="[object Array]",$f="[object Object]",Lf=Object.prototype.hasOwnProperty;var zf=function(t,e,n,r,i,o){var a=Nf(t),c=Nf(e),u=a?Rf:Cf(t),l=c?Rf:Cf(e),s=(u=u==Bf?$f:u)==$f,f=(l=l==Bf?$f:l)==$f,h=u==l;if(h&&Df(t)){if(!Df(e))return!1;a=!0,s=!1}if(h&&!s)return o||(o=new Ef),a||If(t)?kf(t,e,n,r,i,o):_f(t,e,u,n,r,i,o);if(!(1&n)){var p=s&&Lf.call(t,"__wrapped__"),d=f&&Lf.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new Ef),i(y,v,n,r,o)}}return!!h&&(o||(o=new Ef),Tf(t,e,n,r,i,o))},Hf=zf,Uf=Zr;var Ff=function t(e,n,r,i,o){return e===n||(null==e||null==n||!Uf(e)&&!Uf(n)?e!=e&&n!=n:Hf(e,n,r,i,t,o))},qf=jl,Vf=Ff;var Wf=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 qf;if(r)var h=r(l,s,u,t,e,f);if(!(void 0===h?Vf(s,l,3,r,f):h))return!1}}return!0},Yf=ai;var Xf=function(t){return t==t&&!Yf(t)},Gf=Xf,Kf=Js;var Zf=function(t){for(var e=Kf(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,Gf(i)]}return e};var Jf=function(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}},Qf=Wf,th=Zf,eh=Jf;var nh=function(t){var e=th(t);return 1==e.length&&e[0][2]?eh(e[0][0],e[0][1]):function(n){return n===t||Qf(n,t,e)}};var rh=function(t,e){return null!=t&&e in Object(t)},ih=Go,oh=fs,ah=Dr,ch=vs,uh=gs,lh=Zo;var sh=function(t,e,n){for(var r=-1,i=(e=ih(e,t)).length,o=!1;++r<i;){var a=lh(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&uh(i)&&ch(a,i)&&(ah(t)||oh(t))},fh=rh,hh=sh;var ph=function(t,e){return null!=t&&hh(t,e,fh)},dh=Ff,yh=na,vh=ph,gh=oi,mh=Xf,bh=Jf,wh=Zo;var xh=function(t,e){return gh(t)&&mh(e)?bh(wh(t),e):function(n){var r=yh(n,t);return void 0===r&&r===e?vh(n,t):dh(e,r,3)}};var Oh=function(t){return t};var Sh=function(t){return function(e){return null==e?void 0:e[t]}},jh=ta;var Ah=function(t){return function(e){return jh(e,t)}},Ph=Sh,Mh=Ah,Eh=oi,kh=Zo;var _h=nh,Th=xh,Ch=Oh,Nh=Dr,Dh=function(t){return Eh(t)?Ph(kh(t)):Mh(t)};var Ih=function(t){return"function"==typeof t?t:null==t?Ch:"object"==typeof t?Nh(t)?Th(t[0],t[1]):_h(t):Dh(t)};var Bh=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 Rh=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1},$h=Bh,Lh=function(t){return t!=t},zh=Rh;var Hh=function(t,e,n){return e==e?zh(t,e,n):$h(t,Lh,n)},Uh=Hh;var Fh=function(t,e){return!!(null==t?0:t.length)&&Uh(t,e,0)>-1};var qh=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 Vh=lf,Wh=function(){},Yh=Vh&&1/Rl(new Vh([,-0]))[1]==1/0?function(t){return new Vh(t)}:Wh,Xh=kl,Gh=Fh,Kh=qh,Zh=Tl,Jh=Yh,Qh=Rl;var tp=function(t,e,n){var r=-1,i=Gh,o=t.length,a=!0,c=[],u=c;if(n)a=!1,i=Kh;else if(o>=200){var l=e?null:Jh(t);if(l)return Qh(l);a=!1,i=Zh,u=new Xh}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},ep=Ih,np=tp;var rp=function(t,e){return t&&t.length?np(t,ep(e)):[]},ip=be(rp);function op(t,e,n){return!0===e?ip(t,n):hi(e)?ip(t,e):t}function ap(t){return ap="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},ap(t)}var cp=["ref"];function up(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 lp(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?up(Object(n),!0).forEach((function(e){yp(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):up(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sp(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,vp(r.key),r)}}function fp(t,e){return fp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fp(t,e)}function hp(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=dp(t);if(e){var i=dp(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ap(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return pp(t)}(this,n)}}function pp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function dp(t){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},dp(t)}function yp(t,e,n){return(e=vp(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vp(t){var e=function(t,e){if("object"!==ap(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ap(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ap(e)?e:String(e)}function gp(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 bp=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&&fp(t,e)}(o,$);var e,n,r,i=hp(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 yp(pp(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&&Sa(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?lp({},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}),lp(lp({},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=lp(lp({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return I.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(I.isValidElement(t))return I.cloneElement(t,e);if("function"==typeof t)return I.createElement(t,e);e.ref;var n=gp(e,cp);return I.createElement(hl,n)}(n,lp(lp({},this.props),{},{payload:op(c,a,mp)})))}}])&&sp(e.prototype,n),r&&sp(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();yp(bp,"displayName","Legend"),yp(bp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var wp=fs,xp=Dr,Op=Lr?Lr.isConcatSpreadable:void 0;var Sp=Wl,jp=function(t){return xp(t)||wp(t)||!!(Op&&t&&t[Op])};var Ap=function t(e,n,r,i,o){var a=-1,c=e.length;for(r||(r=jp),o||(o=[]);++a<c;){var u=e[a];n>0&&r(u)?n>1?t(u,n-1,r,i,o):Sp(o,u):i||(o[o.length]=u)}return o};var Pp=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}},Mp=Pp(),Ep=Js;var kp=function(t,e){return t&&Mp(t,e,Ep)},_p=Xs;var Tp=function(t,e){return function(n,r){if(null==n)return n;if(!_p(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}}(kp),Cp=Tp,Np=Xs;var Dp=function(t,e){var n=-1,r=Np(t)?Array(t.length):[];return Cp(t,(function(t,i,o){r[++n]=e(t,i,o)})),r};var Ip=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t},Bp=ti;var Rp=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Bp(t),a=void 0!==e,c=null===e,u=e==e,l=Bp(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=Rp(i[r],o[r]);if(u)return r>=c?u:u*("desc"==n[r]?-1:1)}return t.index-e.index},Lp=Bo,zp=ta,Hp=Ih,Up=Dp,Fp=Ip,qp=Ss,Vp=$p,Wp=Oh,Yp=Dr;var Xp=function(t,e,n){e=e.length?Lp(e,(function(t){return Yp(t)?function(e){return zp(e,1===t.length?t[0]:t)}:t})):[Wp];var r=-1;e=Lp(e,qp(Hp));var i=Up(t,(function(t,n,i){return{criteria:Lp(e,(function(e){return e(t)})),index:++r,value:t}}));return Fp(i,(function(t,e){return Vp(t,e,n)}))};var Gp=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)},Kp=Math.max;var Zp=function(t,e,n){return e=Kp(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Kp(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),Gp(t,this,c)}};var Jp=function(t){return function(){return t}},Qp=Ti,td=function(){try{var t=Qp(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),ed=Jp,nd=td,rd=nd?function(t,e){return nd(t,"toString",{configurable:!0,enumerable:!1,value:ed(e),writable:!0})}:Oh,id=rd,od=Date.now;var ad=function(t){var e=0,n=0;return function(){var r=od(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(id),cd=Oh,ud=Zp,ld=ad;var sd=Ki,fd=Xs,hd=vs,pd=ai;var dd=function(t,e,n){if(!pd(n))return!1;var r=typeof e;return!!("number"==r?fd(n)&&hd(e,n.length):"string"==r&&e in n)&&sd(n[e],t)},yd=Ap,vd=Xp,gd=dd,md=be(function(t,e){return ld(ud(t,e,cd),t+"")}((function(t,e){if(null==t)return[];var n=e.length;return n>1&&gd(t,e[0],e[1])?e=[]:n>2&&gd(e[0],e[1],e[2])&&(e=[e[0]]),vd(t,yd(e,1),[])})));function bd(t){return bd="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},bd(t)}function wd(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 xd(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 xd(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 xd(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 Od(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 Sd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Od(Object(n),!0).forEach((function(e){jd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Od(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jd(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==bd(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==bd(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bd(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ad(t){return Array.isArray(t)&&ja(t[0])&&ja(t[1])?t.join(" ~ "):t}var Pd,Md,Ed,kd,_d,Td,Cd,Nd,Dd,Id,Bd,Rd,$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=Sd({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),g=Sd({margin:0},u),m=!ia(d),b=m?d:"",w=Nr("recharts-default-tooltip",h),x=Nr("recharts-tooltip-label",p);return m&&y&&null!=l&&(b=y(d,l)),I.createElement("div",{className:w,style:v},I.createElement("p",{className:x,style:g},I.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=Sd({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||Ad,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=wd(h,2);u=p[0],f=p[1]}else u=h}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:r},ja(f)?I.createElement("span",{className:"recharts-tooltip-item-name"},f):null,ja(f)?I.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,I.createElement("span",{className:"recharts-tooltip-item-value"},u),I.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return I.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())},Ld={exports:{}};function zd(){if(Md)return Pd;Md=1;return Pd="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Hd(){if(Td)return _d;Td=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return _d=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},_d}function Ud(){return Nd?Cd:(Nd=1,Cd=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Fd=da;Ld.exports=function(){if(Rd)return Bd;Rd=1;var t=da,e=Hd(),n=zd(),r=Ud(),i=function(){if(Id)return Dd;Id=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=zd(),n={},r=Ud();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={})},Dd=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){}}),Bd=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},Bd}()(Fd.isElement,!0)}else Ld.exports=function(){if(kd)return Ed;kd=1;var t=zd();function e(){}function n(){}return n.resetWarningCache=e,Ed=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}}
18
25
  /*
19
26
  object-assign
20
27
  (c) Sindre Sorhus
21
28
  @license MIT
22
- */()();var kd=mr(jd.exports),_d=Object.getOwnPropertyNames,Td=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty;function Cd(t,e){return function(n,r,i){return t(n,r,i)&&e(n,r,i)}}function Id(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 Dd(t){return _d(t).concat(Td(t))}var Bd=Object.hasOwn||function(t,e){return Nd.call(t,e)};function Rd(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var Ld="_owner",zd=Object.getOwnPropertyDescriptor,$d=Object.keys;function Hd(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 Ud(t,e){return Rd(t.getTime(),e.getTime())}function Fd(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 qd(t,e,n){var r,i=$d(t),o=i.length;if($d(e).length!==o)return!1;for(;o-- >0;){if((r=i[o])===Ld&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Bd(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1}return!0}function Wd(t,e,n){var r,i,o,a=Dd(t),c=a.length;if(Dd(e).length!==c)return!1;for(;c-- >0;){if((r=a[c])===Ld&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Bd(e,r))return!1;if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;if(i=zd(t,r),o=zd(e,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function Vd(t,e){return Rd(t.valueOf(),e.valueOf())}function Xd(t,e){return t.source===e.source&&t.flags===e.flags}function Gd(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 Yd(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 Kd="[object Arguments]",Zd="[object Boolean]",Jd="[object Date]",Qd="[object Map]",ty="[object Number]",ey="[object Object]",ny="[object RegExp]",ry="[object Set]",iy="[object String]",oy=Array.isArray,ay="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,cy=Object.assign,uy=Object.prototype.toString.call.bind(Object.prototype.toString);var ly=sy();function sy(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?Wd:Hd,areDatesEqual:Ud,areMapsEqual:r?Cd(Fd,Wd):Fd,areObjectsEqual:r?Wd:qd,arePrimitiveWrappersEqual:Vd,areRegExpsEqual:Xd,areSetsEqual:r?Cd(Gd,Wd):Gd,areTypedArraysEqual:r?Wd:Yd};if(n&&(i=cy({},i,n(i))),e){var o=Id(i.areArraysEqual),a=Id(i.areMapsEqual),c=Id(i.areObjectsEqual),u=Id(i.areSetsEqual);i=cy({},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(oy(t))return e(t,l,s);if(null!=ay&&ay(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=uy(t);return h===Jd?n(t,l,s):h===ny?a(t,l,s):h===Qd?r(t,l,s):h===ry?c(t,l,s):h===ey?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):h===Kd?i(t,l,s):(h===Zd||h===ty||h===iy)&&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 fy(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 hy(t){return hy="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},hy(t)}function py(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 dy(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 dy(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 dy(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 yy(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=py(r),o=i[0],a=i.slice(1);return"number"==typeof o?void fy(n.bind(null,a),o):(n(o),void fy(n.bind(null,a)))}"object"===hy(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 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 gy(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 my(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?gy(Object(n),!0).forEach((function(e){by(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function by(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}sy({strict:!0}),sy({circular:!0}),sy({circular:!0,strict:!0}),sy({createInternalComparator:function(){return Rd}}),sy({strict:!0,createInternalComparator:function(){return Rd}}),sy({circular:!0,createInternalComparator:function(){return Rd}}),sy({circular:!0,createInternalComparator:function(){return Rd},strict:!0});var wy=["Webkit","Moz","O","ms"],xy=["-webkit-","-moz-","-o-","-ms-"],Oy=["transform","transformOrigin","transition"],Sy=function(t){return t},jy=function(t,e){return Object.keys(e).reduce((function(n,r){return my(my({},n),{},by({},r,t(r,e[r])))}),{})},Ay=function(t){return Object.keys(t).reduce((function(t,e){return my(my({},t),function(t,e){if(-1===Oy.indexOf(t))return by({},t,Number.isNaN(e)?0:e);var n="transition"===t,r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),i=e;return wy.reduce((function(t,o,a){return n&&(i=e.replace(/(transform|transform-origin)/gim,"".concat(xy[a],"$1"))),my(my({},t),{},by({},o+r,i))}),{})}(e,t[e]))}),t)},Py=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(",")},My="production"!==process.env.NODE_ENV,Ey=function(t,e,n,r,i,o,a,c){if(My&&"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 ky(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)||Ty(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 _y(t){return function(t){if(Array.isArray(t))return Ny(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ty(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 Ty(t,e){if(t){if("string"==typeof t)return Ny(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)?Ny(t,e):void 0}}function Ny(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 Cy=1e-4,Iy=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Dy=function(t,e){return t.map((function(t,n){return t*Math.pow(e,n)})).reduce((function(t,e){return t+e}))},By=function(t,e){return function(n){var r=Iy(t,e);return Dy(r,n)}},Ry=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=ky(u,4);r=l[0],i=l[1],o=l[2],a=l[3]}else Ey(!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)}Ey([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=By(r,o),p=By(i,a),d=(s=r,f=o,function(t){var e=Iy(s,f),n=[].concat(_y(e.map((function(t,e){return t*e})).slice(1)),[0]);return Dy(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)<Cy||a<Cy)return p(r);r=(e=r-o/a)>1?1:e<0?0:e}return p(r)};return y.isStepper=!1,y},Ly=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 Ry(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)<Cy&&Math.abs(o)<Cy?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===r.split("(")[0])return Ry(r);Ey(!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:(Ey(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function zy(t){return zy="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},zy(t)}function $y(t){return function(t){if(Array.isArray(t))return Vy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Wy(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 Hy(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 Uy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hy(Object(n),!0).forEach((function(e){Fy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Fy(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==zy(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==zy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===zy(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qy(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)||Wy(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 Wy(t,e){if(t){if("string"==typeof t)return Vy(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)?Vy(t,e):void 0}}function Vy(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 Xy=function(t,e,n){return t+(e-t)*n},Gy=function(t){return t.from!==t.to},Yy=function t(e,n,r){var i=jy((function(t,n){if(Gy(n)){var r=qy(e(n.from,n.to,n.velocity),2),i=r[0],o=r[1];return Uy(Uy({},n),{},{from:i,velocity:o})}return n}),n);return r<1?jy((function(t,e){return Gy(e)?Uy(Uy({},e),{},{velocity:Xy(e.velocity,i[t].velocity,r),from:Xy(e.from,i[t].from,r)}):e}),n):t(e,i,r-1)},Ky=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 Uy(Uy({},n),{},Fy({},r,[t[r],e[r]]))}),{}),f=l.reduce((function(n,r){return Uy(Uy({},n),{},Fy({},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=Yy(n,f,o),i(Uy(Uy(Uy({},t),e),jy((function(t,e){return e.from}),f))),c=r,Object.values(f).filter(Gy).length&&(h=requestAnimationFrame(p))}:function(o){u||(u=o);var a=(o-u)/r,c=jy((function(t,e){return Xy.apply(void 0,$y(e).concat([n(a)]))}),s);if(i(Uy(Uy(Uy({},t),e),c)),a<1)h=requestAnimationFrame(p);else{var l=jy((function(t,e){return Xy.apply(void 0,$y(e).concat([n(1)]))}),s);i(Uy(Uy(Uy({},t),e),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(h)}}};function Zy(t){return Zy="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},Zy(t)}var Jy=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Qy(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 tv(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)||function(t,e){if(!t)return;if("string"==typeof t)return ev(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 ev(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 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}function nv(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 rv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nv(Object(n),!0).forEach((function(e){iv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function iv(t,e,n){return(e=av(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ov(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,av(r.key),r)}}function av(t){var e=function(t,e){if("object"!==Zy(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Zy(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Zy(e)?e:String(e)}function cv(t,e){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cv(t,e)}function uv(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=fv(t);if(e){var i=fv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return lv(this,n)}}function lv(t,e){if(e&&("object"===Zy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return sv(t)}function sv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fv(t){return fv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},fv(t)}var hv=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&&cv(t,e)}(o,L);var e,n,r,i=uv(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(sv(n)),n.changeStyle=n.changeStyle.bind(sv(n)),!a||h<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:l}),lv(n);if(s&&s.length)n.state={style:s[0].style};else if(u){if("function"==typeof f)return n.state={style:u},lv(n);n.state={style:c?iv({},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(!(ly(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?iv({},i,s):s};(i&&[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation(rv(rv({},this.props),{},{from:s,begin:0}))}}else{var h={style:i?iv({},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=Ky(n,r,Ly(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(tv(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(tv(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var p=Py(h,o,c),d=rv(rv(rv({},f.style),u),{},{transition:p});return[].concat(tv(t),[d,o,s]).filter(Sy)}),[a,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=yy());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?iv({},r,i):i,h=Py(Object.keys(f),n,o);s.start([a,e,rv(rv({},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=Qy(t,Jy),o=R.count(e),a=Ay(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,rv(rv({},i),{},{style:rv(rv({},r),a),className:o}))};return 1===o?c(R.only(e)):D.createElement("div",null,R.map(e,(function(t){return c(t)})))}}])&&ov(e.prototype,n),r&&ov(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();function pv(t){return pv="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},pv(t)}function dv(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==pv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==pv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}hv.displayName="Animate",hv.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},hv.propTypes={from:kd.oneOfType([kd.object,kd.string]),to:kd.oneOfType([kd.object,kd.string]),attributeName:kd.string,duration:kd.number,begin:kd.number,easing:kd.oneOfType([kd.string,kd.func]),steps:kd.arrayOf(kd.shape({duration:kd.number.isRequired,style:kd.object.isRequired,easing:kd.oneOfType([kd.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),kd.func]),properties:kd.arrayOf("string"),onAnimationEnd:kd.func})),children:kd.oneOfType([kd.node,kd.func]),isActive:kd.bool,canBegin:kd.bool,onAnimationEnd:kd.func,shouldReAnimate:kd.bool,onAnimationStart:kd.func,onAnimationReStart:kd.func},void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)}),kd.object,kd.object,kd.object,kd.element,kd.object,kd.object,kd.object,kd.oneOfType([kd.array,kd.element]),kd.any;var yv="recharts-tooltip-wrapper",vv={visibility:"hidden"};function gv(t){var e,n=t.coordinate,r=t.translateX,i=t.translateY;return vr(yv,(dv(e={},"".concat(yv,"-right"),ua(r)&&n&&ua(n.x)&&r>=n.x),dv(e,"".concat(yv,"-left"),ua(r)&&n&&ua(n.x)&&r<n.x),dv(e,"".concat(yv,"-bottom"),ua(i)&&n&&ua(n.y)&&i>=n.y),dv(e,"".concat(yv,"-top"),ua(i)&&n&&ua(n.y)&&i<n.y),e))}function mv(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&&ua(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 bv(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 Ay({transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})}({translateX:n=mv({allowEscapeViewBox:i,coordinate:o,key:"x",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),translateY:r=mv({allowEscapeViewBox:i,coordinate:o,key:"y",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:s}):vv,{cssProperties:e,cssClasses:gv({translateX:n,translateY:r,coordinate: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){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 Ov(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xv(Object(n),!0).forEach((function(e){Ev(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Sv(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 jv(t,e){return jv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},jv(t,e)}function Av(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 function(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 Pv(t)}(this,n)}}function Pv(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)}function Ev(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 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)}var _v=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&&jv(t,e)}(o,L);var e,n,r,i=Av(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 Ev(Pv(t=i.call.apply(i,[this].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Ev(Pv(t),"lastBoundingBox",{width:-1,height:-1}),Ev(Pv(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=bv({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=Ov(Ov(Ov({},l&&n&&Ay({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)}}])&&Sv(e.prototype,n),r&&Sv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}(),Tv={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return Tv[t]},set:function(t,e){if("string"==typeof t)Tv[t]=e;else{var n=Object.keys(t);n&&n.length&&n.forEach((function(e){Tv[e]=t[e]}))}}};function Nv(t){return Nv="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},Nv(t)}function Cv(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 Iv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cv(Object(n),!0).forEach((function(e){zv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dv(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,$v(r.key),r)}}function Bv(t,e){return Bv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Bv(t,e)}function Rv(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=Lv(t);if(e){var i=Lv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Nv(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 Lv(t){return Lv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lv(t)}function zv(t,e,n){return(e=$v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $v(t){var e=function(t,e){if("object"!==Nv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Nv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Nv(e)?e:String(e)}function Hv(t){return t.dataKey}var Uv=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&&Bv(t,e)}(o,L);var e,n,r,i=Rv(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=qh(s.filter((function(t){return null!=t.value})),f,Hv));var m=g.length>0;return D.createElement(_v,{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(Sd,e)}(o,Iv(Iv({},this.props),{},{payload:g})))}}])&&Dv(e.prototype,n),r&&Dv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();zv(Uv,"displayName","Tooltip"),zv(Uv,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Tv.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 Fv=Sr,qv=/\s/;var Wv=function(t){for(var e=t.length;e--&&qv.test(t.charAt(e)););return e},Vv=Wv,Xv=/^\s+/;var Gv=function(t){return t?t.slice(0,Vv(t)+1).replace(Xv,""):t},Yv=Gv,Kv=Wr,Zv=zr,Jv=/^[-+]0x[0-9a-f]+$/i,Qv=/^0b[01]+$/i,tg=/^0o[0-7]+$/i,eg=parseInt;var ng=function(t){if("number"==typeof t)return t;if(Zv(t))return NaN;if(Kv(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Kv(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Yv(t);var n=Qv.test(t);return n||tg.test(t)?eg(t.slice(2),n?2:8):Jv.test(t)?NaN:+t},rg=Wr,ig=function(){return Fv.Date.now()},og=ng,ag=Math.max,cg=Math.min;var ug=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=ig();if(d(t))return v(t);c=setTimeout(y,function(t){var n=e-(t-u);return f?cg(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=ig(),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=og(e)||0,rg(n)&&(s=!!n.leading,o=(f="maxWait"in n)?ag(og(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(ig())},g},lg=ug,sg=Wr;var fg=mr((function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return sg(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),lg(t,e,{leading:r,maxWait:e,trailing:i})}));function hg(t){return hg="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},hg(t)}function pg(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 dg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pg(Object(n),!0).forEach((function(e){yg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yg(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==hg(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==hg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hg(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vg(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 gg(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 gg(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 gg(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 mg=$((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=H(null),O=H();O.current=m,U(e,(function(){return x}));var S=vg(F({containerWidth:i.width,containerHeight:i.height}),2),j=S[0],A=S[1],P=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}}))}),[]);W((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=fg(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=V((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;Za(ca(a)||ca(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),Za(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=ca(a)?t:a,i=ca(u)?e:u;n&&n>0&&(r?i=r/n:i&&(r=i*n),h&&i>h&&(i=h)),Za(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)&&Qo.isElement(p)&&ka(p.type).endsWith("Chart");return D.Children.map(p,(function(t){return Qo.isElement(t)?z(t,dg({width:r,height:i},o?{style:dg({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:vr("recharts-responsive-container",g),style:dg(dg({},w),{},{width:a,height:u,minWidth:s,minHeight:f,maxHeight:h}),ref:x},M)})),bg=function(t){return null};function wg(t){return wg="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},wg(t)}function xg(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 Og(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xg(Object(n),!0).forEach((function(e){Sg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xg(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Sg(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==wg(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==wg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wg(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}bg.displayName="Cell";var jg={widthCache:{},cacheCount:0},Ag={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Pg="recharts_measurement_span";var Mg=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Tv.isSsr)return{width:0,height:0};var n,r=(n=Og({},e),Object.keys(n).forEach((function(t){n[t]||delete n[t]})),n),i=JSON.stringify({text:t,copyStyle:r});if(jg.widthCache[i])return jg.widthCache[i];try{var o=document.getElementById(Pg);o||((o=document.createElement("span")).setAttribute("id",Pg),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Og(Og({},Ag),r);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return jg.widthCache[i]=u,++jg.cacheCount>2e3&&(jg.cacheCount=0,jg.widthCache={}),u}catch(t){return{width:0,height:0}}};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 kg(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 _g(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 _g(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 _g(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 Tg(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"!==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)}(i,"string"),"symbol"===Eg(o)?o:String(o)),r)}var i,o}var Ng=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Cg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ig=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Dg=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Bg={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Rg=Object.keys(Bg),Lg="NaN";var zg=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||Ig.test(n)||(this.num=NaN,this.unit=""),Rg.includes(n)&&(this.num=function(t,e){return t*Bg[e]}(e,n),this.unit="px")}var e,n,r;return e=t,r=[{key:"parse",value:function(e){var n,r=kg(null!==(n=Dg.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)}}])&&Tg(e.prototype,n),r&&Tg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function $g(t){if(t.includes(Lg))return Lg;for(var e=t;e.includes("*")||e.includes("/");){var n,r=kg(null!==(n=Ng.exec(e))&&void 0!==n?n:[],4),i=r[1],o=r[2],a=r[3],c=zg.parse(null!=i?i:""),u=zg.parse(null!=a?a:""),l="*"===o?c.multiply(u):c.divide(u);if(l.isNaN())return Lg;e=e.replace(Ng,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=kg(null!==(s=Cg.exec(e))&&void 0!==s?s:[],4),h=f[1],p=f[2],d=f[3],y=zg.parse(null!=h?h:""),v=zg.parse(null!=d?d:""),g="+"===p?y.add(v):y.subtract(v);if(g.isNaN())return Lg;e=e.replace(Cg,g.toString())}return e}var Hg=/\(([^()]*)\)/;function Ug(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var n=kg(Hg.exec(e),2)[1];e=e.replace(Hg,$g(n))}return e}(e),e=$g(e)}function Fg(t){var e=function(t){try{return Ug(t)}catch(t){return Lg}}(t.slice(5,-1));return e===Lg?"":e}var qg=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Wg=["dx","dy","angle","className","breakAll"];function Vg(){return Vg=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},Vg.apply(this,arguments)}function Xg(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 Gg(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 Yg(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 Yg(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 Yg(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 Kg=/[ \f\n\r\t\v\u2028\u2029]+/,Zg=function(t){var e=t.children,n=t.breakAll,r=t.style;try{var i=[];return Fo(e)||(i=n?e.toString().split(""):e.toString().split(Kg)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:Mg(t,r).width}})),spaceWidth:n?0:Mg(" ",r).width}}catch(t){return null}},Jg=function(t){return[{words:Fo(t)?[]:t.toString().split(Kg)}]},Qg=function(t){var e=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||n)&&!Tv.isSsr){var c=Zg({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=ua(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=Zg({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=Gg(d(m-1),2),w=b[0],x=b[1],O=Gg(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):Jg(r)}return Jg(r)},tm="#808080",em=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?tm:y,g=Xg(t,qg),m=V((function(){return Qg({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=Xg(g,Wg);if(!la(n)||!la(i))return null;var A,P=n+(ua(b)?b:0),M=i+(ua(w)?w:0);switch(d){case"start":A=Fg("calc(".concat(u,")"));break;case"middle":A=Fg("calc(".concat((m.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:A=Fg("calc(".concat(m.length-1," * -").concat(a,")"))}var E=[];if(s){var k=m[0].width,_=g.width;E.push("scale(".concat((ua(_)?_/k:1)/k,")"))}return x&&E.push("rotate(".concat(x,", ").concat(P,", ").concat(M,")")),E.length&&(j.transform=E.join(" ")),D.createElement("text",Vg({},La(j,!0),{x:P,y:M,className:vr("recharts-text",O),textAnchor:h,fill:v.includes("url")?tm: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 nm(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rm(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function im(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=nm,n=(e,n)=>nm(t(e),n),r=(e,n)=>t(e)-n):(e=t===nm||t===rm?t:om,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 om(){return 0}function am(t){return null===t?NaN:+t}const cm=im(nm).right;im(am).center;var um=cm;class lm extends Map{constructor(t,e=fm){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(sm(this,t))}has(t){return super.has(sm(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 sm({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function fm(t){return null!==t&&"object"==typeof t?t.valueOf():t}function hm(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const pm=Math.sqrt(50),dm=Math.sqrt(10),ym=Math.sqrt(2);function vm(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>=pm?10:o>=dm?5:o>=ym?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?vm(t,e,2*n):[c,u,l]}function gm(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[i,o,a]=r?vm(e,t,n):vm(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 mm(t,e,n){return vm(t=+t,e=+e,n=+n)[2]}function bm(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?mm(e,t,n):mm(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function wm(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 xm(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 Om(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?hm:function(t=nm){if(t===nm)return hm;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);Om(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(Sm(t,n,e),i(t[r],o)>0&&Sm(t,n,r);a<c;){for(Sm(t,a,c),++a,--c;i(t[a],o)<0;)++a;for(;i(t[c],o)>0;)--c}0===i(t[n],o)?Sm(t,n,c):(++c,Sm(t,c,r)),c<=e&&(n=c+1),e<=c&&(r=c-1)}return t}function Sm(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function jm(t,e,n=am){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 Am(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Pm(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 Mm=Symbol("implicit");function Em(){var t=new lm,e=[],n=[],r=Mm;function i(i){let o=t.get(i);if(void 0===o){if(r!==Mm)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 lm;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 Em(e,n).unknown(r)},Am.apply(i,arguments),i}function km(){var t,e,n=Em().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 km(r(),[o,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},Am.apply(f(),arguments)}function _m(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return _m(e())},t}function Tm(){return _m(km.apply(null,arguments).paddingInner(1))}function Nm(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Cm(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Im(){}var Dm=.7,Bm=1/Dm,Rm="\\s*([+-]?\\d+)\\s*",Lm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$m=/^#([0-9a-f]{3,8})$/,Hm=new RegExp(`^rgb\\(${Rm},${Rm},${Rm}\\)$`),Um=new RegExp(`^rgb\\(${zm},${zm},${zm}\\)$`),Fm=new RegExp(`^rgba\\(${Rm},${Rm},${Rm},${Lm}\\)$`),qm=new RegExp(`^rgba\\(${zm},${zm},${zm},${Lm}\\)$`),Wm=new RegExp(`^hsl\\(${Lm},${zm},${zm}\\)$`),Vm=new RegExp(`^hsla\\(${Lm},${zm},${zm},${Lm}\\)$`),Xm={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 Gm(){return this.rgb().formatHex()}function Ym(){return this.rgb().formatRgb()}function Km(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=$m.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Zm(e):3===n?new tb(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Jm(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Jm(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=Hm.exec(t))?new tb(e[1],e[2],e[3],1):(e=Um.exec(t))?new tb(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Fm.exec(t))?Jm(e[1],e[2],e[3],e[4]):(e=qm.exec(t))?Jm(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Wm.exec(t))?ab(e[1],e[2]/100,e[3]/100,1):(e=Vm.exec(t))?ab(e[1],e[2]/100,e[3]/100,e[4]):Xm.hasOwnProperty(t)?Zm(Xm[t]):"transparent"===t?new tb(NaN,NaN,NaN,0):null}function Zm(t){return new tb(t>>16&255,t>>8&255,255&t,1)}function Jm(t,e,n,r){return r<=0&&(t=e=n=NaN),new tb(t,e,n,r)}function Qm(t,e,n,r){return 1===arguments.length?((i=t)instanceof Im||(i=Km(i)),i?new tb((i=i.rgb()).r,i.g,i.b,i.opacity):new tb):new tb(t,e,n,null==r?1:r);var i}function tb(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function eb(){return`#${ob(this.r)}${ob(this.g)}${ob(this.b)}`}function nb(){const t=rb(this.opacity);return`${1===t?"rgb(":"rgba("}${ib(this.r)}, ${ib(this.g)}, ${ib(this.b)}${1===t?")":`, ${t})`}`}function rb(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ib(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ob(t){return((t=ib(t))<16?"0":"")+t.toString(16)}function ab(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ub(t,e,n,r)}function cb(t){if(t instanceof ub)return new ub(t.h,t.s,t.l,t.opacity);if(t instanceof Im||(t=Km(t)),!t)return new ub;if(t instanceof ub)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 ub(a,c,u,t.opacity)}function ub(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function lb(t){return(t=(t||0)%360)<0?t+360:t}function sb(t){return Math.max(0,Math.min(1,t||0))}function fb(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Nm(Im,Km,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Gm,formatHex:Gm,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return cb(this).formatHsl()},formatRgb:Ym,toString:Ym}),Nm(tb,Qm,Cm(Im,{brighter(t){return t=null==t?Bm:Math.pow(Bm,t),new tb(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Dm:Math.pow(Dm,t),new tb(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new tb(ib(this.r),ib(this.g),ib(this.b),rb(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:eb,formatHex:eb,formatHex8:function(){return`#${ob(this.r)}${ob(this.g)}${ob(this.b)}${ob(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:nb,toString:nb})),Nm(ub,(function(t,e,n,r){return 1===arguments.length?cb(t):new ub(t,e,n,null==r?1:r)}),Cm(Im,{brighter(t){return t=null==t?Bm:Math.pow(Bm,t),new ub(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Dm:Math.pow(Dm,t),new ub(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 tb(fb(t>=240?t-240:t+120,i,r),fb(t,i,r),fb(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new ub(lb(this.h),sb(this.s),sb(this.l),rb(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=rb(this.opacity);return`${1===t?"hsl(":"hsla("}${lb(this.h)}, ${100*sb(this.s)}%, ${100*sb(this.l)}%${1===t?")":`, ${t})`}`}}));var hb=t=>()=>t;function pb(t){return 1==(t=+t)?db: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):hb(isNaN(e)?n:e)}}function db(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):hb(isNaN(t)?e:t)}var yb=function t(e){var n=pb(e);function r(t,e){var r=n((t=Qm(t)).r,(e=Qm(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=db(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 vb(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 gb(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]=jb(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 mb(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function bb(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function wb(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]=jb(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var xb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ob=new RegExp(xb.source,"g");function Sb(t,e){var n,r,i,o=xb.lastIndex=Ob.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(n=xb.exec(t))&&(r=Ob.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:bb(n,r)})),o=Ob.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 jb(t,e){var n,r=typeof e;return null==e||"boolean"===r?hb(e):("number"===r?bb:"string"===r?(n=Km(e))?(e=n,yb):Sb:e instanceof Km?yb:e instanceof Date?mb:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?vb:Array.isArray(e)?gb:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?wb:bb)(t,e)}function Ab(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Pb(t,e){void 0===e&&(e=t,t=jb);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 Mb(t){return+t}var Eb=[0,1];function kb(t){return t}function _b(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Tb(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=_b(i,r),o=n(a,o)):(r=_b(r,i),o=n(o,a)),function(t){return o(r(t))}}function Nb(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]=_b(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=um(t,e,1,r)-1;return o[n](i[n](e))}}function Cb(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ib(){var t,e,n,r,i,o,a=Eb,c=Eb,u=jb,l=kb;function s(){var t=Math.min(a.length,c.length);return l!==kb&&(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?Nb:Tb,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),bb)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Mb),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=Ab,s()},f.clamp=function(t){return arguments.length?(l=!!t||kb,s()):l!==kb},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 Db(){return Ib()(kb,kb)}function Bb(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 Rb(t){return(t=Bb(Math.abs(t)))?t[1]:NaN}var Lb,zb=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $b(t){if(!(e=zb.exec(t)))throw new Error("invalid format: "+t);var e;return new Hb({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 Hb(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 Ub(t,e){var n=Bb(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")}$b.prototype=Hb.prototype,Hb.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 Fb={"%":(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)=>Ub(100*t,e),r:Ub,s:function(t,e){var n=Bb(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Lb=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")+Bb(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function qb(t){return t}var Wb,Vb,Xb,Gb=Array.prototype.map,Yb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Kb(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?qb:(e=Gb.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?qb:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Gb.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=$b(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"):Fb[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=Fb[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?Yb[8+Lb/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=$b(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Rb(e)/3))),i=Math.pow(10,-r),o=Yb[8+r/3];return function(t){return n(i*t)+o}}}}function Zb(t,e,n,r){var i,o=bm(t,e,n);switch((r=$b(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(Rb(e)/3)))-Rb(Math.abs(t)))}(o,a))||(r.precision=i),Xb(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,Rb(e)-Rb(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,-Rb(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return Vb(r)}function Jb(t){var e=t.domain;return t.ticks=function(t){var n=e();return gm(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Zb(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=mm(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 Qb(){var t=Db();return t.copy=function(){return Cb(t,Qb())},Am.apply(t,arguments),Jb(t)}function tw(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 ew(t){return Math.log(t)}function nw(t){return Math.exp(t)}function rw(t){return-Math.log(-t)}function iw(t){return-Math.exp(-t)}function ow(t){return isFinite(t)?+("1e"+t):t<0?0:t}function aw(t){return(e,n)=>-t(-e,n)}function cw(t){const e=t(ew,nw),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?ow:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),n()[0]<0?(r=aw(r),i=aw(i),t(rw,iw)):t(ew,nw),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=gm(a,c,p))}else d=gm(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=$b(n)).precision||(n.trim=!0),n=Vb(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(tw(n(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),e}function uw(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function lw(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function sw(t){var e=1,n=t(uw(e),lw(e));return n.constant=function(n){return arguments.length?t(uw(e=+n),lw(e)):e},Jb(n)}function fw(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function hw(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function pw(t){return t<0?-t*t:t*t}function dw(t){var e=t(kb,kb),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(kb,kb):.5===n?t(hw,pw):t(fw(n),fw(1/n)):n},Jb(e)}function yw(){var t=dw(Ib());return t.copy=function(){return Cb(t,yw()).exponent(t.exponent())},Am.apply(t,arguments),t}function vw(t){return Math.sign(t)*t*t}Wb=Kb({thousands:",",grouping:[3],currency:["$",""]}),Vb=Wb.format,Xb=Wb.formatPrefix;const gw=new Date,mw=new Date;function bw(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=>bw((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)=>(gw.setTime(+e),mw.setTime(+r),t(gw),t(mw),Math.floor(n(gw,mw))),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 ww=bw((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));ww.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?bw((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):ww:null),ww.range;const xw=1e3,Ow=6e4,Sw=36e5,jw=864e5,Aw=6048e5,Pw=2592e6,Mw=31536e6,Ew=bw((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*xw)}),((t,e)=>(e-t)/xw),(t=>t.getUTCSeconds()));Ew.range;const kw=bw((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*xw)}),((t,e)=>{t.setTime(+t+e*Ow)}),((t,e)=>(e-t)/Ow),(t=>t.getMinutes()));kw.range;const _w=bw((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Ow)}),((t,e)=>(e-t)/Ow),(t=>t.getUTCMinutes()));_w.range;const Tw=bw((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*xw-t.getMinutes()*Ow)}),((t,e)=>{t.setTime(+t+e*Sw)}),((t,e)=>(e-t)/Sw),(t=>t.getHours()));Tw.range;const Nw=bw((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*Sw)}),((t,e)=>(e-t)/Sw),(t=>t.getUTCHours()));Nw.range;const Cw=bw((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ow)/jw),(t=>t.getDate()-1));Cw.range;const Iw=bw((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/jw),(t=>t.getUTCDate()-1));Iw.range;const Dw=bw((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/jw),(t=>Math.floor(t/jw)));function Bw(t){return bw((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())*Ow)/Aw))}Dw.range;const Rw=Bw(0),Lw=Bw(1),zw=Bw(2),$w=Bw(3),Hw=Bw(4),Uw=Bw(5),Fw=Bw(6);function qw(t){return bw((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)/Aw))}Rw.range,Lw.range,zw.range,$w.range,Hw.range,Uw.range,Fw.range;const Ww=qw(0),Vw=qw(1),Xw=qw(2),Gw=qw(3),Yw=qw(4),Kw=qw(5),Zw=qw(6);Ww.range,Vw.range,Xw.range,Gw.range,Yw.range,Kw.range,Zw.range;const Jw=bw((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()));Jw.range;const Qw=bw((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()));Qw.range;const tx=bw((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()));tx.every=t=>isFinite(t=Math.floor(t))&&t>0?bw((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,tx.range;const ex=bw((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 nx(t,e,n,r,i,o){const a=[[Ew,1,xw],[Ew,5,5e3],[Ew,15,15e3],[Ew,30,3e4],[o,1,Ow],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,Sw],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,jw],[r,2,1728e5],[n,1,Aw],[e,1,Pw],[e,3,7776e6],[t,1,Mw]];function c(e,n,r){const i=Math.abs(n-e)/r,o=im((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(bm(e/Mw,n/Mw,r));if(0===o)return ww.every(Math.max(bm(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]}ex.every=t=>isFinite(t=Math.floor(t))&&t>0?bw((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,ex.range;const[rx,ix]=nx(ex,Qw,Ww,Dw,Nw,_w),[ox,ax]=nx(tx,Jw,Rw,Cw,Tw,kw);function cx(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 ux(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 lx(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var sx,fx,hx,px={"-":"",_:" ",0:"0"},dx=/^\s*\d+/,yx=/^%/,vx=/[\\^$*+?|[\]().{}]/g;function gx(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 mx(t){return t.replace(vx,"\\$&")}function bx(t){return new RegExp("^(?:"+t.map(mx).join("|")+")","i")}function wx(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function xx(t,e,n){var r=dx.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Ox(t,e,n){var r=dx.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Sx(t,e,n){var r=dx.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function jx(t,e,n){var r=dx.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ax(t,e,n){var r=dx.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Px(t,e,n){var r=dx.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Mx(t,e,n){var r=dx.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ex(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 kx(t,e,n){var r=dx.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function _x(t,e,n){var r=dx.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Tx(t,e,n){var r=dx.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Nx(t,e,n){var r=dx.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Cx(t,e,n){var r=dx.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ix(t,e,n){var r=dx.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Dx(t,e,n){var r=dx.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Bx(t,e,n){var r=dx.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Rx(t,e,n){var r=dx.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Lx(t,e,n){var r=yx.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function zx(t,e,n){var r=dx.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function $x(t,e,n){var r=dx.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Hx(t,e){return gx(t.getDate(),e,2)}function Ux(t,e){return gx(t.getHours(),e,2)}function Fx(t,e){return gx(t.getHours()%12||12,e,2)}function qx(t,e){return gx(1+Cw.count(tx(t),t),e,3)}function Wx(t,e){return gx(t.getMilliseconds(),e,3)}function Vx(t,e){return Wx(t,e)+"000"}function Xx(t,e){return gx(t.getMonth()+1,e,2)}function Gx(t,e){return gx(t.getMinutes(),e,2)}function Yx(t,e){return gx(t.getSeconds(),e,2)}function Kx(t){var e=t.getDay();return 0===e?7:e}function Zx(t,e){return gx(Rw.count(tx(t)-1,t),e,2)}function Jx(t){var e=t.getDay();return e>=4||0===e?Hw(t):Hw.ceil(t)}function Qx(t,e){return t=Jx(t),gx(Hw.count(tx(t),t)+(4===tx(t).getDay()),e,2)}function tO(t){return t.getDay()}function eO(t,e){return gx(Lw.count(tx(t)-1,t),e,2)}function nO(t,e){return gx(t.getFullYear()%100,e,2)}function rO(t,e){return gx((t=Jx(t)).getFullYear()%100,e,2)}function iO(t,e){return gx(t.getFullYear()%1e4,e,4)}function oO(t,e){var n=t.getDay();return gx((t=n>=4||0===n?Hw(t):Hw.ceil(t)).getFullYear()%1e4,e,4)}function aO(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+gx(e/60|0,"0",2)+gx(e%60,"0",2)}function cO(t,e){return gx(t.getUTCDate(),e,2)}function uO(t,e){return gx(t.getUTCHours(),e,2)}function lO(t,e){return gx(t.getUTCHours()%12||12,e,2)}function sO(t,e){return gx(1+Iw.count(ex(t),t),e,3)}function fO(t,e){return gx(t.getUTCMilliseconds(),e,3)}function hO(t,e){return fO(t,e)+"000"}function pO(t,e){return gx(t.getUTCMonth()+1,e,2)}function dO(t,e){return gx(t.getUTCMinutes(),e,2)}function yO(t,e){return gx(t.getUTCSeconds(),e,2)}function vO(t){var e=t.getUTCDay();return 0===e?7:e}function gO(t,e){return gx(Ww.count(ex(t)-1,t),e,2)}function mO(t){var e=t.getUTCDay();return e>=4||0===e?Yw(t):Yw.ceil(t)}function bO(t,e){return t=mO(t),gx(Yw.count(ex(t),t)+(4===ex(t).getUTCDay()),e,2)}function wO(t){return t.getUTCDay()}function xO(t,e){return gx(Vw.count(ex(t)-1,t),e,2)}function OO(t,e){return gx(t.getUTCFullYear()%100,e,2)}function SO(t,e){return gx((t=mO(t)).getUTCFullYear()%100,e,2)}function jO(t,e){return gx(t.getUTCFullYear()%1e4,e,4)}function AO(t,e){var n=t.getUTCDay();return gx((t=n>=4||0===n?Yw(t):Yw.ceil(t)).getUTCFullYear()%1e4,e,4)}function PO(){return"+0000"}function MO(){return"%"}function EO(t){return+t}function kO(t){return Math.floor(+t/1e3)}function _O(t){return new Date(t)}function TO(t){return t instanceof Date?+t:+new Date(+t)}function NO(t,e,n,r,i,o,a,c,u,l){var s=Db(),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,TO)):h().map(_O)},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(tw(n,t)):s},s.copy=function(){return Cb(s,NO(t,e,n,r,i,o,a,c,u,l))},s}function CO(){var t,e,n,r,i,o=0,a=1,c=kb,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(jb),l.rangeRound=s(Ab),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 IO(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function DO(){var t=dw(CO());return t.copy=function(){return IO(t,DO()).exponent(t.exponent())},Pm.apply(t,arguments)}function BO(){var t,e,n,r,i,o,a,c=0,u=.5,l=1,s=1,f=kb,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=Pb(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(jb),p.rangeRound=d(Ab),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 RO(){var t=dw(BO());return t.copy=function(){return IO(t,RO()).exponent(t.exponent())},Pm.apply(t,arguments)}!function(t){sx=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=bx(i),s=wx(i),f=bx(o),h=wx(o),p=bx(a),d=wx(a),y=bx(c),v=wx(c),g=bx(u),m=wx(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:Hx,e:Hx,f:Vx,g:rO,G:oO,H:Ux,I:Fx,j:qx,L:Wx,m:Xx,M:Gx,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:EO,s:kO,S:Yx,u:Kx,U:Zx,V:Qx,w:tO,W:eO,x:null,X:null,y:nO,Y:iO,Z:aO,"%":MO},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:cO,e:cO,f:hO,g:SO,G:AO,H:uO,I:lO,j:sO,L:fO,m:pO,M:dO,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:EO,s:kO,S:yO,u:vO,U:gO,V:bO,w:wO,W:xO,x:null,X:null,y:OO,Y:jO,Z:PO,"%":MO},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:Tx,e:Tx,f:Rx,g:Mx,G:Px,H:Cx,I:Cx,j:Nx,L:Bx,m:_x,M:Ix,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:kx,Q:zx,s:$x,S:Dx,u:Ox,U:Sx,V:jx,w:xx,W:Ax,x:function(t,e,r){return j(t,n,e,r)},X:function(t,e,n){return j(t,r,e,n)},y:Mx,Y:Px,Z:Ex,"%":Lx};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=px[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=lx(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=ux(lx(o.y,0,1))).getUTCDay(),r=i>4||0===i?Vw.ceil(r):Vw(r),r=Iw.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=cx(lx(o.y,0,1))).getDay(),r=i>4||0===i?Lw.ceil(r):Lw(r),r=Cw.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?ux(lx(o.y,0,1)).getUTCDay():cx(lx(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,ux(o)):cx(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 px?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),fx=sx.format,sx.parse,hx=sx.utcFormat,sx.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 LO=Object.freeze({__proto__:null,scaleBand:km,scaleDiverging:function t(){var e=Jb(BO()(kb));return e.copy=function(){return IO(e,t())},Pm.apply(e,arguments)},scaleDivergingLog:function t(){var e=cw(BO()).domain([.1,1,10]);return e.copy=function(){return IO(e,t()).base(e.base())},Pm.apply(e,arguments)},scaleDivergingPow:RO,scaleDivergingSqrt:function(){return RO.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=sw(BO());return e.copy=function(){return IO(e,t()).constant(e.constant())},Pm.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,Mb),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,Mb):[0,1],Jb(r)},scaleImplicit:Mm,scaleLinear:Qb,scaleLog:function t(){const e=cw(Ib()).domain([1,10]);return e.copy=()=>Cb(e,t()).base(e.base()),Am.apply(e,arguments),e},scaleOrdinal:Em,scalePoint:Tm,scalePow:yw,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]=jm(n,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:r[um(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(nm),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)},Am.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[um(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)},Am.apply(Jb(c),arguments)},scaleRadial:function t(){var e,n=Db(),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(vw(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,Mb)).map(vw)),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)},Am.apply(o,arguments),Jb(o)},scaleSequential:function t(){var e=Jb(CO()(kb));return e.copy=function(){return IO(e,t())},Pm.apply(e,arguments)},scaleSequentialLog:function t(){var e=cw(CO()).domain([1,10]);return e.copy=function(){return IO(e,t()).base(e.base())},Pm.apply(e,arguments)},scaleSequentialPow:DO,scaleSequentialQuantile:function t(){var e=[],n=kb;function r(t){if(null!=t&&!isNaN(t=+t))return n((um(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(nm),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 xm(t);if(e>=1)return wm(t);var r,i=(r-1)*e,o=Math.floor(i),a=wm(Om(t,o).subarray(0,o+1));return a+(xm(t.subarray(o+1))-a)*(i-o)}}(e,r/t)))},r.copy=function(){return t(n).domain(e)},Pm.apply(r,arguments)},scaleSequentialSqrt:function(){return DO.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=sw(CO());return e.copy=function(){return IO(e,t()).constant(e.constant())},Pm.apply(e,arguments)},scaleSqrt:function(){return yw.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=sw(Ib());return e.copy=function(){return Cb(e,t()).constant(e.constant())},Am.apply(e,arguments)},scaleThreshold:function t(){var e,n=[.5],r=[0,1],i=1;function o(t){return null!=t&&t<=t?r[um(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)},Am.apply(o,arguments)},scaleTime:function(){return Am.apply(NO(ox,ax,tx,Jw,Rw,Cw,Tw,kw,Ew,fx).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Am.apply(NO(rx,ix,ex,Qw,Ww,Iw,Nw,_w,Ew,hx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Zb}),zO=zr;var $O=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&&!zO(a):n(a,c)))var c=a,u=o}return u};var HO=$O,UO=function(t,e){return t>e},FO=ch;var qO=function(t){return t&&t.length?HO(t,FO,UO):void 0},WO=mr(qO);var VO=$O,XO=function(t,e){return t<e},GO=ch;var YO=function(t){return t&&t.length?VO(t,GO,XO):void 0},KO=mr(YO),ZO=xo,JO=wh,QO=bp,tS=br;var eS=sp,nS=function(t,e){return(tS(t)?ZO:QO)(t,JO(e))};var rS=mr((function(t,e){return eS(nS(t,e),1)})),iS=Ef;var oS,aS=mr((function(t,e){return iS(t,e)})),cS=1e9,uS=!0,lS="[DecimalError] ",sS=lS+"Invalid argument: ",fS=lS+"Exponent out of range: ",hS=Math.floor,pS=Math.pow,dS=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,yS=1e7,vS=7,gS=9007199254740991,mS=hS(gS/vS),bS={};function wS(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)),uS?_S(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/vS))>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)/yS|0,u[o]%=yS;for(n&&(u.unshift(n),++i),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=i,uS?_S(e,f):e}function xS(t,e,n){if(t!==~~t||t<e||t>n)throw Error(sS+t)}function OS(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=vS-r.length)&&(o+=MS(n)),o+=r;a=t[e],(n=vS-(r=a+"").length)&&(o+=MS(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}bS.absoluteValue=bS.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},bS.comparedTo=bS.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},bS.decimalPlaces=bS.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*vS;if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},bS.dividedBy=bS.div=function(t){return SS(this,new this.constructor(t))},bS.dividedToIntegerBy=bS.idiv=function(t){var e=this.constructor;return _S(SS(this,new e(t),0,1),e.precision)},bS.equals=bS.eq=function(t){return!this.cmp(t)},bS.exponent=function(){return AS(this)},bS.greaterThan=bS.gt=function(t){return this.cmp(t)>0},bS.greaterThanOrEqualTo=bS.gte=function(t){return this.cmp(t)>=0},bS.isInteger=bS.isint=function(){return this.e>this.d.length-2},bS.isNegative=bS.isneg=function(){return this.s<0},bS.isPositive=bS.ispos=function(){return this.s>0},bS.isZero=function(){return 0===this.s},bS.lessThan=bS.lt=function(t){return this.cmp(t)<0},bS.lessThanOrEqualTo=bS.lte=function(t){return this.cmp(t)<1},bS.logarithm=bS.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(oS))throw Error(lS+"NaN");if(n.s<1)throw Error(lS+(n.s?"NaN":"-Infinity"));return n.eq(oS)?new r(0):(uS=!1,e=SS(ES(n,o),ES(t,o),o),uS=!0,_S(e,i))},bS.minus=bS.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?TS(e,t):wS(e,(t.s=-t.s,t))},bS.modulo=bS.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(lS+"NaN");return n.s?(uS=!1,e=SS(n,t,0,1).times(t),uS=!0,n.minus(e)):_S(new r(n),i)},bS.naturalExponential=bS.exp=function(){return jS(this)},bS.naturalLogarithm=bS.ln=function(){return ES(this)},bS.negated=bS.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},bS.plus=bS.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?wS(e,t):TS(e,(t.s=-t.s,t))},bS.precision=bS.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(sS+t);if(e=AS(i)+1,n=(r=i.d.length-1)*vS+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},bS.squareRoot=bS.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(lS+"NaN")}for(t=AS(c),uS=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=OS(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=hS((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(SS(c,o,a+2)).times(.5),OS(o.d).slice(0,a)===(e=OS(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(_S(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=e)break;a+=4}return uS=!0,_S(r,n)},bS.times=bS.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%yS|0,e=c/yS|0;o[i]=(o[i]+e)%yS|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,uS?_S(t,f.precision):t},bS.toDecimalPlaces=bS.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(xS(t,0,cS),void 0===e?e=r.rounding:xS(e,0,8),_S(n,t+AS(n)+1,e))},bS.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=NS(r,!0):(xS(t,0,cS),void 0===e?e=i.rounding:xS(e,0,8),n=NS(r=_S(new i(r),t+1,e),!0,t+1)),n},bS.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?NS(i):(xS(t,0,cS),void 0===e?e=o.rounding:xS(e,0,8),n=NS((r=_S(new o(i),t+AS(i)+1,e)).abs(),!1,t+AS(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},bS.toInteger=bS.toint=function(){var t=this,e=t.constructor;return _S(new e(t),AS(t)+1,e.rounding)},bS.toNumber=function(){return+this},bS.toPower=bS.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(oS);if(!(c=new u(c)).s){if(t.s<1)throw Error(lS+"Infinity");return c}if(c.eq(oS))return c;if(r=u.precision,t.eq(oS))return _S(c,r);if(a=(e=t.e)>=(n=t.d.length-1),o=c.s,a){if((n=l<0?-l:l)<=gS){for(i=new u(oS),e=Math.ceil(r/vS+4),uS=!1;n%2&&CS((i=i.times(c)).d,e),0!==(n=hS(n/2));)CS((c=c.times(c)).d,e);return uS=!0,t.s<0?new u(oS).div(i):_S(i,r)}}else if(o<0)throw Error(lS+"NaN");return o=o<0&&1&t.d[Math.max(e,n)]?-1:1,c.s=1,uS=!1,i=t.times(ES(c,r+12)),uS=!0,(i=jS(i)).s=o,i},bS.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?r=NS(i,(n=AS(i))<=o.toExpNeg||n>=o.toExpPos):(xS(t,1,cS),void 0===e?e=o.rounding:xS(e,0,8),r=NS(i=_S(new o(i),t,e),t<=(n=AS(i))||n<=o.toExpNeg,t)),r},bS.toSignificantDigits=bS.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(xS(t,1,cS),void 0===e?e=n.rounding:xS(e,0,8)),_S(new n(this),t,e)},bS.toString=bS.valueOf=bS.val=bS.toJSON=bS[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=AS(t),n=t.constructor;return NS(t,e<=n.toExpNeg||e>=n.toExpPos)};var SS=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%yS|0,r=n/yS|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*yS+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(lS+"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+(AS(r)-AS(i))+1:o)<0)return new A(0);if(m=m/vS+2|0,l=0,1==S)for(s=0,E=E[0],m++;(l<x||s)&&m--;l++)b=s*yS+(M[l]||0),d[l]=b/E|0,s=b%E|0;else{for((s=yS/(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]>=yS/2&&++O;do{s=0,(c=e(E,y,S,v))<0?(g=y[0],S!=v&&(g=g*yS+(y[1]||0)),(s=g/O|0)>1?(s>=yS&&(s=yS-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,_S(p,a?o+AS(p)+1:o)}}();function jS(t,e){var n,r,i,o,a,c=0,u=0,l=t.constructor,s=l.precision;if(AS(t)>16)throw Error(fS+AS(t));if(!t.s)return new l(oS);for(null==e?(uS=!1,a=s):a=e,o=new l(.03125);t.abs().gte(.1);)t=t.times(o),u+=5;for(a+=Math.log(pS(2,u))/Math.LN10*2+5|0,n=r=i=new l(oS),l.precision=a;;){if(r=_S(r.times(t),a),n=n.times(++c),OS((o=i.plus(SS(r,n,a))).d).slice(0,a)===OS(i.d).slice(0,a)){for(;u--;)i=_S(i.times(i),a);return l.precision=s,null==e?(uS=!0,_S(i,s)):i}i=o}}function AS(t){for(var e=t.e*vS,n=t.d[0];n>=10;n/=10)e++;return e}function PS(t,e,n){if(e>t.LN10.sd())throw uS=!0,n&&(t.precision=n),Error(lS+"LN10 precision limit exceeded");return _S(new t(t.LN10),e)}function MS(t){for(var e="";t--;)e+="0";return e}function ES(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(lS+(h.s?"NaN":"-Infinity"));if(h.eq(oS))return new d(0);if(null==e?(uS=!1,l=y):l=e,h.eq(10))return null==e&&(uS=!0),PS(d,l);if(l+=10,d.precision=l,r=(n=OS(p)).charAt(0),o=AS(h),!(Math.abs(o)<15e14))return u=PS(d,l+2,y).times(o+""),h=ES(new d(r+"."+n.slice(1)),l-10).plus(u),d.precision=y,null==e?(uS=!0,_S(h,y)):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=OS((h=h.times(t)).d)).charAt(0),f++;for(o=AS(h),r>1?(h=new d("0."+n),o++):h=new d(r+"."+n.slice(1)),c=a=h=SS(h.minus(oS),h.plus(oS),l),s=_S(h.times(h),l),i=3;;){if(a=_S(a.times(s),l),OS((u=c.plus(SS(a,new d(i),l))).d).slice(0,l)===OS(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(PS(d,l+2,y).times(o+""))),c=SS(c,new d(f),l),d.precision=y,null==e?(uS=!0,_S(c,y)):c;c=u,i+=2}}function kS(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=hS(n/vS),t.d=[],r=(n+1)%vS,n<0&&(r+=vS),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=vS;r<i;)t.d.push(+e.slice(r,r+=vS));e=e.slice(r),r=vS-e.length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),uS&&(t.e>mS||t.e<-mS))throw Error(fS+n)}else t.s=0,t.e=0,t.d=[0];return t}function _S(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+=vS,i=e,l=f[s=0];else{if((s=Math.ceil((r+1)/vS))>=(o=f.length))return t;for(l=o=f[s],a=1;o>=10;o/=10)a++;i=(r%=vS)-vS+a}if(void 0!==n&&(c=l/(o=pS(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/pS(10,a-i):0:f[s-1])%10&1||n==(t.s<0?8:7))),e<1||!f[0])return u?(o=AS(t),f.length=1,e=e-o-1,f[0]=pS(10,(vS-e%vS)%vS),t.e=hS(-e/vS)||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=pS(10,vS-r),f[s]=i>0?(l/pS(10,a-i)%pS(10,i)|0)*o:0),u)for(;;){if(0==s){(f[0]+=o)==yS&&(f[0]=1,++t.e);break}if(f[s]+=o,f[s]!=yS)break;f[s--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(uS&&(t.e>mS||t.e<-mS))throw Error(fS+AS(t));return t}function TS(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),uS?_S(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/vS),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]=yS-1;--u[o],u[i]+=yS}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,uS?_S(e,p):e):new h(0)}function NS(t,e,n){var r,i=AS(t),o=OS(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+MS(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+MS(-i-1)+o,n&&(r=n-a)>0&&(o+=MS(r))):i>=a?(o+=MS(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+MS(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=MS(r))),t.s<0?"-"+o:o}function CS(t,e){if(t.length>e)return t.length=e,!0}function IS(t){if(!t||"object"!=typeof t)throw Error(lS+"Object expected");var e,n,r,i=["precision",1,cS,"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(!(hS(r)===r&&r>=i[e+1]&&r<=i[e+2]))throw Error(sS+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(sS+n+": "+r);this[n]=new this(r)}return this}var DS=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(sS+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])):kS(e,t.toString())}if("string"!=typeof t)throw Error(sS+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!dS.test(t))throw Error(sS+t);kS(e,t)}if(o.prototype=bS,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=IS,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"});oS=new DS(1);var BS=DS;function RS(t){return function(t){if(Array.isArray(t))return LS(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 LS(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 LS(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 LS(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 zS=function(t){return t},$S={"@@functional/placeholder":!0},HS=function(t){return t===$S},US=function(t){return function e(){return 0===arguments.length||1===arguments.length&&HS(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},FS=function t(e,n){return 1===e?n:US((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!==$S})).length;return a>=e?n.apply(void 0,i):t(e-a,US((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 HS(t)?e.shift():t}));return n.apply(void 0,RS(o).concat(e))})))}))},qS=function(t){return FS(t.length,t)},WS=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n},VS=qS((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),XS=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return zS;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))}},GS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},YS=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 KS=qS((function(t,e,n){var r=+t;return r+n*(+e-r)})),ZS=qS((function(t,e,n){var r=e-+t;return(n-t)/(r=r||1/0)})),JS=qS((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))})),QS={rangeStep:function(t,e,n){for(var r=new BS(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 BS(t).abs().log(10).toNumber())+1},interpolateNumber:KS,uninterpolateNumber:ZS,uninterpolateTruncation:JS};function tj(t){return function(t){if(Array.isArray(t))return rj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||nj(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 ej(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)||nj(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 nj(t,e){if(t){if("string"==typeof t)return rj(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)?rj(t,e):void 0}}function rj(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 ij(t){var e=ej(t,2),n=e[0],r=e[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function oj(t,e,n){if(t.lte(0))return new BS(0);var r=QS.getDigitCount(t.toNumber()),i=new BS(10).pow(r),o=t.div(i),a=1!==r?.05:.1,c=new BS(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?c:new BS(Math.ceil(c))}function aj(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 BS(0),tickMin:new BS(0),tickMax:new BS(0)};var o,a=oj(new BS(e).sub(t).div(n-1),r,i);o=t<=0&&e>=0?new BS(0):(o=new BS(t).add(e).div(2)).sub(new BS(o).mod(a));var c=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new BS(e).sub(o).div(a).toNumber()),l=c+u+1;return l>n?aj(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 BS(c).mul(a)),tickMax:o.add(new BS(u).mul(a))})}var cj=YS((function(t){var e=ej(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=ej(ij([n,r]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(tj(WS(0,i-1).map((function(){return 1/0})))):[].concat(tj(WS(0,i-1).map((function(){return-1/0}))),[l]);return n>r?GS(s):s}if(u===l)return function(t,e,n){var r=1,i=new BS(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new BS(10).pow(QS.getDigitCount(t)-1),i=new BS(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new BS(Math.floor(t)))}else 0===t?i=new BS(Math.floor((e-1)/2)):n||(i=new BS(Math.floor(t)));var a=Math.floor((e-1)/2);return XS(VS((function(t){return i.add(new BS(t-a).mul(r)).toNumber()})),WS)(0,e)}(u,i,o);var f=aj(u,l,a,o),h=f.step,p=f.tickMin,d=f.tickMax,y=QS.rangeStep(p,d.add(new BS(.1).mul(h)),h);return n>r?GS(y):y})),uj=YS((function(t,e){var n=ej(t,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=ej(ij([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=oj(new BS(u).sub(c).div(l-1),o,0),f=[].concat(tj(QS.rangeStep(new BS(c),new BS(u).sub(new BS(.99).mul(s)),s)),[u]);return r>i?GS(f):f})),lj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function sj(){return sj=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},sj.apply(this,arguments)}function fj(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 hj(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 hj(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 hj(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,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 dj(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=pj(t,lj),s=La(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=fj(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(Ya,sj({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",sj({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return D.createElement(Ya,{className:"recharts-errorBars"},f)}function yj(t){return yj="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},yj(t)}function vj(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 gj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vj(Object(n),!0).forEach((function(e){mj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mj(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==yj(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==yj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===yj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}dj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},dj.displayName="ErrorBar";var bj=function(t){var e,n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Ia(n,ip);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:Ej(e),value:i||r,payload:e.props}})),gj(gj(gj({},a.props),ip.getWithHeight(a,i)),{},{payload:e,item:a})):null};function wj(t){return wj="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},wj(t)}function xj(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 Oj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xj(Object(n),!0).forEach((function(e){Sj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Sj(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==wj(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==wj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jj(t){return function(t){if(Array.isArray(t))return Aj(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 Aj(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 Aj(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 Aj(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,e,n){return Fo(t)||Fo(e)?n:la(e)?Uo(t,e,n):Zr(e)?e(t):n}function Mj(t,e,n,r){var i=rS(t,(function(t){return Pj(t,e)}));if("number"===n){var o=i.filter((function(t){return ua(t)||parseFloat(t)}));return o.length?[KO(o),WO(o)]:[1/0,-1/0]}return(r?i.filter((function(t){return!Fo(t)})):i).map((function(t){return la(t)||t instanceof Date?t:""}))}var Ej=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},kj=function(t,e,n,r,i){var o=Ca(e.props.children,dj).filter((function(t){return function(t,e,n){return!!Fo(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=Pj(e,n,0),i=Array.isArray(r)?[KO(r),WO(r)]:[r,r],o=a.reduce((function(t,n){var r=Pj(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},_j=function(t,e,n,r,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===n&&o&&kj(t,e,o,r)||Mj(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}),[])},Tj=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Nj=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},Cj=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*aa(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!oa(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}}))},Ij=new WeakMap,Dj=function(t,e){if("function"!=typeof e)return t;Ij.has(t)||Ij.set(t,new WeakMap);var n=Ij.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},Bj=1e-4,Rj={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=oa(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}Mu(t,e)}},none:Mu,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}Mu(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,Mu(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=oa(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)}}},Lj=function(t,e,n){var r=e.map((function(t){return t.props.dataKey})),i=Rj[n],o=function(){var t=Mc([]),e=Eu,n=Mu,r=ku;function i(i){var o,a,c=Array.from(t.apply(this,arguments),_u),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=$c(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:Mc(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Mc(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Eu:"function"==typeof t?t:Mc(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Mu:t,i):n},i}().keys(r).value((function(t,e){return+Pj(t,e,0)})).order(Eu).offset(i);return o(t)},zj=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&&!Fo(i[e.dataKey])){var c=ya(n,"value",i[e.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=Pj(i,Fo(a)?e.dataKey:a);return Fo(u)?null:e.scale(u)},$j=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=Pj(o,e.dataKey,e.domain[a]);return Fo(c)?null:e.scale(c)-i/2+r},Hj=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[KO(e.concat([t[0]]).filter(ua)),WO(e.concat([t[1]]).filter(ua))]}),[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}))},Uj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Fj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qj=function(t,e,n){if(Zr(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if(ua(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(Uj.test(t[0])){var i=+Uj.exec(t[0])[1];r[0]=e[0]-i}else Zr(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if(ua(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(Fj.test(t[1])){var o=+Fj.exec(t[1])[1];r[1]=e[1]+o}else Zr(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},Wj=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=rd(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},Vj=function(t,e,n){return t&&t.length?aS(t,Uo(n,"type.defaultProps.domain"))?e:t:e},Xj=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 Oj(Oj({},La(t)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:Ej(t),value:Pj(e,r),type:c,payload:e,chartType:u})};function Gj(t){return Gj="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},Gj(t)}function Yj(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?Yj(Object(n),!0).forEach((function(e){Zj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zj(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Gj(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Gj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Gj(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jj=Math.PI/180,Qj=function(t){return 180*t/Math.PI},tA=function(t,e,n,r){return{x:t+Math.cos(-Jj*r)*n,y:e+Math.sin(-Jj*r)*n}},eA=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:Qj(u),angleInRadian:u}},nA=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)},rA=function(t,e){var n=t.x,r=t.y,i=eA({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?Kj(Kj({},e),{},{radius:o,angle:nA(p,e)}):null};function iA(t){return iA="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},iA(t)}var oA=["offset"];function aA(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 uA(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 lA(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 sA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lA(Object(n),!0).forEach((function(e){fA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==iA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==iA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===iA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hA(){return hA=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},hA.apply(this,arguments)}var pA=function(t){var e=t.value,n=t.formatter,r=Fo(t.children)?e:t.children;return Zr(n)?n(r):r},dA=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 aa(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=tA(s,f,g,r),x=tA(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=Fo(t.id)?fa("recharts-radial-line-"):t.id;return D.createElement("text",hA({},n,{dominantBaseline:"central",className:vr("recharts-radial-bar-label",u)}),D.createElement("defs",null,D.createElement("path",{id:S,d:O})),D.createElement("textPath",{xlinkHref:"#".concat(S)},e))},yA=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=tA(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=tA(o,a,(c+u)/2,l);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}},vA=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 sA(sA({},{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 sA(sA({},{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 sA(sA({},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 sA(sA({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:u,height:l}:{};return"insideLeft"===i?sA({x:a+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===i?sA({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?sA({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===i?sA({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:h},w):"insideTopLeft"===i?sA({x:a+y,y:c+f,textAnchor:g,verticalAnchor:p},w):"insideTopRight"===i?sA({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===i?sA({x:a+y,y:c+l-f,textAnchor:g,verticalAnchor:h},w):"insideBottomRight"===i?sA({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:h},w):Vr(i)&&(ua(i.x)||ca(i.x))&&(ua(i.y)||ca(i.y))?sA({x:a+ha(i.x,u),y:c+ha(i.y,l),textAnchor:"end",verticalAnchor:"end"},w):sA({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},gA=function(t){return"cx"in t&&ua(t.cx)};function mA(t){var e,n=t.offset,r=sA({offset:void 0===n?5:n},uA(t,oA)),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||Fo(a)&&Fo(c)&&!B(u)&&!Zr(u))return null;if(B(u))return z(u,r);if(Zr(u)){if(B(e=X(u,r)))return e}else e=pA(r);var h=gA(i),p=La(r,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return dA(r,e,p);var d=h?yA(r):vA(r);return D.createElement(em,hA({className:vr("recharts-label",s)},p,d,{breakAll:f}),e)}mA.displayName="Label";var bA=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(ua(d)&&ua(y)){if(ua(s)&&ua(f))return{x:s,y:f,width:d,height:y};if(ua(h)&&ua(p))return{x:h,y:p,width:d,height:y}}return ua(s)&&ua(f)?{x:s,y:f,width:0,height:0}:ua(e)&&ua(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:{}};mA.parseViewBox=bA,mA.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=bA(t),o=Ca(r,mA).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?D.createElement(mA,{key:"label-implicit",viewBox:e}):la(t)?D.createElement(mA,{key:"label-implicit",viewBox:e,value:t}):B(t)?t.type===mA?z(t,{key:"label-implicit",viewBox:e}):D.createElement(mA,{key:"label-implicit",content:t,viewBox:e}):Zr(t)?D.createElement(mA,{key:"label-implicit",content:t,viewBox:e}):Vr(t)?D.createElement(mA,hA({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat(aA(o))};var wA=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},xA=mr(wA);function OA(t){return OA="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},OA(t)}var SA=["valueAccessor"],jA=["data","dataKey","clockWise","id","textBreakAll"];function AA(t){return function(t){if(Array.isArray(t))return PA(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 PA(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 PA(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 PA(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 MA(){return MA=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},MA.apply(this,arguments)}function EA(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 kA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?EA(Object(n),!0).forEach((function(e){_A(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _A(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==OA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==OA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===OA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}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}var NA=function(t){return Array.isArray(t.value)?xA(t.value):t.value};function CA(t){var e=t.valueAccessor,n=void 0===e?NA:e,r=TA(t,SA),i=r.data,o=r.dataKey,a=r.clockWise,c=r.id,u=r.textBreakAll,l=TA(r,jA);return i&&i.length?D.createElement(Ya,{className:"recharts-label-list"},i.map((function(t,e){var r=Fo(o)?n(t,e):Pj(t&&t.payload,o),i=Fo(c)?{}:{id:"".concat(c,"-").concat(e)};return D.createElement(mA,MA({},La(t,!0),l,i,{parentViewBox:t.parentViewBox,value:r,textBreakAll:u,viewBox:mA.parseViewBox(Fo(a)?t:kA(kA({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}function IA(t){return IA="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},IA(t)}function DA(){return DA=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},DA.apply(this,arguments)}function BA(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?BA(Object(n),!0).forEach((function(e){LA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):BA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function LA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==IA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==IA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===IA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}CA.displayName="LabelList",CA.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=Ca(t.children,CA).map((function(t,n){return z(t,{data:e,key:"labelList-".concat(n)})}));return n?[function(t,e){return t?!0===t?D.createElement(CA,{key:"labelList-implicit",data:e}):D.isValidElement(t)||Zr(t)?D.createElement(CA,{key:"labelList-implicit",data:e,content:t}):Vr(t)?D.createElement(CA,MA({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(AA(r)):r};var zA=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)/Jj,f=u?i:i+o*s,h=u?i-o*s:i;return{center:tA(e,n,l,f),circleTangency:tA(e,n,r,f),lineTangency:tA(e,n,l*Math.cos(s*Jj),h),theta:s}},$A=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return aa(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+a,u=tA(e,n,i,o),l=tA(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=tA(e,n,r,o),h=tA(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},HA={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},UA=function(t){var e=RA(RA({},HA),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=vr("recharts-sector",f),d=o-i,y=ha(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=aa(l-u),f=zA({cx:e,cy:n,radius:i,angle:u,sign:s,cornerRadius:o,cornerIsExternal:c}),h=f.circleTangency,p=f.lineTangency,d=f.theta,y=zA({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 "):$A({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=zA({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=zA({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}):$A({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:s}),D.createElement("path",DA({},La(e,!0),{className:p,d:h,role:"img"}))};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)}function qA(){return qA=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},qA.apply(this,arguments)}function WA(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 VA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?WA(Object(n),!0).forEach((function(e){XA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function XA(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}var GA={curveBasisClosed:function(t){return new du(t)},curveBasisOpen:function(t){return new yu(t)},curveBasis:function(t){return new pu(t)},curveBumpX:function(t){return new Xc(t,!0)},curveBumpY:function(t){return new Xc(t,!1)},curveLinearClosed:function(t){return new vu(t)},curveLinear:Uc,curveMonotoneX:function(t){return new xu(t)},curveMonotoneY:function(t){return new Ou(t)},curveNatural:function(t){return new ju(t)},curveStep:function(t){return new Pu(t,.5)},curveStepAfter:function(t){return new Pu(t,1)},curveStepBefore:function(t){return new Pu(t,0)}},YA=function(t){return t.x===+t.x&&t.y===+t.y},KA=function(t){return t.x},ZA=function(t){return t.y},JA=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(Zr(t))return t;var n="curve".concat(Pc(t));return"curveMonotone"!==n&&"curveBump"!==n||!e?GA[n]||Uc:GA["".concat(n).concat("vertical"===e?"Y":"X")]}(r,c),f=l?o.filter((function(t){return YA(t)})):o;if(Array.isArray(a)){var h=l?a.filter((function(t){return YA(t)})):a,p=f.map((function(t,e){return VA(VA({},t),{},{base:h[e]})}));return(e="vertical"===c?Vc().y(ZA).x1(KA).x0((function(t){return t.base.x})):Vc().x(KA).y1(ZA).y0((function(t){return t.base.y}))).defined(YA).curve(s),e(p)}return(e="vertical"===c&&ua(a)?Vc().y(ZA).x1(KA).x0(a):ua(a)?Vc().x(KA).y1(ZA).y0(a):Wc().x(KA).y(ZA)).defined(YA).curve(s),e(f)},QA=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?JA(t):r;return D.createElement("path",qA({},La(t),Oa(t),{className:vr("recharts-curve",e),d:o,ref:i}))};function tP(t){return tP="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},tP(t)}function eP(){return eP=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},eP.apply(this,arguments)}function nP(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 rP(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 rP(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 rP(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 iP(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 oP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?iP(Object(n),!0).forEach((function(e){aP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function aP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==tP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==tP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===tP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cP=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},uP=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},lP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sP=function(t){var e=oP(oP({},lP),t),n=H(),r=nP(F(-1),2),i=r[0],o=r[1];W((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=vr("recharts-rectangle",f);return v?D.createElement(hv,{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(hv,{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",eP({},La(e,!0),{className:g,d:cP(a,c,r,o,s),ref:n})))})):D.createElement("path",eP({},La(e,!0),{className:g,d:cP(a,c,u,l,s)}))};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)}var hP=function(t){var e=t.cx,n=t.cy,r=t.r,i=vr("recharts-dot",t.className);return e===+e&&n===+n&&r===+r?D.createElement("circle",fP({},La(t),Oa(t),{className:i,cx:e,cy:n,r:r})):null};function pP(t){return pP="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},pP(t)}var dP=["x","y","top","left","width","height","className"];function yP(){return yP=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},yP.apply(this,arguments)}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,e,n){return(e=function(t){var e=function(t,e){if("object"!==pP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==pP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===pP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mP(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 bP=function(t,e,n,r,i,o){return"M".concat(t,",").concat(i,"v").concat(r,"M").concat(o,",").concat(e,"h").concat(n)},wP=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?vP(Object(n),!0).forEach((function(e){gP(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}({x:n,y:i,top:a,left:u,width:s,height:h},mP(t,dP));return ua(n)&&ua(i)&&ua(s)&&ua(h)&&ua(a)&&ua(u)?D.createElement("path",yP({},La(d,!0),{className:vr("recharts-cross",p),d:bP(n,i,s,h,a,u)})):null},xP=As(Object.getPrototypeOf,Object),OP=Dr,SP=xP,jP=Br,AP=Function.prototype,PP=Object.prototype,MP=AP.toString,EP=PP.hasOwnProperty,kP=MP.call(Object);var _P=mr((function(t){if(!jP(t)||"[object Object]"!=OP(t))return!1;var e=SP(t);if(null===e)return!0;var n=EP.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&MP.call(n)==kP})),TP=Dr,NP=Br;var CP=mr((function(t){return!0===t||!1===t||NP(t)&&"[object Boolean]"==TP(t)}));function IP(t){return IP="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},IP(t)}function DP(){return DP=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},DP.apply(this,arguments)}function BP(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 RP(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 RP(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 RP(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 LP(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?LP(Object(n),!0).forEach((function(e){$P(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):LP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function $P(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==IP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==IP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===IP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var HP=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")},UP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},FP=function(t){var e=zP(zP({},UP),t),n=H(),r=BP(F(-1),2),i=r[0],o=r[1];W((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=vr("recharts-trapezoid",f);return y?D.createElement(hv,{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(hv,{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",DP({},La(e,!0),{className:v,d:HP(c,u,r,o,a),ref:n})))})):D.createElement("g",null,D.createElement("path",DP({},La(e,!0),{className:v,d:HP(a,c,u,l,s)})))},qP=["option","shapeType","propTransformer","activeClassName","isActive"];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)}function VP(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 XP(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?XP(Object(n),!0).forEach((function(e){YP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):XP(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"!==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 KP(t,e){return GP(GP({},e),t)}function ZP(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return D.createElement(sP,n);case"trapezoid":return D.createElement(FP,n);case"sector":return D.createElement(UA,n);case"symbols":if(function(t,e){return"symbols"===t}(e))return D.createElement($u,n);break;default:return null}}function JP(t){var e,n=t.option,r=t.shapeType,i=t.propTransformer,o=void 0===i?KP:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=VP(t,qP);if(B(n))e=z(n,GP(GP({},l),function(t){return B(t)?t.props:t}(n)));else if(Zr(n))e=n(l);else if(_P(n)&&!CP(n)){var s=o(n,l);e=D.createElement(ZP,{shapeType:r,elementProps:s})}else{var f=l;e=D.createElement(ZP,{shapeType:r,elementProps:f})}return u?D.createElement(Ya,{className:c},e):e}function QP(t,e){return null!=e&&"trapezoids"in t.props}function tM(t,e){return null!=e&&"sectors"in t.props}function eM(t,e){return null!=e&&"points"in t.props}function nM(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 rM(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function iM(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}function oM(t){var e=t.activeTooltipItem,n=t.graphicalItem,r=t.itemData,i=function(t,e){var n;return QP(t,e)?n="trapezoids":tM(t,e)?n="sectors":eM(t,e)&&(n="points"),n}(n,e),o=function(t,e){var n,r;return QP(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:tM(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:eM(t,e)?e.payload:{}}(n,e),a=r.filter((function(t,r){var a=aS(o,t),c=n.props[i].filter((function(t){var r=function(t,e){var n;return QP(t,e)?n=nM:tM(t,e)?n=rM:eM(t,e)&&(n=iM),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 aM=Math.ceil,cM=Math.max;var uM=ng,lM=1/0;var sM=function(t){return t?(t=uM(t))===lM||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},fM=function(t,e,n,r){for(var i=-1,o=cM(aM((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a},hM=Qp,pM=sM;var dM=mr(function(t){return function(e,n,r){return r&&"number"!=typeof r&&hM(e,n,r)&&(n=r=void 0),e=pM(e),void 0===n?(n=e,e=0):n=pM(n),r=void 0===r?e<n?1:-1:pM(r),fM(e,n,r,t)}}());function yM(t){return yM="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},yM(t)}function vM(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 gM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vM(Object(n),!0).forEach((function(e){mM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function mM(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==yM(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==yM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===yM(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bM=["Webkit","Moz","O","ms"];function wM(t){return wM="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},wM(t)}function xM(){return xM=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},xM.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 SM(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){kM(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 jM(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,_M(r.key),r)}}function AM(t,e){return AM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},AM(t,e)}function PM(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=EM(t);if(e){var i=EM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===wM(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return MM(t)}(this,n)}}function MM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function EM(t){return EM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},EM(t)}function kM(t,e,n){return(e=_M(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _M(t){var e=function(t,e){if("object"!==wM(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==wM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===wM(e)?e:String(e)}var TM=function(t){return t.changedTouches&&!!t.changedTouches.length},NM=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&&AM(t,e)}(o,L);var e,n,r,i=PM(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),kM(MM(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)})),kM(MM(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),kM(MM(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()})),kM(MM(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),kM(MM(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),kM(MM(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),kM(MM(e),"handleSlideDragStart",(function(t){var n=TM(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(MM(e),"startX"),endX:e.handleTravellerDragStart.bind(MM(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=Pj(n[t],i,t);return Zr(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=TM(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((kM(e={},i,c+v),kM(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(kM({},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=R.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=SM(SM({},La(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(Ya,{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(Ya,{className:"recharts-brush-texts"},D.createElement(em,xM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+i/2},s),this.getTextOfTick(e)),D.createElement(em,xM({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||!ua(i)||!ua(o)||!ua(a)||!ua(c)||a<=0||c<=0)return null;var v=vr("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=bM.reduce((function(t,r){return gM(gM({},t),{},mM({},r+n,e))}),{});return r[t]=e,r}("userSelect","none");return D.createElement(Ya,{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):Zr(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 SM({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=Tm().domain(dM(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&&jM(e.prototype,n),r&&jM(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();kM(NM,"displayName","Brush"),kM(NM,"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 CM=vp;var IM=yl,DM=wh,BM=function(t,e){var n;return CM(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n},RM=br,LM=Qp;var zM=mr((function(t,e,n){var r=RM(t)?IM:BM;return n&&LM(t,e,n)&&(e=void 0),r(t,DM(e))})),$M=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},HM=zp;var UM=function(t,e,n){"__proto__"==e&&HM?HM(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},FM=UM,qM=dp,WM=wh;var VM=function(t,e){var n={};return e=WM(e),qM(t,(function(t,r,i){FM(n,r,e(t,r,i))})),n},XM=mr(VM);var GM=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},YM=vp;var KM=GM,ZM=function(t,e){var n=!0;return YM(t,(function(t,r,i){return n=!!e(t,r,i)})),n},JM=wh,QM=br,tE=Qp;var eE=mr((function(t,e,n){var r=QM(t)?KM:ZM;return n&&tE(t,e,n)&&(e=void 0),r(t,JM(e))}));function nE(t){return nE="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},nE(t)}var rE=["x","y"];function iE(){return iE=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},iE.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 aE(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){cE(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 cE(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==nE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==nE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===nE(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uE(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 lE(t,e){var n=t.x,r=t.y,i=uE(t,rE),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 aE(aE(aE(aE(aE({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:h,name:e.name,radius:e.radius})}function sE(t){return D.createElement(JP,iE({shapeType:"rectangle",propTransformer:lE,activeClassName:"recharts-active-bar"},t))}var fE=["value","background"];function hE(t){return hE="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},hE(t)}function pE(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 dE(){return dE=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},dE.apply(this,arguments)}function yE(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 vE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?yE(Object(n),!0).forEach((function(e){OE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gE(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,SE(r.key),r)}}function mE(t,e){return mE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mE(t,e)}function bE(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=xE(t);if(e){var i=xE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===hE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wE(t)}(this,n)}}function wE(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xE(t){return xE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},xE(t)}function OE(t,e,n){return(e=SE(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SE(t){var e=function(t,e){if("object"!==hE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==hE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hE(e)?e:String(e)}var jE=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&&mE(t,e)}(o,L);var e,n,r,i=bE(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 OE(wE(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),OE(wE(t),"id",fa("recharts-bar-")),OE(wE(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),OE(wE(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}return e=o,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=[{key:"renderRectanglesStatically",value:function(t){var e=this,n=this.props,r=n.shape,i=n.dataKey,o=n.activeIndex,a=n.activeBar,c=La(this.props);return t&&t.map((function(t,n){var u=n===o,l=u?a:r,s=vE(vE(vE({},c),t),{},{isActive:u,option:l,index:n,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return D.createElement(Ya,dE({className:"recharts-bar-rectangle"},Sa(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(sE,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(hv,{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=da(n.x,t.x),a=da(n.y,t.y),c=da(n.width,t.width),u=da(n.height,t.height);return vE(vE({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===r){var s=da(0,t.height)(i);return vE(vE({},t),{},{y:t.y+t.height-s,height:s})}var f=da(0,t.width)(i);return vE(vE({},t),{},{width:f})}));return D.createElement(Ya,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&&aS(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=La(this.props.background);return n.map((function(e,n){e.value;var a=e.background,c=pE(e,fE);if(!a)return null;var u=vE(vE(vE(vE(vE({},c),{},{fill:"#eee"},a),o),Sa(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(sE,dE({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=Ca(n.children,dj);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:Pj(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return D.createElement(Ya,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=vr("recharts-bar",r),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,g=y||v,m=Fo(h)?this.id:h;return D.createElement(Ya,{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(Ya,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||p)&&CA.renderCallByParent(this.props,n))}}])&&gE(e.prototype,n),r&&gE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();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)}function PE(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 ME(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 EE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ME(Object(n),!0).forEach((function(e){kE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ME(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return 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"!==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)}OE(jE,"displayName","Bar"),OE(jE,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!Tv.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),OE(jE,"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=Ca(g,bg),S=f.map((function(t,e){var r,f,h,y,g,b;if(l?r=function(t,e){if(!e||2!==e.length||!ua(e[0])||!ua(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(!ua(t[0])||t[0]<n)&&(i[0]=n),(!ua(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=Pj(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=$j({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=aa(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=$j({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+=aa(y||m)*(Math.abs(m)-Math.abs(y))}return vE(vE(vE({},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:[Xj(n,t)],tooltipPosition:{x:f+y/2,y:h+g/2}})}));return vE({data:S,layout:d},h)}));var TE=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=!!Ia(u,jE);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=ha(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:km(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Qb(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:Tm(),realScaleType:"point"}:"category"===i?{scale:km(),realScaleType:"band"}:{scale:Qb(),realScaleType:"linear"};if(Go(r)){var c="scale".concat(Pc(r));return{scale:(LO[c]||Tm)(),realScaleType:LO[c]?c:"point"}}return Zr(r)?{scale:r}:{scale:Tm(),realScaleType:"point"}}(y,i,f),T=_.scale,N=_.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])-Bj,o=Math.max(r[0],r[1])+Bj,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=cj(u,i,a);return t.domain([KO(l),WO(l)]),{niceTicks:l}}if(i&&"number"===r){var s=t.domain();return{niceTicks:uj(s,i,a)}}return null}(T,EE(EE({},y),{},{realScaleType:N}));"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 I=EE(EE(EE({},y),C),{},{realScaleType:N,x:h,y:p,scale:T,width:"xAxis"===r?n.width:y.width,height:"yAxis"===r?n.height:y.height});return I.bandSize=Wj(I,C),y.hide||"xAxis"!==r?y.hide||(s[O]+=(d?-1:1)*I.width):s[O]+=(d?-1:1)*I.height,EE(EE({},o),{},kE({},a,I))}),{})},NE=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)}},CE=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&&PE(e.prototype,n),r&&PE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();kE(CE,"EPS",1e-4);var IE=function(t){var e=Object.keys(t).reduce((function(e,n){return EE(EE({},e),{},kE({},n,CE.create(t[n])))}),{});return EE(EE({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return XM(t,(function(t,n){return e[n].apply(t,{bandAware:r,position:i})}))},isInRange:function(t){return eE(t,(function(t,n){return e[n].isInRange(t)}))}})};var DE=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 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 RE(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 LE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?RE(Object(n),!0).forEach((function(e){zE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):RE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function zE(t,e,n){return(e=function(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)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $E(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 HE(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 HE(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 HE(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 UE(){return UE=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},UE.apply(this,arguments)}function FE(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;Za(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($M(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($M(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 $M(i,"discard")&&zM(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(IE({x:i.scale,y:o.scale}),la(e),la(n),r&&2===r.length,t);if(!s)return null;var f=$E(s,2),h=f[0],p=h.x,d=h.y,y=f[1],v=y.x,g=y.y,m=LE(LE({clipPath:$M(t,"hidden")?"url(#".concat(l,")"):void 0},La(t,!0)),{},{x1:p,y1:d,x2:v,y2:g});return D.createElement(Ya,{className:vr("recharts-reference-line",c)},function(t,e){return D.isValidElement(t)?D.cloneElement(t,e):Zr(t)?t(e):D.createElement("line",UE({},e,{className:"recharts-reference-line-line"}))}(a,m),mA.renderCallByParent(t,function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2;return NE({x:e,y:n},{x:r,y:i})}({x1:p,y1:d,x2:v,y2:g})))}function qE(t){return qE="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},qE(t)}function WE(){return WE=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},WE.apply(this,arguments)}function VE(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 XE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?VE(Object(n),!0).forEach((function(e){GE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):VE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function GE(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==qE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==qE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===qE(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}FE.displayName="ReferenceLine",FE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function YE(t){var e=t.x,n=t.y,r=t.r,i=t.alwaysShow,o=t.clipPathId,a=la(e),c=la(n);if(Za(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=IE({x:r.scale,y:i.scale}),a=o.apply({x:e,y:n},{bandAware:!0});return $M(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=XE(XE({clipPath:$M(t,"hidden")?"url(#".concat(o,")"):void 0},La(t,!0)),{},{cx:l,cy:s});return D.createElement(Ya,{className:vr("recharts-reference-dot",h)},YE.renderDot(f,p),mA.renderCallByParent(t,{x:l-r,y:s-r,width:2*r,height:2*r}))}function KE(t){return KE="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},KE(t)}function ZE(){return ZE=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},ZE.apply(this,arguments)}function JE(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 QE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?JE(Object(n),!0).forEach((function(e){tk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tk(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==KE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==KE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===KE(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}YE.displayName="ReferenceDot",YE.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},YE.renderDot=function(t,e){return D.isValidElement(t)?D.cloneElement(t,e):Zr(t)?t(e):D.createElement(hP,WE({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};function ek(t){var e=t.x1,n=t.x2,r=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,c=t.clipPathId;Za(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=la(e),l=la(n),s=la(r),f=la(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=IE({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!$M(i,"discard")||f.isInRange(h)&&f.isInRange(p)?NE(h,p):null}(u,l,s,f,t);if(!p&&!h)return null;var d=$M(t,"hidden")?"url(#".concat(c,")"):void 0;return D.createElement(Ya,{className:vr("recharts-reference-area",o)},ek.renderRect(h,QE(QE({clipPath:d},La(t,!0)),p)),mA.renderCallByParent(t,p))}function nk(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 rk(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 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 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"!==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)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uk(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(ua(u)||Tv.isSsr)return function(t,e){return nk(t,e+1)}(i,"number"==typeof u&&ua(u)?u:0);var h=[],p="top"===c||"bottom"===c?"width":"height",d=s&&"width"===p?Mg(s,{fontSize:e,letterSpacing:n}):{width:0,height:0},y=function(t,r){var i=Zr(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 DE(r,n)}(Mg(i,{fontSize:e,letterSpacing:n}),d,f):Mg(i,{fontSize:e,letterSpacing:n})[p]},v=i.length>=2?aa(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:nk(r,s)};var o,a=l,h=function(){return void 0===o&&(o=n(e,a)),o},p=e.coordinate,d=0===l||rk(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=ak(ak({},s),{},{tickCoord:h>0?s.coordinate-h*t:s.coordinate}),rk(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=ak(ak({},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=ak(ak({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=ak(ak({},o),{},{tickCoord:o.coordinate});rk(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=ak(ak({},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=ak(ak({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=ak(ak({},l),{},{tickCoord:l.coordinate});rk(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=ak(ak({},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})))}ek.displayName="ReferenceArea",ek.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},ek.renderRect=function(t,e){return D.isValidElement(t)?D.cloneElement(t,e):Zr(t)?t(e):D.createElement(sP,ZE({},e,{className:"recharts-reference-area-rect"}))};var lk=["viewBox"],sk=["viewBox"],fk=["ticks"];function hk(t){return hk="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},hk(t)}function pk(){return pk=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},pk.apply(this,arguments)}function dk(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 yk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dk(Object(n),!0).forEach((function(e){xk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vk(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(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,Ok(r.key),r)}}function mk(t,e){return mk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},mk(t,e)}function bk(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=wk(t);if(e){var i=wk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===hk(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 wk(t){return wk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wk(t)}function xk(t,e,n){return(e=Ok(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ok(t){var e=function(t,e){if("object"!==hk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==hk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hk(e)?e:String(e)}var Sk=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&&mk(t,e)}(o,G);var e,n,r,i=bk(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=vk(t,lk),i=this.props,o=i.viewBox,a=vk(i,sk);return!va(n,o)||!va(r,a)||!va(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=ua(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=yk(yk(yk({},La(this.props)),La(c)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=yk(yk({},u),{},{x1:e,y1:n+l*i,x2:e+r,y2:n+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=yk(yk({},u),{},{x1:e+s*r,y1:n,x2:e+s*r,y2:n+i})}return D.createElement("line",pk({},u,{className:vr("recharts-cartesian-axis-line",Uo(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=uk(yk(yk({},this.props),{},{ticks:t}),e,n),h=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=La(this.props),y=La(u),v=yk(yk({},d),{},{fill:"none"},La(a)),g=f.map((function(t,e){var n=r.getTickLineCoord(t),i=n.line,g=n.tick,m=yk(yk(yk(yk({textAnchor:h,verticalAnchor:p},d),{},{stroke:"none",fill:c},y),g),{},{index:e,payload:t,visibleTicksCount:f.length,tickFormatter:l});return D.createElement(Ya,pk({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},Sa(r.props,t,e)),a&&D.createElement("line",pk({},v,i,{className:vr("recharts-cartesian-axis-tick-line",Uo(a,"className"))})),u&&o.renderTickItem(u,m,"".concat(Zr(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=vk(c,fk),s=u;return Zr(o)&&(s=u&&u.length>0?o(this.props):o(l)),r<=0||i<=0||!s||!s.length?null:D.createElement(Ya,{className:vr("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),mA.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,n){return D.isValidElement(t)?D.cloneElement(t,e):Zr(t)?t(e):D.createElement(em,pk({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&gk(e.prototype,n),r&&gk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();xk(Sk,"displayName","CartesianAxis"),xk(Sk,"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 jk=["type","layout","connectNulls","ref"];function Ak(t){return Ak="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},Ak(t)}function Pk(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 Mk(){return Mk=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},Mk.apply(this,arguments)}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){Rk(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){return function(t){if(Array.isArray(t))return Tk(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 Tk(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 Tk(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 Tk(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 Nk(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,Lk(r.key),r)}}function Ck(t,e){return Ck=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ck(t,e)}function Ik(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=Bk(t);if(e){var i=Bk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Ak(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Dk(t)}(this,n)}}function Dk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bk(t){return Bk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Bk(t)}function Rk(t,e,n){return(e=Lk(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lk(t){var e=function(t,e){if("object"!==Ak(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ak(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ak(e)?e:String(e)}var zk=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&&Ck(t,e)}(o,L);var e,n,r,i=Ik(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 Rk(Dk(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),Rk(Dk(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),Rk(Dk(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(_k(r.slice(0,s)),[c-f]);break}var h=l.length%2==0?[0,u]:[u];return[].concat(_k(o.repeat(r,a)),_k(l),h).map((function(t){return"".concat(t,"px")})).join(", ")})),Rk(Dk(t),"id",fa("recharts-line-")),Rk(Dk(t),"pathRef",(function(e){t.mainCurve=e})),Rk(Dk(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),Rk(Dk(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=Ca(n.children,dj);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Pj(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return D.createElement(Ya,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=La(this.props),l=La(i,!0),s=a.map((function(t,e){var n=kk(kk(kk({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(Ya,Mk({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=Pk(i,jk),l=kk(kk(kk({},La(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(QA,Mk({},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(hv,{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=da(r.x,t.x),o=da(r.y,t.y);return kk(kk({},t),{},{x:i(a),y:o(a)})}if(f){var u=da(2*h,t.x),l=da(p/2,t.y);return kk(kk({},t),{},{x:u(a),y:l(a)})}return kk(kk({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(u,t,e)}var l,s=da(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||!aS(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=vr("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=Fo(p)?this.id:p,x=null!==(t=La(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=(Ra(r)?r:{}).clipDot,M=void 0===P||P,E=2*S+A;return D.createElement(Ya,{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)&&CA.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(_k(t),[0]):t,r=[],i=0;i<e;++i)r=[].concat(_k(r),_k(n));return r}},{key:"renderDotItem",value:function(t,e){var n;if(D.isValidElement(t))n=D.cloneElement(t,e);else if(Zr(t))n=t(e);else{var r=vr("recharts-line-dot",t?t.className:"");n=D.createElement(hP,Mk({},e,{className:r}))}return n}}],n&&Nk(e.prototype,n),r&&Nk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();Rk(zk,"displayName","Line"),Rk(zk,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Tv.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Rk(zk,"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 kk({points:u.map((function(t,e){var u=Pj(t,a);return"horizontal"===s?{x:zj({axis:n,ticks:i,bandSize:c,entry:t,index:e}),y:Fo(u)?null:r.scale(u),value:u,payload:t}:{x:Fo(u)?null:n.scale(u),y:zj({axis:r,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var $k,Hk=["layout","type","stroke","connectNulls","isRange","ref"];function Uk(t){return Uk="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},Uk(t)}function Fk(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 qk(){return qk=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},qk.apply(this,arguments)}function Wk(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?Wk(Object(n),!0).forEach((function(e){Jk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xk(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 Gk(t,e){return Gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Gk(t,e)}function Yk(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=Zk(t);if(e){var i=Zk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Uk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Kk(t)}(this,n)}}function Kk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zk(t){return Zk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zk(t)}function Jk(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"!==Uk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Uk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Uk(e)?e:String(e)}var t_=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&&Gk(t,e)}(o,L);var e,n,r,i=Yk(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 Jk(Kk(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),Jk(Kk(t),"id",fa("recharts-area-")),Jk(Kk(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Zr(e)&&e()})),Jk(Kk(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Zr(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=La(this.props),f=La(c,!0),h=u.map((function(t,e){var n=Vk(Vk(Vk({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(Ya,qk({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=WO(r.map((function(t){return t.y||0})));return ua(n)&&"number"==typeof n?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(WO(n.map((function(t){return t.y||0}))),u)),ua(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=WO(r.map((function(t){return t.x||0})));return ua(n)&&"number"==typeof n?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(WO(n.map((function(t){return t.x||0}))),u)),ua(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=Fk(i,Hk);return D.createElement(Ya,{clipPath:n?"url(#clipPath-".concat(r,")"):null},D.createElement(QA,qk({},La(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&D.createElement(QA,qk({},La(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&D.createElement(QA,qk({},La(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(hv,{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=da(r.x,t.x),o=da(r.y,t.y);return Vk(Vk({},t),{},{x:i(a),y:o(a)})}return t}));return c=ua(o)&&"number"==typeof o?da(p,o)(a):Fo(o)||oa(o)?da(p,0)(a):o.map((function(t,e){var n=Math.floor(e*u);if(p[n]){var r=p[n],i=da(r.x,t.x),o=da(r.y,t.y);return Vk(Vk({},t),{},{x:i(a),y:o(a)})}return t})),n.renderAreaStatically(l,c,t,e)}return D.createElement(Ya,null,D.createElement("defs",null,D.createElement("clipPath",{id:"animationClipPath-".concat(e)},n.renderClipRect(a))),D.createElement(Ya,{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||!aS(c,r)||!aS(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=vr("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=Fo(p)?this.id:p,x=null!==(t=La(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=(Ra(r)?r:{}).clipDot,M=void 0===P||P,E=2*S+A;return D.createElement(Ya,{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)&&CA.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&&Xk(e.prototype,n),r&&Xk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();$k=t_,Jk(t_,"displayName","Area"),Jk(t_,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Tv.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),Jk(t_,"getBaseValue",(function(t,e,n,r){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(ua(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]})),Jk(t_,"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=$k.getBaseValue(n,r,i,o),g="horizontal"===d,m=!1,b=h.map((function(t,e){var n;y?n=s[f+e]:(n=Pj(t,l),Array.isArray(n)?m=!0:n=[v,n]);var r=null==n[1]||y&&null==Pj(t,l);return g?{x:zj({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:zj({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),Vk({points:b,baseLine:e,layout:d,isRange:m},p)})),Jk(t_,"renderDotItem",(function(t,e){return D.isValidElement(t)?D.cloneElement(t,e):Zr(t)?t(e):D.createElement(hP,qk({},e,{className:"recharts-area-dot"}))}));var e_=function(){return null};e_.displayName="XAxis",e_.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 n_=function(){return null};n_.displayName="YAxis",n_.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 r_=wh,i_=Cs,o_=Rs;var a_=function(t){return function(e,n,r){var i=Object(e);if(!i_(e)){var o=r_(n);e=o_(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}},c_=sM;var u_=xh,l_=wh,s_=function(t){var e=c_(t),n=e%1;return e==e?n?e-n:e:0},f_=Math.max;var h_=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:s_(n);return i<0&&(i=f_(r+i,0)),u_(t,l_(e),i)},p_=mr(a_(h_)),d_="production"===process.env.NODE_ENV,y_="Invariant failed";function v_(t,e){if(!t){if(d_)throw new Error(y_);var n="function"==typeof e?e():e,r=n?"".concat(y_,": ").concat(n):y_;throw new Error(r)}}function g_(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,o=t.endAngle;return{points:[tA(e,n,r,i),tA(e,n,r,o)],cx:e,cy:n,radius:r,startAngle:i,endAngle:o}}function m_(t){return function(t){if(Array.isArray(t))return b_(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 b_(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 b_(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 b_(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 w_=function(t,e,n,r,i){var o=Ca(t,FE),a=Ca(t,YE),c=[].concat(m_(o),m_(a)),u=Ca(t,ek),l="".concat(r,"Id"),s=r[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===n&&$M(e.props,"extendDomain")&&ua(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&&$M(e.props,"extendDomain")&&ua(e.props[h])&&ua(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 ua(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},x_={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}(x_);var O_=new(mr(x_.exports)),S_="recharts.syncMouseEvents";function j_(t){return j_="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},j_(t)}function A_(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,M_(r.key),r)}}function P_(t,e,n){return(e=M_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M_(t){var e=function(t,e){if("object"!==j_(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==j_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===j_(e)?e:String(e)}var E_=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),P_(this,"activeIndex",0),P_(this,"coordinateList",[]),P_(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&&A_(e.prototype,n),r&&A_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function k_(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 g_(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,h=tA(c,u,l,f),p=tA(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 __=["item"],T_=["children","className","width","height","style","compact","title","desc"];function N_(t){return N_="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},N_(t)}function C_(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)||U_(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 I_(){return I_=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},I_.apply(this,arguments)}function D_(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 B_(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,X_(r.key),r)}}function R_(t,e){return R_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},R_(t,e)}function L_(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=$_(t);if(e){var i=$_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===N_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return z_(t)}(this,n)}}function z_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $_(t){return $_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$_(t)}function H_(t){return function(t){if(Array.isArray(t))return F_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||U_(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 U_(t,e){if(t){if("string"==typeof t)return F_(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)?F_(t,e):void 0}}function F_(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 q_(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 W_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?q_(Object(n),!0).forEach((function(e){V_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):q_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function V_(t,e,n){return(e=X_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function X_(t){var e=function(t,e){if("object"!==N_(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==N_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===N_(e)?e:String(e)}var G_={xAxis:["bottom","top"],yAxis:["left","right"]},Y_={width:"100%",height:"100%"},K_={x:0,y:0},Z_=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(H_(t),H_(n)):t}),[]);return o.length>0?o:t&&t.length&&ua(r)&&ua(i)?t.slice(r,i+1):[]};function J_(t){return"number"===t?[0,"auto"]:void 0}var Q_=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,a=Z_(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=ya(void 0===s?a:s,o.dataKey,r):l=s&&s[n]||a[n];return l?[].concat(H_(i),[Xj(c,l)]):i}),[])},tT=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(aa(s-l)!==aa(f-s)){var p=[];if(aa(f-s)===aa(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=Q_(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 W_(W_(W_({},r),tA(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=r.angle;return W_(W_(W_({},r),tA(r.cx,r.cy,c,u)),{},{angle:u,radius:c})}return K_}(n,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:h}}return null},eT=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=Tj(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=Z_(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&&ua(r)&&ua(i))return!0}return!1})(n.props.domain,g,y)&&(S=qj(n.props.domain,null,g),!h||"number"!==y&&"auto"===b||(A=Mj(P,v,"category")));var E=J_(y);if(!S||0===S.length){var k,_=null!==(k=n.props.domain)&&void 0!==k?k:E;if(v){if(S=Mj(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=dM(0,M)):m||(S=Vj(_,S,n).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(H_(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!Fo(t)})):Vj(_,S,n).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Fo(e)?t:[].concat(H_(t),[e])}),[]);else if("number"===y){var N=function(t,e,n,r,i){var o=e.map((function(e){return kj(t,e,n,i,r)})).filter((function(t){return!Fo(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);N&&(S=N)}!h||"number"!==y&&"auto"===b||(A=Mj(P,v,"category"))}else S=h?dM(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:Hj(a[O].stackGroups,c,u):_j(P,r.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),y,l,!0);if("number"===y)S=w_(s,S,O,i,w),_&&(S=qj(_,S,g));else if("category"===y&&_){var C=_;S.every((function(t){return C.indexOf(t)>=0}))&&(S=C)}}return W_(W_({},e),{},V_({},O,W_(W_({},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})))}),{})},nT=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=Ca(l,i),h={};return f&&f.length?h=eT(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=Z_(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),h=f.length,p=Tj(l,i),d=-1;return n.reduce((function(t,e){var y,v=e.props[o],g=J_("number");return t[v]?t:(d++,p?y=dM(0,h):a&&a[v]&&a[v].hasStack?(y=Hj(a[v].stackGroups,c,u),y=w_(s,y,v,i)):(y=qj(g,_j(f,n.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",l),r.defaultProps.allowDataOverflow),y=w_(s,y,v,i)),W_(W_({},t),{},V_({},v,W_(W_({axisType:i},r.defaultProps),{},{hide:!0,orientation:Uo(G_,"".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},rT=function(t){var e=t.children,n=t.defaultShowTooltip,r=Ia(e,NM),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)}},iT=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"}},oT=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=Ia(l,NM),h=Ia(l,ip),p=Object.keys(a).reduce((function(t,e){var n=a[e],r=n.orientation;return n.mirror||n.hide?t:W_(W_({},t),{},V_({},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:W_(W_({},t),{},V_({},r,Uo(t,"".concat(r))+n.height))}),{top:s.top||0,bottom:s.bottom||0}),y=W_(W_({},d),p),v=y.bottom;f&&(y.bottom+=f.props.height||NM.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=bj({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&&ua(t[h]))return Oj(Oj({},t),{},Sj({},h,t[h]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===h)&&"middle"!==p&&ua(t[p]))return Oj(Oj({},t),{},Sj({},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 W_(W_({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},aT=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=iT(s),y=d.numericAxisName,v=d.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=ka(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 ka(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:Fo(v)?e:v})}}return i}({barSize:l,stackGroups:r}),b=[];return n.forEach((function(n,l){var d=Z_(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?v_(!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:"")):v_(!1));var l=c[u];return W_(W_({},t),{},(V_(a={},r.axisType,l),V_(a,"".concat(r.axisType,"Ticks"),Cj(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(la(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=ka(n.type).indexOf("Bar")>=0,k=Wj(A,P),_=[];if(E){var T,N,C=Fo(x)?p:x,I=null!==(T=null!==(N=Wj(A,P,!0))&&void 0!==N?N: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=ha(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(jj(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=ha(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(jj(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:I!==k?I:k,sizeList:m[S],maxBarSize:C}),I!==k&&(_=_.map((function(t){return W_(W_({},t),{},{position:W_(W_({},t.position),{},{offset:t.position.offset-I/2})})})))}var D,B,R,L=n&&n.type&&n.type.getComposedData;L&&b.push({props:W_(W_({},L(W_(W_({},j),{},{displayedData:d,props:t,dataKey:w,item:n,bandSize:k,barPosition:_,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},(D={key:n.key||"item-".concat(l)},V_(D,y,j[y]),V_(D,v,j[v]),V_(D,"animationId",o),D)),childIndex:(B=n,R=t.children,Na(R).indexOf(B)),item:n})})),b},p=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Da({props:i}))return null;var l=i.children,f=i.layout,p=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=iT(f),g=v.numericAxisName,m=v.cateAxisName,b=Ca(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(la(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[fa("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return Oj(Oj({},t),{},Sj({},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 Oj(Oj({},e),{},Sj({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Lj(t,a.items,i)}))}),{})),Oj(Oj({},e),{},Sj({},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 W_(W_({},t),{},V_({},n,nT(i,W_(W_({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=oT(W_(W_({},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=pa(A),{tooltipTicks:j=Cj(S,!1,!0),orderedTooltipTicks:rd(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:Wj(S,j)}),M=h(i,W_(W_({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:O}));return W_(W_({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&&R_(t,e)}(u,G);var e,r,i,a=L_(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),V_(z_(i=a.call(this,t)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),V_(z_(i),"accessibilityManager",new E_),V_(z_(i),"handleLegendBBoxUpdate",(function(t){if(t){var e=i.state,n=e.dataStartIndex,r=e.dataEndIndex,o=e.updateId;i.setState(W_({legendBBox:t},p({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},W_(W_({},i.state),{},{legendBBox:t}))))}})),V_(z_(i),"handleReceiveSyncEvent",(function(t,e,n){if(i.props.syncId===t){if(n===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}})),V_(z_(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 W_({dataStartIndex:e,dataEndIndex:n},p({props:i.props,dataStartIndex:e,dataEndIndex:n,updateId:r},i.state))})),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}})),V_(z_(i),"handleMouseEnter",(function(t){var e=i.getMouseInfo(t);if(e){var n=W_(W_({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;Zr(r)&&r(n,t)}})),V_(z_(i),"triggeredAfterMouseMove",(function(t){var e=i.getMouseInfo(t),n=e?W_(W_({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;Zr(r)&&r(n,t)})),V_(z_(i),"handleItemMouseEnter",(function(t){i.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),V_(z_(i),"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),V_(z_(i),"handleMouseMove",(function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)})),V_(z_(i),"handleMouseLeave",(function(t){var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var n=i.props.onMouseLeave;Zr(n)&&n(e,t)})),V_(z_(i),"handleOuterEvent",(function(t){var e,n=function(t){var e=t&&t.type;return e&&Ea[e]?Ea[e]:null}(t),r=Uo(i.props,"".concat(n));n&&Zr(r)&&r(null!==(e=/.*touch.*/i.test(n)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)})),V_(z_(i),"handleClick",(function(t){var e=i.getMouseInfo(t);if(e){var n=W_(W_({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;Zr(r)&&r(n,t)}})),V_(z_(i),"handleMouseDown",(function(t){var e=i.props.onMouseDown;Zr(e)&&e(i.getMouseInfo(t),t)})),V_(z_(i),"handleMouseUp",(function(t){var e=i.props.onMouseUp;Zr(e)&&e(i.getMouseInfo(t),t)})),V_(z_(i),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),V_(z_(i),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])})),V_(z_(i),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])})),V_(z_(i),"triggerSyncEvent",(function(t){void 0!==i.props.syncId&&O_.emit(S_,i.props.syncId,t,i.eventEmitterSymbol)})),V_(z_(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(W_({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=W_(W_({},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=Q_(i.state,i.props.data,s),x=d[s]?{x:"horizontal"===n?d[s].coordinate:g,y:"horizontal"===n?m:d[s].coordinate}:K_;i.setState(W_(W_({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(t)})),V_(z_(i),"verticalCoordinatesGenerator",(function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return Nj(uk(W_(W_(W_({},Sk.defaultProps),n),{},{ticks:Cj(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)})),V_(z_(i),"horizontalCoordinatesGenerator",(function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return Nj(uk(W_(W_(W_({},Sk.defaultProps),n),{},{ticks:Cj(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)})),V_(z_(i),"axesTicksGenerator",(function(t){return Cj(t,!0)})),V_(z_(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=QA;if("ScatterChart"===n)p=a,y=wP;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=sP;else if("radial"===d){var v=g_(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=UA}else p={points:k_(d,a,u)},y=QA;var w=t.key||"_recharts-cursor",x=W_(W_(W_(W_({stroke:"#ccc",pointerEvents:"none"},u),p),La(t.props.cursor)),{},{payload:c,payloadIndex:l,key:w,className:"recharts-tooltip-cursor"});return B(t.props.cursor)?z(t.props.cursor,x):X(y,x)})),V_(z_(i),"renderPolarAxis",(function(t,e,n){var r=Uo(t,"type.axisType"),o=Uo(i.state,"".concat(r,"Map")),a=o&&o[t.props["".concat(r,"Id")]];return z(t,W_(W_({},a),{},{className:r,key:t.key||"".concat(e,"-").concat(n),ticks:Cj(a,!0)}))})),V_(z_(i),"renderXAxis",(function(t,e,n){var r=i.state.xAxisMap[t.props.xAxisId];return i.renderAxis(r,t,e,n)})),V_(z_(i),"renderYAxis",(function(t,e,n){var r=i.state.yAxisMap[t.props.yAxisId];return i.renderAxis(r,t,e,n)})),V_(z_(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=pa(n),s=p_(r,(function(t){return eE(t.domain,Number.isFinite)}))||pa(r),f=t.props||{};return z(t,{key:t.key||"grid",x:ua(f.x)?f.x:o.left,y:ua(f.y)?f.y:o.top,width:ua(f.width)?f.width:o.width,height:ua(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})})),V_(z_(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=pa(c),s=pa(u),f=s.cx,h=s.cy,p=s.innerRadius,d=s.outerRadius;return z(t,{polarAngles:Array.isArray(r)?r:Cj(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:Cj(l,!0).map((function(t){return t.coordinate})),cx:f,cy:h,innerRadius:p,outerRadius:d,key:t.key||"polar-grid",radialLines:n})})),V_(z_(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=bj({children:n,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=D_(u,__);return z(s,W_(W_({},f),{},{chartWidth:r,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),V_(z_(i),"renderTooltip",(function(){var t,e=Ia(i.props.children,Uv);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:W_(W_({},u),{},{x:u.left,y:u.top}),active:l,label:c,payload:l?a:[],coordinate:o})})),V_(z_(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:Dj(i.handleBrushChange,t.props.onChange),data:r,x:ua(t.props.x)?t.props.x:a.left,y:ua(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:ua(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),V_(z_(i),"renderReferenceElement",(function(t,e,n){if(!t)return null;var r=z_(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})})),V_(z_(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=W_(W_({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Ej(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(i)},La(s)),Oa(s));return a.push(u.renderActiveDot(s,f)),r?a.push(u.renderActiveDot(s,W_(W_({},f),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a})),V_(z_(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=Ia(i.props.children,Uv),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:Dj(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:Dj(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:Dj(i.handleItemMouseEnter,t.props.onMouseEnter)});var S=z(t,W_(W_({},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=W_(W_(W_({},r.props),O),{},{activeIndex:E});return[z(M,k),null,null]}var _,T;if(u.dataKey&&!u.allowDuplicatedCategory){var N="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());_=ya(p,N,s),T=d&&y&&ya(y,N,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[z(t,W_(W_(W_({},r.props),O),{},{activeIndex:C})),null,null]}if(!Fo(_))return[S].concat(H_(i.renderActivePoints({item:r,activePoint:_,basePoint:T,childIndex:l,isRange:d})))}return d?[S,null,null]:[S,null]})),V_(z_(i),"renderCustomized",(function(t,e,n){return z(t,W_(W_({key:"recharts-customized-".concat(n)},i.props),i.state))})),V_(z_(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:fa("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=fg(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=Ia(this.props.children,Uv);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=pa(l).scale,h=pa(s).scale,p=f&&f.invert?f.invert(o.chartX):null,d=h&&h.invert?h.invert(o.chartY):null;return W_(W_({},o),{},{xValue:p,yValue:d})}var y=tT(this.state,this.props.data,this.props.layout,c);return y?W_(W_({},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=pa(u);return rA({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=Ia(t,Uv),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}),W_(W_({},Oa(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){O_.on(S_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){O_.removeListener(S_,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===ka(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(Sk,I_({},t,{className:vr("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=C_(e,2),r=n[0],i=n[1];return W_(W_({},t),{},V_({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=C_(e,2),r=n[0],i=n[1];return W_(W_({},t),{},V_({},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=ka(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return uP(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return rA(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(QP(a,r)||tM(a,r)||eM(a,r)){var h=oM({graphicalItem:a,activeTooltipItem:r,itemData:u.props.data}),p=void 0===u.props.activeIndex?h:u.props.activeIndex;return{graphicalItem:W_(W_({},a),{},{childIndex:p}),payload:eM(a,r)?u.props.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!Da(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=D_(r,T_),p=La(h);if(l)return D.createElement(Wa,I_({},p,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),Ha(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",I_({className:vr("recharts-wrapper",o),style:W_({position:"relative",cursor:"default",width:a,height:c},u)},d,{ref:function(e){t.container=e},role:"region"}),D.createElement(Wa,I_({},p,{width:a,height:c,title:s,desc:f,style:Y_}),this.renderClipPath(),Ha(i,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],r&&B_(e.prototype,r),i&&B_(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(),V_(e,"displayName",n),V_(e,"defaultProps",W_({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),V_(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=rT(t);return W_(W_(W_({},s),{},{updateId:0},p(W_(W_({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||!va(l,e.prevMargin)){var f=rT(t),h={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},d=W_(W_({},tT(e,r,c)),{},{updateId:e.updateId+1}),y=W_(W_(W_({},f),h),d);return W_(W_(W_({},y),p(W_({props:t},y),e)),{},{prevDataKey:n,prevData:r,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!za(i,e.prevChildren)){var v=!Fo(r)?e.updateId:e.updateId+1;return W_(W_({updateId:v},p(W_(W_({props:t},e),{},{updateId:v}),e)),{},{prevChildren:i})}return null})),V_(e,"renderActiveDot",(function(t,e){var n;return n=B(t)?z(t,e):Zr(t)?t(e):D.createElement(hP,e),D.createElement(Ya,{className:"recharts-active-dot",key:e.key},n)})),e},cT=aT({chartName:"LineChart",GraphicalChild:zk,axisComponents:[{axisType:"xAxis",AxisComp:e_},{axisType:"yAxis",AxisComp:n_}],formatAxisMap:TE}),uT=aT({chartName:"AreaChart",GraphicalChild:t_,axisComponents:[{axisType:"xAxis",AxisComp:e_},{axisType:"yAxis",AxisComp:n_}],formatAxisMap:TE});const lT=({data:n,dataKey:r,width:i="100%",height:o="100%",areaType:a="monotone"})=>{const{isNetGain:c}=rr({data:n,dataKey:r}),u=c?or.mint():or.coolElegance();return e(mg,{width:i,minHeight:o,children:t(uT,{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(t_,{type:a,dataKey:r,stroke:u,fill:"url(#dataFill)"})]})})},sT=()=>{const t=u({ssr:!1});return e(l,{children:e(s,{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})})},fT=({children:t,...n})=>e(f,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:or.coolElegance(),boxShadow:"none",borderRadius:"xl",...n,children:t}),hT=n=>{const{size:r,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,errorMessage:u,label:l,labelPosition:s="left",spaceBetween:f,...g}=n;let m;return c||(m=e(at,{})),t(h,{as:p,flexDir:"column",isInvalid:Boolean(u),isDisabled:i,isReadOnly:o,isRequired:a,...g,children:[t(p,{w:"full",justifyContent:f?"space-between":"auto",children:["left"===s&&e(d,{size:r,m:"0",mr:"3",children:l}),e(y,{icon:m,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(u),size:r}),"right"===s&&e(d,{size:r,m:"0",ml:"3",children:l})]}),e(p,{w:"full",children:u&&e(v,{size:r,children:u})})]})},pT=n=>{const{size:r,isDisabled:i,isReadOnly:o,isRequired:a,spellCheck:c=!1,errorMessage:u,helperText:l,label:s,IconLeft:f,IconRight:p,...y}=n,O=ir(r);return t(h,{isInvalid:Boolean(u),isDisabled:i,isReadOnly:o,isRequired:a,children:[s&&e(d,{size:r,children:s}),t(g,{size:r,children:[f&&e(m,{children:e(f,{})}),e(b,{isDisabled:i,isReadOnly:o,isRequired:a,isInvalid:Boolean(u),size:r,spellCheck:c,...y}),p&&e(w,{children:e(p,{})})]}),u&&e(v,{size:r,children:u}),l&&e(x,{fontSize:O,children:l})]})},dT=({data:n,dataKey:r,width:i="100%",height:o="100%",lineType:a="linear"})=>{const{isNetGain:c}=rr({data:n,dataKey:r}),u=c?or.mint():or.heroicRed();return e(mg,{width:i,minHeight:o,children:t(cT,{data:n,children:[e(n_,{domain:["dataMin","dataMax"],hide:!0}),e(zk,{type:a,dataKey:r,stroke:u,strokeWidth:"2",dot:!1,scale:"threshold"})]})})},yT=n=>{const{children:r,size:i,isDisabled:o,isReadOnly:a,isRequired:c,errorMessage:u,helperText:l,label:s,...f}=n,p=ir(i);return t(h,{isInvalid:Boolean(u),isDisabled:o,isReadOnly:a,isRequired:c,children:[s&&e(d,{size:i,children:s}),e(O,{icon:e(et,{}),isDisabled:o,isReadOnly:a,isRequired:c,isInvalid:Boolean(u),size:i,...f,children:r}),u&&e(v,{size:i,children:u}),l&&e(x,{fontSize:p,children:l})]})},vT=n=>{const{label:r,IconLeft:i,IconRight:o,onClose:a,...c}=n,[u,l]=F(!0);return u?t(S,{...c,children:[i&&e(j,{as:i}),e(A,{children:r}),o&&e(P,{as:o}),a&&e(M,{onClick:()=>{a(),l(!1)}})]}):null},gT=n=>{const{description:r,title:i,onClose:o,isClosable:a,status:c}=n;let u,l;switch(c){case"error":l=Y;break;case"success":l=at;break;case"warning":l=St,u="yellow";break;case"loading":u="brand",l=I;break;default:u="brand",l=St}return t(E,{as:p,colorScheme:u,justifyContent:"space-between",status:c,children:[t(p,{alignItems:"center",children:[e(k,{children:e(l,{size:"sm"})}),t(_,{children:[e(T,{children:i}),e(N,{children:r})]})]}),a&&e(C,{onClick:o})]})};export{lT as CfAreaChart,sT as CfBreakpointDebugger,fT as CfCard,hT as CfCheckbox,pT as CfInput,dT as CfLineChart,yT as CfSelect,vT as CfTag,gT as CfToast,Y as IconAlert,K as IconArrowDown,Z as IconArrowUp,J as IconBank,Q as IconBarChart,tt as IconCalendar,et as IconCaretDown,nt as IconCaretLeft,rt as IconCaretRight,it as IconCaretUp,ot as IconCent,at as IconCheck,ct as IconChecking,ut as IconClose,lt as IconConnect,st as IconCopy,ft as IconDollar,ht as IconDownload,pt as IconEdit,dt as IconEnter,yt as IconEnterInverted,vt as IconExchange,gt as IconFilter,mt as IconHelp,bt as IconHistory,wt as IconHome,xt as IconIndicatorDown,Ot as IconIndicatorUp,St as IconInfo,jt as IconMail,At as IconMenu,Pt as IconMore,Mt as IconNotification,Et as IconOverview,kt as IconPercent,_t as IconPieChart,Tt as IconPlus,Nt as IconReports,Ct as IconReservesSuccess,It as IconReservesWarning,Dt as IconSearch,Bt as IconSettings,Rt as IconSettlement,Lt as IconSignIn,zt as IconSignOut,$t as IconSort,Ht as IconSpinner,Ut as IconSupport,Ft as IconTrash,qt as IconUpload,Wt as IconUser,dr as coreTheme,me as formatPercentage,be as formatUSD,rr as getDelta,or as uiColors};
29
+ */()();var qd=be(Ld.exports),Vd=Object.getOwnPropertyNames,Wd=Object.getOwnPropertySymbols,Yd=Object.prototype.hasOwnProperty;function Xd(t,e){return function(n,r,i){return t(n,r,i)&&e(n,r,i)}}function Gd(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 Kd(t){return Vd(t).concat(Wd(t))}var Zd=Object.hasOwn||function(t,e){return Yd.call(t,e)};function Jd(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var Qd="_owner",ty=Object.getOwnPropertyDescriptor,ey=Object.keys;function ny(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 ry(t,e){return Jd(t.getTime(),e.getTime())}function iy(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 oy(t,e,n){var r,i=ey(t),o=i.length;if(ey(e).length!==o)return!1;for(;o-- >0;){if((r=i[o])===Qd&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Zd(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1}return!0}function ay(t,e,n){var r,i,o,a=Kd(t),c=a.length;if(Kd(e).length!==c)return!1;for(;c-- >0;){if((r=a[c])===Qd&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!Zd(e,r))return!1;if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;if(i=ty(t,r),o=ty(e,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function cy(t,e){return Jd(t.valueOf(),e.valueOf())}function uy(t,e){return t.source===e.source&&t.flags===e.flags}function ly(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 sy(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 fy="[object Arguments]",hy="[object Boolean]",py="[object Date]",dy="[object Map]",yy="[object Number]",vy="[object Object]",gy="[object RegExp]",my="[object Set]",by="[object String]",wy=Array.isArray,xy="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,Oy=Object.assign,Sy=Object.prototype.toString.call.bind(Object.prototype.toString);var jy=Ay();function Ay(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?ay:ny,areDatesEqual:ry,areMapsEqual:r?Xd(iy,ay):iy,areObjectsEqual:r?ay:oy,arePrimitiveWrappersEqual:cy,areRegExpsEqual:uy,areSetsEqual:r?Xd(ly,ay):ly,areTypedArraysEqual:r?ay:sy};if(n&&(i=Oy({},i,n(i))),e){var o=Gd(i.areArraysEqual),a=Gd(i.areMapsEqual),c=Gd(i.areObjectsEqual),u=Gd(i.areSetsEqual);i=Oy({},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(wy(t))return e(t,l,s);if(null!=xy&&xy(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=Sy(t);return h===py?n(t,l,s):h===gy?a(t,l,s):h===dy?r(t,l,s):h===my?c(t,l,s):h===vy?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):h===fy?i(t,l,s):(h===hy||h===yy||h===by)&&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 Py(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 My(t){return My="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},My(t)}function Ey(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 ky(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 ky(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 ky(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 _y(){var t=function(){return null},e=!1,n=function n(r){if(!e){if(Array.isArray(r)){if(!r.length)return;var i=Ey(r),o=i[0],a=i.slice(1);return"number"==typeof o?void Py(n.bind(null,a),o):(n(o),void Py(n.bind(null,a)))}"object"===My(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 Ty(t){return Ty="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},Ty(t)}function Cy(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 Ny(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cy(Object(n),!0).forEach((function(e){Dy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Dy(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Ty(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ty(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ty(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Ay({strict:!0}),Ay({circular:!0}),Ay({circular:!0,strict:!0}),Ay({createInternalComparator:function(){return Jd}}),Ay({strict:!0,createInternalComparator:function(){return Jd}}),Ay({circular:!0,createInternalComparator:function(){return Jd}}),Ay({circular:!0,createInternalComparator:function(){return Jd},strict:!0});var Iy=["Webkit","Moz","O","ms"],By=["-webkit-","-moz-","-o-","-ms-"],Ry=["transform","transformOrigin","transition"],$y=function(t){return t},Ly=function(t,e){return Object.keys(e).reduce((function(n,r){return Ny(Ny({},n),{},Dy({},r,t(r,e[r])))}),{})},zy=function(t){return Object.keys(t).reduce((function(t,e){return Ny(Ny({},t),function(t,e){if(-1===Ry.indexOf(t))return Dy({},t,Number.isNaN(e)?0:e);var n="transition"===t,r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),i=e;return Iy.reduce((function(t,o,a){return n&&(i=e.replace(/(transform|transform-origin)/gim,"".concat(By[a],"$1"))),Ny(Ny({},t),{},Dy({},o+r,i))}),{})}(e,t[e]))}),t)},Hy=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(",")},Uy="production"!==process.env.NODE_ENV,Fy=function(t,e,n,r,i,o,a,c){if(Uy&&"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 qy(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)||Wy(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 Vy(t){return function(t){if(Array.isArray(t))return Yy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Wy(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 Wy(t,e){if(t){if("string"==typeof t)return Yy(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)?Yy(t,e):void 0}}function Yy(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 Xy=1e-4,Gy=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},Ky=function(t,e){return t.map((function(t,n){return t*Math.pow(e,n)})).reduce((function(t,e){return t+e}))},Zy=function(t,e){return function(n){var r=Gy(t,e);return Ky(r,n)}},Jy=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=qy(u,4);r=l[0],i=l[1],o=l[2],a=l[3]}else Fy(!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)}Fy([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=Zy(r,o),p=Zy(i,a),d=(s=r,f=o,function(t){var e=Gy(s,f),n=[].concat(Vy(e.map((function(t,e){return t*e})).slice(1)),[0]);return Ky(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)<Xy||a<Xy)return p(r);r=(e=r-o/a)>1?1:e<0?0:e}return p(r)};return y.isStepper=!1,y},Qy=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 Jy(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)<Xy&&Math.abs(o)<Xy?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===r.split("(")[0])return Jy(r);Fy(!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:(Fy(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function tv(t){return tv="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},tv(t)}function ev(t){return function(t){if(Array.isArray(t))return cv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||av(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 nv(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 rv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?nv(Object(n),!0).forEach((function(e){iv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):nv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function iv(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==tv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==tv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===tv(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ov(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)||av(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 av(t,e){if(t){if("string"==typeof t)return cv(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)?cv(t,e):void 0}}function cv(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 uv=function(t,e,n){return t+(e-t)*n},lv=function(t){return t.from!==t.to},sv=function t(e,n,r){var i=Ly((function(t,n){if(lv(n)){var r=ov(e(n.from,n.to,n.velocity),2),i=r[0],o=r[1];return rv(rv({},n),{},{from:i,velocity:o})}return n}),n);return r<1?Ly((function(t,e){return lv(e)?rv(rv({},e),{},{velocity:uv(e.velocity,i[t].velocity,r),from:uv(e.from,i[t].from,r)}):e}),n):t(e,i,r-1)},fv=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 rv(rv({},n),{},iv({},r,[t[r],e[r]]))}),{}),f=l.reduce((function(n,r){return rv(rv({},n),{},iv({},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=sv(n,f,o),i(rv(rv(rv({},t),e),Ly((function(t,e){return e.from}),f))),c=r,Object.values(f).filter(lv).length&&(h=requestAnimationFrame(p))}:function(o){u||(u=o);var a=(o-u)/r,c=Ly((function(t,e){return uv.apply(void 0,ev(e).concat([n(a)]))}),s);if(i(rv(rv(rv({},t),e),c)),a<1)h=requestAnimationFrame(p);else{var l=Ly((function(t,e){return uv.apply(void 0,ev(e).concat([n(1)]))}),s);i(rv(rv(rv({},t),e),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(h)}}};function hv(t){return hv="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},hv(t)}var pv=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function dv(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 yv(t){return function(t){if(Array.isArray(t))return vv(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 vv(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 vv(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 vv(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 gv(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?gv(Object(n),!0).forEach((function(e){bv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function bv(t,e,n){return(e=xv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wv(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,xv(r.key),r)}}function xv(t){var e=function(t,e){if("object"!==hv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==hv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hv(e)?e:String(e)}function Ov(t,e){return Ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ov(t,e)}function Sv(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=Pv(t);if(e){var i=Pv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return jv(this,n)}}function jv(t,e){if(e&&("object"===hv(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Av(t)}function Av(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pv(t){return Pv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pv(t)}var Mv=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&&Ov(t,e)}(o,$);var e,n,r,i=Sv(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(Av(n)),n.changeStyle=n.changeStyle.bind(Av(n)),!a||h<=0)return n.state={style:{}},"function"==typeof f&&(n.state={style:l}),jv(n);if(s&&s.length)n.state={style:s[0].style};else if(u){if("function"==typeof f)return n.state={style:u},jv(n);n.state={style:c?bv({},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(!(jy(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?bv({},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?bv({},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=fv(n,r,Qy(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(yv(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(yv(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var p=Hy(h,o,c),d=mv(mv(mv({},f.style),u),{},{transition:p});return[].concat(yv(t),[d,o,s]).filter($y)}),[a,Math.max(u,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=_y());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?bv({},r,i):i,h=Hy(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=dv(t,pv),o=R.count(e),a=zy(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 L(t,mv(mv({},i),{},{style:mv(mv({},r),a),className:o}))};return 1===o?c(R.only(e)):I.createElement("div",null,R.map(e,(function(t){return c(t)})))}}])&&wv(e.prototype,n),r&&wv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();function Ev(t){return Ev="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},Ev(t)}function kv(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==Ev(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ev(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ev(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Mv.displayName="Animate",Mv.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Mv.propTypes={from:qd.oneOfType([qd.object,qd.string]),to:qd.oneOfType([qd.object,qd.string]),attributeName:qd.string,duration:qd.number,begin:qd.number,easing:qd.oneOfType([qd.string,qd.func]),steps:qd.arrayOf(qd.shape({duration:qd.number.isRequired,style:qd.object.isRequired,easing:qd.oneOfType([qd.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),qd.func]),properties:qd.arrayOf("string"),onAnimationEnd:qd.func})),children:qd.oneOfType([qd.node,qd.func]),isActive:qd.bool,canBegin:qd.bool,onAnimationEnd:qd.func,shouldReAnimate:qd.bool,onAnimationStart:qd.func,onAnimationReStart:qd.func},void 0===Number.isFinite&&(Number.isFinite=function(t){return"number"==typeof t&&isFinite(t)}),qd.object,qd.object,qd.object,qd.element,qd.object,qd.object,qd.object,qd.oneOfType([qd.array,qd.element]),qd.any;var _v="recharts-tooltip-wrapper",Tv={visibility:"hidden"};function Cv(t){var e,n=t.coordinate,r=t.translateX,i=t.translateY;return Nr(_v,(kv(e={},"".concat(_v,"-right"),Sa(r)&&n&&Sa(n.x)&&r>=n.x),kv(e,"".concat(_v,"-left"),Sa(r)&&n&&Sa(n.x)&&r<n.x),kv(e,"".concat(_v,"-bottom"),Sa(i)&&n&&Sa(n.y)&&i>=n.y),kv(e,"".concat(_v,"-top"),Sa(i)&&n&&Sa(n.y)&&i<n.y),e))}function Nv(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&&Sa(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 Dv(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 zy({transform:r?"translate3d(".concat(e,"px, ").concat(n,"px, 0)"):"translate(".concat(e,"px, ").concat(n,"px)")})}({translateX:n=Nv({allowEscapeViewBox:i,coordinate:o,key:"x",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),translateY:r=Nv({allowEscapeViewBox:i,coordinate:o,key:"y",offsetTopLeft:a,position:c,reverseDirection:u,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:s}):Tv,{cssProperties:e,cssClasses:Cv({translateX:n,translateY:r,coordinate:o})}}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)}function Bv(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 Rv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bv(Object(n),!0).forEach((function(e){Fv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bv(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,qv(r.key),r)}}function Lv(t,e){return Lv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lv(t,e)}function zv(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=Uv(t);if(e){var i=Uv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(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 Hv(t)}(this,n)}}function Hv(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Uv(t){return Uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Uv(t)}function Fv(t,e,n){return(e=qv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qv(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)}var Vv=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&&Lv(t,e)}(o,$);var e,n,r,i=zv(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 Fv(Hv(t=i.call.apply(i,[this].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Fv(Hv(t),"lastBoundingBox",{width:-1,height:-1}),Fv(Hv(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=Dv({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=Rv(Rv(Rv({},l&&n&&zy({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 I.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}(),Wv={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return Wv[t]},set:function(t,e){if("string"==typeof t)Wv[t]=e;else{var n=Object.keys(t);n&&n.length&&n.forEach((function(e){Wv[e]=t[e]}))}}};function Yv(t){return Yv="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},Yv(t)}function Xv(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 Gv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xv(Object(n),!0).forEach((function(e){tg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Kv(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,eg(r.key),r)}}function Zv(t,e){return Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Zv(t,e)}function Jv(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=Qv(t);if(e){var i=Qv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Yv(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 Qv(t){return Qv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Qv(t)}function tg(t,e,n){return(e=eg(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eg(t){var e=function(t,e){if("object"!==Yv(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Yv(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yv(e)?e:String(e)}function ng(t){return t.dataKey}var rg=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&&Zv(t,e)}(o,$);var e,n,r,i=Jv(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=op(s.filter((function(t){return null!=t.value})),f,ng));var m=g.length>0;return I.createElement(Vv,{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 I.isValidElement(t)?I.cloneElement(t,e):"function"==typeof t?I.createElement(t,e):I.createElement($d,e)}(o,Gv(Gv({},this.props),{},{payload:g})))}}])&&Kv(e.prototype,n),r&&Kv(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();tg(rg,"displayName","Tooltip"),tg(rg,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Wv.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 ig=$r,og=/\s/;var ag=function(t){for(var e=t.length;e--&&og.test(t.charAt(e)););return e},cg=ag,ug=/^\s+/;var lg=function(t){return t?t.slice(0,cg(t)+1).replace(ug,""):t},sg=lg,fg=ai,hg=ti,pg=/^[-+]0x[0-9a-f]+$/i,dg=/^0b[01]+$/i,yg=/^0o[0-7]+$/i,vg=parseInt;var gg=function(t){if("number"==typeof t)return t;if(hg(t))return NaN;if(fg(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=fg(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=sg(t);var n=dg.test(t);return n||yg.test(t)?vg(t.slice(2),n?2:8):pg.test(t)?NaN:+t},mg=ai,bg=function(){return ig.Date.now()},wg=gg,xg=Math.max,Og=Math.min;var Sg=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=bg();if(d(t))return v(t);c=setTimeout(y,function(t){var n=e-(t-u);return f?Og(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=bg(),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=wg(e)||0,mg(n)&&(s=!!n.leading,o=(f="maxWait"in n)?xg(wg(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(bg())},g},jg=Sg,Ag=ai;var Pg=be((function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Ag(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),jg(t,e,{leading:r,maxWait:e,trailing:i})}));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}function Tg(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 Cg(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 Cg(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 Cg(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 Ng=z((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=H(null),O=H();O.current=m,U(e,(function(){return x}));var S=Tg(F({containerWidth:i.width,containerHeight:i.height}),2),j=S[0],A=S[1],P=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;P(r,i),null===(e=O.current)||void 0===e||e.call(O,r,i)};y>0&&(t=Pg(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=W((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;hc(Oa(a)||Oa(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),hc(!n||n>0,"The aspect(%s) must be greater than zero.",n);var r=Oa(a)?t:a,i=Oa(u)?e:u;n&&n>0&&(r?i=r/n:i&&(r=i*n),h&&i>h&&(i=h)),hc(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)&&da.isElement(p)&&qa(p.type).endsWith("Chart");return I.Children.map(p,(function(t){return da.isElement(t)?L(t,kg({width:r,height:i},o?{style:kg({height:"100%",width:"100%",maxHeight:i,maxWidth:r},t.props.style)}:{})):t}))}),[n,p,u,h,f,s,j,a]);return I.createElement("div",{id:v?"".concat(v):void 0,className:Nr("recharts-responsive-container",g),style:kg(kg({},w),{},{width:a,height:u,minWidth:s,minHeight:f,maxHeight:h}),ref:x},M)})),Dg=function(t){return null};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){$g(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 $g(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}Dg.displayName="Cell";var Lg={widthCache:{},cacheCount:0},zg={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Hg="recharts_measurement_span";var Ug=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Wv.isSsr)return{width:0,height:0};var n,r=(n=Rg({},e),Object.keys(n).forEach((function(t){n[t]||delete n[t]})),n),i=JSON.stringify({text:t,copyStyle:r});if(Lg.widthCache[i])return Lg.widthCache[i];try{var o=document.getElementById(Hg);o||((o=document.createElement("span")).setAttribute("id",Hg),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Rg(Rg({},zg),r);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return Lg.widthCache[i]=u,++Lg.cacheCount>2e3&&(Lg.cacheCount=0,Lg.widthCache={}),u}catch(t){return{width:0,height:0}}};function Fg(t){return Fg="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},Fg(t)}function qg(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 Vg(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 Vg(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 Vg(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 Wg(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"!==Fg(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Fg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Fg(o)?o:String(o)),r)}var i,o}var Yg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Xg=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Gg=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Kg=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Zg={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Jg=Object.keys(Zg),Qg="NaN";var tm=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||Gg.test(n)||(this.num=NaN,this.unit=""),Jg.includes(n)&&(this.num=function(t,e){return t*Zg[e]}(e,n),this.unit="px")}var e,n,r;return e=t,r=[{key:"parse",value:function(e){var n,r=qg(null!==(n=Kg.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)}}])&&Wg(e.prototype,n),r&&Wg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function em(t){if(t.includes(Qg))return Qg;for(var e=t;e.includes("*")||e.includes("/");){var n,r=qg(null!==(n=Yg.exec(e))&&void 0!==n?n:[],4),i=r[1],o=r[2],a=r[3],c=tm.parse(null!=i?i:""),u=tm.parse(null!=a?a:""),l="*"===o?c.multiply(u):c.divide(u);if(l.isNaN())return Qg;e=e.replace(Yg,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=qg(null!==(s=Xg.exec(e))&&void 0!==s?s:[],4),h=f[1],p=f[2],d=f[3],y=tm.parse(null!=h?h:""),v=tm.parse(null!=d?d:""),g="+"===p?y.add(v):y.subtract(v);if(g.isNaN())return Qg;e=e.replace(Xg,g.toString())}return e}var nm=/\(([^()]*)\)/;function rm(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var n=qg(nm.exec(e),2)[1];e=e.replace(nm,em(n))}return e}(e),e=em(e)}function im(t){var e=function(t){try{return rm(t)}catch(t){return Qg}}(t.slice(5,-1));return e===Qg?"":e}var om=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],am=["dx","dy","angle","className","breakAll"];function cm(){return cm=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},cm.apply(this,arguments)}function um(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 lm(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 sm(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 sm(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 sm(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 fm=/[ \f\n\r\t\v\u2028\u2029]+/,hm=function(t){var e=t.children,n=t.breakAll,r=t.style;try{var i=[];return ia(e)||(i=n?e.toString().split(""):e.toString().split(fm)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:Ug(t,r).width}})),spaceWidth:n?0:Ug(" ",r).width}}catch(t){return null}},pm=function(t){return[{words:ia(t)?[]:t.toString().split(fm)}]},dm=function(t){var e=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||n)&&!Wv.isSsr){var c=hm({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=Sa(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=hm({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=lm(d(m-1),2),w=b[0],x=b[1],O=lm(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):pm(r)}return pm(r)},ym="#808080",vm=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?ym:y,g=um(t,om),m=W((function(){return dm({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=um(g,am);if(!ja(n)||!ja(i))return null;var A,P=n+(Sa(b)?b:0),M=i+(Sa(w)?w:0);switch(d){case"start":A=im("calc(".concat(u,")"));break;case"middle":A=im("calc(".concat((m.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:A=im("calc(".concat(m.length-1," * -").concat(a,")"))}var E=[];if(s){var k=m[0].width,_=g.width;E.push("scale(".concat((Sa(_)?_/k:1)/k,")"))}return x&&E.push("rotate(".concat(x,", ").concat(P,", ").concat(M,")")),E.length&&(j.transform=E.join(" ")),I.createElement("text",cm({},Qa(j,!0),{x:P,y:M,className:Nr("recharts-text",O),textAnchor:h,fill:v.includes("url")?ym:v}),m.map((function(t,e){var n=t.words.join(S?"":" ");return I.createElement("tspan",{x:P,dy:0===e?A:a,key:n},n)})))};function gm(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 bm(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=gm,n=(e,n)=>gm(t(e),n),r=(e,n)=>t(e)-n):(e=t===gm||t===mm?t:wm,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 wm(){return 0}function xm(t){return null===t?NaN:+t}const Om=bm(gm).right;bm(xm).center;var Sm=Om;class jm extends Map{constructor(t,e=Pm){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(Am(this,t))}has(t){return super.has(Am(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 Am({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Pm(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Mm(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const Em=Math.sqrt(50),km=Math.sqrt(10),_m=Math.sqrt(2);function Tm(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>=Em?10:o>=km?5:o>=_m?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?Tm(t,e,2*n):[c,u,l]}function Cm(t,e,n){if(!((n=+n)>0))return[];if((t=+t)===(e=+e))return[t];const r=e<t,[i,o,a]=r?Tm(e,t,n):Tm(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 Nm(t,e,n){return Tm(t=+t,e=+e,n=+n)[2]}function Dm(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?Nm(e,t,n):Nm(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function Im(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 Bm(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 Rm(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?Mm:function(t=gm){if(t===gm)return Mm;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);Rm(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 Lm(t,e,n=xm){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 zm(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Hm(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 Um=Symbol("implicit");function Fm(){var t=new jm,e=[],n=[],r=Um;function i(i){let o=t.get(i);if(void 0===o){if(r!==Um)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 jm;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 Fm(e,n).unknown(r)},zm.apply(i,arguments),i}function qm(){var t,e,n=Fm().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 qm(r(),[o,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},zm.apply(f(),arguments)}function Vm(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Vm(e())},t}function Wm(){return Vm(qm.apply(null,arguments).paddingInner(1))}function Ym(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Xm(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Gm(){}var Km=.7,Zm=1/Km,Jm="\\s*([+-]?\\d+)\\s*",Qm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eb=/^#([0-9a-f]{3,8})$/,nb=new RegExp(`^rgb\\(${Jm},${Jm},${Jm}\\)$`),rb=new RegExp(`^rgb\\(${tb},${tb},${tb}\\)$`),ib=new RegExp(`^rgba\\(${Jm},${Jm},${Jm},${Qm}\\)$`),ob=new RegExp(`^rgba\\(${tb},${tb},${tb},${Qm}\\)$`),ab=new RegExp(`^hsl\\(${Qm},${tb},${tb}\\)$`),cb=new RegExp(`^hsla\\(${Qm},${tb},${tb},${Qm}\\)$`),ub={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 lb(){return this.rgb().formatHex()}function sb(){return this.rgb().formatRgb()}function fb(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=eb.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?hb(e):3===n?new yb(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?pb(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?pb(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=nb.exec(t))?new yb(e[1],e[2],e[3],1):(e=rb.exec(t))?new yb(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ib.exec(t))?pb(e[1],e[2],e[3],e[4]):(e=ob.exec(t))?pb(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ab.exec(t))?xb(e[1],e[2]/100,e[3]/100,1):(e=cb.exec(t))?xb(e[1],e[2]/100,e[3]/100,e[4]):ub.hasOwnProperty(t)?hb(ub[t]):"transparent"===t?new yb(NaN,NaN,NaN,0):null}function hb(t){return new yb(t>>16&255,t>>8&255,255&t,1)}function pb(t,e,n,r){return r<=0&&(t=e=n=NaN),new yb(t,e,n,r)}function db(t,e,n,r){return 1===arguments.length?((i=t)instanceof Gm||(i=fb(i)),i?new yb((i=i.rgb()).r,i.g,i.b,i.opacity):new yb):new yb(t,e,n,null==r?1:r);var i}function yb(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function vb(){return`#${wb(this.r)}${wb(this.g)}${wb(this.b)}`}function gb(){const t=mb(this.opacity);return`${1===t?"rgb(":"rgba("}${bb(this.r)}, ${bb(this.g)}, ${bb(this.b)}${1===t?")":`, ${t})`}`}function mb(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function bb(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function wb(t){return((t=bb(t))<16?"0":"")+t.toString(16)}function xb(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Sb(t,e,n,r)}function Ob(t){if(t instanceof Sb)return new Sb(t.h,t.s,t.l,t.opacity);if(t instanceof Gm||(t=fb(t)),!t)return new Sb;if(t instanceof Sb)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 Sb(a,c,u,t.opacity)}function Sb(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function jb(t){return(t=(t||0)%360)<0?t+360:t}function Ab(t){return Math.max(0,Math.min(1,t||0))}function Pb(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Ym(Gm,fb,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:lb,formatHex:lb,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ob(this).formatHsl()},formatRgb:sb,toString:sb}),Ym(yb,db,Xm(Gm,{brighter(t){return t=null==t?Zm:Math.pow(Zm,t),new yb(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Km:Math.pow(Km,t),new yb(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new yb(bb(this.r),bb(this.g),bb(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:vb,formatHex:vb,formatHex8:function(){return`#${wb(this.r)}${wb(this.g)}${wb(this.b)}${wb(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:gb,toString:gb})),Ym(Sb,(function(t,e,n,r){return 1===arguments.length?Ob(t):new Sb(t,e,n,null==r?1:r)}),Xm(Gm,{brighter(t){return t=null==t?Zm:Math.pow(Zm,t),new Sb(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Km:Math.pow(Km,t),new Sb(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 yb(Pb(t>=240?t-240:t+120,i,r),Pb(t,i,r),Pb(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Sb(jb(this.h),Ab(this.s),Ab(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("}${jb(this.h)}, ${100*Ab(this.s)}%, ${100*Ab(this.l)}%${1===t?")":`, ${t})`}`}}));var Mb=t=>()=>t;function Eb(t){return 1==(t=+t)?kb: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):Mb(isNaN(e)?n:e)}}function kb(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Mb(isNaN(t)?e:t)}var _b=function t(e){var n=Eb(e);function r(t,e){var r=n((t=db(t)).r,(e=db(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=kb(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 Tb(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 Cb(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]=Lb(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 Nb(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Db(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ib(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]=Lb(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var Bb=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rb=new RegExp(Bb.source,"g");function $b(t,e){var n,r,i,o=Bb.lastIndex=Rb.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(n=Bb.exec(t))&&(r=Rb.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:Db(n,r)})),o=Rb.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 Lb(t,e){var n,r=typeof e;return null==e||"boolean"===r?Mb(e):("number"===r?Db:"string"===r?(n=fb(e))?(e=n,_b):$b:e instanceof fb?_b:e instanceof Date?Nb:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Tb:Array.isArray(e)?Cb:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ib:Db)(t,e)}function zb(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Hb(t,e){void 0===e&&(e=t,t=Lb);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 Ub(t){return+t}var Fb=[0,1];function qb(t){return t}function Vb(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Wb(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Vb(i,r),o=n(a,o)):(r=Vb(r,i),o=n(o,a)),function(t){return o(r(t))}}function Yb(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]=Vb(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Sm(t,e,1,r)-1;return o[n](i[n](e))}}function Xb(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Gb(){var t,e,n,r,i,o,a=Fb,c=Fb,u=Lb,l=qb;function s(){var t=Math.min(a.length,c.length);return l!==qb&&(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?Yb:Wb,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),Db)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Ub),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=zb,s()},f.clamp=function(t){return arguments.length?(l=!!t||qb,s()):l!==qb},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 Kb(){return Gb()(qb,qb)}function Zb(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 Jb(t){return(t=Zb(Math.abs(t)))?t[1]:NaN}var Qb,tw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ew(t){if(!(e=tw.exec(t)))throw new Error("invalid format: "+t);var e;return new nw({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 nw(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 rw(t,e){var n=Zb(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")}ew.prototype=nw.prototype,nw.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 iw={"%":(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)=>rw(100*t,e),r:rw,s:function(t,e){var n=Zb(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Qb=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")+Zb(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ow(t){return t}var aw,cw,uw,lw=Array.prototype.map,sw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fw(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?ow:(e=lw.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?ow:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(lw.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=ew(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"):iw[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=iw[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?sw[8+Qb/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=ew(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Jb(e)/3))),i=Math.pow(10,-r),o=sw[8+r/3];return function(t){return n(i*t)+o}}}}function hw(t,e,n,r){var i,o=Dm(t,e,n);switch((r=ew(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(Jb(e)/3)))-Jb(Math.abs(t)))}(o,a))||(r.precision=i),uw(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,Jb(e)-Jb(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,-Jb(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return cw(r)}function pw(t){var e=t.domain;return t.ticks=function(t){var n=e();return Cm(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return hw(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=Nm(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 dw(){var t=Kb();return t.copy=function(){return Xb(t,dw())},zm.apply(t,arguments),pw(t)}function yw(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 vw(t){return Math.log(t)}function gw(t){return Math.exp(t)}function mw(t){return-Math.log(-t)}function bw(t){return-Math.exp(-t)}function ww(t){return isFinite(t)?+("1e"+t):t<0?0:t}function xw(t){return(e,n)=>-t(-e,n)}function Ow(t){const e=t(vw,gw),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?ww:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),n()[0]<0?(r=xw(r),i=xw(i),t(mw,bw)):t(vw,gw),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=Cm(a,c,p))}else d=Cm(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=ew(n)).precision||(n.trim=!0),n=cw(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(yw(n(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),e}function Sw(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function jw(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Aw(t){var e=1,n=t(Sw(e),jw(e));return n.constant=function(n){return arguments.length?t(Sw(e=+n),jw(e)):e},pw(n)}function Pw(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Mw(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Ew(t){return t<0?-t*t:t*t}function kw(t){var e=t(qb,qb),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(qb,qb):.5===n?t(Mw,Ew):t(Pw(n),Pw(1/n)):n},pw(e)}function _w(){var t=kw(Gb());return t.copy=function(){return Xb(t,_w()).exponent(t.exponent())},zm.apply(t,arguments),t}function Tw(t){return Math.sign(t)*t*t}aw=fw({thousands:",",grouping:[3],currency:["$",""]}),cw=aw.format,uw=aw.formatPrefix;const Cw=new Date,Nw=new Date;function Dw(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=>Dw((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)=>(Cw.setTime(+e),Nw.setTime(+r),t(Cw),t(Nw),Math.floor(n(Cw,Nw))),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 Iw=Dw((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Iw.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Dw((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):Iw:null),Iw.range;const Bw=1e3,Rw=6e4,$w=36e5,Lw=864e5,zw=6048e5,Hw=2592e6,Uw=31536e6,Fw=Dw((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Bw)}),((t,e)=>(e-t)/Bw),(t=>t.getUTCSeconds()));Fw.range;const qw=Dw((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bw)}),((t,e)=>{t.setTime(+t+e*Rw)}),((t,e)=>(e-t)/Rw),(t=>t.getMinutes()));qw.range;const Vw=Dw((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Rw)}),((t,e)=>(e-t)/Rw),(t=>t.getUTCMinutes()));Vw.range;const Ww=Dw((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bw-t.getMinutes()*Rw)}),((t,e)=>{t.setTime(+t+e*$w)}),((t,e)=>(e-t)/$w),(t=>t.getHours()));Ww.range;const Yw=Dw((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*$w)}),((t,e)=>(e-t)/$w),(t=>t.getUTCHours()));Yw.range;const Xw=Dw((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Rw)/Lw),(t=>t.getDate()-1));Xw.range;const Gw=Dw((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Lw),(t=>t.getUTCDate()-1));Gw.range;const Kw=Dw((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Lw),(t=>Math.floor(t/Lw)));function Zw(t){return Dw((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())*Rw)/zw))}Kw.range;const Jw=Zw(0),Qw=Zw(1),tx=Zw(2),ex=Zw(3),nx=Zw(4),rx=Zw(5),ix=Zw(6);function ox(t){return Dw((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)/zw))}Jw.range,Qw.range,tx.range,ex.range,nx.range,rx.range,ix.range;const ax=ox(0),cx=ox(1),ux=ox(2),lx=ox(3),sx=ox(4),fx=ox(5),hx=ox(6);ax.range,cx.range,ux.range,lx.range,sx.range,fx.range,hx.range;const px=Dw((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()));px.range;const dx=Dw((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()));dx.range;const yx=Dw((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()));yx.every=t=>isFinite(t=Math.floor(t))&&t>0?Dw((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,yx.range;const vx=Dw((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 gx(t,e,n,r,i,o){const a=[[Fw,1,Bw],[Fw,5,5e3],[Fw,15,15e3],[Fw,30,3e4],[o,1,Rw],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,$w],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Lw],[r,2,1728e5],[n,1,zw],[e,1,Hw],[e,3,7776e6],[t,1,Uw]];function c(e,n,r){const i=Math.abs(n-e)/r,o=bm((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(Dm(e/Uw,n/Uw,r));if(0===o)return Iw.every(Math.max(Dm(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]}vx.every=t=>isFinite(t=Math.floor(t))&&t>0?Dw((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,vx.range;const[mx,bx]=gx(vx,dx,ax,Kw,Yw,Vw),[wx,xx]=gx(yx,px,Jw,Xw,Ww,qw);function Ox(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 Sx(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 jx(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var Ax,Px,Mx,Ex={"-":"",_:" ",0:"0"},kx=/^\s*\d+/,_x=/^%/,Tx=/[\\^$*+?|[\]().{}]/g;function Cx(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 Nx(t){return t.replace(Tx,"\\$&")}function Dx(t){return new RegExp("^(?:"+t.map(Nx).join("|")+")","i")}function Ix(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function Bx(t,e,n){var r=kx.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Rx(t,e,n){var r=kx.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function $x(t,e,n){var r=kx.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Lx(t,e,n){var r=kx.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function zx(t,e,n){var r=kx.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Hx(t,e,n){var r=kx.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ux(t,e,n){var r=kx.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Fx(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 qx(t,e,n){var r=kx.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Vx(t,e,n){var r=kx.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Wx(t,e,n){var r=kx.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Yx(t,e,n){var r=kx.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Xx(t,e,n){var r=kx.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Gx(t,e,n){var r=kx.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Kx(t,e,n){var r=kx.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Zx(t,e,n){var r=kx.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Jx(t,e,n){var r=kx.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Qx(t,e,n){var r=_x.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function tO(t,e,n){var r=kx.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function eO(t,e,n){var r=kx.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function nO(t,e){return Cx(t.getDate(),e,2)}function rO(t,e){return Cx(t.getHours(),e,2)}function iO(t,e){return Cx(t.getHours()%12||12,e,2)}function oO(t,e){return Cx(1+Xw.count(yx(t),t),e,3)}function aO(t,e){return Cx(t.getMilliseconds(),e,3)}function cO(t,e){return aO(t,e)+"000"}function uO(t,e){return Cx(t.getMonth()+1,e,2)}function lO(t,e){return Cx(t.getMinutes(),e,2)}function sO(t,e){return Cx(t.getSeconds(),e,2)}function fO(t){var e=t.getDay();return 0===e?7:e}function hO(t,e){return Cx(Jw.count(yx(t)-1,t),e,2)}function pO(t){var e=t.getDay();return e>=4||0===e?nx(t):nx.ceil(t)}function dO(t,e){return t=pO(t),Cx(nx.count(yx(t),t)+(4===yx(t).getDay()),e,2)}function yO(t){return t.getDay()}function vO(t,e){return Cx(Qw.count(yx(t)-1,t),e,2)}function gO(t,e){return Cx(t.getFullYear()%100,e,2)}function mO(t,e){return Cx((t=pO(t)).getFullYear()%100,e,2)}function bO(t,e){return Cx(t.getFullYear()%1e4,e,4)}function wO(t,e){var n=t.getDay();return Cx((t=n>=4||0===n?nx(t):nx.ceil(t)).getFullYear()%1e4,e,4)}function xO(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Cx(e/60|0,"0",2)+Cx(e%60,"0",2)}function OO(t,e){return Cx(t.getUTCDate(),e,2)}function SO(t,e){return Cx(t.getUTCHours(),e,2)}function jO(t,e){return Cx(t.getUTCHours()%12||12,e,2)}function AO(t,e){return Cx(1+Gw.count(vx(t),t),e,3)}function PO(t,e){return Cx(t.getUTCMilliseconds(),e,3)}function MO(t,e){return PO(t,e)+"000"}function EO(t,e){return Cx(t.getUTCMonth()+1,e,2)}function kO(t,e){return Cx(t.getUTCMinutes(),e,2)}function _O(t,e){return Cx(t.getUTCSeconds(),e,2)}function TO(t){var e=t.getUTCDay();return 0===e?7:e}function CO(t,e){return Cx(ax.count(vx(t)-1,t),e,2)}function NO(t){var e=t.getUTCDay();return e>=4||0===e?sx(t):sx.ceil(t)}function DO(t,e){return t=NO(t),Cx(sx.count(vx(t),t)+(4===vx(t).getUTCDay()),e,2)}function IO(t){return t.getUTCDay()}function BO(t,e){return Cx(cx.count(vx(t)-1,t),e,2)}function RO(t,e){return Cx(t.getUTCFullYear()%100,e,2)}function $O(t,e){return Cx((t=NO(t)).getUTCFullYear()%100,e,2)}function LO(t,e){return Cx(t.getUTCFullYear()%1e4,e,4)}function zO(t,e){var n=t.getUTCDay();return Cx((t=n>=4||0===n?sx(t):sx.ceil(t)).getUTCFullYear()%1e4,e,4)}function HO(){return"+0000"}function UO(){return"%"}function FO(t){return+t}function qO(t){return Math.floor(+t/1e3)}function VO(t){return new Date(t)}function WO(t){return t instanceof Date?+t:+new Date(+t)}function YO(t,e,n,r,i,o,a,c,u,l){var s=Kb(),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,WO)):h().map(VO)},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(yw(n,t)):s},s.copy=function(){return Xb(s,YO(t,e,n,r,i,o,a,c,u,l))},s}function XO(){var t,e,n,r,i,o=0,a=1,c=qb,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(Lb),l.rangeRound=s(zb),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 GO(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function KO(){var t=kw(XO());return t.copy=function(){return GO(t,KO()).exponent(t.exponent())},Hm.apply(t,arguments)}function ZO(){var t,e,n,r,i,o,a,c=0,u=.5,l=1,s=1,f=qb,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=Hb(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(Lb),p.rangeRound=d(zb),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 JO(){var t=kw(ZO());return t.copy=function(){return GO(t,JO()).exponent(t.exponent())},Hm.apply(t,arguments)}!function(t){Ax=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=Dx(i),s=Ix(i),f=Dx(o),h=Ix(o),p=Dx(a),d=Ix(a),y=Dx(c),v=Ix(c),g=Dx(u),m=Ix(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:nO,e:nO,f:cO,g:mO,G:wO,H:rO,I:iO,j:oO,L:aO,m:uO,M:lO,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:FO,s:qO,S:sO,u:fO,U:hO,V:dO,w:yO,W:vO,x:null,X:null,y:gO,Y:bO,Z:xO,"%":UO},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:OO,e:OO,f:MO,g:$O,G:zO,H:SO,I:jO,j:AO,L:PO,m:EO,M:kO,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:FO,s:qO,S:_O,u:TO,U:CO,V:DO,w:IO,W:BO,x:null,X:null,y:RO,Y:LO,Z:HO,"%":UO},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:Wx,e:Wx,f:Jx,g:Ux,G:Hx,H:Xx,I:Xx,j:Yx,L:Zx,m:Vx,M:Gx,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:qx,Q:tO,s:eO,S:Kx,u:Rx,U:$x,V:Lx,w:Bx,W:zx,x:function(t,e,r){return j(t,n,e,r)},X:function(t,e,n){return j(t,r,e,n)},y:Ux,Y:Hx,Z:Fx,"%":Qx};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=Ex[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=jx(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=Sx(jx(o.y,0,1))).getUTCDay(),r=i>4||0===i?cx.ceil(r):cx(r),r=Gw.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Ox(jx(o.y,0,1))).getDay(),r=i>4||0===i?Qw.ceil(r):Qw(r),r=Xw.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?Sx(jx(o.y,0,1)).getUTCDay():Ox(jx(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,Sx(o)):Ox(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 Ex?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),Px=Ax.format,Ax.parse,Mx=Ax.utcFormat,Ax.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 QO=Object.freeze({__proto__:null,scaleBand:qm,scaleDiverging:function t(){var e=pw(ZO()(qb));return e.copy=function(){return GO(e,t())},Hm.apply(e,arguments)},scaleDivergingLog:function t(){var e=Ow(ZO()).domain([.1,1,10]);return e.copy=function(){return GO(e,t()).base(e.base())},Hm.apply(e,arguments)},scaleDivergingPow:JO,scaleDivergingSqrt:function(){return JO.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=Aw(ZO());return e.copy=function(){return GO(e,t()).constant(e.constant())},Hm.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,Ub),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,Ub):[0,1],pw(r)},scaleImplicit:Um,scaleLinear:dw,scaleLog:function t(){const e=Ow(Gb()).domain([1,10]);return e.copy=()=>Xb(e,t()).base(e.base()),zm.apply(e,arguments),e},scaleOrdinal:Fm,scalePoint:Wm,scalePow:_w,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]=Lm(n,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:r[Sm(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(gm),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)},zm.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[Sm(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)},zm.apply(pw(c),arguments)},scaleRadial:function t(){var e,n=Kb(),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(Tw(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,Ub)).map(Tw)),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)},zm.apply(o,arguments),pw(o)},scaleSequential:function t(){var e=pw(XO()(qb));return e.copy=function(){return GO(e,t())},Hm.apply(e,arguments)},scaleSequentialLog:function t(){var e=Ow(XO()).domain([1,10]);return e.copy=function(){return GO(e,t()).base(e.base())},Hm.apply(e,arguments)},scaleSequentialPow:KO,scaleSequentialQuantile:function t(){var e=[],n=qb;function r(t){if(null!=t&&!isNaN(t=+t))return n((Sm(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(gm),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 Bm(t);if(e>=1)return Im(t);var r,i=(r-1)*e,o=Math.floor(i),a=Im(Rm(t,o).subarray(0,o+1));return a+(Bm(t.subarray(o+1))-a)*(i-o)}}(e,r/t)))},r.copy=function(){return t(n).domain(e)},Hm.apply(r,arguments)},scaleSequentialSqrt:function(){return KO.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=Aw(XO());return e.copy=function(){return GO(e,t()).constant(e.constant())},Hm.apply(e,arguments)},scaleSqrt:function(){return _w.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=Aw(Gb());return e.copy=function(){return Xb(e,t()).constant(e.constant())},zm.apply(e,arguments)},scaleThreshold:function t(){var e,n=[.5],r=[0,1],i=1;function o(t){return null!=t&&t<=t?r[Sm(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)},zm.apply(o,arguments)},scaleTime:function(){return zm.apply(YO(wx,xx,yx,px,Jw,Xw,Ww,qw,Fw,Px).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return zm.apply(YO(mx,bx,vx,dx,ax,Gw,Yw,Vw,Fw,Mx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:hw}),tS=ti;var eS=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&&!tS(a):n(a,c)))var c=a,u=o}return u};var nS=eS,rS=function(t,e){return t>e},iS=Oh;var oS=function(t){return t&&t.length?nS(t,iS,rS):void 0},aS=be(oS);var cS=eS,uS=function(t,e){return t<e},lS=Oh;var sS=function(t){return t&&t.length?cS(t,lS,uS):void 0},fS=be(sS),hS=Bo,pS=Ih,dS=Dp,yS=Dr;var vS=Ap,gS=function(t,e){return(yS(t)?hS:dS)(t,pS(e))};var mS=be((function(t,e){return vS(gS(t,e),1)})),bS=Ff;var wS,xS=be((function(t,e){return bS(t,e)})),OS=1e9,SS=!0,jS="[DecimalError] ",AS=jS+"Invalid argument: ",PS=jS+"Exponent out of range: ",MS=Math.floor,ES=Math.pow,kS=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,_S=1e7,TS=7,CS=9007199254740991,NS=MS(CS/TS),DS={};function IS(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)),SS?VS(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/TS))>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)/_S|0,u[o]%=_S;for(n&&(u.unshift(n),++i),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=i,SS?VS(e,f):e}function BS(t,e,n){if(t!==~~t||t<e||t>n)throw Error(AS+t)}function RS(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=TS-r.length)&&(o+=US(n)),o+=r;a=t[e],(n=TS-(r=a+"").length)&&(o+=US(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}DS.absoluteValue=DS.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},DS.comparedTo=DS.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},DS.decimalPlaces=DS.dp=function(){var t=this,e=t.d.length-1,n=(e-t.e)*TS;if(e=t.d[e])for(;e%10==0;e/=10)n--;return n<0?0:n},DS.dividedBy=DS.div=function(t){return $S(this,new this.constructor(t))},DS.dividedToIntegerBy=DS.idiv=function(t){var e=this.constructor;return VS($S(this,new e(t),0,1),e.precision)},DS.equals=DS.eq=function(t){return!this.cmp(t)},DS.exponent=function(){return zS(this)},DS.greaterThan=DS.gt=function(t){return this.cmp(t)>0},DS.greaterThanOrEqualTo=DS.gte=function(t){return this.cmp(t)>=0},DS.isInteger=DS.isint=function(){return this.e>this.d.length-2},DS.isNegative=DS.isneg=function(){return this.s<0},DS.isPositive=DS.ispos=function(){return this.s>0},DS.isZero=function(){return 0===this.s},DS.lessThan=DS.lt=function(t){return this.cmp(t)<0},DS.lessThanOrEqualTo=DS.lte=function(t){return this.cmp(t)<1},DS.logarithm=DS.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(wS))throw Error(jS+"NaN");if(n.s<1)throw Error(jS+(n.s?"NaN":"-Infinity"));return n.eq(wS)?new r(0):(SS=!1,e=$S(FS(n,o),FS(t,o),o),SS=!0,VS(e,i))},DS.minus=DS.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?WS(e,t):IS(e,(t.s=-t.s,t))},DS.modulo=DS.mod=function(t){var e,n=this,r=n.constructor,i=r.precision;if(!(t=new r(t)).s)throw Error(jS+"NaN");return n.s?(SS=!1,e=$S(n,t,0,1).times(t),SS=!0,n.minus(e)):VS(new r(n),i)},DS.naturalExponential=DS.exp=function(){return LS(this)},DS.naturalLogarithm=DS.ln=function(){return FS(this)},DS.negated=DS.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},DS.plus=DS.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?IS(e,t):WS(e,(t.s=-t.s,t))},DS.precision=DS.sd=function(t){var e,n,r,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(AS+t);if(e=zS(i)+1,n=(r=i.d.length-1)*TS+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},DS.squareRoot=DS.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(jS+"NaN")}for(t=zS(c),SS=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=RS(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=MS((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),RS(o.d).slice(0,a)===(e=RS(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(VS(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=e)break;a+=4}return SS=!0,VS(r,n)},DS.times=DS.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%_S|0,e=c/_S|0;o[i]=(o[i]+e)%_S|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,SS?VS(t,f.precision):t},DS.toDecimalPlaces=DS.todp=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(BS(t,0,OS),void 0===e?e=r.rounding:BS(e,0,8),VS(n,t+zS(n)+1,e))},DS.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=YS(r,!0):(BS(t,0,OS),void 0===e?e=i.rounding:BS(e,0,8),n=YS(r=VS(new i(r),t+1,e),!0,t+1)),n},DS.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?YS(i):(BS(t,0,OS),void 0===e?e=o.rounding:BS(e,0,8),n=YS((r=VS(new o(i),t+zS(i)+1,e)).abs(),!1,t+zS(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},DS.toInteger=DS.toint=function(){var t=this,e=t.constructor;return VS(new e(t),zS(t)+1,e.rounding)},DS.toNumber=function(){return+this},DS.toPower=DS.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(wS);if(!(c=new u(c)).s){if(t.s<1)throw Error(jS+"Infinity");return c}if(c.eq(wS))return c;if(r=u.precision,t.eq(wS))return VS(c,r);if(a=(e=t.e)>=(n=t.d.length-1),o=c.s,a){if((n=l<0?-l:l)<=CS){for(i=new u(wS),e=Math.ceil(r/TS+4),SS=!1;n%2&&XS((i=i.times(c)).d,e),0!==(n=MS(n/2));)XS((c=c.times(c)).d,e);return SS=!0,t.s<0?new u(wS).div(i):VS(i,r)}}else if(o<0)throw Error(jS+"NaN");return o=o<0&&1&t.d[Math.max(e,n)]?-1:1,c.s=1,SS=!1,i=t.times(FS(c,r+12)),SS=!0,(i=LS(i)).s=o,i},DS.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?r=YS(i,(n=zS(i))<=o.toExpNeg||n>=o.toExpPos):(BS(t,1,OS),void 0===e?e=o.rounding:BS(e,0,8),r=YS(i=VS(new o(i),t,e),t<=(n=zS(i))||n<=o.toExpNeg,t)),r},DS.toSignificantDigits=DS.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(BS(t,1,OS),void 0===e?e=n.rounding:BS(e,0,8)),VS(new n(this),t,e)},DS.toString=DS.valueOf=DS.val=DS.toJSON=DS[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=zS(t),n=t.constructor;return YS(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%_S|0,r=n/_S|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*_S+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(jS+"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+(zS(r)-zS(i))+1:o)<0)return new A(0);if(m=m/TS+2|0,l=0,1==S)for(s=0,E=E[0],m++;(l<x||s)&&m--;l++)b=s*_S+(M[l]||0),d[l]=b/E|0,s=b%E|0;else{for((s=_S/(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]>=_S/2&&++O;do{s=0,(c=e(E,y,S,v))<0?(g=y[0],S!=v&&(g=g*_S+(y[1]||0)),(s=g/O|0)>1?(s>=_S&&(s=_S-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,VS(p,a?o+zS(p)+1:o)}}();function LS(t,e){var n,r,i,o,a,c=0,u=0,l=t.constructor,s=l.precision;if(zS(t)>16)throw Error(PS+zS(t));if(!t.s)return new l(wS);for(null==e?(SS=!1,a=s):a=e,o=new l(.03125);t.abs().gte(.1);)t=t.times(o),u+=5;for(a+=Math.log(ES(2,u))/Math.LN10*2+5|0,n=r=i=new l(wS),l.precision=a;;){if(r=VS(r.times(t),a),n=n.times(++c),RS((o=i.plus($S(r,n,a))).d).slice(0,a)===RS(i.d).slice(0,a)){for(;u--;)i=VS(i.times(i),a);return l.precision=s,null==e?(SS=!0,VS(i,s)):i}i=o}}function zS(t){for(var e=t.e*TS,n=t.d[0];n>=10;n/=10)e++;return e}function HS(t,e,n){if(e>t.LN10.sd())throw SS=!0,n&&(t.precision=n),Error(jS+"LN10 precision limit exceeded");return VS(new t(t.LN10),e)}function US(t){for(var e="";t--;)e+="0";return e}function FS(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(jS+(h.s?"NaN":"-Infinity"));if(h.eq(wS))return new d(0);if(null==e?(SS=!1,l=y):l=e,h.eq(10))return null==e&&(SS=!0),HS(d,l);if(l+=10,d.precision=l,r=(n=RS(p)).charAt(0),o=zS(h),!(Math.abs(o)<15e14))return u=HS(d,l+2,y).times(o+""),h=FS(new d(r+"."+n.slice(1)),l-10).plus(u),d.precision=y,null==e?(SS=!0,VS(h,y)):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=RS((h=h.times(t)).d)).charAt(0),f++;for(o=zS(h),r>1?(h=new d("0."+n),o++):h=new d(r+"."+n.slice(1)),c=a=h=$S(h.minus(wS),h.plus(wS),l),s=VS(h.times(h),l),i=3;;){if(a=VS(a.times(s),l),RS((u=c.plus($S(a,new d(i),l))).d).slice(0,l)===RS(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(HS(d,l+2,y).times(o+""))),c=$S(c,new d(f),l),d.precision=y,null==e?(SS=!0,VS(c,y)):c;c=u,i+=2}}function qS(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=MS(n/TS),t.d=[],r=(n+1)%TS,n<0&&(r+=TS),r<i){for(r&&t.d.push(+e.slice(0,r)),i-=TS;r<i;)t.d.push(+e.slice(r,r+=TS));e=e.slice(r),r=TS-e.length}else r-=i;for(;r--;)e+="0";if(t.d.push(+e),SS&&(t.e>NS||t.e<-NS))throw Error(PS+n)}else t.s=0,t.e=0,t.d=[0];return t}function VS(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+=TS,i=e,l=f[s=0];else{if((s=Math.ceil((r+1)/TS))>=(o=f.length))return t;for(l=o=f[s],a=1;o>=10;o/=10)a++;i=(r%=TS)-TS+a}if(void 0!==n&&(c=l/(o=ES(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/ES(10,a-i):0:f[s-1])%10&1||n==(t.s<0?8:7))),e<1||!f[0])return u?(o=zS(t),f.length=1,e=e-o-1,f[0]=ES(10,(TS-e%TS)%TS),t.e=MS(-e/TS)||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=ES(10,TS-r),f[s]=i>0?(l/ES(10,a-i)%ES(10,i)|0)*o:0),u)for(;;){if(0==s){(f[0]+=o)==_S&&(f[0]=1,++t.e);break}if(f[s]+=o,f[s]!=_S)break;f[s--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(SS&&(t.e>NS||t.e<-NS))throw Error(PS+zS(t));return t}function WS(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),SS?VS(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/TS),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]=_S-1;--u[o],u[i]+=_S}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,SS?VS(e,p):e):new h(0)}function YS(t,e,n){var r,i=zS(t),o=RS(t.d),a=o.length;return e?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+US(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+US(-i-1)+o,n&&(r=n-a)>0&&(o+=US(r))):i>=a?(o+=US(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+US(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=US(r))),t.s<0?"-"+o:o}function XS(t,e){if(t.length>e)return t.length=e,!0}function GS(t){if(!t||"object"!=typeof t)throw Error(jS+"Object expected");var e,n,r,i=["precision",1,OS,"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(!(MS(r)===r&&r>=i[e+1]&&r<=i[e+2]))throw Error(AS+n+": "+r);this[n]=r}if(void 0!==(r=t[n="LN10"])){if(r!=Math.LN10)throw Error(AS+n+": "+r);this[n]=new this(r)}return this}var KS=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(AS+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])):qS(e,t.toString())}if("string"!=typeof t)throw Error(AS+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!kS.test(t))throw Error(AS+t);qS(e,t)}if(o.prototype=DS,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=GS,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"});wS=new KS(1);var ZS=KS;function JS(t){return function(t){if(Array.isArray(t))return QS(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 QS(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 QS(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 QS(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 tj=function(t){return t},ej={"@@functional/placeholder":!0},nj=function(t){return t===ej},rj=function(t){return function e(){return 0===arguments.length||1===arguments.length&&nj(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},ij=function t(e,n){return 1===e?n:rj((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!==ej})).length;return a>=e?n.apply(void 0,i):t(e-a,rj((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 nj(t)?e.shift():t}));return n.apply(void 0,JS(o).concat(e))})))}))},oj=function(t){return ij(t.length,t)},aj=function(t,e){for(var n=[],r=t;r<e;++r)n[r-t]=r;return n},cj=oj((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),uj=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)return tj;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))}},lj=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},sj=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 fj=oj((function(t,e,n){var r=+t;return r+n*(+e-r)})),hj=oj((function(t,e,n){var r=e-+t;return(n-t)/(r=r||1/0)})),pj=oj((function(t,e,n){var r=e-+t;return r=r||1/0,Math.max(0,Math.min(1,(n-t)/r))})),dj={rangeStep:function(t,e,n){for(var r=new ZS(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 ZS(t).abs().log(10).toNumber())+1},interpolateNumber:fj,uninterpolateNumber:hj,uninterpolateTruncation:pj};function yj(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)||gj(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 vj(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)||gj(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 gj(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 bj(t){var e=vj(t,2),n=e[0],r=e[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function wj(t,e,n){if(t.lte(0))return new ZS(0);var r=dj.getDigitCount(t.toNumber()),i=new ZS(10).pow(r),o=t.div(i),a=1!==r?.05:.1,c=new ZS(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?c:new ZS(Math.ceil(c))}function xj(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 ZS(0),tickMin:new ZS(0),tickMax:new ZS(0)};var o,a=wj(new ZS(e).sub(t).div(n-1),r,i);o=t<=0&&e>=0?new ZS(0):(o=new ZS(t).add(e).div(2)).sub(new ZS(o).mod(a));var c=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new ZS(e).sub(o).div(a).toNumber()),l=c+u+1;return l>n?xj(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 ZS(c).mul(a)),tickMax:o.add(new ZS(u).mul(a))})}var Oj=sj((function(t){var e=vj(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=vj(bj([n,r]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(yj(aj(0,i-1).map((function(){return 1/0})))):[].concat(yj(aj(0,i-1).map((function(){return-1/0}))),[l]);return n>r?lj(s):s}if(u===l)return function(t,e,n){var r=1,i=new ZS(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new ZS(10).pow(dj.getDigitCount(t)-1),i=new ZS(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new ZS(Math.floor(t)))}else 0===t?i=new ZS(Math.floor((e-1)/2)):n||(i=new ZS(Math.floor(t)));var a=Math.floor((e-1)/2);return uj(cj((function(t){return i.add(new ZS(t-a).mul(r)).toNumber()})),aj)(0,e)}(u,i,o);var f=xj(u,l,a,o),h=f.step,p=f.tickMin,d=f.tickMax,y=dj.rangeStep(p,d.add(new ZS(.1).mul(h)),h);return n>r?lj(y):y})),Sj=sj((function(t,e){var n=vj(t,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=vj(bj([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=wj(new ZS(u).sub(c).div(l-1),o,0),f=[].concat(yj(dj.rangeStep(new ZS(c),new ZS(u).sub(new ZS(.99).mul(s)),s)),[u]);return r>i?lj(f):f})),jj=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Aj(){return Aj=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},Aj.apply(this,arguments)}function Pj(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 Mj(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 Mj(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 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 Ej(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 kj(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=Ej(t,jj),s=Qa(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=Pj(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 I.createElement(sc,Aj({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 I.createElement("line",Aj({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return I.createElement(sc,{className:"recharts-errorBars"},f)}function _j(t){return _j="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},_j(t)}function Tj(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 Cj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Tj(Object(n),!0).forEach((function(e){Nj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Tj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Nj(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==_j(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==_j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_j(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}kj.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},kj.displayName="ErrorBar";var Dj=function(t){var e,n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Ga(n,bp);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:Fj(e),value:i||r,payload:e.props}})),Cj(Cj(Cj({},a.props),bp.getWithHeight(a,i)),{},{payload:e,item:a})):null};function Ij(t){return Ij="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},Ij(t)}function Bj(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 Rj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Bj(Object(n),!0).forEach((function(e){$j(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Bj(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"!==Ij(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Ij(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Ij(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Lj(t){return function(t){if(Array.isArray(t))return zj(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 zj(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 zj(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 zj(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 Hj(t,e,n){return ia(t)||ia(e)?n:ja(e)?ra(t,e,n):hi(e)?e(t):n}function Uj(t,e,n,r){var i=mS(t,(function(t){return Hj(t,e)}));if("number"===n){var o=i.filter((function(t){return Sa(t)||parseFloat(t)}));return o.length?[fS(o),aS(o)]:[1/0,-1/0]}return(r?i.filter((function(t){return!ia(t)})):i).map((function(t){return ja(t)||t instanceof Date?t:""}))}var Fj=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},qj=function(t,e,n,r,i){var o=Xa(e.props.children,kj).filter((function(t){return function(t,e,n){return!!ia(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=Hj(e,n,0),i=Array.isArray(r)?[fS(r),aS(r)]:[r,r],o=a.reduce((function(t,n){var r=Hj(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},Vj=function(t,e,n,r,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===n&&o&&qj(t,e,o,r)||Uj(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}),[])},Wj=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},Yj=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},Xj=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*xa(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!wa(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}}))},Gj=new WeakMap,Kj=function(t,e){if("function"!=typeof e)return t;Gj.has(t)||Gj.set(t,new WeakMap);var n=Gj.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},Zj=1e-4,Jj={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=wa(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}Uu(t,e)}},none:Uu,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}Uu(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,Uu(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=wa(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)}}},Qj=function(t,e,n){var r=e.map((function(t){return t.props.dataKey})),i=Jj[n],o=function(){var t=Uc([]),e=Fu,n=Uu,r=qu;function i(i){var o,a,c=Array.from(t.apply(this,arguments),Vu),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=eu(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:Uc(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:Uc(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Fu:"function"==typeof t?t:Uc(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Uu:t,i):n},i}().keys(r).value((function(t,e){return+Hj(t,e,0)})).order(Fu).offset(i);return o(t)},tA=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&&!ia(i[e.dataKey])){var c=_a(n,"value",i[e.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var u=Hj(i,ia(a)?e.dataKey:a);return ia(u)?null:e.scale(u)},eA=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=Hj(o,e.dataKey,e.domain[a]);return ia(c)?null:e.scale(c)-i/2+r},nA=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[fS(e.concat([t[0]]).filter(Sa)),aS(e.concat([t[1]]).filter(Sa))]}),[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}))},rA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,iA=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oA=function(t,e,n){if(hi(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if(Sa(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(rA.test(t[0])){var i=+rA.exec(t[0])[1];r[0]=e[0]-i}else hi(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if(Sa(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(iA.test(t[1])){var o=+iA.exec(t[1])[1];r[1]=e[1]+o}else hi(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},aA=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},cA=function(t,e,n){return t&&t.length?xS(t,ra(n,"type.defaultProps.domain"))?e:t:e},uA=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 Rj(Rj({},Qa(t)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:Fj(t),value:Hj(e,r),type:c,payload:e,chartType:u})};function lA(t){return lA="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},lA(t)}function sA(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 fA(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sA(Object(n),!0).forEach((function(e){hA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function hA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==lA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==lA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===lA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pA=Math.PI/180,dA=function(t){return 180*t/Math.PI},yA=function(t,e,n,r){return{x:t+Math.cos(-pA*r)*n,y:e+Math.sin(-pA*r)*n}},vA=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:dA(u),angleInRadian:u}},gA=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=vA({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?fA(fA({},e),{},{radius:o,angle:gA(p,e)}):null};function bA(t){return bA="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},bA(t)}var wA=["offset"];function xA(t){return function(t){if(Array.isArray(t))return OA(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 OA(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 OA(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 OA(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 SA(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,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 AA(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){PA(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 PA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==bA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==bA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===bA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function MA(){return MA=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},MA.apply(this,arguments)}var EA=function(t){var e=t.value,n=t.formatter,r=ia(t.children)?e:t.children;return hi(n)?n(r):r},kA=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 xa(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=yA(s,f,g,r),x=yA(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=ia(t.id)?Pa("recharts-radial-line-"):t.id;return I.createElement("text",MA({},n,{dominantBaseline:"central",className:Nr("recharts-radial-bar-label",u)}),I.createElement("defs",null,I.createElement("path",{id:S,d:O})),I.createElement("textPath",{xlinkHref:"#".concat(S)},e))},_A=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=yA(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=yA(o,a,(c+u)/2,l);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}},TA=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 AA(AA({},{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 AA(AA({},{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 AA(AA({},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 AA(AA({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var w=n?{width:u,height:l}:{};return"insideLeft"===i?AA({x:a+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===i?AA({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?AA({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===i?AA({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:h},w):"insideTopLeft"===i?AA({x:a+y,y:c+f,textAnchor:g,verticalAnchor:p},w):"insideTopRight"===i?AA({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===i?AA({x:a+y,y:c+l-f,textAnchor:g,verticalAnchor:h},w):"insideBottomRight"===i?AA({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:h},w):ci(i)&&(Sa(i.x)||Oa(i.x))&&(Sa(i.y)||Oa(i.y))?AA({x:a+Ma(i.x,u),y:c+Ma(i.y,l),textAnchor:"end",verticalAnchor:"end"},w):AA({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},CA=function(t){return"cx"in t&&Sa(t.cx)};function NA(t){var e,n=t.offset,r=AA({offset:void 0===n?5:n},SA(t,wA)),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||ia(a)&&ia(c)&&!B(u)&&!hi(u))return null;if(B(u))return L(u,r);if(hi(u)){if(B(e=Y(u,r)))return e}else e=EA(r);var h=CA(i),p=Qa(r,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return kA(r,e,p);var d=h?_A(r):TA(r);return I.createElement(vm,MA({className:Nr("recharts-label",s)},p,d,{breakAll:f}),e)}NA.displayName="Label";var DA=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(Sa(d)&&Sa(y)){if(Sa(s)&&Sa(f))return{x:s,y:f,width:d,height:y};if(Sa(h)&&Sa(p))return{x:h,y:p,width:d,height:y}}return Sa(s)&&Sa(f)?{x:s,y:f,width:0,height:0}:Sa(e)&&Sa(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:{}};NA.parseViewBox=DA,NA.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=DA(t),o=Xa(r,NA).map((function(t,n){return L(t,{viewBox:e||i,key:"label-".concat(n)})}));if(!n)return o;var a=function(t,e){return t?!0===t?I.createElement(NA,{key:"label-implicit",viewBox:e}):ja(t)?I.createElement(NA,{key:"label-implicit",viewBox:e,value:t}):B(t)?t.type===NA?L(t,{key:"label-implicit",viewBox:e}):I.createElement(NA,{key:"label-implicit",content:t,viewBox:e}):hi(t)?I.createElement(NA,{key:"label-implicit",content:t,viewBox:e}):ci(t)?I.createElement(NA,MA({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat(xA(o))};var IA=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},BA=be(IA);function RA(t){return RA="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},RA(t)}var $A=["valueAccessor"],LA=["data","dataKey","clockWise","id","textBreakAll"];function zA(t){return function(t){if(Array.isArray(t))return HA(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 HA(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 HA(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 HA(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 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){VA(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 VA(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==RA(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==RA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===RA(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function WA(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 YA=function(t){return Array.isArray(t.value)?BA(t.value):t.value};function XA(t){var e=t.valueAccessor,n=void 0===e?YA:e,r=WA(t,$A),i=r.data,o=r.dataKey,a=r.clockWise,c=r.id,u=r.textBreakAll,l=WA(r,LA);return i&&i.length?I.createElement(sc,{className:"recharts-label-list"},i.map((function(t,e){var r=ia(o)?n(t,e):Hj(t&&t.payload,o),i=ia(c)?{}:{id:"".concat(c,"-").concat(e)};return I.createElement(NA,UA({},Qa(t,!0),l,i,{parentViewBox:t.parentViewBox,value:r,textBreakAll:u,viewBox:NA.parseViewBox(ia(a)?t:qA(qA({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}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 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){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?ZA(Object(n),!0).forEach((function(e){QA(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ZA(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"!==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}XA.displayName="LabelList",XA.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=Xa(t.children,XA).map((function(t,n){return L(t,{data:e,key:"labelList-".concat(n)})}));return n?[function(t,e){return t?!0===t?I.createElement(XA,{key:"labelList-implicit",data:e}):I.isValidElement(t)||hi(t)?I.createElement(XA,{key:"labelList-implicit",data:e,content:t}):ci(t)?I.createElement(XA,UA({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(zA(r)):r};var tP=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)/pA,f=u?i:i+o*s,h=u?i-o*s:i;return{center:yA(e,n,l,f),circleTangency:yA(e,n,r,f),lineTangency:yA(e,n,l*Math.cos(s*pA),h),theta:s}},eP=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return xa(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+a,u=yA(e,n,i,o),l=yA(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=yA(e,n,r,o),h=yA(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},nP={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},rP=function(t){var e=JA(JA({},nP),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=Nr("recharts-sector",f),d=o-i,y=Ma(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=xa(l-u),f=tP({cx:e,cy:n,radius:i,angle:u,sign:s,cornerRadius:o,cornerIsExternal:c}),h=f.circleTangency,p=f.lineTangency,d=f.theta,y=tP({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 "):eP({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=tP({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=tP({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}):eP({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:s}),I.createElement("path",KA({},Qa(e,!0),{className:p,d:h,role:"img"}))};function iP(t){return iP="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},iP(t)}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 aP(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 cP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?aP(Object(n),!0).forEach((function(e){uP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function uP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==iP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==iP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===iP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lP={curveBasisClosed:function(t){return new ku(t)},curveBasisOpen:function(t){return new _u(t)},curveBasis:function(t){return new Eu(t)},curveBumpX:function(t){return new uu(t,!0)},curveBumpY:function(t){return new uu(t,!1)},curveLinearClosed:function(t){return new Tu(t)},curveLinear:ru,curveMonotoneX:function(t){return new Bu(t)},curveMonotoneY:function(t){return new Ru(t)},curveNatural:function(t){return new Lu(t)},curveStep:function(t){return new Hu(t,.5)},curveStepAfter:function(t){return new Hu(t,1)},curveStepBefore:function(t){return new Hu(t,0)}},sP=function(t){return t.x===+t.x&&t.y===+t.y},fP=function(t){return t.x},hP=function(t){return t.y},pP=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(hi(t))return t;var n="curve".concat(Hc(t));return"curveMonotone"!==n&&"curveBump"!==n||!e?lP[n]||ru:lP["".concat(n).concat("vertical"===e?"Y":"X")]}(r,c),f=l?o.filter((function(t){return sP(t)})):o;if(Array.isArray(a)){var h=l?a.filter((function(t){return sP(t)})):a,p=f.map((function(t,e){return cP(cP({},t),{},{base:h[e]})}));return(e="vertical"===c?cu().y(hP).x1(fP).x0((function(t){return t.base.x})):cu().x(fP).y1(hP).y0((function(t){return t.base.y}))).defined(sP).curve(s),e(p)}return(e="vertical"===c&&Sa(a)?cu().y(hP).x1(fP).x0(a):Sa(a)?cu().x(fP).y1(hP).y0(a):au().x(fP).y(hP)).defined(sP).curve(s),e(f)},dP=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?pP(t):r;return I.createElement("path",oP({},Qa(t),Ra(t),{className:Nr("recharts-curve",e),d:o,ref:i}))};function yP(t){return yP="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},yP(t)}function vP(){return vP=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},vP.apply(this,arguments)}function gP(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 mP(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 mP(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 mP(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 bP(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 wP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?bP(Object(n),!0).forEach((function(e){xP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function xP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==yP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==yP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===yP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var OP=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},SP=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},jP={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},AP=function(t){var e=wP(wP({},jP),t),n=H(),r=gP(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=Nr("recharts-rectangle",f);return v?I.createElement(Mv,{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 I.createElement(Mv,{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},I.createElement("path",vP({},Qa(e,!0),{className:g,d:OP(a,c,r,o,s),ref:n})))})):I.createElement("path",vP({},Qa(e,!0),{className:g,d:OP(a,c,u,l,s)}))};function PP(){return PP=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},PP.apply(this,arguments)}var MP=function(t){var e=t.cx,n=t.cy,r=t.r,i=Nr("recharts-dot",t.className);return e===+e&&n===+n&&r===+r?I.createElement("circle",PP({},Qa(t),Ra(t),{className:i,cx:e,cy:n,r:r})):null};function EP(t){return EP="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},EP(t)}var kP=["x","y","top","left","width","height","className"];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 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 CP(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==EP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==EP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===EP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function NP(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 DP=function(t,e,n,r,i,o){return"M".concat(t,",").concat(i,"v").concat(r,"M").concat(o,",").concat(e,"h").concat(n)},IP=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?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}({x:n,y:i,top:a,left:u,width:s,height:h},NP(t,kP));return Sa(n)&&Sa(i)&&Sa(s)&&Sa(h)&&Sa(a)&&Sa(u)?I.createElement("path",_P({},Qa(d,!0),{className:Nr("recharts-cross",p),d:DP(n,i,s,h,a,u)})):null},BP=zs(Object.getPrototypeOf,Object),RP=Kr,$P=BP,LP=Zr,zP=Function.prototype,HP=Object.prototype,UP=zP.toString,FP=HP.hasOwnProperty,qP=UP.call(Object);var VP=be((function(t){if(!LP(t)||"[object Object]"!=RP(t))return!1;var e=$P(t);if(null===e)return!0;var n=FP.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&UP.call(n)==qP})),WP=Kr,YP=Zr;var XP=be((function(t){return!0===t||!1===t||YP(t)&&"[object Boolean]"==WP(t)}));function GP(t){return GP="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},GP(t)}function KP(){return KP=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},KP.apply(this,arguments)}function ZP(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 JP(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 JP(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 JP(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 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 tM(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){eM(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 eM(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==GP(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==GP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===GP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var nM=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")},rM={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},iM=function(t){var e=tM(tM({},rM),t),n=H(),r=ZP(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=Nr("recharts-trapezoid",f);return y?I.createElement(Mv,{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 I.createElement(Mv,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:h},I.createElement("path",KP({},Qa(e,!0),{className:v,d:nM(c,u,r,o,a),ref:n})))})):I.createElement("g",null,I.createElement("path",KP({},Qa(e,!0),{className:v,d:nM(a,c,u,l,s)})))},oM=["option","shapeType","propTransformer","activeClassName","isActive"];function aM(t){return aM="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},aM(t)}function cM(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 uM(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 lM(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uM(Object(n),!0).forEach((function(e){sM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sM(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==aM(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==aM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===aM(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fM(t,e){return lM(lM({},e),t)}function hM(t){var e=t.shapeType,n=t.elementProps;switch(e){case"rectangle":return I.createElement(AP,n);case"trapezoid":return I.createElement(iM,n);case"sector":return I.createElement(rP,n);case"symbols":if(function(t,e){return"symbols"===t}(e))return I.createElement(el,n);break;default:return null}}function pM(t){var e,n=t.option,r=t.shapeType,i=t.propTransformer,o=void 0===i?fM:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=cM(t,oM);if(B(n))e=L(n,lM(lM({},l),function(t){return B(t)?t.props:t}(n)));else if(hi(n))e=n(l);else if(VP(n)&&!XP(n)){var s=o(n,l);e=I.createElement(hM,{shapeType:r,elementProps:s})}else{var f=l;e=I.createElement(hM,{shapeType:r,elementProps:f})}return u?I.createElement(sc,{className:c},e):e}function dM(t,e){return null!=e&&"trapezoids"in t.props}function yM(t,e){return null!=e&&"sectors"in t.props}function vM(t,e){return null!=e&&"points"in t.props}function gM(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 mM(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function bM(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}function wM(t){var e=t.activeTooltipItem,n=t.graphicalItem,r=t.itemData,i=function(t,e){var n;return dM(t,e)?n="trapezoids":yM(t,e)?n="sectors":vM(t,e)&&(n="points"),n}(n,e),o=function(t,e){var n,r;return dM(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:yM(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:vM(t,e)?e.payload:{}}(n,e),a=r.filter((function(t,r){var a=xS(o,t),c=n.props[i].filter((function(t){var r=function(t,e){var n;return dM(t,e)?n=gM:yM(t,e)?n=mM:vM(t,e)&&(n=bM),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 xM=Math.ceil,OM=Math.max;var SM=gg,jM=1/0;var AM=function(t){return t?(t=SM(t))===jM||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0},PM=function(t,e,n,r){for(var i=-1,o=OM(xM((e-t)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=t,t+=n;return a},MM=dd,EM=AM;var kM=be(function(t){return function(e,n,r){return r&&"number"!=typeof r&&MM(e,n,r)&&(n=r=void 0),e=EM(e),void 0===n?(n=e,e=0):n=EM(n),r=void 0===r?e<n?1:-1:EM(r),PM(e,n,r,t)}}());function _M(t){return _M="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},_M(t)}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 CM(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"!==_M(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==_M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===_M(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var DM=["Webkit","Moz","O","ms"];function IM(t){return IM="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},IM(t)}function BM(){return BM=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},BM.apply(this,arguments)}function RM(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?RM(Object(n),!0).forEach((function(e){qM(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):RM(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function LM(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,VM(r.key),r)}}function zM(t,e){return zM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zM(t,e)}function HM(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=FM(t);if(e){var i=FM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===IM(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return UM(t)}(this,n)}}function UM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FM(t){return FM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},FM(t)}function qM(t,e,n){return(e=VM(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VM(t){var e=function(t,e){if("object"!==IM(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==IM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===IM(e)?e:String(e)}var WM=function(t){return t.changedTouches&&!!t.changedTouches.length},YM=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&&zM(t,e)}(o,$);var e,n,r,i=HM(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),qM(UM(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)})),qM(UM(e),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&e.handleDrag(t.changedTouches[0])})),qM(UM(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()})),qM(UM(e),"handleLeaveWrapper",(function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))})),qM(UM(e),"handleEnterSlideOrTraveller",(function(){e.setState({isTextActive:!0})})),qM(UM(e),"handleLeaveSlideOrTraveller",(function(){e.setState({isTextActive:!1})})),qM(UM(e),"handleSlideDragStart",(function(t){var n=WM(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()})),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(UM(e),"startX"),endX:e.handleTravellerDragStart.bind(UM(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=Hj(n[t],i,t);return hi(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=WM(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((qM(e={},i,c+v),qM(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(qM({},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 I.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=R.only(a);return u?I.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({},Qa(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 I.createElement(sc,{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 I.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 I.createElement(sc,{className:"recharts-brush-texts"},I.createElement(vm,BM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+i/2},s),this.getTextOfTick(e)),I.createElement(vm,BM({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||!Sa(i)||!Sa(o)||!Sa(a)||!Sa(c)||a<=0||c<=0)return null;var v=Nr("recharts-brush",n),g=1===I.Children.count(r),m=function(t,e){if(!t)return null;var n=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),r=DM.reduce((function(t,r){return CM(CM({},t),{},NM({},r+n,e))}),{});return r[t]=e,r}("userSelect","none");return I.createElement(sc,{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 I.createElement(I.Fragment,null,I.createElement("rect",{x:e,y:n,width:r,height:i,fill:o,stroke:"none"}),I.createElement("line",{x1:e+1,y1:a,x2:e+r-1,y2:a,fill:"none",stroke:"#fff"}),I.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 I.isValidElement(t)?I.cloneElement(t,e):hi(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=Wm().domain(kM(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&&LM(e.prototype,n),r&&LM(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();qM(YM,"displayName","Brush"),qM(YM,"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 XM=Tp;var GM=_l,KM=Ih,ZM=function(t,e){var n;return XM(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n},JM=Dr,QM=dd;var tE=be((function(t,e,n){var r=JM(t)?GM:ZM;return n&&QM(t,e,n)&&(e=void 0),r(t,KM(e))})),eE=function(t,e){var n=t.alwaysShow,r=t.ifOverflow;return n&&(r="extendDomain"),r===e},nE=td;var rE=function(t,e,n){"__proto__"==e&&nE?nE(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},iE=rE,oE=kp,aE=Ih;var cE=function(t,e){var n={};return e=aE(e),oE(t,(function(t,r,i){iE(n,r,e(t,r,i))})),n},uE=be(cE);var lE=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},sE=Tp;var fE=lE,hE=function(t,e){var n=!0;return sE(t,(function(t,r,i){return n=!!e(t,r,i)})),n},pE=Ih,dE=Dr,yE=dd;var vE=be((function(t,e,n){var r=dE(t)?fE:hE;return n&&yE(t,e,n)&&(e=void 0),r(t,pE(e))}));function gE(t){return gE="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},gE(t)}var mE=["x","y"];function bE(){return bE=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},bE.apply(this,arguments)}function wE(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 xE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wE(Object(n),!0).forEach((function(e){OE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function OE(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==gE(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==gE(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===gE(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SE(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 jE(t,e){var n=t.x,r=t.y,i=SE(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 xE(xE(xE(xE(xE({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:h,name:e.name,radius:e.radius})}function AE(t){return I.createElement(pM,bE({shapeType:"rectangle",propTransformer:jE,activeClassName:"recharts-active-bar"},t))}var PE=["value","background"];function ME(t){return ME="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},ME(t)}function EE(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 kE(){return kE=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},kE.apply(this,arguments)}function _E(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 TE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_E(Object(n),!0).forEach((function(e){RE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_E(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return 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,$E(r.key),r)}}function NE(t,e){return NE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},NE(t,e)}function DE(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=BE(t);if(e){var i=BE(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===ME(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return IE(t)}(this,n)}}function IE(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function BE(t){return BE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},BE(t)}function RE(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"!==ME(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==ME(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ME(e)?e:String(e)}var LE=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&&NE(t,e)}(o,$);var e,n,r,i=DE(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 RE(IE(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),RE(IE(t),"id",Pa("recharts-bar-")),RE(IE(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),RE(IE(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=Qa(this.props);return t&&t.map((function(t,n){var u=n===o,l=u?a:r,s=TE(TE(TE({},c),t),{},{isActive:u,option:l,index:n,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return I.createElement(sc,kE({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)}),I.createElement(AE,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 I.createElement(Mv,{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=ka(n.x,t.x),a=ka(n.y,t.y),c=ka(n.width,t.width),u=ka(n.height,t.height);return TE(TE({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===r){var s=ka(0,t.height)(i);return TE(TE({},t),{},{y:t.y+t.height-s,height:s})}var f=ka(0,t.width)(i);return TE(TE({},t),{},{width:f})}));return I.createElement(sc,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&&xS(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=Qa(this.props.background);return n.map((function(e,n){e.value;var a=e.background,c=EE(e,PE);if(!a)return null;var u=TE(TE(TE(TE(TE({},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 I.createElement(AE,kE({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=Xa(n.children,kj);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:Hj(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return I.createElement(sc,s,c.map((function(t){return I.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=Nr("recharts-bar",r),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,g=y||v,m=ia(h)?this.id:h;return I.createElement(sc,{className:d},y||v?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(m)},I.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,I.createElement(sc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||p)&&XA.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&&CE(e.prototype,n),r&&CE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();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 HE(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 UE(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 FE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?UE(Object(n),!0).forEach((function(e){qE(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):UE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return 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"!==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)}RE(LE,"displayName","Bar"),RE(LE,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!0,isAnimationActive:!Wv.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),RE(LE,"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=Xa(g,Dg),S=f.map((function(t,e){var r,f,h,y,g,b;if(l?r=function(t,e){if(!e||2!==e.length||!Sa(e[0])||!Sa(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(!Sa(t[0])||t[0]<n)&&(i[0]=n),(!Sa(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=Hj(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=eA({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=xa(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=eA({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+=xa(y||m)*(Math.abs(m)-Math.abs(y))}return TE(TE(TE({},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:[uA(n,t)],tooltipPosition:{x:f+y/2,y:h+g/2}})}));return TE({data:S,layout:d},h)}));var WE=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=!!Ga(u,LE);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=Ma(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:qm(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:dw(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:Wm(),realScaleType:"point"}:"category"===i?{scale:qm(),realScaleType:"band"}:{scale:dw(),realScaleType:"linear"};if(la(r)){var c="scale".concat(Hc(r));return{scale:(QO[c]||Wm)(),realScaleType:QO[c]?c:"point"}}return hi(r)?{scale:r}:{scale:Wm(),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])-Zj,o=Math.max(r[0],r[1])+Zj,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 N=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=Oj(u,i,a);return t.domain([fS(l),aS(l)]),{niceTicks:l}}if(i&&"number"===r){var s=t.domain();return{niceTicks:Sj(s,i,a)}}return null}(T,FE(FE({},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 D=FE(FE(FE({},y),N),{},{realScaleType:C,x:h,y:p,scale:T,width:"xAxis"===r?n.width:y.width,height:"yAxis"===r?n.height:y.height});return D.bandSize=aA(D,N),y.hide||"xAxis"!==r?y.hide||(s[O]+=(d?-1:1)*D.width):s[O]+=(d?-1:1)*D.height,FE(FE({},o),{},qE({},a,D))}),{})},YE=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)}},XE=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&&HE(e.prototype,n),r&&HE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();qE(XE,"EPS",1e-4);var GE=function(t){var e=Object.keys(t).reduce((function(e,n){return FE(FE({},e),{},qE({},n,XE.create(t[n])))}),{});return FE(FE({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return uE(t,(function(t,n){return e[n].apply(t,{bandAware:r,position:i})}))},isInRange:function(t){return vE(t,(function(t,n){return e[n].isInRange(t)}))}})};var KE=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 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(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 QE(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?JE(Object(n),!0).forEach((function(e){tk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tk(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}function ek(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 nk(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 nk(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 nk(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 rk(){return rk=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},rk.apply(this,arguments)}function ik(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;hc(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(eE(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(eE(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 eE(i,"discard")&&tE(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(GE({x:i.scale,y:o.scale}),ja(e),ja(n),r&&2===r.length,t);if(!s)return null;var f=ek(s,2),h=f[0],p=h.x,d=h.y,y=f[1],v=y.x,g=y.y,m=QE(QE({clipPath:eE(t,"hidden")?"url(#".concat(l,")"):void 0},Qa(t,!0)),{},{x1:p,y1:d,x2:v,y2:g});return I.createElement(sc,{className:Nr("recharts-reference-line",c)},function(t,e){return I.isValidElement(t)?I.cloneElement(t,e):hi(t)?t(e):I.createElement("line",rk({},e,{className:"recharts-reference-line-line"}))}(a,m),NA.renderCallByParent(t,function(t){var e=t.x1,n=t.y1,r=t.x2,i=t.y2;return YE({x:e,y:n},{x:r,y:i})}({x1:p,y1:d,x2:v,y2:g})))}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(){return ak=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},ak.apply(this,arguments)}function ck(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 uk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ck(Object(n),!0).forEach((function(e){lk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ck(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function lk(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}ik.displayName="ReferenceLine",ik.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function sk(t){var e=t.x,n=t.y,r=t.r,i=t.alwaysShow,o=t.clipPathId,a=ja(e),c=ja(n);if(hc(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=GE({x:r.scale,y:i.scale}),a=o.apply({x:e,y:n},{bandAware:!0});return eE(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=uk(uk({clipPath:eE(t,"hidden")?"url(#".concat(o,")"):void 0},Qa(t,!0)),{},{cx:l,cy:s});return I.createElement(sc,{className:Nr("recharts-reference-dot",h)},sk.renderDot(f,p),NA.renderCallByParent(t,{x:l-r,y:s-r,width:2*r,height:2*r}))}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(){return hk=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},hk.apply(this,arguments)}function pk(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 dk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pk(Object(n),!0).forEach((function(e){yk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function yk(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}sk.displayName="ReferenceDot",sk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},sk.renderDot=function(t,e){return I.isValidElement(t)?I.cloneElement(t,e):hi(t)?t(e):I.createElement(MP,ak({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};function vk(t){var e=t.x1,n=t.x2,r=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,c=t.clipPathId;hc(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=ja(e),l=ja(n),s=ja(r),f=ja(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=GE({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!eE(i,"discard")||f.isInRange(h)&&f.isInRange(p)?YE(h,p):null}(u,l,s,f,t);if(!p&&!h)return null;var d=eE(t,"hidden")?"url(#".concat(c,")"):void 0;return I.createElement(sc,{className:Nr("recharts-reference-area",o)},vk.renderRect(h,dk(dk({clipPath:d},Qa(t,!0)),p)),NA.renderCallByParent(t,p))}function gk(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 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(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 xk(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wk(Object(n),!0).forEach((function(e){Ok(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ok(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}function Sk(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(Sa(u)||Wv.isSsr)return function(t,e){return gk(t,e+1)}(i,"number"==typeof u&&Sa(u)?u:0);var h=[],p="top"===c||"bottom"===c?"width":"height",d=s&&"width"===p?Ug(s,{fontSize:e,letterSpacing:n}):{width:0,height:0},y=function(t,r){var i=hi(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 KE(r,n)}(Ug(i,{fontSize:e,letterSpacing:n}),d,f):Ug(i,{fontSize:e,letterSpacing:n})[p]},v=i.length>=2?xa(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:gk(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=xk(xk({},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]=xk(xk({},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=xk(xk({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=xk(xk({},o),{},{tickCoord:o.coordinate});mk(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=xk(xk({},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=xk(xk({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=xk(xk({},l),{},{tickCoord:l.coordinate});mk(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=xk(xk({},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})))}vk.displayName="ReferenceArea",vk.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},vk.renderRect=function(t,e){return I.isValidElement(t)?I.cloneElement(t,e):hi(t)?t(e):I.createElement(AP,hk({},e,{className:"recharts-reference-area-rect"}))};var jk=["viewBox"],Ak=["viewBox"],Pk=["ticks"];function Mk(t){return Mk="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},Mk(t)}function Ek(){return Ek=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},Ek.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 _k(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){Bk(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 Tk(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 Ck(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,Rk(r.key),r)}}function Nk(t,e){return Nk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Nk(t,e)}function Dk(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=Ik(t);if(e){var i=Ik(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Mk(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 Ik(t){return Ik=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ik(t)}function Bk(t,e,n){return(e=Rk(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Rk(t){var e=function(t,e){if("object"!==Mk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==Mk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Mk(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&&Nk(t,e)}(o,X);var e,n,r,i=Dk(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=Tk(t,jk),i=this.props,o=i.viewBox,a=Tk(i,Ak);return!Ta(n,o)||!Ta(r,a)||!Ta(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=Sa(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=_k(_k(_k({},Qa(this.props)),Qa(c)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=_k(_k({},u),{},{x1:e,y1:n+l*i,x2:e+r,y2:n+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=_k(_k({},u),{},{x1:e+s*r,y1:n,x2:e+s*r,y2:n+i})}return I.createElement("line",Ek({},u,{className:Nr("recharts-cartesian-axis-line",ra(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=Sk(_k(_k({},this.props),{},{ticks:t}),e,n),h=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=Qa(this.props),y=Qa(u),v=_k(_k({},d),{},{fill:"none"},Qa(a)),g=f.map((function(t,e){var n=r.getTickLineCoord(t),i=n.line,g=n.tick,m=_k(_k(_k(_k({textAnchor:h,verticalAnchor:p},d),{},{stroke:"none",fill:c},y),g),{},{index:e,payload:t,visibleTicksCount:f.length,tickFormatter:l});return I.createElement(sc,Ek({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},$a(r.props,t,e)),a&&I.createElement("line",Ek({},v,i,{className:Nr("recharts-cartesian-axis-tick-line",ra(a,"className"))})),u&&o.renderTickItem(u,m,"".concat(hi(l)?l(t.value,e):t.value).concat(s||"")))}));return I.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=Tk(c,Pk),s=u;return hi(o)&&(s=u&&u.length>0?o(this.props):o(l)),r<=0||i<=0||!s||!s.length?null:I.createElement(sc,{className:Nr("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),NA.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,n){return I.isValidElement(t)?I.cloneElement(t,e):hi(t)?t(e):I.createElement(vm,Ek({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],n&&Ck(e.prototype,n),r&&Ck(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();Bk($k,"displayName","CartesianAxis"),Bk($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 Lk=["type","layout","connectNulls","ref"];function zk(t){return zk="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},zk(t)}function Hk(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 Uk(){return Uk=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},Uk.apply(this,arguments)}function Fk(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?Fk(Object(n),!0).forEach((function(e){Jk(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fk(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vk(t){return function(t){if(Array.isArray(t))return Wk(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 Wk(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 Wk(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 Wk(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 Yk(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 Xk(t,e){return Xk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xk(t,e)}function Gk(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=Zk(t);if(e){var i=Zk(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===zk(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Kk(t)}(this,n)}}function Kk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Zk(t){return Zk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zk(t)}function Jk(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"!==zk(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==zk(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===zk(e)?e:String(e)}var t_=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&&Xk(t,e)}(o,$);var e,n,r,i=Gk(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 Jk(Kk(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),Jk(Kk(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),Jk(Kk(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(Vk(r.slice(0,s)),[c-f]);break}var h=l.length%2==0?[0,u]:[u];return[].concat(Vk(o.repeat(r,a)),Vk(l),h).map((function(t){return"".concat(t,"px")})).join(", ")})),Jk(Kk(t),"id",Pa("recharts-line-")),Jk(Kk(t),"pathRef",(function(e){t.mainCurve=e})),Jk(Kk(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),Jk(Kk(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=Xa(n.children,kj);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:Hj(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return I.createElement(sc,l,c.map((function(t){return I.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=Qa(this.props),l=Qa(i,!0),s=a.map((function(t,e){var n=qk(qk(qk({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 I.createElement(sc,Uk({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=Hk(i,Lk),l=qk(qk(qk({},Qa(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 I.createElement(dP,Uk({},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 I.createElement(Mv,{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=ka(r.x,t.x),o=ka(r.y,t.y);return qk(qk({},t),{},{x:i(a),y:o(a)})}if(f){var u=ka(2*h,t.x),l=ka(p/2,t.y);return qk(qk({},t),{},{x:u(a),y:l(a)})}return qk(qk({},t),{},{x:t.x,y:t.y})}));return n.renderCurveStatically(u,t,e)}var l,s=ka(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||!xS(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=Nr("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=ia(p)?this.id:p,x=null!==(t=Qa(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=(Ja(r)?r:{}).clipDot,M=void 0===P||P,E=2*S+A;return I.createElement(sc,{className:v},g||m?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(w)},I.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&&I.createElement("clipPath",{id:"clipPath-dots-".concat(w)},I.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)&&XA.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(Vk(t),[0]):t,r=[],i=0;i<e;++i)r=[].concat(Vk(r),Vk(n));return r}},{key:"renderDotItem",value:function(t,e){var n;if(I.isValidElement(t))n=I.cloneElement(t,e);else if(hi(t))n=t(e);else{var r=Nr("recharts-line-dot",t?t.className:"");n=I.createElement(MP,Uk({},e,{className:r}))}return n}}],n&&Yk(e.prototype,n),r&&Yk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();Jk(t_,"displayName","Line"),Jk(t_,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Wv.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Jk(t_,"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 qk({points:u.map((function(t,e){var u=Hj(t,a);return"horizontal"===s?{x:tA({axis:n,ticks:i,bandSize:c,entry:t,index:e}),y:ia(u)?null:r.scale(u),value:u,payload:t}:{x:ia(u)?null:n.scale(u),y:tA({axis:r,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var e_,n_=["layout","type","stroke","connectNulls","isRange","ref"];function r_(t){return r_="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},r_(t)}function i_(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 o_(){return o_=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},o_.apply(this,arguments)}function a_(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 c_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a_(Object(n),!0).forEach((function(e){p_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u_(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,d_(r.key),r)}}function l_(t,e){return l_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l_(t,e)}function s_(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=h_(t);if(e){var i=h_(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===r_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f_(t)}(this,n)}}function f_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h_(t){return h_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h_(t)}function p_(t,e,n){return(e=d_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d_(t){var e=function(t,e){if("object"!==r_(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==r_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===r_(e)?e:String(e)}var y_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l_(t,e)}(o,$);var e,n,r,i=s_(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 p_(f_(t=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),p_(f_(t),"id",Pa("recharts-area-")),p_(f_(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),hi(e)&&e()})),p_(f_(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),hi(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=Qa(this.props),f=Qa(c,!0),h=u.map((function(t,e){var n=c_(c_(c_({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 I.createElement(sc,o_({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=aS(r.map((function(t){return t.y||0})));return Sa(n)&&"number"==typeof n?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(aS(n.map((function(t){return t.y||0}))),u)),Sa(u)?I.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=aS(r.map((function(t){return t.x||0})));return Sa(n)&&"number"==typeof n?u=Math.max(n,u):n&&Array.isArray(n)&&n.length&&(u=Math.max(aS(n.map((function(t){return t.x||0}))),u)),Sa(u)?I.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=i_(i,n_);return I.createElement(sc,{clipPath:n?"url(#clipPath-".concat(r,")"):null},I.createElement(dP,o_({},Qa(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&I.createElement(dP,o_({},Qa(this.props),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&I.createElement(dP,o_({},Qa(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 I.createElement(Mv,{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=ka(r.x,t.x),o=ka(r.y,t.y);return c_(c_({},t),{},{x:i(a),y:o(a)})}return t}));return c=Sa(o)&&"number"==typeof o?ka(p,o)(a):ia(o)||wa(o)?ka(p,0)(a):o.map((function(t,e){var n=Math.floor(e*u);if(p[n]){var r=p[n],i=ka(r.x,t.x),o=ka(r.y,t.y);return c_(c_({},t),{},{x:i(a),y:o(a)})}return t})),n.renderAreaStatically(l,c,t,e)}return I.createElement(sc,null,I.createElement("defs",null,I.createElement("clipPath",{id:"animationClipPath-".concat(e)},n.renderClipRect(a))),I.createElement(sc,{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||!xS(c,r)||!xS(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=Nr("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=ia(p)?this.id:p,x=null!==(t=Qa(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=(Ja(r)?r:{}).clipDot,M=void 0===P||P,E=2*S+A;return I.createElement(sc,{className:v},g||m?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(w)},I.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&&I.createElement("clipPath",{id:"clipPath-dots-".concat(w)},I.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)&&XA.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&&u_(e.prototype,n),r&&u_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),o}();e_=y_,p_(y_,"displayName","Area"),p_(y_,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Wv.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),p_(y_,"getBaseValue",(function(t,e,n,r){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(Sa(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]})),p_(y_,"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=e_.getBaseValue(n,r,i,o),g="horizontal"===d,m=!1,b=h.map((function(t,e){var n;y?n=s[f+e]:(n=Hj(t,l),Array.isArray(n)?m=!0:n=[v,n]);var r=null==n[1]||y&&null==Hj(t,l);return g?{x:tA({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:tA({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),c_({points:b,baseLine:e,layout:d,isRange:m},p)})),p_(y_,"renderDotItem",(function(t,e){return I.isValidElement(t)?I.cloneElement(t,e):hi(t)?t(e):I.createElement(MP,o_({},e,{className:"recharts-area-dot"}))}));var v_=function(){return null};v_.displayName="XAxis",v_.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 g_=function(){return null};g_.displayName="YAxis",g_.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_=Ih,b_=Xs,w_=Js;var x_=function(t){return function(e,n,r){var i=Object(e);if(!b_(e)){var o=m_(n);e=w_(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}},O_=AM;var S_=Bh,j_=Ih,A_=function(t){var e=O_(t),n=e%1;return e==e?n?e-n:e:0},P_=Math.max;var M_=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:A_(n);return i<0&&(i=P_(r+i,0)),S_(t,j_(e),i)},E_=be(x_(M_)),k_="production"===process.env.NODE_ENV,__="Invariant failed";function T_(t,e){if(!t){if(k_)throw new Error(__);var n="function"==typeof e?e():e,r=n?"".concat(__,": ").concat(n):__;throw new Error(r)}}function C_(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,o=t.endAngle;return{points:[yA(e,n,r,i),yA(e,n,r,o)],cx:e,cy:n,radius:r,startAngle:i,endAngle:o}}function N_(t){return function(t){if(Array.isArray(t))return D_(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 D_(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 D_(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 D_(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 I_=function(t,e,n,r,i){var o=Xa(t,ik),a=Xa(t,sk),c=[].concat(N_(o),N_(a)),u=Xa(t,vk),l="".concat(r,"Id"),s=r[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===n&&eE(e.props,"extendDomain")&&Sa(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&&eE(e.props,"extendDomain")&&Sa(e.props[h])&&Sa(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 Sa(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},B_={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}(B_);var R_=new(be(B_.exports)),$_="recharts.syncMouseEvents";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){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,U_(r.key),r)}}function H_(t,e,n){return(e=U_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U_(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 F_=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),H_(this,"activeIndex",0),H_(this,"coordinateList",[]),H_(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&&z_(e.prototype,n),r&&z_(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function q_(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 C_(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,h=yA(c,u,l,f),p=yA(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 V_=["item"],W_=["children","className","width","height","style","compact","title","desc"];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 X_(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)||rT(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 G_(){return G_=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},G_.apply(this,arguments)}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 Z_(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,uT(r.key),r)}}function J_(t,e){return J_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},J_(t,e)}function Q_(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=eT(t);if(e){var i=eT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===Y_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return tT(t)}(this,n)}}function tT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eT(t){return eT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},eT(t)}function nT(t){return function(t){if(Array.isArray(t))return iT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||rT(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 rT(t,e){if(t){if("string"==typeof t)return iT(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)?iT(t,e):void 0}}function iT(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 oT(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 aT(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oT(Object(n),!0).forEach((function(e){cT(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oT(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function cT(t,e,n){return(e=uT(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uT(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)}var lT={xAxis:["bottom","top"],yAxis:["left","right"]},sT={width:"100%",height:"100%"},fT={x:0,y:0},hT=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(nT(t),nT(n)):t}),[]);return o.length>0?o:t&&t.length&&Sa(r)&&Sa(i)?t.slice(r,i+1):[]};function pT(t){return"number"===t?[0,"auto"]:void 0}var dT=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,a=hT(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=_a(void 0===s?a:s,o.dataKey,r):l=s&&s[n]||a[n];return l?[].concat(nT(i),[uA(c,l)]):i}),[])},yT=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(xa(s-l)!==xa(f-s)){var p=[];if(xa(f-s)===xa(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=dT(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 aT(aT(aT({},r),yA(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=r.angle;return aT(aT(aT({},r),yA(r.cx,r.cy,c,u)),{},{angle:u,radius:c})}return fT}(n,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:h}}return null},vT=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=Wj(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=hT(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&&Sa(r)&&Sa(i))return!0}return!1})(n.props.domain,g,y)&&(S=oA(n.props.domain,null,g),!h||"number"!==y&&"auto"===b||(A=Uj(P,v,"category")));var E=pT(y);if(!S||0===S.length){var k,_=null!==(k=n.props.domain)&&void 0!==k?k:E;if(v){if(S=Uj(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=kM(0,M)):m||(S=cA(_,S,n).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(nT(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!ia(t)})):cA(_,S,n).reduce((function(t,e){return t.indexOf(e)>=0||""===e||ia(e)?t:[].concat(nT(t),[e])}),[]);else if("number"===y){var C=function(t,e,n,r,i){var o=e.map((function(e){return qj(t,e,n,i,r)})).filter((function(t){return!ia(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);C&&(S=C)}!h||"number"!==y&&"auto"===b||(A=Uj(P,v,"category"))}else S=h?kM(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:nA(a[O].stackGroups,c,u):Vj(P,r.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),y,l,!0);if("number"===y)S=I_(s,S,O,i,w),_&&(S=oA(_,S,g));else if("category"===y&&_){var N=_;S.every((function(t){return N.indexOf(t)>=0}))&&(S=N)}}return aT(aT({},e),{},cT({},O,aT(aT({},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})))}),{})},gT=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=Xa(l,i),h={};return f&&f.length?h=vT(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=hT(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),h=f.length,p=Wj(l,i),d=-1;return n.reduce((function(t,e){var y,v=e.props[o],g=pT("number");return t[v]?t:(d++,p?y=kM(0,h):a&&a[v]&&a[v].hasStack?(y=nA(a[v].stackGroups,c,u),y=I_(s,y,v,i)):(y=oA(g,Vj(f,n.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",l),r.defaultProps.allowDataOverflow),y=I_(s,y,v,i)),aT(aT({},t),{},cT({},v,aT(aT({axisType:i},r.defaultProps),{},{hide:!0,orientation:ra(lT,"".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=Ga(e,YM),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)}},bT=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"}},wT=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=Ga(l,YM),h=Ga(l,bp),p=Object.keys(a).reduce((function(t,e){var n=a[e],r=n.orientation;return n.mirror||n.hide?t:aT(aT({},t),{},cT({},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:aT(aT({},t),{},cT({},r,ra(t,"".concat(r))+n.height))}),{top:s.top||0,bottom:s.bottom||0}),y=aT(aT({},d),p),v=y.bottom;f&&(y.bottom+=f.props.height||YM.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=Dj({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&&Sa(t[h]))return Rj(Rj({},t),{},$j({},h,t[h]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===h)&&"middle"!==p&&Sa(t[p]))return Rj(Rj({},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 aT(aT({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},xT=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=bT(s),y=d.numericAxisName,v=d.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=qa(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 qa(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:ia(v)?e:v})}}return i}({barSize:l,stackGroups:r}),b=[];return n.forEach((function(n,l){var d=hT(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?T_(!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:"")):T_(!1));var l=c[u];return aT(aT({},t),{},(cT(a={},r.axisType,l),cT(a,"".concat(r.axisType,"Ticks"),Xj(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(ja(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=qa(n.type).indexOf("Bar")>=0,k=aA(A,P),_=[];if(E){var T,C,N=ia(x)?p:x,D=null!==(T=null!==(C=aA(A,P,!0))&&void 0!==C?C:N)&&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=Ma(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(Lj(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=Ma(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(Lj(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:D!==k?D:k,sizeList:m[S],maxBarSize:N}),D!==k&&(_=_.map((function(t){return aT(aT({},t),{},{position:aT(aT({},t.position),{},{offset:t.position.offset-D/2})})})))}var I,B,R,$=n&&n.type&&n.type.getComposedData;$&&b.push({props:aT(aT({},$(aT(aT({},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)},cT(I,y,j[y]),cT(I,v,j[v]),cT(I,"animationId",o),I)),childIndex:(B=n,R=t.children,Ya(R).indexOf(B)),item:n})})),b},p=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Ka({props:i}))return null;var l=i.children,f=i.layout,p=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=bT(f),g=v.numericAxisName,m=v.cateAxisName,b=Xa(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(ja(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[Pa("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[e]};return Rj(Rj({},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 Rj(Rj({},e),{},$j({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:Qj(t,a.items,i)}))}),{})),Rj(Rj({},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 aT(aT({},t),{},cT({},n,gT(i,aT(aT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=wT(aT(aT({},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=Ea(A),{tooltipTicks:j=Xj(S,!1,!0),orderedTooltipTicks:md(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:aA(S,j)}),M=h(i,aT(aT({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:O}));return aT(aT({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&&J_(t,e)}(u,X);var e,r,i,a=Q_(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),cT(tT(i=a.call(this,t)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),cT(tT(i),"accessibilityManager",new F_),cT(tT(i),"handleLegendBBoxUpdate",(function(t){if(t){var e=i.state,n=e.dataStartIndex,r=e.dataEndIndex,o=e.updateId;i.setState(aT({legendBBox:t},p({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},aT(aT({},i.state),{},{legendBBox:t}))))}})),cT(tT(i),"handleReceiveSyncEvent",(function(t,e,n){if(i.props.syncId===t){if(n===i.eventEmitterSymbol&&"function"!=typeof i.props.syncMethod)return;i.applySyncEvent(e)}})),cT(tT(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 aT({dataStartIndex:e,dataEndIndex:n},p({props:i.props,dataStartIndex:e,dataEndIndex:n,updateId:r},i.state))})),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}})),cT(tT(i),"handleMouseEnter",(function(t){var e=i.getMouseInfo(t);if(e){var n=aT(aT({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;hi(r)&&r(n,t)}})),cT(tT(i),"triggeredAfterMouseMove",(function(t){var e=i.getMouseInfo(t),n=e?aT(aT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;hi(r)&&r(n,t)})),cT(tT(i),"handleItemMouseEnter",(function(t){i.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),cT(tT(i),"handleItemMouseLeave",(function(){i.setState((function(){return{isTooltipActive:!1}}))})),cT(tT(i),"handleMouseMove",(function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)})),cT(tT(i),"handleMouseLeave",(function(t){var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var n=i.props.onMouseLeave;hi(n)&&n(e,t)})),cT(tT(i),"handleOuterEvent",(function(t){var e,n=function(t){var e=t&&t.type;return e&&Fa[e]?Fa[e]:null}(t),r=ra(i.props,"".concat(n));n&&hi(r)&&r(null!==(e=/.*touch.*/i.test(n)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)})),cT(tT(i),"handleClick",(function(t){var e=i.getMouseInfo(t);if(e){var n=aT(aT({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;hi(r)&&r(n,t)}})),cT(tT(i),"handleMouseDown",(function(t){var e=i.props.onMouseDown;hi(e)&&e(i.getMouseInfo(t),t)})),cT(tT(i),"handleMouseUp",(function(t){var e=i.props.onMouseUp;hi(e)&&e(i.getMouseInfo(t),t)})),cT(tT(i),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),cT(tT(i),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])})),cT(tT(i),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])})),cT(tT(i),"triggerSyncEvent",(function(t){void 0!==i.props.syncId&&R_.emit($_,i.props.syncId,t,i.eventEmitterSymbol)})),cT(tT(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(aT({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=aT(aT({},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=dT(i.state,i.props.data,s),x=d[s]?{x:"horizontal"===n?d[s].coordinate:g,y:"horizontal"===n?m:d[s].coordinate}:fT;i.setState(aT(aT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else i.setState(t)})),cT(tT(i),"verticalCoordinatesGenerator",(function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return Yj(Sk(aT(aT(aT({},$k.defaultProps),n),{},{ticks:Xj(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)})),cT(tT(i),"horizontalCoordinatesGenerator",(function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return Yj(Sk(aT(aT(aT({},$k.defaultProps),n),{},{ticks:Xj(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)})),cT(tT(i),"axesTicksGenerator",(function(t){return Xj(t,!0)})),cT(tT(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=dP;if("ScatterChart"===n)p=a,y=IP;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=AP;else if("radial"===d){var v=C_(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=rP}else p={points:q_(d,a,u)},y=dP;var w=t.key||"_recharts-cursor",x=aT(aT(aT(aT({stroke:"#ccc",pointerEvents:"none"},u),p),Qa(t.props.cursor)),{},{payload:c,payloadIndex:l,key:w,className:"recharts-tooltip-cursor"});return B(t.props.cursor)?L(t.props.cursor,x):Y(y,x)})),cT(tT(i),"renderPolarAxis",(function(t,e,n){var r=ra(t,"type.axisType"),o=ra(i.state,"".concat(r,"Map")),a=o&&o[t.props["".concat(r,"Id")]];return L(t,aT(aT({},a),{},{className:r,key:t.key||"".concat(e,"-").concat(n),ticks:Xj(a,!0)}))})),cT(tT(i),"renderXAxis",(function(t,e,n){var r=i.state.xAxisMap[t.props.xAxisId];return i.renderAxis(r,t,e,n)})),cT(tT(i),"renderYAxis",(function(t,e,n){var r=i.state.yAxisMap[t.props.yAxisId];return i.renderAxis(r,t,e,n)})),cT(tT(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=Ea(n),s=E_(r,(function(t){return vE(t.domain,Number.isFinite)}))||Ea(r),f=t.props||{};return L(t,{key:t.key||"grid",x:Sa(f.x)?f.x:o.left,y:Sa(f.y)?f.y:o.top,width:Sa(f.width)?f.width:o.width,height:Sa(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})})),cT(tT(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=Ea(c),s=Ea(u),f=s.cx,h=s.cy,p=s.innerRadius,d=s.outerRadius;return L(t,{polarAngles:Array.isArray(r)?r:Xj(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(o)?o:Xj(l,!0).map((function(t){return t.coordinate})),cx:f,cy:h,innerRadius:p,outerRadius:d,key:t.key||"polar-grid",radialLines:n})})),cT(tT(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=Dj({children:n,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=K_(u,V_);return L(s,aT(aT({},f),{},{chartWidth:r,chartHeight:o,margin:a,onBBoxUpdate:i.handleLegendBBoxUpdate}))})),cT(tT(i),"renderTooltip",(function(){var t,e=Ga(i.props.children,rg);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 L(e,{viewBox:aT(aT({},u),{},{x:u.left,y:u.top}),active:l,label:c,payload:l?a:[],coordinate:o})})),cT(tT(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 L(t,{key:t.key||"_recharts-brush",onChange:Kj(i.handleBrushChange,t.props.onChange),data:r,x:Sa(t.props.x)?t.props.x:a.left,y:Sa(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(n.bottom||0),width:Sa(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),cT(tT(i),"renderReferenceElement",(function(t,e,n){if(!t)return null;var r=tT(i).clipPathId,o=i.state,a=o.xAxisMap,c=o.yAxisMap,u=o.offset,l=t.props,s=l.xAxisId,f=l.yAxisId;return L(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})})),cT(tT(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=aT(aT({index:i,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:Fj(e.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(i)},Qa(s)),Ra(s));return a.push(u.renderActiveDot(s,f)),r?a.push(u.renderActiveDot(s,aT(aT({},f),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a})),cT(tT(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=Ga(i.props.children,rg),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:Kj(i.handleItemMouseEnter,t.props.onClick)}:"axis"!==o&&(O={onMouseLeave:Kj(i.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:Kj(i.handleItemMouseEnter,t.props.onMouseEnter)});var S=L(t,aT(aT({},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=aT(aT(aT({},r.props),O),{},{activeIndex:E});return[L(M,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());_=_a(p,C,s),T=d&&y&&_a(y,C,s)}else _=null==p?void 0:p[l],T=d&&y&&y[l];if(w||b){var N=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[L(t,aT(aT(aT({},r.props),O),{},{activeIndex:N})),null,null]}if(!ia(_))return[S].concat(nT(i.renderActivePoints({item:r,activePoint:_,basePoint:T,childIndex:l,isRange:d})))}return d?[S,null,null]:[S,null]})),cT(tT(i),"renderCustomized",(function(t,e,n){return L(t,aT(aT({key:"recharts-customized-".concat(n)},i.props),i.state))})),cT(tT(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:Pa("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=Pg(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=Ga(this.props.children,rg);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=Ea(l).scale,h=Ea(s).scale,p=f&&f.invert?f.invert(o.chartX):null,d=h&&h.invert?h.invert(o.chartY):null;return aT(aT({},o),{},{xValue:p,yValue:d})}var y=yT(this.state,this.props.data,this.props.layout,c);return y?aT(aT({},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=Ea(u);return mA({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=Ga(t,rg),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}),aT(aT({},Ra(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){R_.on($_,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){R_.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===qa(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 I.createElement($k,G_({},t,{className:Nr("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 I.createElement("defs",null,I.createElement("clipPath",{id:t},I.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=X_(e,2),r=n[0],i=n[1];return aT(aT({},t),{},cT({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var n=X_(e,2),r=n[0],i=n[1];return aT(aT({},t),{},cT({},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=qa(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return SP(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(dM(a,r)||yM(a,r)||vM(a,r)){var h=wM({graphicalItem:a,activeTooltipItem:r,itemData:u.props.data}),p=void 0===u.props.activeIndex?h:u.props.activeIndex;return{graphicalItem:aT(aT({},a),{},{childIndex:p}),payload:vM(a,r)?u.props.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t=this;if(!Ka(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=K_(r,W_),p=Qa(h);if(l)return I.createElement(ac,G_({},p,{width:a,height:c,title:s,desc:f}),this.renderClipPath(),nc(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 I.createElement("div",G_({className:Nr("recharts-wrapper",o),style:aT({position:"relative",cursor:"default",width:a,height:c},u)},d,{ref:function(e){t.container=e},role:"region"}),I.createElement(ac,G_({},p,{width:a,height:c,title:s,desc:f,style:sT}),this.renderClipPath(),nc(i,this.renderMap)),this.renderLegend(),this.renderTooltip())}}],r&&Z_(e.prototype,r),i&&Z_(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(),cT(e,"displayName",n),cT(e,"defaultProps",aT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),cT(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 aT(aT(aT({},s),{},{updateId:0},p(aT(aT({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||!Ta(l,e.prevMargin)){var f=mT(t),h={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},d=aT(aT({},yT(e,r,c)),{},{updateId:e.updateId+1}),y=aT(aT(aT({},f),h),d);return aT(aT(aT({},y),p(aT({props:t},y),e)),{},{prevDataKey:n,prevData:r,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!tc(i,e.prevChildren)){var v=!ia(r)?e.updateId:e.updateId+1;return aT(aT({updateId:v},p(aT(aT({props:t},e),{},{updateId:v}),e)),{},{prevChildren:i})}return null})),cT(e,"renderActiveDot",(function(t,e){var n;return n=B(t)?L(t,e):hi(t)?t(e):I.createElement(MP,e),I.createElement(sc,{className:"recharts-active-dot",key:e.key},n)})),e},OT=xT({chartName:"LineChart",GraphicalChild:t_,axisComponents:[{axisType:"xAxis",AxisComp:v_},{axisType:"yAxis",AxisComp:g_}],formatAxisMap:WE}),ST=xT({chartName:"AreaChart",GraphicalChild:y_,axisComponents:[{axisType:"xAxis",AxisComp:v_},{axisType:"yAxis",AxisComp:g_}],formatAxisMap:WE});const jT=({data:n,dataKey:r,width:i="100%",height:o="100%",areaType:a="monotone"})=>{const{isNetGain:c}=wr({data:n,dataKey:r}),u=c?Or.mint():Or.coolElegance();return e(Ng,{width:i,minHeight:o,children:t(ST,{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(y_,{type:a,dataKey:r,stroke:u,fill:"url(#dataFill)"})]})})},AT=()=>{const t=u({ssr:!1});return e(l,{children:e(s,{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})})},PT=({children:t,...n})=>e(f,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Or.coolElegance(),boxShadow:"none",borderRadius:"xl",...n,children:t}),MT=n=>{const{size:r,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,errorMessage:u,label:l,labelPosition:s="left",spaceBetween:f,...g}=n;let m;return c||(m=e(at,{})),t(h,{as:p,flexDir:"column",isInvalid:Boolean(u),isDisabled:i,isReadOnly:o,isRequired:a,...g,children:[t(p,{w:"full",justifyContent:f?"space-between":"auto",children:["left"===s&&e(d,{size:r,m:"0",mr:"3",children:l}),e(y,{icon:m,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(u),size:r}),"right"===s&&e(d,{size:r,m:"0",ml:"3",children:l})]}),e(p,{w:"full",children:u&&e(v,{size:r,children:u})})]})},ET=n=>{const{size:r,isDisabled:i,isReadOnly:o,isRequired:a,spellCheck:c=!1,name:u,label:l,register:s,errorMessage:f,helperText:p,IconLeft:y,IconRight:O,...S}=n,j=xr(r),A=s?s(u):void 0;return t(h,{isInvalid:Boolean(f),isDisabled:i,isReadOnly:o,isRequired:a,children:[l&&e(d,{size:r,children:l}),t(g,{size:r,children:[y&&e(m,{children:e(y,{})}),e(b,{size:r,spellCheck:c,...A,...S}),O&&e(w,{children:e(O,{})})]}),f&&e(v,{size:r,children:f}),p&&e(x,{fontSize:j,children:p})]})},kT=({data:n,dataKey:r,width:i="100%",height:o="100%",lineType:a="linear"})=>{const{isNetGain:c}=wr({data:n,dataKey:r}),u=c?Or.mint():Or.heroicRed();return e(Ng,{width:i,minHeight:o,children:t(OT,{data:n,children:[e(g_,{domain:["dataMin","dataMax"],hide:!0}),e(t_,{type:a,dataKey:r,stroke:u,strokeWidth:"2",dot:!1,scale:"threshold"})]})})},_T=n=>{const{children:r,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:p,...y}=n,g=xr(i),m=l?l(u):void 0;return t(h,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[p&&e(d,{size:i,children:p}),e(O,{icon:e(et,{}),size:i,...m,...y,children:r}),s&&e(v,{size:i,children:s}),f&&e(x,{fontSize:g,children:f})]})},TT=n=>{const{label:r,IconLeft:i,IconRight:o,onClose:a,...c}=n,[u,l]=F(!0);return u?t(S,{...c,children:[i&&e(j,{as:i}),e(A,{children:r}),o&&e(P,{as:o}),a&&e(M,{onClick:()=>{a(),l(!1)}})]}):null},CT=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=at;break;case"warning":l=St,u="yellow";break;case"loading":u="brand",l=D;break;default:u="brand",l=St}return t(E,{as:p,colorScheme:u,justifyContent:"space-between",status:c,children:[t(p,{alignItems:"center",children:[e(k,{children:e(l,{size:"sm"})}),t(_,{children:[e(T,{children:i}),e(C,{children:r})]})]}),a&&e(N,{onClick:o})]})};export{jT as CfAreaChart,AT as CfBreakpointDebugger,PT as CfCard,MT as CfCheckbox,ET as CfInput,kT as CfLineChart,_T as CfSelect,TT as CfTag,CT as CfToast,G as IconAlert,K as IconArrowDown,Z as IconArrowUp,J as IconBank,Q as IconBarChart,tt as IconCalendar,et as IconCaretDown,nt as IconCaretLeft,rt as IconCaretRight,it as IconCaretUp,ot as IconCent,at as IconCheck,ct as IconChecking,ut as IconClose,lt as IconConnect,st as IconCopy,ft as IconDollar,ht as IconDownload,pt as IconEdit,dt as IconEnter,yt as IconEnterInverted,vt as IconExchange,gt as IconFilter,mt as IconHelp,bt as IconHistory,wt as IconHome,xt as IconIndicatorDown,Ot as IconIndicatorUp,St as IconInfo,jt as IconMail,At as IconMenu,Pt as IconMore,Mt as IconNotification,Et as IconOverview,kt as IconPercent,_t as IconPieChart,Tt as IconPlus,Ct as IconReports,Nt as IconReservesSuccess,Dt as IconReservesWarning,It as IconSearch,Bt as IconSettings,Rt as IconSettlement,$t as IconSignIn,Lt as IconSignOut,zt as IconSort,Ht as IconSpinner,Ut as IconSupport,Ft as IconTrash,qt as IconUpload,Vt as IconUser,Me as convertToUTCEpochTime,Tr as coreTheme,Ee as formatPercentage,Be as formatUSD,wr as getDelta,Or as uiColors};
23
30
  //# sourceMappingURL=index.js.map