@cryptofi/core-ui 0.31.0 → 0.33.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,4 @@
1
- import{jsxs as t,jsx as e}from"react/jsx-runtime";import{chakra as r,createMultiStyleConfigHelpers as n,defineStyle as i,defineStyleConfig as o,extendTheme as a,withDefaultColorScheme as c,useBreakpoint as u,Portal as l,Text as s,ButtonGroup as f,Button as h,Card as p,FormControl as d,Flex as y,FormLabel as v,Checkbox as g,FormErrorMessage as m,InputGroup as b,InputLeftAddon as w,InputLeftElement as x,Input as O,InputRightElement as S,InputRightAddon as j,FormHelperText as A,Box as P,Tooltip as M,Modal as E,ModalOverlay as k,ModalContent as _,ModalHeader as T,ModalCloseButton as C,ModalBody as D,ModalFooter as N,Select as I,Tag as B,TagLeftIcon as L,TagLabel as R,TagRightIcon as $,TagCloseButton as z,Alert as H,AlertIcon as F,AlertTitle as U,AlertDescription as V,CloseButton as q,Spinner as W}from"@chakra-ui/react";import X,{isValidElement as Y,Children as K,PureComponent as G,forwardRef as Z,useRef as J,useImperativeHandle as Q,useState as tt,useCallback as et,useEffect as rt,useMemo as nt,cloneElement as it,createElement as ot,useContext as at,createContext as ct,Component as ut}from"react";const lt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),st=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17","aria-hidden":"true",...r,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"})})})]}))),ft=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16","aria-hidden":"true",...r,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"})})})]}))),ht=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),pt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),dt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),yt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),vt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),gt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),mt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),bt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),wt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),xt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 3.5h-6.528a1 1 0 0 1-.447-.1L8.869 1.816A3 3 0 0 0 7.528 1.5H5a5.006 5.006 0 0 0-5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-10a5.006 5.006 0 0 0-5-5m-14 0h2.528c.155 0 .308.033.447.1l3.156 1.58c.416.208.875.318 1.341.32H19a3 3 0 0 1 2.779 1.882L2 7.494V6.5a3 3 0 0 1 3-3m14 18H5a3 3 0 0 1-3-3V9.494l20-.113v9.12a3 3 0 0 1-3 3"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ot=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),St=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),jt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),At=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Pt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Mt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Et=r((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"})}))),kt=r((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"})}))),_t=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Tt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Ct=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("path",{fill:"#000",d:"M9.333 18.5a.67.67 0 0 1-.4-.133l-2.666-2A.67.67 0 0 1 6 15.833v-3.746L1.323 6.825A2.6 2.6 0 0 1 3.267 2.5h9.467a2.6 2.6 0 0 1 1.941 4.325L10 12.087v5.746a.667.667 0 0 1-.667.667m-2-3 1.334 1v-4.667c0-.163.06-.32.168-.442l4.846-5.452a1.266 1.266 0 0 0-.947-2.106H3.266a1.267 1.267 0 0 0-.948 2.106l4.846 5.452c.109.122.169.28.168.442z"}),e("rect",{width:8,height:8,x:10,y:.5,fill:"#D21919",rx:4})]}))),Dt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Nt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),It=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Bt=r((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"})}))),Lt=r((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"})}))),Rt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),$t=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),zt=r((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"})}))),Ht=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Ft=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Ut=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Vt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})]}))),qt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Wt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Xt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Yt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Kt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Gt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Zt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Jt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Qt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),te=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),ee=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),re=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),ne=r((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"})}))),ie=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),oe=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),ae=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),ce=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M7.986 1.833a6.71 6.71 0 0 1 4.758 2h-2.086a.67.67 0 0 0-.668.667.666.666 0 0 0 .668.667h2.768a1.24 1.24 0 0 0 1.24-1.238V1.167A.666.666 0 0 0 14 .5a.67.67 0 0 0-.668.667v1.385a8.01 8.01 0 0 0-8.278-1.5 8 8 0 0 0-3.48 2.641 8 8 0 0 0-1.57 4.074.67.67 0 0 0 .668.733.657.657 0 0 0 .66-.585 6.67 6.67 0 0 1 2.146-4.329 6.7 6.7 0 0 1 4.51-1.753M15.33 8.5a.657.657 0 0 0-.661.585 6.65 6.65 0 0 1-1.362 3.488 6.684 6.684 0 0 1-10.05.593h2.085a.67.67 0 0 0 .668-.666.666.666 0 0 0-.668-.667H2.574a1.24 1.24 0 0 0-1.146.764c-.063.15-.095.312-.095.474v2.762a.666.666 0 0 0 .668.667.67.67 0 0 0 .668-.667v-1.385a8.01 8.01 0 0 0 8.278 1.5 8 8 0 0 0 3.48-2.641 8 8 0 0 0 1.57-4.074.67.67 0 0 0-.668-.733"})}))),ue=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1503 1504","aria-hidden":"true",...r,children:[e("path",{fill:"#fff",d:"M287 258h928v844H287z"}),e("path",{fill:"#E84142",fillRule:"evenodd",d:"M1502.5 752c0 414.77-336.23 751-751 751-414.766 0-751-336.23-751-751C.5 337.234 336.734 1 751.5 1c414.77 0 751 336.234 751 751m-963.812 298.86H392.94c-30.626 0-45.754 0-54.978-5.9-9.963-6.46-16.051-17.16-16.789-28.97-.554-10.88 7.011-24.168 22.139-50.735l359.87-634.32c15.313-26.936 23.061-40.404 32.839-45.385 10.516-5.35 23.062-5.35 33.578 0 9.778 4.981 17.527 18.449 32.839 45.385l73.982 129.144.377.659c16.539 28.897 24.926 43.551 28.588 58.931a109.56 109.56 0 0 1 0 51.289c-3.69 15.497-11.992 30.257-28.781 59.591L687.573 964.702l-.489.856c-16.648 29.135-25.085 43.902-36.778 55.042-12.73 12.18-28.043 21.03-44.832 26.02-15.313 4.24-32.47 4.24-66.786 4.24m368.062 0h208.84c30.81 0 46.31 0 55.54-6.08 9.96-6.46 16.23-17.35 16.79-29.15.53-10.53-6.87-23.3-21.37-48.323-.5-.852-1-1.719-1.51-2.601L1060.43 785.75l-1.19-2.015c-14.7-24.858-22.12-37.411-31.65-42.263a36.73 36.73 0 0 0-33.391 0c-9.594 4.981-17.342 18.08-32.655 44.462L857.306 964.891l-.357.616c-15.259 26.34-22.885 39.503-22.335 50.303.738 11.81 6.826 22.69 16.788 29.15 9.041 5.9 24.538 5.9 55.348 5.9",clipRule:"evenodd"})]}))),le=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 788 788","aria-hidden":"true",...r,children:[e("circle",{cx:394,cy:394,r:394,style:{fill:"#0ac18e"}}),e("path",{d:"M516.9 261.7c-19.8-44.9-65.3-54.5-121-45.2L378 147.1 335.8 158l17.6 69.2c-11.1 2.8-22.5 5.2-33.8 8.4L302 166.8l-42.2 10.9 17.9 69.4c-9.1 2.6-85.2 22.1-85.2 22.1l11.6 45.2s31-8.7 30.7-8c17.2-4.5 25.3 4.1 29.1 12.2l49.2 190.2c.6 5.5-.4 14.9-12.2 18.1.7.4-30.7 7.9-30.7 7.9l4.6 52.7s75.4-19.3 85.3-21.8l18.1 70.2 42.2-10.9-18.1-70.7q17.4-4.05 33.9-8.4l18 70.3 42.2-10.9-18.1-70.1c65-15.8 110.9-56.8 101.5-119.5-6-37.8-47.3-68.8-81.6-72.3 21.1-18.7 31.8-46 18.7-81.7m-20.3 165.5c8.4 62.1-77.9 69.7-106.4 77.2l-24.8-92.9c28.6-7.5 117-39 131.2 15.7m-52-126.5c8.9 55.2-64.9 61.6-88.7 67.7l-22.6-84.3c23.9-5.9 93.2-34.5 111.3 16.6",style:{fill:"#fff"}})]}))),se=r((r=>e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 4091.27 4091.73","aria-hidden":"true",...r,children:t("g",{fillRule:"nonzero",children:[e("path",{fill:"#F7931A",d:"M4030.06 2540.77C3756.82 3636.78 2646.74 4303.79 1550.6 4030.48 454.92 3757.24-212.09 2647.09 61.27 1551.17c273.12-1096.13 1383.2-1763.19 2479-1489.95C3636.33 334.46 4303.3 1444.73 4030.03 2540.79l.02-.02z"}),e("path",{fill:"#fff",d:"M2947.77 1754.38c40.72-272.26-166.56-418.61-450-516.24l91.95-368.8-224.5-55.94-89.51 359.09c-59.02-14.72-119.63-28.59-179.87-42.34L2186 768.69l-224.36-55.94-92 368.68c-48.84-11.12-96.81-22.11-143.35-33.69l.26-1.16-309.59-77.31-59.72 239.78s166.56 38.18 163.05 40.53c90.91 22.69 107.35 82.87 104.62 130.57l-104.74 420.15c6.26 1.59 14.38 3.89 23.34 7.49-7.49-1.86-15.46-3.89-23.73-5.87l-146.81 588.57c-11.11 27.62-39.31 69.07-102.87 53.33 2.25 3.26-163.17-40.72-163.17-40.72l-111.46 256.98 292.15 72.83c54.35 13.63 107.61 27.89 160.06 41.3l-92.9 373.03 224.24 55.94 92-369.07c61.26 16.63 120.71 31.97 178.91 46.43l-91.69 367.33 224.51 55.94 92.89-372.33c382.82 72.45 670.67 43.24 791.83-303.02 97.63-278.78-4.86-439.58-206.26-544.44 146.69-33.83 257.18-130.31 286.64-329.61l-.07-.05zm-512.93 719.26c-69.38 278.78-538.76 128.08-690.94 90.29l123.28-494.2c152.17 37.99 640.17 113.17 567.67 403.91zm69.43-723.3c-63.29 253.58-453.96 124.75-580.69 93.16l111.77-448.21c126.73 31.59 534.85 90.55 468.94 355.05z"})]})}))),fe=r((r=>e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 784.37 1277.39","aria-hidden":"true",...r,children:t("g",{fillRule:"nonzero",children:[e("path",{fill:"#343434",d:"m392.07 0-8.57 29.11v844.63l8.57 8.55 392.06-231.75z"}),e("path",{fill:"#8C8C8C",d:"M392.07 0 0 650.54l392.07 231.75V472.33z"}),e("path",{fill:"#3C3C3B",d:"m392.07 956.52-4.83 5.89v300.87l4.83 14.1 392.3-552.49z"}),e("path",{fill:"#8C8C8C",d:"M392.07 1277.38V956.52L0 724.89z"}),e("path",{fill:"#141414",d:"m392.07 882.29 392.06-231.75-392.06-178.21z"}),e("path",{fill:"#393939",d:"m0 650.54 392.07 231.75V472.33z"})]})}))),he=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 37.8 43.6","aria-hidden":"true",...t,children:e("g",{"data-name":"Layer 2",children:e("path",{d:"m18.9 0-4 2.3L4 8.6l-4 2.3v21.8L4 35l11 6.3 4 2.3 4-2.3L33.8 35l4-2.3V10.9l-4-2.3-10.9-6.3ZM8 28.1V15.5l10.9-6.3 10.9 6.3v12.6l-10.9 6.3Z","data-name":"Layer 1",style:{fill:"#2a5ada"}})})}))),pe=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 82.6 82.6","aria-hidden":"true",...r,children:[e("circle",{cx:41.3,cy:41.3,r:36.83,style:{fill:"#fff"}}),e("path",{d:"M41.3 0a41.3 41.3 0 1 0 41.3 41.3A41.18 41.18 0 0 0 41.54 0Zm.7 42.7-4.3 14.5h23a1.16 1.16 0 0 1 1.2 1.12v.38l-2 6.9a1.49 1.49 0 0 1-1.5 1.1H23.2l5.9-20.1-6.6 2L24 44l6.6-2 8.3-28.2a1.51 1.51 0 0 1 1.5-1.1h8.9a1.16 1.16 0 0 1 1.2 1.12v.38l-7 23.8 6.6-2-1.4 4.8Z",style:{fill:"#345d9d"}})]}))),de=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 236.36 200","aria-hidden":"true",...t,children:e("g",{"data-name":"Layer 2",children:e("g",{"data-name":"Layer 1",children:e("path",{d:"m203 26.16-28.46 14.5-137.43 70a82.5 82.5 0 0 1-.7-10.69A81.87 81.87 0 0 1 158.2 28.6l16.29-8.3 2.43-1.24A100 100 0 0 0 18.18 100q0 3.82.29 7.61a18.19 18.19 0 0 1-9.88 17.58L0 129.57V150l25.29-12.89 8.19-4.18 8.07-4.11L186.43 55l16.28-8.29 33.65-17.15V9.14ZM236.36 50 49.78 145l-16.28 8.31L0 170.38v20.41l33.27-16.95 28.46-14.5 137.57-70.1A83.5 83.5 0 0 1 200 100a81.87 81.87 0 0 1-121.91 71.36l-1 .53-17.66 9A100 100 0 0 0 218.18 100c0-2.57-.1-5.14-.29-7.68a18.2 18.2 0 0 1 9.87-17.58l8.6-4.38Z"})})})})));function ye(t,e={}){let r=!1;function n(e){const r=`chakra-${(["container","root"].includes(null!=e?e:"")?[t]:[t,e]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>e}}return{parts:function(...i){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const t of i)e[t]=n(t);return ye(t,e)},toPart:n,extend:function(...r){for(const t of r)t in e||(e[t]=n(t));return ye(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 ve=ye("accordion").parts("root","container","button","panel").extend("icon"),ge=ye("alert").parts("title","description","container").extend("icon","spinner");ye("avatar").parts("label","badge","container").extend("excessLabel","group"),ye("breadcrumb").parts("link","item","container").extend("separator"),ye("button").parts();var me=ye("checkbox").parts("control","icon","container").extend("label");ye("progress").parts("track","filledTrack").extend("label"),ye("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ye("editable").parts("preview","input","textarea"),ye("form").parts("container","requiredIndicator","helperText"),ye("formError").parts("text","icon");var be=ye("input").parts("addon","field","element","group");ye("list").parts("container","item","icon"),ye("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),ye("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),ye("numberinput").parts("root","field","stepperGroup","stepper"),ye("pininput").parts("field"),ye("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),ye("progress").parts("label","filledTrack","track"),ye("radio").parts("container","control","label");var we=ye("select").parts("field","icon");ye("slider").parts("container","track","thumb","filledTrack","mark"),ye("stat").parts("container","label","helpText","number","icon"),ye("switch").parts("container","track","thumb","label"),ye("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),ye("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");var xe=ye("tag").parts("container","label","closeButton");ye("card").parts("container","header","body","footer"),ye("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:Oe,defineMultiStyleConfig:Se}=n(ve.keys),je=Se({baseStyle:Oe({container:{borderWidth:"1px",borderStyle:"solid",borderColor:"gray.300",borderRadius:"md",bg:"gray.100",color:"black",marginBottom:4,overflow:"hidden"},panel:{bg:"white"}})}),{definePartsStyle:Ae,defineMultiStyleConfig:Pe}=n(ge.keys),Me=Pe({baseStyle:Ae((t=>{const{colorScheme:e,theme:r}=t,n=r.colors[e];return{icon:{svg:{path:{fill:n[500]}}},container:{bg:n[100],borderColor:n[500],borderRadius:"lg",borderStyle:"solid",borderWidth:1,padding:4},description:{color:"blackAlpha.900"},title:{color:"blackAlpha.900"}}})),defaultProps:{variant:"subtle"}}),Ee=i({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),ke=i({background:"brand.50",color:"brand.500",svg:{path:{fill:"brand.500"}},_hover:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}},_active:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}}}),_e=i({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),Te=i({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),Ce=o({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1.25em",path:{fill:"white"}}},sizes:{xs:i({lineHeight:1})},variants:{alert:Ee,outline:_e,ghost:Te,secondary:ke}}),{definePartsStyle:De,defineMultiStyleConfig:Ne}=n(me.keys),Ie=Ne({baseStyle:De({control:{borderRadius:"base",borderColor:"brand.500",svg:{path:{fill:"inherit"}},_checked:{svg:{path:{fill:"white"}}},_hover:{bg:"gray.50",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.08)",_disabled:{bg:"gray.100"}},_indeterminate:{bg:"brand.100",borderColor:"brand.100",_hover:{bg:"brand.100",boxShadow:"none"}},_invalid:{_checked:{borderColor:"brand.500"}}}}),sizes:{lg:{control:{boxSize:7,svg:{width:"1.75em"}}},md:{control:{boxSize:6,svg:{width:"1.5em"}}},sm:{control:{boxSize:4,svg:{width:"1.5em"}}}}}),Be=o({baseStyle:{helperText:{fontSize:"sm"}}}),Le=o({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}});
2
- /*!
3
- * currency.js - v2.0.4
4
- * http://scurker.github.io/currency.js
5
- *
6
- * Copyright (c) 2021 Jason Wilson
7
- * Released under MIT license
8
- */
9
- var Re={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,e){var r=e.pattern,n=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?r:n).replace("!",i).replace("#",l.replace(c,"$1"+o)+(s?a+s:""))},fromCents:!1},$e=function(t){return Math.round(t)},ze=function(t){return Math.pow(10,t)},He=/(\d)(?=(\d{3})+\b)/g,Fe=/(\d)(?=(\d\d)+\d\b)/g;function Ue(t,e){var r=this;if(!(r instanceof Ue))return new Ue(t,e);var n=Object.assign({},Re,e),i=ze(n.precision),o=Ve(t,n);r.intValue=o,r.value=o/i,n.increment=n.increment||1/i,n.useVedic?n.groups=Fe:n.groups=He,this.s=n,this.p=i}function Ve(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0,i=e.decimal,o=e.errorOnInvalid,a=e.precision,c=e.fromCents,u=ze(a),l="number"==typeof t,s=t instanceof Ue;if(s&&c)return t.intValue;if(l||s)n=s?t.value:t;else if("string"==typeof t){var f=new RegExp("[^-\\d"+i+"]","g"),h=new RegExp("\\"+i,"g");n=(n=t.replace(/\((.*)\)/,"-$1").replace(f,"").replace(h,"."))||0}else{if(o)throw Error("Invalid Input");n=0}return c||(n=(n*=u).toFixed(4)),r?$e(n):n}Ue.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return Ue((e+=Ve(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return Ue((e-=Ve(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return Ue((e*=t)/(r.fromCents?1:ze(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return Ue(e/=Ve(t,r,!1),r)},distribute:function(t){for(var e=this.intValue,r=this.p,n=this.s,i=[],o=Math[e>=0?"floor":"ceil"](e/t),a=Math.abs(e-o*t),c=n.fromCents?1:r;0!==t;t--){var u=Ue(o/c,n);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,r=this.intValue,n=this.p,i=this.s;return(t=r/n,e=i.increment,$e(t/e)*e).toFixed(i.precision)},toJSON:function(){return this.value}};
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";import{chakra as r,createMultiStyleConfigHelpers as n,defineStyle as i,defineStyleConfig as o,extendTheme as a,withDefaultColorScheme as c,useBreakpoint as u,Portal as l,Text as s,ButtonGroup as f,Button as h,Card as p,FormControl as d,Flex as y,FormLabel as v,Checkbox as g,FormErrorMessage as m,InputGroup as b,InputLeftAddon as w,InputLeftElement as x,Input as O,InputRightElement as S,InputRightAddon as j,FormHelperText as A,Box as P,Tooltip as M,Modal as E,ModalOverlay as k,ModalContent as _,ModalHeader as T,ModalCloseButton as C,ModalBody as D,ModalFooter as N,Select as I,Tag as B,TagLeftIcon as L,TagLabel as R,TagRightIcon as $,TagCloseButton as z,Alert as H,AlertIcon as F,AlertTitle as U,AlertDescription as V,CloseButton as q,Spinner as W}from"@chakra-ui/react";import X,{isValidElement as Y,Children as K,PureComponent as G,forwardRef as Z,useRef as J,useImperativeHandle as Q,useState as tt,useCallback as et,useEffect as rt,useMemo as nt,cloneElement as it,createElement as ot,useContext as at,createContext as ct,Component as ut}from"react";const lt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),st=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17","aria-hidden":"true",...r,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"})})})]}))),ft=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",viewBox:"0 0 16 16","aria-hidden":"true",...r,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"})})})]}))),ht=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),pt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),dt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),yt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),vt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),gt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),mt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),bt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),wt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),xt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,children:[e("g",{clipPath:"url(#a)",children:e("path",{fill:"#000",d:"M19 3.5h-6.528a1 1 0 0 1-.447-.1L8.869 1.816A3 3 0 0 0 7.528 1.5H5a5.006 5.006 0 0 0-5 5v12a5.006 5.006 0 0 0 5 5h14a5.006 5.006 0 0 0 5-5v-10a5.006 5.006 0 0 0-5-5m-14 0h2.528c.155 0 .308.033.447.1l3.156 1.58c.416.208.875.318 1.341.32H19a3 3 0 0 1 2.779 1.882L2 7.494V6.5a3 3 0 0 1 3-3m14 18H5a3 3 0 0 1-3-3V9.494l20-.113v9.12a3 3 0 0 1-3 3"})}),e("defs",{children:e("clipPath",{id:"a",children:e("path",{fill:"#fff",d:"M0 .5h24v24H0z"})})})]}))),Ot=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),St=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),jt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),At=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Pt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Mt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Et=r((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"})}))),kt=r((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"})}))),_t=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Tt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Ct=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Dt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Nt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),It=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M6.41 9.5h11.18a1 1 0 0 1 .7 1.71l-5.58 5.58a1 1 0 0 1-1.42 0l-5.58-5.58a1 1 0 0 1 .7-1.71"})}))),Bt=r((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"})}))),Lt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Rt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),$t=r((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"})}))),zt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Ht=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Ft=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Ut=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})]}))),Vt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),qt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Wt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Xt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Yt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Kt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Gt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Zt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Jt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),Qt=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),te=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),ee=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),re=r((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"})}))),ne=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),ie=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),oe=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:25,fill:"none",viewBox:"0 0 24 25","aria-hidden":"true",...r,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"})})})]}))),ae=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:17,fill:"none",viewBox:"0 0 16 17","aria-hidden":"true",...t,children:e("path",{fill:"#000",d:"M7.986 1.833a6.71 6.71 0 0 1 4.758 2h-2.086a.67.67 0 0 0-.668.667.666.666 0 0 0 .668.667h2.768a1.24 1.24 0 0 0 1.24-1.238V1.167A.666.666 0 0 0 14 .5a.67.67 0 0 0-.668.667v1.385a8.01 8.01 0 0 0-8.278-1.5 8 8 0 0 0-3.48 2.641 8 8 0 0 0-1.57 4.074.67.67 0 0 0 .668.733.657.657 0 0 0 .66-.585 6.67 6.67 0 0 1 2.146-4.329 6.7 6.7 0 0 1 4.51-1.753M15.33 8.5a.657.657 0 0 0-.661.585 6.65 6.65 0 0 1-1.362 3.488 6.684 6.684 0 0 1-10.05.593h2.085a.67.67 0 0 0 .668-.666.666.666 0 0 0-.668-.667H2.574a1.24 1.24 0 0 0-1.146.764c-.063.15-.095.312-.095.474v2.762a.666.666 0 0 0 .668.667.67.67 0 0 0 .668-.667v-1.385a8.01 8.01 0 0 0 8.278 1.5 8 8 0 0 0 3.48-2.641 8 8 0 0 0 1.57-4.074.67.67 0 0 0-.668-.733"})}))),ce=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 1503 1504","aria-hidden":"true",...r,children:[e("path",{fill:"#fff",d:"M287 258h928v844H287z"}),e("path",{fill:"#E84142",fillRule:"evenodd",d:"M1502.5 752c0 414.77-336.23 751-751 751-414.766 0-751-336.23-751-751C.5 337.234 336.734 1 751.5 1c414.77 0 751 336.234 751 751m-963.812 298.86H392.94c-30.626 0-45.754 0-54.978-5.9-9.963-6.46-16.051-17.16-16.789-28.97-.554-10.88 7.011-24.168 22.139-50.735l359.87-634.32c15.313-26.936 23.061-40.404 32.839-45.385 10.516-5.35 23.062-5.35 33.578 0 9.778 4.981 17.527 18.449 32.839 45.385l73.982 129.144.377.659c16.539 28.897 24.926 43.551 28.588 58.931a109.56 109.56 0 0 1 0 51.289c-3.69 15.497-11.992 30.257-28.781 59.591L687.573 964.702l-.489.856c-16.648 29.135-25.085 43.902-36.778 55.042-12.73 12.18-28.043 21.03-44.832 26.02-15.313 4.24-32.47 4.24-66.786 4.24m368.062 0h208.84c30.81 0 46.31 0 55.54-6.08 9.96-6.46 16.23-17.35 16.79-29.15.53-10.53-6.87-23.3-21.37-48.323-.5-.852-1-1.719-1.51-2.601L1060.43 785.75l-1.19-2.015c-14.7-24.858-22.12-37.411-31.65-42.263a36.73 36.73 0 0 0-33.391 0c-9.594 4.981-17.342 18.08-32.655 44.462L857.306 964.891l-.357.616c-15.259 26.34-22.885 39.503-22.335 50.303.738 11.81 6.826 22.69 16.788 29.15 9.041 5.9 24.538 5.9 55.348 5.9",clipRule:"evenodd"})]}))),ue=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",viewBox:"0 0 788 788","aria-hidden":"true",...r,children:[e("circle",{cx:394,cy:394,r:394,style:{fill:"#0ac18e"}}),e("path",{d:"M516.9 261.7c-19.8-44.9-65.3-54.5-121-45.2L378 147.1 335.8 158l17.6 69.2c-11.1 2.8-22.5 5.2-33.8 8.4L302 166.8l-42.2 10.9 17.9 69.4c-9.1 2.6-85.2 22.1-85.2 22.1l11.6 45.2s31-8.7 30.7-8c17.2-4.5 25.3 4.1 29.1 12.2l49.2 190.2c.6 5.5-.4 14.9-12.2 18.1.7.4-30.7 7.9-30.7 7.9l4.6 52.7s75.4-19.3 85.3-21.8l18.1 70.2 42.2-10.9-18.1-70.7q17.4-4.05 33.9-8.4l18 70.3 42.2-10.9-18.1-70.1c65-15.8 110.9-56.8 101.5-119.5-6-37.8-47.3-68.8-81.6-72.3 21.1-18.7 31.8-46 18.7-81.7m-20.3 165.5c8.4 62.1-77.9 69.7-106.4 77.2l-24.8-92.9c28.6-7.5 117-39 131.2 15.7m-52-126.5c8.9 55.2-64.9 61.6-88.7 67.7l-22.6-84.3c23.9-5.9 93.2-34.5 111.3 16.6",style:{fill:"#fff"}})]}))),le=r((r=>e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 4091.27 4091.73","aria-hidden":"true",...r,children:t("g",{fillRule:"nonzero",children:[e("path",{fill:"#F7931A",d:"M4030.06 2540.77C3756.82 3636.78 2646.74 4303.79 1550.6 4030.48 454.92 3757.24-212.09 2647.09 61.27 1551.17c273.12-1096.13 1383.2-1763.19 2479-1489.95C3636.33 334.46 4303.3 1444.73 4030.03 2540.79l.02-.02z"}),e("path",{fill:"#fff",d:"M2947.77 1754.38c40.72-272.26-166.56-418.61-450-516.24l91.95-368.8-224.5-55.94-89.51 359.09c-59.02-14.72-119.63-28.59-179.87-42.34L2186 768.69l-224.36-55.94-92 368.68c-48.84-11.12-96.81-22.11-143.35-33.69l.26-1.16-309.59-77.31-59.72 239.78s166.56 38.18 163.05 40.53c90.91 22.69 107.35 82.87 104.62 130.57l-104.74 420.15c6.26 1.59 14.38 3.89 23.34 7.49-7.49-1.86-15.46-3.89-23.73-5.87l-146.81 588.57c-11.11 27.62-39.31 69.07-102.87 53.33 2.25 3.26-163.17-40.72-163.17-40.72l-111.46 256.98 292.15 72.83c54.35 13.63 107.61 27.89 160.06 41.3l-92.9 373.03 224.24 55.94 92-369.07c61.26 16.63 120.71 31.97 178.91 46.43l-91.69 367.33 224.51 55.94 92.89-372.33c382.82 72.45 670.67 43.24 791.83-303.02 97.63-278.78-4.86-439.58-206.26-544.44 146.69-33.83 257.18-130.31 286.64-329.61l-.07-.05zm-512.93 719.26c-69.38 278.78-538.76 128.08-690.94 90.29l123.28-494.2c152.17 37.99 640.17 113.17 567.67 403.91zm69.43-723.3c-63.29 253.58-453.96 124.75-580.69 93.16l111.77-448.21c126.73 31.59 534.85 90.55 468.94 355.05z"})]})}))),se=r((r=>e("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",fillRule:"evenodd",clipRule:"evenodd",imageRendering:"optimizeQuality",shapeRendering:"geometricPrecision",textRendering:"geometricPrecision",viewBox:"0 0 784.37 1277.39","aria-hidden":"true",...r,children:t("g",{fillRule:"nonzero",children:[e("path",{fill:"#343434",d:"m392.07 0-8.57 29.11v844.63l8.57 8.55 392.06-231.75z"}),e("path",{fill:"#8C8C8C",d:"M392.07 0 0 650.54l392.07 231.75V472.33z"}),e("path",{fill:"#3C3C3B",d:"m392.07 956.52-4.83 5.89v300.87l4.83 14.1 392.3-552.49z"}),e("path",{fill:"#8C8C8C",d:"M392.07 1277.38V956.52L0 724.89z"}),e("path",{fill:"#141414",d:"m392.07 882.29 392.06-231.75-392.06-178.21z"}),e("path",{fill:"#393939",d:"m0 650.54 392.07 231.75V472.33z"})]})}))),fe=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 37.8 43.6","aria-hidden":"true",...t,children:e("g",{"data-name":"Layer 2",children:e("path",{d:"m18.9 0-4 2.3L4 8.6l-4 2.3v21.8L4 35l11 6.3 4 2.3 4-2.3L33.8 35l4-2.3V10.9l-4-2.3-10.9-6.3ZM8 28.1V15.5l10.9-6.3 10.9 6.3v12.6l-10.9 6.3Z","data-name":"Layer 1",style:{fill:"#2a5ada"}})})}))),he=r((r=>t("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 82.6 82.6","aria-hidden":"true",...r,children:[e("circle",{cx:41.3,cy:41.3,r:36.83,style:{fill:"#fff"}}),e("path",{d:"M41.3 0a41.3 41.3 0 1 0 41.3 41.3A41.18 41.18 0 0 0 41.54 0Zm.7 42.7-4.3 14.5h23a1.16 1.16 0 0 1 1.2 1.12v.38l-2 6.9a1.49 1.49 0 0 1-1.5 1.1H23.2l5.9-20.1-6.6 2L24 44l6.6-2 8.3-28.2a1.51 1.51 0 0 1 1.5-1.1h8.9a1.16 1.16 0 0 1 1.2 1.12v.38l-7 23.8 6.6-2-1.4 4.8Z",style:{fill:"#345d9d"}})]}))),pe=r((t=>e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 236.36 200","aria-hidden":"true",...t,children:e("g",{"data-name":"Layer 2",children:e("g",{"data-name":"Layer 1",children:e("path",{d:"m203 26.16-28.46 14.5-137.43 70a82.5 82.5 0 0 1-.7-10.69A81.87 81.87 0 0 1 158.2 28.6l16.29-8.3 2.43-1.24A100 100 0 0 0 18.18 100q0 3.82.29 7.61a18.19 18.19 0 0 1-9.88 17.58L0 129.57V150l25.29-12.89 8.19-4.18 8.07-4.11L186.43 55l16.28-8.29 33.65-17.15V9.14ZM236.36 50 49.78 145l-16.28 8.31L0 170.38v20.41l33.27-16.95 28.46-14.5 137.57-70.1A83.5 83.5 0 0 1 200 100a81.87 81.87 0 0 1-121.91 71.36l-1 .53-17.66 9A100 100 0 0 0 218.18 100c0-2.57-.1-5.14-.29-7.68a18.2 18.2 0 0 1 9.87-17.58l8.6-4.38Z"})})})})));function de(t,e={}){let r=!1;function n(e){const r=`chakra-${(["container","root"].includes(null!=e?e:"")?[t]:[t,e]).filter(Boolean).join("__")}`;return{className:r,selector:`.${r}`,toString:()=>e}}return{parts:function(...i){!function(){if(r)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");r=!0}();for(const t of i)e[t]=n(t);return de(t,e)},toPart:n,extend:function(...r){for(const t of r)t in e||(e[t]=n(t));return de(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 ye=de("accordion").parts("root","container","button","panel").extend("icon"),ve=de("alert").parts("title","description","container").extend("icon","spinner");de("avatar").parts("label","badge","container").extend("excessLabel","group"),de("breadcrumb").parts("link","item","container").extend("separator"),de("button").parts();var ge=de("checkbox").parts("control","icon","container").extend("label");de("progress").parts("track","filledTrack").extend("label"),de("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),de("editable").parts("preview","input","textarea"),de("form").parts("container","requiredIndicator","helperText"),de("formError").parts("text","icon");var me=de("input").parts("addon","field","element","group");de("list").parts("container","item","icon"),de("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),de("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),de("numberinput").parts("root","field","stepperGroup","stepper"),de("pininput").parts("field"),de("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),de("progress").parts("label","filledTrack","track"),de("radio").parts("container","control","label");var be=de("select").parts("field","icon");de("slider").parts("container","track","thumb","filledTrack","mark"),de("stat").parts("container","label","helpText","number","icon"),de("switch").parts("container","track","thumb","label"),de("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),de("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator");var we=de("tag").parts("container","label","closeButton");de("card").parts("container","header","body","footer"),de("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");const{definePartsStyle:xe,defineMultiStyleConfig:Oe}=n(ye.keys),Se=Oe({baseStyle:xe({container:{borderWidth:"1px",borderStyle:"solid",borderColor:"gray.300",borderRadius:"md",bg:"gray.100",color:"black",marginBottom:4,overflow:"hidden"},panel:{bg:"white"}})}),{definePartsStyle:je,defineMultiStyleConfig:Ae}=n(ve.keys),Pe=Ae({baseStyle:je((t=>{const{colorScheme:e,theme:r}=t,n=r.colors[e];return{icon:{svg:{path:{fill:n[500]}}},container:{bg:n[100],borderColor:n[500],borderRadius:"lg",borderStyle:"solid",borderWidth:1,padding:4},description:{color:"blackAlpha.900"},title:{color:"blackAlpha.900"}}})),defaultProps:{variant:"subtle"}}),Me=i({borderColor:"red.700",color:"red.700",border:"solid 2px",":hover, :focus":{backgroundColor:"gray.200"},svg:{path:{fill:"red.700"}}}),Ee=i({background:"brand.50",color:"brand.500",svg:{path:{fill:"brand.500"}},_hover:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}},_active:{bg:"brand.100",color:"brand.600",svg:{path:{fill:"brand.600"}}}}),ke=i({border:"solid 2px",borderColor:"brand.600",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),_e=i({boxShadow:"none",color:"brand.600",":hover, :focus":{backgroundColor:"brand.50"},svg:{path:{fill:"brand.600"}}}),Te=o({baseStyle:{boxShadow:"0px 8px 16px 0px rgba(0,0,0,0.08)",svg:{width:"1.25em",path:{fill:"white"}}},sizes:{xs:i({lineHeight:1})},variants:{alert:Me,outline:ke,ghost:_e,secondary:Ee}}),{definePartsStyle:Ce,defineMultiStyleConfig:De}=n(ge.keys),Ne=De({baseStyle:Ce({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"}}}}}),Ie=o({baseStyle:{helperText:{fontSize:"sm"}}}),Be=o({sizes:{sm:{text:{fontSize:"xs"}},xs:{text:{fontSize:"xs"}}}});
10
2
  /*!
11
3
  * decimal.js v10.4.3
12
4
  * An arbitrary-precision Decimal type for JavaScript.
@@ -14,7 +6,15 @@ var Re={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,patte
14
6
  * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
15
7
  * MIT Licence
16
8
  */
17
- var qe,We,Xe=9e15,Ye=1e9,Ke="0123456789abcdef",Ge="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Ze="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Je={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Xe,maxE:Xe,crypto:!1},Qe=!0,tr="[DecimalError] ",er=tr+"Invalid argument: ",rr=tr+"Precision limit exceeded",nr=tr+"crypto unavailable",ir="[object Decimal]",or=Math.floor,ar=Math.pow,cr=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ur=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,lr=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,sr=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,fr=1e7,hr=7,pr=Ge.length-1,dr=Ze.length-1,yr={toStringTag:ir};function vr(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+"",(r=hr-n.length)&&(o+=Mr(r)),o+=n;a=t[e],(r=hr-(n=a+"").length)&&(o+=Mr(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function gr(t,e,r){if(t!==~~t||t<e||t>r)throw Error(er+t)}function mr(t,e,r,n){var i,o,a,c;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=hr,i=0):(i=Math.ceil((e+1)/hr),e%=hr),o=ar(10,hr-e),c=t[i]%o|0,null==n?e<3?(0==e?c=c/100|0:1==e&&(c=c/10|0),a=r<4&&99999==c||r>3&&49999==c||5e4==c||0==c):a=(r<4&&c+1==o||r>3&&c+1==o/2)&&(t[i+1]/o/100|0)==ar(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=(n||r<4)&&9999==c||!n&&r>3&&4999==c):a=((n||r<4)&&c+1==o||!n&&r>3&&c+1==o/2)&&(t[i+1]/o/1e3|0)==ar(10,e-3)-1,a}function br(t,e,r){for(var n,i,o=[0],a=0,c=t.length;a<c;){for(i=o.length;i--;)o[i]*=e;for(o[0]+=Ke.indexOf(t.charAt(a++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}yr.absoluteValue=yr.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),xr(t)},yr.ceil=function(){return xr(new this.constructor(this),this.e+1,2)},yr.clampedTo=yr.clamp=function(t,e){var r=this,n=r.constructor;if(t=new n(t),e=new n(e),!t.s||!e.s)return new n(NaN);if(t.gt(e))throw Error(er+e);return r.cmp(t)<0?t:r.cmp(e)>0?e:new n(r)},yr.comparedTo=yr.cmp=function(t){var e,r,n,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,r=(n=a.length)<(i=c.length)?n:i;e<r;++e)if(a[e]!==c[e])return a[e]>c[e]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1},yr.cosine=yr.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+hr,n.rounding=1,r=function(t,e){var r,n,i;if(e.isZero())return e;n=e.d.length,n<32?i=(1/Br(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10");t.precision+=r,e=Ir(t,1,e.times(i),new t(1));for(var o=r;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=r,e}(n,Lr(n,r)),n.precision=t,n.rounding=e,xr(2==We||3==We?r.neg():r,t,e,!0)):new n(1):new n(NaN)},yr.cubeRoot=yr.cbrt=function(){var t,e,r,n,i,o,a,c,u,l,s=this,f=s.constructor;if(!s.isFinite()||s.isZero())return new f(s);for(Qe=!1,(o=s.s*ar(s.s*s,1/3))&&Math.abs(o)!=1/0?n=new f(o.toString()):(r=vr(s.d),(o=((t=s.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=ar(r,1/3),t=or((t+1)/3)-(t%3==(t<0?-1:2)),(n=new f(r=o==1/0?"5e"+t:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+t)).s=s.s),a=(t=f.precision)+3;;)if(l=(u=(c=n).times(c).times(c)).plus(s),n=wr(l.plus(s).times(c),l.plus(u),a+2,1),vr(c.d).slice(0,a)===(r=vr(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(xr(n,t+1,1),e=!n.times(n).times(n).eq(s));break}if(!i&&(xr(c,t+1,0),c.times(c).times(c).eq(s))){n=c;break}a+=4,i=1}return Qe=!0,xr(n,t,f.rounding,e)},yr.decimalPlaces=yr.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-or(this.e/hr))*hr,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},yr.dividedBy=yr.div=function(t){return wr(this,new this.constructor(t))},yr.dividedToIntegerBy=yr.divToInt=function(t){var e=this.constructor;return xr(wr(this,new e(t),0,1,1),e.precision,e.rounding)},yr.equals=yr.eq=function(t){return 0===this.cmp(t)},yr.floor=function(){return xr(new this.constructor(this),this.e+1,3)},yr.greaterThan=yr.gt=function(t){return this.cmp(t)>0},yr.greaterThanOrEqualTo=yr.gte=function(t){var e=this.cmp(t);return 1==e||0===e},yr.hyperbolicCosine=yr.cosh=function(){var t,e,r,n,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;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/Br(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=Ir(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 xr(o,a.precision=r,a.rounding=n,!0)},yr.hyperbolicSine=yr.sinh=function(){var t,e,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,r=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=Ir(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=Ir(o,2,i=i.times(1/Br(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=r,xr(i,e,r,!0)},yr.hyperbolicTangent=yr.tanh=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+7,n.rounding=1,wr(r.sinh(),r.cosh(),n.precision=t,n.rounding=e)):new n(r.s)},yr.inverseCosine=yr.acos=function(){var t,e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,o=r.rounding;return-1!==n?0===n?e.isNeg()?Ar(r,i,o):new r(0):new r(NaN):e.isZero()?Ar(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,e=e.asin(),t=Ar(r,i+4,o).times(.5),r.precision=i,r.rounding=o,t.minus(e))},yr.inverseHyperbolicCosine=yr.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,Qe=!1,r=r.times(r).minus(1).sqrt().plus(r),Qe=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},yr.inverseHyperbolicSine=yr.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,Qe=!1,r=r.times(r).plus(1).sqrt().plus(r),Qe=!0,n.precision=t,n.rounding=e,r.ln())},yr.inverseHyperbolicTangent=yr.atanh=function(){var t,e,r,n,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,n=i.sd(),Math.max(n,t)<2*-i.e-1?xr(new o(i),t,e,!0):(o.precision=r=n-i.e,i=wr(i.plus(1),new o(1).minus(i),r+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},yr.inverseSine=yr.asin=function(){var t,e,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==e?0===e?((t=Ar(o,r+4,n).times(.5)).s=i.s,t):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},yr.inverseTangent=yr.atan=function(){var t,e,r,n,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<=dr)return(a=Ar(s,f+4,h).times(.25)).s=l.s,a}else{if(!l.s)return new s(NaN);if(f+4<=dr)return(a=Ar(s,f+4,h).times(.5)).s=l.s,a}for(s.precision=c=f+10,s.rounding=1,t=r=Math.min(28,c/hr+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(Qe=!1,e=Math.ceil(c/hr),n=1,u=l.times(l),a=new s(l),i=l;-1!==t;)if(i=i.times(u),o=a.minus(i.div(n+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(n+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return r&&(a=a.times(2<<r-1)),Qe=!0,xr(a,s.precision=f,s.rounding=h,!0)},yr.isFinite=function(){return!!this.d},yr.isInteger=yr.isInt=function(){return!!this.d&&or(this.e/hr)>this.d.length-2},yr.isNaN=function(){return!this.s},yr.isNegative=yr.isNeg=function(){return this.s<0},yr.isPositive=yr.isPos=function(){return this.s>0},yr.isZero=function(){return!!this.d&&0===this.d[0]},yr.lessThan=yr.lt=function(t){return this.cmp(t)<0},yr.lessThanOrEqualTo=yr.lte=function(t){return this.cmp(t)<1},yr.logarithm=yr.log=function(t){var e,r,n,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(r=(t=new s(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new s(NaN);e=t.eq(10)}if(r=l.d,l.s<0||!r||!r[0]||l.eq(1))return new s(r&&!r[0]?-1/0:1!=l.s?NaN:r?0:1/0);if(e)if(r.length>1)o=!0;else{for(i=r[0];i%10==0;)i/=10;o=1!==i}if(Qe=!1,a=Cr(l,c=f+5),n=e?jr(s,c+10):Cr(t,c),mr((u=wr(a,n,c,1)).d,i=f,h))do{if(a=Cr(l,c+=10),n=e?jr(s,c+10):Cr(t,c),u=wr(a,n,c,1),!o){+vr(u.d).slice(i+1,i+15)+1==1e14&&(u=xr(u,f+1,0));break}}while(mr(u.d,i+=10,h));return Qe=!0,xr(u,f,h)},yr.minus=yr.sub=function(t){var e,r,n,i,o,a,c,u,l,s,f,h,p=this,d=p.constructor;if(t=new d(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new d(t.d||p.s!==t.s?p:NaN):t=new d(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(l=p.d,h=t.d,c=d.precision,u=d.rounding,!l[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!l[0])return new d(3===u?-0:0);t=new d(p)}return Qe?xr(t,c,u):t}if(r=or(t.e/hr),s=or(p.e/hr),l=l.slice(),o=s-r){for((f=o<0)?(e=l,o=-o,a=h.length):(e=h,r=s,a=l.length),o>(n=Math.max(Math.ceil(c/hr),a)+2)&&(o=n,e.length=1),e.reverse(),n=o;n--;)e.push(0);e.reverse()}else{for((f=(n=l.length)<(a=h.length))&&(a=n),n=0;n<a;n++)if(l[n]!=h[n]){f=l[n]<h[n];break}o=0}for(f&&(e=l,l=h,h=e,t.s=-t.s),a=l.length,n=h.length-a;n>0;--n)l[a++]=0;for(n=h.length;n>o;){if(l[--n]<h[n]){for(i=n;i&&0===l[--i];)l[i]=fr-1;--l[i],l[n]+=fr}l[n]-=h[n]}for(;0===l[--a];)l.pop();for(;0===l[0];l.shift())--r;return l[0]?(t.d=l,t.e=Sr(l,r),Qe?xr(t,c,u):t):new d(3===u?-0:0)},yr.modulo=yr.mod=function(t){var e,r=this,n=r.constructor;return t=new n(t),!r.d||!t.s||t.d&&!t.d[0]?new n(NaN):!t.d||r.d&&!r.d[0]?xr(new n(r),n.precision,n.rounding):(Qe=!1,9==n.modulo?(e=wr(r,t.abs(),0,3,1)).s*=t.s:e=wr(r,t,0,n.modulo,1),e=e.times(t),Qe=!0,r.minus(e))},yr.naturalExponential=yr.exp=function(){return Tr(this)},yr.naturalLogarithm=yr.ln=function(){return Cr(this)},yr.negated=yr.neg=function(){var t=new this.constructor(this);return t.s=-t.s,xr(t)},yr.plus=yr.add=function(t){var e,r,n,i,o,a,c,u,l,s,f=this,h=f.constructor;if(t=new h(t),!f.d||!t.d)return f.s&&t.s?f.d||(t=new h(t.d||f.s===t.s?f:NaN)):t=new h(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.minus(t);if(l=f.d,s=t.d,c=h.precision,u=h.rounding,!l[0]||!s[0])return s[0]||(t=new h(f)),Qe?xr(t,c,u):t;if(o=or(f.e/hr),n=or(t.e/hr),l=l.slice(),i=o-n){for(i<0?(r=l,i=-i,a=s.length):(r=s,n=o,a=l.length),i>(a=(o=Math.ceil(c/hr))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=l.length)-(i=s.length)<0&&(i=a,r=s,s=l,l=r),e=0;i;)e=(l[--i]=l[i]+s[i]+e)/fr|0,l[i]%=fr;for(e&&(l.unshift(e),++n),a=l.length;0==l[--a];)l.pop();return t.d=l,t.e=Sr(l,n),Qe?xr(t,c,u):t},yr.precision=yr.sd=function(t){var e,r=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(er+t);return r.d?(e=Pr(r.d),t&&r.e+1>e&&(e=r.e+1)):e=NaN,e},yr.round=function(){var t=this,e=t.constructor;return xr(new e(t),t.e+1,e.rounding)},yr.sine=yr.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+hr,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:Ir(t,2,e,e);r=1.4*Math.sqrt(n),r=r>16?16:0|r,e=e.times(1/Br(5,r)),e=Ir(t,2,e,e);for(var i,o=new t(5),a=new t(16),c=new t(20);r--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(c))));return e}(n,Lr(n,r)),n.precision=t,n.rounding=e,xr(We>2?r.neg():r,t,e,!0)):new n(NaN)},yr.squareRoot=yr.sqrt=function(){var t,e,r,n,i,o,a=this,c=a.d,u=a.e,l=a.s,s=a.constructor;if(1!==l||!c||!c[0])return new s(!l||l<0&&(!c||c[0])?NaN:c?a:1/0);for(Qe=!1,0==(l=Math.sqrt(+a))||l==1/0?(((e=vr(c)).length+u)%2==0&&(e+="0"),l=Math.sqrt(e),u=or((u+1)/2)-(u<0||u%2),n=new s(e=l==1/0?"5e"+u:(e=l.toExponential()).slice(0,e.indexOf("e")+1)+u)):n=new s(l.toString()),r=(u=s.precision)+3;;)if(n=(o=n).plus(wr(a,o,r+2,1)).times(.5),vr(o.d).slice(0,r)===(e=vr(n.d)).slice(0,r)){if("9999"!=(e=e.slice(r-3,r+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(xr(n,u+1,1),t=!n.times(n).eq(a));break}if(!i&&(xr(o,u+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return Qe=!0,xr(n,u,s.rounding,t)},yr.tangent=yr.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=wr(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,xr(2==We||4==We?r.neg():r,t,e,!0)):new n(NaN)},yr.times=yr.mul=function(t){var e,r,n,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(r=or(s.e/hr)+or(t.e/hr),(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],n=a=u+l;n--;)o.push(0);for(n=l;--n>=0;){for(e=0,i=u+n;i>n;)c=o[i]+p[n]*h[i-n-1]+e,o[i--]=c%fr|0,e=c/fr|0;o[i]=(o[i]+e)%fr|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=Sr(o,r),Qe?xr(t,f.precision,f.rounding):t},yr.toBinary=function(t,e){return Rr(this,2,t,e)},yr.toDecimalPlaces=yr.toDP=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(gr(t,0,Ye),void 0===e?e=n.rounding:gr(e,0,8),xr(r,t+r.e+1,e))},yr.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=Or(n,!0):(gr(t,0,Ye),void 0===e?e=i.rounding:gr(e,0,8),r=Or(n=xr(new i(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?"-"+r:r},yr.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?r=Or(i):(gr(t,0,Ye),void 0===e?e=o.rounding:gr(e,0,8),r=Or(n=xr(new o(i),t+i.e+1,e),!1,t+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},yr.toFraction=function(t){var e,r,n,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=r=new y(1),n=u=new y(0),a=(o=(e=new y(n)).e=Pr(d)-p.e-1)%hr,e.d[0]=ar(10,a<0?hr+a:a),null==t)t=o>0?e:l;else{if(!(c=new y(t)).isInt()||c.lt(l))throw Error(er+c);t=c.gt(e)?o>0?e:l:c}for(Qe=!1,c=new y(vr(d)),s=y.precision,y.precision=o=d.length*hr*2;f=wr(c,e,0,1,1),1!=(i=r.plus(f.times(n))).cmp(t);)r=n,n=i,i=l,l=u.plus(f.times(i)),u=i,i=e,e=c.minus(f.times(i)),c=i;return i=wr(t.minus(r),n,0,1,1),u=u.plus(i.times(l)),r=r.plus(i.times(n)),u.s=l.s=p.s,h=wr(l,n,o,1).minus(p).abs().cmp(wr(u,r,o,1).minus(p).abs())<1?[l,n]:[u,r],y.precision=s,Qe=!0,h},yr.toHexadecimal=yr.toHex=function(t,e){return Rr(this,16,t,e)},yr.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:gr(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(Qe=!1,r=wr(r,t,0,e,1).times(t),Qe=!0,xr(r)):(t.s=r.s,r=t),r},yr.toNumber=function(){return+this},yr.toOctal=function(t,e){return Rr(this,8,t,e)},yr.toPower=yr.pow=function(t){var e,r,n,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(ar(+c,l));if((c=new u(c)).eq(1))return c;if(n=u.precision,o=u.rounding,t.eq(1))return xr(c,n,o);if((e=or(t.e/hr))>=t.d.length-1&&(r=l<0?-l:l)<=9007199254740991)return i=Er(u,c,r,n),t.s<0?new u(1).div(i):xr(i,n,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!=(r=ar(+c,l))&&isFinite(r)?new u(r+"").e:or(l*(Math.log("0."+vr(c.d))/Math.LN10+c.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(Qe=!1,u.rounding=c.s=1,r=Math.min(12,(e+"").length),(i=Tr(t.times(Cr(c,n+r)),n)).d&&mr((i=xr(i,n+5,1)).d,n,o)&&(e=n+10,+vr((i=xr(Tr(t.times(Cr(c,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=xr(i,n+1,0))),i.s=a,Qe=!0,u.rounding=o,xr(i,n,o))},yr.toPrecision=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=Or(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(gr(t,1,Ye),void 0===e?e=i.rounding:gr(e,0,8),r=Or(n=xr(new i(n),t,e),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?"-"+r:r},yr.toSignificantDigits=yr.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(gr(t,1,Ye),void 0===e?e=r.rounding:gr(e,0,8)),xr(new r(this),t,e)},yr.toString=function(){var t=this,e=t.constructor,r=Or(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+r:r},yr.truncated=yr.trunc=function(){return xr(new this.constructor(this),this.e+1,1)},yr.valueOf=yr.toJSON=function(){var t=this,e=t.constructor,r=Or(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+r:r};var wr=function(){function t(t,e,r){var n,i=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+i,t[o]=n%r|0,i=n/r|0;return i&&t.unshift(i),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,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=n.constructor,_=n.s==i.s?1:-1,T=n.d,C=i.d;if(!(T&&T[0]&&C&&C[0]))return new k(n.s&&i.s&&(T?!C||T[0]!=C[0]:C)?T&&0==T[0]||!C?0*_:_/0:NaN);for(u?(p=1,s=n.e-i.e):(u=fr,p=hr,s=or(n.e/p)-or(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+(n.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--,r(y,M<v?E:C,v,u))):(0==h&&(l=h=1),y=C.slice()),(v=y.length)<w&&y.unshift(0),r(b,y,w,u),-1==l&&(l=e(C,b,M,w=b.length))<1&&(h++,r(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,qe=d;else{for(f=1,h=m[0];h>=10;h/=10)f++;g.e=f+s*p-1,xr(g,c?o+g.e+1:o,a,d)}return g}}();function xr(t,e,r,n){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+=hr,a=e,u=(s=f[h=0])/ar(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/hr))>=(c=f.length)){if(!n)break t;for(;c++<=h;)f.push(0);s=u=0,i=1,a=(o%=hr)-hr+1}else{for(s=c=f[h],i=1;c>=10;c/=10)i++;u=(a=(o%=hr)-hr+i)<0?0:s/ar(10,i-a-1)%10|0}if(n=n||e<0||void 0!==f[h+1]||(a<0?s:s%ar(10,i-a-1)),l=r<4?(u||n)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?s/ar(10,i-a):0:f[h-1])%10&1||r==(t.s<0?8:7)),e<1||!f[0])return f.length=0,l?(e-=t.e+1,f[0]=ar(10,(hr-e%hr)%hr),t.e=-e||0):f[0]=t.e=0,t;if(0==o?(f.length=h,c=1,h--):(f.length=h+1,c=ar(10,hr-o),f[h]=a>0?(s/ar(10,i-a)%ar(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]==fr&&(f[0]=1));break}if(f[h]+=c,f[h]!=fr)break;f[h--]=0,c=1}for(o=f.length;0===f[--o];)f.pop()}return Qe&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function Or(t,e,r){if(!t.isFinite())return Dr(t);var n,i=t.e,o=vr(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+Mr(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+Mr(-i-1)+o,r&&(n=r-a)>0&&(o+=Mr(n))):i>=a?(o+=Mr(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+Mr(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=Mr(n))),o}function Sr(t,e){var r=t[0];for(e*=hr;r>=10;r/=10)e++;return e}function jr(t,e,r){if(e>pr)throw Qe=!0,r&&(t.precision=r),Error(rr);return xr(new t(Ge),e,1,!0)}function Ar(t,e,r){if(e>dr)throw Error(rr);return xr(new t(Ze),e,r,!0)}function Pr(t){var e=t.length-1,r=e*hr+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function Mr(t){for(var e="";t--;)e+="0";return e}function Er(t,e,r,n){var i,o=new t(1),a=Math.ceil(n/hr+4);for(Qe=!1;;){if(r%2&&$r((o=o.times(e)).d,a)&&(i=!0),0===(r=or(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}$r((e=e.times(e)).d,a)}return Qe=!0,o}function kr(t){return 1&t.d[t.d.length-1]}function _r(t,e,r){for(var n,i=new t(e[0]),o=0;++o<e.length;){if(!(n=new t(e[o])).s){i=n;break}i[r](n)&&(i=n)}return i}function Tr(t,e){var r,n,i,o,a,c,u,l=0,s=0,f=0,h=t.constructor,p=h.rounding,d=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(Qe=!1,u=d):u=e,c=new h(.03125);t.e>-2;)t=t.times(c),f+=5;for(u+=n=Math.log(ar(2,f))/Math.LN10*2+5|0,r=o=a=new h(1),h.precision=u;;){if(o=xr(o.times(t),u,1),r=r.times(++s),vr((c=a.plus(wr(o,r,u,1))).d).slice(0,u)===vr(a.d).slice(0,u)){for(i=f;i--;)a=xr(a.times(a),u,1);if(null!=e)return h.precision=d,a;if(!(l<3&&mr(a.d,u-n,p,l)))return xr(a,h.precision=d,p,Qe=!0);h.precision=u+=10,r=o=c=new h(1),s=0,l++}a=c}}function Cr(t,e){var r,n,i,o,a,c,u,l,s,f,h,p=1,d=t,y=d.d,v=d.constructor,g=v.rounding,m=v.precision;if(d.s<0||!y||!y[0]||!d.e&&1==y[0]&&1==y.length)return new v(y&&!y[0]?-1/0:1!=d.s?NaN:y?0:d);if(null==e?(Qe=!1,s=m):s=e,v.precision=s+=10,n=(r=vr(y)).charAt(0),!(Math.abs(o=d.e)<15e14))return l=jr(v,s+2,m).times(o+""),d=Cr(new v(n+"."+r.slice(1)),s-10).plus(l),v.precision=m,null==e?xr(d,m,g,Qe=!0):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=vr((d=d.times(t)).d)).charAt(0),p++;for(o=d.e,n>1?(d=new v("0."+r),o++):d=new v(n+"."+r.slice(1)),f=d,u=a=d=wr(d.minus(1),d.plus(1),s,1),h=xr(d.times(d),s,1),i=3;;){if(a=xr(a.times(h),s,1),vr((l=u.plus(wr(a,new v(i),s,1))).d).slice(0,s)===vr(u.d).slice(0,s)){if(u=u.times(2),0!==o&&(u=u.plus(jr(v,s+2,m).times(o+""))),u=wr(u,new v(p),s,1),null!=e)return v.precision=m,u;if(!mr(u.d,s-10,g,c))return xr(u,v.precision=m,g,Qe=!0);v.precision=s+=10,l=a=d=wr(f.minus(1),f.plus(1),s,1),h=xr(d.times(d),s,1),i=c=1}u=l,i+=2}}function Dr(t){return String(t.s*t.s/0)}function Nr(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(n,i)){if(i-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%hr,r<0&&(n+=hr),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=hr;n<i;)t.d.push(+e.slice(n,n+=hr));e=e.slice(n),n=hr-e.length}else n-=i;for(;n--;)e+="0";t.d.push(+e),Qe&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function Ir(t,e,r,n,i){var o,a,c,u,l=t.precision,s=Math.ceil(l/hr);for(Qe=!1,u=r.times(r),c=new t(n);;){if(a=wr(c.times(u),new t(e++*e++),l,1),c=i?n.plus(a):n.minus(a),n=wr(a.times(u),new t(e++*e++),l,1),void 0!==(a=c.plus(n)).d[s]){for(o=s;a.d[o]===c.d[o]&&o--;);if(-1==o)break}o=c,c=n,n=a,a=o}return Qe=!0,a.d.length=s+1,a}function Br(t,e){for(var r=t;--e;)r*=t;return r}function Lr(t,e){var r,n=e.s<0,i=Ar(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return We=n?4:1,e;if((r=e.divToInt(i)).isZero())We=n?3:2;else{if((e=e.minus(r.times(i))).lte(o))return We=kr(r)?n?2:3:n?4:1,e;We=kr(r)?n?1:4:n?3:2}return e.minus(i).abs()}function Rr(t,e,r,n){var i,o,a,c,u,l,s,f,h,p=t.constructor,d=void 0!==r;if(d?(gr(r,1,Ye),void 0===n?n=p.rounding:gr(n,0,8)):(r=p.precision,n=p.rounding),t.isFinite()){for(d?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(a=(s=Or(t)).indexOf("."))>=0&&(s=s.replace(".",""),(h=new p(1)).e=s.length-a,h.d=br(Or(h),10,i),h.e=h.d.length),o=u=(f=br(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=wr(t,h,r,n,0,i)).d,o=t.e,l=qe),a=f[r],c=i/2,l=l||void 0!==f[r+1],l=n<4?(void 0!==a||l)&&(0===n||n===(t.s<0?3:2)):a>c||a===c&&(4===n||l||6===n&&1&f[r-1]||n===(t.s<0?8:7)),f.length=r,l)for(;++f[--r]>i-1;)f[r]=0,r||(++o,f.unshift(1));for(u=f.length;!f[u-1];--u);for(a=0,s="";a<u;a++)s+=Ke.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=br(s,i,e)).length;!f[u-1];--u);for(a=1,s="1.";a<u;a++)s+=Ke.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=Dr(t);return t.s<0?"-"+s:s}function $r(t,e){if(t.length>e)return t.length=e,!0}function zr(t){return new this(t).abs()}function Hr(t){return new this(t).acos()}function Fr(t){return new this(t).acosh()}function Ur(t,e){return new this(t).plus(e)}function Vr(t){return new this(t).asin()}function qr(t){return new this(t).asinh()}function Wr(t){return new this(t).atan()}function Xr(t){return new this(t).atanh()}function Yr(t,e){t=new this(t),e=new this(e);var r,n=this.precision,i=this.rounding,o=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?Ar(this,n,i):new this(0)).s=t.s:!t.d||e.isZero()?(r=Ar(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,r=this.atan(wr(t,e,o,1)),e=Ar(this,o,1),this.precision=n,this.rounding=i,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(wr(t,e,o,1)):(r=Ar(this,o,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function Kr(t){return new this(t).cbrt()}function Gr(t){return xr(t=new this(t),t.e+1,2)}function Zr(t,e,r){return new this(t).clamp(e,r)}function Jr(t){if(!t||"object"!=typeof t)throw Error(tr+"Object expected");var e,r,n,i=!0===t.defaults,o=["precision",1,Ye,"rounding",0,8,"toExpNeg",-Xe,0,"toExpPos",0,Xe,"maxE",0,Xe,"minE",-Xe,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(r=o[e],i&&(this[r]=Je[r]),void 0!==(n=t[r])){if(!(or(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(er+r+": "+n);this[r]=n}if(r="crypto",i&&(this[r]=Je[r]),void 0!==(n=t[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(er+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(nr);this[r]=!0}else this[r]=!1}return this}function Qr(t){return new this(t).cos()}function tn(t){return new this(t).cosh()}function en(t,e){return new this(t).div(e)}function rn(t){return new this(t).exp()}function nn(t){return xr(t=new this(t),t.e+1,3)}function on(){var t,e,r=new this(0);for(Qe=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return Qe=!0,new this(1/0);r=e}return Qe=!0,r.sqrt()}function an(t){return t instanceof Mn||t&&t.toStringTag===ir||!1}function cn(t){return new this(t).ln()}function un(t,e){return new this(t).log(e)}function ln(t){return new this(t).log(2)}function sn(t){return new this(t).log(10)}function fn(){return _r(this,arguments,"lt")}function hn(){return _r(this,arguments,"gt")}function pn(t,e){return new this(t).mod(e)}function dn(t,e){return new this(t).mul(e)}function yn(t,e){return new this(t).pow(e)}function vn(t){var e,r,n,i,o=0,a=new this(1),c=[];if(void 0===t?t=this.precision:gr(t,1,Ye),n=Math.ceil(t/hr),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:c[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(nr);for(e=crypto.randomBytes(n*=4);o<n;)(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=n/4}else for(;o<n;)c[o++]=1e7*Math.random()|0;for(n=c[--o],t%=hr,n&&t&&(i=ar(10,hr-t),c[o]=(n/i|0)*i);0===c[o];o--)c.pop();if(o<0)r=0,c=[0];else{for(r=-1;0===c[0];r-=hr)c.shift();for(n=1,i=c[0];i>=10;i/=10)n++;n<hr&&(r-=hr-n)}return a.e=r,a.d=c,a}function gn(t){return xr(t=new this(t),t.e+1,this.rounding)}function mn(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function bn(t){return new this(t).sin()}function wn(t){return new this(t).sinh()}function xn(t){return new this(t).sqrt()}function On(t,e){return new this(t).sub(e)}function Sn(){var t=0,e=arguments,r=new this(e[t]);for(Qe=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return Qe=!0,xr(r,this.precision,this.rounding)}function jn(t){return new this(t).tan()}function An(t){return new this(t).tanh()}function Pn(t){return xr(t=new this(t),t.e+1,1)}yr[Symbol.for("nodejs.util.inspect.custom")]=yr.toString,yr[Symbol.toStringTag]="Decimal";var Mn=yr.constructor=function t(e){var r,n,i;function o(t){var e,r,n,i=this;if(!(i instanceof o))return new o(t);if(i.constructor=o,an(t))return i.s=t.s,void(Qe?!t.d||t.e>o.maxE?(i.e=NaN,i.d=null):t.e<o.minE?(i.e=0,i.d=[0]):(i.e=t.e,i.d=t.d.slice()):(i.e=t.e,i.d=t.d?t.d.slice():t.d));if("number"===(n=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,r=t;r>=10;r/=10)e++;return void(Qe?e>o.maxE?(i.e=NaN,i.d=null):e<o.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[t]):(i.e=e,i.d=[t]))}return 0*t!=0?(t||(i.s=NaN),i.e=NaN,void(i.d=null)):Nr(i,t.toString())}if("string"!==n)throw Error(er+t);return 45===(r=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===r&&(t=t.slice(1)),i.s=1),sr.test(t)?Nr(i,t):function(t,e){var r,n,i,o,a,c,u,l,s;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),sr.test(e))return Nr(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(ur.test(e))r=16,e=e.toLowerCase();else if(cr.test(e))r=2;else{if(!lr.test(e))throw Error(er+e);r=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,n=t.constructor,a&&(o=(c=(e=e.replace(".","")).length)-o,i=Er(n,new n(r),o,2*o)),o=s=(l=br(e,r,fr)).length-1;0===l[o];--o)l.pop();return o<0?new n(0*t.s):(t.e=Sr(l,s),t.d=l,Qe=!1,a&&(t=wr(t,i,4*c)),u&&(t=t.times(Math.abs(u)<54?ar(2,u):Mn.pow(2,u))),Qe=!0,t)}(i,t)}if(o.prototype=yr,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=Jr,o.clone=t,o.isDecimal=an,o.abs=zr,o.acos=Hr,o.acosh=Fr,o.add=Ur,o.asin=Vr,o.asinh=qr,o.atan=Wr,o.atanh=Xr,o.atan2=Yr,o.cbrt=Kr,o.ceil=Gr,o.clamp=Zr,o.cos=Qr,o.cosh=tn,o.div=en,o.exp=rn,o.floor=nn,o.hypot=on,o.ln=cn,o.log=un,o.log10=sn,o.log2=ln,o.max=fn,o.min=hn,o.mod=pn,o.mul=dn,o.pow=yn,o.random=vn,o.round=gn,o.sign=mn,o.sin=bn,o.sinh=wn,o.sqrt=xn,o.sub=On,o.sum=Sn,o.tan=jn,o.tanh=An,o.trunc=Pn,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}(Je);Ge=new Mn(Ge),Ze=new Mn(Ze);const En=t=>{if(t.some((t=>!Number.isFinite(t))))throw new Error(`One or more of the provided amounts is not a finite number. (amounts: ${t}, method: aggregateAmounts)`);return t.reduce(((t,e)=>t.plus(e)),new Mn(0)).toNumber()};var kn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _n(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Tn={exports:{}};Tn.exports=function(){var t=1e3,e=6e4,r=36e5,n="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"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},m={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,l),o=r-i<0,a=e.clone().add(n+(o?-1:1),l);return+(-(n+(r-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:n,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,r,n){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),r&&(w[o]=r,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!n&&i&&(b=i),i||!n&&b},j=function(t,e){if(O(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new P(r)},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,r=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 n=e.match(d);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[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 r=j(t);return this.startOf(e)<=r&&r<=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,r){return A.u(t)?this[e]:this.set(r,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var r=this,n=!!A.u(e)||e,s=A.p(t),p=function(t,e){var i=A.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(c)},d=function(t,e){return A.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},y=this.$W,v=this.$M,g=this.$D,m="set"+(this.$u?"UTC":"");switch(s){case f:return n?p(1,0):p(31,11);case l:return n?p(1,v):p(0,v+1);case u:var b=this.$locale().weekStart||0,w=(y<b?y+7:y)-b;return p(n?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 r,u=A.p(t),s="set"+(this.$u?"UTC":""),p=(r={},r[c]=s+"Date",r[h]=s+"Date",r[l]=s+"Month",r[f]=s+"FullYear",r[a]=s+"Hours",r[o]=s+"Minutes",r[i]=s+"Seconds",r[n]=s+"Milliseconds",r)[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(n,s){var h,p=this;n=Number(n);var d=A.p(s),y=function(t){var e=j(p);return A.w(e.date(e.date()+Math.round(t*n)),p)};if(d===l)return this.set(l,this.$M+n);if(d===f)return this.set(f,this.$y+n);if(d===c)return y(1);if(d===u)return y(7);var v=(h={},h[o]=e,h[a]=r,h[i]=t,h)[d]||1,g=this.$d.getTime()+n*v;return A.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),o=this.$H,a=this.$m,c=this.$M,u=r.weekdays,l=r.months,s=r.meridiem,f=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},h=function(t){return A.s(o%12||12,t,"0")},d=s||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(y,(function(t,n){return n||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(r.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(r.weekdaysMin,e.$W,u,2);case"ddd":return f(r.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(n,h,p){var d,y=this,v=A.p(h),g=j(n),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/r;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 r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},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",n],["$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 Cn,Dn,Nn,In=_n(Tn.exports),Bn={exports:{}};Bn.exports=(Cn="minute",Dn=/[+-]\d\d(?::?\d\d)?/g,Nn=/([+-]|\d\d)/g,function(t,e,r){var n=e.prototype;r.utc=function(t){return new e({date:t,utc:!0,args:arguments})},n.utc=function(t){var e=r(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),Cn):e},n.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var i=n.parse;n.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var o=n.init;n.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=n.utcOffset;n.utcOffset=function(t,e){var r=this.$utils().u;if(r(t))return this.$u?0:r(this.$offset)?a.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(Dn);if(!e)return null;var r=(""+e[0]).match(Nn)||["-",0,0],n=r[0],i=60*+r[1]+ +r[2];return 0===i?0:"+"===n?i:-i}(t),null===t))return this;var n=Math.abs(t)<=16?60*t:t,i=this;if(e)return i.$offset=n,i.$u=0===t,i;if(0!==t){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(n+o,Cn)).$offset=n,i.$x.$localOffset=o}else i=this.utc();return i};var c=n.format;n.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,e)},n.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var u=n.toDate;n.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var l=n.diff;n.diff=function(t,e,n){if(t&&this.$u===t.$u)return l.call(this,t,e,n);var i=this.local(),o=r(t).local();return l.call(i,o,e,n)}});var Ln=_n(Bn.exports);In.extend(Ln);const Rn=({timeString:t,toEndDate:e})=>""===t?"":e?In(`${t}T23:59:59`).utc().unix().toString():In(t).utc().unix().toString(),$n=({number:t,signDisplay:e="exceptZero",isDecimal:r=!0})=>{const n=Number(t);if(!Number.isFinite(n))return console.log(`Number is not a finite number. (number: ${n}, method: formatPercentage)`),t;return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,signDisplay:e}).format(r?n:n/100)},zn=({amount:t,autoPrecision:e,precision:r=2,signDisplay:n=!1})=>{const i=Number(t);if(!Number.isFinite(i))return console.log(`Amount is not a finite number. (amount: ${i}, method: formatUSD)`),t;const o=Ue(i,{precision:e&&i>-1&&i<1&&0!==i?5:r}).format();return n&&i>0?`+${o}`:o},Hn=({data:t,dataKey:e})=>{const r=t?.length?Number(t[0][e]):0,n=t?.length?Number(t[t.length-1][e]):0;if(!t?.length)return{startingAmount:0,endingAmount:0,delta:0,percentChange:0,isNetGain:!0};if(!Number.isFinite(r)||!Number.isFinite(n))throw new Error(`Starting or ending amount is not a finite number. (startingAmount: ${r}, endingAmount: ${n}, method: getDelta)`);const i=new Mn(r),o=new Mn(n),a=o.minus(i);return{startingAmount:r,endingAmount:n,delta:Number(a),percentChange:100*Number(a.dividedBy(i)),isNetGain:o.gt(i)}},Fn=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},Un=({arr:t,n:e})=>t.toReversed().filter(((t,r)=>r%e==0)).toReversed(),Vn={redRemains:(t=1)=>qn({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>qn({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>qn({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>qn({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>qn({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2]}),lighthouse:(t=1)=>qn({rgb:"rgb(244, 244, 244)",alpha:t,enabledAlphaValues:[.4]}),coolElegance:(t=1)=>qn({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>qn({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>qn({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08]})},qn=({rgb:t,alpha:e,enabledAlphaValues:r=[1]})=>{if(![...r,1].includes(e))throw`Unsupported alpha value: ${e}. Update the color function in uiColors.ts to enable additional values.`;const[n,i,o]=t.replace(/[^\d,]/g,"").split(",");return`rgba(${n}, ${i}, ${o}, ${e})`},Wn=t=>Ue(t).value,Xn=o({baseStyle:{color:Vn.sonicSilver(),_groupInvalid:{color:"red.500"}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),{definePartsStyle:Yn,defineMultiStyleConfig:Kn}=n(be.keys),Gn=Kn({baseStyle:Yn({group:{svg:{width:"1.25em",":not(.coin-logo)":{path:{fill:"gray.800"}}},_groupDisabled:{"svg:not(.coin-logo)":{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:Zn,defineMultiStyleConfig:Jn}=n(we.keys),Qn=Jn({baseStyle:Zn({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"}}),ti=o({variants:{simple:{th:{borderColor:Vn.coolElegance()},td:{borderColor:Vn.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:ei,defineMultiStyleConfig:ri}=n(xe.keys),ni=ei({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),ii=ei({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),oi=ei({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var ai=a({colors:{brand:{50:"#fcf2fe",100:"#f0c4f9",200:"#eaacf7",300:"#e495f4",400:"#de7ef2",500:"#d250ed",600:"#c622e8",700:"#b816da",800:"#a514c3",900:"#7e0f95"}},components:{Accordion:je,Alert:Me,Button:Ce,Checkbox:Ie,Input:Gn,Form:Be,FormLabel:Xn,FormError:Le,Select:Qn,Table:ti,Tag:ri({baseStyle:ni,defaultProps:{variant:"outline"},variants:{error:ii,success:ei({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:oi,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 ci={components:ai.components,styles:ai.styles};function ui(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=ui(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function li(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=ui(t))&&(n&&(n+=" "),n+=e);return n}var si=Array.isArray,fi="object"==typeof kn&&kn&&kn.Object===Object&&kn,hi=fi,pi="object"==typeof self&&self&&self.Object===Object&&self,di=hi||pi||Function("return this")(),yi=di.Symbol,vi=yi,gi=Object.prototype,mi=gi.hasOwnProperty,bi=gi.toString,wi=vi?vi.toStringTag:void 0;var xi=function(t){var e=mi.call(t,wi),r=t[wi];try{t[wi]=void 0;var n=!0}catch(t){}var i=bi.call(t);return n&&(e?t[wi]=r:delete t[wi]),i},Oi=Object.prototype.toString;var Si=xi,ji=function(t){return Oi.call(t)},Ai=yi?yi.toStringTag:void 0;var Pi=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ai&&Ai in Object(t)?Si(t):ji(t)};var Mi=function(t){return null!=t&&"object"==typeof t},Ei=Pi,ki=Mi;var _i=function(t){return"symbol"==typeof t||ki(t)&&"[object Symbol]"==Ei(t)},Ti=si,Ci=_i,Di=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ni=/^\w*$/;var Ii=function(t,e){if(Ti(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ci(t))||(Ni.test(t)||!Di.test(t)||null!=e&&t in Object(e))};var Bi=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Li=_n(Bi),Ri=Pi,$i=Bi;var zi,Hi=function(t){if(!$i(t))return!1;var e=Ri(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Fi=_n(Hi),Ui=di["__core-js_shared__"],Vi=(zi=/[^.]+$/.exec(Ui&&Ui.keys&&Ui.keys.IE_PROTO||""))?"Symbol(src)_1."+zi:"";var qi=function(t){return!!Vi&&Vi in t},Wi=Function.prototype.toString;var Xi=function(t){if(null!=t){try{return Wi.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Yi=Hi,Ki=qi,Gi=Bi,Zi=Xi,Ji=/^\[object .+?Constructor\]$/,Qi=Function.prototype,to=Object.prototype,eo=Qi.toString,ro=to.hasOwnProperty,no=RegExp("^"+eo.call(ro).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var io=function(t,e){return null==t?void 0:t[e]},oo=function(t){return!(!Gi(t)||Ki(t))&&(Yi(t)?no:Ji).test(Zi(t))},ao=io;var co=function(t,e){var r=ao(t,e);return oo(r)?r:void 0},uo=co(Object,"create"),lo=uo;var so=function(){this.__data__=lo?lo(null):{},this.size=0};var fo=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ho=uo,po=Object.prototype.hasOwnProperty;var yo=function(t){var e=this.__data__;if(ho){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return po.call(e,t)?e[t]:void 0},vo=uo,go=Object.prototype.hasOwnProperty;var mo=uo;var bo=so,wo=fo,xo=yo,Oo=function(t){var e=this.__data__;return vo?void 0!==e[t]:go.call(e,t)},So=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=mo&&void 0===e?"__lodash_hash_undefined__":e,this};function jo(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}jo.prototype.clear=bo,jo.prototype.delete=wo,jo.prototype.get=xo,jo.prototype.has=Oo,jo.prototype.set=So;var Ao=jo;var Po=function(){this.__data__=[],this.size=0};var Mo=function(t,e){return t===e||t!=t&&e!=e},Eo=Mo;var ko=function(t,e){for(var r=t.length;r--;)if(Eo(t[r][0],e))return r;return-1},_o=ko,To=Array.prototype.splice;var Co=ko;var Do=ko;var No=ko;var Io=Po,Bo=function(t){var e=this.__data__,r=_o(e,t);return!(r<0)&&(r==e.length-1?e.pop():To.call(e,r,1),--this.size,!0)},Lo=function(t){var e=this.__data__,r=Co(e,t);return r<0?void 0:e[r][1]},Ro=function(t){return Do(this.__data__,t)>-1},$o=function(t,e){var r=this.__data__,n=No(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function zo(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}zo.prototype.clear=Io,zo.prototype.delete=Bo,zo.prototype.get=Lo,zo.prototype.has=Ro,zo.prototype.set=$o;var Ho=zo,Fo=co(di,"Map"),Uo=Ao,Vo=Ho,qo=Fo;var Wo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Xo=function(t,e){var r=t.__data__;return Wo(e)?r["string"==typeof e?"string":"hash"]:r.map},Yo=Xo;var Ko=Xo;var Go=Xo;var Zo=Xo;var Jo=function(){this.size=0,this.__data__={hash:new Uo,map:new(qo||Vo),string:new Uo}},Qo=function(t){var e=Yo(this,t).delete(t);return this.size-=e?1:0,e},ta=function(t){return Ko(this,t).get(t)},ea=function(t){return Go(this,t).has(t)},ra=function(t,e){var r=Zo(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function na(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}na.prototype.clear=Jo,na.prototype.delete=Qo,na.prototype.get=ta,na.prototype.has=ea,na.prototype.set=ra;var ia=na,oa=ia;function aa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(aa.Cache||oa),r}aa.Cache=oa;var ca=aa,ua=_n(ca),la=ca;var sa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fa=/\\(\\)?/g,ha=function(t){var e=la(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(sa,(function(t,r,n,i){e.push(n?i.replace(fa,"$1"):r||t)})),e})),pa=ha;var da=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},ya=da,va=si,ga=_i,ma=yi?yi.prototype:void 0,ba=ma?ma.toString:void 0;var wa=function t(e){if("string"==typeof e)return e;if(va(e))return ya(e,t)+"";if(ga(e))return ba?ba.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r},xa=wa;var Oa=function(t){return null==t?"":xa(t)},Sa=si,ja=Ii,Aa=pa,Pa=Oa;var Ma=function(t,e){return Sa(t)?t:ja(t,e)?[t]:Aa(Pa(t))},Ea=_i;var ka=function(t){if("string"==typeof t||Ea(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},_a=Ma,Ta=ka;var Ca=function(t,e){for(var r=0,n=(e=_a(e,t)).length;null!=t&&r<n;)t=t[Ta(e[r++])];return r&&r==n?t:void 0},Da=Ca;var Na=function(t,e,r){var n=null==t?void 0:Da(t,e);return void 0===n?r:n},Ia=_n(Na);var Ba=_n((function(t){return null==t})),La=Pi,Ra=si,$a=Mi;var za,Ha=_n((function(t){return"string"==typeof t||!Ra(t)&&$a(t)&&"[object String]"==La(t)})),Fa={exports:{}},Ua={};var Va,qa={};
9
+ var Le,Re,$e=9e15,ze=1e9,He="0123456789abcdef",Fe="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Ue="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Ve={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-$e,maxE:$e,crypto:!1},qe=!0,We="[DecimalError] ",Xe=We+"Invalid argument: ",Ye=We+"Precision limit exceeded",Ke=We+"crypto unavailable",Ge="[object Decimal]",Ze=Math.floor,Je=Math.pow,Qe=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,tr=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,er=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,rr=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,nr=1e7,ir=7,or=Fe.length-1,ar=Ue.length-1,cr={toStringTag:Ge};function ur(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+"",(r=ir-n.length)&&(o+=br(r)),o+=n;a=t[e],(r=ir-(n=a+"").length)&&(o+=br(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}function lr(t,e,r){if(t!==~~t||t<e||t>r)throw Error(Xe+t)}function sr(t,e,r,n){var i,o,a,c;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=ir,i=0):(i=Math.ceil((e+1)/ir),e%=ir),o=Je(10,ir-e),c=t[i]%o|0,null==n?e<3?(0==e?c=c/100|0:1==e&&(c=c/10|0),a=r<4&&99999==c||r>3&&49999==c||5e4==c||0==c):a=(r<4&&c+1==o||r>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=(n||r<4)&&9999==c||!n&&r>3&&4999==c):a=((n||r<4)&&c+1==o||!n&&r>3&&c+1==o/2)&&(t[i+1]/o/1e3|0)==Je(10,e-3)-1,a}function fr(t,e,r){for(var n,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++)),n=0;n<o.length;n++)o[n]>r-1&&(void 0===o[n+1]&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}cr.absoluteValue=cr.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),pr(t)},cr.ceil=function(){return pr(new this.constructor(this),this.e+1,2)},cr.clampedTo=cr.clamp=function(t,e){var r=this,n=r.constructor;if(t=new n(t),e=new n(e),!t.s||!e.s)return new n(NaN);if(t.gt(e))throw Error(Xe+e);return r.cmp(t)<0?t:r.cmp(e)>0?e:new n(r)},cr.comparedTo=cr.cmp=function(t){var e,r,n,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,r=(n=a.length)<(i=c.length)?n:i;e<r;++e)if(a[e]!==c[e])return a[e]>c[e]^u<0?1:-1;return n===i?0:n>i^u<0?1:-1},cr.cosine=cr.cos=function(){var t,e,r=this,n=r.constructor;return r.d?r.d[0]?(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+ir,n.rounding=1,r=function(t,e){var r,n,i;if(e.isZero())return e;n=e.d.length,n<32?i=(1/Er(4,r=Math.ceil(n/3))).toString():(r=16,i="2.3283064365386962890625e-10");t.precision+=r,e=Mr(t,1,e.times(i),new t(1));for(var o=r;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=r,e}(n,kr(n,r)),n.precision=t,n.rounding=e,pr(2==Re||3==Re?r.neg():r,t,e,!0)):new n(1):new n(NaN)},cr.cubeRoot=cr.cbrt=function(){var t,e,r,n,i,o,a,c,u,l,s=this,f=s.constructor;if(!s.isFinite()||s.isZero())return new f(s);for(qe=!1,(o=s.s*Je(s.s*s,1/3))&&Math.abs(o)!=1/0?n=new f(o.toString()):(r=ur(s.d),(o=((t=s.e)-r.length+1)%3)&&(r+=1==o||-2==o?"0":"00"),o=Je(r,1/3),t=Ze((t+1)/3)-(t%3==(t<0?-1:2)),(n=new f(r=o==1/0?"5e"+t:(r=o.toExponential()).slice(0,r.indexOf("e")+1)+t)).s=s.s),a=(t=f.precision)+3;;)if(l=(u=(c=n).times(c).times(c)).plus(s),n=hr(l.plus(s).times(c),l.plus(u),a+2,1),ur(c.d).slice(0,a)===(r=ur(n.d)).slice(0,a)){if("9999"!=(r=r.slice(a-3,a+1))&&(i||"4999"!=r)){+r&&(+r.slice(1)||"5"!=r.charAt(0))||(pr(n,t+1,1),e=!n.times(n).times(n).eq(s));break}if(!i&&(pr(c,t+1,0),c.times(c).times(c).eq(s))){n=c;break}a+=4,i=1}return qe=!0,pr(n,t,f.rounding,e)},cr.decimalPlaces=cr.dp=function(){var t,e=this.d,r=NaN;if(e){if(r=((t=e.length-1)-Ze(this.e/ir))*ir,t=e[t])for(;t%10==0;t/=10)r--;r<0&&(r=0)}return r},cr.dividedBy=cr.div=function(t){return hr(this,new this.constructor(t))},cr.dividedToIntegerBy=cr.divToInt=function(t){var e=this.constructor;return pr(hr(this,new e(t),0,1,1),e.precision,e.rounding)},cr.equals=cr.eq=function(t){return 0===this.cmp(t)},cr.floor=function(){return pr(new this.constructor(this),this.e+1,3)},cr.greaterThan=cr.gt=function(t){return this.cmp(t)>0},cr.greaterThanOrEqualTo=cr.gte=function(t){var e=this.cmp(t);return 1==e||0===e},cr.hyperbolicCosine=cr.cosh=function(){var t,e,r,n,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;r=a.precision,n=a.rounding,a.precision=r+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/Er(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=Mr(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 pr(o,a.precision=r,a.rounding=n,!0)},cr.hyperbolicSine=cr.sinh=function(){var t,e,r,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,r=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(n=i.d.length)<3)i=Mr(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(n))>16?16:0|t,i=Mr(o,2,i=i.times(1/Er(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=r,pr(i,e,r,!0)},cr.hyperbolicTangent=cr.tanh=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+7,n.rounding=1,hr(r.sinh(),r.cosh(),n.precision=t,n.rounding=e)):new n(r.s)},cr.inverseCosine=cr.acos=function(){var t,e=this,r=e.constructor,n=e.abs().cmp(1),i=r.precision,o=r.rounding;return-1!==n?0===n?e.isNeg()?gr(r,i,o):new r(0):new r(NaN):e.isZero()?gr(r,i+4,o).times(.5):(r.precision=i+6,r.rounding=1,e=e.asin(),t=gr(r,i+4,o).times(.5),r.precision=i,r.rounding=o,t.minus(e))},cr.inverseHyperbolicCosine=cr.acosh=function(){var t,e,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(t=n.precision,e=n.rounding,n.precision=t+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,qe=!1,r=r.times(r).minus(1).sqrt().plus(r),qe=!0,n.precision=t,n.rounding=e,r.ln()):new n(r)},cr.inverseHyperbolicSine=cr.asinh=function(){var t,e,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,qe=!1,r=r.times(r).plus(1).sqrt().plus(r),qe=!0,n.precision=t,n.rounding=e,r.ln())},cr.inverseHyperbolicTangent=cr.atanh=function(){var t,e,r,n,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,n=i.sd(),Math.max(n,t)<2*-i.e-1?pr(new o(i),t,e,!0):(o.precision=r=n-i.e,i=hr(i.plus(1),new o(1).minus(i),r+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},cr.inverseSine=cr.asin=function(){var t,e,r,n,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),r=o.precision,n=o.rounding,-1!==e?0===e?((t=gr(o,r+4,n).times(.5)).s=i.s,t):new o(NaN):(o.precision=r+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=r,o.rounding=n,i.times(2)))},cr.inverseTangent=cr.atan=function(){var t,e,r,n,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<=ar)return(a=gr(s,f+4,h).times(.25)).s=l.s,a}else{if(!l.s)return new s(NaN);if(f+4<=ar)return(a=gr(s,f+4,h).times(.5)).s=l.s,a}for(s.precision=c=f+10,s.rounding=1,t=r=Math.min(28,c/ir+2|0);t;--t)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(qe=!1,e=Math.ceil(c/ir),n=1,u=l.times(l),a=new s(l),i=l;-1!==t;)if(i=i.times(u),o=a.minus(i.div(n+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(n+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return r&&(a=a.times(2<<r-1)),qe=!0,pr(a,s.precision=f,s.rounding=h,!0)},cr.isFinite=function(){return!!this.d},cr.isInteger=cr.isInt=function(){return!!this.d&&Ze(this.e/ir)>this.d.length-2},cr.isNaN=function(){return!this.s},cr.isNegative=cr.isNeg=function(){return this.s<0},cr.isPositive=cr.isPos=function(){return this.s>0},cr.isZero=function(){return!!this.d&&0===this.d[0]},cr.lessThan=cr.lt=function(t){return this.cmp(t)<0},cr.lessThanOrEqualTo=cr.lte=function(t){return this.cmp(t)<1},cr.logarithm=cr.log=function(t){var e,r,n,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(r=(t=new s(t)).d,t.s<0||!r||!r[0]||t.eq(1))return new s(NaN);e=t.eq(10)}if(r=l.d,l.s<0||!r||!r[0]||l.eq(1))return new s(r&&!r[0]?-1/0:1!=l.s?NaN:r?0:1/0);if(e)if(r.length>1)o=!0;else{for(i=r[0];i%10==0;)i/=10;o=1!==i}if(qe=!1,a=jr(l,c=f+5),n=e?vr(s,c+10):jr(t,c),sr((u=hr(a,n,c,1)).d,i=f,h))do{if(a=jr(l,c+=10),n=e?vr(s,c+10):jr(t,c),u=hr(a,n,c,1),!o){+ur(u.d).slice(i+1,i+15)+1==1e14&&(u=pr(u,f+1,0));break}}while(sr(u.d,i+=10,h));return qe=!0,pr(u,f,h)},cr.minus=cr.sub=function(t){var e,r,n,i,o,a,c,u,l,s,f,h,p=this,d=p.constructor;if(t=new d(t),!p.d||!t.d)return p.s&&t.s?p.d?t.s=-t.s:t=new d(t.d||p.s!==t.s?p:NaN):t=new d(NaN),t;if(p.s!=t.s)return t.s=-t.s,p.plus(t);if(l=p.d,h=t.d,c=d.precision,u=d.rounding,!l[0]||!h[0]){if(h[0])t.s=-t.s;else{if(!l[0])return new d(3===u?-0:0);t=new d(p)}return qe?pr(t,c,u):t}if(r=Ze(t.e/ir),s=Ze(p.e/ir),l=l.slice(),o=s-r){for((f=o<0)?(e=l,o=-o,a=h.length):(e=h,r=s,a=l.length),o>(n=Math.max(Math.ceil(c/ir),a)+2)&&(o=n,e.length=1),e.reverse(),n=o;n--;)e.push(0);e.reverse()}else{for((f=(n=l.length)<(a=h.length))&&(a=n),n=0;n<a;n++)if(l[n]!=h[n]){f=l[n]<h[n];break}o=0}for(f&&(e=l,l=h,h=e,t.s=-t.s),a=l.length,n=h.length-a;n>0;--n)l[a++]=0;for(n=h.length;n>o;){if(l[--n]<h[n]){for(i=n;i&&0===l[--i];)l[i]=nr-1;--l[i],l[n]+=nr}l[n]-=h[n]}for(;0===l[--a];)l.pop();for(;0===l[0];l.shift())--r;return l[0]?(t.d=l,t.e=yr(l,r),qe?pr(t,c,u):t):new d(3===u?-0:0)},cr.modulo=cr.mod=function(t){var e,r=this,n=r.constructor;return t=new n(t),!r.d||!t.s||t.d&&!t.d[0]?new n(NaN):!t.d||r.d&&!r.d[0]?pr(new n(r),n.precision,n.rounding):(qe=!1,9==n.modulo?(e=hr(r,t.abs(),0,3,1)).s*=t.s:e=hr(r,t,0,n.modulo,1),e=e.times(t),qe=!0,r.minus(e))},cr.naturalExponential=cr.exp=function(){return Sr(this)},cr.naturalLogarithm=cr.ln=function(){return jr(this)},cr.negated=cr.neg=function(){var t=new this.constructor(this);return t.s=-t.s,pr(t)},cr.plus=cr.add=function(t){var e,r,n,i,o,a,c,u,l,s,f=this,h=f.constructor;if(t=new h(t),!f.d||!t.d)return f.s&&t.s?f.d||(t=new h(t.d||f.s===t.s?f:NaN)):t=new h(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.minus(t);if(l=f.d,s=t.d,c=h.precision,u=h.rounding,!l[0]||!s[0])return s[0]||(t=new h(f)),qe?pr(t,c,u):t;if(o=Ze(f.e/ir),n=Ze(t.e/ir),l=l.slice(),i=o-n){for(i<0?(r=l,i=-i,a=s.length):(r=s,n=o,a=l.length),i>(a=(o=Math.ceil(c/ir))>a?o+1:a+1)&&(i=a,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((a=l.length)-(i=s.length)<0&&(i=a,r=s,s=l,l=r),e=0;i;)e=(l[--i]=l[i]+s[i]+e)/nr|0,l[i]%=nr;for(e&&(l.unshift(e),++n),a=l.length;0==l[--a];)l.pop();return t.d=l,t.e=yr(l,n),qe?pr(t,c,u):t},cr.precision=cr.sd=function(t){var e,r=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Xe+t);return r.d?(e=mr(r.d),t&&r.e+1>e&&(e=r.e+1)):e=NaN,e},cr.round=function(){var t=this,e=t.constructor;return pr(new e(t),t.e+1,e.rounding)},cr.sine=cr.sin=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+Math.max(r.e,r.sd())+ir,n.rounding=1,r=function(t,e){var r,n=e.d.length;if(n<3)return e.isZero()?e:Mr(t,2,e,e);r=1.4*Math.sqrt(n),r=r>16?16:0|r,e=e.times(1/Er(5,r)),e=Mr(t,2,e,e);for(var i,o=new t(5),a=new t(16),c=new t(20);r--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(c))));return e}(n,kr(n,r)),n.precision=t,n.rounding=e,pr(Re>2?r.neg():r,t,e,!0)):new n(NaN)},cr.squareRoot=cr.sqrt=function(){var t,e,r,n,i,o,a=this,c=a.d,u=a.e,l=a.s,s=a.constructor;if(1!==l||!c||!c[0])return new s(!l||l<0&&(!c||c[0])?NaN:c?a:1/0);for(qe=!1,0==(l=Math.sqrt(+a))||l==1/0?(((e=ur(c)).length+u)%2==0&&(e+="0"),l=Math.sqrt(e),u=Ze((u+1)/2)-(u<0||u%2),n=new s(e=l==1/0?"5e"+u:(e=l.toExponential()).slice(0,e.indexOf("e")+1)+u)):n=new s(l.toString()),r=(u=s.precision)+3;;)if(n=(o=n).plus(hr(a,o,r+2,1)).times(.5),ur(o.d).slice(0,r)===(e=ur(n.d)).slice(0,r)){if("9999"!=(e=e.slice(r-3,r+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(pr(n,u+1,1),t=!n.times(n).eq(a));break}if(!i&&(pr(o,u+1,0),o.times(o).eq(a))){n=o;break}r+=4,i=1}return qe=!0,pr(n,u,s.rounding,t)},cr.tangent=cr.tan=function(){var t,e,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(t=n.precision,e=n.rounding,n.precision=t+10,n.rounding=1,(r=r.sin()).s=1,r=hr(r,new n(1).minus(r.times(r)).sqrt(),t+10,0),n.precision=t,n.rounding=e,pr(2==Re||4==Re?r.neg():r,t,e,!0)):new n(NaN)},cr.times=cr.mul=function(t){var e,r,n,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(r=Ze(s.e/ir)+Ze(t.e/ir),(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],n=a=u+l;n--;)o.push(0);for(n=l;--n>=0;){for(e=0,i=u+n;i>n;)c=o[i]+p[n]*h[i-n-1]+e,o[i--]=c%nr|0,e=c/nr|0;o[i]=(o[i]+e)%nr|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=yr(o,r),qe?pr(t,f.precision,f.rounding):t},cr.toBinary=function(t,e){return _r(this,2,t,e)},cr.toDecimalPlaces=cr.toDP=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(lr(t,0,ze),void 0===e?e=n.rounding:lr(e,0,8),pr(r,t+r.e+1,e))},cr.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=dr(n,!0):(lr(t,0,ze),void 0===e?e=i.rounding:lr(e,0,8),r=dr(n=pr(new i(n),t+1,e),!0,t+1)),n.isNeg()&&!n.isZero()?"-"+r:r},cr.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?r=dr(i):(lr(t,0,ze),void 0===e?e=o.rounding:lr(e,0,8),r=dr(n=pr(new o(i),t+i.e+1,e),!1,t+n.e+1)),i.isNeg()&&!i.isZero()?"-"+r:r},cr.toFraction=function(t){var e,r,n,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=r=new y(1),n=u=new y(0),a=(o=(e=new y(n)).e=mr(d)-p.e-1)%ir,e.d[0]=Je(10,a<0?ir+a:a),null==t)t=o>0?e:l;else{if(!(c=new y(t)).isInt()||c.lt(l))throw Error(Xe+c);t=c.gt(e)?o>0?e:l:c}for(qe=!1,c=new y(ur(d)),s=y.precision,y.precision=o=d.length*ir*2;f=hr(c,e,0,1,1),1!=(i=r.plus(f.times(n))).cmp(t);)r=n,n=i,i=l,l=u.plus(f.times(i)),u=i,i=e,e=c.minus(f.times(i)),c=i;return i=hr(t.minus(r),n,0,1,1),u=u.plus(i.times(l)),r=r.plus(i.times(n)),u.s=l.s=p.s,h=hr(l,n,o,1).minus(p).abs().cmp(hr(u,r,o,1).minus(p).abs())<1?[l,n]:[u,r],y.precision=s,qe=!0,h},cr.toHexadecimal=cr.toHex=function(t,e){return _r(this,16,t,e)},cr.toNearest=function(t,e){var r=this,n=r.constructor;if(r=new n(r),null==t){if(!r.d)return r;t=new n(1),e=n.rounding}else{if(t=new n(t),void 0===e?e=n.rounding:lr(e,0,8),!r.d)return t.s?r:t;if(!t.d)return t.s&&(t.s=r.s),t}return t.d[0]?(qe=!1,r=hr(r,t,0,e,1).times(t),qe=!0,pr(r)):(t.s=r.s,r=t),r},cr.toNumber=function(){return+this},cr.toOctal=function(t,e){return _r(this,8,t,e)},cr.toPower=cr.pow=function(t){var e,r,n,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(n=u.precision,o=u.rounding,t.eq(1))return pr(c,n,o);if((e=Ze(t.e/ir))>=t.d.length-1&&(r=l<0?-l:l)<=9007199254740991)return i=wr(u,c,r,n),t.s<0?new u(1).div(i):pr(i,n,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!=(r=Je(+c,l))&&isFinite(r)?new u(r+"").e:Ze(l*(Math.log("0."+ur(c.d))/Math.LN10+c.e+1)))>u.maxE+1||e<u.minE-1?new u(e>0?a/0:0):(qe=!1,u.rounding=c.s=1,r=Math.min(12,(e+"").length),(i=Sr(t.times(jr(c,n+r)),n)).d&&sr((i=pr(i,n+5,1)).d,n,o)&&(e=n+10,+ur((i=pr(Sr(t.times(jr(c,e+r)),e),e+5,1)).d).slice(n+1,n+15)+1==1e14&&(i=pr(i,n+1,0))),i.s=a,qe=!0,u.rounding=o,pr(i,n,o))},cr.toPrecision=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=dr(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(lr(t,1,ze),void 0===e?e=i.rounding:lr(e,0,8),r=dr(n=pr(new i(n),t,e),t<=n.e||n.e<=i.toExpNeg,t)),n.isNeg()&&!n.isZero()?"-"+r:r},cr.toSignificantDigits=cr.toSD=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(lr(t,1,ze),void 0===e?e=r.rounding:lr(e,0,8)),pr(new r(this),t,e)},cr.toString=function(){var t=this,e=t.constructor,r=dr(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+r:r},cr.truncated=cr.trunc=function(){return pr(new this.constructor(this),this.e+1,1)},cr.valueOf=cr.toJSON=function(){var t=this,e=t.constructor,r=dr(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+r:r};var hr=function(){function t(t,e,r){var n,i=0,o=t.length;for(t=t.slice();o--;)n=t[o]*e+i,t[o]=n%r|0,i=n/r|0;return i&&t.unshift(i),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r,n){for(var i=0;r--;)t[r]-=i,i=t[r]<e[r]?1:0,t[r]=i*n+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,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=n.constructor,_=n.s==i.s?1:-1,T=n.d,C=i.d;if(!(T&&T[0]&&C&&C[0]))return new k(n.s&&i.s&&(T?!C||T[0]!=C[0]:C)?T&&0==T[0]||!C?0*_:_/0:NaN);for(u?(p=1,s=n.e-i.e):(u=nr,p=ir,s=Ze(n.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+(n.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--,r(y,M<v?E:C,v,u))):(0==h&&(l=h=1),y=C.slice()),(v=y.length)<w&&y.unshift(0),r(b,y,w,u),-1==l&&(l=e(C,b,M,w=b.length))<1&&(h++,r(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,Le=d;else{for(f=1,h=m[0];h>=10;h/=10)f++;g.e=f+s*p-1,pr(g,c?o+g.e+1:o,a,d)}return g}}();function pr(t,e,r,n){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+=ir,a=e,u=(s=f[h=0])/Je(10,i-a-1)%10|0;else if((h=Math.ceil((o+1)/ir))>=(c=f.length)){if(!n)break t;for(;c++<=h;)f.push(0);s=u=0,i=1,a=(o%=ir)-ir+1}else{for(s=c=f[h],i=1;c>=10;c/=10)i++;u=(a=(o%=ir)-ir+i)<0?0:s/Je(10,i-a-1)%10|0}if(n=n||e<0||void 0!==f[h+1]||(a<0?s:s%Je(10,i-a-1)),l=r<4?(u||n)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||n||6==r&&(o>0?a>0?s/Je(10,i-a):0:f[h-1])%10&1||r==(t.s<0?8:7)),e<1||!f[0])return f.length=0,l?(e-=t.e+1,f[0]=Je(10,(ir-e%ir)%ir),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,ir-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]==nr&&(f[0]=1));break}if(f[h]+=c,f[h]!=nr)break;f[h--]=0,c=1}for(o=f.length;0===f[--o];)f.pop()}return qe&&(t.e>p.maxE?(t.d=null,t.e=NaN):t.e<p.minE&&(t.e=0,t.d=[0])),t}function dr(t,e,r){if(!t.isFinite())return Ar(t);var n,i=t.e,o=ur(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+br(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+br(-i-1)+o,r&&(n=r-a)>0&&(o+=br(n))):i>=a?(o+=br(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+br(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=br(n))),o}function yr(t,e){var r=t[0];for(e*=ir;r>=10;r/=10)e++;return e}function vr(t,e,r){if(e>or)throw qe=!0,r&&(t.precision=r),Error(Ye);return pr(new t(Fe),e,1,!0)}function gr(t,e,r){if(e>ar)throw Error(Ye);return pr(new t(Ue),e,r,!0)}function mr(t){var e=t.length-1,r=e*ir+1;if(e=t[e]){for(;e%10==0;e/=10)r--;for(e=t[0];e>=10;e/=10)r++}return r}function br(t){for(var e="";t--;)e+="0";return e}function wr(t,e,r,n){var i,o=new t(1),a=Math.ceil(n/ir+4);for(qe=!1;;){if(r%2&&Tr((o=o.times(e)).d,a)&&(i=!0),0===(r=Ze(r/2))){r=o.d.length-1,i&&0===o.d[r]&&++o.d[r];break}Tr((e=e.times(e)).d,a)}return qe=!0,o}function xr(t){return 1&t.d[t.d.length-1]}function Or(t,e,r){for(var n,i=new t(e[0]),o=0;++o<e.length;){if(!(n=new t(e[o])).s){i=n;break}i[r](n)&&(i=n)}return i}function Sr(t,e){var r,n,i,o,a,c,u,l=0,s=0,f=0,h=t.constructor,p=h.rounding,d=h.precision;if(!t.d||!t.d[0]||t.e>17)return new h(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(qe=!1,u=d):u=e,c=new h(.03125);t.e>-2;)t=t.times(c),f+=5;for(u+=n=Math.log(Je(2,f))/Math.LN10*2+5|0,r=o=a=new h(1),h.precision=u;;){if(o=pr(o.times(t),u,1),r=r.times(++s),ur((c=a.plus(hr(o,r,u,1))).d).slice(0,u)===ur(a.d).slice(0,u)){for(i=f;i--;)a=pr(a.times(a),u,1);if(null!=e)return h.precision=d,a;if(!(l<3&&sr(a.d,u-n,p,l)))return pr(a,h.precision=d,p,qe=!0);h.precision=u+=10,r=o=c=new h(1),s=0,l++}a=c}}function jr(t,e){var r,n,i,o,a,c,u,l,s,f,h,p=1,d=t,y=d.d,v=d.constructor,g=v.rounding,m=v.precision;if(d.s<0||!y||!y[0]||!d.e&&1==y[0]&&1==y.length)return new v(y&&!y[0]?-1/0:1!=d.s?NaN:y?0:d);if(null==e?(qe=!1,s=m):s=e,v.precision=s+=10,n=(r=ur(y)).charAt(0),!(Math.abs(o=d.e)<15e14))return l=vr(v,s+2,m).times(o+""),d=jr(new v(n+"."+r.slice(1)),s-10).plus(l),v.precision=m,null==e?pr(d,m,g,qe=!0):d;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=ur((d=d.times(t)).d)).charAt(0),p++;for(o=d.e,n>1?(d=new v("0."+r),o++):d=new v(n+"."+r.slice(1)),f=d,u=a=d=hr(d.minus(1),d.plus(1),s,1),h=pr(d.times(d),s,1),i=3;;){if(a=pr(a.times(h),s,1),ur((l=u.plus(hr(a,new v(i),s,1))).d).slice(0,s)===ur(u.d).slice(0,s)){if(u=u.times(2),0!==o&&(u=u.plus(vr(v,s+2,m).times(o+""))),u=hr(u,new v(p),s,1),null!=e)return v.precision=m,u;if(!sr(u.d,s-10,g,c))return pr(u,v.precision=m,g,qe=!0);v.precision=s+=10,l=a=d=hr(f.minus(1),f.plus(1),s,1),h=pr(d.times(d),s,1),i=c=1}u=l,i+=2}}function Ar(t){return String(t.s*t.s/0)}function Pr(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);n++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(n,i)){if(i-=n,t.e=r=r-n-1,t.d=[],n=(r+1)%ir,r<0&&(n+=ir),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=ir;n<i;)t.d.push(+e.slice(n,n+=ir));e=e.slice(n),n=ir-e.length}else n-=i;for(;n--;)e+="0";t.d.push(+e),qe&&(t.e>t.constructor.maxE?(t.d=null,t.e=NaN):t.e<t.constructor.minE&&(t.e=0,t.d=[0]))}else t.e=0,t.d=[0];return t}function Mr(t,e,r,n,i){var o,a,c,u,l=t.precision,s=Math.ceil(l/ir);for(qe=!1,u=r.times(r),c=new t(n);;){if(a=hr(c.times(u),new t(e++*e++),l,1),c=i?n.plus(a):n.minus(a),n=hr(a.times(u),new t(e++*e++),l,1),void 0!==(a=c.plus(n)).d[s]){for(o=s;a.d[o]===c.d[o]&&o--;);if(-1==o)break}o=c,c=n,n=a,a=o}return qe=!0,a.d.length=s+1,a}function Er(t,e){for(var r=t;--e;)r*=t;return r}function kr(t,e){var r,n=e.s<0,i=gr(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return Re=n?4:1,e;if((r=e.divToInt(i)).isZero())Re=n?3:2;else{if((e=e.minus(r.times(i))).lte(o))return Re=xr(r)?n?2:3:n?4:1,e;Re=xr(r)?n?1:4:n?3:2}return e.minus(i).abs()}function _r(t,e,r,n){var i,o,a,c,u,l,s,f,h,p=t.constructor,d=void 0!==r;if(d?(lr(r,1,ze),void 0===n?n=p.rounding:lr(n,0,8)):(r=p.precision,n=p.rounding),t.isFinite()){for(d?(i=2,16==e?r=4*r-3:8==e&&(r=3*r-2)):i=e,(a=(s=dr(t)).indexOf("."))>=0&&(s=s.replace(".",""),(h=new p(1)).e=s.length-a,h.d=fr(dr(h),10,i),h.e=h.d.length),o=u=(f=fr(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=hr(t,h,r,n,0,i)).d,o=t.e,l=Le),a=f[r],c=i/2,l=l||void 0!==f[r+1],l=n<4?(void 0!==a||l)&&(0===n||n===(t.s<0?3:2)):a>c||a===c&&(4===n||l||6===n&&1&f[r-1]||n===(t.s<0?8:7)),f.length=r,l)for(;++f[--r]>i-1;)f[r]=0,r||(++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=fr(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=Ar(t);return t.s<0?"-"+s:s}function Tr(t,e){if(t.length>e)return t.length=e,!0}function Cr(t){return new this(t).abs()}function Dr(t){return new this(t).acos()}function Nr(t){return new this(t).acosh()}function Ir(t,e){return new this(t).plus(e)}function Br(t){return new this(t).asin()}function Lr(t){return new this(t).asinh()}function Rr(t){return new this(t).atan()}function $r(t){return new this(t).atanh()}function zr(t,e){t=new this(t),e=new this(e);var r,n=this.precision,i=this.rounding,o=n+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(r=e.s<0?gr(this,n,i):new this(0)).s=t.s:!t.d||e.isZero()?(r=gr(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,r=this.atan(hr(t,e,o,1)),e=gr(this,o,1),this.precision=n,this.rounding=i,r=t.s<0?r.minus(e):r.plus(e)):r=this.atan(hr(t,e,o,1)):(r=gr(this,o,1).times(e.s>0?.25:.75)).s=t.s:r=new this(NaN),r}function Hr(t){return new this(t).cbrt()}function Fr(t){return pr(t=new this(t),t.e+1,2)}function Ur(t,e,r){return new this(t).clamp(e,r)}function Vr(t){if(!t||"object"!=typeof t)throw Error(We+"Object expected");var e,r,n,i=!0===t.defaults,o=["precision",1,ze,"rounding",0,8,"toExpNeg",-$e,0,"toExpPos",0,$e,"maxE",0,$e,"minE",-$e,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(r=o[e],i&&(this[r]=Ve[r]),void 0!==(n=t[r])){if(!(Ze(n)===n&&n>=o[e+1]&&n<=o[e+2]))throw Error(Xe+r+": "+n);this[r]=n}if(r="crypto",i&&(this[r]=Ve[r]),void 0!==(n=t[r])){if(!0!==n&&!1!==n&&0!==n&&1!==n)throw Error(Xe+r+": "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(Ke);this[r]=!0}else this[r]=!1}return this}function qr(t){return new this(t).cos()}function Wr(t){return new this(t).cosh()}function Xr(t,e){return new this(t).div(e)}function Yr(t){return new this(t).exp()}function Kr(t){return pr(t=new this(t),t.e+1,3)}function Gr(){var t,e,r=new this(0);for(qe=!1,t=0;t<arguments.length;)if((e=new this(arguments[t++])).d)r.d&&(r=r.plus(e.times(e)));else{if(e.s)return qe=!0,new this(1/0);r=e}return qe=!0,r.sqrt()}function Zr(t){return t instanceof bn||t&&t.toStringTag===Ge||!1}function Jr(t){return new this(t).ln()}function Qr(t,e){return new this(t).log(e)}function tn(t){return new this(t).log(2)}function en(t){return new this(t).log(10)}function rn(){return Or(this,arguments,"lt")}function nn(){return Or(this,arguments,"gt")}function on(t,e){return new this(t).mod(e)}function an(t,e){return new this(t).mul(e)}function cn(t,e){return new this(t).pow(e)}function un(t){var e,r,n,i,o=0,a=new this(1),c=[];if(void 0===t?t=this.precision:lr(t,1,ze),n=Math.ceil(t/ir),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));o<n;)(i=e[o])>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:c[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(Ke);for(e=crypto.randomBytes(n*=4);o<n;)(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=n/4}else for(;o<n;)c[o++]=1e7*Math.random()|0;for(n=c[--o],t%=ir,n&&t&&(i=Je(10,ir-t),c[o]=(n/i|0)*i);0===c[o];o--)c.pop();if(o<0)r=0,c=[0];else{for(r=-1;0===c[0];r-=ir)c.shift();for(n=1,i=c[0];i>=10;i/=10)n++;n<ir&&(r-=ir-n)}return a.e=r,a.d=c,a}function ln(t){return pr(t=new this(t),t.e+1,this.rounding)}function sn(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function fn(t){return new this(t).sin()}function hn(t){return new this(t).sinh()}function pn(t){return new this(t).sqrt()}function dn(t,e){return new this(t).sub(e)}function yn(){var t=0,e=arguments,r=new this(e[t]);for(qe=!1;r.s&&++t<e.length;)r=r.plus(e[t]);return qe=!0,pr(r,this.precision,this.rounding)}function vn(t){return new this(t).tan()}function gn(t){return new this(t).tanh()}function mn(t){return pr(t=new this(t),t.e+1,1)}cr[Symbol.for("nodejs.util.inspect.custom")]=cr.toString,cr[Symbol.toStringTag]="Decimal";var bn=cr.constructor=function t(e){var r,n,i;function o(t){var e,r,n,i=this;if(!(i instanceof o))return new o(t);if(i.constructor=o,Zr(t))return i.s=t.s,void(qe?!t.d||t.e>o.maxE?(i.e=NaN,i.d=null):t.e<o.minE?(i.e=0,i.d=[0]):(i.e=t.e,i.d=t.d.slice()):(i.e=t.e,i.d=t.d?t.d.slice():t.d));if("number"===(n=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,r=t;r>=10;r/=10)e++;return void(qe?e>o.maxE?(i.e=NaN,i.d=null):e<o.minE?(i.e=0,i.d=[0]):(i.e=e,i.d=[t]):(i.e=e,i.d=[t]))}return 0*t!=0?(t||(i.s=NaN),i.e=NaN,void(i.d=null)):Pr(i,t.toString())}if("string"!==n)throw Error(Xe+t);return 45===(r=t.charCodeAt(0))?(t=t.slice(1),i.s=-1):(43===r&&(t=t.slice(1)),i.s=1),rr.test(t)?Pr(i,t):function(t,e){var r,n,i,o,a,c,u,l,s;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),rr.test(e))return Pr(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(tr.test(e))r=16,e=e.toLowerCase();else if(Qe.test(e))r=2;else{if(!er.test(e))throw Error(Xe+e);r=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,n=t.constructor,a&&(o=(c=(e=e.replace(".","")).length)-o,i=wr(n,new n(r),o,2*o)),o=s=(l=fr(e,r,nr)).length-1;0===l[o];--o)l.pop();return o<0?new n(0*t.s):(t.e=yr(l,s),t.d=l,qe=!1,a&&(t=hr(t,i,4*c)),u&&(t=t.times(Math.abs(u)<54?Je(2,u):bn.pow(2,u))),qe=!0,t)}(i,t)}if(o.prototype=cr,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=Vr,o.clone=t,o.isDecimal=Zr,o.abs=Cr,o.acos=Dr,o.acosh=Nr,o.add=Ir,o.asin=Br,o.asinh=Lr,o.atan=Rr,o.atanh=$r,o.atan2=zr,o.cbrt=Hr,o.ceil=Fr,o.clamp=Ur,o.cos=qr,o.cosh=Wr,o.div=Xr,o.exp=Yr,o.floor=Kr,o.hypot=Gr,o.ln=Jr,o.log=Qr,o.log10=en,o.log2=tn,o.max=rn,o.min=nn,o.mod=on,o.mul=an,o.pow=cn,o.random=un,o.round=ln,o.sign=sn,o.sin=fn,o.sinh=hn,o.sqrt=pn,o.sub=dn,o.sum=yn,o.tan=vn,o.tanh=gn,o.trunc=mn,void 0===e&&(e={}),e&&!0!==e.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}(Ve);Fe=new bn(Fe),Ue=new bn(Ue);const wn=t=>{if(t.some((t=>!Number.isFinite(t))))throw new Error(`One or more of the provided amounts is not a finite number. (amounts: ${t}, method: aggregateAmounts)`);return t.reduce(((t,e)=>t.plus(e)),new bn(0)).toNumber()};var xn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function On(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Sn={exports:{}};Sn.exports=function(){var t=1e3,e=6e4,r=36e5,n="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"],r=t%100;return"["+t+(e[(r-20)%10]||e[r]||e[0])+"]"}},g=function(t,e,r){var n=String(t);return!n||n.length>=e?t:""+Array(e+1-n.length).join(r)+t},m={s:g,z:function(t){var e=-t.utcOffset(),r=Math.abs(e),n=Math.floor(r/60),i=r%60;return(e<=0?"+":"-")+g(n,2,"0")+":"+g(i,2,"0")},m:function t(e,r){if(e.date()<r.date())return-t(r,e);var n=12*(r.year()-e.year())+(r.month()-e.month()),i=e.clone().add(n,l),o=r-i<0,a=e.clone().add(n+(o?-1:1),l);return+(-(n+(r-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:n,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,r,n){var i;if(!e)return b;if("string"==typeof e){var o=e.toLowerCase();w[o]&&(i=o),r&&(w[o]=r,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!n&&i&&(b=i),i||!n&&b},j=function(t,e){if(O(t))return t.clone();var r="object"==typeof e?e:{};return r.date=t,r.args=arguments,new P(r)},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,r=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 n=e.match(d);if(n){var i=n[2]-1||0,o=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,o)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[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 r=j(t);return this.startOf(e)<=r&&r<=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,r){return A.u(t)?this[e]:this.set(r,t)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(t,e){var r=this,n=!!A.u(e)||e,s=A.p(t),p=function(t,e){var i=A.w(r.$u?Date.UTC(r.$y,e,t):new Date(r.$y,e,t),r);return n?i:i.endOf(c)},d=function(t,e){return A.w(r.toDate()[t].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(e)),r)},y=this.$W,v=this.$M,g=this.$D,m="set"+(this.$u?"UTC":"");switch(s){case f:return n?p(1,0):p(31,11);case l:return n?p(1,v):p(0,v+1);case u:var b=this.$locale().weekStart||0,w=(y<b?y+7:y)-b;return p(n?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 r,u=A.p(t),s="set"+(this.$u?"UTC":""),p=(r={},r[c]=s+"Date",r[h]=s+"Date",r[l]=s+"Month",r[f]=s+"FullYear",r[a]=s+"Hours",r[o]=s+"Minutes",r[i]=s+"Seconds",r[n]=s+"Milliseconds",r)[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(n,s){var h,p=this;n=Number(n);var d=A.p(s),y=function(t){var e=j(p);return A.w(e.date(e.date()+Math.round(t*n)),p)};if(d===l)return this.set(l,this.$M+n);if(d===f)return this.set(f,this.$y+n);if(d===c)return y(1);if(d===u)return y(7);var v=(h={},h[o]=e,h[a]=r,h[i]=t,h)[d]||1,g=this.$d.getTime()+n*v;return A.w(g,this)},g.subtract=function(t,e){return this.add(-1*t,e)},g.format=function(t){var e=this,r=this.$locale();if(!this.isValid())return r.invalidDate||p;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=A.z(this),o=this.$H,a=this.$m,c=this.$M,u=r.weekdays,l=r.months,s=r.meridiem,f=function(t,r,i,o){return t&&(t[r]||t(e,n))||i[r].slice(0,o)},h=function(t){return A.s(o%12||12,t,"0")},d=s||function(t,e,r){var n=t<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(y,(function(t,n){return n||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(r.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(r.weekdaysMin,e.$W,u,2);case"ddd":return f(r.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(n,h,p){var d,y=this,v=A.p(h),g=j(n),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/r;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 r=this.clone(),n=S(t,e,!0);return n&&(r.$L=n),r},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",n],["$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 jn,An,Pn,Mn=On(Sn.exports),En={exports:{}};En.exports=(jn="minute",An=/[+-]\d\d(?::?\d\d)?/g,Pn=/([+-]|\d\d)/g,function(t,e,r){var n=e.prototype;r.utc=function(t){return new e({date:t,utc:!0,args:arguments})},n.utc=function(t){var e=r(this.toDate(),{locale:this.$L,utc:!0});return t?e.add(this.utcOffset(),jn):e},n.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var i=n.parse;n.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),i.call(this,t)};var o=n.init;n.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=n.utcOffset;n.utcOffset=function(t,e){var r=this.$utils().u;if(r(t))return this.$u?0:r(this.$offset)?a.call(this):this.$offset;if("string"==typeof t&&(t=function(t){void 0===t&&(t="");var e=t.match(An);if(!e)return null;var r=(""+e[0]).match(Pn)||["-",0,0],n=r[0],i=60*+r[1]+ +r[2];return 0===i?0:"+"===n?i:-i}(t),null===t))return this;var n=Math.abs(t)<=16?60*t:t,i=this;if(e)return i.$offset=n,i.$u=0===t,i;if(0!==t){var o=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(i=this.local().add(n+o,jn)).$offset=n,i.$x.$localOffset=o}else i=this.utc();return i};var c=n.format;n.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,e)},n.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},n.isUTC=function(){return!!this.$u},n.toISOString=function(){return this.toDate().toISOString()},n.toString=function(){return this.toDate().toUTCString()};var u=n.toDate;n.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var l=n.diff;n.diff=function(t,e,n){if(t&&this.$u===t.$u)return l.call(this,t,e,n);var i=this.local(),o=r(t).local();return l.call(i,o,e,n)}});var kn=On(En.exports);Mn.extend(kn);const _n=({timeString:t,toEndDate:e})=>""===t?"":e?Mn(`${t}T23:59:59`).utc().unix().toString():Mn(t).utc().unix().toString(),Tn=({number:t,signDisplay:e="exceptZero",isDecimal:r=!0})=>{const n=Number(t);if(!Number.isFinite(n))return console.log(`Number is not a finite number. (number: ${n}, method: formatPercentage)`),t;return new Intl.NumberFormat("en-US",{style:"percent",minimumFractionDigits:2,signDisplay:e}).format(r?n:n/100)};
10
+ /*!
11
+ * currency.js - v2.0.4
12
+ * http://scurker.github.io/currency.js
13
+ *
14
+ * Copyright (c) 2021 Jason Wilson
15
+ * Released under MIT license
16
+ */
17
+ var Cn={symbol:"$",separator:",",decimal:".",errorOnInvalid:!1,precision:2,pattern:"!#",negativePattern:"-!#",format:function(t,e){var r=e.pattern,n=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?r:n).replace("!",i).replace("#",l.replace(c,"$1"+o)+(s?a+s:""))},fromCents:!1},Dn=function(t){return Math.round(t)},Nn=function(t){return Math.pow(10,t)},In=/(\d)(?=(\d{3})+\b)/g,Bn=/(\d)(?=(\d\d)+\d\b)/g;function Ln(t,e){var r=this;if(!(r instanceof Ln))return new Ln(t,e);var n=Object.assign({},Cn,e),i=Nn(n.precision),o=Rn(t,n);r.intValue=o,r.value=o/i,n.increment=n.increment||1/i,n.useVedic?n.groups=Bn:n.groups=In,this.s=n,this.p=i}function Rn(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=0,i=e.decimal,o=e.errorOnInvalid,a=e.precision,c=e.fromCents,u=Nn(a),l="number"==typeof t,s=t instanceof Ln;if(s&&c)return t.intValue;if(l||s)n=s?t.value:t;else if("string"==typeof t){var f=new RegExp("[^-\\d"+i+"]","g"),h=new RegExp("\\"+i,"g");n=(n=t.replace(/\((.*)\)/,"-$1").replace(f,"").replace(h,"."))||0}else{if(o)throw Error("Invalid Input");n=0}return c||(n=(n*=u).toFixed(4)),r?Dn(n):n}Ln.prototype={add:function(t){var e=this.intValue,r=this.s,n=this.p;return Ln((e+=Rn(t,r))/(r.fromCents?1:n),r)},subtract:function(t){var e=this.intValue,r=this.s,n=this.p;return Ln((e-=Rn(t,r))/(r.fromCents?1:n),r)},multiply:function(t){var e=this.intValue,r=this.s;return Ln((e*=t)/(r.fromCents?1:Nn(r.precision)),r)},divide:function(t){var e=this.intValue,r=this.s;return Ln(e/=Rn(t,r,!1),r)},distribute:function(t){for(var e=this.intValue,r=this.p,n=this.s,i=[],o=Math[e>=0?"floor":"ceil"](e/t),a=Math.abs(e-o*t),c=n.fromCents?1:r;0!==t;t--){var u=Ln(o/c,n);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,r=this.intValue,n=this.p,i=this.s;return(t=r/n,e=i.increment,Dn(t/e)*e).toFixed(i.precision)},toJSON:function(){return this.value}};const $n=({amount:t,autoPrecision:e,precision:r=2,signDisplay:n=!1})=>{const i=Number(t);if(!Number.isFinite(i))return console.log(`Amount is not a finite number. (amount: ${i}, method: formatUsd)`),t;const o=Ln(i,{precision:e&&i>-1&&i<1&&0!==i?5:r}).format();return n&&i>0?`+${o}`:o},zn=({data:t,dataKey:e})=>{const r=t?.length?Number(t[0][e]):0,n=t?.length?Number(t[t.length-1][e]):0;if(!t?.length)return{startingAmount:0,endingAmount:0,delta:0,percentChange:0,isNetGain:!0};if(!Number.isFinite(r)||!Number.isFinite(n))throw new Error(`Starting or ending amount is not a finite number. (startingAmount: ${r}, endingAmount: ${n}, method: getDelta)`);const i=new bn(r),o=new bn(n),a=o.minus(i);return{startingAmount:r,endingAmount:n,delta:Number(a),percentChange:100*Number(a.dividedBy(i)),isNetGain:o.gt(i)}},Hn=t=>{let e;return["sm","xs"].includes(t)&&(e="xs"),e},Fn=({arr:t,n:e})=>t.toReversed().filter(((t,r)=>r%e==0)).toReversed(),Un={redRemains:(t=1)=>Vn({rgb:"rgb(255, 223, 223)",alpha:t}),heroicRed:(t=1)=>Vn({rgb:"rgb(210, 25, 25)",alpha:t}),aijiroWhite:(t=1)=>Vn({rgb:"rgb(238, 248, 247)",alpha:t}),mint:(t=1)=>Vn({rgb:"rgb(64, 178, 136)",alpha:t}),white:(t=1)=>Vn({rgb:"rgb(255, 255, 255)",alpha:t,enabledAlphaValues:[.2]}),lighthouse:(t=1)=>Vn({rgb:"rgb(244, 244, 244)",alpha:t,enabledAlphaValues:[.4]}),coolElegance:(t=1)=>Vn({rgb:"rgb(205, 207, 209)",alpha:t}),sonicSilver:(t=1)=>Vn({rgb:"rgb(117, 117, 117)",alpha:t}),black:(t=1)=>Vn({rgb:"rgb(0, 0, 0)",alpha:t,enabledAlphaValues:[.08]})},Vn=({rgb:t,alpha:e,enabledAlphaValues:r=[1]})=>{if(![...r,1].includes(e))throw`Unsupported alpha value: ${e}. Update the color function in uiColors.ts to enable additional values.`;const[n,i,o]=t.replace(/[^\d,]/g,"").split(",");return`rgba(${n}, ${i}, ${o}, ${e})`},qn=({usd:t,precision:e=2,autoPrecision:r})=>{const n=Ln(t).value;return Ln(t,{precision:r&&n>-1&&n<1&&0!==n?5:e}).value},Wn=o({baseStyle:{color:Un.sonicSilver(),_groupInvalid:{color:"red.500"}},sizes:{sm:{fontSize:"sm"},xs:{fontSize:"xs"}}}),{definePartsStyle:Xn,defineMultiStyleConfig:Yn}=n(me.keys),Kn=Yn({baseStyle:Xn({group:{svg:{width:"1.25em",":not(.coin-logo)":{path:{fill:"gray.800"}}},_groupDisabled:{"svg:not(.coin-logo)":{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:Gn,defineMultiStyleConfig:Zn}=n(be.keys),Jn=Zn({baseStyle:Gn({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"}}),Qn=o({variants:{simple:{th:{borderColor:Un.coolElegance()},td:{borderColor:Un.coolElegance()},tr:{_last:{td:{border:"none"}}}}}}),{definePartsStyle:ti,defineMultiStyleConfig:ei}=n(we.keys),ri=ti({container:{color:"blackAlpha.900",fontWeight:"bold",borderRadius:"full",svg:{path:{fill:"blackAlpha.900"}}}}),ni=ti({container:{bg:"red.100",borderWidth:1,borderColor:"red.500"}}),ii=ti({container:{bg:"yellow.100",borderColor:"yellow.500",borderWidth:1}});var oi=a({colors:{brand:{50:"#fcf2fe",100:"#f0c4f9",200:"#eaacf7",300:"#e495f4",400:"#de7ef2",500:"#d250ed",600:"#c622e8",700:"#b816da",800:"#a514c3",900:"#7e0f95"}},components:{Accordion:Se,Alert:Pe,Button:Te,Checkbox:Ne,Input:Kn,Form:Ie,FormLabel:Wn,FormError:Be,Select:Jn,Table:Qn,Tag:ei({baseStyle:ri,defaultProps:{variant:"outline"},variants:{error:ni,success:ti({container:{bg:"green.100",borderColor:"green.500",borderWidth:1}}),warning:ii,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 ai={components:oi.components,styles:oi.styles};function ci(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(r=ci(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ui(){for(var t,e,r=0,n="",i=arguments.length;r<i;r++)(t=arguments[r])&&(e=ci(t))&&(n&&(n+=" "),n+=e);return n}var li=Array.isArray,si="object"==typeof xn&&xn&&xn.Object===Object&&xn,fi=si,hi="object"==typeof self&&self&&self.Object===Object&&self,pi=fi||hi||Function("return this")(),di=pi.Symbol,yi=di,vi=Object.prototype,gi=vi.hasOwnProperty,mi=vi.toString,bi=yi?yi.toStringTag:void 0;var wi=function(t){var e=gi.call(t,bi),r=t[bi];try{t[bi]=void 0;var n=!0}catch(t){}var i=mi.call(t);return n&&(e?t[bi]=r:delete t[bi]),i},xi=Object.prototype.toString;var Oi=wi,Si=function(t){return xi.call(t)},ji=di?di.toStringTag:void 0;var Ai=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ji&&ji in Object(t)?Oi(t):Si(t)};var Pi=function(t){return null!=t&&"object"==typeof t},Mi=Ai,Ei=Pi;var ki=function(t){return"symbol"==typeof t||Ei(t)&&"[object Symbol]"==Mi(t)},_i=li,Ti=ki,Ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Di=/^\w*$/;var Ni=function(t,e){if(_i(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!Ti(t))||(Di.test(t)||!Ci.test(t)||null!=e&&t in Object(e))};var Ii=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},Bi=On(Ii),Li=Ai,Ri=Ii;var $i,zi=function(t){if(!Ri(t))return!1;var e=Li(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},Hi=On(zi),Fi=pi["__core-js_shared__"],Ui=($i=/[^.]+$/.exec(Fi&&Fi.keys&&Fi.keys.IE_PROTO||""))?"Symbol(src)_1."+$i:"";var Vi=function(t){return!!Ui&&Ui in t},qi=Function.prototype.toString;var Wi=function(t){if(null!=t){try{return qi.call(t)}catch(t){}try{return t+""}catch(t){}}return""},Xi=zi,Yi=Vi,Ki=Ii,Gi=Wi,Zi=/^\[object .+?Constructor\]$/,Ji=Function.prototype,Qi=Object.prototype,to=Ji.toString,eo=Qi.hasOwnProperty,ro=RegExp("^"+to.call(eo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var no=function(t,e){return null==t?void 0:t[e]},io=function(t){return!(!Ki(t)||Yi(t))&&(Xi(t)?ro:Zi).test(Gi(t))},oo=no;var ao=function(t,e){var r=oo(t,e);return io(r)?r:void 0},co=ao(Object,"create"),uo=co;var lo=function(){this.__data__=uo?uo(null):{},this.size=0};var so=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},fo=co,ho=Object.prototype.hasOwnProperty;var po=function(t){var e=this.__data__;if(fo){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return ho.call(e,t)?e[t]:void 0},yo=co,vo=Object.prototype.hasOwnProperty;var go=co;var mo=lo,bo=so,wo=po,xo=function(t){var e=this.__data__;return yo?void 0!==e[t]:vo.call(e,t)},Oo=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=go&&void 0===e?"__lodash_hash_undefined__":e,this};function So(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}So.prototype.clear=mo,So.prototype.delete=bo,So.prototype.get=wo,So.prototype.has=xo,So.prototype.set=Oo;var jo=So;var Ao=function(){this.__data__=[],this.size=0};var Po=function(t,e){return t===e||t!=t&&e!=e},Mo=Po;var Eo=function(t,e){for(var r=t.length;r--;)if(Mo(t[r][0],e))return r;return-1},ko=Eo,_o=Array.prototype.splice;var To=Eo;var Co=Eo;var Do=Eo;var No=Ao,Io=function(t){var e=this.__data__,r=ko(e,t);return!(r<0)&&(r==e.length-1?e.pop():_o.call(e,r,1),--this.size,!0)},Bo=function(t){var e=this.__data__,r=To(e,t);return r<0?void 0:e[r][1]},Lo=function(t){return Co(this.__data__,t)>-1},Ro=function(t,e){var r=this.__data__,n=Do(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function $o(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}$o.prototype.clear=No,$o.prototype.delete=Io,$o.prototype.get=Bo,$o.prototype.has=Lo,$o.prototype.set=Ro;var zo=$o,Ho=ao(pi,"Map"),Fo=jo,Uo=zo,Vo=Ho;var qo=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var Wo=function(t,e){var r=t.__data__;return qo(e)?r["string"==typeof e?"string":"hash"]:r.map},Xo=Wo;var Yo=Wo;var Ko=Wo;var Go=Wo;var Zo=function(){this.size=0,this.__data__={hash:new Fo,map:new(Vo||Uo),string:new Fo}},Jo=function(t){var e=Xo(this,t).delete(t);return this.size-=e?1:0,e},Qo=function(t){return Yo(this,t).get(t)},ta=function(t){return Ko(this,t).has(t)},ea=function(t,e){var r=Go(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};function ra(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ra.prototype.clear=Zo,ra.prototype.delete=Jo,ra.prototype.get=Qo,ra.prototype.has=ta,ra.prototype.set=ea;var na=ra,ia=na;function oa(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(oa.Cache||ia),r}oa.Cache=ia;var aa=oa,ca=On(aa),ua=aa;var la=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sa=/\\(\\)?/g,fa=function(t){var e=ua(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(la,(function(t,r,n,i){e.push(n?i.replace(sa,"$1"):r||t)})),e})),ha=fa;var pa=function(t,e){for(var r=-1,n=null==t?0:t.length,i=Array(n);++r<n;)i[r]=e(t[r],r,t);return i},da=pa,ya=li,va=ki,ga=di?di.prototype:void 0,ma=ga?ga.toString:void 0;var ba=function t(e){if("string"==typeof e)return e;if(ya(e))return da(e,t)+"";if(va(e))return ma?ma.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r},wa=ba;var xa=function(t){return null==t?"":wa(t)},Oa=li,Sa=Ni,ja=ha,Aa=xa;var Pa=function(t,e){return Oa(t)?t:Sa(t,e)?[t]:ja(Aa(t))},Ma=ki;var Ea=function(t){if("string"==typeof t||Ma(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e},ka=Pa,_a=Ea;var Ta=function(t,e){for(var r=0,n=(e=ka(e,t)).length;null!=t&&r<n;)t=t[_a(e[r++])];return r&&r==n?t:void 0},Ca=Ta;var Da=function(t,e,r){var n=null==t?void 0:Ca(t,e);return void 0===n?r:n},Na=On(Da);var Ia=On((function(t){return null==t})),Ba=Ai,La=li,Ra=Pi;var $a,za=On((function(t){return"string"==typeof t||!La(t)&&Ra(t)&&"[object String]"==Ba(t)})),Ha={exports:{}},Fa={};var Ua,Va={};
18
18
  /** @license React v16.13.1
19
19
  * react-is.development.js
20
20
  *
@@ -22,5 +22,5 @@ var qe,We,Xe=9e15,Ye=1e9,Ke="0123456789abcdef",Ge="2.302585092994045684017991454
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */"production"===process.env.NODE_ENV?Fa.exports=function(){if(za)return Ua;za=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=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 n: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 r:return h}}}function w(t){return b(t)===l}return Ua.AsyncMode=u,Ua.ConcurrentMode=l,Ua.ContextConsumer=c,Ua.ContextProvider=a,Ua.Element=e,Ua.ForwardRef=s,Ua.Fragment=n,Ua.Lazy=d,Ua.Memo=p,Ua.Portal=r,Ua.Profiler=o,Ua.StrictMode=i,Ua.Suspense=f,Ua.isAsyncMode=function(t){return w(t)||b(t)===u},Ua.isConcurrentMode=w,Ua.isContextConsumer=function(t){return b(t)===c},Ua.isContextProvider=function(t){return b(t)===a},Ua.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Ua.isForwardRef=function(t){return b(t)===s},Ua.isFragment=function(t){return b(t)===n},Ua.isLazy=function(t){return b(t)===d},Ua.isMemo=function(t){return b(t)===p},Ua.isPortal=function(t){return b(t)===r},Ua.isProfiler=function(t){return b(t)===o},Ua.isStrictMode=function(t){return b(t)===i},Ua.isSuspense=function(t){return b(t)===f},Ua.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||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)},Ua.typeOf=b,Ua}():Fa.exports=(Va||(Va=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=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 n: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 r:return h}}}var w=u,x=l,O=c,S=a,j=e,A=s,P=n,M=d,E=p,k=r,_=o,T=i,C=f,D=!1;function N(t){return b(t)===l}qa.AsyncMode=w,qa.ConcurrentMode=x,qa.ContextConsumer=O,qa.ContextProvider=S,qa.Element=j,qa.ForwardRef=A,qa.Fragment=P,qa.Lazy=M,qa.Memo=E,qa.Portal=k,qa.Profiler=_,qa.StrictMode=T,qa.Suspense=C,qa.isAsyncMode=function(t){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(t)||b(t)===u},qa.isConcurrentMode=N,qa.isContextConsumer=function(t){return b(t)===c},qa.isContextProvider=function(t){return b(t)===a},qa.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},qa.isForwardRef=function(t){return b(t)===s},qa.isFragment=function(t){return b(t)===n},qa.isLazy=function(t){return b(t)===d},qa.isMemo=function(t){return b(t)===p},qa.isPortal=function(t){return b(t)===r},qa.isProfiler=function(t){return b(t)===o},qa.isStrictMode=function(t){return b(t)===i},qa.isSuspense=function(t){return b(t)===f},qa.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||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)},qa.typeOf=b}()),qa);var Wa=Fa.exports,Xa=Pi,Ya=Mi;var Ka=function(t){return"number"==typeof t||Ya(t)&&"[object Number]"==Xa(t)},Ga=_n(Ka),Za=Ka;var Ja=_n((function(t){return Za(t)&&t!=+t})),Qa=function(t){return 0===t?0:t>0?1:-1},tc=function(t){return Ha(t)&&t.indexOf("%")===t.length-1},ec=function(t){return Ga(t)&&!Ja(t)},rc=function(t){return ec(t)||Ha(t)},nc=0,ic=function(t){var e=++nc;return"".concat(t||"").concat(e)},oc=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!ec(t)&&!Ha(t))return n;if(tc(t)){var o=t.indexOf("%");r=e*parseFloat(t.slice(0,o))/100}else r=+t;return Ja(r)&&(r=n),i&&r>e&&(r=e),r},ac=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},cc=function(t,e){return ec(t)&&ec(e)?function(r){return t+r*(e-t)}:function(){return e}};function uc(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):Ia(t,e))===r})):null}function lc(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function sc(t){return sc="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},sc(t)}var fc=["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"],hc=["points","pathLength"],pc={svg:["viewBox","children"],polygon:hc,polyline:hc},dc=["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"],yc=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(Y(t)&&(r=t.props),!Li(r))return null;var n={};return Object.keys(r).forEach((function(t){dc.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},vc=function(t,e,r){if(!Li(t)||"object"!==sc(t))return null;var n=null;return Object.keys(t).forEach((function(i){var o=t[i];dc.includes(i)&&"function"==typeof o&&(n||(n={}),n[i]=function(t,e,r){return function(n){return t(e,r,n),null}}(o,e,r))})),n},gc=["children"],mc=["children"];function bc(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function wc(t){return wc="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},wc(t)}var xc={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Oc=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Sc=null,jc=null,Ac=function t(e){if(e===Sc&&Array.isArray(jc))return jc;var r=[];return K.forEach(e,(function(e){Ba(e)||(Wa.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))})),jc=r,Sc=e,r};function Pc(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return Oc(t)})):[Oc(e)],Ac(t).forEach((function(t){var e=Ia(t,"type.displayName")||Ia(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function Mc(t,e){var r=Pc(t,e);return r&&r[0]}var Ec=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!ec(r)||r<=0||!ec(n)||n<=0)},kc=["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"],_c=function(t){return t&&"object"===wc(t)&&"cx"in t&&"cy"in t&&"r"in t},Tc=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(Y(t)&&(n=t.props),!Li(n))return null;var i={};return Object.keys(n).forEach((function(t){var o;(function(t,e,r,n){var i,o=null!==(i=null==pc?void 0:pc[n])&&void 0!==i?i:[];return!Fi(t)&&(n&&o.includes(e)||fc.includes(e))||r&&dc.includes(e)})(null===(o=n)||void 0===o?void 0:o[t],t,e,r)&&(i[t]=n[t])})),i},Cc=function t(e,r){if(e===r)return!0;var n=K.count(e);if(n!==K.count(r))return!1;if(0===n)return!0;if(1===n)return Dc(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=e[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!t(o,a))return!1}else if(!Dc(o,a))return!1}return!0},Dc=function(t,e){if(Ba(t)&&Ba(e))return!0;if(!Ba(t)&&!Ba(e)){var r=t.props||{},n=r.children,i=bc(r,gc),o=e.props||{},a=o.children,c=bc(o,mc);return n&&a?lc(i,c)&&Cc(n,a):!n&&!a&&lc(i,c)}return!1},Nc=function(t,e){var r=[],n={};return Ac(t).forEach((function(t,i){if(function(t){return t&&t.type&&Ha(t.type)&&kc.indexOf(t.type)>=0}(t))r.push(t);else if(t){var o=Oc(t.type),a=e[o]||{},c=a.handler,u=a.once;if(c&&(!u||!n[o])){var l=c(t,o,i);r.push(l),n[o]=!0}}})),r},Ic=["children","width","height","viewBox","className","style","title","desc"];function Bc(){return Bc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Bc.apply(this,arguments)}function Lc(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Rc(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,o=t.className,a=t.style,c=t.title,u=t.desc,l=Lc(t,Ic),s=i||{width:r,height:n,x:0,y:0},f=li("recharts-surface",o);return X.createElement("svg",Bc({},Tc(l,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),X.createElement("title",null,c),X.createElement("desc",null,u),e)}var $c=["children","className"];function zc(){return zc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zc.apply(this,arguments)}function Hc(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var Fc=X.forwardRef((function(t,e){var r=t.children,n=t.className,i=Hc(t,$c),o=li("recharts-layer",n);return X.createElement("g",zc({className:o},Tc(i,!0),{ref:e}),r)})),Uc="production"!==process.env.NODE_ENV,Vc=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if(Uc&&"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 n[o++]})))}};var qc=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o},Wc=qc;var Xc=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:Wc(t,e,r)},Yc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Kc=function(t){return Yc.test(t)};var Gc=function(t){return t.split("")},Zc="\\ud800-\\udfff",Jc="["+Zc+"]",Qc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",tu="\\ud83c[\\udffb-\\udfff]",eu="[^"+Zc+"]",ru="(?:\\ud83c[\\udde6-\\uddff]){2}",nu="[\\ud800-\\udbff][\\udc00-\\udfff]",iu="(?:"+Qc+"|"+tu+")"+"?",ou="[\\ufe0e\\ufe0f]?",au=ou+iu+("(?:\\u200d(?:"+[eu,ru,nu].join("|")+")"+ou+iu+")*"),cu="(?:"+[eu+Qc+"?",Qc,ru,nu,Jc].join("|")+")",uu=RegExp(tu+"(?="+tu+")|"+cu+au,"g");var lu=function(t){return t.match(uu)||[]},su=Gc,fu=Kc,hu=lu;var pu=function(t){return fu(t)?hu(t):su(t)},du=Xc,yu=Kc,vu=pu,gu=Oa;var mu=function(t){return function(e){e=gu(e);var r=yu(e)?vu(e):void 0,n=r?r[0]:e.charAt(0),i=r?du(r,1).join(""):e.slice(1);return n[t]()+i}},bu=_n(mu("toUpperCase"));function wu(t){return function(){return t}}const xu=Math.cos,Ou=Math.sin,Su=Math.sqrt,ju=Math.PI,Au=2*ju,Pu=Math.PI,Mu=2*Pu,Eu=1e-6,ku=Mu-Eu;function _u(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class Tu{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?_u:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return _u;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+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,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,o){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,r,n,i){if(t=+t,e=+e,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,c=r-t,u=n-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>Eu)if(Math.abs(s*c-u*l)>Eu&&i){let h=r-o,p=n-a,d=c*c+u*u,y=h*h+p*p,v=Math.sqrt(d),g=Math.sqrt(f),m=i*Math.tan((Pu-Math.acos((d+f-y)/(2*v*g)))/2),b=m/g,w=m/v;Math.abs(b-1)>Eu&&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,r,n,i,o){if(t=+t,e=+e,o=!!o,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^o,f=o?n-i:i-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Eu||Math.abs(this._y1-l)>Eu)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Mu+Mu),f>ku?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>Eu&&this._append`A${r},${r},0,${+(f>=Pu)},${s},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Cu(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new Tu(e)}function Du(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Nu(t){this._context=t}function Iu(t){return new Nu(t)}function Bu(t){return t[0]}function Lu(t){return t[1]}function Ru(t,e){var r=wu(!0),n=null,i=Iu,o=null,a=Cu(c);function c(c){var u,l,s,f=(c=Du(c)).length,h=!1;for(null==n&&(o=i(s=a())),u=0;u<=f;++u)!(u<f&&r(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?Bu:wu(t),e="function"==typeof e?e:void 0===e?Lu:wu(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:wu(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:wu(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:wu(!!t),c):r},c.curve=function(t){return arguments.length?(i=t,null!=n&&(o=i(n)),c):i},c.context=function(t){return arguments.length?(null==t?n=o=null:o=i(n=t),c):n},c}function $u(t,e,r){var n=null,i=wu(!0),o=null,a=Iu,c=null,u=Cu(l);function l(l){var s,f,h,p,d,y=(l=Du(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(n?+n(p,s,l):g[s],r?+r(p,s,l):m[s]))}if(d)return c=null,d+""||null}function s(){return Ru().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Bu:wu(+t),e="function"==typeof e?e:wu(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?Lu:wu(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:wu(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:wu(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:wu(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:wu(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:wu(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:wu(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:wu(!!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 zu{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 Hu={draw(t,e){const r=Su(e/ju);t.moveTo(r,0),t.arc(0,0,r,0,Au)}},Fu={draw(t,e){const r=Su(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};const Uu=Su(1/3),Vu=2*Uu;var qu={draw(t,e){const r=Su(e/Vu),n=r*Uu;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Wu={draw(t,e){const r=Su(e),n=-r/2;t.rect(n,n,r,r)}};const Xu=Ou(ju/10)/Ou(7*ju/10),Yu=Ou(Au/10)*Xu,Ku=-xu(Au/10)*Xu;var Gu={draw(t,e){const r=Su(.8908130915292852*e),n=Yu*r,i=Ku*r;t.moveTo(0,-r),t.lineTo(n,i);for(let e=1;e<5;++e){const o=Au*e/5,a=xu(o),c=Ou(o);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*i,c*n+a*i)}t.closePath()}};const Zu=Su(3);var Ju={draw(t,e){const r=-Su(e/(3*Zu));t.moveTo(0,2*r),t.lineTo(-Zu*r,-r),t.lineTo(Zu*r,-r),t.closePath()}};const Qu=-.5,tl=Su(3)/2,el=1/Su(12),rl=3*(el/2+1);var nl={draw(t,e){const r=Su(e/rl),n=r/2,i=r*el,o=n,a=r*el+r,c=-o,u=a;t.moveTo(n,i),t.lineTo(o,a),t.lineTo(c,u),t.lineTo(Qu*n-tl*i,tl*n+Qu*i),t.lineTo(Qu*o-tl*a,tl*o+Qu*a),t.lineTo(Qu*c-tl*u,tl*c+Qu*u),t.lineTo(Qu*n+tl*i,Qu*i-tl*n),t.lineTo(Qu*o+tl*a,Qu*a-tl*o),t.lineTo(Qu*c+tl*u,Qu*u-tl*c),t.closePath()}};function il(){}function ol(t,e,r){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+r)/6)}function al(t){this._context=t}function cl(t){this._context=t}function ul(t){this._context=t}function ll(t){this._context=t}function sl(t){return t<0?-1:1}function fl(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),a=(r-t._y1)/(i||n<0&&-0),c=(o*i+a*n)/(n+i);return(sl(o)+sl(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function hl(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function pl(t,e,r){var n=t._x0,i=t._y0,o=t._x1,a=t._y1,c=(o-n)/3;t._context.bezierCurveTo(n+c,i+c*e,o-c,a-c*r,o,a)}function dl(t){this._context=t}function yl(t){this._context=new vl(t)}function vl(t){this._context=t}function gl(t){this._context=t}function ml(t){var e,r,n=t.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function bl(t,e){this._context=t,this._t=e}function wl(t,e){if((i=t.length)>1)for(var r,n,i,o=1,a=t[e[0]],c=a.length;o<i;++o)for(n=a,a=t[e[o]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function xl(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function Ol(t,e){return t[e]}function Sl(t){const e=[];return e.key=t,e}function jl(t){return jl="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},jl(t)}al.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:ol(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:ol(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},cl.prototype={areaStart:il,areaEnd:il,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:ol(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ul.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 r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ol(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ll.prototype={areaStart:il,areaEnd:il,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))}},dl.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:pl(this,this._t0,hl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=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,pl(this,hl(this,r=fl(this,t,e)),r);break;default:pl(this,this._t0,r=fl(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(yl.prototype=Object.create(dl.prototype)).point=function(t,e){dl.prototype.point.call(this,e,t)},vl.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,r,n,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},gl.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,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=ml(t),i=ml(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===r)&&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)}},bl.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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var Al=["type","size","sizeType"];function Pl(){return Pl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Pl.apply(this,arguments)}function Ml(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function El(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ml(Object(r),!0).forEach((function(e){kl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ml(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function kl(t,e,r){return e=function(t){var e=function(t,e){if("object"!=jl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jl(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _l(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var Tl={symbolCircle:Hu,symbolCross:Fu,symbolDiamond:qu,symbolSquare:Wu,symbolStar:Gu,symbolTriangle:Ju,symbolWye:nl},Cl=Math.PI/180,Dl=function(t){var e,r,n=t.type,i=void 0===n?"circle":n,o=t.size,a=void 0===o?64:o,c=t.sizeType,u=void 0===c?"area":c,l=El(El({},_l(t,Al)),{},{type:i,size:a,sizeType:u}),s=l.className,f=l.cx,h=l.cy,p=Tc(l,!0);return f===+f&&h===+h&&a===+a?X.createElement("path",Pl({},p,{className:li("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(bu(t));return Tl[e]||Hu}(i),r=function(t,e){let r=null,n=Cu(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:wu(t||Hu),e="function"==typeof e?e:wu(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:wu(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:wu(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*Cl;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),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)),r())})):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 Il(){return Il=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Il.apply(this,arguments)}function Bl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ll(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ul(n.key),n)}}function Rl(t,e,r){return e=zl(e),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)}(t,$l()?Reflect.construct(e,r||[],zl(t).constructor):e.apply(t,r))}function $l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return($l=function(){return!!t})()}function zl(t){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},zl(t)}function Hl(t,e){return Hl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Hl(t,e)}function Fl(t,e,r){return(e=Ul(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ul(t){var e=function(t,e){if("object"!=Nl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Nl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Nl(e)?e:String(e)}Dl.registerSymbol=function(t,e){Tl["symbol".concat(bu(t))]=e};var Vl=32,ql=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Rl(this,e,arguments)}var r,n,i;return 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&&Hl(t,e)}(e,G),r=e,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=Vl/6,i=Vl/3,o=t.inactive?e:t.color;if("plainline"===t.type)return X.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:Vl,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return X.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(r,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Vl,"M").concat(2*i,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return X.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(Vl,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(X.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Bl(Object(r),!0).forEach((function(e){Fl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Bl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,X.cloneElement(t.legendIcon,a)}return X.createElement(Dl,{fill:o,cx:r,cy:r,size:Vl,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,i=e.layout,o=e.formatter,a=e.inactiveColor,c={x:0,y:0,width:Vl,height:Vl},u={display:"horizontal"===i?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var i=e.formatter||o,s=li(Fl(Fl({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=Fi(e.value)?null:e.value;Vc(!Fi(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 h=e.inactive?a:e.color;return X.createElement("li",Il({className:s,style:u,key:"legend-item-".concat(r)},vc(t.props,e,r)),X.createElement(Rc,{width:n,height:n,viewBox:c,style:l},t.renderIcon(e)),X.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},i?i(f,e,r):f))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return X.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&Ll(r.prototype,n),i&&Ll(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Fl(ql,"displayName","Legend"),Fl(ql,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Wl=Ho;var Xl=Ho,Yl=Fo,Kl=ia;var Gl=Ho,Zl=function(){this.__data__=new Wl,this.size=0},Jl=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Ql=function(t){return this.__data__.get(t)},ts=function(t){return this.__data__.has(t)},es=function(t,e){var r=this.__data__;if(r instanceof Xl){var n=r.__data__;if(!Yl||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Kl(n)}return r.set(t,e),this.size=r.size,this};function rs(t){var e=this.__data__=new Gl(t);this.size=e.size}rs.prototype.clear=Zl,rs.prototype.delete=Jl,rs.prototype.get=Ql,rs.prototype.has=ts,rs.prototype.set=es;var ns=rs;var is=ia,os=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},as=function(t){return this.__data__.has(t)};function cs(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new is;++e<r;)this.add(t[e])}cs.prototype.add=cs.prototype.push=os,cs.prototype.has=as;var us=cs;var ls=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var ss=function(t,e){return t.has(e)},fs=us,hs=ls,ps=ss;var ds=function(t,e,r,n,i,o){var a=1&r,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&r?new fs:void 0;for(o.set(t,e),o.set(e,t);++f<c;){var d=t[f],y=e[f];if(n)var v=a?n(y,d,f,e,t,o):n(d,y,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!hs(e,(function(t,e){if(!ps(p,e)&&(d===t||i(d,t,r,n,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,r,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h};var ys=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r};var vs=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},gs=di.Uint8Array,ms=Mo,bs=ds,ws=ys,xs=vs,Os=yi?yi.prototype:void 0,Ss=Os?Os.valueOf:void 0;var js=function(t,e,r,n,i,o,a){switch(r){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 gs(t),new gs(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ms(+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=ws;case"[object Set]":var u=1&n;if(c||(c=xs),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=bs(c(t),c(e),n,i,o,a);return a.delete(t),s;case"[object Symbol]":if(Ss)return Ss.call(t)==Ss.call(e)}return!1};var As=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t},Ps=As,Ms=si;var Es=function(t,e,r){var n=e(t);return Ms(t)?n:Ps(n,r(t))};var ks=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o};var _s=ks,Ts=function(){return[]},Cs=Object.prototype.propertyIsEnumerable,Ds=Object.getOwnPropertySymbols,Ns=Ds?function(t){return null==t?[]:(t=Object(t),_s(Ds(t),(function(e){return Cs.call(t,e)})))}:Ts,Is=Ns;var Bs=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Ls=Pi,Rs=Mi;var $s=function(t){return Rs(t)&&"[object Arguments]"==Ls(t)},zs=Mi,Hs=Object.prototype,Fs=Hs.hasOwnProperty,Us=Hs.propertyIsEnumerable,Vs=$s(function(){return arguments}())?$s:function(t){return zs(t)&&Fs.call(t,"callee")&&!Us.call(t,"callee")},qs={exports:{}};var Ws=function(){return!1};!function(t,e){var r=di,n=Ws,i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(qs,qs.exports);var Xs=qs.exports,Ys=/^(?:0|[1-9]\d*)$/;var Ks=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&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},Zs=Pi,Js=Gs,Qs=Mi,tf={};tf["[object Float32Array]"]=tf["[object Float64Array]"]=tf["[object Int8Array]"]=tf["[object Int16Array]"]=tf["[object Int32Array]"]=tf["[object Uint8Array]"]=tf["[object Uint8ClampedArray]"]=tf["[object Uint16Array]"]=tf["[object Uint32Array]"]=!0,tf["[object Arguments]"]=tf["[object Array]"]=tf["[object ArrayBuffer]"]=tf["[object Boolean]"]=tf["[object DataView]"]=tf["[object Date]"]=tf["[object Error]"]=tf["[object Function]"]=tf["[object Map]"]=tf["[object Number]"]=tf["[object Object]"]=tf["[object RegExp]"]=tf["[object Set]"]=tf["[object String]"]=tf["[object WeakMap]"]=!1;var ef=function(t){return Qs(t)&&Js(t.length)&&!!tf[Zs(t)]};var rf=function(t){return function(e){return t(e)}},nf={exports:{}};!function(t,e){var r=fi,n=e&&!e.nodeType&&e,i=n&&t&&!t.nodeType&&t,o=i&&i.exports===n&&r.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}(nf,nf.exports);var of=nf.exports,af=ef,cf=rf,uf=of&&of.isTypedArray,lf=uf?cf(uf):af,sf=Bs,ff=Vs,hf=si,pf=Xs,df=Ks,yf=lf,vf=Object.prototype.hasOwnProperty;var gf=function(t,e){var r=hf(t),n=!r&&ff(t),i=!r&&!n&&pf(t),o=!r&&!n&&!i&&yf(t),a=r||n||i||o,c=a?sf(t.length,String):[],u=c.length;for(var l in t)!e&&!vf.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||df(l,u))||c.push(l);return c},mf=Object.prototype;var bf=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||mf)};var wf=function(t,e){return function(r){return t(e(r))}},xf=wf(Object.keys,Object),Of=bf,Sf=xf,jf=Object.prototype.hasOwnProperty;var Af=function(t){if(!Of(t))return Sf(t);var e=[];for(var r in Object(t))jf.call(t,r)&&"constructor"!=r&&e.push(r);return e},Pf=Hi,Mf=Gs;var Ef=function(t){return null!=t&&Mf(t.length)&&!Pf(t)},kf=gf,_f=Af,Tf=Ef;var Cf=function(t){return Tf(t)?kf(t):_f(t)},Df=Es,Nf=Is,If=Cf;var Bf=function(t){return Df(t,If,Nf)},Lf=Bf,Rf=Object.prototype.hasOwnProperty;var $f=function(t,e,r,n,i,o){var a=1&r,c=Lf(t),u=c.length;if(u!=Lf(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:Rf.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(n)var g=a?n(v,y,s,e,t,o):n(y,v,s,t,e,o);if(!(void 0===g?y===v||i(y,v,r,n,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},zf=co(di,"DataView"),Hf=co(di,"Promise"),Ff=co(di,"Set"),Uf=zf,Vf=Fo,qf=Hf,Wf=Ff,Xf=co(di,"WeakMap"),Yf=Pi,Kf=Xi,Gf="[object Map]",Zf="[object Promise]",Jf="[object Set]",Qf="[object WeakMap]",th="[object DataView]",eh=Kf(Uf),rh=Kf(Vf),nh=Kf(qf),ih=Kf(Wf),oh=Kf(Xf),ah=Yf;(Uf&&ah(new Uf(new ArrayBuffer(1)))!=th||Vf&&ah(new Vf)!=Gf||qf&&ah(qf.resolve())!=Zf||Wf&&ah(new Wf)!=Jf||Xf&&ah(new Xf)!=Qf)&&(ah=function(t){var e=Yf(t),r="[object Object]"==e?t.constructor:void 0,n=r?Kf(r):"";if(n)switch(n){case eh:return th;case rh:return Gf;case nh:return Zf;case ih:return Jf;case oh:return Qf}return e});var ch=ns,uh=ds,lh=js,sh=$f,fh=ah,hh=si,ph=Xs,dh=lf,yh="[object Arguments]",vh="[object Array]",gh="[object Object]",mh=Object.prototype.hasOwnProperty;var bh=function(t,e,r,n,i,o){var a=hh(t),c=hh(e),u=a?vh:fh(t),l=c?vh:fh(e),s=(u=u==yh?gh:u)==gh,f=(l=l==yh?gh:l)==gh,h=u==l;if(h&&ph(t)){if(!ph(e))return!1;a=!0,s=!1}if(h&&!s)return o||(o=new ch),a||dh(t)?uh(t,e,r,n,i,o):lh(t,e,u,r,n,i,o);if(!(1&r)){var p=s&&mh.call(t,"__wrapped__"),d=f&&mh.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new ch),i(y,v,r,n,o)}}return!!h&&(o||(o=new ch),sh(t,e,r,n,i,o))},wh=bh,xh=Mi;var Oh=function t(e,r,n,i,o){return e===r||(null==e||null==r||!xh(e)&&!xh(r)?e!=e&&r!=r:wh(e,r,n,i,t,o))},Sh=ns,jh=Oh;var Ah=function(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=Object(t);i--;){var c=r[i];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<o;){var u=(c=r[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 Sh;if(n)var h=n(l,s,u,t,e,f);if(!(void 0===h?jh(s,l,3,n,f):h))return!1}}return!0},Ph=Bi;var Mh=function(t){return t==t&&!Ph(t)},Eh=Mh,kh=Cf;var _h=function(t){for(var e=kh(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,Eh(i)]}return e};var Th=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},Ch=Ah,Dh=_h,Nh=Th;var Ih=function(t){var e=Dh(t);return 1==e.length&&e[0][2]?Nh(e[0][0],e[0][1]):function(r){return r===t||Ch(r,t,e)}};var Bh=function(t,e){return null!=t&&e in Object(t)},Lh=Ma,Rh=Vs,$h=si,zh=Ks,Hh=Gs,Fh=ka;var Uh=function(t,e,r){for(var n=-1,i=(e=Lh(e,t)).length,o=!1;++n<i;){var a=Fh(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&Hh(i)&&zh(a,i)&&($h(t)||Rh(t))},Vh=Bh,qh=Uh;var Wh=function(t,e){return null!=t&&qh(t,e,Vh)},Xh=Oh,Yh=Na,Kh=Wh,Gh=Ii,Zh=Mh,Jh=Th,Qh=ka;var tp=function(t,e){return Gh(t)&&Zh(e)?Jh(Qh(t),e):function(r){var n=Yh(r,t);return void 0===n&&n===e?Kh(r,t):Xh(e,n,3)}};var ep=function(t){return t};var rp=function(t){return function(e){return null==e?void 0:e[t]}},np=Ca;var ip=function(t){return function(e){return np(e,t)}},op=rp,ap=ip,cp=Ii,up=ka;var lp=Ih,sp=tp,fp=ep,hp=si,pp=function(t){return cp(t)?op(up(t)):ap(t)};var dp=function(t){return"function"==typeof t?t:null==t?fp:"object"==typeof t?hp(t)?sp(t[0],t[1]):lp(t):pp(t)};var yp=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1};var vp=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1},gp=yp,mp=function(t){return t!=t},bp=vp;var wp=function(t,e,r){return e==e?bp(t,e,r):gp(t,mp,r)},xp=wp;var Op=function(t,e){return!!(null==t?0:t.length)&&xp(t,e,0)>-1};var Sp=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1};var jp=Ff,Ap=function(){},Pp=jp&&1/vs(new jp([,-0]))[1]==1/0?function(t){return new jp(t)}:Ap,Mp=us,Ep=Op,kp=Sp,_p=ss,Tp=Pp,Cp=vs;var Dp=function(t,e,r){var n=-1,i=Ep,o=t.length,a=!0,c=[],u=c;if(r)a=!1,i=kp;else if(o>=200){var l=e?null:Tp(t);if(l)return Cp(l);a=!1,i=_p,u=new Mp}else u=e?[]:c;t:for(;++n<o;){var s=t[n],f=e?e(s):s;if(s=r||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,r)||(u!==c&&u.push(f),c.push(s))}return c},Np=dp,Ip=Dp;var Bp=function(t,e){return t&&t.length?Ip(t,Np(e)):[]},Lp=_n(Bp);function Rp(t,e,r){return!0===e?Lp(t,r):Fi(e)?Lp(t,e):t}function $p(t){return $p="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},$p(t)}var zp=["ref"];function Hp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Hp(Object(r),!0).forEach((function(e){Kp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Hp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Up(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Gp(n.key),n)}}function Vp(t,e,r){return e=Wp(e),function(t,e){if(e&&("object"===$p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Xp(t)}(t,qp()?Reflect.construct(e,r||[],Wp(t).constructor):e.apply(t,r))}function qp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qp=function(){return!!t})()}function Wp(t){return Wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wp(t)}function Xp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yp(t,e){return Yp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Yp(t,e)}function Kp(t,e,r){return(e=Gp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gp(t){var e=function(t,e){if("object"!=$p(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$p(e)?e:String(e)}function Zp(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Jp(t){return t.value}var Qp=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Kp(Xp(t=Vp(this,e,[].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yp(t,e)}(e,G),r=e,i=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&ec(t.props.height)?{height:t.props.height}:"horizontal"===r?{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?Fp({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.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)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Fp(Fp({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,u=Fp(Fp({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return X.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(X.isValidElement(t))return X.cloneElement(t,e);if("function"==typeof t)return X.createElement(t,e);e.ref;var r=Zp(e,zp);return X.createElement(ql,r)}(r,Fp(Fp({},this.props),{},{payload:Rp(c,a,Jp)})))}}])&&Up(r.prototype,n),i&&Up(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Kp(Qp,"displayName","Legend"),Kp(Qp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var td=Vs,ed=si,rd=yi?yi.isConcatSpreadable:void 0;var nd=As,id=function(t){return ed(t)||td(t)||!!(rd&&t&&t[rd])};var od=function t(e,r,n,i,o){var a=-1,c=e.length;for(n||(n=id),o||(o=[]);++a<c;){var u=e[a];r>0&&n(u)?r>1?t(u,r-1,n,i,o):nd(o,u):i||(o[o.length]=u)}return o};var ad=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++i];if(!1===r(o[u],u,o))break}return e}},cd=ad(),ud=Cf;var ld=function(t,e){return t&&cd(t,e,ud)},sd=Ef;var fd=function(t,e){return function(r,n){if(null==r)return r;if(!sd(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=Object(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}(ld),hd=fd,pd=Ef;var dd=function(t,e){var r=-1,n=pd(t)?Array(t.length):[];return hd(t,(function(t,i,o){n[++r]=e(t,i,o)})),n};var yd=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},vd=_i;var gd=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,o=vd(t),a=void 0!==e,c=null===e,u=e==e,l=vd(e);if(!c&&!l&&!o&&t>e||o&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!i)return 1;if(!n&&!o&&!l&&t<e||l&&r&&i&&!n&&!o||c&&r&&i||!a&&i||!u)return-1}return 0};var md=function(t,e,r){for(var n=-1,i=t.criteria,o=e.criteria,a=i.length,c=r.length;++n<a;){var u=gd(i[n],o[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index},bd=da,wd=Ca,xd=dp,Od=dd,Sd=yd,jd=rf,Ad=md,Pd=ep,Md=si;var Ed=function(t,e,r){e=e.length?bd(e,(function(t){return Md(t)?function(e){return wd(e,1===t.length?t[0]:t)}:t})):[Pd];var n=-1;e=bd(e,jd(xd));var i=Od(t,(function(t,r,i){return{criteria:bd(e,(function(e){return e(t)})),index:++n,value:t}}));return Sd(i,(function(t,e){return Ad(t,e,r)}))};var kd=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},_d=Math.max;var Td=function(t,e,r){return e=_d(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=_d(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=n[i];return c[e]=r(a),kd(t,this,c)}};var Cd=function(t){return function(){return t}},Dd=co,Nd=function(){try{var t=Dd(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Id=Cd,Bd=Nd,Ld=Bd?function(t,e){return Bd(t,"toString",{configurable:!0,enumerable:!1,value:Id(e),writable:!0})}:ep,Rd=Ld,$d=Date.now;var zd=function(t){var e=0,r=0;return function(){var n=$d(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Rd),Hd=ep,Fd=Td,Ud=zd;var Vd=Mo,qd=Ef,Wd=Ks,Xd=Bi;var Yd=function(t,e,r){if(!Xd(r))return!1;var n=typeof e;return!!("number"==n?qd(r)&&Wd(e,r.length):"string"==n&&e in r)&&Vd(r[e],t)},Kd=od,Gd=Ed,Zd=Yd,Jd=_n(function(t,e){return Ud(Fd(t,e,Hd),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&Zd(t,e[0],e[1])?e=[]:r>2&&Zd(e[0],e[1],e[2])&&(e=[e[0]]),Gd(t,Kd(e,1),[])})));function Qd(t){return Qd="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},Qd(t)}function ty(){return ty=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ty.apply(this,arguments)}function ey(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 ry(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ry(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 ry(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ny(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function iy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ny(Object(r),!0).forEach((function(e){oy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ny(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oy(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Qd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Qd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Qd(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ay(t){return Array.isArray(t)&&rc(t[0])&&rc(t[1])?t.join(" ~ "):t}var cy=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,i=void 0===n?{}:n,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=t.accessibilityLayer,g=void 0!==v&&v,m=iy({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),b=iy({margin:0},u),w=!Ba(d),x=w?d:"",O=li("recharts-default-tooltip",h),S=li("recharts-tooltip-label",p);w&&y&&null!=l&&(x=y(d,l));var j=g?{role:"status","aria-live":"assertive"}:{};return X.createElement("div",ty({className:O,style:m},j),X.createElement("p",{className:S,style:b},X.isValidElement(x)?x:"".concat(x)),function(){if(l&&l.length){var t=(f?Jd(l,f):l).map((function(t,e){if("none"===t.type)return null;var n=iy({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||ay,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=ey(h,2);u=p[0],f=p[1]}else u=h}return X.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},rc(f)?X.createElement("span",{className:"recharts-tooltip-item-name"},f):null,rc(f)?X.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,X.createElement("span",{className:"recharts-tooltip-item-value"},u),X.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return X.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function uy(t){return uy="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},uy(t)}function ly(t,e,r){return e=function(t){var e=function(t,e){if("object"!=uy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=uy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==uy(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var sy="recharts-tooltip-wrapper",fy={visibility:"hidden"};function hy(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return li(sy,ly(ly(ly(ly({},"".concat(sy,"-right"),ec(r)&&e&&ec(e.x)&&r>=e.x),"".concat(sy,"-left"),ec(r)&&e&&ec(e.x)&&r<e.x),"".concat(sy,"-bottom"),ec(n)&&e&&ec(e.y)&&n>=e.y),"".concat(sy,"-top"),ec(n)&&e&&ec(e.y)&&n<e.y))}function py(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,o=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(o&&ec(o[n]))return o[n];var s=r[n]-c-i,f=r[n]+i;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function dy(t){return dy="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},dy(t)}function yy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yy(Object(r),!0).forEach((function(e){Sy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jy(n.key),n)}}function my(t,e,r){return e=wy(e),function(t,e){if(e&&("object"===dy(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xy(t)}(t,by()?Reflect.construct(e,r||[],wy(t).constructor):e.apply(t,r))}function by(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(by=function(){return!!t})()}function wy(t){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wy(t)}function xy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Oy(t,e){return Oy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Oy(t,e)}function Sy(t,e,r){return(e=jy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jy(t){var e=function(t,e){if("object"!=dy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dy(e)?e:String(e)}var Ay=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Sy(xy(t=my(this,e,[].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Sy(xy(t),"lastBoundingBox",{width:-1,height:-1}),Sy(xy(t),"handleKeyDown",(function(e){var r,n,i,o;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(i=null===(o=t.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})})),t}var r,n,i;return 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&&Oy(t,e)}(e,G),r=e,(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,r=e.active,n=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=function(t){var e,r,n=t.allowEscapeViewBox,i=t.coordinate,o=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&i?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=py({allowEscapeViewBox:n,coordinate:i,key:"x",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=py({allowEscapeViewBox:n,coordinate:i,key:"y",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):fy,cssClasses:hy({translateX:e,translateY:r,coordinate:i})}}({allowEscapeViewBox:n,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=vy(vy({transition:l&&r?"transform ".concat(i,"ms ").concat(o):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&u?"visible":"hidden",position:"absolute",top:0,left:0},y);return X.createElement("div",{tabIndex:-1,className:g,style:b,ref:function(e){t.wrapperNode=e}},a)}}])&&gy(r.prototype,n),i&&gy(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}(),Py={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return Py[t]},set:function(t,e){if("string"==typeof t)Py[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){Py[e]=t[e]}))}}};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,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ky(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ey(Object(r),!0).forEach((function(e){Iy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ey(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function _y(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,By(n.key),n)}}function Ty(t,e,r){return e=Dy(e),function(t,e){if(e&&("object"===My(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)}(t,Cy()?Reflect.construct(e,r||[],Dy(t).constructor):e.apply(t,r))}function Cy(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Cy=function(){return!!t})()}function Dy(t){return Dy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Dy(t)}function Ny(t,e){return Ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Ny(t,e)}function Iy(t,e,r){return(e=By(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function By(t){var e=function(t,e){if("object"!=My(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=My(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==My(e)?e:String(e)}function Ly(t){return t.dataKey}var Ry=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ty(this,e,arguments)}var r,n,i;return 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&&Ny(t,e)}(e,G),r=e,(n=[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.content,c=e.coordinate,u=e.filterNull,l=e.isAnimationActive,s=e.offset,f=e.payload,h=e.payloadUniqBy,p=e.position,d=e.reverseDirection,y=e.useTranslate3d,v=e.viewBox,g=e.wrapperStyle,m=null!=f?f:[];u&&m.length&&(m=Rp(f.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),h,Ly));var b=m.length>0;return X.createElement(Ay,{allowEscapeViewBox:n,animationDuration:i,animationEasing:o,isAnimationActive:l,active:r,coordinate:c,hasPayload:b,offset:s,position:p,reverseDirection:d,useTranslate3d:y,viewBox:v,wrapperStyle:g},function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):"function"==typeof t?X.createElement(t,e):X.createElement(cy,e)}(a,ky(ky({},this.props),{},{payload:m})))}}])&&_y(r.prototype,n),i&&_y(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Iy(Ry,"displayName","Tooltip"),Iy(Ry,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Py.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 $y=di,zy=/\s/;var Hy=function(t){for(var e=t.length;e--&&zy.test(t.charAt(e)););return e},Fy=Hy,Uy=/^\s+/;var Vy=function(t){return t?t.slice(0,Fy(t)+1).replace(Uy,""):t},qy=Vy,Wy=Bi,Xy=_i,Yy=/^[-+]0x[0-9a-f]+$/i,Ky=/^0b[01]+$/i,Gy=/^0o[0-7]+$/i,Zy=parseInt;var Jy=function(t){if("number"==typeof t)return t;if(Xy(t))return NaN;if(Wy(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Wy(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=qy(t);var r=Ky.test(t);return r||Gy.test(t)?Zy(t.slice(2),r?2:8):Yy.test(t)?NaN:+t},Qy=Bi,tv=function(){return $y.Date.now()},ev=Jy,rv=Math.max,nv=Math.min;var iv=function(t,e,r){var n,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 r=n,o=i;return n=i=void 0,l=e,a=t.apply(o,r)}function d(t){var r=t-u;return void 0===u||r>=e||r<0||f&&t-l>=o}function y(){var t=tv();if(d(t))return v(t);c=setTimeout(y,function(t){var r=e-(t-u);return f?nv(r,o-(t-l)):r}(t))}function v(t){return c=void 0,h&&n?p(t):(n=i=void 0,a)}function g(){var t=tv(),r=d(t);if(n=arguments,i=this,u=t,r){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=ev(e)||0,Qy(r)&&(s=!!r.leading,o=(f="maxWait"in r)?rv(ev(r.maxWait)||0,e):o,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=i=c=void 0},g.flush=function(){return void 0===c?a:v(tv())},g},ov=iv,av=Bi;var cv=_n((function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return av(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ov(t,e,{leading:n,maxWait:e,trailing:i})}));function uv(t){return uv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uv(t)}function lv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lv(Object(r),!0).forEach((function(e){fv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fv(t,e,r){return e=function(t){var e=function(t,e){if("object"!=uv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=uv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==uv(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 pv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pv(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 pv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var dv=Z((function(t,e){var r=t.aspect,n=t.initialDimension,i=void 0===n?{width:-1,height:-1}:n,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=J(null),O=J();O.current=m,Q(e,(function(){return Object.assign(x.current,{get current(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current}})}));var S=hv(tt({containerWidth:i.width,containerHeight:i.height}),2),j=S[0],A=S[1],P=et((function(t,e){A((function(r){var n=Math.round(t),i=Math.round(e);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}}))}),[]);rt((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,i=r.height;P(n,i),null===(e=O.current)||void 0===e||e.call(O,n,i)};y>0&&(t=cv(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=x.current.getBoundingClientRect(),n=r.width,i=r.height;return P(n,i),e.observe(x.current),function(){e.disconnect()}}),[P,y]);var M=nt((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;Vc(tc(a)||tc(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),Vc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=tc(a)?t:a,i=tc(u)?e:u;r&&r>0&&(n?i=n/r:i&&(n=i*r),h&&i>h&&(i=h)),Vc(n>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.",n,i,a,u,s,f,r);var o=!Array.isArray(p)&&Wa.isElement(p)&&Oc(p.type).endsWith("Chart");return X.Children.map(p,(function(t){return Wa.isElement(t)?it(t,sv({width:n,height:i},o?{style:sv({height:"100%",width:"100%",maxHeight:i,maxWidth:n},t.props.style)}:{})):t}))}),[r,p,u,h,f,s,j,a]);return X.createElement("div",{id:v?"".concat(v):void 0,className:li("recharts-responsive-container",g),style:sv(sv({},w),{},{width:a,height:u,minWidth:s,minHeight:f,maxHeight:h}),ref:x},M)})),yv=function(t){return null};function vv(t){return vv="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},vv(t)}function gv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function mv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gv(Object(r),!0).forEach((function(e){bv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function bv(t,e,r){return e=function(t){var e=function(t,e){if("object"!=vv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=vv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==vv(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}yv.displayName="Cell";var wv={widthCache:{},cacheCount:0},xv={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ov="recharts_measurement_span";var Sv=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Py.isSsr)return{width:0,height:0};var r,n=(r=mv({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),i=JSON.stringify({text:t,copyStyle:n});if(wv.widthCache[i])return wv.widthCache[i];try{var o=document.getElementById(Ov);o||((o=document.createElement("span")).setAttribute("id",Ov),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=mv(mv({},xv),n);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return wv.widthCache[i]=u,++wv.cacheCount>2e3&&(wv.cacheCount=0,wv.widthCache={}),u}catch(t){return{width:0,height:0}}};function jv(t){return jv="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},jv(t)}function Av(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 Pv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pv(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 Pv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Mv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ev(n.key),n)}}function Ev(t){var e=function(t,e){if("object"!=jv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=jv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==jv(e)?e:String(e)}var kv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_v=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Tv=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Cv=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Dv={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Nv=Object.keys(Dv),Iv="NaN";var Bv=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||Tv.test(r)||(this.num=NaN,this.unit=""),Nv.includes(r)&&(this.num=function(t,e){return t*Dv[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=Av(null!==(r=Cv.exec(e))&&void 0!==r?r:[],3),i=n[1],o=n[2];return new t(parseFloat(i),null!=o?o:"")}}],(r=[{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)}}])&&Mv(e.prototype,r),n&&Mv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Lv(t){if(t.includes(Iv))return Iv;for(var e=t;e.includes("*")||e.includes("/");){var r,n=Av(null!==(r=kv.exec(e))&&void 0!==r?r:[],4),i=n[1],o=n[2],a=n[3],c=Bv.parse(null!=i?i:""),u=Bv.parse(null!=a?a:""),l="*"===o?c.multiply(u):c.divide(u);if(l.isNaN())return Iv;e=e.replace(kv,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=Av(null!==(s=_v.exec(e))&&void 0!==s?s:[],4),h=f[1],p=f[2],d=f[3],y=Bv.parse(null!=h?h:""),v=Bv.parse(null!=d?d:""),g="+"===p?y.add(v):y.subtract(v);if(g.isNaN())return Iv;e=e.replace(_v,g.toString())}return e}var Rv=/\(([^()]*)\)/;function $v(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=Av(Rv.exec(e),2)[1];e=e.replace(Rv,Lv(r))}return e}(e),e=Lv(e)}function zv(t){var e=function(t){try{return $v(t)}catch(t){return Iv}}(t.slice(5,-1));return e===Iv?"":e}var Hv=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Fv=["dx","dy","angle","className","breakAll"];function Uv(){return Uv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Uv.apply(this,arguments)}function Vv(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function qv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 Wv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wv(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 Wv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Xv=/[ \f\n\r\t\v\u2028\u2029]+/,Yv=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var i=[];return Ba(e)||(i=r?e.toString().split(""):e.toString().split(Xv)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:Sv(t,n).width}})),spaceWidth:r?0:Sv(" ",n).width}}catch(t){return null}},Kv=function(t){return[{words:Ba(t)?[]:t.toString().split(Xv)}]},Gv=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||r)&&!Py.isSsr){var c=Yv({breakAll:o,children:n,style:i});return c?function(t,e,r,n,i){var o=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=ec(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==n||i||c.width+a+r<Number(n)))c.words.push(o),c.width+=a+r;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),r=Yv({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,i=f(r),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(n);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=qv(d(m-1),2),w=b[0],x=b[1],O=qv(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:n,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,r):Kv(n)}return Kv(n)},Zv="#808080",Jv=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,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?Zv:y,g=Vv(t,Hv),m=nt((function(){return Gv({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=Vv(g,Fv);if(!rc(r)||!rc(i))return null;var A,P=r+(ec(b)?b:0),M=i+(ec(w)?w:0);switch(d){case"start":A=zv("calc(".concat(u,")"));break;case"middle":A=zv("calc(".concat((m.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:A=zv("calc(".concat(m.length-1," * -").concat(a,")"))}var E=[];if(s){var k=m[0].width,_=g.width;E.push("scale(".concat((ec(_)?_/k:1)/k,")"))}return x&&E.push("rotate(".concat(x,", ").concat(P,", ").concat(M,")")),E.length&&(j.transform=E.join(" ")),X.createElement("text",Uv({},Tc(j,!0),{x:P,y:M,className:li("recharts-text",O),textAnchor:h,fill:v.includes("url")?Zv:v}),m.map((function(t,e){var r=t.words.join(S?"":" ");return X.createElement("tspan",{x:P,dy:0===e?A:a,key:r},r)})))};function Qv(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function tg(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eg(t){let e,r,n;function i(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Qv,r=(e,r)=>Qv(t(e),r),n=(e,r)=>t(e)-r):(e=t===Qv||t===tg?t:rg,r=t,n=t),{left:i,center:function(t,e,r=0,o=t.length){const a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<=0?i=e+1:o=e}while(i<o)}return i}}}function rg(){return 0}function ng(t){return null===t?NaN:+t}const ig=eg(Qv).right;eg(ng).center;class og extends Map{constructor(t,e=cg){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(ag(this,t))}has(t){return super.has(ag(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function ag({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function cg(t){return null!==t&&"object"==typeof t?t.valueOf():t}function ug(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const lg=Math.sqrt(50),sg=Math.sqrt(10),fg=Math.sqrt(2);function hg(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=lg?10:o>=sg?5:o>=fg?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<=r&&r<2?hg(t,e,2*r):[c,u,l]}function pg(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[i,o,a]=n?hg(e,t,r):hg(t,e,r);if(!(o>=i))return[];const c=o-i+1,u=new Array(c);if(n)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 dg(t,e,r){return hg(t=+t,e=+e,r=+r)[2]}function yg(t,e,r){r=+r;const n=(e=+e)<(t=+t),i=n?dg(e,t,r):dg(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function vg(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function gg(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function mg(t,e,r=0,n=1/0,i){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(i=void 0===i?ug:function(t=Qv){if(t===Qv)return ug;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(i);n>r;){if(n-r>600){const o=n-r+1,a=e-r+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);mg(t,e,Math.max(r,Math.floor(e-a*u/o+l)),Math.min(n,Math.floor(e+(o-a)*u/o+l)),i)}const o=t[e];let a=r,c=n;for(bg(t,r,e),i(t[n],o)>0&&bg(t,r,n);a<c;){for(bg(t,a,c),++a,--c;i(t[a],o)<0;)++a;for(;i(t[c],o)>0;)--c}0===i(t[r],o)?bg(t,r,c):(++c,bg(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function bg(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function wg(t,e,r=ng){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,o=Math.floor(i),a=+r(t[o],o,t);return a+(+r(t[o+1],o+1,t)-a)*(i-o)}}function xg(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Og(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 Sg=Symbol("implicit");function jg(){var t=new og,e=[],r=[],n=Sg;function i(i){let o=t.get(i);if(void 0===o){if(n!==Sg)return n;t.set(i,o=e.push(i)-1)}return r[o%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new og;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return jg(e,r).unknown(n)},xg.apply(i,arguments),i}function Ag(){var t,e,r=jg().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<o,h=f?a:o,p=f?o:a;t=(p-h)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),h+=(p-h-t*(r-u))*s,e=t*(1-u),c&&(h=Math.round(h),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),o=new Array(i);++n<i;)o[n]=t+n*r;return o}(r).map((function(e){return h+t*e}));return i(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return Ag(n(),[o,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},xg.apply(f(),arguments)}function Pg(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Pg(e())},t}function Mg(){return Pg(Ag.apply(null,arguments).paddingInner(1))}function Eg(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function kg(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function _g(){}var Tg=.7,Cg=1/Tg,Dg="\\s*([+-]?\\d+)\\s*",Ng="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ig="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bg=/^#([0-9a-f]{3,8})$/,Lg=new RegExp(`^rgb\\(${Dg},${Dg},${Dg}\\)$`),Rg=new RegExp(`^rgb\\(${Ig},${Ig},${Ig}\\)$`),$g=new RegExp(`^rgba\\(${Dg},${Dg},${Dg},${Ng}\\)$`),zg=new RegExp(`^rgba\\(${Ig},${Ig},${Ig},${Ng}\\)$`),Hg=new RegExp(`^hsl\\(${Ng},${Ig},${Ig}\\)$`),Fg=new RegExp(`^hsla\\(${Ng},${Ig},${Ig},${Ng}\\)$`),Ug={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 Vg(){return this.rgb().formatHex()}function qg(){return this.rgb().formatRgb()}function Wg(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Bg.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Xg(e):3===r?new Gg(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Yg(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Yg(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=Lg.exec(t))?new Gg(e[1],e[2],e[3],1):(e=Rg.exec(t))?new Gg(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=$g.exec(t))?Yg(e[1],e[2],e[3],e[4]):(e=zg.exec(t))?Yg(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Hg.exec(t))?rm(e[1],e[2]/100,e[3]/100,1):(e=Fg.exec(t))?rm(e[1],e[2]/100,e[3]/100,e[4]):Ug.hasOwnProperty(t)?Xg(Ug[t]):"transparent"===t?new Gg(NaN,NaN,NaN,0):null}function Xg(t){return new Gg(t>>16&255,t>>8&255,255&t,1)}function Yg(t,e,r,n){return n<=0&&(t=e=r=NaN),new Gg(t,e,r,n)}function Kg(t,e,r,n){return 1===arguments.length?((i=t)instanceof _g||(i=Wg(i)),i?new Gg((i=i.rgb()).r,i.g,i.b,i.opacity):new Gg):new Gg(t,e,r,null==n?1:n);var i}function Gg(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Zg(){return`#${em(this.r)}${em(this.g)}${em(this.b)}`}function Jg(){const t=Qg(this.opacity);return`${1===t?"rgb(":"rgba("}${tm(this.r)}, ${tm(this.g)}, ${tm(this.b)}${1===t?")":`, ${t})`}`}function Qg(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function tm(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function em(t){return((t=tm(t))<16?"0":"")+t.toString(16)}function rm(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new im(t,e,r,n)}function nm(t){if(t instanceof im)return new im(t.h,t.s,t.l,t.opacity);if(t instanceof _g||(t=Wg(t)),!t)return new im;if(t instanceof im)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),a=NaN,c=o-i,u=(o+i)/2;return c?(a=e===o?(r-n)/c+6*(r<n):r===o?(n-e)/c+2:(e-r)/c+4,c/=u<.5?o+i:2-o-i,a*=60):c=u>0&&u<1?0:a,new im(a,c,u,t.opacity)}function im(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function om(t){return(t=(t||0)%360)<0?t+360:t}function am(t){return Math.max(0,Math.min(1,t||0))}function cm(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Eg(_g,Wg,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Vg,formatHex:Vg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nm(this).formatHsl()},formatRgb:qg,toString:qg}),Eg(Gg,Kg,kg(_g,{brighter(t){return t=null==t?Cg:Math.pow(Cg,t),new Gg(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Tg:Math.pow(Tg,t),new Gg(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Gg(tm(this.r),tm(this.g),tm(this.b),Qg(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:Zg,formatHex:Zg,formatHex8:function(){return`#${em(this.r)}${em(this.g)}${em(this.b)}${em(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Jg,toString:Jg})),Eg(im,(function(t,e,r,n){return 1===arguments.length?nm(t):new im(t,e,r,null==n?1:n)}),kg(_g,{brighter(t){return t=null==t?Cg:Math.pow(Cg,t),new im(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Tg:Math.pow(Tg,t),new im(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,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Gg(cm(t>=240?t-240:t+120,i,n),cm(t,i,n),cm(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new im(om(this.h),am(this.s),am(this.l),Qg(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=Qg(this.opacity);return`${1===t?"hsl(":"hsla("}${om(this.h)}, ${100*am(this.s)}%, ${100*am(this.l)}%${1===t?")":`, ${t})`}`}}));var um=t=>()=>t;function lm(t){return 1==(t=+t)?sm:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):um(isNaN(e)?r:e)}}function sm(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):um(isNaN(t)?e:t)}var fm=function t(e){var r=lm(e);function n(t,e){var n=r((t=Kg(t)).r,(e=Kg(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=sm(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function hm(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function pm(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=wm(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<i;++r)a[r]=o[r](t);return a}}function dm(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function ym(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function vm(t,e){var r,n={},i={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=wm(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var gm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mm=new RegExp(gm.source,"g");function bm(t,e){var r,n,i,o=gm.lastIndex=mm.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=gm.exec(t))&&(n=mm.exec(e));)(i=n.index)>o&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:ym(r,n)})),o=mm.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 r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function wm(t,e){var r,n=typeof e;return null==e||"boolean"===n?um(e):("number"===n?ym:"string"===n?(r=Wg(e))?(e=r,fm):bm:e instanceof Wg?fm:e instanceof Date?dm:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?hm:Array.isArray(e)?pm:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?vm:ym)(t,e)}function xm(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function Om(t,e){void 0===e&&(e=t,t=wm);for(var r=0,n=e.length-1,i=e[0],o=new Array(n<0?0:n);r<n;)o[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return o[e](t-e)}}function Sm(t){return+t}var jm=[0,1];function Am(t){return t}function Pm(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Mm(t,e,r){var n=t[0],i=t[1],o=e[0],a=e[1];return i<n?(n=Pm(i,n),o=r(a,o)):(n=Pm(n,i),o=r(o,a)),function(t){return o(n(t))}}function Em(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),o=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)i[a]=Pm(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(e){var r=ig(t,e,1,n)-1;return o[r](i[r](e))}}function km(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function _m(){var t,e,r,n,i,o,a=jm,c=jm,u=wm,l=Am;function s(){var t=Math.min(a.length,c.length);return l!==Am&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?Em:Mm,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?r:(i||(i=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((o||(o=n(c,a.map(t),ym)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Sm),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=xm,s()},f.clamp=function(t){return arguments.length?(l=!!t||Am,s()):l!==Am},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function Tm(){return _m()(Am,Am)}function Cm(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Dm(t){return(t=Cm(Math.abs(t)))?t[1]:NaN}var Nm,Im=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bm(t){if(!(e=Im.exec(t)))throw new Error("invalid format: "+t);var e;return new Lm({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 Lm(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 Rm(t,e){var r=Cm(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Bm.prototype=Lm.prototype,Lm.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 $m={"%":(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)=>Rm(100*t,e),r:Rm,s:function(t,e){var r=Cm(t,e);if(!r)return t+"";var n=r[0],i=r[1],o=i-(Nm=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Cm(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function zm(t){return t}var Hm,Fm,Um,Vm=Array.prototype.map,qm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Wm(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?zm:(e=Vm.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,o=[],a=0,c=e[0],u=0;i>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),o.push(t.substring(i-=c,i+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return o.reverse().join(r)}),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?zm:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Vm.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=Bm(t)).fill,r=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"):$m[m]||(void 0===v&&(v=12),g=!0,m="g"),(p||"0"===e&&"="===r)&&(p=!0,e="0",r="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?o:/[%p]/.test(m)?u:"",x=$m[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,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])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?qm[8+Nm/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=n(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=n(P+t,P.length?d-S.length:1/0),P=""),r){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 r=f(((t=Bm(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Dm(e)/3))),i=Math.pow(10,-n),o=qm[8+n/3];return function(t){return r(i*t)+o}}}}function Xm(t,e,r,n){var i,o=yg(t,e,r);switch((n=Bm(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Dm(e)/3)))-Dm(Math.abs(t)))}(o,a))||(n.precision=i),Um(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Dm(e)-Dm(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(t){return Math.max(0,-Dm(Math.abs(t)))}(o))||(n.precision=i-2*("%"===n.type))}return Fm(n)}function Ym(t){var e=t.domain;return t.ticks=function(t){var r=e();return pg(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Xm(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,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=dg(u,l,r))===n)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}n=i}return t},t}function Km(){var t=Tm();return t.copy=function(){return km(t,Km())},xg.apply(t,arguments),Ym(t)}function Gm(t,e){var r,n=0,i=(t=t.slice()).length-1,o=t[n],a=t[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),t[n]=e.floor(o),t[i]=e.ceil(a),t}function Zm(t){return Math.log(t)}function Jm(t){return Math.exp(t)}function Qm(t){return-Math.log(-t)}function tb(t){return-Math.exp(-t)}function eb(t){return isFinite(t)?+("1e"+t):t<0?0:t}function rb(t){return(e,r)=>-t(-e,r)}function nb(t){const e=t(Zm,Jm),r=e.domain;let n,i,o=10;function a(){return n=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?eb:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),r()[0]<0?(n=rb(n),i=rb(i),t(Qm,tb)):t(Zm,Jm),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),h=n(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=pg(a,c,p))}else d=pg(f,h,Math.min(h-f,p)).map(i);return u?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===o?"s":","),"function"!=typeof r&&(o%1||null!=(r=Bm(r)).precision||(r.trim=!0),r=Fm(r)),t===1/0)return r;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(n(t)));return e*o<o-.5&&(e*=o),e<=a?r(t):""}},e.nice=()=>r(Gm(r(),{floor:t=>i(Math.floor(n(t))),ceil:t=>i(Math.ceil(n(t)))})),e}function ib(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function ob(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ab(t){var e=1,r=t(ib(e),ob(e));return r.constant=function(r){return arguments.length?t(ib(e=+r),ob(e)):e},Ym(r)}function cb(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function ub(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function lb(t){return t<0?-t*t:t*t}function sb(t){var e=t(Am,Am),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(Am,Am):.5===r?t(ub,lb):t(cb(r),cb(1/r)):r},Ym(e)}function fb(){var t=sb(_m());return t.copy=function(){return km(t,fb()).exponent(t.exponent())},xg.apply(t,arguments),t}function hb(t){return Math.sign(t)*t*t}Hm=Wm({thousands:",",grouping:[3],currency:["$",""]}),Fm=Hm.format,Um=Hm.formatPrefix;const pb=new Date,db=new Date;function yb(t,e,r,n){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=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{const e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,o)=>{const a=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return a;let c;do{a.push(c=new Date(+r)),e(r,o),t(r)}while(c<r&&r<n);return a},i.filter=r=>yb((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(i.count=(e,n)=>(pb.setTime(+e),db.setTime(+n),t(pb),t(db),Math.floor(r(pb,db))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const vb=yb((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));vb.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?yb((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):vb:null),vb.range;const gb=1e3,mb=6e4,bb=36e5,wb=864e5,xb=6048e5,Ob=2592e6,Sb=31536e6,jb=yb((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*gb)}),((t,e)=>(e-t)/gb),(t=>t.getUTCSeconds()));jb.range;const Ab=yb((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*gb)}),((t,e)=>{t.setTime(+t+e*mb)}),((t,e)=>(e-t)/mb),(t=>t.getMinutes()));Ab.range;const Pb=yb((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*mb)}),((t,e)=>(e-t)/mb),(t=>t.getUTCMinutes()));Pb.range;const Mb=yb((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*gb-t.getMinutes()*mb)}),((t,e)=>{t.setTime(+t+e*bb)}),((t,e)=>(e-t)/bb),(t=>t.getHours()));Mb.range;const Eb=yb((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*bb)}),((t,e)=>(e-t)/bb),(t=>t.getUTCHours()));Eb.range;const kb=yb((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*mb)/wb),(t=>t.getDate()-1));kb.range;const _b=yb((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/wb),(t=>t.getUTCDate()-1));_b.range;const Tb=yb((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/wb),(t=>Math.floor(t/wb)));function Cb(t){return yb((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())*mb)/xb))}Tb.range;const Db=Cb(0),Nb=Cb(1),Ib=Cb(2),Bb=Cb(3),Lb=Cb(4),Rb=Cb(5),$b=Cb(6);function zb(t){return yb((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)/xb))}Db.range,Nb.range,Ib.range,Bb.range,Lb.range,Rb.range,$b.range;const Hb=zb(0),Fb=zb(1),Ub=zb(2),Vb=zb(3),qb=zb(4),Wb=zb(5),Xb=zb(6);Hb.range,Fb.range,Ub.range,Vb.range,qb.range,Wb.range,Xb.range;const Yb=yb((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()));Yb.range;const Kb=yb((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()));Kb.range;const Gb=yb((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()));Gb.every=t=>isFinite(t=Math.floor(t))&&t>0?yb((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,Gb.range;const Zb=yb((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 Jb(t,e,r,n,i,o){const a=[[jb,1,gb],[jb,5,5e3],[jb,15,15e3],[jb,30,3e4],[o,1,mb],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,bb],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,wb],[n,2,1728e5],[r,1,xb],[e,1,Ob],[e,3,7776e6],[t,1,Sb]];function c(e,r,n){const i=Math.abs(r-e)/n,o=eg((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(yg(e/Sb,r/Sb,n));if(0===o)return vb.every(Math.max(yg(e,r,n),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,r){const n=e<t;n&&([t,e]=[e,t]);const i=r&&"function"==typeof r.range?r:c(t,e,r),o=i?i.range(t,+e+1):[];return n?o.reverse():o},c]}Zb.every=t=>isFinite(t=Math.floor(t))&&t>0?yb((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,Zb.range;const[Qb,tw]=Jb(Zb,Kb,Hb,Tb,Eb,Pb),[ew,rw]=Jb(Gb,Yb,Db,kb,Mb,Ab);function nw(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 iw(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 ow(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var aw,cw,uw,lw={"-":"",_:" ",0:"0"},sw=/^\s*\d+/,fw=/^%/,hw=/[\\^$*+?|[\]().{}]/g;function pw(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(e)+i:i)}function dw(t){return t.replace(hw,"\\$&")}function yw(t){return new RegExp("^(?:"+t.map(dw).join("|")+")","i")}function vw(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function gw(t,e,r){var n=sw.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function mw(t,e,r){var n=sw.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function bw(t,e,r){var n=sw.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function ww(t,e,r){var n=sw.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function xw(t,e,r){var n=sw.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function Ow(t,e,r){var n=sw.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Sw(t,e,r){var n=sw.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function jw(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Aw(t,e,r){var n=sw.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Pw(t,e,r){var n=sw.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Mw(t,e,r){var n=sw.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Ew(t,e,r){var n=sw.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function kw(t,e,r){var n=sw.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function _w(t,e,r){var n=sw.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function Tw(t,e,r){var n=sw.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Cw(t,e,r){var n=sw.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Dw(t,e,r){var n=sw.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Nw(t,e,r){var n=fw.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Iw(t,e,r){var n=sw.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Bw(t,e,r){var n=sw.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Lw(t,e){return pw(t.getDate(),e,2)}function Rw(t,e){return pw(t.getHours(),e,2)}function $w(t,e){return pw(t.getHours()%12||12,e,2)}function zw(t,e){return pw(1+kb.count(Gb(t),t),e,3)}function Hw(t,e){return pw(t.getMilliseconds(),e,3)}function Fw(t,e){return Hw(t,e)+"000"}function Uw(t,e){return pw(t.getMonth()+1,e,2)}function Vw(t,e){return pw(t.getMinutes(),e,2)}function qw(t,e){return pw(t.getSeconds(),e,2)}function Ww(t){var e=t.getDay();return 0===e?7:e}function Xw(t,e){return pw(Db.count(Gb(t)-1,t),e,2)}function Yw(t){var e=t.getDay();return e>=4||0===e?Lb(t):Lb.ceil(t)}function Kw(t,e){return t=Yw(t),pw(Lb.count(Gb(t),t)+(4===Gb(t).getDay()),e,2)}function Gw(t){return t.getDay()}function Zw(t,e){return pw(Nb.count(Gb(t)-1,t),e,2)}function Jw(t,e){return pw(t.getFullYear()%100,e,2)}function Qw(t,e){return pw((t=Yw(t)).getFullYear()%100,e,2)}function tx(t,e){return pw(t.getFullYear()%1e4,e,4)}function ex(t,e){var r=t.getDay();return pw((t=r>=4||0===r?Lb(t):Lb.ceil(t)).getFullYear()%1e4,e,4)}function rx(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+pw(e/60|0,"0",2)+pw(e%60,"0",2)}function nx(t,e){return pw(t.getUTCDate(),e,2)}function ix(t,e){return pw(t.getUTCHours(),e,2)}function ox(t,e){return pw(t.getUTCHours()%12||12,e,2)}function ax(t,e){return pw(1+_b.count(Zb(t),t),e,3)}function cx(t,e){return pw(t.getUTCMilliseconds(),e,3)}function ux(t,e){return cx(t,e)+"000"}function lx(t,e){return pw(t.getUTCMonth()+1,e,2)}function sx(t,e){return pw(t.getUTCMinutes(),e,2)}function fx(t,e){return pw(t.getUTCSeconds(),e,2)}function hx(t){var e=t.getUTCDay();return 0===e?7:e}function px(t,e){return pw(Hb.count(Zb(t)-1,t),e,2)}function dx(t){var e=t.getUTCDay();return e>=4||0===e?qb(t):qb.ceil(t)}function yx(t,e){return t=dx(t),pw(qb.count(Zb(t),t)+(4===Zb(t).getUTCDay()),e,2)}function vx(t){return t.getUTCDay()}function gx(t,e){return pw(Fb.count(Zb(t)-1,t),e,2)}function mx(t,e){return pw(t.getUTCFullYear()%100,e,2)}function bx(t,e){return pw((t=dx(t)).getUTCFullYear()%100,e,2)}function wx(t,e){return pw(t.getUTCFullYear()%1e4,e,4)}function xx(t,e){var r=t.getUTCDay();return pw((t=r>=4||0===r?qb(t):qb.ceil(t)).getUTCFullYear()%1e4,e,4)}function Ox(){return"+0000"}function Sx(){return"%"}function jx(t){return+t}function Ax(t){return Math.floor(+t/1e3)}function Px(t){return new Date(t)}function Mx(t){return t instanceof Date?+t:+new Date(+t)}function Ex(t,e,r,n,i,o,a,c,u,l){var s=Tm(),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:n(t)<t?i(t)<t?g:m:r(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,Mx)):h().map(Px)},s.ticks=function(e){var r=h();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var r=h();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?h(Gm(r,t)):s},s.copy=function(){return km(s,Ex(t,e,r,n,i,o,a,c,u,l))},s}function kx(){var t,e,r,n,i,o=0,a=1,c=Am,u=!1;function l(e){return null==e||isNaN(e=+e)?i:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,t=n(o=+o),e=n(a=+a),r=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(wm),l.rangeRound=s(xm),l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return n=i,t=i(o),e=i(a),r=t===e?0:1/(e-t),l}}function _x(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Tx(){var t=sb(kx());return t.copy=function(){return _x(t,Tx()).exponent(t.exponent())},Og.apply(t,arguments)}function Cx(){var t,e,r,n,i,o,a,c=0,u=.5,l=1,s=1,f=Am,h=!1;function p(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(s*t<s*e?n:i),f(h?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,i;return arguments.length?([r,n,i]=e,f=Om(t,[r,n,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),r=o(l=+l),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-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(wm),p.rangeRound=d(xm),p.unknown=function(t){return arguments.length?(a=t,p):a},function(a){return o=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,p}}function Dx(){var t=sb(Cx());return t.copy=function(){return _x(t,Dx()).exponent(t.exponent())},Og.apply(t,arguments)}!function(t){aw=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,o=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=yw(i),s=vw(i),f=yw(o),h=vw(o),p=yw(a),d=vw(a),y=yw(c),v=vw(c),g=yw(u),m=vw(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:Lw,e:Lw,f:Fw,g:Qw,G:ex,H:Rw,I:$w,j:zw,L:Hw,m:Uw,M:Vw,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:jx,s:Ax,S:qw,u:Ww,U:Xw,V:Kw,w:Gw,W:Zw,x:null,X:null,y:Jw,Y:tx,Z:rx,"%":Sx},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:nx,e:nx,f:ux,g:bx,G:xx,H:ix,I:ox,j:ax,L:cx,m:lx,M:sx,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:jx,s:Ax,S:fx,u:hx,U:px,V:yx,w:vx,W:gx,x:null,X:null,y:mx,Y:wx,Z:Ox,"%":Sx},x={a:function(t,e,r){var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=g.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:Mw,e:Mw,f:Dw,g:Sw,G:Ow,H:kw,I:kw,j:Ew,L:Cw,m:Pw,M:_w,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:Aw,Q:Iw,s:Bw,S:Tw,u:mw,U:bw,V:ww,w:gw,W:xw,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:Sw,Y:Ow,Z:jw,"%":Nw};function O(t,e){return function(r){var n,i,o,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(i=lw[n=t.charAt(++c)])?n=t.charAt(++c):i="e"===n?" ":"0",(o=e[n])&&(n=o(r,i)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,i,o=ow(1900,void 0,1);if(j(o,t,r+="",0)!=r.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=(n=iw(ow(o.y,0,1))).getUTCDay(),n=i>4||0===i?Fb.ceil(n):Fb(n),n=_b.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=nw(ow(o.y,0,1))).getDay(),n=i>4||0===i?Nb.ceil(n):Nb(n),n=kb.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.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?iw(ow(o.y,0,1)).getUTCDay():nw(ow(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,iw(o)):nw(o)}}function j(t,e,r,n){for(var i,o,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in lw?e.charAt(a++):i])||(n=o(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(e,b),w.x=O(r,w),w.X=O(n,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),cw=aw.format,aw.parse,uw=aw.utcFormat,aw.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 Nx=Object.freeze({__proto__:null,scaleBand:Ag,scaleDiverging:function t(){var e=Ym(Cx()(Am));return e.copy=function(){return _x(e,t())},Og.apply(e,arguments)},scaleDivergingLog:function t(){var e=nb(Cx()).domain([.1,1,10]);return e.copy=function(){return _x(e,t()).base(e.base())},Og.apply(e,arguments)},scaleDivergingPow:Dx,scaleDivergingSqrt:function(){return Dx.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=ab(Cx());return e.copy=function(){return _x(e,t()).constant(e.constant())},Og.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Sm),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,Sm):[0,1],Ym(n)},scaleImplicit:Sg,scaleLinear:Km,scaleLog:function t(){const e=nb(_m()).domain([1,10]);return e.copy=()=>km(e,t()).base(e.base()),xg.apply(e,arguments),e},scaleOrdinal:jg,scalePoint:Mg,scalePow:fb,scaleQuantile:function t(){var e,r=[],n=[],i=[];function o(){var t=0,e=Math.max(1,n.length);for(i=new Array(e-1);++t<e;)i[t-1]=wg(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[ig(i,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e<i.length?i[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(Qv),o()},a.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return i.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},xg.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,i=1,o=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[ig(o,t,0,i)]:e}function u(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*n-(t-i)*r)/(i+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},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?[r,o[0]]:e>=i?[o[i-1],n]:[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([r,n]).range(a).unknown(e)},xg.apply(Ym(c),arguments)},scaleRadial:function t(){var e,r=Tm(),n=[0,1],i=!1;function o(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:i?Math.round(n):n}return o.invert=function(t){return r.invert(hb(t))},o.domain=function(t){return arguments.length?(r.domain(t),o):r.domain()},o.range=function(t){return arguments.length?(r.range((n=Array.from(t,Sm)).map(hb)),o):n.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?(r.clamp(t),o):r.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(r.domain(),n).round(i).clamp(r.clamp()).unknown(e)},xg.apply(o,arguments),Ym(o)},scaleSequential:function t(){var e=Ym(kx()(Am));return e.copy=function(){return _x(e,t())},Og.apply(e,arguments)},scaleSequentialLog:function t(){var e=nb(kx()).domain([1,10]);return e.copy=function(){return _x(e,t()).base(e.base())},Og.apply(e,arguments)},scaleSequentialPow:Tx,scaleSequentialQuantile:function t(){var e=[],r=Am;function n(t){if(null!=t&&!isNaN(t=+t))return r((ig(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Qv),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((r,n)=>function(t,e,r){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 r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return gg(t);if(e>=1)return vg(t);var n,i=(n-1)*e,o=Math.floor(i),a=vg(mg(t,o).subarray(0,o+1));return a+(gg(t.subarray(o+1))-a)*(i-o)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},Og.apply(n,arguments)},scaleSequentialSqrt:function(){return Tx.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=ab(kx());return e.copy=function(){return _x(e,t()).constant(e.constant())},Og.apply(e,arguments)},scaleSqrt:function(){return fb.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=ab(_m());return e.copy=function(){return km(e,t()).constant(e.constant())},xg.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],i=1;function o(t){return null!=t&&t<=t?n[ig(r,t,0,i)]:e}return o.domain=function(t){return arguments.length?(r=Array.from(t),i=Math.min(r.length,n.length-1),o):r.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(r).range(n).unknown(e)},xg.apply(o,arguments)},scaleTime:function(){return xg.apply(Ex(ew,rw,Gb,Yb,Db,kb,Mb,Ab,jb,cw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return xg.apply(Ex(Qb,tw,Zb,Kb,Hb,_b,Eb,Pb,jb,uw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Xm}),Ix=_i;var Bx=function(t,e,r){for(var n=-1,i=t.length;++n<i;){var o=t[n],a=e(o);if(null!=a&&(void 0===c?a==a&&!Ix(a):r(a,c)))var c=a,u=o}return u};var Lx=Bx,Rx=function(t,e){return t>e},$x=ep;var zx=function(t){return t&&t.length?Lx(t,$x,Rx):void 0},Hx=_n(zx);var Fx=Bx,Ux=function(t,e){return t<e},Vx=ep;var qx=function(t){return t&&t.length?Fx(t,Vx,Ux):void 0},Wx=_n(qx),Xx=da,Yx=dp,Kx=dd,Gx=si;var Zx=od,Jx=function(t,e){return(Gx(t)?Xx:Kx)(t,Yx(e))};var Qx=_n((function(t,e){return Zx(Jx(t,e),1)})),tO=Oh;var eO,rO=_n((function(t,e){return tO(t,e)})),nO=1e9,iO=!0,oO="[DecimalError] ",aO=oO+"Invalid argument: ",cO=oO+"Exponent out of range: ",uO=Math.floor,lO=Math.pow,sO=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,fO=1e7,hO=7,pO=9007199254740991,dO=uO(pO/hO),yO={};function vO(t,e){var r,n,i,o,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),iO?PO(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?(n=u,o=-o,c=l.length):(n=l,i=a,c=u.length),o>(c=(a=Math.ceil(f/hO))>c?a+1:c+1)&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((c=u.length)-(o=l.length)<0&&(o=c,n=l,l=u,u=n),r=0;o;)r=(u[--o]=u[o]+l[o]+r)/fO|0,u[o]%=fO;for(r&&(u.unshift(r),++i),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=i,iO?PO(e,f):e}function gO(t,e,r){if(t!==~~t||t<e||t>r)throw Error(aO+t)}function mO(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+"",(r=hO-n.length)&&(o+=SO(r)),o+=n;a=t[e],(r=hO-(n=a+"").length)&&(o+=SO(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}yO.absoluteValue=yO.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},yO.comparedTo=yO.cmp=function(t){var e,r,n,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,r=(n=o.d.length)<(i=t.d.length)?n:i;e<r;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},yO.decimalPlaces=yO.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*hO;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},yO.dividedBy=yO.div=function(t){return bO(this,new this.constructor(t))},yO.dividedToIntegerBy=yO.idiv=function(t){var e=this.constructor;return PO(bO(this,new e(t),0,1),e.precision)},yO.equals=yO.eq=function(t){return!this.cmp(t)},yO.exponent=function(){return xO(this)},yO.greaterThan=yO.gt=function(t){return this.cmp(t)>0},yO.greaterThanOrEqualTo=yO.gte=function(t){return this.cmp(t)>=0},yO.isInteger=yO.isint=function(){return this.e>this.d.length-2},yO.isNegative=yO.isneg=function(){return this.s<0},yO.isPositive=yO.ispos=function(){return this.s>0},yO.isZero=function(){return 0===this.s},yO.lessThan=yO.lt=function(t){return this.cmp(t)<0},yO.lessThanOrEqualTo=yO.lte=function(t){return this.cmp(t)<1},yO.logarithm=yO.log=function(t){var e,r=this,n=r.constructor,i=n.precision,o=i+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(eO))throw Error(oO+"NaN");if(r.s<1)throw Error(oO+(r.s?"NaN":"-Infinity"));return r.eq(eO)?new n(0):(iO=!1,e=bO(jO(r,o),jO(t,o),o),iO=!0,PO(e,i))},yO.minus=yO.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?MO(e,t):vO(e,(t.s=-t.s,t))},yO.modulo=yO.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(!(t=new n(t)).s)throw Error(oO+"NaN");return r.s?(iO=!1,e=bO(r,t,0,1).times(t),iO=!0,r.minus(e)):PO(new n(r),i)},yO.naturalExponential=yO.exp=function(){return wO(this)},yO.naturalLogarithm=yO.ln=function(){return jO(this)},yO.negated=yO.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},yO.plus=yO.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?vO(e,t):MO(e,(t.s=-t.s,t))},yO.precision=yO.sd=function(t){var e,r,n,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(aO+t);if(e=xO(i)+1,r=(n=i.d.length-1)*hO+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},yO.squareRoot=yO.sqrt=function(){var t,e,r,n,i,o,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(oO+"NaN")}for(t=xO(c),iO=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=mO(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=uO((t+1)/2)-(t<0||t%2),n=new u(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(i.toString()),i=a=(r=u.precision)+3;;)if(n=(o=n).plus(bO(c,o,a+2)).times(.5),mO(o.d).slice(0,a)===(e=mO(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(PO(o,r+1,0),o.times(o).eq(c)){n=o;break}}else if("9999"!=e)break;a+=4}return iO=!0,PO(n,r)},yO.times=yO.mul=function(t){var e,r,n,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,r=s.e+t.e,(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],n=a=u+l;n--;)o.push(0);for(n=l;--n>=0;){for(e=0,i=u+n;i>n;)c=o[i]+p[n]*h[i-n-1]+e,o[i--]=c%fO|0,e=c/fO|0;o[i]=(o[i]+e)%fO|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,iO?PO(t,f.precision):t},yO.toDecimalPlaces=yO.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(gO(t,0,nO),void 0===e?e=n.rounding:gO(e,0,8),PO(r,t+xO(r)+1,e))},yO.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=EO(n,!0):(gO(t,0,nO),void 0===e?e=i.rounding:gO(e,0,8),r=EO(n=PO(new i(n),t+1,e),!0,t+1)),r},yO.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?EO(i):(gO(t,0,nO),void 0===e?e=o.rounding:gO(e,0,8),r=EO((n=PO(new o(i),t+xO(i)+1,e)).abs(),!1,t+xO(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},yO.toInteger=yO.toint=function(){var t=this,e=t.constructor;return PO(new e(t),xO(t)+1,e.rounding)},yO.toNumber=function(){return+this},yO.toPower=yO.pow=function(t){var e,r,n,i,o,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(eO);if(!(c=new u(c)).s){if(t.s<1)throw Error(oO+"Infinity");return c}if(c.eq(eO))return c;if(n=u.precision,t.eq(eO))return PO(c,n);if(a=(e=t.e)>=(r=t.d.length-1),o=c.s,a){if((r=l<0?-l:l)<=pO){for(i=new u(eO),e=Math.ceil(n/hO+4),iO=!1;r%2&&kO((i=i.times(c)).d,e),0!==(r=uO(r/2));)kO((c=c.times(c)).d,e);return iO=!0,t.s<0?new u(eO).div(i):PO(i,n)}}else if(o<0)throw Error(oO+"NaN");return o=o<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,iO=!1,i=t.times(jO(c,n+12)),iO=!0,(i=wO(i)).s=o,i},yO.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?n=EO(i,(r=xO(i))<=o.toExpNeg||r>=o.toExpPos):(gO(t,1,nO),void 0===e?e=o.rounding:gO(e,0,8),n=EO(i=PO(new o(i),t,e),t<=(r=xO(i))||r<=o.toExpNeg,t)),n},yO.toSignificantDigits=yO.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(gO(t,1,nO),void 0===e?e=r.rounding:gO(e,0,8)),PO(new r(this),t,e)},yO.toString=yO.valueOf=yO.val=yO.toJSON=yO[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=xO(t),r=t.constructor;return EO(t,e<=r.toExpNeg||e>=r.toExpPos)};var bO=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%fO|0,n=r/fO|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*fO+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a){var c,u,l,s,f,h,p,d,y,v,g,m,b,w,x,O,S,j,A=n.constructor,P=n.s==i.s?1:-1,M=n.d,E=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(oO+"Division by zero");for(u=n.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+(xO(n)-xO(i))+1:o)<0)return new A(0);if(m=m/hO+2|0,l=0,1==S)for(s=0,E=E[0],m++;(l<x||s)&&m--;l++)b=s*fO+(M[l]||0),d[l]=b/E|0,s=b%E|0;else{for((s=fO/(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]>=fO/2&&++O;do{s=0,(c=e(E,y,S,v))<0?(g=y[0],S!=v&&(g=g*fO+(y[1]||0)),(s=g/O|0)>1?(s>=fO&&(s=fO-1),1==(c=e(f=t(E,s),y,h=f.length,v=y.length))&&(s--,r(f,S<h?j:E,h))):(0==s&&(c=s=1),f=E.slice()),(h=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=e(E,y,S,v=y.length))<1&&(s++,r(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,PO(p,a?o+xO(p)+1:o)}}();function wO(t,e){var r,n,i,o,a,c=0,u=0,l=t.constructor,s=l.precision;if(xO(t)>16)throw Error(cO+xO(t));if(!t.s)return new l(eO);for(null==e?(iO=!1,a=s):a=e,o=new l(.03125);t.abs().gte(.1);)t=t.times(o),u+=5;for(a+=Math.log(lO(2,u))/Math.LN10*2+5|0,r=n=i=new l(eO),l.precision=a;;){if(n=PO(n.times(t),a),r=r.times(++c),mO((o=i.plus(bO(n,r,a))).d).slice(0,a)===mO(i.d).slice(0,a)){for(;u--;)i=PO(i.times(i),a);return l.precision=s,null==e?(iO=!0,PO(i,s)):i}i=o}}function xO(t){for(var e=t.e*hO,r=t.d[0];r>=10;r/=10)e++;return e}function OO(t,e,r){if(e>t.LN10.sd())throw iO=!0,r&&(t.precision=r),Error(oO+"LN10 precision limit exceeded");return PO(new t(t.LN10),e)}function SO(t){for(var e="";t--;)e+="0";return e}function jO(t,e){var r,n,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(oO+(h.s?"NaN":"-Infinity"));if(h.eq(eO))return new d(0);if(null==e?(iO=!1,l=y):l=e,h.eq(10))return null==e&&(iO=!0),OO(d,l);if(l+=10,d.precision=l,n=(r=mO(p)).charAt(0),o=xO(h),!(Math.abs(o)<15e14))return u=OO(d,l+2,y).times(o+""),h=jO(new d(n+"."+r.slice(1)),l-10).plus(u),d.precision=y,null==e?(iO=!0,PO(h,y)):h;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=mO((h=h.times(t)).d)).charAt(0),f++;for(o=xO(h),n>1?(h=new d("0."+r),o++):h=new d(n+"."+r.slice(1)),c=a=h=bO(h.minus(eO),h.plus(eO),l),s=PO(h.times(h),l),i=3;;){if(a=PO(a.times(s),l),mO((u=c.plus(bO(a,new d(i),l))).d).slice(0,l)===mO(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(OO(d,l+2,y).times(o+""))),c=bO(c,new d(f),l),d.precision=y,null==e?(iO=!0,PO(c,y)):c;c=u,i+=2}}function AO(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,r=r-n-1,t.e=uO(r/hO),t.d=[],n=(r+1)%hO,r<0&&(n+=hO),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=hO;n<i;)t.d.push(+e.slice(n,n+=hO));e=e.slice(n),n=hO-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),iO&&(t.e>dO||t.e<-dO))throw Error(cO+r)}else t.s=0,t.e=0,t.d=[0];return t}function PO(t,e,r){var n,i,o,a,c,u,l,s,f=t.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((n=e-a)<0)n+=hO,i=e,l=f[s=0];else{if((s=Math.ceil((n+1)/hO))>=(o=f.length))return t;for(l=o=f[s],a=1;o>=10;o/=10)a++;i=(n%=hO)-hO+a}if(void 0!==r&&(c=l/(o=lO(10,a-i-1))%10|0,u=e<0||void 0!==f[s+1]||l%o,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?i>0?l/lO(10,a-i):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(o=xO(t),f.length=1,e=e-o-1,f[0]=lO(10,(hO-e%hO)%hO),t.e=uO(-e/hO)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,o=1,s--):(f.length=s+1,o=lO(10,hO-n),f[s]=i>0?(l/lO(10,a-i)%lO(10,i)|0)*o:0),u)for(;;){if(0==s){(f[0]+=o)==fO&&(f[0]=1,++t.e);break}if(f[s]+=o,f[s]!=fO)break;f[s--]=0,o=1}for(n=f.length;0===f[--n];)f.pop();if(iO&&(t.e>dO||t.e<-dO))throw Error(cO+xO(t));return t}function MO(t,e){var r,n,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),iO?PO(e,p):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(i=Math.max(Math.ceil(p/hO),c)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.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&&(r=u,u=f,f=r,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]=fO-1;--u[o],u[i]+=fO}u[i]-=f[i]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,iO?PO(e,p):e):new h(0)}function EO(t,e,r){var n,i=xO(t),o=mO(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+SO(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+SO(-i-1)+o,r&&(n=r-a)>0&&(o+=SO(n))):i>=a?(o+=SO(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+SO(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=SO(n))),t.s<0?"-"+o:o}function kO(t,e){if(t.length>e)return t.length=e,!0}function _O(t){if(!t||"object"!=typeof t)throw Error(oO+"Object expected");var e,r,n,i=["precision",1,nO,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(n=t[r=i[e]])){if(!(uO(n)===n&&n>=i[e+1]&&n<=i[e+2]))throw Error(aO+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(aO+r+": "+n);this[r]=new this(n)}return this}var TO=function t(e){var r,n,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(aO+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])):AO(e,t.toString())}if("string"!=typeof t)throw Error(aO+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!sO.test(t))throw Error(aO+t);AO(e,t)}if(o.prototype=yO,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=_O,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});eO=new TO(1);var CO=TO;function DO(t){return function(t){if(Array.isArray(t))return NO(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 NO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NO(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 NO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var IO=function(t){return t},BO={"@@functional/placeholder":!0},LO=function(t){return t===BO},RO=function(t){return function e(){return 0===arguments.length||1===arguments.length&&LO(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},$O=function t(e,r){return 1===e?r:RO((function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==BO})).length;return a>=e?r.apply(void 0,i):t(e-a,RO((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=i.map((function(t){return LO(t)?e.shift():t}));return r.apply(void 0,DO(o).concat(e))})))}))},zO=function(t){return $O(t.length,t)},HO=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},FO=zO((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),UO=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return IO;var n=e.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},VO=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},qO=function(t){var e=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e&&i.every((function(t,r){return t===e[r]}))?r:(e=i,r=t.apply(void 0,i))}};var WO=zO((function(t,e,r){var n=+t;return n+r*(+e-n)})),XO=zO((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),YO=zO((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),KO={rangeStep:function(t,e,r){for(var n=new CO(t),i=0,o=[];n.lt(e)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new CO(t).abs().log(10).toNumber())+1},interpolateNumber:WO,uninterpolateNumber:XO,uninterpolateTruncation:YO};function GO(t){return function(t){if(Array.isArray(t))return QO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||JO(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 ZO(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 r=[],n=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(t,e)||JO(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 JO(t,e){if(t){if("string"==typeof t)return QO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?QO(t,e):void 0}}function QO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tS(t){var e=ZO(t,2),r=e[0],n=e[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function eS(t,e,r){if(t.lte(0))return new CO(0);var n=KO.getDigitCount(t.toNumber()),i=new CO(10).pow(n),o=t.div(i),a=1!==n?.05:.1,c=new CO(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return e?c:new CO(Math.ceil(c))}function rS(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new CO(0),tickMin:new CO(0),tickMax:new CO(0)};var o,a=eS(new CO(e).sub(t).div(r-1),n,i);o=t<=0&&e>=0?new CO(0):(o=new CO(t).add(e).div(2)).sub(new CO(o).mod(a));var c=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new CO(e).sub(o).div(a).toNumber()),l=c+u+1;return l>r?rS(t,e,r,n,i+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:o.sub(new CO(c).mul(a)),tickMax:o.add(new CO(u).mul(a))})}var nS=qO((function(t){var e=ZO(t,2),r=e[0],n=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=ZO(tS([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(GO(HO(0,i-1).map((function(){return 1/0})))):[].concat(GO(HO(0,i-1).map((function(){return-1/0}))),[l]);return r>n?VO(s):s}if(u===l)return function(t,e,r){var n=1,i=new CO(t);if(!i.isint()&&r){var o=Math.abs(t);o<1?(n=new CO(10).pow(KO.getDigitCount(t)-1),i=new CO(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new CO(Math.floor(t)))}else 0===t?i=new CO(Math.floor((e-1)/2)):r||(i=new CO(Math.floor(t)));var a=Math.floor((e-1)/2);return UO(FO((function(t){return i.add(new CO(t-a).mul(n)).toNumber()})),HO)(0,e)}(u,i,o);var f=rS(u,l,a,o),h=f.step,p=f.tickMin,d=f.tickMax,y=KO.rangeStep(p,d.add(new CO(.1).mul(h)),h);return r>n?VO(y):y})),iS=qO((function(t,e){var r=ZO(t,2),n=r[0],i=r[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=ZO(tS([n,i]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,i];if(c===u)return[c];var l=Math.max(e,2),s=eS(new CO(u).sub(c).div(l-1),o,0),f=[].concat(GO(KO.rangeStep(new CO(c),new CO(u).sub(new CO(.99).mul(s)),s)),[u]);return n>i?VO(f):f})),oS="production"===process.env.NODE_ENV,aS="Invariant failed";function cS(t,e){if(!t){if(oS)throw new Error(aS);var r="function"==typeof e?e():e,n=r?"".concat(aS,": ").concat(r):aS;throw new Error(n)}}var uS=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function lS(){return lS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lS.apply(this,arguments)}function sS(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 fS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fS(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 fS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function hS(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function pS(t){var e=t.offset,r=t.layout,n=t.width,i=t.dataKey,o=t.data,a=t.dataPointFormatter,c=t.xAxis,u=t.yAxis,l=hS(t,uS),s=Tc(l,!1);"x"===t.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?cS(!1,'ErrorBar requires Axis type property to be "number".'):cS(!1));var 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=sS(p,2);d=g[0],y=g[1]}else d=y=p;if("vertical"===r){var m=c.scale,b=f+e,w=b+n,x=b-n,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"===r){var j=u.scale,A=l+e,P=A-n,M=A+n,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 X.createElement(Fc,lS({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 X.createElement("line",lS({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return X.createElement(Fc,{className:"recharts-errorBars"},f)}function dS(t){return dS="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},dS(t)}function yS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yS(Object(r),!0).forEach((function(e){gS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=dS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}pS.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},pS.displayName="ErrorBar";var mS=function(t){var e,r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Mc(r,Qp);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,i=n.sectors||n.data||[];return t.concat(i.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,i=r.name,o=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||o||"square",color:MS(e),value:i||n,payload:e.props}})),vS(vS(vS({},a.props),Qp.getWithHeight(a,i)),{},{payload:e,item:a})):null};function bS(t){return bS="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},bS(t)}function wS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wS(Object(r),!0).forEach((function(e){OS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function OS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=bS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function SS(t){return function(t){if(Array.isArray(t))return jS(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 jS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jS(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 jS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function AS(t,e,r){return Ba(t)||Ba(e)?r:rc(e)?Ia(t,e,r):Fi(e)?e(t):r}function PS(t,e,r,n){var i=Qx(t,(function(t){return AS(t,e)}));if("number"===r){var o=i.filter((function(t){return ec(t)||parseFloat(t)}));return o.length?[Wx(o),Hx(o)]:[1/0,-1/0]}return(n?i.filter((function(t){return!Ba(t)})):i).map((function(t){return rc(t)||t instanceof Date?t:""}))}var MS=function(t){var e,r=t.type.displayName,n=t.props,i=n.stroke,o=n.fill;switch(r){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},ES=function(t,e,r,n,i){var o=Pc(e.props.children,pS).filter((function(t){return function(t,e,r){return!!Ba(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,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 n=AS(e,r,0),i=Array.isArray(n)?[Wx(n),Hx(n)]:[n,n],o=a.reduce((function(t,r){var n=AS(e,r,0),o=i[0]-Math.abs(Array.isArray(n)?n[0]:n),a=i[1]+Math.abs(Array.isArray(n)?n[1]:n);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},kS=function(t,e,r,n,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===r&&o&&ES(t,e,o,n)||PS(t,o,r,i)}));if("number"===r)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 r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},_S=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},TS=function(t,e,r){if(!t)return null;var n=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===o&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*Qa(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:n(e)+u,value:t,offset:u}})).filter((function(t){return!Ja(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:i?i[t]:t,index:e,offset:u}}))},CS=new WeakMap,DS=function(t,e){if("function"!=typeof e)return t;CS.has(t)||CS.set(t,new WeakMap);var r=CS.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},NS=1e-4,IS={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0,a=0;a<e;++a){var c=Ja(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1]):(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,i,o=0,a=t[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=t[r][o][1]||0;if(i)for(r=0;r<n;++r)t[r][o][1]/=i}wl(t,e)}},none:wl,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],o=i.length;n<o;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;i[n][1]+=i[n][0]=-c/2}wl(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++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}r[a-1][1]+=r[a-1][0]=o,u&&(o-=l/u)}r[a-1][1]+=r[a-1][0]=o,wl(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0;o<e;++o){var a=Ja(t[o][r][1])?t[o][r][0]:t[o][r][1];a>=0?(t[o][r][0]=i,t[o][r][1]=i+a,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}}},BS=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),i=IS[r],o=function(){var t=wu([]),e=xl,r=wl,n=Ol;function i(i){var o,a,c=Array.from(t.apply(this,arguments),Sl),u=c.length,l=-1;for(const t of i)for(o=0,++l;o<u;++o)(c[o][l]=[0,+n(t,c[o].key,l,i)]).data=t;for(o=0,a=Du(e(c));o<u;++o)c[a[o]].index=o;return r(c,a),c}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:wu(Array.from(e)),i):t},i.value=function(t){return arguments.length?(n="function"==typeof t?t:wu(+t),i):n},i.order=function(t){return arguments.length?(e=null==t?xl:"function"==typeof t?t:wu(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(r=null==t?wl:t,i):r},i}().keys(n).value((function(t,e){return+AS(t,e,0)})).order(xl).offset(i);return o(t)};function LS(t){var e=t.axis,r=t.ticks,n=t.bandSize,i=t.entry,o=t.index,a=t.dataKey;if("category"===e.type){if(!e.allowDuplicatedCategory&&e.dataKey&&!Ba(i[e.dataKey])){var c=uc(r,"value",i[e.dataKey]);if(c)return c.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var u=AS(i,Ba(a)?e.dataKey:a);return Ba(u)?null:e.scale(u)}var RS=function(t){var e=t.axis,r=t.ticks,n=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=AS(o,e.dataKey,e.domain[a]);return Ba(c)?null:e.scale(c)-i/2+n},$S=function(t,e,r){return Object.keys(t).reduce((function(n,i){var o=t[i].stackedData.reduce((function(t,n){var i=n.slice(e,r+1).reduce((function(t,e){return[Wx(e.concat([t[0]]).filter(ec)),Hx(e.concat([t[1]]).filter(ec))]}),[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],n[0]),Math.max(o[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},zS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,FS=function(t,e,r){if(Fi(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(ec(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if(zS.test(t[0])){var i=+zS.exec(t[0])[1];n[0]=e[0]-i}else Fi(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(ec(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(HS.test(t[1])){var o=+HS.exec(t[1])[1];n[1]=e[1]+o}else Fi(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},US=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var i=Jd(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 r?void 0:0},VS=function(t,e,r){return t&&t.length?rO(t,Ia(r,"type.defaultProps.domain"))?e:t:e},qS=function(t,e){var r=t.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return xS(xS({},Tc(t,!1)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:MS(t),value:AS(e,n),type:c,payload:e,chartType:u,hide:l})};function WS(t){return WS="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},WS(t)}function XS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function YS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?XS(Object(r),!0).forEach((function(e){KS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):XS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function KS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=WS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=WS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==WS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var GS=Math.PI/180,ZS=function(t){return 180*t/Math.PI},JS=function(t,e,r,n){return{x:t+Math.cos(-GS*n)*r,y:e+Math.sin(-GS*n)*r}},QS=function(t,e){var r=t.x,n=t.y,i=e.cx,o=e.cy,a=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(n-o,2))}({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var c=(r-i)/a,u=Math.acos(c);return n>o&&(u=2*Math.PI-u),{radius:a,angle:ZS(u),angleInRadian:u}},tj=function(t,e){var r=e.startAngle,n=e.endAngle,i=Math.floor(r/360),o=Math.floor(n/360);return t+360*Math.min(i,o)},ej=function(t,e){var r=t.x,n=t.y,i=QS({x:r,y:n},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,r=t.endAngle,n=Math.floor(e/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:e-360*o,endAngle:r-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?YS(YS({},e),{},{radius:o,angle:tj(p,e)}):null};function rj(t){return rj="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},rj(t)}var nj=["offset"];function ij(t){return function(t){if(Array.isArray(t))return oj(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 oj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oj(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 oj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function aj(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function cj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function uj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?cj(Object(r),!0).forEach((function(e){lj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):cj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function lj(t,e,r){return e=function(t){var e=function(t,e){if("object"!=rj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rj(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sj(){return sj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sj.apply(this,arguments)}var fj=function(t){var e=t.value,r=t.formatter,n=Ba(t.children)?e:t.children;return Fi(r)?r(n):n},hj=function(t,e,r){var n,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 Qa(e-t)*Math.min(Math.abs(e-t),360)}(d,y),b=m>=0?1:-1;"insideStart"===o?(n=d+b*c,i=v):"insideEnd"===o?(n=y-b*c,i=!v):"end"===o&&(n=y+b*c,i=v),i=m<=0?i:!i;var w=JS(s,f,g,n),x=JS(s,f,g,n+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=Ba(t.id)?ic("recharts-radial-line-"):t.id;return X.createElement("text",sj({},r,{dominantBaseline:"central",className:li("recharts-radial-bar-label",u)}),X.createElement("defs",null,X.createElement("path",{id:S,d:O})),X.createElement("textPath",{xlinkHref:"#".concat(S)},e))},pj=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e,o=i.cx,a=i.cy,c=i.innerRadius,u=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===n){var s=JS(o,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var h=JS(o,a,(c+u)/2,l);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}},dj=function(t){var e=t.viewBox,r=t.parentViewBox,n=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*n,h=s>0?"end":"start",p=s>0?"start":"end",d=u>=0?1:-1,y=d*n,v=d>0?"end":"start",g=d>0?"start":"end";if("top"===i)return uj(uj({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===i)return uj(uj({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===i){var m={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return uj(uj({},m),r?{width:Math.max(m.x-r.x,0),height:l}:{})}if("right"===i){var b={x:a+u+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return uj(uj({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var w=r?{width:u,height:l}:{};return"insideLeft"===i?uj({x:a+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===i?uj({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?uj({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===i?uj({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:h},w):"insideTopLeft"===i?uj({x:a+y,y:c+f,textAnchor:g,verticalAnchor:p},w):"insideTopRight"===i?uj({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===i?uj({x:a+y,y:c+l-f,textAnchor:g,verticalAnchor:h},w):"insideBottomRight"===i?uj({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:h},w):Li(i)&&(ec(i.x)||tc(i.x))&&(ec(i.y)||tc(i.y))?uj({x:a+oc(i.x,u),y:c+oc(i.y,l),textAnchor:"end",verticalAnchor:"end"},w):uj({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},yj=function(t){return"cx"in t&&ec(t.cx)};function vj(t){var e,r=t.offset,n=uj({offset:void 0===r?5:r},aj(t,nj)),i=n.viewBox,o=n.position,a=n.value,c=n.children,u=n.content,l=n.className,s=void 0===l?"":l,f=n.textBreakAll;if(!i||Ba(a)&&Ba(c)&&!Y(u)&&!Fi(u))return null;if(Y(u))return it(u,n);if(Fi(u)){if(Y(e=ot(u,n)))return e}else e=fj(n);var h=yj(i),p=Tc(n,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return hj(n,e,p);var d=h?pj(n):dj(n);return X.createElement(Jv,sj({className:li("recharts-label",s)},p,d,{breakAll:f}),e)}vj.displayName="Label";var gj=function(t){var e=t.cx,r=t.cy,n=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(ec(d)&&ec(y)){if(ec(s)&&ec(f))return{x:s,y:f,width:d,height:y};if(ec(h)&&ec(p))return{x:h,y:p,width:d,height:y}}return ec(s)&&ec(f)?{x:s,y:f,width:0,height:0}:ec(e)&&ec(r)?{cx:e,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};vj.parseViewBox=gj,vj.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=gj(t),o=Pc(n,vj).map((function(t,r){return it(t,{viewBox:e||i,key:"label-".concat(r)})}));if(!r)return o;var a=function(t,e){return t?!0===t?X.createElement(vj,{key:"label-implicit",viewBox:e}):rc(t)?X.createElement(vj,{key:"label-implicit",viewBox:e,value:t}):Y(t)?t.type===vj?it(t,{key:"label-implicit",viewBox:e}):X.createElement(vj,{key:"label-implicit",content:t,viewBox:e}):Fi(t)?X.createElement(vj,{key:"label-implicit",content:t,viewBox:e}):Li(t)?X.createElement(vj,sj({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat(ij(o))};var mj=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},bj=_n(mj);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)}var xj=["valueAccessor"],Oj=["data","dataKey","clockWise","id","textBreakAll"];function Sj(t){return function(t){if(Array.isArray(t))return jj(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 jj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jj(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 jj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Aj(){return Aj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Aj.apply(this,arguments)}function Pj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Mj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pj(Object(r),!0).forEach((function(e){Ej(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ej(t,e,r){return e=function(t){var e=function(t,e){if("object"!=wj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=wj(n))return n;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),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kj(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var _j=function(t){return Array.isArray(t.value)?bj(t.value):t.value};function Tj(t){var e=t.valueAccessor,r=void 0===e?_j:e,n=kj(t,xj),i=n.data,o=n.dataKey,a=n.clockWise,c=n.id,u=n.textBreakAll,l=kj(n,Oj);return i&&i.length?X.createElement(Fc,{className:"recharts-label-list"},i.map((function(t,e){var n=Ba(o)?r(t,e):AS(t&&t.payload,o),i=Ba(c)?{}:{id:"".concat(c,"-").concat(e)};return X.createElement(vj,Aj({},Tc(t,!0),l,i,{parentViewBox:t.parentViewBox,value:n,textBreakAll:u,viewBox:vj.parseViewBox(Ba(a)?t:Mj(Mj({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}function Cj(t){return Cj="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},Cj(t)}function Dj(){return Dj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Dj.apply(this,arguments)}function Nj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ij(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Nj(Object(r),!0).forEach((function(e){Bj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Nj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Bj(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Cj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Cj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Cj(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}Tj.displayName="LabelList",Tj.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=Pc(t.children,Tj).map((function(t,r){return it(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?X.createElement(Tj,{key:"labelList-implicit",data:e}):X.isValidElement(t)||Fi(t)?X.createElement(Tj,{key:"labelList-implicit",data:e,content:t}):Li(t)?X.createElement(Tj,Aj({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(Sj(n)):n};var Lj=function(t){var e=t.cx,r=t.cy,n=t.radius,i=t.angle,o=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/GS,f=u?i:i+o*s,h=u?i-o*s:i;return{center:JS(e,r,l,f),circleTangency:JS(e,r,n,f),lineTangency:JS(e,r,l*Math.cos(s*GS),h),theta:s}},Rj=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return Qa(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+a,u=JS(e,r,i,o),l=JS(e,r,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(n>0){var f=JS(e,r,n,o),h=JS(e,r,n,c);s+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},$j={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},zj=function(t){var e=Ij(Ij({},$j),t),r=e.cx,n=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=li("recharts-sector",f),d=o-i,y=oc(a,d,0,!0);return h=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=Qa(l-u),f=Lj({cx:e,cy:r,radius:i,angle:u,sign:s,cornerRadius:o,cornerIsExternal:c}),h=f.circleTangency,p=f.lineTangency,d=f.theta,y=Lj({cx:e,cy:r,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 "):Rj({cx:e,cy:r,innerRadius:n,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(n>0){var x=Lj({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,j=x.theta,A=Lj({cx:e,cy:r,radius:n,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(r,"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(n,",").concat(n,",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(r,"Z");return w}({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,d/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:s}):Rj({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:l,endAngle:s}),X.createElement("path",Dj({},Tc(e,!0),{className:p,d:h,role:"img"}))};function Hj(t){return Hj="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},Hj(t)}function Fj(){return Fj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fj.apply(this,arguments)}function Uj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Uj(Object(r),!0).forEach((function(e){qj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Uj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qj(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Hj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Hj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Hj(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Wj,Xj,Yj,Kj,Gj,Zj,Jj,Qj,tA,eA,rA,nA,iA={curveBasisClosed:function(t){return new cl(t)},curveBasisOpen:function(t){return new ul(t)},curveBasis:function(t){return new al(t)},curveBumpX:function(t){return new zu(t,!0)},curveBumpY:function(t){return new zu(t,!1)},curveLinearClosed:function(t){return new ll(t)},curveLinear:Iu,curveMonotoneX:function(t){return new dl(t)},curveMonotoneY:function(t){return new yl(t)},curveNatural:function(t){return new gl(t)},curveStep:function(t){return new bl(t,.5)},curveStepAfter:function(t){return new bl(t,1)},curveStepBefore:function(t){return new bl(t,0)}},oA=function(t){return t.x===+t.x&&t.y===+t.y},aA=function(t){return t.x},cA=function(t){return t.y},uA=function(t){var e,r=t.type,n=void 0===r?"linear":r,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(Fi(t))return t;var r="curve".concat(bu(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?iA[r]||Iu:iA["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?o.filter((function(t){return oA(t)})):o;if(Array.isArray(a)){var h=l?a.filter((function(t){return oA(t)})):a,p=f.map((function(t,e){return Vj(Vj({},t),{},{base:h[e]})}));return(e="vertical"===c?$u().y(cA).x1(aA).x0((function(t){return t.base.x})):$u().x(aA).y1(cA).y0((function(t){return t.base.y}))).defined(oA).curve(s),e(p)}return(e="vertical"===c&&ec(a)?$u().y(cA).x1(aA).x0(a):ec(a)?$u().x(aA).y1(cA).y0(a):Ru().x(aA).y(cA)).defined(oA).curve(s),e(f)},lA=function(t){var e=t.className,r=t.points,n=t.path,i=t.pathRef;if(!(r&&r.length||n))return null;var o=r&&r.length?uA(t):n;return X.createElement("path",Fj({},Tc(t,!1),yc(t),{className:li("recharts-curve",e),d:o,ref:i}))},sA={exports:{}};function fA(){if(Xj)return Wj;Xj=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return Wj=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={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,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)}(n),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++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},Wj}function hA(){if(Kj)return Yj;Kj=1;return Yj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function pA(){return Zj?Gj:(Zj=1,Gj=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var dA=Wa;sA.exports=function(){if(eA)return tA;eA=1;var t=Wa,e=fA(),r=hA(),n=pA(),i=function(){if(Qj)return Jj;Qj=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=hA(),r={},n=pA();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(n(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 r)){r[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&&(r={})},Jj=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){}}),tA=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,n,i,o,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];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+"]",r);if(l instanceof Error)return l}return null}))},element:y((function(t,e,r,n,i){var o=t[e];return c(o)?null:new d("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new d("Invalid "+i+" `"+o+"` of type `"+((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(t,e,r,n,i){return m(t[e])?null:new d("Invalid "+n+" `"+i+"` supplied to `"+r+"`, 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(n(u,s)){var f=t(u,s,o,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?y((function(e,r,n,i,o){for(var a=e[r],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 `"+n+"`, 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,r);if(null==s)return null;s.data&&n(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,n,i,o,a){var c=e[n],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,r);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(n(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,r);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={},n=0;function i(i,a,c,l,s,h,p){if(l=l||f,h=h||c,p!==r){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]&&n<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,n++)}}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,r,n,i,o,a){var c=e[r];return b(c)!==t?new d("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){return new d((t||"React class")+": "+e+" type `"+r+"."+n+"` 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 r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!m(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.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},tA}()(dA.isElement,!0)}else sA.exports=function(){if(nA)return rA;nA=1;var t=hA();function e(){}function r(){}return r.resetWarningCache=e,rA=function(){function n(e,r,n,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 n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}()();var yA=_n(sA.exports),vA=Object.getOwnPropertyNames,gA=Object.getOwnPropertySymbols,mA=Object.prototype.hasOwnProperty;function bA(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function wA(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function xA(t){return vA(t).concat(gA(t))}var OA=Object.hasOwn||function(t,e){return mA.call(t,e)};function SA(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var jA="_owner",AA=Object.getOwnPropertyDescriptor,PA=Object.keys;function MA(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function EA(t,e){return SA(t.getTime(),e.getTime())}function kA(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=n.value,h=f[0],p=f[1],d=i.value,y=d[0],v=d[1];l||o[s]||!(l=r.equals(h,y,c,s,t,e,r)&&r.equals(p,v,h,y,t,e,r))||(o[s]=!0),s++}if(!l)return!1;c++}return!0}function _A(t,e,r){var n,i=PA(t),o=i.length;if(PA(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===jA&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!OA(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function TA(t,e,r){var n,i,o,a=xA(t),c=a.length;if(xA(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===jA&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!OA(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=AA(t,n),o=AA(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function CA(t,e){return SA(t.valueOf(),e.valueOf())}function DA(t,e){return t.source===e.source&&t.flags===e.flags}function NA(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(i=c.next())&&!i.done;)u||o[l]||!(u=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[l]=!0),l++;if(!u)return!1}return!0}function IA(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var BA="[object Arguments]",LA="[object Boolean]",RA="[object Date]",$A="[object Map]",zA="[object Number]",HA="[object Object]",FA="[object RegExp]",UA="[object Set]",VA="[object String]",qA=Array.isArray,WA="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,XA=Object.assign,YA=Object.prototype.toString.call.bind(Object.prototype.toString);var KA=GA();function GA(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?TA:MA,areDatesEqual:EA,areMapsEqual:n?bA(kA,TA):kA,areObjectsEqual:n?TA:_A,arePrimitiveWrappersEqual:CA,areRegExpsEqual:DA,areSetsEqual:n?bA(NA,TA):NA,areTypedArraysEqual:n?TA:IA};if(r&&(i=XA({},i,r(i))),e){var o=wA(i.areArraysEqual),a=wA(i.areMapsEqual),c=wA(i.areObjectsEqual),u=wA(i.areSetsEqual);i=XA({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=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(qA(t))return e(t,l,s);if(null!=WA&&WA(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var h=YA(t);return h===RA?r(t,l,s):h===FA?a(t,l,s):h===$A?n(t,l,s):h===UA?c(t,l,s):h===HA?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):h===BA?i(t,l,s):(h===LA||h===zA||h===VA)&&o(t,l,s)}}(u),s=i?i(l):(e=l,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(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 r(t,e,a)}}({circular:n,comparator:l,createState:o,equals:s,strict:c})}function ZA(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function JA(t){return JA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JA(t)}function QA(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 tP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tP(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 tP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function eP(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=QA(n),o=i[0],a=i.slice(1);return"number"==typeof o?void ZA(r.bind(null,a),o):(r(o),void ZA(r.bind(null,a)))}"object"===JA(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return null}}}}}function rP(t){return rP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rP(t)}function nP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function iP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?nP(Object(r),!0).forEach((function(e){oP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==rP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==rP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===rP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}GA({strict:!0}),GA({circular:!0}),GA({circular:!0,strict:!0}),GA({createInternalComparator:function(){return SA}}),GA({strict:!0,createInternalComparator:function(){return SA}}),GA({circular:!0,createInternalComparator:function(){return SA}}),GA({circular:!0,createInternalComparator:function(){return SA},strict:!0});var aP=function(t){return t},cP=function(t,e){return Object.keys(e).reduce((function(r,n){return iP(iP({},r),{},oP({},n,t(n,e[n])))}),{})},uP=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},lP="production"!==process.env.NODE_ENV,sP=function(t,e,r,n,i,o,a,c){if(lP&&"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=[r,n,i,o,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function fP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||pP(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 hP(t){return function(t){if(Array.isArray(t))return dP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||pP(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 pP(t,e){if(t){if("string"==typeof t)return dP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dP(t,e):void 0}}function dP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var yP=1e-4,vP=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},gP=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},mP=function(t,e){return function(r){var n=vP(t,e);return gP(n,r)}},bP=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=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=fP(u,4);n=l[0],i=l[1],o=l[2],a=l[3]}else sP(!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)}sP([n,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=mP(n,o),p=mP(i,a),d=(s=n,f=o,function(t){var e=vP(s,f),r=[].concat(hP(e.map((function(t,e){return t*e})).slice(1)),[0]);return gP(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=h(n)-r,a=d(n);if(Math.abs(o-r)<yP||a<yP)return p(n);n=(e=n-o/a)>1?1:e<0?0:e}return p(n)};return y.isStepper=!1,y},wP=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return bP(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<yP&&Math.abs(o)<yP?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return bP(n);sP(!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 n?n:(sP(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function xP(t){return xP="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},xP(t)}function OP(t){return function(t){if(Array.isArray(t))return EP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||MP(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 SP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?SP(Object(r),!0).forEach((function(e){AP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):SP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function AP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==xP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==xP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===xP(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function PP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||MP(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){if(t){if("string"==typeof t)return EP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?EP(t,e):void 0}}function EP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var kP=function(t,e,r){return t+(e-t)*r},_P=function(t){return t.from!==t.to},TP=function t(e,r,n){var i=cP((function(t,r){if(_P(r)){var n=PP(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return jP(jP({},r),{},{from:i,velocity:o})}return r}),r);return n<1?cP((function(t,e){return _P(e)?jP(jP({},e),{},{velocity:kP(e.velocity,i[t].velocity,n),from:kP(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},CP=function(t,e,r,n,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(r,n){return jP(jP({},r),{},AP({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return jP(jP({},r),{},AP({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),h=-1,p=function(){return null};return p=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=TP(r,f,o),i(jP(jP(jP({},t),e),cP((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(_P).length&&(h=requestAnimationFrame(p))}:function(o){u||(u=o);var a=(o-u)/n,c=cP((function(t,e){return kP.apply(void 0,OP(e).concat([r(a)]))}),s);if(i(jP(jP(jP({},t),e),c)),a<1)h=requestAnimationFrame(p);else{var l=cP((function(t,e){return kP.apply(void 0,OP(e).concat([r(1)]))}),s);i(jP(jP(jP({},t),e),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(h)}}};function DP(t){return DP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},DP(t)}var NP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function IP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function BP(t){return function(t){if(Array.isArray(t))return LP(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 LP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LP(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 LP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function RP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function $P(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?RP(Object(r),!0).forEach((function(e){zP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):RP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zP(t,e,r){return(e=FP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function HP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,FP(n.key),n)}}function FP(t){var e=function(t,e){if("object"!==DP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==DP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===DP(e)?e:String(e)}function UP(t,e){return UP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},UP(t,e)}function VP(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 r,n=XP(t);if(e){var i=XP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return qP(this,r)}}function qP(t,e){if(e&&("object"===DP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return WP(t)}function WP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function XP(t){return XP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},XP(t)}var YP=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&&UP(t,e)}(o,G);var e,r,n,i=VP(o);function o(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=(r=i.call(this,t,e)).props,a=n.isActive,c=n.attributeName,u=n.from,l=n.to,s=n.steps,f=n.children,h=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(WP(r)),r.changeStyle=r.changeStyle.bind(WP(r)),!a||h<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),qP(r);if(s&&s.length)r.state={style:s[0].style};else if(u){if("function"==typeof f)return r.state={style:u},qP(r);r.state={style:c?zP({},c,u):u}}else r.state={style:{}};return r}return e=o,(r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(KA(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?zP({},i,s):s};(i&&[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation($P($P({},this.props),{},{from:s,begin:0}))}}else{var h={style:i?zP({},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,r=t.from,n=t.to,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=CP(r,n,wP(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,u=void 0===c?0:c;return this.manager.start([i].concat(BP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,h=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(BP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var p=uP(h,o,c),d=$P($P($P({},f.style),u),{},{transition:p});return[].concat(BP(t),[d,o,s]).filter(aP)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=eP());var e=t.begin,r=t.duration,n=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=n?zP({},n,i):i,h=uP(Object.keys(f),r,o);s.start([a,e,$P($P({},f),{},{transition:h}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=IP(t,NP),o=K.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return it(t,$P($P({},i),{},{style:$P($P({},n),a),className:o}))};return 1===o?c(K.only(e)):X.createElement("div",null,K.map(e,(function(t){return c(t)})))}}])&&HP(e.prototype,r),n&&HP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}();function KP(t){return KP="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},KP(t)}function GP(){return GP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},GP.apply(this,arguments)}function ZP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function QP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?QP(Object(r),!0).forEach((function(e){eM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):QP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function eM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=KP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=KP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==KP(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}YP.displayName="Animate",YP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},YP.propTypes={from:yA.oneOfType([yA.object,yA.string]),to:yA.oneOfType([yA.object,yA.string]),attributeName:yA.string,duration:yA.number,begin:yA.number,easing:yA.oneOfType([yA.string,yA.func]),steps:yA.arrayOf(yA.shape({duration:yA.number.isRequired,style:yA.object.isRequired,easing:yA.oneOfType([yA.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),yA.func]),properties:yA.arrayOf("string"),onAnimationEnd:yA.func})),children:yA.oneOfType([yA.node,yA.func]),isActive:yA.bool,canBegin:yA.bool,onAnimationEnd:yA.func,shouldReAnimate:yA.bool,onAnimationStart:yA.func,onAnimationReStart:yA.func},yA.object,yA.object,yA.object,yA.element,yA.object,yA.object,yA.object,yA.oneOfType([yA.array,yA.element]),yA.any;var rM=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<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+r-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),o+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-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+r-u*h,",").concat(e,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*h,"\n L ").concat(t+r,",").concat(e+n-c*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+r-u*h,",").concat(e+n,"\n L ").concat(t+u*h,",").concat(e+n,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*h," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},nM=function(t,e){if(!t||!e)return!1;var r=t.x,n=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 r>=u&&r<=l&&n>=s&&n<=f}return!1},iM={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},oM=function(t){var e=tM(tM({},iM),t),r=J(),n=ZP(tt(-1),2),i=n[0],o=n[1];rt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.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=li("recharts-rectangle",f);return v?X.createElement(YP,{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 n=t.width,o=t.height,a=t.x,c=t.y;return X.createElement(YP,{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},X.createElement("path",GP({},Tc(e,!0),{className:g,d:rM(a,c,n,o,s),ref:r})))})):X.createElement("path",GP({},Tc(e,!0),{className:g,d:rM(a,c,u,l,s)}))};function aM(){return aM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},aM.apply(this,arguments)}var cM=function(t){var e=t.cx,r=t.cy,n=t.r,i=li("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?X.createElement("circle",aM({},Tc(t,!1),yc(t),{className:i,cx:e,cy:r,r:n})):null};function uM(t){return uM="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},uM(t)}var lM=["x","y","top","left","width","height","className"];function sM(){return sM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sM.apply(this,arguments)}function fM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=uM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=uM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==uM(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var dM=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},yM=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,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 r=null!=arguments[e]?arguments[e]:{};e%2?fM(Object(r),!0).forEach((function(e){hM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:u,width:s,height:h},pM(t,lM));return ec(r)&&ec(i)&&ec(s)&&ec(h)&&ec(a)&&ec(u)?X.createElement("path",sM({},Tc(d,!0),{className:li("recharts-cross",p),d:dM(r,i,s,h,a,u)})):null},vM=wf(Object.getPrototypeOf,Object),gM=Pi,mM=vM,bM=Mi,wM=Function.prototype,xM=Object.prototype,OM=wM.toString,SM=xM.hasOwnProperty,jM=OM.call(Object);var AM=_n((function(t){if(!bM(t)||"[object Object]"!=gM(t))return!1;var e=mM(t);if(null===e)return!0;var r=SM.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&OM.call(r)==jM})),PM=Pi,MM=Mi;var EM=_n((function(t){return!0===t||!1===t||MM(t)&&"[object Boolean]"==PM(t)}));function kM(t){return kM="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},kM(t)}function _M(){return _M=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},_M.apply(this,arguments)}function TM(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 CM(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return CM(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 CM(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function DM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function NM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DM(Object(r),!0).forEach((function(e){IM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=kM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=kM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==kM(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var BM=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},LM={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},RM=function(t){var e=NM(NM({},LM),t),r=J(),n=TM(tt(-1),2),i=n[0],o=n[1];rt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.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=li("recharts-trapezoid",f);return y?X.createElement(YP,{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 n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return X.createElement(YP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:h},X.createElement("path",_M({},Tc(e,!0),{className:v,d:BM(c,u,n,o,a),ref:r})))})):X.createElement("g",null,X.createElement("path",_M({},Tc(e,!0),{className:v,d:BM(a,c,u,l,s)})))},$M=["option","shapeType","propTransformer","activeClassName","isActive"];function zM(t){return zM="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},zM(t)}function HM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function FM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function UM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?FM(Object(r),!0).forEach((function(e){VM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function VM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=zM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zM(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function qM(t,e){return UM(UM({},e),t)}function WM(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return X.createElement(oM,r);case"trapezoid":return X.createElement(RM,r);case"sector":return X.createElement(zj,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return X.createElement(Dl,r);break;default:return null}}function XM(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?qM:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=HM(t,$M);if(Y(r))e=it(r,UM(UM({},l),function(t){return Y(t)?t.props:t}(r)));else if(Fi(r))e=r(l);else if(AM(r)&&!EM(r)){var s=o(r,l);e=X.createElement(WM,{shapeType:n,elementProps:s})}else{var f=l;e=X.createElement(WM,{shapeType:n,elementProps:f})}return u?X.createElement(Fc,{className:c},e):e}function YM(t,e){return null!=e&&"trapezoids"in t.props}function KM(t,e){return null!=e&&"sectors"in t.props}function GM(t,e){return null!=e&&"points"in t.props}function ZM(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function JM(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function QM(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function tE(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return YM(t,e)?r="trapezoids":KM(t,e)?r="sectors":GM(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return 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:KM(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:GM(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=rO(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return YM(t,e)?r=ZM:KM(t,e)?r=JM:GM(t,e)&&(r=QM),r}(r,e);return n(t,e)})),u=r.props[i].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}var eE=Math.ceil,rE=Math.max;var nE=Jy,iE=1/0;var oE=function(t,e,r,n){for(var i=-1,o=rE(eE((e-t)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=t,t+=r;return a},aE=Yd,cE=function(t){return t?(t=nE(t))===iE||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var uE=_n(function(t){return function(e,r,n){return n&&"number"!=typeof n&&aE(e,r,n)&&(r=n=void 0),e=cE(e),void 0===r?(r=e,e=0):r=cE(r),n=void 0===n?e<r?1:-1:cE(n),oE(e,r,n,t)}}());function lE(t){return lE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lE(t)}function sE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sE(Object(r),!0).forEach((function(e){hE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=lE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=lE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==lE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var pE=["Webkit","Moz","O","ms"];function dE(t){return dE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dE(t)}function yE(){return yE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yE.apply(this,arguments)}function vE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vE(Object(r),!0).forEach((function(e){jE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,AE(n.key),n)}}function bE(t,e,r){return e=xE(e),function(t,e){if(e&&("object"===dE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return OE(t)}(t,wE()?Reflect.construct(e,r||[],xE(t).constructor):e.apply(t,r))}function wE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(wE=function(){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){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SE(t,e){return SE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},SE(t,e)}function jE(t,e,r){return(e=AE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AE(t){var e=function(t,e){if("object"!=dE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=dE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dE(e)?e:String(e)}var PE=function(t){return t.changedTouches&&!!t.changedTouches.length},ME=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),jE(OE(r=bE(this,e,[t])),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),jE(OE(r),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),jE(OE(r),"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),jE(OE(r),"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),jE(OE(r),"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),jE(OE(r),"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),jE(OE(r),"handleSlideDragStart",(function(t){var e=PE(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(OE(r),"startX"),endX:r.handleTravellerDragStart.bind(OE(r),"endX")},r.state={},r}var r,n,i;return 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&&SE(t,e)}(e,G),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(i,u),f=e.getIndexInRange(i,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=AS(r[t],i,t);return Fi(n)?n(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,r=e.slideMoveStartX,n=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-r;h>0?h=Math.min(h,a+c-u-i,a+c-u-n):h<0&&(h=Math.max(h,a-n,a-i));var p=this.getIndex({startX:n+h,endX:i+h});p.startIndex===l&&p.endIndex===s||!f||f(p),this.setState({startX:n+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=PE(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,h=c.gap,p=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),d[n]=a+y;var v=this.getIndex(d),g=v.startIndex,m=v.endIndex;this.setState(jE(jE({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=p.length-1,("startX"===n&&(i>o?g%h==0:m%h==0)||i<o&&m===t||"endX"===n&&(i>o?m%h==0:g%h==0)||i>o&&m===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.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(jE({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return X.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,u=K.only(a);return u?X.cloneElement(u,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n=this,i=this.props,o=i.y,a=i.travellerWidth,c=i.height,u=i.traveller,l=i.ariaLabel,s=i.data,f=i.startIndex,h=i.endIndex,p=Math.max(t,this.props.x),d=gE(gE({},Tc(this.props,!1)),{},{x:p,y:o,width:a,height:c}),y=l||"Min value: ".concat(s[f].name,", Max value: ").concat(s[h].name);return X.createElement(Fc,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(u,d))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return X.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:n,width:u,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=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 X.createElement(Fc,{className:"recharts-brush-texts"},X.createElement(Jv,yE({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+i/2},s),this.getTextOfTick(e)),X.createElement(Jv,yE({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=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||!ec(i)||!ec(o)||!ec(a)||!ec(c)||a<=0||c<=0)return null;var v=li("recharts-brush",r),g=1===X.Children.count(n),m=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=pE.reduce((function(t,n){return fE(fE({},t),{},hE({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return X.createElement(Fc,{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())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return X.createElement(X.Fragment,null,X.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),X.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),X.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return X.isValidElement(t)?X.cloneElement(t,r):Fi(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return gE({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=Mg().domain(uE(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(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&mE(r.prototype,n),i&&mE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();jE(ME,"displayName","Brush"),jE(ME,"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 EE=fd;var kE=ls,_E=dp,TE=function(t,e){var r;return EE(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r},CE=si,DE=Yd;var NE=_n((function(t,e,r){var n=CE(t)?kE:TE;return r&&DE(t,e,r)&&(e=void 0),n(t,_E(e))})),IE=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},BE=Nd;var LE=function(t,e,r){"__proto__"==e&&BE?BE(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},RE=LE,$E=ld,zE=dp;var HE=function(t,e){var r={};return e=zE(e),$E(t,(function(t,n,i){RE(r,n,e(t,n,i))})),r},FE=_n(HE);var UE=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0},VE=fd;var qE=UE,WE=function(t,e){var r=!0;return VE(t,(function(t,n,i){return r=!!e(t,n,i)})),r},XE=dp,YE=si,KE=Yd;var GE=_n((function(t,e,r){var n=YE(t)?qE:WE;return r&&KE(t,e,r)&&(e=void 0),n(t,XE(e))})),ZE=["x","y"];function JE(t){return JE="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},JE(t)}function QE(){return QE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},QE.apply(this,arguments)}function tk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ek(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tk(Object(r),!0).forEach((function(e){rk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function rk(t,e,r){return e=function(t){var e=function(t,e){if("object"!=JE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=JE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==JE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function ik(t,e){var r=t.x,n=t.y,i=nk(t,ZE),o="".concat(r),a=parseInt(o,10),c="".concat(n),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 ek(ek(ek(ek(ek({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:h,name:e.name,radius:e.radius})}function ok(t){return X.createElement(XM,QE({shapeType:"rectangle",propTransformer:ik,activeClassName:"recharts-active-bar"},t))}var ak,ck=["value","background"];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 lk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function sk(){return sk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},sk.apply(this,arguments)}function fk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function hk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fk(Object(r),!0).forEach((function(e){bk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function pk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,wk(n.key),n)}}function dk(t,e,r){return e=vk(e),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 gk(t)}(t,yk()?Reflect.construct(e,r||[],vk(t).constructor):e.apply(t,r))}function yk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(yk=function(){return!!t})()}function vk(t){return vk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vk(t)}function gk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}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,e,r){return(e=wk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function wk(t){var e=function(t,e){if("object"!=uk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=uk(n))return n;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 xk=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return bk(gk(t=dk(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),bk(gk(t),"id",ic("recharts-bar-")),bk(gk(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),bk(gk(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}var r,n,i;return 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)}(e,G),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=Tc(this.props,!1);return t&&t.map((function(t,r){var u=r===o,l=u?a:n,s=hk(hk(hk({},c),t),{},{isActive:u,option:l,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return X.createElement(Fc,sk({className:"recharts-bar-rectangle"},vc(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),X.createElement(ok,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return X.createElement(YP,{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=r.map((function(t,e){var r=l&&l[e];if(r){var o=cc(r.x,t.x),a=cc(r.y,t.y),c=cc(r.width,t.width),u=cc(r.height,t.height);return hk(hk({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var s=cc(0,t.height)(i);return hk(hk({},t),{},{y:t.y+t.height-s,height:s})}var f=cc(0,t.width)(i);return hk(hk({},t),{},{width:f})}));return X.createElement(Fc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&rO(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=Tc(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=lk(e,ck);if(!a)return null;var u=hk(hk(hk(hk(hk({},c),{},{fill:"#eee"},a),o),vc(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return X.createElement(ok,sk({option:t.props.background,isActive:r===i},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=Pc(r.children,pS);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:AS(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return X.createElement(Fc,s,c.map((function(t){return X.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=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||!r||!r.length)return null;var p=this.state.isAnimationFinished,d=li("recharts-bar",n),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,g=y||v,m=Ba(h)?this.id:h;return X.createElement(Fc,{className:d},y||v?X.createElement("defs",null,X.createElement("clipPath",{id:"clipPath-".concat(m)},X.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,X.createElement(Fc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||p)&&Tj.renderCallByParent(this.props,r))}}],i=[{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&&pk(r.prototype,n),i&&pk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();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 Sk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mk(n.key),n)}}function jk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ak(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?jk(Object(r),!0).forEach((function(e){Pk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):jk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pk(t,e,r){return(e=Mk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mk(t){var e=function(t,e){if("object"!=Ok(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Ok(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Ok(e)?e:String(e)}ak=xk,bk(xk,"displayName","Bar"),bk(xk,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Py.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),bk(xk,"getComposedData",(function(t){var e=t.props,r=t.item,n=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 r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!p)return null;var d=e.layout,y=r.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,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:b}),O=Pc(g,yv),S=f.map((function(t,e){var n,f,h,y,g,b;l?n=function(t,e){if(!e||2!==e.length||!ec(e[0])||!ec(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!ec(t[0])||t[0]<r)&&(i[0]=r),(!ec(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(l[s+e],w):(n=AS(t,v),Array.isArray(n)||(n=[x,n]));var S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?cS(!1,"minPointSize callback function received a value with type of ".concat(JE(r),". Currently only numbers are supported.")):cS(!1)),e)}}(m,ak.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var j,A=[a.scale(n[0]),a.scale(n[1])],P=A[0],M=A[1];f=RS({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:t,index:e}),h=null!==(j=null!=M?M:P)&&void 0!==j?j:void 0,y=p.size;var E=P-M;if(g=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:y,height:a.height},Math.abs(S)>0&&Math.abs(g)<Math.abs(S)){var k=Qa(g||S)*(Math.abs(S)-Math.abs(g));h-=k,g+=k}}else{var _=[o.scale(n[0]),o.scale(n[1])],T=_[0],C=_[1];if(f=T,h=RS({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:t,index:e}),y=C-T,g=p.size,b={x:o.x,y:h,width:o.width,height:g},Math.abs(S)>0&&Math.abs(y)<Math.abs(S))y+=Qa(y||S)*(Math.abs(S)-Math.abs(y))}return hk(hk(hk({},t),{},{x:f,y:h,width:y,height:g,value:l?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[qS(r,t)],tooltipPosition:{x:f+y/2,y:h+g/2}})}));return hk({data:S,layout:d},h)}));var Ek=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!Mc(u,xk);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?r.height:r.width;if("gap"===y.padding&&(u=P*M/2),"no-gap"===y.padding){var E=oc(t.barCategoryGap,P*M),k=P*M/2;u=k-E-(k-E)/M*E}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var _=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:Ag(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Km(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Mg(),realScaleType:"point"}:"category"===i?{scale:Ag(),realScaleType:"band"}:{scale:Km(),realScaleType:"linear"};if(Ha(n)){var c="scale".concat(bu(n));return{scale:(Nx[c]||Mg)(),realScaleType:Nx[c]?c:"point"}}return Fi(n)?{scale:n}:{scale:Mg(),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 r=e.length,n=t.range(),i=Math.min(n[0],n[1])-NS,o=Math.max(n[0],n[1])+NS,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(T);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain();if(!u.length)return null;var l=nS(u,i,a);return t.domain([Wx(l),Hx(l)]),{niceTicks:l}}if(i&&"number"===n){var s=t.domain();return{niceTicks:iS(s,i,a)}}return null}(T,Ak(Ak({},y),{},{realScaleType:C}));"xAxis"===n?(d="top"===v&&!w||"bottom"===v&&w,h=r.left,p=s[O]-d*y.height):"yAxis"===n&&(d="left"===v&&!w||"right"===v&&w,h=s[O]-d*y.width,p=r.top);var N=Ak(Ak(Ak({},y),D),{},{realScaleType:C,x:h,y:p,scale:T,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return N.bandSize=US(N,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(d?-1:1)*N.width):s[O]+=(d?-1:1)*N.height,Ak(Ak({},o),{},Pk({},a,N))}),{})},kk=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},_k=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,r,n;return e=t,r=[{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]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){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(r){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(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&Sk(e.prototype,r),n&&Sk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();Pk(_k,"EPS",1e-4);var Tk=function(t){var e=Object.keys(t).reduce((function(e,r){return Ak(Ak({},e),{},Pk({},r,_k.create(t[r])))}),{});return Ak(Ak({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return FE(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return GE(t,(function(t,r){return e[r].isInRange(t)}))}})};var Ck=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)},Dk=ua((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function Nk(t){return Nk="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},Nk(t)}var Ik=ct(void 0),Bk=ct(void 0),Lk=ct(void 0),Rk=ct({}),$k=ct(void 0),zk=ct(0),Hk=ct(0),Fk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,u=t.height,l=Dk(i);return X.createElement(Ik.Provider,{value:r},X.createElement(Bk.Provider,{value:n},X.createElement(Rk.Provider,{value:i},X.createElement(Lk.Provider,{value:l},X.createElement($k.Provider,{value:o},X.createElement(zk.Provider,{value:u},X.createElement(Hk.Provider,{value:c},a)))))))};function Uk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var Vk=function(t){var e=at(Ik);null==e&&("production"!==process.env.NODE_ENV?cS(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):cS(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?cS(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Nk(t),"]. ").concat(Uk(e))):cS(!1)),r},qk=function(t){var e=at(Bk);null==e&&("production"!==process.env.NODE_ENV?cS(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):cS(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?cS(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Nk(t),"]. ").concat(Uk(e))):cS(!1)),r},Wk=function(){return at(Hk)},Xk=function(){return at(zk)};function Yk(t){return Yk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yk(t)}function Kk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Gk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kk(Object(r),!0).forEach((function(e){Zk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zk(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Yk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Yk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Yk(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Jk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 Qk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qk(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 Qk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function t_(){return t_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},t_.apply(this,arguments)}function e_(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=at($k),s=Vk(i),f=qk(o),h=at(Lk);if(!l||!h)return null;Vc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=function(t,e,r,n,i,o,a,c,u){var l=i.x,s=i.y,f=i.width,h=i.height;if(r){var p=u.y,d=t.y.apply(p,{position:o});if(IE(u,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===c?y.reverse():y}if(e){var v=u.x,g=t.x.apply(v,{position:o});if(IE(u,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:s+h},{x:g,y:s}];return"top"===a?m.reverse():m}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:o})}));return IE(u,"discard")&&NE(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(Tk({x:s.scale,y:f.scale}),rc(e),rc(r),n&&2===n.length,h,t.position,s.orientation,f.orientation,t);if(!p)return null;var d=Jk(p,2),y=d[0],v=y.x,g=y.y,m=d[1],b=m.x,w=m.y,x=Gk(Gk({clipPath:IE(t,"hidden")?"url(#".concat(l,")"):void 0},Tc(t,!0)),{},{x1:v,y1:g,x2:b,y2:w});return X.createElement(Fc,{className:li("recharts-reference-line",c)},function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Fi(t)?t(e):X.createElement("line",t_({},e,{className:"recharts-reference-line-line"}))}(a,x),vj.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return kk({x:e,y:r},{x:n,y:i})}({x1:v,y1:g,x2:b,y2:w})))}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 n_(){return n_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},n_.apply(this,arguments)}function i_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i_(Object(r),!0).forEach((function(e){a_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=r_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=r_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}e_.displayName="ReferenceLine",e_.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function c_(t){var e=t.x,r=t.y,n=t.r,i=t.alwaysShow,o=t.clipPathId,a=rc(e),c=rc(r);if(Vc(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,r=t.y,n=t.xAxis,i=t.yAxis,o=Tk({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return IE(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=o_(o_({clipPath:IE(t,"hidden")?"url(#".concat(o,")"):void 0},Tc(t,!0)),{},{cx:l,cy:s});return X.createElement(Fc,{className:li("recharts-reference-dot",h)},c_.renderDot(f,p),vj.renderCallByParent(t,{x:l-n,y:s-n,width:2*n,height:2*n}))}function u_(t){return u_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u_(t)}function l_(){return l_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l_.apply(this,arguments)}function s_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s_(Object(r),!0).forEach((function(e){h_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=u_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=u_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==u_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}c_.displayName="ReferenceDot",c_.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},c_.renderDot=function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Fi(t)?t(e):X.createElement(cM,n_({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};function p_(t){var e=t.x1,r=t.x2,n=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,c=t.clipPathId;Vc(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=rc(e),l=rc(r),s=rc(n),f=rc(i),h=t.shape;if(!(u||l||s||f||h))return null;var p=function(t,e,r,n,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=Tk({x:l.scale,y:s.scale}),h={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},p={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!IE(i,"discard")||f.isInRange(h)&&f.isInRange(p)?kk(h,p):null}(u,l,s,f,t);if(!p&&!h)return null;var d=IE(t,"hidden")?"url(#".concat(c,")"):void 0;return X.createElement(Fc,{className:li("recharts-reference-area",o)},p_.renderRect(h,f_(f_({clipPath:d},Tc(t,!0)),p)),vj.renderCallByParent(t,p))}function d_(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e){if(void 0!==r&&!0!==r(t[i]))return;n.push(t[i])}return n}function y_(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function v_(t){return v_="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},v_(t)}function g_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g_(Object(r),!0).forEach((function(e){b_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=v_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=v_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==v_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function w_(t,e,r){var n=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||!n)return[];if(ec(u)||Py.isSsr)return function(t,e){return d_(t,e+1)}(i,"number"==typeof u&&ec(u)?u:0);var h=[],p="top"===c||"bottom"===c?"width":"height",d=s&&"width"===p?Sv(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var i=Fi(l)?l(t.value,n):t.value;return"width"===p?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return Ck(n,r)}(Sv(i,{fontSize:e,letterSpacing:r}),d,f):Sv(i,{fontSize:e,letterSpacing:r})[p]},v=i.length>=2?Qa(i[1].coordinate-i[0].coordinate):1,g=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,v,p);return"equidistantPreserveStart"===u?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,h=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:d_(n,s)};var o,a=l,h=function(){return void 0===o&&(o=r(e,a)),o},p=e.coordinate,d=0===l||y_(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,r,n,i,o){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=n[c-1],f=r(s,c-1),h=t*(s.coordinate+t*f/2-l);a[c-1]=s=m_(m_({},s),{},{tickCoord:h>0?s.coordinate-h*t:s.coordinate}),y_(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=m_(m_({},s),{},{isShow:!0}))}for(var p=o?c-1:c,d=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-u);a[e]=o=m_(m_({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=m_(m_({},o),{},{tickCoord:o.coordinate});y_(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=m_(m_({},o),{},{isShow:!0}))},y=0;y<p;y++)d(y);return a}(v,g,y,i,a,"preserveStartEnd"===u):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,u=e.end,l=function(e){var n,l=o[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);o[e]=l=m_(m_({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=m_(m_({},l),{},{tickCoord:l.coordinate});y_(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=m_(m_({},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})))}p_.displayName="ReferenceArea",p_.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},p_.renderRect=function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Fi(t)?t(e):X.createElement(oM,l_({},e,{className:"recharts-reference-area-rect"}))};var x_=["viewBox"],O_=["viewBox"],S_=["ticks"];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_(){return A_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},A_.apply(this,arguments)}function P_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function M_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?P_(Object(r),!0).forEach((function(e){N_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):P_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function E_(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function k_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,I_(n.key),n)}}function __(t,e,r){return e=C_(e),function(t,e){if(e&&("object"===j_(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)}(t,T_()?Reflect.construct(e,r||[],C_(t).constructor):e.apply(t,r))}function T_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(T_=function(){return!!t})()}function C_(t){return C_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},C_(t)}function D_(t,e){return D_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},D_(t,e)}function N_(t,e,r){return(e=I_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function I_(t){var e=function(t,e){if("object"!=j_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=j_(n))return n;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 B_=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=__(this,e,[t])).state={fontSize:"",letterSpacing:""},r}var r,n,i;return 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&&D_(t,e)}(e,ut),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=E_(t,x_),i=this.props,o=i.viewBox,a=E_(i,O_);return!lc(r,o)||!lc(n,a)||!lc(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,r,n,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=ec(t.tickCoord)?t.tickCoord:t.coordinate;switch(h){case"top":e=r=t.coordinate,a=(n=(i=l+ +!d*f)-v*g)-v*y,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=u+ +!d*s)-v*g)-v*y,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=u+ +d*s)+v*g)+v*y,a=m;break;default:e=r=t.coordinate,a=(n=(i=l+ +d*f)+v*g)+v*y,o=m}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,u=M_(M_(M_({},Tc(this.props,!1)),Tc(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=M_(M_({},u),{},{x1:e,y1:r+l*i,x2:e+n,y2:r+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=M_(M_({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return X.createElement("line",A_({},u,{className:li("recharts-cartesian-axis-line",Ia(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,s=o.unit,f=w_(M_(M_({},this.props),{},{ticks:t}),r,n),h=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=Tc(this.props,!1),y=Tc(u,!1),v=M_(M_({},d),{},{fill:"none"},Tc(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=M_(M_(M_(M_({textAnchor:h,verticalAnchor:p},d),{},{stroke:"none",fill:c},y),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return X.createElement(Fc,A_({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},vc(i.props,t,r)),a&&X.createElement("line",A_({},v,o,{className:li("recharts-cartesian-axis-tick-line",Ia(a,"className"))})),u&&e.renderTickItem(u,m,"".concat(Fi(l)?l(t.value,r):t.value).concat(s||"")))}));return X.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=E_(c,S_),s=u;return Fi(o)&&(s=u&&u.length>0?o(this.props):o(l)),n<=0||i<=0||!s||!s.length?null:X.createElement(Fc,{className:li("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),vj.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return X.isValidElement(t)?X.cloneElement(t,e):Fi(t)?t(e):X.createElement(Jv,A_({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&k_(r.prototype,n),i&&k_(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();N_(B_,"displayName","CartesianAxis"),N_(B_,"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 L_=["type","layout","connectNulls","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 $_(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function z_(){return z_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},z_.apply(this,arguments)}function H_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function F_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?H_(Object(r),!0).forEach((function(e){Z_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):H_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function U_(t){return function(t){if(Array.isArray(t))return V_(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 V_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return V_(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 V_(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function q_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,J_(n.key),n)}}function W_(t,e,r){return e=Y_(e),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 K_(t)}(t,X_()?Reflect.construct(e,r||[],Y_(t).constructor):e.apply(t,r))}function X_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(X_=function(){return!!t})()}function Y_(t){return Y_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Y_(t)}function K_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function G_(t,e){return G_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},G_(t,e)}function Z_(t,e,r){return(e=J_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J_(t){var e=function(t,e){if("object"!=R_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=R_(n))return n;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 Q_=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Z_(K_(t=W_(this,e,[].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),Z_(K_(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),Z_(K_(t),"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,u=n-r,l=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){l=[].concat(U_(i.slice(0,s)),[c-f]);break}var h=l.length%2==0?[0,u]:[u];return[].concat(U_(e.repeat(i,a)),U_(l),h).map((function(t){return"".concat(t,"px")})).join(", ")})),Z_(K_(t),"id",ic("recharts-line-")),Z_(K_(t),"pathRef",(function(e){t.mainCurve=e})),Z_(K_(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),Z_(K_(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&G_(t,e)}(e,G),r=e,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 r=this.props,n=r.points,i=r.xAxis,o=r.yAxis,a=r.layout,c=Pc(r.children,pS);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:AS(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return X.createElement(Fc,l,c.map((function(t){return X.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,u=Tc(this.props,!1),l=Tc(o,!0),s=a.map((function(t,r){var n=F_(F_(F_({key:"dot-".concat(r),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return X.createElement(Fc,z_({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var u=$_(i,L_),l=F_(F_(F_({},Tc(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return X.createElement(lA,z_({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,h=n.width,p=n.height,d=this.state,y=d.prevPoints,v=d.totalLength;return X.createElement(YP,{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(n){var a=n.t;if(y){var c=y.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],i=cc(n.x,t.x),o=cc(n.y,t.y);return F_(F_({},t),{},{x:i(a),y:o(a)})}if(f){var u=cc(2*h,t.x),l=cc(p/2,t.y);return F_(F_({},t),{},{x:u(a),y:l(a)})}return F_(F_({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=cc(0,v)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,v,d)}else l=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!rO(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=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(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=li("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=Ba(p)?this.id:p,x=null!==(t=Tc(n,!1))&&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=(_c(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return X.createElement(Fc,{className:v},g||m?X.createElement("defs",null,X.createElement("clipPath",{id:"clipPath-".concat(w)},X.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&&X.createElement("clipPath",{id:"clipPath-dots-".concat(w)},X.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||n)&&this.renderDots(b,M,w),(!h||d)&&Tj.renderCallByParent(this.props,i))}}],i=[{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 r=t.length%2!=0?[].concat(U_(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(U_(n),U_(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(X.isValidElement(t))r=X.cloneElement(t,e);else if(Fi(t))r=t(e);else{var n=li("recharts-line-dot",t?t.className:"");r=X.createElement(cM,z_({},e,{className:n}))}return r}}],n&&q_(r.prototype,n),i&&q_(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Z_(Q_,"displayName","Line"),Z_(Q_,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Py.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),Z_(Q_,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return F_({points:u.map((function(t,e){var u=AS(t,a);return"horizontal"===s?{x:LS({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:Ba(u)?null:n.scale(u),value:u,payload:t}:{x:Ba(u)?null:r.scale(u),y:LS({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var tT,eT=["layout","type","stroke","connectNulls","isRange","ref"];function rT(t){return rT="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},rT(t)}function nT(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function iT(){return iT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},iT.apply(this,arguments)}function oT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function aT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oT(Object(r),!0).forEach((function(e){pT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,dT(n.key),n)}}function uT(t,e,r){return e=sT(e),function(t,e){if(e&&("object"===rT(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return fT(t)}(t,lT()?Reflect.construct(e,r||[],sT(t).constructor):e.apply(t,r))}function lT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(lT=function(){return!!t})()}function sT(t){return sT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sT(t)}function fT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hT(t,e){return hT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},hT(t,e)}function pT(t,e,r){return(e=dT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function dT(t){var e=function(t,e){if("object"!=rT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=rT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==rT(e)?e:String(e)}var yT=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return pT(fT(t=uT(this,e,[].concat(n))),"state",{isAnimationFinished:!0}),pT(fT(t),"id",ic("recharts-area-")),pT(fT(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Fi(e)&&e()})),pT(fT(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Fi(e)&&e()})),t}var r,n,i;return 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&&hT(t,e)}(e,G),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=Tc(this.props,!1),f=Tc(c,!0),h=u.map((function(t,r){var n=aT(aT(aT({key:"dot-".concat(r),r:3},s),f),{},{dataKey:l,cx:t.x,cy:t.y,index:r,value:t.value,payload:t.payload});return e.renderDotItem(c,n)})),p={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return X.createElement(Fc,iT({className:"recharts-area-dots"},p),h)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),u=Hx(n.map((function(t){return t.y||0})));return ec(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Hx(r.map((function(t){return t.y||0}))),u)),ec(u)?X.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,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),u=Hx(n.map((function(t){return t.x||0})));return ec(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(Hx(r.map((function(t){return t.x||0}))),u)),ec(u)?X.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,r,n){var i=this.props,o=i.layout,a=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var s=nT(i,eT);return X.createElement(Fc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},X.createElement(lA,iT({},Tc(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&X.createElement(lA,iT({},Tc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&X.createElement(lA,iT({},Tc(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,h=f.prevPoints,p=f.prevBaseLine;return X.createElement(YP,{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(n){var a=n.t;if(h){var c,u=h.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*u);if(h[r]){var n=h[r],i=cc(n.x,t.x),o=cc(n.y,t.y);return aT(aT({},t),{},{x:i(a),y:o(a)})}return t}));return c=ec(o)&&"number"==typeof o?cc(p,o)(a):Ba(o)||Ja(o)?cc(p,0)(a):o.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],i=cc(n.x,t.x),o=cc(n.y,t.y);return aT(aT({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return X.createElement(Fc,null,X.createElement("defs",null,X.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),X.createElement(Fc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return o&&n&&n.length&&(!c&&l>0||!rO(c,n)||!rO(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=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(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=li("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=Ba(p)?this.id:p,x=null!==(t=Tc(n,!1))&&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=(_c(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return X.createElement(Fc,{className:v},g||m?X.createElement("defs",null,X.createElement("clipPath",{id:"clipPath-".concat(w)},X.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&&X.createElement("clipPath",{id:"clipPath-dots-".concat(w)},X.createElement("rect",{x:c-E/2,y:a-E/2,width:s+E,height:f+E}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,M,w),(!h||d)&&Tj.renderCallByParent(this.props,i))}}],i=[{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&&cT(r.prototype,n),i&&cT(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function vT(){return vT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},vT.apply(this,arguments)}tT=yT,pT(yT,"displayName","Area"),pT(yT,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Py.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),pT(yT,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(ec(c)&&"number"==typeof c)return c;var u="horizontal"===i?n:r,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]})),pT(yT,"getComposedData",(function(t){var e,r=t.props,n=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=r.layout,y=s&&s.length,v=tT.getBaseValue(r,n,i,o),g="horizontal"===d,m=!1,b=h.map((function(t,e){var r;y?r=s[f+e]:(r=AS(t,l),Array.isArray(r)?m=!0:r=[v,r]);var n=null==r[1]||y&&null==AS(t,l);return g?{x:LS({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:LS({axis:o,ticks:c,bandSize:u,entry:t,index:e}),value:r,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),aT({points:b,baseLine:e,layout:d,isRange:m},p)})),pT(yT,"renderDotItem",(function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Fi(t)?t(e):X.createElement(cM,iT({},e,{className:"recharts-area-dot"}))}));var gT=function(t){var e=t.xAxisId,r=Wk(),n=Xk(),i=Vk(e);return null==i?null:X.createElement(B_,vT({},i,{className:li("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return TS(t,!0)}}))};function mT(){return mT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},mT.apply(this,arguments)}gT.displayName="XAxis",gT.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 bT=function(t){var e=t.yAxisId,r=Wk(),n=Xk(),i=qk(e);return null==i?null:X.createElement(B_,mT({},i,{className:li("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return TS(t,!0)}}))};function wT(t){return function(t){if(Array.isArray(t))return xT(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 xT(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xT(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 xT(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}bT.displayName="YAxis",bT.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 OT=function(t,e,r,n,i){var o=Pc(t,e_),a=Pc(t,c_),c=[].concat(wT(o),wT(a)),u=Pc(t,p_),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&IE(e.props,"extendDomain")&&ec(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var h="".concat(s,"1"),p="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&IE(e.props,"extendDomain")&&ec(e.props[h])&&ec(e.props[p])){var n=e.props[h],i=e.props[p];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return ec(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},ST={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),u=r?r+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 n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,i,o,a){var c=r?r+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,n),!0;case 4:return s.fn.call(s.context,e,n,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,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,n);break;case 4:s[l].fn.call(s[l].context,e,n,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,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+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||n&&c.context!==n||a(this,o);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||i&&!c[u].once||n&&c[u].context!==n)&&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=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(ST);var jT=new(_n(ST.exports)),AT="recharts.syncMouseEvents";function PT(t){return PT="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},PT(t)}function MT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,kT(n.key),n)}}function ET(t,e,r){return(e=kT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kT(t){var e=function(t,e){if("object"!=PT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=PT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==PT(e)?e:String(e)}var _T=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ET(this,"activeIndex",0),ET(this,"coordinateList",[]),ET(this,"layout","horizontal")}var e,r,n;return e=t,r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f: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:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,i=r.y,o=r.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=n+a+c,s=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}],r&&MT(e.prototype,r),n&&MT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function TT(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[JS(e,r,n,i),JS(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function CT(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return TT(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,h=JS(c,u,l,f),p=JS(c,u,s,f);n=h.x,i=h.y,o=p.x,a=p.y}return[{x:n,y:i},{x:o,y:a}]}function DT(t){return DT="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},DT(t)}function NT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function IT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?NT(Object(r),!0).forEach((function(e){BT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):NT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function BT(t,e,r){return e=function(t){var e=function(t,e){if("object"!=DT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=DT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==DT(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function LT(t){var e,r=t.element,n=t.tooltipEventType,i=t.isActive,o=t.activeCoordinate,a=t.activePayload,c=t.offset,u=t.activeTooltipIndex,l=t.tooltipAxisBandSize,s=t.layout,f=t.chartName;if(!r||!r.props.cursor||!i||!o||"ScatterChart"!==f&&"axis"!==n)return null;var h=lA;if("ScatterChart"===f)e=o,h=yM;else if("BarChart"===f)e=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(s,o,c,l),h=oM;else if("radial"===s){var p=TT(o),d=p.cx,y=p.cy,v=p.radius;e={cx:d,cy:y,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:v,outerRadius:v},h=zj}else e={points:CT(s,o,c)},h=lA;var g=IT(IT(IT(IT({stroke:"#ccc",pointerEvents:"none"},c),e),Tc(r.props.cursor,!1)),{},{payload:a,payloadIndex:u,className:"recharts-tooltip-cursor"});return Y(r.props.cursor)?it(r.props.cursor,g):ot(h,g)}var RT=["item"],$T=["children","className","width","height","style","compact","title","desc"];function zT(t){return zT="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},zT(t)}function HT(){return HT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},HT.apply(this,arguments)}function FT(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||ZT(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 UT(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function VT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,rC(n.key),n)}}function qT(t,e,r){return e=XT(e),function(t,e){if(e&&("object"===zT(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return YT(t)}(t,WT()?Reflect.construct(e,r||[],XT(t).constructor):e.apply(t,r))}function WT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(WT=function(){return!!t})()}function XT(t){return XT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},XT(t)}function YT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function KT(t,e){return KT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},KT(t,e)}function GT(t){return function(t){if(Array.isArray(t))return JT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||ZT(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 ZT(t,e){if(t){if("string"==typeof t)return JT(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?JT(t,e):void 0}}function JT(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function QT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tC(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?QT(Object(r),!0).forEach((function(e){eC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):QT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function eC(t,e,r){return(e=rC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rC(t){var e=function(t,e){if("object"!=zT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zT(e)?e:String(e)}var nC={xAxis:["bottom","top"],yAxis:["left","right"]},iC={width:"100%",height:"100%"},oC={x:0,y:0};function aC(t){return t}var cC=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(GT(t),GT(r)):t}),[]);return o.length>0?o:t&&t.length&&ec(n)&&ec(i)?t.slice(n,i+1):[]};function uC(t){return"number"===t?[0,"auto"]:void 0}var lC=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=cC(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var u,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=uc(void 0===s?a:s,o.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(GT(i),[qS(c,l)]):i}),[])},sC=function(t,e,r,n){var i=n||{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,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.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?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,h=void 0;if(Qa(s-l)!==Qa(f-s)){var p=[];if(Qa(f-s)===Qa(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=n[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=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=lC(t,e,l,s),h=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return tC(tC(tC({},n),JS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=n.angle;return tC(tC(tC({},n),JS(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return oC}(r,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:h}}return null},fC=function(t,e){var r=e.axes,n=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=_S(l,i);return r.reduce((function(e,r){var p,d=r.props,y=d.type,v=d.dataKey,g=d.allowDataOverflow,m=d.allowDuplicatedCategory,b=d.scale,w=d.ticks,x=d.includeHidden,O=r.props[o];if(e[O])return e;var S,j,A,P=cC(t.data,{graphicalItems:n.filter((function(t){return t.props[o]===O})),dataStartIndex:c,dataEndIndex:u}),M=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&ec(n)&&ec(i))return!0}return!1})(r.props.domain,g,y)&&(S=FS(r.props.domain,null,g),!h||"number"!==y&&"auto"===b||(A=PS(P,v,"category")));var E=uC(y);if(!S||0===S.length){var k,_=null!==(k=r.props.domain)&&void 0!==k?k:E;if(v){if(S=PS(P,v,y),"category"===y&&h){var T=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);m&&T?(j=S,S=uE(0,M)):m||(S=VS(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(GT(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!Ba(t)})):VS(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Ba(e)?t:[].concat(GT(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,i){var o=e.map((function(e){return ES(t,e,r,i,n)})).filter((function(t){return!Ba(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,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),v,i,l);C&&(S=C)}!h||"number"!==y&&"auto"===b||(A=PS(P,v,"category"))}else S=h?uE(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:$S(a[O].stackGroups,c,u):kS(P,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),y,l,!0);if("number"===y)S=OT(s,S,O,i,w),_&&(S=FS(_,S,g));else if("category"===y&&_){var D=_;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return tC(tC({},e),{},eC({},O,tC(tC({},r.props),{},{axisType:i,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(p=r.props.domain)&&void 0!==p?p:E,isCategorical:h,layout:l})))}),{})},hC=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Pc(l,i),h={};return f&&f.length?h=fC(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=cC(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),h=f.length,p=_S(l,i),d=-1;return r.reduce((function(t,e){var y,v=e.props[o],g=uC("number");return t[v]?t:(d++,p?y=uE(0,h):a&&a[v]&&a[v].hasStack?(y=$S(a[v].stackGroups,c,u),y=OT(s,y,v,i)):(y=FS(g,kS(f,r.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),y=OT(s,y,v,i)),tC(tC({},t),{},eC({},v,tC(tC({axisType:i},n.defaultProps),{},{hide:!0,orientation:Ia(nC,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:g,isCategorical:p,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),h},pC=function(t){var e=t.children,r=t.defaultShowTooltip,n=Mc(e,ME),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},dC=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"}},yC=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=Mc(l,ME),h=Mc(l,Qp),p=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:tC(tC({},t),{},eC({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:tC(tC({},t),{},eC({},n,Ia(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=tC(tC({},d),p),v=y.bottom;f&&(y.bottom+=f.props.height||ME.defaultProps.height),h&&e&&(y=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=mS({children:i,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,h=u.align,p=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===p)&&"center"!==h&&ec(t[h]))return xS(xS({},t),{},OS({},h,t[h]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===h)&&"middle"!==p&&ec(t[p]))return xS(xS({},t),{},OS({},p,t[p]+(f||0)))}return t}(y,0,r,e));var g=c-y.left-y.right,m=u-y.top-y.bottom;return tC(tC({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},vC=function(t){var e,r=t.chartName,n=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 r=e.graphicalItems,n=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=dC(s),y=d.numericAxisName,v=d.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=Oc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=g&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var i={},o=Object.keys(n),a=0,c=o.length;a<c;a++)for(var u=n[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 Oc(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:Ba(v)?e:v})}}return i}({barSize:l,stackGroups:n}),b=[];return r.forEach((function(r,l){var d=cC(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),g=r.props,w=g.dataKey,x=g.maxBarSize,O=r.props["".concat(y,"Id")],S=r.props["".concat(v,"Id")],j=u.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=r.props["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?cS(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):cS(!1));var u=a[c];return tC(tC({},t),{},eC(eC({},n.axisType,u),"".concat(n.axisType,"Ticks"),TS(u)))}),{}),A=j[v],P=j["".concat(v,"Ticks")],M=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(rc(r)){var n=e[r];if(n){var i=n.items.indexOf(t);return i>=0?n.stackedData[i]:null}}return null}(r,n[O].stackGroups),E=Oc(r.type).indexOf("Bar")>=0,k=US(A,P),_=[];if(E){var T,C,D=Ba(x)?p:x,N=null!==(T=null!==(C=US(A,P,!0))&&void 0!==C?C:D)&&void 0!==T?T:0;_=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var u,l=oc(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,h=n/c,p=o.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(c-1)*l)>=n&&(p-=(c-1)*l,l=0),p>=n&&h>0&&(f=!0,p=c*(h*=.9));var d={offset:((n-p)/2>>0)-l,size:0};u=o.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?h:e.barSize}},n=[].concat(SS(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var y=oc(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-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,r){var n=[].concat(SS(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:h,bandSize:N!==k?N:k,sizeList:m[S],maxBarSize:D}),N!==k&&(_=_.map((function(t){return tC(tC({},t),{},{position:tC(tC({},t.position),{},{offset:t.position.offset-N/2})})})))}var I,B,L=r&&r.type&&r.type.getComposedData;L&&b.push({props:tC(tC({},L(tC(tC({},j),{},{displayedData:d,props:t,dataKey:w,item:r,bandSize:k,barPosition:_,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},eC(eC(eC({key:r.key||"item-".concat(l)},y,j[y]),v,j[v]),"animationId",o)),childIndex:(I=r,B=t.children,Ac(B).indexOf(I)),item:r})})),b},p=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Ec({props:i}))return null;var l=i.children,f=i.layout,p=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=dC(f),g=v.numericAxisName,m=v.cateAxisName,b=Pc(l,n),w=function(t,e,r,n,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[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(rc(o)){var u=c.stackGroups[o]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[o]=u}else c.stackGroups[ic("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return xS(xS({},t),{},OS({},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 xS(xS({},e),{},OS({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:BS(t,a.items,i)}))}),{})),xS(xS({},e),{},OS({},o,c))}),{})}(d,b,"".concat(g,"Id"),"".concat(m,"Id"),p,y),x=u.reduce((function(t,e){var r="".concat(e.axisType,"Map");return tC(tC({},t),{},eC({},r,hC(i,tC(tC({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=yC(tC(tC({},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",""),r)}));var S,j,A=x["".concat(m,"Map")],P=(S=ac(A),{tooltipTicks:j=TS(S,!1,!0),orderedTooltipTicks:Jd(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:US(S,j)}),M=h(i,tC(tC({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:O}));return tC(tC({formattedGraphicalItems:M,graphicalItems:b,offset:O,stackGroups:w},P),x)};return e=function(t){function e(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),eC(YT(o=qT(this,e,[t])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),eC(YT(o),"accessibilityManager",new _T),eC(YT(o),"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(tC({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},tC(tC({},o.state),{},{legendBBox:t}))))}})),eC(YT(o),"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),eC(YT(o),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return tC({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),eC(YT(o),"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=tC(tC({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;Fi(n)&&n(r,t)}})),eC(YT(o),"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?tC(tC({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;Fi(n)&&n(r,t)})),eC(YT(o),"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),eC(YT(o),"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),eC(YT(o),"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),eC(YT(o),"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;Fi(r)&&r(e,t)})),eC(YT(o),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&xc[e]?xc[e]:null}(t),n=Ia(o.props,"".concat(r));r&&Fi(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),eC(YT(o),"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=tC(tC({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;Fi(n)&&n(r,t)}})),eC(YT(o),"handleMouseDown",(function(t){var e=o.props.onMouseDown;Fi(e)&&e(o.getMouseInfo(t),t)})),eC(YT(o),"handleMouseUp",(function(t){var e=o.props.onMouseUp;Fi(e)&&e(o.getMouseInfo(t),t)})),eC(YT(o),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),eC(YT(o),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),eC(YT(o),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),eC(YT(o),"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&jT.emit(AT,o.props.syncId,t,o.eventEmitterSymbol)})),eC(YT(o),"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(tC({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=o.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var y=0;y<d.length;y++)if(d[y].value===t.activeLabel){s=y;break}}var v=tC(tC({},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=lC(o.state,o.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:g,y:"horizontal"===r?m:d[s].coordinate}:oC;o.setState(tC(tC({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),eC(YT(o),"renderCursor",(function(t){var e,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:i,p=o.props.layout,d=t.key||"_recharts-cursor";return X.createElement(LT,{key:d,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:r,element:t,isActive:h,layout:p,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),eC(YT(o),"renderPolarAxis",(function(t,e,r){var n=Ia(t,"type.axisType"),i=Ia(o.state,"".concat(n,"Map")),a=i&&i[t.props["".concat(n,"Id")]];return it(t,tC(tC({},a),{},{className:n,key:t.key||"".concat(e,"-").concat(r),ticks:TS(a,!0)}))})),eC(YT(o),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=ac(c),s=ac(u),f=s.cx,h=s.cy,p=s.innerRadius,d=s.outerRadius;return it(t,{polarAngles:Array.isArray(n)?n:TS(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:TS(l,!0).map((function(t){return t.coordinate})),cx:f,cy:h,innerRadius:p,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),eC(YT(o),"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),u=mS({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=UT(u,RT);return it(s,tC(tC({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),eC(YT(o),"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=Mc(r,Ry);if(!i)return null;var a=o.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,h=null!==(t=i.props.active)&&void 0!==t?t:c;return it(i,{viewBox:tC(tC({},f),{},{x:f.left,y:f.top}),active:h,label:s,payload:h?l:[],coordinate:u,accessibilityLayer:n})})),eC(YT(o),"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,l=i.updateId;return it(t,{key:t.key||"_recharts-brush",onChange:DS(o.handleBrushChange,t.props.onChange),data:n,x:ec(t.props.x)?t.props.x:a.left,y:ec(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:ec(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),eC(YT(o),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=YT(o).clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,l=t.props,s=l.xAxisId,f=l.yAxisId;return it(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[s],yAxis:c[f],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),eC(YT(o),"renderActivePoints",(function(t){var r=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],u=r.props.key,l=r.item.props,s=l.activeDot,f=tC(tC({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:MS(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(u,"-activePoint-").concat(o)},Tc(s,!1)),yc(s));return c.push(e.renderActiveDot(s,f)),i?c.push(e.renderActiveDot(s,tC(tC({},f),{},{cx:i.x,cy:i.y,key:"".concat(u,"-basePoint-").concat(o)}))):a&&c.push(null),c})),eC(YT(o),"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=Mc(o.props.children,Ry),h=n.props,p=h.points,d=h.isRange,y=h.baseLine,v=n.item.props,g=v.activeDot,m=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:DS(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:DS(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:DS(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=it(t,tC(tC({},n.props),O));if(x){if(!(l>=0)){var j,A=(null!==(j=o.getItemByXY(o.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,P=A.item,M=void 0===P?t:P,E=A.childIndex,k=tC(tC(tC({},n.props),O),{},{activeIndex:E});return[it(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());_=uc(p,C,s),T=d&&y&&uc(y,C,s)}else _=null==p?void 0:p[l],T=d&&y&&y[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[it(t,tC(tC(tC({},n.props),O),{},{activeIndex:D})),null,null]}if(!Ba(_))return[S].concat(GT(o.renderActivePoints({item:n,activePoint:_,basePoint:T,childIndex:l,isRange:d})))}return d?[S,null,null]:[S,null]})),eC(YT(o),"renderCustomized",(function(t,e,r){return it(t,tC(tC({key:"recharts-customized-".concat(r)},o.props),o.state))})),eC(YT(o),"renderMap",{CartesianGrid:{handler:aC,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:aC},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:aC},YAxis:{handler:aC},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:ic("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=cv(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}var n,i,a;return 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&&KT(t,e)}(e,ut),n=e,i=[{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}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,o=Mc(e,Ry);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=lC(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},h=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));h&&(f=tC(tC({},f),h.props.points[a].tooltipPosition),u=h.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(p),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{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!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){Cc([Mc(t.children,Ry)],[Mc(this.props.children,Ry)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Mc(this.props.children,Ry);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,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).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=n.width/r.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=ac(l).scale,h=ac(s).scale,p=f&&f.invert?f.invert(o.chartX):null,d=h&&h.invert?h.invert(o.chartY):null;return tC(tC({},o),{},{xValue:p,yValue:d})}var y=sC(this.state,this.props.data,this.props.layout,c);return y?tC(tC({},o),y):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){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=ac(u);return ej({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Mc(t,Ry),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),tC(tC({},yc(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){jT.on(AT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){jT.removeListener(AT,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===Oc(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return X.createElement("defs",null,X.createElement("clipPath",{id:t},X.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=FT(e,2),n=r[0],i=r[1];return tC(tC({},t),{},eC({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=FT(e,2),n=r[0],i=r[1];return tC(tC({},t),{},eC({},n,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,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,u=a.item,l=Oc(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return nM(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return ej(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(YM(a,n)||KM(a,n)||GM(a,n)){var h=tE({graphicalItem:a,activeTooltipItem:n,itemData:u.props.data}),p=void 0===u.props.activeIndex?h:u.props.activeIndex;return{graphicalItem:tC(tC({},a),{},{childIndex:p}),payload:GM(a,n)?u.props.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t,e=this;if(!Ec(this))return null;var r,n,i=this.props,o=i.children,a=i.className,c=i.width,u=i.height,l=i.style,s=i.compact,f=i.title,h=i.desc,p=UT(i,$T),d=Tc(p,!1);if(s)return X.createElement(Fk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},X.createElement(Rc,HT({},d,{width:c,height:u,title:f,desc:h}),this.renderClipPath(),Nc(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,d.role=null!==(n=this.props.role)&&void 0!==n?n:"application",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return X.createElement(Fk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},X.createElement("div",HT({className:li("recharts-wrapper",a),style:tC({position:"relative",cursor:"default",width:c,height:u},l)},y,{ref:function(t){e.container=t},role:null!==(t=d.role)&&void 0!==t?t:"region"}),X.createElement(Rc,HT({},d,{width:c,height:u,title:f,desc:h,style:iC}),this.renderClipPath(),Nc(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&VT(n.prototype,i),a&&VT(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(),eC(e,"displayName",r),eC(e,"defaultProps",tC({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),eC(e,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var h=pC(t);return tC(tC(tC({},h),{},{updateId:0},p(tC(tC({props:t},h),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!lc(l,e.prevMargin)){var d=pC(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=tC(tC({},sC(e,n,c)),{},{updateId:e.updateId+1}),g=tC(tC(tC({},d),y),v);return tC(tC(tC({},g),p(tC({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!Cc(i,e.prevChildren)){var m,b,w,x,O=Mc(i,ME),S=O&&null!==(m=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,A=S!==s||j!==f,P=!Ba(n)&&!A?e.updateId:e.updateId+1;return tC(tC({updateId:P},p(tC(tC({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:j})}return null})),eC(e,"renderActiveDot",(function(t,e){var r;return r=Y(t)?it(t,e):Fi(t)?t(e):X.createElement(cM,e),X.createElement(Fc,{className:"recharts-active-dot",key:e.key},r)})),e},gC=vC({chartName:"LineChart",GraphicalChild:Q_,axisComponents:[{axisType:"xAxis",AxisComp:gT},{axisType:"yAxis",AxisComp:bT}],formatAxisMap:Ek}),mC=vC({chartName:"AreaChart",GraphicalChild:yT,axisComponents:[{axisType:"xAxis",AxisComp:gT},{axisType:"yAxis",AxisComp:bT}],formatAxisMap:Ek});const bC=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",showTooltip:c=!1,isAnimated:u=!1,formatter:l,sampleRate:s,style:f})=>{const{isNetGain:h}=Hn({data:r,dataKey:n}),p=h?Vn.mint():Vn.coolElegance(),d=crypto.randomUUID(),y=s?Un({arr:r||[],n:s}):r,v={cursor:c?"crosshair":"default",...f};return e(dv,{width:i,minHeight:o,children:t(mC,{data:y,margin:{top:20,right:0,left:0,bottom:20},style:v,children:[e("defs",{children:t("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:p,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:p,stopOpacity:0})]})}),e(bT,{domain:["dataMin","dataMax"],hide:!0}),e(yT,{type:a,dataKey:n,stroke:p,fill:`url(#${d})`,isAnimationActive:u}),c&&e(Ry,{cursor:!1,formatter:l})]})})},wC=()=>{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})})},xC=({children:t,...r})=>e(f,{border:"solid 1px",borderColor:Vn.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),OC=({isSelected:t,children:r,...n})=>e(h,{paddingX:"1",fontSize:"sm",color:t?"brand.500":Vn.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),SC=({children:t,...r})=>e(p,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Vn.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),jC=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,errorMessage:u,label:l,labelPosition:s="left",spaceBetween:f,...h}=r;let p;return c||(p=e(wt,{})),t(d,{as:y,flexDir:"column",isInvalid:Boolean(u),isDisabled:i,isReadOnly:o,isRequired:a,...h,children:[t(y,{w:"full",justifyContent:f?"space-between":"auto",children:["left"===s&&e(v,{fontSize:n,m:"0",mr:"3",children:l}),e(g,{icon:p,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(u),size:n}),"right"===s&&e(v,{fontSize:n,m:"0",ml:"3",children:l})]}),e(y,{w:"full",children:u&&e(m,{size:n,children:u})})]})},AC=({children:t,onSubmit:r,...n})=>e(y,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var PC=function(){return PC=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},PC.apply(this,arguments)};function MC(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var EC=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},kC={k:1e3,m:1e6,b:1e9},_C=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,h=t.disableAbbreviations,p=void 0!==h&&h,d=t.prefix,y=void 0===d?"":d,v=t.transformRawValue,g=(void 0===v?function(t){return t}:v)(e);if("-"===g)return g;var m=p?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(EC(y),")")).test(g),w=RegExp("(\\d+)-?".concat(EC(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(EC(e),"g");return t.replace(r,"")}(y?x?g.replace(x,"").concat(O):g.replace(y,""):g,n),j=function(t,e){var r=EC(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,MC([n,o],m,!0)),A=j;if(!p){if(m.some((function(t){return t===j.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(EC(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=kC[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(j,o);P&&(A=String(P))}var M=b&&f?"-":"";if(o&&A.includes(o)){var E=j.split(o),k=E[0],_=E[1],T=l&&_?_.slice(0,l):_,C=c?"".concat(o).concat(T):"";return"".concat(M).concat(k).concat(C)}return"".concat(M).concat(A)},TC=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(EC(n)).concat(EC(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},CC=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(EC(a),"?"):"","\\d")).test(e),s="."!==r?DC(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:i||0,maximumFractionDigits:20},h=(n?new Intl.NumberFormat(n.locale,n.currency?PC(PC({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),p=NC(h,t),d=TC(p,PC({},t)),y=e.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&v&&r&&(p=p.includes(r)?p.replace(RegExp("(\\d+)(".concat(EC(r),")(\\d+)"),"g"),"$1$2".concat(v)):d&&!u?p.replace(d,"".concat(r).concat(v).concat(d)):"".concat(p).concat(r).concat(v)),u&&y?"".concat(p).concat(y).concat(u):d&&y?p.replace(d,"".concat(y).concat(d)):d&&u?p.replace(d,"".concat(y).concat(u)):[p,y,u].join("")},DC=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(EC(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},NC=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?MC(MC([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:MC(MC([],t,!0),[l],!1):"group"===u?c?t:MC(MC([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==o&&0===o?t:MC(MC([],t,!0),[void 0!==i?i:l],!1):MC(MC([],t,!0),"fraction"===u?[void 0!==o?l.slice(0,o):l]:[l],!1)}),[""]).join("")},IC={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},BC=function(t){return RegExp(/\d/,"gi").test(t)},LC=Z((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,h=t.disabled,p=void 0!==h&&h,d=t.maxLength,y=t.value,v=t.onValueChange,g=t.fixedDecimalLength,m=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,j=t.min,A=t.max,P=t.disableGroupSeparators,M=void 0!==P&&P,E=t.disableAbbreviations,k=void 0!==E&&E,_=t.decimalSeparator,T=t.groupSeparator,C=t.onChange,D=t.onFocus,N=t.onBlur,I=t.onKeyDown,B=t.onKeyUp,L=t.transformRawValue,R=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue"]);if(_&&BC(_))throw new Error("decimalSeparator cannot be a number");if(T&&BC(T))throw new Error("groupSeparator cannot be a number");var $=nt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?PC(PC({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?PC(PC({},t),{groupSeparator:e.value}):"decimal"===e.type?PC(PC({},t),{decimalSeparator:e.value}):t}),IC)}(O)}),[O]),z=_||$.decimalSeparator||"",H=T||$.groupSeparator||"";if(z&&H&&z===H&&!1===M)throw new Error("decimalSeparator cannot be the same as groupSeparator");var F={decimalSeparator:z,groupSeparator:H,disableGroupSeparators:M,intlConfig:O,prefix:w||$.prefix,suffix:x},U={decimalSeparator:z,groupSeparator:H,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||$.prefix,transformRawValue:L},V=tt((function(){return null!=f?CC(PC(PC({},F),{decimalScale:b,value:String(f)})):null!=y?CC(PC(PC({},F),{decimalScale:b,value:String(y)})):""})),q=V[0],W=V[1],Y=tt(!1),K=Y[0],G=Y[1],Z=tt(0),et=Z[0],it=Z[1],ot=tt(0),at=ot[0],ct=ot[1],ut=tt(null),lt=ut[0],st=ut[1],ft=J(null);Q(e,(function(){return ft.current}));var ht=function(t,e){G(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var u=r.split("");return"Backspace"===n&&i[a]===o&&(u.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:lt,stateValue:q,groupSeparator:H}),n=r.modifiedValue,i=r.cursorPosition,o=_C(PC({value:n},U));if(!(d&&o.replace(/-/g,"").length>d)){if(""===o||"-"===o||o===z)return v&&v(void 0,c,{float:null,formatted:"",value:""}),W(o),void it(1);var a=z?o.replace(z,"."):o,u=parseFloat(a),l=CC(PC({value:o},F));if(null!=i){var s=i+(l.length-t.length);s=s<=0?w?w.length:0:s,it(s),ct(at+1)}if(W(l),v)v(o,c,{float:u,formatted:l,value:o})}};rt((function(){null==y&&null==f&&W("")}),[f,y]),rt((function(){K&&"-"!==q&&ft.current&&document.activeElement===ft.current&&ft.current.setSelectionRange(et,et)}),[q,et,ft,K,at]);var pt=PC({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;ht(r,n),C&&C(t)},onBlur:function(t){var e=t.target.value,r=_C(PC({value:e},U));if("-"===r||r===z||!r)return W(""),void(N&&N(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,z,g),i=function(t,e,r){if(void 0===e&&(e="."),void 0===r||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,z,void 0!==b?b:g),o=parseFloat(i.replace(z,".")),a=CC(PC(PC({},F),{value:i}));v&&v(i,c,{float:o,formatted:a,value:i}),W(a),N&&N(t)},onFocus:function(t){return D&&D(t),q?q.length:0},onKeyDown:function(t){var e=t.key;if(st(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),it(q.length);var r=parseFloat(null!=y?String(y).replace(z,"."):_C(PC({value:q},U)))||0,n="ArrowUp"===e?r+S:r-S;if(void 0!==j&&n<Number(j))return;if(void 0!==A&&n>Number(A))return;var i=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;ht(String(i?n.toFixed(i):n).replace(".",z))}I&&I(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==q){var n=TC(q,{groupSeparator:H,decimalSeparator:z});if(n&&r&&r>q.length-n.length&&ft.current){var i=q.length-n.length;ft.current.setSelectionRange(i,i)}}B&&B(t)},placeholder:m,disabled:p,value:null==y||"-"===q||z&&q===z?q:CC(PC(PC({},F),{decimalScale:K?void 0:b,value:String(y)})),ref:ft},R);if(l){var dt=l;return X.createElement(dt,PC({},pt))}return X.createElement("input",PC({},pt))}));LC.displayName="CurrencyInput";const RC=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,spellCheck:c=!1,name:u,label:l,register:s,errorMessage:f,helperText:h,leftAddon:p,leftElement:y,rightAddon:g,rightElement:P,isCurrency:M,...E}=r,k=Fn(n),_=s?s(u):void 0,T=M?{as:LC,placeholder:"$0.00",prefix:"$",allowNegative:!1,disableAbbreviations:!0}:{};return t(d,{isInvalid:Boolean(f),isDisabled:i,isReadOnly:o,isRequired:a,children:[l&&e(v,{size:n,children:l}),t(b,{size:n,children:[p&&e(w,{bg:"transparent",children:p}),y&&e(x,{w:"auto",ml:"2",children:y}),e(O,{size:n,spellCheck:c,paddingLeft:y&&"2.25em",paddingRight:P&&"2.25em",..._,...T,...E}),P&&e(S,{w:"auto",mr:"2",children:P}),g&&e(j,{children:g})]}),f&&e(m,{size:n,children:f}),h&&e(A,{fontSize:k,children:h})]})};var $C=t=>null==t;var zC=t=>!$C(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),HC=t=>{const e=t.constructor&&t.constructor.prototype;return zC(e)&&e.hasOwnProperty("isPrototypeOf")},FC="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function UC(t){let e;const r=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(FC&&(t instanceof Blob||t instanceof FileList)||!r&&!zC(t))return t;if(e=r?[]:{},r||HC(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=UC(t[r]));else e=t}return e}var VC=t=>Array.isArray(t)?t.filter(Boolean):[],qC=t=>void 0===t,WC=(t,e,r)=>{if(!e||!zC(t))return r;const n=VC(e.split(/[,[\].]+?/)).reduce(((t,e)=>$C(t)?t:t[e]),t);return qC(n)||n===t?qC(t[e])?r:t[e]:n},XC=t=>"boolean"==typeof t;const YC="onBlur",KC="onChange",GC="onSubmit",ZC="onTouched",JC="all",QC="max",tD="min",eD="maxLength",rD="minLength",nD="pattern",iD="required",oD="validate",aD=X.createContext(null);var cD=t=>zC(t)&&!Object.keys(t).length,uD=t=>Array.isArray(t)?t:[t];var lD=t=>"string"==typeof t,sD=t=>/^\w*$/.test(t),fD=t=>VC(t.replace(/["|']|\]/g,"").split(/\.|\[/)),hD=(t,e,r)=>{let n=-1;const i=sD(e)?[e]:fD(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=zC(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}t[e]=o,t=t[e]}return t},pD=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},dD=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},yD=(t,e,r={})=>r.shouldFocus||qC(r.shouldFocus)?r.focusName||`${t}.${qC(r.focusIndex)?e:r.focusIndex}.`:"",vD=t=>({isOnSubmit:!t||t===GC,isOnBlur:t===YC,isOnChange:t===KC,isOnAll:t===JC,isOnTouch:t===ZC});const gD=(t,e,r,n)=>{for(const i of r||Object.keys(t)){const r=WC(t,i);if(r){const{_f:t,...o}=r;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],i)&&!n)break;if(t.ref&&e(t.ref,t.name)&&!n)break;gD(o,e)}else zC(o)&&gD(o,e)}}};var mD=(t,e,r)=>{const n=VC(WC(t,r));return hD(n,"root",e[r]),hD(t,r,n),t},bD=t=>lD(t),wD=t=>t instanceof RegExp;const xD={value:!1,isValid:!1},OD={value:!0,isValid:!0};const SD={isValid:!1,value:null};function jD(t,e,r="validate"){if(bD(t)||Array.isArray(t)&&t.every(bD)||XC(t)&&!t)return{type:r,message:bD(t)?t:"",ref:e}}var AD=t=>zC(t)&&!wD(t)?t:{value:t,message:""},PD=async(t,e,r,n,i)=>{const{ref:o,refs:a,required:c,maxLength:u,minLength:l,min:s,max:f,pattern:h,validate:p,name:d,valueAsNumber:y,mount:v,disabled:g}=t._f,m=WC(e,d);if(!v||g)return{};const b=a?a[0]:o,w=t=>{n&&b.reportValidity&&(b.setCustomValidity(XC(t)?"":t||""),b.reportValidity())},x={},O="radio"===o.type;const S=(t=>"checkbox"===t.type)(o),j=O||S,A=(y||(t=>"file"===t.type)(o))&&qC(o.value)&&qC(m)||(t=>{if(!FC)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(o)&&""===o.value||""===m||Array.isArray(m)&&!m.length,P=pD.bind(null,d,r,x),M=(t,e,r,n=eD,i=rD)=>{const a=t?e:r;x[d]={type:t?n:i,message:a,ref:o,...P(t?n:i,a)}};if(i?!Array.isArray(m)||!m.length:c&&(!j&&(A||$C(m))||XC(m)&&!m||S&&!(t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter((t=>t&&t.checked&&!t.disabled)).map((t=>t.value));return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!qC(t[0].attributes.value)?qC(t[0].value)||""===t[0].value?OD:{value:t[0].value,isValid:!0}:OD:xD}return xD})(a).isValid||O&&!(E=a,Array.isArray(E)?E.reduce(((t,e)=>e&&e.checked&&!e.disabled?{isValid:!0,value:e.value}:t),SD):SD).isValid)){const{value:t,message:e}=bD(c)?{value:!!c,message:c}:AD(c);if(t&&(x[d]={type:iD,message:e,ref:b,...P(iD,e)},!r))return w(e),x}var E;if(!(A||$C(s)&&$C(f))){let t,e;const n=AD(f),i=AD(s);if($C(m)||isNaN(m)){const r=o.valueAsDate||new Date(m),a=t=>new Date((new Date).toDateString()+" "+t),c="time"==o.type,u="week"==o.type;lD(n.value)&&m&&(t=c?a(m)>a(n.value):u?m>n.value:r>new Date(n.value)),lD(i.value)&&m&&(e=c?a(m)<a(i.value):u?m<i.value:r<new Date(i.value))}else{const r=o.valueAsNumber||(m?+m:m);$C(n.value)||(t=r>n.value),$C(i.value)||(e=r<i.value)}if((t||e)&&(M(!!t,n.message,i.message,QC,tD),!r))return w(x[d].message),x}if((u||l)&&!A&&(lD(m)||i&&Array.isArray(m))){const t=AD(u),e=AD(l),n=!$C(t.value)&&m.length>+t.value,i=!$C(e.value)&&m.length<+e.value;if((n||i)&&(M(n,t.message,e.message),!r))return w(x[d].message),x}if(h&&!A&&lD(m)){const{value:t,message:e}=AD(h);if(wD(t)&&!m.match(t)&&(x[d]={type:nD,message:e,ref:o,...P(nD,e)},!r))return w(e),x}if(p)if("function"==typeof p){const t=jD(await p(m,e),b);if(t&&(x[d]={...t,...P(oD,t.message)},!r))return w(t.message),x}else if(zC(p)){let t={};for(const n in p){if(!cD(t)&&!r)break;const i=jD(await p[n](m,e),b,n);i&&(t={...i,...P(n,i.message)},w(i.message),r&&(x[d]=t))}if(!cD(t)&&(x[d]={ref:b,...t},!r))return x}return w(!0),x},MD=(t,e)=>[...t,...uD(e)],ED=t=>Array.isArray(t)?t.map((()=>{})):void 0;function kD(t,e,r){return[...t.slice(0,e),...uD(r),...t.slice(e)]}var _D=(t,e,r)=>Array.isArray(t)?(qC(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],TD=(t,e)=>[...uD(e),...uD(t)];var CD=(t,e)=>qC(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return VC(n).length?n:[]}(t,uD(e).sort(((t,e)=>t-e))),DD=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function ND(t,e){const r=Array.isArray(e)?e:sD(e)?[e]:fD(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=qC(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&(zC(n)&&cD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!qC(t[e]))return!1;return!0}(n))&&ND(t,r.slice(0,-1)),t}var ID=(t,e,r)=>(t[e]=r,t);function BD(t){const e=X.useContext(aD),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o}=t,[a,c]=X.useState(r._getFieldArray(n)),u=X.useRef(r._getFieldArray(n).map(dD)),l=X.useRef(a),s=X.useRef(n),f=X.useRef(!1);s.current=n,l.current=a,r._names.array.add(n),t.rules&&r.register(n,t.rules),function(t){const e=X.useRef(t);e.current=t,X.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===s.current||!e){const e=WC(t,s.current);Array.isArray(e)&&(c(e),u.current=e.map(dD))}},subject:r._subjects.array});const h=X.useCallback((t=>{f.current=!0,r._updateFieldArray(n,t)}),[r,n]);return X.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length))))))(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!vD(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=WC(t.errors,n),i=WC(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?hD(r._formState.errors,n,e):ND(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=WC(r._fields,n);!t||!t._f||vD(r._options.reValidateMode).isOnSubmit&&vD(r._options.mode).isOnSubmit||PD(t,r._formValues,r._options.criteriaMode===JC,r._options.shouldUseNativeValidation,!0).then((t=>!cD(t)&&r._subjects.state.next({errors:mD(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&gD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),f.current=!1}),[a,n,r]),X.useEffect((()=>(!WC(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)})),[n,r,i,o]),{swap:X.useCallback(((t,e)=>{const i=r._getFieldArray(n);DD(i,t,e),DD(u.current,t,e),h(i),c(i),r._updateFieldArray(n,i,DD,{argA:t,argB:e},!1)}),[h,n,r]),move:X.useCallback(((t,e)=>{const i=r._getFieldArray(n);_D(i,t,e),_D(u.current,t,e),h(i),c(i),r._updateFieldArray(n,i,_D,{argA:t,argB:e},!1)}),[h,n,r]),prepend:X.useCallback(((t,e)=>{const i=uD(UC(t)),o=TD(r._getFieldArray(n),i);r._names.focus=yD(n,0,e),u.current=TD(u.current,i.map(dD)),h(o),c(o),r._updateFieldArray(n,o,TD,{argA:ED(t)})}),[h,n,r]),append:X.useCallback(((t,e)=>{const i=uD(UC(t)),o=MD(r._getFieldArray(n),i);r._names.focus=yD(n,o.length-1,e),u.current=MD(u.current,i.map(dD)),h(o),c(o),r._updateFieldArray(n,o,MD,{argA:ED(t)})}),[h,n,r]),remove:X.useCallback((t=>{const e=CD(r._getFieldArray(n),t);u.current=CD(u.current,t),h(e),c(e),r._updateFieldArray(n,e,CD,{argA:t})}),[h,n,r]),insert:X.useCallback(((t,e,i)=>{const o=uD(UC(e)),a=kD(r._getFieldArray(n),t,o);r._names.focus=yD(n,t,i),u.current=kD(u.current,t,o.map(dD)),h(a),c(a),r._updateFieldArray(n,a,kD,{argA:t,argB:ED(e)})}),[h,n,r]),update:X.useCallback(((t,e)=>{const i=UC(e),o=ID(r._getFieldArray(n),t,i);u.current=[...o].map(((e,r)=>e&&r!==t?u.current[r]:dD())),h(o),c([...o]),r._updateFieldArray(n,o,ID,{argA:t,argB:i},!0,!1)}),[h,n,r]),replace:X.useCallback((t=>{const e=uD(UC(t));u.current=e.map(dD),h([...e]),c([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[h,n,r]),fields:X.useMemo((()=>a.map(((t,e)=>({...t,[i]:u.current[e]||dD()})))),[a,i])}}const LD=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=BD({control:n,name:r}),f=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(P,{children:[u.map(((n,o)=>e(P,{children:t(P,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(RC,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(M,{label:"Delete",children:e(y,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(y,{children:e(h,{size:"sm",onClick:()=>{l(f),a&&a(f)},ml:"auto",children:"+"})})]})},RD=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",showTooltip:c=!1,isAnimated:u=!1,formatter:l,sampleRate:s,style:f})=>{const{isNetGain:h}=Hn({data:r,dataKey:n}),p=h?Vn.mint():Vn.heroicRed(),d=s?Un({arr:r||[],n:s}):r,y={cursor:c?"crosshair":"default",...f};return e(dv,{width:i,minHeight:o,children:t(gC,{data:d,style:y,children:[e(bT,{domain:["dataMin","dataMax"],hide:!0}),e(Q_,{isAnimationActive:u,type:a,dataKey:n,stroke:p,strokeWidth:"2",dot:!1,scale:"threshold"}),c&&e(Ry,{cursor:!1,formatter:l})]})})},$D=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},bodyMinHeight:l,bodyBackground:s="transparent",...f})=>t(E,{isOpen:r,onClose:n,isCentered:c,size:u,...f,children:[e(k,{}),t(_,{minWidth:qD,children:[e(T,{children:i}),e(C,{}),e(D,{minH:l||0,bg:s,children:a}),o&&e(N,{borderTop:"solid 1px",borderColor:Vn.coolElegance(),children:o})]})]}),zD=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,u]=tt([]),[l,s]=tt(1);return t(y,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return i(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isLoading:r,isDisabled:1===l,children:"Previous"}),e(h,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),u((e=>[...e,t])),s((t=>t+1))}},isLoading:r,isDisabled:!n,children:"Next"})]})},HD=r=>{const{children:n,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:h,...p}=r,y=Fn(i),g=l?l(u):void 0;return t(d,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[h&&e(v,{size:i,children:h}),e(I,{icon:e(yt,{}),size:i,...g,...p,children:n}),s&&e(m,{size:i,children:s}),f&&e(A,{fontSize:y,children:f})]})},FD=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[u,l]=tt(!0);return u?t(B,{...c,children:[o&&e(L,{as:o}),e(R,{children:n}),i&&e($,{as:i}),a&&e(z,{onClick:()=>{a(),l(!1)}})]}):null},UD=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,u;switch(a){case"error":u=lt;break;case"success":u=wt;break;case"warning":u=Rt,c="yellow";break;case"loading":c="brand",u=W;break;default:c="brand",u=Rt}return t(H,{as:y,colorScheme:c,justifyContent:"space-between",status:a,children:[t(y,{alignItems:"center",mr:"4",children:[e(F,{children:e(u,{size:"sm"})}),t(P,{children:[e(U,{children:n}),e(V,{children:r})]})]}),o&&e(q,{onClick:i})]})},VD=()=>{const t=u({ssr:!1}),e="xs"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}},qD="22rem";export{bC as CfAreaChart,wC as CfBreakpointDebugger,xC as CfButtonGroup,OC as CfButtonGroupButton,SC as CfCard,jC as CfCheckbox,AC as CfForm,RC as CfInput,LD as CfInputArray,RD as CfLineChart,$D as CfModal,zD as CfPagination,HD as CfSelect,FD as CfTag,UD as CfToast,lt as IconAlert,st as IconArrowDown,ft as IconArrowUp,ue as IconAvax,ht as IconBank,pt as IconBarChart,le as IconBch,se as IconBtc,dt as IconCalendar,yt as IconCaretDown,vt as IconCaretLeft,gt as IconCaretRight,mt as IconCaretUp,bt as IconCent,wt as IconCheck,xt as IconChecking,Ot as IconClose,St as IconConnect,jt as IconCopy,At as IconDollar,Pt as IconDownload,Mt as IconEdit,Et as IconEnter,kt as IconEnterInverted,fe as IconEth,_t as IconExchange,Tt as IconFilter,Ct as IconFilterActive,Dt as IconHelp,Nt as IconHistory,It as IconHome,Bt as IconIndicatorDown,Lt as IconIndicatorUp,Rt as IconInfo,he as IconLink,pe as IconLtc,$t as IconMail,zt as IconMenu,Ht as IconMore,Ft as IconNotification,Ut as IconOverview,Vt as IconPercent,qt as IconPieChart,Wt as IconPlus,ce as IconRefresh,Xt as IconReports,Yt as IconReservesSuccess,Kt as IconReservesWarning,Gt as IconSearch,Zt as IconSettings,Jt as IconSettlement,Qt as IconSignIn,te as IconSignOut,ee as IconSort,re as IconSpinner,ne as IconSupport,ie as IconTrash,oe as IconUpload,ae as IconUser,de as IconXlm,En as aggregateAmounts,ci as coreTheme,Rn as dateToTimestamp,$n as formatPercentage,zn as formatUSD,Hn as getDelta,qD as layoutMinWidth,Un as pullFromEnd,Vn as uiColors,Wn as usdToNumber,VD as useCfBreakpoint};
25
+ */"production"===process.env.NODE_ENV?Ha.exports=function(){if($a)return Fa;$a=1;var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=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 n: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 r:return h}}}function w(t){return b(t)===l}return Fa.AsyncMode=u,Fa.ConcurrentMode=l,Fa.ContextConsumer=c,Fa.ContextProvider=a,Fa.Element=e,Fa.ForwardRef=s,Fa.Fragment=n,Fa.Lazy=d,Fa.Memo=p,Fa.Portal=r,Fa.Profiler=o,Fa.StrictMode=i,Fa.Suspense=f,Fa.isAsyncMode=function(t){return w(t)||b(t)===u},Fa.isConcurrentMode=w,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)===n},Fa.isLazy=function(t){return b(t)===d},Fa.isMemo=function(t){return b(t)===p},Fa.isPortal=function(t){return b(t)===r},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===n||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}():Ha.exports=(Ua||(Ua=1,"production"!==process.env.NODE_ENV&&function(){var t="function"==typeof Symbol&&Symbol.for,e=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,n=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 n: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 r:return h}}}var w=u,x=l,O=c,S=a,j=e,A=s,P=n,M=d,E=p,k=r,_=o,T=i,C=f,D=!1;function N(t){return b(t)===l}Va.AsyncMode=w,Va.ConcurrentMode=x,Va.ContextConsumer=O,Va.ContextProvider=S,Va.Element=j,Va.ForwardRef=A,Va.Fragment=P,Va.Lazy=M,Va.Memo=E,Va.Portal=k,Va.Profiler=_,Va.StrictMode=T,Va.Suspense=C,Va.isAsyncMode=function(t){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(t)||b(t)===u},Va.isConcurrentMode=N,Va.isContextConsumer=function(t){return b(t)===c},Va.isContextProvider=function(t){return b(t)===a},Va.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Va.isForwardRef=function(t){return b(t)===s},Va.isFragment=function(t){return b(t)===n},Va.isLazy=function(t){return b(t)===d},Va.isMemo=function(t){return b(t)===p},Va.isPortal=function(t){return b(t)===r},Va.isProfiler=function(t){return b(t)===o},Va.isStrictMode=function(t){return b(t)===i},Va.isSuspense=function(t){return b(t)===f},Va.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===n||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)},Va.typeOf=b}()),Va);var qa=Ha.exports,Wa=Ai,Xa=Pi;var Ya=function(t){return"number"==typeof t||Xa(t)&&"[object Number]"==Wa(t)},Ka=On(Ya),Ga=Ya;var Za=On((function(t){return Ga(t)&&t!=+t})),Ja=function(t){return 0===t?0:t>0?1:-1},Qa=function(t){return za(t)&&t.indexOf("%")===t.length-1},tc=function(t){return Ka(t)&&!Za(t)},ec=function(t){return tc(t)||za(t)},rc=0,nc=function(t){var e=++rc;return"".concat(t||"").concat(e)},ic=function(t,e){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!tc(t)&&!za(t))return n;if(Qa(t)){var o=t.indexOf("%");r=e*parseFloat(t.slice(0,o))/100}else r=+t;return Za(r)&&(r=n),i&&r>e&&(r=e),r},oc=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},ac=function(t,e){return tc(t)&&tc(e)?function(r){return t+r*(e-t)}:function(){return e}};function cc(t,e,r){return t&&t.length?t.find((function(t){return t&&("function"==typeof e?e(t):Na(t,e))===r})):null}function uc(t,e){for(var r in t)if({}.hasOwnProperty.call(t,r)&&(!{}.hasOwnProperty.call(e,r)||t[r]!==e[r]))return!1;for(var n in e)if({}.hasOwnProperty.call(e,n)&&!{}.hasOwnProperty.call(t,n))return!1;return!0}function lc(t){return lc="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},lc(t)}var sc=["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"],fc=["points","pathLength"],hc={svg:["viewBox","children"],polygon:fc,polyline:fc},pc=["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"],dc=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if(Y(t)&&(r=t.props),!Bi(r))return null;var n={};return Object.keys(r).forEach((function(t){pc.includes(t)&&(n[t]=e||function(e){return r[t](r,e)})})),n},yc=function(t,e,r){if(!Bi(t)||"object"!==lc(t))return null;var n=null;return Object.keys(t).forEach((function(i){var o=t[i];pc.includes(i)&&"function"==typeof o&&(n||(n={}),n[i]=function(t,e,r){return function(n){return t(e,r,n),null}}(o,e,r))})),n},vc=["children"],gc=["children"];function mc(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function bc(t){return bc="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},bc(t)}var wc={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},xc=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},Oc=null,Sc=null,jc=function t(e){if(e===Oc&&Array.isArray(Sc))return Sc;var r=[];return K.forEach(e,(function(e){Ia(e)||(qa.isFragment(e)?r=r.concat(t(e.props.children)):r.push(e))})),Sc=r,Oc=e,r};function Ac(t,e){var r=[],n=[];return n=Array.isArray(e)?e.map((function(t){return xc(t)})):[xc(e)],jc(t).forEach((function(t){var e=Na(t,"type.displayName")||Na(t,"type.name");-1!==n.indexOf(e)&&r.push(t)})),r}function Pc(t,e){var r=Ac(t,e);return r&&r[0]}var Mc=function(t){if(!t||!t.props)return!1;var e=t.props,r=e.width,n=e.height;return!(!tc(r)||r<=0||!tc(n)||n<=0)},Ec=["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"],kc=function(t){return t&&"object"===bc(t)&&"cx"in t&&"cy"in t&&"r"in t},_c=function(t,e,r){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if(Y(t)&&(n=t.props),!Bi(n))return null;var i={};return Object.keys(n).forEach((function(t){var o;(function(t,e,r,n){var i,o=null!==(i=null==hc?void 0:hc[n])&&void 0!==i?i:[];return!Hi(t)&&(n&&o.includes(e)||sc.includes(e))||r&&pc.includes(e)})(null===(o=n)||void 0===o?void 0:o[t],t,e,r)&&(i[t]=n[t])})),i},Tc=function t(e,r){if(e===r)return!0;var n=K.count(e);if(n!==K.count(r))return!1;if(0===n)return!0;if(1===n)return Cc(Array.isArray(e)?e[0]:e,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var o=e[i],a=r[i];if(Array.isArray(o)||Array.isArray(a)){if(!t(o,a))return!1}else if(!Cc(o,a))return!1}return!0},Cc=function(t,e){if(Ia(t)&&Ia(e))return!0;if(!Ia(t)&&!Ia(e)){var r=t.props||{},n=r.children,i=mc(r,vc),o=e.props||{},a=o.children,c=mc(o,gc);return n&&a?uc(i,c)&&Tc(n,a):!n&&!a&&uc(i,c)}return!1},Dc=function(t,e){var r=[],n={};return jc(t).forEach((function(t,i){if(function(t){return t&&t.type&&za(t.type)&&Ec.indexOf(t.type)>=0}(t))r.push(t);else if(t){var o=xc(t.type),a=e[o]||{},c=a.handler,u=a.once;if(c&&(!u||!n[o])){var l=c(t,o,i);r.push(l),n[o]=!0}}})),r},Nc=["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 r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ic.apply(this,arguments)}function Bc(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Lc(t){var e=t.children,r=t.width,n=t.height,i=t.viewBox,o=t.className,a=t.style,c=t.title,u=t.desc,l=Bc(t,Nc),s=i||{width:r,height:n,x:0,y:0},f=ui("recharts-surface",o);return X.createElement("svg",Ic({},_c(l,!0,"svg"),{className:f,width:r,height:n,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),X.createElement("title",null,c),X.createElement("desc",null,u),e)}var Rc=["children","className"];function $c(){return $c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$c.apply(this,arguments)}function zc(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var Hc=X.forwardRef((function(t,e){var r=t.children,n=t.className,i=zc(t,Rc),o=ui("recharts-layer",n);return X.createElement("g",$c({className:o},_c(i,!0),{ref:e}),r)})),Fc="production"!==process.env.NODE_ENV,Uc=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[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 n[o++]})))}};var Vc=function(t,e,r){var n=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n<i;)o[n]=t[n+e];return o},qc=Vc;var Wc=function(t,e,r){var n=t.length;return r=void 0===r?n:r,!e&&r>=n?t:qc(t,e,r)},Xc=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Yc=function(t){return Xc.test(t)};var Kc=function(t){return t.split("")},Gc="\\ud800-\\udfff",Zc="["+Gc+"]",Jc="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Qc="\\ud83c[\\udffb-\\udfff]",tu="[^"+Gc+"]",eu="(?:\\ud83c[\\udde6-\\uddff]){2}",ru="[\\ud800-\\udbff][\\udc00-\\udfff]",nu="(?:"+Jc+"|"+Qc+")"+"?",iu="[\\ufe0e\\ufe0f]?",ou=iu+nu+("(?:\\u200d(?:"+[tu,eu,ru].join("|")+")"+iu+nu+")*"),au="(?:"+[tu+Jc+"?",Jc,eu,ru,Zc].join("|")+")",cu=RegExp(Qc+"(?="+Qc+")|"+au+ou,"g");var uu=function(t){return t.match(cu)||[]},lu=Kc,su=Yc,fu=uu;var hu=function(t){return su(t)?fu(t):lu(t)},pu=Wc,du=Yc,yu=hu,vu=xa;var gu=function(t){return function(e){e=vu(e);var r=du(e)?yu(e):void 0,n=r?r[0]:e.charAt(0),i=r?pu(r,1).join(""):e.slice(1);return n[t]()+i}},mu=On(gu("toUpperCase"));function bu(t){return function(){return t}}const wu=Math.cos,xu=Math.sin,Ou=Math.sqrt,Su=Math.PI,ju=2*Su,Au=Math.PI,Pu=2*Au,Mu=1e-6,Eu=Pu-Mu;function ku(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=arguments[e]+t[e]}class _u{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?ku:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return ku;const r=10**e;return function(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=Math.round(arguments[e]*r)/r+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,r,n){this._append`Q${+t},${+e},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(t,e,r,n,i,o){this._append`C${+t},${+e},${+r},${+n},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,r,n,i){if(t=+t,e=+e,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,c=r-t,u=n-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>Mu)if(Math.abs(s*c-u*l)>Mu&&i){let h=r-o,p=n-a,d=c*c+u*u,y=h*h+p*p,v=Math.sqrt(d),g=Math.sqrt(f),m=i*Math.tan((Au-Math.acos((d+f-y)/(2*v*g)))/2),b=m/g,w=m/v;Math.abs(b-1)>Mu&&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,r,n,i,o){if(t=+t,e=+e,o=!!o,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),c=r*Math.sin(n),u=t+a,l=e+c,s=1^o,f=o?n-i:i-n;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>Mu||Math.abs(this._y1-l)>Mu)&&this._append`L${u},${l}`,r&&(f<0&&(f=f%Pu+Pu),f>Eu?this._append`A${r},${r},0,1,${s},${t-a},${e-c}A${r},${r},0,1,${s},${this._x1=u},${this._y1=l}`:f>Mu&&this._append`A${r},${r},0,${+(f>=Au)},${s},${this._x1=t+r*Math.cos(i)},${this._y1=e+r*Math.sin(i)}`)}rect(t,e,r,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function Tu(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(null==r)e=null;else{const t=Math.floor(r);if(!(t>=0))throw new RangeError(`invalid digits: ${r}`);e=t}return t},()=>new _u(e)}function Cu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Du(t){this._context=t}function Nu(t){return new Du(t)}function Iu(t){return t[0]}function Bu(t){return t[1]}function Lu(t,e){var r=bu(!0),n=null,i=Nu,o=null,a=Tu(c);function c(c){var u,l,s,f=(c=Cu(c)).length,h=!1;for(null==n&&(o=i(s=a())),u=0;u<=f;++u)!(u<f&&r(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:bu(t),e="function"==typeof e?e:void 0===e?Bu:bu(e),c.x=function(e){return arguments.length?(t="function"==typeof e?e:bu(+e),c):t},c.y=function(t){return arguments.length?(e="function"==typeof t?t:bu(+t),c):e},c.defined=function(t){return arguments.length?(r="function"==typeof t?t:bu(!!t),c):r},c.curve=function(t){return arguments.length?(i=t,null!=n&&(o=i(n)),c):i},c.context=function(t){return arguments.length?(null==t?n=o=null:o=i(n=t),c):n},c}function Ru(t,e,r){var n=null,i=bu(!0),o=null,a=Nu,c=null,u=Tu(l);function l(l){var s,f,h,p,d,y=(l=Cu(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(n?+n(p,s,l):g[s],r?+r(p,s,l):m[s]))}if(d)return c=null,d+""||null}function s(){return Lu().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?Iu:bu(+t),e="function"==typeof e?e:bu(void 0===e?0:+e),r="function"==typeof r?r:void 0===r?Bu:bu(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:bu(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:bu(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:bu(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:bu(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:bu(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:bu(+t),l):r},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(r)},l.lineX1=function(){return s().x(n).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:bu(!!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}Du.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 $u{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 zu={draw(t,e){const r=Ou(e/Su);t.moveTo(r,0),t.arc(0,0,r,0,ju)}},Hu={draw(t,e){const r=Ou(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}};const Fu=Ou(1/3),Uu=2*Fu;var Vu={draw(t,e){const r=Ou(e/Uu),n=r*Fu;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},qu={draw(t,e){const r=Ou(e),n=-r/2;t.rect(n,n,r,r)}};const Wu=xu(Su/10)/xu(7*Su/10),Xu=xu(ju/10)*Wu,Yu=-wu(ju/10)*Wu;var Ku={draw(t,e){const r=Ou(.8908130915292852*e),n=Xu*r,i=Yu*r;t.moveTo(0,-r),t.lineTo(n,i);for(let e=1;e<5;++e){const o=ju*e/5,a=wu(o),c=xu(o);t.lineTo(c*r,-a*r),t.lineTo(a*n-c*i,c*n+a*i)}t.closePath()}};const Gu=Ou(3);var Zu={draw(t,e){const r=-Ou(e/(3*Gu));t.moveTo(0,2*r),t.lineTo(-Gu*r,-r),t.lineTo(Gu*r,-r),t.closePath()}};const Ju=-.5,Qu=Ou(3)/2,tl=1/Ou(12),el=3*(tl/2+1);var rl={draw(t,e){const r=Ou(e/el),n=r/2,i=r*tl,o=n,a=r*tl+r,c=-o,u=a;t.moveTo(n,i),t.lineTo(o,a),t.lineTo(c,u),t.lineTo(Ju*n-Qu*i,Qu*n+Ju*i),t.lineTo(Ju*o-Qu*a,Qu*o+Ju*a),t.lineTo(Ju*c-Qu*u,Qu*c+Ju*u),t.lineTo(Ju*n+Qu*i,Ju*i-Qu*n),t.lineTo(Ju*o+Qu*a,Ju*a-Qu*o),t.lineTo(Ju*c+Qu*u,Ju*u-Qu*c),t.closePath()}};function nl(){}function il(t,e,r){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+r)/6)}function ol(t){this._context=t}function al(t){this._context=t}function cl(t){this._context=t}function ul(t){this._context=t}function ll(t){return t<0?-1:1}function sl(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),a=(r-t._y1)/(i||n<0&&-0),c=(o*i+a*n)/(n+i);return(ll(o)+ll(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(c))||0}function fl(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function hl(t,e,r){var n=t._x0,i=t._y0,o=t._x1,a=t._y1,c=(o-n)/3;t._context.bezierCurveTo(n+c,i+c*e,o-c,a-c*r,o,a)}function pl(t){this._context=t}function dl(t){this._context=new yl(t)}function yl(t){this._context=t}function vl(t){this._context=t}function gl(t){var e,r,n=t.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<n-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)r=i[e]/o[e-1],o[e]-=r,a[e]-=r*a[e-1];for(i[n-1]=a[n-1]/o[n-1],e=n-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[n-1]=(t[n]+i[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}function ml(t,e){this._context=t,this._t=e}function bl(t,e){if((i=t.length)>1)for(var r,n,i,o=1,a=t[e[0]],c=a.length;o<i;++o)for(n=a,a=t[e[o]],r=0;r<c;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function wl(t){for(var e=t.length,r=new Array(e);--e>=0;)r[e]=e;return r}function xl(t,e){return t[e]}function Ol(t){const e=[];return e.key=t,e}function Sl(t){return Sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(t)}ol.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:il(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:il(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},al.prototype={areaStart:nl,areaEnd:nl,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:il(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},cl.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 r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:il(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ul.prototype={areaStart:nl,areaEnd:nl,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))}},pl.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:hl(this,this._t0,fl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=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,hl(this,fl(this,r=sl(this,t,e)),r);break;default:hl(this,this._t0,r=sl(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(dl.prototype=Object.create(pl.prototype)).point=function(t,e){pl.prototype.point.call(this,e,t)},yl.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,r,n,i,o){this._context.bezierCurveTo(e,t,n,r,o,i)}},vl.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,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=gl(t),i=gl(e),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===r)&&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)}},ml.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 r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var jl=["type","size","sizeType"];function Al(){return Al=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Al.apply(this,arguments)}function Pl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ml(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pl(Object(r),!0).forEach((function(e){El(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function El(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Sl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Sl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Sl(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function kl(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var _l={symbolCircle:zu,symbolCross:Hu,symbolDiamond:Vu,symbolSquare:qu,symbolStar:Ku,symbolTriangle:Zu,symbolWye:rl},Tl=Math.PI/180,Cl=function(t){var e,r,n=t.type,i=void 0===n?"circle":n,o=t.size,a=void 0===o?64:o,c=t.sizeType,u=void 0===c?"area":c,l=Ml(Ml({},kl(t,jl)),{},{type:i,size:a,sizeType:u}),s=l.className,f=l.cx,h=l.cy,p=_c(l,!0);return f===+f&&h===+h&&a===+a?X.createElement("path",Al({},p,{className:ui("recharts-symbols",s),transform:"translate(".concat(f,", ").concat(h,")"),d:(e=function(t){var e="symbol".concat(mu(t));return _l[e]||zu}(i),r=function(t,e){let r=null,n=Tu(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:bu(t||zu),e="function"==typeof e?e:bu(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:bu(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:bu(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i}().type(e).size(function(t,e,r){if("area"===e)return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return.5*t*t/Math.sqrt(3);case"square":return t*t;case"star":var n=18*Tl;return 1.25*t*t*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),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)),r())})):null};function Dl(t){return Dl="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},Dl(t)}function Nl(){return Nl=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Nl.apply(this,arguments)}function Il(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Bl(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Fl(n.key),n)}}function Ll(t,e,r){return e=$l(e),function(t,e){if(e&&("object"===Dl(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)}(t,Rl()?Reflect.construct(e,r||[],$l(t).constructor):e.apply(t,r))}function Rl(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Rl=function(){return!!t})()}function $l(t){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$l(t)}function zl(t,e){return zl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zl(t,e)}function Hl(t,e,r){return(e=Fl(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fl(t){var e=function(t,e){if("object"!=Dl(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Dl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Dl(e)?e:String(e)}Cl.registerSymbol=function(t,e){_l["symbol".concat(mu(t))]=e};var Ul=32,Vl=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),Ll(this,e,arguments)}var r,n,i;return 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&&zl(t,e)}(e,G),r=e,n=[{key:"renderIcon",value:function(t){var e=this.props.inactiveColor,r=16,n=Ul/6,i=Ul/3,o=t.inactive?e:t.color;if("plainline"===t.type)return X.createElement("line",{strokeWidth:4,fill:"none",stroke:o,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:r,x2:Ul,y2:r,className:"recharts-legend-icon"});if("line"===t.type)return X.createElement("path",{strokeWidth:4,fill:"none",stroke:o,d:"M0,".concat(r,"h").concat(i,"\n A").concat(n,",").concat(n,",0,1,1,").concat(2*i,",").concat(r,"\n H").concat(Ul,"M").concat(2*i,",").concat(r,"\n A").concat(n,",").concat(n,",0,1,1,").concat(i,",").concat(r),className:"recharts-legend-icon"});if("rect"===t.type)return X.createElement("path",{stroke:"none",fill:o,d:"M0,".concat(4,"h").concat(Ul,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(X.isValidElement(t.legendIcon)){var a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Il(Object(r),!0).forEach((function(e){Hl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Il(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},t);return delete a.legendIcon,X.cloneElement(t.legendIcon,a)}return X.createElement(Cl,{fill:o,cx:r,cy:r,size:Ul,sizeType:"diameter",type:t.type})}},{key:"renderItems",value:function(){var t=this,e=this.props,r=e.payload,n=e.iconSize,i=e.layout,o=e.formatter,a=e.inactiveColor,c={x:0,y:0,width:Ul,height:Ul},u={display:"horizontal"===i?"inline-block":"block",marginRight:10},l={display:"inline-block",verticalAlign:"middle",marginRight:4};return r.map((function(e,r){var i=e.formatter||o,s=ui(Hl(Hl({"recharts-legend-item":!0},"legend-item-".concat(r),!0),"inactive",e.inactive));if("none"===e.type)return null;var f=Hi(e.value)?null:e.value;Uc(!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 h=e.inactive?a:e.color;return X.createElement("li",Nl({className:s,style:u,key:"legend-item-".concat(r)},yc(t.props,e,r)),X.createElement(Lc,{width:n,height:n,viewBox:c,style:l},t.renderIcon(e)),X.createElement("span",{className:"recharts-legend-item-text",style:{color:h}},i?i(f,e,r):f))}))}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,n=t.align;if(!e||!e.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===r?n:"left"};return X.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],n&&Bl(r.prototype,n),i&&Bl(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Hl(Vl,"displayName","Legend"),Hl(Vl,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ql=zo;var Wl=zo,Xl=Ho,Yl=na;var Kl=zo,Gl=function(){this.__data__=new ql,this.size=0},Zl=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Jl=function(t){return this.__data__.get(t)},Ql=function(t){return this.__data__.has(t)},ts=function(t,e){var r=this.__data__;if(r instanceof Wl){var n=r.__data__;if(!Xl||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Yl(n)}return r.set(t,e),this.size=r.size,this};function es(t){var e=this.__data__=new Kl(t);this.size=e.size}es.prototype.clear=Gl,es.prototype.delete=Zl,es.prototype.get=Jl,es.prototype.has=Ql,es.prototype.set=ts;var rs=es;var ns=na,is=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},os=function(t){return this.__data__.has(t)};function as(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new ns;++e<r;)this.add(t[e])}as.prototype.add=as.prototype.push=is,as.prototype.has=os;var cs=as;var us=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1};var ls=function(t,e){return t.has(e)},ss=cs,fs=us,hs=ls;var ps=function(t,e,r,n,i,o){var a=1&r,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&r?new ss:void 0;for(o.set(t,e),o.set(e,t);++f<c;){var d=t[f],y=e[f];if(n)var v=a?n(y,d,f,e,t,o):n(d,y,f,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!fs(e,(function(t,e){if(!hs(p,e)&&(d===t||i(d,t,r,n,o)))return p.push(e)}))){h=!1;break}}else if(d!==y&&!i(d,y,r,n,o)){h=!1;break}}return o.delete(t),o.delete(e),h};var ds=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r};var ys=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r},vs=pi.Uint8Array,gs=Po,ms=ps,bs=ds,ws=ys,xs=di?di.prototype:void 0,Os=xs?xs.valueOf:void 0;var Ss=function(t,e,r,n,i,o,a){switch(r){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 vs(t),new vs(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return gs(+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=bs;case"[object Set]":var u=1&n;if(c||(c=ws),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=2,a.set(t,e);var s=ms(c(t),c(e),n,i,o,a);return a.delete(t),s;case"[object Symbol]":if(Os)return Os.call(t)==Os.call(e)}return!1};var js=function(t,e){for(var r=-1,n=e.length,i=t.length;++r<n;)t[i+r]=e[r];return t},As=js,Ps=li;var Ms=function(t,e,r){var n=e(t);return Ps(t)?n:As(n,r(t))};var Es=function(t,e){for(var r=-1,n=null==t?0:t.length,i=0,o=[];++r<n;){var a=t[r];e(a,r,t)&&(o[i++]=a)}return o};var ks=Es,_s=function(){return[]},Ts=Object.prototype.propertyIsEnumerable,Cs=Object.getOwnPropertySymbols,Ds=Cs?function(t){return null==t?[]:(t=Object(t),ks(Cs(t),(function(e){return Ts.call(t,e)})))}:_s,Ns=Ds;var Is=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n},Bs=Ai,Ls=Pi;var Rs=function(t){return Ls(t)&&"[object Arguments]"==Bs(t)},$s=Pi,zs=Object.prototype,Hs=zs.hasOwnProperty,Fs=zs.propertyIsEnumerable,Us=Rs(function(){return arguments}())?Rs:function(t){return $s(t)&&Hs.call(t,"callee")&&!Fs.call(t,"callee")},Vs={exports:{}};var qs=function(){return!1};!function(t,e){var r=pi,n=qs,i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;t.exports=c}(Vs,Vs.exports);var Ws=Vs.exports,Xs=/^(?:0|[1-9]\d*)$/;var Ys=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&Xs.test(t))&&t>-1&&t%1==0&&t<e};var Ks=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Gs=Ai,Zs=Ks,Js=Pi,Qs={};Qs["[object Float32Array]"]=Qs["[object Float64Array]"]=Qs["[object Int8Array]"]=Qs["[object Int16Array]"]=Qs["[object Int32Array]"]=Qs["[object Uint8Array]"]=Qs["[object Uint8ClampedArray]"]=Qs["[object Uint16Array]"]=Qs["[object Uint32Array]"]=!0,Qs["[object Arguments]"]=Qs["[object Array]"]=Qs["[object ArrayBuffer]"]=Qs["[object Boolean]"]=Qs["[object DataView]"]=Qs["[object Date]"]=Qs["[object Error]"]=Qs["[object Function]"]=Qs["[object Map]"]=Qs["[object Number]"]=Qs["[object Object]"]=Qs["[object RegExp]"]=Qs["[object Set]"]=Qs["[object String]"]=Qs["[object WeakMap]"]=!1;var tf=function(t){return Js(t)&&Zs(t.length)&&!!Qs[Gs(t)]};var ef=function(t){return function(e){return t(e)}},rf={exports:{}};!function(t,e){var r=si,n=e&&!e.nodeType&&e,i=n&&t&&!t.nodeType&&t,o=i&&i.exports===n&&r.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}(rf,rf.exports);var nf=rf.exports,of=tf,af=ef,cf=nf&&nf.isTypedArray,uf=cf?af(cf):of,lf=Is,sf=Us,ff=li,hf=Ws,pf=Ys,df=uf,yf=Object.prototype.hasOwnProperty;var vf=function(t,e){var r=ff(t),n=!r&&sf(t),i=!r&&!n&&hf(t),o=!r&&!n&&!i&&df(t),a=r||n||i||o,c=a?lf(t.length,String):[],u=c.length;for(var l in t)!e&&!yf.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||pf(l,u))||c.push(l);return c},gf=Object.prototype;var mf=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||gf)};var bf=function(t,e){return function(r){return t(e(r))}},wf=bf(Object.keys,Object),xf=mf,Of=wf,Sf=Object.prototype.hasOwnProperty;var jf=function(t){if(!xf(t))return Of(t);var e=[];for(var r in Object(t))Sf.call(t,r)&&"constructor"!=r&&e.push(r);return e},Af=zi,Pf=Ks;var Mf=function(t){return null!=t&&Pf(t.length)&&!Af(t)},Ef=vf,kf=jf,_f=Mf;var Tf=function(t){return _f(t)?Ef(t):kf(t)},Cf=Ms,Df=Ns,Nf=Tf;var If=function(t){return Cf(t,Nf,Df)},Bf=If,Lf=Object.prototype.hasOwnProperty;var Rf=function(t,e,r,n,i,o){var a=1&r,c=Bf(t),u=c.length;if(u!=Bf(e).length&&!a)return!1;for(var l=u;l--;){var s=c[l];if(!(a?s in e:Lf.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(n)var g=a?n(v,y,s,e,t,o):n(y,v,s,t,e,o);if(!(void 0===g?y===v||i(y,v,r,n,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},$f=ao(pi,"DataView"),zf=ao(pi,"Promise"),Hf=ao(pi,"Set"),Ff=$f,Uf=Ho,Vf=zf,qf=Hf,Wf=ao(pi,"WeakMap"),Xf=Ai,Yf=Wi,Kf="[object Map]",Gf="[object Promise]",Zf="[object Set]",Jf="[object WeakMap]",Qf="[object DataView]",th=Yf(Ff),eh=Yf(Uf),rh=Yf(Vf),nh=Yf(qf),ih=Yf(Wf),oh=Xf;(Ff&&oh(new Ff(new ArrayBuffer(1)))!=Qf||Uf&&oh(new Uf)!=Kf||Vf&&oh(Vf.resolve())!=Gf||qf&&oh(new qf)!=Zf||Wf&&oh(new Wf)!=Jf)&&(oh=function(t){var e=Xf(t),r="[object Object]"==e?t.constructor:void 0,n=r?Yf(r):"";if(n)switch(n){case th:return Qf;case eh:return Kf;case rh:return Gf;case nh:return Zf;case ih:return Jf}return e});var ah=rs,ch=ps,uh=Ss,lh=Rf,sh=oh,fh=li,hh=Ws,ph=uf,dh="[object Arguments]",yh="[object Array]",vh="[object Object]",gh=Object.prototype.hasOwnProperty;var mh=function(t,e,r,n,i,o){var a=fh(t),c=fh(e),u=a?yh:sh(t),l=c?yh:sh(e),s=(u=u==dh?vh:u)==vh,f=(l=l==dh?vh:l)==vh,h=u==l;if(h&&hh(t)){if(!hh(e))return!1;a=!0,s=!1}if(h&&!s)return o||(o=new ah),a||ph(t)?ch(t,e,r,n,i,o):uh(t,e,u,r,n,i,o);if(!(1&r)){var p=s&&gh.call(t,"__wrapped__"),d=f&&gh.call(e,"__wrapped__");if(p||d){var y=p?t.value():t,v=d?e.value():e;return o||(o=new ah),i(y,v,r,n,o)}}return!!h&&(o||(o=new ah),lh(t,e,r,n,i,o))},bh=mh,wh=Pi;var xh=function t(e,r,n,i,o){return e===r||(null==e||null==r||!wh(e)&&!wh(r)?e!=e&&r!=r:bh(e,r,n,i,t,o))},Oh=rs,Sh=xh;var jh=function(t,e,r,n){var i=r.length,o=i,a=!n;if(null==t)return!o;for(t=Object(t);i--;){var c=r[i];if(a&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++i<o;){var u=(c=r[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 Oh;if(n)var h=n(l,s,u,t,e,f);if(!(void 0===h?Sh(s,l,3,n,f):h))return!1}}return!0},Ah=Ii;var Ph=function(t){return t==t&&!Ah(t)},Mh=Ph,Eh=Tf;var kh=function(t){for(var e=Eh(t),r=e.length;r--;){var n=e[r],i=t[n];e[r]=[n,i,Mh(i)]}return e};var _h=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}},Th=jh,Ch=kh,Dh=_h;var Nh=function(t){var e=Ch(t);return 1==e.length&&e[0][2]?Dh(e[0][0],e[0][1]):function(r){return r===t||Th(r,t,e)}};var Ih=function(t,e){return null!=t&&e in Object(t)},Bh=Pa,Lh=Us,Rh=li,$h=Ys,zh=Ks,Hh=Ea;var Fh=function(t,e,r){for(var n=-1,i=(e=Bh(e,t)).length,o=!1;++n<i;){var a=Hh(e[n]);if(!(o=null!=t&&r(t,a)))break;t=t[a]}return o||++n!=i?o:!!(i=null==t?0:t.length)&&zh(i)&&$h(a,i)&&(Rh(t)||Lh(t))},Uh=Ih,Vh=Fh;var qh=function(t,e){return null!=t&&Vh(t,e,Uh)},Wh=xh,Xh=Da,Yh=qh,Kh=Ni,Gh=Ph,Zh=_h,Jh=Ea;var Qh=function(t,e){return Kh(t)&&Gh(e)?Zh(Jh(t),e):function(r){var n=Xh(r,t);return void 0===n&&n===e?Yh(r,t):Wh(e,n,3)}};var tp=function(t){return t};var ep=function(t){return function(e){return null==e?void 0:e[t]}},rp=Ta;var np=function(t){return function(e){return rp(e,t)}},ip=ep,op=np,ap=Ni,cp=Ea;var up=Nh,lp=Qh,sp=tp,fp=li,hp=function(t){return ap(t)?ip(cp(t)):op(t)};var pp=function(t){return"function"==typeof t?t:null==t?sp:"object"==typeof t?fp(t)?lp(t[0],t[1]):up(t):hp(t)};var dp=function(t,e,r,n){for(var i=t.length,o=r+(n?1:-1);n?o--:++o<i;)if(e(t[o],o,t))return o;return-1};var yp=function(t,e,r){for(var n=r-1,i=t.length;++n<i;)if(t[n]===e)return n;return-1},vp=dp,gp=function(t){return t!=t},mp=yp;var bp=function(t,e,r){return e==e?mp(t,e,r):vp(t,gp,r)},wp=bp;var xp=function(t,e){return!!(null==t?0:t.length)&&wp(t,e,0)>-1};var Op=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n<i;)if(r(e,t[n]))return!0;return!1};var Sp=Hf,jp=function(){},Ap=Sp&&1/ys(new Sp([,-0]))[1]==1/0?function(t){return new Sp(t)}:jp,Pp=cs,Mp=xp,Ep=Op,kp=ls,_p=Ap,Tp=ys;var Cp=function(t,e,r){var n=-1,i=Mp,o=t.length,a=!0,c=[],u=c;if(r)a=!1,i=Ep;else if(o>=200){var l=e?null:_p(t);if(l)return Tp(l);a=!1,i=kp,u=new Pp}else u=e?[]:c;t:for(;++n<o;){var s=t[n],f=e?e(s):s;if(s=r||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,r)||(u!==c&&u.push(f),c.push(s))}return c},Dp=pp,Np=Cp;var Ip=function(t,e){return t&&t.length?Np(t,Dp(e)):[]},Bp=On(Ip);function Lp(t,e,r){return!0===e?Bp(t,r):Hi(e)?Bp(t,e):t}function Rp(t){return Rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(t)}var $p=["ref"];function zp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Hp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?zp(Object(r),!0).forEach((function(e){Yp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Fp(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Kp(n.key),n)}}function Up(t,e,r){return e=qp(e),function(t,e){if(e&&("object"===Rp(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Wp(t)}(t,Vp()?Reflect.construct(e,r||[],qp(t).constructor):e.apply(t,r))}function Vp(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Vp=function(){return!!t})()}function qp(t){return qp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qp(t)}function Wp(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xp(t,e){return Xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Xp(t,e)}function Yp(t,e,r){return(e=Kp(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Kp(t){var e=function(t,e){if("object"!=Rp(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Rp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Rp(e)?e:String(e)}function Gp(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Zp(t){return t.value}var Jp=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Yp(Wp(t=Up(this,e,[].concat(n))),"lastBoundingBox",{width:-1,height:-1}),t}var r,n,i;return 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&&Xp(t,e)}(e,G),r=e,i=[{key:"getWithHeight",value:function(t,e){var r=t.props.layout;return"vertical"===r&&tc(t.props.height)?{height:t.props.height}:"horizontal"===r?{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?Hp({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,c=n.margin,u=n.chartWidth,l=n.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)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),Hp(Hp({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,n=e.width,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,u=Hp(Hp({position:"absolute",width:n||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return X.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(X.isValidElement(t))return X.cloneElement(t,e);if("function"==typeof t)return X.createElement(t,e);e.ref;var r=Gp(e,$p);return X.createElement(Vl,r)}(r,Hp(Hp({},this.props),{},{payload:Lp(c,a,Zp)})))}}])&&Fp(r.prototype,n),i&&Fp(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Yp(Jp,"displayName","Legend"),Yp(Jp,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Qp=Us,td=li,ed=di?di.isConcatSpreadable:void 0;var rd=js,nd=function(t){return td(t)||Qp(t)||!!(ed&&t&&t[ed])};var id=function t(e,r,n,i,o){var a=-1,c=e.length;for(n||(n=nd),o||(o=[]);++a<c;){var u=e[a];r>0&&n(u)?r>1?t(u,r-1,n,i,o):rd(o,u):i||(o[o.length]=u)}return o};var od=function(t){return function(e,r,n){for(var i=-1,o=Object(e),a=n(e),c=a.length;c--;){var u=a[t?c:++i];if(!1===r(o[u],u,o))break}return e}},ad=od(),cd=Tf;var ud=function(t,e){return t&&ad(t,e,cd)},ld=Mf;var sd=function(t,e){return function(r,n){if(null==r)return r;if(!ld(r))return t(r,n);for(var i=r.length,o=e?i:-1,a=Object(r);(e?o--:++o<i)&&!1!==n(a[o],o,a););return r}}(ud),fd=sd,hd=Mf;var pd=function(t,e){var r=-1,n=hd(t)?Array(t.length):[];return fd(t,(function(t,i,o){n[++r]=e(t,i,o)})),n};var dd=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t},yd=ki;var vd=function(t,e){if(t!==e){var r=void 0!==t,n=null===t,i=t==t,o=yd(t),a=void 0!==e,c=null===e,u=e==e,l=yd(e);if(!c&&!l&&!o&&t>e||o&&a&&u&&!c&&!l||n&&a&&u||!r&&u||!i)return 1;if(!n&&!o&&!l&&t<e||l&&r&&i&&!n&&!o||c&&r&&i||!a&&i||!u)return-1}return 0};var gd=function(t,e,r){for(var n=-1,i=t.criteria,o=e.criteria,a=i.length,c=r.length;++n<a;){var u=vd(i[n],o[n]);if(u)return n>=c?u:u*("desc"==r[n]?-1:1)}return t.index-e.index},md=pa,bd=Ta,wd=pp,xd=pd,Od=dd,Sd=ef,jd=gd,Ad=tp,Pd=li;var Md=function(t,e,r){e=e.length?md(e,(function(t){return Pd(t)?function(e){return bd(e,1===t.length?t[0]:t)}:t})):[Ad];var n=-1;e=md(e,Sd(wd));var i=xd(t,(function(t,r,i){return{criteria:md(e,(function(e){return e(t)})),index:++n,value:t}}));return Od(i,(function(t,e){return jd(t,e,r)}))};var Ed=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)},kd=Math.max;var _d=function(t,e,r){return e=kd(void 0===e?t.length-1:e,0),function(){for(var n=arguments,i=-1,o=kd(n.length-e,0),a=Array(o);++i<o;)a[i]=n[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=n[i];return c[e]=r(a),Ed(t,this,c)}};var Td=function(t){return function(){return t}},Cd=ao,Dd=function(){try{var t=Cd(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),Nd=Td,Id=Dd,Bd=Id?function(t,e){return Id(t,"toString",{configurable:!0,enumerable:!1,value:Nd(e),writable:!0})}:tp,Ld=Bd,Rd=Date.now;var $d=function(t){var e=0,r=0;return function(){var n=Rd(),i=16-(n-r);if(r=n,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Ld),zd=tp,Hd=_d,Fd=$d;var Ud=Po,Vd=Mf,qd=Ys,Wd=Ii;var Xd=function(t,e,r){if(!Wd(r))return!1;var n=typeof e;return!!("number"==n?Vd(r)&&qd(e,r.length):"string"==n&&e in r)&&Ud(r[e],t)},Yd=id,Kd=Md,Gd=Xd,Zd=On(function(t,e){return Fd(Hd(t,e,zd),t+"")}((function(t,e){if(null==t)return[];var r=e.length;return r>1&&Gd(t,e[0],e[1])?e=[]:r>2&&Gd(e[0],e[1],e[2])&&(e=[e[0]]),Kd(t,Yd(e,1),[])})));function Jd(t){return Jd="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},Jd(t)}function Qd(){return Qd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qd.apply(this,arguments)}function ty(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 ey(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ey(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 ey(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ry(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ny(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ry(Object(r),!0).forEach((function(e){iy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ry(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function iy(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Jd(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Jd(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Jd(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function oy(t){return Array.isArray(t)&&ec(t[0])&&ec(t[1])?t.join(" ~ "):t}var ay=function(t){var e=t.separator,r=void 0===e?" : ":e,n=t.contentStyle,i=void 0===n?{}:n,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=t.accessibilityLayer,g=void 0!==v&&v,m=ny({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),b=ny({margin:0},u),w=!Ia(d),x=w?d:"",O=ui("recharts-default-tooltip",h),S=ui("recharts-tooltip-label",p);w&&y&&null!=l&&(x=y(d,l));var j=g?{role:"status","aria-live":"assertive"}:{};return X.createElement("div",Qd({className:O,style:m},j),X.createElement("p",{className:S,style:b},X.isValidElement(x)?x:"".concat(x)),function(){if(l&&l.length){var t=(f?Zd(l,f):l).map((function(t,e){if("none"===t.type)return null;var n=ny({display:"block",paddingTop:4,paddingBottom:4,color:t.color||"#000"},a),i=t.formatter||s||oy,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=ty(h,2);u=p[0],f=p[1]}else u=h}return X.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(e),style:n},ec(f)?X.createElement("span",{className:"recharts-tooltip-item-name"},f):null,ec(f)?X.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,X.createElement("span",{className:"recharts-tooltip-item-value"},u),X.createElement("span",{className:"recharts-tooltip-item-unit"},t.unit||""))}));return X.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},t)}return null}())};function cy(t){return cy="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},cy(t)}function uy(t,e,r){return e=function(t){var e=function(t,e){if("object"!=cy(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cy(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ly="recharts-tooltip-wrapper",sy={visibility:"hidden"};function fy(t){var e=t.coordinate,r=t.translateX,n=t.translateY;return ui(ly,uy(uy(uy(uy({},"".concat(ly,"-right"),tc(r)&&e&&tc(e.x)&&r>=e.x),"".concat(ly,"-left"),tc(r)&&e&&tc(e.x)&&r<e.x),"".concat(ly,"-bottom"),tc(n)&&e&&tc(e.y)&&n>=e.y),"".concat(ly,"-top"),tc(n)&&e&&tc(e.y)&&n<e.y))}function hy(t){var e=t.allowEscapeViewBox,r=t.coordinate,n=t.key,i=t.offsetTopLeft,o=t.position,a=t.reverseDirection,c=t.tooltipDimension,u=t.viewBox,l=t.viewBoxDimension;if(o&&tc(o[n]))return o[n];var s=r[n]-c-i,f=r[n]+i;return e[n]?a[n]?s:f:a[n]?s<u[n]?Math.max(f,u[n]):Math.max(s,u[n]):f+c>u[n]+l?Math.max(s,u[n]):Math.max(f,u[n])}function py(t){return py="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},py(t)}function dy(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yy(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dy(Object(r),!0).forEach((function(e){Oy(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dy(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vy(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Sy(n.key),n)}}function gy(t,e,r){return e=by(e),function(t,e){if(e&&("object"===py(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return wy(t)}(t,my()?Reflect.construct(e,r||[],by(t).constructor):e.apply(t,r))}function my(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(my=function(){return!!t})()}function by(t){return by=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},by(t)}function wy(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xy(t,e){return xy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},xy(t,e)}function Oy(t,e,r){return(e=Sy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Sy(t){var e=function(t,e){if("object"!=py(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=py(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==py(e)?e:String(e)}var jy=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return Oy(wy(t=gy(this,e,[].concat(n))),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),Oy(wy(t),"lastBoundingBox",{width:-1,height:-1}),Oy(wy(t),"handleKeyDown",(function(e){var r,n,i,o;"Escape"===e.key&&t.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=t.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(i=null===(o=t.props.coordinate)||void 0===o?void 0:o.y)&&void 0!==i?i:0}})})),t}var r,n,i;return 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&&xy(t,e)}(e,G),r=e,(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,r=e.active,n=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=function(t){var e,r,n=t.allowEscapeViewBox,i=t.coordinate,o=t.offsetTopLeft,a=t.position,c=t.reverseDirection,u=t.tooltipBox,l=t.useTranslate3d,s=t.viewBox;return{cssProperties:u.height>0&&u.width>0&&i?function(t){var e=t.translateX,r=t.translateY;return{transform:t.useTranslate3d?"translate3d(".concat(e,"px, ").concat(r,"px, 0)"):"translate(".concat(e,"px, ").concat(r,"px)")}}({translateX:e=hy({allowEscapeViewBox:n,coordinate:i,key:"x",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:u.width,viewBox:s,viewBoxDimension:s.width}),translateY:r=hy({allowEscapeViewBox:n,coordinate:i,key:"y",offsetTopLeft:o,position:a,reverseDirection:c,tooltipDimension:u.height,viewBox:s,viewBoxDimension:s.height}),useTranslate3d:l}):sy,cssClasses:fy({translateX:e,translateY:r,coordinate:i})}}({allowEscapeViewBox:n,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=yy(yy({transition:l&&r?"transform ".concat(i,"ms ").concat(o):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&r&&u?"visible":"hidden",position:"absolute",top:0,left:0},y);return X.createElement("div",{tabIndex:-1,className:g,style:b,ref:function(e){t.wrapperNode=e}},a)}}])&&vy(r.prototype,n),i&&vy(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}(),Ay={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return Ay[t]},set:function(t,e){if("string"==typeof t)Ay[t]=e;else{var r=Object.keys(t);r&&r.length&&r.forEach((function(e){Ay[e]=t[e]}))}}};function Py(t){return Py="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},Py(t)}function My(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ey(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?My(Object(r),!0).forEach((function(e){Ny(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):My(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ky(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Iy(n.key),n)}}function _y(t,e,r){return e=Cy(e),function(t,e){if(e&&("object"===Py(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)}(t,Ty()?Reflect.construct(e,r||[],Cy(t).constructor):e.apply(t,r))}function Ty(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Ty=function(){return!!t})()}function Cy(t){return Cy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cy(t)}function Dy(t,e){return Dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Dy(t,e)}function Ny(t,e,r){return(e=Iy(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Iy(t){var e=function(t,e){if("object"!=Py(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Py(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Py(e)?e:String(e)}function By(t){return t.dataKey}var Ly=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_y(this,e,arguments)}var r,n,i;return 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&&Dy(t,e)}(e,G),r=e,(n=[{key:"render",value:function(){var t=this,e=this.props,r=e.active,n=e.allowEscapeViewBox,i=e.animationDuration,o=e.animationEasing,a=e.content,c=e.coordinate,u=e.filterNull,l=e.isAnimationActive,s=e.offset,f=e.payload,h=e.payloadUniqBy,p=e.position,d=e.reverseDirection,y=e.useTranslate3d,v=e.viewBox,g=e.wrapperStyle,m=null!=f?f:[];u&&m.length&&(m=Lp(f.filter((function(e){return null!=e.value&&(!0!==e.hide||t.props.includeHidden)})),h,By));var b=m.length>0;return X.createElement(jy,{allowEscapeViewBox:n,animationDuration:i,animationEasing:o,isAnimationActive:l,active:r,coordinate:c,hasPayload:b,offset:s,position:p,reverseDirection:d,useTranslate3d:y,viewBox:v,wrapperStyle:g},function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):"function"==typeof t?X.createElement(t,e):X.createElement(ay,e)}(a,Ey(Ey({},this.props),{},{payload:m})))}}])&&ky(r.prototype,n),i&&ky(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();Ny(Ly,"displayName","Tooltip"),Ny(Ly,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ay.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 Ry=pi,$y=/\s/;var zy=function(t){for(var e=t.length;e--&&$y.test(t.charAt(e)););return e},Hy=zy,Fy=/^\s+/;var Uy=function(t){return t?t.slice(0,Hy(t)+1).replace(Fy,""):t},Vy=Uy,qy=Ii,Wy=ki,Xy=/^[-+]0x[0-9a-f]+$/i,Yy=/^0b[01]+$/i,Ky=/^0o[0-7]+$/i,Gy=parseInt;var Zy=function(t){if("number"==typeof t)return t;if(Wy(t))return NaN;if(qy(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=qy(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Vy(t);var r=Yy.test(t);return r||Ky.test(t)?Gy(t.slice(2),r?2:8):Xy.test(t)?NaN:+t},Jy=Ii,Qy=function(){return Ry.Date.now()},tv=Zy,ev=Math.max,rv=Math.min;var nv=function(t,e,r){var n,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 r=n,o=i;return n=i=void 0,l=e,a=t.apply(o,r)}function d(t){var r=t-u;return void 0===u||r>=e||r<0||f&&t-l>=o}function y(){var t=Qy();if(d(t))return v(t);c=setTimeout(y,function(t){var r=e-(t-u);return f?rv(r,o-(t-l)):r}(t))}function v(t){return c=void 0,h&&n?p(t):(n=i=void 0,a)}function g(){var t=Qy(),r=d(t);if(n=arguments,i=this,u=t,r){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=tv(e)||0,Jy(r)&&(s=!!r.leading,o=(f="maxWait"in r)?ev(tv(r.maxWait)||0,e):o,h="trailing"in r?!!r.trailing:h),g.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=i=c=void 0},g.flush=function(){return void 0===c?a:v(Qy())},g},iv=nv,ov=Ii;var av=On((function(t,e,r){var n=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return ov(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),iv(t,e,{leading:n,maxWait:e,trailing:i})}));function cv(t){return cv="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},cv(t)}function uv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function lv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?uv(Object(r),!0).forEach((function(e){sv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):uv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function sv(t,e,r){return e=function(t){var e=function(t,e){if("object"!=cv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cv(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function fv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 hv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hv(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 hv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var pv=Z((function(t,e){var r=t.aspect,n=t.initialDimension,i=void 0===n?{width:-1,height:-1}:n,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=J(null),O=J();O.current=m,Q(e,(function(){return Object.assign(x.current,{get current(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),x.current}})}));var S=fv(tt({containerWidth:i.width,containerHeight:i.height}),2),j=S[0],A=S[1],P=et((function(t,e){A((function(r){var n=Math.round(t),i=Math.round(e);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}}))}),[]);rt((function(){var t=function(t){var e,r=t[0].contentRect,n=r.width,i=r.height;P(n,i),null===(e=O.current)||void 0===e||e.call(O,n,i)};y>0&&(t=av(t,y,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),r=x.current.getBoundingClientRect(),n=r.width,i=r.height;return P(n,i),e.observe(x.current),function(){e.disconnect()}}),[P,y]);var M=nt((function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;Uc(Qa(a)||Qa(u),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",a,u),Uc(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=Qa(a)?t:a,i=Qa(u)?e:u;r&&r>0&&(n?i=n/r:i&&(n=i*r),h&&i>h&&(i=h)),Uc(n>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.",n,i,a,u,s,f,r);var o=!Array.isArray(p)&&qa.isElement(p)&&xc(p.type).endsWith("Chart");return X.Children.map(p,(function(t){return qa.isElement(t)?it(t,lv({width:n,height:i},o?{style:lv({height:"100%",width:"100%",maxHeight:i,maxWidth:n},t.props.style)}:{})):t}))}),[r,p,u,h,f,s,j,a]);return X.createElement("div",{id:v?"".concat(v):void 0,className:ui("recharts-responsive-container",g),style:lv(lv({},w),{},{width:a,height:u,minWidth:s,minHeight:f,maxHeight:h}),ref:x},M)})),dv=function(t){return null};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 vv(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function gv(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?vv(Object(r),!0).forEach((function(e){mv(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):vv(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mv(t,e,r){return e=function(t){var e=function(t,e){if("object"!=yv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=yv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==yv(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}dv.displayName="Cell";var bv={widthCache:{},cacheCount:0},wv={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},xv="recharts_measurement_span";var Ov=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||Ay.isSsr)return{width:0,height:0};var r,n=(r=gv({},e),Object.keys(r).forEach((function(t){r[t]||delete r[t]})),r),i=JSON.stringify({text:t,copyStyle:n});if(bv.widthCache[i])return bv.widthCache[i];try{var o=document.getElementById(xv);o||((o=document.createElement("span")).setAttribute("id",xv),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=gv(gv({},wv),n);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return bv.widthCache[i]=u,++bv.cacheCount>2e3&&(bv.cacheCount=0,bv.widthCache={}),u}catch(t){return{width:0,height:0}}};function Sv(t){return Sv="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},Sv(t)}function jv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 Av(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Av(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 Av(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Pv(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Mv(n.key),n)}}function Mv(t){var e=function(t,e){if("object"!=Sv(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Sv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Sv(e)?e:String(e)}var Ev=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,kv=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_v=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Tv=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Cv={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Dv=Object.keys(Cv),Nv="NaN";var Iv=function(){function t(e,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.num=e,this.unit=r,this.num=e,this.unit=r,Number.isNaN(e)&&(this.unit=""),""===r||_v.test(r)||(this.num=NaN,this.unit=""),Dv.includes(r)&&(this.num=function(t,e){return t*Cv[e]}(e,r),this.unit="px")}var e,r,n;return e=t,n=[{key:"parse",value:function(e){var r,n=jv(null!==(r=Tv.exec(e))&&void 0!==r?r:[],3),i=n[1],o=n[2];return new t(parseFloat(i),null!=o?o:"")}}],(r=[{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)}}])&&Pv(e.prototype,r),n&&Pv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Bv(t){if(t.includes(Nv))return Nv;for(var e=t;e.includes("*")||e.includes("/");){var r,n=jv(null!==(r=Ev.exec(e))&&void 0!==r?r:[],4),i=n[1],o=n[2],a=n[3],c=Iv.parse(null!=i?i:""),u=Iv.parse(null!=a?a:""),l="*"===o?c.multiply(u):c.divide(u);if(l.isNaN())return Nv;e=e.replace(Ev,l.toString())}for(;e.includes("+")||/.-\d+(?:\.\d+)?/.test(e);){var s,f=jv(null!==(s=kv.exec(e))&&void 0!==s?s:[],4),h=f[1],p=f[2],d=f[3],y=Iv.parse(null!=h?h:""),v=Iv.parse(null!=d?d:""),g="+"===p?y.add(v):y.subtract(v);if(g.isNaN())return Nv;e=e.replace(kv,g.toString())}return e}var Lv=/\(([^()]*)\)/;function Rv(t){var e=t.replace(/\s+/g,"");return e=function(t){for(var e=t;e.includes("(");){var r=jv(Lv.exec(e),2)[1];e=e.replace(Lv,Bv(r))}return e}(e),e=Bv(e)}function $v(t){var e=function(t){try{return Rv(t)}catch(t){return Nv}}(t.slice(5,-1));return e===Nv?"":e}var zv=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Hv=["dx","dy","angle","className","breakAll"];function Fv(){return Fv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Fv.apply(this,arguments)}function Uv(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Vv(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 qv(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qv(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 qv(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Wv=/[ \f\n\r\t\v\u2028\u2029]+/,Xv=function(t){var e=t.children,r=t.breakAll,n=t.style;try{var i=[];return Ia(e)||(i=r?e.toString().split(""):e.toString().split(Wv)),{wordsWithComputedWidth:i.map((function(t){return{word:t,width:Ov(t,n).width}})),spaceWidth:r?0:Ov(" ",n).width}}catch(t){return null}},Yv=function(t){return[{words:Ia(t)?[]:t.toString().split(Wv)}]},Kv=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||r)&&!Ay.isSsr){var c=Xv({breakAll:o,children:n,style:i});return c?function(t,e,r,n,i){var o=t.maxLines,a=t.children,c=t.style,u=t.breakAll,l=tc(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==n||i||c.width+a+r<Number(n)))c.words.push(o),c.width+=a+r;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),r=Xv({breakAll:u,style:c,children:e+"…"}).wordsWithComputedWidth,i=f(r),a=i.length>o||function(t){return t.reduce((function(t,e){return t.width>e.width?t:e}))}(i).width>Number(n);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=Vv(d(m-1),2),w=b[0],x=b[1],O=Vv(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:n,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,r):Yv(n)}return Yv(n)},Gv="#808080",Zv=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,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?Gv:y,g=Uv(t,zv),m=nt((function(){return Kv({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=Uv(g,Hv);if(!ec(r)||!ec(i))return null;var A,P=r+(tc(b)?b:0),M=i+(tc(w)?w:0);switch(d){case"start":A=$v("calc(".concat(u,")"));break;case"middle":A=$v("calc(".concat((m.length-1)/2," * -").concat(a," + (").concat(u," / 2))"));break;default:A=$v("calc(".concat(m.length-1," * -").concat(a,")"))}var E=[];if(s){var k=m[0].width,_=g.width;E.push("scale(".concat((tc(_)?_/k:1)/k,")"))}return x&&E.push("rotate(".concat(x,", ").concat(P,", ").concat(M,")")),E.length&&(j.transform=E.join(" ")),X.createElement("text",Fv({},_c(j,!0),{x:P,y:M,className:ui("recharts-text",O),textAnchor:h,fill:v.includes("url")?Gv:v}),m.map((function(t,e){var r=t.words.join(S?"":" ");return X.createElement("tspan",{x:P,dy:0===e?A:a,key:r},r)})))};function Jv(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Qv(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function tg(t){let e,r,n;function i(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Jv,r=(e,r)=>Jv(t(e),r),n=(e,r)=>t(e)-r):(e=t===Jv||t===Qv?t:eg,r=t,n=t),{left:i,center:function(t,e,r=0,o=t.length){const a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i=0,o=t.length){if(i<o){if(0!==e(n,n))return o;do{const e=i+o>>>1;r(t[e],n)<=0?i=e+1:o=e}while(i<o)}return i}}}function eg(){return 0}function rg(t){return null===t?NaN:+t}const ng=tg(Jv).right;tg(rg).center;class ig extends Map{constructor(t,e=ag){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,r]of t)this.set(e,r)}get(t){return super.get(og(this,t))}has(t){return super.has(og(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):(t.set(n,r),r)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},r){const n=e(r);t.has(n)&&(r=t.get(n),t.delete(n));return r}(this,t))}}function og({_intern:t,_key:e},r){const n=e(r);return t.has(n)?t.get(n):r}function ag(t){return null!==t&&"object"==typeof t?t.valueOf():t}function cg(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}const ug=Math.sqrt(50),lg=Math.sqrt(10),sg=Math.sqrt(2);function fg(t,e,r){const n=(e-t)/Math.max(0,r),i=Math.floor(Math.log10(n)),o=n/Math.pow(10,i),a=o>=ug?10:o>=lg?5:o>=sg?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<=r&&r<2?fg(t,e,2*r):[c,u,l]}function hg(t,e,r){if(!((r=+r)>0))return[];if((t=+t)===(e=+e))return[t];const n=e<t,[i,o,a]=n?fg(e,t,r):fg(t,e,r);if(!(o>=i))return[];const c=o-i+1,u=new Array(c);if(n)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 pg(t,e,r){return fg(t=+t,e=+e,r=+r)[2]}function dg(t,e,r){r=+r;const n=(e=+e)<(t=+t),i=n?pg(e,t,r):pg(t,e,r);return(n?-1:1)*(i<0?1/-i:i)}function yg(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r<e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function vg(t,e){let r;if(void 0===e)for(const e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function gg(t,e,r=0,n=1/0,i){if(e=Math.floor(e),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(t.length-1,n)),!(r<=e&&e<=n))return t;for(i=void 0===i?cg:function(t=Jv){if(t===Jv)return cg;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,r)=>{const n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(i);n>r;){if(n-r>600){const o=n-r+1,a=e-r+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);gg(t,e,Math.max(r,Math.floor(e-a*u/o+l)),Math.min(n,Math.floor(e+(o-a)*u/o+l)),i)}const o=t[e];let a=r,c=n;for(mg(t,r,e),i(t[n],o)>0&&mg(t,r,n);a<c;){for(mg(t,a,c),++a,--c;i(t[a],o)<0;)++a;for(;i(t[c],o)>0;)--c}0===i(t[r],o)?mg(t,r,c):(++c,mg(t,c,n)),c<=e&&(r=c+1),e<=c&&(n=c-1)}return t}function mg(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function bg(t,e,r=rg){if((n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return+r(t[0],0,t);if(e>=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,o=Math.floor(i),a=+r(t[o],o,t);return a+(+r(t[o+1],o+1,t)-a)*(i-o)}}function wg(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function xg(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 Og=Symbol("implicit");function Sg(){var t=new ig,e=[],r=[],n=Og;function i(i){let o=t.get(i);if(void 0===o){if(n!==Og)return n;t.set(i,o=e.push(i)-1)}return r[o%r.length]}return i.domain=function(r){if(!arguments.length)return e.slice();e=[],t=new ig;for(const n of r)t.has(n)||t.set(n,e.push(n)-1);return i},i.range=function(t){return arguments.length?(r=Array.from(t),i):r.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return Sg(e,r).unknown(n)},wg.apply(i,arguments),i}function jg(){var t,e,r=Sg().unknown(void 0),n=r.domain,i=r.range,o=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var r=n().length,f=a<o,h=f?a:o,p=f?o:a;t=(p-h)/Math.max(1,r-u+2*l),c&&(t=Math.floor(t)),h+=(p-h-t*(r-u))*s,e=t*(1-u),c&&(h=Math.round(h),e=Math.round(e));var d=function(t,e,r){t=+t,e=+e,r=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),o=new Array(i);++n<i;)o[n]=t+n*r;return o}(r).map((function(e){return h+t*e}));return i(f?d.reverse():d)}return delete r.unknown,r.domain=function(t){return arguments.length?(n(t),f()):n()},r.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},r.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,c=!0,f()},r.bandwidth=function(){return e},r.step=function(){return t},r.round=function(t){return arguments.length?(c=!!t,f()):c},r.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),f()):u},r.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),f()):u},r.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},r.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},r.copy=function(){return jg(n(),[o,a]).round(c).paddingInner(u).paddingOuter(l).align(s)},wg.apply(f(),arguments)}function Ag(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Ag(e())},t}function Pg(){return Ag(jg.apply(null,arguments).paddingInner(1))}function Mg(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function Eg(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function kg(){}var _g=.7,Tg=1/_g,Cg="\\s*([+-]?\\d+)\\s*",Dg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ng="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ig=/^#([0-9a-f]{3,8})$/,Bg=new RegExp(`^rgb\\(${Cg},${Cg},${Cg}\\)$`),Lg=new RegExp(`^rgb\\(${Ng},${Ng},${Ng}\\)$`),Rg=new RegExp(`^rgba\\(${Cg},${Cg},${Cg},${Dg}\\)$`),$g=new RegExp(`^rgba\\(${Ng},${Ng},${Ng},${Dg}\\)$`),zg=new RegExp(`^hsl\\(${Dg},${Ng},${Ng}\\)$`),Hg=new RegExp(`^hsla\\(${Dg},${Ng},${Ng},${Dg}\\)$`),Fg={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 Ug(){return this.rgb().formatHex()}function Vg(){return this.rgb().formatRgb()}function qg(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Ig.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?Wg(e):3===r?new Kg(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?Xg(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?Xg(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=Bg.exec(t))?new Kg(e[1],e[2],e[3],1):(e=Lg.exec(t))?new Kg(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Rg.exec(t))?Xg(e[1],e[2],e[3],e[4]):(e=$g.exec(t))?Xg(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=zg.exec(t))?em(e[1],e[2]/100,e[3]/100,1):(e=Hg.exec(t))?em(e[1],e[2]/100,e[3]/100,e[4]):Fg.hasOwnProperty(t)?Wg(Fg[t]):"transparent"===t?new Kg(NaN,NaN,NaN,0):null}function Wg(t){return new Kg(t>>16&255,t>>8&255,255&t,1)}function Xg(t,e,r,n){return n<=0&&(t=e=r=NaN),new Kg(t,e,r,n)}function Yg(t,e,r,n){return 1===arguments.length?((i=t)instanceof kg||(i=qg(i)),i?new Kg((i=i.rgb()).r,i.g,i.b,i.opacity):new Kg):new Kg(t,e,r,null==n?1:n);var i}function Kg(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function Gg(){return`#${tm(this.r)}${tm(this.g)}${tm(this.b)}`}function Zg(){const t=Jg(this.opacity);return`${1===t?"rgb(":"rgba("}${Qg(this.r)}, ${Qg(this.g)}, ${Qg(this.b)}${1===t?")":`, ${t})`}`}function Jg(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Qg(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function tm(t){return((t=Qg(t))<16?"0":"")+t.toString(16)}function em(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new nm(t,e,r,n)}function rm(t){if(t instanceof nm)return new nm(t.h,t.s,t.l,t.opacity);if(t instanceof kg||(t=qg(t)),!t)return new nm;if(t instanceof nm)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),a=NaN,c=o-i,u=(o+i)/2;return c?(a=e===o?(r-n)/c+6*(r<n):r===o?(n-e)/c+2:(e-r)/c+4,c/=u<.5?o+i:2-o-i,a*=60):c=u>0&&u<1?0:a,new nm(a,c,u,t.opacity)}function nm(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function im(t){return(t=(t||0)%360)<0?t+360:t}function om(t){return Math.max(0,Math.min(1,t||0))}function am(t,e,r){return 255*(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)}Mg(kg,qg,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ug,formatHex:Ug,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rm(this).formatHsl()},formatRgb:Vg,toString:Vg}),Mg(Kg,Yg,Eg(kg,{brighter(t){return t=null==t?Tg:Math.pow(Tg,t),new Kg(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?_g:Math.pow(_g,t),new Kg(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Kg(Qg(this.r),Qg(this.g),Qg(this.b),Jg(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:Gg,formatHex:Gg,formatHex8:function(){return`#${tm(this.r)}${tm(this.g)}${tm(this.b)}${tm(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Zg,toString:Zg})),Mg(nm,(function(t,e,r,n){return 1===arguments.length?rm(t):new nm(t,e,r,null==n?1:n)}),Eg(kg,{brighter(t){return t=null==t?Tg:Math.pow(Tg,t),new nm(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?_g:Math.pow(_g,t),new nm(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,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new Kg(am(t>=240?t-240:t+120,i,n),am(t,i,n),am(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new nm(im(this.h),om(this.s),om(this.l),Jg(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=Jg(this.opacity);return`${1===t?"hsl(":"hsla("}${im(this.h)}, ${100*om(this.s)}%, ${100*om(this.l)}%${1===t?")":`, ${t})`}`}}));var cm=t=>()=>t;function um(t){return 1==(t=+t)?lm:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):cm(isNaN(e)?r:e)}}function lm(t,e){var r=e-t;return r?function(t,e){return function(r){return t+r*e}}(t,r):cm(isNaN(t)?e:t)}var sm=function t(e){var r=um(e);function n(t,e){var n=r((t=Yg(t)).r,(e=Yg(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=lm(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return n.gamma=t,n}(1);function fm(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function hm(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=bm(t[r],e[r]);for(;r<n;++r)a[r]=e[r];return function(t){for(r=0;r<i;++r)a[r]=o[r](t);return a}}function pm(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function dm(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function ym(t,e){var r,n={},i={};for(r in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)r in t?n[r]=bm(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var vm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gm=new RegExp(vm.source,"g");function mm(t,e){var r,n,i,o=vm.lastIndex=gm.lastIndex=0,a=-1,c=[],u=[];for(t+="",e+="";(r=vm.exec(t))&&(n=gm.exec(e));)(i=n.index)>o&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(r=r[0])===(n=n[0])?c[a]?c[a]+=n:c[++a]=n:(c[++a]=null,u.push({i:a,x:dm(r,n)})),o=gm.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 r,n=0;n<e;++n)c[(r=u[n]).i]=r.x(t);return c.join("")})}function bm(t,e){var r,n=typeof e;return null==e||"boolean"===n?cm(e):("number"===n?dm:"string"===n?(r=qg(e))?(e=r,sm):mm:e instanceof qg?sm:e instanceof Date?pm:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?fm:Array.isArray(e)?hm:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?ym:dm)(t,e)}function wm(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}}function xm(t,e){void 0===e&&(e=t,t=bm);for(var r=0,n=e.length-1,i=e[0],o=new Array(n<0?0:n);r<n;)o[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return o[e](t-e)}}function Om(t){return+t}var Sm=[0,1];function jm(t){return t}function Am(t,e){return(e-=t=+t)?function(r){return(r-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function Pm(t,e,r){var n=t[0],i=t[1],o=e[0],a=e[1];return i<n?(n=Am(i,n),o=r(a,o)):(n=Am(n,i),o=r(o,a)),function(t){return o(n(t))}}function Mm(t,e,r){var n=Math.min(t.length,e.length)-1,i=new Array(n),o=new Array(n),a=-1;for(t[n]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<n;)i[a]=Am(t[a],t[a+1]),o[a]=r(e[a],e[a+1]);return function(e){var r=ng(t,e,1,n)-1;return o[r](i[r](e))}}function Em(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function km(){var t,e,r,n,i,o,a=Sm,c=Sm,u=bm,l=jm;function s(){var t=Math.min(a.length,c.length);return l!==jm&&(l=function(t,e){var r;return t>e&&(r=t,t=e,e=r),function(r){return Math.max(t,Math.min(e,r))}}(a[0],a[t-1])),n=t>2?Mm:Pm,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?r:(i||(i=n(a.map(t),c,u)))(t(l(e)))}return f.invert=function(r){return l(e((o||(o=n(c,a.map(t),dm)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Om),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=wm,s()},f.clamp=function(t){return arguments.length?(l=!!t||jm,s()):l!==jm},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,s()}}function _m(){return km()(jm,jm)}function Tm(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function Cm(t){return(t=Tm(Math.abs(t)))?t[1]:NaN}var Dm,Nm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Im(t){if(!(e=Nm.exec(t)))throw new Error("invalid format: "+t);var e;return new Bm({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 Bm(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 Lm(t,e){var r=Tm(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}Im.prototype=Bm.prototype,Bm.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 Rm={"%":(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)=>Lm(100*t,e),r:Lm,s:function(t,e){var r=Tm(t,e);if(!r)return t+"";var n=r[0],i=r[1],o=i-(Dm=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:o>a?n+new Array(o-a+1).join("0"):o>0?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+Tm(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function $m(t){return t}var zm,Hm,Fm,Um=Array.prototype.map,Vm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qm(t){var e,r,n=void 0===t.grouping||void 0===t.thousands?$m:(e=Um.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,o=[],a=0,c=e[0],u=0;i>0&&c>0&&(u+c+1>n&&(c=Math.max(1,n-u)),o.push(t.substring(i-=c,i+c)),!((u+=c+1)>n));)c=e[a=(a+1)%e.length];return o.reverse().join(r)}),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?$m:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Um.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=Im(t)).fill,r=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"):Rm[m]||(void 0===v&&(v=12),g=!0,m="g"),(p||"0"===e&&"="===r)&&(p=!0,e="0",r="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?o:/[%p]/.test(m)?u:"",x=Rm[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,r=t.length,n=1,i=-1;n<r;++n)switch(t[n]){case".":i=e=n;break;case"0":0===i&&(i=n),e=n;break;default:if(!+t[n])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?Vm[8+Dm/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=n(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=n(P+t,P.length?d-S.length:1/0),P=""),r){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 r=f(((t=Im(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(Cm(e)/3))),i=Math.pow(10,-n),o=Vm[8+n/3];return function(t){return r(i*t)+o}}}}function Wm(t,e,r,n){var i,o=dg(t,e,r);switch((n=Im(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Cm(e)/3)))-Cm(Math.abs(t)))}(o,a))||(n.precision=i),Fm(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Cm(e)-Cm(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(t){return Math.max(0,-Cm(Math.abs(t)))}(o))||(n.precision=i-2*("%"===n.type))}return Hm(n)}function Xm(t){var e=t.domain;return t.ticks=function(t){var r=e();return hg(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return Wm(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,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=pg(u,l,r))===n)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}n=i}return t},t}function Ym(){var t=_m();return t.copy=function(){return Em(t,Ym())},wg.apply(t,arguments),Xm(t)}function Km(t,e){var r,n=0,i=(t=t.slice()).length-1,o=t[n],a=t[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),t[n]=e.floor(o),t[i]=e.ceil(a),t}function Gm(t){return Math.log(t)}function Zm(t){return Math.exp(t)}function Jm(t){return-Math.log(-t)}function Qm(t){return-Math.exp(-t)}function tb(t){return isFinite(t)?+("1e"+t):t<0?0:t}function eb(t){return(e,r)=>-t(-e,r)}function rb(t){const e=t(Gm,Zm),r=e.domain;let n,i,o=10;function a(){return n=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?tb:t===Math.E?Math.exp:e=>Math.pow(t,e)}(o),r()[0]<0?(n=eb(n),i=eb(i),t(Jm,Qm)):t(Gm,Zm),e}return e.base=function(t){return arguments.length?(o=+t,a()):o},e.domain=function(t){return arguments.length?(r(t),a()):r()},e.ticks=t=>{const e=r();let a=e[0],c=e[e.length-1];const u=c<a;u&&([a,c]=[c,a]);let l,s,f=n(a),h=n(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=hg(a,c,p))}else d=hg(f,h,Math.min(h-f,p)).map(i);return u?d.reverse():d},e.tickFormat=(t,r)=>{if(null==t&&(t=10),null==r&&(r=10===o?"s":","),"function"!=typeof r&&(o%1||null!=(r=Im(r)).precision||(r.trim=!0),r=Hm(r)),t===1/0)return r;const a=Math.max(1,o*t/e.ticks().length);return t=>{let e=t/i(Math.round(n(t)));return e*o<o-.5&&(e*=o),e<=a?r(t):""}},e.nice=()=>r(Km(r(),{floor:t=>i(Math.floor(n(t))),ceil:t=>i(Math.ceil(n(t)))})),e}function nb(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function ib(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ob(t){var e=1,r=t(nb(e),ib(e));return r.constant=function(r){return arguments.length?t(nb(e=+r),ib(e)):e},Xm(r)}function ab(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function cb(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ub(t){return t<0?-t*t:t*t}function lb(t){var e=t(jm,jm),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(jm,jm):.5===r?t(cb,ub):t(ab(r),ab(1/r)):r},Xm(e)}function sb(){var t=lb(km());return t.copy=function(){return Em(t,sb()).exponent(t.exponent())},wg.apply(t,arguments),t}function fb(t){return Math.sign(t)*t*t}zm=qm({thousands:",",grouping:[3],currency:["$",""]}),Hm=zm.format,Fm=zm.formatPrefix;const hb=new Date,pb=new Date;function db(t,e,r,n){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=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{const e=i(t),r=i.ceil(t);return t-e<r-t?e:r},i.offset=(t,r)=>(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,o)=>{const a=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r<n&&o>0))return a;let c;do{a.push(c=new Date(+r)),e(r,o),t(r)}while(c<r&&r<n);return a},i.filter=r=>db((e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)}),((t,n)=>{if(t>=t)if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););})),r&&(i.count=(e,n)=>(hb.setTime(+e),pb.setTime(+n),t(hb),t(pb),Math.floor(r(hb,pb))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const yb=db((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));yb.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?db((e=>{e.setTime(Math.floor(e/t)*t)}),((e,r)=>{e.setTime(+e+r*t)}),((e,r)=>(r-e)/t)):yb:null),yb.range;const vb=1e3,gb=6e4,mb=36e5,bb=864e5,wb=6048e5,xb=2592e6,Ob=31536e6,Sb=db((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*vb)}),((t,e)=>(e-t)/vb),(t=>t.getUTCSeconds()));Sb.range;const jb=db((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*vb)}),((t,e)=>{t.setTime(+t+e*gb)}),((t,e)=>(e-t)/gb),(t=>t.getMinutes()));jb.range;const Ab=db((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*gb)}),((t,e)=>(e-t)/gb),(t=>t.getUTCMinutes()));Ab.range;const Pb=db((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*vb-t.getMinutes()*gb)}),((t,e)=>{t.setTime(+t+e*mb)}),((t,e)=>(e-t)/mb),(t=>t.getHours()));Pb.range;const Mb=db((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*mb)}),((t,e)=>(e-t)/mb),(t=>t.getUTCHours()));Mb.range;const Eb=db((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gb)/bb),(t=>t.getDate()-1));Eb.range;const kb=db((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/bb),(t=>t.getUTCDate()-1));kb.range;const _b=db((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/bb),(t=>Math.floor(t/bb)));function Tb(t){return db((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())*gb)/wb))}_b.range;const Cb=Tb(0),Db=Tb(1),Nb=Tb(2),Ib=Tb(3),Bb=Tb(4),Lb=Tb(5),Rb=Tb(6);function $b(t){return db((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)/wb))}Cb.range,Db.range,Nb.range,Ib.range,Bb.range,Lb.range,Rb.range;const zb=$b(0),Hb=$b(1),Fb=$b(2),Ub=$b(3),Vb=$b(4),qb=$b(5),Wb=$b(6);zb.range,Hb.range,Fb.range,Ub.range,Vb.range,qb.range,Wb.range;const Xb=db((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()));Xb.range;const Yb=db((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()));Yb.range;const Kb=db((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()));Kb.every=t=>isFinite(t=Math.floor(t))&&t>0?db((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,r)=>{e.setFullYear(e.getFullYear()+r*t)})):null,Kb.range;const Gb=db((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 Zb(t,e,r,n,i,o){const a=[[Sb,1,vb],[Sb,5,5e3],[Sb,15,15e3],[Sb,30,3e4],[o,1,gb],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,mb],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,bb],[n,2,1728e5],[r,1,wb],[e,1,xb],[e,3,7776e6],[t,1,Ob]];function c(e,r,n){const i=Math.abs(r-e)/n,o=tg((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(dg(e/Ob,r/Ob,n));if(0===o)return yb.every(Math.max(dg(e,r,n),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,r){const n=e<t;n&&([t,e]=[e,t]);const i=r&&"function"==typeof r.range?r:c(t,e,r),o=i?i.range(t,+e+1):[];return n?o.reverse():o},c]}Gb.every=t=>isFinite(t=Math.floor(t))&&t>0?db((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null,Gb.range;const[Jb,Qb]=Zb(Gb,Yb,zb,_b,Mb,Ab),[tw,ew]=Zb(Kb,Xb,Cb,Eb,Pb,jb);function rw(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 nw(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 iw(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var ow,aw,cw,uw={"-":"",_:" ",0:"0"},lw=/^\s*\d+/,sw=/^%/,fw=/[\\^$*+?|[\]().{}]/g;function hw(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(e)+i:i)}function pw(t){return t.replace(fw,"\\$&")}function dw(t){return new RegExp("^(?:"+t.map(pw).join("|")+")","i")}function yw(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function vw(t,e,r){var n=lw.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function gw(t,e,r){var n=lw.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function mw(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function bw(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function ww(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function xw(t,e,r){var n=lw.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ow(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Sw(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function jw(t,e,r){var n=lw.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function Aw(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Pw(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function Mw(t,e,r){var n=lw.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function Ew(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function kw(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function _w(t,e,r){var n=lw.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function Tw(t,e,r){var n=lw.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function Cw(t,e,r){var n=lw.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Dw(t,e,r){var n=sw.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function Nw(t,e,r){var n=lw.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function Iw(t,e,r){var n=lw.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function Bw(t,e){return hw(t.getDate(),e,2)}function Lw(t,e){return hw(t.getHours(),e,2)}function Rw(t,e){return hw(t.getHours()%12||12,e,2)}function $w(t,e){return hw(1+Eb.count(Kb(t),t),e,3)}function zw(t,e){return hw(t.getMilliseconds(),e,3)}function Hw(t,e){return zw(t,e)+"000"}function Fw(t,e){return hw(t.getMonth()+1,e,2)}function Uw(t,e){return hw(t.getMinutes(),e,2)}function Vw(t,e){return hw(t.getSeconds(),e,2)}function qw(t){var e=t.getDay();return 0===e?7:e}function Ww(t,e){return hw(Cb.count(Kb(t)-1,t),e,2)}function Xw(t){var e=t.getDay();return e>=4||0===e?Bb(t):Bb.ceil(t)}function Yw(t,e){return t=Xw(t),hw(Bb.count(Kb(t),t)+(4===Kb(t).getDay()),e,2)}function Kw(t){return t.getDay()}function Gw(t,e){return hw(Db.count(Kb(t)-1,t),e,2)}function Zw(t,e){return hw(t.getFullYear()%100,e,2)}function Jw(t,e){return hw((t=Xw(t)).getFullYear()%100,e,2)}function Qw(t,e){return hw(t.getFullYear()%1e4,e,4)}function tx(t,e){var r=t.getDay();return hw((t=r>=4||0===r?Bb(t):Bb.ceil(t)).getFullYear()%1e4,e,4)}function ex(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+hw(e/60|0,"0",2)+hw(e%60,"0",2)}function rx(t,e){return hw(t.getUTCDate(),e,2)}function nx(t,e){return hw(t.getUTCHours(),e,2)}function ix(t,e){return hw(t.getUTCHours()%12||12,e,2)}function ox(t,e){return hw(1+kb.count(Gb(t),t),e,3)}function ax(t,e){return hw(t.getUTCMilliseconds(),e,3)}function cx(t,e){return ax(t,e)+"000"}function ux(t,e){return hw(t.getUTCMonth()+1,e,2)}function lx(t,e){return hw(t.getUTCMinutes(),e,2)}function sx(t,e){return hw(t.getUTCSeconds(),e,2)}function fx(t){var e=t.getUTCDay();return 0===e?7:e}function hx(t,e){return hw(zb.count(Gb(t)-1,t),e,2)}function px(t){var e=t.getUTCDay();return e>=4||0===e?Vb(t):Vb.ceil(t)}function dx(t,e){return t=px(t),hw(Vb.count(Gb(t),t)+(4===Gb(t).getUTCDay()),e,2)}function yx(t){return t.getUTCDay()}function vx(t,e){return hw(Hb.count(Gb(t)-1,t),e,2)}function gx(t,e){return hw(t.getUTCFullYear()%100,e,2)}function mx(t,e){return hw((t=px(t)).getUTCFullYear()%100,e,2)}function bx(t,e){return hw(t.getUTCFullYear()%1e4,e,4)}function wx(t,e){var r=t.getUTCDay();return hw((t=r>=4||0===r?Vb(t):Vb.ceil(t)).getUTCFullYear()%1e4,e,4)}function xx(){return"+0000"}function Ox(){return"%"}function Sx(t){return+t}function jx(t){return Math.floor(+t/1e3)}function Ax(t){return new Date(t)}function Px(t){return t instanceof Date?+t:+new Date(+t)}function Mx(t,e,r,n,i,o,a,c,u,l){var s=_m(),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:n(t)<t?i(t)<t?g:m:r(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,Px)):h().map(Ax)},s.ticks=function(e){var r=h();return t(r[0],r[r.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?x:l(e)},s.nice=function(t){var r=h();return t&&"function"==typeof t.range||(t=e(r[0],r[r.length-1],null==t?10:t)),t?h(Km(r,t)):s},s.copy=function(){return Em(s,Mx(t,e,r,n,i,o,a,c,u,l))},s}function Ex(){var t,e,r,n,i,o=0,a=1,c=jm,u=!1;function l(e){return null==e||isNaN(e=+e)?i:c(0===r?.5:(e=(n(e)-t)*r,u?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var r,n;return arguments.length?([r,n]=e,c=t(r,n),l):[c(0),c(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,t=n(o=+o),e=n(a=+a),r=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(bm),l.rangeRound=s(wm),l.unknown=function(t){return arguments.length?(i=t,l):i},function(i){return n=i,t=i(o),e=i(a),r=t===e?0:1/(e-t),l}}function kx(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function _x(){var t=lb(Ex());return t.copy=function(){return kx(t,_x()).exponent(t.exponent())},xg.apply(t,arguments)}function Tx(){var t,e,r,n,i,o,a,c=0,u=.5,l=1,s=1,f=jm,h=!1;function p(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(s*t<s*e?n:i),f(h?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var r,n,i;return arguments.length?([r,n,i]=e,f=xm(t,[r,n,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),r=o(l=+l),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-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(bm),p.rangeRound=d(wm),p.unknown=function(t){return arguments.length?(a=t,p):a},function(a){return o=a,t=a(c),e=a(u),r=a(l),n=t===e?0:.5/(e-t),i=e===r?0:.5/(r-e),s=e<t?-1:1,p}}function Cx(){var t=lb(Tx());return t.copy=function(){return kx(t,Cx()).exponent(t.exponent())},xg.apply(t,arguments)}!function(t){ow=function(t){var e=t.dateTime,r=t.date,n=t.time,i=t.periods,o=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=dw(i),s=yw(i),f=dw(o),h=yw(o),p=dw(a),d=yw(a),y=dw(c),v=yw(c),g=dw(u),m=yw(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:Bw,e:Bw,f:Hw,g:Jw,G:tx,H:Lw,I:Rw,j:$w,L:zw,m:Fw,M:Uw,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Sx,s:jx,S:Vw,u:qw,U:Ww,V:Yw,w:Kw,W:Gw,x:null,X:null,y:Zw,Y:Qw,Z:ex,"%":Ox},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:rx,e:rx,f:cx,g:mx,G:wx,H:nx,I:ix,j:ox,L:ax,m:ux,M:lx,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Sx,s:jx,S:sx,u:fx,U:hx,V:dx,w:yx,W:vx,x:null,X:null,y:gx,Y:bx,Z:xx,"%":Ox},x={a:function(t,e,r){var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=g.exec(e.slice(r));return n?(t.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return j(t,e,r,n)},d:Pw,e:Pw,f:Cw,g:Ow,G:xw,H:Ew,I:Ew,j:Mw,L:Tw,m:Aw,M:kw,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=s.get(n[0].toLowerCase()),r+n[0].length):-1},q:jw,Q:Nw,s:Iw,S:_w,u:gw,U:mw,V:bw,w:vw,W:ww,x:function(t,e,n){return j(t,r,e,n)},X:function(t,e,r){return j(t,n,e,r)},y:Ow,Y:xw,Z:Sw,"%":Dw};function O(t,e){return function(r){var n,i,o,a=[],c=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++c<l;)37===t.charCodeAt(c)&&(a.push(t.slice(u,c)),null!=(i=uw[n=t.charAt(++c)])?n=t.charAt(++c):i="e"===n?" ":"0",(o=e[n])&&(n=o(r,i)),a.push(n),u=c+1);return a.push(t.slice(u,c)),a.join("")}}function S(t,e){return function(r){var n,i,o=iw(1900,void 0,1);if(j(o,t,r+="",0)!=r.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=(n=nw(iw(o.y,0,1))).getUTCDay(),n=i>4||0===i?Hb.ceil(n):Hb(n),n=kb.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(i=(n=rw(iw(o.y,0,1))).getDay(),n=i>4||0===i?Db.ceil(n):Db(n),n=Eb.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.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?nw(iw(o.y,0,1)).getUTCDay():rw(iw(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,nw(o)):rw(o)}}function j(t,e,r,n){for(var i,o,a=0,c=e.length,u=r.length;a<c;){if(n>=u)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in uw?e.charAt(a++):i])||(n=o(t,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(e,b),w.x=O(r,w),w.X=O(n,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),aw=ow.format,ow.parse,cw=ow.utcFormat,ow.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 Dx=Object.freeze({__proto__:null,scaleBand:jg,scaleDiverging:function t(){var e=Xm(Tx()(jm));return e.copy=function(){return kx(e,t())},xg.apply(e,arguments)},scaleDivergingLog:function t(){var e=rb(Tx()).domain([.1,1,10]);return e.copy=function(){return kx(e,t()).base(e.base())},xg.apply(e,arguments)},scaleDivergingPow:Cx,scaleDivergingSqrt:function(){return Cx.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=ob(Tx());return e.copy=function(){return kx(e,t()).constant(e.constant())},xg.apply(e,arguments)},scaleIdentity:function t(e){var r;function n(t){return null==t||isNaN(t=+t)?r:t}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Om),n):e.slice()},n.unknown=function(t){return arguments.length?(r=t,n):r},n.copy=function(){return t(e).unknown(r)},e=arguments.length?Array.from(e,Om):[0,1],Xm(n)},scaleImplicit:Og,scaleLinear:Ym,scaleLog:function t(){const e=rb(km()).domain([1,10]);return e.copy=()=>Em(e,t()).base(e.base()),wg.apply(e,arguments),e},scaleOrdinal:Sg,scalePoint:Pg,scalePow:sb,scaleQuantile:function t(){var e,r=[],n=[],i=[];function o(){var t=0,e=Math.max(1,n.length);for(i=new Array(e-1);++t<e;)i[t-1]=bg(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[ng(i,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e<i.length?i[e]:r[r.length-1]]},a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(let e of t)null==e||isNaN(e=+e)||r.push(e);return r.sort(Jv),o()},a.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return i.slice()},a.copy=function(){return t().domain(r).range(n).unknown(e)},wg.apply(a,arguments)},scaleQuantize:function t(){var e,r=0,n=1,i=1,o=[.5],a=[0,1];function c(t){return null!=t&&t<=t?a[ng(o,t,0,i)]:e}function u(){var t=-1;for(o=new Array(i);++t<i;)o[t]=((t+1)*n-(t-i)*r)/(i+1);return c}return c.domain=function(t){return arguments.length?([r,n]=t,r=+r,n=+n,u()):[r,n]},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?[r,o[0]]:e>=i?[o[i-1],n]:[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([r,n]).range(a).unknown(e)},wg.apply(Xm(c),arguments)},scaleRadial:function t(){var e,r=_m(),n=[0,1],i=!1;function o(t){var n=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(r(t));return isNaN(n)?e:i?Math.round(n):n}return o.invert=function(t){return r.invert(fb(t))},o.domain=function(t){return arguments.length?(r.domain(t),o):r.domain()},o.range=function(t){return arguments.length?(r.range((n=Array.from(t,Om)).map(fb)),o):n.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?(r.clamp(t),o):r.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(r.domain(),n).round(i).clamp(r.clamp()).unknown(e)},wg.apply(o,arguments),Xm(o)},scaleSequential:function t(){var e=Xm(Ex()(jm));return e.copy=function(){return kx(e,t())},xg.apply(e,arguments)},scaleSequentialLog:function t(){var e=rb(Ex()).domain([1,10]);return e.copy=function(){return kx(e,t()).base(e.base())},xg.apply(e,arguments)},scaleSequentialPow:_x,scaleSequentialQuantile:function t(){var e=[],r=jm;function n(t){if(null!=t&&!isNaN(t=+t))return r((ng(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Jv),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map(((t,n)=>r(n/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((r,n)=>function(t,e,r){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 r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,r)),(n=t.length)&&!isNaN(e=+e)){if(e<=0||n<2)return vg(t);if(e>=1)return yg(t);var n,i=(n-1)*e,o=Math.floor(i),a=yg(gg(t,o).subarray(0,o+1));return a+(vg(t.subarray(o+1))-a)*(i-o)}}(e,n/t)))},n.copy=function(){return t(r).domain(e)},xg.apply(n,arguments)},scaleSequentialSqrt:function(){return _x.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=ob(Ex());return e.copy=function(){return kx(e,t()).constant(e.constant())},xg.apply(e,arguments)},scaleSqrt:function(){return sb.apply(null,arguments).exponent(.5)},scaleSymlog:function t(){var e=ob(km());return e.copy=function(){return Em(e,t()).constant(e.constant())},wg.apply(e,arguments)},scaleThreshold:function t(){var e,r=[.5],n=[0,1],i=1;function o(t){return null!=t&&t<=t?n[ng(r,t,0,i)]:e}return o.domain=function(t){return arguments.length?(r=Array.from(t),i=Math.min(r.length,n.length-1),o):r.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(r).range(n).unknown(e)},wg.apply(o,arguments)},scaleTime:function(){return wg.apply(Mx(tw,ew,Kb,Xb,Cb,Eb,Pb,jb,Sb,aw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return wg.apply(Mx(Jb,Qb,Gb,Yb,zb,kb,Mb,Ab,Sb,cw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Wm}),Nx=ki;var Ix=function(t,e,r){for(var n=-1,i=t.length;++n<i;){var o=t[n],a=e(o);if(null!=a&&(void 0===c?a==a&&!Nx(a):r(a,c)))var c=a,u=o}return u};var Bx=Ix,Lx=function(t,e){return t>e},Rx=tp;var $x=function(t){return t&&t.length?Bx(t,Rx,Lx):void 0},zx=On($x);var Hx=Ix,Fx=function(t,e){return t<e},Ux=tp;var Vx=function(t){return t&&t.length?Hx(t,Ux,Fx):void 0},qx=On(Vx),Wx=pa,Xx=pp,Yx=pd,Kx=li;var Gx=id,Zx=function(t,e){return(Kx(t)?Wx:Yx)(t,Xx(e))};var Jx=On((function(t,e){return Gx(Zx(t,e),1)})),Qx=xh;var tO,eO=On((function(t,e){return Qx(t,e)})),rO=1e9,nO=!0,iO="[DecimalError] ",oO=iO+"Invalid argument: ",aO=iO+"Exponent out of range: ",cO=Math.floor,uO=Math.pow,lO=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,sO=1e7,fO=7,hO=9007199254740991,pO=cO(hO/fO),dO={};function yO(t,e){var r,n,i,o,a,c,u,l,s=t.constructor,f=s.precision;if(!t.s||!e.s)return e.s||(e=new s(t)),nO?AO(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?(n=u,o=-o,c=l.length):(n=l,i=a,c=u.length),o>(c=(a=Math.ceil(f/fO))>c?a+1:c+1)&&(o=c,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((c=u.length)-(o=l.length)<0&&(o=c,n=l,l=u,u=n),r=0;o;)r=(u[--o]=u[o]+l[o]+r)/sO|0,u[o]%=sO;for(r&&(u.unshift(r),++i),c=u.length;0==u[--c];)u.pop();return e.d=u,e.e=i,nO?AO(e,f):e}function vO(t,e,r){if(t!==~~t||t<e||t>r)throw Error(oO+t)}function gO(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;e<i;e++)n=t[e]+"",(r=fO-n.length)&&(o+=OO(r)),o+=n;a=t[e],(r=fO-(n=a+"").length)&&(o+=OO(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}dO.absoluteValue=dO.abs=function(){var t=new this.constructor(this);return t.s&&(t.s=1),t},dO.comparedTo=dO.cmp=function(t){var e,r,n,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,r=(n=o.d.length)<(i=t.d.length)?n:i;e<r;++e)if(o.d[e]!==t.d[e])return o.d[e]>t.d[e]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},dO.decimalPlaces=dO.dp=function(){var t=this,e=t.d.length-1,r=(e-t.e)*fO;if(e=t.d[e])for(;e%10==0;e/=10)r--;return r<0?0:r},dO.dividedBy=dO.div=function(t){return mO(this,new this.constructor(t))},dO.dividedToIntegerBy=dO.idiv=function(t){var e=this.constructor;return AO(mO(this,new e(t),0,1),e.precision)},dO.equals=dO.eq=function(t){return!this.cmp(t)},dO.exponent=function(){return wO(this)},dO.greaterThan=dO.gt=function(t){return this.cmp(t)>0},dO.greaterThanOrEqualTo=dO.gte=function(t){return this.cmp(t)>=0},dO.isInteger=dO.isint=function(){return this.e>this.d.length-2},dO.isNegative=dO.isneg=function(){return this.s<0},dO.isPositive=dO.ispos=function(){return this.s>0},dO.isZero=function(){return 0===this.s},dO.lessThan=dO.lt=function(t){return this.cmp(t)<0},dO.lessThanOrEqualTo=dO.lte=function(t){return this.cmp(t)<1},dO.logarithm=dO.log=function(t){var e,r=this,n=r.constructor,i=n.precision,o=i+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(tO))throw Error(iO+"NaN");if(r.s<1)throw Error(iO+(r.s?"NaN":"-Infinity"));return r.eq(tO)?new n(0):(nO=!1,e=mO(SO(r,o),SO(t,o),o),nO=!0,AO(e,i))},dO.minus=dO.sub=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?PO(e,t):yO(e,(t.s=-t.s,t))},dO.modulo=dO.mod=function(t){var e,r=this,n=r.constructor,i=n.precision;if(!(t=new n(t)).s)throw Error(iO+"NaN");return r.s?(nO=!1,e=mO(r,t,0,1).times(t),nO=!0,r.minus(e)):AO(new n(r),i)},dO.naturalExponential=dO.exp=function(){return bO(this)},dO.naturalLogarithm=dO.ln=function(){return SO(this)},dO.negated=dO.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},dO.plus=dO.add=function(t){var e=this;return t=new e.constructor(t),e.s==t.s?yO(e,t):PO(e,(t.s=-t.s,t))},dO.precision=dO.sd=function(t){var e,r,n,i=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(oO+t);if(e=wO(i)+1,r=(n=i.d.length-1)*fO+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},dO.squareRoot=dO.sqrt=function(){var t,e,r,n,i,o,a,c=this,u=c.constructor;if(c.s<1){if(!c.s)return new u(0);throw Error(iO+"NaN")}for(t=wO(c),nO=!1,0==(i=Math.sqrt(+c))||i==1/0?(((e=gO(c.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=cO((t+1)/2)-(t<0||t%2),n=new u(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new u(i.toString()),i=a=(r=u.precision)+3;;)if(n=(o=n).plus(mO(c,o,a+2)).times(.5),gO(o.d).slice(0,a)===(e=gO(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(AO(o,r+1,0),o.times(o).eq(c)){n=o;break}}else if("9999"!=e)break;a+=4}return nO=!0,AO(n,r)},dO.times=dO.mul=function(t){var e,r,n,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,r=s.e+t.e,(u=h.length)<(l=p.length)&&(o=h,h=p,p=o,a=u,u=l,l=a),o=[],n=a=u+l;n--;)o.push(0);for(n=l;--n>=0;){for(e=0,i=u+n;i>n;)c=o[i]+p[n]*h[i-n-1]+e,o[i--]=c%sO|0,e=c/sO|0;o[i]=(o[i]+e)%sO|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,nO?AO(t,f.precision):t},dO.toDecimalPlaces=dO.todp=function(t,e){var r=this,n=r.constructor;return r=new n(r),void 0===t?r:(vO(t,0,rO),void 0===e?e=n.rounding:vO(e,0,8),AO(r,t+wO(r)+1,e))},dO.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=MO(n,!0):(vO(t,0,rO),void 0===e?e=i.rounding:vO(e,0,8),r=MO(n=AO(new i(n),t+1,e),!0,t+1)),r},dO.toFixed=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?MO(i):(vO(t,0,rO),void 0===e?e=o.rounding:vO(e,0,8),r=MO((n=AO(new o(i),t+wO(i)+1,e)).abs(),!1,t+wO(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},dO.toInteger=dO.toint=function(){var t=this,e=t.constructor;return AO(new e(t),wO(t)+1,e.rounding)},dO.toNumber=function(){return+this},dO.toPower=dO.pow=function(t){var e,r,n,i,o,a,c=this,u=c.constructor,l=+(t=new u(t));if(!t.s)return new u(tO);if(!(c=new u(c)).s){if(t.s<1)throw Error(iO+"Infinity");return c}if(c.eq(tO))return c;if(n=u.precision,t.eq(tO))return AO(c,n);if(a=(e=t.e)>=(r=t.d.length-1),o=c.s,a){if((r=l<0?-l:l)<=hO){for(i=new u(tO),e=Math.ceil(n/fO+4),nO=!1;r%2&&EO((i=i.times(c)).d,e),0!==(r=cO(r/2));)EO((c=c.times(c)).d,e);return nO=!0,t.s<0?new u(tO).div(i):AO(i,n)}}else if(o<0)throw Error(iO+"NaN");return o=o<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,nO=!1,i=t.times(SO(c,n+12)),nO=!0,(i=bO(i)).s=o,i},dO.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?n=MO(i,(r=wO(i))<=o.toExpNeg||r>=o.toExpPos):(vO(t,1,rO),void 0===e?e=o.rounding:vO(e,0,8),n=MO(i=AO(new o(i),t,e),t<=(r=wO(i))||r<=o.toExpNeg,t)),n},dO.toSignificantDigits=dO.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(vO(t,1,rO),void 0===e?e=r.rounding:vO(e,0,8)),AO(new r(this),t,e)},dO.toString=dO.valueOf=dO.val=dO.toJSON=dO[Symbol.for("nodejs.util.inspect.custom")]=function(){var t=this,e=wO(t),r=t.constructor;return MO(t,e<=r.toExpNeg||e>=r.toExpPos)};var mO=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%sO|0,n=r/sO|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(t[i]!=e[i]){o=t[i]>e[i]?1:-1;break}return o}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]<e[r]?1:0,t[r]=n*sO+t[r]-e[r];for(;!t[0]&&t.length>1;)t.shift()}return function(n,i,o,a){var c,u,l,s,f,h,p,d,y,v,g,m,b,w,x,O,S,j,A=n.constructor,P=n.s==i.s?1:-1,M=n.d,E=i.d;if(!n.s)return new A(n);if(!i.s)throw Error(iO+"Division by zero");for(u=n.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+(wO(n)-wO(i))+1:o)<0)return new A(0);if(m=m/fO+2|0,l=0,1==S)for(s=0,E=E[0],m++;(l<x||s)&&m--;l++)b=s*sO+(M[l]||0),d[l]=b/E|0,s=b%E|0;else{for((s=sO/(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]>=sO/2&&++O;do{s=0,(c=e(E,y,S,v))<0?(g=y[0],S!=v&&(g=g*sO+(y[1]||0)),(s=g/O|0)>1?(s>=sO&&(s=sO-1),1==(c=e(f=t(E,s),y,h=f.length,v=y.length))&&(s--,r(f,S<h?j:E,h))):(0==s&&(c=s=1),f=E.slice()),(h=f.length)<v&&f.unshift(0),r(y,f,v),-1==c&&(c=e(E,y,S,v=y.length))<1&&(s++,r(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,AO(p,a?o+wO(p)+1:o)}}();function bO(t,e){var r,n,i,o,a,c=0,u=0,l=t.constructor,s=l.precision;if(wO(t)>16)throw Error(aO+wO(t));if(!t.s)return new l(tO);for(null==e?(nO=!1,a=s):a=e,o=new l(.03125);t.abs().gte(.1);)t=t.times(o),u+=5;for(a+=Math.log(uO(2,u))/Math.LN10*2+5|0,r=n=i=new l(tO),l.precision=a;;){if(n=AO(n.times(t),a),r=r.times(++c),gO((o=i.plus(mO(n,r,a))).d).slice(0,a)===gO(i.d).slice(0,a)){for(;u--;)i=AO(i.times(i),a);return l.precision=s,null==e?(nO=!0,AO(i,s)):i}i=o}}function wO(t){for(var e=t.e*fO,r=t.d[0];r>=10;r/=10)e++;return e}function xO(t,e,r){if(e>t.LN10.sd())throw nO=!0,r&&(t.precision=r),Error(iO+"LN10 precision limit exceeded");return AO(new t(t.LN10),e)}function OO(t){for(var e="";t--;)e+="0";return e}function SO(t,e){var r,n,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(iO+(h.s?"NaN":"-Infinity"));if(h.eq(tO))return new d(0);if(null==e?(nO=!1,l=y):l=e,h.eq(10))return null==e&&(nO=!0),xO(d,l);if(l+=10,d.precision=l,n=(r=gO(p)).charAt(0),o=wO(h),!(Math.abs(o)<15e14))return u=xO(d,l+2,y).times(o+""),h=SO(new d(n+"."+r.slice(1)),l-10).plus(u),d.precision=y,null==e?(nO=!0,AO(h,y)):h;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=gO((h=h.times(t)).d)).charAt(0),f++;for(o=wO(h),n>1?(h=new d("0."+r),o++):h=new d(n+"."+r.slice(1)),c=a=h=mO(h.minus(tO),h.plus(tO),l),s=AO(h.times(h),l),i=3;;){if(a=AO(a.times(s),l),gO((u=c.plus(mO(a,new d(i),l))).d).slice(0,l)===gO(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(xO(d,l+2,y).times(o+""))),c=mO(c,new d(f),l),d.precision=y,null==e?(nO=!0,AO(c,y)):c;c=u,i+=2}}function jO(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,r=r-n-1,t.e=cO(r/fO),t.d=[],n=(r+1)%fO,r<0&&(n+=fO),n<i){for(n&&t.d.push(+e.slice(0,n)),i-=fO;n<i;)t.d.push(+e.slice(n,n+=fO));e=e.slice(n),n=fO-e.length}else n-=i;for(;n--;)e+="0";if(t.d.push(+e),nO&&(t.e>pO||t.e<-pO))throw Error(aO+r)}else t.s=0,t.e=0,t.d=[0];return t}function AO(t,e,r){var n,i,o,a,c,u,l,s,f=t.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((n=e-a)<0)n+=fO,i=e,l=f[s=0];else{if((s=Math.ceil((n+1)/fO))>=(o=f.length))return t;for(l=o=f[s],a=1;o>=10;o/=10)a++;i=(n%=fO)-fO+a}if(void 0!==r&&(c=l/(o=uO(10,a-i-1))%10|0,u=e<0||void 0!==f[s+1]||l%o,u=r<4?(c||u)&&(0==r||r==(t.s<0?3:2)):c>5||5==c&&(4==r||u||6==r&&(n>0?i>0?l/uO(10,a-i):0:f[s-1])%10&1||r==(t.s<0?8:7))),e<1||!f[0])return u?(o=wO(t),f.length=1,e=e-o-1,f[0]=uO(10,(fO-e%fO)%fO),t.e=cO(-e/fO)||0):(f.length=1,f[0]=t.e=t.s=0),t;if(0==n?(f.length=s,o=1,s--):(f.length=s+1,o=uO(10,fO-n),f[s]=i>0?(l/uO(10,a-i)%uO(10,i)|0)*o:0),u)for(;;){if(0==s){(f[0]+=o)==sO&&(f[0]=1,++t.e);break}if(f[s]+=o,f[s]!=sO)break;f[s--]=0,o=1}for(n=f.length;0===f[--n];)f.pop();if(nO&&(t.e>pO||t.e<-pO))throw Error(aO+wO(t));return t}function PO(t,e){var r,n,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),nO?AO(e,p):e;if(u=t.d,f=e.d,n=e.e,l=t.e,u=u.slice(),a=l-n){for((s=a<0)?(r=u,a=-a,c=f.length):(r=f,n=l,c=u.length),a>(i=Math.max(Math.ceil(p/fO),c)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.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&&(r=u,u=f,f=r,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]=sO-1;--u[o],u[i]+=sO}u[i]-=f[i]}for(;0===u[--c];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=n,nO?AO(e,p):e):new h(0)}function MO(t,e,r){var n,i=wO(t),o=gO(t.d),a=o.length;return e?(r&&(n=r-a)>0?o=o.charAt(0)+"."+o.slice(1)+OO(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+OO(-i-1)+o,r&&(n=r-a)>0&&(o+=OO(n))):i>=a?(o+=OO(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+OO(n))):((n=i+1)<a&&(o=o.slice(0,n)+"."+o.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(o+="."),o+=OO(n))),t.s<0?"-"+o:o}function EO(t,e){if(t.length>e)return t.length=e,!0}function kO(t){if(!t||"object"!=typeof t)throw Error(iO+"Object expected");var e,r,n,i=["precision",1,rO,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e<i.length;e+=3)if(void 0!==(n=t[r=i[e]])){if(!(cO(n)===n&&n>=i[e+1]&&n<=i[e+2]))throw Error(oO+r+": "+n);this[r]=n}if(void 0!==(n=t[r="LN10"])){if(n!=Math.LN10)throw Error(oO+r+": "+n);this[r]=new this(n)}return this}var _O=function t(e){var r,n,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(oO+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])):jO(e,t.toString())}if("string"!=typeof t)throw Error(oO+t);if(45===t.charCodeAt(0)?(t=t.slice(1),e.s=-1):e.s=1,!lO.test(t))throw Error(oO+t);jO(e,t)}if(o.prototype=dO,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=kO,void 0===e&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)e.hasOwnProperty(n=i[r++])||(e[n]=this[n]);return o.config(e),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});tO=new _O(1);var TO=_O;function CO(t){return function(t){if(Array.isArray(t))return DO(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 DO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DO(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 DO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var NO=function(t){return t},IO={"@@functional/placeholder":!0},BO=function(t){return t===IO},LO=function(t){return function e(){return 0===arguments.length||1===arguments.length&&BO(arguments.length<=0?void 0:arguments[0])?e:t.apply(void 0,arguments)}},RO=function t(e,r){return 1===e?r:LO((function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.filter((function(t){return t!==IO})).length;return a>=e?r.apply(void 0,i):t(e-a,LO((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=i.map((function(t){return BO(t)?e.shift():t}));return r.apply(void 0,CO(o).concat(e))})))}))},$O=function(t){return RO(t.length,t)},zO=function(t,e){for(var r=[],n=t;n<e;++n)r[n-t]=n;return r},HO=$O((function(t,e){return Array.isArray(e)?e.map(t):Object.keys(e).map((function(t){return e[t]})).map(t)})),FO=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];if(!e.length)return NO;var n=e.reverse(),i=n[0],o=n.slice(1);return function(){return o.reduce((function(t,e){return e(t)}),i.apply(void 0,arguments))}},UO=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},VO=function(t){var e=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return e&&i.every((function(t,r){return t===e[r]}))?r:(e=i,r=t.apply(void 0,i))}};var qO=$O((function(t,e,r){var n=+t;return n+r*(+e-n)})),WO=$O((function(t,e,r){var n=e-+t;return(r-t)/(n=n||1/0)})),XO=$O((function(t,e,r){var n=e-+t;return n=n||1/0,Math.max(0,Math.min(1,(r-t)/n))})),YO={rangeStep:function(t,e,r){for(var n=new TO(t),i=0,o=[];n.lt(e)&&i<1e5;)o.push(n.toNumber()),n=n.add(r),i++;return o},getDigitCount:function(t){return 0===t?1:Math.floor(new TO(t).abs().log(10).toNumber())+1},interpolateNumber:qO,uninterpolateNumber:WO,uninterpolateTruncation:XO};function KO(t){return function(t){if(Array.isArray(t))return JO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||ZO(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 GO(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 r=[],n=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==c.return||c.return()}finally{if(i)throw o}}return r}(t,e)||ZO(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 ZO(t,e){if(t){if("string"==typeof t)return JO(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?JO(t,e):void 0}}function JO(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function QO(t){var e=GO(t,2),r=e[0],n=e[1],i=r,o=n;return r>n&&(i=n,o=r),[i,o]}function tS(t,e,r){if(t.lte(0))return new TO(0);var n=YO.getDigitCount(t.toNumber()),i=new TO(10).pow(n),o=t.div(i),a=1!==n?.05:.1,c=new TO(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return e?c:new TO(Math.ceil(c))}function eS(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((e-t)/(r-1)))return{step:new TO(0),tickMin:new TO(0),tickMax:new TO(0)};var o,a=tS(new TO(e).sub(t).div(r-1),n,i);o=t<=0&&e>=0?new TO(0):(o=new TO(t).add(e).div(2)).sub(new TO(o).mod(a));var c=Math.ceil(o.sub(t).div(a).toNumber()),u=Math.ceil(new TO(e).sub(o).div(a).toNumber()),l=c+u+1;return l>r?eS(t,e,r,n,i+1):(l<r&&(u=e>0?u+(r-l):u,c=e>0?c:c+(r-l)),{step:a,tickMin:o.sub(new TO(c).mul(a)),tickMax:o.add(new TO(u).mul(a))})}var rS=VO((function(t){var e=GO(t,2),r=e[0],n=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=GO(QO([r,n]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(KO(zO(0,i-1).map((function(){return 1/0})))):[].concat(KO(zO(0,i-1).map((function(){return-1/0}))),[l]);return r>n?UO(s):s}if(u===l)return function(t,e,r){var n=1,i=new TO(t);if(!i.isint()&&r){var o=Math.abs(t);o<1?(n=new TO(10).pow(YO.getDigitCount(t)-1),i=new TO(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new TO(Math.floor(t)))}else 0===t?i=new TO(Math.floor((e-1)/2)):r||(i=new TO(Math.floor(t)));var a=Math.floor((e-1)/2);return FO(HO((function(t){return i.add(new TO(t-a).mul(n)).toNumber()})),zO)(0,e)}(u,i,o);var f=eS(u,l,a,o),h=f.step,p=f.tickMin,d=f.tickMax,y=YO.rangeStep(p,d.add(new TO(.1).mul(h)),h);return r>n?UO(y):y})),nS=VO((function(t,e){var r=GO(t,2),n=r[0],i=r[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=GO(QO([n,i]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[n,i];if(c===u)return[c];var l=Math.max(e,2),s=tS(new TO(u).sub(c).div(l-1),o,0),f=[].concat(KO(YO.rangeStep(new TO(c),new TO(u).sub(new TO(.99).mul(s)),s)),[u]);return n>i?UO(f):f})),iS="production"===process.env.NODE_ENV,oS="Invariant failed";function aS(t,e){if(!t){if(iS)throw new Error(oS);var r="function"==typeof e?e():e,n=r?"".concat(oS,": ").concat(r):oS;throw new Error(n)}}var cS=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function uS(){return uS=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},uS.apply(this,arguments)}function lS(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 sS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sS(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 sS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function fS(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function hS(t){var e=t.offset,r=t.layout,n=t.width,i=t.dataKey,o=t.data,a=t.dataPointFormatter,c=t.xAxis,u=t.yAxis,l=fS(t,cS),s=_c(l,!1);"x"===t.direction&&"number"!==c.type&&("production"!==process.env.NODE_ENV?aS(!1,'ErrorBar requires Axis type property to be "number".'):aS(!1));var 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=lS(p,2);d=g[0],y=g[1]}else d=y=p;if("vertical"===r){var m=c.scale,b=f+e,w=b+n,x=b-n,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"===r){var j=u.scale,A=l+e,P=A-n,M=A+n,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 X.createElement(Hc,uS({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 X.createElement("line",uS({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))})))}));return X.createElement(Hc,{className:"recharts-errorBars"},f)}function pS(t){return pS="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},pS(t)}function dS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?dS(Object(r),!0).forEach((function(e){vS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=pS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}hS.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},hS.displayName="ErrorBar";var gS=function(t){var e,r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,o=t.legendContent,a=Pc(r,Jp);return a?(e=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(n||[]).reduce((function(t,e){var r=e.item,n=e.props,i=n.sectors||n.data||[];return t.concat(i.map((function(t){return{type:a.props.iconType||r.props.legendType,value:t.name,color:t.fill,payload:t}})))}),[]):(n||[]).map((function(t){var e=t.item,r=e.props,n=r.dataKey,i=r.name,o=r.legendType;return{inactive:r.hide,dataKey:n,type:a.props.iconType||o||"square",color:PS(e),value:i||n,payload:e.props}})),yS(yS(yS({},a.props),Jp.getWithHeight(a,i)),{},{payload:e,item:a})):null};function mS(t){return mS="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},mS(t)}function bS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function wS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bS(Object(r),!0).forEach((function(e){xS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function xS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=mS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=mS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==mS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function OS(t){return function(t){if(Array.isArray(t))return SS(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 SS(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SS(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 SS(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jS(t,e,r){return Ia(t)||Ia(e)?r:ec(e)?Na(t,e,r):Hi(e)?e(t):r}function AS(t,e,r,n){var i=Jx(t,(function(t){return jS(t,e)}));if("number"===r){var o=i.filter((function(t){return tc(t)||parseFloat(t)}));return o.length?[qx(o),zx(o)]:[1/0,-1/0]}return(n?i.filter((function(t){return!Ia(t)})):i).map((function(t){return ec(t)||t instanceof Date?t:""}))}var PS=function(t){var e,r=t.type.displayName,n=t.props,i=n.stroke,o=n.fill;switch(r){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},MS=function(t,e,r,n,i){var o=Ac(e.props.children,hS).filter((function(t){return function(t,e,r){return!!Ia(e)||("horizontal"===t?"yAxis"===e:"vertical"===t||"x"===r?"xAxis"===e:"y"!==r||"yAxis"===e)}(n,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 n=jS(e,r,0),i=Array.isArray(n)?[qx(n),zx(n)]:[n,n],o=a.reduce((function(t,r){var n=jS(e,r,0),o=i[0]-Math.abs(Array.isArray(n)?n[0]:n),a=i[1]+Math.abs(Array.isArray(n)?n[1]:n);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},ES=function(t,e,r,n,i){var o=e.map((function(e){var o=e.props.dataKey;return"number"===r&&o&&MS(t,e,o,n)||AS(t,o,r,i)}));if("number"===r)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 r=0,n=e.length;r<n;r++)a[e[r]]||(a[e[r]]=!0,t.push(e[r]));return t}),[])},kS=function(t,e){return"horizontal"===t&&"xAxis"===e||"vertical"===t&&"yAxis"===e||"centric"===t&&"angleAxis"===e||"radial"===t&&"radiusAxis"===e},_S=function(t,e,r){if(!t)return null;var n=t.scale,i=t.duplicateDomain,o=t.type,a=t.range,c="scaleBand"===t.realScaleType?n.bandwidth()/2:2,u=(e||r)&&"category"===o&&n.bandwidth?n.bandwidth()/c:0;return u="angleAxis"===t.axisType&&(null==a?void 0:a.length)>=2?2*Ja(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:n(e)+u,value:t,offset:u}})).filter((function(t){return!Za(t.coordinate)})):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map((function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}})):n.ticks&&!r?n.ticks(t.tickCount).map((function(t){return{coordinate:n(t)+u,value:t,offset:u}})):n.domain().map((function(t,e){return{coordinate:n(t)+u,value:i?i[t]:t,index:e,offset:u}}))},TS=new WeakMap,CS=function(t,e){if("function"!=typeof e)return t;TS.has(t)||TS.set(t,new WeakMap);var r=TS.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},DS=1e-4,NS={sign:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0,a=0;a<e;++a){var c=Za(t[a][r][1])?t[a][r][0]:t[a][r][1];c>=0?(t[a][r][0]=i,t[a][r][1]=i+c,i=t[a][r][1]):(t[a][r][0]=o,t[a][r][1]=o+c,o=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,i,o=0,a=t[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=t[r][o][1]||0;if(i)for(r=0;r<n;++r)t[r][o][1]/=i}bl(t,e)}},none:bl,silhouette:function(t,e){if((r=t.length)>0){for(var r,n=0,i=t[e[0]],o=i.length;n<o;++n){for(var a=0,c=0;a<r;++a)c+=t[a][n][1]||0;i[n][1]+=i[n][0]=-c/2}bl(t,e)}},wiggle:function(t,e){if((i=t.length)>0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,a=1;a<n;++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}r[a-1][1]+=r[a-1][0]=o,u&&(o-=l/u)}r[a-1][1]+=r[a-1][0]=o,bl(t,e)}},positive:function(t){var e=t.length;if(!(e<=0))for(var r=0,n=t[0].length;r<n;++r)for(var i=0,o=0;o<e;++o){var a=Za(t[o][r][1])?t[o][r][0]:t[o][r][1];a>=0?(t[o][r][0]=i,t[o][r][1]=i+a,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}}},IS=function(t,e,r){var n=e.map((function(t){return t.props.dataKey})),i=NS[r],o=function(){var t=bu([]),e=wl,r=bl,n=xl;function i(i){var o,a,c=Array.from(t.apply(this,arguments),Ol),u=c.length,l=-1;for(const t of i)for(o=0,++l;o<u;++o)(c[o][l]=[0,+n(t,c[o].key,l,i)]).data=t;for(o=0,a=Cu(e(c));o<u;++o)c[a[o]].index=o;return r(c,a),c}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:bu(Array.from(e)),i):t},i.value=function(t){return arguments.length?(n="function"==typeof t?t:bu(+t),i):n},i.order=function(t){return arguments.length?(e=null==t?wl:"function"==typeof t?t:bu(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(r=null==t?bl:t,i):r},i}().keys(n).value((function(t,e){return+jS(t,e,0)})).order(wl).offset(i);return o(t)};function BS(t){var e=t.axis,r=t.ticks,n=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=cc(r,"value",i[e.dataKey]);if(c)return c.coordinate+n/2}return r[o]?r[o].coordinate+n/2:null}var u=jS(i,Ia(a)?e.dataKey:a);return Ia(u)?null:e.scale(u)}var LS=function(t){var e=t.axis,r=t.ticks,n=t.offset,i=t.bandSize,o=t.entry,a=t.index;if("category"===e.type)return r[a]?r[a].coordinate+n:null;var c=jS(o,e.dataKey,e.domain[a]);return Ia(c)?null:e.scale(c)-i/2+n},RS=function(t,e,r){return Object.keys(t).reduce((function(n,i){var o=t[i].stackedData.reduce((function(t,n){var i=n.slice(e,r+1).reduce((function(t,e){return[qx(e.concat([t[0]]).filter(tc)),zx(e.concat([t[1]]).filter(tc))]}),[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],n[0]),Math.max(o[1],n[1])]}),[1/0,-1/0]).map((function(t){return t===1/0||t===-1/0?0:t}))},$S=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,zS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HS=function(t,e,r){if(Hi(t))return t(e,r);if(!Array.isArray(t))return e;var n=[];if(tc(t[0]))n[0]=r?t[0]:Math.min(t[0],e[0]);else if($S.test(t[0])){var i=+$S.exec(t[0])[1];n[0]=e[0]-i}else Hi(t[0])?n[0]=t[0](e[0]):n[0]=e[0];if(tc(t[1]))n[1]=r?t[1]:Math.max(t[1],e[1]);else if(zS.test(t[1])){var o=+zS.exec(t[1])[1];n[1]=e[1]+o}else Hi(t[1])?n[1]=t[1](e[1]):n[1]=e[1];return n},FS=function(t,e,r){if(t&&t.scale&&t.scale.bandwidth){var n=t.scale.bandwidth();if(!r||n>0)return n}if(t&&e&&e.length>=2){for(var i=Zd(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 r?void 0:0},US=function(t,e,r){return t&&t.length?eO(t,Na(r,"type.defaultProps.domain"))?e:t:e},VS=function(t,e){var r=t.props,n=r.dataKey,i=r.name,o=r.unit,a=r.formatter,c=r.tooltipType,u=r.chartType,l=r.hide;return wS(wS({},_c(t,!1)),{},{dataKey:n,unit:o,formatter:a,name:i||n,color:PS(t),value:jS(e,n),type:c,payload:e,chartType:u,hide:l})};function qS(t){return qS="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},qS(t)}function WS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function XS(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?WS(Object(r),!0).forEach((function(e){YS(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):WS(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function YS(t,e,r){return e=function(t){var e=function(t,e){if("object"!=qS(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=qS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==qS(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var KS=Math.PI/180,GS=function(t){return 180*t/Math.PI},ZS=function(t,e,r,n){return{x:t+Math.cos(-KS*n)*r,y:e+Math.sin(-KS*n)*r}},JS=function(t,e){var r=t.x,n=t.y,i=e.cx,o=e.cy,a=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(n-o,2))}({x:r,y:n},{x:i,y:o});if(a<=0)return{radius:a};var c=(r-i)/a,u=Math.acos(c);return n>o&&(u=2*Math.PI-u),{radius:a,angle:GS(u),angleInRadian:u}},QS=function(t,e){var r=e.startAngle,n=e.endAngle,i=Math.floor(r/360),o=Math.floor(n/360);return t+360*Math.min(i,o)},tj=function(t,e){var r=t.x,n=t.y,i=JS({x:r,y:n},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,r=t.endAngle,n=Math.floor(e/360),i=Math.floor(r/360),o=Math.min(n,i);return{startAngle:e-360*o,endAngle:r-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?XS(XS({},e),{},{radius:o,angle:QS(p,e)}):null};function ej(t){return ej="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},ej(t)}var rj=["offset"];function nj(t){return function(t){if(Array.isArray(t))return ij(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 ij(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ij(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 ij(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function oj(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function aj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?aj(Object(r),!0).forEach((function(e){uj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):aj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function uj(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ej(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ej(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ej(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function lj(){return lj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lj.apply(this,arguments)}var sj=function(t){var e=t.value,r=t.formatter,n=Ia(t.children)?e:t.children;return Hi(r)?r(n):n},fj=function(t,e,r){var n,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 Ja(e-t)*Math.min(Math.abs(e-t),360)}(d,y),b=m>=0?1:-1;"insideStart"===o?(n=d+b*c,i=v):"insideEnd"===o?(n=y-b*c,i=!v):"end"===o&&(n=y+b*c,i=v),i=m<=0?i:!i;var w=ZS(s,f,g,n),x=ZS(s,f,g,n+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)?nc("recharts-radial-line-"):t.id;return X.createElement("text",lj({},r,{dominantBaseline:"central",className:ui("recharts-radial-bar-label",u)}),X.createElement("defs",null,X.createElement("path",{id:S,d:O})),X.createElement("textPath",{xlinkHref:"#".concat(S)},e))},hj=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e,o=i.cx,a=i.cy,c=i.innerRadius,u=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===n){var s=ZS(o,a,u+r,l),f=s.x;return{x:f,y:s.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var h=ZS(o,a,(c+u)/2,l);return{x:h.x,y:h.y,textAnchor:"middle",verticalAnchor:"middle"}},pj=function(t){var e=t.viewBox,r=t.parentViewBox,n=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*n,h=s>0?"end":"start",p=s>0?"start":"end",d=u>=0?1:-1,y=d*n,v=d>0?"end":"start",g=d>0?"start":"end";if("top"===i)return cj(cj({},{x:a+u/2,y:c-s*n,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(c-r.y,0),width:u}:{});if("bottom"===i)return cj(cj({},{x:a+u/2,y:c+l+f,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(r.y+r.height-(c+l),0),width:u}:{});if("left"===i){var m={x:a-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return cj(cj({},m),r?{width:Math.max(m.x-r.x,0),height:l}:{})}if("right"===i){var b={x:a+u+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"};return cj(cj({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:l}:{})}var w=r?{width:u,height:l}:{};return"insideLeft"===i?cj({x:a+y,y:c+l/2,textAnchor:g,verticalAnchor:"middle"},w):"insideRight"===i?cj({x:a+u-y,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},w):"insideTop"===i?cj({x:a+u/2,y:c+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===i?cj({x:a+u/2,y:c+l-f,textAnchor:"middle",verticalAnchor:h},w):"insideTopLeft"===i?cj({x:a+y,y:c+f,textAnchor:g,verticalAnchor:p},w):"insideTopRight"===i?cj({x:a+u-y,y:c+f,textAnchor:v,verticalAnchor:p},w):"insideBottomLeft"===i?cj({x:a+y,y:c+l-f,textAnchor:g,verticalAnchor:h},w):"insideBottomRight"===i?cj({x:a+u-y,y:c+l-f,textAnchor:v,verticalAnchor:h},w):Bi(i)&&(tc(i.x)||Qa(i.x))&&(tc(i.y)||Qa(i.y))?cj({x:a+ic(i.x,u),y:c+ic(i.y,l),textAnchor:"end",verticalAnchor:"end"},w):cj({x:a+u/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},w)},dj=function(t){return"cx"in t&&tc(t.cx)};function yj(t){var e,r=t.offset,n=cj({offset:void 0===r?5:r},oj(t,rj)),i=n.viewBox,o=n.position,a=n.value,c=n.children,u=n.content,l=n.className,s=void 0===l?"":l,f=n.textBreakAll;if(!i||Ia(a)&&Ia(c)&&!Y(u)&&!Hi(u))return null;if(Y(u))return it(u,n);if(Hi(u)){if(Y(e=ot(u,n)))return e}else e=sj(n);var h=dj(i),p=_c(n,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return fj(n,e,p);var d=h?hj(n):pj(n);return X.createElement(Zv,lj({className:ui("recharts-label",s)},p,d,{breakAll:f}),e)}yj.displayName="Label";var vj=function(t){var e=t.cx,r=t.cy,n=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(tc(d)&&tc(y)){if(tc(s)&&tc(f))return{x:s,y:f,width:d,height:y};if(tc(h)&&tc(p))return{x:h,y:p,width:d,height:y}}return tc(s)&&tc(f)?{x:s,y:f,width:0,height:0}:tc(e)&&tc(r)?{cx:e,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};yj.parseViewBox=vj,yj.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=t.children,i=vj(t),o=Ac(n,yj).map((function(t,r){return it(t,{viewBox:e||i,key:"label-".concat(r)})}));if(!r)return o;var a=function(t,e){return t?!0===t?X.createElement(yj,{key:"label-implicit",viewBox:e}):ec(t)?X.createElement(yj,{key:"label-implicit",viewBox:e,value:t}):Y(t)?t.type===yj?it(t,{key:"label-implicit",viewBox:e}):X.createElement(yj,{key:"label-implicit",content:t,viewBox:e}):Hi(t)?X.createElement(yj,{key:"label-implicit",content:t,viewBox:e}):Bi(t)?X.createElement(yj,lj({viewBox:e},t,{key:"label-implicit"})):null:null}(t.label,e||i);return[a].concat(nj(o))};var gj=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0},mj=On(gj);function bj(t){return bj="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},bj(t)}var wj=["valueAccessor"],xj=["data","dataKey","clockWise","id","textBreakAll"];function Oj(t){return function(t){if(Array.isArray(t))return Sj(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 Sj(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sj(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 Sj(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function jj(){return jj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},jj.apply(this,arguments)}function Aj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Pj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Aj(Object(r),!0).forEach((function(e){Mj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Aj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Mj(t,e,r){return e=function(t){var e=function(t,e){if("object"!=bj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=bj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==bj(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ej(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var kj=function(t){return Array.isArray(t.value)?mj(t.value):t.value};function _j(t){var e=t.valueAccessor,r=void 0===e?kj:e,n=Ej(t,wj),i=n.data,o=n.dataKey,a=n.clockWise,c=n.id,u=n.textBreakAll,l=Ej(n,xj);return i&&i.length?X.createElement(Hc,{className:"recharts-label-list"},i.map((function(t,e){var n=Ia(o)?r(t,e):jS(t&&t.payload,o),i=Ia(c)?{}:{id:"".concat(c,"-").concat(e)};return X.createElement(yj,jj({},_c(t,!0),l,i,{parentViewBox:t.parentViewBox,value:n,textBreakAll:u,viewBox:yj.parseViewBox(Ia(a)?t:Pj(Pj({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))}))):null}function Tj(t){return Tj="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},Tj(t)}function Cj(){return Cj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Cj.apply(this,arguments)}function Dj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Nj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Dj(Object(r),!0).forEach((function(e){Ij(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Dj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ij(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Tj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Tj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Tj(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}_j.displayName="LabelList",_j.renderCallByParent=function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var n=Ac(t.children,_j).map((function(t,r){return it(t,{data:e,key:"labelList-".concat(r)})}));return r?[function(t,e){return t?!0===t?X.createElement(_j,{key:"labelList-implicit",data:e}):X.isValidElement(t)||Hi(t)?X.createElement(_j,{key:"labelList-implicit",data:e,content:t}):Bi(t)?X.createElement(_j,jj({data:e},t,{key:"labelList-implicit"})):null:null}(t.label,e)].concat(Oj(n)):n};var Bj=function(t){var e=t.cx,r=t.cy,n=t.radius,i=t.angle,o=t.sign,a=t.isExternal,c=t.cornerRadius,u=t.cornerIsExternal,l=c*(a?1:-1)+n,s=Math.asin(c/l)/KS,f=u?i:i+o*s,h=u?i-o*s:i;return{center:ZS(e,r,l,f),circleTangency:ZS(e,r,n,f),lineTangency:ZS(e,r,l*Math.cos(s*KS),h),theta:s}},Lj=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.startAngle,a=function(t,e){return Ja(e-t)*Math.min(Math.abs(e-t),359.999)}(o,t.endAngle),c=o+a,u=ZS(e,r,i,o),l=ZS(e,r,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(n>0){var f=ZS(e,r,n,o),h=ZS(e,r,n,c);s+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(n,",").concat(n,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else s+="L ".concat(e,",").concat(r," Z");return s},Rj={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},$j=function(t){var e=Nj(Nj({},Rj),t),r=e.cx,n=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=ui("recharts-sector",f),d=o-i,y=ic(a,d,0,!0);return h=y>0&&Math.abs(l-s)<360?function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=Ja(l-u),f=Bj({cx:e,cy:r,radius:i,angle:u,sign:s,cornerRadius:o,cornerIsExternal:c}),h=f.circleTangency,p=f.lineTangency,d=f.theta,y=Bj({cx:e,cy:r,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 "):Lj({cx:e,cy:r,innerRadius:n,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(n>0){var x=Bj({cx:e,cy:r,radius:n,angle:u,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=x.circleTangency,S=x.lineTangency,j=x.theta,A=Bj({cx:e,cy:r,radius:n,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(r,"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(n,",").concat(n,",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(r,"Z");return w}({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,d/2),forceCornerRadius:c,cornerIsExternal:u,startAngle:l,endAngle:s}):Lj({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:l,endAngle:s}),X.createElement("path",Cj({},_c(e,!0),{className:p,d:h,role:"img"}))};function zj(t){return zj="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},zj(t)}function Hj(){return Hj=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hj.apply(this,arguments)}function Fj(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Uj(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fj(Object(r),!0).forEach((function(e){Vj(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fj(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Vj(t,e,r){return e=function(t){var e=function(t,e){if("object"!=zj(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=zj(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zj(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var qj,Wj,Xj,Yj,Kj,Gj,Zj,Jj,Qj,tA,eA,rA,nA={curveBasisClosed:function(t){return new al(t)},curveBasisOpen:function(t){return new cl(t)},curveBasis:function(t){return new ol(t)},curveBumpX:function(t){return new $u(t,!0)},curveBumpY:function(t){return new $u(t,!1)},curveLinearClosed:function(t){return new ul(t)},curveLinear:Nu,curveMonotoneX:function(t){return new pl(t)},curveMonotoneY:function(t){return new dl(t)},curveNatural:function(t){return new vl(t)},curveStep:function(t){return new ml(t,.5)},curveStepAfter:function(t){return new ml(t,1)},curveStepBefore:function(t){return new ml(t,0)}},iA=function(t){return t.x===+t.x&&t.y===+t.y},oA=function(t){return t.x},aA=function(t){return t.y},cA=function(t){var e,r=t.type,n=void 0===r?"linear":r,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 r="curve".concat(mu(t));return"curveMonotone"!==r&&"curveBump"!==r||!e?nA[r]||Nu:nA["".concat(r).concat("vertical"===e?"Y":"X")]}(n,c),f=l?o.filter((function(t){return iA(t)})):o;if(Array.isArray(a)){var h=l?a.filter((function(t){return iA(t)})):a,p=f.map((function(t,e){return Uj(Uj({},t),{},{base:h[e]})}));return(e="vertical"===c?Ru().y(aA).x1(oA).x0((function(t){return t.base.x})):Ru().x(oA).y1(aA).y0((function(t){return t.base.y}))).defined(iA).curve(s),e(p)}return(e="vertical"===c&&tc(a)?Ru().y(aA).x1(oA).x0(a):tc(a)?Ru().x(oA).y1(aA).y0(a):Lu().x(oA).y(aA)).defined(iA).curve(s),e(f)},uA=function(t){var e=t.className,r=t.points,n=t.path,i=t.pathRef;if(!(r&&r.length||n))return null;var o=r&&r.length?cA(t):n;return X.createElement("path",Hj({},_c(t,!1),dc(t),{className:ui("recharts-curve",e),d:o,ref:i}))},lA={exports:{}};function sA(){if(Wj)return qj;Wj=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return qj=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={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(n,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)}(n),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++)r.call(o,a[s])&&(c[a[s]]=o[a[s]])}}return c},qj}function fA(){if(Yj)return Xj;Yj=1;return Xj="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function hA(){return Gj?Kj:(Gj=1,Kj=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var pA=qa;lA.exports=function(){if(tA)return Qj;tA=1;var t=qa,e=sA(),r=fA(),n=hA(),i=function(){if(Jj)return Zj;Jj=1;var t=function(){};if("production"!==process.env.NODE_ENV){var e=fA(),r={},n=hA();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(n(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 r)){r[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&&(r={})},Zj=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){}}),Qj=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,n,i,o,a){if("function"!=typeof t)return new d("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside arrayOf.");var c=e[n];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+"]",r);if(l instanceof Error)return l}return null}))},element:y((function(t,e,r,n,i){var o=t[e];return c(o)?null:new d("Invalid "+n+" `"+i+"` of type `"+b(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:y((function(e,r,n,i,o){var a=e[r];return t.isValidElementType(a)?null:new d("Invalid "+i+" `"+o+"` of type `"+b(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(t){return y((function(e,r,n,i,o){if(!(e[r]instanceof t)){var a=t.name||f;return new d("Invalid "+i+" `"+o+"` of type `"+((c=e[r]).constructor&&c.constructor.name?c.constructor.name:f)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:y((function(t,e,r,n,i){return m(t[e])?null:new d("Invalid "+n+" `"+i+"` supplied to `"+r+"`, 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(n(u,s)){var f=t(u,s,o,a,c+"."+s,r);if(f instanceof Error)return f}return null}))},oneOf:function(t){return Array.isArray(t)?y((function(e,r,n,i,o){for(var a=e[r],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 `"+n+"`, 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,r);if(null==s)return null;s.data&&n(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,n,i,o,a){var c=e[n],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,r);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(n(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,r);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={},n=0;function i(i,a,c,l,s,h,p){if(l=l||f,h=h||c,p!==r){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]&&n<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,n++)}}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,r,n,i,o,a){var c=e[r];return b(c)!==t?new d("Invalid "+i+" `"+o+"` of type `"+w(c)+"` supplied to `"+n+"`, expected `"+t+"`.",{expectedType:t}):null}))}function g(t,e,r,n,i){return new d((t||"React class")+": "+e+" type `"+r+"."+n+"` 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 r,n=e.call(t);if(e!==t.entries){for(;!(r=n.next()).done;)if(!m(r.value))return!1}else for(;!(r=n.next()).done;){var i=r.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},Qj}()(pA.isElement,!0)}else lA.exports=function(){if(rA)return eA;rA=1;var t=fA();function e(){}function r(){}return r.resetWarningCache=e,eA=function(){function n(e,r,n,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 n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:e};return o.PropTypes=o,o}}()();var dA=On(lA.exports),yA=Object.getOwnPropertyNames,vA=Object.getOwnPropertySymbols,gA=Object.prototype.hasOwnProperty;function mA(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function bA(t){return function(e,r,n){if(!e||!r||"object"!=typeof e||"object"!=typeof r)return t(e,r,n);var i=n.cache,o=i.get(e),a=i.get(r);if(o&&a)return o===r&&a===e;i.set(e,r),i.set(r,e);var c=t(e,r,n);return i.delete(e),i.delete(r),c}}function wA(t){return yA(t).concat(vA(t))}var xA=Object.hasOwn||function(t,e){return gA.call(t,e)};function OA(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var SA="_owner",jA=Object.getOwnPropertyDescriptor,AA=Object.keys;function PA(t,e,r){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function MA(t,e){return OA(t.getTime(),e.getTime())}function EA(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),c=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=n.value,h=f[0],p=f[1],d=i.value,y=d[0],v=d[1];l||o[s]||!(l=r.equals(h,y,c,s,t,e,r)&&r.equals(p,v,h,y,t,e,r))||(o[s]=!0),s++}if(!l)return!1;c++}return!0}function kA(t,e,r){var n,i=AA(t),o=i.length;if(AA(e).length!==o)return!1;for(;o-- >0;){if((n=i[o])===SA&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!xA(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1}return!0}function _A(t,e,r){var n,i,o,a=wA(t),c=a.length;if(wA(e).length!==c)return!1;for(;c-- >0;){if((n=a[c])===SA&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof)return!1;if(!xA(e,n))return!1;if(!r.equals(t[n],e[n],n,n,t,e,r))return!1;if(i=jA(t,n),o=jA(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function TA(t,e){return OA(t.valueOf(),e.valueOf())}function CA(t,e){return t.source===e.source&&t.flags===e.flags}function DA(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.values();(n=a.next())&&!n.done;){for(var c=e.values(),u=!1,l=0;(i=c.next())&&!i.done;)u||o[l]||!(u=r.equals(n.value,i.value,n.value,i.value,t,e,r))||(o[l]=!0),l++;if(!u)return!1}return!0}function NA(t,e){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(t[r]!==e[r])return!1;return!0}var IA="[object Arguments]",BA="[object Boolean]",LA="[object Date]",RA="[object Map]",$A="[object Number]",zA="[object Object]",HA="[object RegExp]",FA="[object Set]",UA="[object String]",VA=Array.isArray,qA="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,WA=Object.assign,XA=Object.prototype.toString.call.bind(Object.prototype.toString);var YA=KA();function KA(t){void 0===t&&(t={});var e,r=t.circular,n=void 0!==r&&r,i=t.createInternalComparator,o=t.createState,a=t.strict,c=void 0!==a&&a,u=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?_A:PA,areDatesEqual:MA,areMapsEqual:n?mA(EA,_A):EA,areObjectsEqual:n?_A:kA,arePrimitiveWrappersEqual:TA,areRegExpsEqual:CA,areSetsEqual:n?mA(DA,_A):DA,areTypedArraysEqual:n?_A:NA};if(r&&(i=WA({},i,r(i))),e){var o=bA(i.areArraysEqual),a=bA(i.areMapsEqual),c=bA(i.areObjectsEqual),u=bA(i.areSetsEqual);i=WA({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t),l=function(t){var e=t.areArraysEqual,r=t.areDatesEqual,n=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(VA(t))return e(t,l,s);if(null!=qA&&qA(t))return u(t,l,s);if(f===Date)return r(t,l,s);if(f===RegExp)return a(t,l,s);if(f===Map)return n(t,l,s);if(f===Set)return c(t,l,s);var h=XA(t);return h===LA?r(t,l,s):h===HA?a(t,l,s):h===RA?n(t,l,s):h===FA?c(t,l,s):h===zA?"function"!=typeof t.then&&"function"!=typeof l.then&&i(t,l,s):h===IA?i(t,l,s):(h===BA||h===$A||h===UA)&&o(t,l,s)}}(u),s=i?i(l):(e=l,function(t,r,n,i,o,a,c){return e(t,r,c)});return function(t){var e=t.circular,r=t.comparator,n=t.createState,i=t.equals,o=t.strict;if(n)return function(t,a){var c=n(),u=c.cache,l=void 0===u?e?new WeakMap:void 0:u,s=c.meta;return r(t,a,{cache:l,equals:i,meta:s,strict:o})};if(e)return function(t,e){return r(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 r(t,e,a)}}({circular:n,comparator:l,createState:o,equals:s,strict:c})}function GA(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(i){r<0&&(r=i),i-r>e?(t(i),r=-1):function(t){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(t)}(n)}))}function ZA(t){return ZA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZA(t)}function JA(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 QA(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return QA(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 QA(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function tP(){var t=function(){return null},e=!1,r=function r(n){if(!e){if(Array.isArray(n)){if(!n.length)return;var i=JA(n),o=i[0],a=i.slice(1);return"number"==typeof o?void GA(r.bind(null,a),o):(r(o),void GA(r.bind(null,a)))}"object"===ZA(n)&&t(n),"function"==typeof n&&n()}};return{stop:function(){e=!0},start:function(t){e=!1,r(t)},subscribe:function(e){return t=e,function(){t=function(){return 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)}function rP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function nP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rP(Object(r),!0).forEach((function(e){iP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function iP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==eP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==eP(n))return n;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:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}KA({strict:!0}),KA({circular:!0}),KA({circular:!0,strict:!0}),KA({createInternalComparator:function(){return OA}}),KA({strict:!0,createInternalComparator:function(){return OA}}),KA({circular:!0,createInternalComparator:function(){return OA}}),KA({circular:!0,createInternalComparator:function(){return OA},strict:!0});var oP=function(t){return t},aP=function(t,e){return Object.keys(e).reduce((function(r,n){return nP(nP({},r),{},iP({},n,t(n,e[n])))}),{})},cP=function(t,e,r){return t.map((function(t){return"".concat((n=t,n.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())})))," ").concat(e,"ms ").concat(r);var n})).join(",")},uP="production"!==process.env.NODE_ENV,lP=function(t,e,r,n,i,o,a,c){if(uP&&"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=[r,n,i,o,a,c],l=0;console.warn(e.replace(/%s/g,(function(){return u[l++]})))}};function sP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||hP(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 fP(t){return function(t){if(Array.isArray(t))return pP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||hP(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 hP(t,e){if(t){if("string"==typeof t)return pP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?pP(t,e):void 0}}function pP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var dP=1e-4,yP=function(t,e){return[0,3*t,3*e-6*t,3*t-3*e+1]},vP=function(t,e){return t.map((function(t,r){return t*Math.pow(e,r)})).reduce((function(t,e){return t+e}))},gP=function(t,e){return function(r){var n=yP(t,e);return vP(n,r)}},mP=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0],i=e[1],o=e[2],a=e[3];if(1===e.length)switch(e[0]){case"linear":n=0,i=0,o=1,a=1;break;case"ease":n=.25,i=.1,o=.25,a=1;break;case"ease-in":n=.42,i=0,o=1,a=1;break;case"ease-out":n=.42,i=0,o=.58,a=1;break;case"ease-in-out":n=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=sP(u,4);n=l[0],i=l[1],o=l[2],a=l[3]}else lP(!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)}lP([n,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=gP(n,o),p=gP(i,a),d=(s=n,f=o,function(t){var e=yP(s,f),r=[].concat(fP(e.map((function(t,e){return t*e})).slice(1)),[0]);return vP(r,t)}),y=function(t){for(var e,r=t>1?1:t,n=r,i=0;i<8;++i){var o=h(n)-r,a=d(n);if(Math.abs(o-r)<dP||a<dP)return p(n);n=(e=n-o/a)>1?1:e<0?0:e}return p(n)};return y.isStepper=!1,y},bP=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var n=e[0];if("string"==typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return mP(n);case"spring":return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,r=void 0===e?100:e,n=t.damping,i=void 0===n?8:n,o=t.dt,a=void 0===o?17:o,c=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,c=n*a/1e3+t;return Math.abs(c-e)<dP&&Math.abs(o)<dP?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c}();default:if("cubic-bezier"===n.split("(")[0])return mP(n);lP(!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 n?n:(lP(!1,"[configEasing]: first argument type should be function or string, instead received %s",e),null)};function wP(t){return wP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wP(t)}function xP(t){return function(t){if(Array.isArray(t))return MP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||PP(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 OP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function SP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?OP(Object(r),!0).forEach((function(e){jP(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):OP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function jP(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==wP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==wP(n))return n;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:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function AP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||PP(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 PP(t,e){if(t){if("string"==typeof t)return MP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?MP(t,e):void 0}}function MP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var EP=function(t,e,r){return t+(e-t)*r},kP=function(t){return t.from!==t.to},_P=function t(e,r,n){var i=aP((function(t,r){if(kP(r)){var n=AP(e(r.from,r.to,r.velocity),2),i=n[0],o=n[1];return SP(SP({},r),{},{from:i,velocity:o})}return r}),r);return n<1?aP((function(t,e){return kP(e)?SP(SP({},e),{},{velocity:EP(e.velocity,i[t].velocity,n),from:EP(e.from,i[t].from,n)}):e}),r):t(e,i,n-1)},TP=function(t,e,r,n,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(r,n){return SP(SP({},r),{},jP({},n,[t[n],e[n]]))}),{}),f=l.reduce((function(r,n){return SP(SP({},r),{},jP({},n,{from:t[n],velocity:0,to:e[n]}))}),{}),h=-1,p=function(){return null};return p=r.isStepper?function(n){c||(c=n);var o=(n-c)/r.dt;f=_P(r,f,o),i(SP(SP(SP({},t),e),aP((function(t,e){return e.from}),f))),c=n,Object.values(f).filter(kP).length&&(h=requestAnimationFrame(p))}:function(o){u||(u=o);var a=(o-u)/n,c=aP((function(t,e){return EP.apply(void 0,xP(e).concat([r(a)]))}),s);if(i(SP(SP(SP({},t),e),c)),a<1)h=requestAnimationFrame(p);else{var l=aP((function(t,e){return EP.apply(void 0,xP(e).concat([r(1)]))}),s);i(SP(SP(SP({},t),e),l))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(h)}}};function CP(t){return CP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},CP(t)}var DP=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function NP(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function IP(t){return function(t){if(Array.isArray(t))return BP(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 BP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BP(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 BP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function LP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function RP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?LP(Object(r),!0).forEach((function(e){$P(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):LP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $P(t,e,r){return(e=HP(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function zP(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,HP(n.key),n)}}function HP(t){var e=function(t,e){if("object"!==CP(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==CP(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===CP(e)?e:String(e)}function FP(t,e){return FP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},FP(t,e)}function UP(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 r,n=WP(t);if(e){var i=WP(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return VP(this,r)}}function VP(t,e){if(e&&("object"===CP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return qP(t)}function qP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function WP(t){return WP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},WP(t)}var XP=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,G);var e,r,n,i=UP(o);function o(t,e){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var n=(r=i.call(this,t,e)).props,a=n.isActive,c=n.attributeName,u=n.from,l=n.to,s=n.steps,f=n.children,h=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(qP(r)),r.changeStyle=r.changeStyle.bind(qP(r)),!a||h<=0)return r.state={style:{}},"function"==typeof f&&(r.state={style:l}),VP(r);if(s&&s.length)r.state={style:s[0].style};else if(u){if("function"==typeof f)return r.state={style:u},VP(r);r.state={style:c?$P({},c,u):u}}else r.state={style:{}};return r}return e=o,(r=[{key:"componentDidMount",value:function(){var t=this.props,e=t.isActive,r=t.canBegin;this.mounted=!0,e&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(t){var e=this.props,r=e.isActive,n=e.canBegin,i=e.attributeName,o=e.shouldReAnimate,a=e.to,c=e.from,u=this.state.style;if(n)if(r){if(!(YA(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?$P({},i,s):s};(i&&[i]!==s||!i&&u!==s)&&this.setState(f)}this.runAnimation(RP(RP({},this.props),{},{from:s,begin:0}))}}else{var h={style:i?$P({},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,r=t.from,n=t.to,i=t.duration,o=t.easing,a=t.begin,c=t.onAnimationEnd,u=t.onAnimationStart,l=TP(r,n,bP(o),i,this.changeStyle);this.manager.start([u,a,function(){e.stopJSAnimation=l()},i,c])}},{key:"runStepAnimation",value:function(t){var e=this,r=t.steps,n=t.begin,i=t.onAnimationStart,o=r[0],a=o.style,c=o.duration,u=void 0===c?0:c;return this.manager.start([i].concat(IP(r.reduce((function(t,n,i){if(0===i)return t;var o=n.duration,a=n.easing,c=void 0===a?"ease":a,u=n.style,l=n.properties,s=n.onAnimationEnd,f=i>0?r[i-1]:n,h=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(IP(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var p=cP(h,o,c),d=RP(RP(RP({},f.style),u),{},{transition:p});return[].concat(IP(t),[d,o,s]).filter(oP)}),[a,Math.max(u,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){this.manager||(this.manager=tP());var e=t.begin,r=t.duration,n=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=n?$P({},n,i):i,h=cP(Object.keys(f),r,o);s.start([a,e,RP(RP({},f),{},{transition:h}),r,c])}else this.runJSAnimation(t)}},{key:"render",value:function(){var t=this.props,e=t.children;t.begin;var r=t.duration;t.attributeName,t.easing;var n=t.isActive;t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart;var i=NP(t,DP),o=K.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!n||0===o||r<=0)return e;var c=function(t){var e=t.props,r=e.style,n=void 0===r?{}:r,o=e.className;return it(t,RP(RP({},i),{},{style:RP(RP({},n),a),className:o}))};return 1===o?c(K.only(e)):X.createElement("div",null,K.map(e,(function(t){return c(t)})))}}])&&zP(e.prototype,r),n&&zP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),o}();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 KP(){return KP=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},KP.apply(this,arguments)}function GP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 ZP(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ZP(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 ZP(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function JP(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function QP(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?JP(Object(r),!0).forEach((function(e){tM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JP(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=YP(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=YP(n))return n;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),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}XP.displayName="Animate",XP.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},XP.propTypes={from:dA.oneOfType([dA.object,dA.string]),to:dA.oneOfType([dA.object,dA.string]),attributeName:dA.string,duration:dA.number,begin:dA.number,easing:dA.oneOfType([dA.string,dA.func]),steps:dA.arrayOf(dA.shape({duration:dA.number.isRequired,style:dA.object.isRequired,easing:dA.oneOfType([dA.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),dA.func]),properties:dA.arrayOf("string"),onAnimationEnd:dA.func})),children:dA.oneOfType([dA.node,dA.func]),isActive:dA.bool,canBegin:dA.bool,onAnimationEnd:dA.func,shouldReAnimate:dA.bool,onAnimationStart:dA.func,onAnimationReStart:dA.func},dA.object,dA.object,dA.object,dA.element,dA.object,dA.object,dA.object,dA.oneOfType([dA.array,dA.element]),dA.any;var eM=function(t,e,r,n,i){var o,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),c=n>=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<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+r-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+c*s[1])),o+="L ".concat(t+r,",").concat(e+n-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+r-u*s[2],",").concat(e+n)),o+="L ".concat(t+u*s[3],",").concat(e+n),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-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+r-u*h,",").concat(e,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+r,",").concat(e+c*h,"\n L ").concat(t+r,",").concat(e+n-c*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+r-u*h,",").concat(e+n,"\n L ").concat(t+u*h,",").concat(e+n,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t,",").concat(e+n-c*h," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},rM=function(t,e){if(!t||!e)return!1;var r=t.x,n=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 r>=u&&r<=l&&n>=s&&n<=f}return!1},nM={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},iM=function(t){var e=QP(QP({},nM),t),r=J(),n=GP(tt(-1),2),i=n[0],o=n[1];rt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.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=ui("recharts-rectangle",f);return v?X.createElement(XP,{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 n=t.width,o=t.height,a=t.x,c=t.y;return X.createElement(XP,{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},X.createElement("path",KP({},_c(e,!0),{className:g,d:eM(a,c,n,o,s),ref:r})))})):X.createElement("path",KP({},_c(e,!0),{className:g,d:eM(a,c,u,l,s)}))};function oM(){return oM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},oM.apply(this,arguments)}var aM=function(t){var e=t.cx,r=t.cy,n=t.r,i=ui("recharts-dot",t.className);return e===+e&&r===+r&&n===+n?X.createElement("circle",oM({},_c(t,!1),dc(t),{className:i,cx:e,cy:r,r:n})):null};function cM(t){return cM="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},cM(t)}var uM=["x","y","top","left","width","height","className"];function lM(){return lM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lM.apply(this,arguments)}function sM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=cM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=cM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==cM(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function hM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var pM=function(t,e,r,n,i,o){return"M".concat(t,",").concat(i,"v").concat(n,"M").concat(o,",").concat(e,"h").concat(r)},dM=function(t){var e=t.x,r=void 0===e?0:e,n=t.y,i=void 0===n?0:n,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 r=null!=arguments[e]?arguments[e]:{};e%2?sM(Object(r),!0).forEach((function(e){fM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({x:r,y:i,top:a,left:u,width:s,height:h},hM(t,uM));return tc(r)&&tc(i)&&tc(s)&&tc(h)&&tc(a)&&tc(u)?X.createElement("path",lM({},_c(d,!0),{className:ui("recharts-cross",p),d:pM(r,i,s,h,a,u)})):null},yM=bf(Object.getPrototypeOf,Object),vM=Ai,gM=yM,mM=Pi,bM=Function.prototype,wM=Object.prototype,xM=bM.toString,OM=wM.hasOwnProperty,SM=xM.call(Object);var jM=On((function(t){if(!mM(t)||"[object Object]"!=vM(t))return!1;var e=gM(t);if(null===e)return!0;var r=OM.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&xM.call(r)==SM})),AM=Ai,PM=Pi;var MM=On((function(t){return!0===t||!1===t||PM(t)&&"[object Boolean]"==AM(t)}));function EM(t){return EM="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},EM(t)}function kM(){return kM=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},kM.apply(this,arguments)}function _M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 TM(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TM(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 TM(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function CM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function DM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?CM(Object(r),!0).forEach((function(e){NM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):CM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function NM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=EM(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=EM(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==EM(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var IM=function(t,e,r,n,i){var o,a=r-n;return o="M ".concat(t,",").concat(e),o+="L ".concat(t+r,",").concat(e),o+="L ".concat(t+r-a/2,",").concat(e+i),o+="L ".concat(t+r-a/2-n,",").concat(e+i),o+="L ".concat(t,",").concat(e," Z")},BM={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},LM=function(t){var e=DM(DM({},BM),t),r=J(),n=_M(tt(-1),2),i=n[0],o=n[1];rt((function(){if(r.current&&r.current.getTotalLength)try{var t=r.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=ui("recharts-trapezoid",f);return y?X.createElement(XP,{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 n=t.upperWidth,o=t.lowerWidth,a=t.height,c=t.x,u=t.y;return X.createElement(XP,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:h},X.createElement("path",kM({},_c(e,!0),{className:v,d:IM(c,u,n,o,a),ref:r})))})):X.createElement("g",null,X.createElement("path",kM({},_c(e,!0),{className:v,d:IM(a,c,u,l,s)})))},RM=["option","shapeType","propTransformer","activeClassName","isActive"];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 zM(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function HM(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function FM(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?HM(Object(r),!0).forEach((function(e){UM(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):HM(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function UM(t,e,r){return e=function(t){var e=function(t,e){if("object"!=$M(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$M(n))return n;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),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function VM(t,e){return FM(FM({},e),t)}function qM(t){var e=t.shapeType,r=t.elementProps;switch(e){case"rectangle":return X.createElement(iM,r);case"trapezoid":return X.createElement(LM,r);case"sector":return X.createElement($j,r);case"symbols":if(function(t,e){return"symbols"===t}(e))return X.createElement(Cl,r);break;default:return null}}function WM(t){var e,r=t.option,n=t.shapeType,i=t.propTransformer,o=void 0===i?VM:i,a=t.activeClassName,c=void 0===a?"recharts-active-shape":a,u=t.isActive,l=zM(t,RM);if(Y(r))e=it(r,FM(FM({},l),function(t){return Y(t)?t.props:t}(r)));else if(Hi(r))e=r(l);else if(jM(r)&&!MM(r)){var s=o(r,l);e=X.createElement(qM,{shapeType:n,elementProps:s})}else{var f=l;e=X.createElement(qM,{shapeType:n,elementProps:f})}return u?X.createElement(Hc,{className:c},e):e}function XM(t,e){return null!=e&&"trapezoids"in t.props}function YM(t,e){return null!=e&&"sectors"in t.props}function KM(t,e){return null!=e&&"points"in t.props}function GM(t,e){var r,n,i=t.x===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.x)||t.x===e.x,o=t.y===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.y)||t.y===e.y;return i&&o}function ZM(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function JM(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function QM(t){var e=t.activeTooltipItem,r=t.graphicalItem,n=t.itemData,i=function(t,e){var r;return XM(t,e)?r="trapezoids":YM(t,e)?r="sectors":KM(t,e)&&(r="points"),r}(r,e),o=function(t,e){var r,n;return XM(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:YM(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:KM(t,e)?e.payload:{}}(r,e),a=n.filter((function(t,n){var a=eO(o,t),c=r.props[i].filter((function(t){var n=function(t,e){var r;return XM(t,e)?r=GM:YM(t,e)?r=ZM:KM(t,e)&&(r=JM),r}(r,e);return n(t,e)})),u=r.props[i].indexOf(c[c.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}var tE=Math.ceil,eE=Math.max;var rE=Zy,nE=1/0;var iE=function(t,e,r,n){for(var i=-1,o=eE(tE((e-t)/(r||1)),0),a=Array(o);o--;)a[n?o:++i]=t,t+=r;return a},oE=Xd,aE=function(t){return t?(t=rE(t))===nE||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0};var cE=On(function(t){return function(e,r,n){return n&&"number"!=typeof n&&oE(e,r,n)&&(r=n=void 0),e=aE(e),void 0===r?(r=e,e=0):r=aE(r),n=void 0===n?e<r?1:-1:aE(n),iE(e,r,n,t)}}());function uE(t){return uE="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},uE(t)}function lE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function sE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lE(Object(r),!0).forEach((function(e){fE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fE(t,e,r){return e=function(t){var e=function(t,e){if("object"!=uE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=uE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==uE(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hE=["Webkit","Moz","O","ms"];function pE(t){return pE="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},pE(t)}function dE(){return dE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},dE.apply(this,arguments)}function yE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vE(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yE(Object(r),!0).forEach((function(e){SE(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function gE(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jE(n.key),n)}}function mE(t,e,r){return e=wE(e),function(t,e){if(e&&("object"===pE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xE(t)}(t,bE()?Reflect.construct(e,r||[],wE(t).constructor):e.apply(t,r))}function bE(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(bE=function(){return!!t})()}function wE(t){return wE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},wE(t)}function xE(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function OE(t,e){return OE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},OE(t,e)}function SE(t,e,r){return(e=jE(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function jE(t){var e=function(t,e){if("object"!=pE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=pE(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pE(e)?e:String(e)}var AE=function(t){return t.changedTouches&&!!t.changedTouches.length},PE=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),SE(xE(r=mE(this,e,[t])),"handleDrag",(function(t){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(t):r.state.isSlideMoving&&r.handleSlideDrag(t)})),SE(xE(r),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&r.handleDrag(t.changedTouches[0])})),SE(xE(r),"handleDragEnd",(function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var t=r.props,e=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:e,startIndex:i})})),r.detachDragEndListener()})),SE(xE(r),"handleLeaveWrapper",(function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))})),SE(xE(r),"handleEnterSlideOrTraveller",(function(){r.setState({isTextActive:!0})})),SE(xE(r),"handleLeaveSlideOrTraveller",(function(){r.setState({isTextActive:!1})})),SE(xE(r),"handleSlideDragStart",(function(t){var e=AE(t)?t.changedTouches[0]:t;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:e.pageX}),r.attachDragEndListener()})),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(xE(r),"startX"),endX:r.handleTravellerDragStart.bind(xE(r),"endX")},r.state={},r}var r,n,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&OE(t,e)}(e,G),r=e,n=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var r=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,u=Math.min(r,n),l=Math.max(r,n),s=e.getIndexInRange(i,u),f=e.getIndexInRange(i,l);return{startIndex:s-s%a,endIndex:f===c?c:f-f%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=jS(r[t],i,t);return Hi(n)?n(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,r=e.slideMoveStartX,n=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-r;h>0?h=Math.min(h,a+c-u-i,a+c-u-n):h<0&&(h=Math.max(h,a-n,a-i));var p=this.getIndex({startX:n+h,endX:i+h});p.startIndex===l&&p.endIndex===s||!f||f(p),this.setState({startX:n+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=AE(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,r=e.brushMoveStartX,n=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[n],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,h=c.gap,p=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),d[n]=a+y;var v=this.getIndex(d),g=v.startIndex,m=v.endIndex;this.setState(SE(SE({},n,a+y),"brushMoveStartX",t.pageX),(function(){var t;f&&(t=p.length-1,("startX"===n&&(i>o?g%h==0:m%h==0)||i<o&&m===t||"endX"===n&&(i>o?m%h==0:g%h==0)||i>o&&m===t)&&f(v))}))}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.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(SE({},e,s),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.state.endX}))}))}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.fill,a=t.stroke;return X.createElement("rect",{stroke:a,fill:o,x:e,y:r,width:n,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,u=K.only(a);return u?X.cloneElement(u,{x:e,y:r,width:n,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,r){var n=this,i=this.props,o=i.y,a=i.travellerWidth,c=i.height,u=i.traveller,l=i.ariaLabel,s=i.data,f=i.startIndex,h=i.endIndex,p=Math.max(t,this.props.x),d=vE(vE({},_c(this.props,!1)),{},{x:p,y:o,width:a,height:c}),y=l||"Min value: ".concat(s[f].name,", Max value: ").concat(s[h].name);return X.createElement(Hc,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),n.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,r))},onFocus:function(){n.setState({isTravellerFocused:!0})},onBlur:function(){n.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(u,d))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,o=r.stroke,a=r.travellerWidth,c=Math.min(t,e)+a,u=Math.max(Math.abs(e-t)-a,0);return X.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:n,width:u,height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=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 X.createElement(Hc,{className:"recharts-brush-texts"},X.createElement(Zv,dE({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:n+i/2},s),this.getTextOfTick(e)),X.createElement(Zv,dE({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:n+i/2},s),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=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||!tc(i)||!tc(o)||!tc(a)||!tc(c)||a<=0||c<=0)return null;var v=ui("recharts-brush",r),g=1===X.Children.count(n),m=function(t,e){if(!t)return null;var r=t.replace(/(\w)/,(function(t){return t.toUpperCase()})),n=hE.reduce((function(t,n){return sE(sE({},t),{},fE({},n+r,e))}),{});return n[t]=e,n}("userSelect","none");return X.createElement(Hc,{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())}}],i=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,o=t.stroke,a=Math.floor(r+i/2)-1;return X.createElement(X.Fragment,null,X.createElement("rect",{x:e,y:r,width:n,height:i,fill:o,stroke:"none"}),X.createElement("line",{x1:e+1,y1:a,x2:e+n-1,y2:a,fill:"none",stroke:"#fff"}),X.createElement("line",{x1:e+1,y1:a+2,x2:e+n-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,r){return X.isValidElement(t)?X.cloneElement(t,r):Hi(t)?t(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return vE({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?function(t){var e=t.data,r=t.startIndex,n=t.endIndex,i=t.x,o=t.width,a=t.travellerWidth;if(!e||!e.length)return{};var c=e.length,u=Pg().domain(cE(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(r),endX:u(n),scale:u,scaleValues:l}}({data:r,width:n,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var l=e.scale.domain().map((function(t){return e.scale(t)}));return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=0,n=t.length-1;n-r>1;){var i=Math.floor((r+n)/2);t[i]>e?n=i:r=i}return e>=t[n]?n:r}}],n&&gE(r.prototype,n),i&&gE(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();SE(PE,"displayName","Brush"),SE(PE,"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 ME=sd;var EE=us,kE=pp,_E=function(t,e){var r;return ME(t,(function(t,n,i){return!(r=e(t,n,i))})),!!r},TE=li,CE=Xd;var DE=On((function(t,e,r){var n=TE(t)?EE:_E;return r&&CE(t,e,r)&&(e=void 0),n(t,kE(e))})),NE=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},IE=Dd;var BE=function(t,e,r){"__proto__"==e&&IE?IE(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},LE=BE,RE=ud,$E=pp;var zE=function(t,e){var r={};return e=$E(e),RE(t,(function(t,n,i){LE(r,n,e(t,n,i))})),r},HE=On(zE);var FE=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(!e(t[r],r,t))return!1;return!0},UE=sd;var VE=FE,qE=function(t,e){var r=!0;return UE(t,(function(t,n,i){return r=!!e(t,n,i)})),r},WE=pp,XE=li,YE=Xd;var KE=On((function(t,e,r){var n=XE(t)?VE:qE;return r&&YE(t,e,r)&&(e=void 0),n(t,WE(e))})),GE=["x","y"];function ZE(t){return ZE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZE(t)}function JE(){return JE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},JE.apply(this,arguments)}function QE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?QE(Object(r),!0).forEach((function(e){ek(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):QE(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ek(t,e,r){return e=function(t){var e=function(t,e){if("object"!=ZE(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ZE(n))return n;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),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function nk(t,e){var r=t.x,n=t.y,i=rk(t,GE),o="".concat(r),a=parseInt(o,10),c="".concat(n),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 tk(tk(tk(tk(tk({},e),i),a?{x:a}:{}),u?{y:u}:{}),{},{height:s,width:h,name:e.name,radius:e.radius})}function ik(t){return X.createElement(WM,JE({shapeType:"rectangle",propTransformer:nk,activeClassName:"recharts-active-bar"},t))}var ok,ak=["value","background"];function ck(t){return ck="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},ck(t)}function uk(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function lk(){return lk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},lk.apply(this,arguments)}function sk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?sk(Object(r),!0).forEach((function(e){mk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):sk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hk(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,bk(n.key),n)}}function pk(t,e,r){return e=yk(e),function(t,e){if(e&&("object"===ck(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return vk(t)}(t,dk()?Reflect.construct(e,r||[],yk(t).constructor):e.apply(t,r))}function dk(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(dk=function(){return!!t})()}function yk(t){return yk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yk(t)}function vk(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function gk(t,e){return gk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},gk(t,e)}function mk(t,e,r){return(e=bk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bk(t){var e=function(t,e){if("object"!=ck(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=ck(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ck(e)?e:String(e)}var wk=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return mk(vk(t=pk(this,e,[].concat(n))),"state",{isAnimationFinished:!1}),mk(vk(t),"id",nc("recharts-bar-")),mk(vk(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()})),mk(vk(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()})),t}var r,n,i;return 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)}(e,G),r=e,n=[{key:"renderRectanglesStatically",value:function(t){var e=this,r=this.props,n=r.shape,i=r.dataKey,o=r.activeIndex,a=r.activeBar,c=_c(this.props,!1);return t&&t.map((function(t,r){var u=r===o,l=u?a:n,s=fk(fk(fk({},c),t),{},{isActive:u,option:l,index:r,dataKey:i,onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd});return X.createElement(Hc,lk({className:"recharts-bar-rectangle"},yc(e.props,t,r),{key:"rectangle-".concat(null==t?void 0:t.x,"-").concat(null==t?void 0:t.y,"-").concat(null==t?void 0:t.value)}),X.createElement(ik,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,e=this.props,r=e.data,n=e.layout,i=e.isAnimationActive,o=e.animationBegin,a=e.animationDuration,c=e.animationEasing,u=e.animationId,l=this.state.prevData;return X.createElement(XP,{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=r.map((function(t,e){var r=l&&l[e];if(r){var o=ac(r.x,t.x),a=ac(r.y,t.y),c=ac(r.width,t.width),u=ac(r.height,t.height);return fk(fk({},t),{},{x:o(i),y:a(i),width:c(i),height:u(i)})}if("horizontal"===n){var s=ac(0,t.height)(i);return fk(fk({},t),{},{y:t.y+t.height-s,height:s})}var f=ac(0,t.width)(i);return fk(fk({},t),{},{width:f})}));return X.createElement(Hc,null,t.renderRectanglesStatically(o))}))}},{key:"renderRectangles",value:function(){var t=this.props,e=t.data,r=t.isAnimationActive,n=this.state.prevData;return!(r&&e&&e.length)||n&&eO(n,e)?this.renderRectanglesStatically(e):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var t=this,e=this.props,r=e.data,n=e.dataKey,i=e.activeIndex,o=_c(this.props.background,!1);return r.map((function(e,r){e.value;var a=e.background,c=uk(e,ak);if(!a)return null;var u=fk(fk(fk(fk(fk({},c),{},{fill:"#eee"},a),o),yc(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:n,index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return X.createElement(ik,lk({option:t.props.background,isActive:r===i},u))}))}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,n=r.data,i=r.xAxis,o=r.yAxis,a=r.layout,c=Ac(r.children,hS);if(!c)return null;var u="vertical"===a?n[0].height/2:n[0].width/2,l=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:jS(t,e)}},s={clipPath:t?"url(#clipPath-".concat(e,")"):null};return X.createElement(Hc,s,c.map((function(t){return X.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,n=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||!r||!r.length)return null;var p=this.state.isAnimationFinished,d=ui("recharts-bar",n),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,g=y||v,m=Ia(h)?this.id:h;return X.createElement(Hc,{className:d},y||v?X.createElement("defs",null,X.createElement("clipPath",{id:"clipPath-".concat(m)},X.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,X.createElement(Hc,{className:"recharts-bar-rectangles",clipPath:g?"url(#clipPath-".concat(m,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(g,m),(!s||p)&&_j.renderCallByParent(this.props,r))}}],i=[{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&&hk(r.prototype,n),i&&hk(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function xk(t){return xk="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},xk(t)}function Ok(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Pk(n.key),n)}}function Sk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sk(Object(r),!0).forEach((function(e){Ak(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ak(t,e,r){return(e=Pk(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pk(t){var e=function(t,e){if("object"!=xk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=xk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==xk(e)?e:String(e)}ok=wk,mk(wk,"displayName","Bar"),mk(wk,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ay.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),mk(wk,"getComposedData",(function(t){var e=t.props,r=t.item,n=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 r=0,n=t.length;r<n;r++)if(t[r].item===e)return t[r].position;return null}(n,r);if(!p)return null;var d=e.layout,y=r.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,r=e.scale.domain();if("number"===e.type){var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return n<=0&&i>=0?0:i<0?i:n}return r[0]}({numericAxis:b}),O=Ac(g,dv),S=f.map((function(t,e){var n,f,h,y,g,b;l?n=function(t,e){if(!e||2!==e.length||!tc(e[0])||!tc(e[1]))return t;var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]),i=[t[0],t[1]];return(!tc(t[0])||t[0]<r)&&(i[0]=r),(!tc(t[1])||t[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i}(l[s+e],w):(n=jS(t,v),Array.isArray(n)||(n=[x,n]));var S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"==typeof t)return t;var i="number"==typeof r;return i?t(r,n):(i||("production"!==process.env.NODE_ENV?aS(!1,"minPointSize callback function received a value with type of ".concat(ZE(r),". Currently only numbers are supported.")):aS(!1)),e)}}(m,ok.defaultProps.minPointSize)(n[1],e);if("horizontal"===d){var j,A=[a.scale(n[0]),a.scale(n[1])],P=A[0],M=A[1];f=LS({axis:o,ticks:c,bandSize:i,offset:p.offset,entry:t,index:e}),h=null!==(j=null!=M?M:P)&&void 0!==j?j:void 0,y=p.size;var E=P-M;if(g=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:y,height:a.height},Math.abs(S)>0&&Math.abs(g)<Math.abs(S)){var k=Ja(g||S)*(Math.abs(S)-Math.abs(g));h-=k,g+=k}}else{var _=[o.scale(n[0]),o.scale(n[1])],T=_[0],C=_[1];if(f=T,h=LS({axis:a,ticks:u,bandSize:i,offset:p.offset,entry:t,index:e}),y=C-T,g=p.size,b={x:o.x,y:h,width:o.width,height:g},Math.abs(S)>0&&Math.abs(y)<Math.abs(S))y+=Ja(y||S)*(Math.abs(S)-Math.abs(y))}return fk(fk(fk({},t),{},{x:f,y:h,width:y,height:g,value:l?n:n[1],payload:t,background:b},O&&O[e]&&O[e].props),{},{tooltipPayload:[VS(r,t)],tooltipPosition:{x:f+y/2,y:h+g/2}})}));return fk({data:S,layout:d},h)}));var Mk=function(t,e,r,n,i){var o=t.width,a=t.height,c=t.layout,u=t.children,l=Object.keys(e),s={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:a-r.bottom,bottomMirror:a-r.bottom},f=!!Pc(u,wk);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?r.height:r.width;if("gap"===y.padding&&(u=P*M/2),"no-gap"===y.padding){var E=ic(t.barCategoryGap,P*M),k=P*M/2;u=k-E-(k-E)/M*E}}l="xAxis"===n?[r.left+(b.left||0)+(u||0),r.left+r.width-(b.right||0)-(u||0)]:"yAxis"===n?"horizontal"===c?[r.top+r.height-(b.bottom||0),r.top+(b.top||0)]:[r.top+(b.top||0)+(u||0),r.top+r.height-(b.bottom||0)-(u||0)]:y.range,x&&(l=[l[1],l[0]]);var _=function(t,e,r){var n=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===n)return"radial"===o&&"radiusAxis"===a?{scale:jg(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:Ym(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:Pg(),realScaleType:"point"}:"category"===i?{scale:jg(),realScaleType:"band"}:{scale:Ym(),realScaleType:"linear"};if(za(n)){var c="scale".concat(mu(n));return{scale:(Dx[c]||Pg)(),realScaleType:Dx[c]?c:"point"}}return Hi(n)?{scale:n}:{scale:Pg(),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 r=e.length,n=t.range(),i=Math.min(n[0],n[1])-DS,o=Math.max(n[0],n[1])+DS,a=t(e[0]),c=t(e[r-1]);(a<i||a>o||c<i||c>o)&&t.domain([e[0],e[r-1]])}}(T);var D=function(t,e){var r=e.realScaleType,n=e.type,i=e.tickCount,o=e.originalDomain,a=e.allowDecimals,c=r||e.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===n&&o&&("auto"===o[0]||"auto"===o[1])){var u=t.domain();if(!u.length)return null;var l=rS(u,i,a);return t.domain([qx(l),zx(l)]),{niceTicks:l}}if(i&&"number"===n){var s=t.domain();return{niceTicks:nS(s,i,a)}}return null}(T,jk(jk({},y),{},{realScaleType:C}));"xAxis"===n?(d="top"===v&&!w||"bottom"===v&&w,h=r.left,p=s[O]-d*y.height):"yAxis"===n&&(d="left"===v&&!w||"right"===v&&w,h=s[O]-d*y.width,p=r.top);var N=jk(jk(jk({},y),D),{},{realScaleType:C,x:h,y:p,scale:T,width:"xAxis"===n?r.width:y.width,height:"yAxis"===n?r.height:y.height});return N.bandSize=FS(N,D),y.hide||"xAxis"!==n?y.hide||(s[O]+=(d?-1:1)*N.width):s[O]+=(d?-1:1)*N.height,jk(jk({},o),{},Ak({},a,N))}),{})},Ek=function(t,e){var r=t.x,n=t.y,i=e.x,o=e.y;return{x:Math.min(r,i),y:Math.min(n,o),width:Math.abs(i-r),height:Math.abs(o-n)}},kk=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,r,n;return e=t,r=[{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]:{},r=e.bandAware,n=e.position;if(void 0!==t){if(n)switch(n){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(r){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(),r=e[0],n=e[e.length-1];return r<=n?t>=r&&t<=n:t>=n&&t<=r}}],n=[{key:"create",value:function(e){return new t(e)}}],r&&Ok(e.prototype,r),n&&Ok(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();Ak(kk,"EPS",1e-4);var _k=function(t){var e=Object.keys(t).reduce((function(e,r){return jk(jk({},e),{},Ak({},r,kk.create(t[r])))}),{});return jk(jk({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,i=r.position;return HE(t,(function(t,r){return e[r].apply(t,{bandAware:n,position:i})}))},isInRange:function(t){return KE(t,(function(t,r){return e[r].isInRange(t)}))}})};var Tk=function(t){var e=t.width,r=t.height,n=function(t){return(t%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,o=Math.atan(r/e),a=i>o&&i<Math.PI-o?r/Math.sin(i):e/Math.cos(i);return Math.abs(a)},Ck=ca((function(t){return{x:t.left,y:t.top,width:t.width,height:t.height}}),(function(t){return["l",t.left,"t",t.top,"w",t.width,"h",t.height].join("")}));function Dk(t){return Dk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dk(t)}var Nk=ct(void 0),Ik=ct(void 0),Bk=ct(void 0),Lk=ct({}),Rk=ct(void 0),$k=ct(0),zk=ct(0),Hk=function(t){var e=t.state,r=e.xAxisMap,n=e.yAxisMap,i=e.offset,o=t.clipPathId,a=t.children,c=t.width,u=t.height,l=Ck(i);return X.createElement(Nk.Provider,{value:r},X.createElement(Ik.Provider,{value:n},X.createElement(Lk.Provider,{value:i},X.createElement(Bk.Provider,{value:l},X.createElement(Rk.Provider,{value:o},X.createElement($k.Provider,{value:u},X.createElement(zk.Provider,{value:c},a)))))))};function Fk(t){var e=Object.keys(t);return 0===e.length?"There are no available ids.":"Available ids are: ".concat(e,".")}var Uk=function(t){var e=at(Nk);null==e&&("production"!==process.env.NODE_ENV?aS(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):aS(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?aS(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Dk(t),"]. ").concat(Fk(e))):aS(!1)),r},Vk=function(t){var e=at(Ik);null==e&&("production"!==process.env.NODE_ENV?aS(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):aS(!1));var r=e[t];return null==r&&("production"!==process.env.NODE_ENV?aS(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Dk(t),"]. ").concat(Fk(e))):aS(!1)),r},qk=function(){return at(zk)},Wk=function(){return at($k)};function Xk(t){return Xk="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},Xk(t)}function Yk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Kk(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yk(Object(r),!0).forEach((function(e){Gk(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yk(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Gk(t,e,r){return e=function(t){var e=function(t,e){if("object"!=Xk(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=Xk(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Xk(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Zk(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.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 Jk(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jk(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 Jk(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Qk(){return Qk=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Qk.apply(this,arguments)}function t_(t){var e=t.x,r=t.y,n=t.segment,i=t.xAxisId,o=t.yAxisId,a=t.shape,c=t.className,u=t.alwaysShow,l=at(Rk),s=Uk(i),f=Vk(o),h=at(Bk);if(!l||!h)return null;Uc(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=function(t,e,r,n,i,o,a,c,u){var l=i.x,s=i.y,f=i.width,h=i.height;if(r){var p=u.y,d=t.y.apply(p,{position:o});if(NE(u,"discard")&&!t.y.isInRange(d))return null;var y=[{x:l+f,y:d},{x:l,y:d}];return"left"===c?y.reverse():y}if(e){var v=u.x,g=t.x.apply(v,{position:o});if(NE(u,"discard")&&!t.x.isInRange(g))return null;var m=[{x:g,y:s+h},{x:g,y:s}];return"top"===a?m.reverse():m}if(n){var b=u.segment.map((function(e){return t.apply(e,{position:o})}));return NE(u,"discard")&&DE(b,(function(e){return!t.isInRange(e)}))?null:b}return null}(_k({x:s.scale,y:f.scale}),ec(e),ec(r),n&&2===n.length,h,t.position,s.orientation,f.orientation,t);if(!p)return null;var d=Zk(p,2),y=d[0],v=y.x,g=y.y,m=d[1],b=m.x,w=m.y,x=Kk(Kk({clipPath:NE(t,"hidden")?"url(#".concat(l,")"):void 0},_c(t,!0)),{},{x1:v,y1:g,x2:b,y2:w});return X.createElement(Hc,{className:ui("recharts-reference-line",c)},function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Hi(t)?t(e):X.createElement("line",Qk({},e,{className:"recharts-reference-line-line"}))}(a,x),yj.renderCallByParent(t,function(t){var e=t.x1,r=t.y1,n=t.x2,i=t.y2;return Ek({x:e,y:r},{x:n,y:i})}({x1:v,y1:g,x2:b,y2:w})))}function e_(t){return e_="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},e_(t)}function r_(){return r_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},r_.apply(this,arguments)}function n_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n_(Object(r),!0).forEach((function(e){o_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=e_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=e_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==e_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}t_.displayName="ReferenceLine",t_.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function a_(t){var e=t.x,r=t.y,n=t.r,i=t.alwaysShow,o=t.clipPathId,a=ec(e),c=ec(r);if(Uc(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,r=t.y,n=t.xAxis,i=t.yAxis,o=_k({x:n.scale,y:i.scale}),a=o.apply({x:e,y:r},{bandAware:!0});return NE(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=i_(i_({clipPath:NE(t,"hidden")?"url(#".concat(o,")"):void 0},_c(t,!0)),{},{cx:l,cy:s});return X.createElement(Hc,{className:ui("recharts-reference-dot",h)},a_.renderDot(f,p),yj.renderCallByParent(t,{x:l-n,y:s-n,width:2*n,height:2*n}))}function c_(t){return c_="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},c_(t)}function u_(){return u_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},u_.apply(this,arguments)}function l_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l_(Object(r),!0).forEach((function(e){f_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=c_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=c_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}a_.displayName="ReferenceDot",a_.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},a_.renderDot=function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Hi(t)?t(e):X.createElement(aM,r_({},e,{cx:e.cx,cy:e.cy,className:"recharts-reference-dot-dot"}))};function h_(t){var e=t.x1,r=t.x2,n=t.y1,i=t.y2,o=t.className,a=t.alwaysShow,c=t.clipPathId;Uc(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=ec(e),l=ec(r),s=ec(n),f=ec(i),h=t.shape;if(!(u||l||s||f||h))return null;var p=function(t,e,r,n,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=_k({x:l.scale,y:s.scale}),h={x:t?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(c,{position:"start"}):f.y.rangeMin},p={x:e?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!NE(i,"discard")||f.isInRange(h)&&f.isInRange(p)?Ek(h,p):null}(u,l,s,f,t);if(!p&&!h)return null;var d=NE(t,"hidden")?"url(#".concat(c,")"):void 0;return X.createElement(Hc,{className:ui("recharts-reference-area",o)},h_.renderRect(h,s_(s_({clipPath:d},_c(t,!0)),p)),yj.renderCallByParent(t,p))}function p_(t,e,r){if(e<1)return[];if(1===e&&void 0===r)return t;for(var n=[],i=0;i<t.length;i+=e){if(void 0!==r&&!0!==r(t[i]))return;n.push(t[i])}return n}function d_(t,e,r,n,i){if(t*e<t*n||t*e>t*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}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 v_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function g_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v_(Object(r),!0).forEach((function(e){m_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m_(t,e,r){return e=function(t){var e=function(t,e){if("object"!=y_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=y_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==y_(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b_(t,e,r){var n=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||!n)return[];if(tc(u)||Ay.isSsr)return function(t,e){return p_(t,e+1)}(i,"number"==typeof u&&tc(u)?u:0);var h=[],p="top"===c||"bottom"===c?"width":"height",d=s&&"width"===p?Ov(s,{fontSize:e,letterSpacing:r}):{width:0,height:0},y=function(t,n){var i=Hi(l)?l(t.value,n):t.value;return"width"===p?function(t,e,r){var n={width:t.width+e.width,height:t.height+e.height};return Tk(n,r)}(Ov(i,{fontSize:e,letterSpacing:r}),d,f):Ov(i,{fontSize:e,letterSpacing:r})[p]},v=i.length>=2?Ja(i[1].coordinate-i[0].coordinate):1,g=function(t,e,r){var n="width"===r,i=t.x,o=t.y,a=t.width,c=t.height;return 1===e?{start:n?i:o,end:n?i+a:o+c}:{start:n?i+a:o+c,end:n?i:o}}(o,v,p);return"equidistantPreserveStart"===u?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c,h=function(){var e=null==n?void 0:n[l];if(void 0===e)return{v:p_(n,s)};var o,a=l,h=function(){return void 0===o&&(o=r(e,a)),o},p=e.coordinate,d=0===l||d_(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,r,n,i,o){var a=(n||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=n[c-1],f=r(s,c-1),h=t*(s.coordinate+t*f/2-l);a[c-1]=s=g_(g_({},s),{},{tickCoord:h>0?s.coordinate-h*t:s.coordinate}),d_(t,s.tickCoord,(function(){return f}),u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=g_(g_({},s),{},{isShow:!0}))}for(var p=o?c-1:c,d=function(e){var n,o=a[e],c=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var s=t*(o.coordinate-t*c()/2-u);a[e]=o=g_(g_({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=g_(g_({},o),{},{tickCoord:o.coordinate});d_(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=g_(g_({},o),{},{isShow:!0}))},y=0;y<p;y++)d(y);return a}(v,g,y,i,a,"preserveStartEnd"===u):function(t,e,r,n,i){for(var o=(n||[]).slice(),a=o.length,c=e.start,u=e.end,l=function(e){var n,l=o[e],s=function(){return void 0===n&&(n=r(l,e)),n};if(e===a-1){var f=t*(l.coordinate+t*s()/2-u);o[e]=l=g_(g_({},l),{},{tickCoord:f>0?l.coordinate-f*t:l.coordinate})}else o[e]=l=g_(g_({},l),{},{tickCoord:l.coordinate});d_(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=g_(g_({},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})))}h_.displayName="ReferenceArea",h_.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},h_.renderRect=function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Hi(t)?t(e):X.createElement(iM,u_({},e,{className:"recharts-reference-area-rect"}))};var w_=["viewBox"],x_=["viewBox"],O_=["ticks"];function S_(t){return S_="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},S_(t)}function j_(){return j_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},j_.apply(this,arguments)}function A_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function P_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A_(Object(r),!0).forEach((function(e){D_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function M_(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function E_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,N_(n.key),n)}}function k_(t,e,r){return e=T_(e),function(t,e){if(e&&("object"===S_(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)}(t,__()?Reflect.construct(e,r||[],T_(t).constructor):e.apply(t,r))}function __(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(__=function(){return!!t})()}function T_(t){return T_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T_(t)}function C_(t,e){return C_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C_(t,e)}function D_(t,e,r){return(e=N_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function N_(t){var e=function(t,e){if("object"!=S_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=S_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==S_(e)?e:String(e)}var I_=function(t){function e(t){var r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(r=k_(this,e,[t])).state={fontSize:"",letterSpacing:""},r}var r,n,i;return 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&&C_(t,e)}(e,ut),r=e,n=[{key:"shouldComponentUpdate",value:function(t,e){var r=t.viewBox,n=M_(t,w_),i=this.props,o=i.viewBox,a=M_(i,x_);return!uc(r,o)||!uc(n,a)||!uc(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,r,n,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=tc(t.tickCoord)?t.tickCoord:t.coordinate;switch(h){case"top":e=r=t.coordinate,a=(n=(i=l+ +!d*f)-v*g)-v*y,o=m;break;case"left":n=i=t.coordinate,o=(e=(r=u+ +!d*s)-v*g)-v*y,a=m;break;case"right":n=i=t.coordinate,o=(e=(r=u+ +d*s)+v*g)+v*y,a=m;break;default:e=r=t.coordinate,a=(n=(i=l+ +d*f)+v*g)+v*y,o=m}return{line:{x1:e,y1:n,x2:r,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var t,e=this.props,r=e.orientation,n=e.mirror;switch(r){case"left":t=n?"start":"end";break;case"right":t=n?"end":"start";break;default:t="middle"}return t}},{key:"getTickVerticalAnchor",value:function(){var t=this.props,e=t.orientation,r=t.mirror,n="end";switch(e){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var t=this.props,e=t.x,r=t.y,n=t.width,i=t.height,o=t.orientation,a=t.mirror,c=t.axisLine,u=P_(P_(P_({},_c(this.props,!1)),_c(c,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var l=+("top"===o&&!a||"bottom"===o&&a);u=P_(P_({},u),{},{x1:e,y1:r+l*i,x2:e+n,y2:r+l*i})}else{var s=+("left"===o&&!a||"right"===o&&a);u=P_(P_({},u),{},{x1:e+s*n,y1:r,x2:e+s*n,y2:r+i})}return X.createElement("line",j_({},u,{className:ui("recharts-cartesian-axis-line",Na(c,"className"))}))}},{key:"renderTicks",value:function(t,r,n){var i=this,o=this.props,a=o.tickLine,c=o.stroke,u=o.tick,l=o.tickFormatter,s=o.unit,f=b_(P_(P_({},this.props),{},{ticks:t}),r,n),h=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),d=_c(this.props,!1),y=_c(u,!1),v=P_(P_({},d),{},{fill:"none"},_c(a,!1)),g=f.map((function(t,r){var n=i.getTickLineCoord(t),o=n.line,g=n.tick,m=P_(P_(P_(P_({textAnchor:h,verticalAnchor:p},d),{},{stroke:"none",fill:c},y),g),{},{index:r,payload:t,visibleTicksCount:f.length,tickFormatter:l});return X.createElement(Hc,j_({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},yc(i.props,t,r)),a&&X.createElement("line",j_({},v,o,{className:ui("recharts-cartesian-axis-tick-line",Na(a,"className"))})),u&&e.renderTickItem(u,m,"".concat(Hi(l)?l(t.value,r):t.value).concat(s||"")))}));return X.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,e=this.props,r=e.axisLine,n=e.width,i=e.height,o=e.ticksGenerator,a=e.className;if(e.hide)return null;var c=this.props,u=c.ticks,l=M_(c,O_),s=u;return Hi(o)&&(s=u&&u.length>0?o(this.props):o(l)),n<=0||i<=0||!s||!s.length?null:X.createElement(Hc,{className:ui("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),yj.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,e,r){return X.isValidElement(t)?X.cloneElement(t,e):Hi(t)?t(e):X.createElement(Zv,j_({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],n&&E_(r.prototype,n),i&&E_(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();D_(I_,"displayName","CartesianAxis"),D_(I_,"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 B_=["type","layout","connectNulls","ref"];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 R_(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function $_(){return $_=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},$_.apply(this,arguments)}function z_(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function H_(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?z_(Object(r),!0).forEach((function(e){G_(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):z_(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function F_(t){return function(t){if(Array.isArray(t))return U_(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 U_(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return U_(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 U_(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function V_(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Z_(n.key),n)}}function q_(t,e,r){return e=X_(e),function(t,e){if(e&&("object"===L_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Y_(t)}(t,W_()?Reflect.construct(e,r||[],X_(t).constructor):e.apply(t,r))}function W_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(W_=function(){return!!t})()}function X_(t){return X_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},X_(t)}function Y_(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function K_(t,e){return K_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K_(t,e)}function G_(t,e,r){return(e=Z_(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Z_(t){var e=function(t,e){if("object"!=L_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=L_(n))return n;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 J_=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return G_(Y_(t=q_(this,e,[].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),G_(Y_(t),"generateSimpleStrokeDasharray",(function(t,e){return"".concat(e,"px ").concat(t-e,"px")})),G_(Y_(t),"getStrokeDasharray",(function(r,n,i){var o=i.reduce((function(t,e){return t+e}));if(!o)return t.generateSimpleStrokeDasharray(n,r);for(var a=Math.floor(r/o),c=r%o,u=n-r,l=[],s=0,f=0;s<i.length;f+=i[s],++s)if(f+i[s]>c){l=[].concat(F_(i.slice(0,s)),[c-f]);break}var h=l.length%2==0?[0,u]:[u];return[].concat(F_(e.repeat(i,a)),F_(l),h).map((function(t){return"".concat(t,"px")})).join(", ")})),G_(Y_(t),"id",nc("recharts-line-")),G_(Y_(t),"pathRef",(function(e){t.mainCurve=e})),G_(Y_(t),"handleAnimationEnd",(function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()})),G_(Y_(t),"handleAnimationStart",(function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()})),t}var r,n,i;return 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&&K_(t,e)}(e,G),r=e,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 r=this.props,n=r.points,i=r.xAxis,o=r.yAxis,a=r.layout,c=Ac(r.children,hS);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:jS(t.payload,e)}},l={clipPath:t?"url(#clipPath-".concat(e,")"):null};return X.createElement(Hc,l,c.map((function(t){return X.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:n,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})})))}},{key:"renderDots",value:function(t,r,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,u=_c(this.props,!1),l=_c(o,!0),s=a.map((function(t,r){var n=H_(H_(H_({key:"dot-".concat(r),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:r,payload:t.payload});return e.renderDotItem(o,n)})),f={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return X.createElement(Hc,$_({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,r,n){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls;i.ref;var u=R_(i,B_),l=H_(H_(H_({},_c(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(r,")"):null,points:t},n),{},{type:o,layout:a,connectNulls:c});return X.createElement(uA,$_({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.strokeDasharray,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=n.animateNewValues,h=n.width,p=n.height,d=this.state,y=d.prevPoints,v=d.totalLength;return X.createElement(XP,{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(n){var a=n.t;if(y){var c=y.length/i.length,u=i.map((function(t,e){var r=Math.floor(e*c);if(y[r]){var n=y[r],i=ac(n.x,t.x),o=ac(n.y,t.y);return H_(H_({},t),{},{x:i(a),y:o(a)})}if(f){var u=ac(2*h,t.x),l=ac(p/2,t.y);return H_(H_({},t),{},{x:u(a),y:l(a)})}return H_(H_({},t),{},{x:t.x,y:t.y})}));return r.renderCurveStatically(u,t,e)}var l,s=ac(0,v)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map((function(t){return parseFloat(t)}));l=r.getStrokeDasharray(s,v,d)}else l=r.generateSimpleStrokeDasharray(v,s);return r.renderCurveStatically(i,t,e,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(t,e){var r=this.props,n=r.points,i=r.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&n&&n.length&&(!a&&c>0||!eO(a,n))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(n,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=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(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=ui("recharts-line",o),g=a&&a.allowDataOverflow,m=c&&c.allowDataOverflow,b=g||m,w=Ia(p)?this.id:p,x=null!==(t=_c(n,!1))&&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=(kc(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return X.createElement(Hc,{className:v},g||m?X.createElement("defs",null,X.createElement("clipPath",{id:"clipPath-".concat(w)},X.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&&X.createElement("clipPath",{id:"clipPath-dots-".concat(w)},X.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||n)&&this.renderDots(b,M,w),(!h||d)&&_j.renderCallByParent(this.props,i))}}],i=[{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 r=t.length%2!=0?[].concat(F_(t),[0]):t,n=[],i=0;i<e;++i)n=[].concat(F_(n),F_(r));return n}},{key:"renderDotItem",value:function(t,e){var r;if(X.isValidElement(t))r=X.cloneElement(t,e);else if(Hi(t))r=t(e);else{var n=ui("recharts-line-dot",t?t.className:"");r=X.createElement(aM,$_({},e,{className:n}))}return r}}],n&&V_(r.prototype,n),i&&V_(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();G_(J_,"displayName","Line"),G_(J_,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ay.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),G_(J_,"getComposedData",(function(t){var e=t.props,r=t.xAxis,n=t.yAxis,i=t.xAxisTicks,o=t.yAxisTicks,a=t.dataKey,c=t.bandSize,u=t.displayedData,l=t.offset,s=e.layout;return H_({points:u.map((function(t,e){var u=jS(t,a);return"horizontal"===s?{x:BS({axis:r,ticks:i,bandSize:c,entry:t,index:e}),y:Ia(u)?null:n.scale(u),value:u,payload:t}:{x:Ia(u)?null:r.scale(u),y:BS({axis:n,ticks:o,bandSize:c,entry:t,index:e}),value:u,payload:t}})),layout:s},l)}));var Q_,tT=["layout","type","stroke","connectNulls","isRange","ref"];function eT(t){return eT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eT(t)}function rT(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function nT(){return nT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},nT.apply(this,arguments)}function iT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function oT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?iT(Object(r),!0).forEach((function(e){hT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):iT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function aT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,pT(n.key),n)}}function cT(t,e,r){return e=lT(e),function(t,e){if(e&&("object"===eT(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return sT(t)}(t,uT()?Reflect.construct(e,r||[],lT(t).constructor):e.apply(t,r))}function uT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(uT=function(){return!!t})()}function lT(t){return lT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},lT(t)}function sT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fT(t,e){return fT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fT(t,e)}function hT(t,e,r){return(e=pT(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pT(t){var e=function(t,e){if("object"!=eT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=eT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==eT(e)?e:String(e)}var dT=function(t){function e(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return hT(sT(t=cT(this,e,[].concat(n))),"state",{isAnimationFinished:!0}),hT(sT(t),"id",nc("recharts-area-")),hT(sT(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Hi(e)&&e()})),hT(sT(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Hi(e)&&e()})),t}var r,n,i;return 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&&fT(t,e)}(e,G),r=e,n=[{key:"renderDots",value:function(t,r,n){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var a=this.props,c=a.dot,u=a.points,l=a.dataKey,s=_c(this.props,!1),f=_c(c,!0),h=u.map((function(t,r){var n=oT(oT(oT({key:"dot-".concat(r),r:3},s),f),{},{dataKey:l,cx:t.x,cy:t.y,index:r,value:t.value,payload:t.payload});return e.renderDotItem(c,n)})),p={clipPath:t?"url(#clipPath-".concat(r?"":"dots-").concat(n,")"):null};return X.createElement(Hc,nT({className:"recharts-area-dots"},p),h)}},{key:"renderHorizontalRect",value:function(t){var e=this.props,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].x,a=n[n.length-1].x,c=t*Math.abs(o-a),u=zx(n.map((function(t){return t.y||0})));return tc(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(zx(r.map((function(t){return t.y||0}))),u)),tc(u)?X.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,r=e.baseLine,n=e.points,i=e.strokeWidth,o=n[0].y,a=n[n.length-1].y,c=t*Math.abs(o-a),u=zx(n.map((function(t){return t.x||0})));return tc(r)&&"number"==typeof r?u=Math.max(r,u):r&&Array.isArray(r)&&r.length&&(u=Math.max(zx(r.map((function(t){return t.x||0}))),u)),tc(u)?X.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,r,n){var i=this.props,o=i.layout,a=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var s=rT(i,tT);return X.createElement(Hc,{clipPath:r?"url(#clipPath-".concat(n,")"):null},X.createElement(uA,nT({},_c(s,!0),{points:t,connectNulls:u,type:a,baseLine:e,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==c&&X.createElement(uA,nT({},_c(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:t})),"none"!==c&&l&&X.createElement(uA,nT({},_c(this.props,!1),{className:"recharts-area-curve",layout:o,type:a,connectNulls:u,fill:"none",points:e})))}},{key:"renderAreaWithAnimation",value:function(t,e){var r=this,n=this.props,i=n.points,o=n.baseLine,a=n.isAnimationActive,c=n.animationBegin,u=n.animationDuration,l=n.animationEasing,s=n.animationId,f=this.state,h=f.prevPoints,p=f.prevBaseLine;return X.createElement(XP,{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(n){var a=n.t;if(h){var c,u=h.length/i.length,l=i.map((function(t,e){var r=Math.floor(e*u);if(h[r]){var n=h[r],i=ac(n.x,t.x),o=ac(n.y,t.y);return oT(oT({},t),{},{x:i(a),y:o(a)})}return t}));return c=tc(o)&&"number"==typeof o?ac(p,o)(a):Ia(o)||Za(o)?ac(p,0)(a):o.map((function(t,e){var r=Math.floor(e*u);if(p[r]){var n=p[r],i=ac(n.x,t.x),o=ac(n.y,t.y);return oT(oT({},t),{},{x:i(a),y:o(a)})}return t})),r.renderAreaStatically(l,c,t,e)}return X.createElement(Hc,null,X.createElement("defs",null,X.createElement("clipPath",{id:"animationClipPath-".concat(e)},r.renderClipRect(a))),X.createElement(Hc,{clipPath:"url(#animationClipPath-".concat(e,")")},r.renderAreaStatically(i,o,t,e)))}))}},{key:"renderArea",value:function(t,e){var r=this.props,n=r.points,i=r.baseLine,o=r.isAnimationActive,a=this.state,c=a.prevPoints,u=a.prevBaseLine,l=a.totalLength;return o&&n&&n.length&&(!c&&l>0||!eO(c,n)||!eO(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,n=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(r||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=ui("recharts-area",o),g=u&&u.allowDataOverflow,m=l&&l.allowDataOverflow,b=g||m,w=Ia(p)?this.id:p,x=null!==(t=_c(n,!1))&&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=(kc(n)?n:{}).clipDot,M=void 0===P||P,E=2*S+A;return X.createElement(Hc,{className:v},g||m?X.createElement("defs",null,X.createElement("clipPath",{id:"clipPath-".concat(w)},X.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&&X.createElement("clipPath",{id:"clipPath-dots-".concat(w)},X.createElement("rect",{x:c-E/2,y:a-E/2,width:s+E,height:f+E}))):null,y?null:this.renderArea(b,w),(n||y)&&this.renderDots(b,M,w),(!h||d)&&_j.renderCallByParent(this.props,i))}}],i=[{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&&aT(r.prototype,n),i&&aT(r,i),Object.defineProperty(r,"prototype",{writable:!1}),e}();function yT(){return yT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},yT.apply(this,arguments)}Q_=dT,hT(dT,"displayName","Area"),hT(dT,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ay.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),hT(dT,"getBaseValue",(function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,c=null!=a?a:o;if(tc(c)&&"number"==typeof c)return c;var u="horizontal"===i?n:r,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]})),hT(dT,"getComposedData",(function(t){var e,r=t.props,n=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=r.layout,y=s&&s.length,v=Q_.getBaseValue(r,n,i,o),g="horizontal"===d,m=!1,b=h.map((function(t,e){var r;y?r=s[f+e]:(r=jS(t,l),Array.isArray(r)?m=!0:r=[v,r]);var n=null==r[1]||y&&null==jS(t,l);return g?{x:BS({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:BS({axis:o,ticks:c,bandSize:u,entry:t,index:e}),value:r,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),oT({points:b,baseLine:e,layout:d,isRange:m},p)})),hT(dT,"renderDotItem",(function(t,e){return X.isValidElement(t)?X.cloneElement(t,e):Hi(t)?t(e):X.createElement(aM,nT({},e,{className:"recharts-area-dot"}))}));var vT=function(t){var e=t.xAxisId,r=qk(),n=Wk(),i=Uk(e);return null==i?null:X.createElement(I_,yT({},i,{className:ui("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return _S(t,!0)}}))};function gT(){return gT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},gT.apply(this,arguments)}vT.displayName="XAxis",vT.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 mT=function(t){var e=t.yAxisId,r=qk(),n=Wk(),i=Vk(e);return null==i?null:X.createElement(I_,gT({},i,{className:ui("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(t){return _S(t,!0)}}))};function bT(t){return function(t){if(Array.isArray(t))return wT(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 wT(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wT(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 wT(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}mT.displayName="YAxis",mT.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 xT=function(t,e,r,n,i){var o=Ac(t,t_),a=Ac(t,a_),c=[].concat(bT(o),bT(a)),u=Ac(t,h_),l="".concat(n,"Id"),s=n[0],f=e;if(c.length&&(f=c.reduce((function(t,e){if(e.props[l]===r&&NE(e.props,"extendDomain")&&tc(e.props[s])){var n=e.props[s];return[Math.min(t[0],n),Math.max(t[1],n)]}return t}),f)),u.length){var h="".concat(s,"1"),p="".concat(s,"2");f=u.reduce((function(t,e){if(e.props[l]===r&&NE(e.props,"extendDomain")&&tc(e.props[h])&&tc(e.props[p])){var n=e.props[h],i=e.props[p];return[Math.min(t[0],n,i),Math.max(t[1],n,i)]}return t}),f)}return i&&i.length&&(f=i.reduce((function(t,e){return tc(e)?[Math.min(t[0],e),Math.max(t[1],e)]:t}),f)),f},OT={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,r="~";function n(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function o(t,e,n,o,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var c=new i(n,o||t,a),u=r?r+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 n:delete t._events[e]}function c(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,n,i=[];if(0===this._eventsCount)return i;for(n in t=this._events)e.call(t,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},c.prototype.listenerCount=function(t){var e=r?r+t:t,n=this._events[e];return n?n.fn?1:n.length:0},c.prototype.emit=function(t,e,n,i,o,a){var c=r?r+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,n),!0;case 4:return s.fn.call(s.context,e,n,i),!0;case 5:return s.fn.call(s.context,e,n,i,o),!0;case 6:return s.fn.call(s.context,e,n,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,n);break;case 4:s[l].fn.call(s[l].context,e,n,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,r){return o(this,t,e,r,!1)},c.prototype.once=function(t,e,r){return o(this,t,e,r,!0)},c.prototype.removeListener=function(t,e,n,i){var o=r?r+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||n&&c.context!==n||a(this,o);else{for(var u=0,l=[],s=c.length;u<s;u++)(c[u].fn!==e||i&&!c[u].once||n&&c[u].context!==n)&&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=r?r+t:t,this._events[e]&&a(this,e)):(this._events=new n,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c}(OT);var ST=new(On(OT.exports)),jT="recharts.syncMouseEvents";function AT(t){return AT="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},AT(t)}function PT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,ET(n.key),n)}}function MT(t,e,r){return(e=ET(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ET(t){var e=function(t,e){if("object"!=AT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=AT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==AT(e)?e:String(e)}var kT=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),MT(this,"activeIndex",0),MT(this,"coordinateList",[]),MT(this,"layout","horizontal")}var e,r,n;return e=t,r=[{key:"setDetails",value:function(t){var e,r=t.coordinateList,n=void 0===r?null:r,i=t.container,o=void 0===i?null:i,a=t.layout,c=void 0===a?null:a,u=t.offset,l=void 0===u?null:u,s=t.mouseHandlerCallback,f=void 0===s?null:s;this.coordinateList=null!==(e=null!=n?n:this.coordinateList)&&void 0!==e?e:[],this.container=null!=o?o:this.container,this.layout=null!=c?c:this.layout,this.offset=null!=l?l:this.offset,this.mouseHandlerCallback=null!=f?f: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:"setIndex",value:function(t){this.activeIndex=t}},{key:"spoofMouse",value:function(){var t,e;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,i=r.y,o=r.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=n+a+c,s=i+this.offset.top+o/2+u;this.mouseHandlerCallback({pageX:l,pageY:s})}}}],r&&PT(e.prototype,r),n&&PT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function _T(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[ZS(e,r,n,i),ZS(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}function TT(t,e,r){var n,i,o,a;if("horizontal"===t)o=n=e.x,i=r.top,a=r.top+r.height;else if("vertical"===t)a=i=e.y,n=r.left,o=r.left+r.width;else if(null!=e.cx&&null!=e.cy){if("centric"!==t)return _T(e);var c=e.cx,u=e.cy,l=e.innerRadius,s=e.outerRadius,f=e.angle,h=ZS(c,u,l,f),p=ZS(c,u,s,f);n=h.x,i=h.y,o=p.x,a=p.y}return[{x:n,y:i},{x:o,y:a}]}function CT(t){return CT="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},CT(t)}function DT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function NT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?DT(Object(r),!0).forEach((function(e){IT(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):DT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function IT(t,e,r){return e=function(t){var e=function(t,e){if("object"!=CT(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=CT(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==CT(e)?e:String(e)}(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function BT(t){var e,r=t.element,n=t.tooltipEventType,i=t.isActive,o=t.activeCoordinate,a=t.activePayload,c=t.offset,u=t.activeTooltipIndex,l=t.tooltipAxisBandSize,s=t.layout,f=t.chartName;if(!r||!r.props.cursor||!i||!o||"ScatterChart"!==f&&"axis"!==n)return null;var h=uA;if("ScatterChart"===f)e=o,h=dM;else if("BarChart"===f)e=function(t,e,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===t?e.x-i:r.left+.5,y:"horizontal"===t?r.top+.5:e.y-i,width:"horizontal"===t?n:r.width-1,height:"horizontal"===t?r.height-1:n}}(s,o,c,l),h=iM;else if("radial"===s){var p=_T(o),d=p.cx,y=p.cy,v=p.radius;e={cx:d,cy:y,startAngle:p.startAngle,endAngle:p.endAngle,innerRadius:v,outerRadius:v},h=$j}else e={points:TT(s,o,c)},h=uA;var g=NT(NT(NT(NT({stroke:"#ccc",pointerEvents:"none"},c),e),_c(r.props.cursor,!1)),{},{payload:a,payloadIndex:u,className:"recharts-tooltip-cursor"});return Y(r.props.cursor)?it(r.props.cursor,g):ot(h,g)}var LT=["item"],RT=["children","className","width","height","style","compact","title","desc"];function $T(t){return $T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$T(t)}function zT(){return zT=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},zT.apply(this,arguments)}function HT(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||GT(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 FT(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function UT(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,eC(n.key),n)}}function VT(t,e,r){return e=WT(e),function(t,e){if(e&&("object"===$T(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return XT(t)}(t,qT()?Reflect.construct(e,r||[],WT(t).constructor):e.apply(t,r))}function qT(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(qT=function(){return!!t})()}function WT(t){return WT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},WT(t)}function XT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function YT(t,e){return YT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},YT(t,e)}function KT(t){return function(t){if(Array.isArray(t))return ZT(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||GT(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 GT(t,e){if(t){if("string"==typeof t)return ZT(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ZT(t,e):void 0}}function ZT(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function JT(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function QT(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?JT(Object(r),!0).forEach((function(e){tC(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):JT(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tC(t,e,r){return(e=eC(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eC(t){var e=function(t,e){if("object"!=$T(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=$T(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==$T(e)?e:String(e)}var rC={xAxis:["bottom","top"],yAxis:["left","right"]},nC={width:"100%",height:"100%"},iC={x:0,y:0};function oC(t){return t}var aC=function(t,e){var r=e.graphicalItems,n=e.dataStartIndex,i=e.dataEndIndex,o=(null!=r?r:[]).reduce((function(t,e){var r=e.props.data;return r&&r.length?[].concat(KT(t),KT(r)):t}),[]);return o.length>0?o:t&&t.length&&tc(n)&&tc(i)?t.slice(n,i+1):[]};function cC(t){return"number"===t?[0,"auto"]:void 0}var uC=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=aC(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce((function(i,c){var u,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=cc(void 0===s?a:s,o.dataKey,n):l=s&&s[r]||a[r];return l?[].concat(KT(i),[VS(c,l)]):i}),[])},lC=function(t,e,r,n){var i=n||{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,r),a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==r?void 0:r.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?n[u-1].coordinate:n[a-1].coordinate,s=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,h=void 0;if(Ja(s-l)!==Ja(f-s)){var p=[];if(Ja(f-s)===Ja(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=n[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=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2&&t<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&t>(r[b].coordinate+r[b-1].coordinate)/2){o=r[b].index;break}return o}(o,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=uC(t,e,l,s),h=function(t,e,r,n){var i=e.find((function(t){return t&&t.index===r}));if(i){if("horizontal"===t)return{x:i.coordinate,y:n.y};if("vertical"===t)return{x:n.x,y:i.coordinate};if("centric"===t){var o=i.coordinate,a=n.radius;return QT(QT(QT({},n),ZS(n.cx,n.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,u=n.angle;return QT(QT(QT({},n),ZS(n.cx,n.cy,c,u)),{},{angle:u,radius:c})}return iC}(r,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:h}}return null},sC=function(t,e){var r=e.axes,n=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=kS(l,i);return r.reduce((function(e,r){var p,d=r.props,y=d.type,v=d.dataKey,g=d.allowDataOverflow,m=d.allowDuplicatedCategory,b=d.scale,w=d.ticks,x=d.includeHidden,O=r.props[o];if(e[O])return e;var S,j,A,P=aC(t.data,{graphicalItems:n.filter((function(t){return t.props[o]===O})),dataStartIndex:c,dataEndIndex:u}),M=P.length;(function(t,e,r){if("number"===r&&!0===e&&Array.isArray(t)){var n=null==t?void 0:t[0],i=null==t?void 0:t[1];if(n&&i&&tc(n)&&tc(i))return!0}return!1})(r.props.domain,g,y)&&(S=HS(r.props.domain,null,g),!h||"number"!==y&&"auto"===b||(A=AS(P,v,"category")));var E=cC(y);if(!S||0===S.length){var k,_=null!==(k=r.props.domain)&&void 0!==k?k:E;if(v){if(S=AS(P,v,y),"category"===y&&h){var T=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,r={},n=0;n<e;n++){if(r[t[n]])return!0;r[t[n]]=!0}return!1}(S);m&&T?(j=S,S=cE(0,M)):m||(S=US(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0?t:[].concat(KT(t),[e])}),[]))}else if("category"===y)S=m?S.filter((function(t){return""!==t&&!Ia(t)})):US(_,S,r).reduce((function(t,e){return t.indexOf(e)>=0||""===e||Ia(e)?t:[].concat(KT(t),[e])}),[]);else if("number"===y){var C=function(t,e,r,n,i){var o=e.map((function(e){return MS(t,e,r,i,n)})).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,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),v,i,l);C&&(S=C)}!h||"number"!==y&&"auto"===b||(A=AS(P,v,"category"))}else S=h?cE(0,M):a&&a[O]&&a[O].hasStack&&"number"===y?"expand"===f?[0,1]:RS(a[O].stackGroups,c,u):ES(P,n.filter((function(t){return t.props[o]===O&&(x||!t.props.hide)})),y,l,!0);if("number"===y)S=xT(s,S,O,i,w),_&&(S=HS(_,S,g));else if("category"===y&&_){var D=_;S.every((function(t){return D.indexOf(t)>=0}))&&(S=D)}}return QT(QT({},e),{},tC({},O,QT(QT({},r.props),{},{axisType:i,domain:S,categoricalDomain:A,duplicateDomain:j,originalDomain:null!==(p=r.props.domain)&&void 0!==p?p:E,isCategorical:h,layout:l})))}),{})},fC=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(n,"Id"),f=Ac(l,i),h={};return f&&f.length?h=sC(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(h=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=aC(t.data,{graphicalItems:r,dataStartIndex:c,dataEndIndex:u}),h=f.length,p=kS(l,i),d=-1;return r.reduce((function(t,e){var y,v=e.props[o],g=cC("number");return t[v]?t:(d++,p?y=cE(0,h):a&&a[v]&&a[v].hasStack?(y=RS(a[v].stackGroups,c,u),y=xT(s,y,v,i)):(y=HS(g,ES(f,r.filter((function(t){return t.props[o]===v&&!t.props.hide})),"number",l),n.defaultProps.allowDataOverflow),y=xT(s,y,v,i)),QT(QT({},t),{},tC({},v,QT(QT({axisType:i},n.defaultProps),{},{hide:!0,orientation:Na(rC,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:g,isCategorical:p,layout:l}))))}),{})}(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),h},hC=function(t){var e=t.children,r=t.defaultShowTooltip,n=Pc(e,PE),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(i=n.props.startIndex),n.props.endIndex>=0&&(o=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},pC=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"}},dC=function(t,e){var r=t.props,n=(t.graphicalItems,t.xAxisMap),i=void 0===n?{}:n,o=t.yAxisMap,a=void 0===o?{}:o,c=r.width,u=r.height,l=r.children,s=r.margin||{},f=Pc(l,PE),h=Pc(l,Jp),p=Object.keys(a).reduce((function(t,e){var r=a[e],n=r.orientation;return r.mirror||r.hide?t:QT(QT({},t),{},tC({},n,t[n]+r.width))}),{left:s.left||0,right:s.right||0}),d=Object.keys(i).reduce((function(t,e){var r=i[e],n=r.orientation;return r.mirror||r.hide?t:QT(QT({},t),{},tC({},n,Na(t,"".concat(n))+r.height))}),{top:s.top||0,bottom:s.bottom||0}),y=QT(QT({},d),p),v=y.bottom;f&&(y.bottom+=f.props.height||PE.defaultProps.height),h&&e&&(y=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,c=o-(a.left||0)-(a.right||0),u=gS({children:i,legendWidth:c});if(u){var l=n||{},s=l.width,f=l.height,h=u.align,p=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===p)&&"center"!==h&&tc(t[h]))return wS(wS({},t),{},xS({},h,t[h]+(s||0)));if(("horizontal"===d||"vertical"===d&&"center"===h)&&"middle"!==p&&tc(t[p]))return wS(wS({},t),{},xS({},p,t[p]+(f||0)))}return t}(y,0,r,e));var g=c-y.left-y.right,m=u-y.top-y.bottom;return QT(QT({brushBottom:v},y),{},{width:Math.max(g,0),height:Math.max(m,0)})},yC=function(t){var e,r=t.chartName,n=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 r=e.graphicalItems,n=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=pC(s),y=d.numericAxisName,v=d.cateAxisName,g=function(t){return!(!t||!t.length)&&t.some((function(t){var e=xc(t&&t.type);return e&&e.indexOf("Bar")>=0}))}(r),m=g&&function(t){var e=t.barSize,r=t.stackGroups,n=void 0===r?{}:r;if(!n)return{};for(var i={},o=Object.keys(n),a=0,c=o.length;a<c;a++)for(var u=n[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 xc(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:n}),b=[];return r.forEach((function(r,l){var d=aC(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:c}),g=r.props,w=g.dataKey,x=g.maxBarSize,O=r.props["".concat(y,"Id")],S=r.props["".concat(v,"Id")],j=u.reduce((function(t,n){var i,o,a=e["".concat(n.axisType,"Map")],c=r.props["".concat(n.axisType,"Id")];a&&a[c]||"zAxis"===n.axisType||("production"!==process.env.NODE_ENV?aS(!1,"Specifying a(n) ".concat(n.axisType,"Id requires a corresponding ").concat(n.axisType,"Id on the targeted graphical component ").concat(null!==(i=null==r||null===(o=r.type)||void 0===o?void 0:o.displayName)&&void 0!==i?i:"")):aS(!1));var u=a[c];return QT(QT({},t),{},tC(tC({},n.axisType,u),"".concat(n.axisType,"Ticks"),_S(u)))}),{}),A=j[v],P=j["".concat(v,"Ticks")],M=n&&n[O]&&n[O].hasStack&&function(t,e){var r=t.props.stackId;if(ec(r)){var n=e[r];if(n){var i=n.items.indexOf(t);return i>=0?n.stackedData[i]:null}}return null}(r,n[O].stackGroups),E=xc(r.type).indexOf("Bar")>=0,k=FS(A,P),_=[];if(E){var T,C,D=Ia(x)?p:x,N=null!==(T=null!==(C=FS(A,P,!0))&&void 0!==C?C:D)&&void 0!==T?T:0;_=function(t){var e=t.barGap,r=t.barCategoryGap,n=t.bandSize,i=t.sizeList,o=void 0===i?[]:i,a=t.maxBarSize,c=o.length;if(c<1)return null;var u,l=ic(e,n,0,!0),s=[];if(o[0].barSize===+o[0].barSize){var f=!1,h=n/c,p=o.reduce((function(t,e){return t+e.barSize||0}),0);(p+=(c-1)*l)>=n&&(p-=(c-1)*l,l=0),p>=n&&h>0&&(f=!0,p=c*(h*=.9));var d={offset:((n-p)/2>>0)-l,size:0};u=o.reduce((function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?h:e.barSize}},n=[].concat(OS(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:d})})),n}),s)}else{var y=ic(r,n,0,!0);n-2*y-(c-1)*l<=0&&(l=0);var v=(n-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,r){var n=[].concat(OS(t),[{item:e.item,position:{offset:y+(v+l)*r+(v-g)/2,size:g}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach((function(t){n.push({item:t,position:n[n.length-1].position})})),n}),s)}return u}({barGap:f,barCategoryGap:h,bandSize:N!==k?N:k,sizeList:m[S],maxBarSize:D}),N!==k&&(_=_.map((function(t){return QT(QT({},t),{},{position:QT(QT({},t.position),{},{offset:t.position.offset-N/2})})})))}var I,B,L=r&&r.type&&r.type.getComposedData;L&&b.push({props:QT(QT({},L(QT(QT({},j),{},{displayedData:d,props:t,dataKey:w,item:r,bandSize:k,barPosition:_,offset:i,stackedData:M,layout:s,dataStartIndex:a,dataEndIndex:c}))),{},tC(tC(tC({key:r.key||"item-".concat(l)},y,j[y]),v,j[v]),"animationId",o)),childIndex:(I=r,B=t.children,jc(B).indexOf(I)),item:r})})),b},p=function(t,e){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,c=t.updateId;if(!Mc({props:i}))return null;var l=i.children,f=i.layout,p=i.stackOffset,d=i.data,y=i.reverseStackOrder,v=pC(f),g=v.numericAxisName,m=v.cateAxisName,b=Ac(l,n),w=function(t,e,r,n,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[r],c=t[a]||{hasStack:!1,stackGroups:{}};if(ec(o)){var u=c.stackGroups[o]||{numericAxisId:r,cateAxisId:n,items:[]};u.items.push(e),c.hasStack=!0,c.stackGroups[o]=u}else c.stackGroups[nc("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[e]};return wS(wS({},t),{},xS({},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 wS(wS({},e),{},xS({},o,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:IS(t,a.items,i)}))}),{})),wS(wS({},e),{},xS({},o,c))}),{})}(d,b,"".concat(g,"Id"),"".concat(m,"Id"),p,y),x=u.reduce((function(t,e){var r="".concat(e.axisType,"Map");return QT(QT({},t),{},tC({},r,fC(i,QT(QT({},e),{},{graphicalItems:b,stackGroups:e.axisType===g&&w,dataStartIndex:o,dataEndIndex:a}))))}),{}),O=dC(QT(QT({},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",""),r)}));var S,j,A=x["".concat(m,"Map")],P=(S=oc(A),{tooltipTicks:j=_S(S,!1,!0),orderedTooltipTicks:Zd(j,(function(t){return t.coordinate})),tooltipAxis:S,tooltipAxisBandSize:FS(S,j)}),M=h(i,QT(QT({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:w,offset:O}));return QT(QT({formattedGraphicalItems:M,graphicalItems:b,offset:O,stackGroups:w},P),x)};return e=function(t){function e(t){var n,i,o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),tC(XT(o=VT(this,e,[t])),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),tC(XT(o),"accessibilityManager",new kT),tC(XT(o),"handleLegendBBoxUpdate",(function(t){if(t){var e=o.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;o.setState(QT({legendBBox:t},p({props:o.props,dataStartIndex:r,dataEndIndex:n,updateId:i},QT(QT({},o.state),{},{legendBBox:t}))))}})),tC(XT(o),"handleReceiveSyncEvent",(function(t,e,r){if(o.props.syncId===t){if(r===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(e)}})),tC(XT(o),"handleBrushChange",(function(t){var e=t.startIndex,r=t.endIndex;if(e!==o.state.dataStartIndex||r!==o.state.dataEndIndex){var n=o.state.updateId;o.setState((function(){return QT({dataStartIndex:e,dataEndIndex:r},p({props:o.props,dataStartIndex:e,dataEndIndex:r,updateId:n},o.state))})),o.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}})),tC(XT(o),"handleMouseEnter",(function(t){var e=o.getMouseInfo(t);if(e){var r=QT(QT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseEnter;Hi(n)&&n(r,t)}})),tC(XT(o),"triggeredAfterMouseMove",(function(t){var e=o.getMouseInfo(t),r=e?QT(QT({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(r),o.triggerSyncEvent(r);var n=o.props.onMouseMove;Hi(n)&&n(r,t)})),tC(XT(o),"handleItemMouseEnter",(function(t){o.setState((function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}}))})),tC(XT(o),"handleItemMouseLeave",(function(){o.setState((function(){return{isTooltipActive:!1}}))})),tC(XT(o),"handleMouseMove",(function(t){t.persist(),o.throttleTriggeredAfterMouseMove(t)})),tC(XT(o),"handleMouseLeave",(function(t){o.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};o.setState(e),o.triggerSyncEvent(e);var r=o.props.onMouseLeave;Hi(r)&&r(e,t)})),tC(XT(o),"handleOuterEvent",(function(t){var e,r=function(t){var e=t&&t.type;return e&&wc[e]?wc[e]:null}(t),n=Na(o.props,"".concat(r));r&&Hi(n)&&n(null!==(e=/.*touch.*/i.test(r)?o.getMouseInfo(t.changedTouches[0]):o.getMouseInfo(t))&&void 0!==e?e:{},t)})),tC(XT(o),"handleClick",(function(t){var e=o.getMouseInfo(t);if(e){var r=QT(QT({},e),{},{isTooltipActive:!0});o.setState(r),o.triggerSyncEvent(r);var n=o.props.onClick;Hi(n)&&n(r,t)}})),tC(XT(o),"handleMouseDown",(function(t){var e=o.props.onMouseDown;Hi(e)&&e(o.getMouseInfo(t),t)})),tC(XT(o),"handleMouseUp",(function(t){var e=o.props.onMouseUp;Hi(e)&&e(o.getMouseInfo(t),t)})),tC(XT(o),"handleTouchMove",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(t.changedTouches[0])})),tC(XT(o),"handleTouchStart",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseDown(t.changedTouches[0])})),tC(XT(o),"handleTouchEnd",(function(t){null!=t.changedTouches&&t.changedTouches.length>0&&o.handleMouseUp(t.changedTouches[0])})),tC(XT(o),"triggerSyncEvent",(function(t){void 0!==o.props.syncId&&ST.emit(jT,o.props.syncId,t,o.eventEmitterSymbol)})),tC(XT(o),"applySyncEvent",(function(t){var e=o.props,r=e.layout,n=e.syncMethod,i=o.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)o.setState(QT({dataStartIndex:a,dataEndIndex:c},p({props:o.props,dataStartIndex:a,dataEndIndex:c,updateId:i},o.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=o.state,h=f.offset,d=f.tooltipTicks;if(!h)return;if("function"==typeof n)s=n(d,t);else if("value"===n){s=-1;for(var y=0;y<d.length;y++)if(d[y].value===t.activeLabel){s=y;break}}var v=QT(QT({},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=uC(o.state,o.props.data,s),x=d[s]?{x:"horizontal"===r?d[s].coordinate:g,y:"horizontal"===r?m:d[s].coordinate}:iC;o.setState(QT(QT({},t),{},{activeLabel:b,activeCoordinate:x,activePayload:w,activeTooltipIndex:s}))}else o.setState(t)})),tC(XT(o),"renderCursor",(function(t){var e,n=o.state,i=n.isTooltipActive,a=n.activeCoordinate,c=n.activePayload,u=n.offset,l=n.activeTooltipIndex,s=n.tooltipAxisBandSize,f=o.getTooltipEventType(),h=null!==(e=t.props.active)&&void 0!==e?e:i,p=o.props.layout,d=t.key||"_recharts-cursor";return X.createElement(BT,{key:d,activeCoordinate:a,activePayload:c,activeTooltipIndex:l,chartName:r,element:t,isActive:h,layout:p,offset:u,tooltipAxisBandSize:s,tooltipEventType:f})})),tC(XT(o),"renderPolarAxis",(function(t,e,r){var n=Na(t,"type.axisType"),i=Na(o.state,"".concat(n,"Map")),a=i&&i[t.props["".concat(n,"Id")]];return it(t,QT(QT({},a),{},{className:n,key:t.key||"".concat(e,"-").concat(r),ticks:_S(a,!0)}))})),tC(XT(o),"renderPolarGrid",(function(t){var e=t.props,r=e.radialLines,n=e.polarAngles,i=e.polarRadius,a=o.state,c=a.radiusAxisMap,u=a.angleAxisMap,l=oc(c),s=oc(u),f=s.cx,h=s.cy,p=s.innerRadius,d=s.outerRadius;return it(t,{polarAngles:Array.isArray(n)?n:_S(s,!0).map((function(t){return t.coordinate})),polarRadius:Array.isArray(i)?i:_S(l,!0).map((function(t){return t.coordinate})),cx:f,cy:h,innerRadius:p,outerRadius:d,key:t.key||"polar-grid",radialLines:r})})),tC(XT(o),"renderLegend",(function(){var t=o.state.formattedGraphicalItems,e=o.props,r=e.children,n=e.width,i=e.height,a=o.props.margin||{},c=n-(a.left||0)-(a.right||0),u=gS({children:r,formattedGraphicalItems:t,legendWidth:c,legendContent:l});if(!u)return null;var s=u.item,f=FT(u,LT);return it(s,QT(QT({},f),{},{chartWidth:n,chartHeight:i,margin:a,onBBoxUpdate:o.handleLegendBBoxUpdate}))})),tC(XT(o),"renderTooltip",(function(){var t,e=o.props,r=e.children,n=e.accessibilityLayer,i=Pc(r,Ly);if(!i)return null;var a=o.state,c=a.isTooltipActive,u=a.activeCoordinate,l=a.activePayload,s=a.activeLabel,f=a.offset,h=null!==(t=i.props.active)&&void 0!==t?t:c;return it(i,{viewBox:QT(QT({},f),{},{x:f.left,y:f.top}),active:h,label:s,payload:h?l:[],coordinate:u,accessibilityLayer:n})})),tC(XT(o),"renderBrush",(function(t){var e=o.props,r=e.margin,n=e.data,i=o.state,a=i.offset,c=i.dataStartIndex,u=i.dataEndIndex,l=i.updateId;return it(t,{key:t.key||"_recharts-brush",onChange:CS(o.handleBrushChange,t.props.onChange),data:n,x:tc(t.props.x)?t.props.x:a.left,y:tc(t.props.y)?t.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:tc(t.props.width)?t.props.width:a.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),tC(XT(o),"renderReferenceElement",(function(t,e,r){if(!t)return null;var n=XT(o).clipPathId,i=o.state,a=i.xAxisMap,c=i.yAxisMap,u=i.offset,l=t.props,s=l.xAxisId,f=l.yAxisId;return it(t,{key:t.key||"".concat(e,"-").concat(r),xAxis:a[s],yAxis:c[f],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:n})})),tC(XT(o),"renderActivePoints",(function(t){var r=t.item,n=t.activePoint,i=t.basePoint,o=t.childIndex,a=t.isRange,c=[],u=r.props.key,l=r.item.props,s=l.activeDot,f=QT(QT({index:o,dataKey:l.dataKey,cx:n.x,cy:n.y,r:4,fill:PS(r.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(u,"-activePoint-").concat(o)},_c(s,!1)),dc(s));return c.push(e.renderActiveDot(s,f)),i?c.push(e.renderActiveDot(s,QT(QT({},f),{},{cx:i.x,cy:i.y,key:"".concat(u,"-basePoint-").concat(o)}))):a&&c.push(null),c})),tC(XT(o),"renderGraphicChild",(function(t,e,r){var n=o.filterFormatItem(t,e,r);if(!n)return null;var i=o.getTooltipEventType(),a=o.state,c=a.isTooltipActive,u=a.tooltipAxis,l=a.activeTooltipIndex,s=a.activeLabel,f=Pc(o.props.children,Ly),h=n.props,p=h.points,d=h.isRange,y=h.baseLine,v=n.item.props,g=v.activeDot,m=v.hide,b=v.activeBar,w=v.activeShape,x=Boolean(!m&&c&&f&&(g||b||w)),O={};"axis"!==i&&f&&"click"===f.props.trigger?O={onClick:CS(o.handleItemMouseEnter,t.props.onClick)}:"axis"!==i&&(O={onMouseLeave:CS(o.handleItemMouseLeave,t.props.onMouseLeave),onMouseEnter:CS(o.handleItemMouseEnter,t.props.onMouseEnter)});var S=it(t,QT(QT({},n.props),O));if(x){if(!(l>=0)){var j,A=(null!==(j=o.getItemByXY(o.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:S}).graphicalItem,P=A.item,M=void 0===P?t:P,E=A.childIndex,k=QT(QT(QT({},n.props),O),{},{activeIndex:E});return[it(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());_=cc(p,C,s),T=d&&y&&cc(y,C,s)}else _=null==p?void 0:p[l],T=d&&y&&y[l];if(w||b){var D=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[it(t,QT(QT(QT({},n.props),O),{},{activeIndex:D})),null,null]}if(!Ia(_))return[S].concat(KT(o.renderActivePoints({item:n,activePoint:_,basePoint:T,childIndex:l,isRange:d})))}return d?[S,null,null]:[S,null]})),tC(XT(o),"renderCustomized",(function(t,e,r){return it(t,QT(QT({key:"recharts-customized-".concat(r)},o.props),o.state))})),tC(XT(o),"renderMap",{CartesianGrid:{handler:oC,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:oC},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:oC},YAxis:{handler:oC},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(n=t.id)&&void 0!==n?n:nc("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=av(o.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}var n,i,a;return 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&&YT(t,e)}(e,ut),n=e,i=[{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}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,r=t.data,n=t.height,i=t.layout,o=Pc(e,Ly);if(o){var a=o.props.defaultIndex;if(!("number"!=typeof a||a<0||a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=uC(this.state,r,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+n)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},h=this.state.formattedGraphicalItems.find((function(t){return"Scatter"===t.item.type.name}));h&&(f=QT(QT({},f),h.props.points[a].tooltipPosition),u=h.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(p),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{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!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(t){Tc([Pc(t.children,Ly)],[Pc(this.props.children,Ly)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=Pc(this.props.children,Ly);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,r=this.container,n=r.getBoundingClientRect(),i={top:(e=n).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=n.width/r.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=oc(l).scale,h=oc(s).scale,p=f&&f.invert?f.invert(o.chartX):null,d=h&&h.invert?h.invert(o.chartY):null;return QT(QT({},o),{},{xValue:p,yValue:d})}var y=lC(this.state,this.props.data,this.props.layout,c);return y?QT(QT({},o),y):null}},{key:"inRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,i=t/r,o=e/r;if("horizontal"===n||"vertical"===n){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=oc(u);return tj({x:i,y:o},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=Pc(t,Ly),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),QT(QT({},dc(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){ST.on(jT,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){ST.removeListener(jT,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;i<o;i++){var a=n[i];if(a.item===t||a.props.key===t.key||e===xc(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var t=this.clipPathId,e=this.state.offset,r=e.left,n=e.top,i=e.height,o=e.width;return X.createElement("defs",null,X.createElement("clipPath",{id:t},X.createElement("rect",{x:r,y:n,height:i,width:o})))}},{key:"getXScales",value:function(){var t=this.state.xAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=HT(e,2),n=r[0],i=r[1];return QT(QT({},t),{},tC({},n,i.scale))}),{}):null}},{key:"getYScales",value:function(){var t=this.state.yAxisMap;return t?Object.entries(t).reduce((function(t,e){var r=HT(e,2),n=r[0],i=r[1];return QT(QT({},t),{},tC({},n,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,r=e.formattedGraphicalItems,n=e.activeItem;if(r&&r.length)for(var i=0,o=r.length;i<o;i++){var a=r[i],c=a.props,u=a.item,l=xc(u.type);if("Bar"===l){var s=(c.data||[]).find((function(e){return rM(t,e)}));if(s)return{graphicalItem:a,payload:s}}else if("RadialBar"===l){var f=(c.data||[]).find((function(e){return tj(t,e)}));if(f)return{graphicalItem:a,payload:f}}else if(XM(a,n)||YM(a,n)||KM(a,n)){var h=QM({graphicalItem:a,activeTooltipItem:n,itemData:u.props.data}),p=void 0===u.props.activeIndex?h:u.props.activeIndex;return{graphicalItem:QT(QT({},a),{},{childIndex:p}),payload:KM(a,n)?u.props.data[h]:a.props.data[h]}}}return null}},{key:"render",value:function(){var t,e=this;if(!Mc(this))return null;var r,n,i=this.props,o=i.children,a=i.className,c=i.width,u=i.height,l=i.style,s=i.compact,f=i.title,h=i.desc,p=FT(i,RT),d=_c(p,!1);if(s)return X.createElement(Hk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},X.createElement(Lc,zT({},d,{width:c,height:u,title:f,desc:h}),this.renderClipPath(),Dc(o,this.renderMap)));this.props.accessibilityLayer&&(d.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,d.role=null!==(n=this.props.role)&&void 0!==n?n:"application",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return X.createElement(Hk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},X.createElement("div",zT({className:ui("recharts-wrapper",a),style:QT({position:"relative",cursor:"default",width:c,height:u},l)},y,{ref:function(t){e.container=t},role:null!==(t=d.role)&&void 0!==t?t:"region"}),X.createElement(Lc,zT({},d,{width:c,height:u,title:f,desc:h,style:nC}),this.renderClipPath(),Dc(o,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],i&&UT(n.prototype,i),a&&UT(n,a),Object.defineProperty(n,"prototype",{writable:!1}),e}(),tC(e,"displayName",r),tC(e,"defaultProps",QT({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),tC(e,"getDerivedStateFromProps",(function(t,e){var r=t.dataKey,n=t.data,i=t.children,o=t.width,a=t.height,c=t.layout,u=t.stackOffset,l=t.margin,s=e.dataStartIndex,f=e.dataEndIndex;if(void 0===e.updateId){var h=hC(t);return QT(QT(QT({},h),{},{updateId:0},p(QT(QT({props:t},h),{},{updateId:0}),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(r!==e.prevDataKey||n!==e.prevData||o!==e.prevWidth||a!==e.prevHeight||c!==e.prevLayout||u!==e.prevStackOffset||!uc(l,e.prevMargin)){var d=hC(t),y={chartX:e.chartX,chartY:e.chartY,isTooltipActive:e.isTooltipActive},v=QT(QT({},lC(e,n,c)),{},{updateId:e.updateId+1}),g=QT(QT(QT({},d),y),v);return QT(QT(QT({},g),p(QT({props:t},g),e)),{},{prevDataKey:r,prevData:n,prevWidth:o,prevHeight:a,prevLayout:c,prevStackOffset:u,prevMargin:l,prevChildren:i})}if(!Tc(i,e.prevChildren)){var m,b,w,x,O=Pc(i,PE),S=O&&null!==(m=null===(b=O.props)||void 0===b?void 0:b.startIndex)&&void 0!==m?m:s,j=O&&null!==(w=null===(x=O.props)||void 0===x?void 0:x.endIndex)&&void 0!==w?w:f,A=S!==s||j!==f,P=!Ia(n)&&!A?e.updateId:e.updateId+1;return QT(QT({updateId:P},p(QT(QT({props:t},e),{},{updateId:P,dataStartIndex:S,dataEndIndex:j}),e)),{},{prevChildren:i,dataStartIndex:S,dataEndIndex:j})}return null})),tC(e,"renderActiveDot",(function(t,e){var r;return r=Y(t)?it(t,e):Hi(t)?t(e):X.createElement(aM,e),X.createElement(Hc,{className:"recharts-active-dot",key:e.key},r)})),e},vC=yC({chartName:"LineChart",GraphicalChild:J_,axisComponents:[{axisType:"xAxis",AxisComp:vT},{axisType:"yAxis",AxisComp:mT}],formatAxisMap:Mk}),gC=yC({chartName:"AreaChart",GraphicalChild:dT,axisComponents:[{axisType:"xAxis",AxisComp:vT},{axisType:"yAxis",AxisComp:mT}],formatAxisMap:Mk});const mC=({data:r,dataKey:n,width:i="100%",height:o="100%",areaType:a="linear",showTooltip:c=!1,isAnimated:u=!1,formatter:l,sampleRate:s,style:f})=>{const{isNetGain:h}=zn({data:r,dataKey:n}),p=h?Un.mint():Un.coolElegance(),d=crypto.randomUUID(),y=s?Fn({arr:r||[],n:s}):r,v={cursor:c?"crosshair":"default",...f};return e(pv,{width:i,minHeight:o,children:t(gC,{data:y,margin:{top:20,right:0,left:0,bottom:20},style:v,children:[e("defs",{children:t("linearGradient",{id:d,x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:p,stopOpacity:.8}),e("stop",{offset:"95%",stopColor:p,stopOpacity:0})]})}),e(mT,{domain:["dataMin","dataMax"],hide:!0}),e(dT,{type:a,dataKey:n,stroke:p,fill:`url(#${d})`,isAnimationActive:u}),c&&e(Ly,{cursor:!1,formatter:l})]})})},bC=()=>{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})})},wC=({children:t,...r})=>e(f,{border:"solid 1px",borderColor:Un.coolElegance(),padding:"1",borderRadius:"lg",bg:"white",width:"fit-content",size:"sm",...r,children:t}),xC=({isSelected:t,children:r,...n})=>e(h,{paddingX:"1",fontSize:"sm",color:t?"brand.500":Un.coolElegance(),bg:"transparent",border:"solid 1px",borderColor:t?"brand.50":"transparent",boxShadow:"none",_hover:{bg:"brand.50",color:"brand.500"},...n,children:r}),OC=({children:t,...r})=>e(p,{bg:"white",p:"4",gap:"4",w:"full",border:"solid 1px",borderColor:Un.coolElegance(),boxShadow:"none",borderRadius:"xl",...r,children:t}),SC=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,errorMessage:u,label:l,labelPosition:s="left",spaceBetween:f,...h}=r;let p;return c||(p=e(wt,{})),t(d,{as:y,flexDir:"column",isInvalid:Boolean(u),isDisabled:i,isReadOnly:o,isRequired:a,...h,children:[t(y,{w:"full",justifyContent:f?"space-between":"auto",children:["left"===s&&e(v,{fontSize:n,m:"0",mr:"3",children:l}),e(g,{icon:p,isDisabled:i,isReadOnly:o,isRequired:a,isIndeterminate:c,isInvalid:Boolean(u),size:n}),"right"===s&&e(v,{fontSize:n,m:"0",ml:"3",children:l})]}),e(y,{w:"full",children:u&&e(m,{size:n,children:u})})]})},jC=({children:t,onSubmit:r,...n})=>e(y,{as:"form",onSubmit:t=>{t.preventDefault(),r&&r(t)},noValidate:!0,gap:"6",flexDir:"column",...n,children:t});var AC=function(){return AC=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},AC.apply(this,arguments)};function PC(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var MC=function(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")},EC={k:1e3,m:1e6,b:1e9},kC=function(t){var e=t.value,r=t.groupSeparator,n=void 0===r?",":r,i=t.decimalSeparator,o=void 0===i?".":i,a=t.allowDecimals,c=void 0===a||a,u=t.decimalsLimit,l=void 0===u?2:u,s=t.allowNegativeValue,f=void 0===s||s,h=t.disableAbbreviations,p=void 0!==h&&h,d=t.prefix,y=void 0===d?"":d,v=t.transformRawValue,g=(void 0===v?function(t){return t}:v)(e);if("-"===g)return g;var m=p?[]:["k","m","b"],b=new RegExp("((^|\\D)-\\d)|(-".concat(MC(y),")")).test(g),w=RegExp("(\\d+)-?".concat(MC(y))).exec(e)||[],x=w[0],O=w[1],S=function(t,e){void 0===e&&(e=",");var r=new RegExp(MC(e),"g");return t.replace(r,"")}(y?x?g.replace(x,"").concat(O):g.replace(y,""):g,n),j=function(t,e){var r=MC(e.join("")),n=new RegExp("[^\\d".concat(r,"]"),"gi");return t.replace(n,"")}(S,PC([n,o],m,!0)),A=j;if(!p){if(m.some((function(t){return t===j.toLowerCase().replace(o,"")})))return"";var P=function(t,e){void 0===e&&(e=".");var r=new RegExp("(\\d+(".concat(MC(e),"\\d*)?)([kmb])$"),"i"),n=t.match(r);if(n){var i=n[1],o=n[3],a=EC[o.toLowerCase()];return Number(i.replace(e,"."))*a}}(j,o);P&&(A=String(P))}var M=b&&f?"-":"";if(o&&A.includes(o)){var E=j.split(o),k=E[0],_=E[1],T=l&&_?_.slice(0,l):_,C=c?"".concat(o).concat(T):"";return"".concat(M).concat(k).concat(C)}return"".concat(M).concat(A)},_C=function(t,e){var r=e.groupSeparator,n=void 0===r?",":r,i=e.decimalSeparator,o=void 0===i?".":i,a=new RegExp("\\d([^".concat(MC(n)).concat(MC(o),"0-9]+)")),c=t.match(a);return c?c[1]:void 0},TC=function(t){var e=t.value,r=t.decimalSeparator,n=t.intlConfig,i=t.decimalScale,o=t.prefix,a=void 0===o?"":o,c=t.suffix,u=void 0===c?"":c;if(""===e||void 0===e)return"";if("-"===e)return"-";var l=new RegExp("^\\d?-".concat(a?"".concat(MC(a),"?"):"","\\d")).test(e),s="."!==r?CC(e,r,l):e;r&&"-"!==r&&s.startsWith(r)&&(s="0"+s);var f={minimumFractionDigits:i||0,maximumFractionDigits:20},h=(n?new Intl.NumberFormat(n.locale,n.currency?AC(AC({},f),{style:"currency",currency:n.currency}):f):new Intl.NumberFormat(void 0,f)).formatToParts(Number(s)),p=DC(h,t),d=_C(p,AC({},t)),y=e.slice(-1)===r?r:"",v=(s.match(RegExp("\\d+\\.(\\d+)"))||[])[1];return void 0===i&&v&&r&&(p=p.includes(r)?p.replace(RegExp("(\\d+)(".concat(MC(r),")(\\d+)"),"g"),"$1$2".concat(v)):d&&!u?p.replace(d,"".concat(r).concat(v).concat(d)):"".concat(p).concat(r).concat(v)),u&&y?"".concat(p).concat(y).concat(u):d&&y?p.replace(d,"".concat(y).concat(d)):d&&u?p.replace(d,"".concat(y).concat(u)):[p,y,u].join("")},CC=function(t,e,r){var n=t;return e&&"."!==e&&(n=n.replace(RegExp(MC(e),"g"),"."),r&&"-"===e&&(n="-".concat(n.slice(1)))),n},DC=function(t,e){var r=e.prefix,n=e.groupSeparator,i=e.decimalSeparator,o=e.decimalScale,a=e.disableGroupSeparators,c=void 0!==a&&a;return t.reduce((function(t,e,a){var u=e.type,l=e.value;return 0===a&&r?"minusSign"===u?[l,r]:"currency"===u?PC(PC([],t,!0),[r],!1):[r,l]:"currency"===u?r?t:PC(PC([],t,!0),[l],!1):"group"===u?c?t:PC(PC([],t,!0),[void 0!==n?n:l],!1):"decimal"===u?void 0!==o&&0===o?t:PC(PC([],t,!0),[void 0!==i?i:l],!1):PC(PC([],t,!0),"fraction"===u?[void 0!==o?l.slice(0,o):l]:[l],!1)}),[""]).join("")},NC={currencySymbol:"",groupSeparator:"",decimalSeparator:"",prefix:"",suffix:""},IC=function(t){return RegExp(/\d/,"gi").test(t)},BC=Z((function(t,e){var r=t.allowDecimals,n=void 0===r||r,i=t.allowNegativeValue,o=void 0===i||i,a=t.id,c=t.name,u=t.className,l=t.customInput,s=t.decimalsLimit,f=t.defaultValue,h=t.disabled,p=void 0!==h&&h,d=t.maxLength,y=t.value,v=t.onValueChange,g=t.fixedDecimalLength,m=t.placeholder,b=t.decimalScale,w=t.prefix,x=t.suffix,O=t.intlConfig,S=t.step,j=t.min,A=t.max,P=t.disableGroupSeparators,M=void 0!==P&&P,E=t.disableAbbreviations,k=void 0!==E&&E,_=t.decimalSeparator,T=t.groupSeparator,C=t.onChange,D=t.onFocus,N=t.onBlur,I=t.onKeyDown,B=t.onKeyUp,L=t.transformRawValue,R=t.formatValueOnBlur,$=void 0===R||R,z=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);i<n.length;i++)e.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]])}return r}(t,["allowDecimals","allowNegativeValue","id","name","className","customInput","decimalsLimit","defaultValue","disabled","maxLength","value","onValueChange","fixedDecimalLength","placeholder","decimalScale","prefix","suffix","intlConfig","step","min","max","disableGroupSeparators","disableAbbreviations","decimalSeparator","groupSeparator","onChange","onFocus","onBlur","onKeyDown","onKeyUp","transformRawValue","formatValueOnBlur"]);if(_&&IC(_))throw new Error("decimalSeparator cannot be a number");if(T&&IC(T))throw new Error("groupSeparator cannot be a number");var H=nt((function(){return function(t){var e=t||{},r=e.locale,n=e.currency;return(r?new Intl.NumberFormat(r,n?{currency:n,style:"currency"}:void 0):new Intl.NumberFormat).formatToParts(1000.1).reduce((function(t,e,r){return"currency"===e.type?AC(AC({},t),0===r?{currencySymbol:e.value,prefix:e.value}:{currencySymbol:e.value,suffix:e.value}):"group"===e.type?AC(AC({},t),{groupSeparator:e.value}):"decimal"===e.type?AC(AC({},t),{decimalSeparator:e.value}):t}),NC)}(O)}),[O]),F=_||H.decimalSeparator||"",U=T||H.groupSeparator||"";if(F&&U&&F===U&&!1===M)throw new Error("decimalSeparator cannot be the same as groupSeparator");var V={decimalSeparator:F,groupSeparator:U,disableGroupSeparators:M,intlConfig:O,prefix:w||H.prefix,suffix:x},q={decimalSeparator:F,groupSeparator:U,allowDecimals:n,decimalsLimit:s||g||2,allowNegativeValue:o,disableAbbreviations:k,prefix:w||H.prefix,transformRawValue:L},W=tt((function(){return null!=f?TC(AC(AC({},V),{decimalScale:b,value:String(f)})):null!=y?TC(AC(AC({},V),{decimalScale:b,value:String(y)})):""})),Y=W[0],K=W[1],G=tt(!1),Z=G[0],et=G[1],it=tt(0),ot=it[0],at=it[1],ct=tt(0),ut=ct[0],lt=ct[1],st=tt(null),ft=st[0],ht=st[1],pt=J(null);Q(e,(function(){return pt.current}));var dt=function(t,e){et(!0);var r=function(t){var e=t.selectionStart,r=t.value,n=t.lastKeyStroke,i=t.stateValue,o=t.groupSeparator,a=e,c=r;if(i&&a){var u=r.split("");return"Backspace"===n&&i[a]===o&&(u.splice(a-1,1),a-=1),"Delete"===n&&i[a]===o&&(u.splice(a,1),a+=1),{modifiedValue:c=u.join(""),cursorPosition:a}}return{modifiedValue:c,cursorPosition:e}}({selectionStart:e,value:t,lastKeyStroke:ft,stateValue:Y,groupSeparator:U}),n=r.modifiedValue,i=r.cursorPosition,o=kC(AC({value:n},q));if(!(d&&o.replace(/-/g,"").length>d)){if(""===o||"-"===o||o===F)return v&&v(void 0,c,{float:null,formatted:"",value:""}),K(o),void at(1);var a=F?o.replace(F,"."):o,u=parseFloat(a),l=TC(AC({value:o},V));if(null!=i){var s=i+(l.length-t.length);s=s<=0?w?w.length:0:s,at(s),lt(ut+1)}if(K(l),v)v(o,c,{float:u,formatted:l,value:o})}};rt((function(){null==y&&null==f&&K("")}),[f,y]),rt((function(){Z&&"-"!==Y&&pt.current&&document.activeElement===pt.current&&pt.current.setSelectionRange(ot,ot)}),[Y,ot,pt,Z,ut]);var yt=AC({type:"text",inputMode:"decimal",id:a,name:c,className:u,onChange:function(t){var e=t.target,r=e.value,n=e.selectionStart;dt(r,n),C&&C(t)},onBlur:function(t){var e=t.target.value,r=kC(AC({value:e},q));if("-"===r||r===F||!r)return K(""),void(N&&N(t));var n=function(t,e,r){if(void 0!==r&&t.length>1){if(0===r)return t.replace(e,"");if(t.includes(e)){var n=t.split(e),i=n[0];if((c=n[1]).length===r)return t;if(c.length>r)return"".concat(i).concat(e).concat(c.slice(0,r))}var o=t.length>r?new RegExp("(\\d+)(\\d{".concat(r,"})")):new RegExp("(\\d)(\\d+)"),a=t.match(o);if(a){i=a[1];var c=a[2];return"".concat(i).concat(e).concat(c)}}return t}(r,F,g),i=function(t,e,r){if(void 0===e&&(e="."),void 0===r||""===t||void 0===t)return t;if(!t.match(/\d/g))return"";var n=t.split(e),i=n[0],o=n[1];if(0===r)return i;var a=o||"";if(a.length<r)for(;a.length<r;)a+="0";else a=a.slice(0,r);return"".concat(i).concat(e).concat(a)}(n,F,void 0!==b?b:g),o=parseFloat(i.replace(F,".")),a=TC(AC(AC({},V),{value:i}));v&&$&&v(i,c,{float:o,formatted:a,value:i}),K(a),N&&N(t)},onFocus:function(t){return D&&D(t),Y?Y.length:0},onKeyDown:function(t){var e=t.key;if(ht(e),S&&("ArrowUp"===e||"ArrowDown"===e)){t.preventDefault(),at(Y.length);var r=parseFloat(null!=y?String(y).replace(F,"."):kC(AC({value:Y},q)))||0,n="ArrowUp"===e?r+S:r-S;if(void 0!==j&&n<Number(j))return;if(void 0!==A&&n>Number(A))return;var i=String(S).includes(".")?Number(String(S).split(".")[1].length):void 0;dt(String(i?n.toFixed(i):n).replace(".",F))}I&&I(t)},onKeyUp:function(t){var e=t.key,r=t.currentTarget.selectionStart;if("ArrowUp"!==e&&"ArrowDown"!==e&&"-"!==Y){var n=_C(Y,{groupSeparator:U,decimalSeparator:F});if(n&&r&&r>Y.length-n.length&&pt.current){var i=Y.length-n.length;pt.current.setSelectionRange(i,i)}}B&&B(t)},placeholder:m,disabled:p,value:null==y||"-"===Y||F&&Y===F?Y:TC(AC(AC({},V),{decimalScale:Z?void 0:b,value:String(y)})),ref:pt},z);if(l){var vt=l;return X.createElement(vt,AC({},yt))}return X.createElement("input",AC({},yt))}));BC.displayName="CurrencyInput";const LC=r=>{const{size:n,isDisabled:i,isReadOnly:o,isRequired:a,spellCheck:c=!1,name:u,label:l,register:s,errorMessage:f,helperText:h,leftAddon:p,leftElement:y,rightAddon:g,rightElement:P,type:M="text",...E}=r,k=Hn(n),_=s?s(u):void 0,T="currency"===M?{as:BC,placeholder:"$0.00",prefix:"$",allowNegative:!1,disableAbbreviations:!0}:{};return t(d,{isInvalid:Boolean(f),isDisabled:i,isReadOnly:o,isRequired:a,children:[l&&e(v,{size:n,children:l}),t(b,{size:n,children:[p&&e(w,{bg:"transparent",children:p}),y&&e(x,{w:"auto",ml:"2",children:y}),e(O,{size:n,spellCheck:c,paddingLeft:y&&"2.25em",paddingRight:P&&"2.25em",type:"currency"===M?"text":M,..._,...T,...E}),P&&e(S,{w:"auto",mr:"2",children:P}),g&&e(j,{children:g})]}),f&&e(m,{size:n,children:f}),h&&e(A,{fontSize:k,children:h})]})};var RC=t=>null==t;var $C=t=>!RC(t)&&!Array.isArray(t)&&(t=>"object"==typeof t)(t)&&!(t=>t instanceof Date)(t),zC=t=>{const e=t.constructor&&t.constructor.prototype;return $C(e)&&e.hasOwnProperty("isPrototypeOf")},HC="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function FC(t){let e;const r=Array.isArray(t);if(t instanceof Date)e=new Date(t);else if(t instanceof Set)e=new Set(t);else{if(HC&&(t instanceof Blob||t instanceof FileList)||!r&&!$C(t))return t;if(e=r?[]:{},r||zC(t))for(const r in t)t.hasOwnProperty(r)&&(e[r]=FC(t[r]));else e=t}return e}var UC=t=>Array.isArray(t)?t.filter(Boolean):[],VC=t=>void 0===t,qC=(t,e,r)=>{if(!e||!$C(t))return r;const n=UC(e.split(/[,[\].]+?/)).reduce(((t,e)=>RC(t)?t:t[e]),t);return VC(n)||n===t?VC(t[e])?r:t[e]:n},WC=t=>"boolean"==typeof t;const XC="onBlur",YC="onChange",KC="onSubmit",GC="onTouched",ZC="all",JC="max",QC="min",tD="maxLength",eD="minLength",rD="pattern",nD="required",iD="validate",oD=X.createContext(null);var aD=t=>$C(t)&&!Object.keys(t).length,cD=t=>Array.isArray(t)?t:[t];var uD=t=>"string"==typeof t,lD=t=>/^\w*$/.test(t),sD=t=>UC(t.replace(/["|']|\]/g,"").split(/\.|\[/)),fD=(t,e,r)=>{let n=-1;const i=lD(e)?[e]:sD(e),o=i.length,a=o-1;for(;++n<o;){const e=i[n];let o=r;if(n!==a){const r=t[e];o=$C(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}t[e]=o,t=t[e]}return t},hD=(t,e,r,n,i)=>e?{...r[t],types:{...r[t]&&r[t].types?r[t].types:{},[n]:i||!0}}:{},pD=()=>{const t="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const r=(16*Math.random()+t)%16|0;return("x"==e?r:3&r|8).toString(16)}))},dD=(t,e,r={})=>r.shouldFocus||VC(r.shouldFocus)?r.focusName||`${t}.${VC(r.focusIndex)?e:r.focusIndex}.`:"",yD=t=>({isOnSubmit:!t||t===KC,isOnBlur:t===XC,isOnChange:t===YC,isOnAll:t===ZC,isOnTouch:t===GC});const vD=(t,e,r,n)=>{for(const i of r||Object.keys(t)){const r=qC(t,i);if(r){const{_f:t,...o}=r;if(t){if(t.refs&&t.refs[0]&&e(t.refs[0],i)&&!n)break;if(t.ref&&e(t.ref,t.name)&&!n)break;vD(o,e)}else $C(o)&&vD(o,e)}}};var gD=(t,e,r)=>{const n=UC(qC(t,r));return fD(n,"root",e[r]),fD(t,r,n),t},mD=t=>uD(t),bD=t=>t instanceof RegExp;const wD={value:!1,isValid:!1},xD={value:!0,isValid:!0};const OD={isValid:!1,value:null};function SD(t,e,r="validate"){if(mD(t)||Array.isArray(t)&&t.every(mD)||WC(t)&&!t)return{type:r,message:mD(t)?t:"",ref:e}}var jD=t=>$C(t)&&!bD(t)?t:{value:t,message:""},AD=async(t,e,r,n,i)=>{const{ref:o,refs:a,required:c,maxLength:u,minLength:l,min:s,max:f,pattern:h,validate:p,name:d,valueAsNumber:y,mount:v,disabled:g}=t._f,m=qC(e,d);if(!v||g)return{};const b=a?a[0]:o,w=t=>{n&&b.reportValidity&&(b.setCustomValidity(WC(t)?"":t||""),b.reportValidity())},x={},O="radio"===o.type;const S=(t=>"checkbox"===t.type)(o),j=O||S,A=(y||(t=>"file"===t.type)(o))&&VC(o.value)&&VC(m)||(t=>{if(!HC)return!1;const e=t?t.ownerDocument:0;return t instanceof(e&&e.defaultView?e.defaultView.HTMLElement:HTMLElement)})(o)&&""===o.value||""===m||Array.isArray(m)&&!m.length,P=hD.bind(null,d,r,x),M=(t,e,r,n=tD,i=eD)=>{const a=t?e:r;x[d]={type:t?n:i,message:a,ref:o,...P(t?n:i,a)}};if(i?!Array.isArray(m)||!m.length:c&&(!j&&(A||RC(m))||WC(m)&&!m||S&&!(t=>{if(Array.isArray(t)){if(t.length>1){const e=t.filter((t=>t&&t.checked&&!t.disabled)).map((t=>t.value));return{value:e,isValid:!!e.length}}return t[0].checked&&!t[0].disabled?t[0].attributes&&!VC(t[0].attributes.value)?VC(t[0].value)||""===t[0].value?xD:{value:t[0].value,isValid:!0}:xD:wD}return wD})(a).isValid||O&&!(E=a,Array.isArray(E)?E.reduce(((t,e)=>e&&e.checked&&!e.disabled?{isValid:!0,value:e.value}:t),OD):OD).isValid)){const{value:t,message:e}=mD(c)?{value:!!c,message:c}:jD(c);if(t&&(x[d]={type:nD,message:e,ref:b,...P(nD,e)},!r))return w(e),x}var E;if(!(A||RC(s)&&RC(f))){let t,e;const n=jD(f),i=jD(s);if(RC(m)||isNaN(m)){const r=o.valueAsDate||new Date(m),a=t=>new Date((new Date).toDateString()+" "+t),c="time"==o.type,u="week"==o.type;uD(n.value)&&m&&(t=c?a(m)>a(n.value):u?m>n.value:r>new Date(n.value)),uD(i.value)&&m&&(e=c?a(m)<a(i.value):u?m<i.value:r<new Date(i.value))}else{const r=o.valueAsNumber||(m?+m:m);RC(n.value)||(t=r>n.value),RC(i.value)||(e=r<i.value)}if((t||e)&&(M(!!t,n.message,i.message,JC,QC),!r))return w(x[d].message),x}if((u||l)&&!A&&(uD(m)||i&&Array.isArray(m))){const t=jD(u),e=jD(l),n=!RC(t.value)&&m.length>+t.value,i=!RC(e.value)&&m.length<+e.value;if((n||i)&&(M(n,t.message,e.message),!r))return w(x[d].message),x}if(h&&!A&&uD(m)){const{value:t,message:e}=jD(h);if(bD(t)&&!m.match(t)&&(x[d]={type:rD,message:e,ref:o,...P(rD,e)},!r))return w(e),x}if(p)if("function"==typeof p){const t=SD(await p(m,e),b);if(t&&(x[d]={...t,...P(iD,t.message)},!r))return w(t.message),x}else if($C(p)){let t={};for(const n in p){if(!aD(t)&&!r)break;const i=SD(await p[n](m,e),b,n);i&&(t={...i,...P(n,i.message)},w(i.message),r&&(x[d]=t))}if(!aD(t)&&(x[d]={ref:b,...t},!r))return x}return w(!0),x},PD=(t,e)=>[...t,...cD(e)],MD=t=>Array.isArray(t)?t.map((()=>{})):void 0;function ED(t,e,r){return[...t.slice(0,e),...cD(r),...t.slice(e)]}var kD=(t,e,r)=>Array.isArray(t)?(VC(t[r])&&(t[r]=void 0),t.splice(r,0,t.splice(e,1)[0]),t):[],_D=(t,e)=>[...cD(e),...cD(t)];var TD=(t,e)=>VC(e)?[]:function(t,e){let r=0;const n=[...t];for(const t of e)n.splice(t-r,1),r++;return UC(n).length?n:[]}(t,cD(e).sort(((t,e)=>t-e))),CD=(t,e,r)=>{[t[e],t[r]]=[t[r],t[e]]};function DD(t,e){const r=Array.isArray(e)?e:lD(e)?[e]:sD(e),n=1===r.length?t:function(t,e){const r=e.slice(0,-1).length;let n=0;for(;n<r;)t=VC(t)?n++:t[e[n++]];return t}(t,r),i=r.length-1,o=r[i];return n&&delete n[o],0!==i&&($C(n)&&aD(n)||Array.isArray(n)&&function(t){for(const e in t)if(t.hasOwnProperty(e)&&!VC(t[e]))return!1;return!0}(n))&&DD(t,r.slice(0,-1)),t}var ND=(t,e,r)=>(t[e]=r,t);function ID(t){const e=X.useContext(oD),{control:r=e.control,name:n,keyName:i="id",shouldUnregister:o}=t,[a,c]=X.useState(r._getFieldArray(n)),u=X.useRef(r._getFieldArray(n).map(pD)),l=X.useRef(a),s=X.useRef(n),f=X.useRef(!1);s.current=n,l.current=a,r._names.array.add(n),t.rules&&r.register(n,t.rules),function(t){const e=X.useRef(t);e.current=t,X.useEffect((()=>{const r=!t.disabled&&e.current.subject&&e.current.subject.subscribe({next:e.current.next});return()=>{r&&r.unsubscribe()}}),[t.disabled])}({next:({values:t,name:e})=>{if(e===s.current||!e){const e=qC(t,s.current);Array.isArray(e)&&(c(e),u.current=e.map(pD))}},subject:r._subjects.array});const h=X.useCallback((t=>{f.current=!0,r._updateFieldArray(n,t)}),[r,n]);return X.useEffect((()=>{if(r._state.action=!1,((t,e,r)=>!r&&(e.watchAll||e.watch.has(t)||[...e.watch].some((e=>t.startsWith(e)&&/^\.\w+/.test(t.slice(e.length))))))(n,r._names)&&r._subjects.state.next({...r._formState}),f.current&&(!yD(r._options.mode).isOnSubmit||r._formState.isSubmitted))if(r._options.resolver)r._executeSchema([n]).then((t=>{const e=qC(t.errors,n),i=qC(r._formState.errors,n);(i?!e&&i.type||e&&(i.type!==e.type||i.message!==e.message):e&&e.type)&&(e?fD(r._formState.errors,n,e):DD(r._formState.errors,n),r._subjects.state.next({errors:r._formState.errors}))}));else{const t=qC(r._fields,n);!t||!t._f||yD(r._options.reValidateMode).isOnSubmit&&yD(r._options.mode).isOnSubmit||AD(t,r._formValues,r._options.criteriaMode===ZC,r._options.shouldUseNativeValidation,!0).then((t=>!aD(t)&&r._subjects.state.next({errors:gD(r._formState.errors,t,n)})))}r._subjects.values.next({name:n,values:{...r._formValues}}),r._names.focus&&vD(r._fields,((t,e)=>{if(r._names.focus&&e.startsWith(r._names.focus)&&t.focus)return t.focus(),1})),r._names.focus="",r._updateValid(),f.current=!1}),[a,n,r]),X.useEffect((()=>(!qC(r._formValues,n)&&r._updateFieldArray(n),()=>{(r._options.shouldUnregister||o)&&r.unregister(n)})),[n,r,i,o]),{swap:X.useCallback(((t,e)=>{const i=r._getFieldArray(n);CD(i,t,e),CD(u.current,t,e),h(i),c(i),r._updateFieldArray(n,i,CD,{argA:t,argB:e},!1)}),[h,n,r]),move:X.useCallback(((t,e)=>{const i=r._getFieldArray(n);kD(i,t,e),kD(u.current,t,e),h(i),c(i),r._updateFieldArray(n,i,kD,{argA:t,argB:e},!1)}),[h,n,r]),prepend:X.useCallback(((t,e)=>{const i=cD(FC(t)),o=_D(r._getFieldArray(n),i);r._names.focus=dD(n,0,e),u.current=_D(u.current,i.map(pD)),h(o),c(o),r._updateFieldArray(n,o,_D,{argA:MD(t)})}),[h,n,r]),append:X.useCallback(((t,e)=>{const i=cD(FC(t)),o=PD(r._getFieldArray(n),i);r._names.focus=dD(n,o.length-1,e),u.current=PD(u.current,i.map(pD)),h(o),c(o),r._updateFieldArray(n,o,PD,{argA:MD(t)})}),[h,n,r]),remove:X.useCallback((t=>{const e=TD(r._getFieldArray(n),t);u.current=TD(u.current,t),h(e),c(e),r._updateFieldArray(n,e,TD,{argA:t})}),[h,n,r]),insert:X.useCallback(((t,e,i)=>{const o=cD(FC(e)),a=ED(r._getFieldArray(n),t,o);r._names.focus=dD(n,t,i),u.current=ED(u.current,t,o.map(pD)),h(a),c(a),r._updateFieldArray(n,a,ED,{argA:t,argB:MD(e)})}),[h,n,r]),update:X.useCallback(((t,e)=>{const i=FC(e),o=ND(r._getFieldArray(n),t,i);u.current=[...o].map(((e,r)=>e&&r!==t?u.current[r]:pD())),h(o),c([...o]),r._updateFieldArray(n,o,ND,{argA:t,argB:i},!0,!1)}),[h,n,r]),replace:X.useCallback((t=>{const e=cD(FC(t));u.current=e.map(pD),h([...e]),c([...e]),r._updateFieldArray(n,[...e],(t=>t),{},!0,!1)}),[h,n,r]),fields:X.useMemo((()=>a.map(((t,e)=>({...t,[i]:u.current[e]||pD()})))),[a,i])}}const BD=({name:r,control:n,register:i,defaultValues:o,onArrayAppend:a,onArrayRemove:c})=>{const{fields:u,append:l,remove:s}=ID({control:n,name:r}),f=Object.keys(o).reduce(((t,e)=>({...t,[e]:o[e]})),{});return t(P,{children:[u.map(((n,o)=>e(P,{children:t(P,{pb:6,position:"relative",children:[Object.keys(n).filter((t=>"id"!==t)).map((t=>e(LC,{label:t,name:`${r}.${o}.${t}`,register:i},`${t}-${n.id}`))),e(M,{label:"Delete",children:e(y,{position:"absolute",top:"0",right:"0",children:e(h,{"aria-label":"Delete",size:"sm",variant:"ghost",onClick:()=>{s(o),c&&c(o)},minW:"2rem",p:"0",children:"X"})})})]})},n.id))),e(y,{children:e(h,{size:"sm",onClick:()=>{l(f),a&&a(f)},ml:"auto",children:"+"})})]})},LD=({data:r,dataKey:n,width:i="100%",height:o="100%",lineType:a="linear",showTooltip:c=!1,isAnimated:u=!1,formatter:l,sampleRate:s,style:f})=>{const{isNetGain:h}=zn({data:r,dataKey:n}),p=h?Un.mint():Un.heroicRed(),d=s?Fn({arr:r||[],n:s}):r,y={cursor:c?"crosshair":"default",...f};return e(pv,{width:i,minHeight:o,children:t(vC,{data:d,style:y,children:[e(mT,{domain:["dataMin","dataMax"],hide:!0}),e(J_,{isAnimationActive:u,type:a,dataKey:n,stroke:p,strokeWidth:"2",dot:!1,scale:"threshold"}),c&&e(Ly,{cursor:!1,formatter:l})]})})},RD=({isOpen:r,onClose:n,headerContent:i=null,footerContent:o=null,children:a,isCentered:c=!0,size:u={base:"md",md:"xl"},bodyMinHeight:l,bodyBackground:s="transparent",...f})=>t(E,{isOpen:r,onClose:n,isCentered:c,size:u,...f,children:[e(k,{}),t(_,{minWidth:VD,children:[e(T,{children:i}),e(C,{}),e(D,{minH:l||0,bg:s,children:a}),o&&e(N,{borderTop:"solid 1px",borderColor:Un.coolElegance(),children:o})]})]}),$D=({isLoading:r,hasMore:n,setLastEvaluatedKeyParams:i,lastEvaluatedKey:o,...a})=>{const[c,u]=tt([]),[l,s]=tt(1);return t(y,{w:"full",justifyContent:"flex-end",alignItems:"center",direction:"row",gap:4,...a,children:[e(h,{onClick:()=>{if(2===l)return i(void 0),u([]),void s((t=>t-1));const t=c.length-1,e=c[t-1];i(e),u((t=>t.slice(0,-1))),s((t=>t-1))},isLoading:r,isDisabled:1===l,children:"Previous"}),e(h,{onClick:()=>{if(o){const t={lastEvaluatedPKey:o.pKey,lastEvaluatedSKey:o.sKey};i(t),u((e=>[...e,t])),s((t=>t+1))}},isLoading:r,isDisabled:!n,children:"Next"})]})},zD=r=>{const{children:n,size:i,isDisabled:o,isReadOnly:a,isRequired:c,name:u,register:l,errorMessage:s,helperText:f,label:h,...p}=r,y=Hn(i),g=l?l(u):void 0;return t(d,{isInvalid:Boolean(s),isDisabled:o,isReadOnly:a,isRequired:c,children:[h&&e(v,{size:i,children:h}),e(I,{icon:e(yt,{}),size:i,...g,...p,children:n}),s&&e(m,{size:i,children:s}),f&&e(A,{fontSize:y,children:f})]})},HD=r=>{const{label:n,rightIcon:i,leftIcon:o,onClose:a,...c}=r,[u,l]=tt(!0);return u?t(B,{...c,children:[o&&e(L,{as:o}),e(R,{children:n}),i&&e($,{as:i}),a&&e(z,{onClick:()=>{a(),l(!1)}})]}):null},FD=({description:r,title:n,onClose:i,isClosable:o,status:a})=>{let c,u;switch(a){case"error":u=lt;break;case"success":u=wt;break;case"warning":u=Lt,c="yellow";break;case"loading":c="brand",u=W;break;default:c="brand",u=Lt}return t(H,{as:y,colorScheme:c,justifyContent:"space-between",status:a,children:[t(y,{alignItems:"center",mr:"4",children:[e(F,{children:e(u,{size:"sm"})}),t(P,{children:[e(U,{children:n}),e(V,{children:r})]})]}),o&&e(q,{onClick:i})]})},UD=()=>{const t=u({ssr:!1}),e="base"===t||"sm"===t,r="md"===t,n="lg"===t||"xl"===t||"2xl"===t;return{breakpoint:t,isSmallBreakpoint:e,isMediumBreakpoint:r,isLargeBreakpoint:n,isAboveSmallBreakpoint:r||n,isBelowLargeBreakpoint:r||e}},VD="22rem";export{mC as CfAreaChart,bC as CfBreakpointDebugger,wC as CfButtonGroup,xC as CfButtonGroupButton,OC as CfCard,SC as CfCheckbox,jC as CfForm,LC as CfInput,BD as CfInputArray,LD as CfLineChart,RD as CfModal,$D as CfPagination,zD as CfSelect,HD as CfTag,FD as CfToast,lt as IconAlert,st as IconArrowDown,ft as IconArrowUp,ce as IconAvax,ht as IconBank,pt as IconBarChart,ue as IconBch,le as IconBtc,dt as IconCalendar,yt as IconCaretDown,vt as IconCaretLeft,gt as IconCaretRight,mt as IconCaretUp,bt as IconCent,wt as IconCheck,xt as IconChecking,Ot as IconClose,St as IconConnect,jt as IconCopy,At as IconDollar,Pt as IconDownload,Mt as IconEdit,Et as IconEnter,kt as IconEnterInverted,se as IconEth,_t as IconExchange,Tt as IconFilter,Ct as IconHelp,Dt as IconHistory,Nt as IconHome,It as IconIndicatorDown,Bt as IconIndicatorUp,Lt as IconInfo,fe as IconLink,he as IconLtc,Rt as IconMail,$t as IconMenu,zt as IconMore,Ht as IconNotification,Ft as IconOverview,Ut as IconPercent,Vt as IconPieChart,qt as IconPlus,ae as IconRefresh,Wt as IconReports,Xt as IconReservesSuccess,Yt as IconReservesWarning,Kt as IconSearch,Gt as IconSettings,Zt as IconSettlement,Jt as IconSignIn,Qt as IconSignOut,te as IconSort,ee as IconSpinner,re as IconSupport,ne as IconTrash,ie as IconUpload,oe as IconUser,pe as IconXlm,wn as aggregateAmounts,ai as coreTheme,_n as dateToTimestamp,Tn as formatPercentage,$n as formatUsd,zn as getDelta,VD as layoutMinWidth,Fn as pullFromEnd,Un as uiColors,qn as usdToNumber,UD as useCfBreakpoint};
26
26
  //# sourceMappingURL=index.js.map