var Iy=Object.defineProperty;var $y=(e,t,r)=>t in e?Iy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Aa=(e,t,r)=>$y(e,typeof t!="symbol"?t+"":t,r);import{r as v,g as Lt,a as bf,R as Ny}from"./react-vendor-B7Ot_-D6.js";var xf={exports:{}},wf={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var vr=v;function Ly(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ry=typeof Object.is=="function"?Object.is:Ly,By=vr.useState,zy=vr.useEffect,Ky=vr.useLayoutEffect,Fy=vr.useDebugValue;function Wy(e,t){var r=t(),n=By({inst:{value:r,getSnapshot:t}}),i=n[0].inst,a=n[1];return Ky(function(){i.value=r,i.getSnapshot=t,ka(i)&&a({inst:i})},[e,r,t]),zy(function(){return ka(i)&&a({inst:i}),e(function(){ka(i)&&a({inst:i})})},[e]),Fy(r),r}function ka(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!Ry(e,r)}catch{return!0}}function Uy(e,t){return t()}var Hy=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Uy:Wy;wf.useSyncExternalStore=vr.useSyncExternalStore!==void 0?vr.useSyncExternalStore:Hy;xf.exports=wf;var qy=xf.exports;/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Vy={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yy=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),S=(e,t)=>{const r=v.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:a=2,absoluteStrokeWidth:o,className:u="",children:c,...s},l)=>v.createElement("svg",{ref:l,...Vy,width:i,height:i,stroke:n,strokeWidth:o?Number(a)*24/Number(i):a,className:["lucide",`lucide-${Yy(e)}`,u].join(" "),...s},[...t.map(([f,d])=>v.createElement(f,d)),...Array.isArray(c)?c:[c]]));return r.displayName=`${e}`,r};/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y_=S("Activity",[["path",{d:"M22 12h-4l-3 9L9 3l-3 9H2",key:"d5dnw9"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m_=S("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g_=S("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b_=S("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x_=S("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w_=S("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P_=S("AtSign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O_=S("Award",[["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}],["path",{d:"M15.477 12.89 17 22l-5-3-5 3 1.523-9.11",key:"em7aur"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A_=S("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k_=S("BarChartBig",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["rect",{width:"4",height:"7",x:"7",y:"10",rx:"1",key:"14u6mf"}],["rect",{width:"4",height:"12",x:"15",y:"5",rx:"1",key:"b3pek6"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S_=S("Bath",[["path",{d:"M9 6 6.5 3.5a1.5 1.5 0 0 0-1-.5C4.683 3 4 3.683 4 4.5V17a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5",key:"1r8yf5"}],["line",{x1:"10",x2:"8",y1:"5",y2:"7",key:"h5g8z4"}],["line",{x1:"2",x2:"22",y1:"12",y2:"12",key:"1dnqot"}],["line",{x1:"7",x2:"7",y1:"19",y2:"21",key:"16jp00"}],["line",{x1:"17",x2:"17",y1:"19",y2:"21",key:"1pxrnk"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E_=S("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M_=S("Brain",[["path",{d:"M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z",key:"1mhkh5"}],["path",{d:"M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z",key:"1d6s00"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C_=S("Calendar",[["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",ry:"2",key:"eu3xkr"}],["line",{x1:"16",x2:"16",y1:"2",y2:"6",key:"m3sa8f"}],["line",{x1:"8",x2:"8",y1:"2",y2:"6",key:"18kwsl"}],["line",{x1:"3",x2:"21",y1:"10",y2:"10",key:"xt86sb"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const __=S("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T_=S("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j_=S("CheckCircle",[["path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14",key:"g774vq"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D_=S("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I_=S("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $_=S("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N_=S("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L_=S("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R_=S("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B_=S("Code2",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z_=S("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K_=S("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const F_=S("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const W_=S("Crown",[["path",{d:"m2 4 3 12h14l3-12-6 7-4-7-4 7-6-7zm3 16h14",key:"zkxr6b"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U_=S("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H_=S("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q_=S("ExternalLink",[["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}],["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["line",{x1:"10",x2:"21",y1:"14",y2:"3",key:"18c3s4"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V_=S("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y_=S("FileText",[["path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z",key:"1nnpy2"}],["polyline",{points:"14 2 14 8 20 8",key:"1ew0cm"}],["line",{x1:"16",x2:"8",y1:"13",y2:"13",key:"14keom"}],["line",{x1:"16",x2:"8",y1:"17",y2:"17",key:"17nazh"}],["line",{x1:"10",x2:"8",y1:"9",y2:"9",key:"1a5vjj"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G_=S("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X_=S("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z_=S("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q_=S("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J_=S("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eT=S("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tT=S("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rT=S("HeartHandshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08v0c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"12sd6o"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nT=S("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iT=S("HelpCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aT=S("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oT=S("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uT=S("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cT=S("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lT=S("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sT=S("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fT=S("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dT=S("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hT=S("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vT=S("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pT=S("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yT=S("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mT=S("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gT=S("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bT=S("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xT=S("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wT=S("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const PT=S("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OT=S("Navigation",[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AT=S("PackageSearch",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["circle",{cx:"18.5",cy:"15.5",r:"2.5",key:"b5zd12"}],["path",{d:"M20.27 17.27 22 19",key:"1l4muz"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kT=S("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ST=S("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",key:"1xcu5"}],["circle",{cx:"17.5",cy:"10.5",r:".5",key:"736e4u"}],["circle",{cx:"8.5",cy:"7.5",r:".5",key:"clrty"}],["circle",{cx:"6.5",cy:"12.5",r:".5",key:"1s4xz9"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ET=S("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z",key:"ymcmye"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MT=S("Pen",[["path",{d:"M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z",key:"5qss01"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CT=S("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _T=S("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TT=S("Puzzle",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jT=S("Quote",[["path",{d:"M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z",key:"4rm80e"}],["path",{d:"M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z",key:"10za9r"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const DT=S("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IT=S("Rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $T=S("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const NT=S("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LT=S("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RT=S("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BT=S("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zT=S("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KT=S("Shield",[["path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10",key:"1irkt0"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FT=S("ShoppingBasket",[["path",{d:"m5 11 4-7",key:"116ra9"}],["path",{d:"m19 11-4-7",key:"cnml18"}],["path",{d:"M2 11h20",key:"3eubbj"}],["path",{d:"m3.5 11 1.6 7.4a2 2 0 0 0 2 1.6h9.8c.9 0 1.8-.7 2-1.6l1.7-7.4",key:"1x2lvw"}],["path",{d:"m9 11 1 9",key:"1ojof7"}],["path",{d:"M4.5 15.5h15",key:"13mye1"}],["path",{d:"m15 11-1 9",key:"5wnq3a"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WT=S("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UT=S("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HT=S("Sparkle",[["path",{d:"m12 3-1.9 5.8a2 2 0 0 1-1.287 1.288L3 12l5.8 1.9a2 2 0 0 1 1.288 1.287L12 21l1.9-5.8a2 2 0 0 1 1.287-1.288L21 12l-5.8-1.9a2 2 0 0 1-1.288-1.287Z",key:"nraa5p"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qT=S("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VT=S("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YT=S("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2v0a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12v0a2 2 0 0 1-2-2V7",key:"jon5kx"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GT=S("Tag",[["path",{d:"M12 2H2v10l9.29 9.29c.94.94 2.48.94 3.42 0l6.58-6.58c.94-.94.94-2.48 0-3.42L12 2Z",key:"14b2ls"}],["path",{d:"M7 7h.01",key:"7u93v4"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XT=S("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZT=S("ThumbsDown",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22h0a3.13 3.13 0 0 1-3-3.88Z",key:"s6e0r"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QT=S("ThumbsUp",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2h0a3.13 3.13 0 0 1 3 3.88Z",key:"y3tblf"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JT=S("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ej=S("Trees",[["path",{d:"M10 10v.2A3 3 0 0 1 8.9 16v0H5v0h0a3 3 0 0 1-1-5.8V10a3 3 0 0 1 6 0Z",key:"yh07w9"}],["path",{d:"M7 16v6",key:"1a82de"}],["path",{d:"M13 19v3",key:"13sx9i"}],["path",{d:"M12 19h8.3a1 1 0 0 0 .7-1.7L18 14h.3a1 1 0 0 0 .7-1.7L16 9h.2a1 1 0 0 0 .8-1.7L13 3l-1.4 1.5",key:"1sj9kv"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tj=S("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rj=S("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nj=S("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ij=S("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aj=S("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oj=S("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uj=S("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cj=S("Utensils",[["path",{d:"M3 2v7c0 1.1.9 2 2 2h4a2 2 0 0 0 2-2V2",key:"cjf0a3"}],["path",{d:"M7 2v20",key:"1473qp"}],["path",{d:"M21 15V2v0a5 5 0 0 0-5 5v6c0 1.1.9 2 2 2h3Zm0 0v7",key:"1ogz0v"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lj=S("Wand2",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",key:"1bcowg"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sj=S("Waves",[["path",{d:"M2 6c.6.5 1.2 1 2.5 1C7 7 7 5 9.5 5c2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"knzxuh"}],["path",{d:"M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"2jd2cc"}],["path",{d:"M2 18c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1",key:"rd2r6e"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fj=S("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dj=S("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hj=S("Zap",[["polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2",key:"45s27k"}]]);/**
 * @license lucide-react v0.294.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vj=S("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function Pf(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Pf(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function q(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Pf(e))&&(n&&(n+=" "),n+=t);return n}var Ai={},Of={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==="__proto__"}e.isUnsafeProperty=t})(Of);var Fo={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}e.isDeepKey=t})(Fo);var Wo={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var n;return typeof r=="string"||typeof r=="symbol"?r:Object.is((n=r==null?void 0:r.valueOf)==null?void 0:n.call(r),-0)?"-0":String(r)}e.toKey=t})(Wo);var ki={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){const n=[],i=r.length;if(i===0)return n;let a=0,o="",u="",c=!1;for(r.charCodeAt(0)===46&&(n.push(""),a++);a<i;){const s=r[a];u?s==="\\"&&a+1<i?(a++,o+=r[a]):s===u?u="":o+=s:c?s==='"'||s==="'"?u=s:s==="]"?(c=!1,n.push(o),o=""):o+=s:s==="["?(c=!0,o&&(n.push(o),o="")):s==="."?o&&(n.push(o),o=""):o+=s,a++}return o&&n.push(o),n}e.toPath=t})(ki);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Of,r=Fo,n=Wo,i=ki;function a(u,c,s){if(u==null)return s;switch(typeof c){case"string":{if(t.isUnsafeProperty(c))return s;const l=u[c];return l===void 0?r.isDeepKey(c)?a(u,i.toPath(c),s):s:l}case"number":case"symbol":{typeof c=="number"&&(c=n.toKey(c));const l=u[c];return l===void 0?s:l}default:{if(Array.isArray(c))return o(u,c,s);if(Object.is(c==null?void 0:c.valueOf(),-0)?c="-0":c=String(c),t.isUnsafeProperty(c))return s;const l=u[c];return l===void 0?s:l}}}function o(u,c,s){if(c.length===0)return s;let l=u;for(let f=0;f<c.length;f++){if(l==null||t.isUnsafeProperty(c[f]))return s;l=l[c[f]]}return l===void 0?s:l}e.get=a})(Ai);var Gy=Ai.get;const pr=Lt(Gy);var Af={exports:{}},Y={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Uo=Symbol.for("react.transitional.element"),Ho=Symbol.for("react.portal"),Si=Symbol.for("react.fragment"),Ei=Symbol.for("react.strict_mode"),Mi=Symbol.for("react.profiler"),Ci=Symbol.for("react.consumer"),_i=Symbol.for("react.context"),Ti=Symbol.for("react.forward_ref"),ji=Symbol.for("react.suspense"),Di=Symbol.for("react.suspense_list"),Ii=Symbol.for("react.memo"),$i=Symbol.for("react.lazy"),Xy=Symbol.for("react.view_transition"),Zy=Symbol.for("react.client.reference");function Je(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Uo:switch(e=e.type,e){case Si:case Mi:case Ei:case ji:case Di:case Xy:return e;default:switch(e=e&&e.$$typeof,e){case _i:case Ti:case $i:case Ii:return e;case Ci:return e;default:return t}}case Ho:return t}}}Y.ContextConsumer=Ci;Y.ContextProvider=_i;Y.Element=Uo;Y.ForwardRef=Ti;Y.Fragment=Si;Y.Lazy=$i;Y.Memo=Ii;Y.Portal=Ho;Y.Profiler=Mi;Y.StrictMode=Ei;Y.Suspense=ji;Y.SuspenseList=Di;Y.isContextConsumer=function(e){return Je(e)===Ci};Y.isContextProvider=function(e){return Je(e)===_i};Y.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Uo};Y.isForwardRef=function(e){return Je(e)===Ti};Y.isFragment=function(e){return Je(e)===Si};Y.isLazy=function(e){return Je(e)===$i};Y.isMemo=function(e){return Je(e)===Ii};Y.isPortal=function(e){return Je(e)===Ho};Y.isProfiler=function(e){return Je(e)===Mi};Y.isStrictMode=function(e){return Je(e)===Ei};Y.isSuspense=function(e){return Je(e)===ji};Y.isSuspenseList=function(e){return Je(e)===Di};Y.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Si||e===Mi||e===Ei||e===ji||e===Di||typeof e=="object"&&e!==null&&(e.$$typeof===$i||e.$$typeof===Ii||e.$$typeof===_i||e.$$typeof===Ci||e.$$typeof===Ti||e.$$typeof===Zy||e.getModuleId!==void 0)};Y.typeOf=Je;Af.exports=Y;var Qy=Af.exports,Me=e=>e===0?0:e>0?1:-1,_e=e=>typeof e=="number"&&e!=+e,qt=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,$=e=>(typeof e=="number"||e instanceof Number)&&!_e(e),ut=e=>$(e)||typeof e=="string",Jy=0,Ur=e=>{var t=++Jy;return"".concat(e||"").concat(t)},nt=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!$(t)&&typeof t!="string")return n;var a;if(qt(t)){if(r==null)return n;var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return _e(a)&&(a=n),i&&r!=null&&a>r&&(a=r),a},kf=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[e[n]])r[e[n]]=!0;else return!0;return!1};function ie(e,t,r){return $(e)&&$(t)?e+r*(t-e):t}function Sf(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):pr(n,t))===r)}var re=e=>e===null||typeof e>"u",rn=e=>re(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),em=["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 qo(e){if(typeof e!="string")return!1;var t=em;return t.includes(e)}var tm=["viewBox","children"],Tc=["points","pathLength"],Sa={svg:tm,polygon:Tc,polyline:Tc},Vo=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(v.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(i=>{qo(i)&&(n[i]=(a=>r[i](r,a)))}),n},rm=(e,t,r)=>n=>(e(t,r,n),null),Ni=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];qo(i)&&typeof a=="function"&&(n||(n={}),n[i]=rm(a,t,r))}),n},nm=["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 Ef(e){if(typeof e!="string")return!1;var t=nm;return t.includes(e)}function wt(e){var t=Object.entries(e).filter(r=>{var[n]=r;return Ef(n)});return Object.fromEntries(t)}var jc=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",Dc=null,Ea=null,Mf=e=>{if(e===Dc&&Array.isArray(Ea))return Ea;var t=[];return v.Children.forEach(e,r=>{re(r)||(Qy.isFragment(r)?t=t.concat(Mf(r.props.children)):t.push(r))}),Ea=t,Dc=e,t};function im(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(i=>jc(i)):n=[jc(t)],Mf(e).forEach(i=>{var a=pr(i,"type.displayName")||pr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}var Cf=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,am=(e,t,r,n)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var a=(i=n&&(Sa==null?void 0:Sa[n]))!==null&&i!==void 0?i:[],o=t.startsWith("data-"),u=typeof e!="function"&&(!!n&&a.includes(t)||Ef(t)),c=!!r&&qo(t);return o||u||c},oe=(e,t,r)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(v.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var i={};return Object.keys(n).forEach(a=>{var o;am((o=n)===null||o===void 0?void 0:o[a],a,t,r)&&(i[a]=n[a])}),i},om=["children","width","height","viewBox","className","style","title","desc"];function Xa(){return Xa=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},Xa.apply(null,arguments)}function um(e,t){if(e==null)return{};var r,n,i=cm(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function cm(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Yo=v.forwardRef((e,t)=>{var{children:r,width:n,height:i,viewBox:a,className:o,style:u,title:c,desc:s}=e,l=um(e,om),f=a||{width:n,height:i,x:0,y:0},d=q("recharts-surface",o);return v.createElement("svg",Xa({},oe(l,!0,"svg"),{className:d,width:n,height:i,style:u,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),v.createElement("title",null,c),v.createElement("desc",null,s),r)}),lm=["children","className"];function Za(){return Za=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},Za.apply(null,arguments)}function sm(e,t){if(e==null)return{};var r,n,i=fm(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function fm(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Te=v.forwardRef((e,t)=>{var{children:r,className:n}=e,i=sm(e,lm),a=q("recharts-layer",n);return v.createElement("g",Za({className:a},oe(i,!0),{ref:t}),r)}),_f=v.createContext(null),dm=()=>v.useContext(_f);function Z(e){return function(){return e}}const Tf=Math.cos,Rn=Math.sin,it=Math.sqrt,Bn=Math.PI,Li=2*Bn,Qa=Math.PI,Ja=2*Qa,Wt=1e-6,hm=Ja-Wt;function jf(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function vm(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return jf;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class pm{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?jf:vm(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,c=n-t,s=i-r,l=o-t,f=u-r,d=l*l+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Wt)if(!(Math.abs(f*c-s*l)>Wt)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,p=i-u,m=c*c+s*s,y=h*h+p*p,g=Math.sqrt(m),b=Math.sqrt(d),x=a*Math.tan((Qa-Math.acos((m+d-y)/(2*g*b)))/2),w=x/b,P=x/g;Math.abs(w-1)>Wt&&this._append`L${t+w*l},${r+w*f}`,this._append`A${a},${a},0,0,${+(f*h>l*p)},${this._x1=t+P*c},${this._y1=r+P*s}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),c=n*Math.sin(i),s=t+u,l=r+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${s},${l}`:(Math.abs(this._x1-s)>Wt||Math.abs(this._y1-l)>Wt)&&this._append`L${s},${l}`,n&&(d<0&&(d=d%Ja+Ja),d>hm?this._append`A${n},${n},0,1,${f},${t-u},${r-c}A${n},${n},0,1,${f},${this._x1=s},${this._y1=l}`:d>Wt&&this._append`A${n},${n},0,${+(d>=Qa)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Go(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new pm(t)}function Xo(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Df(e){this._context=e}Df.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&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);break}}};function Ri(e){return new Df(e)}function If(e){return e[0]}function $f(e){return e[1]}function Nf(e,t){var r=Z(!0),n=null,i=Ri,a=null,o=Go(u);e=typeof e=="function"?e:e===void 0?If:Z(e),t=typeof t=="function"?t:t===void 0?$f:Z(t);function u(c){var s,l=(c=Xo(c)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),s=0;s<=l;++s)!(s<l&&r(f=c[s],s,c))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,s,c),+t(f,s,c));if(h)return a=null,h+""||null}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Z(+c),u):e},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Z(+c),u):t},u.defined=function(c){return arguments.length?(r=typeof c=="function"?c:Z(!!c),u):r},u.curve=function(c){return arguments.length?(i=c,n!=null&&(a=i(n)),u):i},u.context=function(c){return arguments.length?(c==null?n=a=null:a=i(n=c),u):n},u}function bn(e,t,r){var n=null,i=Z(!0),a=null,o=Ri,u=null,c=Go(s);e=typeof e=="function"?e:e===void 0?If:Z(+e),t=typeof t=="function"?t:Z(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?$f:Z(+r);function s(f){var d,h,p,m=(f=Xo(f)).length,y,g=!1,b,x=new Array(m),w=new Array(m);for(a==null&&(u=o(b=c())),d=0;d<=m;++d){if(!(d<m&&i(y=f[d],d,f))===g)if(g=!g)h=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=d-1;p>=h;--p)u.point(x[p],w[p]);u.lineEnd(),u.areaEnd()}g&&(x[d]=+e(y,d,f),w[d]=+t(y,d,f),u.point(n?+n(y,d,f):x[d],r?+r(y,d,f):w[d]))}if(b)return u=null,b+""||null}function l(){return Nf().defined(i).curve(o).context(a)}return s.x=function(f){return arguments.length?(e=typeof f=="function"?f:Z(+f),n=null,s):e},s.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Z(+f),s):e},s.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Z(+f),s):n},s.y=function(f){return arguments.length?(t=typeof f=="function"?f:Z(+f),r=null,s):t},s.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Z(+f),s):t},s.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Z(+f),s):r},s.lineX0=s.lineY0=function(){return l().x(e).y(t)},s.lineY1=function(){return l().x(e).y(r)},s.lineX1=function(){return l().x(n).y(t)},s.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Z(!!f),s):i},s.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),s):o},s.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),s):a},s}class Lf{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function ym(e){return new Lf(e,!0)}function mm(e){return new Lf(e,!1)}const Zo={draw(e,t){const r=it(t/Bn);e.moveTo(r,0),e.arc(0,0,r,0,Li)}},gm={draw(e,t){const r=it(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()}},Rf=it(1/3),bm=Rf*2,xm={draw(e,t){const r=it(t/bm),n=r*Rf;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},wm={draw(e,t){const r=it(t),n=-r/2;e.rect(n,n,r,r)}},Pm=.8908130915292852,Bf=Rn(Bn/10)/Rn(7*Bn/10),Om=Rn(Li/10)*Bf,Am=-Tf(Li/10)*Bf,km={draw(e,t){const r=it(t*Pm),n=Om*r,i=Am*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Li*a/5,u=Tf(o),c=Rn(o);e.lineTo(c*r,-u*r),e.lineTo(u*n-c*i,c*n+u*i)}e.closePath()}},Ma=it(3),Sm={draw(e,t){const r=-it(t/(Ma*3));e.moveTo(0,r*2),e.lineTo(-Ma*r,-r),e.lineTo(Ma*r,-r),e.closePath()}},He=-.5,qe=it(3)/2,eo=1/it(12),Em=(eo/2+1)*3,Mm={draw(e,t){const r=it(t/Em),n=r/2,i=r*eo,a=n,o=r*eo+r,u=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,c),e.lineTo(He*n-qe*i,qe*n+He*i),e.lineTo(He*a-qe*o,qe*a+He*o),e.lineTo(He*u-qe*c,qe*u+He*c),e.lineTo(He*n+qe*i,He*i-qe*n),e.lineTo(He*a+qe*o,He*o-qe*a),e.lineTo(He*u+qe*c,He*c-qe*u),e.closePath()}};function Cm(e,t){let r=null,n=Go(i);e=typeof e=="function"?e:Z(e||Zo),t=typeof t=="function"?t:Z(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Z(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Z(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function zn(){}function Kn(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 zf(e){this._context=e}zf.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:Kn(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&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:Kn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _m(e){return new zf(e)}function Kf(e){this._context=e}Kf.prototype={areaStart:zn,areaEnd:zn,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);break}}},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:Kn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Tm(e){return new Kf(e)}function Ff(e){this._context=e}Ff.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||this._line!==0&&this._point===3)&&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:Kn(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jm(e){return new Ff(e)}function Wf(e){this._context=e}Wf.prototype={areaStart:zn,areaEnd:zn,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))}};function Dm(e){return new Wf(e)}function Ic(e){return e<0?-1:1}function $c(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),u=(a*i+o*n)/(n+i);return(Ic(a)+Ic(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Nc(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Ca(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function Fn(e){this._context=e}Fn.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:Ca(this,this._t0,Nc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(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,Ca(this,Nc(this,r=$c(this,e,t)),r);break;default:Ca(this,this._t0,r=$c(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Uf(e){this._context=new Hf(e)}(Uf.prototype=Object.create(Fn.prototype)).point=function(e,t){Fn.prototype.point.call(this,t,e)};function Hf(e){this._context=e}Hf.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)}};function Im(e){return new Fn(e)}function $m(e){return new Uf(e)}function qf(e){this._context=e}qf.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]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Lc(e),i=Lc(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||this._line!==0&&r===1)&&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)}};function Lc(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Nm(e){return new qf(e)}function Bi(e,t){this._context=e,this._t=t}Bi.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&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&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)}break}}this._x=e,this._y=t}};function Lm(e){return new Bi(e,.5)}function Rm(e){return new Bi(e,0)}function Bm(e){return new Bi(e,1)}function yr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function to(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function zm(e,t){return e[t]}function Km(e){const t=[];return t.key=e,t}function Fm(){var e=Z([]),t=to,r=yr,n=zm;function i(a){var o=Array.from(e.apply(this,arguments),Km),u,c=o.length,s=-1,l;for(const f of a)for(u=0,++s;u<c;++u)(o[u][s]=[0,+n(f,o[u].key,s,a)]).data=f;for(u=0,l=Xo(t(o));u<c;++u)o[l[u]].index=u;return r(o,l),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Z(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Z(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?to:typeof a=="function"?a:Z(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??yr,i):r},i}function Wm(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}yr(e,t)}}function Um(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}yr(e,t)}}function Hm(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,c=0,s=0;u<o;++u){for(var l=e[t[u]],f=l[n][1]||0,d=l[n-1][1]||0,h=(f-d)/2,p=0;p<u;++p){var m=e[t[p]],y=m[n][1]||0,g=m[n-1][1]||0;h+=y-g}c+=f,s+=h*f}i[n-1][1]+=i[n-1][0]=r,c&&(r-=s/c)}i[n-1][1]+=i[n-1][0]=r,yr(e,t)}}var qm=["type","size","sizeType"];function ro(){return ro=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},ro.apply(null,arguments)}function Rc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rc(Object(r),!0).forEach(function(n){Vm(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Vm(e,t,r){return(t=Ym(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ym(e){var t=Gm(e,"string");return typeof t=="symbol"?t:t+""}function Gm(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xm(e,t){if(e==null)return{};var r,n,i=Zm(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Zm(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Vf={symbolCircle:Zo,symbolCross:gm,symbolDiamond:xm,symbolSquare:wm,symbolStar:km,symbolTriangle:Sm,symbolWye:Mm},Qm=Math.PI/180,Jm=e=>{var t="symbol".concat(rn(e));return Vf[t]||Zo},e0=(e,t,r)=>{if(t==="area")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*Qm;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*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}},t0=(e,t)=>{Vf["symbol".concat(rn(e))]=t},Qo=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,i=Xm(e,qm),a=Bc(Bc({},i),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var u=()=>{var d=Jm(o),h=Cm().type(d).size(e0(r,n,o));return h()},{className:c,cx:s,cy:l}=a,f=oe(a,!0);return s===+s&&l===+l&&r===+r?v.createElement("path",ro({},f,{className:q("recharts-symbols",c),transform:"translate(".concat(s,", ").concat(l,")"),d:u()})):null};Qo.registerSymbol=t0;function no(){return no=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},no.apply(null,arguments)}function zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function r0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zc(Object(r),!0).forEach(function(n){Jo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Jo(e,t,r){return(t=n0(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n0(e){var t=i0(e,"string");return typeof t=="symbol"?t:t+""}function i0(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ve=32;class eu extends v.PureComponent{renderIcon(t,r){var{inactiveColor:n}=this.props,i=Ve/2,a=Ve/6,o=Ve/3,u=t.inactive?n:t.color,c=r??t.type;if(c==="none")return null;if(c==="plainline")return v.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:t.payload.strokeDasharray,x1:0,y1:i,x2:Ve,y2:i,className:"recharts-legend-icon"});if(c==="line")return v.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(i,"h").concat(o,`
            A`).concat(a,",").concat(a,",0,1,1,").concat(2*o,",").concat(i,`
            H`).concat(Ve,"M").concat(2*o,",").concat(i,`
            A`).concat(a,",").concat(a,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(c==="rect")return v.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(Ve/8,"h").concat(Ve,"v").concat(Ve*3/4,"h").concat(-Ve,"z"),className:"recharts-legend-icon"});if(v.isValidElement(t.legendIcon)){var s=r0({},t);return delete s.legendIcon,v.cloneElement(t.legendIcon,s)}return v.createElement(Qo,{fill:u,cx:i,cy:i,size:Ve,sizeType:"diameter",type:c})}renderItems(){var{payload:t,iconSize:r,layout:n,formatter:i,inactiveColor:a,iconType:o}=this.props,u={x:0,y:0,width:Ve,height:Ve},c={display:n==="horizontal"?"inline-block":"block",marginRight:10},s={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((l,f)=>{var d=l.formatter||i,h=q({"recharts-legend-item":!0,["legend-item-".concat(f)]:!0,inactive:l.inactive});if(l.type==="none")return null;var p=l.inactive?a:l.color,m=d?d(l.value,l,f):l.value;return v.createElement("li",no({className:h,style:c,key:"legend-item-".concat(f)},Ni(this.props,l,f)),v.createElement(Yo,{width:r,height:r,viewBox:u,style:s,"aria-label":"".concat(m," legend icon")},this.renderIcon(l,o)),v.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},m))})}render(){var{payload:t,layout:r,align:n}=this.props;if(!t||!t.length)return null;var i={padding:0,margin:0,textAlign:r==="horizontal"?n:"left"};return v.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}Jo(eu,"displayName","Legend");Jo(eu,"defaultProps",{align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"});var Yf={},Gf={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const i=new Map;for(let a=0;a<r.length;a++){const o=r[a],u=n(o);i.has(u)||i.set(u,o)}return Array.from(i.values())}e.uniqBy=t})(Gf);var tu={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r}e.identity=t})(tu);var Xf={},zi={},Zf={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Number.isSafeInteger(r)&&r>=0}e.isLength=t})(Zf);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Zf;function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(zi);var Qf={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(Qf);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zi,r=Qf;function n(i){return r.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=n})(Xf);var Jf={},ed={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Ai;function r(n){return function(i){return t.get(i,n)}}e.property=r})(ed);var td={},_a={},Ta={},ru={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(ru);var nu={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(nu);var iu={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.eq=t})(iu);var Kc;function a0(){return Kc||(Kc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=au(),r=ru,n=nu,i=iu;function a(f,d,h){return typeof h!="function"?t.isMatch(f,d):o(f,d,function p(m,y,g,b,x,w){const P=h(m,y,g,b,x,w);return P!==void 0?!!P:o(m,y,p,w)},new Map)}function o(f,d,h,p){if(d===f)return!0;switch(typeof d){case"object":return u(f,d,h,p);case"function":return Object.keys(d).length>0?o(f,{...d},h,p):i.eq(f,d);default:return r.isObject(f)?typeof d=="string"?d==="":!0:i.eq(f,d)}}function u(f,d,h,p){if(d==null)return!0;if(Array.isArray(d))return s(f,d,h,p);if(d instanceof Map)return c(f,d,h,p);if(d instanceof Set)return l(f,d,h,p);const m=Object.keys(d);if(f==null)return m.length===0;if(m.length===0)return!0;if(p&&p.has(d))return p.get(d)===f;p&&p.set(d,f);try{for(let y=0;y<m.length;y++){const g=m[y];if(!n.isPrimitive(f)&&!(g in f)||d[g]===void 0&&f[g]!==void 0||d[g]===null&&f[g]!==null||!h(f[g],d[g],g,f,d,p))return!1}return!0}finally{p&&p.delete(d)}}function c(f,d,h,p){if(d.size===0)return!0;if(!(f instanceof Map))return!1;for(const[m,y]of d.entries()){const g=f.get(m);if(h(g,y,m,f,d,p)===!1)return!1}return!0}function s(f,d,h,p){if(d.length===0)return!0;if(!Array.isArray(f))return!1;const m=new Set;for(let y=0;y<d.length;y++){const g=d[y];let b=!1;for(let x=0;x<f.length;x++){if(m.has(x))continue;const w=f[x];let P=!1;if(h(w,g,y,f,d,p)&&(P=!0),P){m.add(x),b=!0;break}}if(!b)return!1}return!0}function l(f,d,h,p){return d.size===0?!0:f instanceof Set?s([...f],[...d],h,p):!1}e.isMatchWith=a,e.isSetMatch=l})(Ta)),Ta}var Fc;function au(){return Fc||(Fc=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=a0();function r(n,i){return t.isMatchWith(n,i,()=>{})}e.isMatch=r})(_a)),_a}var rd={},ou={},nd={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(nd);var uu={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(uu);var cu={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",i="[object Boolean]",a="[object Arguments]",o="[object Symbol]",u="[object Date]",c="[object Map]",s="[object Set]",l="[object Array]",f="[object Function]",d="[object ArrayBuffer]",h="[object Object]",p="[object Error]",m="[object DataView]",y="[object Uint8Array]",g="[object Uint8ClampedArray]",b="[object Uint16Array]",x="[object Uint32Array]",w="[object BigUint64Array]",P="[object Int8Array]",O="[object Int16Array]",k="[object Int32Array]",M="[object BigInt64Array]",_="[object Float32Array]",I="[object Float64Array]";e.argumentsTag=a,e.arrayBufferTag=d,e.arrayTag=l,e.bigInt64ArrayTag=M,e.bigUint64ArrayTag=w,e.booleanTag=i,e.dataViewTag=m,e.dateTag=u,e.errorTag=p,e.float32ArrayTag=_,e.float64ArrayTag=I,e.functionTag=f,e.int16ArrayTag=O,e.int32ArrayTag=k,e.int8ArrayTag=P,e.mapTag=c,e.numberTag=n,e.objectTag=h,e.regexpTag=t,e.setTag=s,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=b,e.uint32ArrayTag=x,e.uint8ArrayTag=y,e.uint8ClampedArrayTag=g})(cu);var id={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(id);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nd,r=uu,n=cu,i=nu,a=id;function o(l,f){return u(l,void 0,l,new Map,f)}function u(l,f,d,h=new Map,p=void 0){const m=p==null?void 0:p(l,f,d,h);if(m!==void 0)return m;if(i.isPrimitive(l))return l;if(h.has(l))return h.get(l);if(Array.isArray(l)){const y=new Array(l.length);h.set(l,y);for(let g=0;g<l.length;g++)y[g]=u(l[g],g,d,h,p);return Object.hasOwn(l,"index")&&(y.index=l.index),Object.hasOwn(l,"input")&&(y.input=l.input),y}if(l instanceof Date)return new Date(l.getTime());if(l instanceof RegExp){const y=new RegExp(l.source,l.flags);return y.lastIndex=l.lastIndex,y}if(l instanceof Map){const y=new Map;h.set(l,y);for(const[g,b]of l)y.set(g,u(b,g,d,h,p));return y}if(l instanceof Set){const y=new Set;h.set(l,y);for(const g of l)y.add(u(g,void 0,d,h,p));return y}if(typeof Buffer<"u"&&Buffer.isBuffer(l))return l.subarray();if(a.isTypedArray(l)){const y=new(Object.getPrototypeOf(l)).constructor(l.length);h.set(l,y);for(let g=0;g<l.length;g++)y[g]=u(l[g],g,d,h,p);return y}if(l instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&l instanceof SharedArrayBuffer)return l.slice(0);if(l instanceof DataView){const y=new DataView(l.buffer.slice(0),l.byteOffset,l.byteLength);return h.set(l,y),c(y,l,d,h,p),y}if(typeof File<"u"&&l instanceof File){const y=new File([l],l.name,{type:l.type});return h.set(l,y),c(y,l,d,h,p),y}if(l instanceof Blob){const y=new Blob([l],{type:l.type});return h.set(l,y),c(y,l,d,h,p),y}if(l instanceof Error){const y=new l.constructor;return h.set(l,y),y.message=l.message,y.name=l.name,y.stack=l.stack,y.cause=l.cause,c(y,l,d,h,p),y}if(typeof l=="object"&&s(l)){const y=Object.create(Object.getPrototypeOf(l));return h.set(l,y),c(y,l,d,h,p),y}return l}function c(l,f,d=l,h,p){const m=[...Object.keys(f),...t.getSymbols(f)];for(let y=0;y<m.length;y++){const g=m[y],b=Object.getOwnPropertyDescriptor(l,g);(b==null||b.writable)&&(l[g]=u(f[g],g,d,h,p))}}function s(l){switch(r.getTag(l)){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.cloneDeepWith=o,e.cloneDeepWithImpl=u,e.copyProperties=c})(ou);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ou;function r(n){return t.cloneDeepWithImpl(n,void 0,n,new Map,void 0)}e.cloneDeep=r})(rd);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=au(),r=rd;function n(i){return i=r.cloneDeep(i),a=>t.isMatch(a,i)}e.matches=n})(td);var ad={},od={},ud={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ou,r=cu;function n(i,a){return t.cloneDeepWith(i,(o,u,c,s)=>{const l=a==null?void 0:a(o,u,c,s);if(l!==void 0)return l;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case r.numberTag:case r.stringTag:case r.booleanTag:{const f=new i.constructor(i==null?void 0:i.valueOf());return t.copyProperties(f,i),f}case r.argumentsTag:{const f={};return t.copyProperties(f,i),f.length=i.length,f[Symbol.iterator]=i[Symbol.iterator],f}default:return}})}e.cloneDeepWith=n})(ud);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ud;function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(od);var cd={},lu={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,i=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n<i;case"symbol":return!1;case"string":return t.test(n)}}e.isIndex=r})(lu);var ld={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uu;function r(n){return n!==null&&typeof n=="object"&&t.getTag(n)==="[object Arguments]"}e.isArguments=r})(ld);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fo,r=lu,n=ld,i=ki;function a(o,u){let c;if(Array.isArray(u)?c=u:typeof u=="string"&&t.isDeepKey(u)&&(o==null?void 0:o[u])==null?c=i.toPath(u):c=[u],c.length===0)return!1;let s=o;for(let l=0;l<c.length;l++){const f=c[l];if((s==null||!Object.hasOwn(s,f))&&!((Array.isArray(s)||n.isArguments(s))&&r.isIndex(f)&&f<s.length))return!1;s=s[f]}return!0}e.has=a})(cd);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=au(),r=Wo,n=od,i=Ai,a=cd;function o(u,c){switch(typeof u){case"object":{Object.is(u==null?void 0:u.valueOf(),-0)&&(u="-0");break}case"number":{u=r.toKey(u);break}}return c=n.cloneDeep(c),function(s){const l=i.get(s,u);return l===void 0?a.has(s,u):c===void 0?l===void 0:t.isMatch(l,c)}}e.matchesProperty=o})(ad);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tu,r=ed,n=td,i=ad;function a(o){if(o==null)return t.identity;switch(typeof o){case"function":return o;case"object":return Array.isArray(o)&&o.length===2?i.matchesProperty(o[0],o[1]):n.matches(o);case"string":case"symbol":case"number":return r.property(o)}}e.iteratee=a})(Jf);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Gf,r=tu,n=Xf,i=Jf;function a(o,u=r.identity){return n.isArrayLikeObject(o)?t.uniqBy(Array.from(o),i.iteratee(u)):[]}e.uniqBy=a})(Yf);var o0=Yf.uniqBy;const Wc=Lt(o0);function sd(e,t,r){return t===!0?Wc(e,r):typeof t=="function"?Wc(e,t):e}var fd={exports:{}},dd={};/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ki=v,u0=qy;function c0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var l0=typeof Object.is=="function"?Object.is:c0,s0=u0.useSyncExternalStore,f0=Ki.useRef,d0=Ki.useEffect,h0=Ki.useMemo,v0=Ki.useDebugValue;dd.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=f0(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=h0(function(){function c(h){if(!s){if(s=!0,l=h,h=n(h),i!==void 0&&o.hasValue){var p=o.value;if(i(p,h))return f=p}return f=h}if(p=f,l0(l,h))return p;var m=n(h);return i!==void 0&&i(p,m)?(l=h,p):(l=h,f=m)}var s=!1,l,f,d=r===void 0?null:r;return[function(){return c(t())},d===null?void 0:function(){return c(d())}]},[t,r,n,i]);var u=s0(e,a[0],a[1]);return d0(function(){o.hasValue=!0,o.value=u},[u]),v0(u),u};fd.exports=dd;var p0=fd.exports,su=v.createContext(null),y0=e=>e,ue=()=>{var e=v.useContext(su);return e?e.store.dispatch:y0},$n=()=>{},m0=()=>$n,g0=(e,t)=>e===t;function N(e){var t=v.useContext(su);return p0.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:m0,t?t.store.getState:$n,t?t.store.getState:$n,t?e:$n,g0)}function b0(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function x0(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function w0(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Uc=e=>Array.isArray(e)?e:[e];function P0(e){const t=Array.isArray(e[0])?e[0]:e;return w0(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function O0(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var A0=class{constructor(e){this.value=e}deref(){return this.value}},k0=typeof WeakRef<"u"?WeakRef:A0,S0=0,Hc=1;function xn(){return{s:S0,v:void 0,o:null,p:null}}function hd(e,t={}){let r=xn();const{resultEqualityCheck:n}=t;let i,a=0;function o(){var f;let u=r;const{length:c}=arguments;for(let d=0,h=c;d<h;d++){const p=arguments[d];if(typeof p=="function"||typeof p=="object"&&p!==null){let m=u.o;m===null&&(u.o=m=new WeakMap);const y=m.get(p);y===void 0?(u=xn(),m.set(p,u)):u=y}else{let m=u.p;m===null&&(u.p=m=new Map);const y=m.get(p);y===void 0?(u=xn(),m.set(p,u)):u=y}}const s=u;let l;if(u.s===Hc)l=u.v;else if(l=e.apply(null,arguments),a++,n){const d=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;d!=null&&n(d,l)&&(l=d,a!==0&&a--),i=typeof l=="object"&&l!==null||typeof l=="function"?new k0(l):l}return s.s=Hc,s.v=l,l}return o.clearCache=()=>{r=xn(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function E0(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,u,c={},s=i.pop();typeof s=="object"&&(c=s,s=i.pop()),b0(s,`createSelector expects an output function after the inputs, but received: [${typeof s}]`);const l={...r,...c},{memoize:f,memoizeOptions:d=[],argsMemoize:h=hd,argsMemoizeOptions:p=[]}=l,m=Uc(d),y=Uc(p),g=P0(i),b=f(function(){return a++,s.apply(null,arguments)},...m),x=h(function(){o++;const P=O0(g,arguments);return u=b.apply(null,P),u},...y);return Object.assign(x,{resultFunc:s,memoizedResultFunc:b,dependencies:g,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>u,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var A=E0(hd),M0=Object.assign((e,t=A)=>{x0(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),n=r.map(a=>e[a]);return t(n,(...a)=>a.reduce((o,u,c)=>(o[r[c]]=u,o),{}))},{withTypes:()=>M0}),vd={},pd={},yd={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,i,a)=>{if(n!==i){const o=t(n),u=t(i);if(o===u&&o===0){if(n<i)return a==="desc"?1:-1;if(n>i)return a==="desc"?-1:1}return a==="desc"?u-o:o-u}return 0};e.compareValues=r})(yd);var md={},fu={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(fu);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fu,r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){return Array.isArray(a)?!1:typeof a=="number"||typeof a=="boolean"||a==null||t.isSymbol(a)?!0:typeof a=="string"&&(n.test(a)||!r.test(a))||o!=null&&Object.hasOwn(o,a)}e.isKey=i})(md);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yd,r=md,n=ki;function i(a,o,u,c){if(a==null)return[];u=c?void 0:u,Array.isArray(a)||(a=Object.values(a)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(h=>String(h));const s=(h,p)=>{let m=h;for(let y=0;y<p.length&&m!=null;++y)m=m[p[y]];return m},l=(h,p)=>p==null||h==null?p:typeof h=="object"&&"key"in h?Object.hasOwn(p,h.key)?p[h.key]:s(p,h.path):typeof h=="function"?h(p):Array.isArray(h)?s(p,h):typeof p=="object"?p[h]:p,f=o.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||r.isKey(h)?h:{key:h,path:n.toPath(h)}));return a.map(h=>({original:h,criteria:f.map(p=>l(p,h))})).slice().sort((h,p)=>{for(let m=0;m<f.length;m++){const y=t.compareValues(h.criteria[m],p.criteria[m],u[m]);if(y!==0)return y}return 0}).map(h=>h.original)}e.orderBy=i})(pd);var gd={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const i=[],a=Math.floor(n),o=(u,c)=>{for(let s=0;s<u.length;s++){const l=u[s];Array.isArray(l)&&c<a?o(l,c+1):i.push(l)}};return o(r,0),i}e.flatten=t})(gd);var du={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lu,r=zi,n=ru,i=iu;function a(o,u,c){return n.isObject(c)&&(typeof u=="number"&&r.isArrayLike(c)&&t.isIndex(u)&&u<c.length||typeof u=="string"&&u in c)?i.eq(c[u],o):!1}e.isIterateeCall=a})(du);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pd,r=gd,n=du;function i(a,...o){const u=o.length;return u>1&&n.isIterateeCall(a,o[0],o[1])?o=[]:u>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(a,r.flatten(o),["asc"])}e.sortBy=i})(vd);var C0=vd.sortBy;const Fi=Lt(C0);var bd=e=>e.legend.settings,_0=e=>e.legend.size,T0=e=>e.legend.payload,j0=A([T0,bd],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Fi(n,r):n});function D0(){return N(j0)}var wn=1;function xd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=v.useState({height:0,left:0,top:0,width:0}),n=v.useCallback(i=>{if(i!=null){var a=i.getBoundingClientRect(),o={height:a.height,left:a.left,top:a.top,width:a.width};(Math.abs(o.height-t.height)>wn||Math.abs(o.left-t.left)>wn||Math.abs(o.top-t.top)>wn||Math.abs(o.width-t.width)>wn)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function ge(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 I0=typeof Symbol=="function"&&Symbol.observable||"@@observable",qc=I0,ja=()=>Math.random().toString(36).substring(7).split("").join("."),$0={INIT:`@@redux/INIT${ja()}`,REPLACE:`@@redux/REPLACE${ja()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ja()}`},Wn=$0;function hu(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function wd(e,t,r){if(typeof e!="function")throw new Error(ge(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ge(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ge(1));return r(wd)(e,t)}let n=e,i=t,a=new Map,o=a,u=0,c=!1;function s(){o===a&&(o=new Map,a.forEach((y,g)=>{o.set(g,y)}))}function l(){if(c)throw new Error(ge(3));return i}function f(y){if(typeof y!="function")throw new Error(ge(4));if(c)throw new Error(ge(5));let g=!0;s();const b=u++;return o.set(b,y),function(){if(g){if(c)throw new Error(ge(6));g=!1,s(),o.delete(b),a=null}}}function d(y){if(!hu(y))throw new Error(ge(7));if(typeof y.type>"u")throw new Error(ge(8));if(typeof y.type!="string")throw new Error(ge(17));if(c)throw new Error(ge(9));try{c=!0,i=n(i,y)}finally{c=!1}return(a=o).forEach(b=>{b()}),y}function h(y){if(typeof y!="function")throw new Error(ge(10));n=y,d({type:Wn.REPLACE})}function p(){const y=f;return{subscribe(g){if(typeof g!="object"||g===null)throw new Error(ge(11));function b(){const w=g;w.next&&w.next(l())}return b(),{unsubscribe:y(b)}},[qc](){return this}}}return d({type:Wn.INIT}),{dispatch:d,subscribe:f,getState:l,replaceReducer:h,[qc]:p}}function N0(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:Wn.INIT})>"u")throw new Error(ge(12));if(typeof r(void 0,{type:Wn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ge(13))})}function Pd(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{N0(r)}catch(a){i=a}return function(o={},u){if(i)throw i;let c=!1;const s={};for(let l=0;l<n.length;l++){const f=n[l],d=r[f],h=o[f],p=d(h,u);if(typeof p>"u")throw u&&u.type,new Error(ge(14));s[f]=p,c=c||p!==h}return c=c||n.length!==Object.keys(o).length,c?s:o}}function Un(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function L0(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(ge(15))};const o={getState:i.getState,dispatch:(c,...s)=>a(c,...s)},u=e.map(c=>c(o));return a=Un(...u)(i.dispatch),{...i,dispatch:a}}}function Od(e){return hu(e)&&"type"in e&&typeof e.type=="string"}var Ad=Symbol.for("immer-nothing"),Vc=Symbol.for("immer-draftable"),Fe=Symbol.for("immer-state");function tt(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var mr=Object.getPrototypeOf;function er(e){return!!e&&!!e[Fe]}function mt(e){var t;return e?kd(e)||Array.isArray(e)||!!e[Vc]||!!((t=e.constructor)!=null&&t[Vc])||nn(e)||Ui(e):!1}var R0=Object.prototype.constructor.toString();function kd(e){if(!e||typeof e!="object")return!1;const t=mr(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===R0}function Hn(e,t){Wi(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Wi(e){const t=e[Fe];return t?t.type_:Array.isArray(e)?1:nn(e)?2:Ui(e)?3:0}function io(e,t){return Wi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Sd(e,t,r){const n=Wi(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function B0(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function nn(e){return e instanceof Map}function Ui(e){return e instanceof Set}function Ut(e){return e.copy_||e.base_}function ao(e,t){if(nn(e))return new Map(e);if(Ui(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=kd(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Fe];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],u=n[o];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(n[o]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[o]})}return Object.create(mr(e),n)}else{const n=mr(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function vu(e,t=!1){return Hi(e)||er(e)||!mt(e)||(Wi(e)>1&&Object.defineProperties(e,{set:{value:Pn},add:{value:Pn},clear:{value:Pn},delete:{value:Pn}}),Object.freeze(e),t&&Object.values(e).forEach(r=>vu(r,!0))),e}function Pn(){tt(2)}function Hi(e){return Object.isFrozen(e)}var z0={};function tr(e){const t=z0[e];return t||tt(0,e),t}var Hr;function Ed(){return Hr}function K0(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Yc(e,t){t&&(tr("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function oo(e){uo(e),e.drafts_.forEach(F0),e.drafts_=null}function uo(e){e===Hr&&(Hr=e.parent_)}function Gc(e){return Hr=K0(Hr,e)}function F0(e){const t=e[Fe];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Xc(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Fe].modified_&&(oo(t),tt(4)),mt(e)&&(e=qn(t,e),t.parent_||Vn(t,e)),t.patches_&&tr("Patches").generateReplacementPatches_(r[Fe].base_,e,t.patches_,t.inversePatches_)):e=qn(t,r,[]),oo(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ad?e:void 0}function qn(e,t,r){if(Hi(t))return t;const n=t[Fe];if(!n)return Hn(t,(i,a)=>Zc(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return Vn(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,o=!1;n.type_===3&&(a=new Set(i),i.clear(),o=!0),Hn(a,(u,c)=>Zc(e,n,i,u,c,r,o)),Vn(e,i,!1),r&&e.patches_&&tr("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Zc(e,t,r,n,i,a,o){if(er(i)){const u=a&&t&&t.type_!==3&&!io(t.assigned_,n)?a.concat(n):void 0,c=qn(e,i,u);if(Sd(r,n,c),er(c))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(mt(i)&&!Hi(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;qn(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(nn(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&Vn(e,i)}}function Vn(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&vu(t,r)}function W0(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Ed(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=pu;r&&(i=[n],a=qr);const{revoke:o,proxy:u}=Proxy.revocable(i,a);return n.draft_=u,n.revoke_=o,u}var pu={get(e,t){if(t===Fe)return e;const r=Ut(e);if(!io(r,t))return U0(e,r,t);const n=r[t];return e.finalized_||!mt(n)?n:n===Da(e.base_,t)?(Ia(e),e.copy_[t]=lo(n,e)):n},has(e,t){return t in Ut(e)},ownKeys(e){return Reflect.ownKeys(Ut(e))},set(e,t,r){const n=Md(Ut(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=Da(Ut(e),t),a=i==null?void 0:i[Fe];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(B0(r,i)&&(r!==void 0||io(e.base_,t)))return!0;Ia(e),co(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Da(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ia(e),co(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Ut(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){tt(11)},getPrototypeOf(e){return mr(e.base_)},setPrototypeOf(){tt(12)}},qr={};Hn(pu,(e,t)=>{qr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});qr.deleteProperty=function(e,t){return qr.set.call(this,e,t,void 0)};qr.set=function(e,t,r){return pu.set.call(this,e[0],t,r,e[0])};function Da(e,t){const r=e[Fe];return(r?Ut(r):e)[t]}function U0(e,t,r){var i;const n=Md(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function Md(e,t){if(!(t in e))return;let r=mr(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=mr(r)}}function co(e){e.modified_||(e.modified_=!0,e.parent_&&co(e.parent_))}function Ia(e){e.copy_||(e.copy_=ao(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var H0=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(c=a,...s){return o.produce(c,l=>r.call(this,l,...s))}}typeof r!="function"&&tt(6),n!==void 0&&typeof n!="function"&&tt(7);let i;if(mt(t)){const a=Gc(this),o=lo(t,void 0);let u=!0;try{i=r(o),u=!1}finally{u?oo(a):uo(a)}return Yc(a,n),Xc(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===Ad&&(i=void 0),this.autoFreeze_&&vu(i,!0),n){const a=[],o=[];tr("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else tt(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...u)=>this.produceWithPatches(o,c=>t(c,...u));let n,i;return[this.produce(t,r,(o,u)=>{n=o,i=u}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){mt(e)||tt(8),er(e)&&(e=vt(e));const t=Gc(this),r=lo(e,void 0);return r[Fe].isManual_=!0,uo(t),r}finishDraft(e,t){const r=e&&e[Fe];(!r||!r.isManual_)&&tt(9);const{scope_:n}=r;return Yc(n,t),Xc(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=tr("Patches").applyPatches_;return er(e)?n(e,t):this.produce(e,i=>n(i,t))}};function lo(e,t){const r=nn(e)?tr("MapSet").proxyMap_(e,t):Ui(e)?tr("MapSet").proxySet_(e,t):W0(e,t);return(t?t.scope_:Ed()).drafts_.push(r),r}function vt(e){return er(e)||tt(10,e),Cd(e)}function Cd(e){if(!mt(e)||Hi(e))return e;const t=e[Fe];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=ao(e,t.scope_.immer_.useStrictShallowCopy_)}else r=ao(e,!0);return Hn(r,(n,i)=>{Sd(r,n,Cd(i))}),t&&(t.finalized_=!1),r}var q0=new H0,_d=q0.produce;function Td(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var V0=Td(),Y0=Td,G0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Un:Un.apply(null,arguments)};function Ze(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(Ke(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>Od(n)&&n.type===e,r}var jd=class zr extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,zr.prototype)}static get[Symbol.species](){return zr}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new zr(...t[0].concat(this)):new zr(...t.concat(this))}};function Qc(e){return mt(e)?_d(e,()=>{}):e}function On(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function X0(e){return typeof e=="boolean"}var Z0=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new jd;return r&&(X0(r)?o.push(V0):o.push(Y0(r.extraArgument))),o},Q0="RTK_autoBatch",Jc=e=>t=>{setTimeout(t,e)},J0=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const u=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Jc(10):e.type==="callback"?e.queueNotification:Jc(e.timeout),s=()=>{o=!1,a&&(a=!1,u.forEach(l=>l()))};return Object.assign({},n,{subscribe(l){const f=()=>i&&l(),d=n.subscribe(f);return u.add(l),()=>{d(),u.delete(l)}},dispatch(l){var f;try{return i=!((f=l==null?void 0:l.meta)!=null&&f[Q0]),a=!i,a&&(o||(o=!0,c(s))),n.dispatch(l)}finally{i=!0}}})},eg=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new jd(e);return n&&i.push(J0(typeof n=="object"?n:void 0)),i};function tg(e){const t=Z0(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let u;if(typeof r=="function")u=r;else if(hu(r))u=Pd(r);else throw new Error(Ke(1));let c;typeof n=="function"?c=n(t):c=t();let s=Un;i&&(s=G0({trace:!1,...typeof i=="object"&&i}));const l=L0(...c),f=eg(l);let d=typeof o=="function"?o(f):f();const h=s(...d);return wd(u,a,h)}function Dd(e){const t={},r=[];let n;const i={addCase(a,o){const u=typeof a=="string"?a:a.type;if(!u)throw new Error(Ke(28));if(u in t)throw new Error(Ke(29));return t[u]=o,i},addAsyncThunk(a,o){return o.pending&&(t[a.pending.type]=o.pending),o.rejected&&(t[a.rejected.type]=o.rejected),o.fulfilled&&(t[a.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:a.settled,reducer:o.settled}),i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function rg(e){return typeof e=="function"}function ng(e,t){let[r,n,i]=Dd(t),a;if(rg(e))a=()=>Qc(e());else{const u=Qc(e);a=()=>u}function o(u=a(),c){let s=[r[c.type],...n.filter(({matcher:l})=>l(c)).map(({reducer:l})=>l)];return s.filter(l=>!!l).length===0&&(s=[i]),s.reduce((l,f)=>{if(f)if(er(l)){const h=f(l,c);return h===void 0?l:h}else{if(mt(l))return _d(l,d=>f(d,c));{const d=f(l,c);if(d===void 0){if(l===null)return l;throw Error("A case reducer on a non-draftable value must not return undefined")}return d}}return l},u)}return o.getInitialState=a,o}var ig="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ag=(e=21)=>{let t="",r=e;for(;r--;)t+=ig[Math.random()*64|0];return t},og=Symbol.for("rtk-slice-createasyncthunk");function ug(e,t){return`${e}/${t}`}function cg({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[og];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(Ke(11));const u=(typeof i.reducers=="function"?i.reducers(sg()):i.reducers)||{},c=Object.keys(u),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(w,P){const O=typeof w=="string"?w:w.type;if(!O)throw new Error(Ke(12));if(O in s.sliceCaseReducersByType)throw new Error(Ke(13));return s.sliceCaseReducersByType[O]=P,l},addMatcher(w,P){return s.sliceMatchers.push({matcher:w,reducer:P}),l},exposeAction(w,P){return s.actionCreators[w]=P,l},exposeCaseReducer(w,P){return s.sliceCaseReducersByName[w]=P,l}};c.forEach(w=>{const P=u[w],O={reducerName:w,type:ug(a,w),createNotation:typeof i.reducers=="function"};dg(P)?vg(O,P,l,t):fg(O,P,l)});function f(){const[w={},P=[],O=void 0]=typeof i.extraReducers=="function"?Dd(i.extraReducers):[i.extraReducers],k={...w,...s.sliceCaseReducersByType};return ng(i.initialState,M=>{for(let _ in k)M.addCase(_,k[_]);for(let _ of s.sliceMatchers)M.addMatcher(_.matcher,_.reducer);for(let _ of P)M.addMatcher(_.matcher,_.reducer);O&&M.addDefaultCase(O)})}const d=w=>w,h=new Map,p=new WeakMap;let m;function y(w,P){return m||(m=f()),m(w,P)}function g(){return m||(m=f()),m.getInitialState()}function b(w,P=!1){function O(M){let _=M[w];return typeof _>"u"&&P&&(_=On(p,O,g)),_}function k(M=d){const _=On(h,P,()=>new WeakMap);return On(_,M,()=>{const I={};for(const[C,T]of Object.entries(i.selectors??{}))I[C]=lg(T,M,()=>On(p,M,g),P);return I})}return{reducerPath:w,getSelectors:k,get selectors(){return k(O)},selectSlice:O}}const x={name:a,reducer:y,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:g,...b(o),injectInto(w,{reducerPath:P,...O}={}){const k=P??o;return w.inject({reducerPath:k,reducer:y},O),{...x,...b(k,!0)}}};return x}}function lg(e,t,r,n){function i(a,...o){let u=t(a);return typeof u>"u"&&n&&(u=r()),e(u,...o)}return i.unwrapped=e,i}var We=cg();function sg(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function fg({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!hg(n))throw new Error(Ke(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Ze(e,o):Ze(e))}function dg(e){return e._reducerDefinitionType==="asyncThunk"}function hg(e){return e._reducerDefinitionType==="reducerWithPrepare"}function vg({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ke(18));const{payloadCreator:a,fulfilled:o,pending:u,rejected:c,settled:s,options:l}=r,f=i(e,a,l);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),u&&n.addCase(f.pending,u),c&&n.addCase(f.rejected,c),s&&n.addMatcher(f.settled,s),n.exposeCaseReducer(t,{fulfilled:o||An,pending:u||An,rejected:c||An,settled:s||An})}function An(){}var pg="task",Id="listener",$d="completed",yu="cancelled",yg=`task-${yu}`,mg=`task-${$d}`,so=`${Id}-${yu}`,gg=`${Id}-${$d}`,qi=class{constructor(e){Aa(this,"name","TaskAbortError");Aa(this,"message");this.code=e,this.message=`${pg} ${yu} (reason: ${e})`}},mu=(e,t)=>{if(typeof e!="function")throw new TypeError(Ke(32))},Yn=()=>{},Nd=(e,t=Yn)=>(e.catch(t),e),Ld=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Xt=(e,t)=>{const r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Zt=e=>{if(e.aborted){const{reason:t}=e;throw new qi(t)}};function Rd(e,t){let r=Yn;return new Promise((n,i)=>{const a=()=>i(new qi(e.reason));if(e.aborted){a();return}r=Ld(e,a),t.finally(()=>r()).then(n,i)}).finally(()=>{r=Yn})}var bg=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof qi?"cancelled":"rejected",error:r}}finally{t==null||t()}},Gn=e=>t=>Nd(Rd(e,t).then(r=>(Zt(e),r))),Bd=e=>{const t=Gn(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:dr}=Object,el={},Vi="listenerMiddleware",xg=(e,t)=>{const r=n=>Ld(e,()=>Xt(n,e.reason));return(n,i)=>{mu(n);const a=new AbortController;r(a);const o=bg(async()=>{Zt(e),Zt(a.signal);const u=await n({pause:Gn(a.signal),delay:Bd(a.signal),signal:a.signal});return Zt(a.signal),u},()=>Xt(a,mg));return i!=null&&i.autoJoin&&t.push(o.catch(Yn)),{result:Gn(e)(o),cancel(){Xt(a,yg)}}}},wg=(e,t)=>{const r=async(n,i)=>{Zt(t);let a=()=>{};const u=[new Promise((c,s)=>{let l=e({predicate:n,effect:(f,d)=>{d.unsubscribe(),c([f,d.getState(),d.getOriginalState()])}});a=()=>{l(),s()}})];i!=null&&u.push(new Promise(c=>setTimeout(c,i,null)));try{const c=await Rd(t,Promise.race(u));return Zt(t),c}finally{a()}};return(n,i)=>Nd(r(n,i))},zd=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Ze(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ke(21));return mu(a),{predicate:i,type:t,effect:a}},Kd=dr(e=>{const{type:t,predicate:r,effect:n}=zd(e);return{id:ag(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ke(22))}}},{withTypes:()=>Kd}),tl=(e,t)=>{const{type:r,effect:n,predicate:i}=zd(t);return Array.from(e.values()).find(a=>(typeof r=="string"?a.type===r:a.predicate===i)&&a.effect===n)},fo=e=>{e.pending.forEach(t=>{Xt(t,so)})},Pg=e=>()=>{e.forEach(fo),e.clear()},rl=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Fd=dr(Ze(`${Vi}/add`),{withTypes:()=>Fd}),Og=Ze(`${Vi}/removeAll`),Wd=dr(Ze(`${Vi}/remove`),{withTypes:()=>Wd}),Ag=(...e)=>{console.error(`${Vi}/error`,...e)},an=(e={})=>{const t=new Map,{extra:r,onError:n=Ag}=e;mu(n);const i=l=>(l.unsubscribe=()=>t.delete(l.id),t.set(l.id,l),f=>{l.unsubscribe(),f!=null&&f.cancelActive&&fo(l)}),a=l=>{const f=tl(t,l)??Kd(l);return i(f)};dr(a,{withTypes:()=>a});const o=l=>{const f=tl(t,l);return f&&(f.unsubscribe(),l.cancelActive&&fo(f)),!!f};dr(o,{withTypes:()=>o});const u=async(l,f,d,h)=>{const p=new AbortController,m=wg(a,p.signal),y=[];try{l.pending.add(p),await Promise.resolve(l.effect(f,dr({},d,{getOriginalState:h,condition:(g,b)=>m(g,b).then(Boolean),take:m,delay:Bd(p.signal),pause:Gn(p.signal),extra:r,signal:p.signal,fork:xg(p.signal,y),unsubscribe:l.unsubscribe,subscribe:()=>{t.set(l.id,l)},cancelActiveListeners:()=>{l.pending.forEach((g,b,x)=>{g!==p&&(Xt(g,so),x.delete(g))})},cancel:()=>{Xt(p,so),l.pending.delete(p)},throwIfCancelled:()=>{Zt(p.signal)}})))}catch(g){g instanceof qi||rl(n,g,{raisedBy:"effect"})}finally{await Promise.all(y),Xt(p,gg),l.pending.delete(p)}},c=Pg(t);return{middleware:l=>f=>d=>{if(!Od(d))return f(d);if(Fd.match(d))return a(d.payload);if(Og.match(d)){c();return}if(Wd.match(d))return o(d.payload);let h=l.getState();const p=()=>{if(h===el)throw new Error(Ke(23));return h};let m;try{if(m=f(d),t.size>0){const y=l.getState(),g=Array.from(t.values());for(const b of g){let x=!1;try{x=b.predicate(d,y,h)}catch(w){x=!1,rl(n,w,{raisedBy:"predicate"})}x&&u(b,d,l,p)}}}finally{h=el}return m},startListening:a,stopListening:o,clearListeners:c}};function Ke(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 kg={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Ud=We({name:"chartLayout",initialState:kg,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=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(i=t.payload.bottom)!==null&&i!==void 0?i:0,e.margin.left=(a=t.payload.left)!==null&&a!==void 0?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Sg,setLayout:Eg,setChartSize:Mg,setScale:Cg}=Ud.actions,_g=Ud.reducer;function nl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function il(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nl(Object(r),!0).forEach(function(n){Tg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tg(e,t,r){return(t=jg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jg(e){var t=Dg(e,"string");return typeof t=="symbol"?t:t+""}function Dg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xn=Math.PI/180,Ig=e=>e*180/Math.PI,xe=(e,t,r,n)=>({x:e+Math.cos(-Xn*n)*r,y:t+Math.sin(-Xn*n)*r}),$g=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},Ng=(e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)},Lg=(e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=Ng({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var u=(r-i)/o,c=Math.acos(u);return n>a&&(c=2*Math.PI-c),{radius:o,angle:Ig(c),angleInRadian:c}},Rg=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-a*360,endAngle:r-a*360}},Bg=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return e+o*360},zg=(e,t)=>{var{x:r,y:n}=e,{radius:i,angle:a}=Lg({x:r,y:n},t),{innerRadius:o,outerRadius:u}=t;if(i<o||i>u||i===0)return null;var{startAngle:c,endAngle:s}=Rg(t),l=a,f;if(c<=s){for(;l>s;)l-=360;for(;l<c;)l+=360;f=l>=c&&l<=s}else{for(;l>c;)l-=360;for(;l<s;)l+=360;f=l>=s&&l<=c}return f?il(il({},t),{},{radius:i,angle:Bg(l,t)}):null};function Hd(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function al(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?al(Object(r),!0).forEach(function(n){Kg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):al(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kg(e,t,r){return(t=Fg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fg(e){var t=Wg(e,"string");return typeof t=="symbol"?t:t+""}function Wg(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ve(e,t,r){return re(e)||re(t)?r:ut(t)?pr(e,t,r):typeof t=="function"?t(e):r}var Ug=(e,t,r,n,i)=>{var a,o=-1,u=(a=t==null?void 0:t.length)!==null&&a!==void 0?a:0;if(u<=1||e==null)return 0;if(n==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var c=0;c<u;c++){var s=c>0?r[c-1].coordinate:r[u-1].coordinate,l=r[c].coordinate,f=c>=u-1?r[0].coordinate:r[c+1].coordinate,d=void 0;if(Me(l-s)!==Me(f-l)){var h=[];if(Me(f-l)===Me(i[1]-i[0])){d=f;var p=l+i[1]-i[0];h[0]=Math.min(p,(p+s)/2),h[1]=Math.max(p,(p+s)/2)}else{d=s;var m=f+i[1]-i[0];h[0]=Math.min(l,(m+l)/2),h[1]=Math.max(l,(m+l)/2)}var y=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>y[0]&&e<=y[1]||e>=h[0]&&e<=h[1]){({index:o}=r[c]);break}}else{var g=Math.min(s,f),b=Math.max(s,f);if(e>(g+l)/2&&e<=(b+l)/2){({index:o}=r[c]);break}}}else if(t){for(var x=0;x<u;x++)if(x===0&&e<=(t[x].coordinate+t[x+1].coordinate)/2||x>0&&x<u-1&&e>(t[x].coordinate+t[x-1].coordinate)/2&&e<=(t[x].coordinate+t[x+1].coordinate)/2||x===u-1&&e>(t[x].coordinate+t[x-1].coordinate)/2){({index:o}=t[x]);break}}return o},Hg=(e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:u}=t;if((u==="vertical"||u==="horizontal"&&o==="middle")&&a!=="center"&&$(e[a]))return Ge(Ge({},e),{},{[a]:e[a]+(n||0)});if((u==="horizontal"||u==="vertical"&&a==="center")&&o!=="middle"&&$(e[o]))return Ge(Ge({},e),{},{[o]:e[o]+(i||0)})}return e},Pt=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",qd=(e,t,r,n)=>{if(n)return e.map(u=>u.coordinate);var i,a,o=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===r&&(a=!0),u.coordinate));return i||o.push(t),a||o.push(r),o},Vd=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:u,isCategorical:c,categoricalDomain:s,tickCount:l,ticks:f,niceTicks:d,axisType:h}=e;if(!o)return null;var p=u==="scaleBand"&&o.bandwidth?o.bandwidth()/2:2,m=i==="category"&&o.bandwidth?o.bandwidth()/p:0;if(m=h==="angleAxis"&&a&&a.length>=2?Me(a[0]-a[1])*2*m:m,f||d){var y=(f||d||[]).map((g,b)=>{var x=n?n.indexOf(g):g;return{coordinate:o(x)+m,value:g,offset:m,index:b}});return y.filter(g=>!_e(g.coordinate))}return c&&s?s.map((g,b)=>({coordinate:o(g)+m,value:g,index:b,offset:m})):o.ticks&&l!=null?o.ticks(l).map((g,b)=>({coordinate:o(g)+m,value:g,offset:m,index:b})):o.domain().map((g,b)=>({coordinate:o(g)+m,value:n?n[g]:g,index:b,offset:m}))},ol=1e-4,qg=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-ol,a=Math.max(n[0],n[1])+ol,o=e(t[0]),u=e(t[r-1]);(o<i||o>a||u<i||u>a)&&e.domain([t[0],t[r-1]])}},Vg=(e,t)=>{if(!t||t.length!==2||!$(t[0])||!$(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(!$(e[0])||e[0]<r)&&(i[0]=r),(!$(e[1])||e[1]>n)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]<r&&(i[1]=r),i},Yg=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var u=_e(e[o][r][1])?e[o][r][0]:e[o][r][1];u>=0?(e[o][r][0]=i,e[o][r][1]=i+u,i=e[o][r][1]):(e[o][r][0]=a,e[o][r][1]=a+u,a=e[o][r][1])}},Gg=e=>{var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var i=0,a=0;a<t;++a){var o=_e(e[a][r][1])?e[a][r][0]:e[a][r][1];o>=0?(e[a][r][0]=i,e[a][r][1]=i+o,i=e[a][r][1]):(e[a][r][0]=0,e[a][r][1]=0)}},Xg={sign:Yg,expand:Wm,none:yr,silhouette:Um,wiggle:Hm,positive:Gg},Zg=(e,t,r)=>{var n=Xg[r],i=Fm().keys(t).value((a,o)=>+ve(a,o,0)).order(to).offset(n);return i(e)};function Yd(e){return e==null?void 0:String(e)}function ul(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!re(i[t.dataKey])){var u=Sf(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=ve(i,re(o)?t.dataKey:o);return re(c)?null:t.scale(c)}var cl=e=>{var{axis:t,ticks:r,offset:n,bandSize:i,entry:a,index:o}=e;if(t.type==="category")return r[o]?r[o].coordinate+n:null;var u=ve(a,t.dataKey,t.scale.domain()[o]);return re(u)?null:t.scale(u)-i/2+n},Qg=e=>{var{numericAxis:t}=e,r=t.scale.domain();if(t.type==="number"){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]},Jg=e=>{var t=e.flat(2).filter($);return[Math.min(...t),Math.max(...t)]},e1=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],t1=(e,t,r)=>{if(e!=null)return e1(Object.keys(e).reduce((n,i)=>{var a=e[i],{stackedData:o}=a,u=o.reduce((c,s)=>{var l=Hd(s,t,r),f=Jg(l);return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],n[0]),Math.max(u[1],n[1])]},[1/0,-1/0]))},ll=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,sl=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Vr=(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=Fi(t,l=>l.coordinate),a=1/0,o=1,u=i.length;o<u;o++){var c=i[o],s=i[o-1];a=Math.min((c.coordinate||0)-(s.coordinate||0),a)}return a===1/0?0:a}return r?void 0:0};function fl(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Ge(Ge({},t),{},{dataKey:r,payload:n,value:i,name:a})}function Yi(e,t){if(e)return String(e);if(typeof t=="string")return t}function r1(e,t,r,n,i){if(r==="horizontal"||r==="vertical"){var a=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return a?{x:e,y:t}:null}return n?zg({x:e,y:t},n):null}var n1=(e,t,r,n)=>{var i=t.find(s=>s&&s.index===r);if(i){if(e==="horizontal")return{x:i.coordinate,y:n.y};if(e==="vertical")return{x:n.x,y:i.coordinate};if(e==="centric"){var a=i.coordinate,{radius:o}=n;return Ge(Ge(Ge({},n),xe(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var u=i.coordinate,{angle:c}=n;return Ge(Ge(Ge({},n),xe(n.cx,n.cy,u,c)),{},{angle:c,radius:u})}return{x:0,y:0}},i1=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,Ot=e=>e.layout.width,At=e=>e.layout.height,a1=e=>e.layout.scale,Gd=e=>e.layout.margin,Gi=A(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Xi=A(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),o1="data-recharts-item-index",u1="data-recharts-item-data-key",on=60;function dl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function kn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dl(Object(r),!0).forEach(function(n){c1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c1(e,t,r){return(t=l1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l1(e){var t=s1(e,"string");return typeof t=="symbol"?t:t+""}function s1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f1=e=>e.brush.height;function d1(e){var t=Xi(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:on;return r+i}return r},0)}function h1(e){var t=Xi(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var i=typeof n.width=="number"?n.width:on;return r+i}return r},0)}function v1(e){var t=Gi(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function p1(e){var t=Gi(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var pe=A([Ot,At,Gd,f1,d1,h1,v1,p1,bd,_0],(e,t,r,n,i,a,o,u,c,s)=>{var l={left:(r.left||0)+i,right:(r.right||0)+a},f={top:(r.top||0)+o,bottom:(r.bottom||0)+u},d=kn(kn({},f),l),h=d.bottom;d.bottom+=n,d=Hg(d,c,s);var p=e-d.left-d.right,m=t-d.top-d.bottom;return kn(kn({brushBottom:h},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),y1=A(pe,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),gu=A(Ot,At,(e,t)=>({x:0,y:0,width:e,height:t})),m1=v.createContext(null),je=()=>v.useContext(m1)!=null,Zi=e=>e.brush,Qi=A([Zi,pe,Gd],(e,t,r)=>({height:e.height,x:$(e.x)?e.x:t.left,y:$(e.y)?e.y:t.top+t.height+t.brushBottom-((r==null?void 0:r.bottom)||0),width:$(e.width)?e.width:t.width})),bu=()=>{var e,t=je(),r=N(y1),n=N(Qi),i=(e=N(Zi))===null||e===void 0?void 0:e.padding;return!t||!n||!i?r:{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}},g1={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Xd=()=>{var e;return(e=N(pe))!==null&&e!==void 0?e:g1},xu=()=>N(Ot),wu=()=>N(At),b1=()=>N(e=>e.layout.margin),U=e=>e.layout.layoutType,Ji=()=>N(U),x1={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},Zd=We({name:"legend",initialState:x1,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(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var r=vt(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)}}}),{setLegendSize:hl,setLegendSettings:w1,addLegendPayload:P1,removeLegendPayload:O1}=Zd.actions,A1=Zd.reducer,k1=["contextPayload"];function ho(){return ho=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},ho.apply(null,arguments)}function vl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?vl(Object(r),!0).forEach(function(n){Pu(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pu(e,t,r){return(t=S1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S1(e){var t=E1(e,"string");return typeof t=="symbol"?t:t+""}function E1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M1(e,t){if(e==null)return{};var r,n,i=C1(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function C1(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function _1(e){return e.value}function T1(e){var{contextPayload:t}=e,r=M1(e,k1),n=sd(t,e.payloadUniqBy,_1),i=gr(gr({},r),{},{payload:n});return v.isValidElement(e.content)?v.cloneElement(e.content,i):typeof e.content=="function"?v.createElement(e.content,i):v.createElement(eu,i)}function j1(e,t,r,n,i,a){var{layout:o,align:u,verticalAlign:c}=t,s,l;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(u==="center"&&o==="vertical"?s={left:((n||0)-a.width)/2}:s=u==="right"?{right:r&&r.right||0}:{left:r&&r.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(c==="middle"?l={top:((i||0)-a.height)/2}:l=c==="bottom"?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),gr(gr({},s),l)}function D1(e){var t=ue();return v.useEffect(()=>{t(w1(e))},[t,e]),null}function I1(e){var t=ue();return v.useEffect(()=>(t(hl(e)),()=>{t(hl({width:0,height:0}))}),[t,e]),null}function $1(e){var t=D0(),r=dm(),n=b1(),{width:i,height:a,wrapperStyle:o,portal:u}=e,[c,s]=xd([t]),l=xu(),f=wu();if(l==null||f==null)return null;var d=l-(n.left||0)-(n.right||0),h=Ou.getWidthOrHeight(e.layout,a,i,d),p=u?o:gr(gr({position:"absolute",width:(h==null?void 0:h.width)||i||"auto",height:(h==null?void 0:h.height)||a||"auto"},j1(o,e,n,l,f,c)),o),m=u??r;if(m==null)return null;var y=v.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:s},v.createElement(D1,{layout:e.layout,align:e.align,verticalAlign:e.verticalAlign,itemSorter:e.itemSorter}),v.createElement(I1,{width:c.width,height:c.height}),v.createElement(T1,ho({},e,h,{margin:n,chartWidth:l,chartHeight:f,contextPayload:t})));return bf.createPortal(y,m)}class Ou extends v.PureComponent{static getWidthOrHeight(t,r,n,i){return t==="vertical"&&$(r)?{height:r}:t==="horizontal"?{width:n||i}:null}render(){return v.createElement($1,this.props)}}Pu(Ou,"displayName","Legend");Pu(Ou,"defaultProps",{align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"});function vo(){return vo=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},vo.apply(null,arguments)}function pl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $a(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pl(Object(r),!0).forEach(function(n){N1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function N1(e,t,r){return(t=L1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L1(e){var t=R1(e,"string");return typeof t=="symbol"?t:t+""}function R1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B1(e){return Array.isArray(e)&&ut(e[0])&&ut(e[1])?e.join(" ~ "):e}var z1=e=>{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:i={},payload:a,formatter:o,itemSorter:u,wrapperClassName:c,labelClassName:s,label:l,labelFormatter:f,accessibilityLayer:d=!1}=e,h=()=>{if(a&&a.length){var P={padding:0,margin:0},O=(u?Fi(a,u):a).map((k,M)=>{if(k.type==="none")return null;var _=k.formatter||o||B1,{value:I,name:C}=k,T=I,L=C;if(_){var R=_(I,C,k,M,a);if(Array.isArray(R))[T,L]=R;else if(R!=null)T=R;else return null}var K=$a({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},n);return v.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(M),style:K},ut(L)?v.createElement("span",{className:"recharts-tooltip-item-name"},L):null,ut(L)?v.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,v.createElement("span",{className:"recharts-tooltip-item-value"},T),v.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return v.createElement("ul",{className:"recharts-tooltip-item-list",style:P},O)}return null},p=$a({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),m=$a({margin:0},i),y=!re(l),g=y?l:"",b=q("recharts-default-tooltip",c),x=q("recharts-tooltip-label",s);y&&f&&a!==void 0&&a!==null&&(g=f(l,a));var w=d?{role:"status","aria-live":"assertive"}:{};return v.createElement("div",vo({className:b,style:p},w),v.createElement("p",{className:x,style:m},v.isValidElement(g)?g:"".concat(g)),h())},jr="recharts-tooltip-wrapper",K1={visibility:"hidden"};function F1(e){var{coordinate:t,translateX:r,translateY:n}=e;return q(jr,{["".concat(jr,"-right")]:$(r)&&t&&$(t.x)&&r>=t.x,["".concat(jr,"-left")]:$(r)&&t&&$(t.x)&&r<t.x,["".concat(jr,"-bottom")]:$(n)&&t&&$(t.y)&&n>=t.y,["".concat(jr,"-top")]:$(n)&&t&&$(t.y)&&n<t.y})}function yl(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:a,reverseDirection:o,tooltipDimension:u,viewBox:c,viewBoxDimension:s}=e;if(a&&$(a[n]))return a[n];var l=r[n]-u-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?l:f;var d=c[n];if(d==null)return 0;if(o[n]){var h=l,p=d;return h<p?Math.max(f,d):Math.max(l,d)}if(s==null)return 0;var m=f+u,y=d+s;return m>y?Math.max(l,d):Math.max(f,d)}function W1(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)")}}function U1(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:i,reverseDirection:a,tooltipBox:o,useTranslate3d:u,viewBox:c}=e,s,l,f;return o.height>0&&o.width>0&&r?(l=yl({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:c,viewBoxDimension:c.width}),f=yl({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:c,viewBoxDimension:c.height}),s=W1({translateX:l,translateY:f,useTranslate3d:u})):s=K1,{cssProperties:s,cssClasses:F1({translateX:l,translateY:f,coordinate:r})}}function ml(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Sn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ml(Object(r),!0).forEach(function(n){po(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ml(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function po(e,t,r){return(t=H1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H1(e){var t=q1(e,"string");return typeof t=="symbol"?t:t+""}function q1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class V1 extends v.PureComponent{constructor(){super(...arguments),po(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),po(this,"handleKeyDown",t=>{if(t.key==="Escape"){var r,n,i,a;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(i=(a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:i,children:a,coordinate:o,hasPayload:u,isAnimationActive:c,offset:s,position:l,reverseDirection:f,useTranslate3d:d,viewBox:h,wrapperStyle:p,lastBoundingBox:m,innerRef:y,hasPortalFromProps:g}=this.props,{cssClasses:b,cssProperties:x}=U1({allowEscapeViewBox:r,coordinate:o,offsetTopLeft:s,position:l,reverseDirection:f,tooltipBox:{height:m.height,width:m.width},useTranslate3d:d,viewBox:h}),w=g?{}:Sn(Sn({transition:c&&t?"transform ".concat(n,"ms ").concat(i):void 0},x),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&u?"visible":"hidden",position:"absolute",top:0,left:0}),P=Sn(Sn({},w),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},p);return v.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:b,style:P,ref:y},a)}}var Y1=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),ar={devToolsEnabled:!1,isSsr:Y1()},Qd=()=>N(e=>e.rootProps.accessibilityLayer);function we(e){return Number.isFinite(e)}function Zn(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function yo(){return yo=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},yo.apply(null,arguments)}function gl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gl(Object(r),!0).forEach(function(n){G1(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G1(e,t,r){return(t=X1(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X1(e){var t=Z1(e,"string");return typeof t=="symbol"?t:t+""}function Z1(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xl={curveBasisClosed:Tm,curveBasisOpen:jm,curveBasis:_m,curveBumpX:ym,curveBumpY:mm,curveLinearClosed:Dm,curveLinear:Ri,curveMonotoneX:Im,curveMonotoneY:$m,curveNatural:Nm,curveStep:Lm,curveStepAfter:Bm,curveStepBefore:Rm},En=e=>we(e.x)&&we(e.y),Dr=e=>e.x,Ir=e=>e.y,Q1=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(rn(e));return(r==="curveMonotone"||r==="curveBump")&&t?xl["".concat(r).concat(t==="vertical"?"Y":"X")]:xl[r]||Ri},J1=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,o=Q1(t,i),u=a?r.filter(En):r,c;if(Array.isArray(n)){var s=a?n.filter(f=>En(f)):n,l=u.map((f,d)=>bl(bl({},f),{},{base:s[d]}));return i==="vertical"?c=bn().y(Ir).x1(Dr).x0(f=>f.base.x):c=bn().x(Dr).y1(Ir).y0(f=>f.base.y),c.defined(En).curve(o),c(l)}return i==="vertical"&&$(n)?c=bn().y(Ir).x1(Dr).x0(n):$(n)?c=bn().x(Dr).y1(Ir).y0(n):c=Nf().x(Dr).y(Ir),c.defined(En).curve(o),c(u)},Nn=e=>{var{className:t,points:r,path:n,pathRef:i}=e;if((!r||!r.length)&&!n)return null;var a=r&&r.length?J1(e):n;return v.createElement("path",yo({},wt(e),Vo(e),{className:q("recharts-curve",t),d:a===null?void 0:a,ref:i}))},eb=["x","y","top","left","width","height","className"];function mo(){return mo=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},mo.apply(null,arguments)}function wl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wl(Object(r),!0).forEach(function(n){rb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rb(e,t,r){return(t=nb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nb(e){var t=ib(e,"string");return typeof t=="symbol"?t:t+""}function ib(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ab(e,t){if(e==null)return{};var r,n,i=ob(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function ob(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ub=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),cb=e=>{var{x:t=0,y:r=0,top:n=0,left:i=0,width:a=0,height:o=0,className:u}=e,c=ab(e,eb),s=tb({x:t,y:r,top:n,left:i,width:a,height:o},c);return!$(t)||!$(r)||!$(a)||!$(o)||!$(n)||!$(i)?null:v.createElement("path",mo({},oe(s,!0),{className:q("recharts-cross",u),d:ub(t,r,a,o,n,i)}))};function lb(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function Pl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pl(Object(r),!0).forEach(function(n){fb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fb(e,t,r){return(t=db(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function db(e){var t=hb(e,"string");return typeof t=="symbol"?t:t+""}function hb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function De(e,t){var r=sb({},e),n=t,i=Object.keys(t),a=i.reduce((o,u)=>(o[u]===void 0&&n[u]!==void 0&&(o[u]=n[u]),o),r);return a}function vb(){}function Ol(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Al(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ol(Object(r),!0).forEach(function(n){pb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ol(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pb(e,t,r){return(t=yb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yb(e){var t=mb(e,"string");return typeof t=="symbol"?t:t+""}function mb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gb=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Jd=(e,t,r)=>e.map(n=>"".concat(gb(n)," ").concat(t,"ms ").concat(r)).join(","),bb=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(i=>n.includes(i))),Yr=(e,t)=>Object.keys(t).reduce((r,n)=>Al(Al({},r),{},{[n]:e(n,t[n])}),{});function kl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kl(Object(r),!0).forEach(function(n){xb(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xb(e,t,r){return(t=wb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wb(e){var t=Pb(e,"string");return typeof t=="symbol"?t:t+""}function Pb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qn=(e,t,r)=>e+(t-e)*r,go=e=>{var{from:t,to:r}=e;return t!==r},eh=(e,t,r)=>{var n=Yr((i,a)=>{if(go(a)){var[o,u]=e(a.from,a.to,a.velocity);return be(be({},a),{},{from:o,velocity:u})}return a},t);return r<1?Yr((i,a)=>go(a)?be(be({},a),{},{velocity:Qn(a.velocity,n[i].velocity,r),from:Qn(a.from,n[i].from,r)}):a,t):eh(e,n,r-1)};function Ob(e,t,r,n,i,a){var o,u=n.reduce((d,h)=>be(be({},d),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),c=()=>Yr((d,h)=>h.from,u),s=()=>!Object.values(u).filter(go).length,l=null,f=d=>{o||(o=d);var h=d-o,p=h/r.dt;u=eh(r,u,p),i(be(be(be({},e),t),c())),o=d,s()||(l=a.setTimeout(f))};return()=>(l=a.setTimeout(f),()=>{l()})}function Ab(e,t,r,n,i,a,o){var u=null,c=i.reduce((f,d)=>be(be({},f),{},{[d]:[e[d],t[d]]}),{}),s,l=f=>{s||(s=f);var d=(f-s)/n,h=Yr((m,y)=>Qn(...y,r(d)),c);if(a(be(be(be({},e),t),h)),d<1)u=o.setTimeout(l);else{var p=Yr((m,y)=>Qn(...y,r(1)),c);a(be(be(be({},e),t),p))}};return()=>(u=o.setTimeout(l),()=>{u()})}const kb=(e,t,r,n,i,a)=>{var o=bb(e,t);return r.isStepper===!0?Ob(e,t,r,o,i,a):Ab(e,t,r,n,o,i,a)};var Jn=1e-4,th=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],rh=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),Sl=(e,t)=>r=>{var n=th(e,t);return rh(n,r)},Sb=(e,t)=>r=>{var n=th(e,t),i=[...n.map((a,o)=>a*o).slice(1),0];return rh(i,r)},El=function(){for(var t,r,n,i,a=arguments.length,o=new Array(a),u=0;u<a;u++)o[u]=arguments[u];if(o.length===1)switch(o[0]){case"linear":[t,n,r,i]=[0,0,1,1];break;case"ease":[t,n,r,i]=[.25,.1,.25,1];break;case"ease-in":[t,n,r,i]=[.42,0,1,1];break;case"ease-out":[t,n,r,i]=[.42,0,.58,1];break;case"ease-in-out":[t,n,r,i]=[0,0,.58,1];break;default:{var c=o[0].split("(");c[0]==="cubic-bezier"&&c[1].split(")")[0].split(",").length===4&&([t,n,r,i]=c[1].split(")")[0].split(",").map(p=>parseFloat(p)))}}else o.length===4&&([t,n,r,i]=o);var s=Sl(t,r),l=Sl(n,i),f=Sb(t,r),d=p=>p>1?1:p<0?0:p,h=p=>{for(var m=p>1?1:p,y=m,g=0;g<8;++g){var b=s(y)-m,x=f(y);if(Math.abs(b-m)<Jn||x<Jn)return l(y);y=d(y-b/x)}return l(y)};return h.isStepper=!1,h},Eb=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:i=17}=t,a=(o,u,c)=>{var s=-(o-u)*r,l=c*n,f=c+(s-l)*i/1e3,d=c*i/1e3+o;return Math.abs(d-u)<Jn&&Math.abs(f)<Jn?[u,0]:[d,f]};return a.isStepper=!0,a.dt=i,a},Mb=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return El(e);case"spring":return Eb();default:if(e.split("(")[0]==="cubic-bezier")return El(e)}return typeof e=="function"?e:null};function Cb(e){var t,r=()=>null,n=!1,i=null,a=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var u=o,[c,...s]=u;if(typeof c=="number"){i=e.setTimeout(a.bind(null,s),c);return}a(c),i=e.setTimeout(a.bind(null,s));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,i&&(i(),i=null),a(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class _b{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),i=null,a=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(a))};return i=requestAnimationFrame(a),()=>{cancelAnimationFrame(i)}}}function Tb(){return Cb(new _b)}var jb=v.createContext(Tb);function Db(e,t){var r=v.useContext(jb);return v.useMemo(()=>t??r(e),[e,t,r])}var Ib={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Ml={t:0},Na={t:1};function ea(e){var t=De(e,Ib),{isActive:r,canBegin:n,duration:i,easing:a,begin:o,onAnimationEnd:u,onAnimationStart:c,children:s}=t,l=Db(t.animationId,t.animationManager),[f,d]=v.useState(r?Ml:Na),h=v.useRef(null);return v.useEffect(()=>{r||d(Na)},[r]),v.useEffect(()=>{if(!r||!n)return vb;var p=kb(Ml,Na,Mb(a),i,d,l.getTimeoutController()),m=()=>{h.current=p()};return l.start([c,o,m,i,u]),()=>{l.stop(),h.current&&h.current(),u()}},[r,n,i,a,o,c,u,l]),s(f.t)}function ta(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=v.useRef(Ur(t)),n=v.useRef(e);return n.current!==e&&(r.current=Ur(t),n.current=e),r.current}function Cl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _l(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cl(Object(r),!0).forEach(function(n){$b(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cl(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $b(e,t,r){return(t=Nb(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nb(e){var t=Lb(e,"string");return typeof t=="symbol"?t:t+""}function Lb(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ei(){return ei=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},ei.apply(null,arguments)}var Tl=(e,t,r,n,i)=>{var a=Math.min(Math.abs(r)/2,Math.abs(n)/2),o=n>=0?1:-1,u=r>=0?1:-1,c=n>=0&&r>=0||n<0&&r<0?1:0,s;if(a>0&&i instanceof Array){for(var l=[0,0,0,0],f=0,d=4;f<d;f++)l[f]=i[f]>a?a:i[f];s="M".concat(e,",").concat(t+o*l[0]),l[0]>0&&(s+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(e+u*l[0],",").concat(t)),s+="L ".concat(e+r-u*l[1],",").concat(t),l[1]>0&&(s+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
        `).concat(e+r,",").concat(t+o*l[1])),s+="L ".concat(e+r,",").concat(t+n-o*l[2]),l[2]>0&&(s+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`,
        `).concat(e+r-u*l[2],",").concat(t+n)),s+="L ".concat(e+u*l[3],",").concat(t+n),l[3]>0&&(s+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`,
        `).concat(e,",").concat(t+n-o*l[3])),s+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);s="M ".concat(e,",").concat(t+o*h,`
            A `).concat(h,",").concat(h,",0,0,").concat(c,",").concat(e+u*h,",").concat(t,`
            L `).concat(e+r-u*h,",").concat(t,`
            A `).concat(h,",").concat(h,",0,0,").concat(c,",").concat(e+r,",").concat(t+o*h,`
            L `).concat(e+r,",").concat(t+n-o*h,`
            A `).concat(h,",").concat(h,",0,0,").concat(c,",").concat(e+r-u*h,",").concat(t+n,`
            L `).concat(e+u*h,",").concat(t+n,`
            A `).concat(h,",").concat(h,",0,0,").concat(c,",").concat(e,",").concat(t+n-o*h," Z")}else s="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return s},Rb={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nh=e=>{var t=De(e,Rb),r=v.useRef(null),[n,i]=v.useState(-1);v.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var R=r.current.getTotalLength();R&&i(R)}catch{}},[]);var{x:a,y:o,width:u,height:c,radius:s,className:l}=t,{animationEasing:f,animationDuration:d,animationBegin:h,isAnimationActive:p,isUpdateAnimationActive:m}=t,y=v.useRef(u),g=v.useRef(c),b=v.useRef(a),x=v.useRef(o),w=v.useMemo(()=>({x:a,y:o,width:u,height:c,radius:s}),[a,o,u,c,s]),P=ta(w,"rectangle-");if(a!==+a||o!==+o||u!==+u||c!==+c||u===0||c===0)return null;var O=q("recharts-rectangle",l);if(!m)return v.createElement("path",ei({},oe(t,!0),{className:O,d:Tl(a,o,u,c,s)}));var k=y.current,M=g.current,_=b.current,I=x.current,C="0px ".concat(n===-1?1:n,"px"),T="".concat(n,"px 0px"),L=Jd(["strokeDasharray"],d,typeof f=="string"?f:void 0);return v.createElement(ea,{animationId:P,key:P,canBegin:n>0,duration:d,easing:f,isActive:m,begin:h},R=>{var K=ie(k,u,R),G=ie(M,c,R),Q=ie(_,a,R),de=ie(I,o,R);r.current&&(y.current=K,g.current=G,b.current=Q,x.current=de);var J;return p?R>0?J={transition:L,strokeDasharray:T}:J={strokeDasharray:C}:J={strokeDasharray:T},v.createElement("path",ei({},oe(t,!0),{className:O,d:Tl(Q,de,K,G,s),ref:r,style:_l(_l({},J),t.style)}))})};function ih(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e,o=xe(t,r,n,i),u=xe(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function bo(){return bo=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},bo.apply(null,arguments)}var Bb=(e,t)=>{var r=Me(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Mn=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:u,cornerIsExternal:c}=e,s=u*(o?1:-1)+n,l=Math.asin(u/s)/Xn,f=c?i:i+a*l,d=xe(t,r,s,f),h=xe(t,r,n,f),p=c?i-a*l:i,m=xe(t,r,s*Math.cos(l*Xn),p);return{center:d,circleTangency:h,lineTangency:m,theta:l}},ah=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,u=Bb(a,o),c=a+u,s=xe(t,r,i,a),l=xe(t,r,i,c),f="M ".concat(s.x,",").concat(s.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(u)>180),",").concat(+(a>c),`,
    `).concat(l.x,",").concat(l.y,`
  `);if(n>0){var d=xe(t,r,n,a),h=xe(t,r,n,c);f+="L ".concat(h.x,",").concat(h.y,`
            A `).concat(n,",").concat(n,`,0,
            `).concat(+(Math.abs(u)>180),",").concat(+(a<=c),`,
            `).concat(d.x,",").concat(d.y," Z")}else f+="L ".concat(t,",").concat(r," Z");return f},zb=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:u,startAngle:c,endAngle:s}=e,l=Me(s-c),{circleTangency:f,lineTangency:d,theta:h}=Mn({cx:t,cy:r,radius:i,angle:c,sign:l,cornerRadius:a,cornerIsExternal:u}),{circleTangency:p,lineTangency:m,theta:y}=Mn({cx:t,cy:r,radius:i,angle:s,sign:-l,cornerRadius:a,cornerIsExternal:u}),g=u?Math.abs(c-s):Math.abs(c-s)-h-y;if(g<0)return o?"M ".concat(d.x,",").concat(d.y,`
        a`).concat(a,",").concat(a,",0,0,1,").concat(a*2,`,0
        a`).concat(a,",").concat(a,",0,0,1,").concat(-a*2,`,0
      `):ah({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:c,endAngle:s});var b="M ".concat(d.x,",").concat(d.y,`
    A`).concat(a,",").concat(a,",0,0,").concat(+(l<0),",").concat(f.x,",").concat(f.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(g>180),",").concat(+(l<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(a,",").concat(a,",0,0,").concat(+(l<0),",").concat(m.x,",").concat(m.y,`
  `);if(n>0){var{circleTangency:x,lineTangency:w,theta:P}=Mn({cx:t,cy:r,radius:n,angle:c,sign:l,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),{circleTangency:O,lineTangency:k,theta:M}=Mn({cx:t,cy:r,radius:n,angle:s,sign:-l,isExternal:!0,cornerRadius:a,cornerIsExternal:u}),_=u?Math.abs(c-s):Math.abs(c-s)-P-M;if(_<0&&a===0)return"".concat(b,"L").concat(t,",").concat(r,"Z");b+="L".concat(k.x,",").concat(k.y,`
      A`).concat(a,",").concat(a,",0,0,").concat(+(l<0),",").concat(O.x,",").concat(O.y,`
      A`).concat(n,",").concat(n,",0,").concat(+(_>180),",").concat(+(l>0),",").concat(x.x,",").concat(x.y,`
      A`).concat(a,",").concat(a,",0,0,").concat(+(l<0),",").concat(w.x,",").concat(w.y,"Z")}else b+="L".concat(t,",").concat(r,"Z");return b},Kb={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},oh=e=>{var t=De(e,Kb),{cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:c,startAngle:s,endAngle:l,className:f}=t;if(a<i||s===l)return null;var d=q("recharts-sector",f),h=a-i,p=nt(o,h,0,!0),m;return p>0&&Math.abs(s-l)<360?m=zb({cx:r,cy:n,innerRadius:i,outerRadius:a,cornerRadius:Math.min(p,h/2),forceCornerRadius:u,cornerIsExternal:c,startAngle:s,endAngle:l}):m=ah({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:s,endAngle:l}),v.createElement("path",bo({},oe(t,!0),{className:d,d:m}))};function Fb(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:u,cy:c,innerRadius:s,outerRadius:l,angle:f}=t,d=xe(u,c,s,f),h=xe(u,c,l,f);n=d.x,i=d.y,a=h.x,o=h.y}else return ih(t);return[{x:n,y:i},{x:a,y:o}]}var uh={},ch={},lh={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fu;function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(lh);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lh;function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(ch);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=du,r=ch;function n(i,a,o){o&&typeof o!="number"&&t.isIterateeCall(i,a,o)&&(a=o=void 0),i=r.toFinite(i),a===void 0?(a=i,i=0):a=r.toFinite(a),o=o===void 0?i<a?1:-1:r.toFinite(o);const u=Math.max(Math.ceil((a-i)/(o||1)),0),c=new Array(u);for(let s=0;s<u;s++)c[s]=i,i+=o;return c}e.range=n})(uh);var Wb=uh.range;const sh=Lt(Wb);function Dt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ub(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Au(e){let t,r,n;e.length!==2?(t=Dt,r=(u,c)=>Dt(e(u),c),n=(u,c)=>e(u)-c):(t=e===Dt||e===Ub?e:Hb,r=e,n=e);function i(u,c,s=0,l=u.length){if(s<l){if(t(c,c)!==0)return l;do{const f=s+l>>>1;r(u[f],c)<0?s=f+1:l=f}while(s<l)}return s}function a(u,c,s=0,l=u.length){if(s<l){if(t(c,c)!==0)return l;do{const f=s+l>>>1;r(u[f],c)<=0?s=f+1:l=f}while(s<l)}return s}function o(u,c,s=0,l=u.length){const f=i(u,c,s,l-1);return f>s&&n(u[f-1],c)>-n(u[f],c)?f-1:f}return{left:i,center:o,right:a}}function Hb(){return 0}function fh(e){return e===null?NaN:+e}function*qb(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Vb=Au(Dt),un=Vb.right;Au(fh).center;class jl extends Map{constructor(t,r=Xb){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Dl(this,t))}has(t){return super.has(Dl(this,t))}set(t,r){return super.set(Yb(this,t),r)}delete(t){return super.delete(Gb(this,t))}}function Dl({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Yb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Gb({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Xb(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Zb(e=Dt){if(e===Dt)return dh;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function dh(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Qb=Math.sqrt(50),Jb=Math.sqrt(10),e2=Math.sqrt(2);function ti(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>=Qb?10:a>=Jb?5:a>=e2?2:1;let u,c,s;return i<0?(s=Math.pow(10,-i)/o,u=Math.round(e*s),c=Math.round(t*s),u/s<e&&++u,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,u=Math.round(e/s),c=Math.round(t/s),u*s<e&&++u,c*s>t&&--c),c<u&&.5<=r&&r<2?ti(e,t,r*2):[u,c,s]}function xo(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?ti(t,e,r):ti(e,t,r);if(!(a>=i))return[];const u=a-i+1,c=new Array(u);if(n)if(o<0)for(let s=0;s<u;++s)c[s]=(a-s)/-o;else for(let s=0;s<u;++s)c[s]=(a-s)*o;else if(o<0)for(let s=0;s<u;++s)c[s]=(i+s)/-o;else for(let s=0;s<u;++s)c[s]=(i+s)*o;return c}function wo(e,t,r){return t=+t,e=+e,r=+r,ti(e,t,r)[2]}function Po(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?wo(t,e,r):wo(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Il(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function $l(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function hh(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=i===void 0?dh:Zb(i);n>r;){if(n-r>600){const c=n-r+1,s=t-r+1,l=Math.log(c),f=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*f*(c-f)/c)*(s-c/2<0?-1:1),h=Math.max(r,Math.floor(t-s*f/c+d)),p=Math.min(n,Math.floor(t+(c-s)*f/c+d));hh(e,t,h,p,i)}const a=e[t];let o=r,u=n;for($r(e,r,t),i(e[n],a)>0&&$r(e,r,n);o<u;){for($r(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?$r(e,r,u):(++u,$r(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function $r(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function t2(e,t,r){if(e=Float64Array.from(qb(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return $l(e);if(t>=1)return Il(e);var n,i=(n-1)*t,a=Math.floor(i),o=Il(hh(e,a).subarray(0,a+1)),u=$l(e.subarray(a+1));return o+(u-o)*(i-a)}}function r2(e,t,r=fh){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),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function n2(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=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function et(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function kt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Oo=Symbol("implicit");function ku(){var e=new jl,t=[],r=[],n=Oo;function i(a){let o=e.get(a);if(o===void 0){if(n!==Oo)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new jl;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ku(t,r).unknown(n)},et.apply(i,arguments),i}function Su(){var e=ku().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,c=0,s=0,l=.5;delete e.unknown;function f(){var d=t().length,h=i<n,p=h?i:n,m=h?n:i;a=(m-p)/Math.max(1,d-c+s*2),u&&(a=Math.floor(a)),p+=(m-p-a*(d-c))*l,o=a*(1-c),u&&(p=Math.round(p),o=Math.round(o));var y=n2(d).map(function(g){return p+a*g});return r(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,f()):u},e.padding=function(d){return arguments.length?(c=Math.min(1,s=+d),f()):c},e.paddingInner=function(d){return arguments.length?(c=Math.min(1,d),f()):c},e.paddingOuter=function(d){return arguments.length?(s=+d,f()):s},e.align=function(d){return arguments.length?(l=Math.max(0,Math.min(1,d)),f()):l},e.copy=function(){return Su(t(),[n,i]).round(u).paddingInner(c).paddingOuter(s).align(l)},et.apply(f(),arguments)}function vh(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return vh(t())},e}function i2(){return vh(Su.apply(null,arguments).paddingInner(1))}function Eu(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ph(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function cn(){}var Gr=.7,ri=1/Gr,hr="\\s*([+-]?\\d+)\\s*",Xr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ot="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a2=/^#([0-9a-f]{3,8})$/,o2=new RegExp(`^rgb\\(${hr},${hr},${hr}\\)$`),u2=new RegExp(`^rgb\\(${ot},${ot},${ot}\\)$`),c2=new RegExp(`^rgba\\(${hr},${hr},${hr},${Xr}\\)$`),l2=new RegExp(`^rgba\\(${ot},${ot},${ot},${Xr}\\)$`),s2=new RegExp(`^hsl\\(${Xr},${ot},${ot}\\)$`),f2=new RegExp(`^hsla\\(${Xr},${ot},${ot},${Xr}\\)$`),Nl={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};Eu(cn,Zr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ll,formatHex:Ll,formatHex8:d2,formatHsl:h2,formatRgb:Rl,toString:Rl});function Ll(){return this.rgb().formatHex()}function d2(){return this.rgb().formatHex8()}function h2(){return yh(this).formatHsl()}function Rl(){return this.rgb().formatRgb()}function Zr(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=a2.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Bl(t):r===3?new Ce(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Cn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Cn(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=o2.exec(e))?new Ce(t[1],t[2],t[3],1):(t=u2.exec(e))?new Ce(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=c2.exec(e))?Cn(t[1],t[2],t[3],t[4]):(t=l2.exec(e))?Cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=s2.exec(e))?Fl(t[1],t[2]/100,t[3]/100,1):(t=f2.exec(e))?Fl(t[1],t[2]/100,t[3]/100,t[4]):Nl.hasOwnProperty(e)?Bl(Nl[e]):e==="transparent"?new Ce(NaN,NaN,NaN,0):null}function Bl(e){return new Ce(e>>16&255,e>>8&255,e&255,1)}function Cn(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ce(e,t,r,n)}function v2(e){return e instanceof cn||(e=Zr(e)),e?(e=e.rgb(),new Ce(e.r,e.g,e.b,e.opacity)):new Ce}function Ao(e,t,r,n){return arguments.length===1?v2(e):new Ce(e,t,r,n??1)}function Ce(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Eu(Ce,Ao,ph(cn,{brighter(e){return e=e==null?ri:Math.pow(ri,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gr:Math.pow(Gr,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(Qt(this.r),Qt(this.g),Qt(this.b),ni(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:zl,formatHex:zl,formatHex8:p2,formatRgb:Kl,toString:Kl}));function zl(){return`#${Vt(this.r)}${Vt(this.g)}${Vt(this.b)}`}function p2(){return`#${Vt(this.r)}${Vt(this.g)}${Vt(this.b)}${Vt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Kl(){const e=ni(this.opacity);return`${e===1?"rgb(":"rgba("}${Qt(this.r)}, ${Qt(this.g)}, ${Qt(this.b)}${e===1?")":`, ${e})`}`}function ni(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vt(e){return e=Qt(e),(e<16?"0":"")+e.toString(16)}function Fl(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new rt(e,t,r,n)}function yh(e){if(e instanceof rt)return new rt(e.h,e.s,e.l,e.opacity);if(e instanceof cn||(e=Zr(e)),!e)return new rt;if(e instanceof rt)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,c=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=c<.5?a+i:2-a-i,o*=60):u=c>0&&c<1?0:o,new rt(o,u,c,e.opacity)}function y2(e,t,r,n){return arguments.length===1?yh(e):new rt(e,t,r,n??1)}function rt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Eu(rt,y2,ph(cn,{brighter(e){return e=e==null?ri:Math.pow(ri,e),new rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gr:Math.pow(Gr,e),new rt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,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 Ce(La(e>=240?e-240:e+120,i,n),La(e,i,n),La(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new rt(Wl(this.h),_n(this.s),_n(this.l),ni(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=ni(this.opacity);return`${e===1?"hsl(":"hsla("}${Wl(this.h)}, ${_n(this.s)*100}%, ${_n(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Wl(e){return e=(e||0)%360,e<0?e+360:e}function _n(e){return Math.max(0,Math.min(1,e||0))}function La(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Mu=e=>()=>e;function m2(e,t){return function(r){return e+r*t}}function g2(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)}}function b2(e){return(e=+e)==1?mh:function(t,r){return r-t?g2(t,r,e):Mu(isNaN(t)?r:t)}}function mh(e,t){var r=t-e;return r?m2(e,r):Mu(isNaN(e)?t:e)}const Ul=(function e(t){var r=b2(t);function n(i,a){var o=r((i=Ao(i)).r,(a=Ao(a)).r),u=r(i.g,a.g),c=r(i.b,a.b),s=mh(i.opacity,a.opacity);return function(l){return i.r=o(l),i.g=u(l),i.b=c(l),i.opacity=s(l),i+""}}return n.gamma=e,n})(1);function x2(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function w2(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function P2(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Ar(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function O2(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function ii(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function A2(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Ar(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var ko=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ra=new RegExp(ko.source,"g");function k2(e){return function(){return e}}function S2(e){return function(t){return e(t)+""}}function E2(e,t){var r=ko.lastIndex=Ra.lastIndex=0,n,i,a,o=-1,u=[],c=[];for(e=e+"",t=t+"";(n=ko.exec(e))&&(i=Ra.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,c.push({i:o,x:ii(n,i)})),r=Ra.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?c[0]?S2(c[0].x):k2(t):(t=c.length,function(s){for(var l=0,f;l<t;++l)u[(f=c[l]).i]=f.x(s);return u.join("")})}function Ar(e,t){var r=typeof t,n;return t==null||r==="boolean"?Mu(t):(r==="number"?ii:r==="string"?(n=Zr(t))?(t=n,Ul):E2:t instanceof Zr?Ul:t instanceof Date?O2:w2(t)?x2:Array.isArray(t)?P2:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?A2:ii)(e,t)}function Cu(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function M2(e,t){t===void 0&&(t=e,e=Ar);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(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function C2(e){return function(){return e}}function ai(e){return+e}var Hl=[0,1];function ke(e){return e}function So(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:C2(isNaN(t)?NaN:.5)}function _2(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function T2(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=So(i,n),a=r(o,a)):(n=So(n,i),a=r(a,o)),function(u){return a(n(u))}}function j2(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]=So(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var c=un(e,u,1,n)-1;return a[c](i[c](u))}}function ln(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ra(){var e=Hl,t=Hl,r=Ar,n,i,a,o=ke,u,c,s;function l(){var d=Math.min(e.length,t.length);return o!==ke&&(o=_2(e[0],e[d-1])),u=d>2?j2:T2,c=s=null,f}function f(d){return d==null||isNaN(d=+d)?a:(c||(c=u(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((s||(s=u(t,e.map(n),ii)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,ai),l()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),l()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Cu,l()},f.clamp=function(d){return arguments.length?(o=d?!0:ke,l()):o!==ke},f.interpolate=function(d){return arguments.length?(r=d,l()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,l()}}function _u(){return ra()(ke,ke)}function D2(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function oi(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function br(e){return e=oi(Math.abs(e)),e?e[1]:NaN}function I2(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>n&&(u=Math.max(1,n-c)),a.push(r.substring(i-=u,i+u)),!((c+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function $2(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var N2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qr(e){if(!(t=N2.exec(e)))throw new Error("invalid format: "+e);var t;return new Tu({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]})}Qr.prototype=Tu.prototype;function Tu(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Tu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function L2(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var gh;function R2(e,t){var r=oi(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(gh=Math.max(-8,Math.min(8,Math.floor(i/3)))*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")+oi(e,Math.max(0,t+a-1))[0]}function ql(e,t){var r=oi(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")}const Vl={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:D2,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)=>ql(e*100,t),r:ql,s:R2,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Yl(e){return e}var Gl=Array.prototype.map,Xl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function B2(e){var t=e.grouping===void 0||e.thousands===void 0?Yl:I2(Gl.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Yl:$2(Gl.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",c=e.nan===void 0?"NaN":e.nan+"";function s(f){f=Qr(f);var d=f.fill,h=f.align,p=f.sign,m=f.symbol,y=f.zero,g=f.width,b=f.comma,x=f.precision,w=f.trim,P=f.type;P==="n"?(b=!0,P="g"):Vl[P]||(x===void 0&&(x=12),w=!0,P="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var O=m==="$"?r:m==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",k=m==="$"?n:/[%p]/.test(P)?o:"",M=Vl[P],_=/[defgprs%]/.test(P);x=x===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function I(C){var T=O,L=k,R,K,G;if(P==="c")L=M(C)+L,C="";else{C=+C;var Q=C<0||1/C<0;if(C=isNaN(C)?c:M(Math.abs(C),x),w&&(C=L2(C)),Q&&+C==0&&p!=="+"&&(Q=!1),T=(Q?p==="("?p:u:p==="-"||p==="("?"":p)+T,L=(P==="s"?Xl[8+gh/3]:"")+L+(Q&&p==="("?")":""),_){for(R=-1,K=C.length;++R<K;)if(G=C.charCodeAt(R),48>G||G>57){L=(G===46?i+C.slice(R+1):C.slice(R))+L,C=C.slice(0,R);break}}}b&&!y&&(C=t(C,1/0));var de=T.length+C.length+L.length,J=de<g?new Array(g-de+1).join(d):"";switch(b&&y&&(C=t(J+C,J.length?g-L.length:1/0),J=""),h){case"<":C=T+C+L+J;break;case"=":C=T+J+C+L;break;case"^":C=J.slice(0,de=J.length>>1)+T+C+L+J.slice(de);break;default:C=J+T+C+L;break}return a(C)}return I.toString=function(){return f+""},I}function l(f,d){var h=s((f=Qr(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(br(d)/3)))*3,m=Math.pow(10,-p),y=Xl[8+p/3];return function(g){return h(m*g)+y}}return{format:s,formatPrefix:l}}var Tn,ju,bh;z2({thousands:",",grouping:[3],currency:["$",""]});function z2(e){return Tn=B2(e),ju=Tn.format,bh=Tn.formatPrefix,Tn}function K2(e){return Math.max(0,-br(Math.abs(e)))}function F2(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(br(t)/3)))*3-br(Math.abs(e)))}function W2(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,br(t)-br(e))+1}function xh(e,t,r,n){var i=Po(e,t,r),a;switch(n=Qr(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=F2(i,o))&&(n.precision=a),bh(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=W2(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=K2(i))&&(n.precision=a-(n.type==="%")*2);break}}return ju(n)}function Rt(e){var t=e.domain;return e.ticks=function(r){var n=t();return xo(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return xh(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],c,s,l=10;for(u<o&&(s=o,o=u,u=s,s=i,i=a,a=s);l-- >0;){if(s=wo(o,u,r),s===c)return n[i]=o,n[a]=u,t(n);if(s>0)o=Math.floor(o/s)*s,u=Math.ceil(u/s)*s;else if(s<0)o=Math.ceil(o*s)/s,u=Math.floor(u*s)/s;else break;c=s}return e},e}function wh(){var e=_u();return e.copy=function(){return ln(e,wh())},et.apply(e,arguments),Rt(e)}function Ph(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,ai),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return Ph(e).unknown(t)},e=arguments.length?Array.from(e,ai):[0,1],Rt(r)}function Oh(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Zl(e){return Math.log(e)}function Ql(e){return Math.exp(e)}function U2(e){return-Math.log(-e)}function H2(e){return-Math.exp(-e)}function q2(e){return isFinite(e)?+("1e"+e):e<0?0:e}function V2(e){return e===10?q2:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Y2(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Jl(e){return(t,r)=>-e(-t,r)}function Du(e){const t=e(Zl,Ql),r=t.domain;let n=10,i,a;function o(){return i=Y2(n),a=V2(n),r()[0]<0?(i=Jl(i),a=Jl(a),e(U2,H2)):e(Zl,Ql),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const c=r();let s=c[0],l=c[c.length-1];const f=l<s;f&&([s,l]=[l,s]);let d=i(s),h=i(l),p,m;const y=u==null?10:+u;let g=[];if(!(n%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),s>0){for(;d<=h;++d)for(p=1;p<n;++p)if(m=d<0?p/a(-d):p*a(d),!(m<s)){if(m>l)break;g.push(m)}}else for(;d<=h;++d)for(p=n-1;p>=1;--p)if(m=d>0?p/a(-d):p*a(d),!(m<s)){if(m>l)break;g.push(m)}g.length*2<y&&(g=xo(s,l,y))}else g=xo(d,h,Math.min(h-d,y)).map(a);return f?g.reverse():g},t.tickFormat=(u,c)=>{if(u==null&&(u=10),c==null&&(c=n===10?"s":","),typeof c!="function"&&(!(n%1)&&(c=Qr(c)).precision==null&&(c.trim=!0),c=ju(c)),u===1/0)return c;const s=Math.max(1,n*u/t.ticks().length);return l=>{let f=l/a(Math.round(i(l)));return f*n<n-.5&&(f*=n),f<=s?c(l):""}},t.nice=()=>r(Oh(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function Ah(){const e=Du(ra()).domain([1,10]);return e.copy=()=>ln(e,Ah()).base(e.base()),et.apply(e,arguments),e}function es(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ts(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Iu(e){var t=1,r=e(es(t),ts(t));return r.constant=function(n){return arguments.length?e(es(t=+n),ts(t)):t},Rt(r)}function kh(){var e=Iu(ra());return e.copy=function(){return ln(e,kh()).constant(e.constant())},et.apply(e,arguments)}function rs(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function G2(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function X2(e){return e<0?-e*e:e*e}function $u(e){var t=e(ke,ke),r=1;function n(){return r===1?e(ke,ke):r===.5?e(G2,X2):e(rs(r),rs(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Rt(t)}function Nu(){var e=$u(ra());return e.copy=function(){return ln(e,Nu()).exponent(e.exponent())},et.apply(e,arguments),e}function Z2(){return Nu.apply(null,arguments).exponent(.5)}function ns(e){return Math.sign(e)*e*e}function Q2(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Sh(){var e=_u(),t=[0,1],r=!1,n;function i(a){var o=Q2(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(ns(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,ai)).map(ns)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Sh(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},et.apply(i,arguments),Rt(i)}function Eh(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=r2(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[un(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Dt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return Eh().domain(e).range(t).unknown(n)},et.apply(a,arguments)}function Mh(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(c){return c!=null&&c<=c?i[un(n,c,0,r)]:a}function u(){var c=-1;for(n=new Array(r);++c<r;)n[c]=((c+1)*t-(c-r)*e)/(r+1);return o}return o.domain=function(c){return arguments.length?([e,t]=c,e=+e,t=+t,u()):[e,t]},o.range=function(c){return arguments.length?(r=(i=Array.from(c)).length-1,u()):i.slice()},o.invertExtent=function(c){var s=i.indexOf(c);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(c){return arguments.length&&(a=c),o},o.thresholds=function(){return n.slice()},o.copy=function(){return Mh().domain([e,t]).range(i).unknown(a)},et.apply(Rt(o),arguments)}function Ch(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[un(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Ch().domain(e).range(t).unknown(r)},et.apply(i,arguments)}const Ba=new Date,za=new Date;function se(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const c=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return c;let s;do c.push(s=new Date(+a)),t(a,u),e(a);while(s<a&&a<o);return c},i.filter=a=>se(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Ba.setTime(+a),za.setTime(+o),e(Ba),e(za),Math.floor(r(Ba,za))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ui=se(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ui.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?se(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ui);ui.range;const ft=1e3,Xe=ft*60,dt=Xe*60,gt=dt*24,Lu=gt*7,is=gt*30,Ka=gt*365,Yt=se(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ft)},(e,t)=>(t-e)/ft,e=>e.getUTCSeconds());Yt.range;const Ru=se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ft)},(e,t)=>{e.setTime(+e+t*Xe)},(e,t)=>(t-e)/Xe,e=>e.getMinutes());Ru.range;const Bu=se(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Xe)},(e,t)=>(t-e)/Xe,e=>e.getUTCMinutes());Bu.range;const zu=se(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ft-e.getMinutes()*Xe)},(e,t)=>{e.setTime(+e+t*dt)},(e,t)=>(t-e)/dt,e=>e.getHours());zu.range;const Ku=se(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*dt)},(e,t)=>(t-e)/dt,e=>e.getUTCHours());Ku.range;const sn=se(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Xe)/gt,e=>e.getDate()-1);sn.range;const na=se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gt,e=>e.getUTCDate()-1);na.range;const _h=se(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/gt,e=>Math.floor(e/gt));_h.range;function or(e){return se(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Xe)/Lu)}const ia=or(0),ci=or(1),J2=or(2),ex=or(3),xr=or(4),tx=or(5),rx=or(6);ia.range;ci.range;J2.range;ex.range;xr.range;tx.range;rx.range;function ur(e){return se(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Lu)}const aa=ur(0),li=ur(1),nx=ur(2),ix=ur(3),wr=ur(4),ax=ur(5),ox=ur(6);aa.range;li.range;nx.range;ix.range;wr.range;ax.range;ox.range;const Fu=se(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Fu.range;const Wu=se(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Wu.range;const bt=se(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());bt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:se(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)});bt.range;const xt=se(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());xt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:se(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)});xt.range;function Th(e,t,r,n,i,a){const o=[[Yt,1,ft],[Yt,5,5*ft],[Yt,15,15*ft],[Yt,30,30*ft],[a,1,Xe],[a,5,5*Xe],[a,15,15*Xe],[a,30,30*Xe],[i,1,dt],[i,3,3*dt],[i,6,6*dt],[i,12,12*dt],[n,1,gt],[n,2,2*gt],[r,1,Lu],[t,1,is],[t,3,3*is],[e,1,Ka]];function u(s,l,f){const d=l<s;d&&([s,l]=[l,s]);const h=f&&typeof f.range=="function"?f:c(s,l,f),p=h?h.range(s,+l+1):[];return d?p.reverse():p}function c(s,l,f){const d=Math.abs(l-s)/f,h=Au(([,,y])=>y).right(o,d);if(h===o.length)return e.every(Po(s/Ka,l/Ka,f));if(h===0)return ui.every(Math.max(Po(s,l,f),1));const[p,m]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return p.every(m)}return[u,c]}const[ux,cx]=Th(xt,Wu,aa,_h,Ku,Bu),[lx,sx]=Th(bt,Fu,ia,sn,zu,Ru);function Fa(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 Wa(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 Nr(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function fx(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,c=e.shortMonths,s=Lr(i),l=Rr(i),f=Lr(a),d=Rr(a),h=Lr(o),p=Rr(o),m=Lr(u),y=Rr(u),g=Lr(c),b=Rr(c),x={a:Q,A:de,b:J,B:Ct,c:null,d:ss,e:ss,f:Ix,g:Ux,G:qx,H:Tx,I:jx,j:Dx,L:jh,m:$x,M:Nx,p:lr,q:B,Q:hs,s:vs,S:Lx,u:Rx,U:Bx,V:zx,w:Kx,W:Fx,x:null,X:null,y:Wx,Y:Hx,Z:Vx,"%":ds},w={a:Pa,A:Oa,b:Ue,B:Ty,c:null,d:fs,e:fs,f:Zx,g:uw,G:lw,H:Yx,I:Gx,j:Xx,L:Ih,m:Qx,M:Jx,p:jy,q:Dy,Q:hs,s:vs,S:ew,u:tw,U:rw,V:nw,w:iw,W:aw,x:null,X:null,y:ow,Y:cw,Z:sw,"%":ds},P={a:I,A:C,b:T,B:L,c:R,d:cs,e:cs,f:Ex,g:us,G:os,H:ls,I:ls,j:Ox,L:Sx,m:Px,M:Ax,p:_,q:wx,Q:Cx,s:_x,S:kx,u:yx,U:mx,V:gx,w:px,W:bx,x:K,X:G,y:us,Y:os,Z:xx,"%":Mx};x.x=O(r,x),x.X=O(n,x),x.c=O(t,x),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w);function O(D,z){return function(F){var E=[],Se=-1,X=0,$e=D.length,Ne,Kt,_c;for(F instanceof Date||(F=new Date(+F));++Se<$e;)D.charCodeAt(Se)===37&&(E.push(D.slice(X,Se)),(Kt=as[Ne=D.charAt(++Se)])!=null?Ne=D.charAt(++Se):Kt=Ne==="e"?" ":"0",(_c=z[Ne])&&(Ne=_c(F,Kt)),E.push(Ne),X=Se+1);return E.push(D.slice(X,Se)),E.join("")}}function k(D,z){return function(F){var E=Nr(1900,void 0,1),Se=M(E,D,F+="",0),X,$e;if(Se!=F.length)return null;if("Q"in E)return new Date(E.Q);if("s"in E)return new Date(E.s*1e3+("L"in E?E.L:0));if(z&&!("Z"in E)&&(E.Z=0),"p"in E&&(E.H=E.H%12+E.p*12),E.m===void 0&&(E.m="q"in E?E.q:0),"V"in E){if(E.V<1||E.V>53)return null;"w"in E||(E.w=1),"Z"in E?(X=Wa(Nr(E.y,0,1)),$e=X.getUTCDay(),X=$e>4||$e===0?li.ceil(X):li(X),X=na.offset(X,(E.V-1)*7),E.y=X.getUTCFullYear(),E.m=X.getUTCMonth(),E.d=X.getUTCDate()+(E.w+6)%7):(X=Fa(Nr(E.y,0,1)),$e=X.getDay(),X=$e>4||$e===0?ci.ceil(X):ci(X),X=sn.offset(X,(E.V-1)*7),E.y=X.getFullYear(),E.m=X.getMonth(),E.d=X.getDate()+(E.w+6)%7)}else("W"in E||"U"in E)&&("w"in E||(E.w="u"in E?E.u%7:"W"in E?1:0),$e="Z"in E?Wa(Nr(E.y,0,1)).getUTCDay():Fa(Nr(E.y,0,1)).getDay(),E.m=0,E.d="W"in E?(E.w+6)%7+E.W*7-($e+5)%7:E.w+E.U*7-($e+6)%7);return"Z"in E?(E.H+=E.Z/100|0,E.M+=E.Z%100,Wa(E)):Fa(E)}}function M(D,z,F,E){for(var Se=0,X=z.length,$e=F.length,Ne,Kt;Se<X;){if(E>=$e)return-1;if(Ne=z.charCodeAt(Se++),Ne===37){if(Ne=z.charAt(Se++),Kt=P[Ne in as?z.charAt(Se++):Ne],!Kt||(E=Kt(D,F,E))<0)return-1}else if(Ne!=F.charCodeAt(E++))return-1}return E}function _(D,z,F){var E=s.exec(z.slice(F));return E?(D.p=l.get(E[0].toLowerCase()),F+E[0].length):-1}function I(D,z,F){var E=h.exec(z.slice(F));return E?(D.w=p.get(E[0].toLowerCase()),F+E[0].length):-1}function C(D,z,F){var E=f.exec(z.slice(F));return E?(D.w=d.get(E[0].toLowerCase()),F+E[0].length):-1}function T(D,z,F){var E=g.exec(z.slice(F));return E?(D.m=b.get(E[0].toLowerCase()),F+E[0].length):-1}function L(D,z,F){var E=m.exec(z.slice(F));return E?(D.m=y.get(E[0].toLowerCase()),F+E[0].length):-1}function R(D,z,F){return M(D,t,z,F)}function K(D,z,F){return M(D,r,z,F)}function G(D,z,F){return M(D,n,z,F)}function Q(D){return o[D.getDay()]}function de(D){return a[D.getDay()]}function J(D){return c[D.getMonth()]}function Ct(D){return u[D.getMonth()]}function lr(D){return i[+(D.getHours()>=12)]}function B(D){return 1+~~(D.getMonth()/3)}function Pa(D){return o[D.getUTCDay()]}function Oa(D){return a[D.getUTCDay()]}function Ue(D){return c[D.getUTCMonth()]}function Ty(D){return u[D.getUTCMonth()]}function jy(D){return i[+(D.getUTCHours()>=12)]}function Dy(D){return 1+~~(D.getUTCMonth()/3)}return{format:function(D){var z=O(D+="",x);return z.toString=function(){return D},z},parse:function(D){var z=k(D+="",!1);return z.toString=function(){return D},z},utcFormat:function(D){var z=O(D+="",w);return z.toString=function(){return D},z},utcParse:function(D){var z=k(D+="",!0);return z.toString=function(){return D},z}}}var as={"-":"",_:" ",0:"0"},ye=/^\s*\d+/,dx=/^%/,hx=/[\\^$*+?|[\]().{}]/g;function W(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 vx(e){return e.replace(hx,"\\$&")}function Lr(e){return new RegExp("^(?:"+e.map(vx).join("|")+")","i")}function Rr(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function px(e,t,r){var n=ye.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function yx(e,t,r){var n=ye.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function mx(e,t,r){var n=ye.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function gx(e,t,r){var n=ye.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function bx(e,t,r){var n=ye.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function os(e,t,r){var n=ye.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function us(e,t,r){var n=ye.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function xx(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 wx(e,t,r){var n=ye.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Px(e,t,r){var n=ye.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function cs(e,t,r){var n=ye.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Ox(e,t,r){var n=ye.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function ls(e,t,r){var n=ye.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function Ax(e,t,r){var n=ye.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function kx(e,t,r){var n=ye.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Sx(e,t,r){var n=ye.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Ex(e,t,r){var n=ye.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Mx(e,t,r){var n=dx.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Cx(e,t,r){var n=ye.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function _x(e,t,r){var n=ye.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function ss(e,t){return W(e.getDate(),t,2)}function Tx(e,t){return W(e.getHours(),t,2)}function jx(e,t){return W(e.getHours()%12||12,t,2)}function Dx(e,t){return W(1+sn.count(bt(e),e),t,3)}function jh(e,t){return W(e.getMilliseconds(),t,3)}function Ix(e,t){return jh(e,t)+"000"}function $x(e,t){return W(e.getMonth()+1,t,2)}function Nx(e,t){return W(e.getMinutes(),t,2)}function Lx(e,t){return W(e.getSeconds(),t,2)}function Rx(e){var t=e.getDay();return t===0?7:t}function Bx(e,t){return W(ia.count(bt(e)-1,e),t,2)}function Dh(e){var t=e.getDay();return t>=4||t===0?xr(e):xr.ceil(e)}function zx(e,t){return e=Dh(e),W(xr.count(bt(e),e)+(bt(e).getDay()===4),t,2)}function Kx(e){return e.getDay()}function Fx(e,t){return W(ci.count(bt(e)-1,e),t,2)}function Wx(e,t){return W(e.getFullYear()%100,t,2)}function Ux(e,t){return e=Dh(e),W(e.getFullYear()%100,t,2)}function Hx(e,t){return W(e.getFullYear()%1e4,t,4)}function qx(e,t){var r=e.getDay();return e=r>=4||r===0?xr(e):xr.ceil(e),W(e.getFullYear()%1e4,t,4)}function Vx(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+W(t/60|0,"0",2)+W(t%60,"0",2)}function fs(e,t){return W(e.getUTCDate(),t,2)}function Yx(e,t){return W(e.getUTCHours(),t,2)}function Gx(e,t){return W(e.getUTCHours()%12||12,t,2)}function Xx(e,t){return W(1+na.count(xt(e),e),t,3)}function Ih(e,t){return W(e.getUTCMilliseconds(),t,3)}function Zx(e,t){return Ih(e,t)+"000"}function Qx(e,t){return W(e.getUTCMonth()+1,t,2)}function Jx(e,t){return W(e.getUTCMinutes(),t,2)}function ew(e,t){return W(e.getUTCSeconds(),t,2)}function tw(e){var t=e.getUTCDay();return t===0?7:t}function rw(e,t){return W(aa.count(xt(e)-1,e),t,2)}function $h(e){var t=e.getUTCDay();return t>=4||t===0?wr(e):wr.ceil(e)}function nw(e,t){return e=$h(e),W(wr.count(xt(e),e)+(xt(e).getUTCDay()===4),t,2)}function iw(e){return e.getUTCDay()}function aw(e,t){return W(li.count(xt(e)-1,e),t,2)}function ow(e,t){return W(e.getUTCFullYear()%100,t,2)}function uw(e,t){return e=$h(e),W(e.getUTCFullYear()%100,t,2)}function cw(e,t){return W(e.getUTCFullYear()%1e4,t,4)}function lw(e,t){var r=e.getUTCDay();return e=r>=4||r===0?wr(e):wr.ceil(e),W(e.getUTCFullYear()%1e4,t,4)}function sw(){return"+0000"}function ds(){return"%"}function hs(e){return+e}function vs(e){return Math.floor(+e/1e3)}var sr,Nh,Lh;fw({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"]});function fw(e){return sr=fx(e),Nh=sr.format,sr.parse,Lh=sr.utcFormat,sr.utcParse,sr}function dw(e){return new Date(e)}function hw(e){return e instanceof Date?+e:+new Date(+e)}function Uu(e,t,r,n,i,a,o,u,c,s){var l=_u(),f=l.invert,d=l.domain,h=s(".%L"),p=s(":%S"),m=s("%I:%M"),y=s("%I %p"),g=s("%a %d"),b=s("%b %d"),x=s("%B"),w=s("%Y");function P(O){return(c(O)<O?h:u(O)<O?p:o(O)<O?m:a(O)<O?y:n(O)<O?i(O)<O?g:b:r(O)<O?x:w)(O)}return l.invert=function(O){return new Date(f(O))},l.domain=function(O){return arguments.length?d(Array.from(O,hw)):d().map(dw)},l.ticks=function(O){var k=d();return e(k[0],k[k.length-1],O??10)},l.tickFormat=function(O,k){return k==null?P:s(k)},l.nice=function(O){var k=d();return(!O||typeof O.range!="function")&&(O=t(k[0],k[k.length-1],O??10)),O?d(Oh(k,O)):l},l.copy=function(){return ln(l,Uu(e,t,r,n,i,a,o,u,c,s))},l}function vw(){return et.apply(Uu(lx,sx,bt,Fu,ia,sn,zu,Ru,Yt,Nh).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function pw(){return et.apply(Uu(ux,cx,xt,Wu,aa,na,Ku,Bu,Yt,Lh).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function oa(){var e=0,t=1,r,n,i,a,o=ke,u=!1,c;function s(f){return f==null||isNaN(f=+f)?c:o(i===0?.5:(f=(a(f)-r)*i,u?Math.max(0,Math.min(1,f)):f))}s.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(f){return arguments.length?(u=!!f,s):u},s.interpolator=function(f){return arguments.length?(o=f,s):o};function l(f){return function(d){var h,p;return arguments.length?([h,p]=d,o=f(h,p),s):[o(0),o(1)]}}return s.range=l(Ar),s.rangeRound=l(Cu),s.unknown=function(f){return arguments.length?(c=f,s):c},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),s}}function Bt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Rh(){var e=Rt(oa()(ke));return e.copy=function(){return Bt(e,Rh())},kt.apply(e,arguments)}function Bh(){var e=Du(oa()).domain([1,10]);return e.copy=function(){return Bt(e,Bh()).base(e.base())},kt.apply(e,arguments)}function zh(){var e=Iu(oa());return e.copy=function(){return Bt(e,zh()).constant(e.constant())},kt.apply(e,arguments)}function Hu(){var e=$u(oa());return e.copy=function(){return Bt(e,Hu()).exponent(e.exponent())},kt.apply(e,arguments)}function yw(){return Hu.apply(null,arguments).exponent(.5)}function Kh(){var e=[],t=ke;function r(n){if(n!=null&&!isNaN(n=+n))return t((un(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Dt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>t2(e,a/n))},r.copy=function(){return Kh(t).domain(e)},kt.apply(r,arguments)}function ua(){var e=0,t=.5,r=1,n=1,i,a,o,u,c,s=ke,l,f=!1,d;function h(m){return isNaN(m=+m)?d:(m=.5+((m=+l(m))-a)*(n*m<n*a?u:c),s(f?Math.max(0,Math.min(1,m)):m))}h.domain=function(m){return arguments.length?([e,t,r]=m,i=l(e=+e),a=l(t=+t),o=l(r=+r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(m){return arguments.length?(f=!!m,h):f},h.interpolator=function(m){return arguments.length?(s=m,h):s};function p(m){return function(y){var g,b,x;return arguments.length?([g,b,x]=y,s=M2(m,[g,b,x]),h):[s(0),s(.5),s(1)]}}return h.range=p(Ar),h.rangeRound=p(Cu),h.unknown=function(m){return arguments.length?(d=m,h):d},function(m){return l=m,i=m(e),a=m(t),o=m(r),u=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Fh(){var e=Rt(ua()(ke));return e.copy=function(){return Bt(e,Fh())},kt.apply(e,arguments)}function Wh(){var e=Du(ua()).domain([.1,1,10]);return e.copy=function(){return Bt(e,Wh()).base(e.base())},kt.apply(e,arguments)}function Uh(){var e=Iu(ua());return e.copy=function(){return Bt(e,Uh()).constant(e.constant())},kt.apply(e,arguments)}function qu(){var e=$u(ua());return e.copy=function(){return Bt(e,qu()).exponent(e.exponent())},kt.apply(e,arguments)}function mw(){return qu.apply(null,arguments).exponent(.5)}const Kr=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Su,scaleDiverging:Fh,scaleDivergingLog:Wh,scaleDivergingPow:qu,scaleDivergingSqrt:mw,scaleDivergingSymlog:Uh,scaleIdentity:Ph,scaleImplicit:Oo,scaleLinear:wh,scaleLog:Ah,scaleOrdinal:ku,scalePoint:i2,scalePow:Nu,scaleQuantile:Eh,scaleQuantize:Mh,scaleRadial:Sh,scaleSequential:Rh,scaleSequentialLog:Bh,scaleSequentialPow:Hu,scaleSequentialQuantile:Kh,scaleSequentialSqrt:yw,scaleSequentialSymlog:zh,scaleSqrt:Z2,scaleSymlog:kh,scaleThreshold:Ch,scaleTime:vw,scaleUtc:pw,tickFormat:xh},Symbol.toStringTag,{value:"Module"}));var zt=e=>e.chartData,gw=A([zt],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),ca=(e,t,r,n)=>n?gw(e):zt(e);function Pr(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(we(t)&&we(r))return!0}return!1}function ps(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function bw(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,i,a;if(we(r))i=r;else if(typeof r=="function")return;if(we(n))a=n;else if(typeof n=="function")return;var o=[i,a];if(Pr(o))return o}}function xw(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Pr(n))return ps(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,u;if(i==="auto")t!=null&&(o=Math.min(...t));else if($(i))o=i;else if(typeof i=="function")try{t!=null&&(o=i(t==null?void 0:t[0]))}catch{}else if(typeof i=="string"&&ll.test(i)){var c=ll.exec(i);if(c==null||t==null)o=void 0;else{var s=+c[1];o=t[0]-s}}else o=t==null?void 0:t[0];if(a==="auto")t!=null&&(u=Math.max(...t));else if($(a))u=a;else if(typeof a=="function")try{t!=null&&(u=a(t==null?void 0:t[1]))}catch{}else if(typeof a=="string"&&sl.test(a)){var l=sl.exec(a);if(l==null||t==null)u=void 0;else{var f=+l[1];u=t[1]+f}}else u=t==null?void 0:t[1];var d=[o,u];if(Pr(d))return t==null?d:ps(d,t,r)}}}var kr=1e9,ww={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Yu,te=!0,Qe="[DecimalError] ",Jt=Qe+"Invalid argument: ",Vu=Qe+"Exponent out of range: ",Sr=Math.floor,Ht=Math.pow,Pw=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ze,he=1e7,ee=7,Hh=9007199254740991,si=Sr(Hh/ee),j={};j.absoluteValue=j.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};j.comparedTo=j.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(n=a.d.length,i=e.d.length,t=0,r=n<i?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};j.decimalPlaces=j.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ee;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};j.dividedBy=j.div=function(e){return pt(this,new this.constructor(e))};j.dividedToIntegerBy=j.idiv=function(e){var t=this,r=t.constructor;return V(pt(t,new r(e),0,1),r.precision)};j.equals=j.eq=function(e){return!this.cmp(e)};j.exponent=function(){return ae(this)};j.greaterThan=j.gt=function(e){return this.cmp(e)>0};j.greaterThanOrEqualTo=j.gte=function(e){return this.cmp(e)>=0};j.isInteger=j.isint=function(){return this.e>this.d.length-2};j.isNegative=j.isneg=function(){return this.s<0};j.isPositive=j.ispos=function(){return this.s>0};j.isZero=function(){return this.s===0};j.lessThan=j.lt=function(e){return this.cmp(e)<0};j.lessThanOrEqualTo=j.lte=function(e){return this.cmp(e)<1};j.logarithm=j.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(ze))throw Error(Qe+"NaN");if(r.s<1)throw Error(Qe+(r.s?"NaN":"-Infinity"));return r.eq(ze)?new n(0):(te=!1,t=pt(Jr(r,a),Jr(e,a),a),te=!0,V(t,i))};j.minus=j.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Yh(t,e):qh(t,(e.s=-e.s,e))};j.modulo=j.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Qe+"NaN");return r.s?(te=!1,t=pt(r,e,0,1).times(e),te=!0,r.minus(t)):V(new n(r),i)};j.naturalExponential=j.exp=function(){return Vh(this)};j.naturalLogarithm=j.ln=function(){return Jr(this)};j.negated=j.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};j.plus=j.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?qh(t,e):Yh(t,(e.s=-e.s,e))};j.precision=j.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Jt+e);if(t=ae(i)+1,n=i.d.length-1,r=n*ee+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};j.squareRoot=j.sqrt=function(){var e,t,r,n,i,a,o,u=this,c=u.constructor;if(u.s<1){if(!u.s)return new c(0);throw Error(Qe+"NaN")}for(e=ae(u),te=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=at(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Sr((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t)):n=new c(i.toString()),r=c.precision,i=o=r+3;;)if(a=n,n=a.plus(pt(u,a,o+2)).times(.5),at(a.d).slice(0,o)===(t=at(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(V(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return te=!0,V(n,r)};j.times=j.mul=function(e){var t,r,n,i,a,o,u,c,s,l=this,f=l.constructor,d=l.d,h=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,r=l.e+e.e,c=d.length,s=h.length,c<s&&(a=d,d=h,h=a,o=c,c=s,s=o),a=[],o=c+s,n=o;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,i=c+n;i>n;)u=a[i]+h[n]*d[i-n-1]+t,a[i--]=u%he|0,t=u/he|0;a[i]=(a[i]+t)%he|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,te?V(e,f.precision):e};j.toDecimalPlaces=j.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(ct(e,0,kr),t===void 0?t=n.rounding:ct(t,0,8),V(r,e+ae(r)+1,t))};j.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=rr(n,!0):(ct(e,0,kr),t===void 0?t=i.rounding:ct(t,0,8),n=V(new i(n),e+1,t),r=rr(n,!0,e+1)),r};j.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?rr(i):(ct(e,0,kr),t===void 0?t=a.rounding:ct(t,0,8),n=V(new a(i),e+ae(i)+1,t),r=rr(n.abs(),!1,e+ae(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};j.toInteger=j.toint=function(){var e=this,t=e.constructor;return V(new t(e),ae(e)+1,t.rounding)};j.toNumber=function(){return+this};j.toPower=j.pow=function(e){var t,r,n,i,a,o,u=this,c=u.constructor,s=12,l=+(e=new c(e));if(!e.s)return new c(ze);if(u=new c(u),!u.s){if(e.s<1)throw Error(Qe+"Infinity");return u}if(u.eq(ze))return u;if(n=c.precision,e.eq(ze))return V(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=l<0?-l:l)<=Hh){for(i=new c(ze),t=Math.ceil(n/ee+4),te=!1;r%2&&(i=i.times(u),ms(i.d,t)),r=Sr(r/2),r!==0;)u=u.times(u),ms(u.d,t);return te=!0,e.s<0?new c(ze).div(i):V(i,n)}}else if(a<0)throw Error(Qe+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,te=!1,i=e.times(Jr(u,n+s)),te=!0,i=Vh(i),i.s=a,i};j.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ae(i),n=rr(i,r<=a.toExpNeg||r>=a.toExpPos)):(ct(e,1,kr),t===void 0?t=a.rounding:ct(t,0,8),i=V(new a(i),e,t),r=ae(i),n=rr(i,e<=r||r<=a.toExpNeg,e)),n};j.toSignificantDigits=j.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(ct(e,1,kr),t===void 0?t=n.rounding:ct(t,0,8)),V(new n(r),e,t)};j.toString=j.valueOf=j.val=j.toJSON=j[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ae(e),r=e.constructor;return rr(e,t<=r.toExpNeg||t>=r.toExpPos)};function qh(e,t){var r,n,i,a,o,u,c,s,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),te?V(t,f):t;if(c=e.d,s=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(n=c,a=-a,u=s.length):(n=s,i=o,u=c.length),o=Math.ceil(f/ee),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=c.length,a=s.length,u-a<0&&(a=u,n=s,s=c,c=n),r=0;a;)r=(c[--a]=c[a]+s[a]+r)/he|0,c[a]%=he;for(r&&(c.unshift(r),++i),u=c.length;c[--u]==0;)c.pop();return t.d=c,t.e=i,te?V(t,f):t}function ct(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Jt+e)}function at(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ee-n.length,r&&(a+=_t(r)),a+=n;o=e[t],n=o+"",r=ee-n.length,r&&(a+=_t(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var pt=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%he|0,o=a/he|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,c;if(a!=o)c=a>o?1:-1;else for(u=c=0;u<a;u++)if(n[u]!=i[u]){c=n[u]>i[u]?1:-1;break}return c}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*he+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,c,s,l,f,d,h,p,m,y,g,b,x,w,P,O,k,M,_=n.constructor,I=n.s==i.s?1:-1,C=n.d,T=i.d;if(!n.s)return new _(n);if(!i.s)throw Error(Qe+"Division by zero");for(c=n.e-i.e,k=T.length,P=C.length,h=new _(I),p=h.d=[],s=0;T[s]==(C[s]||0);)++s;if(T[s]>(C[s]||0)&&--c,a==null?b=a=_.precision:o?b=a+(ae(n)-ae(i))+1:b=a,b<0)return new _(0);if(b=b/ee+2|0,s=0,k==1)for(l=0,T=T[0],b++;(s<P||l)&&b--;s++)x=l*he+(C[s]||0),p[s]=x/T|0,l=x%T|0;else{for(l=he/(T[0]+1)|0,l>1&&(T=e(T,l),C=e(C,l),k=T.length,P=C.length),w=k,m=C.slice(0,k),y=m.length;y<k;)m[y++]=0;M=T.slice(),M.unshift(0),O=T[0],T[1]>=he/2&&++O;do l=0,u=t(T,m,k,y),u<0?(g=m[0],k!=y&&(g=g*he+(m[1]||0)),l=g/O|0,l>1?(l>=he&&(l=he-1),f=e(T,l),d=f.length,y=m.length,u=t(f,m,d,y),u==1&&(l--,r(f,k<d?M:T,d))):(l==0&&(u=l=1),f=T.slice()),d=f.length,d<y&&f.unshift(0),r(m,f,y),u==-1&&(y=m.length,u=t(T,m,k,y),u<1&&(l++,r(m,k<y?M:T,y))),y=m.length):u===0&&(l++,m=[0]),p[s++]=l,u&&m[0]?m[y++]=C[w]||0:(m=[C[w]],y=1);while((w++<P||m[0]!==void 0)&&b--)}return p[0]||p.shift(),h.e=c,V(h,o?a+ae(h)+1:a)}})();function Vh(e,t){var r,n,i,a,o,u,c=0,s=0,l=e.constructor,f=l.precision;if(ae(e)>16)throw Error(Vu+ae(e));if(!e.s)return new l(ze);for(te=!1,u=f,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(n=Math.log(Ht(2,s))/Math.LN10*2+5|0,u+=n,r=i=a=new l(ze),l.precision=u;;){if(i=V(i.times(e),u),r=r.times(++c),o=a.plus(pt(i,r,u)),at(o.d).slice(0,u)===at(a.d).slice(0,u)){for(;s--;)a=V(a.times(a),u);return l.precision=f,t==null?(te=!0,V(a,f)):a}a=o}}function ae(e){for(var t=e.e*ee,r=e.d[0];r>=10;r/=10)t++;return t}function Ua(e,t,r){if(t>e.LN10.sd())throw te=!0,r&&(e.precision=r),Error(Qe+"LN10 precision limit exceeded");return V(new e(e.LN10),t)}function _t(e){for(var t="";e--;)t+="0";return t}function Jr(e,t){var r,n,i,a,o,u,c,s,l,f=1,d=10,h=e,p=h.d,m=h.constructor,y=m.precision;if(h.s<1)throw Error(Qe+(h.s?"NaN":"-Infinity"));if(h.eq(ze))return new m(0);if(t==null?(te=!1,s=y):s=t,h.eq(10))return t==null&&(te=!0),Ua(m,s);if(s+=d,m.precision=s,r=at(p),n=r.charAt(0),a=ae(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=at(h.d),n=r.charAt(0),f++;a=ae(h),n>1?(h=new m("0."+r),a++):h=new m(n+"."+r.slice(1))}else return c=Ua(m,s+2,y).times(a+""),h=Jr(new m(n+"."+r.slice(1)),s-d).plus(c),m.precision=y,t==null?(te=!0,V(h,y)):h;for(u=o=h=pt(h.minus(ze),h.plus(ze),s),l=V(h.times(h),s),i=3;;){if(o=V(o.times(l),s),c=u.plus(pt(o,new m(i),s)),at(c.d).slice(0,s)===at(u.d).slice(0,s))return u=u.times(2),a!==0&&(u=u.plus(Ua(m,s+2,y).times(a+""))),u=pt(u,new m(f),s),m.precision=y,t==null?(te=!0,V(u,y)):u;u=c,i+=2}}function ys(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;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Sr(r/ee),e.d=[],n=(r+1)%ee,r<0&&(n+=ee),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ee;n<i;)e.d.push(+t.slice(n,n+=ee));t=t.slice(n),n=ee-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),te&&(e.e>si||e.e<-si))throw Error(Vu+r)}else e.s=0,e.e=0,e.d=[0];return e}function V(e,t,r){var n,i,a,o,u,c,s,l,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ee,i=t,s=f[l=0];else{if(l=Math.ceil((n+1)/ee),a=f.length,l>=a)return e;for(s=a=f[l],o=1;a>=10;a/=10)o++;n%=ee,i=n-ee+o}if(r!==void 0&&(a=Ht(10,o-i-1),u=s/a%10|0,c=t<0||f[l+1]!==void 0||s%a,c=r<4?(u||c)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||c||r==6&&(n>0?i>0?s/Ht(10,o-i):0:f[l-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return c?(a=ae(e),f.length=1,t=t-a-1,f[0]=Ht(10,(ee-t%ee)%ee),e.e=Sr(-t/ee)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=l,a=1,l--):(f.length=l+1,a=Ht(10,ee-n),f[l]=i>0?(s/Ht(10,o-i)%Ht(10,i)|0)*a:0),c)for(;;)if(l==0){(f[0]+=a)==he&&(f[0]=1,++e.e);break}else{if(f[l]+=a,f[l]!=he)break;f[l--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(te&&(e.e>si||e.e<-si))throw Error(Vu+ae(e));return e}function Yh(e,t){var r,n,i,a,o,u,c,s,l,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),te?V(t,h):t;if(c=e.d,f=t.d,n=t.e,s=e.e,c=c.slice(),o=s-n,o){for(l=o<0,l?(r=c,o=-o,u=f.length):(r=f,n=s,u=c.length),i=Math.max(Math.ceil(h/ee),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=c.length,u=f.length,l=i<u,l&&(u=i),i=0;i<u;i++)if(c[i]!=f[i]){l=c[i]<f[i];break}o=0}for(l&&(r=c,c=f,f=r,t.s=-t.s),u=c.length,i=f.length-u;i>0;--i)c[u++]=0;for(i=f.length;i>o;){if(c[--i]<f[i]){for(a=i;a&&c[--a]===0;)c[a]=he-1;--c[a],c[i]+=he}c[i]-=f[i]}for(;c[--u]===0;)c.pop();for(;c[0]===0;c.shift())--n;return c[0]?(t.d=c,t.e=n,te?V(t,h):t):new d(0)}function rr(e,t,r){var n,i=ae(e),a=at(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+_t(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+_t(-i-1)+a,r&&(n=r-o)>0&&(a+=_t(n))):i>=o?(a+=_t(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+_t(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=_t(n))),e.s<0?"-"+a:a}function ms(e,t){if(e.length>t)return e.length=t,!0}function Gh(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Jt+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return ys(o,a.toString())}else if(typeof a!="string")throw Error(Jt+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,Pw.test(a))ys(o,a);else throw Error(Jt+a)}if(i.prototype=j,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Gh,i.config=i.set=Ow,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function Ow(e){if(!e||typeof e!="object")throw Error(Qe+"Object expected");var t,r,n,i=["precision",1,kr,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Sr(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Jt+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Jt+r+": "+n);return this}var Yu=Gh(ww);ze=new Yu(1);const H=Yu;var Aw=e=>e,Xh={},Zh=e=>e===Xh,gs=e=>function t(){return arguments.length===0||arguments.length===1&&Zh(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},Qh=(e,t)=>e===1?t:gs(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter(o=>o!==Xh).length;return a>=e?t(...n):Qh(e-a,gs(function(){for(var o=arguments.length,u=new Array(o),c=0;c<o;c++)u[c]=arguments[c];var s=n.map(l=>Zh(l)?u.shift():l);return t(...s,...u)}))}),la=e=>Qh(e.length,e),Eo=(e,t)=>{for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},kw=la((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),Sw=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Aw;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce((u,c)=>c(u),a(...arguments))}},Mo=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),Jh=e=>{var t=null,r=null;return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t&&i.every((o,u)=>{var c;return o===((c=t)===null||c===void 0?void 0:c[u])})||(t=i,r=e(...i)),r}};function ev(e){var t;return e===0?t=1:t=Math.floor(new H(e).abs().log(10).toNumber())+1,t}function tv(e,t,r){for(var n=new H(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}la((e,t,r)=>{var n=+e,i=+t;return n+r*(i-n)});la((e,t,r)=>{var n=t-+e;return n=n||1/0,(r-e)/n});la((e,t,r)=>{var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});var rv=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},nv=(e,t,r)=>{if(e.lte(0))return new H(0);var n=ev(e.toNumber()),i=new H(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new H(Math.ceil(a.div(o).toNumber())).add(r).mul(o),c=u.mul(i);return t?new H(c.toNumber()):new H(Math.ceil(c.toNumber()))},Ew=(e,t,r)=>{var n=new H(1),i=new H(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new H(10).pow(ev(e)-1),i=new H(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new H(Math.floor(e)))}else e===0?i=new H(Math.floor((t-1)/2)):r||(i=new H(Math.floor(e)));var o=Math.floor((t-1)/2),u=Sw(kw(c=>i.add(new H(c-o).mul(n)).toNumber()),Eo);return u(0,t)},iv=function(t,r,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new H(0),tickMin:new H(0),tickMax:new H(0)};var o=nv(new H(r).sub(t).div(n-1),i,a),u;t<=0&&r>=0?u=new H(0):(u=new H(t).add(r).div(2),u=u.sub(new H(u).mod(o)));var c=Math.ceil(u.sub(t).div(o).toNumber()),s=Math.ceil(new H(r).sub(u).div(o).toNumber()),l=c+s+1;return l>n?iv(t,r,n,i,a+1):(l<n&&(s=r>0?s+(n-l):s,c=r>0?c:c+(n-l)),{step:o,tickMin:u.sub(new H(c).mul(o)),tickMax:u.add(new H(s).mul(o))})};function Mw(e){var[t,r]=e,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(n,2),[o,u]=rv([t,r]);if(o===-1/0||u===1/0){var c=u===1/0?[o,...Eo(0,n-1).map(()=>1/0)]:[...Eo(0,n-1).map(()=>-1/0),u];return t>r?Mo(c):c}if(o===u)return Ew(o,n,i);var{step:s,tickMin:l,tickMax:f}=iv(o,u,a,i,0),d=tv(l,f.add(new H(.1).mul(s)),s);return t>r?Mo(d):d}function Cw(e,t){var[r,n]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,o]=rv([r,n]);if(a===-1/0||o===1/0)return[r,n];if(a===o)return[a];var u=Math.max(t,2),c=nv(new H(o).sub(a).div(u-1),i,0),s=[...tv(new H(a),new H(o),c),o];return i===!1&&(s=s.map(l=>Math.round(l))),r>n?Mo(s):s}var _w=Jh(Mw),Tw=Jh(Cw),av=e=>e.rootProps.maxBarSize,jw=e=>e.rootProps.barGap,ov=e=>e.rootProps.barCategoryGap,Dw=e=>e.rootProps.barSize,sa=e=>e.rootProps.stackOffset,Gu=e=>e.options.chartName,Xu=e=>e.rootProps.syncId,uv=e=>e.rootProps.syncMethod,Zu=e=>e.options.eventEmitter,lt={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},Be={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},fa=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},Iw={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:lt.angleAxisId,includeHidden:!1,name:void 0,reversed:lt.reversed,scale:lt.scale,tick:lt.tick,tickCount:void 0,ticks:void 0,type:lt.type,unit:void 0},$w={allowDataOverflow:Be.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Be.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Be.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Be.scale,tick:Be.tick,tickCount:Be.tickCount,ticks:void 0,type:Be.type,unit:void 0},Nw={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:lt.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:lt.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:lt.scale,tick:lt.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Lw={allowDataOverflow:Be.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Be.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Be.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Be.scale,tick:Be.tick,tickCount:Be.tickCount,ticks:void 0,type:"category",unit:void 0},Qu=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Nw:Iw,Ju=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Lw:$w,da=e=>e.polarOptions,ec=A([Ot,At,pe],$g),cv=A([da,ec],(e,t)=>{if(e!=null)return nt(e.innerRadius,t,0)}),lv=A([da,ec],(e,t)=>{if(e!=null)return nt(e.outerRadius,t,t*.8)}),Rw=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},sv=A([da],Rw);A([Qu,sv],fa);var fv=A([ec,cv,lv],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});A([Ju,fv],fa);var dv=A([U,da,cv,lv,Ot,At],(e,t,r,n,i,a)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:u,startAngle:c,endAngle:s}=t;return{cx:nt(o,i,i/2),cy:nt(u,a,a/2),innerRadius:r,outerRadius:n,startAngle:c,endAngle:s,clockWise:!1}}}),ce=(e,t)=>t,ha=(e,t,r)=>r;function va(e){return e==null?void 0:e.id}var fe=e=>{var t=U(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Er=e=>e.tooltip.settings.axisId,me=e=>{var t=fe(e),r=Er(e);return fn(e,t,r)},hv=A([me],e=>e==null?void 0:e.dataKey);function vv(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(u=>{var c,s=(c=u.data)!==null&&c!==void 0?c:n;if(!(s==null||s.length===0)){var l=va(u);s.forEach((f,d)=>{var h=a==null||i?d:String(ve(f,a,null)),p=ve(f,u.dataKey,0),m;o.has(h)?m=o.get(h):m={},Object.assign(m,{[l]:p}),o.set(h,m)})}}),Array.from(o.values())}function pa(e){return e.stackId!=null&&e.dataKey!=null}function bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bs(Object(r),!0).forEach(function(n){Bw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bw(e,t,r){return(t=zw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zw(e){var t=Kw(e,"string");return typeof t=="symbol"?t:t+""}function Kw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Co=[0,"auto"],Le={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},pv=(e,t)=>e.cartesianAxis.xAxis[t],St=(e,t)=>{var r=pv(e,t);return r??Le},Re={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Co,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,width:on},yv=(e,t)=>e.cartesianAxis.yAxis[t],Et=(e,t)=>{var r=yv(e,t);return r??Re},Fw={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:""},tc=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??Fw},Ie=(e,t,r)=>{switch(t){case"xAxis":return St(e,r);case"yAxis":return Et(e,r);case"zAxis":return tc(e,r);case"angleAxis":return Qu(e,r);case"radiusAxis":return Ju(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Ww=(e,t,r)=>{switch(t){case"xAxis":return St(e,r);case"yAxis":return Et(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},fn=(e,t,r)=>{switch(t){case"xAxis":return St(e,r);case"yAxis":return Et(e,r);case"angleAxis":return Qu(e,r);case"radiusAxis":return Ju(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},mv=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function gv(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 ya=e=>e.graphicalItems.cartesianItems,Uw=A([ce,ha],gv),bv=(e,t,r)=>e.filter(r).filter(n=>(t==null?void 0:t.includeHidden)===!0?!0:!n.hide),dn=A([ya,Ie,Uw],bv),xv=A([dn],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(pa)),wv=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),Pv=A([dn],wv),Ov=e=>e.map(t=>t.data).filter(Boolean).flat(1),Hw=A([dn],Ov),Av=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},rc=A([Hw,ca],Av),kv=(e,t,r)=>(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:ve(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(i=>({value:ve(i,n)}))):e.map(n=>({value:n})),ma=A([rc,Ie,dn],kv);function Sv(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function cr(e){return e.filter(t=>ut(t)||t instanceof Date).map(Number).filter(t=>_e(t)===!1)}function qw(e,t,r){return!r||typeof t!="number"||_e(t)?[]:r.length?cr(r.flatMap(n=>{var i=ve(e,n.dataKey),a,o;if(Array.isArray(i)?[a,o]=i:a=o=i,!(!we(a)||!we(o)))return[t-a,t+o]})):[]}var Vw=A([xv,ca,me],vv),Ev=(e,t,r)=>{var n={},i=t.reduce((a,o)=>(o.stackId==null||(a[o.stackId]==null&&(a[o.stackId]=[]),a[o.stackId].push(o)),a),n);return Object.fromEntries(Object.entries(i).map(a=>{var[o,u]=a,c=u.map(va);return[o,{stackedData:Zg(e,c,r),graphicalItems:u}]}))},en=A([Vw,xv,sa],Ev),Mv=(e,t,r)=>{var{dataStartIndex:n,dataEndIndex:i}=t;if(r!=="zAxis"){var a=t1(e,n,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},Yw=A([en,zt,ce],Mv),Cv=(e,t,r,n,i)=>r.length>0?e.flatMap(a=>r.flatMap(o=>{var u,c,s=(u=n[o.id])===null||u===void 0?void 0:u.filter(f=>Sv(i,f)),l=ve(a,(c=t.dataKey)!==null&&c!==void 0?c:o.dataKey);return{value:l,errorDomain:qw(a,l,s)}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(a=>({value:ve(a,t.dataKey),errorDomain:[]})):e.map(a=>({value:a,errorDomain:[]})),ga=e=>e.errorBars,_v=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>Sv(r,n));A([Pv,ga,ce],_v);var Gw=A([rc,Ie,Pv,ga,ce],Cv);function Xw(e){var{value:t}=e;if(ut(t)||t instanceof Date)return t}var xs=e=>{var t=e.flatMap(n=>[n.value,n.errorDomain]).flat(1),r=cr(t);if(r.length!==0)return[Math.min(...r),Math.max(...r)]},Zw=(e,t,r)=>{var n=e.map(Xw).filter(i=>i!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&kf(n))?sh(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},nc=e=>{var t;if(e==null||!("domain"in e))return Co;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var r=cr(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:Co},di=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.filter(Boolean);if(i.length!==0){var a=i.flat(),o=Math.min(...a),u=Math.max(...a);return[o,u]}},Tv=e=>e.referenceElements.dots,Mr=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),Qw=A([Tv,ce,ha],Mr),jv=e=>e.referenceElements.areas,Jw=A([jv,ce,ha],Mr),Dv=e=>e.referenceElements.lines,eP=A([Dv,ce,ha],Mr),Iv=(e,t)=>{var r=cr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},tP=A(Qw,ce,Iv),$v=(e,t)=>{var r=cr(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},rP=A([Jw,ce],$v),Nv=(e,t)=>{var r=cr(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]},nP=A(eP,ce,Nv),iP=A(tP,nP,rP,(e,t,r)=>di(e,r,t)),aP=A([Ie],nc),Lv=(e,t,r,n,i,a,o)=>{var u=bw(t,e.allowDataOverflow);if(u!=null)return u;var c=a==="vertical"&&o==="xAxis"||a==="horizontal"&&o==="yAxis",s=c?di(r,i,xs(n)):di(i,xs(n));return xw(t,s,e.allowDataOverflow)},oP=A([Ie,aP,Yw,Gw,iP,U,ce],Lv),uP=[0,1],Rv=(e,t,r,n,i,a,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:u,type:c}=e,s=Pt(t,a);return s&&u==null?sh(0,r.length):c==="category"?Zw(n,e,s):i==="expand"?uP:o}},ic=A([Ie,U,rc,ma,sa,ce,oP],Rv),Bv=(e,t,r,n,i)=>{if(e!=null){var{scale:a,type:o}=e;if(a==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":o==="category"?"band":"linear";if(typeof a=="string"){var u="scale".concat(rn(a));return u in Kr?u:"point"}}},hn=A([Ie,U,mv,Gu,ce],Bv);function cP(e){if(e!=null){if(e in Kr)return Kr[e]();var t="scale".concat(rn(e));if(t in Kr)return Kr[t]()}}function ac(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var i=cP(t);if(i!=null){var a=i.domain(r).range(n);return qg(a),a}}}var zv=(e,t,r)=>{var n=nc(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Pr(e))return _w(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Pr(e))return Tw(e,t.tickCount,t.allowDecimals)}},oc=A([ic,fn,hn],zv),Kv=(e,t,r,n)=>{if(n!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Pr(t)&&Array.isArray(r)&&r.length>0){var i=t[0],a=r[0],o=t[1],u=r[r.length-1];return[Math.min(i,a),Math.max(o,u)]}return t},lP=A([Ie,ic,oc,ce],Kv),sP=A(ma,Ie,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(cr(e.map(u=>u.value))).sort((u,c)=>u-c);if(n.length<2)return 1/0;var i=n[n.length-1]-n[0];if(i===0)return 1/0;for(var a=0;a<n.length-1;a++){var o=n[a+1]-n[a];r=Math.min(r,o)}return r/i}}),Fv=A(sP,U,ov,pe,(e,t,r,n)=>n,(e,t,r,n,i)=>{if(!we(e))return 0;var a=t==="vertical"?n.height:n.width;if(i==="gap")return e*a/2;if(i==="no-gap"){var o=nt(r,e*a),u=e*a/2;return u-o-(u-o)/a*o}return 0}),fP=(e,t)=>{var r=St(e,t);return r==null||typeof r.padding!="string"?0:Fv(e,"xAxis",t,r.padding)},dP=(e,t)=>{var r=Et(e,t);return r==null||typeof r.padding!="string"?0:Fv(e,"yAxis",t,r.padding)},hP=A(St,fP,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((r=i.left)!==null&&r!==void 0?r:0)+t,right:((n=i.right)!==null&&n!==void 0?n:0)+t}}),vP=A(Et,dP,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((r=i.top)!==null&&r!==void 0?r:0)+t,bottom:((n=i.bottom)!==null&&n!==void 0?n:0)+t}}),pP=A([pe,hP,Qi,Zi,(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]}),yP=A([pe,U,vP,Qi,Zi,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),vn=(e,t,r,n)=>{var i;switch(t){case"xAxis":return pP(e,r,n);case"yAxis":return yP(e,r,n);case"zAxis":return(i=tc(e,r))===null||i===void 0?void 0:i.range;case"angleAxis":return sv(e);case"radiusAxis":return fv(e,r);default:return}},Wv=A([Ie,vn],fa),Cr=A([Ie,hn,lP,Wv],ac);A([dn,ga,ce],_v);function Uv(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var ba=(e,t)=>t,xa=(e,t,r)=>r,mP=A(Gi,ba,xa,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Uv)),gP=A(Xi,ba,xa,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(Uv)),Hv=(e,t)=>({width:e.width,height:t.height}),bP=(e,t)=>{var r=typeof t.width=="number"?t.width:on;return{width:r,height:e.height}},qv=A(pe,St,Hv),xP=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},wP=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},PP=A(At,pe,mP,ba,xa,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var c=Hv(t,u);o==null&&(o=xP(t,n,e));var s=n==="top"&&!i||n==="bottom"&&i;a[u.id]=o-Number(s)*c.height,o+=(s?-1:1)*c.height}),a}),OP=A(Ot,pe,gP,ba,xa,(e,t,r,n,i)=>{var a={},o;return r.forEach(u=>{var c=bP(t,u);o==null&&(o=wP(t,n,e));var s=n==="left"&&!i||n==="right"&&i;a[u.id]=o-Number(s)*c.width,o+=(s?-1:1)*c.width}),a}),AP=(e,t)=>{var r=St(e,t);if(r!=null)return PP(e,r.orientation,r.mirror)},kP=A([pe,St,AP,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),SP=(e,t)=>{var r=Et(e,t);if(r!=null)return OP(e,r.orientation,r.mirror)},EP=A([pe,Et,SP,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var i=r==null?void 0:r[n];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),Vv=A(pe,Et,(e,t)=>{var r=typeof t.width=="number"?t.width:on;return{width:r,height:e.height}}),ws=(e,t,r)=>{switch(t){case"xAxis":return qv(e,r).width;case"yAxis":return Vv(e,r).height;default:return}},Yv=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,u=Pt(e,n),c=t.map(s=>s.value);if(o&&u&&a==="category"&&i&&kf(c))return c}},uc=A([U,ma,Ie,ce],Yv),Gv=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:i,scale:a}=r,o=Pt(e,n);if(o&&(i==="number"||a!=="auto"))return t.map(u=>u.value)}},cc=A([U,ma,fn,ce],Gv),Ps=A([U,Ww,hn,Cr,uc,cc,vn,oc,ce],(e,t,r,n,i,a,o,u,c)=>{if(t==null)return null;var s=Pt(e,c);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:c,categoricalDomain:a,duplicateDomain:i,isCategorical:s,niceTicks:u,range:o,realScaleType:r,scale:n}}),MP=(e,t,r,n,i,a,o,u,c)=>{if(!(t==null||n==null)){var s=Pt(e,c),{type:l,ticks:f,tickCount:d}=t,h=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,p=l==="category"&&n.bandwidth?n.bandwidth()/h:0;p=c==="angleAxis"&&a!=null&&a.length>=2?Me(a[0]-a[1])*2*p:p;var m=f||i;if(m){var y=m.map((g,b)=>{var x=o?o.indexOf(g):g;return{index:b,coordinate:n(x)+p,value:g,offset:p}});return y.filter(g=>!_e(g.coordinate))}return s&&u?u.map((g,b)=>({coordinate:n(g)+p,value:g,index:b,offset:p})):n.ticks?n.ticks(d).map(g=>({coordinate:n(g)+p,value:g,offset:p})):n.domain().map((g,b)=>({coordinate:n(g)+p,value:o?o[g]:g,index:b,offset:p}))}},Xv=A([U,fn,hn,Cr,oc,vn,uc,cc,ce],MP),CP=(e,t,r,n,i,a,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var u=Pt(e,o),{tickCount:c}=t,s=0;return s=o==="angleAxis"&&(n==null?void 0:n.length)>=2?Me(n[0]-n[1])*2*s:s,u&&a?a.map((l,f)=>({coordinate:r(l)+s,value:l,index:f,offset:s})):r.ticks?r.ticks(c).map(l=>({coordinate:r(l)+s,value:l,offset:s})):r.domain().map((l,f)=>({coordinate:r(l)+s,value:i?i[l]:l,index:f,offset:s}))}},It=A([U,fn,Cr,vn,uc,cc,ce],CP),$t=A(Ie,Cr,(e,t)=>{if(!(e==null||t==null))return fi(fi({},e),{},{scale:t})}),_P=A([Ie,hn,ic,Wv],ac);A((e,t,r)=>tc(e,r),_P,(e,t)=>{if(!(e==null||t==null))return fi(fi({},e),{},{scale:t})});var TP=A([U,Gi,Xi],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),Zv=e=>e.options.defaultTooltipEventType,Qv=e=>e.options.validateTooltipEventTypes;function Jv(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function lc(e,t){var r=Zv(e),n=Qv(e);return Jv(t,r,n)}function jP(e){return N(t=>lc(t,e))}var ep=(e,t)=>{var r,n=Number(t);if(!(_e(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},DP=e=>e.tooltip.settings,jt={active:!1,index:null,dataKey:void 0,coordinate:void 0},IP={itemInteraction:{click:jt,hover:jt},axisInteraction:{click:jt,hover:jt},keyboardInteraction:jt,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},tp=We({name:"tooltip",initialState:IP,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var r=vt(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,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.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.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.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,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.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,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:$P,removeTooltipEntrySettings:NP,setTooltipSettingsState:LP,setActiveMouseOverItemIndex:rp,mouseLeaveItem:RP,mouseLeaveChart:np,setActiveClickItemIndex:BP,setMouseOverAxisIndex:ip,setMouseClickAxisIndex:zP,setSyncInteraction:_o,setKeyboardInteraction:To}=tp.actions,KP=tp.reducer;function Os(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Os(Object(r),!0).forEach(function(n){FP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Os(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FP(e,t,r){return(t=WP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WP(e){var t=UP(e,"string");return typeof t=="symbol"?t:t+""}function UP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HP(e,t,r){return t==="axis"?r==="click"?e.axisInteraction.click:e.axisInteraction.hover:r==="click"?e.itemInteraction.click:e.itemInteraction.hover}function qP(e){return e.index!=null}var ap=(e,t,r,n)=>{if(t==null)return jt;var i=HP(e,t,r);if(i==null)return jt;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(qP(i)){if(a)return jn(jn({},i),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n};return jn(jn({},jt),{},{coordinate:i.coordinate})},sc=(e,t)=>{var r=e==null?void 0:e.index;if(r==null)return null;var n=Number(r);if(!we(n))return r;var i=0,a=1/0;return t.length>0&&(a=t.length-1),String(Math.max(i,Math.min(n,a)))},op=(e,t,r,n,i,a,o,u)=>{if(!(a==null||u==null)){var c=o[0],s=c==null?void 0:u(c.positions,a);if(s!=null)return s;var l=i==null?void 0:i[Number(a)];if(l)switch(r){case"horizontal":return{x:l.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:l.coordinate}}}},up=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return r==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&n!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(a=>{var o;return((o=a.settings)===null||o===void 0?void 0:o.dataKey)===i})},pn=e=>e.options.tooltipPayloadSearcher,_r=e=>e.tooltip;function As(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ks(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?As(Object(r),!0).forEach(function(n){VP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):As(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VP(e,t,r){return(t=YP(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YP(e){var t=GP(e,"string");return typeof t=="symbol"?t:t+""}function GP(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XP(e,t){return e??t}var cp=(e,t,r,n,i,a,o)=>{if(!(t==null||a==null)){var{chartData:u,computedData:c,dataStartIndex:s,dataEndIndex:l}=r,f=[];return e.reduce((d,h)=>{var p,{dataDefinedOnItem:m,settings:y}=h,g=XP(m,u),b=Array.isArray(g)?Hd(g,s,l):g,x=(p=y==null?void 0:y.dataKey)!==null&&p!==void 0?p:n,w=y==null?void 0:y.nameKey,P;if(n&&Array.isArray(b)&&!Array.isArray(b[0])&&o==="axis"?P=Sf(b,n,i):P=a(b,t,c,w),Array.isArray(P))P.forEach(k=>{var M=ks(ks({},y),{},{name:k.name,unit:k.unit,color:void 0,fill:void 0});d.push(fl({tooltipEntrySettings:M,dataKey:k.dataKey,payload:k.payload,value:ve(k.payload,k.dataKey),name:k.name}))});else{var O;d.push(fl({tooltipEntrySettings:y,dataKey:x,payload:P,value:ve(P,x),name:(O=ve(P,w))!==null&&O!==void 0?O:y==null?void 0:y.name}))}return d},f)}},fc=A([me,U,mv,Gu,fe],Bv),ZP=A([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),QP=A([fe,Er],gv),yn=A([ZP,me,QP],bv),JP=A([yn],e=>e.filter(pa)),eO=A([yn],Ov),Tr=A([eO,zt],Av),tO=A([JP,zt,me],vv),dc=A([Tr,me,yn],kv),rO=A([me],nc),nO=A([yn],e=>e.filter(pa)),iO=A([tO,nO,sa],Ev),aO=A([iO,zt,fe],Mv),oO=A([yn],wv),uO=A([Tr,me,oO,ga,fe],Cv),cO=A([Tv,fe,Er],Mr),lO=A([cO,fe],Iv),sO=A([jv,fe,Er],Mr),fO=A([sO,fe],$v),dO=A([Dv,fe,Er],Mr),hO=A([dO,fe],Nv),vO=A([lO,hO,fO],di),pO=A([me,rO,aO,uO,vO,U,fe],Lv),lp=A([me,U,Tr,dc,sa,fe,pO],Rv),yO=A([lp,me,fc],zv),mO=A([me,lp,yO,fe],Kv),sp=e=>{var t=fe(e),r=Er(e),n=!1;return vn(e,t,r,n)},fp=A([me,sp],fa),dp=A([me,fc,mO,fp],ac),gO=A([U,dc,me,fe],Yv),bO=A([U,dc,me,fe],Gv),xO=(e,t,r,n,i,a,o,u)=>{if(t){var{type:c}=t,s=Pt(e,u);if(n){var l=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=c==="category"&&n.bandwidth?n.bandwidth()/l:0;return f=u==="angleAxis"&&i!=null&&(i==null?void 0:i.length)>=2?Me(i[0]-i[1])*2*f:f,s&&o?o.map((d,h)=>({coordinate:n(d)+f,value:d,index:h,offset:f})):n.domain().map((d,h)=>({coordinate:n(d)+f,value:a?a[d]:d,index:h,offset:f}))}}},Mt=A([U,me,fc,dp,sp,gO,bO,fe],xO),hc=A([Zv,Qv,DP],(e,t,r)=>Jv(r.shared,e,t)),hp=e=>e.tooltip.settings.trigger,vc=e=>e.tooltip.settings.defaultIndex,wa=A([_r,hc,hp,vc],ap),nr=A([wa,Tr],sc),vp=A([Mt,nr],ep),pp=A([wa],e=>{if(e)return e.dataKey}),yp=A([_r,hc,hp,vc],up),wO=A([Ot,At,U,pe,Mt,vc,yp,pn],op),PO=A([wa,wO],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),OO=A([wa],e=>e.active),AO=A([yp,nr,zt,hv,vp,pn,hc],cp),kO=A([AO],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function Ss(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Es(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ss(Object(r),!0).forEach(function(n){SO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ss(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SO(e,t,r){return(t=EO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EO(e){var t=MO(e,"string");return typeof t=="symbol"?t:t+""}function MO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var CO=()=>N(me),_O=()=>{var e=CO(),t=N(Mt),r=N(dp);return Vr(Es(Es({},e),{},{scale:r}),t)},mp=()=>N(Gu),pc=(e,t)=>t,gp=(e,t,r)=>r,yc=(e,t,r,n)=>n,TO=A(Mt,e=>Fi(e,t=>t.coordinate)),mc=A([_r,pc,gp,yc],ap),bp=A([mc,Tr],sc),jO=(e,t,r)=>{if(t!=null){var n=_r(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},xp=A([_r,pc,gp,yc],up),hi=A([Ot,At,U,pe,Mt,yc,xp,pn],op),DO=A([mc,hi],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),wp=A(Mt,bp,ep),IO=A([xp,bp,zt,hv,wp,pn,pc],cp),$O=A([mc],e=>({isActive:e.active,activeIndex:e.index})),NO=(e,t,r,n,i,a,o,u)=>{if(!(!e||!t||!n||!i||!a)){var c=r1(e.chartX,e.chartY,t,r,u);if(c){var s=i1(c,t),l=Ug(s,o,a,n,i),f=n1(t,a,l,c);return{activeIndex:String(l),activeCoordinate:f}}}};function jo(){return jo=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},jo.apply(null,arguments)}function Ms(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ms(Object(r),!0).forEach(function(n){LO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ms(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function LO(e,t,r){return(t=RO(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RO(e){var t=BO(e,"string");return typeof t=="symbol"?t:t+""}function BO(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zO(e){var{coordinate:t,payload:r,index:n,offset:i,tooltipAxisBandSize:a,layout:o,cursor:u,tooltipEventType:c,chartName:s}=e,l=t,f=r,d=n;if(!u||!l||s!=="ScatterChart"&&c!=="axis")return null;var h,p;if(s==="ScatterChart")h=l,p=cb;else if(s==="BarChart")h=lb(o,l,i,a),p=nh;else if(o==="radial"){var{cx:m,cy:y,radius:g,startAngle:b,endAngle:x}=ih(l);h={cx:m,cy:y,startAngle:b,endAngle:x,innerRadius:g,outerRadius:g},p=oh}else h={points:Fb(o,l,i)},p=Nn;var w=typeof u=="object"&&"className"in u?u.className:void 0,P=Dn(Dn(Dn(Dn({stroke:"#ccc",pointerEvents:"none"},i),h),oe(u,!1)),{},{payload:f,payloadIndex:d,className:q("recharts-tooltip-cursor",w)});return v.isValidElement(u)?v.cloneElement(u,P):v.createElement(p,P)}function KO(e){var t=_O(),r=Xd(),n=Ji(),i=mp();return v.createElement(zO,jo({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:r,layout:n,tooltipAxisBandSize:t,chartName:i}))}var Pp=v.createContext(null),FO=()=>v.useContext(Pp),Op={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(c,s,l){this.fn=c,this.context=s,this.once=l||!1}function a(c,s,l,f,d){if(typeof l!="function")throw new TypeError("The listener must be a function");var h=new i(l,f||c,d),p=r?r+s:s;return c._events[p]?c._events[p].fn?c._events[p]=[c._events[p],h]:c._events[p].push(h):(c._events[p]=h,c._eventsCount++),c}function o(c,s){--c._eventsCount===0?c._events=new n:delete c._events[s]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var s=[],l,f;if(this._eventsCount===0)return s;for(f in l=this._events)t.call(l,f)&&s.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(l)):s},u.prototype.listeners=function(s){var l=r?r+s:s,f=this._events[l];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d<h;d++)p[d]=f[d].fn;return p},u.prototype.listenerCount=function(s){var l=r?r+s:s,f=this._events[l];return f?f.fn?1:f.length:0},u.prototype.emit=function(s,l,f,d,h,p){var m=r?r+s:s;if(!this._events[m])return!1;var y=this._events[m],g=arguments.length,b,x;if(y.fn){switch(y.once&&this.removeListener(s,y.fn,void 0,!0),g){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,l),!0;case 3:return y.fn.call(y.context,l,f),!0;case 4:return y.fn.call(y.context,l,f,d),!0;case 5:return y.fn.call(y.context,l,f,d,h),!0;case 6:return y.fn.call(y.context,l,f,d,h,p),!0}for(x=1,b=new Array(g-1);x<g;x++)b[x-1]=arguments[x];y.fn.apply(y.context,b)}else{var w=y.length,P;for(x=0;x<w;x++)switch(y[x].once&&this.removeListener(s,y[x].fn,void 0,!0),g){case 1:y[x].fn.call(y[x].context);break;case 2:y[x].fn.call(y[x].context,l);break;case 3:y[x].fn.call(y[x].context,l,f);break;case 4:y[x].fn.call(y[x].context,l,f,d);break;default:if(!b)for(P=1,b=new Array(g-1);P<g;P++)b[P-1]=arguments[P];y[x].fn.apply(y[x].context,b)}}return!0},u.prototype.on=function(s,l,f){return a(this,s,l,f,!1)},u.prototype.once=function(s,l,f){return a(this,s,l,f,!0)},u.prototype.removeListener=function(s,l,f,d){var h=r?r+s:s;if(!this._events[h])return this;if(!l)return o(this,h),this;var p=this._events[h];if(p.fn)p.fn===l&&(!d||p.once)&&(!f||p.context===f)&&o(this,h);else{for(var m=0,y=[],g=p.length;m<g;m++)(p[m].fn!==l||d&&!p[m].once||f&&p[m].context!==f)&&y.push(p[m]);y.length?this._events[h]=y.length===1?y[0]:y:o(this,h)}return this},u.prototype.removeAllListeners=function(s){var l;return s?(l=r?r+s:s,this._events[l]&&o(this,l)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Op);var WO=Op.exports;const UO=Lt(WO);var tn=new UO,Do="recharts.syncEvent.tooltip",Cs="recharts.syncEvent.brush";function Ap(e,t){if(t){var r=Number.parseInt(t,10);if(!_e(r))return e==null?void 0:e[r]}}var HO={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},kp=We({name:"options",initialState:HO,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),qO=kp.reducer,{createEventEmitter:VO}=kp.actions;function YO(e){return e.tooltip.syncInteraction}var GO={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},Sp=We({name:"chartData",initialState:GO,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}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;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:_s,setDataStartEndIndexes:XO,setComputedData:pj}=Sp.actions,ZO=Sp.reducer,QO=["x","y"];function Ts(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ft(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ts(Object(r),!0).forEach(function(n){JO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ts(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JO(e,t,r){return(t=eA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eA(e){var t=tA(e,"string");return typeof t=="symbol"?t:t+""}function tA(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rA(e,t){if(e==null)return{};var r,n,i=nA(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function nA(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ep=()=>{};function iA(){var e=N(Xu),t=N(Zu),r=ue(),n=N(uv),i=N(Mt),a=Ji(),o=bu(),u=N(c=>c.rootProps.className);v.useEffect(()=>{if(e==null)return Ep;var c=(s,l,f)=>{if(t!==f&&e===s){if(n==="index"){var d;if(o&&l!==null&&l!==void 0&&(d=l.payload)!==null&&d!==void 0&&d.coordinate){var h=l.payload.coordinate,{x:p,y:m}=h,y=rA(h,QO),g=Ft(Ft(Ft({},y),typeof p=="number"&&{x:Math.max(o.x,Math.min(p,o.x+o.width))}),typeof m=="number"&&{y:Math.max(o.y,Math.min(m,o.y+o.height))}),b=Ft(Ft({},l),{},{payload:Ft(Ft({},l.payload),{},{coordinate:g})});r(b)}else r(l);return}if(i!=null){var x;if(typeof n=="function"){var w={activeTooltipIndex:l.payload.index==null?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:l.payload.index==null?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},P=n(i,w);x=i[P]}else n==="value"&&(x=i.find(L=>String(L.value)===l.payload.label));var{coordinate:O}=l.payload;if(x==null||l.payload.active===!1||O==null||o==null){r(_o({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:k,y:M}=O,_=Math.min(k,o.x+o.width),I=Math.min(M,o.y+o.height),C={x:a==="horizontal"?x.coordinate:_,y:a==="horizontal"?I:x.coordinate},T=_o({active:l.payload.active,coordinate:C,dataKey:l.payload.dataKey,index:String(x.index),label:l.payload.label});r(T)}}};return tn.on(Do,c),()=>{tn.off(Do,c)}},[u,r,t,e,n,i,a,o])}function aA(){var e=N(Xu),t=N(Zu),r=ue();v.useEffect(()=>{if(e==null)return Ep;var n=(i,a,o)=>{t!==o&&e===i&&r(XO(a))};return tn.on(Cs,n),()=>{tn.off(Cs,n)}},[r,t,e])}function oA(){var e=ue();v.useEffect(()=>{e(VO())},[e]),iA(),aA()}function uA(e,t,r,n,i,a){var o=N(d=>jO(d,e,t)),u=N(Zu),c=N(Xu),s=N(uv),l=N(YO),f=l==null?void 0:l.active;v.useEffect(()=>{if(!f&&c!=null&&u!=null){var d=_o({active:a,coordinate:r,dataKey:o,index:i,label:typeof n=="number"?String(n):n});tn.emit(Do,c,d,u)}},[f,r,o,i,n,u,c,s,a])}function js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ds(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?js(Object(r),!0).forEach(function(n){cA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):js(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cA(e,t,r){return(t=lA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lA(e){var t=sA(e,"string");return typeof t=="symbol"?t:t+""}function sA(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fA(e){return e.dataKey}function dA(e,t){return v.isValidElement(e)?v.cloneElement(e,t):typeof e=="function"?v.createElement(e,t):v.createElement(z1,t)}var Is=[],hA={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!ar.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function yj(e){var t=De(e,hA),{active:r,allowEscapeViewBox:n,animationDuration:i,animationEasing:a,content:o,filterNull:u,isAnimationActive:c,offset:s,payloadUniqBy:l,position:f,reverseDirection:d,useTranslate3d:h,wrapperStyle:p,cursor:m,shared:y,trigger:g,defaultIndex:b,portal:x,axisId:w}=t,P=ue(),O=typeof b=="number"?String(b):b;v.useEffect(()=>{P(LP({shared:y,trigger:g,axisId:w,active:r,defaultIndex:O}))},[P,y,g,w,r,O]);var k=bu(),M=Qd(),_=jP(y),{activeIndex:I,isActive:C}=N(Ue=>$O(Ue,_,g,O)),T=N(Ue=>IO(Ue,_,g,O)),L=N(Ue=>wp(Ue,_,g,O)),R=N(Ue=>DO(Ue,_,g,O)),K=T,G=FO(),Q=r??C,[de,J]=xd([K,Q]),Ct=_==="axis"?L:void 0;uA(_,g,R,Ct,I,Q);var lr=x??G;if(lr==null)return null;var B=K??Is;Q||(B=Is),u&&B.length&&(B=sd(K.filter(Ue=>Ue.value!=null&&(Ue.hide!==!0||t.includeHidden)),l,fA));var Pa=B.length>0,Oa=v.createElement(V1,{allowEscapeViewBox:n,animationDuration:i,animationEasing:a,isAnimationActive:c,active:Q,coordinate:R,hasPayload:Pa,offset:s,position:f,reverseDirection:d,useTranslate3d:h,viewBox:k,wrapperStyle:p,lastBoundingBox:de,innerRef:J,hasPortalFromProps:!!x},dA(o,Ds(Ds({},t),{},{payload:B,label:Ct,active:Q,coordinate:R,accessibilityLayer:M})));return v.createElement(v.Fragment,null,bf.createPortal(Oa,lr),Q&&v.createElement(KO,{cursor:m,tooltipEventType:_,coordinate:R,payload:K,index:I}))}var Mp={},Cp={},_p={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:i,edges:a}={}){let o,u=null;const c=a!=null&&a.includes("leading"),s=a==null||a.includes("trailing"),l=()=>{u!==null&&(r.apply(o,u),o=void 0,u=null)},f=()=>{s&&l(),m()};let d=null;const h=()=>{d!=null&&clearTimeout(d),d=setTimeout(()=>{d=null,f()},n)},p=()=>{d!==null&&(clearTimeout(d),d=null)},m=()=>{p(),o=void 0,u=null},y=()=>{l()},g=function(...b){if(i!=null&&i.aborted)return;o=this,u=b;const x=d==null;h(),c&&x&&l()};return g.schedule=h,g.cancel=m,g.flush=y,i==null||i.addEventListener("abort",m,{once:!0}),g}e.debounce=t})(_p);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_p;function r(n,i=0,a={}){typeof a!="object"&&(a={});const{leading:o=!1,trailing:u=!0,maxWait:c}=a,s=Array(2);o&&(s[0]="leading"),u&&(s[1]="trailing");let l,f=null;const d=t.debounce(function(...m){l=n.apply(this,m),f=null},i,{edges:s}),h=function(...m){return c!=null&&(f===null&&(f=Date.now()),Date.now()-f>=c)?(l=n.apply(this,m),f=Date.now(),d.cancel(),d.schedule(),l):(d.apply(this,m),l)},p=()=>(d.flush(),l);return h.cancel=d.cancel,h.flush=p,h}e.debounce=r})(Cp);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Cp;function r(n,i=0,a={}){const{leading:o=!0,trailing:u=!0}=a;return t.debounce(n,i,{leading:o,maxWait:i,trailing:u})}e.throttle=r})(Mp);var vA=Mp.throttle;const pA=Lt(vA);var Fr=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function $s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ha(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$s(Object(r),!0).forEach(function(n){yA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$s(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yA(e,t,r){return(t=mA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mA(e){var t=gA(e,"string");return typeof t=="symbol"?t:t+""}function gA(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var mj=v.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:i="100%",height:a="100%",minWidth:o=0,minHeight:u,maxHeight:c,children:s,debounce:l=0,id:f,className:d,onResize:h,style:p={}}=e,m=v.useRef(null),y=v.useRef();y.current=h,v.useImperativeHandle(t,()=>m.current);var[g,b]=v.useState({containerWidth:n.width,containerHeight:n.height}),x=v.useCallback((P,O)=>{b(k=>{var M=Math.round(P),_=Math.round(O);return k.containerWidth===M&&k.containerHeight===_?k:{containerWidth:M,containerHeight:_}})},[]);v.useEffect(()=>{var P=_=>{var I,{width:C,height:T}=_[0].contentRect;x(C,T),(I=y.current)===null||I===void 0||I.call(y,C,T)};l>0&&(P=pA(P,l,{trailing:!0,leading:!1}));var O=new ResizeObserver(P),{width:k,height:M}=m.current.getBoundingClientRect();return x(k,M),O.observe(m.current),()=>{O.disconnect()}},[x,l]);var w=v.useMemo(()=>{var{containerWidth:P,containerHeight:O}=g;if(P<0||O<0)return null;Fr(qt(i)||qt(a),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,i,a),Fr(!r||r>0,"The aspect(%s) must be greater than zero.",r);var k=qt(i)?P:i,M=qt(a)?O:a;return r&&r>0&&(k?M=k/r:M&&(k=M*r),c&&M>c&&(M=c)),Fr(k>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,k,M,i,a,o,u,r),v.Children.map(s,_=>v.cloneElement(_,{width:k,height:M,style:Ha({width:k,height:M},_.props.style)}))},[r,s,a,c,u,o,g,i]);return v.createElement("div",{id:f?"".concat(f):void 0,className:q("recharts-responsive-container",d),style:Ha(Ha({},p),{},{width:i,height:a,minWidth:o,minHeight:u,maxHeight:c}),ref:m},v.createElement("div",{style:{width:0,height:0,overflow:"visible"}},w))}),Tp=e=>null;Tp.displayName="Cell";function bA(e,t,r){return(t=xA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xA(e){var t=wA(e,"string");return typeof t=="symbol"?t:t+""}function wA(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class PA{constructor(t){bA(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function Ns(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function OA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ns(Object(r),!0).forEach(function(n){AA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ns(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AA(e,t,r){return(t=kA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kA(e){var t=SA(e,"string");return typeof t=="symbol"?t:t+""}function SA(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EA={cacheSize:2e3,enableCache:!0},jp=OA({},EA),Ls=new PA(jp.cacheSize),MA={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Rs="recharts_measurement_span";function CA(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(u)}var Bs=(e,t)=>{try{var r=document.getElementById(Rs);r||(r=document.createElement("span"),r.setAttribute("id",Rs),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,MA,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},Wr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ar.isSsr)return{width:0,height:0};if(!jp.enableCache)return Bs(t,r);var n=CA(t,r),i=Ls.get(n);if(i)return i;var a=Bs(t,r);return Ls.set(n,a),a},zs=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Ks=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_A=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,TA=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Dp={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},jA=Object.keys(Dp),fr="NaN";function DA(e,t){return e*Dp[t]}class Ee{static parse(t){var r,[,n,i]=(r=TA.exec(t))!==null&&r!==void 0?r:[];return new Ee(parseFloat(n),i??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,_e(t)&&(this.unit=""),r!==""&&!_A.test(r)&&(this.num=NaN,this.unit=""),jA.includes(r)&&(this.num=DA(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new Ee(NaN,""):new Ee(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Ee(NaN,""):new Ee(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Ee(NaN,""):new Ee(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Ee(NaN,""):new Ee(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return _e(this.num)}}function Ip(e){if(e.includes(fr))return fr;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=(r=zs.exec(t))!==null&&r!==void 0?r:[],o=Ee.parse(n??""),u=Ee.parse(a??""),c=i==="*"?o.multiply(u):o.divide(u);if(c.isNaN())return fr;t=t.replace(zs,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,l,f,d]=(s=Ks.exec(t))!==null&&s!==void 0?s:[],h=Ee.parse(l??""),p=Ee.parse(d??""),m=f==="+"?h.add(p):h.subtract(p);if(m.isNaN())return fr;t=t.replace(Ks,m.toString())}return t}var Fs=/\(([^()]*)\)/;function IA(e){for(var t=e,r;(r=Fs.exec(t))!=null;){var[,n]=r;t=t.replace(Fs,Ip(n))}return t}function $A(e){var t=e.replace(/\s+/g,"");return t=IA(t),t=Ip(t),t}function NA(e){try{return $A(e)}catch{return fr}}function qa(e){var t=NA(e.slice(5,-1));return t===fr?"":t}var LA=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],RA=["dx","dy","angle","className","breakAll"];function Io(){return Io=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},Io.apply(null,arguments)}function Ws(e,t){if(e==null)return{};var r,n,i=BA(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function BA(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var $p=/[ \f\n\r\t\v\u2028\u2029]+/,Np=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];re(t)||(r?i=t.toString().split(""):i=t.toString().split($p));var a=i.map(u=>({word:u,width:Wr(u,n).width})),o=r?0:Wr(" ",n).width;return{wordsWithComputedWidth:a,spaceWidth:o}}catch{return null}},zA=(e,t,r,n,i)=>{var{maxLines:a,children:o,style:u,breakAll:c}=e,s=$(a),l=o,f=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce((T,L)=>{var{word:R,width:K}=L,G=T[T.length-1];if(G&&(n==null||i||G.width+K+r<Number(n)))G.words.push(R),G.width+=K+r;else{var Q={words:[R],width:K};T.push(Q)}return T},[])},d=f(t),h=I=>I.reduce((C,T)=>C.width>T.width?C:T);if(!s||i)return d;var p=d.length>a||h(d).width>Number(n);if(!p)return d;for(var m="…",y=I=>{var C=l.slice(0,I),T=Np({breakAll:c,style:u,children:C+m}).wordsWithComputedWidth,L=f(T),R=L.length>a||h(L).width>Number(n);return[R,L]},g=0,b=l.length-1,x=0,w;g<=b&&x<=l.length-1;){var P=Math.floor((g+b)/2),O=P-1,[k,M]=y(O),[_]=y(P);if(!k&&!_&&(g=P+1),k&&_&&(b=P-1),!k&&_){w=M;break}x++}return w||d},Us=e=>{var t=re(e)?[]:e.toString().split($p);return[{words:t}]},KA=e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!ar.isSsr){var u,c,s=Np({breakAll:a,children:n,style:i});if(s){var{wordsWithComputedWidth:l,spaceWidth:f}=s;u=l,c=f}else return Us(n);return zA({breakAll:a,children:n,maxLines:o,style:i},u,c,t,r)}return Us(n)},Hs="#808080",gc=v.forwardRef((e,t)=>{var{x:r=0,y:n=0,lineHeight:i="1em",capHeight:a="0.71em",scaleToFit:o=!1,textAnchor:u="start",verticalAnchor:c="end",fill:s=Hs}=e,l=Ws(e,LA),f=v.useMemo(()=>KA({breakAll:l.breakAll,children:l.children,maxLines:l.maxLines,scaleToFit:o,style:l.style,width:l.width}),[l.breakAll,l.children,l.maxLines,o,l.style,l.width]),{dx:d,dy:h,angle:p,className:m,breakAll:y}=l,g=Ws(l,RA);if(!ut(r)||!ut(n)||f.length===0)return null;var b=r+($(d)?d:0),x=n+($(h)?h:0),w;switch(c){case"start":w=qa("calc(".concat(a,")"));break;case"middle":w=qa("calc(".concat((f.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:w=qa("calc(".concat(f.length-1," * -").concat(i,")"));break}var P=[];if(o){var O=f[0].width,{width:k}=l;P.push("scale(".concat($(k)?k/O:1,")"))}return p&&P.push("rotate(".concat(p,", ").concat(b,", ").concat(x,")")),P.length&&(g.transform=P.join(" ")),v.createElement("text",Io({},oe(g,!0),{ref:t,x:b,y:x,className:q("recharts-text",m),textAnchor:u,fill:s.includes("url")?Hs:s}),f.map((M,_)=>{var I=M.words.join(y?"":" ");return v.createElement("tspan",{x:b,dy:_===0?w:i,key:"".concat(I,"-").concat(_)},I)}))});gc.displayName="Text";var FA=["labelRef"];function WA(e,t){if(e==null)return{};var r,n,i=UA(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function UA(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function qs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qs(Object(r),!0).forEach(function(n){HA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function HA(e,t,r){return(t=qA(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qA(e){var t=VA(e,"string");return typeof t=="symbol"?t:t+""}function VA(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function st(){return st=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},st.apply(null,arguments)}var Lp=v.createContext(null),YA=e=>{var{x:t,y:r,width:n,height:i,children:a}=e,o=v.useMemo(()=>({x:t,y:r,width:n,height:i}),[t,r,n,i]);return v.createElement(Lp.Provider,{value:o},a)},Rp=()=>{var e=v.useContext(Lp),t=bu();return e||t},GA=v.createContext(null),XA=()=>{var e=v.useContext(GA),t=N(dv);return e||t},ZA=e=>{var{value:t,formatter:r}=e,n=re(e.children)?t:e.children;return typeof r=="function"?r(n):n},bc=e=>e!=null&&typeof e=="function",QA=(e,t)=>{var r=Me(t-e),n=Math.min(Math.abs(t-e),360);return r*n},JA=(e,t,r,n,i)=>{var{offset:a,className:o}=e,{cx:u,cy:c,innerRadius:s,outerRadius:l,startAngle:f,endAngle:d,clockWise:h}=i,p=(s+l)/2,m=QA(f,d),y=m>=0?1:-1,g,b;switch(t){case"insideStart":g=f+y*a,b=h;break;case"insideEnd":g=d-y*a,b=!h;break;case"end":g=d+y*a,b=h;break;default:throw new Error("Unsupported position ".concat(t))}b=m<=0?b:!b;var x=xe(u,c,p,g),w=xe(u,c,p,g+(b?1:-1)*359),P="M".concat(x.x,",").concat(x.y,`
    A`).concat(p,",").concat(p,",0,1,").concat(b?0:1,`,
    `).concat(w.x,",").concat(w.y),O=re(e.id)?Ur("recharts-radial-line-"):e.id;return v.createElement("text",st({},n,{dominantBaseline:"central",className:q("recharts-radial-bar-label",o)}),v.createElement("defs",null,v.createElement("path",{id:O,d:P})),v.createElement("textPath",{xlinkHref:"#".concat(O)},r))},ek=(e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:c}=e,s=(u+c)/2;if(r==="outside"){var{x:l,y:f}=xe(n,i,o+t,s);return{x:l,y:f,textAnchor:l>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:h,y:p}=xe(n,i,d,s);return{x:h,y:p,textAnchor:"middle",verticalAnchor:"middle"}},Bp=e=>"cx"in e&&$(e.cx),tk=(e,t)=>{var{parentViewBox:r,offset:n,position:i}=e,a;r!=null&&!Bp(r)&&(a=r);var{x:o,y:u,width:c,height:s}=t,l=s>=0?1:-1,f=l*n,d=l>0?"end":"start",h=l>0?"start":"end",p=c>=0?1:-1,m=p*n,y=p>0?"end":"start",g=p>0?"start":"end";if(i==="top"){var b={x:o+c/2,y:u-l*n,textAnchor:"middle",verticalAnchor:d};return ne(ne({},b),a?{height:Math.max(u-a.y,0),width:c}:{})}if(i==="bottom"){var x={x:o+c/2,y:u+s+f,textAnchor:"middle",verticalAnchor:h};return ne(ne({},x),a?{height:Math.max(a.y+a.height-(u+s),0),width:c}:{})}if(i==="left"){var w={x:o-m,y:u+s/2,textAnchor:y,verticalAnchor:"middle"};return ne(ne({},w),a?{width:Math.max(w.x-a.x,0),height:s}:{})}if(i==="right"){var P={x:o+c+m,y:u+s/2,textAnchor:g,verticalAnchor:"middle"};return ne(ne({},P),a?{width:Math.max(a.x+a.width-P.x,0),height:s}:{})}var O=a?{width:c,height:s}:{};return i==="insideLeft"?ne({x:o+m,y:u+s/2,textAnchor:g,verticalAnchor:"middle"},O):i==="insideRight"?ne({x:o+c-m,y:u+s/2,textAnchor:y,verticalAnchor:"middle"},O):i==="insideTop"?ne({x:o+c/2,y:u+f,textAnchor:"middle",verticalAnchor:h},O):i==="insideBottom"?ne({x:o+c/2,y:u+s-f,textAnchor:"middle",verticalAnchor:d},O):i==="insideTopLeft"?ne({x:o+m,y:u+f,textAnchor:g,verticalAnchor:h},O):i==="insideTopRight"?ne({x:o+c-m,y:u+f,textAnchor:y,verticalAnchor:h},O):i==="insideBottomLeft"?ne({x:o+m,y:u+s-f,textAnchor:g,verticalAnchor:d},O):i==="insideBottomRight"?ne({x:o+c-m,y:u+s-f,textAnchor:y,verticalAnchor:d},O):i&&typeof i=="object"&&($(i.x)||qt(i.x))&&($(i.y)||qt(i.y))?ne({x:o+nt(i.x,c),y:u+nt(i.y,s),textAnchor:"end",verticalAnchor:"end"},O):ne({x:o+c/2,y:u+s/2,textAnchor:"middle",verticalAnchor:"middle"},O)},rk={offset:5};function Tt(e){var t=De(e,rk),{viewBox:r,position:n,value:i,children:a,content:o,className:u="",textBreakAll:c,labelRef:s}=t,l=XA(),f=Rp(),d=n==="center"?f:l??f,h=r||d;if(!h||re(i)&&re(a)&&!v.isValidElement(o)&&typeof o!="function")return null;var p=ne(ne({},t),{},{viewBox:h});if(v.isValidElement(o)){var{labelRef:m}=p,y=WA(p,FA);return v.cloneElement(o,y)}var g;if(typeof o=="function"){if(g=v.createElement(o,p),v.isValidElement(g))return g}else g=ZA(t);var b=Bp(h),x=oe(t,!0);if(b&&(n==="insideStart"||n==="insideEnd"||n==="end"))return JA(t,n,g,x,h);var w=b?ek(h,t.offset,t.position):tk(t,h);return v.createElement(gc,st({ref:s,className:q("recharts-label",u)},x,w,{breakAll:c}),g)}Tt.displayName="Label";var nk=(e,t,r)=>{if(!e)return null;var n={viewBox:t,labelRef:r};return e===!0?v.createElement(Tt,st({key:"label-implicit"},n)):ut(e)?v.createElement(Tt,st({key:"label-implicit",value:e},n)):v.isValidElement(e)?e.type===Tt?v.cloneElement(e,ne({key:"label-implicit"},n)):v.createElement(Tt,st({key:"label-implicit",content:e},n)):bc(e)?v.createElement(Tt,st({key:"label-implicit",content:e},n)):e&&typeof e=="object"?v.createElement(Tt,st({},e,{key:"label-implicit"},n)):null};function ik(e){var{label:t}=e,r=Rp();return nk(t,r)||null}var zp={},Kp={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(Kp);var Fp={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(Fp);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Kp,r=Fp,n=zi;function i(a){if(n.isArrayLike(a))return t.last(r.toArray(a))}e.last=i})(zp);var ak=zp.last;const ok=Lt(ak);var uk=["valueAccessor"],ck=["dataKey","clockWise","id","textBreakAll"];function vi(){return vi=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},vi.apply(null,arguments)}function Vs(e,t){if(e==null)return{};var r,n,i=lk(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function lk(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var sk=e=>Array.isArray(e.value)?ok(e.value):e.value,Wp=v.createContext(void 0),Up=Wp.Provider,Hp=v.createContext(void 0);Hp.Provider;function fk(){return v.useContext(Wp)}function dk(){return v.useContext(Hp)}function Ln(e){var{valueAccessor:t=sk}=e,r=Vs(e,uk),{dataKey:n,clockWise:i,id:a,textBreakAll:o}=r,u=Vs(r,ck),c=fk(),s=dk(),l=c||s;return!l||!l.length?null:v.createElement(Te,{className:"recharts-label-list"},l.map((f,d)=>{var h,p=re(n)?t(f,d):ve(f&&f.payload,n),m=re(a)?{}:{id:"".concat(a,"-").concat(d)};return v.createElement(Tt,vi({},oe(f,!0),u,m,{fill:(h=r.fill)!==null&&h!==void 0?h:f.fill,parentViewBox:f.parentViewBox,value:p,textBreakAll:o,viewBox:f.viewBox,key:"label-".concat(d),index:d}))}))}Ln.displayName="LabelList";function qp(e){var{label:t}=e;return t?t===!0?v.createElement(Ln,{key:"labelList-implicit"}):v.isValidElement(t)||bc(t)?v.createElement(Ln,{key:"labelList-implicit",content:t}):typeof t=="object"?v.createElement(Ln,vi({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function $o(){return $o=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},$o.apply(null,arguments)}var Vp=e=>{var{cx:t,cy:r,r:n,className:i}=e,a=q("recharts-dot",i);return t===+t&&r===+r&&n===+n?v.createElement("circle",$o({},wt(e),Vo(e),{className:a,cx:t,cy:r,r:n})):null},hk={radiusAxis:{},angleAxis:{}},Yp=We({name:"polarAxis",initialState:hk,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:gj,removeRadiusAxis:bj,addAngleAxis:xj,removeAngleAxis:wj}=Yp.actions,vk=Yp.reducer,Gp={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var i;if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const a=r[Symbol.toStringTag];return a==null||!((i=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))!=null&&i.writable)?!1:r.toString()===`[object ${a}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(Gp);var pk=Gp.isPlainObject;const yk=Lt(pk);function Ys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Gs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ys(Object(r),!0).forEach(function(n){mk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ys(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mk(e,t,r){return(t=gk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gk(e){var t=bk(e,"string");return typeof t=="symbol"?t:t+""}function bk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pi(){return pi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pi.apply(null,arguments)}var Xs=(e,t,r,n,i)=>{var a=r-n,o;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+r,",").concat(t),o+="L ".concat(e+r-a/2,",").concat(t+i),o+="L ".concat(e+r-a/2-n,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z"),o},xk={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},wk=e=>{var t=De(e,xk),{x:r,y:n,upperWidth:i,lowerWidth:a,height:o,className:u}=t,{animationEasing:c,animationDuration:s,animationBegin:l,isUpdateAnimationActive:f}=t,d=v.useRef(),[h,p]=v.useState(-1),m=v.useRef(i),y=v.useRef(a),g=v.useRef(o),b=v.useRef(r),x=v.useRef(n),w=ta(e,"trapezoid-");if(v.useEffect(()=>{if(d.current&&d.current.getTotalLength)try{var R=d.current.getTotalLength();R&&p(R)}catch{}},[]),r!==+r||n!==+n||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var P=q("recharts-trapezoid",u);if(!f)return v.createElement("g",null,v.createElement("path",pi({},oe(t,!0),{className:P,d:Xs(r,n,i,a,o)})));var O=m.current,k=y.current,M=g.current,_=b.current,I=x.current,C="0px ".concat(h===-1?1:h,"px"),T="".concat(h,"px 0px"),L=Jd(["strokeDasharray"],s,c);return v.createElement(ea,{animationId:w,key:w,canBegin:h>0,duration:s,easing:c,isActive:f,begin:l},R=>{var K=ie(O,i,R),G=ie(k,a,R),Q=ie(M,o,R),de=ie(_,r,R),J=ie(I,n,R);d.current&&(m.current=K,y.current=G,g.current=Q,b.current=de,x.current=J);var Ct=R>0?{transition:L,strokeDasharray:T}:{strokeDasharray:C};return v.createElement("path",pi({},oe(t,!0),{className:P,d:Xs(de,J,K,G,Q),ref:d,style:Gs(Gs({},Ct),t.style)}))})},Pk=["option","shapeType","propTransformer","activeClassName","isActive"];function Ok(e,t){if(e==null)return{};var r,n,i=Ak(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ak(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Zs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zs(Object(r),!0).forEach(function(n){kk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kk(e,t,r){return(t=Sk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sk(e){var t=Ek(e,"string");return typeof t=="symbol"?t:t+""}function Ek(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mk(e,t){return yi(yi({},t),e)}function Ck(e,t){return e==="symbols"}function Qs(e){var{shapeType:t,elementProps:r}=e;switch(t){case"rectangle":return v.createElement(nh,r);case"trapezoid":return v.createElement(wk,r);case"sector":return v.createElement(oh,r);case"symbols":if(Ck(t))return v.createElement(Qo,r);break;default:return null}}function _k(e){return v.isValidElement(e)?e.props:e}function Tk(e){var{option:t,shapeType:r,propTransformer:n=Mk,activeClassName:i="recharts-active-shape",isActive:a}=e,o=Ok(e,Pk),u;if(v.isValidElement(t))u=v.cloneElement(t,yi(yi({},o),_k(t)));else if(typeof t=="function")u=t(o);else if(yk(t)&&typeof t!="boolean"){var c=n(t,o);u=v.createElement(Qs,{shapeType:r,elementProps:c})}else{var s=o;u=v.createElement(Qs,{shapeType:r,elementProps:s})}return a?v.createElement(Te,{className:i},u):u}var Xp=(e,t)=>{var r=ue();return(n,i)=>a=>{e==null||e(n,i,a),r(rp({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}},Zp=e=>{var t=ue();return(r,n)=>i=>{e==null||e(r,n,i),t(RP())}},Qp=(e,t)=>{var r=ue();return(n,i)=>a=>{e==null||e(n,i,a),r(BP({activeIndex:String(i),activeDataKey:t,activeCoordinate:n.tooltipPosition}))}};function Jp(e){var{fn:t,args:r}=e,n=ue(),i=je();return v.useEffect(()=>{if(!i){var a=t(r);return n($P(a)),()=>{n(NP(a))}}},[t,r,n,i]),null}var jk=()=>{};function ey(e){var{legendPayload:t}=e,r=ue(),n=je();return v.useEffect(()=>n?jk:(r(P1(t)),()=>{r(O1(t))}),[r,n,t]),null}var Va,Dk=()=>{var[e]=v.useState(()=>Ur("uid-"));return e},Ik=(Va=Ny.useId)!==null&&Va!==void 0?Va:Dk;function $k(e,t){var r=Ik();return t||(e?"".concat(e,"-").concat(r):r)}var Nk=v.createContext(void 0),ty=e=>{var{id:t,type:r,children:n}=e,i=$k("recharts-".concat(r),t);return v.createElement(Nk.Provider,{value:i},n(i))},Lk={cartesianItems:[],polarItems:[]},ry=We({name:"graphicalItems",initialState:Lk,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:r,next:n}=t.payload,i=vt(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},removeCartesianGraphicalItem(e,t){var r=vt(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var r=vt(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)}}}),{addCartesianGraphicalItem:Rk,replaceCartesianGraphicalItem:Bk,removeCartesianGraphicalItem:zk,addPolarGraphicalItem:Pj,removePolarGraphicalItem:Oj}=ry.actions,Kk=ry.reducer;function ny(e){var t=ue(),r=v.useRef(null);return v.useEffect(()=>{r.current===null?t(Rk(e)):r.current!==e&&t(Bk({prev:r.current,next:e})),r.current=e},[t,e]),v.useEffect(()=>()=>{r.current&&(t(zk(r.current)),r.current=null)},[t]),null}function Js(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ef(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Js(Object(r),!0).forEach(function(n){Fk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Js(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fk(e,t,r){return(t=Wk(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wk(e){var t=Uk(e,"string");return typeof t=="symbol"?t:t+""}function Uk(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hk={xAxis:{},yAxis:{},zAxis:{}},iy=We({name:"cartesianAxis",initialState:Hk,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload;e.yAxis[r]&&(e.yAxis[r]=ef(ef({},e.yAxis[r]),{},{width:n}))}}}),{addXAxis:qk,removeXAxis:Vk,addYAxis:Yk,removeYAxis:Gk,addZAxis:Aj,removeZAxis:kj,updateYAxisWidth:Xk}=iy.actions,Zk=iy.reducer,Qk=A([pe],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),Jk=A([Qk,Ot,At],(e,t,r)=>{if(!(!e||t==null||r==null))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)}}),xc=()=>N(Jk),eS=()=>N(kO);function tf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tf(Object(r),!0).forEach(function(n){tS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tS(e,t,r){return(t=rS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rS(e){var t=nS(e,"string");return typeof t=="symbol"?t:t+""}function nS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var iS=e=>{var{point:t,childIndex:r,mainColor:n,activeDot:i,dataKey:a}=e;if(i===!1||t.x==null||t.y==null)return null;var o=rf(rf({index:r,dataKey:a,cx:t.x,cy:t.y,r:4,fill:n??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},oe(i,!1)),Vo(i)),u;return v.isValidElement(i)?u=v.cloneElement(i,o):typeof i=="function"?u=i(o):u=v.createElement(Vp,o),v.createElement(Te,{className:"recharts-active-dot"},u)};function nf(e){var{points:t,mainColor:r,activeDot:n,itemDataKey:i}=e,a=N(nr),o=eS();if(t==null||o==null)return null;var u=t.find(c=>o.includes(c.payload));return re(u)?null:iS({point:u,childIndex:Number(a),mainColor:r,dataKey:i,activeDot:n})}var aS="Invariant failed";function oS(e,t){throw new Error(aS)}var uS=["x","y"];function No(){return No=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},No.apply(null,arguments)}function af(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Br(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?af(Object(r),!0).forEach(function(n){cS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):af(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cS(e,t,r){return(t=lS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lS(e){var t=sS(e,"string");return typeof t=="symbol"?t:t+""}function sS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fS(e,t){if(e==null)return{};var r,n,i=dS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function dS(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function hS(e,t){var{x:r,y:n}=e,i=fS(e,uS),a="".concat(r),o=parseInt(a,10),u="".concat(n),c=parseInt(u,10),s="".concat(t.height||i.height),l=parseInt(s,10),f="".concat(t.width||i.width),d=parseInt(f,10);return Br(Br(Br(Br(Br({},t),i),o?{x:o}:{}),c?{y:c}:{}),{},{height:l,width:d,name:t.name,radius:t.radius})}function wc(e){return v.createElement(Tk,No({shapeType:"rectangle",propTransformer:hS,activeClassName:"recharts-active-bar"},e))}var vS=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,i)=>{if($(t))return t;var a=$(n)||re(n);return a?t(n,i):(a||oS(),r)}},pS={},ay=We({name:"errorBars",initialState:pS,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(a=>a.dataKey===n.dataKey&&a.direction===n.direction?i:a))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(i=>i.dataKey!==n.dataKey||i.direction!==n.direction))}}}),{addErrorBar:Sj,replaceErrorBar:Ej,removeErrorBar:Mj}=ay.actions,yS=ay.reducer,mS=["children"];function gS(e,t){if(e==null)return{};var r,n,i=bS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function bS(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var xS={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},wS=v.createContext(xS);function PS(e){var{children:t}=e,r=gS(e,mS);return v.createElement(wS.Provider,{value:r},t)}function Pc(e,t){var r,n,i=N(s=>St(s,e)),a=N(s=>Et(s,t)),o=(r=i==null?void 0:i.allowDataOverflow)!==null&&r!==void 0?r:Le.allowDataOverflow,u=(n=a==null?void 0:a.allowDataOverflow)!==null&&n!==void 0?n:Re.allowDataOverflow,c=o||u;return{needClip:c,needClipX:o,needClipY:u}}function oy(e){var{xAxisId:t,yAxisId:r,clipPathId:n}=e,i=xc(),{needClipX:a,needClipY:o,needClip:u}=Pc(t,r);if(!u)return null;var{x:c,y:s,width:l,height:f}=i;return v.createElement("clipPath",{id:"clipPath-".concat(n)},v.createElement("rect",{x:a?c:c-l/2,y:o?s:s-f/2,width:a?l:l*2,height:o?f:f*2}))}var OS=["onMouseEnter","onMouseLeave","onClick"],AS=["value","background","tooltipPosition"],kS=["id"],SS=["onMouseEnter","onClick","onMouseLeave"];function Nt(){return Nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nt.apply(null,arguments)}function of(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?of(Object(r),!0).forEach(function(n){ES(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):of(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ES(e,t,r){return(t=MS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MS(e){var t=CS(e,"string");return typeof t=="symbol"?t:t+""}function CS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mi(e,t){if(e==null)return{};var r,n,i=_S(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _S(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var TS=e=>{var{dataKey:t,name:r,fill:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:Yi(r,t),payload:e}]};function jS(e){var{dataKey:t,stroke:r,strokeWidth:n,fill:i,name:a,hide:o,unit:u}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:r,strokeWidth:n,fill:i,dataKey:t,nameKey:void 0,name:Yi(a,t),hide:o,type:e.tooltipType,color:e.fill,unit:u}}}function DS(e){var t=N(nr),{data:r,dataKey:n,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:u,onClick:c}=a,s=mi(a,OS),l=Xp(o,n),f=Zp(u),d=Qp(c,n);if(!i||r==null)return null;var h=oe(i,!1);return v.createElement(v.Fragment,null,r.map((p,m)=>{var{value:y,background:g,tooltipPosition:b}=p,x=mi(p,AS);if(!g)return null;var w=l(p,m),P=f(p,m),O=d(p,m),k=Ae(Ae(Ae(Ae(Ae({option:i,isActive:String(m)===t},x),{},{fill:"#eee"},g),h),Ni(s,p,m)),{},{onMouseEnter:w,onMouseLeave:P,onClick:O,dataKey:n,index:m,className:"recharts-bar-background-rectangle"});return v.createElement(wc,Nt({key:"background-bar-".concat(k.index)},k))}))}function IS(e){var{showLabels:t,children:r,rects:n}=e,i=n==null?void 0:n.map(a=>{var o={x:a.x,y:a.y,width:a.width,height:a.height};return Ae(Ae({},o),{},{value:a.value,payload:a.payload,parentViewBox:a.parentViewBox,viewBox:o,fill:a.fill})});return v.createElement(Up,{value:t?i:void 0},r)}function $S(e){var{shape:t,activeBar:r,baseProps:n,entry:i,index:a,dataKey:o}=e,u=N(nr),c=N(pp),s=r&&String(a)===u&&(c==null||o===c),l=s?r:t;return v.createElement(wc,Nt({},n,i,{isActive:s,option:l,index:a,dataKey:o}))}function NS(e){var{shape:t,baseProps:r,entry:n,index:i,dataKey:a}=e;return v.createElement(wc,Nt({},r,n,{isActive:!1,option:t,index:i,dataKey:a}))}function LS(e){var{data:t,props:r}=e,n=wt(r),{id:i}=n,a=mi(n,kS),{shape:o,dataKey:u,activeBar:c}=r,{onMouseEnter:s,onClick:l,onMouseLeave:f}=r,d=mi(r,SS),h=Xp(s,u),p=Zp(f),m=Qp(l,u);return t?v.createElement(v.Fragment,null,t.map((y,g)=>v.createElement(Te,Nt({className:"recharts-bar-rectangle"},Ni(d,y,g),{onMouseEnter:h(y,g),onMouseLeave:p(y,g),onClick:m(y,g),key:"rectangle-".concat(y==null?void 0:y.x,"-").concat(y==null?void 0:y.y,"-").concat(y==null?void 0:y.value,"-").concat(g)}),c?v.createElement($S,{shape:o,activeBar:c,baseProps:a,entry:y,index:g,dataKey:u}):v.createElement(NS,{shape:o,baseProps:a,entry:y,index:g,dataKey:u})))):null}function RS(e){var{props:t,previousRectanglesRef:r}=e,{data:n,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:u,animationEasing:c,onAnimationEnd:s,onAnimationStart:l}=t,f=r.current,d=ta(t,"recharts-bar-"),[h,p]=v.useState(!1),m=!h,y=v.useCallback(()=>{typeof s=="function"&&s(),p(!1)},[s]),g=v.useCallback(()=>{typeof l=="function"&&l(),p(!0)},[l]);return v.createElement(IS,{showLabels:m,rects:n},v.createElement(ea,{animationId:d,begin:o,duration:u,isActive:a,easing:c,onAnimationEnd:y,onAnimationStart:g,key:d},b=>{var x=b===1?n:n==null?void 0:n.map((w,P)=>{var O=f&&f[P];if(O)return Ae(Ae({},w),{},{x:ie(O.x,w.x,b),y:ie(O.y,w.y,b),width:ie(O.width,w.width,b),height:ie(O.height,w.height,b)});if(i==="horizontal"){var k=ie(0,w.height,b);return Ae(Ae({},w),{},{y:w.y+w.height-k,height:k})}var M=ie(0,w.width,b);return Ae(Ae({},w),{},{width:M})});return b>0&&(r.current=x??null),x==null?null:v.createElement(Te,null,v.createElement(LS,{props:t,data:x}))}),v.createElement(qp,{label:t.label}),t.children)}function BS(e){var t=v.useRef(null);return v.createElement(RS,{previousRectanglesRef:t,props:e})}var uy=0,zS=(e,t)=>{var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:ve(e,t)}};class KS extends v.PureComponent{render(){var{hide:t,data:r,dataKey:n,className:i,xAxisId:a,yAxisId:o,needClip:u,background:c,id:s}=this.props;if(t||r==null)return null;var l=q("recharts-bar",i),f=s;return v.createElement(Te,{className:l,id:s},u&&v.createElement("defs",null,v.createElement(oy,{clipPathId:f,xAxisId:a,yAxisId:o})),v.createElement(Te,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(f,")"):void 0},v.createElement(DS,{data:r,dataKey:n,background:c,allOtherBarProps:this.props}),v.createElement(BS,this.props)))}}var FS={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!ar.isSsr,legendType:"rect",minPointSize:uy,xAxisId:0,yAxisId:0};function WS(e){var{xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:c,animationEasing:s,isAnimationActive:l}=e,{needClip:f}=Pc(t,r),d=Ji(),h=je(),p=im(e.children,Tp),m=N(b=>gE(b,t,r,h,e.id,p));if(d!=="vertical"&&d!=="horizontal")return null;var y,g=m==null?void 0:m[0];return g==null||g.height==null||g.width==null?y=0:y=d==="vertical"?g.height/2:g.width/2,v.createElement(PS,{xAxisId:t,yAxisId:r,data:m,dataPointFormatter:zS,errorBarOffset:y},v.createElement(KS,Nt({},e,{layout:d,needClip:f,data:m,xAxisId:t,yAxisId:r,hide:n,legendType:i,minPointSize:a,activeBar:o,animationBegin:u,animationDuration:c,animationEasing:s,isAnimationActive:l})))}function US(e){var{layout:t,barSettings:{dataKey:r,minPointSize:n},pos:i,bandSize:a,xAxis:o,yAxis:u,xAxisTicks:c,yAxisTicks:s,stackedData:l,displayedData:f,offset:d,cells:h,parentViewBox:p}=e,m=t==="horizontal"?u:o,y=l?m.scale.domain():null,g=Qg({numericAxis:m});return f.map((b,x)=>{var w,P,O,k,M,_;l?w=Vg(l[x],y):(w=ve(b,r),Array.isArray(w)||(w=[g,w]));var I=vS(n,uy)(w[1],x);if(t==="horizontal"){var C,[T,L]=[u.scale(w[0]),u.scale(w[1])];P=cl({axis:o,ticks:c,bandSize:a,offset:i.offset,entry:b,index:x}),O=(C=L??T)!==null&&C!==void 0?C:void 0,k=i.size;var R=T-L;if(M=_e(R)?0:R,_={x:P,y:d.top,width:k,height:d.height},Math.abs(I)>0&&Math.abs(M)<Math.abs(I)){var K=Me(M||I)*(Math.abs(I)-Math.abs(M));O-=K,M+=K}}else{var[G,Q]=[o.scale(w[0]),o.scale(w[1])];if(P=G,O=cl({axis:u,ticks:s,bandSize:a,offset:i.offset,entry:b,index:x}),k=Q-G,M=i.size,_={x:d.left,y:O,width:d.width,height:M},Math.abs(I)>0&&Math.abs(k)<Math.abs(I)){var de=Me(k||I)*(Math.abs(I)-Math.abs(k));k+=de}}if(P==null||O==null||k==null||M==null)return null;var J=Ae(Ae({},b),{},{x:P,y:O,width:k,height:M,value:l?w:w[1],payload:b,background:_,tooltipPosition:{x:P+k/2,y:O+M/2},parentViewBox:p},h&&h[x]&&h[x].props);return J}).filter(Boolean)}function HS(e){var t=De(e,FS),r=je();return v.createElement(ty,{id:t.id,type:"bar"},n=>v.createElement(v.Fragment,null,v.createElement(ey,{legendPayload:TS(t)}),v.createElement(Jp,{fn:jS,args:t}),v.createElement(ny,{type:"bar",id:n,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:Yd(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),v.createElement(WS,Nt({},t,{id:n}))))}var qS=v.memo(HS);qS.displayName="Bar";function uf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function In(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uf(Object(r),!0).forEach(function(n){VS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VS(e,t,r){return(t=YS(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YS(e){var t=GS(e,"string");return typeof t=="symbol"?t:t+""}function GS(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var XS=(e,t)=>t,ZS=(e,t,r)=>r,QS=(e,t,r,n)=>n,JS=(e,t,r,n,i)=>i,mn=A([ya,JS],(e,t)=>e.filter(r=>r.type==="bar").find(r=>r.id===t)),eE=A([mn],e=>e==null?void 0:e.maxBarSize),tE=(e,t,r,n,i,a)=>a,cf=(e,t,r)=>{var n=r??e;if(!re(n))return nt(n,t,0)},rE=A([U,ya,XS,ZS,QS],(e,t,r,n,i)=>t.filter(a=>e==="horizontal"?a.xAxisId===r:a.yAxisId===n).filter(a=>a.isPanorama===i).filter(a=>a.hide===!1).filter(a=>a.type==="bar")),nE=(e,t,r,n)=>{var i=U(e);return i==="horizontal"?en(e,"yAxis",r,n):en(e,"xAxis",t,n)},iE=(e,t,r)=>{var n=U(e);return n==="horizontal"?ws(e,"xAxis",t):ws(e,"yAxis",r)},aE=(e,t,r)=>{var n={},i=e.filter(pa),a=e.filter(s=>s.stackId==null),o=i.reduce((s,l)=>(s[l.stackId]||(s[l.stackId]=[]),s[l.stackId].push(l),s),n),u=Object.entries(o).map(s=>{var[l,f]=s,d=f.map(p=>p.dataKey),h=cf(t,r,f[0].barSize);return{stackId:l,dataKeys:d,barSize:h}}),c=a.map(s=>{var l=[s.dataKey].filter(d=>d!=null),f=cf(t,r,s.barSize);return{stackId:void 0,dataKeys:l,barSize:f}});return[...u,...c]},oE=A([rE,Dw,iE],aE),uE=(e,t,r,n,i)=>{var a,o,u=mn(e,t,r,n,i);if(u!=null){var c=U(e),s=av(e),{maxBarSize:l}=u,f=re(l)?s:l,d,h;return c==="horizontal"?(d=$t(e,"xAxis",t,n),h=It(e,"xAxis",t,n)):(d=$t(e,"yAxis",r,n),h=It(e,"yAxis",r,n)),(a=(o=Vr(d,h,!0))!==null&&o!==void 0?o:f)!==null&&a!==void 0?a:0}},cy=(e,t,r,n)=>{var i=U(e),a,o;return i==="horizontal"?(a=$t(e,"xAxis",t,n),o=It(e,"xAxis",t,n)):(a=$t(e,"yAxis",r,n),o=It(e,"yAxis",r,n)),Vr(a,o)};function cE(e,t,r,n,i){var a=n.length;if(!(a<1)){var o=nt(e,r,0,!0),u,c=[];if(we(n[0].barSize)){var s=!1,l=r/a,f=n.reduce((g,b)=>g+(b.barSize||0),0);f+=(a-1)*o,f>=r&&(f-=(a-1)*o,o=0),f>=r&&l>0&&(s=!0,l*=.9,f=a*l);var d=(r-f)/2>>0,h={offset:d-o,size:0};u=n.reduce((g,b)=>{var x,w={stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:h.offset+h.size+o,size:s?l:(x=b.barSize)!==null&&x!==void 0?x:0}},P=[...g,w];return h=P[P.length-1].position,P},c)}else{var p=nt(t,r,0,!0);r-2*p-(a-1)*o<=0&&(o=0);var m=(r-2*p-(a-1)*o)/a;m>1&&(m>>=0);var y=we(i)?Math.min(m,i):m;u=n.reduce((g,b,x)=>[...g,{stackId:b.stackId,dataKeys:b.dataKeys,position:{offset:p+(m+o)*x+(m-y)/2,size:y}}],c)}return u}}var lE=(e,t,r,n,i,a,o)=>{var u=re(o)?t:o,c=cE(r,n,i!==a?i:a,e,u);return i!==a&&c!=null&&(c=c.map(s=>In(In({},s),{},{position:In(In({},s.position),{},{offset:s.position.offset-i/2})}))),c},sE=A([oE,av,jw,ov,uE,cy,eE],lE),fE=(e,t,r,n)=>$t(e,"xAxis",t,n),dE=(e,t,r,n)=>$t(e,"yAxis",r,n),hE=(e,t,r,n)=>It(e,"xAxis",t,n),vE=(e,t,r,n)=>It(e,"yAxis",r,n),pE=A([sE,mn],(e,t)=>{if(!(e==null||t==null)){var r=e.find(n=>n.stackId===t.stackId&&t.dataKey!=null&&n.dataKeys.includes(t.dataKey));if(r!=null)return r.position}}),yE=(e,t)=>{var r=va(t);if(!(!e||r==null||t==null)){var{stackId:n}=t;if(n!=null){var i=e[n];if(i){var{stackedData:a}=i;if(a)return a.find(o=>o.key===r)}}}},mE=A([nE,mn],yE),gE=A([pe,gu,fE,dE,hE,vE,pE,U,ca,cy,mE,mn,tE],(e,t,r,n,i,a,o,u,c,s,l,f,d)=>{var{chartData:h,dataStartIndex:p,dataEndIndex:m}=c;if(!(f==null||o==null||t==null||u!=="horizontal"&&u!=="vertical"||r==null||n==null||i==null||a==null||s==null)){var{data:y}=f,g;if(y!=null&&y.length>0?g=y:g=h==null?void 0:h.slice(p,m+1),g!=null)return US({layout:u,barSettings:f,pos:o,parentViewBox:t,bandSize:s,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,stackedData:l,displayedData:g,offset:e,cells:d})}}),bE=e=>{var{chartData:t}=e,r=ue(),n=je();return v.useEffect(()=>n?()=>{}:(r(_s(t)),()=>{r(_s(void 0))}),[t,r,n]),null},lf={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},ly=We({name:"brush",initialState:lf,reducers:{setBrushSettings(e,t){return t.payload==null?lf:t.payload}}}),{setBrushSettings:Cj}=ly.actions,xE=ly.reducer;function wE(e,t,r){return(t=PE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PE(e){var t=OE(e,"string");return typeof t=="symbol"?t:t+""}function OE(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Oc{static create(t){return new Oc(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:r,position:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(n)switch(n){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var a=this.bandwidth?this.bandwidth():0;return this.scale(t)+a}default:return this.scale(t)}if(r){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}return this.scale(t)}}isInRange(t){var r=this.range(),n=r[0],i=r[r.length-1];return n<=i?t>=n&&t<=i:t>=i&&t<=n}}wE(Oc,"EPS",1e-4);function AE(e){return(e%180+180)%180}var kE=function(t){var{width:r,height:n}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=AE(i),o=a*Math.PI/180,u=Math.atan(n/r),c=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(c)},SE={dots:[],areas:[],lines:[]},sy=We({name:"referenceElements",initialState:SE,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=vt(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=vt(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=vt(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}}),{addDot:_j,removeDot:Tj,addArea:jj,removeArea:Dj,addLine:Ij,removeLine:$j}=sy.actions,EE=sy.reducer,ME=v.createContext(void 0),CE=e=>{var{children:t}=e,[r]=v.useState("".concat(Ur("recharts"),"-clip")),n=xc();if(n==null)return null;var{x:i,y:a,width:o,height:u}=n;return v.createElement(ME.Provider,{value:r},v.createElement("defs",null,v.createElement("clipPath",{id:r},v.createElement("rect",{x:i,y:a,height:u,width:o}))),t)};function Or(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function fy(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function _E(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return kE(n,r)}function TE(e,t,r){var n=r==="width",{x:i,y:a,width:o,height:u}=e;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function gi(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 jE(e,t){return fy(e,t+1)}function DE(e,t,r,n,i){for(var a=(n||[]).slice(),{start:o,end:u}=t,c=0,s=1,l=o,f=function(){var p=n==null?void 0:n[c];if(p===void 0)return{v:fy(n,s)};var m=c,y,g=()=>(y===void 0&&(y=r(p,m)),y),b=p.coordinate,x=c===0||gi(e,b,g,l,u);x||(c=0,l=o,s+=1),x&&(l=b+e*(g()/2+i),c+=s)},d;s<=a.length;)if(d=f(),d)return d.v;return[]}function sf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sf(Object(r),!0).forEach(function(n){IE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function IE(e,t,r){return(t=$E(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $E(e){var t=NE(e,"string");return typeof t=="symbol"?t:t+""}function NE(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LE(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:u}=t,{end:c}=t,s=function(d){var h=a[d],p,m=()=>(p===void 0&&(p=r(h,d)),p);if(d===o-1){var y=e*(h.coordinate+e*m()/2-c);a[d]=h=Pe(Pe({},h),{},{tickCoord:y>0?h.coordinate-y*e:h.coordinate})}else a[d]=h=Pe(Pe({},h),{},{tickCoord:h.coordinate});var g=gi(e,h.tickCoord,m,u,c);g&&(c=h.tickCoord-e*(m()/2+i),a[d]=Pe(Pe({},h),{},{isShow:!0}))},l=o-1;l>=0;l--)s(l);return a}function RE(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,{start:c,end:s}=t;if(a){var l=n[u-1],f=r(l,u-1),d=e*(l.coordinate+e*f/2-s);o[u-1]=l=Pe(Pe({},l),{},{tickCoord:d>0?l.coordinate-d*e:l.coordinate});var h=gi(e,l.tickCoord,()=>f,c,s);h&&(s=l.tickCoord-e*(f/2+i),o[u-1]=Pe(Pe({},l),{},{isShow:!0}))}for(var p=a?u-1:u,m=function(b){var x=o[b],w,P=()=>(w===void 0&&(w=r(x,b)),w);if(b===0){var O=e*(x.coordinate-e*P()/2-c);o[b]=x=Pe(Pe({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[b]=x=Pe(Pe({},x),{},{tickCoord:x.coordinate});var k=gi(e,x.tickCoord,P,c,s);k&&(c=x.tickCoord+e*(P()/2+i),o[b]=Pe(Pe({},x),{},{isShow:!0}))},y=0;y<p;y++)m(y);return o}function Ac(e,t,r){var{tick:n,ticks:i,viewBox:a,minTickGap:o,orientation:u,interval:c,tickFormatter:s,unit:l,angle:f}=e;if(!i||!i.length||!n)return[];if($(c)||ar.isSsr){var d;return(d=jE(i,$(c)?c:0))!==null&&d!==void 0?d:[]}var h=[],p=u==="top"||u==="bottom"?"width":"height",m=l&&p==="width"?Wr(l,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=(x,w)=>{var P=typeof s=="function"?s(x.value,w):x.value;return p==="width"?_E(Wr(P,{fontSize:t,letterSpacing:r}),m,f):Wr(P,{fontSize:t,letterSpacing:r})[p]},g=i.length>=2?Me(i[1].coordinate-i[0].coordinate):1,b=TE(a,g,p);return c==="equidistantPreserveStart"?DE(g,b,y,i,o):(c==="preserveStart"||c==="preserveStartEnd"?h=RE(g,b,y,i,o,c==="preserveStartEnd"):h=LE(g,b,y,i,o),h.filter(x=>x.isShow))}var BE=e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){t.forEach(l=>{if(l){var f=l.getBoundingClientRect();f.width>o&&(o=f.width)}});var u=r?r.getBoundingClientRect().width:0,c=i+a,s=o+c+u+(r?n:0);return Math.round(s)}return 0},zE=["axisLine","width","height","className","hide","ticks"],KE=["viewBox"],FE=["viewBox"];function Lo(e,t){if(e==null)return{};var r,n,i=WE(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function WE(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ir(){return ir=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},ir.apply(null,arguments)}function ff(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ff(Object(r),!0).forEach(function(n){UE(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ff(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UE(e,t,r){return(t=HE(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HE(e){var t=qE(e,"string");return typeof t=="symbol"?t:t+""}function qE(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kc={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"};function VE(e){var{x:t,y:r,width:n,height:i,orientation:a,mirror:o,axisLine:u,otherSvgProps:c}=e;if(!u)return null;var s=le(le(le({},c),oe(u,!1)),{},{fill:"none"});if(a==="top"||a==="bottom"){var l=+(a==="top"&&!o||a==="bottom"&&o);s=le(le({},s),{},{x1:t,y1:r+l*i,x2:t+n,y2:r+l*i})}else{var f=+(a==="left"&&!o||a==="right"&&o);s=le(le({},s),{},{x1:t+f*n,y1:r,x2:t+f*n,y2:r+i})}return v.createElement("line",ir({},s,{className:q("recharts-cartesian-axis-line",pr(u,"className"))}))}function YE(e,t,r,n,i,a,o,u,c){var s,l,f,d,h,p,m=u?-1:1,y=e.tickSize||o,g=$(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":s=l=e.coordinate,d=r+ +!u*i,f=d-m*y,p=f-m*c,h=g;break;case"left":f=d=e.coordinate,l=t+ +!u*n,s=l-m*y,h=s-m*c,p=g;break;case"right":f=d=e.coordinate,l=t+ +u*n,s=l+m*y,h=s+m*c,p=g;break;default:s=l=e.coordinate,d=r+ +u*i,f=d+m*y,p=f+m*c,h=g;break}return{line:{x1:s,y1:f,x2:l,y2:d},tick:{x:h,y:p}}}function GE(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function XE(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function ZE(e){var{option:t,tickProps:r,value:n}=e,i,a=q(r.className,"recharts-cartesian-axis-tick-value");if(v.isValidElement(t))i=v.cloneElement(t,le(le({},r),{},{className:a}));else if(typeof t=="function")i=t(le(le({},r),{},{className:a}));else{var o="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(o=q(o,t==null?void 0:t.className)),i=v.createElement(gc,ir({},r,{className:o}),n)}return i}function QE(e){var{ticks:t=[],tick:r,tickLine:n,stroke:i,tickFormatter:a,unit:o,padding:u,tickTextProps:c,orientation:s,mirror:l,x:f,y:d,width:h,height:p,tickSize:m,tickMargin:y,fontSize:g,letterSpacing:b,getTicksConfig:x,events:w}=e,P=Ac(le(le({},x),{},{ticks:t}),g,b),O=GE(s,l),k=XE(s,l),M=wt(x),_=oe(r,!1),I=le(le({},M),{},{fill:"none"},oe(n,!1)),C=P.map((T,L)=>{var{line:R,tick:K}=YE(T,f,d,h,p,s,m,l,y),G=le(le(le(le({textAnchor:O,verticalAnchor:k},M),{},{stroke:"none",fill:i},_),K),{},{index:L,payload:T,visibleTicksCount:P.length,tickFormatter:a,padding:u},c);return v.createElement(Te,ir({className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},Ni(w,T,L)),n&&v.createElement("line",ir({},I,R,{className:q("recharts-cartesian-axis-tick-line",pr(n,"className"))})),r&&v.createElement(ZE,{option:r,tickProps:G,value:"".concat(typeof a=="function"?a(T.value,L):T.value).concat(o||"")}))});return C.length>0?v.createElement("g",{className:"recharts-cartesian-axis-ticks"},C):null}var JE=v.forwardRef((e,t)=>{var{axisLine:r,width:n,height:i,className:a,hide:o,ticks:u}=e,c=Lo(e,zE),[s,l]=v.useState(""),[f,d]=v.useState(""),h=v.useRef([]);v.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var m;return BE({ticks:h.current,label:(m=e.labelRef)===null||m===void 0?void 0:m.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var p=v.useCallback(m=>{if(m){var y=m.getElementsByClassName("recharts-cartesian-axis-tick-value");h.current=Array.from(y);var g=y[0];if(g){var b=window.getComputedStyle(g),x=b.fontSize,w=b.letterSpacing;(x!==s||w!==f)&&(l(x),d(w))}}},[s,f]);return o||n!=null&&n<=0||i!=null&&i<=0?null:v.createElement(Te,{className:q("recharts-cartesian-axis",a),ref:p},v.createElement(VE,{x:e.x,y:e.y,width:n,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:r,otherSvgProps:wt(e)}),v.createElement(QE,{ticks:u,tick:e.tick,tickLine:e.tickLine,stroke:e.stroke,tickFormatter:e.tickFormatter,unit:e.unit,padding:e.padding,tickTextProps:e.tickTextProps,orientation:e.orientation,mirror:e.mirror,x:e.x,y:e.y,width:e.width,height:e.height,tickSize:e.tickSize,tickMargin:e.tickMargin,fontSize:s,letterSpacing:f,getTicksConfig:e,events:c}),v.createElement(YA,{x:e.x,y:e.y,width:e.width,height:e.height},v.createElement(ik,{label:e.label}),e.children))}),eM=v.memo(JE,(e,t)=>{var{viewBox:r}=e,n=Lo(e,KE),{viewBox:i}=t,a=Lo(t,FE);return Or(r,i)&&Or(n,a)}),Sc=v.forwardRef((e,t)=>{var r=De(e,kc);return v.createElement(eM,ir({},r,{ref:t}))});Sc.displayName="CartesianAxis";var tM=["x1","y1","x2","y2","key"],rM=["offset"],nM=["xAxisId","yAxisId"],iM=["xAxisId","yAxisId"];function df(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Oe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?df(Object(r),!0).forEach(function(n){aM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):df(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aM(e,t,r){return(t=oM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oM(e){var t=uM(e,"string");return typeof t=="symbol"?t:t+""}function uM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gt.apply(null,arguments)}function bi(e,t){if(e==null)return{};var r,n,i=cM(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function cM(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var lM=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:r,x:n,y:i,width:a,height:o,ry:u}=e;return v.createElement("rect",{x:n,y:i,ry:u,width:a,height:o,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function dy(e,t){var r;if(v.isValidElement(e))r=v.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var{x1:n,y1:i,x2:a,y2:o,key:u}=t,c=bi(t,tM),s=wt(c),{offset:l}=s,f=bi(s,rM);r=v.createElement("line",Gt({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function sM(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,u=bi(e,nM),c=i.map((s,l)=>{var f=Oe(Oe({},u),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return dy(n,f)});return v.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}function fM(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,u=bi(e,iM),c=i.map((s,l)=>{var f=Oe(Oe({},u),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return dy(n,f)});return v.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}function dM(e){var{horizontalFill:t,fillOpacity:r,x:n,y:i,width:a,height:o,horizontalPoints:u,horizontal:c=!0}=e;if(!c||!t||!t.length)return null;var s=u.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==s[0]&&s.unshift(0);var l=s.map((f,d)=>{var h=!s[d+1],p=h?i+o-f:s[d+1]-f;if(p<=0)return null;var m=d%t.length;return v.createElement("rect",{key:"react-".concat(d),y:f,x:n,height:p,width:a,stroke:"none",fill:t[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return v.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function hM(e){var{vertical:t=!0,verticalFill:r,fillOpacity:n,x:i,y:a,width:o,height:u,verticalPoints:c}=e;if(!t||!r||!r.length)return null;var s=c.map(f=>Math.round(f+i-i)).sort((f,d)=>f-d);i!==s[0]&&s.unshift(0);var l=s.map((f,d)=>{var h=!s[d+1],p=h?i+o-f:s[d+1]-f;if(p<=0)return null;var m=d%r.length;return v.createElement("rect",{key:"react-".concat(d),x:f,y:a,width:p,height:u,stroke:"none",fill:r[m],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return v.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var vM=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return qd(Ac(Oe(Oe(Oe({},kc),r),{},{ticks:Vd(r),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},pM=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return qd(Ac(Oe(Oe(Oe({},kc),r),{},{ticks:Vd(r),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},yM={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function mM(e){var t=xu(),r=wu(),n=Xd(),i=Oe(Oe({},De(e,yM)),{},{x:$(e.x)?e.x:n.left,y:$(e.y)?e.y:n.top,width:$(e.width)?e.width:n.width,height:$(e.height)?e.height:n.height}),{xAxisId:a,yAxisId:o,x:u,y:c,width:s,height:l,syncWithTicks:f,horizontalValues:d,verticalValues:h}=i,p=je(),m=N(_=>Ps(_,"xAxis",a,p)),y=N(_=>Ps(_,"yAxis",o,p));if(!$(s)||s<=0||!$(l)||l<=0||!$(u)||u!==+u||!$(c)||c!==+c)return null;var g=i.verticalCoordinatesGenerator||vM,b=i.horizontalCoordinatesGenerator||pM,{horizontalPoints:x,verticalPoints:w}=i;if((!x||!x.length)&&typeof b=="function"){var P=d&&d.length,O=b({yAxis:y?Oe(Oe({},y),{},{ticks:P?d:y.ticks}):void 0,width:t,height:r,offset:n},P?!0:f);Fr(Array.isArray(O),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(x=O)}if((!w||!w.length)&&typeof g=="function"){var k=h&&h.length,M=g({xAxis:m?Oe(Oe({},m),{},{ticks:k?h:m.ticks}):void 0,width:t,height:r,offset:n},k?!0:f);Fr(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof M,"]")),Array.isArray(M)&&(w=M)}return v.createElement("g",{className:"recharts-cartesian-grid"},v.createElement(lM,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),v.createElement(dM,Gt({},i,{horizontalPoints:x})),v.createElement(hM,Gt({},i,{verticalPoints:w})),v.createElement(sM,Gt({},i,{offset:n,horizontalPoints:x,xAxis:m,yAxis:y})),v.createElement(fM,Gt({},i,{offset:n,verticalPoints:w,xAxis:m,yAxis:y})))}mM.displayName="CartesianGrid";var hy=(e,t,r,n)=>$t(e,"xAxis",t,n),vy=(e,t,r,n)=>It(e,"xAxis",t,n),py=(e,t,r,n)=>$t(e,"yAxis",r,n),yy=(e,t,r,n)=>It(e,"yAxis",r,n),gM=A([U,hy,py,vy,yy],(e,t,r,n,i)=>Pt(e,"xAxis")?Vr(t,n,!1):Vr(r,i,!1)),bM=(e,t,r,n,i)=>i,my=A([ya,bM],(e,t)=>e.filter(r=>r.type==="area").find(r=>r.id===t)),xM=(e,t,r,n,i)=>{var a,o=my(e,t,r,n,i);if(o!=null){var u=U(e),c=Pt(u,"xAxis"),s;if(c?s=en(e,"yAxis",r,n):s=en(e,"xAxis",t,n),s!=null){var{stackId:l}=o,f=va(o);if(!(l==null||f==null)){var d=(a=s[l])===null||a===void 0?void 0:a.stackedData;return d==null?void 0:d.find(h=>h.key===f)}}}},wM=A([U,hy,py,vy,yy,xM,ca,gM,my],(e,t,r,n,i,a,o,u,c)=>{var{chartData:s,dataStartIndex:l,dataEndIndex:f}=o;if(!(c==null||e!=="horizontal"&&e!=="vertical"||t==null||r==null||n==null||i==null||n.length===0||i.length===0||u==null)){var{data:d}=c,h;if(d&&d.length>0?h=d:h=s==null?void 0:s.slice(l,f+1),h!=null){var p=void 0;return FM({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataStartIndex:l,areaSettings:c,stackedData:a,displayedData:h,chartBaseValue:p,bandSize:u})}}}),PM=["id"],OM=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function gy(e,t){if(e==null)return{};var r,n,i=AM(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function AM(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ht(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hf(Object(r),!0).forEach(function(n){kM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kM(e,t,r){return(t=SM(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SM(e){var t=EM(e,"string");return typeof t=="symbol"?t:t+""}function EM(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yt(){return yt=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},yt.apply(null,arguments)}function xi(e,t){return e&&e!=="none"?e:t}var MM=e=>{var{dataKey:t,name:r,stroke:n,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:xi(n,i),value:Yi(r,t),payload:e}]};function CM(e){var{dataKey:t,data:r,stroke:n,strokeWidth:i,fill:a,name:o,hide:u,unit:c}=e;return{dataDefinedOnItem:r,positions:void 0,settings:{stroke:n,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:Yi(o,t),hide:u,type:e.tooltipType,color:xi(n,a),unit:c}}}var _M=(e,t)=>{var r;if(v.isValidElement(e))r=v.cloneElement(e,t);else if(typeof e=="function")r=e(t);else{var n=q("recharts-area-dot",typeof e!="boolean"?e.className:"");r=v.createElement(Vp,yt({},t,{className:n}))}return r};function TM(e,t){return e==null?!1:t?!0:e.length===1}function jM(e){var{clipPathId:t,points:r,props:n}=e,{needClip:i,dot:a,dataKey:o}=n;if(!TM(r,a))return null;var u=Cf(a),c=wt(n),s=oe(a,!0),l=r.map((d,h)=>{var p=ht(ht(ht({key:"dot-".concat(h),r:3},c),s),{},{index:h,cx:d.x,cy:d.y,dataKey:o,value:d.value,payload:d.payload,points:r});return _M(a,p)}),f={clipPath:i?"url(#clipPath-".concat(u?"":"dots-").concat(t,")"):void 0};return v.createElement(Te,yt({className:"recharts-area-dots"},f),l)}function DM(e){var{showLabels:t,children:r,points:n}=e,i=n.map(a=>{var o={x:a.x,y:a.y,width:0,height:0};return ht(ht({},o),{},{value:a.value,payload:a.payload,parentViewBox:void 0,viewBox:o,fill:void 0})});return v.createElement(Up,{value:t?i:null},r)}function vf(e){var{points:t,baseLine:r,needClip:n,clipPathId:i,props:a}=e,{layout:o,type:u,stroke:c,connectNulls:s,isRange:l}=a,{id:f}=a,d=gy(a,PM),h=wt(d);return v.createElement(v.Fragment,null,(t==null?void 0:t.length)>1&&v.createElement(Te,{clipPath:n?"url(#clipPath-".concat(i,")"):void 0},v.createElement(Nn,yt({},h,{id:f,points:t,connectNulls:s,type:u,baseLine:r,layout:o,stroke:"none",className:"recharts-area-area"})),c!=="none"&&v.createElement(Nn,yt({},h,{className:"recharts-area-curve",layout:o,type:u,connectNulls:s,fill:"none",points:t})),c!=="none"&&l&&v.createElement(Nn,yt({},h,{className:"recharts-area-curve",layout:o,type:u,connectNulls:s,fill:"none",points:r}))),v.createElement(jM,{points:t,props:d,clipPathId:i}))}function IM(e){var{alpha:t,baseLine:r,points:n,strokeWidth:i}=e,a=n[0].y,o=n[n.length-1].y;if(!we(a)||!we(o))return null;var u=t*Math.abs(a-o),c=Math.max(...n.map(s=>s.x||0));return $(r)?c=Math.max(r,c):r&&Array.isArray(r)&&r.length&&(c=Math.max(...r.map(s=>s.x||0),c)),$(c)?v.createElement("rect",{x:0,y:a<o?a:a-u,width:c+(i?parseInt("".concat(i),10):1),height:Math.floor(u)}):null}function $M(e){var{alpha:t,baseLine:r,points:n,strokeWidth:i}=e,a=n[0].x,o=n[n.length-1].x;if(!we(a)||!we(o))return null;var u=t*Math.abs(a-o),c=Math.max(...n.map(s=>s.y||0));return $(r)?c=Math.max(r,c):r&&Array.isArray(r)&&r.length&&(c=Math.max(...r.map(s=>s.y||0),c)),$(c)?v.createElement("rect",{x:a<o?a:a-u,y:0,width:u,height:Math.floor(c+(i?parseInt("".concat(i),10):1))}):null}function NM(e){var{alpha:t,layout:r,points:n,baseLine:i,strokeWidth:a}=e;return r==="vertical"?v.createElement(IM,{alpha:t,points:n,baseLine:i,strokeWidth:a}):v.createElement($M,{alpha:t,points:n,baseLine:i,strokeWidth:a})}function LM(e){var{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:a}=e,{points:o,baseLine:u,isAnimationActive:c,animationBegin:s,animationDuration:l,animationEasing:f,onAnimationStart:d,onAnimationEnd:h}=n,p=ta(n,"recharts-area-"),[m,y]=v.useState(!1),g=!m,b=v.useCallback(()=>{typeof h=="function"&&h(),y(!1)},[h]),x=v.useCallback(()=>{typeof d=="function"&&d(),y(!0)},[d]),w=i.current,P=a.current;return v.createElement(DM,{showLabels:g,points:o},n.children,v.createElement(ea,{animationId:p,begin:s,duration:l,isActive:c,easing:f,onAnimationEnd:b,onAnimationStart:x,key:p},O=>{if(w){var k=w.length/o.length,M=O===1?o:o.map((I,C)=>{var T=Math.floor(C*k);if(w[T]){var L=w[T];return ht(ht({},I),{},{x:ie(L.x,I.x,O),y:ie(L.y,I.y,O)})}return I}),_;return $(u)?_=ie(P,u,O):re(u)||_e(u)?_=ie(P,0,O):_=u.map((I,C)=>{var T=Math.floor(C*k);if(Array.isArray(P)&&P[T]){var L=P[T];return ht(ht({},I),{},{x:ie(L.x,I.x,O),y:ie(L.y,I.y,O)})}return I}),O>0&&(i.current=M,a.current=_),v.createElement(vf,{points:M,baseLine:_,needClip:t,clipPathId:r,props:n})}return O>0&&(i.current=o,a.current=u),v.createElement(Te,null,c&&v.createElement("defs",null,v.createElement("clipPath",{id:"animationClipPath-".concat(r)},v.createElement(NM,{alpha:O,points:o,baseLine:u,layout:n.layout,strokeWidth:n.strokeWidth}))),v.createElement(Te,{clipPath:"url(#animationClipPath-".concat(r,")")},v.createElement(vf,{points:o,baseLine:u,needClip:t,clipPathId:r,props:n})))}),v.createElement(qp,{label:n.label}))}function RM(e){var{needClip:t,clipPathId:r,props:n}=e,i=v.useRef(null),a=v.useRef();return v.createElement(LM,{needClip:t,clipPathId:r,props:n,previousPointsRef:i,previousBaselineRef:a})}class BM extends v.PureComponent{render(){var t,{hide:r,dot:n,points:i,className:a,top:o,left:u,needClip:c,xAxisId:s,yAxisId:l,width:f,height:d,id:h,baseLine:p}=this.props;if(r)return null;var m=q("recharts-area",a),y=h,{r:g=3,strokeWidth:b=2}=(t=oe(n,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},x=Cf(n),w=g*2+b;return v.createElement(v.Fragment,null,v.createElement(Te,{className:m},c&&v.createElement("defs",null,v.createElement(oy,{clipPathId:y,xAxisId:s,yAxisId:l}),!x&&v.createElement("clipPath",{id:"clipPath-dots-".concat(y)},v.createElement("rect",{x:u-w/2,y:o-w/2,width:f+w,height:d+w}))),v.createElement(RM,{needClip:c,clipPathId:y,props:this.props})),v.createElement(nf,{points:i,mainColor:xi(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}),this.props.isRange&&Array.isArray(p)&&v.createElement(nf,{points:p,mainColor:xi(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot}))}}var by={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:!ar.isSsr,legendType:"line",stroke:"#3182bd",xAxisId:0,yAxisId:0};function zM(e){var t,r=De(e,by),{activeDot:n,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:u,dot:c,fill:s,fillOpacity:l,hide:f,isAnimationActive:d,legendType:h,stroke:p,xAxisId:m,yAxisId:y}=r,g=gy(r,OM),b=Ji(),x=mp(),{needClip:w}=Pc(m,y),P=je(),{points:O,isRange:k,baseLine:M}=(t=N(R=>wM(R,m,y,P,e.id)))!==null&&t!==void 0?t:{},_=xc();if(b!=="horizontal"&&b!=="vertical"||_==null||x!=="AreaChart"&&x!=="ComposedChart")return null;var{height:I,width:C,x:T,y:L}=_;return!O||!O.length?null:v.createElement(BM,yt({},g,{activeDot:n,animationBegin:i,animationDuration:a,animationEasing:o,baseLine:M,connectNulls:u,dot:c,fill:s,fillOpacity:l,height:I,hide:f,layout:b,isAnimationActive:d,isRange:k,legendType:h,needClip:w,points:O,stroke:p,width:C,left:T,top:L,xAxisId:m,yAxisId:y}))}var KM=(e,t,r,n,i)=>{var a=r??t;if($(a))return a;var o=e==="horizontal"?i:n,u=o.scale.domain();if(o.type==="number"){var c=Math.max(u[0],u[1]),s=Math.min(u[0],u[1]);return a==="dataMin"?s:a==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return a==="dataMin"?u[0]:a==="dataMax"?u[1]:u[0]};function FM(e){var{areaSettings:{connectNulls:t,baseValue:r,dataKey:n},stackedData:i,layout:a,chartBaseValue:o,xAxis:u,yAxis:c,displayedData:s,dataStartIndex:l,xAxisTicks:f,yAxisTicks:d,bandSize:h}=e,p=i&&i.length,m=KM(a,o,r,u,c),y=a==="horizontal",g=!1,b=s.map((w,P)=>{var O;p?O=i[l+P]:(O=ve(w,n),Array.isArray(O)?g=!0:O=[m,O]);var k=O[1]==null||p&&!t&&ve(w,n)==null;return y?{x:ul({axis:u,ticks:f,bandSize:h,entry:w,index:P}),y:k?null:c.scale(O[1]),value:O,payload:w}:{x:k?null:u.scale(O[1]),y:ul({axis:c,ticks:d,bandSize:h,entry:w,index:P}),value:O,payload:w}}),x;return p||g?x=b.map(w=>{var P=Array.isArray(w.value)?w.value[0]:null;return y?{x:w.x,y:P!=null&&w.y!=null?c.scale(P):null,payload:w.payload}:{x:P!=null?u.scale(P):null,y:w.y,payload:w.payload}}):x=y?c.scale(m):u.scale(m),{points:b,baseLine:x,isRange:g}}function WM(e){var t=De(e,by),r=je();return v.createElement(ty,{id:t.id,type:"area"},n=>v.createElement(v.Fragment,null,v.createElement(ey,{legendPayload:MM(t)}),v.createElement(Jp,{fn:CM,args:t}),v.createElement(ny,{type:"area",id:n,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Yd(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:r,connectNulls:t.connectNulls}),v.createElement(zM,yt({},t,{id:n}))))}var UM=v.memo(WM);UM.displayName="Area";var HM=["dangerouslySetInnerHTML","ticks"],qM=["id"],VM=["domain"],YM=["domain"];function Ro(){return Ro=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},Ro.apply(null,arguments)}function wi(e,t){if(e==null)return{};var r,n,i=GM(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function GM(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function XM(e){var t=ue();return v.useEffect(()=>(t(qk(e)),()=>{t(Vk(e))}),[e,t]),null}var ZM=e=>{var{xAxisId:t,className:r}=e,n=N(gu),i=je(),a="xAxis",o=N(y=>Cr(y,a,t,i)),u=N(y=>Xv(y,a,t,i)),c=N(y=>qv(y,t)),s=N(y=>kP(y,t)),l=N(y=>pv(y,t));if(c==null||s==null||l==null)return null;var{dangerouslySetInnerHTML:f,ticks:d}=e,h=wi(e,HM),{id:p}=l,m=wi(l,qM);return v.createElement(Sc,Ro({},h,m,{scale:o,x:s.x,y:s.y,width:c.width,height:c.height,className:q("recharts-".concat(a," ").concat(a),r),viewBox:n,ticks:u}))},QM={allowDataOverflow:Le.allowDataOverflow,allowDecimals:Le.allowDecimals,allowDuplicatedCategory:Le.allowDuplicatedCategory,height:Le.height,hide:!1,mirror:Le.mirror,orientation:Le.orientation,padding:Le.padding,reversed:Le.reversed,scale:Le.scale,tickCount:Le.tickCount,type:Le.type,xAxisId:0},JM=e=>{var t,r,n,i,a,o=De(e,QM);return v.createElement(v.Fragment,null,v.createElement(XM,{interval:(t=o.interval)!==null&&t!==void 0?t:"preserveEnd",id:o.xAxisId,scale:o.scale,type:o.type,padding:o.padding,allowDataOverflow:o.allowDataOverflow,domain:o.domain,dataKey:o.dataKey,allowDuplicatedCategory:o.allowDuplicatedCategory,allowDecimals:o.allowDecimals,tickCount:o.tickCount,includeHidden:(r=o.includeHidden)!==null&&r!==void 0?r:!1,reversed:o.reversed,ticks:o.ticks,height:o.height,orientation:o.orientation,mirror:o.mirror,hide:o.hide,unit:o.unit,name:o.name,angle:(n=o.angle)!==null&&n!==void 0?n:0,minTickGap:(i=o.minTickGap)!==null&&i!==void 0?i:5,tick:(a=o.tick)!==null&&a!==void 0?a:!0,tickFormatter:o.tickFormatter}),v.createElement(ZM,o))},eC=(e,t)=>{var{domain:r}=e,n=wi(e,VM),{domain:i}=t,a=wi(t,YM);return Or(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:Or({domain:r},{domain:i}):!1},tC=v.memo(JM,eC);tC.displayName="XAxis";var rC=["dangerouslySetInnerHTML","ticks"],nC=["id"],iC=["domain"],aC=["domain"];function Bo(){return Bo=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},Bo.apply(null,arguments)}function Pi(e,t){if(e==null)return{};var r,n,i=oC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function oC(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function uC(e){var t=ue();return v.useEffect(()=>(t(Yk(e)),()=>{t(Gk(e))}),[e,t]),null}var cC=e=>{var{yAxisId:t,className:r,width:n,label:i}=e,a=v.useRef(null),o=v.useRef(null),u=N(gu),c=je(),s=ue(),l="yAxis",f=N(P=>Cr(P,l,t,c)),d=N(P=>Vv(P,t)),h=N(P=>EP(P,t)),p=N(P=>Xv(P,l,t,c)),m=N(P=>yv(P,t));if(v.useLayoutEffect(()=>{if(!(n!=="auto"||!d||bc(i)||v.isValidElement(i)||m==null)){var P=a.current;if(P){var O=P.getCalculatedWidth();Math.round(d.width)!==Math.round(O)&&s(Xk({id:t,width:O}))}}},[p,d,s,i,t,n,m]),d==null||h==null||m==null)return null;var{dangerouslySetInnerHTML:y,ticks:g}=e,b=Pi(e,rC),{id:x}=m,w=Pi(m,nC);return v.createElement(Sc,Bo({},b,w,{ref:a,labelRef:o,scale:f,x:h.x,y:h.y,tickTextProps:n==="auto"?{width:void 0}:{width:n},width:d.width,height:d.height,className:q("recharts-".concat(l," ").concat(l),r),viewBox:u,ticks:p}))},lC={allowDataOverflow:Re.allowDataOverflow,allowDecimals:Re.allowDecimals,allowDuplicatedCategory:Re.allowDuplicatedCategory,hide:!1,mirror:Re.mirror,orientation:Re.orientation,padding:Re.padding,reversed:Re.reversed,scale:Re.scale,tickCount:Re.tickCount,type:Re.type,width:Re.width,yAxisId:0},sC=e=>{var t,r,n,i,a,o=De(e,lC);return v.createElement(v.Fragment,null,v.createElement(uC,{interval:(t=o.interval)!==null&&t!==void 0?t:"preserveEnd",id:o.yAxisId,scale:o.scale,type:o.type,domain:o.domain,allowDataOverflow:o.allowDataOverflow,dataKey:o.dataKey,allowDuplicatedCategory:o.allowDuplicatedCategory,allowDecimals:o.allowDecimals,tickCount:o.tickCount,padding:o.padding,includeHidden:(r=o.includeHidden)!==null&&r!==void 0?r:!1,reversed:o.reversed,ticks:o.ticks,width:o.width,orientation:o.orientation,mirror:o.mirror,hide:o.hide,unit:o.unit,name:o.name,angle:(n=o.angle)!==null&&n!==void 0?n:0,minTickGap:(i=o.minTickGap)!==null&&i!==void 0?i:5,tick:(a=o.tick)!==null&&a!==void 0?a:!0,tickFormatter:o.tickFormatter}),v.createElement(cC,o))},fC=(e,t)=>{var{domain:r}=e,n=Pi(e,iC),{domain:i}=t,a=Pi(t,aC);return Or(n,a)?Array.isArray(r)&&r.length===2&&Array.isArray(i)&&i.length===2?r[0]===i[0]&&r[1]===i[1]:Or({domain:r},{domain:i}):!1},dC=v.memo(sC,fC);dC.displayName="YAxis";var hC={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var gn=v;function vC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var pC=typeof Object.is=="function"?Object.is:vC,yC=gn.useSyncExternalStore,mC=gn.useRef,gC=gn.useEffect,bC=gn.useMemo,xC=gn.useDebugValue;hC.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var a=mC(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=bC(function(){function c(h){if(!s){if(s=!0,l=h,h=n(h),i!==void 0&&o.hasValue){var p=o.value;if(i(p,h))return f=p}return f=h}if(p=f,pC(l,h))return p;var m=n(h);return i!==void 0&&i(p,m)?(l=h,p):(l=h,f=m)}var s=!1,l,f,d=r===void 0?null:r;return[function(){return c(t())},d===null?void 0:function(){return c(d())}]},[t,r,n,i]);var u=yC(e,a[0],a[1]);return gC(function(){o.hasValue=!0,o.value=u},[u]),xC(u),u};function wC(e){e()}function PC(){let e=null,t=null;return{clear(){e=null,t=null},notify(){wC(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},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||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var pf={notify(){},get:()=>[]};function OC(e,t){let r,n=pf,i=0,a=!1;function o(m){l();const y=n.subscribe(m);let g=!1;return()=>{g||(g=!0,y(),f())}}function u(){n.notify()}function c(){p.onStateChange&&p.onStateChange()}function s(){return a}function l(){i++,r||(r=e.subscribe(c),n=PC())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=pf)}function d(){a||(a=!0,l())}function h(){a&&(a=!1,f())}const p={addNestedSub:o,notifyNestedSubs:u,handleChangeWrapper:c,isSubscribed:s,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return p}var AC=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kC=AC(),SC=()=>typeof navigator<"u"&&navigator.product==="ReactNative",EC=SC(),MC=()=>kC||EC?v.useLayoutEffect:v.useEffect,CC=MC(),Ya=Symbol.for("react-redux-context"),Ga=typeof globalThis<"u"?globalThis:{};function _C(){if(!v.createContext)return{};const e=Ga[Ya]??(Ga[Ya]=new Map);let t=e.get(v.createContext);return t||(t=v.createContext(null),e.set(v.createContext,t)),t}var TC=_C();function jC(e){const{children:t,context:r,serverState:n,store:i}=e,a=v.useMemo(()=>{const c=OC(i);return{store:i,subscription:c,getServerState:n?()=>n:void 0}},[i,n]),o=v.useMemo(()=>i.getState(),[i]);CC(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),o!==i.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,o]);const u=r||TC;return v.createElement(u.Provider,{value:a},t)}var DC=jC,IC=(e,t)=>t,Ec=A([IC,U,dv,fe,fp,Mt,TO,pe],NO),Mc=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},xy=Ze("mouseClick"),wy=an();wy.startListening({actionCreator:xy,effect:(e,t)=>{var r=e.payload,n=Ec(t.getState(),Mc(r));(n==null?void 0:n.activeIndex)!=null&&t.dispatch(zP({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var zo=Ze("mouseMove"),Py=an();Py.startListening({actionCreator:zo,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=lc(n,n.tooltip.settings.shared),a=Ec(n,Mc(r));i==="axis"&&((a==null?void 0:a.activeIndex)!=null?t.dispatch(ip({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch(np()))}});var yf={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},Oy=We({name:"rootProps",initialState:yf,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:yf.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}}}),$C=Oy.reducer,{updateOptions:NC}=Oy.actions,Ay=We({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:Nj}=Ay.actions,LC=Ay.reducer,ky=Ze("keyDown"),Sy=Ze("focus"),Cc=an();Cc.startListening({actionCreator:ky,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip,a=e.payload;if(!(a!=="ArrowRight"&&a!=="ArrowLeft"&&a!=="Enter")){var o=Number(sc(i,Tr(r))),u=Mt(r);if(a==="Enter"){var c=hi(r,"axis","hover",String(i.index));t.dispatch(To({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:c}));return}var s=TP(r),l=s==="left-to-right"?1:-1,f=a==="ArrowRight"?1:-1,d=o+f*l;if(!(u==null||d>=u.length||d<0)){var h=hi(r,"axis","hover",String(d));t.dispatch(To({active:!0,activeIndex:d.toString(),activeDataKey:void 0,activeCoordinate:h}))}}}}});Cc.startListening({actionCreator:Sy,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:i}=r.tooltip;if(!i.active&&i.index==null){var a="0",o=hi(r,"axis","hover",String(a));t.dispatch(To({activeDataKey:void 0,active:!0,activeIndex:a,activeCoordinate:o}))}}}});var Ye=Ze("externalEvent"),Ey=an();Ey.startListening({actionCreator:Ye,effect:(e,t)=>{if(e.payload.handler!=null){var r=t.getState(),n={activeCoordinate:PO(r),activeDataKey:pp(r),activeIndex:nr(r),activeLabel:vp(r),activeTooltipIndex:nr(r),isTooltipActive:OO(r)};e.payload.handler(n,e.payload.reactEvent)}}});var RC=A([_r],e=>e.tooltipItemPayloads),BC=A([RC,pn,(e,t,r)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(u=>u.settings.dataKey===n);if(i!=null){var{positions:a}=i;if(a!=null){var o=t(a,r);return o}}}),My=Ze("touchMove"),Cy=an();Cy.startListening({actionCreator:My,effect:(e,t)=>{var r=e.payload,n=t.getState(),i=lc(n,n.tooltip.settings.shared);if(i==="axis"){var a=Ec(n,Mc({clientX:r.touches[0].clientX,clientY:r.touches[0].clientY,currentTarget:r.currentTarget}));(a==null?void 0:a.activeIndex)!=null&&t.dispatch(ip({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(i==="item"){var o,u=r.touches[0],c=document.elementFromPoint(u.clientX,u.clientY);if(!c||!c.getAttribute)return;var s=c.getAttribute(o1),l=(o=c.getAttribute(u1))!==null&&o!==void 0?o:void 0,f=BC(t.getState(),s,l);t.dispatch(rp({activeDataKey:l,activeIndex:s,activeCoordinate:f}))}}});var zC=Pd({brush:xE,cartesianAxis:Zk,chartData:ZO,errorBars:yS,graphicalItems:Kk,layout:_g,legend:A1,options:qO,polarAxis:vk,polarOptions:LC,referenceElements:EE,rootProps:$C,tooltip:KP}),KC=function(t){return tg({reducer:zC,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([wy.middleware,Py.middleware,Cc.middleware,Ey.middleware,Cy.middleware]),devTools:ar.devToolsEnabled})};function FC(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,i=je(),a=v.useRef(null);if(i)return r;a.current==null&&(a.current=KC(t));var o=su;return v.createElement(DC,{context:o,store:a.current},r)}function WC(e){var{layout:t,width:r,height:n,margin:i}=e,a=ue(),o=je();return v.useEffect(()=>{o||(a(Eg(t)),a(Mg({width:r,height:n})),a(Sg(i)))},[a,o,t,r,n,i]),null}function UC(e){var t=ue();return v.useEffect(()=>{t(NC(e))},[t,e]),null}var HC=["children"];function qC(e,t){if(e==null)return{};var r,n,i=VC(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function VC(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Oi(){return Oi=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},Oi.apply(null,arguments)}var YC={width:"100%",height:"100%"},GC=v.forwardRef((e,t)=>{var r=xu(),n=wu(),i=Qd();if(!Zn(r)||!Zn(n))return null;var{children:a,otherAttributes:o,title:u,desc:c}=e,s,l;return typeof o.tabIndex=="number"?s=o.tabIndex:s=i?0:void 0,typeof o.role=="string"?l=o.role:l=i?"application":void 0,v.createElement(Yo,Oi({},o,{title:u,desc:c,role:l,tabIndex:s,width:r,height:n,style:YC,ref:t}),a)}),XC=e=>{var{children:t}=e,r=N(Qi);if(!r)return null;var{width:n,height:i,y:a,x:o}=r;return v.createElement(Yo,{width:n,height:i,x:o,y:a},t)},mf=v.forwardRef((e,t)=>{var{children:r}=e,n=qC(e,HC),i=je();return i?v.createElement(XC,null,r):v.createElement(GC,Oi({ref:t},n),r)});function ZC(){var e=ue(),[t,r]=v.useState(null),n=N(a1);return v.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),a=i.width/t.offsetWidth;we(a)&&a!==n&&e(Cg(a))}},[t,e,n]),r}function gf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gf(Object(r),!0).forEach(function(n){JC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JC(e,t,r){return(t=e_(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function e_(e){var t=t_(e,"string");return typeof t=="symbol"?t:t+""}function t_(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r_=v.forwardRef((e,t)=>{var{children:r,className:n,height:i,onClick:a,onContextMenu:o,onDoubleClick:u,onMouseDown:c,onMouseEnter:s,onMouseLeave:l,onMouseMove:f,onMouseUp:d,onTouchEnd:h,onTouchMove:p,onTouchStart:m,style:y,width:g}=e,b=ue(),[x,w]=v.useState(null),[P,O]=v.useState(null);oA();var k=ZC(),M=v.useCallback(B=>{k(B),typeof t=="function"&&t(B),w(B),O(B)},[k,t,w,O]),_=v.useCallback(B=>{b(xy(B)),b(Ye({handler:a,reactEvent:B}))},[b,a]),I=v.useCallback(B=>{b(zo(B)),b(Ye({handler:s,reactEvent:B}))},[b,s]),C=v.useCallback(B=>{b(np()),b(Ye({handler:l,reactEvent:B}))},[b,l]),T=v.useCallback(B=>{b(zo(B)),b(Ye({handler:f,reactEvent:B}))},[b,f]),L=v.useCallback(()=>{b(Sy())},[b]),R=v.useCallback(B=>{b(ky(B.key))},[b]),K=v.useCallback(B=>{b(Ye({handler:o,reactEvent:B}))},[b,o]),G=v.useCallback(B=>{b(Ye({handler:u,reactEvent:B}))},[b,u]),Q=v.useCallback(B=>{b(Ye({handler:c,reactEvent:B}))},[b,c]),de=v.useCallback(B=>{b(Ye({handler:d,reactEvent:B}))},[b,d]),J=v.useCallback(B=>{b(Ye({handler:m,reactEvent:B}))},[b,m]),Ct=v.useCallback(B=>{b(My(B)),b(Ye({handler:p,reactEvent:B}))},[b,p]),lr=v.useCallback(B=>{b(Ye({handler:h,reactEvent:B}))},[b,h]);return v.createElement(Pp.Provider,{value:x},v.createElement(_f.Provider,{value:P},v.createElement("div",{className:q("recharts-wrapper",n),style:QC({position:"relative",cursor:"default",width:g,height:i},y),onClick:_,onContextMenu:K,onDoubleClick:G,onFocus:L,onKeyDown:R,onMouseDown:Q,onMouseEnter:I,onMouseLeave:C,onMouseMove:T,onMouseUp:de,onTouchEnd:lr,onTouchMove:Ct,onTouchStart:J,ref:M},r)))}),n_=["children","className","width","height","style","compact","title","desc"];function i_(e,t){if(e==null)return{};var r,n,i=a_(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function a_(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var o_=v.forwardRef((e,t)=>{var{children:r,className:n,width:i,height:a,style:o,compact:u,title:c,desc:s}=e,l=i_(e,n_),f=wt(l);return u?v.createElement(mf,{otherAttributes:f,title:c,desc:s},r):v.createElement(r_,{className:n,style:o,width:i,height:a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},v.createElement(mf,{otherAttributes:f,title:c,desc:s,ref:t},v.createElement(CE,null,r)))}),u_=["width","height"];function Ko(){return Ko=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},Ko.apply(null,arguments)}function c_(e,t){if(e==null)return{};var r,n,i=l_(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function l_(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var s_={top:5,right:5,bottom:5,left:5},f_={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:s_,reverseStackOrder:!1,syncMethod:"index"},_y=v.forwardRef(function(t,r){var n,i=De(t.categoricalChartProps,f_),{width:a,height:o}=i,u=c_(i,u_);if(!Zn(a)||!Zn(o))return null;var{chartName:c,defaultTooltipEventType:s,validateTooltipEventTypes:l,tooltipPayloadSearcher:f,categoricalChartProps:d}=t,h={chartName:c,defaultTooltipEventType:s,validateTooltipEventTypes:l,tooltipPayloadSearcher:f,eventEmitter:void 0};return v.createElement(FC,{preloadedState:{options:h},reduxStoreName:(n=d.id)!==null&&n!==void 0?n:c},v.createElement(bE,{chartData:d.data}),v.createElement(WC,{width:a,height:o,layout:i.layout,margin:i.margin}),v.createElement(UC,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),v.createElement(o_,Ko({},u,{width:a,height:o,ref:r})))}),d_=["axis","item"],Lj=v.forwardRef((e,t)=>v.createElement(_y,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:d_,tooltipPayloadSearcher:Ap,categoricalChartProps:e,ref:t})),h_=["axis"],Rj=v.forwardRef((e,t)=>v.createElement(_y,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:h_,tooltipPayloadSearcher:Ap,categoricalChartProps:e,ref:t}));export{F_ as $,m_ as A,S_ as B,__ as C,rj as D,DT as E,Y_ as F,Q_ as G,aT as H,uT as I,X_ as J,tj as K,hT as L,wT as M,E_ as N,x_ as O,kT as P,uj as Q,$T as R,WT as S,GT as T,aj as U,OT as V,lj as W,dj as X,B_ as Y,vj as Z,TT as _,LT as a,b_ as a$,Z_ as a0,KT as a1,YT as a2,rT as a3,jT as a4,VT as a5,J_ as a6,vT as a7,tT as a8,z_ as a9,NT as aA,fj as aB,MT as aC,H_ as aD,RT as aE,iT as aF,cT as aG,j_ as aH,oj as aI,AT as aJ,FT as aK,mj as aL,Rj as aM,mM as aN,tC as aO,dC as aP,yj as aQ,UM as aR,Lj as aS,Ou as aT,qS as aU,L_ as aV,I_ as aW,U_ as aX,q_ as aY,UT as aZ,PT as a_,IT as aa,O_ as ab,XT as ac,nT as ad,W_ as ae,D_ as af,CT as ag,R_ as ah,lT as ai,A_ as aj,pT as ak,$_ as al,N_ as am,sT as an,k_ as ao,y_ as ap,zT as aq,V_ as ar,BT as as,M_ as at,K_ as au,eT as av,G_ as aw,QT as ax,ZT as ay,T_ as az,JT as b,gT as c,fT as d,ET as e,P_ as f,_T as g,w_ as h,oT as i,cj as j,mT as k,ej as l,sj as m,ST as n,qT as o,hj as p,ij as q,HT as r,qy as s,bT as t,yT as u,nj as v,dT as w,C_ as x,xT as y,g_ as z};
