@moderneinc/react-charts 1.2.0-next.c1bbc5 → 1.2.0-next.d2aaa2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,12 @@ export type TimelineEvent = {
3
3
  date: Date;
4
4
  timestamp: number;
5
5
  eventName: string;
6
+ /**
7
+ * Optional color for the event marker.
8
+ * If not provided, defaults to #2F42FF (Digital Blue 500).
9
+ * Accepts any valid CSS color string.
10
+ */
11
+ color?: string;
6
12
  [key: string]: unknown;
7
13
  };
8
14
  export type TimelineSelection = {
package/dist/index.cjs CHANGED
@@ -30,7 +30,7 @@
30
30
  transparent 3px,
31
31
  ${Ft.noLstHatch.lines} 3px,
32
32
  ${Ft.noLstHatch.lines} 4px
33
- )`,borderRadius:"50%"}}}})}),z.jsx(V.TableCell,{children:z.jsxs(V.Stack,{direction:"row",alignItems:"center",gap:.5,children:[z.jsx("span",{children:a.label}),a.tooltip&&z.jsx(V.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:z.jsx(cA.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?z.jsxs(z.Fragment,{children:[z.jsx(V.TableCell,{align:"right",children:a.value}),z.jsxs(V.TableCell,{align:"right",children:[a.percentage,"%"]})]}):z.jsxs(z.Fragment,{children:[z.jsx(V.TableCell,{align:"right",children:a.value}),z.jsx(V.TableCell,{align:"right",children:a.max??"-"}),z.jsx(V.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),k0={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},YN=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,u=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,l=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:k0[f.label]};if(u){const d=u.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:k0[h.label]})}}}return[...l,...c]},XN=e=>{if(!e.timeSeries[e.timeSeries.length-1])throw new Error("ChronoChart: No data points available");const r=e.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=e.categories.map(i=>{var a;return{dataKey:i.id,label:i.label,color:i.color,fillOpacity:.7,strokeWidth:(a=i.parliamentMapping)!=null&&a.isSpecialCategory?3:1.5,strokeDasharray:i.strokeDasharray,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},VN=e=>{if(!e.timeSeries||e.timeSeries.length===0)throw new Error("ChronoChart: timeSeries must not be empty");if(!e.categories||e.categories.length===0)throw new Error("ChronoChart: categories must not be empty");if(!e.metadata||typeof e.metadata.total!="number")throw new Error("ChronoChart: metadata.total is required");if(!e.timeSeries.every((n,i)=>i===0||n.timestamp>=e.timeSeries[i-1].timestamp))throw new Error("ChronoChart: timeSeries must be sorted by timestamp (ascending)");const r=e.timeSeries[0];if(r){for(const n of e.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoChart: Category "${n.id}" not found in timeSeries data`)}},YT=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:u,enableBrush:l=!1,showLegend:c=!0,showTooltip:f=!0,showGrid:h=!0,enableAnimation:p=!0,animationDuration:y=7777,disableTimeline:m=!1,formatDate:d,formatValue:g,onAnimationStateChange:_,onTimelineReady:b,onAnimationProgress:x})=>{VN(e);const[v,w]=O.useState(null),[S,A]=O.useState(!0),P=O.useRef("historical"),C=O.useRef(void 0),T=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),E=O.useMemo(()=>{var G;let F;return t!==void 0&&e.timeSeries[t]?(F=e.timeSeries[t].timestamp,C.current=F):P.current==="point-in-time"&&T==="historical"&&C.current!==void 0?F=C.current:F=(G=e.timeSeries[e.timeSeries.length-1])==null?void 0:G.timestamp,P.current=T,F},[t,e.timeSeries,T]),k=e.timeSeries[0].timestamp,j=e.timeSeries[e.timeSeries.length-1].timestamp,[$,M]=O.useState([k,j]),I=s??$,L=O.useCallback(F=>{u?u(F):M(F)},[u]);O.useEffect(()=>{w(null)},[T]);const q=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),R=O.useMemo(()=>XN(e),[e]),D=O.useMemo(()=>YN(e,T),[e,T]),B=O.useMemo(()=>{const F=e.timeSeries[e.timeSeries.length-1];return F?Object.values(F.values).reduce((G,J)=>G+J,0):0},[e.timeSeries]),U=O.useMemo(()=>mg({repositoryCount:B}),[B]),W=O.useMemo(()=>yg({repositoryCount:B}),[B]),X=O.useMemo(()=>{const F=o-q.top-q.bottom;return Math.round(F*.9)},[o,q]),Z=O.useMemo(()=>e.events?e.events.map(F=>({timestamp:F.timestamp,label:F.eventName,color:"#992FB9"})):[],[e.events]),Q=O.useCallback(F=>{if(F){const G=e.categories.find(J=>J.label===F.label);w((G==null?void 0:G.id)??null)}else w(null)},[e.categories]),K=O.useCallback(F=>{A(!F),_&&_(F)},[_]);return z.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&z.jsxs(V.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&z.jsx(V.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&z.jsx(V.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),z.jsx(V.Box,{sx:{position:"relative",width:"100%"},children:z.jsx(jT,{data:R.data,categories:R.categories,mode:T==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:I,onTimeRangeChange:L,enableBrush:l,showGrid:h,showAxes:!0,margin:q,markers:Z,formatDate:d,formatValue:g,animationDuration:y,onAnimationStateChange:K,onTimelineReady:b,onAnimationProgress:x,onHoveredDataChange:Q,hoveredCategory:v,arcAngle:U,parliamentRadius:X,seatSize:W,parliamentTimestamp:E,timelineEvents:e.events??[],showTimeline:T==="historical"&&!m})}),z.jsx(KN,{categories:D,activeCategory:v,onCategoryHover:w,mode:T,visible:S})]})},ZN=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:u=!0,showYAxis:l=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:g})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const _=Qt(e.current),b=n-a.left-a.right,x=i-a.top-a.bottom;_.selectAll("*").remove();const v=_.append("g").attr("transform",`translate(${a.left},${a.top})`),w=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;_.append("defs").append("clipPath").attr("id",w).append("rect").attr("x",0).attr("y",0).attr("width",b).attr("height",x);const S=v.append("g").attr("clip-path",`url(#${w})`),A=r.map(D=>D.dataKey),P=Zu().keys(A),C=P(t),T=t.map(D=>D.timestamp),E=o?o[0]:Math.min(...T),k=o?o[1]:Math.max(...T),j=Gu().domain([new Date(E),new Date(k)]).range([0,b]),$=t.filter(D=>D.timestamp>=E&&D.timestamp<=k),M=P($),I=M.length>0?Math.max(...M[M.length-1].map(D=>D[1]??0)):0,L=Ei().domain([0,I*1.1]).range([x,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Xo(j).ticks(6).tickSize(x).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Vo(L).ticks(5).tickSize(-b).tickFormat(()=>"")));const q=hi().x(D=>j(new Date(D.data.timestamp))).y0(D=>L(D[0])).y1(D=>L(D[1])).curve(Im.alpha(.5)),R=S.append("g").attr("class","areas");if(C.forEach((D,B)=>{const U=r[B];if(!U)return;const W=R.append("path").datum(D).attr("class",`area area-${U.dataKey}`).attr("fill",U.color).attr("fill-opacity",U.fillOpacity??.7).attr("stroke",U.color).attr("stroke-width",U.strokeWidth??1.5).attr("d",q);U.strokeDasharray&&W.attr("stroke-dasharray",U.strokeDasharray)}),m.length>0){const D=S.append("g").attr("class","markers"),B=d==="hover"?0:.6,U=m.filter(W=>W.timestamp>=E&&W.timestamp<=k).map(W=>({...W,x:j(new Date(W.timestamp))}));if(U.forEach(W=>{const X=D.append("line").attr("class","marker-line").attr("data-timestamp",W.timestamp).attr("x1",W.x).attr("x2",W.x).attr("y1",0).attr("y2",x).attr("stroke",W.color??"#131E7A").attr("stroke-width",2).attr("opacity",B);W.strokeDasharray&&X.attr("stroke-dasharray",W.strokeDasharray),W.label&&D.append("text").attr("class","marker-label").attr("data-timestamp",W.timestamp).attr("x",W.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",W.color??"#131E7A").attr("opacity",B).text(W.label)}),d==="hover"&&U.length>0){const W=_.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),X=W.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),Z=W.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let Q=null;const K=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",x).attr("fill","none").attr("pointer-events","all"),F=G=>{let J=null,N=1/0;if(U.forEach(Vt=>{const Mt=Math.abs(G-Vt.x);Mt<N&&(N=Mt,J=Vt)}),!J||N>50)return Q!==null&&(Q=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),W.style("display","none"),g==null||g(!1)),!1;const H=J;if(Q===null&&(g==null||g(!0)),Q===H.timestamp)return!0;Q=H.timestamp,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),D.selectAll(".marker-line").filter(function(){return Qt(this).attr("data-timestamp")===String(H.timestamp)}).attr("opacity",.6),D.selectAll(".marker-label").filter(function(){return Qt(this).attr("data-timestamp")===String(H.timestamp)}).attr("opacity",1);const st=new Date(H.timestamp),ht=p?p(H.timestamp):st.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),at=H.label?`${H.label}: ${ht}`:ht;Z.text(at);const pt=Z.node().getBBox(),Tt=8,it=pt.width+Tt*2,ft=pt.height+Tt*2;X.attr("width",it).attr("height",ft);let wt=H.x-it/2;const Et=10;return wt<0?wt=0:wt+it>b&&(wt=b-it),W.attr("transform",`translate(${a.left+wt},${a.top+Et})`),Z.attr("x",it/2).attr("y",ft/2+4),W.style("display","block"),!0};K.on("mousemove",function(G){const[J]=Zo(G,this);F(J)&&G.stopPropagation()}),K.on("mouseleave",function(){Q=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),W.style("display","none"),g==null||g(!1)})}}if(u){const D=Xo(j).ticks(6);p&&D.tickFormat(B=>p(+B)),v.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${x})`).call(D).selectAll("text").attr("font-size",11)}if(l){const D=Vo(L).ticks(5);y&&D.tickFormat(B=>y(+B)),v.append("g").attr("class","axis axis-y").call(D).selectAll("text").attr("font-size",11)}if(c&&h){const D=Kl().extent([[0,0],[b,x]]).on("end",U=>{if(!U.selection)return;const[W,X]=U.selection,Z=[+j.invert(W),+j.invert(X)];h(Z),f&&_.select(".brush").call(D.move,null)}),B=S.append("g").attr("class","brush").call(D);B.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),B.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8)}return()=>{_.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,u,l,c,f,h,p,y,m,d,g])},JN=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:u=400,margin:l={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:g,enableBrush:_=!1,zoomToSelection:b=!1,markers:x=[],markerVisibilityMode:v="hover"})=>{const w=O.useRef(null),[S,A]=O.useState(null),[P,C]=O.useState(!1);O.useEffect(()=>{P&&A(null)},[P]),ZN({containerRef:w,data:e,categories:t,width:s,height:u,margin:l,timeRange:c,showGrid:f,showXAxis:p!==void 0?p:h,showYAxis:y!==void 0?y:h,enableBrush:_,zoomToSelection:b,onTimeRangeChange:g,formatDate:m,formatValue:d,markers:x,markerVisibilityMode:v,onMarkerHoverChange:C});const k=$=>{if(!o||!w.current||P)return;const M=w.current.getBoundingClientRect(),I=$.clientX-M.left-l.left,L=$.clientY-M.top,q=s-l.left-l.right;if(I<0||I>q){A(null);return}const R=e.map(G=>G.timestamp),D=c?c[0]:Math.min(...R),B=c?c[1]:Math.max(...R),U=I/q*(B-D)+D,X=((G,J)=>{let N=0,ut=G.length;for(;N<ut;){const H=N+ut>>>1;G[H]<J?N=H+1:ut=H}return N})(R,U),Z=e[X-1],Q=e[X];let K=Q;if(Z&&Q?K=U-Z.timestamp>Q.timestamp-U?Q:Z:Z&&(K=Z),!K){A(null);return}const F=t.map(G=>({label:G.label,value:K[G.dataKey]??0,color:G.color}));A({visible:!0,x:$.clientX-M.left,y:L,timestamp:K.timestamp,values:F})},j=()=>{o&&A(null)};return z.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&z.jsxs(V.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&z.jsx(V.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&z.jsx(V.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),z.jsxs(V.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[z.jsx("svg",{ref:w,viewBox:`0 0 ${s} ${u}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:k,onMouseLeave:j}),o&&S&&S.visible&&z.jsxs(V.Paper,{elevation:3,sx:{position:"absolute",left:S.x+10,top:S.y-10,pointerEvents:"none",padding:1.5,minWidth:150,zIndex:1e3,transform:S.x>s/2?"translateX(-100%) translateX(-20px)":"none"},children:[z.jsx(V.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),z.jsx(V.Stack,{spacing:.5,sx:{mt:1},children:S.values.map($=>z.jsxs(V.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[z.jsxs(V.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[z.jsx(V.Box,{sx:{width:8,height:8,backgroundColor:$.color,borderRadius:"50%"}}),z.jsxs(V.Typography,{variant:"caption",children:[$.label,":"]})]}),z.jsx(V.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d($.value):$.value})]},$.label))})]})]}),a&&z.jsx(V.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map($=>z.jsxs(V.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[z.jsx(V.Box,{sx:{width:16,height:16,backgroundColor:$.color,opacity:$.fillOpacity??.7,border:`2px solid ${$.color}`,borderRadius:"2px",...$.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
33
+ )`,borderRadius:"50%"}}}})}),z.jsx(V.TableCell,{children:z.jsxs(V.Stack,{direction:"row",alignItems:"center",gap:.5,children:[z.jsx("span",{children:a.label}),a.tooltip&&z.jsx(V.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:z.jsx(cA.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?z.jsxs(z.Fragment,{children:[z.jsx(V.TableCell,{align:"right",children:a.value}),z.jsxs(V.TableCell,{align:"right",children:[a.percentage,"%"]})]}):z.jsxs(z.Fragment,{children:[z.jsx(V.TableCell,{align:"right",children:a.value}),z.jsx(V.TableCell,{align:"right",children:a.max??"-"}),z.jsx(V.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),k0={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},YN=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,u=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,l=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:k0[f.label]};if(u){const d=u.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:k0[h.label]})}}}return[...l,...c]},XN=e=>{if(!e.timeSeries[e.timeSeries.length-1])throw new Error("ChronoChart: No data points available");const r=e.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=e.categories.map(i=>{var a;return{dataKey:i.id,label:i.label,color:i.color,fillOpacity:.7,strokeWidth:(a=i.parliamentMapping)!=null&&a.isSpecialCategory?3:1.5,strokeDasharray:i.strokeDasharray,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},VN=e=>{if(!e.timeSeries||e.timeSeries.length===0)throw new Error("ChronoChart: timeSeries must not be empty");if(!e.categories||e.categories.length===0)throw new Error("ChronoChart: categories must not be empty");if(!e.metadata||typeof e.metadata.total!="number")throw new Error("ChronoChart: metadata.total is required");if(!e.timeSeries.every((n,i)=>i===0||n.timestamp>=e.timeSeries[i-1].timestamp))throw new Error("ChronoChart: timeSeries must be sorted by timestamp (ascending)");const r=e.timeSeries[0];if(r){for(const n of e.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoChart: Category "${n.id}" not found in timeSeries data`)}},YT=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:u,enableBrush:l=!1,showLegend:c=!0,showTooltip:f=!0,showGrid:h=!0,enableAnimation:p=!0,animationDuration:y=7777,disableTimeline:m=!1,formatDate:d,formatValue:g,onAnimationStateChange:_,onTimelineReady:b,onAnimationProgress:x})=>{VN(e);const[v,w]=O.useState(null),[S,A]=O.useState(!0),P=O.useRef("historical"),C=O.useRef(void 0),T=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),E=O.useMemo(()=>{var G;let F;return t!==void 0&&e.timeSeries[t]?(F=e.timeSeries[t].timestamp,C.current=F):P.current==="point-in-time"&&T==="historical"&&C.current!==void 0?F=C.current:F=(G=e.timeSeries[e.timeSeries.length-1])==null?void 0:G.timestamp,P.current=T,F},[t,e.timeSeries,T]),k=e.timeSeries[0].timestamp,j=e.timeSeries[e.timeSeries.length-1].timestamp,[$,M]=O.useState([k,j]),I=s??$,L=O.useCallback(F=>{u?u(F):M(F)},[u]);O.useEffect(()=>{w(null)},[T]);const q=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),R=O.useMemo(()=>XN(e),[e]),D=O.useMemo(()=>YN(e,T),[e,T]),B=O.useMemo(()=>{const F=e.timeSeries[e.timeSeries.length-1];return F?Object.values(F.values).reduce((G,J)=>G+J,0):0},[e.timeSeries]),U=O.useMemo(()=>mg({repositoryCount:B}),[B]),W=O.useMemo(()=>yg({repositoryCount:B}),[B]),X=O.useMemo(()=>{const F=o-q.top-q.bottom;return Math.round(F*.9)},[o,q]),Z=O.useMemo(()=>e.events?e.events.map(F=>({timestamp:F.timestamp,label:F.eventName,color:typeof F.color=="string"?F.color:"#2F42FF"})):[],[e.events]),Q=O.useCallback(F=>{if(F){const G=e.categories.find(J=>J.label===F.label);w((G==null?void 0:G.id)??null)}else w(null)},[e.categories]),K=O.useCallback(F=>{A(!F),_&&_(F)},[_]);return z.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&z.jsxs(V.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&z.jsx(V.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&z.jsx(V.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),z.jsx(V.Box,{sx:{position:"relative",width:"100%"},children:z.jsx(jT,{data:R.data,categories:R.categories,mode:T==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:I,onTimeRangeChange:L,enableBrush:l,showGrid:h,showAxes:!0,margin:q,markers:Z,formatDate:d,formatValue:g,animationDuration:y,onAnimationStateChange:K,onTimelineReady:b,onAnimationProgress:x,onHoveredDataChange:Q,hoveredCategory:v,arcAngle:U,parliamentRadius:X,seatSize:W,parliamentTimestamp:E,timelineEvents:e.events??[],showTimeline:T==="historical"&&!m})}),z.jsx(KN,{categories:D,activeCategory:v,onCategoryHover:w,mode:T,visible:S})]})},ZN=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:u=!0,showYAxis:l=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:g})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const _=Qt(e.current),b=n-a.left-a.right,x=i-a.top-a.bottom;_.selectAll("*").remove();const v=_.append("g").attr("transform",`translate(${a.left},${a.top})`),w=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;_.append("defs").append("clipPath").attr("id",w).append("rect").attr("x",0).attr("y",0).attr("width",b).attr("height",x);const S=v.append("g").attr("clip-path",`url(#${w})`),A=r.map(D=>D.dataKey),P=Zu().keys(A),C=P(t),T=t.map(D=>D.timestamp),E=o?o[0]:Math.min(...T),k=o?o[1]:Math.max(...T),j=Gu().domain([new Date(E),new Date(k)]).range([0,b]),$=t.filter(D=>D.timestamp>=E&&D.timestamp<=k),M=P($),I=M.length>0?Math.max(...M[M.length-1].map(D=>D[1]??0)):0,L=Ei().domain([0,I*1.1]).range([x,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Xo(j).ticks(6).tickSize(x).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Vo(L).ticks(5).tickSize(-b).tickFormat(()=>"")));const q=hi().x(D=>j(new Date(D.data.timestamp))).y0(D=>L(D[0])).y1(D=>L(D[1])).curve(Im.alpha(.5)),R=S.append("g").attr("class","areas");if(C.forEach((D,B)=>{const U=r[B];if(!U)return;const W=R.append("path").datum(D).attr("class",`area area-${U.dataKey}`).attr("fill",U.color).attr("fill-opacity",U.fillOpacity??.7).attr("stroke",U.color).attr("stroke-width",U.strokeWidth??1.5).attr("d",q);U.strokeDasharray&&W.attr("stroke-dasharray",U.strokeDasharray)}),m.length>0){const D=S.append("g").attr("class","markers"),B=d==="hover"?0:.6,U=m.filter(W=>W.timestamp>=E&&W.timestamp<=k).map(W=>({...W,x:j(new Date(W.timestamp))}));if(U.forEach(W=>{const X=D.append("line").attr("class","marker-line").attr("data-timestamp",W.timestamp).attr("x1",W.x).attr("x2",W.x).attr("y1",0).attr("y2",x).attr("stroke",W.color??"#131E7A").attr("stroke-width",2).attr("opacity",B);W.strokeDasharray&&X.attr("stroke-dasharray",W.strokeDasharray),W.label&&D.append("text").attr("class","marker-label").attr("data-timestamp",W.timestamp).attr("x",W.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",W.color??"#131E7A").attr("opacity",B).text(W.label)}),d==="hover"&&U.length>0){const W=_.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),X=W.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),Z=W.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let Q=null;const K=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",x).attr("fill","none").attr("pointer-events","all"),F=G=>{let J=null,N=1/0;if(U.forEach(Vt=>{const Mt=Math.abs(G-Vt.x);Mt<N&&(N=Mt,J=Vt)}),!J||N>50)return Q!==null&&(Q=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),W.style("display","none"),g==null||g(!1)),!1;const H=J;if(Q===null&&(g==null||g(!0)),Q===H.timestamp)return!0;Q=H.timestamp,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),D.selectAll(".marker-line").filter(function(){return Qt(this).attr("data-timestamp")===String(H.timestamp)}).attr("opacity",.6),D.selectAll(".marker-label").filter(function(){return Qt(this).attr("data-timestamp")===String(H.timestamp)}).attr("opacity",1);const st=new Date(H.timestamp),ht=p?p(H.timestamp):st.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),at=H.label?`${H.label}: ${ht}`:ht;Z.text(at);const pt=Z.node().getBBox(),Tt=8,it=pt.width+Tt*2,ft=pt.height+Tt*2;X.attr("width",it).attr("height",ft);let wt=H.x-it/2;const Et=10;return wt<0?wt=0:wt+it>b&&(wt=b-it),W.attr("transform",`translate(${a.left+wt},${a.top+Et})`),Z.attr("x",it/2).attr("y",ft/2+4),W.style("display","block"),!0};K.on("mousemove",function(G){const[J]=Zo(G,this);F(J)&&G.stopPropagation()}),K.on("mouseleave",function(){Q=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),W.style("display","none"),g==null||g(!1)})}}if(u){const D=Xo(j).ticks(6);p&&D.tickFormat(B=>p(+B)),v.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${x})`).call(D).selectAll("text").attr("font-size",11)}if(l){const D=Vo(L).ticks(5);y&&D.tickFormat(B=>y(+B)),v.append("g").attr("class","axis axis-y").call(D).selectAll("text").attr("font-size",11)}if(c&&h){const D=Kl().extent([[0,0],[b,x]]).on("end",U=>{if(!U.selection)return;const[W,X]=U.selection,Z=[+j.invert(W),+j.invert(X)];h(Z),f&&_.select(".brush").call(D.move,null)}),B=S.append("g").attr("class","brush").call(D);B.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),B.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8)}return()=>{_.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,u,l,c,f,h,p,y,m,d,g])},JN=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:u=400,margin:l={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:g,enableBrush:_=!1,zoomToSelection:b=!1,markers:x=[],markerVisibilityMode:v="hover"})=>{const w=O.useRef(null),[S,A]=O.useState(null),[P,C]=O.useState(!1);O.useEffect(()=>{P&&A(null)},[P]),ZN({containerRef:w,data:e,categories:t,width:s,height:u,margin:l,timeRange:c,showGrid:f,showXAxis:p!==void 0?p:h,showYAxis:y!==void 0?y:h,enableBrush:_,zoomToSelection:b,onTimeRangeChange:g,formatDate:m,formatValue:d,markers:x,markerVisibilityMode:v,onMarkerHoverChange:C});const k=$=>{if(!o||!w.current||P)return;const M=w.current.getBoundingClientRect(),I=$.clientX-M.left-l.left,L=$.clientY-M.top,q=s-l.left-l.right;if(I<0||I>q){A(null);return}const R=e.map(G=>G.timestamp),D=c?c[0]:Math.min(...R),B=c?c[1]:Math.max(...R),U=I/q*(B-D)+D,X=((G,J)=>{let N=0,ut=G.length;for(;N<ut;){const H=N+ut>>>1;G[H]<J?N=H+1:ut=H}return N})(R,U),Z=e[X-1],Q=e[X];let K=Q;if(Z&&Q?K=U-Z.timestamp>Q.timestamp-U?Q:Z:Z&&(K=Z),!K){A(null);return}const F=t.map(G=>({label:G.label,value:K[G.dataKey]??0,color:G.color}));A({visible:!0,x:$.clientX-M.left,y:L,timestamp:K.timestamp,values:F})},j=()=>{o&&A(null)};return z.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&z.jsxs(V.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&z.jsx(V.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&z.jsx(V.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),z.jsxs(V.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[z.jsx("svg",{ref:w,viewBox:`0 0 ${s} ${u}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:k,onMouseLeave:j}),o&&S&&S.visible&&z.jsxs(V.Paper,{elevation:3,sx:{position:"absolute",left:S.x+10,top:S.y-10,pointerEvents:"none",padding:1.5,minWidth:150,zIndex:1e3,transform:S.x>s/2?"translateX(-100%) translateX(-20px)":"none"},children:[z.jsx(V.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),z.jsx(V.Stack,{spacing:.5,sx:{mt:1},children:S.values.map($=>z.jsxs(V.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[z.jsxs(V.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[z.jsx(V.Box,{sx:{width:8,height:8,backgroundColor:$.color,borderRadius:"50%"}}),z.jsxs(V.Typography,{variant:"caption",children:[$.label,":"]})]}),z.jsx(V.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d($.value):$.value})]},$.label))})]})]}),a&&z.jsx(V.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map($=>z.jsxs(V.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[z.jsx(V.Box,{sx:{width:16,height:16,backgroundColor:$.color,opacity:$.fillOpacity??.7,border:`2px solid ${$.color}`,borderRadius:"2px",...$.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
34
34
  45deg,
35
35
  transparent,
36
36
  transparent 4px,
package/dist/index.js CHANGED
@@ -10897,7 +10897,8 @@ const ou = fE(Ig, "g", pL), hE = (e = ou) => e(
10897
10897
  }, [o, B]), X = te(() => e.events ? e.events.map((F) => ({
10898
10898
  timestamp: F.timestamp,
10899
10899
  label: F.eventName,
10900
- color: "#992FB9"
10900
+ // Use event's color if provided, otherwise default to Digital Blue 500
10901
+ color: typeof F.color == "string" ? F.color : "#2F42FF"
10901
10902
  })) : [], [e.events]), Z = me(
10902
10903
  (F) => {
10903
10904
  if (F) {
@@ -24798,17 +24799,17 @@ function QH() {
24798
24799
  return Tm = i, Tm;
24799
24800
  }
24800
24801
  var Em, VO;
24801
- function tK() {
24802
+ function t4() {
24802
24803
  if (VO) return Em;
24803
24804
  VO = 1;
24804
24805
  var e = JH(), t = QH(), r = e(t);
24805
24806
  return Em = r, Em;
24806
24807
  }
24807
- var eK = tK();
24808
- const rK = /* @__PURE__ */ Ft(eK);
24809
- var nK = AE();
24810
- const iK = /* @__PURE__ */ Ft(nK);
24811
- var aK = iK(function(e) {
24808
+ var e4 = t4();
24809
+ const r4 = /* @__PURE__ */ Ft(e4);
24810
+ var n4 = AE();
24811
+ const i4 = /* @__PURE__ */ Ft(n4);
24812
+ var a4 = i4(function(e) {
24812
24813
  return {
24813
24814
  x: e.left,
24814
24815
  y: e.top,
@@ -24827,7 +24828,7 @@ function Xl(e) {
24827
24828
  }, Xl(e);
24828
24829
  }
24829
24830
  var l0 = /* @__PURE__ */ Xi(void 0), c0 = /* @__PURE__ */ Xi(void 0), aM = /* @__PURE__ */ Xi(void 0), oM = /* @__PURE__ */ Xi({}), sM = /* @__PURE__ */ Xi(void 0), uM = /* @__PURE__ */ Xi(0), lM = /* @__PURE__ */ Xi(0), ZO = function(t) {
24830
- var r = t.state, n = r.xAxisMap, i = r.yAxisMap, a = r.offset, o = t.clipPathId, s = t.children, u = t.width, l = t.height, c = aK(a);
24831
+ var r = t.state, n = r.xAxisMap, i = r.yAxisMap, a = r.offset, o = t.clipPathId, s = t.children, u = t.width, l = t.height, c = a4(a);
24831
24832
  return /* @__PURE__ */ j.createElement(l0.Provider, {
24832
24833
  value: n
24833
24834
  }, /* @__PURE__ */ j.createElement(c0.Provider, {
@@ -24843,7 +24844,7 @@ var l0 = /* @__PURE__ */ Xi(void 0), c0 = /* @__PURE__ */ Xi(void 0), aM = /* @_
24843
24844
  }, /* @__PURE__ */ j.createElement(lM.Provider, {
24844
24845
  value: u
24845
24846
  }, s)))))));
24846
- }, oK = function() {
24847
+ }, o4 = function() {
24847
24848
  return Nn(sM);
24848
24849
  };
24849
24850
  function cM(e) {
@@ -24855,11 +24856,11 @@ var fM = function(t) {
24855
24856
  r == null && (process.env.NODE_ENV !== "production" ? nr(!1, "Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?") : nr());
24856
24857
  var n = r[t];
24857
24858
  return n == null && (process.env.NODE_ENV !== "production" ? nr(!1, 'Could not find xAxis by id "'.concat(t, '" [').concat(Xl(t), "]. ").concat(cM(r))) : nr()), n;
24858
- }, sK = function() {
24859
+ }, s4 = function() {
24859
24860
  var t = Nn(l0);
24860
24861
  return Xn(t);
24861
- }, uK = function() {
24862
- var t = Nn(c0), r = rK(t, function(n) {
24862
+ }, u4 = function() {
24863
+ var t = Nn(c0), r = r4(t, function(n) {
24863
24864
  return JC(n.domain, Number.isFinite);
24864
24865
  });
24865
24866
  return r || Xn(t);
@@ -24868,10 +24869,10 @@ var fM = function(t) {
24868
24869
  r == null && (process.env.NODE_ENV !== "production" ? nr(!1, "Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?") : nr());
24869
24870
  var n = r[t];
24870
24871
  return n == null && (process.env.NODE_ENV !== "production" ? nr(!1, 'Could not find yAxis by id "'.concat(t, '" [').concat(Xl(t), "]. ").concat(cM(r))) : nr()), n;
24871
- }, lK = function() {
24872
+ }, l4 = function() {
24872
24873
  var t = Nn(aM);
24873
24874
  return t;
24874
- }, cK = function() {
24875
+ }, c4 = function() {
24875
24876
  return Nn(oM);
24876
24877
  }, f0 = function() {
24877
24878
  return Nn(lM);
@@ -24886,30 +24887,30 @@ function Ja(e) {
24886
24887
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
24887
24888
  }, Ja(e);
24888
24889
  }
24889
- function fK(e, t) {
24890
+ function f4(e, t) {
24890
24891
  if (!(e instanceof t))
24891
24892
  throw new TypeError("Cannot call a class as a function");
24892
24893
  }
24893
- function hK(e, t) {
24894
+ function h4(e, t) {
24894
24895
  for (var r = 0; r < t.length; r++) {
24895
24896
  var n = t[r];
24896
24897
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, dM(n.key), n);
24897
24898
  }
24898
24899
  }
24899
- function pK(e, t, r) {
24900
- return t && hK(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
24900
+ function p4(e, t, r) {
24901
+ return t && h4(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
24901
24902
  }
24902
- function dK(e, t, r) {
24903
- return t = Vl(t), mK(e, pM() ? Reflect.construct(t, r || [], Vl(e).constructor) : t.apply(e, r));
24903
+ function d4(e, t, r) {
24904
+ return t = Vl(t), m4(e, pM() ? Reflect.construct(t, r || [], Vl(e).constructor) : t.apply(e, r));
24904
24905
  }
24905
- function mK(e, t) {
24906
+ function m4(e, t) {
24906
24907
  if (t && (Ja(t) === "object" || typeof t == "function"))
24907
24908
  return t;
24908
24909
  if (t !== void 0)
24909
24910
  throw new TypeError("Derived constructors may only return object or undefined");
24910
- return yK(e);
24911
+ return y4(e);
24911
24912
  }
24912
- function yK(e) {
24913
+ function y4(e) {
24913
24914
  if (e === void 0)
24914
24915
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
24915
24916
  return e;
@@ -24929,7 +24930,7 @@ function Vl(e) {
24929
24930
  return r.__proto__ || Object.getPrototypeOf(r);
24930
24931
  }, Vl(e);
24931
24932
  }
24932
- function vK(e, t) {
24933
+ function v4(e, t) {
24933
24934
  if (typeof t != "function" && t !== null)
24934
24935
  throw new TypeError("Super expression must either be null or a function");
24935
24936
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && dv(e, t);
@@ -24964,10 +24965,10 @@ function p0(e, t, r) {
24964
24965
  return t = dM(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
24965
24966
  }
24966
24967
  function dM(e) {
24967
- var t = gK(e, "string");
24968
+ var t = g4(e, "string");
24968
24969
  return Ja(t) == "symbol" ? t : t + "";
24969
24970
  }
24970
- function gK(e, t) {
24971
+ function g4(e, t) {
24971
24972
  if (Ja(e) != "object" || !e) return e;
24972
24973
  var r = e[Symbol.toPrimitive];
24973
24974
  if (r !== void 0) {
@@ -24977,14 +24978,14 @@ function gK(e, t) {
24977
24978
  }
24978
24979
  return String(e);
24979
24980
  }
24980
- function bK(e, t) {
24981
- return SK(e) || wK(e, t) || xK(e, t) || _K();
24981
+ function b4(e, t) {
24982
+ return S4(e) || w4(e, t) || x4(e, t) || _4();
24982
24983
  }
24983
- function _K() {
24984
+ function _4() {
24984
24985
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
24985
24986
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
24986
24987
  }
24987
- function xK(e, t) {
24988
+ function x4(e, t) {
24988
24989
  if (e) {
24989
24990
  if (typeof e == "string") return tA(e, t);
24990
24991
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -24997,7 +24998,7 @@ function tA(e, t) {
24997
24998
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
24998
24999
  return n;
24999
25000
  }
25000
- function wK(e, t) {
25001
+ function w4(e, t) {
25001
25002
  var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
25002
25003
  if (r != null) {
25003
25004
  var n, i, a, o, s = [], u = !0, l = !1;
@@ -25015,7 +25016,7 @@ function wK(e, t) {
25015
25016
  return s;
25016
25017
  }
25017
25018
  }
25018
- function SK(e) {
25019
+ function S4(e) {
25019
25020
  if (Array.isArray(e)) return e;
25020
25021
  }
25021
25022
  function mv() {
@@ -25028,12 +25029,12 @@ function mv() {
25028
25029
  return e;
25029
25030
  }, mv.apply(this, arguments);
25030
25031
  }
25031
- var OK = function(t, r) {
25032
+ var O4 = function(t, r) {
25032
25033
  var n;
25033
25034
  return /* @__PURE__ */ j.isValidElement(t) ? n = /* @__PURE__ */ j.cloneElement(t, r) : gt(t) ? n = t(r) : n = /* @__PURE__ */ j.createElement("line", mv({}, r, {
25034
25035
  className: "recharts-reference-line-line"
25035
25036
  })), n;
25036
- }, AK = function(t, r, n, i, a, o, s, u, l) {
25037
+ }, A4 = function(t, r, n, i, a, o, s, u, l) {
25037
25038
  var c = a.x, f = a.y, h = a.width, p = a.height;
25038
25039
  if (n) {
25039
25040
  var y = l.y, m = t.y.apply(y, {
@@ -25077,18 +25078,18 @@ var OK = function(t, r) {
25077
25078
  }
25078
25079
  return null;
25079
25080
  };
25080
- function PK(e) {
25081
- var t = e.x, r = e.y, n = e.segment, i = e.xAxisId, a = e.yAxisId, o = e.shape, s = e.className, u = e.alwaysShow, l = oK(), c = fM(i), f = hM(a), h = lK();
25081
+ function P4(e) {
25082
+ var t = e.x, r = e.y, n = e.segment, i = e.xAxisId, a = e.yAxisId, o = e.shape, s = e.className, u = e.alwaysShow, l = o4(), c = fM(i), f = hM(a), h = l4();
25082
25083
  if (!l || !h)
25083
25084
  return null;
25084
25085
  Cn(u === void 0, 'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');
25085
25086
  var p = u0({
25086
25087
  x: c.scale,
25087
25088
  y: f.scale
25088
- }), y = Pe(t), m = Pe(r), d = n && n.length === 2, g = AK(p, y, m, d, h, e.position, c.orientation, f.orientation, e);
25089
+ }), y = Pe(t), m = Pe(r), d = n && n.length === 2, g = A4(p, y, m, d, h, e.position, c.orientation, f.orientation, e);
25089
25090
  if (!g)
25090
25091
  return null;
25091
- var _ = bK(g, 2), b = _[0], x = b.x, v = b.y, w = _[1], S = w.x, O = w.y, A = hn(e, "hidden") ? "url(#".concat(l, ")") : void 0, E = QO(QO({
25092
+ var _ = b4(g, 2), b = _[0], x = b.x, v = b.y, w = _[1], S = w.x, O = w.y, A = hn(e, "hidden") ? "url(#".concat(l, ")") : void 0, E = QO(QO({
25092
25093
  clipPath: A
25093
25094
  }, vt(e, !0)), {}, {
25094
25095
  x1: x,
@@ -25098,7 +25099,7 @@ function PK(e) {
25098
25099
  });
25099
25100
  return /* @__PURE__ */ j.createElement(It, {
25100
25101
  className: Pt("recharts-reference-line", s)
25101
- }, OK(o, E), We.renderCallByParent(e, XH({
25102
+ }, O4(o, E), We.renderCallByParent(e, XH({
25102
25103
  x1: x,
25103
25104
  y1: v,
25104
25105
  x2: S,
@@ -25107,12 +25108,12 @@ function PK(e) {
25107
25108
  }
25108
25109
  var Fc = /* @__PURE__ */ (function(e) {
25109
25110
  function t() {
25110
- return fK(this, t), dK(this, t, arguments);
25111
+ return f4(this, t), d4(this, t, arguments);
25111
25112
  }
25112
- return vK(t, e), pK(t, [{
25113
+ return v4(t, e), p4(t, [{
25113
25114
  key: "render",
25114
25115
  value: function() {
25115
- return /* @__PURE__ */ j.createElement(PK, this.props);
25116
+ return /* @__PURE__ */ j.createElement(P4, this.props);
25116
25117
  }
25117
25118
  }]);
25118
25119
  })(j.Component);
@@ -25167,30 +25168,30 @@ function rA(e) {
25167
25168
  }
25168
25169
  return e;
25169
25170
  }
25170
- function TK(e, t) {
25171
+ function T4(e, t) {
25171
25172
  if (!(e instanceof t))
25172
25173
  throw new TypeError("Cannot call a class as a function");
25173
25174
  }
25174
- function EK(e, t) {
25175
+ function E4(e, t) {
25175
25176
  for (var r = 0; r < t.length; r++) {
25176
25177
  var n = t[r];
25177
25178
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, yM(n.key), n);
25178
25179
  }
25179
25180
  }
25180
- function CK(e, t, r) {
25181
- return t && EK(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
25181
+ function C4(e, t, r) {
25182
+ return t && E4(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
25182
25183
  }
25183
- function MK(e, t, r) {
25184
- return t = Zl(t), kK(e, mM() ? Reflect.construct(t, r || [], Zl(e).constructor) : t.apply(e, r));
25184
+ function M4(e, t, r) {
25185
+ return t = Zl(t), k4(e, mM() ? Reflect.construct(t, r || [], Zl(e).constructor) : t.apply(e, r));
25185
25186
  }
25186
- function kK(e, t) {
25187
+ function k4(e, t) {
25187
25188
  if (t && (Qa(t) === "object" || typeof t == "function"))
25188
25189
  return t;
25189
25190
  if (t !== void 0)
25190
25191
  throw new TypeError("Derived constructors may only return object or undefined");
25191
- return $K(e);
25192
+ return $4(e);
25192
25193
  }
25193
- function $K(e) {
25194
+ function $4(e) {
25194
25195
  if (e === void 0)
25195
25196
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
25196
25197
  return e;
@@ -25210,7 +25211,7 @@ function Zl(e) {
25210
25211
  return r.__proto__ || Object.getPrototypeOf(r);
25211
25212
  }, Zl(e);
25212
25213
  }
25213
- function DK(e, t) {
25214
+ function D4(e, t) {
25214
25215
  if (typeof t != "function" && t !== null)
25215
25216
  throw new TypeError("Super expression must either be null or a function");
25216
25217
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && vv(e, t);
@@ -25224,10 +25225,10 @@ function zc(e, t, r) {
25224
25225
  return t = yM(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
25225
25226
  }
25226
25227
  function yM(e) {
25227
- var t = IK(e, "string");
25228
+ var t = I4(e, "string");
25228
25229
  return Qa(t) == "symbol" ? t : t + "";
25229
25230
  }
25230
- function IK(e, t) {
25231
+ function I4(e, t) {
25231
25232
  if (Qa(e) != "object" || !e) return e;
25232
25233
  var r = e[Symbol.toPrimitive];
25233
25234
  if (r !== void 0) {
@@ -25237,7 +25238,7 @@ function IK(e, t) {
25237
25238
  }
25238
25239
  return String(e);
25239
25240
  }
25240
- var RK = function(t) {
25241
+ var R4 = function(t) {
25241
25242
  var r = t.x, n = t.y, i = t.xAxis, a = t.yAxis, o = u0({
25242
25243
  x: i.scale,
25243
25244
  y: a.scale
@@ -25250,15 +25251,15 @@ var RK = function(t) {
25250
25251
  return hn(t, "discard") && !o.isInRange(s) ? null : s;
25251
25252
  }, Uc = /* @__PURE__ */ (function(e) {
25252
25253
  function t() {
25253
- return TK(this, t), MK(this, t, arguments);
25254
+ return T4(this, t), M4(this, t, arguments);
25254
25255
  }
25255
- return DK(t, e), CK(t, [{
25256
+ return D4(t, e), C4(t, [{
25256
25257
  key: "render",
25257
25258
  value: function() {
25258
25259
  var n = this.props, i = n.x, a = n.y, o = n.r, s = n.alwaysShow, u = n.clipPathId, l = Pe(i), c = Pe(a);
25259
25260
  if (Cn(s === void 0, 'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'), !l || !c)
25260
25261
  return null;
25261
- var f = RK(this.props);
25262
+ var f = R4(this.props);
25262
25263
  if (!f)
25263
25264
  return null;
25264
25265
  var h = f.x, p = f.y, y = this.props, m = y.shape, d = y.className, g = hn(this.props, "hidden") ? "url(#".concat(u, ")") : void 0, _ = rA(rA({
@@ -25337,30 +25338,30 @@ function iA(e) {
25337
25338
  }
25338
25339
  return e;
25339
25340
  }
25340
- function jK(e, t) {
25341
+ function j4(e, t) {
25341
25342
  if (!(e instanceof t))
25342
25343
  throw new TypeError("Cannot call a class as a function");
25343
25344
  }
25344
- function NK(e, t) {
25345
+ function N4(e, t) {
25345
25346
  for (var r = 0; r < t.length; r++) {
25346
25347
  var n = t[r];
25347
25348
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, gM(n.key), n);
25348
25349
  }
25349
25350
  }
25350
- function LK(e, t, r) {
25351
- return t && NK(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
25351
+ function L4(e, t, r) {
25352
+ return t && N4(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
25352
25353
  }
25353
- function qK(e, t, r) {
25354
- return t = Jl(t), BK(e, vM() ? Reflect.construct(t, r || [], Jl(e).constructor) : t.apply(e, r));
25354
+ function q4(e, t, r) {
25355
+ return t = Jl(t), B4(e, vM() ? Reflect.construct(t, r || [], Jl(e).constructor) : t.apply(e, r));
25355
25356
  }
25356
- function BK(e, t) {
25357
+ function B4(e, t) {
25357
25358
  if (t && (to(t) === "object" || typeof t == "function"))
25358
25359
  return t;
25359
25360
  if (t !== void 0)
25360
25361
  throw new TypeError("Derived constructors may only return object or undefined");
25361
- return FK(e);
25362
+ return F4(e);
25362
25363
  }
25363
- function FK(e) {
25364
+ function F4(e) {
25364
25365
  if (e === void 0)
25365
25366
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
25366
25367
  return e;
@@ -25380,7 +25381,7 @@ function Jl(e) {
25380
25381
  return r.__proto__ || Object.getPrototypeOf(r);
25381
25382
  }, Jl(e);
25382
25383
  }
25383
- function zK(e, t) {
25384
+ function z4(e, t) {
25384
25385
  if (typeof t != "function" && t !== null)
25385
25386
  throw new TypeError("Super expression must either be null or a function");
25386
25387
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && bv(e, t);
@@ -25394,10 +25395,10 @@ function Wc(e, t, r) {
25394
25395
  return t = gM(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
25395
25396
  }
25396
25397
  function gM(e) {
25397
- var t = UK(e, "string");
25398
+ var t = U4(e, "string");
25398
25399
  return to(t) == "symbol" ? t : t + "";
25399
25400
  }
25400
- function UK(e, t) {
25401
+ function U4(e, t) {
25401
25402
  if (to(e) != "object" || !e) return e;
25402
25403
  var r = e[Symbol.toPrimitive];
25403
25404
  if (r !== void 0) {
@@ -25407,7 +25408,7 @@ function UK(e, t) {
25407
25408
  }
25408
25409
  return String(e);
25409
25410
  }
25410
- var WK = function(t, r, n, i, a) {
25411
+ var W4 = function(t, r, n, i, a) {
25411
25412
  var o = a.x1, s = a.x2, u = a.y1, l = a.y2, c = a.xAxis, f = a.yAxis;
25412
25413
  if (!c || !f) return null;
25413
25414
  var h = u0({
@@ -25431,9 +25432,9 @@ var WK = function(t, r, n, i, a) {
25431
25432
  return hn(a, "discard") && (!h.isInRange(p) || !h.isInRange(y)) ? null : nM(p, y);
25432
25433
  }, Gc = /* @__PURE__ */ (function(e) {
25433
25434
  function t() {
25434
- return jK(this, t), qK(this, t, arguments);
25435
+ return j4(this, t), q4(this, t, arguments);
25435
25436
  }
25436
- return zK(t, e), LK(t, [{
25437
+ return z4(t, e), L4(t, [{
25437
25438
  key: "render",
25438
25439
  value: function() {
25439
25440
  var n = this.props, i = n.x1, a = n.x2, o = n.y1, s = n.y2, u = n.className, l = n.alwaysShow, c = n.clipPathId;
@@ -25441,7 +25442,7 @@ var WK = function(t, r, n, i, a) {
25441
25442
  var f = Pe(i), h = Pe(a), p = Pe(o), y = Pe(s), m = this.props.shape;
25442
25443
  if (!f && !h && !p && !y && !m)
25443
25444
  return null;
25444
- var d = WK(f, h, p, y, this.props);
25445
+ var d = W4(f, h, p, y, this.props);
25445
25446
  if (!d && !m)
25446
25447
  return null;
25447
25448
  var g = hn(this.props, "hidden") ? "url(#".concat(c, ")") : void 0;
@@ -25480,14 +25481,14 @@ function bM(e, t, r) {
25480
25481
  n.push(e[i]);
25481
25482
  return n;
25482
25483
  }
25483
- function GK(e, t, r) {
25484
+ function G4(e, t, r) {
25484
25485
  var n = {
25485
25486
  width: e.width + t.width,
25486
25487
  height: e.height + t.height
25487
25488
  };
25488
25489
  return ZH(n, r);
25489
25490
  }
25490
- function HK(e, t, r) {
25491
+ function H4(e, t, r) {
25491
25492
  var n = r === "width", i = e.x, a = e.y, o = e.width, s = e.height;
25492
25493
  return t === 1 ? {
25493
25494
  start: n ? i : a,
@@ -25503,10 +25504,10 @@ function Ql(e, t, r, n, i) {
25503
25504
  var a = r();
25504
25505
  return e * (t - e * a / 2 - n) >= 0 && e * (t + e * a / 2 - i) <= 0;
25505
25506
  }
25506
- function KK(e, t) {
25507
+ function K4(e, t) {
25507
25508
  return bM(e, t + 1);
25508
25509
  }
25509
- function YK(e, t, r, n, i) {
25510
+ function Y4(e, t, r, n, i) {
25510
25511
  for (var a = (n || []).slice(), o = t.start, s = t.end, u = 0, l = 1, c = o, f = function() {
25511
25512
  var y = n == null ? void 0 : n[u];
25512
25513
  if (y === void 0)
@@ -25543,21 +25544,21 @@ function Ue(e) {
25543
25544
  for (var t = 1; t < arguments.length; t++) {
25544
25545
  var r = arguments[t] != null ? arguments[t] : {};
25545
25546
  t % 2 ? aA(Object(r), !0).forEach(function(n) {
25546
- XK(e, n, r[n]);
25547
+ X4(e, n, r[n]);
25547
25548
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : aA(Object(r)).forEach(function(n) {
25548
25549
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
25549
25550
  });
25550
25551
  }
25551
25552
  return e;
25552
25553
  }
25553
- function XK(e, t, r) {
25554
- return t = VK(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
25554
+ function X4(e, t, r) {
25555
+ return t = V4(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
25555
25556
  }
25556
- function VK(e) {
25557
- var t = ZK(e, "string");
25557
+ function V4(e) {
25558
+ var t = Z4(e, "string");
25558
25559
  return Zs(t) == "symbol" ? t : t + "";
25559
25560
  }
25560
- function ZK(e, t) {
25561
+ function Z4(e, t) {
25561
25562
  if (Zs(e) != "object" || !e) return e;
25562
25563
  var r = e[Symbol.toPrimitive];
25563
25564
  if (r !== void 0) {
@@ -25567,7 +25568,7 @@ function ZK(e, t) {
25567
25568
  }
25568
25569
  return (t === "string" ? String : Number)(e);
25569
25570
  }
25570
- function JK(e, t, r, n, i) {
25571
+ function J4(e, t, r, n, i) {
25571
25572
  for (var a = (n || []).slice(), o = a.length, s = t.start, u = t.end, l = function(h) {
25572
25573
  var p = a[h], y, m = function() {
25573
25574
  return y === void 0 && (y = r(p, h)), y;
@@ -25589,7 +25590,7 @@ function JK(e, t, r, n, i) {
25589
25590
  l(c);
25590
25591
  return a;
25591
25592
  }
25592
- function QK(e, t, r, n, i, a) {
25593
+ function Q4(e, t, r, n, i, a) {
25593
25594
  var o = (n || []).slice(), s = o.length, u = t.start, l = t.end;
25594
25595
  if (a) {
25595
25596
  var c = n[s - 1], f = r(c, s - 1), h = e * (c.coordinate + e * f / 2 - l);
@@ -25629,7 +25630,7 @@ function d0(e, t, r) {
25629
25630
  if (!i || !i.length || !n)
25630
25631
  return [];
25631
25632
  if (rt(u) || hi.isSsr)
25632
- return KK(i, typeof u == "number" && rt(u) ? u : 0);
25633
+ return K4(i, typeof u == "number" && rt(u) ? u : 0);
25633
25634
  var h = [], p = s === "top" || s === "bottom" ? "width" : "height", y = c && p === "width" ? es(c, {
25634
25635
  fontSize: t,
25635
25636
  letterSpacing: r
@@ -25638,19 +25639,19 @@ function d0(e, t, r) {
25638
25639
  height: 0
25639
25640
  }, m = function(b, x) {
25640
25641
  var v = gt(l) ? l(b.value, x) : b.value;
25641
- return p === "width" ? GK(es(v, {
25642
+ return p === "width" ? G4(es(v, {
25642
25643
  fontSize: t,
25643
25644
  letterSpacing: r
25644
25645
  }), y, f) : es(v, {
25645
25646
  fontSize: t,
25646
25647
  letterSpacing: r
25647
25648
  })[p];
25648
- }, d = i.length >= 2 ? Kr(i[1].coordinate - i[0].coordinate) : 1, g = HK(a, d, p);
25649
- return u === "equidistantPreserveStart" ? YK(d, g, m, i, o) : (u === "preserveStart" || u === "preserveStartEnd" ? h = QK(d, g, m, i, o, u === "preserveStartEnd") : h = JK(d, g, m, i, o), h.filter(function(_) {
25649
+ }, d = i.length >= 2 ? Kr(i[1].coordinate - i[0].coordinate) : 1, g = H4(a, d, p);
25650
+ return u === "equidistantPreserveStart" ? Y4(d, g, m, i, o) : (u === "preserveStart" || u === "preserveStartEnd" ? h = Q4(d, g, m, i, o, u === "preserveStartEnd") : h = J4(d, g, m, i, o), h.filter(function(_) {
25650
25651
  return _.isShow;
25651
25652
  }));
25652
25653
  }
25653
- var t4 = ["viewBox"], e4 = ["viewBox"], r4 = ["ticks"];
25654
+ var tK = ["viewBox"], eK = ["viewBox"], rK = ["ticks"];
25654
25655
  function eo(e) {
25655
25656
  "@babel/helpers - typeof";
25656
25657
  return eo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -25692,7 +25693,7 @@ function Se(e) {
25692
25693
  }
25693
25694
  function Cm(e, t) {
25694
25695
  if (e == null) return {};
25695
- var r = n4(e, t), n, i;
25696
+ var r = nK(e, t), n, i;
25696
25697
  if (Object.getOwnPropertySymbols) {
25697
25698
  var a = Object.getOwnPropertySymbols(e);
25698
25699
  for (i = 0; i < a.length; i++)
@@ -25700,7 +25701,7 @@ function Cm(e, t) {
25700
25701
  }
25701
25702
  return r;
25702
25703
  }
25703
- function n4(e, t) {
25704
+ function nK(e, t) {
25704
25705
  if (e == null) return {};
25705
25706
  var r = {};
25706
25707
  for (var n in e)
@@ -25710,7 +25711,7 @@ function n4(e, t) {
25710
25711
  }
25711
25712
  return r;
25712
25713
  }
25713
- function i4(e, t) {
25714
+ function iK(e, t) {
25714
25715
  if (!(e instanceof t))
25715
25716
  throw new TypeError("Cannot call a class as a function");
25716
25717
  }
@@ -25720,20 +25721,20 @@ function sA(e, t) {
25720
25721
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, xM(n.key), n);
25721
25722
  }
25722
25723
  }
25723
- function a4(e, t, r) {
25724
+ function aK(e, t, r) {
25724
25725
  return t && sA(e.prototype, t), r && sA(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
25725
25726
  }
25726
- function o4(e, t, r) {
25727
- return t = tc(t), s4(e, _M() ? Reflect.construct(t, r || [], tc(e).constructor) : t.apply(e, r));
25727
+ function oK(e, t, r) {
25728
+ return t = tc(t), sK(e, _M() ? Reflect.construct(t, r || [], tc(e).constructor) : t.apply(e, r));
25728
25729
  }
25729
- function s4(e, t) {
25730
+ function sK(e, t) {
25730
25731
  if (t && (eo(t) === "object" || typeof t == "function"))
25731
25732
  return t;
25732
25733
  if (t !== void 0)
25733
25734
  throw new TypeError("Derived constructors may only return object or undefined");
25734
- return u4(e);
25735
+ return uK(e);
25735
25736
  }
25736
- function u4(e) {
25737
+ function uK(e) {
25737
25738
  if (e === void 0)
25738
25739
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
25739
25740
  return e;
@@ -25753,7 +25754,7 @@ function tc(e) {
25753
25754
  return r.__proto__ || Object.getPrototypeOf(r);
25754
25755
  }, tc(e);
25755
25756
  }
25756
- function l4(e, t) {
25757
+ function lK(e, t) {
25757
25758
  if (typeof t != "function" && t !== null)
25758
25759
  throw new TypeError("Super expression must either be null or a function");
25759
25760
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && _v(e, t);
@@ -25767,10 +25768,10 @@ function m0(e, t, r) {
25767
25768
  return t = xM(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
25768
25769
  }
25769
25770
  function xM(e) {
25770
- var t = c4(e, "string");
25771
+ var t = cK(e, "string");
25771
25772
  return eo(t) == "symbol" ? t : t + "";
25772
25773
  }
25773
- function c4(e, t) {
25774
+ function cK(e, t) {
25774
25775
  if (eo(e) != "object" || !e) return e;
25775
25776
  var r = e[Symbol.toPrimitive];
25776
25777
  if (r !== void 0) {
@@ -25783,15 +25784,15 @@ function c4(e, t) {
25783
25784
  var xo = /* @__PURE__ */ (function(e) {
25784
25785
  function t(r) {
25785
25786
  var n;
25786
- return i4(this, t), n = o4(this, t, [r]), n.state = {
25787
+ return iK(this, t), n = oK(this, t, [r]), n.state = {
25787
25788
  fontSize: "",
25788
25789
  letterSpacing: ""
25789
25790
  }, n;
25790
25791
  }
25791
- return l4(t, e), a4(t, [{
25792
+ return lK(t, e), aK(t, [{
25792
25793
  key: "shouldComponentUpdate",
25793
25794
  value: function(n, i) {
25794
- var a = n.viewBox, o = Cm(n, t4), s = this.props, u = s.viewBox, l = Cm(s, e4);
25795
+ var a = n.viewBox, o = Cm(n, tK), s = this.props, u = s.viewBox, l = Cm(s, eK);
25795
25796
  return !Ta(a, u) || !Ta(o, l) || !Ta(i, this.state);
25796
25797
  }
25797
25798
  }, {
@@ -25951,7 +25952,7 @@ var xo = /* @__PURE__ */ (function(e) {
25951
25952
  var n = this, i = this.props, a = i.axisLine, o = i.width, s = i.height, u = i.ticksGenerator, l = i.className, c = i.hide;
25952
25953
  if (c)
25953
25954
  return null;
25954
- var f = this.props, h = f.ticks, p = Cm(f, r4), y = h;
25955
+ var f = this.props, h = f.ticks, p = Cm(f, rK), y = h;
25955
25956
  return gt(u) && (y = h && h.length > 0 ? u(this.props) : u(p)), o <= 0 || s <= 0 || !y || !y.length ? null : /* @__PURE__ */ j.createElement(It, {
25956
25957
  className: Pt("recharts-cartesian-axis", l),
25957
25958
  ref: function(d) {
@@ -26000,7 +26001,7 @@ m0(xo, "defaultProps", {
26000
26001
  tickMargin: 2,
26001
26002
  interval: "preserveEnd"
26002
26003
  });
26003
- var f4 = ["x1", "y1", "x2", "y2", "key"], h4 = ["offset"];
26004
+ var fK = ["x1", "y1", "x2", "y2", "key"], hK = ["offset"];
26004
26005
  function Yi(e) {
26005
26006
  "@babel/helpers - typeof";
26006
26007
  return Yi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -26023,21 +26024,21 @@ function Ge(e) {
26023
26024
  for (var t = 1; t < arguments.length; t++) {
26024
26025
  var r = arguments[t] != null ? arguments[t] : {};
26025
26026
  t % 2 ? uA(Object(r), !0).forEach(function(n) {
26026
- p4(e, n, r[n]);
26027
+ pK(e, n, r[n]);
26027
26028
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : uA(Object(r)).forEach(function(n) {
26028
26029
  Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
26029
26030
  });
26030
26031
  }
26031
26032
  return e;
26032
26033
  }
26033
- function p4(e, t, r) {
26034
- return t = d4(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
26034
+ function pK(e, t, r) {
26035
+ return t = dK(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
26035
26036
  }
26036
- function d4(e) {
26037
- var t = m4(e, "string");
26037
+ function dK(e) {
26038
+ var t = mK(e, "string");
26038
26039
  return Yi(t) == "symbol" ? t : t + "";
26039
26040
  }
26040
- function m4(e, t) {
26041
+ function mK(e, t) {
26041
26042
  if (Yi(e) != "object" || !e) return e;
26042
26043
  var r = e[Symbol.toPrimitive];
26043
26044
  if (r !== void 0) {
@@ -26059,7 +26060,7 @@ function Ci() {
26059
26060
  }
26060
26061
  function lA(e, t) {
26061
26062
  if (e == null) return {};
26062
- var r = y4(e, t), n, i;
26063
+ var r = yK(e, t), n, i;
26063
26064
  if (Object.getOwnPropertySymbols) {
26064
26065
  var a = Object.getOwnPropertySymbols(e);
26065
26066
  for (i = 0; i < a.length; i++)
@@ -26067,7 +26068,7 @@ function lA(e, t) {
26067
26068
  }
26068
26069
  return r;
26069
26070
  }
26070
- function y4(e, t) {
26071
+ function yK(e, t) {
26071
26072
  if (e == null) return {};
26072
26073
  var r = {};
26073
26074
  for (var n in e)
@@ -26077,7 +26078,7 @@ function y4(e, t) {
26077
26078
  }
26078
26079
  return r;
26079
26080
  }
26080
- var v4 = function(t) {
26081
+ var vK = function(t) {
26081
26082
  var r = t.fill;
26082
26083
  if (!r || r === "none")
26083
26084
  return null;
@@ -26101,9 +26102,9 @@ function wM(e, t) {
26101
26102
  else if (gt(e))
26102
26103
  r = e(t);
26103
26104
  else {
26104
- var n = t.x1, i = t.y1, a = t.x2, o = t.y2, s = t.key, u = lA(t, f4), l = vt(u, !1);
26105
+ var n = t.x1, i = t.y1, a = t.x2, o = t.y2, s = t.key, u = lA(t, fK), l = vt(u, !1);
26105
26106
  l.offset;
26106
- var c = lA(l, h4);
26107
+ var c = lA(l, hK);
26107
26108
  r = /* @__PURE__ */ j.createElement("line", Ci({}, c, {
26108
26109
  x1: n,
26109
26110
  y1: i,
@@ -26115,7 +26116,7 @@ function wM(e, t) {
26115
26116
  }
26116
26117
  return r;
26117
26118
  }
26118
- function g4(e) {
26119
+ function gK(e) {
26119
26120
  var t = e.x, r = e.width, n = e.horizontal, i = n === void 0 ? !0 : n, a = e.horizontalPoints;
26120
26121
  if (!i || !a || !a.length)
26121
26122
  return null;
@@ -26134,7 +26135,7 @@ function g4(e) {
26134
26135
  className: "recharts-cartesian-grid-horizontal"
26135
26136
  }, o);
26136
26137
  }
26137
- function b4(e) {
26138
+ function bK(e) {
26138
26139
  var t = e.y, r = e.height, n = e.vertical, i = n === void 0 ? !0 : n, a = e.verticalPoints;
26139
26140
  if (!i || !a || !a.length)
26140
26141
  return null;
@@ -26153,7 +26154,7 @@ function b4(e) {
26153
26154
  className: "recharts-cartesian-grid-vertical"
26154
26155
  }, o);
26155
26156
  }
26156
- function _4(e) {
26157
+ function _K(e) {
26157
26158
  var t = e.horizontalFill, r = e.fillOpacity, n = e.x, i = e.y, a = e.width, o = e.height, s = e.horizontalPoints, u = e.horizontal, l = u === void 0 ? !0 : u;
26158
26159
  if (!l || !t || !t.length)
26159
26160
  return null;
@@ -26184,7 +26185,7 @@ function _4(e) {
26184
26185
  className: "recharts-cartesian-gridstripes-horizontal"
26185
26186
  }, f);
26186
26187
  }
26187
- function x4(e) {
26188
+ function xK(e) {
26188
26189
  var t = e.vertical, r = t === void 0 ? !0 : t, n = e.verticalFill, i = e.fillOpacity, a = e.x, o = e.y, s = e.width, u = e.height, l = e.verticalPoints;
26189
26190
  if (!r || !n || !n.length)
26190
26191
  return null;
@@ -26215,7 +26216,7 @@ function x4(e) {
26215
26216
  className: "recharts-cartesian-gridstripes-vertical"
26216
26217
  }, f);
26217
26218
  }
26218
- var w4 = function(t, r) {
26219
+ var wK = function(t, r) {
26219
26220
  var n = t.xAxis, i = t.width, a = t.height, o = t.offset;
26220
26221
  return IC(d0(Ge(Ge(Ge({}, xo.defaultProps), n), {}, {
26221
26222
  ticks: Tn(n, !0),
@@ -26226,7 +26227,7 @@ var w4 = function(t, r) {
26226
26227
  height: a
26227
26228
  }
26228
26229
  })), o.left, o.left + o.width, r);
26229
- }, S4 = function(t, r) {
26230
+ }, SK = function(t, r) {
26230
26231
  var n = t.yAxis, i = t.width, a = t.height, o = t.offset;
26231
26232
  return IC(d0(Ge(Ge(Ge({}, xo.defaultProps), n), {}, {
26232
26233
  ticks: Tn(n, !0),
@@ -26247,7 +26248,7 @@ var w4 = function(t, r) {
26247
26248
  horizontalFill: []
26248
26249
  };
26249
26250
  function SM(e) {
26250
- var t, r, n, i, a, o, s = f0(), u = h0(), l = cK(), c = Ge(Ge({}, e), {}, {
26251
+ var t, r, n, i, a, o, s = f0(), u = h0(), l = c4(), c = Ge(Ge({}, e), {}, {
26251
26252
  stroke: (t = e.stroke) !== null && t !== void 0 ? t : ha.stroke,
26252
26253
  fill: (r = e.fill) !== null && r !== void 0 ? r : ha.fill,
26253
26254
  horizontal: (n = e.horizontal) !== null && n !== void 0 ? n : ha.horizontal,
@@ -26258,10 +26259,10 @@ function SM(e) {
26258
26259
  y: rt(e.y) ? e.y : l.top,
26259
26260
  width: rt(e.width) ? e.width : l.width,
26260
26261
  height: rt(e.height) ? e.height : l.height
26261
- }), f = c.x, h = c.y, p = c.width, y = c.height, m = c.syncWithTicks, d = c.horizontalValues, g = c.verticalValues, _ = sK(), b = uK();
26262
+ }), f = c.x, h = c.y, p = c.width, y = c.height, m = c.syncWithTicks, d = c.horizontalValues, g = c.verticalValues, _ = s4(), b = u4();
26262
26263
  if (!rt(p) || p <= 0 || !rt(y) || y <= 0 || !rt(f) || f !== +f || !rt(h) || h !== +h)
26263
26264
  return null;
26264
- var x = c.verticalCoordinatesGenerator || w4, v = c.horizontalCoordinatesGenerator || S4, w = c.horizontalPoints, S = c.verticalPoints;
26265
+ var x = c.verticalCoordinatesGenerator || wK, v = c.horizontalCoordinatesGenerator || SK, w = c.horizontalPoints, S = c.verticalPoints;
26265
26266
  if ((!w || !w.length) && gt(v)) {
26266
26267
  var O = d && d.length, A = v({
26267
26268
  yAxis: b ? Ge(Ge({}, b), {}, {
@@ -26286,7 +26287,7 @@ function SM(e) {
26286
26287
  }
26287
26288
  return /* @__PURE__ */ j.createElement("g", {
26288
26289
  className: "recharts-cartesian-grid"
26289
- }, /* @__PURE__ */ j.createElement(v4, {
26290
+ }, /* @__PURE__ */ j.createElement(vK, {
26290
26291
  fill: c.fill,
26291
26292
  fillOpacity: c.fillOpacity,
26292
26293
  x: c.x,
@@ -26294,24 +26295,24 @@ function SM(e) {
26294
26295
  width: c.width,
26295
26296
  height: c.height,
26296
26297
  ry: c.ry
26297
- }), /* @__PURE__ */ j.createElement(g4, Ci({}, c, {
26298
+ }), /* @__PURE__ */ j.createElement(gK, Ci({}, c, {
26298
26299
  offset: l,
26299
26300
  horizontalPoints: w,
26300
26301
  xAxis: _,
26301
26302
  yAxis: b
26302
- })), /* @__PURE__ */ j.createElement(b4, Ci({}, c, {
26303
+ })), /* @__PURE__ */ j.createElement(bK, Ci({}, c, {
26303
26304
  offset: l,
26304
26305
  verticalPoints: S,
26305
26306
  xAxis: _,
26306
26307
  yAxis: b
26307
- })), /* @__PURE__ */ j.createElement(_4, Ci({}, c, {
26308
+ })), /* @__PURE__ */ j.createElement(_K, Ci({}, c, {
26308
26309
  horizontalPoints: w
26309
- })), /* @__PURE__ */ j.createElement(x4, Ci({}, c, {
26310
+ })), /* @__PURE__ */ j.createElement(xK, Ci({}, c, {
26310
26311
  verticalPoints: S
26311
26312
  })));
26312
26313
  }
26313
26314
  SM.displayName = "CartesianGrid";
26314
- var O4 = ["type", "layout", "connectNulls", "ref"], A4 = ["key"];
26315
+ var OK = ["type", "layout", "connectNulls", "ref"], AK = ["key"];
26315
26316
  function ro(e) {
26316
26317
  "@babel/helpers - typeof";
26317
26318
  return ro = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -26322,7 +26323,7 @@ function ro(e) {
26322
26323
  }
26323
26324
  function cA(e, t) {
26324
26325
  if (e == null) return {};
26325
- var r = P4(e, t), n, i;
26326
+ var r = PK(e, t), n, i;
26326
26327
  if (Object.getOwnPropertySymbols) {
26327
26328
  var a = Object.getOwnPropertySymbols(e);
26328
26329
  for (i = 0; i < a.length; i++)
@@ -26330,7 +26331,7 @@ function cA(e, t) {
26330
26331
  }
26331
26332
  return r;
26332
26333
  }
26333
- function P4(e, t) {
26334
+ function PK(e, t) {
26334
26335
  if (e == null) return {};
26335
26336
  var r = {};
26336
26337
  for (var n in e)
@@ -26372,13 +26373,13 @@ function dr(e) {
26372
26373
  return e;
26373
26374
  }
26374
26375
  function pa(e) {
26375
- return M4(e) || C4(e) || E4(e) || T4();
26376
+ return MK(e) || CK(e) || EK(e) || TK();
26376
26377
  }
26377
- function T4() {
26378
+ function TK() {
26378
26379
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
26379
26380
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
26380
26381
  }
26381
- function E4(e, t) {
26382
+ function EK(e, t) {
26382
26383
  if (e) {
26383
26384
  if (typeof e == "string") return xv(e, t);
26384
26385
  var r = Object.prototype.toString.call(e).slice(8, -1);
@@ -26386,10 +26387,10 @@ function E4(e, t) {
26386
26387
  if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return xv(e, t);
26387
26388
  }
26388
26389
  }
26389
- function C4(e) {
26390
+ function CK(e) {
26390
26391
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
26391
26392
  }
26392
- function M4(e) {
26393
+ function MK(e) {
26393
26394
  if (Array.isArray(e)) return xv(e);
26394
26395
  }
26395
26396
  function xv(e, t) {
@@ -26397,7 +26398,7 @@ function xv(e, t) {
26397
26398
  for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
26398
26399
  return n;
26399
26400
  }
26400
- function k4(e, t) {
26401
+ function kK(e, t) {
26401
26402
  if (!(e instanceof t))
26402
26403
  throw new TypeError("Cannot call a class as a function");
26403
26404
  }
@@ -26407,20 +26408,20 @@ function hA(e, t) {
26407
26408
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, AM(n.key), n);
26408
26409
  }
26409
26410
  }
26410
- function $4(e, t, r) {
26411
+ function $K(e, t, r) {
26411
26412
  return t && hA(e.prototype, t), r && hA(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
26412
26413
  }
26413
- function D4(e, t, r) {
26414
- return t = ec(t), I4(e, OM() ? Reflect.construct(t, r || [], ec(e).constructor) : t.apply(e, r));
26414
+ function DK(e, t, r) {
26415
+ return t = ec(t), IK(e, OM() ? Reflect.construct(t, r || [], ec(e).constructor) : t.apply(e, r));
26415
26416
  }
26416
- function I4(e, t) {
26417
+ function IK(e, t) {
26417
26418
  if (t && (ro(t) === "object" || typeof t == "function"))
26418
26419
  return t;
26419
26420
  if (t !== void 0)
26420
26421
  throw new TypeError("Derived constructors may only return object or undefined");
26421
- return R4(e);
26422
+ return RK(e);
26422
26423
  }
26423
- function R4(e) {
26424
+ function RK(e) {
26424
26425
  if (e === void 0)
26425
26426
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
26426
26427
  return e;
@@ -26440,7 +26441,7 @@ function ec(e) {
26440
26441
  return r.__proto__ || Object.getPrototypeOf(r);
26441
26442
  }, ec(e);
26442
26443
  }
26443
- function j4(e, t) {
26444
+ function jK(e, t) {
26444
26445
  if (typeof t != "function" && t !== null)
26445
26446
  throw new TypeError("Super expression must either be null or a function");
26446
26447
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && wv(e, t);
@@ -26454,10 +26455,10 @@ function Ur(e, t, r) {
26454
26455
  return t = AM(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
26455
26456
  }
26456
26457
  function AM(e) {
26457
- var t = N4(e, "string");
26458
+ var t = NK(e, "string");
26458
26459
  return ro(t) == "symbol" ? t : t + "";
26459
26460
  }
26460
- function N4(e, t) {
26461
+ function NK(e, t) {
26461
26462
  if (ro(e) != "object" || !e) return e;
26462
26463
  var r = e[Symbol.toPrimitive];
26463
26464
  if (r !== void 0) {
@@ -26470,10 +26471,10 @@ function N4(e, t) {
26470
26471
  var Hc = /* @__PURE__ */ (function(e) {
26471
26472
  function t() {
26472
26473
  var r;
26473
- k4(this, t);
26474
+ kK(this, t);
26474
26475
  for (var n = arguments.length, i = new Array(n), a = 0; a < n; a++)
26475
26476
  i[a] = arguments[a];
26476
- return r = D4(this, t, [].concat(i)), Ur(r, "state", {
26477
+ return r = DK(this, t, [].concat(i)), Ur(r, "state", {
26477
26478
  isAnimationFinished: !0,
26478
26479
  totalLength: 0
26479
26480
  }), Ur(r, "generateSimpleStrokeDasharray", function(o, s) {
@@ -26505,7 +26506,7 @@ var Hc = /* @__PURE__ */ (function(e) {
26505
26506
  }), r.props.onAnimationStart && r.props.onAnimationStart();
26506
26507
  }), r;
26507
26508
  }
26508
- return j4(t, e), $4(t, [{
26509
+ return jK(t, e), $K(t, [{
26509
26510
  key: "componentDidMount",
26510
26511
  value: function() {
26511
26512
  if (this.props.isAnimationActive) {
@@ -26597,7 +26598,7 @@ var Hc = /* @__PURE__ */ (function(e) {
26597
26598
  value: function(n, i, a, o) {
26598
26599
  var s = this.props, u = s.type, l = s.layout, c = s.connectNulls;
26599
26600
  s.ref;
26600
- var f = cA(s, O4), h = dr(dr(dr({}, vt(f, !0)), {}, {
26601
+ var f = cA(s, OK), h = dr(dr(dr({}, vt(f, !0)), {}, {
26601
26602
  fill: "none",
26602
26603
  className: "recharts-line-curve",
26603
26604
  clipPath: i ? "url(#clipPath-".concat(a, ")") : null,
@@ -26729,7 +26730,7 @@ var Hc = /* @__PURE__ */ (function(e) {
26729
26730
  else if (gt(n))
26730
26731
  a = n(i);
26731
26732
  else {
26732
- var o = i.key, s = cA(i, A4), u = Pt("recharts-line-dot", typeof n != "boolean" ? n.className : "");
26733
+ var o = i.key, s = cA(i, AK), u = Pt("recharts-line-dot", typeof n != "boolean" ? n.className : "");
26733
26734
  a = /* @__PURE__ */ j.createElement(Nc, is({
26734
26735
  key: o
26735
26736
  }, s, {
@@ -26792,7 +26793,7 @@ Ur(Hc, "getComposedData", function(e) {
26792
26793
  layout: c
26793
26794
  }, l);
26794
26795
  });
26795
- var L4 = ["layout", "type", "stroke", "connectNulls", "isRange", "ref"], q4 = ["key"], PM;
26796
+ var LK = ["layout", "type", "stroke", "connectNulls", "isRange", "ref"], qK = ["key"], PM;
26796
26797
  function no(e) {
26797
26798
  "@babel/helpers - typeof";
26798
26799
  return no = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -26803,7 +26804,7 @@ function no(e) {
26803
26804
  }
26804
26805
  function TM(e, t) {
26805
26806
  if (e == null) return {};
26806
- var r = B4(e, t), n, i;
26807
+ var r = BK(e, t), n, i;
26807
26808
  if (Object.getOwnPropertySymbols) {
26808
26809
  var a = Object.getOwnPropertySymbols(e);
26809
26810
  for (i = 0; i < a.length; i++)
@@ -26811,7 +26812,7 @@ function TM(e, t) {
26811
26812
  }
26812
26813
  return r;
26813
26814
  }
26814
- function B4(e, t) {
26815
+ function BK(e, t) {
26815
26816
  if (e == null) return {};
26816
26817
  var r = {};
26817
26818
  for (var n in e)
@@ -26852,7 +26853,7 @@ function Kn(e) {
26852
26853
  }
26853
26854
  return e;
26854
26855
  }
26855
- function F4(e, t) {
26856
+ function FK(e, t) {
26856
26857
  if (!(e instanceof t))
26857
26858
  throw new TypeError("Cannot call a class as a function");
26858
26859
  }
@@ -26862,20 +26863,20 @@ function dA(e, t) {
26862
26863
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, CM(n.key), n);
26863
26864
  }
26864
26865
  }
26865
- function z4(e, t, r) {
26866
+ function zK(e, t, r) {
26866
26867
  return t && dA(e.prototype, t), r && dA(e, r), Object.defineProperty(e, "prototype", { writable: !1 }), e;
26867
26868
  }
26868
- function U4(e, t, r) {
26869
- return t = rc(t), W4(e, EM() ? Reflect.construct(t, r || [], rc(e).constructor) : t.apply(e, r));
26869
+ function UK(e, t, r) {
26870
+ return t = rc(t), WK(e, EM() ? Reflect.construct(t, r || [], rc(e).constructor) : t.apply(e, r));
26870
26871
  }
26871
- function W4(e, t) {
26872
+ function WK(e, t) {
26872
26873
  if (t && (no(t) === "object" || typeof t == "function"))
26873
26874
  return t;
26874
26875
  if (t !== void 0)
26875
26876
  throw new TypeError("Derived constructors may only return object or undefined");
26876
- return G4(e);
26877
+ return GK(e);
26877
26878
  }
26878
- function G4(e) {
26879
+ function GK(e) {
26879
26880
  if (e === void 0)
26880
26881
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
26881
26882
  return e;
@@ -26895,7 +26896,7 @@ function rc(e) {
26895
26896
  return r.__proto__ || Object.getPrototypeOf(r);
26896
26897
  }, rc(e);
26897
26898
  }
26898
- function H4(e, t) {
26899
+ function HK(e, t) {
26899
26900
  if (typeof t != "function" && t !== null)
26900
26901
  throw new TypeError("Super expression must either be null or a function");
26901
26902
  e.prototype = Object.create(t && t.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), t && Sv(e, t);
@@ -26909,10 +26910,10 @@ function un(e, t, r) {
26909
26910
  return t = CM(t), t in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
26910
26911
  }
26911
26912
  function CM(e) {
26912
- var t = K4(e, "string");
26913
+ var t = KK(e, "string");
26913
26914
  return no(t) == "symbol" ? t : t + "";
26914
26915
  }
26915
- function K4(e, t) {
26916
+ function KK(e, t) {
26916
26917
  if (no(e) != "object" || !e) return e;
26917
26918
  var r = e[Symbol.toPrimitive];
26918
26919
  if (r !== void 0) {
@@ -26925,10 +26926,10 @@ function K4(e, t) {
26925
26926
  var di = /* @__PURE__ */ (function(e) {
26926
26927
  function t() {
26927
26928
  var r;
26928
- F4(this, t);
26929
+ FK(this, t);
26929
26930
  for (var n = arguments.length, i = new Array(n), a = 0; a < n; a++)
26930
26931
  i[a] = arguments[a];
26931
- return r = U4(this, t, [].concat(i)), un(r, "state", {
26932
+ return r = UK(this, t, [].concat(i)), un(r, "state", {
26932
26933
  isAnimationFinished: !0
26933
26934
  }), un(r, "id", ra("recharts-area-")), un(r, "handleAnimationEnd", function() {
26934
26935
  var o = r.props.onAnimationEnd;
@@ -26942,7 +26943,7 @@ var di = /* @__PURE__ */ (function(e) {
26942
26943
  }), gt(o) && o();
26943
26944
  }), r;
26944
26945
  }
26945
- return H4(t, e), z4(t, [{
26946
+ return HK(t, e), zK(t, [{
26946
26947
  key: "renderDots",
26947
26948
  value: function(n, i, a) {
26948
26949
  var o = this.props.isAnimationActive, s = this.state.isAnimationFinished;
@@ -27010,7 +27011,7 @@ var di = /* @__PURE__ */ (function(e) {
27010
27011
  value: function(n, i, a, o) {
27011
27012
  var s = this.props, u = s.layout, l = s.type, c = s.stroke, f = s.connectNulls, h = s.isRange;
27012
27013
  s.ref;
27013
- var p = TM(s, L4);
27014
+ var p = TM(s, LK);
27014
27015
  return /* @__PURE__ */ j.createElement(It, {
27015
27016
  clipPath: a ? "url(#clipPath-".concat(o, ")") : null
27016
27017
  }, /* @__PURE__ */ j.createElement(qi, Mi({}, vt(p, !0), {
@@ -27229,7 +27230,7 @@ un(di, "renderDotItem", function(e, t) {
27229
27230
  else if (gt(e))
27230
27231
  r = e(t);
27231
27232
  else {
27232
- var n = Pt("recharts-area-dot", typeof e != "boolean" ? e.className : ""), i = t.key, a = TM(t, q4);
27233
+ var n = Pt("recharts-area-dot", typeof e != "boolean" ? e.className : ""), i = t.key, a = TM(t, qK);
27233
27234
  r = /* @__PURE__ */ j.createElement(Nc, Mi({}, a, {
27234
27235
  key: i,
27235
27236
  className: n
@@ -27245,30 +27246,30 @@ function io(e) {
27245
27246
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
27246
27247
  }, io(e);
27247
27248
  }
27248
- function Y4(e, t) {
27249
+ function YK(e, t) {
27249
27250
  if (!(e instanceof t))
27250
27251
  throw new TypeError("Cannot call a class as a function");
27251
27252
  }
27252
- function X4(e, t) {
27253
+ function XK(e, t) {
27253
27254
  for (var r = 0; r < t.length; r++) {
27254
27255
  var n = t[r];
27255
27256
  n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, $M(n.key), n);
27256
27257
  }
27257
27258
  }
27258
- function V4(e, t, r) {
27259
- return t && X4(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
27259
+ function VK(e, t, r) {
27260
+ return t && XK(e.prototype, t), Object.defineProperty(e, "prototype", { writable: !1 }), e;
27260
27261
  }
27261
- function Z4(e, t, r) {
27262
- return t = nc(t), J4(e, MM() ? Reflect.construct(t, r || [], nc(e).constructor) : t.apply(e, r));
27262
+ function ZK(e, t, r) {
27263
+ return t = nc(t), JK(e, MM() ? Reflect.construct(t, r || [], nc(e).constructor) : t.apply(e, r));
27263
27264
  }
27264
- function J4(e, t) {
27265
+ function JK(e, t) {
27265
27266
  if (t && (io(t) === "object" || typeof t == "function"))
27266
27267
  return t;
27267
27268
  if (t !== void 0)
27268
27269
  throw new TypeError("Derived constructors may only return object or undefined");
27269
- return Q4(e);
27270
+ return QK(e);
27270
27271
  }
27271
- function Q4(e) {
27272
+ function QK(e) {
27272
27273
  if (e === void 0)
27273
27274
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
27274
27275
  return e;
@@ -27317,9 +27318,9 @@ function eY(e, t) {
27317
27318
  }
27318
27319
  var Kc = /* @__PURE__ */ (function(e) {
27319
27320
  function t() {
27320
- return Y4(this, t), Z4(this, t, arguments);
27321
+ return YK(this, t), ZK(this, t, arguments);
27321
27322
  }
27322
- return tY(t, e), V4(t, [{
27323
+ return tY(t, e), VK(t, [{
27323
27324
  key: "render",
27324
27325
  value: function() {
27325
27326
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moderneinc/react-charts",
3
- "version": "1.2.0-next.c1bbc5",
3
+ "version": "1.2.0-next.d2aaa2",
4
4
  "description": "Parliament chart visualization library for React",
5
5
  "type": "module",
6
6
  "devEngines": {