bmj-ui 1.0.11 → 1.0.13

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.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as r from"react";import n,{isValidElement as i,forwardRef as a,createContext as o,useContext as l,useMemo as s,useState as c,useCallback as u,useRef as d,useImperativeHandle as f,useEffect as p,useLayoutEffect as h,cloneElement as v,createElement as y,Children as m,memo as g,Component as b,PureComponent as x}from"react";import{mergeProps as w}from"@base-ui/react/merge-props";import{useRender as O}from"@base-ui/react/use-render";import{cva as E}from"class-variance-authority";import{clsx as S}from"clsx";import{twMerge as P}from"tailwind-merge";import{Button as j}from"@base-ui/react/button";import{Input as A}from"@base-ui/react/input";import"@base-ui/react/separator";import{Dialog as k}from"@base-ui/react/dialog";import{XIcon as _,PanelLeftIcon as N,LayoutDashboard as M,BarChart3 as T,Package as I,Users as D,ListTodo as C,Settings as z,HelpCircle as L,Moon as B,Sun as R,Search as V,Bell as K,User as $,CreditCard as F,Zap as W,LogOut as U,TrendingUp as H,TrendingDown as q}from"lucide-react";import{Tooltip as Y}from"@base-ui/react/tooltip";import{AnimatePresence as G,motion as X}from"motion/react";import{createPortal as Z}from"react-dom";import{Menu as J}from"@base-ui/react/menu";var Q=function(){return Q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};function ee(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}"function"==typeof SuppressedError&&SuppressedError;function te(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(S(e))}var re=E("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ne(t){var r=t.className,n=t.variant,i=void 0===n?"default":n,a=t.size,o=void 0===a?"default":a,l=ee(t,["className","variant","size"]);return e(j,Q({"data-slot":"button",className:te(re({variant:i,size:o,className:r}))},l))}function ie(t){var r=t.className,n=t.type,i=ee(t,["className","type"]);return e(A,Q({type:n,"data-slot":"input",className:te("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",r)},i))}function ae(t){var r=ee(t,[]);return e(k.Root,Q({"data-slot":"sheet"},r))}function oe(t){var r=ee(t,[]);return e(k.Portal,Q({"data-slot":"sheet-portal"},r))}function le(t){var r=t.className,n=ee(t,["className"]);return e(k.Backdrop,Q({"data-slot":"sheet-overlay",className:te("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",r)},n))}function se(r){var n=r.className,i=r.children,a=r.side,o=void 0===a?"right":a,l=r.showCloseButton,s=void 0===l||l,c=ee(r,["className","children","side","showCloseButton"]);return t(oe,{children:[e(le,{}),t(k.Popup,Q({"data-slot":"sheet-content","data-side":o,className:te("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-10 data-[side=bottom]:data-starting-style:translate-y-10 data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:-translate-x-10 data-[side=left]:data-starting-style:-translate-x-10 data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-10 data-[side=right]:data-starting-style:translate-x-10 data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:-translate-y-10 data-[side=top]:data-starting-style:-translate-y-10 data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",n)},c,{children:[i,s&&t(k.Close,{"data-slot":"sheet-close",render:e(ne,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[e(_,{}),e("span",{className:"sr-only",children:"Close"})]})]}))]})}function ce(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"sheet-header",className:te("flex flex-col gap-0.5 p-4",r)},n))}function ue(t){var r=t.className,n=ee(t,["className"]);return e(k.Title,Q({"data-slot":"sheet-title",className:te("font-heading text-base font-medium text-foreground",r)},n))}function de(t){var r=t.className,n=ee(t,["className"]);return e(k.Description,Q({"data-slot":"sheet-description",className:te("text-sm text-muted-foreground",r)},n))}function fe(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"skeleton",className:te("animate-pulse rounded-md bg-muted",r)},n))}function pe(t){var r=ee(t,[]);return e(Y.Root,Q({"data-slot":"tooltip"},r))}function he(t){var r=ee(t,[]);return e(Y.Trigger,Q({"data-slot":"tooltip-trigger"},r))}function ve(r){var n=r.className,i=r.side,a=void 0===i?"top":i,o=r.sideOffset,l=void 0===o?4:o,s=r.align,c=void 0===s?"center":s,u=r.alignOffset,d=void 0===u?0:u,f=r.children,p=ee(r,["className","side","sideOffset","align","alignOffset","children"]);return e(Y.Portal,{children:e(Y.Positioner,{align:c,alignOffset:d,side:a,sideOffset:l,className:"isolate z-50",children:t(Y.Popup,Q({"data-slot":"tooltip-content",className:te("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n)},p,{children:[f,e(Y.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-xs bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]}))})})}var ye=r.createContext(null);function me(){var e=r.useContext(ye);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function ge(t){var n=t.defaultOpen,i=void 0===n||n,a=t.open,o=t.onOpenChange,l=t.className,s=t.style,c=t.children,u=ee(t,["defaultOpen","open","onOpenChange","className","style","children"]),d=function(){var e=r.useState(void 0),t=e[0],n=e[1];return r.useEffect(function(){var e=window.matchMedia("(max-width: ".concat(767,"px)")),t=function(){n(window.innerWidth<768)};return e.addEventListener("change",t),n(window.innerWidth<768),function(){return e.removeEventListener("change",t)}},[]),!!t}(),f=r.useState(!1),p=f[0],h=f[1],v=r.useState(i),y=v[0],m=v[1],g=null!=a?a:y,b=r.useCallback(function(e){var t="function"==typeof e?e(g):e;o?o(t):m(t),document.cookie="".concat("sidebar_state","=").concat(t,"; path=/; max-age=").concat(604800)},[o,g]),x=r.useCallback(function(){return d?h(function(e){return!e}):b(function(e){return!e})},[d,b,h]);r.useEffect(function(){var e=function(e){"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),x())};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[x]);var w=g?"expanded":"collapsed",O=r.useMemo(function(){return{state:w,open:g,setOpen:b,isMobile:d,openMobile:p,setOpenMobile:h,toggleSidebar:x}},[w,g,b,d,p,h,x]);return e(ye.Provider,{value:O,children:e("div",Q({"data-slot":"sidebar-wrapper",style:Q({"--sidebar-width":"16rem","--sidebar-width-icon":"3rem"},s),className:te("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",l)},u,{children:c}))})}function be(r){var n=r.side,i=void 0===n?"left":n,a=r.variant,o=void 0===a?"sidebar":a,l=r.collapsible,s=void 0===l?"offcanvas":l,c=r.className,u=r.children,d=r.dir,f=ee(r,["side","variant","collapsible","className","children","dir"]),p=me(),h=p.isMobile,v=p.state,y=p.openMobile,m=p.setOpenMobile;return"none"===s?e("div",Q({"data-slot":"sidebar",className:te("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",c)},f,{children:u})):h?e(ae,Q({open:y,onOpenChange:m},f,{children:t(se,{dir:d,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:i,children:[t(ce,{className:"sr-only",children:[e(ue,{children:"Sidebar"}),e(de,{children:"Displays the mobile sidebar."})]}),e("div",{className:"flex h-full w-full flex-col",children:u})]})})):t("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":v,"data-collapsible":"collapsed"===v?s:"","data-variant":o,"data-side":i,"data-slot":"sidebar",children:[e("div",{"data-slot":"sidebar-gap",className:te("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===o||"inset"===o?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),e("div",Q({"data-slot":"sidebar-container","data-side":i,className:te("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex","floating"===o||"inset"===o?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",c)},f,{children:e("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:u})}))]})}function xe(r){var n=r.className,i=r.onClick,a=ee(r,["className","onClick"]),o=me().toggleSidebar;return t(ne,Q({"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:te(n),onClick:function(e){null==i||i(e),o()}},a,{children:[e(N,{}),e("span",{className:"sr-only",children:"Toggle Sidebar"})]}))}function we(t){var r=t.className,n=ee(t,["className"]);return e("main",Q({"data-slot":"sidebar-inset",className:te("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",r)},n))}function Oe(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"sidebar-header","data-sidebar":"header",className:te("flex flex-col gap-2 p-2",r)},n))}function Ee(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"sidebar-footer","data-sidebar":"footer",className:te("flex flex-col gap-2 p-2",r)},n))}function Se(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"sidebar-content","data-sidebar":"content",className:te("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",r)},n))}function Pe(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"sidebar-group","data-sidebar":"group",className:te("relative flex w-full min-w-0 flex-col p-2",r)},n))}function je(e){var t=e.className,r=e.render,n=ee(e,["className","render"]);return O({defaultTagName:"div",props:w({className:te("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",t)},n),render:r,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function Ae(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:te("w-full text-sm",r)},n))}function ke(t){var r=t.className,n=ee(t,["className"]);return e("ul",Q({"data-slot":"sidebar-menu","data-sidebar":"menu",className:te("flex w-full min-w-0 flex-col gap-0",r)},n))}function _e(t){var r=t.className,n=ee(t,["className"]);return e("li",Q({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:te("group/menu-item relative",r)},n))}var Ne=E("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Me(r){var n=r.render,i=r.isActive,a=void 0!==i&&i,o=r.variant,l=void 0===o?"default":o,s=r.size,c=void 0===s?"default":s,u=r.tooltip,d=r.className,f=ee(r,["render","isActive","variant","size","tooltip","className"]),p=me(),h=p.isMobile,v=p.state,y=O({defaultTagName:"button",props:w({className:te(Ne({variant:l,size:c}),d)},f),render:u?e(he,{render:n}):n,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:c,active:a}});return u?("string"==typeof u&&(u={children:u}),t(pe,{children:[y,e(ve,Q({side:"right",align:"center",hidden:"collapsed"!==v||h},u))]})):y}var Te=[{title:"Dashboard",icon:M,url:"#"},{title:"Analytics",icon:T,url:"#"},{title:"Products",icon:I,url:"#"},{title:"Customers",icon:D,url:"#"},{title:"Tasks",icon:C,url:"#"},{title:"Settings",icon:z,url:"#"},{title:"Help",icon:L,url:"#"}];function Ie(r){var n=r.items,i=void 0===n?Te:n,a=r.onItemClick,o=r.activeItem,l="collapsed"===me().state;return t(be,{variant:"inset",collapsible:"icon",children:[e(Oe,{className:"h-16 flex items-center px-6 border-b border-border/50",children:t("div",{className:"flex items-center gap-2 font-bold text-xl tracking-tight",children:[e("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center text-primary-foreground shrink-0",children:"B"}),e(G,{mode:"wait",children:!l&&e(X.span,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},className:"whitespace-nowrap",children:"BMJ UI"})})]})}),e(Se,{children:t(Pe,{children:[e(je,{children:e(G,{mode:"wait",children:!l&&e(X.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:"Main Menu"})})}),e(Ae,{children:e(ke,{children:i.map(function(r){return e(_e,{children:e(Me,{tooltip:r.title,isActive:o===r.title,onClick:function(){return null==a?void 0:a(r.title)},className:"transition-all duration-200 hover:bg-primary/5 hover:text-primary",render:t("button",{type:"button",className:"flex items-center w-full",children:[e(r.icon,{className:"shrink-0"}),e(G,{mode:"wait",children:!l&&e(X.span,{initial:{opacity:0,width:0,marginLeft:0},animate:{opacity:1,width:"auto",marginLeft:8},exit:{opacity:0,width:0,marginLeft:0},transition:{duration:.2},className:"overflow-hidden whitespace-nowrap",children:r.title})})]})})},r.title)})})})]})}),e(Ee,{className:"p-4 border-t border-border/50",children:t("div",{className:"flex items-center gap-3 min-h-10",children:[e("div",{className:"w-8 h-8 rounded-full bg-muted shrink-0"}),e(G,{mode:"wait",children:!l&&t(X.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},className:"flex flex-col overflow-hidden whitespace-nowrap",children:[e("span",{className:"text-sm font-medium",children:"Bahry Jarbou"}),e("span",{className:"text-xs text-muted-foreground",children:"Admin"})]})})]})})]})}function De(t){var n=t.className,i=r.useState(function(){if("undefined"!=typeof window){var e=localStorage.getItem("bmj-ui-theme");return"light"===e||"dark"===e?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}return"light"}),a=i[0],o=i[1];r.useEffect(function(){var e=window.document.documentElement;e.classList.remove("light","dark"),e.classList.add(a),localStorage.setItem("bmj-ui-theme",a)},[a]);return e(ne,{variant:"ghost",size:"icon",onClick:function(){o(function(e){return"light"===e?"dark":"light"})},className:n,"aria-label":"Toggle theme",children:e("light"===a?B:R,{className:"w-5 h-5 transition-all"})})}Array(12).fill(0);let Ce=1;const ze=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:r,...n}=e,i="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:Ce++,a=this.toasts.find(e=>e.id===i),o=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),a?this.toasts=this.toasts.map(t=>t.id===i?(this.publish({...t,...e,id:i,title:r}),{...t,...e,id:i,dismissible:o,title:r}):t):this.addToast({title:r,...n,dismissible:o,id:i}),i},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const i=Promise.resolve(e instanceof Function?e():e);let a,o=void 0!==r;const l=i.then(async e=>{a=["resolve",e];if(n.isValidElement(e))o=!1,this.create({id:r,type:"default",message:e});else if(Le(e)&&!e.ok){o=!1;const i="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,a="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,l="object"==typeof i&&!n.isValidElement(i)?i:{message:i};this.create({id:r,type:"error",description:a,...l})}else if(e instanceof Error){o=!1;const i="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description,l="object"==typeof i&&!n.isValidElement(i)?i:{message:i};this.create({id:r,type:"error",description:a,...l})}else if(void 0!==t.success){o=!1;const i="function"==typeof t.success?await t.success(e):t.success,a="function"==typeof t.description?await t.description(e):t.description,l="object"==typeof i&&!n.isValidElement(i)?i:{message:i};this.create({id:r,type:"success",description:a,...l})}}).catch(async e=>{if(a=["reject",e],void 0!==t.error){o=!1;const i="function"==typeof t.error?await t.error(e):t.error,a="function"==typeof t.description?await t.description(e):t.description,l="object"==typeof i&&!n.isValidElement(i)?i:{message:i};this.create({id:r,type:"error",description:a,...l})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),null==t.finally||t.finally.call(t)}),s=()=>new Promise((e,t)=>l.then(()=>"reject"===a[0]?t(a[1]):e(a[1])).catch(t));return"string"!=typeof r&&"number"!=typeof r?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(e,t)=>{const r=(null==t?void 0:t.id)||Ce++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Le=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,Be=(e,t)=>{const r=(null==t?void 0:t.id)||Ce++;return ze.addToast({title:e,...t,id:r}),r},Re=Object.assign(Be,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:()=>ze.toasts,getToasts:()=>ze.getActiveToasts()});function Ve(t){var r=ee(t,[]);return e(J.Root,Q({"data-slot":"dropdown-menu"},r))}function Ke(t){var r=ee(t,[]);return e(J.Trigger,Q({"data-slot":"dropdown-menu-trigger"},r))}function $e(t){var r=t.align,n=void 0===r?"start":r,i=t.alignOffset,a=void 0===i?0:i,o=t.side,l=void 0===o?"bottom":o,s=t.sideOffset,c=void 0===s?4:s,u=t.className,d=ee(t,["align","alignOffset","side","sideOffset","className"]);return e(J.Portal,{children:e(J.Positioner,{className:"isolate z-50 outline-none",align:n,alignOffset:a,side:l,sideOffset:c,children:e(J.Popup,Q({"data-slot":"dropdown-menu-content",className:te("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",u)},d))})})}function Fe(t){var r=ee(t,[]);return e(J.Group,Q({"data-slot":"dropdown-menu-group"},r))}function We(t){var r=t.className,n=t.inset,i=ee(t,["className","inset"]);return e(J.GroupLabel,Q({"data-slot":"dropdown-menu-label","data-inset":n,className:te("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",r)},i))}function Ue(t){var r=t.className,n=t.inset,i=t.variant,a=void 0===i?"default":i,o=ee(t,["className","inset","variant"]);return e(J.Item,Q({"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":a,className:te("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",r)},o))}function He(t){var r=t.className,n=ee(t,["className"]);return e(J.Separator,Q({"data-slot":"dropdown-menu-separator",className:te("-mx-1 my-1 h-px bg-border",r)},n))}function qe(){var r=function(e){Re.info("".concat(e," clicked"),{description:"This feature will be implemented soon."})};return t("header",{className:"h-16 border-b border-border/50 flex items-center justify-between px-4 sm:px-6 bg-background/80 backdrop-blur-md sticky top-0 z-30",children:[t("div",{className:"flex items-center gap-2 sm:gap-4 flex-1",children:[e(xe,{}),t("div",{className:"relative w-full max-w-md hidden md:block",children:[e(V,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e(ie,{placeholder:"Search dashboard...",className:"pl-10 bg-muted/50 border-none focus-visible:ring-1 focus-visible:ring-primary/20"})]}),e(ne,{variant:"ghost",size:"icon",className:"md:hidden",children:e(V,{className:"w-5 h-5"})})]}),t("div",{className:"flex items-center gap-1 sm:gap-2",children:[e("div",{className:"hidden xs:block",children:e(De,{})}),t(ne,{variant:"ghost",size:"icon",className:"relative",children:[e(K,{className:"w-5 h-5"}),e("span",{className:"absolute top-2 right-2 w-2 h-2 bg-primary rounded-full border-2 border-background"})]}),t(Ve,{children:[e(Ke,{render:e(ne,{variant:"ghost",size:"icon",className:"rounded-full"}),children:e($,{className:"w-5 h-5"})}),e($e,{align:"end",className:"w-56",children:t(Fe,{children:[e(We,{children:"My Account"}),e(He,{}),t(Ue,{onClick:function(){return r("Profile")},children:[e($,{className:"mr-2 h-4 w-4"}),e("span",{children:"Profile"})]}),t(Ue,{onClick:function(){return r("Billing")},children:[e(F,{className:"mr-2 h-4 w-4"}),e("span",{children:"Billing"})]}),t(Ue,{onClick:function(){return r("Team")},children:[e(D,{className:"mr-2 h-4 w-4"}),e("span",{children:"Team"})]}),t(Ue,{onClick:function(){return r("Subscription")},children:[e(W,{className:"mr-2 h-4 w-4"}),e("span",{children:"Subscription"})]}),e(He,{}),t(Ue,{variant:"destructive",onClick:function(){return r("Log out")},children:[e(U,{className:"mr-2 h-4 w-4"}),e("span",{children:"Log out"})]})]})})]})]})]})}function Ye(r){var n=r.children,i=r.sidebarItems,a=r.onSidebarItemClick,o=r.activeSidebarItem;return t(ge,{children:[e(Ie,{items:i,onItemClick:a,activeItem:o}),t(we,{className:"flex flex-col",children:[e(qe,{}),e("main",{className:"flex-1 p-6 overflow-y-auto",children:n})]})]})}function Ge(t){var r=t.className,n=t.size,i=void 0===n?"default":n,a=ee(t,["className","size"]);return e("div",Q({"data-slot":"card","data-size":i,className:te("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",r)},a))}function Xe(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"card-header",className:te("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",r)},n))}function Ze(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"card-title",className:te("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",r)},n))}function Je(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"card-description",className:te("text-sm text-muted-foreground",r)},n))}function Qe(t){var r=t.className,n=ee(t,["className"]);return e("div",Q({"data-slot":"card-content",className:te("px-4 group-data-[size=sm]/card:px-3",r)},n))}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");var et=["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"];function tt(e){return"string"==typeof e&&et.includes(e)}var rt=new Set(["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"]);function nt(e){return"string"==typeof e&&rt.has(e)}function it(e){return"string"==typeof e&&e.startsWith("data-")}function at(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(nt(r)||it(r))&&(t[r]=e[r]);return t}function ot(e){return null==e?null:i(e)&&"object"==typeof e.props&&null!==e.props?at(e.props):"object"!=typeof e||Array.isArray(e)?null:at(e)}function lt(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(nt(r)||it(r)||tt(r))&&(t[r]=e[r]);return t}var st=["children","width","height","viewBox","className","style","title","desc"];function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ct.apply(null,arguments)}var ut=a((e,t)=>{var{children:n,width:i,height:a,viewBox:o,className:l,style:s,title:c,desc:u}=e,d=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,st),f=o||{width:i,height:a,x:0,y:0},p=S("recharts-surface",l);return r.createElement("svg",ct({},lt(d),{className:p,width:i,height:a,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),r.createElement("title",null,c),r.createElement("desc",null,u),n)}),dt=["children","className"];function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ft.apply(null,arguments)}var pt=r.forwardRef((e,t)=>{var{children:n,className:i}=e,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,dt),o=S("recharts-layer",i);return r.createElement("g",ft({className:o},lt(a),{ref:t}),n)}),ht=o(null);function vt(e){return function(){return e}}const yt=Math.cos,mt=Math.sin,gt=Math.sqrt,bt=Math.PI,xt=2*bt,wt=Math.PI,Ot=2*wt,Et=1e-6,St=Ot-Et;function Pt(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class jt{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Pt:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Pt;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,i,a){this._append`C${+e},${+t},${+r},${+n},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,r,n,i){if(e=+e,t=+t,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,l=r-e,s=n-t,c=a-e,u=o-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Et)if(Math.abs(u*l-s*c)>Et&&i){let f=r-a,p=n-o,h=l*l+s*s,v=f*f+p*p,y=Math.sqrt(h),m=Math.sqrt(d),g=i*Math.tan((wt-Math.acos((h+d-v)/(2*y*m)))/2),b=g/m,x=g/y;Math.abs(b-1)>Et&&this._append`L${e+b*c},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*f>c*p)},${this._x1=e+x*l},${this._y1=t+x*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,n,i,a){if(e=+e,t=+t,a=!!a,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(n),l=r*Math.sin(n),s=e+o,c=t+l,u=1^a,d=a?n-i:i-n;null===this._x1?this._append`M${s},${c}`:(Math.abs(this._x1-s)>Et||Math.abs(this._y1-c)>Et)&&this._append`L${s},${c}`,r&&(d<0&&(d=d%Ot+Ot),d>St?this._append`A${r},${r},0,1,${u},${e-o},${t-l}A${r},${r},0,1,${u},${this._x1=s},${this._y1=c}`:d>Et&&this._append`A${r},${r},0,${+(d>=wt)},${u},${this._x1=e+r*Math.cos(i)},${this._y1=t+r*Math.sin(i)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function At(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new jt(t)}function kt(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function _t(e){this._context=e}function Nt(e){return new _t(e)}function Mt(e){return e[0]}function Tt(e){return e[1]}function It(e,t){var r=vt(!0),n=null,i=Nt,a=null,o=At(l);function l(l){var s,c,u,d=(l=kt(l)).length,f=!1;for(null==n&&(a=i(u=o())),s=0;s<=d;++s)!(s<d&&r(c=l[s],s,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(c,s,l),+t(c,s,l));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?Mt:vt(e),t="function"==typeof t?t:void 0===t?Tt:vt(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:vt(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:vt(+e),l):t},l.defined=function(e){return arguments.length?(r="function"==typeof e?e:vt(!!e),l):r},l.curve=function(e){return arguments.length?(i=e,null!=n&&(a=i(n)),l):i},l.context=function(e){return arguments.length?(null==e?n=a=null:a=i(n=e),l):n},l}function Dt(e,t,r){var n=null,i=vt(!0),a=null,o=Nt,l=null,s=At(c);function c(c){var u,d,f,p,h,v=(c=kt(c)).length,y=!1,m=new Array(v),g=new Array(v);for(null==a&&(l=o(h=s())),u=0;u<=v;++u){if(!(u<v&&i(p=c[u],u,c))===y)if(y=!y)d=u,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=u-1;f>=d;--f)l.point(m[f],g[f]);l.lineEnd(),l.areaEnd()}y&&(m[u]=+e(p,u,c),g[u]=+t(p,u,c),l.point(n?+n(p,u,c):m[u],r?+r(p,u,c):g[u]))}if(h)return l=null,h+""||null}function u(){return It().defined(i).curve(o).context(a)}return e="function"==typeof e?e:void 0===e?Mt:vt(+e),t="function"==typeof t?t:vt(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?Tt:vt(+r),c.x=function(t){return arguments.length?(e="function"==typeof t?t:vt(+t),n=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:vt(+t),c):e},c.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:vt(+e),c):n},c.y=function(e){return arguments.length?(t="function"==typeof e?e:vt(+e),r=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:vt(+e),c):t},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:vt(+e),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(e){return arguments.length?(i="function"==typeof e?e:vt(!!e),c):i},c.curve=function(e){return arguments.length?(o=e,null!=a&&(l=o(a)),c):o},c.context=function(e){return arguments.length?(null==e?a=l=null:l=o(a=e),c):a},c}_t.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class Ct{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var zt={draw(e,t){const r=gt(t/bt);e.moveTo(r,0),e.arc(0,0,r,0,xt)}},Lt={draw(e,t){const r=gt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};const Bt=gt(1/3),Rt=2*Bt;var Vt={draw(e,t){const r=gt(t/Rt),n=r*Bt;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Kt={draw(e,t){const r=gt(t),n=-r/2;e.rect(n,n,r,r)}};const $t=mt(bt/10)/mt(7*bt/10),Ft=mt(xt/10)*$t,Wt=-yt(xt/10)*$t;var Ut={draw(e,t){const r=gt(.8908130915292852*t),n=Ft*r,i=Wt*r;e.moveTo(0,-r),e.lineTo(n,i);for(let t=1;t<5;++t){const a=xt*t/5,o=yt(a),l=mt(a);e.lineTo(l*r,-o*r),e.lineTo(o*n-l*i,l*n+o*i)}e.closePath()}};const Ht=gt(3);var qt={draw(e,t){const r=-gt(t/(3*Ht));e.moveTo(0,2*r),e.lineTo(-Ht*r,-r),e.lineTo(Ht*r,-r),e.closePath()}};const Yt=-.5,Gt=gt(3)/2,Xt=1/gt(12),Zt=3*(Xt/2+1);var Jt={draw(e,t){const r=gt(t/Zt),n=r/2,i=r*Xt,a=n,o=r*Xt+r,l=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Yt*n-Gt*i,Gt*n+Yt*i),e.lineTo(Yt*a-Gt*o,Gt*a+Yt*o),e.lineTo(Yt*l-Gt*s,Gt*l+Yt*s),e.lineTo(Yt*n+Gt*i,Yt*i-Gt*n),e.lineTo(Yt*a+Gt*o,Yt*o-Gt*a),e.lineTo(Yt*l+Gt*s,Yt*s-Gt*l),e.closePath()}};function Qt(){}function er(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function tr(e){this._context=e}function rr(e){this._context=e}function nr(e){this._context=e}function ir(e){this._context=e}function ar(e){return e<0?-1:1}function or(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(ar(a)+ar(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function lr(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function sr(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function cr(e){this._context=e}function ur(e){this._context=new dr(e)}function dr(e){this._context=e}function fr(e){this._context=e}function pr(e){var t,r,n=e.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function hr(e,t){this._context=e,this._t=t}function vr(e,t){if((i=e.length)>1)for(var r,n,i,a=1,o=e[t[0]],l=o.length;a<i;++a)for(n=o,o=e[t[a]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function yr(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function mr(e,t){return e[t]}function gr(e){const t=[];return t.key=e,t}function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}tr.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:er(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:er(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},rr.prototype={areaStart:Qt,areaEnd:Qt,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:er(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},nr.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(e,t){switch(e=+e,t=+t,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+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:er(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ir.prototype={areaStart:Qt,areaEnd:Qt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},cr.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:sr(this,this._t0,lr(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,sr(this,lr(this,r=or(this,e,t)),r);break;default:sr(this,this._t0,r=or(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(ur.prototype=Object.create(cr.prototype)).point=function(e,t){cr.prototype.point.call(this,t,e)},dr.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}},fr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=pr(e),i=pr(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},hr.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var xr,wr={},Or={};function Er(){return xr||(xr=1,e=Or,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isUnsafeProperty=function(e){return"__proto__"===e}),Or;var e}var Sr,Pr={};function jr(){return Sr||(Sr=1,e=Pr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isDeepKey=function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}),Pr;var e}var Ar,kr={};function _r(){return Ar||(Ar=1,e=kr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.toKey=function(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}),kr;var e}var Nr,Mr,Tr,Ir,Dr,Cr={},zr={};function Lr(){return Nr||(Nr=1,e=zr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.toString=function e(t){if(null==t)return"";if("string"==typeof t)return t;if(Array.isArray(t))return t.map(e).join(",");const r=String(t);return"0"===r&&Object.is(Number(t),-0)?"-0":r}),zr;var e}function Br(){return Mr||(Mr=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Lr(),r=_r();e.toPath=function(e){if(Array.isArray(e))return e.map(r.toKey);if("symbol"==typeof e)return[e];const n=[],i=(e=t.toString(e)).length;if(0===i)return n;let a=0,o="",l="",s=!1;for(46===e.charCodeAt(0)&&(n.push(""),a++);a<i;){const t=e[a];l?"\\"===t&&a+1<i?(a++,o+=e[a]):t===l?l="":o+=t:s?'"'===t||"'"===t?l=t:"]"===t?(s=!1,n.push(o),o=""):o+=t:"["===t?(s=!0,o&&(n.push(o),o="")):"."===t?o&&(n.push(o),o=""):o+=t,a++}return o&&n.push(o),n}}(Cr)),Cr}function Rr(){return Tr||(Tr=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Er(),r=jr(),n=_r(),i=Br();e.get=function e(a,o,l){if(null==a)return l;switch(typeof o){case"string":{if(t.isUnsafeProperty(o))return l;const n=a[o];return void 0===n?r.isDeepKey(o)?e(a,i.toPath(o),l):l:n}case"number":case"symbol":{"number"==typeof o&&(o=n.toKey(o));const e=a[o];return void 0===e?l:e}default:{if(Array.isArray(o))return function(e,r,n){if(0===r.length)return n;let i=e;for(let e=0;e<r.length;e++){if(null==i)return n;if(t.isUnsafeProperty(r[e]))return n;i=i[r[e]]}if(void 0===i)return n;return i}(a,o,l);if(o=Object.is(o?.valueOf(),-0)?"-0":String(o),t.isUnsafeProperty(o))return l;const e=a[o];return void 0===e?l:e}}}}(wr)),wr}function Vr(){return Dr?Ir:(Dr=1,Ir=Rr().get)}var Kr=br(Vr());function $r(e){var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:4),r=Math.round(e*t)/t;return Object.is(r,-0)?0:r}function Fr(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((e,t,n)=>{var i=r[n-1];return"string"==typeof i?e+i+t:void 0!==i?e+$r(i)+t:e+t},"")}var Wr=e=>0===e?0:e>0?1:-1,Ur=e=>"number"==typeof e&&e!=+e,Hr=e=>"string"==typeof e&&e.indexOf("%")===e.length-1,qr=e=>("number"==typeof e||e instanceof Number)&&!Ur(e),Yr=e=>qr(e)||"string"==typeof e,Gr=0,Xr=e=>{var t=++Gr;return"".concat(e||"").concat(t)},Zr=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!qr(e)&&"string"!=typeof e)return n;if(Hr(e)){if(null==t)return n;var a=e.indexOf("%");r=t*parseFloat(e.slice(0,a))/100}else r=+e;return Ur(r)&&(r=n),i&&null!=t&&r>t&&(r=t),r},Jr=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[String(e[n])])return!0;r[String(e[n])]=!0}return!1};function Qr(e,t,r){return qr(e)&&qr(t)?$r(e+r*(t-e)):t}function en(e,t,r){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):Kr(e,t))===r)}var tn=e=>null==e,rn=e=>tn(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function nn(e){return null!=e}function an(){}var on=["type","size","sizeType"];function ln(){return ln=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ln.apply(null,arguments)}function sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function cn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(r),!0).forEach(function(t){un(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function un(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var dn={symbolCircle:zt,symbolCross:Lt,symbolDiamond:Vt,symbolSquare:Kt,symbolStar:Ut,symbolTriangle:qt,symbolWye:Jt},fn=Math.PI/180,pn=e=>{var{type:t="circle",size:n=64,sizeType:i="area"}=e,a=cn(cn({},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,on)),{},{type:t,size:n,sizeType:i}),o="circle";"string"==typeof t&&(o=t);var{className:l,cx:s,cy:c}=a,u=lt(a);return qr(s)&&qr(c)&&qr(n)?r.createElement("path",ln({},u,{className:S("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:(()=>{var e=(e=>{var t="symbol".concat(rn(e));return dn[t]||zt})(o),t=function(e,t){let r=null,n=At(i);function i(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return e="function"==typeof e?e:vt(e||zt),t="function"==typeof t?t:vt(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:vt(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:vt(+e),i):t},i.context=function(e){return arguments.length?(r=null==e?null:e,i):r},i}().type(e).size(((e,t,r)=>{if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*fn;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.tan(n)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(n,i,o)),r=t();if(null!==r)return r})()})):null};pn.registerSymbol=(e,t)=>{dn["symbol".concat(rn(e))]=t};var hn=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,vn=(e,t)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(i(e)&&(r=e.props),"object"!=typeof r&&"function"!=typeof r)return null;var n={};return Object.keys(r).forEach(e=>{tt(e)&&"function"==typeof r[e]&&(n[e]=t=>r[e](r,t))}),n},yn=(e,t,r)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];tt(i)&&"function"==typeof a&&(n||(n={}),n[i]=((e,t,r)=>n=>(e(t,r,n),null))(a,t,r))}),n};function mn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bn(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(r),!0).forEach(function(t){gn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e),n=t;return Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==n[t]&&(e[t]=n[t]),e),r)}var xn,wn={},On={};function En(){return xn||(xn=1,e=On,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.uniqBy=function(e,t){const r=new Map;for(let n=0;n<e.length;n++){const i=e[n],a=t(i,n,e);r.has(a)||r.set(a,i)}return Array.from(r.values())}),On;var e}var Sn,Pn={};function jn(){return Sn||(Sn=1,e=Pn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.ary=function(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}),Pn;var e}var An,kn={};function _n(){return An||(An=1,e=kn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.identity=function(e){return e}),kn;var e}var Nn,Mn,Tn={},In={},Dn={};function Cn(){return Nn||(Nn=1,e=Dn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}),Dn;var e}function zn(){return Mn||(Mn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cn();e.isArrayLike=function(e){return null!=e&&"function"!=typeof e&&t.isLength(e.length)}}(In)),In}var Ln,Bn,Rn={};function Vn(){return Ln||(Ln=1,e=Rn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObjectLike=function(e){return"object"==typeof e&&null!==e}),Rn;var e}function Kn(){return Bn||(Bn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zn(),r=Vn();e.isArrayLikeObject=function(e){return r.isObjectLike(e)&&t.isArrayLike(e)}}(Tn)),Tn}var $n,Fn={},Wn={};function Un(){return $n||($n=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rr();e.property=function(e){return function(r){return t.get(r,e)}}}(Wn)),Wn}var Hn,qn={},Yn={},Gn={},Xn={};function Zn(){return Hn||(Hn=1,e=Xn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObject=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}),Xn;var e}var Jn,Qn={};function ei(){return Jn||(Jn=1,e=Qn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isPrimitive=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}),Qn;var e}var ti,ri,ni,ii={};function ai(){return ti||(ti=1,e=ii,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isEqualsSameValueZero=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}),ii;var e}function oi(){return ri||(ri=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zn(),r=ei(),n=ai();function i(e,l,s,c){if(l===e)return!0;switch(typeof l){case"object":return function(e,t,n,i){if(null==t)return!0;if(Array.isArray(t))return a(e,t,n,i);if(t instanceof Map)return function(e,t,r,n){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const[i,a]of t.entries()){if(!1===r(e.get(i),a,i,e,t,n))return!1}return!0}(e,t,n,i);if(t instanceof Set)return o(e,t,n,i);const l=Object.keys(t);if(null==e||r.isPrimitive(e))return 0===l.length;if(0===l.length)return!0;if(i?.has(t))return i.get(t)===e;i?.set(t,e);try{for(let a=0;a<l.length;a++){const o=l[a];if(!r.isPrimitive(e)&&!(o in e))return!1;if(void 0===t[o]&&void 0!==e[o])return!1;if(null===t[o]&&null!==e[o])return!1;if(!n(e[o],t[o],o,e,t,i))return!1}return!0}finally{i?.delete(t)}}(e,l,s,c);case"function":return Object.keys(l).length>0?i(e,{...l},s,c):n.isEqualsSameValueZero(e,l);default:return t.isObject(e)?"string"!=typeof l||""===l:n.isEqualsSameValueZero(e,l)}}function a(e,t,r,n){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let a=0;a<t.length;a++){const o=t[a];let l=!1;for(let s=0;s<e.length;s++){if(i.has(s))continue;let c=!1;if(r(e[s],o,a,e,t,n)&&(c=!0),c){i.add(s),l=!0;break}}if(!l)return!1}return!0}function o(e,t,r,n){return 0===t.size||e instanceof Set&&a([...e],[...t],r,n)}e.isMatchWith=function e(t,r,n){return"function"!=typeof n?e(t,r,()=>{}):i(t,r,function e(t,r,a,o,l,s){const c=n(t,r,a,o,l,s);return void 0!==c?Boolean(c):i(t,r,e,s)},new Map)},e.isSetMatch=o}(Gn)),Gn}function li(){return ni||(ni=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oi();e.isMatch=function(e,r){return t.isMatchWith(e,r,()=>{})}}(Yn)),Yn}var si,ci={},ui={},di={};function fi(){return si||(si=1,e=di,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}),di;var e}var pi,hi={};function vi(){return pi||(pi=1,e=hi,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.getTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}),hi;var e}var yi,mi={};function gi(){return yi||(yi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});e.argumentsTag="[object Arguments]",e.arrayBufferTag="[object ArrayBuffer]",e.arrayTag="[object Array]",e.bigInt64ArrayTag="[object BigInt64Array]",e.bigUint64ArrayTag="[object BigUint64Array]",e.booleanTag="[object Boolean]",e.dataViewTag="[object DataView]",e.dateTag="[object Date]",e.errorTag="[object Error]",e.float32ArrayTag="[object Float32Array]",e.float64ArrayTag="[object Float64Array]",e.functionTag="[object Function]",e.int16ArrayTag="[object Int16Array]",e.int32ArrayTag="[object Int32Array]",e.int8ArrayTag="[object Int8Array]",e.mapTag="[object Map]",e.numberTag="[object Number]",e.objectTag="[object Object]",e.regexpTag="[object RegExp]",e.setTag="[object Set]",e.stringTag="[object String]",e.symbolTag="[object Symbol]",e.uint16ArrayTag="[object Uint16Array]",e.uint32ArrayTag="[object Uint32Array]",e.uint8ArrayTag="[object Uint8Array]",e.uint8ClampedArrayTag="[object Uint8ClampedArray]"}(mi)),mi}var bi,xi,wi,Oi,Ei={};function Si(){return bi||(bi=1,e=Ei,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),Ei;var e}function Pi(){return xi||(xi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fi(),r=vi(),n=gi(),i=ei(),a=Si();function o(e,t,s,c=new Map,u=void 0){const d=u?.(e,t,s,c);if(void 0!==d)return d;if(i.isPrimitive(e))return e;if(c.has(e))return c.get(e);if(Array.isArray(e)){const t=new Array(e.length);c.set(e,t);for(let r=0;r<e.length;r++)t[r]=o(e[r],r,s,c,u);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;c.set(e,t);for(const[r,n]of e)t.set(r,o(n,r,s,c,u));return t}if(e instanceof Set){const t=new Set;c.set(e,t);for(const r of e)t.add(o(r,void 0,s,c,u));return t}if("undefined"!=typeof Buffer&&Buffer.isBuffer(e))return e.subarray();if(a.isTypedArray(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);c.set(e,t);for(let r=0;r<e.length;r++)t[r]=o(e[r],r,s,c,u);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return c.set(e,t),l(t,e,s,c,u),t}if("undefined"!=typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return c.set(e,t),l(t,e,s,c,u),t}if("undefined"!=typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return c.set(e,t),l(t,e,s,c,u),t}if(e instanceof Error){const t=structuredClone(e);return c.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,l(t,e,s,c,u),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return c.set(e,t),l(t,e,s,c,u),t}if(e instanceof Number){const t=new Number(e.valueOf());return c.set(e,t),l(t,e,s,c,u),t}if(e instanceof String){const t=new String(e.valueOf());return c.set(e,t),l(t,e,s,c,u),t}if("object"==typeof e&&function(e){switch(r.getTag(e)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return c.set(e,t),l(t,e,s,c,u),t}return e}function l(e,r,n=e,i,a){const l=[...Object.keys(r),...t.getSymbols(r)];for(let t=0;t<l.length;t++){const s=l[t],c=Object.getOwnPropertyDescriptor(e,s);(null==c||c.writable)&&(e[s]=o(r[s],s,n,i,a))}}e.cloneDeepWith=function(e,t){return o(e,void 0,e,new Map,t)},e.cloneDeepWithImpl=o,e.copyProperties=l}(ui)),ui}function ji(){return wi||(wi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pi();e.cloneDeep=function(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}}(ci)),ci}function Ai(){return Oi||(Oi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=li(),r=ji();e.matches=function(e){return e=r.cloneDeep(e),r=>t.isMatch(r,e)}}(qn)),qn}var ki,_i,Ni={},Mi={},Ti={};function Ii(){return ki||(ki=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pi(),r=vi(),n=gi();e.cloneDeepWith=function(e,i){return t.cloneDeepWith(e,(a,o,l,s)=>{const c=i?.(a,o,l,s);if(void 0!==c)return c;if("object"==typeof e){if(r.getTag(e)===n.objectTag&&"function"!=typeof e.constructor){const r={};return s.set(e,r),t.copyProperties(r,e,l,s),r}switch(Object.prototype.toString.call(e)){case n.numberTag:case n.stringTag:case n.booleanTag:{const r=new e.constructor(e?.valueOf());return t.copyProperties(r,e),r}case n.argumentsTag:{const r={};return t.copyProperties(r,e),r.length=e.length,r[Symbol.iterator]=e[Symbol.iterator],r}default:return}}})}}(Ti)),Ti}function Di(){return _i||(_i=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ii();e.cloneDeep=function(e){return t.cloneDeepWith(e)}}(Mi)),Mi}var Ci,zi={},Li={};function Bi(){return Ci||(Ci=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;e.isIndex=function(e,r=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<r;case"symbol":return!1;case"string":return t.test(e)}}}(Li)),Li}var Ri,Vi,Ki,$i,Fi,Wi,Ui,Hi={};function qi(){return Ri||(Ri=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vi();e.isArguments=function(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===t.getTag(e)}}(Hi)),Hi}function Yi(){return Vi||(Vi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jr(),r=Bi(),n=qi(),i=Br();e.has=function(e,a){let o;if(o=Array.isArray(a)?a:"string"==typeof a&&t.isDeepKey(a)&&null==e?.[a]?i.toPath(a):[a],0===o.length)return!1;let l=e;for(let e=0;e<o.length;e++){const t=o[e];if(null==l||!Object.hasOwn(l,t)){if(!((Array.isArray(l)||n.isArguments(l))&&r.isIndex(t)&&t<l.length))return!1}l=l[t]}return!0}}(zi)),zi}function Gi(){return Ki||(Ki=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=li(),r=_r(),n=Di(),i=Rr(),a=Yi();e.matchesProperty=function(e,o){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=r.toKey(e)}return o=n.cloneDeep(o),function(r){const n=i.get(r,e);return void 0===n?a.has(r,e):void 0===o?void 0===n:t.isMatch(n,o)}}}(Ni)),Ni}function Xi(){return $i||($i=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_n(),r=Un(),n=Ai(),i=Gi();e.iteratee=function(e){if(null==e)return t.identity;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?i.matchesProperty(e[0],e[1]):n.matches(e);case"string":case"symbol":case"number":return r.property(e)}}}(Fn)),Fn}function Zi(){return Fi||(Fi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=En(),r=jn(),n=_n(),i=Kn(),a=Xi();e.uniqBy=function(e,o=n.identity){return i.isArrayLikeObject(e)?t.uniqBy(Array.from(e),r.ary(a.iteratee(o),1)):[]}}(wn)),wn}function Ji(){return Ui?Wi:(Ui=1,Wi=Zi().uniqBy)}var Qi=br(Ji());var ea,ta={exports:{}},ra={},na={exports:{}},ia={};var aa,oa,la,sa={};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as r from"react";import n,{isValidElement as a,forwardRef as i,createContext as o,useContext as l,useMemo as s,useState as c,useCallback as u,useRef as d,useImperativeHandle as f,useEffect as p,useLayoutEffect as h,cloneElement as v,createElement as y,Children as m,memo as g,Component as b,PureComponent as x}from"react";import{mergeProps as w}from"@base-ui/react/merge-props";import{useRender as O}from"@base-ui/react/use-render";import{cva as E}from"class-variance-authority";import{clsx as S}from"clsx";import{twMerge as P}from"tailwind-merge";import{Button as j}from"@base-ui/react/button";import{Input as k}from"@base-ui/react/input";import{Separator as A}from"@base-ui/react/separator";import{Dialog as N}from"@base-ui/react/dialog";import{XIcon as _,PanelLeftIcon as T,LayoutDashboard as I,BarChart3 as M,Package as D,Users as C,ListTodo as z,Settings as L,HelpCircle as B,Moon as R,Sun as V,CheckIcon as K,ChevronRightIcon as $,Search as F,Bell as W,User as U,CreditCard as H,Zap as q,LogOut as Y,TrendingUp as G,TrendingDown as X,ChevronDownIcon as Z,ChevronUpIcon as J}from"lucide-react";import{Tooltip as Q}from"@base-ui/react/tooltip";import{AnimatePresence as ee,motion as te}from"motion/react";import{createPortal as re}from"react-dom";import{Menu as ne}from"@base-ui/react/menu";import{ScrollArea as ae}from"@base-ui/react/scroll-area";import{Select as ie}from"@base-ui/react/select";var oe=function(){return oe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},oe.apply(this,arguments)};function le(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]])}return r}"function"==typeof SuppressedError&&SuppressedError;function se(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return P(S(e))}var ce=E("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ue(t){var r=t.className,n=t.variant,a=void 0===n?"default":n,i=t.size,o=void 0===i?"default":i,l=le(t,["className","variant","size"]);return e(j,oe({"data-slot":"button",className:se(ce({variant:a,size:o,className:r}))},l))}function de(t){var r=t.className,n=t.type,a=le(t,["className","type"]);return e(k,oe({type:n,"data-slot":"input",className:se("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",r)},a))}function fe(t){var r=t.className,n=t.orientation,a=void 0===n?"horizontal":n,i=le(t,["className","orientation"]);return e(A,oe({"data-slot":"separator",orientation:a,className:se("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",r)},i))}function pe(t){var r=le(t,[]);return e(N.Root,oe({"data-slot":"sheet"},r))}function he(t){var r=le(t,[]);return e(N.Trigger,oe({"data-slot":"sheet-trigger"},r))}function ve(t){var r=le(t,[]);return e(N.Close,oe({"data-slot":"sheet-close"},r))}function ye(t){var r=le(t,[]);return e(N.Portal,oe({"data-slot":"sheet-portal"},r))}function me(t){var r=t.className,n=le(t,["className"]);return e(N.Backdrop,oe({"data-slot":"sheet-overlay",className:se("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",r)},n))}function ge(r){var n=r.className,a=r.children,i=r.side,o=void 0===i?"right":i,l=r.showCloseButton,s=void 0===l||l,c=le(r,["className","children","side","showCloseButton"]);return t(ye,{children:[e(me,{}),t(N.Popup,oe({"data-slot":"sheet-content","data-side":o,className:se("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-10 data-[side=bottom]:data-starting-style:translate-y-10 data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:-translate-x-10 data-[side=left]:data-starting-style:-translate-x-10 data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-10 data-[side=right]:data-starting-style:translate-x-10 data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:-translate-y-10 data-[side=top]:data-starting-style:-translate-y-10 data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",n)},c,{children:[a,s&&t(N.Close,{"data-slot":"sheet-close",render:e(ue,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[e(_,{}),e("span",{className:"sr-only",children:"Close"})]})]}))]})}function be(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"sheet-header",className:se("flex flex-col gap-0.5 p-4",r)},n))}function xe(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"sheet-footer",className:se("mt-auto flex flex-col gap-2 p-4",r)},n))}function we(t){var r=t.className,n=le(t,["className"]);return e(N.Title,oe({"data-slot":"sheet-title",className:se("font-heading text-base font-medium text-foreground",r)},n))}function Oe(t){var r=t.className,n=le(t,["className"]);return e(N.Description,oe({"data-slot":"sheet-description",className:se("text-sm text-muted-foreground",r)},n))}function Ee(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"skeleton",className:se("animate-pulse rounded-md bg-muted",r)},n))}function Se(t){var r=t.delay,n=void 0===r?0:r,a=le(t,["delay"]);return e(Q.Provider,oe({"data-slot":"tooltip-provider",delay:n},a))}function Pe(t){var r=le(t,[]);return e(Q.Root,oe({"data-slot":"tooltip"},r))}function je(t){var r=le(t,[]);return e(Q.Trigger,oe({"data-slot":"tooltip-trigger"},r))}function ke(r){var n=r.className,a=r.side,i=void 0===a?"top":a,o=r.sideOffset,l=void 0===o?4:o,s=r.align,c=void 0===s?"center":s,u=r.alignOffset,d=void 0===u?0:u,f=r.children,p=le(r,["className","side","sideOffset","align","alignOffset","children"]);return e(Q.Portal,{children:e(Q.Positioner,{align:c,alignOffset:d,side:i,sideOffset:l,className:"isolate z-50",children:t(Q.Popup,oe({"data-slot":"tooltip-content",className:se("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n)},p,{children:[f,e(Q.Arrow,{className:"z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-xs bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5"})]}))})})}var Ae=r.createContext(null);function Ne(){var e=r.useContext(Ae);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function _e(t){var n=t.defaultOpen,a=void 0===n||n,i=t.open,o=t.onOpenChange,l=t.className,s=t.style,c=t.children,u=le(t,["defaultOpen","open","onOpenChange","className","style","children"]),d=function(){var e=r.useState(void 0),t=e[0],n=e[1];return r.useEffect(function(){var e=window.matchMedia("(max-width: ".concat(767,"px)")),t=function(){n(window.innerWidth<768)};return e.addEventListener("change",t),n(window.innerWidth<768),function(){return e.removeEventListener("change",t)}},[]),!!t}(),f=r.useState(!1),p=f[0],h=f[1],v=r.useState(a),y=v[0],m=v[1],g=null!=i?i:y,b=r.useCallback(function(e){var t="function"==typeof e?e(g):e;o?o(t):m(t),document.cookie="".concat("sidebar_state","=").concat(t,"; path=/; max-age=").concat(604800)},[o,g]),x=r.useCallback(function(){return d?h(function(e){return!e}):b(function(e){return!e})},[d,b,h]);r.useEffect(function(){var e=function(e){"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),x())};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[x]);var w=g?"expanded":"collapsed",O=r.useMemo(function(){return{state:w,open:g,setOpen:b,isMobile:d,openMobile:p,setOpenMobile:h,toggleSidebar:x}},[w,g,b,d,p,h,x]);return e(Ae.Provider,{value:O,children:e("div",oe({"data-slot":"sidebar-wrapper",style:oe({"--sidebar-width":"16rem","--sidebar-width-icon":"3rem"},s),className:se("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",l)},u,{children:c}))})}function Te(r){var n=r.side,a=void 0===n?"left":n,i=r.variant,o=void 0===i?"sidebar":i,l=r.collapsible,s=void 0===l?"offcanvas":l,c=r.className,u=r.children,d=r.dir,f=le(r,["side","variant","collapsible","className","children","dir"]),p=Ne(),h=p.isMobile,v=p.state,y=p.openMobile,m=p.setOpenMobile;return"none"===s?e("div",oe({"data-slot":"sidebar",className:se("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",c)},f,{children:u})):h?e(pe,oe({open:y,onOpenChange:m},f,{children:t(ge,{dir:d,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:a,children:[t(be,{className:"sr-only",children:[e(we,{children:"Sidebar"}),e(Oe,{children:"Displays the mobile sidebar."})]}),e("div",{className:"flex h-full w-full flex-col",children:u})]})})):t("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":v,"data-collapsible":"collapsed"===v?s:"","data-variant":o,"data-side":a,"data-slot":"sidebar",children:[e("div",{"data-slot":"sidebar-gap",className:se("relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===o||"inset"===o?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),e("div",oe({"data-slot":"sidebar-container","data-side":a,className:se("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex","floating"===o||"inset"===o?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",c)},f,{children:e("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border",children:u})}))]})}function Ie(r){var n=r.className,a=r.onClick,i=le(r,["className","onClick"]),o=Ne().toggleSidebar;return t(ue,oe({"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:se(n),onClick:function(e){null==a||a(e),o()}},i,{children:[e(T,{}),e("span",{className:"sr-only",children:"Toggle Sidebar"})]}))}function Me(t){var r=t.className,n=le(t,["className"]),a=Ne().toggleSidebar;return e("button",oe({"data-sidebar":"rail","data-slot":"sidebar-rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:a,title:"Toggle Sidebar",className:se("absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:inset-s-1/2 after:w-0.5 hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2","in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",r)},n))}function De(t){var r=t.className,n=le(t,["className"]);return e("main",oe({"data-slot":"sidebar-inset",className:se("relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",r)},n))}function Ce(t){var r=t.className,n=le(t,["className"]);return e(de,oe({"data-slot":"sidebar-input","data-sidebar":"input",className:se("h-8 w-full bg-background shadow-none",r)},n))}function ze(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"sidebar-header","data-sidebar":"header",className:se("flex flex-col gap-2 p-2",r)},n))}function Le(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"sidebar-footer","data-sidebar":"footer",className:se("flex flex-col gap-2 p-2",r)},n))}function Be(t){var r=t.className,n=le(t,["className"]);return e(fe,oe({"data-slot":"sidebar-separator","data-sidebar":"separator",className:se("mx-2 w-auto bg-sidebar-border",r)},n))}function Re(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"sidebar-content","data-sidebar":"content",className:se("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",r)},n))}function Ve(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"sidebar-group","data-sidebar":"group",className:se("relative flex w-full min-w-0 flex-col p-2",r)},n))}function Ke(e){var t=e.className,r=e.render,n=le(e,["className","render"]);return O({defaultTagName:"div",props:w({className:se("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",t)},n),render:r,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function $e(e){var t=e.className,r=e.render,n=le(e,["className","render"]);return O({defaultTagName:"button",props:w({className:se("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",t)},n),render:r,state:{slot:"sidebar-group-action",sidebar:"group-action"}})}function Fe(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:se("w-full text-sm",r)},n))}function We(t){var r=t.className,n=le(t,["className"]);return e("ul",oe({"data-slot":"sidebar-menu","data-sidebar":"menu",className:se("flex w-full min-w-0 flex-col gap-0",r)},n))}function Ue(t){var r=t.className,n=le(t,["className"]);return e("li",oe({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:se("group/menu-item relative",r)},n))}var He=E("peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function qe(r){var n=r.render,a=r.isActive,i=void 0!==a&&a,o=r.variant,l=void 0===o?"default":o,s=r.size,c=void 0===s?"default":s,u=r.tooltip,d=r.className,f=le(r,["render","isActive","variant","size","tooltip","className"]),p=Ne(),h=p.isMobile,v=p.state,y=O({defaultTagName:"button",props:w({className:se(He({variant:l,size:c}),d)},f),render:u?e(je,{render:n}):n,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:c,active:i}});return u?("string"==typeof u&&(u={children:u}),t(Pe,{children:[y,e(ke,oe({side:"right",align:"center",hidden:"collapsed"!==v||h},u))]})):y}function Ye(e){var t=e.className,r=e.render,n=e.showOnHover,a=void 0!==n&&n,i=le(e,["className","render","showOnHover"]);return O({defaultTagName:"button",props:w({className:se("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground ring-sidebar-ring outline-hidden transition-transform group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 after:absolute after:-inset-2 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 md:after:hidden [&>svg]:size-4 [&>svg]:shrink-0",a&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 peer-data-active/menu-button:text-sidebar-accent-foreground aria-expanded:opacity-100 md:opacity-0",t)},i),render:r,state:{slot:"sidebar-menu-action",sidebar:"menu-action"}})}function Ge(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"sidebar-menu-badge","data-sidebar":"menu-badge",className:se("pointer-events-none absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium text-sidebar-foreground tabular-nums select-none group-data-[collapsible=icon]:hidden peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-2.5 peer-data-[size=sm]/menu-button:top-1 peer-data-active/menu-button:text-sidebar-accent-foreground",r)},n))}function Xe(n){var a=n.className,i=n.showIcon,o=void 0!==i&&i,l=le(n,["className","showIcon"]),s=r.useState(function(){return"".concat(Math.floor(40*Math.random())+50,"%")})[0];return t("div",oe({"data-slot":"sidebar-menu-skeleton","data-sidebar":"menu-skeleton",className:se("flex h-8 items-center gap-2 rounded-md px-2",a)},l,{children:[o&&e(Ee,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),e(Ee,{className:"h-4 max-w-(--skeleton-width) flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":s}})]}))}function Ze(t){var r=t.className,n=le(t,["className"]);return e("ul",oe({"data-slot":"sidebar-menu-sub","data-sidebar":"menu-sub",className:se("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden",r)},n))}function Je(t){var r=t.className,n=le(t,["className"]);return e("li",oe({"data-slot":"sidebar-menu-sub-item","data-sidebar":"menu-sub-item",className:se("group/menu-sub-item relative",r)},n))}function Qe(e){var t=e.render,r=e.size,n=void 0===r?"md":r,a=e.isActive,i=void 0!==a&&a,o=e.className,l=le(e,["render","size","isActive","className"]);return O({defaultTagName:"a",props:w({className:se("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",o)},l),render:t,state:{slot:"sidebar-menu-sub-button",sidebar:"menu-sub-button",size:n,active:i}})}var et=[{title:"Dashboard",icon:I,url:"#"},{title:"Analytics",icon:M,url:"#"},{title:"Products",icon:D,url:"#"},{title:"Customers",icon:C,url:"#"},{title:"Tasks",icon:z,url:"#"},{title:"Settings",icon:L,url:"#"},{title:"Help",icon:B,url:"#"}];function tt(r){var n=r.items,a=void 0===n?et:n,i=r.onItemClick,o=r.activeItem,l="collapsed"===Ne().state;return t(Te,{variant:"inset",collapsible:"icon",children:[e(ze,{className:"h-16 flex items-center px-6 border-b border-border/50",children:t("div",{className:"flex items-center gap-2 font-bold text-xl tracking-tight",children:[e("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center text-primary-foreground shrink-0",children:"B"}),e(ee,{mode:"wait",children:!l&&e(te.span,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},className:"whitespace-nowrap",children:"BMJ UI"})})]})}),e(Re,{children:t(Ve,{children:[e(Ke,{children:e(ee,{mode:"wait",children:!l&&e(te.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:"Main Menu"})})}),e(Fe,{children:e(We,{children:a.map(function(r){return e(Ue,{children:e(qe,{tooltip:r.title,isActive:o===r.title,onClick:function(){return null==i?void 0:i(r.title)},className:"transition-all duration-200 hover:bg-primary/5 hover:text-primary",render:t("button",{type:"button",className:"flex items-center w-full",children:[e(r.icon,{className:"shrink-0"}),e(ee,{mode:"wait",children:!l&&e(te.span,{initial:{opacity:0,width:0,marginLeft:0},animate:{opacity:1,width:"auto",marginLeft:8},exit:{opacity:0,width:0,marginLeft:0},transition:{duration:.2},className:"overflow-hidden whitespace-nowrap",children:r.title})})]})})},r.title)})})})]})}),e(Le,{className:"p-4 border-t border-border/50",children:t("div",{className:"flex items-center gap-3 min-h-10",children:[e("div",{className:"w-8 h-8 rounded-full bg-muted shrink-0"}),e(ee,{mode:"wait",children:!l&&t(te.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},className:"flex flex-col overflow-hidden whitespace-nowrap",children:[e("span",{className:"text-sm font-medium",children:"Bahry Jarbou"}),e("span",{className:"text-xs text-muted-foreground",children:"Admin"})]})})]})})]})}function rt(t){var n=t.className,a=r.useState(function(){if("undefined"!=typeof window){var e=localStorage.getItem("bmj-ui-theme");return"light"===e||"dark"===e?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}return"light"}),i=a[0],o=a[1];r.useEffect(function(){var e=window.document.documentElement;e.classList.remove("light","dark"),e.classList.add(i),localStorage.setItem("bmj-ui-theme",i)},[i]);return e(ue,{variant:"ghost",size:"icon",onClick:function(){o(function(e){return"light"===e?"dark":"light"})},className:n,"aria-label":"Toggle theme",children:e("light"===i?R:V,{className:"w-5 h-5 transition-all"})})}Array(12).fill(0);let nt=1;const at=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const{message:r,...n}=e,a="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:nt++,i=this.toasts.find(e=>e.id===a),o=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),i?this.toasts=this.toasts.map(t=>t.id===a?(this.publish({...t,...e,id:a,title:r}),{...t,...e,id:a,dismissible:o,title:r}):t):this.addToast({title:r,...n,dismissible:o,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let r;void 0!==t.loading&&(r=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));const a=Promise.resolve(e instanceof Function?e():e);let i,o=void 0!==r;const l=a.then(async e=>{i=["resolve",e];if(n.isValidElement(e))o=!1,this.create({id:r,type:"default",message:e});else if(it(e)&&!e.ok){o=!1;const a="function"==typeof t.error?await t.error(`HTTP error! status: ${e.status}`):t.error,i="function"==typeof t.description?await t.description(`HTTP error! status: ${e.status}`):t.description,l="object"==typeof a&&!n.isValidElement(a)?a:{message:a};this.create({id:r,type:"error",description:i,...l})}else if(e instanceof Error){o=!1;const a="function"==typeof t.error?await t.error(e):t.error,i="function"==typeof t.description?await t.description(e):t.description,l="object"==typeof a&&!n.isValidElement(a)?a:{message:a};this.create({id:r,type:"error",description:i,...l})}else if(void 0!==t.success){o=!1;const a="function"==typeof t.success?await t.success(e):t.success,i="function"==typeof t.description?await t.description(e):t.description,l="object"==typeof a&&!n.isValidElement(a)?a:{message:a};this.create({id:r,type:"success",description:i,...l})}}).catch(async e=>{if(i=["reject",e],void 0!==t.error){o=!1;const a="function"==typeof t.error?await t.error(e):t.error,i="function"==typeof t.description?await t.description(e):t.description,l="object"==typeof a&&!n.isValidElement(a)?a:{message:a};this.create({id:r,type:"error",description:i,...l})}}).finally(()=>{o&&(this.dismiss(r),r=void 0),null==t.finally||t.finally.call(t)}),s=()=>new Promise((e,t)=>l.then(()=>"reject"===i[0]?t(i[1]):e(i[1])).catch(t));return"string"!=typeof r&&"number"!=typeof r?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(e,t)=>{const r=(null==t?void 0:t.id)||nt++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},it=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,ot=(e,t)=>{const r=(null==t?void 0:t.id)||nt++;return at.addToast({title:e,...t,id:r}),r},lt=Object.assign(ot,{success:at.success,info:at.info,warning:at.warning,error:at.error,custom:at.custom,message:at.message,promise:at.promise,dismiss:at.dismiss,loading:at.loading},{getHistory:()=>at.toasts,getToasts:()=>at.getActiveToasts()});function st(t){var r=le(t,[]);return e(ne.Root,oe({"data-slot":"dropdown-menu"},r))}function ct(t){var r=le(t,[]);return e(ne.Portal,oe({"data-slot":"dropdown-menu-portal"},r))}function ut(t){var r=le(t,[]);return e(ne.Trigger,oe({"data-slot":"dropdown-menu-trigger"},r))}function dt(t){var r=t.align,n=void 0===r?"start":r,a=t.alignOffset,i=void 0===a?0:a,o=t.side,l=void 0===o?"bottom":o,s=t.sideOffset,c=void 0===s?4:s,u=t.className,d=le(t,["align","alignOffset","side","sideOffset","className"]);return e(ne.Portal,{children:e(ne.Positioner,{className:"isolate z-50 outline-none",align:n,alignOffset:i,side:l,sideOffset:c,children:e(ne.Popup,oe({"data-slot":"dropdown-menu-content",className:se("z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",u)},d))})})}function ft(t){var r=le(t,[]);return e(ne.Group,oe({"data-slot":"dropdown-menu-group"},r))}function pt(t){var r=t.className,n=t.inset,a=le(t,["className","inset"]);return e(ne.GroupLabel,oe({"data-slot":"dropdown-menu-label","data-inset":n,className:se("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",r)},a))}function ht(t){var r=t.className,n=t.inset,a=t.variant,i=void 0===a?"default":a,o=le(t,["className","inset","variant"]);return e(ne.Item,oe({"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":i,className:se("group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",r)},o))}function vt(t){var r=le(t,[]);return e(ne.SubmenuRoot,oe({"data-slot":"dropdown-menu-sub"},r))}function yt(r){var n=r.className,a=r.inset,i=r.children,o=le(r,["className","inset","children"]);return t(ne.SubmenuTrigger,oe({"data-slot":"dropdown-menu-sub-trigger","data-inset":a,className:se("flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-popup-open:bg-accent data-popup-open:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n)},o,{children:[i,e($,{className:"ml-auto"})]}))}function mt(t){var r=t.align,n=void 0===r?"start":r,a=t.alignOffset,i=void 0===a?-3:a,o=t.side,l=void 0===o?"right":o,s=t.sideOffset,c=void 0===s?0:s,u=t.className,d=le(t,["align","alignOffset","side","sideOffset","className"]);return e(dt,oe({"data-slot":"dropdown-menu-sub-content",className:se("w-auto min-w-24 rounded-lg bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",u),align:n,alignOffset:i,side:l,sideOffset:c},d))}function gt(r){var n=r.className,a=r.children,i=r.checked,o=r.inset,l=le(r,["className","children","checked","inset"]);return t(ne.CheckboxItem,oe({"data-slot":"dropdown-menu-checkbox-item","data-inset":o,className:se("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),checked:i},l,{children:[e("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center","data-slot":"dropdown-menu-checkbox-item-indicator",children:e(ne.CheckboxItemIndicator,{children:e(K,{})})}),a]}))}function bt(t){var r=le(t,[]);return e(ne.RadioGroup,oe({"data-slot":"dropdown-menu-radio-group"},r))}function xt(r){var n=r.className,a=r.children,i=r.inset,o=le(r,["className","children","inset"]);return t(ne.RadioItem,oe({"data-slot":"dropdown-menu-radio-item","data-inset":i,className:se("relative flex cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n)},o,{children:[e("span",{className:"pointer-events-none absolute right-2 flex items-center justify-center","data-slot":"dropdown-menu-radio-item-indicator",children:e(ne.RadioItemIndicator,{children:e(K,{})})}),a]}))}function wt(t){var r=t.className,n=le(t,["className"]);return e(ne.Separator,oe({"data-slot":"dropdown-menu-separator",className:se("-mx-1 my-1 h-px bg-border",r)},n))}function Ot(t){var r=t.className,n=le(t,["className"]);return e("span",oe({"data-slot":"dropdown-menu-shortcut",className:se("ml-auto text-xs tracking-widest text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground",r)},n))}function Et(){var r=function(e){lt.info("".concat(e," clicked"),{description:"This feature will be implemented soon."})};return t("header",{className:"h-16 border-b border-border/50 flex items-center justify-between px-4 sm:px-6 bg-background/80 backdrop-blur-md sticky top-0 z-30",children:[t("div",{className:"flex items-center gap-2 sm:gap-4 flex-1",children:[e(Ie,{}),t("div",{className:"relative w-full max-w-md hidden md:block",children:[e(F,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e(de,{placeholder:"Search dashboard...",className:"pl-10 bg-muted/50 border-none focus-visible:ring-1 focus-visible:ring-primary/20"})]}),e(ue,{variant:"ghost",size:"icon",className:"md:hidden",children:e(F,{className:"w-5 h-5"})})]}),t("div",{className:"flex items-center gap-1 sm:gap-2",children:[e("div",{className:"hidden xs:block",children:e(rt,{})}),t(ue,{variant:"ghost",size:"icon",className:"relative",children:[e(W,{className:"w-5 h-5"}),e("span",{className:"absolute top-2 right-2 w-2 h-2 bg-primary rounded-full border-2 border-background"})]}),t(st,{children:[e(ut,{render:e(ue,{variant:"ghost",size:"icon",className:"rounded-full"}),children:e(U,{className:"w-5 h-5"})}),e(dt,{align:"end",className:"w-56",children:t(ft,{children:[e(pt,{children:"My Account"}),e(wt,{}),t(ht,{onClick:function(){return r("Profile")},children:[e(U,{className:"mr-2 h-4 w-4"}),e("span",{children:"Profile"})]}),t(ht,{onClick:function(){return r("Billing")},children:[e(H,{className:"mr-2 h-4 w-4"}),e("span",{children:"Billing"})]}),t(ht,{onClick:function(){return r("Team")},children:[e(C,{className:"mr-2 h-4 w-4"}),e("span",{children:"Team"})]}),t(ht,{onClick:function(){return r("Subscription")},children:[e(q,{className:"mr-2 h-4 w-4"}),e("span",{children:"Subscription"})]}),e(wt,{}),t(ht,{variant:"destructive",onClick:function(){return r("Log out")},children:[e(Y,{className:"mr-2 h-4 w-4"}),e("span",{children:"Log out"})]})]})})]})]})]})}function St(r){var n=r.children,a=r.sidebarItems,i=r.onSidebarItemClick,o=r.activeSidebarItem;return t(_e,{children:[e(tt,{items:a,onItemClick:i,activeItem:o}),t(De,{className:"flex flex-col",children:[e(Et,{}),e("main",{className:"flex-1 p-6 overflow-y-auto",children:n})]})]})}function Pt(t){var r=t.className,n=t.size,a=void 0===n?"default":n,i=le(t,["className","size"]);return e("div",oe({"data-slot":"card","data-size":a,className:se("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",r)},i))}function jt(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"card-header",className:se("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",r)},n))}function kt(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"card-title",className:se("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",r)},n))}function At(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"card-description",className:se("text-sm text-muted-foreground",r)},n))}function Nt(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"card-action",className:se("col-start-2 row-span-2 row-start-1 self-start justify-self-end",r)},n))}function _t(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"card-content",className:se("px-4 group-data-[size=sm]/card:px-3",r)},n))}function Tt(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"card-footer",className:se("flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3",r)},n))}!function(e){if("undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");var It=["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"];function Mt(e){return"string"==typeof e&&It.includes(e)}var Dt=new Set(["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"]);function Ct(e){return"string"==typeof e&&Dt.has(e)}function zt(e){return"string"==typeof e&&e.startsWith("data-")}function Lt(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Ct(r)||zt(r))&&(t[r]=e[r]);return t}function Bt(e){return null==e?null:a(e)&&"object"==typeof e.props&&null!==e.props?Lt(e.props):"object"!=typeof e||Array.isArray(e)?null:Lt(e)}function Rt(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Ct(r)||zt(r)||Mt(r))&&(t[r]=e[r]);return t}var Vt=["children","width","height","viewBox","className","style","title","desc"];function Kt(){return Kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kt.apply(null,arguments)}var $t=i((e,t)=>{var{children:n,width:a,height:i,viewBox:o,className:l,style:s,title:c,desc:u}=e,d=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,Vt),f=o||{width:a,height:i,x:0,y:0},p=S("recharts-surface",l);return r.createElement("svg",Kt({},Rt(d),{className:p,width:a,height:i,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),r.createElement("title",null,c),r.createElement("desc",null,u),n)}),Ft=["children","className"];function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wt.apply(null,arguments)}var Ut=r.forwardRef((e,t)=>{var{children:n,className:a}=e,i=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,Ft),o=S("recharts-layer",a);return r.createElement("g",Wt({className:o},Rt(i),{ref:t}),n)}),Ht=o(null);function qt(e){return function(){return e}}const Yt=Math.cos,Gt=Math.sin,Xt=Math.sqrt,Zt=Math.PI,Jt=2*Zt,Qt=Math.PI,er=2*Qt,tr=1e-6,rr=er-tr;function nr(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class ar{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?nr:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return nr;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,a,i){this._append`C${+e},${+t},${+r},${+n},${this._x1=+a},${this._y1=+i}`}arcTo(e,t,r,n,a){if(e=+e,t=+t,r=+r,n=+n,(a=+a)<0)throw new Error(`negative radius: ${a}`);let i=this._x1,o=this._y1,l=r-e,s=n-t,c=i-e,u=o-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>tr)if(Math.abs(u*l-s*c)>tr&&a){let f=r-i,p=n-o,h=l*l+s*s,v=f*f+p*p,y=Math.sqrt(h),m=Math.sqrt(d),g=a*Math.tan((Qt-Math.acos((h+d-v)/(2*y*m)))/2),b=g/m,x=g/y;Math.abs(b-1)>tr&&this._append`L${e+b*c},${t+b*u}`,this._append`A${a},${a},0,0,${+(u*f>c*p)},${this._x1=e+x*l},${this._y1=t+x*s}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,n,a,i){if(e=+e,t=+t,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(n),l=r*Math.sin(n),s=e+o,c=t+l,u=1^i,d=i?n-a:a-n;null===this._x1?this._append`M${s},${c}`:(Math.abs(this._x1-s)>tr||Math.abs(this._y1-c)>tr)&&this._append`L${s},${c}`,r&&(d<0&&(d=d%er+er),d>rr?this._append`A${r},${r},0,1,${u},${e-o},${t-l}A${r},${r},0,1,${u},${this._x1=s},${this._y1=c}`:d>tr&&this._append`A${r},${r},0,${+(d>=Qt)},${u},${this._x1=e+r*Math.cos(a)},${this._y1=t+r*Math.sin(a)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function ir(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new ar(t)}function or(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function lr(e){this._context=e}function sr(e){return new lr(e)}function cr(e){return e[0]}function ur(e){return e[1]}function dr(e,t){var r=qt(!0),n=null,a=sr,i=null,o=ir(l);function l(l){var s,c,u,d=(l=or(l)).length,f=!1;for(null==n&&(i=a(u=o())),s=0;s<=d;++s)!(s<d&&r(c=l[s],s,l))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(c,s,l),+t(c,s,l));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?cr:qt(e),t="function"==typeof t?t:void 0===t?ur:qt(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:qt(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:qt(+e),l):t},l.defined=function(e){return arguments.length?(r="function"==typeof e?e:qt(!!e),l):r},l.curve=function(e){return arguments.length?(a=e,null!=n&&(i=a(n)),l):a},l.context=function(e){return arguments.length?(null==e?n=i=null:i=a(n=e),l):n},l}function fr(e,t,r){var n=null,a=qt(!0),i=null,o=sr,l=null,s=ir(c);function c(c){var u,d,f,p,h,v=(c=or(c)).length,y=!1,m=new Array(v),g=new Array(v);for(null==i&&(l=o(h=s())),u=0;u<=v;++u){if(!(u<v&&a(p=c[u],u,c))===y)if(y=!y)d=u,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=u-1;f>=d;--f)l.point(m[f],g[f]);l.lineEnd(),l.areaEnd()}y&&(m[u]=+e(p,u,c),g[u]=+t(p,u,c),l.point(n?+n(p,u,c):m[u],r?+r(p,u,c):g[u]))}if(h)return l=null,h+""||null}function u(){return dr().defined(a).curve(o).context(i)}return e="function"==typeof e?e:void 0===e?cr:qt(+e),t="function"==typeof t?t:qt(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?ur:qt(+r),c.x=function(t){return arguments.length?(e="function"==typeof t?t:qt(+t),n=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:qt(+t),c):e},c.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:qt(+e),c):n},c.y=function(e){return arguments.length?(t="function"==typeof e?e:qt(+e),r=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:qt(+e),c):t},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:qt(+e),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(e){return arguments.length?(a="function"==typeof e?e:qt(!!e),c):a},c.curve=function(e){return arguments.length?(o=e,null!=i&&(l=o(i)),c):o},c.context=function(e){return arguments.length?(null==e?i=l=null:l=o(i=e),c):i},c}lr.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};class pr{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}var hr={draw(e,t){const r=Xt(t/Zt);e.moveTo(r,0),e.arc(0,0,r,0,Jt)}},vr={draw(e,t){const r=Xt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}};const yr=Xt(1/3),mr=2*yr;var gr={draw(e,t){const r=Xt(t/mr),n=r*yr;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},br={draw(e,t){const r=Xt(t),n=-r/2;e.rect(n,n,r,r)}};const xr=Gt(Zt/10)/Gt(7*Zt/10),wr=Gt(Jt/10)*xr,Or=-Yt(Jt/10)*xr;var Er={draw(e,t){const r=Xt(.8908130915292852*t),n=wr*r,a=Or*r;e.moveTo(0,-r),e.lineTo(n,a);for(let t=1;t<5;++t){const i=Jt*t/5,o=Yt(i),l=Gt(i);e.lineTo(l*r,-o*r),e.lineTo(o*n-l*a,l*n+o*a)}e.closePath()}};const Sr=Xt(3);var Pr={draw(e,t){const r=-Xt(t/(3*Sr));e.moveTo(0,2*r),e.lineTo(-Sr*r,-r),e.lineTo(Sr*r,-r),e.closePath()}};const jr=-.5,kr=Xt(3)/2,Ar=1/Xt(12),Nr=3*(Ar/2+1);var _r={draw(e,t){const r=Xt(t/Nr),n=r/2,a=r*Ar,i=n,o=r*Ar+r,l=-i,s=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(l,s),e.lineTo(jr*n-kr*a,kr*n+jr*a),e.lineTo(jr*i-kr*o,kr*i+jr*o),e.lineTo(jr*l-kr*s,kr*l+jr*s),e.lineTo(jr*n+kr*a,jr*a-kr*n),e.lineTo(jr*i+kr*o,jr*o-kr*i),e.lineTo(jr*l+kr*s,jr*s-kr*l),e.closePath()}};function Tr(){}function Ir(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Mr(e){this._context=e}function Dr(e){this._context=e}function Cr(e){this._context=e}function zr(e){this._context=e}function Lr(e){return e<0?-1:1}function Br(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),l=(i*a+o*n)/(n+a);return(Lr(i)+Lr(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function Rr(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Vr(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-n)/3;e._context.bezierCurveTo(n+l,a+l*t,i-l,o-l*r,i,o)}function Kr(e){this._context=e}function $r(e){this._context=new Fr(e)}function Fr(e){this._context=e}function Wr(e){this._context=e}function Ur(e){var t,r,n=e.length-1,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function Hr(e,t){this._context=e,this._t=t}function qr(e,t){if((a=e.length)>1)for(var r,n,a,i=1,o=e[t[0]],l=o.length;i<a;++i)for(n=o,o=e[t[i]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Yr(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Gr(e,t){return e[t]}function Xr(e){const t=[];return t.key=e,t}function Zr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}Mr.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:Ir(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:Ir(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Dr.prototype={areaStart:Tr,areaEnd:Tr,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ir(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Cr.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(e,t){switch(e=+e,t=+t,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+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Ir(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},zr.prototype={areaStart:Tr,areaEnd:Tr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Kr.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:Vr(this,this._t0,Rr(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Vr(this,Rr(this,r=Br(this,e,t)),r);break;default:Vr(this,this._t0,r=Br(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},($r.prototype=Object.create(Kr.prototype)).point=function(e,t){Kr.prototype.point.call(this,t,e)},Fr.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}},Wr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=Ur(e),a=Ur(t),i=0,o=1;o<r;++i,++o)this._context.bezierCurveTo(n[0][i],a[0][i],n[1][i],a[1][i],e[o],t[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Hr.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var Jr,Qr={},en={};function tn(){return Jr||(Jr=1,e=en,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isUnsafeProperty=function(e){return"__proto__"===e}),en;var e}var rn,nn={};function an(){return rn||(rn=1,e=nn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isDeepKey=function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}),nn;var e}var on,ln={};function sn(){return on||(on=1,e=ln,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.toKey=function(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}),ln;var e}var cn,un,dn,fn,pn,hn={},vn={};function yn(){return cn||(cn=1,e=vn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.toString=function e(t){if(null==t)return"";if("string"==typeof t)return t;if(Array.isArray(t))return t.map(e).join(",");const r=String(t);return"0"===r&&Object.is(Number(t),-0)?"-0":r}),vn;var e}function mn(){return un||(un=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yn(),r=sn();e.toPath=function(e){if(Array.isArray(e))return e.map(r.toKey);if("symbol"==typeof e)return[e];const n=[],a=(e=t.toString(e)).length;if(0===a)return n;let i=0,o="",l="",s=!1;for(46===e.charCodeAt(0)&&(n.push(""),i++);i<a;){const t=e[i];l?"\\"===t&&i+1<a?(i++,o+=e[i]):t===l?l="":o+=t:s?'"'===t||"'"===t?l=t:"]"===t?(s=!1,n.push(o),o=""):o+=t:"["===t?(s=!0,o&&(n.push(o),o="")):"."===t?o&&(n.push(o),o=""):o+=t,i++}return o&&n.push(o),n}}(hn)),hn}function gn(){return dn||(dn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tn(),r=an(),n=sn(),a=mn();e.get=function e(i,o,l){if(null==i)return l;switch(typeof o){case"string":{if(t.isUnsafeProperty(o))return l;const n=i[o];return void 0===n?r.isDeepKey(o)?e(i,a.toPath(o),l):l:n}case"number":case"symbol":{"number"==typeof o&&(o=n.toKey(o));const e=i[o];return void 0===e?l:e}default:{if(Array.isArray(o))return function(e,r,n){if(0===r.length)return n;let a=e;for(let e=0;e<r.length;e++){if(null==a)return n;if(t.isUnsafeProperty(r[e]))return n;a=a[r[e]]}if(void 0===a)return n;return a}(i,o,l);if(o=Object.is(o?.valueOf(),-0)?"-0":String(o),t.isUnsafeProperty(o))return l;const e=i[o];return void 0===e?l:e}}}}(Qr)),Qr}function bn(){return pn?fn:(pn=1,fn=gn().get)}var xn=Zr(bn());function wn(e){var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:4),r=Math.round(e*t)/t;return Object.is(r,-0)?0:r}function On(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((e,t,n)=>{var a=r[n-1];return"string"==typeof a?e+a+t:void 0!==a?e+wn(a)+t:e+t},"")}var En=e=>0===e?0:e>0?1:-1,Sn=e=>"number"==typeof e&&e!=+e,Pn=e=>"string"==typeof e&&e.indexOf("%")===e.length-1,jn=e=>("number"==typeof e||e instanceof Number)&&!Sn(e),kn=e=>jn(e)||"string"==typeof e,An=0,Nn=e=>{var t=++An;return"".concat(e||"").concat(t)},_n=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!jn(e)&&"string"!=typeof e)return n;if(Pn(e)){if(null==t)return n;var i=e.indexOf("%");r=t*parseFloat(e.slice(0,i))/100}else r=+e;return Sn(r)&&(r=n),a&&null!=t&&r>t&&(r=t),r},Tn=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[String(e[n])])return!0;r[String(e[n])]=!0}return!1};function In(e,t,r){return jn(e)&&jn(t)?wn(e+r*(t-e)):t}function Mn(e,t,r){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):xn(e,t))===r)}var Dn=e=>null==e,Cn=e=>Dn(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function zn(e){return null!=e}function Ln(){}var Bn=["type","size","sizeType"];function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rn.apply(null,arguments)}function Vn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Kn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vn(Object(r),!0).forEach(function(t){$n(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function $n(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Fn={symbolCircle:hr,symbolCross:vr,symbolDiamond:gr,symbolSquare:br,symbolStar:Er,symbolTriangle:Pr,symbolWye:_r},Wn=Math.PI/180,Un=e=>{var{type:t="circle",size:n=64,sizeType:a="area"}=e,i=Kn(Kn({},function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,Bn)),{},{type:t,size:n,sizeType:a}),o="circle";"string"==typeof t&&(o=t);var{className:l,cx:s,cy:c}=i,u=Rt(i);return jn(s)&&jn(c)&&jn(n)?r.createElement("path",Rn({},u,{className:S("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:(()=>{var e=(e=>{var t="symbol".concat(Cn(e));return Fn[t]||hr})(o),t=function(e,t){let r=null,n=ir(a);function a(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return e="function"==typeof e?e:qt(e||hr),t="function"==typeof t?t:qt(void 0===t?64:+t),a.type=function(t){return arguments.length?(e="function"==typeof t?t:qt(t),a):e},a.size=function(e){return arguments.length?(t="function"==typeof e?e:qt(+e),a):t},a.context=function(e){return arguments.length?(r=null==e?null:e,a):r},a}().type(e).size(((e,t,r)=>{if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*Wn;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.tan(n)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(n,a,o)),r=t();if(null!==r)return r})()})):null};Un.registerSymbol=(e,t)=>{Fn["symbol".concat(Cn(e))]=t};var Hn=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,qn=(e,t)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var r=e;if(a(e)&&(r=e.props),"object"!=typeof r&&"function"!=typeof r)return null;var n={};return Object.keys(r).forEach(e=>{Mt(e)&&"function"==typeof r[e]&&(n[e]=t=>r[e](r,t))}),n},Yn=(e,t,r)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return null;var n=null;return Object.keys(e).forEach(a=>{var i=e[a];Mt(a)&&"function"==typeof i&&(n||(n={}),n[a]=((e,t,r)=>n=>(e(t,r,n),null))(i,t,r))}),n};function Gn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Xn(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zn(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gn(Object(r),!0).forEach(function(t){Xn(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gn(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e),n=t;return Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==n[t]&&(e[t]=n[t]),e),r)}var Jn,Qn={},ea={};function ta(){return Jn||(Jn=1,e=ea,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.uniqBy=function(e,t){const r=new Map;for(let n=0;n<e.length;n++){const a=e[n],i=t(a,n,e);r.has(i)||r.set(i,a)}return Array.from(r.values())}),ea;var e}var ra,na={};function aa(){return ra||(ra=1,e=na,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.ary=function(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}),na;var e}var ia,oa={};function la(){return ia||(ia=1,e=oa,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.identity=function(e){return e}),oa;var e}var sa,ca,ua={},da={},fa={};function pa(){return sa||(sa=1,e=fa,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}),fa;var e}function ha(){return ca||(ca=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pa();e.isArrayLike=function(e){return null!=e&&"function"!=typeof e&&t.isLength(e.length)}}(da)),da}var va,ya,ma={};function ga(){return va||(va=1,e=ma,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObjectLike=function(e){return"object"==typeof e&&null!==e}),ma;var e}function ba(){return ya||(ya=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ha(),r=ga();e.isArrayLikeObject=function(e){return r.isObjectLike(e)&&t.isArrayLike(e)}}(ua)),ua}var xa,wa={},Oa={};function Ea(){return xa||(xa=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gn();e.property=function(e){return function(r){return t.get(r,e)}}}(Oa)),Oa}var Sa,Pa={},ja={},ka={},Aa={};function Na(){return Sa||(Sa=1,e=Aa,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObject=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}),Aa;var e}var _a,Ta={};function Ia(){return _a||(_a=1,e=Ta,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isPrimitive=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}),Ta;var e}var Ma,Da,Ca,za={};function La(){return Ma||(Ma=1,e=za,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isEqualsSameValueZero=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}),za;var e}function Ba(){return Da||(Da=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Na(),r=Ia(),n=La();function a(e,l,s,c){if(l===e)return!0;switch(typeof l){case"object":return function(e,t,n,a){if(null==t)return!0;if(Array.isArray(t))return i(e,t,n,a);if(t instanceof Map)return function(e,t,r,n){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const[a,i]of t.entries()){if(!1===r(e.get(a),i,a,e,t,n))return!1}return!0}(e,t,n,a);if(t instanceof Set)return o(e,t,n,a);const l=Object.keys(t);if(null==e||r.isPrimitive(e))return 0===l.length;if(0===l.length)return!0;if(a?.has(t))return a.get(t)===e;a?.set(t,e);try{for(let i=0;i<l.length;i++){const o=l[i];if(!r.isPrimitive(e)&&!(o in e))return!1;if(void 0===t[o]&&void 0!==e[o])return!1;if(null===t[o]&&null!==e[o])return!1;if(!n(e[o],t[o],o,e,t,a))return!1}return!0}finally{a?.delete(t)}}(e,l,s,c);case"function":return Object.keys(l).length>0?a(e,{...l},s,c):n.isEqualsSameValueZero(e,l);default:return t.isObject(e)?"string"!=typeof l||""===l:n.isEqualsSameValueZero(e,l)}}function i(e,t,r,n){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const a=new Set;for(let i=0;i<t.length;i++){const o=t[i];let l=!1;for(let s=0;s<e.length;s++){if(a.has(s))continue;let c=!1;if(r(e[s],o,i,e,t,n)&&(c=!0),c){a.add(s),l=!0;break}}if(!l)return!1}return!0}function o(e,t,r,n){return 0===t.size||e instanceof Set&&i([...e],[...t],r,n)}e.isMatchWith=function e(t,r,n){return"function"!=typeof n?e(t,r,()=>{}):a(t,r,function e(t,r,i,o,l,s){const c=n(t,r,i,o,l,s);return void 0!==c?Boolean(c):a(t,r,e,s)},new Map)},e.isSetMatch=o}(ka)),ka}function Ra(){return Ca||(Ca=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ba();e.isMatch=function(e,r){return t.isMatchWith(e,r,()=>{})}}(ja)),ja}var Va,Ka={},$a={},Fa={};function Wa(){return Va||(Va=1,e=Fa,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}),Fa;var e}var Ua,Ha={};function qa(){return Ua||(Ua=1,e=Ha,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.getTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}),Ha;var e}var Ya,Ga={};function Xa(){return Ya||(Ya=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});e.argumentsTag="[object Arguments]",e.arrayBufferTag="[object ArrayBuffer]",e.arrayTag="[object Array]",e.bigInt64ArrayTag="[object BigInt64Array]",e.bigUint64ArrayTag="[object BigUint64Array]",e.booleanTag="[object Boolean]",e.dataViewTag="[object DataView]",e.dateTag="[object Date]",e.errorTag="[object Error]",e.float32ArrayTag="[object Float32Array]",e.float64ArrayTag="[object Float64Array]",e.functionTag="[object Function]",e.int16ArrayTag="[object Int16Array]",e.int32ArrayTag="[object Int32Array]",e.int8ArrayTag="[object Int8Array]",e.mapTag="[object Map]",e.numberTag="[object Number]",e.objectTag="[object Object]",e.regexpTag="[object RegExp]",e.setTag="[object Set]",e.stringTag="[object String]",e.symbolTag="[object Symbol]",e.uint16ArrayTag="[object Uint16Array]",e.uint32ArrayTag="[object Uint32Array]",e.uint8ArrayTag="[object Uint8Array]",e.uint8ClampedArrayTag="[object Uint8ClampedArray]"}(Ga)),Ga}var Za,Ja,Qa,ei,ti={};function ri(){return Za||(Za=1,e=ti,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),ti;var e}function ni(){return Ja||(Ja=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wa(),r=qa(),n=Xa(),a=Ia(),i=ri();function o(e,t,s,c=new Map,u=void 0){const d=u?.(e,t,s,c);if(void 0!==d)return d;if(a.isPrimitive(e))return e;if(c.has(e))return c.get(e);if(Array.isArray(e)){const t=new Array(e.length);c.set(e,t);for(let r=0;r<e.length;r++)t[r]=o(e[r],r,s,c,u);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;c.set(e,t);for(const[r,n]of e)t.set(r,o(n,r,s,c,u));return t}if(e instanceof Set){const t=new Set;c.set(e,t);for(const r of e)t.add(o(r,void 0,s,c,u));return t}if("undefined"!=typeof Buffer&&Buffer.isBuffer(e))return e.subarray();if(i.isTypedArray(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);c.set(e,t);for(let r=0;r<e.length;r++)t[r]=o(e[r],r,s,c,u);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return c.set(e,t),l(t,e,s,c,u),t}if("undefined"!=typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return c.set(e,t),l(t,e,s,c,u),t}if("undefined"!=typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return c.set(e,t),l(t,e,s,c,u),t}if(e instanceof Error){const t=structuredClone(e);return c.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,l(t,e,s,c,u),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return c.set(e,t),l(t,e,s,c,u),t}if(e instanceof Number){const t=new Number(e.valueOf());return c.set(e,t),l(t,e,s,c,u),t}if(e instanceof String){const t=new String(e.valueOf());return c.set(e,t),l(t,e,s,c,u),t}if("object"==typeof e&&function(e){switch(r.getTag(e)){case n.argumentsTag:case n.arrayTag:case n.arrayBufferTag:case n.dataViewTag:case n.booleanTag:case n.dateTag:case n.float32ArrayTag:case n.float64ArrayTag:case n.int8ArrayTag:case n.int16ArrayTag:case n.int32ArrayTag:case n.mapTag:case n.numberTag:case n.objectTag:case n.regexpTag:case n.setTag:case n.stringTag:case n.symbolTag:case n.uint8ArrayTag:case n.uint8ClampedArrayTag:case n.uint16ArrayTag:case n.uint32ArrayTag:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return c.set(e,t),l(t,e,s,c,u),t}return e}function l(e,r,n=e,a,i){const l=[...Object.keys(r),...t.getSymbols(r)];for(let t=0;t<l.length;t++){const s=l[t],c=Object.getOwnPropertyDescriptor(e,s);(null==c||c.writable)&&(e[s]=o(r[s],s,n,a,i))}}e.cloneDeepWith=function(e,t){return o(e,void 0,e,new Map,t)},e.cloneDeepWithImpl=o,e.copyProperties=l}($a)),$a}function ai(){return Qa||(Qa=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ni();e.cloneDeep=function(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}}(Ka)),Ka}function ii(){return ei||(ei=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ra(),r=ai();e.matches=function(e){return e=r.cloneDeep(e),r=>t.isMatch(r,e)}}(Pa)),Pa}var oi,li,si={},ci={},ui={};function di(){return oi||(oi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ni(),r=qa(),n=Xa();e.cloneDeepWith=function(e,a){return t.cloneDeepWith(e,(i,o,l,s)=>{const c=a?.(i,o,l,s);if(void 0!==c)return c;if("object"==typeof e){if(r.getTag(e)===n.objectTag&&"function"!=typeof e.constructor){const r={};return s.set(e,r),t.copyProperties(r,e,l,s),r}switch(Object.prototype.toString.call(e)){case n.numberTag:case n.stringTag:case n.booleanTag:{const r=new e.constructor(e?.valueOf());return t.copyProperties(r,e),r}case n.argumentsTag:{const r={};return t.copyProperties(r,e),r.length=e.length,r[Symbol.iterator]=e[Symbol.iterator],r}default:return}}})}}(ui)),ui}function fi(){return li||(li=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=di();e.cloneDeep=function(e){return t.cloneDeepWith(e)}}(ci)),ci}var pi,hi={},vi={};function yi(){return pi||(pi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;e.isIndex=function(e,r=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<r;case"symbol":return!1;case"string":return t.test(e)}}}(vi)),vi}var mi,gi,bi,xi,wi,Oi,Ei,Si={};function Pi(){return mi||(mi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qa();e.isArguments=function(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===t.getTag(e)}}(Si)),Si}function ji(){return gi||(gi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=an(),r=yi(),n=Pi(),a=mn();e.has=function(e,i){let o;if(o=Array.isArray(i)?i:"string"==typeof i&&t.isDeepKey(i)&&null==e?.[i]?a.toPath(i):[i],0===o.length)return!1;let l=e;for(let e=0;e<o.length;e++){const t=o[e];if(null==l||!Object.hasOwn(l,t)){if(!((Array.isArray(l)||n.isArguments(l))&&r.isIndex(t)&&t<l.length))return!1}l=l[t]}return!0}}(hi)),hi}function ki(){return bi||(bi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ra(),r=sn(),n=fi(),a=gn(),i=ji();e.matchesProperty=function(e,o){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=r.toKey(e)}return o=n.cloneDeep(o),function(r){const n=a.get(r,e);return void 0===n?i.has(r,e):void 0===o?void 0===n:t.isMatch(n,o)}}}(si)),si}function Ai(){return xi||(xi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=la(),r=Ea(),n=ii(),a=ki();e.iteratee=function(e){if(null==e)return t.identity;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?a.matchesProperty(e[0],e[1]):n.matches(e);case"string":case"symbol":case"number":return r.property(e)}}}(wa)),wa}function Ni(){return wi||(wi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ta(),r=aa(),n=la(),a=ba(),i=Ai();e.uniqBy=function(e,o=n.identity){return a.isArrayLikeObject(e)?t.uniqBy(Array.from(e),r.ary(i.iteratee(o),1)):[]}}(Qn)),Qn}function _i(){return Ei?Oi:(Ei=1,Oi=Ni().uniqBy)}var Ti=Zr(_i());var Ii,Mi={exports:{}},Di={},Ci={exports:{}},zi={};var Li,Bi,Ri,Vi={};
2
2
  /**
3
3
  * @license React
4
4
  * use-sync-external-store-shim.development.js
@@ -7,7 +7,7 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as r from"react";import
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */function ca(){return oa||(oa=1,"production"===process.env.NODE_ENV?na.exports=function(){if(ea)return ia;ea=1;var e=n,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function l(e){var r=e.getSnapshot;e=e.value;try{var n=r();return!t(e,n)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=r({inst:{value:n,getSnapshot:t}}),c=s[0].inst,u=s[1];return a(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),i(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),o(n),n};return ia.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,ia}():na.exports=(aa||(aa=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=n,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=t.useState,a=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(n,u){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=u();if(!c){var f=u();r(d,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var p=(f=i({inst:{value:d,getSnapshot:u}}))[0].inst,h=f[1];return o(function(){p.value=d,p.getSnapshot=u,e(p)&&h({inst:p})},[n,d,u]),a(function(){return e(p)&&h({inst:p}),n(function(){e(p)&&h({inst:p})})},[n]),l(d),d};sa.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),sa)),na.exports}
10
+ */function Ki(){return Bi||(Bi=1,"production"===process.env.NODE_ENV?Ci.exports=function(){if(Ii)return zi;Ii=1;var e=n,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useState,a=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function l(e){var r=e.getSnapshot;e=e.value;try{var n=r();return!t(e,n)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),s=r({inst:{value:n,getSnapshot:t}}),c=s[0].inst,u=s[1];return i(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),o(n),n};return zi.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:s,zi}():Ci.exports=(Li||(Li=1,"production"!==process.env.NODE_ENV&&function(){function e(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(e){return!0}}"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=n,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue,s=!1,c=!1,u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(n,u){s||void 0===t.startTransition||(s=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var d=u();if(!c){var f=u();r(d,f)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),c=!0)}var p=(f=a({inst:{value:d,getSnapshot:u}}))[0].inst,h=f[1];return o(function(){p.value=d,p.getSnapshot=u,e(p)&&h({inst:p})},[n,d,u]),i(function(){return e(p)&&h({inst:p}),n(function(){e(p)&&h({inst:p})})},[n]),l(d),d};Vi.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:u,"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Vi)),Ci.exports}
11
11
  /**
12
12
  * @license React
13
13
  * use-sync-external-store-shim/with-selector.production.js
@@ -16,7 +16,7 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as r from"react";import
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var ua,da,fa={};
19
+ */var $i,Fi,Wi={};
20
20
  /**
21
21
  * @license React
22
22
  * use-sync-external-store-shim/with-selector.development.js
@@ -25,7 +25,7 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as r from"react";import
25
25
  *
26
26
  * This source code is licensed under the MIT license found in the
27
27
  * LICENSE file in the root directory of this source tree.
28
- */var pa=(da||(da=1,"production"===process.env.NODE_ENV?ta.exports=function(){if(la)return ra;la=1;var e=n,t=ca(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,l=e.useMemo,s=e.useDebugValue;return ra.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,i=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,r(i,e))return t;var n=c(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,a=n)}var i,a,o=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,c,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),s(p),p},ra}():ta.exports=(ua||(ua=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=n,t=ca(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,l=e.useMemo,s=e.useDebugValue;fa.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,i=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,r(i,e))return t;var n=c(e);return void 0!==u&&u(t,n)?(i=e,t):(i=e,a=n)}var i,a,o=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,c,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),s(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),fa)),ta.exports),ha=o(null),va=e=>e,ya=()=>{var e=l(ha);return e?e.store.dispatch:va},ma=()=>{},ga=()=>ma,ba=(e,t)=>e===t;function xa(e){var t=l(ha),r=s(()=>t?t=>{if(null!=t)return e(t)}:ma,[t,e]);return pa.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:ga,t?t.store.getState:ma,t?t.store.getState:ma,r,ba)}var wa=(e,t,r)=>{if(1===t.length&&t[0]===r){let t=!1;try{const r={};e(r)===r&&(t=!0)}catch{}if(t){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",{stack:e})}}},Oa=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:a,inputSelectorResultsCopy:o}=e,l=n(()=>({}),...i);if(!(l.apply(null,a)===l.apply(null,o))){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",{arguments:r,firstInputs:a,secondInputs:o,stack:e})}},Ea={inputStabilityCheck:"once",identityFunctionCheck:"once"};var Sa=e=>Array.isArray(e)?e:[e];function Pa(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ja(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Aa="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function ka(){return{s:0,v:void 0,o:null,p:null}}function _a(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let i,a=0;function o(){let t=r;const{length:o}=arguments;for(let e=0,r=o;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=ka(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=ka(),e.set(r,t)):t=n}}const l=t;let s;if(1===t.s)s=t.v;else if(s=e.apply(null,arguments),a++,n){const e=i?.deref?.()??i;null!=e&&n(e,s)&&(s=e,0!==a&&a--);i="object"==typeof s&&null!==s||"function"==typeof s?new Aa(s):s}return l.s=1,l.v=s,s}return o.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Na(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,i=0,a={},o=e.pop();"object"==typeof o&&(a=o,o=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);const l={...r,...a},{memoize:s,memoizeOptions:c=[],argsMemoize:u=_a,argsMemoizeOptions:d=[],devModeChecks:f={}}=l,p=Sa(c),h=Sa(d),v=Pa(e),y=s(function(){return n++,o.apply(null,arguments)},...p);let m=!0;const g=u(function(){i++;const e=ja(v,arguments);if(t=y.apply(null,e),"production"!==process.env.NODE_ENV){const{identityFunctionCheck:r,inputStabilityCheck:n}=((e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...Ea,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:wa},inputStabilityCheck:{shouldRun:"always"===n||"once"===n&&e,run:Oa}}})(m,f);if(r.shouldRun&&r.run(o,e,t),n.shouldRun){const t=ja(v,arguments);n.run({inputSelectorResults:e,inputSelectorResultsCopy:t},{memoize:s,memoizeOptions:p},arguments)}m&&(m=!1)}return t},...h);return Object.assign(g,{resultFunc:o,memoizedResultFunc:y,dependencies:v,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:s,argsMemoize:u})};return Object.assign(n,{withTypes:()=>n}),n}var Ma,Ta=Na(_a),Ia=Object.assign((e,t=Ta)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>Ia}),Da={},Ca={},za={};function La(){return Ma||(Ma=1,function(e){function t(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:e!=e?4:0}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});e.compareValues=(e,r,n)=>{if(e!==r){const i=t(e),a=t(r);if(i===a&&0===i){if(e<r)return"desc"===n?1:-1;if(e>r)return"desc"===n?-1:1}return"desc"===n?a-i:i-a}return 0}}(za)),za}var Ba,Ra,Va,Ka={},$a={};function Fa(){return Ba||(Ba=1,e=$a,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isSymbol=function(e){return"symbol"==typeof e||e instanceof Symbol}),$a;var e}function Wa(){return Ra||(Ra=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fa(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;e.isKey=function(e,i){return!Array.isArray(e)&&(!("number"!=typeof e&&"boolean"!=typeof e&&null!=e&&!t.isSymbol(e))||("string"==typeof e&&(n.test(e)||!r.test(e))||null!=i&&Object.hasOwn(i,e)))}}(Ka)),Ka}function Ua(){return Va||(Va=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=La(),r=Wa(),n=Br();e.orderBy=function(e,i,a,o){if(null==e)return[];a=o?void 0:a,Array.isArray(e)||(e=Object.values(e)),Array.isArray(i)||(i=null==i?[null]:[i]),0===i.length&&(i=[null]),Array.isArray(a)||(a=null==a?[]:[a]),a=a.map(e=>String(e));const l=(e,t)=>{let r=e;for(let e=0;e<t.length&&null!=r;++e)r=r[t[e]];return r},s=i.map(e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||r.isKey(e)?e:{key:e,path:n.toPath(e)})),c=e.map(e=>({original:e,criteria:s.map(t=>((e,t)=>null==t||null==e?t:"object"==typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:l(t,e.path):"function"==typeof e?e(t):Array.isArray(e)?l(t,e):"object"==typeof t?t[e]:t)(t,e))}));return c.slice().sort((e,r)=>{for(let n=0;n<s.length;n++){const i=t.compareValues(e.criteria[n],r.criteria[n],a[n]);if(0!==i)return i}return 0}).map(e=>e.original)}}(Ca)),Ca}var Ha,qa={};function Ya(){return Ha||(Ha=1,e=qa,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.flatten=function(e,t=1){const r=[],n=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){const o=e[a];Array.isArray(o)&&t<n?i(o,t+1):r.push(o)}};return i(e,0),r}),qa;var e}var Ga,Xa,Za,Ja,Qa={};function eo(){return Ga||(Ga=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bi(),r=zn(),n=Zn(),i=ai();e.isIterateeCall=function(e,a,o){return!!n.isObject(o)&&(!!("number"==typeof a&&r.isArrayLike(o)&&t.isIndex(a)&&a<o.length||"string"==typeof a&&a in o)&&i.isEqualsSameValueZero(o[a],e))}}(Qa)),Qa}function to(){return Xa||(Xa=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ua(),r=Ya(),n=eo();e.sortBy=function(e,...i){const a=i.length;return a>1&&n.isIterateeCall(e,i[0],i[1])?i=[]:a>2&&n.isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),t.orderBy(e,r.flatten(i),["asc"])}}(Da)),Da}function ro(){return Ja?Za:(Ja=1,Za=to().sortBy)}var no=br(ro()),io=e=>e.legend.settings;Ta([e=>e.legend.payload,io],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?no(n,r):n});function ao(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var oo=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),lo=()=>Math.random().toString(36).substring(7).split("").join("."),so={INIT:`@@redux/INIT${lo()}`,REPLACE:`@@redux/REPLACE${lo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${lo()}`};function co(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function uo(e){if(void 0===e)return"undefined";if(null===e)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";const r=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function fo(e){let t=typeof e;return"production"!==process.env.NODE_ENV&&(t=uo(e)),t}function po(e,t,r){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?ao(2):`Expected the root reducer to be a function. Instead, received: '${fo(e)}'`);if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?ao(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("production"===process.env.NODE_ENV?ao(1):`Expected the enhancer to be a function. Instead, received: '${fo(r)}'`);return r(po)(e,t)}let n=e,i=t,a=new Map,o=a,l=0,s=!1;function c(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(s)throw new Error("production"===process.env.NODE_ENV?ao(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function d(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?ao(4):`Expected the listener to be a function. Instead, received: '${fo(e)}'`);if(s)throw new Error("production"===process.env.NODE_ENV?ao(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let t=!0;c();const r=l++;return o.set(r,e),function(){if(t){if(s)throw new Error("production"===process.env.NODE_ENV?ao(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");t=!1,c(),o.delete(r),a=null}}}function f(e){if(!co(e))throw new Error("production"===process.env.NODE_ENV?ao(7):`Actions must be plain objects. Instead, the actual type was: '${fo(e)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(void 0===e.type)throw new Error("production"===process.env.NODE_ENV?ao(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if("string"!=typeof e.type)throw new Error("production"===process.env.NODE_ENV?ao(17):`Action "type" property must be a string. Instead, the actual type was: '${fo(e.type)}'. Value was: '${e.type}' (stringified)`);if(s)throw new Error("production"===process.env.NODE_ENV?ao(9):"Reducers may not dispatch actions.");try{s=!0,i=n(i,e)}finally{s=!1}return(a=o).forEach(e=>{e()}),e}f({type:so.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?ao(10):`Expected the nextReducer to be a function. Instead, received: '${fo(e)}`);n=e,f({type:so.REPLACE})},[oo]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?ao(11):`Expected the observer to be an object. Instead, received: '${fo(t)}'`);function r(){const e=t;e.next&&e.next(u())}r();return{unsubscribe:e(r)}},[oo](){return this}}}}}function ho(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function vo(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const i=t[n];"production"!==process.env.NODE_ENV&&void 0===e[i]&&ho(`No reducer provided for key "${i}"`),"function"==typeof e[i]&&(r[i]=e[i])}const n=Object.keys(r);let i,a;"production"!==process.env.NODE_ENV&&(i={});try{!function(e){Object.keys(e).forEach(t=>{const r=e[t];if(void 0===r(void 0,{type:so.INIT}))throw new Error("production"===process.env.NODE_ENV?ao(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(void 0===r(void 0,{type:so.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?ao(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${so.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}(r)}catch(e){a=e}return function(e={},t){if(a)throw a;if("production"!==process.env.NODE_ENV){const n=function(e,t,r,n){const i=Object.keys(t),a=r&&r.type===so.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===i.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!co(e))return`The ${a} has unexpected type of "${fo(e)}". Expected argument to be an object with the following keys: "${i.join('", "')}"`;const o=Object.keys(e).filter(e=>!t.hasOwnProperty(e)&&!n[e]);return o.forEach(e=>{n[e]=!0}),r&&r.type===so.REPLACE?void 0:o.length>0?`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${a}. Expected to find one of the known reducer keys instead: "${i.join('", "')}". Unexpected keys will be ignored.`:void 0}(e,r,t,i);n&&ho(n)}let o=!1;const l={};for(let i=0;i<n.length;i++){const a=n[i],s=r[a],c=e[a],u=s(c,t);if(void 0===u){const e=t&&t.type;throw new Error("production"===process.env.NODE_ENV?ao(14):`When called with an action of type ${e?`"${String(e)}"`:"(unknown type)"}, the slice reducer for key "${a}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}l[a]=u,o=o||u!==c}return o=o||n.length!==Object.keys(e).length,o?l:e}}function yo(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function mo(e){return co(e)&&"type"in e&&"string"==typeof e.type}var go=Symbol.for("immer-nothing"),bo=Symbol.for("immer-draftable"),xo=Symbol.for("immer-state"),wo="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Oo(e,...t){if("production"!==process.env.NODE_ENV){const r=wo[e],n=Uo(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Eo=Object,So=Eo.getPrototypeOf,Po="constructor",jo="prototype",Ao="configurable",ko="enumerable",_o="writable",No="value",Mo=e=>!!e&&!!e[xo];function To(e){return!!e&&(Co(e)||Ko(e)||!!e[bo]||!!e[Po]?.[bo]||$o(e)||Fo(e))}var Io=Eo[jo][Po].toString(),Do=new WeakMap;function Co(e){if(!e||!Wo(e))return!1;const t=So(e);if(null===t||t===Eo[jo])return!0;const r=Eo.hasOwnProperty.call(t,Po)&&t[Po];if(r===Object)return!0;if(!Uo(r))return!1;let n=Do.get(r);return void 0===n&&(n=Function.toString.call(r),Do.set(r,n)),n===Io}function zo(e,t,r=!0){if(0===Lo(e)){(r?Reflect.ownKeys(e):Eo.keys(e)).forEach(r=>{t(r,e[r],e)})}else e.forEach((r,n)=>t(n,r,e))}function Lo(e){const t=e[xo];return t?t.type_:Ko(e)?1:$o(e)?2:Fo(e)?3:0}var Bo=(e,t,r=Lo(e))=>2===r?e.has(t):Eo[jo].hasOwnProperty.call(e,t),Ro=(e,t,r=Lo(e))=>2===r?e.get(t):e[t],Vo=(e,t,r,n=Lo(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r};var Ko=Array.isArray,$o=e=>e instanceof Map,Fo=e=>e instanceof Set,Wo=e=>"object"==typeof e,Uo=e=>"function"==typeof e,Ho=e=>"boolean"==typeof e;var qo=e=>e.copy_||e.base_,Yo=e=>e.modified_?e.copy_:e.base_;function Go(e,t){if($o(e))return new Map(e);if(Fo(e))return new Set(e);if(Ko(e))return Array[jo].slice.call(e);const r=Co(e);if(!0===t||"class_only"===t&&!r){const t=Eo.getOwnPropertyDescriptors(e);delete t[xo];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const i=r[n],a=t[i];!1===a[_o]&&(a[_o]=!0,a[Ao]=!0),(a.get||a.set)&&(t[i]={[Ao]:!0,[_o]:!0,[ko]:a[ko],[No]:e[i]})}return Eo.create(So(e),t)}{const t=So(e);if(null!==t&&r)return{...e};const n=Eo.create(t);return Eo.assign(n,e)}}function Xo(e,t=!1){return Jo(e)||Mo(e)||!To(e)||(Lo(e)>1&&Eo.defineProperties(e,{set:Zo,add:Zo,clear:Zo,delete:Zo}),Eo.freeze(e),t&&zo(e,(e,t)=>{Xo(t,!0)},!1)),e}var Zo={[No]:function(){Oo(2)}};function Jo(e){return null===e||!Wo(e)||Eo.isFrozen(e)}var Qo="MapSet",el="Patches",tl="ArrayMethods",rl={};function nl(e){const t=rl[e];return t||Oo(0,e),t}var il,al=e=>!!rl[e],ol=()=>il;function ll(e,t){t&&(e.patchPlugin_=nl(el),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function sl(e){cl(e),e.drafts_.forEach(dl),e.drafts_=null}function cl(e){e===il&&(il=e.parent_)}var ul=e=>il={drafts_:[],parent_:il,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:al(Qo)?nl(Qo):void 0,arrayMethodsPlugin_:al(tl)?nl(tl):void 0};function dl(e){const t=e[xo];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function fl(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(void 0!==e&&e!==r){r[xo].modified_&&(sl(t),Oo(4)),To(e)&&(e=pl(t,e));const{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[xo].base_,e,t)}else e=pl(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Xo(t,r)}(t,e,!0),sl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==go?e:void 0}function pl(e,t){if(Jo(t))return t;const r=t[xo];if(!r){return bl(t,e.handledSet_,e)}if(!vl(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:t}=r;if(t)for(;t.length>0;){t.pop()(e)}gl(r,e)}return r.copy_}function hl(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var vl=(e,t)=>e.scope_===t,yl=[];function ml(e,t,r,n){const i=qo(e),a=e.type_;if(void 0!==n){if(Ro(i,n,a)===t)return void Vo(i,n,r,a)}if(!e.draftLocations_){const t=e.draftLocations_=new Map;zo(i,(e,r)=>{if(Mo(r)){const n=t.get(r)||[];n.push(e),t.set(r,n)}})}const o=e.draftLocations_.get(t)??yl;for(const e of o)Vo(i,e,r,a)}function gl(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const n=r.getPath(e);n&&r.generatePatches_(e,n,t)}hl(e)}}function bl(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||Mo(e)||t.has(e)||!To(e)||Jo(e)||(t.add(e),zo(e,(n,i)=>{if(Mo(i)){const t=i[xo];if(vl(t,r)){const r=Yo(t);Vo(e,n,r,e.type_),hl(t)}}else To(i)&&bl(i,t,r)})),e}var xl={get(e,t){if(t===xo)return e;let r=e.scope_.arrayMethodsPlugin_;const n=1===e.type_&&"string"==typeof t;if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const i=qo(e);if(!Bo(i,t,e.type_))return function(e,t,r){const n=El(t,r);return n?No in n?n[No]:n.get?.call(e.draft_):void 0}(e,i,t);const a=i[t];if(e.finalized_||!To(a))return a;if(n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&function(e){const t=+e;return Number.isInteger(t)&&String(t)===e}(t))return a;if(a===Ol(e.base_,t)){Pl(e);const r=1===e.type_?+t:t,n=jl(e.scope_,a,e,r);return e.copy_[r]=n}return a},has:(e,t)=>t in qo(e),ownKeys:e=>Reflect.ownKeys(qo(e)),set(e,t,r){const n=El(qo(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=Ol(qo(e),t),i=n?.[xo];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,n)&&(void 0!==r||Bo(e.base_,t,e.type_)))return!0;Pl(e),Sl(e)}return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),function(e,t,r){const{scope_:n}=e;if(Mo(r)){const i=r[xo];vl(i,n)&&i.callbacks_.push(function(){Pl(e);const n=Yo(i);ml(e,r,n,t)})}else To(r)&&e.callbacks_.push(function(){const i=qo(e);3===e.type_?i.has(r)&&bl(r,n.handledSet_,n):Ro(i,t,e.type_)===r&&n.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&bl(Ro(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r)),!0},deleteProperty:(e,t)=>(Pl(e),void 0!==Ol(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),Sl(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=qo(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[_o]:!0,[Ao]:1!==e.type_||"length"!==t,[ko]:n[ko],[No]:r[t]}:n},defineProperty(){Oo(11)},getPrototypeOf:e=>So(e.base_),setPrototypeOf(){Oo(12)}},wl={};for(let e in xl){let t=xl[e];wl[e]=function(){const e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function Ol(e,t){const r=e[xo];return(r?qo(r):e)[t]}function El(e,t){if(!(t in e))return;let r=So(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=So(r)}}function Sl(e){e.modified_||(e.modified_=!0,e.parent_&&Sl(e.parent_))}function Pl(e){e.copy_||(e.assigned_=new Map,e.copy_=Go(e.base_,e.scope_.immer_.useStrictShallowCopy_))}wl.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&Oo(13),wl.set.call(this,e,t,void 0)},wl.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&Oo(14),xl.set.call(this,e[0],t,r,e[0])};function jl(e,t,r,n){const[i,a]=$o(t)?nl(Qo).proxyMap_(t,r):Fo(t)?nl(Qo).proxySet_(t,r):function(e,t){const r=Ko(e),n={type_:r?1:0,scope_:t?t.scope_:ol(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let i=n,a=xl;r&&(i=[n],a=wl);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,[l,n]}(t,r);return(r?.scope_??ol()).drafts_.push(i),a.callbacks_=r?.callbacks_??[],a.key_=n,r&&void 0!==n?function(e,t,r){e.callbacks_.push(function(n){const i=t;if(!i||!vl(i,n))return;n.mapSetPlugin_?.fixSetContents(i);const a=Yo(i);ml(e,i.draft_??i,a,r),gl(i,n)})}(r,a,n):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);const{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Al(e){return Mo(e)||Oo(10,e),kl(e)}function kl(e){if(!To(e)||Jo(e))return e;const t=e[xo];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Go(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Go(e,!0);return zo(r,(e,t)=>{Vo(r,e,kl(t))},n),t&&(t.finalized_=!1),r}var _l=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{if(Uo(e)&&!Uo(t)){const r=t;t=e;const n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}let n;if(Uo(t)||Oo(6),void 0===r||Uo(r)||Oo(7),To(e)){const i=ul(this),a=jl(i,e,void 0);let o=!0;try{n=t(a),o=!1}finally{o?sl(i):cl(i)}return ll(i,r),fl(n,i)}if(!e||!Wo(e)){if(n=t(e),void 0===n&&(n=e),n===go&&(n=void 0),this.autoFreeze_&&Xo(n,!0),r){const t=[],i=[];nl(el).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:i}),r(t,i)}return n}Oo(1,e)},this.produceWithPatches=(e,t)=>{if(Uo(e))return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},Ho(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ho(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ho(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){To(e)||Oo(8),Mo(e)&&(e=Al(e));const t=ul(this),r=jl(t,e,void 0);return r[xo].isManual_=!0,cl(t),r}finishDraft(e,t){const r=e&&e[xo];r&&r.isManual_||Oo(9);const{scope_:n}=r;return ll(n,t),fl(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=nl(el).applyPatches_;return Mo(e)?n(e,t):this.produce(e,e=>n(e,t))}},Nl=_l.produce;function Ml(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var Tl=Ml(),Il=Ml,Dl="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?yo:yo.apply(null,arguments)};function Cl(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error("production"===process.env.NODE_ENV?Vs(0):"prepareAction did not return an object");return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>mo(t)&&t.type===e,r}function zl(e){return"function"==typeof e&&"type"in e&&((t=e)&&"function"==typeof t.match);var t}function Ll(e,t){let r=0;return{measureTime(e){const t=Date.now();try{return e()}finally{const e=Date.now();r+=e-t}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.`)}}}var Bl=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Rl(e){return To(e)?Nl(e,()=>{}):e}function Vl(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function Kl(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function $l(e,t,r){const n=Fl(e,t,r);return{detectMutations:()=>Wl(e,t,n,r)}}function Fl(e,t=[],r,n="",i=new Set){const a={value:r};if(!e(r)&&!i.has(r)){i.add(r),a.children={};const o=t.length>0;for(const i in r){const l=n?n+"."+i:i;if(o){if(t.some(e=>e instanceof RegExp?e.test(l):l===e))continue}a.children[i]=Fl(e,t,r[i],l)}}return a}function Wl(e,t=[],r,n,i=!1,a=""){const o=r?r.value:void 0,l=o===n;if(i&&!l&&!Number.isNaN(n))return{wasMutated:!0,path:a};if(e(o)||e(n))return{wasMutated:!1};const s={};for(let e in r.children)s[e]=!0;for(let e in n)s[e]=!0;const c=t.length>0;for(let i in s){const o=a?a+"."+i:i;if(c){if(t.some(e=>e instanceof RegExp?e.test(o):o===e))continue}const s=Wl(e,t,r.children[i],n[i],l,o);if(s.wasMutated)return s}return{wasMutated:!1}}function Ul(e){const t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||co(e)}function Hl(e,t="",r=Ul,n,i=[],a){let o;if(!r(e))return{keyPath:t||"<root>",value:e};if("object"!=typeof e||null===e)return!1;if(a?.has(e))return!1;const l=null!=n?n(e):Object.entries(e),s=i.length>0;for(const[e,c]of l){const l=t?t+"."+e:e;if(s){if(i.some(e=>e instanceof RegExp?e.test(l):l===e))continue}if(!r(c))return{keyPath:l,value:c};if("object"==typeof c&&(o=Hl(c,l,r,n,i,a),o))return o}return a&&ql(e)&&a.add(e),!1}function ql(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if("object"==typeof t&&null!==t&&!ql(t))return!1;return!0}function Yl(e){return"boolean"==typeof e}var Gl=()=>function(e){const{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{};let a=new Bl;if(t&&(Yl(t)?a.push(Tl):a.push(Il(t.extraArgument))),"production"!==process.env.NODE_ENV){if(r){let e={};Yl(r)||(e=r),a.unshift(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);{let t=function(e,t,n,i){return JSON.stringify(e,r(t,i),n)},r=function(e,t){let r=[],n=[];return t||(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(i,a){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,i):n.push(i),~r.indexOf(a)&&(a=t.call(this,i,a))}else r.push(a);return null==e?a:e.call(this,i,a)}},{isImmutable:n=Kl,ignoredPaths:i,warnAfter:a=32}=e;const o=$l.bind(null,n,i);return({getState:e})=>{let r,n=e(),i=o(n);return l=>s=>{const c=Ll(a,"ImmutableStateInvariantMiddleware");c.measureTime(()=>{if(n=e(),r=i.detectMutations(),i=o(n),r.wasMutated)throw new Error("production"===process.env.NODE_ENV?Vs(19):`A state mutation was detected between dispatches, in the path '${r.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const u=l(s);return c.measureTime(()=>{if(n=e(),r=i.detectMutations(),i=o(n),r.wasMutated)throw new Error("production"===process.env.NODE_ENV?Vs(20):`A state mutation was detected inside a dispatch, in the path: ${r.path||""}. Take a look at the reducer(s) handling the action ${t(s)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),c.warnIfExceeded(),u}}}}(e))}if(n){let e={};Yl(n)||(e=n),a.push(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);{const{isSerializable:t=Ul,getEntries:r,ignoredActions:n=[],ignoredActionPaths:i=["meta.arg","meta.baseQueryMeta"],ignoredPaths:a=[],warnAfter:o=32,ignoreState:l=!1,ignoreActions:s=!1,disableCache:c=!1}=e,u=!c&&WeakSet?new WeakSet:void 0;return e=>c=>d=>{if(!mo(d))return c(d);const f=c(d),p=Ll(o,"SerializableStateInvariantMiddleware");return s||n.length&&-1!==n.indexOf(d.type)||p.measureTime(()=>{const e=Hl(d,"",t,r,i,u);if(e){const{keyPath:t,value:r}=e;console.error(`A non-serializable value was detected in an action, in the path: \`${t}\`. Value:`,r,"\nTake a look at the logic that dispatched this action: ",d,"\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)","\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)")}}),l||(p.measureTime(()=>{const n=Hl(e.getState(),"",t,r,a,u);if(n){const{keyPath:e,value:t}=n;console.error(`A non-serializable value was detected in the state, in the path: \`${e}\`. Value:`,t,`\nTake a look at the reducer(s) handling this action type: ${d.type}.\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),p.warnIfExceeded()),f}}}(e))}if(i){let e={};Yl(i)||(e=i),a.unshift(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);const{isActionCreator:t=zl}=e;return()=>e=>r=>(t(r)&&console.warn(function(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}(r.type)),e(r))}(e))}}return a},Xl="RTK_autoBatch",Zl=()=>e=>({payload:e,meta:{[Xl]:!0}}),Jl=e=>t=>{setTimeout(t,e)},Ql=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const l=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Jl(10):"callback"===e.type?e.queueNotification:Jl(e.timeout),c=()=>{o=!1,a&&(a=!1,l.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>i&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return i=!e?.meta?.[Xl],a=!i,a&&(o||(o=!0,s(c))),n.dispatch(e)}finally{i=!0}}})};function es(e){const t=Gl(),{reducer:r,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o,enhancers:l}=e||{};let s,c;if("function"==typeof r)s=r;else{if(!co(r))throw new Error("production"===process.env.NODE_ENV?Vs(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");s=vo(r)}if("production"!==process.env.NODE_ENV&&n&&"function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?Vs(2):"`middleware` field must be a callback");if("function"==typeof n){if(c=n(t),"production"!==process.env.NODE_ENV&&!Array.isArray(c))throw new Error("production"===process.env.NODE_ENV?Vs(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if("production"!==process.env.NODE_ENV&&c.some(e=>"function"!=typeof e))throw new Error("production"===process.env.NODE_ENV?Vs(4):"each middleware provided to configureStore must be a function");if("production"!==process.env.NODE_ENV&&a){let e=new Set;c.forEach(t=>{if(e.has(t))throw new Error("production"===process.env.NODE_ENV?Vs(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");e.add(t)})}let u=yo;i&&(u=Dl({trace:"production"!==process.env.NODE_ENV,..."object"==typeof i&&i}));const d=function(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error("production"===process.env.NODE_ENV?ao(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map(e=>e(o));return a=yo(...l)(i.dispatch),{...i,dispatch:a}}}(...c),f=(e=>function(t){const{autoBatch:r=!0}=t??{};let n=new Bl(e);return r&&n.push(Ql("object"==typeof r?r:void 0)),n})(d);if("production"!==process.env.NODE_ENV&&l&&"function"!=typeof l)throw new Error("production"===process.env.NODE_ENV?Vs(5):"`enhancers` field must be a callback");let p="function"==typeof l?l(f):f();if("production"!==process.env.NODE_ENV&&!Array.isArray(p))throw new Error("production"===process.env.NODE_ENV?Vs(6):"`enhancers` callback must return an array");if("production"!==process.env.NODE_ENV&&p.some(e=>"function"!=typeof e))throw new Error("production"===process.env.NODE_ENV?Vs(7):"each enhancer provided to configureStore must be a function");"production"!==process.env.NODE_ENV&&c.length&&!p.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");return po(s,o,u(...p))}function ts(e){const t={},r=[];let n;const i={addCase(e,a){if("production"!==process.env.NODE_ENV){if(r.length>0)throw new Error("production"===process.env.NODE_ENV?Vs(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("production"===process.env.NODE_ENV?Vs(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const o="string"==typeof e?e:e.type;if(!o)throw new Error("production"===process.env.NODE_ENV?Vs(28):"`builder.addCase` cannot be called with an empty action type");if(o in t)throw new Error("production"===process.env.NODE_ENV?Vs(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${o}'`);return t[o]=a,i},addAsyncThunk(e,a){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?Vs(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return a.pending&&(t[e.pending.type]=a.pending),a.rejected&&(t[e.rejected.type]=a.rejected),a.fulfilled&&(t[e.fulfilled.type]=a.fulfilled),a.settled&&r.push({matcher:e.settled,reducer:a.settled}),i},addMatcher(e,t){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?Vs(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:e,reducer:t}),i},addDefaultCase(e){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?Vs(31):"`builder.addDefaultCase` can only be called once");return n=e,i}};return e(i),[t,r,n]}var rs=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},ns=Symbol.for("rtk-slice-createasyncthunk");function is(e,t){return`${e}/${t}`}function as({creators:e}={}){const t=e?.asyncThunk?.[ns];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error("production"===process.env.NODE_ENV?Vs(11):"`name` is a required option for createSlice");"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&void 0===e.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const i=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error("production"===process.env.NODE_ENV?Vs(12):"`context.addCase` cannot be called with an empty action type");if(r in o.sliceCaseReducersByType)throw new Error("production"===process.env.NODE_ENV?Vs(13):"`context.addCase` cannot be called with two reducers for the same action type: "+r);return o.sliceCaseReducersByType[r]=t,l},addMatcher:(e,t)=>(o.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(o.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(o.sliceCaseReducersByName[e]=t,l)};function s(){if("production"!==process.env.NODE_ENV&&"object"==typeof e.extraReducers)throw new Error("production"===process.env.NODE_ENV?Vs(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[t={},r=[],n]="function"==typeof e.extraReducers?ts(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return function(e,t){if("production"!==process.env.NODE_ENV&&"object"==typeof t)throw new Error("production"===process.env.NODE_ENV?Vs(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let r,[n,i,a]=ts(t);if(function(e){return"function"==typeof e}(e))r=()=>Rl(e());else{const t=Rl(e);r=()=>t}function o(e=r(),t){let o=[n[t.type],...i.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===o.filter(e=>!!e).length&&(o=[a]),o.reduce((e,r)=>{if(r){if(Mo(e)){const n=r(e,t);return void 0===n?e:n}if(To(e))return Nl(e,e=>r(e,t));{const n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return o.getInitialState=r,o}(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}a.forEach(n=>{const a=i[n],o={reducerName:n,type:is(r,n),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(a)?function({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(n))throw new Error("production"===process.env.NODE_ENV?Vs(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Cl(e,o):Cl(e))}(o,a,l):function({type:e,reducerName:t},r,n,i){if(!i)throw new Error("production"===process.env.NODE_ENV?Vs(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:a,fulfilled:o,pending:l,rejected:s,settled:c,options:u}=r,d=i(e,a,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o);l&&n.addCase(d.pending,l);s&&n.addCase(d.rejected,s);c&&n.addMatcher(d.settled,c);n.exposeCaseReducer(t,{fulfilled:o||ss,pending:l||ss,rejected:s||ss,settled:c||ss})}(o,a,l,t)});const c=e=>e,u=new Map,d=new WeakMap;let f;function p(e,t){return f||(f=s()),f(e,t)}function h(){return f||(f=s()),f.getInitialState()}function v(t,r=!1){function n(e){let i=e[t];if(void 0===i)if(r)i=Vl(d,n,h);else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?Vs(15):"selectSlice returned undefined for an uninjected slice reducer");return i}function i(t=c){const n=Vl(u,r,()=>new WeakMap);return Vl(n,t,()=>{const n={};for(const[i,a]of Object.entries(e.selectors??{}))n[i]=os(a,t,()=>Vl(d,t,h),r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}const y={name:r,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:h,...v(n),injectInto(e,{reducerPath:t,...r}={}){const i=t??n;return e.inject({reducerPath:i,reducer:p},r),{...y,...v(i,!0)}}};return y}}function os(e,t,r,n){function i(i,...a){let o=t(i);if(void 0===o)if(n)o=r();else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?Vs(16):"selectState returned undefined for an uninjected slice reducer");return e(o,...a)}return i.unwrapped=e,i}var ls=as();function ss(){}var cs="listener",us="completed",ds="cancelled",fs=`task-${ds}`,ps=`task-${us}`,hs=`${cs}-${ds}`,vs=`${cs}-${us}`,ys=class{constructor(e){this.code=e,this.message=`task ${ds} (reason: ${e})`}name="TaskAbortError";message},ms=(e,t)=>{if("function"!=typeof e)throw new TypeError("production"===process.env.NODE_ENV?Vs(32):`${t} is not a function`)},gs=()=>{},bs=(e,t=gs)=>(e.catch(t),e),xs=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),ws=e=>{if(e.aborted)throw new ys(e.reason)};function Os(e,t){let r=gs;return new Promise((n,i)=>{const a=()=>i(new ys(e.reason));e.aborted?a():(r=xs(e,a),t.finally(()=>r()).then(n,i))}).finally(()=>{r=gs})}var Es=e=>t=>bs(Os(e,t).then(t=>(ws(e),t))),Ss=e=>{const t=Es(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:Ps}=Object,js={},As="listenerMiddleware",ks=(e,t)=>(r,n)=>{ms(r,"taskExecutor");const i=new AbortController;var a;a=i,xs(e,()=>a.abort(e.reason));const o=(async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(e){return{status:e instanceof ys?"cancelled":"rejected",error:e}}finally{t?.()}})(async()=>{ws(e),ws(i.signal);const t=await r({pause:Es(i.signal),delay:Ss(i.signal),signal:i.signal});return ws(i.signal),t},()=>i.abort(ps));return n?.autoJoin&&t.push(o.catch(gs)),{result:Es(e)(o),cancel(){i.abort(fs)}}},_s=(e,t)=>(r,n)=>bs((async(r,n)=>{ws(t);let i=()=>{};const a=[new Promise((t,n)=>{let a=e({predicate:r,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});i=()=>{a(),n()}})];null!=n&&a.push(new Promise(e=>setTimeout(e,n,null)));try{const e=await Os(t,Promise.race(a));return ws(t),e}finally{i()}})(r,n)),Ns=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Cl(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error("production"===process.env.NODE_ENV?Vs(21):"Creating or removing a listener requires one of the known fields for matching an action");return ms(a,"options.listener"),{predicate:i,type:t,effect:a}},Ms=Ps(e=>{const{type:t,predicate:r,effect:n}=Ns(e);return{id:rs(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error("production"===process.env.NODE_ENV?Vs(22):"Unsubscribe not initialized")}}},{withTypes:()=>Ms}),Ts=(e,t)=>{const{type:r,effect:n,predicate:i}=Ns(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===i)&&e.effect===n)},Is=e=>{e.pending.forEach(e=>{e.abort(hs)})},Ds=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},Cs=Ps(Cl(`${As}/add`),{withTypes:()=>Cs}),zs=Cl(`${As}/removeAll`),Ls=Ps(Cl(`${As}/remove`),{withTypes:()=>Ls}),Bs=(...e)=>{console.error(`${As}/error`,...e)},Rs=(e={})=>{const t=new Map,r=new Map,{extra:n,onError:i=Bs}=e;ms(i,"onError");const a=e=>(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Is(e)}))(Ts(t,e)??Ms(e));Ps(a,{withTypes:()=>a});const o=e=>{const r=Ts(t,e);return r&&(r.unsubscribe(),e.cancelActive&&Is(r)),!!r};Ps(o,{withTypes:()=>o});const l=async(e,o,l,s)=>{const c=new AbortController,u=_s(a,c.signal),d=[];try{e.pending.add(c),(e=>{const t=r.get(e)??0;r.set(e,t+1)})(e),await Promise.resolve(e.effect(o,Ps({},l,{getOriginalState:s,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:Ss(c.signal),pause:Es(c.signal),extra:n,signal:c.signal,fork:ks(c.signal,d),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==c&&(e.abort(hs),r.delete(e))})},cancel:()=>{c.abort(hs),e.pending.delete(c)},throwIfCancelled:()=>{ws(c.signal)}})))}catch(e){e instanceof ys||Ds(i,e,{raisedBy:"effect"})}finally{await Promise.all(d),c.abort(vs),(e=>{const t=r.get(e)??1;1===t?r.delete(e):r.set(e,t-1)})(e),e.pending.delete(c)}},s=((e,t)=>()=>{for(const e of t.keys())Is(e);e.clear()})(t,r);return{middleware:e=>r=>n=>{if(!mo(n))return r(n);if(Cs.match(n))return a(n.payload);if(zs.match(n))return void s();if(Ls.match(n))return o(n.payload);let c=e.getState();const u=()=>{if(c===js)throw new Error("production"===process.env.NODE_ENV?Vs(23):`${As}: getOriginalState can only be called synchronously`);return c};let d;try{if(d=r(n),t.size>0){const r=e.getState(),a=Array.from(t.values());for(const t of a){let a=!1;try{a=t.predicate(n,r,c)}catch(e){a=!1,Ds(i,e,{raisedBy:"predicate"})}a&&l(t,n,e,u)}}}finally{c=js}return d},startListening:a,stopListening:o,clearListeners:s}};function Vs(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ks=ls({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=null!==(r=t.payload.top)&&void 0!==r?r:0,e.margin.right=null!==(n=t.payload.right)&&void 0!==n?n:0,e.margin.bottom=null!==(i=t.payload.bottom)&&void 0!==i?i:0,e.margin.left=null!==(a=t.payload.left)&&void 0!==a?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:$s,setLayout:Fs,setChartSize:Ws,setScale:Us}=Ks.actions,Hs=Ks.reducer;function qs(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Ys(e){return Number.isFinite(e)}function Gs(e){return"number"==typeof e&&e>0&&Number.isFinite(e)}function Xs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Zs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Xs(Object(r),!0).forEach(function(t){Js(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Js(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qs(e,t,r){return tn(e)||tn(t)?r:Yr(t)?Kr(e,t,r):"function"==typeof t?t(e):r}var ec=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,tc=(e,t,r,n)=>{if(n)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===r&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(r),o},rc=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:l,isCategorical:s,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:f,axisType:p}=e;if(!o)return null;var h="scaleBand"===l&&o.bandwidth?o.bandwidth()/2:2,v="category"===i&&o.bandwidth?o.bandwidth()/h:0;return v="angleAxis"===p&&a&&a.length>=2?2*Wr(a[0]-a[1])*v:v,d||f?(d||f||[]).map((e,t)=>{var r=n?n.indexOf(e):e,i=o.map(r);return Ys(i)?{coordinate:i+v,value:e,offset:v,index:t}:null}).filter(nn):s&&c?c.map((e,t)=>{var r=o.map(e);return Ys(r)?{coordinate:r+v,value:e,index:t,offset:v}:null}).filter(nn):o.ticks&&null!=u?o.ticks(u).map((e,t)=>{var r=o.map(e);return Ys(r)?{coordinate:r+v,value:e,index:t,offset:v}:null}).filter(nn):o.domain().map((e,t)=>{var r=o.map(e);return Ys(r)?{coordinate:r+v,value:n?n[e]:e,index:t,offset:v}:null}).filter(nn)},nc={sign:e=>{var t,r=e.length;if(!(r<=0)){var n=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==n||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,l=0;l<r;++l){var s=e[l],c=null==s?void 0:s[i];if(null!=c){var u=c[1],d=c[0],f=Ur(u)?d:u;f>=0?(c[0]=a,a+=f,c[1]=a):(c[0]=o,o+=f,c[1]=o)}}}},expand:function(e,t){if((n=e.length)>0){for(var r,n,i,a=0,o=e[0].length;a<o;++a){for(i=r=0;r<n;++r)i+=e[r][a][1]||0;if(i)for(r=0;r<n;++r)e[r][a][1]/=i}vr(e,t)}},none:vr,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,i=e[t[0]],a=i.length;n<a;++n){for(var o=0,l=0;o<r;++o)l+=e[o][n][1]||0;i[n][1]+=i[n][0]=-l/2}vr(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,i,a=0,o=1;o<n;++o){for(var l=0,s=0,c=0;l<i;++l){for(var u=e[t[l]],d=u[o][1]||0,f=(d-(u[o-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];f+=(h[o][1]||0)-(h[o-1][1]||0)}s+=d,c+=f*d}r[o-1][1]+=r[o-1][0]=a,s&&(a-=c/s)}r[o-1][1]+=r[o-1][0]=a,vr(e,t)}},positive:e=>{var t,r=e.length;if(!(r<=0)){var n=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==n||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var l=e[o],s=null==l?void 0:l[i];if(null!=s){var c=Ur(s[1])?s[0]:s[1];c>=0?(s[0]=a,a+=c,s[1]=a):(s[0]=0,s[1]=0)}}}}},ic=(e,t,r)=>{var n,i=null!==(n=nc[r])&&void 0!==n?n:vr,a=function(){var e=vt([]),t=yr,r=vr,n=mr;function i(i){var a,o,l=Array.from(e.apply(this,arguments),gr),s=l.length,c=-1;for(const e of i)for(a=0,++c;a<s;++a)(l[a][c]=[0,+n(e,l[a].key,c,i)]).data=e;for(a=0,o=kt(t(l));a<s;++a)l[o[a]].index=a;return r(l,o),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:vt(Array.from(t)),i):e},i.value=function(e){return arguments.length?(n="function"==typeof e?e:vt(+e),i):n},i.order=function(e){return arguments.length?(t=null==e?yr:"function"==typeof e?e:vt(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(r=null==e?vr:e,i):r},i}().keys(t).value((e,t)=>Number(Qs(e,t,0))).order(yr).offset(i),o=a(e);return o.forEach((r,n)=>{r.forEach((r,i)=>{var a=Qs(e[i],t[n],0);Array.isArray(a)&&2===a.length&&qr(a[0])&&qr(a[1])&&(r[0]=a[0],r[1]=a[1])})}),o};function ac(e){return null==e?void 0:String(e)}function oc(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!tn(i[t.dataKey])){var l=en(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return null!=r&&r[a]?r[a].coordinate+n/2:null}var s=Qs(i,tn(o)?t.dataKey:o),c=t.scale.map(s);return qr(c)?c:null}var lc=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if("category"===t.type)return r[o]?r[o].coordinate+n:null;var l=Qs(a,t.dataKey,t.scale.domain()[o]);if(tn(l))return null;var s=t.scale.map(l);return qr(s)?s-i/2+n:null},sc=(e,t,r)=>{var n;if(null!=e)return n=Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,l=o.reduce((e,n)=>{var i,a=qs(n,t,r),o=(i=a.flat(2).filter(qr),[Math.min(...i),Math.max(...i)]);return Ys(o[0])&&Ys(o[1])?[Math.min(e[0],o[0]),Math.max(e[1],o[1])]:e},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]),[n[0]===1/0?0:n[0],n[1]===-1/0?0:n[1]]},cc=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uc=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,dc=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=no(t,e=>e.coordinate),a=1/0,o=1,l=i.length;o<l;o++){var s=i[o],c=i[o-1];a=Math.min(((null==s?void 0:s.coordinate)||0)-((null==c?void 0:c.coordinate)||0),a)}return a===1/0?0:a}return r?void 0:0};function fc(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Zs(Zs({},t),{},{dataKey:r,payload:n,value:i,name:a})}function pc(e,t){return e?String(e):"string"==typeof t?t:void 0}var hc=e=>e.layout.width,vc=e=>e.layout.height,yc=e=>e.layout.scale,mc=e=>e.layout.margin,gc=Ta(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),bc=Ta(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),xc="data-recharts-item-id";function wc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Oc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wc(Object(r),!0).forEach(function(t){Ec(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ec(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Sc,Pc,jc,Ac,kc,_c=Ta([hc,vc,mc,e=>e.brush.height,function(e){return bc(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return bc(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return gc(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return gc(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},io,e=>e.legend.size],(e,t,r,n,i,a,o,l,s,c)=>{var u={left:(r.left||0)+i,right:(r.right||0)+a},d=Oc(Oc({},{top:(r.top||0)+o,bottom:(r.bottom||0)+l}),u),f=d.bottom;d.bottom+=n,d=((e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:l}=t;if(("vertical"===l||"horizontal"===l&&"middle"===o)&&"center"!==a&&qr(e[a]))return Zs(Zs({},e),{},{[a]:e[a]+(n||0)});if(("horizontal"===l||"vertical"===l&&"center"===a)&&"middle"!==o&&qr(e[o]))return Zs(Zs({},e),{},{[o]:e[o]+(i||0)})}return e})(d,s,c);var p=e-d.left-d.right,h=t-d.top-d.bottom;return Oc(Oc({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(h,0)})}),Nc=Ta(_c,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Mc=Ta(hc,vc,(e,t)=>({x:0,y:0,width:e,height:t})),Tc=o(null),Ic=()=>null!=l(Tc),Dc=e=>e.brush,Cc=Ta([Dc,_c,mc],(e,t,r)=>({height:e.height,x:qr(e.x)?e.x:t.left,y:qr(e.y)?e.y:t.top+t.height+t.brushBottom-((null==r?void 0:r.bottom)||0),width:qr(e.width)?e.width:t.width})),zc={},Lc={},Bc={};function Rc(){return Sc||(Sc=1,e=Bc,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.debounce=function(e,t,{signal:r,edges:n}={}){let i,a=null;const o=null!=n&&n.includes("leading"),l=null==n||n.includes("trailing"),s=()=>{null!==a&&(e.apply(i,a),i=void 0,a=null)};let c=null;const u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,l&&s(),d()},t)},d=()=>{null!==c&&(clearTimeout(c),c=null),i=void 0,a=null},f=function(...e){if(r?.aborted)return;i=this,a=e;const t=null==c;u(),o&&t&&s()};return f.schedule=u,f.cancel=d,f.flush=()=>{s()},r?.addEventListener("abort",d,{once:!0}),f}),Bc;var e}function Vc(){return Pc||(Pc=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Rc();e.debounce=function(e,r=0,n={}){"object"!=typeof n&&(n={});const{leading:i=!1,trailing:a=!0,maxWait:o}=n,l=Array(2);let s;i&&(l[0]="leading"),a&&(l[1]="trailing");let c=null;const u=t.debounce(function(...t){s=e.apply(this,t),c=null},r,{edges:l}),d=function(...t){return null!=o&&(null===c&&(c=Date.now()),Date.now()-c>=o)?(s=e.apply(this,t),c=Date.now(),u.cancel(),u.schedule(),s):(u.apply(this,t),s)};return d.cancel=u.cancel,d.flush=()=>(u.flush(),s),d}}(Lc)),Lc}function Kc(){return jc||(jc=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vc();e.throttle=function(e,r=0,n={}){const{leading:i=!0,trailing:a=!0}=n;return t.debounce(e,r,{leading:i,maxWait:r,trailing:a})}}(zc)),zc}function $c(){return kc?Ac:(kc=1,Ac=Kc().throttle)}var Fc=br($c()),Wc=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if("undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(t.replace(/%s/g,()=>n[a++]))}},Uc={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Hc=(e,t,r)=>{var{width:n=Uc.width,height:i=Uc.height,aspect:a,maxHeight:o}=r,l=Hr(n)?e:Number(n),s=Hr(i)?t:Number(i);return a&&a>0&&(l?s=l/a:s&&(l=s*a),o&&null!=s&&s>o&&(s=o)),{calculatedWidth:l,calculatedHeight:s}},qc={width:0,height:0,overflow:"visible"},Yc={width:0,overflowX:"visible"},Gc={height:0,overflowY:"visible"},Xc={},Zc=e=>{var{width:t,height:r}=e,n=Hr(t),i=Hr(r);return n&&i?qc:n?Yc:i?Gc:Xc};function Jc(){return Jc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jc.apply(null,arguments)}function Qc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(r),!0).forEach(function(t){tu(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ru=o(Uc.initialDimension);function nu(e){var{children:t,width:n,height:i}=e,a=s(()=>({width:n,height:i}),[n,i]);return function(e){return Gs(e.width)&&Gs(e.height)}(a)?r.createElement(ru.Provider,{value:a},t):null}var iu=()=>l(ru),au=a((e,t)=>{var{aspect:n,initialDimension:i=Uc.initialDimension,width:a,height:o,minWidth:l=Uc.minWidth,minHeight:s,maxHeight:h,children:v,debounce:y=Uc.debounce,id:m,className:g,onResize:b,style:x={}}=e,w=d(null),O=d();O.current=b,f(t,()=>w.current);var[E,P]=c({containerWidth:i.width,containerHeight:i.height}),j=u((e,t)=>{P(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);p(()=>{if(null==w.current||"undefined"==typeof ResizeObserver)return an;var e=e=>{var t,r=e[0];if(null!=r){var{width:n,height:i}=r.contentRect;j(n,i),null===(t=O.current)||void 0===t||t.call(O,n,i)}};y>0&&(e=Fc(e,y,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:r,height:n}=w.current.getBoundingClientRect();return j(r,n),t.observe(w.current),()=>{t.disconnect()}},[j,y]);var{containerWidth:A,containerHeight:k}=E;Wc(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:_,calculatedHeight:N}=Hc(A,k,{width:a,height:o,aspect:n,maxHeight:h});return Wc(null!=_&&_>0||null!=N&&N>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,a,o,l,s,n),r.createElement("div",{id:m?"".concat(m):void 0,className:S("recharts-responsive-container",g),style:eu(eu({},x),{},{width:a,height:o,minWidth:l,minHeight:s,maxHeight:h}),ref:w},r.createElement("div",{style:Zc({width:a,height:o})},r.createElement(nu,{width:_,height:N},v)))}),ou=a((e,t)=>{var n=iu();if(Gs(n.width)&&Gs(n.height))return e.children;var{width:i,height:a}=function(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return void 0===i&&void 0===a?(i=Uc.width,a=Uc.height):void 0===i?i=n&&n>0?void 0:Uc.width:void 0===a&&(a=n&&n>0?void 0:Uc.height),{width:i,height:a}}({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:l}=Hc(void 0,void 0,{width:i,height:a,aspect:e.aspect,maxHeight:e.maxHeight});return qr(o)&&qr(l)?r.createElement(nu,{width:o,height:l},e.children):r.createElement(au,Jc({},e,{width:i,height:a,ref:t}))});function lu(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var su=()=>{var e,t=Ic(),r=xa(Nc),n=xa(Cc),i=null===(e=xa(Dc))||void 0===e?void 0:e.padding;return t&&n&&i?{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}:r},cu={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},uu=()=>{var e;return null!==(e=xa(_c))&&void 0!==e?e:cu},du=()=>xa(hc),fu=()=>xa(vc),pu=e=>e.layout.layoutType,hu=()=>xa(pu),vu=()=>{var e=hu();if("horizontal"===e||"vertical"===e)return e},yu=e=>{var t=e.layout.layoutType;if("centric"===t||"radial"===t)return t},mu=e=>{var t=ya(),r=Ic(),{width:n,height:i}=e,a=iu(),o=n,l=i;return a&&(o=a.width>0?a.width:n,l=a.height>0?a.height:i),p(()=>{!r&&Gs(o)&&Gs(l)&&t(Ws({width:o,height:l}))},[t,r,o,l]),null},gu=Symbol.for("immer-nothing"),bu=Symbol.for("immer-draftable"),xu=Symbol.for("immer-state"),wu="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Ou(e,...t){if("production"!==process.env.NODE_ENV){const r=wu[e],n="function"==typeof r?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Eu=Object.getPrototypeOf;function Su(e){return!!e&&!!e[xu]}function Pu(e){return!!e&&(ku(e)||Array.isArray(e)||!!e[bu]||!!e.constructor?.[bu]||Iu(e)||Du(e))}var ju=Object.prototype.constructor.toString(),Au=new WeakMap;function ku(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=Au.get(r);return void 0===n&&(n=Function.toString.call(r),Au.set(r,n)),n===ju}function _u(e,t,r=!0){if(0===Nu(e)){(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)})}else e.forEach((r,n)=>t(n,r,e))}function Nu(e){const t=e[xu];return t?t.type_:Array.isArray(e)?1:Iu(e)?2:Du(e)?3:0}function Mu(e,t){return 2===Nu(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tu(e,t,r){const n=Nu(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function Iu(e){return e instanceof Map}function Du(e){return e instanceof Set}function Cu(e){return e.copy_||e.base_}function zu(e,t){if(Iu(e))return new Map(e);if(Du(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=ku(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[xu];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const i=r[n],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Eu(e),t)}{const t=Eu(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function Lu(e,t=!1){return Ru(e)||Su(e)||!Pu(e)||(Nu(e)>1&&Object.defineProperties(e,{set:Bu,add:Bu,clear:Bu,delete:Bu}),Object.freeze(e),t&&Object.values(e).forEach(e=>Lu(e,!0))),e}var Bu={value:function(){Ou(2)}};function Ru(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var Vu,Ku={};function $u(e){const t=Ku[e];return t||Ou(0,e),t}function Fu(){return Vu}function Wu(e,t){t&&($u("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Uu(e){Hu(e),e.drafts_.forEach(Yu),e.drafts_=null}function Hu(e){e===Vu&&(Vu=e.parent_)}function qu(e){return Vu={drafts_:[],parent_:Vu,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Yu(e){const t=e[xu];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Gu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[xu].modified_&&(Uu(t),Ou(4)),Pu(e)&&(e=Xu(t,e),t.parent_||Ju(t,e)),t.patches_&&$u("Patches").generateReplacementPatches_(r[xu].base_,e,t.patches_,t.inversePatches_)):e=Xu(t,r,[]),Uu(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==gu?e:void 0}function Xu(e,t,r){if(Ru(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[xu];if(!i)return _u(t,(n,a)=>Zu(e,i,t,n,a,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return Ju(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const t=i.copy_;let a=t,o=!1;3===i.type_&&(a=new Set(t),t.clear(),o=!0),_u(a,(n,a)=>Zu(e,i,t,n,a,r,o),n),Ju(e,t,!1),r&&e.patches_&&$u("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function Zu(e,t,r,n,i,a,o){if(null==i)return;if("object"!=typeof i&&!o)return;const l=Ru(i);if(!l||o){if("production"!==process.env.NODE_ENV&&i===r&&Ou(5),Su(i)){const o=Xu(e,i,a&&t&&3!==t.type_&&!Mu(t.assigned_,n)?a.concat(n):void 0);if(Tu(r,n,o),!Su(o))return;e.canAutoFreeze_=!1}else o&&r.add(i);if(Pu(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[n]===i&&l)return;Xu(e,i),t&&t.scope_.parent_||"symbol"==typeof n||!(Iu(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))||Ju(e,i)}}}function Ju(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Lu(t,r)}var Qu={get(e,t){if(t===xu)return e;const r=Cu(e);if(!Mu(r,t))return function(e,t,r){const n=rd(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!Pu(n)?n:n===td(e.base_,t)?(id(e),e.copy_[t]=ad(n,e)):n},has:(e,t)=>t in Cu(e),ownKeys:e=>Reflect.ownKeys(Cu(e)),set(e,t,r){const n=rd(Cu(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=td(Cu(e),t),i=n?.[xu];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,n)&&(void 0!==r||Mu(e.base_,t)))return!0;id(e),nd(e)}return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==td(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,id(e),nd(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=Cu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){Ou(11)},getPrototypeOf:e=>Eu(e.base_),setPrototypeOf(){Ou(12)}},ed={};function td(e,t){const r=e[xu];return(r?Cu(r):e)[t]}function rd(e,t){if(!(t in e))return;let r=Eu(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Eu(r)}}function nd(e){e.modified_||(e.modified_=!0,e.parent_&&nd(e.parent_))}function id(e){e.copy_||(e.copy_=zu(e.base_,e.scope_.immer_.useStrictShallowCopy_))}_u(Qu,(e,t)=>{ed[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ed.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&Ou(13),ed.set.call(this,e,t,void 0)},ed.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&Ou(14),Qu.set.call(this,e[0],t,r,e[0])};function ad(e,t){const r=Iu(e)?$u("MapSet").proxyMap_(e,t):Du(e)?$u("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Fu(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=Qu;r&&(i=[n],a=ed);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,l}(e,t);return(t?t.scope_:Fu()).drafts_.push(r),r}function od(e){if(!Pu(e)||Ru(e))return e;const t=e[xu];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=zu(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=zu(e,!0);return _u(r,(e,t)=>{Tu(r,e,od(t))},n),t&&(t.finalized_=!1),r}var ld=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}let n;if("function"!=typeof t&&Ou(6),void 0!==r&&"function"!=typeof r&&Ou(7),Pu(e)){const i=qu(this),a=ad(e,void 0);let o=!0;try{n=t(a),o=!1}finally{o?Uu(i):Hu(i)}return Wu(i,r),Gu(n,i)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===gu&&(n=void 0),this.autoFreeze_&&Lu(n,!0),r){const t=[],i=[];$u("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}Ou(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Pu(e)||Ou(8),Su(e)&&(e=function(e){Su(e)||Ou(10,e);return od(e)}(e));const t=qu(this),r=ad(e,void 0);return r[xu].isManual_=!0,Hu(t),r}finishDraft(e,t){const r=e&&e[xu];r&&r.isManual_||Ou(9);const{scope_:n}=r;return Wu(n,t),Gu(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=$u("Patches").applyPatches_;return Su(e)?n(e,t):this.produce(e,e=>n(e,t))}};ld.produce;var sd,cd=ls({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Zl()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Al(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:Zl()},removeLegendPayload:{reducer(e,t){var r=Al(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Zl()}}}),{setLegendSize:ud,setLegendSettings:dd,addLegendPayload:fd,replaceLegendPayload:pd,removeLegendPayload:hd}=cd.actions,vd=cd.reducer,yd={exports:{}},md={};var gd,bd,xd={};
28
+ */var Ui=(Fi||(Fi=1,"production"===process.env.NODE_ENV?Mi.exports=function(){if(Ri)return Di;Ri=1;var e=n,t=Ki(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,l=e.useMemo,s=e.useDebugValue;return Di.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,a=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return i=t}return i=e}if(t=i,r(a,e))return t;var n=c(e);return void 0!==u&&u(t,n)?(a=e,t):(a=e,i=n)}var a,i,o=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,c,u]);var p=a(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),s(p),p},Di}():Mi.exports=($i||($i=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=n,t=Ki(),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=t.useSyncExternalStore,i=e.useRef,o=e.useEffect,l=e.useMemo,s=e.useDebugValue;Wi.useSyncExternalStoreWithSelector=function(e,t,n,c,u){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!o){if(o=!0,a=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return i=t}return i=e}if(t=i,r(a,e))return t;var n=c(e);return void 0!==u&&u(t,n)?(a=e,t):(a=e,i=n)}var a,i,o=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,c,u]);var p=a(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),s(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Wi)),Mi.exports),Hi=o(null),qi=e=>e,Yi=()=>{var e=l(Hi);return e?e.store.dispatch:qi},Gi=()=>{},Xi=()=>Gi,Zi=(e,t)=>e===t;function Ji(e){var t=l(Hi),r=s(()=>t?t=>{if(null!=t)return e(t)}:Gi,[t,e]);return Ui.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Xi,t?t.store.getState:Gi,t?t.store.getState:Gi,r,Zi)}var Qi=(e,t,r)=>{if(1===t.length&&t[0]===r){let t=!1;try{const r={};e(r)===r&&(t=!0)}catch{}if(t){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("The result function returned its own inputs without modification. e.g\n`createSelector([state => state.todos], todos => todos)`\nThis could lead to inefficient memoization and unnecessary re-renders.\nEnsure transformation logic is in the result function, and extraction logic is in the input selectors.",{stack:e})}}},eo=(e,t,r)=>{const{memoize:n,memoizeOptions:a}=t,{inputSelectorResults:i,inputSelectorResultsCopy:o}=e,l=n(()=>({}),...a);if(!(l.apply(null,i)===l.apply(null,o))){let e;try{throw new Error}catch(t){({stack:e}=t)}console.warn("An input selector returned a different result when passed same arguments.\nThis means your output selector will likely run more frequently than intended.\nAvoid returning a new reference inside your input selector, e.g.\n`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)`",{arguments:r,firstInputs:i,secondInputs:o,stack:e})}},to={inputStabilityCheck:"once",identityFunctionCheck:"once"};var ro=e=>Array.isArray(e)?e:[e];function no(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ao(e,t){const r=[],{length:n}=e;for(let a=0;a<n;a++)r.push(e[a].apply(null,t));return r}var io="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function oo(){return{s:0,v:void 0,o:null,p:null}}function lo(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let a,i=0;function o(){let t=r;const{length:o}=arguments;for(let e=0,r=o;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=oo(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=oo(),e.set(r,t)):t=n}}const l=t;let s;if(1===t.s)s=t.v;else if(s=e.apply(null,arguments),i++,n){const e=a?.deref?.()??a;null!=e&&n(e,s)&&(s=e,0!==i&&i--);a="object"==typeof s&&null!==s||"function"==typeof s?new io(s):s}return l.s=1,l.v=s,s}return o.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function so(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,a=0,i={},o=e.pop();"object"==typeof o&&(i=o,o=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);const l={...r,...i},{memoize:s,memoizeOptions:c=[],argsMemoize:u=lo,argsMemoizeOptions:d=[],devModeChecks:f={}}=l,p=ro(c),h=ro(d),v=no(e),y=s(function(){return n++,o.apply(null,arguments)},...p);let m=!0;const g=u(function(){a++;const e=ao(v,arguments);if(t=y.apply(null,e),"production"!==process.env.NODE_ENV){const{identityFunctionCheck:r,inputStabilityCheck:n}=((e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...to,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:Qi},inputStabilityCheck:{shouldRun:"always"===n||"once"===n&&e,run:eo}}})(m,f);if(r.shouldRun&&r.run(o,e,t),n.shouldRun){const t=ao(v,arguments);n.run({inputSelectorResults:e,inputSelectorResultsCopy:t},{memoize:s,memoizeOptions:p},arguments)}m&&(m=!1)}return t},...h);return Object.assign(g,{resultFunc:o,memoizedResultFunc:y,dependencies:v,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:s,argsMemoize:u})};return Object.assign(n,{withTypes:()=>n}),n}var co,uo=so(lo),fo=Object.assign((e,t=uo)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e);return t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}))},{withTypes:()=>fo}),po={},ho={},vo={};function yo(){return co||(co=1,function(e){function t(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:e!=e?4:0}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});e.compareValues=(e,r,n)=>{if(e!==r){const a=t(e),i=t(r);if(a===i&&0===a){if(e<r)return"desc"===n?1:-1;if(e>r)return"desc"===n?-1:1}return"desc"===n?i-a:a-i}return 0}}(vo)),vo}var mo,go,bo,xo={},wo={};function Oo(){return mo||(mo=1,e=wo,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isSymbol=function(e){return"symbol"==typeof e||e instanceof Symbol}),wo;var e}function Eo(){return go||(go=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Oo(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;e.isKey=function(e,a){return!Array.isArray(e)&&(!("number"!=typeof e&&"boolean"!=typeof e&&null!=e&&!t.isSymbol(e))||("string"==typeof e&&(n.test(e)||!r.test(e))||null!=a&&Object.hasOwn(a,e)))}}(xo)),xo}function So(){return bo||(bo=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yo(),r=Eo(),n=mn();e.orderBy=function(e,a,i,o){if(null==e)return[];i=o?void 0:i,Array.isArray(e)||(e=Object.values(e)),Array.isArray(a)||(a=null==a?[null]:[a]),0===a.length&&(a=[null]),Array.isArray(i)||(i=null==i?[]:[i]),i=i.map(e=>String(e));const l=(e,t)=>{let r=e;for(let e=0;e<t.length&&null!=r;++e)r=r[t[e]];return r},s=a.map(e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||r.isKey(e)?e:{key:e,path:n.toPath(e)})),c=e.map(e=>({original:e,criteria:s.map(t=>((e,t)=>null==t||null==e?t:"object"==typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:l(t,e.path):"function"==typeof e?e(t):Array.isArray(e)?l(t,e):"object"==typeof t?t[e]:t)(t,e))}));return c.slice().sort((e,r)=>{for(let n=0;n<s.length;n++){const a=t.compareValues(e.criteria[n],r.criteria[n],i[n]);if(0!==a)return a}return 0}).map(e=>e.original)}}(ho)),ho}var Po,jo={};function ko(){return Po||(Po=1,e=jo,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.flatten=function(e,t=1){const r=[],n=Math.floor(t),a=(e,t)=>{for(let i=0;i<e.length;i++){const o=e[i];Array.isArray(o)&&t<n?a(o,t+1):r.push(o)}};return a(e,0),r}),jo;var e}var Ao,No,_o,To,Io={};function Mo(){return Ao||(Ao=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yi(),r=ha(),n=Na(),a=La();e.isIterateeCall=function(e,i,o){return!!n.isObject(o)&&(!!("number"==typeof i&&r.isArrayLike(o)&&t.isIndex(i)&&i<o.length||"string"==typeof i&&i in o)&&a.isEqualsSameValueZero(o[i],e))}}(Io)),Io}function Do(){return No||(No=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=So(),r=ko(),n=Mo();e.sortBy=function(e,...a){const i=a.length;return i>1&&n.isIterateeCall(e,a[0],a[1])?a=[]:i>2&&n.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(e,r.flatten(a),["asc"])}}(po)),po}function Co(){return To?_o:(To=1,_o=Do().sortBy)}var zo=Zr(Co()),Lo=e=>e.legend.settings;uo([e=>e.legend.payload,Lo],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?zo(n,r):n});function Bo(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Ro=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Vo=()=>Math.random().toString(36).substring(7).split("").join("."),Ko={INIT:`@@redux/INIT${Vo()}`,REPLACE:`@@redux/REPLACE${Vo()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Vo()}`};function $o(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Fo(e){if(void 0===e)return"undefined";if(null===e)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";const r=function(e){return"function"==typeof e.constructor?e.constructor.name:null}(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function Wo(e){let t=typeof e;return"production"!==process.env.NODE_ENV&&(t=Fo(e)),t}function Uo(e,t,r){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Bo(2):`Expected the root reducer to be a function. Instead, received: '${Wo(e)}'`);if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?Bo(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("production"===process.env.NODE_ENV?Bo(1):`Expected the enhancer to be a function. Instead, received: '${Wo(r)}'`);return r(Uo)(e,t)}let n=e,a=t,i=new Map,o=i,l=0,s=!1;function c(){o===i&&(o=new Map,i.forEach((e,t)=>{o.set(t,e)}))}function u(){if(s)throw new Error("production"===process.env.NODE_ENV?Bo(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function d(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Bo(4):`Expected the listener to be a function. Instead, received: '${Wo(e)}'`);if(s)throw new Error("production"===process.env.NODE_ENV?Bo(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let t=!0;c();const r=l++;return o.set(r,e),function(){if(t){if(s)throw new Error("production"===process.env.NODE_ENV?Bo(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");t=!1,c(),o.delete(r),i=null}}}function f(e){if(!$o(e))throw new Error("production"===process.env.NODE_ENV?Bo(7):`Actions must be plain objects. Instead, the actual type was: '${Wo(e)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(void 0===e.type)throw new Error("production"===process.env.NODE_ENV?Bo(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if("string"!=typeof e.type)throw new Error("production"===process.env.NODE_ENV?Bo(17):`Action "type" property must be a string. Instead, the actual type was: '${Wo(e.type)}'. Value was: '${e.type}' (stringified)`);if(s)throw new Error("production"===process.env.NODE_ENV?Bo(9):"Reducers may not dispatch actions.");try{s=!0,a=n(a,e)}finally{s=!1}return(i=o).forEach(e=>{e()}),e}f({type:Ko.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Bo(10):`Expected the nextReducer to be a function. Instead, received: '${Wo(e)}`);n=e,f({type:Ko.REPLACE})},[Ro]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?Bo(11):`Expected the observer to be an object. Instead, received: '${Wo(t)}'`);function r(){const e=t;e.next&&e.next(u())}r();return{unsubscribe:e(r)}},[Ro](){return this}}}}}function Ho(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function qo(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const a=t[n];"production"!==process.env.NODE_ENV&&void 0===e[a]&&Ho(`No reducer provided for key "${a}"`),"function"==typeof e[a]&&(r[a]=e[a])}const n=Object.keys(r);let a,i;"production"!==process.env.NODE_ENV&&(a={});try{!function(e){Object.keys(e).forEach(t=>{const r=e[t];if(void 0===r(void 0,{type:Ko.INIT}))throw new Error("production"===process.env.NODE_ENV?Bo(12):`The slice reducer for key "${t}" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(void 0===r(void 0,{type:Ko.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?Bo(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Ko.INIT}' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.`)})}(r)}catch(e){i=e}return function(e={},t){if(i)throw i;if("production"!==process.env.NODE_ENV){const n=function(e,t,r,n){const a=Object.keys(t),i=r&&r.type===Ko.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(0===a.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!$o(e))return`The ${i} has unexpected type of "${Wo(e)}". Expected argument to be an object with the following keys: "${a.join('", "')}"`;const o=Object.keys(e).filter(e=>!t.hasOwnProperty(e)&&!n[e]);return o.forEach(e=>{n[e]=!0}),r&&r.type===Ko.REPLACE?void 0:o.length>0?`Unexpected ${o.length>1?"keys":"key"} "${o.join('", "')}" found in ${i}. Expected to find one of the known reducer keys instead: "${a.join('", "')}". Unexpected keys will be ignored.`:void 0}(e,r,t,a);n&&Ho(n)}let o=!1;const l={};for(let a=0;a<n.length;a++){const i=n[a],s=r[i],c=e[i],u=s(c,t);if(void 0===u){const e=t&&t.type;throw new Error("production"===process.env.NODE_ENV?Bo(14):`When called with an action of type ${e?`"${String(e)}"`:"(unknown type)"}, the slice reducer for key "${i}" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.`)}l[i]=u,o=o||u!==c}return o=o||n.length!==Object.keys(e).length,o?l:e}}function Yo(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function Go(e){return $o(e)&&"type"in e&&"string"==typeof e.type}var Xo=Symbol.for("immer-nothing"),Zo=Symbol.for("immer-draftable"),Jo=Symbol.for("immer-state"),Qo="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function el(e,...t){if("production"!==process.env.NODE_ENV){const r=Qo[e],n=El(r)?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var tl=Object,rl=tl.getPrototypeOf,nl="constructor",al="prototype",il="configurable",ol="enumerable",ll="writable",sl="value",cl=e=>!!e&&!!e[Jo];function ul(e){return!!e&&(pl(e)||bl(e)||!!e[Zo]||!!e[nl]?.[Zo]||xl(e)||wl(e))}var dl=tl[al][nl].toString(),fl=new WeakMap;function pl(e){if(!e||!Ol(e))return!1;const t=rl(e);if(null===t||t===tl[al])return!0;const r=tl.hasOwnProperty.call(t,nl)&&t[nl];if(r===Object)return!0;if(!El(r))return!1;let n=fl.get(r);return void 0===n&&(n=Function.toString.call(r),fl.set(r,n)),n===dl}function hl(e,t,r=!0){if(0===vl(e)){(r?Reflect.ownKeys(e):tl.keys(e)).forEach(r=>{t(r,e[r],e)})}else e.forEach((r,n)=>t(n,r,e))}function vl(e){const t=e[Jo];return t?t.type_:bl(e)?1:xl(e)?2:wl(e)?3:0}var yl=(e,t,r=vl(e))=>2===r?e.has(t):tl[al].hasOwnProperty.call(e,t),ml=(e,t,r=vl(e))=>2===r?e.get(t):e[t],gl=(e,t,r,n=vl(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r};var bl=Array.isArray,xl=e=>e instanceof Map,wl=e=>e instanceof Set,Ol=e=>"object"==typeof e,El=e=>"function"==typeof e,Sl=e=>"boolean"==typeof e;var Pl=e=>e.copy_||e.base_,jl=e=>e.modified_?e.copy_:e.base_;function kl(e,t){if(xl(e))return new Map(e);if(wl(e))return new Set(e);if(bl(e))return Array[al].slice.call(e);const r=pl(e);if(!0===t||"class_only"===t&&!r){const t=tl.getOwnPropertyDescriptors(e);delete t[Jo];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const a=r[n],i=t[a];!1===i[ll]&&(i[ll]=!0,i[il]=!0),(i.get||i.set)&&(t[a]={[il]:!0,[ll]:!0,[ol]:i[ol],[sl]:e[a]})}return tl.create(rl(e),t)}{const t=rl(e);if(null!==t&&r)return{...e};const n=tl.create(t);return tl.assign(n,e)}}function Al(e,t=!1){return _l(e)||cl(e)||!ul(e)||(vl(e)>1&&tl.defineProperties(e,{set:Nl,add:Nl,clear:Nl,delete:Nl}),tl.freeze(e),t&&hl(e,(e,t)=>{Al(t,!0)},!1)),e}var Nl={[sl]:function(){el(2)}};function _l(e){return null===e||!Ol(e)||tl.isFrozen(e)}var Tl="MapSet",Il="Patches",Ml="ArrayMethods",Dl={};function Cl(e){const t=Dl[e];return t||el(0,e),t}var zl,Ll=e=>!!Dl[e],Bl=()=>zl;function Rl(e,t){t&&(e.patchPlugin_=Cl(Il),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Vl(e){Kl(e),e.drafts_.forEach(Fl),e.drafts_=null}function Kl(e){e===zl&&(zl=e.parent_)}var $l=e=>zl={drafts_:[],parent_:zl,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ll(Tl)?Cl(Tl):void 0,arrayMethodsPlugin_:Ll(Ml)?Cl(Ml):void 0};function Fl(e){const t=e[Jo];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function Wl(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(void 0!==e&&e!==r){r[Jo].modified_&&(Vl(t),el(4)),ul(e)&&(e=Ul(t,e));const{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[Jo].base_,e,t)}else e=Ul(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Al(t,r)}(t,e,!0),Vl(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Xo?e:void 0}function Ul(e,t){if(_l(t))return t;const r=t[Jo];if(!r){return Zl(t,e.handledSet_,e)}if(!ql(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:t}=r;if(t)for(;t.length>0;){t.pop()(e)}Xl(r,e)}return r.copy_}function Hl(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ql=(e,t)=>e.scope_===t,Yl=[];function Gl(e,t,r,n){const a=Pl(e),i=e.type_;if(void 0!==n){if(ml(a,n,i)===t)return void gl(a,n,r,i)}if(!e.draftLocations_){const t=e.draftLocations_=new Map;hl(a,(e,r)=>{if(cl(r)){const n=t.get(r)||[];n.push(e),t.set(r,n)}})}const o=e.draftLocations_.get(t)??Yl;for(const e of o)gl(a,e,r,i)}function Xl(e,t){if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){const{patchPlugin_:r}=t;if(r){const n=r.getPath(e);n&&r.generatePatches_(e,n,t)}Hl(e)}}function Zl(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||cl(e)||t.has(e)||!ul(e)||_l(e)||(t.add(e),hl(e,(n,a)=>{if(cl(a)){const t=a[Jo];if(ql(t,r)){const r=jl(t);gl(e,n,r,e.type_),Hl(t)}}else ul(a)&&Zl(a,t,r)})),e}var Jl={get(e,t){if(t===Jo)return e;let r=e.scope_.arrayMethodsPlugin_;const n=1===e.type_&&"string"==typeof t;if(n&&r?.isArrayOperationMethod(t))return r.createMethodInterceptor(e,t);const a=Pl(e);if(!yl(a,t,e.type_))return function(e,t,r){const n=ts(t,r);return n?sl in n?n[sl]:n.get?.call(e.draft_):void 0}(e,a,t);const i=a[t];if(e.finalized_||!ul(i))return i;if(n&&e.operationMethod&&r?.isMutatingArrayMethod(e.operationMethod)&&function(e){const t=+e;return Number.isInteger(t)&&String(t)===e}(t))return i;if(i===es(e.base_,t)){ns(e);const r=1===e.type_?+t:t,n=as(e.scope_,i,e,r);return e.copy_[r]=n}return i},has:(e,t)=>t in Pl(e),ownKeys:e=>Reflect.ownKeys(Pl(e)),set(e,t,r){const n=ts(Pl(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=es(Pl(e),t),a=n?.[Jo];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,n)&&(void 0!==r||yl(e.base_,t,e.type_)))return!0;ns(e),rs(e)}return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),function(e,t,r){const{scope_:n}=e;if(cl(r)){const a=r[Jo];ql(a,n)&&a.callbacks_.push(function(){ns(e);const n=jl(a);Gl(e,r,n,t)})}else ul(r)&&e.callbacks_.push(function(){const a=Pl(e);3===e.type_?a.has(r)&&Zl(r,n.handledSet_,n):ml(a,t,e.type_)===r&&n.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&Zl(ml(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r)),!0},deleteProperty:(e,t)=>(ns(e),void 0!==es(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),rs(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=Pl(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[ll]:!0,[il]:1!==e.type_||"length"!==t,[ol]:n[ol],[sl]:r[t]}:n},defineProperty(){el(11)},getPrototypeOf:e=>rl(e.base_),setPrototypeOf(){el(12)}},Ql={};for(let e in Jl){let t=Jl[e];Ql[e]=function(){const e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function es(e,t){const r=e[Jo];return(r?Pl(r):e)[t]}function ts(e,t){if(!(t in e))return;let r=rl(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=rl(r)}}function rs(e){e.modified_||(e.modified_=!0,e.parent_&&rs(e.parent_))}function ns(e){e.copy_||(e.assigned_=new Map,e.copy_=kl(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Ql.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&el(13),Ql.set.call(this,e,t,void 0)},Ql.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&el(14),Jl.set.call(this,e[0],t,r,e[0])};function as(e,t,r,n){const[a,i]=xl(t)?Cl(Tl).proxyMap_(t,r):wl(t)?Cl(Tl).proxySet_(t,r):function(e,t){const r=bl(e),n={type_:r?1:0,scope_:t?t.scope_:Bl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=n,i=Jl;r&&(a=[n],i=Ql);const{revoke:o,proxy:l}=Proxy.revocable(a,i);return n.draft_=l,n.revoke_=o,[l,n]}(t,r);return(r?.scope_??Bl()).drafts_.push(a),i.callbacks_=r?.callbacks_??[],i.key_=n,r&&void 0!==n?function(e,t,r){e.callbacks_.push(function(n){const a=t;if(!a||!ql(a,n))return;n.mapSetPlugin_?.fixSetContents(a);const i=jl(a);Gl(e,a.draft_??a,i,r),Xl(a,n)})}(r,i,n):i.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(i);const{patchPlugin_:t}=e;i.modified_&&t&&t.generatePatches_(i,[],e)}),a}function is(e){return cl(e)||el(10,e),os(e)}function os(e){if(!ul(e)||_l(e))return e;const t=e[Jo];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=kl(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=kl(e,!0);return hl(r,(e,t)=>{gl(r,e,os(t))},n),t&&(t.finalized_=!1),r}var ls=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{if(El(e)&&!El(t)){const r=t;t=e;const n=this;return function(e=r,...a){return n.produce(e,e=>t.call(this,e,...a))}}let n;if(El(t)||el(6),void 0===r||El(r)||el(7),ul(e)){const a=$l(this),i=as(a,e,void 0);let o=!0;try{n=t(i),o=!1}finally{o?Vl(a):Kl(a)}return Rl(a,r),Wl(n,a)}if(!e||!Ol(e)){if(n=t(e),void 0===n&&(n=e),n===Xo&&(n=void 0),this.autoFreeze_&&Al(n,!0),r){const t=[],a=[];Cl(Il).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:a}),r(t,a)}return n}el(1,e)},this.produceWithPatches=(e,t)=>{if(El(e))return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},Sl(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Sl(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Sl(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){ul(e)||el(8),cl(e)&&(e=is(e));const t=$l(this),r=as(t,e,void 0);return r[Jo].isManual_=!0,Kl(t),r}finishDraft(e,t){const r=e&&e[Jo];r&&r.isManual_||el(9);const{scope_:n}=r;return Rl(n,t),Wl(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=Cl(Il).applyPatches_;return cl(e)?n(e,t):this.produce(e,e=>n(e,t))}},ss=ls.produce;function cs(e){return({dispatch:t,getState:r})=>n=>a=>"function"==typeof a?a(t,r,e):n(a)}var us=cs(),ds=cs,fs="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Yo:Yo.apply(null,arguments)};function ps(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error("production"===process.env.NODE_ENV?gc(0):"prepareAction did not return an object");return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>Go(t)&&t.type===e,r}function hs(e){return"function"==typeof e&&"type"in e&&((t=e)&&"function"==typeof t.match);var t}function vs(e,t){let r=0;return{measureTime(e){const t=Date.now();try{return e()}finally{const e=Date.now();r+=e-t}},warnIfExceeded(){r>e&&console.warn(`${t} took ${r}ms, which is more than the warning threshold of ${e}ms. \nIf your state or actions are very large, you may want to disable the middleware as it might cause too much of a slowdown in development mode. See https://redux-toolkit.js.org/api/getDefaultMiddleware for instructions.\nIt is disabled in production builds, so you don't need to worry about that.`)}}}var ys=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function ms(e){return ul(e)?ss(e,()=>{}):e}function gs(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function bs(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function xs(e,t,r){const n=ws(e,t,r);return{detectMutations:()=>Os(e,t,n,r)}}function ws(e,t=[],r,n="",a=new Set){const i={value:r};if(!e(r)&&!a.has(r)){a.add(r),i.children={};const o=t.length>0;for(const a in r){const l=n?n+"."+a:a;if(o){if(t.some(e=>e instanceof RegExp?e.test(l):l===e))continue}i.children[a]=ws(e,t,r[a],l)}}return i}function Os(e,t=[],r,n,a=!1,i=""){const o=r?r.value:void 0,l=o===n;if(a&&!l&&!Number.isNaN(n))return{wasMutated:!0,path:i};if(e(o)||e(n))return{wasMutated:!1};const s={};for(let e in r.children)s[e]=!0;for(let e in n)s[e]=!0;const c=t.length>0;for(let a in s){const o=i?i+"."+a:a;if(c){if(t.some(e=>e instanceof RegExp?e.test(o):o===e))continue}const s=Os(e,t,r.children[a],n[a],l,o);if(s.wasMutated)return s}return{wasMutated:!1}}function Es(e){const t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||$o(e)}function Ss(e,t="",r=Es,n,a=[],i){let o;if(!r(e))return{keyPath:t||"<root>",value:e};if("object"!=typeof e||null===e)return!1;if(i?.has(e))return!1;const l=null!=n?n(e):Object.entries(e),s=a.length>0;for(const[e,c]of l){const l=t?t+"."+e:e;if(s){if(a.some(e=>e instanceof RegExp?e.test(l):l===e))continue}if(!r(c))return{keyPath:l,value:c};if("object"==typeof c&&(o=Ss(c,l,r,n,a,i),o))return o}return i&&Ps(e)&&i.add(e),!1}function Ps(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if("object"==typeof t&&null!==t&&!Ps(t))return!1;return!0}function js(e){return"boolean"==typeof e}var ks=()=>function(e){const{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=e??{};let i=new ys;if(t&&(js(t)?i.push(us):i.push(ds(t.extraArgument))),"production"!==process.env.NODE_ENV){if(r){let e={};js(r)||(e=r),i.unshift(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);{let t=function(e,t,n,a){return JSON.stringify(e,r(t,a),n)},r=function(e,t){let r=[],n=[];return t||(t=function(e,t){return r[0]===t?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(t)).join(".")+"]"}),function(a,i){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,a):n.push(a),~r.indexOf(i)&&(i=t.call(this,a,i))}else r.push(i);return null==e?i:e.call(this,a,i)}},{isImmutable:n=bs,ignoredPaths:a,warnAfter:i=32}=e;const o=xs.bind(null,n,a);return({getState:e})=>{let r,n=e(),a=o(n);return l=>s=>{const c=vs(i,"ImmutableStateInvariantMiddleware");c.measureTime(()=>{if(n=e(),r=a.detectMutations(),a=o(n),r.wasMutated)throw new Error("production"===process.env.NODE_ENV?gc(19):`A state mutation was detected between dispatches, in the path '${r.path||""}'. This may cause incorrect behavior. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)});const u=l(s);return c.measureTime(()=>{if(n=e(),r=a.detectMutations(),a=o(n),r.wasMutated)throw new Error("production"===process.env.NODE_ENV?gc(20):`A state mutation was detected inside a dispatch, in the path: ${r.path||""}. Take a look at the reducer(s) handling the action ${t(s)}. (https://redux.js.org/style-guide/style-guide#do-not-mutate-state)`)}),c.warnIfExceeded(),u}}}}(e))}if(n){let e={};js(n)||(e=n),i.push(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);{const{isSerializable:t=Es,getEntries:r,ignoredActions:n=[],ignoredActionPaths:a=["meta.arg","meta.baseQueryMeta"],ignoredPaths:i=[],warnAfter:o=32,ignoreState:l=!1,ignoreActions:s=!1,disableCache:c=!1}=e,u=!c&&WeakSet?new WeakSet:void 0;return e=>c=>d=>{if(!Go(d))return c(d);const f=c(d),p=vs(o,"SerializableStateInvariantMiddleware");return s||n.length&&-1!==n.indexOf(d.type)||p.measureTime(()=>{const e=Ss(d,"",t,r,a,u);if(e){const{keyPath:t,value:r}=e;console.error(`A non-serializable value was detected in an action, in the path: \`${t}\`. Value:`,r,"\nTake a look at the logic that dispatched this action: ",d,"\n(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)","\n(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)")}}),l||(p.measureTime(()=>{const n=Ss(e.getState(),"",t,r,i,u);if(n){const{keyPath:e,value:t}=n;console.error(`A non-serializable value was detected in the state, in the path: \`${e}\`. Value:`,t,`\nTake a look at the reducer(s) handling this action type: ${d.type}.\n(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state)`)}}),p.warnIfExceeded()),f}}}(e))}if(a){let e={};js(a)||(e=a),i.unshift(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);const{isActionCreator:t=hs}=e;return()=>e=>r=>(t(r)&&console.warn(function(e){const t=e?`${e}`.split("/"):[],r=t[t.length-1]||"actionCreator";return`Detected an action creator with type "${e||"unknown"}" being dispatched. \nMake sure you're calling the action creator before dispatching, i.e. \`dispatch(${r}())\` instead of \`dispatch(${r})\`. This is necessary even if the action has no payload.`}(r.type)),e(r))}(e))}}return i},As="RTK_autoBatch",Ns=()=>e=>({payload:e,meta:{[As]:!0}}),_s=e=>t=>{setTimeout(t,e)},Ts=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let a=!0,i=!1,o=!1;const l=new Set,s="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:_s(10):"callback"===e.type?e.queueNotification:_s(e.timeout),c=()=>{o=!1,i&&(i=!1,l.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>a&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return a=!e?.meta?.[As],i=!a,i&&(o||(o=!0,s(c))),n.dispatch(e)}finally{a=!0}}})};function Is(e){const t=ks(),{reducer:r,middleware:n,devTools:a=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o,enhancers:l}=e||{};let s,c;if("function"==typeof r)s=r;else{if(!$o(r))throw new Error("production"===process.env.NODE_ENV?gc(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");s=qo(r)}if("production"!==process.env.NODE_ENV&&n&&"function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?gc(2):"`middleware` field must be a callback");if("function"==typeof n){if(c=n(t),"production"!==process.env.NODE_ENV&&!Array.isArray(c))throw new Error("production"===process.env.NODE_ENV?gc(3):"when using a middleware builder function, an array of middleware must be returned")}else c=t();if("production"!==process.env.NODE_ENV&&c.some(e=>"function"!=typeof e))throw new Error("production"===process.env.NODE_ENV?gc(4):"each middleware provided to configureStore must be a function");if("production"!==process.env.NODE_ENV&&i){let e=new Set;c.forEach(t=>{if(e.has(t))throw new Error("production"===process.env.NODE_ENV?gc(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");e.add(t)})}let u=Yo;a&&(u=fs({trace:"production"!==process.env.NODE_ENV,..."object"==typeof a&&a}));const d=function(...e){return t=>(r,n)=>{const a=t(r,n);let i=()=>{throw new Error("production"===process.env.NODE_ENV?Bo(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const o={getState:a.getState,dispatch:(e,...t)=>i(e,...t)},l=e.map(e=>e(o));return i=Yo(...l)(a.dispatch),{...a,dispatch:i}}}(...c),f=(e=>function(t){const{autoBatch:r=!0}=t??{};let n=new ys(e);return r&&n.push(Ts("object"==typeof r?r:void 0)),n})(d);if("production"!==process.env.NODE_ENV&&l&&"function"!=typeof l)throw new Error("production"===process.env.NODE_ENV?gc(5):"`enhancers` field must be a callback");let p="function"==typeof l?l(f):f();if("production"!==process.env.NODE_ENV&&!Array.isArray(p))throw new Error("production"===process.env.NODE_ENV?gc(6):"`enhancers` callback must return an array");if("production"!==process.env.NODE_ENV&&p.some(e=>"function"!=typeof e))throw new Error("production"===process.env.NODE_ENV?gc(7):"each enhancer provided to configureStore must be a function");"production"!==process.env.NODE_ENV&&c.length&&!p.includes(d)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");return Uo(s,o,u(...p))}function Ms(e){const t={},r=[];let n;const a={addCase(e,i){if("production"!==process.env.NODE_ENV){if(r.length>0)throw new Error("production"===process.env.NODE_ENV?gc(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("production"===process.env.NODE_ENV?gc(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const o="string"==typeof e?e:e.type;if(!o)throw new Error("production"===process.env.NODE_ENV?gc(28):"`builder.addCase` cannot be called with an empty action type");if(o in t)throw new Error("production"===process.env.NODE_ENV?gc(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${o}'`);return t[o]=i,a},addAsyncThunk(e,i){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?gc(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return i.pending&&(t[e.pending.type]=i.pending),i.rejected&&(t[e.rejected.type]=i.rejected),i.fulfilled&&(t[e.fulfilled.type]=i.fulfilled),i.settled&&r.push({matcher:e.settled,reducer:i.settled}),a},addMatcher(e,t){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?gc(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return r.push({matcher:e,reducer:t}),a},addDefaultCase(e){if("production"!==process.env.NODE_ENV&&n)throw new Error("production"===process.env.NODE_ENV?gc(31):"`builder.addDefaultCase` can only be called once");return n=e,a}};return e(a),[t,r,n]}var Ds=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},Cs=Symbol.for("rtk-slice-createasyncthunk");function zs(e,t){return`${e}/${t}`}function Ls({creators:e}={}){const t=e?.asyncThunk?.[Cs];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error("production"===process.env.NODE_ENV?gc(11):"`name` is a required option for createSlice");"undefined"!=typeof process&&"development"===process.env.NODE_ENV&&void 0===e.initialState&&console.error("You must provide an `initialState` value that is not `undefined`. You may have misspelled `initialState`");const a=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(a),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error("production"===process.env.NODE_ENV?gc(12):"`context.addCase` cannot be called with an empty action type");if(r in o.sliceCaseReducersByType)throw new Error("production"===process.env.NODE_ENV?gc(13):"`context.addCase` cannot be called with two reducers for the same action type: "+r);return o.sliceCaseReducersByType[r]=t,l},addMatcher:(e,t)=>(o.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(o.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(o.sliceCaseReducersByName[e]=t,l)};function s(){if("production"!==process.env.NODE_ENV&&"object"==typeof e.extraReducers)throw new Error("production"===process.env.NODE_ENV?gc(14):"The object notation for `createSlice.extraReducers` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createSlice");const[t={},r=[],n]="function"==typeof e.extraReducers?Ms(e.extraReducers):[e.extraReducers],a={...t,...o.sliceCaseReducersByType};return function(e,t){if("production"!==process.env.NODE_ENV&&"object"==typeof t)throw new Error("production"===process.env.NODE_ENV?gc(8):"The object notation for `createReducer` has been removed. Please use the 'builder callback' notation instead: https://redux-toolkit.js.org/api/createReducer");let r,[n,a,i]=Ms(t);if(function(e){return"function"==typeof e}(e))r=()=>ms(e());else{const t=ms(e);r=()=>t}function o(e=r(),t){let o=[n[t.type],...a.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===o.filter(e=>!!e).length&&(o=[i]),o.reduce((e,r)=>{if(r){if(cl(e)){const n=r(e,t);return void 0===n?e:n}if(ul(e))return ss(e,e=>r(e,t));{const n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return o.getInitialState=r,o}(e.initialState,e=>{for(let t in a)e.addCase(t,a[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}i.forEach(n=>{const i=a[n],o={reducerName:n,type:zs(r,n),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(i)?function({type:e,reducerName:t,createNotation:r},n,a){let i,o;if("reducer"in n){if(r&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(n))throw new Error("production"===process.env.NODE_ENV?gc(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");i=n.reducer,o=n.prepare}else i=n;a.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?ps(e,o):ps(e))}(o,i,l):function({type:e,reducerName:t},r,n,a){if(!a)throw new Error("production"===process.env.NODE_ENV?gc(18):"Cannot use `create.asyncThunk` in the built-in `createSlice`. Use `buildCreateSlice({ creators: { asyncThunk: asyncThunkCreator } })` to create a customised version of `createSlice`.");const{payloadCreator:i,fulfilled:o,pending:l,rejected:s,settled:c,options:u}=r,d=a(e,i,u);n.exposeAction(t,d),o&&n.addCase(d.fulfilled,o);l&&n.addCase(d.pending,l);s&&n.addCase(d.rejected,s);c&&n.addMatcher(d.settled,c);n.exposeCaseReducer(t,{fulfilled:o||Vs,pending:l||Vs,rejected:s||Vs,settled:c||Vs})}(o,i,l,t)});const c=e=>e,u=new Map,d=new WeakMap;let f;function p(e,t){return f||(f=s()),f(e,t)}function h(){return f||(f=s()),f.getInitialState()}function v(t,r=!1){function n(e){let a=e[t];if(void 0===a)if(r)a=gs(d,n,h);else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?gc(15):"selectSlice returned undefined for an uninjected slice reducer");return a}function a(t=c){const n=gs(u,r,()=>new WeakMap);return gs(n,t,()=>{const n={};for(const[a,i]of Object.entries(e.selectors??{}))n[a]=Bs(i,t,()=>gs(d,t,h),r);return n})}return{reducerPath:t,getSelectors:a,get selectors(){return a(n)},selectSlice:n}}const y={name:r,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:h,...v(n),injectInto(e,{reducerPath:t,...r}={}){const a=t??n;return e.inject({reducerPath:a,reducer:p},r),{...y,...v(a,!0)}}};return y}}function Bs(e,t,r,n){function a(a,...i){let o=t(a);if(void 0===o)if(n)o=r();else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?gc(16):"selectState returned undefined for an uninjected slice reducer");return e(o,...i)}return a.unwrapped=e,a}var Rs=Ls();function Vs(){}var Ks="listener",$s="completed",Fs="cancelled",Ws=`task-${Fs}`,Us=`task-${$s}`,Hs=`${Ks}-${Fs}`,qs=`${Ks}-${$s}`,Ys=class{constructor(e){this.code=e,this.message=`task ${Fs} (reason: ${e})`}name="TaskAbortError";message},Gs=(e,t)=>{if("function"!=typeof e)throw new TypeError("production"===process.env.NODE_ENV?gc(32):`${t} is not a function`)},Xs=()=>{},Zs=(e,t=Xs)=>(e.catch(t),e),Js=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Qs=e=>{if(e.aborted)throw new Ys(e.reason)};function ec(e,t){let r=Xs;return new Promise((n,a)=>{const i=()=>a(new Ys(e.reason));e.aborted?i():(r=Js(e,i),t.finally(()=>r()).then(n,a))}).finally(()=>{r=Xs})}var tc=e=>t=>Zs(ec(e,t).then(t=>(Qs(e),t))),rc=e=>{const t=tc(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:nc}=Object,ac={},ic="listenerMiddleware",oc=(e,t)=>(r,n)=>{Gs(r,"taskExecutor");const a=new AbortController;var i;i=a,Js(e,()=>i.abort(e.reason));const o=(async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(e){return{status:e instanceof Ys?"cancelled":"rejected",error:e}}finally{t?.()}})(async()=>{Qs(e),Qs(a.signal);const t=await r({pause:tc(a.signal),delay:rc(a.signal),signal:a.signal});return Qs(a.signal),t},()=>a.abort(Us));return n?.autoJoin&&t.push(o.catch(Xs)),{result:tc(e)(o),cancel(){a.abort(Ws)}}},lc=(e,t)=>(r,n)=>Zs((async(r,n)=>{Qs(t);let a=()=>{};const i=[new Promise((t,n)=>{let i=e({predicate:r,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});a=()=>{i(),n()}})];null!=n&&i.push(new Promise(e=>setTimeout(e,n,null)));try{const e=await ec(t,Promise.race(i));return Qs(t),e}finally{a()}})(r,n)),sc=e=>{let{type:t,actionCreator:r,matcher:n,predicate:a,effect:i}=e;if(t)a=ps(t).match;else if(r)t=r.type,a=r.match;else if(n)a=n;else if(!a)throw new Error("production"===process.env.NODE_ENV?gc(21):"Creating or removing a listener requires one of the known fields for matching an action");return Gs(i,"options.listener"),{predicate:a,type:t,effect:i}},cc=nc(e=>{const{type:t,predicate:r,effect:n}=sc(e);return{id:Ds(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error("production"===process.env.NODE_ENV?gc(22):"Unsubscribe not initialized")}}},{withTypes:()=>cc}),uc=(e,t)=>{const{type:r,effect:n,predicate:a}=sc(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===a)&&e.effect===n)},dc=e=>{e.pending.forEach(e=>{e.abort(Hs)})},fc=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},pc=nc(ps(`${ic}/add`),{withTypes:()=>pc}),hc=ps(`${ic}/removeAll`),vc=nc(ps(`${ic}/remove`),{withTypes:()=>vc}),yc=(...e)=>{console.error(`${ic}/error`,...e)},mc=(e={})=>{const t=new Map,r=new Map,{extra:n,onError:a=yc}=e;Gs(a,"onError");const i=e=>(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&dc(e)}))(uc(t,e)??cc(e));nc(i,{withTypes:()=>i});const o=e=>{const r=uc(t,e);return r&&(r.unsubscribe(),e.cancelActive&&dc(r)),!!r};nc(o,{withTypes:()=>o});const l=async(e,o,l,s)=>{const c=new AbortController,u=lc(i,c.signal),d=[];try{e.pending.add(c),(e=>{const t=r.get(e)??0;r.set(e,t+1)})(e),await Promise.resolve(e.effect(o,nc({},l,{getOriginalState:s,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:rc(c.signal),pause:tc(c.signal),extra:n,signal:c.signal,fork:oc(c.signal,d),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==c&&(e.abort(Hs),r.delete(e))})},cancel:()=>{c.abort(Hs),e.pending.delete(c)},throwIfCancelled:()=>{Qs(c.signal)}})))}catch(e){e instanceof Ys||fc(a,e,{raisedBy:"effect"})}finally{await Promise.all(d),c.abort(qs),(e=>{const t=r.get(e)??1;1===t?r.delete(e):r.set(e,t-1)})(e),e.pending.delete(c)}},s=((e,t)=>()=>{for(const e of t.keys())dc(e);e.clear()})(t,r);return{middleware:e=>r=>n=>{if(!Go(n))return r(n);if(pc.match(n))return i(n.payload);if(hc.match(n))return void s();if(vc.match(n))return o(n.payload);let c=e.getState();const u=()=>{if(c===ac)throw new Error("production"===process.env.NODE_ENV?gc(23):`${ic}: getOriginalState can only be called synchronously`);return c};let d;try{if(d=r(n),t.size>0){const r=e.getState(),i=Array.from(t.values());for(const t of i){let i=!1;try{i=t.predicate(n,r,c)}catch(e){i=!1,fc(a,e,{raisedBy:"predicate"})}i&&l(t,n,e,u)}}}finally{c=ac}return d},startListening:i,stopListening:o,clearListeners:s}};function gc(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var bc=Rs({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,a,i;e.margin.top=null!==(r=t.payload.top)&&void 0!==r?r:0,e.margin.right=null!==(n=t.payload.right)&&void 0!==n?n:0,e.margin.bottom=null!==(a=t.payload.bottom)&&void 0!==a?a:0,e.margin.left=null!==(i=t.payload.left)&&void 0!==i?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:xc,setLayout:wc,setChartSize:Oc,setScale:Ec}=bc.actions,Sc=bc.reducer;function Pc(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function jc(e){return Number.isFinite(e)}function kc(e){return"number"==typeof e&&e>0&&Number.isFinite(e)}function Ac(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Nc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ac(Object(r),!0).forEach(function(t){_c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ac(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _c(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tc(e,t,r){return Dn(e)||Dn(t)?r:kn(t)?xn(e,t,r):"function"==typeof t?t(e):r}var Ic=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,Mc=(e,t,r,n)=>{if(n)return e.map(e=>e.coordinate);var a,i,o=e.map(e=>(e.coordinate===t&&(a=!0),e.coordinate===r&&(i=!0),e.coordinate));return a||o.push(t),i||o.push(r),o},Dc=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:a,range:i,scale:o,realScaleType:l,isCategorical:s,categoricalDomain:c,tickCount:u,ticks:d,niceTicks:f,axisType:p}=e;if(!o)return null;var h="scaleBand"===l&&o.bandwidth?o.bandwidth()/2:2,v="category"===a&&o.bandwidth?o.bandwidth()/h:0;return v="angleAxis"===p&&i&&i.length>=2?2*En(i[0]-i[1])*v:v,d||f?(d||f||[]).map((e,t)=>{var r=n?n.indexOf(e):e,a=o.map(r);return jc(a)?{coordinate:a+v,value:e,offset:v,index:t}:null}).filter(zn):s&&c?c.map((e,t)=>{var r=o.map(e);return jc(r)?{coordinate:r+v,value:e,index:t,offset:v}:null}).filter(zn):o.ticks&&null!=u?o.ticks(u).map((e,t)=>{var r=o.map(e);return jc(r)?{coordinate:r+v,value:e,index:t,offset:v}:null}).filter(zn):o.domain().map((e,t)=>{var r=o.map(e);return jc(r)?{coordinate:r+v,value:n?n[e]:e,index:t,offset:v}:null}).filter(zn)},Cc={sign:e=>{var t,r=e.length;if(!(r<=0)){var n=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==n||n<=0))for(var a=0;a<n;++a)for(var i=0,o=0,l=0;l<r;++l){var s=e[l],c=null==s?void 0:s[a];if(null!=c){var u=c[1],d=c[0],f=Sn(u)?d:u;f>=0?(c[0]=i,i+=f,c[1]=i):(c[0]=o,o+=f,c[1]=o)}}}},expand:function(e,t){if((n=e.length)>0){for(var r,n,a,i=0,o=e[0].length;i<o;++i){for(a=r=0;r<n;++r)a+=e[r][i][1]||0;if(a)for(r=0;r<n;++r)e[r][i][1]/=a}qr(e,t)}},none:qr,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,a=e[t[0]],i=a.length;n<i;++n){for(var o=0,l=0;o<r;++o)l+=e[o][n][1]||0;a[n][1]+=a[n][0]=-l/2}qr(e,t)}},wiggle:function(e,t){if((a=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,a,i=0,o=1;o<n;++o){for(var l=0,s=0,c=0;l<a;++l){for(var u=e[t[l]],d=u[o][1]||0,f=(d-(u[o-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];f+=(h[o][1]||0)-(h[o-1][1]||0)}s+=d,c+=f*d}r[o-1][1]+=r[o-1][0]=i,s&&(i-=c/s)}r[o-1][1]+=r[o-1][0]=i,qr(e,t)}},positive:e=>{var t,r=e.length;if(!(r<=0)){var n=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==n||n<=0))for(var a=0;a<n;++a)for(var i=0,o=0;o<r;++o){var l=e[o],s=null==l?void 0:l[a];if(null!=s){var c=Sn(s[1])?s[0]:s[1];c>=0?(s[0]=i,i+=c,s[1]=i):(s[0]=0,s[1]=0)}}}}},zc=(e,t,r)=>{var n,a=null!==(n=Cc[r])&&void 0!==n?n:qr,i=function(){var e=qt([]),t=Yr,r=qr,n=Gr;function a(a){var i,o,l=Array.from(e.apply(this,arguments),Xr),s=l.length,c=-1;for(const e of a)for(i=0,++c;i<s;++i)(l[i][c]=[0,+n(e,l[i].key,c,a)]).data=e;for(i=0,o=or(t(l));i<s;++i)l[o[i]].index=i;return r(l,o),l}return a.keys=function(t){return arguments.length?(e="function"==typeof t?t:qt(Array.from(t)),a):e},a.value=function(e){return arguments.length?(n="function"==typeof e?e:qt(+e),a):n},a.order=function(e){return arguments.length?(t=null==e?Yr:"function"==typeof e?e:qt(Array.from(e)),a):t},a.offset=function(e){return arguments.length?(r=null==e?qr:e,a):r},a}().keys(t).value((e,t)=>Number(Tc(e,t,0))).order(Yr).offset(a),o=i(e);return o.forEach((r,n)=>{r.forEach((r,a)=>{var i=Tc(e[a],t[n],0);Array.isArray(i)&&2===i.length&&jn(i[0])&&jn(i[1])&&(r[0]=i[0],r[1]=i[1])})}),o};function Lc(e){return null==e?void 0:String(e)}function Bc(e){var{axis:t,ticks:r,bandSize:n,entry:a,index:i,dataKey:o}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Dn(a[t.dataKey])){var l=Mn(r,"value",a[t.dataKey]);if(l)return l.coordinate+n/2}return null!=r&&r[i]?r[i].coordinate+n/2:null}var s=Tc(a,Dn(o)?t.dataKey:o),c=t.scale.map(s);return jn(c)?c:null}var Rc=e=>{var{axis:t,ticks:r,offset:n,bandSize:a,entry:i,index:o}=e;if("category"===t.type)return r[o]?r[o].coordinate+n:null;var l=Tc(i,t.dataKey,t.scale.domain()[o]);if(Dn(l))return null;var s=t.scale.map(l);return jn(s)?s-a/2+n:null},Vc=(e,t,r)=>{var n;if(null!=e)return n=Object.keys(e).reduce((n,a)=>{var i=e[a];if(!i)return n;var{stackedData:o}=i,l=o.reduce((e,n)=>{var a,i=Pc(n,t,r),o=(a=i.flat(2).filter(jn),[Math.min(...a),Math.max(...a)]);return jc(o[0])&&jc(o[1])?[Math.min(e[0],o[0]),Math.max(e[1],o[1])]:e},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]),[n[0]===1/0?0:n[0],n[1]===-1/0?0:n[1]]},Kc=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,$c=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Fc=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var a=zo(t,e=>e.coordinate),i=1/0,o=1,l=a.length;o<l;o++){var s=a[o],c=a[o-1];i=Math.min(((null==s?void 0:s.coordinate)||0)-((null==c?void 0:c.coordinate)||0),i)}return i===1/0?0:i}return r?void 0:0};function Wc(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:a,name:i}=e;return Nc(Nc({},t),{},{dataKey:r,payload:n,value:a,name:i})}function Uc(e,t){return e?String(e):"string"==typeof t?t:void 0}var Hc=e=>e.layout.width,qc=e=>e.layout.height,Yc=e=>e.layout.scale,Gc=e=>e.layout.margin,Xc=uo(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Zc=uo(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Jc="data-recharts-item-id";function Qc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function eu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qc(Object(r),!0).forEach(function(t){tu(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ru,nu,au,iu,ou,lu=uo([Hc,qc,Gc,e=>e.brush.height,function(e){return Zc(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return Zc(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return Xc(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return Xc(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},Lo,e=>e.legend.size],(e,t,r,n,a,i,o,l,s,c)=>{var u={left:(r.left||0)+a,right:(r.right||0)+i},d=eu(eu({},{top:(r.top||0)+o,bottom:(r.bottom||0)+l}),u),f=d.bottom;d.bottom+=n,d=((e,t,r)=>{if(t&&r){var{width:n,height:a}=r,{align:i,verticalAlign:o,layout:l}=t;if(("vertical"===l||"horizontal"===l&&"middle"===o)&&"center"!==i&&jn(e[i]))return Nc(Nc({},e),{},{[i]:e[i]+(n||0)});if(("horizontal"===l||"vertical"===l&&"center"===i)&&"middle"!==o&&jn(e[o]))return Nc(Nc({},e),{},{[o]:e[o]+(a||0)})}return e})(d,s,c);var p=e-d.left-d.right,h=t-d.top-d.bottom;return eu(eu({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(h,0)})}),su=uo(lu,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),cu=uo(Hc,qc,(e,t)=>({x:0,y:0,width:e,height:t})),uu=o(null),du=()=>null!=l(uu),fu=e=>e.brush,pu=uo([fu,lu,Gc],(e,t,r)=>({height:e.height,x:jn(e.x)?e.x:t.left,y:jn(e.y)?e.y:t.top+t.height+t.brushBottom-((null==r?void 0:r.bottom)||0),width:jn(e.width)?e.width:t.width})),hu={},vu={},yu={};function mu(){return ru||(ru=1,e=yu,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.debounce=function(e,t,{signal:r,edges:n}={}){let a,i=null;const o=null!=n&&n.includes("leading"),l=null==n||n.includes("trailing"),s=()=>{null!==i&&(e.apply(a,i),a=void 0,i=null)};let c=null;const u=()=>{null!=c&&clearTimeout(c),c=setTimeout(()=>{c=null,l&&s(),d()},t)},d=()=>{null!==c&&(clearTimeout(c),c=null),a=void 0,i=null},f=function(...e){if(r?.aborted)return;a=this,i=e;const t=null==c;u(),o&&t&&s()};return f.schedule=u,f.cancel=d,f.flush=()=>{s()},r?.addEventListener("abort",d,{once:!0}),f}),yu;var e}function gu(){return nu||(nu=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mu();e.debounce=function(e,r=0,n={}){"object"!=typeof n&&(n={});const{leading:a=!1,trailing:i=!0,maxWait:o}=n,l=Array(2);let s;a&&(l[0]="leading"),i&&(l[1]="trailing");let c=null;const u=t.debounce(function(...t){s=e.apply(this,t),c=null},r,{edges:l}),d=function(...t){return null!=o&&(null===c&&(c=Date.now()),Date.now()-c>=o)?(s=e.apply(this,t),c=Date.now(),u.cancel(),u.schedule(),s):(u.apply(this,t),s)};return d.cancel=u.cancel,d.flush=()=>(u.flush(),s),d}}(vu)),vu}function bu(){return au||(au=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=gu();e.throttle=function(e,r=0,n={}){const{leading:a=!0,trailing:i=!0}=n;return t.debounce(e,r,{leading:a,maxWait:r,trailing:i})}}(hu)),hu}function xu(){return ou?iu:(ou=1,iu=bu().throttle)}var wu=Zr(xu()),Ou=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if("undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,()=>n[i++]))}},Eu={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},Su=(e,t,r)=>{var{width:n=Eu.width,height:a=Eu.height,aspect:i,maxHeight:o}=r,l=Pn(n)?e:Number(n),s=Pn(a)?t:Number(a);return i&&i>0&&(l?s=l/i:s&&(l=s*i),o&&null!=s&&s>o&&(s=o)),{calculatedWidth:l,calculatedHeight:s}},Pu={width:0,height:0,overflow:"visible"},ju={width:0,overflowX:"visible"},ku={height:0,overflowY:"visible"},Au={},Nu=e=>{var{width:t,height:r}=e,n=Pn(t),a=Pn(r);return n&&a?Pu:n?ju:a?ku:Au};function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_u.apply(null,arguments)}function Tu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Iu(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tu(Object(r),!0).forEach(function(t){Mu(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Mu(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Du=o(Eu.initialDimension);function Cu(e){var{children:t,width:n,height:a}=e,i=s(()=>({width:n,height:a}),[n,a]);return function(e){return kc(e.width)&&kc(e.height)}(i)?r.createElement(Du.Provider,{value:i},t):null}var zu=()=>l(Du),Lu=i((e,t)=>{var{aspect:n,initialDimension:a=Eu.initialDimension,width:i,height:o,minWidth:l=Eu.minWidth,minHeight:s,maxHeight:h,children:v,debounce:y=Eu.debounce,id:m,className:g,onResize:b,style:x={}}=e,w=d(null),O=d();O.current=b,f(t,()=>w.current);var[E,P]=c({containerWidth:a.width,containerHeight:a.height}),j=u((e,t)=>{P(r=>{var n=Math.round(e),a=Math.round(t);return r.containerWidth===n&&r.containerHeight===a?r:{containerWidth:n,containerHeight:a}})},[]);p(()=>{if(null==w.current||"undefined"==typeof ResizeObserver)return Ln;var e=e=>{var t,r=e[0];if(null!=r){var{width:n,height:a}=r.contentRect;j(n,a),null===(t=O.current)||void 0===t||t.call(O,n,a)}};y>0&&(e=wu(e,y,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:r,height:n}=w.current.getBoundingClientRect();return j(r,n),t.observe(w.current),()=>{t.disconnect()}},[j,y]);var{containerWidth:k,containerHeight:A}=E;Ou(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:N,calculatedHeight:_}=Su(k,A,{width:i,height:o,aspect:n,maxHeight:h});return Ou(null!=N&&N>0||null!=_&&_>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,o,l,s,n),r.createElement("div",{id:m?"".concat(m):void 0,className:S("recharts-responsive-container",g),style:Iu(Iu({},x),{},{width:i,height:o,minWidth:l,minHeight:s,maxHeight:h}),ref:w},r.createElement("div",{style:Nu({width:i,height:o})},r.createElement(Cu,{width:N,height:_},v)))}),Bu=i((e,t)=>{var n=zu();if(kc(n.width)&&kc(n.height))return e.children;var{width:a,height:i}=function(e){var{width:t,height:r,aspect:n}=e,a=t,i=r;return void 0===a&&void 0===i?(a=Eu.width,i=Eu.height):void 0===a?a=n&&n>0?void 0:Eu.width:void 0===i&&(i=n&&n>0?void 0:Eu.height),{width:a,height:i}}({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:l}=Su(void 0,void 0,{width:a,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return jn(o)&&jn(l)?r.createElement(Cu,{width:o,height:l},e.children):r.createElement(Lu,_u({},e,{width:a,height:i,ref:t}))});function Ru(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Vu=()=>{var e,t=du(),r=Ji(su),n=Ji(pu),a=null===(e=Ji(fu))||void 0===e?void 0:e.padding;return t&&n&&a?{width:n.width-a.left-a.right,height:n.height-a.top-a.bottom,x:a.left,y:a.top}:r},Ku={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},$u=()=>{var e;return null!==(e=Ji(lu))&&void 0!==e?e:Ku},Fu=()=>Ji(Hc),Wu=()=>Ji(qc),Uu=e=>e.layout.layoutType,Hu=()=>Ji(Uu),qu=()=>{var e=Hu();if("horizontal"===e||"vertical"===e)return e},Yu=e=>{var t=e.layout.layoutType;if("centric"===t||"radial"===t)return t},Gu=e=>{var t=Yi(),r=du(),{width:n,height:a}=e,i=zu(),o=n,l=a;return i&&(o=i.width>0?i.width:n,l=i.height>0?i.height:a),p(()=>{!r&&kc(o)&&kc(l)&&t(Oc({width:o,height:l}))},[t,r,o,l]),null},Xu=Symbol.for("immer-nothing"),Zu=Symbol.for("immer-draftable"),Ju=Symbol.for("immer-state"),Qu="production"!==process.env.NODE_ENV?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function ed(e,...t){if("production"!==process.env.NODE_ENV){const r=Qu[e],n="function"==typeof r?r.apply(null,t):r;throw new Error(`[Immer] ${n}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var td=Object.getPrototypeOf;function rd(e){return!!e&&!!e[Ju]}function nd(e){return!!e&&(od(e)||Array.isArray(e)||!!e[Zu]||!!e.constructor?.[Zu]||dd(e)||fd(e))}var ad=Object.prototype.constructor.toString(),id=new WeakMap;function od(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=id.get(r);return void 0===n&&(n=Function.toString.call(r),id.set(r,n)),n===ad}function ld(e,t,r=!0){if(0===sd(e)){(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)})}else e.forEach((r,n)=>t(n,r,e))}function sd(e){const t=e[Ju];return t?t.type_:Array.isArray(e)?1:dd(e)?2:fd(e)?3:0}function cd(e,t){return 2===sd(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ud(e,t,r){const n=sd(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function dd(e){return e instanceof Map}function fd(e){return e instanceof Set}function pd(e){return e.copy_||e.base_}function hd(e,t){if(dd(e))return new Map(e);if(fd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=od(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[Ju];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const a=r[n],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(td(e),t)}{const t=td(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function vd(e,t=!1){return md(e)||rd(e)||!nd(e)||(sd(e)>1&&Object.defineProperties(e,{set:yd,add:yd,clear:yd,delete:yd}),Object.freeze(e),t&&Object.values(e).forEach(e=>vd(e,!0))),e}var yd={value:function(){ed(2)}};function md(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var gd,bd={};function xd(e){const t=bd[e];return t||ed(0,e),t}function wd(){return gd}function Od(e,t){t&&(xd("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ed(e){Sd(e),e.drafts_.forEach(jd),e.drafts_=null}function Sd(e){e===gd&&(gd=e.parent_)}function Pd(e){return gd={drafts_:[],parent_:gd,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jd(e){const t=e[Ju];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function kd(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[Ju].modified_&&(Ed(t),ed(4)),nd(e)&&(e=Ad(t,e),t.parent_||_d(t,e)),t.patches_&&xd("Patches").generateReplacementPatches_(r[Ju].base_,e,t.patches_,t.inversePatches_)):e=Ad(t,r,[]),Ed(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Xu?e:void 0}function Ad(e,t,r){if(md(t))return t;const n=e.immer_.shouldUseStrictIteration(),a=t[Ju];if(!a)return ld(t,(n,i)=>Nd(e,a,t,n,i,r),n),t;if(a.scope_!==e)return t;if(!a.modified_)return _d(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const t=a.copy_;let i=t,o=!1;3===a.type_&&(i=new Set(t),t.clear(),o=!0),ld(i,(n,i)=>Nd(e,a,t,n,i,r,o),n),_d(e,t,!1),r&&e.patches_&&xd("Patches").generatePatches_(a,r,e.patches_,e.inversePatches_)}return a.copy_}function Nd(e,t,r,n,a,i,o){if(null==a)return;if("object"!=typeof a&&!o)return;const l=md(a);if(!l||o){if("production"!==process.env.NODE_ENV&&a===r&&ed(5),rd(a)){const o=Ad(e,a,i&&t&&3!==t.type_&&!cd(t.assigned_,n)?i.concat(n):void 0);if(ud(r,n,o),!rd(o))return;e.canAutoFreeze_=!1}else o&&r.add(a);if(nd(a)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[n]===a&&l)return;Ad(e,a),t&&t.scope_.parent_||"symbol"==typeof n||!(dd(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))||_d(e,a)}}}function _d(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&vd(t,r)}var Td={get(e,t){if(t===Ju)return e;const r=pd(e);if(!cd(r,t))return function(e,t,r){const n=Dd(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!nd(n)?n:n===Md(e.base_,t)?(zd(e),e.copy_[t]=Ld(n,e)):n},has:(e,t)=>t in pd(e),ownKeys:e=>Reflect.ownKeys(pd(e)),set(e,t,r){const n=Dd(pd(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=Md(pd(e),t),a=n?.[Ju];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,n)&&(void 0!==r||cd(e.base_,t)))return!0;zd(e),Cd(e)}return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Md(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,zd(e),Cd(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=pd(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){ed(11)},getPrototypeOf:e=>td(e.base_),setPrototypeOf(){ed(12)}},Id={};function Md(e,t){const r=e[Ju];return(r?pd(r):e)[t]}function Dd(e,t){if(!(t in e))return;let r=td(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=td(r)}}function Cd(e){e.modified_||(e.modified_=!0,e.parent_&&Cd(e.parent_))}function zd(e){e.copy_||(e.copy_=hd(e.base_,e.scope_.immer_.useStrictShallowCopy_))}ld(Td,(e,t)=>{Id[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Id.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&ed(13),Id.set.call(this,e,t,void 0)},Id.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&ed(14),Td.set.call(this,e[0],t,r,e[0])};function Ld(e,t){const r=dd(e)?xd("MapSet").proxyMap_(e,t):fd(e)?xd("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:wd(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=n,i=Td;r&&(a=[n],i=Id);const{revoke:o,proxy:l}=Proxy.revocable(a,i);return n.draft_=l,n.revoke_=o,l}(e,t);return(t?t.scope_:wd()).drafts_.push(r),r}function Bd(e){if(!nd(e)||md(e))return e;const t=e[Ju];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=hd(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=hd(e,!0);return ld(r,(e,t)=>{ud(r,e,Bd(t))},n),t&&(t.finalized_=!1),r}var Rd=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...a){return n.produce(e,e=>t.call(this,e,...a))}}let n;if("function"!=typeof t&&ed(6),void 0!==r&&"function"!=typeof r&&ed(7),nd(e)){const a=Pd(this),i=Ld(e,void 0);let o=!0;try{n=t(i),o=!1}finally{o?Ed(a):Sd(a)}return Od(a,r),kd(n,a)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===Xu&&(n=void 0),this.autoFreeze_&&vd(n,!0),r){const t=[],a=[];xd("Patches").generateReplacementPatches_(e,n,t,a),r(t,a)}return n}ed(1,e)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){nd(e)||ed(8),rd(e)&&(e=function(e){rd(e)||ed(10,e);return Bd(e)}(e));const t=Pd(this),r=Ld(e,void 0);return r[Ju].isManual_=!0,Sd(t),r}finishDraft(e,t){const r=e&&e[Ju];r&&r.isManual_||ed(9);const{scope_:n}=r;return Od(n,t),kd(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=xd("Patches").applyPatches_;return rd(e)?n(e,t):this.produce(e,e=>n(e,t))}};Rd.produce;var Vd,Kd=Rs({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Ns()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,a=is(e).payload.indexOf(r);a>-1&&(e.payload[a]=n)},prepare:Ns()},removeLegendPayload:{reducer(e,t){var r=is(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Ns()}}}),{setLegendSize:$d,setLegendSettings:Fd,addLegendPayload:Wd,replaceLegendPayload:Ud,removeLegendPayload:Hd}=Kd.actions,qd=Kd.reducer,Yd={exports:{}},Gd={};var Xd,Zd,Jd={};
29
29
  /**
30
30
  * @license React
31
31
  * use-sync-external-store-with-selector.development.js
@@ -34,7 +34,7 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as r from"react";import
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */bd||(bd=1,"production"===process.env.NODE_ENV?yd.exports=function(){if(sd)return md;sd=1;var e=n,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,l=e.useDebugValue;return md.useSyncExternalStoreWithSelector=function(e,n,s,c,u){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=o(function(){function e(e){if(!a){if(a=!0,r=e,e=c(e),void 0!==u&&f.hasValue){var n=f.value;if(u(n,e))return i=n}return i=e}if(n=i,t(r,e))return n;var o=c(e);return void 0!==u&&u(n,o)?(r=e,n):(r=e,i=o)}var r,i,a=!1,o=void 0===s?null:s;return[function(){return e(n())},null===o?void 0:function(){return e(o())}]},[n,s,c,u]);var p=r(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),l(p),p},md}():yd.exports=(gd||(gd=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=n,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,l=e.useDebugValue;xd.useSyncExternalStoreWithSelector=function(e,n,s,c,u){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=o(function(){function e(e){if(!a){if(a=!0,r=e,e=c(e),void 0!==u&&f.hasValue){var n=f.value;if(u(n,e))return i=n}return i=e}if(n=i,t(r,e))return n;var o=c(e);return void 0!==u&&u(n,o)?(r=e,n):(r=e,i=o)}var r,i,a=!1,o=void 0===s?null:s;return[function(){return e(n())},null===o?void 0:function(){return e(o())}]},[n,s,c,u]);var p=r(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),l(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),xd)),yd.exports;var wd={notify(){},get:()=>[]};var Od=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),Ed=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),Sd=(()=>Od||Ed?r.useLayoutEffect:r.useEffect)();function Pd(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function jd(e,t){if(Pd(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Pd(e[r[n]],t[r[n]]))return!1;return!0}var Ad=Symbol.for("react-redux-context"),kd="undefined"!=typeof globalThis?globalThis:{};function _d(){if(!r.createContext)return{};const e=kd[Ad]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),"production"!==process.env.NODE_ENV&&(t.displayName="ReactRedux"),e.set(r.createContext,t)),t}var Nd=_d();var Md=function(e){const{children:t,context:n,serverState:i,store:a}=e,o=r.useMemo(()=>{const t=function(e){let t,r=wd,n=0,i=!1;function a(){s.onStateChange&&s.onStateChange()}function o(){n++,t||(t=e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){var t;t=()=>{let t=e;for(;t;)t.callback(),t=t.next},t()},get(){const t=[];let r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){n&&null!==e&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){n--,t&&0===n&&(t(),t=void 0,r.clear(),r=wd)}const s={addNestedSub:function(e){o();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,o())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>r};return s}(a),r={store:a,subscription:t,getServerState:i?()=>i:void 0};if("production"===process.env.NODE_ENV)return r;{const{identityFunctionCheck:t="once",stabilityCheck:n="once"}=e;return Object.assign(r,{stabilityCheck:n,identityFunctionCheck:t})}},[a,i]),l=r.useMemo(()=>a.getState(),[a]);Sd(()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,l]);const s=n||Nd;return r.createElement(s.Provider,{value:o},t)},Td=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function Id(e,t){return null==e&&null==t||("number"==typeof e&&"number"==typeof t?e===t||e!=e&&t!=t:e===t)}function Dd(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(Td.has(n)){if(null==e[n]&&null==t[n])continue;if(!jd(e[n],t[n]))return!1}else if(!Id(e[n],t[n]))return!1;return!0}function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cd.apply(null,arguments)}function zd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ld(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zd(Object(r),!0).forEach(function(t){Bd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Bd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rd(e){return Array.isArray(e)&&Yr(e[0])&&Yr(e[1])?e.join(" ~ "):e}var Vd={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};var Kd=e=>{var{separator:t=Vd.separator,contentStyle:n,itemStyle:i,labelStyle:a=Vd.labelStyle,payload:o,formatter:l,itemSorter:s,wrapperClassName:c,labelClassName:u,label:d,labelFormatter:f,accessibilityLayer:p=Vd.accessibilityLayer}=e,h=Ld(Ld({},Vd.contentStyle),n),v=Ld({margin:0},a),y=!tn(d),m=y?d:"",g=S("recharts-default-tooltip",c),b=S("recharts-tooltip-label",u);y&&f&&null!=o&&(m=f(d,o));var x=p?{role:"status","aria-live":"assertive"}:{};return r.createElement("div",Cd({className:g,style:h},x),r.createElement("p",{className:b,style:v},r.isValidElement(m)?m:"".concat(m)),(()=>{if(o&&o.length){var e=function(e,t){return null==t?e:no(e,t)}(o,s),n=e.map((e,n)=>{if(!e||"none"===e.type)return null;var a=e.formatter||l||Rd,{value:s,name:c}=e,u=s,d=c;if(a){var f=a(s,c,e,n,o);if(Array.isArray(f))[u,d]=f;else{if(null==f)return null;u=f}}var p=Ld(Ld({},Vd.itemStyle),{},{color:e.color||Vd.itemStyle.color},i);return r.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:p},Yr(d)?r.createElement("span",{className:"recharts-tooltip-item-name"},d):null,Yr(d)?r.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,r.createElement("span",{className:"recharts-tooltip-item-value"},u),r.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return r.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},n)}return null})())},$d="recharts-tooltip-wrapper",Fd={visibility:"hidden"};function Wd(e){var{coordinate:t,translateX:r,translateY:n}=e;return S($d,{["".concat($d,"-right")]:qr(r)&&t&&qr(t.x)&&r>=t.x,["".concat($d,"-left")]:qr(r)&&t&&qr(t.x)&&r<t.x,["".concat($d,"-bottom")]:qr(n)&&t&&qr(t.y)&&n>=t.y,["".concat($d,"-top")]:qr(n)&&t&&qr(t.y)&&n<t.y})}function Ud(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:o,tooltipDimension:l,viewBox:s,viewBoxDimension:c}=e;if(a&&qr(a[n]))return a[n];var u=r[n]-l-(i>0?i:0),d=r[n]+i;if(t[n])return o[n]?u:d;var f=s[n];return null==f?0:o[n]?u<f?Math.max(d,f):Math.max(u,f):null==c?0:d+l>f+c?Math.max(u,f):Math.max(d,f)}var Hd=!("undefined"!=typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function qd(){var[e,t]=c(()=>!Hd&&(!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches));return p(()=>{if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{t(e.matches)};return e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}}},[]),e}function Yd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Gd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yd(Object(r),!0).forEach(function(t){Xd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Xd(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zd(e){if(!e.prefersReducedMotion||"auto"!==e.isAnimationActive)return e.isAnimationActive&&e.active?"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing):void 0}function Jd(e){var t,n,i,a,o,l,s=qd(),[c,u]=r.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));r.useEffect(()=>{var t=t=>{var r,n,i,a;"Escape"===t.key&&u({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=e.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(i=null===(a=e.coordinate)||void 0===a?void 0:a.y)&&void 0!==i?i:0}})};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[null===(t=e.coordinate)||void 0===t?void 0:t.x,null===(n=e.coordinate)||void 0===n?void 0:n.y]),!c.dismissed||(null!==(i=null===(a=e.coordinate)||void 0===a?void 0:a.x)&&void 0!==i?i:0)===c.dismissedAtCoordinate.x&&(null!==(o=null===(l=e.coordinate)||void 0===l?void 0:l.y)&&void 0!==o?o:0)===c.dismissedAtCoordinate.y||u(Gd(Gd({},c),{},{dismissed:!1}));var{cssClasses:d,cssProperties:f}=function(e){var t,r,n,{allowEscapeViewBox:i,coordinate:a,offsetTop:o,offsetLeft:l,position:s,reverseDirection:c,tooltipBox:u,useTranslate3d:d,viewBox:f}=e;return t=u.height>0&&u.width>0&&a?function(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}({translateX:r=Ud({allowEscapeViewBox:i,coordinate:a,key:"x",offset:l,position:s,reverseDirection:c,tooltipDimension:u.width,viewBox:f,viewBoxDimension:f.width}),translateY:n=Ud({allowEscapeViewBox:i,coordinate:a,key:"y",offset:o,position:s,reverseDirection:c,tooltipDimension:u.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:d}):Fd,{cssProperties:t,cssClasses:Wd({translateX:r,translateY:n,coordinate:a})}}({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:"number"==typeof e.offset?e.offset:e.offset.x,offsetTop:"number"==typeof e.offset?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),p=e.hasPortalFromProps?{}:Gd(Gd({transition:Zd({prefersReducedMotion:s,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},f),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),h=Gd(Gd({},p),{},{visibility:!c.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return r.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:d,style:h,ref:e.innerRef},e.children)}var Qd=r.memo(Jd),ef=()=>{var e;return null===(e=xa(e=>e.rootProps.accessibilityLayer))||void 0===e||e};function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tf.apply(null,arguments)}function rf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rf(Object(r),!0).forEach(function(t){af(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function af(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var of={curveBasisClosed:function(e){return new rr(e)},curveBasisOpen:function(e){return new nr(e)},curveBasis:function(e){return new tr(e)},curveBumpX:function(e){return new Ct(e,!0)},curveBumpY:function(e){return new Ct(e,!1)},curveLinearClosed:function(e){return new ir(e)},curveLinear:Nt,curveMonotoneX:function(e){return new cr(e)},curveMonotoneY:function(e){return new ur(e)},curveNatural:function(e){return new fr(e)},curveStep:function(e){return new hr(e,.5)},curveStepAfter:function(e){return new hr(e,1)},curveStepBefore:function(e){return new hr(e,0)}},lf=e=>Ys(e.x)&&Ys(e.y),sf=e=>null!=e.base&&lf(e.base)&&lf(e),cf=e=>e.x,uf=e=>e.y,df={connectNulls:!1,type:"linear"},ff=e=>{var{type:t=df.type,points:r=[],baseLine:n,layout:i,connectNulls:a=df.connectNulls}=e,o=((e,t)=>{if("function"==typeof e)return e;var r="curve".concat(rn(e));if(("curveMonotone"===r||"curveBump"===r)&&t){var n=of["".concat(r).concat("vertical"===t?"Y":"X")];if(n)return n}return of[r]||Nt})(t,i),l=a?r.filter(lf):r;if(Array.isArray(n)){var s=r.map((e,t)=>nf(nf({},e),{},{base:n[t]}));return("vertical"===i?Dt().y(uf).x1(cf).x0(e=>e.base.x):Dt().x(cf).y1(uf).y0(e=>e.base.y)).defined(sf).curve(o)(a?s.filter(sf):s)}return("vertical"===i&&qr(n)?Dt().y(uf).x1(cf).x0(n):qr(n)?Dt().x(cf).y1(uf).y0(n):It().x(cf).y(uf)).defined(lf).curve(o)(l)},pf=e=>{var{className:t,points:n,path:i,pathRef:a}=e,o=hu();if(!(n&&n.length||i))return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},s=n&&n.length?ff(l):i;return r.createElement("path",tf({},at(e),vn(e),{className:S("recharts-curve",t),d:null===s?void 0:s,ref:a}))},hf=["x","y","top","left","width","height","className"];function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vf.apply(null,arguments)}function yf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function mf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gf=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),bf=e=>{var{x:t=0,y:n=0,top:i=0,left:a=0,width:o=0,height:l=0,className:s}=e,c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yf(Object(r),!0).forEach(function(t){mf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({x:t,y:n,top:i,left:a,width:o,height:l},function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,hf));return qr(t)&&qr(n)&&qr(o)&&qr(l)&&qr(i)&&qr(a)?r.createElement("path",vf({},lt(c),{className:S("recharts-cross",s),d:gf(t,n,o,l,i,a)})):null};function xf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xf(Object(r),!0).forEach(function(t){Of(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Of(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ef=(e,t,r)=>e.map(e=>{return"".concat((n=e,n.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())))," ").concat(t,"ms ").concat(r);var n}).join(","),Sf=(e,t)=>Object.keys(t).reduce((r,n)=>wf(wf({},r),{},{[n]:e(n,t[n])}),{});function Pf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pf(Object(r),!0).forEach(function(t){Af(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Af(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var kf=(e,t,r)=>e+(t-e)*r,_f=e=>{var{from:t,to:r}=e;return t!==r},Nf=(e,t,r)=>{var n=Sf((t,r)=>{if(_f(r)){var[n,i]=e(r.from,r.to,r.velocity);return jf(jf({},r),{},{from:n,velocity:i})}return r},t);return r<1?Sf((e,t)=>_f(t)&&null!=n[e]?jf(jf({},t),{},{velocity:kf(t.velocity,n[e].velocity,r),from:kf(t.from,n[e].from,r)}):t,t):Nf(e,n,r-1)};function Mf(e,t,r,n,i,a){var o,l=n.reduce((r,n)=>jf(jf({},r),{},{[n]:{from:e[n],velocity:0,to:t[n]}}),{}),s=null,c=n=>{o||(o=n);var u=(n-o)/r.dt;l=Nf(r,l,u),i(jf(jf(jf({},e),t),Sf((e,t)=>t.from,l))),o=n,Object.values(l).filter(_f).length&&(s=a.setTimeout(c))};return()=>(s=a.setTimeout(c),()=>{var e;null===(e=s)||void 0===e||e()})}var Tf=(e,t,r,n,i,a)=>{var o,l,s=(o=e,l=t,[Object.keys(o),Object.keys(l)].reduce((e,t)=>e.filter(e=>t.includes(e))));return null==r?()=>(i(jf(jf({},e),t)),()=>{}):!0===r.isStepper?Mf(e,t,r,s,i,a):function(e,t,r,n,i,a,o){var l,s=null,c=i.reduce((r,n)=>{var i=e[n],a=t[n];return null==i||null==a?r:jf(jf({},r),{},{[n]:[i,a]})},{}),u=i=>{l||(l=i);var d=(i-l)/n,f=Sf((e,t)=>kf(...t,r(d)),c);if(a(jf(jf(jf({},e),t),f)),d<1)s=o.setTimeout(u);else{var p=Sf((e,t)=>kf(...t,r(1)),c);a(jf(jf(jf({},e),t),p))}};return()=>(s=o.setTimeout(u),()=>{var e;null===(e=s)||void 0===e||e()})}(e,t,r,n,s,i,a)},If=1e-4,Df=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Cf=(e,t)=>e.map((e,r)=>e*t**r).reduce((e,t)=>e+t),zf=(e,t)=>r=>{var n=Df(e,t);return Cf(n,r)},Lf=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length)switch(t[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:var n=(e=>{var t,r=e.split("(");if(2!==r.length||"cubic-bezier"!==r[0])return null;var n=null===(t=r[1])||void 0===t||null===(t=t.split(")")[0])||void 0===t?void 0:t.split(",");if(null==n||4!==n.length)return null;var i=n.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]})(t[0]);if(n)return n}return 4===t.length?t:[0,0,1,1]},Bf=(e,t,r,n)=>{var i,a,o=zf(e,r),l=zf(t,n),s=(i=e,a=r,e=>{var t=[...Df(i,a).map((e,t)=>e*t).slice(1),0];return Cf(t,e)}),c=e=>e>1?1:e<0?0:e,u=e=>{for(var t=e>1?1:e,r=t,n=0;n<8;++n){var i=o(r)-t,a=s(r);if(Math.abs(i-t)<If||a<If)return l(r);r=c(r-i/a)}return l(r)};return u.isStepper=!1,u},Rf=function(){return Bf(...Lf(...arguments))},Vf=e=>{if("string"==typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Rf(e);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stiff:t=100,damping:r=8,dt:n=17}=e,i=(e,i,a)=>{var o=a+(-(e-i)*t-a*r)*n/1e3,l=a*n/1e3+e;return Math.abs(l-i)<If&&Math.abs(o)<If?[i,0]:[l,o]};return i.isStepper=!0,i.dt=n,i}();default:if("cubic-bezier"===e.split("(")[0])return Rf(e)}return"function"==typeof e?e:null};class Kf{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=performance.now(),n=null,i=a=>{a-r>=t?e(a):"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(i))};return n=requestAnimationFrame(i),()=>{null!=n&&cancelAnimationFrame(n)}}}function $f(){return e=new Kf,t=()=>null,r=!1,n=null,i=a=>{if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,[l,...s]=o;return"number"==typeof l?void(n=e.setTimeout(i.bind(null,s),l)):(i(l),void(n=e.setTimeout(i.bind(null,s))))}"string"==typeof a&&t(a),"object"==typeof a&&t(a),"function"==typeof a&&a()}},{stop:()=>{r=!0},start:e=>{r=!1,n&&(n(),n=null),i(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e};var e,t,r,n,i}var Ff=o($f);var Wf={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Uf={t:0},Hf={t:1};function qf(e){var t,r,n,i=bn(e,Wf),{isActive:a,canBegin:o,duration:u,easing:f,begin:h,onAnimationEnd:v,onAnimationStart:y,children:m}=i,g=qd(),b="auto"===a?!Hd&&!g:a,x=(t=i.animationId,r=i.animationManager,n=l(Ff),s(()=>null!=r?r:n(t),[t,r,n])),[w,O]=c(b?Uf:Hf),E=d(null);return p(()=>{b||O(Hf)},[b]),p(()=>{if(!b||!o)return an;var e=Tf(Uf,Hf,Vf(f),u,O,x.getTimeoutController());return x.start([y,h,()=>{E.current=e()},u,v]),()=>{x.stop(),E.current&&E.current(),v()}},[b,o,u,f,h,y,v,x]),m(w.t)}function Yf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",r=d(Xr(t)),n=d(e);return n.current!==e&&(r.current=Xr(t),n.current=e),r.current}var Gf,Xf,Zf,Jf,Qf,ep,tp,rp,np,ip,ap=["radius"],op=["radius"];function lp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lp(Object(r),!0).forEach(function(t){cp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function cp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function up(){return up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},up.apply(null,arguments)}function dp(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function fp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var pp=(e,t,r,n,i)=>{var a,o=$r(r),l=$r(n),s=Math.min(Math.abs(o)/2,Math.abs(l)/2),c=l>=0?1:-1,u=o>=0?1:-1,d=l>=0&&o>=0||l<0&&o<0?1:0;if(s>0&&Array.isArray(i)){for(var f=[0,0,0,0],p=0;p<4;p++){var h,v=null!==(h=i[p])&&void 0!==h?h:0;f[p]=v>s?s:v}a=Fr(Gf||(Gf=fp(["M",",",""])),e,t+c*f[0]),f[0]>0&&(a+=Fr(Xf||(Xf=fp(["A ",",",",0,0,",",",",",""])),f[0],f[0],d,e+u*f[0],t)),a+=Fr(Zf||(Zf=fp(["L ",",",""])),e+r-u*f[1],t),f[1]>0&&(a+=Fr(Jf||(Jf=fp(["A ",",",",0,0,",",\n ",",",""])),f[1],f[1],d,e+r,t+c*f[1])),a+=Fr(Qf||(Qf=fp(["L ",",",""])),e+r,t+n-c*f[2]),f[2]>0&&(a+=Fr(ep||(ep=fp(["A ",",",",0,0,",",\n ",",",""])),f[2],f[2],d,e+r-u*f[2],t+n)),a+=Fr(tp||(tp=fp(["L ",",",""])),e+u*f[3],t+n),f[3]>0&&(a+=Fr(rp||(rp=fp(["A ",",",",0,0,",",\n ",",",""])),f[3],f[3],d,e,t+n-c*f[3])),a+="Z"}else if(s>0&&i===+i&&i>0){var y=Math.min(s,i);a=Fr(np||(np=fp(["M ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",","," Z"])),e,t+c*y,y,y,d,e+u*y,t,e+r-u*y,t,y,y,d,e+r,t+c*y,e+r,t+n-c*y,y,y,d,e+r-u*y,t+n,e+u*y,t+n,y,y,d,e,t+n-c*y)}else a=Fr(ip||(ip=fp(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return a},hp={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},vp=e=>{var t=bn(e,hp),n=d(null),[i,a]=c(-1);p(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch(e){}},[]);var{x:o,y:l,width:u,height:f,radius:h,className:v}=t,{animationEasing:y,animationDuration:m,animationBegin:g,isAnimationActive:b,isUpdateAnimationActive:x}=t,w=d(u),O=d(f),E=d(o),P=d(l),j=Yf(s(()=>({x:o,y:l,width:u,height:f,radius:h}),[o,l,u,f,h]),"rectangle-");if(o!==+o||l!==+l||u!==+u||f!==+f||0===u||0===f)return null;var A=S("recharts-rectangle",v);if(!x){var k=lt(t),{radius:_}=k,N=dp(k,ap);return r.createElement("path",up({},N,{x:$r(o),y:$r(l),width:$r(u),height:$r(f),radius:"number"==typeof h?h:void 0,className:A,d:pp(o,l,u,f,h)}))}var M=w.current,T=O.current,I=E.current,D=P.current,C="0px ".concat(-1===i?1:i,"px"),z="".concat(i,"px ").concat(i,"px"),L=Ef(["strokeDasharray"],m,"string"==typeof y?y:hp.animationEasing);return r.createElement(qf,{animationId:j,key:j,canBegin:i>0,duration:m,easing:y,isActive:x,begin:g},e=>{var i,a=Qr(M,u,e),s=Qr(T,f,e),c=Qr(I,o,e),d=Qr(D,l,e);n.current&&(w.current=a,O.current=s,E.current=c,P.current=d),i=b?e>0?{transition:L,strokeDasharray:z}:{strokeDasharray:C}:{strokeDasharray:z};var p=lt(t),{radius:v}=p,y=dp(p,op);return r.createElement("path",up({},y,{radius:"number"==typeof h?h:void 0,className:A,d:pp(c,d,a,s,h),ref:n,style:sp(sp({},i),t.style)}))})};function yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function mp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yp(Object(r),!0).forEach(function(t){gp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bp,xp,wp,Op,Ep,Sp,Pp,jp=Math.PI/180,Ap=e=>180*e/Math.PI,kp=(e,t,r,n)=>({x:e+Math.cos(-jp*n)*r,y:t+Math.sin(-jp*n)*r}),_p=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=((e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)})({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var l=(r-i)/o,s=Math.acos(l);return n>a&&(s=2*Math.PI-s),{radius:o,angle:Ap(s),angleInRadian:s}},Np=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360);return e+360*Math.min(i,a)},Mp=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:i,angle:a}=_p({x:r,y:n},t),{innerRadius:o,outerRadius:l}=t;if(i<o||i>l)return null;if(0===i)return null;var s,{startAngle:c,endAngle:u}=(e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-360*a,endAngle:r-360*a}})(t),d=a;if(c<=u){for(;d>u;)d-=360;for(;d<c;)d+=360;s=d>=c&&d<=u}else{for(;d>c;)d-=360;for(;d<u;)d+=360;s=d>=u&&d<=c}return s?mp(mp({},t),{},{radius:i,angle:Np(d,t)}):null};function Tp(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e;return{points:[kp(t,r,n,i),kp(t,r,n,a)],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Ip(){return Ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ip.apply(null,arguments)}function Dp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Cp=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:l,cornerIsExternal:s}=e,c=l*(o?1:-1)+n,u=Math.asin(l/c)/jp,d=s?i:i+a*u,f=s?i-a*u:i;return{center:kp(t,r,c,d),circleTangency:kp(t,r,n,d),lineTangency:kp(t,r,c*Math.cos(u*jp),f),theta:u}},zp=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,l=((e,t)=>Wr(t-e)*Math.min(Math.abs(t-e),359.999))(a,o),s=a+l,c=kp(t,r,i,a),u=kp(t,r,i,s),d=Fr(bp||(bp=Dp(["M ",",","\n A ",",",",0,\n ",",",",\n ",",","\n "])),c.x,c.y,i,i,+(Math.abs(l)>180),+(a>s),u.x,u.y);if(n>0){var f=kp(t,r,n,a),p=kp(t,r,n,s);d+=Fr(xp||(xp=Dp(["L ",",","\n A ",",",",0,\n ",",",",\n ",","," Z"])),p.x,p.y,n,n,+(Math.abs(l)>180),+(a<=s),f.x,f.y)}else d+=Fr(wp||(wp=Dp(["L ",","," Z"])),t,r);return d},Lp={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Bp=e=>{var t=bn(e,Lp),{cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:l,forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d,className:f}=t;if(o<a||u===d)return null;var p,h=S("recharts-sector",f),v=o-a,y=Zr(l,v,0,!0);return p=y>0&&Math.abs(u-d)<360?(e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:l,startAngle:s,endAngle:c}=e,u=Wr(c-s),{circleTangency:d,lineTangency:f,theta:p}=Cp({cx:t,cy:r,radius:i,angle:s,sign:u,cornerRadius:a,cornerIsExternal:l}),{circleTangency:h,lineTangency:v,theta:y}=Cp({cx:t,cy:r,radius:i,angle:c,sign:-u,cornerRadius:a,cornerIsExternal:l}),m=l?Math.abs(s-c):Math.abs(s-c)-p-y;if(m<0)return o?Fr(Op||(Op=Dp(["M ",",","\n a",",",",0,0,1,",",0\n a",",",",0,0,1,",",0\n "])),f.x,f.y,a,a,2*a,a,a,2*-a):zp({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:s,endAngle:c});var g=Fr(Ep||(Ep=Dp(["M ",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","\n "])),f.x,f.y,a,a,+(u<0),d.x,d.y,i,i,+(m>180),+(u<0),h.x,h.y,a,a,+(u<0),v.x,v.y);if(n>0){var{circleTangency:b,lineTangency:x,theta:w}=Cp({cx:t,cy:r,radius:n,angle:s,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),{circleTangency:O,lineTangency:E,theta:S}=Cp({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),P=l?Math.abs(s-c):Math.abs(s-c)-w-S;if(P<0&&0===a)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=Fr(Sp||(Sp=Dp(["L",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","Z"])),E.x,E.y,a,a,+(u<0),O.x,O.y,n,n,+(P>180),+(u>0),b.x,b.y,a,a,+(u<0),x.x,x.y)}else g+=Fr(Pp||(Pp=Dp(["L",",","Z"])),t,r);return g})({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,v/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d}):zp({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:d}),r.createElement("path",Ip({},lt(t),{className:h,d:p}))};function Rp(e,t,r){if("horizontal"===e)return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if("vertical"===e)return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(hn(t)){if("centric"===e){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:l}=t,s=kp(n,i,a,l),c=kp(n,i,o,l);return[{x:s.x,y:s.y},{x:c.x,y:c.y}]}return Tp(t)}}var Vp,Kp,$p,Fp,Wp,Up={},Hp={},qp={};function Yp(){return Vp||(Vp=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fa();e.toNumber=function(e){return t.isSymbol(e)?NaN:Number(e)}}(qp)),qp}function Gp(){return Kp||(Kp=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Yp();e.toFinite=function(e){if(!e)return 0===e?e:0;if((e=t.toNumber(e))===1/0||e===-1/0){return(e<0?-1:1)*Number.MAX_VALUE}return e==e?e:0}}(Hp)),Hp}function Xp(){return $p||($p=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eo(),r=Gp();e.range=function(e,n,i){i&&"number"!=typeof i&&t.isIterateeCall(e,n,i)&&(n=i=void 0),e=r.toFinite(e),void 0===n?(n=e,e=0):n=r.toFinite(n),i=void 0===i?e<n?1:-1:r.toFinite(i);const a=Math.max(Math.ceil((n-e)/(i||1)),0),o=new Array(a);for(let t=0;t<a;t++)o[t]=e,e+=i;return o}}(Up)),Up}function Zp(){return Wp?Fp:(Wp=1,Fp=Xp().range)}var Jp=br(Zp()),Qp=e=>e.chartData,eh=Ta([Qp],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),th=(e,t,r,n)=>n?eh(e):Qp(e),rh=(e,t,r)=>r?eh(e):Qp(e),nh=Ta([th],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});Ta([eh],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});var ih=Ta([Qp],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});function ah(e){if(Array.isArray(e)&&2===e.length){var[t,r]=e;if(Ys(t)&&Ys(r))return!0}return!1}function oh(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function lh(e,t){if(t&&"function"!=typeof e&&Array.isArray(e)&&2===e.length){var r,n,[i,a]=e;if(Ys(i))r=i;else if("function"==typeof i)return;if(Ys(a))n=a;else if("function"==typeof a)return;var o=[r,n];if(ah(o))return o}}var sh,ch=1e9,uh=!0,dh="[DecimalError] ",fh=dh+"Invalid argument: ",ph=dh+"Exponent out of range: ",hh=Math.floor,vh=Math.pow,yh=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,mh=1e7,gh=9007199254740991,bh=hh(1286742750677284.5),xh={};function wh(e,t){var r,n,i,a,o,l,s,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),uh?Mh(t,d):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i){for(a<0?(n=s,a=-a,l=c.length):(n=c,i=o,l=s.length),a>(l=(o=Math.ceil(d/7))>l?o+1:l+1)&&(a=l,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((l=s.length)-(a=c.length)<0&&(a=l,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/mh|0,s[a]%=mh;for(r&&(s.unshift(r),++i),l=s.length;0==s[--l];)s.pop();return t.d=s,t.e=i,uh?Mh(t,d):t}function Oh(e,t,r){if(e!==~~e||e<t||e>r)throw Error(fh+e)}function Eh(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(a+=kh(r)),a+=n;(r=7-(n=(o=e[t])+"").length)&&(a+=kh(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}xh.absoluteValue=xh.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},xh.comparedTo=xh.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(t=0,r=(n=a.d.length)<(i=e.d.length)?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1},xh.decimalPlaces=xh.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},xh.dividedBy=xh.div=function(e){return Sh(this,new this.constructor(e))},xh.dividedToIntegerBy=xh.idiv=function(e){var t=this.constructor;return Mh(Sh(this,new t(e),0,1),t.precision)},xh.equals=xh.eq=function(e){return!this.cmp(e)},xh.exponent=function(){return jh(this)},xh.greaterThan=xh.gt=function(e){return this.cmp(e)>0},xh.greaterThanOrEqualTo=xh.gte=function(e){return this.cmp(e)>=0},xh.isInteger=xh.isint=function(){return this.e>this.d.length-2},xh.isNegative=xh.isneg=function(){return this.s<0},xh.isPositive=xh.ispos=function(){return this.s>0},xh.isZero=function(){return 0===this.s},xh.lessThan=xh.lt=function(e){return this.cmp(e)<0},xh.lessThanOrEqualTo=xh.lte=function(e){return this.cmp(e)<1},xh.logarithm=xh.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(sh))throw Error(dh+"NaN");if(r.s<1)throw Error(dh+(r.s?"NaN":"-Infinity"));return r.eq(sh)?new n(0):(uh=!1,t=Sh(_h(r,a),_h(e,a),a),uh=!0,Mh(t,i))},xh.minus=xh.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Th(t,e):wh(t,(e.s=-e.s,e))},xh.modulo=xh.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(dh+"NaN");return r.s?(uh=!1,t=Sh(r,e,0,1).times(e),uh=!0,r.minus(t)):Mh(new n(r),i)},xh.naturalExponential=xh.exp=function(){return Ph(this)},xh.naturalLogarithm=xh.ln=function(){return _h(this)},xh.negated=xh.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},xh.plus=xh.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?wh(t,e):Th(t,(e.s=-e.s,e))},xh.precision=xh.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(fh+e);if(t=jh(i)+1,r=7*(n=i.d.length-1)+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},xh.squareRoot=xh.sqrt=function(){var e,t,r,n,i,a,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(dh+"NaN")}for(e=jh(l),uh=!1,0==(i=Math.sqrt(+l))||i==1/0?(((t=Eh(l.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=hh((e+1)/2)-(e<0||e%2),n=new s(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new s(i.toString()),i=o=(r=s.precision)+3;;)if(n=(a=n).plus(Sh(l,a,o+2)).times(.5),Eh(a.d).slice(0,o)===(t=Eh(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&"4999"==t){if(Mh(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if("9999"!=t)break;o+=4}return uh=!0,Mh(n,r)},xh.times=xh.mul=function(e){var t,r,n,i,a,o,l,s,c,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,r=u.e+e.e,(s=f.length)<(c=p.length)&&(a=f,f=p,p=a,o=s,s=c,c=o),a=[],n=o=s+c;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)l=a[i]+p[n]*f[i-n-1]+t,a[i--]=l%mh|0,t=l/mh|0;a[i]=(a[i]+t)%mh|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,uh?Mh(e,d.precision):e},xh.toDecimalPlaces=xh.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(Oh(e,0,ch),void 0===t?t=n.rounding:Oh(t,0,8),Mh(r,e+jh(r)+1,t))},xh.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=Ih(n,!0):(Oh(e,0,ch),void 0===t?t=i.rounding:Oh(t,0,8),r=Ih(n=Mh(new i(n),e+1,t),!0,e+1)),r},xh.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return void 0===e?Ih(i):(Oh(e,0,ch),void 0===t?t=a.rounding:Oh(t,0,8),r=Ih((n=Mh(new a(i),e+jh(i)+1,t)).abs(),!1,e+jh(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},xh.toInteger=xh.toint=function(){var e=this,t=e.constructor;return Mh(new t(e),jh(e)+1,t.rounding)},xh.toNumber=function(){return+this},xh.toPower=xh.pow=function(e){var t,r,n,i,a,o,l=this,s=l.constructor,c=+(e=new s(e));if(!e.s)return new s(sh);if(!(l=new s(l)).s){if(e.s<1)throw Error(dh+"Infinity");return l}if(l.eq(sh))return l;if(n=s.precision,e.eq(sh))return Mh(l,n);if(o=(t=e.e)>=(r=e.d.length-1),a=l.s,o){if((r=c<0?-c:c)<=gh){for(i=new s(sh),t=Math.ceil(n/7+4),uh=!1;r%2&&Dh((i=i.times(l)).d,t),0!==(r=hh(r/2));)Dh((l=l.times(l)).d,t);return uh=!0,e.s<0?new s(sh).div(i):Mh(i,n)}}else if(a<0)throw Error(dh+"NaN");return a=a<0&&1&e.d[Math.max(t,r)]?-1:1,l.s=1,uh=!1,i=e.times(_h(l,n+12)),uh=!0,(i=Ph(i)).s=a,i},xh.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return void 0===e?n=Ih(i,(r=jh(i))<=a.toExpNeg||r>=a.toExpPos):(Oh(e,1,ch),void 0===t?t=a.rounding:Oh(t,0,8),n=Ih(i=Mh(new a(i),e,t),e<=(r=jh(i))||r<=a.toExpNeg,e)),n},xh.toSignificantDigits=xh.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(Oh(e,1,ch),void 0===t?t=r.rounding:Oh(t,0,8)),Mh(new r(this),e,t)},xh.toString=xh.valueOf=xh.val=xh.toJSON=xh[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=jh(e),r=e.constructor;return Ih(e,t<=r.toExpNeg||t>=r.toExpPos)};var Sh=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+n,e[i]=r%mh|0,n=r/mh|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*mh+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,a,o){var l,s,c,u,d,f,p,h,v,y,m,g,b,x,w,O,E,S,P=n.constructor,j=n.s==i.s?1:-1,A=n.d,k=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(dh+"Division by zero");for(s=n.e-i.e,E=k.length,w=A.length,h=(p=new P(j)).d=[],c=0;k[c]==(A[c]||0);)++c;if(k[c]>(A[c]||0)&&--s,(g=null==a?a=P.precision:o?a+(jh(n)-jh(i))+1:a)<0)return new P(0);if(g=g/7+2|0,c=0,1==E)for(u=0,k=k[0],g++;(c<w||u)&&g--;c++)b=u*mh+(A[c]||0),h[c]=b/k|0,u=b%k|0;else{for((u=mh/(k[0]+1)|0)>1&&(k=e(k,u),A=e(A,u),E=k.length,w=A.length),x=E,y=(v=A.slice(0,E)).length;y<E;)v[y++]=0;(S=k.slice()).unshift(0),O=k[0],k[1]>=mh/2&&++O;do{u=0,(l=t(k,v,E,y))<0?(m=v[0],E!=y&&(m=m*mh+(v[1]||0)),(u=m/O|0)>1?(u>=mh&&(u=mh-1),1==(l=t(d=e(k,u),v,f=d.length,y=v.length))&&(u--,r(d,E<f?S:k,f))):(0==u&&(l=u=1),d=k.slice()),(f=d.length)<y&&d.unshift(0),r(v,d,y),-1==l&&(l=t(k,v,E,y=v.length))<1&&(u++,r(v,E<y?S:k,y)),y=v.length):0===l&&(u++,v=[0]),h[c++]=u,l&&v[0]?v[y++]=A[x]||0:(v=[A[x]],y=1)}while((x++<w||void 0!==v[0])&&g--)}return h[0]||h.shift(),p.e=s,Mh(p,o?a+jh(p)+1:a)}}();function Ph(e,t){var r,n,i,a,o,l=0,s=0,c=e.constructor,u=c.precision;if(jh(e)>16)throw Error(ph+jh(e));if(!e.s)return new c(sh);for(uh=!1,o=u,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),s+=5;for(o+=Math.log(vh(2,s))/Math.LN10*2+5|0,r=n=i=new c(sh),c.precision=o;;){if(n=Mh(n.times(e),o),r=r.times(++l),Eh((a=i.plus(Sh(n,r,o))).d).slice(0,o)===Eh(i.d).slice(0,o)){for(;s--;)i=Mh(i.times(i),o);return c.precision=u,null==t?(uh=!0,Mh(i,u)):i}i=a}}function jh(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function Ah(e,t,r){if(t>e.LN10.sd())throw uh=!0,r&&(e.precision=r),Error(dh+"LN10 precision limit exceeded");return Mh(new e(e.LN10),t)}function kh(e){for(var t="";e--;)t+="0";return t}function _h(e,t){var r,n,i,a,o,l,s,c,u,d=1,f=e,p=f.d,h=f.constructor,v=h.precision;if(f.s<1)throw Error(dh+(f.s?"NaN":"-Infinity"));if(f.eq(sh))return new h(0);if(null==t?(uh=!1,c=v):c=t,f.eq(10))return null==t&&(uh=!0),Ah(h,c);if(c+=10,h.precision=c,n=(r=Eh(p)).charAt(0),a=jh(f),!(Math.abs(a)<15e14))return s=Ah(h,c+2,v).times(a+""),f=_h(new h(n+"."+r.slice(1)),c-10).plus(s),h.precision=v,null==t?(uh=!0,Mh(f,v)):f;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Eh((f=f.times(e)).d)).charAt(0),d++;for(a=jh(f),n>1?(f=new h("0."+r),a++):f=new h(n+"."+r.slice(1)),l=o=f=Sh(f.minus(sh),f.plus(sh),c),u=Mh(f.times(f),c),i=3;;){if(o=Mh(o.times(u),c),Eh((s=l.plus(Sh(o,new h(i),c))).d).slice(0,c)===Eh(l.d).slice(0,c))return l=l.times(2),0!==a&&(l=l.plus(Ah(h,c+2,v).times(a+""))),l=Sh(l,new h(d),c),h.precision=v,null==t?(uh=!0,Mh(l,v)):l;l=s,i+=2}}function Nh(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,r=r-n-1,e.e=hh(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),uh&&(e.e>bh||e.e<-bh))throw Error(ph+r)}else e.s=0,e.e=0,e.d=[0];return e}function Mh(e,t,r){var n,i,a,o,l,s,c,u,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if((n=t-o)<0)n+=7,i=t,c=d[u=0];else{if((u=Math.ceil((n+1)/7))>=(a=d.length))return e;for(c=a=d[u],o=1;a>=10;a/=10)o++;i=(n%=7)-7+o}if(void 0!==r&&(l=c/(a=vh(10,o-i-1))%10|0,s=t<0||void 0!==d[u+1]||c%a,s=r<4?(l||s)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||s||6==r&&(n>0?i>0?c/vh(10,o-i):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return s?(a=jh(e),d.length=1,t=t-a-1,d[0]=vh(10,(7-t%7)%7),e.e=hh(-t/7)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(0==n?(d.length=u,a=1,u--):(d.length=u+1,a=vh(10,7-n),d[u]=i>0?(c/vh(10,o-i)%vh(10,i)|0)*a:0),s)for(;;){if(0==u){(d[0]+=a)==mh&&(d[0]=1,++e.e);break}if(d[u]+=a,d[u]!=mh)break;d[u--]=0,a=1}for(n=d.length;0===d[--n];)d.pop();if(uh&&(e.e>bh||e.e<-bh))throw Error(ph+jh(e));return e}function Th(e,t){var r,n,i,a,o,l,s,c,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),uh?Mh(t,p):t;if(s=e.d,d=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n){for((u=o<0)?(r=s,o=-o,l=d.length):(r=d,n=c,l=s.length),o>(i=Math.max(Math.ceil(p/7),l)+2)&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for((u=(i=s.length)<(l=d.length))&&(l=i),i=0;i<l;i++)if(s[i]!=d[i]){u=s[i]<d[i];break}o=0}for(u&&(r=s,s=d,d=r,t.s=-t.s),l=s.length,i=d.length-l;i>0;--i)s[l++]=0;for(i=d.length;i>o;){if(s[--i]<d[i]){for(a=i;a&&0===s[--a];)s[a]=mh-1;--s[a],s[i]+=mh}s[i]-=d[i]}for(;0===s[--l];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(t.d=s,t.e=n,uh?Mh(t,p):t):new f(0)}function Ih(e,t,r){var n,i=jh(e),a=Eh(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+kh(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+kh(-i-1)+a,r&&(n=r-o)>0&&(a+=kh(n))):i>=o?(a+=kh(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+kh(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=kh(n))),e.s<0?"-"+a:a}function Dh(e,t){if(e.length>t)return e.length=t,!0}function Ch(e){if(!e||"object"!=typeof e)throw Error(dh+"Object expected");var t,r,n,i=["precision",1,ch,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=e[r=i[t]])){if(!(hh(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(fh+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(fh+r+": "+n);this[r]=new this(n)}return this}var zh=function e(t){var r,n,i;function a(e){var t=this;if(!(t instanceof a))return new a(e);if(t.constructor=a,e instanceof a)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(fh+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):Nh(t,e.toString())}if("string"!=typeof e)throw Error(fh+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!yh.test(e))throw Error(fh+e);Nh(t,e)}if(a.prototype=xh,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=Ch,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return a.config(t),a}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});sh=new zh(1);var Lh=zh;function Bh(e){return 0===e?1:Math.floor(new Lh(e).abs().log(10).toNumber())+1}function Rh(e,t,r){for(var n=new Lh(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var Vh=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},Kh=(e,t,r)=>{if(e.lte(0))return new Lh(0);var n=Bh(e.toNumber()),i=new Lh(10).pow(n),a=e.div(i),o=1!==n?.05:.1,l=new Lh(Math.ceil(a.div(o).toNumber())).add(r).mul(o).mul(i);return new Lh(t?l.toNumber():Math.ceil(l.toNumber()))},$h=(e,t,r)=>{var n;if(e.lte(0))return new Lh(0);var i=[1,2,2.5,5],a=e.toNumber(),o=Math.floor(new Lh(a).abs().log(10).toNumber()),l=new Lh(10).pow(o),s=e.div(l).toNumber(),c=i.findIndex(e=>e>=s-1e-10);if(-1===c&&(l=l.mul(10),c=0),(c+=r)>=i.length){var u=Math.floor(c/i.length);c%=i.length,l=l.mul(new Lh(10).pow(u))}var d=null!==(n=i[c])&&void 0!==n?n:1,f=new Lh(d).mul(l);return t?f:new Lh(Math.ceil(f.toNumber()))},Fh=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Kh;if(!Number.isFinite((t-e)/(r-1)))return{step:new Lh(0),tickMin:new Lh(0),tickMax:new Lh(0)};var o,l=a(new Lh(t).sub(e).div(r-1),n,i);o=e<=0&&t>=0?new Lh(0):(o=new Lh(e).add(t).div(2)).sub(new Lh(o).mod(l));var s=Math.ceil(o.sub(e).div(l).toNumber()),c=Math.ceil(new Lh(t).sub(o).div(l).toNumber()),u=s+c+1;return u>r?Fh(e,t,r,n,i+1,a):(u<r&&(c=t>0?c+(r-u):c,s=t>0?s:s+(r-u)),{step:l,tickMin:o.sub(new Lh(s).mul(l)),tickMax:o.add(new Lh(c).mul(l))})},Wh=function(e){var[t,r]=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",o=Math.max(n,2),[l,s]=Vh([t,r]);if(l===-1/0||s===1/0){var c=s===1/0?[l,...Array(n-1).fill(1/0)]:[...Array(n-1).fill(-1/0),s];return t>r?c.reverse():c}if(l===s)return((e,t,r)=>{var n=new Lh(1),i=new Lh(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Lh(10).pow(Bh(e)-1),i=new Lh(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Lh(Math.floor(e)))}else 0===e?i=new Lh(Math.floor((t-1)/2)):r||(i=new Lh(Math.floor(e)));for(var o=Math.floor((t-1)/2),l=[],s=0;s<t;s++)l.push(i.add(new Lh(s-o).mul(n)).toNumber());return l})(l,n,i);var u="snap125"===a?$h:Kh,{step:d,tickMin:f,tickMax:p}=Fh(l,s,o,i,0,u),h=Rh(f,p.add(new Lh(.1).mul(d)),d);return t>r?h.reverse():h},Uh=function(e,t){var[r,n]=e,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",[o,l]=Vh([r,n]);if(o===-1/0||l===1/0)return[r,n];if(o===l)return[o];var s="snap125"===a?$h:Kh,c=Math.max(t,2),u=s(new Lh(l).sub(o).div(c-1),i,0),d=[...Rh(new Lh(o),new Lh(l),u),l];return!1===i&&(d=d.map(e=>Math.round(e))),r>n?d.reverse():d},Hh=e=>e.rootProps.maxBarSize,qh=e=>e.rootProps.barCategoryGap,Yh=e=>e.rootProps.stackOffset,Gh=e=>e.rootProps.reverseStackOrder,Xh=e=>e.options.chartName,Zh=e=>e.rootProps.syncId,Jh=e=>e.rootProps.syncMethod,Qh=e=>e.options.eventEmitter,ev={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},tv=(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t};function rv(e,t,r){return"auto"!==r?r:null!=e?ec(e,t)?"category":"number":void 0}function nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function iv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nv(Object(r),!0).forEach(function(t){av(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function av(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ov={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:"auto",tick:!0,tickCount:void 0,ticks:void 0,type:"auto",unit:void 0,niceTicks:"auto"},lv={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:"auto",tick:!0,tickCount:5,ticks:void 0,type:"auto",unit:void 0,niceTicks:"auto"},sv=Ta([(e,t)=>{if(null!=t)return e.polarAxis.angleAxis[t]},yu],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=rv(t,"angleAxis",ov.type))&&void 0!==r?r:"category";return iv(iv({},ov),{},{type:n})}),cv=Ta([(e,t)=>e.polarAxis.radiusAxis[t],yu],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=rv(t,"radiusAxis",lv.type))&&void 0!==r?r:"category";return iv(iv({},lv),{},{type:n})}),uv=e=>e.polarOptions,dv=Ta([hc,vc,_c],function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2}),fv=Ta([uv,dv],(e,t)=>{if(null!=e)return Zr(e.innerRadius,t,0)}),pv=Ta([uv,dv],(e,t)=>{if(null!=e)return Zr(e.outerRadius,t,.8*t)}),hv=Ta([uv],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]});Ta([sv,hv],tv);var vv=Ta([dv,fv,pv],(e,t,r)=>{if(null!=e&&null!=t&&null!=r)return[t,r]});Ta([cv,vv],tv);var yv=Ta([pu,uv,fv,pv,hc,vc],(e,t,r,n,i,a)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=r&&null!=n){var{cx:o,cy:l,startAngle:s,endAngle:c}=t;return{cx:Zr(o,i,i/2),cy:Zr(l,a,a/2),innerRadius:r,outerRadius:n,startAngle:s,endAngle:c,clockWise:!1}}}),mv=(e,t)=>t,gv=(e,t,r)=>r;function bv(e){return null==e?void 0:e.id}function xv(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(e=>{var t,r=null!==(t=e.data)&&void 0!==t?t:n;if(null!=r&&0!==r.length){var l=bv(e);r.forEach((t,r)=>{var n,s=null==a||i?r:String(Qs(t,a,null)),c=Qs(t,e.dataKey,0);n=o.has(s)?o.get(s):{},Object.assign(n,{[l]:c}),o.set(s,n)})}}),Array.from(o.values())}function wv(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}var Ov=(e,t)=>e===t||null!=e&&null!=t&&(e[0]===t[0]&&e[1]===t[1]);function Ev(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var Sv=e=>{var t=pu(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},Pv=e=>e.tooltip.settings.axisId;function jv(e){if(null!=e){var t=e.ticks,r=e.bandwidth,n=e.range(),i=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],r=i[1];return t<=r?e>=t&&e<=r:e>=r&&e<=t},bandwidth:r?()=>r.call(e):void 0,ticks:t?r=>t.call(e,r):void 0,map:(t,r)=>{var n=e(t);if(null!=n){if(e.bandwidth&&null!=r&&r.position){var i=e.bandwidth();switch(r.position){case"middle":n+=i/2;break;case"end":n+=i}}return n}}}}}function Av(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function kv(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function _v(e){let t,r,n;function i(e,n,i=0,a=e.length){if(i<a){if(0!==t(n,n))return a;do{const t=i+a>>>1;r(e[t],n)<0?i=t+1:a=t}while(i<a)}return i}return 2!==e.length?(t=Av,r=(t,r)=>Av(e(t),r),n=(t,r)=>e(t)-r):(t=e===Av||e===kv?e:Nv,r=e,n=e),{left:i,center:function(e,t,r=0,a=e.length){const o=i(e,t,r,a-1);return o>r&&n(e[o-1],t)>-n(e[o],t)?o-1:o},right:function(e,n,i=0,a=e.length){if(i<a){if(0!==t(n,n))return a;do{const t=i+a>>>1;r(e[t],n)<=0?i=t+1:a=t}while(i<a)}return i}}}function Nv(){return 0}function Mv(e){return null===e?NaN:+e}const Tv=_v(Av).right;_v(Mv).center;class Iv extends Map{constructor(e,t=Cv){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(Dv(this,e))}has(e){return super.has(Dv(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){const n=t(r);e.has(n)&&(r=e.get(n),e.delete(n));return r}(this,e))}}function Dv({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Cv(e){return null!==e&&"object"==typeof e?e.valueOf():e}function zv(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const Lv=Math.sqrt(50),Bv=Math.sqrt(10),Rv=Math.sqrt(2);function Vv(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=Lv?10:a>=Bv?5:a>=Rv?2:1;let l,s,c;return i<0?(c=Math.pow(10,-i)/o,l=Math.round(e*c),s=Math.round(t*c),l/c<e&&++l,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,l=Math.round(e/c),s=Math.round(t/c),l*c<e&&++l,s*c>t&&--s),s<l&&.5<=r&&r<2?Vv(e,t,2*r):[l,s,c]}function Kv(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,a,o]=n?Vv(t,e,r):Vv(e,t,r);if(!(a>=i))return[];const l=a-i+1,s=new Array(l);if(n)if(o<0)for(let e=0;e<l;++e)s[e]=(a-e)/-o;else for(let e=0;e<l;++e)s[e]=(a-e)*o;else if(o<0)for(let e=0;e<l;++e)s[e]=(i+e)/-o;else for(let e=0;e<l;++e)s[e]=(i+e)*o;return s}function $v(e,t,r){return Vv(e=+e,t=+t,r=+r)[2]}function Fv(e,t,r){r=+r;const n=(t=+t)<(e=+e),i=n?$v(t,e,r):$v(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Wv(e,t){let r;for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);return r}function Uv(e,t){let r;for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);return r}function Hv(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=void 0===i?zv:function(e=Av){if(e===Av)return zv;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(i);n>r;){if(n-r>600){const a=n-r+1,o=t-r+1,l=Math.log(a),s=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*s*(a-s)/a)*(o-a/2<0?-1:1);Hv(e,t,Math.max(r,Math.floor(t-o*s/a+c)),Math.min(n,Math.floor(t+(a-o)*s/a+c)),i)}const a=e[t];let o=r,l=n;for(qv(e,r,t),i(e[n],a)>0&&qv(e,r,n);o<l;){for(qv(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}0===i(e[r],a)?qv(e,r,l):(++l,qv(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function qv(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Yv(e,t,r=Mv){if((n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e);return o+(+r(e[a+1],a+1,e)-o)*(i-a)}}function Gv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Xv(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const Zv=Symbol("implicit");function Jv(){var e=new Iv,t=[],r=[],n=Zv;function i(i){let a=e.get(i);if(void 0===a){if(n!==Zv)return n;e.set(i,a=t.push(i)-1)}return r[a%r.length]}return i.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new Iv;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return i},i.range=function(e){return arguments.length?(r=Array.from(e),i):r.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return Jv(t,r).unknown(n)},Gv.apply(i,arguments),i}function Qv(){var e,t,r=Jv().unknown(void 0),n=r.domain,i=r.range,a=0,o=1,l=!1,s=0,c=0,u=.5;function d(){var r=n().length,d=o<a,f=d?o:a,p=d?a:o;e=(p-f)/Math.max(1,r-s+2*c),l&&(e=Math.floor(e)),f+=(p-f-e*(r-s))*u,t=e*(1-s),l&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),a=new Array(i);++n<i;)a[n]=e+n*r;return a}(r).map(function(t){return f+e*t});return i(d?h.reverse():h)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),d()):n()},r.range=function(e){return arguments.length?([a,o]=e,a=+a,o=+o,d()):[a,o]},r.rangeRound=function(e){return[a,o]=e,a=+a,o=+o,l=!0,d()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(l=!!e,d()):l},r.padding=function(e){return arguments.length?(s=Math.min(1,c=+e),d()):s},r.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),d()):s},r.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},r.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},r.copy=function(){return Qv(n(),[a,o]).round(l).paddingInner(s).paddingOuter(c).align(u)},Gv.apply(d(),arguments)}function ey(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ey(t())},e}function ty(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ry(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function ny(){}var iy=.7,ay=1/iy,oy="\\s*([+-]?\\d+)\\s*",ly="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cy=/^#([0-9a-f]{3,8})$/,uy=new RegExp(`^rgb\\(${oy},${oy},${oy}\\)$`),dy=new RegExp(`^rgb\\(${sy},${sy},${sy}\\)$`),fy=new RegExp(`^rgba\\(${oy},${oy},${oy},${ly}\\)$`),py=new RegExp(`^rgba\\(${sy},${sy},${sy},${ly}\\)$`),hy=new RegExp(`^hsl\\(${ly},${sy},${sy}\\)$`),vy=new RegExp(`^hsla\\(${ly},${sy},${sy},${ly}\\)$`),yy={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 my(){return this.rgb().formatHex()}function gy(){return this.rgb().formatRgb()}function by(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=cy.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?xy(t):3===r?new Ey(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?wy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?wy(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=uy.exec(e))?new Ey(t[1],t[2],t[3],1):(t=dy.exec(e))?new Ey(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fy.exec(e))?wy(t[1],t[2],t[3],t[4]):(t=py.exec(e))?wy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=hy.exec(e))?_y(t[1],t[2]/100,t[3]/100,1):(t=vy.exec(e))?_y(t[1],t[2]/100,t[3]/100,t[4]):yy.hasOwnProperty(e)?xy(yy[e]):"transparent"===e?new Ey(NaN,NaN,NaN,0):null}function xy(e){return new Ey(e>>16&255,e>>8&255,255&e,1)}function wy(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ey(e,t,r,n)}function Oy(e,t,r,n){return 1===arguments.length?((i=e)instanceof ny||(i=by(i)),i?new Ey((i=i.rgb()).r,i.g,i.b,i.opacity):new Ey):new Ey(e,t,r,null==n?1:n);var i}function Ey(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Sy(){return`#${ky(this.r)}${ky(this.g)}${ky(this.b)}`}function Py(){const e=jy(this.opacity);return`${1===e?"rgb(":"rgba("}${Ay(this.r)}, ${Ay(this.g)}, ${Ay(this.b)}${1===e?")":`, ${e})`}`}function jy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ay(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ky(e){return((e=Ay(e))<16?"0":"")+e.toString(16)}function _y(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new My(e,t,r,n)}function Ny(e){if(e instanceof My)return new My(e.h,e.s,e.l,e.opacity);if(e instanceof ny||(e=by(e)),!e)return new My;if(e instanceof My)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(o=t===a?(r-n)/l+6*(r<n):r===a?(n-t)/l+2:(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new My(o,l,s,e.opacity)}function My(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Ty(e){return(e=(e||0)%360)<0?e+360:e}function Iy(e){return Math.max(0,Math.min(1,e||0))}function Dy(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}ty(ny,by,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:my,formatHex:my,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ny(this).formatHsl()},formatRgb:gy,toString:gy}),ty(Ey,Oy,ry(ny,{brighter(e){return e=null==e?ay:Math.pow(ay,e),new Ey(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?iy:Math.pow(iy,e),new Ey(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ey(Ay(this.r),Ay(this.g),Ay(this.b),jy(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:Sy,formatHex:Sy,formatHex8:function(){return`#${ky(this.r)}${ky(this.g)}${ky(this.b)}${ky(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Py,toString:Py})),ty(My,function(e,t,r,n){return 1===arguments.length?Ny(e):new My(e,t,r,null==n?1:n)},ry(ny,{brighter(e){return e=null==e?ay:Math.pow(ay,e),new My(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?iy:Math.pow(iy,e),new My(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ey(Dy(e>=240?e-240:e+120,i,n),Dy(e,i,n),Dy(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new My(Ty(this.h),Iy(this.s),Iy(this.l),jy(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 e=jy(this.opacity);return`${1===e?"hsl(":"hsla("}${Ty(this.h)}, ${100*Iy(this.s)}%, ${100*Iy(this.l)}%${1===e?")":`, ${e})`}`}}));var Cy=e=>()=>e;function zy(e){return 1===(e=+e)?Ly:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Cy(isNaN(t)?r:t)}}function Ly(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Cy(isNaN(e)?t:e)}var By=function e(t){var r=zy(t);function n(e,t){var n=r((e=Oy(e)).r,(t=Oy(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),o=Ly(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return n.gamma=e,n}(1);function Ry(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(r=0;r<n;++r)i[r]=e[r]*(1-a)+t[r]*a;return i}}function Vy(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,a=new Array(i),o=new Array(n);for(r=0;r<i;++r)a[r]=qy(e[r],t[r]);for(;r<n;++r)o[r]=t[r];return function(e){for(r=0;r<i;++r)o[r]=a[r](e);return o}}function Ky(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function $y(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Fy(e,t){var r,n={},i={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=qy(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var Wy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Uy=new RegExp(Wy.source,"g");function Hy(e,t){var r,n,i,a=Wy.lastIndex=Uy.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(r=Wy.exec(e))&&(n=Uy.exec(t));)(i=n.index)>a&&(i=t.slice(a,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,s.push({i:o,x:$y(r,n)})),a=Uy.lastIndex;return a<t.length&&(i=t.slice(a),l[o]?l[o]+=i:l[++o]=i),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var r,n=0;n<t;++n)l[(r=s[n]).i]=r.x(e);return l.join("")})}function qy(e,t){var r,n=typeof t;return null==t||"boolean"===n?Cy(t):("number"===n?$y:"string"===n?(r=by(t))?(t=r,By):Hy:t instanceof by?By:t instanceof Date?Ky:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Ry:Array.isArray(t)?Vy:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Fy:$y)(e,t)}function Yy(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function Gy(e,t){void 0===t&&(t=e,e=qy);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return a[t](e-t)}}function Xy(e){return+e}var Zy=[0,1];function Jy(e){return e}function Qy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function em(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Qy(i,n),a=r(o,a)):(n=Qy(n,i),a=r(a,o)),function(e){return a(n(e))}}function tm(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Qy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(t){var r=Tv(e,t,1,n)-1;return a[r](i[r](t))}}function rm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function nm(){var e,t,r,n,i,a,o=Zy,l=Zy,s=qy,c=Jy;function u(){var e=Math.min(o.length,l.length);return c!==Jy&&(c=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(o[0],o[e-1])),n=e>2?tm:em,i=a=null,d}function d(t){return null==t||isNaN(t=+t)?r:(i||(i=n(o.map(e),l,s)))(e(c(t)))}return d.invert=function(r){return c(t((a||(a=n(l,o.map(e),$y)))(r)))},d.domain=function(e){return arguments.length?(o=Array.from(e,Xy),u()):o.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=Yy,u()},d.clamp=function(e){return arguments.length?(c=!!e||Jy,u()):c!==Jy},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(r=e,d):r},function(r,n){return e=r,t=n,u()}}function im(){return nm()(Jy,Jy)}function am(e,t){if(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function om(e){return(e=am(Math.abs(e)))?e[1]:NaN}var lm,sm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cm(e){if(!(t=sm.exec(e)))throw new Error("invalid format: "+e);var t;return new um({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function um(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function dm(e,t){var r=am(e,t);if(!r)return e+"";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")}cm.prototype=um.prototype,um.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 fm={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>dm(100*e,t),r:dm,s:function(e,t){var r=am(e,t);if(!r)return lm=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(lm=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+am(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pm(e){return e}var hm,vm,ym,mm=Array.prototype.map,gm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function bm(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?pm:(t=mm.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,a=[],o=0,l=t[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(e.substring(i-=l,i+l)),!((s+=l+1)>n));)l=t[o=(o+1)%t.length];return a.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?pm:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(mm.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e,t){var r=(e=cm(e)).fill,d=e.align,f=e.sign,p=e.symbol,h=e.zero,v=e.width,y=e.comma,m=e.precision,g=e.trim,b=e.type;"n"===b?(y=!0,b="g"):fm[b]||(void 0===m&&(m=12),g=!0,b="g"),(h||"0"===r&&"="===d)&&(h=!0,r="0",d="=");var x=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?i:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),w=("$"===p?a:/[%p]/.test(b)?s:"")+(t&&void 0!==t.suffix?t.suffix:""),O=fm[b],E=/[defgprs%]/.test(b);function S(e){var t,i,a,s=x,p=w;if("c"===b)p=O(e)+p,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:O(Math.abs(e),m),g&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==f&&(S=!1),s=(S?"("===f?f:c:"-"===f||"("===f?"":f)+s,p=("s"!==b||isNaN(e)||void 0===lm?"":gm[8+lm/3])+p+(S&&"("===f?")":""),E)for(t=-1,i=e.length;++t<i;)if(48>(a=e.charCodeAt(t))||a>57){p=(46===a?o+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}y&&!h&&(e=n(e,1/0));var P=s.length+e.length+p.length,j=P<v?new Array(v-P+1).join(r):"";switch(y&&h&&(e=n(j+e,j.length?v-p.length:1/0),j=""),d){case"<":e=s+e+p+j;break;case"=":e=s+j+e+p;break;case"^":e=j.slice(0,P=j.length>>1)+s+e+p+j.slice(P);break;default:e=j+s+e+p}return l(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor(om(t)/3))),n=Math.pow(10,-r),i=d(((e=cm(e)).type="f",e),{suffix:gm[8+r/3]});return function(e){return i(n*e)}}}}function xm(e,t,r,n){var i,a=Fv(e,t,r);switch((n=cm(null==n?",f":n)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(om(t)/3)))-om(Math.abs(e)))}(a,o))||(n.precision=i),ym(n,o);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,om(t)-om(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-om(Math.abs(e)))}(a))||(n.precision=i-2*("%"===n.type))}return vm(n)}function wm(e){var t=e.domain;return e.ticks=function(e){var r=t();return Kv(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return xm(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i,a=t(),o=0,l=a.length-1,s=a[o],c=a[l],u=10;for(c<s&&(i=s,s=c,c=i,i=o,o=l,l=i);u-- >0;){if((i=$v(s,c,r))===n)return a[o]=s,a[l]=c,t(a);if(i>0)s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i}n=i}return e},e}function Om(e,t){var r,n=0,i=(e=e.slice()).length-1,a=e[n],o=e[i];return o<a&&(r=n,n=i,i=r,r=a,a=o,o=r),e[n]=t.floor(a),e[i]=t.ceil(o),e}function Em(e){return Math.log(e)}function Sm(e){return Math.exp(e)}function Pm(e){return-Math.log(-e)}function jm(e){return-Math.exp(-e)}function Am(e){return isFinite(e)?+("1e"+e):e<0?0:e}function km(e){return(t,r)=>-e(-t,r)}function _m(e){const t=e(Em,Sm),r=t.domain;let n,i,a=10;function o(){return n=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(a),i=function(e){return 10===e?Am:e===Math.E?Math.exp:t=>Math.pow(e,t)}(a),r()[0]<0?(n=km(n),i=km(i),e(Pm,jm)):e(Em,Sm),t}return t.base=function(e){return arguments.length?(a=+e,o()):a},t.domain=function(e){return arguments.length?(r(e),o()):r()},t.ticks=e=>{const t=r();let o=t[0],l=t[t.length-1];const s=l<o;s&&([o,l]=[l,o]);let c,u,d=n(o),f=n(l);const p=null==e?10:+e;let h=[];if(!(a%1)&&f-d<p){if(d=Math.floor(d),f=Math.ceil(f),o>0){for(;d<=f;++d)for(c=1;c<a;++c)if(u=d<0?c/i(-d):c*i(d),!(u<o)){if(u>l)break;h.push(u)}}else for(;d<=f;++d)for(c=a-1;c>=1;--c)if(u=d>0?c/i(-d):c*i(d),!(u<o)){if(u>l)break;h.push(u)}2*h.length<p&&(h=Kv(o,l,p))}else h=Kv(d,f,Math.min(f-d,p)).map(i);return s?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===a?"s":","),"function"!=typeof r&&(a%1||null!=(r=cm(r)).precision||(r.trim=!0),r=vm(r)),e===1/0)return r;const o=Math.max(1,a*e/t.ticks().length);return e=>{let t=e/i(Math.round(n(e)));return t*a<a-.5&&(t*=a),t<=o?r(e):""}},t.nice=()=>r(Om(r(),{floor:e=>i(Math.floor(n(e))),ceil:e=>i(Math.ceil(n(e)))})),t}function Nm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Mm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Tm(e){var t=1,r=e(Nm(t),Mm(t));return r.constant=function(r){return arguments.length?e(Nm(t=+r),Mm(t)):t},wm(r)}function Im(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Dm(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Cm(e){return e<0?-e*e:e*e}function zm(e){var t=e(Jy,Jy),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(Jy,Jy):.5===r?e(Dm,Cm):e(Im(r),Im(1/r)):r},wm(t)}function Lm(){var e=zm(nm());return e.copy=function(){return rm(e,Lm()).exponent(e.exponent())},Gv.apply(e,arguments),e}function Bm(e){return Math.sign(e)*e*e}hm=bm({thousands:",",grouping:[3],currency:["$",""]}),vm=hm.format,ym=hm.formatPrefix;const Rm=new Date,Vm=new Date;function Km(e,t,r,n){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),i.round=e=>{const t=i(e),r=i.ceil(e);return e-t<r-e?t:r},i.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),i.range=(r,n,a)=>{const o=[];if(r=i.ceil(r),a=null==a?1:Math.floor(a),!(r<n&&a>0))return o;let l;do{o.push(l=new Date(+r)),t(r,a),e(r)}while(l<r&&r<n);return o},i.filter=r=>Km(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(i.count=(t,n)=>(Rm.setTime(+t),Vm.setTime(+n),e(Rm),e(Vm),Math.floor(r(Rm,Vm))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(n?t=>n(t)%e===0:t=>i.count(0,t)%e===0):i:null)),i}const $m=Km(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);$m.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?Km(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):$m:null),$m.range;const Fm=1e3,Wm=6e4,Um=36e5,Hm=864e5,qm=6048e5,Ym=2592e6,Gm=31536e6,Xm=Km(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Fm)},(e,t)=>(t-e)/Fm,e=>e.getUTCSeconds());Xm.range;const Zm=Km(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fm)},(e,t)=>{e.setTime(+e+t*Wm)},(e,t)=>(t-e)/Wm,e=>e.getMinutes());Zm.range;const Jm=Km(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Wm)},(e,t)=>(t-e)/Wm,e=>e.getUTCMinutes());Jm.range;const Qm=Km(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Fm-e.getMinutes()*Wm)},(e,t)=>{e.setTime(+e+t*Um)},(e,t)=>(t-e)/Um,e=>e.getHours());Qm.range;const eg=Km(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Um)},(e,t)=>(t-e)/Um,e=>e.getUTCHours());eg.range;const tg=Km(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wm)/Hm,e=>e.getDate()-1);tg.range;const rg=Km(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hm,e=>e.getUTCDate()-1);rg.range;const ng=Km(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Hm,e=>Math.floor(e/Hm));function ig(e){return Km(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Wm)/qm)}ng.range;const ag=ig(0),og=ig(1),lg=ig(2),sg=ig(3),cg=ig(4),ug=ig(5),dg=ig(6);function fg(e){return Km(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/qm)}ag.range,og.range,lg.range,sg.range,cg.range,ug.range,dg.range;const pg=fg(0),hg=fg(1),vg=fg(2),yg=fg(3),mg=fg(4),gg=fg(5),bg=fg(6);pg.range,hg.range,vg.range,yg.range,mg.range,gg.range,bg.range;const xg=Km(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth());xg.range;const wg=Km(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth());wg.range;const Og=Km(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Og.every=e=>isFinite(e=Math.floor(e))&&e>0?Km(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null,Og.range;const Eg=Km(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function Sg(e,t,r,n,i,a){const o=[[Xm,1,Fm],[Xm,5,5e3],[Xm,15,15e3],[Xm,30,3e4],[a,1,Wm],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,Um],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,Hm],[n,2,1728e5],[r,1,qm],[t,1,Ym],[t,3,7776e6],[e,1,Gm]];function l(t,r,n){const i=Math.abs(r-t)/n,a=_v(([,,e])=>e).right(o,i);if(a===o.length)return e.every(Fv(t/Gm,r/Gm,n));if(0===a)return $m.every(Math.max(Fv(t,r,n),1));const[l,s]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return l.every(s)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"==typeof r.range?r:l(e,t,r),a=i?i.range(e,+t+1):[];return n?a.reverse():a},l]}Eg.every=e=>isFinite(e=Math.floor(e))&&e>0?Km(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null,Eg.range;const[Pg,jg]=Sg(Eg,wg,pg,ng,eg,Jm),[Ag,kg]=Sg(Og,xg,ag,tg,Qm,Zm);function _g(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Ng(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Mg(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Tg,Ig,Dg,Cg={"-":"",_:" ",0:"0"},zg=/^\s*\d+/,Lg=/^%/,Bg=/[\\^$*+?|[\]().{}]/g;function Rg(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function Vg(e){return e.replace(Bg,"\\$&")}function Kg(e){return new RegExp("^(?:"+e.map(Vg).join("|")+")","i")}function $g(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Fg(e,t,r){var n=zg.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Wg(e,t,r){var n=zg.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Ug(e,t,r){var n=zg.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Hg(e,t,r){var n=zg.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function qg(e,t,r){var n=zg.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Yg(e,t,r){var n=zg.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Gg(e,t,r){var n=zg.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Xg(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Zg(e,t,r){var n=zg.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function Jg(e,t,r){var n=zg.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Qg(e,t,r){var n=zg.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function eb(e,t,r){var n=zg.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function tb(e,t,r){var n=zg.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function rb(e,t,r){var n=zg.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function nb(e,t,r){var n=zg.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function ib(e,t,r){var n=zg.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function ab(e,t,r){var n=zg.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ob(e,t,r){var n=Lg.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function lb(e,t,r){var n=zg.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function sb(e,t,r){var n=zg.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function cb(e,t){return Rg(e.getDate(),t,2)}function ub(e,t){return Rg(e.getHours(),t,2)}function db(e,t){return Rg(e.getHours()%12||12,t,2)}function fb(e,t){return Rg(1+tg.count(Og(e),e),t,3)}function pb(e,t){return Rg(e.getMilliseconds(),t,3)}function hb(e,t){return pb(e,t)+"000"}function vb(e,t){return Rg(e.getMonth()+1,t,2)}function yb(e,t){return Rg(e.getMinutes(),t,2)}function mb(e,t){return Rg(e.getSeconds(),t,2)}function gb(e){var t=e.getDay();return 0===t?7:t}function bb(e,t){return Rg(ag.count(Og(e)-1,e),t,2)}function xb(e){var t=e.getDay();return t>=4||0===t?cg(e):cg.ceil(e)}function wb(e,t){return e=xb(e),Rg(cg.count(Og(e),e)+(4===Og(e).getDay()),t,2)}function Ob(e){return e.getDay()}function Eb(e,t){return Rg(og.count(Og(e)-1,e),t,2)}function Sb(e,t){return Rg(e.getFullYear()%100,t,2)}function Pb(e,t){return Rg((e=xb(e)).getFullYear()%100,t,2)}function jb(e,t){return Rg(e.getFullYear()%1e4,t,4)}function Ab(e,t){var r=e.getDay();return Rg((e=r>=4||0===r?cg(e):cg.ceil(e)).getFullYear()%1e4,t,4)}function kb(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Rg(t/60|0,"0",2)+Rg(t%60,"0",2)}function _b(e,t){return Rg(e.getUTCDate(),t,2)}function Nb(e,t){return Rg(e.getUTCHours(),t,2)}function Mb(e,t){return Rg(e.getUTCHours()%12||12,t,2)}function Tb(e,t){return Rg(1+rg.count(Eg(e),e),t,3)}function Ib(e,t){return Rg(e.getUTCMilliseconds(),t,3)}function Db(e,t){return Ib(e,t)+"000"}function Cb(e,t){return Rg(e.getUTCMonth()+1,t,2)}function zb(e,t){return Rg(e.getUTCMinutes(),t,2)}function Lb(e,t){return Rg(e.getUTCSeconds(),t,2)}function Bb(e){var t=e.getUTCDay();return 0===t?7:t}function Rb(e,t){return Rg(pg.count(Eg(e)-1,e),t,2)}function Vb(e){var t=e.getUTCDay();return t>=4||0===t?mg(e):mg.ceil(e)}function Kb(e,t){return e=Vb(e),Rg(mg.count(Eg(e),e)+(4===Eg(e).getUTCDay()),t,2)}function $b(e){return e.getUTCDay()}function Fb(e,t){return Rg(hg.count(Eg(e)-1,e),t,2)}function Wb(e,t){return Rg(e.getUTCFullYear()%100,t,2)}function Ub(e,t){return Rg((e=Vb(e)).getUTCFullYear()%100,t,2)}function Hb(e,t){return Rg(e.getUTCFullYear()%1e4,t,4)}function qb(e,t){var r=e.getUTCDay();return Rg((e=r>=4||0===r?mg(e):mg.ceil(e)).getUTCFullYear()%1e4,t,4)}function Yb(){return"+0000"}function Gb(){return"%"}function Xb(e){return+e}function Zb(e){return Math.floor(+e/1e3)}function Jb(e){return new Date(e)}function Qb(e){return e instanceof Date?+e:+new Date(+e)}function ex(e,t,r,n,i,a,o,l,s,c){var u=im(),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),v=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),g=c("%b %d"),b=c("%B"),x=c("%Y");function w(e){return(s(e)<e?p:l(e)<e?h:o(e)<e?v:a(e)<e?y:n(e)<e?i(e)<e?m:g:r(e)<e?b:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,Qb)):f().map(Jb)},u.ticks=function(t){var r=f();return e(r[0],r[r.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var r=f();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?f(Om(r,e)):u},u.copy=function(){return rm(u,ex(e,t,r,n,i,a,o,l,s,c))},u}function tx(){var e,t,r,n,i,a=0,o=1,l=Jy,s=!1;function c(t){return null==t||isNaN(t=+t)?i:l(0===r?.5:(t=(n(t)-e)*r,s?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var r,n;return arguments.length?([r,n]=t,l=e(r,n),c):[l(0),l(1)]}}return c.domain=function(i){return arguments.length?([a,o]=i,e=n(a=+a),t=n(o=+o),r=e===t?0:1/(t-e),c):[a,o]},c.clamp=function(e){return arguments.length?(s=!!e,c):s},c.interpolator=function(e){return arguments.length?(l=e,c):l},c.range=u(qy),c.rangeRound=u(Yy),c.unknown=function(e){return arguments.length?(i=e,c):i},function(i){return n=i,e=i(a),t=i(o),r=e===t?0:1/(t-e),c}}function rx(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function nx(){var e=zm(tx());return e.copy=function(){return rx(e,nx()).exponent(e.exponent())},Xv.apply(e,arguments)}function ix(){var e,t,r,n,i,a,o,l=0,s=.5,c=1,u=1,d=Jy,f=!1;function p(e){return isNaN(e=+e)?o:(e=.5+((e=+a(e))-t)*(u*e<u*t?n:i),d(f?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var r,n,i;return arguments.length?([r,n,i]=t,d=Gy(e,[r,n,i]),p):[d(0),d(.5),d(1)]}}return p.domain=function(o){return arguments.length?([l,s,c]=o,e=a(l=+l),t=a(s=+s),r=a(c=+c),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),u=t<e?-1:1,p):[l,s,c]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=h(qy),p.rangeRound=h(Yy),p.unknown=function(e){return arguments.length?(o=e,p):o},function(o){return a=o,e=o(l),t=o(s),r=o(c),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),u=t<e?-1:1,p}}function ax(){var e=zm(ix());return e.copy=function(){return rx(e,ax()).exponent(e.exponent())},Xv.apply(e,arguments)}!function(e){Tg=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,c=Kg(i),u=$g(i),d=Kg(a),f=$g(a),p=Kg(o),h=$g(o),v=Kg(l),y=$g(l),m=Kg(s),g=$g(s),b={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:cb,e:cb,f:hb,g:Pb,G:Ab,H:ub,I:db,j:fb,L:pb,m:vb,M:yb,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Xb,s:Zb,S:mb,u:gb,U:bb,V:wb,w:Ob,W:Eb,x:null,X:null,y:Sb,Y:jb,Z:kb,"%":Gb},x={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:_b,e:_b,f:Db,g:Ub,G:qb,H:Nb,I:Mb,j:Tb,L:Ib,m:Cb,M:zb,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Xb,s:Zb,S:Lb,u:Bb,U:Rb,V:Kb,w:$b,W:Fb,x:null,X:null,y:Wb,Y:Hb,Z:Yb,"%":Gb},w={a:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=v.exec(t.slice(r));return n?(e.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:Qg,e:Qg,f:ab,g:Gg,G:Yg,H:tb,I:tb,j:eb,L:ib,m:Jg,M:rb,p:function(e,t,r){var n=c.exec(t.slice(r));return n?(e.p=u.get(n[0].toLowerCase()),r+n[0].length):-1},q:Zg,Q:lb,s:sb,S:nb,u:Wg,U:Ug,V:Hg,w:Fg,W:qg,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:Gg,Y:Yg,Z:Xg,"%":ob};function O(e,t){return function(r){var n,i,a,o=[],l=-1,s=0,c=e.length;for(r instanceof Date||(r=new Date(+r));++l<c;)37===e.charCodeAt(l)&&(o.push(e.slice(s,l)),null!=(i=Cg[n=e.charAt(++l)])?n=e.charAt(++l):i="e"===n?" ":"0",(a=t[n])&&(n=a(r,i)),o.push(n),s=l+1);return o.push(e.slice(s,l)),o.join("")}}function E(e,t){return function(r){var n,i,a=Mg(1900,void 0,1);if(S(a,e,r+="",0)!=r.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(n=Ng(Mg(a.y,0,1))).getUTCDay(),n=i>4||0===i?hg.ceil(n):hg(n),n=rg.offset(n,7*(a.V-1)),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(i=(n=_g(Mg(a.y,0,1))).getDay(),n=i>4||0===i?og.ceil(n):og(n),n=tg.offset(n,7*(a.V-1)),a.y=n.getFullYear(),a.m=n.getMonth(),a.d=n.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Ng(Mg(a.y,0,1)).getUTCDay():_g(Mg(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Ng(a)):_g(a)}}function S(e,t,r,n){for(var i,a,o=0,l=t.length,s=r.length;o<l;){if(n>=s)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(a=w[i in Cg?t.charAt(o++):i])||(n=a(e,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(t,b),x.x=O(r,x),x.X=O(n,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}(e),Ig=Tg.format,Tg.parse,Dg=Tg.utcFormat,Tg.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 ox=Object.freeze({__proto__:null,scaleBand:Qv,scaleDiverging:function e(){var t=wm(ix()(Jy));return t.copy=function(){return rx(t,e())},Xv.apply(t,arguments)},scaleDivergingLog:function e(){var t=_m(ix()).domain([.1,1,10]);return t.copy=function(){return rx(t,e()).base(t.base())},Xv.apply(t,arguments)},scaleDivergingPow:ax,scaleDivergingSqrt:function(){return ax.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=Tm(ix());return t.copy=function(){return rx(t,e()).constant(t.constant())},Xv.apply(t,arguments)},scaleIdentity:function e(t){var r;function n(e){return null==e||isNaN(e=+e)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,Xy),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,Xy):[0,1],wm(n)},scaleImplicit:Zv,scaleLinear:function e(){var t=im();return t.copy=function(){return rm(t,e())},Gv.apply(t,arguments),wm(t)},scaleLog:function e(){const t=_m(nm()).domain([1,10]);return t.copy=()=>rm(t,e()).base(t.base()),Gv.apply(t,arguments),t},scaleOrdinal:Jv,scalePoint:function(){return ey(Qv.apply(null,arguments).paddingInner(1))},scalePow:Lm,scaleQuantile:function e(){var t,r=[],n=[],i=[];function a(){var e=0,t=Math.max(1,n.length);for(i=new Array(t-1);++e<t;)i[e-1]=Yv(r,e/t);return o}function o(e){return null==e||isNaN(e=+e)?t:n[Tv(i,e)]}return o.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:r[0],t<i.length?i[t]:r[r.length-1]]},o.domain=function(e){if(!arguments.length)return r.slice();r=[];for(let t of e)null==t||isNaN(t=+t)||r.push(t);return r.sort(Av),a()},o.range=function(e){return arguments.length?(n=Array.from(e),a()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return i.slice()},o.copy=function(){return e().domain(r).range(n).unknown(t)},Gv.apply(o,arguments)},scaleQuantize:function e(){var t,r=0,n=1,i=1,a=[.5],o=[0,1];function l(e){return null!=e&&e<=e?o[Tv(a,e,0,i)]:t}function s(){var e=-1;for(a=new Array(i);++e<i;)a[e]=((e+1)*n-(e-i)*r)/(i+1);return l}return l.domain=function(e){return arguments.length?([r,n]=e,r=+r,n=+n,s()):[r,n]},l.range=function(e){return arguments.length?(i=(o=Array.from(e)).length-1,s()):o.slice()},l.invertExtent=function(e){var t=o.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,a[0]]:t>=i?[a[i-1],n]:[a[t-1],a[t]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return a.slice()},l.copy=function(){return e().domain([r,n]).range(o).unknown(t)},Gv.apply(wm(l),arguments)},scaleRadial:function e(){var t,r=im(),n=[0,1],i=!1;function a(e){var n=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(r(e));return isNaN(n)?t:i?Math.round(n):n}return a.invert=function(e){return r.invert(Bm(e))},a.domain=function(e){return arguments.length?(r.domain(e),a):r.domain()},a.range=function(e){return arguments.length?(r.range((n=Array.from(e,Xy)).map(Bm)),a):n.slice()},a.rangeRound=function(e){return a.range(e).round(!0)},a.round=function(e){return arguments.length?(i=!!e,a):i},a.clamp=function(e){return arguments.length?(r.clamp(e),a):r.clamp()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(r.domain(),n).round(i).clamp(r.clamp()).unknown(t)},Gv.apply(a,arguments),wm(a)},scaleSequential:function e(){var t=wm(tx()(Jy));return t.copy=function(){return rx(t,e())},Xv.apply(t,arguments)},scaleSequentialLog:function e(){var t=_m(tx()).domain([1,10]);return t.copy=function(){return rx(t,e()).base(t.base())},Xv.apply(t,arguments)},scaleSequentialPow:nx,scaleSequentialQuantile:function e(){var t=[],r=Jy;function n(e){if(null!=e&&!isNaN(e=+e))return r((Tv(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(Av),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map((e,n)=>r(n/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(r,n)=>function(e,t){if((r=(e=Float64Array.from(function*(e){for(let t of e)null!=t&&(t=+t)>=t&&(yield t)}(e))).length)&&!isNaN(t=+t)){if(t<=0||r<2)return Uv(e);if(t>=1)return Wv(e);var r,n=(r-1)*t,i=Math.floor(n),a=Wv(Hv(e,i).subarray(0,i+1));return a+(Uv(e.subarray(i+1))-a)*(n-i)}}(t,n/e))},n.copy=function(){return e(r).domain(t)},Xv.apply(n,arguments)},scaleSequentialSqrt:function(){return nx.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=Tm(tx());return t.copy=function(){return rx(t,e()).constant(t.constant())},Xv.apply(t,arguments)},scaleSqrt:function(){return Lm.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=Tm(nm());return t.copy=function(){return rm(t,e()).constant(t.constant())},Gv.apply(t,arguments)},scaleThreshold:function e(){var t,r=[.5],n=[0,1],i=1;function a(e){return null!=e&&e<=e?n[Tv(r,e,0,i)]:t}return a.domain=function(e){return arguments.length?(r=Array.from(e),i=Math.min(r.length,n.length-1),a):r.slice()},a.range=function(e){return arguments.length?(n=Array.from(e),i=Math.min(r.length,n.length-1),a):n.slice()},a.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e().domain(r).range(n).unknown(t)},Gv.apply(a,arguments)},scaleTime:function(){return Gv.apply(ex(Ag,kg,Og,xg,ag,tg,Qm,Zm,Xm,Ig).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Gv.apply(ex(Pg,jg,Eg,wg,pg,rg,eg,Jm,Xm,Dg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:xm});function lx(e,t,r){if("function"==typeof e)return e.copy().domain(t).range(r);if(null!=e){var n=function(e){var t=ox;if(e in t&&"function"==typeof t[e])return t[e]();var r="scale".concat(rn(e));return r in t&&"function"==typeof t[r]?t[r]():void 0}(e);if(null!=n)return n.domain(t).range(r),n}}function sx(e,t,r,n){if(null!=r&&null!=n)return"function"==typeof e.scale?lx(e.scale,r,n):lx(t,r,n)}function cx(e){return function(e){return"scale".concat(rn(e))}(e)in ox}var ux=(e,t,r)=>{if(null!=e){var{scale:n,type:i}=e;return"auto"===n?"category"===i&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":"category"===i?"band":"linear":"string"==typeof n?cx(n)?n:"point":void 0}};function dx(e,t){if(e){var r=null!=t?t:e.domain(),n=r.map(t=>{var r;return null!==(r=e(t))&&void 0!==r?r:0}),i=e.range();if(!(0===r.length||i.length<2))return e=>{var t,i,a=function(e,t){for(var r=0,n=e.length,i=e[0]<e[e.length-1];r<n;){var a=Math.floor((r+n)/2);(i?e[a]<t:e[a]>t)?r=a+1:n=a}return r}(n,e);if(a<=0)return r[0];if(a>=r.length)return r[r.length-1];var o=null!==(t=n[a-1])&&void 0!==t?t:0,l=null!==(i=n[a])&&void 0!==i?i:0;return Math.abs(e-o)<=Math.abs(e-l)?r[a-1]:r[a]}}}function fx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function px(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fx(Object(r),!0).forEach(function(t){hx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function hx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vx=[0,"auto"],yx={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},mx=(e,t)=>e.cartesianAxis.xAxis[t],gx=(e,t)=>{var r=mx(e,t);return null==r?yx:r},bx={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:vx,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:60},xx=(e,t)=>e.cartesianAxis.yAxis[t],wx=(e,t)=>{var r=xx(e,t);return null==r?bx:r},Ox={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Ex=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return null==r?Ox:r},Sx=(e,t,r)=>{switch(t){case"xAxis":return gx(e,r);case"yAxis":return wx(e,r);case"zAxis":return Ex(e,r);case"angleAxis":return sv(e,r);case"radiusAxis":return cv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Px=(e,t,r)=>{switch(t){case"xAxis":return gx(e,r);case"yAxis":return wx(e,r);case"angleAxis":return sv(e,r);case"radiusAxis":return cv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},jx=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function Ax(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var kx=e=>e.graphicalItems.cartesianItems,_x=Ta([mv,gv],Ax),Nx=(e,t,r)=>e.filter(r).filter(e=>!0===(null==t?void 0:t.includeHidden)||!e.hide),Mx=Ta([kx,Sx,_x],Nx,{memoizeOptions:{resultEqualityCheck:Ev}}),Tx=Ta([Mx],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(wv)),Ix=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),Dx=Ta([Mx],Ix),Cx=e=>e.map(e=>e.data).filter(Boolean).flat(1),zx=Ta([Mx],e=>e.some(e=>!e.data)),Lx=Ta([Mx],Cx,{memoizeOptions:{resultEqualityCheck:Ev}}),Bx=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},Rx=Ta([Lx,th],Bx),Vx=(e,t,r,n,i,a)=>{var{chartData:o=[],dataStartIndex:l,dataEndIndex:s}=n,c=((e,t,r)=>null!=(null==t?void 0:t.dataKey)?e.map(e=>({value:Qs(e,t.dataKey)})):r.length>0?r.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:Qs(e,t)}))):e.map(e=>({value:e})))(e,t,r);return i&&null!=(null==t?void 0:t.dataKey)&&a.length>0?[...o.slice(l,s+1).map(e=>({value:Qs(e,t.dataKey)})).filter(e=>null!=e.value),...c]:c},Kx=Ta([Rx,Sx,Mx,th,zx,Lx],Vx);function $x(e){if(Yr(e)||e instanceof Date){var t=Number(e);if(Ys(t))return t}}function Fx(e){if(Array.isArray(e)){var t=[$x(e[0]),$x(e[1])];return ah(t)?t:void 0}var r=$x(e);if(null!=r)return[r,r]}function Wx(e){return e.map($x).filter(nn)}function Ux(e,t){var r=$x(e),n=$x(t);return null==r&&null==n?0:null==r?-1:null==n?1:r-n}var Hx=Ta([Kx],e=>null==e?void 0:e.map(e=>e.value).sort(Ux));function qx(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}var Yx=e=>{var t=Sv(e),r=Pv(e);return Px(e,t,r)},Gx=Ta([Yx],e=>null==e?void 0:e.dataKey),Xx=Ta([Tx,th,Yx],xv),Zx=(e,t,r,n)=>{var i=t.reduce((e,t)=>{if(null==t.stackId)return e;var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var[i,a]=t,o=n?[...a].reverse():a,l=o.map(bv);return[i,{stackedData:ic(e,l,r),graphicalItems:o}]}))},Jx=Ta([Xx,Tx,Yh,Gh],Zx),Qx=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(null==n&&"zAxis"!==r){var o=sc(e,i,a);if(null==o||0!==o[0]||0!==o[1])return o}},ew=Ta([Sx],e=>e.allowDataOverflow),tw=e=>{var t;if(null==e||!("domain"in e))return vx;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var r=Wx(e.ticks);return[Math.min(...r),Math.max(...r)]}if("category"===e.type)return e.ticks.map(String)}return null!==(t=null==e?void 0:e.domain)&&void 0!==t?t:vx},rw=Ta([Sx],tw),nw=Ta([rw,ew],lh),iw=Ta([Jx,Qp,mv,nw],Qx,{memoizeOptions:{resultEqualityCheck:Ov}}),aw=e=>e.errorBars,ow=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);if(0!==n.length){var i=n.flat();return[Math.min(...i),Math.max(...i)]}},lw=function(e,t,r,n,i){var a,o,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];if(r.length>0&&r.forEach(e=>{var r,s=null!=e.data?[...e.data]:l,c=null===(r=n[e.id])||void 0===r?void 0:r.filter(e=>qx(i,e));s.forEach(r=>{var n,i=Qs(r,null!==(n=t.dataKey)&&void 0!==n?n:e.dataKey),l=function(e,t,r){if(!r)return[];if(!r.length)return[];var n;if("number"!=typeof t||Ur(t)){if(Array.isArray(t)){var i=Wx(t);i.length>0&&(n=Math.max(...i))}}else n=t;return null==n?[]:Wx(r.flatMap(t=>{var r,i,a=Qs(e,t.dataKey);if(Array.isArray(a)?[r,i]=a:r=i=a,Ys(r)&&Ys(i))return[n-r,n+i]}))}(r,i,c);if(l.length>=2){var s=Math.min(...l),u=Math.max(...l);(null==a||s<a)&&(a=s),(null==o||u>o)&&(o=u)}var d=Fx(i);null!=d&&(a=null==a?d[0]:Math.min(a,d[0]),o=null==o?d[1]:Math.max(o,d[1]))})}),null!=(null==t?void 0:t.dataKey)&&0===r.length&&e.forEach(e=>{var r=Fx(Qs(e,t.dataKey));null!=r&&(a=null==a?r[0]:Math.min(a,r[0]),o=null==o?r[1]:Math.max(o,r[1]))}),Ys(a)&&Ys(o))return[a,o]},sw=Ta([Rx,Sx,Dx,aw,mv,nh],lw,{memoizeOptions:{resultEqualityCheck:Ov}});function cw(e){var{value:t}=e;if(Yr(t)||t instanceof Date)return t}var uw=e=>e.referenceElements.dots,dw=(e,t,r)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===r:e.yAxisId===r),fw=Ta([uw,mv,gv],dw),pw=e=>e.referenceElements.areas,hw=Ta([pw,mv,gv],dw),vw=e=>e.referenceElements.lines,yw=Ta([vw,mv,gv],dw),mw=(e,t)=>{if(null!=e){var r=Wx(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},gw=Ta(fw,mv,mw),bw=(e,t)=>{if(null!=e){var r=Wx(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},xw=Ta([hw,mv],bw);var ww=(e,t)=>{if(null!=e){var r=e.flatMap(e=>"xAxis"===t?function(e){var t;if(null!=e.x)return Wx([e.x]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.x);return null==r||0===r.length?[]:Wx(r)}(e):function(e){var t;if(null!=e.y)return Wx([e.y]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.y);return null==r||0===r.length?[]:Wx(r)}(e));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Ow=Ta([yw,mv],ww),Ew=Ta(gw,Ow,xw,(e,t,r)=>ow(e,r,t)),Sw=(e,t,r,n,i,a,o,l)=>null!=r?r:function(e,t,r){if(r||null!=t){if("function"==typeof e&&null!=t)try{var n=e(t,r);if(ah(n))return oh(n,t,r)}catch(e){}if(Array.isArray(e)&&2===e.length){var i,a,[o,l]=e;if("auto"===o)null!=t&&(i=Math.min(...t));else if(qr(o))i=o;else if("function"==typeof o)try{null!=t&&(i=o(null==t?void 0:t[0]))}catch(e){}else if("string"==typeof o&&cc.test(o)){var s=cc.exec(o);if(null==s||null==s[1]||null==t)i=void 0;else{var c=+s[1];i=t[0]-c}}else i=null==t?void 0:t[0];if("auto"===l)null!=t&&(a=Math.max(...t));else if(qr(l))a=l;else if("function"==typeof l)try{null!=t&&(a=l(null==t?void 0:t[1]))}catch(e){}else if("string"==typeof l&&uc.test(l)){var u=uc.exec(l);if(null==u||null==u[1]||null==t)a=void 0;else{var d=+u[1];a=t[1]+d}}else a=null==t?void 0:t[1];var f=[i,a];if(ah(f))return null==t?f:oh(f,t,r)}}}(t,"vertical"===o&&"xAxis"===l||"horizontal"===o&&"yAxis"===l?ow(n,a,i):ow(a,i),e.allowDataOverflow),Pw=Ta([Sx,rw,nw,iw,sw,Ew,pu,mv],Sw,{memoizeOptions:{resultEqualityCheck:Ov}}),jw=[0,1],Aw=(e,t,r,n,i,a,o)=>{if(null!=e&&null!=r&&0!==r.length||void 0!==o){var l,{dataKey:s,type:c}=e,u=ec(t,a);return u&&null==s?Jp(0,null!==(l=null==r?void 0:r.length)&&void 0!==l?l:0):"category"===c?((e,t,r)=>{var n=e.map(cw).filter(e=>null!=e);return r&&(null==t.dataKey||t.allowDuplicatedCategory&&Jr(n))?Jp(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))})(n,e,u):"expand"!==i||u?o:jw}},kw=Ta([Sx,pu,Rx,Kx,Yh,mv,Pw],Aw),_w=Ta([Sx,jx,Xh],ux),Nw=(e,t,r)=>{var{niceTicks:n}=t;if("none"!==n){var i=tw(t),a=Array.isArray(i)&&("auto"===i[0]||"auto"===i[1]);if(("snap125"===n||"adaptive"===n)&&null!=t&&t.tickCount&&ah(e)){if(a)return Wh(e,t.tickCount,t.allowDecimals,n);if("number"===t.type)return Uh(e,t.tickCount,t.allowDecimals,n)}if("auto"===n&&"linear"===r&&null!=t&&t.tickCount){if(a&&ah(e))return Wh(e,t.tickCount,t.allowDecimals,"adaptive");if("number"===t.type&&ah(e))return Uh(e,t.tickCount,t.allowDecimals,"adaptive")}}},Mw=Ta([kw,Px,_w],Nw),Tw=(e,t,r,n)=>{if("angleAxis"!==n&&"number"===(null==e?void 0:e.type)&&ah(t)&&Array.isArray(r)&&r.length>0){var i,a,o=t[0],l=null!==(i=r[0])&&void 0!==i?i:0,s=t[1],c=null!==(a=r[r.length-1])&&void 0!==a?a:0;return[Math.min(o,l),Math.max(s,c)]}return t},Iw=Ta([Sx,kw,Mw,mv],Tw),Dw=Ta(Kx,Sx,(e,t)=>{if(t&&"number"===t.type){var r=1/0,n=Array.from(Wx(e.map(e=>e.value))).sort((e,t)=>e-t),i=n[0],a=n[n.length-1];if(null==i||null==a)return 1/0;var o=a-i;if(0===o)return 1/0;for(var l=0;l<n.length-1;l++){var s=n[l],c=n[l+1];if(null!=s&&null!=c){var u=c-s;r=Math.min(r,u)}}return r/o}}),Cw=Ta(Dw,pu,qh,_c,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!Ys(e))return 0;var a="vertical"===t?n.height:n.width;if("gap"===i)return e*a/2;if("no-gap"===i){var o=Zr(r,e*a),l=e*a/2;return l-o-(l-o)/a*o}return 0}),zw=Ta(gx,(e,t,r)=>{var n=gx(e,t);return null==n||"string"!=typeof n.padding?0:Cw(e,"xAxis",t,r,n.padding)},(e,t)=>{var r,n;if(null==e)return{left:0,right:0};var{padding:i}=e;return"string"==typeof i?{left:t,right:t}:{left:(null!==(r=i.left)&&void 0!==r?r:0)+t,right:(null!==(n=i.right)&&void 0!==n?n:0)+t}}),Lw=Ta(wx,(e,t,r)=>{var n=wx(e,t);return null==n||"string"!=typeof n.padding?0:Cw(e,"yAxis",t,r,n.padding)},(e,t)=>{var r,n;if(null==e)return{top:0,bottom:0};var{padding:i}=e;return"string"==typeof i?{top:t,bottom:t}:{top:(null!==(r=i.top)&&void 0!==r?r:0)+t,bottom:(null!==(n=i.bottom)&&void 0!==n?n:0)+t}}),Bw=Ta([_c,zw,Cc,Dc,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),Rw=Ta([_c,pu,Lw,Cc,Dc,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:"horizontal"===t?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Vw=(e,t,r,n)=>{var i;switch(t){case"xAxis":return Bw(e,r,n);case"yAxis":return Rw(e,r,n);case"zAxis":return null===(i=Ex(e,r))||void 0===i?void 0:i.range;case"angleAxis":return hv(e);case"radiusAxis":return vv(e,r);default:return}},Kw=Ta([Sx,Vw],tv),$w=Ta([_w,Iw],(e,t)=>{if(null!=t){if("linear"===e){if(!ah(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];Ys(a)&&((void 0===r||a<r)&&(r=a),(void 0===n||a>n)&&(n=a))}return void 0!==r&&void 0!==n?[r,n]:void 0}return t}return t}}),Fw=Ta([Sx,_w,$w,Kw],sx),Ww=(e,t,r,n)=>{if(null!=r&&null!=r.dataKey){var{type:i,scale:a}=r;return!ec(e,n)||"number"!==i&&"auto"===a?void 0:t.map(e=>e.value)}},Uw=Ta([pu,Kx,Px,mv],Ww),Hw=Ta([Fw],jv);function qw(e,t){return e.id<t.id?-1:e.id>t.id?1:0}Ta([Fw],function(e){if(null!=e)return"invert"in e&&"function"==typeof e.invert?e.invert.bind(e):dx(e,void 0)}),Ta([Fw,Hx],dx),Ta([Mx,aw,mv],(e,t,r)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>qx(r,e)));var Yw=(e,t)=>t,Gw=(e,t,r)=>r,Xw=Ta(gc,Yw,Gw,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(qw)),Zw=Ta(bc,Yw,Gw,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(qw)),Jw=(e,t)=>({width:e.width,height:t.height}),Qw=Ta(_c,gx,Jw),eO=Ta(vc,_c,Xw,Yw,Gw,(e,t,r,n,i)=>{var a,o={};return r.forEach(r=>{var l=Jw(t,r);null==a&&(a=((e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}})(t,n,e));var s="top"===n&&!i||"bottom"===n&&i;o[r.id]=a-Number(s)*l.height,a+=(s?-1:1)*l.height}),o}),tO=Ta(hc,_c,Zw,Yw,Gw,(e,t,r,n,i)=>{var a,o={};return r.forEach(r=>{var l=((e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height}))(t,r);null==a&&(a=((e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}})(t,n,e));var s="left"===n&&!i||"right"===n&&i;o[r.id]=a-Number(s)*l.width,a+=(s?-1:1)*l.width}),o}),rO=Ta([_c,gx,(e,t)=>{var r=gx(e,t);if(null!=r)return eO(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var i=null==r?void 0:r[n];return null==i?{x:e.left,y:0}:{x:e.left,y:i}}}),nO=Ta([_c,wx,(e,t)=>{var r=wx(e,t);if(null!=r)return tO(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var i=null==r?void 0:r[n];return null==i?{x:0,y:e.top}:{x:i,y:e.top}}}),iO=Ta(_c,wx,(e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height})),aO=(e,t,r)=>{switch(t){case"xAxis":return Qw(e,r).width;case"yAxis":return iO(e,r).height;default:return}},oO=(e,t,r,n)=>{if(null!=r){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,l=ec(e,n),s=t.map(e=>e.value),c=s.filter(e=>null!=e);return o&&l&&"category"===a&&i&&Jr(c)?s:void 0}},lO=Ta([pu,Kx,Sx,mv],oO),sO=Ta([pu,(e,t,r)=>{switch(t){case"xAxis":return gx(e,r);case"yAxis":return wx(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},_w,Hw,lO,Uw,Vw,Mw,mv],(e,t,r,n,i,a,o,l,s)=>{if(null!=t){var c=ec(e,s);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:s,categoricalDomain:a,duplicateDomain:i,isCategorical:c,niceTicks:l,range:o,realScaleType:r,scale:n}}}),cO=Ta([pu,Px,_w,Hw,Mw,Vw,lO,Uw,mv],(e,t,r,n,i,a,o,l,s)=>{if(null!=t&&null!=n){var c=ec(e,s),{type:u,ticks:d,tickCount:f}=t,p="scaleBand"===r&&"function"==typeof n.bandwidth?n.bandwidth()/2:2,h="category"===u&&n.bandwidth?n.bandwidth()/p:0;h="angleAxis"===s&&null!=a&&a.length>=2?2*Wr(a[0]-a[1])*h:h;var v=d||i;return v?v.map((e,t)=>{var r=o?o.indexOf(e):e,i=n.map(r);return Ys(i)?{index:t,coordinate:i+h,value:e,offset:h}:null}).filter(nn):c&&l?l.map((e,t)=>{var r=n.map(e);return Ys(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(nn):n.ticks?n.ticks(f).map((e,t)=>{var r=n.map(e);return Ys(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(nn):n.domain().map((e,t)=>{var r=n.map(e);return Ys(r)?{coordinate:r+h,value:o?o[e]:e,index:t,offset:h}:null}).filter(nn)}}),uO=Ta([pu,Px,Hw,Vw,lO,Uw,mv],(e,t,r,n,i,a,o)=>{if(null!=t&&null!=r&&null!=n&&n[0]!==n[1]){var l=ec(e,o),{tickCount:s}=t,c=0;return c="angleAxis"===o&&(null==n?void 0:n.length)>=2?2*Wr(n[0]-n[1])*c:c,l&&a?a.map((e,t)=>{var n=r.map(e);return Ys(n)?{coordinate:n+c,value:e,index:t,offset:c}:null}).filter(nn):r.ticks?r.ticks(s).map((e,t)=>{var n=r.map(e);return Ys(n)?{coordinate:n+c,value:e,index:t,offset:c}:null}).filter(nn):r.domain().map((e,t)=>{var n=r.map(e);return Ys(n)?{coordinate:n+c,value:i?i[e]:e,index:t,offset:c}:null}).filter(nn)}}),dO=Ta(Sx,Hw,(e,t)=>{if(null!=e&&null!=t)return px(px({},e),{},{scale:t})}),fO=Ta([Sx,_w,kw,Kw],sx),pO=Ta([fO],jv),hO=Ta((e,t,r)=>Ex(e,r),pO,(e,t)=>{if(null!=e&&null!=t)return px(px({},e),{},{scale:t})}),vO=Ta([pu,gc,bc],(e,t,r)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}});Ta([(e,t,r)=>{var n;return null===(n=e.renderedTicks[t])||void 0===n?void 0:n[r]}],e=>{if(e&&0!==e.length)return t=>{var r,n=1/0,i=e[0];for(var a of e){var o=Math.abs(a.coordinate-t);o<n&&(n=o,i=a)}return null===(r=i)||void 0===r?void 0:r.value}});var yO=e=>e.options.defaultTooltipEventType,mO=e=>e.options.validateTooltipEventTypes;function gO(e,t,r){if(null==e)return t;var n=e?"axis":"item";return null==r?t:r.includes(n)?n:t}function bO(e,t){return gO(t,yO(e),mO(e))}var xO=(e,t)=>{var r,n=Number(t);if(!Ur(n)&&null!=t)return n>=0?null==e||null===(r=e[n])||void 0===r?void 0:r.value:void 0},wO={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},OO=ls({name:"tooltip",initialState:{itemInteraction:{click:wO,hover:wO},axisInteraction:{click:wO,hover:wO},keyboardInteraction:wO,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Zl()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Al(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:Zl()},removeTooltipEntrySettings:{reducer(e,t){var r=Al(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Zl()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:EO,replaceTooltipEntrySettings:SO,removeTooltipEntrySettings:PO,setTooltipSettingsState:jO,setActiveMouseOverItemIndex:AO,mouseLeaveItem:kO,mouseLeaveChart:_O,setActiveClickItemIndex:NO,setMouseOverAxisIndex:MO,setMouseClickAxisIndex:TO,setSyncInteraction:IO,setKeyboardInteraction:DO}=OO.actions,CO=OO.reducer;function zO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function LO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zO(Object(r),!0).forEach(function(t){BO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function BO(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var RO=(e,t,r,n)=>{if(null==t)return wO;var i=function(e,t,r){return"axis"===t?"click"===r?e.axisInteraction.click:e.axisInteraction.hover:"click"===r?e.itemInteraction.click:e.itemInteraction.hover}(e,t,r);if(null==i)return wO;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;var a=!0===e.settings.active;if(null!=i.index){if(a)return LO(LO({},i),{},{active:!0})}else if(null!=n)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return LO(LO({},wO),{},{coordinate:i.coordinate})};function VO(e,t){var r=function(e){if("number"==typeof e)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}(e),n=t[0],i=t[1];if(void 0===r)return!1;var a=Math.min(n,i),o=Math.max(n,i);return r>=a&&r<=o}var KO=(e,t,r,n)=>{var i=null==e?void 0:e.index;if(null==i)return null;var a=Number(i);if(!Ys(a))return i;var o=1/0;t.length>0&&(o=t.length-1);var l=Math.max(0,Math.min(a,o)),s=t[l];return null==s||function(e,t,r){if(null==r||null==t)return!0;var n=Qs(e,t);return null==n||!ah(r)||VO(n,r)}(s,r,n)?String(l):null},$O=(e,t,r,n,i,a,o)=>{if(null!=a){var l=o[0],s=null==l?void 0:l.getPosition(a);if(null!=s)return s;var c=null==i?void 0:i[Number(a)];if(c)return"horizontal"===r?{x:c.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:c.coordinate}}},FO=(e,t,r,n)=>{if("axis"===t)return e.tooltipItemPayloads;if(0===e.tooltipItemPayloads.length)return[];var i;if(i="hover"===r?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&null==i)return e.tooltipItemPayloads;if(null==i&&(null!=n||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return null!=a?[a]:[]}return e.tooltipItemPayloads.filter(e=>{var t;return(null===(t=e.settings)||void 0===t?void 0:t.graphicalItemId)===i})},WO=e=>e.options.tooltipPayloadSearcher,UO=e=>e.tooltip;function HO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function qO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?HO(Object(r),!0).forEach(function(t){YO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function YO(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GO(e){if("string"==typeof e)return e}var XO=(e,t,r,n,i,a,o)=>{if(null!=t&&null!=a){var{chartData:l,computedData:s,dataStartIndex:c,dataEndIndex:u}=r;return e.reduce((e,r)=>{var d,f,p,{dataDefinedOnItem:h,settings:v}=r,y=function(e,t){return null!=e?e:t}(h,l),m=Array.isArray(y)?qs(y,c,u):y,g=null!==(d=null==v?void 0:v.dataKey)&&void 0!==d?d:n,b=null==v?void 0:v.nameKey;(f=n&&Array.isArray(m)&&!Array.isArray(m[0])&&"axis"===o?en(m,n,i):a(m,t,s,b),Array.isArray(f))?f.forEach(t=>{var r,n,i=function(e){if(null!=e&&"object"==typeof e){var t,r="name"in e?function(e){if("string"==typeof e||"number"==typeof e)return e}(e.name):void 0,n="unit"in e?function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return e}(e.unit):void 0;return{name:r,unit:n,dataKey:"dataKey"in e?"string"==typeof(t=e.dataKey)||"number"==typeof t?t:"function"==typeof t?e=>t(e):void 0:void 0,payload:"payload"in e?e.payload:void 0,color:"color"in e?GO(e.color):void 0,fill:"fill"in e?GO(e.fill):void 0}}}(t),a=null==i?void 0:i.name,o=null==i?void 0:i.dataKey,l=null==i?void 0:i.payload,s=qO(qO({},v),{},{name:a,unit:null==i?void 0:i.unit,color:null!==(r=null==i?void 0:i.color)&&void 0!==r?r:null==v?void 0:v.color,fill:null!==(n=null==i?void 0:i.fill)&&void 0!==n?n:null==v?void 0:v.fill});e.push(fc({tooltipEntrySettings:s,dataKey:o,payload:l,value:Qs(l,o),name:null==a?void 0:String(a)}))}):e.push(fc({tooltipEntrySettings:v,dataKey:g,payload:f,value:Qs(f,g),name:null!==(p=Qs(f,b))&&void 0!==p?p:null==v?void 0:v.name}));return e},[])}},ZO=Ta([Yx,jx,Xh],ux),JO=Ta([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),QO=Ta([Sv,Pv],Ax),eE=Ta([JO,Yx,QO],Nx,{memoizeOptions:{resultEqualityCheck:Ev}}),tE=Ta([eE],e=>e.filter(wv)),rE=Ta([eE],Cx,{memoizeOptions:{resultEqualityCheck:Ev}}),nE=Ta([eE],e=>e.some(e=>!e.data)),iE=Ta([rE,Qp],Bx),aE=Ta([tE,Qp,Yx],xv),oE=Ta([iE,Yx,eE,Qp,nE,rE],Vx),lE=Ta([Yx],tw),sE=Ta([Yx],e=>e.allowDataOverflow),cE=Ta([lE,sE],lh),uE=Ta([eE],e=>e.filter(wv)),dE=Ta([aE,uE,Yh,Gh],Zx),fE=Ta([dE,Qp,Sv,cE],Qx),pE=Ta([eE],Ix),hE=Ta([iE,Yx,pE,aw,Sv,ih],lw,{memoizeOptions:{resultEqualityCheck:Ov}}),vE=Ta([uw,Sv,Pv],dw),yE=Ta([vE,Sv],mw),mE=Ta([pw,Sv,Pv],dw),gE=Ta([mE,Sv],bw),bE=Ta([vw,Sv,Pv],dw),xE=Ta([bE,Sv],ww),wE=Ta([yE,xE,gE],ow),OE=Ta([Yx,lE,cE,fE,hE,wE,pu,Sv],Sw),EE=Ta([Yx,pu,iE,oE,Yh,Sv,OE],Aw),SE=Ta([EE,Yx,ZO],Nw),PE=Ta([Yx,EE,SE,Sv],Tw),jE=e=>{var t=Sv(e),r=Pv(e);return Vw(e,t,r,!1)},AE=Ta([Yx,jE],tv),kE=Ta([Yx,ZO,PE,AE],sx),_E=Ta([kE],jv),NE=Ta([pu,oE,Yx,Sv],oO),ME=Ta([pu,oE,Yx,Sv],Ww),TE=Ta([pu,Yx,ZO,_E,jE,NE,ME,Sv],(e,t,r,n,i,a,o,l)=>{if(t){var{type:s}=t,c=ec(e,l);if(n){var u="scaleBand"===r&&n.bandwidth?n.bandwidth()/2:2,d="category"===s&&n.bandwidth?n.bandwidth()/u:0;return d="angleAxis"===l&&null!=i&&(null==i?void 0:i.length)>=2?2*Wr(i[0]-i[1])*d:d,c&&o?o.map((e,t)=>{var r=n.map(e);return Ys(r)?{coordinate:r+d,value:e,index:t,offset:d}:null}).filter(nn):n.domain().map((e,t)=>{var r=n.map(e);return Ys(r)?{coordinate:r+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(nn)}}}),IE=Ta([yO,mO,e=>e.tooltip.settings],(e,t,r)=>gO(r.shared,e,t)),DE=e=>e.tooltip.settings.trigger,CE=e=>e.tooltip.settings.defaultIndex,zE=Ta([UO,IE,DE,CE],RO),LE=Ta([zE,iE,Gx,EE],KO),BE=Ta([TE,LE],xO),RE=Ta([zE],e=>{if(e)return e.dataKey}),VE=Ta([zE],e=>{if(e)return e.graphicalItemId}),KE=Ta([UO,IE,DE,CE],FO),$E=Ta([hc,vc,pu,_c,TE,CE,KE],$O),FE=Ta([zE,$E],(e,t)=>null!=e&&e.coordinate?e.coordinate:t),WE=Ta([zE],e=>{var t;return null!==(t=null==e?void 0:e.active)&&void 0!==t&&t}),UE=Ta([KE,LE,Qp,Gx,BE,WO,IE],XO),HE=Ta([UE],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}});function qE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function YE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qE(Object(r),!0).forEach(function(t){GE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function GE(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var XE=()=>{var e=xa(Yx),t=xa(TE),r=xa(_E);return dc(e&&r?YE(YE({},e),{},{scale:r}):void 0,t)};function ZE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function JE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ZE(Object(r),!0).forEach(function(t){QE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function QE(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eS=(e,t,r,n,i)=>{var a,o=null!==(a=null==t?void 0:t.length)&&void 0!==a?a:0;if(o<=1||null==e)return 0;if("angleAxis"===n&&null!=i&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<o;l++){var s,c,u,d,f,p=l>0?null===(s=r[l-1])||void 0===s?void 0:s.coordinate:null===(c=r[o-1])||void 0===c?void 0:c.coordinate,h=null===(u=r[l])||void 0===u?void 0:u.coordinate,v=l>=o-1?null===(d=r[0])||void 0===d?void 0:d.coordinate:null===(f=r[l+1])||void 0===f?void 0:f.coordinate,y=void 0;if(null!=p&&null!=h&&null!=v)if(Wr(h-p)!==Wr(v-h)){var m=[];if(Wr(v-h)===Wr(i[1]-i[0])){y=v;var g=h+i[1]-i[0];m[0]=Math.min(g,(g+p)/2),m[1]=Math.max(g,(g+p)/2)}else{y=p;var b=v+i[1]-i[0];m[0]=Math.min(h,(b+h)/2),m[1]=Math.max(h,(b+h)/2)}var x,w=[Math.min(h,(y+h)/2),Math.max(h,(y+h)/2)];if(e>w[0]&&e<=w[1]||e>=m[0]&&e<=m[1])return null===(x=r[l])||void 0===x?void 0:x.index}else{var O,E=Math.min(p,v),S=Math.max(p,v);if(e>(E+h)/2&&e<=(S+h)/2)return null===(O=r[l])||void 0===O?void 0:O.index}}else if(t)for(var P=0;P<o;P++){var j=t[P];if(null!=j){var A=t[P+1],k=t[P-1];if(0===P&&null!=A&&e<=(j.coordinate+A.coordinate)/2)return j.index;if(P===o-1&&null!=k&&e>(j.coordinate+k.coordinate)/2)return j.index;if(P>0&&P<o-1&&null!=k&&null!=A&&e>(j.coordinate+k.coordinate)/2&&e<=(j.coordinate+A.coordinate)/2)return j.index}}return-1},tS=()=>xa(Xh),rS=(e,t)=>t,nS=(e,t,r)=>r,iS=(e,t,r,n)=>n,aS=Ta(TE,e=>no(e,e=>e.coordinate)),oS=Ta([UO,rS,nS,iS],RO),lS=Ta([oS,iE,Gx,EE],KO),sS=Ta([UO,rS,nS,iS],FO),cS=Ta([hc,vc,pu,_c,TE,iS,sS],$O),uS=Ta([oS,cS],(e,t)=>{var r;return null!==(r=e.coordinate)&&void 0!==r?r:t}),dS=Ta([TE,lS],xO),fS=Ta([sS,lS,Qp,Gx,dS,WO,rS],XO),pS=Ta([oS,lS],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),hS=(e,t,r,n,i,a,o)=>{if(e&&n&&i&&a&&r){var l=Mp(e,r);if(l){var s=((e,t)=>"centric"===t?e.angle:e.radius)(l,t),c=eS(s,o,a,n,i),u=((e,t,r,n)=>{var i=t.find(e=>e&&e.index===r);if(i){if("centric"===e){var a=i.coordinate,{radius:o}=n;return JE(JE(JE({},n),kp(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var l=i.coordinate,{angle:s}=n;return JE(JE(JE({},n),kp(n.cx,n.cy,l,s)),{},{angle:s,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}})(t,a,c,l);return{activeIndex:String(c),activeCoordinate:u}}}},vS=Ta(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(null!=t){var n=e[t];if(null!=n)return r?n.panoramaElement:n.element}}),yS=Ta(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(ev));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:function(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}}});function mS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mS(Object(r),!0).forEach(function(t){bS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function bS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xS={zIndexMap:Object.values(ev).reduce((e,t)=>gS(gS({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},wS=new Set(Object.values(ev));var OS=ls({name:"zIndex",initialState:xS,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Zl()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!function(e){return wS.has(e)}(r)&&delete e.zIndexMap[r])},prepare:Zl()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:Zl()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:Zl()}}}),{registerZIndexPortal:ES,unregisterZIndexPortal:SS,registerZIndexPortalElement:PS,unregisterZIndexPortalElement:jS}=OS.actions,AS=OS.reducer;function kS(e){var{zIndex:t,children:r}=e,n=void 0!==hu()&&void 0!==t&&0!==t,i=Ic(),a=d(void 0),o=d(new Set),l=ya(),s=xa(e=>vS(e,t,i));if(h(()=>{if(!n){var e=o.current;return e.forEach(e=>{l(SS({zIndex:e}))}),e.clear(),void(a.current=void 0)}if(o.current.has(t)||(l(ES({zIndex:t})),o.current.add(t)),s){a.current=s;var r=o.current;r.forEach(e=>{e!==t&&(l(SS({zIndex:e})),r.delete(e))})}},[l,t,n,s]),h(()=>{var e=o.current;return()=>{e.forEach(e=>{l(SS({zIndex:e}))}),e.clear()}},[l]),!n)return r;var c=null!=s?s:a.current;return c?Z(r,c):null}function _S(){return _S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_S.apply(null,arguments)}function NS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function MS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?NS(Object(r),!0).forEach(function(t){TS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function TS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IS(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return i(t)?v(t,n):y(r,n)}function DS(e){var t,n,i,a,{coordinate:o,payload:l,index:s,offset:c,tooltipAxisBandSize:u,layout:d,cursor:f,tooltipEventType:p,chartName:h}=e,v=o,y=l,m=s;if(!f||!v||"ScatterChart"!==h&&"axis"!==p)return null;if("ScatterChart"===h)n=v,i=bf,a=ev.cursorLine;else if("BarChart"===h)n=function(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-i,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}(d,v,c,u),i=vp,a=ev.cursorRectangle;else if("radial"===d&&hn(v)){var{cx:g,cy:b,radius:x,startAngle:w,endAngle:O}=Tp(v);n={cx:g,cy:b,startAngle:w,endAngle:O,innerRadius:x,outerRadius:x},i=Bp,a=ev.cursorLine}else n={points:Rp(d,v,c)},i=pf,a=ev.cursorLine;var E="object"==typeof f&&"className"in f?f.className:void 0,P=MS(MS(MS(MS({stroke:"#ccc",pointerEvents:"none"},c),n),ot(f)),{},{payload:y,payloadIndex:m,className:S("recharts-tooltip-cursor",E)});return r.createElement(kS,{zIndex:null!==(t=e.zIndex)&&void 0!==t?t:a},r.createElement(IS,{cursor:f,cursorComp:i,cursorProps:P}))}function CS(e){var t=XE(),n=uu(),i=hu(),a=tS();return null==t||null==n||null==i||null==a?null:r.createElement(DS,_S({},e,{offset:n,layout:i,tooltipAxisBandSize:t,chartName:a}))}var zS,LS=o(null),BS={exports:{}};var RS=(zS||(zS=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new i(n,a||e,o),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i<a;i++)o[i]=n[i].fn;return o},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,i,a,o){var l=r?r+e:e;if(!this._events[l])return!1;var s,c,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,a),!0;case 6:return u.fn.call(u.context,t,n,i,a,o),!0}for(c=1,s=new Array(d-1);c<d;c++)s[c-1]=arguments[c];u.fn.apply(u.context,s)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,i);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];u[c].fn.apply(u[c].context,s)}}return!0},l.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||o(this,a);else{for(var s=0,c=[],u=l.length;s<u;s++)(l[s].fn!==t||i&&!l[s].once||n&&l[s].context!==n)&&c.push(l[s]);c.length?this._events[a]=1===c.length?c[0]:c:o(this,a)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l}(BS)),BS.exports),VS=new(br(RS)),KS="recharts.syncEvent.tooltip",$S="recharts.syncEvent.brush",FS=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!Ur(r))return e[r]}},WS=ls({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),US=WS.reducer,{createEventEmitter:HS}=WS.actions;function qS(e){return e.tooltip.syncInteraction}var YS=ls({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=t.payload,null==t.payload)return e.dataStartIndex=0,void(e.dataEndIndex=0);t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;null!=r&&(e.dataStartIndex=r),null!=n&&(e.dataEndIndex=n)}}}),{setChartData:GS,setDataStartEndIndexes:XS,setComputedData:ZS}=YS.actions,JS=YS.reducer,QS=["x","y"];function eP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function tP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eP(Object(r),!0).forEach(function(t){rP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function rP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nP(){var e=xa(Zh),t=xa(Qh),r=ya(),n=xa(Jh),i=xa(TE),a=hu(),o=su(),l=xa(e=>e.rootProps.className);p(()=>{if(null==e)return an;var l=(l,s,c)=>{var u;if(t!==c&&e===l)if(!1!==s.payload.active)if("index"!==n){if(null!=i){var d;if("function"==typeof n){var f={activeTooltipIndex:null==s.payload.index?void 0:Number(s.payload.index),isTooltipActive:s.payload.active,activeIndex:null==s.payload.index?void 0:Number(s.payload.index),activeLabel:s.payload.label,activeDataKey:s.payload.dataKey,activeCoordinate:s.payload.coordinate},p=n(i,f);d=i[p]}else"value"===n&&(d=i.find(e=>String(e.value)===s.payload.label));var{coordinate:h}=s.payload;if(null!=h&&null!=o)if(null!=d){var{x:v,y:y}=h,m=Math.min(v,o.x+o.width),g=Math.min(y,o.y+o.height),b={x:"horizontal"===a?d.coordinate:m,y:"horizontal"===a?g:d.coordinate},x=IO({active:s.payload.active,coordinate:b,dataKey:s.payload.dataKey,index:String(d.index),label:s.payload.label,sourceViewBox:s.payload.sourceViewBox,graphicalItemId:s.payload.graphicalItemId});r(x)}else r(IO({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:s.payload.sourceViewBox,graphicalItemId:void 0}));else r(IO({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))}}else if(o&&null!=s&&null!==(u=s.payload)&&void 0!==u&&u.coordinate&&s.payload.sourceViewBox){var w=s.payload.coordinate,{x:O,y:E}=w,S=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(w,QS),{x:P,y:j,width:A,height:k}=s.payload.sourceViewBox,_=tP(tP({},S),{},{x:o.x+(A?(O-P)/A:0)*o.width,y:o.y+(k?(E-j)/k:0)*o.height});r(tP(tP({},s),{},{payload:tP(tP({},s.payload),{},{coordinate:_})}))}else r(s);else r(IO({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))};return VS.on(KS,l),()=>{VS.off(KS,l)}},[l,r,t,e,n,i,a,o])}function iP(){var e=ya();p(()=>{e(HS())},[e]),nP(),function(){var e=xa(Zh),t=xa(Qh),r=ya();p(()=>{if(null==e)return an;var n=(n,i,a)=>{t!==a&&e===n&&r(XS(i))};return VS.on($S,n),()=>{VS.off($S,n)}},[r,t,e])}()}function aP(e,t,r,n,i,a){var o=xa(r=>((e,t,r)=>{if(null!=t){var n=UO(e);return"axis"===t?"hover"===r?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:"hover"===r?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}})(r,e,t)),l=xa(VE),s=xa(Qh),c=xa(Zh),u=xa(Jh),d=xa(qS),f=null!=(null==d?void 0:d.sourceViewBox),h=su();p(()=>{if(!f&&null!=c&&null!=s){var e=IO({active:a,coordinate:r,dataKey:o,index:i,label:"number"==typeof n?String(n):n,sourceViewBox:h,graphicalItemId:l});VS.emit(KS,c,e,s)}},[f,r,o,l,i,n,s,c,u,a,h])}function oP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function lP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oP(Object(r),!0).forEach(function(t){sP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cP(e){return e.dataKey}var uP=[],dP={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function fP(e){var t,n,i=bn(e,dP),{active:a,allowEscapeViewBox:o,animationDuration:s,animationEasing:d,content:f,filterNull:h,isAnimationActive:v,offset:y,payloadUniqBy:m,position:g,reverseDirection:b,useTranslate3d:x,wrapperStyle:w,cursor:O,shared:E,trigger:S,defaultIndex:P,portal:j,axisId:A}=i,k=ya(),_="number"==typeof P?String(P):P;p(()=>{k(jO({shared:E,trigger:S,axisId:A,active:a,defaultIndex:_}))},[k,E,S,A,a,_]);var N=su(),M=ef(),T=function(e){return xa(t=>bO(t,e))}(E),{activeIndex:I,isActive:D}=null!==(t=xa(e=>pS(e,T,S,_)))&&void 0!==t?t:{},C=xa(e=>fS(e,T,S,_)),z=xa(e=>dS(e,T,S,_)),L=xa(e=>uS(e,T,S,_)),B=C,R=l(LS),V=null!==(n=null!=a?a:D)&&void 0!==n&&n,[K,$]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=c({height:0,left:0,top:0,width:0}),n=u(e=>{if(null!=e){var n=e.getBoundingClientRect(),i={height:n.height,left:n.left,top:n.top,width:n.width};(Math.abs(i.height-t.height)>1||Math.abs(i.left-t.left)>1||Math.abs(i.top-t.top)>1||Math.abs(i.width-t.width)>1)&&r({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}([B,V]),F="axis"===T?z:void 0;aP(T,S,L,F,I,V);var W=null!=j?j:R;if(null==W||null==N||null==T)return null;var U=null!=B?B:uP;V||(U=uP),h&&U.length&&(U=function(e,t,r){return!0===t?Qi(e,r):"function"==typeof t?Qi(e,t):e}(U.filter(e=>null!=e.value&&(!0!==e.hide||i.includeHidden)),m,cP));var H=U.length>0,q=lP(lP({},i),{},{payload:U,label:F,active:V,activeIndex:I,coordinate:L,accessibilityLayer:M}),Y=r.createElement(Qd,{allowEscapeViewBox:o,animationDuration:s,animationEasing:d,isAnimationActive:v,active:V,coordinate:L,hasPayload:H,offset:y,position:g,reverseDirection:b,useTranslate3d:x,viewBox:N,wrapperStyle:w,lastBoundingBox:K,innerRef:$,hasPortalFromProps:Boolean(j)},function(e,t){return r.isValidElement(e)?r.cloneElement(e,t):"function"==typeof e?r.createElement(e,t):r.createElement(Kd,t)}(f,q));return r.createElement(r.Fragment,null,Z(Y,W),V&&r.createElement(CS,{cursor:O,tooltipEventType:T,coordinate:L,payload:U,index:I}))}var pP=e=>null;function hP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}pP.displayName="Cell";function vP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function yP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mP=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vP(Object(r),!0).forEach(function(t){yP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{cacheSize:2e3,enableCache:!0}),gP=new class{constructor(e){hP(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;null!=r&&this.cache.delete(r)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}(mP.cacheSize),bP={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},xP="recharts_measurement_span";var wP=(e,t)=>{try{var r=document.getElementById(xP);r||((r=document.createElement("span")).setAttribute("id",xP),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,bP,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch(e){return{width:0,height:0}}},OP=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Hd)return{width:0,height:0};if(!mP.enableCache)return wP(e,t);var r=function(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(l)}(e,t),n=gP.get(r);if(n)return n;var i=wP(e,t);return gP.set(r,i),i};var EP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,SP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,PP=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,jP=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,AP={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},kP=["cm","mm","pt","pc","in","Q","px"];var _P,NP,MP,TP="NaN";class IP{static parse(e){var t,[,r,n]=null!==(t=jP.exec(e))&&void 0!==t?t:[];return null==r?IP.NaN:new IP(parseFloat(r),null!=n?n:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,Ur(e)&&(this.unit=""),""===t||PP.test(t)||(this.num=NaN,this.unit=""),function(e){return kP.includes(e)}(t)&&(this.num=function(e,t){return e*AP[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new IP(NaN,""):new IP(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new IP(NaN,""):new IP(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new IP(NaN,""):new IP(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new IP(NaN,""):new IP(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ur(this.num)}}function DP(e){if(null==e||e.includes(TP))return TP;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=null!==(r=EP.exec(t))&&void 0!==r?r:[],o=IP.parse(null!=n?n:""),l=IP.parse(null!=a?a:""),s="*"===i?o.multiply(l):o.divide(l);if(s.isNaN())return TP;t=t.replace(EP,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,f]=null!==(c=SP.exec(t))&&void 0!==c?c:[],p=IP.parse(null!=u?u:""),h=IP.parse(null!=f?f:""),v="+"===d?p.add(h):p.subtract(h);if(v.isNaN())return TP;t=t.replace(SP,v.toString())}return t}_P=IP,NP="NaN",MP=new IP(NaN,""),(NP=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(NP))in _P?Object.defineProperty(_P,NP,{value:MP,enumerable:!0,configurable:!0,writable:!0}):_P[NP]=MP;var CP=/\(([^()]*)\)/;function zP(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,r=e;null!=(t=CP.exec(r));){var[,n]=t;r=r.replace(CP,DP(n))}return r}(t),t=DP(t)}function LP(e){var t=function(e){try{return zP(e)}catch(e){return TP}}(e.slice(5,-1));return t===TP?"":t}var BP=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],RP=["dx","dy","angle","className","breakAll"];function VP(){return VP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},VP.apply(null,arguments)}function KP(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var $P=/[ \f\n\r\t\v\u2028\u2029]+/,FP=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];return tn(t)||(i=r?t.toString().split(""):t.toString().split($P)),{wordsWithComputedWidth:i.map(e=>({word:e,width:OP(e,n).width})),spaceWidth:r?0:OP(" ",n).width}}catch(e){return null}};function WP(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}var UP=(e,t,r,n)=>e.reduce((e,i)=>{var{word:a,width:o}=i,l=e[e.length-1];if(l&&null!=o&&(null==t||n||l.width+o+r<Number(t)))l.words.push(a),l.width+=o+r;else{var s={words:[a],width:o};e.push(s)}return e},[]),HP=e=>e.reduce((e,t)=>e.width>t.width?e:t),qP=(e,t,r,n,i,a,o,l)=>{var s=e.slice(0,t),c=FP({breakAll:r,style:n,children:s+"…"});if(!c)return[!1,[]];var u=UP(c.wordsWithComputedWidth,a,o,l);return[u.length>i||HP(u).width>Number(a),u]},YP=e=>[{words:tn(e)?[]:e.toString().split($P),width:void 0}],GP=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!Hd){var l=FP({breakAll:a,children:n,style:i});if(!l)return YP(n);var{wordsWithComputedWidth:s,spaceWidth:c}=l;return((e,t,r,n,i)=>{var{maxLines:a,children:o,style:l,breakAll:s}=e,c=qr(a),u=String(o),d=UP(t,n,r,i);if(!c||i)return d;if(!(d.length>a||HP(d).width>Number(n)))return d;for(var f,p=0,h=u.length-1,v=0;p<=h&&v<=u.length-1;){var y=Math.floor((p+h)/2),m=y-1,[g,b]=qP(u,m,s,l,a,n,r,i),[x]=qP(u,y,s,l,a,n,r,i);if(g||x||(p=y+1),g&&x&&(h=y-1),!g&&x){f=b;break}v++}return f||d})({breakAll:a,children:n,maxLines:o,style:i},s,c,t,Boolean(r))}return YP(n)},XP="#808080",ZP={angle:0,breakAll:!1,capHeight:"0.71em",fill:XP,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},JP=a((e,t)=>{var n=bn(e,ZP),{x:i,y:a,lineHeight:o,capHeight:l,fill:c,scaleToFit:u,textAnchor:d,verticalAnchor:f}=n,p=KP(n,BP),h=s(()=>GP({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:u,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,u,p.style,p.width]),{dx:v,dy:y,angle:m,className:g,breakAll:b}=p,x=KP(p,RP);if(!Yr(i)||!Yr(a)||0===h.length)return null;var w,O=Number(i)+(qr(v)?v:0),E=Number(a)+(qr(y)?y:0);if(!Ys(O)||!Ys(E))return null;switch(f){case"start":w=LP("calc(".concat(l,")"));break;case"middle":w=LP("calc(".concat((h.length-1)/2," * -").concat(o," + (").concat(l," / 2))"));break;default:w=LP("calc(".concat(h.length-1," * -").concat(o,")"))}var P=[],j=h[0];if(u&&null!=j){var A=j.width,{width:k}=p;P.push("scale(".concat(qr(k)&&qr(A)?k/A:1,")"))}return m&&P.push("rotate(".concat(m,", ").concat(O,", ").concat(E,")")),P.length&&(x.transform=P.join(" ")),r.createElement("text",VP({},lt(x),{ref:t,x:O,y:E,className:S("recharts-text",g),textAnchor:d,fill:c.includes("url")?XP:c}),h.map((e,t)=>{var n=e.words.join(b?"":" ");return r.createElement("tspan",{x:O,dy:0===t?w:o,key:"".concat(n,"-").concat(t)},n)}))});function QP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ej(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?QP(Object(r),!0).forEach(function(t){tj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tj(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}JP.displayName="Text";var rj=["labelRef"],nj=["content"];function ij(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function aj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function oj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aj(Object(r),!0).forEach(function(t){lj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function lj(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sj(){return sj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sj.apply(null,arguments)}var cj=o(null),uj=e=>{var{x:t,y:n,upperWidth:i,lowerWidth:a,width:o,height:l,children:c}=e,u=s(()=>({x:t,y:n,upperWidth:i,lowerWidth:a,width:o,height:l}),[t,n,i,a,o,l]);return r.createElement(cj.Provider,{value:u},c)},dj=()=>{var e=l(cj),t=su();return e||(t?lu(t):void 0)},fj=o(null),pj=e=>null!=e&&"function"==typeof e,hj=(e,t,n,i,a)=>{var o,l,{offset:s,className:c}=e,{cx:u,cy:d,innerRadius:f,outerRadius:p,startAngle:h,endAngle:v,clockWise:y}=a,m=(f+p)/2,g=((e,t)=>Wr(t-e)*Math.min(Math.abs(t-e),360))(h,v),b=g>=0?1:-1;switch(t){case"insideStart":o=h+b*s,l=y;break;case"insideEnd":o=v-b*s,l=!y;break;case"end":o=v+b*s,l=y;break;default:throw new Error("Unsupported position ".concat(t))}l=g<=0?l:!l;var x=kp(u,d,m,o),w=kp(u,d,m,o+359*(l?1:-1)),O="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(l?0:1,",\n ").concat(w.x,",").concat(w.y),E=tn(e.id)?Xr("recharts-radial-line-"):e.id;return r.createElement("text",sj({},i,{dominantBaseline:"central",className:S("recharts-radial-bar-label",c)}),r.createElement("defs",null,r.createElement("path",{id:E,d:O})),r.createElement("textPath",{xlinkHref:"#".concat(E)},n))},vj=e=>null!=e&&"cx"in e&&qr(e.cx),yj={angle:0,offset:5,zIndex:ev.label,position:"middle",textBreakAll:!1};function mj(e){var t,n,a,o,s,c=bn(e,yj),{viewBox:u,parentViewBox:d,position:f,value:p,children:h,content:m,className:g="",textBreakAll:b,labelRef:x}=c,w=(t=l(fj),n=xa(yv),t||n),O=dj(),E=function(e){if(!vj(e))return e;var{cx:t,cy:r,outerRadius:n}=e,i=2*n;return{x:t-n,y:r-n,width:i,upperWidth:i,lowerWidth:i,height:i}}(a=null==u?"center"===f?O:null!=w?w:O:vj(u)?u:lu(u));if(!a||tn(p)&&tn(h)&&!i(m)&&"function"!=typeof m)return null;var P=oj(oj({},c),{},{viewBox:a});if(i(m)){var{labelRef:j}=P,A=ij(P,rj);return v(m,A)}if("function"==typeof m){var{content:k}=P,_=ij(P,nj);if(i(o=y(m,_)))return o}else o=(e=>{var{value:t,formatter:r}=e,n=tn(e.children)?t:e.children;return"function"==typeof r?r(n):n})(c);var N=lt(c);if(vj(a)){if("insideStart"===f||"insideEnd"===f||"end"===f)return hj(c,f,o,N,a);s=((e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:s}=e,c=(l+s)/2;if("outside"===r){var{x:u,y:d}=kp(n,i,o+t,c);return{x:u,y:d,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var f=(a+o)/2,{x:p,y:h}=kp(n,i,f,c);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}})(a,c.offset,c.position)}else{if(!E)return null;var M=(e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:l,upperWidth:s,lowerWidth:c}=lu(t),u=a,d=a+(s-c)/2,f=(u+d)/2,p=(s+c)/2,h=u+s/2,v=l>=0?1:-1,y=v*n,m=v>0?"end":"start",g=v>0?"start":"end",b=s>=0?1:-1,x=b*n,w=b>0?"end":"start",O=b>0?"start":"end",E=i;if("top"===r){var S={x:u+s/2,y:o-y,horizontalAnchor:"middle",verticalAnchor:m};return E&&(S.height=Math.max(o-E.y,0),S.width=s),S}if("bottom"===r){var P={x:d+c/2,y:o+l+y,horizontalAnchor:"middle",verticalAnchor:g};return E&&(P.height=Math.max(E.y+E.height-(o+l),0),P.width=c),P}if("left"===r){var j={x:f-x,y:o+l/2,horizontalAnchor:w,verticalAnchor:"middle"};return E&&(j.width=Math.max(j.x-E.x,0),j.height=l),j}if("right"===r){var A={x:f+p+x,y:o+l/2,horizontalAnchor:O,verticalAnchor:"middle"};return E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=l),A}var k=E?{width:p,height:l}:{};return"insideLeft"===r?ej({x:f+x,y:o+l/2,horizontalAnchor:O,verticalAnchor:"middle"},k):"insideRight"===r?ej({x:f+p-x,y:o+l/2,horizontalAnchor:w,verticalAnchor:"middle"},k):"insideTop"===r?ej({x:u+s/2,y:o+y,horizontalAnchor:"middle",verticalAnchor:g},k):"insideBottom"===r?ej({x:d+c/2,y:o+l-y,horizontalAnchor:"middle",verticalAnchor:m},k):"insideTopLeft"===r?ej({x:u+x,y:o+y,horizontalAnchor:O,verticalAnchor:g},k):"insideTopRight"===r?ej({x:u+s-x,y:o+y,horizontalAnchor:w,verticalAnchor:g},k):"insideBottomLeft"===r?ej({x:d+x,y:o+l-y,horizontalAnchor:O,verticalAnchor:m},k):"insideBottomRight"===r?ej({x:d+c-x,y:o+l-y,horizontalAnchor:w,verticalAnchor:m},k):r&&"object"==typeof r&&(qr(r.x)||Hr(r.x))&&(qr(r.y)||Hr(r.y))?ej({x:a+Zr(r.x,p),y:o+Zr(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},k):ej({x:h,y:o+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},k)})({viewBox:E,position:f,offset:c.offset,parentViewBox:vj(d)?void 0:d});s=oj(oj({x:M.x,y:M.y,textAnchor:M.horizontalAnchor,verticalAnchor:M.verticalAnchor},void 0!==M.width?{width:M.width}:{}),void 0!==M.height?{height:M.height}:{})}return r.createElement(kS,{zIndex:c.zIndex},r.createElement(JP,sj({ref:x,className:S("recharts-label",g)},N,s,{textAnchor:WP(N.textAnchor)?N.textAnchor:s.textAnchor,breakAll:b}),o))}mj.displayName="Label";function gj(e){var{label:t,labelRef:n}=e;return((e,t,n)=>{if(!e)return null;var a={viewBox:t,labelRef:n};return!0===e?r.createElement(mj,sj({key:"label-implicit"},a)):Yr(e)?r.createElement(mj,sj({key:"label-implicit",value:e},a)):i(e)?e.type===mj?v(e,oj({key:"label-implicit"},a)):r.createElement(mj,sj({key:"label-implicit",content:e},a)):pj(e)?r.createElement(mj,sj({key:"label-implicit",content:e},a)):e&&"object"==typeof e?r.createElement(mj,sj({},e,{key:"label-implicit"},a)):null})(t,dj(),n)||null}var bj=["valueAccessor"],xj=["dataKey","clockWise","id","textBreakAll","zIndex"];function wj(){return wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wj.apply(null,arguments)}function Oj(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Ej=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(function(e){return tn(e)||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}(t))return t},Sj=o(void 0),Pj=Sj.Provider,jj=o(void 0);function Aj(e){var{valueAccessor:t=Ej}=e,n=Oj(e,bj),{dataKey:i,clockWise:a,id:o,textBreakAll:s,zIndex:c}=n,u=Oj(n,xj),d=l(Sj),f=l(jj),p=d||f;return p&&p.length?r.createElement(kS,{zIndex:null!=c?c:ev.label},r.createElement(pt,{className:"recharts-label-list"},p.map((e,a)=>{var l,c=tn(i)?t(e,a):Qs(e.payload,i),d=tn(o)?{}:{id:"".concat(o,"-").concat(a)};return r.createElement(mj,wj({key:"label-".concat(a)},lt(e),u,d,{fill:null!==(l=n.fill)&&void 0!==l?l:e.fill,parentViewBox:e.parentViewBox,value:c,textBreakAll:s,viewBox:e.viewBox,index:a,zIndex:0}))}))):null}function kj(e){var{label:t}=e;return t?!0===t?r.createElement(Aj,{key:"labelList-implicit"}):r.isValidElement(t)||pj(t)?r.createElement(Aj,{key:"labelList-implicit",content:t}):"object"==typeof t?r.createElement(Aj,wj({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function _j(){return _j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_j.apply(null,arguments)}jj.Provider,Aj.displayName="LabelList";var Nj=e=>{var{cx:t,cy:n,r:i,className:a}=e,o=S("recharts-dot",a);return qr(t)&&qr(n)&&qr(i)?r.createElement("circle",_j({},at(e),vn(e),{className:o,cx:t,cy:n,r:i})):null},Mj=ls({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Tj,removeRadiusAxis:Ij,addAngleAxis:Dj,removeAngleAxis:Cj}=Mj.actions,zj=Mj.reducer;var Lj,Bj={exports:{}},Rj={};function Vj(){if(Lj)return Rj;Lj=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case r:case i:case n:case s:case c:case f:return p;default:switch(p=p&&p.$$typeof){case o:case l:case d:case u:case a:return p;default:return h}}case t:return h}}}return Rj.ContextConsumer=a,Rj.ContextProvider=o,Rj.Element=e,Rj.ForwardRef=l,Rj.Fragment=r,Rj.Lazy=d,Rj.Memo=u,Rj.Portal=t,Rj.Profiler=i,Rj.StrictMode=n,Rj.Suspense=s,Rj.SuspenseList=c,Rj.isContextConsumer=function(e){return h(e)===a},Rj.isContextProvider=function(e){return h(e)===o},Rj.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Rj.isForwardRef=function(e){return h(e)===l},Rj.isFragment=function(e){return h(e)===r},Rj.isLazy=function(e){return h(e)===d},Rj.isMemo=function(e){return h(e)===u},Rj.isPortal=function(e){return h(e)===t},Rj.isProfiler=function(e){return h(e)===i},Rj.isStrictMode=function(e){return h(e)===n},Rj.isSuspense=function(e){return h(e)===s},Rj.isSuspenseList=function(e){return h(e)===c},Rj.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===i||e===n||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===a||e.$$typeof===l||e.$$typeof===p||void 0!==e.getModuleId)},Rj.typeOf=h,Rj}var Kj,$j,Fj={};
37
+ */Zd||(Zd=1,"production"===process.env.NODE_ENV?Yd.exports=function(){if(Vd)return Gd;Vd=1;var e=n,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,a=e.useRef,i=e.useEffect,o=e.useMemo,l=e.useDebugValue;return Gd.useSyncExternalStoreWithSelector=function(e,n,s,c,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=o(function(){function e(e){if(!i){if(i=!0,r=e,e=c(e),void 0!==u&&f.hasValue){var n=f.value;if(u(n,e))return a=n}return a=e}if(n=a,t(r,e))return n;var o=c(e);return void 0!==u&&u(n,o)?(r=e,n):(r=e,a=o)}var r,a,i=!1,o=void 0===s?null:s;return[function(){return e(n())},null===o?void 0:function(){return e(o())}]},[n,s,c,u]);var p=r(e,d[0],d[1]);return i(function(){f.hasValue=!0,f.value=p},[p]),l(p),p},Gd}():Yd.exports=(Xd||(Xd=1,"production"!==process.env.NODE_ENV&&function(){"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var e=n,t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=e.useSyncExternalStore,a=e.useRef,i=e.useEffect,o=e.useMemo,l=e.useDebugValue;Jd.useSyncExternalStoreWithSelector=function(e,n,s,c,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=o(function(){function e(e){if(!i){if(i=!0,r=e,e=c(e),void 0!==u&&f.hasValue){var n=f.value;if(u(n,e))return a=n}return a=e}if(n=a,t(r,e))return n;var o=c(e);return void 0!==u&&u(n,o)?(r=e,n):(r=e,a=o)}var r,a,i=!1,o=void 0===s?null:s;return[function(){return e(n())},null===o?void 0:function(){return e(o())}]},[n,s,c,u]);var p=r(e,d[0],d[1]);return i(function(){f.hasValue=!0,f.value=p},[p]),l(p),p},"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Jd)),Yd.exports;var Qd={notify(){},get:()=>[]};var ef=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),tf=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),rf=(()=>ef||tf?r.useLayoutEffect:r.useEffect)();function nf(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function af(e,t){if(nf(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!nf(e[r[n]],t[r[n]]))return!1;return!0}var of=Symbol.for("react-redux-context"),lf="undefined"!=typeof globalThis?globalThis:{};function sf(){if(!r.createContext)return{};const e=lf[of]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),"production"!==process.env.NODE_ENV&&(t.displayName="ReactRedux"),e.set(r.createContext,t)),t}var cf=sf();var uf=function(e){const{children:t,context:n,serverState:a,store:i}=e,o=r.useMemo(()=>{const t=function(e){let t,r=Qd,n=0,a=!1;function i(){s.onStateChange&&s.onStateChange()}function o(){n++,t||(t=e.subscribe(i),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){var t;t=()=>{let t=e;for(;t;)t.callback(),t=t.next},t()},get(){const t=[];let r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0;const a=t={callback:r,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){n&&null!==e&&(n=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}())}function l(){n--,t&&0===n&&(t(),t=void 0,r.clear(),r=Qd)}const s={addNestedSub:function(e){o();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,o())},tryUnsubscribe:function(){a&&(a=!1,l())},getListeners:()=>r};return s}(i),r={store:i,subscription:t,getServerState:a?()=>a:void 0};if("production"===process.env.NODE_ENV)return r;{const{identityFunctionCheck:t="once",stabilityCheck:n="once"}=e;return Object.assign(r,{stabilityCheck:n,identityFunctionCheck:t})}},[i,a]),l=r.useMemo(()=>i.getState(),[i]);rf(()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,l]);const s=n||cf;return r.createElement(s.Provider,{value:o},t)},df=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function ff(e,t){return null==e&&null==t||("number"==typeof e&&"number"==typeof t?e===t||e!=e&&t!=t:e===t)}function pf(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(df.has(n)){if(null==e[n]&&null==t[n])continue;if(!af(e[n],t[n]))return!1}else if(!ff(e[n],t[n]))return!1;return!0}function hf(){return hf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hf.apply(null,arguments)}function vf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function yf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vf(Object(r),!0).forEach(function(t){mf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function mf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gf(e){return Array.isArray(e)&&kn(e[0])&&kn(e[1])?e.join(" ~ "):e}var bf={separator:" : ",contentStyle:{margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},itemStyle:{display:"block",paddingTop:4,paddingBottom:4,color:"#000"},labelStyle:{},accessibilityLayer:!1};var xf=e=>{var{separator:t=bf.separator,contentStyle:n,itemStyle:a,labelStyle:i=bf.labelStyle,payload:o,formatter:l,itemSorter:s,wrapperClassName:c,labelClassName:u,label:d,labelFormatter:f,accessibilityLayer:p=bf.accessibilityLayer}=e,h=yf(yf({},bf.contentStyle),n),v=yf({margin:0},i),y=!Dn(d),m=y?d:"",g=S("recharts-default-tooltip",c),b=S("recharts-tooltip-label",u);y&&f&&null!=o&&(m=f(d,o));var x=p?{role:"status","aria-live":"assertive"}:{};return r.createElement("div",hf({className:g,style:h},x),r.createElement("p",{className:b,style:v},r.isValidElement(m)?m:"".concat(m)),(()=>{if(o&&o.length){var e=function(e,t){return null==t?e:zo(e,t)}(o,s),n=e.map((e,n)=>{if(!e||"none"===e.type)return null;var i=e.formatter||l||gf,{value:s,name:c}=e,u=s,d=c;if(i){var f=i(s,c,e,n,o);if(Array.isArray(f))[u,d]=f;else{if(null==f)return null;u=f}}var p=yf(yf({},bf.itemStyle),{},{color:e.color||bf.itemStyle.color},a);return r.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:p},kn(d)?r.createElement("span",{className:"recharts-tooltip-item-name"},d):null,kn(d)?r.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,r.createElement("span",{className:"recharts-tooltip-item-value"},u),r.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return r.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},n)}return null})())},wf="recharts-tooltip-wrapper",Of={visibility:"hidden"};function Ef(e){var{coordinate:t,translateX:r,translateY:n}=e;return S(wf,{["".concat(wf,"-right")]:jn(r)&&t&&jn(t.x)&&r>=t.x,["".concat(wf,"-left")]:jn(r)&&t&&jn(t.x)&&r<t.x,["".concat(wf,"-bottom")]:jn(n)&&t&&jn(t.y)&&n>=t.y,["".concat(wf,"-top")]:jn(n)&&t&&jn(t.y)&&n<t.y})}function Sf(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:a,position:i,reverseDirection:o,tooltipDimension:l,viewBox:s,viewBoxDimension:c}=e;if(i&&jn(i[n]))return i[n];var u=r[n]-l-(a>0?a:0),d=r[n]+a;if(t[n])return o[n]?u:d;var f=s[n];return null==f?0:o[n]?u<f?Math.max(d,f):Math.max(u,f):null==c?0:d+l>f+c?Math.max(u,f):Math.max(d,f)}var Pf=!("undefined"!=typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function jf(){var[e,t]=c(()=>!Pf&&(!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches));return p(()=>{if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),r=()=>{t(e.matches)};return e.addEventListener("change",r),()=>{e.removeEventListener("change",r)}}},[]),e}function kf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Af(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kf(Object(r),!0).forEach(function(t){Nf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Nf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _f(e){if(!e.prefersReducedMotion||"auto"!==e.isAnimationActive)return e.isAnimationActive&&e.active?"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing):void 0}function Tf(e){var t,n,a,i,o,l,s=jf(),[c,u]=r.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));r.useEffect(()=>{var t=t=>{var r,n,a,i;"Escape"===t.key&&u({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=e.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(a=null===(i=e.coordinate)||void 0===i?void 0:i.y)&&void 0!==a?a:0}})};return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[null===(t=e.coordinate)||void 0===t?void 0:t.x,null===(n=e.coordinate)||void 0===n?void 0:n.y]),!c.dismissed||(null!==(a=null===(i=e.coordinate)||void 0===i?void 0:i.x)&&void 0!==a?a:0)===c.dismissedAtCoordinate.x&&(null!==(o=null===(l=e.coordinate)||void 0===l?void 0:l.y)&&void 0!==o?o:0)===c.dismissedAtCoordinate.y||u(Af(Af({},c),{},{dismissed:!1}));var{cssClasses:d,cssProperties:f}=function(e){var t,r,n,{allowEscapeViewBox:a,coordinate:i,offsetTop:o,offsetLeft:l,position:s,reverseDirection:c,tooltipBox:u,useTranslate3d:d,viewBox:f}=e;return t=u.height>0&&u.width>0&&i?function(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}({translateX:r=Sf({allowEscapeViewBox:a,coordinate:i,key:"x",offset:l,position:s,reverseDirection:c,tooltipDimension:u.width,viewBox:f,viewBoxDimension:f.width}),translateY:n=Sf({allowEscapeViewBox:a,coordinate:i,key:"y",offset:o,position:s,reverseDirection:c,tooltipDimension:u.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:d}):Of,{cssProperties:t,cssClasses:Ef({translateX:r,translateY:n,coordinate:i})}}({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:"number"==typeof e.offset?e.offset:e.offset.x,offsetTop:"number"==typeof e.offset?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),p=e.hasPortalFromProps?{}:Af(Af({transition:_f({prefersReducedMotion:s,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},f),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),h=Af(Af({},p),{},{visibility:!c.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return r.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:d,style:h,ref:e.innerRef},e.children)}var If=r.memo(Tf),Mf=()=>{var e;return null===(e=Ji(e=>e.rootProps.accessibilityLayer))||void 0===e||e};function Df(){return Df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Df.apply(null,arguments)}function Cf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function zf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cf(Object(r),!0).forEach(function(t){Lf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Lf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bf={curveBasisClosed:function(e){return new Dr(e)},curveBasisOpen:function(e){return new Cr(e)},curveBasis:function(e){return new Mr(e)},curveBumpX:function(e){return new pr(e,!0)},curveBumpY:function(e){return new pr(e,!1)},curveLinearClosed:function(e){return new zr(e)},curveLinear:sr,curveMonotoneX:function(e){return new Kr(e)},curveMonotoneY:function(e){return new $r(e)},curveNatural:function(e){return new Wr(e)},curveStep:function(e){return new Hr(e,.5)},curveStepAfter:function(e){return new Hr(e,1)},curveStepBefore:function(e){return new Hr(e,0)}},Rf=e=>jc(e.x)&&jc(e.y),Vf=e=>null!=e.base&&Rf(e.base)&&Rf(e),Kf=e=>e.x,$f=e=>e.y,Ff={connectNulls:!1,type:"linear"},Wf=e=>{var{type:t=Ff.type,points:r=[],baseLine:n,layout:a,connectNulls:i=Ff.connectNulls}=e,o=((e,t)=>{if("function"==typeof e)return e;var r="curve".concat(Cn(e));if(("curveMonotone"===r||"curveBump"===r)&&t){var n=Bf["".concat(r).concat("vertical"===t?"Y":"X")];if(n)return n}return Bf[r]||sr})(t,a),l=i?r.filter(Rf):r;if(Array.isArray(n)){var s=r.map((e,t)=>zf(zf({},e),{},{base:n[t]}));return("vertical"===a?fr().y($f).x1(Kf).x0(e=>e.base.x):fr().x(Kf).y1($f).y0(e=>e.base.y)).defined(Vf).curve(o)(i?s.filter(Vf):s)}return("vertical"===a&&jn(n)?fr().y($f).x1(Kf).x0(n):jn(n)?fr().x(Kf).y1($f).y0(n):dr().x(Kf).y($f)).defined(Rf).curve(o)(l)},Uf=e=>{var{className:t,points:n,path:a,pathRef:i}=e,o=Hu();if(!(n&&n.length||a))return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},s=n&&n.length?Wf(l):a;return r.createElement("path",Df({},Lt(e),qn(e),{className:S("recharts-curve",t),d:null===s?void 0:s,ref:i}))},Hf=["x","y","top","left","width","height","className"];function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(null,arguments)}function Yf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Gf(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xf=(e,t,r,n,a,i)=>"M".concat(e,",").concat(a,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),Zf=e=>{var{x:t=0,y:n=0,top:a=0,left:i=0,width:o=0,height:l=0,className:s}=e,c=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(r),!0).forEach(function(t){Gf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({x:t,y:n,top:a,left:i,width:o,height:l},function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,Hf));return jn(t)&&jn(n)&&jn(o)&&jn(l)&&jn(a)&&jn(i)?r.createElement("path",qf({},Rt(c),{className:S("recharts-cross",s),d:Xf(t,n,o,l,a,i)})):null};function Jf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jf(Object(r),!0).forEach(function(t){ep(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jf(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ep(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tp=(e,t,r)=>e.map(e=>{return"".concat((n=e,n.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())))," ").concat(t,"ms ").concat(r);var n}).join(","),rp=(e,t)=>Object.keys(t).reduce((r,n)=>Qf(Qf({},r),{},{[n]:e(n,t[n])}),{});function np(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ap(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?np(Object(r),!0).forEach(function(t){ip(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):np(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ip(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var op=(e,t,r)=>e+(t-e)*r,lp=e=>{var{from:t,to:r}=e;return t!==r},sp=(e,t,r)=>{var n=rp((t,r)=>{if(lp(r)){var[n,a]=e(r.from,r.to,r.velocity);return ap(ap({},r),{},{from:n,velocity:a})}return r},t);return r<1?rp((e,t)=>lp(t)&&null!=n[e]?ap(ap({},t),{},{velocity:op(t.velocity,n[e].velocity,r),from:op(t.from,n[e].from,r)}):t,t):sp(e,n,r-1)};function cp(e,t,r,n,a,i){var o,l=n.reduce((r,n)=>ap(ap({},r),{},{[n]:{from:e[n],velocity:0,to:t[n]}}),{}),s=null,c=n=>{o||(o=n);var u=(n-o)/r.dt;l=sp(r,l,u),a(ap(ap(ap({},e),t),rp((e,t)=>t.from,l))),o=n,Object.values(l).filter(lp).length&&(s=i.setTimeout(c))};return()=>(s=i.setTimeout(c),()=>{var e;null===(e=s)||void 0===e||e()})}var up=(e,t,r,n,a,i)=>{var o,l,s=(o=e,l=t,[Object.keys(o),Object.keys(l)].reduce((e,t)=>e.filter(e=>t.includes(e))));return null==r?()=>(a(ap(ap({},e),t)),()=>{}):!0===r.isStepper?cp(e,t,r,s,a,i):function(e,t,r,n,a,i,o){var l,s=null,c=a.reduce((r,n)=>{var a=e[n],i=t[n];return null==a||null==i?r:ap(ap({},r),{},{[n]:[a,i]})},{}),u=a=>{l||(l=a);var d=(a-l)/n,f=rp((e,t)=>op(...t,r(d)),c);if(i(ap(ap(ap({},e),t),f)),d<1)s=o.setTimeout(u);else{var p=rp((e,t)=>op(...t,r(1)),c);i(ap(ap(ap({},e),t),p))}};return()=>(s=o.setTimeout(u),()=>{var e;null===(e=s)||void 0===e||e()})}(e,t,r,n,s,a,i)},dp=1e-4,fp=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],pp=(e,t)=>e.map((e,r)=>e*t**r).reduce((e,t)=>e+t),hp=(e,t)=>r=>{var n=fp(e,t);return pp(n,r)},vp=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length)switch(t[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:var n=(e=>{var t,r=e.split("(");if(2!==r.length||"cubic-bezier"!==r[0])return null;var n=null===(t=r[1])||void 0===t||null===(t=t.split(")")[0])||void 0===t?void 0:t.split(",");if(null==n||4!==n.length)return null;var a=n.map(e=>parseFloat(e));return[a[0],a[1],a[2],a[3]]})(t[0]);if(n)return n}return 4===t.length?t:[0,0,1,1]},yp=(e,t,r,n)=>{var a,i,o=hp(e,r),l=hp(t,n),s=(a=e,i=r,e=>{var t=[...fp(a,i).map((e,t)=>e*t).slice(1),0];return pp(t,e)}),c=e=>e>1?1:e<0?0:e,u=e=>{for(var t=e>1?1:e,r=t,n=0;n<8;++n){var a=o(r)-t,i=s(r);if(Math.abs(a-t)<dp||i<dp)return l(r);r=c(r-a/i)}return l(r)};return u.isStepper=!1,u},mp=function(){return yp(...vp(...arguments))},gp=e=>{if("string"==typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return mp(e);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stiff:t=100,damping:r=8,dt:n=17}=e,a=(e,a,i)=>{var o=i+(-(e-a)*t-i*r)*n/1e3,l=i*n/1e3+e;return Math.abs(l-a)<dp&&Math.abs(o)<dp?[a,0]:[l,o]};return a.isStepper=!0,a.dt=n,a}();default:if("cubic-bezier"===e.split("(")[0])return mp(e)}return"function"==typeof e?e:null};class bp{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=performance.now(),n=null,a=i=>{i-r>=t?e(i):"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(a))};return n=requestAnimationFrame(a),()=>{null!=n&&cancelAnimationFrame(n)}}}function xp(){return e=new bp,t=()=>null,r=!1,n=null,a=i=>{if(!r){if(Array.isArray(i)){if(!i.length)return;var o=i,[l,...s]=o;return"number"==typeof l?void(n=e.setTimeout(a.bind(null,s),l)):(a(l),void(n=e.setTimeout(a.bind(null,s))))}"string"==typeof i&&t(i),"object"==typeof i&&t(i),"function"==typeof i&&i()}},{stop:()=>{r=!0},start:e=>{r=!1,n&&(n(),n=null),a(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e};var e,t,r,n,a}var wp=o(xp);var Op={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Ep={t:0},Sp={t:1};function Pp(e){var t,r,n,a=Zn(e,Op),{isActive:i,canBegin:o,duration:u,easing:f,begin:h,onAnimationEnd:v,onAnimationStart:y,children:m}=a,g=jf(),b="auto"===i?!Pf&&!g:i,x=(t=a.animationId,r=a.animationManager,n=l(wp),s(()=>null!=r?r:n(t),[t,r,n])),[w,O]=c(b?Ep:Sp),E=d(null);return p(()=>{b||O(Sp)},[b]),p(()=>{if(!b||!o)return Ln;var e=up(Ep,Sp,gp(f),u,O,x.getTimeoutController());return x.start([y,h,()=>{E.current=e()},u,v]),()=>{x.stop(),E.current&&E.current(),v()}},[b,o,u,f,h,y,v,x]),m(w.t)}function jp(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",r=d(Nn(t)),n=d(e);return n.current!==e&&(r.current=Nn(t),n.current=e),r.current}var kp,Ap,Np,_p,Tp,Ip,Mp,Dp,Cp,zp,Lp=["radius"],Bp=["radius"];function Rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Vp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rp(Object(r),!0).forEach(function(t){Kp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Kp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$p.apply(null,arguments)}function Fp(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Wp(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Up=(e,t,r,n,a)=>{var i,o=wn(r),l=wn(n),s=Math.min(Math.abs(o)/2,Math.abs(l)/2),c=l>=0?1:-1,u=o>=0?1:-1,d=l>=0&&o>=0||l<0&&o<0?1:0;if(s>0&&Array.isArray(a)){for(var f=[0,0,0,0],p=0;p<4;p++){var h,v=null!==(h=a[p])&&void 0!==h?h:0;f[p]=v>s?s:v}i=On(kp||(kp=Wp(["M",",",""])),e,t+c*f[0]),f[0]>0&&(i+=On(Ap||(Ap=Wp(["A ",",",",0,0,",",",",",""])),f[0],f[0],d,e+u*f[0],t)),i+=On(Np||(Np=Wp(["L ",",",""])),e+r-u*f[1],t),f[1]>0&&(i+=On(_p||(_p=Wp(["A ",",",",0,0,",",\n ",",",""])),f[1],f[1],d,e+r,t+c*f[1])),i+=On(Tp||(Tp=Wp(["L ",",",""])),e+r,t+n-c*f[2]),f[2]>0&&(i+=On(Ip||(Ip=Wp(["A ",",",",0,0,",",\n ",",",""])),f[2],f[2],d,e+r-u*f[2],t+n)),i+=On(Mp||(Mp=Wp(["L ",",",""])),e+u*f[3],t+n),f[3]>0&&(i+=On(Dp||(Dp=Wp(["A ",",",",0,0,",",\n ",",",""])),f[3],f[3],d,e,t+n-c*f[3])),i+="Z"}else if(s>0&&a===+a&&a>0){var y=Math.min(s,a);i=On(Cp||(Cp=Wp(["M ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",","," Z"])),e,t+c*y,y,y,d,e+u*y,t,e+r-u*y,t,y,y,d,e+r,t+c*y,e+r,t+n-c*y,y,y,d,e+r-u*y,t+n,e+u*y,t+n,y,y,d,e,t+n-c*y)}else i=On(zp||(zp=Wp(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return i},Hp={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qp=e=>{var t=Zn(e,Hp),n=d(null),[a,i]=c(-1);p(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch(e){}},[]);var{x:o,y:l,width:u,height:f,radius:h,className:v}=t,{animationEasing:y,animationDuration:m,animationBegin:g,isAnimationActive:b,isUpdateAnimationActive:x}=t,w=d(u),O=d(f),E=d(o),P=d(l),j=jp(s(()=>({x:o,y:l,width:u,height:f,radius:h}),[o,l,u,f,h]),"rectangle-");if(o!==+o||l!==+l||u!==+u||f!==+f||0===u||0===f)return null;var k=S("recharts-rectangle",v);if(!x){var A=Rt(t),{radius:N}=A,_=Fp(A,Lp);return r.createElement("path",$p({},_,{x:wn(o),y:wn(l),width:wn(u),height:wn(f),radius:"number"==typeof h?h:void 0,className:k,d:Up(o,l,u,f,h)}))}var T=w.current,I=O.current,M=E.current,D=P.current,C="0px ".concat(-1===a?1:a,"px"),z="".concat(a,"px ").concat(a,"px"),L=tp(["strokeDasharray"],m,"string"==typeof y?y:Hp.animationEasing);return r.createElement(Pp,{animationId:j,key:j,canBegin:a>0,duration:m,easing:y,isActive:x,begin:g},e=>{var a,i=In(T,u,e),s=In(I,f,e),c=In(M,o,e),d=In(D,l,e);n.current&&(w.current=i,O.current=s,E.current=c,P.current=d),a=b?e>0?{transition:L,strokeDasharray:z}:{strokeDasharray:C}:{strokeDasharray:z};var p=Rt(t),{radius:v}=p,y=Fp(p,Bp);return r.createElement("path",$p({},y,{radius:"number"==typeof h?h:void 0,className:k,d:Up(c,d,i,s,h),ref:n,style:Vp(Vp({},a),t.style)}))})};function Yp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Gp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yp(Object(r),!0).forEach(function(t){Xp(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yp(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Xp(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Zp,Jp,Qp,eh,th,rh,nh,ah=Math.PI/180,ih=e=>180*e/Math.PI,oh=(e,t,r,n)=>({x:e+Math.cos(-ah*n)*r,y:t+Math.sin(-ah*n)*r}),lh=(e,t)=>{var{x:r,y:n}=e,{cx:a,cy:i}=t,o=((e,t)=>{var{x:r,y:n}=e,{x:a,y:i}=t;return Math.sqrt((r-a)**2+(n-i)**2)})({x:r,y:n},{x:a,y:i});if(o<=0)return{radius:o,angle:0};var l=(r-a)/o,s=Math.acos(l);return n>i&&(s=2*Math.PI-s),{radius:o,angle:ih(s),angleInRadian:s}},sh=(e,t)=>{var{startAngle:r,endAngle:n}=t,a=Math.floor(r/360),i=Math.floor(n/360);return e+360*Math.min(a,i)},ch=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:a,angle:i}=lh({x:r,y:n},t),{innerRadius:o,outerRadius:l}=t;if(a<o||a>l)return null;if(0===a)return null;var s,{startAngle:c,endAngle:u}=(e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),a=Math.floor(r/360),i=Math.min(n,a);return{startAngle:t-360*i,endAngle:r-360*i}})(t),d=i;if(c<=u){for(;d>u;)d-=360;for(;d<c;)d+=360;s=d>=c&&d<=u}else{for(;d>c;)d-=360;for(;d<u;)d+=360;s=d>=u&&d<=c}return s?Gp(Gp({},t),{},{radius:a,angle:sh(d,t)}):null};function uh(e){var{cx:t,cy:r,radius:n,startAngle:a,endAngle:i}=e;return{points:[oh(t,r,n,a),oh(t,r,n,i)],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function dh(){return dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dh.apply(null,arguments)}function fh(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ph=e=>{var{cx:t,cy:r,radius:n,angle:a,sign:i,isExternal:o,cornerRadius:l,cornerIsExternal:s}=e,c=l*(o?1:-1)+n,u=Math.asin(l/c)/ah,d=s?a:a+i*u,f=s?a-i*u:a;return{center:oh(t,r,c,d),circleTangency:oh(t,r,n,d),lineTangency:oh(t,r,c*Math.cos(u*ah),f),theta:u}},hh=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:a,startAngle:i,endAngle:o}=e,l=((e,t)=>En(t-e)*Math.min(Math.abs(t-e),359.999))(i,o),s=i+l,c=oh(t,r,a,i),u=oh(t,r,a,s),d=On(Zp||(Zp=fh(["M ",",","\n A ",",",",0,\n ",",",",\n ",",","\n "])),c.x,c.y,a,a,+(Math.abs(l)>180),+(i>s),u.x,u.y);if(n>0){var f=oh(t,r,n,i),p=oh(t,r,n,s);d+=On(Jp||(Jp=fh(["L ",",","\n A ",",",",0,\n ",",",",\n ",","," Z"])),p.x,p.y,n,n,+(Math.abs(l)>180),+(i<=s),f.x,f.y)}else d+=On(Qp||(Qp=fh(["L ",","," Z"])),t,r);return d},vh={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},yh=e=>{var t=Zn(e,vh),{cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:l,forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d,className:f}=t;if(o<i||u===d)return null;var p,h=S("recharts-sector",f),v=o-i,y=_n(l,v,0,!0);return p=y>0&&Math.abs(u-d)<360?(e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:a,cornerRadius:i,forceCornerRadius:o,cornerIsExternal:l,startAngle:s,endAngle:c}=e,u=En(c-s),{circleTangency:d,lineTangency:f,theta:p}=ph({cx:t,cy:r,radius:a,angle:s,sign:u,cornerRadius:i,cornerIsExternal:l}),{circleTangency:h,lineTangency:v,theta:y}=ph({cx:t,cy:r,radius:a,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:l}),m=l?Math.abs(s-c):Math.abs(s-c)-p-y;if(m<0)return o?On(eh||(eh=fh(["M ",",","\n a",",",",0,0,1,",",0\n a",",",",0,0,1,",",0\n "])),f.x,f.y,i,i,2*i,i,i,2*-i):hh({cx:t,cy:r,innerRadius:n,outerRadius:a,startAngle:s,endAngle:c});var g=On(th||(th=fh(["M ",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","\n "])),f.x,f.y,i,i,+(u<0),d.x,d.y,a,a,+(m>180),+(u<0),h.x,h.y,i,i,+(u<0),v.x,v.y);if(n>0){var{circleTangency:b,lineTangency:x,theta:w}=ph({cx:t,cy:r,radius:n,angle:s,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),{circleTangency:O,lineTangency:E,theta:S}=ph({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),P=l?Math.abs(s-c):Math.abs(s-c)-w-S;if(P<0&&0===i)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=On(rh||(rh=fh(["L",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","Z"])),E.x,E.y,i,i,+(u<0),O.x,O.y,n,n,+(P>180),+(u>0),b.x,b.y,i,i,+(u<0),x.x,x.y)}else g+=On(nh||(nh=fh(["L",",","Z"])),t,r);return g})({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(y,v/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d}):hh({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:u,endAngle:d}),r.createElement("path",dh({},Rt(t),{className:h,d:p}))};function mh(e,t,r){if("horizontal"===e)return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if("vertical"===e)return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(Hn(t)){if("centric"===e){var{cx:n,cy:a,innerRadius:i,outerRadius:o,angle:l}=t,s=oh(n,a,i,l),c=oh(n,a,o,l);return[{x:s.x,y:s.y},{x:c.x,y:c.y}]}return uh(t)}}var gh,bh,xh,wh,Oh,Eh={},Sh={},Ph={};function jh(){return gh||(gh=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Oo();e.toNumber=function(e){return t.isSymbol(e)?NaN:Number(e)}}(Ph)),Ph}function kh(){return bh||(bh=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jh();e.toFinite=function(e){if(!e)return 0===e?e:0;if((e=t.toNumber(e))===1/0||e===-1/0){return(e<0?-1:1)*Number.MAX_VALUE}return e==e?e:0}}(Sh)),Sh}function Ah(){return xh||(xh=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Mo(),r=kh();e.range=function(e,n,a){a&&"number"!=typeof a&&t.isIterateeCall(e,n,a)&&(n=a=void 0),e=r.toFinite(e),void 0===n?(n=e,e=0):n=r.toFinite(n),a=void 0===a?e<n?1:-1:r.toFinite(a);const i=Math.max(Math.ceil((n-e)/(a||1)),0),o=new Array(i);for(let t=0;t<i;t++)o[t]=e,e+=a;return o}}(Eh)),Eh}function Nh(){return Oh?wh:(Oh=1,wh=Ah().range)}var _h=Zr(Nh()),Th=e=>e.chartData,Ih=uo([Th],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Mh=(e,t,r,n)=>n?Ih(e):Th(e),Dh=(e,t,r)=>r?Ih(e):Th(e),Ch=uo([Mh],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});uo([Ih],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});var zh=uo([Th],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});function Lh(e){if(Array.isArray(e)&&2===e.length){var[t,r]=e;if(jc(t)&&jc(r))return!0}return!1}function Bh(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Rh(e,t){if(t&&"function"!=typeof e&&Array.isArray(e)&&2===e.length){var r,n,[a,i]=e;if(jc(a))r=a;else if("function"==typeof a)return;if(jc(i))n=i;else if("function"==typeof i)return;var o=[r,n];if(Lh(o))return o}}var Vh,Kh=1e9,$h=!0,Fh="[DecimalError] ",Wh=Fh+"Invalid argument: ",Uh=Fh+"Exponent out of range: ",Hh=Math.floor,qh=Math.pow,Yh=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Gh=1e7,Xh=9007199254740991,Zh=Hh(1286742750677284.5),Jh={};function Qh(e,t){var r,n,a,i,o,l,s,c,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),$h?cv(t,d):t;if(s=e.d,c=t.d,o=e.e,a=t.e,s=s.slice(),i=o-a){for(i<0?(n=s,i=-i,l=c.length):(n=c,a=o,l=s.length),i>(l=(o=Math.ceil(d/7))>l?o+1:l+1)&&(i=l,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((l=s.length)-(i=c.length)<0&&(i=l,n=c,c=s,s=n),r=0;i;)r=(s[--i]=s[i]+c[i]+r)/Gh|0,s[i]%=Gh;for(r&&(s.unshift(r),++a),l=s.length;0==s[--l];)s.pop();return t.d=s,t.e=a,$h?cv(t,d):t}function ev(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Wh+e)}function tv(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)(r=7-(n=e[t]+"").length)&&(i+=ov(r)),i+=n;(r=7-(n=(o=e[t])+"").length)&&(i+=ov(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return i+o}Jh.absoluteValue=Jh.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Jh.comparedTo=Jh.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,r=(n=i.d.length)<(a=e.d.length)?n:a;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1},Jh.decimalPlaces=Jh.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},Jh.dividedBy=Jh.div=function(e){return rv(this,new this.constructor(e))},Jh.dividedToIntegerBy=Jh.idiv=function(e){var t=this.constructor;return cv(rv(this,new t(e),0,1),t.precision)},Jh.equals=Jh.eq=function(e){return!this.cmp(e)},Jh.exponent=function(){return av(this)},Jh.greaterThan=Jh.gt=function(e){return this.cmp(e)>0},Jh.greaterThanOrEqualTo=Jh.gte=function(e){return this.cmp(e)>=0},Jh.isInteger=Jh.isint=function(){return this.e>this.d.length-2},Jh.isNegative=Jh.isneg=function(){return this.s<0},Jh.isPositive=Jh.ispos=function(){return this.s>0},Jh.isZero=function(){return 0===this.s},Jh.lessThan=Jh.lt=function(e){return this.cmp(e)<0},Jh.lessThanOrEqualTo=Jh.lte=function(e){return this.cmp(e)<1},Jh.logarithm=Jh.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(Vh))throw Error(Fh+"NaN");if(r.s<1)throw Error(Fh+(r.s?"NaN":"-Infinity"));return r.eq(Vh)?new n(0):($h=!1,t=rv(lv(r,i),lv(e,i),i),$h=!0,cv(t,a))},Jh.minus=Jh.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uv(t,e):Qh(t,(e.s=-e.s,e))},Jh.modulo=Jh.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(!(e=new n(e)).s)throw Error(Fh+"NaN");return r.s?($h=!1,t=rv(r,e,0,1).times(e),$h=!0,r.minus(t)):cv(new n(r),a)},Jh.naturalExponential=Jh.exp=function(){return nv(this)},Jh.naturalLogarithm=Jh.ln=function(){return lv(this)},Jh.negated=Jh.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Jh.plus=Jh.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qh(t,e):uv(t,(e.s=-e.s,e))},Jh.precision=Jh.sd=function(e){var t,r,n,a=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Wh+e);if(t=av(a)+1,r=7*(n=a.d.length-1)+1,n=a.d[n]){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},Jh.squareRoot=Jh.sqrt=function(){var e,t,r,n,a,i,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(Fh+"NaN")}for(e=av(l),$h=!1,0==(a=Math.sqrt(+l))||a==1/0?(((t=tv(l.d)).length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Hh((e+1)/2)-(e<0||e%2),n=new s(t=a==1/0?"5e"+e:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new s(a.toString()),a=o=(r=s.precision)+3;;)if(n=(i=n).plus(rv(l,i,o+2)).times(.5),tv(i.d).slice(0,o)===(t=tv(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&"4999"==t){if(cv(i,r+1,0),i.times(i).eq(l)){n=i;break}}else if("9999"!=t)break;o+=4}return $h=!0,cv(n,r)},Jh.times=Jh.mul=function(e){var t,r,n,a,i,o,l,s,c,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,r=u.e+e.e,(s=f.length)<(c=p.length)&&(i=f,f=p,p=i,o=s,s=c,c=o),i=[],n=o=s+c;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,a=s+n;a>n;)l=i[a]+p[n]*f[a-n-1]+t,i[a--]=l%Gh|0,t=l/Gh|0;i[a]=(i[a]+t)%Gh|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,$h?cv(e,d.precision):e},Jh.toDecimalPlaces=Jh.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(ev(e,0,Kh),void 0===t?t=n.rounding:ev(t,0,8),cv(r,e+av(r)+1,t))},Jh.toExponential=function(e,t){var r,n=this,a=n.constructor;return void 0===e?r=dv(n,!0):(ev(e,0,Kh),void 0===t?t=a.rounding:ev(t,0,8),r=dv(n=cv(new a(n),e+1,t),!0,e+1)),r},Jh.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return void 0===e?dv(a):(ev(e,0,Kh),void 0===t?t=i.rounding:ev(t,0,8),r=dv((n=cv(new i(a),e+av(a)+1,t)).abs(),!1,e+av(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)},Jh.toInteger=Jh.toint=function(){var e=this,t=e.constructor;return cv(new t(e),av(e)+1,t.rounding)},Jh.toNumber=function(){return+this},Jh.toPower=Jh.pow=function(e){var t,r,n,a,i,o,l=this,s=l.constructor,c=+(e=new s(e));if(!e.s)return new s(Vh);if(!(l=new s(l)).s){if(e.s<1)throw Error(Fh+"Infinity");return l}if(l.eq(Vh))return l;if(n=s.precision,e.eq(Vh))return cv(l,n);if(o=(t=e.e)>=(r=e.d.length-1),i=l.s,o){if((r=c<0?-c:c)<=Xh){for(a=new s(Vh),t=Math.ceil(n/7+4),$h=!1;r%2&&fv((a=a.times(l)).d,t),0!==(r=Hh(r/2));)fv((l=l.times(l)).d,t);return $h=!0,e.s<0?new s(Vh).div(a):cv(a,n)}}else if(i<0)throw Error(Fh+"NaN");return i=i<0&&1&e.d[Math.max(t,r)]?-1:1,l.s=1,$h=!1,a=e.times(lv(l,n+12)),$h=!0,(a=nv(a)).s=i,a},Jh.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return void 0===e?n=dv(a,(r=av(a))<=i.toExpNeg||r>=i.toExpPos):(ev(e,1,Kh),void 0===t?t=i.rounding:ev(t,0,8),n=dv(a=cv(new i(a),e,t),e<=(r=av(a))||r<=i.toExpNeg,e)),n},Jh.toSignificantDigits=Jh.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(ev(e,1,Kh),void 0===t?t=r.rounding:ev(t,0,8)),cv(new r(this),e,t)},Jh.toString=Jh.valueOf=Jh.val=Jh.toJSON=Jh[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=av(e),r=e.constructor;return dv(e,t<=r.toExpNeg||t>=r.toExpPos)};var rv=function(){function e(e,t){var r,n=0,a=e.length;for(e=e.slice();a--;)r=e[a]*t+n,e[a]=r%Gh|0,n=r/Gh|0;return n&&e.unshift(n),e}function t(e,t,r,n){var a,i;if(r!=n)i=r>n?1:-1;else for(a=i=0;a<r;a++)if(e[a]!=t[a]){i=e[a]>t[a]?1:-1;break}return i}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*Gh+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,a,i,o){var l,s,c,u,d,f,p,h,v,y,m,g,b,x,w,O,E,S,P=n.constructor,j=n.s==a.s?1:-1,k=n.d,A=a.d;if(!n.s)return new P(n);if(!a.s)throw Error(Fh+"Division by zero");for(s=n.e-a.e,E=A.length,w=k.length,h=(p=new P(j)).d=[],c=0;A[c]==(k[c]||0);)++c;if(A[c]>(k[c]||0)&&--s,(g=null==i?i=P.precision:o?i+(av(n)-av(a))+1:i)<0)return new P(0);if(g=g/7+2|0,c=0,1==E)for(u=0,A=A[0],g++;(c<w||u)&&g--;c++)b=u*Gh+(k[c]||0),h[c]=b/A|0,u=b%A|0;else{for((u=Gh/(A[0]+1)|0)>1&&(A=e(A,u),k=e(k,u),E=A.length,w=k.length),x=E,y=(v=k.slice(0,E)).length;y<E;)v[y++]=0;(S=A.slice()).unshift(0),O=A[0],A[1]>=Gh/2&&++O;do{u=0,(l=t(A,v,E,y))<0?(m=v[0],E!=y&&(m=m*Gh+(v[1]||0)),(u=m/O|0)>1?(u>=Gh&&(u=Gh-1),1==(l=t(d=e(A,u),v,f=d.length,y=v.length))&&(u--,r(d,E<f?S:A,f))):(0==u&&(l=u=1),d=A.slice()),(f=d.length)<y&&d.unshift(0),r(v,d,y),-1==l&&(l=t(A,v,E,y=v.length))<1&&(u++,r(v,E<y?S:A,y)),y=v.length):0===l&&(u++,v=[0]),h[c++]=u,l&&v[0]?v[y++]=k[x]||0:(v=[k[x]],y=1)}while((x++<w||void 0!==v[0])&&g--)}return h[0]||h.shift(),p.e=s,cv(p,o?i+av(p)+1:i)}}();function nv(e,t){var r,n,a,i,o,l=0,s=0,c=e.constructor,u=c.precision;if(av(e)>16)throw Error(Uh+av(e));if(!e.s)return new c(Vh);for($h=!1,o=u,i=new c(.03125);e.abs().gte(.1);)e=e.times(i),s+=5;for(o+=Math.log(qh(2,s))/Math.LN10*2+5|0,r=n=a=new c(Vh),c.precision=o;;){if(n=cv(n.times(e),o),r=r.times(++l),tv((i=a.plus(rv(n,r,o))).d).slice(0,o)===tv(a.d).slice(0,o)){for(;s--;)a=cv(a.times(a),o);return c.precision=u,null==t?($h=!0,cv(a,u)):a}a=i}}function av(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function iv(e,t,r){if(t>e.LN10.sd())throw $h=!0,r&&(e.precision=r),Error(Fh+"LN10 precision limit exceeded");return cv(new e(e.LN10),t)}function ov(e){for(var t="";e--;)t+="0";return t}function lv(e,t){var r,n,a,i,o,l,s,c,u,d=1,f=e,p=f.d,h=f.constructor,v=h.precision;if(f.s<1)throw Error(Fh+(f.s?"NaN":"-Infinity"));if(f.eq(Vh))return new h(0);if(null==t?($h=!1,c=v):c=t,f.eq(10))return null==t&&($h=!0),iv(h,c);if(c+=10,h.precision=c,n=(r=tv(p)).charAt(0),i=av(f),!(Math.abs(i)<15e14))return s=iv(h,c+2,v).times(i+""),f=lv(new h(n+"."+r.slice(1)),c-10).plus(s),h.precision=v,null==t?($h=!0,cv(f,v)):f;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=tv((f=f.times(e)).d)).charAt(0),d++;for(i=av(f),n>1?(f=new h("0."+r),i++):f=new h(n+"."+r.slice(1)),l=o=f=rv(f.minus(Vh),f.plus(Vh),c),u=cv(f.times(f),c),a=3;;){if(o=cv(o.times(u),c),tv((s=l.plus(rv(o,new h(a),c))).d).slice(0,c)===tv(l.d).slice(0,c))return l=l.times(2),0!==i&&(l=l.plus(iv(h,c+2,v).times(i+""))),l=rv(l,new h(d),c),h.precision=v,null==t?($h=!0,cv(l,v)):l;l=s,a+=2}}function sv(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(a=t.length;48===t.charCodeAt(a-1);)--a;if(t=t.slice(n,a)){if(a-=n,r=r-n-1,e.e=Hh(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<a){for(n&&e.d.push(+t.slice(0,n)),a-=7;n<a;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=a;for(;n--;)t+="0";if(e.d.push(+t),$h&&(e.e>Zh||e.e<-Zh))throw Error(Uh+r)}else e.s=0,e.e=0,e.d=[0];return e}function cv(e,t,r){var n,a,i,o,l,s,c,u,d=e.d;for(o=1,i=d[0];i>=10;i/=10)o++;if((n=t-o)<0)n+=7,a=t,c=d[u=0];else{if((u=Math.ceil((n+1)/7))>=(i=d.length))return e;for(c=i=d[u],o=1;i>=10;i/=10)o++;a=(n%=7)-7+o}if(void 0!==r&&(l=c/(i=qh(10,o-a-1))%10|0,s=t<0||void 0!==d[u+1]||c%i,s=r<4?(l||s)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||s||6==r&&(n>0?a>0?c/qh(10,o-a):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return s?(i=av(e),d.length=1,t=t-i-1,d[0]=qh(10,(7-t%7)%7),e.e=Hh(-t/7)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(0==n?(d.length=u,i=1,u--):(d.length=u+1,i=qh(10,7-n),d[u]=a>0?(c/qh(10,o-a)%qh(10,a)|0)*i:0),s)for(;;){if(0==u){(d[0]+=i)==Gh&&(d[0]=1,++e.e);break}if(d[u]+=i,d[u]!=Gh)break;d[u--]=0,i=1}for(n=d.length;0===d[--n];)d.pop();if($h&&(e.e>Zh||e.e<-Zh))throw Error(Uh+av(e));return e}function uv(e,t){var r,n,a,i,o,l,s,c,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),$h?cv(t,p):t;if(s=e.d,d=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n){for((u=o<0)?(r=s,o=-o,l=d.length):(r=d,n=c,l=s.length),o>(a=Math.max(Math.ceil(p/7),l)+2)&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for((u=(a=s.length)<(l=d.length))&&(l=a),a=0;a<l;a++)if(s[a]!=d[a]){u=s[a]<d[a];break}o=0}for(u&&(r=s,s=d,d=r,t.s=-t.s),l=s.length,a=d.length-l;a>0;--a)s[l++]=0;for(a=d.length;a>o;){if(s[--a]<d[a]){for(i=a;i&&0===s[--i];)s[i]=Gh-1;--s[i],s[a]+=Gh}s[a]-=d[a]}for(;0===s[--l];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(t.d=s,t.e=n,$h?cv(t,p):t):new f(0)}function dv(e,t,r){var n,a=av(e),i=tv(e.d),o=i.length;return t?(r&&(n=r-o)>0?i=i.charAt(0)+"."+i.slice(1)+ov(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+ov(-a-1)+i,r&&(n=r-o)>0&&(i+=ov(n))):a>=o?(i+=ov(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+ov(n))):((n=a+1)<o&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-o)>0&&(a+1===o&&(i+="."),i+=ov(n))),e.s<0?"-"+i:i}function fv(e,t){if(e.length>t)return e.length=t,!0}function pv(e){if(!e||"object"!=typeof e)throw Error(Fh+"Object expected");var t,r,n,a=["precision",1,Kh,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if(void 0!==(n=e[r=a[t]])){if(!(Hh(n)===n&&n>=a[t+1]&&n<=a[t+2]))throw Error(Wh+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(Wh+r+": "+n);this[r]=new this(n)}return this}var hv=function e(t){var r,n,a;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(Wh+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):sv(t,e.toString())}if("string"!=typeof e)throw Error(Wh+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Yh.test(e))throw Error(Wh+e);sv(t,e)}if(i.prototype=Jh,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=pv,void 0===t&&(t={}),t)for(a=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<a.length;)t.hasOwnProperty(n=a[r++])||(t[n]=this[n]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});Vh=new hv(1);var vv=hv;function yv(e){return 0===e?1:Math.floor(new vv(e).abs().log(10).toNumber())+1}function mv(e,t,r){for(var n=new vv(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var gv=e=>{var[t,r]=e,[n,a]=[t,r];return t>r&&([n,a]=[r,t]),[n,a]},bv=(e,t,r)=>{if(e.lte(0))return new vv(0);var n=yv(e.toNumber()),a=new vv(10).pow(n),i=e.div(a),o=1!==n?.05:.1,l=new vv(Math.ceil(i.div(o).toNumber())).add(r).mul(o).mul(a);return new vv(t?l.toNumber():Math.ceil(l.toNumber()))},xv=(e,t,r)=>{var n;if(e.lte(0))return new vv(0);var a=[1,2,2.5,5],i=e.toNumber(),o=Math.floor(new vv(i).abs().log(10).toNumber()),l=new vv(10).pow(o),s=e.div(l).toNumber(),c=a.findIndex(e=>e>=s-1e-10);if(-1===c&&(l=l.mul(10),c=0),(c+=r)>=a.length){var u=Math.floor(c/a.length);c%=a.length,l=l.mul(new vv(10).pow(u))}var d=null!==(n=a[c])&&void 0!==n?n:1,f=new vv(d).mul(l);return t?f:new vv(Math.ceil(f.toNumber()))},wv=function(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:bv;if(!Number.isFinite((t-e)/(r-1)))return{step:new vv(0),tickMin:new vv(0),tickMax:new vv(0)};var o,l=i(new vv(t).sub(e).div(r-1),n,a);o=e<=0&&t>=0?new vv(0):(o=new vv(e).add(t).div(2)).sub(new vv(o).mod(l));var s=Math.ceil(o.sub(e).div(l).toNumber()),c=Math.ceil(new vv(t).sub(o).div(l).toNumber()),u=s+c+1;return u>r?wv(e,t,r,n,a+1,i):(u<r&&(c=t>0?c+(r-u):c,s=t>0?s:s+(r-u)),{step:l,tickMin:o.sub(new vv(s).mul(l)),tickMax:o.add(new vv(c).mul(l))})},Ov=function(e){var[t,r]=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",o=Math.max(n,2),[l,s]=gv([t,r]);if(l===-1/0||s===1/0){var c=s===1/0?[l,...Array(n-1).fill(1/0)]:[...Array(n-1).fill(-1/0),s];return t>r?c.reverse():c}if(l===s)return((e,t,r)=>{var n=new vv(1),a=new vv(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new vv(10).pow(yv(e)-1),a=new vv(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new vv(Math.floor(e)))}else 0===e?a=new vv(Math.floor((t-1)/2)):r||(a=new vv(Math.floor(e)));for(var o=Math.floor((t-1)/2),l=[],s=0;s<t;s++)l.push(a.add(new vv(s-o).mul(n)).toNumber());return l})(l,n,a);var u="snap125"===i?xv:bv,{step:d,tickMin:f,tickMax:p}=wv(l,s,o,a,0,u),h=mv(f,p.add(new vv(.1).mul(d)),d);return t>r?h.reverse():h},Ev=function(e,t){var[r,n]=e,a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"auto",[o,l]=gv([r,n]);if(o===-1/0||l===1/0)return[r,n];if(o===l)return[o];var s="snap125"===i?xv:bv,c=Math.max(t,2),u=s(new vv(l).sub(o).div(c-1),a,0),d=[...mv(new vv(o),new vv(l),u),l];return!1===a&&(d=d.map(e=>Math.round(e))),r>n?d.reverse():d},Sv=e=>e.rootProps.maxBarSize,Pv=e=>e.rootProps.barCategoryGap,jv=e=>e.rootProps.stackOffset,kv=e=>e.rootProps.reverseStackOrder,Av=e=>e.options.chartName,Nv=e=>e.rootProps.syncId,_v=e=>e.rootProps.syncMethod,Tv=e=>e.options.eventEmitter,Iv={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Mv=(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t};function Dv(e,t,r){return"auto"!==r?r:null!=e?Ic(e,t)?"category":"number":void 0}function Cv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function zv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Cv(Object(r),!0).forEach(function(t){Lv(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cv(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Lv(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Bv={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:"auto",tick:!0,tickCount:void 0,ticks:void 0,type:"auto",unit:void 0,niceTicks:"auto"},Rv={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:"auto",tick:!0,tickCount:5,ticks:void 0,type:"auto",unit:void 0,niceTicks:"auto"},Vv=uo([(e,t)=>{if(null!=t)return e.polarAxis.angleAxis[t]},Yu],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=Dv(t,"angleAxis",Bv.type))&&void 0!==r?r:"category";return zv(zv({},Bv),{},{type:n})}),Kv=uo([(e,t)=>e.polarAxis.radiusAxis[t],Yu],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=Dv(t,"radiusAxis",Rv.type))&&void 0!==r?r:"category";return zv(zv({},Rv),{},{type:n})}),$v=e=>e.polarOptions,Fv=uo([Hc,qc,lu],function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2}),Wv=uo([$v,Fv],(e,t)=>{if(null!=e)return _n(e.innerRadius,t,0)}),Uv=uo([$v,Fv],(e,t)=>{if(null!=e)return _n(e.outerRadius,t,.8*t)}),Hv=uo([$v],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]});uo([Vv,Hv],Mv);var qv=uo([Fv,Wv,Uv],(e,t,r)=>{if(null!=e&&null!=t&&null!=r)return[t,r]});uo([Kv,qv],Mv);var Yv=uo([Uu,$v,Wv,Uv,Hc,qc],(e,t,r,n,a,i)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=r&&null!=n){var{cx:o,cy:l,startAngle:s,endAngle:c}=t;return{cx:_n(o,a,a/2),cy:_n(l,i,i/2),innerRadius:r,outerRadius:n,startAngle:s,endAngle:c,clockWise:!1}}}),Gv=(e,t)=>t,Xv=(e,t,r)=>r;function Zv(e){return null==e?void 0:e.id}function Jv(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:a,dataKey:i}=r,o=new Map;return e.forEach(e=>{var t,r=null!==(t=e.data)&&void 0!==t?t:n;if(null!=r&&0!==r.length){var l=Zv(e);r.forEach((t,r)=>{var n,s=null==i||a?r:String(Tc(t,i,null)),c=Tc(t,e.dataKey,0);n=o.has(s)?o.get(s):{},Object.assign(n,{[l]:c}),o.set(s,n)})}}),Array.from(o.values())}function Qv(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}var ey=(e,t)=>e===t||null!=e&&null!=t&&(e[0]===t[0]&&e[1]===t[1]);function ty(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var ry=e=>{var t=Uu(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},ny=e=>e.tooltip.settings.axisId;function ay(e){if(null!=e){var t=e.ticks,r=e.bandwidth,n=e.range(),a=[Math.min(...n),Math.max(...n)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>a),rangeMin:()=>a[0],rangeMax:()=>a[1],isInRange(e){var t=a[0],r=a[1];return t<=r?e>=t&&e<=r:e>=r&&e<=t},bandwidth:r?()=>r.call(e):void 0,ticks:t?r=>t.call(e,r):void 0,map:(t,r)=>{var n=e(t);if(null!=n){if(e.bandwidth&&null!=r&&r.position){var a=e.bandwidth();switch(r.position){case"middle":n+=a/2;break;case"end":n+=a}}return n}}}}}function iy(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function oy(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ly(e){let t,r,n;function a(e,n,a=0,i=e.length){if(a<i){if(0!==t(n,n))return i;do{const t=a+i>>>1;r(e[t],n)<0?a=t+1:i=t}while(a<i)}return a}return 2!==e.length?(t=iy,r=(t,r)=>iy(e(t),r),n=(t,r)=>e(t)-r):(t=e===iy||e===oy?e:sy,r=e,n=e),{left:a,center:function(e,t,r=0,i=e.length){const o=a(e,t,r,i-1);return o>r&&n(e[o-1],t)>-n(e[o],t)?o-1:o},right:function(e,n,a=0,i=e.length){if(a<i){if(0!==t(n,n))return i;do{const t=a+i>>>1;r(e[t],n)<=0?a=t+1:i=t}while(a<i)}return a}}}function sy(){return 0}function cy(e){return null===e?NaN:+e}const uy=ly(iy).right;ly(cy).center;class dy extends Map{constructor(e,t=py){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(fy(this,e))}has(e){return super.has(fy(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){const n=t(r);e.has(n)&&(r=e.get(n),e.delete(n));return r}(this,e))}}function fy({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function py(e){return null!==e&&"object"==typeof e?e.valueOf():e}function hy(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const vy=Math.sqrt(50),yy=Math.sqrt(10),my=Math.sqrt(2);function gy(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=vy?10:i>=yy?5:i>=my?2:1;let l,s,c;return a<0?(c=Math.pow(10,-a)/o,l=Math.round(e*c),s=Math.round(t*c),l/c<e&&++l,s/c>t&&--s,c=-c):(c=Math.pow(10,a)*o,l=Math.round(e/c),s=Math.round(t/c),l*c<e&&++l,s*c>t&&--s),s<l&&.5<=r&&r<2?gy(e,t,2*r):[l,s,c]}function by(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[a,i,o]=n?gy(t,e,r):gy(e,t,r);if(!(i>=a))return[];const l=i-a+1,s=new Array(l);if(n)if(o<0)for(let e=0;e<l;++e)s[e]=(i-e)/-o;else for(let e=0;e<l;++e)s[e]=(i-e)*o;else if(o<0)for(let e=0;e<l;++e)s[e]=(a+e)/-o;else for(let e=0;e<l;++e)s[e]=(a+e)*o;return s}function xy(e,t,r){return gy(e=+e,t=+t,r=+r)[2]}function wy(e,t,r){r=+r;const n=(t=+t)<(e=+e),a=n?xy(t,e,r):xy(e,t,r);return(n?-1:1)*(a<0?1/-a:a)}function Oy(e,t){let r;for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);return r}function Ey(e,t){let r;for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);return r}function Sy(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=void 0===a?hy:function(e=iy){if(e===iy)return hy;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(a);n>r;){if(n-r>600){const i=n-r+1,o=t-r+1,l=Math.log(i),s=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*s*(i-s)/i)*(o-i/2<0?-1:1);Sy(e,t,Math.max(r,Math.floor(t-o*s/i+c)),Math.min(n,Math.floor(t+(i-o)*s/i+c)),a)}const i=e[t];let o=r,l=n;for(Py(e,r,t),a(e[n],i)>0&&Py(e,r,n);o<l;){for(Py(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}0===a(e[r],i)?Py(e,r,l):(++l,Py(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function Py(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function jy(e,t,r=cy){if((n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e);return o+(+r(e[i+1],i+1,e)-o)*(a-i)}}function ky(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Ay(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}const Ny=Symbol("implicit");function _y(){var e=new dy,t=[],r=[],n=Ny;function a(a){let i=e.get(a);if(void 0===i){if(n!==Ny)return n;e.set(a,i=t.push(a)-1)}return r[i%r.length]}return a.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new dy;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return a},a.range=function(e){return arguments.length?(r=Array.from(e),a):r.slice()},a.unknown=function(e){return arguments.length?(n=e,a):n},a.copy=function(){return _y(t,r).unknown(n)},ky.apply(a,arguments),a}function Ty(){var e,t,r=_y().unknown(void 0),n=r.domain,a=r.range,i=0,o=1,l=!1,s=0,c=0,u=.5;function d(){var r=n().length,d=o<i,f=d?o:i,p=d?i:o;e=(p-f)/Math.max(1,r-s+2*c),l&&(e=Math.floor(e)),f+=(p-f-e*(r-s))*u,t=e*(1-s),l&&(f=Math.round(f),t=Math.round(t));var h=function(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=0|Math.max(0,Math.ceil((t-e)/r)),i=new Array(a);++n<a;)i[n]=e+n*r;return i}(r).map(function(t){return f+e*t});return a(d?h.reverse():h)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),d()):n()},r.range=function(e){return arguments.length?([i,o]=e,i=+i,o=+o,d()):[i,o]},r.rangeRound=function(e){return[i,o]=e,i=+i,o=+o,l=!0,d()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(l=!!e,d()):l},r.padding=function(e){return arguments.length?(s=Math.min(1,c=+e),d()):s},r.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),d()):s},r.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},r.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},r.copy=function(){return Ty(n(),[i,o]).round(l).paddingInner(s).paddingOuter(c).align(u)},ky.apply(d(),arguments)}function Iy(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Iy(t())},e}function My(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Dy(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Cy(){}var zy=.7,Ly=1/zy,By="\\s*([+-]?\\d+)\\s*",Ry="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ky=/^#([0-9a-f]{3,8})$/,$y=new RegExp(`^rgb\\(${By},${By},${By}\\)$`),Fy=new RegExp(`^rgb\\(${Vy},${Vy},${Vy}\\)$`),Wy=new RegExp(`^rgba\\(${By},${By},${By},${Ry}\\)$`),Uy=new RegExp(`^rgba\\(${Vy},${Vy},${Vy},${Ry}\\)$`),Hy=new RegExp(`^hsl\\(${Ry},${Vy},${Vy}\\)$`),qy=new RegExp(`^hsla\\(${Ry},${Vy},${Vy},${Ry}\\)$`),Yy={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 Gy(){return this.rgb().formatHex()}function Xy(){return this.rgb().formatRgb()}function Zy(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ky.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Jy(t):3===r?new tm(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Qy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Qy(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=$y.exec(e))?new tm(t[1],t[2],t[3],1):(t=Fy.exec(e))?new tm(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Wy.exec(e))?Qy(t[1],t[2],t[3],t[4]):(t=Uy.exec(e))?Qy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Hy.exec(e))?lm(t[1],t[2]/100,t[3]/100,1):(t=qy.exec(e))?lm(t[1],t[2]/100,t[3]/100,t[4]):Yy.hasOwnProperty(e)?Jy(Yy[e]):"transparent"===e?new tm(NaN,NaN,NaN,0):null}function Jy(e){return new tm(e>>16&255,e>>8&255,255&e,1)}function Qy(e,t,r,n){return n<=0&&(e=t=r=NaN),new tm(e,t,r,n)}function em(e,t,r,n){return 1===arguments.length?((a=e)instanceof Cy||(a=Zy(a)),a?new tm((a=a.rgb()).r,a.g,a.b,a.opacity):new tm):new tm(e,t,r,null==n?1:n);var a}function tm(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function rm(){return`#${om(this.r)}${om(this.g)}${om(this.b)}`}function nm(){const e=am(this.opacity);return`${1===e?"rgb(":"rgba("}${im(this.r)}, ${im(this.g)}, ${im(this.b)}${1===e?")":`, ${e})`}`}function am(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function im(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function om(e){return((e=im(e))<16?"0":"")+e.toString(16)}function lm(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new cm(e,t,r,n)}function sm(e){if(e instanceof cm)return new cm(e.h,e.s,e.l,e.opacity);if(e instanceof Cy||(e=Zy(e)),!e)return new cm;if(e instanceof cm)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,l=i-a,s=(i+a)/2;return l?(o=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=s<.5?i+a:2-i-a,o*=60):l=s>0&&s<1?0:o,new cm(o,l,s,e.opacity)}function cm(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function um(e){return(e=(e||0)%360)<0?e+360:e}function dm(e){return Math.max(0,Math.min(1,e||0))}function fm(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}My(Cy,Zy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gy,formatHex:Gy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return sm(this).formatHsl()},formatRgb:Xy,toString:Xy}),My(tm,em,Dy(Cy,{brighter(e){return e=null==e?Ly:Math.pow(Ly,e),new tm(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?zy:Math.pow(zy,e),new tm(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tm(im(this.r),im(this.g),im(this.b),am(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:rm,formatHex:rm,formatHex8:function(){return`#${om(this.r)}${om(this.g)}${om(this.b)}${om(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:nm,toString:nm})),My(cm,function(e,t,r,n){return 1===arguments.length?sm(e):new cm(e,t,r,null==n?1:n)},Dy(Cy,{brighter(e){return e=null==e?Ly:Math.pow(Ly,e),new cm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?zy:Math.pow(zy,e),new cm(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new tm(fm(e>=240?e-240:e+120,a,n),fm(e,a,n),fm(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new cm(um(this.h),dm(this.s),dm(this.l),am(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 e=am(this.opacity);return`${1===e?"hsl(":"hsla("}${um(this.h)}, ${100*dm(this.s)}%, ${100*dm(this.l)}%${1===e?")":`, ${e})`}`}}));var pm=e=>()=>e;function hm(e){return 1===(e=+e)?vm:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):pm(isNaN(t)?r:t)}}function vm(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):pm(isNaN(e)?t:e)}var ym=function e(t){var r=hm(t);function n(e,t){var n=r((e=em(e)).r,(t=em(t)).r),a=r(e.g,t.g),i=r(e.b,t.b),o=vm(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=a(t),e.b=i(t),e.opacity=o(t),e+""}}return n.gamma=e,n}(1);function mm(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,a=t.slice();return function(i){for(r=0;r<n;++r)a[r]=e[r]*(1-i)+t[r]*i;return a}}function gm(e,t){var r,n=t?t.length:0,a=e?Math.min(n,e.length):0,i=new Array(a),o=new Array(n);for(r=0;r<a;++r)i[r]=Pm(e[r],t[r]);for(;r<n;++r)o[r]=t[r];return function(e){for(r=0;r<a;++r)o[r]=i[r](e);return o}}function bm(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function xm(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function wm(e,t){var r,n={},a={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=Pm(e[r],t[r]):a[r]=t[r];return function(e){for(r in n)a[r]=n[r](e);return a}}var Om=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Em=new RegExp(Om.source,"g");function Sm(e,t){var r,n,a,i=Om.lastIndex=Em.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(r=Om.exec(e))&&(n=Em.exec(t));)(a=n.index)>i&&(a=t.slice(i,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,s.push({i:o,x:xm(r,n)})),i=Em.lastIndex;return i<t.length&&(a=t.slice(i),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var r,n=0;n<t;++n)l[(r=s[n]).i]=r.x(e);return l.join("")})}function Pm(e,t){var r,n=typeof t;return null==t||"boolean"===n?pm(t):("number"===n?xm:"string"===n?(r=Zy(t))?(t=r,ym):Sm:t instanceof Zy?ym:t instanceof Date?bm:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?mm:Array.isArray(t)?gm:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?wm:xm)(e,t)}function jm(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function km(e,t){void 0===t&&(t=e,e=Pm);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return i[t](e-t)}}function Am(e){return+e}var Nm=[0,1];function _m(e){return e}function Tm(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Im(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a<n?(n=Tm(a,n),i=r(o,i)):(n=Tm(n,a),i=r(i,o)),function(e){return i(n(e))}}function Mm(e,t,r){var n=Math.min(e.length,t.length)-1,a=new Array(n),i=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)a[o]=Tm(e[o],e[o+1]),i[o]=r(t[o],t[o+1]);return function(t){var r=uy(e,t,1,n)-1;return i[r](a[r](t))}}function Dm(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Cm(){var e,t,r,n,a,i,o=Nm,l=Nm,s=Pm,c=_m;function u(){var e=Math.min(o.length,l.length);return c!==_m&&(c=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(o[0],o[e-1])),n=e>2?Mm:Im,a=i=null,d}function d(t){return null==t||isNaN(t=+t)?r:(a||(a=n(o.map(e),l,s)))(e(c(t)))}return d.invert=function(r){return c(t((i||(i=n(l,o.map(e),xm)))(r)))},d.domain=function(e){return arguments.length?(o=Array.from(e,Am),u()):o.slice()},d.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},d.rangeRound=function(e){return l=Array.from(e),s=jm,u()},d.clamp=function(e){return arguments.length?(c=!!e||_m,u()):c!==_m},d.interpolate=function(e){return arguments.length?(s=e,u()):s},d.unknown=function(e){return arguments.length?(r=e,d):r},function(r,n){return e=r,t=n,u()}}function zm(){return Cm()(_m,_m)}function Lm(e,t){if(!isFinite(e)||0===e)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Bm(e){return(e=Lm(Math.abs(e)))?e[1]:NaN}var Rm,Vm=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Km(e){if(!(t=Vm.exec(e)))throw new Error("invalid format: "+e);var t;return new $m({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function $m(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function Fm(e,t){var r=Lm(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}Km.prototype=$m.prototype,$m.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 Wm={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Fm(100*e,t),r:Fm,s:function(e,t){var r=Lm(e,t);if(!r)return Rm=void 0,e.toPrecision(t);var n=r[0],a=r[1],i=a-(Rm=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Lm(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Um(e){return e}var Hm,qm,Ym,Gm=Array.prototype.map,Xm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Zm(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?Um:(t=Gm.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var a=e.length,i=[],o=0,l=t[0],s=0;a>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),i.push(e.substring(a-=l,a+l)),!((s+=l+1)>n));)l=t[o=(o+1)%t.length];return i.reverse().join(r)}),a=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?Um:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Gm.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e,t){var r=(e=Km(e)).fill,d=e.align,f=e.sign,p=e.symbol,h=e.zero,v=e.width,y=e.comma,m=e.precision,g=e.trim,b=e.type;"n"===b?(y=!0,b="g"):Wm[b]||(void 0===m&&(m=12),g=!0,b="g"),(h||"0"===r&&"="===d)&&(h=!0,r="0",d="=");var x=(t&&void 0!==t.prefix?t.prefix:"")+("$"===p?a:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),w=("$"===p?i:/[%p]/.test(b)?s:"")+(t&&void 0!==t.suffix?t.suffix:""),O=Wm[b],E=/[defgprs%]/.test(b);function S(e){var t,a,i,s=x,p=w;if("c"===b)p=O(e)+p,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:O(Math.abs(e),m),g&&(e=function(e){e:for(var t,r=e.length,n=1,a=-1;n<r;++n)switch(e[n]){case".":a=t=n;break;case"0":0===a&&(a=n),t=n;break;default:if(!+e[n])break e;a>0&&(a=0)}return a>0?e.slice(0,a)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==f&&(S=!1),s=(S?"("===f?f:c:"-"===f||"("===f?"":f)+s,p=("s"!==b||isNaN(e)||void 0===Rm?"":Xm[8+Rm/3])+p+(S&&"("===f?")":""),E)for(t=-1,a=e.length;++t<a;)if(48>(i=e.charCodeAt(t))||i>57){p=(46===i?o+e.slice(t+1):e.slice(t))+p,e=e.slice(0,t);break}}y&&!h&&(e=n(e,1/0));var P=s.length+e.length+p.length,j=P<v?new Array(v-P+1).join(r):"";switch(y&&h&&(e=n(j+e,j.length?v-p.length:1/0),j=""),d){case"<":e=s+e+p+j;break;case"=":e=s+j+e+p;break;case"^":e=j.slice(0,P=j.length>>1)+s+e+p+j.slice(P);break;default:e=j+s+e+p}return l(e)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor(Bm(t)/3))),n=Math.pow(10,-r),a=d(((e=Km(e)).type="f",e),{suffix:Xm[8+r/3]});return function(e){return a(n*e)}}}}function Jm(e,t,r,n){var a,i=wy(e,t,r);switch((n=Km(null==n?",f":n)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(a=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Bm(t)/3)))-Bm(Math.abs(e)))}(i,o))||(n.precision=a),Ym(n,o);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(a=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Bm(t)-Bm(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=a-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(a=function(e){return Math.max(0,-Bm(Math.abs(e)))}(i))||(n.precision=a-2*("%"===n.type))}return qm(n)}function Qm(e){var t=e.domain;return e.ticks=function(e){var r=t();return by(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return Jm(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,a,i=t(),o=0,l=i.length-1,s=i[o],c=i[l],u=10;for(c<s&&(a=s,s=c,c=a,a=o,o=l,l=a);u-- >0;){if((a=xy(s,c,r))===n)return i[o]=s,i[l]=c,t(i);if(a>0)s=Math.floor(s/a)*a,c=Math.ceil(c/a)*a;else{if(!(a<0))break;s=Math.ceil(s*a)/a,c=Math.floor(c*a)/a}n=a}return e},e}function eg(e,t){var r,n=0,a=(e=e.slice()).length-1,i=e[n],o=e[a];return o<i&&(r=n,n=a,a=r,r=i,i=o,o=r),e[n]=t.floor(i),e[a]=t.ceil(o),e}function tg(e){return Math.log(e)}function rg(e){return Math.exp(e)}function ng(e){return-Math.log(-e)}function ag(e){return-Math.exp(-e)}function ig(e){return isFinite(e)?+("1e"+e):e<0?0:e}function og(e){return(t,r)=>-e(-t,r)}function lg(e){const t=e(tg,rg),r=t.domain;let n,a,i=10;function o(){return n=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),a=function(e){return 10===e?ig:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),r()[0]<0?(n=og(n),a=og(a),e(ng,ag)):e(tg,rg),t}return t.base=function(e){return arguments.length?(i=+e,o()):i},t.domain=function(e){return arguments.length?(r(e),o()):r()},t.ticks=e=>{const t=r();let o=t[0],l=t[t.length-1];const s=l<o;s&&([o,l]=[l,o]);let c,u,d=n(o),f=n(l);const p=null==e?10:+e;let h=[];if(!(i%1)&&f-d<p){if(d=Math.floor(d),f=Math.ceil(f),o>0){for(;d<=f;++d)for(c=1;c<i;++c)if(u=d<0?c/a(-d):c*a(d),!(u<o)){if(u>l)break;h.push(u)}}else for(;d<=f;++d)for(c=i-1;c>=1;--c)if(u=d>0?c/a(-d):c*a(d),!(u<o)){if(u>l)break;h.push(u)}2*h.length<p&&(h=by(o,l,p))}else h=by(d,f,Math.min(f-d,p)).map(a);return s?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===i?"s":","),"function"!=typeof r&&(i%1||null!=(r=Km(r)).precision||(r.trim=!0),r=qm(r)),e===1/0)return r;const o=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/a(Math.round(n(e)));return t*i<i-.5&&(t*=i),t<=o?r(e):""}},t.nice=()=>r(eg(r(),{floor:e=>a(Math.floor(n(e))),ceil:e=>a(Math.ceil(n(e)))})),t}function sg(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function cg(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function ug(e){var t=1,r=e(sg(t),cg(t));return r.constant=function(r){return arguments.length?e(sg(t=+r),cg(t)):t},Qm(r)}function dg(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function fg(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function pg(e){return e<0?-e*e:e*e}function hg(e){var t=e(_m,_m),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(_m,_m):.5===r?e(fg,pg):e(dg(r),dg(1/r)):r},Qm(t)}function vg(){var e=hg(Cm());return e.copy=function(){return Dm(e,vg()).exponent(e.exponent())},ky.apply(e,arguments),e}function yg(e){return Math.sign(e)*e*e}Hm=Zm({thousands:",",grouping:[3],currency:["$",""]}),qm=Hm.format,Ym=Hm.formatPrefix;const mg=new Date,gg=new Date;function bg(e,t,r,n){function a(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return a.floor=t=>(e(t=new Date(+t)),t),a.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),a.round=e=>{const t=a(e),r=a.ceil(e);return e-t<r-e?t:r},a.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),a.range=(r,n,i)=>{const o=[];if(r=a.ceil(r),i=null==i?1:Math.floor(i),!(r<n&&i>0))return o;let l;do{o.push(l=new Date(+r)),t(r,i),e(r)}while(l<r&&r<n);return o},a.filter=r=>bg(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(a.count=(t,n)=>(mg.setTime(+t),gg.setTime(+n),e(mg),e(gg),Math.floor(r(mg,gg))),a.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?a.filter(n?t=>n(t)%e===0:t=>a.count(0,t)%e===0):a:null)),a}const xg=bg(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);xg.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?bg(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):xg:null),xg.range;const wg=1e3,Og=6e4,Eg=36e5,Sg=864e5,Pg=6048e5,jg=2592e6,kg=31536e6,Ag=bg(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*wg)},(e,t)=>(t-e)/wg,e=>e.getUTCSeconds());Ag.range;const Ng=bg(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wg)},(e,t)=>{e.setTime(+e+t*Og)},(e,t)=>(t-e)/Og,e=>e.getMinutes());Ng.range;const _g=bg(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Og)},(e,t)=>(t-e)/Og,e=>e.getUTCMinutes());_g.range;const Tg=bg(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*wg-e.getMinutes()*Og)},(e,t)=>{e.setTime(+e+t*Eg)},(e,t)=>(t-e)/Eg,e=>e.getHours());Tg.range;const Ig=bg(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Eg)},(e,t)=>(t-e)/Eg,e=>e.getUTCHours());Ig.range;const Mg=bg(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Og)/Sg,e=>e.getDate()-1);Mg.range;const Dg=bg(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sg,e=>e.getUTCDate()-1);Dg.range;const Cg=bg(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sg,e=>Math.floor(e/Sg));function zg(e){return bg(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Og)/Pg)}Cg.range;const Lg=zg(0),Bg=zg(1),Rg=zg(2),Vg=zg(3),Kg=zg(4),$g=zg(5),Fg=zg(6);function Wg(e){return bg(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/Pg)}Lg.range,Bg.range,Rg.range,Vg.range,Kg.range,$g.range,Fg.range;const Ug=Wg(0),Hg=Wg(1),qg=Wg(2),Yg=Wg(3),Gg=Wg(4),Xg=Wg(5),Zg=Wg(6);Ug.range,Hg.range,qg.range,Yg.range,Gg.range,Xg.range,Zg.range;const Jg=bg(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth());Jg.range;const Qg=bg(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth());Qg.range;const eb=bg(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());eb.every=e=>isFinite(e=Math.floor(e))&&e>0?bg(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null,eb.range;const tb=bg(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function rb(e,t,r,n,a,i){const o=[[Ag,1,wg],[Ag,5,5e3],[Ag,15,15e3],[Ag,30,3e4],[i,1,Og],[i,5,3e5],[i,15,9e5],[i,30,18e5],[a,1,Eg],[a,3,108e5],[a,6,216e5],[a,12,432e5],[n,1,Sg],[n,2,1728e5],[r,1,Pg],[t,1,jg],[t,3,7776e6],[e,1,kg]];function l(t,r,n){const a=Math.abs(r-t)/n,i=ly(([,,e])=>e).right(o,a);if(i===o.length)return e.every(wy(t/kg,r/kg,n));if(0===i)return xg.every(Math.max(wy(t,r,n),1));const[l,s]=o[a/o[i-1][2]<o[i][2]/a?i-1:i];return l.every(s)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const a=r&&"function"==typeof r.range?r:l(e,t,r),i=a?a.range(e,+t+1):[];return n?i.reverse():i},l]}tb.every=e=>isFinite(e=Math.floor(e))&&e>0?bg(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null,tb.range;const[nb,ab]=rb(tb,Qg,Ug,Cg,Ig,_g),[ib,ob]=rb(eb,Jg,Lg,Mg,Tg,Ng);function lb(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function sb(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function cb(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var ub,db,fb,pb={"-":"",_:" ",0:"0"},hb=/^\s*\d+/,vb=/^%/,yb=/[\\^$*+?|[\]().{}]/g;function mb(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i<r?new Array(r-i+1).join(t)+a:a)}function gb(e){return e.replace(yb,"\\$&")}function bb(e){return new RegExp("^(?:"+e.map(gb).join("|")+")","i")}function xb(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function wb(e,t,r){var n=hb.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Ob(e,t,r){var n=hb.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=hb.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function Sb(e,t,r){var n=hb.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Pb(e,t,r){var n=hb.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function jb(e,t,r){var n=hb.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function kb(e,t,r){var n=hb.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Ab(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function Nb(e,t,r){var n=hb.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function _b(e,t,r){var n=hb.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Tb(e,t,r){var n=hb.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Ib(e,t,r){var n=hb.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Mb(e,t,r){var n=hb.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Db(e,t,r){var n=hb.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Cb(e,t,r){var n=hb.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function zb(e,t,r){var n=hb.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Lb(e,t,r){var n=hb.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Bb(e,t,r){var n=vb.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Rb(e,t,r){var n=hb.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Vb(e,t,r){var n=hb.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Kb(e,t){return mb(e.getDate(),t,2)}function $b(e,t){return mb(e.getHours(),t,2)}function Fb(e,t){return mb(e.getHours()%12||12,t,2)}function Wb(e,t){return mb(1+Mg.count(eb(e),e),t,3)}function Ub(e,t){return mb(e.getMilliseconds(),t,3)}function Hb(e,t){return Ub(e,t)+"000"}function qb(e,t){return mb(e.getMonth()+1,t,2)}function Yb(e,t){return mb(e.getMinutes(),t,2)}function Gb(e,t){return mb(e.getSeconds(),t,2)}function Xb(e){var t=e.getDay();return 0===t?7:t}function Zb(e,t){return mb(Lg.count(eb(e)-1,e),t,2)}function Jb(e){var t=e.getDay();return t>=4||0===t?Kg(e):Kg.ceil(e)}function Qb(e,t){return e=Jb(e),mb(Kg.count(eb(e),e)+(4===eb(e).getDay()),t,2)}function ex(e){return e.getDay()}function tx(e,t){return mb(Bg.count(eb(e)-1,e),t,2)}function rx(e,t){return mb(e.getFullYear()%100,t,2)}function nx(e,t){return mb((e=Jb(e)).getFullYear()%100,t,2)}function ax(e,t){return mb(e.getFullYear()%1e4,t,4)}function ix(e,t){var r=e.getDay();return mb((e=r>=4||0===r?Kg(e):Kg.ceil(e)).getFullYear()%1e4,t,4)}function ox(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+mb(t/60|0,"0",2)+mb(t%60,"0",2)}function lx(e,t){return mb(e.getUTCDate(),t,2)}function sx(e,t){return mb(e.getUTCHours(),t,2)}function cx(e,t){return mb(e.getUTCHours()%12||12,t,2)}function ux(e,t){return mb(1+Dg.count(tb(e),e),t,3)}function dx(e,t){return mb(e.getUTCMilliseconds(),t,3)}function fx(e,t){return dx(e,t)+"000"}function px(e,t){return mb(e.getUTCMonth()+1,t,2)}function hx(e,t){return mb(e.getUTCMinutes(),t,2)}function vx(e,t){return mb(e.getUTCSeconds(),t,2)}function yx(e){var t=e.getUTCDay();return 0===t?7:t}function mx(e,t){return mb(Ug.count(tb(e)-1,e),t,2)}function gx(e){var t=e.getUTCDay();return t>=4||0===t?Gg(e):Gg.ceil(e)}function bx(e,t){return e=gx(e),mb(Gg.count(tb(e),e)+(4===tb(e).getUTCDay()),t,2)}function xx(e){return e.getUTCDay()}function wx(e,t){return mb(Hg.count(tb(e)-1,e),t,2)}function Ox(e,t){return mb(e.getUTCFullYear()%100,t,2)}function Ex(e,t){return mb((e=gx(e)).getUTCFullYear()%100,t,2)}function Sx(e,t){return mb(e.getUTCFullYear()%1e4,t,4)}function Px(e,t){var r=e.getUTCDay();return mb((e=r>=4||0===r?Gg(e):Gg.ceil(e)).getUTCFullYear()%1e4,t,4)}function jx(){return"+0000"}function kx(){return"%"}function Ax(e){return+e}function Nx(e){return Math.floor(+e/1e3)}function _x(e){return new Date(e)}function Tx(e){return e instanceof Date?+e:+new Date(+e)}function Ix(e,t,r,n,a,i,o,l,s,c){var u=zm(),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),v=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),g=c("%b %d"),b=c("%B"),x=c("%Y");function w(e){return(s(e)<e?p:l(e)<e?h:o(e)<e?v:i(e)<e?y:n(e)<e?a(e)<e?m:g:r(e)<e?b:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,Tx)):f().map(_x)},u.ticks=function(t){var r=f();return e(r[0],r[r.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:c(t)},u.nice=function(e){var r=f();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?f(eg(r,e)):u},u.copy=function(){return Dm(u,Ix(e,t,r,n,a,i,o,l,s,c))},u}function Mx(){var e,t,r,n,a,i=0,o=1,l=_m,s=!1;function c(t){return null==t||isNaN(t=+t)?a:l(0===r?.5:(t=(n(t)-e)*r,s?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var r,n;return arguments.length?([r,n]=t,l=e(r,n),c):[l(0),l(1)]}}return c.domain=function(a){return arguments.length?([i,o]=a,e=n(i=+i),t=n(o=+o),r=e===t?0:1/(t-e),c):[i,o]},c.clamp=function(e){return arguments.length?(s=!!e,c):s},c.interpolator=function(e){return arguments.length?(l=e,c):l},c.range=u(Pm),c.rangeRound=u(jm),c.unknown=function(e){return arguments.length?(a=e,c):a},function(a){return n=a,e=a(i),t=a(o),r=e===t?0:1/(t-e),c}}function Dx(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Cx(){var e=hg(Mx());return e.copy=function(){return Dx(e,Cx()).exponent(e.exponent())},Ay.apply(e,arguments)}function zx(){var e,t,r,n,a,i,o,l=0,s=.5,c=1,u=1,d=_m,f=!1;function p(e){return isNaN(e=+e)?o:(e=.5+((e=+i(e))-t)*(u*e<u*t?n:a),d(f?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var r,n,a;return arguments.length?([r,n,a]=t,d=km(e,[r,n,a]),p):[d(0),d(.5),d(1)]}}return p.domain=function(o){return arguments.length?([l,s,c]=o,e=i(l=+l),t=i(s=+s),r=i(c=+c),n=e===t?0:.5/(t-e),a=t===r?0:.5/(r-t),u=t<e?-1:1,p):[l,s,c]},p.clamp=function(e){return arguments.length?(f=!!e,p):f},p.interpolator=function(e){return arguments.length?(d=e,p):d},p.range=h(Pm),p.rangeRound=h(jm),p.unknown=function(e){return arguments.length?(o=e,p):o},function(o){return i=o,e=o(l),t=o(s),r=o(c),n=e===t?0:.5/(t-e),a=t===r?0:.5/(r-t),u=t<e?-1:1,p}}function Lx(){var e=hg(zx());return e.copy=function(){return Dx(e,Lx()).exponent(e.exponent())},Ay.apply(e,arguments)}!function(e){ub=function(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,c=bb(a),u=xb(a),d=bb(i),f=xb(i),p=bb(o),h=xb(o),v=bb(l),y=xb(l),m=bb(s),g=xb(s),b={a:function(e){return o[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:Kb,e:Kb,f:Hb,g:nx,G:ix,H:$b,I:Fb,j:Wb,L:Ub,m:qb,M:Yb,p:function(e){return a[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Ax,s:Nx,S:Gb,u:Xb,U:Zb,V:Qb,w:ex,W:tx,x:null,X:null,y:rx,Y:ax,Z:ox,"%":kx},x={a:function(e){return o[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:lx,e:lx,f:fx,g:Ex,G:Px,H:sx,I:cx,j:ux,L:dx,m:px,M:hx,p:function(e){return a[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Ax,s:Nx,S:vx,u:yx,U:mx,V:bx,w:xx,W:wx,x:null,X:null,y:Ox,Y:Sx,Z:jx,"%":kx},w={a:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=f.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=v.exec(t.slice(r));return n?(e.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:Tb,e:Tb,f:Lb,g:kb,G:jb,H:Mb,I:Mb,j:Ib,L:zb,m:_b,M:Db,p:function(e,t,r){var n=c.exec(t.slice(r));return n?(e.p=u.get(n[0].toLowerCase()),r+n[0].length):-1},q:Nb,Q:Rb,s:Vb,S:Cb,u:Ob,U:Eb,V:Sb,w:wb,W:Pb,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:kb,Y:jb,Z:Ab,"%":Bb};function O(e,t){return function(r){var n,a,i,o=[],l=-1,s=0,c=e.length;for(r instanceof Date||(r=new Date(+r));++l<c;)37===e.charCodeAt(l)&&(o.push(e.slice(s,l)),null!=(a=pb[n=e.charAt(++l)])?n=e.charAt(++l):a="e"===n?" ":"0",(i=t[n])&&(n=i(r,a)),o.push(n),s=l+1);return o.push(e.slice(s,l)),o.join("")}}function E(e,t){return function(r){var n,a,i=cb(1900,void 0,1);if(S(i,e,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(a=(n=sb(cb(i.y,0,1))).getUTCDay(),n=a>4||0===a?Hg.ceil(n):Hg(n),n=Dg.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(a=(n=lb(cb(i.y,0,1))).getDay(),n=a>4||0===a?Bg.ceil(n):Bg(n),n=Mg.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),a="Z"in i?sb(cb(i.y,0,1)).getUTCDay():lb(cb(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(a+5)%7:i.w+7*i.U-(a+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,sb(i)):lb(i)}}function S(e,t,r,n){for(var a,i,o=0,l=t.length,s=r.length;o<l;){if(n>=s)return-1;if(37===(a=t.charCodeAt(o++))){if(a=t.charAt(o++),!(i=w[a in pb?t.charAt(o++):a])||(n=i(e,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),x.x=O(r,x),x.X=O(n,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}(e),db=ub.format,ub.parse,fb=ub.utcFormat,ub.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 Bx=Object.freeze({__proto__:null,scaleBand:Ty,scaleDiverging:function e(){var t=Qm(zx()(_m));return t.copy=function(){return Dx(t,e())},Ay.apply(t,arguments)},scaleDivergingLog:function e(){var t=lg(zx()).domain([.1,1,10]);return t.copy=function(){return Dx(t,e()).base(t.base())},Ay.apply(t,arguments)},scaleDivergingPow:Lx,scaleDivergingSqrt:function(){return Lx.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=ug(zx());return t.copy=function(){return Dx(t,e()).constant(t.constant())},Ay.apply(t,arguments)},scaleIdentity:function e(t){var r;function n(e){return null==e||isNaN(e=+e)?r:e}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,Am),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?Array.from(t,Am):[0,1],Qm(n)},scaleImplicit:Ny,scaleLinear:function e(){var t=zm();return t.copy=function(){return Dm(t,e())},ky.apply(t,arguments),Qm(t)},scaleLog:function e(){const t=lg(Cm()).domain([1,10]);return t.copy=()=>Dm(t,e()).base(t.base()),ky.apply(t,arguments),t},scaleOrdinal:_y,scalePoint:function(){return Iy(Ty.apply(null,arguments).paddingInner(1))},scalePow:vg,scaleQuantile:function e(){var t,r=[],n=[],a=[];function i(){var e=0,t=Math.max(1,n.length);for(a=new Array(t-1);++e<t;)a[e-1]=jy(r,e/t);return o}function o(e){return null==e||isNaN(e=+e)?t:n[uy(a,e)]}return o.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?a[t-1]:r[0],t<a.length?a[t]:r[r.length-1]]},o.domain=function(e){if(!arguments.length)return r.slice();r=[];for(let t of e)null==t||isNaN(t=+t)||r.push(t);return r.sort(iy),i()},o.range=function(e){return arguments.length?(n=Array.from(e),i()):n.slice()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.quantiles=function(){return a.slice()},o.copy=function(){return e().domain(r).range(n).unknown(t)},ky.apply(o,arguments)},scaleQuantize:function e(){var t,r=0,n=1,a=1,i=[.5],o=[0,1];function l(e){return null!=e&&e<=e?o[uy(i,e,0,a)]:t}function s(){var e=-1;for(i=new Array(a);++e<a;)i[e]=((e+1)*n-(e-a)*r)/(a+1);return l}return l.domain=function(e){return arguments.length?([r,n]=e,r=+r,n=+n,s()):[r,n]},l.range=function(e){return arguments.length?(a=(o=Array.from(e)).length-1,s()):o.slice()},l.invertExtent=function(e){var t=o.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,i[0]]:t>=a?[i[a-1],n]:[i[t-1],i[t]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return i.slice()},l.copy=function(){return e().domain([r,n]).range(o).unknown(t)},ky.apply(Qm(l),arguments)},scaleRadial:function e(){var t,r=zm(),n=[0,1],a=!1;function i(e){var n=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(r(e));return isNaN(n)?t:a?Math.round(n):n}return i.invert=function(e){return r.invert(yg(e))},i.domain=function(e){return arguments.length?(r.domain(e),i):r.domain()},i.range=function(e){return arguments.length?(r.range((n=Array.from(e,Am)).map(yg)),i):n.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(a=!!e,i):a},i.clamp=function(e){return arguments.length?(r.clamp(e),i):r.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(r.domain(),n).round(a).clamp(r.clamp()).unknown(t)},ky.apply(i,arguments),Qm(i)},scaleSequential:function e(){var t=Qm(Mx()(_m));return t.copy=function(){return Dx(t,e())},Ay.apply(t,arguments)},scaleSequentialLog:function e(){var t=lg(Mx()).domain([1,10]);return t.copy=function(){return Dx(t,e()).base(t.base())},Ay.apply(t,arguments)},scaleSequentialPow:Cx,scaleSequentialQuantile:function e(){var t=[],r=_m;function n(e){if(null!=e&&!isNaN(e=+e))return r((uy(t,e,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(iy),n},n.interpolator=function(e){return arguments.length?(r=e,n):r},n.range=function(){return t.map((e,n)=>r(n/(t.length-1)))},n.quantiles=function(e){return Array.from({length:e+1},(r,n)=>function(e,t){if((r=(e=Float64Array.from(function*(e){for(let t of e)null!=t&&(t=+t)>=t&&(yield t)}(e))).length)&&!isNaN(t=+t)){if(t<=0||r<2)return Ey(e);if(t>=1)return Oy(e);var r,n=(r-1)*t,a=Math.floor(n),i=Oy(Sy(e,a).subarray(0,a+1));return i+(Ey(e.subarray(a+1))-i)*(n-a)}}(t,n/e))},n.copy=function(){return e(r).domain(t)},Ay.apply(n,arguments)},scaleSequentialSqrt:function(){return Cx.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=ug(Mx());return t.copy=function(){return Dx(t,e()).constant(t.constant())},Ay.apply(t,arguments)},scaleSqrt:function(){return vg.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=ug(Cm());return t.copy=function(){return Dm(t,e()).constant(t.constant())},ky.apply(t,arguments)},scaleThreshold:function e(){var t,r=[.5],n=[0,1],a=1;function i(e){return null!=e&&e<=e?n[uy(r,e,0,a)]:t}return i.domain=function(e){return arguments.length?(r=Array.from(e),a=Math.min(r.length,n.length-1),i):r.slice()},i.range=function(e){return arguments.length?(n=Array.from(e),a=Math.min(r.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(r).range(n).unknown(t)},ky.apply(i,arguments)},scaleTime:function(){return ky.apply(Ix(ib,ob,eb,Jg,Lg,Mg,Tg,Ng,Ag,db).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return ky.apply(Ix(nb,ab,tb,Qg,Ug,Dg,Ig,_g,Ag,fb).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Jm});function Rx(e,t,r){if("function"==typeof e)return e.copy().domain(t).range(r);if(null!=e){var n=function(e){var t=Bx;if(e in t&&"function"==typeof t[e])return t[e]();var r="scale".concat(Cn(e));return r in t&&"function"==typeof t[r]?t[r]():void 0}(e);if(null!=n)return n.domain(t).range(r),n}}function Vx(e,t,r,n){if(null!=r&&null!=n)return"function"==typeof e.scale?Rx(e.scale,r,n):Rx(t,r,n)}function Kx(e){return function(e){return"scale".concat(Cn(e))}(e)in Bx}var $x=(e,t,r)=>{if(null!=e){var{scale:n,type:a}=e;return"auto"===n?"category"===a&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!t)?"point":"category"===a?"band":"linear":"string"==typeof n?Kx(n)?n:"point":void 0}};function Fx(e,t){if(e){var r=null!=t?t:e.domain(),n=r.map(t=>{var r;return null!==(r=e(t))&&void 0!==r?r:0}),a=e.range();if(!(0===r.length||a.length<2))return e=>{var t,a,i=function(e,t){for(var r=0,n=e.length,a=e[0]<e[e.length-1];r<n;){var i=Math.floor((r+n)/2);(a?e[i]<t:e[i]>t)?r=i+1:n=i}return r}(n,e);if(i<=0)return r[0];if(i>=r.length)return r[r.length-1];var o=null!==(t=n[i-1])&&void 0!==t?t:0,l=null!==(a=n[i])&&void 0!==a?a:0;return Math.abs(e-o)<=Math.abs(e-l)?r[i-1]:r[i]}}}function Wx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ux(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wx(Object(r),!0).forEach(function(t){Hx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Hx(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qx=[0,"auto"],Yx={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0,niceTicks:"auto"},Gx=(e,t)=>e.cartesianAxis.xAxis[t],Xx=(e,t)=>{var r=Gx(e,t);return null==r?Yx:r},Zx={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:qx,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,niceTicks:"auto",width:60},Jx=(e,t)=>e.cartesianAxis.yAxis[t],Qx=(e,t)=>{var r=Jx(e,t);return null==r?Zx:r},ew={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},tw=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return null==r?ew:r},rw=(e,t,r)=>{switch(t){case"xAxis":return Xx(e,r);case"yAxis":return Qx(e,r);case"zAxis":return tw(e,r);case"angleAxis":return Vv(e,r);case"radiusAxis":return Kv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},nw=(e,t,r)=>{switch(t){case"xAxis":return Xx(e,r);case"yAxis":return Qx(e,r);case"angleAxis":return Vv(e,r);case"radiusAxis":return Kv(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},aw=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function iw(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var ow=e=>e.graphicalItems.cartesianItems,lw=uo([Gv,Xv],iw),sw=(e,t,r)=>e.filter(r).filter(e=>!0===(null==t?void 0:t.includeHidden)||!e.hide),cw=uo([ow,rw,lw],sw,{memoizeOptions:{resultEqualityCheck:ty}}),uw=uo([cw],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(Qv)),dw=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),fw=uo([cw],dw),pw=e=>e.map(e=>e.data).filter(Boolean).flat(1),hw=uo([cw],e=>e.some(e=>!e.data)),vw=uo([cw],pw,{memoizeOptions:{resultEqualityCheck:ty}}),yw=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:a}=t;return e.length>0?e:r.slice(n,a+1)},mw=uo([vw,Mh],yw),gw=(e,t,r,n,a,i)=>{var{chartData:o=[],dataStartIndex:l,dataEndIndex:s}=n,c=((e,t,r)=>null!=(null==t?void 0:t.dataKey)?e.map(e=>({value:Tc(e,t.dataKey)})):r.length>0?r.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:Tc(e,t)}))):e.map(e=>({value:e})))(e,t,r);return a&&null!=(null==t?void 0:t.dataKey)&&i.length>0?[...o.slice(l,s+1).map(e=>({value:Tc(e,t.dataKey)})).filter(e=>null!=e.value),...c]:c},bw=uo([mw,rw,cw,Mh,hw,vw],gw);function xw(e){if(kn(e)||e instanceof Date){var t=Number(e);if(jc(t))return t}}function ww(e){if(Array.isArray(e)){var t=[xw(e[0]),xw(e[1])];return Lh(t)?t:void 0}var r=xw(e);if(null!=r)return[r,r]}function Ow(e){return e.map(xw).filter(zn)}function Ew(e,t){var r=xw(e),n=xw(t);return null==r&&null==n?0:null==r?-1:null==n?1:r-n}var Sw=uo([bw],e=>null==e?void 0:e.map(e=>e.value).sort(Ew));function Pw(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}var jw=e=>{var t=ry(e),r=ny(e);return nw(e,t,r)},kw=uo([jw],e=>null==e?void 0:e.dataKey),Aw=uo([uw,Mh,jw],Jv),Nw=(e,t,r,n)=>{var a=t.reduce((e,t)=>{if(null==t.stackId)return e;var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{});return Object.fromEntries(Object.entries(a).map(t=>{var[a,i]=t,o=n?[...i].reverse():i,l=o.map(Zv);return[a,{stackedData:zc(e,l,r),graphicalItems:o}]}))},_w=uo([Aw,uw,jv,kv],Nw),Tw=(e,t,r,n)=>{var{dataStartIndex:a,dataEndIndex:i}=t;if(null==n&&"zAxis"!==r){var o=Vc(e,a,i);if(null==o||0!==o[0]||0!==o[1])return o}},Iw=uo([rw],e=>e.allowDataOverflow),Mw=e=>{var t;if(null==e||!("domain"in e))return qx;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var r=Ow(e.ticks);return[Math.min(...r),Math.max(...r)]}if("category"===e.type)return e.ticks.map(String)}return null!==(t=null==e?void 0:e.domain)&&void 0!==t?t:qx},Dw=uo([rw],Mw),Cw=uo([Dw,Iw],Rh),zw=uo([_w,Th,Gv,Cw],Tw,{memoizeOptions:{resultEqualityCheck:ey}}),Lw=e=>e.errorBars,Bw=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);if(0!==n.length){var a=n.flat();return[Math.min(...a),Math.max(...a)]}},Rw=function(e,t,r,n,a){var i,o,l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];if(r.length>0&&r.forEach(e=>{var r,s=null!=e.data?[...e.data]:l,c=null===(r=n[e.id])||void 0===r?void 0:r.filter(e=>Pw(a,e));s.forEach(r=>{var n,a=Tc(r,null!==(n=t.dataKey)&&void 0!==n?n:e.dataKey),l=function(e,t,r){if(!r)return[];if(!r.length)return[];var n;if("number"!=typeof t||Sn(t)){if(Array.isArray(t)){var a=Ow(t);a.length>0&&(n=Math.max(...a))}}else n=t;return null==n?[]:Ow(r.flatMap(t=>{var r,a,i=Tc(e,t.dataKey);if(Array.isArray(i)?[r,a]=i:r=a=i,jc(r)&&jc(a))return[n-r,n+a]}))}(r,a,c);if(l.length>=2){var s=Math.min(...l),u=Math.max(...l);(null==i||s<i)&&(i=s),(null==o||u>o)&&(o=u)}var d=ww(a);null!=d&&(i=null==i?d[0]:Math.min(i,d[0]),o=null==o?d[1]:Math.max(o,d[1]))})}),null!=(null==t?void 0:t.dataKey)&&0===r.length&&e.forEach(e=>{var r=ww(Tc(e,t.dataKey));null!=r&&(i=null==i?r[0]:Math.min(i,r[0]),o=null==o?r[1]:Math.max(o,r[1]))}),jc(i)&&jc(o))return[i,o]},Vw=uo([mw,rw,fw,Lw,Gv,Ch],Rw,{memoizeOptions:{resultEqualityCheck:ey}});function Kw(e){var{value:t}=e;if(kn(t)||t instanceof Date)return t}var $w=e=>e.referenceElements.dots,Fw=(e,t,r)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===r:e.yAxisId===r),Ww=uo([$w,Gv,Xv],Fw),Uw=e=>e.referenceElements.areas,Hw=uo([Uw,Gv,Xv],Fw),qw=e=>e.referenceElements.lines,Yw=uo([qw,Gv,Xv],Fw),Gw=(e,t)=>{if(null!=e){var r=Ow(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Xw=uo(Ww,Gv,Gw),Zw=(e,t)=>{if(null!=e){var r=Ow(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Jw=uo([Hw,Gv],Zw);var Qw=(e,t)=>{if(null!=e){var r=e.flatMap(e=>"xAxis"===t?function(e){var t;if(null!=e.x)return Ow([e.x]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.x);return null==r||0===r.length?[]:Ow(r)}(e):function(e){var t;if(null!=e.y)return Ow([e.y]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.y);return null==r||0===r.length?[]:Ow(r)}(e));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},eO=uo([Yw,Gv],Qw),tO=uo(Xw,eO,Jw,(e,t,r)=>Bw(e,r,t)),rO=(e,t,r,n,a,i,o,l)=>null!=r?r:function(e,t,r){if(r||null!=t){if("function"==typeof e&&null!=t)try{var n=e(t,r);if(Lh(n))return Bh(n,t,r)}catch(e){}if(Array.isArray(e)&&2===e.length){var a,i,[o,l]=e;if("auto"===o)null!=t&&(a=Math.min(...t));else if(jn(o))a=o;else if("function"==typeof o)try{null!=t&&(a=o(null==t?void 0:t[0]))}catch(e){}else if("string"==typeof o&&Kc.test(o)){var s=Kc.exec(o);if(null==s||null==s[1]||null==t)a=void 0;else{var c=+s[1];a=t[0]-c}}else a=null==t?void 0:t[0];if("auto"===l)null!=t&&(i=Math.max(...t));else if(jn(l))i=l;else if("function"==typeof l)try{null!=t&&(i=l(null==t?void 0:t[1]))}catch(e){}else if("string"==typeof l&&$c.test(l)){var u=$c.exec(l);if(null==u||null==u[1]||null==t)i=void 0;else{var d=+u[1];i=t[1]+d}}else i=null==t?void 0:t[1];var f=[a,i];if(Lh(f))return null==t?f:Bh(f,t,r)}}}(t,"vertical"===o&&"xAxis"===l||"horizontal"===o&&"yAxis"===l?Bw(n,i,a):Bw(i,a),e.allowDataOverflow),nO=uo([rw,Dw,Cw,zw,Vw,tO,Uu,Gv],rO,{memoizeOptions:{resultEqualityCheck:ey}}),aO=[0,1],iO=(e,t,r,n,a,i,o)=>{if(null!=e&&null!=r&&0!==r.length||void 0!==o){var l,{dataKey:s,type:c}=e,u=Ic(t,i);return u&&null==s?_h(0,null!==(l=null==r?void 0:r.length)&&void 0!==l?l:0):"category"===c?((e,t,r)=>{var n=e.map(Kw).filter(e=>null!=e);return r&&(null==t.dataKey||t.allowDuplicatedCategory&&Tn(n))?_h(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))})(n,e,u):"expand"!==a||u?o:aO}},oO=uo([rw,Uu,mw,bw,jv,Gv,nO],iO),lO=uo([rw,aw,Av],$x),sO=(e,t,r)=>{var{niceTicks:n}=t;if("none"!==n){var a=Mw(t),i=Array.isArray(a)&&("auto"===a[0]||"auto"===a[1]);if(("snap125"===n||"adaptive"===n)&&null!=t&&t.tickCount&&Lh(e)){if(i)return Ov(e,t.tickCount,t.allowDecimals,n);if("number"===t.type)return Ev(e,t.tickCount,t.allowDecimals,n)}if("auto"===n&&"linear"===r&&null!=t&&t.tickCount){if(i&&Lh(e))return Ov(e,t.tickCount,t.allowDecimals,"adaptive");if("number"===t.type&&Lh(e))return Ev(e,t.tickCount,t.allowDecimals,"adaptive")}}},cO=uo([oO,nw,lO],sO),uO=(e,t,r,n)=>{if("angleAxis"!==n&&"number"===(null==e?void 0:e.type)&&Lh(t)&&Array.isArray(r)&&r.length>0){var a,i,o=t[0],l=null!==(a=r[0])&&void 0!==a?a:0,s=t[1],c=null!==(i=r[r.length-1])&&void 0!==i?i:0;return[Math.min(o,l),Math.max(s,c)]}return t},dO=uo([rw,oO,cO,Gv],uO),fO=uo(bw,rw,(e,t)=>{if(t&&"number"===t.type){var r=1/0,n=Array.from(Ow(e.map(e=>e.value))).sort((e,t)=>e-t),a=n[0],i=n[n.length-1];if(null==a||null==i)return 1/0;var o=i-a;if(0===o)return 1/0;for(var l=0;l<n.length-1;l++){var s=n[l],c=n[l+1];if(null!=s&&null!=c){var u=c-s;r=Math.min(r,u)}}return r/o}}),pO=uo(fO,Uu,Pv,lu,(e,t,r,n,a)=>a,(e,t,r,n,a)=>{if(!jc(e))return 0;var i="vertical"===t?n.height:n.width;if("gap"===a)return e*i/2;if("no-gap"===a){var o=_n(r,e*i),l=e*i/2;return l-o-(l-o)/i*o}return 0}),hO=uo(Xx,(e,t,r)=>{var n=Xx(e,t);return null==n||"string"!=typeof n.padding?0:pO(e,"xAxis",t,r,n.padding)},(e,t)=>{var r,n;if(null==e)return{left:0,right:0};var{padding:a}=e;return"string"==typeof a?{left:t,right:t}:{left:(null!==(r=a.left)&&void 0!==r?r:0)+t,right:(null!==(n=a.right)&&void 0!==n?n:0)+t}}),vO=uo(Qx,(e,t,r)=>{var n=Qx(e,t);return null==n||"string"!=typeof n.padding?0:pO(e,"yAxis",t,r,n.padding)},(e,t)=>{var r,n;if(null==e)return{top:0,bottom:0};var{padding:a}=e;return"string"==typeof a?{top:t,bottom:t}:{top:(null!==(r=a.top)&&void 0!==r?r:0)+t,bottom:(null!==(n=a.bottom)&&void 0!==n?n:0)+t}}),yO=uo([lu,hO,pu,fu,(e,t,r)=>r],(e,t,r,n,a)=>{var{padding:i}=n;return a?[i.left,r.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),mO=uo([lu,Uu,vO,pu,fu,(e,t,r)=>r],(e,t,r,n,a,i)=>{var{padding:o}=a;return i?[n.height-o.bottom,o.top]:"horizontal"===t?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),gO=(e,t,r,n)=>{var a;switch(t){case"xAxis":return yO(e,r,n);case"yAxis":return mO(e,r,n);case"zAxis":return null===(a=tw(e,r))||void 0===a?void 0:a.range;case"angleAxis":return Hv(e);case"radiusAxis":return qv(e,r);default:return}},bO=uo([rw,gO],Mv),xO=uo([lO,dO],(e,t)=>{if(null!=t){if("linear"===e){if(!Lh(t)){for(var r,n,a=0;a<t.length;a++){var i=t[a];jc(i)&&((void 0===r||i<r)&&(r=i),(void 0===n||i>n)&&(n=i))}return void 0!==r&&void 0!==n?[r,n]:void 0}return t}return t}}),wO=uo([rw,lO,xO,bO],Vx),OO=(e,t,r,n)=>{if(null!=r&&null!=r.dataKey){var{type:a,scale:i}=r;return!Ic(e,n)||"number"!==a&&"auto"===i?void 0:t.map(e=>e.value)}},EO=uo([Uu,bw,nw,Gv],OO),SO=uo([wO],ay);function PO(e,t){return e.id<t.id?-1:e.id>t.id?1:0}uo([wO],function(e){if(null!=e)return"invert"in e&&"function"==typeof e.invert?e.invert.bind(e):Fx(e,void 0)}),uo([wO,Sw],Fx),uo([cw,Lw,Gv],(e,t,r)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>Pw(r,e)));var jO=(e,t)=>t,kO=(e,t,r)=>r,AO=uo(Xc,jO,kO,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(PO)),NO=uo(Zc,jO,kO,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(PO)),_O=(e,t)=>({width:e.width,height:t.height}),TO=uo(lu,Xx,_O),IO=uo(qc,lu,AO,jO,kO,(e,t,r,n,a)=>{var i,o={};return r.forEach(r=>{var l=_O(t,r);null==i&&(i=((e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}})(t,n,e));var s="top"===n&&!a||"bottom"===n&&a;o[r.id]=i-Number(s)*l.height,i+=(s?-1:1)*l.height}),o}),MO=uo(Hc,lu,NO,jO,kO,(e,t,r,n,a)=>{var i,o={};return r.forEach(r=>{var l=((e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height}))(t,r);null==i&&(i=((e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}})(t,n,e));var s="left"===n&&!a||"right"===n&&a;o[r.id]=i-Number(s)*l.width,i+=(s?-1:1)*l.width}),o}),DO=uo([lu,Xx,(e,t)=>{var r=Xx(e,t);if(null!=r)return IO(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var a=null==r?void 0:r[n];return null==a?{x:e.left,y:0}:{x:e.left,y:a}}}),CO=uo([lu,Qx,(e,t)=>{var r=Qx(e,t);if(null!=r)return MO(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var a=null==r?void 0:r[n];return null==a?{x:0,y:e.top}:{x:a,y:e.top}}}),zO=uo(lu,Qx,(e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height})),LO=(e,t,r)=>{switch(t){case"xAxis":return TO(e,r).width;case"yAxis":return zO(e,r).height;default:return}},BO=(e,t,r,n)=>{if(null!=r){var{allowDuplicatedCategory:a,type:i,dataKey:o}=r,l=Ic(e,n),s=t.map(e=>e.value),c=s.filter(e=>null!=e);return o&&l&&"category"===i&&a&&Tn(c)?s:void 0}},RO=uo([Uu,bw,rw,Gv],BO),VO=uo([Uu,(e,t,r)=>{switch(t){case"xAxis":return Xx(e,r);case"yAxis":return Qx(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},lO,SO,RO,EO,gO,cO,Gv],(e,t,r,n,a,i,o,l,s)=>{if(null!=t){var c=Ic(e,s);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:s,categoricalDomain:i,duplicateDomain:a,isCategorical:c,niceTicks:l,range:o,realScaleType:r,scale:n}}}),KO=uo([Uu,nw,lO,SO,cO,gO,RO,EO,Gv],(e,t,r,n,a,i,o,l,s)=>{if(null!=t&&null!=n){var c=Ic(e,s),{type:u,ticks:d,tickCount:f}=t,p="scaleBand"===r&&"function"==typeof n.bandwidth?n.bandwidth()/2:2,h="category"===u&&n.bandwidth?n.bandwidth()/p:0;h="angleAxis"===s&&null!=i&&i.length>=2?2*En(i[0]-i[1])*h:h;var v=d||a;return v?v.map((e,t)=>{var r=o?o.indexOf(e):e,a=n.map(r);return jc(a)?{index:t,coordinate:a+h,value:e,offset:h}:null}).filter(zn):c&&l?l.map((e,t)=>{var r=n.map(e);return jc(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(zn):n.ticks?n.ticks(f).map((e,t)=>{var r=n.map(e);return jc(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(zn):n.domain().map((e,t)=>{var r=n.map(e);return jc(r)?{coordinate:r+h,value:o?o[e]:e,index:t,offset:h}:null}).filter(zn)}}),$O=uo([Uu,nw,SO,gO,RO,EO,Gv],(e,t,r,n,a,i,o)=>{if(null!=t&&null!=r&&null!=n&&n[0]!==n[1]){var l=Ic(e,o),{tickCount:s}=t,c=0;return c="angleAxis"===o&&(null==n?void 0:n.length)>=2?2*En(n[0]-n[1])*c:c,l&&i?i.map((e,t)=>{var n=r.map(e);return jc(n)?{coordinate:n+c,value:e,index:t,offset:c}:null}).filter(zn):r.ticks?r.ticks(s).map((e,t)=>{var n=r.map(e);return jc(n)?{coordinate:n+c,value:e,index:t,offset:c}:null}).filter(zn):r.domain().map((e,t)=>{var n=r.map(e);return jc(n)?{coordinate:n+c,value:a?a[e]:e,index:t,offset:c}:null}).filter(zn)}}),FO=uo(rw,SO,(e,t)=>{if(null!=e&&null!=t)return Ux(Ux({},e),{},{scale:t})}),WO=uo([rw,lO,oO,bO],Vx),UO=uo([WO],ay),HO=uo((e,t,r)=>tw(e,r),UO,(e,t)=>{if(null!=e&&null!=t)return Ux(Ux({},e),{},{scale:t})}),qO=uo([Uu,Xc,Zc],(e,t,r)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}});uo([(e,t,r)=>{var n;return null===(n=e.renderedTicks[t])||void 0===n?void 0:n[r]}],e=>{if(e&&0!==e.length)return t=>{var r,n=1/0,a=e[0];for(var i of e){var o=Math.abs(i.coordinate-t);o<n&&(n=o,a=i)}return null===(r=a)||void 0===r?void 0:r.value}});var YO=e=>e.options.defaultTooltipEventType,GO=e=>e.options.validateTooltipEventTypes;function XO(e,t,r){if(null==e)return t;var n=e?"axis":"item";return null==r?t:r.includes(n)?n:t}function ZO(e,t){return XO(t,YO(e),GO(e))}var JO=(e,t)=>{var r,n=Number(t);if(!Sn(n)&&null!=t)return n>=0?null==e||null===(r=e[n])||void 0===r?void 0:r.value:void 0},QO={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},eE=Rs({name:"tooltip",initialState:{itemInteraction:{click:QO,hover:QO},axisInteraction:{click:QO,hover:QO},keyboardInteraction:QO,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Ns()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,a=is(e).tooltipItemPayloads.indexOf(r);a>-1&&(e.tooltipItemPayloads[a]=n)},prepare:Ns()},removeTooltipEntrySettings:{reducer(e,t){var r=is(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Ns()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:tE,replaceTooltipEntrySettings:rE,removeTooltipEntrySettings:nE,setTooltipSettingsState:aE,setActiveMouseOverItemIndex:iE,mouseLeaveItem:oE,mouseLeaveChart:lE,setActiveClickItemIndex:sE,setMouseOverAxisIndex:cE,setMouseClickAxisIndex:uE,setSyncInteraction:dE,setKeyboardInteraction:fE}=eE.actions,pE=eE.reducer;function hE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hE(Object(r),!0).forEach(function(t){yE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function yE(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mE=(e,t,r,n)=>{if(null==t)return QO;var a=function(e,t,r){return"axis"===t?"click"===r?e.axisInteraction.click:e.axisInteraction.hover:"click"===r?e.itemInteraction.click:e.itemInteraction.hover}(e,t,r);if(null==a)return QO;if(a.active)return a;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;var i=!0===e.settings.active;if(null!=a.index){if(i)return vE(vE({},a),{},{active:!0})}else if(null!=n)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return vE(vE({},QO),{},{coordinate:a.coordinate})};function gE(e,t){var r=function(e){if("number"==typeof e)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}(e),n=t[0],a=t[1];if(void 0===r)return!1;var i=Math.min(n,a),o=Math.max(n,a);return r>=i&&r<=o}var bE=(e,t,r,n)=>{var a=null==e?void 0:e.index;if(null==a)return null;var i=Number(a);if(!jc(i))return a;var o=1/0;t.length>0&&(o=t.length-1);var l=Math.max(0,Math.min(i,o)),s=t[l];return null==s||function(e,t,r){if(null==r||null==t)return!0;var n=Tc(e,t);return null==n||!Lh(r)||gE(n,r)}(s,r,n)?String(l):null},xE=(e,t,r,n,a,i,o)=>{if(null!=i){var l=o[0],s=null==l?void 0:l.getPosition(i);if(null!=s)return s;var c=null==a?void 0:a[Number(i)];if(c)return"horizontal"===r?{x:c.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:c.coordinate}}},wE=(e,t,r,n)=>{if("axis"===t)return e.tooltipItemPayloads;if(0===e.tooltipItemPayloads.length)return[];var a;if(a="hover"===r?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId,e.syncInteraction.active&&null==a)return e.tooltipItemPayloads;if(null==a&&(null!=n||e.keyboardInteraction.active)){var i=e.tooltipItemPayloads[0];return null!=i?[i]:[]}return e.tooltipItemPayloads.filter(e=>{var t;return(null===(t=e.settings)||void 0===t?void 0:t.graphicalItemId)===a})},OE=e=>e.options.tooltipPayloadSearcher,EE=e=>e.tooltip;function SE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function PE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?SE(Object(r),!0).forEach(function(t){jE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function jE(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kE(e){if("string"==typeof e)return e}var AE=(e,t,r,n,a,i,o)=>{if(null!=t&&null!=i){var{chartData:l,computedData:s,dataStartIndex:c,dataEndIndex:u}=r;return e.reduce((e,r)=>{var d,f,p,{dataDefinedOnItem:h,settings:v}=r,y=function(e,t){return null!=e?e:t}(h,l),m=Array.isArray(y)?Pc(y,c,u):y,g=null!==(d=null==v?void 0:v.dataKey)&&void 0!==d?d:n,b=null==v?void 0:v.nameKey;(f=n&&Array.isArray(m)&&!Array.isArray(m[0])&&"axis"===o?Mn(m,n,a):i(m,t,s,b),Array.isArray(f))?f.forEach(t=>{var r,n,a=function(e){if(null!=e&&"object"==typeof e){var t,r="name"in e?function(e){if("string"==typeof e||"number"==typeof e)return e}(e.name):void 0,n="unit"in e?function(e){if("string"==typeof e||"number"==typeof e||"boolean"==typeof e)return e}(e.unit):void 0;return{name:r,unit:n,dataKey:"dataKey"in e?"string"==typeof(t=e.dataKey)||"number"==typeof t?t:"function"==typeof t?e=>t(e):void 0:void 0,payload:"payload"in e?e.payload:void 0,color:"color"in e?kE(e.color):void 0,fill:"fill"in e?kE(e.fill):void 0}}}(t),i=null==a?void 0:a.name,o=null==a?void 0:a.dataKey,l=null==a?void 0:a.payload,s=PE(PE({},v),{},{name:i,unit:null==a?void 0:a.unit,color:null!==(r=null==a?void 0:a.color)&&void 0!==r?r:null==v?void 0:v.color,fill:null!==(n=null==a?void 0:a.fill)&&void 0!==n?n:null==v?void 0:v.fill});e.push(Wc({tooltipEntrySettings:s,dataKey:o,payload:l,value:Tc(l,o),name:null==i?void 0:String(i)}))}):e.push(Wc({tooltipEntrySettings:v,dataKey:g,payload:f,value:Tc(f,g),name:null!==(p=Tc(f,b))&&void 0!==p?p:null==v?void 0:v.name}));return e},[])}},NE=uo([jw,aw,Av],$x),_E=uo([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),TE=uo([ry,ny],iw),IE=uo([_E,jw,TE],sw,{memoizeOptions:{resultEqualityCheck:ty}}),ME=uo([IE],e=>e.filter(Qv)),DE=uo([IE],pw,{memoizeOptions:{resultEqualityCheck:ty}}),CE=uo([IE],e=>e.some(e=>!e.data)),zE=uo([DE,Th],yw),LE=uo([ME,Th,jw],Jv),BE=uo([zE,jw,IE,Th,CE,DE],gw),RE=uo([jw],Mw),VE=uo([jw],e=>e.allowDataOverflow),KE=uo([RE,VE],Rh),$E=uo([IE],e=>e.filter(Qv)),FE=uo([LE,$E,jv,kv],Nw),WE=uo([FE,Th,ry,KE],Tw),UE=uo([IE],dw),HE=uo([zE,jw,UE,Lw,ry,zh],Rw,{memoizeOptions:{resultEqualityCheck:ey}}),qE=uo([$w,ry,ny],Fw),YE=uo([qE,ry],Gw),GE=uo([Uw,ry,ny],Fw),XE=uo([GE,ry],Zw),ZE=uo([qw,ry,ny],Fw),JE=uo([ZE,ry],Qw),QE=uo([YE,JE,XE],Bw),eS=uo([jw,RE,KE,WE,HE,QE,Uu,ry],rO),tS=uo([jw,Uu,zE,BE,jv,ry,eS],iO),rS=uo([tS,jw,NE],sO),nS=uo([jw,tS,rS,ry],uO),aS=e=>{var t=ry(e),r=ny(e);return gO(e,t,r,!1)},iS=uo([jw,aS],Mv),oS=uo([jw,NE,nS,iS],Vx),lS=uo([oS],ay),sS=uo([Uu,BE,jw,ry],BO),cS=uo([Uu,BE,jw,ry],OO),uS=uo([Uu,jw,NE,lS,aS,sS,cS,ry],(e,t,r,n,a,i,o,l)=>{if(t){var{type:s}=t,c=Ic(e,l);if(n){var u="scaleBand"===r&&n.bandwidth?n.bandwidth()/2:2,d="category"===s&&n.bandwidth?n.bandwidth()/u:0;return d="angleAxis"===l&&null!=a&&(null==a?void 0:a.length)>=2?2*En(a[0]-a[1])*d:d,c&&o?o.map((e,t)=>{var r=n.map(e);return jc(r)?{coordinate:r+d,value:e,index:t,offset:d}:null}).filter(zn):n.domain().map((e,t)=>{var r=n.map(e);return jc(r)?{coordinate:r+d,value:i?i[e]:e,index:t,offset:d}:null}).filter(zn)}}}),dS=uo([YO,GO,e=>e.tooltip.settings],(e,t,r)=>XO(r.shared,e,t)),fS=e=>e.tooltip.settings.trigger,pS=e=>e.tooltip.settings.defaultIndex,hS=uo([EE,dS,fS,pS],mE),vS=uo([hS,zE,kw,tS],bE),yS=uo([uS,vS],JO),mS=uo([hS],e=>{if(e)return e.dataKey}),gS=uo([hS],e=>{if(e)return e.graphicalItemId}),bS=uo([EE,dS,fS,pS],wE),xS=uo([Hc,qc,Uu,lu,uS,pS,bS],xE),wS=uo([hS,xS],(e,t)=>null!=e&&e.coordinate?e.coordinate:t),OS=uo([hS],e=>{var t;return null!==(t=null==e?void 0:e.active)&&void 0!==t&&t}),ES=uo([bS,vS,Th,kw,yS,OE,dS],AE),SS=uo([ES],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}});function PS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function jS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?PS(Object(r),!0).forEach(function(t){kS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var AS=()=>{var e=Ji(jw),t=Ji(uS),r=Ji(lS);return Fc(e&&r?jS(jS({},e),{},{scale:r}):void 0,t)};function NS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?NS(Object(r),!0).forEach(function(t){TS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function TS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var IS=(e,t,r,n,a)=>{var i,o=null!==(i=null==t?void 0:t.length)&&void 0!==i?i:0;if(o<=1||null==e)return 0;if("angleAxis"===n&&null!=a&&Math.abs(Math.abs(a[1]-a[0])-360)<=1e-6)for(var l=0;l<o;l++){var s,c,u,d,f,p=l>0?null===(s=r[l-1])||void 0===s?void 0:s.coordinate:null===(c=r[o-1])||void 0===c?void 0:c.coordinate,h=null===(u=r[l])||void 0===u?void 0:u.coordinate,v=l>=o-1?null===(d=r[0])||void 0===d?void 0:d.coordinate:null===(f=r[l+1])||void 0===f?void 0:f.coordinate,y=void 0;if(null!=p&&null!=h&&null!=v)if(En(h-p)!==En(v-h)){var m=[];if(En(v-h)===En(a[1]-a[0])){y=v;var g=h+a[1]-a[0];m[0]=Math.min(g,(g+p)/2),m[1]=Math.max(g,(g+p)/2)}else{y=p;var b=v+a[1]-a[0];m[0]=Math.min(h,(b+h)/2),m[1]=Math.max(h,(b+h)/2)}var x,w=[Math.min(h,(y+h)/2),Math.max(h,(y+h)/2)];if(e>w[0]&&e<=w[1]||e>=m[0]&&e<=m[1])return null===(x=r[l])||void 0===x?void 0:x.index}else{var O,E=Math.min(p,v),S=Math.max(p,v);if(e>(E+h)/2&&e<=(S+h)/2)return null===(O=r[l])||void 0===O?void 0:O.index}}else if(t)for(var P=0;P<o;P++){var j=t[P];if(null!=j){var k=t[P+1],A=t[P-1];if(0===P&&null!=k&&e<=(j.coordinate+k.coordinate)/2)return j.index;if(P===o-1&&null!=A&&e>(j.coordinate+A.coordinate)/2)return j.index;if(P>0&&P<o-1&&null!=A&&null!=k&&e>(j.coordinate+A.coordinate)/2&&e<=(j.coordinate+k.coordinate)/2)return j.index}}return-1},MS=()=>Ji(Av),DS=(e,t)=>t,CS=(e,t,r)=>r,zS=(e,t,r,n)=>n,LS=uo(uS,e=>zo(e,e=>e.coordinate)),BS=uo([EE,DS,CS,zS],mE),RS=uo([BS,zE,kw,tS],bE),VS=uo([EE,DS,CS,zS],wE),KS=uo([Hc,qc,Uu,lu,uS,zS,VS],xE),$S=uo([BS,KS],(e,t)=>{var r;return null!==(r=e.coordinate)&&void 0!==r?r:t}),FS=uo([uS,RS],JO),WS=uo([VS,RS,Th,kw,FS,OE,DS],AE),US=uo([BS,RS],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),HS=(e,t,r,n,a,i,o)=>{if(e&&n&&a&&i&&r){var l=ch(e,r);if(l){var s=((e,t)=>"centric"===t?e.angle:e.radius)(l,t),c=IS(s,o,i,n,a),u=((e,t,r,n)=>{var a=t.find(e=>e&&e.index===r);if(a){if("centric"===e){var i=a.coordinate,{radius:o}=n;return _S(_S(_S({},n),oh(n.cx,n.cy,o,i)),{},{angle:i,radius:o})}var l=a.coordinate,{angle:s}=n;return _S(_S(_S({},n),oh(n.cx,n.cy,l,s)),{},{angle:s,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}})(t,i,c,l);return{activeIndex:String(c),activeCoordinate:u}}}},qS=uo(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(null!=t){var n=e[t];if(null!=n)return r?n.panoramaElement:n.element}}),YS=uo(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(Iv));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:function(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}}});function GS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function XS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?GS(Object(r),!0).forEach(function(t){ZS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ZS(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var JS={zIndexMap:Object.values(Iv).reduce((e,t)=>XS(XS({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},QS=new Set(Object.values(Iv));var eP=Rs({name:"zIndex",initialState:JS,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Ns()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!function(e){return QS.has(e)}(r)&&delete e.zIndexMap[r])},prepare:Ns()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:a}=t.payload;e.zIndexMap[r]?a?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:a?void 0:n,panoramaElement:a?n:void 0}},prepare:Ns()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:Ns()}}}),{registerZIndexPortal:tP,unregisterZIndexPortal:rP,registerZIndexPortalElement:nP,unregisterZIndexPortalElement:aP}=eP.actions,iP=eP.reducer;function oP(e){var{zIndex:t,children:r}=e,n=void 0!==Hu()&&void 0!==t&&0!==t,a=du(),i=d(void 0),o=d(new Set),l=Yi(),s=Ji(e=>qS(e,t,a));if(h(()=>{if(!n){var e=o.current;return e.forEach(e=>{l(rP({zIndex:e}))}),e.clear(),void(i.current=void 0)}if(o.current.has(t)||(l(tP({zIndex:t})),o.current.add(t)),s){i.current=s;var r=o.current;r.forEach(e=>{e!==t&&(l(rP({zIndex:e})),r.delete(e))})}},[l,t,n,s]),h(()=>{var e=o.current;return()=>{e.forEach(e=>{l(rP({zIndex:e}))}),e.clear()}},[l]),!n)return r;var c=null!=s?s:i.current;return c?re(r,c):null}function lP(){return lP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lP.apply(null,arguments)}function sP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function cP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sP(Object(r),!0).forEach(function(t){uP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function uP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dP(e){var{cursor:t,cursorComp:r,cursorProps:n}=e;return a(t)?v(t,n):y(r,n)}function fP(e){var t,n,a,i,{coordinate:o,payload:l,index:s,offset:c,tooltipAxisBandSize:u,layout:d,cursor:f,tooltipEventType:p,chartName:h}=e,v=o,y=l,m=s;if(!f||!v||"ScatterChart"!==h&&"axis"!==p)return null;if("ScatterChart"===h)n=v,a=Zf,i=Iv.cursorLine;else if("BarChart"===h)n=function(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-a:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-a,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}(d,v,c,u),a=qp,i=Iv.cursorRectangle;else if("radial"===d&&Hn(v)){var{cx:g,cy:b,radius:x,startAngle:w,endAngle:O}=uh(v);n={cx:g,cy:b,startAngle:w,endAngle:O,innerRadius:x,outerRadius:x},a=yh,i=Iv.cursorLine}else n={points:mh(d,v,c)},a=Uf,i=Iv.cursorLine;var E="object"==typeof f&&"className"in f?f.className:void 0,P=cP(cP(cP(cP({stroke:"#ccc",pointerEvents:"none"},c),n),Bt(f)),{},{payload:y,payloadIndex:m,className:S("recharts-tooltip-cursor",E)});return r.createElement(oP,{zIndex:null!==(t=e.zIndex)&&void 0!==t?t:i},r.createElement(dP,{cursor:f,cursorComp:a,cursorProps:P}))}function pP(e){var t=AS(),n=$u(),a=Hu(),i=MS();return null==t||null==n||null==a||null==i?null:r.createElement(fP,lP({},e,{offset:n,layout:a,tooltipAxisBandSize:t,chartName:i}))}var hP,vP=o(null),yP={exports:{}};var mP=(hP||(hP=1,function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function a(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new a(n,i||e,o),s=r?r+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],l]:e._events[s].push(l):(e._events[s]=l,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,a=[];if(0===this._eventsCount)return a;for(n in e=this._events)t.call(e,n)&&a.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,o=new Array(i);a<i;a++)o[a]=n[a].fn;return o},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,a,i,o){var l=r?r+e:e;if(!this._events[l])return!1;var s,c,u=this._events[l],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,a),!0;case 5:return u.fn.call(u.context,t,n,a,i),!0;case 6:return u.fn.call(u.context,t,n,a,i,o),!0}for(c=1,s=new Array(d-1);c<d;c++)s[c-1]=arguments[c];u.fn.apply(u.context,s)}else{var f,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,a);break;default:if(!s)for(f=1,s=new Array(d-1);f<d;f++)s[f-1]=arguments[f];u[c].fn.apply(u[c].context,s)}}return!0},l.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,n,a){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return o(this,i),this;var l=this._events[i];if(l.fn)l.fn!==t||a&&!l.once||n&&l.context!==n||o(this,i);else{for(var s=0,c=[],u=l.length;s<u;s++)(l[s].fn!==t||a&&!l[s].once||n&&l[s].context!==n)&&c.push(l[s]);c.length?this._events[i]=1===c.length?c[0]:c:o(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l}(yP)),yP.exports),gP=new(Zr(mP)),bP="recharts.syncEvent.tooltip",xP="recharts.syncEvent.brush",wP=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!Sn(r))return e[r]}},OP=Rs({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),EP=OP.reducer,{createEventEmitter:SP}=OP.actions;function PP(e){return e.tooltip.syncInteraction}var jP=Rs({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=t.payload,null==t.payload)return e.dataStartIndex=0,void(e.dataEndIndex=0);t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;null!=r&&(e.dataStartIndex=r),null!=n&&(e.dataEndIndex=n)}}}),{setChartData:kP,setDataStartEndIndexes:AP,setComputedData:NP}=jP.actions,_P=jP.reducer,TP=["x","y"];function IP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function MP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?IP(Object(r),!0).forEach(function(t){DP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function DP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CP(){var e=Ji(Nv),t=Ji(Tv),r=Yi(),n=Ji(_v),a=Ji(uS),i=Hu(),o=Vu(),l=Ji(e=>e.rootProps.className);p(()=>{if(null==e)return Ln;var l=(l,s,c)=>{var u;if(t!==c&&e===l)if(!1!==s.payload.active)if("index"!==n){if(null!=a){var d;if("function"==typeof n){var f={activeTooltipIndex:null==s.payload.index?void 0:Number(s.payload.index),isTooltipActive:s.payload.active,activeIndex:null==s.payload.index?void 0:Number(s.payload.index),activeLabel:s.payload.label,activeDataKey:s.payload.dataKey,activeCoordinate:s.payload.coordinate},p=n(a,f);d=a[p]}else"value"===n&&(d=a.find(e=>String(e.value)===s.payload.label));var{coordinate:h}=s.payload;if(null!=h&&null!=o)if(null!=d){var{x:v,y:y}=h,m=Math.min(v,o.x+o.width),g=Math.min(y,o.y+o.height),b={x:"horizontal"===i?d.coordinate:m,y:"horizontal"===i?g:d.coordinate},x=dE({active:s.payload.active,coordinate:b,dataKey:s.payload.dataKey,index:String(d.index),label:s.payload.label,sourceViewBox:s.payload.sourceViewBox,graphicalItemId:s.payload.graphicalItemId});r(x)}else r(dE({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:s.payload.sourceViewBox,graphicalItemId:void 0}));else r(dE({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))}}else if(o&&null!=s&&null!==(u=s.payload)&&void 0!==u&&u.coordinate&&s.payload.sourceViewBox){var w=s.payload.coordinate,{x:O,y:E}=w,S=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(w,TP),{x:P,y:j,width:k,height:A}=s.payload.sourceViewBox,N=MP(MP({},S),{},{x:o.x+(k?(O-P)/k:0)*o.width,y:o.y+(A?(E-j)/A:0)*o.height});r(MP(MP({},s),{},{payload:MP(MP({},s.payload),{},{coordinate:N})}))}else r(s);else r(dE({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))};return gP.on(bP,l),()=>{gP.off(bP,l)}},[l,r,t,e,n,a,i,o])}function zP(){var e=Yi();p(()=>{e(SP())},[e]),CP(),function(){var e=Ji(Nv),t=Ji(Tv),r=Yi();p(()=>{if(null==e)return Ln;var n=(n,a,i)=>{t!==i&&e===n&&r(AP(a))};return gP.on(xP,n),()=>{gP.off(xP,n)}},[r,t,e])}()}function LP(e,t,r,n,a,i){var o=Ji(r=>((e,t,r)=>{if(null!=t){var n=EE(e);return"axis"===t?"hover"===r?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:"hover"===r?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}})(r,e,t)),l=Ji(gS),s=Ji(Tv),c=Ji(Nv),u=Ji(_v),d=Ji(PP),f=null!=(null==d?void 0:d.sourceViewBox),h=Vu();p(()=>{if(!f&&null!=c&&null!=s){var e=dE({active:i,coordinate:r,dataKey:o,index:a,label:"number"==typeof n?String(n):n,sourceViewBox:h,graphicalItemId:l});gP.emit(bP,c,e,s)}},[f,r,o,l,a,n,s,c,u,i,h])}function BP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function RP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?BP(Object(r),!0).forEach(function(t){VP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function VP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KP(e){return e.dataKey}var $P=[],FP={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function WP(e){var t,n,a=Zn(e,FP),{active:i,allowEscapeViewBox:o,animationDuration:s,animationEasing:d,content:f,filterNull:h,isAnimationActive:v,offset:y,payloadUniqBy:m,position:g,reverseDirection:b,useTranslate3d:x,wrapperStyle:w,cursor:O,shared:E,trigger:S,defaultIndex:P,portal:j,axisId:k}=a,A=Yi(),N="number"==typeof P?String(P):P;p(()=>{A(aE({shared:E,trigger:S,axisId:k,active:i,defaultIndex:N}))},[A,E,S,k,i,N]);var _=Vu(),T=Mf(),I=function(e){return Ji(t=>ZO(t,e))}(E),{activeIndex:M,isActive:D}=null!==(t=Ji(e=>US(e,I,S,N)))&&void 0!==t?t:{},C=Ji(e=>WS(e,I,S,N)),z=Ji(e=>FS(e,I,S,N)),L=Ji(e=>$S(e,I,S,N)),B=C,R=l(vP),V=null!==(n=null!=i?i:D)&&void 0!==n&&n,[K,$]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,r]=c({height:0,left:0,top:0,width:0}),n=u(e=>{if(null!=e){var n=e.getBoundingClientRect(),a={height:n.height,left:n.left,top:n.top,width:n.width};(Math.abs(a.height-t.height)>1||Math.abs(a.left-t.left)>1||Math.abs(a.top-t.top)>1||Math.abs(a.width-t.width)>1)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}([B,V]),F="axis"===I?z:void 0;LP(I,S,L,F,M,V);var W=null!=j?j:R;if(null==W||null==_||null==I)return null;var U=null!=B?B:$P;V||(U=$P),h&&U.length&&(U=function(e,t,r){return!0===t?Ti(e,r):"function"==typeof t?Ti(e,t):e}(U.filter(e=>null!=e.value&&(!0!==e.hide||a.includeHidden)),m,KP));var H=U.length>0,q=RP(RP({},a),{},{payload:U,label:F,active:V,activeIndex:M,coordinate:L,accessibilityLayer:T}),Y=r.createElement(If,{allowEscapeViewBox:o,animationDuration:s,animationEasing:d,isAnimationActive:v,active:V,coordinate:L,hasPayload:H,offset:y,position:g,reverseDirection:b,useTranslate3d:x,viewBox:_,wrapperStyle:w,lastBoundingBox:K,innerRef:$,hasPortalFromProps:Boolean(j)},function(e,t){return r.isValidElement(e)?r.cloneElement(e,t):"function"==typeof e?r.createElement(e,t):r.createElement(xf,t)}(f,q));return r.createElement(r.Fragment,null,re(Y,W),V&&r.createElement(pP,{cursor:O,tooltipEventType:I,coordinate:L,payload:U,index:M}))}var UP=e=>null;function HP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}UP.displayName="Cell";function qP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function YP(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var GP=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qP(Object(r),!0).forEach(function(t){YP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{cacheSize:2e3,enableCache:!0}),XP=new class{constructor(e){HP(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;null!=r&&this.cache.delete(r)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}(GP.cacheSize),ZP={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},JP="recharts_measurement_span";var QP=(e,t)=>{try{var r=document.getElementById(JP);r||((r=document.createElement("span")).setAttribute("id",JP),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,ZP,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch(e){return{width:0,height:0}}},ej=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Pf)return{width:0,height:0};if(!GP.enableCache)return QP(e,t);var r=function(e,t){var r=t.fontSize||"",n=t.fontFamily||"",a=t.fontWeight||"",i=t.fontStyle||"",o=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(a,"|").concat(i,"|").concat(o,"|").concat(l)}(e,t),n=XP.get(r);if(n)return n;var a=QP(e,t);return XP.set(r,a),a};var tj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,nj=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,aj=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,ij={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},oj=["cm","mm","pt","pc","in","Q","px"];var lj,sj,cj,uj="NaN";class dj{static parse(e){var t,[,r,n]=null!==(t=aj.exec(e))&&void 0!==t?t:[];return null==r?dj.NaN:new dj(parseFloat(r),null!=n?n:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,Sn(e)&&(this.unit=""),""===t||nj.test(t)||(this.num=NaN,this.unit=""),function(e){return oj.includes(e)}(t)&&(this.num=function(e,t){return e*ij[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new dj(NaN,""):new dj(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new dj(NaN,""):new dj(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new dj(NaN,""):new dj(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new dj(NaN,""):new dj(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Sn(this.num)}}function fj(e){if(null==e||e.includes(uj))return uj;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,a,i]=null!==(r=tj.exec(t))&&void 0!==r?r:[],o=dj.parse(null!=n?n:""),l=dj.parse(null!=i?i:""),s="*"===a?o.multiply(l):o.divide(l);if(s.isNaN())return uj;t=t.replace(tj,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,f]=null!==(c=rj.exec(t))&&void 0!==c?c:[],p=dj.parse(null!=u?u:""),h=dj.parse(null!=f?f:""),v="+"===d?p.add(h):p.subtract(h);if(v.isNaN())return uj;t=t.replace(rj,v.toString())}return t}lj=dj,sj="NaN",cj=new dj(NaN,""),(sj=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(sj))in lj?Object.defineProperty(lj,sj,{value:cj,enumerable:!0,configurable:!0,writable:!0}):lj[sj]=cj;var pj=/\(([^()]*)\)/;function hj(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,r=e;null!=(t=pj.exec(r));){var[,n]=t;r=r.replace(pj,fj(n))}return r}(t),t=fj(t)}function vj(e){var t=function(e){try{return hj(e)}catch(e){return uj}}(e.slice(5,-1));return t===uj?"":t}var yj=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],mj=["dx","dy","angle","className","breakAll"];function gj(){return gj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gj.apply(null,arguments)}function bj(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var xj=/[ \f\n\r\t\v\u2028\u2029]+/,wj=e=>{var{children:t,breakAll:r,style:n}=e;try{var a=[];return Dn(t)||(a=r?t.toString().split(""):t.toString().split(xj)),{wordsWithComputedWidth:a.map(e=>({word:e,width:ej(e,n).width})),spaceWidth:r?0:ej(" ",n).width}}catch(e){return null}};function Oj(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}var Ej=(e,t,r,n)=>e.reduce((e,a)=>{var{word:i,width:o}=a,l=e[e.length-1];if(l&&null!=o&&(null==t||n||l.width+o+r<Number(t)))l.words.push(i),l.width+=o+r;else{var s={words:[i],width:o};e.push(s)}return e},[]),Sj=e=>e.reduce((e,t)=>e.width>t.width?e:t),Pj=(e,t,r,n,a,i,o,l)=>{var s=e.slice(0,t),c=wj({breakAll:r,style:n,children:s+"…"});if(!c)return[!1,[]];var u=Ej(c.wordsWithComputedWidth,i,o,l);return[u.length>a||Sj(u).width>Number(i),u]},jj=e=>[{words:Dn(e)?[]:e.toString().split(xj),width:void 0}],kj=e=>{var{width:t,scaleToFit:r,children:n,style:a,breakAll:i,maxLines:o}=e;if((t||r)&&!Pf){var l=wj({breakAll:i,children:n,style:a});if(!l)return jj(n);var{wordsWithComputedWidth:s,spaceWidth:c}=l;return((e,t,r,n,a)=>{var{maxLines:i,children:o,style:l,breakAll:s}=e,c=jn(i),u=String(o),d=Ej(t,n,r,a);if(!c||a)return d;if(!(d.length>i||Sj(d).width>Number(n)))return d;for(var f,p=0,h=u.length-1,v=0;p<=h&&v<=u.length-1;){var y=Math.floor((p+h)/2),m=y-1,[g,b]=Pj(u,m,s,l,i,n,r,a),[x]=Pj(u,y,s,l,i,n,r,a);if(g||x||(p=y+1),g&&x&&(h=y-1),!g&&x){f=b;break}v++}return f||d})({breakAll:i,children:n,maxLines:o,style:a},s,c,t,Boolean(r))}return jj(n)},Aj="#808080",Nj={angle:0,breakAll:!1,capHeight:"0.71em",fill:Aj,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},_j=i((e,t)=>{var n=Zn(e,Nj),{x:a,y:i,lineHeight:o,capHeight:l,fill:c,scaleToFit:u,textAnchor:d,verticalAnchor:f}=n,p=bj(n,yj),h=s(()=>kj({breakAll:p.breakAll,children:p.children,maxLines:p.maxLines,scaleToFit:u,style:p.style,width:p.width}),[p.breakAll,p.children,p.maxLines,u,p.style,p.width]),{dx:v,dy:y,angle:m,className:g,breakAll:b}=p,x=bj(p,mj);if(!kn(a)||!kn(i)||0===h.length)return null;var w,O=Number(a)+(jn(v)?v:0),E=Number(i)+(jn(y)?y:0);if(!jc(O)||!jc(E))return null;switch(f){case"start":w=vj("calc(".concat(l,")"));break;case"middle":w=vj("calc(".concat((h.length-1)/2," * -").concat(o," + (").concat(l," / 2))"));break;default:w=vj("calc(".concat(h.length-1," * -").concat(o,")"))}var P=[],j=h[0];if(u&&null!=j){var k=j.width,{width:A}=p;P.push("scale(".concat(jn(A)&&jn(k)?A/k:1,")"))}return m&&P.push("rotate(".concat(m,", ").concat(O,", ").concat(E,")")),P.length&&(x.transform=P.join(" ")),r.createElement("text",gj({},Rt(x),{ref:t,x:O,y:E,className:S("recharts-text",g),textAnchor:d,fill:c.includes("url")?Aj:c}),h.map((e,t)=>{var n=e.words.join(b?"":" ");return r.createElement("tspan",{x:O,dy:0===t?w:o,key:"".concat(n,"-").concat(t)},n)}))});function Tj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ij(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tj(Object(r),!0).forEach(function(t){Mj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Mj(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}_j.displayName="Text";var Dj=["labelRef"],Cj=["content"];function zj(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Lj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Bj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lj(Object(r),!0).forEach(function(t){Rj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Rj(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vj(){return Vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vj.apply(null,arguments)}var Kj=o(null),$j=e=>{var{x:t,y:n,upperWidth:a,lowerWidth:i,width:o,height:l,children:c}=e,u=s(()=>({x:t,y:n,upperWidth:a,lowerWidth:i,width:o,height:l}),[t,n,a,i,o,l]);return r.createElement(Kj.Provider,{value:u},c)},Fj=()=>{var e=l(Kj),t=Vu();return e||(t?Ru(t):void 0)},Wj=o(null),Uj=e=>null!=e&&"function"==typeof e,Hj=(e,t,n,a,i)=>{var o,l,{offset:s,className:c}=e,{cx:u,cy:d,innerRadius:f,outerRadius:p,startAngle:h,endAngle:v,clockWise:y}=i,m=(f+p)/2,g=((e,t)=>En(t-e)*Math.min(Math.abs(t-e),360))(h,v),b=g>=0?1:-1;switch(t){case"insideStart":o=h+b*s,l=y;break;case"insideEnd":o=v-b*s,l=!y;break;case"end":o=v+b*s,l=y;break;default:throw new Error("Unsupported position ".concat(t))}l=g<=0?l:!l;var x=oh(u,d,m,o),w=oh(u,d,m,o+359*(l?1:-1)),O="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(l?0:1,",\n ").concat(w.x,",").concat(w.y),E=Dn(e.id)?Nn("recharts-radial-line-"):e.id;return r.createElement("text",Vj({},a,{dominantBaseline:"central",className:S("recharts-radial-bar-label",c)}),r.createElement("defs",null,r.createElement("path",{id:E,d:O})),r.createElement("textPath",{xlinkHref:"#".concat(E)},n))},qj=e=>null!=e&&"cx"in e&&jn(e.cx),Yj={angle:0,offset:5,zIndex:Iv.label,position:"middle",textBreakAll:!1};function Gj(e){var t,n,i,o,s,c=Zn(e,Yj),{viewBox:u,parentViewBox:d,position:f,value:p,children:h,content:m,className:g="",textBreakAll:b,labelRef:x}=c,w=(t=l(Wj),n=Ji(Yv),t||n),O=Fj(),E=function(e){if(!qj(e))return e;var{cx:t,cy:r,outerRadius:n}=e,a=2*n;return{x:t-n,y:r-n,width:a,upperWidth:a,lowerWidth:a,height:a}}(i=null==u?"center"===f?O:null!=w?w:O:qj(u)?u:Ru(u));if(!i||Dn(p)&&Dn(h)&&!a(m)&&"function"!=typeof m)return null;var P=Bj(Bj({},c),{},{viewBox:i});if(a(m)){var{labelRef:j}=P,k=zj(P,Dj);return v(m,k)}if("function"==typeof m){var{content:A}=P,N=zj(P,Cj);if(a(o=y(m,N)))return o}else o=(e=>{var{value:t,formatter:r}=e,n=Dn(e.children)?t:e.children;return"function"==typeof r?r(n):n})(c);var _=Rt(c);if(qj(i)){if("insideStart"===f||"insideEnd"===f||"end"===f)return Hj(c,f,o,_,i);s=((e,t,r)=>{var{cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:l,endAngle:s}=e,c=(l+s)/2;if("outside"===r){var{x:u,y:d}=oh(n,a,o+t,c);return{x:u,y:d,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:n,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:n,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:n,y:a,textAnchor:"middle",verticalAnchor:"end"};var f=(i+o)/2,{x:p,y:h}=oh(n,a,f,c);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}})(i,c.offset,c.position)}else{if(!E)return null;var T=(e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:a}=e,{x:i,y:o,height:l,upperWidth:s,lowerWidth:c}=Ru(t),u=i,d=i+(s-c)/2,f=(u+d)/2,p=(s+c)/2,h=u+s/2,v=l>=0?1:-1,y=v*n,m=v>0?"end":"start",g=v>0?"start":"end",b=s>=0?1:-1,x=b*n,w=b>0?"end":"start",O=b>0?"start":"end",E=a;if("top"===r){var S={x:u+s/2,y:o-y,horizontalAnchor:"middle",verticalAnchor:m};return E&&(S.height=Math.max(o-E.y,0),S.width=s),S}if("bottom"===r){var P={x:d+c/2,y:o+l+y,horizontalAnchor:"middle",verticalAnchor:g};return E&&(P.height=Math.max(E.y+E.height-(o+l),0),P.width=c),P}if("left"===r){var j={x:f-x,y:o+l/2,horizontalAnchor:w,verticalAnchor:"middle"};return E&&(j.width=Math.max(j.x-E.x,0),j.height=l),j}if("right"===r){var k={x:f+p+x,y:o+l/2,horizontalAnchor:O,verticalAnchor:"middle"};return E&&(k.width=Math.max(E.x+E.width-k.x,0),k.height=l),k}var A=E?{width:p,height:l}:{};return"insideLeft"===r?Ij({x:f+x,y:o+l/2,horizontalAnchor:O,verticalAnchor:"middle"},A):"insideRight"===r?Ij({x:f+p-x,y:o+l/2,horizontalAnchor:w,verticalAnchor:"middle"},A):"insideTop"===r?Ij({x:u+s/2,y:o+y,horizontalAnchor:"middle",verticalAnchor:g},A):"insideBottom"===r?Ij({x:d+c/2,y:o+l-y,horizontalAnchor:"middle",verticalAnchor:m},A):"insideTopLeft"===r?Ij({x:u+x,y:o+y,horizontalAnchor:O,verticalAnchor:g},A):"insideTopRight"===r?Ij({x:u+s-x,y:o+y,horizontalAnchor:w,verticalAnchor:g},A):"insideBottomLeft"===r?Ij({x:d+x,y:o+l-y,horizontalAnchor:O,verticalAnchor:m},A):"insideBottomRight"===r?Ij({x:d+c-x,y:o+l-y,horizontalAnchor:w,verticalAnchor:m},A):r&&"object"==typeof r&&(jn(r.x)||Pn(r.x))&&(jn(r.y)||Pn(r.y))?Ij({x:i+_n(r.x,p),y:o+_n(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},A):Ij({x:h,y:o+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},A)})({viewBox:E,position:f,offset:c.offset,parentViewBox:qj(d)?void 0:d});s=Bj(Bj({x:T.x,y:T.y,textAnchor:T.horizontalAnchor,verticalAnchor:T.verticalAnchor},void 0!==T.width?{width:T.width}:{}),void 0!==T.height?{height:T.height}:{})}return r.createElement(oP,{zIndex:c.zIndex},r.createElement(_j,Vj({ref:x,className:S("recharts-label",g)},_,s,{textAnchor:Oj(_.textAnchor)?_.textAnchor:s.textAnchor,breakAll:b}),o))}Gj.displayName="Label";function Xj(e){var{label:t,labelRef:n}=e;return((e,t,n)=>{if(!e)return null;var i={viewBox:t,labelRef:n};return!0===e?r.createElement(Gj,Vj({key:"label-implicit"},i)):kn(e)?r.createElement(Gj,Vj({key:"label-implicit",value:e},i)):a(e)?e.type===Gj?v(e,Bj({key:"label-implicit"},i)):r.createElement(Gj,Vj({key:"label-implicit",content:e},i)):Uj(e)?r.createElement(Gj,Vj({key:"label-implicit",content:e},i)):e&&"object"==typeof e?r.createElement(Gj,Vj({},e,{key:"label-implicit"},i)):null})(t,Fj(),n)||null}var Zj=["valueAccessor"],Jj=["dataKey","clockWise","id","textBreakAll","zIndex"];function Qj(){return Qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qj.apply(null,arguments)}function ek(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var tk=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(function(e){return Dn(e)||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}(t))return t},rk=o(void 0),nk=rk.Provider,ak=o(void 0);function ik(e){var{valueAccessor:t=tk}=e,n=ek(e,Zj),{dataKey:a,clockWise:i,id:o,textBreakAll:s,zIndex:c}=n,u=ek(n,Jj),d=l(rk),f=l(ak),p=d||f;return p&&p.length?r.createElement(oP,{zIndex:null!=c?c:Iv.label},r.createElement(Ut,{className:"recharts-label-list"},p.map((e,i)=>{var l,c=Dn(a)?t(e,i):Tc(e.payload,a),d=Dn(o)?{}:{id:"".concat(o,"-").concat(i)};return r.createElement(Gj,Qj({key:"label-".concat(i)},Rt(e),u,d,{fill:null!==(l=n.fill)&&void 0!==l?l:e.fill,parentViewBox:e.parentViewBox,value:c,textBreakAll:s,viewBox:e.viewBox,index:i,zIndex:0}))}))):null}function ok(e){var{label:t}=e;return t?!0===t?r.createElement(ik,{key:"labelList-implicit"}):r.isValidElement(t)||Uj(t)?r.createElement(ik,{key:"labelList-implicit",content:t}):"object"==typeof t?r.createElement(ik,Qj({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function lk(){return lk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lk.apply(null,arguments)}ak.Provider,ik.displayName="LabelList";var sk=e=>{var{cx:t,cy:n,r:a,className:i}=e,o=S("recharts-dot",i);return jn(t)&&jn(n)&&jn(a)?r.createElement("circle",lk({},Lt(e),qn(e),{className:o,cx:t,cy:n,r:a})):null},ck=Rs({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:uk,removeRadiusAxis:dk,addAngleAxis:fk,removeAngleAxis:pk}=ck.actions,hk=ck.reducer;var vk,yk={exports:{}},mk={};function gk(){if(vk)return mk;vk=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function h(p){if("object"==typeof p&&null!==p){var h=p.$$typeof;switch(h){case e:switch(p=p.type){case r:case a:case n:case s:case c:case f:return p;default:switch(p=p&&p.$$typeof){case o:case l:case d:case u:case i:return p;default:return h}}case t:return h}}}return mk.ContextConsumer=i,mk.ContextProvider=o,mk.Element=e,mk.ForwardRef=l,mk.Fragment=r,mk.Lazy=d,mk.Memo=u,mk.Portal=t,mk.Profiler=a,mk.StrictMode=n,mk.Suspense=s,mk.SuspenseList=c,mk.isContextConsumer=function(e){return h(e)===i},mk.isContextProvider=function(e){return h(e)===o},mk.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},mk.isForwardRef=function(e){return h(e)===l},mk.isFragment=function(e){return h(e)===r},mk.isLazy=function(e){return h(e)===d},mk.isMemo=function(e){return h(e)===u},mk.isPortal=function(e){return h(e)===t},mk.isProfiler=function(e){return h(e)===a},mk.isStrictMode=function(e){return h(e)===n},mk.isSuspense=function(e){return h(e)===s},mk.isSuspenseList=function(e){return h(e)===c},mk.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===a||e===n||e===s||e===c||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===o||e.$$typeof===i||e.$$typeof===l||e.$$typeof===p||void 0!==e.getModuleId)},mk.typeOf=h,mk}var bk,xk,wk={};
38
38
  /**
39
39
  * @license React
40
40
  * react-is.development.js
@@ -43,5 +43,5 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as r from"react";import
43
43
  *
44
44
  * This source code is licensed under the MIT license found in the
45
45
  * LICENSE file in the root directory of this source tree.
46
- */function Wj(){return Kj||(Kj=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case a:case i:case c:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case f:case d:case o:return e;default:return h}}case r:return h}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");Fj.ContextConsumer=o,Fj.ContextProvider=l,Fj.Element=t,Fj.ForwardRef=s,Fj.Fragment=n,Fj.Lazy=f,Fj.Memo=d,Fj.Portal=r,Fj.Profiler=a,Fj.StrictMode=i,Fj.Suspense=c,Fj.SuspenseList=u,Fj.isContextConsumer=function(t){return e(t)===o},Fj.isContextProvider=function(t){return e(t)===l},Fj.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Fj.isForwardRef=function(t){return e(t)===s},Fj.isFragment=function(t){return e(t)===n},Fj.isLazy=function(t){return e(t)===f},Fj.isMemo=function(t){return e(t)===d},Fj.isPortal=function(t){return e(t)===r},Fj.isProfiler=function(t){return e(t)===a},Fj.isStrictMode=function(t){return e(t)===i},Fj.isSuspense=function(t){return e(t)===c},Fj.isSuspenseList=function(t){return e(t)===u},Fj.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===a||e===i||e===c||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===l||e.$$typeof===o||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},Fj.typeOf=e}()),Fj}function Uj(){return $j||($j=1,"production"===process.env.NODE_ENV?Bj.exports=Vj():Bj.exports=Wj()),Bj.exports}var Hj=Uj(),qj=e=>"string"==typeof e?e:e?e.displayName||e.name||"Component":"",Yj=null,Gj=null,Xj=e=>{if(e===Yj&&Array.isArray(Gj))return Gj;var t=[];return m.forEach(e,e=>{tn(e)||(Hj.isFragment(e)?t=t.concat(Xj(e.props.children)):t.push(e))}),Gj=t,Yj=e,t};function Zj(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map(e=>qj(e)):[qj(t)],Xj(e).forEach(e=>{var t=Kr(e,"type.displayName")||Kr(e,"type.name");t&&-1!==n.indexOf(t)&&r.push(e)}),r}var Jj,Qj,eA,tA=e=>!e||"object"!=typeof e||!("clipDot"in e)||Boolean(e.clipDot),rA={};function nA(){return Jj||(Jj=1,e=rA,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isPlainObject=function(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];return null!=t&&(!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`)}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}),rA;var e}function iA(){return eA?Qj:(eA=1,Qj=nA().isPlainObject)}var aA,oA,lA,sA,cA,uA=br(iA());function dA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dA(Object(r),!0).forEach(function(t){pA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function pA(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hA(){return hA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hA.apply(null,arguments)}function vA(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var yA=(e,t,r,n,i)=>{var a,o=r-n;return a=Fr(aA||(aA=vA(["M ",",",""])),e,t),a+=Fr(oA||(oA=vA(["L ",",",""])),e+r,t),a+=Fr(lA||(lA=vA(["L ",",",""])),e+r-o/2,t+i),a+=Fr(sA||(sA=vA(["L ",",",""])),e+r-o/2-n,t+i),a+=Fr(cA||(cA=vA(["L ",","," Z"])),e,t)},mA={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gA=e=>{var t=bn(e,mA),{x:n,y:i,upperWidth:a,lowerWidth:o,height:l,className:s}=t,{animationEasing:u,animationDuration:f,animationBegin:h,isUpdateAnimationActive:v}=t,y=d(null),[m,g]=c(-1),b=d(a),x=d(o),w=d(l),O=d(n),E=d(i),P=Yf(e,"trapezoid-");if(p(()=>{if(y.current&&y.current.getTotalLength)try{var e=y.current.getTotalLength();e&&g(e)}catch(e){}},[]),n!==+n||i!==+i||a!==+a||o!==+o||l!==+l||0===a&&0===o||0===l)return null;var j=S("recharts-trapezoid",s);if(!v)return r.createElement("g",null,r.createElement("path",hA({},lt(t),{className:j,d:yA(n,i,a,o,l)})));var A=b.current,k=x.current,_=w.current,N=O.current,M=E.current,T="0px ".concat(-1===m?1:m,"px"),I="".concat(m,"px ").concat(m,"px"),D=Ef(["strokeDasharray"],f,u);return r.createElement(qf,{animationId:P,key:P,canBegin:m>0,duration:f,easing:u,isActive:v,begin:h},e=>{var s=Qr(A,a,e),c=Qr(k,o,e),u=Qr(_,l,e),d=Qr(N,n,e),f=Qr(M,i,e);y.current&&(b.current=s,x.current=c,w.current=u,O.current=d,E.current=f);var p=e>0?{transition:D,strokeDasharray:I}:{strokeDasharray:T};return r.createElement("path",hA({},lt(t),{className:j,d:yA(d,f,s,c,u),ref:y,style:fA(fA({},p),t.style)}))})},bA=["option","shapeType","activeClassName","inActiveClassName"];function xA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xA(Object(r),!0).forEach(function(t){OA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function OA(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EA(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return r.createElement(vp,n);case"trapezoid":return r.createElement(gA,n);case"sector":return r.createElement(Bp,n);case"symbols":if(function(e){return"symbols"===e}(t))return r.createElement(pn,n);break;case"curve":return r.createElement(pf,n);default:return null}}function SA(e){var t,{option:n,shapeType:a,activeClassName:o="recharts-active-shape",inActiveClassName:l="recharts-shape"}=e,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,bA);if(i(n))t=v(n,wA(wA({},s),function(e){return i(e)?e.props:e}(n)));else if("function"==typeof n)t=n(s,s.index);else if(uA(n)&&"boolean"!=typeof n){var c=function(e,t){return wA(wA({},t),e)}(n,s);t=r.createElement(EA,{shapeType:a,elementProps:c})}else{var u=s;t=r.createElement(EA,{shapeType:a,elementProps:u})}return s.isActive?r.createElement(pt,{className:o},t):r.createElement(pt,{className:l},t)}var PA,jA=(e,t,r)=>{var n=ya();return(i,a)=>o=>{null==e||e(i,a,o),n(AO({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},AA=e=>{var t=ya();return(r,n)=>i=>{null==e||e(r,n,i),t(kO())}},kA=(e,t,r)=>{var n=ya();return(i,a)=>o=>{null==e||e(i,a,o),n(NO({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function _A(e){var{tooltipEntrySettings:t}=e,r=ya(),n=Ic(),i=d(null);return h(()=>{n||(null===i.current?r(EO(t)):i.current!==t&&r(SO({prev:i.current,next:t})),i.current=t)},[t,r,n]),h(()=>()=>{i.current&&(r(PO(i.current)),i.current=null)},[r]),null}function NA(e){var{legendPayload:t}=e,r=ya(),n=Ic(),i=d(null);return h(()=>{n||(null===i.current?r(fd(t)):i.current!==t&&r(pd({prev:i.current,next:t})),i.current=t)},[r,n,t]),h(()=>()=>{i.current&&(r(hd(i.current)),i.current=null)},[r]),null}var MA=null!==(PA=r["useId".toString()])&&void 0!==PA?PA:()=>{var[e]=r.useState(()=>Xr("uid-"));return e};var TA=o(void 0),IA=e=>{var{id:t,type:n,children:i}=e,a=function(e,t){var r=MA();return t||(e?"".concat(e,"-").concat(r):r)}("recharts-".concat(n),t);return r.createElement(TA.Provider,{value:a},i(a))},DA=ls({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Zl()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Al(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:Zl()},removeCartesianGraphicalItem:{reducer(e,t){var r=Al(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Zl()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Zl()},removePolarGraphicalItem:{reducer(e,t){var r=Al(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Zl()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Al(e).polarItems.indexOf(r);i>-1&&(e.polarItems[i]=n)},prepare:Zl()}}}),{addCartesianGraphicalItem:CA,replaceCartesianGraphicalItem:zA,removeCartesianGraphicalItem:LA,addPolarGraphicalItem:BA,removePolarGraphicalItem:RA,replacePolarGraphicalItem:VA}=DA.actions,KA=DA.reducer,$A=g(e=>{var t=ya(),r=d(null);return h(()=>{null===r.current?t(CA(e)):r.current!==e&&t(zA({prev:r.current,next:e})),r.current=e},[t,e]),h(()=>()=>{r.current&&(t(LA(r.current)),r.current=null)},[t]),null}),FA=["points"];function WA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function UA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?WA(Object(r),!0).forEach(function(t){HA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function HA(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qA(){return qA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qA.apply(null,arguments)}function YA(e){var{option:t,dotProps:n,className:a}=e;if(i(t))return v(t,n);if("function"==typeof t)return t(n);var o=S(a,"boolean"!=typeof t?t.className:""),l=null!=n?n:{},{points:s}=l,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(l,FA);return r.createElement(Nj,qA({},c,{className:o}))}function GA(e){var{points:t,dot:n,className:a,dotClassName:o,dataKey:l,baseProps:s,needClip:c,clipPathId:u,zIndex:d=ev.scatter}=e;if(!function(e,t){return null!=e&&(!!t||1===e.length)}(t,n))return null;var f,p=tA(n),h=null==(f=n)?null:i(f)?lt(f.props):"object"!=typeof f||Array.isArray(f)?null:lt(f),v=t.map((e,i)=>{var a,c,u=UA(UA(UA({r:3},s),h),{},{index:i,cx:null!==(a=e.x)&&void 0!==a?a:void 0,cy:null!==(c=e.y)&&void 0!==c?c:void 0,dataKey:l,value:e.value,payload:e.payload,points:t});return r.createElement(YA,{key:"dot-".concat(i),option:n,dotProps:u,className:o})}),y={};return c&&null!=u&&(y.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(u,")")),r.createElement(kS,{zIndex:d},r.createElement(pt,qA({className:a},y),v))}function XA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ZA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?XA(Object(r),!0).forEach(function(t){JA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function JA(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var QA=ls({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Zl()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.xAxis[r.id]&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Zl()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Zl()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Zl()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.yAxis[r.id]&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Zl()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Zl()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Zl()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.zAxis[r.id]&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Zl()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Zl()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var a,o=i.widthHistory||[];if(3===o.length&&o[0]===o[2]&&n===o[1]&&n!==i.width&&Math.abs(n-(null!==(a=o[0])&&void 0!==a?a:0))<=1)return;var l=[...o,n].slice(-3);e.yAxis[r]=ZA(ZA({},i),{},{width:n,widthHistory:l})}}}}),{addXAxis:ek,replaceXAxis:tk,removeXAxis:rk,addYAxis:nk,replaceYAxis:ik,removeYAxis:ak,addZAxis:ok,replaceZAxis:lk,removeZAxis:sk,updateYAxisWidth:ck}=QA.actions,uk=QA.reducer,dk=Ta([_c],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),fk=Ta([dk,hc,vc],(e,t,r)=>{if(e&&null!=t&&null!=r)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),pk=()=>xa(fk);function hk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hk(Object(r),!0).forEach(function(t){yk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function yk(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var mk=e=>{var{point:t,childIndex:n,mainColor:a,activeDot:o,dataKey:l,clipPath:s}=e;if(!1===o||null==t.x||null==t.y)return null;var c,u=vk(vk(vk({},{index:n,dataKey:l,cx:t.x,cy:t.y,r:4,fill:null!=a?a:"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value}),ot(o)),vn(o));return c=i(o)?v(o,u):"function"==typeof o?o(u):r.createElement(Nj,u),r.createElement(pt,{className:"recharts-active-dot",clipPath:s},c)};function gk(e){var{points:t,mainColor:n,activeDot:i,itemDataKey:a,clipPath:o,zIndex:l=ev.activeDot}=e,s=xa(LE),c=xa(HE);if(null==t||null==c)return null;var u=t.find(e=>c.includes(e.payload));return tn(u)?null:r.createElement(kS,{zIndex:l},r.createElement(mk,{point:u,childIndex:Number(s),mainColor:n,dataKey:a,activeDot:i,clipPath:o}))}var bk=(e,t,r)=>{var n=null!=r?r:e;if(!tn(n))return Zr(n,t,0)};function xk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function wk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xk(Object(r),!0).forEach(function(t){Ok(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ok(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ek=e=>{var{chartData:t}=e,r=ya(),n=Ic();return p(()=>n?()=>{}:(r(GS(t)),()=>{r(GS(void 0))}),[t,r,n]),null},Sk={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},Pk=ls({name:"brush",initialState:Sk,reducers:{setBrushSettings:(e,t)=>null==t.payload?Sk:t.payload}}),{setBrushSettings:jk}=Pk.actions,Ak=Pk.reducer;var kk=ls({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Al(e).dots.findIndex(e=>e===t.payload);-1!==r&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=Al(e).areas.findIndex(e=>e===t.payload);-1!==r&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=Al(e).lines.findIndex(e=>e===t.payload);-1!==r&&e.lines.splice(r,1)}}}),{addDot:_k,removeDot:Nk,addArea:Mk,removeArea:Tk,addLine:Ik,removeLine:Dk}=kk.actions,Ck=kk.reducer,zk=o(void 0),Lk=e=>{var{children:t}=e,[n]=c("".concat(Xr("recharts"),"-clip")),i=pk();if(null==i)return null;var{x:a,y:o,width:l,height:s}=i;return r.createElement(zk.Provider,{value:n},r.createElement("defs",null,r.createElement("clipPath",{id:n},r.createElement("rect",{x:a,y:o,height:s,width:l}))),t)};function Bk(e,t){if(t<1)return[];if(1===t)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];void 0!==i&&r.push(i)}return r}function Rk(e,t,r){return function(e){var{width:t,height:r}=e,n=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,a=Math.atan(r/t),o=i>a&&i<Math.PI-a?r/Math.sin(i):t/Math.cos(i);return Math.abs(o)}({width:e.width+t.width,height:e.height+t.height},r)}function Vk(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Kk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kk(Object(r),!0).forEach(function(t){Fk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Fk(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wk(e,t,r){var n,{tick:i,ticks:a,viewBox:o,minTickGap:l,orientation:s,interval:c,tickFormatter:u,unit:d,angle:f}=e;if(!a||!a.length||!i)return[];if(qr(c)||Hd)return null!==(n=function(e,t){return Bk(e,t+1)}(a,qr(c)?c:0))&&void 0!==n?n:[];var p=[],h="top"===s||"bottom"===s?"width":"height",v=d&&"width"===h?OP(d,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=(e,n)=>{var i="function"==typeof u?u(e.value,n):e.value;return"width"===h?Rk(OP(i,{fontSize:t,letterSpacing:r}),v,f):OP(i,{fontSize:t,letterSpacing:r})[h]},m=a[0],g=a[1],b=a.length>=2&&null!=m&&null!=g?Wr(g.coordinate-m.coordinate):1,x=function(e,t,r){var n="width"===r,{x:i,y:a,width:o,height:l}=e;return 1===t?{start:n?i:a,end:n?i+o:a+l}:{start:n?i+o:a+l,end:n?i:a}}(o,b,h);return"equidistantPreserveStart"===c?function(e,t,r,n,i){for(var a,o=(n||[]).slice(),{start:l,end:s}=t,c=0,u=1,d=l,f=function(){var t=null==n?void 0:n[c];if(void 0===t)return{v:Bk(n,u)};var a,o=c,f=()=>(void 0===a&&(a=r(t,o)),a),p=t.coordinate,h=0===c||Vk(e,p,f,d,s);h||(c=0,d=l,u+=1),h&&(d=p+e*(f()/2+i),c+=u)};u<=o.length;)if(a=f())return a.v;return[]}(b,x,y,a,l):"equidistantPreserveEnd"===c?function(e,t,r,n,i){var a=(n||[]).slice().length;if(0===a)return[];for(var{start:o,end:l}=t,s=1;s<=a;s++){for(var c,u=(a-1)%s,d=o,f=!0,p=function(){var t=n[h];if(null==t)return 0;var a,o=h,s=()=>(void 0===a&&(a=r(t,o)),a),c=t.coordinate,p=h===u||Vk(e,c,s,d,l);if(!p)return f=!1,1;p&&(d=c+e*(s()/2+i))},h=u;h<a&&(0===(c=p())||1!==c);h+=s);if(f){for(var v=[],y=u;y<a;y+=s){var m=n[y];null!=m&&v.push(m)}return v}}return[]}(b,x,y,a,l):(p="preserveStart"===c||"preserveStartEnd"===c?function(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,{start:s,end:c}=t;if(a){var u=n[l-1];if(null!=u){var d=r(u,l-1),f=e*(u.coordinate+e*d/2-c);o[l-1]=u=$k($k({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),null!=u.tickCoord&&Vk(e,u.tickCoord,()=>d,s,c)&&(c=u.tickCoord-e*(d/2+i),o[l-1]=$k($k({},u),{},{isShow:!0}))}}for(var p=a?l-1:l,h=function(t){var n=o[t];if(null==n)return 1;var a,l=n,u=()=>(void 0===a&&(a=r(n,t)),a);if(0===t){var d=e*(l.coordinate-e*u()/2-s);o[t]=l=$k($k({},l),{},{tickCoord:d<0?l.coordinate-d*e:l.coordinate})}else o[t]=l=$k($k({},l),{},{tickCoord:l.coordinate});null!=l.tickCoord&&Vk(e,l.tickCoord,u,s,c)&&(s=l.tickCoord+e*(u()/2+i),o[t]=$k($k({},l),{},{isShow:!0}))},v=0;v<p;v++)h(v);return o}(b,x,y,a,l,"preserveStartEnd"===c):function(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:l}=t,{end:s}=t,c=function(t){var n=a[t];if(null==n)return 1;var c,u=n,d=()=>(void 0===c&&(c=r(n,t)),c);if(t===o-1){var f=e*(u.coordinate+e*d()/2-s);a[t]=u=$k($k({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate})}else a[t]=u=$k($k({},u),{},{tickCoord:u.coordinate});null!=u.tickCoord&&Vk(e,u.tickCoord,d,l,s)&&(s=u.tickCoord-e*(d()/2+i),a[t]=$k($k({},u),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}(b,x,y,a,l),p.filter(e=>e.isShow))}var Uk=ls({name:"renderedTicks",initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:i}=t.payload;e[r][n]=i},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:Hk,removeRenderedTicks:qk}=Uk.actions,Yk=Uk.reducer,Gk=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function Xk(){return Xk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xk.apply(null,arguments)}function Zk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Jk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zk(Object(r),!0).forEach(function(t){Qk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Qk(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var e_={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",zIndex:ev.axis};function t_(e){var{x:t,y:n,width:i,height:a,orientation:o,mirror:l,axisLine:s,otherSvgProps:c}=e;if(!s)return null;var u=Jk(Jk(Jk({},c),at(s)),{},{fill:"none"});if("top"===o||"bottom"===o){var d=+("top"===o&&!l||"bottom"===o&&l);u=Jk(Jk({},u),{},{x1:t,y1:n+d*a,x2:t+i,y2:n+d*a})}else{var f=+("left"===o&&!l||"right"===o&&l);u=Jk(Jk({},u),{},{x1:t+f*i,y1:n,x2:t+f*i,y2:n+a})}return r.createElement("line",Xk({},u,{className:S("recharts-cartesian-axis-line",Kr(s,"className"))}))}function r_(e){var t,n,{option:i,tickProps:a,value:o}=e,l=S(a.className,"recharts-cartesian-axis-tick-value");if(r.isValidElement(i))t=r.cloneElement(i,Jk(Jk({},a),{},{className:l}));else if("function"==typeof i)t=i(Jk(Jk({},a),{},{className:l}));else{var s="recharts-cartesian-axis-tick-value";"boolean"!=typeof i&&(s=S(s,(n=i)&&"object"==typeof n&&"className"in n&&"string"==typeof n.className?n.className:"")),t=r.createElement(JP,Xk({},a,{className:s}),o)}return t}function n_(e){var{ticks:t,axisType:r,axisId:n}=e,i=ya();return p(()=>{if(null==n||null==r)return an;var e=t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index}));return i(Hk({ticks:e,axisId:n,axisType:r})),()=>{i(qk({axisId:n,axisType:r}))}},[i,t,n,r]),null}var i_=a((e,t)=>{var{ticks:n=[],tick:i,tickLine:a,stroke:o,tickFormatter:l,unit:s,padding:c,tickTextProps:u,orientation:d,mirror:f,x:p,y:h,width:v,height:y,tickSize:m,tickMargin:g,fontSize:b,letterSpacing:x,getTicksConfig:w,events:O,axisType:E,axisId:P}=e,j=Wk(Jk(Jk({},w),{},{ticks:n}),b,x),A=at(w),k=ot(i),_=WP(A.textAnchor)?A.textAnchor:function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(d,f),N=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(d,f),M={};"object"==typeof a&&(M=a);var T=Jk(Jk({},A),{},{fill:"none"},M),I=j.map(e=>Jk({entry:e},function(e,t,r,n,i,a,o,l,s){var c,u,d,f,p,h,v=l?-1:1,y=e.tickSize||o,m=qr(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":c=u=e.coordinate,h=(d=(f=r+ +!l*i)-v*y)-v*s,p=m;break;case"left":d=f=e.coordinate,p=(c=(u=t+ +!l*n)-v*y)-v*s,h=m;break;case"right":d=f=e.coordinate,p=(c=(u=t+ +l*n)+v*y)+v*s,h=m;break;default:c=u=e.coordinate,h=(d=(f=r+ +l*i)+v*y)+v*s,p=m}return{line:{x1:c,y1:d,x2:u,y2:f},tick:{x:p,y:h}}}(e,p,h,v,y,d,m,f,g))),D=I.map(e=>{var{entry:t,line:n}=e;return r.createElement(pt,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},a&&r.createElement("line",Xk({},T,n,{className:S("recharts-cartesian-axis-tick-line",Kr(a,"className"))})))}),C=I.map((e,t)=>{var n,a,{entry:d,tick:f}=e,p=Jk(Jk(Jk(Jk({verticalAnchor:N},A),{},{textAnchor:_,stroke:"none",fill:o},f),{},{index:t,payload:d,visibleTicksCount:j.length,tickFormatter:l,padding:c},u),{},{angle:null!==(n=null!==(a=null==u?void 0:u.angle)&&void 0!==a?a:A.angle)&&void 0!==n?n:0}),h=Jk(Jk({},p),k);return r.createElement(pt,Xk({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(d.value,"-").concat(d.coordinate,"-").concat(d.tickCoord)},yn(O,d,t)),i&&r.createElement(r_,{option:i,tickProps:h,value:"".concat("function"==typeof l?l(d.value,t):d.value).concat(s||"")}))});return r.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(E,"-ticks")},r.createElement(n_,{ticks:j,axisId:P,axisType:E}),C.length>0&&r.createElement(kS,{zIndex:ev.label},r.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(E,"-tick-labels"),ref:t},C)),D.length>0&&r.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(E,"-tick-lines")},D))}),a_=a((e,t)=>{var{axisLine:n,width:i,height:a,className:o,hide:l,ticks:s,axisType:p,axisId:h}=e,v=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,Gk),[y,m]=c(""),[g,b]=c(""),x=d(null);f(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>o&&(o=t.width)}});var l=r?r.getBoundingClientRect().width:0,s=o+(i+a)+l+(r?n:0);return Math.round(s)}return 0})({ticks:x.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var w=u(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");x.current=t;var r=t[0];if(r){var n=window.getComputedStyle(r),i=n.fontSize,a=n.letterSpacing;i===y&&a===g||(m(i),b(a))}}},[y,g]);return l||null!=i&&i<=0||null!=a&&a<=0?null:r.createElement(kS,{zIndex:e.zIndex},r.createElement(pt,{className:S("recharts-cartesian-axis",o)},r.createElement(t_,{x:e.x,y:e.y,width:i,height:a,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:at(e)}),r.createElement(i_,{ref:w,axisType:p,events:v,fontSize:y,getTicksConfig:e,height:e.height,letterSpacing:g,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:h}),r.createElement(uj,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},r.createElement(gj,{label:e.label,labelRef:e.labelRef}),e.children)))}),o_=r.forwardRef((e,t)=>{var n=bn(e,e_);return r.createElement(a_,Xk({},n,{ref:t}))});o_.displayName="CartesianAxis";var l_=["x1","y1","x2","y2","key"],s_=["offset"],c_=["xAxisId","yAxisId"],u_=["xAxisId","yAxisId"];function d_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d_(Object(r),!0).forEach(function(t){p_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h_(){return h_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h_.apply(null,arguments)}function v_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var y_=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:n,x:i,y:a,width:o,height:l,ry:s}=e;return r.createElement("rect",{x:i,y:a,ry:s,width:o,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function m_(e){var t,{option:n,lineItemProps:i}=e;if(r.isValidElement(n))t=r.cloneElement(n,i);else if("function"==typeof n)t=n(i);else{var a,{x1:o,y1:l,x2:s,y2:c,key:u}=i,d=null!==(a=at(v_(i,l_)))&&void 0!==a?a:{},{offset:f}=d,p=v_(d,s_);t=r.createElement("line",h_({},p,{x1:o,y1:l,x2:s,y2:c,fill:"none",key:u}))}return t}function g_(e){var{x:t,width:n,horizontal:i=!0,horizontalPoints:a}=e;if(!i||!a||!a.length)return null;var{xAxisId:o,yAxisId:l}=e,s=v_(e,c_),c=a.map((e,a)=>{var o=f_(f_({},s),{},{x1:t,y1:e,x2:t+n,y2:e,key:"line-".concat(a),index:a});return r.createElement(m_,{key:"line-".concat(a),option:i,lineItemProps:o})});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function b_(e){var{y:t,height:n,vertical:i=!0,verticalPoints:a}=e;if(!i||!a||!a.length)return null;var{xAxisId:o,yAxisId:l}=e,s=v_(e,u_),c=a.map((e,a)=>{var o=f_(f_({},s),{},{x1:e,y1:t,x2:e,y2:t+n,key:"line-".concat(a),index:a});return r.createElement(m_,{option:i,lineItemProps:o,key:"line-".concat(a)})});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function x_(e){var{horizontalFill:t,fillOpacity:n,x:i,y:a,width:o,height:l,horizontalPoints:s,horizontal:c=!0}=e;if(!c||!t||!t.length||null==s)return null;var u=s.map(e=>Math.round(e+a-a)).sort((e,t)=>e-t);a!==u[0]&&u.unshift(0);var d=u.map((e,s)=>{var c=u[s+1],d=null==c?a+l-e:c-e;if(d<=0)return null;var f=s%t.length;return r.createElement("rect",{key:"react-".concat(s),y:e,x:i,height:d,width:o,stroke:"none",fill:t[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function w_(e){var{vertical:t=!0,verticalFill:n,fillOpacity:i,x:a,y:o,width:l,height:s,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var u=c.map(e=>Math.round(e+a-a)).sort((e,t)=>e-t);a!==u[0]&&u.unshift(0);var d=u.map((e,t)=>{var c=u[t+1],d=null==c?a+l-e:c-e;if(d<=0)return null;var f=t%n.length;return r.createElement("rect",{key:"react-".concat(t),x:e,y:o,width:d,height:s,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var O_=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return tc(Wk(f_(f_(f_({},e_),r),{},{ticks:rc(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},E_=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return tc(Wk(f_(f_(f_({},e_),r),{},{ticks:rc(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},S_={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:ev.grid};function P_(e){var t=du(),n=fu(),i=uu(),a=f_(f_({},bn(e,S_)),{},{x:qr(e.x)?e.x:i.left,y:qr(e.y)?e.y:i.top,width:qr(e.width)?e.width:i.width,height:qr(e.height)?e.height:i.height}),{xAxisId:o,yAxisId:l,x:s,y:c,width:u,height:d,syncWithTicks:f,horizontalValues:p,verticalValues:h}=a,v=Ic(),y=xa(e=>sO(e,"xAxis",o,v)),m=xa(e=>sO(e,"yAxis",l,v));if(!(Gs(u)&&Gs(d)&&qr(s)&&qr(c)))return null;var g=a.verticalCoordinatesGenerator||O_,b=a.horizontalCoordinatesGenerator||E_,{horizontalPoints:x,verticalPoints:w}=a;if(!(x&&x.length||"function"!=typeof b)){var O=p&&p.length,E=b({yAxis:m?f_(f_({},m),{},{ticks:O?p:m.ticks}):void 0,width:null!=t?t:u,height:null!=n?n:d,offset:i},!!O||f);Wc(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof E,"]")),Array.isArray(E)&&(x=E)}if(!(w&&w.length||"function"!=typeof g)){var S=h&&h.length,P=g({xAxis:y?f_(f_({},y),{},{ticks:S?h:y.ticks}):void 0,width:null!=t?t:u,height:null!=n?n:d,offset:i},!!S||f);Wc(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(w=P)}return r.createElement(kS,{zIndex:a.zIndex},r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(y_,{fill:a.fill,fillOpacity:a.fillOpacity,x:a.x,y:a.y,width:a.width,height:a.height,ry:a.ry}),r.createElement(x_,h_({},a,{horizontalPoints:x})),r.createElement(w_,h_({},a,{verticalPoints:w})),r.createElement(g_,h_({},a,{offset:i,horizontalPoints:x,xAxis:y,yAxis:m})),r.createElement(b_,h_({},a,{offset:i,verticalPoints:w,xAxis:y,yAxis:m}))))}P_.displayName="CartesianGrid";var j_=ls({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(e=>e.dataKey===n.dataKey&&e.direction===n.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(e=>e.dataKey!==n.dataKey||e.direction!==n.direction))}}}),{addErrorBar:A_,replaceErrorBar:k_,removeErrorBar:__}=j_.actions,N_=j_.reducer,M_=["children"];var T_=o({data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function I_(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,M_);return r.createElement(T_.Provider,{value:n},t)}function D_(e,t){var r,n,i=xa(t=>gx(t,e)),a=xa(e=>wx(e,t)),o=null!==(r=null==i?void 0:i.allowDataOverflow)&&void 0!==r?r:yx.allowDataOverflow,l=null!==(n=null==a?void 0:a.allowDataOverflow)&&void 0!==n?n:bx.allowDataOverflow;return{needClip:o||l,needClipX:o,needClipY:l}}function C_(e){var{xAxisId:t,yAxisId:n,clipPathId:i}=e,a=pk(),{needClipX:o,needClipY:l,needClip:s}=D_(t,n);if(!s||!a)return null;var{x:c,y:u,width:d,height:f}=a;return r.createElement("clipPath",{id:"clipPath-".concat(i)},r.createElement("rect",{x:o?c:c-d/2,y:l?u:u-f/2,width:o?d:2*d,height:l?f:2*f}))}var z_=(e,t,r,n)=>dO(e,"xAxis",t,n),L_=(e,t,r,n)=>uO(e,"xAxis",t,n),B_=(e,t,r,n)=>dO(e,"yAxis",r,n),R_=(e,t,r,n)=>uO(e,"yAxis",r,n),V_=Ta([pu,z_,B_,L_,R_],(e,t,r,n,i)=>ec(e,"xAxis")?dc(t,n,!1):dc(r,i,!1));function K_(e){return"line"===e.type}var $_=Ta([kx,(e,t,r,n,i)=>i],(e,t)=>e.filter(K_).find(e=>e.id===t)),F_=Ta([pu,z_,B_,L_,R_,$_,V_,th],(e,t,r,n,i,a,o,l)=>{var{chartData:s,dataStartIndex:c,dataEndIndex:u}=l;if(null!=a&&null!=t&&null!=r&&null!=n&&null!=i&&0!==n.length&&0!==i.length&&null!=o&&("horizontal"===e||"vertical"===e)){var d,{dataKey:f,data:p}=a;if(null!=(d=null!=p&&p.length>0?p:null==s?void 0:s.slice(c,u+1)))return function(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:l,displayedData:s}=e;return s.map((e,s)=>{var c=Qs(e,o);if("horizontal"===t){var u=oc({axis:r,ticks:i,bandSize:l,entry:e,index:s}),d=tn(c)?null:n.scale.map(c);return{x:u,y:null!=d?d:null,value:c,payload:e}}var f=tn(c)?null:r.scale.map(c),p=oc({axis:n,ticks:a,bandSize:l,entry:e,index:s});return null==f||null==p?null:{x:f,y:p,value:c,payload:e}}).filter(Boolean)}({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:f,bandSize:o,displayedData:d})}});function W_(e){var t=ot(e);if(null!=t){var{r:r,strokeWidth:n}=t,i=Number(r),a=Number(n);return(Number.isNaN(i)||i<0)&&(i=3),(Number.isNaN(a)||a<0)&&(a=2),{r:i,strokeWidth:a}}return{r:3,strokeWidth:2}}var U_=["id"],H_=["type","layout","connectNulls","needClip","shape"],q_=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function Y_(){return Y_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Y_.apply(null,arguments)}function G_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function X_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G_(Object(r),!0).forEach(function(t){Z_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Z_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J_(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Q_=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:pc(r,t),payload:e}]},eN=r.memo(e=>{var{dataKey:t,data:n,stroke:i,strokeWidth:a,fill:o,name:l,hide:s,unit:c,tooltipType:u,id:d}=e,f={dataDefinedOnItem:n,getPosition:an,settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:void 0,name:pc(l,t),hide:s,type:u,color:i,unit:c,graphicalItemId:d}};return r.createElement(_A,{tooltipEntrySettings:f})}),tN=(e,t)=>"".concat(t,"px ").concat(e,"px");function rN(e,t){for(var r=e.length%2!=0?[...e,0]:e,n=[],i=0;i<t;++i)n.push(...r);return n}function nN(e){var{clipPathId:t,points:n,props:i}=e,{dot:a,dataKey:o,needClip:l}=i,{id:s}=i,c=at(J_(i,U_));return r.createElement(GA,{points:n,dot:a,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:o,baseProps:c,needClip:l,clipPathId:t})}function iN(e){var{showLabels:t,children:n,points:i}=e,a=s(()=>null==i?void 0:i.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return X_(X_({},n),{},{value:e.value,payload:e.payload,viewBox:n,parentViewBox:void 0,fill:void 0})}),[i]);return r.createElement(Pj,{value:t?a:void 0},n)}function aN(e){var{clipPathId:t,pathRef:n,points:i,strokeDasharray:a,props:o}=e,{type:l,layout:s,connectNulls:c,needClip:u,shape:d}=o,f=X_(X_({},lt(J_(o,H_))),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(t,")"):void 0,points:i,type:l,layout:s,connectNulls:c,strokeDasharray:null!=a?a:o.strokeDasharray});return r.createElement(r.Fragment,null,(null==i?void 0:i.length)>1&&r.createElement(SA,Y_({shapeType:"curve",option:d},f,{pathRef:n})),r.createElement(nN,{points:i,clipPathId:t,props:o}))}function oN(e){var{clipPathId:t,props:n,pathRef:i,previousPointsRef:a,longestAnimatedLengthRef:o}=e,{points:l,strokeDasharray:s,isAnimationActive:f,animationBegin:p,animationDuration:h,animationEasing:v,animateNewValues:y,width:m,height:g,onAnimationEnd:b,onAnimationStart:x}=n,w=a.current,O=Yf(l,"recharts-line-"),E=d(O),[S,P]=c(!1),j=!S,A=u(()=>{"function"==typeof b&&b(),P(!1)},[b]),k=u(()=>{"function"==typeof x&&x(),P(!0)},[x]),_=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(i.current),N=d(0);E.current!==O&&(N.current=o.current,E.current=O);var M=N.current;return r.createElement(iN,{points:l,showLabels:j},n.children,r.createElement(qf,{animationId:O,begin:p,duration:h,isActive:f,easing:v,onAnimationEnd:A,onAnimationStart:k,key:O},e=>{var c,u=Qr(M,_+M,e),d=Math.min(u,_);if(f)if(s){var p="".concat(s).split(/[,\s]+/gim).map(e=>parseFloat(e));c=((e,t,r)=>{var n=r.reduce((e,t)=>e+t,0);if(!n)return tN(t,e);for(var i=Math.floor(e/n),a=e%n,o=[],l=0,s=0;l<r.length;s+=null!==(c=r[l])&&void 0!==c?c:0,++l){var c,u=r[l];if(null!=u&&s+u>a){o=[...r.slice(0,l),a-s];break}}var d=o.length%2==0?[0,t]:[t];return[...rN(r,i),...o,...d].map(e=>"".concat(e,"px")).join(", ")})(d,_,p)}else c=tN(_,d);else c=null==s?void 0:String(s);if(e>0&&_>0&&(a.current=l,o.current=Math.max(o.current,d)),w){var h=w.length/l.length,v=1===e?l:l.map((t,r)=>{var n=Math.floor(r*h);if(w[n]){var i=w[n];return X_(X_({},t),{},{x:Qr(i.x,t.x,e),y:Qr(i.y,t.y,e)})}return X_(X_({},t),{},y?{x:Qr(2*m,t.x,e),y:Qr(g/2,t.y,e)}:{x:t.x,y:t.y})});return a.current=v,r.createElement(aN,{props:n,points:v,clipPathId:t,pathRef:i,strokeDasharray:c})}return r.createElement(aN,{props:n,points:l,clipPathId:t,pathRef:i,strokeDasharray:c})}),r.createElement(kj,{label:n.label}))}function lN(e){var{clipPathId:t,props:n}=e,i=d(null),a=d(0),o=d(null);return r.createElement(oN,{props:n,clipPathId:t,previousPointsRef:i,longestAnimatedLengthRef:a,pathRef:o})}var sN=(e,t)=>{var r,n;return{x:null!==(r=e.x)&&void 0!==r?r:void 0,y:null!==(n=e.y)&&void 0!==n?n:void 0,value:e.value,errorVal:Qs(e.payload,t)}};class cN extends b{render(){var{hide:e,dot:t,points:n,className:i,xAxisId:a,yAxisId:o,top:l,left:s,width:c,height:u,id:d,needClip:f,zIndex:p}=this.props;if(e)return null;var h=S("recharts-line",i),v=d,{r:y,strokeWidth:m}=W_(t),g=tA(t),b=2*y+m,x=f?"url(#clipPath-".concat(g?"":"dots-").concat(v,")"):void 0;return r.createElement(kS,{zIndex:p},r.createElement(pt,{className:h},f&&r.createElement("defs",null,r.createElement(C_,{clipPathId:v,xAxisId:a,yAxisId:o}),!g&&r.createElement("clipPath",{id:"clipPath-dots-".concat(v)},r.createElement("rect",{x:s-b/2,y:l-b/2,width:c+b,height:u+b}))),r.createElement(I_,{xAxisId:a,yAxisId:o,data:n,dataPointFormatter:sN,errorBarOffset:0},r.createElement(lN,{props:this.props,clipPathId:v}))),r.createElement(gk,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:x}))}}var uN={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:ev.line,type:"linear"};function dN(e){var t=bn(e,uN),{activeDot:n,animateNewValues:i,animationBegin:a,animationDuration:o,animationEasing:l,connectNulls:s,dot:c,hide:u,isAnimationActive:d,label:f,legendType:p,xAxisId:h,yAxisId:v,id:y}=t,m=J_(t,q_),{needClip:g}=D_(h,v),b=pk(),x=hu(),w=Ic(),O=xa(e=>F_(e,h,v,w,y));if("horizontal"!==x&&"vertical"!==x||null==O||null==b)return null;var{height:E,width:S,x:P,y:j}=b;return r.createElement(cN,Y_({},m,{id:y,connectNulls:s,dot:c,activeDot:n,animateNewValues:i,animationBegin:a,animationDuration:o,animationEasing:l,isAnimationActive:d,hide:u,label:f,legendType:p,xAxisId:h,yAxisId:v,points:O,layout:x,height:E,width:S,left:P,top:j,needClip:g}))}function fN(e){var t=bn(e,uN),n=Ic();return r.createElement(IA,{id:t.id,type:"line"},e=>r.createElement(r.Fragment,null,r.createElement(NA,{legendPayload:Q_(t)}),r.createElement(eN,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),r.createElement($A,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),r.createElement(dN,Y_({},t,{id:e}))))}var pN=r.memo(fN,Dd);function hN(e,t){var r,n;return null!==(r=null===(n=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===n?void 0:n.xAxisId)&&void 0!==r?r:0}function vN(e,t){var r,n;return null!==(r=null===(n=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===n?void 0:n.yAxisId)&&void 0!==r?r:0}pN.displayName="Line";var yN=(e,t,r)=>dO(e,"xAxis",hN(e,t),r),mN=(e,t,r)=>uO(e,"xAxis",hN(e,t),r),gN=(e,t,r)=>dO(e,"yAxis",vN(e,t),r),bN=(e,t,r)=>uO(e,"yAxis",vN(e,t),r),xN=Ta([pu,yN,gN,mN,bN],(e,t,r,n,i)=>ec(e,"xAxis")?dc(t,n,!1):dc(r,i,!1)),wN=Ta([kx,(e,t)=>t],(e,t)=>e.filter(e=>"area"===e.type).find(e=>e.id===t)),ON=e=>{var t=pu(e);return ec(t,"xAxis")?"yAxis":"xAxis"},EN=Ta([wN,(e,t,r)=>Jx(e,ON(e),((e,t)=>"yAxis"===ON(e)?vN(e,t):hN(e,t))(e,t),r)],(e,t)=>{var r;if(null!=e&&null!=t){var{stackId:n}=e,i=bv(e);if(null!=n&&null!=i){var a=null===(r=t[n])||void 0===r?void 0:r.stackedData,o=null==a?void 0:a.find(e=>e.key===i);if(null!=o)return o.map(e=>[e[0],e[1]])}}}),SN=Ta([pu,yN,gN,mN,bN,EN,rh,xN,wN,e=>e.rootProps.baseValue],(e,t,r,n,i,a,o,l,s,c)=>{var{chartData:u,dataStartIndex:d,dataEndIndex:f}=o;if(null!=s&&("horizontal"===e||"vertical"===e)&&null!=t&&null!=r&&null!=n&&null!=i&&0!==n.length&&0!==i.length&&null!=l){var p,{data:h}=s;if(null!=(p=h&&h.length>0?h:null==u?void 0:u.slice(d,f+1)))return function(e){var t,{areaSettings:{connectNulls:r,baseValue:n,dataKey:i},stackedData:a,layout:o,chartBaseValue:l,xAxis:s,yAxis:c,displayedData:u,dataStartIndex:d,xAxisTicks:f,yAxisTicks:p,bandSize:h}=e,v=a&&a.length,y=HN(o,l,n,s,c),m="horizontal"===o,g=!1,b=u.map((e,t)=>{var n,o,l,u;if(v)u=a[d+t];else{var b=Qs(e,i);Array.isArray(b)?(u=b,g=!0):u=[y,b]}var x,w=null!==(n=null===(o=u)||void 0===o?void 0:o[1])&&void 0!==n?n:null,O=null==w||v&&!r&&null==Qs(e,i);return m?{x:oc({axis:s,ticks:f,bandSize:h,entry:e,index:t}),y:O?null:null!==(x=c.scale.map(w))&&void 0!==x?x:null,value:u,payload:e}:{x:O?null:null!==(l=s.scale.map(w))&&void 0!==l?l:null,y:oc({axis:c,ticks:p,bandSize:h,entry:e,index:t}),value:u,payload:e}});t=v||g?b.map(e=>{var t,r,n=Array.isArray(e.value)?e.value[0]:null;return m?{x:e.x,y:null!=n&&null!=e.y&&null!==(r=c.scale.map(n))&&void 0!==r?r:null,payload:e.payload}:{x:null!=n&&null!==(t=s.scale.map(n))&&void 0!==t?t:null,y:e.y,payload:e.payload}}):m?c.scale.map(y):s.scale.map(y);return{points:b,baseLine:null!=t?t:0,isRange:g}}({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataStartIndex:d,areaSettings:s,stackedData:a,displayedData:p,chartBaseValue:c,bandSize:l})}}),PN=["id"],jN=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function AN(){return AN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AN.apply(null,arguments)}function kN(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function NN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_N(Object(r),!0).forEach(function(t){MN(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_N(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function MN(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TN(e,t){return e&&"none"!==e?e:t}var IN=e=>{var{dataKey:t,name:r,stroke:n,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:TN(n,i),value:pc(r,t),payload:e}]},DN=r.memo(e=>{var{dataKey:t,data:n,stroke:i,strokeWidth:a,fill:o,name:l,hide:s,unit:c,tooltipType:u,id:d}=e,f={dataDefinedOnItem:n,getPosition:an,settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:void 0,name:pc(l,t),hide:s,type:u,color:TN(i,o),unit:c,graphicalItemId:d}};return r.createElement(_A,{tooltipEntrySettings:f})});function CN(e){var{clipPathId:t,points:n,props:i}=e,{needClip:a,dot:o,dataKey:l}=i,s=at(i);return r.createElement(GA,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:s,needClip:a,clipPathId:t})}function zN(e){var{showLabels:t,children:n,points:i}=e,a=i.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return NN(NN({},n),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:n,fill:void 0})});return r.createElement(Pj,{value:t?a:void 0},n)}function LN(e){var{points:t,baseLine:n,needClip:i,clipPathId:a,props:o}=e,{layout:l,type:s,stroke:c,connectNulls:u,isRange:d}=o,{id:f}=o,p=kN(o,PN),h=at(p),v=lt(p);return r.createElement(r.Fragment,null,(null==t?void 0:t.length)>1&&r.createElement(pt,{clipPath:i?"url(#clipPath-".concat(a,")"):void 0},r.createElement(pf,AN({},v,{id:f,points:t,connectNulls:u,type:s,baseLine:n,layout:l,stroke:"none",className:"recharts-area-area"})),"none"!==c&&r.createElement(pf,AN({},h,{className:"recharts-area-curve",layout:l,type:s,connectNulls:u,fill:"none",points:t})),"none"!==c&&d&&Array.isArray(n)&&r.createElement(pf,AN({},h,{className:"recharts-area-curve",layout:l,type:s,connectNulls:u,fill:"none",points:n}))),r.createElement(CN,{points:t,props:p,clipPathId:a}))}function BN(e){var t,n,{alpha:i,baseLine:a,points:o,strokeWidth:l}=e,s=null===(t=o[0])||void 0===t?void 0:t.y,c=null===(n=o[o.length-1])||void 0===n?void 0:n.y;if(!Ys(s)||!Ys(c))return null;var u=i*Math.abs(s-c),d=Math.max(...o.map(e=>e.x||0));return qr(a)?d=Math.max(a,d):a&&Array.isArray(a)&&a.length&&(d=Math.max(...a.map(e=>e.x||0),d)),qr(d)?r.createElement("rect",{x:0,y:s<c?s:s-u,width:d+(l?parseInt("".concat(l),10):1),height:Math.floor(u)}):null}function RN(e){var t,n,{alpha:i,baseLine:a,points:o,strokeWidth:l}=e,s=null===(t=o[0])||void 0===t?void 0:t.x,c=null===(n=o[o.length-1])||void 0===n?void 0:n.x;if(!Ys(s)||!Ys(c))return null;var u=i*Math.abs(s-c),d=Math.max(...o.map(e=>e.y||0));return qr(a)?d=Math.max(a,d):a&&Array.isArray(a)&&a.length&&(d=Math.max(...a.map(e=>e.y||0),d)),qr(d)?r.createElement("rect",{x:s<c?s:s-u,y:0,width:u,height:Math.floor(d+(l?parseInt("".concat(l),10):1))}):null}function VN(e){var{alpha:t,layout:n,points:i,baseLine:a,strokeWidth:o}=e;return"vertical"===n?r.createElement(BN,{alpha:t,points:i,baseLine:a,strokeWidth:o}):r.createElement(RN,{alpha:t,points:i,baseLine:a,strokeWidth:o})}function KN(e){var{needClip:t,clipPathId:n,props:i,previousPointsRef:a,previousBaselineRef:o}=e,{points:l,baseLine:d,isAnimationActive:f,animationBegin:p,animationDuration:h,animationEasing:v,onAnimationStart:y,onAnimationEnd:m}=i,g=Yf(s(()=>({points:l,baseLine:d}),[l,d]),"recharts-area-"),b=vu(),[x,w]=c(!1),O=!x,E=u(()=>{"function"==typeof m&&m(),w(!1)},[m]),S=u(()=>{"function"==typeof y&&y(),w(!0)},[y]);if(null==b)return null;var P=a.current,j=o.current;return r.createElement(zN,{showLabels:O,points:l},i.children,r.createElement(qf,{animationId:g,begin:p,duration:h,isActive:f,easing:v,onAnimationEnd:E,onAnimationStart:S,key:g},e=>{if(P){var s,c=P.length/l.length,u=1===e?l:l.map((t,r)=>{var n=Math.floor(r*c);if(P[n]){var i=P[n];return NN(NN({},t),{},{x:Qr(i.x,t.x,e),y:Qr(i.y,t.y,e)})}return t});return s=qr(d)?Qr(j,d,e):tn(d)||Ur(d)?Qr(j,0,e):d.map((t,r)=>{var n=Math.floor(r*c);if(Array.isArray(j)&&j[n]){var i=j[n];return NN(NN({},t),{},{x:Qr(i.x,t.x,e),y:Qr(i.y,t.y,e)})}return t}),e>0&&(a.current=u,o.current=s),r.createElement(LN,{points:u,baseLine:s,needClip:t,clipPathId:n,props:i})}return e>0&&(a.current=l,o.current=d),r.createElement(pt,null,f&&r.createElement("defs",null,r.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.createElement(VN,{alpha:e,points:l,baseLine:d,layout:b,strokeWidth:i.strokeWidth}))),r.createElement(pt,{clipPath:"url(#animationClipPath-".concat(n,")")},r.createElement(LN,{points:l,baseLine:d,needClip:t,clipPathId:n,props:i})))}),r.createElement(kj,{label:i.label}))}function $N(e){var{needClip:t,clipPathId:n,props:i}=e,a=d(null),o=d();return r.createElement(KN,{needClip:t,clipPathId:n,props:i,previousPointsRef:a,previousBaselineRef:o})}class FN extends x{render(){var{hide:e,dot:t,points:n,className:i,top:a,left:o,needClip:l,xAxisId:s,yAxisId:c,width:u,height:d,id:f,baseLine:p,zIndex:h}=this.props;if(e)return null;var v=S("recharts-area",i),y=f,{r:m,strokeWidth:g}=W_(t),b=tA(t),x=2*m+g,w=l?"url(#clipPath-".concat(b?"":"dots-").concat(y,")"):void 0;return r.createElement(kS,{zIndex:h},r.createElement(pt,{className:v},l&&r.createElement("defs",null,r.createElement(C_,{clipPathId:y,xAxisId:s,yAxisId:c}),!b&&r.createElement("clipPath",{id:"clipPath-dots-".concat(y)},r.createElement("rect",{x:o-x/2,y:a-x/2,width:u+x,height:d+x}))),r.createElement($N,{needClip:l,clipPathId:y,props:this.props})),r.createElement(gk,{points:n,mainColor:TN(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:w}),this.props.isRange&&Array.isArray(p)&&r.createElement(gk,{points:p,mainColor:TN(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:w}))}}var WN={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:ev.area};function UN(e){var t,{activeDot:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:l,dot:s,fill:c,fillOpacity:u,hide:d,isAnimationActive:f,legendType:p,stroke:h,xAxisId:v,yAxisId:y}=e,m=kN(e,jN),g=hu(),b=tS(),{needClip:x}=D_(v,y),w=Ic(),{points:O,isRange:E,baseLine:S}=null!==(t=xa(t=>SN(t,e.id,w)))&&void 0!==t?t:{},P=pk();if("horizontal"!==g&&"vertical"!==g||null==P)return null;if("AreaChart"!==b&&"ComposedChart"!==b)return null;var{height:j,width:A,x:k,y:_}=P;return O&&O.length?r.createElement(FN,AN({},m,{activeDot:n,animationBegin:i,animationDuration:a,animationEasing:o,baseLine:S,connectNulls:l,dot:s,fill:c,fillOpacity:u,height:j,hide:d,layout:g,isAnimationActive:f,isRange:E,legendType:p,needClip:x,points:O,stroke:h,width:A,left:k,top:_,xAxisId:v,yAxisId:y})):null}var HN=(e,t,r,n,i)=>{var a=null!=r?r:t;if(qr(a))return a;var o="horizontal"===e?i:n,l=o.scale.domain();if("number"===o.type){var s=Math.max(l[0],l[1]),c=Math.min(l[0],l[1]);return"dataMin"===a?c:"dataMax"===a||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===a?l[0]:"dataMax"===a?l[1]:l[0]};function qN(e){var t=bn(e,WN),n=Ic();return r.createElement(IA,{id:t.id,type:"area"},e=>r.createElement(r.Fragment,null,r.createElement(NA,{legendPayload:IN(t)}),r.createElement(DN,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),r.createElement($A,{type:"area",id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:ac(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),r.createElement(UN,AN({},t,{id:e}))))}var YN=r.memo(qN,Dd);YN.displayName="Area";var GN="production"===process.env.NODE_ENV,XN="Invariant failed";function ZN(){return ZN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ZN.apply(null,arguments)}function JN(e){return r.createElement(SA,ZN({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var QN=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(r,n)=>{if(qr(e))return e;var i=qr(r)||tn(r);return i?e(r,n):(i||function(e,t){if(GN)throw new Error(XN);var r="function"==typeof t?t():t,n=r?"".concat(XN,": ").concat(r):XN;throw new Error(n)}(0,"minPointSize callback function received a value with type of ".concat(typeof r,". Currently only numbers or null/undefined are supported.")),t)}},eM=Ta([kx,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),tM=Ta([eM],e=>null==e?void 0:e.maxBarSize),rM=Ta([pu,kx,hN,vN,(e,t,r)=>r],(e,t,r,n,i)=>t.filter(t=>"horizontal"===e?t.xAxisId===r:t.yAxisId===n).filter(e=>e.isPanorama===i).filter(e=>!1===e.hide).filter(e=>"bar"===e.type)),nM=Ta([rM,e=>e.rootProps.barSize,(e,t)=>{var r=pu(e),n=hN(e,t),i=vN(e,t);if(null!=n&&null!=i)return"horizontal"===r?aO(e,"xAxis",n):aO(e,"yAxis",i)}],(e,t,r)=>{var n=e.filter(wv),i=e.filter(e=>null==e.stackId),a=n.reduce((e,t)=>{var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{}),o=Object.entries(a).map(e=>{var n,[i,a]=e;return{stackId:i,dataKeys:a.map(e=>e.dataKey),barSize:bk(t,r,null===(n=a[0])||void 0===n?void 0:n.barSize)}});return[...o,...i.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>null!=e),barSize:bk(t,r,e.barSize)}))]}),iM=(e,t,r)=>{var n,i,a=pu(e),o=hN(e,t),l=vN(e,t);if(null!=o&&null!=l)return"horizontal"===a?(n=dO(e,"xAxis",o,r),i=uO(e,"xAxis",o,r)):(n=dO(e,"yAxis",l,r),i=uO(e,"yAxis",l,r)),dc(n,i)},aM=Ta([nM,Hh,e=>e.rootProps.barGap,qh,(e,t,r)=>{var n,i,a=eM(e,t);if(null==a)return 0;var o=hN(e,t),l=vN(e,t);if(null==o||null==l)return 0;var s,c,u=pu(e),d=Hh(e),{maxBarSize:f}=a,p=tn(f)?d:f;return"horizontal"===u?(s=dO(e,"xAxis",o,r),c=uO(e,"xAxis",o,r)):(s=dO(e,"yAxis",l,r),c=uO(e,"yAxis",l,r)),null!==(n=null!==(i=dc(s,c,!0))&&void 0!==i?i:p)&&void 0!==n?n:0},iM,tM],(e,t,r,n,i,a,o)=>{var l=tn(o)?t:o,s=function(e,t,r,n,i){var a,o=n.length;if(!(o<1)){var l,s=Zr(e,r,0,!0),c=[];if(Ys(null===(a=n[0])||void 0===a?void 0:a.barSize)){var u=!1,d=r/o,f=n.reduce((e,t)=>e+(t.barSize||0),0);(f+=(o-1)*s)>=r&&(f-=(o-1)*s,s=0),f>=r&&d>0&&(u=!0,f=o*(d*=.9));var p={offset:((r-f)/2|0)-s,size:0};l=n.reduce((e,t)=>{var r,n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p.offset+p.size+s,size:u?d:null!==(r=t.barSize)&&void 0!==r?r:0}},i=[...e,n];return p=n.position,i},c)}else{var h=Zr(t,r,0,!0);r-2*h-(o-1)*s<=0&&(s=0);var v=(r-2*h-(o-1)*s)/o;v>1&&(v>>=0);var y=Ys(i)?Math.min(v,i):v;l=n.reduce((e,t,r)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:h+(v+s)*r+(v-y)/2,size:y}}],c)}return l}}(r,n,i!==a?i:a,e,l);return i!==a&&null!=s&&(s=s.map(e=>wk(wk({},e),{},{position:wk(wk({},e.position),{},{offset:e.position.offset-i/2})}))),s}),oM=Ta([aM,eM],(e,t)=>{if(null!=e&&null!=t){var r=e.find(e=>e.stackId===t.stackId&&null!=t.dataKey&&e.dataKeys.includes(t.dataKey));if(null!=r)return r.position}}),lM=Ta([(e,t,r)=>{var n=pu(e),i=hN(e,t),a=vN(e,t);if(null!=i&&null!=a)return"horizontal"===n?Jx(e,"yAxis",a,r):Jx(e,"xAxis",i,r)},eM],(e,t)=>{var r=bv(t);if(e&&null!=r&&null!=t){var{stackId:n}=t;if(null!=n){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(e=>e.key===r)}}}}),sM=Ta([_c,Mc,(e,t,r)=>{var n=hN(e,t);if(null!=n)return dO(e,"xAxis",n,r)},(e,t,r)=>{var n=vN(e,t);if(null!=n)return dO(e,"yAxis",n,r)},(e,t,r)=>{var n=hN(e,t);if(null!=n)return uO(e,"xAxis",n,r)},(e,t,r)=>{var n=vN(e,t);if(null!=n)return uO(e,"yAxis",n,r)},oM,pu,rh,iM,lM,eM,(e,t,r,n)=>n],(e,t,r,n,i,a,o,l,s,c,u,d,f)=>{var{chartData:p,dataStartIndex:h,dataEndIndex:v}=s;if(null!=d&&null!=o&&null!=t&&("horizontal"===l||"vertical"===l)&&null!=r&&null!=n&&null!=i&&null!=a&&null!=c){var y,{data:m}=d;if(null!=(y=null!=m&&m.length>0?m:null==p?void 0:p.slice(h,v+1)))return function(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n,hasCustomShape:i},pos:a,bandSize:o,xAxis:l,yAxis:s,xAxisTicks:c,yAxisTicks:u,stackedData:d,displayedData:f,offset:p,cells:h,parentViewBox:v,dataStartIndex:y}=e,m="horizontal"===t?s:l,g=d?m.scale.domain():null,b=(e=>{var{numericAxis:t}=e,r=t.scale.domain();if("number"===t.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:m}),x=m.scale.map(b);return f.map((e,f)=>{var m,w,O,E,S,P;if(d){var j=d[f+y];if(null==j)return null;m=((e,t)=>{if(!t||2!==t.length||!qr(t[0])||!qr(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!qr(e[0])||e[0]<r)&&(i[0]=r),(!qr(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i})(j,g)}else m=Qs(e,r),Array.isArray(m)||(m=[b,m]);var A=QN(n,MM)(m[1],f);if("horizontal"===t){var k,_=s.scale.map(m[0]),N=s.scale.map(m[1]);if(null==_||null==N)return null;w=lc({axis:l,ticks:c,bandSize:o,offset:a.offset,entry:e,index:f}),O=null!==(k=null!=N?N:_)&&void 0!==k?k:void 0,E=a.size;var M=_-N;if(S=Ur(M)?0:M,P={x:w,y:p.top,width:E,height:p.height},Math.abs(A)>0&&Math.abs(S)<Math.abs(A)){var T=Wr(S||A)*(Math.abs(A)-Math.abs(S));O-=T,S+=T}}else{var I=l.scale.map(m[0]),D=l.scale.map(m[1]);if(null==I||null==D)return null;if(w=I,O=lc({axis:s,ticks:u,bandSize:o,offset:a.offset,entry:e,index:f}),E=D-I,S=a.size,P={x:p.left,y:O,width:p.width,height:S},Math.abs(A)>0&&Math.abs(E)<Math.abs(A))E+=Wr(E||A)*(Math.abs(A)-Math.abs(E))}return null!=w&&null!=O&&null!=E&&null!=S&&(i||0!==E&&0!==S)?bM(bM({},e),{},{stackedBarStart:x,x:w,y:O,width:E,height:S,value:d?m:m[1],payload:e,background:P,tooltipPosition:{x:w+E/2,y:O+S/2},parentViewBox:v,originalDataIndex:f},h&&h[f]&&h[f].props):null}).filter(Boolean)}({layout:l,barSettings:d,pos:o,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:y,offset:e,cells:f,dataStartIndex:h})}}),cM=["index"];function uM(){return uM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uM.apply(null,arguments)}var dM=o(void 0),fM=e=>{var{index:t}=e,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,cM),i=(e=>{var t=l(dM);if(null!=t){var{stackId:r}=t;return"url(#".concat(((e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t))(r,e),")")}})(t);return r.createElement(pt,uM({className:"recharts-bar-stack-layer",clipPath:i},n))},pM=["onMouseEnter","onMouseLeave","onClick"],hM=["value","background","tooltipPosition"],vM=["id"],yM=["onMouseEnter","onClick","onMouseLeave"];function mM(){return mM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mM.apply(null,arguments)}function gM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gM(Object(r),!0).forEach(function(t){xM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xM(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wM(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var OM=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:pc(r,t),payload:e}]},EM=r.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:i,fill:a,name:o,hide:l,unit:s,tooltipType:c,id:u}=e,d={dataDefinedOnItem:void 0,getPosition:an,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:pc(o,t),hide:l,type:c,color:a,unit:s,graphicalItemId:u}};return r.createElement(_A,{tooltipEntrySettings:d})});function SM(e){var t=xa(LE),{data:n,dataKey:i,background:a,allOtherBarProps:o}=e,{onMouseEnter:l,onMouseLeave:s,onClick:c}=o,u=wM(o,pM),d=jA(l,i,o.id),f=AA(s),p=kA(c,i,o.id);if(!a||null==n)return null;var h,v,y=ot(a);return r.createElement(kS,{zIndex:(h=a,v=ev.barBackground,h&&"object"==typeof h&&"zIndex"in h&&"number"==typeof h.zIndex&&Ys(h.zIndex)?h.zIndex:v)},n.map((e,n)=>{var{value:o,background:l,tooltipPosition:s}=e,c=wM(e,hM);if(!l)return null;var h=d(e,n),v=f(e,n),m=p(e,n),g=bM(bM(bM(bM(bM({option:a,isActive:String(n)===t},c),{},{fill:"#eee"},l),y),yn(u,e,n)),{},{onMouseEnter:h,onMouseLeave:v,onClick:m,dataKey:i,index:n,className:"recharts-bar-background-rectangle"});return r.createElement(JN,mM({key:"background-bar-".concat(n)},g))}))}function PM(e){var{showLabels:t,children:n,rects:i}=e,a=null==i?void 0:i.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return bM(bM({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return r.createElement(Pj,{value:t?a:void 0},n)}function jM(e){var{shape:t,activeBar:n,baseProps:i,entry:a,index:o,dataKey:l}=e,s=xa(LE),d=xa(RE),f=n&&String(a.originalDataIndex)===s&&(null==d||l===d),[h,v]=c(!1),[y,m]=c(!1);p(()=>{var e;return f?(v(!0),e=requestAnimationFrame(()=>{m(!0)})):m(!1),()=>{cancelAnimationFrame(e)}},[f]);var g,b=u(()=>{f||v(!1)},[f]),x=f&&y,w=f||h;g=f?!0===n?t:n:t;var O=r.createElement(JN,mM({},i,{name:String(i.name)},a,{isActive:x,option:g,index:o,dataKey:l,onTransitionEnd:b}));return w?r.createElement(kS,{zIndex:ev.activeBar},r.createElement(fM,{index:a.originalDataIndex},O)):O}function AM(e){var{shape:t,baseProps:n,entry:i,index:a,dataKey:o}=e;return r.createElement(JN,mM({},n,{name:String(n.name)},i,{isActive:!1,option:t,index:a,dataKey:o}))}function kM(e){var t,{data:n,props:i}=e,a=null!==(t=at(i))&&void 0!==t?t:{},{id:o}=a,l=wM(a,vM),{shape:s,dataKey:c,activeBar:u}=i,{onMouseEnter:d,onClick:f,onMouseLeave:p}=i,h=wM(i,yM),v=jA(d,c,o),y=AA(p),m=kA(f,c,o);return n?r.createElement(r.Fragment,null,n.map((e,t)=>r.createElement(fM,mM({index:e.originalDataIndex,key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(t),className:"recharts-bar-rectangle"},yn(h,e,t),{onMouseEnter:v(e,t),onMouseLeave:y(e,t),onClick:m(e,t)}),u?r.createElement(jM,{shape:s,activeBar:u,baseProps:l,entry:e,index:t,dataKey:c}):r.createElement(AM,{shape:s,baseProps:l,entry:e,index:t,dataKey:c})))):null}function _M(e){var{props:t,previousRectanglesRef:n}=e,{data:i,layout:a,isAnimationActive:o,animationBegin:l,animationDuration:s,animationEasing:d,onAnimationEnd:f,onAnimationStart:p}=t,h=n.current,v=Yf(t,"recharts-bar-"),[y,m]=c(!1),g=!y,b=u(()=>{"function"==typeof f&&f(),m(!1)},[f]),x=u(()=>{"function"==typeof p&&p(),m(!0)},[p]);return r.createElement(PM,{showLabels:g,rects:i},r.createElement(qf,{animationId:v,begin:l,duration:s,isActive:o,easing:d,onAnimationEnd:b,onAnimationStart:x,key:v},e=>{var o=1===e?i:null==i?void 0:i.map((t,r)=>{var n=h&&h[r];if(n)return bM(bM({},t),{},{x:Qr(n.x,t.x,e),y:Qr(n.y,t.y,e),width:Qr(n.width,t.width,e),height:Qr(n.height,t.height,e)});if("horizontal"===a){var i=Qr(0,t.height,e),o=Qr(t.stackedBarStart,t.y,e);return bM(bM({},t),{},{y:o,height:i})}var l=Qr(0,t.width,e),s=Qr(t.stackedBarStart,t.x,e);return bM(bM({},t),{},{width:l,x:s})});return e>0&&(n.current=null!=o?o:null),null==o?null:r.createElement(pt,null,r.createElement(kM,{props:t,data:o}))}),r.createElement(kj,{label:t.label}),t.children)}function NM(e){var t=d(null);return r.createElement(_M,{previousRectanglesRef:t,props:e})}var MM=0,TM=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Qs(e,t)}};class IM extends x{render(){var{hide:e,data:t,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:l,background:s,id:c}=this.props;if(e||null==t)return null;var u=S("recharts-bar",i),d=c;return r.createElement(pt,{className:u,id:c},l&&r.createElement("defs",null,r.createElement(C_,{clipPathId:d,xAxisId:a,yAxisId:o})),r.createElement(pt,{className:"recharts-bar-rectangles",clipPath:l?"url(#clipPath-".concat(d,")"):void 0},r.createElement(SM,{data:t,dataKey:n,background:s,allOtherBarProps:this.props}),r.createElement(NM,this.props)))}}var DM={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:MM,xAxisId:0,yAxisId:0,zIndex:ev.bar};function CM(e){var t,{xAxisId:n,yAxisId:i,hide:a,legendType:o,minPointSize:l,activeBar:s,animationBegin:c,animationDuration:u,animationEasing:d,isAnimationActive:f}=e,{needClip:p}=D_(n,i),h=hu(),v=Ic(),y=Zj(e.children,pP),m=xa(t=>sM(t,e.id,v,y));if("vertical"!==h&&"horizontal"!==h)return null;var g=null==m?void 0:m[0];return t=null==g||null==g.height||null==g.width?0:"vertical"===h?g.height/2:g.width/2,r.createElement(I_,{xAxisId:n,yAxisId:i,data:m,dataPointFormatter:TM,errorBarOffset:t},r.createElement(IM,mM({},e,{layout:h,needClip:p,data:m,xAxisId:n,yAxisId:i,hide:a,legendType:o,minPointSize:l,activeBar:s,animationBegin:c,animationDuration:u,animationEasing:d,isAnimationActive:f})))}function zM(e){var t,n,i=bn(e,DM),a=(t=i.stackId,null!=(n=l(dM))?n.stackId:null!=t?ac(t):void 0),o=Ic();return r.createElement(IA,{id:i.id,type:"bar"},e=>r.createElement(r.Fragment,null,r.createElement(NA,{legendPayload:OM(i)}),r.createElement(EM,{dataKey:i.dataKey,stroke:i.stroke,strokeWidth:i.strokeWidth,fill:i.fill,name:i.name,hide:i.hide,unit:i.unit,tooltipType:i.tooltipType,id:e}),r.createElement($A,{type:"bar",id:e,data:void 0,xAxisId:i.xAxisId,yAxisId:i.yAxisId,zAxisId:0,dataKey:i.dataKey,stackId:a,hide:i.hide,barSize:i.barSize,minPointSize:i.minPointSize,maxBarSize:i.maxBarSize,isPanorama:o,hasCustomShape:null!=i.shape}),r.createElement(kS,{zIndex:i.zIndex},r.createElement(CM,mM({},i,{id:e})))))}var LM=r.memo(zM,Dd);LM.displayName="Bar";var BM=["option","isActive"];function RM(){return RM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RM.apply(null,arguments)}function VM(e){var{option:t,isActive:n}=e,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,BM);return"string"==typeof t?r.createElement(SA,RM({option:r.createElement(pn,RM({type:t},i)),isActive:n,shapeType:"symbols"},i)):r.createElement(SA,RM({option:t,isActive:n,shapeType:"symbols"},i))}var KM=Ta([kx,(e,t,r,n,i)=>i],(e,t)=>e.filter(e=>"scatter"===e.type).find(e=>e.id===t)),$M=Ta([(e,t,r,n,i,a,o)=>th(e,0,0,o),(e,t,r,n,i,a,o)=>dO(e,"xAxis",t,o),(e,t,r,n,i,a,o)=>uO(e,"xAxis",t,o),(e,t,r,n,i,a,o)=>dO(e,"yAxis",r,o),(e,t,r,n,i,a,o)=>uO(e,"yAxis",r,o),(e,t,r,n)=>hO(e,"zAxis",n,!1),KM,(e,t,r,n,i,a)=>a],(e,t,r,n,i,a,o,l)=>{var s,{chartData:c,dataStartIndex:u,dataEndIndex:d}=e;if(null!=o&&(null!=(s=null!=(null==o?void 0:o.data)&&o.data.length>0?o.data:null==c?void 0:c.slice(u,d+1))&&null!=t&&null!=n&&null!=r&&null!=i&&0!==(null==r?void 0:r.length)&&0!==(null==i?void 0:i.length)))return function(e){var{displayedData:t,xAxis:r,yAxis:n,zAxis:i,scatterSettings:a,xAxisTicks:o,yAxisTicks:l,cells:s}=e,c=tn(r.dataKey)?a.dataKey:r.dataKey,u=tn(n.dataKey)?a.dataKey:n.dataKey,d=i&&i.dataKey,f=i?i.range:Ox.range,p=f&&f[0],h=r.scale.bandwidth?r.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0;return t.map((e,t)=>{var f=Qs(e,c),y=Qs(e,u),m=!tn(d)&&Qs(e,d)||"-",g=[{name:tn(r.dataKey)?a.name:r.name||String(r.dataKey),unit:r.unit||"",value:f,payload:e,dataKey:c,type:a.tooltipType,graphicalItemId:a.id},{name:tn(n.dataKey)?a.name:n.name||String(n.dataKey),unit:n.unit||"",value:y,payload:e,dataKey:u,type:a.tooltipType,graphicalItemId:a.id}];"-"!==m&&null!=i&&g.push({name:i.name||i.dataKey,unit:i.unit||"",value:m,payload:e,dataKey:d,type:a.tooltipType,graphicalItemId:a.id});var b=oc({axis:r,ticks:o,bandSize:h,entry:e,index:t,dataKey:c}),x=oc({axis:n,ticks:l,bandSize:v,entry:e,index:t,dataKey:u}),w="-"!==m&&null!=i?i.scale.map(m):p,O=null==w?0:Math.sqrt(Math.max(w,0)/Math.PI);return GM(GM({},e),{},{cx:b,cy:x,x:null==b?void 0:b-O,y:null==x?void 0:x-O,width:2*O,height:2*O,size:w,node:{x:f,y:y,z:m},tooltipPayload:g,tooltipPosition:{x:b,y:x},payload:e},s&&s[t]&&s[t].props)})}({displayedData:s,xAxis:t,yAxis:n,zAxis:a,scatterSettings:o,xAxisTicks:r,yAxisTicks:i,cells:l})}),FM=["id"],WM=["onMouseEnter","onClick","onMouseLeave"],UM=["animationBegin","animationDuration","animationEasing","hide","isAnimationActive","legendType","lineJointType","lineType","shape","xAxisId","yAxisId","zAxisId"];function HM(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function qM(){return qM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qM.apply(null,arguments)}function YM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function GM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?YM(Object(r),!0).forEach(function(t){XM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function XM(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ZM=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:pc(r,t),payload:e}]},JM=r.memo(e=>{var{dataKey:t,points:n,stroke:i,strokeWidth:a,fill:o,name:l,hide:s,tooltipType:c,id:u}=e,d={dataDefinedOnItem:null==n?void 0:n.map(e=>e.tooltipPayload),getPosition:e=>{var t;return null==n||null===(t=n[Number(e)])||void 0===t?void 0:t.tooltipPosition},settings:{stroke:i,strokeWidth:a,fill:o,nameKey:void 0,dataKey:t,name:pc(l,t),hide:s,type:c,color:o,unit:"",graphicalItemId:u}};return r.createElement(_A,{tooltipEntrySettings:d})});function QM(e){var{points:t,props:n}=e,{line:i,lineType:a,lineJointType:o}=n;if(!i)return null;var l,s,c=at(n),u=ot(i);if("joint"===a)l=t.map(e=>{var t,r;return{x:null!==(t=e.cx)&&void 0!==t?t:null,y:null!==(r=e.cy)&&void 0!==r?r:null}});else if("fitting"===a){var{xmin:d,xmax:f,a:p,b:h}=(e=>{for(var t=e.length,r=0,n=0,i=0,a=0,o=1/0,l=-1/0,s=0,c=0,u=0;u<t;u++){var d,f;r+=s=(null===(d=e[u])||void 0===d?void 0:d.cx)||0,n+=c=(null===(f=e[u])||void 0===f?void 0:f.cy)||0,i+=s*c,a+=s*s,o=Math.min(o,s),l=Math.max(l,s)}var p=t*a!==r*r?(t*i-r*n)/(t*a-r*r):0;return{xmin:o,xmax:l,a:p,b:(n-p*r)/t}})(t),v=e=>p*e+h;l=[{x:d,y:v(d)},{x:f,y:v(f)}]}var y=GM(GM(GM({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:l});return s=r.isValidElement(i)?r.cloneElement(i,y):"function"==typeof i?i(y):r.createElement(pf,qM({},y,{type:o})),r.createElement(pt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},s)}function eT(e){var{showLabels:t,points:n,children:i}=e,a=su(),o=s(()=>null==n?void 0:n.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width};return GM(GM({},n),{},{value:void 0,payload:e.payload,viewBox:n,parentViewBox:a,fill:void 0})}),[a,n]);return r.createElement(Pj,{value:t?o:void 0},i)}function tT(e){var t,{points:n,allOtherScatterProps:i}=e,{shape:a,activeShape:o,dataKey:l}=i,{id:s}=i,c=HM(i,FM),u=xa(LE),{onMouseEnter:d,onClick:f,onMouseLeave:p}=i,h=HM(i,WM),v=jA(d,l,s),y=AA(p),m=kA(f,l,s);if(t=n,!(Array.isArray(t)&&t.length>0))return null;var g=at(c);return r.createElement(r.Fragment,null,r.createElement(QM,{points:n,props:c}),n.map((e,t)=>{var n=null!=o&&!1!==o,i=n&&u===String(t),l=n&&i?o:a,c=GM(GM(GM({},g),e),{},{index:t,[xc]:String(s)});return r.createElement(kS,{key:"symbol-".concat(null==e?void 0:e.cx,"-").concat(null==e?void 0:e.cy,"-").concat(null==e?void 0:e.size,"-").concat(t),zIndex:i?ev.activeDot:void 0},r.createElement(pt,qM({className:"recharts-scatter-symbol"},yn(h,e,t),{onMouseEnter:v(e,t),onMouseLeave:y(e,t),onClick:m(e,t)}),r.createElement(VM,qM({option:l,isActive:i},c))))}))}function rT(e){var{previousPointsRef:t,props:n}=e,{points:i,isAnimationActive:a,animationBegin:o,animationDuration:l,animationEasing:s}=n,d=t.current,f=Yf(n,"recharts-scatter-"),[p,h]=c(!1),v=u(()=>{h(!1)},[]),y=u(()=>{h(!0)},[]),m=!p;return r.createElement(eT,{showLabels:m,points:i},n.children,r.createElement(qf,{animationId:f,begin:o,duration:l,isActive:a,easing:s,onAnimationEnd:v,onAnimationStart:y,key:f},e=>{var a=1===e?i:null==i?void 0:i.map((t,r)=>{var n=d&&d[r];return GM(GM({},t),{},n?{cx:null==t.cx?void 0:Qr(n.cx,t.cx,e),cy:null==t.cy?void 0:Qr(n.cy,t.cy,e),size:Qr(n.size,t.size,e)}:{size:Qr(0,t.size,e)})});return e>0&&(t.current=a),r.createElement(pt,null,r.createElement(tT,{points:a,allOtherScatterProps:n,showLabels:m}))}),r.createElement(kj,{label:n.label}))}var nT=(e,t,r)=>({x:e.cx,y:e.cy,value:Number("x"===r?e.node.x:e.node.y),errorVal:Qs(e,t)});function iT(e){var{hide:t,points:n,className:i,needClip:a,xAxisId:o,yAxisId:l,id:s}=e,c=d(null);if(t)return null;var u=S("recharts-scatter",i),f=s;return r.createElement(kS,{zIndex:e.zIndex},r.createElement(pt,{className:u,clipPath:a?"url(#clipPath-".concat(f,")"):void 0,id:s},a&&r.createElement("defs",null,r.createElement(C_,{clipPathId:f,xAxisId:o,yAxisId:l})),r.createElement(I_,{xAxisId:o,yAxisId:l,data:n,dataPointFormatter:nT,errorBarOffset:0},r.createElement(pt,{key:"recharts-scatter-symbols"},r.createElement(rT,{props:e,previousPointsRef:c})))))}var aT={xAxisId:0,yAxisId:0,zAxisId:0,label:!1,line:!1,legendType:"circle",lineType:"joint",lineJointType:"linear",shape:"circle",hide:!1,isAnimationActive:"auto",animationBegin:0,animationDuration:400,animationEasing:"linear",zIndex:ev.scatter};function oT(e){var t=bn(e,aT),{animationBegin:n,animationDuration:i,animationEasing:a,hide:o,isAnimationActive:l,legendType:c,lineJointType:u,lineType:d,shape:f,xAxisId:p,yAxisId:h,zAxisId:v}=t,y=HM(t,UM),{needClip:m}=D_(p,h),g=s(()=>Zj(e.children,pP),[e.children]),b=Ic(),x=xa(t=>$M(t,p,h,v,e.id,g,b));return null==m||null==x?null:r.createElement(r.Fragment,null,r.createElement(JM,{dataKey:e.dataKey,points:x,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:e.id}),r.createElement(iT,qM({},y,{xAxisId:p,yAxisId:h,zAxisId:v,lineType:d,lineJointType:u,legendType:c,shape:f,hide:o,isAnimationActive:l,animationBegin:n,animationDuration:i,animationEasing:a,points:x,needClip:m})))}function lT(e){var t=bn(e,aT),n=Ic();return r.createElement(IA,{id:t.id,type:"scatter"},e=>r.createElement(r.Fragment,null,r.createElement(NA,{legendPayload:ZM(t)}),r.createElement($A,{type:"scatter",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:t.zAxisId,dataKey:t.dataKey,hide:t.hide,name:t.name,tooltipType:t.tooltipType,isPanorama:n}),r.createElement(oT,qM({},t,{id:e}))))}var sT=r.memo(lT,Dd);sT.displayName="Scatter";var cT=["domain","range"],uT=["domain","range"];function dT(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function fT(e,t){return e===t||!(!Array.isArray(e)||2!==e.length||!Array.isArray(t)||2!==t.length)&&(e[0]===t[0]&&e[1]===t[1])}function pT(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=dT(e,cT),{domain:a,range:o}=t,l=dT(t,uT);return!!fT(r,a)&&(!!fT(n,o)&&Dd(i,l))}var hT=["type"],vT=["dangerouslySetInnerHTML","ticks","scale"],yT=["id","scale"];function mT(){return mT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mT.apply(null,arguments)}function gT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gT(Object(r),!0).forEach(function(t){xT(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gT(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xT(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wT(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function OT(e){var t=ya(),r=d(null),n=vu(),{type:i}=e,a=wT(e,hT),o=rv(n,"xAxis",i),l=s(()=>{if(null!=o)return bT(bT({},a),{},{type:o})},[a,o]);return h(()=>{null!=l&&(null===r.current?t(ek(l)):r.current!==l&&t(tk({prev:r.current,next:l})),r.current=l)},[l,t]),h(()=>()=>{r.current&&(t(rk(r.current)),r.current=null)},[t]),null}var ET=e=>{var{xAxisId:t,className:n}=e,i=xa(Mc),a=Ic(),o="xAxis",l=xa(e=>cO(e,o,t,a)),s=xa(e=>Qw(e,t)),c=xa(e=>rO(e,t)),u=xa(e=>mx(e,t));if(null==s||null==c||null==u)return null;var{dangerouslySetInnerHTML:d,ticks:f,scale:p}=e,h=wT(e,vT),{id:v,scale:y}=u,m=wT(u,yT);return r.createElement(o_,mT({},h,m,{x:c.x,y:c.y,width:s.width,height:s.height,className:S("recharts-".concat(o," ").concat(o),n),viewBox:i,ticks:l,axisType:o,axisId:t}))},ST={allowDataOverflow:yx.allowDataOverflow,allowDecimals:yx.allowDecimals,allowDuplicatedCategory:yx.allowDuplicatedCategory,angle:yx.angle,axisLine:e_.axisLine,height:yx.height,hide:!1,includeHidden:yx.includeHidden,interval:yx.interval,label:!1,minTickGap:yx.minTickGap,mirror:yx.mirror,orientation:yx.orientation,padding:yx.padding,reversed:yx.reversed,scale:yx.scale,tick:yx.tick,tickCount:yx.tickCount,tickLine:e_.tickLine,tickSize:e_.tickSize,type:yx.type,niceTicks:yx.niceTicks,xAxisId:0},PT=e=>{var t=bn(e,ST);return r.createElement(r.Fragment,null,r.createElement(OT,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),r.createElement(ET,t))},jT=r.memo(PT,pT);jT.displayName="XAxis";var AT=["type"],kT=["dangerouslySetInnerHTML","ticks","scale"],_T=["id","scale"];function NT(){return NT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},NT.apply(null,arguments)}function MT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function TT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?MT(Object(r),!0).forEach(function(t){IT(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MT(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function IT(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DT(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function CT(e){var t=ya(),r=d(null),n=vu(),{type:i}=e,a=DT(e,AT),o=rv(n,"yAxis",i),l=s(()=>{if(null!=o)return TT(TT({},a),{},{type:o})},[o,a]);return h(()=>{null!=l&&(null===r.current?t(nk(l)):r.current!==l&&t(ik({prev:r.current,next:l})),r.current=l)},[l,t]),h(()=>()=>{r.current&&(t(ak(r.current)),r.current=null)},[t]),null}function zT(e){var{yAxisId:t,className:n,width:a,label:o}=e,l=d(null),s=d(null),c=xa(Mc),u=Ic(),f=ya(),p="yAxis",v=xa(e=>iO(e,t)),y=xa(e=>nO(e,t)),m=xa(e=>cO(e,p,t,u)),g=xa(e=>xx(e,t));if(h(()=>{if("auto"===a&&v&&!pj(o)&&!i(o)&&null!=g){var e=l.current;if(e){var r=e.getCalculatedWidth();Math.round(v.width)!==Math.round(r)&&f(ck({id:t,width:r}))}}},[m,v,f,o,t,a,g]),null==v||null==y||null==g)return null;var{dangerouslySetInnerHTML:b,ticks:x,scale:w}=e,O=DT(e,kT),{id:E,scale:P}=g,j=DT(g,_T);return r.createElement(o_,NT({},O,j,{ref:l,labelRef:s,x:y.x,y:y.y,tickTextProps:"auto"===a?{width:void 0}:{width:a},width:v.width,height:v.height,className:S("recharts-".concat(p," ").concat(p),n),viewBox:c,ticks:m,axisType:p,axisId:t}))}var LT={allowDataOverflow:bx.allowDataOverflow,allowDecimals:bx.allowDecimals,allowDuplicatedCategory:bx.allowDuplicatedCategory,angle:bx.angle,axisLine:e_.axisLine,hide:!1,includeHidden:bx.includeHidden,interval:bx.interval,label:!1,minTickGap:bx.minTickGap,mirror:bx.mirror,orientation:bx.orientation,padding:bx.padding,reversed:bx.reversed,scale:bx.scale,tick:bx.tick,tickCount:bx.tickCount,tickLine:e_.tickLine,tickSize:e_.tickSize,type:bx.type,niceTicks:bx.niceTicks,width:bx.width,yAxisId:0},BT=e=>{var t=bn(e,LT);return r.createElement(r.Fragment,null,r.createElement(CT,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),r.createElement(zT,t))},RT=r.memo(BT,pT);RT.displayName="YAxis";var VT=Ta([(e,t)=>t,pu,yv,Sv,AE,TE,aS,_c],(e,t,r,n,i,a,o,l)=>{if(e&&t&&n&&i&&a)return"horizontal"===t||"vertical"===t?((e,t,r,n,i,a,o)=>{if(e&&r&&n&&i&&function(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}(e,o)){var l=((e,t)=>"horizontal"===t?e.relativeX:"vertical"===t?e.relativeY:void 0)(e,t),s=eS(l,a,i,r,n),c=((e,t,r,n)=>{var i=t.find(e=>e&&e.index===r);if(i){if("horizontal"===e)return{x:i.coordinate,y:n.relativeY};if("vertical"===e)return{x:n.relativeX,y:i.coordinate}}return{x:0,y:0}})(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}})(e,t,n,i,a,o,l):hS(e,t,r,n,i,a,o)});function KT(e){var t,r,n,i=e.currentTarget.getBoundingClientRect();if("getBBox"in(n=e).currentTarget&&"function"==typeof n.currentTarget.getBBox){var a=e.currentTarget.getBBox();t=a.width>0?i.width/a.width:1,r=a.height>0?i.height/a.height:1}else{var o=e.currentTarget;t=o.offsetWidth>0?i.width/o.offsetWidth:1,r=o.offsetHeight>0?i.height/o.offsetHeight:1}var l=(e,n)=>({relativeX:Math.round((e-i.left)/t),relativeY:Math.round((n-i.top)/r)});return"touches"in e?Array.from(e.touches).map(e=>l(e.clientX,e.clientY)):l(e.clientX,e.clientY)}var $T=Cl("mouseClick"),FT=Rs();FT.startListening({actionCreator:$T,effect:(e,t)=>{var r=e.payload,n=VT(t.getState(),KT(r));null!=(null==n?void 0:n.activeIndex)&&t.dispatch(TO({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var WT=Cl("mouseMove"),UT=Rs(),HT=null,qT=null,YT=null;function GT(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":"children"===e&&"object"==typeof t&&null!==t?"<<CHILDREN>>":t}UT.startListening({actionCreator:WT,effect:(e,t)=>{var r=e.payload,n=t.getState(),{throttleDelay:i,throttledEvents:a}=n.eventSettings,o="all"===a||(null==a?void 0:a.includes("mousemove"));null!==HT&&(cancelAnimationFrame(HT),HT=null),null===qT||"number"==typeof i&&o||(clearTimeout(qT),qT=null),YT=KT(r);var l=()=>{var e=t.getState(),r=bO(e,e.tooltip.settings.shared);if(!YT)return HT=null,void(qT=null);if("axis"===r){var n=VT(e,YT);null!=(null==n?void 0:n.activeIndex)?t.dispatch(MO({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate})):t.dispatch(_O())}HT=null,qT=null};o?"raf"===i?HT=requestAnimationFrame(l):"number"==typeof i&&null===qT&&(qT=setTimeout(l,i)):l()}});var XT={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},ZT=ls({name:"rootProps",initialState:XT,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!==(r=t.payload.barGap)&&void 0!==r?r:XT.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),JT=ZT.reducer,{updateOptions:QT}=ZT.actions,eI=ls({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>null===e?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}),{updatePolarOptions:tI}=eI.actions,rI=eI.reducer,nI=Cl("keyDown"),iI=Cl("focus"),aI=Cl("blur"),oI=Rs(),lI=null,sI=null,cI=null;function uI(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,r)=>{if("currentTarget"===r)return t;var n=Reflect.get(e,r);return"function"==typeof n?n.bind(e):n}})}oI.startListening({actionCreator:nI,effect:(e,t)=>{cI=e.payload,null!==lI&&(cancelAnimationFrame(lI),lI=null);var r=t.getState(),{throttleDelay:n,throttledEvents:i}=r.eventSettings,a="all"===i||i.includes("keydown");null===sI||"number"==typeof n&&a||(clearTimeout(sI),sI=null);var o=()=>{try{var e=t.getState();if(!(!1!==e.rootProps.accessibilityLayer))return;var{keyboardInteraction:r}=e.tooltip,n=cI;if("ArrowRight"!==n&&"ArrowLeft"!==n&&"Enter"!==n)return;var i=KO(r,iE(e),Gx(e),EE(e)),a=null==i?-1:Number(i),o=!Number.isFinite(a)||a<0,l=TE(e),s=iE(e),c=bO(e,e.tooltip.settings.shared);if("Enter"===n){if(o)return;var u=cS(e,c,"hover",String(r.index));return void t.dispatch(DO({active:!r.active,activeIndex:r.index,activeCoordinate:u}))}var d,f="left-to-right"===vO(e)?1:-1,p="ArrowRight"===n?1:-1;if(o){var h=Gx(e),v=EE(e),y=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(d=-1,p*f>0){for(var m=0;m<s.length;m++)if(null!=KO(y(m),s,h,v)){d=m;break}}else for(var g=s.length-1;g>=0;g--)if(null!=KO(y(g),s,h,v)){d=g;break}if(d<0)return}else{d=a+p*f;var b=(null==l?void 0:l.length)||s.length;if(0===b||d>=b||d<0)return}var x=cS(e,c,"hover",String(d));t.dispatch(DO({active:!0,activeIndex:d.toString(),activeCoordinate:x}))}finally{lI=null,sI=null}};a?"raf"===n?lI=requestAnimationFrame(o):"number"==typeof n&&null===sI&&(o(),cI=null,sI=setTimeout(()=>{cI?o():(sI=null,lI=null)},n)):o()}}),oI.startListening({actionCreator:iI,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;if(!n.active&&null==n.index){var i=bO(r,r.tooltip.settings.shared),a=cS(r,i,"hover",String("0"));t.dispatch(DO({active:!0,activeIndex:"0",activeCoordinate:a}))}}}}),oI.startListening({actionCreator:aI,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;n.active&&t.dispatch(DO({active:!1,activeIndex:n.index,activeCoordinate:n.coordinate}))}}});var dI=Cl("externalEvent"),fI=Rs(),pI=new Map,hI=new Map,vI=new Map;fI.startListening({actionCreator:dI,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(null!=r){var i=n.type,a=uI(n);vI.set(i,{handler:r,reactEvent:a});var o=pI.get(i);void 0!==o&&(cancelAnimationFrame(o),pI.delete(i));var l=t.getState(),{throttleDelay:s,throttledEvents:c}=l.eventSettings,u=c,d="all"===u||(null==u?void 0:u.includes(i)),f=hI.get(i);void 0===f||"number"==typeof s&&d||(clearTimeout(f),hI.delete(i));var p=()=>{var e=vI.get(i);try{if(!e)return;var{handler:r,reactEvent:n}=e,a=t.getState(),o={activeCoordinate:FE(a),activeDataKey:RE(a),activeIndex:LE(a),activeLabel:BE(a),activeTooltipIndex:LE(a),isTooltipActive:WE(a)};r&&r(o,n)}finally{pI.delete(i),hI.delete(i),vI.delete(i)}};if(d)if("raf"===s){var h=requestAnimationFrame(p);pI.set(i,h)}else if("number"==typeof s){if(!hI.has(i)){p();var v=setTimeout(p,s);hI.set(i,v)}}else p();else p()}}});var yI=Ta([UO],e=>e.tooltipItemPayloads),mI=Ta([yI,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(null!=t){var n=e.find(e=>e.settings.graphicalItemId===r);if(null!=n){var{getPosition:i}=n;if(null!=i)return i(t)}}}),gI=Cl("touchMove"),bI=Rs(),xI=null,wI=null,OI=null,EI=null;bI.startListening({actionCreator:gI,effect:(e,t)=>{var r=e.payload;if(null!=r.touches&&0!==r.touches.length){EI=uI(r);var n=t.getState(),{throttleDelay:i,throttledEvents:a}=n.eventSettings,o="all"===a||a.includes("touchmove");null!==xI&&(cancelAnimationFrame(xI),xI=null),null===wI||"number"==typeof i&&o||(clearTimeout(wI),wI=null),OI=Array.from(r.touches).map(e=>KT({clientX:e.clientX,clientY:e.clientY,currentTarget:r.currentTarget}));var l=()=>{if(null!=EI){var e=t.getState(),r=bO(e,e.tooltip.settings.shared);if("axis"===r){var n,i=null===(n=OI)||void 0===n?void 0:n[0];if(null==i)return xI=null,void(wI=null);var a=VT(e,i);null!=(null==a?void 0:a.activeIndex)&&t.dispatch(MO({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if("item"===r){var o,l=EI.touches[0];if(null==document.elementFromPoint||null==l)return;var s=document.elementFromPoint(l.clientX,l.clientY);if(!s||!s.getAttribute)return;var c=s.getAttribute("data-recharts-item-index"),u=null!==(o=s.getAttribute(xc))&&void 0!==o?o:void 0,d=eE(e).find(e=>e.id===u);if(null==c||null==d||null==u)return;var{dataKey:f}=d,p=mI(e,c,u);t.dispatch(AO({activeDataKey:f,activeIndex:c,activeCoordinate:p,activeGraphicalItemId:u}))}xI=null,wI=null}};o?"raf"===i?xI=requestAnimationFrame(l):"number"==typeof i&&null===wI&&(l(),EI=null,wI=setTimeout(()=>{EI?l():(wI=null,xI=null)},i)):l()}}});var SI={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},PI=ls({name:"eventSettings",initialState:SI,reducers:{setEventSettings:(e,t)=>{null!=t.payload.throttleDelay&&(e.throttleDelay=t.payload.throttleDelay),null!=t.payload.throttledEvents&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:jI}=PI.actions,AI=vo({brush:Ak,cartesianAxis:uk,chartData:JS,errorBars:N_,eventSettings:PI.reducer,graphicalItems:KA,layout:Hs,legend:vd,options:US,polarAxis:zj,polarOptions:rI,referenceElements:Ck,renderedTicks:Yk,rootProps:JT,tooltip:CO,zIndex:AS});function kI(e){var{preloadedState:t,children:n,reduxStoreName:i}=e,a=Ic(),o=d(null);if(a)return n;null==o.current&&(o.current=function(e){return es({reducer:AI,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([FT.middleware,UT.middleware,oI.middleware,fI.middleware,bI.middleware]),enhancers:e=>{var t=e;return"function"==typeof e&&(t=e()),t.concat(Ql({type:"raf"}))},devTools:{serialize:{replacer:GT},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(t,i));var l=ha;return r.createElement(Md,{context:l,store:o.current},n)}function _I(e){var{layout:t,margin:r}=e,n=ya(),i=Ic();return p(()=>{i||(n(Fs(t)),n($s(r)))},[n,i,t,r]),null}var NI=g(_I,Dd);function MI(e){var t=ya();return p(()=>{t(QT(e))},[t,e]),null}var TI=g(e=>{var t=ya();return p(()=>{t(jI(e))},[t,e]),null},Dd);function II(e){var{zIndex:t,isPanorama:n}=e,i=d(null),a=ya();return h(()=>(i.current&&a(PS({zIndex:t,element:i.current,isPanorama:n})),()=>{a(jS({zIndex:t,isPanorama:n}))}),[a,t,n]),r.createElement("g",{tabIndex:-1,ref:i,className:"recharts-zIndex-layer_".concat(t)})}function DI(e){var{children:t,isPanorama:n}=e,i=xa(yS);if(!i||0===i.length)return t;var a=i.filter(e=>e<0),o=i.filter(e=>e>0);return r.createElement(r.Fragment,null,a.map(e=>r.createElement(II,{key:e,zIndex:e,isPanorama:n})),t,o.map(e=>r.createElement(II,{key:e,zIndex:e,isPanorama:n})))}var CI=["children"];function zI(){return zI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zI.apply(null,arguments)}var LI={width:"100%",height:"100%",display:"block"},BI=a((e,t)=>{var n=du(),i=fu(),a=ef();if(!Gs(n)||!Gs(i))return null;var o,l,{children:s,otherAttributes:c,title:u,desc:d}=e;return null!=c&&(o="number"==typeof c.tabIndex?c.tabIndex:a?0:void 0,l="string"==typeof c.role?c.role:a?"application":void 0),r.createElement(ut,zI({},c,{title:u,desc:d,role:l,tabIndex:o,width:n,height:i,style:LI,ref:t}),s)}),RI=e=>{var{children:t}=e,n=xa(Cc);if(!n)return null;var{width:i,height:a,y:o,x:l}=n;return r.createElement(ut,{width:i,height:a,x:l,y:o},t)},VI=a((e,t)=>{var{children:n}=e,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,CI);return Ic()?r.createElement(RI,null,r.createElement(DI,{isPanorama:!0},n)):r.createElement(BI,zI({ref:t},i),r.createElement(DI,{isPanorama:!1},n))});function KI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?KI(Object(r),!0).forEach(function(t){FI(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KI(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function FI(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WI(){return WI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},WI.apply(null,arguments)}var UI=()=>(iP(),null);function HI(e){if("number"==typeof e)return e;if("string"==typeof e){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var qI=a((e,t)=>{var n,i,a=d(null),[o,l]=c({containerWidth:HI(null===(n=e.style)||void 0===n?void 0:n.width),containerHeight:HI(null===(i=e.style)||void 0===i?void 0:i.height)}),s=u((e,t)=>{l(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]),f=u(e=>{if("function"==typeof t&&t(e),null!=a.current&&(a.current.disconnect(),a.current=null),null!=e&&"undefined"!=typeof ResizeObserver){var{width:r,height:n}=e.getBoundingClientRect();s(r,n);var i=new ResizeObserver(e=>{var t=e[0];if(null!=t){var{width:r,height:n}=t.contentRect;s(r,n)}});i.observe(e),a.current=i}},[t,s]);return p(()=>()=>{var e=a.current;null!=e&&e.disconnect()},[s]),r.createElement(r.Fragment,null,r.createElement(mu,{width:o.containerWidth,height:o.containerHeight}),r.createElement("div",WI({ref:f},e)))}),YI=a((e,t)=>{var{width:n,height:i}=e,[a,o]=c({containerWidth:HI(n),containerHeight:HI(i)}),l=u((e,t)=>{o(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]),s=u(e=>{if("function"==typeof t&&t(e),null!=e){var{width:r,height:n}=e.getBoundingClientRect();l(r,n)}},[t,l]);return r.createElement(r.Fragment,null,r.createElement(mu,{width:a.containerWidth,height:a.containerHeight}),r.createElement("div",WI({ref:s},e)))}),GI=a((e,t)=>{var{width:n,height:i}=e;return r.createElement(r.Fragment,null,r.createElement(mu,{width:n,height:i}),r.createElement("div",WI({ref:t},e)))}),XI=a((e,t)=>{var{width:n,height:i}=e;return"string"==typeof n||"string"==typeof i?r.createElement(YI,WI({},e,{ref:t})):"number"==typeof n&&"number"==typeof i?r.createElement(GI,WI({},e,{width:n,height:i,ref:t})):r.createElement(r.Fragment,null,r.createElement(mu,{width:n,height:i}),r.createElement("div",WI({ref:t},e)))});var ZI=a((e,t)=>{var{children:n,className:i,height:a,onClick:o,onContextMenu:l,onDoubleClick:s,onMouseDown:f,onMouseEnter:h,onMouseLeave:v,onMouseMove:y,onMouseUp:m,onTouchEnd:g,onTouchMove:b,onTouchStart:x,style:w,width:O,responsive:E,dispatchTouchEvents:P=!0}=e,j=d(null),A=ya(),[k,_]=c(null),[N,M]=c(null),T=function(){var e=ya(),[t,r]=c(null),n=xa(yc);return p(()=>{if(null!=t){var r=t.getBoundingClientRect().width/t.offsetWidth;Ys(r)&&r!==n&&e(Us(r))}},[t,e,n]),r}(),I=iu(),D=(null==I?void 0:I.width)>0?I.width:O,C=(null==I?void 0:I.height)>0?I.height:a,z=u(e=>{T(e),"function"==typeof t&&t(e),_(e),M(e),null!=e&&(j.current=e)},[T,t,_,M]),L=u(e=>{A($T(e)),A(dI({handler:o,reactEvent:e}))},[A,o]),B=u(e=>{A(WT(e)),A(dI({handler:h,reactEvent:e}))},[A,h]),R=u(e=>{A(_O()),A(dI({handler:v,reactEvent:e}))},[A,v]),V=u(e=>{A(WT(e)),A(dI({handler:y,reactEvent:e}))},[A,y]),K=u(()=>{A(iI())},[A]),$=u(()=>{A(aI())},[A]),F=u(e=>{A(nI(e.key))},[A]),W=u(e=>{A(dI({handler:l,reactEvent:e}))},[A,l]),U=u(e=>{A(dI({handler:s,reactEvent:e}))},[A,s]),H=u(e=>{A(dI({handler:f,reactEvent:e}))},[A,f]),q=u(e=>{A(dI({handler:m,reactEvent:e}))},[A,m]),Y=u(e=>{A(dI({handler:x,reactEvent:e}))},[A,x]),G=u(e=>{P&&A(gI(e)),A(dI({handler:b,reactEvent:e}))},[A,P,b]),X=u(e=>{A(dI({handler:g,reactEvent:e}))},[A,g]),Z=function(e){return e?qI:XI}(E);return r.createElement(LS.Provider,{value:k},r.createElement(ht.Provider,{value:N},r.createElement(Z,{width:null!=D?D:null==w?void 0:w.width,height:null!=C?C:null==w?void 0:w.height,className:S("recharts-wrapper",i),style:$I({position:"relative",cursor:"default",width:D,height:C},w),onClick:L,onContextMenu:W,onDoubleClick:U,onFocus:K,onBlur:$,onKeyDown:F,onMouseDown:H,onMouseEnter:B,onMouseLeave:R,onMouseMove:V,onMouseUp:q,onTouchEnd:X,onTouchMove:G,onTouchStart:Y,ref:z},r.createElement(UI,null),n)))}),JI=["width","height","responsive","children","className","style","compact","title","desc"];var QI=a((e,t)=>{var{width:n,height:i,responsive:a,children:o,className:l,style:s,compact:c,title:u,desc:d}=e,f=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,JI),p=at(f);return c?r.createElement(r.Fragment,null,r.createElement(mu,{width:n,height:i}),r.createElement(VI,{otherAttributes:p,title:u,desc:d},o)):r.createElement(ZI,{className:l,style:s,width:n,height:i,responsive:null!=a&&a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},r.createElement(VI,{otherAttributes:p,title:u,desc:d,ref:t},r.createElement(Lk,null,o)))});function eD(){return eD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eD.apply(null,arguments)}function tD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rD(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nD=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tD(Object(r),!0).forEach(function(t){rD(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tD(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},SI),iD=a(function(e,t){var n,i=bn(e.categoricalChartProps,nD),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:s,categoricalChartProps:c}=e,u={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:s,eventEmitter:void 0};return r.createElement(kI,{preloadedState:{options:u},reduxStoreName:null!==(n=c.id)&&void 0!==n?n:a},r.createElement(Ek,{chartData:c.data}),r.createElement(NI,{layout:i.layout,margin:i.margin}),r.createElement(TI,{throttleDelay:i.throttleDelay,throttledEvents:i.throttledEvents}),r.createElement(MI,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),r.createElement(QI,eD({},i,{ref:t})))}),aD=["axis"],oD=a((e,t)=>r.createElement(iD,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:aD,tooltipPayloadSearcher:FS,categoricalChartProps:e,ref:t})),lD=["axis","item"],sD=a((e,t)=>r.createElement(iD,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:lD,tooltipPayloadSearcher:FS,categoricalChartProps:e,ref:t})),cD=["item"],uD=a((e,t)=>r.createElement(iD,{chartName:"ScatterChart",defaultTooltipEventType:"item",validateTooltipEventTypes:cD,tooltipPayloadSearcher:FS,categoricalChartProps:e,ref:t})),dD=["axis"],fD=a((e,t)=>r.createElement(iD,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:dD,tooltipPayloadSearcher:FS,categoricalChartProps:e,ref:t}));function pD(r){var n=r.title,i=r.description,a=r.data,o=r.dataKey,l=r.categoryKey,s=r.color,c=void 0===s?"var(--primary)":s,u=r.className,d=r.loading,f=r.type,p=void 0===f?"area":f;if(d)return t(Ge,{className:te("col-span-full lg:col-span-2",u),children:[t(Xe,{children:[e(fe,{className:"h-6 w-40 mb-2"}),e(fe,{className:"h-4 w-64"})]}),e(Qe,{className:"h-75 w-full pt-4",children:e(fe,{className:"h-full w-full rounded-lg"})})]});return t(Ge,{className:te("bmj-card-hover col-span-full lg:col-span-2",u),children:[t(Xe,{children:[e(Ze,{className:"text-lg font-semibold",children:n}),i&&e(Je,{children:i})]}),e(Qe,{className:"h-75 w-full pt-4",children:e(ou,{width:"100%",height:"100%",children:function(){var r={data:a,margin:{top:10,right:10,left:-20,bottom:0}},i={xAxis:e(jT,{dataKey:l,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"var(--muted-foreground)"},dy:10,type:"scatter"===p?"number":"category"}),yAxis:e(RT,{dataKey:"scatter"===p?o:void 0,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"var(--muted-foreground)"},type:"number"}),grid:e(P_,{strokeDasharray:"3 3",vertical:!1,stroke:"var(--border)",opacity:.5}),tooltip:e(fP,{cursor:"scatter"===p?{strokeDasharray:"3 3"}:void 0,contentStyle:{backgroundColor:"var(--card)",borderRadius:"8px",border:"1px solid var(--border)",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",color:"var(--card-foreground)"},itemStyle:{color:"var(--card-foreground)"}})};switch(p){case"bar":return t(sD,Q({},r,{children:[i.grid,i.xAxis,i.yAxis,i.tooltip,e(LM,{dataKey:o,fill:c,radius:[4,4,0,0],barSize:32})]}));case"line":return t(oD,Q({},r,{children:[i.grid,i.xAxis,i.yAxis,i.tooltip,e(pN,{type:"monotone",dataKey:o,stroke:c,strokeWidth:2,dot:{r:4,fill:c,strokeWidth:2,stroke:"var(--card)"},activeDot:{r:6,strokeWidth:0}})]}));case"scatter":return t(uD,Q({},r,{children:[i.grid,i.xAxis,i.yAxis,i.tooltip,e(sT,{name:n,data:a,fill:c,shape:"circle"})]}));default:return t(fD,Q({},r,{children:[e("defs",{children:t("linearGradient",{id:"colorValue-".concat(n.replace(/\s+/g,"-")),x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:c,stopOpacity:.1}),e("stop",{offset:"95%",stopColor:c,stopOpacity:0})]})}),i.grid,i.xAxis,i.yAxis,i.tooltip,e(YN,{type:"monotone",dataKey:o,stroke:c,strokeWidth:2,fillOpacity:1,fill:"url(#colorValue-".concat(n.replace(/\s+/g,"-"),")")})]}))}}()})})]})}function hD(r){var n=r.title,i=r.value,a=r.description,o=r.trend,l=r.icon,s=r.className;return r.loading?t(Ge,{className:te("overflow-hidden",s),children:[t(Xe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e(fe,{className:"h-4 w-24"}),e(fe,{className:"h-4 w-4 rounded-full"})]}),t(Qe,{className:"space-y-2",children:[e(fe,{className:"h-8 w-32"}),e(fe,{className:"h-3 w-40"})]})]}):e(X.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},children:t(Ge,{className:te("bmj-card-hover overflow-hidden",s),children:[t(Xe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e(Ze,{className:"text-sm font-medium text-muted-foreground uppercase tracking-wider",children:n}),l&&e(l,{className:"h-4 w-4 text-muted-foreground"})]}),t(Qe,{children:[e("div",{className:"text-2xl font-bold tracking-tight",children:i}),(a||o)&&t("div",{className:"flex items-center gap-2 mt-1",children:[o&&t("span",{className:te("flex items-center text-xs font-medium",o.isPositive?"text-emerald-500":"text-rose-500"),children:[o.isPositive?e(H,{className:"w-3 h-3 mr-1"}):e(q,{className:"w-3 h-3 mr-1"}),o.value,"%"]}),a&&e("p",{className:"text-xs text-muted-foreground",children:a})]})]})]})})}export{Ie as AppSidebar,pD as ChartCard,Ye as DashboardLayout,hD as StatCard,qe as Topbar};
46
+ */function Ok(){return bk||(bk=1,"production"!==process.env.NODE_ENV&&function(){function e(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case n:case i:case a:case c:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case s:case f:case d:case o:return e;default:return h}}case r:return h}}}var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),h=Symbol.for("react.client.reference");wk.ContextConsumer=o,wk.ContextProvider=l,wk.Element=t,wk.ForwardRef=s,wk.Fragment=n,wk.Lazy=f,wk.Memo=d,wk.Portal=r,wk.Profiler=i,wk.StrictMode=a,wk.Suspense=c,wk.SuspenseList=u,wk.isContextConsumer=function(t){return e(t)===o},wk.isContextProvider=function(t){return e(t)===l},wk.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},wk.isForwardRef=function(t){return e(t)===s},wk.isFragment=function(t){return e(t)===n},wk.isLazy=function(t){return e(t)===f},wk.isMemo=function(t){return e(t)===d},wk.isPortal=function(t){return e(t)===r},wk.isProfiler=function(t){return e(t)===i},wk.isStrictMode=function(t){return e(t)===a},wk.isSuspense=function(t){return e(t)===c},wk.isSuspenseList=function(t){return e(t)===u},wk.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===i||e===a||e===c||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===d||e.$$typeof===l||e.$$typeof===o||e.$$typeof===s||e.$$typeof===h||void 0!==e.getModuleId)},wk.typeOf=e}()),wk}function Ek(){return xk||(xk=1,"production"===process.env.NODE_ENV?yk.exports=gk():yk.exports=Ok()),yk.exports}var Sk=Ek(),Pk=e=>"string"==typeof e?e:e?e.displayName||e.name||"Component":"",jk=null,kk=null,Ak=e=>{if(e===jk&&Array.isArray(kk))return kk;var t=[];return m.forEach(e,e=>{Dn(e)||(Sk.isFragment(e)?t=t.concat(Ak(e.props.children)):t.push(e))}),kk=t,jk=e,t};function Nk(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map(e=>Pk(e)):[Pk(t)],Ak(e).forEach(e=>{var t=xn(e,"type.displayName")||xn(e,"type.name");t&&-1!==n.indexOf(t)&&r.push(e)}),r}var _k,Tk,Ik,Mk=e=>!e||"object"!=typeof e||!("clipDot"in e)||Boolean(e.clipDot),Dk={};function Ck(){return _k||(_k=1,e=Dk,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isPlainObject=function(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];return null!=t&&(!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`)}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}),Dk;var e}function zk(){return Ik?Tk:(Ik=1,Tk=Ck().isPlainObject)}var Lk,Bk,Rk,Vk,Kk,$k=Zr(zk());function Fk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Wk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fk(Object(r),!0).forEach(function(t){Uk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Uk(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hk(){return Hk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hk.apply(null,arguments)}function qk(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Yk=(e,t,r,n,a)=>{var i,o=r-n;return i=On(Lk||(Lk=qk(["M ",",",""])),e,t),i+=On(Bk||(Bk=qk(["L ",",",""])),e+r,t),i+=On(Rk||(Rk=qk(["L ",",",""])),e+r-o/2,t+a),i+=On(Vk||(Vk=qk(["L ",",",""])),e+r-o/2-n,t+a),i+=On(Kk||(Kk=qk(["L ",","," Z"])),e,t)},Gk={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Xk=e=>{var t=Zn(e,Gk),{x:n,y:a,upperWidth:i,lowerWidth:o,height:l,className:s}=t,{animationEasing:u,animationDuration:f,animationBegin:h,isUpdateAnimationActive:v}=t,y=d(null),[m,g]=c(-1),b=d(i),x=d(o),w=d(l),O=d(n),E=d(a),P=jp(e,"trapezoid-");if(p(()=>{if(y.current&&y.current.getTotalLength)try{var e=y.current.getTotalLength();e&&g(e)}catch(e){}},[]),n!==+n||a!==+a||i!==+i||o!==+o||l!==+l||0===i&&0===o||0===l)return null;var j=S("recharts-trapezoid",s);if(!v)return r.createElement("g",null,r.createElement("path",Hk({},Rt(t),{className:j,d:Yk(n,a,i,o,l)})));var k=b.current,A=x.current,N=w.current,_=O.current,T=E.current,I="0px ".concat(-1===m?1:m,"px"),M="".concat(m,"px ").concat(m,"px"),D=tp(["strokeDasharray"],f,u);return r.createElement(Pp,{animationId:P,key:P,canBegin:m>0,duration:f,easing:u,isActive:v,begin:h},e=>{var s=In(k,i,e),c=In(A,o,e),u=In(N,l,e),d=In(_,n,e),f=In(T,a,e);y.current&&(b.current=s,x.current=c,w.current=u,O.current=d,E.current=f);var p=e>0?{transition:D,strokeDasharray:M}:{strokeDasharray:I};return r.createElement("path",Hk({},Rt(t),{className:j,d:Yk(d,f,s,c,u),ref:y,style:Wk(Wk({},p),t.style)}))})},Zk=["option","shapeType","activeClassName","inActiveClassName"];function Jk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jk(Object(r),!0).forEach(function(t){eA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eA(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tA(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return r.createElement(qp,n);case"trapezoid":return r.createElement(Xk,n);case"sector":return r.createElement(yh,n);case"symbols":if(function(e){return"symbols"===e}(t))return r.createElement(Un,n);break;case"curve":return r.createElement(Uf,n);default:return null}}function rA(e){var t,{option:n,shapeType:i,activeClassName:o="recharts-active-shape",inActiveClassName:l="recharts-shape"}=e,s=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,Zk);if(a(n))t=v(n,Qk(Qk({},s),function(e){return a(e)?e.props:e}(n)));else if("function"==typeof n)t=n(s,s.index);else if($k(n)&&"boolean"!=typeof n){var c=function(e,t){return Qk(Qk({},t),e)}(n,s);t=r.createElement(tA,{shapeType:i,elementProps:c})}else{var u=s;t=r.createElement(tA,{shapeType:i,elementProps:u})}return s.isActive?r.createElement(Ut,{className:o},t):r.createElement(Ut,{className:l},t)}var nA,aA=(e,t,r)=>{var n=Yi();return(a,i)=>o=>{null==e||e(a,i,o),n(iE({activeIndex:String(i),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:r}))}},iA=e=>{var t=Yi();return(r,n)=>a=>{null==e||e(r,n,a),t(oE())}},oA=(e,t,r)=>{var n=Yi();return(a,i)=>o=>{null==e||e(a,i,o),n(sE({activeIndex:String(i),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:r}))}};function lA(e){var{tooltipEntrySettings:t}=e,r=Yi(),n=du(),a=d(null);return h(()=>{n||(null===a.current?r(tE(t)):a.current!==t&&r(rE({prev:a.current,next:t})),a.current=t)},[t,r,n]),h(()=>()=>{a.current&&(r(nE(a.current)),a.current=null)},[r]),null}function sA(e){var{legendPayload:t}=e,r=Yi(),n=du(),a=d(null);return h(()=>{n||(null===a.current?r(Wd(t)):a.current!==t&&r(Ud({prev:a.current,next:t})),a.current=t)},[r,n,t]),h(()=>()=>{a.current&&(r(Hd(a.current)),a.current=null)},[r]),null}var cA=null!==(nA=r["useId".toString()])&&void 0!==nA?nA:()=>{var[e]=r.useState(()=>Nn("uid-"));return e};var uA=o(void 0),dA=e=>{var{id:t,type:n,children:a}=e,i=function(e,t){var r=cA();return t||(e?"".concat(e,"-").concat(r):r)}("recharts-".concat(n),t);return r.createElement(uA.Provider,{value:i},a(i))},fA=Rs({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Ns()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,a=is(e).cartesianItems.indexOf(r);a>-1&&(e.cartesianItems[a]=n)},prepare:Ns()},removeCartesianGraphicalItem:{reducer(e,t){var r=is(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Ns()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Ns()},removePolarGraphicalItem:{reducer(e,t){var r=is(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Ns()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,a=is(e).polarItems.indexOf(r);a>-1&&(e.polarItems[a]=n)},prepare:Ns()}}}),{addCartesianGraphicalItem:pA,replaceCartesianGraphicalItem:hA,removeCartesianGraphicalItem:vA,addPolarGraphicalItem:yA,removePolarGraphicalItem:mA,replacePolarGraphicalItem:gA}=fA.actions,bA=fA.reducer,xA=g(e=>{var t=Yi(),r=d(null);return h(()=>{null===r.current?t(pA(e)):r.current!==e&&t(hA({prev:r.current,next:e})),r.current=e},[t,e]),h(()=>()=>{r.current&&(t(vA(r.current)),r.current=null)},[t]),null}),wA=["points"];function OA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function EA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?OA(Object(r),!0).forEach(function(t){SA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function SA(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PA(){return PA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PA.apply(null,arguments)}function jA(e){var{option:t,dotProps:n,className:i}=e;if(a(t))return v(t,n);if("function"==typeof t)return t(n);var o=S(i,"boolean"!=typeof t?t.className:""),l=null!=n?n:{},{points:s}=l,c=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(l,wA);return r.createElement(sk,PA({},c,{className:o}))}function kA(e){var{points:t,dot:n,className:i,dotClassName:o,dataKey:l,baseProps:s,needClip:c,clipPathId:u,zIndex:d=Iv.scatter}=e;if(!function(e,t){return null!=e&&(!!t||1===e.length)}(t,n))return null;var f,p=Mk(n),h=null==(f=n)?null:a(f)?Rt(f.props):"object"!=typeof f||Array.isArray(f)?null:Rt(f),v=t.map((e,a)=>{var i,c,u=EA(EA(EA({r:3},s),h),{},{index:a,cx:null!==(i=e.x)&&void 0!==i?i:void 0,cy:null!==(c=e.y)&&void 0!==c?c:void 0,dataKey:l,value:e.value,payload:e.payload,points:t});return r.createElement(jA,{key:"dot-".concat(a),option:n,dotProps:u,className:o})}),y={};return c&&null!=u&&(y.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(u,")")),r.createElement(oP,{zIndex:d},r.createElement(Ut,PA({className:i},y),v))}function AA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function NA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?AA(Object(r),!0).forEach(function(t){_A(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _A(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var TA=Rs({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Ns()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.xAxis[r.id]&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Ns()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Ns()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Ns()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.yAxis[r.id]&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Ns()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Ns()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Ns()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.zAxis[r.id]&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Ns()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Ns()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,a=e.yAxis[r];if(a){var i,o=a.widthHistory||[];if(3===o.length&&o[0]===o[2]&&n===o[1]&&n!==a.width&&Math.abs(n-(null!==(i=o[0])&&void 0!==i?i:0))<=1)return;var l=[...o,n].slice(-3);e.yAxis[r]=NA(NA({},a),{},{width:n,widthHistory:l})}}}}),{addXAxis:IA,replaceXAxis:MA,removeXAxis:DA,addYAxis:CA,replaceYAxis:zA,removeYAxis:LA,addZAxis:BA,replaceZAxis:RA,removeZAxis:VA,updateYAxisWidth:KA}=TA.actions,$A=TA.reducer,FA=uo([lu],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),WA=uo([FA,Hc,qc],(e,t,r)=>{if(e&&null!=t&&null!=r)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),UA=()=>Ji(WA);function HA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function qA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?HA(Object(r),!0).forEach(function(t){YA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function YA(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var GA=e=>{var{point:t,childIndex:n,mainColor:i,activeDot:o,dataKey:l,clipPath:s}=e;if(!1===o||null==t.x||null==t.y)return null;var c,u=qA(qA(qA({},{index:n,dataKey:l,cx:t.x,cy:t.y,r:4,fill:null!=i?i:"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value}),Bt(o)),qn(o));return c=a(o)?v(o,u):"function"==typeof o?o(u):r.createElement(sk,u),r.createElement(Ut,{className:"recharts-active-dot",clipPath:s},c)};function XA(e){var{points:t,mainColor:n,activeDot:a,itemDataKey:i,clipPath:o,zIndex:l=Iv.activeDot}=e,s=Ji(vS),c=Ji(SS);if(null==t||null==c)return null;var u=t.find(e=>c.includes(e.payload));return Dn(u)?null:r.createElement(oP,{zIndex:l},r.createElement(GA,{point:u,childIndex:Number(s),mainColor:n,dataKey:i,activeDot:a,clipPath:o}))}var ZA=(e,t,r)=>{var n=null!=r?r:e;if(!Dn(n))return _n(n,t,0)};function JA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function QA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?JA(Object(r),!0).forEach(function(t){eN(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eN(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tN=e=>{var{chartData:t}=e,r=Yi(),n=du();return p(()=>n?()=>{}:(r(kP(t)),()=>{r(kP(void 0))}),[t,r,n]),null},rN={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},nN=Rs({name:"brush",initialState:rN,reducers:{setBrushSettings:(e,t)=>null==t.payload?rN:t.payload}}),{setBrushSettings:aN}=nN.actions,iN=nN.reducer;var oN=Rs({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=is(e).dots.findIndex(e=>e===t.payload);-1!==r&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=is(e).areas.findIndex(e=>e===t.payload);-1!==r&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=is(e).lines.findIndex(e=>e===t.payload);-1!==r&&e.lines.splice(r,1)}}}),{addDot:lN,removeDot:sN,addArea:cN,removeArea:uN,addLine:dN,removeLine:fN}=oN.actions,pN=oN.reducer,hN=o(void 0),vN=e=>{var{children:t}=e,[n]=c("".concat(Nn("recharts"),"-clip")),a=UA();if(null==a)return null;var{x:i,y:o,width:l,height:s}=a;return r.createElement(hN.Provider,{value:n},r.createElement("defs",null,r.createElement("clipPath",{id:n},r.createElement("rect",{x:i,y:o,height:s,width:l}))),t)};function yN(e,t){if(t<1)return[];if(1===t)return e;for(var r=[],n=0;n<e.length;n+=t){var a=e[n];void 0!==a&&r.push(a)}return r}function mN(e,t,r){return function(e){var{width:t,height:r}=e,n=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),a=n*Math.PI/180,i=Math.atan(r/t),o=a>i&&a<Math.PI-i?r/Math.sin(a):t/Math.cos(a);return Math.abs(o)}({width:e.width+t.width,height:e.height+t.height},r)}function gN(e,t,r,n,a){if(e*t<e*n||e*t>e*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function bN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bN(Object(r),!0).forEach(function(t){wN(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bN(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function wN(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ON(e,t,r){var n,{tick:a,ticks:i,viewBox:o,minTickGap:l,orientation:s,interval:c,tickFormatter:u,unit:d,angle:f}=e;if(!i||!i.length||!a)return[];if(jn(c)||Pf)return null!==(n=function(e,t){return yN(e,t+1)}(i,jn(c)?c:0))&&void 0!==n?n:[];var p=[],h="top"===s||"bottom"===s?"width":"height",v=d&&"width"===h?ej(d,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=(e,n)=>{var a="function"==typeof u?u(e.value,n):e.value;return"width"===h?mN(ej(a,{fontSize:t,letterSpacing:r}),v,f):ej(a,{fontSize:t,letterSpacing:r})[h]},m=i[0],g=i[1],b=i.length>=2&&null!=m&&null!=g?En(g.coordinate-m.coordinate):1,x=function(e,t,r){var n="width"===r,{x:a,y:i,width:o,height:l}=e;return 1===t?{start:n?a:i,end:n?a+o:i+l}:{start:n?a+o:i+l,end:n?a:i}}(o,b,h);return"equidistantPreserveStart"===c?function(e,t,r,n,a){for(var i,o=(n||[]).slice(),{start:l,end:s}=t,c=0,u=1,d=l,f=function(){var t=null==n?void 0:n[c];if(void 0===t)return{v:yN(n,u)};var i,o=c,f=()=>(void 0===i&&(i=r(t,o)),i),p=t.coordinate,h=0===c||gN(e,p,f,d,s);h||(c=0,d=l,u+=1),h&&(d=p+e*(f()/2+a),c+=u)};u<=o.length;)if(i=f())return i.v;return[]}(b,x,y,i,l):"equidistantPreserveEnd"===c?function(e,t,r,n,a){var i=(n||[]).slice().length;if(0===i)return[];for(var{start:o,end:l}=t,s=1;s<=i;s++){for(var c,u=(i-1)%s,d=o,f=!0,p=function(){var t=n[h];if(null==t)return 0;var i,o=h,s=()=>(void 0===i&&(i=r(t,o)),i),c=t.coordinate,p=h===u||gN(e,c,s,d,l);if(!p)return f=!1,1;p&&(d=c+e*(s()/2+a))},h=u;h<i&&(0===(c=p())||1!==c);h+=s);if(f){for(var v=[],y=u;y<i;y+=s){var m=n[y];null!=m&&v.push(m)}return v}}return[]}(b,x,y,i,l):(p="preserveStart"===c||"preserveStartEnd"===c?function(e,t,r,n,a,i){var o=(n||[]).slice(),l=o.length,{start:s,end:c}=t;if(i){var u=n[l-1];if(null!=u){var d=r(u,l-1),f=e*(u.coordinate+e*d/2-c);o[l-1]=u=xN(xN({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),null!=u.tickCoord&&gN(e,u.tickCoord,()=>d,s,c)&&(c=u.tickCoord-e*(d/2+a),o[l-1]=xN(xN({},u),{},{isShow:!0}))}}for(var p=i?l-1:l,h=function(t){var n=o[t];if(null==n)return 1;var i,l=n,u=()=>(void 0===i&&(i=r(n,t)),i);if(0===t){var d=e*(l.coordinate-e*u()/2-s);o[t]=l=xN(xN({},l),{},{tickCoord:d<0?l.coordinate-d*e:l.coordinate})}else o[t]=l=xN(xN({},l),{},{tickCoord:l.coordinate});null!=l.tickCoord&&gN(e,l.tickCoord,u,s,c)&&(s=l.tickCoord+e*(u()/2+a),o[t]=xN(xN({},l),{},{isShow:!0}))},v=0;v<p;v++)h(v);return o}(b,x,y,i,l,"preserveStartEnd"===c):function(e,t,r,n,a){for(var i=(n||[]).slice(),o=i.length,{start:l}=t,{end:s}=t,c=function(t){var n=i[t];if(null==n)return 1;var c,u=n,d=()=>(void 0===c&&(c=r(n,t)),c);if(t===o-1){var f=e*(u.coordinate+e*d()/2-s);i[t]=u=xN(xN({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate})}else i[t]=u=xN(xN({},u),{},{tickCoord:u.coordinate});null!=u.tickCoord&&gN(e,u.tickCoord,d,l,s)&&(s=u.tickCoord-e*(d()/2+a),i[t]=xN(xN({},u),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return i}(b,x,y,i,l),p.filter(e=>e.isShow))}var EN=Rs({name:"renderedTicks",initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:r,axisId:n,ticks:a}=t.payload;e[r][n]=a},removeRenderedTicks:(e,t)=>{var{axisType:r,axisId:n}=t.payload;delete e[r][n]}}}),{setRenderedTicks:SN,removeRenderedTicks:PN}=EN.actions,jN=EN.reducer,kN=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function AN(){return AN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AN.apply(null,arguments)}function NN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _N(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?NN(Object(r),!0).forEach(function(t){TN(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NN(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function TN(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var IN={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",zIndex:Iv.axis};function MN(e){var{x:t,y:n,width:a,height:i,orientation:o,mirror:l,axisLine:s,otherSvgProps:c}=e;if(!s)return null;var u=_N(_N(_N({},c),Lt(s)),{},{fill:"none"});if("top"===o||"bottom"===o){var d=+("top"===o&&!l||"bottom"===o&&l);u=_N(_N({},u),{},{x1:t,y1:n+d*i,x2:t+a,y2:n+d*i})}else{var f=+("left"===o&&!l||"right"===o&&l);u=_N(_N({},u),{},{x1:t+f*a,y1:n,x2:t+f*a,y2:n+i})}return r.createElement("line",AN({},u,{className:S("recharts-cartesian-axis-line",xn(s,"className"))}))}function DN(e){var t,n,{option:a,tickProps:i,value:o}=e,l=S(i.className,"recharts-cartesian-axis-tick-value");if(r.isValidElement(a))t=r.cloneElement(a,_N(_N({},i),{},{className:l}));else if("function"==typeof a)t=a(_N(_N({},i),{},{className:l}));else{var s="recharts-cartesian-axis-tick-value";"boolean"!=typeof a&&(s=S(s,(n=a)&&"object"==typeof n&&"className"in n&&"string"==typeof n.className?n.className:"")),t=r.createElement(_j,AN({},i,{className:s}),o)}return t}function CN(e){var{ticks:t,axisType:r,axisId:n}=e,a=Yi();return p(()=>{if(null==n||null==r)return Ln;var e=t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index}));return a(SN({ticks:e,axisId:n,axisType:r})),()=>{a(PN({axisId:n,axisType:r}))}},[a,t,n,r]),null}var zN=i((e,t)=>{var{ticks:n=[],tick:a,tickLine:i,stroke:o,tickFormatter:l,unit:s,padding:c,tickTextProps:u,orientation:d,mirror:f,x:p,y:h,width:v,height:y,tickSize:m,tickMargin:g,fontSize:b,letterSpacing:x,getTicksConfig:w,events:O,axisType:E,axisId:P}=e,j=ON(_N(_N({},w),{},{ticks:n}),b,x),k=Lt(w),A=Bt(a),N=Oj(k.textAnchor)?k.textAnchor:function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(d,f),_=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(d,f),T={};"object"==typeof i&&(T=i);var I=_N(_N({},k),{},{fill:"none"},T),M=j.map(e=>_N({entry:e},function(e,t,r,n,a,i,o,l,s){var c,u,d,f,p,h,v=l?-1:1,y=e.tickSize||o,m=jn(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":c=u=e.coordinate,h=(d=(f=r+ +!l*a)-v*y)-v*s,p=m;break;case"left":d=f=e.coordinate,p=(c=(u=t+ +!l*n)-v*y)-v*s,h=m;break;case"right":d=f=e.coordinate,p=(c=(u=t+ +l*n)+v*y)+v*s,h=m;break;default:c=u=e.coordinate,h=(d=(f=r+ +l*a)+v*y)+v*s,p=m}return{line:{x1:c,y1:d,x2:u,y2:f},tick:{x:p,y:h}}}(e,p,h,v,y,d,m,f,g))),D=M.map(e=>{var{entry:t,line:n}=e;return r.createElement(Ut,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},i&&r.createElement("line",AN({},I,n,{className:S("recharts-cartesian-axis-tick-line",xn(i,"className"))})))}),C=M.map((e,t)=>{var n,i,{entry:d,tick:f}=e,p=_N(_N(_N(_N({verticalAnchor:_},k),{},{textAnchor:N,stroke:"none",fill:o},f),{},{index:t,payload:d,visibleTicksCount:j.length,tickFormatter:l,padding:c},u),{},{angle:null!==(n=null!==(i=null==u?void 0:u.angle)&&void 0!==i?i:k.angle)&&void 0!==n?n:0}),h=_N(_N({},p),A);return r.createElement(Ut,AN({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(d.value,"-").concat(d.coordinate,"-").concat(d.tickCoord)},Yn(O,d,t)),a&&r.createElement(DN,{option:a,tickProps:h,value:"".concat("function"==typeof l?l(d.value,t):d.value).concat(s||"")}))});return r.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(E,"-ticks")},r.createElement(CN,{ticks:j,axisId:P,axisType:E}),C.length>0&&r.createElement(oP,{zIndex:Iv.label},r.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(E,"-tick-labels"),ref:t},C)),D.length>0&&r.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(E,"-tick-lines")},D))}),LN=i((e,t)=>{var{axisLine:n,width:a,height:i,className:o,hide:l,ticks:s,axisType:p,axisId:h}=e,v=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,kN),[y,m]=c(""),[g,b]=c(""),x=d(null);f(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:a=0,tickMargin:i=0}=e,o=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>o&&(o=t.width)}});var l=r?r.getBoundingClientRect().width:0,s=o+(a+i)+l+(r?n:0);return Math.round(s)}return 0})({ticks:x.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var w=u(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");x.current=t;var r=t[0];if(r){var n=window.getComputedStyle(r),a=n.fontSize,i=n.letterSpacing;a===y&&i===g||(m(a),b(i))}}},[y,g]);return l||null!=a&&a<=0||null!=i&&i<=0?null:r.createElement(oP,{zIndex:e.zIndex},r.createElement(Ut,{className:S("recharts-cartesian-axis",o)},r.createElement(MN,{x:e.x,y:e.y,width:a,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Lt(e)}),r.createElement(zN,{ref:w,axisType:p,events:v,fontSize:y,getTicksConfig:e,height:e.height,letterSpacing:g,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:h}),r.createElement($j,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},r.createElement(Xj,{label:e.label,labelRef:e.labelRef}),e.children)))}),BN=r.forwardRef((e,t)=>{var n=Zn(e,IN);return r.createElement(LN,AN({},n,{ref:t}))});BN.displayName="CartesianAxis";var RN=["x1","y1","x2","y2","key"],VN=["offset"],KN=["xAxisId","yAxisId"],$N=["xAxisId","yAxisId"];function FN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function WN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?FN(Object(r),!0).forEach(function(t){UN(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FN(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function UN(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HN(){return HN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},HN.apply(null,arguments)}function qN(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var YN=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:n,x:a,y:i,width:o,height:l,ry:s}=e;return r.createElement("rect",{x:a,y:i,ry:s,width:o,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function GN(e){var t,{option:n,lineItemProps:a}=e;if(r.isValidElement(n))t=r.cloneElement(n,a);else if("function"==typeof n)t=n(a);else{var i,{x1:o,y1:l,x2:s,y2:c,key:u}=a,d=null!==(i=Lt(qN(a,RN)))&&void 0!==i?i:{},{offset:f}=d,p=qN(d,VN);t=r.createElement("line",HN({},p,{x1:o,y1:l,x2:s,y2:c,fill:"none",key:u}))}return t}function XN(e){var{x:t,width:n,horizontal:a=!0,horizontalPoints:i}=e;if(!a||!i||!i.length)return null;var{xAxisId:o,yAxisId:l}=e,s=qN(e,KN),c=i.map((e,i)=>{var o=WN(WN({},s),{},{x1:t,y1:e,x2:t+n,y2:e,key:"line-".concat(i),index:i});return r.createElement(GN,{key:"line-".concat(i),option:a,lineItemProps:o})});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function ZN(e){var{y:t,height:n,vertical:a=!0,verticalPoints:i}=e;if(!a||!i||!i.length)return null;var{xAxisId:o,yAxisId:l}=e,s=qN(e,$N),c=i.map((e,i)=>{var o=WN(WN({},s),{},{x1:e,y1:t,x2:e,y2:t+n,key:"line-".concat(i),index:i});return r.createElement(GN,{option:a,lineItemProps:o,key:"line-".concat(i)})});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function JN(e){var{horizontalFill:t,fillOpacity:n,x:a,y:i,width:o,height:l,horizontalPoints:s,horizontal:c=!0}=e;if(!c||!t||!t.length||null==s)return null;var u=s.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==u[0]&&u.unshift(0);var d=u.map((e,s)=>{var c=u[s+1],d=null==c?i+l-e:c-e;if(d<=0)return null;var f=s%t.length;return r.createElement("rect",{key:"react-".concat(s),y:e,x:a,height:d,width:o,stroke:"none",fill:t[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function QN(e){var{vertical:t=!0,verticalFill:n,fillOpacity:a,x:i,y:o,width:l,height:s,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var u=c.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==u[0]&&u.unshift(0);var d=u.map((e,t)=>{var c=u[t+1],d=null==c?i+l-e:c-e;if(d<=0)return null;var f=t%n.length;return r.createElement("rect",{key:"react-".concat(t),x:e,y:o,width:d,height:s,stroke:"none",fill:n[f],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var e_=(e,t)=>{var{xAxis:r,width:n,height:a,offset:i}=e;return Mc(ON(WN(WN(WN({},IN),r),{},{ticks:Dc(r),viewBox:{x:0,y:0,width:n,height:a}})),i.left,i.left+i.width,t)},t_=(e,t)=>{var{yAxis:r,width:n,height:a,offset:i}=e;return Mc(ON(WN(WN(WN({},IN),r),{},{ticks:Dc(r),viewBox:{x:0,y:0,width:n,height:a}})),i.top,i.top+i.height,t)},r_={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Iv.grid};function n_(e){var t=Fu(),n=Wu(),a=$u(),i=WN(WN({},Zn(e,r_)),{},{x:jn(e.x)?e.x:a.left,y:jn(e.y)?e.y:a.top,width:jn(e.width)?e.width:a.width,height:jn(e.height)?e.height:a.height}),{xAxisId:o,yAxisId:l,x:s,y:c,width:u,height:d,syncWithTicks:f,horizontalValues:p,verticalValues:h}=i,v=du(),y=Ji(e=>VO(e,"xAxis",o,v)),m=Ji(e=>VO(e,"yAxis",l,v));if(!(kc(u)&&kc(d)&&jn(s)&&jn(c)))return null;var g=i.verticalCoordinatesGenerator||e_,b=i.horizontalCoordinatesGenerator||t_,{horizontalPoints:x,verticalPoints:w}=i;if(!(x&&x.length||"function"!=typeof b)){var O=p&&p.length,E=b({yAxis:m?WN(WN({},m),{},{ticks:O?p:m.ticks}):void 0,width:null!=t?t:u,height:null!=n?n:d,offset:a},!!O||f);Ou(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof E,"]")),Array.isArray(E)&&(x=E)}if(!(w&&w.length||"function"!=typeof g)){var S=h&&h.length,P=g({xAxis:y?WN(WN({},y),{},{ticks:S?h:y.ticks}):void 0,width:null!=t?t:u,height:null!=n?n:d,offset:a},!!S||f);Ou(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(w=P)}return r.createElement(oP,{zIndex:i.zIndex},r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(YN,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),r.createElement(JN,HN({},i,{horizontalPoints:x})),r.createElement(QN,HN({},i,{verticalPoints:w})),r.createElement(XN,HN({},i,{offset:a,horizontalPoints:x,xAxis:y,yAxis:m})),r.createElement(ZN,HN({},i,{offset:a,verticalPoints:w,xAxis:y,yAxis:m}))))}n_.displayName="CartesianGrid";var a_=Rs({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:a}=t.payload;e[r]&&(e[r]=e[r].map(e=>e.dataKey===n.dataKey&&e.direction===n.direction?a:e))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(e=>e.dataKey!==n.dataKey||e.direction!==n.direction))}}}),{addErrorBar:i_,replaceErrorBar:o_,removeErrorBar:l_}=a_.actions,s_=a_.reducer,c_=["children"];var u_=o({data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function d_(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,c_);return r.createElement(u_.Provider,{value:n},t)}function f_(e,t){var r,n,a=Ji(t=>Xx(t,e)),i=Ji(e=>Qx(e,t)),o=null!==(r=null==a?void 0:a.allowDataOverflow)&&void 0!==r?r:Yx.allowDataOverflow,l=null!==(n=null==i?void 0:i.allowDataOverflow)&&void 0!==n?n:Zx.allowDataOverflow;return{needClip:o||l,needClipX:o,needClipY:l}}function p_(e){var{xAxisId:t,yAxisId:n,clipPathId:a}=e,i=UA(),{needClipX:o,needClipY:l,needClip:s}=f_(t,n);if(!s||!i)return null;var{x:c,y:u,width:d,height:f}=i;return r.createElement("clipPath",{id:"clipPath-".concat(a)},r.createElement("rect",{x:o?c:c-d/2,y:l?u:u-f/2,width:o?d:2*d,height:l?f:2*f}))}var h_=(e,t,r,n)=>FO(e,"xAxis",t,n),v_=(e,t,r,n)=>$O(e,"xAxis",t,n),y_=(e,t,r,n)=>FO(e,"yAxis",r,n),m_=(e,t,r,n)=>$O(e,"yAxis",r,n),g_=uo([Uu,h_,y_,v_,m_],(e,t,r,n,a)=>Ic(e,"xAxis")?Fc(t,n,!1):Fc(r,a,!1));function b_(e){return"line"===e.type}var x_=uo([ow,(e,t,r,n,a)=>a],(e,t)=>e.filter(b_).find(e=>e.id===t)),w_=uo([Uu,h_,y_,v_,m_,x_,g_,Mh],(e,t,r,n,a,i,o,l)=>{var{chartData:s,dataStartIndex:c,dataEndIndex:u}=l;if(null!=i&&null!=t&&null!=r&&null!=n&&null!=a&&0!==n.length&&0!==a.length&&null!=o&&("horizontal"===e||"vertical"===e)){var d,{dataKey:f,data:p}=i;if(null!=(d=null!=p&&p.length>0?p:null==s?void 0:s.slice(c,u+1)))return function(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:a,yAxisTicks:i,dataKey:o,bandSize:l,displayedData:s}=e;return s.map((e,s)=>{var c=Tc(e,o);if("horizontal"===t){var u=Bc({axis:r,ticks:a,bandSize:l,entry:e,index:s}),d=Dn(c)?null:n.scale.map(c);return{x:u,y:null!=d?d:null,value:c,payload:e}}var f=Dn(c)?null:r.scale.map(c),p=Bc({axis:n,ticks:i,bandSize:l,entry:e,index:s});return null==f||null==p?null:{x:f,y:p,value:c,payload:e}}).filter(Boolean)}({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:a,dataKey:f,bandSize:o,displayedData:d})}});function O_(e){var t=Bt(e);if(null!=t){var{r:r,strokeWidth:n}=t,a=Number(r),i=Number(n);return(Number.isNaN(a)||a<0)&&(a=3),(Number.isNaN(i)||i<0)&&(i=2),{r:a,strokeWidth:i}}return{r:3,strokeWidth:2}}var E_=["id"],S_=["type","layout","connectNulls","needClip","shape"],P_=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function j_(){return j_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j_.apply(null,arguments)}function k_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function A_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k_(Object(r),!0).forEach(function(t){N_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function N_(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function __(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var T_=e=>{var{dataKey:t,name:r,stroke:n,legendType:a,hide:i}=e;return[{inactive:i,dataKey:t,type:a,color:n,value:Uc(r,t),payload:e}]},I_=r.memo(e=>{var{dataKey:t,data:n,stroke:a,strokeWidth:i,fill:o,name:l,hide:s,unit:c,tooltipType:u,id:d}=e,f={dataDefinedOnItem:n,getPosition:Ln,settings:{stroke:a,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Uc(l,t),hide:s,type:u,color:a,unit:c,graphicalItemId:d}};return r.createElement(lA,{tooltipEntrySettings:f})}),M_=(e,t)=>"".concat(t,"px ").concat(e,"px");function D_(e,t){for(var r=e.length%2!=0?[...e,0]:e,n=[],a=0;a<t;++a)n.push(...r);return n}function C_(e){var{clipPathId:t,points:n,props:a}=e,{dot:i,dataKey:o,needClip:l}=a,{id:s}=a,c=Lt(__(a,E_));return r.createElement(kA,{points:n,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:o,baseProps:c,needClip:l,clipPathId:t})}function z_(e){var{showLabels:t,children:n,points:a}=e,i=s(()=>null==a?void 0:a.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return A_(A_({},n),{},{value:e.value,payload:e.payload,viewBox:n,parentViewBox:void 0,fill:void 0})}),[a]);return r.createElement(nk,{value:t?i:void 0},n)}function L_(e){var{clipPathId:t,pathRef:n,points:a,strokeDasharray:i,props:o}=e,{type:l,layout:s,connectNulls:c,needClip:u,shape:d}=o,f=A_(A_({},Rt(__(o,S_))),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(t,")"):void 0,points:a,type:l,layout:s,connectNulls:c,strokeDasharray:null!=i?i:o.strokeDasharray});return r.createElement(r.Fragment,null,(null==a?void 0:a.length)>1&&r.createElement(rA,j_({shapeType:"curve",option:d},f,{pathRef:n})),r.createElement(C_,{points:a,clipPathId:t,props:o}))}function B_(e){var{clipPathId:t,props:n,pathRef:a,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:l,strokeDasharray:s,isAnimationActive:f,animationBegin:p,animationDuration:h,animationEasing:v,animateNewValues:y,width:m,height:g,onAnimationEnd:b,onAnimationStart:x}=n,w=i.current,O=jp(l,"recharts-line-"),E=d(O),[S,P]=c(!1),j=!S,k=u(()=>{"function"==typeof b&&b(),P(!1)},[b]),A=u(()=>{"function"==typeof x&&x(),P(!0)},[x]),N=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(a.current),_=d(0);E.current!==O&&(_.current=o.current,E.current=O);var T=_.current;return r.createElement(z_,{points:l,showLabels:j},n.children,r.createElement(Pp,{animationId:O,begin:p,duration:h,isActive:f,easing:v,onAnimationEnd:k,onAnimationStart:A,key:O},e=>{var c,u=In(T,N+T,e),d=Math.min(u,N);if(f)if(s){var p="".concat(s).split(/[,\s]+/gim).map(e=>parseFloat(e));c=((e,t,r)=>{var n=r.reduce((e,t)=>e+t,0);if(!n)return M_(t,e);for(var a=Math.floor(e/n),i=e%n,o=[],l=0,s=0;l<r.length;s+=null!==(c=r[l])&&void 0!==c?c:0,++l){var c,u=r[l];if(null!=u&&s+u>i){o=[...r.slice(0,l),i-s];break}}var d=o.length%2==0?[0,t]:[t];return[...D_(r,a),...o,...d].map(e=>"".concat(e,"px")).join(", ")})(d,N,p)}else c=M_(N,d);else c=null==s?void 0:String(s);if(e>0&&N>0&&(i.current=l,o.current=Math.max(o.current,d)),w){var h=w.length/l.length,v=1===e?l:l.map((t,r)=>{var n=Math.floor(r*h);if(w[n]){var a=w[n];return A_(A_({},t),{},{x:In(a.x,t.x,e),y:In(a.y,t.y,e)})}return A_(A_({},t),{},y?{x:In(2*m,t.x,e),y:In(g/2,t.y,e)}:{x:t.x,y:t.y})});return i.current=v,r.createElement(L_,{props:n,points:v,clipPathId:t,pathRef:a,strokeDasharray:c})}return r.createElement(L_,{props:n,points:l,clipPathId:t,pathRef:a,strokeDasharray:c})}),r.createElement(ok,{label:n.label}))}function R_(e){var{clipPathId:t,props:n}=e,a=d(null),i=d(0),o=d(null);return r.createElement(B_,{props:n,clipPathId:t,previousPointsRef:a,longestAnimatedLengthRef:i,pathRef:o})}var V_=(e,t)=>{var r,n;return{x:null!==(r=e.x)&&void 0!==r?r:void 0,y:null!==(n=e.y)&&void 0!==n?n:void 0,value:e.value,errorVal:Tc(e.payload,t)}};class K_ extends b{render(){var{hide:e,dot:t,points:n,className:a,xAxisId:i,yAxisId:o,top:l,left:s,width:c,height:u,id:d,needClip:f,zIndex:p}=this.props;if(e)return null;var h=S("recharts-line",a),v=d,{r:y,strokeWidth:m}=O_(t),g=Mk(t),b=2*y+m,x=f?"url(#clipPath-".concat(g?"":"dots-").concat(v,")"):void 0;return r.createElement(oP,{zIndex:p},r.createElement(Ut,{className:h},f&&r.createElement("defs",null,r.createElement(p_,{clipPathId:v,xAxisId:i,yAxisId:o}),!g&&r.createElement("clipPath",{id:"clipPath-dots-".concat(v)},r.createElement("rect",{x:s-b/2,y:l-b/2,width:c+b,height:u+b}))),r.createElement(d_,{xAxisId:i,yAxisId:o,data:n,dataPointFormatter:V_,errorBarOffset:0},r.createElement(R_,{props:this.props,clipPathId:v}))),r.createElement(XA,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:x}))}}var $_={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:Iv.line,type:"linear"};function F_(e){var t=Zn(e,$_),{activeDot:n,animateNewValues:a,animationBegin:i,animationDuration:o,animationEasing:l,connectNulls:s,dot:c,hide:u,isAnimationActive:d,label:f,legendType:p,xAxisId:h,yAxisId:v,id:y}=t,m=__(t,P_),{needClip:g}=f_(h,v),b=UA(),x=Hu(),w=du(),O=Ji(e=>w_(e,h,v,w,y));if("horizontal"!==x&&"vertical"!==x||null==O||null==b)return null;var{height:E,width:S,x:P,y:j}=b;return r.createElement(K_,j_({},m,{id:y,connectNulls:s,dot:c,activeDot:n,animateNewValues:a,animationBegin:i,animationDuration:o,animationEasing:l,isAnimationActive:d,hide:u,label:f,legendType:p,xAxisId:h,yAxisId:v,points:O,layout:x,height:E,width:S,left:P,top:j,needClip:g}))}function W_(e){var t=Zn(e,$_),n=du();return r.createElement(dA,{id:t.id,type:"line"},e=>r.createElement(r.Fragment,null,r.createElement(sA,{legendPayload:T_(t)}),r.createElement(I_,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),r.createElement(xA,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),r.createElement(F_,j_({},t,{id:e}))))}var U_=r.memo(W_,pf);function H_(e,t){var r,n;return null!==(r=null===(n=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===n?void 0:n.xAxisId)&&void 0!==r?r:0}function q_(e,t){var r,n;return null!==(r=null===(n=e.graphicalItems.cartesianItems.find(e=>e.id===t))||void 0===n?void 0:n.yAxisId)&&void 0!==r?r:0}U_.displayName="Line";var Y_=(e,t,r)=>FO(e,"xAxis",H_(e,t),r),G_=(e,t,r)=>$O(e,"xAxis",H_(e,t),r),X_=(e,t,r)=>FO(e,"yAxis",q_(e,t),r),Z_=(e,t,r)=>$O(e,"yAxis",q_(e,t),r),J_=uo([Uu,Y_,X_,G_,Z_],(e,t,r,n,a)=>Ic(e,"xAxis")?Fc(t,n,!1):Fc(r,a,!1)),Q_=uo([ow,(e,t)=>t],(e,t)=>e.filter(e=>"area"===e.type).find(e=>e.id===t)),eT=e=>{var t=Uu(e);return Ic(t,"xAxis")?"yAxis":"xAxis"},tT=uo([Q_,(e,t,r)=>_w(e,eT(e),((e,t)=>"yAxis"===eT(e)?q_(e,t):H_(e,t))(e,t),r)],(e,t)=>{var r;if(null!=e&&null!=t){var{stackId:n}=e,a=Zv(e);if(null!=n&&null!=a){var i=null===(r=t[n])||void 0===r?void 0:r.stackedData,o=null==i?void 0:i.find(e=>e.key===a);if(null!=o)return o.map(e=>[e[0],e[1]])}}}),rT=uo([Uu,Y_,X_,G_,Z_,tT,Dh,J_,Q_,e=>e.rootProps.baseValue],(e,t,r,n,a,i,o,l,s,c)=>{var{chartData:u,dataStartIndex:d,dataEndIndex:f}=o;if(null!=s&&("horizontal"===e||"vertical"===e)&&null!=t&&null!=r&&null!=n&&null!=a&&0!==n.length&&0!==a.length&&null!=l){var p,{data:h}=s;if(null!=(p=h&&h.length>0?h:null==u?void 0:u.slice(d,f+1)))return function(e){var t,{areaSettings:{connectNulls:r,baseValue:n,dataKey:a},stackedData:i,layout:o,chartBaseValue:l,xAxis:s,yAxis:c,displayedData:u,dataStartIndex:d,xAxisTicks:f,yAxisTicks:p,bandSize:h}=e,v=i&&i.length,y=ST(o,l,n,s,c),m="horizontal"===o,g=!1,b=u.map((e,t)=>{var n,o,l,u;if(v)u=i[d+t];else{var b=Tc(e,a);Array.isArray(b)?(u=b,g=!0):u=[y,b]}var x,w=null!==(n=null===(o=u)||void 0===o?void 0:o[1])&&void 0!==n?n:null,O=null==w||v&&!r&&null==Tc(e,a);return m?{x:Bc({axis:s,ticks:f,bandSize:h,entry:e,index:t}),y:O?null:null!==(x=c.scale.map(w))&&void 0!==x?x:null,value:u,payload:e}:{x:O?null:null!==(l=s.scale.map(w))&&void 0!==l?l:null,y:Bc({axis:c,ticks:p,bandSize:h,entry:e,index:t}),value:u,payload:e}});t=v||g?b.map(e=>{var t,r,n=Array.isArray(e.value)?e.value[0]:null;return m?{x:e.x,y:null!=n&&null!=e.y&&null!==(r=c.scale.map(n))&&void 0!==r?r:null,payload:e.payload}:{x:null!=n&&null!==(t=s.scale.map(n))&&void 0!==t?t:null,y:e.y,payload:e.payload}}):m?c.scale.map(y):s.scale.map(y);return{points:b,baseLine:null!=t?t:0,isRange:g}}({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:a,dataStartIndex:d,areaSettings:s,stackedData:i,displayedData:p,chartBaseValue:c,bandSize:l})}}),nT=["id"],aT=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function iT(){return iT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iT.apply(null,arguments)}function oT(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function lT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function sT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lT(Object(r),!0).forEach(function(t){cT(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lT(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function cT(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uT(e,t){return e&&"none"!==e?e:t}var dT=e=>{var{dataKey:t,name:r,stroke:n,fill:a,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:uT(n,a),value:Uc(r,t),payload:e}]},fT=r.memo(e=>{var{dataKey:t,data:n,stroke:a,strokeWidth:i,fill:o,name:l,hide:s,unit:c,tooltipType:u,id:d}=e,f={dataDefinedOnItem:n,getPosition:Ln,settings:{stroke:a,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:Uc(l,t),hide:s,type:u,color:uT(a,o),unit:c,graphicalItemId:d}};return r.createElement(lA,{tooltipEntrySettings:f})});function pT(e){var{clipPathId:t,points:n,props:a}=e,{needClip:i,dot:o,dataKey:l}=a,s=Lt(a);return r.createElement(kA,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:l,baseProps:s,needClip:i,clipPathId:t})}function hT(e){var{showLabels:t,children:n,points:a}=e,i=a.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return sT(sT({},n),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:n,fill:void 0})});return r.createElement(nk,{value:t?i:void 0},n)}function vT(e){var{points:t,baseLine:n,needClip:a,clipPathId:i,props:o}=e,{layout:l,type:s,stroke:c,connectNulls:u,isRange:d}=o,{id:f}=o,p=oT(o,nT),h=Lt(p),v=Rt(p);return r.createElement(r.Fragment,null,(null==t?void 0:t.length)>1&&r.createElement(Ut,{clipPath:a?"url(#clipPath-".concat(i,")"):void 0},r.createElement(Uf,iT({},v,{id:f,points:t,connectNulls:u,type:s,baseLine:n,layout:l,stroke:"none",className:"recharts-area-area"})),"none"!==c&&r.createElement(Uf,iT({},h,{className:"recharts-area-curve",layout:l,type:s,connectNulls:u,fill:"none",points:t})),"none"!==c&&d&&Array.isArray(n)&&r.createElement(Uf,iT({},h,{className:"recharts-area-curve",layout:l,type:s,connectNulls:u,fill:"none",points:n}))),r.createElement(pT,{points:t,props:p,clipPathId:i}))}function yT(e){var t,n,{alpha:a,baseLine:i,points:o,strokeWidth:l}=e,s=null===(t=o[0])||void 0===t?void 0:t.y,c=null===(n=o[o.length-1])||void 0===n?void 0:n.y;if(!jc(s)||!jc(c))return null;var u=a*Math.abs(s-c),d=Math.max(...o.map(e=>e.x||0));return jn(i)?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(...i.map(e=>e.x||0),d)),jn(d)?r.createElement("rect",{x:0,y:s<c?s:s-u,width:d+(l?parseInt("".concat(l),10):1),height:Math.floor(u)}):null}function mT(e){var t,n,{alpha:a,baseLine:i,points:o,strokeWidth:l}=e,s=null===(t=o[0])||void 0===t?void 0:t.x,c=null===(n=o[o.length-1])||void 0===n?void 0:n.x;if(!jc(s)||!jc(c))return null;var u=a*Math.abs(s-c),d=Math.max(...o.map(e=>e.y||0));return jn(i)?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(...i.map(e=>e.y||0),d)),jn(d)?r.createElement("rect",{x:s<c?s:s-u,y:0,width:u,height:Math.floor(d+(l?parseInt("".concat(l),10):1))}):null}function gT(e){var{alpha:t,layout:n,points:a,baseLine:i,strokeWidth:o}=e;return"vertical"===n?r.createElement(yT,{alpha:t,points:a,baseLine:i,strokeWidth:o}):r.createElement(mT,{alpha:t,points:a,baseLine:i,strokeWidth:o})}function bT(e){var{needClip:t,clipPathId:n,props:a,previousPointsRef:i,previousBaselineRef:o}=e,{points:l,baseLine:d,isAnimationActive:f,animationBegin:p,animationDuration:h,animationEasing:v,onAnimationStart:y,onAnimationEnd:m}=a,g=jp(s(()=>({points:l,baseLine:d}),[l,d]),"recharts-area-"),b=qu(),[x,w]=c(!1),O=!x,E=u(()=>{"function"==typeof m&&m(),w(!1)},[m]),S=u(()=>{"function"==typeof y&&y(),w(!0)},[y]);if(null==b)return null;var P=i.current,j=o.current;return r.createElement(hT,{showLabels:O,points:l},a.children,r.createElement(Pp,{animationId:g,begin:p,duration:h,isActive:f,easing:v,onAnimationEnd:E,onAnimationStart:S,key:g},e=>{if(P){var s,c=P.length/l.length,u=1===e?l:l.map((t,r)=>{var n=Math.floor(r*c);if(P[n]){var a=P[n];return sT(sT({},t),{},{x:In(a.x,t.x,e),y:In(a.y,t.y,e)})}return t});return s=jn(d)?In(j,d,e):Dn(d)||Sn(d)?In(j,0,e):d.map((t,r)=>{var n=Math.floor(r*c);if(Array.isArray(j)&&j[n]){var a=j[n];return sT(sT({},t),{},{x:In(a.x,t.x,e),y:In(a.y,t.y,e)})}return t}),e>0&&(i.current=u,o.current=s),r.createElement(vT,{points:u,baseLine:s,needClip:t,clipPathId:n,props:a})}return e>0&&(i.current=l,o.current=d),r.createElement(Ut,null,f&&r.createElement("defs",null,r.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.createElement(gT,{alpha:e,points:l,baseLine:d,layout:b,strokeWidth:a.strokeWidth}))),r.createElement(Ut,{clipPath:"url(#animationClipPath-".concat(n,")")},r.createElement(vT,{points:l,baseLine:d,needClip:t,clipPathId:n,props:a})))}),r.createElement(ok,{label:a.label}))}function xT(e){var{needClip:t,clipPathId:n,props:a}=e,i=d(null),o=d();return r.createElement(bT,{needClip:t,clipPathId:n,props:a,previousPointsRef:i,previousBaselineRef:o})}class wT extends x{render(){var{hide:e,dot:t,points:n,className:a,top:i,left:o,needClip:l,xAxisId:s,yAxisId:c,width:u,height:d,id:f,baseLine:p,zIndex:h}=this.props;if(e)return null;var v=S("recharts-area",a),y=f,{r:m,strokeWidth:g}=O_(t),b=Mk(t),x=2*m+g,w=l?"url(#clipPath-".concat(b?"":"dots-").concat(y,")"):void 0;return r.createElement(oP,{zIndex:h},r.createElement(Ut,{className:v},l&&r.createElement("defs",null,r.createElement(p_,{clipPathId:y,xAxisId:s,yAxisId:c}),!b&&r.createElement("clipPath",{id:"clipPath-dots-".concat(y)},r.createElement("rect",{x:o-x/2,y:i-x/2,width:u+x,height:d+x}))),r.createElement(xT,{needClip:l,clipPathId:y,props:this.props})),r.createElement(XA,{points:n,mainColor:uT(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:w}),this.props.isRange&&Array.isArray(p)&&r.createElement(XA,{points:p,mainColor:uT(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:w}))}}var OT={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:Iv.area};function ET(e){var t,{activeDot:n,animationBegin:a,animationDuration:i,animationEasing:o,connectNulls:l,dot:s,fill:c,fillOpacity:u,hide:d,isAnimationActive:f,legendType:p,stroke:h,xAxisId:v,yAxisId:y}=e,m=oT(e,aT),g=Hu(),b=MS(),{needClip:x}=f_(v,y),w=du(),{points:O,isRange:E,baseLine:S}=null!==(t=Ji(t=>rT(t,e.id,w)))&&void 0!==t?t:{},P=UA();if("horizontal"!==g&&"vertical"!==g||null==P)return null;if("AreaChart"!==b&&"ComposedChart"!==b)return null;var{height:j,width:k,x:A,y:N}=P;return O&&O.length?r.createElement(wT,iT({},m,{activeDot:n,animationBegin:a,animationDuration:i,animationEasing:o,baseLine:S,connectNulls:l,dot:s,fill:c,fillOpacity:u,height:j,hide:d,layout:g,isAnimationActive:f,isRange:E,legendType:p,needClip:x,points:O,stroke:h,width:k,left:A,top:N,xAxisId:v,yAxisId:y})):null}var ST=(e,t,r,n,a)=>{var i=null!=r?r:t;if(jn(i))return i;var o="horizontal"===e?a:n,l=o.scale.domain();if("number"===o.type){var s=Math.max(l[0],l[1]),c=Math.min(l[0],l[1]);return"dataMin"===i?c:"dataMax"===i||s<0?s:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===i?l[0]:"dataMax"===i?l[1]:l[0]};function PT(e){var t=Zn(e,OT),n=du();return r.createElement(dA,{id:t.id,type:"area"},e=>r.createElement(r.Fragment,null,r.createElement(sA,{legendPayload:dT(t)}),r.createElement(fT,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),r.createElement(xA,{type:"area",id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Lc(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),r.createElement(ET,iT({},t,{id:e}))))}var jT=r.memo(PT,pf);jT.displayName="Area";var kT="production"===process.env.NODE_ENV,AT="Invariant failed";function NT(){return NT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},NT.apply(null,arguments)}function _T(e){return r.createElement(rA,NT({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var TT=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(r,n)=>{if(jn(e))return e;var a=jn(r)||Dn(r);return a?e(r,n):(a||function(e,t){if(kT)throw new Error(AT);var r="function"==typeof t?t():t,n=r?"".concat(AT,": ").concat(r):AT;throw new Error(n)}(0,"minPointSize callback function received a value with type of ".concat(typeof r,". Currently only numbers or null/undefined are supported.")),t)}},IT=uo([ow,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),MT=uo([IT],e=>null==e?void 0:e.maxBarSize),DT=uo([Uu,ow,H_,q_,(e,t,r)=>r],(e,t,r,n,a)=>t.filter(t=>"horizontal"===e?t.xAxisId===r:t.yAxisId===n).filter(e=>e.isPanorama===a).filter(e=>!1===e.hide).filter(e=>"bar"===e.type)),CT=uo([DT,e=>e.rootProps.barSize,(e,t)=>{var r=Uu(e),n=H_(e,t),a=q_(e,t);if(null!=n&&null!=a)return"horizontal"===r?LO(e,"xAxis",n):LO(e,"yAxis",a)}],(e,t,r)=>{var n=e.filter(Qv),a=e.filter(e=>null==e.stackId),i=n.reduce((e,t)=>{var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{}),o=Object.entries(i).map(e=>{var n,[a,i]=e;return{stackId:a,dataKeys:i.map(e=>e.dataKey),barSize:ZA(t,r,null===(n=i[0])||void 0===n?void 0:n.barSize)}});return[...o,...a.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>null!=e),barSize:ZA(t,r,e.barSize)}))]}),zT=(e,t,r)=>{var n,a,i=Uu(e),o=H_(e,t),l=q_(e,t);if(null!=o&&null!=l)return"horizontal"===i?(n=FO(e,"xAxis",o,r),a=$O(e,"xAxis",o,r)):(n=FO(e,"yAxis",l,r),a=$O(e,"yAxis",l,r)),Fc(n,a)},LT=uo([CT,Sv,e=>e.rootProps.barGap,Pv,(e,t,r)=>{var n,a,i=IT(e,t);if(null==i)return 0;var o=H_(e,t),l=q_(e,t);if(null==o||null==l)return 0;var s,c,u=Uu(e),d=Sv(e),{maxBarSize:f}=i,p=Dn(f)?d:f;return"horizontal"===u?(s=FO(e,"xAxis",o,r),c=$O(e,"xAxis",o,r)):(s=FO(e,"yAxis",l,r),c=$O(e,"yAxis",l,r)),null!==(n=null!==(a=Fc(s,c,!0))&&void 0!==a?a:p)&&void 0!==n?n:0},zT,MT],(e,t,r,n,a,i,o)=>{var l=Dn(o)?t:o,s=function(e,t,r,n,a){var i,o=n.length;if(!(o<1)){var l,s=_n(e,r,0,!0),c=[];if(jc(null===(i=n[0])||void 0===i?void 0:i.barSize)){var u=!1,d=r/o,f=n.reduce((e,t)=>e+(t.barSize||0),0);(f+=(o-1)*s)>=r&&(f-=(o-1)*s,s=0),f>=r&&d>0&&(u=!0,f=o*(d*=.9));var p={offset:((r-f)/2|0)-s,size:0};l=n.reduce((e,t)=>{var r,n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p.offset+p.size+s,size:u?d:null!==(r=t.barSize)&&void 0!==r?r:0}},a=[...e,n];return p=n.position,a},c)}else{var h=_n(t,r,0,!0);r-2*h-(o-1)*s<=0&&(s=0);var v=(r-2*h-(o-1)*s)/o;v>1&&(v>>=0);var y=jc(a)?Math.min(v,a):v;l=n.reduce((e,t,r)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:h+(v+s)*r+(v-y)/2,size:y}}],c)}return l}}(r,n,a!==i?a:i,e,l);return a!==i&&null!=s&&(s=s.map(e=>QA(QA({},e),{},{position:QA(QA({},e.position),{},{offset:e.position.offset-a/2})}))),s}),BT=uo([LT,IT],(e,t)=>{if(null!=e&&null!=t){var r=e.find(e=>e.stackId===t.stackId&&null!=t.dataKey&&e.dataKeys.includes(t.dataKey));if(null!=r)return r.position}}),RT=uo([(e,t,r)=>{var n=Uu(e),a=H_(e,t),i=q_(e,t);if(null!=a&&null!=i)return"horizontal"===n?_w(e,"yAxis",i,r):_w(e,"xAxis",a,r)},IT],(e,t)=>{var r=Zv(t);if(e&&null!=r&&null!=t){var{stackId:n}=t;if(null!=n){var a=e[n];if(a){var{stackedData:i}=a;if(i)return i.find(e=>e.key===r)}}}}),VT=uo([lu,cu,(e,t,r)=>{var n=H_(e,t);if(null!=n)return FO(e,"xAxis",n,r)},(e,t,r)=>{var n=q_(e,t);if(null!=n)return FO(e,"yAxis",n,r)},(e,t,r)=>{var n=H_(e,t);if(null!=n)return $O(e,"xAxis",n,r)},(e,t,r)=>{var n=q_(e,t);if(null!=n)return $O(e,"yAxis",n,r)},BT,Uu,Dh,zT,RT,IT,(e,t,r,n)=>n],(e,t,r,n,a,i,o,l,s,c,u,d,f)=>{var{chartData:p,dataStartIndex:h,dataEndIndex:v}=s;if(null!=d&&null!=o&&null!=t&&("horizontal"===l||"vertical"===l)&&null!=r&&null!=n&&null!=a&&null!=i&&null!=c){var y,{data:m}=d;if(null!=(y=null!=m&&m.length>0?m:null==p?void 0:p.slice(h,v+1)))return function(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n,hasCustomShape:a},pos:i,bandSize:o,xAxis:l,yAxis:s,xAxisTicks:c,yAxisTicks:u,stackedData:d,displayedData:f,offset:p,cells:h,parentViewBox:v,dataStartIndex:y}=e,m="horizontal"===t?s:l,g=d?m.scale.domain():null,b=(e=>{var{numericAxis:t}=e,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return n<=0&&a>=0?0:a<0?a:n}return r[0]})({numericAxis:m}),x=m.scale.map(b);return f.map((e,f)=>{var m,w,O,E,S,P;if(d){var j=d[f+y];if(null==j)return null;m=((e,t)=>{if(!t||2!==t.length||!jn(t[0])||!jn(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),a=[e[0],e[1]];return(!jn(e[0])||e[0]<r)&&(a[0]=r),(!jn(e[1])||e[1]>n)&&(a[1]=n),a[0]>n&&(a[0]=n),a[1]<r&&(a[1]=r),a})(j,g)}else m=Tc(e,r),Array.isArray(m)||(m=[b,m]);var k=TT(n,cI)(m[1],f);if("horizontal"===t){var A,N=s.scale.map(m[0]),_=s.scale.map(m[1]);if(null==N||null==_)return null;w=Rc({axis:l,ticks:c,bandSize:o,offset:i.offset,entry:e,index:f}),O=null!==(A=null!=_?_:N)&&void 0!==A?A:void 0,E=i.size;var T=N-_;if(S=Sn(T)?0:T,P={x:w,y:p.top,width:E,height:p.height},Math.abs(k)>0&&Math.abs(S)<Math.abs(k)){var I=En(S||k)*(Math.abs(k)-Math.abs(S));O-=I,S+=I}}else{var M=l.scale.map(m[0]),D=l.scale.map(m[1]);if(null==M||null==D)return null;if(w=M,O=Rc({axis:s,ticks:u,bandSize:o,offset:i.offset,entry:e,index:f}),E=D-M,S=i.size,P={x:p.left,y:O,width:p.width,height:S},Math.abs(k)>0&&Math.abs(E)<Math.abs(k))E+=En(E||k)*(Math.abs(k)-Math.abs(E))}return null!=w&&null!=O&&null!=E&&null!=S&&(a||0!==E&&0!==S)?ZT(ZT({},e),{},{stackedBarStart:x,x:w,y:O,width:E,height:S,value:d?m:m[1],payload:e,background:P,tooltipPosition:{x:w+E/2,y:O+S/2},parentViewBox:v,originalDataIndex:f},h&&h[f]&&h[f].props):null}).filter(Boolean)}({layout:l,barSettings:d,pos:o,parentViewBox:t,bandSize:c,xAxis:r,yAxis:n,xAxisTicks:a,yAxisTicks:i,stackedData:u,displayedData:y,offset:e,cells:f,dataStartIndex:h})}}),KT=["index"];function $T(){return $T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$T.apply(null,arguments)}var FT=o(void 0),WT=e=>{var{index:t}=e,n=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,KT),a=(e=>{var t=l(FT);if(null!=t){var{stackId:r}=t;return"url(#".concat(((e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t))(r,e),")")}})(t);return r.createElement(Ut,$T({className:"recharts-bar-stack-layer",clipPath:a},n))},UT=["onMouseEnter","onMouseLeave","onClick"],HT=["value","background","tooltipPosition"],qT=["id"],YT=["onMouseEnter","onClick","onMouseLeave"];function GT(){return GT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},GT.apply(null,arguments)}function XT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ZT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?XT(Object(r),!0).forEach(function(t){JT(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XT(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function JT(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QT(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var eI=e=>{var{dataKey:t,name:r,fill:n,legendType:a,hide:i}=e;return[{inactive:i,dataKey:t,type:a,color:n,value:Uc(r,t),payload:e}]},tI=r.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:a,fill:i,name:o,hide:l,unit:s,tooltipType:c,id:u}=e,d={dataDefinedOnItem:void 0,getPosition:Ln,settings:{stroke:n,strokeWidth:a,fill:i,dataKey:t,nameKey:void 0,name:Uc(o,t),hide:l,type:c,color:i,unit:s,graphicalItemId:u}};return r.createElement(lA,{tooltipEntrySettings:d})});function rI(e){var t=Ji(vS),{data:n,dataKey:a,background:i,allOtherBarProps:o}=e,{onMouseEnter:l,onMouseLeave:s,onClick:c}=o,u=QT(o,UT),d=aA(l,a,o.id),f=iA(s),p=oA(c,a,o.id);if(!i||null==n)return null;var h,v,y=Bt(i);return r.createElement(oP,{zIndex:(h=i,v=Iv.barBackground,h&&"object"==typeof h&&"zIndex"in h&&"number"==typeof h.zIndex&&jc(h.zIndex)?h.zIndex:v)},n.map((e,n)=>{var{value:o,background:l,tooltipPosition:s}=e,c=QT(e,HT);if(!l)return null;var h=d(e,n),v=f(e,n),m=p(e,n),g=ZT(ZT(ZT(ZT(ZT({option:i,isActive:String(n)===t},c),{},{fill:"#eee"},l),y),Yn(u,e,n)),{},{onMouseEnter:h,onMouseLeave:v,onClick:m,dataKey:a,index:n,className:"recharts-bar-background-rectangle"});return r.createElement(_T,GT({key:"background-bar-".concat(n)},g))}))}function nI(e){var{showLabels:t,children:n,rects:a}=e,i=null==a?void 0:a.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return ZT(ZT({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return r.createElement(nk,{value:t?i:void 0},n)}function aI(e){var{shape:t,activeBar:n,baseProps:a,entry:i,index:o,dataKey:l}=e,s=Ji(vS),d=Ji(mS),f=n&&String(i.originalDataIndex)===s&&(null==d||l===d),[h,v]=c(!1),[y,m]=c(!1);p(()=>{var e;return f?(v(!0),e=requestAnimationFrame(()=>{m(!0)})):m(!1),()=>{cancelAnimationFrame(e)}},[f]);var g,b=u(()=>{f||v(!1)},[f]),x=f&&y,w=f||h;g=f?!0===n?t:n:t;var O=r.createElement(_T,GT({},a,{name:String(a.name)},i,{isActive:x,option:g,index:o,dataKey:l,onTransitionEnd:b}));return w?r.createElement(oP,{zIndex:Iv.activeBar},r.createElement(WT,{index:i.originalDataIndex},O)):O}function iI(e){var{shape:t,baseProps:n,entry:a,index:i,dataKey:o}=e;return r.createElement(_T,GT({},n,{name:String(n.name)},a,{isActive:!1,option:t,index:i,dataKey:o}))}function oI(e){var t,{data:n,props:a}=e,i=null!==(t=Lt(a))&&void 0!==t?t:{},{id:o}=i,l=QT(i,qT),{shape:s,dataKey:c,activeBar:u}=a,{onMouseEnter:d,onClick:f,onMouseLeave:p}=a,h=QT(a,YT),v=aA(d,c,o),y=iA(p),m=oA(f,c,o);return n?r.createElement(r.Fragment,null,n.map((e,t)=>r.createElement(WT,GT({index:e.originalDataIndex,key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(t),className:"recharts-bar-rectangle"},Yn(h,e,t),{onMouseEnter:v(e,t),onMouseLeave:y(e,t),onClick:m(e,t)}),u?r.createElement(aI,{shape:s,activeBar:u,baseProps:l,entry:e,index:t,dataKey:c}):r.createElement(iI,{shape:s,baseProps:l,entry:e,index:t,dataKey:c})))):null}function lI(e){var{props:t,previousRectanglesRef:n}=e,{data:a,layout:i,isAnimationActive:o,animationBegin:l,animationDuration:s,animationEasing:d,onAnimationEnd:f,onAnimationStart:p}=t,h=n.current,v=jp(t,"recharts-bar-"),[y,m]=c(!1),g=!y,b=u(()=>{"function"==typeof f&&f(),m(!1)},[f]),x=u(()=>{"function"==typeof p&&p(),m(!0)},[p]);return r.createElement(nI,{showLabels:g,rects:a},r.createElement(Pp,{animationId:v,begin:l,duration:s,isActive:o,easing:d,onAnimationEnd:b,onAnimationStart:x,key:v},e=>{var o=1===e?a:null==a?void 0:a.map((t,r)=>{var n=h&&h[r];if(n)return ZT(ZT({},t),{},{x:In(n.x,t.x,e),y:In(n.y,t.y,e),width:In(n.width,t.width,e),height:In(n.height,t.height,e)});if("horizontal"===i){var a=In(0,t.height,e),o=In(t.stackedBarStart,t.y,e);return ZT(ZT({},t),{},{y:o,height:a})}var l=In(0,t.width,e),s=In(t.stackedBarStart,t.x,e);return ZT(ZT({},t),{},{width:l,x:s})});return e>0&&(n.current=null!=o?o:null),null==o?null:r.createElement(Ut,null,r.createElement(oI,{props:t,data:o}))}),r.createElement(ok,{label:t.label}),t.children)}function sI(e){var t=d(null);return r.createElement(lI,{previousRectanglesRef:t,props:e})}var cI=0,uI=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Tc(e,t)}};class dI extends x{render(){var{hide:e,data:t,dataKey:n,className:a,xAxisId:i,yAxisId:o,needClip:l,background:s,id:c}=this.props;if(e||null==t)return null;var u=S("recharts-bar",a),d=c;return r.createElement(Ut,{className:u,id:c},l&&r.createElement("defs",null,r.createElement(p_,{clipPathId:d,xAxisId:i,yAxisId:o})),r.createElement(Ut,{className:"recharts-bar-rectangles",clipPath:l?"url(#clipPath-".concat(d,")"):void 0},r.createElement(rI,{data:t,dataKey:n,background:s,allOtherBarProps:this.props}),r.createElement(sI,this.props)))}}var fI={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:cI,xAxisId:0,yAxisId:0,zIndex:Iv.bar};function pI(e){var t,{xAxisId:n,yAxisId:a,hide:i,legendType:o,minPointSize:l,activeBar:s,animationBegin:c,animationDuration:u,animationEasing:d,isAnimationActive:f}=e,{needClip:p}=f_(n,a),h=Hu(),v=du(),y=Nk(e.children,UP),m=Ji(t=>VT(t,e.id,v,y));if("vertical"!==h&&"horizontal"!==h)return null;var g=null==m?void 0:m[0];return t=null==g||null==g.height||null==g.width?0:"vertical"===h?g.height/2:g.width/2,r.createElement(d_,{xAxisId:n,yAxisId:a,data:m,dataPointFormatter:uI,errorBarOffset:t},r.createElement(dI,GT({},e,{layout:h,needClip:p,data:m,xAxisId:n,yAxisId:a,hide:i,legendType:o,minPointSize:l,activeBar:s,animationBegin:c,animationDuration:u,animationEasing:d,isAnimationActive:f})))}function hI(e){var t,n,a=Zn(e,fI),i=(t=a.stackId,null!=(n=l(FT))?n.stackId:null!=t?Lc(t):void 0),o=du();return r.createElement(dA,{id:a.id,type:"bar"},e=>r.createElement(r.Fragment,null,r.createElement(sA,{legendPayload:eI(a)}),r.createElement(tI,{dataKey:a.dataKey,stroke:a.stroke,strokeWidth:a.strokeWidth,fill:a.fill,name:a.name,hide:a.hide,unit:a.unit,tooltipType:a.tooltipType,id:e}),r.createElement(xA,{type:"bar",id:e,data:void 0,xAxisId:a.xAxisId,yAxisId:a.yAxisId,zAxisId:0,dataKey:a.dataKey,stackId:i,hide:a.hide,barSize:a.barSize,minPointSize:a.minPointSize,maxBarSize:a.maxBarSize,isPanorama:o,hasCustomShape:null!=a.shape}),r.createElement(oP,{zIndex:a.zIndex},r.createElement(pI,GT({},a,{id:e})))))}var vI=r.memo(hI,pf);vI.displayName="Bar";var yI=["option","isActive"];function mI(){return mI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mI.apply(null,arguments)}function gI(e){var{option:t,isActive:n}=e,a=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,yI);return"string"==typeof t?r.createElement(rA,mI({option:r.createElement(Un,mI({type:t},a)),isActive:n,shapeType:"symbols"},a)):r.createElement(rA,mI({option:t,isActive:n,shapeType:"symbols"},a))}var bI=uo([ow,(e,t,r,n,a)=>a],(e,t)=>e.filter(e=>"scatter"===e.type).find(e=>e.id===t)),xI=uo([(e,t,r,n,a,i,o)=>Mh(e,0,0,o),(e,t,r,n,a,i,o)=>FO(e,"xAxis",t,o),(e,t,r,n,a,i,o)=>$O(e,"xAxis",t,o),(e,t,r,n,a,i,o)=>FO(e,"yAxis",r,o),(e,t,r,n,a,i,o)=>$O(e,"yAxis",r,o),(e,t,r,n)=>HO(e,"zAxis",n,!1),bI,(e,t,r,n,a,i)=>i],(e,t,r,n,a,i,o,l)=>{var s,{chartData:c,dataStartIndex:u,dataEndIndex:d}=e;if(null!=o&&(null!=(s=null!=(null==o?void 0:o.data)&&o.data.length>0?o.data:null==c?void 0:c.slice(u,d+1))&&null!=t&&null!=n&&null!=r&&null!=a&&0!==(null==r?void 0:r.length)&&0!==(null==a?void 0:a.length)))return function(e){var{displayedData:t,xAxis:r,yAxis:n,zAxis:a,scatterSettings:i,xAxisTicks:o,yAxisTicks:l,cells:s}=e,c=Dn(r.dataKey)?i.dataKey:r.dataKey,u=Dn(n.dataKey)?i.dataKey:n.dataKey,d=a&&a.dataKey,f=a?a.range:ew.range,p=f&&f[0],h=r.scale.bandwidth?r.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0;return t.map((e,t)=>{var f=Tc(e,c),y=Tc(e,u),m=!Dn(d)&&Tc(e,d)||"-",g=[{name:Dn(r.dataKey)?i.name:r.name||String(r.dataKey),unit:r.unit||"",value:f,payload:e,dataKey:c,type:i.tooltipType,graphicalItemId:i.id},{name:Dn(n.dataKey)?i.name:n.name||String(n.dataKey),unit:n.unit||"",value:y,payload:e,dataKey:u,type:i.tooltipType,graphicalItemId:i.id}];"-"!==m&&null!=a&&g.push({name:a.name||a.dataKey,unit:a.unit||"",value:m,payload:e,dataKey:d,type:i.tooltipType,graphicalItemId:i.id});var b=Bc({axis:r,ticks:o,bandSize:h,entry:e,index:t,dataKey:c}),x=Bc({axis:n,ticks:l,bandSize:v,entry:e,index:t,dataKey:u}),w="-"!==m&&null!=a?a.scale.map(m):p,O=null==w?0:Math.sqrt(Math.max(w,0)/Math.PI);return kI(kI({},e),{},{cx:b,cy:x,x:null==b?void 0:b-O,y:null==x?void 0:x-O,width:2*O,height:2*O,size:w,node:{x:f,y:y,z:m},tooltipPayload:g,tooltipPosition:{x:b,y:x},payload:e},s&&s[t]&&s[t].props)})}({displayedData:s,xAxis:t,yAxis:n,zAxis:i,scatterSettings:o,xAxisTicks:r,yAxisTicks:a,cells:l})}),wI=["id"],OI=["onMouseEnter","onClick","onMouseLeave"],EI=["animationBegin","animationDuration","animationEasing","hide","isAnimationActive","legendType","lineJointType","lineType","shape","xAxisId","yAxisId","zAxisId"];function SI(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function PI(){return PI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PI.apply(null,arguments)}function jI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function kI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jI(Object(r),!0).forEach(function(t){AI(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jI(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function AI(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var NI=e=>{var{dataKey:t,name:r,fill:n,legendType:a,hide:i}=e;return[{inactive:i,dataKey:t,type:a,color:n,value:Uc(r,t),payload:e}]},_I=r.memo(e=>{var{dataKey:t,points:n,stroke:a,strokeWidth:i,fill:o,name:l,hide:s,tooltipType:c,id:u}=e,d={dataDefinedOnItem:null==n?void 0:n.map(e=>e.tooltipPayload),getPosition:e=>{var t;return null==n||null===(t=n[Number(e)])||void 0===t?void 0:t.tooltipPosition},settings:{stroke:a,strokeWidth:i,fill:o,nameKey:void 0,dataKey:t,name:Uc(l,t),hide:s,type:c,color:o,unit:"",graphicalItemId:u}};return r.createElement(lA,{tooltipEntrySettings:d})});function TI(e){var{points:t,props:n}=e,{line:a,lineType:i,lineJointType:o}=n;if(!a)return null;var l,s,c=Lt(n),u=Bt(a);if("joint"===i)l=t.map(e=>{var t,r;return{x:null!==(t=e.cx)&&void 0!==t?t:null,y:null!==(r=e.cy)&&void 0!==r?r:null}});else if("fitting"===i){var{xmin:d,xmax:f,a:p,b:h}=(e=>{for(var t=e.length,r=0,n=0,a=0,i=0,o=1/0,l=-1/0,s=0,c=0,u=0;u<t;u++){var d,f;r+=s=(null===(d=e[u])||void 0===d?void 0:d.cx)||0,n+=c=(null===(f=e[u])||void 0===f?void 0:f.cy)||0,a+=s*c,i+=s*s,o=Math.min(o,s),l=Math.max(l,s)}var p=t*i!==r*r?(t*a-r*n)/(t*i-r*r):0;return{xmin:o,xmax:l,a:p,b:(n-p*r)/t}})(t),v=e=>p*e+h;l=[{x:d,y:v(d)},{x:f,y:v(f)}]}var y=kI(kI(kI({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:l});return s=r.isValidElement(a)?r.cloneElement(a,y):"function"==typeof a?a(y):r.createElement(Uf,PI({},y,{type:o})),r.createElement(Ut,{className:"recharts-scatter-line",key:"recharts-scatter-line"},s)}function II(e){var{showLabels:t,points:n,children:a}=e,i=Vu(),o=s(()=>null==n?void 0:n.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width};return kI(kI({},n),{},{value:void 0,payload:e.payload,viewBox:n,parentViewBox:i,fill:void 0})}),[i,n]);return r.createElement(nk,{value:t?o:void 0},a)}function MI(e){var t,{points:n,allOtherScatterProps:a}=e,{shape:i,activeShape:o,dataKey:l}=a,{id:s}=a,c=SI(a,wI),u=Ji(vS),{onMouseEnter:d,onClick:f,onMouseLeave:p}=a,h=SI(a,OI),v=aA(d,l,s),y=iA(p),m=oA(f,l,s);if(t=n,!(Array.isArray(t)&&t.length>0))return null;var g=Lt(c);return r.createElement(r.Fragment,null,r.createElement(TI,{points:n,props:c}),n.map((e,t)=>{var n=null!=o&&!1!==o,a=n&&u===String(t),l=n&&a?o:i,c=kI(kI(kI({},g),e),{},{index:t,[Jc]:String(s)});return r.createElement(oP,{key:"symbol-".concat(null==e?void 0:e.cx,"-").concat(null==e?void 0:e.cy,"-").concat(null==e?void 0:e.size,"-").concat(t),zIndex:a?Iv.activeDot:void 0},r.createElement(Ut,PI({className:"recharts-scatter-symbol"},Yn(h,e,t),{onMouseEnter:v(e,t),onMouseLeave:y(e,t),onClick:m(e,t)}),r.createElement(gI,PI({option:l,isActive:a},c))))}))}function DI(e){var{previousPointsRef:t,props:n}=e,{points:a,isAnimationActive:i,animationBegin:o,animationDuration:l,animationEasing:s}=n,d=t.current,f=jp(n,"recharts-scatter-"),[p,h]=c(!1),v=u(()=>{h(!1)},[]),y=u(()=>{h(!0)},[]),m=!p;return r.createElement(II,{showLabels:m,points:a},n.children,r.createElement(Pp,{animationId:f,begin:o,duration:l,isActive:i,easing:s,onAnimationEnd:v,onAnimationStart:y,key:f},e=>{var i=1===e?a:null==a?void 0:a.map((t,r)=>{var n=d&&d[r];return kI(kI({},t),{},n?{cx:null==t.cx?void 0:In(n.cx,t.cx,e),cy:null==t.cy?void 0:In(n.cy,t.cy,e),size:In(n.size,t.size,e)}:{size:In(0,t.size,e)})});return e>0&&(t.current=i),r.createElement(Ut,null,r.createElement(MI,{points:i,allOtherScatterProps:n,showLabels:m}))}),r.createElement(ok,{label:n.label}))}var CI=(e,t,r)=>({x:e.cx,y:e.cy,value:Number("x"===r?e.node.x:e.node.y),errorVal:Tc(e,t)});function zI(e){var{hide:t,points:n,className:a,needClip:i,xAxisId:o,yAxisId:l,id:s}=e,c=d(null);if(t)return null;var u=S("recharts-scatter",a),f=s;return r.createElement(oP,{zIndex:e.zIndex},r.createElement(Ut,{className:u,clipPath:i?"url(#clipPath-".concat(f,")"):void 0,id:s},i&&r.createElement("defs",null,r.createElement(p_,{clipPathId:f,xAxisId:o,yAxisId:l})),r.createElement(d_,{xAxisId:o,yAxisId:l,data:n,dataPointFormatter:CI,errorBarOffset:0},r.createElement(Ut,{key:"recharts-scatter-symbols"},r.createElement(DI,{props:e,previousPointsRef:c})))))}var LI={xAxisId:0,yAxisId:0,zAxisId:0,label:!1,line:!1,legendType:"circle",lineType:"joint",lineJointType:"linear",shape:"circle",hide:!1,isAnimationActive:"auto",animationBegin:0,animationDuration:400,animationEasing:"linear",zIndex:Iv.scatter};function BI(e){var t=Zn(e,LI),{animationBegin:n,animationDuration:a,animationEasing:i,hide:o,isAnimationActive:l,legendType:c,lineJointType:u,lineType:d,shape:f,xAxisId:p,yAxisId:h,zAxisId:v}=t,y=SI(t,EI),{needClip:m}=f_(p,h),g=s(()=>Nk(e.children,UP),[e.children]),b=du(),x=Ji(t=>xI(t,p,h,v,e.id,g,b));return null==m||null==x?null:r.createElement(r.Fragment,null,r.createElement(_I,{dataKey:e.dataKey,points:x,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:e.id}),r.createElement(zI,PI({},y,{xAxisId:p,yAxisId:h,zAxisId:v,lineType:d,lineJointType:u,legendType:c,shape:f,hide:o,isAnimationActive:l,animationBegin:n,animationDuration:a,animationEasing:i,points:x,needClip:m})))}function RI(e){var t=Zn(e,LI),n=du();return r.createElement(dA,{id:t.id,type:"scatter"},e=>r.createElement(r.Fragment,null,r.createElement(sA,{legendPayload:NI(t)}),r.createElement(xA,{type:"scatter",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:t.zAxisId,dataKey:t.dataKey,hide:t.hide,name:t.name,tooltipType:t.tooltipType,isPanorama:n}),r.createElement(BI,PI({},t,{id:e}))))}var VI=r.memo(RI,pf);VI.displayName="Scatter";var KI=["domain","range"],$I=["domain","range"];function FI(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function WI(e,t){return e===t||!(!Array.isArray(e)||2!==e.length||!Array.isArray(t)||2!==t.length)&&(e[0]===t[0]&&e[1]===t[1])}function UI(e,t){if(e===t)return!0;var{domain:r,range:n}=e,a=FI(e,KI),{domain:i,range:o}=t,l=FI(t,$I);return!!WI(r,i)&&(!!WI(n,o)&&pf(a,l))}var HI=["type"],qI=["dangerouslySetInnerHTML","ticks","scale"],YI=["id","scale"];function GI(){return GI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},GI.apply(null,arguments)}function XI(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ZI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?XI(Object(r),!0).forEach(function(t){JI(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XI(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function JI(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QI(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function eM(e){var t=Yi(),r=d(null),n=qu(),{type:a}=e,i=QI(e,HI),o=Dv(n,"xAxis",a),l=s(()=>{if(null!=o)return ZI(ZI({},i),{},{type:o})},[i,o]);return h(()=>{null!=l&&(null===r.current?t(IA(l)):r.current!==l&&t(MA({prev:r.current,next:l})),r.current=l)},[l,t]),h(()=>()=>{r.current&&(t(DA(r.current)),r.current=null)},[t]),null}var tM=e=>{var{xAxisId:t,className:n}=e,a=Ji(cu),i=du(),o="xAxis",l=Ji(e=>KO(e,o,t,i)),s=Ji(e=>TO(e,t)),c=Ji(e=>DO(e,t)),u=Ji(e=>Gx(e,t));if(null==s||null==c||null==u)return null;var{dangerouslySetInnerHTML:d,ticks:f,scale:p}=e,h=QI(e,qI),{id:v,scale:y}=u,m=QI(u,YI);return r.createElement(BN,GI({},h,m,{x:c.x,y:c.y,width:s.width,height:s.height,className:S("recharts-".concat(o," ").concat(o),n),viewBox:a,ticks:l,axisType:o,axisId:t}))},rM={allowDataOverflow:Yx.allowDataOverflow,allowDecimals:Yx.allowDecimals,allowDuplicatedCategory:Yx.allowDuplicatedCategory,angle:Yx.angle,axisLine:IN.axisLine,height:Yx.height,hide:!1,includeHidden:Yx.includeHidden,interval:Yx.interval,label:!1,minTickGap:Yx.minTickGap,mirror:Yx.mirror,orientation:Yx.orientation,padding:Yx.padding,reversed:Yx.reversed,scale:Yx.scale,tick:Yx.tick,tickCount:Yx.tickCount,tickLine:IN.tickLine,tickSize:IN.tickSize,type:Yx.type,niceTicks:Yx.niceTicks,xAxisId:0},nM=e=>{var t=Zn(e,rM);return r.createElement(r.Fragment,null,r.createElement(eM,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),r.createElement(tM,t))},aM=r.memo(nM,UI);aM.displayName="XAxis";var iM=["type"],oM=["dangerouslySetInnerHTML","ticks","scale"],lM=["id","scale"];function sM(){return sM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sM.apply(null,arguments)}function cM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cM(Object(r),!0).forEach(function(t){dM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function dM(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fM(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function pM(e){var t=Yi(),r=d(null),n=qu(),{type:a}=e,i=fM(e,iM),o=Dv(n,"yAxis",a),l=s(()=>{if(null!=o)return uM(uM({},i),{},{type:o})},[o,i]);return h(()=>{null!=l&&(null===r.current?t(CA(l)):r.current!==l&&t(zA({prev:r.current,next:l})),r.current=l)},[l,t]),h(()=>()=>{r.current&&(t(LA(r.current)),r.current=null)},[t]),null}function hM(e){var{yAxisId:t,className:n,width:i,label:o}=e,l=d(null),s=d(null),c=Ji(cu),u=du(),f=Yi(),p="yAxis",v=Ji(e=>zO(e,t)),y=Ji(e=>CO(e,t)),m=Ji(e=>KO(e,p,t,u)),g=Ji(e=>Jx(e,t));if(h(()=>{if("auto"===i&&v&&!Uj(o)&&!a(o)&&null!=g){var e=l.current;if(e){var r=e.getCalculatedWidth();Math.round(v.width)!==Math.round(r)&&f(KA({id:t,width:r}))}}},[m,v,f,o,t,i,g]),null==v||null==y||null==g)return null;var{dangerouslySetInnerHTML:b,ticks:x,scale:w}=e,O=fM(e,oM),{id:E,scale:P}=g,j=fM(g,lM);return r.createElement(BN,sM({},O,j,{ref:l,labelRef:s,x:y.x,y:y.y,tickTextProps:"auto"===i?{width:void 0}:{width:i},width:v.width,height:v.height,className:S("recharts-".concat(p," ").concat(p),n),viewBox:c,ticks:m,axisType:p,axisId:t}))}var vM={allowDataOverflow:Zx.allowDataOverflow,allowDecimals:Zx.allowDecimals,allowDuplicatedCategory:Zx.allowDuplicatedCategory,angle:Zx.angle,axisLine:IN.axisLine,hide:!1,includeHidden:Zx.includeHidden,interval:Zx.interval,label:!1,minTickGap:Zx.minTickGap,mirror:Zx.mirror,orientation:Zx.orientation,padding:Zx.padding,reversed:Zx.reversed,scale:Zx.scale,tick:Zx.tick,tickCount:Zx.tickCount,tickLine:IN.tickLine,tickSize:IN.tickSize,type:Zx.type,niceTicks:Zx.niceTicks,width:Zx.width,yAxisId:0},yM=e=>{var t=Zn(e,vM);return r.createElement(r.Fragment,null,r.createElement(pM,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),r.createElement(hM,t))},mM=r.memo(yM,UI);mM.displayName="YAxis";var gM=uo([(e,t)=>t,Uu,Yv,ry,iS,uS,LS,lu],(e,t,r,n,a,i,o,l)=>{if(e&&t&&n&&a&&i)return"horizontal"===t||"vertical"===t?((e,t,r,n,a,i,o)=>{if(e&&r&&n&&a&&function(e,t){var{relativeX:r,relativeY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}(e,o)){var l=((e,t)=>"horizontal"===t?e.relativeX:"vertical"===t?e.relativeY:void 0)(e,t),s=IS(l,i,a,r,n),c=((e,t,r,n)=>{var a=t.find(e=>e&&e.index===r);if(a){if("horizontal"===e)return{x:a.coordinate,y:n.relativeY};if("vertical"===e)return{x:n.relativeX,y:a.coordinate}}return{x:0,y:0}})(t,a,s,e);return{activeIndex:String(s),activeCoordinate:c}}})(e,t,n,a,i,o,l):HS(e,t,r,n,a,i,o)});function bM(e){var t,r,n,a=e.currentTarget.getBoundingClientRect();if("getBBox"in(n=e).currentTarget&&"function"==typeof n.currentTarget.getBBox){var i=e.currentTarget.getBBox();t=i.width>0?a.width/i.width:1,r=i.height>0?a.height/i.height:1}else{var o=e.currentTarget;t=o.offsetWidth>0?a.width/o.offsetWidth:1,r=o.offsetHeight>0?a.height/o.offsetHeight:1}var l=(e,n)=>({relativeX:Math.round((e-a.left)/t),relativeY:Math.round((n-a.top)/r)});return"touches"in e?Array.from(e.touches).map(e=>l(e.clientX,e.clientY)):l(e.clientX,e.clientY)}var xM=ps("mouseClick"),wM=mc();wM.startListening({actionCreator:xM,effect:(e,t)=>{var r=e.payload,n=gM(t.getState(),bM(r));null!=(null==n?void 0:n.activeIndex)&&t.dispatch(uE({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var OM=ps("mouseMove"),EM=mc(),SM=null,PM=null,jM=null;function kM(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":"children"===e&&"object"==typeof t&&null!==t?"<<CHILDREN>>":t}EM.startListening({actionCreator:OM,effect:(e,t)=>{var r=e.payload,n=t.getState(),{throttleDelay:a,throttledEvents:i}=n.eventSettings,o="all"===i||(null==i?void 0:i.includes("mousemove"));null!==SM&&(cancelAnimationFrame(SM),SM=null),null===PM||"number"==typeof a&&o||(clearTimeout(PM),PM=null),jM=bM(r);var l=()=>{var e=t.getState(),r=ZO(e,e.tooltip.settings.shared);if(!jM)return SM=null,void(PM=null);if("axis"===r){var n=gM(e,jM);null!=(null==n?void 0:n.activeIndex)?t.dispatch(cE({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate})):t.dispatch(lE())}SM=null,PM=null};o?"raf"===a?SM=requestAnimationFrame(l):"number"==typeof a&&null===PM&&(PM=setTimeout(l,a)):l()}});var AM={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},NM=Rs({name:"rootProps",initialState:AM,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!==(r=t.payload.barGap)&&void 0!==r?r:AM.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),_M=NM.reducer,{updateOptions:TM}=NM.actions,IM=Rs({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>null===e?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}),{updatePolarOptions:MM}=IM.actions,DM=IM.reducer,CM=ps("keyDown"),zM=ps("focus"),LM=ps("blur"),BM=mc(),RM=null,VM=null,KM=null;function $M(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,r)=>{if("currentTarget"===r)return t;var n=Reflect.get(e,r);return"function"==typeof n?n.bind(e):n}})}BM.startListening({actionCreator:CM,effect:(e,t)=>{KM=e.payload,null!==RM&&(cancelAnimationFrame(RM),RM=null);var r=t.getState(),{throttleDelay:n,throttledEvents:a}=r.eventSettings,i="all"===a||a.includes("keydown");null===VM||"number"==typeof n&&i||(clearTimeout(VM),VM=null);var o=()=>{try{var e=t.getState();if(!(!1!==e.rootProps.accessibilityLayer))return;var{keyboardInteraction:r}=e.tooltip,n=KM;if("ArrowRight"!==n&&"ArrowLeft"!==n&&"Enter"!==n)return;var a=bE(r,zE(e),kw(e),tS(e)),i=null==a?-1:Number(a),o=!Number.isFinite(i)||i<0,l=uS(e),s=zE(e),c=ZO(e,e.tooltip.settings.shared);if("Enter"===n){if(o)return;var u=KS(e,c,"hover",String(r.index));return void t.dispatch(fE({active:!r.active,activeIndex:r.index,activeCoordinate:u}))}var d,f="left-to-right"===qO(e)?1:-1,p="ArrowRight"===n?1:-1;if(o){var h=kw(e),v=tS(e),y=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(d=-1,p*f>0){for(var m=0;m<s.length;m++)if(null!=bE(y(m),s,h,v)){d=m;break}}else for(var g=s.length-1;g>=0;g--)if(null!=bE(y(g),s,h,v)){d=g;break}if(d<0)return}else{d=i+p*f;var b=(null==l?void 0:l.length)||s.length;if(0===b||d>=b||d<0)return}var x=KS(e,c,"hover",String(d));t.dispatch(fE({active:!0,activeIndex:d.toString(),activeCoordinate:x}))}finally{RM=null,VM=null}};i?"raf"===n?RM=requestAnimationFrame(o):"number"==typeof n&&null===VM&&(o(),KM=null,VM=setTimeout(()=>{KM?o():(VM=null,RM=null)},n)):o()}}),BM.startListening({actionCreator:zM,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;if(!n.active&&null==n.index){var a=ZO(r,r.tooltip.settings.shared),i=KS(r,a,"hover",String("0"));t.dispatch(fE({active:!0,activeIndex:"0",activeCoordinate:i}))}}}}),BM.startListening({actionCreator:LM,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;n.active&&t.dispatch(fE({active:!1,activeIndex:n.index,activeCoordinate:n.coordinate}))}}});var FM=ps("externalEvent"),WM=mc(),UM=new Map,HM=new Map,qM=new Map;WM.startListening({actionCreator:FM,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(null!=r){var a=n.type,i=$M(n);qM.set(a,{handler:r,reactEvent:i});var o=UM.get(a);void 0!==o&&(cancelAnimationFrame(o),UM.delete(a));var l=t.getState(),{throttleDelay:s,throttledEvents:c}=l.eventSettings,u=c,d="all"===u||(null==u?void 0:u.includes(a)),f=HM.get(a);void 0===f||"number"==typeof s&&d||(clearTimeout(f),HM.delete(a));var p=()=>{var e=qM.get(a);try{if(!e)return;var{handler:r,reactEvent:n}=e,i=t.getState(),o={activeCoordinate:wS(i),activeDataKey:mS(i),activeIndex:vS(i),activeLabel:yS(i),activeTooltipIndex:vS(i),isTooltipActive:OS(i)};r&&r(o,n)}finally{UM.delete(a),HM.delete(a),qM.delete(a)}};if(d)if("raf"===s){var h=requestAnimationFrame(p);UM.set(a,h)}else if("number"==typeof s){if(!HM.has(a)){p();var v=setTimeout(p,s);HM.set(a,v)}}else p();else p()}}});var YM=uo([EE],e=>e.tooltipItemPayloads),GM=uo([YM,(e,t)=>t,(e,t,r)=>r],(e,t,r)=>{if(null!=t){var n=e.find(e=>e.settings.graphicalItemId===r);if(null!=n){var{getPosition:a}=n;if(null!=a)return a(t)}}}),XM=ps("touchMove"),ZM=mc(),JM=null,QM=null,eD=null,tD=null;ZM.startListening({actionCreator:XM,effect:(e,t)=>{var r=e.payload;if(null!=r.touches&&0!==r.touches.length){tD=$M(r);var n=t.getState(),{throttleDelay:a,throttledEvents:i}=n.eventSettings,o="all"===i||i.includes("touchmove");null!==JM&&(cancelAnimationFrame(JM),JM=null),null===QM||"number"==typeof a&&o||(clearTimeout(QM),QM=null),eD=Array.from(r.touches).map(e=>bM({clientX:e.clientX,clientY:e.clientY,currentTarget:r.currentTarget}));var l=()=>{if(null!=tD){var e=t.getState(),r=ZO(e,e.tooltip.settings.shared);if("axis"===r){var n,a=null===(n=eD)||void 0===n?void 0:n[0];if(null==a)return JM=null,void(QM=null);var i=gM(e,a);null!=(null==i?void 0:i.activeIndex)&&t.dispatch(cE({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if("item"===r){var o,l=tD.touches[0];if(null==document.elementFromPoint||null==l)return;var s=document.elementFromPoint(l.clientX,l.clientY);if(!s||!s.getAttribute)return;var c=s.getAttribute("data-recharts-item-index"),u=null!==(o=s.getAttribute(Jc))&&void 0!==o?o:void 0,d=IE(e).find(e=>e.id===u);if(null==c||null==d||null==u)return;var{dataKey:f}=d,p=GM(e,c,u);t.dispatch(iE({activeDataKey:f,activeIndex:c,activeCoordinate:p,activeGraphicalItemId:u}))}JM=null,QM=null}};o?"raf"===a?JM=requestAnimationFrame(l):"number"==typeof a&&null===QM&&(l(),tD=null,QM=setTimeout(()=>{tD?l():(QM=null,JM=null)},a)):l()}}});var rD={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},nD=Rs({name:"eventSettings",initialState:rD,reducers:{setEventSettings:(e,t)=>{null!=t.payload.throttleDelay&&(e.throttleDelay=t.payload.throttleDelay),null!=t.payload.throttledEvents&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:aD}=nD.actions,iD=qo({brush:iN,cartesianAxis:$A,chartData:_P,errorBars:s_,eventSettings:nD.reducer,graphicalItems:bA,layout:Sc,legend:qd,options:EP,polarAxis:hk,polarOptions:DM,referenceElements:pN,renderedTicks:jN,rootProps:_M,tooltip:pE,zIndex:iP});function oD(e){var{preloadedState:t,children:n,reduxStoreName:a}=e,i=du(),o=d(null);if(i)return n;null==o.current&&(o.current=function(e){return Is({reducer:iD,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([wM.middleware,EM.middleware,BM.middleware,WM.middleware,ZM.middleware]),enhancers:e=>{var t=e;return"function"==typeof e&&(t=e()),t.concat(Ts({type:"raf"}))},devTools:{serialize:{replacer:kM},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(t,a));var l=Hi;return r.createElement(uf,{context:l,store:o.current},n)}function lD(e){var{layout:t,margin:r}=e,n=Yi(),a=du();return p(()=>{a||(n(wc(t)),n(xc(r)))},[n,a,t,r]),null}var sD=g(lD,pf);function cD(e){var t=Yi();return p(()=>{t(TM(e))},[t,e]),null}var uD=g(e=>{var t=Yi();return p(()=>{t(aD(e))},[t,e]),null},pf);function dD(e){var{zIndex:t,isPanorama:n}=e,a=d(null),i=Yi();return h(()=>(a.current&&i(nP({zIndex:t,element:a.current,isPanorama:n})),()=>{i(aP({zIndex:t,isPanorama:n}))}),[i,t,n]),r.createElement("g",{tabIndex:-1,ref:a,className:"recharts-zIndex-layer_".concat(t)})}function fD(e){var{children:t,isPanorama:n}=e,a=Ji(YS);if(!a||0===a.length)return t;var i=a.filter(e=>e<0),o=a.filter(e=>e>0);return r.createElement(r.Fragment,null,i.map(e=>r.createElement(dD,{key:e,zIndex:e,isPanorama:n})),t,o.map(e=>r.createElement(dD,{key:e,zIndex:e,isPanorama:n})))}var pD=["children"];function hD(){return hD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hD.apply(null,arguments)}var vD={width:"100%",height:"100%",display:"block"},yD=i((e,t)=>{var n=Fu(),a=Wu(),i=Mf();if(!kc(n)||!kc(a))return null;var o,l,{children:s,otherAttributes:c,title:u,desc:d}=e;return null!=c&&(o="number"==typeof c.tabIndex?c.tabIndex:i?0:void 0,l="string"==typeof c.role?c.role:i?"application":void 0),r.createElement($t,hD({},c,{title:u,desc:d,role:l,tabIndex:o,width:n,height:a,style:vD,ref:t}),s)}),mD=e=>{var{children:t}=e,n=Ji(pu);if(!n)return null;var{width:a,height:i,y:o,x:l}=n;return r.createElement($t,{width:a,height:i,x:l,y:o},t)},gD=i((e,t)=>{var{children:n}=e,a=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,pD);return du()?r.createElement(mD,null,r.createElement(fD,{isPanorama:!0},n)):r.createElement(yD,hD({ref:t},a),r.createElement(fD,{isPanorama:!1},n))});function bD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bD(Object(r),!0).forEach(function(t){wD(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bD(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function wD(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OD(){return OD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},OD.apply(null,arguments)}var ED=()=>(zP(),null);function SD(e){if("number"==typeof e)return e;if("string"==typeof e){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var PD=i((e,t)=>{var n,a,i=d(null),[o,l]=c({containerWidth:SD(null===(n=e.style)||void 0===n?void 0:n.width),containerHeight:SD(null===(a=e.style)||void 0===a?void 0:a.height)}),s=u((e,t)=>{l(r=>{var n=Math.round(e),a=Math.round(t);return r.containerWidth===n&&r.containerHeight===a?r:{containerWidth:n,containerHeight:a}})},[]),f=u(e=>{if("function"==typeof t&&t(e),null!=i.current&&(i.current.disconnect(),i.current=null),null!=e&&"undefined"!=typeof ResizeObserver){var{width:r,height:n}=e.getBoundingClientRect();s(r,n);var a=new ResizeObserver(e=>{var t=e[0];if(null!=t){var{width:r,height:n}=t.contentRect;s(r,n)}});a.observe(e),i.current=a}},[t,s]);return p(()=>()=>{var e=i.current;null!=e&&e.disconnect()},[s]),r.createElement(r.Fragment,null,r.createElement(Gu,{width:o.containerWidth,height:o.containerHeight}),r.createElement("div",OD({ref:f},e)))}),jD=i((e,t)=>{var{width:n,height:a}=e,[i,o]=c({containerWidth:SD(n),containerHeight:SD(a)}),l=u((e,t)=>{o(r=>{var n=Math.round(e),a=Math.round(t);return r.containerWidth===n&&r.containerHeight===a?r:{containerWidth:n,containerHeight:a}})},[]),s=u(e=>{if("function"==typeof t&&t(e),null!=e){var{width:r,height:n}=e.getBoundingClientRect();l(r,n)}},[t,l]);return r.createElement(r.Fragment,null,r.createElement(Gu,{width:i.containerWidth,height:i.containerHeight}),r.createElement("div",OD({ref:s},e)))}),kD=i((e,t)=>{var{width:n,height:a}=e;return r.createElement(r.Fragment,null,r.createElement(Gu,{width:n,height:a}),r.createElement("div",OD({ref:t},e)))}),AD=i((e,t)=>{var{width:n,height:a}=e;return"string"==typeof n||"string"==typeof a?r.createElement(jD,OD({},e,{ref:t})):"number"==typeof n&&"number"==typeof a?r.createElement(kD,OD({},e,{width:n,height:a,ref:t})):r.createElement(r.Fragment,null,r.createElement(Gu,{width:n,height:a}),r.createElement("div",OD({ref:t},e)))});var ND=i((e,t)=>{var{children:n,className:a,height:i,onClick:o,onContextMenu:l,onDoubleClick:s,onMouseDown:f,onMouseEnter:h,onMouseLeave:v,onMouseMove:y,onMouseUp:m,onTouchEnd:g,onTouchMove:b,onTouchStart:x,style:w,width:O,responsive:E,dispatchTouchEvents:P=!0}=e,j=d(null),k=Yi(),[A,N]=c(null),[_,T]=c(null),I=function(){var e=Yi(),[t,r]=c(null),n=Ji(Yc);return p(()=>{if(null!=t){var r=t.getBoundingClientRect().width/t.offsetWidth;jc(r)&&r!==n&&e(Ec(r))}},[t,e,n]),r}(),M=zu(),D=(null==M?void 0:M.width)>0?M.width:O,C=(null==M?void 0:M.height)>0?M.height:i,z=u(e=>{I(e),"function"==typeof t&&t(e),N(e),T(e),null!=e&&(j.current=e)},[I,t,N,T]),L=u(e=>{k(xM(e)),k(FM({handler:o,reactEvent:e}))},[k,o]),B=u(e=>{k(OM(e)),k(FM({handler:h,reactEvent:e}))},[k,h]),R=u(e=>{k(lE()),k(FM({handler:v,reactEvent:e}))},[k,v]),V=u(e=>{k(OM(e)),k(FM({handler:y,reactEvent:e}))},[k,y]),K=u(()=>{k(zM())},[k]),$=u(()=>{k(LM())},[k]),F=u(e=>{k(CM(e.key))},[k]),W=u(e=>{k(FM({handler:l,reactEvent:e}))},[k,l]),U=u(e=>{k(FM({handler:s,reactEvent:e}))},[k,s]),H=u(e=>{k(FM({handler:f,reactEvent:e}))},[k,f]),q=u(e=>{k(FM({handler:m,reactEvent:e}))},[k,m]),Y=u(e=>{k(FM({handler:x,reactEvent:e}))},[k,x]),G=u(e=>{P&&k(XM(e)),k(FM({handler:b,reactEvent:e}))},[k,P,b]),X=u(e=>{k(FM({handler:g,reactEvent:e}))},[k,g]),Z=function(e){return e?PD:AD}(E);return r.createElement(vP.Provider,{value:A},r.createElement(Ht.Provider,{value:_},r.createElement(Z,{width:null!=D?D:null==w?void 0:w.width,height:null!=C?C:null==w?void 0:w.height,className:S("recharts-wrapper",a),style:xD({position:"relative",cursor:"default",width:D,height:C},w),onClick:L,onContextMenu:W,onDoubleClick:U,onFocus:K,onBlur:$,onKeyDown:F,onMouseDown:H,onMouseEnter:B,onMouseLeave:R,onMouseMove:V,onMouseUp:q,onTouchEnd:X,onTouchMove:G,onTouchStart:Y,ref:z},r.createElement(ED,null),n)))}),_D=["width","height","responsive","children","className","style","compact","title","desc"];var TD=i((e,t)=>{var{width:n,height:a,responsive:i,children:o,className:l,style:s,compact:c,title:u,desc:d}=e,f=function(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}(e,_D),p=Lt(f);return c?r.createElement(r.Fragment,null,r.createElement(Gu,{width:n,height:a}),r.createElement(gD,{otherAttributes:p,title:u,desc:d},o)):r.createElement(ND,{className:l,style:s,width:n,height:a,responsive:null!=i&&i,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},r.createElement(gD,{otherAttributes:p,title:u,desc:d,ref:t},r.createElement(vN,null,o)))});function ID(){return ID=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ID.apply(null,arguments)}function MD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function DD(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var CD=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?MD(Object(r),!0).forEach(function(t){DD(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MD(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},rD),zD=i(function(e,t){var n,a=Zn(e.categoricalChartProps,CD),{chartName:i,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:s,categoricalChartProps:c}=e,u={chartName:i,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:s,eventEmitter:void 0};return r.createElement(oD,{preloadedState:{options:u},reduxStoreName:null!==(n=c.id)&&void 0!==n?n:i},r.createElement(tN,{chartData:c.data}),r.createElement(sD,{layout:a.layout,margin:a.margin}),r.createElement(uD,{throttleDelay:a.throttleDelay,throttledEvents:a.throttledEvents}),r.createElement(cD,{baseValue:a.baseValue,accessibilityLayer:a.accessibilityLayer,barCategoryGap:a.barCategoryGap,maxBarSize:a.maxBarSize,stackOffset:a.stackOffset,barGap:a.barGap,barSize:a.barSize,syncId:a.syncId,syncMethod:a.syncMethod,className:a.className,reverseStackOrder:a.reverseStackOrder}),r.createElement(TD,ID({},a,{ref:t})))}),LD=["axis"],BD=i((e,t)=>r.createElement(zD,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:LD,tooltipPayloadSearcher:wP,categoricalChartProps:e,ref:t})),RD=["axis","item"],VD=i((e,t)=>r.createElement(zD,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:RD,tooltipPayloadSearcher:wP,categoricalChartProps:e,ref:t})),KD=["item"],$D=i((e,t)=>r.createElement(zD,{chartName:"ScatterChart",defaultTooltipEventType:"item",validateTooltipEventTypes:KD,tooltipPayloadSearcher:wP,categoricalChartProps:e,ref:t})),FD=["axis"],WD=i((e,t)=>r.createElement(zD,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:FD,tooltipPayloadSearcher:wP,categoricalChartProps:e,ref:t}));function UD(r){var n=r.title,a=r.description,i=r.data,o=r.dataKey,l=r.categoryKey,s=r.color,c=void 0===s?"var(--primary)":s,u=r.className,d=r.loading,f=r.type,p=void 0===f?"area":f;if(d)return t(Pt,{className:se("col-span-full lg:col-span-2",u),children:[t(jt,{children:[e(Ee,{className:"h-6 w-40 mb-2"}),e(Ee,{className:"h-4 w-64"})]}),e(_t,{className:"h-75 w-full pt-4",children:e(Ee,{className:"h-full w-full rounded-lg"})})]});return t(Pt,{className:se("bmj-card-hover col-span-full lg:col-span-2",u),children:[t(jt,{children:[e(kt,{className:"text-lg font-semibold",children:n}),a&&e(At,{children:a})]}),e(_t,{className:"h-75 w-full pt-4",children:e(Bu,{width:"100%",height:"100%",children:function(){var r={data:i,margin:{top:10,right:10,left:-20,bottom:0}},a={xAxis:e(aM,{dataKey:l,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"var(--muted-foreground)"},dy:10,type:"scatter"===p?"number":"category"}),yAxis:e(mM,{dataKey:"scatter"===p?o:void 0,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"var(--muted-foreground)"},type:"number"}),grid:e(n_,{strokeDasharray:"3 3",vertical:!1,stroke:"var(--border)",opacity:.5}),tooltip:e(WP,{cursor:"scatter"===p?{strokeDasharray:"3 3"}:void 0,contentStyle:{backgroundColor:"var(--card)",borderRadius:"8px",border:"1px solid var(--border)",boxShadow:"0 4px 12px rgba(0,0,0,0.1)",color:"var(--card-foreground)"},itemStyle:{color:"var(--card-foreground)"}})};switch(p){case"bar":return t(VD,oe({},r,{children:[a.grid,a.xAxis,a.yAxis,a.tooltip,e(vI,{dataKey:o,fill:c,radius:[4,4,0,0],barSize:32})]}));case"line":return t(BD,oe({},r,{children:[a.grid,a.xAxis,a.yAxis,a.tooltip,e(U_,{type:"monotone",dataKey:o,stroke:c,strokeWidth:2,dot:{r:4,fill:c,strokeWidth:2,stroke:"var(--card)"},activeDot:{r:6,strokeWidth:0}})]}));case"scatter":return t($D,oe({},r,{children:[a.grid,a.xAxis,a.yAxis,a.tooltip,e(VI,{name:n,data:i,fill:c,shape:"circle"})]}));default:return t(WD,oe({},r,{children:[e("defs",{children:t("linearGradient",{id:"colorValue-".concat(n.replace(/\s+/g,"-")),x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:c,stopOpacity:.1}),e("stop",{offset:"95%",stopColor:c,stopOpacity:0})]})}),a.grid,a.xAxis,a.yAxis,a.tooltip,e(jT,{type:"monotone",dataKey:o,stroke:c,strokeWidth:2,fillOpacity:1,fill:"url(#colorValue-".concat(n.replace(/\s+/g,"-"),")")})]}))}}()})})]})}function HD(r){var n=r.title,a=r.value,i=r.description,o=r.trend,l=r.icon,s=r.className;return r.loading?t(Pt,{className:se("overflow-hidden",s),children:[t(jt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e(Ee,{className:"h-4 w-24"}),e(Ee,{className:"h-4 w-4 rounded-full"})]}),t(_t,{className:"space-y-2",children:[e(Ee,{className:"h-8 w-32"}),e(Ee,{className:"h-3 w-40"})]})]}):e(te.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},children:t(Pt,{className:se("bmj-card-hover overflow-hidden",s),children:[t(jt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e(kt,{className:"text-sm font-medium text-muted-foreground uppercase tracking-wider",children:n}),l&&e(l,{className:"h-4 w-4 text-muted-foreground"})]}),t(_t,{children:[e("div",{className:"text-2xl font-bold tracking-tight",children:a}),(i||o)&&t("div",{className:"flex items-center gap-2 mt-1",children:[o&&t("span",{className:se("flex items-center text-xs font-medium",o.isPositive?"text-emerald-500":"text-rose-500"),children:[o.isPositive?e(G,{className:"w-3 h-3 mr-1"}):e(X,{className:"w-3 h-3 mr-1"}),o.value,"%"]}),i&&e("p",{className:"text-xs text-muted-foreground",children:i})]})]})]})})}var qD=E("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function YD(e){var t=e.className,r=e.variant,n=void 0===r?"default":r,a=e.render,i=le(e,["className","variant","render"]);return O({defaultTagName:"span",props:w({className:se(qD({variant:n}),t)},i),render:a,state:{slot:"badge",variant:n}})}function GD(t){var r=le(t,[]);return e(N.Root,oe({"data-slot":"dialog"},r))}function XD(t){var r=le(t,[]);return e(N.Trigger,oe({"data-slot":"dialog-trigger"},r))}function ZD(t){var r=le(t,[]);return e(N.Portal,oe({"data-slot":"dialog-portal"},r))}function JD(t){var r=le(t,[]);return e(N.Close,oe({"data-slot":"dialog-close"},r))}function QD(t){var r=t.className,n=le(t,["className"]);return e(N.Backdrop,oe({"data-slot":"dialog-overlay",className:se("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",r)},n))}function eC(r){var n=r.className,a=r.children,i=r.showCloseButton,o=void 0===i||i,l=le(r,["className","children","showCloseButton"]);return t(ZD,{children:[e(QD,{}),t(N.Popup,oe({"data-slot":"dialog-content",className:se("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n)},l,{children:[a,o&&t(N.Close,{"data-slot":"dialog-close",render:e(ue,{variant:"ghost",className:"absolute top-2 right-2",size:"icon-sm"}),children:[e(_,{}),e("span",{className:"sr-only",children:"Close"})]})]}))]})}function tC(t){var r=t.className,n=le(t,["className"]);return e("div",oe({"data-slot":"dialog-header",className:se("flex flex-col gap-2",r)},n))}function rC(r){var n=r.className,a=r.showCloseButton,i=void 0!==a&&a,o=r.children,l=le(r,["className","showCloseButton","children"]);return t("div",oe({"data-slot":"dialog-footer",className:se("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",n)},l,{children:[o,i&&e(N.Close,{render:e(ue,{variant:"outline"}),children:"Close"})]}))}function nC(t){var r=t.className,n=le(t,["className"]);return e(N.Title,oe({"data-slot":"dialog-title",className:se("font-heading text-base leading-none font-medium",r)},n))}function aC(t){var r=t.className,n=le(t,["className"]);return e(N.Description,oe({"data-slot":"dialog-description",className:se("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",r)},n))}function iC(r){var n=r.className,a=r.children,i=le(r,["className","children"]);return t(ae.Root,oe({"data-slot":"scroll-area",className:se("relative",n)},i,{children:[e(ae.Viewport,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:a}),e(oC,{}),e(ae.Corner,{})]}))}function oC(t){var r=t.className,n=t.orientation,a=void 0===n?"vertical":n,i=le(t,["className","orientation"]);return e(ae.Scrollbar,oe({"data-slot":"scroll-area-scrollbar","data-orientation":a,orientation:a,className:se("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent",r)},i,{children:e(ae.Thumb,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})}))}var lC=ie.Root;function sC(t){var r=t.className,n=le(t,["className"]);return e(ie.Group,oe({"data-slot":"select-group",className:se("scroll-my-1 p-1",r)},n))}function cC(t){var r=t.className,n=le(t,["className"]);return e(ie.Value,oe({"data-slot":"select-value",className:se("flex flex-1 text-left",r)},n))}function uC(r){var n=r.className,a=r.size,i=void 0===a?"default":a,o=r.children,l=le(r,["className","size","children"]);return t(ie.Trigger,oe({"data-slot":"select-trigger","data-size":i,className:se("flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n)},l,{children:[o,e(ie.Icon,{render:e(Z,{className:"pointer-events-none size-4 text-muted-foreground"})})]}))}function dC(r){var n=r.className,a=r.children,i=r.side,o=void 0===i?"bottom":i,l=r.sideOffset,s=void 0===l?4:l,c=r.align,u=void 0===c?"center":c,d=r.alignOffset,f=void 0===d?0:d,p=r.alignItemWithTrigger,h=void 0===p||p,v=le(r,["className","children","side","sideOffset","align","alignOffset","alignItemWithTrigger"]);return e(ie.Portal,{children:e(ie.Positioner,{side:o,sideOffset:s,align:u,alignOffset:f,alignItemWithTrigger:h,className:"isolate z-50",children:t(ie.Popup,oe({"data-slot":"select-content","data-align-trigger":h,className:se("relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",n)},v,{children:[e(vC,{}),e(ie.List,{children:a}),e(yC,{})]}))})})}function fC(t){var r=t.className,n=le(t,["className"]);return e(ie.GroupLabel,oe({"data-slot":"select-label",className:se("px-1.5 py-1 text-xs text-muted-foreground",r)},n))}function pC(r){var n=r.className,a=r.children,i=le(r,["className","children"]);return t(ie.Item,oe({"data-slot":"select-item",className:se("relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n)},i,{children:[e(ie.ItemText,{className:"flex flex-1 shrink-0 gap-2 whitespace-nowrap",children:a}),e(ie.ItemIndicator,{render:e("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center"}),children:e(K,{className:"pointer-events-none"})})]}))}function hC(t){var r=t.className,n=le(t,["className"]);return e(ie.Separator,oe({"data-slot":"select-separator",className:se("pointer-events-none -mx-1 my-1 h-px bg-border",r)},n))}function vC(t){var r=t.className,n=le(t,["className"]);return e(ie.ScrollUpArrow,oe({"data-slot":"select-scroll-up-button",className:se("top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",r)},n,{children:e(J,{})}))}function yC(t){var r=t.className,n=le(t,["className"]);return e(ie.ScrollDownArrow,oe({"data-slot":"select-scroll-down-button",className:se("bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",r)},n,{children:e(Z,{})}))}function mC(t){var r=t.className,n=le(t,["className"]);return e("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:e("table",oe({"data-slot":"table",className:se("w-full caption-bottom text-sm",r)},n))})}function gC(t){var r=t.className,n=le(t,["className"]);return e("thead",oe({"data-slot":"table-header",className:se("[&_tr]:border-b",r)},n))}function bC(t){var r=t.className,n=le(t,["className"]);return e("tbody",oe({"data-slot":"table-body",className:se("[&_tr:last-child]:border-0",r)},n))}function xC(t){var r=t.className,n=le(t,["className"]);return e("tfoot",oe({"data-slot":"table-footer",className:se("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",r)},n))}function wC(t){var r=t.className,n=le(t,["className"]);return e("tr",oe({"data-slot":"table-row",className:se("border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",r)},n))}function OC(t){var r=t.className,n=le(t,["className"]);return e("th",oe({"data-slot":"table-head",className:se("h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",r)},n))}function EC(t){var r=t.className,n=le(t,["className"]);return e("td",oe({"data-slot":"table-cell",className:se("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",r)},n))}function SC(t){var r=t.className,n=le(t,["className"]);return e("caption",oe({"data-slot":"table-caption",className:se("mt-4 text-sm text-muted-foreground",r)},n))}export{tt as AppSidebar,YD as Badge,ue as Button,Pt as Card,Nt as CardAction,_t as CardContent,At as CardDescription,Tt as CardFooter,jt as CardHeader,kt as CardTitle,UD as ChartCard,St as DashboardLayout,GD as Dialog,JD as DialogClose,eC as DialogContent,aC as DialogDescription,rC as DialogFooter,tC as DialogHeader,QD as DialogOverlay,ZD as DialogPortal,nC as DialogTitle,XD as DialogTrigger,st as DropdownMenu,gt as DropdownMenuCheckboxItem,dt as DropdownMenuContent,ft as DropdownMenuGroup,ht as DropdownMenuItem,pt as DropdownMenuLabel,ct as DropdownMenuPortal,bt as DropdownMenuRadioGroup,xt as DropdownMenuRadioItem,wt as DropdownMenuSeparator,Ot as DropdownMenuShortcut,vt as DropdownMenuSub,mt as DropdownMenuSubContent,yt as DropdownMenuSubTrigger,ut as DropdownMenuTrigger,de as Input,iC as ScrollArea,oC as ScrollBar,lC as Select,dC as SelectContent,sC as SelectGroup,pC as SelectItem,fC as SelectLabel,yC as SelectScrollDownButton,vC as SelectScrollUpButton,hC as SelectSeparator,uC as SelectTrigger,cC as SelectValue,fe as Separator,pe as Sheet,ve as SheetClose,ge as SheetContent,Oe as SheetDescription,xe as SheetFooter,be as SheetHeader,we as SheetTitle,he as SheetTrigger,Te as Sidebar,Re as SidebarContent,Le as SidebarFooter,Ve as SidebarGroup,$e as SidebarGroupAction,Fe as SidebarGroupContent,Ke as SidebarGroupLabel,ze as SidebarHeader,Ce as SidebarInput,De as SidebarInset,We as SidebarMenu,Ye as SidebarMenuAction,Ge as SidebarMenuBadge,qe as SidebarMenuButton,Ue as SidebarMenuItem,Xe as SidebarMenuSkeleton,Ze as SidebarMenuSub,Qe as SidebarMenuSubButton,Je as SidebarMenuSubItem,_e as SidebarProvider,Me as SidebarRail,Be as SidebarSeparator,Ie as SidebarTrigger,Ee as Skeleton,HD as StatCard,mC as Table,bC as TableBody,SC as TableCaption,EC as TableCell,xC as TableFooter,OC as TableHead,gC as TableHeader,wC as TableRow,Pe as Tooltip,ke as TooltipContent,Se as TooltipProvider,je as TooltipTrigger,Et as Topbar,qD as badgeVariants,ce as buttonVariants,Ne as useSidebar};
47
47
  //# sourceMappingURL=index.mjs.map