@undp/data-viz 2.2.1 → 2.2.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 (101) hide show
  1. package/dist/AreaChart.cjs +1 -1
  2. package/dist/AreaChart.js +1 -1
  3. package/dist/Axis-D56Gy0se.js +31 -0
  4. package/dist/Axis-D56Gy0se.js.map +1 -0
  5. package/dist/Axis-Jt_tmhxS.cjs +2 -0
  6. package/dist/Axis-Jt_tmhxS.cjs.map +1 -0
  7. package/dist/BarGraph.cjs +1 -1
  8. package/dist/BarGraph.cjs.map +1 -1
  9. package/dist/BarGraph.d.ts +6 -0
  10. package/dist/BarGraph.js +1759 -1750
  11. package/dist/BarGraph.js.map +1 -1
  12. package/dist/BeeSwarmChart.cjs +1 -1
  13. package/dist/BeeSwarmChart.cjs.map +1 -1
  14. package/dist/BeeSwarmChart.d.ts +2 -0
  15. package/dist/BeeSwarmChart.js +270 -267
  16. package/dist/BeeSwarmChart.js.map +1 -1
  17. package/dist/BiVariateChoroplethMap.cjs +1 -1
  18. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  19. package/dist/BiVariateChoroplethMap.d.ts +2 -0
  20. package/dist/BiVariateChoroplethMap.js +264 -250
  21. package/dist/BiVariateChoroplethMap.js.map +1 -1
  22. package/dist/BulletChart.cjs +1 -1
  23. package/dist/BulletChart.cjs.map +1 -1
  24. package/dist/BulletChart.d.ts +2 -0
  25. package/dist/BulletChart.js +544 -542
  26. package/dist/BulletChart.js.map +1 -1
  27. package/dist/ButterflyChart.cjs +1 -1
  28. package/dist/ButterflyChart.cjs.map +1 -1
  29. package/dist/ButterflyChart.d.ts +2 -0
  30. package/dist/ButterflyChart.js +332 -330
  31. package/dist/ButterflyChart.js.map +1 -1
  32. package/dist/ChoroplethMap.cjs +1 -1
  33. package/dist/ChoroplethMap.cjs.map +1 -1
  34. package/dist/ChoroplethMap.d.ts +2 -0
  35. package/dist/ChoroplethMap.js +272 -258
  36. package/dist/ChoroplethMap.js.map +1 -1
  37. package/dist/DifferenceLineChart.cjs +1 -1
  38. package/dist/DifferenceLineChart.js +1 -1
  39. package/dist/DualAxisLineChart.cjs +1 -1
  40. package/dist/DualAxisLineChart.js +1 -1
  41. package/dist/DumbbellChart.cjs +1 -1
  42. package/dist/DumbbellChart.cjs.map +1 -1
  43. package/dist/DumbbellChart.d.ts +2 -0
  44. package/dist/DumbbellChart.js +537 -536
  45. package/dist/DumbbellChart.js.map +1 -1
  46. package/dist/GraphEl-BZbunD1_.cjs +2 -0
  47. package/dist/GraphEl-BZbunD1_.cjs.map +1 -0
  48. package/dist/{GraphEl-DKrjuQNB.js → GraphEl-C1Rz1V__.js} +68 -57
  49. package/dist/GraphEl-C1Rz1V__.js.map +1 -0
  50. package/dist/GriddedGraphs.cjs +1 -1
  51. package/dist/GriddedGraphs.d.ts +2 -0
  52. package/dist/GriddedGraphs.js +1 -1
  53. package/dist/GriddedGraphsFromConfig.d.ts +2 -0
  54. package/dist/Histogram.cjs +1 -1
  55. package/dist/Histogram.cjs.map +1 -1
  56. package/dist/Histogram.d.ts +2 -0
  57. package/dist/Histogram.js +50 -49
  58. package/dist/Histogram.js.map +1 -1
  59. package/dist/LineChartWithConfidenceInterval.cjs +1 -1
  60. package/dist/LineChartWithConfidenceInterval.js +1 -1
  61. package/dist/MultiGraphDashboard.d.ts +2 -0
  62. package/dist/MultiGraphDashboardFromConfig.d.ts +2 -0
  63. package/dist/MultiLineAltChart.cjs +1 -1
  64. package/dist/MultiLineAltChart.js +1 -1
  65. package/dist/MultiLineChart.cjs +1 -1
  66. package/dist/MultiLineChart.js +1 -1
  67. package/dist/ParetoChart.cjs +1 -1
  68. package/dist/ParetoChart.js +1 -1
  69. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +2 -0
  70. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +2 -0
  71. package/dist/PerformanceIntensiveScrollStory.d.ts +2 -0
  72. package/dist/ScatterPlot.cjs +1 -1
  73. package/dist/ScatterPlot.js +1 -1
  74. package/dist/ScrollStory.d.ts +2 -0
  75. package/dist/SimpleLineChart.cjs +1 -1
  76. package/dist/SimpleLineChart.js +1 -1
  77. package/dist/SingleGraphDashboard.cjs +1 -1
  78. package/dist/SingleGraphDashboard.d.ts +2 -0
  79. package/dist/SingleGraphDashboard.js +1 -1
  80. package/dist/SingleGraphDashboardFromConfig.d.ts +2 -0
  81. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +2 -0
  82. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +2 -0
  83. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +2 -0
  84. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +2 -0
  85. package/dist/SlopeChart.cjs +1 -1
  86. package/dist/SlopeChart.js +1 -1
  87. package/dist/Types.d.ts +2 -0
  88. package/dist/WaterfallChart.cjs +1 -1
  89. package/dist/WaterfallChart.cjs.map +1 -1
  90. package/dist/WaterfallChart.d.ts +2 -0
  91. package/dist/WaterfallChart.js +263 -261
  92. package/dist/WaterfallChart.js.map +1 -1
  93. package/dist/index.d.ts +24 -0
  94. package/package.json +1 -1
  95. package/dist/Axis-DoOqnt6g.js +0 -32
  96. package/dist/Axis-DoOqnt6g.js.map +0 -1
  97. package/dist/Axis-Dtjn-EgM.cjs +0 -2
  98. package/dist/Axis-Dtjn-EgM.cjs.map +0 -1
  99. package/dist/GraphEl-CBZdcvb7.cjs +0 -2
  100. package/dist/GraphEl-CBZdcvb7.cjs.map +0 -1
  101. package/dist/GraphEl-DKrjuQNB.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),C=require("react"),R=require("./parse-xYI9yrvL.cjs"),Se=require("./simple-statistics-xm8c0LQQ.cjs"),Te=require("./index-Cno4Q0YE.cjs"),Oe=require("./numberFormattingFunction-02t-wJta.cjs"),$e=require("./Tooltip-BLa2EfMs.cjs"),G=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ne=require("./customArea-B1LWQBmM.cjs"),Fe=require("./AxisTitle-DV4n0RxE.cjs"),We=require("./Axis-Dtjn-EgM.cjs"),He=require("./ReferenceLine-M9aP3dj-.cjs"),Ge=require("./RegressionLine-Ci-Dh0w0.cjs"),Pe=require("./YTicksAndGridLines-UzVC5eBM.cjs"),Ye=require("./index-D69M6klB.cjs"),Ue=require("./time-CkcKbhwe.cjs"),Xe=require("./linear-CgUCbw9F.cjs"),Ae=require("./line-DaEMhXmx.cjs"),be=require("./step-BZ3C8QFW.cjs"),Be=require("./area-C1gxfNGD.cjs"),ze=require("./select-Bnfk0lJx.cjs"),A=require("./proxy-C4-uo6nS.cjs"),Je=require("./init-DU0ybBc_.cjs"),Ke=require("./pointer-Dkq5NV1q.cjs"),Qe=require("./use-in-view-C3o_ntMv.cjs"),Ze=require("./GraphFooter.cjs"),_e=require("./GraphHeader.cjs"),Le=require("./Colors.cjs"),ti=require("./ColorLegend.cjs"),ei=require("./EmptyState-CGeBqbmR.cjs"),De=require("./GraphContainer-B1EDxJ0S.cjs"),ii=require("./getNoOfTicks-C_1CFXv_.cjs");function ni(n){const t=i.compilerRuntimeExports.c(102),{data:h,width:_,height:Ft,lineColor:b,suffix:S,prefix:M,dateFormat:l,highlightAreaSettings:f,showValues:Wt,noOfXTicks:he,rightMargin:Ht,leftMargin:D,topMargin:Gt,bottomMargin:dt,tooltip:tt,onSeriesMouseOver:Pt,refValues:ie,minValue:ne,maxValue:ht,animate:o,rtl:ft,strokeWidth:et,showDots:oe,annotations:se,customHighlightAreaSettings:yt,regressionLine:gt,showIntervalDots:ae,showIntervalValues:fe,intervalLineStrokeWidth:Yt,intervalLineColors:E,intervalAreaColor:Ut,intervalAreaOpacity:Xt,yAxisTitle:vt,noOfYTicks:ye,minDate:re,maxDate:le,curveType:jt,styles:y,classNames:g,precision:q,customLayers:P}=n,wt=C.useRef(null);let Y;t[0]!==o.amount||t[1]!==o.once?(Y={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=Y):Y=t[2];const c=Qe.useInView(wt,Y),[p,ce]=C.useState(!1);let Rt,it;t[3]!==o.duration||t[4]!==p||t[5]!==c?(Rt=()=>{if(c&&!p){const e=setTimeout(()=>{ce(!0)},(o.duration+.5)*1e3);return()=>clearTimeout(e)}},it=[c,p,o.duration],t[3]=o.duration,t[4]=p,t[5]=c,t[6]=Rt,t[7]=it):(Rt=t[6],it=t[7]),C.useEffect(Rt,it);const nt=jt==="linear"?Ae.curveLinear:jt==="step"?be.curveStep:jt==="stepAfter"?be.stepAfter:jt==="stepBefore"?be.stepBefore:be.monotoneX,[L,Et]=C.useState(void 0),[U,ue]=C.useState(void 0),[m,x]=C.useState(void 0),Bt=vt?D+30:D;let X;t[8]!==dt||t[9]!==Ht||t[10]!==Bt||t[11]!==Gt?(X={top:Gt,bottom:dt,left:Bt,right:Ht},t[8]=dt,t[9]=Ht,t[10]=Bt,t[11]=Gt,t[12]=X):X=t[12];const j=X,ot=C.useRef(null);let st;t[13]!==l?(st=e=>({date:R.parse(`${e.date}`,l,new Date),y:e.y,yMin:G.checkIfNullOrUndefined(e.yMin)?e.y:e.yMin,yMax:G.checkIfNullOrUndefined(e.yMax)?e.y:e.yMax,data:e.data}),t[13]=l,t[14]=st):st=t[14];const a=Te.orderBy(h.filter(yi).map(st),["date"],["asc"]);let at;if(t[15]!==l||t[16]!==f){let e;t[18]!==l?(e=d=>({...d,coordinates:[d.coordinates[0]===null?null:R.parse(`${d.coordinates[0]}`,l,new Date),d.coordinates[1]===null?null:R.parse(`${d.coordinates[1]}`,l,new Date)]}),t[18]=l,t[19]=e):e=t[19],at=f.map(e),t[15]=l,t[16]=f,t[17]=at}else at=t[17];const Ct=at;let rt;if(t[20]!==yt||t[21]!==l){let e;t[23]!==l?(e=d=>({...d,coordinates:d.coordinates.map((Z,ee)=>ee%2===0?R.parse(`${Z}`,l,new Date):Z)}),t[23]=l,t[24]=e):e=t[24],rt=yt.map(e),t[20]=yt,t[21]=l,t[22]=rt}else rt=t[22];const xe=rt,u=_-j.left-j.right,v=Ft-j.top-j.bottom,zt=re?R.parse(`${re}`,l,new Date):a[0].date,me=le?R.parse(`${le}`,l,new Date):a[a.length-1].date,w=G.checkIfNullOrUndefined(ne)?Math.min(...a.map(fi))?Math.min(...a.map(hi))>0?0:Math.min(...a.map(di)):0:ne,B=Math.max(...a.map(pi))?Math.max(...a.map(mi)):0,s=Ue.time().domain([zt,me]).range([0,u]);let lt;t[25]!==B||t[26]!==ht?(lt=G.checkIfNullOrUndefined(ht)?B>0?B:0:ht,t[25]=B,t[26]=ht,t[27]=lt):lt=t[27];const r=Xe.linear().domain([w,lt]).range([v,0]).nice(),Jt=Ae.line().x(e=>s(e.date)).y(e=>r(e.y)).curve(nt),Mt=Ae.line().x(e=>s(e.date)).y(e=>r(e.yMin)).curve(nt),Kt=Ae.line().x(e=>s(e.date)).y(e=>r(e.yMax)).curve(nt),Qt=Be.area().x(e=>s(e.date)).y0(e=>r(e.yMin)).y1(e=>r(e.yMax)).curve(nt),Zt=r.ticks(ye),_t=s.ticks(he);C.useEffect(()=>{const e=Z=>{const ee=a[Je.bisectCenter(a.map(xi),s.invert(Ke.pointer(Z)[0]),0)];Et(ee||a[a.length-1]),Pt?.(ee||a[a.length-1]),x(Z.clientY),ue(Z.clientX)},d=()=>{Et(void 0),ue(void 0),x(void 0),Pt?.(void 0)};ze.select(ot.current).on("mousemove",e).on("mouseout",d)},[s,a,Pt]);const te=Se.linearRegression(a.filter(ui).map(e=>[s(e.date),r(e.y)])),Ot=Se.linearRegressionLine(te);let O;t[28]!==o||t[29]!==v||t[30]!==u||t[31]!==Ct||t[32]!==c||t[33]!==s?(O=i.jsxRuntimeExports.jsx(Ye.HighlightArea,{areaSettings:Ct,width:u,height:v,scale:s,animate:o,isInView:c}),t[28]=o,t[29]=v,t[30]=u,t[31]=Ct,t[32]=c,t[33]=s,t[34]=O):O=t[34];const At=y?.yAxis?.gridLines,bt=y?.yAxis?.labels;let ct;t[35]!==At||t[36]!==bt?(ct={gridLines:At,labels:bt},t[35]=At,t[36]=bt,t[37]=ct):ct=t[37];const ut=g?.yAxis?.gridLines,Lt=g?.yAxis?.labels;let z;t[38]!==ut||t[39]!==Lt?(z={gridLines:ut,labels:Lt},t[38]=ut,t[39]=Lt,t[40]=z):z=t[40];const kt=r(w<0?0:w),It=r(w<0?0:w),Vt=0-D,Nt=u+j.right,St=w<0?0:w;let k;t[41]!==q||t[42]!==M||t[43]!==S||t[44]!==St?(k=Oe.numberFormattingFunction(St,"NA",q,M,S),t[41]=q,t[42]=M,t[43]=S,t[44]=St,t[45]=k):k=t[45];const Dt=0-D,J=r(w<0?0:w),pe=B<0?"1em":-5;let I;t[46]!==Dt||t[47]!==J||t[48]!==pe?(I={x:Dt,y:J,dx:0,dy:pe},t[46]=Dt,t[47]=J,t[48]=pe,t[49]=I):I=t[49];const de=g?.xAxis?.axis,qt=g?.yAxis?.labels;let K;t[50]!==de||t[51]!==qt?(K={axis:de,label:qt},t[50]=de,t[51]=qt,t[52]=K):K=t[52];const xt=y?.xAxis?.axis,mt=y?.yAxis?.labels;let T;t[53]!==xt||t[54]!==mt?(T={axis:xt,label:mt},t[53]=xt,t[54]=mt,t[55]=T):T=t[55];let pt;t[56]!==kt||t[57]!==It||t[58]!==Vt||t[59]!==Nt||t[60]!==k||t[61]!==I||t[62]!==K||t[63]!==T?(pt=i.jsxRuntimeExports.jsx(We.Axis,{y1:kt,y2:It,x1:Vt,x2:Nt,label:k,labelPos:I,classNames:K,styles:T}),t[56]=kt,t[57]=It,t[58]=Vt,t[59]=Nt,t[60]=k,t[61]=I,t[62]=K,t[63]=T,t[64]=pt):pt=t[64];const $=0-D+15,F=v/2,W=y?.yAxis?.title,H=g?.yAxis?.title;let V;t[65]!==$||t[66]!==F||t[67]!==W||t[68]!==H||t[69]!==vt?(V=i.jsxRuntimeExports.jsx(Fe.AxisTitle,{x:$,y:F,style:W,className:H,text:vt,rotate90:!0}),t[65]=$,t[66]=F,t[67]=W,t[68]=H,t[69]=vt,t[70]=V):V=t[70];let N;t[71]!==P?(N=P.filter(ri).map(ai),t[71]=P,t[72]=N):N=t[72];let Q;t[73]!==Ut?(Q={fill:Ut},t[73]=Ut,t[74]=Q):Q=t[74];let Tt;t[75]!==o.duration?(Tt={opacity:0,transition:{duration:o.duration}},t[75]=o.duration,t[76]=Tt):Tt=t[76];let $t;t[77]!==b||t[78]!==et?($t={stroke:b,fill:"none",strokeWidth:et},t[77]=b,t[78]=et,t[79]=$t):$t=t[79];let ge;t[80]!==o.duration?(ge={opacity:0,transition:{duration:o.duration}},t[80]=o.duration,t[81]=ge):ge=t[81];const ke=a.map((e,d)=>i.jsxRuntimeExports.jsx(A.motion.g,{children:G.checkIfNullOrUndefined(e.y)?null:i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[oe?i.jsxRuntimeExports.jsx(A.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,style:{fill:b},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,cx:s(e.date),cy:r(e.y)},whileInView:{opacity:1,transition:{duration:p?o.duration:.5,delay:p?0:o.duration},cx:s(e.date),cy:r(e.y)}},initial:"initial",animate:c?"whileInView":"initial"}):null,ae?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(A.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:E[0],cx:s(e.date),cy:r(e.yMin)},whileInView:{opacity:1,transition:{duration:p?o.duration:.5,delay:p?0:o.duration},cx:s(e.date),cy:r(e.yMin),fill:E[0]}},initial:"initial",animate:c?"whileInView":"initial"}),i.jsxRuntimeExports.jsx(A.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:E[1],cx:s(e.date),cy:r(e.yMax)},whileInView:{opacity:1,fill:E[1],transition:{duration:p?o.duration:.5,delay:p?0:o.duration},cx:s(e.date),cy:r(e.yMax)}},initial:"initial",animate:c?"whileInView":"initial"})]}):null,Wt?i.jsxRuntimeExports.jsx(A.motion.text,{dy:-8,style:{textAnchor:"middle",...y?.graphObjectValues||{}},className:i.mo("graph-value text-xs font-bold",g?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:b,x:s(e.date),y:r(e.y)},whileInView:{opacity:1,x:s(e.date),fill:b,y:r(e.y),transition:{duration:p?o.duration:.5,delay:p?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.y,"NA",q,M,S)}):null,fe?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(A.motion.text,{dy:"1em",style:{textAnchor:"middle",...y?.graphObjectValues||{}},className:i.mo("text-xs font-bold",g?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:E[0],x:s(e.date),y:r(e.yMin)},whileInView:{opacity:1,x:s(e.date),y:r(e.yMin),fill:E[0],transition:{duration:p?o.duration:.5,delay:p?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.yMin,"NA",q,M,S)}),i.jsxRuntimeExports.jsx(A.motion.text,{dy:-8,style:{textAnchor:"middle",...y?.graphObjectValues||{}},className:i.mo("text-xs font-bold",g?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:E[1],x:s(e.date),y:r(e.yMax)},whileInView:{opacity:1,fill:E[1],x:s(e.date),y:r(e.yMax),transition:{duration:p?o.duration:.5,delay:p?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.yMax,"NA",q,M,S)})]}):null]})},d));let ve;t[82]!==ke?(ve=i.jsxRuntimeExports.jsx("g",{children:ke}),t[82]=ke,t[83]=ve):ve=t[83];const Ie=se.map((e,d)=>{const Z=Ne.getLineEndPoint({x:e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date)):0,y:e.yCoordinate?r(e.yCoordinate):0},G.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),ee=e.showConnector?{y1:Z.y,x1:Z.x,y2:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?r(e.yCoordinate):0,cx:e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date)):0,circleRadius:G.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,qe={y:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:ft?0:e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:ft?e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0):u+j.right-(e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return i.jsxRuntimeExports.jsx(Ne.Annotation,{color:e.color,connectorsSettings:ee,labelSettings:qe,text:e.text,classNames:e.classNames,styles:e.styles,animate:o,isInView:c},d)});let je;t[84]!==Ie?(je=i.jsxRuntimeExports.jsx("g",{children:Ie}),t[84]=Ie,t[85]=je):je=t[85];const Ve=gt?i.jsxRuntimeExports.jsx(Ge.RegressionLine,{x1:0,x2:u,y1:Ot(0),y2:Ot(u),graphHeight:v,graphWidth:u,className:g?.regLine,style:y?.regLine,color:typeof gt=="string"?gt:void 0,animate:o,isInView:c}):null;let we;t[86]!==Ve?(we=i.jsxRuntimeExports.jsx("g",{children:Ve}),t[86]=Ve,t[87]=we):we=t[87];let Re;t[88]!==P?(Re=P.filter(si).map(oi),t[88]=P,t[89]=Re):Re=t[89];let Ee;t[90]===Symbol.for("react.memo_cache_sentinel")?(Ee={fill:"none",pointerEvents:"all"},t[90]=Ee):Ee=t[90];let Ce;t[91]!==ot||t[92]!==v||t[93]!==u?(Ce=i.jsxRuntimeExports.jsx("rect",{ref:ot,style:Ee,width:u,height:v}),t[91]=ot,t[92]=v,t[93]=u,t[94]=Ce):Ce=t[94];let Me;return t[95]!==g?.tooltip||t[96]!==U||t[97]!==m||t[98]!==L||t[99]!==y?.tooltip||t[100]!==tt?(Me=L&&tt&&U&&m?i.jsxRuntimeExports.jsx($e.Tooltip,{data:L,body:tt,xPos:U,yPos:m,backgroundStyle:y?.tooltip,className:g?.tooltip}):null,t[95]=g?.tooltip,t[96]=U,t[97]=m,t[98]=L,t[99]=y?.tooltip,t[100]=tt,t[101]=Me):Me=t[101],i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(A.motion.svg,{width:`${_}px`,height:`${Ft}px`,viewBox:`0 0 ${_} ${Ft}`,direction:"ltr",ref:wt,children:i.jsxRuntimeExports.jsxs("g",{transform:`translate(${j.left},${j.top})`,children:[O,i.jsxRuntimeExports.jsx(Ne.CustomArea,{areaSettings:xe,scaleX:s,scaleY:r,animate:o,isInView:c}),i.jsxRuntimeExports.jsxs("g",{children:[i.jsxRuntimeExports.jsx(Pe.YTicksAndGridLines,{values:Zt.filter(ci),y:Zt.filter(li).map(e=>r(e)),x1:0-D,x2:u+j.right,styles:ct,classNames:z,suffix:S,prefix:M,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:q}),pt,V]}),i.jsxRuntimeExports.jsx("g",{children:_t.map((e,d)=>i.jsxRuntimeExports.jsx("g",{children:i.jsxRuntimeExports.jsx("text",{y:v,x:s(e),style:{textAnchor:"middle"},className:"fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",dy:15,children:R.format(e,l)})},d))}),N,i.jsxRuntimeExports.jsx(A.motion.path,{style:Q,exit:Tt,variants:{initial:{opacity:0,d:Qt(a)||""},whileInView:{opacity:Xt,d:Qt(a)||"",transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),Yt?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(A.motion.path,{style:{stroke:E[0],fill:"none",strokeWidth:Yt},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{pathLength:0,d:Mt(a)||"",opacity:1},whileInView:{pathLength:1,d:Mt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),i.jsxRuntimeExports.jsx(A.motion.path,{style:{stroke:E[1],fill:"none",strokeWidth:Yt},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{pathLength:0,d:Kt(a)||"",opacity:1},whileInView:{pathLength:1,d:Kt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"})]}):null,i.jsxRuntimeExports.jsx(A.motion.path,{style:$t,exit:ge,variants:{initial:{pathLength:0,d:Jt(a)||"",opacity:1},whileInView:{pathLength:1,d:Jt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),L?i.jsxRuntimeExports.jsx("line",{y1:0,y2:v,x1:s(L.date),x2:s(L.date),className:i.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",g?.mouseOverLine),style:y?.mouseOverLine}):null,ve,ie?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:ie.map((e,d)=>i.jsxRuntimeExports.jsx(He.RefLineY,{text:e.text,color:e.color,y:r(e.value),x1:0-D,x2:u+j.right,classNames:e.classNames,styles:e.styles,animate:o,isInView:c},d))}):null,je,we,Re,Ce]})}),Me]})}function oi(n){return n.layer}function si(n){return n.position==="after"}function ai(n){return n.layer}function ri(n){return n.position==="before"}function li(n){return n!==0}function ci(n){return n!==0}function ui(n){return!G.checkIfNullOrUndefined(n.date)&&!G.checkIfNullOrUndefined(n.y)}function xi(n){return n.date}function mi(n){return Math.max(n.y,n.yMax,n.yMin)}function pi(n){return Math.max(n.y,n.yMax,n.yMin)}function di(n){return Math.min(n.y,n.yMax,n.yMin)}function hi(n){return Math.min(n.y,n.yMax,n.yMin)}function fi(n){return Math.min(n.y,n.yMax,n.yMin)}function yi(n){return!G.checkIfNullOrUndefined(n.y)}function gi(n){const t=i.compilerRuntimeExports.c(104),{data:h,graphTitle:_,suffix:Ft,sources:b,prefix:S,graphDescription:M,height:l,width:f,footNote:Wt,noOfXTicks:he,dateFormat:Ht,showValues:D,backgroundColor:Gt,padding:dt,lineColor:tt,leftMargin:Pt,rightMargin:ie,topMargin:ne,bottomMargin:ht,tooltip:o,refValues:ft,highlightAreaSettings:et,relativeHeight:oe,onSeriesMouseOver:se,graphID:yt,minValue:gt,maxValue:ae,regressionLine:fe,showIntervalDots:Yt,showIntervalValues:E,intervalLineStrokeWidth:Ut,intervalLineColors:Xt,intervalAreaColor:vt,intervalAreaOpacity:ye,graphDownload:re,dataDownload:le,animate:jt,language:y,minHeight:g,strokeWidth:q,showDots:P,annotations:wt,customHighlightAreaSettings:Y,theme:c,ariaLabel:p,yAxisTitle:ce,noOfYTicks:Rt,minDate:it,maxDate:nt,colorLegendTitle:L,colorLegendColors:Et,colorLegendDomain:U,curveType:ue,styles:m,classNames:x,precision:Bt,customLayers:X}=n,j=Ft===void 0?"":Ft,ot=S===void 0?"":S,st=he===void 0?10:he,a=Ht===void 0?"yyyy":Ht,at=D===void 0?!1:D,Ct=Gt===void 0?!1:Gt,rt=Pt===void 0?30:Pt,xe=ie===void 0?30:ie,u=ne===void 0?20:ne,v=ht===void 0?25:ht;let zt;t[0]!==ft?(zt=ft===void 0?[]:ft,t[0]=ft,t[1]=zt):zt=t[1];const me=zt;let w;t[2]!==et?(w=et===void 0?[]:et,t[2]=et,t[3]=w):w=t[3];const B=w,s=fe===void 0?!1:fe,lt=Yt===void 0?!1:Yt,r=E===void 0?!1:E,Jt=Ut===void 0?0:Ut;let Mt;t[4]!==Xt?(Mt=Xt===void 0?[Le.Colors.light.grays["gray-500"],Le.Colors.light.grays["gray-500"]]:Xt,t[4]=Xt,t[5]=Mt):Mt=t[5];const Kt=Mt,Qt=vt===void 0?Le.Colors.primaryColors["blue-100"]:vt,Zt=ye===void 0?.4:ye,_t=re===void 0?!1:re,te=le===void 0?!1:le,Ot=jt===void 0?!1:jt,O=y===void 0?"en":y,At=g===void 0?0:g,bt=q===void 0?2:q,ct=P===void 0?!0:P;let ut;t[6]!==wt?(ut=wt===void 0?[]:wt,t[6]=wt,t[7]=ut):ut=t[7];const Lt=ut;let z;t[8]!==Y?(z=Y===void 0?[]:Y,t[8]=Y,t[9]=z):z=t[9];const kt=z,It=c===void 0?"light":c,Vt=Rt===void 0?5:Rt,Nt=ue===void 0?"curve":ue,St=Bt===void 0?2:Bt;let k;t[10]!==X?(k=X===void 0?[]:X,t[10]=X,t[11]=k):k=t[11];const Dt=k,[J,pe]=C.useState(0),[I,de]=C.useState(0),qt=C.useRef(null),K=C.useRef(null);let xt,mt;t[12]===Symbol.for("react.memo_cache_sentinel")?(xt=()=>{const Tt=new ResizeObserver($t=>{pe($t[0].target.clientWidth||620),de($t[0].target.clientHeight||480)});return qt.current&&Tt.observe(qt.current),()=>Tt.disconnect()},mt=[],t[12]=xt,t[13]=mt):(xt=t[12],mt=t[13]),C.useEffect(xt,mt);const T=x?.graphContainer,pt=m?.graphContainer;let $;t[14]!==x?.description||t[15]!==x?.title||t[16]!==h||t[17]!==te||t[18]!==M||t[19]!==_t||t[20]!==_||t[21]!==m?.description||t[22]!==m?.title||t[23]!==f?($=_||M||_t||te?i.jsxRuntimeExports.jsx(_e.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:x?.title,description:x?.description},graphTitle:_,graphDescription:M,width:f,graphDownload:_t?K:void 0,dataDownload:te?h.map(Ei).filter(Ri).length>0?h.map(wi).filter(ji):h.filter(vi):null}):null,t[14]=x?.description,t[15]=x?.title,t[16]=h,t[17]=te,t[18]=M,t[19]=_t,t[20]=_,t[21]=m?.description,t[22]=m?.title,t[23]=f,t[24]=$):$=t[24];let F;t[25]!==x?.colorLegend||t[26]!==Et||t[27]!==U||t[28]!==L||t[29]!==h.length||t[30]!==f?(F=Et&&U&&h.length>0?i.jsxRuntimeExports.jsx(ti.ColorLegend,{width:f,colorLegendTitle:L,colors:Et,colorDomain:U,showNAColor:!1,className:x?.colorLegend}):null,t[25]=x?.colorLegend,t[26]=Et,t[27]=U,t[28]=L,t[29]=h.length,t[30]=f,t[31]=F):F=t[31];let W;t[32]!==h.length?(W=h.length===0&&i.jsxRuntimeExports.jsx(ei.EmptyState,{}),t[32]=h.length,t[33]=W):W=t[33];let H;t[34]!==Ot||t[35]!==Lt||t[36]!==v||t[37]!==x||t[38]!==Nt||t[39]!==kt||t[40]!==Dt||t[41]!==h||t[42]!==a||t[43]!==B||t[44]!==Qt||t[45]!==Zt||t[46]!==Kt||t[47]!==Jt||t[48]!==O||t[49]!==rt||t[50]!==tt||t[51]!==nt||t[52]!==ae||t[53]!==it||t[54]!==gt||t[55]!==st||t[56]!==Vt||t[57]!==se||t[58]!==St||t[59]!==ot||t[60]!==me||t[61]!==s||t[62]!==xe||t[63]!==ct||t[64]!==lt||t[65]!==r||t[66]!==at||t[67]!==bt||t[68]!==m||t[69]!==j||t[70]!==I||t[71]!==J||t[72]!==o||t[73]!==u||t[74]!==ce?(H=J&&I&&h.length>0?i.jsxRuntimeExports.jsx(ni,{data:h,lineColor:tt||Le.Colors.primaryColors["blue-600"],width:J,height:I,suffix:j,prefix:ot,dateFormat:a,showValues:at,noOfXTicks:st??ii.getNoOfTicks(J),leftMargin:rt,rightMargin:xe,topMargin:u,bottomMargin:v,tooltip:o,highlightAreaSettings:B,onSeriesMouseOver:se,refValues:me,minValue:gt,maxValue:ae,animate:Ot===!0?{duration:.5,once:!0,amount:.5}:Ot||{duration:0,once:!0,amount:0},rtl:O==="he"||O==="ar",strokeWidth:bt,showDots:ct,annotations:Lt,customHighlightAreaSettings:kt,regressionLine:s,showIntervalDots:lt,showIntervalValues:r,intervalLineStrokeWidth:Jt,intervalLineColors:Kt,intervalAreaColor:Qt,intervalAreaOpacity:Zt,yAxisTitle:ce,noOfYTicks:Vt,minDate:it,maxDate:nt,curveType:Nt,styles:m,classNames:x,precision:St,customLayers:Dt}):null,t[34]=Ot,t[35]=Lt,t[36]=v,t[37]=x,t[38]=Nt,t[39]=kt,t[40]=Dt,t[41]=h,t[42]=a,t[43]=B,t[44]=Qt,t[45]=Zt,t[46]=Kt,t[47]=Jt,t[48]=O,t[49]=rt,t[50]=tt,t[51]=nt,t[52]=ae,t[53]=it,t[54]=gt,t[55]=st,t[56]=Vt,t[57]=se,t[58]=St,t[59]=ot,t[60]=me,t[61]=s,t[62]=xe,t[63]=ct,t[64]=lt,t[65]=r,t[66]=at,t[67]=bt,t[68]=m,t[69]=j,t[70]=I,t[71]=J,t[72]=o,t[73]=u,t[74]=ce,t[75]=H):H=t[75];let V;t[76]!==W||t[77]!==H?(V=i.jsxRuntimeExports.jsxs(De.GraphArea,{ref:qt,children:[W,H]}),t[76]=W,t[77]=H,t[78]=V):V=t[78];let N;t[79]!==x?.footnote||t[80]!==x?.source||t[81]!==Wt||t[82]!==b||t[83]!==m?.footnote||t[84]!==m?.source||t[85]!==f?(N=b||Wt?i.jsxRuntimeExports.jsx(Ze.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:x?.footnote,source:x?.source},sources:b,footNote:Wt,width:f}):null,t[79]=x?.footnote,t[80]=x?.source,t[81]=Wt,t[82]=b,t[83]=m?.footnote,t[84]=m?.source,t[85]=f,t[86]=N):N=t[86];let Q;return t[87]!==p||t[88]!==Ct||t[89]!==yt||t[90]!==l||t[91]!==O||t[92]!==At||t[93]!==dt||t[94]!==oe||t[95]!==T||t[96]!==pt||t[97]!==$||t[98]!==F||t[99]!==V||t[100]!==N||t[101]!==It||t[102]!==f?(Q=i.jsxRuntimeExports.jsxs(De.GraphContainer,{className:T,style:pt,id:yt,ref:K,"aria-label":p,backgroundColor:Ct,theme:It,language:O,minHeight:At,width:f,height:l,relativeHeight:oe,padding:dt,children:[$,F,V,N]}),t[87]=p,t[88]=Ct,t[89]=yt,t[90]=l,t[91]=O,t[92]=At,t[93]=dt,t[94]=oe,t[95]=T,t[96]=pt,t[97]=$,t[98]=F,t[99]=V,t[100]=N,t[101]=It,t[102]=f,t[103]=Q):Q=t[103],Q}function vi(n){return n!==void 0}function ji(n){return n!==void 0}function wi(n){return n.data}function Ri(n){return n!==void 0}function Ei(n){return n.data}exports.LineChartWithConfidenceInterval=gi;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),C=require("react"),R=require("./parse-xYI9yrvL.cjs"),Se=require("./simple-statistics-xm8c0LQQ.cjs"),Te=require("./index-Cno4Q0YE.cjs"),Oe=require("./numberFormattingFunction-02t-wJta.cjs"),$e=require("./Tooltip-BLa2EfMs.cjs"),G=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ne=require("./customArea-B1LWQBmM.cjs"),Fe=require("./AxisTitle-DV4n0RxE.cjs"),We=require("./Axis-Jt_tmhxS.cjs"),He=require("./ReferenceLine-M9aP3dj-.cjs"),Ge=require("./RegressionLine-Ci-Dh0w0.cjs"),Pe=require("./YTicksAndGridLines-UzVC5eBM.cjs"),Ye=require("./index-D69M6klB.cjs"),Ue=require("./time-CkcKbhwe.cjs"),Xe=require("./linear-CgUCbw9F.cjs"),Ae=require("./line-DaEMhXmx.cjs"),be=require("./step-BZ3C8QFW.cjs"),Be=require("./area-C1gxfNGD.cjs"),ze=require("./select-Bnfk0lJx.cjs"),A=require("./proxy-C4-uo6nS.cjs"),Je=require("./init-DU0ybBc_.cjs"),Ke=require("./pointer-Dkq5NV1q.cjs"),Qe=require("./use-in-view-C3o_ntMv.cjs"),Ze=require("./GraphFooter.cjs"),_e=require("./GraphHeader.cjs"),Le=require("./Colors.cjs"),ti=require("./ColorLegend.cjs"),ei=require("./EmptyState-CGeBqbmR.cjs"),De=require("./GraphContainer-B1EDxJ0S.cjs"),ii=require("./getNoOfTicks-C_1CFXv_.cjs");function ni(n){const t=i.compilerRuntimeExports.c(102),{data:h,width:_,height:Ft,lineColor:b,suffix:S,prefix:M,dateFormat:l,highlightAreaSettings:f,showValues:Wt,noOfXTicks:he,rightMargin:Ht,leftMargin:D,topMargin:Gt,bottomMargin:dt,tooltip:tt,onSeriesMouseOver:Pt,refValues:ie,minValue:ne,maxValue:ht,animate:o,rtl:ft,strokeWidth:et,showDots:oe,annotations:se,customHighlightAreaSettings:yt,regressionLine:gt,showIntervalDots:ae,showIntervalValues:fe,intervalLineStrokeWidth:Yt,intervalLineColors:E,intervalAreaColor:Ut,intervalAreaOpacity:Xt,yAxisTitle:vt,noOfYTicks:ye,minDate:re,maxDate:le,curveType:jt,styles:y,classNames:g,precision:q,customLayers:P}=n,wt=C.useRef(null);let Y;t[0]!==o.amount||t[1]!==o.once?(Y={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=Y):Y=t[2];const c=Qe.useInView(wt,Y),[p,ce]=C.useState(!1);let Rt,it;t[3]!==o.duration||t[4]!==p||t[5]!==c?(Rt=()=>{if(c&&!p){const e=setTimeout(()=>{ce(!0)},(o.duration+.5)*1e3);return()=>clearTimeout(e)}},it=[c,p,o.duration],t[3]=o.duration,t[4]=p,t[5]=c,t[6]=Rt,t[7]=it):(Rt=t[6],it=t[7]),C.useEffect(Rt,it);const nt=jt==="linear"?Ae.curveLinear:jt==="step"?be.curveStep:jt==="stepAfter"?be.stepAfter:jt==="stepBefore"?be.stepBefore:be.monotoneX,[L,Et]=C.useState(void 0),[U,ue]=C.useState(void 0),[m,x]=C.useState(void 0),Bt=vt?D+30:D;let X;t[8]!==dt||t[9]!==Ht||t[10]!==Bt||t[11]!==Gt?(X={top:Gt,bottom:dt,left:Bt,right:Ht},t[8]=dt,t[9]=Ht,t[10]=Bt,t[11]=Gt,t[12]=X):X=t[12];const j=X,ot=C.useRef(null);let st;t[13]!==l?(st=e=>({date:R.parse(`${e.date}`,l,new Date),y:e.y,yMin:G.checkIfNullOrUndefined(e.yMin)?e.y:e.yMin,yMax:G.checkIfNullOrUndefined(e.yMax)?e.y:e.yMax,data:e.data}),t[13]=l,t[14]=st):st=t[14];const a=Te.orderBy(h.filter(yi).map(st),["date"],["asc"]);let at;if(t[15]!==l||t[16]!==f){let e;t[18]!==l?(e=d=>({...d,coordinates:[d.coordinates[0]===null?null:R.parse(`${d.coordinates[0]}`,l,new Date),d.coordinates[1]===null?null:R.parse(`${d.coordinates[1]}`,l,new Date)]}),t[18]=l,t[19]=e):e=t[19],at=f.map(e),t[15]=l,t[16]=f,t[17]=at}else at=t[17];const Ct=at;let rt;if(t[20]!==yt||t[21]!==l){let e;t[23]!==l?(e=d=>({...d,coordinates:d.coordinates.map((Z,ee)=>ee%2===0?R.parse(`${Z}`,l,new Date):Z)}),t[23]=l,t[24]=e):e=t[24],rt=yt.map(e),t[20]=yt,t[21]=l,t[22]=rt}else rt=t[22];const xe=rt,u=_-j.left-j.right,v=Ft-j.top-j.bottom,zt=re?R.parse(`${re}`,l,new Date):a[0].date,me=le?R.parse(`${le}`,l,new Date):a[a.length-1].date,w=G.checkIfNullOrUndefined(ne)?Math.min(...a.map(fi))?Math.min(...a.map(hi))>0?0:Math.min(...a.map(di)):0:ne,B=Math.max(...a.map(pi))?Math.max(...a.map(mi)):0,s=Ue.time().domain([zt,me]).range([0,u]);let lt;t[25]!==B||t[26]!==ht?(lt=G.checkIfNullOrUndefined(ht)?B>0?B:0:ht,t[25]=B,t[26]=ht,t[27]=lt):lt=t[27];const r=Xe.linear().domain([w,lt]).range([v,0]).nice(),Jt=Ae.line().x(e=>s(e.date)).y(e=>r(e.y)).curve(nt),Mt=Ae.line().x(e=>s(e.date)).y(e=>r(e.yMin)).curve(nt),Kt=Ae.line().x(e=>s(e.date)).y(e=>r(e.yMax)).curve(nt),Qt=Be.area().x(e=>s(e.date)).y0(e=>r(e.yMin)).y1(e=>r(e.yMax)).curve(nt),Zt=r.ticks(ye),_t=s.ticks(he);C.useEffect(()=>{const e=Z=>{const ee=a[Je.bisectCenter(a.map(xi),s.invert(Ke.pointer(Z)[0]),0)];Et(ee||a[a.length-1]),Pt?.(ee||a[a.length-1]),x(Z.clientY),ue(Z.clientX)},d=()=>{Et(void 0),ue(void 0),x(void 0),Pt?.(void 0)};ze.select(ot.current).on("mousemove",e).on("mouseout",d)},[s,a,Pt]);const te=Se.linearRegression(a.filter(ui).map(e=>[s(e.date),r(e.y)])),Ot=Se.linearRegressionLine(te);let O;t[28]!==o||t[29]!==v||t[30]!==u||t[31]!==Ct||t[32]!==c||t[33]!==s?(O=i.jsxRuntimeExports.jsx(Ye.HighlightArea,{areaSettings:Ct,width:u,height:v,scale:s,animate:o,isInView:c}),t[28]=o,t[29]=v,t[30]=u,t[31]=Ct,t[32]=c,t[33]=s,t[34]=O):O=t[34];const At=y?.yAxis?.gridLines,bt=y?.yAxis?.labels;let ct;t[35]!==At||t[36]!==bt?(ct={gridLines:At,labels:bt},t[35]=At,t[36]=bt,t[37]=ct):ct=t[37];const ut=g?.yAxis?.gridLines,Lt=g?.yAxis?.labels;let z;t[38]!==ut||t[39]!==Lt?(z={gridLines:ut,labels:Lt},t[38]=ut,t[39]=Lt,t[40]=z):z=t[40];const kt=r(w<0?0:w),It=r(w<0?0:w),Vt=0-D,Nt=u+j.right,St=w<0?0:w;let k;t[41]!==q||t[42]!==M||t[43]!==S||t[44]!==St?(k=Oe.numberFormattingFunction(St,"NA",q,M,S),t[41]=q,t[42]=M,t[43]=S,t[44]=St,t[45]=k):k=t[45];const Dt=0-D,J=r(w<0?0:w),pe=B<0?"1em":-5;let I;t[46]!==Dt||t[47]!==J||t[48]!==pe?(I={x:Dt,y:J,dx:0,dy:pe},t[46]=Dt,t[47]=J,t[48]=pe,t[49]=I):I=t[49];const de=g?.xAxis?.axis,qt=g?.yAxis?.labels;let K;t[50]!==de||t[51]!==qt?(K={axis:de,label:qt},t[50]=de,t[51]=qt,t[52]=K):K=t[52];const xt=y?.xAxis?.axis,mt=y?.yAxis?.labels;let T;t[53]!==xt||t[54]!==mt?(T={axis:xt,label:mt},t[53]=xt,t[54]=mt,t[55]=T):T=t[55];let pt;t[56]!==kt||t[57]!==It||t[58]!==Vt||t[59]!==Nt||t[60]!==k||t[61]!==I||t[62]!==K||t[63]!==T?(pt=i.jsxRuntimeExports.jsx(We.Axis,{y1:kt,y2:It,x1:Vt,x2:Nt,label:k,labelPos:I,classNames:K,styles:T}),t[56]=kt,t[57]=It,t[58]=Vt,t[59]=Nt,t[60]=k,t[61]=I,t[62]=K,t[63]=T,t[64]=pt):pt=t[64];const $=0-D+15,F=v/2,W=y?.yAxis?.title,H=g?.yAxis?.title;let V;t[65]!==$||t[66]!==F||t[67]!==W||t[68]!==H||t[69]!==vt?(V=i.jsxRuntimeExports.jsx(Fe.AxisTitle,{x:$,y:F,style:W,className:H,text:vt,rotate90:!0}),t[65]=$,t[66]=F,t[67]=W,t[68]=H,t[69]=vt,t[70]=V):V=t[70];let N;t[71]!==P?(N=P.filter(ri).map(ai),t[71]=P,t[72]=N):N=t[72];let Q;t[73]!==Ut?(Q={fill:Ut},t[73]=Ut,t[74]=Q):Q=t[74];let Tt;t[75]!==o.duration?(Tt={opacity:0,transition:{duration:o.duration}},t[75]=o.duration,t[76]=Tt):Tt=t[76];let $t;t[77]!==b||t[78]!==et?($t={stroke:b,fill:"none",strokeWidth:et},t[77]=b,t[78]=et,t[79]=$t):$t=t[79];let ge;t[80]!==o.duration?(ge={opacity:0,transition:{duration:o.duration}},t[80]=o.duration,t[81]=ge):ge=t[81];const ke=a.map((e,d)=>i.jsxRuntimeExports.jsx(A.motion.g,{children:G.checkIfNullOrUndefined(e.y)?null:i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[oe?i.jsxRuntimeExports.jsx(A.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,style:{fill:b},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,cx:s(e.date),cy:r(e.y)},whileInView:{opacity:1,transition:{duration:p?o.duration:.5,delay:p?0:o.duration},cx:s(e.date),cy:r(e.y)}},initial:"initial",animate:c?"whileInView":"initial"}):null,ae?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(A.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:E[0],cx:s(e.date),cy:r(e.yMin)},whileInView:{opacity:1,transition:{duration:p?o.duration:.5,delay:p?0:o.duration},cx:s(e.date),cy:r(e.yMin),fill:E[0]}},initial:"initial",animate:c?"whileInView":"initial"}),i.jsxRuntimeExports.jsx(A.motion.circle,{r:u/a.length<5?0:u/a.length<20?2:4,exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:E[1],cx:s(e.date),cy:r(e.yMax)},whileInView:{opacity:1,fill:E[1],transition:{duration:p?o.duration:.5,delay:p?0:o.duration},cx:s(e.date),cy:r(e.yMax)}},initial:"initial",animate:c?"whileInView":"initial"})]}):null,Wt?i.jsxRuntimeExports.jsx(A.motion.text,{dy:-8,style:{textAnchor:"middle",...y?.graphObjectValues||{}},className:i.mo("graph-value text-xs font-bold",g?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:b,x:s(e.date),y:r(e.y)},whileInView:{opacity:1,x:s(e.date),fill:b,y:r(e.y),transition:{duration:p?o.duration:.5,delay:p?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.y,"NA",q,M,S)}):null,fe?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(A.motion.text,{dy:"1em",style:{textAnchor:"middle",...y?.graphObjectValues||{}},className:i.mo("text-xs font-bold",g?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:E[0],x:s(e.date),y:r(e.yMin)},whileInView:{opacity:1,x:s(e.date),y:r(e.yMin),fill:E[0],transition:{duration:p?o.duration:.5,delay:p?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.yMin,"NA",q,M,S)}),i.jsxRuntimeExports.jsx(A.motion.text,{dy:-8,style:{textAnchor:"middle",...y?.graphObjectValues||{}},className:i.mo("text-xs font-bold",g?.graphObjectValues),exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{opacity:0,fill:E[1],x:s(e.date),y:r(e.yMax)},whileInView:{opacity:1,fill:E[1],x:s(e.date),y:r(e.yMax),transition:{duration:p?o.duration:.5,delay:p?0:o.duration}}},initial:"initial",animate:c?"whileInView":"initial",children:Oe.numberFormattingFunction(e.yMax,"NA",q,M,S)})]}):null]})},d));let ve;t[82]!==ke?(ve=i.jsxRuntimeExports.jsx("g",{children:ke}),t[82]=ke,t[83]=ve):ve=t[83];const Ie=se.map((e,d)=>{const Z=Ne.getLineEndPoint({x:e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date)):0,y:e.yCoordinate?r(e.yCoordinate):0},G.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),ee=e.showConnector?{y1:Z.y,x1:Z.x,y2:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?r(e.yCoordinate):0,cx:e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date)):0,circleRadius:G.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,qe={y:e.yCoordinate?r(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:ft?0:e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:ft?e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0):u+j.right-(e.xCoordinate?s(R.parse(`${e.xCoordinate}`,l,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return i.jsxRuntimeExports.jsx(Ne.Annotation,{color:e.color,connectorsSettings:ee,labelSettings:qe,text:e.text,classNames:e.classNames,styles:e.styles,animate:o,isInView:c},d)});let je;t[84]!==Ie?(je=i.jsxRuntimeExports.jsx("g",{children:Ie}),t[84]=Ie,t[85]=je):je=t[85];const Ve=gt?i.jsxRuntimeExports.jsx(Ge.RegressionLine,{x1:0,x2:u,y1:Ot(0),y2:Ot(u),graphHeight:v,graphWidth:u,className:g?.regLine,style:y?.regLine,color:typeof gt=="string"?gt:void 0,animate:o,isInView:c}):null;let we;t[86]!==Ve?(we=i.jsxRuntimeExports.jsx("g",{children:Ve}),t[86]=Ve,t[87]=we):we=t[87];let Re;t[88]!==P?(Re=P.filter(si).map(oi),t[88]=P,t[89]=Re):Re=t[89];let Ee;t[90]===Symbol.for("react.memo_cache_sentinel")?(Ee={fill:"none",pointerEvents:"all"},t[90]=Ee):Ee=t[90];let Ce;t[91]!==ot||t[92]!==v||t[93]!==u?(Ce=i.jsxRuntimeExports.jsx("rect",{ref:ot,style:Ee,width:u,height:v}),t[91]=ot,t[92]=v,t[93]=u,t[94]=Ce):Ce=t[94];let Me;return t[95]!==g?.tooltip||t[96]!==U||t[97]!==m||t[98]!==L||t[99]!==y?.tooltip||t[100]!==tt?(Me=L&&tt&&U&&m?i.jsxRuntimeExports.jsx($e.Tooltip,{data:L,body:tt,xPos:U,yPos:m,backgroundStyle:y?.tooltip,className:g?.tooltip}):null,t[95]=g?.tooltip,t[96]=U,t[97]=m,t[98]=L,t[99]=y?.tooltip,t[100]=tt,t[101]=Me):Me=t[101],i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(A.motion.svg,{width:`${_}px`,height:`${Ft}px`,viewBox:`0 0 ${_} ${Ft}`,direction:"ltr",ref:wt,children:i.jsxRuntimeExports.jsxs("g",{transform:`translate(${j.left},${j.top})`,children:[O,i.jsxRuntimeExports.jsx(Ne.CustomArea,{areaSettings:xe,scaleX:s,scaleY:r,animate:o,isInView:c}),i.jsxRuntimeExports.jsxs("g",{children:[i.jsxRuntimeExports.jsx(Pe.YTicksAndGridLines,{values:Zt.filter(ci),y:Zt.filter(li).map(e=>r(e)),x1:0-D,x2:u+j.right,styles:ct,classNames:z,suffix:S,prefix:M,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:q}),pt,V]}),i.jsxRuntimeExports.jsx("g",{children:_t.map((e,d)=>i.jsxRuntimeExports.jsx("g",{children:i.jsxRuntimeExports.jsx("text",{y:v,x:s(e),style:{textAnchor:"middle"},className:"fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",dy:15,children:R.format(e,l)})},d))}),N,i.jsxRuntimeExports.jsx(A.motion.path,{style:Q,exit:Tt,variants:{initial:{opacity:0,d:Qt(a)||""},whileInView:{opacity:Xt,d:Qt(a)||"",transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),Yt?i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(A.motion.path,{style:{stroke:E[0],fill:"none",strokeWidth:Yt},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{pathLength:0,d:Mt(a)||"",opacity:1},whileInView:{pathLength:1,d:Mt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),i.jsxRuntimeExports.jsx(A.motion.path,{style:{stroke:E[1],fill:"none",strokeWidth:Yt},exit:{opacity:0,transition:{duration:o.duration}},variants:{initial:{pathLength:0,d:Kt(a)||"",opacity:1},whileInView:{pathLength:1,d:Kt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"})]}):null,i.jsxRuntimeExports.jsx(A.motion.path,{style:$t,exit:ge,variants:{initial:{pathLength:0,d:Jt(a)||"",opacity:1},whileInView:{pathLength:1,d:Jt(a)||"",opacity:1,transition:{duration:o.duration}}},initial:"initial",animate:c?"whileInView":"initial"}),L?i.jsxRuntimeExports.jsx("line",{y1:0,y2:v,x1:s(L.date),x2:s(L.date),className:i.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",g?.mouseOverLine),style:y?.mouseOverLine}):null,ve,ie?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:ie.map((e,d)=>i.jsxRuntimeExports.jsx(He.RefLineY,{text:e.text,color:e.color,y:r(e.value),x1:0-D,x2:u+j.right,classNames:e.classNames,styles:e.styles,animate:o,isInView:c},d))}):null,je,we,Re,Ce]})}),Me]})}function oi(n){return n.layer}function si(n){return n.position==="after"}function ai(n){return n.layer}function ri(n){return n.position==="before"}function li(n){return n!==0}function ci(n){return n!==0}function ui(n){return!G.checkIfNullOrUndefined(n.date)&&!G.checkIfNullOrUndefined(n.y)}function xi(n){return n.date}function mi(n){return Math.max(n.y,n.yMax,n.yMin)}function pi(n){return Math.max(n.y,n.yMax,n.yMin)}function di(n){return Math.min(n.y,n.yMax,n.yMin)}function hi(n){return Math.min(n.y,n.yMax,n.yMin)}function fi(n){return Math.min(n.y,n.yMax,n.yMin)}function yi(n){return!G.checkIfNullOrUndefined(n.y)}function gi(n){const t=i.compilerRuntimeExports.c(104),{data:h,graphTitle:_,suffix:Ft,sources:b,prefix:S,graphDescription:M,height:l,width:f,footNote:Wt,noOfXTicks:he,dateFormat:Ht,showValues:D,backgroundColor:Gt,padding:dt,lineColor:tt,leftMargin:Pt,rightMargin:ie,topMargin:ne,bottomMargin:ht,tooltip:o,refValues:ft,highlightAreaSettings:et,relativeHeight:oe,onSeriesMouseOver:se,graphID:yt,minValue:gt,maxValue:ae,regressionLine:fe,showIntervalDots:Yt,showIntervalValues:E,intervalLineStrokeWidth:Ut,intervalLineColors:Xt,intervalAreaColor:vt,intervalAreaOpacity:ye,graphDownload:re,dataDownload:le,animate:jt,language:y,minHeight:g,strokeWidth:q,showDots:P,annotations:wt,customHighlightAreaSettings:Y,theme:c,ariaLabel:p,yAxisTitle:ce,noOfYTicks:Rt,minDate:it,maxDate:nt,colorLegendTitle:L,colorLegendColors:Et,colorLegendDomain:U,curveType:ue,styles:m,classNames:x,precision:Bt,customLayers:X}=n,j=Ft===void 0?"":Ft,ot=S===void 0?"":S,st=he===void 0?10:he,a=Ht===void 0?"yyyy":Ht,at=D===void 0?!1:D,Ct=Gt===void 0?!1:Gt,rt=Pt===void 0?30:Pt,xe=ie===void 0?30:ie,u=ne===void 0?20:ne,v=ht===void 0?25:ht;let zt;t[0]!==ft?(zt=ft===void 0?[]:ft,t[0]=ft,t[1]=zt):zt=t[1];const me=zt;let w;t[2]!==et?(w=et===void 0?[]:et,t[2]=et,t[3]=w):w=t[3];const B=w,s=fe===void 0?!1:fe,lt=Yt===void 0?!1:Yt,r=E===void 0?!1:E,Jt=Ut===void 0?0:Ut;let Mt;t[4]!==Xt?(Mt=Xt===void 0?[Le.Colors.light.grays["gray-500"],Le.Colors.light.grays["gray-500"]]:Xt,t[4]=Xt,t[5]=Mt):Mt=t[5];const Kt=Mt,Qt=vt===void 0?Le.Colors.primaryColors["blue-100"]:vt,Zt=ye===void 0?.4:ye,_t=re===void 0?!1:re,te=le===void 0?!1:le,Ot=jt===void 0?!1:jt,O=y===void 0?"en":y,At=g===void 0?0:g,bt=q===void 0?2:q,ct=P===void 0?!0:P;let ut;t[6]!==wt?(ut=wt===void 0?[]:wt,t[6]=wt,t[7]=ut):ut=t[7];const Lt=ut;let z;t[8]!==Y?(z=Y===void 0?[]:Y,t[8]=Y,t[9]=z):z=t[9];const kt=z,It=c===void 0?"light":c,Vt=Rt===void 0?5:Rt,Nt=ue===void 0?"curve":ue,St=Bt===void 0?2:Bt;let k;t[10]!==X?(k=X===void 0?[]:X,t[10]=X,t[11]=k):k=t[11];const Dt=k,[J,pe]=C.useState(0),[I,de]=C.useState(0),qt=C.useRef(null),K=C.useRef(null);let xt,mt;t[12]===Symbol.for("react.memo_cache_sentinel")?(xt=()=>{const Tt=new ResizeObserver($t=>{pe($t[0].target.clientWidth||620),de($t[0].target.clientHeight||480)});return qt.current&&Tt.observe(qt.current),()=>Tt.disconnect()},mt=[],t[12]=xt,t[13]=mt):(xt=t[12],mt=t[13]),C.useEffect(xt,mt);const T=x?.graphContainer,pt=m?.graphContainer;let $;t[14]!==x?.description||t[15]!==x?.title||t[16]!==h||t[17]!==te||t[18]!==M||t[19]!==_t||t[20]!==_||t[21]!==m?.description||t[22]!==m?.title||t[23]!==f?($=_||M||_t||te?i.jsxRuntimeExports.jsx(_e.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:x?.title,description:x?.description},graphTitle:_,graphDescription:M,width:f,graphDownload:_t?K:void 0,dataDownload:te?h.map(Ei).filter(Ri).length>0?h.map(wi).filter(ji):h.filter(vi):null}):null,t[14]=x?.description,t[15]=x?.title,t[16]=h,t[17]=te,t[18]=M,t[19]=_t,t[20]=_,t[21]=m?.description,t[22]=m?.title,t[23]=f,t[24]=$):$=t[24];let F;t[25]!==x?.colorLegend||t[26]!==Et||t[27]!==U||t[28]!==L||t[29]!==h.length||t[30]!==f?(F=Et&&U&&h.length>0?i.jsxRuntimeExports.jsx(ti.ColorLegend,{width:f,colorLegendTitle:L,colors:Et,colorDomain:U,showNAColor:!1,className:x?.colorLegend}):null,t[25]=x?.colorLegend,t[26]=Et,t[27]=U,t[28]=L,t[29]=h.length,t[30]=f,t[31]=F):F=t[31];let W;t[32]!==h.length?(W=h.length===0&&i.jsxRuntimeExports.jsx(ei.EmptyState,{}),t[32]=h.length,t[33]=W):W=t[33];let H;t[34]!==Ot||t[35]!==Lt||t[36]!==v||t[37]!==x||t[38]!==Nt||t[39]!==kt||t[40]!==Dt||t[41]!==h||t[42]!==a||t[43]!==B||t[44]!==Qt||t[45]!==Zt||t[46]!==Kt||t[47]!==Jt||t[48]!==O||t[49]!==rt||t[50]!==tt||t[51]!==nt||t[52]!==ae||t[53]!==it||t[54]!==gt||t[55]!==st||t[56]!==Vt||t[57]!==se||t[58]!==St||t[59]!==ot||t[60]!==me||t[61]!==s||t[62]!==xe||t[63]!==ct||t[64]!==lt||t[65]!==r||t[66]!==at||t[67]!==bt||t[68]!==m||t[69]!==j||t[70]!==I||t[71]!==J||t[72]!==o||t[73]!==u||t[74]!==ce?(H=J&&I&&h.length>0?i.jsxRuntimeExports.jsx(ni,{data:h,lineColor:tt||Le.Colors.primaryColors["blue-600"],width:J,height:I,suffix:j,prefix:ot,dateFormat:a,showValues:at,noOfXTicks:st??ii.getNoOfTicks(J),leftMargin:rt,rightMargin:xe,topMargin:u,bottomMargin:v,tooltip:o,highlightAreaSettings:B,onSeriesMouseOver:se,refValues:me,minValue:gt,maxValue:ae,animate:Ot===!0?{duration:.5,once:!0,amount:.5}:Ot||{duration:0,once:!0,amount:0},rtl:O==="he"||O==="ar",strokeWidth:bt,showDots:ct,annotations:Lt,customHighlightAreaSettings:kt,regressionLine:s,showIntervalDots:lt,showIntervalValues:r,intervalLineStrokeWidth:Jt,intervalLineColors:Kt,intervalAreaColor:Qt,intervalAreaOpacity:Zt,yAxisTitle:ce,noOfYTicks:Vt,minDate:it,maxDate:nt,curveType:Nt,styles:m,classNames:x,precision:St,customLayers:Dt}):null,t[34]=Ot,t[35]=Lt,t[36]=v,t[37]=x,t[38]=Nt,t[39]=kt,t[40]=Dt,t[41]=h,t[42]=a,t[43]=B,t[44]=Qt,t[45]=Zt,t[46]=Kt,t[47]=Jt,t[48]=O,t[49]=rt,t[50]=tt,t[51]=nt,t[52]=ae,t[53]=it,t[54]=gt,t[55]=st,t[56]=Vt,t[57]=se,t[58]=St,t[59]=ot,t[60]=me,t[61]=s,t[62]=xe,t[63]=ct,t[64]=lt,t[65]=r,t[66]=at,t[67]=bt,t[68]=m,t[69]=j,t[70]=I,t[71]=J,t[72]=o,t[73]=u,t[74]=ce,t[75]=H):H=t[75];let V;t[76]!==W||t[77]!==H?(V=i.jsxRuntimeExports.jsxs(De.GraphArea,{ref:qt,children:[W,H]}),t[76]=W,t[77]=H,t[78]=V):V=t[78];let N;t[79]!==x?.footnote||t[80]!==x?.source||t[81]!==Wt||t[82]!==b||t[83]!==m?.footnote||t[84]!==m?.source||t[85]!==f?(N=b||Wt?i.jsxRuntimeExports.jsx(Ze.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:x?.footnote,source:x?.source},sources:b,footNote:Wt,width:f}):null,t[79]=x?.footnote,t[80]=x?.source,t[81]=Wt,t[82]=b,t[83]=m?.footnote,t[84]=m?.source,t[85]=f,t[86]=N):N=t[86];let Q;return t[87]!==p||t[88]!==Ct||t[89]!==yt||t[90]!==l||t[91]!==O||t[92]!==At||t[93]!==dt||t[94]!==oe||t[95]!==T||t[96]!==pt||t[97]!==$||t[98]!==F||t[99]!==V||t[100]!==N||t[101]!==It||t[102]!==f?(Q=i.jsxRuntimeExports.jsxs(De.GraphContainer,{className:T,style:pt,id:yt,ref:K,"aria-label":p,backgroundColor:Ct,theme:It,language:O,minHeight:At,width:f,height:l,relativeHeight:oe,padding:dt,children:[$,F,V,N]}),t[87]=p,t[88]=Ct,t[89]=yt,t[90]=l,t[91]=O,t[92]=At,t[93]=dt,t[94]=oe,t[95]=T,t[96]=pt,t[97]=$,t[98]=F,t[99]=V,t[100]=N,t[101]=It,t[102]=f,t[103]=Q):Q=t[103],Q}function vi(n){return n!==void 0}function ji(n){return n!==void 0}function wi(n){return n.data}function Ri(n){return n!==void 0}function Ei(n){return n.data}exports.LineChartWithConfidenceInterval=gi;
2
2
  //# sourceMappingURL=LineChartWithConfidenceInterval.cjs.map
@@ -8,7 +8,7 @@ import { T as Pe } from "./Tooltip-BRnAz2Gv.js";
8
8
  import { c as P } from "./checkIfNullOrUndefined-DmfiKkNw.js";
9
9
  import { g as Ee, A as Xe, C as Ge } from "./customArea-ASDaSE4u.js";
10
10
  import { A as Be } from "./AxisTitle-VFq89Olw.js";
11
- import { A as ze } from "./Axis-DoOqnt6g.js";
11
+ import { A as ze } from "./Axis-D56Gy0se.js";
12
12
  import { a as Ue } from "./ReferenceLine-DgtoRgw0.js";
13
13
  import { R as qe } from "./RegressionLine-D2aqeBKp.js";
14
14
  import { Y as Je } from "./YTicksAndGridLines-GnXnSRF2.js";
@@ -494,6 +494,8 @@ declare interface GraphSettingsDataType {
494
494
  mapColorLegendTitle?: string;
495
495
  choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
496
496
  trackColor?: string;
497
+ zoomAndCenterByHighlightedIds?: boolean;
498
+ hideAxisLine?: boolean;
497
499
  }
498
500
 
499
501
  declare type GraphType = GraphTypeForGriddedGraph;
@@ -513,6 +513,8 @@ declare interface GraphSettingsDataType {
513
513
  mapColorLegendTitle?: string;
514
514
  choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
515
515
  trackColor?: string;
516
+ zoomAndCenterByHighlightedIds?: boolean;
517
+ hideAxisLine?: boolean;
516
518
  }
517
519
 
518
520
  declare type GraphType = GraphTypeForGriddedGraph;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-CHPV5EwG-6v2a2njQ.cjs"),A=require("react"),b=require("./parse-xYI9yrvL.cjs"),Te=require("./index-Cno4Q0YE.cjs"),Ie=require("./numberFormattingFunction-02t-wJta.cjs"),Ye=require("./Tooltip-BLa2EfMs.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Se=require("./customArea-B1LWQBmM.cjs"),Xe=require("./AxisTitle-DV4n0RxE.cjs"),Fe=require("./Axis-Dtjn-EgM.cjs"),Pe=require("./XTicksAndGridLines-CekrPykD.cjs"),Be=require("./ReferenceLine-M9aP3dj-.cjs"),ze=require("./YTicksAndGridLines-UzVC5eBM.cjs"),Je=require("./index-D69M6klB.cjs"),B=require("./Colors.cjs"),Ee=require("./uniqBy-O05lp2S5.cjs"),ke=require("./init-DU0ybBc_.cjs"),Ke=require("./time-CkcKbhwe.cjs"),Qe=require("./linear-CgUCbw9F.cjs"),Ze=require("./delaunay-rcy0HhZi.cjs"),$e=require("./line-DaEMhXmx.cjs"),Ae=require("./step-BZ3C8QFW.cjs"),_e=require("./select-Bnfk0lJx.cjs"),Ft=require("./proxy-C4-uo6nS.cjs"),tn=require("./pointer-Dkq5NV1q.cjs"),en=require("./use-in-view-C3o_ntMv.cjs"),nn=require("./GraphFooter.cjs"),on=require("./GraphHeader.cjs"),rn=require("./EmptyState-CGeBqbmR.cjs"),sn=require("./ColorLegendWithMouseOver.cjs"),Ve=require("./GraphContainer-B1EDxJ0S.cjs"),ln=require("./getNoOfTicks-C_1CFXv_.cjs");function an(e,t){return Array.from(t,i=>e[i])}function cn(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[i]=t;if(i&&i.length!==2||t.length>1){const O=Uint32Array.from(e,(E,c)=>c);return t.length>1?(t=t.map(E=>e.map(E)),O.sort((E,c)=>{for(const r of t){const wt=Me(r[E],r[c]);if(wt)return wt}})):(i=e.map(i),O.sort((E,c)=>Me(i[E],i[c]))),an(e,O)}return e.sort(un(i))}function un(e=ke.ascending){if(e===ke.ascending)return Me;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,i)=>{const O=e(t,i);return O||O===0?O:(e(i,i)===0)-(e(t,t)===0)}}function Me(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function fn(e){const t=s.compilerRuntimeExports.c(128),{data:i,width:O,height:E,lineColors:c,dateFormat:r,noOfXTicks:wt,rightMargin:st,topMargin:Pt,bottomMargin:lt,suffix:U,prefix:g,leftMargin:C,tooltip:bt,onSeriesMouseOver:at,refValues:ct,highlightAreaSettings:Bt,minValue:z,maxValue:Ct,highlightedLines:H,animate:l,rtl:J,strokeWidth:T,showDots:se,annotations:Rt,customHighlightAreaSettings:zt,yAxisTitle:K,noOfYTicks:Jt,minDate:Kt,maxDate:Qt,curveType:ut,styles:j,colorDomain:L,selectedColor:At,classNames:R,showLabels:he,dimmedOpacity:q,precision:Q,naLabel:ge,customLayers:Z}=e,Et=A.useRef(null);let _;t[0]!==l.amount||t[1]!==l.once?(_={once:l.once,amount:l.amount},t[0]=l.amount,t[1]=l.once,t[2]=_):_=t[2];const m=en.useInView(Et,_),[S,le]=A.useState(!1);let kt,ft;t[3]!==l.duration||t[4]!==S||t[5]!==m?(kt=()=>{if(m&&!S){const n=setTimeout(()=>{le(!0)},(l.duration+.5)*1e3);return()=>clearTimeout(n)}},ft=[m,S,l.duration],t[3]=l.duration,t[4]=S,t[5]=m,t[6]=kt,t[7]=ft):(kt=t[6],ft=t[7]),A.useEffect(kt,ft);const ae=ut==="linear"?$e.curveLinear:ut==="step"?Ae.curveStep:ut==="stepAfter"?Ae.stepAfter:ut==="stepBefore"?Ae.stepBefore:Ae.monotoneX;let Nt;t[8]!==r?(Nt=n=>({...n,date:b.parse(`${n.date}`,r,new Date)}),t[8]=r,t[9]=Nt):Nt=t[9];const a=Te.orderBy(i.map(Nt),["date"],["asc"]).filter(Wn),d=Ee.uniqBy(a,"label",!0);let Dt;t[10]!==r?(Dt=n=>b.parse(`${n}`,r,new Date),t[10]=r,t[11]=Dt):Dt=t[11];const Zt=cn(Ee.uniqBy(i,"date",!0).map(Dt),Gn),[x,mt]=A.useState(void 0),[xt,tt]=A.useState(void 0),[pt,et]=A.useState(void 0),Lt=K?C+30:C;let dt;t[12]!==lt||t[13]!==st||t[14]!==Lt||t[15]!==Pt?(dt={top:Pt,bottom:lt,left:Lt,right:st},t[12]=lt,t[13]=st,t[14]=Lt,t[15]=Pt,t[16]=dt):dt=t[16];const h=dt,ce=A.useRef(null),ue=d.map(n=>Te.orderBy(a.filter(o=>o.label==n),["date"],["asc"]));let ht;if(t[17]!==r||t[18]!==Bt){let n;t[20]!==r?(n=o=>({...o,coordinates:[o.coordinates[0]===null?null:b.parse(`${o.coordinates[0]}`,r,new Date),o.coordinates[1]===null?null:b.parse(`${o.coordinates[1]}`,r,new Date)]}),t[20]=r,t[21]=n):n=t[21],ht=Bt.map(n),t[17]=r,t[18]=Bt,t[19]=ht}else ht=t[19];const qt=ht;let gt;if(t[22]!==zt||t[23]!==r){let n;t[25]!==r?(n=o=>({...o,coordinates:o.coordinates.map((y,Xt)=>Xt%2===0?b.parse(`${y}`,r,new Date):y)}),t[25]=r,t[26]=n):n=t[26],gt=zt.map(n),t[22]=zt,t[23]=r,t[24]=gt}else gt=t[24];const _t=gt,p=O-h.left-h.right,k=E-h.top-h.bottom,fe=Kt?b.parse(`${Kt}`,r,new Date):Zt[0],te=Qt?b.parse(`${Qt}`,r,new Date):Zt[Zt.length-1],w=v.checkIfNullOrUndefined(z)?Math.min(...a.map(Hn).filter(Un))?Math.min(...a.map(Vn).filter($n))>0?0:Math.min(...a.map(In).filter(Tn)):0:z,G=Math.max(...a.map(Mn).filter(Sn))?Math.max(...a.map(qn).filter(Ln)):0,u=Ke.time().domain([fe,te]).range([0,p]);let nt;t[27]!==w||t[28]!==z?(nt=v.checkIfNullOrUndefined(z)?w:z,t[27]=w,t[28]=z,t[29]=nt):nt=t[29];let M;t[30]!==G||t[31]!==Ct?(M=v.checkIfNullOrUndefined(Ct)?G>0?G:0:Ct,t[30]=G,t[31]=Ct,t[32]=M):M=t[32];const f=Qe.linear().domain([nt,M]).range([k,0]).nice(),me=Ze.Delaunay.from(a.filter(Dn),n=>u(n.date),n=>f(n.y)).voronoi([0,0,p<0?0:p,k<0?0:k]),St=$e.line().x(n=>u(n.date)).y(n=>f(n.y)).curve(ae),Mt=f.ticks(Jt),ee=u.ticks(wt);A.useEffect(()=>{const n=y=>{const Xt=a[ke.bisectCenter(a.map(Nn),u.invert(tn.pointer(y)[0]),0)];mt(Xt||a[a.length-1]),et(y.clientY),tt(y.clientX),at?.(Xt||a[a.length-1])},o=()=>{mt(void 0),tt(void 0),et(void 0)};_e.select(ce.current).on("mousemove",n).on("mouseout",o),at?.(void 0)},[u,a,at]);let ot;t[33]!==l||t[34]!==k||t[35]!==p||t[36]!==qt||t[37]!==m||t[38]!==u?(ot=s.jsxRuntimeExports.jsx(Je.HighlightArea,{areaSettings:qt,width:p,height:k,scale:u,animate:l,isInView:m}),t[33]=l,t[34]=k,t[35]=p,t[36]=qt,t[37]=m,t[38]=u,t[39]=ot):ot=t[39];const Tt=j?.yAxis?.gridLines,N=j?.yAxis?.labels;let yt;t[40]!==Tt||t[41]!==N?(yt={gridLines:Tt,labels:N},t[40]=Tt,t[41]=N,t[42]=yt):yt=t[42];const It=R?.yAxis?.gridLines,$t=R?.yAxis?.labels;let vt;t[43]!==It||t[44]!==$t?(vt={gridLines:It,labels:$t},t[43]=It,t[44]=$t,t[45]=vt):vt=t[45];const Ot=f(w<0?0:w),Vt=f(w<0?0:w),Ut=0-C,it=p+h.right,xe=w<0?0:w;let I;t[46]!==Q||t[47]!==g||t[48]!==U||t[49]!==xe?(I=Ie.numberFormattingFunction(xe,"NA",Q,g,U),t[46]=Q,t[47]=g,t[48]=U,t[49]=xe,t[50]=I):I=t[50];const pe=0-C,Ht=f(w<0?0:w),de=G<0?"1em":-5;let W;t[51]!==pe||t[52]!==Ht||t[53]!==de?(W={x:pe,y:Ht,dx:0,dy:de},t[51]=pe,t[52]=Ht,t[53]=de,t[54]=W):W=t[54];const ne=R?.xAxis?.axis,jt=R?.yAxis?.labels;let $;t[55]!==ne||t[56]!==jt?($={axis:ne,label:jt},t[55]=ne,t[56]=jt,t[57]=$):$=t[57];const Gt=j?.xAxis?.axis,Wt=j?.yAxis?.labels;let D;t[58]!==Gt||t[59]!==Wt?(D={axis:Gt,label:Wt},t[58]=Gt,t[59]=Wt,t[60]=D):D=t[60];let V;t[61]!==Ot||t[62]!==Vt||t[63]!==Ut||t[64]!==it||t[65]!==I||t[66]!==W||t[67]!==$||t[68]!==D?(V=s.jsxRuntimeExports.jsx(Fe.Axis,{y1:Ot,y2:Vt,x1:Ut,x2:it,label:I,labelPos:W,classNames:$,styles:D}),t[61]=Ot,t[62]=Vt,t[63]=Ut,t[64]=it,t[65]=I,t[66]=W,t[67]=$,t[68]=D,t[69]=V):V=t[69];const Y=0-C-15,X=k/2,F=j?.yAxis?.title,P=R?.yAxis?.title;let rt;t[70]!==Y||t[71]!==X||t[72]!==F||t[73]!==P||t[74]!==K?(rt=s.jsxRuntimeExports.jsx(Xe.AxisTitle,{x:Y,y:X,style:F,className:P,text:K,rotate90:!0}),t[70]=Y,t[71]=X,t[72]=F,t[73]=P,t[74]=K,t[75]=rt):rt=t[75];let Yt;t[76]!==r?(Yt=n=>b.format(n,r),t[76]=r,t[77]=Yt):Yt=t[77];const ye=ee.map(Yt),Ue=ee.map(n=>u(n)),Ne=j?.xAxis?.gridLines,De=j?.xAxis?.labels;let ve;t[78]!==Ne||t[79]!==De?(ve={gridLines:Ne,labels:De},t[78]=Ne,t[79]=De,t[80]=ve):ve=t[80];const Le=R?.xAxis?.gridLines;let oe;t[81]!==Le?(oe=s.mo("opacity-0",Le),t[81]=Le,t[82]=oe):oe=t[82];const qe=R?.xAxis?.labels;let ie;t[83]!==qe?(ie=s.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",qe),t[83]=qe,t[84]=ie):ie=t[84];let Oe;t[85]!==oe||t[86]!==ie?(Oe={gridLines:oe,labels:ie},t[85]=oe,t[86]=ie,t[87]=Oe):Oe=t[87];let je;t[88]!==Z?(je=Z.filter(An).map(Rn),t[88]=Z,t[89]=je):je=t[89];const He=a.filter(pn).map((n,o)=>s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx("path",{d:me.renderCell(a.findIndex(y=>y.label===n.label&&y.date===n.date)),opacity:0,onMouseEnter:y=>{mt(n),et(y.clientY),tt(y.clientX),at?.(n)},onMouseMove:y=>{mt(n),et(y.clientY),tt(y.clientX)},onMouseLeave:()=>{mt(void 0),tt(void 0),et(void 0),at?.(void 0)}})},o));let we;t[90]!==l||t[91]!==p||t[92]!==m||t[93]!==C||t[94]!==h.right||t[95]!==ct||t[96]!==f?(we=ct?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:ct.map((n,o)=>s.jsxRuntimeExports.jsx(Be.RefLineY,{text:n.text,color:n.color,y:f(n.value),x1:0-C,x2:p+h.right,classNames:n.classNames,styles:n.styles,animate:l,isInView:m},o))}):null,t[90]=l,t[91]=p,t[92]=m,t[93]=C,t[94]=h.right,t[95]=ct,t[96]=f,t[97]=we):we=t[97];let re;if(t[98]!==l||t[99]!==Rt||t[100]!==r||t[101]!==p||t[102]!==m||t[103]!==h.right||t[104]!==J||t[105]!==u||t[106]!==f){let n;t[108]!==l||t[109]!==r||t[110]!==p||t[111]!==m||t[112]!==h.right||t[113]!==J||t[114]!==u||t[115]!==f?(n=(o,y)=>{const Xt=Se.getLineEndPoint({x:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),y:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0)-8:0+(o.yOffset||0)-8},{x:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date)):0,y:o.yCoordinate?f(o.yCoordinate):0},v.checkIfNullOrUndefined(o.connectorRadius)?3.5:o.connectorRadius),Ge=o.showConnector?{y1:Xt.y,x1:Xt.x,y2:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0):0+(o.yOffset||0),x2:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),cy:o.yCoordinate?f(o.yCoordinate):0,cx:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date)):0,circleRadius:v.checkIfNullOrUndefined(o.connectorRadius)?3.5:o.connectorRadius,strokeWidth:o.showConnector===!0?2:Math.min(o.showConnector||0,1)}:void 0,We={y:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0)-8:0+(o.yOffset||0)-8,x:J?0:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),width:J?o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0):p+h.right-(o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0)),maxWidth:o.maxWidth,fontWeight:o.fontWeight,align:o.align};return s.jsxRuntimeExports.jsx(Se.Annotation,{color:o.color,connectorsSettings:Ge,labelSettings:We,text:o.text,classNames:o.classNames,styles:o.styles,animate:l,isInView:m},y)},t[108]=l,t[109]=r,t[110]=p,t[111]=m,t[112]=h.right,t[113]=J,t[114]=u,t[115]=f,t[116]=n):n=t[116],re=Rt.map(n),t[98]=l,t[99]=Rt,t[100]=r,t[101]=p,t[102]=m,t[103]=h.right,t[104]=J,t[105]=u,t[106]=f,t[107]=re}else re=t[107];let be;t[117]!==re?(be=s.jsxRuntimeExports.jsx("g",{children:re}),t[117]=re,t[118]=be):be=t[118];let Ce;t[119]!==Z?(Ce=Z.filter(xn).map(mn),t[119]=Z,t[120]=Ce):Ce=t[120];let Re;return t[121]!==R?.tooltip||t[122]!==xt||t[123]!==pt||t[124]!==x||t[125]!==j?.tooltip||t[126]!==bt?(Re=x&&bt&&xt&&pt?s.jsxRuntimeExports.jsx(Ye.Tooltip,{data:x,body:bt,xPos:xt,yPos:pt,backgroundStyle:j?.tooltip,className:R?.tooltip}):null,t[121]=R?.tooltip,t[122]=xt,t[123]=pt,t[124]=x,t[125]=j?.tooltip,t[126]=bt,t[127]=Re):Re=t[127],s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(Ft.motion.svg,{width:`${O}px`,height:`${E}px`,viewBox:`0 0 ${O} ${E}`,direction:"ltr",ref:Et,children:s.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[ot,s.jsxRuntimeExports.jsx(Se.CustomArea,{areaSettings:_t,scaleX:u,scaleY:f,animate:l,isInView:m}),s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(ze.YTicksAndGridLines,{values:Mt.filter(kn),y:Mt.filter(En).map(n=>f(n)),x1:0-C,x2:p+h.right,styles:yt,classNames:vt,suffix:U,prefix:g,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:Q}),V,rt]}),s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx(Pe.XTicksAndGridLines,{values:ye,x:Ue,y1:0,y2:k,styles:ve,classNames:Oe,suffix:U,prefix:g,labelType:"primary",showGridLines:!0,precision:Q})}),je,s.jsxRuntimeExports.jsxs(Ft.motion.g,{children:[ue.map(n=>s.jsxRuntimeExports.jsxs(Ft.motion.g,{exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:x?n[0].label===x.label?1:q:At?n[0].color&&c[L.indexOf(n[0].color)]===At?1:q:H.length!==0?H.indexOf(n[0].label)!==-1?1:q:1},whileInView:{opacity:x?n[0].label===x.label?1:q:At?n[0].color&&c[L.indexOf(n[0].color)]===At?1:q:H.length!==0?H.indexOf(n[0].label)!==-1?1:q:1,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:[s.jsxRuntimeExports.jsx(Ft.motion.path,{d:St(n.filter(Cn))||"",style:{fill:"none",strokeWidth:x?n[0].label===x.label?T+Math.max(2,.5*T):T:H.length!==0&&H.indexOf(n[0].label)!==-1?T+Math.max(2,.5*T):T},exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{pathLength:0,d:St(n.filter(bn))||"",opacity:1,stroke:i.filter(wn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray},whileInView:{pathLength:1,d:St(n.filter(jn))||"",opacity:1,stroke:i.filter(On).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial"}),n.map((o,y)=>s.jsxRuntimeExports.jsx(Ft.motion.g,{children:v.checkIfNullOrUndefined(o.y)?null:s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:se?s.jsxRuntimeExports.jsx(Ft.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:i.filter(vn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,cx:u(o.date),cy:f(o.y)},whileInView:{opacity:1,fill:i.filter(yn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,transition:{duration:S?l.duration:.5,delay:S?0:l.duration},cx:u(o.date),cy:f(o.y)}},initial:"initial",animate:m?"whileInView":"initial"}):null})},y)),(H.indexOf(n[0].label)!==-1||x?.label===n[0].label)&&he?s.jsxRuntimeExports.jsx(Ft.motion.text,{className:"text-sm font-bold",dx:5,dy:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:i.filter(gn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,x:u(n[n.length-1].date),y:f(n[n.length-1].y)},whileInView:{opacity:1,fill:i.filter(hn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,x:u(n[n.length-1].date),y:f(n[n.length-1].y),transition:{duration:S?l.duration:.5,delay:S?0:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:n[0].label}):null]},n[0].label)),x?s.jsxRuntimeExports.jsx("text",{y:f(x.y)-8,x:u(x.date),className:s.mo("graph-value text-sm font-bold",R?.graphObjectValues),style:{fill:i.filter(dn).length===0?c[0]:x.color?c[L.indexOf(x.color)]:B.Colors.gray,textAnchor:"middle",...j?.graphObjectValues||{}},children:Ie.numberFormattingFunction(x.y,ge,Q,g,U)}):null]}),He,we,be,Ce]})}),Re]})}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 On(e){return e.color}function jn(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 ke.ascending(e,t)}function Wn(e){return!v.checkIfNullOrUndefined(e.y)}function Yn(e){const t=s.compilerRuntimeExports.c(106),{data:i,graphTitle:O,showNAColor:E,colors:c,colorDomain:r,suffix:wt,sources:st,prefix:Pt,graphDescription:lt,height:U,width:g,footNote:C,noOfXTicks:bt,dateFormat:at,padding:ct,backgroundColor:Bt,leftMargin:z,rightMargin:Ct,topMargin:H,bottomMargin:l,showColorScale:J,tooltip:T,relativeHeight:se,onSeriesMouseOver:Rt,showLabels:zt,refValues:K,highlightAreaSettings:Jt,graphID:Kt,minValue:Qt,maxValue:ut,highlightedLines:j,graphDownload:L,dataDownload:At,animate:R,language:he,colorLegendTitle:q,minHeight:Q,strokeWidth:ge,showDots:Z,annotations:Et,customHighlightAreaSettings:_,theme:m,ariaLabel:S,yAxisTitle:le,noOfYTicks:kt,minDate:ft,maxDate:ae,curveType:Nt,styles:a,classNames:d,dimmedOpacity:Dt,precision:Zt,customLayers:x,naLabel:mt}=e,xt=E===void 0?!0:E,tt=wt===void 0?"":wt,pt=Pt===void 0?"":Pt,et=bt===void 0?10:bt,Lt=at===void 0?"yyyy":at,dt=Bt===void 0?!1:Bt,h=z===void 0?30:z,ce=Ct===void 0?50:Ct,ue=H===void 0?20:H,ht=l===void 0?25:l,qt=J===void 0?!0:J,gt=zt===void 0?!0:zt;let _t;t[0]!==K?(_t=K===void 0?[]:K,t[0]=K,t[1]=_t):_t=t[1];const p=_t;let k;t[2]!==Jt?(k=Jt===void 0?[]:Jt,t[2]=Jt,t[3]=k):k=t[3];const fe=k;let te;t[4]!==j?(te=j===void 0?[]:j,t[4]=j,t[5]=te):te=t[5];const w=te,G=L===void 0?!1:L,u=At===void 0?!1:At,nt=R===void 0?!1:R,M=he===void 0?"en":he,f=Q===void 0?0:Q,me=ge===void 0?2:ge,St=Z===void 0?!0:Z;let Mt;t[6]!==Et?(Mt=Et===void 0?[]:Et,t[6]=Et,t[7]=Mt):Mt=t[7];const ee=Mt;let ot;t[8]!==_?(ot=_===void 0?[]:_,t[8]=_,t[9]=ot):ot=t[9];const Tt=ot,N=m===void 0?"light":m,yt=kt===void 0?5:kt,It=Nt===void 0?"curve":Nt,$t=Dt===void 0?.3:Dt,vt=Zt===void 0?2:Zt;let Ot;t[10]!==x?(Ot=x===void 0?[]:x,t[10]=x,t[11]=Ot):Ot=t[11];const Vt=Ot,Ut=mt===void 0?"NA":mt,[it,xe]=A.useState(0),[I,pe]=A.useState(0),[Ht,de]=A.useState(void 0),W=A.useRef(null),ne=A.useRef(null);let jt,$;t[12]===Symbol.for("react.memo_cache_sentinel")?(jt=()=>{const Yt=new ResizeObserver(ye=>{xe(ye[0].target.clientWidth||620),pe(ye[0].target.clientHeight||480)});return W.current&&Yt.observe(W.current),()=>Yt.disconnect()},$=[],t[12]=jt,t[13]=$):(jt=t[12],$=t[13]),A.useEffect(jt,$);const Gt=d?.graphContainer,Wt=a?.graphContainer;let D;t[14]!==d?.description||t[15]!==d?.title||t[16]!==i||t[17]!==u||t[18]!==lt||t[19]!==G||t[20]!==O||t[21]!==a?.description||t[22]!==a?.title||t[23]!==g?(D=O||lt||G||u?s.jsxRuntimeExports.jsx(on.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:d?.title,description:d?.description},graphTitle:O,graphDescription:lt,width:g,graphDownload:G?ne:void 0,dataDownload:u?i.map(Qn).filter(Kn).length>0?i.map(Jn).filter(zn):i.filter(Bn):null}):null,t[14]=d?.description,t[15]=d?.title,t[16]=i,t[17]=u,t[18]=lt,t[19]=G,t[20]=O,t[21]=a?.description,t[22]=a?.title,t[23]=g,t[24]=D):D=t[24];let V;t[25]!==d?.colorLegend||t[26]!==r||t[27]!==q||t[28]!==c||t[29]!==i||t[30]!==qt||t[31]!==xt||t[32]!==N||t[33]!==g?(V=qt&&i.filter(Pn).length!==0&&i.length>0?s.jsxRuntimeExports.jsx(sn.ColorLegendWithMouseOver,{width:g,colorLegendTitle:q,colors:c||B.Colors[N].categoricalColors.colors,colorDomain:r||Ee.uniqBy(i,"color",!0),setSelectedColor:de,showNAColor:xt,className:d?.colorLegend}):null,t[25]=d?.colorLegend,t[26]=r,t[27]=q,t[28]=c,t[29]=i,t[30]=qt,t[31]=xt,t[32]=N,t[33]=g,t[34]=V):V=t[34];let Y;t[35]!==i.length?(Y=i.length===0&&s.jsxRuntimeExports.jsx(rn.EmptyState,{}),t[35]=i.length,t[36]=Y):Y=t[36];let X;t[37]!==nt||t[38]!==ee||t[39]!==ht||t[40]!==d||t[41]!==r||t[42]!==c||t[43]!==It||t[44]!==Tt||t[45]!==Vt||t[46]!==i||t[47]!==Lt||t[48]!==$t||t[49]!==fe||t[50]!==w||t[51]!==M||t[52]!==h||t[53]!==ae||t[54]!==ut||t[55]!==ft||t[56]!==Qt||t[57]!==Ut||t[58]!==et||t[59]!==yt||t[60]!==Rt||t[61]!==vt||t[62]!==pt||t[63]!==p||t[64]!==ce||t[65]!==Ht||t[66]!==St||t[67]!==gt||t[68]!==me||t[69]!==a||t[70]!==tt||t[71]!==I||t[72]!==it||t[73]!==N||t[74]!==T||t[75]!==ue||t[76]!==le?(X=it&&I&&i.length>0?s.jsxRuntimeExports.jsx(fn,{data:i,lineColors:i.filter(Fn).length===0?c?[c]:[B.Colors.primaryColors["blue-600"]]:c||B.Colors[N].categoricalColors.colors,width:it,height:I,dateFormat:Lt,noOfXTicks:et??ln.getNoOfTicks(it),leftMargin:h,rightMargin:ce,topMargin:ue,bottomMargin:ht,tooltip:T,onSeriesMouseOver:Rt,suffix:tt,prefix:pt,highlightAreaSettings:fe,refValues:p,minValue:Qt,maxValue:ut,highlightedLines:w,animate:nt===!0?{duration:.5,once:!0,amount:.5}:nt||{duration:0,once:!0,amount:0},rtl:M==="he"||M==="ar",strokeWidth:me,showDots:St,annotations:ee,customHighlightAreaSettings:Tt,yAxisTitle:le,noOfYTicks:yt,minDate:ft,maxDate:ae,curveType:It,styles:a,classNames:d,selectedColor:Ht,showLabels:gt,colorDomain:i.filter(Xn).length===0?[]:r||Ee.uniqBy(i,"color",!0),dimmedOpacity:$t,precision:vt,customLayers:Vt,naLabel:Ut}):null,t[37]=nt,t[38]=ee,t[39]=ht,t[40]=d,t[41]=r,t[42]=c,t[43]=It,t[44]=Tt,t[45]=Vt,t[46]=i,t[47]=Lt,t[48]=$t,t[49]=fe,t[50]=w,t[51]=M,t[52]=h,t[53]=ae,t[54]=ut,t[55]=ft,t[56]=Qt,t[57]=Ut,t[58]=et,t[59]=yt,t[60]=Rt,t[61]=vt,t[62]=pt,t[63]=p,t[64]=ce,t[65]=Ht,t[66]=St,t[67]=gt,t[68]=me,t[69]=a,t[70]=tt,t[71]=I,t[72]=it,t[73]=N,t[74]=T,t[75]=ue,t[76]=le,t[77]=X):X=t[77];let F;t[78]!==Y||t[79]!==X?(F=s.jsxRuntimeExports.jsxs(Ve.GraphArea,{ref:W,children:[Y,X]}),t[78]=Y,t[79]=X,t[80]=F):F=t[80];let P;t[81]!==d?.footnote||t[82]!==d?.source||t[83]!==C||t[84]!==st||t[85]!==a?.footnote||t[86]!==a?.source||t[87]!==g?(P=st||C?s.jsxRuntimeExports.jsx(nn.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:st,footNote:C,width:g}):null,t[81]=d?.footnote,t[82]=d?.source,t[83]=C,t[84]=st,t[85]=a?.footnote,t[86]=a?.source,t[87]=g,t[88]=P):P=t[88];let rt;return t[89]!==S||t[90]!==dt||t[91]!==Kt||t[92]!==U||t[93]!==M||t[94]!==f||t[95]!==ct||t[96]!==se||t[97]!==Gt||t[98]!==Wt||t[99]!==D||t[100]!==V||t[101]!==F||t[102]!==P||t[103]!==N||t[104]!==g?(rt=s.jsxRuntimeExports.jsxs(Ve.GraphContainer,{className:Gt,style:Wt,id:Kt,ref:ne,"aria-label":S,backgroundColor:dt,theme:N,language:M,minHeight:f,width:g,height:U,relativeHeight:se,padding:ct,children:[D,V,F,P]}),t[89]=S,t[90]=dt,t[91]=Kt,t[92]=U,t[93]=M,t[94]=f,t[95]=ct,t[96]=se,t[97]=Gt,t[98]=Wt,t[99]=D,t[100]=V,t[101]=F,t[102]=P,t[103]=N,t[104]=g,t[105]=rt):rt=t[105],rt}function Xn(e){return e.color}function Fn(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 s=require("./index-CHPV5EwG-6v2a2njQ.cjs"),A=require("react"),b=require("./parse-xYI9yrvL.cjs"),Te=require("./index-Cno4Q0YE.cjs"),Ie=require("./numberFormattingFunction-02t-wJta.cjs"),Ye=require("./Tooltip-BLa2EfMs.cjs"),v=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Se=require("./customArea-B1LWQBmM.cjs"),Xe=require("./AxisTitle-DV4n0RxE.cjs"),Fe=require("./Axis-Jt_tmhxS.cjs"),Pe=require("./XTicksAndGridLines-CekrPykD.cjs"),Be=require("./ReferenceLine-M9aP3dj-.cjs"),ze=require("./YTicksAndGridLines-UzVC5eBM.cjs"),Je=require("./index-D69M6klB.cjs"),B=require("./Colors.cjs"),Ee=require("./uniqBy-O05lp2S5.cjs"),ke=require("./init-DU0ybBc_.cjs"),Ke=require("./time-CkcKbhwe.cjs"),Qe=require("./linear-CgUCbw9F.cjs"),Ze=require("./delaunay-rcy0HhZi.cjs"),$e=require("./line-DaEMhXmx.cjs"),Ae=require("./step-BZ3C8QFW.cjs"),_e=require("./select-Bnfk0lJx.cjs"),Ft=require("./proxy-C4-uo6nS.cjs"),tn=require("./pointer-Dkq5NV1q.cjs"),en=require("./use-in-view-C3o_ntMv.cjs"),nn=require("./GraphFooter.cjs"),on=require("./GraphHeader.cjs"),rn=require("./EmptyState-CGeBqbmR.cjs"),sn=require("./ColorLegendWithMouseOver.cjs"),Ve=require("./GraphContainer-B1EDxJ0S.cjs"),ln=require("./getNoOfTicks-C_1CFXv_.cjs");function an(e,t){return Array.from(t,i=>e[i])}function cn(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[i]=t;if(i&&i.length!==2||t.length>1){const O=Uint32Array.from(e,(E,c)=>c);return t.length>1?(t=t.map(E=>e.map(E)),O.sort((E,c)=>{for(const r of t){const wt=Me(r[E],r[c]);if(wt)return wt}})):(i=e.map(i),O.sort((E,c)=>Me(i[E],i[c]))),an(e,O)}return e.sort(un(i))}function un(e=ke.ascending){if(e===ke.ascending)return Me;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,i)=>{const O=e(t,i);return O||O===0?O:(e(i,i)===0)-(e(t,t)===0)}}function Me(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function fn(e){const t=s.compilerRuntimeExports.c(128),{data:i,width:O,height:E,lineColors:c,dateFormat:r,noOfXTicks:wt,rightMargin:st,topMargin:Pt,bottomMargin:lt,suffix:U,prefix:g,leftMargin:C,tooltip:bt,onSeriesMouseOver:at,refValues:ct,highlightAreaSettings:Bt,minValue:z,maxValue:Ct,highlightedLines:H,animate:l,rtl:J,strokeWidth:T,showDots:se,annotations:Rt,customHighlightAreaSettings:zt,yAxisTitle:K,noOfYTicks:Jt,minDate:Kt,maxDate:Qt,curveType:ut,styles:j,colorDomain:L,selectedColor:At,classNames:R,showLabels:he,dimmedOpacity:q,precision:Q,naLabel:ge,customLayers:Z}=e,Et=A.useRef(null);let _;t[0]!==l.amount||t[1]!==l.once?(_={once:l.once,amount:l.amount},t[0]=l.amount,t[1]=l.once,t[2]=_):_=t[2];const m=en.useInView(Et,_),[S,le]=A.useState(!1);let kt,ft;t[3]!==l.duration||t[4]!==S||t[5]!==m?(kt=()=>{if(m&&!S){const n=setTimeout(()=>{le(!0)},(l.duration+.5)*1e3);return()=>clearTimeout(n)}},ft=[m,S,l.duration],t[3]=l.duration,t[4]=S,t[5]=m,t[6]=kt,t[7]=ft):(kt=t[6],ft=t[7]),A.useEffect(kt,ft);const ae=ut==="linear"?$e.curveLinear:ut==="step"?Ae.curveStep:ut==="stepAfter"?Ae.stepAfter:ut==="stepBefore"?Ae.stepBefore:Ae.monotoneX;let Nt;t[8]!==r?(Nt=n=>({...n,date:b.parse(`${n.date}`,r,new Date)}),t[8]=r,t[9]=Nt):Nt=t[9];const a=Te.orderBy(i.map(Nt),["date"],["asc"]).filter(Wn),d=Ee.uniqBy(a,"label",!0);let Dt;t[10]!==r?(Dt=n=>b.parse(`${n}`,r,new Date),t[10]=r,t[11]=Dt):Dt=t[11];const Zt=cn(Ee.uniqBy(i,"date",!0).map(Dt),Gn),[x,mt]=A.useState(void 0),[xt,tt]=A.useState(void 0),[pt,et]=A.useState(void 0),Lt=K?C+30:C;let dt;t[12]!==lt||t[13]!==st||t[14]!==Lt||t[15]!==Pt?(dt={top:Pt,bottom:lt,left:Lt,right:st},t[12]=lt,t[13]=st,t[14]=Lt,t[15]=Pt,t[16]=dt):dt=t[16];const h=dt,ce=A.useRef(null),ue=d.map(n=>Te.orderBy(a.filter(o=>o.label==n),["date"],["asc"]));let ht;if(t[17]!==r||t[18]!==Bt){let n;t[20]!==r?(n=o=>({...o,coordinates:[o.coordinates[0]===null?null:b.parse(`${o.coordinates[0]}`,r,new Date),o.coordinates[1]===null?null:b.parse(`${o.coordinates[1]}`,r,new Date)]}),t[20]=r,t[21]=n):n=t[21],ht=Bt.map(n),t[17]=r,t[18]=Bt,t[19]=ht}else ht=t[19];const qt=ht;let gt;if(t[22]!==zt||t[23]!==r){let n;t[25]!==r?(n=o=>({...o,coordinates:o.coordinates.map((y,Xt)=>Xt%2===0?b.parse(`${y}`,r,new Date):y)}),t[25]=r,t[26]=n):n=t[26],gt=zt.map(n),t[22]=zt,t[23]=r,t[24]=gt}else gt=t[24];const _t=gt,p=O-h.left-h.right,k=E-h.top-h.bottom,fe=Kt?b.parse(`${Kt}`,r,new Date):Zt[0],te=Qt?b.parse(`${Qt}`,r,new Date):Zt[Zt.length-1],w=v.checkIfNullOrUndefined(z)?Math.min(...a.map(Hn).filter(Un))?Math.min(...a.map(Vn).filter($n))>0?0:Math.min(...a.map(In).filter(Tn)):0:z,G=Math.max(...a.map(Mn).filter(Sn))?Math.max(...a.map(qn).filter(Ln)):0,u=Ke.time().domain([fe,te]).range([0,p]);let nt;t[27]!==w||t[28]!==z?(nt=v.checkIfNullOrUndefined(z)?w:z,t[27]=w,t[28]=z,t[29]=nt):nt=t[29];let M;t[30]!==G||t[31]!==Ct?(M=v.checkIfNullOrUndefined(Ct)?G>0?G:0:Ct,t[30]=G,t[31]=Ct,t[32]=M):M=t[32];const f=Qe.linear().domain([nt,M]).range([k,0]).nice(),me=Ze.Delaunay.from(a.filter(Dn),n=>u(n.date),n=>f(n.y)).voronoi([0,0,p<0?0:p,k<0?0:k]),St=$e.line().x(n=>u(n.date)).y(n=>f(n.y)).curve(ae),Mt=f.ticks(Jt),ee=u.ticks(wt);A.useEffect(()=>{const n=y=>{const Xt=a[ke.bisectCenter(a.map(Nn),u.invert(tn.pointer(y)[0]),0)];mt(Xt||a[a.length-1]),et(y.clientY),tt(y.clientX),at?.(Xt||a[a.length-1])},o=()=>{mt(void 0),tt(void 0),et(void 0)};_e.select(ce.current).on("mousemove",n).on("mouseout",o),at?.(void 0)},[u,a,at]);let ot;t[33]!==l||t[34]!==k||t[35]!==p||t[36]!==qt||t[37]!==m||t[38]!==u?(ot=s.jsxRuntimeExports.jsx(Je.HighlightArea,{areaSettings:qt,width:p,height:k,scale:u,animate:l,isInView:m}),t[33]=l,t[34]=k,t[35]=p,t[36]=qt,t[37]=m,t[38]=u,t[39]=ot):ot=t[39];const Tt=j?.yAxis?.gridLines,N=j?.yAxis?.labels;let yt;t[40]!==Tt||t[41]!==N?(yt={gridLines:Tt,labels:N},t[40]=Tt,t[41]=N,t[42]=yt):yt=t[42];const It=R?.yAxis?.gridLines,$t=R?.yAxis?.labels;let vt;t[43]!==It||t[44]!==$t?(vt={gridLines:It,labels:$t},t[43]=It,t[44]=$t,t[45]=vt):vt=t[45];const Ot=f(w<0?0:w),Vt=f(w<0?0:w),Ut=0-C,it=p+h.right,xe=w<0?0:w;let I;t[46]!==Q||t[47]!==g||t[48]!==U||t[49]!==xe?(I=Ie.numberFormattingFunction(xe,"NA",Q,g,U),t[46]=Q,t[47]=g,t[48]=U,t[49]=xe,t[50]=I):I=t[50];const pe=0-C,Ht=f(w<0?0:w),de=G<0?"1em":-5;let W;t[51]!==pe||t[52]!==Ht||t[53]!==de?(W={x:pe,y:Ht,dx:0,dy:de},t[51]=pe,t[52]=Ht,t[53]=de,t[54]=W):W=t[54];const ne=R?.xAxis?.axis,jt=R?.yAxis?.labels;let $;t[55]!==ne||t[56]!==jt?($={axis:ne,label:jt},t[55]=ne,t[56]=jt,t[57]=$):$=t[57];const Gt=j?.xAxis?.axis,Wt=j?.yAxis?.labels;let D;t[58]!==Gt||t[59]!==Wt?(D={axis:Gt,label:Wt},t[58]=Gt,t[59]=Wt,t[60]=D):D=t[60];let V;t[61]!==Ot||t[62]!==Vt||t[63]!==Ut||t[64]!==it||t[65]!==I||t[66]!==W||t[67]!==$||t[68]!==D?(V=s.jsxRuntimeExports.jsx(Fe.Axis,{y1:Ot,y2:Vt,x1:Ut,x2:it,label:I,labelPos:W,classNames:$,styles:D}),t[61]=Ot,t[62]=Vt,t[63]=Ut,t[64]=it,t[65]=I,t[66]=W,t[67]=$,t[68]=D,t[69]=V):V=t[69];const Y=0-C-15,X=k/2,F=j?.yAxis?.title,P=R?.yAxis?.title;let rt;t[70]!==Y||t[71]!==X||t[72]!==F||t[73]!==P||t[74]!==K?(rt=s.jsxRuntimeExports.jsx(Xe.AxisTitle,{x:Y,y:X,style:F,className:P,text:K,rotate90:!0}),t[70]=Y,t[71]=X,t[72]=F,t[73]=P,t[74]=K,t[75]=rt):rt=t[75];let Yt;t[76]!==r?(Yt=n=>b.format(n,r),t[76]=r,t[77]=Yt):Yt=t[77];const ye=ee.map(Yt),Ue=ee.map(n=>u(n)),Ne=j?.xAxis?.gridLines,De=j?.xAxis?.labels;let ve;t[78]!==Ne||t[79]!==De?(ve={gridLines:Ne,labels:De},t[78]=Ne,t[79]=De,t[80]=ve):ve=t[80];const Le=R?.xAxis?.gridLines;let oe;t[81]!==Le?(oe=s.mo("opacity-0",Le),t[81]=Le,t[82]=oe):oe=t[82];const qe=R?.xAxis?.labels;let ie;t[83]!==qe?(ie=s.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",qe),t[83]=qe,t[84]=ie):ie=t[84];let Oe;t[85]!==oe||t[86]!==ie?(Oe={gridLines:oe,labels:ie},t[85]=oe,t[86]=ie,t[87]=Oe):Oe=t[87];let je;t[88]!==Z?(je=Z.filter(An).map(Rn),t[88]=Z,t[89]=je):je=t[89];const He=a.filter(pn).map((n,o)=>s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx("path",{d:me.renderCell(a.findIndex(y=>y.label===n.label&&y.date===n.date)),opacity:0,onMouseEnter:y=>{mt(n),et(y.clientY),tt(y.clientX),at?.(n)},onMouseMove:y=>{mt(n),et(y.clientY),tt(y.clientX)},onMouseLeave:()=>{mt(void 0),tt(void 0),et(void 0),at?.(void 0)}})},o));let we;t[90]!==l||t[91]!==p||t[92]!==m||t[93]!==C||t[94]!==h.right||t[95]!==ct||t[96]!==f?(we=ct?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:ct.map((n,o)=>s.jsxRuntimeExports.jsx(Be.RefLineY,{text:n.text,color:n.color,y:f(n.value),x1:0-C,x2:p+h.right,classNames:n.classNames,styles:n.styles,animate:l,isInView:m},o))}):null,t[90]=l,t[91]=p,t[92]=m,t[93]=C,t[94]=h.right,t[95]=ct,t[96]=f,t[97]=we):we=t[97];let re;if(t[98]!==l||t[99]!==Rt||t[100]!==r||t[101]!==p||t[102]!==m||t[103]!==h.right||t[104]!==J||t[105]!==u||t[106]!==f){let n;t[108]!==l||t[109]!==r||t[110]!==p||t[111]!==m||t[112]!==h.right||t[113]!==J||t[114]!==u||t[115]!==f?(n=(o,y)=>{const Xt=Se.getLineEndPoint({x:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),y:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0)-8:0+(o.yOffset||0)-8},{x:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date)):0,y:o.yCoordinate?f(o.yCoordinate):0},v.checkIfNullOrUndefined(o.connectorRadius)?3.5:o.connectorRadius),Ge=o.showConnector?{y1:Xt.y,x1:Xt.x,y2:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0):0+(o.yOffset||0),x2:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),cy:o.yCoordinate?f(o.yCoordinate):0,cx:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date)):0,circleRadius:v.checkIfNullOrUndefined(o.connectorRadius)?3.5:o.connectorRadius,strokeWidth:o.showConnector===!0?2:Math.min(o.showConnector||0,1)}:void 0,We={y:o.yCoordinate?f(o.yCoordinate)+(o.yOffset||0)-8:0+(o.yOffset||0)-8,x:J?0:o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0),width:J?o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0):p+h.right-(o.xCoordinate?u(b.parse(`${o.xCoordinate}`,r,new Date))+(o.xOffset||0):0+(o.xOffset||0)),maxWidth:o.maxWidth,fontWeight:o.fontWeight,align:o.align};return s.jsxRuntimeExports.jsx(Se.Annotation,{color:o.color,connectorsSettings:Ge,labelSettings:We,text:o.text,classNames:o.classNames,styles:o.styles,animate:l,isInView:m},y)},t[108]=l,t[109]=r,t[110]=p,t[111]=m,t[112]=h.right,t[113]=J,t[114]=u,t[115]=f,t[116]=n):n=t[116],re=Rt.map(n),t[98]=l,t[99]=Rt,t[100]=r,t[101]=p,t[102]=m,t[103]=h.right,t[104]=J,t[105]=u,t[106]=f,t[107]=re}else re=t[107];let be;t[117]!==re?(be=s.jsxRuntimeExports.jsx("g",{children:re}),t[117]=re,t[118]=be):be=t[118];let Ce;t[119]!==Z?(Ce=Z.filter(xn).map(mn),t[119]=Z,t[120]=Ce):Ce=t[120];let Re;return t[121]!==R?.tooltip||t[122]!==xt||t[123]!==pt||t[124]!==x||t[125]!==j?.tooltip||t[126]!==bt?(Re=x&&bt&&xt&&pt?s.jsxRuntimeExports.jsx(Ye.Tooltip,{data:x,body:bt,xPos:xt,yPos:pt,backgroundStyle:j?.tooltip,className:R?.tooltip}):null,t[121]=R?.tooltip,t[122]=xt,t[123]=pt,t[124]=x,t[125]=j?.tooltip,t[126]=bt,t[127]=Re):Re=t[127],s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(Ft.motion.svg,{width:`${O}px`,height:`${E}px`,viewBox:`0 0 ${O} ${E}`,direction:"ltr",ref:Et,children:s.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[ot,s.jsxRuntimeExports.jsx(Se.CustomArea,{areaSettings:_t,scaleX:u,scaleY:f,animate:l,isInView:m}),s.jsxRuntimeExports.jsxs("g",{children:[s.jsxRuntimeExports.jsx(ze.YTicksAndGridLines,{values:Mt.filter(kn),y:Mt.filter(En).map(n=>f(n)),x1:0-C,x2:p+h.right,styles:yt,classNames:vt,suffix:U,prefix:g,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:Q}),V,rt]}),s.jsxRuntimeExports.jsx("g",{children:s.jsxRuntimeExports.jsx(Pe.XTicksAndGridLines,{values:ye,x:Ue,y1:0,y2:k,styles:ve,classNames:Oe,suffix:U,prefix:g,labelType:"primary",showGridLines:!0,precision:Q})}),je,s.jsxRuntimeExports.jsxs(Ft.motion.g,{children:[ue.map(n=>s.jsxRuntimeExports.jsxs(Ft.motion.g,{exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:x?n[0].label===x.label?1:q:At?n[0].color&&c[L.indexOf(n[0].color)]===At?1:q:H.length!==0?H.indexOf(n[0].label)!==-1?1:q:1},whileInView:{opacity:x?n[0].label===x.label?1:q:At?n[0].color&&c[L.indexOf(n[0].color)]===At?1:q:H.length!==0?H.indexOf(n[0].label)!==-1?1:q:1,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:[s.jsxRuntimeExports.jsx(Ft.motion.path,{d:St(n.filter(Cn))||"",style:{fill:"none",strokeWidth:x?n[0].label===x.label?T+Math.max(2,.5*T):T:H.length!==0&&H.indexOf(n[0].label)!==-1?T+Math.max(2,.5*T):T},exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{pathLength:0,d:St(n.filter(bn))||"",opacity:1,stroke:i.filter(wn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray},whileInView:{pathLength:1,d:St(n.filter(jn))||"",opacity:1,stroke:i.filter(On).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,transition:{duration:l.duration}}},initial:"initial",animate:m?"whileInView":"initial"}),n.map((o,y)=>s.jsxRuntimeExports.jsx(Ft.motion.g,{children:v.checkIfNullOrUndefined(o.y)?null:s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:se?s.jsxRuntimeExports.jsx(Ft.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:i.filter(vn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,cx:u(o.date),cy:f(o.y)},whileInView:{opacity:1,fill:i.filter(yn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,transition:{duration:S?l.duration:.5,delay:S?0:l.duration},cx:u(o.date),cy:f(o.y)}},initial:"initial",animate:m?"whileInView":"initial"}):null})},y)),(H.indexOf(n[0].label)!==-1||x?.label===n[0].label)&&he?s.jsxRuntimeExports.jsx(Ft.motion.text,{className:"text-sm font-bold",dx:5,dy:4,exit:{opacity:0,transition:{duration:l.duration}},variants:{initial:{opacity:0,fill:i.filter(gn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,x:u(n[n.length-1].date),y:f(n[n.length-1].y)},whileInView:{opacity:1,fill:i.filter(hn).length===0?c[0]:n[0].color?c[L.indexOf(n[0].color)]:B.Colors.gray,x:u(n[n.length-1].date),y:f(n[n.length-1].y),transition:{duration:S?l.duration:.5,delay:S?0:l.duration}}},initial:"initial",animate:m?"whileInView":"initial",children:n[0].label}):null]},n[0].label)),x?s.jsxRuntimeExports.jsx("text",{y:f(x.y)-8,x:u(x.date),className:s.mo("graph-value text-sm font-bold",R?.graphObjectValues),style:{fill:i.filter(dn).length===0?c[0]:x.color?c[L.indexOf(x.color)]:B.Colors.gray,textAnchor:"middle",...j?.graphObjectValues||{}},children:Ie.numberFormattingFunction(x.y,ge,Q,g,U)}):null]}),He,we,be,Ce]})}),Re]})}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 On(e){return e.color}function jn(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 ke.ascending(e,t)}function Wn(e){return!v.checkIfNullOrUndefined(e.y)}function Yn(e){const t=s.compilerRuntimeExports.c(106),{data:i,graphTitle:O,showNAColor:E,colors:c,colorDomain:r,suffix:wt,sources:st,prefix:Pt,graphDescription:lt,height:U,width:g,footNote:C,noOfXTicks:bt,dateFormat:at,padding:ct,backgroundColor:Bt,leftMargin:z,rightMargin:Ct,topMargin:H,bottomMargin:l,showColorScale:J,tooltip:T,relativeHeight:se,onSeriesMouseOver:Rt,showLabels:zt,refValues:K,highlightAreaSettings:Jt,graphID:Kt,minValue:Qt,maxValue:ut,highlightedLines:j,graphDownload:L,dataDownload:At,animate:R,language:he,colorLegendTitle:q,minHeight:Q,strokeWidth:ge,showDots:Z,annotations:Et,customHighlightAreaSettings:_,theme:m,ariaLabel:S,yAxisTitle:le,noOfYTicks:kt,minDate:ft,maxDate:ae,curveType:Nt,styles:a,classNames:d,dimmedOpacity:Dt,precision:Zt,customLayers:x,naLabel:mt}=e,xt=E===void 0?!0:E,tt=wt===void 0?"":wt,pt=Pt===void 0?"":Pt,et=bt===void 0?10:bt,Lt=at===void 0?"yyyy":at,dt=Bt===void 0?!1:Bt,h=z===void 0?30:z,ce=Ct===void 0?50:Ct,ue=H===void 0?20:H,ht=l===void 0?25:l,qt=J===void 0?!0:J,gt=zt===void 0?!0:zt;let _t;t[0]!==K?(_t=K===void 0?[]:K,t[0]=K,t[1]=_t):_t=t[1];const p=_t;let k;t[2]!==Jt?(k=Jt===void 0?[]:Jt,t[2]=Jt,t[3]=k):k=t[3];const fe=k;let te;t[4]!==j?(te=j===void 0?[]:j,t[4]=j,t[5]=te):te=t[5];const w=te,G=L===void 0?!1:L,u=At===void 0?!1:At,nt=R===void 0?!1:R,M=he===void 0?"en":he,f=Q===void 0?0:Q,me=ge===void 0?2:ge,St=Z===void 0?!0:Z;let Mt;t[6]!==Et?(Mt=Et===void 0?[]:Et,t[6]=Et,t[7]=Mt):Mt=t[7];const ee=Mt;let ot;t[8]!==_?(ot=_===void 0?[]:_,t[8]=_,t[9]=ot):ot=t[9];const Tt=ot,N=m===void 0?"light":m,yt=kt===void 0?5:kt,It=Nt===void 0?"curve":Nt,$t=Dt===void 0?.3:Dt,vt=Zt===void 0?2:Zt;let Ot;t[10]!==x?(Ot=x===void 0?[]:x,t[10]=x,t[11]=Ot):Ot=t[11];const Vt=Ot,Ut=mt===void 0?"NA":mt,[it,xe]=A.useState(0),[I,pe]=A.useState(0),[Ht,de]=A.useState(void 0),W=A.useRef(null),ne=A.useRef(null);let jt,$;t[12]===Symbol.for("react.memo_cache_sentinel")?(jt=()=>{const Yt=new ResizeObserver(ye=>{xe(ye[0].target.clientWidth||620),pe(ye[0].target.clientHeight||480)});return W.current&&Yt.observe(W.current),()=>Yt.disconnect()},$=[],t[12]=jt,t[13]=$):(jt=t[12],$=t[13]),A.useEffect(jt,$);const Gt=d?.graphContainer,Wt=a?.graphContainer;let D;t[14]!==d?.description||t[15]!==d?.title||t[16]!==i||t[17]!==u||t[18]!==lt||t[19]!==G||t[20]!==O||t[21]!==a?.description||t[22]!==a?.title||t[23]!==g?(D=O||lt||G||u?s.jsxRuntimeExports.jsx(on.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:d?.title,description:d?.description},graphTitle:O,graphDescription:lt,width:g,graphDownload:G?ne:void 0,dataDownload:u?i.map(Qn).filter(Kn).length>0?i.map(Jn).filter(zn):i.filter(Bn):null}):null,t[14]=d?.description,t[15]=d?.title,t[16]=i,t[17]=u,t[18]=lt,t[19]=G,t[20]=O,t[21]=a?.description,t[22]=a?.title,t[23]=g,t[24]=D):D=t[24];let V;t[25]!==d?.colorLegend||t[26]!==r||t[27]!==q||t[28]!==c||t[29]!==i||t[30]!==qt||t[31]!==xt||t[32]!==N||t[33]!==g?(V=qt&&i.filter(Pn).length!==0&&i.length>0?s.jsxRuntimeExports.jsx(sn.ColorLegendWithMouseOver,{width:g,colorLegendTitle:q,colors:c||B.Colors[N].categoricalColors.colors,colorDomain:r||Ee.uniqBy(i,"color",!0),setSelectedColor:de,showNAColor:xt,className:d?.colorLegend}):null,t[25]=d?.colorLegend,t[26]=r,t[27]=q,t[28]=c,t[29]=i,t[30]=qt,t[31]=xt,t[32]=N,t[33]=g,t[34]=V):V=t[34];let Y;t[35]!==i.length?(Y=i.length===0&&s.jsxRuntimeExports.jsx(rn.EmptyState,{}),t[35]=i.length,t[36]=Y):Y=t[36];let X;t[37]!==nt||t[38]!==ee||t[39]!==ht||t[40]!==d||t[41]!==r||t[42]!==c||t[43]!==It||t[44]!==Tt||t[45]!==Vt||t[46]!==i||t[47]!==Lt||t[48]!==$t||t[49]!==fe||t[50]!==w||t[51]!==M||t[52]!==h||t[53]!==ae||t[54]!==ut||t[55]!==ft||t[56]!==Qt||t[57]!==Ut||t[58]!==et||t[59]!==yt||t[60]!==Rt||t[61]!==vt||t[62]!==pt||t[63]!==p||t[64]!==ce||t[65]!==Ht||t[66]!==St||t[67]!==gt||t[68]!==me||t[69]!==a||t[70]!==tt||t[71]!==I||t[72]!==it||t[73]!==N||t[74]!==T||t[75]!==ue||t[76]!==le?(X=it&&I&&i.length>0?s.jsxRuntimeExports.jsx(fn,{data:i,lineColors:i.filter(Fn).length===0?c?[c]:[B.Colors.primaryColors["blue-600"]]:c||B.Colors[N].categoricalColors.colors,width:it,height:I,dateFormat:Lt,noOfXTicks:et??ln.getNoOfTicks(it),leftMargin:h,rightMargin:ce,topMargin:ue,bottomMargin:ht,tooltip:T,onSeriesMouseOver:Rt,suffix:tt,prefix:pt,highlightAreaSettings:fe,refValues:p,minValue:Qt,maxValue:ut,highlightedLines:w,animate:nt===!0?{duration:.5,once:!0,amount:.5}:nt||{duration:0,once:!0,amount:0},rtl:M==="he"||M==="ar",strokeWidth:me,showDots:St,annotations:ee,customHighlightAreaSettings:Tt,yAxisTitle:le,noOfYTicks:yt,minDate:ft,maxDate:ae,curveType:It,styles:a,classNames:d,selectedColor:Ht,showLabels:gt,colorDomain:i.filter(Xn).length===0?[]:r||Ee.uniqBy(i,"color",!0),dimmedOpacity:$t,precision:vt,customLayers:Vt,naLabel:Ut}):null,t[37]=nt,t[38]=ee,t[39]=ht,t[40]=d,t[41]=r,t[42]=c,t[43]=It,t[44]=Tt,t[45]=Vt,t[46]=i,t[47]=Lt,t[48]=$t,t[49]=fe,t[50]=w,t[51]=M,t[52]=h,t[53]=ae,t[54]=ut,t[55]=ft,t[56]=Qt,t[57]=Ut,t[58]=et,t[59]=yt,t[60]=Rt,t[61]=vt,t[62]=pt,t[63]=p,t[64]=ce,t[65]=Ht,t[66]=St,t[67]=gt,t[68]=me,t[69]=a,t[70]=tt,t[71]=I,t[72]=it,t[73]=N,t[74]=T,t[75]=ue,t[76]=le,t[77]=X):X=t[77];let F;t[78]!==Y||t[79]!==X?(F=s.jsxRuntimeExports.jsxs(Ve.GraphArea,{ref:W,children:[Y,X]}),t[78]=Y,t[79]=X,t[80]=F):F=t[80];let P;t[81]!==d?.footnote||t[82]!==d?.source||t[83]!==C||t[84]!==st||t[85]!==a?.footnote||t[86]!==a?.source||t[87]!==g?(P=st||C?s.jsxRuntimeExports.jsx(nn.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:st,footNote:C,width:g}):null,t[81]=d?.footnote,t[82]=d?.source,t[83]=C,t[84]=st,t[85]=a?.footnote,t[86]=a?.source,t[87]=g,t[88]=P):P=t[88];let rt;return t[89]!==S||t[90]!==dt||t[91]!==Kt||t[92]!==U||t[93]!==M||t[94]!==f||t[95]!==ct||t[96]!==se||t[97]!==Gt||t[98]!==Wt||t[99]!==D||t[100]!==V||t[101]!==F||t[102]!==P||t[103]!==N||t[104]!==g?(rt=s.jsxRuntimeExports.jsxs(Ve.GraphContainer,{className:Gt,style:Wt,id:Kt,ref:ne,"aria-label":S,backgroundColor:dt,theme:N,language:M,minHeight:f,width:g,height:U,relativeHeight:se,padding:ct,children:[D,V,F,P]}),t[89]=S,t[90]=dt,t[91]=Kt,t[92]=U,t[93]=M,t[94]=f,t[95]=ct,t[96]=se,t[97]=Gt,t[98]=Wt,t[99]=D,t[100]=V,t[101]=F,t[102]=P,t[103]=N,t[104]=g,t[105]=rt):rt=t[105],rt}function Xn(e){return e.color}function Fn(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
@@ -7,7 +7,7 @@ import { T as Fe } from "./Tooltip-BRnAz2Gv.js";
7
7
  import { c as v } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
8
  import { C as Be, g as ze, A as Ue } from "./customArea-ASDaSE4u.js";
9
9
  import { A as qe } from "./AxisTitle-VFq89Olw.js";
10
- import { A as Je } from "./Axis-DoOqnt6g.js";
10
+ import { A as Je } from "./Axis-D56Gy0se.js";
11
11
  import { X as Ke } from "./XTicksAndGridLines-CVZkZkpS.js";
12
12
  import { a as Qe } from "./ReferenceLine-DgtoRgw0.js";
13
13
  import { Y as Ze } from "./YTicksAndGridLines-GnXnSRF2.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),A=require("react"),R=require("./parse-xYI9yrvL.cjs"),Be=require("./index-Cno4Q0YE.cjs"),Ue=require("./numberFormattingFunction-02t-wJta.cjs"),ze=require("./Tooltip-BLa2EfMs.cjs"),C=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ge=require("./customArea-B1LWQBmM.cjs"),Je=require("./AxisTitle-DV4n0RxE.cjs"),Ke=require("./Axis-Dtjn-EgM.cjs"),Qe=require("./XTicksAndGridLines-CekrPykD.cjs"),Ze=require("./ReferenceLine-M9aP3dj-.cjs"),_e=require("./YTicksAndGridLines-UzVC5eBM.cjs"),ti=require("./index-D69M6klB.cjs"),ei=require("./time-CkcKbhwe.cjs"),ii=require("./linear-CgUCbw9F.cjs"),Pe=require("./line-DaEMhXmx.cjs"),qe=require("./step-BZ3C8QFW.cjs"),ni=require("./select-Bnfk0lJx.cjs"),Bt=require("./proxy-C4-uo6nS.cjs"),oi=require("./init-DU0ybBc_.cjs"),si=require("./pointer-Dkq5NV1q.cjs"),ri=require("./use-in-view-C3o_ntMv.cjs"),ai=require("./GraphFooter.cjs"),li=require("./GraphHeader.cjs"),ci=require("./ColorLegend.cjs"),ui=require("./Colors.cjs"),di=require("./EmptyState-CGeBqbmR.cjs"),xi=require("./generateRandomString-B5zBiJzS.cjs"),We=require("./GraphContainer-B1EDxJ0S.cjs"),fi=require("./getNoOfTicks-C_1CFXv_.cjs");function mi(i){const t=o.compilerRuntimeExports.c(153),{data:y,width:rt,height:zt,lineColors:k,dateFormat:r,noOfXTicks:ge,labels:S,rightMargin:St,topMargin:E,bottomMargin:at,suffix:X,prefix:B,leftMargin:j,tooltip:lt,onSeriesMouseOver:Jt,showValues:ye,showColorLegendAtTop:ve,refValues:Nt,highlightAreaSettings:Kt,minValue:z,maxValue:ct,highlightedLines:ut,animate:s,rtl:J,strokeWidth:Qt,showDots:Zt,annotations:Tt,customHighlightAreaSettings:Dt,yAxisTitle:dt,noOfYTicks:_t,minDate:ce,maxDate:ue,curveType:It,styles:v,classNames:g,dimmedOpacity:de,precision:K,customLayers:Q,dashedLines:xt,dashSettings:qt,labelsToBeHidden:je,revealClipId:ft}=i,te=A.useRef(null);let Mt;t[0]!==s.amount||t[1]!==s.once?(Mt={once:s.once,amount:s.amount},t[0]=s.amount,t[1]=s.once,t[2]=Mt):Mt=t[2];const u=ri.useInView(te,Mt),[O,we]=A.useState(!1);let m,d;t[3]!==s.duration||t[4]!==O||t[5]!==u?(m=()=>{if(u&&!O){const n=setTimeout(()=>{we(!0)},(s.duration+.5)*1e3);return()=>clearTimeout(n)}},d=[u,O,s.duration],t[3]=s.duration,t[4]=O,t[5]=u,t[6]=m,t[7]=d):(m=t[6],d=t[7]),A.useEffect(m,d);const Oe=It==="linear"?Pe.curveLinear:It==="step"?qe.curveStep:It==="stepAfter"?qe.stepAfter:It==="stepBefore"?qe.stepBefore:qe.monotoneX,[L,Vt]=A.useState(void 0),[Z,$t]=A.useState(void 0),[_,xe]=A.useState(void 0),q=dt?j+30:j;let mt;t[8]!==at||t[9]!==St||t[10]!==q||t[11]!==E?(mt={top:E,bottom:at,left:q,right:St},t[8]=at,t[9]=St,t[10]=q,t[11]=E,t[12]=mt):mt=t[12];const h=mt,ht=A.useRef(null);let pt;t[13]!==r?(pt=n=>({...n,date:R.parse(`${n.date}`,r,new Date)}),t[13]=r,t[14]=pt):pt=t[14];const x=Be.orderBy(y.map(pt),["date"],["asc"]),fe=x[0].y.map((n,e)=>x.map(f=>({...f,y:f.y[e]})).filter(Ii));let gt;if(t[15]!==r||t[16]!==Kt){let n;t[18]!==r?(n=e=>({...e,coordinates:[e.coordinates[0]===null?null:R.parse(`${e.coordinates[0]}`,r,new Date),e.coordinates[1]===null?null:R.parse(`${e.coordinates[1]}`,r,new Date)]}),t[18]=r,t[19]=n):n=t[19],gt=Kt.map(n),t[15]=r,t[16]=Kt,t[17]=gt}else gt=t[17];const Ht=gt;let yt;if(t[20]!==Dt||t[21]!==r){let n;t[23]!==r?(n=e=>({...e,coordinates:e.coordinates.map((f,st)=>st%2===0?R.parse(`${f}`,r,new Date):f)}),t[23]=r,t[24]=n):n=t[24],yt=Dt.map(n),t[20]=Dt,t[21]=r,t[22]=yt}else yt=t[22];const me=yt,c=rt-h.left-h.right,p=zt-h.top-h.bottom,he=ce?R.parse(`${ce}`,r,new Date):x[0].date,ee=ue?R.parse(`${ue}`,r,new Date):x[x.length-1].date,w=C.checkIfNullOrUndefined(z)?Math.min(...x.map(Ti))?Math.min(...x.map(Si))>0?0:Math.min(...x.map(Li)):0:z,M=Math.max(...x.map(bi))?Math.max(...x.map(Ci)):0,a=ei.time().domain([he,ee]).range([0,c]);let tt;t[25]!==w||t[26]!==z?(tt=C.checkIfNullOrUndefined(z)?w:z,t[25]=w,t[26]=z,t[27]=tt):tt=t[27];let et;t[28]!==M||t[29]!==ct?(et=C.checkIfNullOrUndefined(ct)?M>0?M:0:ct,t[28]=M,t[29]=ct,t[30]=et):et=t[30];const l=ii.linear().domain([tt,et]).range([p,0]).nice(),V=Pe.line().x(n=>a(n.date)).y(n=>l(n.y)).curve(Oe),ie=l.ticks(_t),ne=a.ticks(ge);A.useEffect(()=>{const n=f=>{const st=x[oi.bisectCenter(x.map(Ri),a.invert(si.pointer(f)[0]),0)];Vt(st||x[x.length-1]),xe(f.clientY),$t(f.clientX),Jt?.(st||x[x.length-1])},e=()=>{Vt(void 0),$t(void 0),xe(void 0)};ni.select(ht.current).on("mousemove",n).on("mouseout",e),Jt?.(void 0)},[a,x,Jt]);let vt;t[31]===Symbol.for("react.memo_cache_sentinel")?(vt={width:0},t[31]=vt):vt=t[31];let N;t[32]!==s.duration?(N={duration:s.duration},t[32]=s.duration,t[33]=N):N=t[33];let $;t[34]!==c||t[35]!==N?($={initial:vt,whileInView:{width:c,transition:N}},t[34]=c,t[35]=N,t[36]=$):$=t[36];const jt=u?"whileInView":"initial";let H;t[37]!==p||t[38]!==$||t[39]!==jt?(H=o.jsxRuntimeExports.jsx(Bt.motion.rect,{x:0,y:0,height:p,variants:$,initial:"initial",animate:jt}),t[37]=p,t[38]=$,t[39]=jt,t[40]=H):H=t[40];let wt;t[41]!==ft||t[42]!==H?(wt=o.jsxRuntimeExports.jsx("defs",{children:o.jsxRuntimeExports.jsx("clipPath",{id:ft,children:H})}),t[41]=ft,t[42]=H,t[43]=wt):wt=t[43];let Ot;t[44]!==s||t[45]!==p||t[46]!==c||t[47]!==Ht||t[48]!==u||t[49]!==a?(Ot=o.jsxRuntimeExports.jsx(ti.HighlightArea,{areaSettings:Ht,width:c,height:p,scale:a,animate:s,isInView:u}),t[44]=s,t[45]=p,t[46]=c,t[47]=Ht,t[48]=u,t[49]=a,t[50]=Ot):Ot=t[50];const Ft=v?.yAxis?.gridLines,Gt=v?.yAxis?.labels;let Rt;t[51]!==Ft||t[52]!==Gt?(Rt={gridLines:Ft,labels:Gt},t[51]=Ft,t[52]=Gt,t[53]=Rt):Rt=t[53];const Ct=g?.yAxis?.gridLines,Ut=g?.yAxis?.labels;let it;t[54]!==Ct||t[55]!==Ut?(it={gridLines:Ct,labels:Ut},t[54]=Ct,t[55]=Ut,t[56]=it):it=t[56];const Pt=l(w<0?0:w),Et=l(w<0?0:w),Wt=0-j,bt=c+h.right,F=w<0?0:w;let b;t[57]!==K||t[58]!==B||t[59]!==X||t[60]!==F?(b=Ue.numberFormattingFunction(F,"NA",K,B,X),t[57]=K,t[58]=B,t[59]=X,t[60]=F,t[61]=b):b=t[61];const nt=0-j,pe=l(w<0?0:w),At=M<0?"1em":-5;let Lt;t[62]!==nt||t[63]!==pe||t[64]!==At?(Lt={x:nt,y:pe,dx:0,dy:At},t[62]=nt,t[63]=pe,t[64]=At,t[65]=Lt):Lt=t[65];const Yt=g?.xAxis?.axis,oe=g?.yAxis?.labels;let T;t[66]!==Yt||t[67]!==oe?(T={axis:Yt,label:oe},t[66]=Yt,t[67]=oe,t[68]=T):T=t[68];const kt=v?.xAxis?.axis,Xt=v?.yAxis?.labels;let G;t[69]!==kt||t[70]!==Xt?(G={axis:kt,label:Xt},t[69]=kt,t[70]=Xt,t[71]=G):G=t[71];let D;t[72]!==Pt||t[73]!==Et||t[74]!==Wt||t[75]!==bt||t[76]!==b||t[77]!==Lt||t[78]!==T||t[79]!==G?(D=o.jsxRuntimeExports.jsx(Ke.Axis,{y1:Pt,y2:Et,x1:Wt,x2:bt,label:b,labelPos:Lt,classNames:T,styles:G}),t[72]=Pt,t[73]=Et,t[74]=Wt,t[75]=bt,t[76]=b,t[77]=Lt,t[78]=T,t[79]=G,t[80]=D):D=t[80];const U=0-j-15,P=p/2,W=v?.yAxis?.title,Y=g?.yAxis?.title;let I;t[81]!==U||t[82]!==P||t[83]!==W||t[84]!==Y||t[85]!==dt?(I=o.jsxRuntimeExports.jsx(Je.AxisTitle,{x:U,y:P,style:W,className:Y,text:dt,rotate90:!0}),t[81]=U,t[82]=P,t[83]=W,t[84]=Y,t[85]=dt,t[86]=I):I=t[86];let ot;t[87]!==r?(ot=n=>R.format(n,r),t[87]=r,t[88]=ot):ot=t[88];const Re=ne.map(ot),Ce=ne.map(n=>a(n)),Me=v?.xAxis?.gridLines,Ve=v?.xAxis?.labels;let Ee;t[89]!==Me||t[90]!==Ve?(Ee={gridLines:Me,labels:Ve},t[89]=Me,t[90]=Ve,t[91]=Ee):Ee=t[91];const $e=g?.xAxis?.gridLines;let se;t[92]!==$e?(se=o.mo("opacity-0",$e),t[92]=$e,t[93]=se):se=t[93];const He=g?.xAxis?.labels;let re;t[94]!==He?(re=o.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",He),t[94]=He,t[95]=re):re=t[95];let be;t[96]!==se||t[97]!==re?(be={gridLines:se,labels:re},t[96]=se,t[97]=re,t[98]=be):be=t[98];let Ae;t[99]!==Q?(Ae=Q.filter(ji).map(vi),t[99]=Q,t[100]=Ae):Ae=t[100];const Fe=fe.map((n,e)=>o.jsxRuntimeExports.jsxs(Bt.motion.g,{exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:ut.length!==0?ut.indexOf(S[e])!==-1?1:de:1},whileInView:{opacity:ut.length!==0?ut.indexOf(S[e])!==-1?1:de:1,transition:{duration:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:[o.jsxRuntimeExports.jsx(Bt.motion.path,{style:{fill:"none",strokeWidth:Qt},clipPath:`url(#${ft})`,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{...xt.length===0?{pathLength:0}:{},d:V(n.filter(yi))||"",opacity:1,stroke:k[e]},whileInView:{...xt.length===0?{pathLength:1}:{},d:V(n.filter(gi))||"",opacity:1,stroke:k[e],transition:{duration:s.duration}}},strokeDasharray:xt.includes(S[e])?qt[e%qt.length]:void 0,initial:"initial",animate:u?"whileInView":"initial"}),n.map((f,st)=>o.jsxRuntimeExports.jsx("g",{children:C.checkIfNullOrUndefined(f.y)?null:o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[Zt?o.jsxRuntimeExports.jsx(Bt.motion.circle,{r:c/x.length<5?0:c/x.length<20?2:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],cx:a(f.date),cy:l(f.y)},whileInView:{opacity:1,fill:k[e],transition:{duration:O?s.duration:.5,delay:O?0:s.duration},cx:a(f.date),cy:l(f.y)}},initial:"initial",animate:u?"whileInView":"initial"}):null,ye?o.jsxRuntimeExports.jsx(Bt.motion.text,{dy:-8,style:{textAnchor:"middle",...v?.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(f.date),y:l(f.y)},whileInView:{opacity:1,fill:k[e],x:a(f.date),y:l(f.y),transition:{duration:O?s.duration:.5,delay:O?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:Ue.numberFormattingFunction(f.y,"NA",K,B,X)}):null]})},st)),ve||je.includes(S[e])?null:o.jsxRuntimeExports.jsx(Bt.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:O?s.duration:.5,delay:O?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:S[e]})]},S[e]));let ae;t[101]!==g?.mouseOverLine||t[102]!==p||t[103]!==L||t[104]!==v?.mouseOverLine||t[105]!==a?(ae=L?o.jsxRuntimeExports.jsx("line",{y1:0,y2:p,x1:a(L.date),x2:a(L.date),className:o.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",g?.mouseOverLine),style:v?.mouseOverLine}):null,t[101]=g?.mouseOverLine,t[102]=p,t[103]=L,t[104]=v?.mouseOverLine,t[105]=a,t[106]=ae):ae=t[106];let Le;t[107]!==Fe||t[108]!==ae?(Le=o.jsxRuntimeExports.jsxs("g",{children:[Fe,ae]}),t[107]=Fe,t[108]=ae,t[109]=Le):Le=t[109];let ke;t[110]!==s||t[111]!==c||t[112]!==u||t[113]!==j||t[114]!==h.right||t[115]!==Nt||t[116]!==l?(ke=Nt?o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:Nt.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]=Nt,t[116]=l,t[117]=ke):ke=t[117];let le;if(t[118]!==s||t[119]!==Tt||t[120]!==r||t[121]!==c||t[122]!==u||t[123]!==h.right||t[124]!==J||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]!==J||t[134]!==a||t[135]!==l?(n=(e,f)=>{const st=Ge.getLineEndPoint({x:e.xCoordinate?a(R.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(R.parse(`${e.xCoordinate}`,r,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},C.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Ye=e.showConnector?{y1:st.y,x1:st.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date)):0,circleRadius:C.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:J?0:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:J?e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0):c+h.right-(e.xCoordinate?a(R.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(Ge.Annotation,{color:e.color,connectorsSettings:Ye,labelSettings:Xe,text:e.text,classNames:e.classNames,styles:e.styles,animate:s,isInView:u},f)},t[128]=s,t[129]=r,t[130]=c,t[131]=u,t[132]=h.right,t[133]=J,t[134]=a,t[135]=l,t[136]=n):n=t[136],le=Tt.map(n),t[118]=s,t[119]=Tt,t[120]=r,t[121]=c,t[122]=u,t[123]=h.right,t[124]=J,t[125]=a,t[126]=l,t[127]=le}else le=t[127];let Se;t[137]!==le?(Se=o.jsxRuntimeExports.jsx("g",{children:le}),t[137]=le,t[138]=Se):Se=t[138];let Ne;t[139]!==Q?(Ne=Q.filter(pi).map(hi),t[139]=Q,t[140]=Ne):Ne=t[140];let Te;t[141]===Symbol.for("react.memo_cache_sentinel")?(Te={fill:"none",pointerEvents:"all"},t[141]=Te):Te=t[141];let De;t[142]!==ht||t[143]!==p||t[144]!==c?(De=o.jsxRuntimeExports.jsx("rect",{ref:ht,style:Te,width:c,height:p}),t[142]=ht,t[143]=p,t[144]=c,t[145]=De):De=t[145];let Ie;return t[146]!==g?.tooltip||t[147]!==Z||t[148]!==_||t[149]!==L||t[150]!==v?.tooltip||t[151]!==lt?(Ie=L&&lt&&Z&&_?o.jsxRuntimeExports.jsx(ze.Tooltip,{data:L,body:lt,xPos:Z,yPos:_,backgroundStyle:v?.tooltip,className:g?.tooltip}):null,t[146]=g?.tooltip,t[147]=Z,t[148]=_,t[149]=L,t[150]=v?.tooltip,t[151]=lt,t[152]=Ie):Ie=t[152],o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(Bt.motion.svg,{width:`${rt}px`,height:`${zt}px`,viewBox:`0 0 ${rt} ${zt}`,direction:"ltr",ref:te,children:o.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[wt,Ot,o.jsxRuntimeExports.jsx(Ge.CustomArea,{areaSettings:me,scaleX:a,scaleY:l,animate:s,isInView:u}),o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(_e.YTicksAndGridLines,{values:ie.filter(Oi),y:ie.filter(wi).map(n=>l(n)),x1:0-j,x2:c+h.right,styles:Rt,classNames:it,suffix:X,prefix:B,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:K}),D,I]}),o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx(Qe.XTicksAndGridLines,{values:Re,x:Ce,y1:0,y2:p,styles:Ee,classNames:be,suffix:X,prefix:B,labelType:"primary",showGridLines:!0,precision:K})}),Ae,Le,ke,Se,Ne,De]})}),Ie]})}function hi(i){return i.layer}function pi(i){return i.position==="after"}function gi(i){return!C.checkIfNullOrUndefined(i.y)}function yi(i){return!C.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!C.checkIfNullOrUndefined(i)}function bi(i){return Math.max(...i.y.filter(Ai))}function Ai(i){return!C.checkIfNullOrUndefined(i)}function Li(i){return Math.min(...i.y.filter(ki))}function ki(i){return!C.checkIfNullOrUndefined(i)}function Si(i){return Math.min(...i.y.filter(Ni))}function Ni(i){return!C.checkIfNullOrUndefined(i)}function Ti(i){return Math.min(...i.y.filter(Di))}function Di(i){return!C.checkIfNullOrUndefined(i)}function Ii(i){return!C.checkIfNullOrUndefined(i.y)}function qi(i){const t=o.compilerRuntimeExports.c(113),{data:y,graphTitle:rt,lineColors:zt,suffix:k,sources:r,prefix:ge,graphDescription:S,height:St,width:E,footNote:at,noOfXTicks:X,dateFormat:B,labels:j,padding:lt,showValues:Jt,backgroundColor:ye,leftMargin:ve,rightMargin:Nt,topMargin:Kt,bottomMargin:z,tooltip:ct,relativeHeight:ut,onSeriesMouseOver:s,showColorLegendAtTop:J,refValues:Qt,highlightAreaSettings:Zt,graphID:Tt,minValue:Dt,maxValue:dt,highlightedLines:_t,graphDownload:ce,dataDownload:ue,animate:It,language:v,colorLegendTitle:g,minHeight:de,strokeWidth:K,showDots:Q,annotations:xt,customHighlightAreaSettings:qt,theme:je,ariaLabel:ft,yAxisTitle:te,noOfYTicks:Mt,minDate:u,maxDate:O,curveType:we,styles:m,classNames:d,dimmedOpacity:Oe,precision:L,customLayers:Vt,dashedLines:Z,dashSettings:$t,labelsToBeHidden:_,showColorScale:xe}=i,q=zt===void 0?ui.Colors.light.categoricalColors.colors:zt,mt=k===void 0?"":k,h=ge===void 0?"":ge,ht=X===void 0?10:X,pt=B===void 0?"yyyy":B,x=Jt===void 0?!1:Jt,fe=ye===void 0?!1:ye,gt=ve===void 0?30:ve,Ht=Nt===void 0?50:Nt,yt=Kt===void 0?20:Kt,me=z===void 0?25:z,c=J===void 0?!1:J;let p;t[0]!==Qt?(p=Qt===void 0?[]:Qt,t[0]=Qt,t[1]=p):p=t[1];const he=p;let ee;t[2]!==Zt?(ee=Zt===void 0?[]:Zt,t[2]=Zt,t[3]=ee):ee=t[3];const w=ee;let M;t[4]!==_t?(M=_t===void 0?[]:_t,t[4]=_t,t[5]=M):M=t[5];const a=M,tt=ce===void 0?!1:ce,et=ue===void 0?!1:ue,l=It===void 0?!1:It,V=v===void 0?"en":v,ie=de===void 0?0:de,ne=K===void 0?2:K,vt=Q===void 0?!0:Q;let N;t[6]!==xt?(N=xt===void 0?[]:xt,t[6]=xt,t[7]=N):N=t[7];const $=N;let jt;t[8]!==qt?(jt=qt===void 0?[]:qt,t[8]=qt,t[9]=jt):jt=t[9];const H=jt,wt=je===void 0?"light":je,Ot=Mt===void 0?5:Mt,Ft=we===void 0?"curve":we,Gt=Oe===void 0?.3:Oe,Rt=L===void 0?2:L;let Ct;t[10]!==Vt?(Ct=Vt===void 0?[]:Vt,t[10]=Vt,t[11]=Ct):Ct=t[11];const Ut=Ct;let it;t[12]!==Z?(it=Z===void 0?[]:Z,t[12]=Z,t[13]=it):it=t[13];const Pt=it;let Et;t[14]!==$t?(Et=$t===void 0?["5 5"]:$t,t[14]=$t,t[15]=Et):Et=t[15];const Wt=Et;let bt;t[16]!==_?(bt=_===void 0?[]:_,t[16]=_,t[17]=bt):bt=t[17];const F=bt,b=xe===void 0?!0:xe,[nt,pe]=A.useState(0),[At,Lt]=A.useState(0),Yt=A.useRef(null),oe=A.useRef(null);let T,kt;t[18]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const Re=new ResizeObserver(Ce=>{pe(Ce[0].target.clientWidth||620),Lt(Ce[0].target.clientHeight||480)});return Yt.current&&Re.observe(Yt.current),()=>Re.disconnect()},kt=[],t[18]=T,t[19]=kt):(T=t[18],kt=t[19]),A.useEffect(T,kt);const Xt=d?.graphContainer,G=m?.graphContainer;let D;t[20]!==d?.description||t[21]!==d?.title||t[22]!==y||t[23]!==et||t[24]!==S||t[25]!==tt||t[26]!==rt||t[27]!==m?.description||t[28]!==m?.title||t[29]!==E?(D=rt||S||tt||et?o.jsxRuntimeExports.jsx(li.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:d?.title,description:d?.description},graphTitle:rt,graphDescription:S,width:E,graphDownload:tt?oe:void 0,dataDownload:et?y.map(Fi).filter(Hi).length>0?y.map($i).filter(Vi):y.filter(Mi):null}):null,t[20]=d?.description,t[21]=d?.title,t[22]=y,t[23]=et,t[24]=S,t[25]=tt,t[26]=rt,t[27]=m?.description,t[28]=m?.title,t[29]=E,t[30]=D):D=t[30];let U;t[31]!==d?.colorLegend||t[32]!==g||t[33]!==y.length||t[34]!==j||t[35]!==F||t[36]!==q||t[37]!==c||t[38]!==b?(U=c&&b&&y.length>0?o.jsxRuntimeExports.jsx(ci.ColorLegend,{colorDomain:j,colorLegendTitle:g,labelsToBeHidden:F,colors:q,showNAColor:!1,className:d?.colorLegend}):null,t[31]=d?.colorLegend,t[32]=g,t[33]=y.length,t[34]=j,t[35]=F,t[36]=q,t[37]=c,t[38]=b,t[39]=U):U=t[39];let P;t[40]!==y.length?(P=y.length===0&&o.jsxRuntimeExports.jsx(di.EmptyState,{}),t[40]=y.length,t[41]=P):P=t[41];let W;t[42]!==l||t[43]!==$||t[44]!==me||t[45]!==d||t[46]!==Ft||t[47]!==H||t[48]!==Ut||t[49]!==Wt||t[50]!==Pt||t[51]!==y||t[52]!==pt||t[53]!==Gt||t[54]!==w||t[55]!==a||t[56]!==j||t[57]!==F||t[58]!==V||t[59]!==gt||t[60]!==q||t[61]!==O||t[62]!==dt||t[63]!==u||t[64]!==Dt||t[65]!==ht||t[66]!==Ot||t[67]!==s||t[68]!==Rt||t[69]!==h||t[70]!==he||t[71]!==Ht||t[72]!==c||t[73]!==b||t[74]!==vt||t[75]!==x||t[76]!==ne||t[77]!==m||t[78]!==mt||t[79]!==At||t[80]!==nt||t[81]!==ct||t[82]!==yt||t[83]!==te?(W=nt&&At&&y.length>0?o.jsxRuntimeExports.jsx(mi,{data:y,lineColors:q,width:nt,height:At,dateFormat:pt,noOfXTicks:ht??fi.getNoOfTicks(nt),leftMargin:gt,rightMargin:Ht,topMargin:yt,bottomMargin:me,labels:j,tooltip:ct,onSeriesMouseOver:s,showColorLegendAtTop:b?c:!0,showValues:x,suffix:mt,prefix:h,highlightAreaSettings:w,refValues:he,minValue:Dt,maxValue:dt,highlightedLines:a,animate:l===!0?{duration:.5,once:!0,amount:.5}:l||{duration:0,once:!0,amount:0},rtl:V==="he"||V==="ar",strokeWidth:ne,showDots:vt,annotations:$,customHighlightAreaSettings:H,yAxisTitle:te,noOfYTicks:Ot,minDate:u,maxDate:O,curveType:Ft,styles:m,classNames:d,dimmedOpacity:Gt,precision:Rt,customLayers:Ut,labelsToBeHidden:F,dashedLines:Pt,dashSettings:Wt,revealClipId:xi.generateRandomString(8)}):null,t[42]=l,t[43]=$,t[44]=me,t[45]=d,t[46]=Ft,t[47]=H,t[48]=Ut,t[49]=Wt,t[50]=Pt,t[51]=y,t[52]=pt,t[53]=Gt,t[54]=w,t[55]=a,t[56]=j,t[57]=F,t[58]=V,t[59]=gt,t[60]=q,t[61]=O,t[62]=dt,t[63]=u,t[64]=Dt,t[65]=ht,t[66]=Ot,t[67]=s,t[68]=Rt,t[69]=h,t[70]=he,t[71]=Ht,t[72]=c,t[73]=b,t[74]=vt,t[75]=x,t[76]=ne,t[77]=m,t[78]=mt,t[79]=At,t[80]=nt,t[81]=ct,t[82]=yt,t[83]=te,t[84]=W):W=t[84];let Y;t[85]!==P||t[86]!==W?(Y=o.jsxRuntimeExports.jsxs(We.GraphArea,{ref:Yt,children:[P,W]}),t[85]=P,t[86]=W,t[87]=Y):Y=t[87];let I;t[88]!==d?.footnote||t[89]!==d?.source||t[90]!==at||t[91]!==r||t[92]!==m?.footnote||t[93]!==m?.source||t[94]!==E?(I=r||at?o.jsxRuntimeExports.jsx(ai.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:r,footNote:at,width:E}):null,t[88]=d?.footnote,t[89]=d?.source,t[90]=at,t[91]=r,t[92]=m?.footnote,t[93]=m?.source,t[94]=E,t[95]=I):I=t[95];let ot;return t[96]!==ft||t[97]!==fe||t[98]!==Tt||t[99]!==St||t[100]!==V||t[101]!==ie||t[102]!==lt||t[103]!==ut||t[104]!==Xt||t[105]!==G||t[106]!==D||t[107]!==U||t[108]!==Y||t[109]!==I||t[110]!==wt||t[111]!==E?(ot=o.jsxRuntimeExports.jsxs(We.GraphContainer,{className:Xt,style:G,id:Tt,ref:oe,"aria-label":ft,backgroundColor:fe,theme:wt,language:V,minHeight:ie,width:E,height:St,relativeHeight:ut,padding:lt,children:[D,U,Y,I]}),t[96]=ft,t[97]=fe,t[98]=Tt,t[99]=St,t[100]=V,t[101]=ie,t[102]=lt,t[103]=ut,t[104]=Xt,t[105]=G,t[106]=D,t[107]=U,t[108]=Y,t[109]=I,t[110]=wt,t[111]=E,t[112]=ot):ot=t[112],ot}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-6v2a2njQ.cjs"),A=require("react"),R=require("./parse-xYI9yrvL.cjs"),Be=require("./index-Cno4Q0YE.cjs"),Ue=require("./numberFormattingFunction-02t-wJta.cjs"),ze=require("./Tooltip-BLa2EfMs.cjs"),C=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Ge=require("./customArea-B1LWQBmM.cjs"),Je=require("./AxisTitle-DV4n0RxE.cjs"),Ke=require("./Axis-Jt_tmhxS.cjs"),Qe=require("./XTicksAndGridLines-CekrPykD.cjs"),Ze=require("./ReferenceLine-M9aP3dj-.cjs"),_e=require("./YTicksAndGridLines-UzVC5eBM.cjs"),ti=require("./index-D69M6klB.cjs"),ei=require("./time-CkcKbhwe.cjs"),ii=require("./linear-CgUCbw9F.cjs"),Pe=require("./line-DaEMhXmx.cjs"),qe=require("./step-BZ3C8QFW.cjs"),ni=require("./select-Bnfk0lJx.cjs"),Bt=require("./proxy-C4-uo6nS.cjs"),oi=require("./init-DU0ybBc_.cjs"),si=require("./pointer-Dkq5NV1q.cjs"),ri=require("./use-in-view-C3o_ntMv.cjs"),ai=require("./GraphFooter.cjs"),li=require("./GraphHeader.cjs"),ci=require("./ColorLegend.cjs"),ui=require("./Colors.cjs"),di=require("./EmptyState-CGeBqbmR.cjs"),xi=require("./generateRandomString-B5zBiJzS.cjs"),We=require("./GraphContainer-B1EDxJ0S.cjs"),fi=require("./getNoOfTicks-C_1CFXv_.cjs");function mi(i){const t=o.compilerRuntimeExports.c(153),{data:y,width:rt,height:zt,lineColors:k,dateFormat:r,noOfXTicks:ge,labels:S,rightMargin:St,topMargin:E,bottomMargin:at,suffix:X,prefix:B,leftMargin:j,tooltip:lt,onSeriesMouseOver:Jt,showValues:ye,showColorLegendAtTop:ve,refValues:Nt,highlightAreaSettings:Kt,minValue:z,maxValue:ct,highlightedLines:ut,animate:s,rtl:J,strokeWidth:Qt,showDots:Zt,annotations:Tt,customHighlightAreaSettings:Dt,yAxisTitle:dt,noOfYTicks:_t,minDate:ce,maxDate:ue,curveType:It,styles:v,classNames:g,dimmedOpacity:de,precision:K,customLayers:Q,dashedLines:xt,dashSettings:qt,labelsToBeHidden:je,revealClipId:ft}=i,te=A.useRef(null);let Mt;t[0]!==s.amount||t[1]!==s.once?(Mt={once:s.once,amount:s.amount},t[0]=s.amount,t[1]=s.once,t[2]=Mt):Mt=t[2];const u=ri.useInView(te,Mt),[O,we]=A.useState(!1);let m,d;t[3]!==s.duration||t[4]!==O||t[5]!==u?(m=()=>{if(u&&!O){const n=setTimeout(()=>{we(!0)},(s.duration+.5)*1e3);return()=>clearTimeout(n)}},d=[u,O,s.duration],t[3]=s.duration,t[4]=O,t[5]=u,t[6]=m,t[7]=d):(m=t[6],d=t[7]),A.useEffect(m,d);const Oe=It==="linear"?Pe.curveLinear:It==="step"?qe.curveStep:It==="stepAfter"?qe.stepAfter:It==="stepBefore"?qe.stepBefore:qe.monotoneX,[L,Vt]=A.useState(void 0),[Z,$t]=A.useState(void 0),[_,xe]=A.useState(void 0),q=dt?j+30:j;let mt;t[8]!==at||t[9]!==St||t[10]!==q||t[11]!==E?(mt={top:E,bottom:at,left:q,right:St},t[8]=at,t[9]=St,t[10]=q,t[11]=E,t[12]=mt):mt=t[12];const h=mt,ht=A.useRef(null);let pt;t[13]!==r?(pt=n=>({...n,date:R.parse(`${n.date}`,r,new Date)}),t[13]=r,t[14]=pt):pt=t[14];const x=Be.orderBy(y.map(pt),["date"],["asc"]),fe=x[0].y.map((n,e)=>x.map(f=>({...f,y:f.y[e]})).filter(Ii));let gt;if(t[15]!==r||t[16]!==Kt){let n;t[18]!==r?(n=e=>({...e,coordinates:[e.coordinates[0]===null?null:R.parse(`${e.coordinates[0]}`,r,new Date),e.coordinates[1]===null?null:R.parse(`${e.coordinates[1]}`,r,new Date)]}),t[18]=r,t[19]=n):n=t[19],gt=Kt.map(n),t[15]=r,t[16]=Kt,t[17]=gt}else gt=t[17];const Ht=gt;let yt;if(t[20]!==Dt||t[21]!==r){let n;t[23]!==r?(n=e=>({...e,coordinates:e.coordinates.map((f,st)=>st%2===0?R.parse(`${f}`,r,new Date):f)}),t[23]=r,t[24]=n):n=t[24],yt=Dt.map(n),t[20]=Dt,t[21]=r,t[22]=yt}else yt=t[22];const me=yt,c=rt-h.left-h.right,p=zt-h.top-h.bottom,he=ce?R.parse(`${ce}`,r,new Date):x[0].date,ee=ue?R.parse(`${ue}`,r,new Date):x[x.length-1].date,w=C.checkIfNullOrUndefined(z)?Math.min(...x.map(Ti))?Math.min(...x.map(Si))>0?0:Math.min(...x.map(Li)):0:z,M=Math.max(...x.map(bi))?Math.max(...x.map(Ci)):0,a=ei.time().domain([he,ee]).range([0,c]);let tt;t[25]!==w||t[26]!==z?(tt=C.checkIfNullOrUndefined(z)?w:z,t[25]=w,t[26]=z,t[27]=tt):tt=t[27];let et;t[28]!==M||t[29]!==ct?(et=C.checkIfNullOrUndefined(ct)?M>0?M:0:ct,t[28]=M,t[29]=ct,t[30]=et):et=t[30];const l=ii.linear().domain([tt,et]).range([p,0]).nice(),V=Pe.line().x(n=>a(n.date)).y(n=>l(n.y)).curve(Oe),ie=l.ticks(_t),ne=a.ticks(ge);A.useEffect(()=>{const n=f=>{const st=x[oi.bisectCenter(x.map(Ri),a.invert(si.pointer(f)[0]),0)];Vt(st||x[x.length-1]),xe(f.clientY),$t(f.clientX),Jt?.(st||x[x.length-1])},e=()=>{Vt(void 0),$t(void 0),xe(void 0)};ni.select(ht.current).on("mousemove",n).on("mouseout",e),Jt?.(void 0)},[a,x,Jt]);let vt;t[31]===Symbol.for("react.memo_cache_sentinel")?(vt={width:0},t[31]=vt):vt=t[31];let N;t[32]!==s.duration?(N={duration:s.duration},t[32]=s.duration,t[33]=N):N=t[33];let $;t[34]!==c||t[35]!==N?($={initial:vt,whileInView:{width:c,transition:N}},t[34]=c,t[35]=N,t[36]=$):$=t[36];const jt=u?"whileInView":"initial";let H;t[37]!==p||t[38]!==$||t[39]!==jt?(H=o.jsxRuntimeExports.jsx(Bt.motion.rect,{x:0,y:0,height:p,variants:$,initial:"initial",animate:jt}),t[37]=p,t[38]=$,t[39]=jt,t[40]=H):H=t[40];let wt;t[41]!==ft||t[42]!==H?(wt=o.jsxRuntimeExports.jsx("defs",{children:o.jsxRuntimeExports.jsx("clipPath",{id:ft,children:H})}),t[41]=ft,t[42]=H,t[43]=wt):wt=t[43];let Ot;t[44]!==s||t[45]!==p||t[46]!==c||t[47]!==Ht||t[48]!==u||t[49]!==a?(Ot=o.jsxRuntimeExports.jsx(ti.HighlightArea,{areaSettings:Ht,width:c,height:p,scale:a,animate:s,isInView:u}),t[44]=s,t[45]=p,t[46]=c,t[47]=Ht,t[48]=u,t[49]=a,t[50]=Ot):Ot=t[50];const Ft=v?.yAxis?.gridLines,Gt=v?.yAxis?.labels;let Rt;t[51]!==Ft||t[52]!==Gt?(Rt={gridLines:Ft,labels:Gt},t[51]=Ft,t[52]=Gt,t[53]=Rt):Rt=t[53];const Ct=g?.yAxis?.gridLines,Ut=g?.yAxis?.labels;let it;t[54]!==Ct||t[55]!==Ut?(it={gridLines:Ct,labels:Ut},t[54]=Ct,t[55]=Ut,t[56]=it):it=t[56];const Pt=l(w<0?0:w),Et=l(w<0?0:w),Wt=0-j,bt=c+h.right,F=w<0?0:w;let b;t[57]!==K||t[58]!==B||t[59]!==X||t[60]!==F?(b=Ue.numberFormattingFunction(F,"NA",K,B,X),t[57]=K,t[58]=B,t[59]=X,t[60]=F,t[61]=b):b=t[61];const nt=0-j,pe=l(w<0?0:w),At=M<0?"1em":-5;let Lt;t[62]!==nt||t[63]!==pe||t[64]!==At?(Lt={x:nt,y:pe,dx:0,dy:At},t[62]=nt,t[63]=pe,t[64]=At,t[65]=Lt):Lt=t[65];const Yt=g?.xAxis?.axis,oe=g?.yAxis?.labels;let T;t[66]!==Yt||t[67]!==oe?(T={axis:Yt,label:oe},t[66]=Yt,t[67]=oe,t[68]=T):T=t[68];const kt=v?.xAxis?.axis,Xt=v?.yAxis?.labels;let G;t[69]!==kt||t[70]!==Xt?(G={axis:kt,label:Xt},t[69]=kt,t[70]=Xt,t[71]=G):G=t[71];let D;t[72]!==Pt||t[73]!==Et||t[74]!==Wt||t[75]!==bt||t[76]!==b||t[77]!==Lt||t[78]!==T||t[79]!==G?(D=o.jsxRuntimeExports.jsx(Ke.Axis,{y1:Pt,y2:Et,x1:Wt,x2:bt,label:b,labelPos:Lt,classNames:T,styles:G}),t[72]=Pt,t[73]=Et,t[74]=Wt,t[75]=bt,t[76]=b,t[77]=Lt,t[78]=T,t[79]=G,t[80]=D):D=t[80];const U=0-j-15,P=p/2,W=v?.yAxis?.title,Y=g?.yAxis?.title;let I;t[81]!==U||t[82]!==P||t[83]!==W||t[84]!==Y||t[85]!==dt?(I=o.jsxRuntimeExports.jsx(Je.AxisTitle,{x:U,y:P,style:W,className:Y,text:dt,rotate90:!0}),t[81]=U,t[82]=P,t[83]=W,t[84]=Y,t[85]=dt,t[86]=I):I=t[86];let ot;t[87]!==r?(ot=n=>R.format(n,r),t[87]=r,t[88]=ot):ot=t[88];const Re=ne.map(ot),Ce=ne.map(n=>a(n)),Me=v?.xAxis?.gridLines,Ve=v?.xAxis?.labels;let Ee;t[89]!==Me||t[90]!==Ve?(Ee={gridLines:Me,labels:Ve},t[89]=Me,t[90]=Ve,t[91]=Ee):Ee=t[91];const $e=g?.xAxis?.gridLines;let se;t[92]!==$e?(se=o.mo("opacity-0",$e),t[92]=$e,t[93]=se):se=t[93];const He=g?.xAxis?.labels;let re;t[94]!==He?(re=o.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[9px] md:text-[10px] lg:text-xs",He),t[94]=He,t[95]=re):re=t[95];let be;t[96]!==se||t[97]!==re?(be={gridLines:se,labels:re},t[96]=se,t[97]=re,t[98]=be):be=t[98];let Ae;t[99]!==Q?(Ae=Q.filter(ji).map(vi),t[99]=Q,t[100]=Ae):Ae=t[100];const Fe=fe.map((n,e)=>o.jsxRuntimeExports.jsxs(Bt.motion.g,{exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:ut.length!==0?ut.indexOf(S[e])!==-1?1:de:1},whileInView:{opacity:ut.length!==0?ut.indexOf(S[e])!==-1?1:de:1,transition:{duration:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:[o.jsxRuntimeExports.jsx(Bt.motion.path,{style:{fill:"none",strokeWidth:Qt},clipPath:`url(#${ft})`,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{...xt.length===0?{pathLength:0}:{},d:V(n.filter(yi))||"",opacity:1,stroke:k[e]},whileInView:{...xt.length===0?{pathLength:1}:{},d:V(n.filter(gi))||"",opacity:1,stroke:k[e],transition:{duration:s.duration}}},strokeDasharray:xt.includes(S[e])?qt[e%qt.length]:void 0,initial:"initial",animate:u?"whileInView":"initial"}),n.map((f,st)=>o.jsxRuntimeExports.jsx("g",{children:C.checkIfNullOrUndefined(f.y)?null:o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[Zt?o.jsxRuntimeExports.jsx(Bt.motion.circle,{r:c/x.length<5?0:c/x.length<20?2:4,exit:{opacity:0,transition:{duration:s.duration}},variants:{initial:{opacity:0,fill:k[e],cx:a(f.date),cy:l(f.y)},whileInView:{opacity:1,fill:k[e],transition:{duration:O?s.duration:.5,delay:O?0:s.duration},cx:a(f.date),cy:l(f.y)}},initial:"initial",animate:u?"whileInView":"initial"}):null,ye?o.jsxRuntimeExports.jsx(Bt.motion.text,{dy:-8,style:{textAnchor:"middle",...v?.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(f.date),y:l(f.y)},whileInView:{opacity:1,fill:k[e],x:a(f.date),y:l(f.y),transition:{duration:O?s.duration:.5,delay:O?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:Ue.numberFormattingFunction(f.y,"NA",K,B,X)}):null]})},st)),ve||je.includes(S[e])?null:o.jsxRuntimeExports.jsx(Bt.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:O?s.duration:.5,delay:O?0:s.duration}}},initial:"initial",animate:u?"whileInView":"initial",children:S[e]})]},S[e]));let ae;t[101]!==g?.mouseOverLine||t[102]!==p||t[103]!==L||t[104]!==v?.mouseOverLine||t[105]!==a?(ae=L?o.jsxRuntimeExports.jsx("line",{y1:0,y2:p,x1:a(L.date),x2:a(L.date),className:o.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",g?.mouseOverLine),style:v?.mouseOverLine}):null,t[101]=g?.mouseOverLine,t[102]=p,t[103]=L,t[104]=v?.mouseOverLine,t[105]=a,t[106]=ae):ae=t[106];let Le;t[107]!==Fe||t[108]!==ae?(Le=o.jsxRuntimeExports.jsxs("g",{children:[Fe,ae]}),t[107]=Fe,t[108]=ae,t[109]=Le):Le=t[109];let ke;t[110]!==s||t[111]!==c||t[112]!==u||t[113]!==j||t[114]!==h.right||t[115]!==Nt||t[116]!==l?(ke=Nt?o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:Nt.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]=Nt,t[116]=l,t[117]=ke):ke=t[117];let le;if(t[118]!==s||t[119]!==Tt||t[120]!==r||t[121]!==c||t[122]!==u||t[123]!==h.right||t[124]!==J||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]!==J||t[134]!==a||t[135]!==l?(n=(e,f)=>{const st=Ge.getLineEndPoint({x:e.xCoordinate?a(R.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(R.parse(`${e.xCoordinate}`,r,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},C.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Ye=e.showConnector?{y1:st.y,x1:st.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),cy:e.yCoordinate?l(e.yCoordinate):0,cx:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date)):0,circleRadius:C.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:J?0:e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:J?e.xCoordinate?a(R.parse(`${e.xCoordinate}`,r,new Date))+(e.xOffset||0):0+(e.xOffset||0):c+h.right-(e.xCoordinate?a(R.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(Ge.Annotation,{color:e.color,connectorsSettings:Ye,labelSettings:Xe,text:e.text,classNames:e.classNames,styles:e.styles,animate:s,isInView:u},f)},t[128]=s,t[129]=r,t[130]=c,t[131]=u,t[132]=h.right,t[133]=J,t[134]=a,t[135]=l,t[136]=n):n=t[136],le=Tt.map(n),t[118]=s,t[119]=Tt,t[120]=r,t[121]=c,t[122]=u,t[123]=h.right,t[124]=J,t[125]=a,t[126]=l,t[127]=le}else le=t[127];let Se;t[137]!==le?(Se=o.jsxRuntimeExports.jsx("g",{children:le}),t[137]=le,t[138]=Se):Se=t[138];let Ne;t[139]!==Q?(Ne=Q.filter(pi).map(hi),t[139]=Q,t[140]=Ne):Ne=t[140];let Te;t[141]===Symbol.for("react.memo_cache_sentinel")?(Te={fill:"none",pointerEvents:"all"},t[141]=Te):Te=t[141];let De;t[142]!==ht||t[143]!==p||t[144]!==c?(De=o.jsxRuntimeExports.jsx("rect",{ref:ht,style:Te,width:c,height:p}),t[142]=ht,t[143]=p,t[144]=c,t[145]=De):De=t[145];let Ie;return t[146]!==g?.tooltip||t[147]!==Z||t[148]!==_||t[149]!==L||t[150]!==v?.tooltip||t[151]!==lt?(Ie=L&&lt&&Z&&_?o.jsxRuntimeExports.jsx(ze.Tooltip,{data:L,body:lt,xPos:Z,yPos:_,backgroundStyle:v?.tooltip,className:g?.tooltip}):null,t[146]=g?.tooltip,t[147]=Z,t[148]=_,t[149]=L,t[150]=v?.tooltip,t[151]=lt,t[152]=Ie):Ie=t[152],o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[o.jsxRuntimeExports.jsx(Bt.motion.svg,{width:`${rt}px`,height:`${zt}px`,viewBox:`0 0 ${rt} ${zt}`,direction:"ltr",ref:te,children:o.jsxRuntimeExports.jsxs("g",{transform:`translate(${h.left},${h.top})`,children:[wt,Ot,o.jsxRuntimeExports.jsx(Ge.CustomArea,{areaSettings:me,scaleX:a,scaleY:l,animate:s,isInView:u}),o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(_e.YTicksAndGridLines,{values:ie.filter(Oi),y:ie.filter(wi).map(n=>l(n)),x1:0-j,x2:c+h.right,styles:Rt,classNames:it,suffix:X,prefix:B,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:K}),D,I]}),o.jsxRuntimeExports.jsx("g",{children:o.jsxRuntimeExports.jsx(Qe.XTicksAndGridLines,{values:Re,x:Ce,y1:0,y2:p,styles:Ee,classNames:be,suffix:X,prefix:B,labelType:"primary",showGridLines:!0,precision:K})}),Ae,Le,ke,Se,Ne,De]})}),Ie]})}function hi(i){return i.layer}function pi(i){return i.position==="after"}function gi(i){return!C.checkIfNullOrUndefined(i.y)}function yi(i){return!C.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!C.checkIfNullOrUndefined(i)}function bi(i){return Math.max(...i.y.filter(Ai))}function Ai(i){return!C.checkIfNullOrUndefined(i)}function Li(i){return Math.min(...i.y.filter(ki))}function ki(i){return!C.checkIfNullOrUndefined(i)}function Si(i){return Math.min(...i.y.filter(Ni))}function Ni(i){return!C.checkIfNullOrUndefined(i)}function Ti(i){return Math.min(...i.y.filter(Di))}function Di(i){return!C.checkIfNullOrUndefined(i)}function Ii(i){return!C.checkIfNullOrUndefined(i.y)}function qi(i){const t=o.compilerRuntimeExports.c(113),{data:y,graphTitle:rt,lineColors:zt,suffix:k,sources:r,prefix:ge,graphDescription:S,height:St,width:E,footNote:at,noOfXTicks:X,dateFormat:B,labels:j,padding:lt,showValues:Jt,backgroundColor:ye,leftMargin:ve,rightMargin:Nt,topMargin:Kt,bottomMargin:z,tooltip:ct,relativeHeight:ut,onSeriesMouseOver:s,showColorLegendAtTop:J,refValues:Qt,highlightAreaSettings:Zt,graphID:Tt,minValue:Dt,maxValue:dt,highlightedLines:_t,graphDownload:ce,dataDownload:ue,animate:It,language:v,colorLegendTitle:g,minHeight:de,strokeWidth:K,showDots:Q,annotations:xt,customHighlightAreaSettings:qt,theme:je,ariaLabel:ft,yAxisTitle:te,noOfYTicks:Mt,minDate:u,maxDate:O,curveType:we,styles:m,classNames:d,dimmedOpacity:Oe,precision:L,customLayers:Vt,dashedLines:Z,dashSettings:$t,labelsToBeHidden:_,showColorScale:xe}=i,q=zt===void 0?ui.Colors.light.categoricalColors.colors:zt,mt=k===void 0?"":k,h=ge===void 0?"":ge,ht=X===void 0?10:X,pt=B===void 0?"yyyy":B,x=Jt===void 0?!1:Jt,fe=ye===void 0?!1:ye,gt=ve===void 0?30:ve,Ht=Nt===void 0?50:Nt,yt=Kt===void 0?20:Kt,me=z===void 0?25:z,c=J===void 0?!1:J;let p;t[0]!==Qt?(p=Qt===void 0?[]:Qt,t[0]=Qt,t[1]=p):p=t[1];const he=p;let ee;t[2]!==Zt?(ee=Zt===void 0?[]:Zt,t[2]=Zt,t[3]=ee):ee=t[3];const w=ee;let M;t[4]!==_t?(M=_t===void 0?[]:_t,t[4]=_t,t[5]=M):M=t[5];const a=M,tt=ce===void 0?!1:ce,et=ue===void 0?!1:ue,l=It===void 0?!1:It,V=v===void 0?"en":v,ie=de===void 0?0:de,ne=K===void 0?2:K,vt=Q===void 0?!0:Q;let N;t[6]!==xt?(N=xt===void 0?[]:xt,t[6]=xt,t[7]=N):N=t[7];const $=N;let jt;t[8]!==qt?(jt=qt===void 0?[]:qt,t[8]=qt,t[9]=jt):jt=t[9];const H=jt,wt=je===void 0?"light":je,Ot=Mt===void 0?5:Mt,Ft=we===void 0?"curve":we,Gt=Oe===void 0?.3:Oe,Rt=L===void 0?2:L;let Ct;t[10]!==Vt?(Ct=Vt===void 0?[]:Vt,t[10]=Vt,t[11]=Ct):Ct=t[11];const Ut=Ct;let it;t[12]!==Z?(it=Z===void 0?[]:Z,t[12]=Z,t[13]=it):it=t[13];const Pt=it;let Et;t[14]!==$t?(Et=$t===void 0?["5 5"]:$t,t[14]=$t,t[15]=Et):Et=t[15];const Wt=Et;let bt;t[16]!==_?(bt=_===void 0?[]:_,t[16]=_,t[17]=bt):bt=t[17];const F=bt,b=xe===void 0?!0:xe,[nt,pe]=A.useState(0),[At,Lt]=A.useState(0),Yt=A.useRef(null),oe=A.useRef(null);let T,kt;t[18]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const Re=new ResizeObserver(Ce=>{pe(Ce[0].target.clientWidth||620),Lt(Ce[0].target.clientHeight||480)});return Yt.current&&Re.observe(Yt.current),()=>Re.disconnect()},kt=[],t[18]=T,t[19]=kt):(T=t[18],kt=t[19]),A.useEffect(T,kt);const Xt=d?.graphContainer,G=m?.graphContainer;let D;t[20]!==d?.description||t[21]!==d?.title||t[22]!==y||t[23]!==et||t[24]!==S||t[25]!==tt||t[26]!==rt||t[27]!==m?.description||t[28]!==m?.title||t[29]!==E?(D=rt||S||tt||et?o.jsxRuntimeExports.jsx(li.GraphHeader,{styles:{title:m?.title,description:m?.description},classNames:{title:d?.title,description:d?.description},graphTitle:rt,graphDescription:S,width:E,graphDownload:tt?oe:void 0,dataDownload:et?y.map(Fi).filter(Hi).length>0?y.map($i).filter(Vi):y.filter(Mi):null}):null,t[20]=d?.description,t[21]=d?.title,t[22]=y,t[23]=et,t[24]=S,t[25]=tt,t[26]=rt,t[27]=m?.description,t[28]=m?.title,t[29]=E,t[30]=D):D=t[30];let U;t[31]!==d?.colorLegend||t[32]!==g||t[33]!==y.length||t[34]!==j||t[35]!==F||t[36]!==q||t[37]!==c||t[38]!==b?(U=c&&b&&y.length>0?o.jsxRuntimeExports.jsx(ci.ColorLegend,{colorDomain:j,colorLegendTitle:g,labelsToBeHidden:F,colors:q,showNAColor:!1,className:d?.colorLegend}):null,t[31]=d?.colorLegend,t[32]=g,t[33]=y.length,t[34]=j,t[35]=F,t[36]=q,t[37]=c,t[38]=b,t[39]=U):U=t[39];let P;t[40]!==y.length?(P=y.length===0&&o.jsxRuntimeExports.jsx(di.EmptyState,{}),t[40]=y.length,t[41]=P):P=t[41];let W;t[42]!==l||t[43]!==$||t[44]!==me||t[45]!==d||t[46]!==Ft||t[47]!==H||t[48]!==Ut||t[49]!==Wt||t[50]!==Pt||t[51]!==y||t[52]!==pt||t[53]!==Gt||t[54]!==w||t[55]!==a||t[56]!==j||t[57]!==F||t[58]!==V||t[59]!==gt||t[60]!==q||t[61]!==O||t[62]!==dt||t[63]!==u||t[64]!==Dt||t[65]!==ht||t[66]!==Ot||t[67]!==s||t[68]!==Rt||t[69]!==h||t[70]!==he||t[71]!==Ht||t[72]!==c||t[73]!==b||t[74]!==vt||t[75]!==x||t[76]!==ne||t[77]!==m||t[78]!==mt||t[79]!==At||t[80]!==nt||t[81]!==ct||t[82]!==yt||t[83]!==te?(W=nt&&At&&y.length>0?o.jsxRuntimeExports.jsx(mi,{data:y,lineColors:q,width:nt,height:At,dateFormat:pt,noOfXTicks:ht??fi.getNoOfTicks(nt),leftMargin:gt,rightMargin:Ht,topMargin:yt,bottomMargin:me,labels:j,tooltip:ct,onSeriesMouseOver:s,showColorLegendAtTop:b?c:!0,showValues:x,suffix:mt,prefix:h,highlightAreaSettings:w,refValues:he,minValue:Dt,maxValue:dt,highlightedLines:a,animate:l===!0?{duration:.5,once:!0,amount:.5}:l||{duration:0,once:!0,amount:0},rtl:V==="he"||V==="ar",strokeWidth:ne,showDots:vt,annotations:$,customHighlightAreaSettings:H,yAxisTitle:te,noOfYTicks:Ot,minDate:u,maxDate:O,curveType:Ft,styles:m,classNames:d,dimmedOpacity:Gt,precision:Rt,customLayers:Ut,labelsToBeHidden:F,dashedLines:Pt,dashSettings:Wt,revealClipId:xi.generateRandomString(8)}):null,t[42]=l,t[43]=$,t[44]=me,t[45]=d,t[46]=Ft,t[47]=H,t[48]=Ut,t[49]=Wt,t[50]=Pt,t[51]=y,t[52]=pt,t[53]=Gt,t[54]=w,t[55]=a,t[56]=j,t[57]=F,t[58]=V,t[59]=gt,t[60]=q,t[61]=O,t[62]=dt,t[63]=u,t[64]=Dt,t[65]=ht,t[66]=Ot,t[67]=s,t[68]=Rt,t[69]=h,t[70]=he,t[71]=Ht,t[72]=c,t[73]=b,t[74]=vt,t[75]=x,t[76]=ne,t[77]=m,t[78]=mt,t[79]=At,t[80]=nt,t[81]=ct,t[82]=yt,t[83]=te,t[84]=W):W=t[84];let Y;t[85]!==P||t[86]!==W?(Y=o.jsxRuntimeExports.jsxs(We.GraphArea,{ref:Yt,children:[P,W]}),t[85]=P,t[86]=W,t[87]=Y):Y=t[87];let I;t[88]!==d?.footnote||t[89]!==d?.source||t[90]!==at||t[91]!==r||t[92]!==m?.footnote||t[93]!==m?.source||t[94]!==E?(I=r||at?o.jsxRuntimeExports.jsx(ai.GraphFooter,{styles:{footnote:m?.footnote,source:m?.source},classNames:{footnote:d?.footnote,source:d?.source},sources:r,footNote:at,width:E}):null,t[88]=d?.footnote,t[89]=d?.source,t[90]=at,t[91]=r,t[92]=m?.footnote,t[93]=m?.source,t[94]=E,t[95]=I):I=t[95];let ot;return t[96]!==ft||t[97]!==fe||t[98]!==Tt||t[99]!==St||t[100]!==V||t[101]!==ie||t[102]!==lt||t[103]!==ut||t[104]!==Xt||t[105]!==G||t[106]!==D||t[107]!==U||t[108]!==Y||t[109]!==I||t[110]!==wt||t[111]!==E?(ot=o.jsxRuntimeExports.jsxs(We.GraphContainer,{className:Xt,style:G,id:Tt,ref:oe,"aria-label":ft,backgroundColor:fe,theme:wt,language:V,minHeight:ie,width:E,height:St,relativeHeight:ut,padding:lt,children:[D,U,Y,I]}),t[96]=ft,t[97]=fe,t[98]=Tt,t[99]=St,t[100]=V,t[101]=ie,t[102]=lt,t[103]=ut,t[104]=Xt,t[105]=G,t[106]=D,t[107]=U,t[108]=Y,t[109]=I,t[110]=wt,t[111]=E,t[112]=ot):ot=t[112],ot}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
@@ -7,7 +7,7 @@ import { T as Je } from "./Tooltip-BRnAz2Gv.js";
7
7
  import { c as b } from "./checkIfNullOrUndefined-DmfiKkNw.js";
8
8
  import { C as Ke, g as Qe, A as Ze } from "./customArea-ASDaSE4u.js";
9
9
  import { A as _e } from "./AxisTitle-VFq89Olw.js";
10
- import { A as ti } from "./Axis-DoOqnt6g.js";
10
+ import { A as ti } from "./Axis-D56Gy0se.js";
11
11
  import { X as ei } from "./XTicksAndGridLines-CVZkZkpS.js";
12
12
  import { a as ii } from "./ReferenceLine-DgtoRgw0.js";
13
13
  import { Y as oi } from "./YTicksAndGridLines-GnXnSRF2.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-6v2a2njQ.cjs"),lt=require("react"),xe=require("./index-DQA8q5sC.cjs"),se=require("./numberFormattingFunction-02t-wJta.cjs"),he=require("./Tooltip-BLa2EfMs.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ce=require("./Axis-Dtjn-EgM.cjs"),me=require("./AxisTitle-DV4n0RxE.cjs"),ge=require("./XAxesLabels-C6o9jJal.cjs"),ye=require("./DetailsModal-DHttOA80.cjs"),be=require("./band-VYfcZeJ2.cjs"),pe=require("./linear-CgUCbw9F.cjs"),de=require("./line-DaEMhXmx.cjs"),oe=require("./step-BZ3C8QFW.cjs"),Yt=require("./proxy-C4-uo6nS.cjs"),ve=require("./use-in-view-C3o_ntMv.cjs"),Ae=require("./index-CoobIWNj.cjs"),je=require("./GraphFooter.cjs"),we=require("./GraphHeader.cjs"),Ee=require("./ColorLegend.cjs"),le=require("./Colors.cjs"),Re=require("./EmptyState-CGeBqbmR.cjs"),fe=require("./GraphContainer-B1EDxJ0S.cjs");function Ce(e){const t=n.compilerRuntimeExports.c(157),{data:d,width:F,height:Y,barColor:f,lineColor:p,axisTitles:x,sameAxes:A,rightMargin:Qt,leftMargin:te,topMargin:Ht,bottomMargin:Gt,tooltip:Ct,showValues:Mt,onSeriesMouseOver:rt,barPadding:Xt,truncateBy:kt,showLabels:Wt,onSeriesMouseClick:N,resetSelectionOnDoubleClick:ft,detailsOnClick:k,noOfTicks:ht,lineSuffix:gt,barSuffix:Lt,linePrefix:St,barPrefix:Nt,curveType:Ot,styles:s,classNames:o,animate:r,precision:H,customLayers:O,naLabel:at,showAxisLabels:L}=e,Zt=lt.useRef(null);let yt;t[0]!==r.amount||t[1]!==r.once?(yt={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=yt):yt=t[2];const $=ve.useInView(Zt,yt),Bt=Ot==="linear"?de.curveLinear:Ot==="step"?oe.curveStep:Ot==="stepAfter"?oe.stepAfter:Ot==="stepBefore"?oe.stepBefore:oe.monotoneX,[$t,ct]=lt.useState(void 0),[q,bt]=lt.useState(void 0),[qt,u]=lt.useState(void 0),[a,ut]=lt.useState(void 0),Ut=te+50,vt=Qt+65;let Vt;t[3]!==Gt||t[4]!==Ut||t[5]!==vt||t[6]!==Ht?(Vt={top:Ht,bottom:Gt,left:Ut,right:vt},t[3]=Gt,t[4]=Ut,t[5]=vt,t[6]=Ht,t[7]=Vt):Vt=t[7];const c=Vt,g=F-c.left-c.right,l=Y-c.top-c.bottom;let j,G,X,S,W,B,U,w,E,V,I,z,J,K,Q;if(t[8]!==r||t[9]!==x||t[10]!==f||t[11]!==Xt||t[12]!==Nt||t[13]!==Lt||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]!==Bt||t[21]!==O||t[22]!==d||t[23]!==k||t[24]!==l||t[25]!==g||t[26]!==Y||t[27]!==$||t[28]!==p||t[29]!==St||t[30]!==gt||t[31]!==c.bottom||t[32]!==c.left||t[33]!==c.right||t[34]!==c.top||t[35]!==q||t[36]!==at||t[37]!==ht||t[38]!==N||t[39]!==rt||t[40]!==H||t[41]!==ft||t[42]!==A||t[43]!==L||t[44]!==Wt||t[45]!==Mt||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]!==kt||t[53]!==F){const m=d.map(ti),y=be.band().domain(m.map(_e)).range([0,g]).paddingInner(Xt),It=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,jt=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,wt=Math.max(...m.map(Fe).filter(De))!==1/0?Math.max(...m.map(Pe).filter(Te)):0,xt=Math.max(...m.map(Ie).filter(Ve))!==1/0?Math.max(...m.map(qe).filter($e)):0,zt=It<jt?It:jt,Et=wt>xt?wt:xt,h=pe.linear().domain([A?zt:It,A?Et>0?Et:0:wt>0?wt:0]).range([l,0]).nice(),b=pe.linear().domain([A?zt:jt,A?Et>0?Et:0:xt>0?xt:0]).range([l,0]).nice(),Tt=de.line().defined(Oe).x(i=>y(`${i.id}`)+y.bandwidth()/2).y(i=>b(i.line)).curve(Bt),re=h.ticks(ht),Jt=b.ticks(ht);G=Yt.motion.svg,W=`${F}px`,B=`${Y}px`,U=`0 0 ${F} ${Y}`,w="ltr",E=Zt,J=`translate(${c.left},${c.top})`;const _t=o?.xAxis?.axis;let nt;t[69]!==_t?(nt={axis:_t},t[69]=_t,t[70]=nt):nt=t[70];let mt;t[71]!==s?.xAxis?.axis?(mt=s?.xAxis?.axis||{},t[71]=s?.xAxis?.axis,t[72]=mt):mt=t[72];let T;t[73]!==f||t[74]!==mt?(T={axis:{stroke:f,...mt}},t[73]=f,t[74]=mt,t[75]=T):T=t[75];let pt;t[76]!==l||t[77]!==nt||t[78]!==T?(pt=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:-15,x2:-15,classNames:nt,styles:T}),t[76]=l,t[77]=nt,t[78]=T,t[79]=pt):pt=t[79];let Rt;t[80]!==x||t[81]!==f||t[82]!==o?.yAxis?.title||t[83]!==l||t[84]!==c.left||t[85]!==L||t[86]!==s?.yAxis?.title?(Rt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:10-c.left,y:l/2,style:{fill:f,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[0].length>100?`${x[0].substring(0,100)}...`:x[0],rotate90:!0}):null,t[80]=x,t[81]=f,t[82]=o?.yAxis?.title,t[83]=l,t[84]=c.left,t[85]=L,t[86]=s?.yAxis?.title,t[87]=Rt):Rt=t[87],K=n.jsxRuntimeExports.jsxs("g",{children:[re.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:h(i),y2:h(i),x1:-15,x2:-20,style:{stroke:f,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:-25,y:h(i),dy:"0.33em",className:n.mo("text-xs",o?.yAxis?.labels),style:{textAnchor:"end",fill:f,...s?.yAxis?.labels||{}},children:se.numberFormattingFunction(i,at,H,Nt,Lt)})]},Ft)),pt,Rt]});const Pt=g+15,st=g+15,ot=o?.xAxis?.axis;let R;t[88]!==ot?(R={axis:ot},t[88]=ot,t[89]=R):R=t[89];let C;t[90]!==s?.xAxis?.axis?(C=s?.xAxis?.axis||{},t[90]=s?.xAxis?.axis,t[91]=C):C=t[91];let M;t[92]!==p||t[93]!==C?(M={axis:{stroke:p,...C}},t[92]=p,t[93]=C,t[94]=M):M=t[94];let P;t[95]!==l||t[96]!==Pt||t[97]!==st||t[98]!==R||t[99]!==M?(P=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:Pt,x2:st,classNames:R,styles:M}),t[95]=l,t[96]=Pt,t[97]=st,t[98]=R,t[99]=M,t[100]=P):P=t[100];let dt;t[101]!==x||t[102]!==o?.yAxis?.title||t[103]!==l||t[104]!==g||t[105]!==p||t[106]!==c.right||t[107]!==L||t[108]!==s?.yAxis?.title?(dt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:g+c.right-15,y:l/2,style:{fill:p,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[1].length>100?`${x[1].substring(0,100)}...`:x[1],rotate90:!0}):null,t[101]=x,t[102]=o?.yAxis?.title,t[103]=l,t[104]=g,t[105]=p,t[106]=c.right,t[107]=L,t[108]=s?.yAxis?.title,t[109]=dt):dt=t[109],Q=n.jsxRuntimeExports.jsxs("g",{children:[Jt.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:b(i),y2:b(i),x1:g+15,x2:g+20,style:{stroke:p,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:g+25,y:b(i),dy:"0.33em",dx:-2,style:{textAnchor:"start",fill:p,...s?.yAxis?.labels||{}},className:n.mo("text-xs",o?.yAxis?.labels),children:se.numberFormattingFunction(i,at,H,St,gt)})]},Ft)),P,dt]});const Kt=o?.xAxis?.axis;let Dt;t[110]!==Kt?(Dt={axis:Kt},t[110]=Kt,t[111]=Dt):Dt=t[111];const ae=s?.xAxis?.axis;let ee;t[112]!==ae?(ee={axis:ae},t[112]=ae,t[113]=ee):ee=t[113],X=n.jsxRuntimeExports.jsx(ce.Axis,{y1:A?h(0):l,y2:A?h(0):l,x1:-15,x2:g+15,classNames:Dt,styles:ee}),t[114]!==O?(S=O.filter(Ne).map(Se),t[114]=O,t[115]=S):S=t[115],j=Ae.AnimatePresence,V=m.map((i,Ft)=>n.jsxRuntimeExports.jsxs(Yt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.rect,{variants:{initial:{attrY:h(0),height:0,opacity:1,fill:f},whileInView:{attrY:i.bar?i.bar>0?h(i.bar):h(0):0,height:i.bar?Math.abs(h(i.bar)-h(0)):0,opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{attrY:h(0),height:0,opacity:0,transition:{duration:r.duration}},x:y(`${Ft}`),width:y.bandwidth()}),Mt&&!ue.checkIfNullOrUndefined(i.bar)?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{attrY:h(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{attrY:h(0),opacity:0,fill:f},whileInView:{attrY:h(i.bar||0),opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"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:se.numberFormattingFunction(i.bar,at,H,Nt,Lt)}):null,Wt?n.jsxRuntimeExports.jsx(ge.XAxesLabels,{value:`${i.label}`.length<kt?`${i.label}`:`${`${i.label}`.substring(0,kt)}...`,y:l+5,x:y(`${i.id}`),width:y.bandwidth(),height:c.bottom,style:s?.xAxis?.labels,className:o?.xAxis?.labels,alignment:"top",animate:r,isInView:$}):null]},i.label));let ie;t[116]!==r.duration?(ie={opacity:0,transition:{duration:r.duration}},t[116]=r.duration,t[117]=ie):ie=t[117];let ne;t[118]===Symbol.for("react.memo_cache_sentinel")?(ne={fill:"none",strokeWidth:2},t[118]=ne):ne=t[118],I=n.jsxRuntimeExports.jsx(Yt.motion.path,{exit:ie,variants:{initial:{d:Tt(m.map(Le)),opacity:0,stroke:p},whileInView:{d:Tt(m),opacity:1,stroke:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",style:ne}),z=m.map((i,Ft)=>n.jsxRuntimeExports.jsx("g",{children:ue.checkIfNullOrUndefined(i.line)?null:n.jsxRuntimeExports.jsxs("g",{onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.circle,{exit:{cy:b(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{cy:b(0),opacity:0,fill:p},whileInView:{cy:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",cx:y(i.id)+y.bandwidth()/2,r:g/m.length<5?0:g/m.length<20?2:4}),Mt?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{y:b(0),opacity:0,transition:{duration:r.duration}},style:{textAnchor:"middle",...s?.graphObjectValues||{}},variants:{initial:{y:b(0),opacity:0,fill:p},whileInView:{y:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:"-5px",children:se.numberFormattingFunction(i.line,at,H,St,gt)}):null]})},Ft)),t[8]=r,t[9]=x,t[10]=f,t[11]=Xt,t[12]=Nt,t[13]=Lt,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]=Bt,t[21]=O,t[22]=d,t[23]=k,t[24]=l,t[25]=g,t[26]=Y,t[27]=$,t[28]=p,t[29]=St,t[30]=gt,t[31]=c.bottom,t[32]=c.left,t[33]=c.right,t[34]=c.top,t[35]=q,t[36]=at,t[37]=ht,t[38]=N,t[39]=rt,t[40]=H,t[41]=ft,t[42]=A,t[43]=L,t[44]=Wt,t[45]=Mt,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]=kt,t[53]=F,t[54]=j,t[55]=G,t[56]=X,t[57]=S,t[58]=W,t[59]=B,t[60]=U,t[61]=w,t[62]=E,t[63]=V,t[64]=I,t[65]=z,t[66]=J,t[67]=K,t[68]=Q}else j=t[54],G=t[55],X=t[56],S=t[57],W=t[58],B=t[59],U=t[60],w=t[61],E=t[62],V=t[63],I=t[64],z=t[65],J=t[66],K=t[67],Q=t[68];let Z;t[119]!==j||t[120]!==V||t[121]!==I||t[122]!==z?(Z=n.jsxRuntimeExports.jsxs(j,{children:[V,I,z]}),t[119]=j,t[120]=V,t[121]=I,t[122]=z,t[123]=Z):Z=t[123];let v;t[124]!==O?(v=O.filter(ke).map(Me),t[124]=O,t[125]=v):v=t[125];let _;t[126]!==X||t[127]!==S||t[128]!==Z||t[129]!==v||t[130]!==J||t[131]!==K||t[132]!==Q?(_=n.jsxRuntimeExports.jsxs("g",{transform:J,children:[K,Q,X,S,Z,v]}),t[126]=X,t[127]=S,t[128]=Z,t[129]=v,t[130]=J,t[131]=K,t[132]=Q,t[133]=_):_=t[133];let tt;t[134]!==G||t[135]!==W||t[136]!==B||t[137]!==U||t[138]!==w||t[139]!==E||t[140]!==_?(tt=n.jsxRuntimeExports.jsx(G,{width:W,height:B,viewBox:U,direction:w,ref:E,children:_}),t[134]=G,t[135]=W,t[136]=B,t[137]=U,t[138]=w,t[139]=E,t[140]=_,t[141]=tt):tt=t[141];let et;t[142]!==o?.tooltip||t[143]!==qt||t[144]!==a||t[145]!==$t||t[146]!==s?.tooltip||t[147]!==Ct?(et=$t&&Ct&&qt&&a?n.jsxRuntimeExports.jsx(he.Tooltip,{data:$t,body:Ct,xPos:qt,yPos:a,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[142]=o?.tooltip,t[143]=qt,t[144]=a,t[145]=$t,t[146]=s?.tooltip,t[147]=Ct,t[148]=et):et=t[148];let it;t[149]!==o?.modal||t[150]!==k||t[151]!==q?(it=k&&q!==void 0?n.jsxRuntimeExports.jsx(ye.DetailsModal,{body:k,data:q,setData:bt,className:o?.modal}):null,t[149]=o?.modal,t[150]=k,t[151]=q,t[152]=it):it=t[152];let At;return t[153]!==tt||t[154]!==et||t[155]!==it?(At=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[tt,et,it]}),t[153]=tt,t[154]=et,t[155]=it,t[156]=At):At=t[156],At}function Me(e){return e.layer}function ke(e){return e.position==="after"}function Le(e){return{...e,line:0}}function Se(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(90),{data:d,graphTitle:F,sources:Y,graphDescription:f,height:p,width:x,footNote:A,padding:Qt,lineColor:te,barColor:Ht,sameAxes:Gt,backgroundColor:Ct,leftMargin:Mt,rightMargin:rt,topMargin:Xt,bottomMargin:kt,lineAxisTitle:Wt,barAxisTitle:N,tooltip:ft,relativeHeight:k,onSeriesMouseOver:ht,graphID:gt,graphDownload:Lt,dataDownload:St,barPadding:Nt,truncateBy:Ot,showLabels:s,onSeriesMouseClick:o,language:r,colorLegendTitle:H,minHeight:O,theme:at,ariaLabel:L,resetSelectionOnDoubleClick:Zt,detailsOnClick:yt,showValues:$,noOfTicks:Bt,lineSuffix:$t,barSuffix:ct,linePrefix:q,barPrefix:bt,curveType:qt,styles:u,classNames:a,animate:ut,precision:Ut,customLayers:vt,naLabel:Vt,showColorScale:c,showAxisLabels:g}=e,l=te===void 0?le.Colors.light.categoricalColors.colors[1]:te,j=Ht===void 0?le.Colors.light.categoricalColors.colors[0]:Ht,G=Gt===void 0?!1:Gt,X=Ct===void 0?!1:Ct,S=Mt===void 0?80:Mt,W=rt===void 0?80:rt,B=Xt===void 0?20:Xt,U=kt===void 0?25:kt,w=Wt===void 0?"Line chart":Wt,E=N===void 0?"Bar graph":N,V=Lt===void 0?!1:Lt,I=St===void 0?!1:St,z=Nt===void 0?.25:Nt,J=Ot===void 0?999:Ot,K=s===void 0?!0:s,Q=r===void 0?"en":r,Z=O===void 0?0:O,v=at===void 0?"light":at,_=Zt===void 0?!0:Zt,tt=$===void 0?!0:$,et=Bt===void 0?5:Bt,it=$t===void 0?"":$t,At=ct===void 0?"":ct,m=q===void 0?"":q,y=bt===void 0?"":bt,It=qt===void 0?"curve":qt,jt=ut===void 0?!1:ut,wt=Ut===void 0?2:Ut;let xt;t[0]!==vt?(xt=vt===void 0?[]:vt,t[0]=vt,t[1]=xt):xt=t[1];const zt=xt,Et=Vt===void 0?"NA":Vt,h=c===void 0?!0:c,b=g===void 0?!0:g,[Tt,re]=lt.useState(0),[Jt,_t]=lt.useState(0),nt=lt.useRef(null),mt=lt.useRef(null);let T,pt;t[2]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const Kt=new ResizeObserver(Dt=>{re(Dt[0].target.clientWidth||620),_t(Dt[0].target.clientHeight||480)});return nt.current&&Kt.observe(nt.current),()=>Kt.disconnect()},pt=[],t[2]=T,t[3]=pt):(T=t[2],pt=t[3]),lt.useEffect(T,pt);const Rt=a?.graphContainer,Pt=u?.graphContainer;let st;t[4]!==a?.description||t[5]!==a?.title||t[6]!==d||t[7]!==I||t[8]!==f||t[9]!==V||t[10]!==F||t[11]!==u?.description||t[12]!==u?.title||t[13]!==x?(st=F||f||V||I?n.jsxRuntimeExports.jsx(we.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:a?.title,description:a?.description},graphTitle:F,graphDescription:f,width:x,graphDownload:V?mt:void 0,dataDownload:I?d.map(li).filter(oi).length>0?d.map(si).filter(ni):d.filter(ii):null}):null,t[4]=a?.description,t[5]=a?.title,t[6]=d,t[7]=I,t[8]=f,t[9]=V,t[10]=F,t[11]=u?.description,t[12]=u?.title,t[13]=x,t[14]=st):st=t[14];let ot;t[15]!==E||t[16]!==j||t[17]!==a?.colorLegend||t[18]!==H||t[19]!==d.length||t[20]!==w||t[21]!==l||t[22]!==h||t[23]!==v?(ot=!h&&d.length>0?null:n.jsxRuntimeExports.jsx(Ee.ColorLegend,{colorDomain:[E,w],colors:[j||le.Colors[v].categoricalColors.colors[0],l||le.Colors[v].categoricalColors.colors[1]],colorLegendTitle:H,showNAColor:!1,className:a?.colorLegend}),t[15]=E,t[16]=j,t[17]=a?.colorLegend,t[18]=H,t[19]=d.length,t[20]=w,t[21]=l,t[22]=h,t[23]=v,t[24]=ot):ot=t[24];let R;t[25]!==d.length?(R=d.length===0&&n.jsxRuntimeExports.jsx(Re.EmptyState,{}),t[25]=d.length,t[26]=R):R=t[26];let C;t[27]!==jt||t[28]!==E||t[29]!==j||t[30]!==z||t[31]!==y||t[32]!==At||t[33]!==U||t[34]!==a||t[35]!==It||t[36]!==zt||t[37]!==d||t[38]!==yt||t[39]!==S||t[40]!==w||t[41]!==l||t[42]!==m||t[43]!==it||t[44]!==Et||t[45]!==et||t[46]!==o||t[47]!==ht||t[48]!==wt||t[49]!==_||t[50]!==W||t[51]!==G||t[52]!==b||t[53]!==K||t[54]!==tt||t[55]!==u||t[56]!==Jt||t[57]!==Tt||t[58]!==ft||t[59]!==B||t[60]!==J?(C=Tt&&Jt&&d.length>0?n.jsxRuntimeExports.jsx(Ce,{data:d,sameAxes:G,lineColor:l,barColor:j,width:Tt,height:Jt,truncateBy:J,leftMargin:S,rightMargin:W,topMargin:B,bottomMargin:U,axisTitles:[E,w],tooltip:ft,onSeriesMouseOver:ht,barPadding:z,showLabels:K,onSeriesMouseClick:o,resetSelectionOnDoubleClick:_,detailsOnClick:yt,noOfTicks:et,lineSuffix:it,barSuffix:At,linePrefix:m,barPrefix:y,curveType:It,showValues:tt,styles:u,classNames:a,animate:jt===!0?{duration:.5,once:!0,amount:.5}:jt||{duration:0,once:!0,amount:0},precision:wt,customLayers:zt,naLabel:Et,showAxisLabels:b}):null,t[27]=jt,t[28]=E,t[29]=j,t[30]=z,t[31]=y,t[32]=At,t[33]=U,t[34]=a,t[35]=It,t[36]=zt,t[37]=d,t[38]=yt,t[39]=S,t[40]=w,t[41]=l,t[42]=m,t[43]=it,t[44]=Et,t[45]=et,t[46]=o,t[47]=ht,t[48]=wt,t[49]=_,t[50]=W,t[51]=G,t[52]=b,t[53]=K,t[54]=tt,t[55]=u,t[56]=Jt,t[57]=Tt,t[58]=ft,t[59]=B,t[60]=J,t[61]=C):C=t[61];let M;t[62]!==R||t[63]!==C?(M=n.jsxRuntimeExports.jsxs(fe.GraphArea,{ref:nt,children:[R,C]}),t[62]=R,t[63]=C,t[64]=M):M=t[64];let P;t[65]!==a?.footnote||t[66]!==a?.source||t[67]!==A||t[68]!==Y||t[69]!==u?.footnote||t[70]!==u?.source||t[71]!==x?(P=Y||A?n.jsxRuntimeExports.jsx(je.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:a?.footnote,source:a?.source},sources:Y,footNote:A,width:x}):null,t[65]=a?.footnote,t[66]=a?.source,t[67]=A,t[68]=Y,t[69]=u?.footnote,t[70]=u?.source,t[71]=x,t[72]=P):P=t[72];let dt;return t[73]!==L||t[74]!==X||t[75]!==gt||t[76]!==p||t[77]!==Q||t[78]!==Z||t[79]!==Qt||t[80]!==k||t[81]!==Rt||t[82]!==Pt||t[83]!==st||t[84]!==ot||t[85]!==M||t[86]!==P||t[87]!==v||t[88]!==x?(dt=n.jsxRuntimeExports.jsxs(fe.GraphContainer,{className:Rt,style:Pt,id:gt,ref:mt,"aria-label":L,backgroundColor:X,theme:v,language:Q,minHeight:Z,width:x,height:p,relativeHeight:k,padding:Qt,children:[st,ot,M,P]}),t[73]=L,t[74]=X,t[75]=gt,t[76]=p,t[77]=Q,t[78]=Z,t[79]=Qt,t[80]=k,t[81]=Rt,t[82]=Pt,t[83]=st,t[84]=ot,t[85]=M,t[86]=P,t[87]=v,t[88]=x,t[89]=dt):dt=t[89],dt}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 li(e){return e.data}exports.ParetoChart=ei;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-6v2a2njQ.cjs"),lt=require("react"),xe=require("./index-DQA8q5sC.cjs"),se=require("./numberFormattingFunction-02t-wJta.cjs"),he=require("./Tooltip-BLa2EfMs.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ce=require("./Axis-Jt_tmhxS.cjs"),me=require("./AxisTitle-DV4n0RxE.cjs"),ge=require("./XAxesLabels-C6o9jJal.cjs"),ye=require("./DetailsModal-DHttOA80.cjs"),be=require("./band-VYfcZeJ2.cjs"),pe=require("./linear-CgUCbw9F.cjs"),de=require("./line-DaEMhXmx.cjs"),oe=require("./step-BZ3C8QFW.cjs"),Yt=require("./proxy-C4-uo6nS.cjs"),ve=require("./use-in-view-C3o_ntMv.cjs"),Ae=require("./index-CoobIWNj.cjs"),je=require("./GraphFooter.cjs"),we=require("./GraphHeader.cjs"),Ee=require("./ColorLegend.cjs"),le=require("./Colors.cjs"),Re=require("./EmptyState-CGeBqbmR.cjs"),fe=require("./GraphContainer-B1EDxJ0S.cjs");function Ce(e){const t=n.compilerRuntimeExports.c(157),{data:d,width:F,height:Y,barColor:f,lineColor:p,axisTitles:x,sameAxes:A,rightMargin:Qt,leftMargin:te,topMargin:Ht,bottomMargin:Gt,tooltip:Ct,showValues:Mt,onSeriesMouseOver:rt,barPadding:Xt,truncateBy:kt,showLabels:Wt,onSeriesMouseClick:N,resetSelectionOnDoubleClick:ft,detailsOnClick:k,noOfTicks:ht,lineSuffix:gt,barSuffix:Lt,linePrefix:St,barPrefix:Nt,curveType:Ot,styles:s,classNames:o,animate:r,precision:H,customLayers:O,naLabel:at,showAxisLabels:L}=e,Zt=lt.useRef(null);let yt;t[0]!==r.amount||t[1]!==r.once?(yt={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=yt):yt=t[2];const $=ve.useInView(Zt,yt),Bt=Ot==="linear"?de.curveLinear:Ot==="step"?oe.curveStep:Ot==="stepAfter"?oe.stepAfter:Ot==="stepBefore"?oe.stepBefore:oe.monotoneX,[$t,ct]=lt.useState(void 0),[q,bt]=lt.useState(void 0),[qt,u]=lt.useState(void 0),[a,ut]=lt.useState(void 0),Ut=te+50,vt=Qt+65;let Vt;t[3]!==Gt||t[4]!==Ut||t[5]!==vt||t[6]!==Ht?(Vt={top:Ht,bottom:Gt,left:Ut,right:vt},t[3]=Gt,t[4]=Ut,t[5]=vt,t[6]=Ht,t[7]=Vt):Vt=t[7];const c=Vt,g=F-c.left-c.right,l=Y-c.top-c.bottom;let j,G,X,S,W,B,U,w,E,V,I,z,J,K,Q;if(t[8]!==r||t[9]!==x||t[10]!==f||t[11]!==Xt||t[12]!==Nt||t[13]!==Lt||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]!==Bt||t[21]!==O||t[22]!==d||t[23]!==k||t[24]!==l||t[25]!==g||t[26]!==Y||t[27]!==$||t[28]!==p||t[29]!==St||t[30]!==gt||t[31]!==c.bottom||t[32]!==c.left||t[33]!==c.right||t[34]!==c.top||t[35]!==q||t[36]!==at||t[37]!==ht||t[38]!==N||t[39]!==rt||t[40]!==H||t[41]!==ft||t[42]!==A||t[43]!==L||t[44]!==Wt||t[45]!==Mt||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]!==kt||t[53]!==F){const m=d.map(ti),y=be.band().domain(m.map(_e)).range([0,g]).paddingInner(Xt),It=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,jt=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,wt=Math.max(...m.map(Fe).filter(De))!==1/0?Math.max(...m.map(Pe).filter(Te)):0,xt=Math.max(...m.map(Ie).filter(Ve))!==1/0?Math.max(...m.map(qe).filter($e)):0,zt=It<jt?It:jt,Et=wt>xt?wt:xt,h=pe.linear().domain([A?zt:It,A?Et>0?Et:0:wt>0?wt:0]).range([l,0]).nice(),b=pe.linear().domain([A?zt:jt,A?Et>0?Et:0:xt>0?xt:0]).range([l,0]).nice(),Tt=de.line().defined(Oe).x(i=>y(`${i.id}`)+y.bandwidth()/2).y(i=>b(i.line)).curve(Bt),re=h.ticks(ht),Jt=b.ticks(ht);G=Yt.motion.svg,W=`${F}px`,B=`${Y}px`,U=`0 0 ${F} ${Y}`,w="ltr",E=Zt,J=`translate(${c.left},${c.top})`;const _t=o?.xAxis?.axis;let nt;t[69]!==_t?(nt={axis:_t},t[69]=_t,t[70]=nt):nt=t[70];let mt;t[71]!==s?.xAxis?.axis?(mt=s?.xAxis?.axis||{},t[71]=s?.xAxis?.axis,t[72]=mt):mt=t[72];let T;t[73]!==f||t[74]!==mt?(T={axis:{stroke:f,...mt}},t[73]=f,t[74]=mt,t[75]=T):T=t[75];let pt;t[76]!==l||t[77]!==nt||t[78]!==T?(pt=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:-15,x2:-15,classNames:nt,styles:T}),t[76]=l,t[77]=nt,t[78]=T,t[79]=pt):pt=t[79];let Rt;t[80]!==x||t[81]!==f||t[82]!==o?.yAxis?.title||t[83]!==l||t[84]!==c.left||t[85]!==L||t[86]!==s?.yAxis?.title?(Rt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:10-c.left,y:l/2,style:{fill:f,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[0].length>100?`${x[0].substring(0,100)}...`:x[0],rotate90:!0}):null,t[80]=x,t[81]=f,t[82]=o?.yAxis?.title,t[83]=l,t[84]=c.left,t[85]=L,t[86]=s?.yAxis?.title,t[87]=Rt):Rt=t[87],K=n.jsxRuntimeExports.jsxs("g",{children:[re.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:h(i),y2:h(i),x1:-15,x2:-20,style:{stroke:f,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:-25,y:h(i),dy:"0.33em",className:n.mo("text-xs",o?.yAxis?.labels),style:{textAnchor:"end",fill:f,...s?.yAxis?.labels||{}},children:se.numberFormattingFunction(i,at,H,Nt,Lt)})]},Ft)),pt,Rt]});const Pt=g+15,st=g+15,ot=o?.xAxis?.axis;let R;t[88]!==ot?(R={axis:ot},t[88]=ot,t[89]=R):R=t[89];let C;t[90]!==s?.xAxis?.axis?(C=s?.xAxis?.axis||{},t[90]=s?.xAxis?.axis,t[91]=C):C=t[91];let M;t[92]!==p||t[93]!==C?(M={axis:{stroke:p,...C}},t[92]=p,t[93]=C,t[94]=M):M=t[94];let P;t[95]!==l||t[96]!==Pt||t[97]!==st||t[98]!==R||t[99]!==M?(P=n.jsxRuntimeExports.jsx(ce.Axis,{y1:0,y2:l,x1:Pt,x2:st,classNames:R,styles:M}),t[95]=l,t[96]=Pt,t[97]=st,t[98]=R,t[99]=M,t[100]=P):P=t[100];let dt;t[101]!==x||t[102]!==o?.yAxis?.title||t[103]!==l||t[104]!==g||t[105]!==p||t[106]!==c.right||t[107]!==L||t[108]!==s?.yAxis?.title?(dt=L?n.jsxRuntimeExports.jsx(me.AxisTitle,{x:g+c.right-15,y:l/2,style:{fill:p,...s?.yAxis?.title||{}},className:o?.yAxis?.title,text:x[1].length>100?`${x[1].substring(0,100)}...`:x[1],rotate90:!0}):null,t[101]=x,t[102]=o?.yAxis?.title,t[103]=l,t[104]=g,t[105]=p,t[106]=c.right,t[107]=L,t[108]=s?.yAxis?.title,t[109]=dt):dt=t[109],Q=n.jsxRuntimeExports.jsxs("g",{children:[Jt.map((i,Ft)=>n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx("line",{y1:b(i),y2:b(i),x1:g+15,x2:g+20,style:{stroke:p,strokeWidth:1,...s?.yAxis?.gridLines||{}},className:o?.yAxis?.gridLines}),n.jsxRuntimeExports.jsx("text",{x:g+25,y:b(i),dy:"0.33em",dx:-2,style:{textAnchor:"start",fill:p,...s?.yAxis?.labels||{}},className:n.mo("text-xs",o?.yAxis?.labels),children:se.numberFormattingFunction(i,at,H,St,gt)})]},Ft)),P,dt]});const Kt=o?.xAxis?.axis;let Dt;t[110]!==Kt?(Dt={axis:Kt},t[110]=Kt,t[111]=Dt):Dt=t[111];const ae=s?.xAxis?.axis;let ee;t[112]!==ae?(ee={axis:ae},t[112]=ae,t[113]=ee):ee=t[113],X=n.jsxRuntimeExports.jsx(ce.Axis,{y1:A?h(0):l,y2:A?h(0):l,x1:-15,x2:g+15,classNames:Dt,styles:ee}),t[114]!==O?(S=O.filter(Ne).map(Se),t[114]=O,t[115]=S):S=t[115],j=Ae.AnimatePresence,V=m.map((i,Ft)=>n.jsxRuntimeExports.jsxs(Yt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.rect,{variants:{initial:{attrY:h(0),height:0,opacity:1,fill:f},whileInView:{attrY:i.bar?i.bar>0?h(i.bar):h(0):0,height:i.bar?Math.abs(h(i.bar)-h(0)):0,opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{attrY:h(0),height:0,opacity:0,transition:{duration:r.duration}},x:y(`${Ft}`),width:y.bandwidth()}),Mt&&!ue.checkIfNullOrUndefined(i.bar)?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{attrY:h(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{attrY:h(0),opacity:0,fill:f},whileInView:{attrY:h(i.bar||0),opacity:1,fill:f,transition:{duration:r.duration}}},initial:"initial",animate:$?"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:se.numberFormattingFunction(i.bar,at,H,Nt,Lt)}):null,Wt?n.jsxRuntimeExports.jsx(ge.XAxesLabels,{value:`${i.label}`.length<kt?`${i.label}`:`${`${i.label}`.substring(0,kt)}...`,y:l+5,x:y(`${i.id}`),width:y.bandwidth(),height:c.bottom,style:s?.xAxis?.labels,className:o?.xAxis?.labels,alignment:"top",animate:r,isInView:$}):null]},i.label));let ie;t[116]!==r.duration?(ie={opacity:0,transition:{duration:r.duration}},t[116]=r.duration,t[117]=ie):ie=t[117];let ne;t[118]===Symbol.for("react.memo_cache_sentinel")?(ne={fill:"none",strokeWidth:2},t[118]=ne):ne=t[118],I=n.jsxRuntimeExports.jsx(Yt.motion.path,{exit:ie,variants:{initial:{d:Tt(m.map(Le)),opacity:0,stroke:p},whileInView:{d:Tt(m),opacity:1,stroke:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",style:ne}),z=m.map((i,Ft)=>n.jsxRuntimeExports.jsx("g",{children:ue.checkIfNullOrUndefined(i.line)?null:n.jsxRuntimeExports.jsxs("g",{onMouseEnter:D=>{ct(i),ut(D.clientY),u(D.clientX),rt?.(i)},onClick:()=>{(N||k)&&(xe.isEqual(q,i)&&ft?(bt(void 0),N?.(void 0)):(bt(i),N?.(i)))},onMouseMove:D=>{ct(i),ut(D.clientY),u(D.clientX)},onMouseLeave:()=>{ct(void 0),u(void 0),ut(void 0),rt?.(void 0)},children:[n.jsxRuntimeExports.jsx(Yt.motion.circle,{exit:{cy:b(0),opacity:0,transition:{duration:r.duration}},variants:{initial:{cy:b(0),opacity:0,fill:p},whileInView:{cy:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",cx:y(i.id)+y.bandwidth()/2,r:g/m.length<5?0:g/m.length<20?2:4}),Mt?n.jsxRuntimeExports.jsx(Yt.motion.text,{x:y(`${i.id}`)+y.bandwidth()/2,exit:{y:b(0),opacity:0,transition:{duration:r.duration}},style:{textAnchor:"middle",...s?.graphObjectValues||{}},variants:{initial:{y:b(0),opacity:0,fill:p},whileInView:{y:b(i.line),opacity:1,fill:p,transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",className:n.mo("graph-value text-sm",o?.graphObjectValues),dy:"-5px",children:se.numberFormattingFunction(i.line,at,H,St,gt)}):null]})},Ft)),t[8]=r,t[9]=x,t[10]=f,t[11]=Xt,t[12]=Nt,t[13]=Lt,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]=Bt,t[21]=O,t[22]=d,t[23]=k,t[24]=l,t[25]=g,t[26]=Y,t[27]=$,t[28]=p,t[29]=St,t[30]=gt,t[31]=c.bottom,t[32]=c.left,t[33]=c.right,t[34]=c.top,t[35]=q,t[36]=at,t[37]=ht,t[38]=N,t[39]=rt,t[40]=H,t[41]=ft,t[42]=A,t[43]=L,t[44]=Wt,t[45]=Mt,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]=kt,t[53]=F,t[54]=j,t[55]=G,t[56]=X,t[57]=S,t[58]=W,t[59]=B,t[60]=U,t[61]=w,t[62]=E,t[63]=V,t[64]=I,t[65]=z,t[66]=J,t[67]=K,t[68]=Q}else j=t[54],G=t[55],X=t[56],S=t[57],W=t[58],B=t[59],U=t[60],w=t[61],E=t[62],V=t[63],I=t[64],z=t[65],J=t[66],K=t[67],Q=t[68];let Z;t[119]!==j||t[120]!==V||t[121]!==I||t[122]!==z?(Z=n.jsxRuntimeExports.jsxs(j,{children:[V,I,z]}),t[119]=j,t[120]=V,t[121]=I,t[122]=z,t[123]=Z):Z=t[123];let v;t[124]!==O?(v=O.filter(ke).map(Me),t[124]=O,t[125]=v):v=t[125];let _;t[126]!==X||t[127]!==S||t[128]!==Z||t[129]!==v||t[130]!==J||t[131]!==K||t[132]!==Q?(_=n.jsxRuntimeExports.jsxs("g",{transform:J,children:[K,Q,X,S,Z,v]}),t[126]=X,t[127]=S,t[128]=Z,t[129]=v,t[130]=J,t[131]=K,t[132]=Q,t[133]=_):_=t[133];let tt;t[134]!==G||t[135]!==W||t[136]!==B||t[137]!==U||t[138]!==w||t[139]!==E||t[140]!==_?(tt=n.jsxRuntimeExports.jsx(G,{width:W,height:B,viewBox:U,direction:w,ref:E,children:_}),t[134]=G,t[135]=W,t[136]=B,t[137]=U,t[138]=w,t[139]=E,t[140]=_,t[141]=tt):tt=t[141];let et;t[142]!==o?.tooltip||t[143]!==qt||t[144]!==a||t[145]!==$t||t[146]!==s?.tooltip||t[147]!==Ct?(et=$t&&Ct&&qt&&a?n.jsxRuntimeExports.jsx(he.Tooltip,{data:$t,body:Ct,xPos:qt,yPos:a,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[142]=o?.tooltip,t[143]=qt,t[144]=a,t[145]=$t,t[146]=s?.tooltip,t[147]=Ct,t[148]=et):et=t[148];let it;t[149]!==o?.modal||t[150]!==k||t[151]!==q?(it=k&&q!==void 0?n.jsxRuntimeExports.jsx(ye.DetailsModal,{body:k,data:q,setData:bt,className:o?.modal}):null,t[149]=o?.modal,t[150]=k,t[151]=q,t[152]=it):it=t[152];let At;return t[153]!==tt||t[154]!==et||t[155]!==it?(At=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[tt,et,it]}),t[153]=tt,t[154]=et,t[155]=it,t[156]=At):At=t[156],At}function Me(e){return e.layer}function ke(e){return e.position==="after"}function Le(e){return{...e,line:0}}function Se(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(90),{data:d,graphTitle:F,sources:Y,graphDescription:f,height:p,width:x,footNote:A,padding:Qt,lineColor:te,barColor:Ht,sameAxes:Gt,backgroundColor:Ct,leftMargin:Mt,rightMargin:rt,topMargin:Xt,bottomMargin:kt,lineAxisTitle:Wt,barAxisTitle:N,tooltip:ft,relativeHeight:k,onSeriesMouseOver:ht,graphID:gt,graphDownload:Lt,dataDownload:St,barPadding:Nt,truncateBy:Ot,showLabels:s,onSeriesMouseClick:o,language:r,colorLegendTitle:H,minHeight:O,theme:at,ariaLabel:L,resetSelectionOnDoubleClick:Zt,detailsOnClick:yt,showValues:$,noOfTicks:Bt,lineSuffix:$t,barSuffix:ct,linePrefix:q,barPrefix:bt,curveType:qt,styles:u,classNames:a,animate:ut,precision:Ut,customLayers:vt,naLabel:Vt,showColorScale:c,showAxisLabels:g}=e,l=te===void 0?le.Colors.light.categoricalColors.colors[1]:te,j=Ht===void 0?le.Colors.light.categoricalColors.colors[0]:Ht,G=Gt===void 0?!1:Gt,X=Ct===void 0?!1:Ct,S=Mt===void 0?80:Mt,W=rt===void 0?80:rt,B=Xt===void 0?20:Xt,U=kt===void 0?25:kt,w=Wt===void 0?"Line chart":Wt,E=N===void 0?"Bar graph":N,V=Lt===void 0?!1:Lt,I=St===void 0?!1:St,z=Nt===void 0?.25:Nt,J=Ot===void 0?999:Ot,K=s===void 0?!0:s,Q=r===void 0?"en":r,Z=O===void 0?0:O,v=at===void 0?"light":at,_=Zt===void 0?!0:Zt,tt=$===void 0?!0:$,et=Bt===void 0?5:Bt,it=$t===void 0?"":$t,At=ct===void 0?"":ct,m=q===void 0?"":q,y=bt===void 0?"":bt,It=qt===void 0?"curve":qt,jt=ut===void 0?!1:ut,wt=Ut===void 0?2:Ut;let xt;t[0]!==vt?(xt=vt===void 0?[]:vt,t[0]=vt,t[1]=xt):xt=t[1];const zt=xt,Et=Vt===void 0?"NA":Vt,h=c===void 0?!0:c,b=g===void 0?!0:g,[Tt,re]=lt.useState(0),[Jt,_t]=lt.useState(0),nt=lt.useRef(null),mt=lt.useRef(null);let T,pt;t[2]===Symbol.for("react.memo_cache_sentinel")?(T=()=>{const Kt=new ResizeObserver(Dt=>{re(Dt[0].target.clientWidth||620),_t(Dt[0].target.clientHeight||480)});return nt.current&&Kt.observe(nt.current),()=>Kt.disconnect()},pt=[],t[2]=T,t[3]=pt):(T=t[2],pt=t[3]),lt.useEffect(T,pt);const Rt=a?.graphContainer,Pt=u?.graphContainer;let st;t[4]!==a?.description||t[5]!==a?.title||t[6]!==d||t[7]!==I||t[8]!==f||t[9]!==V||t[10]!==F||t[11]!==u?.description||t[12]!==u?.title||t[13]!==x?(st=F||f||V||I?n.jsxRuntimeExports.jsx(we.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:a?.title,description:a?.description},graphTitle:F,graphDescription:f,width:x,graphDownload:V?mt:void 0,dataDownload:I?d.map(li).filter(oi).length>0?d.map(si).filter(ni):d.filter(ii):null}):null,t[4]=a?.description,t[5]=a?.title,t[6]=d,t[7]=I,t[8]=f,t[9]=V,t[10]=F,t[11]=u?.description,t[12]=u?.title,t[13]=x,t[14]=st):st=t[14];let ot;t[15]!==E||t[16]!==j||t[17]!==a?.colorLegend||t[18]!==H||t[19]!==d.length||t[20]!==w||t[21]!==l||t[22]!==h||t[23]!==v?(ot=!h&&d.length>0?null:n.jsxRuntimeExports.jsx(Ee.ColorLegend,{colorDomain:[E,w],colors:[j||le.Colors[v].categoricalColors.colors[0],l||le.Colors[v].categoricalColors.colors[1]],colorLegendTitle:H,showNAColor:!1,className:a?.colorLegend}),t[15]=E,t[16]=j,t[17]=a?.colorLegend,t[18]=H,t[19]=d.length,t[20]=w,t[21]=l,t[22]=h,t[23]=v,t[24]=ot):ot=t[24];let R;t[25]!==d.length?(R=d.length===0&&n.jsxRuntimeExports.jsx(Re.EmptyState,{}),t[25]=d.length,t[26]=R):R=t[26];let C;t[27]!==jt||t[28]!==E||t[29]!==j||t[30]!==z||t[31]!==y||t[32]!==At||t[33]!==U||t[34]!==a||t[35]!==It||t[36]!==zt||t[37]!==d||t[38]!==yt||t[39]!==S||t[40]!==w||t[41]!==l||t[42]!==m||t[43]!==it||t[44]!==Et||t[45]!==et||t[46]!==o||t[47]!==ht||t[48]!==wt||t[49]!==_||t[50]!==W||t[51]!==G||t[52]!==b||t[53]!==K||t[54]!==tt||t[55]!==u||t[56]!==Jt||t[57]!==Tt||t[58]!==ft||t[59]!==B||t[60]!==J?(C=Tt&&Jt&&d.length>0?n.jsxRuntimeExports.jsx(Ce,{data:d,sameAxes:G,lineColor:l,barColor:j,width:Tt,height:Jt,truncateBy:J,leftMargin:S,rightMargin:W,topMargin:B,bottomMargin:U,axisTitles:[E,w],tooltip:ft,onSeriesMouseOver:ht,barPadding:z,showLabels:K,onSeriesMouseClick:o,resetSelectionOnDoubleClick:_,detailsOnClick:yt,noOfTicks:et,lineSuffix:it,barSuffix:At,linePrefix:m,barPrefix:y,curveType:It,showValues:tt,styles:u,classNames:a,animate:jt===!0?{duration:.5,once:!0,amount:.5}:jt||{duration:0,once:!0,amount:0},precision:wt,customLayers:zt,naLabel:Et,showAxisLabels:b}):null,t[27]=jt,t[28]=E,t[29]=j,t[30]=z,t[31]=y,t[32]=At,t[33]=U,t[34]=a,t[35]=It,t[36]=zt,t[37]=d,t[38]=yt,t[39]=S,t[40]=w,t[41]=l,t[42]=m,t[43]=it,t[44]=Et,t[45]=et,t[46]=o,t[47]=ht,t[48]=wt,t[49]=_,t[50]=W,t[51]=G,t[52]=b,t[53]=K,t[54]=tt,t[55]=u,t[56]=Jt,t[57]=Tt,t[58]=ft,t[59]=B,t[60]=J,t[61]=C):C=t[61];let M;t[62]!==R||t[63]!==C?(M=n.jsxRuntimeExports.jsxs(fe.GraphArea,{ref:nt,children:[R,C]}),t[62]=R,t[63]=C,t[64]=M):M=t[64];let P;t[65]!==a?.footnote||t[66]!==a?.source||t[67]!==A||t[68]!==Y||t[69]!==u?.footnote||t[70]!==u?.source||t[71]!==x?(P=Y||A?n.jsxRuntimeExports.jsx(je.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:a?.footnote,source:a?.source},sources:Y,footNote:A,width:x}):null,t[65]=a?.footnote,t[66]=a?.source,t[67]=A,t[68]=Y,t[69]=u?.footnote,t[70]=u?.source,t[71]=x,t[72]=P):P=t[72];let dt;return t[73]!==L||t[74]!==X||t[75]!==gt||t[76]!==p||t[77]!==Q||t[78]!==Z||t[79]!==Qt||t[80]!==k||t[81]!==Rt||t[82]!==Pt||t[83]!==st||t[84]!==ot||t[85]!==M||t[86]!==P||t[87]!==v||t[88]!==x?(dt=n.jsxRuntimeExports.jsxs(fe.GraphContainer,{className:Rt,style:Pt,id:gt,ref:mt,"aria-label":L,backgroundColor:X,theme:v,language:Q,minHeight:Z,width:x,height:p,relativeHeight:k,padding:Qt,children:[st,ot,M,P]}),t[73]=L,t[74]=X,t[75]=gt,t[76]=p,t[77]=Q,t[78]=Z,t[79]=Qt,t[80]=k,t[81]=Rt,t[82]=Pt,t[83]=st,t[84]=ot,t[85]=M,t[86]=P,t[87]=v,t[88]=x,t[89]=dt):dt=t[89],dt}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 li(e){return e.data}exports.ParetoChart=ei;
2
2
  //# sourceMappingURL=ParetoChart.cjs.map
@@ -4,7 +4,7 @@ import { i as xe } from "./index-Bwrro8-q.js";
4
4
  import { n as se } from "./numberFormattingFunction-14YCbkN2.js";
5
5
  import { T as ge } from "./Tooltip-BRnAz2Gv.js";
6
6
  import { c as me } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
- import { A as ce } from "./Axis-DoOqnt6g.js";
7
+ import { A as ce } from "./Axis-D56Gy0se.js";
8
8
  import { A as fe } from "./AxisTitle-VFq89Olw.js";
9
9
  import { X as ye } from "./XAxesLabels-rhK7lRjO.js";
10
10
  import { D as be } from "./DetailsModal-BMCTgVsk.js";
@@ -485,6 +485,8 @@ declare interface GraphSettingsDataType {
485
485
  mapColorLegendTitle?: string;
486
486
  choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
487
487
  trackColor?: string;
488
+ zoomAndCenterByHighlightedIds?: boolean;
489
+ hideAxisLine?: boolean;
488
490
  }
489
491
 
490
492
  declare type GraphType = GraphTypeForGriddedGraph;
@@ -504,6 +504,8 @@ declare interface GraphSettingsDataType {
504
504
  mapColorLegendTitle?: string;
505
505
  choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
506
506
  trackColor?: string;
507
+ zoomAndCenterByHighlightedIds?: boolean;
508
+ hideAxisLine?: boolean;
507
509
  }
508
510
 
509
511
  declare type GraphType = GraphTypeForGriddedGraph;
@@ -406,6 +406,8 @@ declare interface GraphSettingsDataType {
406
406
  mapColorLegendTitle?: string;
407
407
  choroplethScaleType?: Exclude<ScaleDataType, 'linear'>;
408
408
  trackColor?: string;
409
+ zoomAndCenterByHighlightedIds?: boolean;
410
+ hideAxisLine?: boolean;
409
411
  }
410
412
 
411
413
  declare type GraphType = GraphTypeForGriddedGraph;