semiotic 3.8.2 → 3.8.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 (113) hide show
  1. package/CLAUDE.md +1 -1
  2. package/README.md +34 -33
  3. package/ai/schema.json +1 -1
  4. package/ai/surface-manifest.json +1 -1
  5. package/ai/system-prompt.md +1 -1
  6. package/dist/{chunk-chunk-C6EJ4IOD.module.min.js → chunk-chunk-2CCFBTQC.module.min.js} +1 -1
  7. package/dist/chunk-chunk-2RXP3FS3.module.min.js +1 -0
  8. package/dist/chunk-chunk-4TMZXLCR.module.min.js +1 -0
  9. package/dist/{chunk-chunk-H4PPRW6N.module.min.js → chunk-chunk-5APBQXZA.module.min.js} +1 -1
  10. package/dist/{chunk-chunk-NO4MCQVD.module.min.js → chunk-chunk-5RKXZQ2P.module.min.js} +1 -1
  11. package/dist/chunk-chunk-6HSGDMTA.module.min.js +2 -0
  12. package/dist/{chunk-chunk-7LHMKRKE.module.min.js → chunk-chunk-7FW6EGLP.module.min.js} +1 -1
  13. package/dist/{chunk-chunk-RH5TSQPH.module.min.js → chunk-chunk-7OEOSCBP.module.min.js} +1 -1
  14. package/dist/{chunk-chunk-FAKO3RGQ.module.min.js → chunk-chunk-A63CTACR.module.min.js} +1 -1
  15. package/dist/chunk-chunk-ANYDWOZF.module.min.js +1 -0
  16. package/dist/{chunk-chunk-ZLKRTF5N.module.min.js → chunk-chunk-AZJUDQRM.module.min.js} +1 -1
  17. package/dist/{chunk-chunk-W3DB2MN4.module.min.js → chunk-chunk-B6V35LMY.module.min.js} +1 -1
  18. package/dist/chunk-chunk-BOSVL645.module.min.js +2 -0
  19. package/dist/chunk-chunk-EMO5NUGE.module.min.js +1 -0
  20. package/dist/chunk-chunk-F25UA5HT.module.min.js +1 -0
  21. package/dist/chunk-chunk-FRIO6MCV.module.min.js +1 -0
  22. package/dist/{chunk-chunk-T27ZEV6A.module.min.js → chunk-chunk-GWSWSPXN.module.min.js} +1 -1
  23. package/dist/chunk-chunk-I6C3KR5H.module.min.js +2 -0
  24. package/dist/chunk-chunk-IP2UE74X.module.min.js +1 -0
  25. package/dist/chunk-chunk-J5RL6GXU.module.min.js +2 -0
  26. package/dist/chunk-chunk-JNCHKRIR.module.min.js +2 -0
  27. package/dist/{chunk-chunk-Z5KXAVQD.module.min.js → chunk-chunk-L3H6DQCR.module.min.js} +1 -1
  28. package/dist/{chunk-chunk-5WEFWNUW.module.min.js → chunk-chunk-M7VYYHCE.module.min.js} +1 -1
  29. package/dist/chunk-chunk-MC35ILYP.module.min.js +2 -0
  30. package/dist/{chunk-chunk-2VUEY5TH.module.min.js → chunk-chunk-N72SWNBV.module.min.js} +1 -1
  31. package/dist/chunk-chunk-OBQRFTIL.module.min.js +2 -0
  32. package/dist/chunk-chunk-OQTLSTGI.module.min.js +2 -0
  33. package/dist/{chunk-chunk-2UN3ANRN.module.min.js → chunk-chunk-SA3D43RA.module.min.js} +1 -1
  34. package/dist/chunk-chunk-SANERMIZ.module.min.js +2 -0
  35. package/dist/{chunk-chunk-DNY43POY.module.min.js → chunk-chunk-UHSZEB74.module.min.js} +1 -1
  36. package/dist/{chunk-chunk-CYIML3AV.module.min.js → chunk-chunk-XQYVEKEJ.module.min.js} +1 -1
  37. package/dist/{chunk-chunk-27HVVXS6.module.min.js → chunk-chunk-Y6AXCRVO.module.min.js} +1 -1
  38. package/dist/components/charts/custom/XYCustomChart.d.ts +3 -0
  39. package/dist/components/charts/realtime/RealtimeHistogram.d.ts +5 -6
  40. package/dist/components/charts/realtime/temporalHistogramConfig.d.ts +11 -0
  41. package/dist/components/charts/shared/areaSeriesData.d.ts +15 -0
  42. package/dist/components/charts/shared/chartMode.d.ts +67 -0
  43. package/dist/components/charts/shared/colorUtils.d.ts +8 -0
  44. package/dist/components/charts/shared/geoStyleDefaults.d.ts +3 -0
  45. package/dist/components/charts/shared/hooks.d.ts +13 -80
  46. package/dist/components/charts/shared/useChartSetup.d.ts +3 -0
  47. package/dist/components/charts/shared/useCustomChartSetup.d.ts +3 -0
  48. package/dist/components/charts/shared/useXYLineStyle.d.ts +3 -2
  49. package/dist/components/charts/shared/xyLineStyle.d.ts +21 -0
  50. package/dist/components/charts/xy/LineChart.d.ts +3 -0
  51. package/dist/components/legendLayout.d.ts +31 -0
  52. package/dist/components/server/serverChartConfigShared.d.ts +29 -0
  53. package/dist/components/server/serverChartConfigs.d.ts +2 -13
  54. package/dist/components/server/serverChartConfigsXY.d.ts +3 -0
  55. package/dist/components/server/serverGaugeOverlay.d.ts +28 -0
  56. package/dist/components/server/staticLegend.d.ts +7 -1
  57. package/dist/components/server/staticSVGChrome.d.ts +57 -0
  58. package/dist/components/stream/GeoPipelineStore.d.ts +2 -0
  59. package/dist/components/stream/GeoSVGOverlay.d.ts +2 -0
  60. package/dist/components/stream/SceneToSVG.d.ts +8 -6
  61. package/dist/components/stream/SceneToSVGGeo.d.ts +10 -0
  62. package/dist/components/stream/SceneToSVGNetwork.d.ts +12 -0
  63. package/dist/components/stream/canvasBackground.d.ts +7 -0
  64. package/dist/components/stream/networkTypes.d.ts +2 -4
  65. package/dist/components/stream/renderBackend.d.ts +14 -0
  66. package/dist/components/stream/sceneToSVGShared.d.ts +51 -0
  67. package/dist/components/types/legendTypes.d.ts +16 -3
  68. package/dist/geo.min.js +1 -1
  69. package/dist/geo.module.min.js +1 -1
  70. package/dist/network.min.js +1 -1
  71. package/dist/network.module.min.js +1 -1
  72. package/dist/ordinal.min.js +1 -1
  73. package/dist/ordinal.module.min.js +1 -1
  74. package/dist/physics.min.js +1 -1
  75. package/dist/physics.module.min.js +1 -1
  76. package/dist/realtime.min.js +1 -1
  77. package/dist/realtime.module.min.js +1 -1
  78. package/dist/semiotic-ai-core.min.js +1 -1
  79. package/dist/semiotic-ai-core.module.min.js +1 -1
  80. package/dist/semiotic-ai.min.js +1 -1
  81. package/dist/semiotic-ai.module.min.js +1 -1
  82. package/dist/semiotic-experimental.min.js +1 -1
  83. package/dist/semiotic-experimental.module.min.js +1 -1
  84. package/dist/semiotic-realtime-core.min.js +1 -1
  85. package/dist/semiotic-realtime-core.module.min.js +1 -1
  86. package/dist/semiotic-recipes-core.module.min.js +1 -1
  87. package/dist/semiotic-recipes.module.min.js +1 -1
  88. package/dist/semiotic-server-edge.min.js +1 -1
  89. package/dist/semiotic-server-edge.module.min.js +1 -1
  90. package/dist/semiotic-server-node.min.js +1 -1
  91. package/dist/semiotic-server-node.module.min.js +1 -1
  92. package/dist/semiotic-utils-core.module.min.js +1 -1
  93. package/dist/semiotic-utils.module.min.js +1 -1
  94. package/dist/semiotic.min.js +1 -1
  95. package/dist/semiotic.module.min.js +1 -1
  96. package/dist/server.min.js +1 -1
  97. package/dist/server.module.min.js +1 -1
  98. package/dist/xy.min.js +1 -1
  99. package/dist/xy.module.min.js +1 -1
  100. package/package.json +1 -1
  101. package/dist/chunk-chunk-6F6GEAQU.module.min.js +0 -1
  102. package/dist/chunk-chunk-BHYTYMY2.module.min.js +0 -2
  103. package/dist/chunk-chunk-E7MIQX7D.module.min.js +0 -2
  104. package/dist/chunk-chunk-ES4DCG3L.module.min.js +0 -1
  105. package/dist/chunk-chunk-IFYPMWKY.module.min.js +0 -1
  106. package/dist/chunk-chunk-L6D3I3V7.module.min.js +0 -2
  107. package/dist/chunk-chunk-ODUZEEBH.module.min.js +0 -2
  108. package/dist/chunk-chunk-P6UBCMSQ.module.min.js +0 -2
  109. package/dist/chunk-chunk-STZFFTAN.module.min.js +0 -2
  110. package/dist/chunk-chunk-U3AGQ5EF.module.min.js +0 -2
  111. package/dist/chunk-chunk-WDIN4LRC.module.min.js +0 -1
  112. package/dist/chunk-chunk-XOYX77KF.module.min.js +0 -2
  113. package/dist/chunk-chunk-ZTNVDWAK.module.min.js +0 -2
@@ -1,2 +0,0 @@
1
- "use client";
2
- import{buildRegressionAnnotation as e}from"./chunk-chunk-YCQYG6J5.module.min.js";import{validateArrayData as t}from"./chunk-chunk-JCG72SGW.module.min.js";import{mergeShapeStyle as o,normalizePartialMargin as n,useChartSetup as i,useCustomChartSetup as r,useFrameImperativeHandle as a,useResolvedSelection as s}from"./chunk-chunk-BHYTYMY2.module.min.js";import{StreamXYFrame_default as l}from"./chunk-chunk-L6D3I3V7.module.min.js";import{accessorName as c,bandTooltipFields as h,buildBaseMetadataProps as d,buildCustomBehaviorProps as u,buildDefaultTooltip as m,buildTooltipProps as p}from"./chunk-chunk-FAKO3RGQ.module.min.js";import{makeXYRuleContext as f,resolveStyleRules as y}from"./chunk-chunk-EMO5NUGE.module.min.js";import{COLOR_SCHEMES as g,DEFAULT_COLOR as b,DEFAULT_COLORS as v,DEFAULT_SELECTION_OPACITY as x,LinkedCharts as A,MultiPointTooltip as w,defaultTooltipStyle as k,filterSparseArray as S,getColor as C,getCrosshairProps as L,getSequentialInterpolator as H,getSize as I,interpolateViridis as B,normalizeLinkedBrush as F,normalizeTooltip as R,resolveMobileInteraction as _,useBrushSelection as N,useChartLegendAndMargin as P,useChartMode as W,useChartSelection as E,useColorScale as D,useLegendInteraction as M,useSelection as T,useSelectionSelector as O,useThemeCategorical as G,useThemeSequential as z,wrapStyleWithSelection as j}from"./chunk-chunk-ODUZEEBH.module.min.js";import{getMax as $,getMinMax as Q}from"./chunk-chunk-JJ2OOIET.module.min.js";import{ChartError as Y,SafeRender as V,renderEmptyState as X,renderLoadingState as q,warnMissingField as J}from"./chunk-chunk-ZCNBUZPL.module.min.js";import*as K from"react";import{useMemo as U,useCallback as Z,forwardRef as ee,useRef as te}from"react";import{useMemo as oe}from"react";function ne(e){const{colorBy:t,colorScale:n,color:i,pointRadius:r=5,radiusFn:a,fillOpacity:s=1,fallbackFill:l,baseStyleExtras:c,stroke:h,strokeWidth:d,opacity:u,effectiveSelectionHook:m,resolvedSelection:p,colorDatumAccessor:f,styleRules:g,ruleContext:v}=e,x=oe(()=>e=>{const o="function"==typeof c?c(e):c,h=o?{...o}:{};if(void 0===h.fillOpacity&&(h.fillOpacity=s),void 0===h.fill)if(t){if(n){const o=f?f(e):e;h.fill=C(o,t,n)}}else h.fill=l?l(e):i||b;return void 0===h.r&&(h.r=a?a(e):r),g&&g.length>0&&Object.assign(h,y(e,g,v?v(e):{value:void 0})),h},[t,n,i,r,a,s,l,c,f,g,v]),A=oe(()=>o(x,{stroke:h,strokeWidth:d,opacity:u}),[x,h,d,u]);return oe(()=>j(A,m??null,p),[A,m,p])}import{useCallback as ie,useMemo as re,useRef as ae,useState as se}from"react";function le(e){const{accessor:t,data:o,isPushMode:n}=e,i=ae(null),[r,a]=se(0),s=ie(e=>{if(!n||!t)return;let o=!1;for(const n of e){const e="function"==typeof t?t(n):n[t];if(null==e)continue;const r="number"==typeof e?e:Number(e);Number.isFinite(r)&&(i.current?(i.current[0]>r&&(i.current[0]=r,o=!0),r>i.current[1]&&(i.current[1]=r,o=!0)):(i.current=[r,r],o=!0))}o&&a(e=>e+1)},[n,t]),l=ie(()=>{n&&(i.current=null,a(e=>e+1))},[n]);return{domain:re(()=>{if(n)return i.current??void 0;if(!t||0===o.length)return;const e="function"==typeof t?t:e=>e[t];let r=1/0,a=-1/0;for(const t of o){const o=e(t);if(null==o)continue;const n="number"==typeof o?o:Number(o);Number.isFinite(n)&&(r>n&&(r=n),n>a&&(a=n))}return Number.isFinite(r)&&Number.isFinite(a)?[r,a]:void 0},[o,t,n,r]),trackPushed:s,reset:l}}import{useEffect as ce,useMemo as he,useRef as de,useState as ue}from"react";var me="__forecastSegment",pe=null;async function fe(){return pe||(pe=await import("./chunk-statisticalOverlays-6MVAK5RW.module.min.js")),pe}var ye="__semiotic_resolvedX",ge="__semiotic_resolvedY";function be(e){const{data:t,xAccessor:o,yAccessor:n,forecast:i,anomaly:r,groupBy:a}=e,s="string"==typeof o?o:ye,l="string"==typeof n?n:ge,c=he(()=>{if(!i&&!r)return t;const e="function"==typeof o,a="function"==typeof n;return e||a?t.map(t=>{const i={...t};return e&&(i[ye]=o(t)),a&&(i[ge]=n(t)),i}):t},[t,i,r,o,n]),[h,d]=ue(null),[u,m]=ue([]),p=de(i),f=de(r);return ce(()=>{if(!i&&!r)return void((p.current||f.current)&&(d(null),m([]),p.current=i,f.current=r));let e=!1;const t=i!==p.current||r!==f.current;if(p.current=i,f.current=r,t&&(d(null),m([])),i){const t=a&&"string"==typeof a&&"object"==typeof i?{...i,_groupBy:a}:i;(async function(...e){return(await fe()).buildForecast(...e)})(c,s,l,t,r).then(t=>{e||(d(t),m(t.annotations))}).catch(()=>{e||(d(null),m([]))})}else r&&async function(...e){return(await fe()).buildAnomalyAnnotations(...e)}(r).then(t=>{e||(d(null),m(t))}).catch(()=>{e||m([])});return()=>{e=!0}},[c,i,r,s,l,a]),{effectiveData:h?h.processedData:t,statisticalAnnotations:u,hasForecast:!!h,xAccessorKey:s,yAccessorKey:l}}import{jsx as ve}from"react/jsx-runtime";var xe=ee(function(o,n){const r=te(null),s=W(o.mode,{width:o.width,height:o.height,showGrid:o.showGrid,enableHover:o.enableHover,showLegend:o.showLegend,title:o.title,xLabel:o.xLabel,yLabel:o.yLabel,mobileInteraction:o.mobileInteraction,mobileSemantics:o.mobileSemantics,responsiveRules:o.responsiveRules}),{data:h,margin:y,className:g,xFormat:b,yFormat:v,xAccessor:x="x",yAccessor:A="y",xScaleType:w,yScaleType:k,colorBy:C,colorScheme:L,styleRules:H,sizeBy:B,sizeRange:R=[3,15],symbolBy:_,symbolMap:P,pointRadius:E=5,pointOpacity:D=.8,tooltip:M,marginalGraphics:T,pointIdAccessor:O,annotations:G,regression:z,forecast:j,anomaly:$,xExtent:Q,yExtent:X,frameProps:q={},selection:ee,linkedHover:oe,linkedBrush:ie,onObservation:re,onClick:ae,hoverHighlight:se,chartId:ce,loading:he,loadingContent:de,emptyContent:ue,legendInteraction:me,legendPosition:pe,color:fe,stroke:ye,strokeWidth:ge,opacity:xe}=o,{width:Ae,height:we,enableHover:ke,showGrid:Se,showLegend:Ce,title:Le,description:He,summary:Ie,accessibleTable:Be,xLabel:Fe,yLabel:Re}=s,_e=U(()=>S(h),[h]),Ne=void 0===h,{domain:Pe,trackPushed:We,reset:Ee}=le({accessor:B,data:_e,isPushMode:Ne}),De=Z(e=>{We([e]),r.current?.push(e)},[We]),Me=Z(e=>{We(e),r.current?.pushMany(e)},[We]);a(n,{variant:"xy",frameRef:r,overrides:{push:De,pushMany:Me,clear:()=>{Ee(),r.current?.clear()}}});const Te=i({data:_e,rawData:h,colorBy:C,colorScheme:L,legendInteraction:me,legendPosition:pe,selection:ee,linkedHover:oe,fallbackFields:C?["string"==typeof C?C:""]:[],unwrapData:!1,onObservation:re,onClick:ae,hoverHighlight:se,mobileInteraction:s.mobileInteraction,mobileSemantics:s.mobileSemantics,chartType:"Scatterplot",chartId:ce,showLegend:Ce,userMargin:y,marginDefaults:s.marginDefaults,loading:he,loadingContent:de,emptyContent:ue,width:Ae,height:we}),Oe=F(ie),Ge=N({name:Oe?.name||"__unused_brush__",xField:Oe?.xField||("string"==typeof x?x:void 0),yField:Oe?.yField||("string"==typeof A?A:void 0)}),ze=Oe?"xyBrush"===Ge.brushInteraction.brush?"xy":"xBrush"===Ge.brushInteraction.brush?"x":"y":void 0,je=K.useRef(Ge.brushInteraction);je.current=Ge.brushInteraction;const $e=Z(e=>{const t=je.current;t.end(e?"xyBrush"===t.brush?[[e.x[0],e.y[0]],[e.x[1],e.y[1]]]:"xBrush"===t.brush?e.x:e.y:null)},[]);J("Scatterplot",_e,"xAccessor",x),J("Scatterplot",_e,"yAccessor",A);const Qe=U(()=>B?Pe??[0,1]:void 0,[B,Pe]),Ye=U(()=>B?e=>I(e,B,R,Qe):void 0,[B,R,Qe]),Ve=U(()=>f(x,A),[x,A]),Xe=ne({colorBy:C,colorScale:Te.colorScale,color:fe,pointRadius:E,fillOpacity:D,radiusFn:Ye,stroke:ye,strokeWidth:ge,opacity:xe,styleRules:H,ruleContext:Ve,effectiveSelectionHook:Te.effectiveSelectionHook,resolvedSelection:Te.resolvedSelection}),qe=U(()=>m([{label:Fe||c(x),accessor:x,role:"x",format:b},{label:Re||c(A),accessor:A,role:"y",format:v},...C?[{label:c(C),accessor:C,role:"color"}]:[],...B?[{label:c(B),accessor:B,role:"size"}]:[]]),[x,A,Fe,Re,C,B,b,v]),{effectiveData:Je,statisticalAnnotations:Ke}=be({data:_e,xAccessor:x,yAccessor:A,forecast:j,anomaly:$}),Ue=U(()=>{const t=e(z);return t||0!==Ke.length?[...t?[t]:[],...G||[],...Ke]:G},[z,G,Ke]);if(Te.earlyReturn)return Te.earlyReturn;const Ze=t({componentName:"Scatterplot",data:h,accessors:{xAccessor:x,yAccessor:A}});if(Ze)return ve(Y,{componentName:"Scatterplot",message:Ze,width:Ae,height:we});const et={chartType:"scatter",...null!=h&&{data:Je},xAccessor:x,yAccessor:A,xScaleType:w,yScaleType:k,colorAccessor:C||void 0,sizeAccessor:B||void 0,..._&&{symbolAccessor:_},...P&&{symbolMap:P},sizeRange:R,pointStyle:Xe,colorScheme:L,size:[Ae,we],responsiveWidth:o.responsiveWidth,responsiveHeight:o.responsiveHeight,margin:Te.margin,showAxes:s.showAxes,xLabel:Fe,yLabel:Re,xFormat:b,yFormat:v,enableHover:ke,showGrid:Se,...Te.legendBehaviorProps,...d({title:Le,description:He,summary:Ie,accessibleTable:Be,className:g,animate:o.animate,axisExtent:o.axisExtent,autoPlaceAnnotations:o.autoPlaceAnnotations}),...p({tooltip:M,defaultTooltipContent:qe}),...u({linkedHover:oe,selection:ee,onObservation:re,onClick:ae,hoverHighlight:se,mobileInteraction:Te.mobileInteraction,customHoverBehavior:Te.customHoverBehavior,customClickBehavior:Te.customClickBehavior}),...T&&{marginalGraphics:T},...O&&{pointIdAccessor:O},...Ue&&Ue.length>0&&{annotations:Ue},...Q&&{xExtent:Q},...X&&{yExtent:X},...Oe&&{brush:{dimension:ze},onBrush:$e},...Te.crosshairProps,...q};return ve(V,{componentName:"Scatterplot",width:Ae,height:we,children:ve(l,{ref:r,...et})})});xe.displayName="Scatterplot";import{useMemo as Ae,forwardRef as we,useRef as ke}from"react";import{Fragment as Se,jsx as Ce}from"react/jsx-runtime";function Le(e,t){return B(1===t?.5:e/(t-1))}var He=we(function(o,n){const r=ke(null);a(n,{variant:"xy",frameRef:r});const s=W(o.mode,{width:o.width,height:o.height,showGrid:o.showGrid,enableHover:o.enableHover,title:o.title,xLabel:o.xLabel,yLabel:o.yLabel,mobileInteraction:o.mobileInteraction,mobileSemantics:o.mobileSemantics,responsiveRules:o.responsiveRules}),{data:h,margin:y,className:g,xFormat:b,yFormat:v,xAccessor:A="x",yAccessor:w="y",orderAccessor:k,orderLabel:S,styleRules:C,pointRadius:L=4,tooltip:H,pointIdAccessor:I,annotations:B,regression:F,forecast:R,anomaly:_,xExtent:N,yExtent:P,frameProps:E={},selection:D,linkedHover:M,onObservation:T,onClick:O,hoverHighlight:G,chartId:z,loading:j,loadingContent:$,emptyContent:Q,legendInteraction:X,stroke:q,strokeWidth:K,opacity:U}=o,{width:Z,height:ee,enableHover:te,showGrid:oe,title:ie,description:re,summary:ae,accessibleTable:se,xLabel:le,yLabel:ce}=s,{safeData:he,orderMap:de}=Ae(()=>{const e=h||[],t="function"==typeof A?A:e=>e[A],o="function"==typeof w?w:e=>e[w];let n=e;if(k&&e.length>0){const t="function"==typeof k?k:e=>e[k];n=[...e].sort((e,o)=>{const n=t(e),i=t(o);return(n instanceof Date?n.getTime():+n)-(i instanceof Date?i.getTime():+i)})}const i=new WeakMap;let r=0;for(const e of n){const n=t(e),i=o(e);null!=n&&null!=i&&isFinite(n)&&isFinite(i)&&r++}let a=0;for(const e of n){const n=t(e),s=o(e);null!=n&&null!=s&&isFinite(n)&&isFinite(s)&&i.set(e,{idx:a++,total:r})}return{safeData:n,orderMap:i}},[h,k,A,w]);J("ConnectedScatterplot",he,"xAccessor",A),J("ConnectedScatterplot",he,"yAccessor",w);const ue=i({data:he,rawData:h,colorBy:void 0,colorScheme:void 0,legendInteraction:X,selection:D,linkedHover:M,fallbackFields:[],unwrapData:!1,onObservation:T,onClick:O,hoverHighlight:G,mobileInteraction:s.mobileInteraction,mobileSemantics:s.mobileSemantics,chartType:"ConnectedScatterplot",chartId:z,showLegend:void 0,userMargin:y,marginDefaults:{top:50,right:40,bottom:60,left:70},loading:j,loadingContent:$,emptyContent:Q,width:Z,height:ee}),me=ue.resolvedSelection?.unselectedOpacity??x,pe=Ae(()=>(e,t)=>{const o=t.filter(e=>"point"===e.type);if(2>o.length)return;const n=ue.effectiveSelectionHook?.isActive,i=ue.effectiveSelectionHook?.predicate,r=100>o.length,a=o.length;e.lineCap="round";for(let t=0;a-1>t;t++){const s=o[t],l=o[t+1],c=Le(t,a),h=!n||!i||i(s.datum??s)||i(l.datum??l),d=n?h?1:me:1;r&&(e.beginPath(),e.moveTo(s.x,s.y),e.lineTo(l.x,l.y),e.strokeStyle="white",e.lineWidth=L+2,e.globalAlpha=.5*d,e.stroke()),e.beginPath(),e.moveTo(s.x,s.y),e.lineTo(l.x,l.y),e.strokeStyle=c,e.lineWidth=L,e.globalAlpha=d,e.stroke()}e.globalAlpha=1},[L,ue.effectiveSelectionHook,me]),fe=Ae(()=>[pe],[pe]),ye=Ae(()=>(e,t,o)=>{const n=e.filter(e=>"point"===e.type);if(2>n.length)return null;const i=n.length,r=100>i,a=[];for(let e=0;i-1>e;e++){const t=n[e],o=n[e+1],s=Le(e,i),l=Math.min("number"==typeof t.style?.opacity?t.style.opacity:1,"number"==typeof o.style?.opacity?o.style.opacity:1);r&&a.push(Ce("line",{x1:t.x,y1:t.y,x2:o.x,y2:o.y,stroke:"white",strokeWidth:L+2,strokeLinecap:"round",opacity:.5*l},"halo-"+e)),a.push(Ce("line",{x1:t.x,y1:t.y,x2:o.x,y2:o.y,stroke:s,strokeWidth:L,strokeLinecap:"round",opacity:l},"seg-"+e))}return Ce(Se,{children:a})},[L]),ge=Ae(()=>[ye],[ye]),ve=ne({colorScale:void 0,baseStyleExtras:Ae(()=>e=>{const t=de.get(e),o=t?.idx??0,n=t?.total??1;return{fill:n>0?Le(o,n):"#6366f1",stroke:"white",strokeWidth:1,r:L,fillOpacity:1}},[L,de]),stroke:q,strokeWidth:K,opacity:U,styleRules:C,ruleContext:Ae(()=>f(A,w),[A,w]),effectiveSelectionHook:ue.effectiveSelectionHook,resolvedSelection:ue.resolvedSelection}),xe=S||("string"==typeof k?k:"Order"),we=Ae(()=>m([{label:le||c(A),accessor:A,role:"x",format:b},{label:ce||c(w),accessor:w,role:"y",format:v},...k?[{label:xe,accessor:k,role:"group"}]:[]]),[A,w,le,ce,k,xe,b,v]),He=t({componentName:"ConnectedScatterplot",data:h,accessors:{xAccessor:A,yAccessor:w}}),{effectiveData:Ie,statisticalAnnotations:Be}=be({data:he,xAccessor:A,yAccessor:w,forecast:R,anomaly:_});if(ue.earlyReturn)return ue.earlyReturn;const Fe=e(F),Re=Fe||Be.length>0?[...Fe?[Fe]:[],...B||[],...Be]:B,_e={chartType:"scatter",...null!=h&&{data:Ie},xAccessor:A,yAccessor:w,pointStyle:ve,size:[Z,ee],responsiveWidth:o.responsiveWidth,responsiveHeight:o.responsiveHeight,margin:ue.margin,showAxes:s.showAxes,xLabel:le,yLabel:ce,xFormat:b,yFormat:v,enableHover:te,showGrid:oe,...d({title:ie,description:re,summary:ae,accessibleTable:se,className:g,animate:o.animate,axisExtent:o.axisExtent,autoPlaceAnnotations:o.autoPlaceAnnotations}),...p({tooltip:H,defaultTooltipContent:we}),...u({linkedHover:M,selection:D,onObservation:T,onClick:O,hoverHighlight:G,mobileInteraction:ue.mobileInteraction,customHoverBehavior:ue.customHoverBehavior,customClickBehavior:ue.customClickBehavior}),...I&&{pointIdAccessor:I},canvasPreRenderers:fe,svgPreRenderers:ge,...Re&&Re.length>0&&{annotations:Re},...N&&{xExtent:N},...P&&{yExtent:P},...ue.crosshairProps,...E};return He?Ce(Y,{componentName:"ConnectedScatterplot",message:He,width:Z,height:ee}):Ce(V,{componentName:"ConnectedScatterplot",width:Z,height:ee,children:Ce(l,{ref:r,..._e})})});He.displayName="ConnectedScatterplot";import{useMemo as Ie,useCallback as Be,useState as Fe,useEffect as Re,forwardRef as _e,useRef as Ne}from"react";import{useMemo as Pe}from"react";function We(e){const{lineWidth:t=2,colorBy:n,colorScale:i,color:r,resolveStroke:a,fillArea:s,areaOpacity:l=.3,stroke:c,strokeWidth:h,opacity:d,effectiveSelectionHook:u,resolvedSelection:m,styleRules:p,ruleContext:f}=e,g=Pe(()=>(e,o)=>{const c={strokeWidth:t},h=!0===s||Array.isArray(s)&&null!=o&&s.includes(o);let d;return a?d=a(e,o):n?i&&(d=C(e,n,i)):d=r||b,void 0!==d&&(c.stroke=d,h&&(c.fill=d,c.fillOpacity=l)),p&&p.length>0&&Object.assign(c,y(e,p,f?f(e,o):{value:void 0,category:o})),c},[t,n,i,r,a,s,l,p,f]),v=Pe(()=>o(g,{stroke:c,strokeWidth:h,opacity:d}),[g,c,h,d]);return Pe(()=>j(v,u??null,m),[v,u,m])}import{jsx as Ee}from"react/jsx-runtime";var De="__lineObjectSeries",Me=_e(function(e,o){const n=Ne(null);a(o,{variant:"xy",frameRef:n});const r=W(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,description:e.description,summary:e.summary,accessibleTable:e.accessibleTable,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:s,margin:d,className:p,xFormat:y,yFormat:g,axisExtent:v,xAccessor:x="x",yAccessor:A="y",lineBy:k,lineDataAccessor:L="coordinates",colorBy:H,colorScheme:I,styleRules:B,curve:F="linear",showPoints:_=!1,pointRadius:N=3,fillArea:P=!1,areaOpacity:E=.3,lineWidth:D=2,lineGradient:M,tooltip:T,pointIdAccessor:O,annotations:G,directLabel:z,gapStrategy:j="break",anomaly:$,forecast:Q,band:X,xExtent:q,yExtent:K,frameProps:U={},selection:Z,linkedHover:ee,onObservation:te,onClick:oe,hoverHighlight:ne,hoverRadius:ie,chartId:re,loading:ae,loadingContent:se,emptyContent:le,legendInteraction:ce,legendPosition:he,xScaleType:de,yScaleType:ue,color:pe,stroke:ye,strokeWidth:ge,opacity:ve}=e,{width:xe,height:Ae,enableHover:we,showGrid:ke,showLegend:Se,title:Ce,description:Le,summary:He,accessibleTable:_e,xLabel:Pe,yLabel:Me}=r,Te=Ie(()=>S(s),[s]),Oe=Array.isArray(Te[0]?.[L])?Te[0][L]:Te;J("LineChart",Oe,"xAccessor",x),J("LineChart",Oe,"yAccessor",A);const{effectiveData:Ge,statisticalAnnotations:ze}=be({data:Te,xAccessor:x,yAccessor:A,forecast:Q,anomaly:$,groupBy:k}),je="__compoundGroup",$e=!(!Q||!k),Qe=$e?je:Q?me:k,Ye=Ie(()=>{if(!$e)return Ge;const e="function"==typeof k?k:e=>e[k];return Ge.map(t=>{const o={...t};return o[je]=`${e(t)}__${t[me]||"observed"}`,o})},[Ge,$e,k]),Ve=$e?Ye:Ge,Xe=H||k,qe=Ie(()=>{if(!Q)return;const e=Q.upperBounds,t=Q.lowerBounds;if(!e&&!t)return;const o="function"==typeof e?e:"string"==typeof e?t=>t[e]:null,n="function"==typeof t?t:"string"==typeof t?e=>e[t]:null;let i=1/0,r=-1/0;const a=Ge;for(const e of a){const t="function"==typeof A?A(e):+e[A];if(isFinite(t)&&(i>t&&(i=t),t>r&&(r=t)),o){const t=o(e);null!=t&&isFinite(t)&&(t>r&&(r=t),i>t&&(i=t))}if(n){const t=n(e);null!=t&&isFinite(t)&&(i>t&&(i=t),t>r&&(r=t))}}return isFinite(i)&&isFinite(r)?[i,r]:void 0},[Q,Ge,A]),Je=Be(e=>{const t="function"==typeof x?x(e):e[x],o="function"==typeof A?A(e):e[A];return null==t||null==o||Number.isNaN(t)||Number.isNaN(o)},[x,A]),Ke=void 0!==Ve[0]?.[L],Ue=Ke?De:Qe,Ze=Ie(()=>{if(Ke)return Ve.map((e,t)=>{const o="function"==typeof k?k(e):"string"==typeof k?e[k]:void 0,n=null==o?"line-"+t:o+"",i=Array.isArray(e[L])?e[L]:[];return{...e,[De]:n,[L]:i.map(t=>({...t,[De]:n,parentLine:e,..."string"==typeof k&&void 0!==e[k]?{[k]:e[k]}:{}}))}});if(Qe){const e=Ve.reduce((e,t)=>{const o="function"==typeof Qe?Qe(t):t[Qe];if(!e[o]){const n={[L]:[]};"string"==typeof Qe&&(n[Qe]=o),$e&&(n[me]=t[me],"string"==typeof k&&(n[k]=t[k])),e[o]=n}return e[o][L].push(t),e},{});return Object.values(e)}return[{[L]:Ve}]},[Ke,Qe,L,Ve,k,$e]),{gapProcessedLineData:et,hasGaps:tt}=Ie(()=>{if("interpolate"===j){let e=!1;const t=[];for(const o of Ze){const n=(o[L]||[]).filter(t=>!Je(t)||(e=!0,!1));n.length>0&&t.push({...o,[L]:n})}return{gapProcessedLineData:t,hasGaps:e}}if("break"===j){let e=!1;const t=[];for(const o of Ze){const n=o[L]||[];let i=[],r=0;const a=Ue&&"string"==typeof Ue?o[Ue]:void 0;for(const s of n)if(Je(s))e=!0,i.length>0&&(t.push({...o,[L]:i}),i=[],r++);else{const e=null!=a?`${a}__seg${r}`:"__seg"+r;i.push({...s,_gapSegment:e})}i.length>0&&t.push({...o,[L]:i})}return{gapProcessedLineData:t,hasGaps:e}}if("zero"===j){let e=!1;const t="string"==typeof A?A:"y",o=[];for(const n of Ze){const i=n[L]||[],r=[];for(const o of i)Je(o)?(e=!0,r.push({...o,[t]:0})):r.push(o);o.push({...n,[L]:r})}return{gapProcessedLineData:o,hasGaps:e}}return{gapProcessedLineData:Ze,hasGaps:!1}},[Ze,j,L,Je,Ue,A]),ot="object"==typeof z?z:{},nt=ot.position||"end",it=ot.fontSize||11,rt=Ie(()=>{if(!z||!Xe)return[];const e="function"==typeof Xe?Xe:e=>e[Xe],t=new Set;for(const o of et){const n=o[L]||[];if(0===n.length)continue;const i=e("end"===nt?n[n.length-1]:n[0])??e(o);if(null==i)continue;const r=i+"";""!==r&&t.add(r)}return Array.from(t)},[z,Xe,et,L,nt]),at=Ie(()=>{if(!z)return r.marginDefaults;const e=rt.reduce((e,t)=>Math.max(e,t.length*(.6*it)),0)+10,t="end"===nt?"right":"left";return{...r.marginDefaults,[t]:Math.max(r.marginDefaults[t]||0,e)}},[z,rt,it,nt,r.marginDefaults]),st=i({data:Ge,rawData:s,colorBy:Xe,colorScheme:I,legendInteraction:ce,legendPosition:he,selection:Z,linkedHover:ee,fallbackFields:Xe?["string"==typeof Xe?Xe:""]:[],unwrapData:!1,onObservation:te,onClick:oe,hoverHighlight:ne,mobileInteraction:r.mobileInteraction,mobileSemantics:r.mobileSemantics,chartType:"LineChart",chartId:re,showLegend:(!z||void 0!==Se)&&Se,userMargin:d,marginDefaults:at,loading:ae,loadingContent:se,emptyContent:le,width:xe,height:Ae}),lt=st.colorScale,ct=st.effectiveSelectionHook,ht=st.resolvedSelection,dt=st.customHoverBehavior,ut=st.customClickBehavior,mt=st.crosshairProps,pt=Ie(()=>{if(Xe)return Ke?e=>{const t=e.parentLine||e;return"function"==typeof Xe?Xe(t):t[Xe]}:Xe},[Xe,Ke]),ft=Ie(()=>f(x,A),[x,A]),yt=We({lineWidth:D,colorBy:pt,colorScale:lt,color:pe,fillArea:P,areaOpacity:E,stroke:ye,strokeWidth:ge,opacity:ve,effectiveSelectionHook:ct,resolvedSelection:ht,styleRules:B,ruleContext:ft}),[gt,bt]=Fe(null);Re(()=>{if(!Q)return void bt(null);let e=!1;return async function(...e){return(await fe()).createSegmentLineStyle(...e)}(yt,Q).then(t=>{e||bt(()=>t)}).catch(()=>{e||bt(null)}),()=>{e=!0}},[yt,Q]);const vt=gt||yt,xt=Ie(()=>{if(_)return e=>{const t={r:N,fillOpacity:1};return Xe?lt&&(t.fill=C(e.parentLine||e,Xe,lt)):t.fill=pe||b,t}},[_,N,Xe,lt,pe]),At=Array.isArray(P)?"mixed":P?"area":"line",wt=Ie(()=>{if(!z||!Xe)return[];const e="function"==typeof x?x:e=>e[x],t="function"==typeof A?A:e=>e[A],o="function"==typeof Xe?Xe:e=>e[Xe],n=new Map;for(const e of et){const t=e[L]||[];if(0===t.length)continue;const i="end"===nt?t[t.length-1]:t[0],r=o(i)??o(e);if(null==r)continue;const a=r+"";""===a||n.has(a)||n.set(a,i)}const i=Array.from(n.entries()).map(([o,n])=>({type:"text",label:o,["string"==typeof x?x:"x"]:e(n),["string"==typeof A?A:"y"]:t(n),dx:"end"===nt?6:-6,dy:0,color:lt?lt(o):b,fontSize:it}));i.sort((e,t)=>{const o="string"==typeof A?A:"y";return e[o]-t[o]});for(let e=1;i.length>e;e++){const t="string"==typeof A?A:"y",o=i[e-1],n=i[e];it+2>Math.abs(n[t]+n.dy-(o[t]+o.dy))&&(n.dy+=it+2)}return i},[z,Xe,lt,et,L,x,A,nt,it]),kt=st.margin,St=k||H,Ct=Ie(()=>m([{label:Pe||c(x),accessor:x,role:"x",format:y},{label:Me||c(A),accessor:A,role:"y",format:g},...St?[{label:c(St),accessor:St,role:"group"}]:[],...h(X,g)]),[x,A,Pe,Me,St,y,g,X]),Lt=t({componentName:"LineChart",data:Ke?Ge[0]?.[L]||[]:s,accessors:{xAccessor:x,yAccessor:A}}),Ht=Ie(()=>Ke||Ue||tt?et.flatMap(e=>{const t=e[L]||[];return Ue&&"string"==typeof Ue?t.map(t=>({...t,[Ue]:t[Ue]??e[Ue]})):t}):Ve,[et,L,Ke,Ue,Ve,tt]),It={chartType:At,...Array.isArray(P)&&{areaGroups:P},...M&&{lineGradient:M},...null!=s&&{data:Ht},xAccessor:x,yAccessor:A,xScaleType:de,yScaleType:ue,...q&&{xExtent:q},...!K||null==K[0]&&null==K[1]?qe?{yExtent:qe}:{}:{yExtent:K},groupAccessor:"break"===j&&tt?"_gapSegment":Ue||void 0,...X&&{band:X},curve:F,lineStyle:vt,..._&&{pointStyle:xt},size:[xe,Ae],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:kt,showAxes:r.showAxes,xLabel:Pe,yLabel:Me,xFormat:y,yFormat:g,...void 0!==v&&{axisExtent:v},...void 0!==e.autoPlaceAnnotations&&{autoPlaceAnnotations:e.autoPlaceAnnotations},enableHover:we,showGrid:ke,...st.legendBehaviorProps,...Ce&&{title:Ce},...Le&&{description:Le},...He&&{summary:He},...void 0!==_e&&{accessibleTable:_e},...p&&{className:p},...null!=e.animate&&{animate:e.animate},tooltipContent:!1===T?()=>null:"multi"===T?w():R(T)||Ct,..."multi"===T&&{tooltipMode:"multi"},...u({linkedHover:ee,selection:Z,onObservation:te,onClick:oe,hoverRadius:ie,hoverHighlight:ne,mobileInteraction:st.mobileInteraction,customHoverBehavior:dt,customClickBehavior:ut}),...O&&{pointIdAccessor:O},...(G?.length||ze.length||wt.length)&&{annotations:[...G||[],...ze,...wt]},...mt,...U};return st.earlyReturn?st.earlyReturn:Lt?Ee(Y,{componentName:"LineChart",message:Lt,width:xe,height:Ae}):Ee(V,{componentName:"LineChart",width:xe,height:Ae,children:Ee(l,{ref:n,...It})})});Me.displayName="LineChart";import{useMemo as Te,forwardRef as Oe,useRef as Ge}from"react";import{useMemo as ze}from"react";function je(e){const{safeData:t,data:n,areaBy:i,lineDataAccessor:r,colorBy:a,colorScale:s,color:l,stroke:d,strokeWidth:u,opacity:p,effectiveSelectionHook:f,resolvedSelection:g,areaOpacity:v,showLine:x,lineWidth:A,showPoints:w,pointRadius:k,xAccessor:S,yAccessor:L,xLabel:H,yLabel:I,xFormat:B,yFormat:F,groupField:R,styleRules:_,ruleContext:N}=e,P=void 0!==t[0]?.[r],W=ze(()=>{if(null==n)return[];if(!P&&!i)return t;let e;if(P)e=t;else{const o=i,n=t.reduce((e,t)=>{const n="function"==typeof o?o(t):t[o];if(!e[n]){const t={[r]:[]};"string"==typeof o&&(t[o]=n),e[n]=t}return e[n][r].push(t),e},{});e=Object.values(n)}return e.flatMap(e=>{const t=e[r]||[];return i&&"string"==typeof i?t.map(t=>({...t,[i]:e[i]})):t})},[n,t,i,r,P]),E=ze(()=>e=>{const t={};if(a){if(s){const o=C(e,a,s);t.fill=o,x?(t.stroke=o,t.strokeWidth=A):t.stroke="none"}}else{const e=l||b;t.fill=e,x?(t.stroke=e,t.strokeWidth=A):t.stroke="none"}return t.fillOpacity=v,_&&_.length>0&&Object.assign(t,y(e,_,N?N(e):{value:void 0})),t},[a,s,l,v,x,A,_,N]),D=ze(()=>o(E,{stroke:d,strokeWidth:u,opacity:p}),[E,d,u,p]);return{flattenedData:W,lineStyle:ze(()=>j(D,f??null,g),[D,f,g]),pointStyle:ze(()=>{if(w)return e=>{const t={r:k,fillOpacity:1};return a?s&&(t.fill=C(e.parentLine||e,a,s)):t.fill=l||b,t}},[w,k,a,s,l]),defaultTooltipContent:ze(()=>m([{label:H||c(S),accessor:S,role:"x",format:B},{label:I||c(L),accessor:L,role:"y",format:F},...R?[{label:c(R),accessor:R,role:"group"}]:[],...h(e.band,F)]),[S,L,H,I,R,B,F,e.band])}}import{jsx as $e}from"react/jsx-runtime";function Qe(e,t){if(null==t)return e;const o=e.trim(),n=o.match(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i);if(n){const e=n[1],o=3===e.length?e.split("").map(e=>e+e).join(""):e;return`rgba(${parseInt(o.slice(0,2),16)}, ${parseInt(o.slice(2,4),16)}, ${parseInt(o.slice(4,6),16)}, ${t})`}if(o.startsWith("rgba(")){const e=o.lastIndexOf(","),n=o.lastIndexOf(")");if(-1!==e&&n>e)return`${o.slice(0,e+1)} ${t})`}return o.startsWith("rgb(")?o.replace(/^rgb\(/,"rgba(").replace(/\)$/,`, ${t})`):e}var Ye=Oe(function(e,o){const n=Ge(null);a(o,{variant:"xy",frameRef:n});const r=W(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:s,margin:c,className:h,xFormat:m,yFormat:y,xAccessor:g="x",yAccessor:b="y",areaBy:v,y0Accessor:x,gradientFill:A=!1,semanticGradient:k,lineDataAccessor:C="coordinates",colorBy:L,colorScheme:H,styleRules:I,curve:B="monotoneX",areaOpacity:F=.7,lineGradient:R,showLine:_=!0,lineWidth:N=2,showPoints:P=!1,pointRadius:E=3,tooltip:D,annotations:M,forecast:T,anomaly:O,band:G,xExtent:z,yExtent:j,frameProps:$={},selection:Q,linkedHover:X,onObservation:q,onClick:K,hoverHighlight:U,chartId:Z,loading:ee,loadingContent:te,emptyContent:oe,legendInteraction:ne,legendPosition:ie,color:re,stroke:ae,strokeWidth:se,opacity:le}=e,{width:ce,height:he,enableHover:de,showGrid:ue,showLegend:me,title:pe,description:fe,summary:ye,accessibleTable:ge,xLabel:ve,yLabel:xe}=r,Ae=Te(()=>S(s),[s]),we=L||v,ke=Te(()=>{return k&&k.length>0?{colorStops:(e=k,e.filter(e=>Number.isFinite(e.at)).map(e=>({offset:1-Math.max(0,Math.min(100,e.at))/100,color:Qe(e.color,e.opacity)})).sort((e,t)=>e.offset-t.offset))}:A;var e},[k,A]);J("AreaChart",Ae,"xAccessor",g),J("AreaChart",Ae,"yAccessor",b);const Se=i({data:Ae,rawData:s,colorBy:we,colorScheme:H,legendInteraction:ne,legendPosition:ie,selection:Q,linkedHover:X,fallbackFields:we?["string"==typeof we?we:""]:[],unwrapData:!1,onObservation:q,onClick:K,hoverHighlight:U,mobileInteraction:r.mobileInteraction,mobileSemantics:r.mobileSemantics,chartType:"AreaChart",chartId:Z,showLegend:me,userMargin:c,marginDefaults:r.marginDefaults,loading:ee,loadingContent:te,emptyContent:oe,width:ce,height:he}),{effectiveData:Ce,statisticalAnnotations:Le}=be({data:Ae,xAccessor:g,yAccessor:b,forecast:T,anomaly:O,groupBy:v}),He=Te(()=>f(g,b),[g,b]),{flattenedData:Ie,lineStyle:Be,pointStyle:Fe,defaultTooltipContent:Re}=je({safeData:Ce,data:s,areaBy:v,lineDataAccessor:C,colorBy:we,colorScale:Se.colorScale,color:re,stroke:ae,strokeWidth:se,opacity:le,effectiveSelectionHook:Se.effectiveSelectionHook,resolvedSelection:Se.resolvedSelection,areaOpacity:F,showLine:_,lineWidth:N,showPoints:P,pointRadius:E,xAccessor:g,yAccessor:b,xLabel:ve,yLabel:xe,xFormat:m,yFormat:y,groupField:v||L,band:G,styleRules:I,ruleContext:He}),_e=t({componentName:"AreaChart",data:s,accessors:{xAccessor:g,yAccessor:b}}),Ne={chartType:"area",...null!=s&&{data:Ie},xAccessor:g,yAccessor:b,groupAccessor:v||void 0,...x&&{y0Accessor:x},...G&&{band:G},...ke&&{gradientFill:ke},...R&&{lineGradient:R},curve:B,lineStyle:Be,...P&&Fe&&{pointStyle:Fe},size:[ce,he],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:Se.margin,showAxes:r.showAxes,xLabel:ve,yLabel:xe,xFormat:m,yFormat:y,enableHover:de,...e.pointIdAccessor&&{pointIdAccessor:e.pointIdAccessor},showGrid:ue,...Se.legendBehaviorProps,...d({title:pe,description:fe,summary:ye,accessibleTable:ge,className:h,animate:e.animate,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),..."multi"===D?{tooltipContent:w(),tooltipMode:"multi"}:p({tooltip:D,defaultTooltipContent:Re}),...u({linkedHover:X,selection:Q,onObservation:q,onClick:K,hoverHighlight:U,mobileInteraction:Se.mobileInteraction,customHoverBehavior:Se.customHoverBehavior,customClickBehavior:Se.customClickBehavior}),...(M&&M.length>0||Le.length>0)&&{annotations:[...M||[],...Le]},...z&&{xExtent:z},...j&&{yExtent:j},...Se.crosshairProps,...$};return Se.earlyReturn?Se.earlyReturn:_e?$e(Y,{componentName:"AreaChart",message:_e,width:ce,height:he}):$e(V,{componentName:"AreaChart",width:ce,height:he,children:$e(l,{ref:n,...Ne})})});Ye.displayName="AreaChart";import{useMemo as Ve,forwardRef as Xe,useRef as qe,useState as Je,useImperativeHandle as Ke,useCallback as Ue}from"react";import{jsx as Ze,jsxs as et}from"react/jsx-runtime";function tt(e){if(null==e)return NaN;if("number"==typeof e)return e;if(e instanceof Date)return e.getTime();if("string"==typeof e){if(""===e.trim())return NaN;const t=+e;return Number.isFinite(t)?t:NaN}return NaN}var ot=Xe(function(e,t){const o=qe(null),n=W(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:r,margin:a,className:s,xFormat:c,yFormat:h,xAccessor:m="x",seriesAAccessor:p="a",seriesBAccessor:f="b",seriesALabel:y="A",seriesBLabel:g="B",seriesAColor:b="var(--semiotic-danger, #dc2626)",seriesBColor:v="var(--semiotic-info, #2563eb)",showLines:x=!0,lineWidth:A=1.5,showPoints:w=!1,pointRadius:C=3,curve:L="linear",areaOpacity:H=.6,gradientFill:I,tooltip:B,annotations:F,xExtent:_,yExtent:N,frameProps:P={},selection:E,linkedHover:D,onObservation:M,onClick:T,hoverHighlight:O,chartId:G,loading:z,loadingContent:j,emptyContent:$,legendInteraction:Q,legendPosition:Y,pointIdAccessor:X,windowSize:q}=e,{width:J,height:K,enableHover:U,showGrid:Z,showLegend:ee,title:te,description:oe,summary:ne,accessibleTable:ie,xLabel:re,yLabel:ae}=n,se=Ve(()=>"function"==typeof m?e=>tt(m(e)):e=>tt(e[m]),[m]),le=Ve(()=>"function"==typeof p?e=>tt(p(e)):e=>tt(e[p]),[p]),ce=Ve(()=>"function"==typeof f?e=>tt(f(e)):e=>tt(e[f]),[f]),[he,de]=Je([]),ue=qe([]),me=null==r,pe=Ve(()=>S(me?he:r),[me,he,r]),fe=Ve(()=>function(e,t,o,n){if(!e.length)return[];const i=e.filter(e=>Number.isFinite(t(e))).sort((e,o)=>t(e)-t(o)),r=[];let a=0,s=null,l=null,c=[];const h=(e,t)=>e>t?"A":t>e?"B":null,d=e=>`seg-${a}-${e}`,u=e=>r.push(e),m=(e,t)=>{u({__x:e.x,__y:e.y,__y0:e.y,__diffSegment:d(t),__diffWinner:t,__valA:e.y,__valB:e.y,__sourceDatum:e.datum})};for(let e=0;i.length>e;e++){const r=i[e],p=t(r),f=o(r),y=n(r);if(!Number.isFinite(p)||!Number.isFinite(f)||!Number.isFinite(y))continue;const g=h(f,y);if(null!==g)if(null!=s){if(l&&l.w!==g){let e,t;if(c.length>0)e=c[0].x,t=c[0].y;else{const o=f-l.a-(y-l.b);if(0!==o){const n=Math.max(0,Math.min(1,(l.b-l.a)/o));e=l.x+n*(p-l.x),t=l.a+n*(f-l.a)}else e=l.x,t=l.a}u({__x:e,__y:t,__y0:t,__diffSegment:d(s),__diffWinner:s,__valA:t,__valB:t}),a++,s=g,u({__x:e,__y:t,__y0:t,__diffSegment:d(s),__diffWinner:s,__valA:t,__valB:t});for(let e=1;c.length>e;e++)m(c[e],s)}else for(const e of c)m(e,s);c=[],u({__x:p,__y:y>f?y:f,__y0:y>f?f:y,__diffSegment:d(s),__diffWinner:s,__valA:f,__valB:y,__sourceDatum:r}),l={x:p,a:f,b:y,w:g}}else{s=g;for(const e of c)m(e,s);c=[],u({__x:p,__y:y>f?y:f,__y0:y>f?f:y,__diffSegment:d(s),__diffWinner:s,__valA:f,__valB:y,__sourceDatum:r}),l={x:p,a:f,b:y,w:g}}else c.push({x:p,y:f,datum:r})}for(const e of c)m(e,s??"A");return r}(pe,se,le,ce),[pe,se,le,ce]),ye=Ve(()=>x?function(e,t,o,n){if(!e.length)return[];const i=e.filter(e=>Number.isFinite(t(e))).sort((e,o)=>t(e)-t(o)),r=[];for(const e of i){const i=t(e),a=o(e),s=n(e);Number.isFinite(a)&&r.push({__x:i,__y:a,__diffSegment:"line-A"}),Number.isFinite(s)&&r.push({__x:i,__y:s,__diffSegment:"line-B"})}return r}(pe,se,le,ce):[],[x,pe,se,le,ce]),ge=Ve(()=>[...fe,...ye],[fe,ye]),be=Ve(()=>{const e=new Set;for(const t of fe)e.add(t.__diffSegment);return Array.from(e)},[fe]);Ke(t,()=>{const e=e=>{const t=q&&e.length>q?e.slice(e.length-q):e;ue.current=t,de(t)},t=X?"function"==typeof X?X:e=>e[X]:null;return{push:t=>e([...ue.current,t]),pushMany:t=>e([...ue.current,...t]),remove:o=>{if(!t)return[];const n=Array.isArray(o)?o:[o],i=[],r=[];for(const e of ue.current)n.includes(t(e))?i.push(e):r.push(e);return e(r),i},update:(o,n)=>{if(!t)return[];const i=Array.isArray(o)?o:[o],r=[],a=ue.current.map(e=>{if(i.includes(t(e))){const t=n(e);return r.push(t),t}return e});return e(a),r},clear:()=>e([]),getData:()=>me?ue.current:pe,getScales:()=>o.current?.getScales()??null}},[me,pe,X,q]);const ve=i({data:pe,rawData:r,colorBy:"__diffWinner",colorScheme:[b,v],legendInteraction:Q,legendPosition:Y,selection:E,linkedHover:D,fallbackFields:["__diffWinner"],unwrapData:!1,onObservation:M,onClick:T,hoverHighlight:O,mobileInteraction:n.mobileInteraction,mobileSemantics:n.mobileSemantics,chartType:"DifferenceChart",chartId:G,showLegend:ee,userMargin:a,marginDefaults:n.marginDefaults,loading:z,loadingContent:j,emptyContent:$,width:J,height:K}),xe=Ve(()=>{if(!1!==ee)return{legendGroups:[{label:"",type:"fill",styleFn:e=>({fill:e.color||"currentColor"}),items:[{label:y,color:b},{label:g,color:v}]}]}},[ee,y,g,b,v]),Ae=Ue(e=>{const t=e.__diffSegment;return{fill:"A"==(t?.endsWith("-A")?"A":"B")?b:v,stroke:"none",fillOpacity:H}},[b,v,H]),we=Ue(e=>({stroke:"A"==("line-A"===e.__diffSegment?"A":"B")?b:v,strokeWidth:A,fill:"none"}),[b,v,A]),ke=Ue(e=>({fill:"A"==("line-A"===e.__diffSegment?"A":"B")?b:v,r:C}),[b,v,C]),Se=Ue(e=>{const t=e.data,o=e.allSeries,n=e.xValue??t?.__x;let i=t?.__valA,r=t?.__valB;if(o&&o.length>0){const e=o.find(e=>"line-A"===e.group),t=o.find(e=>"line-B"===e.group);null!=e?.value&&Number.isFinite(e.value)&&(i=e.value),null!=t?.value&&Number.isFinite(t.value)&&(r=t.value)}if(null!=n&&(null==i||null==r)){const e=pe.find(e=>se(e)===n);e&&(null==i&&(i=le(e)),null==r&&(r=ce(e)))}const a=e=>null!=e&&Number.isFinite(e)?""+Math.round(100*e)/100:"—",s=c&&null!=n?c(n):null!=n?n+"":"";return et("div",{className:"semiotic-tooltip",style:k,children:[s&&Ze("div",{style:{fontWeight:600,marginBottom:4},children:s}),et("div",{style:{display:"flex",alignItems:"center",gap:6},children:[Ze("span",{style:{width:10,height:10,background:b,display:"inline-block",borderRadius:2}}),et("span",{children:[y,": ",a(i)]})]}),et("div",{style:{display:"flex",alignItems:"center",gap:6},children:[Ze("span",{style:{width:10,height:10,background:v,display:"inline-block",borderRadius:2}}),et("span",{children:[g,": ",a(r)]})]}),null!=i&&null!=r&&Number.isFinite(i)&&Number.isFinite(r)&&et("div",{style:{marginTop:4,opacity:.7},children:["Δ = ",a(i-r)]})]})},[pe,se,le,ce,c,b,v,y,g]),Ce="multi"===B,Le=Ve(()=>!1===B?()=>null:Ce?Se:R(B)||Se,[B,Ce,Se]);if(ve.earlyReturn)return ve.earlyReturn;const He={chartType:"mixed",data:ge,xAccessor:"__x",yAccessor:"__y",y0Accessor:"__y0",groupAccessor:"__diffSegment",areaGroups:be,curve:L,areaStyle:Ae,lineStyle:we,...w&&{pointStyle:ke},size:[J,K],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:ve.margin,showAxes:n.showAxes,xLabel:re,yLabel:ae,xFormat:c,yFormat:h,enableHover:U,showGrid:Z,...I&&{gradientFill:!0===I?{topOpacity:.85,bottomOpacity:.15}:I},...xe&&{legend:xe,legendPosition:ve.legendPosition},...d({title:te,description:oe,summary:ne,accessibleTable:ie,className:s,animate:e.animate,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),tooltipContent:Le,...Ce&&{tooltipMode:"multi"},...u({linkedHover:D,selection:E,onObservation:M,onClick:T,hoverHighlight:O,mobileInteraction:ve.mobileInteraction,customHoverBehavior:ve.customHoverBehavior,customClickBehavior:ve.customClickBehavior}),...F&&F.length>0&&{annotations:F},..._&&{xExtent:_},...N&&{yExtent:N},...ve.crosshairProps,...P};return Ze(V,{componentName:"DifferenceChart",width:J,height:K,children:Ze(l,{ref:o,...He})})});"function"==typeof ot&&(ot.displayName="DifferenceChart");import{useMemo as nt,forwardRef as it,useRef as rt}from"react";import{jsx as at}from"react/jsx-runtime";var st=it(function(e,o){const n=rt(null),r=W(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:s,margin:c,className:h,xFormat:m,yFormat:y,xAccessor:g="x",yAccessor:b="y",areaBy:v,lineDataAccessor:x="coordinates",colorBy:A,colorScheme:k,styleRules:C,curve:L="monotoneX",areaOpacity:H=.7,showLine:I=!0,lineWidth:B=2,showPoints:F=!1,pointRadius:R=3,normalize:_=!1,baseline:N="zero",stackOrder:P,tooltip:E,annotations:D,xExtent:M,yExtent:T,frameProps:O={},selection:G,linkedHover:z,onObservation:j,onClick:$,hoverHighlight:Q,chartId:X,loading:q,loadingContent:J,emptyContent:K,legendInteraction:U,legendPosition:Z,color:ee,stroke:te,strokeWidth:oe,opacity:ne}=e,{width:ie,height:re,enableHover:ae,showGrid:se,showLegend:le,title:ce,description:he,summary:de,accessibleTable:ue,xLabel:me,yLabel:pe}=r,fe=nt(()=>S(s),[s]),ye=A||v;a(o,{variant:"xy",frameRef:n});const ge=i({data:fe,rawData:s,colorBy:ye,colorScheme:k,legendInteraction:U,legendPosition:Z,selection:G,linkedHover:z,fallbackFields:ye?["string"==typeof ye?ye:""]:[],unwrapData:!1,onObservation:j,onClick:$,hoverHighlight:Q,mobileInteraction:r.mobileInteraction,mobileSemantics:r.mobileSemantics,chartType:"StackedAreaChart",chartId:X,showLegend:le,userMargin:c,marginDefaults:r.marginDefaults,loading:q,loadingContent:J,emptyContent:K,width:ie,height:re}),be=nt(()=>f(g,b),[g,b]),{flattenedData:ve,lineStyle:xe,pointStyle:Ae,defaultTooltipContent:we}=je({safeData:fe,data:s,areaBy:v,lineDataAccessor:x,colorBy:ye,colorScale:ge.colorScale,color:ee,stroke:te,strokeWidth:oe,opacity:ne,effectiveSelectionHook:ge.effectiveSelectionHook,resolvedSelection:ge.resolvedSelection,areaOpacity:H,showLine:I,lineWidth:B,showPoints:F,pointRadius:R,xAccessor:g,yAccessor:b,xLabel:me,yLabel:pe,xFormat:m,yFormat:y,groupField:v||A,styleRules:C,ruleContext:be}),ke=t({componentName:"StackedAreaChart",data:s,accessors:{xAccessor:g,yAccessor:b}}),Se={chartType:"stackedarea",...null!=s&&{data:ve},xAccessor:g,yAccessor:b,groupAccessor:v||void 0,curve:L,normalize:_,baseline:_?"zero":N,stackOrder:P,lineStyle:xe,...F&&Ae&&{pointStyle:Ae},size:[ie,re],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:ge.margin,showAxes:r.showAxes,xLabel:me,yLabel:pe,xFormat:m,yFormat:y,enableHover:ae,...e.pointIdAccessor&&{pointIdAccessor:e.pointIdAccessor},showGrid:se,...ge.legendBehaviorProps,...d({title:ce,description:he,summary:de,accessibleTable:ue,className:h,animate:e.animate,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),..."multi"===E?{tooltipContent:w(),tooltipMode:"multi"}:p({tooltip:E,defaultTooltipContent:we}),...u({linkedHover:z,selection:G,onObservation:j,onClick:$,hoverHighlight:Q,mobileInteraction:ge.mobileInteraction,customHoverBehavior:ge.customHoverBehavior,customClickBehavior:ge.customClickBehavior}),...D&&D.length>0&&{annotations:D},...M&&{xExtent:M},...T&&{yExtent:T},...ge.crosshairProps,...O};return ge.earlyReturn?ge.earlyReturn:ke?at(Y,{componentName:"StackedAreaChart",message:ke,width:ie,height:re}):at(V,{componentName:"StackedAreaChart",width:ie,height:re,children:at(l,{ref:n,...Se})})});st.displayName="StackedAreaChart";import{useMemo as lt,forwardRef as ct,useRef as ht}from"react";import{scaleSequential as dt}from"d3-scale";import{jsx as ut}from"react/jsx-runtime";var mt=ct(function(e,o){const n=ht(null);a(o,{variant:"xy",frameRef:n});const i=W(e.mode,{width:e.width,height:e.height,showGrid:void 0,enableHover:e.enableHover,showLegend:void 0,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:r,margin:h,className:f,xAccessor:y="x",yAccessor:g="y",valueAccessor:b="value",xFormat:v,yFormat:x,colorScheme:A,customColorScale:w,showValues:k=!1,valueFormat:C,cellBorderColor:I="#fff",cellBorderWidth:B=1,tooltip:F,annotations:R,xExtent:_,yExtent:N,frameProps:D={},selection:T,linkedHover:O,onObservation:G,onClick:j,hoverHighlight:$,chartId:J,loading:K,loadingContent:U,emptyContent:Z,showLegend:ee,legendPosition:te,legendInteraction:oe}=e,{width:ne,height:ie,enableHover:re,title:ae,description:se,summary:le,accessibleTable:ce,xLabel:he,yLabel:de}=i,ue=q(K,ne,ie,U),me=ue?null:X(r,ne,ie,Z),pe=lt(()=>S(r),[r]),fe=z(),ye=A??fe??"blues",ge=ee??!1,be=te??"right",{margin:ve}=P({data:pe,colorBy:ge?"value":void 0,colorScale:void 0,showLegend:ge,legendPosition:be,userMargin:h,defaults:i.marginDefaults}),{customHoverBehavior:xe,customClickBehavior:Ae,crosshairSourceId:we}=E({selection:T,linkedHover:O,fallbackFields:[],onObservation:G,onClick:j,chartType:"Heatmap",chartId:J,hoverHighlight:$,colorByField:void 0,mobileInteraction:i.mobileInteraction});s(T);const ke=L(O,we);M(oe,void 0,[]);const Se=lt(()=>"function"==typeof b?e=>b(e):e=>e[b],[b]),Ce=lt(()=>{const e=pe.map(Se);return Q(e)},[pe,Se]),Le=lt(()=>{if("custom"===ye&&w)return w;const e=H(ye);return dt(e).domain(Ce)},[ye,w,Ce]),He=lt(()=>m([{label:he||c(y),accessor:y,role:"x",format:v},{label:de||c(g),accessor:g,role:"y",format:x},{label:c(b),accessor:b,role:"value",format:C}]),[y,g,he,de,b,v,x,C]),Ie=t({componentName:"Heatmap",data:r,accessors:{xAccessor:y,yAccessor:g,valueAccessor:b}}),Be=lt(()=>{if(ge)return{gradient:{colorFn:e=>Le(e),domain:Ce,label:"string"==typeof b?b:"value",format:C}}},[ge,Le,Ce,b,C]),Fe={chartType:"heatmap",...null!=r&&{data:pe},xAccessor:y,yAccessor:g,valueAccessor:b,colorScheme:"custom"!==ye?ye:void 0,showValues:k,heatmapValueFormat:C,size:[ne,ie],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:ve,showAxes:i.showAxes,xLabel:he,yLabel:de,xFormat:v,yFormat:x,enableHover:re,...e.pointIdAccessor&&{pointIdAccessor:e.pointIdAccessor},...Be&&{legend:Be,legendPosition:be},...d({title:ae,description:se,summary:le,accessibleTable:ce,className:f,animate:e.animate,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),...p({tooltip:F,defaultTooltipContent:He}),...u({linkedHover:O,selection:T,onObservation:G,onClick:j,hoverHighlight:$,mobileInteraction:i.mobileInteraction,customHoverBehavior:xe,customClickBehavior:Ae}),...R&&R.length>0&&{annotations:R},..._&&{xExtent:_},...N&&{yExtent:N},...ke,...D};return ue||me||(Ie?ut(Y,{componentName:"Heatmap",message:Ie,width:ne,height:ie}):ut(V,{componentName:"Heatmap",width:ne,height:ie,children:ut(l,{ref:n,...Fe})}))});mt.displayName="Heatmap";import{useMemo as pt,useCallback as ft,forwardRef as yt,useRef as gt}from"react";import{jsx as bt}from"react/jsx-runtime";var vt=yt(function(o,n){const r=gt(null),s=W(o.mode,{width:o.width,height:o.height,showGrid:o.showGrid,enableHover:o.enableHover,showLegend:o.showLegend,title:o.title,xLabel:o.xLabel,yLabel:o.yLabel,mobileInteraction:o.mobileInteraction,mobileSemantics:o.mobileSemantics,responsiveRules:o.responsiveRules}),{data:h,margin:y,className:g,xFormat:b,yFormat:v,xAccessor:x="x",yAccessor:A="y",sizeBy:w,sizeRange:k=[5,40],colorBy:C,colorScheme:L,styleRules:H,bubbleOpacity:B=.6,bubbleStrokeWidth:R=1,bubbleStrokeColor:_="white",tooltip:P,marginalGraphics:E,pointIdAccessor:D,annotations:M,regression:T,xExtent:O,yExtent:G,frameProps:z={},selection:j,linkedHover:$,linkedBrush:Q,onObservation:X,onClick:q,hoverHighlight:J,chartId:K,loading:U,loadingContent:Z,emptyContent:ee,legendInteraction:te,legendPosition:oe,color:ie,stroke:re,strokeWidth:ae,opacity:se}=o,{width:ce,height:he,enableHover:de,showGrid:ue,showLegend:me,title:pe,description:fe,summary:ye,accessibleTable:ge,xLabel:be,yLabel:ve}=s,xe=pt(()=>S(h),[h]),Ae=void 0===h,we=i({data:xe,rawData:h,colorBy:C,colorScheme:L,legendInteraction:te,legendPosition:oe,selection:j,linkedHover:$,fallbackFields:C?["string"==typeof C?C:""]:[],unwrapData:!1,onObservation:X,onClick:q,hoverHighlight:J,mobileInteraction:s.mobileInteraction,mobileSemantics:s.mobileSemantics,chartType:"BubbleChart",chartId:K,showLegend:me,userMargin:y,marginDefaults:s.marginDefaults,loading:U,loadingContent:Z,emptyContent:ee,width:ce,height:he}),{domain:ke,trackPushed:Se,reset:Ce}=le({accessor:w,data:xe,isPushMode:Ae}),Le=ft(e=>{Se([e]),r.current?.push(e)},[Se]),He=ft(e=>{Se(e),r.current?.pushMany(e)},[Se]);a(n,{variant:"xy",frameRef:r,overrides:{push:Le,pushMany:He,clear:()=>{Ce(),r.current?.clear()}}});const Ie=F(Q),Be=(N({name:Ie?.name||"__unused_brush__",xField:Ie?.xField||("string"==typeof x?x:void 0),yField:Ie?.yField||("string"==typeof A?A:void 0)}),pt(()=>({stroke:_,strokeWidth:R}),[_,R])),Fe=pt(()=>ke??[0,1],[ke]),Re=ft(e=>I(e,w,k,Fe),[w,k,Fe]),_e=pt(()=>f(x,A),[x,A]),Ne=ne({colorBy:C,colorScale:we.colorScale,color:ie,fillOpacity:B,radiusFn:Re,baseStyleExtras:Be,stroke:re,strokeWidth:ae,opacity:se,styleRules:H,ruleContext:_e,effectiveSelectionHook:we.effectiveSelectionHook,resolvedSelection:we.resolvedSelection}),Pe=pt(()=>m([{label:be||c(x),accessor:x,role:"x",format:b},{label:ve||c(A),accessor:A,role:"y",format:v},{label:c(w),accessor:w,role:"size"},...C?[{label:c(C),accessor:C,role:"color"}]:[]]),[x,A,be,ve,w,C,b,v]);if(we.earlyReturn)return we.earlyReturn;const We=t({componentName:"BubbleChart",data:h,accessors:{xAccessor:x,yAccessor:A},requiredProps:{sizeBy:w}});if(We)return bt(Y,{componentName:"BubbleChart",message:We,width:ce,height:he});const Ee=e(T),De=Ee?[Ee,...M||[]]:M,Me={chartType:"bubble",...null!=h&&{data:xe},xAccessor:x,yAccessor:A,colorAccessor:C||void 0,sizeAccessor:w,sizeRange:k,pointStyle:Ne,colorScheme:L,size:[ce,he],responsiveWidth:o.responsiveWidth,responsiveHeight:o.responsiveHeight,margin:we.margin,showAxes:s.showAxes,xLabel:be,yLabel:ve,xFormat:b,yFormat:v,enableHover:de,showGrid:ue,...we.legendBehaviorProps,...d({title:pe,description:fe,summary:ye,accessibleTable:ge,className:g,animate:o.animate,axisExtent:o.axisExtent,autoPlaceAnnotations:o.autoPlaceAnnotations}),...p({tooltip:P,defaultTooltipContent:Pe}),...u({linkedHover:$,selection:j,onObservation:X,onClick:q,hoverHighlight:J,mobileInteraction:we.mobileInteraction,customHoverBehavior:we.customHoverBehavior,customClickBehavior:we.customClickBehavior}),...E&&{marginalGraphics:E},...D&&{pointIdAccessor:D},...De&&De.length>0&&{annotations:De},...O&&{xExtent:O},...G&&{yExtent:G},...we.crosshairProps,...z};return bt(V,{componentName:"BubbleChart",width:ce,height:he,children:bt(l,{ref:r,...Me})})});vt.displayName="BubbleChart";import*as xt from"react";import{useMemo as At,useCallback as wt,useState as kt,useRef as St,useEffect as Ct}from"react";import{brush as Lt}from"d3-brush";import{select as Ht}from"d3-selection";import{jsx as It,jsxs as Bt}from"react/jsx-runtime";var Ft="__splomIdx",Rt={top:4,bottom:4,left:4,right:4};function _t({frameRef:e,cellSize:t,onBrush:o}){const n=St(null),i=t-Rt.left-Rt.right,r=t-Rt.top-Rt.bottom;return Ct(()=>{if(!n.current)return;const t=Ht(n.current).select(".brush-g"),a=Lt().extent([[0,0],[i,r]]).on("brush end",t=>{const n=e.current?.getScales();if(!n)return;if(!(i=t.selection)||!Array.isArray(i[0]))return void o(null);var i;const[[r,a],[s,l]]=t.selection,c=[[n.x.invert(r),n.y.invert(a)],[n.x.invert(s),n.y.invert(l)]];o(c)});return t.call(a),t.select(".selection").attr("fill","steelblue").attr("fill-opacity",.15).attr("stroke","steelblue").attr("stroke-width",1),()=>{a.on("brush end",null)}},[i,r,e,o]),It("svg",{ref:n,width:t,height:t,style:{position:"absolute",top:0,left:0},children:It("g",{className:"brush-g",transform:`translate(${Rt.left},${Rt.top})`})})}function Nt({data:e,xField:t,yField:o,cellSize:n,pointRadius:i,pointOpacity:r,colorBy:a,colorScale:s,brushSelectionName:c,hoverSelectionName:h,unselectedOpacity:d,mobileInteraction:m,mode:p,onPointHover:f,onPointClick:y}){const g=St(null),v=T({name:c,clientId:`splom-${t}-${o}`,fields:[t,o]}),x=N({name:c,xField:t,yField:o}),A=T({name:h,clientId:"splom-hover-source",fields:[Ft]}),w=A.selectPoints,k=wt(e=>{e?x.brushInteraction.during(e):x.brushInteraction.end(null)},[x.brushInteraction]),S=wt(e=>{if(!e)return void f?.(null);const t=e.data,o=t?.[Ft];void 0!==o&&(w({[Ft]:[o]}),f?.(t,e.x+Rt.left,e.y+Rt.top))},[w,f]),L=wt(e=>{if(!e)return void y?.(null);const t=e.data;t&&y?.(t,e.x+Rt.left,e.y+Rt.top)},[y]),H=wt(e=>{const t={opacity:r,r:i};return t.fill=a?C(e,a,s):b,"hover"===p?A.isActive&&A.predicate(e)?(t.opacity=1,t.r=2.5*i,t.stroke="#333",t.strokeWidth=1.5):A.isActive&&(t.opacity=.6*r):v.isActive&&!v.predicate(e)&&(t.opacity=d),t},[r,i,a,p,s,A,v,d]);return Bt("div",{style:{position:"relative",width:n,height:n},children:[It(l,{ref:g,chartType:"scatter",data:e,size:[n,n],xAccessor:t,yAccessor:o,pointStyle:H,margin:Rt,showAxes:!1,enableHover:"hover"===p,...u({forceHoverBehavior:"hover"===p,forceClickBehavior:!!y,mobileInteraction:m,customHoverBehavior:S,customClickBehavior:L}),tooltipContent:"hover"===p?()=>null:void 0}),"brush"===p&&It(_t,{frameRef:g,cellSize:n,xField:t,yField:o,onBrush:k})]})}function Pt({data:e,field:t,label:o,cellSize:n,bins:i,colorBy:r,colorScale:a,brushSelectionName:s,hoverSelectionName:l,mode:c}){const h=T({name:s,clientId:"splom-diag-"+t,fields:[t]}),d=T({name:l,clientId:`splom-diag-${t}-hover`,fields:[Ft]}),u="hover"===c?d:h,m=u.isActive,p=u.predicate,f=At(()=>{const o="string"==typeof r?r:null,a=[],s=new Set;for(const n of e){const e=n[t];if(null==e||isNaN(e)||a.push(Number(e)),o){const e=n[o];null!=e&&s.add(e+"")}}if(0===a.length)return{bars:[],selectedBars:[],categoryBars:[],selectedCategoryBars:[],max:0,categories:[]};const[l,c]=Q(a),h=(c-l)/i||1,d=Array.from(s),u=new Map(d.map((e,t)=>[e,t])),f=Array(i).fill(0),y=Array(i).fill(0),g=Array.from({length:i},()=>Array(d.length).fill(0)),b=Array.from({length:i},()=>Array(d.length).fill(0));for(const n of e){const e=n[t];if(null==e||isNaN(e))continue;const r=Math.min(Math.floor((e-l)/h),i-1);if(f[r]++,m&&!p(n)||y[r]++,o){const e=u.get(n[o]+"");void 0!==e&&(g[r][e]++,m&&!p(n)||b[r][e]++)}}const v=$(f,1),x=g.map((e,t)=>{let o=0;return e.map((e,r)=>{const a=e/v*(n-24),s={x:t/i*n,w:n/i-1,h:a,y0:o,category:d[r]};return o+=a,s})}),A=b.map((e,t)=>{let o=0;return e.map((e,r)=>{const a=e/v*(n-24),s={x:t/i*n,w:n/i-1,h:a,y0:o,category:d[r]};return o+=a,s})});return{bars:f.map((e,t)=>({x:t/i*n,w:n/i-1,h:e/v*(n-24),count:e})),selectedBars:y.map((e,t)=>({x:t/i*n,w:n/i-1,h:e/v*(n-24),count:e})),categoryBars:x,selectedCategoryBars:A,max:v,categories:d}},[e,t,i,n,m,p,r]);return Bt("svg",{width:n,height:n,style:{overflow:"hidden"},children:[It("text",{x:n/2,y:14,textAnchor:"middle",fontSize:11,fontWeight:"bold",fill:"#333",children:o}),f.categories.length>0?f.categoryBars.map((e,t)=>e.map((e,o)=>It("rect",{x:e.x,y:n-e.y0-e.h,width:Math.max(e.w,1),height:e.h,fill:a?a(e.category):b,opacity:m?.3:.6},`bg-${t}-${o}`))):f.bars.map((e,t)=>It("rect",{x:e.x,y:n-e.h,width:Math.max(e.w,1),height:e.h,fill:b,opacity:m?.3:.6},"bg-"+t)),m&&(f.categories.length>0?f.selectedCategoryBars.map((e,t)=>e.map((e,o)=>It("rect",{x:e.x,y:n-e.y0-e.h,width:Math.max(e.w,1),height:e.h,fill:a?a(e.category):b,opacity:.7},`sel-${t}-${o}`))):f.selectedBars.map((e,t)=>It("rect",{x:e.x,y:n-e.h,width:Math.max(e.w,1),height:e.h,fill:b,opacity:.7},"sel-"+t)))]})}function Wt({label:e,cellSize:t}){return It("svg",{width:t,height:t,children:It("text",{x:t/2,y:t/2,textAnchor:"middle",dominantBaseline:"middle",fontSize:12,fontWeight:"bold",fill:"#333",children:e})})}function Et(e){const{data:t,fields:o,fieldLabels:n={},colorBy:i,colorScheme:r,cellSize:a=150,cellGap:s=4,pointRadius:l=2,pointOpacity:c=.5,diagonal:h="histogram",histogramBins:d=20,brushMode:u="crossfilter",hoverMode:m=!0,unselectedOpacity:p=.1,showGrid:f=!1,tooltip:y,showLegend:g,idAccessor:v,width:x,className:A,onObservation:w,onClick:k,chartId:S}=e,C="splom",L="splom-hover",H=_(e.mobileInteraction,{mode:e.mode,width:x??o.length*a,mobileSemantics:e.mobileSemantics}),I=m?"hover":u?"brush":"hover",B=O(e=>e.clearSelection),[F,R]=kt(null),N=wt(()=>{B(L),R(null)},[B,L]),P=At(()=>(t||[]).map((e,t)=>void 0!==e[Ft]?e:{...e,[Ft]:t}),[t]),W=D(P,i,r),E=wt((e,t,o,n)=>[40+e*(a+s)+(o??0),t*(a+s)+(n??0)],[40,a,s]),M=void 0!==g?g:!!i,T=At(()=>{if(!M||!i)return null;const e="string"==typeof i?i:null;return e?Array.from(new Set(P.map(t=>t[e]).filter(e=>null!=e))).map(e=>({label:e+"",color:W?W(e+""):b})):null},[M,i,P,W]),G=At(()=>({display:"grid",gridTemplateColumns:"40px "+o.map(()=>a+"px").join(" "),gridTemplateRows:o.map(()=>a+"px").join(" ")+" 40px",gap:s+"px",width:"fit-content"}),[o,a,s,40]);return Bt("div",{className:A,style:{position:"relative"},children:[T&&It("div",{style:{display:"flex",gap:12,marginBottom:8,flexWrap:"wrap"},children:T.map(e=>Bt("div",{style:{display:"flex",alignItems:"center",gap:4},children:[It("span",{style:{display:"inline-block",width:10,height:10,borderRadius:"50%",backgroundColor:e.color}}),It("span",{style:{fontSize:11},children:e.label})]},e.label))}),Bt("div",{style:G,onMouseLeave:"hover"===I?N:void 0,children:[o.map((e,t)=>Bt(xt.Fragment,{children:[It("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",writingMode:"vertical-rl",transform:"rotate(180deg)",fontSize:11,fontWeight:"bold",color:"#333"},children:n[e]||e}),o.map((o,r)=>t===r?"label"===h?It(Wt,{label:n[e]||e,cellSize:a},"diag-"+e):It(Pt,{data:P,field:e,label:n[e]||e,cellSize:a,bins:d,colorBy:i,colorScale:W,brushSelectionName:C,hoverSelectionName:L,unselectedOpacity:p,mode:I},"diag-"+e):It(Nt,{data:P,xField:o,yField:e,fieldLabels:n,cellSize:a,pointRadius:l,pointOpacity:c,colorBy:i,colorScale:W,brushSelectionName:C,hoverSelectionName:L,unselectedOpacity:p,showGrid:f,tooltip:y,mobileInteraction:H,mode:I,onPointHover:"hover"===I?(n,i,a)=>{if(n){if(R({datum:n,xField:o,yField:e,colIndex:r,rowIndex:t,px:i??0,py:a??0}),w){const[e,o]=E(r,t,i,a);w({type:"hover",datum:n,x:e,y:o,timestamp:Date.now(),chartType:"ScatterplotMatrix",chartId:S})}}else R(null),w&&w({type:"hover-end",timestamp:Date.now(),chartType:"ScatterplotMatrix",chartId:S})}:void 0,onPointClick:k||w?(e,o,n)=>{if(!e)return;const[i,a]=E(r,t,o,n);k&&k(e,{x:i,y:a}),w&&w({type:"click",datum:e,x:i,y:a,timestamp:Date.now(),chartType:"ScatterplotMatrix",chartId:S})}:void 0},`cell-${e}-${o}`))]},"row-"+e)),It("div",{})," ",o.map(e=>It("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:11,fontWeight:"bold",color:"#333"},children:n[e]||e},"col-label-"+e))]}),F&&"hover"===I&&(()=>{const e=F.datum,t=n[F.xField]||F.xField,o=n[F.yField]||F.yField,r=i?"function"==typeof i?i(e):e[i]:null,l=v?"function"==typeof v?v(e):e[v]:"Row "+e[Ft];return Bt("div",{style:{position:"absolute",left:40+F.colIndex*(a+s)+F.px,top:F.rowIndex*(a+s)+F.py-8,transform:"translate(-50%, -100%)",color:"#333",background:"rgba(255,255,255,0.95)",border:"1px solid #ddd",borderRadius:3,padding:"4px 8px",fontSize:11,lineHeight:1.4,whiteSpace:"nowrap",pointerEvents:"none",zIndex:10},children:[It("div",{style:{fontWeight:"bold",marginBottom:2},children:l+""}),Bt("div",{children:[t,": ",null!=e[F.xField]?Number(e[F.xField]).toFixed(1):"–"]}),Bt("div",{children:[o,": ",null!=e[F.yField]?Number(e[F.yField]).toFixed(1):"–"]}),null!=r&&Bt("div",{style:{opacity:.8},children:["string"==typeof i?i:"group",": ",r+""]})]})})()]})}function Dt(e){const{brushMode:t="crossfilter",hoverMode:o=!0}=e,n={};return!o&&t&&(n.splom={resolution:t}),o&&(n["splom-hover"]={resolution:"union"}),It(A,{selections:n,children:It(Et,{...e})})}Dt.displayName="ScatterplotMatrix";import{useState as Mt,useRef as Tt,useEffect as Ot,useMemo as Gt,useCallback as zt}from"react";import{brushX as jt,brushY as $t}from"d3-brush";import{select as Qt}from"d3-selection";import{jsx as Yt,jsxs as Vt}from"react/jsx-runtime";function Xt({width:e,height:t,margin:o,scales:n,brushDirection:i,extent:r,onBrush:a}){const s=Tt(null),l=Tt(null),c=Tt(!1),h=e+o.left+o.right,d=t+o.top+o.bottom;return Ot(()=>{if(!s.current||!n)return;const o=Qt(s.current).select(".brush-group"),r="x"===i?jt().extent([[0,0],[e,t]]):$t().extent([[0,0],[e,t]]);return r.on("brush end",e=>{if(c.current)return;if(!e.sourceEvent)return;const t=e.selection;if(!t)return void a(null);const o=("x"===i?n.x:n.y).invert;if(!o)return;const r=[o(t[0]),o(t[1])];a(r)}),o.call(r),l.current=e=>{o.call(r.move,e)},o.select(".selection").attr("fill","steelblue").attr("fill-opacity",.2).attr("stroke","steelblue").attr("stroke-width",1),()=>{l.current=null,r.on("brush end",null)}},[n,e,t,i,a]),Ot(()=>{if(!l.current||!n||!s.current)return;const e="x"===i?n.x:n.y;if(c.current=!0,r){const t=[e(r[0]),e(r[1])];l.current(t)}else l.current(null);c.current=!1},[r,n,i]),Yt("svg",{ref:s,width:h,height:d,style:{position:"absolute",top:0,left:0,pointerEvents:"all"},children:Yt("g",{className:"brush-group",transform:`translate(${o.left},${o.top})`})})}function qt(e){const{data:o,width:n=600,height:i=400,margin:r,className:a,title:s,description:h,summary:d,xLabel:u,yLabel:p,xFormat:f,yFormat:y,xAccessor:g="x",yAccessor:v="y",lineBy:x,lineDataAccessor:A="coordinates",colorBy:w,colorScheme:k,curve:L="linear",lineWidth:H=2,fillArea:I=!1,areaOpacity:B=.3,showPoints:F=!1,pointRadius:_=3,enableHover:N=!0,showGrid:W=!1,showLegend:E,legendPosition:M,tooltip:T,minimap:O={},renderBefore:G=!1,onBrush:z,brushExtent:j,yExtent:$,frameProps:Q={},loading:J,loadingContent:K,emptyContent:U}=e,Z=q(J,n,i,K),ee=Z?null:X(o,n,i,U),te=Gt(()=>S(o),[o]),[oe,ne]=Mt(null),ie=j??oe,re=zt(e=>{j||ne(e),z?.(e)},[j,z]),ae=Tt(null),[se,le]=Mt(null);Ot(()=>{let e=0,t=!1;const o=()=>{if(t)return;const n=ae.current?.getScales?.();n?le(n):e=requestAnimationFrame(o)};return e=requestAnimationFrame(o),()=>{t=!0,e&&cancelAnimationFrame(e)}},[o]);const ce=void 0!==te[0]?.[A],he=Gt(()=>{if(ce)return te;if(x){const e=te.reduce((e,t)=>{const o="function"==typeof x?x(t):t[x];if(!e[o]){const t={[A]:[]};"string"==typeof x&&(t[x]=o),e[o]=t}return e[o][A].push(t),e},{});return Object.values(e)}return[{[A]:te}]},[te,x,A,ce]),de=Gt(()=>ce||x?he.flatMap(e=>{const t=e[A]||[];return x&&"string"==typeof x?t.map(t=>({...t,[x]:e[x]})):t}):te,[he,A,ce,x,te]),ue=D(te,w,k),me=We({lineWidth:H,colorBy:w,colorScale:ue,fillArea:I,areaOpacity:B}),pe=Gt(()=>{if(O.lineStyle)return O.lineStyle},[O.lineStyle]),fe=We({lineWidth:1,colorBy:w,colorScale:ue}),ye=pe??fe,ge=Gt(()=>{if(F)return e=>{const t={r:_,fillOpacity:1};return t.fill=w?C(e.parentLine||e,w,ue):b,t}},[F,_,w,ue]),{legend:be,margin:ve,legendPosition:xe}=P({data:he,colorBy:w,colorScale:ue,showLegend:E,legendPosition:M,userMargin:r}),Ae=O.height||60,we=Gt(()=>({top:O.margin?.top??0,bottom:O.margin?.bottom??20,left:O.margin?.left??ve.left,right:O.margin?.right??ve.right}),[O.margin,ve]),ke=O.brushDirection||"x",Se=Gt(()=>m([{label:u||c(g),accessor:g,role:"x",format:f},{label:p||c(v),accessor:v,role:"y",format:y}]),[g,v,u,p,f,y]),Ce=t({componentName:"MinimapChart",data:o,accessors:{xAccessor:g,yAccessor:v}});if(Ce)return Yt(Y,{componentName:"MinimapChart",message:Ce,width:n,height:i});const Le=I?"area":"line",He={chartType:Le,data:de,xAccessor:g,yAccessor:v,groupAccessor:x||void 0,curve:L,lineStyle:me,...F&&{pointStyle:ge},size:[n,i],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:ve,showAxes:!0,xLabel:u,yLabel:p,xFormat:f,yFormat:y,enableHover:N,showGrid:W,...be&&{legend:be,legendPosition:xe},...s&&{title:s},...h&&{description:h},...d&&{summary:d},tooltipContent:!1===T?()=>null:R(T)||Se,...ie&&{xExtent:ie},...$&&{yExtent:$},...void 0!==e.axisExtent&&{axisExtent:e.axisExtent},...void 0!==e.autoPlaceAnnotations&&{autoPlaceAnnotations:e.autoPlaceAnnotations},...Q},Ie={chartType:Le,data:de,xAccessor:g,yAccessor:v,groupAccessor:x||void 0,curve:L,lineStyle:ye,size:[n,Ae+we.top+we.bottom],margin:we,showAxes:O.showAxes??!1,background:O.background,enableHover:!1,...$&&{yExtent:$}},Be=Vt("div",{style:{position:"relative",width:n,overflow:"hidden"},children:[Yt(l,{ref:ae,...Ie}),Yt(Xt,{width:n-we.left-we.right,height:Ae,margin:we,scales:se,brushDirection:ke,extent:ie,onBrush:re})]},"minimap"),Fe=Yt("div",{style:{overflow:"hidden"},children:Yt(l,{...He})},"main");return Z||ee||Yt(V,{componentName:"MinimapChart",width:n,height:i,children:Vt("div",{className:"minimap-chart"+(a?" "+a:""),children:[G?Be:Fe,G?Fe:Be]})})}qt.displayName="MinimapChart";import{useMemo as Jt,forwardRef as Kt,useRef as Ut}from"react";var Zt={topLeft:{label:"Low / High",color:"#E9C46A",opacity:.08},topRight:{label:"High / High",color:"#2A9D8F",opacity:.08},bottomLeft:{label:"Low / Low",color:"#E76F51",opacity:.08},bottomRight:{label:"High / Low",color:"#86BBD8",opacity:.08}};import{Fragment as eo,jsx as to,jsxs as oo}from"react/jsx-runtime";function no(e,t){return{label:t?.label??e.label,color:t?.color??e.color,opacity:t?.opacity??e.opacity}}var io=Kt(function(e,o){const n=Ut(null);a(o,{variant:"xy",frameRef:n});const r=W(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:s,margin:h,className:d,xFormat:p,yFormat:y,xAccessor:g="x",yAccessor:v="y",xCenter:x,yCenter:A,quadrants:w,centerlineStyle:k={},showQuadrantLabels:C=!0,quadrantLabelSize:L=12,colorBy:H,colorScheme:B,styleRules:F,sizeBy:_,sizeRange:N=[3,15],pointRadius:P=5,pointOpacity:E=.8,tooltip:D,pointIdAccessor:M,annotations:T,frameProps:O={},selection:G,linkedHover:z,onObservation:j,onClick:$,hoverHighlight:X,chartId:q,loading:K,loadingContent:U,emptyContent:Z,legendInteraction:ee,legendPosition:te,color:oe,stroke:ie,strokeWidth:re,opacity:ae}=e,{width:se,height:le,enableHover:ce,showGrid:he,showLegend:de,title:ue,description:me,summary:pe,accessibleTable:fe,xLabel:ye,yLabel:ge}=r,be=Jt(()=>({topLeft:no(Zt.topLeft,w?.topLeft),topRight:no(Zt.topRight,w?.topRight),bottomLeft:no(Zt.bottomLeft,w?.bottomLeft),bottomRight:no(Zt.bottomRight,w?.bottomRight)}),[w]),ve=Jt(()=>S(s),[s]),xe=i({data:ve,rawData:s,colorBy:H,colorScheme:B,legendInteraction:ee,legendPosition:te,selection:G,linkedHover:z,fallbackFields:"string"==typeof H?[H]:[],unwrapData:!1,onObservation:j,onClick:$,hoverHighlight:X,mobileInteraction:r.mobileInteraction,mobileSemantics:r.mobileSemantics,chartType:"QuadrantChart",chartId:q,showLegend:de,userMargin:h,marginDefaults:r.marginDefaults,loading:K,loadingContent:U,emptyContent:Z,width:se,height:le});J("QuadrantChart",ve,"xAccessor",g),J("QuadrantChart",ve,"yAccessor",v);const Ae=Jt(()=>{if(!ve.length)return;const e="function"==typeof g?g:e=>+e[g],t="function"==typeof v?v:e=>+e[v];let o=1/0,n=-1/0,i=1/0,r=-1/0;for(const a of ve){const s=e(a),l=t(a);isFinite(s)&&(o>s&&(o=s),s>n&&(n=s)),isFinite(l)&&(i>l&&(i=l),l>r&&(r=l))}if(null!=x&&isFinite(x)&&(o>x&&(o=x),x>n&&(n=x)),null!=A&&isFinite(A)&&(i>A&&(i=A),A>r&&(r=A)),o===1/0)return;const a=.1*(n-o)||1,s=.1*(r-i)||1;return{xExtent:[o-a,n+a],yExtent:[i-s,r+s]}},[ve,g,v,x,A]),we=Jt(()=>{if(!_||0===ve.length)return;const e=ve.map(e=>"function"==typeof _?_(e):e[_]).filter(e=>"number"==typeof e&&Number.isFinite(e));return 0!==e.length?Q(e):void 0},[ve,_]),ke=Jt(()=>"function"==typeof g?g:e=>+e[g],[g]),Se=Jt(()=>"function"==typeof v?v:e=>+e[v],[v]),Ce=Jt(()=>e=>{const t=ke(e),o=Se(e),n=null!=x?t>=x:void 0,i=null!=A?o>=A:void 0;return void 0===i||void 0===n?oe||b:i&&n?be.topRight.color:i&&!n?be.topLeft.color:!i&&n?be.bottomRight.color:be.bottomLeft.color},[ke,Se,x,A,be,oe]),Le=Jt(()=>_?e=>I(e,_,N,we):void 0,[_,N,we]),He=Jt(()=>f(g,v),[g,v]),Ie=ne({colorBy:H,colorScale:xe.colorScale,color:oe,pointRadius:P,fillOpacity:E,radiusFn:Le,fallbackFill:Ce,stroke:ie,strokeWidth:re,opacity:ae,styleRules:F,ruleContext:He,effectiveSelectionHook:xe.effectiveSelectionHook,resolvedSelection:xe.resolvedSelection}),Be=Jt(()=>{if(!ve.length)return;const e=new Set;"string"==typeof g&&e.add(g),"string"==typeof v&&e.add(v),"string"==typeof H&&e.add(H),"string"==typeof _&&e.add(_);const t=ve[0];for(const o of Object.keys(t))if(!o.startsWith("_")&&!e.has(o)&&"string"==typeof t[o])return o},[ve,g,v,H,_]),Fe=Jt(()=>m([...Be?[{label:Be,accessor:Be,role:"title"}]:[],{label:ye||c(g),accessor:g,role:"x",format:p},{label:ge||c(v),accessor:v,role:"y",format:y},...H?[{label:c(H),accessor:H,role:"color"}]:[],..._?[{label:c(_),accessor:_,role:"size"}]:[]]),[Be,g,v,ye,ge,H,_,p,y]),Re=t({componentName:"QuadrantChart",data:s,accessors:{xAccessor:g,yAccessor:v}}),_e=Jt(()=>{const e={stroke:k.stroke||"#999",strokeWidth:k.strokeWidth??1,dashArray:k.strokeDasharray||[]};return[(t,o,n,i)=>{if(!n?.x||!n?.y)return;const r=i.width,a=i.height,s=null!=x?n.x(x):r/2,l=null!=A?n.y(A):a/2;if(null!=x&&!isFinite(s))return;if(null!=A&&!isFinite(l))return;const c=Math.max(0,Math.min(r,s)),h=Math.max(0,Math.min(a,l)),d=[{config:be.topLeft,x:0,y:0,w:c,h:h},{config:be.topRight,x:c,y:0,w:r-c,h:h},{config:be.bottomLeft,x:0,y:h,w:c,h:a-h},{config:be.bottomRight,x:c,y:h,w:r-c,h:a-h}];for(const e of d)e.w>0&&e.h>0&&(t.fillStyle=e.config.color,t.globalAlpha=e.config.opacity??.08,t.fillRect(e.x,e.y,e.w,e.h));t.globalAlpha=1,t.strokeStyle=e.stroke,t.lineWidth=e.strokeWidth,e.dashArray.length>0&&t.setLineDash(e.dashArray),t.beginPath(),t.moveTo(c,0),t.lineTo(c,a),t.stroke(),t.beginPath(),t.moveTo(0,h),t.lineTo(r,h),t.stroke(),t.setLineDash([])}]},[x,A,be,k]),Ne=Jt(()=>C?[..._e,(e,t,o,n)=>{if(!o?.x||!o?.y)return;const i=n.width,r=n.height,a=null!=x?o.x(x):i/2,s=null!=A?o.y(A):r/2;(null==x||isFinite(a))&&(null==A||isFinite(s))&&(e.font=`600 ${L}px sans-serif`,e.globalAlpha=.5,e.fillStyle=be.topLeft.color,e.textAlign="left",e.textBaseline="top",e.fillText(be.topLeft.label,8,8),e.fillStyle=be.topRight.color,e.textAlign="right",e.textBaseline="top",e.fillText(be.topRight.label,i-8,8),e.fillStyle=be.bottomLeft.color,e.textAlign="left",e.textBaseline="bottom",e.fillText(be.bottomLeft.label,8,r-8),e.fillStyle=be.bottomRight.color,e.textAlign="right",e.textBaseline="bottom",e.fillText(be.bottomRight.label,i-8,r-8),e.globalAlpha=1)}]:_e,[_e,C,L,be,x,A]),Pe=Jt(()=>{const e=O.canvasPreRenderers||[];return[...Ne,...e]},[Ne,O.canvasPreRenderers]),We=Jt(()=>{const e={stroke:k.stroke||"#999",strokeWidth:k.strokeWidth??1,dashArray:k.strokeDasharray?Array.isArray(k.strokeDasharray)?k.strokeDasharray.join(","):k.strokeDasharray:void 0};return[(t,o,n)=>{if(!o?.x||!o?.y)return null;const i=n.width,r=n.height,a=null!=x?o.x(x):i/2,s=null!=A?o.y(A):r/2;if(null!=x&&!isFinite(a))return null;if(null!=A&&!isFinite(s))return null;const l=Math.max(0,Math.min(i,a)),c=Math.max(0,Math.min(r,s));return oo(eo,{children:[[{config:be.topLeft,x:0,y:0,w:l,h:c},{config:be.topRight,x:l,y:0,w:i-l,h:c},{config:be.bottomLeft,x:0,y:c,w:l,h:r-c},{config:be.bottomRight,x:l,y:c,w:i-l,h:r-c}].map((e,t)=>e.w>0&&e.h>0?to("rect",{x:e.x,y:e.y,width:e.w,height:e.h,fill:e.config.color,opacity:e.config.opacity??.08},"qf-"+t):null),to("line",{x1:l,y1:0,x2:l,y2:r,stroke:e.stroke,strokeWidth:e.strokeWidth,strokeDasharray:e.dashArray}),to("line",{x1:0,y1:c,x2:i,y2:c,stroke:e.stroke,strokeWidth:e.strokeWidth,strokeDasharray:e.dashArray}),C&&oo(eo,{children:[to("text",{x:8,y:8+L,fill:be.topLeft.color,fontWeight:600,fontSize:L,opacity:.5,children:be.topLeft.label}),to("text",{x:i-8,y:8+L,fill:be.topRight.color,fontWeight:600,fontSize:L,opacity:.5,textAnchor:"end",children:be.topRight.label}),to("text",{x:8,y:r-8,fill:be.bottomLeft.color,fontWeight:600,fontSize:L,opacity:.5,children:be.bottomLeft.label}),to("text",{x:i-8,y:r-8,fill:be.bottomRight.color,fontWeight:600,fontSize:L,opacity:.5,textAnchor:"end",children:be.bottomRight.label})]})]})}]},[x,A,be,k,C,L]);if(xe.earlyReturn)return xe.earlyReturn;const Ee={chartType:"scatter",...null!=s&&{data:ve},xAccessor:g,yAccessor:v,colorAccessor:H||void 0,sizeAccessor:_||void 0,sizeRange:N,pointStyle:Ie,colorScheme:B,size:[se,le],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:xe.margin,showAxes:r.showAxes,xLabel:ye,yLabel:ge,xFormat:p,yFormat:y,enableHover:ce,showGrid:he,...Ae&&{xExtent:Ae.xExtent,yExtent:Ae.yExtent},...xe.legendBehaviorProps,...ue&&{title:ue},...me&&{description:me},...pe&&{summary:pe},...void 0!==fe&&{accessibleTable:fe},...d&&{className:d},...null!=e.animate&&{animate:e.animate},...void 0!==e.axisExtent&&{axisExtent:e.axisExtent},...void 0!==e.autoPlaceAnnotations&&{autoPlaceAnnotations:e.autoPlaceAnnotations},tooltipContent:!1===D?()=>null:!0===D||void 0===D?Fe:R(D)||Fe,...u({linkedHover:z,selection:G,onObservation:j,onClick:$,hoverHighlight:X,mobileInteraction:xe.mobileInteraction,customHoverBehavior:xe.customHoverBehavior,customClickBehavior:xe.customClickBehavior}),...M&&{pointIdAccessor:M},...T&&T.length>0&&{annotations:T},canvasPreRenderers:Pe,...xe.crosshairProps,...O,...Pe.length>0&&{canvasPreRenderers:Pe},svgPreRenderers:We};return Re?to(Y,{componentName:"QuadrantChart",message:Re,width:se,height:le}):to(V,{componentName:"QuadrantChart",width:se,height:le,children:to(l,{ref:n,...Ee})})});io.displayName="QuadrantChart";import*as ro from"react";import{useMemo as ao,useCallback as so,forwardRef as lo,useRef as co,useImperativeHandle as ho}from"react";import{jsx as uo}from"react/jsx-runtime";var mo="__ma_unitized",po="__ma_series";function fo(e,t){const o=t[1]-t[0];return 0===o?.5:(e-t[0])/o}function yo(e,t){return t[0]+e*(t[1]-t[0])}var go=lo(function(e,o){const n=co(null),r=co([]),a=co(e.series);a.current=e.series,ho(o,()=>{const e=()=>(a.current??[]).filter(e=>null!=e&&"object"==typeof e);return{push:t=>{if(!n.current)return;const o=e(),i=t;for(let e=0;o.length>e&&2>e;e++){const t=o[e],a=t.extent||r.current[e];if(!a)continue;const s=("function"==typeof t.yAccessor?t.yAccessor:e=>e[t.yAccessor])(i);null!=s&&isFinite(s)&&n.current.push({...i,[mo]:fo(s,a),[po]:t.label||"Series "+(e+1)})}},pushMany:t=>{if(!n.current)return;const o=e(),i=[];for(const e of t)for(let t=0;o.length>t&&2>t;t++){const n=o[t],a=n.extent||r.current[t];if(!a)continue;const s=("function"==typeof n.yAccessor?n.yAccessor:e=>e[n.yAccessor])(e);null!=s&&isFinite(s)&&i.push({...e,[mo]:fo(s,a),[po]:n.label||"Series "+(t+1)})}n.current.pushMany(i)},remove:e=>n.current?.remove(e)??[],update:(e,t)=>n.current?.update(e,t)??[],clear:()=>n.current?.clear(),getData:()=>n.current?.getData()??[],getScales:()=>n.current?.getScales()??null}},[]);const s=W(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,xLabel:e.xLabel,accessibleTable:e.accessibleTable,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules},{width:800,height:400}),{data:c,margin:h,className:d,xFormat:m,xAccessor:p="x",series:f,colorScheme:y,curve:b="monotoneX",lineWidth:x=2,tooltip:A,annotations:w,frameProps:k={},selection:C,linkedHover:L,onObservation:H,onClick:I,hoverHighlight:B,chartId:F,loading:_,loadingContent:N,emptyContent:P,legendInteraction:E,legendPosition:D,stroke:M,strokeWidth:T,opacity:O}=e,{width:z,height:j,enableHover:$,showGrid:Q,showLegend:J=!0,title:K,description:U,summary:Z,accessibleTable:ee,xLabel:te}=s,oe=ao(()=>S(c),[c]),ne=ao(()=>S(f),[f]),ie=ne,re=2===ne.length;"undefined"==typeof process||"production"===process.env?.NODE_ENV||re||console.warn(`[MultiAxisLineChart] Expected exactly 2 series for dual-axis mode, got ${ne.length}. Rendering as a standard multi-line chart.`);const ae=q(_,z,j,N),se=ae?null:X(c,z,j,P),le=G(),ce=ao(()=>{let e;if(Array.isArray(y))e=y;else if(le&&le.length>0)e=le;else{const t=g[y];e=Array.isArray(t)?t:v}return ie.map((t,o)=>t.color||e[o%e.length])},[ie,y,le]),he=ao(()=>ne.map((e,t)=>e.label||"Series "+(t+1)),[ne]),{unitizedData:de,extents:ue}=ao(()=>{if(0===oe.length){const e=ne.map(e=>e.extent||null).filter(Boolean);return e.length===ne.length&&(r.current=e),{unitizedData:[],extents:e.length===ne.length?e:[]}}const e=ne.map(e=>e.extent||function(e,t){let o=1/0,n=-1/0;const i="function"==typeof t?t:e=>e[t];for(const t of e){const e=i(t);null!=e&&isFinite(e)&&(o>e&&(o=e),e>n&&(n=e))}if(!isFinite(o)||!isFinite(n))return[0,1];if(o===n){const e=0===o?1:.1*Math.abs(o);return[o-e,n+e]}return[o,n]}(oe,e.yAccessor));if(r.current=e,!re){const t=[];for(const e of oe)for(let o=0;ne.length>o;o++){const n=ne[o],i=("function"==typeof n.yAccessor?n.yAccessor:e=>e[n.yAccessor])(e);null!=i&&t.push({...e,[mo]:i,[po]:he[o]})}return{unitizedData:t,extents:e}}const t=[];for(const o of oe)for(let n=0;2>n;n++){const i=ne[n],r=("function"==typeof i.yAccessor?i.yAccessor:e=>e[i.yAccessor])(o);null!=r&&t.push({...o,[mo]:fo(r,e[n]),[po]:he[n]})}return{unitizedData:t,extents:e}},[oe,ne,re,he]),me=ao(()=>{if(re&&ue.length>=2)return[{orient:"left",label:he[0],tickFormat:ne[0].format||(e=>{const t=yo(e,ue[0]);return Number.isInteger(t)?t+"":t.toFixed(1)})},{orient:"right",label:he[1],tickFormat:ne[1].format||(e=>{const t=yo(e,ue[1]);return Number.isInteger(t)?t+"":t.toFixed(1)})},{orient:"bottom"}]},[re,ue,ne,he]),pe=ao(()=>de.length>0?de:he.map(e=>({[po]:e})),[de,he]),fe=i({data:pe,rawData:c,colorBy:po,colorScheme:ce,legendInteraction:E,legendPosition:D,selection:C,linkedHover:L,fallbackFields:[po],unwrapData:!1,onObservation:H,onClick:I,hoverHighlight:B,mobileInteraction:s.mobileInteraction,mobileSemantics:s.mobileSemantics,chartType:"MultiAxisLineChart",chartId:F,showLegend:J,userMargin:h,marginDefaults:re?{...s.marginDefaults,left:70,right:70}:s.marginDefaults,loading:_,loadingContent:N,emptyContent:P,width:z,height:j}),ye=ao(()=>{const e=new Map;return he.forEach((t,o)=>e.set(t,ce[o])),e},[he,ce]),ge=We({lineWidth:x,resolveStroke:so(e=>ye.get(e[po])||ce[0],[ye,ce]),stroke:M,strokeWidth:T,opacity:O,effectiveSelectionHook:fe.effectiveSelectionHook,resolvedSelection:fe.resolvedSelection}),be=ao(()=>{if(!1===A)return()=>null;return R(A)||(e=>{const t=e.data||e,o=t[po],n=he.indexOf(o),i=t[mo],r=re&&n>=0&&ue[n]?yo(i,ue[n]):i,a=n>=0&&ne[n]?.format?ne[n].format:e=>Number.isInteger(e)?e+"":e.toFixed(2),s="function"==typeof p?p(t):t[p];return ro.createElement("div",{style:{padding:"6px 10px",fontFamily:"var(--semiotic-font-family, sans-serif)",fontSize:"var(--semiotic-tooltip-font-size, 13px)"}},ro.createElement("div",{style:{fontWeight:600,marginBottom:4,color:ce[n]||"inherit"}},o),ro.createElement("div",null,`${"string"==typeof p?p:"x"}: ${s}`),ro.createElement("div",null,`${o}: ${a(r)}`))})},[A,he,ce,ue,re,ne,p]);if(fe.earlyReturn)return fe.earlyReturn;const ve=t({componentName:"MultiAxisLineChart",data:c,accessors:{xAccessor:p}}),xe=re?[0,1]:void 0,Ae={chartType:"line",...null!=c&&{data:de},xAccessor:p,yAccessor:mo,groupAccessor:po,lineStyle:ge,colorScheme:ce,size:[z,j],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:fe.margin,showAxes:s.showAxes,...me&&{axes:me},xLabel:te,...re?{}:{yLabel:he[0]},xFormat:m,...re&&xe&&{yExtent:xe},enableHover:$,...e.pointIdAccessor&&{pointIdAccessor:e.pointIdAccessor},showGrid:Q,curve:b,...fe.legendBehaviorProps,...K&&{title:K},...U&&{description:U},...Z&&{summary:Z},...void 0!==ee&&{accessibleTable:ee},...d&&{className:d},...null!=e.animate&&{animate:e.animate},...void 0!==e.axisExtent&&{axisExtent:e.axisExtent},...void 0!==e.autoPlaceAnnotations&&{autoPlaceAnnotations:e.autoPlaceAnnotations},tooltipContent:be,...w&&{annotations:w},...u({linkedHover:L,selection:C,onObservation:H,onClick:I,hoverHighlight:B,mobileInteraction:fe.mobileInteraction,customHoverBehavior:fe.customHoverBehavior,customClickBehavior:fe.customClickBehavior}),...fe.crosshairProps,...k};return ae||se||(ve?uo(Y,{componentName:"MultiAxisLineChart",message:ve,width:z,height:j}):uo(V,{componentName:"MultiAxisLineChart",width:z,height:j,children:uo(l,{ref:n,...Ae})}))});go.displayName="MultiAxisLineChart";import{useMemo as bo,forwardRef as vo,useRef as xo}from"react";import{jsx as Ao}from"react/jsx-runtime";var wo=vo(function(e,o){const i=xo(null);a(o,{variant:"xy",frameRef:i});const r=W(e.mode,{width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,title:e.title,xLabel:e.xLabel,yLabel:e.yLabel,description:e.description,summary:e.summary,accessibleTable:e.accessibleTable,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules}),{data:s,margin:h,className:f,xFormat:y,yFormat:g,xAccessor:b="x",highAccessor:v="high",lowAccessor:x="low",openAccessor:A,closeAccessor:w,candlestickStyle:k,tooltip:C,annotations:H,xExtent:I,yExtent:B,frameProps:F={},selection:R,linkedHover:_,onObservation:N,onClick:P,chartId:D,loading:M,loadingContent:T,emptyContent:O}=e,{width:G,height:z,enableHover:j,showGrid:$,title:Q,description:K,summary:U,accessibleTable:Z,xLabel:ee,yLabel:te}=r,oe=q(M,G,z,T),ne=oe?null:X(s,G,z,O),ie=bo(()=>S(s),[s]),re=null==A||null==w;J("CandlestickChart",ie,"xAccessor",b),J("CandlestickChart",ie,"highAccessor",v),J("CandlestickChart",ie,"lowAccessor",x),re||(J("CandlestickChart",ie,"openAccessor",A),J("CandlestickChart",ie,"closeAccessor",w));const{customHoverBehavior:ae,customClickBehavior:se,crosshairSourceId:le}=E({selection:R,linkedHover:_,onObservation:N,onClick:P,chartType:"CandlestickChart",chartId:D,mobileInteraction:r.mobileInteraction}),ce=L(_,le),he=bo(()=>{const t=r.marginDefaults,o="sparkline"===e.mode?{...t,top:0,bottom:0}:t;return null==h?o:{...o,...n(h)}},[h,r.marginDefaults,e.mode]),de=bo(()=>{const e=[{label:ee||c(b),accessor:b,role:"x",format:y}];return re?(e.push({label:"High",accessor:v,role:"y",format:g}),e.push({label:"Low",accessor:x,format:g})):(e.push({label:"Open",accessor:A,format:g}),e.push({label:"High",accessor:v,format:g}),e.push({label:"Low",accessor:x,format:g}),e.push({label:"Close",accessor:w,format:g})),m(e)},[b,ee,y,g,v,x,A,w,re]),ue=t({componentName:"CandlestickChart",data:s,accessors:{xAccessor:b,highAccessor:v,lowAccessor:x,...!re&&{openAccessor:A,closeAccessor:w}}}),me={chartType:"candlestick",...null!=s&&{data:ie},xAccessor:b,yAccessor:v,highAccessor:v,lowAccessor:x,...!re&&{openAccessor:A,closeAccessor:w},...k&&{candlestickStyle:k},scalePadding:Math.max(2,Math.min(12,Math.round(G/40))),extentPadding:G>200?.1:.02,size:[G,z],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:he,showAxes:r.showAxes,xLabel:ee,yLabel:te,xFormat:y,yFormat:g,enableHover:j,showGrid:$,...e.pointIdAccessor&&{pointIdAccessor:e.pointIdAccessor},...d({title:Q,description:K,summary:U,accessibleTable:Z,className:f,animate:e.animate,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),...p({tooltip:C,defaultTooltipContent:de}),...u({linkedHover:_,selection:R,onObservation:N,onClick:P,mobileInteraction:r.mobileInteraction,customHoverBehavior:ae,customClickBehavior:se}),...H&&H.length>0&&{annotations:H},...I&&{xExtent:I},...B&&{yExtent:B},...ce,...F};return oe||ne||(ue?Ao(Y,{componentName:"CandlestickChart",message:ue,width:G,height:z}):Ao(V,{componentName:"CandlestickChart",width:G,height:z,children:Ao(l,{ref:i,...me})}))});wo.displayName="CandlestickChart";import{forwardRef as ko,useMemo as So}from"react";import{jsx as Co}from"react/jsx-runtime";var Lo=ko(function(e,t){const{data:o,layout:n,layoutConfig:i,onLayoutError:a,xExtent:s,yExtent:c,showAxes:h=!1,margin:m,className:p,annotations:f,onObservation:y,onClick:g,selection:b,linkedHover:v,chartId:x,loading:A,loadingContent:w,emptyContent:k,colorBy:S,colorScheme:C,frameProps:L={}}=e,{frameRef:H,resolved:I,safeData:B,setup:F,earlyReturn:R}=r({imperativeRef:t,imperativeVariant:"xy",chartTypeLabel:"XYCustomChart",unwrapData:!1,data:o,colorBy:S,colorScheme:C,selection:b,linkedHover:v,onObservation:y,onClick:g,chartId:x,loading:A,loadingContent:w,emptyContent:k,margin:m,width:e.width,height:e.height,showGrid:e.showGrid,enableHover:e.enableHover,showLegend:e.showLegend,title:e.title,description:e.description,summary:e.summary,accessibleTable:e.accessibleTable,mode:e.mode,mobileInteraction:e.mobileInteraction,mobileSemantics:e.mobileSemantics,responsiveRules:e.responsiveRules,xLabel:e.xLabel,yLabel:e.yLabel}),_=F.effectiveSelectionHook,N=So(()=>_?.isActive?{isActive:!0,predicate:_.predicate}:null,[_?.isActive,_?.predicate]);if(R)return R;const{width:P,height:W,enableHover:E,showGrid:D,title:M,description:T,summary:O,accessibleTable:G,xLabel:z,yLabel:j}=I,$={chartType:"custom",...null!=o&&{data:B},customLayout:n,layoutConfig:i,onLayoutError:a,...N&&{layoutSelection:N},xExtent:s,yExtent:c,colorAccessor:S,colorScheme:C,size:[P,W],responsiveWidth:e.responsiveWidth,responsiveHeight:e.responsiveHeight,margin:F.margin,showAxes:h,xLabel:z,yLabel:j,enableHover:E,showGrid:D,...F.legendBehaviorProps,...d({title:M,description:T,summary:O,accessibleTable:G,className:p,animate:e.animate,axisExtent:e.axisExtent,autoPlaceAnnotations:e.autoPlaceAnnotations}),...null!=e.tooltip&&{tooltipContent:e.tooltip},...u({linkedHover:v,selection:b,onObservation:y,onClick:g,hoverHighlight:!1,mobileInteraction:F.mobileInteraction,customHoverBehavior:F.customHoverBehavior,customClickBehavior:F.customClickBehavior}),...f&&f.length>0&&{annotations:f},...F.crosshairProps,...L};return Co(V,{componentName:"XYCustomChart",width:P,height:W,children:Co(l,{ref:H,...$})})});Lo.displayName="XYCustomChart";export{xe as Scatterplot,He as ConnectedScatterplot,Me as LineChart,Ye as AreaChart,ot as DifferenceChart,st as StackedAreaChart,mt as Heatmap,vt as BubbleChart,Dt as ScatterplotMatrix,qt as MinimapChart,Zt as DEFAULT_QUADRANTS,io as QuadrantChart,go as MultiAxisLineChart,wo as CandlestickChart,Lo as XYCustomChart};