@undp/data-viz 2.1.2 → 2.1.3

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.
Files changed (90) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +2 -2
  3. package/dist/BarGraph.cjs +1 -1
  4. package/dist/BarGraph.js +1 -1
  5. package/dist/BulletChart.cjs +1 -1
  6. package/dist/BulletChart.cjs.map +1 -1
  7. package/dist/BulletChart.js +223 -223
  8. package/dist/BulletChart.js.map +1 -1
  9. package/dist/ButterflyChart.cjs +1 -1
  10. package/dist/ButterflyChart.js +1 -1
  11. package/dist/DifferenceLineChart.cjs +1 -1
  12. package/dist/DifferenceLineChart.js +2 -2
  13. package/dist/DonutChart.cjs +1 -1
  14. package/dist/DonutChart.cjs.map +1 -1
  15. package/dist/DonutChart.d.ts +10 -0
  16. package/dist/DonutChart.js +230 -264
  17. package/dist/DonutChart.js.map +1 -1
  18. package/dist/DualAxisLineChart.cjs +1 -1
  19. package/dist/DualAxisLineChart.js +1 -1
  20. package/dist/DumbbellChart.cjs +1 -1
  21. package/dist/DumbbellChart.js +1 -1
  22. package/dist/{GraphEl-YKUlz-37.cjs → GraphEl-BLMih7RN.cjs} +2 -2
  23. package/dist/GraphEl-BLMih7RN.cjs.map +1 -0
  24. package/dist/{GraphEl-sVZvlyWe.js → GraphEl-CRrAlbcr.js} +4 -2
  25. package/dist/GraphEl-CRrAlbcr.js.map +1 -0
  26. package/dist/GriddedGraphs.cjs +1 -1
  27. package/dist/GriddedGraphs.d.ts +1 -0
  28. package/dist/GriddedGraphs.js +1 -1
  29. package/dist/GriddedGraphsFromConfig.d.ts +1 -0
  30. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  31. package/dist/LineChartWithConfidenceInterval.js +2 -2
  32. package/dist/MultiGraphDashboard.d.ts +1 -0
  33. package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
  34. package/dist/MultiLineAltChart.cjs +1 -1
  35. package/dist/MultiLineAltChart.js +1 -1
  36. package/dist/MultiLineChart.cjs +1 -1
  37. package/dist/MultiLineChart.js +1 -1
  38. package/dist/ParetoChart.cjs +1 -1
  39. package/dist/ParetoChart.js +1 -1
  40. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
  41. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
  42. package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
  43. package/dist/RadarChart.cjs +1 -1
  44. package/dist/RadarChart.js +1 -1
  45. package/dist/ScatterPlot.cjs +1 -1
  46. package/dist/ScatterPlot.js +1 -1
  47. package/dist/ScrollStory.d.ts +1 -0
  48. package/dist/SimpleLineChart.cjs +1 -1
  49. package/dist/SimpleLineChart.js +1 -1
  50. package/dist/SingleGraphDashboard.cjs +1 -1
  51. package/dist/SingleGraphDashboard.d.ts +1 -0
  52. package/dist/SingleGraphDashboard.js +1 -1
  53. package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
  54. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
  55. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
  56. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
  57. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
  58. package/dist/SparkLine.cjs +1 -1
  59. package/dist/SparkLine.js +2 -2
  60. package/dist/Types.d.ts +1 -0
  61. package/dist/{area-BE2wo7fv.js → area-B6r7cv2o.js} +5 -5
  62. package/dist/{area-BE2wo7fv.js.map → area-B6r7cv2o.js.map} +1 -1
  63. package/dist/area-C1gxfNGD.cjs +2 -0
  64. package/dist/{area-D3Qx7k7K.cjs.map → area-C1gxfNGD.cjs.map} +1 -1
  65. package/dist/array-DMyR1sql.cjs +2 -0
  66. package/dist/array-DMyR1sql.cjs.map +1 -0
  67. package/dist/array-USo-Szhp.js +13 -0
  68. package/dist/array-USo-Szhp.js.map +1 -0
  69. package/dist/{ensureCompleteData-DS7gCvVd.js → ensureCompleteData-DH5c52Ub.js} +6 -6
  70. package/dist/{ensureCompleteData-DS7gCvVd.js.map → ensureCompleteData-DH5c52Ub.js.map} +1 -1
  71. package/dist/{ensureCompleteData-Oib-vGb0.cjs → ensureCompleteData-pZ9QO6kB.cjs} +2 -2
  72. package/dist/{ensureCompleteData-Oib-vGb0.cjs.map → ensureCompleteData-pZ9QO6kB.cjs.map} +1 -1
  73. package/dist/index.d.ts +5 -0
  74. package/dist/line-DFlZsxI1.js +144 -0
  75. package/dist/line-DFlZsxI1.js.map +1 -0
  76. package/dist/line-DaEMhXmx.cjs +2 -0
  77. package/dist/line-DaEMhXmx.cjs.map +1 -0
  78. package/dist/style.css +1 -1
  79. package/package.json +1 -1
  80. package/dist/GraphEl-YKUlz-37.cjs.map +0 -1
  81. package/dist/GraphEl-sVZvlyWe.js.map +0 -1
  82. package/dist/area-D3Qx7k7K.cjs +0 -2
  83. package/dist/array-B7TkkRH0.js +0 -89
  84. package/dist/array-B7TkkRH0.js.map +0 -1
  85. package/dist/array-DKbXV8lR.cjs +0 -2
  86. package/dist/array-DKbXV8lR.cjs.map +0 -1
  87. package/dist/line-CPfhohvF.js +0 -68
  88. package/dist/line-CPfhohvF.js.map +0 -1
  89. package/dist/line-DHV4JwCR.cjs +0 -2
  90. package/dist/line-DHV4JwCR.cjs.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-CTPQjnHt.cjs"),A=require("react"),b=require("./parse-hMnG_lRV.cjs"),Me=require("./index-Cno4Q0YE.cjs"),Te=require("./numberFormattingFunction-02t-wJta.cjs"),Ye=require("./Tooltip-uUdw6wJL.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),qe=require("./customArea-CMF5g-C3.cjs"),Fe=require("./AxisTitle-sS5bLLR7.cjs"),Xe=require("./Axis-DxRV2yMi.cjs"),Pe=require("./XTicksAndGridLines-B6CELS7q.cjs"),Be=require("./ReferenceLine-BH0qdf4R.cjs"),ze=require("./YTicksAndGridLines-4pxTRlRK.cjs"),Je=require("./index-B_sAFsEV.cjs"),F=require("./Colors.cjs"),Ae=require("./uniqBy-O05lp2S5.cjs"),Ee=require("./init-DU0ybBc_.cjs"),Ke=require("./time-CZd5YLSP.cjs"),Qe=require("./linear-BwPAspcq.cjs"),Ze=require("./delaunay-rcy0HhZi.cjs"),Ie=require("./line-DHV4JwCR.cjs"),Re=require("./step-BZ3C8QFW.cjs"),_e=require("./select-Bnfk0lJx.cjs"),tn=require("./pointer-Dkq5NV1q.cjs"),en=require("./use-in-view-QcfiW0w3.cjs"),Gt=require("./proxy-BxvUI_9l.cjs"),nn=require("./GraphFooter.cjs"),on=require("./GraphHeader.cjs"),rn=require("./EmptyState-sAEZ_5rU.cjs"),sn=require("./ColorLegendWithMouseOver.cjs"),$e=require("./GraphContainer-d8A46BK2.cjs"),ln=require("./getNoOfTicks-C_1CFXv_.cjs");function an(e,t){return Array.from(t,s=>e[s])}function cn(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[s]=t;if(s&&s.length!==2||t.length>1){const j=Uint32Array.from(e,(E,u)=>u);return t.length>1?(t=t.map(E=>e.map(E)),j.sort((E,u)=>{for(const r of t){const vt=Se(r[E],r[u]);if(vt)return vt}})):(s=e.map(s),j.sort((E,u)=>Se(s[E],s[u]))),an(e,j)}return e.sort(un(s))}function un(e=Ee.ascending){if(e===Ee.ascending)return Se;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,s)=>{const j=e(t,s);return j||j===0?j:(e(s,s)===0)-(e(t,t)===0)}}function Se(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function fn(e){const t=o.compilerRuntimeExports.c(128),{data:s,width:j,height:E,lineColors:u,dateFormat:r,noOfXTicks:vt,rightMargin:nt,topMargin:Wt,bottomMargin:it,suffix:U,prefix:h,leftMargin:C,tooltip:jt,onSeriesMouseOver:ot,refValues:rt,highlightAreaSettings:Yt,minValue:X,maxValue:Ot,highlightedLines:H,animate:l,rtl:P,strokeWidth:M,showDots:oe,annotations:wt,customHighlightAreaSettings:Ft,yAxisTitle:B,noOfYTicks:Xt,minDate:Pt,maxDate:Bt,curveType:st,styles:O,colorDomain:D,selectedColor:bt,classNames:R,showLabels:pe,dimmedOpacity:L,precision:z,naLabel:de,customLayers:J}=e,Ct=A.useRef(null);let K;t[0]!==l.amount||t[1]!==l.once?(K={once:l.once,amount:l.amount},t[0]=l.amount,t[1]=l.once,t[2]=K):K=t[2];const m=en.useInView(Ct,K),[q,re]=A.useState(!1);let Rt,lt;t[3]!==l.duration||t[4]!==q||t[5]!==m?(Rt=()=>{if(m&&!q){const n=setTimeout(()=>{re(!0)},(l.duration+.5)*1e3);return()=>clearTimeout(n)}},lt=[m,q,l.duration],t[3]=l.duration,t[4]=q,t[5]=m,t[6]=Rt,t[7]=lt):(Rt=t[6],lt=t[7]),A.useEffect(Rt,lt);const se=st==="linear"?Ie.curveLinear:st==="step"?Re.curveStep:st==="stepAfter"?Re.stepAfter:st==="stepBefore"?Re.stepBefore:Re.monotoneX;let At;t[8]!==r?(At=n=>({...n,date:b.parse(`${n.date}`,r,new Date)}),t[8]=r,t[9]=At):At=t[9];const a=Me.orderBy(s.map(At),["date"],["asc"]).filter(Wn),g=Ae.uniqBy(a,"label",!0);let Et;t[10]!==r?(Et=n=>b.parse(`${n}`,r,new Date),t[10]=r,t[11]=Et):Et=t[11];const zt=cn(Ae.uniqBy(s,"date",!0).map(Et),Gn),[x,at]=A.useState(void 0),[ct,Q]=A.useState(void 0),[ut,Z]=A.useState(void 0),kt=B?C+30:C;let ft;t[12]!==it||t[13]!==nt||t[14]!==kt||t[15]!==Wt?(ft={top:Wt,bottom:it,left:kt,right:nt},t[12]=it,t[13]=nt,t[14]=kt,t[15]=Wt,t[16]=ft):ft=t[16];const d=ft,le=A.useRef(null),ae=g.map(n=>Me.orderBy(a.filter(i=>i.label==n),["date"],["asc"]));let mt;if(t[17]!==r||t[18]!==Yt){let n;t[20]!==r?(n=i=>({...i,coordinates:[i.coordinates[0]===null?null:b.parse(`${i.coordinates[0]}`,r,new Date),i.coordinates[1]===null?null:b.parse(`${i.coordinates[1]}`,r,new Date)]}),t[20]=r,t[21]=n):n=t[21],mt=Yt.map(n),t[17]=r,t[18]=Yt,t[19]=mt}else mt=t[19];const Nt=mt;let xt;if(t[22]!==Ft||t[23]!==r){let n;t[25]!==r?(n=i=>({...i,coordinates:i.coordinates.map((y,Ht)=>Ht%2===0?b.parse(`${y}`,r,new Date):y)}),t[25]=r,t[26]=n):n=t[26],xt=Ft.map(n),t[22]=Ft,t[23]=r,t[24]=xt}else xt=t[24];const Jt=xt,p=j-d.left-d.right,k=E-d.top-d.bottom,ce=Pt?b.parse(`${Pt}`,r,new Date):zt[0],Kt=Bt?b.parse(`${Bt}`,r,new Date):zt[zt.length-1],w=v.checkIfNullOrUndefined(X)?Math.min(...a.map(Hn).filter(Un))?Math.min(...a.map(Vn).filter($n))>0?0:Math.min(...a.map(In).filter(Tn)):0:X,G=Math.max(...a.map(Mn).filter(Sn))?Math.max(...a.map(qn).filter(Ln)):0,c=Ke.time().domain([ce,Kt]).range([0,p]);let _;t[27]!==w||t[28]!==X?(_=v.checkIfNullOrUndefined(X)?w:X,t[27]=w,t[28]=X,t[29]=_):_=t[29];let S;t[30]!==G||t[31]!==Ot?(S=v.checkIfNullOrUndefined(Ot)?G>0?G:0:Ot,t[30]=G,t[31]=Ot,t[32]=S):S=t[32];const f=Qe.linear().domain([_,S]).range([k,0]).nice(),ue=Ze.Delaunay.from(a.filter(Dn),n=>c(n.date),n=>f(n.y)).voronoi([0,0,p<0?0:p,k<0?0:k]),Dt=Ie.line().x(n=>c(n.date)).y(n=>f(n.y)).curve(se),Lt=f.ticks(Xt),Qt=c.ticks(vt);A.useEffect(()=>{const n=y=>{const Ht=a[Ee.bisectCenter(a.map(Nn),c.invert(tn.pointer(y)[0]),0)];at(Ht||a[a.length-1]),Z(y.clientY),Q(y.clientX),ot?.(Ht||a[a.length-1])},i=()=>{at(void 0),Q(void 0),Z(void 0)};_e.select(le.current).on("mousemove",n).on("mouseout",i),ot?.(void 0)},[c,a,ot]);let tt;t[33]!==l||t[34]!==k||t[35]!==p||t[36]!==Nt||t[37]!==m||t[38]!==c?(tt=o.jsxRuntimeExports.jsx(Je.HighlightArea,{areaSettings:Nt,width:p,height:k,scale:c,animate:l,isInView:m}),t[33]=l,t[34]=k,t[35]=p,t[36]=Nt,t[37]=m,t[38]=c,t[39]=tt):tt=t[39];const qt=O?.yAxis?.gridLines,T=O?.yAxis?.labels;let pt;t[40]!==qt||t[41]!==T?(pt={gridLines:qt,labels:T},t[40]=qt,t[41]=T,t[42]=pt):pt=t[42];const St=R?.yAxis?.gridLines,Mt=R?.yAxis?.labels;let dt;t[43]!==St||t[44]!==Mt?(dt={gridLines:St,labels:Mt},t[43]=St,t[44]=Mt,t[45]=dt):dt=t[45];const ht=f(w<0?0:w),Tt=f(w<0?0:w),It=0-C,et=p+d.right,fe=w<0?0:w;let I;t[46]!==z||t[47]!==h||t[48]!==U||t[49]!==fe?(I=Te.numberFormattingFunction(fe,"NA",z,h,U),t[46]=z,t[47]=h,t[48]=U,t[49]=fe,t[50]=I):I=t[50];const me=0-C,$t=f(w<0?0:w),xe=G<0?"1em":-5;let W;t[51]!==me||t[52]!==$t||t[53]!==xe?(W={x:me,y:$t,dx:0,dy:xe},t[51]=me,t[52]=$t,t[53]=xe,t[54]=W):W=t[54];const Zt=R?.xAxis?.axis,gt=R?.yAxis?.labels;let $;t[55]!==Zt||t[56]!==gt?($={axis:Zt,label:gt},t[55]=Zt,t[56]=gt,t[57]=$):$=t[57];const Vt=O?.xAxis?.axis,Ut=O?.yAxis?.labels;let N;t[58]!==Vt||t[59]!==Ut?(N={axis:Vt,label:Ut},t[58]=Vt,t[59]=Ut,t[60]=N):N=t[60];let V;t[61]!==ht||t[62]!==Tt||t[63]!==It||t[64]!==et||t[65]!==I||t[66]!==W||t[67]!==$||t[68]!==N?(V=o.jsxRuntimeExports.jsx(Xe.Axis,{y1:ht,y2:Tt,x1:It,x2:et,label:I,labelPos:W,classNames:$,styles:N}),t[61]=ht,t[62]=Tt,t[63]=It,t[64]=et,t[65]=I,t[66]=W,t[67]=$,t[68]=N,t[69]=V):V=t[69];const Y=0-C-15,yt=k/2,_t=O?.yAxis?.title,te=R?.yAxis?.title;let he;t[70]!==Y||t[71]!==yt||t[72]!==_t||t[73]!==te||t[74]!==B?(he=o.jsxRuntimeExports.jsx(Fe.AxisTitle,{x:Y,y:yt,style:_t,className:te,text:B,rotate90:!0}),t[70]=Y,t[71]=yt,t[72]=_t,t[73]=te,t[74]=B,t[75]=he):he=t[75];let ge;t[76]!==r?(ge=n=>b.format(n,r),t[76]=r,t[77]=ge):ge=t[77];const Ve=Qt.map(ge),Ue=Qt.map(n=>c(n)),ke=O?.xAxis?.gridLines,Ne=O?.xAxis?.labels;let ye;t[78]!==ke||t[79]!==Ne?(ye={gridLines:ke,labels:Ne},t[78]=ke,t[79]=Ne,t[80]=ye):ye=t[80];const De=R?.xAxis?.gridLines;let ee;t[81]!==De?(ee=o.mo("opacity-0",De),t[81]=De,t[82]=ee):ee=t[82];const Le=R?.xAxis?.labels;let ne;t[83]!==Le?(ne=o.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",Le),t[83]=Le,t[84]=ne):ne=t[84];let ve;t[85]!==ee||t[86]!==ne?(ve={gridLines:ee,labels:ne},t[85]=ee,t[86]=ne,t[87]=ve):ve=t[87];let je;t[88]!==J?(je=J.filter(An).map(Rn),t[88]=J,t[89]=je):je=t[89];const He=a.filter(pn).map((n,i)=>o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx("path",{d:ue.renderCell(a.findIndex(y=>y.label===n.label&&y.date===n.date)),opacity:0,onMouseEnter:y=>{at(n),Z(y.clientY),Q(y.clientX),ot?.(n)},onMouseMove:y=>{at(n),Z(y.clientY),Q(y.clientX)},onMouseLeave:()=>{at(void 0),Q(void 0),Z(void 0),ot?.(void 0)}})},i));let Oe;t[90]!==l||t[91]!==p||t[92]!==m||t[93]!==C||t[94]!==d.right||t[95]!==rt||t[96]!==f?(Oe=rt?o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:rt.map((n,i)=>o.jsxRuntimeExports.jsx(Be.RefLineY,{text:n.text,color:n.color,y:f(n.value),x1:0-C,x2:p+d.right,classNames:n.classNames,styles:n.styles,animate:l,isInView:m},i))}):null,t[90]=l,t[91]=p,t[92]=m,t[93]=C,t[94]=d.right,t[95]=rt,t[96]=f,t[97]=Oe):Oe=t[97];let ie;if(t[98]!==l||t[99]!==wt||t[100]!==r||t[101]!==p||t[102]!==m||t[103]!==d.right||t[104]!==P||t[105]!==c||t[106]!==f){let n;t[108]!==l||t[109]!==r||t[110]!==p||t[111]!==m||t[112]!==d.right||t[113]!==P||t[114]!==c||t[115]!==f?(n=(i,y)=>{const Ht=qe.getLineEndPoint({x:i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0),y:i.yCoordinate?f(i.yCoordinate)+(i.yOffset||0)-8:0+(i.yOffset||0)-8},{x:i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date)):0,y:i.yCoordinate?f(i.yCoordinate):0},v.checkIfNullOrUndefined(i.connectorRadius)?3.5:i.connectorRadius),Ge=i.showConnector?{y1:Ht.y,x1:Ht.x,y2:i.yCoordinate?f(i.yCoordinate)+(i.yOffset||0):0+(i.yOffset||0),x2:i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0),cy:i.yCoordinate?f(i.yCoordinate):0,cx:i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date)):0,circleRadius:v.checkIfNullOrUndefined(i.connectorRadius)?3.5:i.connectorRadius,strokeWidth:i.showConnector===!0?2:Math.min(i.showConnector||0,1)}:void 0,We={y:i.yCoordinate?f(i.yCoordinate)+(i.yOffset||0)-8:0+(i.yOffset||0)-8,x:P?0:i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0),width:P?i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0):p+d.right-(i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0)),maxWidth:i.maxWidth,fontWeight:i.fontWeight,align:i.align};return o.jsxRuntimeExports.jsx(qe.Annotation,{color:i.color,connectorsSettings:Ge,labelSettings:We,text:i.text,classNames:i.classNames,styles:i.styles,animate:l,isInView:m},y)},t[108]=l,t[109]=r,t[110]=p,t[111]=m,t[112]=d.right,t[113]=P,t[114]=c,t[115]=f,t[116]=n):n=t[116],ie=wt.map(n),t[98]=l,t[99]=wt,t[100]=r,t[101]=p,t[102]=m,t[103]=d.right,t[104]=P,t[105]=c,t[106]=f,t[107]=ie}else ie=t[107];let we;t[117]!==ie?(we=o.jsxRuntimeExports.jsx("g",{children:ie}),t[117]=ie,t[118]=we):we=t[118];let be;t[119]!==J?(be=J.filter(xn).map(mn),t[119]=J,t[120]=be):be=t[120];let Ce;return t[121]!==R?.tooltip||t[122]!==ct||t[123]!==ut||t[124]!==x||t[125]!==O?.tooltip||t[126]!==jt?(Ce=x&&jt&&ct&&ut?o.jsxRuntimeExports.jsx(Ye.Tooltip,{data:x,body:jt,xPos:ct,yPos:ut,backgroundStyle:O?.tooltip,className:R?.tooltip}):null,t[121]=R?.tooltip,t[122]=ct,t[123]=ut,t[124]=x,t[125]=O?.tooltip,t[126]=jt,t[127]=Ce):Ce=t[127],o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(Gt.motion.svg,{width:`${j}px`,height:`${E}px`,viewBox:`0 0 ${j} ${E}`,direction:"ltr",ref:Ct,children:o.jsxRuntimeExports.jsxs("g",{transform:`translate(${d.left},${d.top})`,children:[tt,o.jsxRuntimeExports.jsx(qe.CustomArea,{areaSettings:Jt,scaleX:c,scaleY:f,animate:l,isInView:m}),o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(ze.YTicksAndGridLines,{values:Lt.filter(kn),y:Lt.filter(En).map(n=>f(n)),x1:0-C,x2:p+d.right,styles:pt,classNames:dt,suffix:U,prefix:h,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:z}),V,he]}),o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx(Pe.XTicksAndGridLines,{values:Ve,x:Ue,y1:0,y2:k,styles:ye,classNames:ve,suffix:U,prefix:h,labelType:"primary",showGridLines:!0,precision:z})}),je,o.jsxRuntimeExports.jsxs(Gt.motion.g,{children:[ae.map(n=>o.jsxRuntimeExports.jsxs(Gt.motion.g,{exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:x?n[0].label===x.label?1:L:bt?n[0].color&&u[D.indexOf(n[0].color)]===bt?1:L:H.length!==0?H.indexOf(n[0].label)!==-1?1:L:1},whileInView:{opacity:x?n[0].label===x.label?1:L:bt?n[0].color&&u[D.indexOf(n[0].color)]===bt?1:L:H.length!==0?H.indexOf(n[0].label)!==-1?1:L:1,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:[o.jsxRuntimeExports.jsx(Gt.motion.path,{d:Dt(n.filter(Cn))||"",style:{fill:"none",strokeWidth:x?n[0].label===x.label?M+Math.max(2,.5*M):M:H.length!==0&&H.indexOf(n[0].label)!==-1?M+Math.max(2,.5*M):M},exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{pathLength:0,d:Dt(n.filter(bn))||"",opacity:1,stroke:s.filter(wn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray},whileInView:{pathLength:1,d:Dt(n.filter(On))||"",opacity:1,stroke:s.filter(jn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial"}),n.map((i,y)=>o.jsxRuntimeExports.jsx(Gt.motion.g,{children:v.checkIfNullOrUndefined(i.y)?null:o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:oe?o.jsxRuntimeExports.jsx(Gt.motion.circle,{r:p/n.length<5?0:p/n.length<20?2:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:s.filter(vn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray,cx:c(i.date),cy:f(i.y)},whileInView:{opacity:1,fill:s.filter(yn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray,transition:{duration:q?l.duration:.5,delay:q?0:l.duration},cx:c(i.date),cy:f(i.y)}},initial:"initial",animate:m?"whileInView":"initial"}):null})},y)),(H.indexOf(n[0].label)!==-1||x?.label===n[0].label)&&pe?o.jsxRuntimeExports.jsx(Gt.motion.text,{className:"text-sm font-bold",dx:5,dy:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:s.filter(gn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray,x:c(n[n.length-1].date),y:f(n[n.length-1].y)},whileInView:{opacity:1,fill:s.filter(hn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray,x:c(n[n.length-1].date),y:f(n[n.length-1].y),transition:{duration:q?l.duration:.5,delay:q?0:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:n[0].label}):null]},n[0].label)),x?o.jsxRuntimeExports.jsx("text",{y:f(x.y)-8,x:c(x.date),className:o.mo("graph-value text-sm font-bold",R?.graphObjectValues),style:{fill:s.filter(dn).length===0?u[0]:x.color?u[D.indexOf(x.color)]:F.Colors.gray,textAnchor:"middle",...O?.graphObjectValues||{}},children:Te.numberFormattingFunction(x.y,de,z,h,U)}):null]}),He,Oe,we,be]})}),Ce]})}function mn(e){return e.layer}function xn(e){return e.position==="after"}function pn(e){return!v.checkIfNullOrUndefined(e.y)}function dn(e){return e.color}function hn(e){return e.color}function gn(e){return e.color}function yn(e){return e.color}function vn(e){return e.color}function jn(e){return e.color}function On(e){return!v.checkIfNullOrUndefined(e.y)}function wn(e){return e.color}function bn(e){return!v.checkIfNullOrUndefined(e.y)}function Cn(e){return!v.checkIfNullOrUndefined(e.y)}function Rn(e){return e.layer}function An(e){return e.position==="before"}function En(e){return e!==0}function kn(e){return e!==0}function Nn(e){return e.date}function Dn(e){return!v.checkIfNullOrUndefined(e.date)&&!v.checkIfNullOrUndefined(e.y)}function Ln(e){return!v.checkIfNullOrUndefined(e)}function qn(e){return e.y}function Sn(e){return!v.checkIfNullOrUndefined(e)}function Mn(e){return e.y}function Tn(e){return!v.checkIfNullOrUndefined(e)}function In(e){return e.y}function $n(e){return!v.checkIfNullOrUndefined(e)}function Vn(e){return e.y}function Un(e){return!v.checkIfNullOrUndefined(e)}function Hn(e){return e.y}function Gn(e,t){return Ee.ascending(e,t)}function Wn(e){return!v.checkIfNullOrUndefined(e.y)}function Yn(e){const t=o.compilerRuntimeExports.c(94),{data:s,graphTitle:j,showNAColor:E,colors:u,colorDomain:r,suffix:vt,sources:nt,prefix:Wt,graphDescription:it,height:U,width:h,footNote:C,noOfXTicks:jt,dateFormat:ot,padding:rt,backgroundColor:Yt,leftMargin:X,rightMargin:Ot,topMargin:H,bottomMargin:l,showColorScale:P,tooltip:M,relativeHeight:oe,onSeriesMouseOver:wt,showLabels:Ft,refValues:B,highlightAreaSettings:Xt,graphID:Pt,minValue:Bt,maxValue:st,highlightedLines:O,graphDownload:D,dataDownload:bt,animate:R,language:pe,colorLegendTitle:L,minHeight:z,strokeWidth:de,showDots:J,annotations:Ct,customHighlightAreaSettings:K,theme:m,ariaLabel:q,yAxisTitle:re,noOfYTicks:Rt,minDate:lt,maxDate:se,curveType:At,styles:a,classNames:g,dimmedOpacity:Et,precision:zt,customLayers:x,naLabel:at}=e,ct=E===void 0?!0:E,Q=vt===void 0?"":vt,ut=Wt===void 0?"":Wt,Z=jt===void 0?10:jt,kt=ot===void 0?"yyyy":ot,ft=Yt===void 0?!1:Yt,d=X===void 0?30:X,le=Ot===void 0?50:Ot,ae=H===void 0?20:H,mt=l===void 0?25:l,Nt=P===void 0?!0:P,xt=Ft===void 0?!0:Ft;let Jt;t[0]!==B?(Jt=B===void 0?[]:B,t[0]=B,t[1]=Jt):Jt=t[1];const p=Jt;let k;t[2]!==Xt?(k=Xt===void 0?[]:Xt,t[2]=Xt,t[3]=k):k=t[3];const ce=k;let Kt;t[4]!==O?(Kt=O===void 0?[]:O,t[4]=O,t[5]=Kt):Kt=t[5];const w=Kt,G=D===void 0?!1:D,c=bt===void 0?!1:bt,_=R===void 0?!1:R,S=pe===void 0?"en":pe,f=z===void 0?0:z,ue=de===void 0?2:de,Dt=J===void 0?!0:J;let Lt;t[6]!==Ct?(Lt=Ct===void 0?[]:Ct,t[6]=Ct,t[7]=Lt):Lt=t[7];const Qt=Lt;let tt;t[8]!==K?(tt=K===void 0?[]:K,t[8]=K,t[9]=tt):tt=t[9];const qt=tt,T=m===void 0?"light":m,pt=Rt===void 0?5:Rt,St=At===void 0?"curve":At,Mt=Et===void 0?.3:Et,dt=zt===void 0?2:zt;let ht;t[10]!==x?(ht=x===void 0?[]:x,t[10]=x,t[11]=ht):ht=t[11];const Tt=ht,It=at===void 0?"NA":at,[et,fe]=A.useState(0),[I,me]=A.useState(0),[$t,xe]=A.useState(void 0),W=A.useRef(null),Zt=A.useRef(null);let gt,$;t[12]===Symbol.for("react.memo_cache_sentinel")?(gt=()=>{const _t=new ResizeObserver(te=>{fe(te[0].target.clientWidth||620),me(te[0].target.clientHeight||480)});return W.current&&_t.observe(W.current),()=>_t.disconnect()},$=[],t[12]=gt,t[13]=$):(gt=t[12],$=t[13]),A.useEffect(gt,$);const Vt=g?.graphContainer,Ut=a?.graphContainer;let N;t[14]!==g?.description||t[15]!==g?.title||t[16]!==s||t[17]!==c||t[18]!==it||t[19]!==G||t[20]!==j||t[21]!==a?.description||t[22]!==a?.title||t[23]!==h?(N=j||it||G||c?o.jsxRuntimeExports.jsx(on.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:g?.title,description:g?.description},graphTitle:j,graphDescription:it,width:h,graphDownload:G?Zt:void 0,dataDownload:c?s.map(Qn).filter(Kn).length>0?s.map(Jn).filter(zn):s.filter(Bn):null}):null,t[14]=g?.description,t[15]=g?.title,t[16]=s,t[17]=c,t[18]=it,t[19]=G,t[20]=j,t[21]=a?.description,t[22]=a?.title,t[23]=h,t[24]=N):N=t[24];let V;t[25]!==_||t[26]!==Qt||t[27]!==mt||t[28]!==g||t[29]!==r||t[30]!==L||t[31]!==u||t[32]!==St||t[33]!==qt||t[34]!==Tt||t[35]!==s||t[36]!==kt||t[37]!==Mt||t[38]!==ce||t[39]!==w||t[40]!==S||t[41]!==d||t[42]!==se||t[43]!==st||t[44]!==lt||t[45]!==Bt||t[46]!==It||t[47]!==Z||t[48]!==pt||t[49]!==wt||t[50]!==dt||t[51]!==ut||t[52]!==p||t[53]!==le||t[54]!==$t||t[55]!==Nt||t[56]!==Dt||t[57]!==xt||t[58]!==ct||t[59]!==ue||t[60]!==a||t[61]!==Q||t[62]!==I||t[63]!==et||t[64]!==T||t[65]!==M||t[66]!==ae||t[67]!==h||t[68]!==re?(V=s.length===0?o.jsxRuntimeExports.jsx(rn.EmptyState,{}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[Nt&&s.filter(Pn).length!==0?o.jsxRuntimeExports.jsx(sn.ColorLegendWithMouseOver,{width:h,colorLegendTitle:L,colors:u||F.Colors[T].categoricalColors.colors,colorDomain:r||Ae.uniqBy(s,"color",!0),setSelectedColor:xe,showNAColor:ct,className:g?.colorLegend}):null,o.jsxRuntimeExports.jsx($e.GraphArea,{ref:W,children:et&&I?o.jsxRuntimeExports.jsx(fn,{data:s,lineColors:s.filter(Xn).length===0?u?[u]:[F.Colors.primaryColors["blue-600"]]:u||F.Colors[T].categoricalColors.colors,width:et,height:I,dateFormat:kt,noOfXTicks:Z??ln.getNoOfTicks(et),leftMargin:d,rightMargin:le,topMargin:ae,bottomMargin:mt,tooltip:M,onSeriesMouseOver:wt,suffix:Q,prefix:ut,highlightAreaSettings:ce,refValues:p,minValue:Bt,maxValue:st,highlightedLines:w,animate:_===!0?{duration:.5,once:!0,amount:.5}:_||{duration:0,once:!0,amount:0},rtl:S==="he"||S==="ar",strokeWidth:ue,showDots:Dt,annotations:Qt,customHighlightAreaSettings:qt,yAxisTitle:re,noOfYTicks:pt,minDate:lt,maxDate:se,curveType:St,styles:a,classNames:g,selectedColor:$t,showLabels:xt,colorDomain:s.filter(Fn).length===0?[]:r||Ae.uniqBy(s,"color",!0),dimmedOpacity:Mt,precision:dt,customLayers:Tt,naLabel:It}):null})]}),t[25]=_,t[26]=Qt,t[27]=mt,t[28]=g,t[29]=r,t[30]=L,t[31]=u,t[32]=St,t[33]=qt,t[34]=Tt,t[35]=s,t[36]=kt,t[37]=Mt,t[38]=ce,t[39]=w,t[40]=S,t[41]=d,t[42]=se,t[43]=st,t[44]=lt,t[45]=Bt,t[46]=It,t[47]=Z,t[48]=pt,t[49]=wt,t[50]=dt,t[51]=ut,t[52]=p,t[53]=le,t[54]=$t,t[55]=Nt,t[56]=Dt,t[57]=xt,t[58]=ct,t[59]=ue,t[60]=a,t[61]=Q,t[62]=I,t[63]=et,t[64]=T,t[65]=M,t[66]=ae,t[67]=h,t[68]=re,t[69]=V):V=t[69];let Y;t[70]!==g?.footnote||t[71]!==g?.source||t[72]!==C||t[73]!==nt||t[74]!==a?.footnote||t[75]!==a?.source||t[76]!==h?(Y=nt||C?o.jsxRuntimeExports.jsx(nn.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:g?.footnote,source:g?.source},sources:nt,footNote:C,width:h}):null,t[70]=g?.footnote,t[71]=g?.source,t[72]=C,t[73]=nt,t[74]=a?.footnote,t[75]=a?.source,t[76]=h,t[77]=Y):Y=t[77];let yt;return t[78]!==q||t[79]!==ft||t[80]!==Pt||t[81]!==U||t[82]!==S||t[83]!==f||t[84]!==rt||t[85]!==oe||t[86]!==Vt||t[87]!==Ut||t[88]!==N||t[89]!==V||t[90]!==Y||t[91]!==T||t[92]!==h?(yt=o.jsxRuntimeExports.jsxs($e.GraphContainer,{className:Vt,style:Ut,id:Pt,ref:Zt,"aria-label":q,backgroundColor:ft,theme:T,language:S,minHeight:f,width:h,height:U,relativeHeight:oe,padding:rt,children:[N,V,Y]}),t[78]=q,t[79]=ft,t[80]=Pt,t[81]=U,t[82]=S,t[83]=f,t[84]=rt,t[85]=oe,t[86]=Vt,t[87]=Ut,t[88]=N,t[89]=V,t[90]=Y,t[91]=T,t[92]=h,t[93]=yt):yt=t[93],yt}function Fn(e){return e.color}function Xn(e){return e.color}function Pn(e){return e.color}function Bn(e){return e!==void 0}function zn(e){return e!==void 0}function Jn(e){return e.data}function Kn(e){return e!==void 0}function Qn(e){return e.data}exports.MultiLineAltChart=Yn;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-CTPQjnHt.cjs"),A=require("react"),b=require("./parse-hMnG_lRV.cjs"),Me=require("./index-Cno4Q0YE.cjs"),Te=require("./numberFormattingFunction-02t-wJta.cjs"),Ye=require("./Tooltip-uUdw6wJL.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),qe=require("./customArea-CMF5g-C3.cjs"),Fe=require("./AxisTitle-sS5bLLR7.cjs"),Xe=require("./Axis-DxRV2yMi.cjs"),Pe=require("./XTicksAndGridLines-B6CELS7q.cjs"),Be=require("./ReferenceLine-BH0qdf4R.cjs"),ze=require("./YTicksAndGridLines-4pxTRlRK.cjs"),Je=require("./index-B_sAFsEV.cjs"),F=require("./Colors.cjs"),Ae=require("./uniqBy-O05lp2S5.cjs"),Ee=require("./init-DU0ybBc_.cjs"),Ke=require("./time-CZd5YLSP.cjs"),Qe=require("./linear-BwPAspcq.cjs"),Ze=require("./delaunay-rcy0HhZi.cjs"),Ie=require("./line-DaEMhXmx.cjs"),Re=require("./step-BZ3C8QFW.cjs"),_e=require("./select-Bnfk0lJx.cjs"),tn=require("./pointer-Dkq5NV1q.cjs"),en=require("./use-in-view-QcfiW0w3.cjs"),Gt=require("./proxy-BxvUI_9l.cjs"),nn=require("./GraphFooter.cjs"),on=require("./GraphHeader.cjs"),rn=require("./EmptyState-sAEZ_5rU.cjs"),sn=require("./ColorLegendWithMouseOver.cjs"),$e=require("./GraphContainer-d8A46BK2.cjs"),ln=require("./getNoOfTicks-C_1CFXv_.cjs");function an(e,t){return Array.from(t,s=>e[s])}function cn(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[s]=t;if(s&&s.length!==2||t.length>1){const j=Uint32Array.from(e,(E,u)=>u);return t.length>1?(t=t.map(E=>e.map(E)),j.sort((E,u)=>{for(const r of t){const vt=Se(r[E],r[u]);if(vt)return vt}})):(s=e.map(s),j.sort((E,u)=>Se(s[E],s[u]))),an(e,j)}return e.sort(un(s))}function un(e=Ee.ascending){if(e===Ee.ascending)return Se;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,s)=>{const j=e(t,s);return j||j===0?j:(e(s,s)===0)-(e(t,t)===0)}}function Se(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function fn(e){const t=o.compilerRuntimeExports.c(128),{data:s,width:j,height:E,lineColors:u,dateFormat:r,noOfXTicks:vt,rightMargin:nt,topMargin:Wt,bottomMargin:it,suffix:U,prefix:h,leftMargin:C,tooltip:jt,onSeriesMouseOver:ot,refValues:rt,highlightAreaSettings:Yt,minValue:X,maxValue:Ot,highlightedLines:H,animate:l,rtl:P,strokeWidth:M,showDots:oe,annotations:wt,customHighlightAreaSettings:Ft,yAxisTitle:B,noOfYTicks:Xt,minDate:Pt,maxDate:Bt,curveType:st,styles:O,colorDomain:D,selectedColor:bt,classNames:R,showLabels:pe,dimmedOpacity:L,precision:z,naLabel:de,customLayers:J}=e,Ct=A.useRef(null);let K;t[0]!==l.amount||t[1]!==l.once?(K={once:l.once,amount:l.amount},t[0]=l.amount,t[1]=l.once,t[2]=K):K=t[2];const m=en.useInView(Ct,K),[q,re]=A.useState(!1);let Rt,lt;t[3]!==l.duration||t[4]!==q||t[5]!==m?(Rt=()=>{if(m&&!q){const n=setTimeout(()=>{re(!0)},(l.duration+.5)*1e3);return()=>clearTimeout(n)}},lt=[m,q,l.duration],t[3]=l.duration,t[4]=q,t[5]=m,t[6]=Rt,t[7]=lt):(Rt=t[6],lt=t[7]),A.useEffect(Rt,lt);const se=st==="linear"?Ie.curveLinear:st==="step"?Re.curveStep:st==="stepAfter"?Re.stepAfter:st==="stepBefore"?Re.stepBefore:Re.monotoneX;let At;t[8]!==r?(At=n=>({...n,date:b.parse(`${n.date}`,r,new Date)}),t[8]=r,t[9]=At):At=t[9];const a=Me.orderBy(s.map(At),["date"],["asc"]).filter(Wn),g=Ae.uniqBy(a,"label",!0);let Et;t[10]!==r?(Et=n=>b.parse(`${n}`,r,new Date),t[10]=r,t[11]=Et):Et=t[11];const zt=cn(Ae.uniqBy(s,"date",!0).map(Et),Gn),[x,at]=A.useState(void 0),[ct,Q]=A.useState(void 0),[ut,Z]=A.useState(void 0),kt=B?C+30:C;let ft;t[12]!==it||t[13]!==nt||t[14]!==kt||t[15]!==Wt?(ft={top:Wt,bottom:it,left:kt,right:nt},t[12]=it,t[13]=nt,t[14]=kt,t[15]=Wt,t[16]=ft):ft=t[16];const d=ft,le=A.useRef(null),ae=g.map(n=>Me.orderBy(a.filter(i=>i.label==n),["date"],["asc"]));let mt;if(t[17]!==r||t[18]!==Yt){let n;t[20]!==r?(n=i=>({...i,coordinates:[i.coordinates[0]===null?null:b.parse(`${i.coordinates[0]}`,r,new Date),i.coordinates[1]===null?null:b.parse(`${i.coordinates[1]}`,r,new Date)]}),t[20]=r,t[21]=n):n=t[21],mt=Yt.map(n),t[17]=r,t[18]=Yt,t[19]=mt}else mt=t[19];const Nt=mt;let xt;if(t[22]!==Ft||t[23]!==r){let n;t[25]!==r?(n=i=>({...i,coordinates:i.coordinates.map((y,Ht)=>Ht%2===0?b.parse(`${y}`,r,new Date):y)}),t[25]=r,t[26]=n):n=t[26],xt=Ft.map(n),t[22]=Ft,t[23]=r,t[24]=xt}else xt=t[24];const Jt=xt,p=j-d.left-d.right,k=E-d.top-d.bottom,ce=Pt?b.parse(`${Pt}`,r,new Date):zt[0],Kt=Bt?b.parse(`${Bt}`,r,new Date):zt[zt.length-1],w=v.checkIfNullOrUndefined(X)?Math.min(...a.map(Hn).filter(Un))?Math.min(...a.map(Vn).filter($n))>0?0:Math.min(...a.map(In).filter(Tn)):0:X,G=Math.max(...a.map(Mn).filter(Sn))?Math.max(...a.map(qn).filter(Ln)):0,c=Ke.time().domain([ce,Kt]).range([0,p]);let _;t[27]!==w||t[28]!==X?(_=v.checkIfNullOrUndefined(X)?w:X,t[27]=w,t[28]=X,t[29]=_):_=t[29];let S;t[30]!==G||t[31]!==Ot?(S=v.checkIfNullOrUndefined(Ot)?G>0?G:0:Ot,t[30]=G,t[31]=Ot,t[32]=S):S=t[32];const f=Qe.linear().domain([_,S]).range([k,0]).nice(),ue=Ze.Delaunay.from(a.filter(Dn),n=>c(n.date),n=>f(n.y)).voronoi([0,0,p<0?0:p,k<0?0:k]),Dt=Ie.line().x(n=>c(n.date)).y(n=>f(n.y)).curve(se),Lt=f.ticks(Xt),Qt=c.ticks(vt);A.useEffect(()=>{const n=y=>{const Ht=a[Ee.bisectCenter(a.map(Nn),c.invert(tn.pointer(y)[0]),0)];at(Ht||a[a.length-1]),Z(y.clientY),Q(y.clientX),ot?.(Ht||a[a.length-1])},i=()=>{at(void 0),Q(void 0),Z(void 0)};_e.select(le.current).on("mousemove",n).on("mouseout",i),ot?.(void 0)},[c,a,ot]);let tt;t[33]!==l||t[34]!==k||t[35]!==p||t[36]!==Nt||t[37]!==m||t[38]!==c?(tt=o.jsxRuntimeExports.jsx(Je.HighlightArea,{areaSettings:Nt,width:p,height:k,scale:c,animate:l,isInView:m}),t[33]=l,t[34]=k,t[35]=p,t[36]=Nt,t[37]=m,t[38]=c,t[39]=tt):tt=t[39];const qt=O?.yAxis?.gridLines,T=O?.yAxis?.labels;let pt;t[40]!==qt||t[41]!==T?(pt={gridLines:qt,labels:T},t[40]=qt,t[41]=T,t[42]=pt):pt=t[42];const St=R?.yAxis?.gridLines,Mt=R?.yAxis?.labels;let dt;t[43]!==St||t[44]!==Mt?(dt={gridLines:St,labels:Mt},t[43]=St,t[44]=Mt,t[45]=dt):dt=t[45];const ht=f(w<0?0:w),Tt=f(w<0?0:w),It=0-C,et=p+d.right,fe=w<0?0:w;let I;t[46]!==z||t[47]!==h||t[48]!==U||t[49]!==fe?(I=Te.numberFormattingFunction(fe,"NA",z,h,U),t[46]=z,t[47]=h,t[48]=U,t[49]=fe,t[50]=I):I=t[50];const me=0-C,$t=f(w<0?0:w),xe=G<0?"1em":-5;let W;t[51]!==me||t[52]!==$t||t[53]!==xe?(W={x:me,y:$t,dx:0,dy:xe},t[51]=me,t[52]=$t,t[53]=xe,t[54]=W):W=t[54];const Zt=R?.xAxis?.axis,gt=R?.yAxis?.labels;let $;t[55]!==Zt||t[56]!==gt?($={axis:Zt,label:gt},t[55]=Zt,t[56]=gt,t[57]=$):$=t[57];const Vt=O?.xAxis?.axis,Ut=O?.yAxis?.labels;let N;t[58]!==Vt||t[59]!==Ut?(N={axis:Vt,label:Ut},t[58]=Vt,t[59]=Ut,t[60]=N):N=t[60];let V;t[61]!==ht||t[62]!==Tt||t[63]!==It||t[64]!==et||t[65]!==I||t[66]!==W||t[67]!==$||t[68]!==N?(V=o.jsxRuntimeExports.jsx(Xe.Axis,{y1:ht,y2:Tt,x1:It,x2:et,label:I,labelPos:W,classNames:$,styles:N}),t[61]=ht,t[62]=Tt,t[63]=It,t[64]=et,t[65]=I,t[66]=W,t[67]=$,t[68]=N,t[69]=V):V=t[69];const Y=0-C-15,yt=k/2,_t=O?.yAxis?.title,te=R?.yAxis?.title;let he;t[70]!==Y||t[71]!==yt||t[72]!==_t||t[73]!==te||t[74]!==B?(he=o.jsxRuntimeExports.jsx(Fe.AxisTitle,{x:Y,y:yt,style:_t,className:te,text:B,rotate90:!0}),t[70]=Y,t[71]=yt,t[72]=_t,t[73]=te,t[74]=B,t[75]=he):he=t[75];let ge;t[76]!==r?(ge=n=>b.format(n,r),t[76]=r,t[77]=ge):ge=t[77];const Ve=Qt.map(ge),Ue=Qt.map(n=>c(n)),ke=O?.xAxis?.gridLines,Ne=O?.xAxis?.labels;let ye;t[78]!==ke||t[79]!==Ne?(ye={gridLines:ke,labels:Ne},t[78]=ke,t[79]=Ne,t[80]=ye):ye=t[80];const De=R?.xAxis?.gridLines;let ee;t[81]!==De?(ee=o.mo("opacity-0",De),t[81]=De,t[82]=ee):ee=t[82];const Le=R?.xAxis?.labels;let ne;t[83]!==Le?(ne=o.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",Le),t[83]=Le,t[84]=ne):ne=t[84];let ve;t[85]!==ee||t[86]!==ne?(ve={gridLines:ee,labels:ne},t[85]=ee,t[86]=ne,t[87]=ve):ve=t[87];let je;t[88]!==J?(je=J.filter(An).map(Rn),t[88]=J,t[89]=je):je=t[89];const He=a.filter(pn).map((n,i)=>o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx("path",{d:ue.renderCell(a.findIndex(y=>y.label===n.label&&y.date===n.date)),opacity:0,onMouseEnter:y=>{at(n),Z(y.clientY),Q(y.clientX),ot?.(n)},onMouseMove:y=>{at(n),Z(y.clientY),Q(y.clientX)},onMouseLeave:()=>{at(void 0),Q(void 0),Z(void 0),ot?.(void 0)}})},i));let Oe;t[90]!==l||t[91]!==p||t[92]!==m||t[93]!==C||t[94]!==d.right||t[95]!==rt||t[96]!==f?(Oe=rt?o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:rt.map((n,i)=>o.jsxRuntimeExports.jsx(Be.RefLineY,{text:n.text,color:n.color,y:f(n.value),x1:0-C,x2:p+d.right,classNames:n.classNames,styles:n.styles,animate:l,isInView:m},i))}):null,t[90]=l,t[91]=p,t[92]=m,t[93]=C,t[94]=d.right,t[95]=rt,t[96]=f,t[97]=Oe):Oe=t[97];let ie;if(t[98]!==l||t[99]!==wt||t[100]!==r||t[101]!==p||t[102]!==m||t[103]!==d.right||t[104]!==P||t[105]!==c||t[106]!==f){let n;t[108]!==l||t[109]!==r||t[110]!==p||t[111]!==m||t[112]!==d.right||t[113]!==P||t[114]!==c||t[115]!==f?(n=(i,y)=>{const Ht=qe.getLineEndPoint({x:i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0),y:i.yCoordinate?f(i.yCoordinate)+(i.yOffset||0)-8:0+(i.yOffset||0)-8},{x:i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date)):0,y:i.yCoordinate?f(i.yCoordinate):0},v.checkIfNullOrUndefined(i.connectorRadius)?3.5:i.connectorRadius),Ge=i.showConnector?{y1:Ht.y,x1:Ht.x,y2:i.yCoordinate?f(i.yCoordinate)+(i.yOffset||0):0+(i.yOffset||0),x2:i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0),cy:i.yCoordinate?f(i.yCoordinate):0,cx:i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date)):0,circleRadius:v.checkIfNullOrUndefined(i.connectorRadius)?3.5:i.connectorRadius,strokeWidth:i.showConnector===!0?2:Math.min(i.showConnector||0,1)}:void 0,We={y:i.yCoordinate?f(i.yCoordinate)+(i.yOffset||0)-8:0+(i.yOffset||0)-8,x:P?0:i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0),width:P?i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0):p+d.right-(i.xCoordinate?c(b.parse(`${i.xCoordinate}`,r,new Date))+(i.xOffset||0):0+(i.xOffset||0)),maxWidth:i.maxWidth,fontWeight:i.fontWeight,align:i.align};return o.jsxRuntimeExports.jsx(qe.Annotation,{color:i.color,connectorsSettings:Ge,labelSettings:We,text:i.text,classNames:i.classNames,styles:i.styles,animate:l,isInView:m},y)},t[108]=l,t[109]=r,t[110]=p,t[111]=m,t[112]=d.right,t[113]=P,t[114]=c,t[115]=f,t[116]=n):n=t[116],ie=wt.map(n),t[98]=l,t[99]=wt,t[100]=r,t[101]=p,t[102]=m,t[103]=d.right,t[104]=P,t[105]=c,t[106]=f,t[107]=ie}else ie=t[107];let we;t[117]!==ie?(we=o.jsxRuntimeExports.jsx("g",{children:ie}),t[117]=ie,t[118]=we):we=t[118];let be;t[119]!==J?(be=J.filter(xn).map(mn),t[119]=J,t[120]=be):be=t[120];let Ce;return t[121]!==R?.tooltip||t[122]!==ct||t[123]!==ut||t[124]!==x||t[125]!==O?.tooltip||t[126]!==jt?(Ce=x&&jt&&ct&&ut?o.jsxRuntimeExports.jsx(Ye.Tooltip,{data:x,body:jt,xPos:ct,yPos:ut,backgroundStyle:O?.tooltip,className:R?.tooltip}):null,t[121]=R?.tooltip,t[122]=ct,t[123]=ut,t[124]=x,t[125]=O?.tooltip,t[126]=jt,t[127]=Ce):Ce=t[127],o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(Gt.motion.svg,{width:`${j}px`,height:`${E}px`,viewBox:`0 0 ${j} ${E}`,direction:"ltr",ref:Ct,children:o.jsxRuntimeExports.jsxs("g",{transform:`translate(${d.left},${d.top})`,children:[tt,o.jsxRuntimeExports.jsx(qe.CustomArea,{areaSettings:Jt,scaleX:c,scaleY:f,animate:l,isInView:m}),o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(ze.YTicksAndGridLines,{values:Lt.filter(kn),y:Lt.filter(En).map(n=>f(n)),x1:0-C,x2:p+d.right,styles:pt,classNames:dt,suffix:U,prefix:h,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:z}),V,he]}),o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx(Pe.XTicksAndGridLines,{values:Ve,x:Ue,y1:0,y2:k,styles:ye,classNames:ve,suffix:U,prefix:h,labelType:"primary",showGridLines:!0,precision:z})}),je,o.jsxRuntimeExports.jsxs(Gt.motion.g,{children:[ae.map(n=>o.jsxRuntimeExports.jsxs(Gt.motion.g,{exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:x?n[0].label===x.label?1:L:bt?n[0].color&&u[D.indexOf(n[0].color)]===bt?1:L:H.length!==0?H.indexOf(n[0].label)!==-1?1:L:1},whileInView:{opacity:x?n[0].label===x.label?1:L:bt?n[0].color&&u[D.indexOf(n[0].color)]===bt?1:L:H.length!==0?H.indexOf(n[0].label)!==-1?1:L:1,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:[o.jsxRuntimeExports.jsx(Gt.motion.path,{d:Dt(n.filter(Cn))||"",style:{fill:"none",strokeWidth:x?n[0].label===x.label?M+Math.max(2,.5*M):M:H.length!==0&&H.indexOf(n[0].label)!==-1?M+Math.max(2,.5*M):M},exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{pathLength:0,d:Dt(n.filter(bn))||"",opacity:1,stroke:s.filter(wn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray},whileInView:{pathLength:1,d:Dt(n.filter(On))||"",opacity:1,stroke:s.filter(jn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial"}),n.map((i,y)=>o.jsxRuntimeExports.jsx(Gt.motion.g,{children:v.checkIfNullOrUndefined(i.y)?null:o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:oe?o.jsxRuntimeExports.jsx(Gt.motion.circle,{r:p/n.length<5?0:p/n.length<20?2:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:s.filter(vn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray,cx:c(i.date),cy:f(i.y)},whileInView:{opacity:1,fill:s.filter(yn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray,transition:{duration:q?l.duration:.5,delay:q?0:l.duration},cx:c(i.date),cy:f(i.y)}},initial:"initial",animate:m?"whileInView":"initial"}):null})},y)),(H.indexOf(n[0].label)!==-1||x?.label===n[0].label)&&pe?o.jsxRuntimeExports.jsx(Gt.motion.text,{className:"text-sm font-bold",dx:5,dy:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:s.filter(gn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray,x:c(n[n.length-1].date),y:f(n[n.length-1].y)},whileInView:{opacity:1,fill:s.filter(hn).length===0?u[0]:n[0].color?u[D.indexOf(n[0].color)]:F.Colors.gray,x:c(n[n.length-1].date),y:f(n[n.length-1].y),transition:{duration:q?l.duration:.5,delay:q?0:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:n[0].label}):null]},n[0].label)),x?o.jsxRuntimeExports.jsx("text",{y:f(x.y)-8,x:c(x.date),className:o.mo("graph-value text-sm font-bold",R?.graphObjectValues),style:{fill:s.filter(dn).length===0?u[0]:x.color?u[D.indexOf(x.color)]:F.Colors.gray,textAnchor:"middle",...O?.graphObjectValues||{}},children:Te.numberFormattingFunction(x.y,de,z,h,U)}):null]}),He,Oe,we,be]})}),Ce]})}function mn(e){return e.layer}function xn(e){return e.position==="after"}function pn(e){return!v.checkIfNullOrUndefined(e.y)}function dn(e){return e.color}function hn(e){return e.color}function gn(e){return e.color}function yn(e){return e.color}function vn(e){return e.color}function jn(e){return e.color}function On(e){return!v.checkIfNullOrUndefined(e.y)}function wn(e){return e.color}function bn(e){return!v.checkIfNullOrUndefined(e.y)}function Cn(e){return!v.checkIfNullOrUndefined(e.y)}function Rn(e){return e.layer}function An(e){return e.position==="before"}function En(e){return e!==0}function kn(e){return e!==0}function Nn(e){return e.date}function Dn(e){return!v.checkIfNullOrUndefined(e.date)&&!v.checkIfNullOrUndefined(e.y)}function Ln(e){return!v.checkIfNullOrUndefined(e)}function qn(e){return e.y}function Sn(e){return!v.checkIfNullOrUndefined(e)}function Mn(e){return e.y}function Tn(e){return!v.checkIfNullOrUndefined(e)}function In(e){return e.y}function $n(e){return!v.checkIfNullOrUndefined(e)}function Vn(e){return e.y}function Un(e){return!v.checkIfNullOrUndefined(e)}function Hn(e){return e.y}function Gn(e,t){return Ee.ascending(e,t)}function Wn(e){return!v.checkIfNullOrUndefined(e.y)}function Yn(e){const t=o.compilerRuntimeExports.c(94),{data:s,graphTitle:j,showNAColor:E,colors:u,colorDomain:r,suffix:vt,sources:nt,prefix:Wt,graphDescription:it,height:U,width:h,footNote:C,noOfXTicks:jt,dateFormat:ot,padding:rt,backgroundColor:Yt,leftMargin:X,rightMargin:Ot,topMargin:H,bottomMargin:l,showColorScale:P,tooltip:M,relativeHeight:oe,onSeriesMouseOver:wt,showLabels:Ft,refValues:B,highlightAreaSettings:Xt,graphID:Pt,minValue:Bt,maxValue:st,highlightedLines:O,graphDownload:D,dataDownload:bt,animate:R,language:pe,colorLegendTitle:L,minHeight:z,strokeWidth:de,showDots:J,annotations:Ct,customHighlightAreaSettings:K,theme:m,ariaLabel:q,yAxisTitle:re,noOfYTicks:Rt,minDate:lt,maxDate:se,curveType:At,styles:a,classNames:g,dimmedOpacity:Et,precision:zt,customLayers:x,naLabel:at}=e,ct=E===void 0?!0:E,Q=vt===void 0?"":vt,ut=Wt===void 0?"":Wt,Z=jt===void 0?10:jt,kt=ot===void 0?"yyyy":ot,ft=Yt===void 0?!1:Yt,d=X===void 0?30:X,le=Ot===void 0?50:Ot,ae=H===void 0?20:H,mt=l===void 0?25:l,Nt=P===void 0?!0:P,xt=Ft===void 0?!0:Ft;let Jt;t[0]!==B?(Jt=B===void 0?[]:B,t[0]=B,t[1]=Jt):Jt=t[1];const p=Jt;let k;t[2]!==Xt?(k=Xt===void 0?[]:Xt,t[2]=Xt,t[3]=k):k=t[3];const ce=k;let Kt;t[4]!==O?(Kt=O===void 0?[]:O,t[4]=O,t[5]=Kt):Kt=t[5];const w=Kt,G=D===void 0?!1:D,c=bt===void 0?!1:bt,_=R===void 0?!1:R,S=pe===void 0?"en":pe,f=z===void 0?0:z,ue=de===void 0?2:de,Dt=J===void 0?!0:J;let Lt;t[6]!==Ct?(Lt=Ct===void 0?[]:Ct,t[6]=Ct,t[7]=Lt):Lt=t[7];const Qt=Lt;let tt;t[8]!==K?(tt=K===void 0?[]:K,t[8]=K,t[9]=tt):tt=t[9];const qt=tt,T=m===void 0?"light":m,pt=Rt===void 0?5:Rt,St=At===void 0?"curve":At,Mt=Et===void 0?.3:Et,dt=zt===void 0?2:zt;let ht;t[10]!==x?(ht=x===void 0?[]:x,t[10]=x,t[11]=ht):ht=t[11];const Tt=ht,It=at===void 0?"NA":at,[et,fe]=A.useState(0),[I,me]=A.useState(0),[$t,xe]=A.useState(void 0),W=A.useRef(null),Zt=A.useRef(null);let gt,$;t[12]===Symbol.for("react.memo_cache_sentinel")?(gt=()=>{const _t=new ResizeObserver(te=>{fe(te[0].target.clientWidth||620),me(te[0].target.clientHeight||480)});return W.current&&_t.observe(W.current),()=>_t.disconnect()},$=[],t[12]=gt,t[13]=$):(gt=t[12],$=t[13]),A.useEffect(gt,$);const Vt=g?.graphContainer,Ut=a?.graphContainer;let N;t[14]!==g?.description||t[15]!==g?.title||t[16]!==s||t[17]!==c||t[18]!==it||t[19]!==G||t[20]!==j||t[21]!==a?.description||t[22]!==a?.title||t[23]!==h?(N=j||it||G||c?o.jsxRuntimeExports.jsx(on.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:g?.title,description:g?.description},graphTitle:j,graphDescription:it,width:h,graphDownload:G?Zt:void 0,dataDownload:c?s.map(Qn).filter(Kn).length>0?s.map(Jn).filter(zn):s.filter(Bn):null}):null,t[14]=g?.description,t[15]=g?.title,t[16]=s,t[17]=c,t[18]=it,t[19]=G,t[20]=j,t[21]=a?.description,t[22]=a?.title,t[23]=h,t[24]=N):N=t[24];let V;t[25]!==_||t[26]!==Qt||t[27]!==mt||t[28]!==g||t[29]!==r||t[30]!==L||t[31]!==u||t[32]!==St||t[33]!==qt||t[34]!==Tt||t[35]!==s||t[36]!==kt||t[37]!==Mt||t[38]!==ce||t[39]!==w||t[40]!==S||t[41]!==d||t[42]!==se||t[43]!==st||t[44]!==lt||t[45]!==Bt||t[46]!==It||t[47]!==Z||t[48]!==pt||t[49]!==wt||t[50]!==dt||t[51]!==ut||t[52]!==p||t[53]!==le||t[54]!==$t||t[55]!==Nt||t[56]!==Dt||t[57]!==xt||t[58]!==ct||t[59]!==ue||t[60]!==a||t[61]!==Q||t[62]!==I||t[63]!==et||t[64]!==T||t[65]!==M||t[66]!==ae||t[67]!==h||t[68]!==re?(V=s.length===0?o.jsxRuntimeExports.jsx(rn.EmptyState,{}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[Nt&&s.filter(Pn).length!==0?o.jsxRuntimeExports.jsx(sn.ColorLegendWithMouseOver,{width:h,colorLegendTitle:L,colors:u||F.Colors[T].categoricalColors.colors,colorDomain:r||Ae.uniqBy(s,"color",!0),setSelectedColor:xe,showNAColor:ct,className:g?.colorLegend}):null,o.jsxRuntimeExports.jsx($e.GraphArea,{ref:W,children:et&&I?o.jsxRuntimeExports.jsx(fn,{data:s,lineColors:s.filter(Xn).length===0?u?[u]:[F.Colors.primaryColors["blue-600"]]:u||F.Colors[T].categoricalColors.colors,width:et,height:I,dateFormat:kt,noOfXTicks:Z??ln.getNoOfTicks(et),leftMargin:d,rightMargin:le,topMargin:ae,bottomMargin:mt,tooltip:M,onSeriesMouseOver:wt,suffix:Q,prefix:ut,highlightAreaSettings:ce,refValues:p,minValue:Bt,maxValue:st,highlightedLines:w,animate:_===!0?{duration:.5,once:!0,amount:.5}:_||{duration:0,once:!0,amount:0},rtl:S==="he"||S==="ar",strokeWidth:ue,showDots:Dt,annotations:Qt,customHighlightAreaSettings:qt,yAxisTitle:re,noOfYTicks:pt,minDate:lt,maxDate:se,curveType:St,styles:a,classNames:g,selectedColor:$t,showLabels:xt,colorDomain:s.filter(Fn).length===0?[]:r||Ae.uniqBy(s,"color",!0),dimmedOpacity:Mt,precision:dt,customLayers:Tt,naLabel:It}):null})]}),t[25]=_,t[26]=Qt,t[27]=mt,t[28]=g,t[29]=r,t[30]=L,t[31]=u,t[32]=St,t[33]=qt,t[34]=Tt,t[35]=s,t[36]=kt,t[37]=Mt,t[38]=ce,t[39]=w,t[40]=S,t[41]=d,t[42]=se,t[43]=st,t[44]=lt,t[45]=Bt,t[46]=It,t[47]=Z,t[48]=pt,t[49]=wt,t[50]=dt,t[51]=ut,t[52]=p,t[53]=le,t[54]=$t,t[55]=Nt,t[56]=Dt,t[57]=xt,t[58]=ct,t[59]=ue,t[60]=a,t[61]=Q,t[62]=I,t[63]=et,t[64]=T,t[65]=M,t[66]=ae,t[67]=h,t[68]=re,t[69]=V):V=t[69];let Y;t[70]!==g?.footnote||t[71]!==g?.source||t[72]!==C||t[73]!==nt||t[74]!==a?.footnote||t[75]!==a?.source||t[76]!==h?(Y=nt||C?o.jsxRuntimeExports.jsx(nn.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:g?.footnote,source:g?.source},sources:nt,footNote:C,width:h}):null,t[70]=g?.footnote,t[71]=g?.source,t[72]=C,t[73]=nt,t[74]=a?.footnote,t[75]=a?.source,t[76]=h,t[77]=Y):Y=t[77];let yt;return t[78]!==q||t[79]!==ft||t[80]!==Pt||t[81]!==U||t[82]!==S||t[83]!==f||t[84]!==rt||t[85]!==oe||t[86]!==Vt||t[87]!==Ut||t[88]!==N||t[89]!==V||t[90]!==Y||t[91]!==T||t[92]!==h?(yt=o.jsxRuntimeExports.jsxs($e.GraphContainer,{className:Vt,style:Ut,id:Pt,ref:Zt,"aria-label":q,backgroundColor:ft,theme:T,language:S,minHeight:f,width:h,height:U,relativeHeight:oe,padding:rt,children:[N,V,Y]}),t[78]=q,t[79]=ft,t[80]=Pt,t[81]=U,t[82]=S,t[83]=f,t[84]=rt,t[85]=oe,t[86]=Vt,t[87]=Ut,t[88]=N,t[89]=V,t[90]=Y,t[91]=T,t[92]=h,t[93]=yt):yt=t[93],yt}function Fn(e){return e.color}function Xn(e){return e.color}function Pn(e){return e.color}function Bn(e){return e!==void 0}function zn(e){return e!==void 0}function Jn(e){return e.data}function Kn(e){return e!==void 0}function Qn(e){return e.data}exports.MultiLineAltChart=Yn;
2
2
  //# sourceMappingURL=MultiLineAltChart.cjs.map
@@ -18,7 +18,7 @@ import { c as Ne, a as to } from "./init-BhZylTFx.js";
18
18
  import { t as eo } from "./time-BUL-dwnK.js";
19
19
  import { a as oo } from "./linear-BqltdMeF.js";
20
20
  import { D as io } from "./delaunay-C1uAf38t.js";
21
- import { l as no, c as ro } from "./line-CPfhohvF.js";
21
+ import { l as no, c as ro } from "./line-DFlZsxI1.js";
22
22
  import { c as so, s as ao, a as lo, m as co } from "./step-BrDul-H4.js";
23
23
  import { s as fo } from "./select-DKy99ogv.js";
24
24
  import { p as mo } from "./pointer-CWRWOsrb.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-CTPQjnHt.cjs"),E=require("react"),O=require("./parse-hMnG_lRV.cjs"),Be=require("./index-Cno4Q0YE.cjs"),Fe=require("./numberFormattingFunction-02t-wJta.cjs"),ze=require("./Tooltip-uUdw6wJL.cjs"),R=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),He=require("./customArea-CMF5g-C3.cjs"),Je=require("./AxisTitle-sS5bLLR7.cjs"),Ke=require("./Axis-DxRV2yMi.cjs"),Qe=require("./XTicksAndGridLines-B6CELS7q.cjs"),Ze=require("./ReferenceLine-BH0qdf4R.cjs"),_e=require("./YTicksAndGridLines-4pxTRlRK.cjs"),ti=require("./index-B_sAFsEV.cjs"),ei=require("./time-CZd5YLSP.cjs"),ii=require("./linear-BwPAspcq.cjs"),Ge=require("./line-DHV4JwCR.cjs"),De=require("./step-BZ3C8QFW.cjs"),ni=require("./select-Bnfk0lJx.cjs"),oi=require("./init-DU0ybBc_.cjs"),si=require("./pointer-Dkq5NV1q.cjs"),ri=require("./use-in-view-QcfiW0w3.cjs"),Yt=require("./proxy-BxvUI_9l.cjs"),ai=require("./GraphFooter.cjs"),li=require("./GraphHeader.cjs"),ci=require("./ColorLegend.cjs"),ui=require("./Colors.cjs"),di=require("./EmptyState-sAEZ_5rU.cjs"),xi=require("./generateRandomString-B5zBiJzS.cjs"),Ue=require("./GraphContainer-d8A46BK2.cjs"),mi=require("./getNoOfTicks-C_1CFXv_.cjs");function fi(i){const t=o.compilerRuntimeExports.c(153),{data:A,width:tt,height:Xt,lineColors:k,dateFormat:r,noOfXTicks:pe,labels:L,rightMargin:At,topMargin:C,bottomMargin:et,suffix:G,prefix:U,leftMargin:j,tooltip:it,onSeriesMouseOver:Bt,showValues:ge,showColorLegendAtTop:ye,refValues:kt,highlightAreaSettings:zt,minValue:P,maxValue:nt,highlightedLines:ot,animate:s,rtl:W,strokeWidth:Jt,showDots:Kt,annotations:Lt,customHighlightAreaSettings:St,yAxisTitle:st,noOfYTicks:Qt,minDate:le,maxDate:ce,curveType:Nt,styles:y,classNames:g,dimmedOpacity:ue,precision:Y,customLayers:X,dashedLines:rt,dashSettings:Tt,labelsToBeHidden:ve,revealClipId:at}=i,Zt=E.useRef(null);let Dt;t[0]!==s.amount||t[1]!==s.once?(Dt={once:s.once,amount:s.amount},t[0]=s.amount,t[1]=s.once,t[2]=Dt):Dt=t[2];const u=ri.useInView(Zt,Dt),[w,je]=E.useState(!1);let f,x;t[3]!==s.duration||t[4]!==w||t[5]!==u?(f=()=>{if(u&&!w){const n=setTimeout(()=>{je(!0)},(s.duration+.5)*1e3);return()=>clearTimeout(n)}},x=[u,w,s.duration],t[3]=s.duration,t[4]=w,t[5]=u,t[6]=f,t[7]=x):(f=t[6],x=t[7]),E.useEffect(f,x);const we=Nt==="linear"?Ge.curveLinear:Nt==="step"?De.curveStep:Nt==="stepAfter"?De.stepAfter:Nt==="stepBefore"?De.stepBefore:De.monotoneX,[b,It]=E.useState(void 0),[B,qt]=E.useState(void 0),[z,de]=E.useState(void 0),lt=st?j+30:j;let ct;t[8]!==et||t[9]!==At||t[10]!==lt||t[11]!==C?(ct={top:C,bottom:et,left:lt,right:At},t[8]=et,t[9]=At,t[10]=lt,t[11]=C,t[12]=ct):ct=t[12];const h=ct,ut=E.useRef(null);let dt;t[13]!==r?(dt=n=>({...n,date:O.parse(`${n.date}`,r,new Date)}),t[13]=r,t[14]=dt):dt=t[14];const d=Be.orderBy(A.map(dt),["date"],["asc"]),xe=d[0].y.map((n,e)=>d.map(m=>({...m,y:m.y[e]})).filter(Ii));let xt;if(t[15]!==r||t[16]!==zt){let n;t[18]!==r?(n=e=>({...e,coordinates:[e.coordinates[0]===null?null:O.parse(`${e.coordinates[0]}`,r,new Date),e.coordinates[1]===null?null:O.parse(`${e.coordinates[1]}`,r,new Date)]}),t[18]=r,t[19]=n):n=t[19],xt=zt.map(n),t[15]=r,t[16]=zt,t[17]=xt}else xt=t[17];const Mt=xt;let mt;if(t[20]!==St||t[21]!==r){let n;t[23]!==r?(n=e=>({...e,coordinates:e.coordinates.map((m,_)=>_%2===0?O.parse(`${m}`,r,new Date):m)}),t[23]=r,t[24]=n):n=t[24],mt=St.map(n),t[20]=St,t[21]=r,t[22]=mt}else mt=t[22];const me=mt,c=tt-h.left-h.right,p=Xt-h.top-h.bottom,fe=le?O.parse(`${le}`,r,new Date):d[0].date,_t=ce?O.parse(`${ce}`,r,new Date):d[d.length-1].date,v=R.checkIfNullOrUndefined(P)?Math.min(...d.map(Ti))?Math.min(...d.map(Si))>0?0:Math.min(...d.map(ki)):0:P,I=Math.max(...d.map(bi))?Math.max(...d.map(Ci)):0,a=ei.time().domain([fe,_t]).range([0,c]);let J;t[25]!==v||t[26]!==P?(J=R.checkIfNullOrUndefined(P)?v:P,t[25]=v,t[26]=P,t[27]=J):J=t[27];let K;t[28]!==I||t[29]!==nt?(K=R.checkIfNullOrUndefined(nt)?I>0?I:0:nt,t[28]=I,t[29]=nt,t[30]=K):K=t[30];const l=ii.linear().domain([J,K]).range([p,0]).nice(),q=Ge.line().x(n=>a(n.date)).y(n=>l(n.y)).curve(we),te=l.ticks(Qt),ee=a.ticks(pe);E.useEffect(()=>{const n=m=>{const _=d[oi.bisectCenter(d.map(Ri),a.invert(si.pointer(m)[0]),0)];It(_||d[d.length-1]),de(m.clientY),qt(m.clientX),Bt?.(_||d[d.length-1])},e=()=>{It(void 0),qt(void 0),de(void 0)};ni.select(ut.current).on("mousemove",n).on("mouseout",e),Bt?.(void 0)},[a,d,Bt]);let ft;t[31]===Symbol.for("react.memo_cache_sentinel")?(ft={width:0},t[31]=ft):ft=t[31];let S;t[32]!==s.duration?(S={duration:s.duration},t[32]=s.duration,t[33]=S):S=t[33];let M;t[34]!==c||t[35]!==S?(M={initial:ft,whileInView:{width:c,transition:S}},t[34]=c,t[35]=S,t[36]=M):M=t[36];const ht=u?"whileInView":"initial";let V;t[37]!==p||t[38]!==M||t[39]!==ht?(V=o.jsxRuntimeExports.jsx(Yt.motion.rect,{x:0,y:0,height:p,variants:M,initial:"initial",animate:ht}),t[37]=p,t[38]=M,t[39]=ht,t[40]=V):V=t[40];let pt;t[41]!==at||t[42]!==V?(pt=o.jsxRuntimeExports.jsx("defs",{children:o.jsxRuntimeExports.jsx("clipPath",{id:at,children:V})}),t[41]=at,t[42]=V,t[43]=pt):pt=t[43];let gt;t[44]!==s||t[45]!==p||t[46]!==c||t[47]!==Mt||t[48]!==u||t[49]!==a?(gt=o.jsxRuntimeExports.jsx(ti.HighlightArea,{areaSettings:Mt,width:c,height:p,scale:a,animate:s,isInView:u}),t[44]=s,t[45]=p,t[46]=c,t[47]=Mt,t[48]=u,t[49]=a,t[50]=gt):gt=t[50];const Vt=y?.yAxis?.gridLines,$t=y?.yAxis?.labels;let yt;t[51]!==Vt||t[52]!==$t?(yt={gridLines:Vt,labels:$t},t[51]=Vt,t[52]=$t,t[53]=yt):yt=t[53];const vt=g?.yAxis?.gridLines,Ht=g?.yAxis?.labels;let Q;t[54]!==vt||t[55]!==Ht?(Q={gridLines:vt,labels:Ht},t[54]=vt,t[55]=Ht,t[56]=Q):Q=t[56];const Ft=l(v<0?0:v),jt=l(v<0?0:v),Gt=0-j,wt=c+h.right,Ot=v<0?0:v;let N;t[57]!==Y||t[58]!==U||t[59]!==G||t[60]!==Ot?(N=Fe.numberFormattingFunction(Ot,"NA",Y,U,G),t[57]=Y,t[58]=U,t[59]=G,t[60]=Ot,t[61]=N):N=t[61];const Z=0-j,he=l(v<0?0:v),Rt=I<0?"1em":-5;let Ct;t[62]!==Z||t[63]!==he||t[64]!==Rt?(Ct={x:Z,y:he,dx:0,dy:Rt},t[62]=Z,t[63]=he,t[64]=Rt,t[65]=Ct):Ct=t[65];const Ut=g?.xAxis?.axis,ie=g?.yAxis?.labels;let T;t[66]!==Ut||t[67]!==ie?(T={axis:Ut,label:ie},t[66]=Ut,t[67]=ie,t[68]=T):T=t[68];const Et=y?.xAxis?.axis,Pt=y?.yAxis?.labels;let $;t[69]!==Et||t[70]!==Pt?($={axis:Et,label:Pt},t[69]=Et,t[70]=Pt,t[71]=$):$=t[71];let D;t[72]!==Ft||t[73]!==jt||t[74]!==Gt||t[75]!==wt||t[76]!==N||t[77]!==Ct||t[78]!==T||t[79]!==$?(D=o.jsxRuntimeExports.jsx(Ke.Axis,{y1:Ft,y2:jt,x1:Gt,x2:wt,label:N,labelPos:Ct,classNames:T,styles:$}),t[72]=Ft,t[73]=jt,t[74]=Gt,t[75]=wt,t[76]=N,t[77]=Ct,t[78]=T,t[79]=$,t[80]=D):D=t[80];const H=0-j-15,F=p/2,bt=y?.yAxis?.title,ne=g?.yAxis?.title;let Wt;t[81]!==H||t[82]!==F||t[83]!==bt||t[84]!==ne||t[85]!==st?(Wt=o.jsxRuntimeExports.jsx(Je.AxisTitle,{x:H,y:F,style:bt,className:ne,text:st,rotate90:!0}),t[81]=H,t[82]=F,t[83]=bt,t[84]=ne,t[85]=st,t[86]=Wt):Wt=t[86];let Oe;t[87]!==r?(Oe=n=>O.format(n,r),t[87]=r,t[88]=Oe):Oe=t[88];const Pe=ee.map(Oe),We=ee.map(n=>a(n)),Ie=y?.xAxis?.gridLines,qe=y?.xAxis?.labels;let Re;t[89]!==Ie||t[90]!==qe?(Re={gridLines:Ie,labels:qe},t[89]=Ie,t[90]=qe,t[91]=Re):Re=t[91];const Me=g?.xAxis?.gridLines;let oe;t[92]!==Me?(oe=o.mo("opacity-0",Me),t[92]=Me,t[93]=oe):oe=t[93];const Ve=g?.xAxis?.labels;let se;t[94]!==Ve?(se=o.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",Ve),t[94]=Ve,t[95]=se):se=t[95];let Ce;t[96]!==oe||t[97]!==se?(Ce={gridLines:oe,labels:se},t[96]=oe,t[97]=se,t[98]=Ce):Ce=t[98];let Ee;t[99]!==X?(Ee=X.filter(ji).map(vi),t[99]=X,t[100]=Ee):Ee=t[100];const $e=xe.map((n,e)=>o.jsxRuntimeExports.jsxs(Yt.motion.g,{exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:ot.length!==0?ot.indexOf(L[e])!==-1?1:ue:1},whileInView:{opacity:ot.length!==0?ot.indexOf(L[e])!==-1?1:ue:1,transition:{duration:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:[o.jsxRuntimeExports.jsx(Yt.motion.path,{style:{fill:"none",strokeWidth:Jt},clipPath:`url(#${at})`,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{...rt.length===0?{pathLength:0}:{},d:q(n.filter(yi))||"",opacity:1,stroke:k[e]},whileInView:{...rt.length===0?{pathLength:1}:{},d:q(n.filter(gi))||"",opacity:1,stroke:k[e],transition:{duration:s.duration}}},strokeDasharray:rt.includes(L[e])?Tt[e%Tt.length]:void 0,initial:"initial",animate:u?"whileInView":"initial"}),n.map((m,_)=>o.jsxRuntimeExports.jsx("g",{children:R.checkIfNullOrUndefined(m.y)?null:o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[Kt?o.jsxRuntimeExports.jsx(Yt.motion.circle,{r:c/d.length<5?0:c/d.length<20?2:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],cx:a(m.date),cy:l(m.y)},whileInView:{opacity:1,fill:k[e],transition:{duration:w?s.duration:.5,delay:w?0:s.duration},cx:a(m.date),cy:l(m.y)}},initial:"initial",animate:u?"whileInView":"initial"}):null,ge?o.jsxRuntimeExports.jsx(Yt.motion.text,{dy:-8,style:{textAnchor:"middle",...y?.graphObjectValues||{}},className:o.mo("graph-value text-xs font-bold",g?.graphObjectValues),exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],x:a(m.date),y:l(m.y)},whileInView:{opacity:1,fill:k[e],x:a(m.date),y:l(m.y),transition:{duration:w?s.duration:.5,delay:w?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:Fe.numberFormattingFunction(m.y,"NA",Y,U,G)}):null]})},_)),ye||ve.includes(L[e])?null:o.jsxRuntimeExports.jsx(Yt.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],x:a(n[n.length-1].date),y:l(n[n.length-1].y)},whileInView:{opacity:1,fill:k[e],x:a(n[n.length-1].date),y:l(n[n.length-1].y),transition:{duration:w?s.duration:.5,delay:w?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:L[e]})]},L[e]));let re;t[101]!==g?.mouseOverLine||t[102]!==p||t[103]!==b||t[104]!==y?.mouseOverLine||t[105]!==a?(re=b?o.jsxRuntimeExports.jsx("line",{y1:0,y2:p,x1:a(b.date),x2:a(b.date),className:o.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",g?.mouseOverLine),style:y?.mouseOverLine}):null,t[101]=g?.mouseOverLine,t[102]=p,t[103]=b,t[104]=y?.mouseOverLine,t[105]=a,t[106]=re):re=t[106];let be;t[107]!==$e||t[108]!==re?(be=o.jsxRuntimeExports.jsxs("g",{children:[$e,re]}),t[107]=$e,t[108]=re,t[109]=be):be=t[109];let Ae;t[110]!==s||t[111]!==c||t[112]!==u||t[113]!==j||t[114]!==h.right||t[115]!==kt||t[116]!==l?(Ae=kt?o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:kt.map((n,e)=>o.jsxRuntimeExports.jsx(Ze.RefLineY,{text:n.text,color:n.color,y:l(n.value),x1:0-j,x2:c+h.right,classNames:n.classNames,styles:n.styles,animate:s,isInView:u},e))}):null,t[110]=s,t[111]=c,t[112]=u,t[113]=j,t[114]=h.right,t[115]=kt,t[116]=l,t[117]=Ae):Ae=t[117];let ae;if(t[118]!==s||t[119]!==Lt||t[120]!==r||t[121]!==c||t[122]!==u||t[123]!==h.right||t[124]!==W||t[125]!==a||t[126]!==l){let n;t[128]!==s||t[129]!==r||t[130]!==c||t[131]!==u||t[132]!==h.right||t[133]!==W||t[134]!==a||t[135]!==l?(n=(e,m)=>{const _=He.getLineEndPoint({x:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},R.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Ye=e.showConnector?{y1:_.y,x1:_.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date)):0,circleRadius:R.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,Xe={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:W?0:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:W?e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0):c+h.right-(e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return o.jsxRuntimeExports.jsx(He.Annotation,{color:e.color,connectorsSettings:Ye,labelSettings:Xe,text:e.text,classNames:e.classNames,styles:e.styles,animate:s,isInView:u},m)},t[128]=s,t[129]=r,t[130]=c,t[131]=u,t[132]=h.right,t[133]=W,t[134]=a,t[135]=l,t[136]=n):n=t[136],ae=Lt.map(n),t[118]=s,t[119]=Lt,t[120]=r,t[121]=c,t[122]=u,t[123]=h.right,t[124]=W,t[125]=a,t[126]=l,t[127]=ae}else ae=t[127];let ke;t[137]!==ae?(ke=o.jsxRuntimeExports.jsx("g",{children:ae}),t[137]=ae,t[138]=ke):ke=t[138];let Le;t[139]!==X?(Le=X.filter(pi).map(hi),t[139]=X,t[140]=Le):Le=t[140];let Se;t[141]===Symbol.for("react.memo_cache_sentinel")?(Se={fill:"none",pointerEvents:"all"},t[141]=Se):Se=t[141];let Ne;t[142]!==ut||t[143]!==p||t[144]!==c?(Ne=o.jsxRuntimeExports.jsx("rect",{ref:ut,style:Se,width:c,height:p}),t[142]=ut,t[143]=p,t[144]=c,t[145]=Ne):Ne=t[145];let Te;return t[146]!==g?.tooltip||t[147]!==B||t[148]!==z||t[149]!==b||t[150]!==y?.tooltip||t[151]!==it?(Te=b&&it&&B&&z?o.jsxRuntimeExports.jsx(ze.Tooltip,{data:b,body:it,xPos:B,yPos:z,backgroundStyle:y?.tooltip,className:g?.tooltip}):null,t[146]=g?.tooltip,t[147]=B,t[148]=z,t[149]=b,t[150]=y?.tooltip,t[151]=it,t[152]=Te):Te=t[152],o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(Yt.motion.svg,{width:`${tt}px`,height:`${Xt}px`,viewBox:`0 0 ${tt} ${Xt}`,direction:"ltr",ref:Zt,children:o.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[pt,gt,o.jsxRuntimeExports.jsx(He.CustomArea,{areaSettings:me,scaleX:a,scaleY:l,animate:s,isInView:u}),o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(_e.YTicksAndGridLines,{values:te.filter(Oi),y:te.filter(wi).map(n=>l(n)),x1:0-j,x2:c+h.right,styles:yt,classNames:Q,suffix:G,prefix:U,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:Y}),D,Wt]}),o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx(Qe.XTicksAndGridLines,{values:Pe,x:We,y1:0,y2:p,styles:Re,classNames:Ce,suffix:G,prefix:U,labelType:"primary",showGridLines:!0,precision:Y})}),Ee,be,Ae,ke,Le,Ne]})}),Te]})}function hi(i){return i.layer}function pi(i){return i.position==="after"}function gi(i){return!R.checkIfNullOrUndefined(i.y)}function yi(i){return!R.checkIfNullOrUndefined(i.y)}function vi(i){return i.layer}function ji(i){return i.position==="before"}function wi(i){return i!==0}function Oi(i){return i!==0}function Ri(i){return i.date}function Ci(i){return Math.max(...i.y.filter(Ei))}function Ei(i){return!R.checkIfNullOrUndefined(i)}function bi(i){return Math.max(...i.y.filter(Ai))}function Ai(i){return!R.checkIfNullOrUndefined(i)}function ki(i){return Math.min(...i.y.filter(Li))}function Li(i){return!R.checkIfNullOrUndefined(i)}function Si(i){return Math.min(...i.y.filter(Ni))}function Ni(i){return!R.checkIfNullOrUndefined(i)}function Ti(i){return Math.min(...i.y.filter(Di))}function Di(i){return!R.checkIfNullOrUndefined(i)}function Ii(i){return!R.checkIfNullOrUndefined(i.y)}function qi(i){const t=o.compilerRuntimeExports.c(99),{data:A,graphTitle:tt,lineColors:Xt,suffix:k,sources:r,prefix:pe,graphDescription:L,height:At,width:C,footNote:et,noOfXTicks:G,dateFormat:U,labels:j,padding:it,showValues:Bt,backgroundColor:ge,leftMargin:ye,rightMargin:kt,topMargin:zt,bottomMargin:P,tooltip:nt,relativeHeight:ot,onSeriesMouseOver:s,showColorLegendAtTop:W,refValues:Jt,highlightAreaSettings:Kt,graphID:Lt,minValue:St,maxValue:st,highlightedLines:Qt,graphDownload:le,dataDownload:ce,animate:Nt,language:y,colorLegendTitle:g,minHeight:ue,strokeWidth:Y,showDots:X,annotations:rt,customHighlightAreaSettings:Tt,theme:ve,ariaLabel:at,yAxisTitle:Zt,noOfYTicks:Dt,minDate:u,maxDate:w,curveType:je,styles:f,classNames:x,dimmedOpacity:we,precision:b,customLayers:It,dashedLines:B,dashSettings:qt,labelsToBeHidden:z,showColorScale:de}=i,lt=Xt===void 0?ui.Colors.light.categoricalColors.colors:Xt,ct=k===void 0?"":k,h=pe===void 0?"":pe,ut=G===void 0?10:G,dt=U===void 0?"yyyy":U,d=Bt===void 0?!1:Bt,xe=ge===void 0?!1:ge,xt=ye===void 0?30:ye,Mt=kt===void 0?50:kt,mt=zt===void 0?20:zt,me=P===void 0?25:P,c=W===void 0?!1:W;let p;t[0]!==Jt?(p=Jt===void 0?[]:Jt,t[0]=Jt,t[1]=p):p=t[1];const fe=p;let _t;t[2]!==Kt?(_t=Kt===void 0?[]:Kt,t[2]=Kt,t[3]=_t):_t=t[3];const v=_t;let I;t[4]!==Qt?(I=Qt===void 0?[]:Qt,t[4]=Qt,t[5]=I):I=t[5];const a=I,J=le===void 0?!1:le,K=ce===void 0?!1:ce,l=Nt===void 0?!1:Nt,q=y===void 0?"en":y,te=ue===void 0?0:ue,ee=Y===void 0?2:Y,ft=X===void 0?!0:X;let S;t[6]!==rt?(S=rt===void 0?[]:rt,t[6]=rt,t[7]=S):S=t[7];const M=S;let ht;t[8]!==Tt?(ht=Tt===void 0?[]:Tt,t[8]=Tt,t[9]=ht):ht=t[9];const V=ht,pt=ve===void 0?"light":ve,gt=Dt===void 0?5:Dt,Vt=je===void 0?"curve":je,$t=we===void 0?.3:we,yt=b===void 0?2:b;let vt;t[10]!==It?(vt=It===void 0?[]:It,t[10]=It,t[11]=vt):vt=t[11];const Ht=vt;let Q;t[12]!==B?(Q=B===void 0?[]:B,t[12]=B,t[13]=Q):Q=t[13];const Ft=Q;let jt;t[14]!==qt?(jt=qt===void 0?["5 5"]:qt,t[14]=qt,t[15]=jt):jt=t[15];const Gt=jt;let wt;t[16]!==z?(wt=z===void 0?[]:z,t[16]=z,t[17]=wt):wt=t[17];const Ot=wt,N=de===void 0?!0:de,[Z,he]=E.useState(0),[Rt,Ct]=E.useState(0),Ut=E.useRef(null),ie=E.useRef(null);let T,Et;t[18]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const ne=new ResizeObserver(Wt=>{he(Wt[0].target.clientWidth||620),Ct(Wt[0].target.clientHeight||480)});return Ut.current&&ne.observe(Ut.current),()=>ne.disconnect()},Et=[],t[18]=T,t[19]=Et):(T=t[18],Et=t[19]),E.useEffect(T,Et);const Pt=x?.graphContainer,$=f?.graphContainer;let D;t[20]!==x?.description||t[21]!==x?.title||t[22]!==A||t[23]!==K||t[24]!==L||t[25]!==J||t[26]!==tt||t[27]!==f?.description||t[28]!==f?.title||t[29]!==C?(D=tt||L||J||K?o.jsxRuntimeExports.jsx(li.GraphHeader,{styles:{title:f?.title,description:f?.description},classNames:{title:x?.title,description:x?.description},graphTitle:tt,graphDescription:L,width:C,graphDownload:J?ie:void 0,dataDownload:K?A.map(Fi).filter(Hi).length>0?A.map($i).filter(Vi):A.filter(Mi):null}):null,t[20]=x?.description,t[21]=x?.title,t[22]=A,t[23]=K,t[24]=L,t[25]=J,t[26]=tt,t[27]=f?.description,t[28]=f?.title,t[29]=C,t[30]=D):D=t[30];let H;t[31]!==l||t[32]!==M||t[33]!==me||t[34]!==x||t[35]!==g||t[36]!==Vt||t[37]!==V||t[38]!==Ht||t[39]!==Gt||t[40]!==Ft||t[41]!==A||t[42]!==dt||t[43]!==$t||t[44]!==v||t[45]!==a||t[46]!==j||t[47]!==Ot||t[48]!==q||t[49]!==xt||t[50]!==lt||t[51]!==w||t[52]!==st||t[53]!==u||t[54]!==St||t[55]!==ut||t[56]!==gt||t[57]!==s||t[58]!==yt||t[59]!==h||t[60]!==fe||t[61]!==Mt||t[62]!==c||t[63]!==N||t[64]!==ft||t[65]!==d||t[66]!==ee||t[67]!==f||t[68]!==ct||t[69]!==Rt||t[70]!==Z||t[71]!==nt||t[72]!==mt||t[73]!==Zt?(H=A.length===0?o.jsxRuntimeExports.jsx(di.EmptyState,{}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[c&&N?o.jsxRuntimeExports.jsx(ci.ColorLegend,{colorDomain:j,colorLegendTitle:g,labelsToBeHidden:Ot,colors:lt,showNAColor:!1,className:x?.colorLegend}):null,o.jsxRuntimeExports.jsx(Ue.GraphArea,{ref:Ut,children:Z&&Rt?o.jsxRuntimeExports.jsx(fi,{data:A,lineColors:lt,width:Z,height:Rt,dateFormat:dt,noOfXTicks:ut??mi.getNoOfTicks(Z),leftMargin:xt,rightMargin:Mt,topMargin:mt,bottomMargin:me,labels:j,tooltip:nt,onSeriesMouseOver:s,showColorLegendAtTop:N?c:!0,showValues:d,suffix:ct,prefix:h,highlightAreaSettings:v,refValues:fe,minValue:St,maxValue:st,highlightedLines:a,animate:l===!0?{duration:.5,once:!0,amount:.5}:l||{duration:0,once:!0,amount:0},rtl:q==="he"||q==="ar",strokeWidth:ee,showDots:ft,annotations:M,customHighlightAreaSettings:V,yAxisTitle:Zt,noOfYTicks:gt,minDate:u,maxDate:w,curveType:Vt,styles:f,classNames:x,dimmedOpacity:$t,precision:yt,customLayers:Ht,labelsToBeHidden:Ot,dashedLines:Ft,dashSettings:Gt,revealClipId:xi.generateRandomString(8)}):null})]}),t[31]=l,t[32]=M,t[33]=me,t[34]=x,t[35]=g,t[36]=Vt,t[37]=V,t[38]=Ht,t[39]=Gt,t[40]=Ft,t[41]=A,t[42]=dt,t[43]=$t,t[44]=v,t[45]=a,t[46]=j,t[47]=Ot,t[48]=q,t[49]=xt,t[50]=lt,t[51]=w,t[52]=st,t[53]=u,t[54]=St,t[55]=ut,t[56]=gt,t[57]=s,t[58]=yt,t[59]=h,t[60]=fe,t[61]=Mt,t[62]=c,t[63]=N,t[64]=ft,t[65]=d,t[66]=ee,t[67]=f,t[68]=ct,t[69]=Rt,t[70]=Z,t[71]=nt,t[72]=mt,t[73]=Zt,t[74]=H):H=t[74];let F;t[75]!==x?.footnote||t[76]!==x?.source||t[77]!==et||t[78]!==r||t[79]!==f?.footnote||t[80]!==f?.source||t[81]!==C?(F=r||et?o.jsxRuntimeExports.jsx(ai.GraphFooter,{styles:{footnote:f?.footnote,source:f?.source},classNames:{footnote:x?.footnote,source:x?.source},sources:r,footNote:et,width:C}):null,t[75]=x?.footnote,t[76]=x?.source,t[77]=et,t[78]=r,t[79]=f?.footnote,t[80]=f?.source,t[81]=C,t[82]=F):F=t[82];let bt;return t[83]!==at||t[84]!==xe||t[85]!==Lt||t[86]!==At||t[87]!==q||t[88]!==te||t[89]!==it||t[90]!==ot||t[91]!==Pt||t[92]!==$||t[93]!==D||t[94]!==H||t[95]!==F||t[96]!==pt||t[97]!==C?(bt=o.jsxRuntimeExports.jsxs(Ue.GraphContainer,{className:Pt,style:$,id:Lt,ref:ie,"aria-label":at,backgroundColor:xe,theme:pt,language:q,minHeight:te,width:C,height:At,relativeHeight:ot,padding:it,children:[D,H,F]}),t[83]=at,t[84]=xe,t[85]=Lt,t[86]=At,t[87]=q,t[88]=te,t[89]=it,t[90]=ot,t[91]=Pt,t[92]=$,t[93]=D,t[94]=H,t[95]=F,t[96]=pt,t[97]=C,t[98]=bt):bt=t[98],bt}function Mi(i){return i!==void 0}function Vi(i){return i!==void 0}function $i(i){return i.data}function Hi(i){return i!==void 0}function Fi(i){return i.data}exports.MultiLineChart=qi;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-CTPQjnHt.cjs"),E=require("react"),O=require("./parse-hMnG_lRV.cjs"),Be=require("./index-Cno4Q0YE.cjs"),Fe=require("./numberFormattingFunction-02t-wJta.cjs"),ze=require("./Tooltip-uUdw6wJL.cjs"),R=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),He=require("./customArea-CMF5g-C3.cjs"),Je=require("./AxisTitle-sS5bLLR7.cjs"),Ke=require("./Axis-DxRV2yMi.cjs"),Qe=require("./XTicksAndGridLines-B6CELS7q.cjs"),Ze=require("./ReferenceLine-BH0qdf4R.cjs"),_e=require("./YTicksAndGridLines-4pxTRlRK.cjs"),ti=require("./index-B_sAFsEV.cjs"),ei=require("./time-CZd5YLSP.cjs"),ii=require("./linear-BwPAspcq.cjs"),Ge=require("./line-DaEMhXmx.cjs"),De=require("./step-BZ3C8QFW.cjs"),ni=require("./select-Bnfk0lJx.cjs"),oi=require("./init-DU0ybBc_.cjs"),si=require("./pointer-Dkq5NV1q.cjs"),ri=require("./use-in-view-QcfiW0w3.cjs"),Yt=require("./proxy-BxvUI_9l.cjs"),ai=require("./GraphFooter.cjs"),li=require("./GraphHeader.cjs"),ci=require("./ColorLegend.cjs"),ui=require("./Colors.cjs"),di=require("./EmptyState-sAEZ_5rU.cjs"),xi=require("./generateRandomString-B5zBiJzS.cjs"),Ue=require("./GraphContainer-d8A46BK2.cjs"),mi=require("./getNoOfTicks-C_1CFXv_.cjs");function fi(i){const t=o.compilerRuntimeExports.c(153),{data:A,width:tt,height:Xt,lineColors:k,dateFormat:r,noOfXTicks:pe,labels:L,rightMargin:At,topMargin:C,bottomMargin:et,suffix:G,prefix:U,leftMargin:j,tooltip:it,onSeriesMouseOver:Bt,showValues:ge,showColorLegendAtTop:ye,refValues:kt,highlightAreaSettings:zt,minValue:P,maxValue:nt,highlightedLines:ot,animate:s,rtl:W,strokeWidth:Jt,showDots:Kt,annotations:Lt,customHighlightAreaSettings:St,yAxisTitle:st,noOfYTicks:Qt,minDate:le,maxDate:ce,curveType:Nt,styles:y,classNames:g,dimmedOpacity:ue,precision:Y,customLayers:X,dashedLines:rt,dashSettings:Tt,labelsToBeHidden:ve,revealClipId:at}=i,Zt=E.useRef(null);let Dt;t[0]!==s.amount||t[1]!==s.once?(Dt={once:s.once,amount:s.amount},t[0]=s.amount,t[1]=s.once,t[2]=Dt):Dt=t[2];const u=ri.useInView(Zt,Dt),[w,je]=E.useState(!1);let f,x;t[3]!==s.duration||t[4]!==w||t[5]!==u?(f=()=>{if(u&&!w){const n=setTimeout(()=>{je(!0)},(s.duration+.5)*1e3);return()=>clearTimeout(n)}},x=[u,w,s.duration],t[3]=s.duration,t[4]=w,t[5]=u,t[6]=f,t[7]=x):(f=t[6],x=t[7]),E.useEffect(f,x);const we=Nt==="linear"?Ge.curveLinear:Nt==="step"?De.curveStep:Nt==="stepAfter"?De.stepAfter:Nt==="stepBefore"?De.stepBefore:De.monotoneX,[b,It]=E.useState(void 0),[B,qt]=E.useState(void 0),[z,de]=E.useState(void 0),lt=st?j+30:j;let ct;t[8]!==et||t[9]!==At||t[10]!==lt||t[11]!==C?(ct={top:C,bottom:et,left:lt,right:At},t[8]=et,t[9]=At,t[10]=lt,t[11]=C,t[12]=ct):ct=t[12];const h=ct,ut=E.useRef(null);let dt;t[13]!==r?(dt=n=>({...n,date:O.parse(`${n.date}`,r,new Date)}),t[13]=r,t[14]=dt):dt=t[14];const d=Be.orderBy(A.map(dt),["date"],["asc"]),xe=d[0].y.map((n,e)=>d.map(m=>({...m,y:m.y[e]})).filter(Ii));let xt;if(t[15]!==r||t[16]!==zt){let n;t[18]!==r?(n=e=>({...e,coordinates:[e.coordinates[0]===null?null:O.parse(`${e.coordinates[0]}`,r,new Date),e.coordinates[1]===null?null:O.parse(`${e.coordinates[1]}`,r,new Date)]}),t[18]=r,t[19]=n):n=t[19],xt=zt.map(n),t[15]=r,t[16]=zt,t[17]=xt}else xt=t[17];const Mt=xt;let mt;if(t[20]!==St||t[21]!==r){let n;t[23]!==r?(n=e=>({...e,coordinates:e.coordinates.map((m,_)=>_%2===0?O.parse(`${m}`,r,new Date):m)}),t[23]=r,t[24]=n):n=t[24],mt=St.map(n),t[20]=St,t[21]=r,t[22]=mt}else mt=t[22];const me=mt,c=tt-h.left-h.right,p=Xt-h.top-h.bottom,fe=le?O.parse(`${le}`,r,new Date):d[0].date,_t=ce?O.parse(`${ce}`,r,new Date):d[d.length-1].date,v=R.checkIfNullOrUndefined(P)?Math.min(...d.map(Ti))?Math.min(...d.map(Si))>0?0:Math.min(...d.map(ki)):0:P,I=Math.max(...d.map(bi))?Math.max(...d.map(Ci)):0,a=ei.time().domain([fe,_t]).range([0,c]);let J;t[25]!==v||t[26]!==P?(J=R.checkIfNullOrUndefined(P)?v:P,t[25]=v,t[26]=P,t[27]=J):J=t[27];let K;t[28]!==I||t[29]!==nt?(K=R.checkIfNullOrUndefined(nt)?I>0?I:0:nt,t[28]=I,t[29]=nt,t[30]=K):K=t[30];const l=ii.linear().domain([J,K]).range([p,0]).nice(),q=Ge.line().x(n=>a(n.date)).y(n=>l(n.y)).curve(we),te=l.ticks(Qt),ee=a.ticks(pe);E.useEffect(()=>{const n=m=>{const _=d[oi.bisectCenter(d.map(Ri),a.invert(si.pointer(m)[0]),0)];It(_||d[d.length-1]),de(m.clientY),qt(m.clientX),Bt?.(_||d[d.length-1])},e=()=>{It(void 0),qt(void 0),de(void 0)};ni.select(ut.current).on("mousemove",n).on("mouseout",e),Bt?.(void 0)},[a,d,Bt]);let ft;t[31]===Symbol.for("react.memo_cache_sentinel")?(ft={width:0},t[31]=ft):ft=t[31];let S;t[32]!==s.duration?(S={duration:s.duration},t[32]=s.duration,t[33]=S):S=t[33];let M;t[34]!==c||t[35]!==S?(M={initial:ft,whileInView:{width:c,transition:S}},t[34]=c,t[35]=S,t[36]=M):M=t[36];const ht=u?"whileInView":"initial";let V;t[37]!==p||t[38]!==M||t[39]!==ht?(V=o.jsxRuntimeExports.jsx(Yt.motion.rect,{x:0,y:0,height:p,variants:M,initial:"initial",animate:ht}),t[37]=p,t[38]=M,t[39]=ht,t[40]=V):V=t[40];let pt;t[41]!==at||t[42]!==V?(pt=o.jsxRuntimeExports.jsx("defs",{children:o.jsxRuntimeExports.jsx("clipPath",{id:at,children:V})}),t[41]=at,t[42]=V,t[43]=pt):pt=t[43];let gt;t[44]!==s||t[45]!==p||t[46]!==c||t[47]!==Mt||t[48]!==u||t[49]!==a?(gt=o.jsxRuntimeExports.jsx(ti.HighlightArea,{areaSettings:Mt,width:c,height:p,scale:a,animate:s,isInView:u}),t[44]=s,t[45]=p,t[46]=c,t[47]=Mt,t[48]=u,t[49]=a,t[50]=gt):gt=t[50];const Vt=y?.yAxis?.gridLines,$t=y?.yAxis?.labels;let yt;t[51]!==Vt||t[52]!==$t?(yt={gridLines:Vt,labels:$t},t[51]=Vt,t[52]=$t,t[53]=yt):yt=t[53];const vt=g?.yAxis?.gridLines,Ht=g?.yAxis?.labels;let Q;t[54]!==vt||t[55]!==Ht?(Q={gridLines:vt,labels:Ht},t[54]=vt,t[55]=Ht,t[56]=Q):Q=t[56];const Ft=l(v<0?0:v),jt=l(v<0?0:v),Gt=0-j,wt=c+h.right,Ot=v<0?0:v;let N;t[57]!==Y||t[58]!==U||t[59]!==G||t[60]!==Ot?(N=Fe.numberFormattingFunction(Ot,"NA",Y,U,G),t[57]=Y,t[58]=U,t[59]=G,t[60]=Ot,t[61]=N):N=t[61];const Z=0-j,he=l(v<0?0:v),Rt=I<0?"1em":-5;let Ct;t[62]!==Z||t[63]!==he||t[64]!==Rt?(Ct={x:Z,y:he,dx:0,dy:Rt},t[62]=Z,t[63]=he,t[64]=Rt,t[65]=Ct):Ct=t[65];const Ut=g?.xAxis?.axis,ie=g?.yAxis?.labels;let T;t[66]!==Ut||t[67]!==ie?(T={axis:Ut,label:ie},t[66]=Ut,t[67]=ie,t[68]=T):T=t[68];const Et=y?.xAxis?.axis,Pt=y?.yAxis?.labels;let $;t[69]!==Et||t[70]!==Pt?($={axis:Et,label:Pt},t[69]=Et,t[70]=Pt,t[71]=$):$=t[71];let D;t[72]!==Ft||t[73]!==jt||t[74]!==Gt||t[75]!==wt||t[76]!==N||t[77]!==Ct||t[78]!==T||t[79]!==$?(D=o.jsxRuntimeExports.jsx(Ke.Axis,{y1:Ft,y2:jt,x1:Gt,x2:wt,label:N,labelPos:Ct,classNames:T,styles:$}),t[72]=Ft,t[73]=jt,t[74]=Gt,t[75]=wt,t[76]=N,t[77]=Ct,t[78]=T,t[79]=$,t[80]=D):D=t[80];const H=0-j-15,F=p/2,bt=y?.yAxis?.title,ne=g?.yAxis?.title;let Wt;t[81]!==H||t[82]!==F||t[83]!==bt||t[84]!==ne||t[85]!==st?(Wt=o.jsxRuntimeExports.jsx(Je.AxisTitle,{x:H,y:F,style:bt,className:ne,text:st,rotate90:!0}),t[81]=H,t[82]=F,t[83]=bt,t[84]=ne,t[85]=st,t[86]=Wt):Wt=t[86];let Oe;t[87]!==r?(Oe=n=>O.format(n,r),t[87]=r,t[88]=Oe):Oe=t[88];const Pe=ee.map(Oe),We=ee.map(n=>a(n)),Ie=y?.xAxis?.gridLines,qe=y?.xAxis?.labels;let Re;t[89]!==Ie||t[90]!==qe?(Re={gridLines:Ie,labels:qe},t[89]=Ie,t[90]=qe,t[91]=Re):Re=t[91];const Me=g?.xAxis?.gridLines;let oe;t[92]!==Me?(oe=o.mo("opacity-0",Me),t[92]=Me,t[93]=oe):oe=t[93];const Ve=g?.xAxis?.labels;let se;t[94]!==Ve?(se=o.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",Ve),t[94]=Ve,t[95]=se):se=t[95];let Ce;t[96]!==oe||t[97]!==se?(Ce={gridLines:oe,labels:se},t[96]=oe,t[97]=se,t[98]=Ce):Ce=t[98];let Ee;t[99]!==X?(Ee=X.filter(ji).map(vi),t[99]=X,t[100]=Ee):Ee=t[100];const $e=xe.map((n,e)=>o.jsxRuntimeExports.jsxs(Yt.motion.g,{exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:ot.length!==0?ot.indexOf(L[e])!==-1?1:ue:1},whileInView:{opacity:ot.length!==0?ot.indexOf(L[e])!==-1?1:ue:1,transition:{duration:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:[o.jsxRuntimeExports.jsx(Yt.motion.path,{style:{fill:"none",strokeWidth:Jt},clipPath:`url(#${at})`,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{...rt.length===0?{pathLength:0}:{},d:q(n.filter(yi))||"",opacity:1,stroke:k[e]},whileInView:{...rt.length===0?{pathLength:1}:{},d:q(n.filter(gi))||"",opacity:1,stroke:k[e],transition:{duration:s.duration}}},strokeDasharray:rt.includes(L[e])?Tt[e%Tt.length]:void 0,initial:"initial",animate:u?"whileInView":"initial"}),n.map((m,_)=>o.jsxRuntimeExports.jsx("g",{children:R.checkIfNullOrUndefined(m.y)?null:o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[Kt?o.jsxRuntimeExports.jsx(Yt.motion.circle,{r:c/d.length<5?0:c/d.length<20?2:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],cx:a(m.date),cy:l(m.y)},whileInView:{opacity:1,fill:k[e],transition:{duration:w?s.duration:.5,delay:w?0:s.duration},cx:a(m.date),cy:l(m.y)}},initial:"initial",animate:u?"whileInView":"initial"}):null,ge?o.jsxRuntimeExports.jsx(Yt.motion.text,{dy:-8,style:{textAnchor:"middle",...y?.graphObjectValues||{}},className:o.mo("graph-value text-xs font-bold",g?.graphObjectValues),exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],x:a(m.date),y:l(m.y)},whileInView:{opacity:1,fill:k[e],x:a(m.date),y:l(m.y),transition:{duration:w?s.duration:.5,delay:w?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:Fe.numberFormattingFunction(m.y,"NA",Y,U,G)}):null]})},_)),ye||ve.includes(L[e])?null:o.jsxRuntimeExports.jsx(Yt.motion.text,{className:"text-xs",dx:5,dy:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],x:a(n[n.length-1].date),y:l(n[n.length-1].y)},whileInView:{opacity:1,fill:k[e],x:a(n[n.length-1].date),y:l(n[n.length-1].y),transition:{duration:w?s.duration:.5,delay:w?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:L[e]})]},L[e]));let re;t[101]!==g?.mouseOverLine||t[102]!==p||t[103]!==b||t[104]!==y?.mouseOverLine||t[105]!==a?(re=b?o.jsxRuntimeExports.jsx("line",{y1:0,y2:p,x1:a(b.date),x2:a(b.date),className:o.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",g?.mouseOverLine),style:y?.mouseOverLine}):null,t[101]=g?.mouseOverLine,t[102]=p,t[103]=b,t[104]=y?.mouseOverLine,t[105]=a,t[106]=re):re=t[106];let be;t[107]!==$e||t[108]!==re?(be=o.jsxRuntimeExports.jsxs("g",{children:[$e,re]}),t[107]=$e,t[108]=re,t[109]=be):be=t[109];let Ae;t[110]!==s||t[111]!==c||t[112]!==u||t[113]!==j||t[114]!==h.right||t[115]!==kt||t[116]!==l?(Ae=kt?o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:kt.map((n,e)=>o.jsxRuntimeExports.jsx(Ze.RefLineY,{text:n.text,color:n.color,y:l(n.value),x1:0-j,x2:c+h.right,classNames:n.classNames,styles:n.styles,animate:s,isInView:u},e))}):null,t[110]=s,t[111]=c,t[112]=u,t[113]=j,t[114]=h.right,t[115]=kt,t[116]=l,t[117]=Ae):Ae=t[117];let ae;if(t[118]!==s||t[119]!==Lt||t[120]!==r||t[121]!==c||t[122]!==u||t[123]!==h.right||t[124]!==W||t[125]!==a||t[126]!==l){let n;t[128]!==s||t[129]!==r||t[130]!==c||t[131]!==u||t[132]!==h.right||t[133]!==W||t[134]!==a||t[135]!==l?(n=(e,m)=>{const _=He.getLineEndPoint({x:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},R.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Ye=e.showConnector?{y1:_.y,x1:_.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date)):0,circleRadius:R.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,Xe={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:W?0:e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:W?e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0):c+h.right-(e.xCoordinate?a(O.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return o.jsxRuntimeExports.jsx(He.Annotation,{color:e.color,connectorsSettings:Ye,labelSettings:Xe,text:e.text,classNames:e.classNames,styles:e.styles,animate:s,isInView:u},m)},t[128]=s,t[129]=r,t[130]=c,t[131]=u,t[132]=h.right,t[133]=W,t[134]=a,t[135]=l,t[136]=n):n=t[136],ae=Lt.map(n),t[118]=s,t[119]=Lt,t[120]=r,t[121]=c,t[122]=u,t[123]=h.right,t[124]=W,t[125]=a,t[126]=l,t[127]=ae}else ae=t[127];let ke;t[137]!==ae?(ke=o.jsxRuntimeExports.jsx("g",{children:ae}),t[137]=ae,t[138]=ke):ke=t[138];let Le;t[139]!==X?(Le=X.filter(pi).map(hi),t[139]=X,t[140]=Le):Le=t[140];let Se;t[141]===Symbol.for("react.memo_cache_sentinel")?(Se={fill:"none",pointerEvents:"all"},t[141]=Se):Se=t[141];let Ne;t[142]!==ut||t[143]!==p||t[144]!==c?(Ne=o.jsxRuntimeExports.jsx("rect",{ref:ut,style:Se,width:c,height:p}),t[142]=ut,t[143]=p,t[144]=c,t[145]=Ne):Ne=t[145];let Te;return t[146]!==g?.tooltip||t[147]!==B||t[148]!==z||t[149]!==b||t[150]!==y?.tooltip||t[151]!==it?(Te=b&&it&&B&&z?o.jsxRuntimeExports.jsx(ze.Tooltip,{data:b,body:it,xPos:B,yPos:z,backgroundStyle:y?.tooltip,className:g?.tooltip}):null,t[146]=g?.tooltip,t[147]=B,t[148]=z,t[149]=b,t[150]=y?.tooltip,t[151]=it,t[152]=Te):Te=t[152],o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(Yt.motion.svg,{width:`${tt}px`,height:`${Xt}px`,viewBox:`0 0 ${tt} ${Xt}`,direction:"ltr",ref:Zt,children:o.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[pt,gt,o.jsxRuntimeExports.jsx(He.CustomArea,{areaSettings:me,scaleX:a,scaleY:l,animate:s,isInView:u}),o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(_e.YTicksAndGridLines,{values:te.filter(Oi),y:te.filter(wi).map(n=>l(n)),x1:0-j,x2:c+h.right,styles:yt,classNames:Q,suffix:G,prefix:U,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:Y}),D,Wt]}),o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx(Qe.XTicksAndGridLines,{values:Pe,x:We,y1:0,y2:p,styles:Re,classNames:Ce,suffix:G,prefix:U,labelType:"primary",showGridLines:!0,precision:Y})}),Ee,be,Ae,ke,Le,Ne]})}),Te]})}function hi(i){return i.layer}function pi(i){return i.position==="after"}function gi(i){return!R.checkIfNullOrUndefined(i.y)}function yi(i){return!R.checkIfNullOrUndefined(i.y)}function vi(i){return i.layer}function ji(i){return i.position==="before"}function wi(i){return i!==0}function Oi(i){return i!==0}function Ri(i){return i.date}function Ci(i){return Math.max(...i.y.filter(Ei))}function Ei(i){return!R.checkIfNullOrUndefined(i)}function bi(i){return Math.max(...i.y.filter(Ai))}function Ai(i){return!R.checkIfNullOrUndefined(i)}function ki(i){return Math.min(...i.y.filter(Li))}function Li(i){return!R.checkIfNullOrUndefined(i)}function Si(i){return Math.min(...i.y.filter(Ni))}function Ni(i){return!R.checkIfNullOrUndefined(i)}function Ti(i){return Math.min(...i.y.filter(Di))}function Di(i){return!R.checkIfNullOrUndefined(i)}function Ii(i){return!R.checkIfNullOrUndefined(i.y)}function qi(i){const t=o.compilerRuntimeExports.c(99),{data:A,graphTitle:tt,lineColors:Xt,suffix:k,sources:r,prefix:pe,graphDescription:L,height:At,width:C,footNote:et,noOfXTicks:G,dateFormat:U,labels:j,padding:it,showValues:Bt,backgroundColor:ge,leftMargin:ye,rightMargin:kt,topMargin:zt,bottomMargin:P,tooltip:nt,relativeHeight:ot,onSeriesMouseOver:s,showColorLegendAtTop:W,refValues:Jt,highlightAreaSettings:Kt,graphID:Lt,minValue:St,maxValue:st,highlightedLines:Qt,graphDownload:le,dataDownload:ce,animate:Nt,language:y,colorLegendTitle:g,minHeight:ue,strokeWidth:Y,showDots:X,annotations:rt,customHighlightAreaSettings:Tt,theme:ve,ariaLabel:at,yAxisTitle:Zt,noOfYTicks:Dt,minDate:u,maxDate:w,curveType:je,styles:f,classNames:x,dimmedOpacity:we,precision:b,customLayers:It,dashedLines:B,dashSettings:qt,labelsToBeHidden:z,showColorScale:de}=i,lt=Xt===void 0?ui.Colors.light.categoricalColors.colors:Xt,ct=k===void 0?"":k,h=pe===void 0?"":pe,ut=G===void 0?10:G,dt=U===void 0?"yyyy":U,d=Bt===void 0?!1:Bt,xe=ge===void 0?!1:ge,xt=ye===void 0?30:ye,Mt=kt===void 0?50:kt,mt=zt===void 0?20:zt,me=P===void 0?25:P,c=W===void 0?!1:W;let p;t[0]!==Jt?(p=Jt===void 0?[]:Jt,t[0]=Jt,t[1]=p):p=t[1];const fe=p;let _t;t[2]!==Kt?(_t=Kt===void 0?[]:Kt,t[2]=Kt,t[3]=_t):_t=t[3];const v=_t;let I;t[4]!==Qt?(I=Qt===void 0?[]:Qt,t[4]=Qt,t[5]=I):I=t[5];const a=I,J=le===void 0?!1:le,K=ce===void 0?!1:ce,l=Nt===void 0?!1:Nt,q=y===void 0?"en":y,te=ue===void 0?0:ue,ee=Y===void 0?2:Y,ft=X===void 0?!0:X;let S;t[6]!==rt?(S=rt===void 0?[]:rt,t[6]=rt,t[7]=S):S=t[7];const M=S;let ht;t[8]!==Tt?(ht=Tt===void 0?[]:Tt,t[8]=Tt,t[9]=ht):ht=t[9];const V=ht,pt=ve===void 0?"light":ve,gt=Dt===void 0?5:Dt,Vt=je===void 0?"curve":je,$t=we===void 0?.3:we,yt=b===void 0?2:b;let vt;t[10]!==It?(vt=It===void 0?[]:It,t[10]=It,t[11]=vt):vt=t[11];const Ht=vt;let Q;t[12]!==B?(Q=B===void 0?[]:B,t[12]=B,t[13]=Q):Q=t[13];const Ft=Q;let jt;t[14]!==qt?(jt=qt===void 0?["5 5"]:qt,t[14]=qt,t[15]=jt):jt=t[15];const Gt=jt;let wt;t[16]!==z?(wt=z===void 0?[]:z,t[16]=z,t[17]=wt):wt=t[17];const Ot=wt,N=de===void 0?!0:de,[Z,he]=E.useState(0),[Rt,Ct]=E.useState(0),Ut=E.useRef(null),ie=E.useRef(null);let T,Et;t[18]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const ne=new ResizeObserver(Wt=>{he(Wt[0].target.clientWidth||620),Ct(Wt[0].target.clientHeight||480)});return Ut.current&&ne.observe(Ut.current),()=>ne.disconnect()},Et=[],t[18]=T,t[19]=Et):(T=t[18],Et=t[19]),E.useEffect(T,Et);const Pt=x?.graphContainer,$=f?.graphContainer;let D;t[20]!==x?.description||t[21]!==x?.title||t[22]!==A||t[23]!==K||t[24]!==L||t[25]!==J||t[26]!==tt||t[27]!==f?.description||t[28]!==f?.title||t[29]!==C?(D=tt||L||J||K?o.jsxRuntimeExports.jsx(li.GraphHeader,{styles:{title:f?.title,description:f?.description},classNames:{title:x?.title,description:x?.description},graphTitle:tt,graphDescription:L,width:C,graphDownload:J?ie:void 0,dataDownload:K?A.map(Fi).filter(Hi).length>0?A.map($i).filter(Vi):A.filter(Mi):null}):null,t[20]=x?.description,t[21]=x?.title,t[22]=A,t[23]=K,t[24]=L,t[25]=J,t[26]=tt,t[27]=f?.description,t[28]=f?.title,t[29]=C,t[30]=D):D=t[30];let H;t[31]!==l||t[32]!==M||t[33]!==me||t[34]!==x||t[35]!==g||t[36]!==Vt||t[37]!==V||t[38]!==Ht||t[39]!==Gt||t[40]!==Ft||t[41]!==A||t[42]!==dt||t[43]!==$t||t[44]!==v||t[45]!==a||t[46]!==j||t[47]!==Ot||t[48]!==q||t[49]!==xt||t[50]!==lt||t[51]!==w||t[52]!==st||t[53]!==u||t[54]!==St||t[55]!==ut||t[56]!==gt||t[57]!==s||t[58]!==yt||t[59]!==h||t[60]!==fe||t[61]!==Mt||t[62]!==c||t[63]!==N||t[64]!==ft||t[65]!==d||t[66]!==ee||t[67]!==f||t[68]!==ct||t[69]!==Rt||t[70]!==Z||t[71]!==nt||t[72]!==mt||t[73]!==Zt?(H=A.length===0?o.jsxRuntimeExports.jsx(di.EmptyState,{}):o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[c&&N?o.jsxRuntimeExports.jsx(ci.ColorLegend,{colorDomain:j,colorLegendTitle:g,labelsToBeHidden:Ot,colors:lt,showNAColor:!1,className:x?.colorLegend}):null,o.jsxRuntimeExports.jsx(Ue.GraphArea,{ref:Ut,children:Z&&Rt?o.jsxRuntimeExports.jsx(fi,{data:A,lineColors:lt,width:Z,height:Rt,dateFormat:dt,noOfXTicks:ut??mi.getNoOfTicks(Z),leftMargin:xt,rightMargin:Mt,topMargin:mt,bottomMargin:me,labels:j,tooltip:nt,onSeriesMouseOver:s,showColorLegendAtTop:N?c:!0,showValues:d,suffix:ct,prefix:h,highlightAreaSettings:v,refValues:fe,minValue:St,maxValue:st,highlightedLines:a,animate:l===!0?{duration:.5,once:!0,amount:.5}:l||{duration:0,once:!0,amount:0},rtl:q==="he"||q==="ar",strokeWidth:ee,showDots:ft,annotations:M,customHighlightAreaSettings:V,yAxisTitle:Zt,noOfYTicks:gt,minDate:u,maxDate:w,curveType:Vt,styles:f,classNames:x,dimmedOpacity:$t,precision:yt,customLayers:Ht,labelsToBeHidden:Ot,dashedLines:Ft,dashSettings:Gt,revealClipId:xi.generateRandomString(8)}):null})]}),t[31]=l,t[32]=M,t[33]=me,t[34]=x,t[35]=g,t[36]=Vt,t[37]=V,t[38]=Ht,t[39]=Gt,t[40]=Ft,t[41]=A,t[42]=dt,t[43]=$t,t[44]=v,t[45]=a,t[46]=j,t[47]=Ot,t[48]=q,t[49]=xt,t[50]=lt,t[51]=w,t[52]=st,t[53]=u,t[54]=St,t[55]=ut,t[56]=gt,t[57]=s,t[58]=yt,t[59]=h,t[60]=fe,t[61]=Mt,t[62]=c,t[63]=N,t[64]=ft,t[65]=d,t[66]=ee,t[67]=f,t[68]=ct,t[69]=Rt,t[70]=Z,t[71]=nt,t[72]=mt,t[73]=Zt,t[74]=H):H=t[74];let F;t[75]!==x?.footnote||t[76]!==x?.source||t[77]!==et||t[78]!==r||t[79]!==f?.footnote||t[80]!==f?.source||t[81]!==C?(F=r||et?o.jsxRuntimeExports.jsx(ai.GraphFooter,{styles:{footnote:f?.footnote,source:f?.source},classNames:{footnote:x?.footnote,source:x?.source},sources:r,footNote:et,width:C}):null,t[75]=x?.footnote,t[76]=x?.source,t[77]=et,t[78]=r,t[79]=f?.footnote,t[80]=f?.source,t[81]=C,t[82]=F):F=t[82];let bt;return t[83]!==at||t[84]!==xe||t[85]!==Lt||t[86]!==At||t[87]!==q||t[88]!==te||t[89]!==it||t[90]!==ot||t[91]!==Pt||t[92]!==$||t[93]!==D||t[94]!==H||t[95]!==F||t[96]!==pt||t[97]!==C?(bt=o.jsxRuntimeExports.jsxs(Ue.GraphContainer,{className:Pt,style:$,id:Lt,ref:ie,"aria-label":at,backgroundColor:xe,theme:pt,language:q,minHeight:te,width:C,height:At,relativeHeight:ot,padding:it,children:[D,H,F]}),t[83]=at,t[84]=xe,t[85]=Lt,t[86]=At,t[87]=q,t[88]=te,t[89]=it,t[90]=ot,t[91]=Pt,t[92]=$,t[93]=D,t[94]=H,t[95]=F,t[96]=pt,t[97]=C,t[98]=bt):bt=t[98],bt}function Mi(i){return i!==void 0}function Vi(i){return i!==void 0}function $i(i){return i.data}function Hi(i){return i!==void 0}function Fi(i){return i.data}exports.MultiLineChart=qi;
2
2
  //# sourceMappingURL=MultiLineChart.cjs.map
@@ -14,7 +14,7 @@ import { Y as oi } from "./YTicksAndGridLines-Blepl7XF.js";
14
14
  import { H as ni } from "./index-SKgJALZg.js";
15
15
  import { t as si } from "./time-BUL-dwnK.js";
16
16
  import { a as ai } from "./linear-BqltdMeF.js";
17
- import { l as ri, c as li } from "./line-CPfhohvF.js";
17
+ import { l as ri, c as li } from "./line-DFlZsxI1.js";
18
18
  import { c as ci, s as mi, a as fi, m as di } from "./step-BrDul-H4.js";
19
19
  import { s as ui } from "./select-DKy99ogv.js";
20
20
  import { a as hi } from "./init-BhZylTFx.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),st=require("react"),xe=require("./index-DQA8q5sC.cjs"),ne=require("./numberFormattingFunction-02t-wJta.cjs"),he=require("./Tooltip-uUdw6wJL.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ce=require("./Axis-DxRV2yMi.cjs"),me=require("./AxisTitle-sS5bLLR7.cjs"),ge=require("./XAxesLabels-Bt5NZBmX.cjs"),ye=require("./DetailsModal-BN0HDFlV.cjs"),be=require("./band-VYfcZeJ2.cjs"),pe=require("./linear-BwPAspcq.cjs"),de=require("./line-DHV4JwCR.cjs"),se=require("./step-BZ3C8QFW.cjs"),ve=require("./use-in-view-QcfiW0w3.cjs"),Dt=require("./proxy-BxvUI_9l.cjs"),je=require("./index-DG2bgAva.cjs"),Ae=require("./GraphFooter.cjs"),we=require("./GraphHeader.cjs"),Ee=require("./ColorLegend.cjs"),oe=require("./Colors.cjs"),Re=require("./EmptyState-sAEZ_5rU.cjs"),fe=require("./GraphContainer-d8A46BK2.cjs");function Ce(e){const t=n.compilerRuntimeExports.c(157),{data:v,width:P,height:D,barColor:d,lineColor:p,axisTitles:u,sameAxes:j,rightMargin:zt,leftMargin:Qt,topMargin:Ft,bottomMargin:Yt,tooltip:Et,showValues:Rt,onSeriesMouseOver:ot,barPadding:Ht,truncateBy:Ct,showLabels:Gt,onSeriesMouseClick:C,resetSelectionOnDoubleClick:pt,detailsOnClick:w,noOfTicks:dt,lineSuffix:ft,barSuffix:Mt,linePrefix:kt,barPrefix:St,curveType:Lt,styles:s,classNames:o,animate:r,precision:F,customLayers:M,naLabel:rt,showAxisLabels:E}=e,Jt=st.useRef(null);let ht;t[0]!==r.amount||t[1]!==r.once?(ht={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=ht):ht=t[2];const k=ve.useInView(Jt,ht),Xt=Lt==="linear"?de.curveLinear:Lt==="step"?se.curveStep:Lt==="stepAfter"?se.stepAfter:Lt==="stepBefore"?se.stepBefore:se.monotoneX,[Nt,lt]=st.useState(void 0),[S,gt]=st.useState(void 0),[Ot,c]=st.useState(void 0),[x,at]=st.useState(void 0),Wt=Qt+50,yt=zt+65;let $t;t[3]!==Yt||t[4]!==Wt||t[5]!==yt||t[6]!==Ft?($t={top:Ft,bottom:Yt,left:Wt,right:yt},t[3]=Yt,t[4]=Wt,t[5]=yt,t[6]=Ft,t[7]=$t):$t=t[7];const l=$t,h=P-l.left-l.right,a=D-l.top-l.bottom;let L,Y,H,R,G,X,W,N,O,$,q,B,U,z,J;if(t[8]!==r||t[9]!==u||t[10]!==d||t[11]!==Ht||t[12]!==St||t[13]!==Mt||t[14]!==o?.graphObjectValues||t[15]!==o?.xAxis?.axis||t[16]!==o?.xAxis?.labels||t[17]!==o?.yAxis?.gridLines||t[18]!==o?.yAxis?.labels||t[19]!==o?.yAxis?.title||t[20]!==Xt||t[21]!==M||t[22]!==v||t[23]!==w||t[24]!==a||t[25]!==h||t[26]!==D||t[27]!==k||t[28]!==p||t[29]!==kt||t[30]!==ft||t[31]!==l.bottom||t[32]!==l.left||t[33]!==l.right||t[34]!==l.top||t[35]!==S||t[36]!==rt||t[37]!==dt||t[38]!==C||t[39]!==ot||t[40]!==F||t[41]!==pt||t[42]!==j||t[43]!==E||t[44]!==Gt||t[45]!==Rt||t[46]!==s?.graphObjectValues||t[47]!==s?.xAxis?.axis||t[48]!==s?.xAxis?.labels||t[49]!==s?.yAxis?.gridLines||t[50]!==s?.yAxis?.labels||t[51]!==s?.yAxis?.title||t[52]!==Ct||t[53]!==P){const m=v.map(ti),g=be.band().domain(m.map(_e)).range([0,h]).paddingInner(Ht),qt=Math.min(...m.map(Ze).filter(Qe))!==1/0?Math.min(...m.map(Ke).filter(Je))>0?0:Math.min(...m.map(ze).filter(Ue)):0,vt=Math.min(...m.map(Be).filter(We))!==1/0?Math.min(...m.map(Xe).filter(Ge))>0?0:Math.min(...m.map(He).filter(Ye)):0,jt=Math.max(...m.map(Fe).filter(De))!==1/0?Math.max(...m.map(Pe).filter(Te)):0,ct=Math.max(...m.map(Ie).filter(Ve))!==1/0?Math.max(...m.map(qe).filter($e)):0,Bt=qt<vt?qt:vt,At=jt>ct?jt:ct,f=pe.linear().domain([j?Bt:qt,j?At>0?At:0:jt>0?jt:0]).range([a,0]).nice(),y=pe.linear().domain([j?Bt:vt,j?At>0?At:0:ct>0?ct:0]).range([a,0]).nice(),Vt=de.line().defined(Oe).x(i=>g(`${i.id}`)+g.bandwidth()/2).y(i=>y(i.line)).curve(Xt),re=f.ticks(dt),Ut=y.ticks(dt);Y=Dt.motion.svg,G=`${P}px`,X=`${D}px`,W=`0 0 ${P} ${D}`,N="ltr",O=Jt,U=`translate(${l.left},${l.top})`;const Kt=o?.xAxis?.axis;let et;t[69]!==Kt?(et={axis:Kt},t[69]=Kt,t[70]=et):et=t[70];let ut;t[71]!==s?.xAxis?.axis?(ut=s?.xAxis?.axis||{},t[71]=s?.xAxis?.axis,t[72]=ut):ut=t[72];let V;t[73]!==d||t[74]!==ut?(V={axis:{stroke:d,...ut}},t[73]=d,t[74]=ut,t[75]=V):V=t[75];let xt;t[76]!==a||t[77]!==et||t[78]!==V?(xt=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:a,x1:-15,x2:-15,classNames:et,styles:V}),t[76]=a,t[77]=et,t[78]=V,t[79]=xt):xt=t[79];let wt;t[80]!==u||t[81]!==d||t[82]!==o?.yAxis?.title||t[83]!==a||t[84]!==l.left||t[85]!==E||t[86]!==s?.yAxis?.title?(wt=E?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:10-l.left,y:a/2,style:{fill:d,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:u[0].length>100?`${u[0].substring(0,100)}...`:u[0],rotate90:!0}):null,t[80]=u,t[81]=d,t[82]=o?.yAxis?.title,t[83]=a,t[84]=l.left,t[85]=E,t[86]=s?.yAxis?.title,t[87]=wt):wt=t[87],z=n.jsxRuntimeExports.jsxs("g",{children:[re.map((i,Pt)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:f(i),y2:f(i),x1:-15,x2:-20,style:{stroke:d,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:-25,y:f(i),dy:"0.33em",className:n.mo("text-xs",o?.yAxis?.labels),style:{textAnchor:"end",fill:d,...s?.yAxis?.labels||{}},children:ne.numberFormattingFunction(i,rt,F,St,Mt)})]},Pt)),xt,wt]});const It=h+15,it=h+15,nt=o?.xAxis?.axis;let A;t[88]!==nt?(A={axis:nt},t[88]=nt,t[89]=A):A=t[89];let I;t[90]!==s?.xAxis?.axis?(I=s?.xAxis?.axis||{},t[90]=s?.xAxis?.axis,t[91]=I):I=t[91];let mt;t[92]!==p||t[93]!==I?(mt={axis:{stroke:p,...I}},t[92]=p,t[93]=I,t[94]=mt):mt=t[94];let Tt;t[95]!==a||t[96]!==It||t[97]!==it||t[98]!==A||t[99]!==mt?(Tt=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:a,x1:It,x2:it,classNames:A,styles:mt}),t[95]=a,t[96]=It,t[97]=it,t[98]=A,t[99]=mt,t[100]=Tt):Tt=t[100];let Zt;t[101]!==u||t[102]!==o?.yAxis?.title||t[103]!==a||t[104]!==h||t[105]!==p||t[106]!==l.right||t[107]!==E||t[108]!==s?.yAxis?.title?(Zt=E?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:h+l.right-15,y:a/2,style:{fill:p,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:u[1].length>100?`${u[1].substring(0,100)}...`:u[1],rotate90:!0}):null,t[101]=u,t[102]=o?.yAxis?.title,t[103]=a,t[104]=h,t[105]=p,t[106]=l.right,t[107]=E,t[108]=s?.yAxis?.title,t[109]=Zt):Zt=t[109],J=n.jsxRuntimeExports.jsxs("g",{children:[Ut.map((i,Pt)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:y(i),y2:y(i),x1:h+15,x2:h+20,style:{stroke:p,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:h+25,y:y(i),dy:"0.33em",dx:-2,style:{textAnchor:"start",fill:p,...s?.yAxis?.labels||{}},className:n.mo("text-xs",o?.yAxis?.labels),children:ne.numberFormattingFunction(i,rt,F,kt,ft)})]},Pt)),Tt,Zt]});const le=o?.xAxis?.axis;let _t;t[110]!==le?(_t={axis:le},t[110]=le,t[111]=_t):_t=t[111];const ae=s?.xAxis?.axis;let te;t[112]!==ae?(te={axis:ae},t[112]=ae,t[113]=te):te=t[113],H=n.jsxRuntimeExports.jsx(ce.Axis,{y1:j?f(0):a,y2:j?f(0):a,x1:-15,x2:h+15,classNames:_t,styles:te}),t[114]!==M?(R=M.filter(Ne).map(Le),t[114]=M,t[115]=R):R=t[115],L=je.AnimatePresence,$=m.map((i,Pt)=>n.jsxRuntimeExports.jsxs(Dt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:T=>{lt(i),at(T.clientY),c(T.clientX),ot?.(i)},onClick:()=>{(C||w)&&(xe.isEqual(S,i)&&pt?(gt(void 0),C?.(void 0)):(gt(i),C?.(i)))},onMouseMove:T=>{lt(i),at(T.clientY),c(T.clientX)},onMouseLeave:()=>{lt(void 0),c(void 0),at(void 0),ot?.(void 0)},children:[n.jsxRuntimeExports.jsx(Dt.motion.rect,{variants:{initial:{attrY:f(0),height:0,opacity:1,fill:d},whileInView:{attrY:i.bar?i.bar>0?f(i.bar):f(0):0,height:i.bar?Math.abs(f(i.bar)-f(0)):0,opacity:1,fill:d,transition:{duration:r.duration}}},initial:"initial",animate:k?"whileInView":"initial",exit:{attrY:f(0),height:0,opacity:0,transition:{duration:r.duration}},x:g(`${Pt}`),width:g.bandwidth()}),Rt&&!ue.checkIfNullOrUndefined(i.bar)?n.jsxRuntimeExports.jsx(Dt.motion.text,{x:g(`${i.id}`)+g.bandwidth()/2,exit:{attrY:f(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{attrY:f(0),opacity:0,fill:d},whileInView:{attrY:f(i.bar||0),opacity:1,fill:d,transition:{duration:r.duration}}},initial:"initial",animate:k?"whileInView":"initial",style:{textAnchor:"middle",...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:i.bar?i.bar>=0?"-5px":"1em":"-5px",children:ne.numberFormattingFunction(i.bar,rt,F,St,Mt)}):null,Gt?n.jsxRuntimeExports.jsx(ge.XAxesLabels,{value:`${i.label}`.length<Ct?`${i.label}`:`${`${i.label}`.substring(0,Ct)}...`,y:a+5,x:g(`${i.id}`),width:g.bandwidth(),height:l.bottom,style:s?.xAxis?.labels,className:o?.xAxis?.labels,alignment:"top",animate:r,isInView:k}):null]},i.label));let ee;t[116]!==r.duration?(ee={opacity:0,transition:{duration:r.duration}},t[116]=r.duration,t[117]=ee):ee=t[117];let ie;t[118]===Symbol.for("react.memo_cache_sentinel")?(ie={fill:"none",strokeWidth:2},t[118]=ie):ie=t[118],q=n.jsxRuntimeExports.jsx(Dt.motion.path,{exit:ee,variants:{initial:{d:Vt(m.map(Se)),opacity:0,stroke:p},whileInView:{d:Vt(m),opacity:1,stroke:p,transition:{duration:r.duration}}},initial:"initial",animate:k?"whileInView":"initial",style:ie}),B=m.map((i,Pt)=>n.jsxRuntimeExports.jsx("g",{children:ue.checkIfNullOrUndefined(i.line)?null:n.jsxRuntimeExports.jsxs("g",{onMouseEnter:T=>{lt(i),at(T.clientY),c(T.clientX),ot?.(i)},onClick:()=>{(C||w)&&(xe.isEqual(S,i)&&pt?(gt(void 0),C?.(void 0)):(gt(i),C?.(i)))},onMouseMove:T=>{lt(i),at(T.clientY),c(T.clientX)},onMouseLeave:()=>{lt(void 0),c(void 0),at(void 0),ot?.(void 0)},children:[n.jsxRuntimeExports.jsx(Dt.motion.circle,{exit:{cy:y(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{cy:y(0),opacity:0,fill:p},whileInView:{cy:y(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:k?"whileInView":"initial",cx:g(i.id)+g.bandwidth()/2,r:h/m.length<5?0:h/m.length<20?2:4}),Rt?n.jsxRuntimeExports.jsx(Dt.motion.text,{x:g(`${i.id}`)+g.bandwidth()/2,exit:{y:y(0),opacity:0,transition:{duration:r.duration}},style:{textAnchor:"middle",...s?.graphObjectValues||{}},variants:{initial:{y:y(0),opacity:0,fill:p},whileInView:{y:y(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:k?"whileInView":"initial",className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:"-5px",children:ne.numberFormattingFunction(i.line,rt,F,kt,ft)}):null]})},Pt)),t[8]=r,t[9]=u,t[10]=d,t[11]=Ht,t[12]=St,t[13]=Mt,t[14]=o?.graphObjectValues,t[15]=o?.xAxis?.axis,t[16]=o?.xAxis?.labels,t[17]=o?.yAxis?.gridLines,t[18]=o?.yAxis?.labels,t[19]=o?.yAxis?.title,t[20]=Xt,t[21]=M,t[22]=v,t[23]=w,t[24]=a,t[25]=h,t[26]=D,t[27]=k,t[28]=p,t[29]=kt,t[30]=ft,t[31]=l.bottom,t[32]=l.left,t[33]=l.right,t[34]=l.top,t[35]=S,t[36]=rt,t[37]=dt,t[38]=C,t[39]=ot,t[40]=F,t[41]=pt,t[42]=j,t[43]=E,t[44]=Gt,t[45]=Rt,t[46]=s?.graphObjectValues,t[47]=s?.xAxis?.axis,t[48]=s?.xAxis?.labels,t[49]=s?.yAxis?.gridLines,t[50]=s?.yAxis?.labels,t[51]=s?.yAxis?.title,t[52]=Ct,t[53]=P,t[54]=L,t[55]=Y,t[56]=H,t[57]=R,t[58]=G,t[59]=X,t[60]=W,t[61]=N,t[62]=O,t[63]=$,t[64]=q,t[65]=B,t[66]=U,t[67]=z,t[68]=J}else L=t[54],Y=t[55],H=t[56],R=t[57],G=t[58],X=t[59],W=t[60],N=t[61],O=t[62],$=t[63],q=t[64],B=t[65],U=t[66],z=t[67],J=t[68];let K;t[119]!==L||t[120]!==$||t[121]!==q||t[122]!==B?(K=n.jsxRuntimeExports.jsxs(L,{children:[$,q,B]}),t[119]=L,t[120]=$,t[121]=q,t[122]=B,t[123]=K):K=t[123];let b;t[124]!==M?(b=M.filter(ke).map(Me),t[124]=M,t[125]=b):b=t[125];let Q;t[126]!==H||t[127]!==R||t[128]!==K||t[129]!==b||t[130]!==U||t[131]!==z||t[132]!==J?(Q=n.jsxRuntimeExports.jsxs("g",{transform:U,children:[z,J,H,R,K,b]}),t[126]=H,t[127]=R,t[128]=K,t[129]=b,t[130]=U,t[131]=z,t[132]=J,t[133]=Q):Q=t[133];let Z;t[134]!==Y||t[135]!==G||t[136]!==X||t[137]!==W||t[138]!==N||t[139]!==O||t[140]!==Q?(Z=n.jsxRuntimeExports.jsx(Y,{width:G,height:X,viewBox:W,direction:N,ref:O,children:Q}),t[134]=Y,t[135]=G,t[136]=X,t[137]=W,t[138]=N,t[139]=O,t[140]=Q,t[141]=Z):Z=t[141];let _;t[142]!==o?.tooltip||t[143]!==Ot||t[144]!==x||t[145]!==Nt||t[146]!==s?.tooltip||t[147]!==Et?(_=Nt&&Et&&Ot&&x?n.jsxRuntimeExports.jsx(he.Tooltip,{data:Nt,body:Et,xPos:Ot,yPos:x,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[142]=o?.tooltip,t[143]=Ot,t[144]=x,t[145]=Nt,t[146]=s?.tooltip,t[147]=Et,t[148]=_):_=t[148];let tt;t[149]!==o?.modal||t[150]!==w||t[151]!==S?(tt=w&&S!==void 0?n.jsxRuntimeExports.jsx(ye.DetailsModal,{body:w,data:S,setData:gt,className:o?.modal}):null,t[149]=o?.modal,t[150]=w,t[151]=S,t[152]=tt):tt=t[152];let bt;return t[153]!==Z||t[154]!==_||t[155]!==tt?(bt=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[Z,_,tt]}),t[153]=Z,t[154]=_,t[155]=tt,t[156]=bt):bt=t[156],bt}function Me(e){return e.layer}function ke(e){return e.position==="after"}function Se(e){return{...e,line:0}}function Le(e){return e.layer}function Ne(e){return e.position==="before"}function Oe(e){return!ue.checkIfNullOrUndefined(e.line)}function $e(e){return e!=null}function qe(e){return e.line}function Ve(e){return e!=null}function Ie(e){return e.line}function Te(e){return e!=null}function Pe(e){return e.bar}function De(e){return e!=null}function Fe(e){return e.bar}function Ye(e){return e!=null}function He(e){return e.line}function Ge(e){return e!=null}function Xe(e){return e.line}function We(e){return e!=null}function Be(e){return e.line}function Ue(e){return e!=null}function ze(e){return e.bar}function Je(e){return e!=null}function Ke(e){return e.bar}function Qe(e){return e!=null}function Ze(e){return e.bar}function _e(e){return`${e.id}`}function ti(e,t){return{...e,id:`${t}`}}function ei(e){const t=n.compilerRuntimeExports.c(77),{data:v,graphTitle:P,sources:D,graphDescription:d,height:p,width:u,footNote:j,padding:zt,lineColor:Qt,barColor:Ft,sameAxes:Yt,backgroundColor:Et,leftMargin:Rt,rightMargin:ot,topMargin:Ht,bottomMargin:Ct,lineAxisTitle:Gt,barAxisTitle:C,tooltip:pt,relativeHeight:w,onSeriesMouseOver:dt,graphID:ft,graphDownload:Mt,dataDownload:kt,barPadding:St,truncateBy:Lt,showLabels:s,onSeriesMouseClick:o,language:r,colorLegendTitle:F,minHeight:M,theme:rt,ariaLabel:E,resetSelectionOnDoubleClick:Jt,detailsOnClick:ht,showValues:k,noOfTicks:Xt,lineSuffix:Nt,barSuffix:lt,linePrefix:S,barPrefix:gt,curveType:Ot,styles:c,classNames:x,animate:at,precision:Wt,customLayers:yt,naLabel:$t,showColorScale:l,showAxisLabels:h}=e,a=Qt===void 0?oe.Colors.light.categoricalColors.colors[1]:Qt,L=Ft===void 0?oe.Colors.light.categoricalColors.colors[0]:Ft,Y=Yt===void 0?!1:Yt,H=Et===void 0?!1:Et,R=Rt===void 0?80:Rt,G=ot===void 0?80:ot,X=Ht===void 0?20:Ht,W=Ct===void 0?25:Ct,N=Gt===void 0?"Line chart":Gt,O=C===void 0?"Bar graph":C,$=Mt===void 0?!1:Mt,q=kt===void 0?!1:kt,B=St===void 0?.25:St,U=Lt===void 0?999:Lt,z=s===void 0?!0:s,J=r===void 0?"en":r,K=M===void 0?0:M,b=rt===void 0?"light":rt,Q=Jt===void 0?!0:Jt,Z=k===void 0?!0:k,_=Xt===void 0?5:Xt,tt=Nt===void 0?"":Nt,bt=lt===void 0?"":lt,m=S===void 0?"":S,g=gt===void 0?"":gt,qt=Ot===void 0?"curve":Ot,vt=at===void 0?!1:at,jt=Wt===void 0?2:Wt;let ct;t[0]!==yt?(ct=yt===void 0?[]:yt,t[0]=yt,t[1]=ct):ct=t[1];const Bt=ct,At=$t===void 0?"NA":$t,f=l===void 0?!0:l,y=h===void 0?!0:h,[Vt,re]=st.useState(0),[Ut,Kt]=st.useState(0),et=st.useRef(null),ut=st.useRef(null);let V,xt;t[2]===Symbol.for("react.memo_cache_sentinel")?(V=()=>{const mt=new ResizeObserver(Tt=>{re(Tt[0].target.clientWidth||620),Kt(Tt[0].target.clientHeight||480)});return et.current&&mt.observe(et.current),()=>mt.disconnect()},xt=[],t[2]=V,t[3]=xt):(V=t[2],xt=t[3]),st.useEffect(V,xt);const wt=x?.graphContainer,It=c?.graphContainer;let it;t[4]!==x?.description||t[5]!==x?.title||t[6]!==v||t[7]!==q||t[8]!==d||t[9]!==$||t[10]!==P||t[11]!==c?.description||t[12]!==c?.title||t[13]!==u?(it=P||d||$||q?n.jsxRuntimeExports.jsx(we.GraphHeader,{styles:{title:c?.title,description:c?.description},classNames:{title:x?.title,description:x?.description},graphTitle:P,graphDescription:d,width:u,graphDownload:$?ut:void 0,dataDownload:q?v.map(ri).filter(oi).length>0?v.map(si).filter(ni):v.filter(ii):null}):null,t[4]=x?.description,t[5]=x?.title,t[6]=v,t[7]=q,t[8]=d,t[9]=$,t[10]=P,t[11]=c?.description,t[12]=c?.title,t[13]=u,t[14]=it):it=t[14];let nt;t[15]!==vt||t[16]!==O||t[17]!==L||t[18]!==B||t[19]!==g||t[20]!==bt||t[21]!==W||t[22]!==x||t[23]!==F||t[24]!==qt||t[25]!==Bt||t[26]!==v||t[27]!==ht||t[28]!==R||t[29]!==N||t[30]!==a||t[31]!==m||t[32]!==tt||t[33]!==At||t[34]!==_||t[35]!==o||t[36]!==dt||t[37]!==jt||t[38]!==Q||t[39]!==G||t[40]!==Y||t[41]!==y||t[42]!==f||t[43]!==z||t[44]!==Z||t[45]!==c||t[46]!==Ut||t[47]!==Vt||t[48]!==b||t[49]!==pt||t[50]!==X||t[51]!==U?(nt=v.length===0?n.jsxRuntimeExports.jsx(Re.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[f?n.jsxRuntimeExports.jsx(Ee.ColorLegend,{colorDomain:[O,N],colors:[L||oe.Colors[b].categoricalColors.colors[0],a||oe.Colors[b].categoricalColors.colors[1]],colorLegendTitle:F,showNAColor:!1,className:x?.colorLegend}):null,n.jsxRuntimeExports.jsx(fe.GraphArea,{ref:et,children:Vt&&Ut?n.jsxRuntimeExports.jsx(Ce,{data:v,sameAxes:Y,lineColor:a,barColor:L,width:Vt,height:Ut,truncateBy:U,leftMargin:R,rightMargin:G,topMargin:X,bottomMargin:W,axisTitles:[O,N],tooltip:pt,onSeriesMouseOver:dt,barPadding:B,showLabels:z,onSeriesMouseClick:o,resetSelectionOnDoubleClick:Q,detailsOnClick:ht,noOfTicks:_,lineSuffix:tt,barSuffix:bt,linePrefix:m,barPrefix:g,curveType:qt,showValues:Z,styles:c,classNames:x,animate:vt===!0?{duration:.5,once:!0,amount:.5}:vt||{duration:0,once:!0,amount:0},precision:jt,customLayers:Bt,naLabel:At,showAxisLabels:y}):null})]}),t[15]=vt,t[16]=O,t[17]=L,t[18]=B,t[19]=g,t[20]=bt,t[21]=W,t[22]=x,t[23]=F,t[24]=qt,t[25]=Bt,t[26]=v,t[27]=ht,t[28]=R,t[29]=N,t[30]=a,t[31]=m,t[32]=tt,t[33]=At,t[34]=_,t[35]=o,t[36]=dt,t[37]=jt,t[38]=Q,t[39]=G,t[40]=Y,t[41]=y,t[42]=f,t[43]=z,t[44]=Z,t[45]=c,t[46]=Ut,t[47]=Vt,t[48]=b,t[49]=pt,t[50]=X,t[51]=U,t[52]=nt):nt=t[52];let A;t[53]!==x?.footnote||t[54]!==x?.source||t[55]!==j||t[56]!==D||t[57]!==c?.footnote||t[58]!==c?.source||t[59]!==u?(A=D||j?n.jsxRuntimeExports.jsx(Ae.GraphFooter,{styles:{footnote:c?.footnote,source:c?.source},classNames:{footnote:x?.footnote,source:x?.source},sources:D,footNote:j,width:u}):null,t[53]=x?.footnote,t[54]=x?.source,t[55]=j,t[56]=D,t[57]=c?.footnote,t[58]=c?.source,t[59]=u,t[60]=A):A=t[60];let I;return t[61]!==E||t[62]!==H||t[63]!==ft||t[64]!==p||t[65]!==J||t[66]!==K||t[67]!==zt||t[68]!==w||t[69]!==wt||t[70]!==It||t[71]!==it||t[72]!==nt||t[73]!==A||t[74]!==b||t[75]!==u?(I=n.jsxRuntimeExports.jsxs(fe.GraphContainer,{className:wt,style:It,id:ft,ref:ut,"aria-label":E,backgroundColor:H,theme:b,language:J,minHeight:K,width:u,height:p,relativeHeight:w,padding:zt,children:[it,nt,A]}),t[61]=E,t[62]=H,t[63]=ft,t[64]=p,t[65]=J,t[66]=K,t[67]=zt,t[68]=w,t[69]=wt,t[70]=It,t[71]=it,t[72]=nt,t[73]=A,t[74]=b,t[75]=u,t[76]=I):I=t[76],I}function ii(e){return e!==void 0}function ni(e){return e!==void 0}function si(e){return e.data}function oi(e){return e!==void 0}function ri(e){return e.data}exports.ParetoChart=ei;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),st=require("react"),xe=require("./index-DQA8q5sC.cjs"),ne=require("./numberFormattingFunction-02t-wJta.cjs"),he=require("./Tooltip-uUdw6wJL.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ce=require("./Axis-DxRV2yMi.cjs"),me=require("./AxisTitle-sS5bLLR7.cjs"),ge=require("./XAxesLabels-Bt5NZBmX.cjs"),ye=require("./DetailsModal-BN0HDFlV.cjs"),be=require("./band-VYfcZeJ2.cjs"),pe=require("./linear-BwPAspcq.cjs"),de=require("./line-DaEMhXmx.cjs"),se=require("./step-BZ3C8QFW.cjs"),ve=require("./use-in-view-QcfiW0w3.cjs"),Dt=require("./proxy-BxvUI_9l.cjs"),je=require("./index-DG2bgAva.cjs"),Ae=require("./GraphFooter.cjs"),we=require("./GraphHeader.cjs"),Ee=require("./ColorLegend.cjs"),oe=require("./Colors.cjs"),Re=require("./EmptyState-sAEZ_5rU.cjs"),fe=require("./GraphContainer-d8A46BK2.cjs");function Ce(e){const t=n.compilerRuntimeExports.c(157),{data:v,width:P,height:D,barColor:d,lineColor:p,axisTitles:u,sameAxes:j,rightMargin:zt,leftMargin:Qt,topMargin:Ft,bottomMargin:Yt,tooltip:Et,showValues:Rt,onSeriesMouseOver:ot,barPadding:Ht,truncateBy:Ct,showLabels:Gt,onSeriesMouseClick:C,resetSelectionOnDoubleClick:pt,detailsOnClick:w,noOfTicks:dt,lineSuffix:ft,barSuffix:Mt,linePrefix:kt,barPrefix:St,curveType:Lt,styles:s,classNames:o,animate:r,precision:F,customLayers:M,naLabel:rt,showAxisLabels:E}=e,Jt=st.useRef(null);let ht;t[0]!==r.amount||t[1]!==r.once?(ht={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=ht):ht=t[2];const k=ve.useInView(Jt,ht),Xt=Lt==="linear"?de.curveLinear:Lt==="step"?se.curveStep:Lt==="stepAfter"?se.stepAfter:Lt==="stepBefore"?se.stepBefore:se.monotoneX,[Nt,lt]=st.useState(void 0),[S,gt]=st.useState(void 0),[Ot,c]=st.useState(void 0),[x,at]=st.useState(void 0),Wt=Qt+50,yt=zt+65;let $t;t[3]!==Yt||t[4]!==Wt||t[5]!==yt||t[6]!==Ft?($t={top:Ft,bottom:Yt,left:Wt,right:yt},t[3]=Yt,t[4]=Wt,t[5]=yt,t[6]=Ft,t[7]=$t):$t=t[7];const l=$t,h=P-l.left-l.right,a=D-l.top-l.bottom;let L,Y,H,R,G,X,W,N,O,$,q,B,U,z,J;if(t[8]!==r||t[9]!==u||t[10]!==d||t[11]!==Ht||t[12]!==St||t[13]!==Mt||t[14]!==o?.graphObjectValues||t[15]!==o?.xAxis?.axis||t[16]!==o?.xAxis?.labels||t[17]!==o?.yAxis?.gridLines||t[18]!==o?.yAxis?.labels||t[19]!==o?.yAxis?.title||t[20]!==Xt||t[21]!==M||t[22]!==v||t[23]!==w||t[24]!==a||t[25]!==h||t[26]!==D||t[27]!==k||t[28]!==p||t[29]!==kt||t[30]!==ft||t[31]!==l.bottom||t[32]!==l.left||t[33]!==l.right||t[34]!==l.top||t[35]!==S||t[36]!==rt||t[37]!==dt||t[38]!==C||t[39]!==ot||t[40]!==F||t[41]!==pt||t[42]!==j||t[43]!==E||t[44]!==Gt||t[45]!==Rt||t[46]!==s?.graphObjectValues||t[47]!==s?.xAxis?.axis||t[48]!==s?.xAxis?.labels||t[49]!==s?.yAxis?.gridLines||t[50]!==s?.yAxis?.labels||t[51]!==s?.yAxis?.title||t[52]!==Ct||t[53]!==P){const m=v.map(ti),g=be.band().domain(m.map(_e)).range([0,h]).paddingInner(Ht),qt=Math.min(...m.map(Ze).filter(Qe))!==1/0?Math.min(...m.map(Ke).filter(Je))>0?0:Math.min(...m.map(ze).filter(Ue)):0,vt=Math.min(...m.map(Be).filter(We))!==1/0?Math.min(...m.map(Xe).filter(Ge))>0?0:Math.min(...m.map(He).filter(Ye)):0,jt=Math.max(...m.map(Fe).filter(De))!==1/0?Math.max(...m.map(Pe).filter(Te)):0,ct=Math.max(...m.map(Ie).filter(Ve))!==1/0?Math.max(...m.map(qe).filter($e)):0,Bt=qt<vt?qt:vt,At=jt>ct?jt:ct,f=pe.linear().domain([j?Bt:qt,j?At>0?At:0:jt>0?jt:0]).range([a,0]).nice(),y=pe.linear().domain([j?Bt:vt,j?At>0?At:0:ct>0?ct:0]).range([a,0]).nice(),Vt=de.line().defined(Oe).x(i=>g(`${i.id}`)+g.bandwidth()/2).y(i=>y(i.line)).curve(Xt),re=f.ticks(dt),Ut=y.ticks(dt);Y=Dt.motion.svg,G=`${P}px`,X=`${D}px`,W=`0 0 ${P} ${D}`,N="ltr",O=Jt,U=`translate(${l.left},${l.top})`;const Kt=o?.xAxis?.axis;let et;t[69]!==Kt?(et={axis:Kt},t[69]=Kt,t[70]=et):et=t[70];let ut;t[71]!==s?.xAxis?.axis?(ut=s?.xAxis?.axis||{},t[71]=s?.xAxis?.axis,t[72]=ut):ut=t[72];let V;t[73]!==d||t[74]!==ut?(V={axis:{stroke:d,...ut}},t[73]=d,t[74]=ut,t[75]=V):V=t[75];let xt;t[76]!==a||t[77]!==et||t[78]!==V?(xt=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:a,x1:-15,x2:-15,classNames:et,styles:V}),t[76]=a,t[77]=et,t[78]=V,t[79]=xt):xt=t[79];let wt;t[80]!==u||t[81]!==d||t[82]!==o?.yAxis?.title||t[83]!==a||t[84]!==l.left||t[85]!==E||t[86]!==s?.yAxis?.title?(wt=E?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:10-l.left,y:a/2,style:{fill:d,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:u[0].length>100?`${u[0].substring(0,100)}...`:u[0],rotate90:!0}):null,t[80]=u,t[81]=d,t[82]=o?.yAxis?.title,t[83]=a,t[84]=l.left,t[85]=E,t[86]=s?.yAxis?.title,t[87]=wt):wt=t[87],z=n.jsxRuntimeExports.jsxs("g",{children:[re.map((i,Pt)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:f(i),y2:f(i),x1:-15,x2:-20,style:{stroke:d,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:-25,y:f(i),dy:"0.33em",className:n.mo("text-xs",o?.yAxis?.labels),style:{textAnchor:"end",fill:d,...s?.yAxis?.labels||{}},children:ne.numberFormattingFunction(i,rt,F,St,Mt)})]},Pt)),xt,wt]});const It=h+15,it=h+15,nt=o?.xAxis?.axis;let A;t[88]!==nt?(A={axis:nt},t[88]=nt,t[89]=A):A=t[89];let I;t[90]!==s?.xAxis?.axis?(I=s?.xAxis?.axis||{},t[90]=s?.xAxis?.axis,t[91]=I):I=t[91];let mt;t[92]!==p||t[93]!==I?(mt={axis:{stroke:p,...I}},t[92]=p,t[93]=I,t[94]=mt):mt=t[94];let Tt;t[95]!==a||t[96]!==It||t[97]!==it||t[98]!==A||t[99]!==mt?(Tt=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:a,x1:It,x2:it,classNames:A,styles:mt}),t[95]=a,t[96]=It,t[97]=it,t[98]=A,t[99]=mt,t[100]=Tt):Tt=t[100];let Zt;t[101]!==u||t[102]!==o?.yAxis?.title||t[103]!==a||t[104]!==h||t[105]!==p||t[106]!==l.right||t[107]!==E||t[108]!==s?.yAxis?.title?(Zt=E?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:h+l.right-15,y:a/2,style:{fill:p,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:u[1].length>100?`${u[1].substring(0,100)}...`:u[1],rotate90:!0}):null,t[101]=u,t[102]=o?.yAxis?.title,t[103]=a,t[104]=h,t[105]=p,t[106]=l.right,t[107]=E,t[108]=s?.yAxis?.title,t[109]=Zt):Zt=t[109],J=n.jsxRuntimeExports.jsxs("g",{children:[Ut.map((i,Pt)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:y(i),y2:y(i),x1:h+15,x2:h+20,style:{stroke:p,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:h+25,y:y(i),dy:"0.33em",dx:-2,style:{textAnchor:"start",fill:p,...s?.yAxis?.labels||{}},className:n.mo("text-xs",o?.yAxis?.labels),children:ne.numberFormattingFunction(i,rt,F,kt,ft)})]},Pt)),Tt,Zt]});const le=o?.xAxis?.axis;let _t;t[110]!==le?(_t={axis:le},t[110]=le,t[111]=_t):_t=t[111];const ae=s?.xAxis?.axis;let te;t[112]!==ae?(te={axis:ae},t[112]=ae,t[113]=te):te=t[113],H=n.jsxRuntimeExports.jsx(ce.Axis,{y1:j?f(0):a,y2:j?f(0):a,x1:-15,x2:h+15,classNames:_t,styles:te}),t[114]!==M?(R=M.filter(Ne).map(Le),t[114]=M,t[115]=R):R=t[115],L=je.AnimatePresence,$=m.map((i,Pt)=>n.jsxRuntimeExports.jsxs(Dt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:T=>{lt(i),at(T.clientY),c(T.clientX),ot?.(i)},onClick:()=>{(C||w)&&(xe.isEqual(S,i)&&pt?(gt(void 0),C?.(void 0)):(gt(i),C?.(i)))},onMouseMove:T=>{lt(i),at(T.clientY),c(T.clientX)},onMouseLeave:()=>{lt(void 0),c(void 0),at(void 0),ot?.(void 0)},children:[n.jsxRuntimeExports.jsx(Dt.motion.rect,{variants:{initial:{attrY:f(0),height:0,opacity:1,fill:d},whileInView:{attrY:i.bar?i.bar>0?f(i.bar):f(0):0,height:i.bar?Math.abs(f(i.bar)-f(0)):0,opacity:1,fill:d,transition:{duration:r.duration}}},initial:"initial",animate:k?"whileInView":"initial",exit:{attrY:f(0),height:0,opacity:0,transition:{duration:r.duration}},x:g(`${Pt}`),width:g.bandwidth()}),Rt&&!ue.checkIfNullOrUndefined(i.bar)?n.jsxRuntimeExports.jsx(Dt.motion.text,{x:g(`${i.id}`)+g.bandwidth()/2,exit:{attrY:f(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{attrY:f(0),opacity:0,fill:d},whileInView:{attrY:f(i.bar||0),opacity:1,fill:d,transition:{duration:r.duration}}},initial:"initial",animate:k?"whileInView":"initial",style:{textAnchor:"middle",...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:i.bar?i.bar>=0?"-5px":"1em":"-5px",children:ne.numberFormattingFunction(i.bar,rt,F,St,Mt)}):null,Gt?n.jsxRuntimeExports.jsx(ge.XAxesLabels,{value:`${i.label}`.length<Ct?`${i.label}`:`${`${i.label}`.substring(0,Ct)}...`,y:a+5,x:g(`${i.id}`),width:g.bandwidth(),height:l.bottom,style:s?.xAxis?.labels,className:o?.xAxis?.labels,alignment:"top",animate:r,isInView:k}):null]},i.label));let ee;t[116]!==r.duration?(ee={opacity:0,transition:{duration:r.duration}},t[116]=r.duration,t[117]=ee):ee=t[117];let ie;t[118]===Symbol.for("react.memo_cache_sentinel")?(ie={fill:"none",strokeWidth:2},t[118]=ie):ie=t[118],q=n.jsxRuntimeExports.jsx(Dt.motion.path,{exit:ee,variants:{initial:{d:Vt(m.map(Se)),opacity:0,stroke:p},whileInView:{d:Vt(m),opacity:1,stroke:p,transition:{duration:r.duration}}},initial:"initial",animate:k?"whileInView":"initial",style:ie}),B=m.map((i,Pt)=>n.jsxRuntimeExports.jsx("g",{children:ue.checkIfNullOrUndefined(i.line)?null:n.jsxRuntimeExports.jsxs("g",{onMouseEnter:T=>{lt(i),at(T.clientY),c(T.clientX),ot?.(i)},onClick:()=>{(C||w)&&(xe.isEqual(S,i)&&pt?(gt(void 0),C?.(void 0)):(gt(i),C?.(i)))},onMouseMove:T=>{lt(i),at(T.clientY),c(T.clientX)},onMouseLeave:()=>{lt(void 0),c(void 0),at(void 0),ot?.(void 0)},children:[n.jsxRuntimeExports.jsx(Dt.motion.circle,{exit:{cy:y(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{cy:y(0),opacity:0,fill:p},whileInView:{cy:y(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:k?"whileInView":"initial",cx:g(i.id)+g.bandwidth()/2,r:h/m.length<5?0:h/m.length<20?2:4}),Rt?n.jsxRuntimeExports.jsx(Dt.motion.text,{x:g(`${i.id}`)+g.bandwidth()/2,exit:{y:y(0),opacity:0,transition:{duration:r.duration}},style:{textAnchor:"middle",...s?.graphObjectValues||{}},variants:{initial:{y:y(0),opacity:0,fill:p},whileInView:{y:y(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:k?"whileInView":"initial",className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:"-5px",children:ne.numberFormattingFunction(i.line,rt,F,kt,ft)}):null]})},Pt)),t[8]=r,t[9]=u,t[10]=d,t[11]=Ht,t[12]=St,t[13]=Mt,t[14]=o?.graphObjectValues,t[15]=o?.xAxis?.axis,t[16]=o?.xAxis?.labels,t[17]=o?.yAxis?.gridLines,t[18]=o?.yAxis?.labels,t[19]=o?.yAxis?.title,t[20]=Xt,t[21]=M,t[22]=v,t[23]=w,t[24]=a,t[25]=h,t[26]=D,t[27]=k,t[28]=p,t[29]=kt,t[30]=ft,t[31]=l.bottom,t[32]=l.left,t[33]=l.right,t[34]=l.top,t[35]=S,t[36]=rt,t[37]=dt,t[38]=C,t[39]=ot,t[40]=F,t[41]=pt,t[42]=j,t[43]=E,t[44]=Gt,t[45]=Rt,t[46]=s?.graphObjectValues,t[47]=s?.xAxis?.axis,t[48]=s?.xAxis?.labels,t[49]=s?.yAxis?.gridLines,t[50]=s?.yAxis?.labels,t[51]=s?.yAxis?.title,t[52]=Ct,t[53]=P,t[54]=L,t[55]=Y,t[56]=H,t[57]=R,t[58]=G,t[59]=X,t[60]=W,t[61]=N,t[62]=O,t[63]=$,t[64]=q,t[65]=B,t[66]=U,t[67]=z,t[68]=J}else L=t[54],Y=t[55],H=t[56],R=t[57],G=t[58],X=t[59],W=t[60],N=t[61],O=t[62],$=t[63],q=t[64],B=t[65],U=t[66],z=t[67],J=t[68];let K;t[119]!==L||t[120]!==$||t[121]!==q||t[122]!==B?(K=n.jsxRuntimeExports.jsxs(L,{children:[$,q,B]}),t[119]=L,t[120]=$,t[121]=q,t[122]=B,t[123]=K):K=t[123];let b;t[124]!==M?(b=M.filter(ke).map(Me),t[124]=M,t[125]=b):b=t[125];let Q;t[126]!==H||t[127]!==R||t[128]!==K||t[129]!==b||t[130]!==U||t[131]!==z||t[132]!==J?(Q=n.jsxRuntimeExports.jsxs("g",{transform:U,children:[z,J,H,R,K,b]}),t[126]=H,t[127]=R,t[128]=K,t[129]=b,t[130]=U,t[131]=z,t[132]=J,t[133]=Q):Q=t[133];let Z;t[134]!==Y||t[135]!==G||t[136]!==X||t[137]!==W||t[138]!==N||t[139]!==O||t[140]!==Q?(Z=n.jsxRuntimeExports.jsx(Y,{width:G,height:X,viewBox:W,direction:N,ref:O,children:Q}),t[134]=Y,t[135]=G,t[136]=X,t[137]=W,t[138]=N,t[139]=O,t[140]=Q,t[141]=Z):Z=t[141];let _;t[142]!==o?.tooltip||t[143]!==Ot||t[144]!==x||t[145]!==Nt||t[146]!==s?.tooltip||t[147]!==Et?(_=Nt&&Et&&Ot&&x?n.jsxRuntimeExports.jsx(he.Tooltip,{data:Nt,body:Et,xPos:Ot,yPos:x,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[142]=o?.tooltip,t[143]=Ot,t[144]=x,t[145]=Nt,t[146]=s?.tooltip,t[147]=Et,t[148]=_):_=t[148];let tt;t[149]!==o?.modal||t[150]!==w||t[151]!==S?(tt=w&&S!==void 0?n.jsxRuntimeExports.jsx(ye.DetailsModal,{body:w,data:S,setData:gt,className:o?.modal}):null,t[149]=o?.modal,t[150]=w,t[151]=S,t[152]=tt):tt=t[152];let bt;return t[153]!==Z||t[154]!==_||t[155]!==tt?(bt=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[Z,_,tt]}),t[153]=Z,t[154]=_,t[155]=tt,t[156]=bt):bt=t[156],bt}function Me(e){return e.layer}function ke(e){return e.position==="after"}function Se(e){return{...e,line:0}}function Le(e){return e.layer}function Ne(e){return e.position==="before"}function Oe(e){return!ue.checkIfNullOrUndefined(e.line)}function $e(e){return e!=null}function qe(e){return e.line}function Ve(e){return e!=null}function Ie(e){return e.line}function Te(e){return e!=null}function Pe(e){return e.bar}function De(e){return e!=null}function Fe(e){return e.bar}function Ye(e){return e!=null}function He(e){return e.line}function Ge(e){return e!=null}function Xe(e){return e.line}function We(e){return e!=null}function Be(e){return e.line}function Ue(e){return e!=null}function ze(e){return e.bar}function Je(e){return e!=null}function Ke(e){return e.bar}function Qe(e){return e!=null}function Ze(e){return e.bar}function _e(e){return`${e.id}`}function ti(e,t){return{...e,id:`${t}`}}function ei(e){const t=n.compilerRuntimeExports.c(77),{data:v,graphTitle:P,sources:D,graphDescription:d,height:p,width:u,footNote:j,padding:zt,lineColor:Qt,barColor:Ft,sameAxes:Yt,backgroundColor:Et,leftMargin:Rt,rightMargin:ot,topMargin:Ht,bottomMargin:Ct,lineAxisTitle:Gt,barAxisTitle:C,tooltip:pt,relativeHeight:w,onSeriesMouseOver:dt,graphID:ft,graphDownload:Mt,dataDownload:kt,barPadding:St,truncateBy:Lt,showLabels:s,onSeriesMouseClick:o,language:r,colorLegendTitle:F,minHeight:M,theme:rt,ariaLabel:E,resetSelectionOnDoubleClick:Jt,detailsOnClick:ht,showValues:k,noOfTicks:Xt,lineSuffix:Nt,barSuffix:lt,linePrefix:S,barPrefix:gt,curveType:Ot,styles:c,classNames:x,animate:at,precision:Wt,customLayers:yt,naLabel:$t,showColorScale:l,showAxisLabels:h}=e,a=Qt===void 0?oe.Colors.light.categoricalColors.colors[1]:Qt,L=Ft===void 0?oe.Colors.light.categoricalColors.colors[0]:Ft,Y=Yt===void 0?!1:Yt,H=Et===void 0?!1:Et,R=Rt===void 0?80:Rt,G=ot===void 0?80:ot,X=Ht===void 0?20:Ht,W=Ct===void 0?25:Ct,N=Gt===void 0?"Line chart":Gt,O=C===void 0?"Bar graph":C,$=Mt===void 0?!1:Mt,q=kt===void 0?!1:kt,B=St===void 0?.25:St,U=Lt===void 0?999:Lt,z=s===void 0?!0:s,J=r===void 0?"en":r,K=M===void 0?0:M,b=rt===void 0?"light":rt,Q=Jt===void 0?!0:Jt,Z=k===void 0?!0:k,_=Xt===void 0?5:Xt,tt=Nt===void 0?"":Nt,bt=lt===void 0?"":lt,m=S===void 0?"":S,g=gt===void 0?"":gt,qt=Ot===void 0?"curve":Ot,vt=at===void 0?!1:at,jt=Wt===void 0?2:Wt;let ct;t[0]!==yt?(ct=yt===void 0?[]:yt,t[0]=yt,t[1]=ct):ct=t[1];const Bt=ct,At=$t===void 0?"NA":$t,f=l===void 0?!0:l,y=h===void 0?!0:h,[Vt,re]=st.useState(0),[Ut,Kt]=st.useState(0),et=st.useRef(null),ut=st.useRef(null);let V,xt;t[2]===Symbol.for("react.memo_cache_sentinel")?(V=()=>{const mt=new ResizeObserver(Tt=>{re(Tt[0].target.clientWidth||620),Kt(Tt[0].target.clientHeight||480)});return et.current&&mt.observe(et.current),()=>mt.disconnect()},xt=[],t[2]=V,t[3]=xt):(V=t[2],xt=t[3]),st.useEffect(V,xt);const wt=x?.graphContainer,It=c?.graphContainer;let it;t[4]!==x?.description||t[5]!==x?.title||t[6]!==v||t[7]!==q||t[8]!==d||t[9]!==$||t[10]!==P||t[11]!==c?.description||t[12]!==c?.title||t[13]!==u?(it=P||d||$||q?n.jsxRuntimeExports.jsx(we.GraphHeader,{styles:{title:c?.title,description:c?.description},classNames:{title:x?.title,description:x?.description},graphTitle:P,graphDescription:d,width:u,graphDownload:$?ut:void 0,dataDownload:q?v.map(ri).filter(oi).length>0?v.map(si).filter(ni):v.filter(ii):null}):null,t[4]=x?.description,t[5]=x?.title,t[6]=v,t[7]=q,t[8]=d,t[9]=$,t[10]=P,t[11]=c?.description,t[12]=c?.title,t[13]=u,t[14]=it):it=t[14];let nt;t[15]!==vt||t[16]!==O||t[17]!==L||t[18]!==B||t[19]!==g||t[20]!==bt||t[21]!==W||t[22]!==x||t[23]!==F||t[24]!==qt||t[25]!==Bt||t[26]!==v||t[27]!==ht||t[28]!==R||t[29]!==N||t[30]!==a||t[31]!==m||t[32]!==tt||t[33]!==At||t[34]!==_||t[35]!==o||t[36]!==dt||t[37]!==jt||t[38]!==Q||t[39]!==G||t[40]!==Y||t[41]!==y||t[42]!==f||t[43]!==z||t[44]!==Z||t[45]!==c||t[46]!==Ut||t[47]!==Vt||t[48]!==b||t[49]!==pt||t[50]!==X||t[51]!==U?(nt=v.length===0?n.jsxRuntimeExports.jsx(Re.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[f?n.jsxRuntimeExports.jsx(Ee.ColorLegend,{colorDomain:[O,N],colors:[L||oe.Colors[b].categoricalColors.colors[0],a||oe.Colors[b].categoricalColors.colors[1]],colorLegendTitle:F,showNAColor:!1,className:x?.colorLegend}):null,n.jsxRuntimeExports.jsx(fe.GraphArea,{ref:et,children:Vt&&Ut?n.jsxRuntimeExports.jsx(Ce,{data:v,sameAxes:Y,lineColor:a,barColor:L,width:Vt,height:Ut,truncateBy:U,leftMargin:R,rightMargin:G,topMargin:X,bottomMargin:W,axisTitles:[O,N],tooltip:pt,onSeriesMouseOver:dt,barPadding:B,showLabels:z,onSeriesMouseClick:o,resetSelectionOnDoubleClick:Q,detailsOnClick:ht,noOfTicks:_,lineSuffix:tt,barSuffix:bt,linePrefix:m,barPrefix:g,curveType:qt,showValues:Z,styles:c,classNames:x,animate:vt===!0?{duration:.5,once:!0,amount:.5}:vt||{duration:0,once:!0,amount:0},precision:jt,customLayers:Bt,naLabel:At,showAxisLabels:y}):null})]}),t[15]=vt,t[16]=O,t[17]=L,t[18]=B,t[19]=g,t[20]=bt,t[21]=W,t[22]=x,t[23]=F,t[24]=qt,t[25]=Bt,t[26]=v,t[27]=ht,t[28]=R,t[29]=N,t[30]=a,t[31]=m,t[32]=tt,t[33]=At,t[34]=_,t[35]=o,t[36]=dt,t[37]=jt,t[38]=Q,t[39]=G,t[40]=Y,t[41]=y,t[42]=f,t[43]=z,t[44]=Z,t[45]=c,t[46]=Ut,t[47]=Vt,t[48]=b,t[49]=pt,t[50]=X,t[51]=U,t[52]=nt):nt=t[52];let A;t[53]!==x?.footnote||t[54]!==x?.source||t[55]!==j||t[56]!==D||t[57]!==c?.footnote||t[58]!==c?.source||t[59]!==u?(A=D||j?n.jsxRuntimeExports.jsx(Ae.GraphFooter,{styles:{footnote:c?.footnote,source:c?.source},classNames:{footnote:x?.footnote,source:x?.source},sources:D,footNote:j,width:u}):null,t[53]=x?.footnote,t[54]=x?.source,t[55]=j,t[56]=D,t[57]=c?.footnote,t[58]=c?.source,t[59]=u,t[60]=A):A=t[60];let I;return t[61]!==E||t[62]!==H||t[63]!==ft||t[64]!==p||t[65]!==J||t[66]!==K||t[67]!==zt||t[68]!==w||t[69]!==wt||t[70]!==It||t[71]!==it||t[72]!==nt||t[73]!==A||t[74]!==b||t[75]!==u?(I=n.jsxRuntimeExports.jsxs(fe.GraphContainer,{className:wt,style:It,id:ft,ref:ut,"aria-label":E,backgroundColor:H,theme:b,language:J,minHeight:K,width:u,height:p,relativeHeight:w,padding:zt,children:[it,nt,A]}),t[61]=E,t[62]=H,t[63]=ft,t[64]=p,t[65]=J,t[66]=K,t[67]=zt,t[68]=w,t[69]=wt,t[70]=It,t[71]=it,t[72]=nt,t[73]=A,t[74]=b,t[75]=u,t[76]=I):I=t[76],I}function ii(e){return e!==void 0}function ni(e){return e!==void 0}function si(e){return e.data}function oi(e){return e!==void 0}function ri(e){return e.data}exports.ParetoChart=ei;
2
2
  //# sourceMappingURL=ParetoChart.cjs.map
@@ -10,7 +10,7 @@ import { X as yi } from "./XAxesLabels-Dy8E1SEo.js";
10
10
  import { D as bi } from "./DetailsModal-0Ry5nXiC.js";
11
11
  import { b as vi } from "./band-DHUZ2X7J.js";
12
12
  import { a as pi } from "./linear-BqltdMeF.js";
13
- import { l as Ai, c as wi } from "./line-CPfhohvF.js";
13
+ import { l as Ai, c as wi } from "./line-DFlZsxI1.js";
14
14
  import { c as ji, s as Mi, a as Ci, m as ki } from "./step-BrDul-H4.js";
15
15
  import { u as Li } from "./use-in-view-Cxa7y1TH.js";
16
16
  import { m as Et } from "./proxy-BxkFHwUw.js";
@@ -484,6 +484,7 @@ declare interface GraphSettingsDataType {
484
484
  dotBorderColor?: string;
485
485
  mapColorLegendTitle?: string;
486
486
  choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
487
+ trackColor?: string;
487
488
  }
488
489
 
489
490
  declare type GraphType = GraphTypeForGriddedGraph;
@@ -503,6 +503,7 @@ declare interface GraphSettingsDataType {
503
503
  dotBorderColor?: string;
504
504
  mapColorLegendTitle?: string;
505
505
  choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
506
+ trackColor?: string;
506
507
  }
507
508
 
508
509
  declare type GraphType = GraphTypeForGriddedGraph;
@@ -405,6 +405,7 @@ declare interface GraphSettingsDataType {
405
405
  dotBorderColor?: string;
406
406
  mapColorLegendTitle?: string;
407
407
  choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
408
+ trackColor?: string;
408
409
  }
409
410
 
410
411
  declare type GraphType = GraphTypeForGriddedGraph;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),C=require("react"),Ht=require("./index-DQA8q5sC.cjs"),Wt=require("./Tooltip-uUdw6wJL.cjs"),N=require("./Colors.cjs"),Pt=require("./numberFormattingFunction-02t-wJta.cjs"),z=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Bt=require("./DetailsModal-BN0HDFlV.cjs"),Nt=require("./linear-BwPAspcq.cjs"),Vt=require("./line-DHV4JwCR.cjs"),Xt=require("./use-in-view-QcfiW0w3.cjs"),bt=require("./proxy-BxvUI_9l.cjs"),Yt=require("./index-DG2bgAva.cjs"),zt=require("./GraphFooter.cjs"),Jt=require("./GraphHeader.cjs"),Kt=require("./EmptyState-sAEZ_5rU.cjs"),Qt=require("./ColorLegendWithMouseOver.cjs"),St=require("./uniqBy-O05lp2S5.cjs"),At=require("./GraphContainer-d8A46BK2.cjs");var Zt=Dt(Vt.curveLinear);function qt(e){this._curve=e}qt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Dt(e){function t(s){return new qt(e(s))}return t._curve=e,t}function te(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(s){return arguments.length?t(Dt(s)):t()._curve},e}function ee(){return te(Vt.line().curve(Zt))}function wt(){}function Ot(e,t,s){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-s),e._x2,e._y2)}function Lt(e,t){this._context=e,this._k=(1-t)/6}Lt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ot(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ot(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function s(c){return new Lt(c,t)}return s.tension=function(c){return e(+c)},s})(0);function Tt(e,t){this._context=e,this._k=(1-t)/6}Tt.prototype={areaStart:wt,areaEnd:wt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ot(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ie=(function e(t){function s(c){return new Tt(c,t)}return s.tension=function(c){return e(+c)},s})(0);function Ft(e){this._context=e}Ft.prototype={areaStart:wt,areaEnd:wt,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 ne(e){return new Ft(e)}function se(e){const t=n.compilerRuntimeExports.c(106),{data:s,radius:c,lineColors:r,tooltip:H,onSeriesMouseOver:W,onSeriesMouseClick:p,colorDomain:g,detailsOnClick:R,styles:u,classNames:a,selectedColor:S,axisLabels:J,strokeWidth:K,showValues:mt,showDots:dt,rightMargin:Q,topMargin:Z,bottomMargin:B,leftMargin:X,curveType:jt,noOfTicks:ft,minValue:j,maxValue:A,resetSelectionOnDoubleClick:V,fillShape:tt,highlightedLines:q,animate:h,dimmedOpacity:y,precision:et,customLayers:k}=e,kt=C.useRef(null);let M;t[0]!==h.amount||t[1]!==h.once?(M={once:h.once,amount:h.amount},t[0]=h.amount,t[1]=h.once,t[2]=M):M=t[2];const d=Xt.useInView(kt,M),gt=jt==="linear"?ne:ie;let it;t[3]!==B||t[4]!==X||t[5]!==Q||t[6]!==Z?(it={top:Z,bottom:B,left:X,right:Q},t[3]=B,t[4]=X,t[5]=Q,t[6]=Z,t[7]=it):it=t[7];const D=it,v=Math.min((2*c-X-Q)/2,(2*c-Z-B)/2),[_,yt]=C.useState(void 0),[I,_t]=C.useState(void 0),[nt,Mt]=C.useState(void 0),[Y,vt]=C.useState(void 0);let L,T,w,F,$,G,E,O,o,P,st,U,ot,rt;if(t[8]!==h.duration||t[9]!==J||t[10]!==a?.graphObjectValues||t[11]!==a?.xAxis?.axis||t[12]!==a?.xAxis?.gridLines||t[13]!==a?.xAxis?.labels||t[14]!==g||t[15]!==gt||t[16]!==k||t[17]!==s||t[18]!==R||t[19]!==y||t[20]!==tt||t[21]!==q||t[22]!==d||t[23]!==r||t[24]!==D.left||t[25]!==D.top||t[26]!==A||t[27]!==j||t[28]!==I||t[29]!==_||t[30]!==ft||t[31]!==p||t[32]!==W||t[33]!==et||t[34]!==c||t[35]!==v||t[36]!==V||t[37]!==S||t[38]!==dt||t[39]!==mt||t[40]!==K||t[41]!==u?.graphObjectValues||t[42]!==u?.xAxis?.axis||t[43]!==u?.xAxis?.gridLines||t[44]!==u?.xAxis?.labels){const l=Nt.linear().domain([0,s[0].values.length]).range([0,2*Math.PI]);let Ct;t[59]!==s||t[60]!==A?(Ct=z.checkIfNullOrUndefined(A)?Math.max(...s.map(be))<0?0:Math.max(...s.map(Me)):A,t[59]=s,t[60]=A,t[61]=Ct):Ct=t[61];const $t=Ct;let Rt;t[62]!==s||t[63]!==j?(Rt=z.checkIfNullOrUndefined(j)?Math.min(...s.map(ye))>=0?0:Math.min(...s.map(fe)):j,t[62]=s,t[63]=j,t[64]=Rt):Rt=t[64];const Gt=Rt,b=Nt.linear().domain([Gt,$t]).range([0,v]).nice(),Ut=b.ticks(ft),It=ee().radius(i=>b(i)).angle((i,x)=>l(x)).curve(gt);T=bt.motion.svg,ot=`${c*2}px`,rt=`${c*2}px`,w=`0 0 ${c*2} ${c*2}`,F="ltr",$=kt,G="mx-auto",st=`translate(${D.left},${D.top})`,t[65]!==k?(U=k.filter(de).map(me),t[65]=k,t[66]=U):U=t[66],O=`translate(${v},${v})`,o=J.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{x1:0,y1:0,x2:Math.cos(l(x)-Math.PI/2)*v,y2:Math.sin(l(x)-Math.PI/2)*v,className:n.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.axis),style:u?.xAxis?.axis},x),n.jsxRuntimeExports.jsx("text",{x:Math.cos(l(x)-Math.PI/2)*(v+6),y:Math.sin(l(x)-Math.PI/2)*(v+6),style:{textAnchor:Math.cos(l(x)-Math.PI/2)<0?"end":Math.cos(l(x)-Math.PI/2)<1e-5?"middle":"start",...u?.xAxis?.labels||""},dy:Math.sin(l(x)-Math.PI/2)<0?0:Math.sin(l(x)-Math.PI/2)<1e-5?5:10,className:n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",a?.xAxis?.labels),children:i})]},x)),P=Ut.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("path",{d:It(Array(J.length).fill(i))||"",className:n.mo("stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.gridLines),style:{...u?.xAxis?.gridLines,fill:"none"}}),n.jsxRuntimeExports.jsx("foreignObject",{x:-25,y:Math.sin(-Math.PI/2)*b(i)>-1e-4?Math.sin(-Math.PI/2)*b(i)-7:Math.sin(-Math.PI/2)*b(i)-5,width:50,height:12,children:n.jsxRuntimeExports.jsx("div",{className:"flex justify-center",children:n.jsxRuntimeExports.jsx("p",{className:n.mo("fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700",a?.xAxis?.labels),style:u?.xAxis?.labels,children:Pt.numberFormattingFunction(i,"NA",et)})})})]},x)),L=Yt.AnimatePresence,E=s.map((i,x)=>n.jsxRuntimeExports.jsxs(bt.motion.g,{variants:{initial:{opacity:_?i.label===_.label?1:y:S?i.color&&r[g.indexOf(i.color)]===S?1:y:q.length!==0?i.label&&q.indexOf(i.label)!==-1?1:.3:1},whileInView:{opacity:_?i.label===_.label?1:y:S?i.color&&r[g.indexOf(i.color)]===S?1:y:q.length!==0?i.label&&q.indexOf(i.label)!==-1?1:y:1,transition:{duration:h.duration}}},initial:"initial",animate:d?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},onMouseEnter:m=>{yt(i),vt(m.clientY),Mt(m.clientX),W?.(i)},onMouseMove:m=>{yt(i),vt(m.clientY),Mt(m.clientX)},onMouseLeave:()=>{yt(void 0),Mt(void 0),vt(void 0),W?.(void 0)},onClick:()=>{(p||R)&&(Ht.isEqual(I,i)&&V?(_t(void 0),p?.(void 0)):(_t(i),p?.(i)))},children:[n.jsxRuntimeExports.jsx(bt.motion.path,{d:It(i.values)||"",variants:{initial:{d:It(i.values.map(pe))||"",stroke:s.filter(xe).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray,fill:tt?s.filter(he).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray:"none",strokeWidth:K},whileInView:{d:It(i.values)||"",transition:{duration:h.duration},stroke:s.filter(ue).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray,fill:tt?s.filter(ce).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray:"none",strokeWidth:K}},initial:"initial",animate:d?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},style:{fillOpacity:.1}}),n.jsxRuntimeExports.jsx("g",{children:i.values.map((m,f)=>n.jsxRuntimeExports.jsx("g",{children:z.checkIfNullOrUndefined(m)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[dt?n.jsxRuntimeExports.jsx(bt.motion.circle,{r:4,variants:{initial:{cx:0,cy:0,opacity:0,fill:s.filter(le).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray},whileInView:{cx:Math.cos(l(f)-Math.PI/2)*b(m),cy:Math.sin(l(f)-Math.PI/2)*b(m),opacity:1,transition:{duration:h.duration},fill:s.filter(ae).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray}},initial:"initial",animate:d?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}}}):null,mt?n.jsxRuntimeExports.jsx(bt.motion.text,{style:{...u?.graphObjectValues||{}},dy:Math.sin(l(f)-Math.PI/2)<0?10:(Math.sin(l(f)-Math.PI/2)<1e-5,0),className:n.mo("graph-value text-xs font-bold",a?.graphObjectValues),variants:{initial:{opacity:0,x:Math.cos(l(f)-Math.PI/2)*(b(m)+6),y:Math.sin(l(f)-Math.PI/2)*(b(m)+6),fill:r[x],textAnchor:Math.cos(l(f)-Math.PI/2)<0?"end":Math.cos(l(f)-Math.PI/2)<1e-5?"middle":"start"},whileInView:{opacity:1,x:Math.cos(l(f)-Math.PI/2)*(b(m)+6),y:Math.sin(l(f)-Math.PI/2)*(b(m)+6),fill:r[x],textAnchor:Math.cos(l(f)-Math.PI/2)<0?"end":Math.cos(l(f)-Math.PI/2)<1e-5?"middle":"start",transition:{duration:h.duration}}},initial:"initial",animate:d?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},children:Pt.numberFormattingFunction(m,"NA",et)}):null]})},f))})]},i.label||x)),t[8]=h.duration,t[9]=J,t[10]=a?.graphObjectValues,t[11]=a?.xAxis?.axis,t[12]=a?.xAxis?.gridLines,t[13]=a?.xAxis?.labels,t[14]=g,t[15]=gt,t[16]=k,t[17]=s,t[18]=R,t[19]=y,t[20]=tt,t[21]=q,t[22]=d,t[23]=r,t[24]=D.left,t[25]=D.top,t[26]=A,t[27]=j,t[28]=I,t[29]=_,t[30]=ft,t[31]=p,t[32]=W,t[33]=et,t[34]=c,t[35]=v,t[36]=V,t[37]=S,t[38]=dt,t[39]=mt,t[40]=K,t[41]=u?.graphObjectValues,t[42]=u?.xAxis?.axis,t[43]=u?.xAxis?.gridLines,t[44]=u?.xAxis?.labels,t[45]=L,t[46]=T,t[47]=w,t[48]=F,t[49]=$,t[50]=G,t[51]=E,t[52]=O,t[53]=o,t[54]=P,t[55]=st,t[56]=U,t[57]=ot,t[58]=rt}else L=t[45],T=t[46],w=t[47],F=t[48],$=t[49],G=t[50],E=t[51],O=t[52],o=t[53],P=t[54],st=t[55],U=t[56],ot=t[57],rt=t[58];let at;t[67]!==L||t[68]!==E?(at=n.jsxRuntimeExports.jsx(L,{children:E}),t[67]=L,t[68]=E,t[69]=at):at=t[69];let lt;t[70]!==at||t[71]!==O||t[72]!==o||t[73]!==P?(lt=n.jsxRuntimeExports.jsxs("g",{transform:O,children:[o,P,at]}),t[70]=at,t[71]=O,t[72]=o,t[73]=P,t[74]=lt):lt=t[74];let ct;t[75]!==k?(ct=k.filter(re).map(oe),t[75]=k,t[76]=ct):ct=t[76];let ut;t[77]!==lt||t[78]!==ct||t[79]!==st||t[80]!==U?(ut=n.jsxRuntimeExports.jsxs("g",{transform:st,children:[U,lt,ct]}),t[77]=lt,t[78]=ct,t[79]=st,t[80]=U,t[81]=ut):ut=t[81];let ht;t[82]!==T||t[83]!==w||t[84]!==F||t[85]!==$||t[86]!==G||t[87]!==ut||t[88]!==ot||t[89]!==rt?(ht=n.jsxRuntimeExports.jsx(T,{width:ot,height:rt,viewBox:w,direction:F,ref:$,className:G,children:ut}),t[82]=T,t[83]=w,t[84]=F,t[85]=$,t[86]=G,t[87]=ut,t[88]=ot,t[89]=rt,t[90]=ht):ht=t[90];let xt;t[91]!==a?.tooltip||t[92]!==nt||t[93]!==Y||t[94]!==_||t[95]!==u?.tooltip||t[96]!==H?(xt=_&&H&&nt&&Y?n.jsxRuntimeExports.jsx(Wt.Tooltip,{data:_,body:H,xPos:nt,yPos:Y,backgroundStyle:u?.tooltip,className:a?.tooltip}):null,t[91]=a?.tooltip,t[92]=nt,t[93]=Y,t[94]=_,t[95]=u?.tooltip,t[96]=H,t[97]=xt):xt=t[97];let pt;t[98]!==a?.modal||t[99]!==R||t[100]!==I?(pt=R&&I!==void 0?n.jsxRuntimeExports.jsx(Bt.DetailsModal,{body:R,data:I,setData:_t,className:a?.modal}):null,t[98]=a?.modal,t[99]=R,t[100]=I,t[101]=pt):pt=t[101];let Et;return t[102]!==ht||t[103]!==xt||t[104]!==pt?(Et=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[ht,xt,pt]}),t[102]=ht,t[103]=xt,t[104]=pt,t[105]=Et):Et=t[105],Et}function oe(e){return e.layer}function re(e){return e.position==="after"}function ae(e){return e.color}function le(e){return e.color}function ce(e){return e.color}function ue(e){return e.color}function he(e){return e.color}function xe(e){return e.color}function pe(e){return 0}function me(e){return e.layer}function de(e){return e.position==="before"}function fe(e){return Math.min(...e.values.filter(ge))}function ge(e){return!z.checkIfNullOrUndefined(e)}function ye(e){return Math.min(...e.values.filter(_e))}function _e(e){return!z.checkIfNullOrUndefined(e)}function Me(e){return Math.max(...e.values.filter(ve))}function ve(e){return!z.checkIfNullOrUndefined(e)}function be(e){return Math.max(...e.values.filter(je))}function je(e){return!z.checkIfNullOrUndefined(e)}function ke(e){const{graphTitle:t,colors:s,sources:c,graphDescription:r,footNote:H,radius:W,data:p,showColorScale:g=!0,padding:R,backgroundColor:u=!1,tooltip:a,onSeriesMouseOver:S,graphID:J,onSeriesMouseClick:K,topMargin:mt=75,bottomMargin:dt=75,leftMargin:Q=75,rightMargin:Z=75,graphDownload:B=!1,dataDownload:X=!1,colorDomain:jt,language:ft="en",theme:j="light",highlightedLines:A=[],width:V,height:tt,minHeight:q=0,strokeWidth:h=2,relativeHeight:y,ariaLabel:et,colorLegendTitle:k,detailsOnClick:kt,styles:M,classNames:d,showNAColor:gt=!0,axisLabels:it,showDots:D=!0,showValues:v=!1,curveType:_="curve",noOfTicks:yt=5,minValue:I,maxValue:_t,fillShape:nt=!1,resetSelectionOnDoubleClick:Mt=!0,animate:Y=!1,dimmedOpacity:vt=.3,precision:L=2,customLayers:T=[]}=e,[w,F]=C.useState(0),[$,G]=C.useState(void 0),E=C.useRef(null),O=C.useRef(null);return C.useEffect(()=>{const o=new ResizeObserver(P=>{F((Math.min(P[0].target.clientWidth||620,P[0].target.clientHeight||480,W||1/0)||420)/2)});return E.current&&o.observe(E.current),()=>o.disconnect()},[W]),n.jsxRuntimeExports.jsxs(At.GraphContainer,{className:d?.graphContainer,style:M?.graphContainer,id:J,ref:O,"aria-label":et,backgroundColor:u,theme:j,language:ft,minHeight:q,width:V,height:tt,relativeHeight:y,padding:R,children:[t||r||B||X?n.jsxRuntimeExports.jsx(Jt.GraphHeader,{styles:{title:M?.title,description:M?.description},classNames:{title:d?.title,description:d?.description},graphTitle:t,graphDescription:r,width:V,graphDownload:B?O:void 0,dataDownload:X?p.map(o=>o.data).filter(o=>o!==void 0).length>0?p.map(o=>o.data).filter(o=>o!==void 0):p.filter(o=>o!==void 0):null}):null,p.length===0?n.jsxRuntimeExports.jsx(Kt.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[g&&p.filter(o=>o.color).length!==0?n.jsxRuntimeExports.jsx(Qt.ColorLegendWithMouseOver,{width:V,colorLegendTitle:k,colors:s||N.Colors[j].categoricalColors.colors,colorDomain:jt||St.uniqBy(p,"color",!0),setSelectedColor:G,showNAColor:gt,className:d?.colorLegend,isCenter:!0}):null,n.jsxRuntimeExports.jsx(At.GraphArea,{ref:E,children:w?n.jsxRuntimeExports.jsx(se,{data:p,lineColors:p.filter(o=>o.color).length===0?s?[s]:[N.Colors.primaryColors["blue-600"]]:s||N.Colors[j].categoricalColors.colors,radius:w,tooltip:a,colorDomain:jt||St.uniqBy(p,"color",!0),onSeriesMouseOver:S,onSeriesMouseClick:K,styles:M,detailsOnClick:kt,selectedColor:$,axisLabels:it,strokeWidth:h,showValues:v,showDots:D,topMargin:mt,bottomMargin:dt,leftMargin:Q,rightMargin:Z,curveType:_,noOfTicks:yt,minValue:I,maxValue:_t,fillShape:nt,highlightedLines:A,resetSelectionOnDoubleClick:Mt,animate:Y===!0?{duration:.5,once:!0,amount:.5}:Y||{duration:0,once:!0,amount:0},dimmedOpacity:vt,precision:L,customLayers:T}):null})]}),c||H?n.jsxRuntimeExports.jsx(zt.GraphFooter,{styles:{footnote:M?.footnote,source:M?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:c,footNote:H,width:V}):null]})}exports.RadarChart=ke;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-CTPQjnHt.cjs"),C=require("react"),Ht=require("./index-DQA8q5sC.cjs"),Wt=require("./Tooltip-uUdw6wJL.cjs"),N=require("./Colors.cjs"),Pt=require("./numberFormattingFunction-02t-wJta.cjs"),z=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Bt=require("./DetailsModal-BN0HDFlV.cjs"),Nt=require("./linear-BwPAspcq.cjs"),Vt=require("./line-DaEMhXmx.cjs"),Xt=require("./use-in-view-QcfiW0w3.cjs"),bt=require("./proxy-BxvUI_9l.cjs"),Yt=require("./index-DG2bgAva.cjs"),zt=require("./GraphFooter.cjs"),Jt=require("./GraphHeader.cjs"),Kt=require("./EmptyState-sAEZ_5rU.cjs"),Qt=require("./ColorLegendWithMouseOver.cjs"),St=require("./uniqBy-O05lp2S5.cjs"),At=require("./GraphContainer-d8A46BK2.cjs");var Zt=Dt(Vt.curveLinear);function qt(e){this._curve=e}qt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Dt(e){function t(s){return new qt(e(s))}return t._curve=e,t}function te(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(s){return arguments.length?t(Dt(s)):t()._curve},e}function ee(){return te(Vt.line().curve(Zt))}function wt(){}function Ot(e,t,s){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-s),e._x2,e._y2)}function Lt(e,t){this._context=e,this._k=(1-t)/6}Lt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ot(this,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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ot(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function s(c){return new Lt(c,t)}return s.tension=function(c){return e(+c)},s})(0);function Tt(e,t){this._context=e,this._k=(1-t)/6}Tt.prototype={areaStart:wt,areaEnd:wt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ot(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const ie=(function e(t){function s(c){return new Tt(c,t)}return s.tension=function(c){return e(+c)},s})(0);function Ft(e){this._context=e}Ft.prototype={areaStart:wt,areaEnd:wt,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 ne(e){return new Ft(e)}function se(e){const t=n.compilerRuntimeExports.c(106),{data:s,radius:c,lineColors:r,tooltip:H,onSeriesMouseOver:W,onSeriesMouseClick:p,colorDomain:g,detailsOnClick:R,styles:u,classNames:a,selectedColor:S,axisLabels:J,strokeWidth:K,showValues:mt,showDots:dt,rightMargin:Q,topMargin:Z,bottomMargin:B,leftMargin:X,curveType:jt,noOfTicks:ft,minValue:j,maxValue:A,resetSelectionOnDoubleClick:V,fillShape:tt,highlightedLines:q,animate:h,dimmedOpacity:y,precision:et,customLayers:k}=e,kt=C.useRef(null);let M;t[0]!==h.amount||t[1]!==h.once?(M={once:h.once,amount:h.amount},t[0]=h.amount,t[1]=h.once,t[2]=M):M=t[2];const d=Xt.useInView(kt,M),gt=jt==="linear"?ne:ie;let it;t[3]!==B||t[4]!==X||t[5]!==Q||t[6]!==Z?(it={top:Z,bottom:B,left:X,right:Q},t[3]=B,t[4]=X,t[5]=Q,t[6]=Z,t[7]=it):it=t[7];const D=it,v=Math.min((2*c-X-Q)/2,(2*c-Z-B)/2),[_,yt]=C.useState(void 0),[I,_t]=C.useState(void 0),[nt,Mt]=C.useState(void 0),[Y,vt]=C.useState(void 0);let L,T,w,F,$,G,E,O,o,P,st,U,ot,rt;if(t[8]!==h.duration||t[9]!==J||t[10]!==a?.graphObjectValues||t[11]!==a?.xAxis?.axis||t[12]!==a?.xAxis?.gridLines||t[13]!==a?.xAxis?.labels||t[14]!==g||t[15]!==gt||t[16]!==k||t[17]!==s||t[18]!==R||t[19]!==y||t[20]!==tt||t[21]!==q||t[22]!==d||t[23]!==r||t[24]!==D.left||t[25]!==D.top||t[26]!==A||t[27]!==j||t[28]!==I||t[29]!==_||t[30]!==ft||t[31]!==p||t[32]!==W||t[33]!==et||t[34]!==c||t[35]!==v||t[36]!==V||t[37]!==S||t[38]!==dt||t[39]!==mt||t[40]!==K||t[41]!==u?.graphObjectValues||t[42]!==u?.xAxis?.axis||t[43]!==u?.xAxis?.gridLines||t[44]!==u?.xAxis?.labels){const l=Nt.linear().domain([0,s[0].values.length]).range([0,2*Math.PI]);let Ct;t[59]!==s||t[60]!==A?(Ct=z.checkIfNullOrUndefined(A)?Math.max(...s.map(be))<0?0:Math.max(...s.map(Me)):A,t[59]=s,t[60]=A,t[61]=Ct):Ct=t[61];const $t=Ct;let Rt;t[62]!==s||t[63]!==j?(Rt=z.checkIfNullOrUndefined(j)?Math.min(...s.map(ye))>=0?0:Math.min(...s.map(fe)):j,t[62]=s,t[63]=j,t[64]=Rt):Rt=t[64];const Gt=Rt,b=Nt.linear().domain([Gt,$t]).range([0,v]).nice(),Ut=b.ticks(ft),It=ee().radius(i=>b(i)).angle((i,x)=>l(x)).curve(gt);T=bt.motion.svg,ot=`${c*2}px`,rt=`${c*2}px`,w=`0 0 ${c*2} ${c*2}`,F="ltr",$=kt,G="mx-auto",st=`translate(${D.left},${D.top})`,t[65]!==k?(U=k.filter(de).map(me),t[65]=k,t[66]=U):U=t[66],O=`translate(${v},${v})`,o=J.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{x1:0,y1:0,x2:Math.cos(l(x)-Math.PI/2)*v,y2:Math.sin(l(x)-Math.PI/2)*v,className:n.mo("stroke-1 stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.axis),style:u?.xAxis?.axis},x),n.jsxRuntimeExports.jsx("text",{x:Math.cos(l(x)-Math.PI/2)*(v+6),y:Math.sin(l(x)-Math.PI/2)*(v+6),style:{textAnchor:Math.cos(l(x)-Math.PI/2)<0?"end":Math.cos(l(x)-Math.PI/2)<1e-5?"middle":"start",...u?.xAxis?.labels||""},dy:Math.sin(l(x)-Math.PI/2)<0?0:Math.sin(l(x)-Math.PI/2)<1e-5?5:10,className:n.mo("fill-primary-gray-700 dark:fill-primary-gray-300 text-xs",a?.xAxis?.labels),children:i})]},x)),P=Ut.map((i,x)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("path",{d:It(Array(J.length).fill(i))||"",className:n.mo("stroke-primary-gray-500 dark:stroke-primary-gray-550",a?.xAxis?.gridLines),style:{...u?.xAxis?.gridLines,fill:"none"}}),n.jsxRuntimeExports.jsx("foreignObject",{x:-25,y:Math.sin(-Math.PI/2)*b(i)>-1e-4?Math.sin(-Math.PI/2)*b(i)-7:Math.sin(-Math.PI/2)*b(i)-5,width:50,height:12,children:n.jsxRuntimeExports.jsx("div",{className:"flex justify-center",children:n.jsxRuntimeExports.jsx("p",{className:n.mo("fill-primary-gray-500 dark:fill-primary-gray-550 text-xs m-0 py-0 px-1.5 text-center leading-none bg-primary-white dark:bg-primary-gray-700",a?.xAxis?.labels),style:u?.xAxis?.labels,children:Pt.numberFormattingFunction(i,"NA",et)})})})]},x)),L=Yt.AnimatePresence,E=s.map((i,x)=>n.jsxRuntimeExports.jsxs(bt.motion.g,{variants:{initial:{opacity:_?i.label===_.label?1:y:S?i.color&&r[g.indexOf(i.color)]===S?1:y:q.length!==0?i.label&&q.indexOf(i.label)!==-1?1:.3:1},whileInView:{opacity:_?i.label===_.label?1:y:S?i.color&&r[g.indexOf(i.color)]===S?1:y:q.length!==0?i.label&&q.indexOf(i.label)!==-1?1:y:1,transition:{duration:h.duration}}},initial:"initial",animate:d?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},onMouseEnter:m=>{yt(i),vt(m.clientY),Mt(m.clientX),W?.(i)},onMouseMove:m=>{yt(i),vt(m.clientY),Mt(m.clientX)},onMouseLeave:()=>{yt(void 0),Mt(void 0),vt(void 0),W?.(void 0)},onClick:()=>{(p||R)&&(Ht.isEqual(I,i)&&V?(_t(void 0),p?.(void 0)):(_t(i),p?.(i)))},children:[n.jsxRuntimeExports.jsx(bt.motion.path,{d:It(i.values)||"",variants:{initial:{d:It(i.values.map(pe))||"",stroke:s.filter(xe).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray,fill:tt?s.filter(he).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray:"none",strokeWidth:K},whileInView:{d:It(i.values)||"",transition:{duration:h.duration},stroke:s.filter(ue).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray,fill:tt?s.filter(ce).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray:"none",strokeWidth:K}},initial:"initial",animate:d?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},style:{fillOpacity:.1}}),n.jsxRuntimeExports.jsx("g",{children:i.values.map((m,f)=>n.jsxRuntimeExports.jsx("g",{children:z.checkIfNullOrUndefined(m)?null:n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[dt?n.jsxRuntimeExports.jsx(bt.motion.circle,{r:4,variants:{initial:{cx:0,cy:0,opacity:0,fill:s.filter(le).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray},whileInView:{cx:Math.cos(l(f)-Math.PI/2)*b(m),cy:Math.sin(l(f)-Math.PI/2)*b(m),opacity:1,transition:{duration:h.duration},fill:s.filter(ae).length===0?r[0]:i.color?r[g.indexOf(i.color)]:N.Colors.gray}},initial:"initial",animate:d?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}}}):null,mt?n.jsxRuntimeExports.jsx(bt.motion.text,{style:{...u?.graphObjectValues||{}},dy:Math.sin(l(f)-Math.PI/2)<0?10:(Math.sin(l(f)-Math.PI/2)<1e-5,0),className:n.mo("graph-value text-xs font-bold",a?.graphObjectValues),variants:{initial:{opacity:0,x:Math.cos(l(f)-Math.PI/2)*(b(m)+6),y:Math.sin(l(f)-Math.PI/2)*(b(m)+6),fill:r[x],textAnchor:Math.cos(l(f)-Math.PI/2)<0?"end":Math.cos(l(f)-Math.PI/2)<1e-5?"middle":"start"},whileInView:{opacity:1,x:Math.cos(l(f)-Math.PI/2)*(b(m)+6),y:Math.sin(l(f)-Math.PI/2)*(b(m)+6),fill:r[x],textAnchor:Math.cos(l(f)-Math.PI/2)<0?"end":Math.cos(l(f)-Math.PI/2)<1e-5?"middle":"start",transition:{duration:h.duration}}},initial:"initial",animate:d?"whileInView":"initial",exit:{opacity:0,transition:{duration:h.duration}},children:Pt.numberFormattingFunction(m,"NA",et)}):null]})},f))})]},i.label||x)),t[8]=h.duration,t[9]=J,t[10]=a?.graphObjectValues,t[11]=a?.xAxis?.axis,t[12]=a?.xAxis?.gridLines,t[13]=a?.xAxis?.labels,t[14]=g,t[15]=gt,t[16]=k,t[17]=s,t[18]=R,t[19]=y,t[20]=tt,t[21]=q,t[22]=d,t[23]=r,t[24]=D.left,t[25]=D.top,t[26]=A,t[27]=j,t[28]=I,t[29]=_,t[30]=ft,t[31]=p,t[32]=W,t[33]=et,t[34]=c,t[35]=v,t[36]=V,t[37]=S,t[38]=dt,t[39]=mt,t[40]=K,t[41]=u?.graphObjectValues,t[42]=u?.xAxis?.axis,t[43]=u?.xAxis?.gridLines,t[44]=u?.xAxis?.labels,t[45]=L,t[46]=T,t[47]=w,t[48]=F,t[49]=$,t[50]=G,t[51]=E,t[52]=O,t[53]=o,t[54]=P,t[55]=st,t[56]=U,t[57]=ot,t[58]=rt}else L=t[45],T=t[46],w=t[47],F=t[48],$=t[49],G=t[50],E=t[51],O=t[52],o=t[53],P=t[54],st=t[55],U=t[56],ot=t[57],rt=t[58];let at;t[67]!==L||t[68]!==E?(at=n.jsxRuntimeExports.jsx(L,{children:E}),t[67]=L,t[68]=E,t[69]=at):at=t[69];let lt;t[70]!==at||t[71]!==O||t[72]!==o||t[73]!==P?(lt=n.jsxRuntimeExports.jsxs("g",{transform:O,children:[o,P,at]}),t[70]=at,t[71]=O,t[72]=o,t[73]=P,t[74]=lt):lt=t[74];let ct;t[75]!==k?(ct=k.filter(re).map(oe),t[75]=k,t[76]=ct):ct=t[76];let ut;t[77]!==lt||t[78]!==ct||t[79]!==st||t[80]!==U?(ut=n.jsxRuntimeExports.jsxs("g",{transform:st,children:[U,lt,ct]}),t[77]=lt,t[78]=ct,t[79]=st,t[80]=U,t[81]=ut):ut=t[81];let ht;t[82]!==T||t[83]!==w||t[84]!==F||t[85]!==$||t[86]!==G||t[87]!==ut||t[88]!==ot||t[89]!==rt?(ht=n.jsxRuntimeExports.jsx(T,{width:ot,height:rt,viewBox:w,direction:F,ref:$,className:G,children:ut}),t[82]=T,t[83]=w,t[84]=F,t[85]=$,t[86]=G,t[87]=ut,t[88]=ot,t[89]=rt,t[90]=ht):ht=t[90];let xt;t[91]!==a?.tooltip||t[92]!==nt||t[93]!==Y||t[94]!==_||t[95]!==u?.tooltip||t[96]!==H?(xt=_&&H&&nt&&Y?n.jsxRuntimeExports.jsx(Wt.Tooltip,{data:_,body:H,xPos:nt,yPos:Y,backgroundStyle:u?.tooltip,className:a?.tooltip}):null,t[91]=a?.tooltip,t[92]=nt,t[93]=Y,t[94]=_,t[95]=u?.tooltip,t[96]=H,t[97]=xt):xt=t[97];let pt;t[98]!==a?.modal||t[99]!==R||t[100]!==I?(pt=R&&I!==void 0?n.jsxRuntimeExports.jsx(Bt.DetailsModal,{body:R,data:I,setData:_t,className:a?.modal}):null,t[98]=a?.modal,t[99]=R,t[100]=I,t[101]=pt):pt=t[101];let Et;return t[102]!==ht||t[103]!==xt||t[104]!==pt?(Et=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[ht,xt,pt]}),t[102]=ht,t[103]=xt,t[104]=pt,t[105]=Et):Et=t[105],Et}function oe(e){return e.layer}function re(e){return e.position==="after"}function ae(e){return e.color}function le(e){return e.color}function ce(e){return e.color}function ue(e){return e.color}function he(e){return e.color}function xe(e){return e.color}function pe(e){return 0}function me(e){return e.layer}function de(e){return e.position==="before"}function fe(e){return Math.min(...e.values.filter(ge))}function ge(e){return!z.checkIfNullOrUndefined(e)}function ye(e){return Math.min(...e.values.filter(_e))}function _e(e){return!z.checkIfNullOrUndefined(e)}function Me(e){return Math.max(...e.values.filter(ve))}function ve(e){return!z.checkIfNullOrUndefined(e)}function be(e){return Math.max(...e.values.filter(je))}function je(e){return!z.checkIfNullOrUndefined(e)}function ke(e){const{graphTitle:t,colors:s,sources:c,graphDescription:r,footNote:H,radius:W,data:p,showColorScale:g=!0,padding:R,backgroundColor:u=!1,tooltip:a,onSeriesMouseOver:S,graphID:J,onSeriesMouseClick:K,topMargin:mt=75,bottomMargin:dt=75,leftMargin:Q=75,rightMargin:Z=75,graphDownload:B=!1,dataDownload:X=!1,colorDomain:jt,language:ft="en",theme:j="light",highlightedLines:A=[],width:V,height:tt,minHeight:q=0,strokeWidth:h=2,relativeHeight:y,ariaLabel:et,colorLegendTitle:k,detailsOnClick:kt,styles:M,classNames:d,showNAColor:gt=!0,axisLabels:it,showDots:D=!0,showValues:v=!1,curveType:_="curve",noOfTicks:yt=5,minValue:I,maxValue:_t,fillShape:nt=!1,resetSelectionOnDoubleClick:Mt=!0,animate:Y=!1,dimmedOpacity:vt=.3,precision:L=2,customLayers:T=[]}=e,[w,F]=C.useState(0),[$,G]=C.useState(void 0),E=C.useRef(null),O=C.useRef(null);return C.useEffect(()=>{const o=new ResizeObserver(P=>{F((Math.min(P[0].target.clientWidth||620,P[0].target.clientHeight||480,W||1/0)||420)/2)});return E.current&&o.observe(E.current),()=>o.disconnect()},[W]),n.jsxRuntimeExports.jsxs(At.GraphContainer,{className:d?.graphContainer,style:M?.graphContainer,id:J,ref:O,"aria-label":et,backgroundColor:u,theme:j,language:ft,minHeight:q,width:V,height:tt,relativeHeight:y,padding:R,children:[t||r||B||X?n.jsxRuntimeExports.jsx(Jt.GraphHeader,{styles:{title:M?.title,description:M?.description},classNames:{title:d?.title,description:d?.description},graphTitle:t,graphDescription:r,width:V,graphDownload:B?O:void 0,dataDownload:X?p.map(o=>o.data).filter(o=>o!==void 0).length>0?p.map(o=>o.data).filter(o=>o!==void 0):p.filter(o=>o!==void 0):null}):null,p.length===0?n.jsxRuntimeExports.jsx(Kt.EmptyState,{}):n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[g&&p.filter(o=>o.color).length!==0?n.jsxRuntimeExports.jsx(Qt.ColorLegendWithMouseOver,{width:V,colorLegendTitle:k,colors:s||N.Colors[j].categoricalColors.colors,colorDomain:jt||St.uniqBy(p,"color",!0),setSelectedColor:G,showNAColor:gt,className:d?.colorLegend,isCenter:!0}):null,n.jsxRuntimeExports.jsx(At.GraphArea,{ref:E,children:w?n.jsxRuntimeExports.jsx(se,{data:p,lineColors:p.filter(o=>o.color).length===0?s?[s]:[N.Colors.primaryColors["blue-600"]]:s||N.Colors[j].categoricalColors.colors,radius:w,tooltip:a,colorDomain:jt||St.uniqBy(p,"color",!0),onSeriesMouseOver:S,onSeriesMouseClick:K,styles:M,detailsOnClick:kt,selectedColor:$,axisLabels:it,strokeWidth:h,showValues:v,showDots:D,topMargin:mt,bottomMargin:dt,leftMargin:Q,rightMargin:Z,curveType:_,noOfTicks:yt,minValue:I,maxValue:_t,fillShape:nt,highlightedLines:A,resetSelectionOnDoubleClick:Mt,animate:Y===!0?{duration:.5,once:!0,amount:.5}:Y||{duration:0,once:!0,amount:0},dimmedOpacity:vt,precision:L,customLayers:T}):null})]}),c||H?n.jsxRuntimeExports.jsx(zt.GraphFooter,{styles:{footnote:M?.footnote,source:M?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:c,footNote:H,width:V}):null]})}exports.RadarChart=ke;
2
2
  //# sourceMappingURL=RadarChart.cjs.map
@@ -7,7 +7,7 @@ import { n as Vt } from "./numberFormattingFunction-14YCbkN2.js";
7
7
  import { c as B } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
8
  import { D as Bt } from "./DetailsModal-0Ry5nXiC.js";
9
9
  import { a as Dt } from "./linear-BqltdMeF.js";
10
- import { c as Ut, l as Jt } from "./line-CPfhohvF.js";
10
+ import { c as Ut, l as Jt } from "./line-DFlZsxI1.js";
11
11
  import { u as Kt } from "./use-in-view-Cxa7y1TH.js";
12
12
  import { m as kt } from "./proxy-BxkFHwUw.js";
13
13
  import { A as Qt } from "./index-BqfRwk1n.js";