@react-magma/charts 12.0.0-next.2 → 12.0.0-next.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 (28) hide show
  1. package/dist/charts +11 -8
  2. package/dist/charts.js +1 -1
  3. package/dist/charts.js.map +1 -1
  4. package/dist/charts.map +1 -1
  5. package/dist/charts.modern.module.js +1 -1
  6. package/dist/charts.modern.module.js.map +1 -1
  7. package/dist/charts.umd.js +1 -1
  8. package/dist/charts.umd.js.map +1 -1
  9. package/dist/components/CarbonChart/CarbonChartArea.stories.d.ts +1 -0
  10. package/dist/components/CarbonChart/CarbonChartBoxplot.stories.d.ts +1 -0
  11. package/dist/components/CarbonChart/CarbonChartBubble.stories.d.ts +5 -0
  12. package/dist/components/CarbonChart/CarbonChartCombo.stories.d.ts +11 -0
  13. package/dist/components/CarbonChart/CarbonChartGauge.stories.d.ts +1 -0
  14. package/dist/components/CarbonChart/CarbonChartHistogram.stories.d.ts +2 -0
  15. package/dist/components/CarbonChart/CarbonChartMeter.stories.d.ts +4 -0
  16. package/dist/components/CarbonChart/CarbonChartRadar.stories.d.ts +3 -0
  17. package/dist/components/CarbonChart/CarbonChartScatter.stories.d.ts +5 -0
  18. package/package.json +1 -1
  19. package/src/components/CarbonChart/CarbonChart.tsx +26 -4
  20. package/src/components/CarbonChart/CarbonChartArea.stories.tsx +101 -0
  21. package/src/components/CarbonChart/CarbonChartBoxplot.stories.tsx +120 -122
  22. package/src/components/CarbonChart/CarbonChartBubble.stories.tsx +475 -477
  23. package/src/components/CarbonChart/CarbonChartCombo.stories.tsx +1282 -1284
  24. package/src/components/CarbonChart/CarbonChartGauge.stories.tsx +24 -26
  25. package/src/components/CarbonChart/CarbonChartHistogram.stories.tsx +593 -595
  26. package/src/components/CarbonChart/CarbonChartMeter.stories.tsx +147 -149
  27. package/src/components/CarbonChart/CarbonChartRadar.stories.tsx +375 -377
  28. package/src/components/CarbonChart/CarbonChartScatter.stories.tsx +363 -365
package/dist/charts CHANGED
@@ -1,4 +1,4 @@
1
- import*as e from"react";import{css as t}from"@emotion/react";import{Card as n,Datagrid as r,Spinner as o,useForceUpdate as a,StyledTooltip as i,ThemeContext as s,TooltipPosition as l,TooltipArrow as c,Checkbox as d,I18nContext as p,styled as u,Paragraph as f,TabsContainer as h,TabPanel as m,useDescendants as g,TypographyVisualStyle as b,Tabs as v,Tab as x,Tooltip as y,IconButton as k,ButtonVariant as w,Announce as I,TabPanelsContainer as S,useIsInverse as $}from"react-magma-dom";import{KeyboardIcon as P}from"react-magma-icons";import{jsx as L,jsxs as z,Fragment as C}from"react/jsx-runtime";import F from"@emotion/styled";import{LineSegment as E,Point as A,VictoryChart as j,VictoryVoronoiContainer as R,VictoryTooltip as O,VictoryAxis as W,VictoryLine as D,VictoryScatter as T}from"victory";import{AreaChart as H,StackedAreaChart as q,SimpleBarChart as _,GroupedBarChart as M,StackedBarChart as G,DonutChart as B,LineChart as K,LollipopChart as V,PieChart as Y,RadarChart as N,BoxplotChart as U,BubbleChart as X,BulletChart as Z,GaugeChart as J,HistogramChart as Q,MeterChart as ee,ScatterChart as te,ComboChart as ne}from"@carbon/charts-react";function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(null,arguments)}function oe(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function ae(e){return e.toLowerCase().replace(/[^a-z 0-9]/gi,"").replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>0===t?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"")}const ie=t=>{const{data:a=[],xData:{keyValue:i,label:s,tickFormat:l,tickValues:c},yData:{keyValue:d,tickFormat:p}}=t,[u,f]=e.useState({columns:[],rows:[]});return e.useEffect(()=>{f(function(){const e=ae(i||s||"x"),t=a.reduce((e,{data:t})=>(t.forEach(t=>{const n=t.x||i&&t[i];!e.includes(n)&&e.push(n)}),e),[]),n={columns:t.length>0?[{field:e,header:s||i||"X",isRowHeader:!0}]:[],rows:t.reduce((n,r,o)=>{const a=c&&"number"==typeof r&&c.length===t.length?l&&"function"==typeof l?l(c[r-1]):c[r-1]:l&&Array.isArray(l)?l[r-1]:l&&"function"==typeof l?l(r):r;return n.push({[e]:a,id:o}),n},[])};return a.reduce((e,t)=>{const{name:r,data:o}=t,a=ae(r);return e.columns.push({field:a,header:r}),o.forEach((t,r)=>{const o=t.y||0===t.y?t.y:d&&t[d];e.rows[r]=re({},e.rows[r],{id:n.rows.length>0?r+1:r,[a]:p&&"function"==typeof p?p(o):o})}),e},n)}())},[a]),/*#__PURE__*/L(n,{children:u.rows.length>0?/*#__PURE__*/L(r,{hasPagination:!1,columns:u.columns,rows:u.rows}):/*#__PURE__*/L(o,{})})},se=["events"],le=e=>{let{events:t}=e,n=oe(e,se);/*#__PURE__*/return z("g",{children:[/*#__PURE__*/L(E,re({},n,{events:t,style:{strokeWidth:"50px",stroke:"transparent"}})),/*#__PURE__*/L(E,re({},n,{events:t,style:{strokeWidth:"1px",stroke:"black",strokeOpacity:"0.2"}}))]})},ce=["datum","index","lineIndex","pointRefArray","registerPoint","unregisterPoint"],de=["lineIndex","pointRefArray","pointIndex","registerPoint","unregisterPoint"],pe=e=>{const{datum:t,index:n,lineIndex:r,pointRefArray:o,registerPoint:a,unregisterPoint:i}=e,s=oe(e,ce);/*#__PURE__*/return L(A,re({},s,{ariaLabel:t.label,pathComponent:/*#__PURE__*/L(ue,{lineIndex:r,pointIndex:n,pointRefArray:o,registerPoint:a,unregisterPoint:i}),role:"button",tabIndex:0}))},ue=t=>{const{lineIndex:n,pointRefArray:r,pointIndex:o,registerPoint:i,unregisterPoint:s}=t,l=oe(t,de),c=a(),d=e.useRef(null);return e.useEffect(()=>(i(r,d),c(),()=>s(r,d)),[]),/*#__PURE__*/L("path",re({ref:d,"data-line-index":n,"data-point-index":o},l))};let fe,he,me=e=>e;const ge=F(i)(fe||(fe=me`
1
+ import*as e from"react";import{css as t}from"@emotion/react";import{Card as n,Datagrid as r,Spinner as o,useForceUpdate as a,StyledTooltip as i,ThemeContext as s,TooltipPosition as l,TooltipArrow as c,Checkbox as d,I18nContext as p,styled as u,Paragraph as f,TabsContainer as h,TabPanel as m,useDescendants as g,TypographyVisualStyle as b,Tabs as v,Tab as x,Tooltip as y,IconButton as k,ButtonVariant as w,Announce as I,TabPanelsContainer as S,useIsInverse as $}from"react-magma-dom";import{KeyboardIcon as P}from"react-magma-icons";import{jsx as L,jsxs as z,Fragment as F}from"react/jsx-runtime";import C from"@emotion/styled";import{LineSegment as E,Point as A,VictoryChart as j,VictoryVoronoiContainer as R,VictoryTooltip as O,VictoryAxis as W,VictoryLine as T,VictoryScatter as D}from"victory";import{AreaChart as H,StackedAreaChart as q,SimpleBarChart as _,GroupedBarChart as M,StackedBarChart as G,DonutChart as B,LineChart as K,LollipopChart as V,PieChart as Y,RadarChart as N,BoxplotChart as U,BubbleChart as X,BulletChart as Z,GaugeChart as J,HistogramChart as Q,MeterChart as ee,ScatterChart as te,ComboChart as ne}from"@carbon/charts-react";function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},re.apply(null,arguments)}function oe(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function ae(e){return e.toLowerCase().replace(/[^a-z 0-9]/gi,"").replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>0===t?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,"")}const ie=t=>{const{data:a=[],xData:{keyValue:i,label:s,tickFormat:l,tickValues:c},yData:{keyValue:d,tickFormat:p}}=t,[u,f]=e.useState({columns:[],rows:[]});return e.useEffect(()=>{f(function(){const e=ae(i||s||"x"),t=a.reduce((e,{data:t})=>(t.forEach(t=>{const n=t.x||i&&t[i];!e.includes(n)&&e.push(n)}),e),[]),n={columns:t.length>0?[{field:e,header:s||i||"X",isRowHeader:!0}]:[],rows:t.reduce((n,r,o)=>{const a=c&&"number"==typeof r&&c.length===t.length?l&&"function"==typeof l?l(c[r-1]):c[r-1]:l&&Array.isArray(l)?l[r-1]:l&&"function"==typeof l?l(r):r;return n.push({[e]:a,id:o}),n},[])};return a.reduce((e,t)=>{const{name:r,data:o}=t,a=ae(r);return e.columns.push({field:a,header:r}),o.forEach((t,r)=>{const o=t.y||0===t.y?t.y:d&&t[d];e.rows[r]=re({},e.rows[r],{id:n.rows.length>0?r+1:r,[a]:p&&"function"==typeof p?p(o):o})}),e},n)}())},[a]),/*#__PURE__*/L(n,{children:u.rows.length>0?/*#__PURE__*/L(r,{hasPagination:!1,columns:u.columns,rows:u.rows}):/*#__PURE__*/L(o,{})})},se=["events"],le=e=>{let{events:t}=e,n=oe(e,se);/*#__PURE__*/return z("g",{children:[/*#__PURE__*/L(E,re({},n,{events:t,style:{strokeWidth:"50px",stroke:"transparent"}})),/*#__PURE__*/L(E,re({},n,{events:t,style:{strokeWidth:"1px",stroke:"black",strokeOpacity:"0.2"}}))]})},ce=["datum","index","lineIndex","pointRefArray","registerPoint","unregisterPoint"],de=["lineIndex","pointRefArray","pointIndex","registerPoint","unregisterPoint"],pe=e=>{const{datum:t,index:n,lineIndex:r,pointRefArray:o,registerPoint:a,unregisterPoint:i}=e,s=oe(e,ce);/*#__PURE__*/return L(A,re({},s,{ariaLabel:t.label,pathComponent:/*#__PURE__*/L(ue,{lineIndex:r,pointIndex:n,pointRefArray:o,registerPoint:a,unregisterPoint:i}),role:"button",tabIndex:0}))},ue=t=>{const{lineIndex:n,pointRefArray:r,pointIndex:o,registerPoint:i,unregisterPoint:s}=t,l=oe(t,de),c=a(),d=e.useRef(null);return e.useEffect(()=>(i(r,d),c(),()=>s(r,d)),[]),/*#__PURE__*/L("path",re({ref:d,"data-line-index":n,"data-point-index":o},l))};let fe,he,me=e=>e;const ge=C(i)(fe||(fe=me`
2
2
  background: ${0};
3
3
  border: 1px solid ${0};
4
4
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
@@ -18,25 +18,25 @@ import*as e from"react";import{css as t}from"@emotion/react";import{Card as n,Da
18
18
  margin-bottom: 0;
19
19
  }
20
20
  }
21
- `),e=>e.theme.colors.neutral100,e=>e.theme.colors.neutral300,e=>e.theme.colors.neutral,e=>e.theme.typeScale.size02.fontSize,e=>e.theme.typeScale.size02.lineHeight),be=F.span(he||(he=me`
21
+ `),e=>e.theme.colors.neutral100,e=>e.theme.colors.neutral300,e=>e.theme.colors.neutral,e=>e.theme.typeScale.size02.fontSize,e=>e.theme.typeScale.size02.lineHeight),be=C.span(he||(he=me`
22
22
  background: ${0};
23
23
  border: ${0};
24
24
  border-radius: 4px;
25
25
  height: 20px;
26
26
  width: 20px;
27
27
  margin-right: 8px;
28
- `),e=>e.color,e=>e.color?"none":"3px solid black"),ve=t=>{const{datum:n,index:r,showTooltip:o,x:a,y:i}=t,d=e.useContext(s);return o===`${r}-${n.index}`?/*#__PURE__*/L("g",{style:{pointerEvents:"none"},children:/*#__PURE__*/L("foreignObject",{x:a,y:i,width:"275",height:"100%",children:/*#__PURE__*/z(ge,{position:l.top,role:"tooltip",theme:d,children:[/*#__PURE__*/z("div",{children:[/*#__PURE__*/L(be,{color:d.iterableColors[r]}),/*#__PURE__*/L("span",{children:n.label})]}),/*#__PURE__*/L(c,{theme:d})]})})}):null},xe=t=>{const{x:n,y:r,activePoints:o,hiddenData:a,dataLength:i}=t,d=Array.from(Array(i-0),(e,t)=>t+0).filter(e=>!a.includes(e)),p=e.useContext(s);/*#__PURE__*/return L("g",{style:{pointerEvents:"none"},children:/*#__PURE__*/L("foreignObject",{x:n,y:r,width:"275",height:"100%",children:/*#__PURE__*/z(ge,{"data-testid":"axis-tooltip",position:l.top,role:"tooltip",theme:p,children:[o.map((e,t)=>/*#__PURE__*/z("div",{children:[/*#__PURE__*/L(be,{color:p.iterableColors[d[t]]}),/*#__PURE__*/L("span",{children:e.label})]},t)),/*#__PURE__*/L(c,{theme:p})]})})})},ye=["children","color","dataIndex","isHidden","onClick","name","focusCurrentLine","resetLineFocus"],ke=/*#__PURE__*/e.forwardRef((t,n)=>{const{color:r,dataIndex:o,isHidden:a,onClick:i,name:l,focusCurrentLine:c,resetLineFocus:p}=t,u=oe(t,ye);function f(){a||c&&"function"==typeof c&&c(o)}const h=e.useContext(s);/*#__PURE__*/return L("div",{style:{display:"inline-flex"},onMouseEnter:f,onMouseLeave:p,children:/*#__PURE__*/L(d,re({checked:!a,color:r,containerStyle:{alignItems:"center",border:"0",boxShadow:"0 0 0",color:h.colors.neutral,display:"inline-flex",margin:"0 36px 20px 0",padding:"0"},inputStyle:{border:r?"none":`2px solid ${h.colors.neutral800}`,borderRadius:"4px"},labelText:l,onBlur:p,onClick:function(){i&&"function"==typeof i&&i(o),a||p&&"function"==typeof p&&p()},onFocus:f,ref:n,theme:h},u))})}),we=["#00507A","#8F0033","#B84900","#255200","#711E6E","#005249"],Ie="#8F8F8F",Se="#3F3F3F",$e="pink",Pe={width:350,height:350,padding:50},Le={fontFamily:'"Work Sans",Helvetica,sans-serif',fontSize:12,letterSpacing:"normal",padding:8,fill:Se,stroke:"transparent",strokeWidth:0},ze=re({textAnchor:"middle"},Le),Ce="round",Fe="round",Ee={area:re({style:{data:{fill:$e},labels:Le}},Pe),axis:re({style:{axis:{fill:"transparent",stroke:Ie,strokeWidth:1,strokeLinecap:Ce,strokeLinejoin:Fe},axisLabel:re({},ze,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"#dfdfdf",strokeLinecap:Ce,strokeLinejoin:Fe,pointerEvents:"painted"},ticks:{fill:"transparent",size:0,stroke:Ie,strokeWidth:0,strokeLinecap:Ce,strokeLinejoin:Fe},tickLabels:re({},Le,{fill:Se})}},Pe),polarDependentAxis:{style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}},bar:re({style:{data:{fill:Se,padding:8,strokeWidth:0},labels:Le}},Pe),boxplot:re({style:{max:{padding:8,stroke:Se,strokeWidth:1},maxLabels:re({},Le,{padding:3}),median:{padding:8,stroke:Se,strokeWidth:1},medianLabels:re({},Le,{padding:3}),min:{padding:8,stroke:Se,strokeWidth:1},minLabels:re({},Le,{padding:3}),q1:{padding:8,fill:Se},q1Labels:re({},Le,{padding:3}),q3:{padding:8,fill:Se},q3Labels:re({},Le,{padding:3})},boxWidth:20},Pe),candlestick:re({style:{data:{stroke:Se},labels:re({},Le,{padding:5})},candleColors:{positive:"#ffffff",negative:Se}},Pe),chart:Pe,errorbar:re({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Se,strokeWidth:2},labels:Le}},Pe),group:re({colorScale:we},Pe),histogram:re({style:{data:{fill:Se,stroke:$e,strokeWidth:2},labels:Le}},Pe),legend:{colorScale:we,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Le,title:re({},Le,{padding:5})}},line:re({style:{data:{fill:"transparent",opacity:1,stroke:Se,strokeWidth:2},labels:Le}},Pe),pie:re({colorScale:we,style:{data:{padding:8,stroke:"#DFDFDF",strokeWidth:1},labels:re({},Le,{padding:20})}},Pe),scatter:re({style:{data:{fill:Se,opacity:1,stroke:"transparent",strokeWidth:0},labels:Le}},Pe),stack:re({colorScale:we},Pe),tooltip:{style:re({},Le,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:$e,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:re({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:re({},Le,{padding:5,pointerEvents:"none"}),flyout:{stroke:$e,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Pe)},Ae=["axisLabel","tickLabels"],je=["style"],Re=["axisLabel","tickLabels"],Oe=["style"];let We,De,Te,He,qe=e=>e;const _e=F.div(We||(We=qe`
28
+ `),e=>e.color,e=>e.color?"none":"3px solid black"),ve=t=>{const{datum:n,index:r,showTooltip:o,x:a,y:i}=t,d=e.useContext(s);return o===`${r}-${n.index}`?/*#__PURE__*/L("g",{style:{pointerEvents:"none"},children:/*#__PURE__*/L("foreignObject",{x:a,y:i,width:"275",height:"100%",children:/*#__PURE__*/z(ge,{position:l.top,role:"tooltip",theme:d,children:[/*#__PURE__*/z("div",{children:[/*#__PURE__*/L(be,{color:d.iterableColors[r]}),/*#__PURE__*/L("span",{children:n.label})]}),/*#__PURE__*/L(c,{theme:d})]})})}):null},xe=t=>{const{x:n,y:r,activePoints:o,hiddenData:a,dataLength:i}=t,d=Array.from(Array(i-0),(e,t)=>t+0).filter(e=>!a.includes(e)),p=e.useContext(s);/*#__PURE__*/return L("g",{style:{pointerEvents:"none"},children:/*#__PURE__*/L("foreignObject",{x:n,y:r,width:"275",height:"100%",children:/*#__PURE__*/z(ge,{"data-testid":"axis-tooltip",position:l.top,role:"tooltip",theme:p,children:[o.map((e,t)=>/*#__PURE__*/z("div",{children:[/*#__PURE__*/L(be,{color:p.iterableColors[d[t]]}),/*#__PURE__*/L("span",{children:e.label})]},t)),/*#__PURE__*/L(c,{theme:p})]})})})},ye=["children","color","dataIndex","isHidden","onClick","name","focusCurrentLine","resetLineFocus"],ke=/*#__PURE__*/e.forwardRef((t,n)=>{const{color:r,dataIndex:o,isHidden:a,onClick:i,name:l,focusCurrentLine:c,resetLineFocus:p}=t,u=oe(t,ye);function f(){a||c&&"function"==typeof c&&c(o)}const h=e.useContext(s);/*#__PURE__*/return L("div",{style:{display:"inline-flex"},onMouseEnter:f,onMouseLeave:p,children:/*#__PURE__*/L(d,re({checked:!a,color:r,containerStyle:{alignItems:"center",border:"0",boxShadow:"0 0 0",color:h.colors.neutral,display:"inline-flex",margin:"0 36px 20px 0",padding:"0"},inputStyle:{border:r?"none":`2px solid ${h.colors.neutral800}`,borderRadius:"4px"},labelText:l,onBlur:p,onClick:function(){i&&"function"==typeof i&&i(o),a||p&&"function"==typeof p&&p()},onFocus:f,ref:n,theme:h},u))})}),we=["#00507A","#8F0033","#B84900","#255200","#711E6E","#005249"],Ie="#8F8F8F",Se="#3F3F3F",$e="pink",Pe={width:350,height:350,padding:50},Le={fontFamily:'"Work Sans",Helvetica,sans-serif',fontSize:12,letterSpacing:"normal",padding:8,fill:Se,stroke:"transparent",strokeWidth:0},ze=re({textAnchor:"middle"},Le),Fe="round",Ce="round",Ee={area:re({style:{data:{fill:$e},labels:Le}},Pe),axis:re({style:{axis:{fill:"transparent",stroke:Ie,strokeWidth:1,strokeLinecap:Fe,strokeLinejoin:Ce},axisLabel:re({},ze,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"#dfdfdf",strokeLinecap:Fe,strokeLinejoin:Ce,pointerEvents:"painted"},ticks:{fill:"transparent",size:0,stroke:Ie,strokeWidth:0,strokeLinecap:Fe,strokeLinejoin:Ce},tickLabels:re({},Le,{fill:Se})}},Pe),polarDependentAxis:{style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}},bar:re({style:{data:{fill:Se,padding:8,strokeWidth:0},labels:Le}},Pe),boxplot:re({style:{max:{padding:8,stroke:Se,strokeWidth:1},maxLabels:re({},Le,{padding:3}),median:{padding:8,stroke:Se,strokeWidth:1},medianLabels:re({},Le,{padding:3}),min:{padding:8,stroke:Se,strokeWidth:1},minLabels:re({},Le,{padding:3}),q1:{padding:8,fill:Se},q1Labels:re({},Le,{padding:3}),q3:{padding:8,fill:Se},q3Labels:re({},Le,{padding:3})},boxWidth:20},Pe),candlestick:re({style:{data:{stroke:Se},labels:re({},Le,{padding:5})},candleColors:{positive:"#ffffff",negative:Se}},Pe),chart:Pe,errorbar:re({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Se,strokeWidth:2},labels:Le}},Pe),group:re({colorScale:we},Pe),histogram:re({style:{data:{fill:Se,stroke:$e,strokeWidth:2},labels:Le}},Pe),legend:{colorScale:we,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Le,title:re({},Le,{padding:5})}},line:re({style:{data:{fill:"transparent",opacity:1,stroke:Se,strokeWidth:2},labels:Le}},Pe),pie:re({colorScale:we,style:{data:{padding:8,stroke:"#DFDFDF",strokeWidth:1},labels:re({},Le,{padding:20})}},Pe),scatter:re({style:{data:{fill:Se,opacity:1,stroke:"transparent",strokeWidth:0},labels:Le}},Pe),stack:re({colorScale:we},Pe),tooltip:{style:re({},Le,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:$e,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:re({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:re({},Le,{padding:5,pointerEvents:"none"}),flyout:{stroke:$e,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Pe)},Ae=["axisLabel","tickLabels"],je=["style"],Re=["axisLabel","tickLabels"],Oe=["style"];let We,Te,De,He,qe=e=>e;const _e=C.div(We||(We=qe`
29
29
  max-height: 600px;
30
30
  max-width: 800px;
31
31
  svg {
32
32
  overflow: visible;
33
33
  }
34
- `)),Me=F.div(De||(De=qe``)),Ge=F.div(Te||(Te=qe`
34
+ `)),Me=C.div(Te||(Te=qe``)),Ge=C.div(De||(De=qe`
35
35
  padding-bottom: 24px;
36
- `)),Be=F.p(He||(He=qe`
36
+ `)),Be=C.p(He||(He=qe`
37
37
  color: ${0};
38
38
  font-size: ${0};
39
- `),e=>e.theme.colors.neutral,e=>e.theme.typeScale.size02.fontSize);function Ke(t){const{componentProps:{chart:n={},line:r={},scatter:o={},xAxis:{style:{axisLabel:a,tickLabels:i}={}}={style:{}},yAxis:{style:{axisLabel:l,tickLabels:c}={}}={style:{}}}={},data:d=[],lastFocusedScatterPoint:u,pointRefArray:f,registerPoint:h,unregisterPoint:m,tabRef:g,x:b,y:v}=t,x=oe(t.componentProps.xAxis.style,Ae),y=oe(t.componentProps.xAxis,je),k=oe(t.componentProps.yAxis.style,Re),w=oe(t.componentProps.yAxis,Oe),I=e.useContext(s),S=e.useContext(p),[$,P]=e.useState([]),[F,E]=e.useState(800),[A,H]=e.useState(null),[q,_]=e.useState(null),[M,G]=e.useState(!0),[B,K]=e.useState(!1),V=e.useRef(null),Y=e.useRef(null);e.useEffect(()=>(Z(),window.addEventListener("resize",Z),window.addEventListener("keydown",J),()=>{window.removeEventListener("resize",Z),window.removeEventListener("keydown",J)}),[]),e.useEffect(()=>(window.addEventListener("mousemove",Q),()=>{window.removeEventListener("mousemove",Q)}),[q]);const N=d.map((e,t)=>`scatter-${t}`),U=re({tickLabels:re({color:"#3f3f3f",fontSize:12},i),axisLabel:re({color:"#3f3f3f",padding:44,fontSize:14,fontWeight:"bold"},a)},x),X=re({tickLabels:re({fontSize:12},c),axisLabel:re({color:"#3f3f3f",padding:64,fontSize:14,fontWeight:"bold"},l)},k);function Z(){V.current&&E(V.current.clientWidth)}function J(e){"Escape"===e.key&&(_(null),G(!1))}function Q(){!q&&G(!0)}function ee(e){return null===A||A===e?1:.1}function te(e){$.includes(e)?P($.filter(t=>t!==e)):P($.concat([e]))}function ne(e){H(e)}function ae(){H(null)}const ie=(e,t)=>{if(t.current){const n=parseInt(t.current.getAttribute("data-line-index"),10);!e.includes(n)&&e.push(parseInt(t.current.getAttribute("data-line-index"),10))}return e},se=e=>{const t=parseInt(e.current.getAttribute("data-line-index"),10),n=parseInt(e.current.getAttribute("data-point-index"),10),r=f.current.reduce(ie,[]);return{currentLineIndex:t,currentPointIndex:n,lineIndexes:r,lowestLineIndex:r[0],highestLineIndex:r[r.length-1]}},ce=(e,t)=>n=>n.current&&parseInt(n.current.getAttribute("data-line-index"),10)===e&&parseInt(n.current.getAttribute("data-point-index"),10)===t;function de(e){const{key:t,shiftKey:n}=e;"Tab"===t&&n&&u&&u.current&&f.current.find(e=>e.current===u.current)&&(e.preventDefault(),u.current.focus())}/*#__PURE__*/return z(_e,{ref:V,children:[/*#__PURE__*/L(Me,{onKeyDown:function(e){const{key:t,shiftKey:n}=e;switch(t){case"Tab":e.preventDefault(),u.current=f.current.find(e=>e.current===document.activeElement).current,n?g.current&&g.current.focus():Y.current&&Y.current.focus();break;case"ArrowRight":{const e=f.current.findIndex(e=>e.current===document.activeElement);var r;void 0!==e&&(e===f.current.length-1?null==(r=f.current[0])||null==(r=r.current)||r.focus():f.current[e+1].current.focus());break}case"ArrowLeft":{const e=f.current.findIndex(e=>e.current===document.activeElement);void 0!==e&&(0===e?f.current[f.current.length-1].current.focus():f.current[e-1].current.focus());break}case"ArrowUp":{e.preventDefault();const t=f.current.find(e=>e.current===document.activeElement);if(t&&t.current){const{currentLineIndex:e,currentPointIndex:n,lineIndexes:r,lowestLineIndex:o,highestLineIndex:a}=se(t);if(e===o)f.current.find(ce(a,n)).current.focus();else{const t=r[r.indexOf(e)-1];f.current.find(ce(t,n)).current.focus()}}break}case"ArrowDown":{e.preventDefault();const t=f.current.find(e=>e.current===document.activeElement);if(t&&t.current){const{currentLineIndex:e,currentPointIndex:n,lineIndexes:r,lowestLineIndex:o,highestLineIndex:a}=se(t);if(e===a)f.current.find(ce(o,n)).current.focus();else{const t=r[r.indexOf(e)+1];f.current.find(ce(t,n)).current.focus()}}break}}},children:/*#__PURE__*/z(j,re({domainPadding:32,height:400,padding:{top:0,left:80,right:0,bottom:62},theme:Ee,width:F,containerComponent:/*#__PURE__*/L(R,{name:"xAxisGroupLabel",voronoiBlacklist:N,voronoiDimension:"x",labels:B&&M?()=>" ":void 0,labelComponent:M?/*#__PURE__*/L(O,{flyoutComponent:/*#__PURE__*/L(xe,{dataLength:d.length,hiddenData:$})}):void 0,role:"presentation",voronoiPadding:32})},n,{children:[/*#__PURE__*/L(W,re({},w,{dependentAxis:!0,style:X})),d.map(({data:e},t)=>!$.includes(t)&&/*#__PURE__*/L(D,re({style:{data:{opacity:ee(t),stroke:I.iterableColors[t],strokeWidth:"3"},parent:{border:I.colors.neutral400}},data:e,labelComponent:/*#__PURE__*/L(C,{}),x:b,y:v},r),`line${t}`)),/*#__PURE__*/L(W,re({},y,{style:U,gridComponent:/*#__PURE__*/L(le,{events:{onMouseEnter:()=>K(!0),onMouseLeave:()=>K(!1)}})})),d.map(({data:e},t)=>!$.includes(t)&&/*#__PURE__*/L(T,re({name:`scatter-${t}`,events:[{target:"data",eventHandlers:{onBlur:()=>(G(!0),_(null),[{target:"labels",mutation:()=>({active:void 0})}]),onClick:()=>[{target:"labels",mutation:e=>(_(`${e.datum.lineIndex}-${e.datum.index}`),{active:!0})}],onFocus:()=>(G(!1),[{target:"labels",mutation:e=>(_(`${e.datum.lineIndex}-${e.datum.index}`),{active:!0})}]),onMouseEnter:()=>(G(!1),[{target:"labels",mutation:e=>(_(`${e.datum.lineIndex}-${e.datum.index}`),{active:!0})}]),onMouseLeave:()=>{_(null),G(!0)}}}],style:{data:{fill:I.colors.neutral100,opacity:ee(t),stroke:I.iterableColors[t],strokeWidth:2}},size:5,data:e.map((e,n)=>re({index:n,lineIndex:t},e)),dataComponent:/*#__PURE__*/L(pe,{lineIndex:t,pointRefArray:f,registerPoint:h,unregisterPoint:m}),labels:()=>"",labelComponent:/*#__PURE__*/L(O,{text:"",flyoutComponent:/*#__PURE__*/L(ve,{index:t,showTooltip:q})}),x:b,y:v},o),`scatter${t}`))]}))}),/*#__PURE__*/z(Ge,{children:[/*#__PURE__*/L(Be,{theme:I,children:S.charts.line.dataLegendsLabel}),d.map(({name:e},t)=>{const n=S.charts.line.legendButtonAriaLabel.replace(/\{name\}/g,e);/*#__PURE__*/return L(ke,{"aria-label":n,color:I.iterableColors[t],dataIndex:t,isHidden:$.includes(t),name:e,onClick:te,onKeyDown:0===t?de:void 0,focusCurrentLine:ne,ref:0===t?Y:void 0,resetLineFocus:ae},t)})]})]})}const Ve=["description","title","testId","type"];let Ye,Ne,Ue,Xe,Ze,Je,Qe=e=>e;const et=u.span(Ye||(Ye=Qe`
39
+ `),e=>e.theme.colors.neutral,e=>e.theme.typeScale.size02.fontSize);function Ke(t){const{componentProps:{chart:n={},line:r={},scatter:o={},xAxis:{style:{axisLabel:a,tickLabels:i}={}}={style:{}},yAxis:{style:{axisLabel:l,tickLabels:c}={}}={style:{}}}={},data:d=[],lastFocusedScatterPoint:u,pointRefArray:f,registerPoint:h,unregisterPoint:m,tabRef:g,x:b,y:v}=t,x=oe(t.componentProps.xAxis.style,Ae),y=oe(t.componentProps.xAxis,je),k=oe(t.componentProps.yAxis.style,Re),w=oe(t.componentProps.yAxis,Oe),I=e.useContext(s),S=e.useContext(p),[$,P]=e.useState([]),[C,E]=e.useState(800),[A,H]=e.useState(null),[q,_]=e.useState(null),[M,G]=e.useState(!0),[B,K]=e.useState(!1),V=e.useRef(null),Y=e.useRef(null);e.useEffect(()=>(Z(),window.addEventListener("resize",Z),window.addEventListener("keydown",J),()=>{window.removeEventListener("resize",Z),window.removeEventListener("keydown",J)}),[]),e.useEffect(()=>(window.addEventListener("mousemove",Q),()=>{window.removeEventListener("mousemove",Q)}),[q]);const N=d.map((e,t)=>`scatter-${t}`),U=re({tickLabels:re({color:"#3f3f3f",fontSize:12},i),axisLabel:re({color:"#3f3f3f",padding:44,fontSize:14,fontWeight:"bold"},a)},x),X=re({tickLabels:re({fontSize:12},c),axisLabel:re({color:"#3f3f3f",padding:64,fontSize:14,fontWeight:"bold"},l)},k);function Z(){V.current&&E(V.current.clientWidth)}function J(e){"Escape"===e.key&&(_(null),G(!1))}function Q(){!q&&G(!0)}function ee(e){return null===A||A===e?1:.1}function te(e){$.includes(e)?P($.filter(t=>t!==e)):P($.concat([e]))}function ne(e){H(e)}function ae(){H(null)}const ie=(e,t)=>{if(t.current){const n=parseInt(t.current.getAttribute("data-line-index"),10);!e.includes(n)&&e.push(parseInt(t.current.getAttribute("data-line-index"),10))}return e},se=e=>{const t=parseInt(e.current.getAttribute("data-line-index"),10),n=parseInt(e.current.getAttribute("data-point-index"),10),r=f.current.reduce(ie,[]);return{currentLineIndex:t,currentPointIndex:n,lineIndexes:r,lowestLineIndex:r[0],highestLineIndex:r[r.length-1]}},ce=(e,t)=>n=>n.current&&parseInt(n.current.getAttribute("data-line-index"),10)===e&&parseInt(n.current.getAttribute("data-point-index"),10)===t;function de(e){const{key:t,shiftKey:n}=e;"Tab"===t&&n&&u&&u.current&&f.current.find(e=>e.current===u.current)&&(e.preventDefault(),u.current.focus())}/*#__PURE__*/return z(_e,{ref:V,children:[/*#__PURE__*/L(Me,{onKeyDown:function(e){const{key:t,shiftKey:n}=e;switch(t){case"Tab":e.preventDefault(),u.current=f.current.find(e=>e.current===document.activeElement).current,n?g.current&&g.current.focus():Y.current&&Y.current.focus();break;case"ArrowRight":{const e=f.current.findIndex(e=>e.current===document.activeElement);var r;void 0!==e&&(e===f.current.length-1?null==(r=f.current[0])||null==(r=r.current)||r.focus():f.current[e+1].current.focus());break}case"ArrowLeft":{const e=f.current.findIndex(e=>e.current===document.activeElement);void 0!==e&&(0===e?f.current[f.current.length-1].current.focus():f.current[e-1].current.focus());break}case"ArrowUp":{e.preventDefault();const t=f.current.find(e=>e.current===document.activeElement);if(t&&t.current){const{currentLineIndex:e,currentPointIndex:n,lineIndexes:r,lowestLineIndex:o,highestLineIndex:a}=se(t);if(e===o)f.current.find(ce(a,n)).current.focus();else{const t=r[r.indexOf(e)-1];f.current.find(ce(t,n)).current.focus()}}break}case"ArrowDown":{e.preventDefault();const t=f.current.find(e=>e.current===document.activeElement);if(t&&t.current){const{currentLineIndex:e,currentPointIndex:n,lineIndexes:r,lowestLineIndex:o,highestLineIndex:a}=se(t);if(e===a)f.current.find(ce(o,n)).current.focus();else{const t=r[r.indexOf(e)+1];f.current.find(ce(t,n)).current.focus()}}break}}},children:/*#__PURE__*/z(j,re({domainPadding:32,height:400,padding:{top:0,left:80,right:0,bottom:62},theme:Ee,width:C,containerComponent:/*#__PURE__*/L(R,{name:"xAxisGroupLabel",voronoiBlacklist:N,voronoiDimension:"x",labels:B&&M?()=>" ":void 0,labelComponent:M?/*#__PURE__*/L(O,{flyoutComponent:/*#__PURE__*/L(xe,{dataLength:d.length,hiddenData:$})}):void 0,role:"presentation",voronoiPadding:32})},n,{children:[/*#__PURE__*/L(W,re({},w,{dependentAxis:!0,style:X})),d.map(({data:e},t)=>!$.includes(t)&&/*#__PURE__*/L(T,re({style:{data:{opacity:ee(t),stroke:I.iterableColors[t],strokeWidth:"3"},parent:{border:I.colors.neutral400}},data:e,labelComponent:/*#__PURE__*/L(F,{}),x:b,y:v},r),`line${t}`)),/*#__PURE__*/L(W,re({},y,{style:U,gridComponent:/*#__PURE__*/L(le,{events:{onMouseEnter:()=>K(!0),onMouseLeave:()=>K(!1)}})})),d.map(({data:e},t)=>!$.includes(t)&&/*#__PURE__*/L(D,re({name:`scatter-${t}`,events:[{target:"data",eventHandlers:{onBlur:()=>(G(!0),_(null),[{target:"labels",mutation:()=>({active:void 0})}]),onClick:()=>[{target:"labels",mutation:e=>(_(`${e.datum.lineIndex}-${e.datum.index}`),{active:!0})}],onFocus:()=>(G(!1),[{target:"labels",mutation:e=>(_(`${e.datum.lineIndex}-${e.datum.index}`),{active:!0})}]),onMouseEnter:()=>(G(!1),[{target:"labels",mutation:e=>(_(`${e.datum.lineIndex}-${e.datum.index}`),{active:!0})}]),onMouseLeave:()=>{_(null),G(!0)}}}],style:{data:{fill:I.colors.neutral100,opacity:ee(t),stroke:I.iterableColors[t],strokeWidth:2}},size:5,data:e.map((e,n)=>re({index:n,lineIndex:t},e)),dataComponent:/*#__PURE__*/L(pe,{lineIndex:t,pointRefArray:f,registerPoint:h,unregisterPoint:m}),labels:()=>"",labelComponent:/*#__PURE__*/L(O,{text:"",flyoutComponent:/*#__PURE__*/L(ve,{index:t,showTooltip:q})}),x:b,y:v},o),`scatter${t}`))]}))}),/*#__PURE__*/z(Ge,{children:[/*#__PURE__*/L(Be,{theme:I,children:S.charts.line.dataLegendsLabel}),d.map(({name:e},t)=>{const n=S.charts.line.legendButtonAriaLabel.replace(/\{name\}/g,e);/*#__PURE__*/return L(ke,{"aria-label":n,color:I.iterableColors[t],dataIndex:t,isHidden:$.includes(t),name:e,onClick:te,onKeyDown:0===t?de:void 0,focusCurrentLine:ne,ref:0===t?Y:void 0,resetLineFocus:ae},t)})]})]})}const Ve=["description","title","testId","type"];let Ye,Ne,Ue,Xe,Ze,Je,Qe=e=>e;const et=u.span(Ye||(Ye=Qe`
40
40
  color: ${0};
41
41
  font-size: ${0};
42
42
  font-weight: 600;
@@ -72,7 +72,7 @@ import*as e from"react";import{css as t}from"@emotion/react";import{Card as n,Da
72
72
  `),e=>e.isOpen?"block":"none",e=>e.theme.spaceScale.spacing02,e=>e.maxHeight?e.maxHeight:e.theme.dropdown.content.maxHeight,e=>e.isOpen?"1":"0",e=>e.theme.spaceScale.spacing05,e=>e.theme.spaceScale.spacing05,e=>e.width&&t(Je||(Je=Qe`
73
73
  white-space: normal;
74
74
  width: ${0};
75
- `),e.width));function at(t,n){var r,o,a;const{description:i,title:l,type:c}=t,d=oe(t,Ve),u=e.useRef(null),h=e.useRef(null),m=e.useContext(s),$=e.useContext(p),[C,F,E]=g(),[A,j]=e.useState(!1);/*#__PURE__*/return z("div",{ref:n,children:[/*#__PURE__*/L(et,{theme:m,children:l}),i&&/*#__PURE__*/L(tt,{theme:m,visualStyle:b.bodySmall,children:i}),/*#__PURE__*/z(nt,{theme:m,children:[/*#__PURE__*/z(v,{children:[/*#__PURE__*/L(x,{children:$.charts.line.chartTabLabel}),/*#__PURE__*/L(x,{children:$.charts.line.dataTabLabel}),/*#__PURE__*/z("div",{onBlur:function(){j(!1)},style:{display:"inline-block",marginLeft:"auto"},children:[/*#__PURE__*/L(y,{content:$.charts.line.keyboardInstructionsTooltip,ref:u,children:/*#__PURE__*/L(k,{"aria-controls":"keyboardInstructions","aria-label":$.charts.line.keyboardInstructionsTooltip,"aria-expanded":Boolean(A),icon:/*#__PURE__*/L(P,{}),onClick:function(){j(e=>!e)},onKeyDown:function(e){const{key:t,shiftKey:n}=e;switch(t){case"Escape":j(!1);break;case"Tab":!n&&h&&h.current&&C.current.find(e=>e.current===h.current)&&(e.preventDefault(),h.current.focus())}},variant:w.link})}),/*#__PURE__*/L(I,{children:/*#__PURE__*/z(ot,{id:"keyboardInstructions",isOpen:A,theme:m,width:"350px",children:[/*#__PURE__*/L(f,{visualStyle:b.headingXSmall,style:{margin:"0 0 16px"},children:$.charts.line.keyboardInstructionsHeader}),$.charts.line.keyboardInstructions]})})]})]}),/*#__PURE__*/z(S,{children:[/*#__PURE__*/L(rt,{theme:m,children:"line"===c&&/*#__PURE__*/L(Ke,re({},d,{lastFocusedScatterPoint:h,pointRefArray:C,registerPoint:F,tabRef:u,unregisterPoint:E}))}),/*#__PURE__*/L(rt,{theme:m,children:/*#__PURE__*/L(ie,{data:d.data,xData:{keyValue:d.x,label:null==(r=d.componentProps)||null==(r=r.xAxis)?void 0:r.label,tickFormat:null==(o=d.componentProps)||null==(o=o.xAxis)?void 0:o.tickFormat},yData:{keyValue:d.y,tickFormat:null==(a=d.componentProps)||null==(a=a.yAxis)?void 0:a.tickFormat}})})]})]})]})}const it=/*#__PURE__*/e.forwardRef(at);function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(null,arguments)}function lt(e,t){return lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lt(e,t)}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}function dt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dt=function(){return!!e})()}function pt(e){var t="function"==typeof Map?new Map:void 0;return pt=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(dt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&lt(o,n.prototype),o}(e,arguments,ct(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),lt(n,e)},pt(e)}var ut={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found.\n\n",75:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"};function ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0],a=[];for(r=1;r<t.length;r+=1)a.push(t[r]);return a.forEach(function(e){o=o.replace(/%[a-z]/,e)}),o}var ht=/*#__PURE__*/function(e){var t,n;function r(t){var n;if("production"===process.env.NODE_ENV)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this;else{for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];n=e.call(this,ft.apply(void 0,[ut[t]].concat(o)))||this}return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,lt(t,n),r}(/*#__PURE__*/pt(Error));function mt(e){return Math.round(255*e)}function gt(e,t,n){return mt(e)+","+mt(t)+","+mt(n)}function bt(e,t,n,r){if(void 0===r&&(r=gt),0===t)return r(n,n,n);var o=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,i=a*(1-Math.abs(o%2-1)),s=0,l=0,c=0;o>=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,c=i):o>=3&&o<4?(l=i,c=a):o>=4&&o<5?(s=i,c=a):o>=5&&o<6&&(s=a,c=i);var d=n-a/2;return r(s+d,l+d,c+d)}var vt={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},xt=/^#[a-fA-F0-9]{6}$/,yt=/^#[a-fA-F0-9]{8}$/,kt=/^#[a-fA-F0-9]{3}$/,wt=/^#[a-fA-F0-9]{4}$/,It=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,St=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,$t=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Pt=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Lt=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function zt(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function Ct(e,t,n){return function(){var r=n.concat(Array.prototype.slice.call(arguments));return r.length>=t?e.apply(this,r):Ct(e,t,r)}}function Ft(e){return Ct(e,e.length,[])}function Et(e,t){if("transparent"===t)return t;var n,r=function(e){if("string"!=typeof e)throw new ht(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return vt[t]?"#"+vt[t]:e}(e);if(t.match(xt))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(yt)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(kt))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(wt)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=It.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=St.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=$t.exec(t);if(i){var s="rgb("+bt(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=It.exec(s);if(!l)throw new ht(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=Pt.exec(t.substring(0,50));if(c){var d="rgb("+bt(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",p=It.exec(d);if(!p)throw new ht(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+c[4])}}throw new ht(5)}(t);return function(e){if("object"==typeof e)return e.alpha>=1?function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Lt("#"+zt(e)+zt(t)+zt(n));if("object"==typeof e&&void 0===t&&void 0===n)return Lt("#"+zt(e.red)+zt(e.green)+zt(e.blue));throw new ht(6)}(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ht(7)}(st({},r,{alpha:(n=+(100*("number"==typeof r.alpha?r.alpha:1)-100*parseFloat(e)).toFixed(2)/100,Math.max(0,Math.min(1,n)))}))}var At=/*#__PURE__*/Ft(Et);const jt=["children","testId","isInverse","type","dataSet","options"];let Rt;var Ot;!function(e){e.area="area",e.areaStacked="areaStacked",e.bar="bar",e.barGrouped="barGrouped",e.barStacked="barStacked",e.boxplot="boxplot",e.bubble="bubble",e.bullet="bullet",e.donut="donut",e.gauge="gauge",e.histogram="histogram",e.line="line",e.lollipop="lollipop",e.meter="meter",e.pie="pie",e.radar="radar",e.scatter="scatter",e.combo="combo"}(Ot||(Ot={}));const Wt=F.div(Rt||(Rt=(e=>e)`
75
+ `),e.width));function at(t,n){var r,o,a;const{description:i,title:l,type:c}=t,d=oe(t,Ve),u=e.useRef(null),h=e.useRef(null),m=e.useContext(s),$=e.useContext(p),[F,C,E]=g(),[A,j]=e.useState(!1);/*#__PURE__*/return z("div",{ref:n,children:[/*#__PURE__*/L(et,{theme:m,children:l}),i&&/*#__PURE__*/L(tt,{theme:m,visualStyle:b.bodySmall,children:i}),/*#__PURE__*/z(nt,{theme:m,children:[/*#__PURE__*/z(v,{children:[/*#__PURE__*/L(x,{children:$.charts.line.chartTabLabel}),/*#__PURE__*/L(x,{children:$.charts.line.dataTabLabel}),/*#__PURE__*/z("div",{onBlur:function(){j(!1)},style:{display:"inline-block",marginLeft:"auto"},children:[/*#__PURE__*/L(y,{content:$.charts.line.keyboardInstructionsTooltip,ref:u,children:/*#__PURE__*/L(k,{"aria-controls":"keyboardInstructions","aria-label":$.charts.line.keyboardInstructionsTooltip,"aria-expanded":Boolean(A),icon:/*#__PURE__*/L(P,{}),onClick:function(){j(e=>!e)},onKeyDown:function(e){const{key:t,shiftKey:n}=e;switch(t){case"Escape":j(!1);break;case"Tab":!n&&h&&h.current&&F.current.find(e=>e.current===h.current)&&(e.preventDefault(),h.current.focus())}},variant:w.link})}),/*#__PURE__*/L(I,{children:/*#__PURE__*/z(ot,{id:"keyboardInstructions",isOpen:A,theme:m,width:"350px",children:[/*#__PURE__*/L(f,{visualStyle:b.headingXSmall,style:{margin:"0 0 16px"},children:$.charts.line.keyboardInstructionsHeader}),$.charts.line.keyboardInstructions]})})]})]}),/*#__PURE__*/z(S,{children:[/*#__PURE__*/L(rt,{theme:m,children:"line"===c&&/*#__PURE__*/L(Ke,re({},d,{lastFocusedScatterPoint:h,pointRefArray:F,registerPoint:C,tabRef:u,unregisterPoint:E}))}),/*#__PURE__*/L(rt,{theme:m,children:/*#__PURE__*/L(ie,{data:d.data,xData:{keyValue:d.x,label:null==(r=d.componentProps)||null==(r=r.xAxis)?void 0:r.label,tickFormat:null==(o=d.componentProps)||null==(o=o.xAxis)?void 0:o.tickFormat},yData:{keyValue:d.y,tickFormat:null==(a=d.componentProps)||null==(a=a.yAxis)?void 0:a.tickFormat}})})]})]})]})}const it=/*#__PURE__*/e.forwardRef(at);function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(null,arguments)}function lt(e,t){return lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lt(e,t)}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}function dt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dt=function(){return!!e})()}function pt(e){var t="function"==typeof Map?new Map:void 0;return pt=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(dt())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&lt(o,n.prototype),o}(e,arguments,ct(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),lt(n,e)},pt(e)}var ut={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found and no default was provided.\n\n",75:"important requires a valid style object, got a %s instead.\n\n",76:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",77:'remToPx expects a value in "rem" but you provided it in "%s".\n\n',78:'base must be set in "px" or "%" but you set it in "%s".\n'};function ft(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,o=t[0],a=[];for(r=1;r<t.length;r+=1)a.push(t[r]);return a.forEach(function(e){o=o.replace(/%[a-z]/,e)}),o}var ht=/*#__PURE__*/function(e){var t,n;function r(t){var n;if("production"===process.env.NODE_ENV)n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this;else{for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];n=e.call(this,ft.apply(void 0,[ut[t]].concat(o)))||this}return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,lt(t,n),r}(/*#__PURE__*/pt(Error));function mt(e){return Math.round(255*e)}function gt(e,t,n){return mt(e)+","+mt(t)+","+mt(n)}function bt(e,t,n,r){if(void 0===r&&(r=gt),0===t)return r(n,n,n);var o=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,i=a*(1-Math.abs(o%2-1)),s=0,l=0,c=0;o>=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,c=i):o>=3&&o<4?(l=i,c=a):o>=4&&o<5?(s=i,c=a):o>=5&&o<6&&(s=a,c=i);var d=n-a/2;return r(s+d,l+d,c+d)}var vt={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},xt=/^#[a-fA-F0-9]{6}$/,yt=/^#[a-fA-F0-9]{8}$/,kt=/^#[a-fA-F0-9]{3}$/,wt=/^#[a-fA-F0-9]{4}$/,It=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,St=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,$t=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Pt=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Lt=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function zt(e){var t=e.toString(16);return 1===t.length?"0"+t:t}var Ft,Ct=function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(Ft=function(e,t){if("transparent"===t)return t;var n,r=function(e){if("string"!=typeof e)throw new ht(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return vt[t]?"#"+vt[t]:e}(e);if(t.match(xt))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(yt)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(kt))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(wt)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=It.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=St.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=$t.exec(t);if(i){var s="rgb("+bt(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=It.exec(s);if(!l)throw new ht(4,t,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=Pt.exec(t.substring(0,50));if(c){var d="rgb("+bt(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",p=It.exec(d);if(!p)throw new ht(4,t,d);return{red:parseInt(""+p[1],10),green:parseInt(""+p[2],10),blue:parseInt(""+p[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new ht(5)}(t);return function(e){if("object"==typeof e)return e.alpha>=1?function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Lt("#"+zt(e)+zt(t)+zt(n));if("object"==typeof e&&void 0===t&&void 0===n)return Lt("#"+zt(e.red)+zt(e.green)+zt(e.blue));throw new ht(6)}(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ht(7)}(st({},r,{alpha:(n=+(100*("number"==typeof r.alpha?r.alpha:1)-100*parseFloat(e)).toFixed(2)/100,Math.max(0,Math.min(1,n)))}))},Ft.length,[]);const Et=["testId","isInverse","type","dataSet","options"];let At;var jt;!function(e){e.area="area",e.areaStacked="areaStacked",e.bar="bar",e.barGrouped="barGrouped",e.barStacked="barStacked",e.boxplot="boxplot",e.bubble="bubble",e.bullet="bullet",e.donut="donut",e.gauge="gauge",e.histogram="histogram",e.line="line",e.lollipop="lollipop",e.meter="meter",e.pie="pie",e.radar="radar",e.scatter="scatter",e.combo="combo"}(jt||(jt={}));const Rt=C.div(At||(At=(e=>e)`
76
76
  .cds--data-table thead tr th {
77
77
  background: ${0} !important;
78
78
  }
@@ -243,6 +243,9 @@ import*as e from"react";import{css as t}from"@emotion/react";import{Card as n,Da
243
243
  transition: 0.1s all linear;
244
244
  stroke-width: 1.1em;
245
245
  }
246
+
247
+ .cds--cc--tooltip {
248
+ ${0}
246
249
 
247
250
  .cds--overflow-menu-options__btn:focus {
248
251
  outline-color: ${0};
@@ -383,5 +386,5 @@ import*as e from"react";import{css as t}from"@emotion/react";import{Card as n,Da
383
386
  position: relative;
384
387
  }
385
388
  }
386
- `),e=>e.isInverse?e.theme.colors.primary700:"",e=>e.theme.colors.neutral700,e=>e.isInverse?e.theme.colors.neutral100:"",e=>e.theme.typeScale.size02.fontSize,e=>e.theme.spaceScale.spacing02,e=>e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral700,e=>e.theme.borderRadius,e=>e.isInverse?e.theme.colors.primary700:"",e=>e.isInverse?e.theme.colors.primary600:"",e=>e.isInverse?At(.8,e.theme.colors.neutral100):"inherit",e=>e.isInverse?At(.8,e.theme.colors.neutral100):"inherit",e=>e.isInverse?"#202565":"",e=>e.isInverse?e.theme.colors.primary600:"",e=>e.theme.bodyFont,e=>e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral700,e=>e.isInverse?e.theme.colors.neutral900:e.theme.colors.neutral100,e=>e.theme.spaceScale.spacing05,e=>e.theme.spaceScale.spacing05,e=>e.theme.typeScale.size03.fontSize,e=>e.theme.spaceScale.spacing03,e=>e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral900,e=>e.isInverse?e.theme.colors.neutral100:"",e=>e.isInverse?e.theme.colors.neutral100:"",e=>e.isInverse?At(.5,e.theme.colors.neutral100):"",e=>e.isInverse?e.theme.colors.neutral100:"",e=>e.isInverse?"invert(1)":"",e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.focusInverse:"",e=>e.theme.typeScale.size03.lineHeight,e=>e.theme.spaceScale.spacing13,e=>e.theme.spaceScale.spacing04,e=>e.theme.bodyFont,e=>e.theme.typeScale.size03.fontSize,e=>e.theme.borderRadius,e=>e.isInverse?e.theme.colors.tertiary500:e.theme.colors.primary,e=>e.isInverse?e.theme.colors.neutral900:"",e=>e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus,e=>e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus,e=>e.isInverse?`1px solid ${e.theme.colors.focusInverse}`:"",e=>e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus,e=>e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?At(.8,e.theme.colors.neutral100):e.theme.colors.neutral300,e=>e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus,e=>e.isInverse?At(.8,e.theme.colors.neutral100):e.theme.colors.neutral300,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.theme.typeScale.size02.fontSize,e=>e.isInverse?e.theme.colors.neutral100:"");var Dt;!function(e){e.WHITE="white",e.G100="g100",e.G90="g90",e.G10="g10"}(Dt||(Dt={}));const Tt=/*#__PURE__*/e.forwardRef((t,n)=>{const{testId:r,isInverse:o,type:a,dataSet:i,options:l}=t,c=oe(t,jt),d=e.useContext(s),p=$(o),u={area:H,areaStacked:q,bar:_,barGrouped:M,barStacked:G,donut:B,line:K,lollipop:V,pie:Y,radar:N,boxplot:U,bubble:X,bullet:Z,gauge:J,histogram:Q,meter:ee,scatter:te,combo:ne},f=re({},l,{theme:p?Dt.G100:Dt.WHITE,color:{scale:function(){const e={},t=i.map(e=>"group"in e?e.group:null),n=t.filter((e,n)=>t.indexOf(e)===n);return n.forEach((t,r)=>n.length<=d.chartColors.length?e[t||"null"]=p?d.chartColorsInverse[r]:d.chartColors[r]:{}),e}()},tooltip:{truncation:{type:"none"}}}),h=u[a];return e.useEffect(()=>{document.querySelectorAll(".graph-frame ").forEach(e=>{e.setAttribute("aria-label","Interactive chart")})}),/*#__PURE__*/L(Wt,re({"data-testid":r,ref:n,isInverse:p,theme:d,className:"carbon-chart-wrapper"},c,{children:/*#__PURE__*/L(h,{data:i,options:f})}))});export{Tt as CarbonChart,Ot as CarbonChartType,it as Chart};
389
+ `),e=>e.isInverse?e.theme.colors.primary700:"",e=>e.theme.colors.neutral700,e=>e.isInverse?e.theme.colors.neutral100:"",e=>e.theme.typeScale.size02.fontSize,e=>e.theme.spaceScale.spacing02,e=>e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral700,e=>e.theme.borderRadius,e=>e.isInverse?e.theme.colors.primary700:"",e=>e.isInverse?e.theme.colors.primary600:"",e=>e.isInverse?Ct(.8,e.theme.colors.neutral100):"inherit",e=>e.isInverse?Ct(.8,e.theme.colors.neutral100):"inherit",e=>e.isInverse?"#202565":"",e=>e.isInverse?e.theme.colors.primary600:"",e=>e.theme.bodyFont,e=>e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral700,e=>e.isInverse?e.theme.colors.neutral900:e.theme.colors.neutral100,e=>e.theme.spaceScale.spacing05,e=>e.theme.spaceScale.spacing05,e=>e.theme.typeScale.size03.fontSize,e=>e.theme.spaceScale.spacing03,e=>e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral900,e=>e.isInverse?e.theme.colors.neutral100:"",e=>e.isInverse?e.theme.colors.neutral100:"",e=>e.isInverse?Ct(.5,e.theme.colors.neutral100):"",e=>e.isInverse?e.theme.colors.neutral100:"",e=>e.isInverse?"invert(1)":"",e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>((e.isInverse?e.theme.chartColorsInverse:e.theme.chartColors)||[]).reduce((t,n,r)=>t+`.tooltip-${e.groupsLength}-1-${r+1} { background-color: ${n}; }`,""),e=>e.isInverse?e.theme.colors.focusInverse:"",e=>e.theme.typeScale.size03.lineHeight,e=>e.theme.spaceScale.spacing13,e=>e.theme.spaceScale.spacing04,e=>e.theme.bodyFont,e=>e.theme.typeScale.size03.fontSize,e=>e.theme.borderRadius,e=>e.isInverse?e.theme.colors.tertiary500:e.theme.colors.primary,e=>e.isInverse?e.theme.colors.neutral900:"",e=>e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus,e=>e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus,e=>e.isInverse?`1px solid ${e.theme.colors.focusInverse}`:"",e=>e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus,e=>e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.isInverse?Ct(.8,e.theme.colors.neutral100):e.theme.colors.neutral300,e=>e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus,e=>e.isInverse?Ct(.8,e.theme.colors.neutral100):e.theme.colors.neutral300,e=>e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100,e=>e.theme.typeScale.size02.fontSize,e=>e.isInverse?e.theme.colors.neutral100:"");var Ot;!function(e){e.WHITE="white",e.G100="g100",e.G90="g90",e.G10="g10"}(Ot||(Ot={}));const Wt=/*#__PURE__*/e.forwardRef((t,n)=>{const{testId:r,isInverse:o,type:a,dataSet:i,options:l}=t,c=oe(t,Et),d=e.useContext(s),p=$(o),u={area:H,areaStacked:q,bar:_,barGrouped:M,barStacked:G,donut:B,line:K,lollipop:V,pie:Y,radar:N,boxplot:U,bubble:X,bullet:Z,gauge:J,histogram:Q,meter:ee,scatter:te,combo:ne};function f(){const e={},t=i.map(e=>"group"in e?e.group:null),n=t.filter((e,n)=>t.indexOf(e)===n),r=l.colors||[],o=[...r,...d.chartColors],a=[...r,...d.chartColorsInverse];return n.forEach((t,r)=>n.length<=o.length?e[t||"null"]=p?a[r]:o[r]:{}),e}const h=re({},l,{theme:p?Ot.G100:Ot.WHITE,color:{scale:f()},tooltip:{truncation:{type:"none"}}}),m=u[a];e.useEffect(()=>{document.querySelectorAll(".graph-frame ").forEach(e=>{e.setAttribute("aria-label","Interactive chart")})});const g=Object.keys(f()).length;/*#__PURE__*/return L(Rt,re({"data-testid":r,ref:n,isInverse:p,theme:d,className:"carbon-chart-wrapper",groupsLength:g<6?g:14},c,{children:/*#__PURE__*/L(m,{data:i,options:h})}))});export{Wt as CarbonChart,jt as CarbonChartType,it as Chart};
387
390
  //# sourceMappingURL=charts.map
package/dist/charts.js CHANGED
@@ -1,2 +1,2 @@
1
- var e=require("react"),n=require("@emotion/react"),t=require("react-magma-dom"),r=require("react-magma-icons"),o=require("react/jsx-runtime"),a=require("@emotion/styled"),i=require("victory"),s=require("@carbon/charts-react");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,n}var d=/*#__PURE__*/c(e),u=/*#__PURE__*/l(a);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},f.apply(null,arguments)}function p(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==n.indexOf(r))continue;t[r]=e[r]}return t}function h(e,n){return n||(n=e.slice(0)),e.raw=n,e}function m(e){return e.toLowerCase().replace(/[^a-z 0-9]/gi,"").replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return 0===n?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")}var b,g,x,v,y,k,w=function(e){var n=e.data,r=void 0===n?[]:n,a=e.xData,i=a.keyValue,s=a.label,l=a.tickFormat,c=a.tickValues,u=e.yData,p=u.keyValue,h=u.tickFormat,b=d.useState({columns:[],rows:[]}),g=b[0],x=b[1];return d.useEffect(function(){var e,n,t;x((e=m(i||s||"x"),n=r.reduce(function(e,n){return n.data.forEach(function(n){var t=n.x||i&&n[i];!e.includes(t)&&e.push(t)}),e},[]),t={columns:n.length>0?[{field:e,header:s||i||"X",isRowHeader:!0}]:[],rows:n.reduce(function(t,r,o){var a,i=c&&"number"==typeof r&&c.length===n.length?l&&"function"==typeof l?l(c[r-1]):c[r-1]:l&&Array.isArray(l)?l[r-1]:l&&"function"==typeof l?l(r):r;return t.push(((a={})[e]=i,a.id=o,a)),t},[])},r.reduce(function(e,n){var r=n.name,o=n.data,a=m(r);return e.columns.push({field:a,header:r}),o.forEach(function(n,r){var o,i=n.y||0===n.y?n.y:p&&n[p];e.rows[r]=f({},e.rows[r],((o={id:t.rows.length>0?r+1:r})[a]=h&&"function"==typeof h?h(i):i,o))}),e},t)))},[r]),/*#__PURE__*/o.jsx(t.Card,{children:g.rows.length>0?/*#__PURE__*/o.jsx(t.Datagrid,{hasPagination:!1,columns:g.columns,rows:g.rows}):/*#__PURE__*/o.jsx(t.Spinner,{})})},I=["events"],S=function(e){var n=e.events,t=p(e,I);/*#__PURE__*/return o.jsxs("g",{children:[/*#__PURE__*/o.jsx(i.LineSegment,f({},t,{events:n,style:{strokeWidth:"50px",stroke:"transparent"}})),/*#__PURE__*/o.jsx(i.LineSegment,f({},t,{events:n,style:{strokeWidth:"1px",stroke:"black",strokeOpacity:"0.2"}}))]})},j=["datum","index","lineIndex","pointRefArray","registerPoint","unregisterPoint"],C=["lineIndex","pointRefArray","pointIndex","registerPoint","unregisterPoint"],P=function(e){var n=e.datum,t=e.index,r=e.lineIndex,a=e.pointRefArray,s=e.registerPoint,l=e.unregisterPoint,c=p(e,j);/*#__PURE__*/return o.jsx(i.Point,f({},c,{ariaLabel:n.label,pathComponent:/*#__PURE__*/o.jsx(L,{lineIndex:r,pointIndex:t,pointRefArray:a,registerPoint:s,unregisterPoint:l}),role:"button",tabIndex:0}))},L=function(e){var n=e.lineIndex,r=e.pointRefArray,a=e.pointIndex,i=e.registerPoint,s=e.unregisterPoint,l=p(e,C),c=t.useForceUpdate(),u=d.useRef(null);return d.useEffect(function(){return i(r,u),c(),function(){return s(r,u)}},[]),/*#__PURE__*/o.jsx("path",f({ref:u,"data-line-index":n,"data-point-index":a},l))},z=u.default(t.StyledTooltip)(b||(b=h(["\n background: ",";\n border: 1px solid ",";\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);\n box-sizing: border-box;\n color: ",";\n font-size: ",";\n font-weight: normal;\n line-height: ",";\n margin: 0;\n padding: 8px;\n width: fit-content;\n div {\n margin-bottom: 8px;\n display: flex;\n align-items: flex-start;\n &:last-of-type {\n margin-bottom: 0;\n }\n }\n"])),function(e){return e.theme.colors.neutral100},function(e){return e.theme.colors.neutral300},function(e){return e.theme.colors.neutral},function(e){return e.theme.typeScale.size02.fontSize},function(e){return e.theme.typeScale.size02.lineHeight}),F=u.default.span(g||(g=h(["\n background: ",";\n border: ",";\n border-radius: 4px;\n height: 20px;\n width: 20px;\n margin-right: 8px;\n"])),function(e){return e.color},function(e){return e.color?"none":"3px solid black"}),A=function(e){var n=e.datum,r=e.index,a=e.showTooltip,i=e.x,s=e.y,l=d.useContext(t.ThemeContext);return a===r+"-"+n.index?/*#__PURE__*/o.jsx("g",{style:{pointerEvents:"none"},children:/*#__PURE__*/o.jsx("foreignObject",{x:i,y:s,width:"275",height:"100%",children:/*#__PURE__*/o.jsxs(z,{position:t.TooltipPosition.top,role:"tooltip",theme:l,children:[/*#__PURE__*/o.jsxs("div",{children:[/*#__PURE__*/o.jsx(F,{color:l.iterableColors[r]}),/*#__PURE__*/o.jsx("span",{children:n.label})]}),/*#__PURE__*/o.jsx(t.TooltipArrow,{theme:l})]})})}):null},E=function(e){var n=e.x,r=e.y,a=e.activePoints,i=e.hiddenData,s=Array.from(Array(e.dataLength-0),function(e,n){return n+0}).filter(function(e){return!i.includes(e)}),l=d.useContext(t.ThemeContext);/*#__PURE__*/return o.jsx("g",{style:{pointerEvents:"none"},children:/*#__PURE__*/o.jsx("foreignObject",{x:n,y:r,width:"275",height:"100%",children:/*#__PURE__*/o.jsxs(z,{"data-testid":"axis-tooltip",position:t.TooltipPosition.top,role:"tooltip",theme:l,children:[a.map(function(e,n){/*#__PURE__*/return o.jsxs("div",{children:[/*#__PURE__*/o.jsx(F,{color:l.iterableColors[s[n]]}),/*#__PURE__*/o.jsx("span",{children:e.label})]},n)}),/*#__PURE__*/o.jsx(t.TooltipArrow,{theme:l})]})})})},T=["children","color","dataIndex","isHidden","onClick","name","focusCurrentLine","resetLineFocus"],O=/*#__PURE__*/d.forwardRef(function(e,n){var r=e.color,a=e.dataIndex,i=e.isHidden,s=e.onClick,l=e.name,c=e.focusCurrentLine,u=e.resetLineFocus,h=p(e,T);function m(){i||c&&"function"==typeof c&&c(a)}var b=d.useContext(t.ThemeContext);/*#__PURE__*/return o.jsx("div",{style:{display:"inline-flex"},onMouseEnter:m,onMouseLeave:u,children:/*#__PURE__*/o.jsx(t.Checkbox,f({checked:!i,color:r,containerStyle:{alignItems:"center",border:"0",boxShadow:"0 0 0",color:b.colors.neutral,display:"inline-flex",margin:"0 36px 20px 0",padding:"0"},inputStyle:{border:r?"none":"2px solid "+b.colors.neutral800,borderRadius:"4px"},labelText:l,onBlur:u,onClick:function(){s&&"function"==typeof s&&s(a),i||u&&"function"==typeof u&&u()},onFocus:m,ref:n,theme:b},h))})}),R=["#00507A","#8F0033","#B84900","#255200","#711E6E","#005249"],D="#8F8F8F",W="#3F3F3F",q="pink",H={width:350,height:350,padding:50},_={fontFamily:'"Work Sans",Helvetica,sans-serif',fontSize:12,letterSpacing:"normal",padding:8,fill:W,stroke:"transparent",strokeWidth:0},V=f({textAnchor:"middle"},_),B="round",M="round",G={area:f({style:{data:{fill:q},labels:_}},H),axis:f({style:{axis:{fill:"transparent",stroke:D,strokeWidth:1,strokeLinecap:B,strokeLinejoin:M},axisLabel:f({},V,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"#dfdfdf",strokeLinecap:B,strokeLinejoin:M,pointerEvents:"painted"},ticks:{fill:"transparent",size:0,stroke:D,strokeWidth:0,strokeLinecap:B,strokeLinejoin:M},tickLabels:f({},_,{fill:W})}},H),polarDependentAxis:{style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}},bar:f({style:{data:{fill:W,padding:8,strokeWidth:0},labels:_}},H),boxplot:f({style:{max:{padding:8,stroke:W,strokeWidth:1},maxLabels:f({},_,{padding:3}),median:{padding:8,stroke:W,strokeWidth:1},medianLabels:f({},_,{padding:3}),min:{padding:8,stroke:W,strokeWidth:1},minLabels:f({},_,{padding:3}),q1:{padding:8,fill:W},q1Labels:f({},_,{padding:3}),q3:{padding:8,fill:W},q3Labels:f({},_,{padding:3})},boxWidth:20},H),candlestick:f({style:{data:{stroke:W},labels:f({},_,{padding:5})},candleColors:{positive:"#ffffff",negative:W}},H),chart:H,errorbar:f({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:W,strokeWidth:2},labels:_}},H),group:f({colorScale:R},H),histogram:f({style:{data:{fill:W,stroke:q,strokeWidth:2},labels:_}},H),legend:{colorScale:R,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:_,title:f({},_,{padding:5})}},line:f({style:{data:{fill:"transparent",opacity:1,stroke:W,strokeWidth:2},labels:_}},H),pie:f({colorScale:R,style:{data:{padding:8,stroke:"#DFDFDF",strokeWidth:1},labels:f({},_,{padding:20})}},H),scatter:f({style:{data:{fill:W,opacity:1,stroke:"transparent",strokeWidth:0},labels:_}},H),stack:f({colorScale:R},H),tooltip:{style:f({},_,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:q,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:f({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:f({},_,{padding:5,pointerEvents:"none"}),flyout:{stroke:q,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},H)},$=["axisLabel","tickLabels"],K=["style"],Y=["axisLabel","tickLabels"],N=["style"],U=u.default.div(x||(x=h(["\n max-height: 600px;\n max-width: 800px;\n svg {\n overflow: visible;\n }\n"]))),X=u.default.div(v||(v=h([""]))),Z=u.default.div(y||(y=h(["\n padding-bottom: 24px;\n"]))),J=u.default.p(k||(k=h(["\n color: ",";\n font-size: ",";\n"])),function(e){return e.theme.colors.neutral},function(e){return e.theme.typeScale.size02.fontSize});function Q(e){var n=e.componentProps,r=void 0===n?{}:n,a=r.chart,s=void 0===a?{}:a,l=r.line,c=void 0===l?{}:l,u=r.scatter,h=void 0===u?{}:u,m=r.xAxis,b=void 0===m?{style:{}}:m,g=b.style,x=void 0===g?{}:g,v=x.axisLabel,y=void 0===v?void 0:v,k=x.tickLabels,w=void 0===k?void 0:k,I=p(x,$),j=p(b,K),C=r.yAxis,L=void 0===C?{style:{}}:C,z=L.style,F=void 0===z?{}:z,T=F.axisLabel,R=void 0===T?void 0:T,D=F.tickLabels,W=void 0===D?void 0:D,q=p(F,Y),H=p(L,N),_=e.data,V=void 0===_?[]:_,B=e.lastFocusedScatterPoint,M=e.pointRefArray,Q=e.registerPoint,ee=e.unregisterPoint,ne=e.tabRef,te=e.x,re=e.y,oe=d.useContext(t.ThemeContext),ae=d.useContext(t.I18nContext),ie=d.useState([]),se=ie[0],le=ie[1],ce=d.useState(800),de=ce[0],ue=ce[1],fe=d.useState(null),pe=fe[0],he=fe[1],me=d.useState(null),be=me[0],ge=me[1],xe=d.useState(!0),ve=xe[0],ye=xe[1],ke=d.useState(!1),we=ke[0],Ie=ke[1],Se=d.useRef(null),je=d.useRef(null);d.useEffect(function(){return ze(),window.addEventListener("resize",ze),window.addEventListener("keydown",Fe),function(){window.removeEventListener("resize",ze),window.removeEventListener("keydown",Fe)}},[]),d.useEffect(function(){return window.addEventListener("mousemove",Ae),function(){window.removeEventListener("mousemove",Ae)}},[be]);var Ce=V.map(function(e,n){return"scatter-"+n}),Pe=f({tickLabels:f({color:"#3f3f3f",fontSize:12},w),axisLabel:f({color:"#3f3f3f",padding:44,fontSize:14,fontWeight:"bold"},y)},I),Le=f({tickLabels:f({fontSize:12},W),axisLabel:f({color:"#3f3f3f",padding:64,fontSize:14,fontWeight:"bold"},R)},q);function ze(){Se.current&&ue(Se.current.clientWidth)}function Fe(e){"Escape"===e.key&&(ge(null),ye(!1))}function Ae(){!be&&ye(!0)}function Ee(e){return null===pe||pe===e?1:.1}function Te(e){se.includes(e)?le(se.filter(function(n){return n!==e})):le(se.concat([e]))}function Oe(e){he(e)}function Re(){he(null)}var De=function(e,n){if(n.current){var t=parseInt(n.current.getAttribute("data-line-index"),10);!e.includes(t)&&e.push(parseInt(n.current.getAttribute("data-line-index"),10))}return e},We=function(e){var n=parseInt(e.current.getAttribute("data-line-index"),10),t=parseInt(e.current.getAttribute("data-point-index"),10),r=M.current.reduce(De,[]);return{currentLineIndex:n,currentPointIndex:t,lineIndexes:r,lowestLineIndex:r[0],highestLineIndex:r[r.length-1]}},qe=function(e,n){return function(t){return t.current&&parseInt(t.current.getAttribute("data-line-index"),10)===e&&parseInt(t.current.getAttribute("data-point-index"),10)===n}};function He(e){"Tab"===e.key&&e.shiftKey&&B&&B.current&&M.current.find(function(e){return e.current===B.current})&&(e.preventDefault(),B.current.focus())}/*#__PURE__*/return o.jsxs(U,{ref:Se,children:[/*#__PURE__*/o.jsx(X,{onKeyDown:function(e){var n=e.shiftKey;switch(e.key){case"Tab":e.preventDefault(),B.current=M.current.find(function(e){return e.current===document.activeElement}).current,n?ne.current&&ne.current.focus():je.current&&je.current.focus();break;case"ArrowRight":var t,r=M.current.findIndex(function(e){return e.current===document.activeElement});void 0!==r&&(r===M.current.length-1?null==(t=M.current[0])||null==(t=t.current)||t.focus():M.current[r+1].current.focus());break;case"ArrowLeft":var o=M.current.findIndex(function(e){return e.current===document.activeElement});void 0!==o&&(0===o?M.current[M.current.length-1].current.focus():M.current[o-1].current.focus());break;case"ArrowUp":e.preventDefault();var a=M.current.find(function(e){return e.current===document.activeElement});if(a&&a.current){var i=We(a),s=i.currentLineIndex,l=i.currentPointIndex,c=i.lineIndexes;if(s===i.lowestLineIndex)M.current.find(qe(i.highestLineIndex,l)).current.focus();else{var d=c[c.indexOf(s)-1];M.current.find(qe(d,l)).current.focus()}}break;case"ArrowDown":e.preventDefault();var u=M.current.find(function(e){return e.current===document.activeElement});if(u&&u.current){var f=We(u),p=f.currentLineIndex,h=f.currentPointIndex,m=f.lineIndexes;if(p===f.highestLineIndex)M.current.find(qe(f.lowestLineIndex,h)).current.focus();else{var b=m[m.indexOf(p)+1];M.current.find(qe(b,h)).current.focus()}}}},children:/*#__PURE__*/o.jsxs(i.VictoryChart,f({domainPadding:32,height:400,padding:{top:0,left:80,right:0,bottom:62},theme:G,width:de,containerComponent:/*#__PURE__*/o.jsx(i.VictoryVoronoiContainer,{name:"xAxisGroupLabel",voronoiBlacklist:Ce,voronoiDimension:"x",labels:we&&ve?function(){return" "}:void 0,labelComponent:ve?/*#__PURE__*/o.jsx(i.VictoryTooltip,{flyoutComponent:/*#__PURE__*/o.jsx(E,{dataLength:V.length,hiddenData:se})}):void 0,role:"presentation",voronoiPadding:32})},s,{children:[/*#__PURE__*/o.jsx(i.VictoryAxis,f({},H,{dependentAxis:!0,style:Le})),V.map(function(e,n){var t=e.data;return!se.includes(n)&&/*#__PURE__*/o.jsx(i.VictoryLine,f({style:{data:{opacity:Ee(n),stroke:oe.iterableColors[n],strokeWidth:"3"},parent:{border:oe.colors.neutral400}},data:t,labelComponent:/*#__PURE__*/o.jsx(o.Fragment,{}),x:te,y:re},c),"line"+n)}),/*#__PURE__*/o.jsx(i.VictoryAxis,f({},j,{style:Pe,gridComponent:/*#__PURE__*/o.jsx(S,{events:{onMouseEnter:function(){return Ie(!0)},onMouseLeave:function(){return Ie(!1)}}})})),V.map(function(e,n){var t=e.data;return!se.includes(n)&&/*#__PURE__*/o.jsx(i.VictoryScatter,f({name:"scatter-"+n,events:[{target:"data",eventHandlers:{onBlur:function(){return ye(!0),ge(null),[{target:"labels",mutation:function(){return{active:void 0}}}]},onClick:function(){return[{target:"labels",mutation:function(e){return ge(e.datum.lineIndex+"-"+e.datum.index),{active:!0}}}]},onFocus:function(){return ye(!1),[{target:"labels",mutation:function(e){return ge(e.datum.lineIndex+"-"+e.datum.index),{active:!0}}}]},onMouseEnter:function(){return ye(!1),[{target:"labels",mutation:function(e){return ge(e.datum.lineIndex+"-"+e.datum.index),{active:!0}}}]},onMouseLeave:function(){ge(null),ye(!0)}}}],style:{data:{fill:oe.colors.neutral100,opacity:Ee(n),stroke:oe.iterableColors[n],strokeWidth:2}},size:5,data:t.map(function(e,t){return f({index:t,lineIndex:n},e)}),dataComponent:/*#__PURE__*/o.jsx(P,{lineIndex:n,pointRefArray:M,registerPoint:Q,unregisterPoint:ee}),labels:function(){return""},labelComponent:/*#__PURE__*/o.jsx(i.VictoryTooltip,{text:"",flyoutComponent:/*#__PURE__*/o.jsx(A,{index:n,showTooltip:be})}),x:te,y:re},h),"scatter"+n)})]}))}),/*#__PURE__*/o.jsxs(Z,{children:[/*#__PURE__*/o.jsx(J,{theme:oe,children:ae.charts.line.dataLegendsLabel}),V.map(function(e,n){var t=e.name,r=ae.charts.line.legendButtonAriaLabel.replace(/\{name\}/g,t);/*#__PURE__*/return o.jsx(O,{"aria-label":r,color:oe.iterableColors[n],dataIndex:n,isHidden:se.includes(n),name:t,onClick:Te,onKeyDown:0===n?He:void 0,focusCurrentLine:Oe,ref:0===n?je:void 0,resetLineFocus:Re},n)})]})]})}var ee,ne,te,re,oe,ae,ie=["description","title","testId","type"],se=t.styled.span(ee||(ee=h(["\n color: ",";\n font-size: ",";\n font-weight: 600;\n font-family: ",";\n line-height: ",";\n margin: 0 0 12px 0;\n"])),function(e){return e.theme.colors.neutral},function(e){return e.theme.typeScale.size04.fontSize},function(e){return e.theme.bodyFont},function(e){return e.theme.typeScale.size04.lineHeight}),le=t.styled(t.Paragraph)(ne||(ne=h(["\n font-size: ",";\n margin: 0 0 18px 0;\n"])),function(e){return e.theme.typeScale.size02.fontSize}),ce=t.styled(t.TabsContainer)(te||(te=h(["\n width: 800px;\n ul {\n box-shadow: inset 0 -1px 0 ",";\n }\n"])),function(e){return e.theme.colors.neutral300}),de=t.styled(t.TabPanel)(re||(re=h(["\n padding: 22px 0;\n"]))),ue=t.styled(t.Card)(oe||(oe=h(["\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);\n display: ",";\n right: ",";\n max-height: ",";\n opacity: ",";\n outline: 0;\n overflow-y: auto;\n padding: ","\n ",";\n position: absolute;\n transition: opacity 0.3s;\n white-space: nowrap;\n z-index: 2;\n\n ","\n"])),function(e){return e.isOpen?"block":"none"},function(e){return e.theme.spaceScale.spacing02},function(e){return e.maxHeight?e.maxHeight:e.theme.dropdown.content.maxHeight},function(e){return e.isOpen?"1":"0"},function(e){return e.theme.spaceScale.spacing05},function(e){return e.theme.spaceScale.spacing05},function(e){return e.width&&n.css(ae||(ae=h(["\n white-space: normal;\n width: ",";\n "])),e.width)});function fe(e,n){var a,i,s,l=e.description,c=e.title,u=e.type,h=p(e,ie),m=d.useRef(null),b=d.useRef(null),g=d.useContext(t.ThemeContext),x=d.useContext(t.I18nContext),v=t.useDescendants(),y=v[0],k=v[1],I=v[2],S=d.useState(!1),j=S[0],C=S[1];/*#__PURE__*/return o.jsxs("div",{ref:n,children:[/*#__PURE__*/o.jsx(se,{theme:g,children:c}),l&&/*#__PURE__*/o.jsx(le,{theme:g,visualStyle:t.TypographyVisualStyle.bodySmall,children:l}),/*#__PURE__*/o.jsxs(ce,{theme:g,children:[/*#__PURE__*/o.jsxs(t.Tabs,{children:[/*#__PURE__*/o.jsx(t.Tab,{children:x.charts.line.chartTabLabel}),/*#__PURE__*/o.jsx(t.Tab,{children:x.charts.line.dataTabLabel}),/*#__PURE__*/o.jsxs("div",{onBlur:function(){C(!1)},style:{display:"inline-block",marginLeft:"auto"},children:[/*#__PURE__*/o.jsx(t.Tooltip,{content:x.charts.line.keyboardInstructionsTooltip,ref:m,children:/*#__PURE__*/o.jsx(t.IconButton,{"aria-controls":"keyboardInstructions","aria-label":x.charts.line.keyboardInstructionsTooltip,"aria-expanded":Boolean(j),icon:/*#__PURE__*/o.jsx(r.KeyboardIcon,{}),onClick:function(){C(function(e){return!e})},onKeyDown:function(e){var n=e.shiftKey;switch(e.key){case"Escape":C(!1);break;case"Tab":!n&&b&&b.current&&y.current.find(function(e){return e.current===b.current})&&(e.preventDefault(),b.current.focus())}},variant:t.ButtonVariant.link})}),/*#__PURE__*/o.jsx(t.Announce,{children:/*#__PURE__*/o.jsxs(ue,{id:"keyboardInstructions",isOpen:j,theme:g,width:"350px",children:[/*#__PURE__*/o.jsx(t.Paragraph,{visualStyle:t.TypographyVisualStyle.headingXSmall,style:{margin:"0 0 16px"},children:x.charts.line.keyboardInstructionsHeader}),x.charts.line.keyboardInstructions]})})]})]}),/*#__PURE__*/o.jsxs(t.TabPanelsContainer,{children:[/*#__PURE__*/o.jsx(de,{theme:g,children:"line"===u&&/*#__PURE__*/o.jsx(Q,f({},h,{lastFocusedScatterPoint:b,pointRefArray:y,registerPoint:k,tabRef:m,unregisterPoint:I}))}),/*#__PURE__*/o.jsx(de,{theme:g,children:/*#__PURE__*/o.jsx(w,{data:h.data,xData:{keyValue:h.x,label:null==(a=h.componentProps)||null==(a=a.xAxis)?void 0:a.label,tickFormat:null==(i=h.componentProps)||null==(i=i.xAxis)?void 0:i.tickFormat},yData:{keyValue:h.y,tickFormat:null==(s=h.componentProps)||null==(s=s.yAxis)?void 0:s.tickFormat}})})]})]})]})}var pe=/*#__PURE__*/d.forwardRef(fe);function he(){return he=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},he.apply(null,arguments)}function me(e,n){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},me(e,n)}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}function ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ge=function(){return!!e})()}function xe(e){var n="function"==typeof Map?new Map:void 0;return xe=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(n){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return function(e,n,t){if(ge())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,n);var o=new(e.bind.apply(e,r));return t&&me(o,t.prototype),o}(e,arguments,be(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),me(t,e)},xe(e)}var ve={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found.\n\n",75:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n"};function ye(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,o=n[0],a=[];for(r=1;r<n.length;r+=1)a.push(n[r]);return a.forEach(function(e){o=o.replace(/%[a-z]/,e)}),o}var ke=/*#__PURE__*/function(e){var n,t;function r(n){var t;if("production"===process.env.NODE_ENV)t=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+n+" for more information.")||this;else{for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t=e.call(this,ye.apply(void 0,[ve[n]].concat(o)))||this}return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}return t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,me(n,t),r}(/*#__PURE__*/xe(Error));function we(e){return Math.round(255*e)}function Ie(e,n,t){return we(e)+","+we(n)+","+we(t)}function Se(e,n,t,r){if(void 0===r&&(r=Ie),0===n)return r(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*n,i=a*(1-Math.abs(o%2-1)),s=0,l=0,c=0;o>=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,c=i):o>=3&&o<4?(l=i,c=a):o>=4&&o<5?(s=i,c=a):o>=5&&o<6&&(s=a,c=i);var d=t-a/2;return r(s+d,l+d,c+d)}var je={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ce=/^#[a-fA-F0-9]{6}$/,Pe=/^#[a-fA-F0-9]{8}$/,Le=/^#[a-fA-F0-9]{3}$/,ze=/^#[a-fA-F0-9]{4}$/,Fe=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Ae=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Ee=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Te=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Oe=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function Re(e){var n=e.toString(16);return 1===n.length?"0"+n:n}function De(e,n,t){return function(){var r=t.concat(Array.prototype.slice.call(arguments));return r.length>=n?e.apply(this,r):De(e,n,r)}}function We(e){return De(e,e.length,[])}function qe(e,n){if("transparent"===n)return n;var t,r=function(e){if("string"!=typeof e)throw new ke(3);var n=function(e){if("string"!=typeof e)return e;var n=e.toLowerCase();return je[n]?"#"+je[n]:e}(e);if(n.match(Ce))return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16)};if(n.match(Pe)){var t=parseFloat((parseInt(""+n[7]+n[8],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16),alpha:t}}if(n.match(Le))return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16)};if(n.match(ze)){var r=parseFloat((parseInt(""+n[4]+n[4],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16),alpha:r}}var o=Fe.exec(n);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=Ae.exec(n.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=Ee.exec(n);if(i){var s="rgb("+Se(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=Fe.exec(s);if(!l)throw new ke(4,n,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=Te.exec(n.substring(0,50));if(c){var d="rgb("+Se(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",u=Fe.exec(d);if(!u)throw new ke(4,n,d);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10),alpha:parseFloat(""+c[4])}}throw new ke(5)}(n);return function(e){if("object"==typeof e)return e.alpha>=1?function(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return Oe("#"+Re(e)+Re(n)+Re(t));if("object"==typeof e&&void 0===n&&void 0===t)return Oe("#"+Re(e.red)+Re(e.green)+Re(e.blue));throw new ke(6)}(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ke(7)}(he({},r,{alpha:(t=+(100*("number"==typeof r.alpha?r.alpha:1)-100*parseFloat(e)).toFixed(2)/100,Math.max(0,Math.min(1,t)))}))}var He,_e,Ve=/*#__PURE__*/We(qe),Be=["children","testId","isInverse","type","dataSet","options"];exports.CarbonChartType=void 0,(_e=exports.CarbonChartType||(exports.CarbonChartType={})).area="area",_e.areaStacked="areaStacked",_e.bar="bar",_e.barGrouped="barGrouped",_e.barStacked="barStacked",_e.boxplot="boxplot",_e.bubble="bubble",_e.bullet="bullet",_e.donut="donut",_e.gauge="gauge",_e.histogram="histogram",_e.line="line",_e.lollipop="lollipop",_e.meter="meter",_e.pie="pie",_e.radar="radar",_e.scatter="scatter",_e.combo="combo";var Me,Ge=u.default.div(He||(He=h(["\n .cds--data-table thead tr th {\n background: "," !important;\n }\n .cds--data-table td,\n .cds--data-table tbody th {\n color: ",";\n }\n .cds--data-table tbody tr,\n .cds--data-table tbody tr td,\n .cds--data-table tbody tr th {\n color: ",";\n }\n .cds--data-table tr {\n block-size: 2.5rem;\n }\n\n .cds--cc--tooltip .content-box .datapoint-tooltip p {\n font-size: ",";\n padding: ",";\n color: ",";\n max-width: 142px;\n white-space: normal;\n }\n\n .cds--modal-container {\n clip-path: inset(0% 0% 0% 0% round ",");\n background: ",";\n .cds--data-table th {\n background: ",";\n }\n .cds--data-table td {\n border-top: 1px solid\n ",";\n border-bottom: 1px solid\n ",";\n background: ",";\n }\n .cds--data-table tr:hover td {\n background: ",";\n }\n }\n\n p,\n div,\n text,\n .cds--cc--axes g.axis .axis-title,\n .cds--cc--title p.title,\n .cds--cc--axes g.axis g.tick text {\n font-family: "," !important;\n color: ",";\n }\n\n .cds--cc--axes {\n overflow: visible;\n }\n\n div.cds--cc--legend {\n div.legend-item {\n div.checkbox {\n background: ",";\n border: none;\n width: ",";\n height: ",";\n svg {\n left: 2px;\n position: relative;\n }\n }\n p {\n font-size: ",";\n margin: 0 "," 0 0;\n }\n }\n }\n div.cds--cc--legend.has-deactivated-items {\n div.legend-item {\n div.checkbox {\n border: 1px solid\n ",";\n }\n div.checkbox.active {\n border: 1px solid transparent;\n }\n }\n }\n .chart-holder {\n .cds--cc--axes g.axis g.tick text {\n fill: ",";\n }\n .cds--cc--axes g.axis path.domain {\n stroke: ",";\n }\n .cds--cc--grid g.x.grid g.tick line,\n .cds--cc--grid g.y.grid g.tick line {\n stroke: ",";\n }\n .cds--cc--grid rect.chart-grid-backdrop.stroked {\n stroke: ",";\n }\n .cds--cc--skeleton .shimmer-effect-lines {\n filter: ",";\n }\n /* .chart-holder.cds--chart-holder.filled,\n .cds--cc--skeleton rect.chart-skeleton-backdrop,\n .cds--cc--grid rect.chart-grid-backdrop {\n } */\n\n .cds--cc--grid rect.chart-grid-backdrop {\n fill: transparent;\n }\n .cds--cc--scatter circle.dot.hovered {\n padding: 10px;\n }\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled {\n stroke-width: 6px;\n transition: 0.1s all linear;\n }\n .cds--cc--scatter circle.dot.hovered {\n stroke-width: 0.5em;\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ","\n )\n drop-shadow(\n -1px 0px 0px\n ","\n )\n drop-shadow(\n 0px 1px 0px\n ","\n )\n drop-shadow(\n 0px -1px 0px\n ","\n );\n }\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot.hovered {\n stroke-width: 15px;\n }\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled,\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot.hovered {\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ","\n )\n drop-shadow(\n -1px 0px 0px\n ","\n )\n drop-shadow(\n 0px 1px 0px\n ","\n )\n drop-shadow(\n 0px -1px 0px\n ","\n );\n }\n .cds--cc--lollipop .cds--cc--scatter circle.dot.hovered {\n transition: 0.1s all linear;\n stroke-width: 1.1em;\n }\n\n .cds--overflow-menu-options__btn:focus {\n outline-color: ",";\n }\n\n .cds--btn {\n min-height: auto;\n display: flex;\n flex: 0 auto;\n align-items: center;\n text-align: center;\n padding: 20px;\n margin: 0;\n line-height: ",";\n margin: 0;\n min-width: ",";\n overflow: hidden;\n padding:;\n position: relative;\n right: ",";\n text-align: center;\n height: 40px;\n font-family: ",";\n font-size: ",";\n border-radius: ",";\n font-weight: 500;\n }\n\n .cds--btn--primary {\n background: ",";\n color: ",";\n }\n\n *:focus {\n outline: 2px solid\n "," !important;\n outline-offset: 0;\n }\n .cds--overflow-menu-options__btn:focus,\n .cds--overflow-menu:focus,\n .cds--overflow-menu__trigger:focus,\n .toolbar-control:focus {\n outline: 2px solid\n "," !important;\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):focus\n div.checkbox,\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n border: ",";\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n box-shadow: 0 0 0 2px\n "," !important;\n }\n\n .cds--btn--primary {\n &:focus {\n outline: 2px solid\n ",";\n }\n outline-offset: 2px;\n border: none;\n box-shadow: none;\n }\n .cds--modal-header {\n background: ",";\n margin-bottom: 0;\n border-bottom: 1px solid\n ",";\n }\n .cds--modal-header__heading {\n font-weight: 600;\n }\n\n .cds--modal-close {\n position: absolute;\n top: 0;\n right: 0;\n &:focus {\n outline: 2px solid\n ",";\n border-color: none;\n }\n outline-offset: 0;\n border: none;\n }\n }\n\n .cds--modal-footer.cds--modal-footer {\n display: flex;\n align-items: center;\n border-top: 1px solid\n ",";\n background: "," !important;\n }\n .layout-child.header {\n height: auto !important;\n p {\n text-overflow: inherit;\n overflow: auto;\n white-space: normal;\n }\n }\n\n svg:not(:root) {\n overflow: visible;\n }\n\n .cds--cc--chart-wrapper text {\n font-size: ",";\n }\n\n g.center text,\n .pie-label {\n fill: ",";\n }\n\n // Zoom responsive tweaks\n\n @media screen and (max-width: 760px) {\n .cds--modal-container {\n overflow-y: auto;\n }\n .cds--chart-holder .cds--modal .cds--modal-container .cds--modal-content {\n overflow: visible;\n }\n .cds--chart-holder\n .cds--modal\n .cds--modal-container\n .cds--modal-content\n table\n th {\n position: relative;\n }\n }\n"])),function(e){return e.isInverse?e.theme.colors.primary700:""},function(e){return e.theme.colors.neutral700},function(e){return e.isInverse?e.theme.colors.neutral100:""},function(e){return e.theme.typeScale.size02.fontSize},function(e){return e.theme.spaceScale.spacing02},function(e){return e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral700},function(e){return e.theme.borderRadius},function(e){return e.isInverse?e.theme.colors.primary700:""},function(e){return e.isInverse?e.theme.colors.primary600:""},function(e){return e.isInverse?Ve(.8,e.theme.colors.neutral100):"inherit"},function(e){return e.isInverse?Ve(.8,e.theme.colors.neutral100):"inherit"},function(e){return e.isInverse?"#202565":""},function(e){return e.isInverse?e.theme.colors.primary600:""},function(e){return e.theme.bodyFont},function(e){return e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral700},function(e){return e.isInverse?e.theme.colors.neutral900:e.theme.colors.neutral100},function(e){return e.theme.spaceScale.spacing05},function(e){return e.theme.spaceScale.spacing05},function(e){return e.theme.typeScale.size03.fontSize},function(e){return e.theme.spaceScale.spacing03},function(e){return e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral900},function(e){return e.isInverse?e.theme.colors.neutral100:""},function(e){return e.isInverse?e.theme.colors.neutral100:""},function(e){return e.isInverse?Ve(.5,e.theme.colors.neutral100):""},function(e){return e.isInverse?e.theme.colors.neutral100:""},function(e){return e.isInverse?"invert(1)":""},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.focusInverse:""},function(e){return e.theme.typeScale.size03.lineHeight},function(e){return e.theme.spaceScale.spacing13},function(e){return e.theme.spaceScale.spacing04},function(e){return e.theme.bodyFont},function(e){return e.theme.typeScale.size03.fontSize},function(e){return e.theme.borderRadius},function(e){return e.isInverse?e.theme.colors.tertiary500:e.theme.colors.primary},function(e){return e.isInverse?e.theme.colors.neutral900:""},function(e){return e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus},function(e){return e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus},function(e){return e.isInverse?"1px solid "+e.theme.colors.focusInverse:""},function(e){return e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus},function(e){return e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?Ve(.8,e.theme.colors.neutral100):e.theme.colors.neutral300},function(e){return e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus},function(e){return e.isInverse?Ve(.8,e.theme.colors.neutral100):e.theme.colors.neutral300},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.theme.typeScale.size02.fontSize},function(e){return e.isInverse?e.theme.colors.neutral100:""});!function(e){e.WHITE="white",e.G100="g100",e.G90="g90",e.G10="g10"}(Me||(Me={})),exports.CarbonChart=/*#__PURE__*/d.forwardRef(function(e,n){var r,a,i,l=e.testId,c=e.isInverse,u=e.type,h=e.dataSet,m=e.options,b=p(e,Be),g=d.useContext(t.ThemeContext),x=t.useIsInverse(c),v={area:s.AreaChart,areaStacked:s.StackedAreaChart,bar:s.SimpleBarChart,barGrouped:s.GroupedBarChart,barStacked:s.StackedBarChart,donut:s.DonutChart,line:s.LineChart,lollipop:s.LollipopChart,pie:s.PieChart,radar:s.RadarChart,boxplot:s.BoxplotChart,bubble:s.BubbleChart,bullet:s.BulletChart,gauge:s.GaugeChart,histogram:s.HistogramChart,meter:s.MeterChart,scatter:s.ScatterChart,combo:s.ComboChart},y=f({},m,{theme:x?Me.G100:Me.WHITE,color:{scale:(r={},a=h.map(function(e){return"group"in e?e.group:null}),i=a.filter(function(e,n){return a.indexOf(e)===n}),i.forEach(function(e,n){return i.length<=g.chartColors.length?r[e||"null"]=x?g.chartColorsInverse[n]:g.chartColors[n]:{}}),r)},tooltip:{truncation:{type:"none"}}}),k=v[u];return d.useEffect(function(){document.querySelectorAll(".graph-frame ").forEach(function(e){e.setAttribute("aria-label","Interactive chart")})}),/*#__PURE__*/o.jsx(Ge,f({"data-testid":l,ref:n,isInverse:x,theme:g,className:"carbon-chart-wrapper"},b,{children:/*#__PURE__*/o.jsx(k,{data:h,options:y})}))}),exports.Chart=pe;
1
+ var e=require("react"),n=require("@emotion/react"),t=require("react-magma-dom"),r=require("react-magma-icons"),o=require("react/jsx-runtime"),a=require("@emotion/styled"),i=require("victory"),s=require("@carbon/charts-react");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}}),n.default=e,n}var d=/*#__PURE__*/c(e),u=/*#__PURE__*/l(a);function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},f.apply(null,arguments)}function p(e,n){if(null==e)return{};var t={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==n.indexOf(r))continue;t[r]=e[r]}return t}function h(e,n){return n||(n=e.slice(0)),e.raw=n,e}function m(e){return e.toLowerCase().replace(/[^a-z 0-9]/gi,"").replace(/(?:^\w|[A-Z]|\b\w)/g,function(e,n){return 0===n?e.toLowerCase():e.toUpperCase()}).replace(/\s+/g,"")}var b,g,v,x,y,k,w=function(e){var n=e.data,r=void 0===n?[]:n,a=e.xData,i=a.keyValue,s=a.label,l=a.tickFormat,c=a.tickValues,u=e.yData,p=u.keyValue,h=u.tickFormat,b=d.useState({columns:[],rows:[]}),g=b[0],v=b[1];return d.useEffect(function(){var e,n,t;v((e=m(i||s||"x"),n=r.reduce(function(e,n){return n.data.forEach(function(n){var t=n.x||i&&n[i];!e.includes(t)&&e.push(t)}),e},[]),t={columns:n.length>0?[{field:e,header:s||i||"X",isRowHeader:!0}]:[],rows:n.reduce(function(t,r,o){var a,i=c&&"number"==typeof r&&c.length===n.length?l&&"function"==typeof l?l(c[r-1]):c[r-1]:l&&Array.isArray(l)?l[r-1]:l&&"function"==typeof l?l(r):r;return t.push(((a={})[e]=i,a.id=o,a)),t},[])},r.reduce(function(e,n){var r=n.name,o=n.data,a=m(r);return e.columns.push({field:a,header:r}),o.forEach(function(n,r){var o,i=n.y||0===n.y?n.y:p&&n[p];e.rows[r]=f({},e.rows[r],((o={id:t.rows.length>0?r+1:r})[a]=h&&"function"==typeof h?h(i):i,o))}),e},t)))},[r]),/*#__PURE__*/o.jsx(t.Card,{children:g.rows.length>0?/*#__PURE__*/o.jsx(t.Datagrid,{hasPagination:!1,columns:g.columns,rows:g.rows}):/*#__PURE__*/o.jsx(t.Spinner,{})})},I=["events"],S=function(e){var n=e.events,t=p(e,I);/*#__PURE__*/return o.jsxs("g",{children:[/*#__PURE__*/o.jsx(i.LineSegment,f({},t,{events:n,style:{strokeWidth:"50px",stroke:"transparent"}})),/*#__PURE__*/o.jsx(i.LineSegment,f({},t,{events:n,style:{strokeWidth:"1px",stroke:"black",strokeOpacity:"0.2"}}))]})},j=["datum","index","lineIndex","pointRefArray","registerPoint","unregisterPoint"],C=["lineIndex","pointRefArray","pointIndex","registerPoint","unregisterPoint"],P=function(e){var n=e.datum,t=e.index,r=e.lineIndex,a=e.pointRefArray,s=e.registerPoint,l=e.unregisterPoint,c=p(e,j);/*#__PURE__*/return o.jsx(i.Point,f({},c,{ariaLabel:n.label,pathComponent:/*#__PURE__*/o.jsx(L,{lineIndex:r,pointIndex:t,pointRefArray:a,registerPoint:s,unregisterPoint:l}),role:"button",tabIndex:0}))},L=function(e){var n=e.lineIndex,r=e.pointRefArray,a=e.pointIndex,i=e.registerPoint,s=e.unregisterPoint,l=p(e,C),c=t.useForceUpdate(),u=d.useRef(null);return d.useEffect(function(){return i(r,u),c(),function(){return s(r,u)}},[]),/*#__PURE__*/o.jsx("path",f({ref:u,"data-line-index":n,"data-point-index":a},l))},z=u.default(t.StyledTooltip)(b||(b=h(["\n background: ",";\n border: 1px solid ",";\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);\n box-sizing: border-box;\n color: ",";\n font-size: ",";\n font-weight: normal;\n line-height: ",";\n margin: 0;\n padding: 8px;\n width: fit-content;\n div {\n margin-bottom: 8px;\n display: flex;\n align-items: flex-start;\n &:last-of-type {\n margin-bottom: 0;\n }\n }\n"])),function(e){return e.theme.colors.neutral100},function(e){return e.theme.colors.neutral300},function(e){return e.theme.colors.neutral},function(e){return e.theme.typeScale.size02.fontSize},function(e){return e.theme.typeScale.size02.lineHeight}),F=u.default.span(g||(g=h(["\n background: ",";\n border: ",";\n border-radius: 4px;\n height: 20px;\n width: 20px;\n margin-right: 8px;\n"])),function(e){return e.color},function(e){return e.color?"none":"3px solid black"}),A=function(e){var n=e.datum,r=e.index,a=e.showTooltip,i=e.x,s=e.y,l=d.useContext(t.ThemeContext);return a===r+"-"+n.index?/*#__PURE__*/o.jsx("g",{style:{pointerEvents:"none"},children:/*#__PURE__*/o.jsx("foreignObject",{x:i,y:s,width:"275",height:"100%",children:/*#__PURE__*/o.jsxs(z,{position:t.TooltipPosition.top,role:"tooltip",theme:l,children:[/*#__PURE__*/o.jsxs("div",{children:[/*#__PURE__*/o.jsx(F,{color:l.iterableColors[r]}),/*#__PURE__*/o.jsx("span",{children:n.label})]}),/*#__PURE__*/o.jsx(t.TooltipArrow,{theme:l})]})})}):null},E=function(e){var n=e.x,r=e.y,a=e.activePoints,i=e.hiddenData,s=Array.from(Array(e.dataLength-0),function(e,n){return n+0}).filter(function(e){return!i.includes(e)}),l=d.useContext(t.ThemeContext);/*#__PURE__*/return o.jsx("g",{style:{pointerEvents:"none"},children:/*#__PURE__*/o.jsx("foreignObject",{x:n,y:r,width:"275",height:"100%",children:/*#__PURE__*/o.jsxs(z,{"data-testid":"axis-tooltip",position:t.TooltipPosition.top,role:"tooltip",theme:l,children:[a.map(function(e,n){/*#__PURE__*/return o.jsxs("div",{children:[/*#__PURE__*/o.jsx(F,{color:l.iterableColors[s[n]]}),/*#__PURE__*/o.jsx("span",{children:e.label})]},n)}),/*#__PURE__*/o.jsx(t.TooltipArrow,{theme:l})]})})})},T=["children","color","dataIndex","isHidden","onClick","name","focusCurrentLine","resetLineFocus"],O=/*#__PURE__*/d.forwardRef(function(e,n){var r=e.color,a=e.dataIndex,i=e.isHidden,s=e.onClick,l=e.name,c=e.focusCurrentLine,u=e.resetLineFocus,h=p(e,T);function m(){i||c&&"function"==typeof c&&c(a)}var b=d.useContext(t.ThemeContext);/*#__PURE__*/return o.jsx("div",{style:{display:"inline-flex"},onMouseEnter:m,onMouseLeave:u,children:/*#__PURE__*/o.jsx(t.Checkbox,f({checked:!i,color:r,containerStyle:{alignItems:"center",border:"0",boxShadow:"0 0 0",color:b.colors.neutral,display:"inline-flex",margin:"0 36px 20px 0",padding:"0"},inputStyle:{border:r?"none":"2px solid "+b.colors.neutral800,borderRadius:"4px"},labelText:l,onBlur:u,onClick:function(){s&&"function"==typeof s&&s(a),i||u&&"function"==typeof u&&u()},onFocus:m,ref:n,theme:b},h))})}),R=["#00507A","#8F0033","#B84900","#255200","#711E6E","#005249"],D="#8F8F8F",W="#3F3F3F",q="pink",H={width:350,height:350,padding:50},_={fontFamily:'"Work Sans",Helvetica,sans-serif',fontSize:12,letterSpacing:"normal",padding:8,fill:W,stroke:"transparent",strokeWidth:0},V=f({textAnchor:"middle"},_),B="round",M="round",G={area:f({style:{data:{fill:q},labels:_}},H),axis:f({style:{axis:{fill:"transparent",stroke:D,strokeWidth:1,strokeLinecap:B,strokeLinejoin:M},axisLabel:f({},V,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"#dfdfdf",strokeLinecap:B,strokeLinejoin:M,pointerEvents:"painted"},ticks:{fill:"transparent",size:0,stroke:D,strokeWidth:0,strokeLinecap:B,strokeLinejoin:M},tickLabels:f({},_,{fill:W})}},H),polarDependentAxis:{style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}},bar:f({style:{data:{fill:W,padding:8,strokeWidth:0},labels:_}},H),boxplot:f({style:{max:{padding:8,stroke:W,strokeWidth:1},maxLabels:f({},_,{padding:3}),median:{padding:8,stroke:W,strokeWidth:1},medianLabels:f({},_,{padding:3}),min:{padding:8,stroke:W,strokeWidth:1},minLabels:f({},_,{padding:3}),q1:{padding:8,fill:W},q1Labels:f({},_,{padding:3}),q3:{padding:8,fill:W},q3Labels:f({},_,{padding:3})},boxWidth:20},H),candlestick:f({style:{data:{stroke:W},labels:f({},_,{padding:5})},candleColors:{positive:"#ffffff",negative:W}},H),chart:H,errorbar:f({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:W,strokeWidth:2},labels:_}},H),group:f({colorScale:R},H),histogram:f({style:{data:{fill:W,stroke:q,strokeWidth:2},labels:_}},H),legend:{colorScale:R,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:_,title:f({},_,{padding:5})}},line:f({style:{data:{fill:"transparent",opacity:1,stroke:W,strokeWidth:2},labels:_}},H),pie:f({colorScale:R,style:{data:{padding:8,stroke:"#DFDFDF",strokeWidth:1},labels:f({},_,{padding:20})}},H),scatter:f({style:{data:{fill:W,opacity:1,stroke:"transparent",strokeWidth:0},labels:_}},H),stack:f({colorScale:R},H),tooltip:{style:f({},_,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:q,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:f({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:f({},_,{padding:5,pointerEvents:"none"}),flyout:{stroke:q,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},H)},$=["axisLabel","tickLabels"],K=["style"],Y=["axisLabel","tickLabels"],N=["style"],U=u.default.div(v||(v=h(["\n max-height: 600px;\n max-width: 800px;\n svg {\n overflow: visible;\n }\n"]))),X=u.default.div(x||(x=h([""]))),Z=u.default.div(y||(y=h(["\n padding-bottom: 24px;\n"]))),J=u.default.p(k||(k=h(["\n color: ",";\n font-size: ",";\n"])),function(e){return e.theme.colors.neutral},function(e){return e.theme.typeScale.size02.fontSize});function Q(e){var n=e.componentProps,r=void 0===n?{}:n,a=r.chart,s=void 0===a?{}:a,l=r.line,c=void 0===l?{}:l,u=r.scatter,h=void 0===u?{}:u,m=r.xAxis,b=void 0===m?{style:{}}:m,g=b.style,v=void 0===g?{}:g,x=v.axisLabel,y=void 0===x?void 0:x,k=v.tickLabels,w=void 0===k?void 0:k,I=p(v,$),j=p(b,K),C=r.yAxis,L=void 0===C?{style:{}}:C,z=L.style,F=void 0===z?{}:z,T=F.axisLabel,R=void 0===T?void 0:T,D=F.tickLabels,W=void 0===D?void 0:D,q=p(F,Y),H=p(L,N),_=e.data,V=void 0===_?[]:_,B=e.lastFocusedScatterPoint,M=e.pointRefArray,Q=e.registerPoint,ee=e.unregisterPoint,ne=e.tabRef,te=e.x,re=e.y,oe=d.useContext(t.ThemeContext),ae=d.useContext(t.I18nContext),ie=d.useState([]),se=ie[0],le=ie[1],ce=d.useState(800),de=ce[0],ue=ce[1],fe=d.useState(null),pe=fe[0],he=fe[1],me=d.useState(null),be=me[0],ge=me[1],ve=d.useState(!0),xe=ve[0],ye=ve[1],ke=d.useState(!1),we=ke[0],Ie=ke[1],Se=d.useRef(null),je=d.useRef(null);d.useEffect(function(){return ze(),window.addEventListener("resize",ze),window.addEventListener("keydown",Fe),function(){window.removeEventListener("resize",ze),window.removeEventListener("keydown",Fe)}},[]),d.useEffect(function(){return window.addEventListener("mousemove",Ae),function(){window.removeEventListener("mousemove",Ae)}},[be]);var Ce=V.map(function(e,n){return"scatter-"+n}),Pe=f({tickLabels:f({color:"#3f3f3f",fontSize:12},w),axisLabel:f({color:"#3f3f3f",padding:44,fontSize:14,fontWeight:"bold"},y)},I),Le=f({tickLabels:f({fontSize:12},W),axisLabel:f({color:"#3f3f3f",padding:64,fontSize:14,fontWeight:"bold"},R)},q);function ze(){Se.current&&ue(Se.current.clientWidth)}function Fe(e){"Escape"===e.key&&(ge(null),ye(!1))}function Ae(){!be&&ye(!0)}function Ee(e){return null===pe||pe===e?1:.1}function Te(e){se.includes(e)?le(se.filter(function(n){return n!==e})):le(se.concat([e]))}function Oe(e){he(e)}function Re(){he(null)}var De=function(e,n){if(n.current){var t=parseInt(n.current.getAttribute("data-line-index"),10);!e.includes(t)&&e.push(parseInt(n.current.getAttribute("data-line-index"),10))}return e},We=function(e){var n=parseInt(e.current.getAttribute("data-line-index"),10),t=parseInt(e.current.getAttribute("data-point-index"),10),r=M.current.reduce(De,[]);return{currentLineIndex:n,currentPointIndex:t,lineIndexes:r,lowestLineIndex:r[0],highestLineIndex:r[r.length-1]}},qe=function(e,n){return function(t){return t.current&&parseInt(t.current.getAttribute("data-line-index"),10)===e&&parseInt(t.current.getAttribute("data-point-index"),10)===n}};function He(e){"Tab"===e.key&&e.shiftKey&&B&&B.current&&M.current.find(function(e){return e.current===B.current})&&(e.preventDefault(),B.current.focus())}/*#__PURE__*/return o.jsxs(U,{ref:Se,children:[/*#__PURE__*/o.jsx(X,{onKeyDown:function(e){var n=e.shiftKey;switch(e.key){case"Tab":e.preventDefault(),B.current=M.current.find(function(e){return e.current===document.activeElement}).current,n?ne.current&&ne.current.focus():je.current&&je.current.focus();break;case"ArrowRight":var t,r=M.current.findIndex(function(e){return e.current===document.activeElement});void 0!==r&&(r===M.current.length-1?null==(t=M.current[0])||null==(t=t.current)||t.focus():M.current[r+1].current.focus());break;case"ArrowLeft":var o=M.current.findIndex(function(e){return e.current===document.activeElement});void 0!==o&&(0===o?M.current[M.current.length-1].current.focus():M.current[o-1].current.focus());break;case"ArrowUp":e.preventDefault();var a=M.current.find(function(e){return e.current===document.activeElement});if(a&&a.current){var i=We(a),s=i.currentLineIndex,l=i.currentPointIndex,c=i.lineIndexes;if(s===i.lowestLineIndex)M.current.find(qe(i.highestLineIndex,l)).current.focus();else{var d=c[c.indexOf(s)-1];M.current.find(qe(d,l)).current.focus()}}break;case"ArrowDown":e.preventDefault();var u=M.current.find(function(e){return e.current===document.activeElement});if(u&&u.current){var f=We(u),p=f.currentLineIndex,h=f.currentPointIndex,m=f.lineIndexes;if(p===f.highestLineIndex)M.current.find(qe(f.lowestLineIndex,h)).current.focus();else{var b=m[m.indexOf(p)+1];M.current.find(qe(b,h)).current.focus()}}}},children:/*#__PURE__*/o.jsxs(i.VictoryChart,f({domainPadding:32,height:400,padding:{top:0,left:80,right:0,bottom:62},theme:G,width:de,containerComponent:/*#__PURE__*/o.jsx(i.VictoryVoronoiContainer,{name:"xAxisGroupLabel",voronoiBlacklist:Ce,voronoiDimension:"x",labels:we&&xe?function(){return" "}:void 0,labelComponent:xe?/*#__PURE__*/o.jsx(i.VictoryTooltip,{flyoutComponent:/*#__PURE__*/o.jsx(E,{dataLength:V.length,hiddenData:se})}):void 0,role:"presentation",voronoiPadding:32})},s,{children:[/*#__PURE__*/o.jsx(i.VictoryAxis,f({},H,{dependentAxis:!0,style:Le})),V.map(function(e,n){var t=e.data;return!se.includes(n)&&/*#__PURE__*/o.jsx(i.VictoryLine,f({style:{data:{opacity:Ee(n),stroke:oe.iterableColors[n],strokeWidth:"3"},parent:{border:oe.colors.neutral400}},data:t,labelComponent:/*#__PURE__*/o.jsx(o.Fragment,{}),x:te,y:re},c),"line"+n)}),/*#__PURE__*/o.jsx(i.VictoryAxis,f({},j,{style:Pe,gridComponent:/*#__PURE__*/o.jsx(S,{events:{onMouseEnter:function(){return Ie(!0)},onMouseLeave:function(){return Ie(!1)}}})})),V.map(function(e,n){var t=e.data;return!se.includes(n)&&/*#__PURE__*/o.jsx(i.VictoryScatter,f({name:"scatter-"+n,events:[{target:"data",eventHandlers:{onBlur:function(){return ye(!0),ge(null),[{target:"labels",mutation:function(){return{active:void 0}}}]},onClick:function(){return[{target:"labels",mutation:function(e){return ge(e.datum.lineIndex+"-"+e.datum.index),{active:!0}}}]},onFocus:function(){return ye(!1),[{target:"labels",mutation:function(e){return ge(e.datum.lineIndex+"-"+e.datum.index),{active:!0}}}]},onMouseEnter:function(){return ye(!1),[{target:"labels",mutation:function(e){return ge(e.datum.lineIndex+"-"+e.datum.index),{active:!0}}}]},onMouseLeave:function(){ge(null),ye(!0)}}}],style:{data:{fill:oe.colors.neutral100,opacity:Ee(n),stroke:oe.iterableColors[n],strokeWidth:2}},size:5,data:t.map(function(e,t){return f({index:t,lineIndex:n},e)}),dataComponent:/*#__PURE__*/o.jsx(P,{lineIndex:n,pointRefArray:M,registerPoint:Q,unregisterPoint:ee}),labels:function(){return""},labelComponent:/*#__PURE__*/o.jsx(i.VictoryTooltip,{text:"",flyoutComponent:/*#__PURE__*/o.jsx(A,{index:n,showTooltip:be})}),x:te,y:re},h),"scatter"+n)})]}))}),/*#__PURE__*/o.jsxs(Z,{children:[/*#__PURE__*/o.jsx(J,{theme:oe,children:ae.charts.line.dataLegendsLabel}),V.map(function(e,n){var t=e.name,r=ae.charts.line.legendButtonAriaLabel.replace(/\{name\}/g,t);/*#__PURE__*/return o.jsx(O,{"aria-label":r,color:oe.iterableColors[n],dataIndex:n,isHidden:se.includes(n),name:t,onClick:Te,onKeyDown:0===n?He:void 0,focusCurrentLine:Oe,ref:0===n?je:void 0,resetLineFocus:Re},n)})]})]})}var ee,ne,te,re,oe,ae,ie=["description","title","testId","type"],se=t.styled.span(ee||(ee=h(["\n color: ",";\n font-size: ",";\n font-weight: 600;\n font-family: ",";\n line-height: ",";\n margin: 0 0 12px 0;\n"])),function(e){return e.theme.colors.neutral},function(e){return e.theme.typeScale.size04.fontSize},function(e){return e.theme.bodyFont},function(e){return e.theme.typeScale.size04.lineHeight}),le=t.styled(t.Paragraph)(ne||(ne=h(["\n font-size: ",";\n margin: 0 0 18px 0;\n"])),function(e){return e.theme.typeScale.size02.fontSize}),ce=t.styled(t.TabsContainer)(te||(te=h(["\n width: 800px;\n ul {\n box-shadow: inset 0 -1px 0 ",";\n }\n"])),function(e){return e.theme.colors.neutral300}),de=t.styled(t.TabPanel)(re||(re=h(["\n padding: 22px 0;\n"]))),ue=t.styled(t.Card)(oe||(oe=h(["\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);\n display: ",";\n right: ",";\n max-height: ",";\n opacity: ",";\n outline: 0;\n overflow-y: auto;\n padding: ","\n ",";\n position: absolute;\n transition: opacity 0.3s;\n white-space: nowrap;\n z-index: 2;\n\n ","\n"])),function(e){return e.isOpen?"block":"none"},function(e){return e.theme.spaceScale.spacing02},function(e){return e.maxHeight?e.maxHeight:e.theme.dropdown.content.maxHeight},function(e){return e.isOpen?"1":"0"},function(e){return e.theme.spaceScale.spacing05},function(e){return e.theme.spaceScale.spacing05},function(e){return e.width&&n.css(ae||(ae=h(["\n white-space: normal;\n width: ",";\n "])),e.width)});function fe(e,n){var a,i,s,l=e.description,c=e.title,u=e.type,h=p(e,ie),m=d.useRef(null),b=d.useRef(null),g=d.useContext(t.ThemeContext),v=d.useContext(t.I18nContext),x=t.useDescendants(),y=x[0],k=x[1],I=x[2],S=d.useState(!1),j=S[0],C=S[1];/*#__PURE__*/return o.jsxs("div",{ref:n,children:[/*#__PURE__*/o.jsx(se,{theme:g,children:c}),l&&/*#__PURE__*/o.jsx(le,{theme:g,visualStyle:t.TypographyVisualStyle.bodySmall,children:l}),/*#__PURE__*/o.jsxs(ce,{theme:g,children:[/*#__PURE__*/o.jsxs(t.Tabs,{children:[/*#__PURE__*/o.jsx(t.Tab,{children:v.charts.line.chartTabLabel}),/*#__PURE__*/o.jsx(t.Tab,{children:v.charts.line.dataTabLabel}),/*#__PURE__*/o.jsxs("div",{onBlur:function(){C(!1)},style:{display:"inline-block",marginLeft:"auto"},children:[/*#__PURE__*/o.jsx(t.Tooltip,{content:v.charts.line.keyboardInstructionsTooltip,ref:m,children:/*#__PURE__*/o.jsx(t.IconButton,{"aria-controls":"keyboardInstructions","aria-label":v.charts.line.keyboardInstructionsTooltip,"aria-expanded":Boolean(j),icon:/*#__PURE__*/o.jsx(r.KeyboardIcon,{}),onClick:function(){C(function(e){return!e})},onKeyDown:function(e){var n=e.shiftKey;switch(e.key){case"Escape":C(!1);break;case"Tab":!n&&b&&b.current&&y.current.find(function(e){return e.current===b.current})&&(e.preventDefault(),b.current.focus())}},variant:t.ButtonVariant.link})}),/*#__PURE__*/o.jsx(t.Announce,{children:/*#__PURE__*/o.jsxs(ue,{id:"keyboardInstructions",isOpen:j,theme:g,width:"350px",children:[/*#__PURE__*/o.jsx(t.Paragraph,{visualStyle:t.TypographyVisualStyle.headingXSmall,style:{margin:"0 0 16px"},children:v.charts.line.keyboardInstructionsHeader}),v.charts.line.keyboardInstructions]})})]})]}),/*#__PURE__*/o.jsxs(t.TabPanelsContainer,{children:[/*#__PURE__*/o.jsx(de,{theme:g,children:"line"===u&&/*#__PURE__*/o.jsx(Q,f({},h,{lastFocusedScatterPoint:b,pointRefArray:y,registerPoint:k,tabRef:m,unregisterPoint:I}))}),/*#__PURE__*/o.jsx(de,{theme:g,children:/*#__PURE__*/o.jsx(w,{data:h.data,xData:{keyValue:h.x,label:null==(a=h.componentProps)||null==(a=a.xAxis)?void 0:a.label,tickFormat:null==(i=h.componentProps)||null==(i=i.xAxis)?void 0:i.tickFormat},yData:{keyValue:h.y,tickFormat:null==(s=h.componentProps)||null==(s=s.yAxis)?void 0:s.tickFormat}})})]})]})]})}var pe=/*#__PURE__*/d.forwardRef(fe);function he(){return he=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},he.apply(null,arguments)}function me(e,n){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},me(e,n)}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}function ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ge=function(){return!!e})()}function ve(e){var n="function"==typeof Map?new Map:void 0;return ve=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(n){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return function(e,n,t){if(ge())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,n);var o=new(e.bind.apply(e,r));return t&&me(o,t.prototype),o}(e,arguments,be(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),me(t,e)},ve(e)}var xe={1:"Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).\n\n",2:"Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).\n\n",3:"Passed an incorrect argument to a color function, please pass a string representation of a color.\n\n",4:"Couldn't generate valid rgb string from %s, it returned %s.\n\n",5:"Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.\n\n",6:"Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).\n\n",7:"Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).\n\n",8:"Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.\n\n",9:"Please provide a number of steps to the modularScale helper.\n\n",10:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",11:'Invalid value passed as base to modularScale, expected number or em string but got "%s"\n\n',12:'Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.\n\n',13:'Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.\n\n',14:'Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',15:'Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.\n\n',16:"You must provide a template to this method.\n\n",17:"You passed an unsupported selector state to this method.\n\n",18:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",19:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",20:"expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",21:"expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n",22:"expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n",23:"fontFace expects a name of a font-family.\n\n",24:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",25:"fontFace expects localFonts to be an array.\n\n",26:"fontFace expects fileFormats to be an array.\n\n",27:"radialGradient requries at least 2 color-stops to properly render.\n\n",28:"Please supply a filename to retinaImage() as the first argument.\n\n",29:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",30:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",31:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation\n\n",32:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')\n\n",33:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation\n\n",34:"borderRadius expects a radius value as a string or number as the second argument.\n\n",35:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',36:"Property must be a string value.\n\n",37:"Syntax Error at %s.\n\n",38:"Formula contains a function that needs parentheses at %s.\n\n",39:"Formula is missing closing parenthesis at %s.\n\n",40:"Formula has too many closing parentheses at %s.\n\n",41:"All values in a formula must have the same unit or be unitless.\n\n",42:"Please provide a number of steps to the modularScale helper.\n\n",43:"Please pass a number or one of the predefined scales to the modularScale helper as the ratio.\n\n",44:"Invalid value passed as base to modularScale, expected number or em/rem string but got %s.\n\n",45:"Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.\n\n",46:"Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.\n\n",47:"minScreen and maxScreen must be provided as stringified numbers with the same units.\n\n",48:"fromSize and toSize must be provided as stringified numbers with the same units.\n\n",49:"Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.\n\n",50:"Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.\n\n",51:"Expects the first argument object to have the properties prop, fromSize, and toSize.\n\n",52:"fontFace expects either the path to the font file(s) or a name of a local copy.\n\n",53:"fontFace expects localFonts to be an array.\n\n",54:"fontFace expects fileFormats to be an array.\n\n",55:"fontFace expects a name of a font-family.\n\n",56:"linearGradient requries at least 2 color-stops to properly render.\n\n",57:"radialGradient requries at least 2 color-stops to properly render.\n\n",58:"Please supply a filename to retinaImage() as the first argument.\n\n",59:"Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.\n\n",60:"Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n",61:"Property must be a string value.\n\n",62:"borderRadius expects a radius value as a string or number as the second argument.\n\n",63:'borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.\n\n',64:"The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.\n\n",65:"To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').\n\n",66:"The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.\n\n",67:"You must provide a template to this method.\n\n",68:"You passed an unsupported selector state to this method.\n\n",69:'Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.\n\n',70:'Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.\n\n',71:'Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.\n\n',72:'Passed invalid base value %s to %s(), please pass a value like "12px" or 12.\n\n',73:"Please provide a valid CSS variable.\n\n",74:"CSS variable not found and no default was provided.\n\n",75:"important requires a valid style object, got a %s instead.\n\n",76:"fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.\n\n",77:'remToPx expects a value in "rem" but you provided it in "%s".\n\n',78:'base must be set in "px" or "%" but you set it in "%s".\n'};function ye(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,o=n[0],a=[];for(r=1;r<n.length;r+=1)a.push(n[r]);return a.forEach(function(e){o=o.replace(/%[a-z]/,e)}),o}var ke=/*#__PURE__*/function(e){var n,t;function r(n){var t;if("production"===process.env.NODE_ENV)t=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+n+" for more information.")||this;else{for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];t=e.call(this,ye.apply(void 0,[xe[n]].concat(o)))||this}return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}return t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,me(n,t),r}(/*#__PURE__*/ve(Error));function we(e){return Math.round(255*e)}function Ie(e,n,t){return we(e)+","+we(n)+","+we(t)}function Se(e,n,t,r){if(void 0===r&&(r=Ie),0===n)return r(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*n,i=a*(1-Math.abs(o%2-1)),s=0,l=0,c=0;o>=0&&o<1?(s=a,l=i):o>=1&&o<2?(s=i,l=a):o>=2&&o<3?(l=a,c=i):o>=3&&o<4?(l=i,c=a):o>=4&&o<5?(s=i,c=a):o>=5&&o<6&&(s=a,c=i);var d=t-a/2;return r(s+d,l+d,c+d)}var je={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Ce=/^#[a-fA-F0-9]{6}$/,Pe=/^#[a-fA-F0-9]{8}$/,Le=/^#[a-fA-F0-9]{3}$/,ze=/^#[a-fA-F0-9]{4}$/,Fe=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,Ae=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Ee=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,Te=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,Oe=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function Re(e){var n=e.toString(16);return 1===n.length?"0"+n:n}var De,We,qe,He=function e(n,t,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=t?n.apply(this,o):e(n,t,o)}}(De=function(e,n){if("transparent"===n)return n;var t,r=function(e){if("string"!=typeof e)throw new ke(3);var n=function(e){if("string"!=typeof e)return e;var n=e.toLowerCase();return je[n]?"#"+je[n]:e}(e);if(n.match(Ce))return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16)};if(n.match(Pe)){var t=parseFloat((parseInt(""+n[7]+n[8],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[2],16),green:parseInt(""+n[3]+n[4],16),blue:parseInt(""+n[5]+n[6],16),alpha:t}}if(n.match(Le))return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16)};if(n.match(ze)){var r=parseFloat((parseInt(""+n[4]+n[4],16)/255).toFixed(2));return{red:parseInt(""+n[1]+n[1],16),green:parseInt(""+n[2]+n[2],16),blue:parseInt(""+n[3]+n[3],16),alpha:r}}var o=Fe.exec(n);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=Ae.exec(n.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var i=Ee.exec(n);if(i){var s="rgb("+Se(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=Fe.exec(s);if(!l)throw new ke(4,n,s);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var c=Te.exec(n.substring(0,50));if(c){var d="rgb("+Se(parseInt(""+c[1],10),parseInt(""+c[2],10)/100,parseInt(""+c[3],10)/100)+")",u=Fe.exec(d);if(!u)throw new ke(4,n,d);return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10),alpha:parseFloat(""+c[4])>1?parseFloat(""+c[4])/100:parseFloat(""+c[4])}}throw new ke(5)}(n);return function(e){if("object"==typeof e)return e.alpha>=1?function(e,n,t){if("number"==typeof e&&"number"==typeof n&&"number"==typeof t)return Oe("#"+Re(e)+Re(n)+Re(t));if("object"==typeof e&&void 0===n&&void 0===t)return Oe("#"+Re(e.red)+Re(e.green)+Re(e.blue));throw new ke(6)}(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new ke(7)}(he({},r,{alpha:(t=+(100*("number"==typeof r.alpha?r.alpha:1)-100*parseFloat(e)).toFixed(2)/100,Math.max(0,Math.min(1,t)))}))},De.length,[]),_e=["testId","isInverse","type","dataSet","options"];exports.CarbonChartType=void 0,(qe=exports.CarbonChartType||(exports.CarbonChartType={})).area="area",qe.areaStacked="areaStacked",qe.bar="bar",qe.barGrouped="barGrouped",qe.barStacked="barStacked",qe.boxplot="boxplot",qe.bubble="bubble",qe.bullet="bullet",qe.donut="donut",qe.gauge="gauge",qe.histogram="histogram",qe.line="line",qe.lollipop="lollipop",qe.meter="meter",qe.pie="pie",qe.radar="radar",qe.scatter="scatter",qe.combo="combo";var Ve,Be=u.default.div(We||(We=h(["\n .cds--data-table thead tr th {\n background: "," !important;\n }\n .cds--data-table td,\n .cds--data-table tbody th {\n color: ",";\n }\n .cds--data-table tbody tr,\n .cds--data-table tbody tr td,\n .cds--data-table tbody tr th {\n color: ",";\n }\n .cds--data-table tr {\n block-size: 2.5rem;\n }\n\n .cds--cc--tooltip .content-box .datapoint-tooltip p {\n font-size: ",";\n padding: ",";\n color: ",";\n max-width: 142px;\n white-space: normal;\n }\n\n .cds--modal-container {\n clip-path: inset(0% 0% 0% 0% round ",");\n background: ",";\n .cds--data-table th {\n background: ",";\n }\n .cds--data-table td {\n border-top: 1px solid\n ",";\n border-bottom: 1px solid\n ",";\n background: ",";\n }\n .cds--data-table tr:hover td {\n background: ",";\n }\n }\n\n p,\n div,\n text,\n .cds--cc--axes g.axis .axis-title,\n .cds--cc--title p.title,\n .cds--cc--axes g.axis g.tick text {\n font-family: "," !important;\n color: ",";\n }\n\n .cds--cc--axes {\n overflow: visible;\n }\n\n div.cds--cc--legend {\n div.legend-item {\n div.checkbox {\n background: ",";\n border: none;\n width: ",";\n height: ",";\n svg {\n left: 2px;\n position: relative;\n }\n }\n p {\n font-size: ",";\n margin: 0 "," 0 0;\n }\n }\n }\n div.cds--cc--legend.has-deactivated-items {\n div.legend-item {\n div.checkbox {\n border: 1px solid\n ",";\n }\n div.checkbox.active {\n border: 1px solid transparent;\n }\n }\n }\n .chart-holder {\n .cds--cc--axes g.axis g.tick text {\n fill: ",";\n }\n .cds--cc--axes g.axis path.domain {\n stroke: ",";\n }\n .cds--cc--grid g.x.grid g.tick line,\n .cds--cc--grid g.y.grid g.tick line {\n stroke: ",";\n }\n .cds--cc--grid rect.chart-grid-backdrop.stroked {\n stroke: ",";\n }\n .cds--cc--skeleton .shimmer-effect-lines {\n filter: ",";\n }\n /* .chart-holder.cds--chart-holder.filled,\n .cds--cc--skeleton rect.chart-skeleton-backdrop,\n .cds--cc--grid rect.chart-grid-backdrop {\n } */\n\n .cds--cc--grid rect.chart-grid-backdrop {\n fill: transparent;\n }\n .cds--cc--scatter circle.dot.hovered {\n padding: 10px;\n }\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled {\n stroke-width: 6px;\n transition: 0.1s all linear;\n }\n .cds--cc--scatter circle.dot.hovered {\n stroke-width: 0.5em;\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ","\n )\n drop-shadow(\n -1px 0px 0px\n ","\n )\n drop-shadow(\n 0px 1px 0px\n ","\n )\n drop-shadow(\n 0px -1px 0px\n ","\n );\n }\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot.hovered {\n stroke-width: 15px;\n }\n .cds--cc--scatter-stacked circle.dot.hovered,\n .cds--cc--scatter-stacked circle.dot.unfilled,\n .cds--cc--scatter circle.dot.unfilled,\n .cds--cc--lollipop circle.dot.filled,\n .cds--cc--lollipop circle.dot.hovered {\n transition: 0.1s all linear;\n filter: drop-shadow(\n 1px 0px 0px\n ","\n )\n drop-shadow(\n -1px 0px 0px\n ","\n )\n drop-shadow(\n 0px 1px 0px\n ","\n )\n drop-shadow(\n 0px -1px 0px\n ","\n );\n }\n .cds--cc--lollipop .cds--cc--scatter circle.dot.hovered {\n transition: 0.1s all linear;\n stroke-width: 1.1em;\n }\n \n .cds--cc--tooltip {\n ","\n\n .cds--overflow-menu-options__btn:focus {\n outline-color: ",";\n }\n\n .cds--btn {\n min-height: auto;\n display: flex;\n flex: 0 auto;\n align-items: center;\n text-align: center;\n padding: 20px;\n margin: 0;\n line-height: ",";\n margin: 0;\n min-width: ",";\n overflow: hidden;\n padding:;\n position: relative;\n right: ",";\n text-align: center;\n height: 40px;\n font-family: ",";\n font-size: ",";\n border-radius: ",";\n font-weight: 500;\n }\n\n .cds--btn--primary {\n background: ",";\n color: ",";\n }\n\n *:focus {\n outline: 2px solid\n "," !important;\n outline-offset: 0;\n }\n .cds--overflow-menu-options__btn:focus,\n .cds--overflow-menu:focus,\n .cds--overflow-menu__trigger:focus,\n .toolbar-control:focus {\n outline: 2px solid\n "," !important;\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):focus\n div.checkbox,\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n border: ",";\n }\n div.cds--cc--legend.clickable\n div.legend-item:not(.additional):hover\n div.checkbox {\n box-shadow: 0 0 0 2px\n "," !important;\n }\n\n .cds--btn--primary {\n &:focus {\n outline: 2px solid\n ",";\n }\n outline-offset: 2px;\n border: none;\n box-shadow: none;\n }\n .cds--modal-header {\n background: ",";\n margin-bottom: 0;\n border-bottom: 1px solid\n ",";\n }\n .cds--modal-header__heading {\n font-weight: 600;\n }\n\n .cds--modal-close {\n position: absolute;\n top: 0;\n right: 0;\n &:focus {\n outline: 2px solid\n ",";\n border-color: none;\n }\n outline-offset: 0;\n border: none;\n }\n }\n\n .cds--modal-footer.cds--modal-footer {\n display: flex;\n align-items: center;\n border-top: 1px solid\n ",";\n background: "," !important;\n }\n .layout-child.header {\n height: auto !important;\n p {\n text-overflow: inherit;\n overflow: auto;\n white-space: normal;\n }\n }\n\n svg:not(:root) {\n overflow: visible;\n }\n\n .cds--cc--chart-wrapper text {\n font-size: ",";\n }\n\n g.center text,\n .pie-label {\n fill: ",";\n }\n\n // Zoom responsive tweaks\n\n @media screen and (max-width: 760px) {\n .cds--modal-container {\n overflow-y: auto;\n }\n .cds--chart-holder .cds--modal .cds--modal-container .cds--modal-content {\n overflow: visible;\n }\n .cds--chart-holder\n .cds--modal\n .cds--modal-container\n .cds--modal-content\n table\n th {\n position: relative;\n }\n }\n"])),function(e){return e.isInverse?e.theme.colors.primary700:""},function(e){return e.theme.colors.neutral700},function(e){return e.isInverse?e.theme.colors.neutral100:""},function(e){return e.theme.typeScale.size02.fontSize},function(e){return e.theme.spaceScale.spacing02},function(e){return e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral700},function(e){return e.theme.borderRadius},function(e){return e.isInverse?e.theme.colors.primary700:""},function(e){return e.isInverse?e.theme.colors.primary600:""},function(e){return e.isInverse?He(.8,e.theme.colors.neutral100):"inherit"},function(e){return e.isInverse?He(.8,e.theme.colors.neutral100):"inherit"},function(e){return e.isInverse?"#202565":""},function(e){return e.isInverse?e.theme.colors.primary600:""},function(e){return e.theme.bodyFont},function(e){return e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral700},function(e){return e.isInverse?e.theme.colors.neutral900:e.theme.colors.neutral100},function(e){return e.theme.spaceScale.spacing05},function(e){return e.theme.spaceScale.spacing05},function(e){return e.theme.typeScale.size03.fontSize},function(e){return e.theme.spaceScale.spacing03},function(e){return e.isInverse?e.theme.colors.neutral100:e.theme.colors.neutral900},function(e){return e.isInverse?e.theme.colors.neutral100:""},function(e){return e.isInverse?e.theme.colors.neutral100:""},function(e){return e.isInverse?He(.5,e.theme.colors.neutral100):""},function(e){return e.isInverse?e.theme.colors.neutral100:""},function(e){return e.isInverse?"invert(1)":""},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return((e.isInverse?e.theme.chartColorsInverse:e.theme.chartColors)||[]).reduce(function(n,t,r){return n+".tooltip-"+e.groupsLength+"-1-"+(r+1)+" { background-color: "+t+"; }"},"")},function(e){return e.isInverse?e.theme.colors.focusInverse:""},function(e){return e.theme.typeScale.size03.lineHeight},function(e){return e.theme.spaceScale.spacing13},function(e){return e.theme.spaceScale.spacing04},function(e){return e.theme.bodyFont},function(e){return e.theme.typeScale.size03.fontSize},function(e){return e.theme.borderRadius},function(e){return e.isInverse?e.theme.colors.tertiary500:e.theme.colors.primary},function(e){return e.isInverse?e.theme.colors.neutral900:""},function(e){return e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus},function(e){return e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus},function(e){return e.isInverse?"1px solid "+e.theme.colors.focusInverse:""},function(e){return e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus},function(e){return e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.isInverse?He(.8,e.theme.colors.neutral100):e.theme.colors.neutral300},function(e){return e.isInverse?e.theme.colors.focusInverse:e.theme.colors.focus},function(e){return e.isInverse?He(.8,e.theme.colors.neutral100):e.theme.colors.neutral300},function(e){return e.isInverse?e.theme.colors.primary600:e.theme.colors.neutral100},function(e){return e.theme.typeScale.size02.fontSize},function(e){return e.isInverse?e.theme.colors.neutral100:""});!function(e){e.WHITE="white",e.G100="g100",e.G90="g90",e.G10="g10"}(Ve||(Ve={})),exports.CarbonChart=/*#__PURE__*/d.forwardRef(function(e,n){var r=e.testId,a=e.isInverse,i=e.type,l=e.dataSet,c=e.options,u=p(e,_e),h=d.useContext(t.ThemeContext),m=t.useIsInverse(a),b={area:s.AreaChart,areaStacked:s.StackedAreaChart,bar:s.SimpleBarChart,barGrouped:s.GroupedBarChart,barStacked:s.StackedBarChart,donut:s.DonutChart,line:s.LineChart,lollipop:s.LollipopChart,pie:s.PieChart,radar:s.RadarChart,boxplot:s.BoxplotChart,bubble:s.BubbleChart,bullet:s.BulletChart,gauge:s.GaugeChart,histogram:s.HistogramChart,meter:s.MeterChart,scatter:s.ScatterChart,combo:s.ComboChart};function g(){var e={},n=l.map(function(e){return"group"in e?e.group:null}),t=n.filter(function(e,t){return n.indexOf(e)===t}),r=c.colors||[],o=[].concat(r,h.chartColors),a=[].concat(r,h.chartColorsInverse);return t.forEach(function(n,r){return t.length<=o.length?e[n||"null"]=m?a[r]:o[r]:{}}),e}var v=f({},c,{theme:m?Ve.G100:Ve.WHITE,color:{scale:g()},tooltip:{truncation:{type:"none"}}}),x=b[i];d.useEffect(function(){document.querySelectorAll(".graph-frame ").forEach(function(e){e.setAttribute("aria-label","Interactive chart")})});var y=Object.keys(g()).length;/*#__PURE__*/return o.jsx(Be,f({"data-testid":r,ref:n,isInverse:m,theme:h,className:"carbon-chart-wrapper",groupsLength:y<6?y:14},u,{children:/*#__PURE__*/o.jsx(x,{data:l,options:v})}))}),exports.Chart=pe;
2
2
  //# sourceMappingURL=charts.js.map