@undp/data-viz 2.3.14 → 2.3.16

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 (55) hide show
  1. package/dist/BiVariateChoroplethMap.cjs +1 -1
  2. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  3. package/dist/BiVariateChoroplethMap.d.ts +10 -1
  4. package/dist/BiVariateChoroplethMap.js +331 -298
  5. package/dist/BiVariateChoroplethMap.js.map +1 -1
  6. package/dist/ChoroplethMap.cjs +1 -1
  7. package/dist/ChoroplethMap.cjs.map +1 -1
  8. package/dist/ChoroplethMap.d.ts +10 -1
  9. package/dist/ChoroplethMap.js +359 -326
  10. package/dist/ChoroplethMap.js.map +1 -1
  11. package/dist/Data/data.json +2627 -0
  12. package/dist/Data/testMap.json +1 -361
  13. package/dist/DotDensityMap.cjs +1 -1
  14. package/dist/DotDensityMap.cjs.map +1 -1
  15. package/dist/DotDensityMap.d.ts +10 -1
  16. package/dist/DotDensityMap.js +319 -286
  17. package/dist/DotDensityMap.js.map +1 -1
  18. package/dist/{GraphEl-Bb5oGHoa.js → GraphEl-CnJf8b50.js} +11 -5
  19. package/dist/GraphEl-CnJf8b50.js.map +1 -0
  20. package/dist/GraphEl-D_w0Qak4.cjs +2 -0
  21. package/dist/GraphEl-D_w0Qak4.cjs.map +1 -0
  22. package/dist/GriddedGraphs.cjs +1 -1
  23. package/dist/GriddedGraphs.d.ts +11 -1
  24. package/dist/GriddedGraphs.js +1 -1
  25. package/dist/GriddedGraphsFromConfig.d.ts +11 -1
  26. package/dist/HybridMap.cjs +1 -1
  27. package/dist/HybridMap.cjs.map +1 -1
  28. package/dist/HybridMap.d.ts +10 -1
  29. package/dist/HybridMap.js +416 -382
  30. package/dist/HybridMap.js.map +1 -1
  31. package/dist/MultiGraphDashboard.d.ts +11 -1
  32. package/dist/MultiGraphDashboardFromConfig.d.ts +11 -1
  33. package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +11 -1
  34. package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +11 -1
  35. package/dist/PerformanceIntensiveScrollStory.d.ts +11 -1
  36. package/dist/ScatterPlot.cjs +1 -1
  37. package/dist/ScatterPlot.cjs.map +1 -1
  38. package/dist/ScatterPlot.d.ts +4 -0
  39. package/dist/ScatterPlot.js +401 -400
  40. package/dist/ScatterPlot.js.map +1 -1
  41. package/dist/ScrollStory.d.ts +11 -1
  42. package/dist/SingleGraphDashboard.cjs +1 -1
  43. package/dist/SingleGraphDashboard.d.ts +11 -1
  44. package/dist/SingleGraphDashboard.js +1 -1
  45. package/dist/SingleGraphDashboardFromConfig.d.ts +11 -1
  46. package/dist/SingleGraphDashboardGeoHubMaps.d.ts +11 -1
  47. package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +11 -1
  48. package/dist/SingleGraphDashboardThreeDGraphs.d.ts +11 -1
  49. package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +11 -1
  50. package/dist/Types.d.ts +12 -1
  51. package/dist/index.d.ts +27 -5
  52. package/package.json +1 -1
  53. package/dist/GraphEl-Bb5oGHoa.js.map +0 -1
  54. package/dist/GraphEl-BerZfJ3j.cjs +0 -2
  55. package/dist/GraphEl-BerZfJ3j.cjs.map +0 -1
@@ -1,3 +1,4 @@
1
+ import { FeatureCollection } from 'geojson';
1
2
  import { JSX } from 'react/jsx-runtime';
2
3
 
3
4
  declare interface AmbientLightConfig extends BaseLightConfig {
@@ -218,7 +219,7 @@ declare interface GraphSettingsDataType {
218
219
  showColorLegendAtTop?: boolean;
219
220
  highlightedLines?: (string | number)[];
220
221
  area?: boolean;
221
- mapData?: any;
222
+ mapData?: FeatureCollection | string;
222
223
  xColorLegendTitle?: string;
223
224
  yColorLegendTitle?: string;
224
225
  xDomain?: [number, number, number, number];
@@ -412,6 +413,9 @@ declare interface GraphSettingsDataType {
412
413
  rewindCoordinatesInMapData?: boolean;
413
414
  circularBoundary?: boolean;
414
415
  showDataMinMax?: boolean;
416
+ showVoronoiTesselation?: boolean;
417
+ mapOverlay?: MapOverlayDataType;
418
+ useVoronoiInteraction?: boolean;
415
419
  }
416
420
 
417
421
  declare type GraphType = GraphTypeForGriddedGraph;
@@ -448,6 +452,12 @@ declare interface MapLegendDataType {
448
452
  legend: string | React.ReactNode;
449
453
  }
450
454
 
455
+ declare interface MapOverlayDataType {
456
+ mapData: FeatureCollection | string;
457
+ mapBorderWidth?: number;
458
+ mapBorderColor?: string;
459
+ }
460
+
451
461
  declare type MapProjectionTypes = 'mercator' | 'equalEarth' | 'naturalEarth' | 'orthographic' | 'albersUSA';
452
462
 
453
463
  declare interface PerformanceIntensiveChaptersDataType {
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index-CHPV5EwG-6v2a2njQ.cjs"),ei=require("./parse-xYI9yrvL.cjs"),E=require("react"),ti=require("./getSliderMarks-CIuSoedo.cjs"),ii=require("./index-DQA8q5sC.cjs"),pi=require("./index-Cno4Q0YE.cjs"),ni=require("./simple-statistics-xm8c0LQQ.cjs"),hi=require("./Tooltip-BLa2EfMs.cjs"),b=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),te=require("./Colors.cjs"),oi=require("./numberFormattingFunction-02t-wJta.cjs"),_t=require("./customArea-B1LWQBmM.cjs"),si=require("./Axis-Jt_tmhxS.cjs"),li=require("./AxisTitle-DV4n0RxE.cjs"),gi=require("./XTicksAndGridLines-CekrPykD.cjs"),ri=require("./ReferenceLine-M9aP3dj-.cjs"),yi=require("./RegressionLine-Ci-Dh0w0.cjs"),vi=require("./YTicksAndGridLines-UzVC5eBM.cjs"),bi=require("./index-D69M6klB.cjs"),Ai=require("./DetailsModal-DIRTulvr.cjs"),ji=require("./pow-BnyPO-NX.cjs"),ai=require("./linear-CgUCbw9F.cjs"),Oi=require("./delaunay-rcy0HhZi.cjs"),Ht=require("./proxy-C4-uo6nS.cjs"),Ci=require("./use-in-view-C3o_ntMv.cjs"),ci=require("./index-CoobIWNj.cjs"),Ri=require("./GraphFooter.cjs"),ki=require("./GraphHeader.cjs"),wi=require("./ColorLegendWithMouseOver.cjs"),Li=require("./EmptyState-B4c-CrXs.cjs"),ui=require("./index-sbKVyHS2.cjs"),Si=require("./ensureCompleteData-D9bQTiVS.cjs"),xi=require("./uniqBy-O05lp2S5.cjs"),fi=require("./GraphContainer-B1EDxJ0S.cjs");function Ei(i){const e=o.compilerRuntimeExports.c(217),{data:n,width:ie,height:w,showLabels:Fe,colors:f,colorDomain:R,radius:P,xAxisTitle:y,yAxisTitle:H,leftMargin:T,rightMargin:dt,topMargin:wt,bottomMargin:Xt,tooltip:pt,onSeriesMouseOver:ne,refXValues:Lt,refYValues:St,highlightAreaSettings:Et,selectedColor:Se,highlightedDataPoints:G,maxRadiusValue:ht,maxXValue:gt,minXValue:k,maxYValue:Ue,minYValue:j,onSeriesMouseClick:N,rtl:He,annotations:Ge,customHighlightAreaSettings:We,regressionLine:Ee,resetSelectionOnDoubleClick:Ne,detailsOnClick:$,noOfXTicks:Be,noOfYTicks:ze,labelColor:W,xSuffix:$e,ySuffix:Me,xPrefix:De,yPrefix:Ve,styles:s,classNames:l,animate:a,dimmedOpacity:M,precision:D,showHighlightedDataPointsLabels:Nt,customLayers:V}=i,yt=E.useRef(null);let vt;e[0]!==a.amount||e[1]!==a.once?(vt={once:a.once,amount:a.amount},e[0]=a.amount,e[1]=a.once,e[2]=vt):vt=e[2];const A=Ci.useInView(yt,vt),[L,qe]=E.useState(void 0),[X,Je]=E.useState(void 0),[bt,oe]=E.useState(void 0),[p,c]=E.useState(void 0),$t=y?Xt+50:Xt,Mt=H?T+30:T;let At;e[3]!==dt||e[4]!==$t||e[5]!==Mt||e[6]!==wt?(At={top:wt,bottom:$t,left:Mt,right:dt},e[3]=dt,e[4]=$t,e[5]=Mt,e[6]=wt,e[7]=At):At=e[7];const d=At;let B,se,le,re,ae,ce,Y,ue,xe,fe,z,me,J,de,K,pe,F,Q;if(e[8]!==a||e[9]!==Ge||e[10]!==l?.graphObjectValues||e[11]!==l?.regLine||e[12]!==l?.xAxis?.axis||e[13]!==l?.xAxis?.gridLines||e[14]!==l?.xAxis?.labels||e[15]!==l?.xAxis?.title||e[16]!==l?.yAxis?.gridLines||e[17]!==l?.yAxis?.labels||e[18]!==l?.yAxis?.title||e[19]!==R||e[20]!==f||e[21]!==We||e[22]!==V||e[23]!==n||e[24]!==$||e[25]!==M||e[26]!==w||e[27]!==Et||e[28]!==G||e[29]!==A||e[30]!==W||e[31]!==T||e[32]!==d.bottom||e[33]!==d.left||e[34]!==d.right||e[35]!==d.top||e[36]!==ht||e[37]!==gt||e[38]!==Ue||e[39]!==k||e[40]!==j||e[41]!==X||e[42]!==L||e[43]!==Be||e[44]!==ze||e[45]!==N||e[46]!==ne||e[47]!==D||e[48]!==P||e[49]!==Lt||e[50]!==St||e[51]!==Ee||e[52]!==Ne||e[53]!==He||e[54]!==Se||e[55]!==Nt||e[56]!==Fe||e[57]!==s?.graphObjectValues||e[58]!==s?.regLine||e[59]!==s?.xAxis?.axis||e[60]!==s?.xAxis?.gridLines||e[61]!==s?.xAxis?.labels||e[62]!==s?.xAxis?.title||e[63]!==s?.yAxis?.gridLines||e[64]!==s?.yAxis?.labels||e[65]!==s?.yAxis?.title||e[66]!==ie||e[67]!==y||e[68]!==De||e[69]!==$e||e[70]!==H||e[71]!==Ve||e[72]!==Me){const Ke=n.map(en),h=ie-d.left-d.right,v=w-d.top-d.bottom,S=n.filter(_i).length!==n.length?ji.sqrt().domain([0,ht]).range([.25,P]).nice():void 0,Pe=Ke.filter(Zi).length===0?Ke:pi.orderBy(Ke.filter(Qi),"radius","desc"),u=ai.linear().domain([k,gt]).range([0,h]).nice(),m=ai.linear().domain([j,Ue]).range([v,0]).nice(),Dt=u.ticks(Be),U=m.ticks(ze),Yt=Oi.Delaunay.from(Pe.filter(Ki),t=>u(t.x),t=>m(t.y)).voronoi([0,0,h<0?0:h,v<0?0:v]),Ft=ni.linearRegression(n.filter(Ji).map(t=>[u(t.x),m(t.y)])),Vt=ni.linearRegressionLine(Ft);se=Ht.motion.svg,ue=`${ie}px`,xe=`${w}px`,fe=`0 0 ${ie} ${w}`,z="ltr",me=yt,le=`translate(${d.left},${d.top})`;let Qe;e[91]!==a||e[92]!==We||e[93]!==A||e[94]!==u||e[95]!==m?(Qe=o.jsxRuntimeExports.jsx(_t.CustomArea,{areaSettings:We,scaleX:u,scaleY:m,animate:a,isInView:A},"custom-area"),e[91]=a,e[92]=We,e[93]=A,e[94]=u,e[95]=m,e[96]=Qe):Qe=e[96],re=o.jsxRuntimeExports.jsxs(ci.AnimatePresence,{children:[o.jsxRuntimeExports.jsx(bi.HighlightAreaForScatterPlot,{areaSettings:Et,width:h,height:v,scaleX:u,scaleY:m,animate:a,isInView:A},"highlight-area"),Qe]});const Ze=s?.yAxis?.gridLines,jt=s?.yAxis?.labels;let _e;e[97]!==Ze||e[98]!==jt?(_e={gridLines:Ze,labels:jt},e[97]=Ze,e[98]=jt,e[99]=_e):_e=e[99];const et=l?.yAxis?.gridLines,Ot=l?.yAxis?.labels;let Te;e[100]!==et||e[101]!==Ot?(Te={gridLines:et,labels:Ot},e[100]=et,e[101]=Ot,e[102]=Te):Te=e[102];const r=m(j<0?0:j),tt=m(j<0?0:j),Ut=h+d.right,it=j<0?0:j;let nt;e[103]!==D||e[104]!==it||e[105]!==Ve||e[106]!==Me?(nt=oi.numberFormattingFunction(it,"NA",D,Ve,Me),e[103]=D,e[104]=it,e[105]=Ve,e[106]=Me,e[107]=nt):nt=e[107];const q=m(j<0?0:j);let ot;e[108]!==q?(ot={x:0,y:q,dy:"0.33em",dx:-4},e[108]=q,e[109]=ot):ot=e[109];const Xe=l?.xAxis?.axis,x=l?.yAxis?.labels;let O;e[110]!==Xe||e[111]!==x?(O={axis:Xe,label:x},e[110]=Xe,e[111]=x,e[112]=O):O=e[112];const Ct=s?.xAxis?.axis;let je;e[113]!==s?.yAxis?.labels?(je=s?.yAxis?.labels||{},e[113]=s?.yAxis?.labels,e[114]=je):je=e[114];let st;e[115]!==je?(st={textAnchor:"end",...je},e[115]=je,e[116]=st):st=e[116];let Oe;e[117]!==Ct||e[118]!==st?(Oe={axis:Ct,label:st},e[117]=Ct,e[118]=st,e[119]=Oe):Oe=e[119];let Rt;e[120]!==r||e[121]!==tt||e[122]!==Ut||e[123]!==nt||e[124]!==ot||e[125]!==O||e[126]!==Oe?(Rt=o.jsxRuntimeExports.jsx(si.Axis,{y1:r,y2:tt,x1:0,x2:Ut,label:nt,labelPos:ot,classNames:O,styles:Oe}),e[120]=r,e[121]=tt,e[122]=Ut,e[123]=nt,e[124]=ot,e[125]=O,e[126]=Oe,e[127]=Rt):Rt=e[127];const lt=0-T-15,rt=v/2,at=s?.yAxis?.title,ct=l?.yAxis?.title;let ut;e[128]!==lt||e[129]!==rt||e[130]!==at||e[131]!==ct||e[132]!==H?(ut=o.jsxRuntimeExports.jsx(li.AxisTitle,{x:lt,y:rt,style:at,className:ct,text:H,rotate90:!0}),e[128]=lt,e[129]=rt,e[130]=at,e[131]=ct,e[132]=H,e[133]=ut):ut=e[133],ae=o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(vi.YTicksAndGridLines,{values:U.filter(zi),y:U.filter(Bi).map(t=>m(t)),x1:0,x2:h+d.right,styles:_e,classNames:Te,suffix:Me,prefix:Ve,labelType:"secondary",showGridLines:!0,labelPos:"side",precision:D}),Rt,ut]});const xt=s?.xAxis?.gridLines,ft=s?.xAxis?.labels;let mt;e[134]!==xt||e[135]!==ft?(mt={gridLines:xt,labels:ft},e[134]=xt,e[135]=ft,e[136]=mt):mt=e[136];const kt=l?.xAxis?.gridLines,Ce=l?.xAxis?.labels;let Z;e[137]!==kt||e[138]!==Ce?(Z={gridLines:kt,labels:Ce},e[137]=kt,e[138]=Ce,e[139]=Z):Z=e[139];const Re=u(k<0?0:k),ke=u(k<0?0:k),we=k<0?0:k;let I;e[140]!==D||e[141]!==we||e[142]!==De||e[143]!==$e?(I=oi.numberFormattingFunction(we,"NA",D,De,$e),e[140]=D,e[141]=we,e[142]=De,e[143]=$e,e[144]=I):I=e[144];const Le=u(k<0?0:k);let _;e[145]!==v||e[146]!==Le?(_={x:Le,y:v,dy:"1em",dx:0},e[145]=v,e[146]=Le,e[147]=_):_=e[147];const g=l?.xAxis?.axis,ee=l?.yAxis?.labels;let qt;e[148]!==g||e[149]!==ee?(qt={axis:g,label:ee},e[148]=g,e[149]=ee,e[150]=qt):qt=e[150];const Bt=s?.xAxis?.axis;let It;e[151]!==s?.yAxis?.labels?(It=s?.yAxis?.labels||{},e[151]=s?.yAxis?.labels,e[152]=It):It=e[152];let Pt;e[153]!==It?(Pt={textAnchor:"middle",...It},e[153]=It,e[154]=Pt):Pt=e[154];let Tt;e[155]!==Bt||e[156]!==Pt?(Tt={axis:Bt,label:Pt},e[155]=Bt,e[156]=Pt,e[157]=Tt):Tt=e[157];let Gt;e[158]!==v||e[159]!==Re||e[160]!==ke||e[161]!==I||e[162]!==_||e[163]!==qt||e[164]!==Tt?(Gt=o.jsxRuntimeExports.jsx(si.Axis,{x1:Re,x2:ke,y1:0,y2:v,label:I,labelPos:_,classNames:qt,styles:Tt}),e[158]=v,e[159]=Re,e[160]=ke,e[161]=I,e[162]=_,e[163]=qt,e[164]=Tt,e[165]=Gt):Gt=e[165];const zt=h/2,Jt=v+30,Kt=s?.xAxis?.title,Qt=l?.xAxis?.title;let Wt;e[166]!==zt||e[167]!==Jt||e[168]!==Kt||e[169]!==Qt||e[170]!==y?(Wt=o.jsxRuntimeExports.jsx(li.AxisTitle,{x:zt,y:Jt,style:Kt,className:Qt,text:y}),e[166]=zt,e[167]=Jt,e[168]=Kt,e[169]=Qt,e[170]=y,e[171]=Wt):Wt=e[171],ce=o.jsxRuntimeExports.jsxs("g",{children:[o.jsxRuntimeExports.jsx(gi.XTicksAndGridLines,{values:Dt.filter(Wi),x:Dt.filter(Gi).map(t=>u(t)),y1:0,y2:v,styles:mt,classNames:Z,suffix:$e,prefix:De,labelType:"primary",showGridLines:!0,precision:D}),Gt,Wt]}),e[172]!==V?(Y=V.filter(Hi).map(Ui),e[172]=V,e[173]=Y):Y=e[173],B=ci.AnimatePresence,J=Pe.filter(Fi).map((t,Ye)=>o.jsxRuntimeExports.jsx("path",{d:Yt.renderCell(Pe.findIndex(C=>C.id===t.id)),opacity:0,onMouseEnter:C=>{qe(t),c(C.clientY),oe(C.clientX),ne?.(t)},onMouseMove:C=>{qe(t),c(C.clientY),oe(C.clientX)},onMouseLeave:()=>{qe(void 0),oe(void 0),c(void 0),ne?.(void 0)},onClick:()=>{(N||$)&&(ii.isEqual(X,t)&&Ne?(Je(void 0),N?.(void 0)):(Je(t),N?.(t)))}},`tesselation_${t.label||Ye}`)),de=Pe.filter(Yi).map((t,Ye)=>o.jsxRuntimeExports.jsxs(Ht.motion.g,{variants:{initial:{x:u(t.x),y:m(t.y),opacity:Se?t.color&&f[R.indexOf(`${t.color}`)]===Se?1:M:L?L.id===t.id?1:M:G.length!==0?G.indexOf(t.label||"")!==-1?1:M:1},whileInView:{x:u(t.x),y:m(t.y),opacity:Se?t.color&&f[R.indexOf(`${t.color}`)]===Se?1:M:L?L.id===t.id?1:M:G.length!==0?G.indexOf(t.label||"")!==-1?1:M:1,transition:{duration:a.duration}}},initial:"initial",animate:A?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:C=>{qe(t),c(C.clientY),oe(C.clientX),ne?.(t)},onMouseMove:C=>{qe(t),c(C.clientY),oe(C.clientX)},onMouseLeave:()=>{qe(void 0),oe(void 0),c(void 0),ne?.(void 0)},onClick:()=>{(N||$)&&(ii.isEqual(X,t)&&Ne?(Je(void 0),N?.(void 0)):(Je(t),N?.(t)))},children:[o.jsxRuntimeExports.jsx(Ht.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:a.duration}},variants:{initial:{r:0,fill:n.filter(Xi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:te.Colors.gray,stroke:n.filter(Ti).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:te.Colors.gray},whileInView:{r:S?S(t.radius||0):P,fill:n.filter(Pi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:te.Colors.gray,stroke:n.filter(Ii).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:te.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:A?"whileInView":"initial",style:{fillOpacity:.6}}),Fe&&!b.checkIfNullOrUndefined(t.label)?o.jsxRuntimeExports.jsx(Ht.motion.text,{style:{...s?.graphObjectValues||{}},className:o.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:S?S(t.radius||0):P,opacity:0,fill:W||(n.filter(qi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:te.Colors.gray)},whileInView:{x:S?S(t.radius||0):P,opacity:1,fill:W||(n.filter(Vi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:te.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:A?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):G.length!==0&&!b.checkIfNullOrUndefined(t.label)&&Nt&&G.indexOf(t.label)!==-1?o.jsxRuntimeExports.jsx(Ht.motion.text,{style:{...s?.graphObjectValues||{}},className:o.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:S?S(t.radius||0):P,opacity:0,fill:W||(n.filter(Di).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:te.Colors.gray)},whileInView:{x:S?S(t.radius||0):P,opacity:1,fill:W||(n.filter(Mi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:te.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:A?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||Ye}`)),K=Lt.map((t,Ye)=>o.jsxRuntimeExports.jsx(ri.RefLineX,{text:t.text,color:t.color,x:u(t.value),y1:0,y2:v,textSide:u(t.value)>h*.75||He?"left":"right",classNames:t.classNames,styles:t.styles,animate:a,isInView:A},Ye)),pe=St.map((t,Ye)=>o.jsxRuntimeExports.jsx(ri.RefLineY,{text:t.text,color:t.color,y:m(t.value),x1:0,x2:h,classNames:t.classNames,styles:t.styles,animate:a,isInView:A},Ye));const Zt=Ge.map((t,Ye)=>{const C=_t.getLineEndPoint({x:t.xCoordinate?u(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?u(t.xCoordinate):0,y:t.yCoordinate?m(t.yCoordinate):0},b.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),mi=t.showConnector?{y1:C.y,x1:C.x,y2:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0):0+(t.yOffset||0),x2:t.xCoordinate?u(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),cy:t.yCoordinate?m(t.yCoordinate):0,cx:t.xCoordinate?u(t.xCoordinate):0,circleRadius:b.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,di={y:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:He?0:t.xCoordinate?u(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:He?t.xCoordinate?u(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):h+d.right-(t.xCoordinate?u(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return o.jsxRuntimeExports.jsx(_t.Annotation,{color:t.color,connectorsSettings:mi,labelSettings:di,text:t.text,classNames:t.classNames,styles:t.styles,animate:a,isInView:A},Ye)});e[174]!==Zt?(F=o.jsxRuntimeExports.jsx("g",{children:Zt}),e[174]=Zt,e[175]=F):F=e[175],Q=Ee?o.jsxRuntimeExports.jsx(yi.RegressionLine,{x1:0,x2:h,y1:Vt(0),y2:Vt(h),graphHeight:v,graphWidth:h,className:l?.regLine,style:s?.regLine,color:typeof Ee=="string"?Ee:void 0,animate:a,isInView:A}):null,e[8]=a,e[9]=Ge,e[10]=l?.graphObjectValues,e[11]=l?.regLine,e[12]=l?.xAxis?.axis,e[13]=l?.xAxis?.gridLines,e[14]=l?.xAxis?.labels,e[15]=l?.xAxis?.title,e[16]=l?.yAxis?.gridLines,e[17]=l?.yAxis?.labels,e[18]=l?.yAxis?.title,e[19]=R,e[20]=f,e[21]=We,e[22]=V,e[23]=n,e[24]=$,e[25]=M,e[26]=w,e[27]=Et,e[28]=G,e[29]=A,e[30]=W,e[31]=T,e[32]=d.bottom,e[33]=d.left,e[34]=d.right,e[35]=d.top,e[36]=ht,e[37]=gt,e[38]=Ue,e[39]=k,e[40]=j,e[41]=X,e[42]=L,e[43]=Be,e[44]=ze,e[45]=N,e[46]=ne,e[47]=D,e[48]=P,e[49]=Lt,e[50]=St,e[51]=Ee,e[52]=Ne,e[53]=He,e[54]=Se,e[55]=Nt,e[56]=Fe,e[57]=s?.graphObjectValues,e[58]=s?.regLine,e[59]=s?.xAxis?.axis,e[60]=s?.xAxis?.gridLines,e[61]=s?.xAxis?.labels,e[62]=s?.xAxis?.title,e[63]=s?.yAxis?.gridLines,e[64]=s?.yAxis?.labels,e[65]=s?.yAxis?.title,e[66]=ie,e[67]=y,e[68]=De,e[69]=$e,e[70]=H,e[71]=Ve,e[72]=Me,e[73]=B,e[74]=se,e[75]=le,e[76]=re,e[77]=ae,e[78]=ce,e[79]=Y,e[80]=ue,e[81]=xe,e[82]=fe,e[83]=z,e[84]=me,e[85]=J,e[86]=de,e[87]=K,e[88]=pe,e[89]=F,e[90]=Q}else B=e[73],se=e[74],le=e[75],re=e[76],ae=e[77],ce=e[78],Y=e[79],ue=e[80],xe=e[81],fe=e[82],z=e[83],me=e[84],J=e[85],de=e[86],K=e[87],pe=e[88],F=e[89],Q=e[90];let he;e[176]!==B||e[177]!==J||e[178]!==de||e[179]!==K||e[180]!==pe||e[181]!==F||e[182]!==Q?(he=o.jsxRuntimeExports.jsxs(B,{children:[J,de,K,pe,F,Q]}),e[176]=B,e[177]=J,e[178]=de,e[179]=K,e[180]=pe,e[181]=F,e[182]=Q,e[183]=he):he=e[183];let ge;e[184]!==V?(ge=V.filter($i).map(Ni),e[184]=V,e[185]=ge):ge=e[185];let ye;e[186]!==le||e[187]!==re||e[188]!==ae||e[189]!==ce||e[190]!==Y||e[191]!==he||e[192]!==ge?(ye=o.jsxRuntimeExports.jsxs("g",{transform:le,children:[re,ae,ce,Y,he,ge]}),e[186]=le,e[187]=re,e[188]=ae,e[189]=ce,e[190]=Y,e[191]=he,e[192]=ge,e[193]=ye):ye=e[193];let ve;e[194]!==se||e[195]!==ue||e[196]!==xe||e[197]!==fe||e[198]!==z||e[199]!==me||e[200]!==ye?(ve=o.jsxRuntimeExports.jsx(se,{width:ue,height:xe,viewBox:fe,direction:z,ref:me,children:ye}),e[194]=se,e[195]=ue,e[196]=xe,e[197]=fe,e[198]=z,e[199]=me,e[200]=ye,e[201]=ve):ve=e[201];let be;e[202]!==l?.tooltip||e[203]!==bt||e[204]!==p||e[205]!==L||e[206]!==s?.tooltip||e[207]!==pt?(be=L&&pt&&bt&&p?o.jsxRuntimeExports.jsx(hi.Tooltip,{data:L,body:pt,xPos:bt,yPos:p,backgroundStyle:s?.tooltip,className:l?.tooltip}):null,e[202]=l?.tooltip,e[203]=bt,e[204]=p,e[205]=L,e[206]=s?.tooltip,e[207]=pt,e[208]=be):be=e[208];let Ae;e[209]!==l?.modal||e[210]!==$||e[211]!==X?(Ae=$&&X!==void 0?o.jsxRuntimeExports.jsx(Ai.DetailsModal,{body:$,data:X,setData:Je,className:l?.modal}):null,e[209]=l?.modal,e[210]=$,e[211]=X,e[212]=Ae):Ae=e[212];let Ie;return e[213]!==ve||e[214]!==be||e[215]!==Ae?(Ie=o.jsxRuntimeExports.jsxs(o.jsxRuntimeExports.Fragment,{children:[ve,be,Ae]}),e[213]=ve,e[214]=be,e[215]=Ae,e[216]=Ie):Ie=e[216],Ie}function Ni(i){return i.layer}function $i(i){return i.position==="after"}function Mi(i){return i.color}function Di(i){return i.color}function Vi(i){return i.color}function qi(i){return i.color}function Ii(i){return i.color}function Pi(i){return i.color}function Ti(i){return i.color}function Xi(i){return i.color}function Yi(i){return!b.checkIfNullOrUndefined(i.x)&&!b.checkIfNullOrUndefined(i.y)}function Fi(i){return!b.checkIfNullOrUndefined(i.x)&&!b.checkIfNullOrUndefined(i.y)}function Ui(i){return i.layer}function Hi(i){return i.position==="before"}function Gi(i){return i!==0}function Wi(i){return i!==0}function Bi(i){return i!==0}function zi(i){return i!==0}function Ji(i){return!b.checkIfNullOrUndefined(i.x)&&!b.checkIfNullOrUndefined(i.y)}function Ki(i){return!b.checkIfNullOrUndefined(i.x)&&!b.checkIfNullOrUndefined(i.y)}function Qi(i){return!b.checkIfNullOrUndefined(i.radius)}function Zi(i){return!b.checkIfNullOrUndefined(i.radius)}function _i(i){return i.radius===void 0||i.radius===null}function en(i,e){return{...i,id:`${e}`}}function tn(i){const e=o.compilerRuntimeExports.c(143),{data:n,graphTitle:ie,colors:w,sources:Fe,graphDescription:f,showLabels:R,height:P,width:y,footNote:H,colorDomain:T,colorLegendTitle:dt,radius:wt,xAxisTitle:Xt,yAxisTitle:pt,padding:ne,backgroundColor:Lt,leftMargin:St,rightMargin:Et,topMargin:Se,bottomMargin:G,tooltip:ht,relativeHeight:gt,onSeriesMouseOver:k,refXValues:Ue,refYValues:j,highlightAreaSettings:N,showColorScale:He,highlightedDataPoints:Ge,showHighlightedDataPointsLabels:We,graphID:Ee,maxRadiusValue:Ne,maxXValue:$,minXValue:Be,maxYValue:ze,minYValue:W,xSuffix:$e,ySuffix:Me,xPrefix:De,yPrefix:Ve,onSeriesMouseClick:s,graphDownload:l,dataDownload:a,language:M,showNAColor:D,minHeight:Nt,annotations:V,customHighlightAreaSettings:yt,theme:vt,regressionLine:A,ariaLabel:L,resetSelectionOnDoubleClick:qe,detailsOnClick:X,noOfXTicks:Je,noOfYTicks:bt,labelColor:oe,styles:p,classNames:c,animate:$t,dimmedOpacity:Mt,precision:At,customLayers:d,timeline:B}=i,se=R===void 0?!1:R,le=wt===void 0?5:wt,re=Xt===void 0?"X Axis":Xt,ae=pt===void 0?"Y Axis":pt,ce=Lt===void 0?!1:Lt,Y=St===void 0?0:St,ue=Et===void 0?10:Et,xe=Se===void 0?20:Se,fe=G===void 0?50:G;let z;e[0]!==Ue?(z=Ue===void 0?[]:Ue,e[0]=Ue,e[1]=z):z=e[1];const me=z;let J;e[2]!==j?(J=j===void 0?[]:j,e[2]=j,e[3]=J):J=e[3];const de=J;let K;e[4]!==N?(K=N===void 0?[]:N,e[4]=N,e[5]=K):K=e[5];const pe=K,F=He===void 0?!0:He;let Q;e[6]!==Ge?(Q=Ge===void 0?[]:Ge,e[6]=Ge,e[7]=Q):Q=e[7];const he=Q,ge=We===void 0?!1:We,ye=$e===void 0?"":$e,ve=Me===void 0?"":Me,be=De===void 0?"":De,Ae=Ve===void 0?"":Ve,Ie=l===void 0?!1:l,Ke=a===void 0?!1:a,h=M===void 0?"en":M,v=D===void 0?!0:D,S=Nt===void 0?0:Nt;let Pe;e[8]!==V?(Pe=V===void 0?[]:V,e[8]=V,e[9]=Pe):Pe=e[9];const u=Pe;let m;e[10]!==yt?(m=yt===void 0?[]:yt,e[10]=yt,e[11]=m):m=e[11];const Dt=m,U=vt===void 0?"light":vt,Yt=A===void 0?!1:A,Ft=qe===void 0?!0:qe,Vt=Je===void 0?5:Je,Qe=bt===void 0?5:bt,Ze=$t===void 0?!1:$t,jt=Mt===void 0?.3:Mt,_e=At===void 0?2:At;let et;e[12]!==d?(et=d===void 0?[]:d,e[12]=d,e[13]=et):et=e[13];const Ot=et;let Te;e[14]!==B?(Te=B===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:B,e[14]=B,e[15]=Te):Te=e[15];const r=Te,[tt,Ut]=E.useState(0),[it,nt]=E.useState(0),[q,ot]=E.useState(r.autoplay);let Xe;if(e[16]!==n||e[17]!==r.dateFormat){let g;e[19]!==r.dateFormat?(g=ee=>ei.parse(`${ee.date}`,r.dateFormat||"yyyy",new Date).getTime(),e[19]=r.dateFormat,e[20]=g):g=e[20],Xe=[...new Set(n.filter(Nn).map(g))],Xe.sort(En),e[16]=n,e[17]=r.dateFormat,e[18]=Xe}else Xe=e[18];const x=Xe,[O,Ct]=E.useState(r.autoplay?0:x.length-1),[je,st]=E.useState(void 0),Oe=E.useRef(null),Rt=E.useRef(null);let lt,rt;e[21]===Symbol.for("react.memo_cache_sentinel")?(lt=()=>{const g=new ResizeObserver(ee=>{Ut(ee[0].target.clientWidth||620),nt(ee[0].target.clientHeight||480)});return Oe.current&&g.observe(Oe.current),()=>g.disconnect()},rt=[],e[21]=lt,e[22]=rt):(lt=e[21],rt=e[22]),E.useEffect(lt,rt);let at,ct;e[23]!==q||e[24]!==r.speed||e[25]!==x?(at=()=>{const g=setInterval(()=>{Ct(ee=>ee<x.length-1?ee+1:0)},(r.speed||2)*1e3);return q||clearInterval(g),()=>clearInterval(g)},ct=[x,q,r.speed],e[23]=q,e[24]=r.speed,e[25]=x,e[26]=at,e[27]=ct):(at=e[26],ct=e[27]),E.useEffect(at,ct);const ut=r.dateFormat||"yyyy";let xt;e[28]!==O||e[29]!==ut||e[30]!==r.showOnlyActiveDate||e[31]!==x?(xt=ti.getSliderMarks(x,O,r.showOnlyActiveDate,ut),e[28]=O,e[29]=ut,e[30]=r.showOnlyActiveDate,e[31]=x,e[32]=xt):xt=e[32];const ft=xt,mt=c?.graphContainer,kt=p?.graphContainer;let Ce;e[33]!==c?.description||e[34]!==c?.title||e[35]!==n||e[36]!==Ke||e[37]!==f||e[38]!==Ie||e[39]!==ie||e[40]!==p?.description||e[41]!==p?.title||e[42]!==y?(Ce=ie||f||Ie||Ke?o.jsxRuntimeExports.jsx(ki.GraphHeader,{styles:{title:p?.title,description:p?.description},classNames:{title:c?.title,description:c?.description},graphTitle:ie,graphDescription:f,width:y,graphDownload:Ie?Rt:void 0,dataDownload:Ke?n.map(Sn).filter(Ln).length>0?n.map(wn).filter(kn):n.filter(Rn):null}):null,e[33]=c?.description,e[34]=c?.title,e[35]=n,e[36]=Ke,e[37]=f,e[38]=Ie,e[39]=ie,e[40]=p?.description,e[41]=p?.title,e[42]=y,e[43]=Ce):Ce=e[43];let Z;e[44]!==O||e[45]!==ft||e[46]!==q||e[47]!==r.enabled||e[48]!==x?(Z=r.enabled&&x.length>0&&ft?o.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[o.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{ot(!q)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":q?"Click to pause animation":"Click to play animation",children:q?o.jsxRuntimeExports.jsx(ui.Pause,{}):o.jsxRuntimeExports.jsx(ui.Play,{})}),o.jsxRuntimeExports.jsx(ti.Nr,{min:x[0],max:x[x.length-1],marks:ft,step:null,defaultValue:x[x.length-1],value:x[O],onChangeComplete:g=>{Ct(x.indexOf(g))},onChange:g=>{Ct(x.indexOf(g))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[44]=O,e[45]=ft,e[46]=q,e[47]=r.enabled,e[48]=x,e[49]=Z):Z=e[49];let Re;e[50]!==c?.colorLegend||e[51]!==T||e[52]!==dt||e[53]!==w||e[54]!==n||e[55]!==F||e[56]!==v||e[57]!==U||e[58]!==y?(Re=F&&n.filter(Cn).length!==0&&n.length>0?o.jsxRuntimeExports.jsx(wi.ColorLegendWithMouseOver,{width:y,colorLegendTitle:dt,colors:w||te.Colors[U].categoricalColors.colors,colorDomain:T||xi.uniqBy(n,"color",!0),setSelectedColor:st,showNAColor:v,className:c?.colorLegend}):null,e[50]=c?.colorLegend,e[51]=T,e[52]=dt,e[53]=w,e[54]=n,e[55]=F,e[56]=v,e[57]=U,e[58]=y,e[59]=Re):Re=e[59];let ke;e[60]!==n.length?(ke=n.length===0&&o.jsxRuntimeExports.jsx(Li.EmptyState,{}),e[60]=n.length,e[61]=ke):ke=e[61];let we;e[62]!==Ze||e[63]!==u||e[64]!==fe||e[65]!==c||e[66]!==T||e[67]!==w||e[68]!==Dt||e[69]!==Ot||e[70]!==n||e[71]!==X||e[72]!==jt||e[73]!==pe||e[74]!==he||e[75]!==O||e[76]!==oe||e[77]!==h||e[78]!==Y||e[79]!==Ne||e[80]!==$||e[81]!==ze||e[82]!==Be||e[83]!==W||e[84]!==Vt||e[85]!==Qe||e[86]!==s||e[87]!==k||e[88]!==_e||e[89]!==le||e[90]!==me||e[91]!==de||e[92]!==Yt||e[93]!==Ft||e[94]!==ue||e[95]!==je||e[96]!==ge||e[97]!==se||e[98]!==p||e[99]!==it||e[100]!==tt||e[101]!==U||e[102]!==r.dateFormat||e[103]!==r.enabled||e[104]!==ht||e[105]!==xe||e[106]!==x||e[107]!==re||e[108]!==be||e[109]!==ye||e[110]!==ae||e[111]!==Ae||e[112]!==ve?(we=tt&&it&&n.length>0?o.jsxRuntimeExports.jsx(Ei,{data:Si.ensureCompleteDataForScatterPlot(n,r.dateFormat||"yyyy").filter(g=>r.enabled?`${g.date}`===ei.format(new Date(x[O]),r.dateFormat||"yyyy"):g),width:tt,height:it,colorDomain:n.filter(On).length===0?[]:T||xi.uniqBy(n,"color",!0),colors:n.filter(jn).length===0?w?[w]:[te.Colors.primaryColors["blue-600"]]:w||te.Colors[U].categoricalColors.colors,xAxisTitle:re,yAxisTitle:ae,refXValues:me,refYValues:de,showLabels:se,radius:le,leftMargin:Y,rightMargin:ue,topMargin:xe,bottomMargin:fe,tooltip:ht,onSeriesMouseOver:k,highlightAreaSettings:pe,highlightedDataPoints:n.filter(An).length===0?[]:he,showHighlightedDataPointsLabels:ge,selectedColor:je,maxRadiusValue:b.checkIfNullOrUndefined(Ne)?Math.max(...n.map(bn).filter(vn)):Ne,maxXValue:b.checkIfNullOrUndefined($)?Math.max(...n.map(yn).filter(gn))>0?Math.max(...n.map(hn).filter(pn)):0:$,minXValue:b.checkIfNullOrUndefined(Be)?Math.min(...n.map(dn).filter(mn))>0?0:Math.min(...n.map(fn).filter(xn)):Be,maxYValue:b.checkIfNullOrUndefined(ze)?Math.max(...n.map(un).filter(cn))>0?Math.max(...n.map(an).filter(rn)):0:ze,minYValue:b.checkIfNullOrUndefined(W)?Math.min(...n.map(ln).filter(sn))>0?0:Math.min(...n.map(on).filter(nn)):W,onSeriesMouseClick:s,rtl:h==="he"||h==="ar",annotations:u,customHighlightAreaSettings:Dt,regressionLine:Yt,resetSelectionOnDoubleClick:Ft,detailsOnClick:X,noOfXTicks:Vt,noOfYTicks:Qe,labelColor:oe,xSuffix:ye,ySuffix:ve,xPrefix:be,yPrefix:Ae,styles:p,classNames:c,animate:Ze===!0?{duration:.5,once:!0,amount:.5}:Ze||{duration:0,once:!0,amount:0},dimmedOpacity:jt,precision:_e,customLayers:Ot}):null,e[62]=Ze,e[63]=u,e[64]=fe,e[65]=c,e[66]=T,e[67]=w,e[68]=Dt,e[69]=Ot,e[70]=n,e[71]=X,e[72]=jt,e[73]=pe,e[74]=he,e[75]=O,e[76]=oe,e[77]=h,e[78]=Y,e[79]=Ne,e[80]=$,e[81]=ze,e[82]=Be,e[83]=W,e[84]=Vt,e[85]=Qe,e[86]=s,e[87]=k,e[88]=_e,e[89]=le,e[90]=me,e[91]=de,e[92]=Yt,e[93]=Ft,e[94]=ue,e[95]=je,e[96]=ge,e[97]=se,e[98]=p,e[99]=it,e[100]=tt,e[101]=U,e[102]=r.dateFormat,e[103]=r.enabled,e[104]=ht,e[105]=xe,e[106]=x,e[107]=re,e[108]=be,e[109]=ye,e[110]=ae,e[111]=Ae,e[112]=ve,e[113]=we):we=e[113];let I;e[114]!==ke||e[115]!==we?(I=o.jsxRuntimeExports.jsxs(fi.GraphArea,{ref:Oe,children:[ke,we]}),e[114]=ke,e[115]=we,e[116]=I):I=e[116];let Le;e[117]!==c?.footnote||e[118]!==c?.source||e[119]!==H||e[120]!==Fe||e[121]!==p?.footnote||e[122]!==p?.source||e[123]!==y?(Le=Fe||H?o.jsxRuntimeExports.jsx(Ri.GraphFooter,{styles:{footnote:p?.footnote,source:p?.source},classNames:{footnote:c?.footnote,source:c?.source},sources:Fe,footNote:H,width:y}):null,e[117]=c?.footnote,e[118]=c?.source,e[119]=H,e[120]=Fe,e[121]=p?.footnote,e[122]=p?.source,e[123]=y,e[124]=Le):Le=e[124];let _;return e[125]!==L||e[126]!==ce||e[127]!==Ee||e[128]!==P||e[129]!==h||e[130]!==S||e[131]!==ne||e[132]!==gt||e[133]!==mt||e[134]!==kt||e[135]!==Ce||e[136]!==Z||e[137]!==Re||e[138]!==I||e[139]!==Le||e[140]!==U||e[141]!==y?(_=o.jsxRuntimeExports.jsxs(fi.GraphContainer,{className:mt,style:kt,id:Ee,ref:Rt,"aria-label":L,backgroundColor:ce,theme:U,language:h,minHeight:S,width:y,height:P,relativeHeight:gt,padding:ne,children:[Ce,Z,Re,I,Le]}),e[125]=L,e[126]=ce,e[127]=Ee,e[128]=P,e[129]=h,e[130]=S,e[131]=ne,e[132]=gt,e[133]=mt,e[134]=kt,e[135]=Ce,e[136]=Z,e[137]=Re,e[138]=I,e[139]=Le,e[140]=U,e[141]=y,e[142]=_):_=e[142],_}function nn(i){return i!=null}function on(i){return i.y}function sn(i){return i!=null}function ln(i){return i.y}function rn(i){return i!=null}function an(i){return i.y}function cn(i){return i!=null}function un(i){return i.y}function xn(i){return i!=null}function fn(i){return i.x}function mn(i){return i!=null}function dn(i){return i.x}function pn(i){return i!=null}function hn(i){return i.x}function gn(i){return i!=null}function yn(i){return i.x}function vn(i){return i!=null}function bn(i){return i.radius}function An(i){return i.label}function jn(i){return i.color}function On(i){return i.color}function Cn(i){return i.color}function Rn(i){return i!==void 0}function kn(i){return i!==void 0}function wn(i){return i.data}function Ln(i){return i!==void 0}function Sn(i){return i.data}function En(i,e){return i-e}function Nn(i){return i.date}exports.ScatterPlot=tn;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-CHPV5EwG-6v2a2njQ.cjs"),ii=require("./parse-xYI9yrvL.cjs"),E=require("react"),oi=require("./getSliderMarks-CIuSoedo.cjs"),ni=require("./index-DQA8q5sC.cjs"),gi=require("./index-Cno4Q0YE.cjs"),si=require("./simple-statistics-xm8c0LQQ.cjs"),yi=require("./Tooltip-BLa2EfMs.cjs"),A=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ee=require("./Colors.cjs"),li=require("./numberFormattingFunction-02t-wJta.cjs"),ti=require("./customArea-B1LWQBmM.cjs"),ri=require("./Axis-Jt_tmhxS.cjs"),ai=require("./AxisTitle-DV4n0RxE.cjs"),vi=require("./XTicksAndGridLines-CekrPykD.cjs"),ci=require("./ReferenceLine-M9aP3dj-.cjs"),bi=require("./RegressionLine-Ci-Dh0w0.cjs"),Ai=require("./YTicksAndGridLines-UzVC5eBM.cjs"),ji=require("./index-D69M6klB.cjs"),Oi=require("./DetailsModal-DIRTulvr.cjs"),Ci=require("./pow-BnyPO-NX.cjs"),ui=require("./linear-CgUCbw9F.cjs"),Ri=require("./delaunay-rcy0HhZi.cjs"),Bt=require("./proxy-C4-uo6nS.cjs"),ki=require("./use-in-view-C3o_ntMv.cjs"),xi=require("./index-CoobIWNj.cjs"),wi=require("./GraphFooter.cjs"),Li=require("./GraphHeader.cjs"),Si=require("./ColorLegendWithMouseOver.cjs"),Ei=require("./EmptyState-B4c-CrXs.cjs"),fi=require("./index-sbKVyHS2.cjs"),Ni=require("./ensureCompleteData-D9bQTiVS.cjs"),mi=require("./uniqBy-O05lp2S5.cjs"),di=require("./GraphContainer-B1EDxJ0S.cjs");function $i(i){const e=n.compilerRuntimeExports.c(219),{data:o,width:te,height:w,showLabels:Ge,colors:f,colorDomain:R,radius:P,xAxisTitle:y,yAxisTitle:G,leftMargin:X,rightMargin:ht,topMargin:Lt,bottomMargin:Ft,tooltip:gt,onSeriesMouseOver:ie,refXValues:St,refYValues:Et,highlightAreaSettings:Nt,selectedColor:we,highlightedDataPoints:W,maxRadiusValue:yt,maxXValue:vt,minXValue:k,maxYValue:We,minYValue:j,onSeriesMouseClick:N,rtl:Be,annotations:ze,customHighlightAreaSettings:Je,regressionLine:Le,resetSelectionOnDoubleClick:Se,detailsOnClick:$,noOfXTicks:Ke,noOfYTicks:Qe,labelColor:B,xSuffix:Ee,ySuffix:Ne,xPrefix:$e,yPrefix:Ve,styles:s,classNames:l,animate:a,dimmedOpacity:V,precision:M,showHighlightedDataPointsLabels:$t,customLayers:D,showVoronoiTesselation:Ze,useVoronoiInteraction:Vt}=i,Ut=E.useRef(null);let _e;e[0]!==a.amount||e[1]!==a.once?(_e={once:a.once,amount:a.amount},e[0]=a.amount,e[1]=a.once,e[2]=_e):_e=e[2];const b=ki.useInView(Ut,_e),[L,Me]=E.useState(void 0),[z,De]=E.useState(void 0),[p,c]=E.useState(void 0),[bt,qe]=E.useState(void 0),Mt=y?Ft+50:Ft,et=G?X+30:X;let Ie;e[3]!==ht||e[4]!==Mt||e[5]!==et||e[6]!==Lt?(Ie={top:Lt,bottom:Mt,left:et,right:ht},e[3]=ht,e[4]=Mt,e[5]=et,e[6]=Lt,e[7]=Ie):Ie=e[7];const g=Ie;let Te,oe,ne,se,le,re,Y,ae,ce,ue,J,xe,K,fe,Q,me,F,Z;if(e[8]!==a||e[9]!==ze||e[10]!==l?.graphObjectValues||e[11]!==l?.regLine||e[12]!==l?.xAxis?.axis||e[13]!==l?.xAxis?.gridLines||e[14]!==l?.xAxis?.labels||e[15]!==l?.xAxis?.title||e[16]!==l?.yAxis?.gridLines||e[17]!==l?.yAxis?.labels||e[18]!==l?.yAxis?.title||e[19]!==R||e[20]!==f||e[21]!==Je||e[22]!==D||e[23]!==o||e[24]!==$||e[25]!==V||e[26]!==w||e[27]!==Nt||e[28]!==W||e[29]!==b||e[30]!==B||e[31]!==X||e[32]!==g.bottom||e[33]!==g.left||e[34]!==g.right||e[35]!==g.top||e[36]!==yt||e[37]!==vt||e[38]!==We||e[39]!==k||e[40]!==j||e[41]!==z||e[42]!==L||e[43]!==Ke||e[44]!==Qe||e[45]!==N||e[46]!==ie||e[47]!==M||e[48]!==P||e[49]!==St||e[50]!==Et||e[51]!==Le||e[52]!==Se||e[53]!==Be||e[54]!==we||e[55]!==$t||e[56]!==Ge||e[57]!==Ze||e[58]!==s?.graphObjectValues||e[59]!==s?.regLine||e[60]!==s?.xAxis?.axis||e[61]!==s?.xAxis?.gridLines||e[62]!==s?.xAxis?.labels||e[63]!==s?.xAxis?.title||e[64]!==s?.yAxis?.gridLines||e[65]!==s?.yAxis?.labels||e[66]!==s?.yAxis?.title||e[67]!==Vt||e[68]!==te||e[69]!==y||e[70]!==$e||e[71]!==Ee||e[72]!==G||e[73]!==Ve||e[74]!==Ne){const tt=o.map(eo),h=te-g.left-g.right,v=w-g.top-g.bottom,S=o.filter(_i).length!==o.length?Ci.sqrt().domain([0,yt]).range([.25,P]).nice():void 0,Xe=tt.filter(Zi).length===0?tt.filter(Qi):gi.orderBy(tt.filter(Ki),"radius","desc"),u=ui.linear().domain([k,vt]).range([0,h]).nice(),m=ui.linear().domain([j,We]).range([v,0]).nice(),Dt=u.ticks(Ke),U=m.ticks(Qe),Ht=Ri.Delaunay.from(Xe,t=>u(t.x),t=>m(t.y)).voronoi([0,0,h<0?0:h,v<0?0:v]),Gt=si.linearRegression(o.filter(Ji).map(t=>[u(t.x),m(t.y)])),qt=si.linearRegressionLine(Gt);oe=Bt.motion.svg,ae=`${te}px`,ce=`${w}px`,ue=`0 0 ${te} ${w}`,J="ltr",xe=Ut,ne=`translate(${g.left},${g.top})`;let it;e[93]!==a||e[94]!==Je||e[95]!==b||e[96]!==u||e[97]!==m?(it=n.jsxRuntimeExports.jsx(ti.CustomArea,{areaSettings:Je,scaleX:u,scaleY:m,animate:a,isInView:b},"custom-area"),e[93]=a,e[94]=Je,e[95]=b,e[96]=u,e[97]=m,e[98]=it):it=e[98],se=n.jsxRuntimeExports.jsxs(xi.AnimatePresence,{children:[n.jsxRuntimeExports.jsx(ji.HighlightAreaForScatterPlot,{areaSettings:Nt,width:h,height:v,scaleX:u,scaleY:m,animate:a,isInView:b},"highlight-area"),it]});const ot=s?.yAxis?.gridLines,At=s?.yAxis?.labels;let nt;e[99]!==ot||e[100]!==At?(nt={gridLines:ot,labels:At},e[99]=ot,e[100]=At,e[101]=nt):nt=e[101];const st=l?.yAxis?.gridLines,jt=l?.yAxis?.labels;let Ye;e[102]!==st||e[103]!==jt?(Ye={gridLines:st,labels:jt},e[102]=st,e[103]=jt,e[104]=Ye):Ye=e[104];const r=m(j<0?0:j),Ot=m(j<0?0:j),Ct=h+g.right,lt=j<0?0:j;let rt;e[105]!==M||e[106]!==lt||e[107]!==Ve||e[108]!==Ne?(rt=li.numberFormattingFunction(lt,"NA",M,Ve,Ne),e[105]=M,e[106]=lt,e[107]=Ve,e[108]=Ne,e[109]=rt):rt=e[109];const at=m(j<0?0:j);let ct;e[110]!==at?(ct={x:0,y:at,dy:"0.33em",dx:-4},e[110]=at,e[111]=ct):ct=e[111];const q=l?.xAxis?.axis,Wt=l?.yAxis?.labels;let H;e[112]!==q||e[113]!==Wt?(H={axis:q,label:Wt},e[112]=q,e[113]=Wt,e[114]=H):H=e[114];const x=s?.xAxis?.axis;let O;e[115]!==s?.yAxis?.labels?(O=s?.yAxis?.labels||{},e[115]=s?.yAxis?.labels,e[116]=O):O=e[116];let be;e[117]!==O?(be={textAnchor:"end",...O},e[117]=O,e[118]=be):be=e[118];let Ae;e[119]!==x||e[120]!==be?(Ae={axis:x,label:be},e[119]=x,e[120]=be,e[121]=Ae):Ae=e[121];let It;e[122]!==r||e[123]!==Ot||e[124]!==Ct||e[125]!==rt||e[126]!==ct||e[127]!==H||e[128]!==Ae?(It=n.jsxRuntimeExports.jsx(ri.Axis,{y1:r,y2:Ot,x1:0,x2:Ct,label:rt,labelPos:ct,classNames:H,styles:Ae}),e[122]=r,e[123]=Ot,e[124]=Ct,e[125]=rt,e[126]=ct,e[127]=H,e[128]=Ae,e[129]=It):It=e[129];const Rt=0-X-15,Tt=v/2,ut=s?.yAxis?.title,xt=l?.yAxis?.title;let Fe;e[130]!==Rt||e[131]!==Tt||e[132]!==ut||e[133]!==xt||e[134]!==G?(Fe=n.jsxRuntimeExports.jsx(ai.AxisTitle,{x:Rt,y:Tt,style:ut,className:xt,text:G,rotate90:!0}),e[130]=Rt,e[131]=Tt,e[132]=ut,e[133]=xt,e[134]=G,e[135]=Fe):Fe=e[135],le=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(Ai.YTicksAndGridLines,{values:U.filter(zi),y:U.filter(Bi).map(t=>m(t)),x1:0,x2:h+g.right,styles:nt,classNames:Ye,suffix:Ne,prefix:Ve,labelType:"secondary",showGridLines:!0,labelPos:"side",precision:M}),It,Fe]});const ft=s?.xAxis?.gridLines,kt=s?.xAxis?.labels;let Ue;e[136]!==ft||e[137]!==kt?(Ue={gridLines:ft,labels:kt},e[136]=ft,e[137]=kt,e[138]=Ue):Ue=e[138];const mt=l?.xAxis?.gridLines,wt=l?.xAxis?.labels;let dt;e[139]!==mt||e[140]!==wt?(dt={gridLines:mt,labels:wt},e[139]=mt,e[140]=wt,e[141]=dt):dt=e[141];const je=u(k<0?0:k),Oe=u(k<0?0:k),Ce=k<0?0:k;let I;e[142]!==M||e[143]!==Ce||e[144]!==$e||e[145]!==Ee?(I=li.numberFormattingFunction(Ce,"NA",M,$e,Ee),e[142]=M,e[143]=Ce,e[144]=$e,e[145]=Ee,e[146]=I):I=e[146];const Re=u(k<0?0:k);let T;e[147]!==v||e[148]!==Re?(T={x:Re,y:v,dy:"1em",dx:0},e[147]=v,e[148]=Re,e[149]=T):T=e[149];const ke=l?.xAxis?.axis,pt=l?.yAxis?.labels;let d;e[150]!==ke||e[151]!==pt?(d={axis:ke,label:pt},e[150]=ke,e[151]=pt,e[152]=d):d=e[152];const _=s?.xAxis?.axis;let Pt;e[153]!==s?.yAxis?.labels?(Pt=s?.yAxis?.labels||{},e[153]=s?.yAxis?.labels,e[154]=Pt):Pt=e[154];let Xt;e[155]!==Pt?(Xt={textAnchor:"middle",...Pt},e[155]=Pt,e[156]=Xt):Xt=e[156];let Yt;e[157]!==_||e[158]!==Xt?(Yt={axis:_,label:Xt},e[157]=_,e[158]=Xt,e[159]=Yt):Yt=e[159];let zt;e[160]!==v||e[161]!==je||e[162]!==Oe||e[163]!==I||e[164]!==T||e[165]!==d||e[166]!==Yt?(zt=n.jsxRuntimeExports.jsx(ri.Axis,{x1:je,x2:Oe,y1:0,y2:v,label:I,labelPos:T,classNames:d,styles:Yt}),e[160]=v,e[161]=je,e[162]=Oe,e[163]=I,e[164]=T,e[165]=d,e[166]=Yt,e[167]=zt):zt=e[167];const Kt=h/2,Qt=v+30,Zt=s?.xAxis?.title,_t=l?.xAxis?.title;let Jt;e[168]!==Kt||e[169]!==Qt||e[170]!==Zt||e[171]!==_t||e[172]!==y?(Jt=n.jsxRuntimeExports.jsx(ai.AxisTitle,{x:Kt,y:Qt,style:Zt,className:_t,text:y}),e[168]=Kt,e[169]=Qt,e[170]=Zt,e[171]=_t,e[172]=y,e[173]=Jt):Jt=e[173],re=n.jsxRuntimeExports.jsxs("g",{children:[n.jsxRuntimeExports.jsx(vi.XTicksAndGridLines,{values:Dt.filter(Wi),x:Dt.filter(Gi).map(t=>u(t)),y1:0,y2:v,styles:Ue,classNames:dt,suffix:Ee,prefix:$e,labelType:"primary",showGridLines:!0,precision:M}),zt,Jt]}),e[174]!==D?(Y=D.filter(Hi).map(Ui),e[174]=D,e[175]=Y):Y=e[175],Te=xi.AnimatePresence,K=Vt&&Xe.map((t,He)=>n.jsxRuntimeExports.jsx("path",{d:Ht.renderCell(Xe.findIndex(C=>C.id===t.id)),opacity:Ze?1:0,className:"stroke-primary-gray-700 dark:stroke-primary-gray-300",style:{fillOpacity:0,strokeWidth:1},onMouseEnter:C=>{Me(t),qe(C.clientY),c(C.clientX),ie?.(t)},onMouseMove:C=>{Me(t),qe(C.clientY),c(C.clientX)},onMouseLeave:()=>{Me(void 0),c(void 0),qe(void 0),ie?.(void 0)},onClick:()=>{(N||$)&&(ni.isEqual(z,t)&&Se?(De(void 0),N?.(void 0)):(De(t),N?.(t)))}},`tesselation_${t.label||He}`)),fe=Xe.map((t,He)=>n.jsxRuntimeExports.jsxs(Bt.motion.g,{variants:{initial:{x:u(t.x),y:m(t.y),opacity:we?t.color&&f[R.indexOf(`${t.color}`)]===we?1:V:L?L.id===t.id?1:V:W.length!==0?W.indexOf(t.label||"")!==-1?1:V:1},whileInView:{x:u(t.x),y:m(t.y),opacity:we?t.color&&f[R.indexOf(`${t.color}`)]===we?1:V:L?L.id===t.id?1:V:W.length!==0?W.indexOf(t.label||"")!==-1?1:V:1,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",exit:{opacity:0,transition:{duration:a.duration}},onMouseEnter:C=>{Me(t),qe(C.clientY),c(C.clientX),ie?.(t)},onMouseMove:C=>{Me(t),qe(C.clientY),c(C.clientX)},onMouseLeave:()=>{Me(void 0),c(void 0),qe(void 0),ie?.(void 0)},onClick:()=>{(N||$)&&(ni.isEqual(z,t)&&Se?(De(void 0),N?.(void 0)):(De(t),N?.(t)))},children:[n.jsxRuntimeExports.jsx(Bt.motion.circle,{cx:0,cy:0,exit:{r:0,transition:{duration:a.duration}},variants:{initial:{r:0,fill:o.filter(Fi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ee.Colors.gray,stroke:o.filter(Yi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ee.Colors.gray},whileInView:{r:S?S(t.radius||0):P,fill:o.filter(Xi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ee.Colors.gray,stroke:o.filter(Pi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ee.Colors.gray,transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",style:{fillOpacity:.6}}),Ge&&!A.checkIfNullOrUndefined(t.label)?n.jsxRuntimeExports.jsx(Bt.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:S?S(t.radius||0):P,opacity:0,fill:B||(o.filter(Ti).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ee.Colors.gray)},whileInView:{x:S?S(t.radius||0):P,opacity:1,fill:B||(o.filter(Ii).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ee.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):W.length!==0&&!A.checkIfNullOrUndefined(t.label)&&$t&&W.indexOf(t.label)!==-1?n.jsxRuntimeExports.jsx(Bt.motion.text,{style:{...s?.graphObjectValues||{}},className:n.mo("graph-value text-sm",l?.graphObjectValues),y:0,exit:{opacity:0,transition:{duration:a.duration}},variants:{initial:{x:S?S(t.radius||0):P,opacity:0,fill:B||(o.filter(qi).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ee.Colors.gray)},whileInView:{x:S?S(t.radius||0):P,opacity:1,fill:B||(o.filter(Di).length===0?f[0]:t.color?f[R.indexOf(`${t.color}`)]:ee.Colors.gray),transition:{duration:a.duration}}},initial:"initial",animate:b?"whileInView":"initial",dy:"0.33em",dx:3,children:t.label}):null]},`${t.label||He}`)),Q=St.map((t,He)=>n.jsxRuntimeExports.jsx(ci.RefLineX,{text:t.text,color:t.color,x:u(t.value),y1:0,y2:v,textSide:u(t.value)>h*.75||Be?"left":"right",classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He)),me=Et.map((t,He)=>n.jsxRuntimeExports.jsx(ci.RefLineY,{text:t.text,color:t.color,y:m(t.value),x1:0,x2:h,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He));const ei=ze.map((t,He)=>{const C=ti.getLineEndPoint({x:t.xCoordinate?u(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),y:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8},{x:t.xCoordinate?u(t.xCoordinate):0,y:t.yCoordinate?m(t.yCoordinate):0},A.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius),pi=t.showConnector?{y1:C.y,x1:C.x,y2:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0):0+(t.yOffset||0),x2:t.xCoordinate?u(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),cy:t.yCoordinate?m(t.yCoordinate):0,cx:t.xCoordinate?u(t.xCoordinate):0,circleRadius:A.checkIfNullOrUndefined(t.connectorRadius)?3.5:t.connectorRadius,strokeWidth:t.showConnector===!0?2:Math.min(t.showConnector||0,1)}:void 0,hi={y:t.yCoordinate?m(t.yCoordinate)+(t.yOffset||0)-8:0+(t.yOffset||0)-8,x:Be?0:t.xCoordinate?u(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0),width:Be?t.xCoordinate?u(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0):h+g.right-(t.xCoordinate?u(t.xCoordinate)+(t.xOffset||0):0+(t.xOffset||0)),maxWidth:t.maxWidth,fontWeight:t.fontWeight,align:t.align};return n.jsxRuntimeExports.jsx(ti.Annotation,{color:t.color,connectorsSettings:pi,labelSettings:hi,text:t.text,classNames:t.classNames,styles:t.styles,animate:a,isInView:b},He)});e[176]!==ei?(F=n.jsxRuntimeExports.jsx("g",{children:ei}),e[176]=ei,e[177]=F):F=e[177],Z=Le?n.jsxRuntimeExports.jsx(bi.RegressionLine,{x1:0,x2:h,y1:qt(0),y2:qt(h),graphHeight:v,graphWidth:h,className:l?.regLine,style:s?.regLine,color:typeof Le=="string"?Le:void 0,animate:a,isInView:b}):null,e[8]=a,e[9]=ze,e[10]=l?.graphObjectValues,e[11]=l?.regLine,e[12]=l?.xAxis?.axis,e[13]=l?.xAxis?.gridLines,e[14]=l?.xAxis?.labels,e[15]=l?.xAxis?.title,e[16]=l?.yAxis?.gridLines,e[17]=l?.yAxis?.labels,e[18]=l?.yAxis?.title,e[19]=R,e[20]=f,e[21]=Je,e[22]=D,e[23]=o,e[24]=$,e[25]=V,e[26]=w,e[27]=Nt,e[28]=W,e[29]=b,e[30]=B,e[31]=X,e[32]=g.bottom,e[33]=g.left,e[34]=g.right,e[35]=g.top,e[36]=yt,e[37]=vt,e[38]=We,e[39]=k,e[40]=j,e[41]=z,e[42]=L,e[43]=Ke,e[44]=Qe,e[45]=N,e[46]=ie,e[47]=M,e[48]=P,e[49]=St,e[50]=Et,e[51]=Le,e[52]=Se,e[53]=Be,e[54]=we,e[55]=$t,e[56]=Ge,e[57]=Ze,e[58]=s?.graphObjectValues,e[59]=s?.regLine,e[60]=s?.xAxis?.axis,e[61]=s?.xAxis?.gridLines,e[62]=s?.xAxis?.labels,e[63]=s?.xAxis?.title,e[64]=s?.yAxis?.gridLines,e[65]=s?.yAxis?.labels,e[66]=s?.yAxis?.title,e[67]=Vt,e[68]=te,e[69]=y,e[70]=$e,e[71]=Ee,e[72]=G,e[73]=Ve,e[74]=Ne,e[75]=Te,e[76]=oe,e[77]=ne,e[78]=se,e[79]=le,e[80]=re,e[81]=Y,e[82]=ae,e[83]=ce,e[84]=ue,e[85]=J,e[86]=xe,e[87]=K,e[88]=fe,e[89]=Q,e[90]=me,e[91]=F,e[92]=Z}else Te=e[75],oe=e[76],ne=e[77],se=e[78],le=e[79],re=e[80],Y=e[81],ae=e[82],ce=e[83],ue=e[84],J=e[85],xe=e[86],K=e[87],fe=e[88],Q=e[89],me=e[90],F=e[91],Z=e[92];let de;e[178]!==Te||e[179]!==K||e[180]!==fe||e[181]!==Q||e[182]!==me||e[183]!==F||e[184]!==Z?(de=n.jsxRuntimeExports.jsxs(Te,{children:[K,fe,Q,me,F,Z]}),e[178]=Te,e[179]=K,e[180]=fe,e[181]=Q,e[182]=me,e[183]=F,e[184]=Z,e[185]=de):de=e[185];let pe;e[186]!==D?(pe=D.filter(Mi).map(Vi),e[186]=D,e[187]=pe):pe=e[187];let he;e[188]!==ne||e[189]!==se||e[190]!==le||e[191]!==re||e[192]!==Y||e[193]!==de||e[194]!==pe?(he=n.jsxRuntimeExports.jsxs("g",{transform:ne,children:[se,le,re,Y,de,pe]}),e[188]=ne,e[189]=se,e[190]=le,e[191]=re,e[192]=Y,e[193]=de,e[194]=pe,e[195]=he):he=e[195];let ge;e[196]!==oe||e[197]!==ae||e[198]!==ce||e[199]!==ue||e[200]!==J||e[201]!==xe||e[202]!==he?(ge=n.jsxRuntimeExports.jsx(oe,{width:ae,height:ce,viewBox:ue,direction:J,ref:xe,children:he}),e[196]=oe,e[197]=ae,e[198]=ce,e[199]=ue,e[200]=J,e[201]=xe,e[202]=he,e[203]=ge):ge=e[203];let ye;e[204]!==l?.tooltip||e[205]!==p||e[206]!==bt||e[207]!==L||e[208]!==s?.tooltip||e[209]!==gt?(ye=L&&gt&&p&&bt?n.jsxRuntimeExports.jsx(yi.Tooltip,{data:L,body:gt,xPos:p,yPos:bt,backgroundStyle:s?.tooltip,className:l?.tooltip}):null,e[204]=l?.tooltip,e[205]=p,e[206]=bt,e[207]=L,e[208]=s?.tooltip,e[209]=gt,e[210]=ye):ye=e[210];let ve;e[211]!==l?.modal||e[212]!==$||e[213]!==z?(ve=$&&z!==void 0?n.jsxRuntimeExports.jsx(Oi.DetailsModal,{body:$,data:z,setData:De,className:l?.modal}):null,e[211]=l?.modal,e[212]=$,e[213]=z,e[214]=ve):ve=e[214];let Pe;return e[215]!==ge||e[216]!==ye||e[217]!==ve?(Pe=n.jsxRuntimeExports.jsxs(n.jsxRuntimeExports.Fragment,{children:[ge,ye,ve]}),e[215]=ge,e[216]=ye,e[217]=ve,e[218]=Pe):Pe=e[218],Pe}function Vi(i){return i.layer}function Mi(i){return i.position==="after"}function Di(i){return i.color}function qi(i){return i.color}function Ii(i){return i.color}function Ti(i){return i.color}function Pi(i){return i.color}function Xi(i){return i.color}function Yi(i){return i.color}function Fi(i){return i.color}function Ui(i){return i.layer}function Hi(i){return i.position==="before"}function Gi(i){return i!==0}function Wi(i){return i!==0}function Bi(i){return i!==0}function zi(i){return i!==0}function Ji(i){return!A.checkIfNullOrUndefined(i.x)&&!A.checkIfNullOrUndefined(i.y)}function Ki(i){return!A.checkIfNullOrUndefined(i.radius)&&!A.checkIfNullOrUndefined(i.x)&&!A.checkIfNullOrUndefined(i.y)}function Qi(i){return!A.checkIfNullOrUndefined(i.x)&&!A.checkIfNullOrUndefined(i.y)}function Zi(i){return!A.checkIfNullOrUndefined(i.radius)}function _i(i){return i.radius===void 0||i.radius===null}function eo(i,e){return{...i,id:`${e}`}}function to(i){const e=n.compilerRuntimeExports.c(145),{data:o,graphTitle:te,colors:w,sources:Ge,graphDescription:f,showLabels:R,height:P,width:y,footNote:G,colorDomain:X,colorLegendTitle:ht,radius:Lt,xAxisTitle:Ft,yAxisTitle:gt,padding:ie,backgroundColor:St,leftMargin:Et,rightMargin:Nt,topMargin:we,bottomMargin:W,tooltip:yt,relativeHeight:vt,onSeriesMouseOver:k,refXValues:We,refYValues:j,highlightAreaSettings:N,showColorScale:Be,highlightedDataPoints:ze,showHighlightedDataPointsLabels:Je,graphID:Le,maxRadiusValue:Se,maxXValue:$,minXValue:Ke,maxYValue:Qe,minYValue:B,xSuffix:Ee,ySuffix:Ne,xPrefix:$e,yPrefix:Ve,onSeriesMouseClick:s,graphDownload:l,dataDownload:a,language:V,showNAColor:M,minHeight:$t,annotations:D,customHighlightAreaSettings:Ze,theme:Vt,regressionLine:Ut,ariaLabel:_e,resetSelectionOnDoubleClick:b,detailsOnClick:L,noOfXTicks:Me,noOfYTicks:z,labelColor:De,styles:p,classNames:c,animate:bt,dimmedOpacity:qe,precision:Mt,customLayers:et,timeline:Ie,showVoronoiTesselation:g,useVoronoiInteraction:Te}=i,oe=R===void 0?!1:R,ne=Lt===void 0?5:Lt,se=Ft===void 0?"X Axis":Ft,le=gt===void 0?"Y Axis":gt,re=St===void 0?!1:St,Y=Et===void 0?0:Et,ae=Nt===void 0?10:Nt,ce=we===void 0?20:we,ue=W===void 0?50:W;let J;e[0]!==We?(J=We===void 0?[]:We,e[0]=We,e[1]=J):J=e[1];const xe=J;let K;e[2]!==j?(K=j===void 0?[]:j,e[2]=j,e[3]=K):K=e[3];const fe=K;let Q;e[4]!==N?(Q=N===void 0?[]:N,e[4]=N,e[5]=Q):Q=e[5];const me=Q,F=Be===void 0?!0:Be;let Z;e[6]!==ze?(Z=ze===void 0?[]:ze,e[6]=ze,e[7]=Z):Z=e[7];const de=Z,pe=Je===void 0?!1:Je,he=Ee===void 0?"":Ee,ge=Ne===void 0?"":Ne,ye=$e===void 0?"":$e,ve=Ve===void 0?"":Ve,Pe=l===void 0?!1:l,tt=a===void 0?!1:a,h=V===void 0?"en":V,v=M===void 0?!0:M,S=$t===void 0?0:$t;let Xe;e[8]!==D?(Xe=D===void 0?[]:D,e[8]=D,e[9]=Xe):Xe=e[9];const u=Xe;let m;e[10]!==Ze?(m=Ze===void 0?[]:Ze,e[10]=Ze,e[11]=m):m=e[11];const Dt=m,U=Vt===void 0?"light":Vt,Ht=Ut===void 0?!1:Ut,Gt=b===void 0?!0:b,qt=Me===void 0?5:Me,it=z===void 0?5:z,ot=bt===void 0?!1:bt,At=qe===void 0?.3:qe,nt=Mt===void 0?2:Mt;let st;e[12]!==et?(st=et===void 0?[]:et,e[12]=et,e[13]=st):st=e[13];const jt=st;let Ye;e[14]!==Ie?(Ye=Ie===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:Ie,e[14]=Ie,e[15]=Ye):Ye=e[15];const r=Ye,Ot=g===void 0?!1:g,Ct=Te===void 0?!0:Te,[lt,rt]=E.useState(0),[at,ct]=E.useState(0),[q,Wt]=E.useState(r.autoplay);let H;if(e[16]!==o||e[17]!==r.dateFormat){let d;e[19]!==r.dateFormat?(d=_=>ii.parse(`${_.date}`,r.dateFormat||"yyyy",new Date).getTime(),e[19]=r.dateFormat,e[20]=d):d=e[20],H=[...new Set(o.filter(No).map(d))],H.sort(Eo),e[16]=o,e[17]=r.dateFormat,e[18]=H}else H=e[18];const x=H,[O,be]=E.useState(r.autoplay?0:x.length-1),[Ae,It]=E.useState(void 0),Rt=E.useRef(null),Tt=E.useRef(null);let ut,xt;e[21]===Symbol.for("react.memo_cache_sentinel")?(ut=()=>{const d=new ResizeObserver(_=>{rt(_[0].target.clientWidth||620),ct(_[0].target.clientHeight||480)});return Rt.current&&d.observe(Rt.current),()=>d.disconnect()},xt=[],e[21]=ut,e[22]=xt):(ut=e[21],xt=e[22]),E.useEffect(ut,xt);let Fe,ft;e[23]!==q||e[24]!==r.speed||e[25]!==x?(Fe=()=>{const d=setInterval(()=>{be(_=>_<x.length-1?_+1:0)},(r.speed||2)*1e3);return q||clearInterval(d),()=>clearInterval(d)},ft=[x,q,r.speed],e[23]=q,e[24]=r.speed,e[25]=x,e[26]=Fe,e[27]=ft):(Fe=e[26],ft=e[27]),E.useEffect(Fe,ft);const kt=r.dateFormat||"yyyy";let Ue;e[28]!==O||e[29]!==kt||e[30]!==r.showOnlyActiveDate||e[31]!==x?(Ue=oi.getSliderMarks(x,O,r.showOnlyActiveDate,kt),e[28]=O,e[29]=kt,e[30]=r.showOnlyActiveDate,e[31]=x,e[32]=Ue):Ue=e[32];const mt=Ue,wt=c?.graphContainer,dt=p?.graphContainer;let je;e[33]!==c?.description||e[34]!==c?.title||e[35]!==o||e[36]!==tt||e[37]!==f||e[38]!==Pe||e[39]!==te||e[40]!==p?.description||e[41]!==p?.title||e[42]!==y?(je=te||f||Pe||tt?n.jsxRuntimeExports.jsx(Li.GraphHeader,{styles:{title:p?.title,description:p?.description},classNames:{title:c?.title,description:c?.description},graphTitle:te,graphDescription:f,width:y,graphDownload:Pe?Tt:void 0,dataDownload:tt?o.map(So).filter(Lo).length>0?o.map(wo).filter(ko):o.filter(Ro):null}):null,e[33]=c?.description,e[34]=c?.title,e[35]=o,e[36]=tt,e[37]=f,e[38]=Pe,e[39]=te,e[40]=p?.description,e[41]=p?.title,e[42]=y,e[43]=je):je=e[43];let Oe;e[44]!==O||e[45]!==mt||e[46]!==q||e[47]!==r.enabled||e[48]!==x?(Oe=r.enabled&&x.length>0&&mt?n.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[n.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Wt(!q)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":q?"Click to pause animation":"Click to play animation",children:q?n.jsxRuntimeExports.jsx(fi.Pause,{}):n.jsxRuntimeExports.jsx(fi.Play,{})}),n.jsxRuntimeExports.jsx(oi.Nr,{min:x[0],max:x[x.length-1],marks:mt,step:null,defaultValue:x[x.length-1],value:x[O],onChangeComplete:d=>{be(x.indexOf(d))},onChange:d=>{be(x.indexOf(d))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,e[44]=O,e[45]=mt,e[46]=q,e[47]=r.enabled,e[48]=x,e[49]=Oe):Oe=e[49];let Ce;e[50]!==c?.colorLegend||e[51]!==X||e[52]!==ht||e[53]!==w||e[54]!==o||e[55]!==F||e[56]!==v||e[57]!==U||e[58]!==y?(Ce=F&&o.filter(Co).length!==0&&o.length>0?n.jsxRuntimeExports.jsx(Si.ColorLegendWithMouseOver,{width:y,colorLegendTitle:ht,colors:w||ee.Colors[U].categoricalColors.colors,colorDomain:X||mi.uniqBy(o,"color",!0),setSelectedColor:It,showNAColor:v,className:c?.colorLegend}):null,e[50]=c?.colorLegend,e[51]=X,e[52]=ht,e[53]=w,e[54]=o,e[55]=F,e[56]=v,e[57]=U,e[58]=y,e[59]=Ce):Ce=e[59];let I;e[60]!==o.length?(I=o.length===0&&n.jsxRuntimeExports.jsx(Ei.EmptyState,{}),e[60]=o.length,e[61]=I):I=e[61];let Re;e[62]!==ot||e[63]!==u||e[64]!==ue||e[65]!==c||e[66]!==X||e[67]!==w||e[68]!==Dt||e[69]!==jt||e[70]!==o||e[71]!==L||e[72]!==At||e[73]!==me||e[74]!==de||e[75]!==O||e[76]!==De||e[77]!==h||e[78]!==Y||e[79]!==Se||e[80]!==$||e[81]!==Qe||e[82]!==Ke||e[83]!==B||e[84]!==qt||e[85]!==it||e[86]!==s||e[87]!==k||e[88]!==nt||e[89]!==ne||e[90]!==xe||e[91]!==fe||e[92]!==Ht||e[93]!==Gt||e[94]!==ae||e[95]!==Ae||e[96]!==pe||e[97]!==oe||e[98]!==Ot||e[99]!==p||e[100]!==at||e[101]!==lt||e[102]!==U||e[103]!==r.dateFormat||e[104]!==r.enabled||e[105]!==yt||e[106]!==ce||e[107]!==x||e[108]!==Ct||e[109]!==se||e[110]!==ye||e[111]!==he||e[112]!==le||e[113]!==ve||e[114]!==ge?(Re=lt&&at&&o.length>0?n.jsxRuntimeExports.jsx($i,{data:Ni.ensureCompleteDataForScatterPlot(o,r.dateFormat||"yyyy").filter(d=>r.enabled?`${d.date}`===ii.format(new Date(x[O]),r.dateFormat||"yyyy"):d),width:lt,height:at,colorDomain:o.filter(Oo).length===0?[]:X||mi.uniqBy(o,"color",!0),colors:o.filter(jo).length===0?w?[w]:[ee.Colors.primaryColors["blue-600"]]:w||ee.Colors[U].categoricalColors.colors,xAxisTitle:se,yAxisTitle:le,refXValues:xe,refYValues:fe,showLabels:oe,radius:ne,leftMargin:Y,rightMargin:ae,topMargin:ce,bottomMargin:ue,tooltip:yt,onSeriesMouseOver:k,highlightAreaSettings:me,showVoronoiTesselation:Ot,highlightedDataPoints:o.filter(Ao).length===0?[]:de,showHighlightedDataPointsLabels:pe,selectedColor:Ae,maxRadiusValue:A.checkIfNullOrUndefined(Se)?Math.max(...o.map(bo).filter(vo)):Se,maxXValue:A.checkIfNullOrUndefined($)?Math.max(...o.map(yo).filter(go))>0?Math.max(...o.map(ho).filter(po)):0:$,minXValue:A.checkIfNullOrUndefined(Ke)?Math.min(...o.map(mo).filter(fo))>0?0:Math.min(...o.map(xo).filter(uo)):Ke,maxYValue:A.checkIfNullOrUndefined(Qe)?Math.max(...o.map(co).filter(ao))>0?Math.max(...o.map(ro).filter(lo)):0:Qe,minYValue:A.checkIfNullOrUndefined(B)?Math.min(...o.map(so).filter(no))>0?0:Math.min(...o.map(oo).filter(io)):B,onSeriesMouseClick:s,rtl:h==="he"||h==="ar",annotations:u,customHighlightAreaSettings:Dt,regressionLine:Ht,resetSelectionOnDoubleClick:Gt,detailsOnClick:L,noOfXTicks:qt,noOfYTicks:it,labelColor:De,xSuffix:he,ySuffix:ge,xPrefix:ye,yPrefix:ve,styles:p,classNames:c,animate:ot===!0?{duration:.5,once:!0,amount:.5}:ot||{duration:0,once:!0,amount:0},dimmedOpacity:At,precision:nt,customLayers:jt,useVoronoiInteraction:Ct}):null,e[62]=ot,e[63]=u,e[64]=ue,e[65]=c,e[66]=X,e[67]=w,e[68]=Dt,e[69]=jt,e[70]=o,e[71]=L,e[72]=At,e[73]=me,e[74]=de,e[75]=O,e[76]=De,e[77]=h,e[78]=Y,e[79]=Se,e[80]=$,e[81]=Qe,e[82]=Ke,e[83]=B,e[84]=qt,e[85]=it,e[86]=s,e[87]=k,e[88]=nt,e[89]=ne,e[90]=xe,e[91]=fe,e[92]=Ht,e[93]=Gt,e[94]=ae,e[95]=Ae,e[96]=pe,e[97]=oe,e[98]=Ot,e[99]=p,e[100]=at,e[101]=lt,e[102]=U,e[103]=r.dateFormat,e[104]=r.enabled,e[105]=yt,e[106]=ce,e[107]=x,e[108]=Ct,e[109]=se,e[110]=ye,e[111]=he,e[112]=le,e[113]=ve,e[114]=ge,e[115]=Re):Re=e[115];let T;e[116]!==I||e[117]!==Re?(T=n.jsxRuntimeExports.jsxs(di.GraphArea,{ref:Rt,children:[I,Re]}),e[116]=I,e[117]=Re,e[118]=T):T=e[118];let ke;e[119]!==c?.footnote||e[120]!==c?.source||e[121]!==G||e[122]!==Ge||e[123]!==p?.footnote||e[124]!==p?.source||e[125]!==y?(ke=Ge||G?n.jsxRuntimeExports.jsx(wi.GraphFooter,{styles:{footnote:p?.footnote,source:p?.source},classNames:{footnote:c?.footnote,source:c?.source},sources:Ge,footNote:G,width:y}):null,e[119]=c?.footnote,e[120]=c?.source,e[121]=G,e[122]=Ge,e[123]=p?.footnote,e[124]=p?.source,e[125]=y,e[126]=ke):ke=e[126];let pt;return e[127]!==_e||e[128]!==re||e[129]!==Le||e[130]!==P||e[131]!==h||e[132]!==S||e[133]!==ie||e[134]!==vt||e[135]!==wt||e[136]!==dt||e[137]!==je||e[138]!==Oe||e[139]!==Ce||e[140]!==T||e[141]!==ke||e[142]!==U||e[143]!==y?(pt=n.jsxRuntimeExports.jsxs(di.GraphContainer,{className:wt,style:dt,id:Le,ref:Tt,"aria-label":_e,backgroundColor:re,theme:U,language:h,minHeight:S,width:y,height:P,relativeHeight:vt,padding:ie,children:[je,Oe,Ce,T,ke]}),e[127]=_e,e[128]=re,e[129]=Le,e[130]=P,e[131]=h,e[132]=S,e[133]=ie,e[134]=vt,e[135]=wt,e[136]=dt,e[137]=je,e[138]=Oe,e[139]=Ce,e[140]=T,e[141]=ke,e[142]=U,e[143]=y,e[144]=pt):pt=e[144],pt}function io(i){return i!=null}function oo(i){return i.y}function no(i){return i!=null}function so(i){return i.y}function lo(i){return i!=null}function ro(i){return i.y}function ao(i){return i!=null}function co(i){return i.y}function uo(i){return i!=null}function xo(i){return i.x}function fo(i){return i!=null}function mo(i){return i.x}function po(i){return i!=null}function ho(i){return i.x}function go(i){return i!=null}function yo(i){return i.x}function vo(i){return i!=null}function bo(i){return i.radius}function Ao(i){return i.label}function jo(i){return i.color}function Oo(i){return i.color}function Co(i){return i.color}function Ro(i){return i!==void 0}function ko(i){return i!==void 0}function wo(i){return i.data}function Lo(i){return i!==void 0}function So(i){return i.data}function Eo(i,e){return i-e}function No(i){return i.date}exports.ScatterPlot=to;
2
2
  //# sourceMappingURL=ScatterPlot.cjs.map