@undp/data-viz 2.0.1 → 2.0.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 (69) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.js +2 -2
  3. package/dist/BeeSwarmChart.cjs +1 -1
  4. package/dist/BeeSwarmChart.cjs.map +1 -1
  5. package/dist/BeeSwarmChart.js +107 -106
  6. package/dist/BeeSwarmChart.js.map +1 -1
  7. package/dist/BulletChart.cjs +1 -1
  8. package/dist/BulletChart.js +2 -2
  9. package/dist/ButterflyChart.cjs +1 -1
  10. package/dist/ButterflyChart.js +1 -1
  11. package/dist/CirclePackingGraph.cjs +1 -1
  12. package/dist/CirclePackingGraph.js +1 -1
  13. package/dist/DumbbellChart.cjs +1 -1
  14. package/dist/DumbbellChart.js +2 -2
  15. package/dist/{GraphEl-D5MUfp45.cjs → GraphEl-D5RBCD7p.cjs} +2 -2
  16. package/dist/{GraphEl-D5MUfp45.cjs.map → GraphEl-D5RBCD7p.cjs.map} +1 -1
  17. package/dist/{GraphEl-BZne2JIx.js → GraphEl-VtiYqELy.js} +2 -2
  18. package/dist/{GraphEl-BZne2JIx.js.map → GraphEl-VtiYqELy.js.map} +1 -1
  19. package/dist/GriddedGraphs.cjs +1 -1
  20. package/dist/GriddedGraphs.js +1 -1
  21. package/dist/HeatMap.cjs +1 -1
  22. package/dist/HeatMap.js +2 -2
  23. package/dist/Histogram.cjs +1 -1
  24. package/dist/Histogram.js +1 -1
  25. package/dist/ImageDownloadButton.cjs +1 -1
  26. package/dist/ImageDownloadButton.js +1 -1
  27. package/dist/ParetoChart.cjs +1 -1
  28. package/dist/ParetoChart.js +1 -1
  29. package/dist/SingleGraphDashboard.cjs +1 -1
  30. package/dist/SingleGraphDashboard.js +1 -1
  31. package/dist/XAxesLabels-Bt5NZBmX.cjs +2 -0
  32. package/dist/XAxesLabels-Bt5NZBmX.cjs.map +1 -0
  33. package/dist/XAxesLabels-Dy8E1SEo.js +63 -0
  34. package/dist/XAxesLabels-Dy8E1SEo.js.map +1 -0
  35. package/dist/YAxesLabels-DesLesUP.cjs +2 -0
  36. package/dist/YAxesLabels-DesLesUP.cjs.map +1 -0
  37. package/dist/YAxesLabels-a57ZRv-0.js +61 -0
  38. package/dist/YAxesLabels-a57ZRv-0.js.map +1 -0
  39. package/dist/imageDownload-BU4qnxJP.js +991 -0
  40. package/dist/imageDownload-BU4qnxJP.js.map +1 -0
  41. package/dist/imageDownload-NYXbvKob.cjs +15 -0
  42. package/dist/imageDownload-NYXbvKob.cjs.map +1 -0
  43. package/dist/{index-Ceppbd8C.js → index-B2LQV7Tk.js} +109 -116
  44. package/dist/index-B2LQV7Tk.js.map +1 -0
  45. package/dist/index-xRHRLDIp.cjs +2 -0
  46. package/dist/index-xRHRLDIp.cjs.map +1 -0
  47. package/dist/index.cjs +1 -1
  48. package/dist/index.d.ts +1 -1
  49. package/dist/index.js +2 -2
  50. package/dist/utils.cjs +1 -1
  51. package/dist/utils.d.ts +1 -1
  52. package/dist/utils.js +1 -1
  53. package/package.json +2 -2
  54. package/readme.md +1 -1
  55. package/dist/XAxesLabels-D5X8jngD.cjs +0 -2
  56. package/dist/XAxesLabels-D5X8jngD.cjs.map +0 -1
  57. package/dist/XAxesLabels-DNO0KmjL.js +0 -73
  58. package/dist/XAxesLabels-DNO0KmjL.js.map +0 -1
  59. package/dist/YAxesLabels-DcS85Beo.cjs +0 -2
  60. package/dist/YAxesLabels-DcS85Beo.cjs.map +0 -1
  61. package/dist/YAxesLabels-Dnnng49-.js +0 -70
  62. package/dist/YAxesLabels-Dnnng49-.js.map +0 -1
  63. package/dist/imageDownload-BX6SILNZ.js +0 -497
  64. package/dist/imageDownload-BX6SILNZ.js.map +0 -1
  65. package/dist/imageDownload-CgDcm1Sj.cjs +0 -3
  66. package/dist/imageDownload-CgDcm1Sj.cjs.map +0 -1
  67. package/dist/index-C6LorfZ-.cjs +0 -2
  68. package/dist/index-C6LorfZ-.cjs.map +0 -1
  69. package/dist/index-Ceppbd8C.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-CTPQjnHt.cjs"),C=require("react"),oe=require("./getSliderMarks-BmADcPQt.cjs"),re=require("./parse-hMnG_lRV.cjs"),ae=require("./index-DQA8q5sC.cjs"),fe=require("./Modal-JW_IExO3.cjs"),le=require("./numberFormattingFunction-02t-wJta.cjs"),ge=require("./Tooltip-4dJo4_AF.cjs"),ye=require("./string2HTML-CPGr_I5E.cjs"),ce=require("./XTicksAndGridLines-B6CELS7q.cjs"),ue=require("./Axis-DxRV2yMi.cjs"),je=require("./YAxesLabels-DcS85Beo.cjs"),xe=require("./ReferenceLine-BH0qdf4R.cjs"),ve=require("./band-VYfcZeJ2.cjs"),me=require("./linear-BwPAspcq.cjs"),be=require("./use-in-view-QcfiW0w3.cjs"),Lt=require("./proxy-BxvUI_9l.cjs"),se=require("./index-DG2bgAva.cjs"),we=require("./GraphFooter.cjs"),Re=require("./GraphHeader.cjs"),Ee=require("./ColorLegend.cjs"),de=require("./Colors.cjs"),Ae=require("./EmptyState-sAEZ_5rU.cjs"),pe=require("./index-DRXx7m-C.cjs"),ne=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Be=require("./ensureCompleteData-I6nYmT8E.cjs"),Le=require("./uniqBy-O05lp2S5.cjs"),he=require("./GraphContainer-d8A46BK2.cjs"),Ce=require("./sort-O96oMZLb.cjs"),Me=require("./init-DU0ybBc_.cjs");function ke(s){const t=i.compilerRuntimeExports.c(139),{data:c,width:A,height:j,barColors:a,centerGap:v,refValues:x,maxValue:X,minValue:nt,showValues:Y,axisTitles:U,rightMargin:Dt,leftMargin:It,topMargin:I,bottomMargin:Ft,tooltip:Ct,onSeriesMouseOver:W,barPadding:Jt,truncateBy:ot,onSeriesMouseClick:F,showTicks:rt,suffix:z,prefix:J,resetSelectionOnDoubleClick:Gt,detailsOnClick:w,styles:o,classNames:n,noOfTicks:M,animate:r,precision:K,customLayers:k,minValueLeftBar:q,minValueRightBar:V,naLabel:Mt}=s,Kt=C.useRef(null);let kt;t[0]!==r.amount||t[1]!==r.once?(kt={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=kt):kt=t[2];const $=be.useInView(Kt,kt),[qt,Q]=C.useState(void 0),[R,at]=C.useState(void 0),[Pt,u]=C.useState(void 0),[m,Z]=C.useState(void 0);let Vt;t[3]!==Ft||t[4]!==It||t[5]!==Dt||t[6]!==I?(Vt={top:I,bottom:Ft,left:It,right:Dt},t[3]=Ft,t[4]=It,t[5]=Dt,t[6]=I,t[7]=Vt):Vt=t[7];const l=Vt,B=A-l.left-l.right,L=j-l.top-l.bottom;let _,N,tt,G,lt,ct,ut,xt,et,T,mt,dt,pt,ht;if(t[8]!==r||t[9]!==a[0]||t[10]!==a[1]||t[11]!==Jt||t[12]!==v||t[13]!==n?.graphObjectValues||t[14]!==n?.xAxis?.gridLines||t[15]!==n?.xAxis?.labels||t[16]!==n?.yAxis?.axis||t[17]!==n?.yAxis?.labels||t[18]!==k||t[19]!==c||t[20]!==w||t[21]!==L||t[22]!==B||t[23]!==j||t[24]!==$||t[25]!==l.bottom||t[26]!==l.left||t[27]!==l.top||t[28]!==X||t[29]!==nt||t[30]!==q||t[31]!==V||t[32]!==R||t[33]!==Mt||t[34]!==M||t[35]!==F||t[36]!==W||t[37]!==K||t[38]!==J||t[39]!==x||t[40]!==Gt||t[41]!==rt||t[42]!==Y||t[43]!==o?.graphObjectValues||t[44]!==o?.xAxis?.gridLines||t[45]!==o?.xAxis?.labels||t[46]!==o?.yAxis?.axis||t[47]!==o?.yAxis?.labels||t[48]!==z||t[49]!==I||t[50]!==ot||t[51]!==A){const Xt=c.map(Fe),g=ve.band().domain(Xt.map(Ie)).range([L,0]).paddingInner(Jt),h=me.linear().domain([nt,X]).range([0,(B-v)/2]).nice(),f=h.ticks(M),d=me.linear().domain([nt,X]).range([(B-v)/2,0]).nice(),Yt=d.ticks(M);tt=Lt.motion.svg,pt=`${A}px`,ht=`${j}px`,G=`0 0 ${A} ${j}`,lt="ltr",ct=Kt,et=`translate(${l.left},${l.top})`,t[66]!==k?(T=k.filter(De).map(Se),t[66]=k,t[67]=T):T=t[67];const Tt=n?.yAxis?.axis;let Ot;t[68]!==Tt?(Ot={axis:Tt},t[68]=Tt,t[69]=Ot):Ot=t[69];const Et=o?.yAxis?.axis;let st;t[70]!==Et?(st={axis:Et},t[70]=Et,t[71]=st):st=t[71],mt=i.jsxRuntimeExports.jsxs("g",{transform:"translate(0,0)",children:[rt?i.jsxRuntimeExports.jsx(ce.XTicksAndGridLines,{values:Yt.filter(Oe),x:Yt.filter(Te).map(e=>d(e)),y1:0-I,y2:L+l.bottom,styles:{gridLines:o?.xAxis?.gridLines,labels:o?.xAxis?.labels},classNames:{gridLines:n?.xAxis?.gridLines,labels:n?.xAxis?.labels},suffix:z,prefix:J,labelType:"secondary",showGridLines:!0,leftLabel:!0,precision:K}):null,i.jsxRuntimeExports.jsxs(se.AnimatePresence,{children:[Xt.map((e,y)=>i.jsxRuntimeExports.jsxs(Lt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:b=>{Q(e),Z(b.clientY),u(b.clientX),W?.(e)},onClick:()=>{(F||w)&&(ae.isEqual(R,e)&&Gt?(at(void 0),F?.(void 0)):(at(e),F?.(e)))},onMouseMove:b=>{Q(e),Z(b.clientY),u(b.clientX)},onMouseLeave:()=>{Q(void 0),u(void 0),Z(void 0),W?.(void 0)},children:[e.leftBar?i.jsxRuntimeExports.jsx(Lt.motion.rect,{y:g(`${y}`),style:{fill:a[0]},height:g.bandwidth(),variants:{initial:{x:d(0),width:0},whileInView:{x:e.leftBar<0?d(0):d(e.leftBar),width:e.leftBar<0?d(e.leftBar)-d(0):d(0)-d(e.leftBar),transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{x:d(0),width:0,transition:{duration:r.duration}}}):null,Y?i.jsxRuntimeExports.jsx(Lt.motion.text,{y:g(`${y}`)+g.bandwidth()/2,style:{textAnchor:e.rightBar&&e.rightBar>0?"end":"start",...o?.graphObjectValues||{}},dx:e.rightBar&&e.rightBar>0?-5:5,dy:"0.33em",className:i.mo("graph-value text-sm",n?.graphObjectValues),exit:{opacity:0,transition:{duration:r.duration}},variants:{initial:{x:d(0),opacity:0,fill:a[0]},whileInView:{x:e.leftBar?d(e.leftBar):d(q<0?0:q),opacity:1,fill:a[0],transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",children:le.numberFormattingFunction(e.rightBar,Mt,K,J,z)}):null]},e.label)),i.jsxRuntimeExports.jsx(ue.Axis,{y1:-2.5,y2:L+l.bottom,x1:d(q<0?0:q),x2:d(q<0?0:q),classNames:Ot,styles:st}),x?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:x.map((e,y)=>i.jsxRuntimeExports.jsx(xe.RefLineX,{text:e.text,color:e.color,x:d(e.value),y1:0-l.top,y2:L+l.bottom,textSide:"left",classNames:e.classNames,styles:e.styles,animate:r,isInView:$},y))}):null]})]});const Ut=n?.yAxis?.axis;let At;t[72]!==Ut?(At={axis:Ut},t[72]=Ut,t[73]=At):At=t[73];const St=o?.yAxis?.axis;let Bt;t[74]!==St?(Bt={axis:St},t[74]=St,t[75]=Bt):Bt=t[75],dt=i.jsxRuntimeExports.jsxs("g",{transform:`translate(${(B+v)/2},0)`,children:[rt?i.jsxRuntimeExports.jsx(ce.XTicksAndGridLines,{values:f.filter(Ne),x:f.filter($e).map(e=>h(e)),y1:0-I,y2:L+l.bottom,styles:{gridLines:o?.xAxis?.gridLines,labels:o?.xAxis?.labels},classNames:{gridLines:n?.xAxis?.gridLines,labels:n?.xAxis?.labels},suffix:z,prefix:J,labelType:"secondary",showGridLines:!0,precision:K}):null,i.jsxRuntimeExports.jsxs(se.AnimatePresence,{children:[Xt.map((e,y)=>i.jsxRuntimeExports.jsxs(Lt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:b=>{Q(e),Z(b.clientY),u(b.clientX),W?.(e)},onClick:()=>{(F||w)&&(ae.isEqual(R,e)&&Gt?(at(void 0),F?.(void 0)):(at(e),F?.(e)))},onMouseMove:b=>{Q(e),Z(b.clientY),u(b.clientX)},onMouseLeave:()=>{Q(void 0),u(void 0),Z(void 0),W?.(void 0)},children:[e.rightBar?i.jsxRuntimeExports.jsx(Lt.motion.rect,{y:g(`${y}`),style:{fill:a[1]},height:g.bandwidth(),exit:{x:h(0),width:0,transition:{duration:r.duration}},variants:{initial:{x:h(0),width:0},whileInView:{x:e.rightBar>=0?h(0):h(e.rightBar),width:e.rightBar>=0?h(e.rightBar)-h(0):h(0)-h(e.rightBar),transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial"}):null,Y?i.jsxRuntimeExports.jsx(Lt.motion.text,{y:g(`${y}`)+g.bandwidth()/2,style:{textAnchor:e.rightBar&&e.rightBar<0?"end":"start",...o?.graphObjectValues||{}},className:i.mo("graph-value text-sm",n?.graphObjectValues),dx:e.rightBar&&e.rightBar<0?-5:5,dy:"0.33em",exit:{opacity:0,transition:{duration:r.duration}},variants:{initial:{x:h(0),opacity:0,fill:a[1]},whileInView:{x:e.rightBar?h(e.rightBar):h(V<0?0:V),opacity:1,fill:a[1],transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",children:le.numberFormattingFunction(e.rightBar,Mt,K,J,z)}):null]},y)),i.jsxRuntimeExports.jsx(ue.Axis,{y1:-2.5,y2:L+l.bottom,x1:h(V<0?0:V),x2:h(V<0?0:V),classNames:At,styles:Bt}),x?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:x.map((e,y)=>i.jsxRuntimeExports.jsx(xe.RefLineX,{text:e.text,color:e.color,x:h(e.value),y1:0-l.top,y2:L+l.bottom,textSide:"right",classNames:e.classNames,styles:e.styles,animate:r,isInView:$},y))}):null]})]}),N=se.AnimatePresence,_=Lt.motion.g,ut=`translate(${B/2},0)`,xt=Xt.map((e,y)=>i.jsxRuntimeExports.jsx(je.YAxesLabels,{value:`${e.label}`.length<ot?`${e.label}`:`${`${e.label}`.substring(0,ot)}...`,y:g(`${e.id}`),x:0-v/2,width:v,height:g.bandwidth(),alignment:"center",style:o?.yAxis?.labels,className:n?.yAxis?.labels,animate:r,isInView:$},y)),t[8]=r,t[9]=a[0],t[10]=a[1],t[11]=Jt,t[12]=v,t[13]=n?.graphObjectValues,t[14]=n?.xAxis?.gridLines,t[15]=n?.xAxis?.labels,t[16]=n?.yAxis?.axis,t[17]=n?.yAxis?.labels,t[18]=k,t[19]=c,t[20]=w,t[21]=L,t[22]=B,t[23]=j,t[24]=$,t[25]=l.bottom,t[26]=l.left,t[27]=l.top,t[28]=X,t[29]=nt,t[30]=q,t[31]=V,t[32]=R,t[33]=Mt,t[34]=M,t[35]=F,t[36]=W,t[37]=K,t[38]=J,t[39]=x,t[40]=Gt,t[41]=rt,t[42]=Y,t[43]=o?.graphObjectValues,t[44]=o?.xAxis?.gridLines,t[45]=o?.xAxis?.labels,t[46]=o?.yAxis?.axis,t[47]=o?.yAxis?.labels,t[48]=z,t[49]=I,t[50]=ot,t[51]=A,t[52]=_,t[53]=N,t[54]=tt,t[55]=G,t[56]=lt,t[57]=ct,t[58]=ut,t[59]=xt,t[60]=et,t[61]=T,t[62]=mt,t[63]=dt,t[64]=pt,t[65]=ht}else _=t[52],N=t[53],tt=t[54],G=t[55],lt=t[56],ct=t[57],ut=t[58],xt=t[59],et=t[60],T=t[61],mt=t[62],dt=t[63],pt=t[64],ht=t[65];let O;t[76]!==_||t[77]!==ut||t[78]!==xt?(O=i.jsxRuntimeExports.jsx(_,{transform:ut,children:xt}),t[76]=_,t[77]=ut,t[78]=xt,t[79]=O):O=t[79];let ft;t[80]!==N||t[81]!==O?(ft=i.jsxRuntimeExports.jsx(N,{children:O}),t[80]=N,t[81]=O,t[82]=ft):ft=t[82];const Qt=`translate(0,${L})`,Zt=o?.yAxis?.title;let gt;t[83]!==a[0]||t[84]!==Zt?(gt={fill:a[0],textAnchor:"end",...Zt},t[83]=a[0],t[84]=Zt,t[85]=gt):gt=t[85];const _t=n?.yAxis?.title;let S;t[86]!==_t?(S=i.mo("text-base",_t),t[86]=_t,t[87]=S):S=t[87];const yt=B/2-v/2;let P;t[88]!==U[0]||t[89]!==gt||t[90]!==S||t[91]!==yt?(P=i.jsxRuntimeExports.jsx("text",{style:gt,className:S,x:yt,y:0,dx:-5,dy:20,children:U[0]}),t[88]=U[0],t[89]=gt,t[90]=S,t[91]=yt,t[92]=P):P=t[92];const $t=o?.yAxis?.title;let H;t[93]!==a[1]||t[94]!==$t?(H={fill:a[1],textAnchor:"start",...$t},t[93]=a[1],t[94]=$t,t[95]=H):H=t[95];const te=n?.yAxis?.title;let jt;t[96]!==te?(jt=i.mo("text-base",te),t[96]=te,t[97]=jt):jt=t[97];const Ht=B/2+v/2;let vt;t[98]!==U[1]||t[99]!==H||t[100]!==jt||t[101]!==Ht?(vt=i.jsxRuntimeExports.jsx("text",{style:H,className:jt,x:Ht,y:0,dx:5,dy:20,children:U[1]}),t[98]=U[1],t[99]=H,t[100]=jt,t[101]=Ht,t[102]=vt):vt=t[102];let D;t[103]!==Qt||t[104]!==P||t[105]!==vt?(D=i.jsxRuntimeExports.jsxs("g",{transform:Qt,children:[P,vt]}),t[103]=Qt,t[104]=P,t[105]=vt,t[106]=D):D=t[106];let bt;t[107]!==k?(bt=k.filter(Ve).map(qe),t[107]=k,t[108]=bt):bt=t[108];let p;t[109]!==ft||t[110]!==D||t[111]!==bt||t[112]!==et||t[113]!==T||t[114]!==mt||t[115]!==dt?(p=i.jsxRuntimeExports.jsxs("g",{transform:et,children:[T,mt,dt,ft,D,bt]}),t[109]=ft,t[110]=D,t[111]=bt,t[112]=et,t[113]=T,t[114]=mt,t[115]=dt,t[116]=p):p=t[116];let wt;t[117]!==tt||t[118]!==G||t[119]!==lt||t[120]!==ct||t[121]!==p||t[122]!==pt||t[123]!==ht?(wt=i.jsxRuntimeExports.jsx(tt,{width:pt,height:ht,viewBox:G,direction:lt,ref:ct,children:p}),t[117]=tt,t[118]=G,t[119]=lt,t[120]=ct,t[121]=p,t[122]=pt,t[123]=ht,t[124]=wt):wt=t[124];let it;t[125]!==n?.tooltip||t[126]!==Pt||t[127]!==m||t[128]!==qt||t[129]!==o?.tooltip||t[130]!==Ct?(it=qt&&Ct&&Pt&&m?i.jsxRuntimeExports.jsx(ge.Tooltip,{data:qt,body:Ct,xPos:Pt,yPos:m,backgroundStyle:o?.tooltip,className:n?.tooltip}):null,t[125]=n?.tooltip,t[126]=Pt,t[127]=m,t[128]=qt,t[129]=o?.tooltip,t[130]=Ct,t[131]=it):it=t[131];let Rt;t[132]!==w||t[133]!==R?(Rt=w&&R!==void 0?i.jsxRuntimeExports.jsx(fe.le,{open:R!==void 0,onClose:()=>{at(void 0)},children:i.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof w=="string"?{__html:ye.string2HTML(w,R)}:void 0,children:typeof w=="function"?w(R):null})}):null,t[132]=w,t[133]=R,t[134]=Rt):Rt=t[134];let Nt;return t[135]!==wt||t[136]!==it||t[137]!==Rt?(Nt=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[wt,it,Rt]}),t[135]=wt,t[136]=it,t[137]=Rt,t[138]=Nt):Nt=t[138],Nt}function qe(s){return s.layer}function Ve(s){return s.position==="after"}function $e(s){return s!==0}function Ne(s){return s!==0}function Te(s){return s!==0}function Oe(s){return s!==0}function Se(s){return s.layer}function De(s){return s.position==="before"}function Ie(s){return`${s.id}`}function Fe(s,t){return{...s,id:`${t}`}}function zt(s,t,c,A){const j=s.map(x=>x[t]).filter(x=>!ne.checkIfNullOrUndefined(x)),a=ne.checkIfNullOrUndefined(c)?Math.min(...j)>=0?0:Math.min(...j):c,v=ne.checkIfNullOrUndefined(A)?Math.max(...j)<0?0:Math.max(...j):A;return{min:a,max:v}}function Ge(s){const t=i.compilerRuntimeExports.c(45),{data:c,graphTitle:A,sources:j,graphDescription:a,height:v,width:x,footNote:X,padding:nt,barColors:Y,backgroundColor:U,leftMargin:Dt,rightMargin:It,topMargin:I,bottomMargin:Ft,rightBarTitle:Ct,leftBarTitle:W,tooltip:Jt,relativeHeight:ot,onSeriesMouseOver:F,graphID:rt,barPadding:z,truncateBy:J,onSeriesMouseClick:Gt,centerGap:w,showValues:o,maxValue:n,minValue:M,refValues:r,suffix:K,prefix:k,showTicks:q,showColorScale:V,graphDownload:Mt,dataDownload:Kt,language:kt,colorLegendTitle:$,minHeight:qt,theme:Q,ariaLabel:R,resetSelectionOnDoubleClick:at,detailsOnClick:Pt,styles:u,classNames:m,noOfTicks:Z,animate:Vt,precision:l,customLayers:B,timeline:L,naLabel:_}=s;let N;t[0]!==Y?(N=Y===void 0?[de.Colors.light.categoricalColors.colors[0],de.Colors.light.categoricalColors.colors[1]]:Y,t[0]=Y,t[1]=N):N=t[1];const tt=N,G=U===void 0?!1:U,lt=Dt===void 0?20:Dt,ct=It===void 0?20:It,ut=I===void 0?25:I,xt=Ft===void 0?30:Ft,et=Ct===void 0?"Right bar graph":Ct,T=W===void 0?"Left bar graph":W,mt=z===void 0?.25:z,dt=J===void 0?999:J,pt=w===void 0?100:w,ht=o===void 0?!0:o;let O;t[2]!==r?(O=r===void 0?[]:r,t[2]=r,t[3]=O):O=t[3];const ft=O,Qt=K===void 0?"":K,Zt=k===void 0?"":k,gt=q===void 0?!0:q,_t=V===void 0?!1:V,S=Mt===void 0?!1:Mt,yt=Kt===void 0?!1:Kt,P=kt===void 0?"en":kt,$t=qt===void 0?0:qt,H=Q===void 0?"light":Q,te=at===void 0?!0:at,jt=Z===void 0?5:Z,Ht=Vt===void 0?!1:Vt,vt=l===void 0?2:l;let D;t[4]!==B?(D=B===void 0?[]:B,t[4]=B,t[5]=D):D=t[5];const bt=D,p=L===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:L,wt=_===void 0?"NA":_,[it,Rt]=C.useState(0),[Nt,Xt]=C.useState(0),[g,h]=C.useState(p.autoplay),f=Ce.sort(Le.uniqBy(c,"date",!0).map(E=>re.parse(`${E}`,p.dateFormat||"yyyy",new Date).getTime()),We),[d,Yt]=C.useState(p.autoplay?0:f.length-1),Tt=C.useRef(null),Ot=C.useRef(null);let Et,st;t[6]===Symbol.for("react.memo_cache_sentinel")?(Et=()=>{const E=new ResizeObserver(ee=>{Rt(ee[0].target.clientWidth||620),Xt(ee[0].target.clientHeight||480)});return Tt.current&&E.observe(Tt.current),()=>E.disconnect()},st=[],t[6]=Et,t[7]=st):(Et=t[6],st=t[7]),C.useEffect(Et,st),C.useEffect(()=>{const E=setInterval(()=>{Yt(ee=>ee<f.length-1?ee+1:0)},(p.speed||2)*1e3);return g||clearInterval(E),()=>clearInterval(E)},[f,g,p.speed]);const Ut=oe.getSliderMarks(f,d,p.showOnlyActiveDate,p.dateFormat||"yyyy"),At=he.GraphContainer,St=m?.graphContainer,Bt=u?.graphContainer;let e;t[8]!==m?.description||t[9]!==m?.title||t[10]!==c||t[11]!==yt||t[12]!==a||t[13]!==S||t[14]!==A||t[15]!==u?.description||t[16]!==u?.title||t[17]!==x?(e=A||a||S||yt?i.jsxRuntimeExports.jsx(Re.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:m?.title,description:m?.description},graphTitle:A,graphDescription:a,width:x,graphDownload:S?Ot:void 0,dataDownload:yt?c.map(Ue).filter(Ye).length>0?c.map(Xe).filter(He):c.filter(Pe):null}):null,t[8]=m?.description,t[9]=m?.title,t[10]=c,t[11]=yt,t[12]=a,t[13]=S,t[14]=A,t[15]=u?.description,t[16]=u?.title,t[17]=x,t[18]=e):e=t[18];const y=p.enabled&&f.length>0&&Ut?i.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[i.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{h(!g)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":g?"Click to pause animation":"Click to play animation",children:g?i.jsxRuntimeExports.jsx(pe.Pause,{}):i.jsxRuntimeExports.jsx(pe.Play,{})}),i.jsxRuntimeExports.jsx(oe.Nr,{min:f[0],max:f[f.length-1],marks:Ut,step:null,defaultValue:f[f.length-1],value:f[d],onChangeComplete:E=>{Yt(f.indexOf(E))},onChange:E=>{Yt(f.indexOf(E))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,b=c.length===0?i.jsxRuntimeExports.jsx(Ae.EmptyState,{}):i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[_t?i.jsxRuntimeExports.jsx(Ee.ColorLegend,{colorLegendTitle:$,colorDomain:[T,et],colors:tt,showNAColor:!1,className:m?.colorLegend}):null,i.jsxRuntimeExports.jsx(he.GraphArea,{ref:Tt,children:it&&Nt?i.jsxRuntimeExports.jsx(ke,{data:Be.ensureCompleteDataForButterFlyChart(c,p.dateFormat||"yyyy").filter(E=>p.enabled?E.date===re.format(new Date(f[d]),p.dateFormat||"yyyy"):E),barColors:tt,width:it,centerGap:pt,height:Nt,truncateBy:dt,leftMargin:lt,rightMargin:ct,topMargin:ut,bottomMargin:xt,axisTitles:[T,et],tooltip:Jt,onSeriesMouseOver:F,barPadding:mt,refValues:ft,maxValue:Math.max(zt(c,"leftBar",M,n).max,zt(c,"rightBar",M,n).max),minValue:Math.min(zt(c,"leftBar",M,n).min,zt(c,"rightBar",M,n).min),minValueLeftBar:zt(c,"leftBar",M,n).min,minValueRightBar:zt(c,"rightBar",M,n).min,showValues:ht,onSeriesMouseClick:Gt,showTicks:gt,suffix:Qt,prefix:Zt,resetSelectionOnDoubleClick:te,detailsOnClick:Pt,styles:u,classNames:m,noOfTicks:jt,animate:Ht===!0?{duration:.5,once:!0,amount:.5}:Ht||{duration:0,once:!0,amount:0},precision:vt,customLayers:bt,naLabel:wt}):null})]});let Wt;t[19]!==m?.footnote||t[20]!==m?.source||t[21]!==X||t[22]!==j||t[23]!==u?.footnote||t[24]!==u?.source||t[25]!==x?(Wt=j||X?i.jsxRuntimeExports.jsx(we.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:m?.footnote,source:m?.source},sources:j,footNote:X,width:x}):null,t[19]=m?.footnote,t[20]=m?.source,t[21]=X,t[22]=j,t[23]=u?.footnote,t[24]=u?.source,t[25]=x,t[26]=Wt):Wt=t[26];let ie;return t[27]!==At||t[28]!==R||t[29]!==G||t[30]!==rt||t[31]!==v||t[32]!==P||t[33]!==$t||t[34]!==nt||t[35]!==ot||t[36]!==St||t[37]!==Bt||t[38]!==e||t[39]!==y||t[40]!==b||t[41]!==Wt||t[42]!==H||t[43]!==x?(ie=i.jsxRuntimeExports.jsxs(At,{className:St,style:Bt,id:rt,ref:Ot,"aria-label":R,backgroundColor:G,theme:H,language:P,minHeight:$t,width:x,height:v,relativeHeight:ot,padding:nt,children:[e,y,b,Wt]}),t[27]=At,t[28]=R,t[29]=G,t[30]=rt,t[31]=v,t[32]=P,t[33]=$t,t[34]=nt,t[35]=ot,t[36]=St,t[37]=Bt,t[38]=e,t[39]=y,t[40]=b,t[41]=Wt,t[42]=H,t[43]=x,t[44]=ie):ie=t[44],ie}function Pe(s){return s!==void 0}function He(s){return s!==void 0}function Xe(s){return s.data}function Ye(s){return s!==void 0}function Ue(s){return s.data}function We(s,t){return Me.ascending(s,t)}exports.ButterflyChart=Ge;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-CTPQjnHt.cjs"),C=require("react"),oe=require("./getSliderMarks-BmADcPQt.cjs"),re=require("./parse-hMnG_lRV.cjs"),ae=require("./index-DQA8q5sC.cjs"),fe=require("./Modal-JW_IExO3.cjs"),le=require("./numberFormattingFunction-02t-wJta.cjs"),ge=require("./Tooltip-4dJo4_AF.cjs"),ye=require("./string2HTML-CPGr_I5E.cjs"),ce=require("./XTicksAndGridLines-B6CELS7q.cjs"),ue=require("./Axis-DxRV2yMi.cjs"),je=require("./YAxesLabels-DesLesUP.cjs"),xe=require("./ReferenceLine-BH0qdf4R.cjs"),ve=require("./band-VYfcZeJ2.cjs"),me=require("./linear-BwPAspcq.cjs"),be=require("./use-in-view-QcfiW0w3.cjs"),Lt=require("./proxy-BxvUI_9l.cjs"),se=require("./index-DG2bgAva.cjs"),we=require("./GraphFooter.cjs"),Re=require("./GraphHeader.cjs"),Ee=require("./ColorLegend.cjs"),de=require("./Colors.cjs"),Ae=require("./EmptyState-sAEZ_5rU.cjs"),pe=require("./index-DRXx7m-C.cjs"),ne=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Be=require("./ensureCompleteData-I6nYmT8E.cjs"),Le=require("./uniqBy-O05lp2S5.cjs"),he=require("./GraphContainer-d8A46BK2.cjs"),Ce=require("./sort-O96oMZLb.cjs"),Me=require("./init-DU0ybBc_.cjs");function ke(s){const t=i.compilerRuntimeExports.c(139),{data:c,width:A,height:j,barColors:a,centerGap:v,refValues:x,maxValue:X,minValue:nt,showValues:Y,axisTitles:U,rightMargin:Dt,leftMargin:It,topMargin:I,bottomMargin:Ft,tooltip:Ct,onSeriesMouseOver:W,barPadding:Jt,truncateBy:ot,onSeriesMouseClick:F,showTicks:rt,suffix:z,prefix:J,resetSelectionOnDoubleClick:Gt,detailsOnClick:w,styles:o,classNames:n,noOfTicks:M,animate:r,precision:K,customLayers:k,minValueLeftBar:q,minValueRightBar:V,naLabel:Mt}=s,Kt=C.useRef(null);let kt;t[0]!==r.amount||t[1]!==r.once?(kt={once:r.once,amount:r.amount},t[0]=r.amount,t[1]=r.once,t[2]=kt):kt=t[2];const $=be.useInView(Kt,kt),[qt,Q]=C.useState(void 0),[R,at]=C.useState(void 0),[Pt,u]=C.useState(void 0),[m,Z]=C.useState(void 0);let Vt;t[3]!==Ft||t[4]!==It||t[5]!==Dt||t[6]!==I?(Vt={top:I,bottom:Ft,left:It,right:Dt},t[3]=Ft,t[4]=It,t[5]=Dt,t[6]=I,t[7]=Vt):Vt=t[7];const l=Vt,B=A-l.left-l.right,L=j-l.top-l.bottom;let _,N,tt,G,lt,ct,ut,xt,et,T,mt,dt,pt,ht;if(t[8]!==r||t[9]!==a[0]||t[10]!==a[1]||t[11]!==Jt||t[12]!==v||t[13]!==n?.graphObjectValues||t[14]!==n?.xAxis?.gridLines||t[15]!==n?.xAxis?.labels||t[16]!==n?.yAxis?.axis||t[17]!==n?.yAxis?.labels||t[18]!==k||t[19]!==c||t[20]!==w||t[21]!==L||t[22]!==B||t[23]!==j||t[24]!==$||t[25]!==l.bottom||t[26]!==l.left||t[27]!==l.top||t[28]!==X||t[29]!==nt||t[30]!==q||t[31]!==V||t[32]!==R||t[33]!==Mt||t[34]!==M||t[35]!==F||t[36]!==W||t[37]!==K||t[38]!==J||t[39]!==x||t[40]!==Gt||t[41]!==rt||t[42]!==Y||t[43]!==o?.graphObjectValues||t[44]!==o?.xAxis?.gridLines||t[45]!==o?.xAxis?.labels||t[46]!==o?.yAxis?.axis||t[47]!==o?.yAxis?.labels||t[48]!==z||t[49]!==I||t[50]!==ot||t[51]!==A){const Xt=c.map(Fe),g=ve.band().domain(Xt.map(Ie)).range([L,0]).paddingInner(Jt),h=me.linear().domain([nt,X]).range([0,(B-v)/2]).nice(),f=h.ticks(M),d=me.linear().domain([nt,X]).range([(B-v)/2,0]).nice(),Yt=d.ticks(M);tt=Lt.motion.svg,pt=`${A}px`,ht=`${j}px`,G=`0 0 ${A} ${j}`,lt="ltr",ct=Kt,et=`translate(${l.left},${l.top})`,t[66]!==k?(T=k.filter(De).map(Se),t[66]=k,t[67]=T):T=t[67];const Tt=n?.yAxis?.axis;let Ot;t[68]!==Tt?(Ot={axis:Tt},t[68]=Tt,t[69]=Ot):Ot=t[69];const Et=o?.yAxis?.axis;let st;t[70]!==Et?(st={axis:Et},t[70]=Et,t[71]=st):st=t[71],mt=i.jsxRuntimeExports.jsxs("g",{transform:"translate(0,0)",children:[rt?i.jsxRuntimeExports.jsx(ce.XTicksAndGridLines,{values:Yt.filter(Oe),x:Yt.filter(Te).map(e=>d(e)),y1:0-I,y2:L+l.bottom,styles:{gridLines:o?.xAxis?.gridLines,labels:o?.xAxis?.labels},classNames:{gridLines:n?.xAxis?.gridLines,labels:n?.xAxis?.labels},suffix:z,prefix:J,labelType:"secondary",showGridLines:!0,leftLabel:!0,precision:K}):null,i.jsxRuntimeExports.jsxs(se.AnimatePresence,{children:[Xt.map((e,y)=>i.jsxRuntimeExports.jsxs(Lt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:b=>{Q(e),Z(b.clientY),u(b.clientX),W?.(e)},onClick:()=>{(F||w)&&(ae.isEqual(R,e)&&Gt?(at(void 0),F?.(void 0)):(at(e),F?.(e)))},onMouseMove:b=>{Q(e),Z(b.clientY),u(b.clientX)},onMouseLeave:()=>{Q(void 0),u(void 0),Z(void 0),W?.(void 0)},children:[e.leftBar?i.jsxRuntimeExports.jsx(Lt.motion.rect,{y:g(`${y}`),style:{fill:a[0]},height:g.bandwidth(),variants:{initial:{x:d(0),width:0},whileInView:{x:e.leftBar<0?d(0):d(e.leftBar),width:e.leftBar<0?d(e.leftBar)-d(0):d(0)-d(e.leftBar),transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",exit:{x:d(0),width:0,transition:{duration:r.duration}}}):null,Y?i.jsxRuntimeExports.jsx(Lt.motion.text,{y:g(`${y}`)+g.bandwidth()/2,style:{textAnchor:e.rightBar&&e.rightBar>0?"end":"start",...o?.graphObjectValues||{}},dx:e.rightBar&&e.rightBar>0?-5:5,dy:"0.33em",className:i.mo("graph-value text-sm",n?.graphObjectValues),exit:{opacity:0,transition:{duration:r.duration}},variants:{initial:{x:d(0),opacity:0,fill:a[0]},whileInView:{x:e.leftBar?d(e.leftBar):d(q<0?0:q),opacity:1,fill:a[0],transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",children:le.numberFormattingFunction(e.rightBar,Mt,K,J,z)}):null]},e.label)),i.jsxRuntimeExports.jsx(ue.Axis,{y1:-2.5,y2:L+l.bottom,x1:d(q<0?0:q),x2:d(q<0?0:q),classNames:Ot,styles:st}),x?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:x.map((e,y)=>i.jsxRuntimeExports.jsx(xe.RefLineX,{text:e.text,color:e.color,x:d(e.value),y1:0-l.top,y2:L+l.bottom,textSide:"left",classNames:e.classNames,styles:e.styles,animate:r,isInView:$},y))}):null]})]});const Ut=n?.yAxis?.axis;let At;t[72]!==Ut?(At={axis:Ut},t[72]=Ut,t[73]=At):At=t[73];const St=o?.yAxis?.axis;let Bt;t[74]!==St?(Bt={axis:St},t[74]=St,t[75]=Bt):Bt=t[75],dt=i.jsxRuntimeExports.jsxs("g",{transform:`translate(${(B+v)/2},0)`,children:[rt?i.jsxRuntimeExports.jsx(ce.XTicksAndGridLines,{values:f.filter(Ne),x:f.filter($e).map(e=>h(e)),y1:0-I,y2:L+l.bottom,styles:{gridLines:o?.xAxis?.gridLines,labels:o?.xAxis?.labels},classNames:{gridLines:n?.xAxis?.gridLines,labels:n?.xAxis?.labels},suffix:z,prefix:J,labelType:"secondary",showGridLines:!0,precision:K}):null,i.jsxRuntimeExports.jsxs(se.AnimatePresence,{children:[Xt.map((e,y)=>i.jsxRuntimeExports.jsxs(Lt.motion.g,{className:"undp-viz-g-with-hover",opacity:.85,onMouseEnter:b=>{Q(e),Z(b.clientY),u(b.clientX),W?.(e)},onClick:()=>{(F||w)&&(ae.isEqual(R,e)&&Gt?(at(void 0),F?.(void 0)):(at(e),F?.(e)))},onMouseMove:b=>{Q(e),Z(b.clientY),u(b.clientX)},onMouseLeave:()=>{Q(void 0),u(void 0),Z(void 0),W?.(void 0)},children:[e.rightBar?i.jsxRuntimeExports.jsx(Lt.motion.rect,{y:g(`${y}`),style:{fill:a[1]},height:g.bandwidth(),exit:{x:h(0),width:0,transition:{duration:r.duration}},variants:{initial:{x:h(0),width:0},whileInView:{x:e.rightBar>=0?h(0):h(e.rightBar),width:e.rightBar>=0?h(e.rightBar)-h(0):h(0)-h(e.rightBar),transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial"}):null,Y?i.jsxRuntimeExports.jsx(Lt.motion.text,{y:g(`${y}`)+g.bandwidth()/2,style:{textAnchor:e.rightBar&&e.rightBar<0?"end":"start",...o?.graphObjectValues||{}},className:i.mo("graph-value text-sm",n?.graphObjectValues),dx:e.rightBar&&e.rightBar<0?-5:5,dy:"0.33em",exit:{opacity:0,transition:{duration:r.duration}},variants:{initial:{x:h(0),opacity:0,fill:a[1]},whileInView:{x:e.rightBar?h(e.rightBar):h(V<0?0:V),opacity:1,fill:a[1],transition:{duration:r.duration}}},initial:"initial",animate:$?"whileInView":"initial",children:le.numberFormattingFunction(e.rightBar,Mt,K,J,z)}):null]},y)),i.jsxRuntimeExports.jsx(ue.Axis,{y1:-2.5,y2:L+l.bottom,x1:h(V<0?0:V),x2:h(V<0?0:V),classNames:At,styles:Bt}),x?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:x.map((e,y)=>i.jsxRuntimeExports.jsx(xe.RefLineX,{text:e.text,color:e.color,x:h(e.value),y1:0-l.top,y2:L+l.bottom,textSide:"right",classNames:e.classNames,styles:e.styles,animate:r,isInView:$},y))}):null]})]}),N=se.AnimatePresence,_=Lt.motion.g,ut=`translate(${B/2},0)`,xt=Xt.map((e,y)=>i.jsxRuntimeExports.jsx(je.YAxesLabels,{value:`${e.label}`.length<ot?`${e.label}`:`${`${e.label}`.substring(0,ot)}...`,y:g(`${e.id}`),x:0-v/2,width:v,height:g.bandwidth(),alignment:"center",style:o?.yAxis?.labels,className:n?.yAxis?.labels,animate:r,isInView:$},y)),t[8]=r,t[9]=a[0],t[10]=a[1],t[11]=Jt,t[12]=v,t[13]=n?.graphObjectValues,t[14]=n?.xAxis?.gridLines,t[15]=n?.xAxis?.labels,t[16]=n?.yAxis?.axis,t[17]=n?.yAxis?.labels,t[18]=k,t[19]=c,t[20]=w,t[21]=L,t[22]=B,t[23]=j,t[24]=$,t[25]=l.bottom,t[26]=l.left,t[27]=l.top,t[28]=X,t[29]=nt,t[30]=q,t[31]=V,t[32]=R,t[33]=Mt,t[34]=M,t[35]=F,t[36]=W,t[37]=K,t[38]=J,t[39]=x,t[40]=Gt,t[41]=rt,t[42]=Y,t[43]=o?.graphObjectValues,t[44]=o?.xAxis?.gridLines,t[45]=o?.xAxis?.labels,t[46]=o?.yAxis?.axis,t[47]=o?.yAxis?.labels,t[48]=z,t[49]=I,t[50]=ot,t[51]=A,t[52]=_,t[53]=N,t[54]=tt,t[55]=G,t[56]=lt,t[57]=ct,t[58]=ut,t[59]=xt,t[60]=et,t[61]=T,t[62]=mt,t[63]=dt,t[64]=pt,t[65]=ht}else _=t[52],N=t[53],tt=t[54],G=t[55],lt=t[56],ct=t[57],ut=t[58],xt=t[59],et=t[60],T=t[61],mt=t[62],dt=t[63],pt=t[64],ht=t[65];let O;t[76]!==_||t[77]!==ut||t[78]!==xt?(O=i.jsxRuntimeExports.jsx(_,{transform:ut,children:xt}),t[76]=_,t[77]=ut,t[78]=xt,t[79]=O):O=t[79];let ft;t[80]!==N||t[81]!==O?(ft=i.jsxRuntimeExports.jsx(N,{children:O}),t[80]=N,t[81]=O,t[82]=ft):ft=t[82];const Qt=`translate(0,${L})`,Zt=o?.yAxis?.title;let gt;t[83]!==a[0]||t[84]!==Zt?(gt={fill:a[0],textAnchor:"end",...Zt},t[83]=a[0],t[84]=Zt,t[85]=gt):gt=t[85];const _t=n?.yAxis?.title;let S;t[86]!==_t?(S=i.mo("text-base",_t),t[86]=_t,t[87]=S):S=t[87];const yt=B/2-v/2;let P;t[88]!==U[0]||t[89]!==gt||t[90]!==S||t[91]!==yt?(P=i.jsxRuntimeExports.jsx("text",{style:gt,className:S,x:yt,y:0,dx:-5,dy:20,children:U[0]}),t[88]=U[0],t[89]=gt,t[90]=S,t[91]=yt,t[92]=P):P=t[92];const $t=o?.yAxis?.title;let H;t[93]!==a[1]||t[94]!==$t?(H={fill:a[1],textAnchor:"start",...$t},t[93]=a[1],t[94]=$t,t[95]=H):H=t[95];const te=n?.yAxis?.title;let jt;t[96]!==te?(jt=i.mo("text-base",te),t[96]=te,t[97]=jt):jt=t[97];const Ht=B/2+v/2;let vt;t[98]!==U[1]||t[99]!==H||t[100]!==jt||t[101]!==Ht?(vt=i.jsxRuntimeExports.jsx("text",{style:H,className:jt,x:Ht,y:0,dx:5,dy:20,children:U[1]}),t[98]=U[1],t[99]=H,t[100]=jt,t[101]=Ht,t[102]=vt):vt=t[102];let D;t[103]!==Qt||t[104]!==P||t[105]!==vt?(D=i.jsxRuntimeExports.jsxs("g",{transform:Qt,children:[P,vt]}),t[103]=Qt,t[104]=P,t[105]=vt,t[106]=D):D=t[106];let bt;t[107]!==k?(bt=k.filter(Ve).map(qe),t[107]=k,t[108]=bt):bt=t[108];let p;t[109]!==ft||t[110]!==D||t[111]!==bt||t[112]!==et||t[113]!==T||t[114]!==mt||t[115]!==dt?(p=i.jsxRuntimeExports.jsxs("g",{transform:et,children:[T,mt,dt,ft,D,bt]}),t[109]=ft,t[110]=D,t[111]=bt,t[112]=et,t[113]=T,t[114]=mt,t[115]=dt,t[116]=p):p=t[116];let wt;t[117]!==tt||t[118]!==G||t[119]!==lt||t[120]!==ct||t[121]!==p||t[122]!==pt||t[123]!==ht?(wt=i.jsxRuntimeExports.jsx(tt,{width:pt,height:ht,viewBox:G,direction:lt,ref:ct,children:p}),t[117]=tt,t[118]=G,t[119]=lt,t[120]=ct,t[121]=p,t[122]=pt,t[123]=ht,t[124]=wt):wt=t[124];let it;t[125]!==n?.tooltip||t[126]!==Pt||t[127]!==m||t[128]!==qt||t[129]!==o?.tooltip||t[130]!==Ct?(it=qt&&Ct&&Pt&&m?i.jsxRuntimeExports.jsx(ge.Tooltip,{data:qt,body:Ct,xPos:Pt,yPos:m,backgroundStyle:o?.tooltip,className:n?.tooltip}):null,t[125]=n?.tooltip,t[126]=Pt,t[127]=m,t[128]=qt,t[129]=o?.tooltip,t[130]=Ct,t[131]=it):it=t[131];let Rt;t[132]!==w||t[133]!==R?(Rt=w&&R!==void 0?i.jsxRuntimeExports.jsx(fe.le,{open:R!==void 0,onClose:()=>{at(void 0)},children:i.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof w=="string"?{__html:ye.string2HTML(w,R)}:void 0,children:typeof w=="function"?w(R):null})}):null,t[132]=w,t[133]=R,t[134]=Rt):Rt=t[134];let Nt;return t[135]!==wt||t[136]!==it||t[137]!==Rt?(Nt=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[wt,it,Rt]}),t[135]=wt,t[136]=it,t[137]=Rt,t[138]=Nt):Nt=t[138],Nt}function qe(s){return s.layer}function Ve(s){return s.position==="after"}function $e(s){return s!==0}function Ne(s){return s!==0}function Te(s){return s!==0}function Oe(s){return s!==0}function Se(s){return s.layer}function De(s){return s.position==="before"}function Ie(s){return`${s.id}`}function Fe(s,t){return{...s,id:`${t}`}}function zt(s,t,c,A){const j=s.map(x=>x[t]).filter(x=>!ne.checkIfNullOrUndefined(x)),a=ne.checkIfNullOrUndefined(c)?Math.min(...j)>=0?0:Math.min(...j):c,v=ne.checkIfNullOrUndefined(A)?Math.max(...j)<0?0:Math.max(...j):A;return{min:a,max:v}}function Ge(s){const t=i.compilerRuntimeExports.c(45),{data:c,graphTitle:A,sources:j,graphDescription:a,height:v,width:x,footNote:X,padding:nt,barColors:Y,backgroundColor:U,leftMargin:Dt,rightMargin:It,topMargin:I,bottomMargin:Ft,rightBarTitle:Ct,leftBarTitle:W,tooltip:Jt,relativeHeight:ot,onSeriesMouseOver:F,graphID:rt,barPadding:z,truncateBy:J,onSeriesMouseClick:Gt,centerGap:w,showValues:o,maxValue:n,minValue:M,refValues:r,suffix:K,prefix:k,showTicks:q,showColorScale:V,graphDownload:Mt,dataDownload:Kt,language:kt,colorLegendTitle:$,minHeight:qt,theme:Q,ariaLabel:R,resetSelectionOnDoubleClick:at,detailsOnClick:Pt,styles:u,classNames:m,noOfTicks:Z,animate:Vt,precision:l,customLayers:B,timeline:L,naLabel:_}=s;let N;t[0]!==Y?(N=Y===void 0?[de.Colors.light.categoricalColors.colors[0],de.Colors.light.categoricalColors.colors[1]]:Y,t[0]=Y,t[1]=N):N=t[1];const tt=N,G=U===void 0?!1:U,lt=Dt===void 0?20:Dt,ct=It===void 0?20:It,ut=I===void 0?25:I,xt=Ft===void 0?30:Ft,et=Ct===void 0?"Right bar graph":Ct,T=W===void 0?"Left bar graph":W,mt=z===void 0?.25:z,dt=J===void 0?999:J,pt=w===void 0?100:w,ht=o===void 0?!0:o;let O;t[2]!==r?(O=r===void 0?[]:r,t[2]=r,t[3]=O):O=t[3];const ft=O,Qt=K===void 0?"":K,Zt=k===void 0?"":k,gt=q===void 0?!0:q,_t=V===void 0?!1:V,S=Mt===void 0?!1:Mt,yt=Kt===void 0?!1:Kt,P=kt===void 0?"en":kt,$t=qt===void 0?0:qt,H=Q===void 0?"light":Q,te=at===void 0?!0:at,jt=Z===void 0?5:Z,Ht=Vt===void 0?!1:Vt,vt=l===void 0?2:l;let D;t[4]!==B?(D=B===void 0?[]:B,t[4]=B,t[5]=D):D=t[5];const bt=D,p=L===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:L,wt=_===void 0?"NA":_,[it,Rt]=C.useState(0),[Nt,Xt]=C.useState(0),[g,h]=C.useState(p.autoplay),f=Ce.sort(Le.uniqBy(c,"date",!0).map(E=>re.parse(`${E}`,p.dateFormat||"yyyy",new Date).getTime()),We),[d,Yt]=C.useState(p.autoplay?0:f.length-1),Tt=C.useRef(null),Ot=C.useRef(null);let Et,st;t[6]===Symbol.for("react.memo_cache_sentinel")?(Et=()=>{const E=new ResizeObserver(ee=>{Rt(ee[0].target.clientWidth||620),Xt(ee[0].target.clientHeight||480)});return Tt.current&&E.observe(Tt.current),()=>E.disconnect()},st=[],t[6]=Et,t[7]=st):(Et=t[6],st=t[7]),C.useEffect(Et,st),C.useEffect(()=>{const E=setInterval(()=>{Yt(ee=>ee<f.length-1?ee+1:0)},(p.speed||2)*1e3);return g||clearInterval(E),()=>clearInterval(E)},[f,g,p.speed]);const Ut=oe.getSliderMarks(f,d,p.showOnlyActiveDate,p.dateFormat||"yyyy"),At=he.GraphContainer,St=m?.graphContainer,Bt=u?.graphContainer;let e;t[8]!==m?.description||t[9]!==m?.title||t[10]!==c||t[11]!==yt||t[12]!==a||t[13]!==S||t[14]!==A||t[15]!==u?.description||t[16]!==u?.title||t[17]!==x?(e=A||a||S||yt?i.jsxRuntimeExports.jsx(Re.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:m?.title,description:m?.description},graphTitle:A,graphDescription:a,width:x,graphDownload:S?Ot:void 0,dataDownload:yt?c.map(Ue).filter(Ye).length>0?c.map(Xe).filter(He):c.filter(Pe):null}):null,t[8]=m?.description,t[9]=m?.title,t[10]=c,t[11]=yt,t[12]=a,t[13]=S,t[14]=A,t[15]=u?.description,t[16]=u?.title,t[17]=x,t[18]=e):e=t[18];const y=p.enabled&&f.length>0&&Ut?i.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[i.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{h(!g)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":g?"Click to pause animation":"Click to play animation",children:g?i.jsxRuntimeExports.jsx(pe.Pause,{}):i.jsxRuntimeExports.jsx(pe.Play,{})}),i.jsxRuntimeExports.jsx(oe.Nr,{min:f[0],max:f[f.length-1],marks:Ut,step:null,defaultValue:f[f.length-1],value:f[d],onChangeComplete:E=>{Yt(f.indexOf(E))},onChange:E=>{Yt(f.indexOf(E))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,b=c.length===0?i.jsxRuntimeExports.jsx(Ae.EmptyState,{}):i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[_t?i.jsxRuntimeExports.jsx(Ee.ColorLegend,{colorLegendTitle:$,colorDomain:[T,et],colors:tt,showNAColor:!1,className:m?.colorLegend}):null,i.jsxRuntimeExports.jsx(he.GraphArea,{ref:Tt,children:it&&Nt?i.jsxRuntimeExports.jsx(ke,{data:Be.ensureCompleteDataForButterFlyChart(c,p.dateFormat||"yyyy").filter(E=>p.enabled?E.date===re.format(new Date(f[d]),p.dateFormat||"yyyy"):E),barColors:tt,width:it,centerGap:pt,height:Nt,truncateBy:dt,leftMargin:lt,rightMargin:ct,topMargin:ut,bottomMargin:xt,axisTitles:[T,et],tooltip:Jt,onSeriesMouseOver:F,barPadding:mt,refValues:ft,maxValue:Math.max(zt(c,"leftBar",M,n).max,zt(c,"rightBar",M,n).max),minValue:Math.min(zt(c,"leftBar",M,n).min,zt(c,"rightBar",M,n).min),minValueLeftBar:zt(c,"leftBar",M,n).min,minValueRightBar:zt(c,"rightBar",M,n).min,showValues:ht,onSeriesMouseClick:Gt,showTicks:gt,suffix:Qt,prefix:Zt,resetSelectionOnDoubleClick:te,detailsOnClick:Pt,styles:u,classNames:m,noOfTicks:jt,animate:Ht===!0?{duration:.5,once:!0,amount:.5}:Ht||{duration:0,once:!0,amount:0},precision:vt,customLayers:bt,naLabel:wt}):null})]});let Wt;t[19]!==m?.footnote||t[20]!==m?.source||t[21]!==X||t[22]!==j||t[23]!==u?.footnote||t[24]!==u?.source||t[25]!==x?(Wt=j||X?i.jsxRuntimeExports.jsx(we.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:m?.footnote,source:m?.source},sources:j,footNote:X,width:x}):null,t[19]=m?.footnote,t[20]=m?.source,t[21]=X,t[22]=j,t[23]=u?.footnote,t[24]=u?.source,t[25]=x,t[26]=Wt):Wt=t[26];let ie;return t[27]!==At||t[28]!==R||t[29]!==G||t[30]!==rt||t[31]!==v||t[32]!==P||t[33]!==$t||t[34]!==nt||t[35]!==ot||t[36]!==St||t[37]!==Bt||t[38]!==e||t[39]!==y||t[40]!==b||t[41]!==Wt||t[42]!==H||t[43]!==x?(ie=i.jsxRuntimeExports.jsxs(At,{className:St,style:Bt,id:rt,ref:Ot,"aria-label":R,backgroundColor:G,theme:H,language:P,minHeight:$t,width:x,height:v,relativeHeight:ot,padding:nt,children:[e,y,b,Wt]}),t[27]=At,t[28]=R,t[29]=G,t[30]=rt,t[31]=v,t[32]=P,t[33]=$t,t[34]=nt,t[35]=ot,t[36]=St,t[37]=Bt,t[38]=e,t[39]=y,t[40]=b,t[41]=Wt,t[42]=H,t[43]=x,t[44]=ie):ie=t[44],ie}function Pe(s){return s!==void 0}function He(s){return s!==void 0}function Xe(s){return s.data}function Ye(s){return s!==void 0}function Ue(s){return s.data}function We(s,t){return Me.ascending(s,t)}exports.ButterflyChart=Ge;
2
2
  //# sourceMappingURL=ButterflyChart.cjs.map
@@ -9,7 +9,7 @@ import { T as we } from "./Tooltip-CwWUegPB.js";
9
9
  import { s as je } from "./string2HTML-DhG75NqA.js";
10
10
  import { X as me } from "./XTicksAndGridLines-CObVFSm4.js";
11
11
  import { A as ue } from "./Axis-CRyfcLjc.js";
12
- import { Y as Ae } from "./YAxesLabels-Dnnng49-.js";
12
+ import { Y as Ae } from "./YAxesLabels-a57ZRv-0.js";
13
13
  import { R as de } from "./ReferenceLine-2XCwHXQ4.js";
14
14
  import { b as Be } from "./band-CyHaVft5.js";
15
15
  import { a as fe } from "./linear-BwnDd9KF.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-CHPV5EwG-CTPQjnHt.cjs");require("react");const e=require("./index-C6LorfZ-.cjs");require("./GraphFooter.cjs");require("./GraphHeader.cjs");require("./ColorLegendWithMouseOver.cjs");require("./Colors.cjs");require("./EmptyState-sAEZ_5rU.cjs");require("./uniqBy-O05lp2S5.cjs");require("./GraphContainer-d8A46BK2.cjs");exports.CirclePackingGraph=e.CirclePackingGraph;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index-CHPV5EwG-CTPQjnHt.cjs");require("react");const e=require("./index-xRHRLDIp.cjs");require("./GraphFooter.cjs");require("./GraphHeader.cjs");require("./ColorLegendWithMouseOver.cjs");require("./Colors.cjs");require("./EmptyState-sAEZ_5rU.cjs");require("./uniqBy-O05lp2S5.cjs");require("./GraphContainer-d8A46BK2.cjs");exports.CirclePackingGraph=e.CirclePackingGraph;
2
2
  //# sourceMappingURL=CirclePackingGraph.cjs.map
@@ -1,6 +1,6 @@
1
1
  import "./index-CHPV5EwG-Curnpaqc.js";
2
2
  import "react";
3
- import { C as g } from "./index-Ceppbd8C.js";
3
+ import { C as g } from "./index-B2LQV7Tk.js";
4
4
  import "./GraphFooter.js";
5
5
  import "./GraphHeader.js";
6
6
  import "./ColorLegendWithMouseOver.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-CTPQjnHt.cjs"),be=require("./index-Cno4Q0YE.cjs"),he=require("./parse-hMnG_lRV.cjs"),C=require("react"),ve=require("./getSliderMarks-BmADcPQt.cjs"),ke=require("./index-DQA8q5sC.cjs"),Ae=require("./Modal-JW_IExO3.cjs"),ye=require("./numberFormattingFunction-02t-wJta.cjs"),Ee=require("./Tooltip-4dJo4_AF.cjs"),Ct=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Re=require("./string2HTML-CPGr_I5E.cjs"),Ce=require("./AxisTitle-sS5bLLR7.cjs"),Te=require("./Axis-DxRV2yMi.cjs"),Se=require("./XAxesLabels-D5X8jngD.cjs"),Oe=require("./YTicksAndGridLines-4pxTRlRK.cjs"),Me=require("./ReferenceLine-BH0qdf4R.cjs"),De=require("./XTicksAndGridLines-B6CELS7q.cjs"),qe=require("./YAxesLabels-DcS85Beo.cjs"),Ie=require("./linear-BwPAspcq.cjs"),Le=require("./band-VYfcZeJ2.cjs"),$e=require("./use-in-view-QcfiW0w3.cjs"),Rt=require("./proxy-BxvUI_9l.cjs"),Ne=require("./index-DG2bgAva.cjs"),fe=require("./ensureCompleteData-I6nYmT8E.cjs"),Fe=require("./uniqBy-O05lp2S5.cjs"),je=require("./GraphContainer-d8A46BK2.cjs"),Pe=require("./GraphHeader.cjs"),we=require("./index-DRXx7m-C.cjs"),Be=require("./GraphFooter.cjs"),He=require("./ColorLegendWithMouseOver.cjs"),We=require("./EmptyState-sAEZ_5rU.cjs"),Ge=require("./Colors.cjs"),Ye=require("./sort-O96oMZLb.cjs"),Xe=require("./init-DU0ybBc_.cjs");function Ue(e){const t=i.compilerRuntimeExports.c(139),{data:h,leftMargin:Dt,rightMargin:ie,topMargin:qt,bottomMargin:Ft,dotColors:v,barPadding:Ot,showTicks:Pt,truncateBy:Bt,width:Mt,height:It,radius:st,showLabels:ut,tooltip:g,onSeriesMouseOver:D,maxValue:Ht,minValue:O,onSeriesMouseClick:X,showValues:Wt,suffix:ot,prefix:q,selectedColor:M,arrowConnector:k,connectorStrokeWidth:Ut,maxBarThickness:xt,minBarThickness:vt,resetSelectionOnDoubleClick:Gt,detailsOnClick:m,axisTitle:F,noOfTicks:zt,valueColor:jt,styles:n,classNames:s,labelOrder:I,refValues:wt,animate:d,precision:u,customLayers:$,highlightedDataPoints:L,dimmedOpacity:dt}=e,b=Dt===void 0?20:Dt,Jt=ie===void 0?20:ie,Lt=qt===void 0?20:qt,kt=Ft===void 0?25:Ft,ne=C.useRef(null);let Kt;t[0]!==d.amount||t[1]!==d.once?(Kt={once:d.once,amount:d.amount},t[0]=d.amount,t[1]=d.once,t[2]=Kt):Kt=t[2];const N=$e.useInView(ne,Kt),U=F?b+30:b;let $t;t[3]!==kt||t[4]!==Jt||t[5]!==U||t[6]!==Lt?($t={top:Lt,bottom:kt,left:U,right:Jt},t[3]=kt,t[4]=Jt,t[5]=U,t[6]=Lt,t[7]=$t):$t=t[7];const a=$t,o=Mt-a.left-a.right,rt=It-a.top-a.bottom,[at,Nt]=C.useState(void 0),[P,B]=C.useState(void 0),[Vt,mt]=C.useState(void 0),[pt,Tt]=C.useState(void 0);let ht,H,W,z,A,V,E,J,K,Q,Z,j,w,_,tt;if(t[8]!==d||t[9]!==k||t[10]!==F||t[11]!==Ot||t[12]!==s?.dataConnectors||t[13]!==s?.graphObjectValues||t[14]!==s?.xAxis?.axis||t[15]!==s?.xAxis?.labels||t[16]!==s?.yAxis?.gridLines||t[17]!==s?.yAxis?.labels||t[18]!==s?.yAxis?.title||t[19]!==Ut||t[20]!==$||t[21]!==h||t[22]!==m||t[23]!==dt||t[24]!==v||t[25]!==rt||t[26]!==o||t[27]!==It||t[28]!==L||t[29]!==N||t[30]!==I||t[31]!==b||t[32]!==a.bottom||t[33]!==a.left||t[34]!==a.right||t[35]!==a.top||t[36]!==xt||t[37]!==Ht||t[38]!==vt||t[39]!==O||t[40]!==P||t[41]!==zt||t[42]!==X||t[43]!==D||t[44]!==u||t[45]!==q||t[46]!==st||t[47]!==wt||t[48]!==Gt||t[49]!==M||t[50]!==ut||t[51]!==Pt||t[52]!==Wt||t[53]!==n?.dataConnectors||t[54]!==n?.graphObjectValues||t[55]!==n?.xAxis?.axis||t[56]!==n?.xAxis?.labels||t[57]!==n?.yAxis?.gridLines||t[58]!==n?.yAxis?.labels||t[59]!==n?.yAxis?.title||t[60]!==ot||t[61]!==Bt||t[62]!==jt||t[63]!==Mt){let yt;t[79]!==I?(yt=(l,ct)=>({...l,id:I?`${l.label}`:`${ct}`}),t[79]=I,t[80]=yt):yt=t[80];const At=h.map(yt),Qt=I||At.map(si),G=Ie.linear().domain([O,Ht]).range([rt,0]).nice(),f=Le.band().domain(Qt).range([0,vt?Math.max(o,vt*At.length):xt?Math.min(o,xt*At.length):o]).paddingInner(Ot),gt=G.ticks(zt);H=Rt.motion.svg,E=`${Mt}px`,J=`${It}px`,K=`0 0 ${Mt} ${It}`,Q="ltr",Z=ne,t[81]!==k?(j=k?i.jsxRuntimeExports.jsx("defs",{children:i.jsxRuntimeExports.jsx("marker",{id:"arrow",viewBox:"0 0 10 10",refX:"10",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:i.jsxRuntimeExports.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",className:"fill-primary-gray-600 dark:fill-primary-gray-300"})})}):null,t[81]=k,t[82]=j):j=t[82],tt=`translate(${a.left},${a.top})`;const Zt=G(O<0?0:O),se=G(O<0?0:O),_t=O<0?0:O;let p;t[83]!==u||t[84]!==q||t[85]!==ot||t[86]!==_t?(p=ye.numberFormattingFunction(_t,"NA",u,q,ot),t[83]=u,t[84]=q,t[85]=ot,t[86]=_t,t[87]=p):p=t[87];const Yt=s?.xAxis?.axis,te=s?.yAxis?.labels;let Et;t[88]!==Yt||t[89]!==te?(Et={axis:Yt,label:te},t[88]=Yt,t[89]=te,t[90]=Et):Et=t[90];const ee=n?.xAxis?.axis,lt=n?.yAxis?.labels;let r;t[91]!==ee||t[92]!==lt?(r={axis:ee,label:lt},t[91]=ee,t[92]=lt,t[93]=r):r=t[93],W=i.jsxRuntimeExports.jsx(Te.Axis,{y1:Zt,y2:se,x1:0-b,x2:o+a.right,label:p,labelPos:{x:0-b,dx:0,dy:Ht<0?"1em":-5,y:G(O<0?0:O)},classNames:Et,styles:r}),z=Pt?i.jsxRuntimeExports.jsx(Oe.YTicksAndGridLines,{values:gt.filter(ni),y:gt.filter(ii).map(l=>G(l)),x1:0-b,x2:o+a.right,styles:{gridLines:n?.yAxis?.gridLines,labels:n?.yAxis?.labels},classNames:{gridLines:s?.yAxis?.gridLines,labels:s?.yAxis?.labels},suffix:ot,prefix:q,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:u}):null;const x=0-b-15,y=rt/2,bt=n?.yAxis?.title,ae=s?.yAxis?.title;t[94]!==F||t[95]!==x||t[96]!==y||t[97]!==bt||t[98]!==ae?(A=i.jsxRuntimeExports.jsx(Ce.AxisTitle,{x,y,style:bt,className:ae,text:F,rotate90:!0}),t[94]=F,t[95]=x,t[96]=y,t[97]=bt,t[98]=ae,t[99]=A):A=t[99],t[100]!==$?(V=$.filter(ei).map(ti),t[100]=$,t[101]=V):V=t[101],ht=Ne.AnimatePresence,w=At.map(l=>i.jsxRuntimeExports.jsxs(Rt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{x:f(`${l.id}`)+f.bandwidth()/2,y:0,opacity:L.length!==0?L.indexOf(l.label)!==-1?.85:dt:.85},whileInView:{x:f(`${l.id}`)+f.bandwidth()/2,y:0,opacity:L.length!==0?L.indexOf(l.label)!==-1?.85:dt:.85,transition:{duration:d.duration}}},initial:"initial",animate:N?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},children:[ut?i.jsxRuntimeExports.jsx(Se.XAxesLabels,{value:`${l.label}`.length<Bt?`${l.label}`:`${`${l.label}`.substring(0,Bt)}...`,y:rt+5,x:0-f.bandwidth()/2,width:f.bandwidth(),height:a.bottom,style:n?.xAxis?.labels,className:s?.xAxis?.labels,alignment:"top",animate:d,isInView:N}):null,i.jsxRuntimeExports.jsx(Rt.motion.line,{x1:0,x2:0,style:{strokeWidth:Ut,...n?.dataConnectors||{},opacity:M?.3:1},className:i.mo("stroke-primary-gray-600 dark:stroke-primary-gray-300",s?.dataConnectors),markerEnd:k&&l.x.indexOf(Math.min(...l.x.filter(_e)))===0?"url(#arrow)":"",markerStart:k&&l.x.indexOf(Math.min(...l.x.filter(Ze)))===l.x.length-1?"url(#arrow)":"",exit:{opacity:0,transition:{duration:d.duration}},variants:{initial:{y1:0,y2:0},whileInView:{y1:G(Math.min(...l.x.filter(Qe)))+st,y2:G(Math.max(...l.x.filter(Ke)))-st,transition:{duration:d.duration}}},initial:"initial",animate:N?"whileInView":"initial"}),l.x.map((ct,Y)=>i.jsxRuntimeExports.jsx(Rt.motion.g,{onMouseEnter:Xt=>{Nt({...l,xIndex:Y}),Tt(Xt.clientY),mt(Xt.clientX),D?.({...l,xIndex:Y})},onClick:()=>{(X||m)&&(ke.isEqual(P,{...l,xIndex:Y})&&Gt?(B(void 0),X?.(void 0)):(B({...l,xIndex:Y}),X&&X({...l,xIndex:Y})))},onMouseMove:Xt=>{Nt({...l,xIndex:Y}),Tt(Xt.clientY),mt(Xt.clientX)},onMouseLeave:()=>{Nt(void 0),mt(void 0),Tt(void 0),D?.(void 0)},exit:{opacity:0,transition:{duration:d.duration}},variants:{initial:{opacity:M?v[Y]===M?1:.3:1},whileInView:{opacity:M?v[Y]===M?1:.3:1,transition:{duration:d.duration}}},initial:"initial",animate:N?"whileInView":"initial",children:Ct.checkIfNullOrUndefined(ct)?null:i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(Rt.motion.circle,{cx:0,r:st,style:{fill:v[Y],fillOpacity:.85,stroke:v[Y],strokeWidth:1},exit:{opacity:0,transition:{duration:d.duration}},variants:{initial:{cy:G(0),opacity:0},whileInView:{cy:G(ct||0),opacity:Ct.checkIfNullOrUndefined(ct)?0:1,transition:{duration:d.duration}}},initial:"initial",animate:N?"whileInView":"initial"}),Wt?i.jsxRuntimeExports.jsx(Rt.motion.text,{x:0,style:{textAnchor:"start",...n?.graphObjectValues||{}},className:i.mo("graph-value text-sm font-bold",Ct.checkIfNullOrUndefined(ct)?"opacity-0":"opacity-100",s?.graphObjectValues),dx:st+3,dy:"0.33em",exit:{opacity:0,transition:{duration:d.duration}},variants:{initial:{y:G(0),opacity:0,fill:jt||v[Y]},whileInView:{y:G(ct||0),fill:jt||v[Y],opacity:1,transition:{duration:d.duration}}},initial:"initial",animate:N?"whileInView":"initial",children:ye.numberFormattingFunction(ct,"NA",u,q,ot)}):null]})},Y))]},l.label)),_=wt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:wt.map((l,ct)=>i.jsxRuntimeExports.jsx(Me.RefLineY,{text:l.text,color:l.color,y:G(l.value),x1:0-b,x2:o+a.right,classNames:l.classNames,styles:l.styles,animate:d,isInView:N},ct))}):null,t[8]=d,t[9]=k,t[10]=F,t[11]=Ot,t[12]=s?.dataConnectors,t[13]=s?.graphObjectValues,t[14]=s?.xAxis?.axis,t[15]=s?.xAxis?.labels,t[16]=s?.yAxis?.gridLines,t[17]=s?.yAxis?.labels,t[18]=s?.yAxis?.title,t[19]=Ut,t[20]=$,t[21]=h,t[22]=m,t[23]=dt,t[24]=v,t[25]=rt,t[26]=o,t[27]=It,t[28]=L,t[29]=N,t[30]=I,t[31]=b,t[32]=a.bottom,t[33]=a.left,t[34]=a.right,t[35]=a.top,t[36]=xt,t[37]=Ht,t[38]=vt,t[39]=O,t[40]=P,t[41]=zt,t[42]=X,t[43]=D,t[44]=u,t[45]=q,t[46]=st,t[47]=wt,t[48]=Gt,t[49]=M,t[50]=ut,t[51]=Pt,t[52]=Wt,t[53]=n?.dataConnectors,t[54]=n?.graphObjectValues,t[55]=n?.xAxis?.axis,t[56]=n?.xAxis?.labels,t[57]=n?.yAxis?.gridLines,t[58]=n?.yAxis?.labels,t[59]=n?.yAxis?.title,t[60]=ot,t[61]=Bt,t[62]=jt,t[63]=Mt,t[64]=ht,t[65]=H,t[66]=W,t[67]=z,t[68]=A,t[69]=V,t[70]=E,t[71]=J,t[72]=K,t[73]=Q,t[74]=Z,t[75]=j,t[76]=w,t[77]=_,t[78]=tt}else ht=t[64],H=t[65],W=t[66],z=t[67],A=t[68],V=t[69],E=t[70],J=t[71],K=t[72],Q=t[73],Z=t[74],j=t[75],w=t[76],_=t[77],tt=t[78];let et;t[102]!==ht||t[103]!==w||t[104]!==_?(et=i.jsxRuntimeExports.jsxs(ht,{children:[w,_]}),t[102]=ht,t[103]=w,t[104]=_,t[105]=et):et=t[105];let R;t[106]!==$?(R=$.filter(Je).map(ze),t[106]=$,t[107]=R):R=t[107];let T;t[108]!==W||t[109]!==z||t[110]!==A||t[111]!==V||t[112]!==et||t[113]!==R||t[114]!==tt?(T=i.jsxRuntimeExports.jsxs("g",{transform:tt,children:[W,z,A,V,et,R]}),t[108]=W,t[109]=z,t[110]=A,t[111]=V,t[112]=et,t[113]=R,t[114]=tt,t[115]=T):T=t[115];let S;t[116]!==H||t[117]!==E||t[118]!==J||t[119]!==K||t[120]!==Q||t[121]!==Z||t[122]!==j||t[123]!==T?(S=i.jsxRuntimeExports.jsxs(H,{width:E,height:J,viewBox:K,direction:Q,ref:Z,children:[j,T]}),t[116]=H,t[117]=E,t[118]=J,t[119]=K,t[120]=Q,t[121]=Z,t[122]=j,t[123]=T,t[124]=S):S=t[124];let it;t[125]!==s?.tooltip||t[126]!==Vt||t[127]!==pt||t[128]!==at||t[129]!==n?.tooltip||t[130]!==g?(it=at&&g&&Vt&&pt?i.jsxRuntimeExports.jsx(Ee.Tooltip,{data:at,body:g,xPos:Vt,yPos:pt,backgroundStyle:n?.tooltip,className:s?.tooltip}):null,t[125]=s?.tooltip,t[126]=Vt,t[127]=pt,t[128]=at,t[129]=n?.tooltip,t[130]=g,t[131]=it):it=t[131];let nt;t[132]!==m||t[133]!==P?(nt=m&&P!==void 0?i.jsxRuntimeExports.jsx(Ae.le,{open:P!==void 0,onClose:()=>{B(void 0)},children:i.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof m=="string"?{__html:Re.string2HTML(m,P)}:void 0,children:typeof m=="function"?m(P):null})}):null,t[132]=m,t[133]=P,t[134]=nt):nt=t[134];let ft;return t[135]!==S||t[136]!==it||t[137]!==nt?(ft=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[S,it,nt]}),t[135]=S,t[136]=it,t[137]=nt,t[138]=ft):ft=t[138],ft}function ze(e){return e.layer}function Je(e){return e.position==="after"}function Ke(e){return e!==null}function Qe(e){return e!==null}function Ze(e){return e!==null}function _e(e){return e!==null}function ti(e){return e.layer}function ei(e){return e.position==="before"}function ii(e){return e!==0}function ni(e){return e!==0}function si(e){return`${e.id}`}function oi(e){const t=i.compilerRuntimeExports.c(132),{data:h,leftMargin:Dt,rightMargin:ie,topMargin:qt,bottomMargin:Ft,dotColors:v,suffix:Ot,prefix:Pt,barPadding:Bt,showValues:Mt,showTicks:It,truncateBy:st,width:ut,height:g,radius:D,showLabels:Ht,tooltip:O,onSeriesMouseOver:X,maxValue:Wt,minValue:ot,onSeriesMouseClick:q,selectedColor:M,arrowConnector:k,connectorStrokeWidth:Ut,maxBarThickness:xt,minBarThickness:vt,resetSelectionOnDoubleClick:Gt,detailsOnClick:m,axisTitle:F,noOfTicks:zt,valueColor:jt,styles:n,classNames:s,labelOrder:I,refValues:wt,rtl:d,animate:u,precision:$,customLayers:L,highlightedDataPoints:dt,dimmedOpacity:b}=e,Jt=Dt===void 0?100:Dt,Lt=ie===void 0?40:ie,kt=qt===void 0?20:qt,ne=Ft===void 0?10:Ft,Kt=C.useRef(null);let N;t[0]!==u.amount||t[1]!==u.once?(N={once:u.once,amount:u.amount},t[0]=u.amount,t[1]=u.once,t[2]=N):N=t[2];const U=$e.useInView(Kt,N),$t=F?kt+25:kt;let a;t[3]!==ne||t[4]!==Jt||t[5]!==Lt||t[6]!==$t?(a={top:$t,bottom:ne,left:Jt,right:Lt},t[3]=ne,t[4]=Jt,t[5]=Lt,t[6]=$t,t[7]=a):a=t[7];const o=a,rt=ut-o.left-o.right,at=g-o.top-o.bottom,[Nt,P]=C.useState(void 0),[B,Vt]=C.useState(void 0),[mt,pt]=C.useState(void 0),[Tt,ht]=C.useState(void 0);let H,W,z,A,V,E,J,K,Q,Z,j,w,_,tt,et;if(t[8]!==u||t[9]!==k||t[10]!==F||t[11]!==Bt||t[12]!==s?.dataConnectors||t[13]!==s?.graphObjectValues||t[14]!==s?.xAxis?.gridLines||t[15]!==s?.xAxis?.labels||t[16]!==s?.xAxis?.title||t[17]!==s?.yAxis?.gridLines||t[18]!==s?.yAxis?.labels||t[19]!==Ut||t[20]!==L||t[21]!==h||t[22]!==m||t[23]!==b||t[24]!==v||t[25]!==at||t[26]!==rt||t[27]!==g||t[28]!==dt||t[29]!==U||t[30]!==I||t[31]!==o.bottom||t[32]!==o.left||t[33]!==o.top||t[34]!==xt||t[35]!==Wt||t[36]!==vt||t[37]!==ot||t[38]!==B||t[39]!==zt||t[40]!==q||t[41]!==X||t[42]!==$||t[43]!==Pt||t[44]!==D||t[45]!==wt||t[46]!==Gt||t[47]!==d||t[48]!==M||t[49]!==Ht||t[50]!==It||t[51]!==Mt||t[52]!==n?.dataConnectors||t[53]!==n?.graphObjectValues||t[54]!==n?.xAxis?.gridLines||t[55]!==n?.xAxis?.labels||t[56]!==n?.xAxis?.title||t[57]!==n?.yAxis?.gridLines||t[58]!==n?.yAxis?.labels||t[59]!==Ot||t[60]!==kt||t[61]!==st||t[62]!==jt||t[63]!==ut){let At;t[79]!==I?(At=(r,x)=>({...r,id:I?`${r.label}`:`${x}`}),t[79]=I,t[80]=At):At=t[80];const Qt=h.map(At),G=I||Qt.map(fi),f=Ie.linear().domain([ot,Wt]).range([0,rt]).nice(),gt=Le.band().domain(G).range([0,vt?Math.max(at,vt*Qt.length):xt?Math.min(at,xt*Qt.length):at]).paddingInner(Bt),Zt=f.ticks(zt);W=Rt.motion.svg,J=`${ut}px`,K=`${g}px`,Q=`0 0 ${ut} ${g}`,Z="ltr",j=Kt,t[81]!==k?(w=k?i.jsxRuntimeExports.jsx("defs",{children:i.jsxRuntimeExports.jsx("marker",{id:"arrow",viewBox:"0 0 10 10",refX:"10",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:i.jsxRuntimeExports.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",className:"fill-primary-gray-600 dark:fill-primary-gray-300"})})}):null,t[81]=k,t[82]=w):w=t[82],et=`translate(${o.left},${o.top})`,z=It?i.jsxRuntimeExports.jsx(De.XTicksAndGridLines,{values:Zt.filter(hi),x:Zt.filter(pi).map(r=>f(r)),y1:0-kt,y2:at+o.bottom,styles:{gridLines:n?.xAxis?.gridLines,labels:n?.xAxis?.labels},classNames:{gridLines:s?.xAxis?.gridLines,labels:s?.xAxis?.labels},suffix:Ot,prefix:Pt,labelType:"secondary",showGridLines:!0,precision:$}):null;const se=rt/2,_t=0-o.top+15,p=n?.xAxis?.title,Yt=s?.xAxis?.title;t[83]!==F||t[84]!==se||t[85]!==_t||t[86]!==p||t[87]!==Yt?(A=i.jsxRuntimeExports.jsx(Ce.AxisTitle,{x:se,y:_t,style:p,className:Yt,text:F}),t[83]=F,t[84]=se,t[85]=_t,t[86]=p,t[87]=Yt,t[88]=A):A=t[88];const te=n?.yAxis?.gridLines;let Et;t[89]!==te?(Et={gridLines:te},t[89]=te,t[90]=Et):Et=t[90];const ee=s?.yAxis?.gridLines;let lt;t[91]!==ee?(lt={gridLines:ee},t[91]=ee,t[92]=lt):lt=t[92],V=i.jsxRuntimeExports.jsx(Oe.YTicksAndGridLines,{y:Qt.map(r=>gt(`${r.id}`)+gt.bandwidth()/2),x1:0,x2:rt,styles:Et,classNames:lt,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:$}),t[93]!==L?(E=L.filter(mi).map(di),t[93]=L,t[94]=E):E=t[94],H=Ne.AnimatePresence,_=Qt.map(r=>i.jsxRuntimeExports.jsxs(Rt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{x:0,y:gt(`${r.id}`)+gt.bandwidth()/2,opacity:dt.length!==0?dt.indexOf(r.label)!==-1?.85:b:.85},whileInView:{x:0,y:gt(`${r.id}`)+gt.bandwidth()/2,opacity:dt.length!==0?dt.indexOf(r.label)!==-1?.85:b:.85,transition:{duration:u.duration}}},initial:"initial",animate:U?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}},children:[Ht?i.jsxRuntimeExports.jsx(qe.YAxesLabels,{value:`${r.label}`.length<st?`${r.label}`:`${`${r.label}`.substring(0,st)}...`,y:0-gt.bandwidth()/2,x:0-o.left,width:o.left,height:gt.bandwidth(),alignment:"right",style:n?.yAxis?.labels,className:s?.yAxis?.labels,animate:u,isInView:U}):null,i.jsxRuntimeExports.jsx(Rt.motion.line,{y1:0,y2:0,style:{strokeWidth:Ut,...n?.dataConnectors||{},opacity:M?.3:1},className:i.mo("stroke-primary-gray-600 dark:stroke-primary-gray-300",s?.dataConnectors),markerEnd:k&&r.x.indexOf(Math.min(...r.x.filter(xi)))===0?"url(#arrow)":"",markerStart:k&&r.x.indexOf(Math.min(...r.x.filter(ui)))===r.x.length-1?"url(#arrow)":"",exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{x1:0,x2:0},whileInView:{x1:f(Math.min(...r.x.filter(ci)))+D,x2:f(Math.max(...r.x.filter(li)))-D,transition:{duration:u.duration}}},initial:"initial",animate:U?"whileInView":"initial"}),r.x.map((x,y)=>i.jsxRuntimeExports.jsx(Rt.motion.g,{onMouseEnter:bt=>{P({...r,xIndex:y}),ht(bt.clientY),pt(bt.clientX),X?.({...r,xIndex:y})},onClick:()=>{(q||m)&&(ke.isEqual(B,{...r,xIndex:y})&&Gt?(Vt(void 0),q?.(void 0)):(Vt({...r,xIndex:y}),q&&q({...r,xIndex:y})))},onMouseMove:bt=>{P({...r,xIndex:y}),ht(bt.clientY),pt(bt.clientX)},onMouseLeave:()=>{P(void 0),pt(void 0),ht(void 0),X?.(void 0)},exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{opacity:M?v[y]===M?1:.3:1},whileInView:{opacity:M?v[y]===M?1:.3:1,transition:{duration:u.duration}}},initial:"initial",animate:U?"whileInView":"initial",children:Ct.checkIfNullOrUndefined(x)?null:i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(Rt.motion.circle,{cy:0,r:D,style:{fill:v[y],fillOpacity:.85,stroke:v[y],strokeWidth:1,opacity:Ct.checkIfNullOrUndefined(x)?0:1},exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{cx:f(0),opacity:0},whileInView:{cx:f(x||0),opacity:Ct.checkIfNullOrUndefined(x)?0:1,transition:{duration:u.duration}}},initial:"initial",animate:U?"whileInView":"initial"}),Mt?i.jsxRuntimeExports.jsx(Rt.motion.text,{y:0,style:{textAnchor:"middle",...n?.graphObjectValues||{}},dx:0,dy:0-D-3,className:i.mo("graph-value text-sm font-bold",Ct.checkIfNullOrUndefined(x)?"0opacity-0":"opacity-100",s?.graphObjectValues),exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{x:f(0),opacity:0,fill:jt||v[y]},whileInView:{x:f(x||0),fill:jt||v[y],opacity:1,transition:{duration:u.duration}}},initial:"initial",animate:U?"whileInView":"initial",children:ye.numberFormattingFunction(x,"NA",$,Pt,Ot)}):null]})},y))]},r.label)),tt=wt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:wt.map((r,x)=>i.jsxRuntimeExports.jsx(Me.RefLineX,{text:r.text,color:r.color,x:f(r.value),y1:0-o.top,y2:at+o.bottom,textSide:f(r.value)>rt*.75||d?"left":"right",classNames:r.classNames,styles:r.styles,animate:u,isInView:U},x))}):null,t[8]=u,t[9]=k,t[10]=F,t[11]=Bt,t[12]=s?.dataConnectors,t[13]=s?.graphObjectValues,t[14]=s?.xAxis?.gridLines,t[15]=s?.xAxis?.labels,t[16]=s?.xAxis?.title,t[17]=s?.yAxis?.gridLines,t[18]=s?.yAxis?.labels,t[19]=Ut,t[20]=L,t[21]=h,t[22]=m,t[23]=b,t[24]=v,t[25]=at,t[26]=rt,t[27]=g,t[28]=dt,t[29]=U,t[30]=I,t[31]=o.bottom,t[32]=o.left,t[33]=o.top,t[34]=xt,t[35]=Wt,t[36]=vt,t[37]=ot,t[38]=B,t[39]=zt,t[40]=q,t[41]=X,t[42]=$,t[43]=Pt,t[44]=D,t[45]=wt,t[46]=Gt,t[47]=d,t[48]=M,t[49]=Ht,t[50]=It,t[51]=Mt,t[52]=n?.dataConnectors,t[53]=n?.graphObjectValues,t[54]=n?.xAxis?.gridLines,t[55]=n?.xAxis?.labels,t[56]=n?.xAxis?.title,t[57]=n?.yAxis?.gridLines,t[58]=n?.yAxis?.labels,t[59]=Ot,t[60]=kt,t[61]=st,t[62]=jt,t[63]=ut,t[64]=H,t[65]=W,t[66]=z,t[67]=A,t[68]=V,t[69]=E,t[70]=J,t[71]=K,t[72]=Q,t[73]=Z,t[74]=j,t[75]=w,t[76]=_,t[77]=tt,t[78]=et}else H=t[64],W=t[65],z=t[66],A=t[67],V=t[68],E=t[69],J=t[70],K=t[71],Q=t[72],Z=t[73],j=t[74],w=t[75],_=t[76],tt=t[77],et=t[78];let R;t[95]!==H||t[96]!==_||t[97]!==tt?(R=i.jsxRuntimeExports.jsxs(H,{children:[_,tt]}),t[95]=H,t[96]=_,t[97]=tt,t[98]=R):R=t[98];let T;t[99]!==L?(T=L.filter(ai).map(ri),t[99]=L,t[100]=T):T=t[100];let S;t[101]!==z||t[102]!==A||t[103]!==V||t[104]!==E||t[105]!==R||t[106]!==T||t[107]!==et?(S=i.jsxRuntimeExports.jsxs("g",{transform:et,children:[z,A,V,E,R,T]}),t[101]=z,t[102]=A,t[103]=V,t[104]=E,t[105]=R,t[106]=T,t[107]=et,t[108]=S):S=t[108];let it;t[109]!==W||t[110]!==J||t[111]!==K||t[112]!==Q||t[113]!==Z||t[114]!==j||t[115]!==w||t[116]!==S?(it=i.jsxRuntimeExports.jsxs(W,{width:J,height:K,viewBox:Q,direction:Z,ref:j,children:[w,S]}),t[109]=W,t[110]=J,t[111]=K,t[112]=Q,t[113]=Z,t[114]=j,t[115]=w,t[116]=S,t[117]=it):it=t[117];let nt;t[118]!==s?.tooltip||t[119]!==mt||t[120]!==Tt||t[121]!==Nt||t[122]!==n?.tooltip||t[123]!==O?(nt=Nt&&O&&mt&&Tt?i.jsxRuntimeExports.jsx(Ee.Tooltip,{data:Nt,body:O,xPos:mt,yPos:Tt,backgroundStyle:n?.tooltip,className:s?.tooltip}):null,t[118]=s?.tooltip,t[119]=mt,t[120]=Tt,t[121]=Nt,t[122]=n?.tooltip,t[123]=O,t[124]=nt):nt=t[124];let ft;t[125]!==m||t[126]!==B?(ft=m&&B!==void 0?i.jsxRuntimeExports.jsx(Ae.le,{open:B!==void 0,onClose:()=>{Vt(void 0)},children:i.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof m=="string"?{__html:Re.string2HTML(m,B)}:void 0,children:typeof m=="function"?m(B):null})}):null,t[125]=m,t[126]=B,t[127]=ft):ft=t[127];let yt;return t[128]!==it||t[129]!==nt||t[130]!==ft?(yt=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[it,nt,ft]}),t[128]=it,t[129]=nt,t[130]=ft,t[131]=yt):yt=t[131],yt}function ri(e){return e.layer}function ai(e){return e.position==="after"}function li(e){return e!==null}function ci(e){return e!==null}function ui(e){return e!==null}function xi(e){return e!==null}function di(e){return e.layer}function mi(e){return e.position==="before"}function pi(e,t){return t!==0}function hi(e,t){return t!==0}function fi(e){return`${e.id}`}function yi(e){const t=i.compilerRuntimeExports.c(43),{data:h,graphTitle:Dt,colors:ie,sources:qt,graphDescription:Ft,barPadding:v,showTicks:Ot,leftMargin:Pt,rightMargin:Bt,topMargin:Mt,bottomMargin:It,truncateBy:st,height:ut,width:g,footNote:D,colorDomain:Ht,colorLegendTitle:O,padding:X,backgroundColor:Wt,radius:ot,tooltip:q,showLabels:M,relativeHeight:k,onSeriesMouseOver:Ut,graphID:xt,suffix:vt,prefix:Gt,maxValue:m,minValue:F,onSeriesMouseClick:zt,graphDownload:jt,dataDownload:n,showValues:s,sortParameter:I,arrowConnector:wt,connectorStrokeWidth:d,language:u,minHeight:$,theme:L,maxBarThickness:dt,maxNumberOfBars:b,minBarThickness:Jt,ariaLabel:Lt,resetSelectionOnDoubleClick:kt,detailsOnClick:ne,axisTitle:Kt,noOfTicks:N,valueColor:U,orientation:$t,styles:a,classNames:o,labelOrder:rt,refValues:at,filterNA:Nt,animate:P,precision:B,showColorScale:Vt,customLayers:mt,highlightedDataPoints:pt,dimmedOpacity:Tt,timeline:ht,sortData:H}=e,W=ie===void 0?Ge.Colors.light.categoricalColors.colors:ie,z=v===void 0?.25:v,A=Ot===void 0?!0:Ot,V=st===void 0?999:st,E=Wt===void 0?!0:Wt,J=ot===void 0?3:ot,K=M===void 0?!0:M,Q=vt===void 0?"":vt,Z=Gt===void 0?"":Gt,j=jt===void 0?!1:jt,w=n===void 0?!1:n,_=s===void 0?!0:s,tt=wt===void 0?!1:wt,et=d===void 0?2:d,R=u===void 0?"en":u,T=$===void 0?0:$,S=L===void 0?"light":L,it=kt===void 0?!0:kt,nt=N===void 0?5:N,ft=$t===void 0?"vertical":$t,yt=Nt===void 0?!0:Nt,At=P===void 0?!1:P,Qt=B===void 0?2:B,G=Vt===void 0?!0:Vt;let f;t[0]!==mt?(f=mt===void 0?[]:mt,t[0]=mt,t[1]=f):f=t[1];const gt=f;let Zt;t[2]!==pt?(Zt=pt===void 0?[]:pt,t[2]=pt,t[3]=Zt):Zt=t[3];const se=Zt,_t=Tt===void 0?.3:Tt,p=ht===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:ht,[Yt,te]=C.useState(0),[Et,ee]=C.useState(0),[lt,r]=C.useState(p.autoplay),x=Ye.sort(Fe.uniqBy(h,"date",!0).map(c=>he.parse(`${c}`,p.dateFormat||"yyyy",new Date).getTime()),Ti),[y,bt]=C.useState(p.autoplay?0:x.length-1),[ae,l]=C.useState(void 0),ct=C.useRef(null),Y=C.useRef(null);let Xt,le;t[4]===Symbol.for("react.memo_cache_sentinel")?(Xt=()=>{const c=new ResizeObserver(St=>{te(St[0].target.clientWidth||620),ee(St[0].target.clientHeight||480)});return ct.current&&c.observe(ct.current),()=>c.disconnect()},le=[],t[4]=Xt,t[5]=le):(Xt=t[4],le=t[5]),C.useEffect(Xt,le),C.useEffect(()=>{const c=setInterval(()=>{bt(St=>St<x.length-1?St+1:0)},(p.speed||2)*1e3);return lt||clearInterval(c),()=>clearInterval(c)},[x,lt,p.speed]);const ge=ve.getSliderMarks(x,y,p.showOnlyActiveDate,p.dateFormat||"yyyy"),Ve=ft==="horizontal"?oi:Ue,ue=je.GraphContainer,xe=o?.graphContainer,de=a?.graphContainer;let oe;t[6]!==o?.description||t[7]!==o?.title||t[8]!==h||t[9]!==w||t[10]!==Ft||t[11]!==j||t[12]!==Dt||t[13]!==a?.description||t[14]!==a?.title||t[15]!==g?(oe=Dt||Ft||j||w?i.jsxRuntimeExports.jsx(Pe.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:o?.title,description:o?.description},graphTitle:Dt,graphDescription:Ft,width:g,graphDownload:j?Y:void 0,dataDownload:w?h.map(Vi).filter(Ni).length>0?h.map($i).filter(Li):h.filter(Ii):null}):null,t[6]=o?.description,t[7]=o?.title,t[8]=h,t[9]=w,t[10]=Ft,t[11]=j,t[12]=Dt,t[13]=a?.description,t[14]=a?.title,t[15]=g,t[16]=oe):oe=t[16];const me=p.enabled&&x.length>0&&ge?i.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[i.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{r(!lt)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":lt?"Click to pause animation":"Click to play animation",children:lt?i.jsxRuntimeExports.jsx(we.Pause,{}):i.jsxRuntimeExports.jsx(we.Play,{})}),i.jsxRuntimeExports.jsx(ve.Nr,{min:x[0],max:x[x.length-1],marks:ge,step:null,defaultValue:x[x.length-1],value:x[y],onChangeComplete:c=>{bt(x.indexOf(c))},onChange:c=>{bt(x.indexOf(c))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,pe=h.length===0?i.jsxRuntimeExports.jsx(We.EmptyState,{}):i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[G?i.jsxRuntimeExports.jsx(He.ColorLegendWithMouseOver,{width:g,colorDomain:Ht,colors:W,colorLegendTitle:O,setSelectedColor:l,showNAColor:!1,className:o?.colorLegend}):null,i.jsxRuntimeExports.jsx(je.GraphArea,{ref:ct,children:Yt&&Et?i.jsxRuntimeExports.jsx(Ve,{data:I!==void 0?I==="diff"?be.orderBy(fe.ensureCompleteDataForDumbbellChart(h,p.dateFormat||"yyyy").filter(c=>p.enabled?c.date===he.format(new Date(x[y]),p.dateFormat||"yyyy"):c).filter(c=>yt?!c.x.every(Mi):c),Oi,[H||"asc"]).filter((c,St)=>b?St<b:!0):be.orderBy(fe.ensureCompleteDataForDumbbellChart(h,p.dateFormat||"yyyy").filter(c=>p.enabled?c.date===he.format(new Date(x[y]),p.dateFormat||"yyyy"):c).filter(c=>yt?!c.x.every(Ci):c),c=>Ct.checkIfNullOrUndefined(c.x[I])?-1/0:c.x[I],[H||"asc"]).filter((c,St)=>b?St<b:!0):fe.ensureCompleteDataForDumbbellChart(h,p.dateFormat||"yyyy").filter(c=>yt?!c.x.every(Ri):c).filter((c,St)=>b?St<b:!0),dotColors:W,width:Yt,height:Et,radius:J,barPadding:z,showTicks:A,leftMargin:Pt,rightMargin:Bt,topMargin:Mt,bottomMargin:It,truncateBy:V,showLabels:K,showValues:_,tooltip:q,suffix:Q,prefix:Z,onSeriesMouseOver:Ut,maxValue:Ct.checkIfNullOrUndefined(m)?Math.max(...h.map(Ai))<0?0:Math.max(...h.map(wi)):m,minValue:Ct.checkIfNullOrUndefined(F)?Math.min(...h.map(vi))>0?0:Math.min(...h.map(gi)):F,onSeriesMouseClick:zt,selectedColor:ae,arrowConnector:tt,connectorStrokeWidth:et,maxBarThickness:dt,minBarThickness:Jt,resetSelectionOnDoubleClick:it,detailsOnClick:ne,axisTitle:Kt,noOfTicks:nt,valueColor:U,styles:a,classNames:o,labelOrder:rt,refValues:at,animate:At===!0?{duration:.5,once:!0,amount:.5}:At||{duration:0,once:!0,amount:0},precision:Qt,customLayers:gt,highlightedDataPoints:se,dimmedOpacity:_t,rtl:R==="ar"||R==="he"}):null})]});let re;t[17]!==o?.footnote||t[18]!==o?.source||t[19]!==D||t[20]!==qt||t[21]!==a?.footnote||t[22]!==a?.source||t[23]!==g?(re=qt||D?i.jsxRuntimeExports.jsx(Be.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:o?.footnote,source:o?.source},sources:qt,footNote:D,width:g}):null,t[17]=o?.footnote,t[18]=o?.source,t[19]=D,t[20]=qt,t[21]=a?.footnote,t[22]=a?.source,t[23]=g,t[24]=re):re=t[24];let ce;return t[25]!==ue||t[26]!==Lt||t[27]!==E||t[28]!==xt||t[29]!==ut||t[30]!==R||t[31]!==T||t[32]!==X||t[33]!==k||t[34]!==xe||t[35]!==de||t[36]!==oe||t[37]!==me||t[38]!==pe||t[39]!==re||t[40]!==S||t[41]!==g?(ce=i.jsxRuntimeExports.jsxs(ue,{className:xe,style:de,id:xt,ref:Y,"aria-label":Lt,backgroundColor:E,theme:S,language:R,minHeight:T,width:g,height:ut,relativeHeight:k,padding:X,children:[oe,me,pe,re]}),t[25]=ue,t[26]=Lt,t[27]=E,t[28]=xt,t[29]=ut,t[30]=R,t[31]=T,t[32]=X,t[33]=k,t[34]=xe,t[35]=de,t[36]=oe,t[37]=me,t[38]=pe,t[39]=re,t[40]=S,t[41]=g,t[42]=ce):ce=t[42],ce}function gi(e){return Math.min(...e.x.filter(bi))}function bi(e){return e!==null}function vi(e){return Math.min(...e.x.filter(ji))}function ji(e){return e!==null}function wi(e){return Math.max(...e.x.filter(ki))}function ki(e){return e!==null}function Ai(e){return Math.max(...e.x.filter(Ei))}function Ei(e){return e!==null}function Ri(e){return e==null}function Ci(e){return e==null}function Oi(e){return Ct.checkIfNullOrUndefined(e.x[e.x.length-1])||Ct.checkIfNullOrUndefined(e.x[0])?-1/0:e.x[e.x.length-1]-e.x[0]}function Mi(e){return e==null}function Ii(e){return e!==void 0}function Li(e){return e!==void 0}function $i(e){return e.data}function Ni(e){return e!==void 0}function Vi(e){return e.data}function Ti(e,t){return Xe.ascending(e,t)}exports.DumbbellChart=yi;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-CTPQjnHt.cjs"),be=require("./index-Cno4Q0YE.cjs"),he=require("./parse-hMnG_lRV.cjs"),C=require("react"),ve=require("./getSliderMarks-BmADcPQt.cjs"),ke=require("./index-DQA8q5sC.cjs"),Ae=require("./Modal-JW_IExO3.cjs"),ye=require("./numberFormattingFunction-02t-wJta.cjs"),Ee=require("./Tooltip-4dJo4_AF.cjs"),Ct=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),Re=require("./string2HTML-CPGr_I5E.cjs"),Ce=require("./AxisTitle-sS5bLLR7.cjs"),Te=require("./Axis-DxRV2yMi.cjs"),Se=require("./XAxesLabels-Bt5NZBmX.cjs"),Oe=require("./YTicksAndGridLines-4pxTRlRK.cjs"),Me=require("./ReferenceLine-BH0qdf4R.cjs"),De=require("./XTicksAndGridLines-B6CELS7q.cjs"),qe=require("./YAxesLabels-DesLesUP.cjs"),Ie=require("./linear-BwPAspcq.cjs"),Le=require("./band-VYfcZeJ2.cjs"),$e=require("./use-in-view-QcfiW0w3.cjs"),Rt=require("./proxy-BxvUI_9l.cjs"),Ne=require("./index-DG2bgAva.cjs"),fe=require("./ensureCompleteData-I6nYmT8E.cjs"),Fe=require("./uniqBy-O05lp2S5.cjs"),je=require("./GraphContainer-d8A46BK2.cjs"),Pe=require("./GraphHeader.cjs"),we=require("./index-DRXx7m-C.cjs"),Be=require("./GraphFooter.cjs"),He=require("./ColorLegendWithMouseOver.cjs"),We=require("./EmptyState-sAEZ_5rU.cjs"),Ge=require("./Colors.cjs"),Ye=require("./sort-O96oMZLb.cjs"),Xe=require("./init-DU0ybBc_.cjs");function Ue(e){const t=i.compilerRuntimeExports.c(139),{data:h,leftMargin:Dt,rightMargin:ie,topMargin:qt,bottomMargin:Ft,dotColors:v,barPadding:Ot,showTicks:Pt,truncateBy:Bt,width:Mt,height:It,radius:st,showLabels:ut,tooltip:g,onSeriesMouseOver:D,maxValue:Ht,minValue:O,onSeriesMouseClick:X,showValues:Wt,suffix:ot,prefix:q,selectedColor:M,arrowConnector:k,connectorStrokeWidth:Ut,maxBarThickness:xt,minBarThickness:vt,resetSelectionOnDoubleClick:Gt,detailsOnClick:m,axisTitle:F,noOfTicks:zt,valueColor:jt,styles:n,classNames:s,labelOrder:I,refValues:wt,animate:d,precision:u,customLayers:$,highlightedDataPoints:L,dimmedOpacity:dt}=e,b=Dt===void 0?20:Dt,Jt=ie===void 0?20:ie,Lt=qt===void 0?20:qt,kt=Ft===void 0?25:Ft,ne=C.useRef(null);let Kt;t[0]!==d.amount||t[1]!==d.once?(Kt={once:d.once,amount:d.amount},t[0]=d.amount,t[1]=d.once,t[2]=Kt):Kt=t[2];const N=$e.useInView(ne,Kt),U=F?b+30:b;let $t;t[3]!==kt||t[4]!==Jt||t[5]!==U||t[6]!==Lt?($t={top:Lt,bottom:kt,left:U,right:Jt},t[3]=kt,t[4]=Jt,t[5]=U,t[6]=Lt,t[7]=$t):$t=t[7];const a=$t,o=Mt-a.left-a.right,rt=It-a.top-a.bottom,[at,Nt]=C.useState(void 0),[P,B]=C.useState(void 0),[Vt,mt]=C.useState(void 0),[pt,Tt]=C.useState(void 0);let ht,H,W,z,A,V,E,J,K,Q,Z,j,w,_,tt;if(t[8]!==d||t[9]!==k||t[10]!==F||t[11]!==Ot||t[12]!==s?.dataConnectors||t[13]!==s?.graphObjectValues||t[14]!==s?.xAxis?.axis||t[15]!==s?.xAxis?.labels||t[16]!==s?.yAxis?.gridLines||t[17]!==s?.yAxis?.labels||t[18]!==s?.yAxis?.title||t[19]!==Ut||t[20]!==$||t[21]!==h||t[22]!==m||t[23]!==dt||t[24]!==v||t[25]!==rt||t[26]!==o||t[27]!==It||t[28]!==L||t[29]!==N||t[30]!==I||t[31]!==b||t[32]!==a.bottom||t[33]!==a.left||t[34]!==a.right||t[35]!==a.top||t[36]!==xt||t[37]!==Ht||t[38]!==vt||t[39]!==O||t[40]!==P||t[41]!==zt||t[42]!==X||t[43]!==D||t[44]!==u||t[45]!==q||t[46]!==st||t[47]!==wt||t[48]!==Gt||t[49]!==M||t[50]!==ut||t[51]!==Pt||t[52]!==Wt||t[53]!==n?.dataConnectors||t[54]!==n?.graphObjectValues||t[55]!==n?.xAxis?.axis||t[56]!==n?.xAxis?.labels||t[57]!==n?.yAxis?.gridLines||t[58]!==n?.yAxis?.labels||t[59]!==n?.yAxis?.title||t[60]!==ot||t[61]!==Bt||t[62]!==jt||t[63]!==Mt){let yt;t[79]!==I?(yt=(l,ct)=>({...l,id:I?`${l.label}`:`${ct}`}),t[79]=I,t[80]=yt):yt=t[80];const At=h.map(yt),Qt=I||At.map(si),G=Ie.linear().domain([O,Ht]).range([rt,0]).nice(),f=Le.band().domain(Qt).range([0,vt?Math.max(o,vt*At.length):xt?Math.min(o,xt*At.length):o]).paddingInner(Ot),gt=G.ticks(zt);H=Rt.motion.svg,E=`${Mt}px`,J=`${It}px`,K=`0 0 ${Mt} ${It}`,Q="ltr",Z=ne,t[81]!==k?(j=k?i.jsxRuntimeExports.jsx("defs",{children:i.jsxRuntimeExports.jsx("marker",{id:"arrow",viewBox:"0 0 10 10",refX:"10",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:i.jsxRuntimeExports.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",className:"fill-primary-gray-600 dark:fill-primary-gray-300"})})}):null,t[81]=k,t[82]=j):j=t[82],tt=`translate(${a.left},${a.top})`;const Zt=G(O<0?0:O),se=G(O<0?0:O),_t=O<0?0:O;let p;t[83]!==u||t[84]!==q||t[85]!==ot||t[86]!==_t?(p=ye.numberFormattingFunction(_t,"NA",u,q,ot),t[83]=u,t[84]=q,t[85]=ot,t[86]=_t,t[87]=p):p=t[87];const Yt=s?.xAxis?.axis,te=s?.yAxis?.labels;let Et;t[88]!==Yt||t[89]!==te?(Et={axis:Yt,label:te},t[88]=Yt,t[89]=te,t[90]=Et):Et=t[90];const ee=n?.xAxis?.axis,lt=n?.yAxis?.labels;let r;t[91]!==ee||t[92]!==lt?(r={axis:ee,label:lt},t[91]=ee,t[92]=lt,t[93]=r):r=t[93],W=i.jsxRuntimeExports.jsx(Te.Axis,{y1:Zt,y2:se,x1:0-b,x2:o+a.right,label:p,labelPos:{x:0-b,dx:0,dy:Ht<0?"1em":-5,y:G(O<0?0:O)},classNames:Et,styles:r}),z=Pt?i.jsxRuntimeExports.jsx(Oe.YTicksAndGridLines,{values:gt.filter(ni),y:gt.filter(ii).map(l=>G(l)),x1:0-b,x2:o+a.right,styles:{gridLines:n?.yAxis?.gridLines,labels:n?.yAxis?.labels},classNames:{gridLines:s?.yAxis?.gridLines,labels:s?.yAxis?.labels},suffix:ot,prefix:q,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:u}):null;const x=0-b-15,y=rt/2,bt=n?.yAxis?.title,ae=s?.yAxis?.title;t[94]!==F||t[95]!==x||t[96]!==y||t[97]!==bt||t[98]!==ae?(A=i.jsxRuntimeExports.jsx(Ce.AxisTitle,{x,y,style:bt,className:ae,text:F,rotate90:!0}),t[94]=F,t[95]=x,t[96]=y,t[97]=bt,t[98]=ae,t[99]=A):A=t[99],t[100]!==$?(V=$.filter(ei).map(ti),t[100]=$,t[101]=V):V=t[101],ht=Ne.AnimatePresence,w=At.map(l=>i.jsxRuntimeExports.jsxs(Rt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{x:f(`${l.id}`)+f.bandwidth()/2,y:0,opacity:L.length!==0?L.indexOf(l.label)!==-1?.85:dt:.85},whileInView:{x:f(`${l.id}`)+f.bandwidth()/2,y:0,opacity:L.length!==0?L.indexOf(l.label)!==-1?.85:dt:.85,transition:{duration:d.duration}}},initial:"initial",animate:N?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},children:[ut?i.jsxRuntimeExports.jsx(Se.XAxesLabels,{value:`${l.label}`.length<Bt?`${l.label}`:`${`${l.label}`.substring(0,Bt)}...`,y:rt+5,x:0-f.bandwidth()/2,width:f.bandwidth(),height:a.bottom,style:n?.xAxis?.labels,className:s?.xAxis?.labels,alignment:"top",animate:d,isInView:N}):null,i.jsxRuntimeExports.jsx(Rt.motion.line,{x1:0,x2:0,style:{strokeWidth:Ut,...n?.dataConnectors||{},opacity:M?.3:1},className:i.mo("stroke-primary-gray-600 dark:stroke-primary-gray-300",s?.dataConnectors),markerEnd:k&&l.x.indexOf(Math.min(...l.x.filter(_e)))===0?"url(#arrow)":"",markerStart:k&&l.x.indexOf(Math.min(...l.x.filter(Ze)))===l.x.length-1?"url(#arrow)":"",exit:{opacity:0,transition:{duration:d.duration}},variants:{initial:{y1:0,y2:0},whileInView:{y1:G(Math.min(...l.x.filter(Qe)))+st,y2:G(Math.max(...l.x.filter(Ke)))-st,transition:{duration:d.duration}}},initial:"initial",animate:N?"whileInView":"initial"}),l.x.map((ct,Y)=>i.jsxRuntimeExports.jsx(Rt.motion.g,{onMouseEnter:Xt=>{Nt({...l,xIndex:Y}),Tt(Xt.clientY),mt(Xt.clientX),D?.({...l,xIndex:Y})},onClick:()=>{(X||m)&&(ke.isEqual(P,{...l,xIndex:Y})&&Gt?(B(void 0),X?.(void 0)):(B({...l,xIndex:Y}),X&&X({...l,xIndex:Y})))},onMouseMove:Xt=>{Nt({...l,xIndex:Y}),Tt(Xt.clientY),mt(Xt.clientX)},onMouseLeave:()=>{Nt(void 0),mt(void 0),Tt(void 0),D?.(void 0)},exit:{opacity:0,transition:{duration:d.duration}},variants:{initial:{opacity:M?v[Y]===M?1:.3:1},whileInView:{opacity:M?v[Y]===M?1:.3:1,transition:{duration:d.duration}}},initial:"initial",animate:N?"whileInView":"initial",children:Ct.checkIfNullOrUndefined(ct)?null:i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(Rt.motion.circle,{cx:0,r:st,style:{fill:v[Y],fillOpacity:.85,stroke:v[Y],strokeWidth:1},exit:{opacity:0,transition:{duration:d.duration}},variants:{initial:{cy:G(0),opacity:0},whileInView:{cy:G(ct||0),opacity:Ct.checkIfNullOrUndefined(ct)?0:1,transition:{duration:d.duration}}},initial:"initial",animate:N?"whileInView":"initial"}),Wt?i.jsxRuntimeExports.jsx(Rt.motion.text,{x:0,style:{textAnchor:"start",...n?.graphObjectValues||{}},className:i.mo("graph-value text-sm font-bold",Ct.checkIfNullOrUndefined(ct)?"opacity-0":"opacity-100",s?.graphObjectValues),dx:st+3,dy:"0.33em",exit:{opacity:0,transition:{duration:d.duration}},variants:{initial:{y:G(0),opacity:0,fill:jt||v[Y]},whileInView:{y:G(ct||0),fill:jt||v[Y],opacity:1,transition:{duration:d.duration}}},initial:"initial",animate:N?"whileInView":"initial",children:ye.numberFormattingFunction(ct,"NA",u,q,ot)}):null]})},Y))]},l.label)),_=wt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:wt.map((l,ct)=>i.jsxRuntimeExports.jsx(Me.RefLineY,{text:l.text,color:l.color,y:G(l.value),x1:0-b,x2:o+a.right,classNames:l.classNames,styles:l.styles,animate:d,isInView:N},ct))}):null,t[8]=d,t[9]=k,t[10]=F,t[11]=Ot,t[12]=s?.dataConnectors,t[13]=s?.graphObjectValues,t[14]=s?.xAxis?.axis,t[15]=s?.xAxis?.labels,t[16]=s?.yAxis?.gridLines,t[17]=s?.yAxis?.labels,t[18]=s?.yAxis?.title,t[19]=Ut,t[20]=$,t[21]=h,t[22]=m,t[23]=dt,t[24]=v,t[25]=rt,t[26]=o,t[27]=It,t[28]=L,t[29]=N,t[30]=I,t[31]=b,t[32]=a.bottom,t[33]=a.left,t[34]=a.right,t[35]=a.top,t[36]=xt,t[37]=Ht,t[38]=vt,t[39]=O,t[40]=P,t[41]=zt,t[42]=X,t[43]=D,t[44]=u,t[45]=q,t[46]=st,t[47]=wt,t[48]=Gt,t[49]=M,t[50]=ut,t[51]=Pt,t[52]=Wt,t[53]=n?.dataConnectors,t[54]=n?.graphObjectValues,t[55]=n?.xAxis?.axis,t[56]=n?.xAxis?.labels,t[57]=n?.yAxis?.gridLines,t[58]=n?.yAxis?.labels,t[59]=n?.yAxis?.title,t[60]=ot,t[61]=Bt,t[62]=jt,t[63]=Mt,t[64]=ht,t[65]=H,t[66]=W,t[67]=z,t[68]=A,t[69]=V,t[70]=E,t[71]=J,t[72]=K,t[73]=Q,t[74]=Z,t[75]=j,t[76]=w,t[77]=_,t[78]=tt}else ht=t[64],H=t[65],W=t[66],z=t[67],A=t[68],V=t[69],E=t[70],J=t[71],K=t[72],Q=t[73],Z=t[74],j=t[75],w=t[76],_=t[77],tt=t[78];let et;t[102]!==ht||t[103]!==w||t[104]!==_?(et=i.jsxRuntimeExports.jsxs(ht,{children:[w,_]}),t[102]=ht,t[103]=w,t[104]=_,t[105]=et):et=t[105];let R;t[106]!==$?(R=$.filter(Je).map(ze),t[106]=$,t[107]=R):R=t[107];let T;t[108]!==W||t[109]!==z||t[110]!==A||t[111]!==V||t[112]!==et||t[113]!==R||t[114]!==tt?(T=i.jsxRuntimeExports.jsxs("g",{transform:tt,children:[W,z,A,V,et,R]}),t[108]=W,t[109]=z,t[110]=A,t[111]=V,t[112]=et,t[113]=R,t[114]=tt,t[115]=T):T=t[115];let S;t[116]!==H||t[117]!==E||t[118]!==J||t[119]!==K||t[120]!==Q||t[121]!==Z||t[122]!==j||t[123]!==T?(S=i.jsxRuntimeExports.jsxs(H,{width:E,height:J,viewBox:K,direction:Q,ref:Z,children:[j,T]}),t[116]=H,t[117]=E,t[118]=J,t[119]=K,t[120]=Q,t[121]=Z,t[122]=j,t[123]=T,t[124]=S):S=t[124];let it;t[125]!==s?.tooltip||t[126]!==Vt||t[127]!==pt||t[128]!==at||t[129]!==n?.tooltip||t[130]!==g?(it=at&&g&&Vt&&pt?i.jsxRuntimeExports.jsx(Ee.Tooltip,{data:at,body:g,xPos:Vt,yPos:pt,backgroundStyle:n?.tooltip,className:s?.tooltip}):null,t[125]=s?.tooltip,t[126]=Vt,t[127]=pt,t[128]=at,t[129]=n?.tooltip,t[130]=g,t[131]=it):it=t[131];let nt;t[132]!==m||t[133]!==P?(nt=m&&P!==void 0?i.jsxRuntimeExports.jsx(Ae.le,{open:P!==void 0,onClose:()=>{B(void 0)},children:i.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof m=="string"?{__html:Re.string2HTML(m,P)}:void 0,children:typeof m=="function"?m(P):null})}):null,t[132]=m,t[133]=P,t[134]=nt):nt=t[134];let ft;return t[135]!==S||t[136]!==it||t[137]!==nt?(ft=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[S,it,nt]}),t[135]=S,t[136]=it,t[137]=nt,t[138]=ft):ft=t[138],ft}function ze(e){return e.layer}function Je(e){return e.position==="after"}function Ke(e){return e!==null}function Qe(e){return e!==null}function Ze(e){return e!==null}function _e(e){return e!==null}function ti(e){return e.layer}function ei(e){return e.position==="before"}function ii(e){return e!==0}function ni(e){return e!==0}function si(e){return`${e.id}`}function oi(e){const t=i.compilerRuntimeExports.c(132),{data:h,leftMargin:Dt,rightMargin:ie,topMargin:qt,bottomMargin:Ft,dotColors:v,suffix:Ot,prefix:Pt,barPadding:Bt,showValues:Mt,showTicks:It,truncateBy:st,width:ut,height:g,radius:D,showLabels:Ht,tooltip:O,onSeriesMouseOver:X,maxValue:Wt,minValue:ot,onSeriesMouseClick:q,selectedColor:M,arrowConnector:k,connectorStrokeWidth:Ut,maxBarThickness:xt,minBarThickness:vt,resetSelectionOnDoubleClick:Gt,detailsOnClick:m,axisTitle:F,noOfTicks:zt,valueColor:jt,styles:n,classNames:s,labelOrder:I,refValues:wt,rtl:d,animate:u,precision:$,customLayers:L,highlightedDataPoints:dt,dimmedOpacity:b}=e,Jt=Dt===void 0?100:Dt,Lt=ie===void 0?40:ie,kt=qt===void 0?20:qt,ne=Ft===void 0?10:Ft,Kt=C.useRef(null);let N;t[0]!==u.amount||t[1]!==u.once?(N={once:u.once,amount:u.amount},t[0]=u.amount,t[1]=u.once,t[2]=N):N=t[2];const U=$e.useInView(Kt,N),$t=F?kt+25:kt;let a;t[3]!==ne||t[4]!==Jt||t[5]!==Lt||t[6]!==$t?(a={top:$t,bottom:ne,left:Jt,right:Lt},t[3]=ne,t[4]=Jt,t[5]=Lt,t[6]=$t,t[7]=a):a=t[7];const o=a,rt=ut-o.left-o.right,at=g-o.top-o.bottom,[Nt,P]=C.useState(void 0),[B,Vt]=C.useState(void 0),[mt,pt]=C.useState(void 0),[Tt,ht]=C.useState(void 0);let H,W,z,A,V,E,J,K,Q,Z,j,w,_,tt,et;if(t[8]!==u||t[9]!==k||t[10]!==F||t[11]!==Bt||t[12]!==s?.dataConnectors||t[13]!==s?.graphObjectValues||t[14]!==s?.xAxis?.gridLines||t[15]!==s?.xAxis?.labels||t[16]!==s?.xAxis?.title||t[17]!==s?.yAxis?.gridLines||t[18]!==s?.yAxis?.labels||t[19]!==Ut||t[20]!==L||t[21]!==h||t[22]!==m||t[23]!==b||t[24]!==v||t[25]!==at||t[26]!==rt||t[27]!==g||t[28]!==dt||t[29]!==U||t[30]!==I||t[31]!==o.bottom||t[32]!==o.left||t[33]!==o.top||t[34]!==xt||t[35]!==Wt||t[36]!==vt||t[37]!==ot||t[38]!==B||t[39]!==zt||t[40]!==q||t[41]!==X||t[42]!==$||t[43]!==Pt||t[44]!==D||t[45]!==wt||t[46]!==Gt||t[47]!==d||t[48]!==M||t[49]!==Ht||t[50]!==It||t[51]!==Mt||t[52]!==n?.dataConnectors||t[53]!==n?.graphObjectValues||t[54]!==n?.xAxis?.gridLines||t[55]!==n?.xAxis?.labels||t[56]!==n?.xAxis?.title||t[57]!==n?.yAxis?.gridLines||t[58]!==n?.yAxis?.labels||t[59]!==Ot||t[60]!==kt||t[61]!==st||t[62]!==jt||t[63]!==ut){let At;t[79]!==I?(At=(r,x)=>({...r,id:I?`${r.label}`:`${x}`}),t[79]=I,t[80]=At):At=t[80];const Qt=h.map(At),G=I||Qt.map(fi),f=Ie.linear().domain([ot,Wt]).range([0,rt]).nice(),gt=Le.band().domain(G).range([0,vt?Math.max(at,vt*Qt.length):xt?Math.min(at,xt*Qt.length):at]).paddingInner(Bt),Zt=f.ticks(zt);W=Rt.motion.svg,J=`${ut}px`,K=`${g}px`,Q=`0 0 ${ut} ${g}`,Z="ltr",j=Kt,t[81]!==k?(w=k?i.jsxRuntimeExports.jsx("defs",{children:i.jsxRuntimeExports.jsx("marker",{id:"arrow",viewBox:"0 0 10 10",refX:"10",refY:"5",markerWidth:"6",markerHeight:"6",orient:"auto-start-reverse",children:i.jsxRuntimeExports.jsx("path",{d:"M 0 0 L 10 5 L 0 10 z",className:"fill-primary-gray-600 dark:fill-primary-gray-300"})})}):null,t[81]=k,t[82]=w):w=t[82],et=`translate(${o.left},${o.top})`,z=It?i.jsxRuntimeExports.jsx(De.XTicksAndGridLines,{values:Zt.filter(hi),x:Zt.filter(pi).map(r=>f(r)),y1:0-kt,y2:at+o.bottom,styles:{gridLines:n?.xAxis?.gridLines,labels:n?.xAxis?.labels},classNames:{gridLines:s?.xAxis?.gridLines,labels:s?.xAxis?.labels},suffix:Ot,prefix:Pt,labelType:"secondary",showGridLines:!0,precision:$}):null;const se=rt/2,_t=0-o.top+15,p=n?.xAxis?.title,Yt=s?.xAxis?.title;t[83]!==F||t[84]!==se||t[85]!==_t||t[86]!==p||t[87]!==Yt?(A=i.jsxRuntimeExports.jsx(Ce.AxisTitle,{x:se,y:_t,style:p,className:Yt,text:F}),t[83]=F,t[84]=se,t[85]=_t,t[86]=p,t[87]=Yt,t[88]=A):A=t[88];const te=n?.yAxis?.gridLines;let Et;t[89]!==te?(Et={gridLines:te},t[89]=te,t[90]=Et):Et=t[90];const ee=s?.yAxis?.gridLines;let lt;t[91]!==ee?(lt={gridLines:ee},t[91]=ee,t[92]=lt):lt=t[92],V=i.jsxRuntimeExports.jsx(Oe.YTicksAndGridLines,{y:Qt.map(r=>gt(`${r.id}`)+gt.bandwidth()/2),x1:0,x2:rt,styles:Et,classNames:lt,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:$}),t[93]!==L?(E=L.filter(mi).map(di),t[93]=L,t[94]=E):E=t[94],H=Ne.AnimatePresence,_=Qt.map(r=>i.jsxRuntimeExports.jsxs(Rt.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{x:0,y:gt(`${r.id}`)+gt.bandwidth()/2,opacity:dt.length!==0?dt.indexOf(r.label)!==-1?.85:b:.85},whileInView:{x:0,y:gt(`${r.id}`)+gt.bandwidth()/2,opacity:dt.length!==0?dt.indexOf(r.label)!==-1?.85:b:.85,transition:{duration:u.duration}}},initial:"initial",animate:U?"whileInView":"initial",exit:{opacity:0,transition:{duration:u.duration}},children:[Ht?i.jsxRuntimeExports.jsx(qe.YAxesLabels,{value:`${r.label}`.length<st?`${r.label}`:`${`${r.label}`.substring(0,st)}...`,y:0-gt.bandwidth()/2,x:0-o.left,width:o.left,height:gt.bandwidth(),alignment:"right",style:n?.yAxis?.labels,className:s?.yAxis?.labels,animate:u,isInView:U}):null,i.jsxRuntimeExports.jsx(Rt.motion.line,{y1:0,y2:0,style:{strokeWidth:Ut,...n?.dataConnectors||{},opacity:M?.3:1},className:i.mo("stroke-primary-gray-600 dark:stroke-primary-gray-300",s?.dataConnectors),markerEnd:k&&r.x.indexOf(Math.min(...r.x.filter(xi)))===0?"url(#arrow)":"",markerStart:k&&r.x.indexOf(Math.min(...r.x.filter(ui)))===r.x.length-1?"url(#arrow)":"",exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{x1:0,x2:0},whileInView:{x1:f(Math.min(...r.x.filter(ci)))+D,x2:f(Math.max(...r.x.filter(li)))-D,transition:{duration:u.duration}}},initial:"initial",animate:U?"whileInView":"initial"}),r.x.map((x,y)=>i.jsxRuntimeExports.jsx(Rt.motion.g,{onMouseEnter:bt=>{P({...r,xIndex:y}),ht(bt.clientY),pt(bt.clientX),X?.({...r,xIndex:y})},onClick:()=>{(q||m)&&(ke.isEqual(B,{...r,xIndex:y})&&Gt?(Vt(void 0),q?.(void 0)):(Vt({...r,xIndex:y}),q&&q({...r,xIndex:y})))},onMouseMove:bt=>{P({...r,xIndex:y}),ht(bt.clientY),pt(bt.clientX)},onMouseLeave:()=>{P(void 0),pt(void 0),ht(void 0),X?.(void 0)},exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{opacity:M?v[y]===M?1:.3:1},whileInView:{opacity:M?v[y]===M?1:.3:1,transition:{duration:u.duration}}},initial:"initial",animate:U?"whileInView":"initial",children:Ct.checkIfNullOrUndefined(x)?null:i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(Rt.motion.circle,{cy:0,r:D,style:{fill:v[y],fillOpacity:.85,stroke:v[y],strokeWidth:1,opacity:Ct.checkIfNullOrUndefined(x)?0:1},exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{cx:f(0),opacity:0},whileInView:{cx:f(x||0),opacity:Ct.checkIfNullOrUndefined(x)?0:1,transition:{duration:u.duration}}},initial:"initial",animate:U?"whileInView":"initial"}),Mt?i.jsxRuntimeExports.jsx(Rt.motion.text,{y:0,style:{textAnchor:"middle",...n?.graphObjectValues||{}},dx:0,dy:0-D-3,className:i.mo("graph-value text-sm font-bold",Ct.checkIfNullOrUndefined(x)?"0opacity-0":"opacity-100",s?.graphObjectValues),exit:{opacity:0,transition:{duration:u.duration}},variants:{initial:{x:f(0),opacity:0,fill:jt||v[y]},whileInView:{x:f(x||0),fill:jt||v[y],opacity:1,transition:{duration:u.duration}}},initial:"initial",animate:U?"whileInView":"initial",children:ye.numberFormattingFunction(x,"NA",$,Pt,Ot)}):null]})},y))]},r.label)),tt=wt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:wt.map((r,x)=>i.jsxRuntimeExports.jsx(Me.RefLineX,{text:r.text,color:r.color,x:f(r.value),y1:0-o.top,y2:at+o.bottom,textSide:f(r.value)>rt*.75||d?"left":"right",classNames:r.classNames,styles:r.styles,animate:u,isInView:U},x))}):null,t[8]=u,t[9]=k,t[10]=F,t[11]=Bt,t[12]=s?.dataConnectors,t[13]=s?.graphObjectValues,t[14]=s?.xAxis?.gridLines,t[15]=s?.xAxis?.labels,t[16]=s?.xAxis?.title,t[17]=s?.yAxis?.gridLines,t[18]=s?.yAxis?.labels,t[19]=Ut,t[20]=L,t[21]=h,t[22]=m,t[23]=b,t[24]=v,t[25]=at,t[26]=rt,t[27]=g,t[28]=dt,t[29]=U,t[30]=I,t[31]=o.bottom,t[32]=o.left,t[33]=o.top,t[34]=xt,t[35]=Wt,t[36]=vt,t[37]=ot,t[38]=B,t[39]=zt,t[40]=q,t[41]=X,t[42]=$,t[43]=Pt,t[44]=D,t[45]=wt,t[46]=Gt,t[47]=d,t[48]=M,t[49]=Ht,t[50]=It,t[51]=Mt,t[52]=n?.dataConnectors,t[53]=n?.graphObjectValues,t[54]=n?.xAxis?.gridLines,t[55]=n?.xAxis?.labels,t[56]=n?.xAxis?.title,t[57]=n?.yAxis?.gridLines,t[58]=n?.yAxis?.labels,t[59]=Ot,t[60]=kt,t[61]=st,t[62]=jt,t[63]=ut,t[64]=H,t[65]=W,t[66]=z,t[67]=A,t[68]=V,t[69]=E,t[70]=J,t[71]=K,t[72]=Q,t[73]=Z,t[74]=j,t[75]=w,t[76]=_,t[77]=tt,t[78]=et}else H=t[64],W=t[65],z=t[66],A=t[67],V=t[68],E=t[69],J=t[70],K=t[71],Q=t[72],Z=t[73],j=t[74],w=t[75],_=t[76],tt=t[77],et=t[78];let R;t[95]!==H||t[96]!==_||t[97]!==tt?(R=i.jsxRuntimeExports.jsxs(H,{children:[_,tt]}),t[95]=H,t[96]=_,t[97]=tt,t[98]=R):R=t[98];let T;t[99]!==L?(T=L.filter(ai).map(ri),t[99]=L,t[100]=T):T=t[100];let S;t[101]!==z||t[102]!==A||t[103]!==V||t[104]!==E||t[105]!==R||t[106]!==T||t[107]!==et?(S=i.jsxRuntimeExports.jsxs("g",{transform:et,children:[z,A,V,E,R,T]}),t[101]=z,t[102]=A,t[103]=V,t[104]=E,t[105]=R,t[106]=T,t[107]=et,t[108]=S):S=t[108];let it;t[109]!==W||t[110]!==J||t[111]!==K||t[112]!==Q||t[113]!==Z||t[114]!==j||t[115]!==w||t[116]!==S?(it=i.jsxRuntimeExports.jsxs(W,{width:J,height:K,viewBox:Q,direction:Z,ref:j,children:[w,S]}),t[109]=W,t[110]=J,t[111]=K,t[112]=Q,t[113]=Z,t[114]=j,t[115]=w,t[116]=S,t[117]=it):it=t[117];let nt;t[118]!==s?.tooltip||t[119]!==mt||t[120]!==Tt||t[121]!==Nt||t[122]!==n?.tooltip||t[123]!==O?(nt=Nt&&O&&mt&&Tt?i.jsxRuntimeExports.jsx(Ee.Tooltip,{data:Nt,body:O,xPos:mt,yPos:Tt,backgroundStyle:n?.tooltip,className:s?.tooltip}):null,t[118]=s?.tooltip,t[119]=mt,t[120]=Tt,t[121]=Nt,t[122]=n?.tooltip,t[123]=O,t[124]=nt):nt=t[124];let ft;t[125]!==m||t[126]!==B?(ft=m&&B!==void 0?i.jsxRuntimeExports.jsx(Ae.le,{open:B!==void 0,onClose:()=>{Vt(void 0)},children:i.jsxRuntimeExports.jsx("div",{className:"graph-modal-content m-0",dangerouslySetInnerHTML:typeof m=="string"?{__html:Re.string2HTML(m,B)}:void 0,children:typeof m=="function"?m(B):null})}):null,t[125]=m,t[126]=B,t[127]=ft):ft=t[127];let yt;return t[128]!==it||t[129]!==nt||t[130]!==ft?(yt=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[it,nt,ft]}),t[128]=it,t[129]=nt,t[130]=ft,t[131]=yt):yt=t[131],yt}function ri(e){return e.layer}function ai(e){return e.position==="after"}function li(e){return e!==null}function ci(e){return e!==null}function ui(e){return e!==null}function xi(e){return e!==null}function di(e){return e.layer}function mi(e){return e.position==="before"}function pi(e,t){return t!==0}function hi(e,t){return t!==0}function fi(e){return`${e.id}`}function yi(e){const t=i.compilerRuntimeExports.c(43),{data:h,graphTitle:Dt,colors:ie,sources:qt,graphDescription:Ft,barPadding:v,showTicks:Ot,leftMargin:Pt,rightMargin:Bt,topMargin:Mt,bottomMargin:It,truncateBy:st,height:ut,width:g,footNote:D,colorDomain:Ht,colorLegendTitle:O,padding:X,backgroundColor:Wt,radius:ot,tooltip:q,showLabels:M,relativeHeight:k,onSeriesMouseOver:Ut,graphID:xt,suffix:vt,prefix:Gt,maxValue:m,minValue:F,onSeriesMouseClick:zt,graphDownload:jt,dataDownload:n,showValues:s,sortParameter:I,arrowConnector:wt,connectorStrokeWidth:d,language:u,minHeight:$,theme:L,maxBarThickness:dt,maxNumberOfBars:b,minBarThickness:Jt,ariaLabel:Lt,resetSelectionOnDoubleClick:kt,detailsOnClick:ne,axisTitle:Kt,noOfTicks:N,valueColor:U,orientation:$t,styles:a,classNames:o,labelOrder:rt,refValues:at,filterNA:Nt,animate:P,precision:B,showColorScale:Vt,customLayers:mt,highlightedDataPoints:pt,dimmedOpacity:Tt,timeline:ht,sortData:H}=e,W=ie===void 0?Ge.Colors.light.categoricalColors.colors:ie,z=v===void 0?.25:v,A=Ot===void 0?!0:Ot,V=st===void 0?999:st,E=Wt===void 0?!0:Wt,J=ot===void 0?3:ot,K=M===void 0?!0:M,Q=vt===void 0?"":vt,Z=Gt===void 0?"":Gt,j=jt===void 0?!1:jt,w=n===void 0?!1:n,_=s===void 0?!0:s,tt=wt===void 0?!1:wt,et=d===void 0?2:d,R=u===void 0?"en":u,T=$===void 0?0:$,S=L===void 0?"light":L,it=kt===void 0?!0:kt,nt=N===void 0?5:N,ft=$t===void 0?"vertical":$t,yt=Nt===void 0?!0:Nt,At=P===void 0?!1:P,Qt=B===void 0?2:B,G=Vt===void 0?!0:Vt;let f;t[0]!==mt?(f=mt===void 0?[]:mt,t[0]=mt,t[1]=f):f=t[1];const gt=f;let Zt;t[2]!==pt?(Zt=pt===void 0?[]:pt,t[2]=pt,t[3]=Zt):Zt=t[3];const se=Zt,_t=Tt===void 0?.3:Tt,p=ht===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:ht,[Yt,te]=C.useState(0),[Et,ee]=C.useState(0),[lt,r]=C.useState(p.autoplay),x=Ye.sort(Fe.uniqBy(h,"date",!0).map(c=>he.parse(`${c}`,p.dateFormat||"yyyy",new Date).getTime()),Ti),[y,bt]=C.useState(p.autoplay?0:x.length-1),[ae,l]=C.useState(void 0),ct=C.useRef(null),Y=C.useRef(null);let Xt,le;t[4]===Symbol.for("react.memo_cache_sentinel")?(Xt=()=>{const c=new ResizeObserver(St=>{te(St[0].target.clientWidth||620),ee(St[0].target.clientHeight||480)});return ct.current&&c.observe(ct.current),()=>c.disconnect()},le=[],t[4]=Xt,t[5]=le):(Xt=t[4],le=t[5]),C.useEffect(Xt,le),C.useEffect(()=>{const c=setInterval(()=>{bt(St=>St<x.length-1?St+1:0)},(p.speed||2)*1e3);return lt||clearInterval(c),()=>clearInterval(c)},[x,lt,p.speed]);const ge=ve.getSliderMarks(x,y,p.showOnlyActiveDate,p.dateFormat||"yyyy"),Ve=ft==="horizontal"?oi:Ue,ue=je.GraphContainer,xe=o?.graphContainer,de=a?.graphContainer;let oe;t[6]!==o?.description||t[7]!==o?.title||t[8]!==h||t[9]!==w||t[10]!==Ft||t[11]!==j||t[12]!==Dt||t[13]!==a?.description||t[14]!==a?.title||t[15]!==g?(oe=Dt||Ft||j||w?i.jsxRuntimeExports.jsx(Pe.GraphHeader,{styles:{title:a?.title,description:a?.description},classNames:{title:o?.title,description:o?.description},graphTitle:Dt,graphDescription:Ft,width:g,graphDownload:j?Y:void 0,dataDownload:w?h.map(Vi).filter(Ni).length>0?h.map($i).filter(Li):h.filter(Ii):null}):null,t[6]=o?.description,t[7]=o?.title,t[8]=h,t[9]=w,t[10]=Ft,t[11]=j,t[12]=Dt,t[13]=a?.description,t[14]=a?.title,t[15]=g,t[16]=oe):oe=t[16];const me=p.enabled&&x.length>0&&ge?i.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[i.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{r(!lt)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":lt?"Click to pause animation":"Click to play animation",children:lt?i.jsxRuntimeExports.jsx(we.Pause,{}):i.jsxRuntimeExports.jsx(we.Play,{})}),i.jsxRuntimeExports.jsx(ve.Nr,{min:x[0],max:x[x.length-1],marks:ge,step:null,defaultValue:x[x.length-1],value:x[y],onChangeComplete:c=>{bt(x.indexOf(c))},onChange:c=>{bt(x.indexOf(c))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,pe=h.length===0?i.jsxRuntimeExports.jsx(We.EmptyState,{}):i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[G?i.jsxRuntimeExports.jsx(He.ColorLegendWithMouseOver,{width:g,colorDomain:Ht,colors:W,colorLegendTitle:O,setSelectedColor:l,showNAColor:!1,className:o?.colorLegend}):null,i.jsxRuntimeExports.jsx(je.GraphArea,{ref:ct,children:Yt&&Et?i.jsxRuntimeExports.jsx(Ve,{data:I!==void 0?I==="diff"?be.orderBy(fe.ensureCompleteDataForDumbbellChart(h,p.dateFormat||"yyyy").filter(c=>p.enabled?c.date===he.format(new Date(x[y]),p.dateFormat||"yyyy"):c).filter(c=>yt?!c.x.every(Mi):c),Oi,[H||"asc"]).filter((c,St)=>b?St<b:!0):be.orderBy(fe.ensureCompleteDataForDumbbellChart(h,p.dateFormat||"yyyy").filter(c=>p.enabled?c.date===he.format(new Date(x[y]),p.dateFormat||"yyyy"):c).filter(c=>yt?!c.x.every(Ci):c),c=>Ct.checkIfNullOrUndefined(c.x[I])?-1/0:c.x[I],[H||"asc"]).filter((c,St)=>b?St<b:!0):fe.ensureCompleteDataForDumbbellChart(h,p.dateFormat||"yyyy").filter(c=>yt?!c.x.every(Ri):c).filter((c,St)=>b?St<b:!0),dotColors:W,width:Yt,height:Et,radius:J,barPadding:z,showTicks:A,leftMargin:Pt,rightMargin:Bt,topMargin:Mt,bottomMargin:It,truncateBy:V,showLabels:K,showValues:_,tooltip:q,suffix:Q,prefix:Z,onSeriesMouseOver:Ut,maxValue:Ct.checkIfNullOrUndefined(m)?Math.max(...h.map(Ai))<0?0:Math.max(...h.map(wi)):m,minValue:Ct.checkIfNullOrUndefined(F)?Math.min(...h.map(vi))>0?0:Math.min(...h.map(gi)):F,onSeriesMouseClick:zt,selectedColor:ae,arrowConnector:tt,connectorStrokeWidth:et,maxBarThickness:dt,minBarThickness:Jt,resetSelectionOnDoubleClick:it,detailsOnClick:ne,axisTitle:Kt,noOfTicks:nt,valueColor:U,styles:a,classNames:o,labelOrder:rt,refValues:at,animate:At===!0?{duration:.5,once:!0,amount:.5}:At||{duration:0,once:!0,amount:0},precision:Qt,customLayers:gt,highlightedDataPoints:se,dimmedOpacity:_t,rtl:R==="ar"||R==="he"}):null})]});let re;t[17]!==o?.footnote||t[18]!==o?.source||t[19]!==D||t[20]!==qt||t[21]!==a?.footnote||t[22]!==a?.source||t[23]!==g?(re=qt||D?i.jsxRuntimeExports.jsx(Be.GraphFooter,{styles:{footnote:a?.footnote,source:a?.source},classNames:{footnote:o?.footnote,source:o?.source},sources:qt,footNote:D,width:g}):null,t[17]=o?.footnote,t[18]=o?.source,t[19]=D,t[20]=qt,t[21]=a?.footnote,t[22]=a?.source,t[23]=g,t[24]=re):re=t[24];let ce;return t[25]!==ue||t[26]!==Lt||t[27]!==E||t[28]!==xt||t[29]!==ut||t[30]!==R||t[31]!==T||t[32]!==X||t[33]!==k||t[34]!==xe||t[35]!==de||t[36]!==oe||t[37]!==me||t[38]!==pe||t[39]!==re||t[40]!==S||t[41]!==g?(ce=i.jsxRuntimeExports.jsxs(ue,{className:xe,style:de,id:xt,ref:Y,"aria-label":Lt,backgroundColor:E,theme:S,language:R,minHeight:T,width:g,height:ut,relativeHeight:k,padding:X,children:[oe,me,pe,re]}),t[25]=ue,t[26]=Lt,t[27]=E,t[28]=xt,t[29]=ut,t[30]=R,t[31]=T,t[32]=X,t[33]=k,t[34]=xe,t[35]=de,t[36]=oe,t[37]=me,t[38]=pe,t[39]=re,t[40]=S,t[41]=g,t[42]=ce):ce=t[42],ce}function gi(e){return Math.min(...e.x.filter(bi))}function bi(e){return e!==null}function vi(e){return Math.min(...e.x.filter(ji))}function ji(e){return e!==null}function wi(e){return Math.max(...e.x.filter(ki))}function ki(e){return e!==null}function Ai(e){return Math.max(...e.x.filter(Ei))}function Ei(e){return e!==null}function Ri(e){return e==null}function Ci(e){return e==null}function Oi(e){return Ct.checkIfNullOrUndefined(e.x[e.x.length-1])||Ct.checkIfNullOrUndefined(e.x[0])?-1/0:e.x[e.x.length-1]-e.x[0]}function Mi(e){return e==null}function Ii(e){return e!==void 0}function Li(e){return e!==void 0}function $i(e){return e.data}function Ni(e){return e!==void 0}function Vi(e){return e.data}function Ti(e,t){return Xe.ascending(e,t)}exports.DumbbellChart=yi;
2
2
  //# sourceMappingURL=DumbbellChart.cjs.map
@@ -11,11 +11,11 @@ import { c as Lt } from "./checkIfNullOrUndefined-DmfiKkNw.js";
11
11
  import { s as Le } from "./string2HTML-DhG75NqA.js";
12
12
  import { A as $e } from "./AxisTitle-jeI7am8o.js";
13
13
  import { A as We } from "./Axis-CRyfcLjc.js";
14
- import { X as Be } from "./XAxesLabels-DNO0KmjL.js";
14
+ import { X as Be } from "./XAxesLabels-Dy8E1SEo.js";
15
15
  import { Y as Ve } from "./YTicksAndGridLines-Blepl7XF.js";
16
16
  import { R as He, a as Xe } from "./ReferenceLine-2XCwHXQ4.js";
17
17
  import { X as Ye } from "./XTicksAndGridLines-CObVFSm4.js";
18
- import { Y as Ee } from "./YAxesLabels-Dnnng49-.js";
18
+ import { Y as Ee } from "./YAxesLabels-a57ZRv-0.js";
19
19
  import { a as je } from "./linear-BwnDd9KF.js";
20
20
  import { b as Ie } from "./band-CyHaVft5.js";
21
21
  import { u as Ne } from "./use-in-view-Cxa7y1TH.js";
@@ -1,2 +1,2 @@
1
- "use strict";const c=require("./index-CHPV5EwG-CTPQjnHt.cjs"),y=require("./Typography-DX7PlgQU.cjs"),S=require("./ButterflyChart.cjs"),V=require("./index-C6LorfZ-.cjs"),N=require("./DataTable.cjs"),H=require("./DonutChart.cjs"),A=require("./HeatMap.cjs"),v=require("./Histogram.cjs"),B=require("./DualAxisLineChart.cjs"),I=require("./SimpleLineChart.cjs"),P=require("./MultiLineChart.cjs"),W=require("./MultiLineAltChart.cjs"),j=require("./SparkLine.cjs"),q=require("./BiVariateChoroplethMap.cjs"),z=require("./ChoroplethMap.cjs"),F=require("./DotDensityMap.cjs"),X=require("./ParetoChart.cjs"),Y=require("./ScatterPlot.cjs"),E=require("./SlopeChart.cjs"),R=require("./AreaChart.cjs"),G=require("./StatCardFromData.cjs"),$=require("./TreeMapGraph.cjs"),_=require("./UnitChart.cjs"),U=require("./DifferenceLineChart.cjs"),J=require("./SankeyChart.cjs"),K=require("./LineChartWithConfidenceInterval.cjs"),Q=require("./DataCards.cjs"),x=require("./BarGraph.cjs"),Z=require("./DumbbellChart.cjs"),ee=require("./StripChart.cjs"),ae=require("./BeeSwarmChart.cjs"),te=require("./RadarChart.cjs"),oe=require("./BulletChart.cjs"),r=require("./checkIfMultiple-wg6hJLXy.cjs");function ie(L){const a=c.compilerRuntimeExports.c(24),{settings:e,graph:s,graphData:t,debugMode:M,graphDataConfiguration:o,readableHeader:i,updateFilters:n}=L;if(M&&(console.log(`Graph: ${s}`),console.log("Transformed data:",t),console.log("Settings:",e)),typeof t=="string"){const d=`flex my-0 mx-auto grow flex-col justify-center ${e?.width?"w-fit":"w-full"}`;let l;a[0]===Symbol.for("react.memo_cache_sentinel")?(l={height:"inherit"},a[0]=l):l=a[0];let h;a[1]!==t?(h=c.jsxRuntimeExports.jsx(y.j,{size:"sm",marginBottom:"none",className:"p-2 text-center text-accent-dark-red dark:text-accent-red",children:t}),a[1]=t,a[2]=h):h=a[2];let b;return a[3]!==d||a[4]!==h?(b=c.jsxRuntimeExports.jsx("div",{className:d,style:l,children:h}),a[3]=d,a[4]=h,a[5]=b):b=a[5],b}let p;a[6]===Symbol.for("react.memo_cache_sentinel")?(p={barChart:x.SimpleBarGraph,bulletChart:oe.BulletChart,groupedBarChart:x.GroupedBarGraph,stackedBarChart:x.StackedBarGraph,lineChart:I.SimpleLineChart,dualAxisLineChart:B.DualAxisLineChart,multiLineChart:P.MultiLineChart,multiLineAltChart:W.MultiLineAltChart,stackedAreaChart:R.AreaChart,choroplethMap:z.ChoroplethMap,biVariateChoroplethMap:q.BiVariateChoroplethMap,dotDensityMap:F.DotDensityMap,donutChart:H.DonutChart,slopeChart:E.SlopeChart,scatterPlot:Y.ScatterPlot,dumbbellChart:Z.DumbbellChart,treeMap:$.TreeMapGraph,circlePacking:V.CirclePackingGraph,heatMap:A.HeatMap,stripChart:ee.StripChart,beeSwarmChart:ae.BeeSwarmChart,butterflyChart:S.ButterflyChart,histogram:v.Histogram,sparkLine:j.SparkLine,paretoChart:X.ParetoChart,dataTable:N.DataTable,statCard:G.StatCardFromData,unitChart:_.UnitChart,differenceLineChart:U.DifferenceLineChart,sankeyChart:J.SankeyChart,lineChartWithConfidenceInterval:K.LineChartWithConfidenceInterval,dataCards:Q.DataCards,radarChart:te.RadarChart},a[6]=p):p=a[6];const O=p;let u;a[7]!==t||a[8]!==o||a[9]!==i||a[10]!==e||a[11]!==n?(u=d=>{switch(d){case"barChart":return{timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,orientation:e?.orientation,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,height:e?.height,width:e?.width,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,barPadding:e?.barPadding,showValues:e?.showValues,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,truncateBy:e?.truncateBy,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,showColorScale:e?.showColorScale,maxValue:e?.maxValue,minValue:e?.minValue,labelOrder:e?.labelOrder,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,sortData:e?.sortData,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,maxBarThickness:e?.maxBarThickness,minBarThickness:e?.minBarThickness,maxNumberOfBars:e?.maxNumberOfBars,ariaLabel:e?.ariaLabel,onSeriesMouseClick:l=>{n?.(l.label)},resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,detailsOnClick:e?.detailsOnClick,barAxisTitle:e?.barAxisTitle,noOfTicks:e?.noOfTicks,valueColor:e?.valueColor,styles:e?.styles,classNames:e?.classNames,filterNA:e?.filterNA,animate:e?.animate,naLabel:e?.naLabel};case"groupedBarChart":return{timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,orientation:e?.orientation,sortParameter:e?.sortParameter,sortData:e?.sortData,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,showColorScale:e?.showColorScale,sources:e?.sources,barPadding:e?.barPadding,showTicks:e?.showTicks,truncateBy:e?.truncateBy,colorDomain:e?.colorDomain||r.getValues("size",o||[],i||[]),colorLegendTitle:e?.colorLegendTitle,suffix:e?.suffix,prefix:e?.prefix,showValues:e?.showValues,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,showLabels:e?.showLabels,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,labelOrder:e?.labelOrder,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,maxBarThickness:e?.maxBarThickness,ariaLabel:e?.ariaLabel,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,detailsOnClick:e?.detailsOnClick,barAxisTitle:e?.barAxisTitle,noOfTicks:e?.noOfTicks,valueColor:e?.valueColor,styles:e?.styles,classNames:e?.classNames,animate:e?.animate,naLabel:e?.naLabel};case"stackedBarChart":return{timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,orientation:e?.orientation,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,showColorScale:e?.showColorScale,width:e?.width,height:e?.height,sources:e?.sources,barPadding:e?.barPadding,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,truncateBy:e?.truncateBy,colorDomain:e?.colorDomain||r.getValues("size",o||[],i||[]),colorLegendTitle:e?.colorLegendTitle,backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,suffix:e?.suffix,prefix:e?.prefix,labelOrder:e?.labelOrder,showValues:e?.showValues,showLabels:e?.showLabels,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,maxValue:e?.maxValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,maxBarThickness:e?.maxBarThickness,minBarThickness:e?.minBarThickness,maxNumberOfBars:e?.maxNumberOfBars,sortParameter:e?.sortParameter,sortData:e?.sortData,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,barAxisTitle:e?.barAxisTitle,noOfTicks:e?.noOfTicks,valueColor:e?.valueColor,styles:e?.styles,classNames:e?.classNames,animate:e?.animate,naLabel:e?.naLabel};case"bulletChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,orientation:e?.orientation,data:t,barColor:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,height:e?.height,width:e?.width,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,barPadding:e?.barPadding,showValues:e?.showValues,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,truncateBy:e?.truncateBy,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,showColorScale:e?.showColorScale,maxValue:e?.maxValue,minValue:e?.minValue,labelOrder:e?.labelOrder,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,sortData:e?.sortData,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,maxBarThickness:e?.maxBarThickness,minBarThickness:e?.minBarThickness,maxNumberOfBars:e?.maxNumberOfBars,ariaLabel:e?.ariaLabel,onSeriesMouseClick:l=>{n?.(l.label)},resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,detailsOnClick:e?.detailsOnClick,barAxisTitle:e?.barAxisTitle,noOfTicks:e?.noOfTicks,valueColor:e?.valueColor,styles:e?.styles,classNames:e?.classNames,filterNA:e?.filterNA,qualitativeRangeColors:e?.qualitativeRangeColors,targetStyle:e?.targetStyle,targetColor:e?.targetColor,measureBarWidthFactor:e?.measureBarWidthFactor,animate:e?.animate,naLabel:e?.naLabel};case"lineChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,curveType:e?.curveType,data:t,graphID:e?.graphID,lineColor:e?.lineColor,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,showValues:e?.showValues,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refValues:e?.refValues,highlightAreaSettings:e?.highlightAreaSettings,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,regressionLine:e?.regressionLine,ariaLabel:e?.ariaLabel,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,styles:e?.styles,classNames:e?.classNames};case"lineChartWithConfidenceInterval":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,data:t,curveType:e?.curveType,graphID:e?.graphID,lineColor:e?.lineColor,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,showValues:e?.showValues,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refValues:e?.refValues,highlightAreaSettings:e?.highlightAreaSettings,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,regressionLine:e?.regressionLine,ariaLabel:e?.ariaLabel,showIntervalDots:e?.showIntervalDots,showIntervalValues:e?.showIntervalValues,intervalLineStrokeWidth:e?.intervalLineStrokeWidth,intervalLineColors:e?.intervalLineColors,intervalAreaColor:e?.intervalAreaColor,intervalAreaOpacity:e?.intervalAreaOpacity,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,colorLegendTitle:e?.colorLegendTitle,colorLegendColors:e?.colorLegendColors,colorLegendDomain:e?.colorLegendDomain,styles:e?.styles,classNames:e?.classNames};case"dualAxisLineChart":return{showAxisLabels:e?.showAxisLabels,showColorScale:e?.showColorScale,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,data:t,curveType:e?.curveType,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,labels:e?.labels||[r.getValues("y1",o||[],i||[]),r.getValues("y2",o||[],i||[])],footNote:e?.footNote,width:e?.width,height:e?.height,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,showValues:e?.showValues,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,lineColors:e?.lineColors,sameAxes:e?.sameAxes,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,highlightAreaSettings:e?.highlightAreaSettings,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,colorLegendTitle:e?.colorLegendTitle,ariaLabel:e?.ariaLabel,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,lineSuffixes:e?.lineSuffixes,linePrefixes:e?.linePrefixes,styles:e?.styles,classNames:e?.classNames};case"multiLineChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,data:t,curveType:e?.curveType,lineColors:e?.lineColors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,suffix:e?.suffix,prefix:e?.prefix,showColorScale:e?.showColorScale,labels:e?.labels||r.getValues("y",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,showValues:e?.showValues,relativeHeight:e?.relativeHeight,showColorLegendAtTop:e?.showColorLegendAtTop,tooltip:e?.tooltip,refValues:e?.refValues,highlightAreaSettings:e?.highlightAreaSettings,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,highlightedLines:e?.highlightedLines,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,colorLegendTitle:e?.colorLegendTitle,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,ariaLabel:e?.ariaLabel,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,styles:e?.styles,classNames:e?.classNames,dashedLines:e?.dashedLines,dashSettings:e?.dashSettings,labelsToBeHidden:e?.labelsToBeHidden};case"multiLineAltChart":return{naLabel:e?.naLabel,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,data:t,dimmedOpacity:e?.dimmedOpacity,curveType:e?.curveType,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,suffix:e?.suffix,prefix:e?.prefix,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refValues:e?.refValues,showLabels:e?.showLabels,highlightAreaSettings:e?.highlightAreaSettings,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,highlightedLines:e?.highlightedLines,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,colorLegendTitle:e?.colorLegendTitle,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,ariaLabel:e?.ariaLabel,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,styles:e?.styles,classNames:e?.classNames,colorDomain:e?.colorDomain,showNAColor:e?.showNAColor};case"differenceLineChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,data:t,curveType:e?.curveType,lineColors:e?.lineColors,diffAreaColors:e?.diffAreaColors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,suffix:e?.suffix,prefix:e?.prefix,labels:e?.labels||[r.getValues("y1",o||[],i||[]),r.getValues("y2",o||[],i||[])],backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,showValues:e?.showValues,relativeHeight:e?.relativeHeight,showColorLegendAtTop:e?.showColorLegendAtTop,tooltip:e?.tooltip,refValues:e?.refValues,highlightAreaSettings:e?.highlightAreaSettings,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,colorLegendTitle:e?.colorLegendTitle,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,ariaLabel:e?.ariaLabel,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,styles:e?.styles,classNames:e?.classNames};case"stackedAreaChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,data:t,curveType:e?.curveType,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,colorDomain:e?.colorDomain||r.getValues("y",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,colorLegendTitle:e?.colorLegendTitle,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,relativeHeight:e?.relativeHeight,bottomMargin:e?.bottomMargin,tooltip:e?.tooltip,refValues:e?.refValues,highlightAreaSettings:e?.highlightAreaSettings,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,showColorScale:e?.showColorScale,language:e?.language,minHeight:e?.minHeight,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,ariaLabel:e?.ariaLabel,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,suffix:e?.suffix,prefix:e?.prefix,styles:e?.styles,classNames:e?.classNames};case"choroplethMap":return{timeline:e?.timeline,customLayers:e?.customLayers,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,collapseColorScaleByDefault:e?.collapseColorScaleByDefault,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,graphTitle:e?.graphTitle,mapData:e?.mapData,mapProjection:e?.mapProjection,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,colorDomain:e?.colorDomain,colors:e?.colors,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("x",o||[],i||[]),scaleType:e?.scaleType,data:t,scale:e?.scale,centerPoint:e?.centerPoint,backgroundColor:e?.backgroundColor,mapBorderWidth:e?.mapBorderWidth,mapNoDataColor:e?.mapNoDataColor,mapBorderColor:e?.mapBorderColor,relativeHeight:e?.relativeHeight,padding:e?.padding,isWorldMap:e?.isWorldMap,tooltip:e?.tooltip,showColorScale:e?.showColorScale,zoomScaleExtend:e?.zoomScaleExtend,zoomTranslateExtend:e?.zoomTranslateExtend,graphID:e?.graphID,highlightedIds:e?.highlightedIds,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,mapProperty:e?.mapProperty,showAntarctica:e?.showAntarctica,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,onSeriesMouseClick:l=>{n?.(l.id)},detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,zoomInteraction:e?.zoomInteraction,animate:e?.animate};case"biVariateChoroplethMap":return{timeline:e?.timeline,customLayers:e?.customLayers,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,collapseColorScaleByDefault:e?.collapseColorScaleByDefault,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,mapData:e?.mapData,mapProjection:e?.mapProjection,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,xColorLegendTitle:Object.keys(e||{}).indexOf("xColorLegendTitle")!==-1?e?.xColorLegendTitle:r.getValues("x",o||[],i||[]),yColorLegendTitle:Object.keys(e||{}).indexOf("yColorLegendTitle")!==-1?e?.yColorLegendTitle:r.getValues("y",o||[],i||[]),xDomain:e?.xDomain,yDomain:e?.yDomain,colors:e?.colors,scale:e?.scale,centerPoint:e?.centerPoint,backgroundColor:e?.backgroundColor,mapBorderWidth:e?.mapBorderWidth,mapNoDataColor:e?.mapNoDataColor,padding:e?.padding,mapBorderColor:e?.mapBorderColor,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,isWorldMap:e?.isWorldMap,zoomScaleExtend:e?.zoomScaleExtend,zoomTranslateExtend:e?.zoomTranslateExtend,graphID:e?.graphID,highlightedIds:e?.highlightedIds,mapProperty:e?.mapProperty,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,showAntarctica:e?.showAntarctica,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,onSeriesMouseClick:l=>{n?.(l.id)},detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,zoomInteraction:e?.zoomInteraction,animate:e?.animate};case"dotDensityMap":return{timeline:e?.timeline,customLayers:e?.customLayers,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,collapseColorScaleByDefault:e?.collapseColorScaleByDefault,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,graphTitle:e?.graphTitle,mapData:e?.mapData,mapProjection:e?.mapProjection,graphDescription:e?.graphDescription,footNote:e?.footNote,maxRadiusValue:e?.maxRadiusValue,width:e?.width,height:e?.height,radius:e?.radius,sources:e?.sources,colors:e?.colors,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),data:t,scale:e?.scale,centerPoint:e?.centerPoint,backgroundColor:e?.backgroundColor,mapBorderWidth:e?.mapBorderWidth,mapNoDataColor:e?.mapNoDataColor,mapBorderColor:e?.mapBorderColor,padding:e?.padding,showLabels:e?.showLabels,relativeHeight:e?.relativeHeight,isWorldMap:e?.isWorldMap,tooltip:e?.tooltip,showColorScale:e?.showColorScale,zoomScaleExtend:e?.zoomScaleExtend,zoomTranslateExtend:e?.zoomTranslateExtend,graphID:e?.graphID,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,showAntarctica:e?.showAntarctica,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,zoomInteraction:e?.zoomInteraction,animate:e?.animate};case"donutChart":return{precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,mainText:e?.mainText,data:t,colors:e?.colors,graphTitle:e?.graphTitle,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,graphDescription:e?.graphDescription,subNote:e?.subNote,footNote:e?.footNote,radius:e?.radius,strokeWidth:e?.strokeWidth,showColorScale:e?.showColorScale,backgroundColor:e?.backgroundColor,padding:e?.padding,tooltip:e?.tooltip,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,colorDomain:e?.colorDomain,sortData:e?.sortData,language:e?.language,width:e?.width,height:e?.height,minHeight:e?.minHeight,relativeHeight:e?.relativeHeight,ariaLabel:e?.ariaLabel,legendMaxWidth:e?.legendMaxWidth,onSeriesMouseClick:l=>{n?.(l.label)},detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,colorScaleMaxWidth:e?.colorScaleMaxWidth};case"slopeChart":return{customLayers:e?.customLayers,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,showLabels:e?.showLabels,colors:e?.colors,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),radius:e?.radius,axisTitles:e?.axisTitles,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,highlightedDataPoints:e?.highlightedDataPoints,showColorScale:e?.showColorScale,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,fillContainer:e?.fillContainer,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"scatterPlot":return{timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,showLabels:e?.showLabels,colors:e?.colors,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),radius:e?.radius,xAxisTitle:Object.keys(e||{}).indexOf("xAxisTitle")!==-1?e?.xAxisTitle:r.getValues("x",o||[],i||[]),yAxisTitle:Object.keys(e||{}).indexOf("yAxisTitle")!==-1?e?.yAxisTitle:r.getValues("y",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refXValues:e?.refXValues,refYValues:e?.refYValues,highlightedDataPoints:e?.highlightedDataPoints,highlightAreaSettings:e?.highlightAreaSettings,showColorScale:e?.showColorScale,graphID:e?.graphID,maxRadiusValue:e?.maxRadiusValue,maxXValue:e?.maxXValue,minXValue:e?.minXValue,maxYValue:e?.maxYValue,minYValue:e?.minYValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,regressionLine:e?.regressionLine,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,noOfXTicks:e?.noOfXTicks,noOfYTicks:e?.noOfYTicks,labelColor:e?.labelColor,xSuffix:e?.xSuffix,ySuffix:e?.ySuffix,xPrefix:e?.xPrefix,yPrefix:e?.yPrefix,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"dumbbellChart":return{timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,orientation:e?.orientation,refValues:e?.refValues,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,barPadding:e?.barPadding,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,truncateBy:e?.truncateBy,labelOrder:e?.labelOrder,showColorScale:e?.showColorScale,colorDomain:e?.colorDomain||r.getValues("x",o||[],i||[]),colorLegendTitle:e?.colorLegendTitle,backgroundColor:e?.backgroundColor,padding:e?.padding,radius:e?.radius,relativeHeight:e?.relativeHeight,showValues:e?.showValues,showLabels:e?.showLabels,tooltip:e?.tooltip,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,suffix:e?.suffix,prefix:e?.prefix,language:e?.language,minHeight:e?.minHeight,sortParameter:e?.sortParameter,sortData:e?.sortData,arrowConnector:e?.arrowConnector,connectorStrokeWidth:e?.connectorStrokeWidth,maxBarThickness:e?.maxBarThickness,minBarThickness:e?.minBarThickness,maxNumberOfBars:e?.maxNumberOfBars,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,axisTitle:e?.axisTitle,noOfTicks:e?.noOfTicks,valueColor:e?.valueColor,styles:e?.styles,classNames:e?.classNames,animate:e?.animate,highlightedDataPoints:e?.highlightedDataPoints,dimmedOpacity:e?.dimmedOpacity};case"treeMap":return{precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,tooltip:e?.tooltip,showColorScale:e?.showColorScale,showValues:e?.showValues,graphID:e?.graphID,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,ariaLabel:e?.ariaLabel,onSeriesMouseClick:l=>{n?.(l.label)},detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"circlePacking":return{precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,tooltip:e?.tooltip,showColorScale:e?.showColorScale,showValues:e?.showValues,graphID:e?.graphID,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,ariaLabel:e?.ariaLabel,radius:e?.radius,maxRadiusValue:e?.maxRadiusValue,onSeriesMouseClick:l=>{n?.(l.label)},detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"heatMap":return{precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,scaleType:e?.scaleType,colorDomain:e?.colorDomain,showColumnLabels:e?.showColumnLabels,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,truncateBy:e?.truncateBy,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,suffix:e?.suffix,prefix:e?.prefix,showValues:e?.showValues,showRowLabels:e?.showRowLabels,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,graphID:e?.graphID,noDataColor:e?.noDataColor,showColorScale:e?.showColorScale,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,fillContainer:e?.fillContainer,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"stripChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,orientation:e?.orientation,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,colors:e?.colors,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),radius:e?.radius,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,highlightedDataPoints:e?.highlightedDataPoints,showColorScale:e?.showColorScale,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,noOfTicks:e?.noOfTicks,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,prefix:e?.prefix,suffix:e?.suffix,stripType:e?.stripType,valueColor:e?.valueColor,language:e?.language,minHeight:e?.minHeight,highlightColor:e?.highlightColor,dotOpacity:e?.dotOpacity,showNAColor:e?.showNAColor,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"beeSwarmChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,showColorScale:e?.showColorScale,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,radius:e?.radius,maxRadiusValue:e?.maxRadiusValue,maxValue:e?.maxValue,minValue:e?.minValue,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,orientation:e?.orientation,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"butterflyChart":return{naLabel:e?.naLabel,timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,leftBarTitle:Object.keys(e||{}).indexOf("leftBarTitle")!==-1?e?.leftBarTitle:r.getValues("leftBar",o||[],i||[]),rightBarTitle:Object.keys(e||{}).indexOf("rightBarTitle")!==-1?e?.rightBarTitle:r.getValues("rightBar",o||[],i||[]),footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,barColors:e?.barColors,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,barPadding:e?.barPadding,truncateBy:e?.truncateBy,suffix:e?.suffix,prefix:e?.prefix,showTicks:e?.showTicks,showValues:e?.showValues,centerGap:e?.centerGap,maxValue:e?.maxValue,minValue:e?.minValue,showColorScale:e?.showColorScale,refValues:e?.refValues,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"histogram":return{precision:e?.precision,theme:e?.theme,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,barPadding:e?.barPadding,showValues:e?.showValues,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,maxValue:e?.maxValue,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,numberOfBins:e?.numberOfBins,truncateBy:e?.truncateBy,donutStrokeWidth:e?.donutStrokeWidth,sortData:e?.sortData,barGraphLayout:e?.barGraphLayout,graphType:e?.graphType,language:e?.language,minHeight:e?.minHeight,maxBarThickness:e?.maxBarThickness,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames};case"sparkLine":return{customLayers:e?.customLayers,theme:e?.theme,data:t,curveType:e?.curveType,lineColor:e?.lineColor,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,dateFormat:e?.dateFormat,area:e?.area,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,styles:e?.styles,classNames:e?.classNames};case"paretoChart":return{showAxisLabels:e?.showAxisLabels,showColorScale:e?.showColorScale,naLabel:e?.naLabel,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,showValues:e?.showValues,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,barTitle:Object.keys(e||{}).indexOf("barTitle")!==-1?e?.barTitle:r.getValues("barTitle",o||[],i||[]),lineTitle:Object.keys(e||{}).indexOf("lineTitle")!==-1?e?.lineTitle:r.getValues("lineTitle",o||[],i||[]),footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,barColor:e?.barColor,curveType:e?.curveType,lineColor:e?.lineColor,sameAxes:e?.sameAxes,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,barPadding:e?.barPadding,truncateBy:e?.truncateBy,showLabels:e?.showLabels,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,noOfTicks:e?.noOfTicks,lineSuffix:e?.lineSuffix,barSuffix:e?.barSuffix,linePrefix:e?.lineSuffix,barPrefix:e?.barPrefix,barAxisTitle:e?.barAxisTitle,lineAxisTitle:e?.lineAxisTitle,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"dataTable":return{naLabel:e?.naLabel,precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,graphTitle:e?.graphTitle,sources:e?.sources,graphDescription:e?.graphDescription,footNote:e?.footNote,graphID:e?.graphID,width:e?.width,height:e?.height,columnData:e?.columnData||[],data:t,language:e?.language,ariaLabel:e?.ariaLabel,minWidth:e?.minWidth,backgroundColor:e?.backgroundColor,padding:e?.padding,styles:e?.styles,classNames:e?.classNames};case"statCard":return{precision:e?.precision,theme:e?.theme,year:e?.year,data:t,graphTitle:e?.graphTitle||"",graphDescription:e?.graphDescription,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources||[],footNote:e?.footNote,backgroundColor:e?.backgroundColor,padding:e?.padding,graphID:e?.graphID,aggregationMethod:e?.aggregationMethod,language:e?.language,minHeight:e?.minHeight,countOnly:e?.countOnly,ariaLabel:e?.ariaLabel,textBackground:e?.textBackground,headingFontSize:e?.headingFontSize,centerAlign:e?.centerAlign,verticalAlign:e?.verticalAlign,styles:e?.styles,classNames:e?.classNames,layout:e?.layout};case"unitChart":return{precision:e?.precision,theme:e?.theme,totalNoOfDots:e?.totalNoOfDots,gridSize:e?.gridSize,unitPadding:e?.unitPadding,size:e?.size,graphTitle:e?.graphTitle,sources:e?.sources,colors:e?.colors,graphDescription:e?.graphDescription,footNote:e?.footNote,backgroundColor:e?.backgroundColor,padding:e?.padding,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,showColorScale:e?.showColorScale,showStrokeForWhiteDots:e?.showStrokeForWhiteDots,note:e?.note,data:t,width:e?.width,height:e?.height,minHeight:e?.minHeight,relativeHeight:e?.relativeHeight,ariaLabel:e?.ariaLabel,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"sankeyChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,showLabels:e?.showLabels,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,truncateBy:e?.truncateBy,padding:e?.padding,backgroundColor:e?.backgroundColor,tooltip:e?.tooltip,suffix:e?.suffix,prefix:e?.prefix,relativeHeight:e?.relativeHeight,showValues:e?.showValues,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,fillContainer:e?.fillContainer,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,sourceColors:e?.sourceColors,targetColors:e?.targetColors,sourceColorDomain:e?.sourceColorDomain,targetColorDomain:e?.targetColorDomain,nodePadding:e?.nodePadding,nodeWidth:e?.nodeWidth,highlightedSourceDataPoints:e?.highlightedSourceDataPoints,highlightedTargetDataPoints:e?.highlightedTargetDataPoints,defaultLinkOpacity:e?.defaultLinkOpacity,sourceTitle:e?.sourceTitle,targetTitle:e?.targetTitle,sortNodes:e?.sortNodes,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"dataCards":return{theme:e?.theme,graphTitle:e?.graphTitle,sources:e?.sources,graphDescription:e?.graphDescription,footNote:e?.footNote,graphID:e?.graphID,width:e?.width,height:e?.height,columnData:e?.columnData||[],data:t,language:e?.language,ariaLabel:e?.ariaLabel,cardTemplate:e?.cardTemplate,cardBackgroundColor:e?.cardBackgroundColor,cardFilters:e?.cardFilters||[],cardSortingOptions:e?.cardSortingOptions,cardSearchColumns:e?.cardSearchColumns,cardMinWidth:e?.cardMinWidth,backgroundColor:e?.backgroundColor,padding:e?.padding,detailsOnClick:e?.detailsOnClick,allowDataDownloadOnDetail:e?.allowDataDownloadOnDetail,noOfItemsInAPage:e?.noOfItemsInAPage,uiMode:e?.uiMode,styles:e?.styles,classNames:e?.classNames};case"radarChart":return{customLayers:e?.customLayers,precision:e?.precision,graphTitle:e?.graphTitle,dimmedOpacity:e?.dimmedOpacity,graphDescription:e?.graphDescription,footNote:e?.footNote,sources:e?.sources,ariaLabel:e?.ariaLabel,colors:e?.colors,colorDomain:e?.colorDomain,colorLegendTitle:e?.colorLegendTitle,backgroundColor:e?.backgroundColor,styles:e?.styles,classNames:e?.classNames,width:e?.width,height:e?.height,minHeight:e?.minHeight,relativeHeight:e?.relativeHeight,padding:e?.padding,radius:e?.radius,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,maxValue:e?.maxValue,minValue:e?.minValue,showValues:e?.showValues,showDots:e?.showDots,strokeWidth:e?.strokeWidth,fillShape:e?.fillShape,noOfTicks:e?.noOfTicks,showColorScale:e?.showColorScale,showNAColor:e?.showNAColor,highlightedLines:e?.highlightedLines,axisLabels:e?.axisLabels,curveType:e?.curveType,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,tooltip:e?.tooltip,detailsOnClick:e?.detailsOnClick,language:e?.language,theme:e?.theme,graphID:e?.graphID,animate:e?.animate};default:return{}}},a[7]=t,a[8]=o,a[9]=i,a[10]=e,a[11]=n,a[12]=u):u=a[12];const w=u,m=O[s];let D;a[13]!==w||a[14]!==s?(D=w(s),a[13]=w,a[14]=s,a[15]=D):D=a[15];const T=D,k=`grow my-0 ${s!=="statCard"?"mx-auto":"mx-0"} flex flex-col w-full ${s!=="unitChart"&&s!=="statCard"?"justify-center":"justify-start"} ${e?.theme||"light"}`;let f;a[16]===Symbol.for("react.memo_cache_sentinel")?(f={minHeight:"inherit"},a[16]=f):f=a[16];let g;a[17]!==m||a[18]!==s||a[19]!==T?(g=m?c.jsxRuntimeExports.jsx(m,{...T}):c.jsxRuntimeExports.jsx(y.j,{size:"sm",marginBottom:"none",className:"p-2 text-center text-accent-dark-red dark:text-accent-red",children:`Invalid chart type: ${s}`}),a[17]=m,a[18]=s,a[19]=T,a[20]=g):g=a[20];let C;return a[21]!==k||a[22]!==g?(C=c.jsxRuntimeExports.jsx("div",{className:k,style:f,children:g}),a[21]=k,a[22]=g,a[23]=C):C=a[23],C}exports.GraphEl=ie;
2
- //# sourceMappingURL=GraphEl-D5MUfp45.cjs.map
1
+ "use strict";const c=require("./index-CHPV5EwG-CTPQjnHt.cjs"),y=require("./Typography-DX7PlgQU.cjs"),S=require("./ButterflyChart.cjs"),V=require("./index-xRHRLDIp.cjs"),N=require("./DataTable.cjs"),H=require("./DonutChart.cjs"),A=require("./HeatMap.cjs"),v=require("./Histogram.cjs"),B=require("./DualAxisLineChart.cjs"),I=require("./SimpleLineChart.cjs"),P=require("./MultiLineChart.cjs"),W=require("./MultiLineAltChart.cjs"),j=require("./SparkLine.cjs"),q=require("./BiVariateChoroplethMap.cjs"),z=require("./ChoroplethMap.cjs"),F=require("./DotDensityMap.cjs"),X=require("./ParetoChart.cjs"),Y=require("./ScatterPlot.cjs"),E=require("./SlopeChart.cjs"),R=require("./AreaChart.cjs"),G=require("./StatCardFromData.cjs"),$=require("./TreeMapGraph.cjs"),_=require("./UnitChart.cjs"),U=require("./DifferenceLineChart.cjs"),J=require("./SankeyChart.cjs"),K=require("./LineChartWithConfidenceInterval.cjs"),Q=require("./DataCards.cjs"),x=require("./BarGraph.cjs"),Z=require("./DumbbellChart.cjs"),ee=require("./StripChart.cjs"),ae=require("./BeeSwarmChart.cjs"),te=require("./RadarChart.cjs"),oe=require("./BulletChart.cjs"),r=require("./checkIfMultiple-wg6hJLXy.cjs");function ie(L){const a=c.compilerRuntimeExports.c(24),{settings:e,graph:s,graphData:t,debugMode:M,graphDataConfiguration:o,readableHeader:i,updateFilters:n}=L;if(M&&(console.log(`Graph: ${s}`),console.log("Transformed data:",t),console.log("Settings:",e)),typeof t=="string"){const d=`flex my-0 mx-auto grow flex-col justify-center ${e?.width?"w-fit":"w-full"}`;let l;a[0]===Symbol.for("react.memo_cache_sentinel")?(l={height:"inherit"},a[0]=l):l=a[0];let h;a[1]!==t?(h=c.jsxRuntimeExports.jsx(y.j,{size:"sm",marginBottom:"none",className:"p-2 text-center text-accent-dark-red dark:text-accent-red",children:t}),a[1]=t,a[2]=h):h=a[2];let b;return a[3]!==d||a[4]!==h?(b=c.jsxRuntimeExports.jsx("div",{className:d,style:l,children:h}),a[3]=d,a[4]=h,a[5]=b):b=a[5],b}let p;a[6]===Symbol.for("react.memo_cache_sentinel")?(p={barChart:x.SimpleBarGraph,bulletChart:oe.BulletChart,groupedBarChart:x.GroupedBarGraph,stackedBarChart:x.StackedBarGraph,lineChart:I.SimpleLineChart,dualAxisLineChart:B.DualAxisLineChart,multiLineChart:P.MultiLineChart,multiLineAltChart:W.MultiLineAltChart,stackedAreaChart:R.AreaChart,choroplethMap:z.ChoroplethMap,biVariateChoroplethMap:q.BiVariateChoroplethMap,dotDensityMap:F.DotDensityMap,donutChart:H.DonutChart,slopeChart:E.SlopeChart,scatterPlot:Y.ScatterPlot,dumbbellChart:Z.DumbbellChart,treeMap:$.TreeMapGraph,circlePacking:V.CirclePackingGraph,heatMap:A.HeatMap,stripChart:ee.StripChart,beeSwarmChart:ae.BeeSwarmChart,butterflyChart:S.ButterflyChart,histogram:v.Histogram,sparkLine:j.SparkLine,paretoChart:X.ParetoChart,dataTable:N.DataTable,statCard:G.StatCardFromData,unitChart:_.UnitChart,differenceLineChart:U.DifferenceLineChart,sankeyChart:J.SankeyChart,lineChartWithConfidenceInterval:K.LineChartWithConfidenceInterval,dataCards:Q.DataCards,radarChart:te.RadarChart},a[6]=p):p=a[6];const O=p;let u;a[7]!==t||a[8]!==o||a[9]!==i||a[10]!==e||a[11]!==n?(u=d=>{switch(d){case"barChart":return{timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,orientation:e?.orientation,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,height:e?.height,width:e?.width,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,barPadding:e?.barPadding,showValues:e?.showValues,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,truncateBy:e?.truncateBy,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,showColorScale:e?.showColorScale,maxValue:e?.maxValue,minValue:e?.minValue,labelOrder:e?.labelOrder,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,sortData:e?.sortData,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,maxBarThickness:e?.maxBarThickness,minBarThickness:e?.minBarThickness,maxNumberOfBars:e?.maxNumberOfBars,ariaLabel:e?.ariaLabel,onSeriesMouseClick:l=>{n?.(l.label)},resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,detailsOnClick:e?.detailsOnClick,barAxisTitle:e?.barAxisTitle,noOfTicks:e?.noOfTicks,valueColor:e?.valueColor,styles:e?.styles,classNames:e?.classNames,filterNA:e?.filterNA,animate:e?.animate,naLabel:e?.naLabel};case"groupedBarChart":return{timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,orientation:e?.orientation,sortParameter:e?.sortParameter,sortData:e?.sortData,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,showColorScale:e?.showColorScale,sources:e?.sources,barPadding:e?.barPadding,showTicks:e?.showTicks,truncateBy:e?.truncateBy,colorDomain:e?.colorDomain||r.getValues("size",o||[],i||[]),colorLegendTitle:e?.colorLegendTitle,suffix:e?.suffix,prefix:e?.prefix,showValues:e?.showValues,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,showLabels:e?.showLabels,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,labelOrder:e?.labelOrder,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,maxBarThickness:e?.maxBarThickness,ariaLabel:e?.ariaLabel,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,detailsOnClick:e?.detailsOnClick,barAxisTitle:e?.barAxisTitle,noOfTicks:e?.noOfTicks,valueColor:e?.valueColor,styles:e?.styles,classNames:e?.classNames,animate:e?.animate,naLabel:e?.naLabel};case"stackedBarChart":return{timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,orientation:e?.orientation,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,showColorScale:e?.showColorScale,width:e?.width,height:e?.height,sources:e?.sources,barPadding:e?.barPadding,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,truncateBy:e?.truncateBy,colorDomain:e?.colorDomain||r.getValues("size",o||[],i||[]),colorLegendTitle:e?.colorLegendTitle,backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,suffix:e?.suffix,prefix:e?.prefix,labelOrder:e?.labelOrder,showValues:e?.showValues,showLabels:e?.showLabels,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,maxValue:e?.maxValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,maxBarThickness:e?.maxBarThickness,minBarThickness:e?.minBarThickness,maxNumberOfBars:e?.maxNumberOfBars,sortParameter:e?.sortParameter,sortData:e?.sortData,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,barAxisTitle:e?.barAxisTitle,noOfTicks:e?.noOfTicks,valueColor:e?.valueColor,styles:e?.styles,classNames:e?.classNames,animate:e?.animate,naLabel:e?.naLabel};case"bulletChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,orientation:e?.orientation,data:t,barColor:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,height:e?.height,width:e?.width,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,barPadding:e?.barPadding,showValues:e?.showValues,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,truncateBy:e?.truncateBy,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,showColorScale:e?.showColorScale,maxValue:e?.maxValue,minValue:e?.minValue,labelOrder:e?.labelOrder,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,sortData:e?.sortData,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,maxBarThickness:e?.maxBarThickness,minBarThickness:e?.minBarThickness,maxNumberOfBars:e?.maxNumberOfBars,ariaLabel:e?.ariaLabel,onSeriesMouseClick:l=>{n?.(l.label)},resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,detailsOnClick:e?.detailsOnClick,barAxisTitle:e?.barAxisTitle,noOfTicks:e?.noOfTicks,valueColor:e?.valueColor,styles:e?.styles,classNames:e?.classNames,filterNA:e?.filterNA,qualitativeRangeColors:e?.qualitativeRangeColors,targetStyle:e?.targetStyle,targetColor:e?.targetColor,measureBarWidthFactor:e?.measureBarWidthFactor,animate:e?.animate,naLabel:e?.naLabel};case"lineChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,curveType:e?.curveType,data:t,graphID:e?.graphID,lineColor:e?.lineColor,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,showValues:e?.showValues,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refValues:e?.refValues,highlightAreaSettings:e?.highlightAreaSettings,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,regressionLine:e?.regressionLine,ariaLabel:e?.ariaLabel,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,styles:e?.styles,classNames:e?.classNames};case"lineChartWithConfidenceInterval":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,data:t,curveType:e?.curveType,graphID:e?.graphID,lineColor:e?.lineColor,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,showValues:e?.showValues,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refValues:e?.refValues,highlightAreaSettings:e?.highlightAreaSettings,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,regressionLine:e?.regressionLine,ariaLabel:e?.ariaLabel,showIntervalDots:e?.showIntervalDots,showIntervalValues:e?.showIntervalValues,intervalLineStrokeWidth:e?.intervalLineStrokeWidth,intervalLineColors:e?.intervalLineColors,intervalAreaColor:e?.intervalAreaColor,intervalAreaOpacity:e?.intervalAreaOpacity,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,colorLegendTitle:e?.colorLegendTitle,colorLegendColors:e?.colorLegendColors,colorLegendDomain:e?.colorLegendDomain,styles:e?.styles,classNames:e?.classNames};case"dualAxisLineChart":return{showAxisLabels:e?.showAxisLabels,showColorScale:e?.showColorScale,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,data:t,curveType:e?.curveType,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,labels:e?.labels||[r.getValues("y1",o||[],i||[]),r.getValues("y2",o||[],i||[])],footNote:e?.footNote,width:e?.width,height:e?.height,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,showValues:e?.showValues,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,lineColors:e?.lineColors,sameAxes:e?.sameAxes,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,highlightAreaSettings:e?.highlightAreaSettings,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,colorLegendTitle:e?.colorLegendTitle,ariaLabel:e?.ariaLabel,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,lineSuffixes:e?.lineSuffixes,linePrefixes:e?.linePrefixes,styles:e?.styles,classNames:e?.classNames};case"multiLineChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,data:t,curveType:e?.curveType,lineColors:e?.lineColors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,suffix:e?.suffix,prefix:e?.prefix,showColorScale:e?.showColorScale,labels:e?.labels||r.getValues("y",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,showValues:e?.showValues,relativeHeight:e?.relativeHeight,showColorLegendAtTop:e?.showColorLegendAtTop,tooltip:e?.tooltip,refValues:e?.refValues,highlightAreaSettings:e?.highlightAreaSettings,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,highlightedLines:e?.highlightedLines,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,colorLegendTitle:e?.colorLegendTitle,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,ariaLabel:e?.ariaLabel,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,styles:e?.styles,classNames:e?.classNames,dashedLines:e?.dashedLines,dashSettings:e?.dashSettings,labelsToBeHidden:e?.labelsToBeHidden};case"multiLineAltChart":return{naLabel:e?.naLabel,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,data:t,dimmedOpacity:e?.dimmedOpacity,curveType:e?.curveType,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,suffix:e?.suffix,prefix:e?.prefix,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refValues:e?.refValues,showLabels:e?.showLabels,highlightAreaSettings:e?.highlightAreaSettings,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,highlightedLines:e?.highlightedLines,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,colorLegendTitle:e?.colorLegendTitle,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,ariaLabel:e?.ariaLabel,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,styles:e?.styles,classNames:e?.classNames,colorDomain:e?.colorDomain,showNAColor:e?.showNAColor};case"differenceLineChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,data:t,curveType:e?.curveType,lineColors:e?.lineColors,diffAreaColors:e?.diffAreaColors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,suffix:e?.suffix,prefix:e?.prefix,labels:e?.labels||[r.getValues("y1",o||[],i||[]),r.getValues("y2",o||[],i||[])],backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,showValues:e?.showValues,relativeHeight:e?.relativeHeight,showColorLegendAtTop:e?.showColorLegendAtTop,tooltip:e?.tooltip,refValues:e?.refValues,highlightAreaSettings:e?.highlightAreaSettings,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,animate:e?.animate,strokeWidth:e?.strokeWidth,showDots:e?.showDots,colorLegendTitle:e?.colorLegendTitle,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,ariaLabel:e?.ariaLabel,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,minDate:e?.minDate,maxDate:e?.maxDate,styles:e?.styles,classNames:e?.classNames};case"stackedAreaChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,data:t,curveType:e?.curveType,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,noOfXTicks:e?.noOfXTicks,dateFormat:e?.dateFormat,colorDomain:e?.colorDomain||r.getValues("y",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,colorLegendTitle:e?.colorLegendTitle,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,relativeHeight:e?.relativeHeight,bottomMargin:e?.bottomMargin,tooltip:e?.tooltip,refValues:e?.refValues,highlightAreaSettings:e?.highlightAreaSettings,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,showColorScale:e?.showColorScale,language:e?.language,minHeight:e?.minHeight,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,ariaLabel:e?.ariaLabel,yAxisTitle:e?.yAxisTitle,noOfYTicks:e?.noOfYTicks,suffix:e?.suffix,prefix:e?.prefix,styles:e?.styles,classNames:e?.classNames};case"choroplethMap":return{timeline:e?.timeline,customLayers:e?.customLayers,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,collapseColorScaleByDefault:e?.collapseColorScaleByDefault,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,graphTitle:e?.graphTitle,mapData:e?.mapData,mapProjection:e?.mapProjection,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,colorDomain:e?.colorDomain,colors:e?.colors,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("x",o||[],i||[]),scaleType:e?.scaleType,data:t,scale:e?.scale,centerPoint:e?.centerPoint,backgroundColor:e?.backgroundColor,mapBorderWidth:e?.mapBorderWidth,mapNoDataColor:e?.mapNoDataColor,mapBorderColor:e?.mapBorderColor,relativeHeight:e?.relativeHeight,padding:e?.padding,isWorldMap:e?.isWorldMap,tooltip:e?.tooltip,showColorScale:e?.showColorScale,zoomScaleExtend:e?.zoomScaleExtend,zoomTranslateExtend:e?.zoomTranslateExtend,graphID:e?.graphID,highlightedIds:e?.highlightedIds,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,mapProperty:e?.mapProperty,showAntarctica:e?.showAntarctica,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,onSeriesMouseClick:l=>{n?.(l.id)},detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,zoomInteraction:e?.zoomInteraction,animate:e?.animate};case"biVariateChoroplethMap":return{timeline:e?.timeline,customLayers:e?.customLayers,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,collapseColorScaleByDefault:e?.collapseColorScaleByDefault,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,mapData:e?.mapData,mapProjection:e?.mapProjection,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,xColorLegendTitle:Object.keys(e||{}).indexOf("xColorLegendTitle")!==-1?e?.xColorLegendTitle:r.getValues("x",o||[],i||[]),yColorLegendTitle:Object.keys(e||{}).indexOf("yColorLegendTitle")!==-1?e?.yColorLegendTitle:r.getValues("y",o||[],i||[]),xDomain:e?.xDomain,yDomain:e?.yDomain,colors:e?.colors,scale:e?.scale,centerPoint:e?.centerPoint,backgroundColor:e?.backgroundColor,mapBorderWidth:e?.mapBorderWidth,mapNoDataColor:e?.mapNoDataColor,padding:e?.padding,mapBorderColor:e?.mapBorderColor,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,isWorldMap:e?.isWorldMap,zoomScaleExtend:e?.zoomScaleExtend,zoomTranslateExtend:e?.zoomTranslateExtend,graphID:e?.graphID,highlightedIds:e?.highlightedIds,mapProperty:e?.mapProperty,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,showAntarctica:e?.showAntarctica,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,onSeriesMouseClick:l=>{n?.(l.id)},detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,zoomInteraction:e?.zoomInteraction,animate:e?.animate};case"dotDensityMap":return{timeline:e?.timeline,customLayers:e?.customLayers,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,collapseColorScaleByDefault:e?.collapseColorScaleByDefault,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,graphTitle:e?.graphTitle,mapData:e?.mapData,mapProjection:e?.mapProjection,graphDescription:e?.graphDescription,footNote:e?.footNote,maxRadiusValue:e?.maxRadiusValue,width:e?.width,height:e?.height,radius:e?.radius,sources:e?.sources,colors:e?.colors,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),data:t,scale:e?.scale,centerPoint:e?.centerPoint,backgroundColor:e?.backgroundColor,mapBorderWidth:e?.mapBorderWidth,mapNoDataColor:e?.mapNoDataColor,mapBorderColor:e?.mapBorderColor,padding:e?.padding,showLabels:e?.showLabels,relativeHeight:e?.relativeHeight,isWorldMap:e?.isWorldMap,tooltip:e?.tooltip,showColorScale:e?.showColorScale,zoomScaleExtend:e?.zoomScaleExtend,zoomTranslateExtend:e?.zoomTranslateExtend,graphID:e?.graphID,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,showAntarctica:e?.showAntarctica,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,zoomInteraction:e?.zoomInteraction,animate:e?.animate};case"donutChart":return{precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,mainText:e?.mainText,data:t,colors:e?.colors,graphTitle:e?.graphTitle,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,graphDescription:e?.graphDescription,subNote:e?.subNote,footNote:e?.footNote,radius:e?.radius,strokeWidth:e?.strokeWidth,showColorScale:e?.showColorScale,backgroundColor:e?.backgroundColor,padding:e?.padding,tooltip:e?.tooltip,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,colorDomain:e?.colorDomain,sortData:e?.sortData,language:e?.language,width:e?.width,height:e?.height,minHeight:e?.minHeight,relativeHeight:e?.relativeHeight,ariaLabel:e?.ariaLabel,legendMaxWidth:e?.legendMaxWidth,onSeriesMouseClick:l=>{n?.(l.label)},detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,colorScaleMaxWidth:e?.colorScaleMaxWidth};case"slopeChart":return{customLayers:e?.customLayers,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,showLabels:e?.showLabels,colors:e?.colors,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),radius:e?.radius,axisTitles:e?.axisTitles,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,highlightedDataPoints:e?.highlightedDataPoints,showColorScale:e?.showColorScale,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,fillContainer:e?.fillContainer,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"scatterPlot":return{timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,showLabels:e?.showLabels,colors:e?.colors,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),radius:e?.radius,xAxisTitle:Object.keys(e||{}).indexOf("xAxisTitle")!==-1?e?.xAxisTitle:r.getValues("x",o||[],i||[]),yAxisTitle:Object.keys(e||{}).indexOf("yAxisTitle")!==-1?e?.yAxisTitle:r.getValues("y",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,refXValues:e?.refXValues,refYValues:e?.refYValues,highlightedDataPoints:e?.highlightedDataPoints,highlightAreaSettings:e?.highlightAreaSettings,showColorScale:e?.showColorScale,graphID:e?.graphID,maxRadiusValue:e?.maxRadiusValue,maxXValue:e?.maxXValue,minXValue:e?.minXValue,maxYValue:e?.maxYValue,minYValue:e?.minYValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,customHighlightAreaSettings:e?.customHighlightAreaSettings,annotations:e?.annotations,regressionLine:e?.regressionLine,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,noOfXTicks:e?.noOfXTicks,noOfYTicks:e?.noOfYTicks,labelColor:e?.labelColor,xSuffix:e?.xSuffix,ySuffix:e?.ySuffix,xPrefix:e?.xPrefix,yPrefix:e?.yPrefix,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"dumbbellChart":return{timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,orientation:e?.orientation,refValues:e?.refValues,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,barPadding:e?.barPadding,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,truncateBy:e?.truncateBy,labelOrder:e?.labelOrder,showColorScale:e?.showColorScale,colorDomain:e?.colorDomain||r.getValues("x",o||[],i||[]),colorLegendTitle:e?.colorLegendTitle,backgroundColor:e?.backgroundColor,padding:e?.padding,radius:e?.radius,relativeHeight:e?.relativeHeight,showValues:e?.showValues,showLabels:e?.showLabels,tooltip:e?.tooltip,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,suffix:e?.suffix,prefix:e?.prefix,language:e?.language,minHeight:e?.minHeight,sortParameter:e?.sortParameter,sortData:e?.sortData,arrowConnector:e?.arrowConnector,connectorStrokeWidth:e?.connectorStrokeWidth,maxBarThickness:e?.maxBarThickness,minBarThickness:e?.minBarThickness,maxNumberOfBars:e?.maxNumberOfBars,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,axisTitle:e?.axisTitle,noOfTicks:e?.noOfTicks,valueColor:e?.valueColor,styles:e?.styles,classNames:e?.classNames,animate:e?.animate,highlightedDataPoints:e?.highlightedDataPoints,dimmedOpacity:e?.dimmedOpacity};case"treeMap":return{precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,tooltip:e?.tooltip,showColorScale:e?.showColorScale,showValues:e?.showValues,graphID:e?.graphID,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,ariaLabel:e?.ariaLabel,onSeriesMouseClick:l=>{n?.(l.label)},detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"circlePacking":return{precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,tooltip:e?.tooltip,showColorScale:e?.showColorScale,showValues:e?.showValues,graphID:e?.graphID,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,ariaLabel:e?.ariaLabel,radius:e?.radius,maxRadiusValue:e?.maxRadiusValue,onSeriesMouseClick:l=>{n?.(l.label)},detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"heatMap":return{precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,scaleType:e?.scaleType,colorDomain:e?.colorDomain,showColumnLabels:e?.showColumnLabels,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,truncateBy:e?.truncateBy,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,suffix:e?.suffix,prefix:e?.prefix,showValues:e?.showValues,showRowLabels:e?.showRowLabels,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,graphID:e?.graphID,noDataColor:e?.noDataColor,showColorScale:e?.showColorScale,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,fillContainer:e?.fillContainer,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"stripChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,orientation:e?.orientation,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,colors:e?.colors,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),radius:e?.radius,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,highlightedDataPoints:e?.highlightedDataPoints,showColorScale:e?.showColorScale,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,noOfTicks:e?.noOfTicks,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,prefix:e?.prefix,suffix:e?.suffix,stripType:e?.stripType,valueColor:e?.valueColor,language:e?.language,minHeight:e?.minHeight,highlightColor:e?.highlightColor,dotOpacity:e?.dotOpacity,showNAColor:e?.showNAColor,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"beeSwarmChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,dimmedOpacity:e?.dimmedOpacity,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,colorDomain:e?.colorDomain,colorLegendTitle:Object.keys(e||{}).indexOf("colorLegendTitle")!==-1?e?.colorLegendTitle:r.getValues("color",o||[],i||[]),backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,showColorScale:e?.showColorScale,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,radius:e?.radius,maxRadiusValue:e?.maxRadiusValue,maxValue:e?.maxValue,minValue:e?.minValue,highlightedDataPoints:e?.highlightedDataPoints,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,showNAColor:e?.showNAColor,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,orientation:e?.orientation,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"butterflyChart":return{naLabel:e?.naLabel,timeline:e?.timeline,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,leftBarTitle:Object.keys(e||{}).indexOf("leftBarTitle")!==-1?e?.leftBarTitle:r.getValues("leftBar",o||[],i||[]),rightBarTitle:Object.keys(e||{}).indexOf("rightBarTitle")!==-1?e?.rightBarTitle:r.getValues("rightBar",o||[],i||[]),footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,barColors:e?.barColors,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,barPadding:e?.barPadding,truncateBy:e?.truncateBy,suffix:e?.suffix,prefix:e?.prefix,showTicks:e?.showTicks,showValues:e?.showValues,centerGap:e?.centerGap,maxValue:e?.maxValue,minValue:e?.minValue,showColorScale:e?.showColorScale,refValues:e?.refValues,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"histogram":return{precision:e?.precision,theme:e?.theme,data:t,colors:e?.colors,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,barPadding:e?.barPadding,showValues:e?.showValues,showTicks:e?.showTicks,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,backgroundColor:e?.backgroundColor,padding:e?.padding,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,showLabels:e?.showLabels,maxValue:e?.maxValue,tooltip:e?.tooltip,refValues:e?.refValues,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,numberOfBins:e?.numberOfBins,truncateBy:e?.truncateBy,donutStrokeWidth:e?.donutStrokeWidth,sortData:e?.sortData,barGraphLayout:e?.barGraphLayout,graphType:e?.graphType,language:e?.language,minHeight:e?.minHeight,maxBarThickness:e?.maxBarThickness,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames};case"sparkLine":return{customLayers:e?.customLayers,theme:e?.theme,data:t,curveType:e?.curveType,lineColor:e?.lineColor,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,dateFormat:e?.dateFormat,area:e?.area,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,graphID:e?.graphID,maxValue:e?.maxValue,minValue:e?.minValue,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,styles:e?.styles,classNames:e?.classNames};case"paretoChart":return{showAxisLabels:e?.showAxisLabels,showColorScale:e?.showColorScale,naLabel:e?.naLabel,customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,showValues:e?.showValues,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,barTitle:Object.keys(e||{}).indexOf("barTitle")!==-1?e?.barTitle:r.getValues("barTitle",o||[],i||[]),lineTitle:Object.keys(e||{}).indexOf("lineTitle")!==-1?e?.lineTitle:r.getValues("lineTitle",o||[],i||[]),footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,backgroundColor:e?.backgroundColor,padding:e?.padding,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,barColor:e?.barColor,curveType:e?.curveType,lineColor:e?.lineColor,sameAxes:e?.sameAxes,relativeHeight:e?.relativeHeight,tooltip:e?.tooltip,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,barPadding:e?.barPadding,truncateBy:e?.truncateBy,showLabels:e?.showLabels,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,detailsOnClick:e?.detailsOnClick,noOfTicks:e?.noOfTicks,lineSuffix:e?.lineSuffix,barSuffix:e?.barSuffix,linePrefix:e?.lineSuffix,barPrefix:e?.barPrefix,barAxisTitle:e?.barAxisTitle,lineAxisTitle:e?.lineAxisTitle,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"dataTable":return{naLabel:e?.naLabel,precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,graphTitle:e?.graphTitle,sources:e?.sources,graphDescription:e?.graphDescription,footNote:e?.footNote,graphID:e?.graphID,width:e?.width,height:e?.height,columnData:e?.columnData||[],data:t,language:e?.language,ariaLabel:e?.ariaLabel,minWidth:e?.minWidth,backgroundColor:e?.backgroundColor,padding:e?.padding,styles:e?.styles,classNames:e?.classNames};case"statCard":return{precision:e?.precision,theme:e?.theme,year:e?.year,data:t,graphTitle:e?.graphTitle||"",graphDescription:e?.graphDescription,suffix:e?.suffix,prefix:e?.prefix,sources:e?.sources||[],footNote:e?.footNote,backgroundColor:e?.backgroundColor,padding:e?.padding,graphID:e?.graphID,aggregationMethod:e?.aggregationMethod,language:e?.language,minHeight:e?.minHeight,countOnly:e?.countOnly,ariaLabel:e?.ariaLabel,textBackground:e?.textBackground,headingFontSize:e?.headingFontSize,centerAlign:e?.centerAlign,verticalAlign:e?.verticalAlign,styles:e?.styles,classNames:e?.classNames,layout:e?.layout};case"unitChart":return{precision:e?.precision,theme:e?.theme,totalNoOfDots:e?.totalNoOfDots,gridSize:e?.gridSize,unitPadding:e?.unitPadding,size:e?.size,graphTitle:e?.graphTitle,sources:e?.sources,colors:e?.colors,graphDescription:e?.graphDescription,footNote:e?.footNote,backgroundColor:e?.backgroundColor,padding:e?.padding,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,language:e?.language,showColorScale:e?.showColorScale,showStrokeForWhiteDots:e?.showStrokeForWhiteDots,note:e?.note,data:t,width:e?.width,height:e?.height,minHeight:e?.minHeight,relativeHeight:e?.relativeHeight,ariaLabel:e?.ariaLabel,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"sankeyChart":return{customLayers:e?.customLayers,precision:e?.precision,theme:e?.theme,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,data:t,graphTitle:e?.graphTitle,graphDescription:e?.graphDescription,footNote:e?.footNote,width:e?.width,height:e?.height,sources:e?.sources,showLabels:e?.showLabels,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,truncateBy:e?.truncateBy,padding:e?.padding,backgroundColor:e?.backgroundColor,tooltip:e?.tooltip,suffix:e?.suffix,prefix:e?.prefix,relativeHeight:e?.relativeHeight,showValues:e?.showValues,graphID:e?.graphID,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,fillContainer:e?.fillContainer,language:e?.language,minHeight:e?.minHeight,ariaLabel:e?.ariaLabel,sourceColors:e?.sourceColors,targetColors:e?.targetColors,sourceColorDomain:e?.sourceColorDomain,targetColorDomain:e?.targetColorDomain,nodePadding:e?.nodePadding,nodeWidth:e?.nodeWidth,highlightedSourceDataPoints:e?.highlightedSourceDataPoints,highlightedTargetDataPoints:e?.highlightedTargetDataPoints,defaultLinkOpacity:e?.defaultLinkOpacity,sourceTitle:e?.sourceTitle,targetTitle:e?.targetTitle,sortNodes:e?.sortNodes,detailsOnClick:e?.detailsOnClick,styles:e?.styles,classNames:e?.classNames,animate:e?.animate};case"dataCards":return{theme:e?.theme,graphTitle:e?.graphTitle,sources:e?.sources,graphDescription:e?.graphDescription,footNote:e?.footNote,graphID:e?.graphID,width:e?.width,height:e?.height,columnData:e?.columnData||[],data:t,language:e?.language,ariaLabel:e?.ariaLabel,cardTemplate:e?.cardTemplate,cardBackgroundColor:e?.cardBackgroundColor,cardFilters:e?.cardFilters||[],cardSortingOptions:e?.cardSortingOptions,cardSearchColumns:e?.cardSearchColumns,cardMinWidth:e?.cardMinWidth,backgroundColor:e?.backgroundColor,padding:e?.padding,detailsOnClick:e?.detailsOnClick,allowDataDownloadOnDetail:e?.allowDataDownloadOnDetail,noOfItemsInAPage:e?.noOfItemsInAPage,uiMode:e?.uiMode,styles:e?.styles,classNames:e?.classNames};case"radarChart":return{customLayers:e?.customLayers,precision:e?.precision,graphTitle:e?.graphTitle,dimmedOpacity:e?.dimmedOpacity,graphDescription:e?.graphDescription,footNote:e?.footNote,sources:e?.sources,ariaLabel:e?.ariaLabel,colors:e?.colors,colorDomain:e?.colorDomain,colorLegendTitle:e?.colorLegendTitle,backgroundColor:e?.backgroundColor,styles:e?.styles,classNames:e?.classNames,width:e?.width,height:e?.height,minHeight:e?.minHeight,relativeHeight:e?.relativeHeight,padding:e?.padding,radius:e?.radius,leftMargin:e?.leftMargin,rightMargin:e?.rightMargin,topMargin:e?.topMargin,bottomMargin:e?.bottomMargin,maxValue:e?.maxValue,minValue:e?.minValue,showValues:e?.showValues,showDots:e?.showDots,strokeWidth:e?.strokeWidth,fillShape:e?.fillShape,noOfTicks:e?.noOfTicks,showColorScale:e?.showColorScale,showNAColor:e?.showNAColor,highlightedLines:e?.highlightedLines,axisLabels:e?.axisLabels,curveType:e?.curveType,resetSelectionOnDoubleClick:e?.resetSelectionOnDoubleClick,graphDownload:e?.graphDownload,dataDownload:e?.dataDownload,tooltip:e?.tooltip,detailsOnClick:e?.detailsOnClick,language:e?.language,theme:e?.theme,graphID:e?.graphID,animate:e?.animate};default:return{}}},a[7]=t,a[8]=o,a[9]=i,a[10]=e,a[11]=n,a[12]=u):u=a[12];const w=u,m=O[s];let D;a[13]!==w||a[14]!==s?(D=w(s),a[13]=w,a[14]=s,a[15]=D):D=a[15];const T=D,k=`grow my-0 ${s!=="statCard"?"mx-auto":"mx-0"} flex flex-col w-full ${s!=="unitChart"&&s!=="statCard"?"justify-center":"justify-start"} ${e?.theme||"light"}`;let f;a[16]===Symbol.for("react.memo_cache_sentinel")?(f={minHeight:"inherit"},a[16]=f):f=a[16];let g;a[17]!==m||a[18]!==s||a[19]!==T?(g=m?c.jsxRuntimeExports.jsx(m,{...T}):c.jsxRuntimeExports.jsx(y.j,{size:"sm",marginBottom:"none",className:"p-2 text-center text-accent-dark-red dark:text-accent-red",children:`Invalid chart type: ${s}`}),a[17]=m,a[18]=s,a[19]=T,a[20]=g):g=a[20];let C;return a[21]!==k||a[22]!==g?(C=c.jsxRuntimeExports.jsx("div",{className:k,style:f,children:g}),a[21]=k,a[22]=g,a[23]=C):C=a[23],C}exports.GraphEl=ie;
2
+ //# sourceMappingURL=GraphEl-D5RBCD7p.cjs.map