bmj-ui 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@base-ui/react/merge-props"),n=require("@base-ui/react/use-render"),i=require("class-variance-authority"),a=require("clsx"),o=require("tailwind-merge"),l=require("@base-ui/react/button"),s=require("@base-ui/react/input");require("@base-ui/react/separator");var c=require("@base-ui/react/dialog"),u=require("lucide-react"),d=require("@base-ui/react/tooltip"),f=require("motion/react"),p=require("react-dom"),h=require("@base-ui/react/menu");function v(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var y=v(t),m=function(){return m=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},m.apply(this,arguments)};function g(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 b(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.twMerge(a.clsx(e))}var x=i.cva("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 w(t){var r=t.className,n=t.variant,i=void 0===n?"default":n,a=t.size,o=void 0===a?"default":a,s=g(t,["className","variant","size"]);return e.jsx(l.Button,m({"data-slot":"button",className:b(x({variant:i,size:o,className:r}))},s))}function O(t){var r=t.className,n=t.type,i=g(t,["className","type"]);return e.jsx(s.Input,m({type:n,"data-slot":"input",className:b("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 E(t){var r=g(t,[]);return e.jsx(c.Dialog.Root,m({"data-slot":"sheet"},r))}function j(t){var r=g(t,[]);return e.jsx(c.Dialog.Portal,m({"data-slot":"sheet-portal"},r))}function S(t){var r=t.className,n=g(t,["className"]);return e.jsx(c.Dialog.Backdrop,m({"data-slot":"sheet-overlay",className:b("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 P(t){var r=t.className,n=t.children,i=t.side,a=void 0===i?"right":i,o=t.showCloseButton,l=void 0===o||o,s=g(t,["className","children","side","showCloseButton"]);return e.jsxs(j,{children:[e.jsx(S,{}),e.jsxs(c.Dialog.Popup,m({"data-slot":"sheet-content","data-side":a,className:b("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",r)},s,{children:[n,l&&e.jsxs(c.Dialog.Close,{"data-slot":"sheet-close",render:e.jsx(w,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[e.jsx(u.XIcon,{}),e.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function k(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sheet-header",className:b("flex flex-col gap-0.5 p-4",r)},n))}function A(t){var r=t.className,n=g(t,["className"]);return e.jsx(c.Dialog.Title,m({"data-slot":"sheet-title",className:b("font-heading text-base font-medium text-foreground",r)},n))}function _(t){var r=t.className,n=g(t,["className"]);return e.jsx(c.Dialog.Description,m({"data-slot":"sheet-description",className:b("text-sm text-muted-foreground",r)},n))}function N(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"skeleton",className:b("animate-pulse rounded-md bg-muted",r)},n))}function M(t){var r=g(t,[]);return e.jsx(d.Tooltip.Root,m({"data-slot":"tooltip"},r))}function T(t){var r=g(t,[]);return e.jsx(d.Tooltip.Trigger,m({"data-slot":"tooltip-trigger"},r))}function I(t){var r=t.className,n=t.side,i=void 0===n?"top":n,a=t.sideOffset,o=void 0===a?4:a,l=t.align,s=void 0===l?"center":l,c=t.alignOffset,u=void 0===c?0:c,f=t.children,p=g(t,["className","side","sideOffset","align","alignOffset","children"]);return e.jsx(d.Tooltip.Portal,{children:e.jsx(d.Tooltip.Positioner,{align:s,alignOffset:u,side:i,sideOffset:o,className:"isolate z-50",children:e.jsxs(d.Tooltip.Popup,m({"data-slot":"tooltip-content",className:b("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",r)},p,{children:[f,e.jsx(d.Tooltip.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 D=y.createContext(null);function C(){var e=y.useContext(D);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function z(t){var r=t.defaultOpen,n=void 0===r||r,i=t.open,a=t.onOpenChange,o=t.className,l=t.style,s=t.children,c=g(t,["defaultOpen","open","onOpenChange","className","style","children"]),u=function(){var e=y.useState(void 0),t=e[0],r=e[1];return y.useEffect(function(){var e=window.matchMedia("(max-width: ".concat(767,"px)")),t=function(){r(window.innerWidth<768)};return e.addEventListener("change",t),r(window.innerWidth<768),function(){return e.removeEventListener("change",t)}},[]),!!t}(),d=y.useState(!1),f=d[0],p=d[1],h=y.useState(n),v=h[0],x=h[1],w=null!=i?i:v,O=y.useCallback(function(e){var t="function"==typeof e?e(w):e;a?a(t):x(t),document.cookie="".concat("sidebar_state","=").concat(t,"; path=/; max-age=").concat(604800)},[a,w]),E=y.useCallback(function(){return u?p(function(e){return!e}):O(function(e){return!e})},[u,O,p]);y.useEffect(function(){var e=function(e){"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),E())};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[E]);var j=w?"expanded":"collapsed",S=y.useMemo(function(){return{state:j,open:w,setOpen:O,isMobile:u,openMobile:f,setOpenMobile:p,toggleSidebar:E}},[j,w,O,u,f,p,E]);return e.jsx(D.Provider,{value:S,children:e.jsx("div",m({"data-slot":"sidebar-wrapper",style:m({"--sidebar-width":"16rem","--sidebar-width-icon":"3rem"},l),className:b("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",o)},c,{children:s}))})}function L(t){var r=t.side,n=void 0===r?"left":r,i=t.variant,a=void 0===i?"sidebar":i,o=t.collapsible,l=void 0===o?"offcanvas":o,s=t.className,c=t.children,u=t.dir,d=g(t,["side","variant","collapsible","className","children","dir"]),f=C(),p=f.isMobile,h=f.state,v=f.openMobile,y=f.setOpenMobile;return"none"===l?e.jsx("div",m({"data-slot":"sidebar",className:b("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",s)},d,{children:c})):p?e.jsx(E,m({open:v,onOpenChange:y},d,{children:e.jsxs(P,{dir:u,"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:n,children:[e.jsxs(k,{className:"sr-only",children:[e.jsx(A,{children:"Sidebar"}),e.jsx(_,{children:"Displays the mobile sidebar."})]}),e.jsx("div",{className:"flex h-full w-full flex-col",children:c})]})})):e.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":h,"data-collapsible":"collapsed"===h?l:"","data-variant":a,"data-side":n,"data-slot":"sidebar",children:[e.jsx("div",{"data-slot":"sidebar-gap",className:b("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"===a||"inset"===a?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),e.jsx("div",m({"data-slot":"sidebar-container","data-side":n,className:b("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"===a||"inset"===a?"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",s)},d,{children:e.jsx("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:c})}))]})}function R(t){var r=t.className,n=t.onClick,i=g(t,["className","onClick"]),a=C().toggleSidebar;return e.jsxs(w,m({"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:b(r),onClick:function(e){null==n||n(e),a()}},i,{children:[e.jsx(u.PanelLeftIcon,{}),e.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}))}function B(t){var r=t.className,n=g(t,["className"]);return e.jsx("main",m({"data-slot":"sidebar-inset",className:b("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 V(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sidebar-header","data-sidebar":"header",className:b("flex flex-col gap-2 p-2",r)},n))}function K(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sidebar-footer","data-sidebar":"footer",className:b("flex flex-col gap-2 p-2",r)},n))}function $(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sidebar-content","data-sidebar":"content",className:b("no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden",r)},n))}function F(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sidebar-group","data-sidebar":"group",className:b("relative flex w-full min-w-0 flex-col p-2",r)},n))}function U(e){var t=e.className,i=e.render,a=g(e,["className","render"]);return n.useRender({defaultTagName:"div",props:r.mergeProps({className:b("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)},a),render:i,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function W(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:b("w-full text-sm",r)},n))}function H(t){var r=t.className,n=g(t,["className"]);return e.jsx("ul",m({"data-slot":"sidebar-menu","data-sidebar":"menu",className:b("flex w-full min-w-0 flex-col gap-0",r)},n))}function q(t){var r=t.className,n=g(t,["className"]);return e.jsx("li",m({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:b("group/menu-item relative",r)},n))}var Y=i.cva("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 G(t){var i=t.render,a=t.isActive,o=void 0!==a&&a,l=t.variant,s=void 0===l?"default":l,c=t.size,u=void 0===c?"default":c,d=t.tooltip,f=t.className,p=g(t,["render","isActive","variant","size","tooltip","className"]),h=C(),v=h.isMobile,y=h.state,x=n.useRender({defaultTagName:"button",props:r.mergeProps({className:b(Y({variant:s,size:u}),f)},p),render:d?e.jsx(T,{render:i}):i,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:u,active:o}});return d?("string"==typeof d&&(d={children:d}),e.jsxs(M,{children:[x,e.jsx(I,m({side:"right",align:"center",hidden:"collapsed"!==y||v},d))]})):x}var X=[{title:"Dashboard",icon:u.LayoutDashboard,url:"#"},{title:"Analytics",icon:u.BarChart3,url:"#"},{title:"Products",icon:u.Package,url:"#"},{title:"Customers",icon:u.Users,url:"#"},{title:"Tasks",icon:u.ListTodo,url:"#"},{title:"Settings",icon:u.Settings,url:"#"},{title:"Help",icon:u.HelpCircle,url:"#"}];function Z(t){var r=t.items,n=void 0===r?X:r,i=t.onItemClick,a=t.activeItem,o="collapsed"===C().state;return e.jsxs(L,{variant:"inset",collapsible:"icon",children:[e.jsx(V,{className:"h-16 flex items-center px-6 border-b border-border/50",children:e.jsxs("div",{className:"flex items-center gap-2 font-bold text-xl tracking-tight",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center text-primary-foreground shrink-0",children:"B"}),e.jsx(f.AnimatePresence,{mode:"wait",children:!o&&e.jsx(f.motion.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.jsx($,{children:e.jsxs(F,{children:[e.jsx(U,{children:e.jsx(f.AnimatePresence,{mode:"wait",children:!o&&e.jsx(f.motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:"Main Menu"})})}),e.jsx(W,{children:e.jsx(H,{children:n.map(function(t){return e.jsx(q,{children:e.jsx(G,{tooltip:t.title,isActive:a===t.title,onClick:function(){return null==i?void 0:i(t.title)},className:"transition-all duration-200 hover:bg-primary/5 hover:text-primary",render:e.jsxs("button",{type:"button",className:"flex items-center w-full",children:[e.jsx(t.icon,{className:"shrink-0"}),e.jsx(f.AnimatePresence,{mode:"wait",children:!o&&e.jsx(f.motion.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:t.title})})]})})},t.title)})})})]})}),e.jsx(K,{className:"p-4 border-t border-border/50",children:e.jsxs("div",{className:"flex items-center gap-3 min-h-10",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-muted shrink-0"}),e.jsx(f.AnimatePresence,{mode:"wait",children:!o&&e.jsxs(f.motion.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.jsx("span",{className:"text-sm font-medium",children:"Bahry Jarbou"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"Admin"})]})})]})})]})}function J(t){var r=t.className,n=y.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=n[0],a=n[1];y.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.jsx(w,{variant:"ghost",size:"icon",onClick:function(){a(function(e){return"light"===e?"dark":"light"})},className:r,"aria-label":"Toggle theme",children:"light"===i?e.jsx(u.Moon,{className:"w-5 h-5 transition-all"}):e.jsx(u.Sun,{className:"w-5 h-5 transition-all"})})}Array(12).fill(0);let Q=1;const ee=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:Q++,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,r)=>{if(!r)return;let n;void 0!==r.loading&&(n=this.create({...r,promise:e,type:"loading",message:r.loading,description:"function"!=typeof r.description?r.description:void 0}));const i=Promise.resolve(e instanceof Function?e():e);let a,o=void 0!==n;const l=i.then(async e=>{a=["resolve",e];if(t.isValidElement(e))o=!1,this.create({id:n,type:"default",message:e});else if(te(e)&&!e.ok){o=!1;const i="function"==typeof r.error?await r.error(`HTTP error! status: ${e.status}`):r.error,a="function"==typeof r.description?await r.description(`HTTP error! status: ${e.status}`):r.description,l="object"==typeof i&&!t.isValidElement(i)?i:{message:i};this.create({id:n,type:"error",description:a,...l})}else if(e instanceof Error){o=!1;const i="function"==typeof r.error?await r.error(e):r.error,a="function"==typeof r.description?await r.description(e):r.description,l="object"==typeof i&&!t.isValidElement(i)?i:{message:i};this.create({id:n,type:"error",description:a,...l})}else if(void 0!==r.success){o=!1;const i="function"==typeof r.success?await r.success(e):r.success,a="function"==typeof r.description?await r.description(e):r.description,l="object"==typeof i&&!t.isValidElement(i)?i:{message:i};this.create({id:n,type:"success",description:a,...l})}}).catch(async e=>{if(a=["reject",e],void 0!==r.error){o=!1;const i="function"==typeof r.error?await r.error(e):r.error,a="function"==typeof r.description?await r.description(e):r.description,l="object"==typeof i&&!t.isValidElement(i)?i:{message:i};this.create({id:n,type:"error",description:a,...l})}}).finally(()=>{o&&(this.dismiss(n),n=void 0),null==r.finally||r.finally.call(r)}),s=()=>new Promise((e,t)=>l.then(()=>"reject"===a[0]?t(a[1]):e(a[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const r=(null==t?void 0:t.id)||Q++;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}},te=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,re=(e,t)=>{const r=(null==t?void 0:t.id)||Q++;return ee.addToast({title:e,...t,id:r}),r},ne=Object.assign(re,{success:ee.success,info:ee.info,warning:ee.warning,error:ee.error,custom:ee.custom,message:ee.message,promise:ee.promise,dismiss:ee.dismiss,loading:ee.loading},{getHistory:()=>ee.toasts,getToasts:()=>ee.getActiveToasts()});function ie(t){var r=g(t,[]);return e.jsx(h.Menu.Root,m({"data-slot":"dropdown-menu"},r))}function ae(t){var r=g(t,[]);return e.jsx(h.Menu.Trigger,m({"data-slot":"dropdown-menu-trigger"},r))}function oe(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=g(t,["align","alignOffset","side","sideOffset","className"]);return e.jsx(h.Menu.Portal,{children:e.jsx(h.Menu.Positioner,{className:"isolate z-50 outline-none",align:n,alignOffset:a,side:l,sideOffset:c,children:e.jsx(h.Menu.Popup,m({"data-slot":"dropdown-menu-content",className:b("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 le(t){var r=g(t,[]);return e.jsx(h.Menu.Group,m({"data-slot":"dropdown-menu-group"},r))}function se(t){var r=t.className,n=t.inset,i=g(t,["className","inset"]);return e.jsx(h.Menu.GroupLabel,m({"data-slot":"dropdown-menu-label","data-inset":n,className:b("px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:pl-7",r)},i))}function ce(t){var r=t.className,n=t.inset,i=t.variant,a=void 0===i?"default":i,o=g(t,["className","inset","variant"]);return e.jsx(h.Menu.Item,m({"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":a,className:b("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 ue(t){var r=t.className,n=g(t,["className"]);return e.jsx(h.Menu.Separator,m({"data-slot":"dropdown-menu-separator",className:b("-mx-1 my-1 h-px bg-border",r)},n))}function de(){var t=function(e){ne.info("".concat(e," clicked"),{description:"This feature will be implemented soon."})};return e.jsxs("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:[e.jsxs("div",{className:"flex items-center gap-2 sm:gap-4 flex-1",children:[e.jsx(R,{}),e.jsxs("div",{className:"relative w-full max-w-md hidden md:block",children:[e.jsx(u.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted-foreground"}),e.jsx(O,{placeholder:"Search dashboard...",className:"pl-10 bg-muted/50 border-none focus-visible:ring-1 focus-visible:ring-primary/20"})]}),e.jsx(w,{variant:"ghost",size:"icon",className:"md:hidden",children:e.jsx(u.Search,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"flex items-center gap-1 sm:gap-2",children:[e.jsx("div",{className:"hidden xs:block",children:e.jsx(J,{})}),e.jsxs(w,{variant:"ghost",size:"icon",className:"relative",children:[e.jsx(u.Bell,{className:"w-5 h-5"}),e.jsx("span",{className:"absolute top-2 right-2 w-2 h-2 bg-primary rounded-full border-2 border-background"})]}),e.jsxs(ie,{children:[e.jsx(ae,{render:e.jsx(w,{variant:"ghost",size:"icon",className:"rounded-full"}),children:e.jsx(u.User,{className:"w-5 h-5"})}),e.jsx(oe,{align:"end",className:"w-56",children:e.jsxs(le,{children:[e.jsx(se,{children:"My Account"}),e.jsx(ue,{}),e.jsxs(ce,{onClick:function(){return t("Profile")},children:[e.jsx(u.User,{className:"mr-2 h-4 w-4"}),e.jsx("span",{children:"Profile"})]}),e.jsxs(ce,{onClick:function(){return t("Billing")},children:[e.jsx(u.CreditCard,{className:"mr-2 h-4 w-4"}),e.jsx("span",{children:"Billing"})]}),e.jsxs(ce,{onClick:function(){return t("Team")},children:[e.jsx(u.Users,{className:"mr-2 h-4 w-4"}),e.jsx("span",{children:"Team"})]}),e.jsxs(ce,{onClick:function(){return t("Subscription")},children:[e.jsx(u.Zap,{className:"mr-2 h-4 w-4"}),e.jsx("span",{children:"Subscription"})]}),e.jsx(ue,{}),e.jsxs(ce,{variant:"destructive",onClick:function(){return t("Log out")},children:[e.jsx(u.LogOut,{className:"mr-2 h-4 w-4"}),e.jsx("span",{children:"Log out"})]})]})})]})]})]})}function fe(t){var r=t.className,n=t.size,i=void 0===n?"default":n,a=g(t,["className","size"]);return e.jsx("div",m({"data-slot":"card","data-size":i,className:b("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 pe(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"card-header",className:b("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 he(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"card-title",className:b("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",r)},n))}function ve(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"card-description",className:b("text-sm text-muted-foreground",r)},n))}function ye(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"card-content",className:b("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 me=["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 ge(e){return"string"==typeof e&&me.includes(e)}var be=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 xe(e){return"string"==typeof e&&be.has(e)}function we(e){return"string"==typeof e&&e.startsWith("data-")}function Oe(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(xe(r)||we(r))&&(t[r]=e[r]);return t}function Ee(e){return null==e?null:t.isValidElement(e)&&"object"==typeof e.props&&null!==e.props?Oe(e.props):"object"!=typeof e||Array.isArray(e)?null:Oe(e)}function je(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(xe(r)||we(r)||ge(r))&&(t[r]=e[r]);return t}var Se=["children","width","height","viewBox","className","style","title","desc"];function Pe(){return Pe=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},Pe.apply(null,arguments)}var ke=t.forwardRef((e,t)=>{var{children:r,width:n,height:i,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,Se),f=o||{width:n,height:i,x:0,y:0},p=a.clsx("recharts-surface",l);return y.createElement("svg",Pe({},je(d),{className:p,width:n,height:i,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),y.createElement("title",null,c),y.createElement("desc",null,u),r)}),Ae=["children","className"];function _e(){return _e=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},_e.apply(null,arguments)}var Ne=y.forwardRef((e,t)=>{var{children:r,className: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,Ae),o=a.clsx("recharts-layer",n);return y.createElement("g",_e({className:o},je(i),{ref:t}),r)}),Me=t.createContext(null);function Te(e){return function(){return e}}const Ie=Math.cos,De=Math.sin,Ce=Math.sqrt,ze=Math.PI,Le=2*ze,Re=Math.PI,Be=2*Re,Ve=1e-6,Ke=Be-Ve;function $e(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class Fe{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?$e:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return $e;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>Ve)if(Math.abs(u*l-s*c)>Ve&&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((Re-Math.acos((h+d-v)/(2*y*m)))/2),b=g/m,x=g/y;Math.abs(b-1)>Ve&&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)>Ve||Math.abs(this._y1-c)>Ve)&&this._append`L${s},${c}`,r&&(d<0&&(d=d%Be+Be),d>Ke?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>Ve&&this._append`A${r},${r},0,${+(d>=Re)},${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 Ue(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 Fe(t)}function We(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function He(e){this._context=e}function qe(e){return new He(e)}function Ye(e){return e[0]}function Ge(e){return e[1]}function Xe(e,t){var r=Te(!0),n=null,i=qe,a=null,o=Ue(l);function l(l){var s,c,u,d=(l=We(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?Ye:Te(e),t="function"==typeof t?t:void 0===t?Ge:Te(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:Te(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:Te(+e),l):t},l.defined=function(e){return arguments.length?(r="function"==typeof e?e:Te(!!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 Ze(e,t,r){var n=null,i=Te(!0),a=null,o=qe,l=null,s=Ue(c);function c(c){var u,d,f,p,h,v=(c=We(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 Xe().defined(i).curve(o).context(a)}return e="function"==typeof e?e:void 0===e?Ye:Te(+e),t="function"==typeof t?t:Te(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?Ge:Te(+r),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Te(+t),n=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Te(+t),c):e},c.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Te(+e),c):n},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Te(+e),r=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Te(+e),c):t},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Te(+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:Te(!!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}He.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 Je{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 Qe={draw(e,t){const r=Ce(t/ze);e.moveTo(r,0),e.arc(0,0,r,0,Le)}},et={draw(e,t){const r=Ce(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 tt=Ce(1/3),rt=2*tt;var nt={draw(e,t){const r=Ce(t/rt),n=r*tt;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},it={draw(e,t){const r=Ce(t),n=-r/2;e.rect(n,n,r,r)}};const at=De(ze/10)/De(7*ze/10),ot=De(Le/10)*at,lt=-Ie(Le/10)*at;var st={draw(e,t){const r=Ce(.8908130915292852*t),n=ot*r,i=lt*r;e.moveTo(0,-r),e.lineTo(n,i);for(let t=1;t<5;++t){const a=Le*t/5,o=Ie(a),l=De(a);e.lineTo(l*r,-o*r),e.lineTo(o*n-l*i,l*n+o*i)}e.closePath()}};const ct=Ce(3);var ut={draw(e,t){const r=-Ce(t/(3*ct));e.moveTo(0,2*r),e.lineTo(-ct*r,-r),e.lineTo(ct*r,-r),e.closePath()}};const dt=-.5,ft=Ce(3)/2,pt=1/Ce(12),ht=3*(pt/2+1);var vt={draw(e,t){const r=Ce(t/ht),n=r/2,i=r*pt,a=n,o=r*pt+r,l=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(dt*n-ft*i,ft*n+dt*i),e.lineTo(dt*a-ft*o,ft*a+dt*o),e.lineTo(dt*l-ft*s,ft*l+dt*s),e.lineTo(dt*n+ft*i,dt*i-ft*n),e.lineTo(dt*a+ft*o,dt*o-ft*a),e.lineTo(dt*l+ft*s,dt*s-ft*l),e.closePath()}};function yt(){}function mt(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 gt(e){this._context=e}function bt(e){this._context=e}function xt(e){this._context=e}function wt(e){this._context=e}function Ot(e){return e<0?-1:1}function Et(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(Ot(a)+Ot(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function jt(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function St(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 Pt(e){this._context=e}function kt(e){this._context=new At(e)}function At(e){this._context=e}function _t(e){this._context=e}function Nt(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 Mt(e,t){this._context=e,this._t=t}function Tt(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 It(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Dt(e,t){return e[t]}function Ct(e){const t=[];return t.key=e,t}function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}gt.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:mt(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:mt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},bt.prototype={areaStart:yt,areaEnd:yt,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:mt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},xt.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:mt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},wt.prototype={areaStart:yt,areaEnd:yt,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))}},Pt.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:St(this,this._t0,jt(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,St(this,jt(this,r=Et(this,e,t)),r);break;default:St(this,this._t0,r=Et(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(kt.prototype=Object.create(Pt.prototype)).point=function(e,t){Pt.prototype.point.call(this,t,e)},At.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)}},_t.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=Nt(e),i=Nt(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)}},Mt.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 Lt,Rt={},Bt={};function Vt(){return Lt||(Lt=1,e=Bt,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isUnsafeProperty=function(e){return"__proto__"===e}),Bt;var e}var Kt,$t={};function Ft(){return Kt||(Kt=1,e=$t,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("]")}}),$t;var e}var Ut,Wt={};function Ht(){return Ut||(Ut=1,e=Wt,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)}),Wt;var e}var qt,Yt,Gt,Xt,Zt,Jt={},Qt={};function er(){return qt||(qt=1,e=Qt,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}),Qt;var e}function tr(){return Yt||(Yt=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=er(),r=Ht();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}}(Jt)),Jt}function rr(){return Gt||(Gt=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vt(),r=Ft(),n=Ht(),i=tr();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}}}}(Rt)),Rt}function nr(){return Zt?Xt:(Zt=1,Xt=rr().get)}var ir=zt(nr());function ar(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 or(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+ar(i)+t:e+t},"")}var lr=e=>0===e?0:e>0?1:-1,sr=e=>"number"==typeof e&&e!=+e,cr=e=>"string"==typeof e&&e.indexOf("%")===e.length-1,ur=e=>("number"==typeof e||e instanceof Number)&&!sr(e),dr=e=>ur(e)||"string"==typeof e,fr=0,pr=e=>{var t=++fr;return"".concat(e||"").concat(t)},hr=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(!ur(e)&&"string"!=typeof e)return n;if(cr(e)){if(null==t)return n;var a=e.indexOf("%");r=t*parseFloat(e.slice(0,a))/100}else r=+e;return sr(r)&&(r=n),i&&null!=t&&r>t&&(r=t),r},vr=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 yr(e,t,r){return ur(e)&&ur(t)?ar(e+r*(t-e)):t}function mr(e,t,r){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):ir(e,t))===r)}var gr=e=>null==e,br=e=>gr(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function xr(e){return null!=e}function wr(){}var Or=["type","size","sizeType"];function Er(){return Er=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},Er.apply(null,arguments)}function jr(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 Sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(r),!0).forEach(function(t){Pr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Pr(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 kr={symbolCircle:Qe,symbolCross:et,symbolDiamond:nt,symbolSquare:it,symbolStar:st,symbolTriangle:ut,symbolWye:vt},Ar=Math.PI/180,_r=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=Sr(Sr({},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,Or)),{},{type:t,size:r,sizeType:n}),o="circle";"string"==typeof t&&(o=t);var{className:l,cx:s,cy:c}=i,u=je(i);return ur(s)&&ur(c)&&ur(r)?y.createElement("path",Er({},u,{className:a.clsx("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:(()=>{var e=(e=>{var t="symbol".concat(br(e));return kr[t]||Qe})(o),t=function(e,t){let r=null,n=Ue(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:Te(e||Qe),t="function"==typeof t?t:Te(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:Te(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:Te(+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*Ar;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}})(r,n,o)),i=t();if(null!==i)return i})()})):null};_r.registerSymbol=(e,t)=>{kr["symbol".concat(br(e))]=t};var Nr=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Mr=(e,r)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if(t.isValidElement(e)&&(n=e.props),"object"!=typeof n&&"function"!=typeof n)return null;var i={};return Object.keys(n).forEach(e=>{ge(e)&&"function"==typeof n[e]&&(i[e]=t=>n[e](n,t))}),i},Tr=(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];ge(i)&&"function"==typeof a&&(n||(n={}),n[i]=((e,t,r)=>n=>(e(t,r,n),null))(a,t,r))}),n};function Ir(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 Dr(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 Cr(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(r),!0).forEach(function(t){Dr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ir(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 zr,Lr={},Rr={};function Br(){return zr||(zr=1,e=Rr,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())}),Rr;var e}var Vr,Kr={};function $r(){return Vr||(Vr=1,e=Kr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.ary=function(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}),Kr;var e}var Fr,Ur={};function Wr(){return Fr||(Fr=1,e=Ur,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.identity=function(e){return e}),Ur;var e}var Hr,qr,Yr={},Gr={},Xr={};function Zr(){return Hr||(Hr=1,e=Xr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}),Xr;var e}function Jr(){return qr||(qr=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zr();e.isArrayLike=function(e){return null!=e&&"function"!=typeof e&&t.isLength(e.length)}}(Gr)),Gr}var Qr,en,tn={};function rn(){return Qr||(Qr=1,e=tn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObjectLike=function(e){return"object"==typeof e&&null!==e}),tn;var e}function nn(){return en||(en=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jr(),r=rn();e.isArrayLikeObject=function(e){return r.isObjectLike(e)&&t.isArrayLike(e)}}(Yr)),Yr}var an,on={},ln={};function sn(){return an||(an=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)}}}(ln)),ln}var cn,un={},dn={},fn={},pn={};function hn(){return cn||(cn=1,e=pn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObject=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}),pn;var e}var vn,yn={};function mn(){return vn||(vn=1,e=yn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isPrimitive=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}),yn;var e}var gn,bn,xn,wn={};function On(){return gn||(gn=1,e=wn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isEqualsSameValueZero=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}),wn;var e}function En(){return bn||(bn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hn(),r=mn(),n=On();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}(fn)),fn}function jn(){return xn||(xn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=En();e.isMatch=function(e,r){return t.isMatchWith(e,r,()=>{})}}(dn)),dn}var Sn,Pn={},kn={},An={};function _n(){return Sn||(Sn=1,e=An,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}),An;var e}var Nn,Mn={};function Tn(){return Nn||(Nn=1,e=Mn,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)}),Mn;var e}var In,Dn={};function Cn(){return In||(In=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]"}(Dn)),Dn}var zn,Ln,Rn,Bn,Vn={};function Kn(){return zn||(zn=1,e=Vn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),Vn;var e}function $n(){return Ln||(Ln=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_n(),r=Tn(),n=Cn(),i=mn(),a=Kn();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}(kn)),kn}function Fn(){return Rn||(Rn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$n();e.cloneDeep=function(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}}(Pn)),Pn}function Un(){return Bn||(Bn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jn(),r=Fn();e.matches=function(e){return e=r.cloneDeep(e),r=>t.isMatch(r,e)}}(un)),un}var Wn,Hn,qn={},Yn={},Gn={};function Xn(){return Wn||(Wn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$n(),r=Tn(),n=Cn();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}}})}}(Gn)),Gn}function Zn(){return Hn||(Hn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xn();e.cloneDeep=function(e){return t.cloneDeepWith(e)}}(Yn)),Yn}var Jn,Qn={},ei={};function ti(){return Jn||(Jn=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)}}}(ei)),ei}var ri,ni,ii,ai,oi,li,si,ci={};function ui(){return ri||(ri=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tn();e.isArguments=function(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===t.getTag(e)}}(ci)),ci}function di(){return ni||(ni=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ft(),r=ti(),n=ui(),i=tr();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}}(Qn)),Qn}function fi(){return ii||(ii=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jn(),r=Ht(),n=Zn(),i=rr(),a=di();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)}}}(qn)),qn}function pi(){return ai||(ai=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wr(),r=sn(),n=Un(),i=fi();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)}}}(on)),on}function hi(){return oi||(oi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Br(),r=$r(),n=Wr(),i=nn(),a=pi();e.uniqBy=function(e,o=n.identity){return i.isArrayLikeObject(e)?t.uniqBy(Array.from(e),r.ary(a.iteratee(o),1)):[]}}(Lr)),Lr}function vi(){return si?li:(si=1,li=hi().uniqBy)}var yi=zt(vi());var mi,gi={exports:{}},bi={},xi={exports:{}},wi={};var Oi,Ei,ji,Si={};
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("react"),r=require("@base-ui/react/merge-props"),n=require("@base-ui/react/use-render"),i=require("class-variance-authority"),a=require("clsx"),o=require("tailwind-merge"),l=require("@base-ui/react/button"),s=require("@base-ui/react/input");require("@base-ui/react/separator");var c=require("@base-ui/react/dialog"),u=require("lucide-react"),d=require("@base-ui/react/tooltip"),f=require("motion/react"),p=require("react-dom"),h=require("@base-ui/react/menu");function y(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var v=y(t),m=function(){return m=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},m.apply(this,arguments)};function g(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 b(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.twMerge(a.clsx(e))}var x=i.cva("ui-button",{variants:{variant:{default:"ui-button-default",outline:"ui-button-outline",secondary:"ui-button-secondary",ghost:"ui-button-ghost",destructive:"ui-button-destructive",link:"ui-button-link"},size:{default:"ui-button-size-default",xs:"ui-button-size-xs",sm:"ui-button-size-sm",lg:"ui-button-size-lg",icon:"ui-button-size-icon","icon-xs":"ui-button-size-icon-xs","icon-sm":"ui-button-size-icon-sm","icon-lg":"ui-button-size-icon-lg"}},defaultVariants:{variant:"default",size:"default"}});function w(t){var r=t.className,n=t.variant,i=void 0===n?"default":n,a=t.size,o=void 0===a?"default":a,s=g(t,["className","variant","size"]);return e.jsx(l.Button,m({"data-slot":"button",className:b(x({variant:i,size:o,className:r}))},s))}function O(t){var r=t.className,n=t.type,i=g(t,["className","type"]);return e.jsx(s.Input,m({type:n,"data-slot":"input",className:b("ui-input",r)},i))}function E(t){var r=g(t,[]);return e.jsx(c.Dialog.Root,m({"data-slot":"sheet"},r))}function j(t){var r=g(t,[]);return e.jsx(c.Dialog.Portal,m({"data-slot":"sheet-portal"},r))}function S(t){var r=t.className,n=g(t,["className"]);return e.jsx(c.Dialog.Backdrop,m({"data-slot":"sheet-overlay",className:b("ui-sheet-overlay",r)},n))}function P(t){var r=t.className,n=t.children,i=t.side,a=void 0===i?"right":i,o=t.showCloseButton,l=void 0===o||o,s=g(t,["className","children","side","showCloseButton"]);return e.jsxs(j,{children:[e.jsx(S,{}),e.jsxs(c.Dialog.Popup,m({"data-slot":"sheet-content","data-side":a,className:b("ui-sheet-content",r)},s,{children:[n,l&&e.jsxs(c.Dialog.Close,{"data-slot":"sheet-close",render:e.jsx(w,{variant:"ghost",className:"absolute top-3 right-3",size:"icon-sm"}),children:[e.jsx(u.XIcon,{}),e.jsx("span",{className:"sr-only",children:"Close"})]})]}))]})}function A(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sheet-header",className:b("ui-sheet-header",r)},n))}function k(t){var r=t.className,n=g(t,["className"]);return e.jsx(c.Dialog.Title,m({"data-slot":"sheet-title",className:b("ui-sheet-title",r)},n))}function _(t){var r=t.className,n=g(t,["className"]);return e.jsx(c.Dialog.Description,m({"data-slot":"sheet-description",className:b("ui-sheet-description",r)},n))}function N(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"skeleton",className:b("ui-skeleton",r)},n))}function M(t){var r=g(t,[]);return e.jsx(d.Tooltip.Root,m({"data-slot":"tooltip"},r))}function T(t){var r=g(t,[]);return e.jsx(d.Tooltip.Trigger,m({"data-slot":"tooltip-trigger"},r))}function I(t){var r=t.className,n=t.side,i=void 0===n?"top":n,a=t.sideOffset,o=void 0===a?4:a,l=t.align,s=void 0===l?"center":l,c=t.alignOffset,u=void 0===c?0:c,f=t.children,p=g(t,["className","side","sideOffset","align","alignOffset","children"]);return e.jsx(d.Tooltip.Portal,{children:e.jsx(d.Tooltip.Positioner,{align:s,alignOffset:u,side:i,sideOffset:o,className:"isolate z-50",children:e.jsxs(d.Tooltip.Popup,m({"data-slot":"tooltip-content",className:b("ui-tooltip-content",r)},p,{children:[f,e.jsx(d.Tooltip.Arrow,{className:"ui-tooltip-arrow"})]}))})})}var D=v.createContext(null);function C(){var e=v.useContext(D);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function z(t){var r=t.defaultOpen,n=void 0===r||r,i=t.open,a=t.onOpenChange,o=t.className,l=t.style,s=t.children,c=g(t,["defaultOpen","open","onOpenChange","className","style","children"]),u=function(){var e=v.useState(void 0),t=e[0],r=e[1];return v.useEffect(function(){var e=window.matchMedia("(max-width: ".concat(767,"px)")),t=function(){r(window.innerWidth<768)};return e.addEventListener("change",t),r(window.innerWidth<768),function(){return e.removeEventListener("change",t)}},[]),!!t}(),d=v.useState(!1),f=d[0],p=d[1],h=v.useState(n),y=h[0],x=h[1],w=null!=i?i:y,O=v.useCallback(function(e){var t="function"==typeof e?e(w):e;a?a(t):x(t),document.cookie="".concat("sidebar_state","=").concat(t,"; path=/; max-age=").concat(604800)},[a,w]),E=v.useCallback(function(){return u?p(function(e){return!e}):O(function(e){return!e})},[u,O,p]);v.useEffect(function(){var e=function(e){"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),E())};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[E]);var j=w?"expanded":"collapsed",S=v.useMemo(function(){return{state:j,open:w,setOpen:O,isMobile:u,openMobile:f,setOpenMobile:p,toggleSidebar:E}},[j,w,O,u,f,p,E]);return e.jsx(D.Provider,{value:S,children:e.jsx("div",m({"data-slot":"sidebar-wrapper",style:m({"--sidebar-width":"16rem","--sidebar-width-icon":"3rem"},l),className:b("ui-sidebar-wrapper",o)},c,{children:s}))})}function L(t){var r=t.side,n=void 0===r?"left":r,i=t.variant,a=void 0===i?"sidebar":i,o=t.collapsible,l=void 0===o?"offcanvas":o,s=t.className,c=t.children,u=t.dir,d=g(t,["side","variant","collapsible","className","children","dir"]),f=C(),p=f.isMobile,h=f.state,y=f.openMobile,v=f.setOpenMobile;return"none"===l?e.jsx("div",m({"data-slot":"sidebar",className:b("ui-sidebar",s)},d,{children:c})):p?e.jsx(E,m({open:y,onOpenChange:v},d,{children:e.jsxs(P,{dir:u,"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"ui-sidebar-mobile",style:{"--sidebar-width":"18rem"},side:n,children:[e.jsxs(A,{className:"sr-only",children:[e.jsx(k,{children:"Sidebar"}),e.jsx(_,{children:"Displays the mobile sidebar."})]}),e.jsx("div",{className:"flex h-full w-full flex-col",children:c})]})})):e.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-state":h,"data-collapsible":"collapsed"===h?l:"","data-variant":a,"data-side":n,"data-slot":"sidebar",children:[e.jsx("div",{"data-slot":"sidebar-gap",className:b("ui-sidebar-gap","floating"===a||"inset"===a?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),e.jsx("div",m({"data-slot":"sidebar-container","data-side":n,className:b("ui-sidebar-container","floating"===a||"inset"===a?"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",s)},d,{children:e.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"ui-sidebar-inner",children:c})}))]})}function R(t){var r=t.className,n=t.onClick,i=g(t,["className","onClick"]),a=C().toggleSidebar;return e.jsxs(w,m({"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon-sm",className:b(r),onClick:function(e){null==n||n(e),a()}},i,{children:[e.jsx(u.PanelLeftIcon,{}),e.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}))}function B(t){var r=t.className,n=g(t,["className"]);return e.jsx("main",m({"data-slot":"sidebar-inset",className:b("ui-sidebar-inset",r)},n))}function V(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sidebar-header","data-sidebar":"header",className:b("ui-sidebar-header",r)},n))}function K(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sidebar-footer","data-sidebar":"footer",className:b("ui-sidebar-footer",r)},n))}function $(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sidebar-content","data-sidebar":"content",className:b("ui-sidebar-content",r)},n))}function F(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sidebar-group","data-sidebar":"group",className:b("ui-sidebar-group",r)},n))}function U(e){var t=e.className,i=e.render,a=g(e,["className","render"]);return n.useRender({defaultTagName:"div",props:r.mergeProps({className:b("ui-sidebar-group-label",t)},a),render:i,state:{slot:"sidebar-group-label",sidebar:"group-label"}})}function W(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:b("ui-sidebar-group-content",r)},n))}function H(t){var r=t.className,n=g(t,["className"]);return e.jsx("ul",m({"data-slot":"sidebar-menu","data-sidebar":"menu",className:b("ui-sidebar-menu",r)},n))}function q(t){var r=t.className,n=g(t,["className"]);return e.jsx("li",m({"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:b("ui-sidebar-menu-item",r)},n))}var Y=i.cva("ui-sidebar-menu-button",{variants:{variant:{default:"",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 G(t){var i=t.render,a=t.isActive,o=void 0!==a&&a,l=t.variant,s=void 0===l?"default":l,c=t.size,u=void 0===c?"default":c,d=t.tooltip,f=t.className,p=g(t,["render","isActive","variant","size","tooltip","className"]),h=C(),y=h.isMobile,v=h.state,x=n.useRender({defaultTagName:"button",props:r.mergeProps({className:b(Y({variant:s,size:u}),f)},p),render:d?e.jsx(T,{render:i}):i,state:{slot:"sidebar-menu-button",sidebar:"menu-button",size:u,active:o}});return d?("string"==typeof d&&(d={children:d}),e.jsxs(M,{children:[x,e.jsx(I,m({side:"right",align:"center",hidden:"collapsed"!==v||y},d))]})):x}var X=[{title:"Dashboard",icon:u.LayoutDashboard,url:"#"},{title:"Analytics",icon:u.BarChart3,url:"#"},{title:"Products",icon:u.Package,url:"#"},{title:"Customers",icon:u.Users,url:"#"},{title:"Tasks",icon:u.ListTodo,url:"#"},{title:"Settings",icon:u.Settings,url:"#"},{title:"Help",icon:u.HelpCircle,url:"#"}];function Z(t){var r=t.items,n=void 0===r?X:r,i=t.onItemClick,a=t.activeItem,o="collapsed"===C().state;return e.jsxs(L,{variant:"inset",collapsible:"icon",children:[e.jsx(V,{className:"bmj-sidebar-header",children:e.jsxs("div",{className:"bmj-sidebar-logo-container",children:[e.jsx("div",{className:"bmj-sidebar-logo-box",children:"B"}),e.jsx(f.AnimatePresence,{mode:"wait",children:!o&&e.jsx(f.motion.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.jsx($,{children:e.jsxs(F,{children:[e.jsx(U,{children:e.jsx(f.AnimatePresence,{mode:"wait",children:!o&&e.jsx(f.motion.span,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:"Main Menu"})})}),e.jsx(W,{children:e.jsx(H,{children:n.map(function(t){return e.jsx(q,{children:e.jsx(G,{tooltip:t.title,isActive:a===t.title,onClick:function(){return null==i?void 0:i(t.title)},className:"bmj-sidebar-menu-button",render:e.jsxs("button",{type:"button",className:"flex items-center w-full",children:[e.jsx(t.icon,{className:"shrink-0"}),e.jsx(f.AnimatePresence,{mode:"wait",children:!o&&e.jsx(f.motion.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:t.title})})]})})},t.title)})})})]})}),e.jsx(K,{className:"bmj-sidebar-footer",children:e.jsxs("div",{className:"bmj-sidebar-user-container",children:[e.jsx("div",{className:"bmj-sidebar-user-avatar"}),e.jsx(f.AnimatePresence,{mode:"wait",children:!o&&e.jsxs(f.motion.div,{initial:{opacity:0,x:-10},animate:{opacity:1,x:0},exit:{opacity:0,x:-10},transition:{duration:.2},className:"bmj-sidebar-user-info",children:[e.jsx("span",{className:"text-sm font-medium",children:"Bahry Jarbou"}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"Admin"})]})})]})})]})}function J(t){var r=t.className,n=v.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=n[0],a=n[1];v.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.jsx(w,{variant:"ghost",size:"icon",onClick:function(){a(function(e){return"light"===e?"dark":"light"})},className:r,"aria-label":"Toggle theme",children:"light"===i?e.jsx(u.Moon,{className:"w-5 h-5 transition-all"}):e.jsx(u.Sun,{className:"w-5 h-5 transition-all"})})}Array(12).fill(0);let Q=1;const ee=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:Q++,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,r)=>{if(!r)return;let n;void 0!==r.loading&&(n=this.create({...r,promise:e,type:"loading",message:r.loading,description:"function"!=typeof r.description?r.description:void 0}));const i=Promise.resolve(e instanceof Function?e():e);let a,o=void 0!==n;const l=i.then(async e=>{a=["resolve",e];if(t.isValidElement(e))o=!1,this.create({id:n,type:"default",message:e});else if(te(e)&&!e.ok){o=!1;const i="function"==typeof r.error?await r.error(`HTTP error! status: ${e.status}`):r.error,a="function"==typeof r.description?await r.description(`HTTP error! status: ${e.status}`):r.description,l="object"==typeof i&&!t.isValidElement(i)?i:{message:i};this.create({id:n,type:"error",description:a,...l})}else if(e instanceof Error){o=!1;const i="function"==typeof r.error?await r.error(e):r.error,a="function"==typeof r.description?await r.description(e):r.description,l="object"==typeof i&&!t.isValidElement(i)?i:{message:i};this.create({id:n,type:"error",description:a,...l})}else if(void 0!==r.success){o=!1;const i="function"==typeof r.success?await r.success(e):r.success,a="function"==typeof r.description?await r.description(e):r.description,l="object"==typeof i&&!t.isValidElement(i)?i:{message:i};this.create({id:n,type:"success",description:a,...l})}}).catch(async e=>{if(a=["reject",e],void 0!==r.error){o=!1;const i="function"==typeof r.error?await r.error(e):r.error,a="function"==typeof r.description?await r.description(e):r.description,l="object"==typeof i&&!t.isValidElement(i)?i:{message:i};this.create({id:n,type:"error",description:a,...l})}}).finally(()=>{o&&(this.dismiss(n),n=void 0),null==r.finally||r.finally.call(r)}),s=()=>new Promise((e,t)=>l.then(()=>"reject"===a[0]?t(a[1]):e(a[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{const r=(null==t?void 0:t.id)||Q++;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}},te=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,re=(e,t)=>{const r=(null==t?void 0:t.id)||Q++;return ee.addToast({title:e,...t,id:r}),r},ne=Object.assign(re,{success:ee.success,info:ee.info,warning:ee.warning,error:ee.error,custom:ee.custom,message:ee.message,promise:ee.promise,dismiss:ee.dismiss,loading:ee.loading},{getHistory:()=>ee.toasts,getToasts:()=>ee.getActiveToasts()});function ie(t){var r=g(t,[]);return e.jsx(h.Menu.Root,m({"data-slot":"dropdown-menu"},r))}function ae(t){var r=g(t,[]);return e.jsx(h.Menu.Trigger,m({"data-slot":"dropdown-menu-trigger"},r))}function oe(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=g(t,["align","alignOffset","side","sideOffset","className"]);return e.jsx(h.Menu.Portal,{children:e.jsx(h.Menu.Positioner,{className:"isolate z-50 outline-none",align:n,alignOffset:a,side:l,sideOffset:c,children:e.jsx(h.Menu.Popup,m({"data-slot":"dropdown-menu-content",className:b("ui-dropdown-menu-content",u)},d))})})}function le(t){var r=g(t,[]);return e.jsx(h.Menu.Group,m({"data-slot":"dropdown-menu-group"},r))}function se(t){var r=t.className,n=t.inset,i=g(t,["className","inset"]);return e.jsx(h.Menu.GroupLabel,m({"data-slot":"dropdown-menu-label","data-inset":n,className:b("ui-dropdown-menu-label",r)},i))}function ce(t){var r=t.className,n=t.inset,i=t.variant,a=void 0===i?"default":i,o=g(t,["className","inset","variant"]);return e.jsx(h.Menu.Item,m({"data-slot":"dropdown-menu-item","data-inset":n,"data-variant":a,className:b("ui-dropdown-menu-item",r)},o))}function ue(t){var r=t.className,n=g(t,["className"]);return e.jsx(h.Menu.Separator,m({"data-slot":"dropdown-menu-separator",className:b("ui-dropdown-menu-separator",r)},n))}function de(){var t=function(e){ne.info("".concat(e," clicked"),{description:"This feature will be implemented soon."})};return e.jsxs("header",{className:"bmj-topbar",children:[e.jsxs("div",{className:"bmj-topbar-left",children:[e.jsx(R,{}),e.jsxs("div",{className:"bmj-topbar-search-container",children:[e.jsx(u.Search,{className:"bmj-topbar-search-icon"}),e.jsx(O,{placeholder:"Search dashboard...",className:"bmj-topbar-search-input"})]}),e.jsx(w,{variant:"ghost",size:"icon",className:"md:hidden",children:e.jsx(u.Search,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"bmj-topbar-right",children:[e.jsx("div",{className:"hidden xs:block",children:e.jsx(J,{})}),e.jsxs(w,{variant:"ghost",size:"icon",className:"relative",children:[e.jsx(u.Bell,{className:"w-5 h-5"}),e.jsx("span",{className:"bmj-topbar-notification-dot"})]}),e.jsxs(ie,{children:[e.jsx(ae,{render:e.jsx(w,{variant:"ghost",size:"icon",className:"rounded-full"}),children:e.jsx(u.User,{className:"w-5 h-5"})}),e.jsx(oe,{align:"end",className:"w-56",children:e.jsxs(le,{children:[e.jsx(se,{children:"My Account"}),e.jsx(ue,{}),e.jsxs(ce,{onClick:function(){return t("Profile")},children:[e.jsx(u.User,{className:"mr-2 h-4 w-4"}),e.jsx("span",{children:"Profile"})]}),e.jsxs(ce,{onClick:function(){return t("Billing")},children:[e.jsx(u.CreditCard,{className:"mr-2 h-4 w-4"}),e.jsx("span",{children:"Billing"})]}),e.jsxs(ce,{onClick:function(){return t("Team")},children:[e.jsx(u.Users,{className:"mr-2 h-4 w-4"}),e.jsx("span",{children:"Team"})]}),e.jsxs(ce,{onClick:function(){return t("Subscription")},children:[e.jsx(u.Zap,{className:"mr-2 h-4 w-4"}),e.jsx("span",{children:"Subscription"})]}),e.jsx(ue,{}),e.jsxs(ce,{variant:"destructive",onClick:function(){return t("Log out")},children:[e.jsx(u.LogOut,{className:"mr-2 h-4 w-4"}),e.jsx("span",{children:"Log out"})]})]})})]})]})]})}function fe(t){var r=t.className,n=t.size,i=void 0===n?"default":n,a=g(t,["className","size"]);return e.jsx("div",m({"data-slot":"card","data-size":i,className:b("ui-card",r)},a))}function pe(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"card-header",className:b("ui-card-header",r)},n))}function he(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"card-title",className:b("ui-card-title",r)},n))}function ye(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"card-description",className:b("ui-card-description",r)},n))}function ve(t){var r=t.className,n=g(t,["className"]);return e.jsx("div",m({"data-slot":"card-content",className:b("ui-card-content",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 me=["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 ge(e){return"string"==typeof e&&me.includes(e)}var be=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 xe(e){return"string"==typeof e&&be.has(e)}function we(e){return"string"==typeof e&&e.startsWith("data-")}function Oe(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(xe(r)||we(r))&&(t[r]=e[r]);return t}function Ee(e){return null==e?null:t.isValidElement(e)&&"object"==typeof e.props&&null!==e.props?Oe(e.props):"object"!=typeof e||Array.isArray(e)?null:Oe(e)}function je(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(xe(r)||we(r)||ge(r))&&(t[r]=e[r]);return t}var Se=["children","width","height","viewBox","className","style","title","desc"];function Pe(){return Pe=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},Pe.apply(null,arguments)}var Ae=t.forwardRef((e,t)=>{var{children:r,width:n,height:i,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,Se),f=o||{width:n,height:i,x:0,y:0},p=a.clsx("recharts-surface",l);return v.createElement("svg",Pe({},je(d),{className:p,width:n,height:i,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),v.createElement("title",null,c),v.createElement("desc",null,u),r)}),ke=["children","className"];function _e(){return _e=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},_e.apply(null,arguments)}var Ne=v.forwardRef((e,t)=>{var{children:r,className: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,ke),o=a.clsx("recharts-layer",n);return v.createElement("g",_e({className:o},je(i),{ref:t}),r)}),Me=t.createContext(null);function Te(e){return function(){return e}}const Ie=Math.cos,De=Math.sin,Ce=Math.sqrt,ze=Math.PI,Le=2*ze,Re=Math.PI,Be=2*Re,Ve=1e-6,Ke=Be-Ve;function $e(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class Fe{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?$e:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return $e;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>Ve)if(Math.abs(u*l-s*c)>Ve&&i){let f=r-a,p=n-o,h=l*l+s*s,y=f*f+p*p,v=Math.sqrt(h),m=Math.sqrt(d),g=i*Math.tan((Re-Math.acos((h+d-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>Ve&&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)>Ve||Math.abs(this._y1-c)>Ve)&&this._append`L${s},${c}`,r&&(d<0&&(d=d%Be+Be),d>Ke?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>Ve&&this._append`A${r},${r},0,${+(d>=Re)},${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 Ue(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 Fe(t)}function We(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function He(e){this._context=e}function qe(e){return new He(e)}function Ye(e){return e[0]}function Ge(e){return e[1]}function Xe(e,t){var r=Te(!0),n=null,i=qe,a=null,o=Ue(l);function l(l){var s,c,u,d=(l=We(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?Ye:Te(e),t="function"==typeof t?t:void 0===t?Ge:Te(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:Te(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:Te(+e),l):t},l.defined=function(e){return arguments.length?(r="function"==typeof e?e:Te(!!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 Ze(e,t,r){var n=null,i=Te(!0),a=null,o=qe,l=null,s=Ue(c);function c(c){var u,d,f,p,h,y=(c=We(c)).length,v=!1,m=new Array(y),g=new Array(y);for(null==a&&(l=o(h=s())),u=0;u<=y;++u){if(!(u<y&&i(p=c[u],u,c))===v)if(v=!v)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()}v&&(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 Xe().defined(i).curve(o).context(a)}return e="function"==typeof e?e:void 0===e?Ye:Te(+e),t="function"==typeof t?t:Te(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?Ge:Te(+r),c.x=function(t){return arguments.length?(e="function"==typeof t?t:Te(+t),n=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:Te(+t),c):e},c.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Te(+e),c):n},c.y=function(e){return arguments.length?(t="function"==typeof e?e:Te(+e),r=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:Te(+e),c):t},c.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Te(+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:Te(!!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}He.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 Je{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 Qe={draw(e,t){const r=Ce(t/ze);e.moveTo(r,0),e.arc(0,0,r,0,Le)}},et={draw(e,t){const r=Ce(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 tt=Ce(1/3),rt=2*tt;var nt={draw(e,t){const r=Ce(t/rt),n=r*tt;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},it={draw(e,t){const r=Ce(t),n=-r/2;e.rect(n,n,r,r)}};const at=De(ze/10)/De(7*ze/10),ot=De(Le/10)*at,lt=-Ie(Le/10)*at;var st={draw(e,t){const r=Ce(.8908130915292852*t),n=ot*r,i=lt*r;e.moveTo(0,-r),e.lineTo(n,i);for(let t=1;t<5;++t){const a=Le*t/5,o=Ie(a),l=De(a);e.lineTo(l*r,-o*r),e.lineTo(o*n-l*i,l*n+o*i)}e.closePath()}};const ct=Ce(3);var ut={draw(e,t){const r=-Ce(t/(3*ct));e.moveTo(0,2*r),e.lineTo(-ct*r,-r),e.lineTo(ct*r,-r),e.closePath()}};const dt=-.5,ft=Ce(3)/2,pt=1/Ce(12),ht=3*(pt/2+1);var yt={draw(e,t){const r=Ce(t/ht),n=r/2,i=r*pt,a=n,o=r*pt+r,l=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(dt*n-ft*i,ft*n+dt*i),e.lineTo(dt*a-ft*o,ft*a+dt*o),e.lineTo(dt*l-ft*s,ft*l+dt*s),e.lineTo(dt*n+ft*i,dt*i-ft*n),e.lineTo(dt*a+ft*o,dt*o-ft*a),e.lineTo(dt*l+ft*s,dt*s-ft*l),e.closePath()}};function vt(){}function mt(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 gt(e){this._context=e}function bt(e){this._context=e}function xt(e){this._context=e}function wt(e){this._context=e}function Ot(e){return e<0?-1:1}function Et(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(Ot(a)+Ot(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function jt(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function St(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 Pt(e){this._context=e}function At(e){this._context=new kt(e)}function kt(e){this._context=e}function _t(e){this._context=e}function Nt(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 Mt(e,t){this._context=e,this._t=t}function Tt(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 It(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Dt(e,t){return e[t]}function Ct(e){const t=[];return t.key=e,t}function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}gt.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:mt(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:mt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},bt.prototype={areaStart:vt,areaEnd:vt,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:mt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},xt.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:mt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},wt.prototype={areaStart:vt,areaEnd:vt,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))}},Pt.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:St(this,this._t0,jt(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,St(this,jt(this,r=Et(this,e,t)),r);break;default:St(this,this._t0,r=Et(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(At.prototype=Object.create(Pt.prototype)).point=function(e,t){Pt.prototype.point.call(this,t,e)},kt.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)}},_t.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=Nt(e),i=Nt(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)}},Mt.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 Lt,Rt={},Bt={};function Vt(){return Lt||(Lt=1,e=Bt,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isUnsafeProperty=function(e){return"__proto__"===e}),Bt;var e}var Kt,$t={};function Ft(){return Kt||(Kt=1,e=$t,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("]")}}),$t;var e}var Ut,Wt={};function Ht(){return Ut||(Ut=1,e=Wt,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)}),Wt;var e}var qt,Yt,Gt,Xt,Zt,Jt={},Qt={};function er(){return qt||(qt=1,e=Qt,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}),Qt;var e}function tr(){return Yt||(Yt=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=er(),r=Ht();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}}(Jt)),Jt}function rr(){return Gt||(Gt=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Vt(),r=Ft(),n=Ht(),i=tr();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}}}}(Rt)),Rt}function nr(){return Zt?Xt:(Zt=1,Xt=rr().get)}var ir=zt(nr());function ar(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 or(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+ar(i)+t:e+t},"")}var lr=e=>0===e?0:e>0?1:-1,sr=e=>"number"==typeof e&&e!=+e,cr=e=>"string"==typeof e&&e.indexOf("%")===e.length-1,ur=e=>("number"==typeof e||e instanceof Number)&&!sr(e),dr=e=>ur(e)||"string"==typeof e,fr=0,pr=e=>{var t=++fr;return"".concat(e||"").concat(t)},hr=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(!ur(e)&&"string"!=typeof e)return n;if(cr(e)){if(null==t)return n;var a=e.indexOf("%");r=t*parseFloat(e.slice(0,a))/100}else r=+e;return sr(r)&&(r=n),i&&null!=t&&r>t&&(r=t),r},yr=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 vr(e,t,r){return ur(e)&&ur(t)?ar(e+r*(t-e)):t}function mr(e,t,r){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):ir(e,t))===r)}var gr=e=>null==e,br=e=>gr(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function xr(e){return null!=e}function wr(){}var Or=["type","size","sizeType"];function Er(){return Er=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},Er.apply(null,arguments)}function jr(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 Sr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jr(Object(r),!0).forEach(function(t){Pr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jr(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Pr(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 Ar={symbolCircle:Qe,symbolCross:et,symbolDiamond:nt,symbolSquare:it,symbolStar:st,symbolTriangle:ut,symbolWye:yt},kr=Math.PI/180,_r=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=Sr(Sr({},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,Or)),{},{type:t,size:r,sizeType:n}),o="circle";"string"==typeof t&&(o=t);var{className:l,cx:s,cy:c}=i,u=je(i);return ur(s)&&ur(c)&&ur(r)?v.createElement("path",Er({},u,{className:a.clsx("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(c,")"),d:(()=>{var e=(e=>{var t="symbol".concat(br(e));return Ar[t]||Qe})(o),t=function(e,t){let r=null,n=Ue(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:Te(e||Qe),t="function"==typeof t?t:Te(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:Te(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:Te(+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*kr;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}})(r,n,o)),i=t();if(null!==i)return i})()})):null};_r.registerSymbol=(e,t)=>{Ar["symbol".concat(br(e))]=t};var Nr=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Mr=(e,r)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if(t.isValidElement(e)&&(n=e.props),"object"!=typeof n&&"function"!=typeof n)return null;var i={};return Object.keys(n).forEach(e=>{ge(e)&&"function"==typeof n[e]&&(i[e]=t=>n[e](n,t))}),i},Tr=(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];ge(i)&&"function"==typeof a&&(n||(n={}),n[i]=((e,t,r)=>n=>(e(t,r,n),null))(a,t,r))}),n};function Ir(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 Dr(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 Cr(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ir(Object(r),!0).forEach(function(t){Dr(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ir(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 zr,Lr={},Rr={};function Br(){return zr||(zr=1,e=Rr,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())}),Rr;var e}var Vr,Kr={};function $r(){return Vr||(Vr=1,e=Kr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.ary=function(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}),Kr;var e}var Fr,Ur={};function Wr(){return Fr||(Fr=1,e=Ur,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.identity=function(e){return e}),Ur;var e}var Hr,qr,Yr={},Gr={},Xr={};function Zr(){return Hr||(Hr=1,e=Xr,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}),Xr;var e}function Jr(){return qr||(qr=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zr();e.isArrayLike=function(e){return null!=e&&"function"!=typeof e&&t.isLength(e.length)}}(Gr)),Gr}var Qr,en,tn={};function rn(){return Qr||(Qr=1,e=tn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObjectLike=function(e){return"object"==typeof e&&null!==e}),tn;var e}function nn(){return en||(en=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Jr(),r=rn();e.isArrayLikeObject=function(e){return r.isObjectLike(e)&&t.isArrayLike(e)}}(Yr)),Yr}var an,on={},ln={};function sn(){return an||(an=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)}}}(ln)),ln}var cn,un={},dn={},fn={},pn={};function hn(){return cn||(cn=1,e=pn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isObject=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}),pn;var e}var yn,vn={};function mn(){return yn||(yn=1,e=vn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isPrimitive=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}),vn;var e}var gn,bn,xn,wn={};function On(){return gn||(gn=1,e=wn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isEqualsSameValueZero=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}),wn;var e}function En(){return bn||(bn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hn(),r=mn(),n=On();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}(fn)),fn}function jn(){return xn||(xn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=En();e.isMatch=function(e,r){return t.isMatchWith(e,r,()=>{})}}(dn)),dn}var Sn,Pn={},An={},kn={};function _n(){return Sn||(Sn=1,e=kn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}),kn;var e}var Nn,Mn={};function Tn(){return Nn||(Nn=1,e=Mn,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)}),Mn;var e}var In,Dn={};function Cn(){return In||(In=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]"}(Dn)),Dn}var zn,Ln,Rn,Bn,Vn={};function Kn(){return zn||(zn=1,e=Vn,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}),Vn;var e}function $n(){return Ln||(Ln=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_n(),r=Tn(),n=Cn(),i=mn(),a=Kn();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}(An)),An}function Fn(){return Rn||(Rn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$n();e.cloneDeep=function(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}}(Pn)),Pn}function Un(){return Bn||(Bn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jn(),r=Fn();e.matches=function(e){return e=r.cloneDeep(e),r=>t.isMatch(r,e)}}(un)),un}var Wn,Hn,qn={},Yn={},Gn={};function Xn(){return Wn||(Wn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$n(),r=Tn(),n=Cn();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}}})}}(Gn)),Gn}function Zn(){return Hn||(Hn=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xn();e.cloneDeep=function(e){return t.cloneDeepWith(e)}}(Yn)),Yn}var Jn,Qn={},ei={};function ti(){return Jn||(Jn=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)}}}(ei)),ei}var ri,ni,ii,ai,oi,li,si,ci={};function ui(){return ri||(ri=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Tn();e.isArguments=function(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===t.getTag(e)}}(ci)),ci}function di(){return ni||(ni=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ft(),r=ti(),n=ui(),i=tr();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}}(Qn)),Qn}function fi(){return ii||(ii=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=jn(),r=Ht(),n=Zn(),i=rr(),a=di();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)}}}(qn)),qn}function pi(){return ai||(ai=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wr(),r=sn(),n=Un(),i=fi();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)}}}(on)),on}function hi(){return oi||(oi=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Br(),r=$r(),n=Wr(),i=nn(),a=pi();e.uniqBy=function(e,o=n.identity){return i.isArrayLikeObject(e)?t.uniqBy(Array.from(e),r.ary(a.iteratee(o),1)):[]}}(Lr)),Lr}function yi(){return si?li:(si=1,li=hi().uniqBy)}var vi=zt(yi());var mi,gi={exports:{}},bi={},xi={exports:{}},wi={};var Oi,Ei,ji,Si={};
2
2
  /**
3
3
  * @license React
4
4
  * use-sync-external-store-shim.development.js
@@ -16,7 +16,7 @@
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 ki,Ai,_i={};
19
+ */var Ai,ki,_i={};
20
20
  /**
21
21
  * @license React
22
22
  * use-sync-external-store-shim/with-selector.development.js
@@ -25,7 +25,7 @@
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 Ni=(Ai||(Ai=1,"production"===process.env.NODE_ENV?gi.exports=function(){if(ji)return bi;ji=1;var e=t,r=Pi(),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=e.useRef,o=e.useEffect,l=e.useMemo,s=e.useDebugValue;return bi.useSyncExternalStoreWithSelector=function(e,t,r,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,n(i,e))return t;var r=c(e);return void 0!==u&&u(t,r)?(i=e,t):(i=e,a=r)}var i,a,o=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,c,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),s(p),p},bi}():gi.exports=(ki||(ki=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=t,r=Pi(),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=e.useRef,o=e.useEffect,l=e.useMemo,s=e.useDebugValue;_i.useSyncExternalStoreWithSelector=function(e,t,r,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,n(i,e))return t;var r=c(e);return void 0!==u&&u(t,r)?(i=e,t):(i=e,a=r)}var i,a,o=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,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())}()),_i)),gi.exports),Mi=t.createContext(null),Ti=e=>e,Ii=()=>{var e=t.useContext(Mi);return e?e.store.dispatch:Ti},Di=()=>{},Ci=()=>Di,zi=(e,t)=>e===t;function Li(e){var r=t.useContext(Mi),n=t.useMemo(()=>r?t=>{if(null!=t)return e(t)}:Di,[r,e]);return Ni.useSyncExternalStoreWithSelector(r?r.subscription.addNestedSub:Ci,r?r.store.getState:Di,r?r.store.getState:Di,n,zi)}var Ri=(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})}}},Bi=(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})}},Vi={inputStabilityCheck:"once",identityFunctionCheck:"once"};var Ki=e=>Array.isArray(e)?e:[e];function $i(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 Fi(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Ui="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function Wi(){return{s:0,v:void 0,o:null,p:null}}function Hi(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=Wi(),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=Wi(),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 Ui(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 qi(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=Hi,argsMemoizeOptions:d=[],devModeChecks:f={}}=l,p=Ki(c),h=Ki(d),v=$i(e),y=s(function(){return n++,o.apply(null,arguments)},...p);let m=!0;const g=u(function(){i++;const e=Fi(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}={...Vi,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:Ri},inputStabilityCheck:{shouldRun:"always"===n||"once"===n&&e,run:Bi}}})(m,f);if(r.shouldRun&&r.run(o,e,t),n.shouldRun){const t=Fi(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 Yi,Gi=qi(Hi),Xi=Object.assign((e,t=Gi)=>{!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:()=>Xi}),Zi={},Ji={},Qi={};function ea(){return Yi||(Yi=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}}(Qi)),Qi}var ta,ra,na,ia={},aa={};function oa(){return ta||(ta=1,e=aa,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isSymbol=function(e){return"symbol"==typeof e||e instanceof Symbol}),aa;var e}function la(){return ra||(ra=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oa(),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)))}}(ia)),ia}function sa(){return na||(na=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ea(),r=la(),n=tr();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)}}(Ji)),Ji}var ca,ua={};function da(){return ca||(ca=1,e=ua,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}),ua;var e}var fa,pa,ha,va,ya={};function ma(){return fa||(fa=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ti(),r=Jr(),n=hn(),i=On();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))}}(ya)),ya}function ga(){return pa||(pa=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sa(),r=da(),n=ma();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"])}}(Zi)),Zi}function ba(){return va?ha:(va=1,ha=ga().sortBy)}var xa=zt(ba()),wa=e=>e.legend.settings;Gi([e=>e.legend.payload,wa],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?xa(n,r):n});function Oa(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 Ea=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),ja=()=>Math.random().toString(36).substring(7).split("").join("."),Sa={INIT:`@@redux/INIT${ja()}`,REPLACE:`@@redux/REPLACE${ja()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ja()}`};function Pa(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 ka(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 Aa(e){let t=typeof e;return"production"!==process.env.NODE_ENV&&(t=ka(e)),t}function _a(e,t,r){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Oa(2):`Expected the root reducer to be a function. Instead, received: '${Aa(e)}'`);if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?Oa(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?Oa(1):`Expected the enhancer to be a function. Instead, received: '${Aa(r)}'`);return r(_a)(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?Oa(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?Oa(4):`Expected the listener to be a function. Instead, received: '${Aa(e)}'`);if(s)throw new Error("production"===process.env.NODE_ENV?Oa(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?Oa(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(!Pa(e))throw new Error("production"===process.env.NODE_ENV?Oa(7):`Actions must be plain objects. Instead, the actual type was: '${Aa(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?Oa(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?Oa(17):`Action "type" property must be a string. Instead, the actual type was: '${Aa(e.type)}'. Value was: '${e.type}' (stringified)`);if(s)throw new Error("production"===process.env.NODE_ENV?Oa(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:Sa.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Oa(10):`Expected the nextReducer to be a function. Instead, received: '${Aa(e)}`);n=e,f({type:Sa.REPLACE})},[Ea]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?Oa(11):`Expected the observer to be an object. Instead, received: '${Aa(t)}'`);function r(){const e=t;e.next&&e.next(u())}r();return{unsubscribe:e(r)}},[Ea](){return this}}}}}function Na(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function Ma(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]&&Na(`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:Sa.INIT}))throw new Error("production"===process.env.NODE_ENV?Oa(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:Sa.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?Oa(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Sa.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===Sa.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(!Pa(e))return`The ${a} has unexpected type of "${Aa(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===Sa.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&&Na(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?Oa(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 Ta(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function Ia(e){return Pa(e)&&"type"in e&&"string"==typeof e.type}var Da=Symbol.for("immer-nothing"),Ca=Symbol.for("immer-draftable"),za=Symbol.for("immer-state"),La="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 Ra(e,...t){if("production"!==process.env.NODE_ENV){const r=La[e],n=lo(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 Ba=Object,Va=Ba.getPrototypeOf,Ka="constructor",$a="prototype",Fa="configurable",Ua="enumerable",Wa="writable",Ha="value",qa=e=>!!e&&!!e[za];function Ya(e){return!!e&&(Za(e)||no(e)||!!e[Ca]||!!e[Ka]?.[Ca]||io(e)||ao(e))}var Ga=Ba[$a][Ka].toString(),Xa=new WeakMap;function Za(e){if(!e||!oo(e))return!1;const t=Va(e);if(null===t||t===Ba[$a])return!0;const r=Ba.hasOwnProperty.call(t,Ka)&&t[Ka];if(r===Object)return!0;if(!lo(r))return!1;let n=Xa.get(r);return void 0===n&&(n=Function.toString.call(r),Xa.set(r,n)),n===Ga}function Ja(e,t,r=!0){if(0===Qa(e)){(r?Reflect.ownKeys(e):Ba.keys(e)).forEach(r=>{t(r,e[r],e)})}else e.forEach((r,n)=>t(n,r,e))}function Qa(e){const t=e[za];return t?t.type_:no(e)?1:io(e)?2:ao(e)?3:0}var eo=(e,t,r=Qa(e))=>2===r?e.has(t):Ba[$a].hasOwnProperty.call(e,t),to=(e,t,r=Qa(e))=>2===r?e.get(t):e[t],ro=(e,t,r,n=Qa(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r};var no=Array.isArray,io=e=>e instanceof Map,ao=e=>e instanceof Set,oo=e=>"object"==typeof e,lo=e=>"function"==typeof e,so=e=>"boolean"==typeof e;var co=e=>e.copy_||e.base_,uo=e=>e.modified_?e.copy_:e.base_;function fo(e,t){if(io(e))return new Map(e);if(ao(e))return new Set(e);if(no(e))return Array[$a].slice.call(e);const r=Za(e);if(!0===t||"class_only"===t&&!r){const t=Ba.getOwnPropertyDescriptors(e);delete t[za];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const i=r[n],a=t[i];!1===a[Wa]&&(a[Wa]=!0,a[Fa]=!0),(a.get||a.set)&&(t[i]={[Fa]:!0,[Wa]:!0,[Ua]:a[Ua],[Ha]:e[i]})}return Ba.create(Va(e),t)}{const t=Va(e);if(null!==t&&r)return{...e};const n=Ba.create(t);return Ba.assign(n,e)}}function po(e,t=!1){return vo(e)||qa(e)||!Ya(e)||(Qa(e)>1&&Ba.defineProperties(e,{set:ho,add:ho,clear:ho,delete:ho}),Ba.freeze(e),t&&Ja(e,(e,t)=>{po(t,!0)},!1)),e}var ho={[Ha]:function(){Ra(2)}};function vo(e){return null===e||!oo(e)||Ba.isFrozen(e)}var yo="MapSet",mo="Patches",go="ArrayMethods",bo={};function xo(e){const t=bo[e];return t||Ra(0,e),t}var wo,Oo=e=>!!bo[e],Eo=()=>wo;function jo(e,t){t&&(e.patchPlugin_=xo(mo),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function So(e){Po(e),e.drafts_.forEach(Ao),e.drafts_=null}function Po(e){e===wo&&(wo=e.parent_)}var ko=e=>wo={drafts_:[],parent_:wo,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Oo(yo)?xo(yo):void 0,arrayMethodsPlugin_:Oo(go)?xo(go):void 0};function Ao(e){const t=e[za];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function _o(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(void 0!==e&&e!==r){r[za].modified_&&(So(t),Ra(4)),Ya(e)&&(e=No(t,e));const{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[za].base_,e,t)}else e=No(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&po(t,r)}(t,e,!0),So(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Da?e:void 0}function No(e,t){if(vo(t))return t;const r=t[za];if(!r){return zo(t,e.handledSet_,e)}if(!To(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)}Co(r,e)}return r.copy_}function Mo(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var To=(e,t)=>e.scope_===t,Io=[];function Do(e,t,r,n){const i=co(e),a=e.type_;if(void 0!==n){if(to(i,n,a)===t)return void ro(i,n,r,a)}if(!e.draftLocations_){const t=e.draftLocations_=new Map;Ja(i,(e,r)=>{if(qa(r)){const n=t.get(r)||[];n.push(e),t.set(r,n)}})}const o=e.draftLocations_.get(t)??Io;for(const e of o)ro(i,e,r,a)}function Co(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)}Mo(e)}}function zo(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||qa(e)||t.has(e)||!Ya(e)||vo(e)||(t.add(e),Ja(e,(n,i)=>{if(qa(i)){const t=i[za];if(To(t,r)){const r=uo(t);ro(e,n,r,e.type_),Mo(t)}}else Ya(i)&&zo(i,t,r)})),e}var Lo={get(e,t){if(t===za)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=co(e);if(!eo(i,t,e.type_))return function(e,t,r){const n=Vo(t,r);return n?Ha in n?n[Ha]:n.get?.call(e.draft_):void 0}(e,i,t);const a=i[t];if(e.finalized_||!Ya(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===Bo(e.base_,t)){$o(e);const r=1===e.type_?+t:t,n=Fo(e.scope_,a,e,r);return e.copy_[r]=n}return a},has:(e,t)=>t in co(e),ownKeys:e=>Reflect.ownKeys(co(e)),set(e,t,r){const n=Vo(co(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=Bo(co(e),t),i=n?.[za];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||eo(e.base_,t,e.type_)))return!0;$o(e),Ko(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(qa(r)){const i=r[za];To(i,n)&&i.callbacks_.push(function(){$o(e);const n=uo(i);Do(e,r,n,t)})}else Ya(r)&&e.callbacks_.push(function(){const i=co(e);3===e.type_?i.has(r)&&zo(r,n.handledSet_,n):to(i,t,e.type_)===r&&n.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&zo(to(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r)),!0},deleteProperty:(e,t)=>($o(e),void 0!==Bo(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),Ko(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=co(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[Wa]:!0,[Fa]:1!==e.type_||"length"!==t,[Ua]:n[Ua],[Ha]:r[t]}:n},defineProperty(){Ra(11)},getPrototypeOf:e=>Va(e.base_),setPrototypeOf(){Ra(12)}},Ro={};for(let e in Lo){let t=Lo[e];Ro[e]=function(){const e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function Bo(e,t){const r=e[za];return(r?co(r):e)[t]}function Vo(e,t){if(!(t in e))return;let r=Va(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Va(r)}}function Ko(e){e.modified_||(e.modified_=!0,e.parent_&&Ko(e.parent_))}function $o(e){e.copy_||(e.assigned_=new Map,e.copy_=fo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Ro.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&Ra(13),Ro.set.call(this,e,t,void 0)},Ro.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&Ra(14),Lo.set.call(this,e[0],t,r,e[0])};function Fo(e,t,r,n){const[i,a]=io(t)?xo(yo).proxyMap_(t,r):ao(t)?xo(yo).proxySet_(t,r):function(e,t){const r=no(e),n={type_:r?1:0,scope_:t?t.scope_:Eo(),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=Lo;r&&(i=[n],a=Ro);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,[l,n]}(t,r);return(r?.scope_??Eo()).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||!To(i,n))return;n.mapSetPlugin_?.fixSetContents(i);const a=uo(i);Do(e,i.draft_??i,a,r),Co(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 Uo(e){return qa(e)||Ra(10,e),Wo(e)}function Wo(e){if(!Ya(e)||vo(e))return e;const t=e[za];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=fo(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=fo(e,!0);return Ja(r,(e,t)=>{ro(r,e,Wo(t))},n),t&&(t.finalized_=!1),r}var Ho=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{if(lo(e)&&!lo(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(lo(t)||Ra(6),void 0===r||lo(r)||Ra(7),Ya(e)){const i=ko(this),a=Fo(i,e,void 0);let o=!0;try{n=t(a),o=!1}finally{o?So(i):Po(i)}return jo(i,r),_o(n,i)}if(!e||!oo(e)){if(n=t(e),void 0===n&&(n=e),n===Da&&(n=void 0),this.autoFreeze_&&po(n,!0),r){const t=[],i=[];xo(mo).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:i}),r(t,i)}return n}Ra(1,e)},this.produceWithPatches=(e,t)=>{if(lo(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]},so(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),so(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),so(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ya(e)||Ra(8),qa(e)&&(e=Uo(e));const t=ko(this),r=Fo(t,e,void 0);return r[za].isManual_=!0,Po(t),r}finishDraft(e,t){const r=e&&e[za];r&&r.isManual_||Ra(9);const{scope_:n}=r;return jo(n,t),_o(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=xo(mo).applyPatches_;return qa(e)?n(e,t):this.produce(e,e=>n(e,t))}},qo=Ho.produce;function Yo(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var Go=Yo(),Xo=Yo,Zo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ta:Ta.apply(null,arguments)};function Jo(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error("production"===process.env.NODE_ENV?ns(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=>Ia(t)&&t.type===e,r}function Qo(e){return"function"==typeof e&&"type"in e&&((t=e)&&"function"==typeof t.match);var t}function el(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 tl=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 Ya(e)?qo(e,()=>{}):e}function nl(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function il(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function al(e,t,r){const n=ol(e,t,r);return{detectMutations:()=>ll(e,t,n,r)}}function ol(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]=ol(e,t,r[i],l)}}return a}function ll(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=ll(e,t,r.children[i],n[i],l,o);if(s.wasMutated)return s}return{wasMutated:!1}}function sl(e){const t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||Pa(e)}function cl(e,t="",r=sl,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=cl(c,l,r,n,i,a),o))return o}return a&&ul(e)&&a.add(e),!1}function ul(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if("object"==typeof t&&null!==t&&!ul(t))return!1;return!0}function dl(e){return"boolean"==typeof e}var fl=()=>function(e){const{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{};let a=new tl;if(t&&(dl(t)?a.push(Go):a.push(Xo(t.extraArgument))),"production"!==process.env.NODE_ENV){if(r){let e={};dl(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=il,ignoredPaths:i,warnAfter:a=32}=e;const o=al.bind(null,n,i);return({getState:e})=>{let r,n=e(),i=o(n);return l=>s=>{const c=el(a,"ImmutableStateInvariantMiddleware");c.measureTime(()=>{if(n=e(),r=i.detectMutations(),i=o(n),r.wasMutated)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(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={};dl(n)||(e=n),a.push(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);{const{isSerializable:t=sl,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(!Ia(d))return c(d);const f=c(d),p=el(o,"SerializableStateInvariantMiddleware");return s||n.length&&-1!==n.indexOf(d.type)||p.measureTime(()=>{const e=cl(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=cl(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={};dl(i)||(e=i),a.unshift(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);const{isActionCreator:t=Qo}=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},pl="RTK_autoBatch",hl=()=>e=>({payload:e,meta:{[pl]:!0}}),vl=e=>t=>{setTimeout(t,e)},yl=(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:vl(10):"callback"===e.type?e.queueNotification:vl(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?.[pl],a=!i,a&&(o||(o=!0,s(c))),n.dispatch(e)}finally{i=!0}}})};function ml(e){const t=fl(),{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(!Pa(r))throw new Error("production"===process.env.NODE_ENV?ns(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");s=Ma(r)}if("production"!==process.env.NODE_ENV&&n&&"function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(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?ns(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?ns(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");e.add(t)})}let u=Ta;i&&(u=Zo({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?Oa(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=Ta(...l)(i.dispatch),{...i,dispatch:a}}}(...c),f=(e=>function(t){const{autoBatch:r=!0}=t??{};let n=new tl(e);return r&&n.push(yl("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?ns(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?ns(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?ns(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 _a(s,o,u(...p))}function gl(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?ns(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(28):"`builder.addCase` cannot be called with an empty action type");if(o in t)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(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?ns(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?ns(31):"`builder.addDefaultCase` can only be called once");return n=e,i}};return e(i),[t,r,n]}var bl=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},xl=Symbol.for("rtk-slice-createasyncthunk");function wl(e,t){return`${e}/${t}`}function Ol({creators:e}={}){const t=e?.asyncThunk?.[xl];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(12):"`context.addCase` cannot be called with an empty action type");if(r in o.sliceCaseReducersByType)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(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?gl(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?ns(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]=gl(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(qa(e)){const n=r(e,t);return void 0===n?e:n}if(Ya(e))return qo(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:wl(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?ns(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?Jo(e,o):Jo(e))}(o,a,l):function({type:e,reducerName:t},r,n,i){if(!i)throw new Error("production"===process.env.NODE_ENV?ns(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||Sl,pending:l||Sl,rejected:s||Sl,settled:c||Sl})}(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=nl(d,n,h);else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?ns(15):"selectSlice returned undefined for an uninjected slice reducer");return i}function i(t=c){const n=nl(u,r,()=>new WeakMap);return nl(n,t,()=>{const n={};for(const[i,a]of Object.entries(e.selectors??{}))n[i]=El(a,t,()=>nl(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 El(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?ns(16):"selectState returned undefined for an uninjected slice reducer");return e(o,...a)}return i.unwrapped=e,i}var jl=Ol();function Sl(){}var Pl="listener",kl="completed",Al="cancelled",_l=`task-${Al}`,Nl=`task-${kl}`,Ml=`${Pl}-${Al}`,Tl=`${Pl}-${kl}`,Il=class{constructor(e){this.code=e,this.message=`task ${Al} (reason: ${e})`}name="TaskAbortError";message},Dl=(e,t)=>{if("function"!=typeof e)throw new TypeError("production"===process.env.NODE_ENV?ns(32):`${t} is not a function`)},Cl=()=>{},zl=(e,t=Cl)=>(e.catch(t),e),Ll=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Rl=e=>{if(e.aborted)throw new Il(e.reason)};function Bl(e,t){let r=Cl;return new Promise((n,i)=>{const a=()=>i(new Il(e.reason));e.aborted?a():(r=Ll(e,a),t.finally(()=>r()).then(n,i))}).finally(()=>{r=Cl})}var Vl=e=>t=>zl(Bl(e,t).then(t=>(Rl(e),t))),Kl=e=>{const t=Vl(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:$l}=Object,Fl={},Ul="listenerMiddleware",Wl=(e,t)=>(r,n)=>{Dl(r,"taskExecutor");const i=new AbortController;var a;a=i,Ll(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 Il?"cancelled":"rejected",error:e}}finally{t?.()}})(async()=>{Rl(e),Rl(i.signal);const t=await r({pause:Vl(i.signal),delay:Kl(i.signal),signal:i.signal});return Rl(i.signal),t},()=>i.abort(Nl));return n?.autoJoin&&t.push(o.catch(Cl)),{result:Vl(e)(o),cancel(){i.abort(_l)}}},Hl=(e,t)=>(r,n)=>zl((async(r,n)=>{Rl(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 Bl(t,Promise.race(a));return Rl(t),e}finally{i()}})(r,n)),ql=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Jo(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?ns(21):"Creating or removing a listener requires one of the known fields for matching an action");return Dl(a,"options.listener"),{predicate:i,type:t,effect:a}},Yl=$l(e=>{const{type:t,predicate:r,effect:n}=ql(e);return{id:bl(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error("production"===process.env.NODE_ENV?ns(22):"Unsubscribe not initialized")}}},{withTypes:()=>Yl}),Gl=(e,t)=>{const{type:r,effect:n,predicate:i}=ql(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===i)&&e.effect===n)},Xl=e=>{e.pending.forEach(e=>{e.abort(Ml)})},Zl=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},Jl=$l(Jo(`${Ul}/add`),{withTypes:()=>Jl}),Ql=Jo(`${Ul}/removeAll`),es=$l(Jo(`${Ul}/remove`),{withTypes:()=>es}),ts=(...e)=>{console.error(`${Ul}/error`,...e)},rs=(e={})=>{const t=new Map,r=new Map,{extra:n,onError:i=ts}=e;Dl(i,"onError");const a=e=>(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Xl(e)}))(Gl(t,e)??Yl(e));$l(a,{withTypes:()=>a});const o=e=>{const r=Gl(t,e);return r&&(r.unsubscribe(),e.cancelActive&&Xl(r)),!!r};$l(o,{withTypes:()=>o});const l=async(e,o,l,s)=>{const c=new AbortController,u=Hl(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,$l({},l,{getOriginalState:s,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:Kl(c.signal),pause:Vl(c.signal),extra:n,signal:c.signal,fork:Wl(c.signal,d),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==c&&(e.abort(Ml),r.delete(e))})},cancel:()=>{c.abort(Ml),e.pending.delete(c)},throwIfCancelled:()=>{Rl(c.signal)}})))}catch(e){e instanceof Il||Zl(i,e,{raisedBy:"effect"})}finally{await Promise.all(d),c.abort(Tl),(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())Xl(e);e.clear()})(t,r);return{middleware:e=>r=>n=>{if(!Ia(n))return r(n);if(Jl.match(n))return a(n.payload);if(Ql.match(n))return void s();if(es.match(n))return o(n.payload);let c=e.getState();const u=()=>{if(c===Fl)throw new Error("production"===process.env.NODE_ENV?ns(23):`${Ul}: 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,Zl(i,e,{raisedBy:"predicate"})}a&&l(t,n,e,u)}}}finally{c=Fl}return d},startListening:a,stopListening:o,clearListeners:s}};function ns(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 is=jl({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:as,setLayout:os,setChartSize:ls,setScale:ss}=is.actions,cs=is.reducer;function us(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ds(e){return Number.isFinite(e)}function fs(e){return"number"==typeof e&&e>0&&Number.isFinite(e)}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 hs(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){vs(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 vs(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 ys(e,t,r){return gr(e)||gr(t)?r:dr(t)?ir(e,t,r):"function"==typeof t?t(e):r}var ms=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,gs=(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},bs=(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*lr(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 ds(i)?{coordinate:i+v,value:e,offset:v,index:t}:null}).filter(xr):s&&c?c.map((e,t)=>{var r=o.map(e);return ds(r)?{coordinate:r+v,value:e,index:t,offset:v}:null}).filter(xr):o.ticks&&null!=u?o.ticks(u).map((e,t)=>{var r=o.map(e);return ds(r)?{coordinate:r+v,value:e,index:t,offset:v}:null}).filter(xr):o.domain().map((e,t)=>{var r=o.map(e);return ds(r)?{coordinate:r+v,value:n?n[e]:e,index:t,offset:v}:null}).filter(xr)},xs={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=sr(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}Tt(e,t)}},none:Tt,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}Tt(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,Tt(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=sr(s[1])?s[0]:s[1];c>=0?(s[0]=a,a+=c,s[1]=a):(s[0]=0,s[1]=0)}}}}},ws=(e,t,r)=>{var n,i=null!==(n=xs[r])&&void 0!==n?n:Tt,a=function(){var e=Te([]),t=It,r=Tt,n=Dt;function i(i){var a,o,l=Array.from(e.apply(this,arguments),Ct),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=We(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:Te(Array.from(t)),i):e},i.value=function(e){return arguments.length?(n="function"==typeof e?e:Te(+e),i):n},i.order=function(e){return arguments.length?(t=null==e?It:"function"==typeof e?e:Te(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(r=null==e?Tt:e,i):r},i}().keys(t).value((e,t)=>Number(ys(e,t,0))).order(It).offset(i),o=a(e);return o.forEach((r,n)=>{r.forEach((r,i)=>{var a=ys(e[i],t[n],0);Array.isArray(a)&&2===a.length&&ur(a[0])&&ur(a[1])&&(r[0]=a[0],r[1]=a[1])})}),o};function Os(e){return null==e?void 0:String(e)}function Es(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!gr(i[t.dataKey])){var l=mr(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=ys(i,gr(o)?t.dataKey:o),c=t.scale.map(s);return ur(c)?c:null}var js=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=ys(a,t.dataKey,t.scale.domain()[o]);if(gr(l))return null;var s=t.scale.map(l);return ur(s)?s-i/2+n:null},Ss=(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=us(n,t,r),o=(i=a.flat(2).filter(ur),[Math.min(...i),Math.max(...i)]);return ds(o[0])&&ds(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]]},Ps=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ks=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,As=(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=xa(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 _s(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return hs(hs({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Ns(e,t){return e?String(e):"string"==typeof t?t:void 0}var Ms=e=>e.layout.width,Ts=e=>e.layout.height,Is=e=>e.layout.scale,Ds=e=>e.layout.margin,Cs=Gi(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),zs=Gi(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Ls="data-recharts-item-id";function Rs(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 Bs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(r),!0).forEach(function(t){Vs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Vs(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 Ks,$s,Fs,Us,Ws,Hs=Gi([Ms,Ts,Ds,e=>e.brush.height,function(e){return zs(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return zs(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return Cs(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return Cs(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},wa,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=Bs(Bs({},{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&&ur(e[a]))return hs(hs({},e),{},{[a]:e[a]+(n||0)});if(("horizontal"===l||"vertical"===l&&"center"===a)&&"middle"!==o&&ur(e[o]))return hs(hs({},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 Bs(Bs({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(h,0)})}),qs=Gi(Hs,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Ys=Gi(Ms,Ts,(e,t)=>({x:0,y:0,width:e,height:t})),Gs=t.createContext(null),Xs=()=>null!=t.useContext(Gs),Zs=e=>e.brush,Js=Gi([Zs,Hs,Ds],(e,t,r)=>({height:e.height,x:ur(e.x)?e.x:t.left,y:ur(e.y)?e.y:t.top+t.height+t.brushBottom-((null==r?void 0:r.bottom)||0),width:ur(e.width)?e.width:t.width})),Qs={},ec={},tc={};function rc(){return Ks||(Ks=1,e=tc,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}),tc;var e}function nc(){return $s||($s=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}}(ec)),ec}function ic(){return Fs||(Fs=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nc();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})}}(Qs)),Qs}function ac(){return Ws?Us:(Ws=1,Us=ic().throttle)}var oc=zt(ac()),lc=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++]))}},sc={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},cc=(e,t,r)=>{var{width:n=sc.width,height:i=sc.height,aspect:a,maxHeight:o}=r,l=cr(n)?e:Number(n),s=cr(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}},uc={width:0,height:0,overflow:"visible"},dc={width:0,overflowX:"visible"},fc={height:0,overflowY:"visible"},pc={},hc=e=>{var{width:t,height:r}=e,n=cr(t),i=cr(r);return n&&i?uc:n?dc:i?fc:pc};function vc(){return vc=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},vc.apply(null,arguments)}function yc(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 mc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yc(Object(r),!0).forEach(function(t){gc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gc(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 bc=t.createContext(sc.initialDimension);function xc(e){var{children:r,width:n,height:i}=e,a=t.useMemo(()=>({width:n,height:i}),[n,i]);return function(e){return fs(e.width)&&fs(e.height)}(a)?y.createElement(bc.Provider,{value:a},r):null}var wc=()=>t.useContext(bc),Oc=t.forwardRef((e,r)=>{var{aspect:n,initialDimension:i=sc.initialDimension,width:o,height:l,minWidth:s=sc.minWidth,minHeight:c,maxHeight:u,children:d,debounce:f=sc.debounce,id:p,className:h,onResize:v,style:m={}}=e,g=t.useRef(null),b=t.useRef();b.current=v,t.useImperativeHandle(r,()=>g.current);var[x,w]=t.useState({containerWidth:i.width,containerHeight:i.height}),O=t.useCallback((e,t)=>{w(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);t.useEffect(()=>{if(null==g.current||"undefined"==typeof ResizeObserver)return wr;var e=e=>{var t,r=e[0];if(null!=r){var{width:n,height:i}=r.contentRect;O(n,i),null===(t=b.current)||void 0===t||t.call(b,n,i)}};f>0&&(e=oc(e,f,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:r,height:n}=g.current.getBoundingClientRect();return O(r,n),t.observe(g.current),()=>{t.disconnect()}},[O,f]);var{containerWidth:E,containerHeight:j}=x;lc(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:S,calculatedHeight:P}=cc(E,j,{width:o,height:l,aspect:n,maxHeight:u});return lc(null!=S&&S>0||null!=P&&P>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.",S,P,o,l,s,c,n),y.createElement("div",{id:p?"".concat(p):void 0,className:a.clsx("recharts-responsive-container",h),style:mc(mc({},m),{},{width:o,height:l,minWidth:s,minHeight:c,maxHeight:u}),ref:g},y.createElement("div",{style:hc({width:o,height:l})},y.createElement(xc,{width:S,height:P},d)))}),Ec=t.forwardRef((e,t)=>{var r=wc();if(fs(r.width)&&fs(r.height))return e.children;var{width:n,height:i}=function(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return void 0===i&&void 0===a?(i=sc.width,a=sc.height):void 0===i?i=n&&n>0?void 0:sc.width:void 0===a&&(a=n&&n>0?void 0:sc.height),{width:i,height:a}}({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=cc(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return ur(a)&&ur(o)?y.createElement(xc,{width:a,height:o},e.children):y.createElement(Oc,vc({},e,{width:n,height:i,ref:t}))});function jc(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 Sc=()=>{var e,t=Xs(),r=Li(qs),n=Li(Js),i=null===(e=Li(Zs))||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},Pc={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},kc=()=>{var e;return null!==(e=Li(Hs))&&void 0!==e?e:Pc},Ac=()=>Li(Ms),_c=()=>Li(Ts),Nc=e=>e.layout.layoutType,Mc=()=>Li(Nc),Tc=()=>{var e=Mc();if("horizontal"===e||"vertical"===e)return e},Ic=e=>{var t=e.layout.layoutType;if("centric"===t||"radial"===t)return t},Dc=e=>{var r=Ii(),n=Xs(),{width:i,height:a}=e,o=wc(),l=i,s=a;return o&&(l=o.width>0?o.width:i,s=o.height>0?o.height:a),t.useEffect(()=>{!n&&fs(l)&&fs(s)&&r(ls({width:l,height:s}))},[r,n,l,s]),null},Cc=Symbol.for("immer-nothing"),zc=Symbol.for("immer-draftable"),Lc=Symbol.for("immer-state"),Rc="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 Bc(e,...t){if("production"!==process.env.NODE_ENV){const r=Rc[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 Vc=Object.getPrototypeOf;function Kc(e){return!!e&&!!e[Lc]}function $c(e){return!!e&&(Wc(e)||Array.isArray(e)||!!e[zc]||!!e.constructor?.[zc]||Xc(e)||Zc(e))}var Fc=Object.prototype.constructor.toString(),Uc=new WeakMap;function Wc(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=Uc.get(r);return void 0===n&&(n=Function.toString.call(r),Uc.set(r,n)),n===Fc}function Hc(e,t,r=!0){if(0===qc(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 qc(e){const t=e[Lc];return t?t.type_:Array.isArray(e)?1:Xc(e)?2:Zc(e)?3:0}function Yc(e,t){return 2===qc(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Gc(e,t,r){const n=qc(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function Xc(e){return e instanceof Map}function Zc(e){return e instanceof Set}function Jc(e){return e.copy_||e.base_}function Qc(e,t){if(Xc(e))return new Map(e);if(Zc(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Wc(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[Lc];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(Vc(e),t)}{const t=Vc(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function eu(e,t=!1){return ru(e)||Kc(e)||!$c(e)||(qc(e)>1&&Object.defineProperties(e,{set:tu,add:tu,clear:tu,delete:tu}),Object.freeze(e),t&&Object.values(e).forEach(e=>eu(e,!0))),e}var tu={value:function(){Bc(2)}};function ru(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var nu,iu={};function au(e){const t=iu[e];return t||Bc(0,e),t}function ou(){return nu}function lu(e,t){t&&(au("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function su(e){cu(e),e.drafts_.forEach(du),e.drafts_=null}function cu(e){e===nu&&(nu=e.parent_)}function uu(e){return nu={drafts_:[],parent_:nu,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function du(e){const t=e[Lc];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function fu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[Lc].modified_&&(su(t),Bc(4)),$c(e)&&(e=pu(t,e),t.parent_||vu(t,e)),t.patches_&&au("Patches").generateReplacementPatches_(r[Lc].base_,e,t.patches_,t.inversePatches_)):e=pu(t,r,[]),su(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Cc?e:void 0}function pu(e,t,r){if(ru(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Lc];if(!i)return Hc(t,(n,a)=>hu(e,i,t,n,a,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return vu(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),Hc(a,(n,a)=>hu(e,i,t,n,a,r,o),n),vu(e,t,!1),r&&e.patches_&&au("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function hu(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&&Bc(5),Kc(i)){const o=pu(e,i,a&&t&&3!==t.type_&&!Yc(t.assigned_,n)?a.concat(n):void 0);if(Gc(r,n,o),!Kc(o))return;e.canAutoFreeze_=!1}else o&&r.add(i);if($c(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[n]===i&&l)return;pu(e,i),t&&t.scope_.parent_||"symbol"==typeof n||!(Xc(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))||vu(e,i)}}}function vu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&eu(t,r)}var yu={get(e,t){if(t===Lc)return e;const r=Jc(e);if(!Yc(r,t))return function(e,t,r){const n=bu(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_||!$c(n)?n:n===gu(e.base_,t)?(wu(e),e.copy_[t]=Ou(n,e)):n},has:(e,t)=>t in Jc(e),ownKeys:e=>Reflect.ownKeys(Jc(e)),set(e,t,r){const n=bu(Jc(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=gu(Jc(e),t),i=n?.[Lc];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||Yc(e.base_,t)))return!0;wu(e),xu(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!==gu(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,wu(e),xu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=Jc(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){Bc(11)},getPrototypeOf:e=>Vc(e.base_),setPrototypeOf(){Bc(12)}},mu={};function gu(e,t){const r=e[Lc];return(r?Jc(r):e)[t]}function bu(e,t){if(!(t in e))return;let r=Vc(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Vc(r)}}function xu(e){e.modified_||(e.modified_=!0,e.parent_&&xu(e.parent_))}function wu(e){e.copy_||(e.copy_=Qc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Hc(yu,(e,t)=>{mu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),mu.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&Bc(13),mu.set.call(this,e,t,void 0)},mu.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&Bc(14),yu.set.call(this,e[0],t,r,e[0])};function Ou(e,t){const r=Xc(e)?au("MapSet").proxyMap_(e,t):Zc(e)?au("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:ou(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=yu;r&&(i=[n],a=mu);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,l}(e,t);return(t?t.scope_:ou()).drafts_.push(r),r}function Eu(e){if(!$c(e)||ru(e))return e;const t=e[Lc];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Qc(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Qc(e,!0);return Hc(r,(e,t)=>{Gc(r,e,Eu(t))},n),t&&(t.finalized_=!1),r}var ju=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&&Bc(6),void 0!==r&&"function"!=typeof r&&Bc(7),$c(e)){const i=uu(this),a=Ou(e,void 0);let o=!0;try{n=t(a),o=!1}finally{o?su(i):cu(i)}return lu(i,r),fu(n,i)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===Cc&&(n=void 0),this.autoFreeze_&&eu(n,!0),r){const t=[],i=[];au("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}Bc(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){$c(e)||Bc(8),Kc(e)&&(e=function(e){Kc(e)||Bc(10,e);return Eu(e)}(e));const t=uu(this),r=Ou(e,void 0);return r[Lc].isManual_=!0,cu(t),r}finishDraft(e,t){const r=e&&e[Lc];r&&r.isManual_||Bc(9);const{scope_:n}=r;return lu(n,t),fu(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=au("Patches").applyPatches_;return Kc(e)?n(e,t):this.produce(e,e=>n(e,t))}};ju.produce;var Su,Pu=jl({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:hl()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Uo(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:hl()},removeLegendPayload:{reducer(e,t){var r=Uo(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:hl()}}}),{setLegendSize:ku,setLegendSettings:Au,addLegendPayload:_u,replaceLegendPayload:Nu,removeLegendPayload:Mu}=Pu.actions,Tu=Pu.reducer,Iu={exports:{}},Du={};var Cu,zu,Lu={};
28
+ */var Ni=(ki||(ki=1,"production"===process.env.NODE_ENV?gi.exports=function(){if(ji)return bi;ji=1;var e=t,r=Pi(),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=e.useRef,o=e.useEffect,l=e.useMemo,s=e.useDebugValue;return bi.useSyncExternalStoreWithSelector=function(e,t,r,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,n(i,e))return t;var r=c(e);return void 0!==u&&u(t,r)?(i=e,t):(i=e,a=r)}var i,a,o=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,c,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),s(p),p},bi}():gi.exports=(Ai||(Ai=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=t,r=Pi(),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,a=e.useRef,o=e.useEffect,l=e.useMemo,s=e.useDebugValue;_i.useSyncExternalStoreWithSelector=function(e,t,r,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,n(i,e))return t;var r=c(e);return void 0!==u&&u(t,r)?(i=e,t):(i=e,a=r)}var i,a,o=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,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())}()),_i)),gi.exports),Mi=t.createContext(null),Ti=e=>e,Ii=()=>{var e=t.useContext(Mi);return e?e.store.dispatch:Ti},Di=()=>{},Ci=()=>Di,zi=(e,t)=>e===t;function Li(e){var r=t.useContext(Mi),n=t.useMemo(()=>r?t=>{if(null!=t)return e(t)}:Di,[r,e]);return Ni.useSyncExternalStoreWithSelector(r?r.subscription.addNestedSub:Ci,r?r.store.getState:Di,r?r.store.getState:Di,n,zi)}var Ri=(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})}}},Bi=(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})}},Vi={inputStabilityCheck:"once",identityFunctionCheck:"once"};var Ki=e=>Array.isArray(e)?e:[e];function $i(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 Fi(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Ui="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function Wi(){return{s:0,v:void 0,o:null,p:null}}function Hi(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=Wi(),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=Wi(),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 Ui(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 qi(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=Hi,argsMemoizeOptions:d=[],devModeChecks:f={}}=l,p=Ki(c),h=Ki(d),y=$i(e),v=s(function(){return n++,o.apply(null,arguments)},...p);let m=!0;const g=u(function(){i++;const e=Fi(y,arguments);if(t=v.apply(null,e),"production"!==process.env.NODE_ENV){const{identityFunctionCheck:r,inputStabilityCheck:n}=((e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...Vi,...t};return{identityFunctionCheck:{shouldRun:"always"===r||"once"===r&&e,run:Ri},inputStabilityCheck:{shouldRun:"always"===n||"once"===n&&e,run:Bi}}})(m,f);if(r.shouldRun&&r.run(o,e,t),n.shouldRun){const t=Fi(y,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:v,dependencies:y,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:s,argsMemoize:u})};return Object.assign(n,{withTypes:()=>n}),n}var Yi,Gi=qi(Hi),Xi=Object.assign((e,t=Gi)=>{!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:()=>Xi}),Zi={},Ji={},Qi={};function ea(){return Yi||(Yi=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}}(Qi)),Qi}var ta,ra,na,ia={},aa={};function oa(){return ta||(ta=1,e=aa,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),e.isSymbol=function(e){return"symbol"==typeof e||e instanceof Symbol}),aa;var e}function la(){return ra||(ra=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oa(),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)))}}(ia)),ia}function sa(){return na||(na=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ea(),r=la(),n=tr();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)}}(Ji)),Ji}var ca,ua={};function da(){return ca||(ca=1,e=ua,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}),ua;var e}var fa,pa,ha,ya,va={};function ma(){return fa||(fa=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ti(),r=Jr(),n=hn(),i=On();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))}}(va)),va}function ga(){return pa||(pa=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sa(),r=da(),n=ma();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"])}}(Zi)),Zi}function ba(){return ya?ha:(ya=1,ha=ga().sortBy)}var xa=zt(ba()),wa=e=>e.legend.settings;Gi([e=>e.legend.payload,wa],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?xa(n,r):n});function Oa(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 Ea=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),ja=()=>Math.random().toString(36).substring(7).split("").join("."),Sa={INIT:`@@redux/INIT${ja()}`,REPLACE:`@@redux/REPLACE${ja()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ja()}`};function Pa(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 Aa(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 ka(e){let t=typeof e;return"production"!==process.env.NODE_ENV&&(t=Aa(e)),t}function _a(e,t,r){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Oa(2):`Expected the root reducer to be a function. Instead, received: '${ka(e)}'`);if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("production"===process.env.NODE_ENV?Oa(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?Oa(1):`Expected the enhancer to be a function. Instead, received: '${ka(r)}'`);return r(_a)(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?Oa(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?Oa(4):`Expected the listener to be a function. Instead, received: '${ka(e)}'`);if(s)throw new Error("production"===process.env.NODE_ENV?Oa(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?Oa(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(!Pa(e))throw new Error("production"===process.env.NODE_ENV?Oa(7):`Actions must be plain objects. Instead, the actual type was: '${ka(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?Oa(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?Oa(17):`Action "type" property must be a string. Instead, the actual type was: '${ka(e.type)}'. Value was: '${e.type}' (stringified)`);if(s)throw new Error("production"===process.env.NODE_ENV?Oa(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:Sa.INIT});return{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error("production"===process.env.NODE_ENV?Oa(10):`Expected the nextReducer to be a function. Instead, received: '${ka(e)}`);n=e,f({type:Sa.REPLACE})},[Ea]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error("production"===process.env.NODE_ENV?Oa(11):`Expected the observer to be an object. Instead, received: '${ka(t)}'`);function r(){const e=t;e.next&&e.next(u())}r();return{unsubscribe:e(r)}},[Ea](){return this}}}}}function Na(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e);try{throw new Error(e)}catch(e){}}function Ma(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]&&Na(`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:Sa.INIT}))throw new Error("production"===process.env.NODE_ENV?Oa(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:Sa.PROBE_UNKNOWN_ACTION()}))throw new Error("production"===process.env.NODE_ENV?Oa(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${Sa.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===Sa.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(!Pa(e))return`The ${a} has unexpected type of "${ka(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===Sa.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&&Na(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?Oa(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 Ta(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function Ia(e){return Pa(e)&&"type"in e&&"string"==typeof e.type}var Da=Symbol.for("immer-nothing"),Ca=Symbol.for("immer-draftable"),za=Symbol.for("immer-state"),La="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 Ra(e,...t){if("production"!==process.env.NODE_ENV){const r=La[e],n=lo(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 Ba=Object,Va=Ba.getPrototypeOf,Ka="constructor",$a="prototype",Fa="configurable",Ua="enumerable",Wa="writable",Ha="value",qa=e=>!!e&&!!e[za];function Ya(e){return!!e&&(Za(e)||no(e)||!!e[Ca]||!!e[Ka]?.[Ca]||io(e)||ao(e))}var Ga=Ba[$a][Ka].toString(),Xa=new WeakMap;function Za(e){if(!e||!oo(e))return!1;const t=Va(e);if(null===t||t===Ba[$a])return!0;const r=Ba.hasOwnProperty.call(t,Ka)&&t[Ka];if(r===Object)return!0;if(!lo(r))return!1;let n=Xa.get(r);return void 0===n&&(n=Function.toString.call(r),Xa.set(r,n)),n===Ga}function Ja(e,t,r=!0){if(0===Qa(e)){(r?Reflect.ownKeys(e):Ba.keys(e)).forEach(r=>{t(r,e[r],e)})}else e.forEach((r,n)=>t(n,r,e))}function Qa(e){const t=e[za];return t?t.type_:no(e)?1:io(e)?2:ao(e)?3:0}var eo=(e,t,r=Qa(e))=>2===r?e.has(t):Ba[$a].hasOwnProperty.call(e,t),to=(e,t,r=Qa(e))=>2===r?e.get(t):e[t],ro=(e,t,r,n=Qa(e))=>{2===n?e.set(t,r):3===n?e.add(r):e[t]=r};var no=Array.isArray,io=e=>e instanceof Map,ao=e=>e instanceof Set,oo=e=>"object"==typeof e,lo=e=>"function"==typeof e,so=e=>"boolean"==typeof e;var co=e=>e.copy_||e.base_,uo=e=>e.modified_?e.copy_:e.base_;function fo(e,t){if(io(e))return new Map(e);if(ao(e))return new Set(e);if(no(e))return Array[$a].slice.call(e);const r=Za(e);if(!0===t||"class_only"===t&&!r){const t=Ba.getOwnPropertyDescriptors(e);delete t[za];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const i=r[n],a=t[i];!1===a[Wa]&&(a[Wa]=!0,a[Fa]=!0),(a.get||a.set)&&(t[i]={[Fa]:!0,[Wa]:!0,[Ua]:a[Ua],[Ha]:e[i]})}return Ba.create(Va(e),t)}{const t=Va(e);if(null!==t&&r)return{...e};const n=Ba.create(t);return Ba.assign(n,e)}}function po(e,t=!1){return yo(e)||qa(e)||!Ya(e)||(Qa(e)>1&&Ba.defineProperties(e,{set:ho,add:ho,clear:ho,delete:ho}),Ba.freeze(e),t&&Ja(e,(e,t)=>{po(t,!0)},!1)),e}var ho={[Ha]:function(){Ra(2)}};function yo(e){return null===e||!oo(e)||Ba.isFrozen(e)}var vo="MapSet",mo="Patches",go="ArrayMethods",bo={};function xo(e){const t=bo[e];return t||Ra(0,e),t}var wo,Oo=e=>!!bo[e],Eo=()=>wo;function jo(e,t){t&&(e.patchPlugin_=xo(mo),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function So(e){Po(e),e.drafts_.forEach(ko),e.drafts_=null}function Po(e){e===wo&&(wo=e.parent_)}var Ao=e=>wo={drafts_:[],parent_:wo,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Oo(vo)?xo(vo):void 0,arrayMethodsPlugin_:Oo(go)?xo(go):void 0};function ko(e){const t=e[za];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function _o(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(void 0!==e&&e!==r){r[za].modified_&&(So(t),Ra(4)),Ya(e)&&(e=No(t,e));const{patchPlugin_:n}=t;n&&n.generateReplacementPatches_(r[za].base_,e,t)}else e=No(t,r);return function(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&po(t,r)}(t,e,!0),So(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Da?e:void 0}function No(e,t){if(yo(t))return t;const r=t[za];if(!r){return zo(t,e.handledSet_,e)}if(!To(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)}Co(r,e)}return r.copy_}function Mo(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var To=(e,t)=>e.scope_===t,Io=[];function Do(e,t,r,n){const i=co(e),a=e.type_;if(void 0!==n){if(to(i,n,a)===t)return void ro(i,n,r,a)}if(!e.draftLocations_){const t=e.draftLocations_=new Map;Ja(i,(e,r)=>{if(qa(r)){const n=t.get(r)||[];n.push(e),t.set(r,n)}})}const o=e.draftLocations_.get(t)??Io;for(const e of o)ro(i,e,r,a)}function Co(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)}Mo(e)}}function zo(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||qa(e)||t.has(e)||!Ya(e)||yo(e)||(t.add(e),Ja(e,(n,i)=>{if(qa(i)){const t=i[za];if(To(t,r)){const r=uo(t);ro(e,n,r,e.type_),Mo(t)}}else Ya(i)&&zo(i,t,r)})),e}var Lo={get(e,t){if(t===za)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=co(e);if(!eo(i,t,e.type_))return function(e,t,r){const n=Vo(t,r);return n?Ha in n?n[Ha]:n.get?.call(e.draft_):void 0}(e,i,t);const a=i[t];if(e.finalized_||!Ya(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===Bo(e.base_,t)){$o(e);const r=1===e.type_?+t:t,n=Fo(e.scope_,a,e,r);return e.copy_[r]=n}return a},has:(e,t)=>t in co(e),ownKeys:e=>Reflect.ownKeys(co(e)),set(e,t,r){const n=Vo(co(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=Bo(co(e),t),i=n?.[za];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||eo(e.base_,t,e.type_)))return!0;$o(e),Ko(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(qa(r)){const i=r[za];To(i,n)&&i.callbacks_.push(function(){$o(e);const n=uo(i);Do(e,r,n,t)})}else Ya(r)&&e.callbacks_.push(function(){const i=co(e);3===e.type_?i.has(r)&&zo(r,n.handledSet_,n):to(i,t,e.type_)===r&&n.drafts_.length>1&&!0===(e.assigned_.get(t)??!1)&&e.copy_&&zo(to(e.copy_,t,e.type_),n.handledSet_,n)})}(e,t,r)),!0},deleteProperty:(e,t)=>($o(e),void 0!==Bo(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),Ko(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=co(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{[Wa]:!0,[Fa]:1!==e.type_||"length"!==t,[Ua]:n[Ua],[Ha]:r[t]}:n},defineProperty(){Ra(11)},getPrototypeOf:e=>Va(e.base_),setPrototypeOf(){Ra(12)}},Ro={};for(let e in Lo){let t=Lo[e];Ro[e]=function(){const e=arguments;return e[0]=e[0][0],t.apply(this,e)}}function Bo(e,t){const r=e[za];return(r?co(r):e)[t]}function Vo(e,t){if(!(t in e))return;let r=Va(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Va(r)}}function Ko(e){e.modified_||(e.modified_=!0,e.parent_&&Ko(e.parent_))}function $o(e){e.copy_||(e.assigned_=new Map,e.copy_=fo(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Ro.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&Ra(13),Ro.set.call(this,e,t,void 0)},Ro.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&Ra(14),Lo.set.call(this,e[0],t,r,e[0])};function Fo(e,t,r,n){const[i,a]=io(t)?xo(vo).proxyMap_(t,r):ao(t)?xo(vo).proxySet_(t,r):function(e,t){const r=no(e),n={type_:r?1:0,scope_:t?t.scope_:Eo(),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=Lo;r&&(i=[n],a=Ro);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,[l,n]}(t,r);return(r?.scope_??Eo()).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||!To(i,n))return;n.mapSetPlugin_?.fixSetContents(i);const a=uo(i);Do(e,i.draft_??i,a,r),Co(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 Uo(e){return qa(e)||Ra(10,e),Wo(e)}function Wo(e){if(!Ya(e)||yo(e))return e;const t=e[za];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=fo(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=fo(e,!0);return Ja(r,(e,t)=>{ro(r,e,Wo(t))},n),t&&(t.finalized_=!1),r}var Ho=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,r)=>{if(lo(e)&&!lo(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(lo(t)||Ra(6),void 0===r||lo(r)||Ra(7),Ya(e)){const i=Ao(this),a=Fo(i,e,void 0);let o=!0;try{n=t(a),o=!1}finally{o?So(i):Po(i)}return jo(i,r),_o(n,i)}if(!e||!oo(e)){if(n=t(e),void 0===n&&(n=e),n===Da&&(n=void 0),this.autoFreeze_&&po(n,!0),r){const t=[],i=[];xo(mo).generateReplacementPatches_(e,n,{patches_:t,inversePatches_:i}),r(t,i)}return n}Ra(1,e)},this.produceWithPatches=(e,t)=>{if(lo(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]},so(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),so(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),so(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ya(e)||Ra(8),qa(e)&&(e=Uo(e));const t=Ao(this),r=Fo(t,e,void 0);return r[za].isManual_=!0,Po(t),r}finishDraft(e,t){const r=e&&e[za];r&&r.isManual_||Ra(9);const{scope_:n}=r;return jo(n,t),_o(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=xo(mo).applyPatches_;return qa(e)?n(e,t):this.produce(e,e=>n(e,t))}},qo=Ho.produce;function Yo(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var Go=Yo(),Xo=Yo,Zo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?Ta:Ta.apply(null,arguments)};function Jo(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error("production"===process.env.NODE_ENV?ns(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=>Ia(t)&&t.type===e,r}function Qo(e){return"function"==typeof e&&"type"in e&&((t=e)&&"function"==typeof t.match);var t}function el(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 tl=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 Ya(e)?qo(e,()=>{}):e}function nl(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function il(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function al(e,t,r){const n=ol(e,t,r);return{detectMutations:()=>ll(e,t,n,r)}}function ol(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]=ol(e,t,r[i],l)}}return a}function ll(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=ll(e,t,r.children[i],n[i],l,o);if(s.wasMutated)return s}return{wasMutated:!1}}function sl(e){const t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||Pa(e)}function cl(e,t="",r=sl,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=cl(c,l,r,n,i,a),o))return o}return a&&ul(e)&&a.add(e),!1}function ul(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if("object"==typeof t&&null!==t&&!ul(t))return!1;return!0}function dl(e){return"boolean"==typeof e}var fl=()=>function(e){const{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{};let a=new tl;if(t&&(dl(t)?a.push(Go):a.push(Xo(t.extraArgument))),"production"!==process.env.NODE_ENV){if(r){let e={};dl(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=il,ignoredPaths:i,warnAfter:a=32}=e;const o=al.bind(null,n,i);return({getState:e})=>{let r,n=e(),i=o(n);return l=>s=>{const c=el(a,"ImmutableStateInvariantMiddleware");c.measureTime(()=>{if(n=e(),r=i.detectMutations(),i=o(n),r.wasMutated)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(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={};dl(n)||(e=n),a.push(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);{const{isSerializable:t=sl,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(!Ia(d))return c(d);const f=c(d),p=el(o,"SerializableStateInvariantMiddleware");return s||n.length&&-1!==n.indexOf(d.type)||p.measureTime(()=>{const e=cl(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=cl(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={};dl(i)||(e=i),a.unshift(function(e={}){if("production"===process.env.NODE_ENV)return()=>e=>t=>e(t);const{isActionCreator:t=Qo}=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},pl="RTK_autoBatch",hl=()=>e=>({payload:e,meta:{[pl]:!0}}),yl=e=>t=>{setTimeout(t,e)},vl=(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:yl(10):"callback"===e.type?e.queueNotification:yl(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?.[pl],a=!i,a&&(o||(o=!0,s(c))),n.dispatch(e)}finally{i=!0}}})};function ml(e){const t=fl(),{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(!Pa(r))throw new Error("production"===process.env.NODE_ENV?ns(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");s=Ma(r)}if("production"!==process.env.NODE_ENV&&n&&"function"!=typeof n)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(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?ns(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?ns(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");e.add(t)})}let u=Ta;i&&(u=Zo({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?Oa(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=Ta(...l)(i.dispatch),{...i,dispatch:a}}}(...c),f=(e=>function(t){const{autoBatch:r=!0}=t??{};let n=new tl(e);return r&&n.push(vl("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?ns(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?ns(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?ns(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 _a(s,o,u(...p))}function gl(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?ns(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(n)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(28):"`builder.addCase` cannot be called with an empty action type");if(o in t)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(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?ns(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?ns(31):"`builder.addDefaultCase` can only be called once");return n=e,i}};return e(i),[t,r,n]}var bl=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},xl=Symbol.for("rtk-slice-createasyncthunk");function wl(e,t){return`${e}/${t}`}function Ol({creators:e}={}){const t=e?.asyncThunk?.[xl];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(12):"`context.addCase` cannot be called with an empty action type");if(r in o.sliceCaseReducersByType)throw new Error("production"===process.env.NODE_ENV?ns(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?ns(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?gl(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?ns(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]=gl(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(qa(e)){const n=r(e,t);return void 0===n?e:n}if(Ya(e))return qo(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:wl(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?ns(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?Jo(e,o):Jo(e))}(o,a,l):function({type:e,reducerName:t},r,n,i){if(!i)throw new Error("production"===process.env.NODE_ENV?ns(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||Sl,pending:l||Sl,rejected:s||Sl,settled:c||Sl})}(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 y(t,r=!1){function n(e){let i=e[t];if(void 0===i)if(r)i=nl(d,n,h);else if("production"!==process.env.NODE_ENV)throw new Error("production"===process.env.NODE_ENV?ns(15):"selectSlice returned undefined for an uninjected slice reducer");return i}function i(t=c){const n=nl(u,r,()=>new WeakMap);return nl(n,t,()=>{const n={};for(const[i,a]of Object.entries(e.selectors??{}))n[i]=El(a,t,()=>nl(d,t,h),r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}const v={name:r,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:h,...y(n),injectInto(e,{reducerPath:t,...r}={}){const i=t??n;return e.inject({reducerPath:i,reducer:p},r),{...v,...y(i,!0)}}};return v}}function El(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?ns(16):"selectState returned undefined for an uninjected slice reducer");return e(o,...a)}return i.unwrapped=e,i}var jl=Ol();function Sl(){}var Pl="listener",Al="completed",kl="cancelled",_l=`task-${kl}`,Nl=`task-${Al}`,Ml=`${Pl}-${kl}`,Tl=`${Pl}-${Al}`,Il=class{constructor(e){this.code=e,this.message=`task ${kl} (reason: ${e})`}name="TaskAbortError";message},Dl=(e,t)=>{if("function"!=typeof e)throw new TypeError("production"===process.env.NODE_ENV?ns(32):`${t} is not a function`)},Cl=()=>{},zl=(e,t=Cl)=>(e.catch(t),e),Ll=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Rl=e=>{if(e.aborted)throw new Il(e.reason)};function Bl(e,t){let r=Cl;return new Promise((n,i)=>{const a=()=>i(new Il(e.reason));e.aborted?a():(r=Ll(e,a),t.finally(()=>r()).then(n,i))}).finally(()=>{r=Cl})}var Vl=e=>t=>zl(Bl(e,t).then(t=>(Rl(e),t))),Kl=e=>{const t=Vl(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:$l}=Object,Fl={},Ul="listenerMiddleware",Wl=(e,t)=>(r,n)=>{Dl(r,"taskExecutor");const i=new AbortController;var a;a=i,Ll(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 Il?"cancelled":"rejected",error:e}}finally{t?.()}})(async()=>{Rl(e),Rl(i.signal);const t=await r({pause:Vl(i.signal),delay:Kl(i.signal),signal:i.signal});return Rl(i.signal),t},()=>i.abort(Nl));return n?.autoJoin&&t.push(o.catch(Cl)),{result:Vl(e)(o),cancel(){i.abort(_l)}}},Hl=(e,t)=>(r,n)=>zl((async(r,n)=>{Rl(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 Bl(t,Promise.race(a));return Rl(t),e}finally{i()}})(r,n)),ql=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Jo(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?ns(21):"Creating or removing a listener requires one of the known fields for matching an action");return Dl(a,"options.listener"),{predicate:i,type:t,effect:a}},Yl=$l(e=>{const{type:t,predicate:r,effect:n}=ql(e);return{id:bl(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error("production"===process.env.NODE_ENV?ns(22):"Unsubscribe not initialized")}}},{withTypes:()=>Yl}),Gl=(e,t)=>{const{type:r,effect:n,predicate:i}=ql(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===i)&&e.effect===n)},Xl=e=>{e.pending.forEach(e=>{e.abort(Ml)})},Zl=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},Jl=$l(Jo(`${Ul}/add`),{withTypes:()=>Jl}),Ql=Jo(`${Ul}/removeAll`),es=$l(Jo(`${Ul}/remove`),{withTypes:()=>es}),ts=(...e)=>{console.error(`${Ul}/error`,...e)},rs=(e={})=>{const t=new Map,r=new Map,{extra:n,onError:i=ts}=e;Dl(i,"onError");const a=e=>(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Xl(e)}))(Gl(t,e)??Yl(e));$l(a,{withTypes:()=>a});const o=e=>{const r=Gl(t,e);return r&&(r.unsubscribe(),e.cancelActive&&Xl(r)),!!r};$l(o,{withTypes:()=>o});const l=async(e,o,l,s)=>{const c=new AbortController,u=Hl(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,$l({},l,{getOriginalState:s,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:Kl(c.signal),pause:Vl(c.signal),extra:n,signal:c.signal,fork:Wl(c.signal,d),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==c&&(e.abort(Ml),r.delete(e))})},cancel:()=>{c.abort(Ml),e.pending.delete(c)},throwIfCancelled:()=>{Rl(c.signal)}})))}catch(e){e instanceof Il||Zl(i,e,{raisedBy:"effect"})}finally{await Promise.all(d),c.abort(Tl),(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())Xl(e);e.clear()})(t,r);return{middleware:e=>r=>n=>{if(!Ia(n))return r(n);if(Jl.match(n))return a(n.payload);if(Ql.match(n))return void s();if(es.match(n))return o(n.payload);let c=e.getState();const u=()=>{if(c===Fl)throw new Error("production"===process.env.NODE_ENV?ns(23):`${Ul}: 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,Zl(i,e,{raisedBy:"predicate"})}a&&l(t,n,e,u)}}}finally{c=Fl}return d},startListening:a,stopListening:o,clearListeners:s}};function ns(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 is=jl({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:as,setLayout:os,setChartSize:ls,setScale:ss}=is.actions,cs=is.reducer;function us(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function ds(e){return Number.isFinite(e)}function fs(e){return"number"==typeof e&&e>0&&Number.isFinite(e)}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 hs(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){ys(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 ys(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 vs(e,t,r){return gr(e)||gr(t)?r:dr(t)?ir(e,t,r):"function"==typeof t?t(e):r}var ms=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,gs=(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},bs=(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,y="category"===i&&o.bandwidth?o.bandwidth()/h:0;return y="angleAxis"===p&&a&&a.length>=2?2*lr(a[0]-a[1])*y:y,d||f?(d||f||[]).map((e,t)=>{var r=n?n.indexOf(e):e,i=o.map(r);return ds(i)?{coordinate:i+y,value:e,offset:y,index:t}:null}).filter(xr):s&&c?c.map((e,t)=>{var r=o.map(e);return ds(r)?{coordinate:r+y,value:e,index:t,offset:y}:null}).filter(xr):o.ticks&&null!=u?o.ticks(u).map((e,t)=>{var r=o.map(e);return ds(r)?{coordinate:r+y,value:e,index:t,offset:y}:null}).filter(xr):o.domain().map((e,t)=>{var r=o.map(e);return ds(r)?{coordinate:r+y,value:n?n[e]:e,index:t,offset:y}:null}).filter(xr)},xs={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=sr(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}Tt(e,t)}},none:Tt,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}Tt(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,Tt(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=sr(s[1])?s[0]:s[1];c>=0?(s[0]=a,a+=c,s[1]=a):(s[0]=0,s[1]=0)}}}}},ws=(e,t,r)=>{var n,i=null!==(n=xs[r])&&void 0!==n?n:Tt,a=function(){var e=Te([]),t=It,r=Tt,n=Dt;function i(i){var a,o,l=Array.from(e.apply(this,arguments),Ct),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=We(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:Te(Array.from(t)),i):e},i.value=function(e){return arguments.length?(n="function"==typeof e?e:Te(+e),i):n},i.order=function(e){return arguments.length?(t=null==e?It:"function"==typeof e?e:Te(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(r=null==e?Tt:e,i):r},i}().keys(t).value((e,t)=>Number(vs(e,t,0))).order(It).offset(i),o=a(e);return o.forEach((r,n)=>{r.forEach((r,i)=>{var a=vs(e[i],t[n],0);Array.isArray(a)&&2===a.length&&ur(a[0])&&ur(a[1])&&(r[0]=a[0],r[1]=a[1])})}),o};function Os(e){return null==e?void 0:String(e)}function Es(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!gr(i[t.dataKey])){var l=mr(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=vs(i,gr(o)?t.dataKey:o),c=t.scale.map(s);return ur(c)?c:null}var js=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=vs(a,t.dataKey,t.scale.domain()[o]);if(gr(l))return null;var s=t.scale.map(l);return ur(s)?s-i/2+n:null},Ss=(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=us(n,t,r),o=(i=a.flat(2).filter(ur),[Math.min(...i),Math.max(...i)]);return ds(o[0])&&ds(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]]},Ps=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,As=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ks=(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=xa(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 _s(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return hs(hs({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Ns(e,t){return e?String(e):"string"==typeof t?t:void 0}var Ms=e=>e.layout.width,Ts=e=>e.layout.height,Is=e=>e.layout.scale,Ds=e=>e.layout.margin,Cs=Gi(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),zs=Gi(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Ls="data-recharts-item-id";function Rs(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 Bs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rs(Object(r),!0).forEach(function(t){Vs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Vs(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 Ks,$s,Fs,Us,Ws,Hs=Gi([Ms,Ts,Ds,e=>e.brush.height,function(e){return zs(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return zs(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return Cs(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return Cs(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},wa,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=Bs(Bs({},{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&&ur(e[a]))return hs(hs({},e),{},{[a]:e[a]+(n||0)});if(("horizontal"===l||"vertical"===l&&"center"===a)&&"middle"!==o&&ur(e[o]))return hs(hs({},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 Bs(Bs({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(h,0)})}),qs=Gi(Hs,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Ys=Gi(Ms,Ts,(e,t)=>({x:0,y:0,width:e,height:t})),Gs=t.createContext(null),Xs=()=>null!=t.useContext(Gs),Zs=e=>e.brush,Js=Gi([Zs,Hs,Ds],(e,t,r)=>({height:e.height,x:ur(e.x)?e.x:t.left,y:ur(e.y)?e.y:t.top+t.height+t.brushBottom-((null==r?void 0:r.bottom)||0),width:ur(e.width)?e.width:t.width})),Qs={},ec={},tc={};function rc(){return Ks||(Ks=1,e=tc,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}),tc;var e}function nc(){return $s||($s=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}}(ec)),ec}function ic(){return Fs||(Fs=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nc();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})}}(Qs)),Qs}function ac(){return Ws?Us:(Ws=1,Us=ic().throttle)}var oc=zt(ac()),lc=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++]))}},sc={width:"100%",height:"100%",debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},cc=(e,t,r)=>{var{width:n=sc.width,height:i=sc.height,aspect:a,maxHeight:o}=r,l=cr(n)?e:Number(n),s=cr(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}},uc={width:0,height:0,overflow:"visible"},dc={width:0,overflowX:"visible"},fc={height:0,overflowY:"visible"},pc={},hc=e=>{var{width:t,height:r}=e,n=cr(t),i=cr(r);return n&&i?uc:n?dc:i?fc:pc};function yc(){return yc=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},yc.apply(null,arguments)}function vc(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 mc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vc(Object(r),!0).forEach(function(t){gc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gc(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 bc=t.createContext(sc.initialDimension);function xc(e){var{children:r,width:n,height:i}=e,a=t.useMemo(()=>({width:n,height:i}),[n,i]);return function(e){return fs(e.width)&&fs(e.height)}(a)?v.createElement(bc.Provider,{value:a},r):null}var wc=()=>t.useContext(bc),Oc=t.forwardRef((e,r)=>{var{aspect:n,initialDimension:i=sc.initialDimension,width:o,height:l,minWidth:s=sc.minWidth,minHeight:c,maxHeight:u,children:d,debounce:f=sc.debounce,id:p,className:h,onResize:y,style:m={}}=e,g=t.useRef(null),b=t.useRef();b.current=y,t.useImperativeHandle(r,()=>g.current);var[x,w]=t.useState({containerWidth:i.width,containerHeight:i.height}),O=t.useCallback((e,t)=>{w(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);t.useEffect(()=>{if(null==g.current||"undefined"==typeof ResizeObserver)return wr;var e=e=>{var t,r=e[0];if(null!=r){var{width:n,height:i}=r.contentRect;O(n,i),null===(t=b.current)||void 0===t||t.call(b,n,i)}};f>0&&(e=oc(e,f,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:r,height:n}=g.current.getBoundingClientRect();return O(r,n),t.observe(g.current),()=>{t.disconnect()}},[O,f]);var{containerWidth:E,containerHeight:j}=x;lc(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:S,calculatedHeight:P}=cc(E,j,{width:o,height:l,aspect:n,maxHeight:u});return lc(null!=S&&S>0||null!=P&&P>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.",S,P,o,l,s,c,n),v.createElement("div",{id:p?"".concat(p):void 0,className:a.clsx("recharts-responsive-container",h),style:mc(mc({},m),{},{width:o,height:l,minWidth:s,minHeight:c,maxHeight:u}),ref:g},v.createElement("div",{style:hc({width:o,height:l})},v.createElement(xc,{width:S,height:P},d)))}),Ec=t.forwardRef((e,t)=>{var r=wc();if(fs(r.width)&&fs(r.height))return e.children;var{width:n,height:i}=function(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return void 0===i&&void 0===a?(i=sc.width,a=sc.height):void 0===i?i=n&&n>0?void 0:sc.width:void 0===a&&(a=n&&n>0?void 0:sc.height),{width:i,height:a}}({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=cc(void 0,void 0,{width:n,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return ur(a)&&ur(o)?v.createElement(xc,{width:a,height:o},e.children):v.createElement(Oc,yc({},e,{width:n,height:i,ref:t}))});function jc(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 Sc=()=>{var e,t=Xs(),r=Li(qs),n=Li(Js),i=null===(e=Li(Zs))||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},Pc={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Ac=()=>{var e;return null!==(e=Li(Hs))&&void 0!==e?e:Pc},kc=()=>Li(Ms),_c=()=>Li(Ts),Nc=e=>e.layout.layoutType,Mc=()=>Li(Nc),Tc=()=>{var e=Mc();if("horizontal"===e||"vertical"===e)return e},Ic=e=>{var t=e.layout.layoutType;if("centric"===t||"radial"===t)return t},Dc=e=>{var r=Ii(),n=Xs(),{width:i,height:a}=e,o=wc(),l=i,s=a;return o&&(l=o.width>0?o.width:i,s=o.height>0?o.height:a),t.useEffect(()=>{!n&&fs(l)&&fs(s)&&r(ls({width:l,height:s}))},[r,n,l,s]),null},Cc=Symbol.for("immer-nothing"),zc=Symbol.for("immer-draftable"),Lc=Symbol.for("immer-state"),Rc="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 Bc(e,...t){if("production"!==process.env.NODE_ENV){const r=Rc[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 Vc=Object.getPrototypeOf;function Kc(e){return!!e&&!!e[Lc]}function $c(e){return!!e&&(Wc(e)||Array.isArray(e)||!!e[zc]||!!e.constructor?.[zc]||Xc(e)||Zc(e))}var Fc=Object.prototype.constructor.toString(),Uc=new WeakMap;function Wc(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=Uc.get(r);return void 0===n&&(n=Function.toString.call(r),Uc.set(r,n)),n===Fc}function Hc(e,t,r=!0){if(0===qc(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 qc(e){const t=e[Lc];return t?t.type_:Array.isArray(e)?1:Xc(e)?2:Zc(e)?3:0}function Yc(e,t){return 2===qc(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Gc(e,t,r){const n=qc(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function Xc(e){return e instanceof Map}function Zc(e){return e instanceof Set}function Jc(e){return e.copy_||e.base_}function Qc(e,t){if(Xc(e))return new Map(e);if(Zc(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Wc(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[Lc];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(Vc(e),t)}{const t=Vc(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function eu(e,t=!1){return ru(e)||Kc(e)||!$c(e)||(qc(e)>1&&Object.defineProperties(e,{set:tu,add:tu,clear:tu,delete:tu}),Object.freeze(e),t&&Object.values(e).forEach(e=>eu(e,!0))),e}var tu={value:function(){Bc(2)}};function ru(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var nu,iu={};function au(e){const t=iu[e];return t||Bc(0,e),t}function ou(){return nu}function lu(e,t){t&&(au("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function su(e){cu(e),e.drafts_.forEach(du),e.drafts_=null}function cu(e){e===nu&&(nu=e.parent_)}function uu(e){return nu={drafts_:[],parent_:nu,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function du(e){const t=e[Lc];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function fu(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[Lc].modified_&&(su(t),Bc(4)),$c(e)&&(e=pu(t,e),t.parent_||yu(t,e)),t.patches_&&au("Patches").generateReplacementPatches_(r[Lc].base_,e,t.patches_,t.inversePatches_)):e=pu(t,r,[]),su(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Cc?e:void 0}function pu(e,t,r){if(ru(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[Lc];if(!i)return Hc(t,(n,a)=>hu(e,i,t,n,a,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return yu(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),Hc(a,(n,a)=>hu(e,i,t,n,a,r,o),n),yu(e,t,!1),r&&e.patches_&&au("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function hu(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&&Bc(5),Kc(i)){const o=pu(e,i,a&&t&&3!==t.type_&&!Yc(t.assigned_,n)?a.concat(n):void 0);if(Gc(r,n,o),!Kc(o))return;e.canAutoFreeze_=!1}else o&&r.add(i);if($c(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[n]===i&&l)return;pu(e,i),t&&t.scope_.parent_||"symbol"==typeof n||!(Xc(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))||yu(e,i)}}}function yu(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&eu(t,r)}var vu={get(e,t){if(t===Lc)return e;const r=Jc(e);if(!Yc(r,t))return function(e,t,r){const n=bu(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_||!$c(n)?n:n===gu(e.base_,t)?(wu(e),e.copy_[t]=Ou(n,e)):n},has:(e,t)=>t in Jc(e),ownKeys:e=>Reflect.ownKeys(Jc(e)),set(e,t,r){const n=bu(Jc(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=gu(Jc(e),t),i=n?.[Lc];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||Yc(e.base_,t)))return!0;wu(e),xu(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!==gu(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,wu(e),xu(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=Jc(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){Bc(11)},getPrototypeOf:e=>Vc(e.base_),setPrototypeOf(){Bc(12)}},mu={};function gu(e,t){const r=e[Lc];return(r?Jc(r):e)[t]}function bu(e,t){if(!(t in e))return;let r=Vc(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Vc(r)}}function xu(e){e.modified_||(e.modified_=!0,e.parent_&&xu(e.parent_))}function wu(e){e.copy_||(e.copy_=Qc(e.base_,e.scope_.immer_.useStrictShallowCopy_))}Hc(vu,(e,t)=>{mu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),mu.deleteProperty=function(e,t){return"production"!==process.env.NODE_ENV&&isNaN(parseInt(t))&&Bc(13),mu.set.call(this,e,t,void 0)},mu.set=function(e,t,r){return"production"!==process.env.NODE_ENV&&"length"!==t&&isNaN(parseInt(t))&&Bc(14),vu.set.call(this,e[0],t,r,e[0])};function Ou(e,t){const r=Xc(e)?au("MapSet").proxyMap_(e,t):Zc(e)?au("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:ou(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=vu;r&&(i=[n],a=mu);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,l}(e,t);return(t?t.scope_:ou()).drafts_.push(r),r}function Eu(e){if(!$c(e)||ru(e))return e;const t=e[Lc];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Qc(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=Qc(e,!0);return Hc(r,(e,t)=>{Gc(r,e,Eu(t))},n),t&&(t.finalized_=!1),r}var ju=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&&Bc(6),void 0!==r&&"function"!=typeof r&&Bc(7),$c(e)){const i=uu(this),a=Ou(e,void 0);let o=!0;try{n=t(a),o=!1}finally{o?su(i):cu(i)}return lu(i,r),fu(n,i)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===Cc&&(n=void 0),this.autoFreeze_&&eu(n,!0),r){const t=[],i=[];au("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}Bc(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){$c(e)||Bc(8),Kc(e)&&(e=function(e){Kc(e)||Bc(10,e);return Eu(e)}(e));const t=uu(this),r=Ou(e,void 0);return r[Lc].isManual_=!0,cu(t),r}finishDraft(e,t){const r=e&&e[Lc];r&&r.isManual_||Bc(9);const{scope_:n}=r;return lu(n,t),fu(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=au("Patches").applyPatches_;return Kc(e)?n(e,t):this.produce(e,e=>n(e,t))}};ju.produce;var Su,Pu=jl({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:hl()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Uo(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:hl()},removeLegendPayload:{reducer(e,t){var r=Uo(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:hl()}}}),{setLegendSize:Au,setLegendSettings:ku,addLegendPayload:_u,replaceLegendPayload:Nu,removeLegendPayload:Mu}=Pu.actions,Tu=Pu.reducer,Iu={exports:{}},Du={};var Cu,zu,Lu={};
29
29
  /**
30
30
  * @license React
31
31
  * use-sync-external-store-with-selector.development.js
@@ -34,7 +34,7 @@
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
- */zu||(zu=1,"production"===process.env.NODE_ENV?Iu.exports=function(){if(Su)return Du;Su=1;var e=t,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,l=e.useDebugValue;return Du.useSyncExternalStoreWithSelector=function(e,t,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,n=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(n,e))return t;var o=c(e);return void 0!==u&&u(t,o)?(n=e,t):(n=e,i=o)}var n,i,a=!1,o=void 0===s?null:s;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,s,c,u]);var p=n(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),l(p),p},Du}():Iu.exports=(Cu||(Cu=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=t,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,l=e.useDebugValue;Lu.useSyncExternalStoreWithSelector=function(e,t,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,n=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(n,e))return t;var o=c(e);return void 0!==u&&u(t,o)?(n=e,t):(n=e,i=o)}var n,i,a=!1,o=void 0===s?null:s;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,s,c,u]);var p=n(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())}()),Lu)),Iu.exports;var Ru={notify(){},get:()=>[]};var Bu=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),Vu=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),Ku=(()=>Bu||Vu?y.useLayoutEffect:y.useEffect)();function $u(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Fu(e,t){if($u(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])||!$u(e[r[n]],t[r[n]]))return!1;return!0}var Uu=Symbol.for("react-redux-context"),Wu="undefined"!=typeof globalThis?globalThis:{};function Hu(){if(!y.createContext)return{};const e=Wu[Uu]??=new Map;let t=e.get(y.createContext);return t||(t=y.createContext(null),"production"!==process.env.NODE_ENV&&(t.displayName="ReactRedux"),e.set(y.createContext,t)),t}var qu=Hu();var Yu=function(e){const{children:t,context:r,serverState:n,store:i}=e,a=y.useMemo(()=>{const t=function(e){let t,r=Ru,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=Ru)}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}(i),r={store:i,subscription:t,getServerState:n?()=>n: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,n]),o=y.useMemo(()=>i.getState(),[i]);Ku(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);const l=r||qu;return y.createElement(l.Provider,{value:a},t)},Gu=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function Xu(e,t){return null==e&&null==t||("number"==typeof e&&"number"==typeof t?e===t||e!=e&&t!=t:e===t)}function Zu(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(Gu.has(n)){if(null==e[n]&&null==t[n])continue;if(!Fu(e[n],t[n]))return!1}else if(!Xu(e[n],t[n]))return!1;return!0}function Ju(){return Ju=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},Ju.apply(null,arguments)}function Qu(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 ed(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(r),!0).forEach(function(t){td(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function td(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)&&dr(e[0])&&dr(e[1])?e.join(" ~ "):e}var nd={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 id=e=>{var{separator:t=nd.separator,contentStyle:r,itemStyle:n,labelStyle:i=nd.labelStyle,payload:o,formatter:l,itemSorter:s,wrapperClassName:c,labelClassName:u,label:d,labelFormatter:f,accessibilityLayer:p=nd.accessibilityLayer}=e,h=ed(ed({},nd.contentStyle),r),v=ed({margin:0},i),m=!gr(d),g=m?d:"",b=a.clsx("recharts-default-tooltip",c),x=a.clsx("recharts-tooltip-label",u);m&&f&&null!=o&&(g=f(d,o));var w=p?{role:"status","aria-live":"assertive"}:{};return y.createElement("div",Ju({className:b,style:h},w),y.createElement("p",{className:x,style:v},y.isValidElement(g)?g:"".concat(g)),(()=>{if(o&&o.length){var e=function(e,t){return null==t?e:xa(e,t)}(o,s),r=e.map((e,r)=>{if(!e||"none"===e.type)return null;var i=e.formatter||l||rd,{value:a,name:s}=e,c=a,u=s;if(i){var d=i(a,s,e,r,o);if(Array.isArray(d))[c,u]=d;else{if(null==d)return null;c=d}}var f=ed(ed({},nd.itemStyle),{},{color:e.color||nd.itemStyle.color},n);return y.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:f},dr(u)?y.createElement("span",{className:"recharts-tooltip-item-name"},u):null,dr(u)?y.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,y.createElement("span",{className:"recharts-tooltip-item-value"},c),y.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return y.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},r)}return null})())},ad="recharts-tooltip-wrapper",od={visibility:"hidden"};function ld(e){var{coordinate:t,translateX:r,translateY:n}=e;return a.clsx(ad,{["".concat(ad,"-right")]:ur(r)&&t&&ur(t.x)&&r>=t.x,["".concat(ad,"-left")]:ur(r)&&t&&ur(t.x)&&r<t.x,["".concat(ad,"-bottom")]:ur(n)&&t&&ur(t.y)&&n>=t.y,["".concat(ad,"-top")]:ur(n)&&t&&ur(t.y)&&n<t.y})}function sd(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:o,tooltipDimension:l,viewBox:s,viewBoxDimension:c}=e;if(a&&ur(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 cd=!("undefined"!=typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function ud(){var[e,r]=t.useState(()=>!cd&&(!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches));return t.useEffect(()=>{if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>{r(e.matches)};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}},[]),e}function dd(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 fd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(r),!0).forEach(function(t){pd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function pd(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 hd(e){if(!e.prefersReducedMotion||"auto"!==e.isAnimationActive)return e.isAnimationActive&&e.active?"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing):void 0}function vd(e){var t,r,n,i,a,o,l=ud(),[s,c]=y.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));y.useEffect(()=>{var t=t=>{var r,n,i,a;"Escape"===t.key&&c({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===(r=e.coordinate)||void 0===r?void 0:r.y]),!s.dismissed||(null!==(n=null===(i=e.coordinate)||void 0===i?void 0:i.x)&&void 0!==n?n:0)===s.dismissedAtCoordinate.x&&(null!==(a=null===(o=e.coordinate)||void 0===o?void 0:o.y)&&void 0!==a?a:0)===s.dismissedAtCoordinate.y||c(fd(fd({},s),{},{dismissed:!1}));var{cssClasses:u,cssProperties:d}=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=sd({allowEscapeViewBox:i,coordinate:a,key:"x",offset:l,position:s,reverseDirection:c,tooltipDimension:u.width,viewBox:f,viewBoxDimension:f.width}),translateY:n=sd({allowEscapeViewBox:i,coordinate:a,key:"y",offset:o,position:s,reverseDirection:c,tooltipDimension:u.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:d}):od,{cssProperties:t,cssClasses:ld({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}),f=e.hasPortalFromProps?{}:fd(fd({transition:hd({prefersReducedMotion:l,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},d),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),p=fd(fd({},f),{},{visibility:!s.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return y.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:u,style:p,ref:e.innerRef},e.children)}var yd=y.memo(vd),md=()=>{var e;return null===(e=Li(e=>e.rootProps.accessibilityLayer))||void 0===e||e};function gd(){return gd=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},gd.apply(null,arguments)}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}var Od={curveBasisClosed:function(e){return new bt(e)},curveBasisOpen:function(e){return new xt(e)},curveBasis:function(e){return new gt(e)},curveBumpX:function(e){return new Je(e,!0)},curveBumpY:function(e){return new Je(e,!1)},curveLinearClosed:function(e){return new wt(e)},curveLinear:qe,curveMonotoneX:function(e){return new Pt(e)},curveMonotoneY:function(e){return new kt(e)},curveNatural:function(e){return new _t(e)},curveStep:function(e){return new Mt(e,.5)},curveStepAfter:function(e){return new Mt(e,1)},curveStepBefore:function(e){return new Mt(e,0)}},Ed=e=>ds(e.x)&&ds(e.y),jd=e=>null!=e.base&&Ed(e.base)&&Ed(e),Sd=e=>e.x,Pd=e=>e.y,kd={connectNulls:!1,type:"linear"},Ad=e=>{var{type:t=kd.type,points:r=[],baseLine:n,layout:i,connectNulls:a=kd.connectNulls}=e,o=((e,t)=>{if("function"==typeof e)return e;var r="curve".concat(br(e));if(("curveMonotone"===r||"curveBump"===r)&&t){var n=Od["".concat(r).concat("vertical"===t?"Y":"X")];if(n)return n}return Od[r]||qe})(t,i),l=a?r.filter(Ed):r;if(Array.isArray(n)){var s=r.map((e,t)=>xd(xd({},e),{},{base:n[t]}));return("vertical"===i?Ze().y(Pd).x1(Sd).x0(e=>e.base.x):Ze().x(Sd).y1(Pd).y0(e=>e.base.y)).defined(jd).curve(o)(a?s.filter(jd):s)}return("vertical"===i&&ur(n)?Ze().y(Pd).x1(Sd).x0(n):ur(n)?Ze().x(Sd).y1(Pd).y0(n):Xe().x(Sd).y(Pd)).defined(Ed).curve(o)(l)},_d=e=>{var{className:t,points:r,path:n,pathRef:i}=e,o=Mc();if(!(r&&r.length||n))return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},s=r&&r.length?Ad(l):n;return y.createElement("path",gd({},Oe(e),Mr(e),{className:a.clsx("recharts-curve",t),d:null===s?void 0:s,ref:i}))},Nd=["x","y","top","left","width","height","className"];function Md(){return Md=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},Md.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 Id(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 Dd=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),Cd=e=>{var{x:t=0,y:r=0,top:n=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?Td(Object(r),!0).forEach(function(t){Id(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}({x:t,y:r,top:n,left:i,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,Nd));return ur(t)&&ur(r)&&ur(o)&&ur(l)&&ur(n)&&ur(i)?y.createElement("path",Md({},je(c),{className:a.clsx("recharts-cross",s),d:Dd(t,r,o,l,n,i)})):null};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){Rd(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 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 Bd=(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(","),Vd=(e,t)=>Object.keys(t).reduce((r,n)=>Ld(Ld({},r),{},{[n]:e(n,t[n])}),{});function Kd(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 $d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kd(Object(r),!0).forEach(function(t){Fd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Fd(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 Ud=(e,t,r)=>e+(t-e)*r,Wd=e=>{var{from:t,to:r}=e;return t!==r},Hd=(e,t,r)=>{var n=Vd((t,r)=>{if(Wd(r)){var[n,i]=e(r.from,r.to,r.velocity);return $d($d({},r),{},{from:n,velocity:i})}return r},t);return r<1?Vd((e,t)=>Wd(t)&&null!=n[e]?$d($d({},t),{},{velocity:Ud(t.velocity,n[e].velocity,r),from:Ud(t.from,n[e].from,r)}):t,t):Hd(e,n,r-1)};function qd(e,t,r,n,i,a){var o,l=n.reduce((r,n)=>$d($d({},r),{},{[n]:{from:e[n],velocity:0,to:t[n]}}),{}),s=null,c=n=>{o||(o=n);var u=(n-o)/r.dt;l=Hd(r,l,u),i($d($d($d({},e),t),Vd((e,t)=>t.from,l))),o=n,Object.values(l).filter(Wd).length&&(s=a.setTimeout(c))};return()=>(s=a.setTimeout(c),()=>{var e;null===(e=s)||void 0===e||e()})}var Yd=(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($d($d({},e),t)),()=>{}):!0===r.isStepper?qd(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:$d($d({},r),{},{[n]:[i,a]})},{}),u=i=>{l||(l=i);var d=(i-l)/n,f=Vd((e,t)=>Ud(...t,r(d)),c);if(a($d($d($d({},e),t),f)),d<1)s=o.setTimeout(u);else{var p=Vd((e,t)=>Ud(...t,r(1)),c);a($d($d($d({},e),t),p))}};return()=>(s=o.setTimeout(u),()=>{var e;null===(e=s)||void 0===e||e()})}(e,t,r,n,s,i,a)},Gd=1e-4,Xd=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Zd=(e,t)=>e.map((e,r)=>e*t**r).reduce((e,t)=>e+t),Jd=(e,t)=>r=>{var n=Xd(e,t);return Zd(n,r)},Qd=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]},ef=(e,t,r,n)=>{var i,a,o=Jd(e,r),l=Jd(t,n),s=(i=e,a=r,e=>{var t=[...Xd(i,a).map((e,t)=>e*t).slice(1),0];return Zd(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)<Gd||a<Gd)return l(r);r=c(r-i/a)}return l(r)};return u.isStepper=!1,u},tf=function(){return ef(...Qd(...arguments))},rf=e=>{if("string"==typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return tf(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)<Gd&&Math.abs(o)<Gd?[i,0]:[l,o]};return i.isStepper=!0,i.dt=n,i}();default:if("cubic-bezier"===e.split("(")[0])return tf(e)}return"function"==typeof e?e:null};class nf{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 af(){return e=new nf,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 of=t.createContext(af);var lf={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},sf={t:0},cf={t:1};function uf(e){var r,n,i,a=Cr(e,lf),{isActive:o,canBegin:l,duration:s,easing:c,begin:u,onAnimationEnd:d,onAnimationStart:f,children:p}=a,h=ud(),v="auto"===o?!cd&&!h:o,y=(r=a.animationId,n=a.animationManager,i=t.useContext(of),t.useMemo(()=>null!=n?n:i(r),[r,n,i])),[m,g]=t.useState(v?sf:cf),b=t.useRef(null);return t.useEffect(()=>{v||g(cf)},[v]),t.useEffect(()=>{if(!v||!l)return wr;var e=Yd(sf,cf,rf(c),s,g,y.getTimeoutController());return y.start([f,u,()=>{b.current=e()},s,d]),()=>{y.stop(),b.current&&b.current(),d()}},[v,l,s,c,u,f,d,y]),p(m.t)}function df(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",n=t.useRef(pr(r)),i=t.useRef(e);return i.current!==e&&(n.current=pr(r),i.current=e),n.current}var ff,pf,hf,vf,yf,mf,gf,bf,xf,wf,Of=["radius"],Ef=["radius"];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 Sf(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){Pf(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 Pf(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 kf(){return kf=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},kf.apply(null,arguments)}function Af(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 _f(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Nf=(e,t,r,n,i)=>{var a,o=ar(r),l=ar(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=or(ff||(ff=_f(["M",",",""])),e,t+c*f[0]),f[0]>0&&(a+=or(pf||(pf=_f(["A ",",",",0,0,",",",",",""])),f[0],f[0],d,e+u*f[0],t)),a+=or(hf||(hf=_f(["L ",",",""])),e+r-u*f[1],t),f[1]>0&&(a+=or(vf||(vf=_f(["A ",",",",0,0,",",\n ",",",""])),f[1],f[1],d,e+r,t+c*f[1])),a+=or(yf||(yf=_f(["L ",",",""])),e+r,t+n-c*f[2]),f[2]>0&&(a+=or(mf||(mf=_f(["A ",",",",0,0,",",\n ",",",""])),f[2],f[2],d,e+r-u*f[2],t+n)),a+=or(gf||(gf=_f(["L ",",",""])),e+u*f[3],t+n),f[3]>0&&(a+=or(bf||(bf=_f(["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=or(xf||(xf=_f(["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=or(wf||(wf=_f(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return a},Mf={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Tf=e=>{var r=Cr(e,Mf),n=t.useRef(null),[i,o]=t.useState(-1);t.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&o(e)}catch(e){}},[]);var{x:l,y:s,width:c,height:u,radius:d,className:f}=r,{animationEasing:p,animationDuration:h,animationBegin:v,isAnimationActive:m,isUpdateAnimationActive:g}=r,b=t.useRef(c),x=t.useRef(u),w=t.useRef(l),O=t.useRef(s),E=df(t.useMemo(()=>({x:l,y:s,width:c,height:u,radius:d}),[l,s,c,u,d]),"rectangle-");if(l!==+l||s!==+s||c!==+c||u!==+u||0===c||0===u)return null;var j=a.clsx("recharts-rectangle",f);if(!g){var S=je(r),{radius:P}=S,k=Af(S,Of);return y.createElement("path",kf({},k,{x:ar(l),y:ar(s),width:ar(c),height:ar(u),radius:"number"==typeof d?d:void 0,className:j,d:Nf(l,s,c,u,d)}))}var A=b.current,_=x.current,N=w.current,M=O.current,T="0px ".concat(-1===i?1:i,"px"),I="".concat(i,"px ").concat(i,"px"),D=Bd(["strokeDasharray"],h,"string"==typeof p?p:Mf.animationEasing);return y.createElement(uf,{animationId:E,key:E,canBegin:i>0,duration:h,easing:p,isActive:g,begin:v},e=>{var t,i=yr(A,c,e),a=yr(_,u,e),o=yr(N,l,e),f=yr(M,s,e);n.current&&(b.current=i,x.current=a,w.current=o,O.current=f),t=m?e>0?{transition:D,strokeDasharray:I}:{strokeDasharray:T}:{strokeDasharray:I};var p=je(r),{radius:h}=p,v=Af(p,Ef);return y.createElement("path",kf({},v,{radius:"number"==typeof d?d:void 0,className:j,d:Nf(o,f,i,a,d),ref:n,style:Sf(Sf({},t),r.style)}))})};function If(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 Df(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?If(Object(r),!0).forEach(function(t){Cf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):If(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Cf(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 zf,Lf,Rf,Bf,Vf,Kf,$f,Ff=Math.PI/180,Uf=e=>180*e/Math.PI,Wf=(e,t,r,n)=>({x:e+Math.cos(-Ff*n)*r,y:t+Math.sin(-Ff*n)*r}),Hf=(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:Uf(s),angleInRadian:s}},qf=(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)},Yf=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:i,angle:a}=Hf({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?Df(Df({},t),{},{radius:i,angle:qf(d,t)}):null};function Gf(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e;return{points:[Wf(t,r,n,i),Wf(t,r,n,a)],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Xf(){return Xf=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},Xf.apply(null,arguments)}function Zf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Jf=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)/Ff,d=s?i:i+a*u,f=s?i-a*u:i;return{center:Wf(t,r,c,d),circleTangency:Wf(t,r,n,d),lineTangency:Wf(t,r,c*Math.cos(u*Ff),f),theta:u}},Qf=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,l=((e,t)=>lr(t-e)*Math.min(Math.abs(t-e),359.999))(a,o),s=a+l,c=Wf(t,r,i,a),u=Wf(t,r,i,s),d=or(zf||(zf=Zf(["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=Wf(t,r,n,a),p=Wf(t,r,n,s);d+=or(Lf||(Lf=Zf(["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+=or(Rf||(Rf=Zf(["L ",","," Z"])),t,r);return d},ep={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},tp=e=>{var t=Cr(e,ep),{cx:r,cy:n,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=a.clsx("recharts-sector",f),v=o-i,m=hr(l,v,0,!0);return p=m>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=lr(c-s),{circleTangency:d,lineTangency:f,theta:p}=Jf({cx:t,cy:r,radius:i,angle:s,sign:u,cornerRadius:a,cornerIsExternal:l}),{circleTangency:h,lineTangency:v,theta:y}=Jf({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?or(Bf||(Bf=Zf(["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):Qf({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:s,endAngle:c});var g=or(Vf||(Vf=Zf(["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}=Jf({cx:t,cy:r,radius:n,angle:s,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),{circleTangency:O,lineTangency:E,theta:j}=Jf({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),S=l?Math.abs(s-c):Math.abs(s-c)-w-j;if(S<0&&0===a)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=or(Kf||(Kf=Zf(["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,+(S>180),+(u>0),b.x,b.y,a,a,+(u<0),x.x,x.y)}else g+=or($f||($f=Zf(["L",",","Z"])),t,r);return g})({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(m,v/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d}):Qf({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:d}),y.createElement("path",Xf({},je(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(Nr(t)){if("centric"===e){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:l}=t,s=Wf(n,i,a,l),c=Wf(n,i,o,l);return[{x:s.x,y:s.y},{x:c.x,y:c.y}]}return Gf(t)}}var np,ip,ap,op,lp,sp={},cp={},up={};function dp(){return np||(np=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oa();e.toNumber=function(e){return t.isSymbol(e)?NaN:Number(e)}}(up)),up}function fp(){return ip||(ip=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dp();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}}(cp)),cp}function pp(){return ap||(ap=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ma(),r=fp();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}}(sp)),sp}function hp(){return lp?op:(lp=1,op=pp().range)}var vp=zt(hp()),yp=e=>e.chartData,mp=Gi([yp],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),gp=(e,t,r,n)=>n?mp(e):yp(e),bp=(e,t,r)=>r?mp(e):yp(e),xp=Gi([gp],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});Gi([mp],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});var wp=Gi([yp],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});function Op(e){if(Array.isArray(e)&&2===e.length){var[t,r]=e;if(ds(t)&&ds(r))return!0}return!1}function Ep(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function jp(e,t){if(t&&"function"!=typeof e&&Array.isArray(e)&&2===e.length){var r,n,[i,a]=e;if(ds(i))r=i;else if("function"==typeof i)return;if(ds(a))n=a;else if("function"==typeof a)return;var o=[r,n];if(Op(o))return o}}var Sp,Pp=1e9,kp=!0,Ap="[DecimalError] ",_p=Ap+"Invalid argument: ",Np=Ap+"Exponent out of range: ",Mp=Math.floor,Tp=Math.pow,Ip=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Dp=1e7,Cp=9007199254740991,zp=Mp(1286742750677284.5),Lp={};function Rp(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)),kp?Yp(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)/Dp|0,s[a]%=Dp;for(r&&(s.unshift(r),++i),l=s.length;0==s[--l];)s.pop();return t.d=s,t.e=i,kp?Yp(t,d):t}function Bp(e,t,r){if(e!==~~e||e<t||e>r)throw Error(_p+e)}function Vp(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+=Wp(r)),a+=n;(r=7-(n=(o=e[t])+"").length)&&(a+=Wp(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}Lp.absoluteValue=Lp.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Lp.comparedTo=Lp.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},Lp.decimalPlaces=Lp.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},Lp.dividedBy=Lp.div=function(e){return Kp(this,new this.constructor(e))},Lp.dividedToIntegerBy=Lp.idiv=function(e){var t=this.constructor;return Yp(Kp(this,new t(e),0,1),t.precision)},Lp.equals=Lp.eq=function(e){return!this.cmp(e)},Lp.exponent=function(){return Fp(this)},Lp.greaterThan=Lp.gt=function(e){return this.cmp(e)>0},Lp.greaterThanOrEqualTo=Lp.gte=function(e){return this.cmp(e)>=0},Lp.isInteger=Lp.isint=function(){return this.e>this.d.length-2},Lp.isNegative=Lp.isneg=function(){return this.s<0},Lp.isPositive=Lp.ispos=function(){return this.s>0},Lp.isZero=function(){return 0===this.s},Lp.lessThan=Lp.lt=function(e){return this.cmp(e)<0},Lp.lessThanOrEqualTo=Lp.lte=function(e){return this.cmp(e)<1},Lp.logarithm=Lp.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(Sp))throw Error(Ap+"NaN");if(r.s<1)throw Error(Ap+(r.s?"NaN":"-Infinity"));return r.eq(Sp)?new n(0):(kp=!1,t=Kp(Hp(r,a),Hp(e,a),a),kp=!0,Yp(t,i))},Lp.minus=Lp.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Gp(t,e):Rp(t,(e.s=-e.s,e))},Lp.modulo=Lp.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(Ap+"NaN");return r.s?(kp=!1,t=Kp(r,e,0,1).times(e),kp=!0,r.minus(t)):Yp(new n(r),i)},Lp.naturalExponential=Lp.exp=function(){return $p(this)},Lp.naturalLogarithm=Lp.ln=function(){return Hp(this)},Lp.negated=Lp.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Lp.plus=Lp.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Rp(t,e):Gp(t,(e.s=-e.s,e))},Lp.precision=Lp.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(_p+e);if(t=Fp(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},Lp.squareRoot=Lp.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(Ap+"NaN")}for(e=Fp(l),kp=!1,0==(i=Math.sqrt(+l))||i==1/0?(((t=Vp(l.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Mp((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(Kp(l,a,o+2)).times(.5),Vp(a.d).slice(0,o)===(t=Vp(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&"4999"==t){if(Yp(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if("9999"!=t)break;o+=4}return kp=!0,Yp(n,r)},Lp.times=Lp.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%Dp|0,t=l/Dp|0;a[i]=(a[i]+t)%Dp|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,kp?Yp(e,d.precision):e},Lp.toDecimalPlaces=Lp.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(Bp(e,0,Pp),void 0===t?t=n.rounding:Bp(t,0,8),Yp(r,e+Fp(r)+1,t))},Lp.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=Xp(n,!0):(Bp(e,0,Pp),void 0===t?t=i.rounding:Bp(t,0,8),r=Xp(n=Yp(new i(n),e+1,t),!0,e+1)),r},Lp.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return void 0===e?Xp(i):(Bp(e,0,Pp),void 0===t?t=a.rounding:Bp(t,0,8),r=Xp((n=Yp(new a(i),e+Fp(i)+1,t)).abs(),!1,e+Fp(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},Lp.toInteger=Lp.toint=function(){var e=this,t=e.constructor;return Yp(new t(e),Fp(e)+1,t.rounding)},Lp.toNumber=function(){return+this},Lp.toPower=Lp.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(Sp);if(!(l=new s(l)).s){if(e.s<1)throw Error(Ap+"Infinity");return l}if(l.eq(Sp))return l;if(n=s.precision,e.eq(Sp))return Yp(l,n);if(o=(t=e.e)>=(r=e.d.length-1),a=l.s,o){if((r=c<0?-c:c)<=Cp){for(i=new s(Sp),t=Math.ceil(n/7+4),kp=!1;r%2&&Zp((i=i.times(l)).d,t),0!==(r=Mp(r/2));)Zp((l=l.times(l)).d,t);return kp=!0,e.s<0?new s(Sp).div(i):Yp(i,n)}}else if(a<0)throw Error(Ap+"NaN");return a=a<0&&1&e.d[Math.max(t,r)]?-1:1,l.s=1,kp=!1,i=e.times(Hp(l,n+12)),kp=!0,(i=$p(i)).s=a,i},Lp.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return void 0===e?n=Xp(i,(r=Fp(i))<=a.toExpNeg||r>=a.toExpPos):(Bp(e,1,Pp),void 0===t?t=a.rounding:Bp(t,0,8),n=Xp(i=Yp(new a(i),e,t),e<=(r=Fp(i))||r<=a.toExpNeg,e)),n},Lp.toSignificantDigits=Lp.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(Bp(e,1,Pp),void 0===t?t=r.rounding:Bp(t,0,8)),Yp(new r(this),e,t)},Lp.toString=Lp.valueOf=Lp.val=Lp.toJSON=Lp[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Fp(e),r=e.constructor;return Xp(e,t<=r.toExpNeg||t>=r.toExpPos)};var Kp=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%Dp|0,n=r/Dp|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*Dp+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,j,S=n.constructor,P=n.s==i.s?1:-1,k=n.d,A=i.d;if(!n.s)return new S(n);if(!i.s)throw Error(Ap+"Division by zero");for(s=n.e-i.e,E=A.length,w=k.length,h=(p=new S(P)).d=[],c=0;A[c]==(k[c]||0);)++c;if(A[c]>(k[c]||0)&&--s,(g=null==a?a=S.precision:o?a+(Fp(n)-Fp(i))+1:a)<0)return new S(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*Dp+(k[c]||0),h[c]=b/A|0,u=b%A|0;else{for((u=Dp/(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;(j=A.slice()).unshift(0),O=A[0],A[1]>=Dp/2&&++O;do{u=0,(l=t(A,v,E,y))<0?(m=v[0],E!=y&&(m=m*Dp+(v[1]||0)),(u=m/O|0)>1?(u>=Dp&&(u=Dp-1),1==(l=t(d=e(A,u),v,f=d.length,y=v.length))&&(u--,r(d,E<f?j: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?j: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,Yp(p,o?a+Fp(p)+1:a)}}();function $p(e,t){var r,n,i,a,o,l=0,s=0,c=e.constructor,u=c.precision;if(Fp(e)>16)throw Error(Np+Fp(e));if(!e.s)return new c(Sp);for(kp=!1,o=u,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),s+=5;for(o+=Math.log(Tp(2,s))/Math.LN10*2+5|0,r=n=i=new c(Sp),c.precision=o;;){if(n=Yp(n.times(e),o),r=r.times(++l),Vp((a=i.plus(Kp(n,r,o))).d).slice(0,o)===Vp(i.d).slice(0,o)){for(;s--;)i=Yp(i.times(i),o);return c.precision=u,null==t?(kp=!0,Yp(i,u)):i}i=a}}function Fp(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function Up(e,t,r){if(t>e.LN10.sd())throw kp=!0,r&&(e.precision=r),Error(Ap+"LN10 precision limit exceeded");return Yp(new e(e.LN10),t)}function Wp(e){for(var t="";e--;)t+="0";return t}function Hp(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(Ap+(f.s?"NaN":"-Infinity"));if(f.eq(Sp))return new h(0);if(null==t?(kp=!1,c=v):c=t,f.eq(10))return null==t&&(kp=!0),Up(h,c);if(c+=10,h.precision=c,n=(r=Vp(p)).charAt(0),a=Fp(f),!(Math.abs(a)<15e14))return s=Up(h,c+2,v).times(a+""),f=Hp(new h(n+"."+r.slice(1)),c-10).plus(s),h.precision=v,null==t?(kp=!0,Yp(f,v)):f;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Vp((f=f.times(e)).d)).charAt(0),d++;for(a=Fp(f),n>1?(f=new h("0."+r),a++):f=new h(n+"."+r.slice(1)),l=o=f=Kp(f.minus(Sp),f.plus(Sp),c),u=Yp(f.times(f),c),i=3;;){if(o=Yp(o.times(u),c),Vp((s=l.plus(Kp(o,new h(i),c))).d).slice(0,c)===Vp(l.d).slice(0,c))return l=l.times(2),0!==a&&(l=l.plus(Up(h,c+2,v).times(a+""))),l=Kp(l,new h(d),c),h.precision=v,null==t?(kp=!0,Yp(l,v)):l;l=s,i+=2}}function qp(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=Mp(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),kp&&(e.e>zp||e.e<-zp))throw Error(Np+r)}else e.s=0,e.e=0,e.d=[0];return e}function Yp(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=Tp(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/Tp(10,o-i):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return s?(a=Fp(e),d.length=1,t=t-a-1,d[0]=Tp(10,(7-t%7)%7),e.e=Mp(-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=Tp(10,7-n),d[u]=i>0?(c/Tp(10,o-i)%Tp(10,i)|0)*a:0),s)for(;;){if(0==u){(d[0]+=a)==Dp&&(d[0]=1,++e.e);break}if(d[u]+=a,d[u]!=Dp)break;d[u--]=0,a=1}for(n=d.length;0===d[--n];)d.pop();if(kp&&(e.e>zp||e.e<-zp))throw Error(Np+Fp(e));return e}function Gp(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),kp?Yp(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]=Dp-1;--s[a],s[i]+=Dp}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,kp?Yp(t,p):t):new f(0)}function Xp(e,t,r){var n,i=Fp(e),a=Vp(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Wp(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Wp(-i-1)+a,r&&(n=r-o)>0&&(a+=Wp(n))):i>=o?(a+=Wp(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Wp(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Wp(n))),e.s<0?"-"+a:a}function Zp(e,t){if(e.length>t)return e.length=t,!0}function Jp(e){if(!e||"object"!=typeof e)throw Error(Ap+"Object expected");var t,r,n,i=["precision",1,Pp,"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(!(Mp(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(_p+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(_p+r+": "+n);this[r]=new this(n)}return this}var Qp=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(_p+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])):qp(t,e.toString())}if("string"!=typeof e)throw Error(_p+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Ip.test(e))throw Error(_p+e);qp(t,e)}if(a.prototype=Lp,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=Jp,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"});Sp=new Qp(1);var eh=Qp;function th(e){return 0===e?1:Math.floor(new eh(e).abs().log(10).toNumber())+1}function rh(e,t,r){for(var n=new eh(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var nh=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},ih=(e,t,r)=>{if(e.lte(0))return new eh(0);var n=th(e.toNumber()),i=new eh(10).pow(n),a=e.div(i),o=1!==n?.05:.1,l=new eh(Math.ceil(a.div(o).toNumber())).add(r).mul(o).mul(i);return new eh(t?l.toNumber():Math.ceil(l.toNumber()))},ah=(e,t,r)=>{var n;if(e.lte(0))return new eh(0);var i=[1,2,2.5,5],a=e.toNumber(),o=Math.floor(new eh(a).abs().log(10).toNumber()),l=new eh(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 eh(10).pow(u))}var d=null!==(n=i[c])&&void 0!==n?n:1,f=new eh(d).mul(l);return t?f:new eh(Math.ceil(f.toNumber()))},oh=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]:ih;if(!Number.isFinite((t-e)/(r-1)))return{step:new eh(0),tickMin:new eh(0),tickMax:new eh(0)};var o,l=a(new eh(t).sub(e).div(r-1),n,i);o=e<=0&&t>=0?new eh(0):(o=new eh(e).add(t).div(2)).sub(new eh(o).mod(l));var s=Math.ceil(o.sub(e).div(l).toNumber()),c=Math.ceil(new eh(t).sub(o).div(l).toNumber()),u=s+c+1;return u>r?oh(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 eh(s).mul(l)),tickMax:o.add(new eh(c).mul(l))})},lh=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]=nh([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 eh(1),i=new eh(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new eh(10).pow(th(e)-1),i=new eh(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new eh(Math.floor(e)))}else 0===e?i=new eh(Math.floor((t-1)/2)):r||(i=new eh(Math.floor(e)));for(var o=Math.floor((t-1)/2),l=[],s=0;s<t;s++)l.push(i.add(new eh(s-o).mul(n)).toNumber());return l})(l,n,i);var u="snap125"===a?ah:ih,{step:d,tickMin:f,tickMax:p}=oh(l,s,o,i,0,u),h=rh(f,p.add(new eh(.1).mul(d)),d);return t>r?h.reverse():h},sh=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]=nh([r,n]);if(o===-1/0||l===1/0)return[r,n];if(o===l)return[o];var s="snap125"===a?ah:ih,c=Math.max(t,2),u=s(new eh(l).sub(o).div(c-1),i,0),d=[...rh(new eh(o),new eh(l),u),l];return!1===i&&(d=d.map(e=>Math.round(e))),r>n?d.reverse():d},ch=e=>e.rootProps.maxBarSize,uh=e=>e.rootProps.barCategoryGap,dh=e=>e.rootProps.stackOffset,fh=e=>e.rootProps.reverseStackOrder,ph=e=>e.options.chartName,hh=e=>e.rootProps.syncId,vh=e=>e.rootProps.syncMethod,yh=e=>e.options.eventEmitter,mh={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},gh=(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t};function bh(e,t,r){return"auto"!==r?r:null!=e?ms(e,t)?"category":"number":void 0}function xh(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 wh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xh(Object(r),!0).forEach(function(t){Oh(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xh(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Oh(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 Eh={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"},jh={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"},Sh=Gi([(e,t)=>{if(null!=t)return e.polarAxis.angleAxis[t]},Ic],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=bh(t,"angleAxis",Eh.type))&&void 0!==r?r:"category";return wh(wh({},Eh),{},{type:n})}),Ph=Gi([(e,t)=>e.polarAxis.radiusAxis[t],Ic],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=bh(t,"radiusAxis",jh.type))&&void 0!==r?r:"category";return wh(wh({},jh),{},{type:n})}),kh=e=>e.polarOptions,Ah=Gi([Ms,Ts,Hs],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}),_h=Gi([kh,Ah],(e,t)=>{if(null!=e)return hr(e.innerRadius,t,0)}),Nh=Gi([kh,Ah],(e,t)=>{if(null!=e)return hr(e.outerRadius,t,.8*t)}),Mh=Gi([kh],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]});Gi([Sh,Mh],gh);var Th=Gi([Ah,_h,Nh],(e,t,r)=>{if(null!=e&&null!=t&&null!=r)return[t,r]});Gi([Ph,Th],gh);var Ih=Gi([Nc,kh,_h,Nh,Ms,Ts],(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:hr(o,i,i/2),cy:hr(l,a,a/2),innerRadius:r,outerRadius:n,startAngle:s,endAngle:c,clockWise:!1}}}),Dh=(e,t)=>t,Ch=(e,t,r)=>r;function zh(e){return null==e?void 0:e.id}function Lh(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=zh(e);r.forEach((t,r)=>{var n,s=null==a||i?r:String(ys(t,a,null)),c=ys(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 Rh(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}var Bh=(e,t)=>e===t||null!=e&&null!=t&&(e[0]===t[0]&&e[1]===t[1]);function Vh(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var Kh=e=>{var t=Nc(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},$h=e=>e.tooltip.settings.axisId;function Fh(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 Uh(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Wh(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Hh(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=Uh,r=(t,r)=>Uh(e(t),r),n=(t,r)=>e(t)-r):(t=e===Uh||e===Wh?e:qh,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 qh(){return 0}function Yh(e){return null===e?NaN:+e}const Gh=Hh(Uh).right;Hh(Yh).center;class Xh extends Map{constructor(e,t=Jh){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(Zh(this,e))}has(e){return super.has(Zh(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 Zh({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Jh(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Qh(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const ev=Math.sqrt(50),tv=Math.sqrt(10),rv=Math.sqrt(2);function nv(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>=ev?10:a>=tv?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?nv(e,t,2*r):[l,s,c]}function iv(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,a,o]=n?nv(t,e,r):nv(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 av(e,t,r){return nv(e=+e,t=+t,r=+r)[2]}function ov(e,t,r){r=+r;const n=(t=+t)<(e=+e),i=n?av(t,e,r):av(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function lv(e,t){let r;for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);return r}function sv(e,t){let r;for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);return r}function cv(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?Qh:function(e=Uh){if(e===Uh)return Qh;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);cv(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(uv(e,r,t),i(e[n],a)>0&&uv(e,r,n);o<l;){for(uv(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}0===i(e[r],a)?uv(e,r,l):(++l,uv(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function uv(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function dv(e,t,r=Yh){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 fv(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function pv(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 hv=Symbol("implicit");function vv(){var e=new Xh,t=[],r=[],n=hv;function i(i){let a=e.get(i);if(void 0===a){if(n!==hv)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 Xh;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 vv(t,r).unknown(n)},fv.apply(i,arguments),i}function yv(){var e,t,r=vv().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 yv(n(),[a,o]).round(l).paddingInner(s).paddingOuter(c).align(u)},fv.apply(d(),arguments)}function mv(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return mv(t())},e}function gv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function bv(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xv(){}var wv=.7,Ov=1/wv,Ev="\\s*([+-]?\\d+)\\s*",jv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Sv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pv=/^#([0-9a-f]{3,8})$/,kv=new RegExp(`^rgb\\(${Ev},${Ev},${Ev}\\)$`),Av=new RegExp(`^rgb\\(${Sv},${Sv},${Sv}\\)$`),_v=new RegExp(`^rgba\\(${Ev},${Ev},${Ev},${jv}\\)$`),Nv=new RegExp(`^rgba\\(${Sv},${Sv},${Sv},${jv}\\)$`),Mv=new RegExp(`^hsl\\(${jv},${Sv},${Sv}\\)$`),Tv=new RegExp(`^hsla\\(${jv},${Sv},${Sv},${jv}\\)$`),Iv={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 Dv(){return this.rgb().formatHex()}function Cv(){return this.rgb().formatRgb()}function zv(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Pv.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Lv(t):3===r?new Vv(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Rv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Rv(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=kv.exec(e))?new Vv(t[1],t[2],t[3],1):(t=Av.exec(e))?new Vv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_v.exec(e))?Rv(t[1],t[2],t[3],t[4]):(t=Nv.exec(e))?Rv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Mv.exec(e))?Hv(t[1],t[2]/100,t[3]/100,1):(t=Tv.exec(e))?Hv(t[1],t[2]/100,t[3]/100,t[4]):Iv.hasOwnProperty(e)?Lv(Iv[e]):"transparent"===e?new Vv(NaN,NaN,NaN,0):null}function Lv(e){return new Vv(e>>16&255,e>>8&255,255&e,1)}function Rv(e,t,r,n){return n<=0&&(e=t=r=NaN),new Vv(e,t,r,n)}function Bv(e,t,r,n){return 1===arguments.length?((i=e)instanceof xv||(i=zv(i)),i?new Vv((i=i.rgb()).r,i.g,i.b,i.opacity):new Vv):new Vv(e,t,r,null==n?1:n);var i}function Vv(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Kv(){return`#${Wv(this.r)}${Wv(this.g)}${Wv(this.b)}`}function $v(){const e=Fv(this.opacity);return`${1===e?"rgb(":"rgba("}${Uv(this.r)}, ${Uv(this.g)}, ${Uv(this.b)}${1===e?")":`, ${e})`}`}function Fv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Uv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wv(e){return((e=Uv(e))<16?"0":"")+e.toString(16)}function Hv(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Yv(e,t,r,n)}function qv(e){if(e instanceof Yv)return new Yv(e.h,e.s,e.l,e.opacity);if(e instanceof xv||(e=zv(e)),!e)return new Yv;if(e instanceof Yv)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 Yv(o,l,s,e.opacity)}function Yv(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Gv(e){return(e=(e||0)%360)<0?e+360:e}function Xv(e){return Math.max(0,Math.min(1,e||0))}function Zv(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}gv(xv,zv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Dv,formatHex:Dv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return qv(this).formatHsl()},formatRgb:Cv,toString:Cv}),gv(Vv,Bv,bv(xv,{brighter(e){return e=null==e?Ov:Math.pow(Ov,e),new Vv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?wv:Math.pow(wv,e),new Vv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vv(Uv(this.r),Uv(this.g),Uv(this.b),Fv(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:Kv,formatHex:Kv,formatHex8:function(){return`#${Wv(this.r)}${Wv(this.g)}${Wv(this.b)}${Wv(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$v,toString:$v})),gv(Yv,function(e,t,r,n){return 1===arguments.length?qv(e):new Yv(e,t,r,null==n?1:n)},bv(xv,{brighter(e){return e=null==e?Ov:Math.pow(Ov,e),new Yv(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?wv:Math.pow(wv,e),new Yv(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 Vv(Zv(e>=240?e-240:e+120,i,n),Zv(e,i,n),Zv(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Yv(Gv(this.h),Xv(this.s),Xv(this.l),Fv(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=Fv(this.opacity);return`${1===e?"hsl(":"hsla("}${Gv(this.h)}, ${100*Xv(this.s)}%, ${100*Xv(this.l)}%${1===e?")":`, ${e})`}`}}));var Jv=e=>()=>e;function Qv(e){return 1===(e=+e)?ey: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):Jv(isNaN(t)?r:t)}}function ey(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Jv(isNaN(e)?t:e)}var ty=function e(t){var r=Qv(t);function n(e,t){var n=r((e=Bv(e)).r,(t=Bv(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),o=ey(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 ny(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]=uy(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 iy(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ay(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function oy(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]=uy(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var ly=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sy=new RegExp(ly.source,"g");function cy(e,t){var r,n,i,a=ly.lastIndex=sy.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(r=ly.exec(e))&&(n=sy.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:ay(r,n)})),a=sy.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 uy(e,t){var r,n=typeof t;return null==t||"boolean"===n?Jv(t):("number"===n?ay:"string"===n?(r=zv(t))?(t=r,ty):cy:t instanceof zv?ty:t instanceof Date?iy:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?ry:Array.isArray(t)?ny:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?oy:ay)(e,t)}function dy(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function fy(e,t){void 0===t&&(t=e,e=uy);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 py(e){return+e}var hy=[0,1];function vy(e){return e}function yy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function my(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=yy(i,n),a=r(o,a)):(n=yy(n,i),a=r(a,o)),function(e){return a(n(e))}}function gy(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]=yy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(t){var r=Gh(e,t,1,n)-1;return a[r](i[r](t))}}function by(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function xy(){var e,t,r,n,i,a,o=hy,l=hy,s=uy,c=vy;function u(){var e=Math.min(o.length,l.length);return c!==vy&&(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?gy:my,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),ay)))(r)))},d.domain=function(e){return arguments.length?(o=Array.from(e,py),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=dy,u()},d.clamp=function(e){return arguments.length?(c=!!e||vy,u()):c!==vy},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 wy(){return xy()(vy,vy)}function Oy(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 Ey(e){return(e=Oy(Math.abs(e)))?e[1]:NaN}var jy,Sy=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Py(e){if(!(t=Sy.exec(e)))throw new Error("invalid format: "+e);var t;return new ky({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 ky(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 Ay(e,t){var r=Oy(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")}Py.prototype=ky.prototype,ky.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 _y={"%":(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)=>Ay(100*e,t),r:Ay,s:function(e,t){var r=Oy(e,t);if(!r)return jy=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(jy=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")+Oy(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Ny(e){return e}var My,Ty,Iy,Dy=Array.prototype.map,Cy=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zy(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?Ny:(t=Dy.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?Ny:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Dy.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=Py(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"):_y[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=_y[b],E=/[defgprs%]/.test(b);function j(e){var t,i,a,s=x,p=w;if("c"===b)p=O(e)+p,e="";else{var j=(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)),j&&0===+e&&"+"!==f&&(j=!1),s=(j?"("===f?f:c:"-"===f||"("===f?"":f)+s,p=("s"!==b||isNaN(e)||void 0===jy?"":Cy[8+jy/3])+p+(j&&"("===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 S=s.length+e.length+p.length,P=S<v?new Array(v-S+1).join(r):"";switch(y&&h&&(e=n(P+e,P.length?v-p.length:1/0),P=""),d){case"<":e=s+e+p+P;break;case"=":e=s+P+e+p;break;case"^":e=P.slice(0,S=P.length>>1)+s+e+p+P.slice(S);break;default:e=P+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)),j.toString=function(){return e+""},j}return{format:d,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor(Ey(t)/3))),n=Math.pow(10,-r),i=d(((e=Py(e)).type="f",e),{suffix:Cy[8+r/3]});return function(e){return i(n*e)}}}}function Ly(e,t,r,n){var i,a=ov(e,t,r);switch((n=Py(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(Ey(t)/3)))-Ey(Math.abs(e)))}(a,o))||(n.precision=i),Iy(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,Ey(t)-Ey(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,-Ey(Math.abs(e)))}(a))||(n.precision=i-2*("%"===n.type))}return Ty(n)}function Ry(e){var t=e.domain;return e.ticks=function(e){var r=t();return iv(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return Ly(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=av(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 By(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 Vy(e){return Math.log(e)}function Ky(e){return Math.exp(e)}function $y(e){return-Math.log(-e)}function Fy(e){return-Math.exp(-e)}function Uy(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Wy(e){return(t,r)=>-e(-t,r)}function Hy(e){const t=e(Vy,Ky),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?Uy:e===Math.E?Math.exp:t=>Math.pow(e,t)}(a),r()[0]<0?(n=Wy(n),i=Wy(i),e($y,Fy)):e(Vy,Ky),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=iv(o,l,p))}else h=iv(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=Py(r)).precision||(r.trim=!0),r=Ty(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(By(r(),{floor:e=>i(Math.floor(n(e))),ceil:e=>i(Math.ceil(n(e)))})),t}function qy(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Yy(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Gy(e){var t=1,r=e(qy(t),Yy(t));return r.constant=function(r){return arguments.length?e(qy(t=+r),Yy(t)):t},Ry(r)}function Xy(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Zy(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Jy(e){return e<0?-e*e:e*e}function Qy(e){var t=e(vy,vy),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(vy,vy):.5===r?e(Zy,Jy):e(Xy(r),Xy(1/r)):r},Ry(t)}function em(){var e=Qy(xy());return e.copy=function(){return by(e,em()).exponent(e.exponent())},fv.apply(e,arguments),e}function tm(e){return Math.sign(e)*e*e}My=zy({thousands:",",grouping:[3],currency:["$",""]}),Ty=My.format,Iy=My.formatPrefix;const rm=new Date,nm=new Date;function im(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=>im(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),nm.setTime(+n),e(rm),e(nm),Math.floor(r(rm,nm))),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 am=im(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);am.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?im(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):am:null),am.range;const om=1e3,lm=6e4,sm=36e5,cm=864e5,um=6048e5,dm=2592e6,fm=31536e6,pm=im(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*om)},(e,t)=>(t-e)/om,e=>e.getUTCSeconds());pm.range;const hm=im(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*om)},(e,t)=>{e.setTime(+e+t*lm)},(e,t)=>(t-e)/lm,e=>e.getMinutes());hm.range;const vm=im(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*lm)},(e,t)=>(t-e)/lm,e=>e.getUTCMinutes());vm.range;const ym=im(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*om-e.getMinutes()*lm)},(e,t)=>{e.setTime(+e+t*sm)},(e,t)=>(t-e)/sm,e=>e.getHours());ym.range;const mm=im(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sm)},(e,t)=>(t-e)/sm,e=>e.getUTCHours());mm.range;const gm=im(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lm)/cm,e=>e.getDate()-1);gm.range;const bm=im(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/cm,e=>e.getUTCDate()-1);bm.range;const xm=im(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/cm,e=>Math.floor(e/cm));function wm(e){return im(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())*lm)/um)}xm.range;const Om=wm(0),Em=wm(1),jm=wm(2),Sm=wm(3),Pm=wm(4),km=wm(5),Am=wm(6);function _m(e){return im(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)/um)}Om.range,Em.range,jm.range,Sm.range,Pm.range,km.range,Am.range;const Nm=_m(0),Mm=_m(1),Tm=_m(2),Im=_m(3),Dm=_m(4),Cm=_m(5),zm=_m(6);Nm.range,Mm.range,Tm.range,Im.range,Dm.range,Cm.range,zm.range;const Lm=im(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());Lm.range;const Rm=im(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());Rm.range;const Bm=im(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());Bm.every=e=>isFinite(e=Math.floor(e))&&e>0?im(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,Bm.range;const Vm=im(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 Km(e,t,r,n,i,a){const o=[[pm,1,om],[pm,5,5e3],[pm,15,15e3],[pm,30,3e4],[a,1,lm],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,sm],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,cm],[n,2,1728e5],[r,1,um],[t,1,dm],[t,3,7776e6],[e,1,fm]];function l(t,r,n){const i=Math.abs(r-t)/n,a=Hh(([,,e])=>e).right(o,i);if(a===o.length)return e.every(ov(t/fm,r/fm,n));if(0===a)return am.every(Math.max(ov(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]}Vm.every=e=>isFinite(e=Math.floor(e))&&e>0?im(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,Vm.range;const[$m,Fm]=Km(Vm,Rm,Nm,xm,mm,vm),[Um,Wm]=Km(Bm,Lm,Om,gm,ym,hm);function Hm(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 qm(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 Ym(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Gm,Xm,Zm,Jm={"-":"",_:" ",0:"0"},Qm=/^\s*\d+/,eg=/^%/,tg=/[\\^$*+?|[\]().{}]/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 ng(e){return e.replace(tg,"\\$&")}function ig(e){return new RegExp("^(?:"+e.map(ng).join("|")+")","i")}function ag(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function og(e,t,r){var n=Qm.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function lg(e,t,r){var n=Qm.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function sg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function cg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function ug(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function dg(e,t,r){var n=Qm.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function fg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function pg(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 hg(e,t,r){var n=Qm.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function vg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function yg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function mg(e,t,r){var n=Qm.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function gg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function bg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function xg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function wg(e,t,r){var n=Qm.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Og(e,t,r){var n=Qm.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Eg(e,t,r){var n=eg.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function jg(e,t,r){var n=Qm.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Sg(e,t,r){var n=Qm.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Pg(e,t){return rg(e.getDate(),t,2)}function kg(e,t){return rg(e.getHours(),t,2)}function Ag(e,t){return rg(e.getHours()%12||12,t,2)}function _g(e,t){return rg(1+gm.count(Bm(e),e),t,3)}function Ng(e,t){return rg(e.getMilliseconds(),t,3)}function Mg(e,t){return Ng(e,t)+"000"}function Tg(e,t){return rg(e.getMonth()+1,t,2)}function Ig(e,t){return rg(e.getMinutes(),t,2)}function Dg(e,t){return rg(e.getSeconds(),t,2)}function Cg(e){var t=e.getDay();return 0===t?7:t}function zg(e,t){return rg(Om.count(Bm(e)-1,e),t,2)}function Lg(e){var t=e.getDay();return t>=4||0===t?Pm(e):Pm.ceil(e)}function Rg(e,t){return e=Lg(e),rg(Pm.count(Bm(e),e)+(4===Bm(e).getDay()),t,2)}function Bg(e){return e.getDay()}function Vg(e,t){return rg(Em.count(Bm(e)-1,e),t,2)}function Kg(e,t){return rg(e.getFullYear()%100,t,2)}function $g(e,t){return rg((e=Lg(e)).getFullYear()%100,t,2)}function Fg(e,t){return rg(e.getFullYear()%1e4,t,4)}function Ug(e,t){var r=e.getDay();return rg((e=r>=4||0===r?Pm(e):Pm.ceil(e)).getFullYear()%1e4,t,4)}function Wg(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rg(t/60|0,"0",2)+rg(t%60,"0",2)}function Hg(e,t){return rg(e.getUTCDate(),t,2)}function qg(e,t){return rg(e.getUTCHours(),t,2)}function Yg(e,t){return rg(e.getUTCHours()%12||12,t,2)}function Gg(e,t){return rg(1+bm.count(Vm(e),e),t,3)}function Xg(e,t){return rg(e.getUTCMilliseconds(),t,3)}function Zg(e,t){return Xg(e,t)+"000"}function Jg(e,t){return rg(e.getUTCMonth()+1,t,2)}function Qg(e,t){return rg(e.getUTCMinutes(),t,2)}function eb(e,t){return rg(e.getUTCSeconds(),t,2)}function tb(e){var t=e.getUTCDay();return 0===t?7:t}function rb(e,t){return rg(Nm.count(Vm(e)-1,e),t,2)}function nb(e){var t=e.getUTCDay();return t>=4||0===t?Dm(e):Dm.ceil(e)}function ib(e,t){return e=nb(e),rg(Dm.count(Vm(e),e)+(4===Vm(e).getUTCDay()),t,2)}function ab(e){return e.getUTCDay()}function ob(e,t){return rg(Mm.count(Vm(e)-1,e),t,2)}function lb(e,t){return rg(e.getUTCFullYear()%100,t,2)}function sb(e,t){return rg((e=nb(e)).getUTCFullYear()%100,t,2)}function cb(e,t){return rg(e.getUTCFullYear()%1e4,t,4)}function ub(e,t){var r=e.getUTCDay();return rg((e=r>=4||0===r?Dm(e):Dm.ceil(e)).getUTCFullYear()%1e4,t,4)}function db(){return"+0000"}function fb(){return"%"}function pb(e){return+e}function hb(e){return Math.floor(+e/1e3)}function vb(e){return new Date(e)}function yb(e){return e instanceof Date?+e:+new Date(+e)}function mb(e,t,r,n,i,a,o,l,s,c){var u=wy(),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,yb)):f().map(vb)},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(By(r,e)):u},u.copy=function(){return by(u,mb(e,t,r,n,i,a,o,l,s,c))},u}function gb(){var e,t,r,n,i,a=0,o=1,l=vy,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(uy),c.rangeRound=u(dy),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 bb(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function xb(){var e=Qy(gb());return e.copy=function(){return bb(e,xb()).exponent(e.exponent())},pv.apply(e,arguments)}function wb(){var e,t,r,n,i,a,o,l=0,s=.5,c=1,u=1,d=vy,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=fy(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(uy),p.rangeRound=h(dy),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 Ob(){var e=Qy(wb());return e.copy=function(){return bb(e,Ob()).exponent(e.exponent())},pv.apply(e,arguments)}!function(e){Gm=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=ig(i),u=ag(i),d=ig(a),f=ag(a),p=ig(o),h=ag(o),v=ig(l),y=ag(l),m=ig(s),g=ag(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:Pg,e:Pg,f:Mg,g:$g,G:Ug,H:kg,I:Ag,j:_g,L:Ng,m:Tg,M:Ig,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:pb,s:hb,S:Dg,u:Cg,U:zg,V:Rg,w:Bg,W:Vg,x:null,X:null,y:Kg,Y:Fg,Z:Wg,"%":fb},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:Hg,e:Hg,f:Zg,g:sb,G:ub,H:qg,I:Yg,j:Gg,L:Xg,m:Jg,M:Qg,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:pb,s:hb,S:eb,u:tb,U:rb,V:ib,w:ab,W:ob,x:null,X:null,y:lb,Y:cb,Z:db,"%":fb},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 j(e,t,r,n)},d:yg,e:yg,f:Og,g:fg,G:dg,H:gg,I:gg,j:mg,L:wg,m:vg,M:bg,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:hg,Q:jg,s:Sg,S:xg,u:lg,U:sg,V:cg,w:og,W:ug,x:function(e,t,n){return j(e,r,t,n)},X:function(e,t,r){return j(e,n,t,r)},y:fg,Y:dg,Z:pg,"%":Eg};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=Jm[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=Ym(1900,void 0,1);if(j(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=qm(Ym(a.y,0,1))).getUTCDay(),n=i>4||0===i?Mm.ceil(n):Mm(n),n=bm.offset(n,7*(a.V-1)),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(i=(n=Hm(Ym(a.y,0,1))).getDay(),n=i>4||0===i?Em.ceil(n):Em(n),n=gm.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?qm(Ym(a.y,0,1)).getUTCDay():Hm(Ym(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,qm(a)):Hm(a)}}function j(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 Jm?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),Xm=Gm.format,Gm.parse,Zm=Gm.utcFormat,Gm.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 Eb=Object.freeze({__proto__:null,scaleBand:yv,scaleDiverging:function e(){var t=Ry(wb()(vy));return t.copy=function(){return bb(t,e())},pv.apply(t,arguments)},scaleDivergingLog:function e(){var t=Hy(wb()).domain([.1,1,10]);return t.copy=function(){return bb(t,e()).base(t.base())},pv.apply(t,arguments)},scaleDivergingPow:Ob,scaleDivergingSqrt:function(){return Ob.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=Gy(wb());return t.copy=function(){return bb(t,e()).constant(t.constant())},pv.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,py),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,py):[0,1],Ry(n)},scaleImplicit:hv,scaleLinear:function e(){var t=wy();return t.copy=function(){return by(t,e())},fv.apply(t,arguments),Ry(t)},scaleLog:function e(){const t=Hy(xy()).domain([1,10]);return t.copy=()=>by(t,e()).base(t.base()),fv.apply(t,arguments),t},scaleOrdinal:vv,scalePoint:function(){return mv(yv.apply(null,arguments).paddingInner(1))},scalePow:em,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]=dv(r,e/t);return o}function o(e){return null==e||isNaN(e=+e)?t:n[Gh(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(Uh),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)},fv.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[Gh(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)},fv.apply(Ry(l),arguments)},scaleRadial:function e(){var t,r=wy(),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(tm(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,py)).map(tm)),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)},fv.apply(a,arguments),Ry(a)},scaleSequential:function e(){var t=Ry(gb()(vy));return t.copy=function(){return bb(t,e())},pv.apply(t,arguments)},scaleSequentialLog:function e(){var t=Hy(gb()).domain([1,10]);return t.copy=function(){return bb(t,e()).base(t.base())},pv.apply(t,arguments)},scaleSequentialPow:xb,scaleSequentialQuantile:function e(){var t=[],r=vy;function n(e){if(null!=e&&!isNaN(e=+e))return r((Gh(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(Uh),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 sv(e);if(t>=1)return lv(e);var r,n=(r-1)*t,i=Math.floor(n),a=lv(cv(e,i).subarray(0,i+1));return a+(sv(e.subarray(i+1))-a)*(n-i)}}(t,n/e))},n.copy=function(){return e(r).domain(t)},pv.apply(n,arguments)},scaleSequentialSqrt:function(){return xb.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=Gy(gb());return t.copy=function(){return bb(t,e()).constant(t.constant())},pv.apply(t,arguments)},scaleSqrt:function(){return em.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=Gy(xy());return t.copy=function(){return by(t,e()).constant(t.constant())},fv.apply(t,arguments)},scaleThreshold:function e(){var t,r=[.5],n=[0,1],i=1;function a(e){return null!=e&&e<=e?n[Gh(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)},fv.apply(a,arguments)},scaleTime:function(){return fv.apply(mb(Um,Wm,Bm,Lm,Om,gm,ym,hm,pm,Xm).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return fv.apply(mb($m,Fm,Vm,Rm,Nm,bm,mm,vm,pm,Zm).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Ly});function jb(e,t,r){if("function"==typeof e)return e.copy().domain(t).range(r);if(null!=e){var n=function(e){var t=Eb;if(e in t&&"function"==typeof t[e])return t[e]();var r="scale".concat(br(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 Sb(e,t,r,n){if(null!=r&&null!=n)return"function"==typeof e.scale?jb(e.scale,r,n):jb(t,r,n)}function Pb(e){return function(e){return"scale".concat(br(e))}(e)in Eb}var kb=(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?Pb(n)?n:"point":void 0}};function Ab(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 _b(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 Nb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_b(Object(r),!0).forEach(function(t){Mb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Mb(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 Tb=[0,"auto"],Ib={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"},Db=(e,t)=>e.cartesianAxis.xAxis[t],Cb=(e,t)=>{var r=Db(e,t);return null==r?Ib:r},zb={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Tb,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},Lb=(e,t)=>e.cartesianAxis.yAxis[t],Rb=(e,t)=>{var r=Lb(e,t);return null==r?zb:r},Bb={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:""},Vb=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return null==r?Bb:r},Kb=(e,t,r)=>{switch(t){case"xAxis":return Cb(e,r);case"yAxis":return Rb(e,r);case"zAxis":return Vb(e,r);case"angleAxis":return Sh(e,r);case"radiusAxis":return Ph(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},$b=(e,t,r)=>{switch(t){case"xAxis":return Cb(e,r);case"yAxis":return Rb(e,r);case"angleAxis":return Sh(e,r);case"radiusAxis":return Ph(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Fb=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function Ub(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 Wb=e=>e.graphicalItems.cartesianItems,Hb=Gi([Dh,Ch],Ub),qb=(e,t,r)=>e.filter(r).filter(e=>!0===(null==t?void 0:t.includeHidden)||!e.hide),Yb=Gi([Wb,Kb,Hb],qb,{memoizeOptions:{resultEqualityCheck:Vh}}),Gb=Gi([Yb],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(Rh)),Xb=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),Zb=Gi([Yb],Xb),Jb=e=>e.map(e=>e.data).filter(Boolean).flat(1),Qb=Gi([Yb],e=>e.some(e=>!e.data)),ex=Gi([Yb],Jb,{memoizeOptions:{resultEqualityCheck:Vh}}),tx=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},rx=Gi([ex,gp],tx),nx=(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:ys(e,t.dataKey)})):r.length>0?r.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:ys(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:ys(e,t.dataKey)})).filter(e=>null!=e.value),...c]:c},ix=Gi([rx,Kb,Yb,gp,Qb,ex],nx);function ax(e){if(dr(e)||e instanceof Date){var t=Number(e);if(ds(t))return t}}function ox(e){if(Array.isArray(e)){var t=[ax(e[0]),ax(e[1])];return Op(t)?t:void 0}var r=ax(e);if(null!=r)return[r,r]}function lx(e){return e.map(ax).filter(xr)}function sx(e,t){var r=ax(e),n=ax(t);return null==r&&null==n?0:null==r?-1:null==n?1:r-n}var cx=Gi([ix],e=>null==e?void 0:e.map(e=>e.value).sort(sx));function ux(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}var dx=e=>{var t=Kh(e),r=$h(e);return $b(e,t,r)},fx=Gi([dx],e=>null==e?void 0:e.dataKey),px=Gi([Gb,gp,dx],Lh),hx=(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(zh);return[i,{stackedData:ws(e,l,r),graphicalItems:o}]}))},vx=Gi([px,Gb,dh,fh],hx),yx=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(null==n&&"zAxis"!==r){var o=Ss(e,i,a);if(null==o||0!==o[0]||0!==o[1])return o}},mx=Gi([Kb],e=>e.allowDataOverflow),gx=e=>{var t;if(null==e||!("domain"in e))return Tb;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var r=lx(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:Tb},bx=Gi([Kb],gx),xx=Gi([bx,mx],jp),wx=Gi([vx,yp,Dh,xx],yx,{memoizeOptions:{resultEqualityCheck:Bh}}),Ox=e=>e.errorBars,Ex=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)]}},jx=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=>ux(i,e));s.forEach(r=>{var n,i=ys(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||sr(t)){if(Array.isArray(t)){var i=lx(t);i.length>0&&(n=Math.max(...i))}}else n=t;return null==n?[]:lx(r.flatMap(t=>{var r,i,a=ys(e,t.dataKey);if(Array.isArray(a)?[r,i]=a:r=i=a,ds(r)&&ds(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=ox(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=ox(ys(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]))}),ds(a)&&ds(o))return[a,o]},Sx=Gi([rx,Kb,Zb,Ox,Dh,xp],jx,{memoizeOptions:{resultEqualityCheck:Bh}});function Px(e){var{value:t}=e;if(dr(t)||t instanceof Date)return t}var kx=e=>e.referenceElements.dots,Ax=(e,t,r)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===r:e.yAxisId===r),_x=Gi([kx,Dh,Ch],Ax),Nx=e=>e.referenceElements.areas,Mx=Gi([Nx,Dh,Ch],Ax),Tx=e=>e.referenceElements.lines,Ix=Gi([Tx,Dh,Ch],Ax),Dx=(e,t)=>{if(null!=e){var r=lx(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Cx=Gi(_x,Dh,Dx),zx=(e,t)=>{if(null!=e){var r=lx(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)]}},Lx=Gi([Mx,Dh],zx);var Rx=(e,t)=>{if(null!=e){var r=e.flatMap(e=>"xAxis"===t?function(e){var t;if(null!=e.x)return lx([e.x]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.x);return null==r||0===r.length?[]:lx(r)}(e):function(e){var t;if(null!=e.y)return lx([e.y]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.y);return null==r||0===r.length?[]:lx(r)}(e));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Bx=Gi([Ix,Dh],Rx),Vx=Gi(Cx,Bx,Lx,(e,t,r)=>Ex(e,r,t)),Kx=(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(Op(n))return Ep(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(ur(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&&Ps.test(o)){var s=Ps.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(ur(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&&ks.test(l)){var u=ks.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(Op(f))return null==t?f:Ep(f,t,r)}}}(t,"vertical"===o&&"xAxis"===l||"horizontal"===o&&"yAxis"===l?Ex(n,a,i):Ex(a,i),e.allowDataOverflow),$x=Gi([Kb,bx,xx,wx,Sx,Vx,Nc,Dh],Kx,{memoizeOptions:{resultEqualityCheck:Bh}}),Fx=[0,1],Ux=(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=ms(t,a);return u&&null==s?vp(0,null!==(l=null==r?void 0:r.length)&&void 0!==l?l:0):"category"===c?((e,t,r)=>{var n=e.map(Px).filter(e=>null!=e);return r&&(null==t.dataKey||t.allowDuplicatedCategory&&vr(n))?vp(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))})(n,e,u):"expand"!==i||u?o:Fx}},Wx=Gi([Kb,Nc,rx,ix,dh,Dh,$x],Ux),Hx=Gi([Kb,Fb,ph],kb),qx=(e,t,r)=>{var{niceTicks:n}=t;if("none"!==n){var i=gx(t),a=Array.isArray(i)&&("auto"===i[0]||"auto"===i[1]);if(("snap125"===n||"adaptive"===n)&&null!=t&&t.tickCount&&Op(e)){if(a)return lh(e,t.tickCount,t.allowDecimals,n);if("number"===t.type)return sh(e,t.tickCount,t.allowDecimals,n)}if("auto"===n&&"linear"===r&&null!=t&&t.tickCount){if(a&&Op(e))return lh(e,t.tickCount,t.allowDecimals,"adaptive");if("number"===t.type&&Op(e))return sh(e,t.tickCount,t.allowDecimals,"adaptive")}}},Yx=Gi([Wx,$b,Hx],qx),Gx=(e,t,r,n)=>{if("angleAxis"!==n&&"number"===(null==e?void 0:e.type)&&Op(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},Xx=Gi([Kb,Wx,Yx,Dh],Gx),Zx=Gi(ix,Kb,(e,t)=>{if(t&&"number"===t.type){var r=1/0,n=Array.from(lx(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}}),Jx=Gi(Zx,Nc,uh,Hs,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!ds(e))return 0;var a="vertical"===t?n.height:n.width;if("gap"===i)return e*a/2;if("no-gap"===i){var o=hr(r,e*a),l=e*a/2;return l-o-(l-o)/a*o}return 0}),Qx=Gi(Cb,(e,t,r)=>{var n=Cb(e,t);return null==n||"string"!=typeof n.padding?0:Jx(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}}),ew=Gi(Rb,(e,t,r)=>{var n=Rb(e,t);return null==n||"string"!=typeof n.padding?0:Jx(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}}),tw=Gi([Hs,Qx,Js,Zs,(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=Gi([Hs,Nc,ew,Js,Zs,(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]}),nw=(e,t,r,n)=>{var i;switch(t){case"xAxis":return tw(e,r,n);case"yAxis":return rw(e,r,n);case"zAxis":return null===(i=Vb(e,r))||void 0===i?void 0:i.range;case"angleAxis":return Mh(e);case"radiusAxis":return Th(e,r);default:return}},iw=Gi([Kb,nw],gh),aw=Gi([Hx,Xx],(e,t)=>{if(null!=t){if("linear"===e){if(!Op(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];ds(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}}),ow=Gi([Kb,Hx,aw,iw],Sb),lw=(e,t,r,n)=>{if(null!=r&&null!=r.dataKey){var{type:i,scale:a}=r;return!ms(e,n)||"number"!==i&&"auto"===a?void 0:t.map(e=>e.value)}},sw=Gi([Nc,ix,$b,Dh],lw),cw=Gi([ow],Fh);function uw(e,t){return e.id<t.id?-1:e.id>t.id?1:0}Gi([ow],function(e){if(null!=e)return"invert"in e&&"function"==typeof e.invert?e.invert.bind(e):Ab(e,void 0)}),Gi([ow,cx],Ab),Gi([Yb,Ox,Dh],(e,t,r)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>ux(r,e)));var dw=(e,t)=>t,fw=(e,t,r)=>r,pw=Gi(Cs,dw,fw,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(uw)),hw=Gi(zs,dw,fw,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(uw)),vw=(e,t)=>({width:e.width,height:t.height}),yw=Gi(Hs,Cb,vw),mw=Gi(Ts,Hs,pw,dw,fw,(e,t,r,n,i)=>{var a,o={};return r.forEach(r=>{var l=vw(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}),gw=Gi(Ms,Hs,hw,dw,fw,(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}),bw=Gi([Hs,Cb,(e,t)=>{var r=Cb(e,t);if(null!=r)return mw(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}}}),xw=Gi([Hs,Rb,(e,t)=>{var r=Rb(e,t);if(null!=r)return gw(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}}}),ww=Gi(Hs,Rb,(e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height})),Ow=(e,t,r)=>{switch(t){case"xAxis":return yw(e,r).width;case"yAxis":return ww(e,r).height;default:return}},Ew=(e,t,r,n)=>{if(null!=r){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,l=ms(e,n),s=t.map(e=>e.value),c=s.filter(e=>null!=e);return o&&l&&"category"===a&&i&&vr(c)?s:void 0}},jw=Gi([Nc,ix,Kb,Dh],Ew),Sw=Gi([Nc,(e,t,r)=>{switch(t){case"xAxis":return Cb(e,r);case"yAxis":return Rb(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Hx,cw,jw,sw,nw,Yx,Dh],(e,t,r,n,i,a,o,l,s)=>{if(null!=t){var c=ms(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}}}),Pw=Gi([Nc,$b,Hx,cw,Yx,nw,jw,sw,Dh],(e,t,r,n,i,a,o,l,s)=>{if(null!=t&&null!=n){var c=ms(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*lr(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 ds(i)?{index:t,coordinate:i+h,value:e,offset:h}:null}).filter(xr):c&&l?l.map((e,t)=>{var r=n.map(e);return ds(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(xr):n.ticks?n.ticks(f).map((e,t)=>{var r=n.map(e);return ds(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(xr):n.domain().map((e,t)=>{var r=n.map(e);return ds(r)?{coordinate:r+h,value:o?o[e]:e,index:t,offset:h}:null}).filter(xr)}}),kw=Gi([Nc,$b,cw,nw,jw,sw,Dh],(e,t,r,n,i,a,o)=>{if(null!=t&&null!=r&&null!=n&&n[0]!==n[1]){var l=ms(e,o),{tickCount:s}=t,c=0;return c="angleAxis"===o&&(null==n?void 0:n.length)>=2?2*lr(n[0]-n[1])*c:c,l&&a?a.map((e,t)=>{var n=r.map(e);return ds(n)?{coordinate:n+c,value:e,index:t,offset:c}:null}).filter(xr):r.ticks?r.ticks(s).map((e,t)=>{var n=r.map(e);return ds(n)?{coordinate:n+c,value:e,index:t,offset:c}:null}).filter(xr):r.domain().map((e,t)=>{var n=r.map(e);return ds(n)?{coordinate:n+c,value:i?i[e]:e,index:t,offset:c}:null}).filter(xr)}}),Aw=Gi(Kb,cw,(e,t)=>{if(null!=e&&null!=t)return Nb(Nb({},e),{},{scale:t})}),_w=Gi([Kb,Hx,Wx,iw],Sb),Nw=Gi([_w],Fh),Mw=Gi((e,t,r)=>Vb(e,r),Nw,(e,t)=>{if(null!=e&&null!=t)return Nb(Nb({},e),{},{scale:t})}),Tw=Gi([Nc,Cs,zs],(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}});Gi([(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 Iw=e=>e.options.defaultTooltipEventType,Dw=e=>e.options.validateTooltipEventTypes;function Cw(e,t,r){if(null==e)return t;var n=e?"axis":"item";return null==r?t:r.includes(n)?n:t}function zw(e,t){return Cw(t,Iw(e),Dw(e))}var Lw=(e,t)=>{var r,n=Number(t);if(!sr(n)&&null!=t)return n>=0?null==e||null===(r=e[n])||void 0===r?void 0:r.value:void 0},Rw={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Bw=jl({name:"tooltip",initialState:{itemInteraction:{click:Rw,hover:Rw},axisInteraction:{click:Rw,hover:Rw},keyboardInteraction:Rw,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:hl()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Uo(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:hl()},removeTooltipEntrySettings:{reducer(e,t){var r=Uo(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:hl()},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:Vw,replaceTooltipEntrySettings:Kw,removeTooltipEntrySettings:$w,setTooltipSettingsState:Fw,setActiveMouseOverItemIndex:Uw,mouseLeaveItem:Ww,mouseLeaveChart:Hw,setActiveClickItemIndex:qw,setMouseOverAxisIndex:Yw,setMouseClickAxisIndex:Gw,setSyncInteraction:Xw,setKeyboardInteraction:Zw}=Bw.actions,Jw=Bw.reducer;function Qw(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 eO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qw(Object(r),!0).forEach(function(t){tO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tO(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 Rw;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 Rw;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 eO(eO({},i),{},{active:!0})}else if(null!=n)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return eO(eO({},Rw),{},{coordinate:i.coordinate})};function nO(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 iO=(e,t,r,n)=>{var i=null==e?void 0:e.index;if(null==i)return null;var a=Number(i);if(!ds(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=ys(e,t);return null==n||!Op(r)||nO(n,r)}(s,r,n)?String(l):null},aO=(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}}},oO=(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})},lO=e=>e.options.tooltipPayloadSearcher,sO=e=>e.tooltip;function cO(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 uO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cO(Object(r),!0).forEach(function(t){dO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function dO(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 fO(e){if("string"==typeof e)return e}var pO=(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)?us(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?mr(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?fO(e.color):void 0,fill:"fill"in e?fO(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=uO(uO({},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(_s({tooltipEntrySettings:s,dataKey:o,payload:l,value:ys(l,o),name:null==a?void 0:String(a)}))}):e.push(_s({tooltipEntrySettings:v,dataKey:g,payload:f,value:ys(f,g),name:null!==(p=ys(f,b))&&void 0!==p?p:null==v?void 0:v.name}));return e},[])}},hO=Gi([dx,Fb,ph],kb),vO=Gi([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),yO=Gi([Kh,$h],Ub),mO=Gi([vO,dx,yO],qb,{memoizeOptions:{resultEqualityCheck:Vh}}),gO=Gi([mO],e=>e.filter(Rh)),bO=Gi([mO],Jb,{memoizeOptions:{resultEqualityCheck:Vh}}),xO=Gi([mO],e=>e.some(e=>!e.data)),wO=Gi([bO,yp],tx),OO=Gi([gO,yp,dx],Lh),EO=Gi([wO,dx,mO,yp,xO,bO],nx),jO=Gi([dx],gx),SO=Gi([dx],e=>e.allowDataOverflow),PO=Gi([jO,SO],jp),kO=Gi([mO],e=>e.filter(Rh)),AO=Gi([OO,kO,dh,fh],hx),_O=Gi([AO,yp,Kh,PO],yx),NO=Gi([mO],Xb),MO=Gi([wO,dx,NO,Ox,Kh,wp],jx,{memoizeOptions:{resultEqualityCheck:Bh}}),TO=Gi([kx,Kh,$h],Ax),IO=Gi([TO,Kh],Dx),DO=Gi([Nx,Kh,$h],Ax),CO=Gi([DO,Kh],zx),zO=Gi([Tx,Kh,$h],Ax),LO=Gi([zO,Kh],Rx),RO=Gi([IO,LO,CO],Ex),BO=Gi([dx,jO,PO,_O,MO,RO,Nc,Kh],Kx),VO=Gi([dx,Nc,wO,EO,dh,Kh,BO],Ux),KO=Gi([VO,dx,hO],qx),$O=Gi([dx,VO,KO,Kh],Gx),FO=e=>{var t=Kh(e),r=$h(e);return nw(e,t,r,!1)},UO=Gi([dx,FO],gh),WO=Gi([dx,hO,$O,UO],Sb),HO=Gi([WO],Fh),qO=Gi([Nc,EO,dx,Kh],Ew),YO=Gi([Nc,EO,dx,Kh],lw),GO=Gi([Nc,dx,hO,HO,FO,qO,YO,Kh],(e,t,r,n,i,a,o,l)=>{if(t){var{type:s}=t,c=ms(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*lr(i[0]-i[1])*d:d,c&&o?o.map((e,t)=>{var r=n.map(e);return ds(r)?{coordinate:r+d,value:e,index:t,offset:d}:null}).filter(xr):n.domain().map((e,t)=>{var r=n.map(e);return ds(r)?{coordinate:r+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(xr)}}}),XO=Gi([Iw,Dw,e=>e.tooltip.settings],(e,t,r)=>Cw(r.shared,e,t)),ZO=e=>e.tooltip.settings.trigger,JO=e=>e.tooltip.settings.defaultIndex,QO=Gi([sO,XO,ZO,JO],rO),eE=Gi([QO,wO,fx,VO],iO),tE=Gi([GO,eE],Lw),rE=Gi([QO],e=>{if(e)return e.dataKey}),nE=Gi([QO],e=>{if(e)return e.graphicalItemId}),iE=Gi([sO,XO,ZO,JO],oO),aE=Gi([Ms,Ts,Nc,Hs,GO,JO,iE],aO),oE=Gi([QO,aE],(e,t)=>null!=e&&e.coordinate?e.coordinate:t),lE=Gi([QO],e=>{var t;return null!==(t=null==e?void 0:e.active)&&void 0!==t&&t}),sE=Gi([iE,eE,yp,fx,tE,lO,XO],pO),cE=Gi([sE],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}});function uE(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 dE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uE(Object(r),!0).forEach(function(t){fE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fE(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 pE=()=>{var e=Li(dx),t=Li(GO),r=Li(HO);return As(e&&r?dE(dE({},e),{},{scale:r}):void 0,t)};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,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(lr(h-p)!==lr(v-h)){var m=[];if(lr(v-h)===lr(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),j=Math.max(p,v);if(e>(E+h)/2&&e<=(j+h)/2)return null===(O=r[l])||void 0===O?void 0:O.index}}else if(t)for(var S=0;S<o;S++){var P=t[S];if(null!=P){var k=t[S+1],A=t[S-1];if(0===S&&null!=k&&e<=(P.coordinate+k.coordinate)/2)return P.index;if(S===o-1&&null!=A&&e>(P.coordinate+A.coordinate)/2)return P.index;if(S>0&&S<o-1&&null!=A&&null!=k&&e>(P.coordinate+A.coordinate)/2&&e<=(P.coordinate+k.coordinate)/2)return P.index}}return-1},gE=()=>Li(ph),bE=(e,t)=>t,xE=(e,t,r)=>r,wE=(e,t,r,n)=>n,OE=Gi(GO,e=>xa(e,e=>e.coordinate)),EE=Gi([sO,bE,xE,wE],rO),jE=Gi([EE,wO,fx,VO],iO),SE=Gi([sO,bE,xE,wE],oO),PE=Gi([Ms,Ts,Nc,Hs,GO,wE,SE],aO),kE=Gi([EE,PE],(e,t)=>{var r;return null!==(r=e.coordinate)&&void 0!==r?r:t}),AE=Gi([GO,jE],Lw),_E=Gi([SE,jE,yp,fx,AE,lO,bE],pO),NE=Gi([EE,jE],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),ME=(e,t,r,n,i,a,o)=>{if(e&&n&&i&&a&&r){var l=Yf(e,r);if(l){var s=((e,t)=>"centric"===t?e.angle:e.radius)(l,t),c=mE(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 vE(vE(vE({},n),Wf(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var l=i.coordinate,{angle:s}=n;return vE(vE(vE({},n),Wf(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}}}},TE=Gi(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}}),IE=Gi(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(mh));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 DE(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 CE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?DE(Object(r),!0).forEach(function(t){zE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function zE(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 LE={zIndexMap:Object.values(mh).reduce((e,t)=>CE(CE({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},RE=new Set(Object.values(mh));var BE=jl({name:"zIndex",initialState:LE,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:hl()},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 RE.has(e)}(r)&&delete e.zIndexMap[r])},prepare:hl()},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:hl()},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:hl()}}}),{registerZIndexPortal:VE,unregisterZIndexPortal:KE,registerZIndexPortalElement:$E,unregisterZIndexPortalElement:FE}=BE.actions,UE=BE.reducer;function WE(e){var{zIndex:r,children:n}=e,i=void 0!==Mc()&&void 0!==r&&0!==r,a=Xs(),o=t.useRef(void 0),l=t.useRef(new Set),s=Ii(),c=Li(e=>TE(e,r,a));if(t.useLayoutEffect(()=>{if(!i){var e=l.current;return e.forEach(e=>{s(KE({zIndex:e}))}),e.clear(),void(o.current=void 0)}if(l.current.has(r)||(s(VE({zIndex:r})),l.current.add(r)),c){o.current=c;var t=l.current;t.forEach(e=>{e!==r&&(s(KE({zIndex:e})),t.delete(e))})}},[s,r,i,c]),t.useLayoutEffect(()=>{var e=l.current;return()=>{e.forEach(e=>{s(KE({zIndex:e}))}),e.clear()}},[s]),!i)return n;var u=null!=c?c:o.current;return u?p.createPortal(n,u):null}function HE(){return HE=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},HE.apply(null,arguments)}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}function XE(e){var{cursor:r,cursorComp:n,cursorProps:i}=e;return t.isValidElement(r)?t.cloneElement(r,i):t.createElement(n,i)}function ZE(e){var t,r,n,i,{coordinate:o,payload:l,index:s,offset:c,tooltipAxisBandSize:u,layout:d,cursor:f,tooltipEventType:p,chartName:h}=e,v=o,m=l,g=s;if(!f||!v||"ScatterChart"!==h&&"axis"!==p)return null;if("ScatterChart"===h)r=v,n=Cd,i=mh.cursorLine;else if("BarChart"===h)r=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),n=Tf,i=mh.cursorRectangle;else if("radial"===d&&Nr(v)){var{cx:b,cy:x,radius:w,startAngle:O,endAngle:E}=Gf(v);r={cx:b,cy:x,startAngle:O,endAngle:E,innerRadius:w,outerRadius:w},n=tp,i=mh.cursorLine}else r={points:rp(d,v,c)},n=_d,i=mh.cursorLine;var j="object"==typeof f&&"className"in f?f.className:void 0,S=YE(YE(YE(YE({stroke:"#ccc",pointerEvents:"none"},c),r),Ee(f)),{},{payload:m,payloadIndex:g,className:a.clsx("recharts-tooltip-cursor",j)});return y.createElement(WE,{zIndex:null!==(t=e.zIndex)&&void 0!==t?t:i},y.createElement(XE,{cursor:f,cursorComp:n,cursorProps:S}))}function JE(e){var t=pE(),r=kc(),n=Mc(),i=gE();return null==t||null==r||null==n||null==i?null:y.createElement(ZE,HE({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var QE,ej=t.createContext(null),tj={exports:{}};var rj=(QE||(QE=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}(tj)),tj.exports),nj=new(zt(rj)),ij="recharts.syncEvent.tooltip",aj="recharts.syncEvent.brush",oj=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!sr(r))return e[r]}},lj=jl({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),sj=lj.reducer,{createEventEmitter:cj}=lj.actions;function uj(e){return e.tooltip.syncInteraction}var dj=jl({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:fj,setDataStartEndIndexes:pj,setComputedData:hj}=dj.actions,vj=dj.reducer,yj=["x","y"];function mj(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 gj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mj(Object(r),!0).forEach(function(t){bj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function bj(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 xj(){var e=Li(hh),r=Li(yh),n=Ii(),i=Li(vh),a=Li(GO),o=Mc(),l=Sc(),s=Li(e=>e.rootProps.className);t.useEffect(()=>{if(null==e)return wr;var t=(t,s,c)=>{var u;if(r!==c&&e===t)if(!1!==s.payload.active)if("index"!==i){if(null!=a){var d;if("function"==typeof i){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=i(a,f);d=a[p]}else"value"===i&&(d=a.find(e=>String(e.value)===s.payload.label));var{coordinate:h}=s.payload;if(null!=h&&null!=l)if(null!=d){var{x:v,y:y}=h,m=Math.min(v,l.x+l.width),g=Math.min(y,l.y+l.height),b={x:"horizontal"===o?d.coordinate:m,y:"horizontal"===o?g:d.coordinate},x=Xw({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});n(x)}else n(Xw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:s.payload.sourceViewBox,graphicalItemId:void 0}));else n(Xw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))}}else if(l&&null!=s&&null!==(u=s.payload)&&void 0!==u&&u.coordinate&&s.payload.sourceViewBox){var w=s.payload.coordinate,{x:O,y:E}=w,j=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,yj),{x:S,y:P,width:k,height:A}=s.payload.sourceViewBox,_=gj(gj({},j),{},{x:l.x+(k?(O-S)/k:0)*l.width,y:l.y+(A?(E-P)/A:0)*l.height});n(gj(gj({},s),{},{payload:gj(gj({},s.payload),{},{coordinate:_})}))}else n(s);else n(Xw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))};return nj.on(ij,t),()=>{nj.off(ij,t)}},[s,n,r,e,i,a,o,l])}function wj(){var e=Ii();t.useEffect(()=>{e(cj())},[e]),xj(),function(){var e=Li(hh),r=Li(yh),n=Ii();t.useEffect(()=>{if(null==e)return wr;var t=(t,i,a)=>{r!==a&&e===t&&n(pj(i))};return nj.on(aj,t),()=>{nj.off(aj,t)}},[n,r,e])}()}function Oj(e,r,n,i,a,o){var l=Li(t=>((e,t,r)=>{if(null!=t){var n=sO(e);return"axis"===t?"hover"===r?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:"hover"===r?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}})(t,e,r)),s=Li(nE),c=Li(yh),u=Li(hh),d=Li(vh),f=Li(uj),p=null!=(null==f?void 0:f.sourceViewBox),h=Sc();t.useEffect(()=>{if(!p&&null!=u&&null!=c){var e=Xw({active:o,coordinate:n,dataKey:l,index:a,label:"number"==typeof i?String(i):i,sourceViewBox:h,graphicalItemId:s});nj.emit(ij,u,e,c)}},[p,n,l,s,a,i,c,u,d,o,h])}function Ej(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 jj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ej(Object(r),!0).forEach(function(t){Sj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ej(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sj(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 Pj(e){return e.dataKey}var kj=[],Aj={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 _j(e){var r,n,i=Cr(e,Aj),{active:a,allowEscapeViewBox:o,animationDuration:l,animationEasing:s,content:c,filterNull:u,isAnimationActive:d,offset:f,payloadUniqBy:h,position:v,reverseDirection:m,useTranslate3d:g,wrapperStyle:b,cursor:x,shared:w,trigger:O,defaultIndex:E,portal:j,axisId:S}=i,P=Ii(),k="number"==typeof E?String(E):E;t.useEffect(()=>{P(Fw({shared:w,trigger:O,axisId:S,active:a,defaultIndex:k}))},[P,w,O,S,a,k]);var A=Sc(),_=md(),N=function(e){return Li(t=>zw(t,e))}(w),{activeIndex:M,isActive:T}=null!==(r=Li(e=>NE(e,N,O,k)))&&void 0!==r?r:{},I=Li(e=>_E(e,N,O,k)),D=Li(e=>AE(e,N,O,k)),C=Li(e=>kE(e,N,O,k)),z=I,L=t.useContext(ej),R=null!==(n=null!=a?a:T)&&void 0!==n&&n,[B,V]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[r,n]=t.useState({height:0,left:0,top:0,width:0}),i=t.useCallback(e=>{if(null!=e){var t=e.getBoundingClientRect(),i={height:t.height,left:t.left,top:t.top,width:t.width};(Math.abs(i.height-r.height)>1||Math.abs(i.left-r.left)>1||Math.abs(i.top-r.top)>1||Math.abs(i.width-r.width)>1)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[r.width,r.height,r.top,r.left,...e]);return[r,i]}([z,R]),K="axis"===N?D:void 0;Oj(N,O,C,K,M,R);var $=null!=j?j:L;if(null==$||null==A||null==N)return null;var F=null!=z?z:kj;R||(F=kj),u&&F.length&&(F=function(e,t,r){return!0===t?yi(e,r):"function"==typeof t?yi(e,t):e}(F.filter(e=>null!=e.value&&(!0!==e.hide||i.includeHidden)),h,Pj));var U=F.length>0,W=jj(jj({},i),{},{payload:F,label:K,active:R,activeIndex:M,coordinate:C,accessibilityLayer:_}),H=y.createElement(yd,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:d,active:R,coordinate:C,hasPayload:U,offset:f,position:v,reverseDirection:m,useTranslate3d:g,viewBox:A,wrapperStyle:b,lastBoundingBox:B,innerRef:V,hasPortalFromProps:Boolean(j)},function(e,t){return y.isValidElement(e)?y.cloneElement(e,t):"function"==typeof e?y.createElement(e,t):y.createElement(id,t)}(c,W));return y.createElement(y.Fragment,null,p.createPortal(H,$),R&&y.createElement(JE,{cursor:x,tooltipEventType:N,coordinate:C,payload:F,index:M}))}var Nj=e=>null;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}Nj.displayName="Cell";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,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 Dj=function(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){Ij(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}({},{cacheSize:2e3,enableCache:!0}),Cj=new class{constructor(e){Mj(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}}(Dj.cacheSize),zj={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Lj="recharts_measurement_span";var Rj=(e,t)=>{try{var r=document.getElementById(Lj);r||((r=document.createElement("span")).setAttribute("id",Lj),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,zj,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch(e){return{width:0,height:0}}},Bj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||cd)return{width:0,height:0};if(!Dj.enableCache)return Rj(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=Cj.get(r);if(n)return n;var i=Rj(e,t);return Cj.set(r,i),i};var Vj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Kj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,$j=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,Fj=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Uj={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Wj=["cm","mm","pt","pc","in","Q","px"];var Hj,qj,Yj,Gj="NaN";class Xj{static parse(e){var t,[,r,n]=null!==(t=Fj.exec(e))&&void 0!==t?t:[];return null==r?Xj.NaN:new Xj(parseFloat(r),null!=n?n:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,sr(e)&&(this.unit=""),""===t||$j.test(t)||(this.num=NaN,this.unit=""),function(e){return Wj.includes(e)}(t)&&(this.num=function(e,t){return e*Uj[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new Xj(NaN,""):new Xj(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new Xj(NaN,""):new Xj(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new Xj(NaN,""):new Xj(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new Xj(NaN,""):new Xj(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return sr(this.num)}}function Zj(e){if(null==e||e.includes(Gj))return Gj;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=null!==(r=Vj.exec(t))&&void 0!==r?r:[],o=Xj.parse(null!=n?n:""),l=Xj.parse(null!=a?a:""),s="*"===i?o.multiply(l):o.divide(l);if(s.isNaN())return Gj;t=t.replace(Vj,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,f]=null!==(c=Kj.exec(t))&&void 0!==c?c:[],p=Xj.parse(null!=u?u:""),h=Xj.parse(null!=f?f:""),v="+"===d?p.add(h):p.subtract(h);if(v.isNaN())return Gj;t=t.replace(Kj,v.toString())}return t}Hj=Xj,qj="NaN",Yj=new Xj(NaN,""),(qj=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+""}(qj))in Hj?Object.defineProperty(Hj,qj,{value:Yj,enumerable:!0,configurable:!0,writable:!0}):Hj[qj]=Yj;var Jj=/\(([^()]*)\)/;function Qj(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,r=e;null!=(t=Jj.exec(r));){var[,n]=t;r=r.replace(Jj,Zj(n))}return r}(t),t=Zj(t)}function eS(e){var t=function(e){try{return Qj(e)}catch(e){return Gj}}(e.slice(5,-1));return t===Gj?"":t}var tS=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],rS=["dx","dy","angle","className","breakAll"];function nS(){return nS=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},nS.apply(null,arguments)}function iS(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 aS=/[ \f\n\r\t\v\u2028\u2029]+/,oS=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];return gr(t)||(i=r?t.toString().split(""):t.toString().split(aS)),{wordsWithComputedWidth:i.map(e=>({word:e,width:Bj(e,n).width})),spaceWidth:r?0:Bj(" ",n).width}}catch(e){return null}};function lS(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}var sS=(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},[]),cS=e=>e.reduce((e,t)=>e.width>t.width?e:t),uS=(e,t,r,n,i,a,o,l)=>{var s=e.slice(0,t),c=oS({breakAll:r,style:n,children:s+"…"});if(!c)return[!1,[]];var u=sS(c.wordsWithComputedWidth,a,o,l);return[u.length>i||cS(u).width>Number(a),u]},dS=e=>[{words:gr(e)?[]:e.toString().split(aS),width:void 0}],fS=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!cd){var l=oS({breakAll:a,children:n,style:i});if(!l)return dS(n);var{wordsWithComputedWidth:s,spaceWidth:c}=l;return((e,t,r,n,i)=>{var{maxLines:a,children:o,style:l,breakAll:s}=e,c=ur(a),u=String(o),d=sS(t,n,r,i);if(!c||i)return d;if(!(d.length>a||cS(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]=uS(u,m,s,l,a,n,r,i),[x]=uS(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 dS(n)},pS="#808080",hS={angle:0,breakAll:!1,capHeight:"0.71em",fill:pS,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},vS=t.forwardRef((e,r)=>{var n=Cr(e,hS),{x:i,y:o,lineHeight:l,capHeight:s,fill:c,scaleToFit:u,textAnchor:d,verticalAnchor:f}=n,p=iS(n,tS),h=t.useMemo(()=>fS({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:m,angle:g,className:b,breakAll:x}=p,w=iS(p,rS);if(!dr(i)||!dr(o)||0===h.length)return null;var O,E=Number(i)+(ur(v)?v:0),j=Number(o)+(ur(m)?m:0);if(!ds(E)||!ds(j))return null;switch(f){case"start":O=eS("calc(".concat(s,")"));break;case"middle":O=eS("calc(".concat((h.length-1)/2," * -").concat(l," + (").concat(s," / 2))"));break;default:O=eS("calc(".concat(h.length-1," * -").concat(l,")"))}var S=[],P=h[0];if(u&&null!=P){var k=P.width,{width:A}=p;S.push("scale(".concat(ur(A)&&ur(k)?A/k:1,")"))}return g&&S.push("rotate(".concat(g,", ").concat(E,", ").concat(j,")")),S.length&&(w.transform=S.join(" ")),y.createElement("text",nS({},je(w),{ref:r,x:E,y:j,className:a.clsx("recharts-text",b),textAnchor:d,fill:c.includes("url")?pS:c}),h.map((e,t)=>{var r=e.words.join(x?"":" ");return y.createElement("tspan",{x:E,dy:0===t?O:l,key:"".concat(r,"-").concat(t)},r)}))});function yS(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?yS(Object(r),!0).forEach(function(t){gS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gS(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}vS.displayName="Text";var bS=["labelRef"],xS=["content"];function wS(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 OS(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 ES(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?OS(Object(r),!0).forEach(function(t){jS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OS(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 SS(){return SS=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},SS.apply(null,arguments)}var PS=t.createContext(null),kS=e=>{var{x:r,y:n,upperWidth:i,lowerWidth:a,width:o,height:l,children:s}=e,c=t.useMemo(()=>({x:r,y:n,upperWidth:i,lowerWidth:a,width:o,height:l}),[r,n,i,a,o,l]);return y.createElement(PS.Provider,{value:c},s)},AS=()=>{var e=t.useContext(PS),r=Sc();return e||(r?jc(r):void 0)},_S=t.createContext(null),NS=e=>null!=e&&"function"==typeof e,MS=(e,t,r,n,i)=>{var o,l,{offset:s,className:c}=e,{cx:u,cy:d,innerRadius:f,outerRadius:p,startAngle:h,endAngle:v,clockWise:m}=i,g=(f+p)/2,b=((e,t)=>lr(t-e)*Math.min(Math.abs(t-e),360))(h,v),x=b>=0?1:-1;switch(t){case"insideStart":o=h+x*s,l=m;break;case"insideEnd":o=v-x*s,l=!m;break;case"end":o=v+x*s,l=m;break;default:throw new Error("Unsupported position ".concat(t))}l=b<=0?l:!l;var w=Wf(u,d,g,o),O=Wf(u,d,g,o+359*(l?1:-1)),E="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(l?0:1,",\n ").concat(O.x,",").concat(O.y),j=gr(e.id)?pr("recharts-radial-line-"):e.id;return y.createElement("text",SS({},n,{dominantBaseline:"central",className:a.clsx("recharts-radial-bar-label",c)}),y.createElement("defs",null,y.createElement("path",{id:j,d:E})),y.createElement("textPath",{xlinkHref:"#".concat(j)},r))},TS=e=>null!=e&&"cx"in e&&ur(e.cx),IS={angle:0,offset:5,zIndex:mh.label,position:"middle",textBreakAll:!1};function DS(e){var r,n,i,o,l,s=Cr(e,IS),{viewBox:c,parentViewBox:u,position:d,value:f,children:p,content:h,className:v="",textBreakAll:m,labelRef:g}=s,b=(r=t.useContext(_S),n=Li(Ih),r||n),x=AS(),w=function(e){if(!TS(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}}(i=null==c?"center"===d?x:null!=b?b:x:TS(c)?c:jc(c));if(!i||gr(f)&&gr(p)&&!t.isValidElement(h)&&"function"!=typeof h)return null;var O=ES(ES({},s),{},{viewBox:i});if(t.isValidElement(h)){var{labelRef:E}=O,j=wS(O,bS);return t.cloneElement(h,j)}if("function"==typeof h){var{content:S}=O,P=wS(O,xS);if(o=t.createElement(h,P),t.isValidElement(o))return o}else o=(e=>{var{value:t,formatter:r}=e,n=gr(e.children)?t:e.children;return"function"==typeof r?r(n):n})(s);var k=je(s);if(TS(i)){if("insideStart"===d||"insideEnd"===d||"end"===d)return MS(s,d,o,k,i);l=((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}=Wf(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}=Wf(n,i,f,c);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}})(i,s.offset,s.position)}else{if(!w)return null;var A=(e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:l,upperWidth:s,lowerWidth:c}=jc(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 j={x:u+s/2,y:o-y,horizontalAnchor:"middle",verticalAnchor:m};return E&&(j.height=Math.max(o-E.y,0),j.width=s),j}if("bottom"===r){var S={x:d+c/2,y:o+l+y,horizontalAnchor:"middle",verticalAnchor:g};return E&&(S.height=Math.max(E.y+E.height-(o+l),0),S.width=c),S}if("left"===r){var P={x:f-x,y:o+l/2,horizontalAnchor:w,verticalAnchor:"middle"};return E&&(P.width=Math.max(P.x-E.x,0),P.height=l),P}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?mS({x:f+x,y:o+l/2,horizontalAnchor:O,verticalAnchor:"middle"},A):"insideRight"===r?mS({x:f+p-x,y:o+l/2,horizontalAnchor:w,verticalAnchor:"middle"},A):"insideTop"===r?mS({x:u+s/2,y:o+y,horizontalAnchor:"middle",verticalAnchor:g},A):"insideBottom"===r?mS({x:d+c/2,y:o+l-y,horizontalAnchor:"middle",verticalAnchor:m},A):"insideTopLeft"===r?mS({x:u+x,y:o+y,horizontalAnchor:O,verticalAnchor:g},A):"insideTopRight"===r?mS({x:u+s-x,y:o+y,horizontalAnchor:w,verticalAnchor:g},A):"insideBottomLeft"===r?mS({x:d+x,y:o+l-y,horizontalAnchor:O,verticalAnchor:m},A):"insideBottomRight"===r?mS({x:d+c-x,y:o+l-y,horizontalAnchor:w,verticalAnchor:m},A):r&&"object"==typeof r&&(ur(r.x)||cr(r.x))&&(ur(r.y)||cr(r.y))?mS({x:a+hr(r.x,p),y:o+hr(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},A):mS({x:h,y:o+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},A)})({viewBox:w,position:d,offset:s.offset,parentViewBox:TS(u)?void 0:u});l=ES(ES({x:A.x,y:A.y,textAnchor:A.horizontalAnchor,verticalAnchor:A.verticalAnchor},void 0!==A.width?{width:A.width}:{}),void 0!==A.height?{height:A.height}:{})}return y.createElement(WE,{zIndex:s.zIndex},y.createElement(vS,SS({ref:g,className:a.clsx("recharts-label",v)},k,l,{textAnchor:lS(k.textAnchor)?k.textAnchor:l.textAnchor,breakAll:m}),o))}DS.displayName="Label";function CS(e){var{label:r,labelRef:n}=e;return((e,r,n)=>{if(!e)return null;var i={viewBox:r,labelRef:n};return!0===e?y.createElement(DS,SS({key:"label-implicit"},i)):dr(e)?y.createElement(DS,SS({key:"label-implicit",value:e},i)):t.isValidElement(e)?e.type===DS?t.cloneElement(e,ES({key:"label-implicit"},i)):y.createElement(DS,SS({key:"label-implicit",content:e},i)):NS(e)?y.createElement(DS,SS({key:"label-implicit",content:e},i)):e&&"object"==typeof e?y.createElement(DS,SS({},e,{key:"label-implicit"},i)):null})(r,AS(),n)||null}var zS=["valueAccessor"],LS=["dataKey","clockWise","id","textBreakAll","zIndex"];function RS(){return RS=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},RS.apply(null,arguments)}function BS(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 VS=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(function(e){return gr(e)||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}(t))return t},KS=t.createContext(void 0),$S=KS.Provider,FS=t.createContext(void 0);function US(e){var{valueAccessor:r=VS}=e,n=BS(e,zS),{dataKey:i,clockWise:a,id:o,textBreakAll:l,zIndex:s}=n,c=BS(n,LS),u=t.useContext(KS),d=t.useContext(FS),f=u||d;return f&&f.length?y.createElement(WE,{zIndex:null!=s?s:mh.label},y.createElement(Ne,{className:"recharts-label-list"},f.map((e,t)=>{var a,s=gr(i)?r(e,t):ys(e.payload,i),u=gr(o)?{}:{id:"".concat(o,"-").concat(t)};return y.createElement(DS,RS({key:"label-".concat(t)},je(e),c,u,{fill:null!==(a=n.fill)&&void 0!==a?a:e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:l,viewBox:e.viewBox,index:t,zIndex:0}))}))):null}function WS(e){var{label:t}=e;return t?!0===t?y.createElement(US,{key:"labelList-implicit"}):y.isValidElement(t)||NS(t)?y.createElement(US,{key:"labelList-implicit",content:t}):"object"==typeof t?y.createElement(US,RS({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function HS(){return HS=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},HS.apply(null,arguments)}FS.Provider,US.displayName="LabelList";var qS=e=>{var{cx:t,cy:r,r:n,className:i}=e,o=a.clsx("recharts-dot",i);return ur(t)&&ur(r)&&ur(n)?y.createElement("circle",HS({},Oe(e),Mr(e),{className:o,cx:t,cy:r,r:n})):null},YS=jl({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:GS,removeRadiusAxis:XS,addAngleAxis:ZS,removeAngleAxis:JS}=YS.actions,QS=YS.reducer;var eP,tP={exports:{}},rP={};function nP(){if(eP)return rP;eP=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 rP.ContextConsumer=a,rP.ContextProvider=o,rP.Element=e,rP.ForwardRef=l,rP.Fragment=r,rP.Lazy=d,rP.Memo=u,rP.Portal=t,rP.Profiler=i,rP.StrictMode=n,rP.Suspense=s,rP.SuspenseList=c,rP.isContextConsumer=function(e){return h(e)===a},rP.isContextProvider=function(e){return h(e)===o},rP.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},rP.isForwardRef=function(e){return h(e)===l},rP.isFragment=function(e){return h(e)===r},rP.isLazy=function(e){return h(e)===d},rP.isMemo=function(e){return h(e)===u},rP.isPortal=function(e){return h(e)===t},rP.isProfiler=function(e){return h(e)===i},rP.isStrictMode=function(e){return h(e)===n},rP.isSuspense=function(e){return h(e)===s},rP.isSuspenseList=function(e){return h(e)===c},rP.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)},rP.typeOf=h,rP}var iP,aP,oP={};
37
+ */zu||(zu=1,"production"===process.env.NODE_ENV?Iu.exports=function(){if(Su)return Du;Su=1;var e=t,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,l=e.useDebugValue;return Du.useSyncExternalStoreWithSelector=function(e,t,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,n=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(n,e))return t;var o=c(e);return void 0!==u&&u(t,o)?(n=e,t):(n=e,i=o)}var n,i,a=!1,o=void 0===s?null:s;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,s,c,u]);var p=n(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),l(p),p},Du}():Iu.exports=(Cu||(Cu=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=t,r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,l=e.useDebugValue;Lu.useSyncExternalStoreWithSelector=function(e,t,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,n=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(n,e))return t;var o=c(e);return void 0!==u&&u(t,o)?(n=e,t):(n=e,i=o)}var n,i,a=!1,o=void 0===s?null:s;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,s,c,u]);var p=n(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())}()),Lu)),Iu.exports;var Ru={notify(){},get:()=>[]};var Bu=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),Vu=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),Ku=(()=>Bu||Vu?v.useLayoutEffect:v.useEffect)();function $u(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Fu(e,t){if($u(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])||!$u(e[r[n]],t[r[n]]))return!1;return!0}var Uu=Symbol.for("react-redux-context"),Wu="undefined"!=typeof globalThis?globalThis:{};function Hu(){if(!v.createContext)return{};const e=Wu[Uu]??=new Map;let t=e.get(v.createContext);return t||(t=v.createContext(null),"production"!==process.env.NODE_ENV&&(t.displayName="ReactRedux"),e.set(v.createContext,t)),t}var qu=Hu();var Yu=function(e){const{children:t,context:r,serverState:n,store:i}=e,a=v.useMemo(()=>{const t=function(e){let t,r=Ru,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=Ru)}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}(i),r={store:i,subscription:t,getServerState:n?()=>n: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,n]),o=v.useMemo(()=>i.getState(),[i]);Ku(()=>{const{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);const l=r||qu;return v.createElement(l.Provider,{value:a},t)},Gu=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius","throttledEvents"]);function Xu(e,t){return null==e&&null==t||("number"==typeof e&&"number"==typeof t?e===t||e!=e&&t!=t:e===t)}function Zu(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(Gu.has(n)){if(null==e[n]&&null==t[n])continue;if(!Fu(e[n],t[n]))return!1}else if(!Xu(e[n],t[n]))return!1;return!0}function Ju(){return Ju=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},Ju.apply(null,arguments)}function Qu(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 ed(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qu(Object(r),!0).forEach(function(t){td(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qu(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function td(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)&&dr(e[0])&&dr(e[1])?e.join(" ~ "):e}var nd={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 id=e=>{var{separator:t=nd.separator,contentStyle:r,itemStyle:n,labelStyle:i=nd.labelStyle,payload:o,formatter:l,itemSorter:s,wrapperClassName:c,labelClassName:u,label:d,labelFormatter:f,accessibilityLayer:p=nd.accessibilityLayer}=e,h=ed(ed({},nd.contentStyle),r),y=ed({margin:0},i),m=!gr(d),g=m?d:"",b=a.clsx("recharts-default-tooltip",c),x=a.clsx("recharts-tooltip-label",u);m&&f&&null!=o&&(g=f(d,o));var w=p?{role:"status","aria-live":"assertive"}:{};return v.createElement("div",Ju({className:b,style:h},w),v.createElement("p",{className:x,style:y},v.isValidElement(g)?g:"".concat(g)),(()=>{if(o&&o.length){var e=function(e,t){return null==t?e:xa(e,t)}(o,s),r=e.map((e,r)=>{if(!e||"none"===e.type)return null;var i=e.formatter||l||rd,{value:a,name:s}=e,c=a,u=s;if(i){var d=i(a,s,e,r,o);if(Array.isArray(d))[c,u]=d;else{if(null==d)return null;c=d}}var f=ed(ed({},nd.itemStyle),{},{color:e.color||nd.itemStyle.color},n);return v.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:f},dr(u)?v.createElement("span",{className:"recharts-tooltip-item-name"},u):null,dr(u)?v.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,v.createElement("span",{className:"recharts-tooltip-item-value"},c),v.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return v.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},r)}return null})())},ad="recharts-tooltip-wrapper",od={visibility:"hidden"};function ld(e){var{coordinate:t,translateX:r,translateY:n}=e;return a.clsx(ad,{["".concat(ad,"-right")]:ur(r)&&t&&ur(t.x)&&r>=t.x,["".concat(ad,"-left")]:ur(r)&&t&&ur(t.x)&&r<t.x,["".concat(ad,"-bottom")]:ur(n)&&t&&ur(t.y)&&n>=t.y,["".concat(ad,"-top")]:ur(n)&&t&&ur(t.y)&&n<t.y})}function sd(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offset:i,position:a,reverseDirection:o,tooltipDimension:l,viewBox:s,viewBoxDimension:c}=e;if(a&&ur(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 cd=!("undefined"!=typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function ud(){var[e,r]=t.useState(()=>!cd&&(!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches));return t.useEffect(()=>{if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>{r(e.matches)};return e.addEventListener("change",t),()=>{e.removeEventListener("change",t)}}},[]),e}function dd(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 fd(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dd(Object(r),!0).forEach(function(t){pd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function pd(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 hd(e){if(!e.prefersReducedMotion||"auto"!==e.isAnimationActive)return e.isAnimationActive&&e.active?"transform ".concat(e.animationDuration,"ms ").concat(e.animationEasing):void 0}function yd(e){var t,r,n,i,a,o,l=ud(),[s,c]=v.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));v.useEffect(()=>{var t=t=>{var r,n,i,a;"Escape"===t.key&&c({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===(r=e.coordinate)||void 0===r?void 0:r.y]),!s.dismissed||(null!==(n=null===(i=e.coordinate)||void 0===i?void 0:i.x)&&void 0!==n?n:0)===s.dismissedAtCoordinate.x&&(null!==(a=null===(o=e.coordinate)||void 0===o?void 0:o.y)&&void 0!==a?a:0)===s.dismissedAtCoordinate.y||c(fd(fd({},s),{},{dismissed:!1}));var{cssClasses:u,cssProperties:d}=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=sd({allowEscapeViewBox:i,coordinate:a,key:"x",offset:l,position:s,reverseDirection:c,tooltipDimension:u.width,viewBox:f,viewBoxDimension:f.width}),translateY:n=sd({allowEscapeViewBox:i,coordinate:a,key:"y",offset:o,position:s,reverseDirection:c,tooltipDimension:u.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:d}):od,{cssProperties:t,cssClasses:ld({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}),f=e.hasPortalFromProps?{}:fd(fd({transition:hd({prefersReducedMotion:l,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},d),{},{pointerEvents:"none",position:"absolute",top:0,left:0}),p=fd(fd({},f),{},{visibility:!s.dismissed&&e.active&&e.hasPayload?"visible":"hidden"},e.wrapperStyle);return v.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:u,style:p,ref:e.innerRef},e.children)}var vd=v.memo(yd),md=()=>{var e;return null===(e=Li(e=>e.rootProps.accessibilityLayer))||void 0===e||e};function gd(){return gd=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},gd.apply(null,arguments)}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}var Od={curveBasisClosed:function(e){return new bt(e)},curveBasisOpen:function(e){return new xt(e)},curveBasis:function(e){return new gt(e)},curveBumpX:function(e){return new Je(e,!0)},curveBumpY:function(e){return new Je(e,!1)},curveLinearClosed:function(e){return new wt(e)},curveLinear:qe,curveMonotoneX:function(e){return new Pt(e)},curveMonotoneY:function(e){return new At(e)},curveNatural:function(e){return new _t(e)},curveStep:function(e){return new Mt(e,.5)},curveStepAfter:function(e){return new Mt(e,1)},curveStepBefore:function(e){return new Mt(e,0)}},Ed=e=>ds(e.x)&&ds(e.y),jd=e=>null!=e.base&&Ed(e.base)&&Ed(e),Sd=e=>e.x,Pd=e=>e.y,Ad={connectNulls:!1,type:"linear"},kd=e=>{var{type:t=Ad.type,points:r=[],baseLine:n,layout:i,connectNulls:a=Ad.connectNulls}=e,o=((e,t)=>{if("function"==typeof e)return e;var r="curve".concat(br(e));if(("curveMonotone"===r||"curveBump"===r)&&t){var n=Od["".concat(r).concat("vertical"===t?"Y":"X")];if(n)return n}return Od[r]||qe})(t,i),l=a?r.filter(Ed):r;if(Array.isArray(n)){var s=r.map((e,t)=>xd(xd({},e),{},{base:n[t]}));return("vertical"===i?Ze().y(Pd).x1(Sd).x0(e=>e.base.x):Ze().x(Sd).y1(Pd).y0(e=>e.base.y)).defined(jd).curve(o)(a?s.filter(jd):s)}return("vertical"===i&&ur(n)?Ze().y(Pd).x1(Sd).x0(n):ur(n)?Ze().x(Sd).y1(Pd).y0(n):Xe().x(Sd).y(Pd)).defined(Ed).curve(o)(l)},_d=e=>{var{className:t,points:r,path:n,pathRef:i}=e,o=Mc();if(!(r&&r.length||n))return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},s=r&&r.length?kd(l):n;return v.createElement("path",gd({},Oe(e),Mr(e),{className:a.clsx("recharts-curve",t),d:null===s?void 0:s,ref:i}))},Nd=["x","y","top","left","width","height","className"];function Md(){return Md=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},Md.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 Id(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 Dd=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),Cd=e=>{var{x:t=0,y:r=0,top:n=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?Td(Object(r),!0).forEach(function(t){Id(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}({x:t,y:r,top:n,left:i,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,Nd));return ur(t)&&ur(r)&&ur(o)&&ur(l)&&ur(n)&&ur(i)?v.createElement("path",Md({},je(c),{className:a.clsx("recharts-cross",s),d:Dd(t,r,o,l,n,i)})):null};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){Rd(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 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 Bd=(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(","),Vd=(e,t)=>Object.keys(t).reduce((r,n)=>Ld(Ld({},r),{},{[n]:e(n,t[n])}),{});function Kd(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 $d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kd(Object(r),!0).forEach(function(t){Fd(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kd(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Fd(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 Ud=(e,t,r)=>e+(t-e)*r,Wd=e=>{var{from:t,to:r}=e;return t!==r},Hd=(e,t,r)=>{var n=Vd((t,r)=>{if(Wd(r)){var[n,i]=e(r.from,r.to,r.velocity);return $d($d({},r),{},{from:n,velocity:i})}return r},t);return r<1?Vd((e,t)=>Wd(t)&&null!=n[e]?$d($d({},t),{},{velocity:Ud(t.velocity,n[e].velocity,r),from:Ud(t.from,n[e].from,r)}):t,t):Hd(e,n,r-1)};function qd(e,t,r,n,i,a){var o,l=n.reduce((r,n)=>$d($d({},r),{},{[n]:{from:e[n],velocity:0,to:t[n]}}),{}),s=null,c=n=>{o||(o=n);var u=(n-o)/r.dt;l=Hd(r,l,u),i($d($d($d({},e),t),Vd((e,t)=>t.from,l))),o=n,Object.values(l).filter(Wd).length&&(s=a.setTimeout(c))};return()=>(s=a.setTimeout(c),()=>{var e;null===(e=s)||void 0===e||e()})}var Yd=(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($d($d({},e),t)),()=>{}):!0===r.isStepper?qd(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:$d($d({},r),{},{[n]:[i,a]})},{}),u=i=>{l||(l=i);var d=(i-l)/n,f=Vd((e,t)=>Ud(...t,r(d)),c);if(a($d($d($d({},e),t),f)),d<1)s=o.setTimeout(u);else{var p=Vd((e,t)=>Ud(...t,r(1)),c);a($d($d($d({},e),t),p))}};return()=>(s=o.setTimeout(u),()=>{var e;null===(e=s)||void 0===e||e()})}(e,t,r,n,s,i,a)},Gd=1e-4,Xd=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Zd=(e,t)=>e.map((e,r)=>e*t**r).reduce((e,t)=>e+t),Jd=(e,t)=>r=>{var n=Xd(e,t);return Zd(n,r)},Qd=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]},ef=(e,t,r,n)=>{var i,a,o=Jd(e,r),l=Jd(t,n),s=(i=e,a=r,e=>{var t=[...Xd(i,a).map((e,t)=>e*t).slice(1),0];return Zd(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)<Gd||a<Gd)return l(r);r=c(r-i/a)}return l(r)};return u.isStepper=!1,u},tf=function(){return ef(...Qd(...arguments))},rf=e=>{if("string"==typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return tf(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)<Gd&&Math.abs(o)<Gd?[i,0]:[l,o]};return i.isStepper=!0,i.dt=n,i}();default:if("cubic-bezier"===e.split("(")[0])return tf(e)}return"function"==typeof e?e:null};class nf{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 af(){return e=new nf,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 of=t.createContext(af);var lf={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},sf={t:0},cf={t:1};function uf(e){var r,n,i,a=Cr(e,lf),{isActive:o,canBegin:l,duration:s,easing:c,begin:u,onAnimationEnd:d,onAnimationStart:f,children:p}=a,h=ud(),y="auto"===o?!cd&&!h:o,v=(r=a.animationId,n=a.animationManager,i=t.useContext(of),t.useMemo(()=>null!=n?n:i(r),[r,n,i])),[m,g]=t.useState(y?sf:cf),b=t.useRef(null);return t.useEffect(()=>{y||g(cf)},[y]),t.useEffect(()=>{if(!y||!l)return wr;var e=Yd(sf,cf,rf(c),s,g,v.getTimeoutController());return v.start([f,u,()=>{b.current=e()},s,d]),()=>{v.stop(),b.current&&b.current(),d()}},[y,l,s,c,u,f,d,v]),p(m.t)}function df(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",n=t.useRef(pr(r)),i=t.useRef(e);return i.current!==e&&(n.current=pr(r),i.current=e),n.current}var ff,pf,hf,yf,vf,mf,gf,bf,xf,wf,Of=["radius"],Ef=["radius"];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 Sf(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){Pf(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 Pf(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 Af(){return Af=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},Af.apply(null,arguments)}function kf(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 _f(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Nf=(e,t,r,n,i)=>{var a,o=ar(r),l=ar(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,y=null!==(h=i[p])&&void 0!==h?h:0;f[p]=y>s?s:y}a=or(ff||(ff=_f(["M",",",""])),e,t+c*f[0]),f[0]>0&&(a+=or(pf||(pf=_f(["A ",",",",0,0,",",",",",""])),f[0],f[0],d,e+u*f[0],t)),a+=or(hf||(hf=_f(["L ",",",""])),e+r-u*f[1],t),f[1]>0&&(a+=or(yf||(yf=_f(["A ",",",",0,0,",",\n ",",",""])),f[1],f[1],d,e+r,t+c*f[1])),a+=or(vf||(vf=_f(["L ",",",""])),e+r,t+n-c*f[2]),f[2]>0&&(a+=or(mf||(mf=_f(["A ",",",",0,0,",",\n ",",",""])),f[2],f[2],d,e+r-u*f[2],t+n)),a+=or(gf||(gf=_f(["L ",",",""])),e+u*f[3],t+n),f[3]>0&&(a+=or(bf||(bf=_f(["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 v=Math.min(s,i);a=or(xf||(xf=_f(["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*v,v,v,d,e+u*v,t,e+r-u*v,t,v,v,d,e+r,t+c*v,e+r,t+n-c*v,v,v,d,e+r-u*v,t+n,e+u*v,t+n,v,v,d,e,t+n-c*v)}else a=or(wf||(wf=_f(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return a},Mf={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Tf=e=>{var r=Cr(e,Mf),n=t.useRef(null),[i,o]=t.useState(-1);t.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&o(e)}catch(e){}},[]);var{x:l,y:s,width:c,height:u,radius:d,className:f}=r,{animationEasing:p,animationDuration:h,animationBegin:y,isAnimationActive:m,isUpdateAnimationActive:g}=r,b=t.useRef(c),x=t.useRef(u),w=t.useRef(l),O=t.useRef(s),E=df(t.useMemo(()=>({x:l,y:s,width:c,height:u,radius:d}),[l,s,c,u,d]),"rectangle-");if(l!==+l||s!==+s||c!==+c||u!==+u||0===c||0===u)return null;var j=a.clsx("recharts-rectangle",f);if(!g){var S=je(r),{radius:P}=S,A=kf(S,Of);return v.createElement("path",Af({},A,{x:ar(l),y:ar(s),width:ar(c),height:ar(u),radius:"number"==typeof d?d:void 0,className:j,d:Nf(l,s,c,u,d)}))}var k=b.current,_=x.current,N=w.current,M=O.current,T="0px ".concat(-1===i?1:i,"px"),I="".concat(i,"px ").concat(i,"px"),D=Bd(["strokeDasharray"],h,"string"==typeof p?p:Mf.animationEasing);return v.createElement(uf,{animationId:E,key:E,canBegin:i>0,duration:h,easing:p,isActive:g,begin:y},e=>{var t,i=vr(k,c,e),a=vr(_,u,e),o=vr(N,l,e),f=vr(M,s,e);n.current&&(b.current=i,x.current=a,w.current=o,O.current=f),t=m?e>0?{transition:D,strokeDasharray:I}:{strokeDasharray:T}:{strokeDasharray:I};var p=je(r),{radius:h}=p,y=kf(p,Ef);return v.createElement("path",Af({},y,{radius:"number"==typeof d?d:void 0,className:j,d:Nf(o,f,i,a,d),ref:n,style:Sf(Sf({},t),r.style)}))})};function If(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 Df(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?If(Object(r),!0).forEach(function(t){Cf(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):If(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Cf(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 zf,Lf,Rf,Bf,Vf,Kf,$f,Ff=Math.PI/180,Uf=e=>180*e/Math.PI,Wf=(e,t,r,n)=>({x:e+Math.cos(-Ff*n)*r,y:t+Math.sin(-Ff*n)*r}),Hf=(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:Uf(s),angleInRadian:s}},qf=(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)},Yf=(e,t)=>{var{relativeX:r,relativeY:n}=e,{radius:i,angle:a}=Hf({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?Df(Df({},t),{},{radius:i,angle:qf(d,t)}):null};function Gf(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e;return{points:[Wf(t,r,n,i),Wf(t,r,n,a)],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Xf(){return Xf=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},Xf.apply(null,arguments)}function Zf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Jf=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)/Ff,d=s?i:i+a*u,f=s?i-a*u:i;return{center:Wf(t,r,c,d),circleTangency:Wf(t,r,n,d),lineTangency:Wf(t,r,c*Math.cos(u*Ff),f),theta:u}},Qf=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,l=((e,t)=>lr(t-e)*Math.min(Math.abs(t-e),359.999))(a,o),s=a+l,c=Wf(t,r,i,a),u=Wf(t,r,i,s),d=or(zf||(zf=Zf(["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=Wf(t,r,n,a),p=Wf(t,r,n,s);d+=or(Lf||(Lf=Zf(["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+=or(Rf||(Rf=Zf(["L ",","," Z"])),t,r);return d},ep={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},tp=e=>{var t=Cr(e,ep),{cx:r,cy:n,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=a.clsx("recharts-sector",f),y=o-i,m=hr(l,y,0,!0);return p=m>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=lr(c-s),{circleTangency:d,lineTangency:f,theta:p}=Jf({cx:t,cy:r,radius:i,angle:s,sign:u,cornerRadius:a,cornerIsExternal:l}),{circleTangency:h,lineTangency:y,theta:v}=Jf({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-v;if(m<0)return o?or(Bf||(Bf=Zf(["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):Qf({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:s,endAngle:c});var g=or(Vf||(Vf=Zf(["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),y.x,y.y);if(n>0){var{circleTangency:b,lineTangency:x,theta:w}=Jf({cx:t,cy:r,radius:n,angle:s,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),{circleTangency:O,lineTangency:E,theta:j}=Jf({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),S=l?Math.abs(s-c):Math.abs(s-c)-w-j;if(S<0&&0===a)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=or(Kf||(Kf=Zf(["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,+(S>180),+(u>0),b.x,b.y,a,a,+(u<0),x.x,x.y)}else g+=or($f||($f=Zf(["L",",","Z"])),t,r);return g})({cx:r,cy:n,innerRadius:i,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:d}):Qf({cx:r,cy:n,innerRadius:i,outerRadius:o,startAngle:u,endAngle:d}),v.createElement("path",Xf({},je(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(Nr(t)){if("centric"===e){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:l}=t,s=Wf(n,i,a,l),c=Wf(n,i,o,l);return[{x:s.x,y:s.y},{x:c.x,y:c.y}]}return Gf(t)}}var np,ip,ap,op,lp,sp={},cp={},up={};function dp(){return np||(np=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oa();e.toNumber=function(e){return t.isSymbol(e)?NaN:Number(e)}}(up)),up}function fp(){return ip||(ip=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dp();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}}(cp)),cp}function pp(){return ap||(ap=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ma(),r=fp();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}}(sp)),sp}function hp(){return lp?op:(lp=1,op=pp().range)}var yp=zt(hp()),vp=e=>e.chartData,mp=Gi([vp],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),gp=(e,t,r,n)=>n?mp(e):vp(e),bp=(e,t,r)=>r?mp(e):vp(e),xp=Gi([gp],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});Gi([mp],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});var wp=Gi([vp],e=>{var{chartData:t,dataStartIndex:r,dataEndIndex:n}=e;return null!=t?t.slice(r,n+1):[]});function Op(e){if(Array.isArray(e)&&2===e.length){var[t,r]=e;if(ds(t)&&ds(r))return!0}return!1}function Ep(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function jp(e,t){if(t&&"function"!=typeof e&&Array.isArray(e)&&2===e.length){var r,n,[i,a]=e;if(ds(i))r=i;else if("function"==typeof i)return;if(ds(a))n=a;else if("function"==typeof a)return;var o=[r,n];if(Op(o))return o}}var Sp,Pp=1e9,Ap=!0,kp="[DecimalError] ",_p=kp+"Invalid argument: ",Np=kp+"Exponent out of range: ",Mp=Math.floor,Tp=Math.pow,Ip=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Dp=1e7,Cp=9007199254740991,zp=Mp(1286742750677284.5),Lp={};function Rp(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)),Ap?Yp(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)/Dp|0,s[a]%=Dp;for(r&&(s.unshift(r),++i),l=s.length;0==s[--l];)s.pop();return t.d=s,t.e=i,Ap?Yp(t,d):t}function Bp(e,t,r){if(e!==~~e||e<t||e>r)throw Error(_p+e)}function Vp(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+=Wp(r)),a+=n;(r=7-(n=(o=e[t])+"").length)&&(a+=Wp(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}Lp.absoluteValue=Lp.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Lp.comparedTo=Lp.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},Lp.decimalPlaces=Lp.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},Lp.dividedBy=Lp.div=function(e){return Kp(this,new this.constructor(e))},Lp.dividedToIntegerBy=Lp.idiv=function(e){var t=this.constructor;return Yp(Kp(this,new t(e),0,1),t.precision)},Lp.equals=Lp.eq=function(e){return!this.cmp(e)},Lp.exponent=function(){return Fp(this)},Lp.greaterThan=Lp.gt=function(e){return this.cmp(e)>0},Lp.greaterThanOrEqualTo=Lp.gte=function(e){return this.cmp(e)>=0},Lp.isInteger=Lp.isint=function(){return this.e>this.d.length-2},Lp.isNegative=Lp.isneg=function(){return this.s<0},Lp.isPositive=Lp.ispos=function(){return this.s>0},Lp.isZero=function(){return 0===this.s},Lp.lessThan=Lp.lt=function(e){return this.cmp(e)<0},Lp.lessThanOrEqualTo=Lp.lte=function(e){return this.cmp(e)<1},Lp.logarithm=Lp.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(Sp))throw Error(kp+"NaN");if(r.s<1)throw Error(kp+(r.s?"NaN":"-Infinity"));return r.eq(Sp)?new n(0):(Ap=!1,t=Kp(Hp(r,a),Hp(e,a),a),Ap=!0,Yp(t,i))},Lp.minus=Lp.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Gp(t,e):Rp(t,(e.s=-e.s,e))},Lp.modulo=Lp.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(kp+"NaN");return r.s?(Ap=!1,t=Kp(r,e,0,1).times(e),Ap=!0,r.minus(t)):Yp(new n(r),i)},Lp.naturalExponential=Lp.exp=function(){return $p(this)},Lp.naturalLogarithm=Lp.ln=function(){return Hp(this)},Lp.negated=Lp.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Lp.plus=Lp.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Rp(t,e):Gp(t,(e.s=-e.s,e))},Lp.precision=Lp.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(_p+e);if(t=Fp(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},Lp.squareRoot=Lp.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(kp+"NaN")}for(e=Fp(l),Ap=!1,0==(i=Math.sqrt(+l))||i==1/0?(((t=Vp(l.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Mp((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(Kp(l,a,o+2)).times(.5),Vp(a.d).slice(0,o)===(t=Vp(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&"4999"==t){if(Yp(a,r+1,0),a.times(a).eq(l)){n=a;break}}else if("9999"!=t)break;o+=4}return Ap=!0,Yp(n,r)},Lp.times=Lp.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%Dp|0,t=l/Dp|0;a[i]=(a[i]+t)%Dp|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Ap?Yp(e,d.precision):e},Lp.toDecimalPlaces=Lp.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(Bp(e,0,Pp),void 0===t?t=n.rounding:Bp(t,0,8),Yp(r,e+Fp(r)+1,t))},Lp.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=Xp(n,!0):(Bp(e,0,Pp),void 0===t?t=i.rounding:Bp(t,0,8),r=Xp(n=Yp(new i(n),e+1,t),!0,e+1)),r},Lp.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return void 0===e?Xp(i):(Bp(e,0,Pp),void 0===t?t=a.rounding:Bp(t,0,8),r=Xp((n=Yp(new a(i),e+Fp(i)+1,t)).abs(),!1,e+Fp(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},Lp.toInteger=Lp.toint=function(){var e=this,t=e.constructor;return Yp(new t(e),Fp(e)+1,t.rounding)},Lp.toNumber=function(){return+this},Lp.toPower=Lp.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(Sp);if(!(l=new s(l)).s){if(e.s<1)throw Error(kp+"Infinity");return l}if(l.eq(Sp))return l;if(n=s.precision,e.eq(Sp))return Yp(l,n);if(o=(t=e.e)>=(r=e.d.length-1),a=l.s,o){if((r=c<0?-c:c)<=Cp){for(i=new s(Sp),t=Math.ceil(n/7+4),Ap=!1;r%2&&Zp((i=i.times(l)).d,t),0!==(r=Mp(r/2));)Zp((l=l.times(l)).d,t);return Ap=!0,e.s<0?new s(Sp).div(i):Yp(i,n)}}else if(a<0)throw Error(kp+"NaN");return a=a<0&&1&e.d[Math.max(t,r)]?-1:1,l.s=1,Ap=!1,i=e.times(Hp(l,n+12)),Ap=!0,(i=$p(i)).s=a,i},Lp.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return void 0===e?n=Xp(i,(r=Fp(i))<=a.toExpNeg||r>=a.toExpPos):(Bp(e,1,Pp),void 0===t?t=a.rounding:Bp(t,0,8),n=Xp(i=Yp(new a(i),e,t),e<=(r=Fp(i))||r<=a.toExpNeg,e)),n},Lp.toSignificantDigits=Lp.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(Bp(e,1,Pp),void 0===t?t=r.rounding:Bp(t,0,8)),Yp(new r(this),e,t)},Lp.toString=Lp.valueOf=Lp.val=Lp.toJSON=Lp[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Fp(e),r=e.constructor;return Xp(e,t<=r.toExpNeg||t>=r.toExpPos)};var Kp=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%Dp|0,n=r/Dp|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*Dp+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,y,v,m,g,b,x,w,O,E,j,S=n.constructor,P=n.s==i.s?1:-1,A=n.d,k=i.d;if(!n.s)return new S(n);if(!i.s)throw Error(kp+"Division by zero");for(s=n.e-i.e,E=k.length,w=A.length,h=(p=new S(P)).d=[],c=0;k[c]==(A[c]||0);)++c;if(k[c]>(A[c]||0)&&--s,(g=null==a?a=S.precision:o?a+(Fp(n)-Fp(i))+1:a)<0)return new S(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*Dp+(A[c]||0),h[c]=b/k|0,u=b%k|0;else{for((u=Dp/(k[0]+1)|0)>1&&(k=e(k,u),A=e(A,u),E=k.length,w=A.length),x=E,v=(y=A.slice(0,E)).length;v<E;)y[v++]=0;(j=k.slice()).unshift(0),O=k[0],k[1]>=Dp/2&&++O;do{u=0,(l=t(k,y,E,v))<0?(m=y[0],E!=v&&(m=m*Dp+(y[1]||0)),(u=m/O|0)>1?(u>=Dp&&(u=Dp-1),1==(l=t(d=e(k,u),y,f=d.length,v=y.length))&&(u--,r(d,E<f?j:k,f))):(0==u&&(l=u=1),d=k.slice()),(f=d.length)<v&&d.unshift(0),r(y,d,v),-1==l&&(l=t(k,y,E,v=y.length))<1&&(u++,r(y,E<v?j:k,v)),v=y.length):0===l&&(u++,y=[0]),h[c++]=u,l&&y[0]?y[v++]=A[x]||0:(y=[A[x]],v=1)}while((x++<w||void 0!==y[0])&&g--)}return h[0]||h.shift(),p.e=s,Yp(p,o?a+Fp(p)+1:a)}}();function $p(e,t){var r,n,i,a,o,l=0,s=0,c=e.constructor,u=c.precision;if(Fp(e)>16)throw Error(Np+Fp(e));if(!e.s)return new c(Sp);for(Ap=!1,o=u,a=new c(.03125);e.abs().gte(.1);)e=e.times(a),s+=5;for(o+=Math.log(Tp(2,s))/Math.LN10*2+5|0,r=n=i=new c(Sp),c.precision=o;;){if(n=Yp(n.times(e),o),r=r.times(++l),Vp((a=i.plus(Kp(n,r,o))).d).slice(0,o)===Vp(i.d).slice(0,o)){for(;s--;)i=Yp(i.times(i),o);return c.precision=u,null==t?(Ap=!0,Yp(i,u)):i}i=a}}function Fp(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function Up(e,t,r){if(t>e.LN10.sd())throw Ap=!0,r&&(e.precision=r),Error(kp+"LN10 precision limit exceeded");return Yp(new e(e.LN10),t)}function Wp(e){for(var t="";e--;)t+="0";return t}function Hp(e,t){var r,n,i,a,o,l,s,c,u,d=1,f=e,p=f.d,h=f.constructor,y=h.precision;if(f.s<1)throw Error(kp+(f.s?"NaN":"-Infinity"));if(f.eq(Sp))return new h(0);if(null==t?(Ap=!1,c=y):c=t,f.eq(10))return null==t&&(Ap=!0),Up(h,c);if(c+=10,h.precision=c,n=(r=Vp(p)).charAt(0),a=Fp(f),!(Math.abs(a)<15e14))return s=Up(h,c+2,y).times(a+""),f=Hp(new h(n+"."+r.slice(1)),c-10).plus(s),h.precision=y,null==t?(Ap=!0,Yp(f,y)):f;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=Vp((f=f.times(e)).d)).charAt(0),d++;for(a=Fp(f),n>1?(f=new h("0."+r),a++):f=new h(n+"."+r.slice(1)),l=o=f=Kp(f.minus(Sp),f.plus(Sp),c),u=Yp(f.times(f),c),i=3;;){if(o=Yp(o.times(u),c),Vp((s=l.plus(Kp(o,new h(i),c))).d).slice(0,c)===Vp(l.d).slice(0,c))return l=l.times(2),0!==a&&(l=l.plus(Up(h,c+2,y).times(a+""))),l=Kp(l,new h(d),c),h.precision=y,null==t?(Ap=!0,Yp(l,y)):l;l=s,i+=2}}function qp(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=Mp(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),Ap&&(e.e>zp||e.e<-zp))throw Error(Np+r)}else e.s=0,e.e=0,e.d=[0];return e}function Yp(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=Tp(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/Tp(10,o-i):0:d[u-1])%10&1||r==(e.s<0?8:7))),t<1||!d[0])return s?(a=Fp(e),d.length=1,t=t-a-1,d[0]=Tp(10,(7-t%7)%7),e.e=Mp(-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=Tp(10,7-n),d[u]=i>0?(c/Tp(10,o-i)%Tp(10,i)|0)*a:0),s)for(;;){if(0==u){(d[0]+=a)==Dp&&(d[0]=1,++e.e);break}if(d[u]+=a,d[u]!=Dp)break;d[u--]=0,a=1}for(n=d.length;0===d[--n];)d.pop();if(Ap&&(e.e>zp||e.e<-zp))throw Error(Np+Fp(e));return e}function Gp(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),Ap?Yp(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]=Dp-1;--s[a],s[i]+=Dp}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,Ap?Yp(t,p):t):new f(0)}function Xp(e,t,r){var n,i=Fp(e),a=Vp(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Wp(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Wp(-i-1)+a,r&&(n=r-o)>0&&(a+=Wp(n))):i>=o?(a+=Wp(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Wp(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Wp(n))),e.s<0?"-"+a:a}function Zp(e,t){if(e.length>t)return e.length=t,!0}function Jp(e){if(!e||"object"!=typeof e)throw Error(kp+"Object expected");var t,r,n,i=["precision",1,Pp,"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(!(Mp(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(_p+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(_p+r+": "+n);this[r]=new this(n)}return this}var Qp=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(_p+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])):qp(t,e.toString())}if("string"!=typeof e)throw Error(_p+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Ip.test(e))throw Error(_p+e);qp(t,e)}if(a.prototype=Lp,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=Jp,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"});Sp=new Qp(1);var eh=Qp;function th(e){return 0===e?1:Math.floor(new eh(e).abs().log(10).toNumber())+1}function rh(e,t,r){for(var n=new eh(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var nh=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},ih=(e,t,r)=>{if(e.lte(0))return new eh(0);var n=th(e.toNumber()),i=new eh(10).pow(n),a=e.div(i),o=1!==n?.05:.1,l=new eh(Math.ceil(a.div(o).toNumber())).add(r).mul(o).mul(i);return new eh(t?l.toNumber():Math.ceil(l.toNumber()))},ah=(e,t,r)=>{var n;if(e.lte(0))return new eh(0);var i=[1,2,2.5,5],a=e.toNumber(),o=Math.floor(new eh(a).abs().log(10).toNumber()),l=new eh(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 eh(10).pow(u))}var d=null!==(n=i[c])&&void 0!==n?n:1,f=new eh(d).mul(l);return t?f:new eh(Math.ceil(f.toNumber()))},oh=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]:ih;if(!Number.isFinite((t-e)/(r-1)))return{step:new eh(0),tickMin:new eh(0),tickMax:new eh(0)};var o,l=a(new eh(t).sub(e).div(r-1),n,i);o=e<=0&&t>=0?new eh(0):(o=new eh(e).add(t).div(2)).sub(new eh(o).mod(l));var s=Math.ceil(o.sub(e).div(l).toNumber()),c=Math.ceil(new eh(t).sub(o).div(l).toNumber()),u=s+c+1;return u>r?oh(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 eh(s).mul(l)),tickMax:o.add(new eh(c).mul(l))})},lh=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]=nh([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 eh(1),i=new eh(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new eh(10).pow(th(e)-1),i=new eh(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new eh(Math.floor(e)))}else 0===e?i=new eh(Math.floor((t-1)/2)):r||(i=new eh(Math.floor(e)));for(var o=Math.floor((t-1)/2),l=[],s=0;s<t;s++)l.push(i.add(new eh(s-o).mul(n)).toNumber());return l})(l,n,i);var u="snap125"===a?ah:ih,{step:d,tickMin:f,tickMax:p}=oh(l,s,o,i,0,u),h=rh(f,p.add(new eh(.1).mul(d)),d);return t>r?h.reverse():h},sh=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]=nh([r,n]);if(o===-1/0||l===1/0)return[r,n];if(o===l)return[o];var s="snap125"===a?ah:ih,c=Math.max(t,2),u=s(new eh(l).sub(o).div(c-1),i,0),d=[...rh(new eh(o),new eh(l),u),l];return!1===i&&(d=d.map(e=>Math.round(e))),r>n?d.reverse():d},ch=e=>e.rootProps.maxBarSize,uh=e=>e.rootProps.barCategoryGap,dh=e=>e.rootProps.stackOffset,fh=e=>e.rootProps.reverseStackOrder,ph=e=>e.options.chartName,hh=e=>e.rootProps.syncId,yh=e=>e.rootProps.syncMethod,vh=e=>e.options.eventEmitter,mh={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},gh=(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t};function bh(e,t,r){return"auto"!==r?r:null!=e?ms(e,t)?"category":"number":void 0}function xh(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 wh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xh(Object(r),!0).forEach(function(t){Oh(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xh(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Oh(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 Eh={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"},jh={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"},Sh=Gi([(e,t)=>{if(null!=t)return e.polarAxis.angleAxis[t]},Ic],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=bh(t,"angleAxis",Eh.type))&&void 0!==r?r:"category";return wh(wh({},Eh),{},{type:n})}),Ph=Gi([(e,t)=>e.polarAxis.radiusAxis[t],Ic],(e,t)=>{var r;if(null!=e)return e;var n=null!==(r=bh(t,"radiusAxis",jh.type))&&void 0!==r?r:"category";return wh(wh({},jh),{},{type:n})}),Ah=e=>e.polarOptions,kh=Gi([Ms,Ts,Hs],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}),_h=Gi([Ah,kh],(e,t)=>{if(null!=e)return hr(e.innerRadius,t,0)}),Nh=Gi([Ah,kh],(e,t)=>{if(null!=e)return hr(e.outerRadius,t,.8*t)}),Mh=Gi([Ah],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]});Gi([Sh,Mh],gh);var Th=Gi([kh,_h,Nh],(e,t,r)=>{if(null!=e&&null!=t&&null!=r)return[t,r]});Gi([Ph,Th],gh);var Ih=Gi([Nc,Ah,_h,Nh,Ms,Ts],(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:hr(o,i,i/2),cy:hr(l,a,a/2),innerRadius:r,outerRadius:n,startAngle:s,endAngle:c,clockWise:!1}}}),Dh=(e,t)=>t,Ch=(e,t,r)=>r;function zh(e){return null==e?void 0:e.id}function Lh(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=zh(e);r.forEach((t,r)=>{var n,s=null==a||i?r:String(vs(t,a,null)),c=vs(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 Rh(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}var Bh=(e,t)=>e===t||null!=e&&null!=t&&(e[0]===t[0]&&e[1]===t[1]);function Vh(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var Kh=e=>{var t=Nc(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},$h=e=>e.tooltip.settings.axisId;function Fh(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 Uh(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Wh(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Hh(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=Uh,r=(t,r)=>Uh(e(t),r),n=(t,r)=>e(t)-r):(t=e===Uh||e===Wh?e:qh,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 qh(){return 0}function Yh(e){return null===e?NaN:+e}const Gh=Hh(Uh).right;Hh(Yh).center;class Xh extends Map{constructor(e,t=Jh){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(Zh(this,e))}has(e){return super.has(Zh(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 Zh({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Jh(e){return null!==e&&"object"==typeof e?e.valueOf():e}function Qh(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const ey=Math.sqrt(50),ty=Math.sqrt(10),ry=Math.sqrt(2);function ny(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>=ey?10:a>=ty?5:a>=ry?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?ny(e,t,2*r):[l,s,c]}function iy(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,a,o]=n?ny(t,e,r):ny(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 ay(e,t,r){return ny(e=+e,t=+t,r=+r)[2]}function oy(e,t,r){r=+r;const n=(t=+t)<(e=+e),i=n?ay(t,e,r):ay(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function ly(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){let r;for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);return r}function cy(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?Qh:function(e=Uh){if(e===Uh)return Qh;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);cy(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(uy(e,r,t),i(e[n],a)>0&&uy(e,r,n);o<l;){for(uy(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}0===i(e[r],a)?uy(e,r,l):(++l,uy(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function uy(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function dy(e,t,r=Yh){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 fy(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function py(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 hy=Symbol("implicit");function yy(){var e=new Xh,t=[],r=[],n=hy;function i(i){let a=e.get(i);if(void 0===a){if(n!==hy)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 Xh;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 yy(t,r).unknown(n)},fy.apply(i,arguments),i}function vy(){var e,t,r=yy().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 vy(n(),[a,o]).round(l).paddingInner(s).paddingOuter(c).align(u)},fy.apply(d(),arguments)}function my(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return my(t())},e}function gy(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function by(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xy(){}var wy=.7,Oy=1/wy,Ey="\\s*([+-]?\\d+)\\s*",jy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Sy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Py=/^#([0-9a-f]{3,8})$/,Ay=new RegExp(`^rgb\\(${Ey},${Ey},${Ey}\\)$`),ky=new RegExp(`^rgb\\(${Sy},${Sy},${Sy}\\)$`),_y=new RegExp(`^rgba\\(${Ey},${Ey},${Ey},${jy}\\)$`),Ny=new RegExp(`^rgba\\(${Sy},${Sy},${Sy},${jy}\\)$`),My=new RegExp(`^hsl\\(${jy},${Sy},${Sy}\\)$`),Ty=new RegExp(`^hsla\\(${jy},${Sy},${Sy},${jy}\\)$`),Iy={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 Dy(){return this.rgb().formatHex()}function Cy(){return this.rgb().formatRgb()}function zy(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Py.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Ly(t):3===r?new Vy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Ry(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Ry(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=Ay.exec(e))?new Vy(t[1],t[2],t[3],1):(t=ky.exec(e))?new Vy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_y.exec(e))?Ry(t[1],t[2],t[3],t[4]):(t=Ny.exec(e))?Ry(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=My.exec(e))?Hy(t[1],t[2]/100,t[3]/100,1):(t=Ty.exec(e))?Hy(t[1],t[2]/100,t[3]/100,t[4]):Iy.hasOwnProperty(e)?Ly(Iy[e]):"transparent"===e?new Vy(NaN,NaN,NaN,0):null}function Ly(e){return new Vy(e>>16&255,e>>8&255,255&e,1)}function Ry(e,t,r,n){return n<=0&&(e=t=r=NaN),new Vy(e,t,r,n)}function By(e,t,r,n){return 1===arguments.length?((i=e)instanceof xy||(i=zy(i)),i?new Vy((i=i.rgb()).r,i.g,i.b,i.opacity):new Vy):new Vy(e,t,r,null==n?1:n);var i}function Vy(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ky(){return`#${Wy(this.r)}${Wy(this.g)}${Wy(this.b)}`}function $y(){const e=Fy(this.opacity);return`${1===e?"rgb(":"rgba("}${Uy(this.r)}, ${Uy(this.g)}, ${Uy(this.b)}${1===e?")":`, ${e})`}`}function Fy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Uy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wy(e){return((e=Uy(e))<16?"0":"")+e.toString(16)}function Hy(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Yy(e,t,r,n)}function qy(e){if(e instanceof Yy)return new Yy(e.h,e.s,e.l,e.opacity);if(e instanceof xy||(e=zy(e)),!e)return new Yy;if(e instanceof Yy)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 Yy(o,l,s,e.opacity)}function Yy(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Gy(e){return(e=(e||0)%360)<0?e+360:e}function Xy(e){return Math.max(0,Math.min(1,e||0))}function Zy(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}gy(xy,zy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Dy,formatHex:Dy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return qy(this).formatHsl()},formatRgb:Cy,toString:Cy}),gy(Vy,By,by(xy,{brighter(e){return e=null==e?Oy:Math.pow(Oy,e),new Vy(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?wy:Math.pow(wy,e),new Vy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vy(Uy(this.r),Uy(this.g),Uy(this.b),Fy(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:Ky,formatHex:Ky,formatHex8:function(){return`#${Wy(this.r)}${Wy(this.g)}${Wy(this.b)}${Wy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$y,toString:$y})),gy(Yy,function(e,t,r,n){return 1===arguments.length?qy(e):new Yy(e,t,r,null==n?1:n)},by(xy,{brighter(e){return e=null==e?Oy:Math.pow(Oy,e),new Yy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?wy:Math.pow(wy,e),new Yy(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 Vy(Zy(e>=240?e-240:e+120,i,n),Zy(e,i,n),Zy(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Yy(Gy(this.h),Xy(this.s),Xy(this.l),Fy(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=Fy(this.opacity);return`${1===e?"hsl(":"hsla("}${Gy(this.h)}, ${100*Xy(this.s)}%, ${100*Xy(this.l)}%${1===e?")":`, ${e})`}`}}));var Jy=e=>()=>e;function Qy(e){return 1===(e=+e)?ev: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):Jy(isNaN(t)?r:t)}}function ev(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Jy(isNaN(e)?t:e)}var tv=function e(t){var r=Qy(t);function n(e,t){var n=r((e=By(e)).r,(t=By(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),o=ev(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 rv(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 nv(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]=uv(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 iv(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function av(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function ov(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]=uv(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var lv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,sv=new RegExp(lv.source,"g");function cv(e,t){var r,n,i,a=lv.lastIndex=sv.lastIndex=0,o=-1,l=[],s=[];for(e+="",t+="";(r=lv.exec(e))&&(n=sv.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:av(r,n)})),a=sv.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 uv(e,t){var r,n=typeof t;return null==t||"boolean"===n?Jy(t):("number"===n?av:"string"===n?(r=zy(t))?(t=r,tv):cv:t instanceof zy?tv:t instanceof Date?iv:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?rv:Array.isArray(t)?nv:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?ov:av)(e,t)}function dv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function fv(e,t){void 0===t&&(t=e,e=uv);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 pv(e){return+e}var hv=[0,1];function yv(e){return e}function vv(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function mv(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=vv(i,n),a=r(o,a)):(n=vv(n,i),a=r(a,o)),function(e){return a(n(e))}}function gv(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]=vv(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(t){var r=Gh(e,t,1,n)-1;return a[r](i[r](t))}}function bv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function xv(){var e,t,r,n,i,a,o=hv,l=hv,s=uv,c=yv;function u(){var e=Math.min(o.length,l.length);return c!==yv&&(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?gv:mv,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),av)))(r)))},d.domain=function(e){return arguments.length?(o=Array.from(e,pv),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=dv,u()},d.clamp=function(e){return arguments.length?(c=!!e||yv,u()):c!==yv},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 wv(){return xv()(yv,yv)}function Ov(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 Ev(e){return(e=Ov(Math.abs(e)))?e[1]:NaN}var jv,Sv=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pv(e){if(!(t=Sv.exec(e)))throw new Error("invalid format: "+e);var t;return new Av({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 Av(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 kv(e,t){var r=Ov(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")}Pv.prototype=Av.prototype,Av.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 _v={"%":(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)=>kv(100*e,t),r:kv,s:function(e,t){var r=Ov(e,t);if(!r)return jv=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(jv=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")+Ov(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Nv(e){return e}var Mv,Tv,Iv,Dv=Array.prototype.map,Cv=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zv(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?Nv:(t=Dv.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?Nv:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(Dv.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=Pv(e)).fill,d=e.align,f=e.sign,p=e.symbol,h=e.zero,y=e.width,v=e.comma,m=e.precision,g=e.trim,b=e.type;"n"===b?(v=!0,b="g"):_v[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=_v[b],E=/[defgprs%]/.test(b);function j(e){var t,i,a,s=x,p=w;if("c"===b)p=O(e)+p,e="";else{var j=(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)),j&&0===+e&&"+"!==f&&(j=!1),s=(j?"("===f?f:c:"-"===f||"("===f?"":f)+s,p=("s"!==b||isNaN(e)||void 0===jv?"":Cv[8+jv/3])+p+(j&&"("===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}}v&&!h&&(e=n(e,1/0));var S=s.length+e.length+p.length,P=S<y?new Array(y-S+1).join(r):"";switch(v&&h&&(e=n(P+e,P.length?y-p.length:1/0),P=""),d){case"<":e=s+e+p+P;break;case"=":e=s+P+e+p;break;case"^":e=P.slice(0,S=P.length>>1)+s+e+p+P.slice(S);break;default:e=P+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)),j.toString=function(){return e+""},j}return{format:d,formatPrefix:function(e,t){var r=3*Math.max(-8,Math.min(8,Math.floor(Ev(t)/3))),n=Math.pow(10,-r),i=d(((e=Pv(e)).type="f",e),{suffix:Cv[8+r/3]});return function(e){return i(n*e)}}}}function Lv(e,t,r,n){var i,a=oy(e,t,r);switch((n=Pv(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(Ev(t)/3)))-Ev(Math.abs(e)))}(a,o))||(n.precision=i),Iv(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,Ev(t)-Ev(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,-Ev(Math.abs(e)))}(a))||(n.precision=i-2*("%"===n.type))}return Tv(n)}function Rv(e){var t=e.domain;return e.ticks=function(e){var r=t();return iy(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return Lv(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=ay(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 Bv(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 Vv(e){return Math.log(e)}function Kv(e){return Math.exp(e)}function $v(e){return-Math.log(-e)}function Fv(e){return-Math.exp(-e)}function Uv(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Wv(e){return(t,r)=>-e(-t,r)}function Hv(e){const t=e(Vv,Kv),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?Uv:e===Math.E?Math.exp:t=>Math.pow(e,t)}(a),r()[0]<0?(n=Wv(n),i=Wv(i),e($v,Fv)):e(Vv,Kv),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=iy(o,l,p))}else h=iy(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=Pv(r)).precision||(r.trim=!0),r=Tv(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(Bv(r(),{floor:e=>i(Math.floor(n(e))),ceil:e=>i(Math.ceil(n(e)))})),t}function qv(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Yv(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Gv(e){var t=1,r=e(qv(t),Yv(t));return r.constant=function(r){return arguments.length?e(qv(t=+r),Yv(t)):t},Rv(r)}function Xv(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Zv(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Jv(e){return e<0?-e*e:e*e}function Qv(e){var t=e(yv,yv),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(yv,yv):.5===r?e(Zv,Jv):e(Xv(r),Xv(1/r)):r},Rv(t)}function em(){var e=Qv(xv());return e.copy=function(){return bv(e,em()).exponent(e.exponent())},fy.apply(e,arguments),e}function tm(e){return Math.sign(e)*e*e}Mv=zv({thousands:",",grouping:[3],currency:["$",""]}),Tv=Mv.format,Iv=Mv.formatPrefix;const rm=new Date,nm=new Date;function im(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=>im(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),nm.setTime(+n),e(rm),e(nm),Math.floor(r(rm,nm))),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 am=im(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);am.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?im(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):am:null),am.range;const om=1e3,lm=6e4,sm=36e5,cm=864e5,um=6048e5,dm=2592e6,fm=31536e6,pm=im(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*om)},(e,t)=>(t-e)/om,e=>e.getUTCSeconds());pm.range;const hm=im(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*om)},(e,t)=>{e.setTime(+e+t*lm)},(e,t)=>(t-e)/lm,e=>e.getMinutes());hm.range;const ym=im(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*lm)},(e,t)=>(t-e)/lm,e=>e.getUTCMinutes());ym.range;const vm=im(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*om-e.getMinutes()*lm)},(e,t)=>{e.setTime(+e+t*sm)},(e,t)=>(t-e)/sm,e=>e.getHours());vm.range;const mm=im(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*sm)},(e,t)=>(t-e)/sm,e=>e.getUTCHours());mm.range;const gm=im(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lm)/cm,e=>e.getDate()-1);gm.range;const bm=im(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/cm,e=>e.getUTCDate()-1);bm.range;const xm=im(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/cm,e=>Math.floor(e/cm));function wm(e){return im(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())*lm)/um)}xm.range;const Om=wm(0),Em=wm(1),jm=wm(2),Sm=wm(3),Pm=wm(4),Am=wm(5),km=wm(6);function _m(e){return im(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)/um)}Om.range,Em.range,jm.range,Sm.range,Pm.range,Am.range,km.range;const Nm=_m(0),Mm=_m(1),Tm=_m(2),Im=_m(3),Dm=_m(4),Cm=_m(5),zm=_m(6);Nm.range,Mm.range,Tm.range,Im.range,Dm.range,Cm.range,zm.range;const Lm=im(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());Lm.range;const Rm=im(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());Rm.range;const Bm=im(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());Bm.every=e=>isFinite(e=Math.floor(e))&&e>0?im(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,Bm.range;const Vm=im(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 Km(e,t,r,n,i,a){const o=[[pm,1,om],[pm,5,5e3],[pm,15,15e3],[pm,30,3e4],[a,1,lm],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,sm],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,cm],[n,2,1728e5],[r,1,um],[t,1,dm],[t,3,7776e6],[e,1,fm]];function l(t,r,n){const i=Math.abs(r-t)/n,a=Hh(([,,e])=>e).right(o,i);if(a===o.length)return e.every(oy(t/fm,r/fm,n));if(0===a)return am.every(Math.max(oy(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]}Vm.every=e=>isFinite(e=Math.floor(e))&&e>0?im(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,Vm.range;const[$m,Fm]=Km(Vm,Rm,Nm,xm,mm,ym),[Um,Wm]=Km(Bm,Lm,Om,gm,vm,hm);function Hm(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 qm(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 Ym(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Gm,Xm,Zm,Jm={"-":"",_:" ",0:"0"},Qm=/^\s*\d+/,eg=/^%/,tg=/[\\^$*+?|[\]().{}]/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 ng(e){return e.replace(tg,"\\$&")}function ig(e){return new RegExp("^(?:"+e.map(ng).join("|")+")","i")}function ag(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function og(e,t,r){var n=Qm.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function lg(e,t,r){var n=Qm.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function sg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function cg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function ug(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function dg(e,t,r){var n=Qm.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function fg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function pg(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 hg(e,t,r){var n=Qm.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function yg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function vg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function mg(e,t,r){var n=Qm.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function gg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function bg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function xg(e,t,r){var n=Qm.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function wg(e,t,r){var n=Qm.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Og(e,t,r){var n=Qm.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Eg(e,t,r){var n=eg.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function jg(e,t,r){var n=Qm.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function Sg(e,t,r){var n=Qm.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Pg(e,t){return rg(e.getDate(),t,2)}function Ag(e,t){return rg(e.getHours(),t,2)}function kg(e,t){return rg(e.getHours()%12||12,t,2)}function _g(e,t){return rg(1+gm.count(Bm(e),e),t,3)}function Ng(e,t){return rg(e.getMilliseconds(),t,3)}function Mg(e,t){return Ng(e,t)+"000"}function Tg(e,t){return rg(e.getMonth()+1,t,2)}function Ig(e,t){return rg(e.getMinutes(),t,2)}function Dg(e,t){return rg(e.getSeconds(),t,2)}function Cg(e){var t=e.getDay();return 0===t?7:t}function zg(e,t){return rg(Om.count(Bm(e)-1,e),t,2)}function Lg(e){var t=e.getDay();return t>=4||0===t?Pm(e):Pm.ceil(e)}function Rg(e,t){return e=Lg(e),rg(Pm.count(Bm(e),e)+(4===Bm(e).getDay()),t,2)}function Bg(e){return e.getDay()}function Vg(e,t){return rg(Em.count(Bm(e)-1,e),t,2)}function Kg(e,t){return rg(e.getFullYear()%100,t,2)}function $g(e,t){return rg((e=Lg(e)).getFullYear()%100,t,2)}function Fg(e,t){return rg(e.getFullYear()%1e4,t,4)}function Ug(e,t){var r=e.getDay();return rg((e=r>=4||0===r?Pm(e):Pm.ceil(e)).getFullYear()%1e4,t,4)}function Wg(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rg(t/60|0,"0",2)+rg(t%60,"0",2)}function Hg(e,t){return rg(e.getUTCDate(),t,2)}function qg(e,t){return rg(e.getUTCHours(),t,2)}function Yg(e,t){return rg(e.getUTCHours()%12||12,t,2)}function Gg(e,t){return rg(1+bm.count(Vm(e),e),t,3)}function Xg(e,t){return rg(e.getUTCMilliseconds(),t,3)}function Zg(e,t){return Xg(e,t)+"000"}function Jg(e,t){return rg(e.getUTCMonth()+1,t,2)}function Qg(e,t){return rg(e.getUTCMinutes(),t,2)}function eb(e,t){return rg(e.getUTCSeconds(),t,2)}function tb(e){var t=e.getUTCDay();return 0===t?7:t}function rb(e,t){return rg(Nm.count(Vm(e)-1,e),t,2)}function nb(e){var t=e.getUTCDay();return t>=4||0===t?Dm(e):Dm.ceil(e)}function ib(e,t){return e=nb(e),rg(Dm.count(Vm(e),e)+(4===Vm(e).getUTCDay()),t,2)}function ab(e){return e.getUTCDay()}function ob(e,t){return rg(Mm.count(Vm(e)-1,e),t,2)}function lb(e,t){return rg(e.getUTCFullYear()%100,t,2)}function sb(e,t){return rg((e=nb(e)).getUTCFullYear()%100,t,2)}function cb(e,t){return rg(e.getUTCFullYear()%1e4,t,4)}function ub(e,t){var r=e.getUTCDay();return rg((e=r>=4||0===r?Dm(e):Dm.ceil(e)).getUTCFullYear()%1e4,t,4)}function db(){return"+0000"}function fb(){return"%"}function pb(e){return+e}function hb(e){return Math.floor(+e/1e3)}function yb(e){return new Date(e)}function vb(e){return e instanceof Date?+e:+new Date(+e)}function mb(e,t,r,n,i,a,o,l,s,c){var u=wv(),d=u.invert,f=u.domain,p=c(".%L"),h=c(":%S"),y=c("%I:%M"),v=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?y:a(e)<e?v: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,vb)):f().map(yb)},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(Bv(r,e)):u},u.copy=function(){return bv(u,mb(e,t,r,n,i,a,o,l,s,c))},u}function gb(){var e,t,r,n,i,a=0,o=1,l=yv,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(uv),c.rangeRound=u(dv),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 bb(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function xb(){var e=Qv(gb());return e.copy=function(){return bb(e,xb()).exponent(e.exponent())},py.apply(e,arguments)}function wb(){var e,t,r,n,i,a,o,l=0,s=.5,c=1,u=1,d=yv,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=fv(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(uv),p.rangeRound=h(dv),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 Ob(){var e=Qv(wb());return e.copy=function(){return bb(e,Ob()).exponent(e.exponent())},py.apply(e,arguments)}!function(e){Gm=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=ig(i),u=ag(i),d=ig(a),f=ag(a),p=ig(o),h=ag(o),y=ig(l),v=ag(l),m=ig(s),g=ag(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:Pg,e:Pg,f:Mg,g:$g,G:Ug,H:Ag,I:kg,j:_g,L:Ng,m:Tg,M:Ig,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:pb,s:hb,S:Dg,u:Cg,U:zg,V:Rg,w:Bg,W:Vg,x:null,X:null,y:Kg,Y:Fg,Z:Wg,"%":fb},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:Hg,e:Hg,f:Zg,g:sb,G:ub,H:qg,I:Yg,j:Gg,L:Xg,m:Jg,M:Qg,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:pb,s:hb,S:eb,u:tb,U:rb,V:ib,w:ab,W:ob,x:null,X:null,y:lb,Y:cb,Z:db,"%":fb},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=y.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return j(e,t,r,n)},d:vg,e:vg,f:Og,g:fg,G:dg,H:gg,I:gg,j:mg,L:wg,m:yg,M:bg,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:hg,Q:jg,s:Sg,S:xg,u:lg,U:sg,V:cg,w:og,W:ug,x:function(e,t,n){return j(e,r,t,n)},X:function(e,t,r){return j(e,n,t,r)},y:fg,Y:dg,Z:pg,"%":Eg};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=Jm[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=Ym(1900,void 0,1);if(j(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=qm(Ym(a.y,0,1))).getUTCDay(),n=i>4||0===i?Mm.ceil(n):Mm(n),n=bm.offset(n,7*(a.V-1)),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(i=(n=Hm(Ym(a.y,0,1))).getDay(),n=i>4||0===i?Em.ceil(n):Em(n),n=gm.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?qm(Ym(a.y,0,1)).getUTCDay():Hm(Ym(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,qm(a)):Hm(a)}}function j(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 Jm?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),Xm=Gm.format,Gm.parse,Zm=Gm.utcFormat,Gm.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 Eb=Object.freeze({__proto__:null,scaleBand:vy,scaleDiverging:function e(){var t=Rv(wb()(yv));return t.copy=function(){return bb(t,e())},py.apply(t,arguments)},scaleDivergingLog:function e(){var t=Hv(wb()).domain([.1,1,10]);return t.copy=function(){return bb(t,e()).base(t.base())},py.apply(t,arguments)},scaleDivergingPow:Ob,scaleDivergingSqrt:function(){return Ob.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=Gv(wb());return t.copy=function(){return bb(t,e()).constant(t.constant())},py.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,pv),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,pv):[0,1],Rv(n)},scaleImplicit:hy,scaleLinear:function e(){var t=wv();return t.copy=function(){return bv(t,e())},fy.apply(t,arguments),Rv(t)},scaleLog:function e(){const t=Hv(xv()).domain([1,10]);return t.copy=()=>bv(t,e()).base(t.base()),fy.apply(t,arguments),t},scaleOrdinal:yy,scalePoint:function(){return my(vy.apply(null,arguments).paddingInner(1))},scalePow:em,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]=dy(r,e/t);return o}function o(e){return null==e||isNaN(e=+e)?t:n[Gh(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(Uh),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)},fy.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[Gh(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)},fy.apply(Rv(l),arguments)},scaleRadial:function e(){var t,r=wv(),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(tm(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,pv)).map(tm)),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)},fy.apply(a,arguments),Rv(a)},scaleSequential:function e(){var t=Rv(gb()(yv));return t.copy=function(){return bb(t,e())},py.apply(t,arguments)},scaleSequentialLog:function e(){var t=Hv(gb()).domain([1,10]);return t.copy=function(){return bb(t,e()).base(t.base())},py.apply(t,arguments)},scaleSequentialPow:xb,scaleSequentialQuantile:function e(){var t=[],r=yv;function n(e){if(null!=e&&!isNaN(e=+e))return r((Gh(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(Uh),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 sy(e);if(t>=1)return ly(e);var r,n=(r-1)*t,i=Math.floor(n),a=ly(cy(e,i).subarray(0,i+1));return a+(sy(e.subarray(i+1))-a)*(n-i)}}(t,n/e))},n.copy=function(){return e(r).domain(t)},py.apply(n,arguments)},scaleSequentialSqrt:function(){return xb.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=Gv(gb());return t.copy=function(){return bb(t,e()).constant(t.constant())},py.apply(t,arguments)},scaleSqrt:function(){return em.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=Gv(xv());return t.copy=function(){return bv(t,e()).constant(t.constant())},fy.apply(t,arguments)},scaleThreshold:function e(){var t,r=[.5],n=[0,1],i=1;function a(e){return null!=e&&e<=e?n[Gh(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)},fy.apply(a,arguments)},scaleTime:function(){return fy.apply(mb(Um,Wm,Bm,Lm,Om,gm,vm,hm,pm,Xm).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return fy.apply(mb($m,Fm,Vm,Rm,Nm,bm,mm,ym,pm,Zm).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:Lv});function jb(e,t,r){if("function"==typeof e)return e.copy().domain(t).range(r);if(null!=e){var n=function(e){var t=Eb;if(e in t&&"function"==typeof t[e])return t[e]();var r="scale".concat(br(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 Sb(e,t,r,n){if(null!=r&&null!=n)return"function"==typeof e.scale?jb(e.scale,r,n):jb(t,r,n)}function Pb(e){return function(e){return"scale".concat(br(e))}(e)in Eb}var Ab=(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?Pb(n)?n:"point":void 0}};function kb(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 _b(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 Nb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_b(Object(r),!0).forEach(function(t){Mb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Mb(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 Tb=[0,"auto"],Ib={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"},Db=(e,t)=>e.cartesianAxis.xAxis[t],Cb=(e,t)=>{var r=Db(e,t);return null==r?Ib:r},zb={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Tb,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},Lb=(e,t)=>e.cartesianAxis.yAxis[t],Rb=(e,t)=>{var r=Lb(e,t);return null==r?zb:r},Bb={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:""},Vb=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return null==r?Bb:r},Kb=(e,t,r)=>{switch(t){case"xAxis":return Cb(e,r);case"yAxis":return Rb(e,r);case"zAxis":return Vb(e,r);case"angleAxis":return Sh(e,r);case"radiusAxis":return Ph(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},$b=(e,t,r)=>{switch(t){case"xAxis":return Cb(e,r);case"yAxis":return Rb(e,r);case"angleAxis":return Sh(e,r);case"radiusAxis":return Ph(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Fb=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function Ub(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 Wb=e=>e.graphicalItems.cartesianItems,Hb=Gi([Dh,Ch],Ub),qb=(e,t,r)=>e.filter(r).filter(e=>!0===(null==t?void 0:t.includeHidden)||!e.hide),Yb=Gi([Wb,Kb,Hb],qb,{memoizeOptions:{resultEqualityCheck:Vh}}),Gb=Gi([Yb],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(Rh)),Xb=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),Zb=Gi([Yb],Xb),Jb=e=>e.map(e=>e.data).filter(Boolean).flat(1),Qb=Gi([Yb],e=>e.some(e=>!e.data)),ex=Gi([Yb],Jb,{memoizeOptions:{resultEqualityCheck:Vh}}),tx=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},rx=Gi([ex,gp],tx),nx=(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:vs(e,t.dataKey)})):r.length>0?r.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:vs(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:vs(e,t.dataKey)})).filter(e=>null!=e.value),...c]:c},ix=Gi([rx,Kb,Yb,gp,Qb,ex],nx);function ax(e){if(dr(e)||e instanceof Date){var t=Number(e);if(ds(t))return t}}function ox(e){if(Array.isArray(e)){var t=[ax(e[0]),ax(e[1])];return Op(t)?t:void 0}var r=ax(e);if(null!=r)return[r,r]}function lx(e){return e.map(ax).filter(xr)}function sx(e,t){var r=ax(e),n=ax(t);return null==r&&null==n?0:null==r?-1:null==n?1:r-n}var cx=Gi([ix],e=>null==e?void 0:e.map(e=>e.value).sort(sx));function ux(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}var dx=e=>{var t=Kh(e),r=$h(e);return $b(e,t,r)},fx=Gi([dx],e=>null==e?void 0:e.dataKey),px=Gi([Gb,gp,dx],Lh),hx=(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(zh);return[i,{stackedData:ws(e,l,r),graphicalItems:o}]}))},yx=Gi([px,Gb,dh,fh],hx),vx=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(null==n&&"zAxis"!==r){var o=Ss(e,i,a);if(null==o||0!==o[0]||0!==o[1])return o}},mx=Gi([Kb],e=>e.allowDataOverflow),gx=e=>{var t;if(null==e||!("domain"in e))return Tb;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var r=lx(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:Tb},bx=Gi([Kb],gx),xx=Gi([bx,mx],jp),wx=Gi([yx,vp,Dh,xx],vx,{memoizeOptions:{resultEqualityCheck:Bh}}),Ox=e=>e.errorBars,Ex=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)]}},jx=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=>ux(i,e));s.forEach(r=>{var n,i=vs(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||sr(t)){if(Array.isArray(t)){var i=lx(t);i.length>0&&(n=Math.max(...i))}}else n=t;return null==n?[]:lx(r.flatMap(t=>{var r,i,a=vs(e,t.dataKey);if(Array.isArray(a)?[r,i]=a:r=i=a,ds(r)&&ds(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=ox(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=ox(vs(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]))}),ds(a)&&ds(o))return[a,o]},Sx=Gi([rx,Kb,Zb,Ox,Dh,xp],jx,{memoizeOptions:{resultEqualityCheck:Bh}});function Px(e){var{value:t}=e;if(dr(t)||t instanceof Date)return t}var Ax=e=>e.referenceElements.dots,kx=(e,t,r)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===r:e.yAxisId===r),_x=Gi([Ax,Dh,Ch],kx),Nx=e=>e.referenceElements.areas,Mx=Gi([Nx,Dh,Ch],kx),Tx=e=>e.referenceElements.lines,Ix=Gi([Tx,Dh,Ch],kx),Dx=(e,t)=>{if(null!=e){var r=lx(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Cx=Gi(_x,Dh,Dx),zx=(e,t)=>{if(null!=e){var r=lx(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)]}},Lx=Gi([Mx,Dh],zx);var Rx=(e,t)=>{if(null!=e){var r=e.flatMap(e=>"xAxis"===t?function(e){var t;if(null!=e.x)return lx([e.x]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.x);return null==r||0===r.length?[]:lx(r)}(e):function(e){var t;if(null!=e.y)return lx([e.y]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.y);return null==r||0===r.length?[]:lx(r)}(e));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},Bx=Gi([Ix,Dh],Rx),Vx=Gi(Cx,Bx,Lx,(e,t,r)=>Ex(e,r,t)),Kx=(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(Op(n))return Ep(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(ur(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&&Ps.test(o)){var s=Ps.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(ur(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&&As.test(l)){var u=As.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(Op(f))return null==t?f:Ep(f,t,r)}}}(t,"vertical"===o&&"xAxis"===l||"horizontal"===o&&"yAxis"===l?Ex(n,a,i):Ex(a,i),e.allowDataOverflow),$x=Gi([Kb,bx,xx,wx,Sx,Vx,Nc,Dh],Kx,{memoizeOptions:{resultEqualityCheck:Bh}}),Fx=[0,1],Ux=(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=ms(t,a);return u&&null==s?yp(0,null!==(l=null==r?void 0:r.length)&&void 0!==l?l:0):"category"===c?((e,t,r)=>{var n=e.map(Px).filter(e=>null!=e);return r&&(null==t.dataKey||t.allowDuplicatedCategory&&yr(n))?yp(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))})(n,e,u):"expand"!==i||u?o:Fx}},Wx=Gi([Kb,Nc,rx,ix,dh,Dh,$x],Ux),Hx=Gi([Kb,Fb,ph],Ab),qx=(e,t,r)=>{var{niceTicks:n}=t;if("none"!==n){var i=gx(t),a=Array.isArray(i)&&("auto"===i[0]||"auto"===i[1]);if(("snap125"===n||"adaptive"===n)&&null!=t&&t.tickCount&&Op(e)){if(a)return lh(e,t.tickCount,t.allowDecimals,n);if("number"===t.type)return sh(e,t.tickCount,t.allowDecimals,n)}if("auto"===n&&"linear"===r&&null!=t&&t.tickCount){if(a&&Op(e))return lh(e,t.tickCount,t.allowDecimals,"adaptive");if("number"===t.type&&Op(e))return sh(e,t.tickCount,t.allowDecimals,"adaptive")}}},Yx=Gi([Wx,$b,Hx],qx),Gx=(e,t,r,n)=>{if("angleAxis"!==n&&"number"===(null==e?void 0:e.type)&&Op(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},Xx=Gi([Kb,Wx,Yx,Dh],Gx),Zx=Gi(ix,Kb,(e,t)=>{if(t&&"number"===t.type){var r=1/0,n=Array.from(lx(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}}),Jx=Gi(Zx,Nc,uh,Hs,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!ds(e))return 0;var a="vertical"===t?n.height:n.width;if("gap"===i)return e*a/2;if("no-gap"===i){var o=hr(r,e*a),l=e*a/2;return l-o-(l-o)/a*o}return 0}),Qx=Gi(Cb,(e,t,r)=>{var n=Cb(e,t);return null==n||"string"!=typeof n.padding?0:Jx(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}}),ew=Gi(Rb,(e,t,r)=>{var n=Rb(e,t);return null==n||"string"!=typeof n.padding?0:Jx(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}}),tw=Gi([Hs,Qx,Js,Zs,(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=Gi([Hs,Nc,ew,Js,Zs,(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]}),nw=(e,t,r,n)=>{var i;switch(t){case"xAxis":return tw(e,r,n);case"yAxis":return rw(e,r,n);case"zAxis":return null===(i=Vb(e,r))||void 0===i?void 0:i.range;case"angleAxis":return Mh(e);case"radiusAxis":return Th(e,r);default:return}},iw=Gi([Kb,nw],gh),aw=Gi([Hx,Xx],(e,t)=>{if(null!=t){if("linear"===e){if(!Op(t)){for(var r,n,i=0;i<t.length;i++){var a=t[i];ds(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}}),ow=Gi([Kb,Hx,aw,iw],Sb),lw=(e,t,r,n)=>{if(null!=r&&null!=r.dataKey){var{type:i,scale:a}=r;return!ms(e,n)||"number"!==i&&"auto"===a?void 0:t.map(e=>e.value)}},sw=Gi([Nc,ix,$b,Dh],lw),cw=Gi([ow],Fh);function uw(e,t){return e.id<t.id?-1:e.id>t.id?1:0}Gi([ow],function(e){if(null!=e)return"invert"in e&&"function"==typeof e.invert?e.invert.bind(e):kb(e,void 0)}),Gi([ow,cx],kb),Gi([Yb,Ox,Dh],(e,t,r)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>ux(r,e)));var dw=(e,t)=>t,fw=(e,t,r)=>r,pw=Gi(Cs,dw,fw,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(uw)),hw=Gi(zs,dw,fw,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(uw)),yw=(e,t)=>({width:e.width,height:t.height}),vw=Gi(Hs,Cb,yw),mw=Gi(Ts,Hs,pw,dw,fw,(e,t,r,n,i)=>{var a,o={};return r.forEach(r=>{var l=yw(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}),gw=Gi(Ms,Hs,hw,dw,fw,(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}),bw=Gi([Hs,Cb,(e,t)=>{var r=Cb(e,t);if(null!=r)return mw(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}}}),xw=Gi([Hs,Rb,(e,t)=>{var r=Rb(e,t);if(null!=r)return gw(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}}}),ww=Gi(Hs,Rb,(e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height})),Ow=(e,t,r)=>{switch(t){case"xAxis":return vw(e,r).width;case"yAxis":return ww(e,r).height;default:return}},Ew=(e,t,r,n)=>{if(null!=r){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,l=ms(e,n),s=t.map(e=>e.value),c=s.filter(e=>null!=e);return o&&l&&"category"===a&&i&&yr(c)?s:void 0}},jw=Gi([Nc,ix,Kb,Dh],Ew),Sw=Gi([Nc,(e,t,r)=>{switch(t){case"xAxis":return Cb(e,r);case"yAxis":return Rb(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Hx,cw,jw,sw,nw,Yx,Dh],(e,t,r,n,i,a,o,l,s)=>{if(null!=t){var c=ms(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}}}),Pw=Gi([Nc,$b,Hx,cw,Yx,nw,jw,sw,Dh],(e,t,r,n,i,a,o,l,s)=>{if(null!=t&&null!=n){var c=ms(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*lr(a[0]-a[1])*h:h;var y=d||i;return y?y.map((e,t)=>{var r=o?o.indexOf(e):e,i=n.map(r);return ds(i)?{index:t,coordinate:i+h,value:e,offset:h}:null}).filter(xr):c&&l?l.map((e,t)=>{var r=n.map(e);return ds(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(xr):n.ticks?n.ticks(f).map((e,t)=>{var r=n.map(e);return ds(r)?{coordinate:r+h,value:e,index:t,offset:h}:null}).filter(xr):n.domain().map((e,t)=>{var r=n.map(e);return ds(r)?{coordinate:r+h,value:o?o[e]:e,index:t,offset:h}:null}).filter(xr)}}),Aw=Gi([Nc,$b,cw,nw,jw,sw,Dh],(e,t,r,n,i,a,o)=>{if(null!=t&&null!=r&&null!=n&&n[0]!==n[1]){var l=ms(e,o),{tickCount:s}=t,c=0;return c="angleAxis"===o&&(null==n?void 0:n.length)>=2?2*lr(n[0]-n[1])*c:c,l&&a?a.map((e,t)=>{var n=r.map(e);return ds(n)?{coordinate:n+c,value:e,index:t,offset:c}:null}).filter(xr):r.ticks?r.ticks(s).map((e,t)=>{var n=r.map(e);return ds(n)?{coordinate:n+c,value:e,index:t,offset:c}:null}).filter(xr):r.domain().map((e,t)=>{var n=r.map(e);return ds(n)?{coordinate:n+c,value:i?i[e]:e,index:t,offset:c}:null}).filter(xr)}}),kw=Gi(Kb,cw,(e,t)=>{if(null!=e&&null!=t)return Nb(Nb({},e),{},{scale:t})}),_w=Gi([Kb,Hx,Wx,iw],Sb),Nw=Gi([_w],Fh),Mw=Gi((e,t,r)=>Vb(e,r),Nw,(e,t)=>{if(null!=e&&null!=t)return Nb(Nb({},e),{},{scale:t})}),Tw=Gi([Nc,Cs,zs],(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}});Gi([(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 Iw=e=>e.options.defaultTooltipEventType,Dw=e=>e.options.validateTooltipEventTypes;function Cw(e,t,r){if(null==e)return t;var n=e?"axis":"item";return null==r?t:r.includes(n)?n:t}function zw(e,t){return Cw(t,Iw(e),Dw(e))}var Lw=(e,t)=>{var r,n=Number(t);if(!sr(n)&&null!=t)return n>=0?null==e||null===(r=e[n])||void 0===r?void 0:r.value:void 0},Rw={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},Bw=jl({name:"tooltip",initialState:{itemInteraction:{click:Rw,hover:Rw},axisInteraction:{click:Rw,hover:Rw},keyboardInteraction:Rw,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:hl()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Uo(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:hl()},removeTooltipEntrySettings:{reducer(e,t){var r=Uo(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:hl()},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:Vw,replaceTooltipEntrySettings:Kw,removeTooltipEntrySettings:$w,setTooltipSettingsState:Fw,setActiveMouseOverItemIndex:Uw,mouseLeaveItem:Ww,mouseLeaveChart:Hw,setActiveClickItemIndex:qw,setMouseOverAxisIndex:Yw,setMouseClickAxisIndex:Gw,setSyncInteraction:Xw,setKeyboardInteraction:Zw}=Bw.actions,Jw=Bw.reducer;function Qw(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 eO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Qw(Object(r),!0).forEach(function(t){tO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function tO(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 Rw;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 Rw;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 eO(eO({},i),{},{active:!0})}else if(null!=n)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return eO(eO({},Rw),{},{coordinate:i.coordinate})};function nO(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 iO=(e,t,r,n)=>{var i=null==e?void 0:e.index;if(null==i)return null;var a=Number(i);if(!ds(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=vs(e,t);return null==n||!Op(r)||nO(n,r)}(s,r,n)?String(l):null},aO=(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}}},oO=(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})},lO=e=>e.options.tooltipPayloadSearcher,sO=e=>e.tooltip;function cO(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 uO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cO(Object(r),!0).forEach(function(t){dO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function dO(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 fO(e){if("string"==typeof e)return e}var pO=(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:y}=r,v=function(e,t){return null!=e?e:t}(h,l),m=Array.isArray(v)?us(v,c,u):v,g=null!==(d=null==y?void 0:y.dataKey)&&void 0!==d?d:n,b=null==y?void 0:y.nameKey;(f=n&&Array.isArray(m)&&!Array.isArray(m[0])&&"axis"===o?mr(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?fO(e.color):void 0,fill:"fill"in e?fO(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=uO(uO({},y),{},{name:a,unit:null==i?void 0:i.unit,color:null!==(r=null==i?void 0:i.color)&&void 0!==r?r:null==y?void 0:y.color,fill:null!==(n=null==i?void 0:i.fill)&&void 0!==n?n:null==y?void 0:y.fill});e.push(_s({tooltipEntrySettings:s,dataKey:o,payload:l,value:vs(l,o),name:null==a?void 0:String(a)}))}):e.push(_s({tooltipEntrySettings:y,dataKey:g,payload:f,value:vs(f,g),name:null!==(p=vs(f,b))&&void 0!==p?p:null==y?void 0:y.name}));return e},[])}},hO=Gi([dx,Fb,ph],Ab),yO=Gi([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),vO=Gi([Kh,$h],Ub),mO=Gi([yO,dx,vO],qb,{memoizeOptions:{resultEqualityCheck:Vh}}),gO=Gi([mO],e=>e.filter(Rh)),bO=Gi([mO],Jb,{memoizeOptions:{resultEqualityCheck:Vh}}),xO=Gi([mO],e=>e.some(e=>!e.data)),wO=Gi([bO,vp],tx),OO=Gi([gO,vp,dx],Lh),EO=Gi([wO,dx,mO,vp,xO,bO],nx),jO=Gi([dx],gx),SO=Gi([dx],e=>e.allowDataOverflow),PO=Gi([jO,SO],jp),AO=Gi([mO],e=>e.filter(Rh)),kO=Gi([OO,AO,dh,fh],hx),_O=Gi([kO,vp,Kh,PO],vx),NO=Gi([mO],Xb),MO=Gi([wO,dx,NO,Ox,Kh,wp],jx,{memoizeOptions:{resultEqualityCheck:Bh}}),TO=Gi([Ax,Kh,$h],kx),IO=Gi([TO,Kh],Dx),DO=Gi([Nx,Kh,$h],kx),CO=Gi([DO,Kh],zx),zO=Gi([Tx,Kh,$h],kx),LO=Gi([zO,Kh],Rx),RO=Gi([IO,LO,CO],Ex),BO=Gi([dx,jO,PO,_O,MO,RO,Nc,Kh],Kx),VO=Gi([dx,Nc,wO,EO,dh,Kh,BO],Ux),KO=Gi([VO,dx,hO],qx),$O=Gi([dx,VO,KO,Kh],Gx),FO=e=>{var t=Kh(e),r=$h(e);return nw(e,t,r,!1)},UO=Gi([dx,FO],gh),WO=Gi([dx,hO,$O,UO],Sb),HO=Gi([WO],Fh),qO=Gi([Nc,EO,dx,Kh],Ew),YO=Gi([Nc,EO,dx,Kh],lw),GO=Gi([Nc,dx,hO,HO,FO,qO,YO,Kh],(e,t,r,n,i,a,o,l)=>{if(t){var{type:s}=t,c=ms(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*lr(i[0]-i[1])*d:d,c&&o?o.map((e,t)=>{var r=n.map(e);return ds(r)?{coordinate:r+d,value:e,index:t,offset:d}:null}).filter(xr):n.domain().map((e,t)=>{var r=n.map(e);return ds(r)?{coordinate:r+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(xr)}}}),XO=Gi([Iw,Dw,e=>e.tooltip.settings],(e,t,r)=>Cw(r.shared,e,t)),ZO=e=>e.tooltip.settings.trigger,JO=e=>e.tooltip.settings.defaultIndex,QO=Gi([sO,XO,ZO,JO],rO),eE=Gi([QO,wO,fx,VO],iO),tE=Gi([GO,eE],Lw),rE=Gi([QO],e=>{if(e)return e.dataKey}),nE=Gi([QO],e=>{if(e)return e.graphicalItemId}),iE=Gi([sO,XO,ZO,JO],oO),aE=Gi([Ms,Ts,Nc,Hs,GO,JO,iE],aO),oE=Gi([QO,aE],(e,t)=>null!=e&&e.coordinate?e.coordinate:t),lE=Gi([QO],e=>{var t;return null!==(t=null==e?void 0:e.active)&&void 0!==t&&t}),sE=Gi([iE,eE,vp,fx,tE,lO,XO],pO),cE=Gi([sE],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}});function uE(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 dE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uE(Object(r),!0).forEach(function(t){fE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fE(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 pE=()=>{var e=Li(dx),t=Li(GO),r=Li(HO);return ks(e&&r?dE(dE({},e),{},{scale:r}):void 0,t)};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 yE(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){vE(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 vE(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,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,y=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,v=void 0;if(null!=p&&null!=h&&null!=y)if(lr(h-p)!==lr(y-h)){var m=[];if(lr(y-h)===lr(i[1]-i[0])){v=y;var g=h+i[1]-i[0];m[0]=Math.min(g,(g+p)/2),m[1]=Math.max(g,(g+p)/2)}else{v=p;var b=y+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,(v+h)/2),Math.max(h,(v+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,y),j=Math.max(p,y);if(e>(E+h)/2&&e<=(j+h)/2)return null===(O=r[l])||void 0===O?void 0:O.index}}else if(t)for(var S=0;S<o;S++){var P=t[S];if(null!=P){var A=t[S+1],k=t[S-1];if(0===S&&null!=A&&e<=(P.coordinate+A.coordinate)/2)return P.index;if(S===o-1&&null!=k&&e>(P.coordinate+k.coordinate)/2)return P.index;if(S>0&&S<o-1&&null!=k&&null!=A&&e>(P.coordinate+k.coordinate)/2&&e<=(P.coordinate+A.coordinate)/2)return P.index}}return-1},gE=()=>Li(ph),bE=(e,t)=>t,xE=(e,t,r)=>r,wE=(e,t,r,n)=>n,OE=Gi(GO,e=>xa(e,e=>e.coordinate)),EE=Gi([sO,bE,xE,wE],rO),jE=Gi([EE,wO,fx,VO],iO),SE=Gi([sO,bE,xE,wE],oO),PE=Gi([Ms,Ts,Nc,Hs,GO,wE,SE],aO),AE=Gi([EE,PE],(e,t)=>{var r;return null!==(r=e.coordinate)&&void 0!==r?r:t}),kE=Gi([GO,jE],Lw),_E=Gi([SE,jE,vp,fx,kE,lO,bE],pO),NE=Gi([EE,jE],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),ME=(e,t,r,n,i,a,o)=>{if(e&&n&&i&&a&&r){var l=Yf(e,r);if(l){var s=((e,t)=>"centric"===t?e.angle:e.radius)(l,t),c=mE(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 yE(yE(yE({},n),Wf(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var l=i.coordinate,{angle:s}=n;return yE(yE(yE({},n),Wf(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}}}},TE=Gi(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}}),IE=Gi(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(mh));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 DE(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 CE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?DE(Object(r),!0).forEach(function(t){zE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function zE(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 LE={zIndexMap:Object.values(mh).reduce((e,t)=>CE(CE({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},RE=new Set(Object.values(mh));var BE=jl({name:"zIndex",initialState:LE,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:hl()},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 RE.has(e)}(r)&&delete e.zIndexMap[r])},prepare:hl()},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:hl()},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:hl()}}}),{registerZIndexPortal:VE,unregisterZIndexPortal:KE,registerZIndexPortalElement:$E,unregisterZIndexPortalElement:FE}=BE.actions,UE=BE.reducer;function WE(e){var{zIndex:r,children:n}=e,i=void 0!==Mc()&&void 0!==r&&0!==r,a=Xs(),o=t.useRef(void 0),l=t.useRef(new Set),s=Ii(),c=Li(e=>TE(e,r,a));if(t.useLayoutEffect(()=>{if(!i){var e=l.current;return e.forEach(e=>{s(KE({zIndex:e}))}),e.clear(),void(o.current=void 0)}if(l.current.has(r)||(s(VE({zIndex:r})),l.current.add(r)),c){o.current=c;var t=l.current;t.forEach(e=>{e!==r&&(s(KE({zIndex:e})),t.delete(e))})}},[s,r,i,c]),t.useLayoutEffect(()=>{var e=l.current;return()=>{e.forEach(e=>{s(KE({zIndex:e}))}),e.clear()}},[s]),!i)return n;var u=null!=c?c:o.current;return u?p.createPortal(n,u):null}function HE(){return HE=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},HE.apply(null,arguments)}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}function XE(e){var{cursor:r,cursorComp:n,cursorProps:i}=e;return t.isValidElement(r)?t.cloneElement(r,i):t.createElement(n,i)}function ZE(e){var t,r,n,i,{coordinate:o,payload:l,index:s,offset:c,tooltipAxisBandSize:u,layout:d,cursor:f,tooltipEventType:p,chartName:h}=e,y=o,m=l,g=s;if(!f||!y||"ScatterChart"!==h&&"axis"!==p)return null;if("ScatterChart"===h)r=y,n=Cd,i=mh.cursorLine;else if("BarChart"===h)r=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,y,c,u),n=Tf,i=mh.cursorRectangle;else if("radial"===d&&Nr(y)){var{cx:b,cy:x,radius:w,startAngle:O,endAngle:E}=Gf(y);r={cx:b,cy:x,startAngle:O,endAngle:E,innerRadius:w,outerRadius:w},n=tp,i=mh.cursorLine}else r={points:rp(d,y,c)},n=_d,i=mh.cursorLine;var j="object"==typeof f&&"className"in f?f.className:void 0,S=YE(YE(YE(YE({stroke:"#ccc",pointerEvents:"none"},c),r),Ee(f)),{},{payload:m,payloadIndex:g,className:a.clsx("recharts-tooltip-cursor",j)});return v.createElement(WE,{zIndex:null!==(t=e.zIndex)&&void 0!==t?t:i},v.createElement(XE,{cursor:f,cursorComp:n,cursorProps:S}))}function JE(e){var t=pE(),r=Ac(),n=Mc(),i=gE();return null==t||null==r||null==n||null==i?null:v.createElement(ZE,HE({},e,{offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var QE,ej=t.createContext(null),tj={exports:{}};var rj=(QE||(QE=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}(tj)),tj.exports),nj=new(zt(rj)),ij="recharts.syncEvent.tooltip",aj="recharts.syncEvent.brush",oj=(e,t)=>{if(t&&Array.isArray(e)){var r=Number.parseInt(t,10);if(!sr(r))return e[r]}},lj=jl({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:()=>{},eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),sj=lj.reducer,{createEventEmitter:cj}=lj.actions;function uj(e){return e.tooltip.syncInteraction}var dj=jl({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:fj,setDataStartEndIndexes:pj,setComputedData:hj}=dj.actions,yj=dj.reducer,vj=["x","y"];function mj(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 gj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mj(Object(r),!0).forEach(function(t){bj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function bj(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 xj(){var e=Li(hh),r=Li(vh),n=Ii(),i=Li(yh),a=Li(GO),o=Mc(),l=Sc(),s=Li(e=>e.rootProps.className);t.useEffect(()=>{if(null==e)return wr;var t=(t,s,c)=>{var u;if(r!==c&&e===t)if(!1!==s.payload.active)if("index"!==i){if(null!=a){var d;if("function"==typeof i){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=i(a,f);d=a[p]}else"value"===i&&(d=a.find(e=>String(e.value)===s.payload.label));var{coordinate:h}=s.payload;if(null!=h&&null!=l)if(null!=d){var{x:y,y:v}=h,m=Math.min(y,l.x+l.width),g=Math.min(v,l.y+l.height),b={x:"horizontal"===o?d.coordinate:m,y:"horizontal"===o?g:d.coordinate},x=Xw({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});n(x)}else n(Xw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:s.payload.sourceViewBox,graphicalItemId:void 0}));else n(Xw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))}}else if(l&&null!=s&&null!==(u=s.payload)&&void 0!==u&&u.coordinate&&s.payload.sourceViewBox){var w=s.payload.coordinate,{x:O,y:E}=w,j=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,vj),{x:S,y:P,width:A,height:k}=s.payload.sourceViewBox,_=gj(gj({},j),{},{x:l.x+(A?(O-S)/A:0)*l.width,y:l.y+(k?(E-P)/k:0)*l.height});n(gj(gj({},s),{},{payload:gj(gj({},s.payload),{},{coordinate:_})}))}else n(s);else n(Xw({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))};return nj.on(ij,t),()=>{nj.off(ij,t)}},[s,n,r,e,i,a,o,l])}function wj(){var e=Ii();t.useEffect(()=>{e(cj())},[e]),xj(),function(){var e=Li(hh),r=Li(vh),n=Ii();t.useEffect(()=>{if(null==e)return wr;var t=(t,i,a)=>{r!==a&&e===t&&n(pj(i))};return nj.on(aj,t),()=>{nj.off(aj,t)}},[n,r,e])}()}function Oj(e,r,n,i,a,o){var l=Li(t=>((e,t,r)=>{if(null!=t){var n=sO(e);return"axis"===t?"hover"===r?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:"hover"===r?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}})(t,e,r)),s=Li(nE),c=Li(vh),u=Li(hh),d=Li(yh),f=Li(uj),p=null!=(null==f?void 0:f.sourceViewBox),h=Sc();t.useEffect(()=>{if(!p&&null!=u&&null!=c){var e=Xw({active:o,coordinate:n,dataKey:l,index:a,label:"number"==typeof i?String(i):i,sourceViewBox:h,graphicalItemId:s});nj.emit(ij,u,e,c)}},[p,n,l,s,a,i,c,u,d,o,h])}function Ej(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 jj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ej(Object(r),!0).forEach(function(t){Sj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ej(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sj(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 Pj(e){return e.dataKey}var Aj=[],kj={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 _j(e){var r,n,i=Cr(e,kj),{active:a,allowEscapeViewBox:o,animationDuration:l,animationEasing:s,content:c,filterNull:u,isAnimationActive:d,offset:f,payloadUniqBy:h,position:y,reverseDirection:m,useTranslate3d:g,wrapperStyle:b,cursor:x,shared:w,trigger:O,defaultIndex:E,portal:j,axisId:S}=i,P=Ii(),A="number"==typeof E?String(E):E;t.useEffect(()=>{P(Fw({shared:w,trigger:O,axisId:S,active:a,defaultIndex:A}))},[P,w,O,S,a,A]);var k=Sc(),_=md(),N=function(e){return Li(t=>zw(t,e))}(w),{activeIndex:M,isActive:T}=null!==(r=Li(e=>NE(e,N,O,A)))&&void 0!==r?r:{},I=Li(e=>_E(e,N,O,A)),D=Li(e=>kE(e,N,O,A)),C=Li(e=>AE(e,N,O,A)),z=I,L=t.useContext(ej),R=null!==(n=null!=a?a:T)&&void 0!==n&&n,[B,V]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[r,n]=t.useState({height:0,left:0,top:0,width:0}),i=t.useCallback(e=>{if(null!=e){var t=e.getBoundingClientRect(),i={height:t.height,left:t.left,top:t.top,width:t.width};(Math.abs(i.height-r.height)>1||Math.abs(i.left-r.left)>1||Math.abs(i.top-r.top)>1||Math.abs(i.width-r.width)>1)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[r.width,r.height,r.top,r.left,...e]);return[r,i]}([z,R]),K="axis"===N?D:void 0;Oj(N,O,C,K,M,R);var $=null!=j?j:L;if(null==$||null==k||null==N)return null;var F=null!=z?z:Aj;R||(F=Aj),u&&F.length&&(F=function(e,t,r){return!0===t?vi(e,r):"function"==typeof t?vi(e,t):e}(F.filter(e=>null!=e.value&&(!0!==e.hide||i.includeHidden)),h,Pj));var U=F.length>0,W=jj(jj({},i),{},{payload:F,label:K,active:R,activeIndex:M,coordinate:C,accessibilityLayer:_}),H=v.createElement(vd,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:d,active:R,coordinate:C,hasPayload:U,offset:f,position:y,reverseDirection:m,useTranslate3d:g,viewBox:k,wrapperStyle:b,lastBoundingBox:B,innerRef:V,hasPortalFromProps:Boolean(j)},function(e,t){return v.isValidElement(e)?v.cloneElement(e,t):"function"==typeof e?v.createElement(e,t):v.createElement(id,t)}(c,W));return v.createElement(v.Fragment,null,p.createPortal(H,$),R&&v.createElement(JE,{cursor:x,tooltipEventType:N,coordinate:C,payload:F,index:M}))}var Nj=e=>null;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}Nj.displayName="Cell";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,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 Dj=function(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){Ij(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}({},{cacheSize:2e3,enableCache:!0}),Cj=new class{constructor(e){Mj(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}}(Dj.cacheSize),zj={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Lj="recharts_measurement_span";var Rj=(e,t)=>{try{var r=document.getElementById(Lj);r||((r=document.createElement("span")).setAttribute("id",Lj),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,zj,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch(e){return{width:0,height:0}}},Bj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||cd)return{width:0,height:0};if(!Dj.enableCache)return Rj(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=Cj.get(r);if(n)return n;var i=Rj(e,t);return Cj.set(r,i),i};var Vj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Kj=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,$j=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,Fj=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Uj={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},Wj=["cm","mm","pt","pc","in","Q","px"];var Hj,qj,Yj,Gj="NaN";class Xj{static parse(e){var t,[,r,n]=null!==(t=Fj.exec(e))&&void 0!==t?t:[];return null==r?Xj.NaN:new Xj(parseFloat(r),null!=n?n:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,sr(e)&&(this.unit=""),""===t||$j.test(t)||(this.num=NaN,this.unit=""),function(e){return Wj.includes(e)}(t)&&(this.num=function(e,t){return e*Uj[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new Xj(NaN,""):new Xj(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new Xj(NaN,""):new Xj(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new Xj(NaN,""):new Xj(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new Xj(NaN,""):new Xj(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return sr(this.num)}}function Zj(e){if(null==e||e.includes(Gj))return Gj;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=null!==(r=Vj.exec(t))&&void 0!==r?r:[],o=Xj.parse(null!=n?n:""),l=Xj.parse(null!=a?a:""),s="*"===i?o.multiply(l):o.divide(l);if(s.isNaN())return Gj;t=t.replace(Vj,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,d,f]=null!==(c=Kj.exec(t))&&void 0!==c?c:[],p=Xj.parse(null!=u?u:""),h=Xj.parse(null!=f?f:""),y="+"===d?p.add(h):p.subtract(h);if(y.isNaN())return Gj;t=t.replace(Kj,y.toString())}return t}Hj=Xj,qj="NaN",Yj=new Xj(NaN,""),(qj=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+""}(qj))in Hj?Object.defineProperty(Hj,qj,{value:Yj,enumerable:!0,configurable:!0,writable:!0}):Hj[qj]=Yj;var Jj=/\(([^()]*)\)/;function Qj(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,r=e;null!=(t=Jj.exec(r));){var[,n]=t;r=r.replace(Jj,Zj(n))}return r}(t),t=Zj(t)}function eS(e){var t=function(e){try{return Qj(e)}catch(e){return Gj}}(e.slice(5,-1));return t===Gj?"":t}var tS=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],rS=["dx","dy","angle","className","breakAll"];function nS(){return nS=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},nS.apply(null,arguments)}function iS(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 aS=/[ \f\n\r\t\v\u2028\u2029]+/,oS=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];return gr(t)||(i=r?t.toString().split(""):t.toString().split(aS)),{wordsWithComputedWidth:i.map(e=>({word:e,width:Bj(e,n).width})),spaceWidth:r?0:Bj(" ",n).width}}catch(e){return null}};function lS(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}var sS=(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},[]),cS=e=>e.reduce((e,t)=>e.width>t.width?e:t),uS=(e,t,r,n,i,a,o,l)=>{var s=e.slice(0,t),c=oS({breakAll:r,style:n,children:s+"…"});if(!c)return[!1,[]];var u=sS(c.wordsWithComputedWidth,a,o,l);return[u.length>i||cS(u).width>Number(a),u]},dS=e=>[{words:gr(e)?[]:e.toString().split(aS),width:void 0}],fS=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!cd){var l=oS({breakAll:a,children:n,style:i});if(!l)return dS(n);var{wordsWithComputedWidth:s,spaceWidth:c}=l;return((e,t,r,n,i)=>{var{maxLines:a,children:o,style:l,breakAll:s}=e,c=ur(a),u=String(o),d=sS(t,n,r,i);if(!c||i)return d;if(!(d.length>a||cS(d).width>Number(n)))return d;for(var f,p=0,h=u.length-1,y=0;p<=h&&y<=u.length-1;){var v=Math.floor((p+h)/2),m=v-1,[g,b]=uS(u,m,s,l,a,n,r,i),[x]=uS(u,v,s,l,a,n,r,i);if(g||x||(p=v+1),g&&x&&(h=v-1),!g&&x){f=b;break}y++}return f||d})({breakAll:a,children:n,maxLines:o,style:i},s,c,t,Boolean(r))}return dS(n)},pS="#808080",hS={angle:0,breakAll:!1,capHeight:"0.71em",fill:pS,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},yS=t.forwardRef((e,r)=>{var n=Cr(e,hS),{x:i,y:o,lineHeight:l,capHeight:s,fill:c,scaleToFit:u,textAnchor:d,verticalAnchor:f}=n,p=iS(n,tS),h=t.useMemo(()=>fS({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:y,dy:m,angle:g,className:b,breakAll:x}=p,w=iS(p,rS);if(!dr(i)||!dr(o)||0===h.length)return null;var O,E=Number(i)+(ur(y)?y:0),j=Number(o)+(ur(m)?m:0);if(!ds(E)||!ds(j))return null;switch(f){case"start":O=eS("calc(".concat(s,")"));break;case"middle":O=eS("calc(".concat((h.length-1)/2," * -").concat(l," + (").concat(s," / 2))"));break;default:O=eS("calc(".concat(h.length-1," * -").concat(l,")"))}var S=[],P=h[0];if(u&&null!=P){var A=P.width,{width:k}=p;S.push("scale(".concat(ur(k)&&ur(A)?k/A:1,")"))}return g&&S.push("rotate(".concat(g,", ").concat(E,", ").concat(j,")")),S.length&&(w.transform=S.join(" ")),v.createElement("text",nS({},je(w),{ref:r,x:E,y:j,className:a.clsx("recharts-text",b),textAnchor:d,fill:c.includes("url")?pS:c}),h.map((e,t)=>{var r=e.words.join(x?"":" ");return v.createElement("tspan",{x:E,dy:0===t?O:l,key:"".concat(r,"-").concat(t)},r)}))});function vS(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?vS(Object(r),!0).forEach(function(t){gS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gS(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}yS.displayName="Text";var bS=["labelRef"],xS=["content"];function wS(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 OS(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 ES(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?OS(Object(r),!0).forEach(function(t){jS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OS(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 SS(){return SS=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},SS.apply(null,arguments)}var PS=t.createContext(null),AS=e=>{var{x:r,y:n,upperWidth:i,lowerWidth:a,width:o,height:l,children:s}=e,c=t.useMemo(()=>({x:r,y:n,upperWidth:i,lowerWidth:a,width:o,height:l}),[r,n,i,a,o,l]);return v.createElement(PS.Provider,{value:c},s)},kS=()=>{var e=t.useContext(PS),r=Sc();return e||(r?jc(r):void 0)},_S=t.createContext(null),NS=e=>null!=e&&"function"==typeof e,MS=(e,t,r,n,i)=>{var o,l,{offset:s,className:c}=e,{cx:u,cy:d,innerRadius:f,outerRadius:p,startAngle:h,endAngle:y,clockWise:m}=i,g=(f+p)/2,b=((e,t)=>lr(t-e)*Math.min(Math.abs(t-e),360))(h,y),x=b>=0?1:-1;switch(t){case"insideStart":o=h+x*s,l=m;break;case"insideEnd":o=y-x*s,l=!m;break;case"end":o=y+x*s,l=m;break;default:throw new Error("Unsupported position ".concat(t))}l=b<=0?l:!l;var w=Wf(u,d,g,o),O=Wf(u,d,g,o+359*(l?1:-1)),E="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(l?0:1,",\n ").concat(O.x,",").concat(O.y),j=gr(e.id)?pr("recharts-radial-line-"):e.id;return v.createElement("text",SS({},n,{dominantBaseline:"central",className:a.clsx("recharts-radial-bar-label",c)}),v.createElement("defs",null,v.createElement("path",{id:j,d:E})),v.createElement("textPath",{xlinkHref:"#".concat(j)},r))},TS=e=>null!=e&&"cx"in e&&ur(e.cx),IS={angle:0,offset:5,zIndex:mh.label,position:"middle",textBreakAll:!1};function DS(e){var r,n,i,o,l,s=Cr(e,IS),{viewBox:c,parentViewBox:u,position:d,value:f,children:p,content:h,className:y="",textBreakAll:m,labelRef:g}=s,b=(r=t.useContext(_S),n=Li(Ih),r||n),x=kS(),w=function(e){if(!TS(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}}(i=null==c?"center"===d?x:null!=b?b:x:TS(c)?c:jc(c));if(!i||gr(f)&&gr(p)&&!t.isValidElement(h)&&"function"!=typeof h)return null;var O=ES(ES({},s),{},{viewBox:i});if(t.isValidElement(h)){var{labelRef:E}=O,j=wS(O,bS);return t.cloneElement(h,j)}if("function"==typeof h){var{content:S}=O,P=wS(O,xS);if(o=t.createElement(h,P),t.isValidElement(o))return o}else o=(e=>{var{value:t,formatter:r}=e,n=gr(e.children)?t:e.children;return"function"==typeof r?r(n):n})(s);var A=je(s);if(TS(i)){if("insideStart"===d||"insideEnd"===d||"end"===d)return MS(s,d,o,A,i);l=((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}=Wf(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}=Wf(n,i,f,c);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}})(i,s.offset,s.position)}else{if(!w)return null;var k=(e=>{var{viewBox:t,position:r,offset:n=0,parentViewBox:i}=e,{x:a,y:o,height:l,upperWidth:s,lowerWidth:c}=jc(t),u=a,d=a+(s-c)/2,f=(u+d)/2,p=(s+c)/2,h=u+s/2,y=l>=0?1:-1,v=y*n,m=y>0?"end":"start",g=y>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 j={x:u+s/2,y:o-v,horizontalAnchor:"middle",verticalAnchor:m};return E&&(j.height=Math.max(o-E.y,0),j.width=s),j}if("bottom"===r){var S={x:d+c/2,y:o+l+v,horizontalAnchor:"middle",verticalAnchor:g};return E&&(S.height=Math.max(E.y+E.height-(o+l),0),S.width=c),S}if("left"===r){var P={x:f-x,y:o+l/2,horizontalAnchor:w,verticalAnchor:"middle"};return E&&(P.width=Math.max(P.x-E.x,0),P.height=l),P}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?mS({x:f+x,y:o+l/2,horizontalAnchor:O,verticalAnchor:"middle"},k):"insideRight"===r?mS({x:f+p-x,y:o+l/2,horizontalAnchor:w,verticalAnchor:"middle"},k):"insideTop"===r?mS({x:u+s/2,y:o+v,horizontalAnchor:"middle",verticalAnchor:g},k):"insideBottom"===r?mS({x:d+c/2,y:o+l-v,horizontalAnchor:"middle",verticalAnchor:m},k):"insideTopLeft"===r?mS({x:u+x,y:o+v,horizontalAnchor:O,verticalAnchor:g},k):"insideTopRight"===r?mS({x:u+s-x,y:o+v,horizontalAnchor:w,verticalAnchor:g},k):"insideBottomLeft"===r?mS({x:d+x,y:o+l-v,horizontalAnchor:O,verticalAnchor:m},k):"insideBottomRight"===r?mS({x:d+c-x,y:o+l-v,horizontalAnchor:w,verticalAnchor:m},k):r&&"object"==typeof r&&(ur(r.x)||cr(r.x))&&(ur(r.y)||cr(r.y))?mS({x:a+hr(r.x,p),y:o+hr(r.y,l),horizontalAnchor:"end",verticalAnchor:"end"},k):mS({x:h,y:o+l/2,horizontalAnchor:"middle",verticalAnchor:"middle"},k)})({viewBox:w,position:d,offset:s.offset,parentViewBox:TS(u)?void 0:u});l=ES(ES({x:k.x,y:k.y,textAnchor:k.horizontalAnchor,verticalAnchor:k.verticalAnchor},void 0!==k.width?{width:k.width}:{}),void 0!==k.height?{height:k.height}:{})}return v.createElement(WE,{zIndex:s.zIndex},v.createElement(yS,SS({ref:g,className:a.clsx("recharts-label",y)},A,l,{textAnchor:lS(A.textAnchor)?A.textAnchor:l.textAnchor,breakAll:m}),o))}DS.displayName="Label";function CS(e){var{label:r,labelRef:n}=e;return((e,r,n)=>{if(!e)return null;var i={viewBox:r,labelRef:n};return!0===e?v.createElement(DS,SS({key:"label-implicit"},i)):dr(e)?v.createElement(DS,SS({key:"label-implicit",value:e},i)):t.isValidElement(e)?e.type===DS?t.cloneElement(e,ES({key:"label-implicit"},i)):v.createElement(DS,SS({key:"label-implicit",content:e},i)):NS(e)?v.createElement(DS,SS({key:"label-implicit",content:e},i)):e&&"object"==typeof e?v.createElement(DS,SS({},e,{key:"label-implicit"},i)):null})(r,kS(),n)||null}var zS=["valueAccessor"],LS=["dataKey","clockWise","id","textBreakAll","zIndex"];function RS(){return RS=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},RS.apply(null,arguments)}function BS(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 VS=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(function(e){return gr(e)||"string"==typeof e||"number"==typeof e||"boolean"==typeof e}(t))return t},KS=t.createContext(void 0),$S=KS.Provider,FS=t.createContext(void 0);function US(e){var{valueAccessor:r=VS}=e,n=BS(e,zS),{dataKey:i,clockWise:a,id:o,textBreakAll:l,zIndex:s}=n,c=BS(n,LS),u=t.useContext(KS),d=t.useContext(FS),f=u||d;return f&&f.length?v.createElement(WE,{zIndex:null!=s?s:mh.label},v.createElement(Ne,{className:"recharts-label-list"},f.map((e,t)=>{var a,s=gr(i)?r(e,t):vs(e.payload,i),u=gr(o)?{}:{id:"".concat(o,"-").concat(t)};return v.createElement(DS,RS({key:"label-".concat(t)},je(e),c,u,{fill:null!==(a=n.fill)&&void 0!==a?a:e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:l,viewBox:e.viewBox,index:t,zIndex:0}))}))):null}function WS(e){var{label:t}=e;return t?!0===t?v.createElement(US,{key:"labelList-implicit"}):v.isValidElement(t)||NS(t)?v.createElement(US,{key:"labelList-implicit",content:t}):"object"==typeof t?v.createElement(US,RS({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function HS(){return HS=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},HS.apply(null,arguments)}FS.Provider,US.displayName="LabelList";var qS=e=>{var{cx:t,cy:r,r:n,className:i}=e,o=a.clsx("recharts-dot",i);return ur(t)&&ur(r)&&ur(n)?v.createElement("circle",HS({},Oe(e),Mr(e),{className:o,cx:t,cy:r,r:n})):null},YS=jl({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:GS,removeRadiusAxis:XS,addAngleAxis:ZS,removeAngleAxis:JS}=YS.actions,QS=YS.reducer;var eP,tP={exports:{}},rP={};function nP(){if(eP)return rP;eP=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 rP.ContextConsumer=a,rP.ContextProvider=o,rP.Element=e,rP.ForwardRef=l,rP.Fragment=r,rP.Lazy=d,rP.Memo=u,rP.Portal=t,rP.Profiler=i,rP.StrictMode=n,rP.Suspense=s,rP.SuspenseList=c,rP.isContextConsumer=function(e){return h(e)===a},rP.isContextProvider=function(e){return h(e)===o},rP.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},rP.isForwardRef=function(e){return h(e)===l},rP.isFragment=function(e){return h(e)===r},rP.isLazy=function(e){return h(e)===d},rP.isMemo=function(e){return h(e)===u},rP.isPortal=function(e){return h(e)===t},rP.isProfiler=function(e){return h(e)===i},rP.isStrictMode=function(e){return h(e)===n},rP.isSuspense=function(e){return h(e)===s},rP.isSuspenseList=function(e){return h(e)===c},rP.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)},rP.typeOf=h,rP}var iP,aP,oP={};
38
38
  /**
39
39
  * @license React
40
40
  * react-is.development.js
@@ -43,5 +43,5 @@
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 lP(){return iP||(iP=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");oP.ContextConsumer=o,oP.ContextProvider=l,oP.Element=t,oP.ForwardRef=s,oP.Fragment=n,oP.Lazy=f,oP.Memo=d,oP.Portal=r,oP.Profiler=a,oP.StrictMode=i,oP.Suspense=c,oP.SuspenseList=u,oP.isContextConsumer=function(t){return e(t)===o},oP.isContextProvider=function(t){return e(t)===l},oP.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},oP.isForwardRef=function(t){return e(t)===s},oP.isFragment=function(t){return e(t)===n},oP.isLazy=function(t){return e(t)===f},oP.isMemo=function(t){return e(t)===d},oP.isPortal=function(t){return e(t)===r},oP.isProfiler=function(t){return e(t)===a},oP.isStrictMode=function(t){return e(t)===i},oP.isSuspense=function(t){return e(t)===c},oP.isSuspenseList=function(t){return e(t)===u},oP.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)},oP.typeOf=e}()),oP}function sP(){return aP||(aP=1,"production"===process.env.NODE_ENV?tP.exports=nP():tP.exports=lP()),tP.exports}var cP=sP(),uP=e=>"string"==typeof e?e:e?e.displayName||e.name||"Component":"",dP=null,fP=null,pP=e=>{if(e===dP&&Array.isArray(fP))return fP;var r=[];return t.Children.forEach(e,e=>{gr(e)||(cP.isFragment(e)?r=r.concat(pP(e.props.children)):r.push(e))}),fP=r,dP=e,r};function hP(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map(e=>uP(e)):[uP(t)],pP(e).forEach(e=>{var t=ir(e,"type.displayName")||ir(e,"type.name");t&&-1!==n.indexOf(t)&&r.push(e)}),r}var vP,yP,mP,gP=e=>!e||"object"!=typeof e||!("clipDot"in e)||Boolean(e.clipDot),bP={};function xP(){return vP||(vP=1,e=bP,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}),bP;var e}function wP(){return mP?yP:(mP=1,yP=xP().isPlainObject)}var OP,EP,jP,SP,PP,kP=zt(wP());function AP(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 _P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?AP(Object(r),!0).forEach(function(t){NP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function NP(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 MP(){return MP=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},MP.apply(null,arguments)}function TP(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var IP=(e,t,r,n,i)=>{var a,o=r-n;return a=or(OP||(OP=TP(["M ",",",""])),e,t),a+=or(EP||(EP=TP(["L ",",",""])),e+r,t),a+=or(jP||(jP=TP(["L ",",",""])),e+r-o/2,t+i),a+=or(SP||(SP=TP(["L ",",",""])),e+r-o/2-n,t+i),a+=or(PP||(PP=TP(["L ",","," Z"])),e,t)},DP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},CP=e=>{var r=Cr(e,DP),{x:n,y:i,upperWidth:o,lowerWidth:l,height:s,className:c}=r,{animationEasing:u,animationDuration:d,animationBegin:f,isUpdateAnimationActive:p}=r,h=t.useRef(null),[v,m]=t.useState(-1),g=t.useRef(o),b=t.useRef(l),x=t.useRef(s),w=t.useRef(n),O=t.useRef(i),E=df(e,"trapezoid-");if(t.useEffect(()=>{if(h.current&&h.current.getTotalLength)try{var e=h.current.getTotalLength();e&&m(e)}catch(e){}},[]),n!==+n||i!==+i||o!==+o||l!==+l||s!==+s||0===o&&0===l||0===s)return null;var j=a.clsx("recharts-trapezoid",c);if(!p)return y.createElement("g",null,y.createElement("path",MP({},je(r),{className:j,d:IP(n,i,o,l,s)})));var S=g.current,P=b.current,k=x.current,A=w.current,_=O.current,N="0px ".concat(-1===v?1:v,"px"),M="".concat(v,"px ").concat(v,"px"),T=Bd(["strokeDasharray"],d,u);return y.createElement(uf,{animationId:E,key:E,canBegin:v>0,duration:d,easing:u,isActive:p,begin:f},e=>{var t=yr(S,o,e),a=yr(P,l,e),c=yr(k,s,e),u=yr(A,n,e),d=yr(_,i,e);h.current&&(g.current=t,b.current=a,x.current=c,w.current=u,O.current=d);var f=e>0?{transition:T,strokeDasharray:M}:{strokeDasharray:N};return y.createElement("path",MP({},je(r),{className:j,d:IP(u,d,t,a,c),ref:h,style:_P(_P({},f),r.style)}))})},zP=["option","shapeType","activeClassName","inActiveClassName"];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 RP(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){BP(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 BP(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 VP(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return y.createElement(Tf,r);case"trapezoid":return y.createElement(CP,r);case"sector":return y.createElement(tp,r);case"symbols":if(function(e){return"symbols"===e}(t))return y.createElement(_r,r);break;case"curve":return y.createElement(_d,r);default:return null}}function KP(e){var r,{option:n,shapeType:i,activeClassName:a="recharts-active-shape",inActiveClassName:o="recharts-shape"}=e,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,zP);if(t.isValidElement(n))r=t.cloneElement(n,RP(RP({},l),function(e){return t.isValidElement(e)?e.props:e}(n)));else if("function"==typeof n)r=n(l,l.index);else if(kP(n)&&"boolean"!=typeof n){var s=function(e,t){return RP(RP({},t),e)}(n,l);r=y.createElement(VP,{shapeType:i,elementProps:s})}else{var c=l;r=y.createElement(VP,{shapeType:i,elementProps:c})}return l.isActive?y.createElement(Ne,{className:a},r):y.createElement(Ne,{className:o},r)}var $P,FP=(e,t,r)=>{var n=Ii();return(i,a)=>o=>{null==e||e(i,a,o),n(Uw({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},UP=e=>{var t=Ii();return(r,n)=>i=>{null==e||e(r,n,i),t(Ww())}},WP=(e,t,r)=>{var n=Ii();return(i,a)=>o=>{null==e||e(i,a,o),n(qw({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function HP(e){var{tooltipEntrySettings:r}=e,n=Ii(),i=Xs(),a=t.useRef(null);return t.useLayoutEffect(()=>{i||(null===a.current?n(Vw(r)):a.current!==r&&n(Kw({prev:a.current,next:r})),a.current=r)},[r,n,i]),t.useLayoutEffect(()=>()=>{a.current&&(n($w(a.current)),a.current=null)},[n]),null}function qP(e){var{legendPayload:r}=e,n=Ii(),i=Xs(),a=t.useRef(null);return t.useLayoutEffect(()=>{i||(null===a.current?n(_u(r)):a.current!==r&&n(Nu({prev:a.current,next:r})),a.current=r)},[n,i,r]),t.useLayoutEffect(()=>()=>{a.current&&(n(Mu(a.current)),a.current=null)},[n]),null}var YP=null!==($P=y["useId".toString()])&&void 0!==$P?$P:()=>{var[e]=y.useState(()=>pr("uid-"));return e};var GP=t.createContext(void 0),XP=e=>{var{id:t,type:r,children:n}=e,i=function(e,t){var r=YP();return t||(e?"".concat(e,"-").concat(r):r)}("recharts-".concat(r),t);return y.createElement(GP.Provider,{value:i},n(i))},ZP=jl({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:hl()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Uo(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:hl()},removeCartesianGraphicalItem:{reducer(e,t){var r=Uo(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:hl()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:hl()},removePolarGraphicalItem:{reducer(e,t){var r=Uo(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:hl()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Uo(e).polarItems.indexOf(r);i>-1&&(e.polarItems[i]=n)},prepare:hl()}}}),{addCartesianGraphicalItem:JP,replaceCartesianGraphicalItem:QP,removeCartesianGraphicalItem:ek,addPolarGraphicalItem:tk,removePolarGraphicalItem:rk,replacePolarGraphicalItem:nk}=ZP.actions,ik=ZP.reducer,ak=e=>{var r=Ii(),n=t.useRef(null);return t.useLayoutEffect(()=>{null===n.current?r(JP(e)):n.current!==e&&r(QP({prev:n.current,next:e})),n.current=e},[r,e]),t.useLayoutEffect(()=>()=>{n.current&&(r(ek(n.current)),n.current=null)},[r]),null},ok=t.memo(ak),lk=["points"];function sk(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 ck(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sk(Object(r),!0).forEach(function(t){uk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sk(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 dk(){return dk=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},dk.apply(null,arguments)}function fk(e){var{option:r,dotProps:n,className:i}=e;if(t.isValidElement(r))return t.cloneElement(r,n);if("function"==typeof r)return r(n);var o=a.clsx(i,"boolean"!=typeof r?r.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,lk);return y.createElement(qS,dk({},c,{className:o}))}function pk(e){var{points:r,dot:n,className:i,dotClassName:a,dataKey:o,baseProps:l,needClip:s,clipPathId:c,zIndex:u=mh.scatter}=e;if(!function(e,t){return null!=e&&(!!t||1===e.length)}(r,n))return null;var d=gP(n),f=function(e){return null==e?null:t.isValidElement(e)?je(e.props):"object"!=typeof e||Array.isArray(e)?null:je(e)}(n),p=r.map((e,t)=>{var i,s,c=ck(ck(ck({r:3},l),f),{},{index:t,cx:null!==(i=e.x)&&void 0!==i?i:void 0,cy:null!==(s=e.y)&&void 0!==s?s:void 0,dataKey:o,value:e.value,payload:e.payload,points:r});return y.createElement(fk,{key:"dot-".concat(t),option:n,dotProps:c,className:a})}),h={};return s&&null!=c&&(h.clipPath="url(#clipPath-".concat(d?"":"dots-").concat(c,")")),y.createElement(WE,{zIndex:u},y.createElement(Ne,dk({className:i},h),p))}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=jl({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:hl()},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:hl()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:hl()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:hl()},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:hl()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:hl()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:hl()},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:hl()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:hl()},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]=vk(vk({},i),{},{width:n,widthHistory:l})}}}}),{addXAxis:gk,replaceXAxis:bk,removeXAxis:xk,addYAxis:wk,replaceYAxis:Ok,removeYAxis:Ek,addZAxis:jk,replaceZAxis:Sk,removeZAxis:Pk,updateYAxisWidth:kk}=mk.actions,Ak=mk.reducer,_k=Gi([Hs],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),Nk=Gi([_k,Ms,Ts],(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)}}),Mk=()=>Li(Nk);function Tk(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 Ik(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tk(Object(r),!0).forEach(function(t){Dk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Dk(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 Ck=e=>{var{point:r,childIndex:n,mainColor:i,activeDot:a,dataKey:o,clipPath:l}=e;if(!1===a||null==r.x||null==r.y)return null;var s,c=Ik(Ik(Ik({},{index:n,dataKey:o,cx:r.x,cy:r.y,r:4,fill:null!=i?i:"none",strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value}),Ee(a)),Mr(a));return s=t.isValidElement(a)?t.cloneElement(a,c):"function"==typeof a?a(c):y.createElement(qS,c),y.createElement(Ne,{className:"recharts-active-dot",clipPath:l},s)};function zk(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:a,zIndex:o=mh.activeDot}=e,l=Li(eE),s=Li(cE);if(null==t||null==s)return null;var c=t.find(e=>s.includes(e.payload));return gr(c)?null:y.createElement(WE,{zIndex:o},y.createElement(Ck,{point:c,childIndex:Number(l),mainColor:r,dataKey:i,activeDot:n,clipPath:a}))}var Lk=(e,t,r)=>{var n=null!=r?r:e;if(!gr(n))return hr(n,t,0)};function Rk(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 Bk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Rk(Object(r),!0).forEach(function(t){Vk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Vk(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 Kk(e,t){return e&&"object"==typeof e&&"zIndex"in e&&"number"==typeof e.zIndex&&ds(e.zIndex)?e.zIndex:t}var $k=e=>{var{chartData:r}=e,n=Ii(),i=Xs();return t.useEffect(()=>i?()=>{}:(n(fj(r)),()=>{n(fj(void 0))}),[r,n,i]),null},Fk={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},Uk=jl({name:"brush",initialState:Fk,reducers:{setBrushSettings:(e,t)=>null==t.payload?Fk:t.payload}}),{setBrushSettings:Wk}=Uk.actions,Hk=Uk.reducer;var qk=jl({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Uo(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=Uo(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=Uo(e).lines.findIndex(e=>e===t.payload);-1!==r&&e.lines.splice(r,1)}}}),{addDot:Yk,removeDot:Gk,addArea:Xk,removeArea:Zk,addLine:Jk,removeLine:Qk}=qk.actions,eA=qk.reducer,tA=t.createContext(void 0),rA=e=>{var{children:r}=e,[n]=t.useState("".concat(pr("recharts"),"-clip")),i=Mk();if(null==i)return null;var{x:a,y:o,width:l,height:s}=i;return y.createElement(tA.Provider,{value:n},y.createElement("defs",null,y.createElement("clipPath",{id:n},y.createElement("rect",{x:a,y:o,height:s,width:l}))),r)};function nA(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 iA(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 aA(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 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 lA(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 cA(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(ur(c)||cd)return null!==(n=function(e,t){return nA(e,t+1)}(a,ur(c)?c:0))&&void 0!==n?n:[];var p=[],h="top"===s||"bottom"===s?"width":"height",v=d&&"width"===h?Bj(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?iA(Bj(i,{fontSize:t,letterSpacing:r}),v,f):Bj(i,{fontSize:t,letterSpacing:r})[h]},m=a[0],g=a[1],b=a.length>=2&&null!=m&&null!=g?lr(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:nA(n,u)};var a,o=c,f=()=>(void 0===a&&(a=r(t,o)),a),p=t.coordinate,h=0===c||aA(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||aA(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=lA(lA({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),null!=u.tickCoord&&aA(e,u.tickCoord,()=>d,s,c)&&(c=u.tickCoord-e*(d/2+i),o[l-1]=lA(lA({},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=lA(lA({},l),{},{tickCoord:d<0?l.coordinate-d*e:l.coordinate})}else o[t]=l=lA(lA({},l),{},{tickCoord:l.coordinate});null!=l.tickCoord&&aA(e,l.tickCoord,u,s,c)&&(s=l.tickCoord+e*(u()/2+i),o[t]=lA(lA({},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=lA(lA({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate})}else a[t]=u=lA(lA({},u),{},{tickCoord:u.coordinate});null!=u.tickCoord&&aA(e,u.tickCoord,d,l,s)&&(s=u.tickCoord-e*(d()/2+i),a[t]=lA(lA({},u),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}(b,x,y,a,l),p.filter(e=>e.isShow))}var uA=jl({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:dA,removeRenderedTicks:fA}=uA.actions,pA=uA.reducer,hA=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function vA(){return vA=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},vA.apply(null,arguments)}function yA(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 mA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yA(Object(r),!0).forEach(function(t){gA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gA(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 bA={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:mh.axis};function xA(e){var{x:t,y:r,width:n,height:i,orientation:o,mirror:l,axisLine:s,otherSvgProps:c}=e;if(!s)return null;var u=mA(mA(mA({},c),Oe(s)),{},{fill:"none"});if("top"===o||"bottom"===o){var d=+("top"===o&&!l||"bottom"===o&&l);u=mA(mA({},u),{},{x1:t,y1:r+d*i,x2:t+n,y2:r+d*i})}else{var f=+("left"===o&&!l||"right"===o&&l);u=mA(mA({},u),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return y.createElement("line",vA({},u,{className:a.clsx("recharts-cartesian-axis-line",ir(s,"className"))}))}function wA(e){var t,r,{option:n,tickProps:i,value:o}=e,l=a.clsx(i.className,"recharts-cartesian-axis-tick-value");if(y.isValidElement(n))t=y.cloneElement(n,mA(mA({},i),{},{className:l}));else if("function"==typeof n)t=n(mA(mA({},i),{},{className:l}));else{var s="recharts-cartesian-axis-tick-value";"boolean"!=typeof n&&(s=a.clsx(s,(r=n)&&"object"==typeof r&&"className"in r&&"string"==typeof r.className?r.className:"")),t=y.createElement(vS,vA({},i,{className:s}),o)}return t}function OA(e){var{ticks:r,axisType:n,axisId:i}=e,a=Ii();return t.useEffect(()=>{if(null==i||null==n)return wr;var e=r.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index}));return a(dA({ticks:e,axisId:i,axisType:n})),()=>{a(fA({axisId:i,axisType:n}))}},[a,r,i,n]),null}var EA=t.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:o,tickFormatter:l,unit:s,padding:c,tickTextProps:u,orientation:d,mirror:f,x:p,y:h,width:v,height:m,tickSize:g,tickMargin:b,fontSize:x,letterSpacing:w,getTicksConfig:O,events:E,axisType:j,axisId:S}=e,P=cA(mA(mA({},O),{},{ticks:r}),x,w),k=Oe(O),A=Ee(n),_=lS(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),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 i&&(M=i);var T=mA(mA({},k),{},{fill:"none"},M),I=P.map(e=>mA({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=ur(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,m,d,g,f,b))),D=I.map(e=>{var{entry:t,line:r}=e;return y.createElement(Ne,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},i&&y.createElement("line",vA({},T,r,{className:a.clsx("recharts-cartesian-axis-tick-line",ir(i,"className"))})))}),C=I.map((e,t)=>{var r,i,{entry:a,tick:d}=e,f=mA(mA(mA(mA({verticalAnchor:N},k),{},{textAnchor:_,stroke:"none",fill:o},d),{},{index:t,payload:a,visibleTicksCount:P.length,tickFormatter:l,padding:c},u),{},{angle:null!==(r=null!==(i=null==u?void 0:u.angle)&&void 0!==i?i:k.angle)&&void 0!==r?r:0}),p=mA(mA({},f),A);return y.createElement(Ne,vA({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(a.value,"-").concat(a.coordinate,"-").concat(a.tickCoord)},Tr(E,a,t)),n&&y.createElement(wA,{option:n,tickProps:p,value:"".concat("function"==typeof l?l(a.value,t):a.value).concat(s||"")}))});return y.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(j,"-ticks")},y.createElement(OA,{ticks:P,axisId:S,axisType:j}),C.length>0&&y.createElement(WE,{zIndex:mh.label},y.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(j,"-tick-labels"),ref:t},C)),D.length>0&&y.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(j,"-tick-lines")},D))}),jA=t.forwardRef((e,r)=>{var{axisLine:n,width:i,height:o,className:l,hide:s,ticks:c,axisType:u,axisId: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,hA),[p,h]=t.useState(""),[v,m]=t.useState(""),g=t.useRef(null);t.useImperativeHandle(r,()=>({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:g.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var b=t.useCallback(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=t;var r=t[0];if(r){var n=window.getComputedStyle(r),i=n.fontSize,a=n.letterSpacing;i===p&&a===v||(h(i),m(a))}}},[p,v]);return s||null!=i&&i<=0||null!=o&&o<=0?null:y.createElement(WE,{zIndex:e.zIndex},y.createElement(Ne,{className:a.clsx("recharts-cartesian-axis",l)},y.createElement(xA,{x:e.x,y:e.y,width:i,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Oe(e)}),y.createElement(EA,{ref:b,axisType:u,events:f,fontSize:p,getTicksConfig:e,height:e.height,letterSpacing:v,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:c,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:d}),y.createElement(kS,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},y.createElement(CS,{label:e.label,labelRef:e.labelRef}),e.children)))}),SA=y.forwardRef((e,t)=>{var r=Cr(e,bA);return y.createElement(jA,vA({},r,{ref:t}))});SA.displayName="CartesianAxis";var PA=["x1","y1","x2","y2","key"],kA=["offset"],AA=["xAxisId","yAxisId"],_A=["xAxisId","yAxisId"];function NA(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 MA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?NA(Object(r),!0).forEach(function(t){TA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function TA(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 IA(){return IA=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},IA.apply(null,arguments)}function DA(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 CA=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:l}=e;return y.createElement("rect",{x:n,y:i,ry:l,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function zA(e){var t,{option:r,lineItemProps:n}=e;if(y.isValidElement(r))t=y.cloneElement(r,n);else if("function"==typeof r)t=r(n);else{var i,{x1:a,y1:o,x2:l,y2:s,key:c}=n,u=null!==(i=Oe(DA(n,PA)))&&void 0!==i?i:{},{offset:d}=u,f=DA(u,kA);t=y.createElement("line",IA({},f,{x1:a,y1:o,x2:l,y2:s,fill:"none",key:c}))}return t}function LA(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,l=DA(e,AA),s=i.map((e,i)=>{var a=MA(MA({},l),{},{x1:t,y1:e,x2:t+r,y2:e,key:"line-".concat(i),index:i});return y.createElement(zA,{key:"line-".concat(i),option:n,lineItemProps:a})});return y.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function RA(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,l=DA(e,_A),s=i.map((e,i)=>{var a=MA(MA({},l),{},{x1:e,y1:t,x2:e,y2:t+r,key:"line-".concat(i),index:i});return y.createElement(zA,{option:n,lineItemProps:a,key:"line-".concat(i)})});return y.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function BA(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:l,horizontal:s=!0}=e;if(!s||!t||!t.length||null==l)return null;var c=l.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==c[0]&&c.unshift(0);var u=c.map((e,l)=>{var s=c[l+1],u=null==s?i+o-e:s-e;if(u<=0)return null;var d=l%t.length;return y.createElement("rect",{key:"react-".concat(l),y:e,x:n,height:u,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return y.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function VA(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:l,verticalPoints:s}=e;if(!t||!r||!r.length)return null;var c=s.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==c[0]&&c.unshift(0);var u=c.map((e,t)=>{var s=c[t+1],u=null==s?i+o-e:s-e;if(u<=0)return null;var d=t%r.length;return y.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:u,height:l,stroke:"none",fill:r[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return y.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var KA=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return gs(cA(MA(MA(MA({},bA),r),{},{ticks:bs(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},$A=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return gs(cA(MA(MA(MA({},bA),r),{},{ticks:bs(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},FA={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:mh.grid};function UA(e){var t=Ac(),r=_c(),n=kc(),i=MA(MA({},Cr(e,FA)),{},{x:ur(e.x)?e.x:n.left,y:ur(e.y)?e.y:n.top,width:ur(e.width)?e.width:n.width,height:ur(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:l,y:s,width:c,height:u,syncWithTicks:d,horizontalValues:f,verticalValues:p}=i,h=Xs(),v=Li(e=>Sw(e,"xAxis",a,h)),m=Li(e=>Sw(e,"yAxis",o,h));if(!(fs(c)&&fs(u)&&ur(l)&&ur(s)))return null;var g=i.verticalCoordinatesGenerator||KA,b=i.horizontalCoordinatesGenerator||$A,{horizontalPoints:x,verticalPoints:w}=i;if(!(x&&x.length||"function"!=typeof b)){var O=f&&f.length,E=b({yAxis:m?MA(MA({},m),{},{ticks:O?f:m.ticks}):void 0,width:null!=t?t:c,height:null!=r?r:u,offset:n},!!O||d);lc(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 j=p&&p.length,S=g({xAxis:v?MA(MA({},v),{},{ticks:j?p:v.ticks}):void 0,width:null!=t?t:c,height:null!=r?r:u,offset:n},!!j||d);lc(Array.isArray(S),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof S,"]")),Array.isArray(S)&&(w=S)}return y.createElement(WE,{zIndex:i.zIndex},y.createElement("g",{className:"recharts-cartesian-grid"},y.createElement(CA,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),y.createElement(BA,IA({},i,{horizontalPoints:x})),y.createElement(VA,IA({},i,{verticalPoints:w})),y.createElement(LA,IA({},i,{offset:n,horizontalPoints:x,xAxis:v,yAxis:m})),y.createElement(RA,IA({},i,{offset:n,verticalPoints:w,xAxis:v,yAxis:m}))))}UA.displayName="CartesianGrid";var WA=jl({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:HA,replaceErrorBar:qA,removeErrorBar:YA}=WA.actions,GA=WA.reducer,XA=["children"];var ZA={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},JA=t.createContext(ZA);function QA(e){var{children:t}=e,r=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,XA);return y.createElement(JA.Provider,{value:r},t)}function e_(e,t){var r,n,i=Li(t=>Cb(t,e)),a=Li(e=>Rb(e,t)),o=null!==(r=null==i?void 0:i.allowDataOverflow)&&void 0!==r?r:Ib.allowDataOverflow,l=null!==(n=null==a?void 0:a.allowDataOverflow)&&void 0!==n?n:zb.allowDataOverflow;return{needClip:o||l,needClipX:o,needClipY:l}}function t_(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=Mk(),{needClipX:a,needClipY:o,needClip:l}=e_(t,r);if(!l||!i)return null;var{x:s,y:c,width:u,height:d}=i;return y.createElement("clipPath",{id:"clipPath-".concat(n)},y.createElement("rect",{x:a?s:s-u/2,y:o?c:c-d/2,width:a?u:2*u,height:o?d:2*d}))}var r_=(e,t,r,n)=>Aw(e,"xAxis",t,n),n_=(e,t,r,n)=>kw(e,"xAxis",t,n),i_=(e,t,r,n)=>Aw(e,"yAxis",r,n),a_=(e,t,r,n)=>kw(e,"yAxis",r,n),o_=Gi([Nc,r_,i_,n_,a_],(e,t,r,n,i)=>ms(e,"xAxis")?As(t,n,!1):As(r,i,!1));function l_(e){return"line"===e.type}var s_=Gi([Wb,(e,t,r,n,i)=>i],(e,t)=>e.filter(l_).find(e=>e.id===t)),c_=Gi([Nc,r_,i_,n_,a_,s_,o_,gp],(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=ys(e,o);if("horizontal"===t){var u=Es({axis:r,ticks:i,bandSize:l,entry:e,index:s}),d=gr(c)?null:n.scale.map(c);return{x:u,y:null!=d?d:null,value:c,payload:e}}var f=gr(c)?null:r.scale.map(c),p=Es({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 u_(e){var t=Ee(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 d_=["id"],f_=["type","layout","connectNulls","needClip","shape"],p_=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];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){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 y_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v_(Object(r),!0).forEach(function(t){m_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function m_(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 g_(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 b_=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ns(r,t),payload:e}]},x_=y.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:l,unit:s,tooltipType:c,id:u}=e,d={dataDefinedOnItem:r,getPosition:wr,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ns(o,t),hide:l,type:c,color:n,unit:s,graphicalItemId:u}};return y.createElement(HP,{tooltipEntrySettings:d})}),w_=(e,t)=>"".concat(t,"px ").concat(e,"px");function O_(e,t){for(var r=e.length%2!=0?[...e,0]:e,n=[],i=0;i<t;++i)n.push(...r);return n}function E_(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:o}=n,{id:l}=n,s=Oe(g_(n,d_));return y.createElement(pk,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:s,needClip:o,clipPathId:t})}function j_(e){var{showLabels:r,children:n,points:i}=e,a=t.useMemo(()=>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 y_(y_({},n),{},{value:e.value,payload:e.payload,viewBox:n,parentViewBox:void 0,fill:void 0})}),[i]);return y.createElement($S,{value:r?a:void 0},n)}function S_(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a}=e,{type:o,layout:l,connectNulls:s,needClip:c,shape:u}=a,d=y_(y_({},je(g_(a,f_))),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:o,layout:l,connectNulls:s,strokeDasharray:null!=i?i:a.strokeDasharray});return y.createElement(y.Fragment,null,(null==n?void 0:n.length)>1&&y.createElement(KP,h_({shapeType:"curve",option:u},d,{pathRef:r})),y.createElement(E_,{points:n,clipPathId:t,props:a}))}function P_(e){var{clipPathId:r,props:n,pathRef:i,previousPointsRef:a,longestAnimatedLengthRef:o}=e,{points:l,strokeDasharray:s,isAnimationActive:c,animationBegin:u,animationDuration:d,animationEasing:f,animateNewValues:p,width:h,height:v,onAnimationEnd:m,onAnimationStart:g}=n,b=a.current,x=df(l,"recharts-line-"),w=t.useRef(x),[O,E]=t.useState(!1),j=!O,S=t.useCallback(()=>{"function"==typeof m&&m(),E(!1)},[m]),P=t.useCallback(()=>{"function"==typeof g&&g(),E(!0)},[g]),k=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(i.current),A=t.useRef(0);w.current!==x&&(A.current=o.current,w.current=x);var _=A.current;return y.createElement(j_,{points:l,showLabels:j},n.children,y.createElement(uf,{animationId:x,begin:u,duration:d,isActive:c,easing:f,onAnimationEnd:S,onAnimationStart:P,key:x},e=>{var t,u=yr(_,k+_,e),d=Math.min(u,k);if(c)if(s){var f="".concat(s).split(/[,\s]+/gim).map(e=>parseFloat(e));t=((e,t,r)=>{var n=r.reduce((e,t)=>e+t,0);if(!n)return w_(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[...O_(r,i),...o,...d].map(e=>"".concat(e,"px")).join(", ")})(d,k,f)}else t=w_(k,d);else t=null==s?void 0:String(s);if(e>0&&k>0&&(a.current=l,o.current=Math.max(o.current,d)),b){var m=b.length/l.length,g=1===e?l:l.map((t,r)=>{var n=Math.floor(r*m);if(b[n]){var i=b[n];return y_(y_({},t),{},{x:yr(i.x,t.x,e),y:yr(i.y,t.y,e)})}return y_(y_({},t),{},p?{x:yr(2*h,t.x,e),y:yr(v/2,t.y,e)}:{x:t.x,y:t.y})});return a.current=g,y.createElement(S_,{props:n,points:g,clipPathId:r,pathRef:i,strokeDasharray:t})}return y.createElement(S_,{props:n,points:l,clipPathId:r,pathRef:i,strokeDasharray:t})}),y.createElement(WS,{label:n.label}))}function k_(e){var{clipPathId:r,props:n}=e,i=t.useRef(null),a=t.useRef(0),o=t.useRef(null);return y.createElement(P_,{props:n,clipPathId:r,previousPointsRef:i,longestAnimatedLengthRef:a,pathRef:o})}var A_=(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:ys(e.payload,t)}};class __ extends t.Component{render(){var{hide:e,dot:t,points:r,className:n,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=a.clsx("recharts-line",n),v=d,{r:m,strokeWidth:g}=u_(t),b=gP(t),x=2*m+g,w=f?"url(#clipPath-".concat(b?"":"dots-").concat(v,")"):void 0;return y.createElement(WE,{zIndex:p},y.createElement(Ne,{className:h},f&&y.createElement("defs",null,y.createElement(t_,{clipPathId:v,xAxisId:i,yAxisId:o}),!b&&y.createElement("clipPath",{id:"clipPath-dots-".concat(v)},y.createElement("rect",{x:s-x/2,y:l-x/2,width:c+x,height:u+x}))),y.createElement(QA,{xAxisId:i,yAxisId:o,data:r,dataPointFormatter:A_,errorBarOffset:0},y.createElement(k_,{props:this.props,clipPathId:v}))),y.createElement(zk,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:w}))}}var N_={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:mh.line,type:"linear"};function M_(e){var t=Cr(e,N_),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:l,dot:s,hide:c,isAnimationActive:u,label:d,legendType:f,xAxisId:p,yAxisId:h,id:v}=t,m=g_(t,p_),{needClip:g}=e_(p,h),b=Mk(),x=Mc(),w=Xs(),O=Li(e=>c_(e,p,h,w,v));if("horizontal"!==x&&"vertical"!==x||null==O||null==b)return null;var{height:E,width:j,x:S,y:P}=b;return y.createElement(__,h_({},m,{id:v,connectNulls:l,dot:s,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:c,label:d,legendType:f,xAxisId:p,yAxisId:h,points:O,layout:x,height:E,width:j,left:S,top:P,needClip:g}))}function T_(e){var t=Cr(e,N_),r=Xs();return y.createElement(XP,{id:t.id,type:"line"},e=>y.createElement(y.Fragment,null,y.createElement(qP,{legendPayload:b_(t)}),y.createElement(x_,{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}),y.createElement(ok,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),y.createElement(M_,h_({},t,{id:e}))))}var I_=y.memo(T_,Zu);function D_(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 C_(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}I_.displayName="Line";var z_=(e,t,r)=>Aw(e,"xAxis",D_(e,t),r),L_=(e,t,r)=>kw(e,"xAxis",D_(e,t),r),R_=(e,t,r)=>Aw(e,"yAxis",C_(e,t),r),B_=(e,t,r)=>kw(e,"yAxis",C_(e,t),r),V_=Gi([Nc,z_,R_,L_,B_],(e,t,r,n,i)=>ms(e,"xAxis")?As(t,n,!1):As(r,i,!1)),K_=Gi([Wb,(e,t)=>t],(e,t)=>e.filter(e=>"area"===e.type).find(e=>e.id===t)),$_=e=>{var t=Nc(e);return ms(t,"xAxis")?"yAxis":"xAxis"},F_=Gi([K_,(e,t,r)=>vx(e,$_(e),((e,t)=>"yAxis"===$_(e)?C_(e,t):D_(e,t))(e,t),r)],(e,t)=>{var r;if(null!=e&&null!=t){var{stackId:n}=e,i=zh(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]])}}}),U_=Gi([Nc,z_,R_,L_,B_,F_,bp,V_,K_,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=fN(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=ys(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==ys(e,i);return m?{x:Es({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:Es({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})}}),W_=["id"],H_=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function q_(){return q_=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},q_.apply(null,arguments)}function Y_(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 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){return e&&"none"!==e?e:t}var Q_=e=>{var{dataKey:t,name:r,stroke:n,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:J_(n,i),value:Ns(r,t),payload:e}]},eN=y.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:l,unit:s,tooltipType:c,id:u}=e,d={dataDefinedOnItem:r,getPosition:wr,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ns(o,t),hide:l,type:c,color:J_(n,a),unit:s,graphicalItemId:u}};return y.createElement(HP,{tooltipEntrySettings:d})});function tN(e){var{clipPathId:t,points:r,props:n}=e,{needClip:i,dot:a,dataKey:o}=n,l=Oe(n);return y.createElement(pk,{points:r,dot:a,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:o,baseProps:l,needClip:i,clipPathId:t})}function rN(e){var{showLabels:t,children:r,points:n}=e,i=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:0,lowerWidth:0,upperWidth:0,height:0};return X_(X_({},n),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:n,fill:void 0})});return y.createElement($S,{value:t?i:void 0},r)}function nN(e){var{points:t,baseLine:r,needClip:n,clipPathId:i,props:a}=e,{layout:o,type:l,stroke:s,connectNulls:c,isRange:u}=a,{id:d}=a,f=Y_(a,W_),p=Oe(f),h=je(f);return y.createElement(y.Fragment,null,(null==t?void 0:t.length)>1&&y.createElement(Ne,{clipPath:n?"url(#clipPath-".concat(i,")"):void 0},y.createElement(_d,q_({},h,{id:d,points:t,connectNulls:c,type:l,baseLine:r,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==s&&y.createElement(_d,q_({},p,{className:"recharts-area-curve",layout:o,type:l,connectNulls:c,fill:"none",points:t})),"none"!==s&&u&&Array.isArray(r)&&y.createElement(_d,q_({},p,{className:"recharts-area-curve",layout:o,type:l,connectNulls:c,fill:"none",points:r}))),y.createElement(tN,{points:t,props:f,clipPathId:i}))}function iN(e){var t,r,{alpha:n,baseLine:i,points:a,strokeWidth:o}=e,l=null===(t=a[0])||void 0===t?void 0:t.y,s=null===(r=a[a.length-1])||void 0===r?void 0:r.y;if(!ds(l)||!ds(s))return null;var c=n*Math.abs(l-s),u=Math.max(...a.map(e=>e.x||0));return ur(i)?u=Math.max(i,u):i&&Array.isArray(i)&&i.length&&(u=Math.max(...i.map(e=>e.x||0),u)),ur(u)?y.createElement("rect",{x:0,y:l<s?l:l-c,width:u+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}function aN(e){var t,r,{alpha:n,baseLine:i,points:a,strokeWidth:o}=e,l=null===(t=a[0])||void 0===t?void 0:t.x,s=null===(r=a[a.length-1])||void 0===r?void 0:r.x;if(!ds(l)||!ds(s))return null;var c=n*Math.abs(l-s),u=Math.max(...a.map(e=>e.y||0));return ur(i)?u=Math.max(i,u):i&&Array.isArray(i)&&i.length&&(u=Math.max(...i.map(e=>e.y||0),u)),ur(u)?y.createElement("rect",{x:l<s?l:l-c,y:0,width:c,height:Math.floor(u+(o?parseInt("".concat(o),10):1))}):null}function oN(e){var{alpha:t,layout:r,points:n,baseLine:i,strokeWidth:a}=e;return"vertical"===r?y.createElement(iN,{alpha:t,points:n,baseLine:i,strokeWidth:a}):y.createElement(aN,{alpha:t,points:n,baseLine:i,strokeWidth:a})}function lN(e){var{needClip:r,clipPathId:n,props:i,previousPointsRef:a,previousBaselineRef:o}=e,{points:l,baseLine:s,isAnimationActive:c,animationBegin:u,animationDuration:d,animationEasing:f,onAnimationStart:p,onAnimationEnd:h}=i,v=df(t.useMemo(()=>({points:l,baseLine:s}),[l,s]),"recharts-area-"),m=Tc(),[g,b]=t.useState(!1),x=!g,w=t.useCallback(()=>{"function"==typeof h&&h(),b(!1)},[h]),O=t.useCallback(()=>{"function"==typeof p&&p(),b(!0)},[p]);if(null==m)return null;var E=a.current,j=o.current;return y.createElement(rN,{showLabels:x,points:l},i.children,y.createElement(uf,{animationId:v,begin:u,duration:d,isActive:c,easing:f,onAnimationEnd:w,onAnimationStart:O,key:v},e=>{if(E){var t,u=E.length/l.length,d=1===e?l:l.map((t,r)=>{var n=Math.floor(r*u);if(E[n]){var i=E[n];return X_(X_({},t),{},{x:yr(i.x,t.x,e),y:yr(i.y,t.y,e)})}return t});return t=ur(s)?yr(j,s,e):gr(s)||sr(s)?yr(j,0,e):s.map((t,r)=>{var n=Math.floor(r*u);if(Array.isArray(j)&&j[n]){var i=j[n];return X_(X_({},t),{},{x:yr(i.x,t.x,e),y:yr(i.y,t.y,e)})}return t}),e>0&&(a.current=d,o.current=t),y.createElement(nN,{points:d,baseLine:t,needClip:r,clipPathId:n,props:i})}return e>0&&(a.current=l,o.current=s),y.createElement(Ne,null,c&&y.createElement("defs",null,y.createElement("clipPath",{id:"animationClipPath-".concat(n)},y.createElement(oN,{alpha:e,points:l,baseLine:s,layout:m,strokeWidth:i.strokeWidth}))),y.createElement(Ne,{clipPath:"url(#animationClipPath-".concat(n,")")},y.createElement(nN,{points:l,baseLine:s,needClip:r,clipPathId:n,props:i})))}),y.createElement(WS,{label:i.label}))}function sN(e){var{needClip:r,clipPathId:n,props:i}=e,a=t.useRef(null),o=t.useRef();return y.createElement(lN,{needClip:r,clipPathId:n,props:i,previousPointsRef:a,previousBaselineRef:o})}class cN extends t.PureComponent{render(){var{hide:e,dot:t,points:r,className:n,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=a.clsx("recharts-area",n),m=f,{r:g,strokeWidth:b}=u_(t),x=gP(t),w=2*g+b,O=l?"url(#clipPath-".concat(x?"":"dots-").concat(m,")"):void 0;return y.createElement(WE,{zIndex:h},y.createElement(Ne,{className:v},l&&y.createElement("defs",null,y.createElement(t_,{clipPathId:m,xAxisId:s,yAxisId:c}),!x&&y.createElement("clipPath",{id:"clipPath-dots-".concat(m)},y.createElement("rect",{x:o-w/2,y:i-w/2,width:u+w,height:d+w}))),y.createElement(sN,{needClip:l,clipPathId:m,props:this.props})),y.createElement(zk,{points:r,mainColor:J_(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:O}),this.props.isRange&&Array.isArray(p)&&y.createElement(zk,{points:p,mainColor:J_(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:O}))}}var uN={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:mh.area};function dN(e){var t,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:a,connectNulls:o,dot:l,fill:s,fillOpacity:c,hide:u,isAnimationActive:d,legendType:f,stroke:p,xAxisId:h,yAxisId:v}=e,m=Y_(e,H_),g=Mc(),b=gE(),{needClip:x}=e_(h,v),w=Xs(),{points:O,isRange:E,baseLine:j}=null!==(t=Li(t=>U_(t,e.id,w)))&&void 0!==t?t:{},S=Mk();if("horizontal"!==g&&"vertical"!==g||null==S)return null;if("AreaChart"!==b&&"ComposedChart"!==b)return null;var{height:P,width:k,x:A,y:_}=S;return O&&O.length?y.createElement(cN,q_({},m,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:a,baseLine:j,connectNulls:o,dot:l,fill:s,fillOpacity:c,height:P,hide:u,layout:g,isAnimationActive:d,isRange:E,legendType:f,needClip:x,points:O,stroke:p,width:k,left:A,top:_,xAxisId:h,yAxisId:v})):null}var fN=(e,t,r,n,i)=>{var a=null!=r?r:t;if(ur(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 pN(e){var t=Cr(e,uN),r=Xs();return y.createElement(XP,{id:t.id,type:"area"},e=>y.createElement(y.Fragment,null,y.createElement(qP,{legendPayload:Q_(t)}),y.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}),y.createElement(ok,{type:"area",id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Os(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),y.createElement(dN,q_({},t,{id:e}))))}var hN=y.memo(pN,Zu);hN.displayName="Area";var vN="production"===process.env.NODE_ENV,yN="Invariant failed";function mN(){return mN=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},mN.apply(null,arguments)}function gN(e){return y.createElement(KP,mN({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var bN=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(r,n)=>{if(ur(e))return e;var i=ur(r)||gr(r);return i?e(r,n):(i||function(e,t){if(vN)throw new Error(yN);var r="function"==typeof t?t():t,n=r?"".concat(yN,": ").concat(r):yN;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)}},xN=Gi([Wb,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),wN=Gi([xN],e=>null==e?void 0:e.maxBarSize),ON=Gi([Nc,Wb,D_,C_,(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)),EN=Gi([ON,e=>e.rootProps.barSize,(e,t)=>{var r=Nc(e),n=D_(e,t),i=C_(e,t);if(null!=n&&null!=i)return"horizontal"===r?Ow(e,"xAxis",n):Ow(e,"yAxis",i)}],(e,t,r)=>{var n=e.filter(Rh),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:Lk(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:Lk(t,r,e.barSize)}))]}),jN=(e,t,r)=>{var n,i,a=Nc(e),o=D_(e,t),l=C_(e,t);if(null!=o&&null!=l)return"horizontal"===a?(n=Aw(e,"xAxis",o,r),i=kw(e,"xAxis",o,r)):(n=Aw(e,"yAxis",l,r),i=kw(e,"yAxis",l,r)),As(n,i)},SN=Gi([EN,ch,e=>e.rootProps.barGap,uh,(e,t,r)=>{var n,i,a=xN(e,t);if(null==a)return 0;var o=D_(e,t),l=C_(e,t);if(null==o||null==l)return 0;var s,c,u=Nc(e),d=ch(e),{maxBarSize:f}=a,p=gr(f)?d:f;return"horizontal"===u?(s=Aw(e,"xAxis",o,r),c=kw(e,"xAxis",o,r)):(s=Aw(e,"yAxis",l,r),c=kw(e,"yAxis",l,r)),null!==(n=null!==(i=As(s,c,!0))&&void 0!==i?i:p)&&void 0!==n?n:0},jN,wN],(e,t,r,n,i,a,o)=>{var l=gr(o)?t:o,s=function(e,t,r,n,i){var a,o=n.length;if(!(o<1)){var l,s=hr(e,r,0,!0),c=[];if(ds(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=hr(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=ds(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=>Bk(Bk({},e),{},{position:Bk(Bk({},e.position),{},{offset:e.position.offset-i/2})}))),s}),PN=Gi([SN,xN],(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}}),kN=Gi([(e,t,r)=>{var n=Nc(e),i=D_(e,t),a=C_(e,t);if(null!=i&&null!=a)return"horizontal"===n?vx(e,"yAxis",a,r):vx(e,"xAxis",i,r)},xN],(e,t)=>{var r=zh(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)}}}}),AN=Gi([Hs,Ys,(e,t,r)=>{var n=D_(e,t);if(null!=n)return Aw(e,"xAxis",n,r)},(e,t,r)=>{var n=C_(e,t);if(null!=n)return Aw(e,"yAxis",n,r)},(e,t,r)=>{var n=D_(e,t);if(null!=n)return kw(e,"xAxis",n,r)},(e,t,r)=>{var n=C_(e,t);if(null!=n)return kw(e,"yAxis",n,r)},PN,Nc,bp,jN,kN,xN,(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,j,S;if(d){var P=d[f+y];if(null==P)return null;m=((e,t)=>{if(!t||2!==t.length||!ur(t[0])||!ur(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(!ur(e[0])||e[0]<r)&&(i[0]=r),(!ur(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i})(P,g)}else m=ys(e,r),Array.isArray(m)||(m=[b,m]);var k=bN(n,ZN)(m[1],f);if("horizontal"===t){var A,_=s.scale.map(m[0]),N=s.scale.map(m[1]);if(null==_||null==N)return null;w=js({axis:l,ticks:c,bandSize:o,offset:a.offset,entry:e,index:f}),O=null!==(A=null!=N?N:_)&&void 0!==A?A:void 0,E=a.size;var M=_-N;if(j=sr(M)?0:M,S={x:w,y:p.top,width:E,height:p.height},Math.abs(k)>0&&Math.abs(j)<Math.abs(k)){var T=lr(j||k)*(Math.abs(k)-Math.abs(j));O-=T,j+=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=js({axis:s,ticks:u,bandSize:o,offset:a.offset,entry:e,index:f}),E=D-I,j=a.size,S={x:p.left,y:O,width:p.width,height:j},Math.abs(k)>0&&Math.abs(E)<Math.abs(k))E+=lr(E||k)*(Math.abs(k)-Math.abs(E))}return null!=w&&null!=O&&null!=E&&null!=j&&(i||0!==E&&0!==j)?BN(BN({},e),{},{stackedBarStart:x,x:w,y:O,width:E,height:j,value:d?m:m[1],payload:e,background:S,tooltipPosition:{x:w+E/2,y:O+j/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})}}),_N=["index"];function NN(){return NN=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},NN.apply(null,arguments)}var MN=t.createContext(void 0),TN=e=>{var{index:r}=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,_N),i=(e=>{var r=t.useContext(MN);if(null!=r){var{stackId:n}=r;return"url(#".concat(((e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t))(n,e),")")}})(r);return y.createElement(Ne,NN({className:"recharts-bar-stack-layer",clipPath:i},n))},IN=["onMouseEnter","onMouseLeave","onClick"],DN=["value","background","tooltipPosition"],CN=["id"],zN=["onMouseEnter","onClick","onMouseLeave"];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 RN(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 BN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?RN(Object(r),!0).forEach(function(t){VN(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RN(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function VN(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 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}var $N=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ns(r,t),payload:e}]},FN=y.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:l,tooltipType:s,id:c}=e,u={dataDefinedOnItem:void 0,getPosition:wr,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Ns(a,t),hide:o,type:s,color:i,unit:l,graphicalItemId:c}};return y.createElement(HP,{tooltipEntrySettings:u})});function UN(e){var t=Li(eE),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:l,onClick:s}=a,c=KN(a,IN),u=FP(o,n,a.id),d=UP(l),f=WP(s,n,a.id);if(!i||null==r)return null;var p=Ee(i);return y.createElement(WE,{zIndex:Kk(i,mh.barBackground)},r.map((e,r)=>{var{value:a,background:o,tooltipPosition:l}=e,s=KN(e,DN);if(!o)return null;var h=u(e,r),v=d(e,r),m=f(e,r),g=BN(BN(BN(BN(BN({option:i,isActive:String(r)===t},s),{},{fill:"#eee"},o),p),Tr(c,e,r)),{},{onMouseEnter:h,onMouseLeave:v,onClick:m,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return y.createElement(gN,LN({key:"background-bar-".concat(r)},g))}))}function WN(e){var{showLabels:t,children:r,rects:n}=e,i=null==n?void 0:n.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return BN(BN({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return y.createElement($S,{value:t?i:void 0},r)}function HN(e){var{shape:r,activeBar:n,baseProps:i,entry:a,index:o,dataKey:l}=e,s=Li(eE),c=Li(rE),u=n&&String(a.originalDataIndex)===s&&(null==c||l===c),[d,f]=t.useState(!1),[p,h]=t.useState(!1);t.useEffect(()=>{var e;return u?(f(!0),e=requestAnimationFrame(()=>{h(!0)})):h(!1),()=>{cancelAnimationFrame(e)}},[u]);var v,m=t.useCallback(()=>{u||f(!1)},[u]),g=u&&p,b=u||d;v=u?!0===n?r:n:r;var x=y.createElement(gN,LN({},i,{name:String(i.name)},a,{isActive:g,option:v,index:o,dataKey:l,onTransitionEnd:m}));return b?y.createElement(WE,{zIndex:mh.activeBar},y.createElement(TN,{index:a.originalDataIndex},x)):x}function qN(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return y.createElement(gN,LN({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function YN(e){var t,{data:r,props:n}=e,i=null!==(t=Oe(n))&&void 0!==t?t:{},{id:a}=i,o=KN(i,CN),{shape:l,dataKey:s,activeBar:c}=n,{onMouseEnter:u,onClick:d,onMouseLeave:f}=n,p=KN(n,zN),h=FP(u,s,a),v=UP(f),m=WP(d,s,a);return r?y.createElement(y.Fragment,null,r.map((e,t)=>y.createElement(TN,LN({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"},Tr(p,e,t),{onMouseEnter:h(e,t),onMouseLeave:v(e,t),onClick:m(e,t)}),c?y.createElement(HN,{shape:l,activeBar:c,baseProps:o,entry:e,index:t,dataKey:s}):y.createElement(qN,{shape:l,baseProps:o,entry:e,index:t,dataKey:s})))):null}function GN(e){var{props:r,previousRectanglesRef:n}=e,{data:i,layout:a,isAnimationActive:o,animationBegin:l,animationDuration:s,animationEasing:c,onAnimationEnd:u,onAnimationStart:d}=r,f=n.current,p=df(r,"recharts-bar-"),[h,v]=t.useState(!1),m=!h,g=t.useCallback(()=>{"function"==typeof u&&u(),v(!1)},[u]),b=t.useCallback(()=>{"function"==typeof d&&d(),v(!0)},[d]);return y.createElement(WN,{showLabels:m,rects:i},y.createElement(uf,{animationId:p,begin:l,duration:s,isActive:o,easing:c,onAnimationEnd:g,onAnimationStart:b,key:p},e=>{var t=1===e?i:null==i?void 0:i.map((t,r)=>{var n=f&&f[r];if(n)return BN(BN({},t),{},{x:yr(n.x,t.x,e),y:yr(n.y,t.y,e),width:yr(n.width,t.width,e),height:yr(n.height,t.height,e)});if("horizontal"===a){var i=yr(0,t.height,e),o=yr(t.stackedBarStart,t.y,e);return BN(BN({},t),{},{y:o,height:i})}var l=yr(0,t.width,e),s=yr(t.stackedBarStart,t.x,e);return BN(BN({},t),{},{width:l,x:s})});return e>0&&(n.current=null!=t?t:null),null==t?null:y.createElement(Ne,null,y.createElement(YN,{props:r,data:t}))}),y.createElement(WS,{label:r.label}),r.children)}function XN(e){var r=t.useRef(null);return y.createElement(GN,{previousRectanglesRef:r,props:e})}var ZN=0,JN=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:ys(e,t)}};class QN extends t.PureComponent{render(){var{hide:e,data:t,dataKey:r,className:n,xAxisId:i,yAxisId:o,needClip:l,background:s,id:c}=this.props;if(e||null==t)return null;var u=a.clsx("recharts-bar",n),d=c;return y.createElement(Ne,{className:u,id:c},l&&y.createElement("defs",null,y.createElement(t_,{clipPathId:d,xAxisId:i,yAxisId:o})),y.createElement(Ne,{className:"recharts-bar-rectangles",clipPath:l?"url(#clipPath-".concat(d,")"):void 0},y.createElement(UN,{data:t,dataKey:r,background:s,allOtherBarProps:this.props}),y.createElement(XN,this.props)))}}var eM={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:ZN,xAxisId:0,yAxisId:0,zIndex:mh.bar};function tM(e){var t,{xAxisId:r,yAxisId:n,hide:i,legendType:a,minPointSize:o,activeBar:l,animationBegin:s,animationDuration:c,animationEasing:u,isAnimationActive:d}=e,{needClip:f}=e_(r,n),p=Mc(),h=Xs(),v=hP(e.children,Nj),m=Li(t=>AN(t,e.id,h,v));if("vertical"!==p&&"horizontal"!==p)return null;var g=null==m?void 0:m[0];return t=null==g||null==g.height||null==g.width?0:"vertical"===p?g.height/2:g.width/2,y.createElement(QA,{xAxisId:r,yAxisId:n,data:m,dataPointFormatter:JN,errorBarOffset:t},y.createElement(QN,LN({},e,{layout:p,needClip:f,data:m,xAxisId:r,yAxisId:n,hide:i,legendType:a,minPointSize:o,activeBar:l,animationBegin:s,animationDuration:c,animationEasing:u,isAnimationActive:d})))}function rM(e){var r,n,i=Cr(e,eM),a=(r=i.stackId,null!=(n=t.useContext(MN))?n.stackId:null!=r?Os(r):void 0),o=Xs();return y.createElement(XP,{id:i.id,type:"bar"},e=>y.createElement(y.Fragment,null,y.createElement(qP,{legendPayload:$N(i)}),y.createElement(FN,{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}),y.createElement(ok,{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}),y.createElement(WE,{zIndex:i.zIndex},y.createElement(tM,LN({},i,{id:e})))))}var nM=y.memo(rM,Zu);nM.displayName="Bar";var iM=["option","isActive"];function aM(){return aM=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},aM.apply(null,arguments)}function oM(e){var{option:t,isActive:r}=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,iM);return"string"==typeof t?y.createElement(KP,aM({option:y.createElement(_r,aM({type:t},n)),isActive:r,shapeType:"symbols"},n)):y.createElement(KP,aM({option:t,isActive:r,shapeType:"symbols"},n))}var lM=Gi([Wb,(e,t,r,n,i)=>i],(e,t)=>e.filter(e=>"scatter"===e.type).find(e=>e.id===t)),sM=Gi([(e,t,r,n,i,a,o)=>gp(e,0,0,o),(e,t,r,n,i,a,o)=>Aw(e,"xAxis",t,o),(e,t,r,n,i,a,o)=>kw(e,"xAxis",t,o),(e,t,r,n,i,a,o)=>Aw(e,"yAxis",r,o),(e,t,r,n,i,a,o)=>kw(e,"yAxis",r,o),(e,t,r,n)=>Mw(e,"zAxis",n,!1),lM,(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=gr(r.dataKey)?a.dataKey:r.dataKey,u=gr(n.dataKey)?a.dataKey:n.dataKey,d=i&&i.dataKey,f=i?i.range:Bb.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=ys(e,c),y=ys(e,u),m=!gr(d)&&ys(e,d)||"-",g=[{name:gr(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:gr(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=Es({axis:r,ticks:o,bandSize:h,entry:e,index:t,dataKey:c}),x=Es({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 vM(vM({},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})}),cM=["id"],uM=["onMouseEnter","onClick","onMouseLeave"],dM=["animationBegin","animationDuration","animationEasing","hide","isAnimationActive","legendType","lineJointType","lineType","shape","xAxisId","yAxisId","zAxisId"];function fM(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 pM(){return pM=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},pM.apply(null,arguments)}function hM(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 vM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hM(Object(r),!0).forEach(function(t){yM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function yM(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 mM=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ns(r,t),payload:e}]},gM=y.memo(e=>{var{dataKey:t,points:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:l,tooltipType:s,id:c}=e,u={dataDefinedOnItem:null==r?void 0:r.map(e=>e.tooltipPayload),getPosition:e=>{var t;return null==r||null===(t=r[Number(e)])||void 0===t?void 0:t.tooltipPosition},settings:{stroke:n,strokeWidth:i,fill:a,nameKey:void 0,dataKey:t,name:Ns(o,t),hide:l,type:s,color:a,unit:"",graphicalItemId:c}};return y.createElement(HP,{tooltipEntrySettings:u})});function bM(e){var{points:t,props:r}=e,{line:n,lineType:i,lineJointType:a}=r;if(!n)return null;var o,l,s=Oe(r),c=Ee(n);if("joint"===i)o=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:u,xmax:d,a:f,b:p}=(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),h=e=>f*e+p;o=[{x:u,y:h(u)},{x:d,y:h(d)}]}var v=vM(vM(vM({},s),{},{fill:"none",stroke:s&&s.fill},c),{},{points:o});return l=y.isValidElement(n)?y.cloneElement(n,v):"function"==typeof n?n(v):y.createElement(_d,pM({},v,{type:a})),y.createElement(Ne,{className:"recharts-scatter-line",key:"recharts-scatter-line"},l)}function xM(e){var{showLabels:r,points:n,children:i}=e,a=Sc(),o=t.useMemo(()=>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 vM(vM({},n),{},{value:void 0,payload:e.payload,viewBox:n,parentViewBox:a,fill:void 0})}),[a,n]);return y.createElement($S,{value:r?o:void 0},i)}function wM(e){var t,{points:r,allOtherScatterProps:n}=e,{shape:i,activeShape:a,dataKey:o}=n,{id:l}=n,s=fM(n,cM),c=Li(eE),{onMouseEnter:u,onClick:d,onMouseLeave:f}=n,p=fM(n,uM),h=FP(u,o,l),v=UP(f),m=WP(d,o,l);if(t=r,!(Array.isArray(t)&&t.length>0))return null;var g=Oe(s);return y.createElement(y.Fragment,null,y.createElement(bM,{points:r,props:s}),r.map((e,t)=>{var r=null!=a&&!1!==a,n=r&&c===String(t),o=r&&n?a:i,s=vM(vM(vM({},g),e),{},{index:t,[Ls]:String(l)});return y.createElement(WE,{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:n?mh.activeDot:void 0},y.createElement(Ne,pM({className:"recharts-scatter-symbol"},Tr(p,e,t),{onMouseEnter:h(e,t),onMouseLeave:v(e,t),onClick:m(e,t)}),y.createElement(oM,pM({option:o,isActive:n},s))))}))}function OM(e){var{previousPointsRef:r,props:n}=e,{points:i,isAnimationActive:a,animationBegin:o,animationDuration:l,animationEasing:s}=n,c=r.current,u=df(n,"recharts-scatter-"),[d,f]=t.useState(!1),p=t.useCallback(()=>{f(!1)},[]),h=t.useCallback(()=>{f(!0)},[]),v=!d;return y.createElement(xM,{showLabels:v,points:i},n.children,y.createElement(uf,{animationId:u,begin:o,duration:l,isActive:a,easing:s,onAnimationEnd:p,onAnimationStart:h,key:u},e=>{var t=1===e?i:null==i?void 0:i.map((t,r)=>{var n=c&&c[r];return vM(vM({},t),{},n?{cx:null==t.cx?void 0:yr(n.cx,t.cx,e),cy:null==t.cy?void 0:yr(n.cy,t.cy,e),size:yr(n.size,t.size,e)}:{size:yr(0,t.size,e)})});return e>0&&(r.current=t),y.createElement(Ne,null,y.createElement(wM,{points:t,allOtherScatterProps:n,showLabels:v}))}),y.createElement(WS,{label:n.label}))}var EM=(e,t,r)=>({x:e.cx,y:e.cy,value:Number("x"===r?e.node.x:e.node.y),errorVal:ys(e,t)});function jM(e){var{hide:r,points:n,className:i,needClip:o,xAxisId:l,yAxisId:s,id:c}=e,u=t.useRef(null);if(r)return null;var d=a.clsx("recharts-scatter",i),f=c;return y.createElement(WE,{zIndex:e.zIndex},y.createElement(Ne,{className:d,clipPath:o?"url(#clipPath-".concat(f,")"):void 0,id:c},o&&y.createElement("defs",null,y.createElement(t_,{clipPathId:f,xAxisId:l,yAxisId:s})),y.createElement(QA,{xAxisId:l,yAxisId:s,data:n,dataPointFormatter:EM,errorBarOffset:0},y.createElement(Ne,{key:"recharts-scatter-symbols"},y.createElement(OM,{props:e,previousPointsRef:u})))))}var SM={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:mh.scatter};function PM(e){var r=Cr(e,SM),{animationBegin:n,animationDuration:i,animationEasing:a,hide:o,isAnimationActive:l,legendType:s,lineJointType:c,lineType:u,shape:d,xAxisId:f,yAxisId:p,zAxisId:h}=r,v=fM(r,dM),{needClip:m}=e_(f,p),g=t.useMemo(()=>hP(e.children,Nj),[e.children]),b=Xs(),x=Li(t=>sM(t,f,p,h,e.id,g,b));return null==m||null==x?null:y.createElement(y.Fragment,null,y.createElement(gM,{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}),y.createElement(jM,pM({},v,{xAxisId:f,yAxisId:p,zAxisId:h,lineType:u,lineJointType:c,legendType:s,shape:d,hide:o,isAnimationActive:l,animationBegin:n,animationDuration:i,animationEasing:a,points:x,needClip:m})))}function kM(e){var t=Cr(e,SM),r=Xs();return y.createElement(XP,{id:t.id,type:"scatter"},e=>y.createElement(y.Fragment,null,y.createElement(qP,{legendPayload:mM(t)}),y.createElement(ok,{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:r}),y.createElement(PM,pM({},t,{id:e}))))}var AM=y.memo(kM,Zu);AM.displayName="Scatter";var _M=["domain","range"],NM=["domain","range"];function MM(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 TM(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 IM(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=MM(e,_M),{domain:a,range:o}=t,l=MM(t,NM);return!!TM(r,a)&&(!!TM(n,o)&&Zu(i,l))}var DM=["type"],CM=["dangerouslySetInnerHTML","ticks","scale"],zM=["id","scale"];function LM(){return LM=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},LM.apply(null,arguments)}function RM(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?RM(Object(r),!0).forEach(function(t){VM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function VM(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 KM(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 $M(e){var r=Ii(),n=t.useRef(null),i=Tc(),{type:a}=e,o=KM(e,DM),l=bh(i,"xAxis",a),s=t.useMemo(()=>{if(null!=l)return BM(BM({},o),{},{type:l})},[o,l]);return t.useLayoutEffect(()=>{null!=s&&(null===n.current?r(gk(s)):n.current!==s&&r(bk({prev:n.current,next:s})),n.current=s)},[s,r]),t.useLayoutEffect(()=>()=>{n.current&&(r(xk(n.current)),n.current=null)},[r]),null}var FM=e=>{var{xAxisId:t,className:r}=e,n=Li(Ys),i=Xs(),o="xAxis",l=Li(e=>Pw(e,o,t,i)),s=Li(e=>yw(e,t)),c=Li(e=>bw(e,t)),u=Li(e=>Db(e,t));if(null==s||null==c||null==u)return null;var{dangerouslySetInnerHTML:d,ticks:f,scale:p}=e,h=KM(e,CM),{id:v,scale:m}=u,g=KM(u,zM);return y.createElement(SA,LM({},h,g,{x:c.x,y:c.y,width:s.width,height:s.height,className:a.clsx("recharts-".concat(o," ").concat(o),r),viewBox:n,ticks:l,axisType:o,axisId:t}))},UM={allowDataOverflow:Ib.allowDataOverflow,allowDecimals:Ib.allowDecimals,allowDuplicatedCategory:Ib.allowDuplicatedCategory,angle:Ib.angle,axisLine:bA.axisLine,height:Ib.height,hide:!1,includeHidden:Ib.includeHidden,interval:Ib.interval,label:!1,minTickGap:Ib.minTickGap,mirror:Ib.mirror,orientation:Ib.orientation,padding:Ib.padding,reversed:Ib.reversed,scale:Ib.scale,tick:Ib.tick,tickCount:Ib.tickCount,tickLine:bA.tickLine,tickSize:bA.tickSize,type:Ib.type,niceTicks:Ib.niceTicks,xAxisId:0},WM=e=>{var t=Cr(e,UM);return y.createElement(y.Fragment,null,y.createElement($M,{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}),y.createElement(FM,t))},HM=y.memo(WM,IM);HM.displayName="XAxis";var qM=["type"],YM=["dangerouslySetInnerHTML","ticks","scale"],GM=["id","scale"];function XM(){return XM=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},XM.apply(null,arguments)}function ZM(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 JM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ZM(Object(r),!0).forEach(function(t){QM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function QM(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 eT(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 tT(e){var r=Ii(),n=t.useRef(null),i=Tc(),{type:a}=e,o=eT(e,qM),l=bh(i,"yAxis",a),s=t.useMemo(()=>{if(null!=l)return JM(JM({},o),{},{type:l})},[l,o]);return t.useLayoutEffect(()=>{null!=s&&(null===n.current?r(wk(s)):n.current!==s&&r(Ok({prev:n.current,next:s})),n.current=s)},[s,r]),t.useLayoutEffect(()=>()=>{n.current&&(r(Ek(n.current)),n.current=null)},[r]),null}function rT(e){var{yAxisId:r,className:n,width:i,label:o}=e,l=t.useRef(null),s=t.useRef(null),c=Li(Ys),u=Xs(),d=Ii(),f="yAxis",p=Li(e=>ww(e,r)),h=Li(e=>xw(e,r)),v=Li(e=>Pw(e,f,r,u)),m=Li(e=>Lb(e,r));if(t.useLayoutEffect(()=>{if("auto"===i&&p&&!NS(o)&&!t.isValidElement(o)&&null!=m){var e=l.current;if(e){var n=e.getCalculatedWidth();Math.round(p.width)!==Math.round(n)&&d(kk({id:r,width:n}))}}},[v,p,d,o,r,i,m]),null==p||null==h||null==m)return null;var{dangerouslySetInnerHTML:g,ticks:b,scale:x}=e,w=eT(e,YM),{id:O,scale:E}=m,j=eT(m,GM);return y.createElement(SA,XM({},w,j,{ref:l,labelRef:s,x:h.x,y:h.y,tickTextProps:"auto"===i?{width:void 0}:{width:i},width:p.width,height:p.height,className:a.clsx("recharts-".concat(f," ").concat(f),n),viewBox:c,ticks:v,axisType:f,axisId:r}))}var nT={allowDataOverflow:zb.allowDataOverflow,allowDecimals:zb.allowDecimals,allowDuplicatedCategory:zb.allowDuplicatedCategory,angle:zb.angle,axisLine:bA.axisLine,hide:!1,includeHidden:zb.includeHidden,interval:zb.interval,label:!1,minTickGap:zb.minTickGap,mirror:zb.mirror,orientation:zb.orientation,padding:zb.padding,reversed:zb.reversed,scale:zb.scale,tick:zb.tick,tickCount:zb.tickCount,tickLine:bA.tickLine,tickSize:bA.tickSize,type:zb.type,niceTicks:zb.niceTicks,width:zb.width,yAxisId:0},iT=e=>{var t=Cr(e,nT);return y.createElement(y.Fragment,null,y.createElement(tT,{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}),y.createElement(rT,t))},aT=y.memo(iT,IM);aT.displayName="YAxis";var oT=Gi([(e,t)=>t,Nc,Ih,Kh,UO,GO,OE,Hs],(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=mE(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):ME(e,t,r,n,i,a,o)});function lT(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 sT=Jo("mouseClick"),cT=rs();cT.startListening({actionCreator:sT,effect:(e,t)=>{var r=e.payload,n=oT(t.getState(),lT(r));null!=(null==n?void 0:n.activeIndex)&&t.dispatch(Gw({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var uT=Jo("mouseMove"),dT=rs(),fT=null,pT=null,hT=null;function vT(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}dT.startListening({actionCreator:uT,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!==fT&&(cancelAnimationFrame(fT),fT=null),null===pT||"number"==typeof i&&o||(clearTimeout(pT),pT=null),hT=lT(r);var l=()=>{var e=t.getState(),r=zw(e,e.tooltip.settings.shared);if(!hT)return fT=null,void(pT=null);if("axis"===r){var n=oT(e,hT);null!=(null==n?void 0:n.activeIndex)?t.dispatch(Yw({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate})):t.dispatch(Hw())}fT=null,pT=null};o?"raf"===i?fT=requestAnimationFrame(l):"number"==typeof i&&null===pT&&(pT=setTimeout(l,i)):l()}});var yT={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},mT=jl({name:"rootProps",initialState:yT,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:yT.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}}}),gT=mT.reducer,{updateOptions:bT}=mT.actions,xT=jl({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:wT}=xT.actions,OT=xT.reducer,ET=Jo("keyDown"),jT=Jo("focus"),ST=Jo("blur"),PT=rs(),kT=null,AT=null,_T=null;function NT(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}})}PT.startListening({actionCreator:ET,effect:(e,t)=>{_T=e.payload,null!==kT&&(cancelAnimationFrame(kT),kT=null);var r=t.getState(),{throttleDelay:n,throttledEvents:i}=r.eventSettings,a="all"===i||i.includes("keydown");null===AT||"number"==typeof n&&a||(clearTimeout(AT),AT=null);var o=()=>{try{var e=t.getState();if(!(!1!==e.rootProps.accessibilityLayer))return;var{keyboardInteraction:r}=e.tooltip,n=_T;if("ArrowRight"!==n&&"ArrowLeft"!==n&&"Enter"!==n)return;var i=iO(r,wO(e),fx(e),VO(e)),a=null==i?-1:Number(i),o=!Number.isFinite(a)||a<0,l=GO(e),s=wO(e),c=zw(e,e.tooltip.settings.shared);if("Enter"===n){if(o)return;var u=PE(e,c,"hover",String(r.index));return void t.dispatch(Zw({active:!r.active,activeIndex:r.index,activeCoordinate:u}))}var d,f="left-to-right"===Tw(e)?1:-1,p="ArrowRight"===n?1:-1;if(o){var h=fx(e),v=VO(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!=iO(y(m),s,h,v)){d=m;break}}else for(var g=s.length-1;g>=0;g--)if(null!=iO(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=PE(e,c,"hover",String(d));t.dispatch(Zw({active:!0,activeIndex:d.toString(),activeCoordinate:x}))}finally{kT=null,AT=null}};a?"raf"===n?kT=requestAnimationFrame(o):"number"==typeof n&&null===AT&&(o(),_T=null,AT=setTimeout(()=>{_T?o():(AT=null,kT=null)},n)):o()}}),PT.startListening({actionCreator:jT,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=zw(r,r.tooltip.settings.shared),a=PE(r,i,"hover",String("0"));t.dispatch(Zw({active:!0,activeIndex:"0",activeCoordinate:a}))}}}}),PT.startListening({actionCreator:ST,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;n.active&&t.dispatch(Zw({active:!1,activeIndex:n.index,activeCoordinate:n.coordinate}))}}});var MT=Jo("externalEvent"),TT=rs(),IT=new Map,DT=new Map,CT=new Map;TT.startListening({actionCreator:MT,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(null!=r){var i=n.type,a=NT(n);CT.set(i,{handler:r,reactEvent:a});var o=IT.get(i);void 0!==o&&(cancelAnimationFrame(o),IT.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=DT.get(i);void 0===f||"number"==typeof s&&d||(clearTimeout(f),DT.delete(i));var p=()=>{var e=CT.get(i);try{if(!e)return;var{handler:r,reactEvent:n}=e,a=t.getState(),o={activeCoordinate:oE(a),activeDataKey:rE(a),activeIndex:eE(a),activeLabel:tE(a),activeTooltipIndex:eE(a),isTooltipActive:lE(a)};r&&r(o,n)}finally{IT.delete(i),DT.delete(i),CT.delete(i)}};if(d)if("raf"===s){var h=requestAnimationFrame(p);IT.set(i,h)}else if("number"==typeof s){if(!DT.has(i)){p();var v=setTimeout(p,s);DT.set(i,v)}}else p();else p()}}});var zT=Gi([sO],e=>e.tooltipItemPayloads),LT=Gi([zT,(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)}}}),RT=Jo("touchMove"),BT=rs(),VT=null,KT=null,$T=null,FT=null;BT.startListening({actionCreator:RT,effect:(e,t)=>{var r=e.payload;if(null!=r.touches&&0!==r.touches.length){FT=NT(r);var n=t.getState(),{throttleDelay:i,throttledEvents:a}=n.eventSettings,o="all"===a||a.includes("touchmove");null!==VT&&(cancelAnimationFrame(VT),VT=null),null===KT||"number"==typeof i&&o||(clearTimeout(KT),KT=null),$T=Array.from(r.touches).map(e=>lT({clientX:e.clientX,clientY:e.clientY,currentTarget:r.currentTarget}));var l=()=>{if(null!=FT){var e=t.getState(),r=zw(e,e.tooltip.settings.shared);if("axis"===r){var n,i=null===(n=$T)||void 0===n?void 0:n[0];if(null==i)return VT=null,void(KT=null);var a=oT(e,i);null!=(null==a?void 0:a.activeIndex)&&t.dispatch(Yw({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if("item"===r){var o,l=FT.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(Ls))&&void 0!==o?o:void 0,d=mO(e).find(e=>e.id===u);if(null==c||null==d||null==u)return;var{dataKey:f}=d,p=LT(e,c,u);t.dispatch(Uw({activeDataKey:f,activeIndex:c,activeCoordinate:p,activeGraphicalItemId:u}))}VT=null,KT=null}};o?"raf"===i?VT=requestAnimationFrame(l):"number"==typeof i&&null===KT&&(l(),FT=null,KT=setTimeout(()=>{FT?l():(KT=null,VT=null)},i)):l()}}});var UT={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},WT=jl({name:"eventSettings",initialState:UT,reducers:{setEventSettings:(e,t)=>{null!=t.payload.throttleDelay&&(e.throttleDelay=t.payload.throttleDelay),null!=t.payload.throttledEvents&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:HT}=WT.actions,qT=Ma({brush:Hk,cartesianAxis:Ak,chartData:vj,errorBars:GA,eventSettings:WT.reducer,graphicalItems:ik,layout:cs,legend:Tu,options:sj,polarAxis:QS,polarOptions:OT,referenceElements:eA,renderedTicks:pA,rootProps:gT,tooltip:Jw,zIndex:UE});function YT(e){var{preloadedState:r,children:n,reduxStoreName:i}=e,a=Xs(),o=t.useRef(null);if(a)return n;null==o.current&&(o.current=function(e){return ml({reducer:qT,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([cT.middleware,dT.middleware,PT.middleware,TT.middleware,BT.middleware]),enhancers:e=>{var t=e;return"function"==typeof e&&(t=e()),t.concat(yl({type:"raf"}))},devTools:{serialize:{replacer:vT},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(r,i));var l=Mi;return y.createElement(Yu,{context:l,store:o.current},n)}function GT(e){var{layout:r,margin:n}=e,i=Ii(),a=Xs();return t.useEffect(()=>{a||(i(os(r)),i(as(n)))},[i,a,r,n]),null}var XT=t.memo(GT,Zu);function ZT(e){var r=Ii();return t.useEffect(()=>{r(bT(e))},[r,e]),null}var JT=e=>{var r=Ii();return t.useEffect(()=>{r(HT(e))},[r,e]),null},QT=t.memo(JT,Zu);function eI(e){var{zIndex:r,isPanorama:n}=e,i=t.useRef(null),a=Ii();return t.useLayoutEffect(()=>(i.current&&a($E({zIndex:r,element:i.current,isPanorama:n})),()=>{a(FE({zIndex:r,isPanorama:n}))}),[a,r,n]),y.createElement("g",{tabIndex:-1,ref:i,className:"recharts-zIndex-layer_".concat(r)})}function tI(e){var{children:t,isPanorama:r}=e,n=Li(IE);if(!n||0===n.length)return t;var i=n.filter(e=>e<0),a=n.filter(e=>e>0);return y.createElement(y.Fragment,null,i.map(e=>y.createElement(eI,{key:e,zIndex:e,isPanorama:r})),t,a.map(e=>y.createElement(eI,{key:e,zIndex:e,isPanorama:r})))}var rI=["children"];function nI(){return nI=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},nI.apply(null,arguments)}var iI={width:"100%",height:"100%",display:"block"},aI=t.forwardRef((e,t)=>{var r=Ac(),n=_c(),i=md();if(!fs(r)||!fs(n))return null;var a,o,{children:l,otherAttributes:s,title:c,desc:u}=e;return null!=s&&(a="number"==typeof s.tabIndex?s.tabIndex:i?0:void 0,o="string"==typeof s.role?s.role:i?"application":void 0),y.createElement(ke,nI({},s,{title:c,desc:u,role:o,tabIndex:a,width:r,height:n,style:iI,ref:t}),l)}),oI=e=>{var{children:t}=e,r=Li(Js);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return y.createElement(ke,{width:n,height:i,x:o,y:a},t)},lI=t.forwardRef((e,t)=>{var{children:r}=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,rI);return Xs()?y.createElement(oI,null,y.createElement(tI,{isPanorama:!0},r)):y.createElement(aI,nI({ref:t},n),y.createElement(tI,{isPanorama:!1},r))});function sI(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 cI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sI(Object(r),!0).forEach(function(t){uI(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sI(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function uI(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 dI(){return dI=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},dI.apply(null,arguments)}var fI=()=>(wj(),null);function pI(e){if("number"==typeof e)return e;if("string"==typeof e){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var hI=t.forwardRef((e,r)=>{var n,i,a=t.useRef(null),[o,l]=t.useState({containerWidth:pI(null===(n=e.style)||void 0===n?void 0:n.width),containerHeight:pI(null===(i=e.style)||void 0===i?void 0:i.height)}),s=t.useCallback((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}})},[]),c=t.useCallback(e=>{if("function"==typeof r&&r(e),null!=a.current&&(a.current.disconnect(),a.current=null),null!=e&&"undefined"!=typeof ResizeObserver){var{width:t,height:n}=e.getBoundingClientRect();s(t,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}},[r,s]);return t.useEffect(()=>()=>{var e=a.current;null!=e&&e.disconnect()},[s]),y.createElement(y.Fragment,null,y.createElement(Dc,{width:o.containerWidth,height:o.containerHeight}),y.createElement("div",dI({ref:c},e)))}),vI=t.forwardRef((e,r)=>{var{width:n,height:i}=e,[a,o]=t.useState({containerWidth:pI(n),containerHeight:pI(i)}),l=t.useCallback((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=t.useCallback(e=>{if("function"==typeof r&&r(e),null!=e){var{width:t,height:n}=e.getBoundingClientRect();l(t,n)}},[r,l]);return y.createElement(y.Fragment,null,y.createElement(Dc,{width:a.containerWidth,height:a.containerHeight}),y.createElement("div",dI({ref:s},e)))}),yI=t.forwardRef((e,t)=>{var{width:r,height:n}=e;return y.createElement(y.Fragment,null,y.createElement(Dc,{width:r,height:n}),y.createElement("div",dI({ref:t},e)))}),mI=t.forwardRef((e,t)=>{var{width:r,height:n}=e;return"string"==typeof r||"string"==typeof n?y.createElement(vI,dI({},e,{ref:t})):"number"==typeof r&&"number"==typeof n?y.createElement(yI,dI({},e,{width:r,height:n,ref:t})):y.createElement(y.Fragment,null,y.createElement(Dc,{width:r,height:n}),y.createElement("div",dI({ref:t},e)))});var gI=t.forwardRef((e,r)=>{var{children:n,className:i,height:o,onClick:l,onContextMenu:s,onDoubleClick:c,onMouseDown:u,onMouseEnter:d,onMouseLeave:f,onMouseMove:p,onMouseUp:h,onTouchEnd:v,onTouchMove:m,onTouchStart:g,style:b,width:x,responsive:w,dispatchTouchEvents:O=!0}=e,E=t.useRef(null),j=Ii(),[S,P]=t.useState(null),[k,A]=t.useState(null),_=function(){var e=Ii(),[r,n]=t.useState(null),i=Li(Is);return t.useEffect(()=>{if(null!=r){var t=r.getBoundingClientRect().width/r.offsetWidth;ds(t)&&t!==i&&e(ss(t))}},[r,e,i]),n}(),N=wc(),M=(null==N?void 0:N.width)>0?N.width:x,T=(null==N?void 0:N.height)>0?N.height:o,I=t.useCallback(e=>{_(e),"function"==typeof r&&r(e),P(e),A(e),null!=e&&(E.current=e)},[_,r,P,A]),D=t.useCallback(e=>{j(sT(e)),j(MT({handler:l,reactEvent:e}))},[j,l]),C=t.useCallback(e=>{j(uT(e)),j(MT({handler:d,reactEvent:e}))},[j,d]),z=t.useCallback(e=>{j(Hw()),j(MT({handler:f,reactEvent:e}))},[j,f]),L=t.useCallback(e=>{j(uT(e)),j(MT({handler:p,reactEvent:e}))},[j,p]),R=t.useCallback(()=>{j(jT())},[j]),B=t.useCallback(()=>{j(ST())},[j]),V=t.useCallback(e=>{j(ET(e.key))},[j]),K=t.useCallback(e=>{j(MT({handler:s,reactEvent:e}))},[j,s]),$=t.useCallback(e=>{j(MT({handler:c,reactEvent:e}))},[j,c]),F=t.useCallback(e=>{j(MT({handler:u,reactEvent:e}))},[j,u]),U=t.useCallback(e=>{j(MT({handler:h,reactEvent:e}))},[j,h]),W=t.useCallback(e=>{j(MT({handler:g,reactEvent:e}))},[j,g]),H=t.useCallback(e=>{O&&j(RT(e)),j(MT({handler:m,reactEvent:e}))},[j,O,m]),q=t.useCallback(e=>{j(MT({handler:v,reactEvent:e}))},[j,v]),Y=function(e){return e?hI:mI}(w);return y.createElement(ej.Provider,{value:S},y.createElement(Me.Provider,{value:k},y.createElement(Y,{width:null!=M?M:null==b?void 0:b.width,height:null!=T?T:null==b?void 0:b.height,className:a.clsx("recharts-wrapper",i),style:cI({position:"relative",cursor:"default",width:M,height:T},b),onClick:D,onContextMenu:K,onDoubleClick:$,onFocus:R,onBlur:B,onKeyDown:V,onMouseDown:F,onMouseEnter:C,onMouseLeave:z,onMouseMove:L,onMouseUp:U,onTouchEnd:q,onTouchMove:H,onTouchStart:W,ref:I},y.createElement(fI,null),n)))}),bI=["width","height","responsive","children","className","style","compact","title","desc"];var xI=t.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:o,style:l,compact: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,bI),f=Oe(d);return s?y.createElement(y.Fragment,null,y.createElement(Dc,{width:r,height:n}),y.createElement(lI,{otherAttributes:f,title:c,desc:u},a)):y.createElement(gI,{className:o,style:l,width:r,height:n,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},y.createElement(lI,{otherAttributes:f,title:c,desc:u,ref:t},y.createElement(rA,null,a)))});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)}function OI(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 EI(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 jI=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?OI(Object(r),!0).forEach(function(t){EI(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OI(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"},UT),SI=t.forwardRef(function(e,t){var r,n=Cr(e.categoricalChartProps,jI),{chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:o,tooltipPayloadSearcher:l,categoricalChartProps:s}=e,c={chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:o,tooltipPayloadSearcher:l,eventEmitter:void 0};return y.createElement(YT,{preloadedState:{options:c},reduxStoreName:null!==(r=s.id)&&void 0!==r?r:i},y.createElement($k,{chartData:s.data}),y.createElement(XT,{layout:n.layout,margin:n.margin}),y.createElement(QT,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),y.createElement(ZT,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),y.createElement(xI,wI({},n,{ref:t})))}),PI=["axis"],kI=t.forwardRef((e,t)=>y.createElement(SI,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:PI,tooltipPayloadSearcher:oj,categoricalChartProps:e,ref:t})),AI=["axis","item"],_I=t.forwardRef((e,t)=>y.createElement(SI,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:AI,tooltipPayloadSearcher:oj,categoricalChartProps:e,ref:t})),NI=["item"],MI=t.forwardRef((e,t)=>y.createElement(SI,{chartName:"ScatterChart",defaultTooltipEventType:"item",validateTooltipEventTypes:NI,tooltipPayloadSearcher:oj,categoricalChartProps:e,ref:t})),TI=["axis"],II=t.forwardRef((e,t)=>y.createElement(SI,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:TI,tooltipPayloadSearcher:oj,categoricalChartProps:e,ref:t}));exports.AppSidebar=Z,exports.ChartCard=function(t){var r=t.title,n=t.description,i=t.data,a=t.dataKey,o=t.categoryKey,l=t.color,s=void 0===l?"var(--primary)":l,c=t.className,u=t.loading,d=t.type,f=void 0===d?"area":d;return u?e.jsxs(fe,{className:b("col-span-full lg:col-span-2",c),children:[e.jsxs(pe,{children:[e.jsx(N,{className:"h-6 w-40 mb-2"}),e.jsx(N,{className:"h-4 w-64"})]}),e.jsx(ye,{className:"h-75 w-full pt-4",children:e.jsx(N,{className:"h-full w-full rounded-lg"})})]}):e.jsxs(fe,{className:b("bmj-card-hover col-span-full lg:col-span-2",c),children:[e.jsxs(pe,{children:[e.jsx(he,{className:"text-lg font-semibold",children:r}),n&&e.jsx(ve,{children:n})]}),e.jsx(ye,{className:"h-75 w-full pt-4",children:e.jsx(Ec,{width:"100%",height:"100%",children:function(){var t={data:i,margin:{top:10,right:10,left:-20,bottom:0}},n={xAxis:e.jsx(HM,{dataKey:o,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"var(--muted-foreground)"},dy:10,type:"scatter"===f?"number":"category"}),yAxis:e.jsx(aT,{dataKey:"scatter"===f?a:void 0,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"var(--muted-foreground)"},type:"number"}),grid:e.jsx(UA,{strokeDasharray:"3 3",vertical:!1,stroke:"var(--border)",opacity:.5}),tooltip:e.jsx(_j,{cursor:"scatter"===f?{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(f){case"bar":return e.jsxs(_I,m({},t,{children:[n.grid,n.xAxis,n.yAxis,n.tooltip,e.jsx(nM,{dataKey:a,fill:s,radius:[4,4,0,0],barSize:32})]}));case"line":return e.jsxs(kI,m({},t,{children:[n.grid,n.xAxis,n.yAxis,n.tooltip,e.jsx(I_,{type:"monotone",dataKey:a,stroke:s,strokeWidth:2,dot:{r:4,fill:s,strokeWidth:2,stroke:"var(--card)"},activeDot:{r:6,strokeWidth:0}})]}));case"scatter":return e.jsxs(MI,m({},t,{children:[n.grid,n.xAxis,n.yAxis,n.tooltip,e.jsx(AM,{name:r,data:i,fill:s,shape:"circle"})]}));default:return e.jsxs(II,m({},t,{children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"colorValue-".concat(r.replace(/\s+/g,"-")),x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:s,stopOpacity:.1}),e.jsx("stop",{offset:"95%",stopColor:s,stopOpacity:0})]})}),n.grid,n.xAxis,n.yAxis,n.tooltip,e.jsx(hN,{type:"monotone",dataKey:a,stroke:s,strokeWidth:2,fillOpacity:1,fill:"url(#colorValue-".concat(r.replace(/\s+/g,"-"),")")})]}))}}()})})]})},exports.DashboardLayout=function(t){var r=t.children,n=t.sidebarItems,i=t.onSidebarItemClick,a=t.activeSidebarItem;return e.jsxs(z,{children:[e.jsx(Z,{items:n,onItemClick:i,activeItem:a}),e.jsxs(B,{className:"flex flex-col",children:[e.jsx(de,{}),e.jsx("main",{className:"flex-1 p-6 overflow-y-auto",children:r})]})]})},exports.StatCard=function(t){var r=t.title,n=t.value,i=t.description,a=t.trend,o=t.icon,l=t.className;return t.loading?e.jsxs(fe,{className:b("overflow-hidden",l),children:[e.jsxs(pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(N,{className:"h-4 w-24"}),e.jsx(N,{className:"h-4 w-4 rounded-full"})]}),e.jsxs(ye,{className:"space-y-2",children:[e.jsx(N,{className:"h-8 w-32"}),e.jsx(N,{className:"h-3 w-40"})]})]}):e.jsx(f.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},children:e.jsxs(fe,{className:b("bmj-card-hover overflow-hidden",l),children:[e.jsxs(pe,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[e.jsx(he,{className:"text-sm font-medium text-muted-foreground uppercase tracking-wider",children:r}),o&&e.jsx(o,{className:"h-4 w-4 text-muted-foreground"})]}),e.jsxs(ye,{children:[e.jsx("div",{className:"text-2xl font-bold tracking-tight",children:n}),(i||a)&&e.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[a&&e.jsxs("span",{className:b("flex items-center text-xs font-medium",a.isPositive?"text-emerald-500":"text-rose-500"),children:[a.isPositive?e.jsx(u.TrendingUp,{className:"w-3 h-3 mr-1"}):e.jsx(u.TrendingDown,{className:"w-3 h-3 mr-1"}),a.value,"%"]}),i&&e.jsx("p",{className:"text-xs text-muted-foreground",children:i})]})]})]})})},exports.Topbar=de;
46
+ */function lP(){return iP||(iP=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");oP.ContextConsumer=o,oP.ContextProvider=l,oP.Element=t,oP.ForwardRef=s,oP.Fragment=n,oP.Lazy=f,oP.Memo=d,oP.Portal=r,oP.Profiler=a,oP.StrictMode=i,oP.Suspense=c,oP.SuspenseList=u,oP.isContextConsumer=function(t){return e(t)===o},oP.isContextProvider=function(t){return e(t)===l},oP.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},oP.isForwardRef=function(t){return e(t)===s},oP.isFragment=function(t){return e(t)===n},oP.isLazy=function(t){return e(t)===f},oP.isMemo=function(t){return e(t)===d},oP.isPortal=function(t){return e(t)===r},oP.isProfiler=function(t){return e(t)===a},oP.isStrictMode=function(t){return e(t)===i},oP.isSuspense=function(t){return e(t)===c},oP.isSuspenseList=function(t){return e(t)===u},oP.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)},oP.typeOf=e}()),oP}function sP(){return aP||(aP=1,"production"===process.env.NODE_ENV?tP.exports=nP():tP.exports=lP()),tP.exports}var cP=sP(),uP=e=>"string"==typeof e?e:e?e.displayName||e.name||"Component":"",dP=null,fP=null,pP=e=>{if(e===dP&&Array.isArray(fP))return fP;var r=[];return t.Children.forEach(e,e=>{gr(e)||(cP.isFragment(e)?r=r.concat(pP(e.props.children)):r.push(e))}),fP=r,dP=e,r};function hP(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map(e=>uP(e)):[uP(t)],pP(e).forEach(e=>{var t=ir(e,"type.displayName")||ir(e,"type.name");t&&-1!==n.indexOf(t)&&r.push(e)}),r}var yP,vP,mP,gP=e=>!e||"object"!=typeof e||!("clipDot"in e)||Boolean(e.clipDot),bP={};function xP(){return yP||(yP=1,e=bP,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}),bP;var e}function wP(){return mP?vP:(mP=1,vP=xP().isPlainObject)}var OP,EP,jP,SP,PP,AP=zt(wP());function kP(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 _P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kP(Object(r),!0).forEach(function(t){NP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function NP(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 MP(){return MP=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},MP.apply(null,arguments)}function TP(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var IP=(e,t,r,n,i)=>{var a,o=r-n;return a=or(OP||(OP=TP(["M ",",",""])),e,t),a+=or(EP||(EP=TP(["L ",",",""])),e+r,t),a+=or(jP||(jP=TP(["L ",",",""])),e+r-o/2,t+i),a+=or(SP||(SP=TP(["L ",",",""])),e+r-o/2-n,t+i),a+=or(PP||(PP=TP(["L ",","," Z"])),e,t)},DP={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},CP=e=>{var r=Cr(e,DP),{x:n,y:i,upperWidth:o,lowerWidth:l,height:s,className:c}=r,{animationEasing:u,animationDuration:d,animationBegin:f,isUpdateAnimationActive:p}=r,h=t.useRef(null),[y,m]=t.useState(-1),g=t.useRef(o),b=t.useRef(l),x=t.useRef(s),w=t.useRef(n),O=t.useRef(i),E=df(e,"trapezoid-");if(t.useEffect(()=>{if(h.current&&h.current.getTotalLength)try{var e=h.current.getTotalLength();e&&m(e)}catch(e){}},[]),n!==+n||i!==+i||o!==+o||l!==+l||s!==+s||0===o&&0===l||0===s)return null;var j=a.clsx("recharts-trapezoid",c);if(!p)return v.createElement("g",null,v.createElement("path",MP({},je(r),{className:j,d:IP(n,i,o,l,s)})));var S=g.current,P=b.current,A=x.current,k=w.current,_=O.current,N="0px ".concat(-1===y?1:y,"px"),M="".concat(y,"px ").concat(y,"px"),T=Bd(["strokeDasharray"],d,u);return v.createElement(uf,{animationId:E,key:E,canBegin:y>0,duration:d,easing:u,isActive:p,begin:f},e=>{var t=vr(S,o,e),a=vr(P,l,e),c=vr(A,s,e),u=vr(k,n,e),d=vr(_,i,e);h.current&&(g.current=t,b.current=a,x.current=c,w.current=u,O.current=d);var f=e>0?{transition:T,strokeDasharray:M}:{strokeDasharray:N};return v.createElement("path",MP({},je(r),{className:j,d:IP(u,d,t,a,c),ref:h,style:_P(_P({},f),r.style)}))})},zP=["option","shapeType","activeClassName","inActiveClassName"];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 RP(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){BP(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 BP(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 VP(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return v.createElement(Tf,r);case"trapezoid":return v.createElement(CP,r);case"sector":return v.createElement(tp,r);case"symbols":if(function(e){return"symbols"===e}(t))return v.createElement(_r,r);break;case"curve":return v.createElement(_d,r);default:return null}}function KP(e){var r,{option:n,shapeType:i,activeClassName:a="recharts-active-shape",inActiveClassName:o="recharts-shape"}=e,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,zP);if(t.isValidElement(n))r=t.cloneElement(n,RP(RP({},l),function(e){return t.isValidElement(e)?e.props:e}(n)));else if("function"==typeof n)r=n(l,l.index);else if(AP(n)&&"boolean"!=typeof n){var s=function(e,t){return RP(RP({},t),e)}(n,l);r=v.createElement(VP,{shapeType:i,elementProps:s})}else{var c=l;r=v.createElement(VP,{shapeType:i,elementProps:c})}return l.isActive?v.createElement(Ne,{className:a},r):v.createElement(Ne,{className:o},r)}var $P,FP=(e,t,r)=>{var n=Ii();return(i,a)=>o=>{null==e||e(i,a,o),n(Uw({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}},UP=e=>{var t=Ii();return(r,n)=>i=>{null==e||e(r,n,i),t(Ww())}},WP=(e,t,r)=>{var n=Ii();return(i,a)=>o=>{null==e||e(i,a,o),n(qw({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:r}))}};function HP(e){var{tooltipEntrySettings:r}=e,n=Ii(),i=Xs(),a=t.useRef(null);return t.useLayoutEffect(()=>{i||(null===a.current?n(Vw(r)):a.current!==r&&n(Kw({prev:a.current,next:r})),a.current=r)},[r,n,i]),t.useLayoutEffect(()=>()=>{a.current&&(n($w(a.current)),a.current=null)},[n]),null}function qP(e){var{legendPayload:r}=e,n=Ii(),i=Xs(),a=t.useRef(null);return t.useLayoutEffect(()=>{i||(null===a.current?n(_u(r)):a.current!==r&&n(Nu({prev:a.current,next:r})),a.current=r)},[n,i,r]),t.useLayoutEffect(()=>()=>{a.current&&(n(Mu(a.current)),a.current=null)},[n]),null}var YP=null!==($P=v["useId".toString()])&&void 0!==$P?$P:()=>{var[e]=v.useState(()=>pr("uid-"));return e};var GP=t.createContext(void 0),XP=e=>{var{id:t,type:r,children:n}=e,i=function(e,t){var r=YP();return t||(e?"".concat(e,"-").concat(r):r)}("recharts-".concat(r),t);return v.createElement(GP.Provider,{value:i},n(i))},ZP=jl({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:hl()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Uo(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:hl()},removeCartesianGraphicalItem:{reducer(e,t){var r=Uo(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:hl()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:hl()},removePolarGraphicalItem:{reducer(e,t){var r=Uo(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:hl()},replacePolarGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=Uo(e).polarItems.indexOf(r);i>-1&&(e.polarItems[i]=n)},prepare:hl()}}}),{addCartesianGraphicalItem:JP,replaceCartesianGraphicalItem:QP,removeCartesianGraphicalItem:eA,addPolarGraphicalItem:tA,removePolarGraphicalItem:rA,replacePolarGraphicalItem:nA}=ZP.actions,iA=ZP.reducer,aA=e=>{var r=Ii(),n=t.useRef(null);return t.useLayoutEffect(()=>{null===n.current?r(JP(e)):n.current!==e&&r(QP({prev:n.current,next:e})),n.current=e},[r,e]),t.useLayoutEffect(()=>()=>{n.current&&(r(eA(n.current)),n.current=null)},[r]),null},oA=t.memo(aA),lA=["points"];function sA(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 cA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sA(Object(r),!0).forEach(function(t){uA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function uA(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 dA(){return dA=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},dA.apply(null,arguments)}function fA(e){var{option:r,dotProps:n,className:i}=e;if(t.isValidElement(r))return t.cloneElement(r,n);if("function"==typeof r)return r(n);var o=a.clsx(i,"boolean"!=typeof r?r.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,lA);return v.createElement(qS,dA({},c,{className:o}))}function pA(e){var{points:r,dot:n,className:i,dotClassName:a,dataKey:o,baseProps:l,needClip:s,clipPathId:c,zIndex:u=mh.scatter}=e;if(!function(e,t){return null!=e&&(!!t||1===e.length)}(r,n))return null;var d=gP(n),f=function(e){return null==e?null:t.isValidElement(e)?je(e.props):"object"!=typeof e||Array.isArray(e)?null:je(e)}(n),p=r.map((e,t)=>{var i,s,c=cA(cA(cA({r:3},l),f),{},{index:t,cx:null!==(i=e.x)&&void 0!==i?i:void 0,cy:null!==(s=e.y)&&void 0!==s?s:void 0,dataKey:o,value:e.value,payload:e.payload,points:r});return v.createElement(fA,{key:"dot-".concat(t),option:n,dotProps:c,className:a})}),h={};return s&&null!=c&&(h.clipPath="url(#clipPath-".concat(d?"":"dots-").concat(c,")")),v.createElement(WE,{zIndex:u},v.createElement(Ne,dA({className:i},h),p))}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 yA(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){vA(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 vA(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 mA=jl({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:hl()},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:hl()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:hl()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:hl()},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:hl()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:hl()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:hl()},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:hl()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:hl()},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]=yA(yA({},i),{},{width:n,widthHistory:l})}}}}),{addXAxis:gA,replaceXAxis:bA,removeXAxis:xA,addYAxis:wA,replaceYAxis:OA,removeYAxis:EA,addZAxis:jA,replaceZAxis:SA,removeZAxis:PA,updateYAxisWidth:AA}=mA.actions,kA=mA.reducer,_A=Gi([Hs],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),NA=Gi([_A,Ms,Ts],(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)}}),MA=()=>Li(NA);function TA(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 IA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?TA(Object(r),!0).forEach(function(t){DA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function DA(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 CA=e=>{var{point:r,childIndex:n,mainColor:i,activeDot:a,dataKey:o,clipPath:l}=e;if(!1===a||null==r.x||null==r.y)return null;var s,c=IA(IA(IA({},{index:n,dataKey:o,cx:r.x,cy:r.y,r:4,fill:null!=i?i:"none",strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value}),Ee(a)),Mr(a));return s=t.isValidElement(a)?t.cloneElement(a,c):"function"==typeof a?a(c):v.createElement(qS,c),v.createElement(Ne,{className:"recharts-active-dot",clipPath:l},s)};function zA(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i,clipPath:a,zIndex:o=mh.activeDot}=e,l=Li(eE),s=Li(cE);if(null==t||null==s)return null;var c=t.find(e=>s.includes(e.payload));return gr(c)?null:v.createElement(WE,{zIndex:o},v.createElement(CA,{point:c,childIndex:Number(l),mainColor:r,dataKey:i,activeDot:n,clipPath:a}))}var LA=(e,t,r)=>{var n=null!=r?r:e;if(!gr(n))return hr(n,t,0)};function RA(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 BA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?RA(Object(r),!0).forEach(function(t){VA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function VA(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 KA(e,t){return e&&"object"==typeof e&&"zIndex"in e&&"number"==typeof e.zIndex&&ds(e.zIndex)?e.zIndex:t}var $A=e=>{var{chartData:r}=e,n=Ii(),i=Xs();return t.useEffect(()=>i?()=>{}:(n(fj(r)),()=>{n(fj(void 0))}),[r,n,i]),null},FA={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},UA=jl({name:"brush",initialState:FA,reducers:{setBrushSettings:(e,t)=>null==t.payload?FA:t.payload}}),{setBrushSettings:WA}=UA.actions,HA=UA.reducer;var qA=jl({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=Uo(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=Uo(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=Uo(e).lines.findIndex(e=>e===t.payload);-1!==r&&e.lines.splice(r,1)}}}),{addDot:YA,removeDot:GA,addArea:XA,removeArea:ZA,addLine:JA,removeLine:QA}=qA.actions,ek=qA.reducer,tk=t.createContext(void 0),rk=e=>{var{children:r}=e,[n]=t.useState("".concat(pr("recharts"),"-clip")),i=MA();if(null==i)return null;var{x:a,y:o,width:l,height:s}=i;return v.createElement(tk.Provider,{value:n},v.createElement("defs",null,v.createElement("clipPath",{id:n},v.createElement("rect",{x:a,y:o,height:s,width:l}))),r)};function nk(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 ik(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 ak(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 ok(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 lk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ok(Object(r),!0).forEach(function(t){sk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ok(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sk(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 ck(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(ur(c)||cd)return null!==(n=function(e,t){return nk(e,t+1)}(a,ur(c)?c:0))&&void 0!==n?n:[];var p=[],h="top"===s||"bottom"===s?"width":"height",y=d&&"width"===h?Bj(d,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=(e,n)=>{var i="function"==typeof u?u(e.value,n):e.value;return"width"===h?ik(Bj(i,{fontSize:t,letterSpacing:r}),y,f):Bj(i,{fontSize:t,letterSpacing:r})[h]},m=a[0],g=a[1],b=a.length>=2&&null!=m&&null!=g?lr(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:nk(n,u)};var a,o=c,f=()=>(void 0===a&&(a=r(t,o)),a),p=t.coordinate,h=0===c||ak(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,v,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||ak(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 y=[],v=u;v<a;v+=s){var m=n[v];null!=m&&y.push(m)}return y}}return[]}(b,x,v,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=lk(lk({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),null!=u.tickCoord&&ak(e,u.tickCoord,()=>d,s,c)&&(c=u.tickCoord-e*(d/2+i),o[l-1]=lk(lk({},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=lk(lk({},l),{},{tickCoord:d<0?l.coordinate-d*e:l.coordinate})}else o[t]=l=lk(lk({},l),{},{tickCoord:l.coordinate});null!=l.tickCoord&&ak(e,l.tickCoord,u,s,c)&&(s=l.tickCoord+e*(u()/2+i),o[t]=lk(lk({},l),{},{isShow:!0}))},y=0;y<p;y++)h(y);return o}(b,x,v,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=lk(lk({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate})}else a[t]=u=lk(lk({},u),{},{tickCoord:u.coordinate});null!=u.tickCoord&&ak(e,u.tickCoord,d,l,s)&&(s=u.tickCoord-e*(d()/2+i),a[t]=lk(lk({},u),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}(b,x,v,a,l),p.filter(e=>e.isShow))}var uk=jl({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:dk,removeRenderedTicks:fk}=uk.actions,pk=uk.reducer,hk=["axisLine","width","height","className","hide","ticks","axisType","axisId"];function yk(){return yk=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},yk.apply(null,arguments)}function vk(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 mk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vk(Object(r),!0).forEach(function(t){gk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gk(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 bk={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:mh.axis};function xk(e){var{x:t,y:r,width:n,height:i,orientation:o,mirror:l,axisLine:s,otherSvgProps:c}=e;if(!s)return null;var u=mk(mk(mk({},c),Oe(s)),{},{fill:"none"});if("top"===o||"bottom"===o){var d=+("top"===o&&!l||"bottom"===o&&l);u=mk(mk({},u),{},{x1:t,y1:r+d*i,x2:t+n,y2:r+d*i})}else{var f=+("left"===o&&!l||"right"===o&&l);u=mk(mk({},u),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return v.createElement("line",yk({},u,{className:a.clsx("recharts-cartesian-axis-line",ir(s,"className"))}))}function wk(e){var t,r,{option:n,tickProps:i,value:o}=e,l=a.clsx(i.className,"recharts-cartesian-axis-tick-value");if(v.isValidElement(n))t=v.cloneElement(n,mk(mk({},i),{},{className:l}));else if("function"==typeof n)t=n(mk(mk({},i),{},{className:l}));else{var s="recharts-cartesian-axis-tick-value";"boolean"!=typeof n&&(s=a.clsx(s,(r=n)&&"object"==typeof r&&"className"in r&&"string"==typeof r.className?r.className:"")),t=v.createElement(yS,yk({},i,{className:s}),o)}return t}function Ok(e){var{ticks:r,axisType:n,axisId:i}=e,a=Ii();return t.useEffect(()=>{if(null==i||null==n)return wr;var e=r.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index}));return a(dk({ticks:e,axisId:i,axisType:n})),()=>{a(fk({axisId:i,axisType:n}))}},[a,r,i,n]),null}var Ek=t.forwardRef((e,t)=>{var{ticks:r=[],tick:n,tickLine:i,stroke:o,tickFormatter:l,unit:s,padding:c,tickTextProps:u,orientation:d,mirror:f,x:p,y:h,width:y,height:m,tickSize:g,tickMargin:b,fontSize:x,letterSpacing:w,getTicksConfig:O,events:E,axisType:j,axisId:S}=e,P=ck(mk(mk({},O),{},{ticks:r}),x,w),A=Oe(O),k=Ee(n),_=lS(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 i&&(M=i);var T=mk(mk({},A),{},{fill:"none"},M),I=P.map(e=>mk({entry:e},function(e,t,r,n,i,a,o,l,s){var c,u,d,f,p,h,y=l?-1:1,v=e.tickSize||o,m=ur(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":c=u=e.coordinate,h=(d=(f=r+ +!l*i)-y*v)-y*s,p=m;break;case"left":d=f=e.coordinate,p=(c=(u=t+ +!l*n)-y*v)-y*s,h=m;break;case"right":d=f=e.coordinate,p=(c=(u=t+ +l*n)+y*v)+y*s,h=m;break;default:c=u=e.coordinate,h=(d=(f=r+ +l*i)+y*v)+y*s,p=m}return{line:{x1:c,y1:d,x2:u,y2:f},tick:{x:p,y:h}}}(e,p,h,y,m,d,g,f,b))),D=I.map(e=>{var{entry:t,line:r}=e;return v.createElement(Ne,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},i&&v.createElement("line",yk({},T,r,{className:a.clsx("recharts-cartesian-axis-tick-line",ir(i,"className"))})))}),C=I.map((e,t)=>{var r,i,{entry:a,tick:d}=e,f=mk(mk(mk(mk({verticalAnchor:N},A),{},{textAnchor:_,stroke:"none",fill:o},d),{},{index:t,payload:a,visibleTicksCount:P.length,tickFormatter:l,padding:c},u),{},{angle:null!==(r=null!==(i=null==u?void 0:u.angle)&&void 0!==i?i:A.angle)&&void 0!==r?r:0}),p=mk(mk({},f),k);return v.createElement(Ne,yk({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(a.value,"-").concat(a.coordinate,"-").concat(a.tickCoord)},Tr(E,a,t)),n&&v.createElement(wk,{option:n,tickProps:p,value:"".concat("function"==typeof l?l(a.value,t):a.value).concat(s||"")}))});return v.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(j,"-ticks")},v.createElement(Ok,{ticks:P,axisId:S,axisType:j}),C.length>0&&v.createElement(WE,{zIndex:mh.label},v.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(j,"-tick-labels"),ref:t},C)),D.length>0&&v.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(j,"-tick-lines")},D))}),jk=t.forwardRef((e,r)=>{var{axisLine:n,width:i,height:o,className:l,hide:s,ticks:c,axisType:u,axisId: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,hk),[p,h]=t.useState(""),[y,m]=t.useState(""),g=t.useRef(null);t.useImperativeHandle(r,()=>({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:g.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var b=t.useCallback(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");g.current=t;var r=t[0];if(r){var n=window.getComputedStyle(r),i=n.fontSize,a=n.letterSpacing;i===p&&a===y||(h(i),m(a))}}},[p,y]);return s||null!=i&&i<=0||null!=o&&o<=0?null:v.createElement(WE,{zIndex:e.zIndex},v.createElement(Ne,{className:a.clsx("recharts-cartesian-axis",l)},v.createElement(xk,{x:e.x,y:e.y,width:i,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Oe(e)}),v.createElement(Ek,{ref:b,axisType:u,events:f,fontSize:p,getTicksConfig:e,height:e.height,letterSpacing:y,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:c,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:d}),v.createElement(AS,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},v.createElement(CS,{label:e.label,labelRef:e.labelRef}),e.children)))}),Sk=v.forwardRef((e,t)=>{var r=Cr(e,bk);return v.createElement(jk,yk({},r,{ref:t}))});Sk.displayName="CartesianAxis";var Pk=["x1","y1","x2","y2","key"],Ak=["offset"],kk=["xAxisId","yAxisId"],_k=["xAxisId","yAxisId"];function Nk(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 Mk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nk(Object(r),!0).forEach(function(t){Tk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Tk(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 Ik(){return Ik=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},Ik.apply(null,arguments)}function Dk(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 Ck=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:l}=e;return v.createElement("rect",{x:n,y:i,ry:l,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function zk(e){var t,{option:r,lineItemProps:n}=e;if(v.isValidElement(r))t=v.cloneElement(r,n);else if("function"==typeof r)t=r(n);else{var i,{x1:a,y1:o,x2:l,y2:s,key:c}=n,u=null!==(i=Oe(Dk(n,Pk)))&&void 0!==i?i:{},{offset:d}=u,f=Dk(u,Ak);t=v.createElement("line",Ik({},f,{x1:a,y1:o,x2:l,y2:s,fill:"none",key:c}))}return t}function Lk(e){var{x:t,width:r,horizontal:n=!0,horizontalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,l=Dk(e,kk),s=i.map((e,i)=>{var a=Mk(Mk({},l),{},{x1:t,y1:e,x2:t+r,y2:e,key:"line-".concat(i),index:i});return v.createElement(zk,{key:"line-".concat(i),option:n,lineItemProps:a})});return v.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function Rk(e){var{y:t,height:r,vertical:n=!0,verticalPoints:i}=e;if(!n||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,l=Dk(e,_k),s=i.map((e,i)=>{var a=Mk(Mk({},l),{},{x1:e,y1:t,x2:e,y2:t+r,key:"line-".concat(i),index:i});return v.createElement(zk,{option:n,lineItemProps:a,key:"line-".concat(i)})});return v.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Bk(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:l,horizontal:s=!0}=e;if(!s||!t||!t.length||null==l)return null;var c=l.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==c[0]&&c.unshift(0);var u=c.map((e,l)=>{var s=c[l+1],u=null==s?i+o-e:s-e;if(u<=0)return null;var d=l%t.length;return v.createElement("rect",{key:"react-".concat(l),y:e,x:n,height:u,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return v.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function Vk(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:l,verticalPoints:s}=e;if(!t||!r||!r.length)return null;var c=s.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==c[0]&&c.unshift(0);var u=c.map((e,t)=>{var s=c[t+1],u=null==s?i+o-e:s-e;if(u<=0)return null;var d=t%r.length;return v.createElement("rect",{key:"react-".concat(t),x:e,y:a,width:u,height:l,stroke:"none",fill:r[d],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return v.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}var Kk=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return gs(ck(Mk(Mk(Mk({},bk),r),{},{ticks:bs(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},$k=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return gs(ck(Mk(Mk(Mk({},bk),r),{},{ticks:bs(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},Fk={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:mh.grid};function Uk(e){var t=kc(),r=_c(),n=Ac(),i=Mk(Mk({},Cr(e,Fk)),{},{x:ur(e.x)?e.x:n.left,y:ur(e.y)?e.y:n.top,width:ur(e.width)?e.width:n.width,height:ur(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:l,y:s,width:c,height:u,syncWithTicks:d,horizontalValues:f,verticalValues:p}=i,h=Xs(),y=Li(e=>Sw(e,"xAxis",a,h)),m=Li(e=>Sw(e,"yAxis",o,h));if(!(fs(c)&&fs(u)&&ur(l)&&ur(s)))return null;var g=i.verticalCoordinatesGenerator||Kk,b=i.horizontalCoordinatesGenerator||$k,{horizontalPoints:x,verticalPoints:w}=i;if(!(x&&x.length||"function"!=typeof b)){var O=f&&f.length,E=b({yAxis:m?Mk(Mk({},m),{},{ticks:O?f:m.ticks}):void 0,width:null!=t?t:c,height:null!=r?r:u,offset:n},!!O||d);lc(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 j=p&&p.length,S=g({xAxis:y?Mk(Mk({},y),{},{ticks:j?p:y.ticks}):void 0,width:null!=t?t:c,height:null!=r?r:u,offset:n},!!j||d);lc(Array.isArray(S),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof S,"]")),Array.isArray(S)&&(w=S)}return v.createElement(WE,{zIndex:i.zIndex},v.createElement("g",{className:"recharts-cartesian-grid"},v.createElement(Ck,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),v.createElement(Bk,Ik({},i,{horizontalPoints:x})),v.createElement(Vk,Ik({},i,{verticalPoints:w})),v.createElement(Lk,Ik({},i,{offset:n,horizontalPoints:x,xAxis:y,yAxis:m})),v.createElement(Rk,Ik({},i,{offset:n,verticalPoints:w,xAxis:y,yAxis:m}))))}Uk.displayName="CartesianGrid";var Wk=jl({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:Hk,replaceErrorBar:qk,removeErrorBar:Yk}=Wk.actions,Gk=Wk.reducer,Xk=["children"];var Zk={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Jk=t.createContext(Zk);function Qk(e){var{children:t}=e,r=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,Xk);return v.createElement(Jk.Provider,{value:r},t)}function e_(e,t){var r,n,i=Li(t=>Cb(t,e)),a=Li(e=>Rb(e,t)),o=null!==(r=null==i?void 0:i.allowDataOverflow)&&void 0!==r?r:Ib.allowDataOverflow,l=null!==(n=null==a?void 0:a.allowDataOverflow)&&void 0!==n?n:zb.allowDataOverflow;return{needClip:o||l,needClipX:o,needClipY:l}}function t_(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=MA(),{needClipX:a,needClipY:o,needClip:l}=e_(t,r);if(!l||!i)return null;var{x:s,y:c,width:u,height:d}=i;return v.createElement("clipPath",{id:"clipPath-".concat(n)},v.createElement("rect",{x:a?s:s-u/2,y:o?c:c-d/2,width:a?u:2*u,height:o?d:2*d}))}var r_=(e,t,r,n)=>kw(e,"xAxis",t,n),n_=(e,t,r,n)=>Aw(e,"xAxis",t,n),i_=(e,t,r,n)=>kw(e,"yAxis",r,n),a_=(e,t,r,n)=>Aw(e,"yAxis",r,n),o_=Gi([Nc,r_,i_,n_,a_],(e,t,r,n,i)=>ms(e,"xAxis")?ks(t,n,!1):ks(r,i,!1));function l_(e){return"line"===e.type}var s_=Gi([Wb,(e,t,r,n,i)=>i],(e,t)=>e.filter(l_).find(e=>e.id===t)),c_=Gi([Nc,r_,i_,n_,a_,s_,o_,gp],(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=vs(e,o);if("horizontal"===t){var u=Es({axis:r,ticks:i,bandSize:l,entry:e,index:s}),d=gr(c)?null:n.scale.map(c);return{x:u,y:null!=d?d:null,value:c,payload:e}}var f=gr(c)?null:r.scale.map(c),p=Es({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 u_(e){var t=Ee(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 d_=["id"],f_=["type","layout","connectNulls","needClip","shape"],p_=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];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 y_(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 v_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y_(Object(r),!0).forEach(function(t){m_(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y_(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function m_(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 g_(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 b_=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ns(r,t),payload:e}]},x_=v.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:l,unit:s,tooltipType:c,id:u}=e,d={dataDefinedOnItem:r,getPosition:wr,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ns(o,t),hide:l,type:c,color:n,unit:s,graphicalItemId:u}};return v.createElement(HP,{tooltipEntrySettings:d})}),w_=(e,t)=>"".concat(t,"px ").concat(e,"px");function O_(e,t){for(var r=e.length%2!=0?[...e,0]:e,n=[],i=0;i<t;++i)n.push(...r);return n}function E_(e){var{clipPathId:t,points:r,props:n}=e,{dot:i,dataKey:a,needClip:o}=n,{id:l}=n,s=Oe(g_(n,d_));return v.createElement(pA,{points:r,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:a,baseProps:s,needClip:o,clipPathId:t})}function j_(e){var{showLabels:r,children:n,points:i}=e,a=t.useMemo(()=>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 v_(v_({},n),{},{value:e.value,payload:e.payload,viewBox:n,parentViewBox:void 0,fill:void 0})}),[i]);return v.createElement($S,{value:r?a:void 0},n)}function S_(e){var{clipPathId:t,pathRef:r,points:n,strokeDasharray:i,props:a}=e,{type:o,layout:l,connectNulls:s,needClip:c,shape:u}=a,d=v_(v_({},je(g_(a,f_))),{},{fill:"none",className:"recharts-line-curve",clipPath:c?"url(#clipPath-".concat(t,")"):void 0,points:n,type:o,layout:l,connectNulls:s,strokeDasharray:null!=i?i:a.strokeDasharray});return v.createElement(v.Fragment,null,(null==n?void 0:n.length)>1&&v.createElement(KP,h_({shapeType:"curve",option:u},d,{pathRef:r})),v.createElement(E_,{points:n,clipPathId:t,props:a}))}function P_(e){var{clipPathId:r,props:n,pathRef:i,previousPointsRef:a,longestAnimatedLengthRef:o}=e,{points:l,strokeDasharray:s,isAnimationActive:c,animationBegin:u,animationDuration:d,animationEasing:f,animateNewValues:p,width:h,height:y,onAnimationEnd:m,onAnimationStart:g}=n,b=a.current,x=df(l,"recharts-line-"),w=t.useRef(x),[O,E]=t.useState(!1),j=!O,S=t.useCallback(()=>{"function"==typeof m&&m(),E(!1)},[m]),P=t.useCallback(()=>{"function"==typeof g&&g(),E(!0)},[g]),A=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(i.current),k=t.useRef(0);w.current!==x&&(k.current=o.current,w.current=x);var _=k.current;return v.createElement(j_,{points:l,showLabels:j},n.children,v.createElement(uf,{animationId:x,begin:u,duration:d,isActive:c,easing:f,onAnimationEnd:S,onAnimationStart:P,key:x},e=>{var t,u=vr(_,A+_,e),d=Math.min(u,A);if(c)if(s){var f="".concat(s).split(/[,\s]+/gim).map(e=>parseFloat(e));t=((e,t,r)=>{var n=r.reduce((e,t)=>e+t,0);if(!n)return w_(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[...O_(r,i),...o,...d].map(e=>"".concat(e,"px")).join(", ")})(d,A,f)}else t=w_(A,d);else t=null==s?void 0:String(s);if(e>0&&A>0&&(a.current=l,o.current=Math.max(o.current,d)),b){var m=b.length/l.length,g=1===e?l:l.map((t,r)=>{var n=Math.floor(r*m);if(b[n]){var i=b[n];return v_(v_({},t),{},{x:vr(i.x,t.x,e),y:vr(i.y,t.y,e)})}return v_(v_({},t),{},p?{x:vr(2*h,t.x,e),y:vr(y/2,t.y,e)}:{x:t.x,y:t.y})});return a.current=g,v.createElement(S_,{props:n,points:g,clipPathId:r,pathRef:i,strokeDasharray:t})}return v.createElement(S_,{props:n,points:l,clipPathId:r,pathRef:i,strokeDasharray:t})}),v.createElement(WS,{label:n.label}))}function A_(e){var{clipPathId:r,props:n}=e,i=t.useRef(null),a=t.useRef(0),o=t.useRef(null);return v.createElement(P_,{props:n,clipPathId:r,previousPointsRef:i,longestAnimatedLengthRef:a,pathRef:o})}var k_=(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:vs(e.payload,t)}};class __ extends t.Component{render(){var{hide:e,dot:t,points:r,className:n,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=a.clsx("recharts-line",n),y=d,{r:m,strokeWidth:g}=u_(t),b=gP(t),x=2*m+g,w=f?"url(#clipPath-".concat(b?"":"dots-").concat(y,")"):void 0;return v.createElement(WE,{zIndex:p},v.createElement(Ne,{className:h},f&&v.createElement("defs",null,v.createElement(t_,{clipPathId:y,xAxisId:i,yAxisId:o}),!b&&v.createElement("clipPath",{id:"clipPath-dots-".concat(y)},v.createElement("rect",{x:s-x/2,y:l-x/2,width:c+x,height:u+x}))),v.createElement(Qk,{xAxisId:i,yAxisId:o,data:r,dataPointFormatter:k_,errorBarOffset:0},v.createElement(A_,{props:this.props,clipPathId:y}))),v.createElement(zA,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:w}))}}var N_={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:mh.line,type:"linear"};function M_(e){var t=Cr(e,N_),{activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:l,dot:s,hide:c,isAnimationActive:u,label:d,legendType:f,xAxisId:p,yAxisId:h,id:y}=t,m=g_(t,p_),{needClip:g}=e_(p,h),b=MA(),x=Mc(),w=Xs(),O=Li(e=>c_(e,p,h,w,y));if("horizontal"!==x&&"vertical"!==x||null==O||null==b)return null;var{height:E,width:j,x:S,y:P}=b;return v.createElement(__,h_({},m,{id:y,connectNulls:l,dot:s,activeDot:r,animateNewValues:n,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:c,label:d,legendType:f,xAxisId:p,yAxisId:h,points:O,layout:x,height:E,width:j,left:S,top:P,needClip:g}))}function T_(e){var t=Cr(e,N_),r=Xs();return v.createElement(XP,{id:t.id,type:"line"},e=>v.createElement(v.Fragment,null,v.createElement(qP,{legendPayload:b_(t)}),v.createElement(x_,{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}),v.createElement(oA,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:r}),v.createElement(M_,h_({},t,{id:e}))))}var I_=v.memo(T_,Zu);function D_(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 C_(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}I_.displayName="Line";var z_=(e,t,r)=>kw(e,"xAxis",D_(e,t),r),L_=(e,t,r)=>Aw(e,"xAxis",D_(e,t),r),R_=(e,t,r)=>kw(e,"yAxis",C_(e,t),r),B_=(e,t,r)=>Aw(e,"yAxis",C_(e,t),r),V_=Gi([Nc,z_,R_,L_,B_],(e,t,r,n,i)=>ms(e,"xAxis")?ks(t,n,!1):ks(r,i,!1)),K_=Gi([Wb,(e,t)=>t],(e,t)=>e.filter(e=>"area"===e.type).find(e=>e.id===t)),$_=e=>{var t=Nc(e);return ms(t,"xAxis")?"yAxis":"xAxis"},F_=Gi([K_,(e,t,r)=>yx(e,$_(e),((e,t)=>"yAxis"===$_(e)?C_(e,t):D_(e,t))(e,t),r)],(e,t)=>{var r;if(null!=e&&null!=t){var{stackId:n}=e,i=zh(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]])}}}),U_=Gi([Nc,z_,R_,L_,B_,F_,bp,V_,K_,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,y=a&&a.length,v=fN(o,l,n,s,c),m="horizontal"===o,g=!1,b=u.map((e,t)=>{var n,o,l,u;if(y)u=a[d+t];else{var b=vs(e,i);Array.isArray(b)?(u=b,g=!0):u=[v,b]}var x,w=null!==(n=null===(o=u)||void 0===o?void 0:o[1])&&void 0!==n?n:null,O=null==w||y&&!r&&null==vs(e,i);return m?{x:Es({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:Es({axis:c,ticks:p,bandSize:h,entry:e,index:t}),value:u,payload:e}});t=y||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(v):s.scale.map(v);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})}}),W_=["id"],H_=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function q_(){return q_=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},q_.apply(null,arguments)}function Y_(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 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){return e&&"none"!==e?e:t}var Q_=e=>{var{dataKey:t,name:r,stroke:n,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:J_(n,i),value:Ns(r,t),payload:e}]},eN=v.memo(e=>{var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:l,unit:s,tooltipType:c,id:u}=e,d={dataDefinedOnItem:r,getPosition:wr,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Ns(o,t),hide:l,type:c,color:J_(n,a),unit:s,graphicalItemId:u}};return v.createElement(HP,{tooltipEntrySettings:d})});function tN(e){var{clipPathId:t,points:r,props:n}=e,{needClip:i,dot:a,dataKey:o}=n,l=Oe(n);return v.createElement(pA,{points:r,dot:a,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:o,baseProps:l,needClip:i,clipPathId:t})}function rN(e){var{showLabels:t,children:r,points:n}=e,i=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:0,lowerWidth:0,upperWidth:0,height:0};return X_(X_({},n),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:n,fill:void 0})});return v.createElement($S,{value:t?i:void 0},r)}function nN(e){var{points:t,baseLine:r,needClip:n,clipPathId:i,props:a}=e,{layout:o,type:l,stroke:s,connectNulls:c,isRange:u}=a,{id:d}=a,f=Y_(a,W_),p=Oe(f),h=je(f);return v.createElement(v.Fragment,null,(null==t?void 0:t.length)>1&&v.createElement(Ne,{clipPath:n?"url(#clipPath-".concat(i,")"):void 0},v.createElement(_d,q_({},h,{id:d,points:t,connectNulls:c,type:l,baseLine:r,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==s&&v.createElement(_d,q_({},p,{className:"recharts-area-curve",layout:o,type:l,connectNulls:c,fill:"none",points:t})),"none"!==s&&u&&Array.isArray(r)&&v.createElement(_d,q_({},p,{className:"recharts-area-curve",layout:o,type:l,connectNulls:c,fill:"none",points:r}))),v.createElement(tN,{points:t,props:f,clipPathId:i}))}function iN(e){var t,r,{alpha:n,baseLine:i,points:a,strokeWidth:o}=e,l=null===(t=a[0])||void 0===t?void 0:t.y,s=null===(r=a[a.length-1])||void 0===r?void 0:r.y;if(!ds(l)||!ds(s))return null;var c=n*Math.abs(l-s),u=Math.max(...a.map(e=>e.x||0));return ur(i)?u=Math.max(i,u):i&&Array.isArray(i)&&i.length&&(u=Math.max(...i.map(e=>e.x||0),u)),ur(u)?v.createElement("rect",{x:0,y:l<s?l:l-c,width:u+(o?parseInt("".concat(o),10):1),height:Math.floor(c)}):null}function aN(e){var t,r,{alpha:n,baseLine:i,points:a,strokeWidth:o}=e,l=null===(t=a[0])||void 0===t?void 0:t.x,s=null===(r=a[a.length-1])||void 0===r?void 0:r.x;if(!ds(l)||!ds(s))return null;var c=n*Math.abs(l-s),u=Math.max(...a.map(e=>e.y||0));return ur(i)?u=Math.max(i,u):i&&Array.isArray(i)&&i.length&&(u=Math.max(...i.map(e=>e.y||0),u)),ur(u)?v.createElement("rect",{x:l<s?l:l-c,y:0,width:c,height:Math.floor(u+(o?parseInt("".concat(o),10):1))}):null}function oN(e){var{alpha:t,layout:r,points:n,baseLine:i,strokeWidth:a}=e;return"vertical"===r?v.createElement(iN,{alpha:t,points:n,baseLine:i,strokeWidth:a}):v.createElement(aN,{alpha:t,points:n,baseLine:i,strokeWidth:a})}function lN(e){var{needClip:r,clipPathId:n,props:i,previousPointsRef:a,previousBaselineRef:o}=e,{points:l,baseLine:s,isAnimationActive:c,animationBegin:u,animationDuration:d,animationEasing:f,onAnimationStart:p,onAnimationEnd:h}=i,y=df(t.useMemo(()=>({points:l,baseLine:s}),[l,s]),"recharts-area-"),m=Tc(),[g,b]=t.useState(!1),x=!g,w=t.useCallback(()=>{"function"==typeof h&&h(),b(!1)},[h]),O=t.useCallback(()=>{"function"==typeof p&&p(),b(!0)},[p]);if(null==m)return null;var E=a.current,j=o.current;return v.createElement(rN,{showLabels:x,points:l},i.children,v.createElement(uf,{animationId:y,begin:u,duration:d,isActive:c,easing:f,onAnimationEnd:w,onAnimationStart:O,key:y},e=>{if(E){var t,u=E.length/l.length,d=1===e?l:l.map((t,r)=>{var n=Math.floor(r*u);if(E[n]){var i=E[n];return X_(X_({},t),{},{x:vr(i.x,t.x,e),y:vr(i.y,t.y,e)})}return t});return t=ur(s)?vr(j,s,e):gr(s)||sr(s)?vr(j,0,e):s.map((t,r)=>{var n=Math.floor(r*u);if(Array.isArray(j)&&j[n]){var i=j[n];return X_(X_({},t),{},{x:vr(i.x,t.x,e),y:vr(i.y,t.y,e)})}return t}),e>0&&(a.current=d,o.current=t),v.createElement(nN,{points:d,baseLine:t,needClip:r,clipPathId:n,props:i})}return e>0&&(a.current=l,o.current=s),v.createElement(Ne,null,c&&v.createElement("defs",null,v.createElement("clipPath",{id:"animationClipPath-".concat(n)},v.createElement(oN,{alpha:e,points:l,baseLine:s,layout:m,strokeWidth:i.strokeWidth}))),v.createElement(Ne,{clipPath:"url(#animationClipPath-".concat(n,")")},v.createElement(nN,{points:l,baseLine:s,needClip:r,clipPathId:n,props:i})))}),v.createElement(WS,{label:i.label}))}function sN(e){var{needClip:r,clipPathId:n,props:i}=e,a=t.useRef(null),o=t.useRef();return v.createElement(lN,{needClip:r,clipPathId:n,props:i,previousPointsRef:a,previousBaselineRef:o})}class cN extends t.PureComponent{render(){var{hide:e,dot:t,points:r,className:n,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 y=a.clsx("recharts-area",n),m=f,{r:g,strokeWidth:b}=u_(t),x=gP(t),w=2*g+b,O=l?"url(#clipPath-".concat(x?"":"dots-").concat(m,")"):void 0;return v.createElement(WE,{zIndex:h},v.createElement(Ne,{className:y},l&&v.createElement("defs",null,v.createElement(t_,{clipPathId:m,xAxisId:s,yAxisId:c}),!x&&v.createElement("clipPath",{id:"clipPath-dots-".concat(m)},v.createElement("rect",{x:o-w/2,y:i-w/2,width:u+w,height:d+w}))),v.createElement(sN,{needClip:l,clipPathId:m,props:this.props})),v.createElement(zA,{points:r,mainColor:J_(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:O}),this.props.isRange&&Array.isArray(p)&&v.createElement(zA,{points:p,mainColor:J_(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:O}))}}var uN={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:mh.area};function dN(e){var t,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:a,connectNulls:o,dot:l,fill:s,fillOpacity:c,hide:u,isAnimationActive:d,legendType:f,stroke:p,xAxisId:h,yAxisId:y}=e,m=Y_(e,H_),g=Mc(),b=gE(),{needClip:x}=e_(h,y),w=Xs(),{points:O,isRange:E,baseLine:j}=null!==(t=Li(t=>U_(t,e.id,w)))&&void 0!==t?t:{},S=MA();if("horizontal"!==g&&"vertical"!==g||null==S)return null;if("AreaChart"!==b&&"ComposedChart"!==b)return null;var{height:P,width:A,x:k,y:_}=S;return O&&O.length?v.createElement(cN,q_({},m,{activeDot:r,animationBegin:n,animationDuration:i,animationEasing:a,baseLine:j,connectNulls:o,dot:l,fill:s,fillOpacity:c,height:P,hide:u,layout:g,isAnimationActive:d,isRange:E,legendType:f,needClip:x,points:O,stroke:p,width:A,left:k,top:_,xAxisId:h,yAxisId:y})):null}var fN=(e,t,r,n,i)=>{var a=null!=r?r:t;if(ur(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 pN(e){var t=Cr(e,uN),r=Xs();return v.createElement(XP,{id:t.id,type:"area"},e=>v.createElement(v.Fragment,null,v.createElement(qP,{legendPayload:Q_(t)}),v.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}),v.createElement(oA,{type:"area",id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Os(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),v.createElement(dN,q_({},t,{id:e}))))}var hN=v.memo(pN,Zu);hN.displayName="Area";var yN="production"===process.env.NODE_ENV,vN="Invariant failed";function mN(){return mN=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},mN.apply(null,arguments)}function gN(e){return v.createElement(KP,mN({shapeType:"rectangle",activeClassName:"recharts-active-bar",inActiveClassName:"recharts-inactive-bar"},e))}var bN=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(r,n)=>{if(ur(e))return e;var i=ur(r)||gr(r);return i?e(r,n):(i||function(e,t){if(yN)throw new Error(vN);var r="function"==typeof t?t():t,n=r?"".concat(vN,": ").concat(r):vN;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)}},xN=Gi([Wb,(e,t)=>t],(e,t)=>e.filter(e=>"bar"===e.type).find(e=>e.id===t)),wN=Gi([xN],e=>null==e?void 0:e.maxBarSize),ON=Gi([Nc,Wb,D_,C_,(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)),EN=Gi([ON,e=>e.rootProps.barSize,(e,t)=>{var r=Nc(e),n=D_(e,t),i=C_(e,t);if(null!=n&&null!=i)return"horizontal"===r?Ow(e,"xAxis",n):Ow(e,"yAxis",i)}],(e,t,r)=>{var n=e.filter(Rh),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:LA(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:LA(t,r,e.barSize)}))]}),jN=(e,t,r)=>{var n,i,a=Nc(e),o=D_(e,t),l=C_(e,t);if(null!=o&&null!=l)return"horizontal"===a?(n=kw(e,"xAxis",o,r),i=Aw(e,"xAxis",o,r)):(n=kw(e,"yAxis",l,r),i=Aw(e,"yAxis",l,r)),ks(n,i)},SN=Gi([EN,ch,e=>e.rootProps.barGap,uh,(e,t,r)=>{var n,i,a=xN(e,t);if(null==a)return 0;var o=D_(e,t),l=C_(e,t);if(null==o||null==l)return 0;var s,c,u=Nc(e),d=ch(e),{maxBarSize:f}=a,p=gr(f)?d:f;return"horizontal"===u?(s=kw(e,"xAxis",o,r),c=Aw(e,"xAxis",o,r)):(s=kw(e,"yAxis",l,r),c=Aw(e,"yAxis",l,r)),null!==(n=null!==(i=ks(s,c,!0))&&void 0!==i?i:p)&&void 0!==n?n:0},jN,wN],(e,t,r,n,i,a,o)=>{var l=gr(o)?t:o,s=function(e,t,r,n,i){var a,o=n.length;if(!(o<1)){var l,s=hr(e,r,0,!0),c=[];if(ds(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=hr(t,r,0,!0);r-2*h-(o-1)*s<=0&&(s=0);var y=(r-2*h-(o-1)*s)/o;y>1&&(y>>=0);var v=ds(i)?Math.min(y,i):y;l=n.reduce((e,t,r)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:h+(y+s)*r+(y-v)/2,size:v}}],c)}return l}}(r,n,i!==a?i:a,e,l);return i!==a&&null!=s&&(s=s.map(e=>BA(BA({},e),{},{position:BA(BA({},e.position),{},{offset:e.position.offset-i/2})}))),s}),PN=Gi([SN,xN],(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}}),AN=Gi([(e,t,r)=>{var n=Nc(e),i=D_(e,t),a=C_(e,t);if(null!=i&&null!=a)return"horizontal"===n?yx(e,"yAxis",a,r):yx(e,"xAxis",i,r)},xN],(e,t)=>{var r=zh(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)}}}}),kN=Gi([Hs,Ys,(e,t,r)=>{var n=D_(e,t);if(null!=n)return kw(e,"xAxis",n,r)},(e,t,r)=>{var n=C_(e,t);if(null!=n)return kw(e,"yAxis",n,r)},(e,t,r)=>{var n=D_(e,t);if(null!=n)return Aw(e,"xAxis",n,r)},(e,t,r)=>{var n=C_(e,t);if(null!=n)return Aw(e,"yAxis",n,r)},PN,Nc,bp,jN,AN,xN,(e,t,r,n)=>n],(e,t,r,n,i,a,o,l,s,c,u,d,f)=>{var{chartData:p,dataStartIndex:h,dataEndIndex:y}=s;if(null!=d&&null!=o&&null!=t&&("horizontal"===l||"vertical"===l)&&null!=r&&null!=n&&null!=i&&null!=a&&null!=c){var v,{data:m}=d;if(null!=(v=null!=m&&m.length>0?m:null==p?void 0:p.slice(h,y+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:y,dataStartIndex:v}=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,j,S;if(d){var P=d[f+v];if(null==P)return null;m=((e,t)=>{if(!t||2!==t.length||!ur(t[0])||!ur(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(!ur(e[0])||e[0]<r)&&(i[0]=r),(!ur(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i})(P,g)}else m=vs(e,r),Array.isArray(m)||(m=[b,m]);var A=bN(n,ZN)(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=js({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(j=sr(M)?0:M,S={x:w,y:p.top,width:E,height:p.height},Math.abs(A)>0&&Math.abs(j)<Math.abs(A)){var T=lr(j||A)*(Math.abs(A)-Math.abs(j));O-=T,j+=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=js({axis:s,ticks:u,bandSize:o,offset:a.offset,entry:e,index:f}),E=D-I,j=a.size,S={x:p.left,y:O,width:p.width,height:j},Math.abs(A)>0&&Math.abs(E)<Math.abs(A))E+=lr(E||A)*(Math.abs(A)-Math.abs(E))}return null!=w&&null!=O&&null!=E&&null!=j&&(i||0!==E&&0!==j)?BN(BN({},e),{},{stackedBarStart:x,x:w,y:O,width:E,height:j,value:d?m:m[1],payload:e,background:S,tooltipPosition:{x:w+E/2,y:O+j/2},parentViewBox:y,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:v,offset:e,cells:f,dataStartIndex:h})}}),_N=["index"];function NN(){return NN=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},NN.apply(null,arguments)}var MN=t.createContext(void 0),TN=e=>{var{index:r}=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,_N),i=(e=>{var r=t.useContext(MN);if(null!=r){var{stackId:n}=r;return"url(#".concat(((e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t))(n,e),")")}})(r);return v.createElement(Ne,NN({className:"recharts-bar-stack-layer",clipPath:i},n))},IN=["onMouseEnter","onMouseLeave","onClick"],DN=["value","background","tooltipPosition"],CN=["id"],zN=["onMouseEnter","onClick","onMouseLeave"];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 RN(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 BN(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?RN(Object(r),!0).forEach(function(t){VN(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RN(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function VN(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 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}var $N=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ns(r,t),payload:e}]},FN=v.memo(e=>{var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:l,tooltipType:s,id:c}=e,u={dataDefinedOnItem:void 0,getPosition:wr,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Ns(a,t),hide:o,type:s,color:i,unit:l,graphicalItemId:c}};return v.createElement(HP,{tooltipEntrySettings:u})});function UN(e){var t=Li(eE),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:l,onClick:s}=a,c=KN(a,IN),u=FP(o,n,a.id),d=UP(l),f=WP(s,n,a.id);if(!i||null==r)return null;var p=Ee(i);return v.createElement(WE,{zIndex:KA(i,mh.barBackground)},r.map((e,r)=>{var{value:a,background:o,tooltipPosition:l}=e,s=KN(e,DN);if(!o)return null;var h=u(e,r),y=d(e,r),m=f(e,r),g=BN(BN(BN(BN(BN({option:i,isActive:String(r)===t},s),{},{fill:"#eee"},o),p),Tr(c,e,r)),{},{onMouseEnter:h,onMouseLeave:y,onClick:m,dataKey:n,index:r,className:"recharts-bar-background-rectangle"});return v.createElement(gN,LN({key:"background-bar-".concat(r)},g))}))}function WN(e){var{showLabels:t,children:r,rects:n}=e,i=null==n?void 0:n.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return BN(BN({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return v.createElement($S,{value:t?i:void 0},r)}function HN(e){var{shape:r,activeBar:n,baseProps:i,entry:a,index:o,dataKey:l}=e,s=Li(eE),c=Li(rE),u=n&&String(a.originalDataIndex)===s&&(null==c||l===c),[d,f]=t.useState(!1),[p,h]=t.useState(!1);t.useEffect(()=>{var e;return u?(f(!0),e=requestAnimationFrame(()=>{h(!0)})):h(!1),()=>{cancelAnimationFrame(e)}},[u]);var y,m=t.useCallback(()=>{u||f(!1)},[u]),g=u&&p,b=u||d;y=u?!0===n?r:n:r;var x=v.createElement(gN,LN({},i,{name:String(i.name)},a,{isActive:g,option:y,index:o,dataKey:l,onTransitionEnd:m}));return b?v.createElement(WE,{zIndex:mh.activeBar},v.createElement(TN,{index:a.originalDataIndex},x)):x}function qN(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return v.createElement(gN,LN({},r,{name:String(r.name)},n,{isActive:!1,option:t,index:i,dataKey:a}))}function YN(e){var t,{data:r,props:n}=e,i=null!==(t=Oe(n))&&void 0!==t?t:{},{id:a}=i,o=KN(i,CN),{shape:l,dataKey:s,activeBar:c}=n,{onMouseEnter:u,onClick:d,onMouseLeave:f}=n,p=KN(n,zN),h=FP(u,s,a),y=UP(f),m=WP(d,s,a);return r?v.createElement(v.Fragment,null,r.map((e,t)=>v.createElement(TN,LN({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"},Tr(p,e,t),{onMouseEnter:h(e,t),onMouseLeave:y(e,t),onClick:m(e,t)}),c?v.createElement(HN,{shape:l,activeBar:c,baseProps:o,entry:e,index:t,dataKey:s}):v.createElement(qN,{shape:l,baseProps:o,entry:e,index:t,dataKey:s})))):null}function GN(e){var{props:r,previousRectanglesRef:n}=e,{data:i,layout:a,isAnimationActive:o,animationBegin:l,animationDuration:s,animationEasing:c,onAnimationEnd:u,onAnimationStart:d}=r,f=n.current,p=df(r,"recharts-bar-"),[h,y]=t.useState(!1),m=!h,g=t.useCallback(()=>{"function"==typeof u&&u(),y(!1)},[u]),b=t.useCallback(()=>{"function"==typeof d&&d(),y(!0)},[d]);return v.createElement(WN,{showLabels:m,rects:i},v.createElement(uf,{animationId:p,begin:l,duration:s,isActive:o,easing:c,onAnimationEnd:g,onAnimationStart:b,key:p},e=>{var t=1===e?i:null==i?void 0:i.map((t,r)=>{var n=f&&f[r];if(n)return BN(BN({},t),{},{x:vr(n.x,t.x,e),y:vr(n.y,t.y,e),width:vr(n.width,t.width,e),height:vr(n.height,t.height,e)});if("horizontal"===a){var i=vr(0,t.height,e),o=vr(t.stackedBarStart,t.y,e);return BN(BN({},t),{},{y:o,height:i})}var l=vr(0,t.width,e),s=vr(t.stackedBarStart,t.x,e);return BN(BN({},t),{},{width:l,x:s})});return e>0&&(n.current=null!=t?t:null),null==t?null:v.createElement(Ne,null,v.createElement(YN,{props:r,data:t}))}),v.createElement(WS,{label:r.label}),r.children)}function XN(e){var r=t.useRef(null);return v.createElement(GN,{previousRectanglesRef:r,props:e})}var ZN=0,JN=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:vs(e,t)}};class QN extends t.PureComponent{render(){var{hide:e,data:t,dataKey:r,className:n,xAxisId:i,yAxisId:o,needClip:l,background:s,id:c}=this.props;if(e||null==t)return null;var u=a.clsx("recharts-bar",n),d=c;return v.createElement(Ne,{className:u,id:c},l&&v.createElement("defs",null,v.createElement(t_,{clipPathId:d,xAxisId:i,yAxisId:o})),v.createElement(Ne,{className:"recharts-bar-rectangles",clipPath:l?"url(#clipPath-".concat(d,")"):void 0},v.createElement(UN,{data:t,dataKey:r,background:s,allOtherBarProps:this.props}),v.createElement(XN,this.props)))}}var eM={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:ZN,xAxisId:0,yAxisId:0,zIndex:mh.bar};function tM(e){var t,{xAxisId:r,yAxisId:n,hide:i,legendType:a,minPointSize:o,activeBar:l,animationBegin:s,animationDuration:c,animationEasing:u,isAnimationActive:d}=e,{needClip:f}=e_(r,n),p=Mc(),h=Xs(),y=hP(e.children,Nj),m=Li(t=>kN(t,e.id,h,y));if("vertical"!==p&&"horizontal"!==p)return null;var g=null==m?void 0:m[0];return t=null==g||null==g.height||null==g.width?0:"vertical"===p?g.height/2:g.width/2,v.createElement(Qk,{xAxisId:r,yAxisId:n,data:m,dataPointFormatter:JN,errorBarOffset:t},v.createElement(QN,LN({},e,{layout:p,needClip:f,data:m,xAxisId:r,yAxisId:n,hide:i,legendType:a,minPointSize:o,activeBar:l,animationBegin:s,animationDuration:c,animationEasing:u,isAnimationActive:d})))}function rM(e){var r,n,i=Cr(e,eM),a=(r=i.stackId,null!=(n=t.useContext(MN))?n.stackId:null!=r?Os(r):void 0),o=Xs();return v.createElement(XP,{id:i.id,type:"bar"},e=>v.createElement(v.Fragment,null,v.createElement(qP,{legendPayload:$N(i)}),v.createElement(FN,{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}),v.createElement(oA,{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}),v.createElement(WE,{zIndex:i.zIndex},v.createElement(tM,LN({},i,{id:e})))))}var nM=v.memo(rM,Zu);nM.displayName="Bar";var iM=["option","isActive"];function aM(){return aM=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},aM.apply(null,arguments)}function oM(e){var{option:t,isActive:r}=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,iM);return"string"==typeof t?v.createElement(KP,aM({option:v.createElement(_r,aM({type:t},n)),isActive:r,shapeType:"symbols"},n)):v.createElement(KP,aM({option:t,isActive:r,shapeType:"symbols"},n))}var lM=Gi([Wb,(e,t,r,n,i)=>i],(e,t)=>e.filter(e=>"scatter"===e.type).find(e=>e.id===t)),sM=Gi([(e,t,r,n,i,a,o)=>gp(e,0,0,o),(e,t,r,n,i,a,o)=>kw(e,"xAxis",t,o),(e,t,r,n,i,a,o)=>Aw(e,"xAxis",t,o),(e,t,r,n,i,a,o)=>kw(e,"yAxis",r,o),(e,t,r,n,i,a,o)=>Aw(e,"yAxis",r,o),(e,t,r,n)=>Mw(e,"zAxis",n,!1),lM,(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=gr(r.dataKey)?a.dataKey:r.dataKey,u=gr(n.dataKey)?a.dataKey:n.dataKey,d=i&&i.dataKey,f=i?i.range:Bb.range,p=f&&f[0],h=r.scale.bandwidth?r.scale.bandwidth():0,y=n.scale.bandwidth?n.scale.bandwidth():0;return t.map((e,t)=>{var f=vs(e,c),v=vs(e,u),m=!gr(d)&&vs(e,d)||"-",g=[{name:gr(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:gr(n.dataKey)?a.name:n.name||String(n.dataKey),unit:n.unit||"",value:v,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=Es({axis:r,ticks:o,bandSize:h,entry:e,index:t,dataKey:c}),x=Es({axis:n,ticks:l,bandSize:y,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 yM(yM({},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:v,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})}),cM=["id"],uM=["onMouseEnter","onClick","onMouseLeave"],dM=["animationBegin","animationDuration","animationEasing","hide","isAnimationActive","legendType","lineJointType","lineType","shape","xAxisId","yAxisId","zAxisId"];function fM(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 pM(){return pM=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},pM.apply(null,arguments)}function hM(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 yM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hM(Object(r),!0).forEach(function(t){vM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function vM(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 mM=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Ns(r,t),payload:e}]},gM=v.memo(e=>{var{dataKey:t,points:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:l,tooltipType:s,id:c}=e,u={dataDefinedOnItem:null==r?void 0:r.map(e=>e.tooltipPayload),getPosition:e=>{var t;return null==r||null===(t=r[Number(e)])||void 0===t?void 0:t.tooltipPosition},settings:{stroke:n,strokeWidth:i,fill:a,nameKey:void 0,dataKey:t,name:Ns(o,t),hide:l,type:s,color:a,unit:"",graphicalItemId:c}};return v.createElement(HP,{tooltipEntrySettings:u})});function bM(e){var{points:t,props:r}=e,{line:n,lineType:i,lineJointType:a}=r;if(!n)return null;var o,l,s=Oe(r),c=Ee(n);if("joint"===i)o=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:u,xmax:d,a:f,b:p}=(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),h=e=>f*e+p;o=[{x:u,y:h(u)},{x:d,y:h(d)}]}var y=yM(yM(yM({},s),{},{fill:"none",stroke:s&&s.fill},c),{},{points:o});return l=v.isValidElement(n)?v.cloneElement(n,y):"function"==typeof n?n(y):v.createElement(_d,pM({},y,{type:a})),v.createElement(Ne,{className:"recharts-scatter-line",key:"recharts-scatter-line"},l)}function xM(e){var{showLabels:r,points:n,children:i}=e,a=Sc(),o=t.useMemo(()=>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 yM(yM({},n),{},{value:void 0,payload:e.payload,viewBox:n,parentViewBox:a,fill:void 0})}),[a,n]);return v.createElement($S,{value:r?o:void 0},i)}function wM(e){var t,{points:r,allOtherScatterProps:n}=e,{shape:i,activeShape:a,dataKey:o}=n,{id:l}=n,s=fM(n,cM),c=Li(eE),{onMouseEnter:u,onClick:d,onMouseLeave:f}=n,p=fM(n,uM),h=FP(u,o,l),y=UP(f),m=WP(d,o,l);if(t=r,!(Array.isArray(t)&&t.length>0))return null;var g=Oe(s);return v.createElement(v.Fragment,null,v.createElement(bM,{points:r,props:s}),r.map((e,t)=>{var r=null!=a&&!1!==a,n=r&&c===String(t),o=r&&n?a:i,s=yM(yM(yM({},g),e),{},{index:t,[Ls]:String(l)});return v.createElement(WE,{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:n?mh.activeDot:void 0},v.createElement(Ne,pM({className:"recharts-scatter-symbol"},Tr(p,e,t),{onMouseEnter:h(e,t),onMouseLeave:y(e,t),onClick:m(e,t)}),v.createElement(oM,pM({option:o,isActive:n},s))))}))}function OM(e){var{previousPointsRef:r,props:n}=e,{points:i,isAnimationActive:a,animationBegin:o,animationDuration:l,animationEasing:s}=n,c=r.current,u=df(n,"recharts-scatter-"),[d,f]=t.useState(!1),p=t.useCallback(()=>{f(!1)},[]),h=t.useCallback(()=>{f(!0)},[]),y=!d;return v.createElement(xM,{showLabels:y,points:i},n.children,v.createElement(uf,{animationId:u,begin:o,duration:l,isActive:a,easing:s,onAnimationEnd:p,onAnimationStart:h,key:u},e=>{var t=1===e?i:null==i?void 0:i.map((t,r)=>{var n=c&&c[r];return yM(yM({},t),{},n?{cx:null==t.cx?void 0:vr(n.cx,t.cx,e),cy:null==t.cy?void 0:vr(n.cy,t.cy,e),size:vr(n.size,t.size,e)}:{size:vr(0,t.size,e)})});return e>0&&(r.current=t),v.createElement(Ne,null,v.createElement(wM,{points:t,allOtherScatterProps:n,showLabels:y}))}),v.createElement(WS,{label:n.label}))}var EM=(e,t,r)=>({x:e.cx,y:e.cy,value:Number("x"===r?e.node.x:e.node.y),errorVal:vs(e,t)});function jM(e){var{hide:r,points:n,className:i,needClip:o,xAxisId:l,yAxisId:s,id:c}=e,u=t.useRef(null);if(r)return null;var d=a.clsx("recharts-scatter",i),f=c;return v.createElement(WE,{zIndex:e.zIndex},v.createElement(Ne,{className:d,clipPath:o?"url(#clipPath-".concat(f,")"):void 0,id:c},o&&v.createElement("defs",null,v.createElement(t_,{clipPathId:f,xAxisId:l,yAxisId:s})),v.createElement(Qk,{xAxisId:l,yAxisId:s,data:n,dataPointFormatter:EM,errorBarOffset:0},v.createElement(Ne,{key:"recharts-scatter-symbols"},v.createElement(OM,{props:e,previousPointsRef:u})))))}var SM={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:mh.scatter};function PM(e){var r=Cr(e,SM),{animationBegin:n,animationDuration:i,animationEasing:a,hide:o,isAnimationActive:l,legendType:s,lineJointType:c,lineType:u,shape:d,xAxisId:f,yAxisId:p,zAxisId:h}=r,y=fM(r,dM),{needClip:m}=e_(f,p),g=t.useMemo(()=>hP(e.children,Nj),[e.children]),b=Xs(),x=Li(t=>sM(t,f,p,h,e.id,g,b));return null==m||null==x?null:v.createElement(v.Fragment,null,v.createElement(gM,{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}),v.createElement(jM,pM({},y,{xAxisId:f,yAxisId:p,zAxisId:h,lineType:u,lineJointType:c,legendType:s,shape:d,hide:o,isAnimationActive:l,animationBegin:n,animationDuration:i,animationEasing:a,points:x,needClip:m})))}function AM(e){var t=Cr(e,SM),r=Xs();return v.createElement(XP,{id:t.id,type:"scatter"},e=>v.createElement(v.Fragment,null,v.createElement(qP,{legendPayload:mM(t)}),v.createElement(oA,{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:r}),v.createElement(PM,pM({},t,{id:e}))))}var kM=v.memo(AM,Zu);kM.displayName="Scatter";var _M=["domain","range"],NM=["domain","range"];function MM(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 TM(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 IM(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=MM(e,_M),{domain:a,range:o}=t,l=MM(t,NM);return!!TM(r,a)&&(!!TM(n,o)&&Zu(i,l))}var DM=["type"],CM=["dangerouslySetInnerHTML","ticks","scale"],zM=["id","scale"];function LM(){return LM=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},LM.apply(null,arguments)}function RM(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?RM(Object(r),!0).forEach(function(t){VM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function VM(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 KM(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 $M(e){var r=Ii(),n=t.useRef(null),i=Tc(),{type:a}=e,o=KM(e,DM),l=bh(i,"xAxis",a),s=t.useMemo(()=>{if(null!=l)return BM(BM({},o),{},{type:l})},[o,l]);return t.useLayoutEffect(()=>{null!=s&&(null===n.current?r(gA(s)):n.current!==s&&r(bA({prev:n.current,next:s})),n.current=s)},[s,r]),t.useLayoutEffect(()=>()=>{n.current&&(r(xA(n.current)),n.current=null)},[r]),null}var FM=e=>{var{xAxisId:t,className:r}=e,n=Li(Ys),i=Xs(),o="xAxis",l=Li(e=>Pw(e,o,t,i)),s=Li(e=>vw(e,t)),c=Li(e=>bw(e,t)),u=Li(e=>Db(e,t));if(null==s||null==c||null==u)return null;var{dangerouslySetInnerHTML:d,ticks:f,scale:p}=e,h=KM(e,CM),{id:y,scale:m}=u,g=KM(u,zM);return v.createElement(Sk,LM({},h,g,{x:c.x,y:c.y,width:s.width,height:s.height,className:a.clsx("recharts-".concat(o," ").concat(o),r),viewBox:n,ticks:l,axisType:o,axisId:t}))},UM={allowDataOverflow:Ib.allowDataOverflow,allowDecimals:Ib.allowDecimals,allowDuplicatedCategory:Ib.allowDuplicatedCategory,angle:Ib.angle,axisLine:bk.axisLine,height:Ib.height,hide:!1,includeHidden:Ib.includeHidden,interval:Ib.interval,label:!1,minTickGap:Ib.minTickGap,mirror:Ib.mirror,orientation:Ib.orientation,padding:Ib.padding,reversed:Ib.reversed,scale:Ib.scale,tick:Ib.tick,tickCount:Ib.tickCount,tickLine:bk.tickLine,tickSize:bk.tickSize,type:Ib.type,niceTicks:Ib.niceTicks,xAxisId:0},WM=e=>{var t=Cr(e,UM);return v.createElement(v.Fragment,null,v.createElement($M,{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}),v.createElement(FM,t))},HM=v.memo(WM,IM);HM.displayName="XAxis";var qM=["type"],YM=["dangerouslySetInnerHTML","ticks","scale"],GM=["id","scale"];function XM(){return XM=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},XM.apply(null,arguments)}function ZM(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 JM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ZM(Object(r),!0).forEach(function(t){QM(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZM(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function QM(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 eT(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 tT(e){var r=Ii(),n=t.useRef(null),i=Tc(),{type:a}=e,o=eT(e,qM),l=bh(i,"yAxis",a),s=t.useMemo(()=>{if(null!=l)return JM(JM({},o),{},{type:l})},[l,o]);return t.useLayoutEffect(()=>{null!=s&&(null===n.current?r(wA(s)):n.current!==s&&r(OA({prev:n.current,next:s})),n.current=s)},[s,r]),t.useLayoutEffect(()=>()=>{n.current&&(r(EA(n.current)),n.current=null)},[r]),null}function rT(e){var{yAxisId:r,className:n,width:i,label:o}=e,l=t.useRef(null),s=t.useRef(null),c=Li(Ys),u=Xs(),d=Ii(),f="yAxis",p=Li(e=>ww(e,r)),h=Li(e=>xw(e,r)),y=Li(e=>Pw(e,f,r,u)),m=Li(e=>Lb(e,r));if(t.useLayoutEffect(()=>{if("auto"===i&&p&&!NS(o)&&!t.isValidElement(o)&&null!=m){var e=l.current;if(e){var n=e.getCalculatedWidth();Math.round(p.width)!==Math.round(n)&&d(AA({id:r,width:n}))}}},[y,p,d,o,r,i,m]),null==p||null==h||null==m)return null;var{dangerouslySetInnerHTML:g,ticks:b,scale:x}=e,w=eT(e,YM),{id:O,scale:E}=m,j=eT(m,GM);return v.createElement(Sk,XM({},w,j,{ref:l,labelRef:s,x:h.x,y:h.y,tickTextProps:"auto"===i?{width:void 0}:{width:i},width:p.width,height:p.height,className:a.clsx("recharts-".concat(f," ").concat(f),n),viewBox:c,ticks:y,axisType:f,axisId:r}))}var nT={allowDataOverflow:zb.allowDataOverflow,allowDecimals:zb.allowDecimals,allowDuplicatedCategory:zb.allowDuplicatedCategory,angle:zb.angle,axisLine:bk.axisLine,hide:!1,includeHidden:zb.includeHidden,interval:zb.interval,label:!1,minTickGap:zb.minTickGap,mirror:zb.mirror,orientation:zb.orientation,padding:zb.padding,reversed:zb.reversed,scale:zb.scale,tick:zb.tick,tickCount:zb.tickCount,tickLine:bk.tickLine,tickSize:bk.tickSize,type:zb.type,niceTicks:zb.niceTicks,width:zb.width,yAxisId:0},iT=e=>{var t=Cr(e,nT);return v.createElement(v.Fragment,null,v.createElement(tT,{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}),v.createElement(rT,t))},aT=v.memo(iT,IM);aT.displayName="YAxis";var oT=Gi([(e,t)=>t,Nc,Ih,Kh,UO,GO,OE,Hs],(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=mE(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):ME(e,t,r,n,i,a,o)});function lT(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 sT=Jo("mouseClick"),cT=rs();cT.startListening({actionCreator:sT,effect:(e,t)=>{var r=e.payload,n=oT(t.getState(),lT(r));null!=(null==n?void 0:n.activeIndex)&&t.dispatch(Gw({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var uT=Jo("mouseMove"),dT=rs(),fT=null,pT=null,hT=null;function yT(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}dT.startListening({actionCreator:uT,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!==fT&&(cancelAnimationFrame(fT),fT=null),null===pT||"number"==typeof i&&o||(clearTimeout(pT),pT=null),hT=lT(r);var l=()=>{var e=t.getState(),r=zw(e,e.tooltip.settings.shared);if(!hT)return fT=null,void(pT=null);if("axis"===r){var n=oT(e,hT);null!=(null==n?void 0:n.activeIndex)?t.dispatch(Yw({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate})):t.dispatch(Hw())}fT=null,pT=null};o?"raf"===i?fT=requestAnimationFrame(l):"number"==typeof i&&null===pT&&(pT=setTimeout(l,i)):l()}});var vT={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},mT=jl({name:"rootProps",initialState:vT,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:vT.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}}}),gT=mT.reducer,{updateOptions:bT}=mT.actions,xT=jl({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:wT}=xT.actions,OT=xT.reducer,ET=Jo("keyDown"),jT=Jo("focus"),ST=Jo("blur"),PT=rs(),AT=null,kT=null,_T=null;function NT(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}})}PT.startListening({actionCreator:ET,effect:(e,t)=>{_T=e.payload,null!==AT&&(cancelAnimationFrame(AT),AT=null);var r=t.getState(),{throttleDelay:n,throttledEvents:i}=r.eventSettings,a="all"===i||i.includes("keydown");null===kT||"number"==typeof n&&a||(clearTimeout(kT),kT=null);var o=()=>{try{var e=t.getState();if(!(!1!==e.rootProps.accessibilityLayer))return;var{keyboardInteraction:r}=e.tooltip,n=_T;if("ArrowRight"!==n&&"ArrowLeft"!==n&&"Enter"!==n)return;var i=iO(r,wO(e),fx(e),VO(e)),a=null==i?-1:Number(i),o=!Number.isFinite(a)||a<0,l=GO(e),s=wO(e),c=zw(e,e.tooltip.settings.shared);if("Enter"===n){if(o)return;var u=PE(e,c,"hover",String(r.index));return void t.dispatch(Zw({active:!r.active,activeIndex:r.index,activeCoordinate:u}))}var d,f="left-to-right"===Tw(e)?1:-1,p="ArrowRight"===n?1:-1;if(o){var h=fx(e),y=VO(e),v=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!=iO(v(m),s,h,y)){d=m;break}}else for(var g=s.length-1;g>=0;g--)if(null!=iO(v(g),s,h,y)){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=PE(e,c,"hover",String(d));t.dispatch(Zw({active:!0,activeIndex:d.toString(),activeCoordinate:x}))}finally{AT=null,kT=null}};a?"raf"===n?AT=requestAnimationFrame(o):"number"==typeof n&&null===kT&&(o(),_T=null,kT=setTimeout(()=>{_T?o():(kT=null,AT=null)},n)):o()}}),PT.startListening({actionCreator:jT,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=zw(r,r.tooltip.settings.shared),a=PE(r,i,"hover",String("0"));t.dispatch(Zw({active:!0,activeIndex:"0",activeCoordinate:a}))}}}}),PT.startListening({actionCreator:ST,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;n.active&&t.dispatch(Zw({active:!1,activeIndex:n.index,activeCoordinate:n.coordinate}))}}});var MT=Jo("externalEvent"),TT=rs(),IT=new Map,DT=new Map,CT=new Map;TT.startListening({actionCreator:MT,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(null!=r){var i=n.type,a=NT(n);CT.set(i,{handler:r,reactEvent:a});var o=IT.get(i);void 0!==o&&(cancelAnimationFrame(o),IT.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=DT.get(i);void 0===f||"number"==typeof s&&d||(clearTimeout(f),DT.delete(i));var p=()=>{var e=CT.get(i);try{if(!e)return;var{handler:r,reactEvent:n}=e,a=t.getState(),o={activeCoordinate:oE(a),activeDataKey:rE(a),activeIndex:eE(a),activeLabel:tE(a),activeTooltipIndex:eE(a),isTooltipActive:lE(a)};r&&r(o,n)}finally{IT.delete(i),DT.delete(i),CT.delete(i)}};if(d)if("raf"===s){var h=requestAnimationFrame(p);IT.set(i,h)}else if("number"==typeof s){if(!DT.has(i)){p();var y=setTimeout(p,s);DT.set(i,y)}}else p();else p()}}});var zT=Gi([sO],e=>e.tooltipItemPayloads),LT=Gi([zT,(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)}}}),RT=Jo("touchMove"),BT=rs(),VT=null,KT=null,$T=null,FT=null;BT.startListening({actionCreator:RT,effect:(e,t)=>{var r=e.payload;if(null!=r.touches&&0!==r.touches.length){FT=NT(r);var n=t.getState(),{throttleDelay:i,throttledEvents:a}=n.eventSettings,o="all"===a||a.includes("touchmove");null!==VT&&(cancelAnimationFrame(VT),VT=null),null===KT||"number"==typeof i&&o||(clearTimeout(KT),KT=null),$T=Array.from(r.touches).map(e=>lT({clientX:e.clientX,clientY:e.clientY,currentTarget:r.currentTarget}));var l=()=>{if(null!=FT){var e=t.getState(),r=zw(e,e.tooltip.settings.shared);if("axis"===r){var n,i=null===(n=$T)||void 0===n?void 0:n[0];if(null==i)return VT=null,void(KT=null);var a=oT(e,i);null!=(null==a?void 0:a.activeIndex)&&t.dispatch(Yw({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if("item"===r){var o,l=FT.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(Ls))&&void 0!==o?o:void 0,d=mO(e).find(e=>e.id===u);if(null==c||null==d||null==u)return;var{dataKey:f}=d,p=LT(e,c,u);t.dispatch(Uw({activeDataKey:f,activeIndex:c,activeCoordinate:p,activeGraphicalItemId:u}))}VT=null,KT=null}};o?"raf"===i?VT=requestAnimationFrame(l):"number"==typeof i&&null===KT&&(l(),FT=null,KT=setTimeout(()=>{FT?l():(KT=null,VT=null)},i)):l()}}});var UT={throttleDelay:"raf",throttledEvents:["mousemove","touchmove","pointermove","scroll","wheel"]},WT=jl({name:"eventSettings",initialState:UT,reducers:{setEventSettings:(e,t)=>{null!=t.payload.throttleDelay&&(e.throttleDelay=t.payload.throttleDelay),null!=t.payload.throttledEvents&&(e.throttledEvents=t.payload.throttledEvents)}}}),{setEventSettings:HT}=WT.actions,qT=Ma({brush:HA,cartesianAxis:kA,chartData:yj,errorBars:Gk,eventSettings:WT.reducer,graphicalItems:iA,layout:cs,legend:Tu,options:sj,polarAxis:QS,polarOptions:OT,referenceElements:ek,renderedTicks:pk,rootProps:gT,tooltip:Jw,zIndex:UE});function YT(e){var{preloadedState:r,children:n,reduxStoreName:i}=e,a=Xs(),o=t.useRef(null);if(a)return n;null==o.current&&(o.current=function(e){return ml({reducer:qT,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([cT.middleware,dT.middleware,PT.middleware,TT.middleware,BT.middleware]),enhancers:e=>{var t=e;return"function"==typeof e&&(t=e()),t.concat(vl({type:"raf"}))},devTools:{serialize:{replacer:yT},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(r,i));var l=Mi;return v.createElement(Yu,{context:l,store:o.current},n)}function GT(e){var{layout:r,margin:n}=e,i=Ii(),a=Xs();return t.useEffect(()=>{a||(i(os(r)),i(as(n)))},[i,a,r,n]),null}var XT=t.memo(GT,Zu);function ZT(e){var r=Ii();return t.useEffect(()=>{r(bT(e))},[r,e]),null}var JT=e=>{var r=Ii();return t.useEffect(()=>{r(HT(e))},[r,e]),null},QT=t.memo(JT,Zu);function eI(e){var{zIndex:r,isPanorama:n}=e,i=t.useRef(null),a=Ii();return t.useLayoutEffect(()=>(i.current&&a($E({zIndex:r,element:i.current,isPanorama:n})),()=>{a(FE({zIndex:r,isPanorama:n}))}),[a,r,n]),v.createElement("g",{tabIndex:-1,ref:i,className:"recharts-zIndex-layer_".concat(r)})}function tI(e){var{children:t,isPanorama:r}=e,n=Li(IE);if(!n||0===n.length)return t;var i=n.filter(e=>e<0),a=n.filter(e=>e>0);return v.createElement(v.Fragment,null,i.map(e=>v.createElement(eI,{key:e,zIndex:e,isPanorama:r})),t,a.map(e=>v.createElement(eI,{key:e,zIndex:e,isPanorama:r})))}var rI=["children"];function nI(){return nI=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},nI.apply(null,arguments)}var iI={width:"100%",height:"100%",display:"block"},aI=t.forwardRef((e,t)=>{var r=kc(),n=_c(),i=md();if(!fs(r)||!fs(n))return null;var a,o,{children:l,otherAttributes:s,title:c,desc:u}=e;return null!=s&&(a="number"==typeof s.tabIndex?s.tabIndex:i?0:void 0,o="string"==typeof s.role?s.role:i?"application":void 0),v.createElement(Ae,nI({},s,{title:c,desc:u,role:o,tabIndex:a,width:r,height:n,style:iI,ref:t}),l)}),oI=e=>{var{children:t}=e,r=Li(Js);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return v.createElement(Ae,{width:n,height:i,x:o,y:a},t)},lI=t.forwardRef((e,t)=>{var{children:r}=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,rI);return Xs()?v.createElement(oI,null,v.createElement(tI,{isPanorama:!0},r)):v.createElement(aI,nI({ref:t},n),v.createElement(tI,{isPanorama:!1},r))});function sI(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 cI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sI(Object(r),!0).forEach(function(t){uI(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sI(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function uI(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 dI(){return dI=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},dI.apply(null,arguments)}var fI=()=>(wj(),null);function pI(e){if("number"==typeof e)return e;if("string"==typeof e){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var hI=t.forwardRef((e,r)=>{var n,i,a=t.useRef(null),[o,l]=t.useState({containerWidth:pI(null===(n=e.style)||void 0===n?void 0:n.width),containerHeight:pI(null===(i=e.style)||void 0===i?void 0:i.height)}),s=t.useCallback((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}})},[]),c=t.useCallback(e=>{if("function"==typeof r&&r(e),null!=a.current&&(a.current.disconnect(),a.current=null),null!=e&&"undefined"!=typeof ResizeObserver){var{width:t,height:n}=e.getBoundingClientRect();s(t,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}},[r,s]);return t.useEffect(()=>()=>{var e=a.current;null!=e&&e.disconnect()},[s]),v.createElement(v.Fragment,null,v.createElement(Dc,{width:o.containerWidth,height:o.containerHeight}),v.createElement("div",dI({ref:c},e)))}),yI=t.forwardRef((e,r)=>{var{width:n,height:i}=e,[a,o]=t.useState({containerWidth:pI(n),containerHeight:pI(i)}),l=t.useCallback((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=t.useCallback(e=>{if("function"==typeof r&&r(e),null!=e){var{width:t,height:n}=e.getBoundingClientRect();l(t,n)}},[r,l]);return v.createElement(v.Fragment,null,v.createElement(Dc,{width:a.containerWidth,height:a.containerHeight}),v.createElement("div",dI({ref:s},e)))}),vI=t.forwardRef((e,t)=>{var{width:r,height:n}=e;return v.createElement(v.Fragment,null,v.createElement(Dc,{width:r,height:n}),v.createElement("div",dI({ref:t},e)))}),mI=t.forwardRef((e,t)=>{var{width:r,height:n}=e;return"string"==typeof r||"string"==typeof n?v.createElement(yI,dI({},e,{ref:t})):"number"==typeof r&&"number"==typeof n?v.createElement(vI,dI({},e,{width:r,height:n,ref:t})):v.createElement(v.Fragment,null,v.createElement(Dc,{width:r,height:n}),v.createElement("div",dI({ref:t},e)))});var gI=t.forwardRef((e,r)=>{var{children:n,className:i,height:o,onClick:l,onContextMenu:s,onDoubleClick:c,onMouseDown:u,onMouseEnter:d,onMouseLeave:f,onMouseMove:p,onMouseUp:h,onTouchEnd:y,onTouchMove:m,onTouchStart:g,style:b,width:x,responsive:w,dispatchTouchEvents:O=!0}=e,E=t.useRef(null),j=Ii(),[S,P]=t.useState(null),[A,k]=t.useState(null),_=function(){var e=Ii(),[r,n]=t.useState(null),i=Li(Is);return t.useEffect(()=>{if(null!=r){var t=r.getBoundingClientRect().width/r.offsetWidth;ds(t)&&t!==i&&e(ss(t))}},[r,e,i]),n}(),N=wc(),M=(null==N?void 0:N.width)>0?N.width:x,T=(null==N?void 0:N.height)>0?N.height:o,I=t.useCallback(e=>{_(e),"function"==typeof r&&r(e),P(e),k(e),null!=e&&(E.current=e)},[_,r,P,k]),D=t.useCallback(e=>{j(sT(e)),j(MT({handler:l,reactEvent:e}))},[j,l]),C=t.useCallback(e=>{j(uT(e)),j(MT({handler:d,reactEvent:e}))},[j,d]),z=t.useCallback(e=>{j(Hw()),j(MT({handler:f,reactEvent:e}))},[j,f]),L=t.useCallback(e=>{j(uT(e)),j(MT({handler:p,reactEvent:e}))},[j,p]),R=t.useCallback(()=>{j(jT())},[j]),B=t.useCallback(()=>{j(ST())},[j]),V=t.useCallback(e=>{j(ET(e.key))},[j]),K=t.useCallback(e=>{j(MT({handler:s,reactEvent:e}))},[j,s]),$=t.useCallback(e=>{j(MT({handler:c,reactEvent:e}))},[j,c]),F=t.useCallback(e=>{j(MT({handler:u,reactEvent:e}))},[j,u]),U=t.useCallback(e=>{j(MT({handler:h,reactEvent:e}))},[j,h]),W=t.useCallback(e=>{j(MT({handler:g,reactEvent:e}))},[j,g]),H=t.useCallback(e=>{O&&j(RT(e)),j(MT({handler:m,reactEvent:e}))},[j,O,m]),q=t.useCallback(e=>{j(MT({handler:y,reactEvent:e}))},[j,y]),Y=function(e){return e?hI:mI}(w);return v.createElement(ej.Provider,{value:S},v.createElement(Me.Provider,{value:A},v.createElement(Y,{width:null!=M?M:null==b?void 0:b.width,height:null!=T?T:null==b?void 0:b.height,className:a.clsx("recharts-wrapper",i),style:cI({position:"relative",cursor:"default",width:M,height:T},b),onClick:D,onContextMenu:K,onDoubleClick:$,onFocus:R,onBlur:B,onKeyDown:V,onMouseDown:F,onMouseEnter:C,onMouseLeave:z,onMouseMove:L,onMouseUp:U,onTouchEnd:q,onTouchMove:H,onTouchStart:W,ref:I},v.createElement(fI,null),n)))}),bI=["width","height","responsive","children","className","style","compact","title","desc"];var xI=t.forwardRef((e,t)=>{var{width:r,height:n,responsive:i,children:a,className:o,style:l,compact: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,bI),f=Oe(d);return s?v.createElement(v.Fragment,null,v.createElement(Dc,{width:r,height:n}),v.createElement(lI,{otherAttributes:f,title:c,desc:u},a)):v.createElement(gI,{className:o,style:l,width:r,height:n,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},v.createElement(lI,{otherAttributes:f,title:c,desc:u,ref:t},v.createElement(rk,null,a)))});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)}function OI(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 EI(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 jI=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?OI(Object(r),!0).forEach(function(t){EI(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OI(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"},UT),SI=t.forwardRef(function(e,t){var r,n=Cr(e.categoricalChartProps,jI),{chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:o,tooltipPayloadSearcher:l,categoricalChartProps:s}=e,c={chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:o,tooltipPayloadSearcher:l,eventEmitter:void 0};return v.createElement(YT,{preloadedState:{options:c},reduxStoreName:null!==(r=s.id)&&void 0!==r?r:i},v.createElement($A,{chartData:s.data}),v.createElement(XT,{layout:n.layout,margin:n.margin}),v.createElement(QT,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),v.createElement(ZT,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),v.createElement(xI,wI({},n,{ref:t})))}),PI=["axis"],AI=t.forwardRef((e,t)=>v.createElement(SI,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:PI,tooltipPayloadSearcher:oj,categoricalChartProps:e,ref:t})),kI=["axis","item"],_I=t.forwardRef((e,t)=>v.createElement(SI,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:kI,tooltipPayloadSearcher:oj,categoricalChartProps:e,ref:t})),NI=["item"],MI=t.forwardRef((e,t)=>v.createElement(SI,{chartName:"ScatterChart",defaultTooltipEventType:"item",validateTooltipEventTypes:NI,tooltipPayloadSearcher:oj,categoricalChartProps:e,ref:t})),TI=["axis"],II=t.forwardRef((e,t)=>v.createElement(SI,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:TI,tooltipPayloadSearcher:oj,categoricalChartProps:e,ref:t}));exports.AppSidebar=Z,exports.ChartCard=function(t){var r=t.title,n=t.description,i=t.data,a=t.dataKey,o=t.categoryKey,l=t.color,s=void 0===l?"var(--primary)":l,c=t.className,u=t.loading,d=t.type,f=void 0===d?"area":d;return u?e.jsxs(fe,{className:b("bmj-chart-card",c),children:[e.jsxs(pe,{children:[e.jsx(N,{className:"h-6 w-40 mb-2"}),e.jsx(N,{className:"h-4 w-64"})]}),e.jsx(ve,{className:"bmj-chart-content",children:e.jsx(N,{className:"h-full w-full rounded-lg"})})]}):e.jsxs(fe,{className:b("bmj-chart-card",c),children:[e.jsxs(pe,{children:[e.jsx(he,{className:"text-lg font-semibold",children:r}),n&&e.jsx(ye,{children:n})]}),e.jsx(ve,{className:"bmj-chart-content",children:e.jsx(Ec,{width:"100%",height:"100%",children:function(){var t={data:i,margin:{top:10,right:10,left:-20,bottom:0}},n={xAxis:e.jsx(HM,{dataKey:o,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"var(--muted-foreground)"},dy:10,type:"scatter"===f?"number":"category"}),yAxis:e.jsx(aT,{dataKey:"scatter"===f?a:void 0,axisLine:!1,tickLine:!1,tick:{fontSize:12,fill:"var(--muted-foreground)"},type:"number"}),grid:e.jsx(Uk,{strokeDasharray:"3 3",vertical:!1,stroke:"var(--border)",opacity:.5}),tooltip:e.jsx(_j,{cursor:"scatter"===f?{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(f){case"bar":return e.jsxs(_I,m({},t,{children:[n.grid,n.xAxis,n.yAxis,n.tooltip,e.jsx(nM,{dataKey:a,fill:s,radius:[4,4,0,0],barSize:32})]}));case"line":return e.jsxs(AI,m({},t,{children:[n.grid,n.xAxis,n.yAxis,n.tooltip,e.jsx(I_,{type:"monotone",dataKey:a,stroke:s,strokeWidth:2,dot:{r:4,fill:s,strokeWidth:2,stroke:"var(--card)"},activeDot:{r:6,strokeWidth:0}})]}));case"scatter":return e.jsxs(MI,m({},t,{children:[n.grid,n.xAxis,n.yAxis,n.tooltip,e.jsx(kM,{name:r,data:i,fill:s,shape:"circle"})]}));default:return e.jsxs(II,m({},t,{children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"colorValue-".concat(r.replace(/\s+/g,"-")),x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:s,stopOpacity:.1}),e.jsx("stop",{offset:"95%",stopColor:s,stopOpacity:0})]})}),n.grid,n.xAxis,n.yAxis,n.tooltip,e.jsx(hN,{type:"monotone",dataKey:a,stroke:s,strokeWidth:2,fillOpacity:1,fill:"url(#colorValue-".concat(r.replace(/\s+/g,"-"),")")})]}))}}()})})]})},exports.DashboardLayout=function(t){var r=t.children,n=t.sidebarItems,i=t.onSidebarItemClick,a=t.activeSidebarItem;return e.jsxs(z,{children:[e.jsx(Z,{items:n,onItemClick:i,activeItem:a}),e.jsxs(B,{className:"flex flex-col",children:[e.jsx(de,{}),e.jsx("main",{className:"bmj-dashboard-main",children:r})]})]})},exports.StatCard=function(t){var r=t.title,n=t.value,i=t.description,a=t.trend,o=t.icon,l=t.className;return t.loading?e.jsxs(fe,{className:b("bmj-stat-card",l),children:[e.jsxs(pe,{className:"bmj-stat-card-header",children:[e.jsx(N,{className:"h-4 w-24"}),e.jsx(N,{className:"h-4 w-4 rounded-full"})]}),e.jsxs(ve,{className:"space-y-2",children:[e.jsx(N,{className:"h-8 w-32"}),e.jsx(N,{className:"h-3 w-40"})]})]}):e.jsx(f.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.4},children:e.jsxs(fe,{className:b("bmj-stat-card",l),children:[e.jsxs(pe,{className:"bmj-stat-card-header",children:[e.jsx(he,{className:"bmj-stat-card-title",children:r}),o&&e.jsx(o,{className:"bmj-stat-card-icon"})]}),e.jsxs(ve,{children:[e.jsx("div",{className:"bmj-stat-card-value",children:n}),(i||a)&&e.jsxs("div",{className:"bmj-stat-card-footer",children:[a&&e.jsxs("span",{className:b("bmj-stat-card-trend",a.isPositive?"bmj-stat-card-trend-up":"bmj-stat-card-trend-down"),children:[a.isPositive?e.jsx(u.TrendingUp,{className:"w-3 h-3 mr-1"}):e.jsx(u.TrendingDown,{className:"w-3 h-3 mr-1"}),a.value,"%"]}),i&&e.jsx("p",{className:"bmj-stat-card-description",children:i})]})]})]})})},exports.Topbar=de;
47
47
  //# sourceMappingURL=index.js.map