@fluentui/react-charting 5.16.34 → 5.16.36
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.
- package/CHANGELOG.json +67 -1
- package/CHANGELOG.md +26 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/AreaChart/AreaChart.base.js +13 -13
- package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.base.js +9 -9
- package/lib/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib/components/CommonComponents/CartesianChart.styles.js +2 -2
- package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib/components/DonutChart/Arc/Arc.js +1 -1
- package/lib/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.base.js +1 -1
- package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib/components/DonutChart/DonutChart.styles.js +1 -1
- package/lib/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib/components/DonutChart/Pie/Pie.js +1 -1
- package/lib/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +4 -4
- package/lib/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib/components/HeatMapChart/HeatMapChart.base.js +13 -13
- package/lib/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +5 -5
- package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +6 -6
- package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib/components/Legends/Legends.base.js +4 -4
- package/lib/components/Legends/Legends.base.js.map +1 -1
- package/lib/components/Legends/Legends.styles.js +3 -3
- package/lib/components/Legends/Legends.styles.js.map +1 -1
- package/lib/components/Legends/shape.js +10 -10
- package/lib/components/Legends/shape.js.map +1 -1
- package/lib/components/LineChart/LineChart.base.js +41 -41
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/components/PieChart/Arc/Arc.js +1 -1
- package/lib/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib/components/PieChart/Pie/Pie.js +2 -2
- package/lib/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib/components/SankeyChart/SankeyChart.base.js +6 -6
- package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib/components/Sparkline/Sparkline.base.js +1 -1
- package/lib/components/Sparkline/Sparkline.base.js.map +1 -1
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +4 -4
- package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib/components/StackedBarChart/StackedBarChart.styles.js +2 -2
- package/lib/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
- package/lib/components/TreeChart/TreeChart.base.js +8 -8
- package/lib/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js +7 -7
- package/lib/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +17 -17
- package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
- package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
- package/lib/utilities/utilities.js +10 -10
- package/lib/utilities/utilities.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/AreaChart.js +1 -1
- package/lib-amd/AreaChart.js.map +1 -1
- package/lib-amd/CartesianChart.js +1 -1
- package/lib-amd/CartesianChart.js.map +1 -1
- package/lib-amd/DonutChart.js +1 -1
- package/lib-amd/DonutChart.js.map +1 -1
- package/lib-amd/GroupedVerticalBarChart.js +1 -1
- package/lib-amd/GroupedVerticalBarChart.js.map +1 -1
- package/lib-amd/HeatMapChart.js +1 -1
- package/lib-amd/HeatMapChart.js.map +1 -1
- package/lib-amd/HorizontalBarChart.js +1 -1
- package/lib-amd/HorizontalBarChart.js.map +1 -1
- package/lib-amd/HorizontalBarChartWithAxis.js +1 -1
- package/lib-amd/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-amd/Legends.js +1 -1
- package/lib-amd/Legends.js.map +1 -1
- package/lib-amd/LineChart.js +1 -1
- package/lib-amd/LineChart.js.map +1 -1
- package/lib-amd/PieChart.js +1 -1
- package/lib-amd/PieChart.js.map +1 -1
- package/lib-amd/SankeyChart.js +1 -1
- package/lib-amd/SankeyChart.js.map +1 -1
- package/lib-amd/Sparkline.js +1 -1
- package/lib-amd/Sparkline.js.map +1 -1
- package/lib-amd/StackedBarChart.js +1 -1
- package/lib-amd/StackedBarChart.js.map +1 -1
- package/lib-amd/TreeChart.js +1 -1
- package/lib-amd/TreeChart.js.map +1 -1
- package/lib-amd/VerticalBarChart.js +1 -1
- package/lib-amd/VerticalBarChart.js.map +1 -1
- package/lib-amd/VerticalStackedBarChart.js +1 -1
- package/lib-amd/VerticalStackedBarChart.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.base.js +42 -42
- package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.js +1 -1
- package/lib-amd/components/AreaChart/AreaChart.js.map +1 -1
- package/lib-amd/components/AreaChart/AreaChart.styles.js +1 -1
- package/lib-amd/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib-amd/components/AreaChart/index.js +2 -2
- package/lib-amd/components/AreaChart/index.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.base.js +41 -41
- package/lib-amd/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.js +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js +6 -6
- package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-amd/components/CommonComponents/index.js +2 -2
- package/lib-amd/components/CommonComponents/index.js.map +1 -1
- package/lib-amd/components/DonutChart/Arc/Arc.js +6 -6
- package/lib-amd/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-amd/components/DonutChart/Arc/index.js +2 -2
- package/lib-amd/components/DonutChart/Arc/index.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.base.js +10 -10
- package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.js +1 -1
- package/lib-amd/components/DonutChart/DonutChart.js.map +1 -1
- package/lib-amd/components/DonutChart/DonutChart.styles.js +1 -1
- package/lib-amd/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib-amd/components/DonutChart/Pie/Pie.js +4 -4
- package/lib-amd/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-amd/components/DonutChart/Pie/index.js +2 -2
- package/lib-amd/components/DonutChart/Pie/index.js.map +1 -1
- package/lib-amd/components/DonutChart/index.js +3 -3
- package/lib-amd/components/DonutChart/index.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +23 -23
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib-amd/components/GroupedVerticalBarChart/index.js +2 -2
- package/lib-amd/components/GroupedVerticalBarChart/index.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js +25 -25
- package/lib-amd/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.js +1 -1
- package/lib-amd/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib-amd/components/HeatMapChart/index.js +2 -2
- package/lib-amd/components/HeatMapChart/index.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +17 -17
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js +2 -2
- package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
- package/lib-amd/components/HorizontalBarChart/index.js +3 -3
- package/lib-amd/components/HorizontalBarChart/index.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +36 -36
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib-amd/components/HorizontalBarChartWithAxis/index.js +2 -2
- package/lib-amd/components/HorizontalBarChartWithAxis/index.js.map +1 -1
- package/lib-amd/components/Legends/Legends.base.js +16 -16
- package/lib-amd/components/Legends/Legends.base.js.map +1 -1
- package/lib-amd/components/Legends/Legends.js +1 -1
- package/lib-amd/components/Legends/Legends.js.map +1 -1
- package/lib-amd/components/Legends/Legends.styles.js +8 -8
- package/lib-amd/components/Legends/Legends.styles.js.map +1 -1
- package/lib-amd/components/Legends/index.js +3 -3
- package/lib-amd/components/Legends/index.js.map +1 -1
- package/lib-amd/components/Legends/shape.js +11 -11
- package/lib-amd/components/Legends/shape.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.js +78 -78
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.js +1 -1
- package/lib-amd/components/LineChart/LineChart.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.styles.js +1 -1
- package/lib-amd/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js +3 -3
- package/lib-amd/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.js +3 -3
- package/lib-amd/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
- package/lib-amd/components/LineChart/index.js +3 -3
- package/lib-amd/components/LineChart/index.js.map +1 -1
- package/lib-amd/components/PieChart/Arc/Arc.js +5 -5
- package/lib-amd/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib-amd/components/PieChart/Arc/index.js +2 -2
- package/lib-amd/components/PieChart/Arc/index.js.map +1 -1
- package/lib-amd/components/PieChart/Pie/Pie.js +3 -3
- package/lib-amd/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib-amd/components/PieChart/Pie/index.js +2 -2
- package/lib-amd/components/PieChart/Pie/index.js.map +1 -1
- package/lib-amd/components/PieChart/PieChart.base.js +2 -2
- package/lib-amd/components/PieChart/PieChart.base.js.map +1 -1
- package/lib-amd/components/PieChart/PieChart.js +1 -1
- package/lib-amd/components/PieChart/PieChart.js.map +1 -1
- package/lib-amd/components/PieChart/PieChart.styles.js +1 -1
- package/lib-amd/components/PieChart/PieChart.styles.js.map +1 -1
- package/lib-amd/components/PieChart/index.js +2 -2
- package/lib-amd/components/PieChart/index.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.base.js +27 -27
- package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.js +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js +1 -1
- package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib-amd/components/SankeyChart/index.js +2 -2
- package/lib-amd/components/SankeyChart/index.js.map +1 -1
- package/lib-amd/components/Sparkline/Sparkline.base.js +9 -9
- package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -1
- package/lib-amd/components/Sparkline/Sparkline.js +1 -1
- package/lib-amd/components/Sparkline/Sparkline.js.map +1 -1
- package/lib-amd/components/Sparkline/Sparkline.styles.js +1 -1
- package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib-amd/components/Sparkline/index.js +2 -2
- package/lib-amd/components/Sparkline/index.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +15 -15
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js +1 -1
- package/lib-amd/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +11 -11
- package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.js +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js +3 -3
- package/lib-amd/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
- package/lib-amd/components/StackedBarChart/index.js +5 -5
- package/lib-amd/components/StackedBarChart/index.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.base.js +20 -20
- package/lib-amd/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.js +1 -1
- package/lib-amd/components/TreeChart/TreeChart.js.map +1 -1
- package/lib-amd/components/TreeChart/TreeChart.styles.js +4 -4
- package/lib-amd/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib-amd/components/TreeChart/index.js +2 -2
- package/lib-amd/components/TreeChart/index.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js +33 -33
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js +1 -1
- package/lib-amd/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib-amd/components/VerticalBarChart/index.js +2 -2
- package/lib-amd/components/VerticalBarChart/index.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +36 -36
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +1 -1
- package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib-amd/components/VerticalStackedBarChart/index.js +2 -2
- package/lib-amd/components/VerticalStackedBarChart/index.js.map +1 -1
- package/lib-amd/index.js +19 -19
- package/lib-amd/index.js.map +1 -1
- package/lib-amd/types/index.js +2 -2
- package/lib-amd/types/index.js.map +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js +6 -6
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
- package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
- package/lib-amd/utilities/ChartHoverCard/index.js +3 -3
- package/lib-amd/utilities/ChartHoverCard/index.js.map +1 -1
- package/lib-amd/utilities/FocusableTooltipText.js +3 -3
- package/lib-amd/utilities/FocusableTooltipText.js.map +1 -1
- package/lib-amd/utilities/index.js +3 -3
- package/lib-amd/utilities/index.js.map +1 -1
- package/lib-amd/utilities/utilities.js +77 -77
- package/lib-amd/utilities/utilities.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/AreaChart.js +1 -1
- package/lib-commonjs/AreaChart.js.map +1 -1
- package/lib-commonjs/CartesianChart.js +1 -1
- package/lib-commonjs/CartesianChart.js.map +1 -1
- package/lib-commonjs/DonutChart.js +1 -1
- package/lib-commonjs/DonutChart.js.map +1 -1
- package/lib-commonjs/GroupedVerticalBarChart.js +1 -1
- package/lib-commonjs/GroupedVerticalBarChart.js.map +1 -1
- package/lib-commonjs/HeatMapChart.js +1 -1
- package/lib-commonjs/HeatMapChart.js.map +1 -1
- package/lib-commonjs/HorizontalBarChart.js +1 -1
- package/lib-commonjs/HorizontalBarChart.js.map +1 -1
- package/lib-commonjs/HorizontalBarChartWithAxis.js +1 -1
- package/lib-commonjs/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-commonjs/Legends.js +1 -1
- package/lib-commonjs/Legends.js.map +1 -1
- package/lib-commonjs/LineChart.js +1 -1
- package/lib-commonjs/LineChart.js.map +1 -1
- package/lib-commonjs/PieChart.js +1 -1
- package/lib-commonjs/PieChart.js.map +1 -1
- package/lib-commonjs/SankeyChart.js +1 -1
- package/lib-commonjs/SankeyChart.js.map +1 -1
- package/lib-commonjs/Sparkline.js +1 -1
- package/lib-commonjs/Sparkline.js.map +1 -1
- package/lib-commonjs/StackedBarChart.js +1 -1
- package/lib-commonjs/StackedBarChart.js.map +1 -1
- package/lib-commonjs/TreeChart.js +1 -1
- package/lib-commonjs/TreeChart.js.map +1 -1
- package/lib-commonjs/VerticalBarChart.js +1 -1
- package/lib-commonjs/VerticalBarChart.js.map +1 -1
- package/lib-commonjs/VerticalStackedBarChart.js +1 -1
- package/lib-commonjs/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.base.js +42 -42
- package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.js +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.js.map +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.styles.js +1 -1
- package/lib-commonjs/components/AreaChart/AreaChart.styles.js.map +1 -1
- package/lib-commonjs/components/AreaChart/index.js +2 -2
- package/lib-commonjs/components/AreaChart/index.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js +41 -41
- package/lib-commonjs/components/CommonComponents/CartesianChart.base.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.js +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +6 -6
- package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
- package/lib-commonjs/components/CommonComponents/index.js +2 -2
- package/lib-commonjs/components/CommonComponents/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/Arc.js +6 -6
- package/lib-commonjs/components/DonutChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Arc/index.js +2 -2
- package/lib-commonjs/components/DonutChart/Arc/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.base.js +10 -10
- package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.js +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.js.map +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js +1 -1
- package/lib-commonjs/components/DonutChart/DonutChart.styles.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/Pie.js +4 -4
- package/lib-commonjs/components/DonutChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/DonutChart/Pie/index.js +2 -2
- package/lib-commonjs/components/DonutChart/Pie/index.js.map +1 -1
- package/lib-commonjs/components/DonutChart/index.js +3 -3
- package/lib-commonjs/components/DonutChart/index.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js +23 -23
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/GroupedVerticalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js +2 -2
- package/lib-commonjs/components/GroupedVerticalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js +25 -25
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.base.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js +1 -1
- package/lib-commonjs/components/HeatMapChart/HeatMapChart.js.map +1 -1
- package/lib-commonjs/components/HeatMapChart/index.js +2 -2
- package/lib-commonjs/components/HeatMapChart/index.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +17 -17
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js +2 -2
- package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChart/index.js +3 -3
- package/lib-commonjs/components/HorizontalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +36 -36
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.styles.js.map +1 -1
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js +2 -2
- package/lib-commonjs/components/HorizontalBarChartWithAxis/index.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.base.js +16 -16
- package/lib-commonjs/components/Legends/Legends.base.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.js +1 -1
- package/lib-commonjs/components/Legends/Legends.js.map +1 -1
- package/lib-commonjs/components/Legends/Legends.styles.js +8 -8
- package/lib-commonjs/components/Legends/Legends.styles.js.map +1 -1
- package/lib-commonjs/components/Legends/index.js +3 -3
- package/lib-commonjs/components/Legends/index.js.map +1 -1
- package/lib-commonjs/components/Legends/shape.js +11 -11
- package/lib-commonjs/components/Legends/shape.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.js +78 -78
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.js +1 -1
- package/lib-commonjs/components/LineChart/LineChart.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.styles.js +1 -1
- package/lib-commonjs/components/LineChart/LineChart.styles.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js +3 -3
- package/lib-commonjs/components/LineChart/eventAnnotation/EventAnnotation.js.map +1 -1
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js +3 -3
- package/lib-commonjs/components/LineChart/eventAnnotation/Textbox.js.map +1 -1
- package/lib-commonjs/components/LineChart/index.js +3 -3
- package/lib-commonjs/components/LineChart/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/Arc.js +5 -5
- package/lib-commonjs/components/PieChart/Arc/Arc.js.map +1 -1
- package/lib-commonjs/components/PieChart/Arc/index.js +2 -2
- package/lib-commonjs/components/PieChart/Arc/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/Pie.js +3 -3
- package/lib-commonjs/components/PieChart/Pie/Pie.js.map +1 -1
- package/lib-commonjs/components/PieChart/Pie/index.js +2 -2
- package/lib-commonjs/components/PieChart/Pie/index.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.base.js +2 -2
- package/lib-commonjs/components/PieChart/PieChart.base.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.js +1 -1
- package/lib-commonjs/components/PieChart/PieChart.js.map +1 -1
- package/lib-commonjs/components/PieChart/PieChart.styles.js +1 -1
- package/lib-commonjs/components/PieChart/PieChart.styles.js.map +1 -1
- package/lib-commonjs/components/PieChart/index.js +2 -2
- package/lib-commonjs/components/PieChart/index.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +27 -27
- package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +1 -1
- package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
- package/lib-commonjs/components/SankeyChart/index.js +2 -2
- package/lib-commonjs/components/SankeyChart/index.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.base.js +9 -9
- package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js +1 -1
- package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -1
- package/lib-commonjs/components/Sparkline/index.js +2 -2
- package/lib-commonjs/components/Sparkline/index.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +15 -15
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js +1 -1
- package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +11 -11
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js +3 -3
- package/lib-commonjs/components/StackedBarChart/StackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/StackedBarChart/index.js +5 -5
- package/lib-commonjs/components/StackedBarChart/index.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.base.js +20 -20
- package/lib-commonjs/components/TreeChart/TreeChart.base.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.js +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.js.map +1 -1
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js +4 -4
- package/lib-commonjs/components/TreeChart/TreeChart.styles.js.map +1 -1
- package/lib-commonjs/components/TreeChart/index.js +2 -2
- package/lib-commonjs/components/TreeChart/index.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js +33 -33
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js +1 -1
- package/lib-commonjs/components/VerticalBarChart/VerticalBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalBarChart/index.js +2 -2
- package/lib-commonjs/components/VerticalBarChart/index.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +36 -36
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.styles.js.map +1 -1
- package/lib-commonjs/components/VerticalStackedBarChart/index.js +2 -2
- package/lib-commonjs/components/VerticalStackedBarChart/index.js.map +1 -1
- package/lib-commonjs/index.js +19 -19
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/types/index.js +2 -2
- package/lib-commonjs/types/index.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js +6 -6
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.base.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js +2 -2
- package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
- package/lib-commonjs/utilities/ChartHoverCard/index.js +3 -3
- package/lib-commonjs/utilities/ChartHoverCard/index.js.map +1 -1
- package/lib-commonjs/utilities/FocusableTooltipText.js +3 -3
- package/lib-commonjs/utilities/FocusableTooltipText.js.map +1 -1
- package/lib-commonjs/utilities/index.js +3 -3
- package/lib-commonjs/utilities/index.js.map +1 -1
- package/lib-commonjs/utilities/utilities.js +77 -77
- package/lib-commonjs/utilities/utilities.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
var FluentUIReactCharting;!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{AreaChart:function(){return If},CartesianChart:function(){return qp},ChartHoverCard:function(){return Cd},DataVizPalette:function(){return lf},DonutChart:function(){return Ip},GroupedVerticalBarChart:function(){return ug},HeatMapChart:function(){return hg},HorizontalBarChart:function(){return oh},HorizontalBarChartVariant:function(){return _e},HorizontalBarChartWithAxis:function(){return im},Legends:function(){return Zh},LineChart:function(){return yf},MultiStackedBarChart:function(){return Qf},MultiStackedBarChartVariant:function(){return Wf},NodesComposition:function(){return jg},PieChart:function(){return qf},SankeyChart:function(){return Fg},Shape:function(){return jh},Sparkline:function(){return tm},StackedBarChart:function(){return Kf},Textbox:function(){return of},TreeChart:function(){return Qg},TreeTraverse:function(){return Kg},VerticalBarChart:function(){return ng},VerticalStackedBarChart:function(){return og},getChartHoverCardStyles:function(){return bd},getColorFromToken:function(){return gf},getNextColor:function(){return ff}});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var s=React;function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},i=0,o=e;i<o.length;i++){var s=o[i];if(s)for(var u in s)if(s.hasOwnProperty(u)){if("subComponentStyles"===u&&void 0!==s.subComponentStyles){var c=s.subComponentStyles;for(var d in c)c.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(c[d]):r[d]=[c[d]]);continue}var h=n[u],p=s[u];n[u]=void 0===h?p:a(a([],Array.isArray(h)?h:[h]),Array.isArray(p)?p:[p])}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(r.hasOwnProperty(e)){var t=r[e];f[e]=function(e){return l.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in r)g(d)}return n}function u(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}var c=void 0;try{c=window}catch(e){}function d(e){if(u()&&void 0!==c){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:c}}var h="__globalSettings__",p="__callbacks__",f=0,g=function(){function e(){}return e.getValue=function(e,t){var n=m();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=m(),r=n[p],i=n[e];if(t!==i){n[e]=t;var o={oldValue:i,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](o)}return t},e.addChangeListener=function(e){var t=e.__id__,n=v();t||(t=e.__id__=String(f++)),n[t]=e},e.removeChangeListener=function(e){delete v()[e.__id__]},e}();function m(){var e,t=d()||{};return t[h]||(t[h]=((e={})[p]={},e)),t[h]}function v(){return m()[p]}var _={settings:{},scopedSettings:{},inCustomizerContext:!1},y=g.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),x=[],b=function(){function e(){}return e.reset=function(){y.settings={},y.scopedSettings={}},e.applySettings=function(t){y.settings=i(i({},y.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){y.scopedSettings[t]=i(i({},y.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=_);for(var r={},i=t&&n.scopedSettings[t]||{},o=t&&y.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=i[l]||n.settings[l]||o[l]||y.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){x.push(e)},e.unobserve=function(e){x=x.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||x.forEach((function(e){return e()}))},e}(),C=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var S=["theme","styles"];function E(e,t,n,r,a){var u=(r=r||{scope:"",fields:void 0}).scope,c=r.fields,d=void 0===c?S:c,h=s.forwardRef((function(r,a){var c,h,p,f,g,m,v=s.useRef(),_=(c=d,h=u,p=s.useState(0)[1],f=function(){return p((function(e){return++e}))},g=s.useContext(C).customizations,m=g.inCustomizerContext,s.useEffect((function(){return m||b.observe(f),function(){m||b.unobserve(f)}}),[m]),b.getSettings(c,h,g)),y=_.styles,x=(_.dir,o(_,["styles","dir"])),S=n?n(r):void 0,E=v.current&&v.current.__cachedInputs__||[],L=r.styles;if(!v.current||y!==E[1]||L!==E[2]){var k=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i];a&&r.push("function"==typeof a?a(e):a)}return 1===r.length?r[0]:r.length?l.apply(void 0,r):{}}(e,t,y,L)};k.__cachedInputs__=[t,y,L],k.__noStyleOverride__=!y&&!L,v.current=k}return s.createElement(e,i({ref:a},x,S,r,{styles:v.current}))}));h.displayName="Styled"+(e.displayName||e.name);var p=a?s.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var L,k="__stylesheet__",A="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),w={};try{w=window||{}}catch(V){}var D=function(){function e(e,t){var n,r,o,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=i({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null==t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==t?void 0:t.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null==t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(L=w[k])||L._lastStyleElement&&L._lastStyleElement.ownerDocument!==document){var t=(null==w?void 0:w.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);L=n,w[k]=n}return L},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=i(i({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case 1:var i=r.sheet;try{i.insertRule(e,i.cssRules.length)}catch(e){}break;case 2:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),A||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function T(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],i=D.getInstance();return function e(t){for(var o=0,a=t;o<a.length;o++){var s=a[o];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)e(s.split(" "));else{var l=i.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&r.push(s)}}(e),{classes:n,objects:r}}var M,P={},F={"user-select":1};function N(e,t){var n=function(){var e;if(!M){var t="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,r=null===(e=null==n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();M=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return M}(),r=e[t];if(F[r]){var i=e[t+1];F[r]&&(n.isWebkit&&e.push("-webkit-"+r,i),n.isMoz&&e.push("-moz-"+r,i),n.isMs&&e.push("-ms-"+r,i),n.isOpera&&e.push("-o-"+r,i))}}var V,I=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function O(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var i=I.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]=""+r+a}}var H="left",B="right",R="@noflip",W=((V={})[H]=B,V[B]=H,V),z={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Y(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if("string"==typeof i&&i.indexOf(R)>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(H)>=0)t[n]=r.replace(H,B);else if(r.indexOf(B)>=0)t[n]=r.replace(B,H);else if(String(i).indexOf(H)>=0)t[n+1]=i.replace(H,B);else if(String(i).indexOf(B)>=0)t[n+1]=i.replace(B,H);else if(W[r])t[n]=W[r];else if(z[i])t[n+1]=z[i];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(i);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(i)}}}var U,q="displayName",X=/\:global\((.+?)\)/g;function j(e,t){return e.indexOf(":global(")>=0?e.replace(X,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function K(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?G([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!X.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],i=t[2];return e.slice(0,n)+i+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return G([r],t,j(n,e))})):G([r],t,j(n,e))}function G(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=D.getInstance(),i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var o=0,a=e;o<a.length;o++){var s=a[o];if("string"==typeof s){var l=r.argsFromClassName(s);l&&G(l,t,n)}else if(Array.isArray(s))G(s,t,n);else for(var u in s)if(s.hasOwnProperty(u)){var c=s[u];if("selectors"===u){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&K(n,t,h,d[h])}else"object"==typeof c?null!==c&&K(n,t,u,c):void 0!==c&&("margin"===u||"padding"===u?Z(i,u,c):i[u]=c)}}return t}function Z(e,t,n){var r="string"==typeof n?function(e){for(var t=[],n=0,r=0,i=0;i<e.length;i++)switch(e[i]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(i>n&&t.push(e.substring(n,i)),n=i+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function $(e,t){return t<=0?"":1===t?e:e+$(e,t-1)}function Q(e,t){if(!t)return"";var n,r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&a!==q&&void 0!==t[a]&&o.push(a,t[a]);for(var s=0;s<o.length;s+=2)i=void 0,"-"!==(i=(n=o)[r=s]).charAt(0)&&(n[r]=P[i]=P[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),O(o,s),Y(e,o,s),N(o,s);for(s=1;s<o.length;s+=4)o.splice(s,1,":",o[s],";");return o.join("")}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=G(t),i=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,i=0,o=t.__order;i<o.length;i++){var a=o[i];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}(e,r);if(i){var o=D.getInstance(),a={className:o.classNameFromKey(i),key:i,args:t};if(!a.className){a.className=o.getClassName(function(e){var t=e&&e["&"];return t?t.displayName:void 0}(r));for(var s=[],l=0,u=r.__order;l<u.length;l++){var c=u[l];s.push(c,Q(e,r[c]))}a.rulesToInsert=s}return a}}function ee(e,t){void 0===t&&(t=1);var n=D.getInstance(),r=e.className,i=e.key,o=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var u=a[s],c=(u=u.replace(/&/g,$("."+e.className,t)))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(c)}}n.cacheClassName(r,i,o,a)}}function te(e){if(u()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function ne(e){var t=null;try{var n=d();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function re(e){U!==e&&(U=e)}function ie(){return void 0===U&&(U="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),U}function oe(){return{rtl:ie()}}U=ie();var ae,se="isRTL";function le(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===ae){var t=ne(se);null!==t&&function(e,t){void 0===t&&(t=!1);var n=te();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&function(e,t){var n;try{null===(n=d())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}(se,e?"1":"0"),re(ae=e)}(ae="1"===t);var n=te();void 0===ae&&n&&re(ae="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!ae}var ue=0,ce=D.getInstance();ce&&ce.onReset&&ce.onReset((function(){return ue++}));var de="__retval__";function he(e){void 0===e&&(e={});var t=new Map,n=0,r=0,i=ue;return function(o,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"==typeof o&&o.__noStyleOverride__)return o(a);r++;var u=t,c=a.theme,h=c&&void 0!==c.rtl?c.rtl:le(),p=e.disableCaching;if(i!==ue&&(i=ue,t=new Map,n=0),e.disableCaching||(u=fe(t,o),u=fe(u,a)),!p&&u[de]||(u[de]=void 0===o?{}:function(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=l.apply(void 0,e),i=[];for(var o in r)if(r.hasOwnProperty(o)){if("subComponentStyles"===o){n.subComponentStyles=r.subComponentStyles||{};continue}var a=T(r[o]),s=a.classes,u=a.objects;(null==u?void 0:u.length)?(h=J(t||{},{displayName:o},u))&&(i.push(h),n[o]=s.concat([h.className]).join(" ")):n[o]=s.join(" ")}for(var c=0,d=i;c<d.length;c++){var h;(h=d[c])&&ee(h,null==t?void 0:t.specificityMultiplier)}return n}(["function"==typeof o?o(a):o],{rtl:!!h,specificityMultiplier:e.useStaticStyles?5:void 0}),p||n++),n>(e.cacheSize||50)){var f=d();(null===(s=null==f?void 0:f.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0}return u[de]}}function pe(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function fe(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=pe(e,r[n]);else e=pe(e,t);else if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e=pe(e,t[i]));return e}var ge="__currentId__",me="id__",ve=d()||{};void 0===ve[ge]&&(ve[ge]=0);var _e,ye=!1;function xe(e){if(!ye){var t=D.getInstance();t&&t.onReset&&t.onReset(be),ye=!0}var n=ve[ge]++;return(void 0===e?me:e)+n}function be(e){void 0===e&&(e=0),ve[ge]=e}function Ce(e,t,n){void 0===n&&(n=0);for(var r=-1,i=n;e&&i<e.length;i++)if(t(e[i],i)){r=i;break}return r}function Se(e,t){var n=Ce(e,t);if(!(n<0))return e[n]}!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(_e||(_e={}));var Ee={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function Le(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function ke(e,t){return e&&e!==document.body?t(e)?e:ke(Le(e),t):null}function Ae(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var i=Le(t);if(i===e){r=!0;break}t=i}else e.contains&&(r=e.contains(t));return r}var we="data-is-focusable",De="data-is-visible",Te="data-focuszone-id",Me="data-is-sub-focuszone";function Pe(e,t){var n=Ne(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(We(n),!0)}function Fe(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=Ve(t);if(i&&l&&(o||!He(t)&&!Be(t))){var u=Fe(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&Oe(u,!0)||!s)return u;var c=Fe(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var h=Fe(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&Oe(t,s)?t:Fe(e,t.previousElementSibling,!0,!0,!0,o,a,s)||(r?null:Fe(e,t.parentElement,!0,!1,!1,o,a,s))}function Ne(e,t,n,r,i,o,a,s,l){if(!t||t===e&&i&&!a)return null;var u=(l?Ie:Ve)(t);if(n&&u&&Oe(t,s))return t;if(!i&&u&&(o||!He(t)&&!Be(t))){var c=Ne(e,t.firstElementChild,!0,!0,!1,o,a,s,l);if(c)return c}return t===e?null:Ne(e,t.nextElementSibling,!0,!0,!1,o,a,s,l)||(r?null:Ne(e,t.parentElement,!1,!1,!0,o,a,s,l))}function Ve(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(De);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Ie(e){return!!e&&Ve(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function Oe(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var i=e.getAttribute?e.getAttribute(we):null,o=null!==r&&n>=0,a=!!e&&"false"!==i&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===i||o);return t?-1!==n&&a:a}function He(e){return!!(e&&e.getAttribute&&e.getAttribute(Te))}function Be(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute(Me))}var Re=void 0;function We(e){if(e){if(Re)return void(Re=e);Re=e;var t=d(e);t&&t.requestAnimationFrame((function(){Re&&Re.focus(),Re=void 0}))}}function ze(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Ye(e,t){for(var n=i({},t),r=0,o=Object.keys(e);r<o.length;r++){var a=o[r];void 0===n[a]&&(n[a]=e[a])}return n}var Ue,qe,Xe,je=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,i=e;r<i.length;r++)for(var o=i[r],a=0,s=Array.isArray(o)?o:Object.keys(o);a<s.length;a++)n[s[a]]=1;return n},Ke=je(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),Ge=je(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Ze=je(Ge,Ke),$e=(je(Ze,["form"]),je(Ze,["height","loop","muted","preload","src","width"])),Qe=(je($e,["poster"]),je(Ze,["start"]),je(Ze,["value"]),je(Ze,["download","href","hrefLang","media","rel","target","type"]),je(Ze,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Je=(je(Qe,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),je(Qe,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),je(Qe,["form","multiple","required"]),je(Ze,["selected","value"]),je(Ze,["cellPadding","cellSpacing"]),je(Ze,["rowSpan","scope"]),je(Ze,["colSpan","headers","rowSpan","scope"]),je(Ze,["span"]),je(Ze,["span"]),je(Ze,["acceptCharset","action","encType","encType","method","noValidate","target"]),je(Ze,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),je(Ze,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Ze);function et(e,t,n){for(var r=Array.isArray(t),i={},o=0,a=Object.keys(e);o<a.length;o++){var s=a[o];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(i[s]=e[s])}return i}function tt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];if(o)if("string"==typeof o)n.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)n.push(o.toString());else for(var a in o)o[a]&&n.push(a)}return n.join(" ")}function nt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return rt.apply(this,[null,e].concat(t))}function rt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}function it(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e,t){var n=T(e instanceof Array?e:[e]),r=n.classes,i=n.objects;return i.length&&r.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=J.apply(void 0,a([e],t));return r?(ee(r,e.specificityMultiplier),r.className):""}(t||{},i)),r.join(" ")}(e,oe())}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Ue||(Ue={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(qe||(qe={})),it({overflow:"hidden !important"});var ot="data-is-scrollable";function at(e){for(var t=e,n=te(e);t&&t!==n.body;){if("true"===t.getAttribute(ot))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(ot)){var r=getComputedStyle(t),i=r?r.getPropertyValue("overflow-y"):"";if(i&&("scroll"===i||"auto"===i))return t}t=t.parentElement}return t&&t!==n.body||(t=d(e)),t}var st,lt=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function ut(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ct=((st={})[Ee.topLeftEdge]=ut(Ue.top,Ue.left),st[Ee.topCenter]=ut(Ue.top),st[Ee.topRightEdge]=ut(Ue.top,Ue.right),st[Ee.topAutoEdge]=ut(Ue.top,void 0,!0),st[Ee.bottomLeftEdge]=ut(Ue.bottom,Ue.left),st[Ee.bottomCenter]=ut(Ue.bottom),st[Ee.bottomRightEdge]=ut(Ue.bottom,Ue.right),st[Ee.bottomAutoEdge]=ut(Ue.bottom,void 0,!0),st[Ee.leftTopEdge]=ut(Ue.left,Ue.top),st[Ee.leftCenter]=ut(Ue.left),st[Ee.leftBottomEdge]=ut(Ue.left,Ue.bottom),st[Ee.rightTopEdge]=ut(Ue.right,Ue.top),st[Ee.rightCenter]=ut(Ue.right),st[Ee.rightBottomEdge]=ut(Ue.right,Ue.bottom),st);function dt(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function ht(e,t){var n=[];return e.top<t.top&&n.push(Ue.top),e.bottom>t.bottom&&n.push(Ue.bottom),e.left<t.left&&n.push(Ue.left),e.right>t.right&&n.push(Ue.right),n}function pt(e,t){return e[Ue[t]]}function ft(e,t,n){return e[Ue[t]]=n,e}function gt(e,t){var n=kt(t);return(pt(e,n.positiveEdge)+pt(e,n.negativeEdge))/2}function mt(e,t){return e>0?t:-1*t}function vt(e,t){return mt(e,pt(t,e))}function _t(e,t,n){return mt(n,pt(e,n)-pt(t,n))}function yt(e,t,n,r){void 0===r&&(r=!0);var i=pt(e,t)-n,o=ft(e,t,n);return r&&(o=ft(e,-1*t,pt(e,-1*t)-i)),o}function xt(e,t,n,r){return void 0===r&&(r=0),yt(e,n,pt(t,n)+mt(n,r))}function bt(e,t,n){return vt(n,e)>vt(n,t)}function Ct(e,t){for(var n=0,r=0,i=ht(e,t);r<i.length;r++){var o=i[r];n+=Math.pow(_t(e,t,o),2)}return n}function St(e,t,n,r){for(var i=0,o=e;i<o.length;i++){var a=o[i],s=void 0;r&&r===-1*a?(s=yt(t.elementRectangle,a,pt(n,a),!1),t.forcedInBounds=!0):bt(s=xt(t.elementRectangle,n,a),n,-1*a)||(s=yt(s,-1*a,pt(n,-1*a),!1),t.forcedInBounds=!0),t.elementRectangle=s}return t}function Et(e,t,n){var r=kt(t).positiveEdge;return yt(e,r,n-(gt(e,t)-pt(e,r)))}function Lt(e,t,n,r,i){void 0===r&&(r=0);var o=new lt(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;return o=i?xt(o,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var i=mt(-1*n,r);return yt(e,-1*n,pt(t,n)+i)}(o,t,s,r),o=a?xt(o,t,a):Et(o,l,gt(t,s))}function kt(e){return e===Ue.top||e===Ue.bottom?{positiveEdge:Ue.left,negativeEdge:Ue.right}:{positiveEdge:Ue.top,negativeEdge:Ue.bottom}}function At(e,t,n){return n&&Math.abs(_t(e,n,t))>Math.abs(_t(e,n,-1*t))?-1*t:t}function wt(e,t,n,r,i,o,a,s){var l,u={},c=Mt(t),d=o?n:-1*n,h=i||kt(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&pt(e,t)===pt(n,t)}(e,(l=h,-1*l),r)||(h=At(e,h,r)),u[Ue[d]]=_t(e,c,d),u[Ue[h]]=_t(e,c,h),s&&(u[Ue[-1*d]]=_t(e,c,-1*d),u[Ue[-1*h]]=_t(e,c,-1*h)),u}function Dt(e,t,n){var r=gt(t,e),i=gt(n,e),o=kt(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function Tt(e,t,n,r,i,o,a){var s=Lt(e,t,r,i,a);return dt(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(e,t,n,r,i,o,a){void 0===i&&(i=0);var s=r.alignmentEdge,l=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(u=function(e,t,n,r,i){void 0===i&&(i=0);var o=[Ue.left,Ue.right,Ue.bottom,Ue.top];le()&&(o[0]*=-1,o[1]*=-1);for(var a,s=e,l=r.targetEdge,u=r.alignmentEdge,c=l,d=u,h=0;h<4;h++){if(bt(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:u};var p=Ct(s,n);(!a||p<a)&&(a=p,c=l,d=u),o.splice(o.indexOf(l),1),o.length>0&&(o.indexOf(-1*l)>-1?l*=-1:(u=l,l=o.slice(-1)[0]),s=Lt(e,t,{targetEdge:l,alignmentEdge:u},i))}return{elementRectangle:s=Lt(e,t,{targetEdge:c,alignmentEdge:d},i),targetEdge:c,alignmentEdge:d}}(e,t,n,r,i));var c=ht(u.elementRectangle,n),d=o?-u.targetEdge:void 0;if(c.length>0)if(l)if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var h=function(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=-1*i;return{elementRectangle:Lt(e.elementRectangle,t,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(u,t,i,a);if(dt(h.elementRectangle,n))return h;u=St(ht(h.elementRectangle,n),u,n,d)}else u=St(c,u,n,d);else u=St(c,u,n,d);return u}(s,t,n,r,i,o,a)}function Mt(e){var t=e.getBoundingClientRect();return new lt(t.left,t.right,t.top,t.bottom)}function Pt(e,t,n,r){var o=e.gapSpace?e.gapSpace:0,a=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new lt(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Mt(t);else{var i=t,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new lt(o,s,a,l)}if(!dt(n,e))for(var u=0,c=ht(n,e);u<c.length;u++){var d=c[u];n[Ue[d]]=e[Ue[d]]}}else n=new lt(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=Dt(e.targetEdge,t,n)),e.alignTargetEdge=i,e}(function(e,t,n){if(void 0===e&&(e=Ee.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=i({},ct[e]);return le()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?ct[t]:r):r}(e.directionalHint,e.directionalHintForRTL,r),a,n,e.coverTarget,e.alignTargetEdge),l=Tt(Mt(t),a,n,s,o,e.directionalHintFixed,e.coverTarget);return i(i({},l),{targetRectangle:a})}function Ft(e,t,n,r,o){var a=e.isBeakVisible&&e.beakWidth||0,s=function(e){return Math.sqrt(e*e*2)}(a)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var u,c,d,h,p,f,g,m,v,_=e.bounds?(v=e.bounds,new lt(v.left,v.right,v.top,v.bottom)):new lt(0,window.innerWidth-function(){if(void 0===Xe){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Xe=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Xe}(),0,window.innerHeight),y=Pt(l,n,_,r),x=(u=y,c=function(e,t){var n=t.targetRectangle,r=kt(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=gt(n,t.targetEdge),s=new lt(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new lt(0,e,0,e);return bt(l=Et(l=yt(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-vt(i,t.elementRectangle)),s,i)?bt(l,s,o)||(l=xt(l,s,o)):l=xt(l,s,i),l}(a,y),d=_,h=-1*u.targetEdge,p=new lt(0,u.elementRectangle.width,0,u.elementRectangle.height),f={},g=At(u.elementRectangle,u.alignmentEdge?u.alignmentEdge:kt(h).positiveEdge,d),m=_t(u.elementRectangle,u.targetRectangle,h)>Math.abs(pt(c,h)),f[Ue[h]]=pt(c,h),f[Ue[g]]=_t(c,p,g),{elementPosition:i({},f),closestEdge:Dt(u.targetEdge,c,p),targetEdge:h,hideBeak:!m});return i(i({},function(e,t,n,r,i){return{elementPosition:wt(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,i,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(y,t,_,e.coverTarget,o)),{beakPosition:x})}var Nt=["TEMPLATE","STYLE","SCRIPT"];function Vt(e){var t=te(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,i=e.parentElement.children;r<i.length;r++){var o=i[r],a=o.getAttribute("aria-hidden");o!==e&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Nt.indexOf(o.tagName)&&n.push([o,a])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}var It=27,Ot=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,i=d(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[r]=!0),r},e.prototype.clearImmediate=function(e,t){var n=d(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var i,o,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),h=n-u,p=s?a-h:a;return h>=a&&(!t||s)?(u=n,c&&(r.clearTimeout(c),c=null),i=e.apply(r._parent,o)):null===c&&l&&(c=r.setTimeout(d,p)),i};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,a,s=t||0,l=!1,u=!0,c=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(u=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(c=n.maxWait);var f=function(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),o=e.apply(r._parent,a)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var i=t-d,a=s-i,f=t-h,v=!1;return null!==c&&(f>=c&&p?v=!0:a=Math.min(a,c-f)),i>=s||v||n?g(t):null!==p&&e||!u||(p=r.setTimeout(m,a)),o},v=function(){return!!p},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),o},_.pending=v,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,i=d(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=i.requestAnimationFrame?i.requestAnimationFrame(o):i.setTimeout(o,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=d(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function Ht(){var e=s.useRef();return e.current||(e.current=new Ot),s.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function Bt(e,t,n,r){var i=s.useRef(n);i.current=n,s.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return ze(n,t,(function(e){return i.current(e)}),r)}),[e,t,r])}function Rt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s.useCallback((function(t){n.current=t;for(var r=0,i=e;r<i.length;r++){var o=i[r];"function"==typeof o?o(t):o&&(o.current=t)}}),a([],e));return n}var Wt=s.createContext({window:"object"==typeof window?window:void 0}),zt=function(){return s.useContext(Wt).window};function Yt(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==d()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var Ut=s.forwardRef((function(e,t){var n=Ye({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=s.useRef(),o=Rt(r,t);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;s.useEffect((function(){if(n&&t.current)return Vt(t.current)}),[t,n])}(n,r),function(e,t){var n=e.onRestoreFocus,r=void 0===n?Yt:n,i=s.useRef(),o=s.useRef(!1);s.useEffect((function(){return i.current=te().activeElement,function(e){var t=te(e),n=t&&t.activeElement;return!(!n||!Ae(e,n))}(t.current)&&(o.current=!0),function(){var e;null==r||r({originalElement:i.current,containsFocus:o.current,documentContainsFocus:(null===(e=te())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),Bt(t,"focus",s.useCallback((function(){o.current=!0}),[]),!0),Bt(t,"blur",s.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(o.current=!1)}),[]),!0)}(n,r);var a=n.role,l=n.className,u=n.ariaLabel,c=n.ariaLabelledBy,d=n.ariaDescribedBy,h=n.style,p=n.children,f=n.onDismiss,g=function(e,t){var n=Ht(),r=s.useState(!1),i=r[0],o=r[1];return s.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var a=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;a>0&&s>a&&(r=s-a>1)}i!==r&&o(r)}})),function(){return n.dispose()}})),i}(n,r),m=s.useCallback((function(e){e.which===It&&f&&(f(e),e.preventDefault(),e.stopPropagation())}),[f]);return Bt(zt(),"keydown",m),s.createElement("div",i({ref:o},et(n,Je),{className:l,role:a,"aria-label":u,"aria-labelledby":c,"aria-describedby":d,onKeyDown:m,style:i({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));function qt(e){var t=D.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",Q(oe(),e[r]),"}");var i=n.join(""),o=t.classNameFromKey(i);if(o)return o;var a=t.getClassName();return t.insertRule("@keyframes "+a+"{"+i+"}",!0),t.cacheClassName(a,i,[],["keyframes",i]),a}Ut.displayName="Popup";var Xt="cubic-bezier(.1,.9,.2,1)",jt="cubic-bezier(.1,.25,.75,.9)",Kt="0.167s",Gt="0.267s",Zt="0.367s",$t="0.467s",Qt=qt({from:{opacity:0},to:{opacity:1}}),Jt=qt({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),en=Pn(-10),tn=Pn(-20),nn=Pn(-40),rn=Pn(-400),on=Pn(10),an=Pn(20),sn=Pn(40),ln=Pn(400),un=Fn(10),cn=Fn(20),dn=Fn(-10),hn=Fn(-20),pn=Nn(10),fn=Nn(20),gn=Nn(40),mn=Nn(400),vn=Nn(-10),_n=Nn(-20),yn=Nn(-40),xn=Nn(-400),bn=Vn(-10),Cn=Vn(-20),Sn=Vn(10),En=Vn(20),Ln=qt({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),kn=qt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),An=qt({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),wn=qt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Dn=qt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Tn=qt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function Mn(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function Pn(e){return qt({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Fn(e){return qt({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Nn(e){return qt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function Vn(e){return qt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var In,On,Hn,Bn,Rn,Wn=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=it(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:Mn(Qt+","+en,Zt,Xt),slideRightIn20:Mn(Qt+","+tn,Zt,Xt),slideRightIn40:Mn(Qt+","+nn,Zt,Xt),slideRightIn400:Mn(Qt+","+rn,Zt,Xt),slideLeftIn10:Mn(Qt+","+on,Zt,Xt),slideLeftIn20:Mn(Qt+","+an,Zt,Xt),slideLeftIn40:Mn(Qt+","+sn,Zt,Xt),slideLeftIn400:Mn(Qt+","+ln,Zt,Xt),slideUpIn10:Mn(Qt+","+un,Zt,Xt),slideUpIn20:Mn(Qt+","+cn,Zt,Xt),slideDownIn10:Mn(Qt+","+dn,Zt,Xt),slideDownIn20:Mn(Qt+","+hn,Zt,Xt),slideRightOut10:Mn(Jt+","+pn,Zt,Xt),slideRightOut20:Mn(Jt+","+fn,Zt,Xt),slideRightOut40:Mn(Jt+","+gn,Zt,Xt),slideRightOut400:Mn(Jt+","+mn,Zt,Xt),slideLeftOut10:Mn(Jt+","+vn,Zt,Xt),slideLeftOut20:Mn(Jt+","+_n,Zt,Xt),slideLeftOut40:Mn(Jt+","+yn,Zt,Xt),slideLeftOut400:Mn(Jt+","+xn,Zt,Xt),slideUpOut10:Mn(Jt+","+bn,Zt,Xt),slideUpOut20:Mn(Jt+","+Cn,Zt,Xt),slideDownOut10:Mn(Jt+","+Sn,Zt,Xt),slideDownOut20:Mn(Jt+","+En,Zt,Xt),scaleUpIn100:Mn(Qt+","+Ln,Zt,Xt),scaleDownIn100:Mn(Qt+","+An,Zt,Xt),scaleUpOut103:Mn(Jt+","+wn,Kt,jt),scaleDownOut98:Mn(Jt+","+kn,Kt,jt),fadeIn100:Mn(Qt,Kt,jt),fadeIn200:Mn(Qt,Gt,jt),fadeIn400:Mn(Qt,Zt,jt),fadeIn500:Mn(Qt,$t,jt),fadeOut100:Mn(Jt,Kt,jt),fadeOut200:Mn(Jt,Gt,jt),fadeOut400:Mn(Jt,Zt,jt),fadeOut500:Mn(Jt,$t,jt),rotate90deg:Mn(Dn,"0.1s",jt),rotateN90deg:Mn(Tn,"0.1s",jt)}),zn={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(In||(In={})),function(e){e.Arabic="'"+In.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+In.Cyrillic+"'",e.EastEuropean="'"+In.EastEuropean+"'",e.Greek="'"+In.Greek+"'",e.Hebrew="'"+In.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+In.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+In.Vietnamese+"'",e.WestEuropean="'"+In.WestEuropean+"'",e.Armenian="'"+In.Armenian+"'",e.Georgian="'"+In.Georgian+"'"}(On||(On={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(Hn||(Hn={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Bn||(Bn={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Rn||(Rn={}));var Yn,Un="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",qn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",Xn="ms-Fabric--isFocusVisible";function jn(e,t,n,r,i,o,a,s){return function(e,t){var n,r;void 0===t&&(t={});var i=t.borderRadius,o=t.inset,a=void 0===o?0:o,s=t.width,l=void 0===s?1:s,u=t.position,c=void 0===u?"relative":u,d=t.highContrastStyle,h=t.borderColor,p=void 0===h?e.palette.white:h,f=t.outlineColor,g=void 0===f?e.palette.neutralSecondary:f,m=t.isFocusedOnly,v=void 0===m||m,_=t.pointerEvents;return{outline:"transparent",position:c,selectors:(n={"::-moz-focus-inner":{border:"0"}},n["."+Xn+" &"+(v?":focus":"")+":after"]={content:'""',position:"absolute",pointerEvents:_,left:a+1,top:a+1,bottom:a+1,right:a+1,border:l+"px solid "+p,outline:l+"px solid "+g,zIndex:Yn.FocusStyle,borderRadius:i,selectors:(r={},r[Un]=d,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:i,outlineColor:o,isFocusedOnly:a,borderRadius:s})}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Yn||(Yn={}));var Kn={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Gn=!1,Zn=0,$n={empty:!0},Qn={},Jn="undefined"==typeof WeakMap?null:WeakMap;function er(){Zn++}function tr(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Jn)return e;if(!Gn){var r=D.getInstance();r&&r.onReset&&D.getInstance().onReset(er),Gn=!0}var i,o=0,a=Zn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l,u=i;(void 0===i||a!==Zn||t>0&&o>t)&&(i=rr(),o=0,a=Zn),u=i;for(var c=0;c<r.length;c++){var d=(l=r[c])?"object"==typeof l||"function"==typeof l?l:(Qn[l]||(Qn[l]={val:l}),Qn[l]):$n;u.map.has(d)||u.map.set(d,rr()),u=u.map.get(d)}return u.hasOwnProperty("value")||(u.value=e.apply(void 0,r),o++),!n||null!==u.value&&void 0!==u.value||(u.value=e.apply(void 0,r)),u.value}}function nr(e){if(!Jn)return e;var t=new Jn;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function rr(){return{map:Jn?new Jn:null}}var ir=tr((function(e,t){var n=D.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function or(e,t,n){return ir(e,void 0!==n?n:t.disableGlobalClassNames)}var ar,sr,lr=function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},lr.apply(this,arguments)},ur="undefined"==typeof window?e.g:window,cr=ur&&ur.CSPSettings&&ur.CSPSettings.nonce,dr=((sr=ur.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(sr=lr({},sr,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),sr.registeredThemableStyles||(sr=lr({},sr,{registeredThemableStyles:[]})),ur.__themeState__=sr,sr);function hr(e){dr.theme=e,function(){if(dr.theme){for(var e=[],t=0,n=dr.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(pr(dr.registeredStyles),dr.registeredStyles=[]),3!==o&&1!==o||(pr(dr.registeredThemableStyles),dr.registeredThemableStyles=[]),i=[].concat.apply([],e),dr.loadStyles?dr.loadStyles(fr(i).styleString,i):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=fr(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",cr&&n.setAttribute("nonce",cr),n.appendChild(document.createTextNode(i)),dr.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};o?dr.registeredThemableStyles.push(s):dr.registeredStyles.push(s)}}(i))}var i,o}()}function pr(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function fr(e){var t=dr.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var i=t?t[r]:void 0,o=e.defaultValue||"inherit";return t&&!i&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+o+'".'),i||o}return e.rawString})).join(""),themable:n}}!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(ar||(ar={}));var gr,mr={elevation4:ar.depth4,elevation8:ar.depth8,elevation16:ar.depth16,elevation64:ar.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},vr="'Segoe UI', '"+In.WestEuropean+"'",_r={ar:On.Arabic,bg:On.Cyrillic,cs:On.EastEuropean,el:On.Greek,et:On.EastEuropean,he:On.Hebrew,hi:On.Hindi,hr:On.EastEuropean,hu:On.EastEuropean,ja:On.Japanese,kk:On.EastEuropean,ko:On.Korean,lt:On.EastEuropean,lv:On.EastEuropean,pl:On.EastEuropean,ru:On.Cyrillic,sk:On.EastEuropean,"sr-latn":On.EastEuropean,th:On.Thai,tr:On.EastEuropean,uk:On.Cyrillic,vi:On.Vietnamese,"zh-hans":On.ChineseSimplified,"zh-hant":On.ChineseTraditional,hy:On.Armenian,ka:On.Georgian};function yr(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var xr,br="language",Cr=(xr=function(e){for(var t in _r)if(_r.hasOwnProperty(t)&&e&&0===t.indexOf(e))return _r[t];return vr}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===gr){var t=te(),n="localStorage"===e?function(e){var t=null;try{var n=d();t=n?n.localStorage.getItem(e):null}catch(e){}return t}(br):"sessionStorage"===e?ne(br):void 0;n&&(gr=n),void 0===gr&&t&&(gr=t.documentElement.getAttribute("lang")),void 0===gr&&(gr="en")}return gr}())+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",{tiny:yr(Hn.mini,Bn.regular,xr),xSmall:yr(Hn.xSmall,Bn.regular,xr),small:yr(Hn.small,Bn.regular,xr),smallPlus:yr(Hn.smallPlus,Bn.regular,xr),medium:yr(Hn.medium,Bn.regular,xr),mediumPlus:yr(Hn.mediumPlus,Bn.regular,xr),large:yr(Hn.large,Bn.regular,xr),xLarge:yr(Hn.xLarge,Bn.semibold,xr),xLargePlus:yr(Hn.xLargePlus,Bn.semibold,xr),xxLarge:yr(Hn.xxLarge,Bn.semibold,xr),xxLargePlus:yr(Hn.xxLargePlus,Bn.semibold,xr),superLarge:yr(Hn.superLarge,Bn.semibold,xr),mega:yr(Hn.mega,Bn.semibold,xr)});function Sr(e,t,n,r){!function(e){var t=D.getInstance(),n=Q(oe(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{"+n+"}",!0),t.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:e="'"+e+"'",src:(void 0!==r?"local('"+r+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Er(e,t,n,r,i){void 0===r&&(r="segoeui");var o=e+"/"+n+"/"+r;Sr(t,o+"-light",Bn.light,i&&i+" Light"),Sr(t,o+"-semilight",Bn.semilight,i&&i+" SemiLight"),Sr(t,o+"-regular",Bn.regular,i),Sr(t,o+"-semibold",Bn.semibold,i&&i+" SemiBold"),Sr(t,o+"-bold",Bn.bold,i&&i+" Bold")}function Lr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)kr(e||{},i[r]);return e}function kr(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=t[r];if("object"!=typeof i||null===i||Array.isArray(i))e[r]=i;else{var o=n.indexOf(i)>-1;e[r]=o?i:kr(e[r]||{},i,n)}}return n.pop(),e}function Ar(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(wr(e,t,i({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function wr(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,u=s.black,c=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,m=s.neutralLighter,v=s.neutralDark,_=s.neutralQuaternary,y=s.neutralQuaternaryAlt,x=s.neutralPrimary,b=s.neutralSecondary,C=s.neutralSecondaryAlt,S=s.neutralTertiary,E=s.neutralTertiaryAlt,L=s.neutralLighterAlt,k=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),u&&(a.bodyTextChecked=u,a.buttonTextCheckedHovered=u),c&&(a.link=c,a.primaryButtonBackground=c,a.inputBackgroundChecked=c,a.inputIcon=c,a.inputFocusBorderAlt=c,a.menuIcon=c,a.menuHeader=c,a.accentButtonBackground=c),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),h&&(a.linkHovered=h),p&&(a.primaryButtonBackgroundHovered=p),f&&(a.inputPlaceholderBackgroundChecked=f),g&&(a.bodyBackgroundChecked=g,a.bodyFrameDivider=g,a.bodyDivider=g,a.variantBorder=g,a.buttonBackgroundCheckedHovered=g,a.buttonBackgroundPressed=g,a.listItemBackgroundChecked=g,a.listHeaderBackgroundPressed=g,a.menuItemBackgroundPressed=g,a.menuItemBackgroundChecked=g),m&&(a.bodyBackgroundHovered=m,a.buttonBackgroundHovered=m,a.buttonBackgroundDisabled=m,a.buttonBorderDisabled=m,a.primaryButtonBackgroundDisabled=m,a.disabledBackground=m,a.listItemBackgroundHovered=m,a.listHeaderBackgroundHovered=m,a.menuItemBackgroundHovered=m),_&&(a.primaryButtonTextDisabled=_,a.disabledSubtext=_),y&&(a.listItemBackgroundCheckedHovered=y),S&&(a.disabledBodyText=S,a.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||S,a.buttonTextDisabled=S,a.inputIconDisabled=S,a.disabledText=S),x&&(a.bodyText=x,a.actionLink=x,a.buttonText=x,a.inputBorderHovered=x,a.inputText=x,a.listText=x,a.menuItemText=x),L&&(a.bodyStandoutBackground=L,a.defaultStateBackground=L),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),b&&(a.bodySubtext=b,a.focusBorder=b,a.inputBorder=b,a.smallInputBorder=b,a.inputPlaceholderText=b),C&&(a.buttonBorder=C),E&&(a.disabledBodySubtext=E,a.disabledBorder=E,a.buttonBackgroundChecked=E,a.menuDivider=E),k&&(a.accentButtonBackground=k),(null==t?void 0:t.elevation4)&&(a.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?a.cardShadowHovered=t.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),i(i({},a),n)}!function(e){if(e){var t=e+"/fonts";Er(t,In.Thai,"leelawadeeui-thai","leelawadeeui"),Er(t,In.Arabic,"segoeui-arabic"),Er(t,In.Cyrillic,"segoeui-cyrillic"),Er(t,In.EastEuropean,"segoeui-easteuropean"),Er(t,In.Greek,"segoeui-greek"),Er(t,In.Hebrew,"segoeui-hebrew"),Er(t,In.Vietnamese,"segoeui-vietnamese"),Er(t,In.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Er(t,On.Selawik,"selawik","selawik"),Er(t,In.Armenian,"segoeui-armenian"),Er(t,In.Georgian,"segoeui-georgian"),Sr("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",Bn.light),Sr("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",Bn.semibold)}}(function(){var e,t,n=null===(e=d())||void 0===e?void 0:e.FabricConfig;return null!==(t=null==n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20221209.001/assets"}());var Dr={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Tr(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,i;void 0===t&&(t={});var o=Lr({},e,t,{semanticColors:wr(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(o.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(o.fonts);a<s.length;a++){var l=s[a];o.fonts[l]=Lr(o.fonts[l],t.defaultFontStyle,null===(i=null==t?void 0:t.fonts)||void 0===i?void 0:i[l])}return o}({palette:zn,effects:mr,fonts:Cr,spacing:Dr,isInverted:n,disableGlobalClassNames:!1,semanticColors:Ar(zn,mr,void 0,n,t),rtl:void 0},e)}var Mr=Tr({}),Pr=[],Fr="theme";function Nr(){var e,t,n,r=d();(null===(t=null==r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1),Mr=Tr(e,t),hr(i(i(i(i({},Mr.palette),Mr.semanticColors),Mr.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var i=r[n],o=e.fonts[i],a=0,s=Object.keys(o);a<s.length;a++){var l=s[a],u=i+l.charAt(0).toUpperCase()+l.slice(1),c=o[l];"fontSize"===l&&"number"==typeof c&&(c+="px"),t[u]=c}return t}(Mr))),b.applySettings(((n={})[Fr]=Mr,n)),Pr.forEach((function(e){try{e(Mr)}catch(e){}}))}(r.FabricConfig.legacyTheme):b.getSettings([Fr]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(Mr=Tr(r.FabricConfig.theme)),b.applySettings(((e={})[Fr]=Mr,e)))}Nr();var Vr,Ir={},Or=void 0;try{Or=window}catch(e){}function Hr(e,t){if(void 0!==Or){var n=Or.__packages__=Or.__packages__||{};n[e]&&Ir[e]||(Ir[e]=t,(n[e]=n[e]||[]).push(t))}}function Br(e){var t=s.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}Hr("@fluentui/set-version","6.0.0"),Hr("@fluentui/style-utilities","8.9.12"),Nr();var Rr=((Vr={})[Ue.top]=Wn.slideUpIn10,Vr[Ue.bottom]=Wn.slideDownIn10,Vr[Ue.left]=Wn.slideLeftIn10,Vr[Ue.right]=Wn.slideRightIn10,Vr),Wr={opacity:0,filter:"opacity(0)",pointerEvents:"none"},zr=["role","aria-roledescription"],Yr={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Ee.bottomAutoEdge},Ur=he({disableCaching:!0});function qr(e,t,n,r,o){var a=s.useState(),l=a[0],u=a[1],c=s.useRef(0),d=s.useRef(),h=Ht(),p=e.hidden,f=e.target,g=e.finalHeight,m=e.calloutMaxHeight,v=e.onPositioned,_=e.directionalHint;return s.useEffect((function(){if(!p){var a=h.requestAnimationFrame((function(){var a,s,h,p;if(t.current&&n){var _=i(i({},e),{target:r.current,bounds:o()}),y=n.cloneNode(!0);y.style.maxHeight=m?""+m:"",y.style.visibility="hidden",null===(a=n.parentElement)||void 0===a||a.appendChild(y);var x=d.current===f?l:void 0,b=g?function(e,t,n,r){return function(e,t,n,r){return Ft(e,t,n,r,!0)}(e,t,n,r)}(_,t.current,y,x):function(e,t,n,r){return Ft(e,t,n,r)}(_,t.current,y,x);null===(s=n.parentElement)||void 0===s||s.removeChild(y),!l&&b||l&&b&&(p=b,!Kr((h=l).elementPosition,p.elementPosition)||!Kr(h.beakPosition.elementPosition,p.beakPosition.elementPosition))&&c.current<5?(c.current++,u(b)):c.current>0&&(c.current=0,null==v||v(l))}}),n);return d.current=f,function(){h.cancelAnimationFrame(a),d.current=void 0}}u(void 0),c.current=0}),[p,_,h,n,m,t,r,g,o,v,l,e,f]),l}var Xr=s.memo(s.forwardRef((function(e,t){var n=Ye(Yr,e),r=n.styles,o=n.style,a=n.ariaLabel,l=n.ariaDescribedBy,u=n.ariaLabelledBy,c=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,m=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,y=n.hideOverflow,x=void 0===y?!!_:y,b=n.backgroundColor,C=n.calloutMaxHeight,S=n.onScroll,E=n.shouldRestoreFocus,L=void 0===E||E,k=n.target,A=n.hidden,w=n.onLayerMounted,D=n.popupProps,T=s.useRef(null),M=s.useState(null),P=M[0],F=M[1],N=s.useCallback((function(e){F(e)}),[]),V=Rt(T,t),I=function(e,t){var n=s.useRef(),r=s.useRef(null),i=zt();if(!e||e!==n.current||"string"==typeof e){if(e)if("string"==typeof e){var o=te(null==t?void 0:t.current);r.current=o?o.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,i]}(n.target,{current:P}),O=I[0],H=I[1],B=function(e,t,n){var r=e.bounds,i=e.minPagePadding,o=void 0===i?Yr.minPagePadding:i,a=e.target,l=s.useState(!1),u=l[0],c=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||u){var e="function"==typeof r?n?r(a,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,i=0;if(null!==e&&e.getBoundingClientRect){var o=e.getBoundingClientRect();r=(o.left+o.right)/2,i=(o.top+o.bottom)/2}else null!==e&&(r=e.left||e.x,i=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var u=l[s];r&&u.left<=r&&u.right>=r&&i&&u.top<=i&&u.bottom>=i&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}(e,t)}(t.current,n),e={top:e.top+o,left:e.left+o,right:e.right-o,bottom:e.bottom-o,width:e.width-2*o,height:e.height-2*o}),d.current=e,u&&c(!1)}return d.current}),[r,o,a,t,n,u]),p=Ht();return Bt(n,"resize",p.debounce((function(){c(!0)}),500,{leading:!0})),h}(n,O,H),R=qr(n,T,P,O,B),W=function(e,t,n){var r,i=e.calloutMaxHeight,o=e.finalHeight,a=e.directionalHint,l=e.directionalHintFixed,u=e.hidden,c=s.useState(),d=c[0],h=c[1],p=null!==(r=null==n?void 0:n.elementPosition)&&void 0!==r?r:{},f=p.top,g=p.bottom;return s.useEffect((function(){var e,n,r=null!==(e=t())&&void 0!==e?e:{},o=r.top,a=r.bottom;"number"==typeof f&&a?n=a-f:"number"==typeof g&&"number"==typeof o&&a&&(n=a-o-g),h(!i&&!u||i&&n&&i>n?n:i||void 0)}),[g,i,o,a,l,t,u,n,f]),d}(n,B,R),z=function(e,t,n,r,i){var o=e.hidden,a=e.onDismiss,l=e.preventDismissOnScroll,u=e.preventDismissOnResize,c=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=s.useRef(!1),g=Ht(),m=Br([function(){f.current=!0},function(){f.current=!1}]),v=!!t;return s.useEffect((function(){var e=function(e){v&&!l&&m(e)},t=function(e){u||p&&p(e)||null==a||a(e)},s=function(e){c||m(e)},m=function(e){var t=e.composedPath?e.composedPath():[],o=t.length>0?t[0]:e.target,s=n.current&&!Ae(n.current,o);if(s&&f.current)f.current=!1;else if(!r.current&&s||e.target!==i&&s&&(!r.current||"stopPropagation"in r.current||d||o!==r.current&&!Ae(r.current,o))){if(p&&p(e))return;null==a||a(e)}},_=function(e){h&&((!p||p(e))&&(p||c)||(null==i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null==a||a(e))},y=new Promise((function(n){g.setTimeout((function(){if(!o&&i){var r=[ze(i,"scroll",e,!0),ze(i,"resize",t,!0),ze(i.document.documentElement,"focus",s,!0),ze(i.document.documentElement,"click",s,!0),ze(i,"blur",_,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){y.then((function(e){return e()}))}}),[o,g,n,r,i,a,h,d,c,u,l,v,p]),m}(n,R,T,O,H),Y=z[0],U=z[1],q=(null==R?void 0:R.elementPosition.top)&&(null==R?void 0:R.elementPosition.bottom),X=i(i({},null==R?void 0:R.elementPosition),{maxHeight:W});if(q&&(X.bottom=void 0),function(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=Ht(),a=!!t;s.useEffect((function(){if(!r&&i&&a&&n){var e=o.requestAnimationFrame((function(){return Pe(n)}),n);return function(){return o.cancelAnimationFrame(e)}}}),[r,a,o,n,i])}(n,R,P),s.useEffect((function(){A||null==w||w()}),[A]),!H)return null;var j=x,K=d&&!!k,G=Ur(r,{theme:n.theme,className:c,overflowYHidden:j,calloutWidth:f,positions:R,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),Z=i(i({maxHeight:C||"100%"},o),j&&{overflowY:"hidden"}),$=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:V,className:G.container,style:$},s.createElement("div",i({},et(n,Je,zr),{className:tt(G.root,R&&R.targetEdge&&Rr[R.targetEdge]),style:R?i({},X):Wr,tabIndex:-1,ref:N}),K&&s.createElement("div",{className:G.beak,style:jr(R)}),K&&s.createElement("div",{className:G.beakCurtain}),s.createElement(Ut,i({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:a,ariaLabelledBy:u,className:G.calloutMain,onDismiss:n.onDismiss,onMouseDown:Y,onMouseUp:U,onRestoreFocus:n.onRestoreFocus,onScroll:S,shouldRestoreFocus:L,style:Z},D),h)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||function(e,t){if(!e||!t)return!e&&!t;for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}(e,t)}));function jr(e){var t,n,r=i(i({},null===(t=null==e?void 0:e.beakPosition)||void 0===t?void 0:t.elementPosition),{display:(null===(n=null==e?void 0:e.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=0,r.top=0),r}function Kr(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],i=t[n];if(void 0===r||void 0===i)return!1;if(r.toFixed(2)!==i.toFixed(2))return!1}return!0}function Gr(e){return{height:e,width:e}}Xr.displayName="CalloutContentBase";var Zr={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},$r=E(Xr,(function(e){var t,n=e.theme,r=e.className,i=e.overflowYHidden,o=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,d=or(Zr,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Yn.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Un]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!o&&{width:o},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Gr(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"});const Qr=s.createContext(void 0),Jr=()=>()=>{};Qr.Provider;var ei=ReactDOM;new WeakMap,new WeakMap;var ti=s.createContext(void 0),ni=function(e){var t=e.providerRef,n=e.layerRoot,r=s.useState([])[0],i=s.useContext(ti),o=void 0!==i&&!n,a=s.useMemo((function(){return o?void 0:{providerRef:t,registeredProviders:r,registerProvider:function(e){r.push(e),null==i||i.registerProvider(e)},unregisterProvider:function(e){null==i||i.unregisterProvider(e);var t=r.indexOf(e);t>=0&&r.splice(t,1)}}}),[t,r,i,o]);return s.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?s.createElement(ti.Provider,{value:a},e.children):s.createElement(s.Fragment,null,e.children)};function ri(e,t){void 0===e&&(e={});var n=ii(t)?t:function(e){return function(t){return e?i(i({},t),e):t}}(t);return n(e)}function ii(e){return"function"==typeof e}var oi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return r(t,e),t.prototype.componentDidMount=function(){b.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){b.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return s.createElement(C.Consumer,null,(function(n){var r=function(e,t){var n,r,o,a=(t||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:ri(s.settings,e.settings),scopedSettings:(n=s.scopedSettings,r=e.scopedSettings,void 0===n&&(n={}),(ii(r)?r:(void 0===(o=r)&&(o={}),function(e){var t=i({},e);for(var n in o)o.hasOwnProperty(n)&&(t[n]=i(i({},e[n]),o[n]));return t}))(n)),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),s.createElement(C.Provider,{value:r},e.props.children)}))},t}(s.Component),ai=he(),si=tr((function(e,t){return Tr(i(i({},e),{rtl:t}))})),li=s.forwardRef((function(e,t){var n=e.className,r=e.theme,o=e.applyTheme,a=e.applyThemeToBody,l=e.styles,u=ai(l,{theme:r,applyTheme:o,className:n}),c=s.useRef(null);return function(e,t,n){var r=t.bodyThemed;s.useEffect((function(){if(e){var t=te(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(a,u,c),s.createElement(s.Fragment,null,function(e,t,n,r){var o=t.root,a=e.as,l=void 0===a?"div":a,u=e.dir,c=e.theme,d=et(e,Je,["dir"]),h=function(e){var t=e.theme,n=e.dir,r=le(t)?"rtl":"ltr",i=le()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}}(e),p=h.rootDir,f=h.needsTheme,g=s.createElement(ni,{providerRef:n},s.createElement(l,i({dir:p},d,{className:o,ref:Rt(n,r)})));return f&&(g=s.createElement(oi,{settings:{theme:si(c,"rtl"===u)}},g)),g}(e,u,c,t))}));li.displayName="FabricBase";var ui,ci={fontFamily:"inherit"},di={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},hi=E(li,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,i=e.theme;return{root:[or(di,i).root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":ci,"& input":ci,"& textarea":ci},t&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),pi="data-portal-element",fi={},gi={},mi="fluent-default-layer-host",vi="#"+mi,_i=u()?s.useLayoutEffect:s.useEffect,yi=he(),xi=s.forwardRef((function(e,t){var n,r=null!==(n=s.useContext(Qr))&&void 0!==n?n:Jr,o=s.useRef(null),a=Rt(o,t),l=s.useRef(),u=s.useRef(null),c=s.useState(!1),d=c[0],h=c[1],p=e.children,f=e.className,g=e.eventBubblingEnabled,m=e.fabricProps,v=e.hostId,_=e.insertFirst,y=e.onLayerDidMount,x=void 0===y?function(){}:y,b=e.onLayerMounted,C=void 0===b?function(){}:b,S=e.onLayerWillUnmount,E=e.styles,L=e.theme,k=Rt(u,null==m?void 0:m.ref),A=yi(E,{theme:L,className:f,isNotHost:!v}),w=function(){null==S||S();var e=l.current;l.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},D=function(){var e,t=te(o.current);if(t){var n=function(e){var t,n;if(v){var r=function(e){var t=gi[e];return t&&t[0]||void 0}(v);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(v))&&void 0!==n?n:null}var i=vi,o=i?e.querySelector(i):null;return o||(o=function(e){var t=e.createElement("div");return t.setAttribute("id",mi),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}(e)),o}(t);if(n){w();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=A.root,r.setAttribute(pi,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var i=n._virtual.parent;if(i&&i!==t){var o=i._virtual.children.indexOf(n);o>-1&&i._virtual.children.splice(o,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,o.current),_?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,h(!0)}}};return _i((function(){D(),v&&function(e,t){fi[e]||(fi[e]=[]),fi[e].push(t);var n=gi[e];if(n)for(var r=0,i=n;r<i.length;r++)i[r].notifyLayersChanged()}(v,D);var e=l.current?r(l.current):void 0;return function(){e&&e(),w(),v&&function(e,t){var n=fi[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete fi[e])}var i=gi[e];if(i)for(var o=0,a=i;o<a.length;o++)a[o].notifyLayersChanged()}(v,D)}}),[v]),s.useEffect((function(){l.current&&d&&(null==C||C(),null==x||x(),h(!1))}),[d,C,x]),s.createElement("span",{className:"ms-layer",ref:a},l.current&&ei.createPortal(s.createElement(ni,{layerRoot:!0,providerRef:k},s.createElement(hi,i({},!g&&(ui||(ui={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return ui[e]=bi}))),ui),m,{className:tt(A.content,null==m?void 0:m.className),ref:k}),p)),l.current))}));xi.displayName="LayerBase";var bi=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},Ci={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Si=E(xi,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,i=or(Ci,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:Yn.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[i.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Ei=s.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,a=o(e,["layerProps","doNotLayer"]),l=s.createElement($r,i({},a,{doNotLayer:r,ref:t}));return r?l:s.createElement(Si,i({},n),l)}));Ei.displayName="Callout";var Li=Array.prototype.slice;function ki(e){return e}var Ai=1,wi=2,Di=3,Ti=4,Mi=1e-6;function Pi(e){return"translate("+(e+.5)+",0)"}function Fi(e){return"translate(0,"+(e+.5)+")"}function Ni(e){return function(t){return+e(t)}}function Vi(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Ii(){return!this.__axis}function Oi(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=e===Ai||e===Ti?-1:1,u=e===Ti||e===wi?"x":"y",c=e===Ai||e===Di?Pi:Fi;function d(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):ki:i,f=Math.max(o,0)+s,g=t.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(t.bandwidth?Vi:Ni)(t.copy()),y=d.selection?d.selection():d,x=y.selectAll(".domain").data([null]),b=y.selectAll(".tick").data(h,t).order(),C=b.exit(),S=b.enter().append("g").attr("class","tick"),E=b.select("line"),L=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(S),E=E.merge(S.append("line").attr("stroke","#000").attr(u+"2",l*o)),L=L.merge(S.append("text").attr("fill","#000").attr(u,l*f).attr("dy",e===Ai?"0em":e===Di?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),L=L.transition(d),C=C.transition(d).attr("opacity",Mi).attr("transform",(function(e){return isFinite(e=_(e))?c(e):this.getAttribute("transform")})),S.attr("opacity",Mi).attr("transform",(function(e){var t=this.parentNode.__axis;return c(t&&isFinite(t=t(e))?t:_(e))}))),C.remove(),x.attr("d",e===Ti||e==wi?"M"+l*a+","+m+"H0.5V"+v+"H"+l*a:"M"+m+","+l*a+"V0.5H"+v+"V"+l*a),b.attr("opacity",1).attr("transform",(function(e){return c(_(e))})),E.attr(u+"2",l*o),L.attr(u,l*f).text(p),y.filter(Ii).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===wi?"start":e===Ti?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Li.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Li.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Li.call(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(i=e,d):i},d.tickSize=function(e){return arguments.length?(o=a=+e,d):o},d.tickSizeInner=function(e){return arguments.length?(o=+e,d):o},d.tickSizeOuter=function(e){return arguments.length?(a=+e,d):a},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d}function Hi(e){return Oi(wi,e)}function Bi(e){return Oi(Di,e)}function Ri(e){return Oi(Ti,e)}function Wi(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function zi(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Wi(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var Yi=zi(Wi);Yi.right,Yi.left;var Ui=Array.prototype;function qi(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r}function Xi(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r}function ji(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o}Ui.slice,Ui.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Ki=Math.sqrt(50),Gi=Math.sqrt(10),Zi=Math.sqrt(2);function $i(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Ki?10:o>=Gi?5:o>=Zi?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ki?10:o>=Gi?5:o>=Zi?2:1)}function Qi(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ki?i*=10:o>=Gi?i*=5:o>=Zi&&(i*=2),t<e?-i:i}function Ji(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function eo(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function to(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=Ji,n=(t,n)=>Ji(e(t),n),r=(t,n)=>e(t)-n):(t=e===Ji||e===eo?e:no,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function no(){return 0}const ro=to(Ji),io=ro.right;ro.left,to((function(e){return null===e?NaN:+e})).center;var oo=io;function ao(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function so(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function lo(){}var uo=.7,co=1/uo,ho="\\s*([+-]?\\d+)\\s*",po="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",fo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",go=/^#([0-9a-f]{3,8})$/,mo=new RegExp("^rgb\\("+[ho,ho,ho]+"\\)$"),vo=new RegExp("^rgb\\("+[fo,fo,fo]+"\\)$"),_o=new RegExp("^rgba\\("+[ho,ho,ho,po]+"\\)$"),yo=new RegExp("^rgba\\("+[fo,fo,fo,po]+"\\)$"),xo=new RegExp("^hsl\\("+[po,fo,fo]+"\\)$"),bo=new RegExp("^hsla\\("+[po,fo,fo,po]+"\\)$"),Co={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function So(){return this.rgb().formatHex()}function Eo(){return this.rgb().formatRgb()}function Lo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=go.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ko(t):3===n?new Do(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Do(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Do(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=mo.exec(e))?new Do(t[1],t[2],t[3],1):(t=vo.exec(e))?new Do(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_o.exec(e))?Ao(t[1],t[2],t[3],t[4]):(t=yo.exec(e))?Ao(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xo.exec(e))?Fo(t[1],t[2]/100,t[3]/100,1):(t=bo.exec(e))?Fo(t[1],t[2]/100,t[3]/100,t[4]):Co.hasOwnProperty(e)?ko(Co[e]):"transparent"===e?new Do(NaN,NaN,NaN,0):null}function ko(e){return new Do(e>>16&255,e>>8&255,255&e,1)}function Ao(e,t,n,r){return r<=0&&(e=t=n=NaN),new Do(e,t,n,r)}function wo(e,t,n,r){return 1===arguments.length?((i=e)instanceof lo||(i=Lo(i)),i?new Do((i=i.rgb()).r,i.g,i.b,i.opacity):new Do):new Do(e,t,n,null==r?1:r);var i}function Do(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function To(){return"#"+Po(this.r)+Po(this.g)+Po(this.b)}function Mo(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Po(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Fo(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vo(e,t,n,r)}function No(e){if(e instanceof Vo)return new Vo(e.h,e.s,e.l,e.opacity);if(e instanceof lo||(e=Lo(e)),!e)return new Vo;if(e instanceof Vo)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Vo(a,s,l,e.opacity)}function Vo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Io(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Oo(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Ho(e){return function(){return e}}function Bo(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ho(isNaN(e)?t:e)}ao(lo,Lo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:So,formatHex:So,formatHsl:function(){return No(this).formatHsl()},formatRgb:Eo,toString:Eo}),ao(Do,wo,so(lo,{brighter:function(e){return e=null==e?co:Math.pow(co,e),new Do(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?uo:Math.pow(uo,e),new Do(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:To,formatHex:To,formatRgb:Mo,toString:Mo})),ao(Vo,(function(e,t,n,r){return 1===arguments.length?No(e):new Vo(e,t,n,null==r?1:r)}),so(lo,{brighter:function(e){return e=null==e?co:Math.pow(co,e),new Vo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?uo:Math.pow(uo,e),new Vo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Do(Io(e>=240?e-240:e+120,i,r),Io(e,i,r),Io(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Ro=function e(t){var n=function(e){return 1==(e=+e)?Bo:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ho(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=wo(e)).r,(t=wo(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Bo(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Wo(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=wo(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}function zo(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Zo(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Yo(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Uo(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function qo(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Zo(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}Wo((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Oo((n-r/t)*t,a,i,o,s)}})),Wo((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Oo((n-r/t)*t,i,o,a,s)}}));var Xo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jo=new RegExp(Xo.source,"g");function Ko(e,t){var n,r,i,o=Xo.lastIndex=jo.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Xo.exec(e))&&(r=jo.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Uo(n,r)})),o=jo.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Go(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function Zo(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?Ho(t):("number"===i?Uo:"string"===i?(n=Lo(t))?(t=n,Ro):Ko:t instanceof Lo?Ro:t instanceof Date?Yo:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?zo:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?qo:Uo:Go))(e,t)}function $o(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Qo(e){return+e}var Jo=[0,1];function ea(e){return e}function ta(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function na(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=ta(i,r),o=n(a,o)):(r=ta(r,i),o=n(o,a)),function(e){return o(r(e))}}function ra(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=ta(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=oo(e,t,1,r)-1;return o[n](i[n](t))}}function ia(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function oa(){return function(){var e,t,n,r,i,o,a=Jo,s=Jo,l=Zo,u=ea;function c(){var e,t,n,l=Math.min(a.length,s.length);return u!==ea&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?ra:na,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((o||(o=r(s,a.map(e),Uo)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Qo),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=$o,c()},d.clamp=function(e){return arguments.length?(u=!!e||ea,c()):u!==ea},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}()(ea,ea)}function aa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var sa,la=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ua(e){if(!(t=la.exec(e)))throw new Error("invalid format: "+e);var t;return new ca({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ca(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function da(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ha(e){return(e=da(Math.abs(e)))?e[1]:NaN}function pa(e,t){var n=da(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}ua.prototype=ca.prototype,ca.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var fa={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return pa(100*e,t)},r:pa,s:function(e,t){var n=da(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(sa=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+da(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function ga(e){return e}var ma,va,_a,ya=Array.prototype.map,xa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ba(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=$i(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,o=Qi(e,t,n);switch((r=ua(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ha(t)/3)))-ha(Math.abs(e)))}(o,a))||(r.precision=i),_a(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ha(t)-ha(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-ha(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return va(r)}(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],u=o[s],c=10;for(u<l&&(i=l,l=u,u=i,i=a,a=s,s=i);c-- >0;){if((i=$i(l,u,n))===r)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i}r=i}return e},e}function Ca(){var e=oa();return e.copy=function(){return ia(e,Ca())},aa.apply(e,arguments),ba(e)}ma=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?ga:(t=ya.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?ga:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(ya.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=ua(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,_=e.type;"n"===_?(g=!0,_="g"):fa[_]||(void 0===m&&(m=12),v=!0,_="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?o:/[%p]/.test(_)?l:"",b=fa[_],C=/[defgprs%]/.test(_);function S(e){var i,o,l,h=y,S=x;if("c"===_)S=b(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:b(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:u:"-"===d||"("===d?"":d)+h,S=("s"===_?xa[8+sa/3]:"")+S+(E&&"("===d?")":""),C)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){S=(46===l?a+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}g&&!p&&(e=r(e,1/0));var L=h.length+e.length+S.length,k=L<f?new Array(f-L+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?f-S.length:1/0),k=""),n){case"<":e=h+e+S+k;break;case"=":e=h+k+e+S;break;case"^":e=k.slice(0,L=k.length>>1)+h+e+S+k.slice(L);break;default:e=k+h+e+S}return s(e)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=ua(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ha(t)/3))),i=Math.pow(10,-r),o=xa[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),va=ma.format,_a=ma.formatPrefix;const Sa=1e3,Ea=6e4,La=36e5,ka=864e5,Aa=6048e5,wa=31536e6;var Da=new Date,Ta=new Date;function Ma(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Ma((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Da.setTime(+t),Ta.setTime(+r),e(Da),e(Ta),Math.floor(n(Da,Ta))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Pa=Ma((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Pa.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Ma((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Pa:null};var Fa=Pa,Na=(Pa.range,Ma((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Sa)}),(function(e,t){return(t-e)/Sa}),(function(e){return e.getUTCSeconds()}))),Va=Na,Ia=(Na.range,Ma((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Sa)}),(function(e,t){e.setTime(+e+t*Ea)}),(function(e,t){return(t-e)/Ea}),(function(e){return e.getMinutes()}))),Oa=Ia,Ha=(Ia.range,Ma((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Sa-e.getMinutes()*Ea)}),(function(e,t){e.setTime(+e+t*La)}),(function(e,t){return(t-e)/La}),(function(e){return e.getHours()}))),Ba=Ha,Ra=(Ha.range,Ma((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ea)/ka),(e=>e.getDate()-1))),Wa=Ra;function za(e){return Ma((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ea)/Aa}))}Ra.range;var Ya=za(0),Ua=za(1),qa=za(2),Xa=za(3),ja=za(4),Ka=za(5),Ga=za(6),Za=(Ya.range,Ua.range,qa.range,Xa.range,ja.range,Ka.range,Ga.range,Ma((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),$a=Za,Qa=(Za.range,Ma((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));Qa.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ma((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var Ja=Qa,es=(Qa.range,Ma((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Ea)}),(function(e,t){return(t-e)/Ea}),(function(e){return e.getUTCMinutes()}))),ts=es,ns=(es.range,Ma((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*La)}),(function(e,t){return(t-e)/La}),(function(e){return e.getUTCHours()}))),rs=ns,is=(ns.range,Ma((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/ka}),(function(e){return e.getUTCDate()-1}))),os=is;function as(e){return Ma((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Aa}))}is.range;var ss=as(0),ls=as(1),us=as(2),cs=as(3),ds=as(4),hs=as(5),ps=as(6),fs=(ss.range,ls.range,us.range,cs.range,ds.range,hs.range,ps.range,Ma((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),gs=fs,ms=(fs.range,Ma((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));ms.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ma((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var vs=ms;function _s(e,t,n,r,i,o){const a=[[Va,1,Sa],[Va,5,5e3],[Va,15,15e3],[Va,30,3e4],[o,1,Ea],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,La],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,ka],[r,2,1728e5],[n,1,Aa],[t,1,2592e6],[t,3,7776e6],[e,1,wa]];function s(t,n,r){const i=Math.abs(n-t)/r,o=to((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(Qi(t/wa,n/wa,r));if(0===o)return Fa.every(Math.max(Qi(t,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}ms.range;const[ys,xs]=_s(vs,gs,ss,os,rs,ts),[bs,Cs]=_s(Ja,$a,Ya,Wa,Ba,Oa);var Ss=new Date,Es=new Date;function Ls(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return Ls((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return Ss.setTime(+t),Es.setTime(+r),e(Ss),e(Es),Math.floor(n(Ss,Es))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var ks=1e3,As=6e4,ws=36e5,Ds=864e5,Ts=6048e5;function Ms(e){return Ls((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Ts}))}var Ps=Ms(0),Fs=Ms(1),Ns=Ms(2),Vs=Ms(3),Is=Ms(4),Os=Ms(5),Hs=Ms(6),Bs=(Ps.range,Fs.range,Ns.range,Vs.range,Is.range,Os.range,Hs.range,Ls((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ds}),(function(e){return e.getUTCDate()-1}))),Rs=Bs;function Ws(e){return Ls((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*As)/Ts}))}Bs.range;var zs=Ws(0),Ys=Ws(1),Us=Ws(2),qs=Ws(3),Xs=Ws(4),js=Ws(5),Ks=Ws(6),Gs=(zs.range,Ys.range,Us.range,qs.range,Xs.range,js.range,Ks.range,Ls((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*As)/Ds}),(function(e){return e.getDate()-1}))),Zs=Gs,$s=(Gs.range,Ls((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));$s.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ls((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var Qs=$s,Js=($s.range,Ls((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));Js.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ls((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var el=Js;function tl(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function nl(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function rl(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function il(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=gl(i),c=ml(i),d=gl(o),h=ml(o),p=gl(a),f=ml(a),g=gl(s),m=ml(s),v=gl(l),_=ml(l),y={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Il,e:Il,f:Wl,H:Ol,I:Hl,j:Bl,L:Rl,m:zl,M:Yl,p:function(e){return i[+(e.getHours()>=12)]},Q:vu,s:_u,S:Ul,u:ql,U:Xl,V:jl,w:Kl,W:Gl,x:null,X:null,y:Zl,Y:$l,Z:Ql,"%":mu},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Jl,e:Jl,f:iu,H:eu,I:tu,j:nu,L:ru,m:ou,M:au,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:vu,s:_u,S:su,u:lu,U:uu,V:cu,w:du,W:hu,x:null,X:null,y:pu,Y:fu,Z:gu,"%":mu},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:kl,e:kl,f:Pl,H:wl,I:wl,j:Al,L:Ml,m:Ll,M:Dl,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Nl,s:Vl,S:Tl,u:_l,U:yl,V:xl,w:vl,W:bl,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:Sl,Y:Cl,Z:El,"%":Fl};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=ul[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,i,o=rl(1900);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=nl(rl(o.y))).getUTCDay(),r=i>4||0===i?Fs.ceil(r):Fs(r),r=Rs.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(rl(o.y))).getDay(),r=i>4||0===i?Ys.ceil(r):Ys(r),r=Zs.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?nl(rl(o.y)).getUTCDay():t(rl(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,nl(o)):t(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=b[i in ul?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",tl);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,nl);return t.toString=function(){return e},t}}}Js.range;var ol,al,sl,ll,ul={"-":"",_:" ",0:"0"},cl=/^\s*\d+/,dl=/^%/,hl=/[\\^$*+?|[\]().{}]/g;function pl(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function fl(e){return e.replace(hl,"\\$&")}function gl(e){return new RegExp("^(?:"+e.map(fl).join("|")+")","i")}function ml(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function vl(e,t,n){var r=cl.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _l(e,t,n){var r=cl.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function yl(e,t,n){var r=cl.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function xl(e,t,n){var r=cl.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bl(e,t,n){var r=cl.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Cl(e,t,n){var r=cl.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Sl(e,t,n){var r=cl.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function El(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ll(e,t,n){var r=cl.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function kl(e,t,n){var r=cl.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Al(e,t,n){var r=cl.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function wl(e,t,n){var r=cl.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Dl(e,t,n){var r=cl.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=cl.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ml(e,t,n){var r=cl.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Pl(e,t,n){var r=cl.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fl(e,t,n){var r=dl.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Nl(e,t,n){var r=cl.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Vl(e,t,n){var r=cl.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Il(e,t){return pl(e.getDate(),t,2)}function Ol(e,t){return pl(e.getHours(),t,2)}function Hl(e,t){return pl(e.getHours()%12||12,t,2)}function Bl(e,t){return pl(1+Zs.count(Qs(e),e),t,3)}function Rl(e,t){return pl(e.getMilliseconds(),t,3)}function Wl(e,t){return Rl(e,t)+"000"}function zl(e,t){return pl(e.getMonth()+1,t,2)}function Yl(e,t){return pl(e.getMinutes(),t,2)}function Ul(e,t){return pl(e.getSeconds(),t,2)}function ql(e){var t=e.getDay();return 0===t?7:t}function Xl(e,t){return pl(zs.count(Qs(e),e),t,2)}function jl(e,t){var n=e.getDay();return e=n>=4||0===n?Xs(e):Xs.ceil(e),pl(Xs.count(Qs(e),e)+(4===Qs(e).getDay()),t,2)}function Kl(e){return e.getDay()}function Gl(e,t){return pl(Ys.count(Qs(e),e),t,2)}function Zl(e,t){return pl(e.getFullYear()%100,t,2)}function $l(e,t){return pl(e.getFullYear()%1e4,t,4)}function Ql(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pl(t/60|0,"0",2)+pl(t%60,"0",2)}function Jl(e,t){return pl(e.getUTCDate(),t,2)}function eu(e,t){return pl(e.getUTCHours(),t,2)}function tu(e,t){return pl(e.getUTCHours()%12||12,t,2)}function nu(e,t){return pl(1+Rs.count(el(e),e),t,3)}function ru(e,t){return pl(e.getUTCMilliseconds(),t,3)}function iu(e,t){return ru(e,t)+"000"}function ou(e,t){return pl(e.getUTCMonth()+1,t,2)}function au(e,t){return pl(e.getUTCMinutes(),t,2)}function su(e,t){return pl(e.getUTCSeconds(),t,2)}function lu(e){var t=e.getUTCDay();return 0===t?7:t}function uu(e,t){return pl(Ps.count(el(e),e),t,2)}function cu(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Is(e):Is.ceil(e),pl(Is.count(el(e),e)+(4===el(e).getUTCDay()),t,2)}function du(e){return e.getUTCDay()}function hu(e,t){return pl(Fs.count(el(e),e),t,2)}function pu(e,t){return pl(e.getUTCFullYear()%100,t,2)}function fu(e,t){return pl(e.getUTCFullYear()%1e4,t,4)}function gu(){return"+0000"}function mu(){return"%"}function vu(e){return+e}function _u(e){return Math.floor(+e/1e3)}ol=il({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),al=ol.format,ol.parse,sl=ol.utcFormat,ll=ol.utcParse;var yu="%Y-%m-%dT%H:%M:%S.%LZ";function xu(e){return new Date(e)}function bu(e){return e instanceof Date?+e:+new Date(+e)}function Cu(e,t,n,r,i,o,a,s,l,u){var c=oa(),d=c.invert,h=c.domain,p=u(".%L"),f=u(":%S"),g=u("%I:%M"),m=u("%I %p"),v=u("%a %d"),_=u("%b %d"),y=u("%B"),x=u("%Y");function b(e){return(l(e)<e?p:s(e)<e?f:a(e)<e?g:o(e)<e?m:r(e)<e?i(e)<e?v:_:n(e)<e?y:x)(e)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?h(Array.from(e,bu)):h().map(xu)},c.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?b:u(t)},c.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):c},c.copy=function(){return ia(c,Cu(e,t,n,r,i,o,a,s,l,u))},c}function Su(){return aa.apply(Cu(bs,Cs,Ja,$a,Ya,Wa,Ba,Oa,Va,al).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Date.prototype.toISOString||sl(yu),+new Date("2000-01-01T00:00:00.000Z")||ll(yu);class Eu extends Map{constructor(e,t=Du){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(ku(this,e))}has(e){return super.has(ku(this,e))}set(e,t){return super.set(Au(this,e),t)}delete(e){return super.delete(wu(this,e))}}class Lu extends Set{constructor(e,t=Du){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(ku(this,e))}add(e){return super.add(Au(this,e))}delete(e){return super.delete(wu(this,e))}}function ku({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Au({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function wu({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Du(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Tu=Symbol("implicit");function Mu(){var e=new Eu,t=[],n=[],r=Tu;function i(i){let o=e.get(i);if(void 0===o){if(r!==Tu)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Eu;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Mu(t,n).unknown(r)},aa.apply(i,arguments),i}function Pu(){var e,t,n=Mu().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,u=0,c=.5;function d(){var n=r().length,d=a<o,h=d?a:o,p=d?o:a;e=(p-h)/Math.max(1,n-l+2*u),s&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*c,t=e*(1-l),s&&(h=Math.round(h),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return h+e*t}));return i(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return Pu(r(),[o,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},aa.apply(d(),arguments)}var Fu="http://www.w3.org/1999/xhtml",Nu={svg:"http://www.w3.org/2000/svg",xhtml:Fu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vu(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Nu.hasOwnProperty(t)?{space:Nu[t],local:e}:e}function Iu(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fu&&t.documentElement.namespaceURI===Fu?t.createElement(e):t.createElementNS(n,e)}}function Ou(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Hu(e){var t=Vu(e);return(t.local?Ou:Iu)(t)}function Bu(){}function Ru(e){return null==e?Bu:function(){return this.querySelector(e)}}function Wu(){return[]}var zu=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Yu=document.documentElement;if(!Yu.matches){var Uu=Yu.webkitMatchesSelector||Yu.msMatchesSelector||Yu.mozMatchesSelector||Yu.oMatchesSelector;zu=function(e){return function(){return Uu.call(this,e)}}}}var qu=zu;function Xu(e){return new Array(e.length)}function ju(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ju.prototype={constructor:ju,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Ku(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new ju(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Gu(e,t,n,r,i,o,a){var s,l,u,c={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=u="$"+a.call(l,l.__data__,s,t),u in c?i[s]=l:c[u]=l);for(s=0;s<h;++s)(l=c[u="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],c[u]=null):n[s]=new ju(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&c[p[s]]===l&&(i[s]=l)}function Zu(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function $u(e){return function(){this.removeAttribute(e)}}function Qu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ju(e,t){return function(){this.setAttribute(e,t)}}function ec(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function tc(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function nc(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function rc(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ic(e){return function(){this.style.removeProperty(e)}}function oc(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ac(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function sc(e){return function(){delete this[e]}}function lc(e,t){return function(){this[e]=t}}function uc(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function cc(e){return e.trim().split(/^|\s+/)}function dc(e){return e.classList||new hc(e)}function hc(e){this._node=e,this._names=cc(e.getAttribute("class")||"")}function pc(e,t){for(var n=dc(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function fc(e,t){for(var n=dc(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function gc(e){return function(){pc(this,e)}}function mc(e){return function(){fc(this,e)}}function vc(e,t){return function(){(t.apply(this,arguments)?pc:fc)(this,e)}}function _c(){this.textContent=""}function yc(e){return function(){this.textContent=e}}function xc(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function bc(){this.innerHTML=""}function Cc(e){return function(){this.innerHTML=e}}function Sc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Ec(){this.nextSibling&&this.parentNode.appendChild(this)}function Lc(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function kc(){return null}function Ac(){var e=this.parentNode;e&&e.removeChild(this)}function wc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Dc(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}hc.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Tc={},Mc=null;function Pc(e,t,n){return e=Fc(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Fc(e,t,n){return function(r){var i=Mc;Mc=r;try{e.call(this,this.__data__,t,n)}finally{Mc=i}}}function Nc(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function Vc(e,t,n){var r=Tc.hasOwnProperty(e.type)?Pc:Fc;return function(i,o,a){var s,l=this.__on,u=r(t,o,a);if(l)for(var c=0,d=l.length;c<d;++c)if((s=l[c]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=u,s.capture=n),void(s.value=t);this.addEventListener(e.type,u,n),s={type:e.type,name:e.name,value:t,listener:u,capture:n},l?l.push(s):this.__on=[s]}}function Ic(e,t,n){var r=rc(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Oc(e,t){return function(){return Ic(this,e,t)}}function Hc(e,t){return function(){return Ic(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Tc={mouseenter:"mouseover",mouseleave:"mouseout"}));var Bc=[null];function Rc(e,t){this._groups=e,this._parents=t}function Wc(e){return"string"==typeof e?new Rc([[document.querySelector(e)]],[document.documentElement]):new Rc([[e]],Bc)}Rc.prototype=function(){return new Rc([[document.documentElement]],Bc)}.prototype={constructor:Rc,select:function(e){"function"!=typeof e&&(e=Ru(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,u=r[i]=new Array(l),c=0;c<l;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),u[c]=a);return new Rc(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?Wu:function(){return this.querySelectorAll(e)}}(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,u=0;u<l;++u)(a=s[u])&&(r.push(e.call(a,a.__data__,u,s)),i.push(a));return new Rc(r,i)},filter:function(e){"function"!=typeof e&&(e=qu(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new Rc(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),c=-1,this.each((function(e){f[++c]=e})),f;var n,r=t?Gu:Ku,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),c=0;c<a;++c){var d=i[c],h=o[c],p=h.length,f=e.call(d,d&&d.__data__,c,i),g=f.length,m=l[c]=new Array(g),v=s[c]=new Array(g);r(d,h,m,v,u[c]=new Array(p),f,t);for(var _,y,x=0,b=0;x<g;++x)if(_=m[x]){for(x>=b&&(b=x+1);!(y=v[b])&&++b<g;);_._next=y||null}}return(s=new Rc(s,i))._enter=l,s._exit=u,s},enter:function(){return new Rc(this._enter||this._groups.map(Xu),this._parents)},exit:function(){return new Rc(this._exit||this._groups.map(Xu),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=u[p]||c[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new Rc(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Zu);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new Rc(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=Vu(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Qu:$u:"function"==typeof t?n.local?nc:tc:n.local?ec:Ju)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?ic:"function"==typeof t?ac:oc)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||rc(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?sc:"function"==typeof t?uc:lc)(e,t)):this.node()[e]},classed:function(e,t){var n=cc(e+"");if(arguments.length<2){for(var r=dc(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?vc:t?gc:mc)(n,t))},text:function(e){return arguments.length?this.each(null==e?_c:("function"==typeof e?xc:yc)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?bc:("function"==typeof e?Sc:Cc)(e)):this.node().innerHTML},raise:function(){return this.each(Ec)},lower:function(){return this.each(Lc)},append:function(e){var t="function"==typeof e?e:Hu(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Hu(e),r=null==t?kc:"function"==typeof t?t:Ru(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Ac)},clone:function(e){return this.select(e?Dc:wc)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Vc:Nc,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Hc:Oc)(e,t))}};var zc=0;function Yc(){this._="@"+(++zc).toString(36)}function Uc(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}function qc(e){return"string"==typeof e?new Rc([document.querySelectorAll(e)],[document.documentElement]):new Rc([null==e?[]:e],Bc)}Yc.prototype=function(){return new Yc}.prototype={constructor:Yc,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var Xc,jc,Kc,Gc,Zc=Ls((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*ks)}),(function(e,t){return(t-e)/ks}),(function(e){return e.getUTCSeconds()})),$c=Zc,Qc=(Zc.range,Ls((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ks)}),(function(e,t){e.setTime(+e+t*As)}),(function(e,t){return(t-e)/As}),(function(e){return e.getMinutes()}))),Jc=Qc,ed=(Qc.range,Ls((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ks-e.getMinutes()*As)}),(function(e,t){e.setTime(+e+t*ws)}),(function(e,t){return(t-e)/ws}),(function(e){return e.getHours()}))),td=ed,nd=(ed.range,Ls((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),rd=nd;function id(e,t,n){var r=e.domainNRangeValues,i=e.showRoundOffXTickValues,o=void 0!==i&&i,a=e.xAxistickSize,s=void 0===a?6:a,l=e.tickPadding,u=void 0===l?10:l,c=e.xAxisCount,d=void 0===c?6:c,h=e.xAxisElement,p=Ca().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);o&&p.nice();var f=Bi(p).tickSize(s).tickPadding(u).ticks(d).tickFormat((function(e,t){var r="number"==typeof e?e:e.valueOf();return _d(r,n)}));return t===jc.HorizontalBarChartWithAxis&&f.tickSizeInner(-(e.containerHeight-e.margins.top)),h&&Wc(h).call(f).selectAll("text").attr("aria-hidden","true"),p}function od(e,t,n,r,i,o){return void 0===o&&(o=!1),r===jc.HorizontalBarChartWithAxis?function(e,t,n,r){var i=e.yMinMaxValues,o=void 0===i?{startValue:0,endValue:0}:i,a=e.yAxisElement,s=void 0===a?null:a,l=e.yMaxValue,u=void 0===l?0:l,c=e.yMinValue,d=void 0===c?0:c,h=e.containerHeight,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,v=void 0===m?0:m,_=e.yAxisTickFormat,y=e.yAxisTickCount,x=void 0===y?4:y,b=v||o.endValue,C=b>u?b:u,S=o.startValue<d?0:d,E=Ca().domain([S,C]).range([h-p.bottom,p.top]),L=(t?Hi(E):Ri(E)).tickPadding(g).ticks(x);return _?L.tickFormat(_):L.tickFormat(va(".2~s")),s&&Wc(s).call(L).selectAll("text").attr("aria-hidden","true"),E}(e,t):function(e,t,n,r){void 0===r&&(r=!1);var i=e.yMinMaxValues,o=void 0===i?{startValue:0,endValue:0}:i,a=e.yAxisElement,s=void 0===a?null:a,l=e.yMaxValue,u=void 0===l?0:l,c=e.yMinValue,d=void 0===c?0:c,h=e.containerHeight,p=e.containerWidth,f=e.margins,g=e.tickPadding,m=void 0===g?12:g,v=e.maxOfYVal,_=void 0===v?0:v,y=e.yAxisTickFormat,x=e.yAxisTickCount,b=void 0===x?4:x,C=e.eventAnnotationProps,S=e.eventLabelHeight,E=_||o.endValue,L=E>u?E:u,k=o.startValue<d?0:d,A=function(e,t,n){for(var r=Math.ceil((e-t)/n),i=[t,t+r];i[i.length-1]<e;)i.push(i[i.length-1]+r);return i}(L,k,b),w=Ca().domain([k,A[A.length-1]]).range([h-f.bottom,f.top+(C?S:0)]),D=(!t&&r||t&&!r?Hi(w):Ri(w)).tickPadding(m).tickValues(A).tickSizeInner(-(p-f.left-f.right));return y?D.tickFormat(y):D.tickFormat(va(".2~s")),s&&Wc(s).call(D).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=A,w}(e,t,n,o)}nd.range,function(e){e[e.AreaChart=0]="AreaChart",e[e.LineChart=1]="LineChart",e[e.VerticalBarChart=2]="VerticalBarChart",e[e.VerticalStackedBarChart=3]="VerticalStackedBarChart",e[e.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",e[e.HeatMapChart=5]="HeatMapChart",e[e.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(jc||(jc={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Kc||(Kc={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Gc||(Gc={}));function ad(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return i(i({legend:e.legend},t),{color:e.color,index:e.index})}));t=t.concat(n)}));var n,r=[];return t.forEach((function(e,n){e.x=e.x instanceof Date?e.x.getTime():e.x;var i=[{legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}];t.slice(n+1).forEach((function(t){t.x=t.x instanceof Date?t.x.getTime():t.x,e.x===t.x&&i.push({legend:t.legend,y:t.y,color:t.color,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index})})),r.push({x:e.x,values:i})})),"x",(n=r).map((function(e){return e.x})).map((function(e,t,n){return n.indexOf(e)===t&&t})).filter((function(e){return n[e]})).map((function(e){return n[e]}))}function sd(e,t){var n=0;return e.forEach((function(e){var r=document.createElement("canvas").getContext("2d");r.font=window.getComputedStyle(t,null).getPropertyValue("font-size");var i=r.measureText(e.y).width;n=Math.max(i,n)})),n}function ld(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var i=Wc("body").append("div").attr("id",r).attr("class",t).style("opacity",0),o=n.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,s=[],l=0;l<a;l++){var u=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(u)}var c=n.selectAll(".tick")._groups[0],d=c&&Object.keys(c).length,h=function(e){Wc(c[e]).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",Mc.pageX+"px").style("top",Mc.pageY-28+"px")})).on("mouseout",(function(e){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function ud(e){var t=!1;return e&&e.length>0&&e.forEach((function(e){e.data.length>0&&(t=e.data[0].x instanceof Date)})),t}function cd(e,t,n,r,i,o,s,l,u){var c;if(o===Kc.NumericAxis)switch(r){case jc.AreaChart:case jc.LineChart:c=function(e,t,n,r){var i=Xi(e,(function(e){return Xi(e.data,(function(e){return e.x}))})),o=qi(e,(function(e){return qi(e.data,(function(e){return e.x}))})),a=t.left,s=n-t.right;return r?{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}:{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}}(e,t,n,i);break;case jc.VerticalStackedBarChart:c=function(e,t,n,r,i){var o=Xi(e,(function(e){return e.x})),a=qi(e,(function(e){return e.x})),s=t.left+i/2,l=n-t.right-i/2;return r?{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}:{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;case jc.VerticalBarChart:c=function(e,t,n,r,i){var o=qi(e,(function(e){return e.x})),a=Xi(e,(function(e){return e.x})),s=t.left+i/2,l=n-t.right-i/2;return r?{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;case jc.HorizontalBarChartWithAxis:c=function(e,t,n,r,i){var o=qi(e,(function(e){return e.x})),a=r?t.left:t.left+i,s=r?n-t.right-i:n-t.right;return r?{dStartValue:o,dEndValue:0,rStartValue:a,rEndValue:s}:{dStartValue:0,dEndValue:o,rStartValue:a,rEndValue:s}}(e,t,n,i,u);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===Kc.DateAxis)switch(r){case jc.AreaChart:case jc.LineChart:c=function(e,t,n,r,i){void 0===i&&(i=[]);var o=Xi(e,(function(e){return Xi(e.data,(function(e){return e.x}))})),s=qi(e,(function(e){return qi(e.data,(function(e){return e.x}))})),l=Xi(a(a([],i),[o])),u=qi(a(a([],i),[s])),c=t.left,d=n-t.right;return r?{dStartValue:u,dEndValue:l,rStartValue:c,rEndValue:d}:{dStartValue:l,dEndValue:u,rStartValue:c,rEndValue:d}}(e,t,n,i,l);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case jc.VerticalStackedBarChart:case jc.GroupedVerticalBarChart:case jc.VerticalBarChart:case jc.HeatMapChart:c=function(e,t,n){var r=e.left,i=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:i,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:i}}(t,n,i);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return c}function dd(e,t,n){var r,i,o;switch(void 0===n&&(n=Gc.NumericAxis),t){case jc.AreaChart:case jc.LineChart:r=function(e){var t=qi(e,(function(e){return qi(e.data,(function(e){return e.y}))}));return{startValue:Xi(e,(function(e){return Xi(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case jc.VerticalStackedBarChart:o=qi(i=e,(function(e){return e.y})),r={startValue:Xi(i,(function(e){return e.y})),endValue:o};break;case jc.VerticalBarChart:r=function(e){var t=qi(e,(function(e){return e.y}));return{startValue:Xi(e,(function(e){return e.y})),endValue:t}}(e);break;case jc.HorizontalBarChartWithAxis:r=function(e,t){if(void 0!==t&&t===Gc.NumericAxis){var n=qi(e,(function(e){return e.y}));return{startValue:Xi(e,(function(e){return e.y})),endValue:n}}return{startValue:0,endValue:0}}(e,n);break;default:r={startValue:0,endValue:0}}return r}var hd,pd,fd=function(e,t){if(t)switch(typeof e){case"string":return Kc.StringAxis;case"number":return Kc.NumericAxis;default:return Kc.DateAxis}else switch(typeof e){case"string":return Gc.StringAxis;case"number":return Gc.NumericAxis;default:return Gc.DateAxis}};!function(e){e[e.circle=0]="circle",e[e.square=1]="square",e[e.triangle=2]="triangle",e[e.diamond=3]="diamond",e[e.pyramid=4]="pyramid",e[e.hexagon=5]="hexagon",e[e.pentagon=6]="pentagon",e[e.octagon=7]="octagon"}(hd||(hd={})),function(e){e[e.dottedLine=0]="dottedLine"}(pd||(pd={}));var gd,md=((Xc={})[hd.circle]={widthRatio:1},Xc[hd.square]={widthRatio:1},Xc[hd.triangle]={widthRatio:1},Xc[hd.diamond]={widthRatio:1},Xc[hd.pyramid]={widthRatio:1},Xc[hd.hexagon]={widthRatio:2},Xc[hd.pentagon]={widthRatio:1.168},Xc[hd.octagon]={widthRatio:2.414},Xc),vd=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},_d=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e:Number(e).toLocaleString(t)):e},yd=he(),xd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,i=e.YValue,o=e.styles,a=e.theme,l=e.ratio,u=e.descriptionMessage,c=e.culture;return this._classNames=yd(o,{theme:a,color:t,XValue:r,isRatioPresent:!!l}),s.createElement("div",{className:this._classNames.calloutContentRoot},s.createElement("div",{className:this._classNames.calloutDateTimeContainer},s.createElement("div",{className:this._classNames.calloutContentX},r," ")),s.createElement("div",{className:this._classNames.calloutInfoContainer},s.createElement("div",{className:this._classNames.calloutBlockContainer},s.createElement("div",{className:this._classNames.calloutlegendText},_d(n,c)),s.createElement("div",{className:this._classNames.calloutContentY},_d(i,c))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},_d(l[0],c)),"/",s.createElement("span",{className:this._classNames.denominator},_d(l[1],c))))),!!u&&s.createElement("div",{className:this._classNames.descriptionMessage},u))},t}(s.Component),bd=function(e){var t=e.color,n=e.XValue,r=e.theme,i=e.isRatioPresent,o=void 0!==i&&i;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:r.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[r.fonts.small,{lineHeight:"16px",opacity:"0.8",color:r.semanticColors.bodySubtext}],calloutBlockContainer:[r.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:r.semanticColors.bodyText,borderLeft:"4px solid "+t}],calloutlegendText:[r.fonts.small,{lineHeight:"16px",color:r.semanticColors.bodyText}],calloutContentY:[r.fonts.xxLarge,{color:t||r.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[o&&{display:"flex",alignItems:"flex-end"}],ratio:[r.fonts.small,{marginLeft:"6px",color:r.semanticColors.bodyText}],numerator:{fontWeight:Bn.bold},denominator:{fontWeight:Bn.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+r.semanticColors.menuDivider}]}},Cd=E(xd,bd);function Sd(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function Ed(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Sd(e,e[n],t[n]))}(e,{componentDidMount:Ld,componentDidUpdate:kd,componentWillUnmount:Ad})}function Ld(){wd(this.props.componentRef,this)}function kd(e){e.componentRef!==this.props.componentRef&&(wd(e.componentRef,null),wd(this.props.componentRef,this))}function Ad(){wd(this.props.componentRef,null)}function wd(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function Dd(e,t){var n=ke(e,(function(e){return t===e||e.hasAttribute(pi)}));return null!==n&&n.hasAttribute(pi)}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(gd||(gd={}));var Td,Md="data-is-focusable",Pd="data-focuszone-id",Fd="tabindex",Nd="data-no-vertical-wrap",Vd="data-no-horizontal-wrap",Id=999999999,Od=-999999999;function Hd(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var Bd,Rd={},Wd=new Set,zd=["text","number","password","email","tel","url","search","textarea"],Yd=!1,Ud=function(e){function t(n){var r,i,o,a,l,u=e.call(this,n)||this;u._root=s.createRef(),u._mergedRef=(l={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.resolver&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(l.refs,e)||(l.resolver=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var i=r[n];"function"==typeof i?i(t):i&&(i.current=t)}}}(l)),l.refs=e,l.resolver}),u._onFocus=function(e){if(!u._portalContainsElement(e.target)){var t,n=u.props,r=n.onActiveElementChanged,i=n.doNotAllowFocusEventToPropagate,o=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=u._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==u._root.current;){if(Oe(h)&&u._isImmediateDescendantOfZone(h)){t=h;break}h=Le(h,Yd)}if(l&&e.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&Oe(p)?(t=p,p.focus()):(u.focus(!0),u._activeElement&&(t=null))}var f=!u._activeElement;t&&t!==u._activeElement&&((d||f)&&u._setFocusAlignment(t,!0,!0),u._activeElement=t,f&&u._updateTabIndexes()),r&&r(u._activeElement,e),(o||i)&&e.stopPropagation(),s?s(e):a&&a()}},u._onBlur=function(){u._setParkedFocus(!1)},u._onMouseDown=function(e){if(!u._portalContainsElement(e.target)&&!u.props.disabled){for(var t=e.target,n=[];t&&t!==u._root.current;)n.push(t),t=Le(t,Yd);for(;n.length&&((t=n.pop())&&Oe(t)&&u._setActiveElement(t,!0),!He(t)););}},u._onKeyDown=function(e,t){if(!u._portalContainsElement(e.target)){var n=u.props,r=n.direction,i=n.disabled,o=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(i||(u.props.onKeyDown&&u.props.onKeyDown(e),e.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((s&&s(e)||o&&o(e))&&u._isImmediateDescendantOfZone(e.target)){var l=u._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!Be(e.target))return;if(!u.focusElement(Ne(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(u._shouldRaiseClicksOnSpace&&u._tryInvokeClickForFocusable(e.target,e))break;return;case 37:if(r!==gd.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusLeft(t)))break;return;case 39:if(r!==gd.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusRight(t)))break;return;case 38:if(r!==gd.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusUp()))break;return;case 40:if(r!==gd.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusDown()))break;return;case 34:if(!a&&u._moveFocusPaging(!0))break;return;case 33:if(!a&&u._moveFocusPaging(!1))break;return;case 9:if(u.props.allowTabKey||1===u.props.handleTabKey||2===u.props.handleTabKey&&u._isElementInput(e.target)){var c=!1;if(u._processingTabKey=!0,c=r!==gd.vertical&&u._shouldWrapFocus(u._activeElement,Vd)?(le(t)?!e.shiftKey:e.shiftKey)?u._moveFocusLeft(t):u._moveFocusRight(t):e.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,c)break;u.props.shouldResetActiveElementWhenTabFromZone&&(u._activeElement=null)}return;case 36:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!1))return!1;var d=u._root.current&&u._root.current.firstChild;if(u._root.current&&d&&u.focusElement(Ne(u._root.current,d,!0)))break;return;case 35:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!0))return!1;var h=u._root.current&&u._root.current.lastChild;if(u._root.current&&u.focusElement(Fe(u._root.current,h,!0,!0,!0)))break;return;case 13:if(u._shouldRaiseClicksOnEnter&&u._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},u._getHorizontalDistanceFromCenter=function(e,t,n){var r=u._focusAlignment.left||u._focusAlignment.x||0,i=Math.floor(n.top),o=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&i>o||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,Nd)?Id:Od},Ed(u),u._id=xe("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var c=null===(i=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===i||i;return u._shouldRaiseClicksOnEnter=null!==(o=n.shouldRaiseClicksOnEnter)&&void 0!==o?o:c,u._shouldRaiseClicksOnSpace=null!==(a=n.shouldRaiseClicksOnSpace)&&void 0!==a?a:c,u}return r(t,e),t.getOuterZones=function(){return Wd.size},t._onKeyDownCapture=function(e){9===e.which&&Wd.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Rd[this._id]=this,e){for(var n=Le(e,Yd);n&&n!==this._getDocument().body&&1===n.nodeType;){if(He(n)){this._isInnerZone=!0;break}n=Le(n,Yd)}this._isInnerZone||(Wd.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!Ae(this._root.current,this._activeElement,Yd)||this._defaultFocusElement&&!Ae(this._root.current,this._defaultFocusElement,Yd))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r],a=n.children[Math.min(o,n.children.length-1)];if(!a)break;n=a}return Oe(n)&&Ve(n)?n:Ne(e,n,!0)||Fe(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Rd[this._id],this._isInnerZone||(Wd.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,o=t.rootProps,a=t.ariaDescribedBy,l=t.ariaLabelledBy,u=t.className,c=et(this.props,Ze),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(Mr=Tr({},h)),Mr);return s.createElement(d,i({"aria-labelledby":l,"aria-describedby":a},c,o,{className:tt((Td||(Td=it({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Td),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(Md)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Rd[n.getAttribute(Pd)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&Ae(this._root.current,this._activeElement)&&Oe(this._activeElement)&&(!t||Ie(this._activeElement)))return this._activeElement.focus(),!0;var i=this._root.current.firstChild;return this.focusElement(Ne(this._root.current,i,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(Fe(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,i=n.shouldReceiveFocus;return!(i&&!i(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=Ae(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=Le(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(He(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(Md)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Hd(n,t),!0;n=Le(n,Yd)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(He(e))return Rd[e.getAttribute(Pd)];for(var t=e.firstElementChild;t;){if(He(t))return Rd[t.getAttribute(Pd)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var i=this._activeElement,o=-1,a=void 0,s=!1,l=this.props.direction===gd.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var u=l?i.getBoundingClientRect():null;do{if(i=e?Ne(this._root.current,i):Fe(this._root.current,i),!l){a=i;break}if(i){var c=t(u,i.getBoundingClientRect());if(-1===c&&-1===o){a=i;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=i),o>=0&&c<0)break}}while(i);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Ne(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Fe(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,i){var o=-1,a=Math.floor(i.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,Nd)?Id:Od:((-1===t&&a>=s||a===t)&&(t=a,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,i){var o=-1,a=Math.floor(i.bottom),s=Math.floor(i.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,Nd)?Id:Od:((-1===t&&a<=l||s===t)&&(t=s,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Vd);return!!this._moveFocus(le(e),(function(r,i){var o=-1;return(le(e)?parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&i.right<=r.right&&t.props.direction!==gd.vertical?o=r.right-i.right:n||(o=Od),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Vd);return!!this._moveFocus(!le(e),(function(r,i){var o=-1;return(le(e)?parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&i.left>=r.left&&t.props.direction!==gd.vertical?o=i.left-r.left:n||(o=Od),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=at(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,u=n.getBoundingClientRect();do{if(n=e?Ne(this._root.current,n):Fe(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),h=Math.floor(u.bottom),p=Math.floor(c.bottom),f=Math.floor(u.top),g=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>a?(a=d,i=g,o=n):!e&&p<s?(s=p,i=g,o=n):(-1===i||g<=i)&&(i=g,o=n))}}while(n);var m=!1;if(o&&o!==this._activeElement)m=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(Ne(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Fe(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===gd.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:i,top:o}),t&&(this._focusAlignment.left=i),n&&(this._focusAlignment.top=o)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=Le(e,Yd);t&&t!==this._root.current&&t!==this._getDocument().body;){if(He(t))return t;t=Le(t,Yd)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!Ae(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Oe(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];He(r)?"true"===r.getAttribute(Md)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Fd)&&r.setAttribute(Fd,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Fd)&&r.setAttribute(Fd,"0"))):(r.getAttribute&&"false"===r.getAttribute(Md)&&r.setAttribute(Fd,"-1"),Oe(r)?this.props.disabled?r.setAttribute(Fd,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Fd)&&r.setAttribute(Fd,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Fd)&&r.setAttribute(Fd,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&zd.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,i=e.value,o=e.readOnly;if(r||n>0&&!t&&!o||n!==i.length&&t&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||function(e,t){return"true"!==function(e,t){var n=ke(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Dd(e,this._root.current)},t.prototype._getDocument=function(){return te(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:gd.bidirectional,shouldRaiseClicks:!0},t}(s.Component);function qd(e){return function(e){return e.clientWidth<e.scrollWidth}(e)||function(e){return e.clientHeight<e.scrollHeight}(e)}!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(Bd||(Bd={}));var Xd,jd=he(),Kd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?s.createElement("p",{className:t._classNames.subText},e.content):s.createElement("div",{className:t._classNames.subText},e.content)},t}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,o=e.directionalHintForRTL,a=e.styles,l=e.id,u=e.maxWidth,c=e.onRenderContent,d=void 0===c?this._onRenderContent:c,h=e.targetElement,p=e.theme;return this._classNames=jd(a,{theme:p,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:u}),s.createElement(Ei,i({target:h,directionalHint:r,directionalHintForRTL:o},n,et(this.props,Je,["id"]),{className:this._classNames.root}),s.createElement("div",{className:this._classNames.content,id:l,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:Ee.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(s.Component),Gd=E(Kd,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,i=e.gapSpace,o=void 0===i?0:i,a=e.maxWidth,s=e.theme,l=s.semanticColors,u=s.fonts,c=s.effects,d=-(Math.sqrt(r*r/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Wn.fadeIn200,{background:l.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],content:["ms-Tooltip-content",u.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(Xd||(Xd={}));var Zd,$d,Qd=he(),Jd=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=s.createRef(),r._defaultTooltipId=xe("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case Bd.Parent:return r._tooltipHost.current.parentElement;case Bd.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipContentFocus=function(e){t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var n=r.props,i=n.overflowMode,o=n.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,void 0!==i){var a=r._getTargetElement();if(a&&!qd(a))return}if(!e.target||!Dd(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),o!==Xd.zero){var s=r._getDelayTime(o);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),s)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===It||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case Xd.medium:return 300;case Xd.long:return 500;default:return 0}},Ed(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Ot(r),r}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,o=e.directionalHint,a=e.directionalHintForRTL,l=e.hostClassName,u=e.id,c=e.setAriaDescribedBy,d=void 0===c||c,h=e.tooltipProps,p=e.styles,f=e.theme;this._classNames=Qd(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=u||this._defaultTooltipId,v=i(i({id:m+"--tooltip",content:r,targetElement:this._getTargetElement(),directionalHint:o,directionalHintForRTL:a,calloutProps:nt({},t,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},et(this.props,Je,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(e){return(null==e?void 0:e.content)?s.createElement(s.Fragment,null,e.content):null})):r,y=g&&!!_,x=d&&g&&_?m:void 0;return s.createElement("div",i({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x}),n,y&&s.createElement(Gd,i({},v)),s.createElement("div",{hidden:!0,id:m,style:Kn},_))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:Xd.medium},t}(s.Component),eh={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},th=E(Jd,(function(e){var t=e.className,n=e.theme;return{root:[or(eh,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),nh=function(e){function t(t){var n=e.call(this,t)||this;return n._tooltipChild=s.createRef(),n._checkTextOverflow=function(){var e=n._getTargetElement(),t=!!e&&qd(e);t!==n.state.textOverflow&&n.setState({textOverflow:t})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new Ot(n),n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.content,r=e.accessibilityData;return s.createElement(th,{overflowMode:Bd.Self,hostClassName:t,content:n},s.createElement("span",i({},vd(r),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),n))},t.prototype.componentDidMount=function(){var e=this._getTargetElement();window.ResizeObserver&&e&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(e))},t.prototype.componentWillUnmount=function(){var e;null===(e=this._resizeObserver)||void 0===e||e.disconnect(),this._async.dispose()},t}(s.Component),rh=he(),ih=function(e){function t(t){var n=e.call(this,t)||this;return n._isRTL=le(),n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||12,n._classNames=rh(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor,variant:n.props.variant,hideLabels:n.props.hideLabels})},n._getChartDataText=function(e){return n.props.barChartCustomData?s.createElement("div",{role:"text"},n.props.barChartCustomData(e)):n._getDefaultTextData(e)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||(e.horizontalBarChartdata?e.horizontalBarChartdata.x+"/"+e.horizontalBarChartdata.y:0);return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=xe("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme;this._adjustProps();var o=r.palette,a=0;return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(t,n){a=t.chartData&&t.chartData[0]&&t.chartData[0].horizontalBarChartdata.x?t.chartData[0].horizontalBarChartdata.x:0,t.chartData[1]={legend:"",horizontalBarChartdata:{x:t.chartData[0].horizontalBarChartdata.y-a,y:t.chartData[0].horizontalBarChartdata.y},color:o.neutralLight};var r=e.props.variant===_e.AbsoluteScale?null:e._getChartDataText(t),i=e._createBars(t,o),l=e._uniqLineText+"_"+n,u=rh(e.props.styles,{theme:e.props.theme,width:e.props.width,showTriangle:!!t.chartData[0].data,variant:e.props.variant});return s.createElement("div",{key:n},s.createElement("div",{className:u.items},s.createElement(Ud,{direction:gd.horizontal},s.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&s.createElement(nh,{className:e._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),r)),t.chartData[0].data&&e._createBenchmark(t),s.createElement(Ud,{direction:gd.horizontal,className:e._classNames.chartWrapper},s.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},s.createElement("g",{id:l,key:l,ref:function(n){e._refCallback(n,t.chartData[0].legend)},onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()}},i)))))})),s.createElement(Ei,i({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Ee.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,vd(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(Cd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=Se(this._refArray,(function(e){return e.index===t.legend}));this._calloutAnchorPoint=t,this.setState({isCalloutVisible:!0,hoverValue:e,lineColor:t.color,legend:t.legend,refSelected:n.refElement,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,barCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},t.prototype._hoverOff=function(){},t.prototype._getDefaultTextData=function(e){var t=this.props.culture,n=this.props.chartDataMode||"default",r=e.chartData[0],o=r.horizontalBarChartdata.x,a=r.horizontalBarChartdata.y,l=vd(e.chartDataAccessibilityData,"text",!1);switch(n){case"default":return s.createElement("div",i({className:this._classNames.chartTitleRight},l),_d(o,t));case"fraction":return s.createElement("div",i({},l),s.createElement("span",{className:this._classNames.chartTitleRight},_d(o,t)),s.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+_d(a,t)));case"percentage":var u=_d(Math.round(o/a*100),t)+"%";return s.createElement("div",i({className:this._classNames.chartTitleRight},l),u)}},t.prototype._createBenchmark=function(e){var t=e.chartData[0].horizontalBarChartdata.y,n=e.chartData[0].data,r={left:"calc("+Math.round((n||0)/t*100)+"% - 4px)"};return s.createElement("div",{className:this._classNames.benchmarkContainer},s.createElement("div",{className:this._classNames.triangle,style:r}))},t.prototype._createBars=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[],o=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),a=0,l=0,u=0;e.chartData.map((function(e,t){var n=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return(l=n/o*100)<0?l=0:l<1&&0!==l&&(l=1),u+=l}));var c=0!==u?u/100:1,d=e.chartData.map((function(t,u){var d=t.color?t.color:r[Math.floor(4*Math.random()+1)],h=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;u>0&&(a+=l),(l=h/o*100)<0?l=0:l<1&&0!==l?l=1/c:l/=c,i.push(a);var p=t.horizontalBarChartdata.x;if(1===u&&n.props.variant===_e.AbsoluteScale){if(n.props.hideLabels)return s.createElement("text",{key:u});var f=e.chartData[0].horizontalBarChartdata.x;return s.createElement("text",{key:u,x:(n._isRTL?100-i[u]:i[u])+"%",y:n._barHeight/2,dominantBaseline:"central",transform:"translate("+(n._isRTL?-4:4)+")",className:n._classNames.barLabel,"aria-hidden":!0},_a(f<1e3?".2~":".1",f)(f))}return s.createElement("rect",{key:u,x:(n._isRTL?100-i[u]-l:i[u])+"%",y:0,"data-is-focusable":""!==t.legend,width:l+"%",height:n._barHeight,fill:d,onMouseOver:""!==t.legend?n._hoverOn.bind(n,p,t):void 0,onFocus:""!==t.legend?n._hoverOn.bind(n,p,t):void 0,role:"img","aria-label":n._getAriaLabel(t),onBlur:n._hoverOff,onMouseLeave:n._hoverOff,className:n._classNames.barWrapper})}));return d},t}(s.Component),oh=E(ih,(function(e){var t=e.className,n=e.theme,r=e.width,o=e.barHeight,a=e.showTriangle,s=e.variant,l=e.hideLabels,u=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},t],items:{marginBottom:a||s===_e.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:i(i({},n.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:n.palette.neutralPrimary,marginBottom:s===_e.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:n.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Hn.medium,color:n.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:u.blue,marginBottom:"4px",position:"absolute"},barLabel:i(i({},n.fonts.small),{fontWeight:Bn.semibold,fill:n.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==_e.AbsoluteScale||l?0:40}}})),ah={host:"ms-HoverCard-host"},sh=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,i){var o;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,i||!1,!0),nt(a,r),o=t.dispatchEvent(a)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==o;){var l=t.__events__,u=l?l[n]:null;if(u)for(var c in u)if(u.hasOwnProperty(c))for(var d=u[c],h=0;!1!==o&&h<d.length;h++){var p=d[h];p.objectCallback&&(o=p.objectCallback.call(p.parent,r))}t=i?t.parent:null}return o},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,i){var o=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,i);else{var l=this._parent,u={target:t,eventName:n,parent:l,callback:r,options:i};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(u),a[n].count++,e._isElement(t)){var c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var i=e[0];i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.cancelBubble=!0}}catch(i){}return n}};u.elementCallback=c,t.addEventListener?t.addEventListener(n,c,i):t.attachEvent&&t.attachEvent("on"+n,c)}else u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed)return r.apply(l,e)};this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,r){for(var i=0;i<this._eventRecords.length;i++){var o=this._eventRecords[i];if(!(e&&e!==o.target||t&&t!==o.eventName||n&&n!==o.callback||"boolean"==typeof r&&r!==o.options)){var a=o.target.__events__,s=a[o.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(o),1)):(s.count-=l.length,delete a[o.eventName][this._id]),s.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(i--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(Zd||(Zd={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}($d||($d={}));var lh,uh={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function ch(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}function dh(e,t){var n=s.useRef(t);return n.current||(n.current=xe(e)),n.current}function hh(e){var t=s.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return _i((function(){t.current=e}),[e]),Br((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(void 0,e)}}))}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(lh||(lh={}));var ph={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},fh=s.forwardRef((function(e,t){var n,r,o,a=s.useRef(null),l=s.useRef(null),u=s.useRef(null),c=Rt(a,t),d=function(){var e;return null===(e=s.useContext(Wt).window)||void 0===e?void 0:e.document}(),h=null===(n=ch(!1))||void 0===n||n,p=Ye(ph,e),f=Br({hasFocus:!1,focusStackId:dh("ftz-",p.id)}),g=p.children,m=p.componentRef,v=p.disabled,_=p.disableFirstFocus,y=p.forceFocusInsideTrap,x=p.focusPreviouslyFocusedInnerElement,b=p.firstFocusableSelector,C=p.firstFocusableTarget,S=p.disableRestoreFocus,E=void 0===S?p.ignoreExternalFocusing:S,L=p.isClickableOutsideFocusTrap,k=p.enableAriaHiddenSiblings,A={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},w=s.useCallback((function(e){e!==l.current&&e!==u.current&&We(e)}),[]),D=hh((function(){if(a.current){var e=f.previouslyFocusedElementInTrapZone;if(x&&e&&Ae(a.current,e))w(e);else{var t=null;if("string"==typeof C)t=a.current.querySelector(C);else if(C)t=C(a.current);else if(b){var n="string"==typeof b?b:b();t=a.current.querySelector("."+n)}t||(t=Ne(a.current,a.current.firstChild,!1,!1,!1,!0)),t&&w(t)}}})),T=function(e){if(!v&&a.current){var t,n=e===f.hasFocus?(void 0===(t=!1)&&(t=!0),Fe(a.current,u.current,t,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),Ne(e,t,r,!1,!1,!0,!1,!0)}(a.current,l.current,0,!1);n&&(n===l.current||n===u.current?D():n.focus())}},M=hh((function(e){if(fh.focusStack=fh.focusStack.filter((function(e){return f.focusStackId!==e})),d){var t=d.activeElement;E||"function"!=typeof(null==e?void 0:e.focus)||!Ae(a.current,t)&&t!==d.body||w(e)}})),P=hh((function(e){if(!v&&f.focusStackId===fh.focusStack.slice(-1)[0]){var t=e.target;t&&!Ae(a.current,t)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(D(),f.hasFocus=!0)}),0):(D(),f.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return s.useEffect((function(){var e=[];return y&&e.push(ze(window,"focus",P,!0)),L||e.push(ze(window,"click",P,!0)),function(){e.forEach((function(e){return e()}))}}),[y,L]),s.useEffect((function(){if(!v&&(h||y)&&a.current){fh.focusStack.push(f.focusStackId);var e=p.elementToFocusOnDismiss||d.activeElement;return _||Ae(a.current,e)||D(),function(){return M(e)}}}),[y,v]),s.useEffect((function(){if(!v&&k)return Vt(a.current)}),[v,k,a]),r=function(){delete f.previouslyFocusedElementInTrapZone},(o=s.useRef(r)).current=r,s.useEffect((function(){return function(){var e;null===(e=o.current)||void 0===e||e.call(o)}}),[]),function(e,t,n){s.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(m,f.previouslyFocusedElementInTrapZone,D),s.createElement("div",i({"aria-labelledby":p.ariaLabelledBy},et(p,Je),{ref:c,onFocusCapture:function(e){var t;null===(t=p.onFocusCapture)||void 0===t||t.call(p,e),e.target===l.current?T(!0):e.target===u.current&&T(!1),f.hasFocus=!0,e.target!==e.currentTarget&&e.target!==l.current&&e.target!==u.current&&(f.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=p.onBlurCapture)||void 0===t||t.call(p,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=d.activeElement),Ae(a.current,n)||(f.hasFocus=!1)}}),s.createElement("div",i({},A,{ref:l})),g,s.createElement("div",i({},A,{ref:u})))}));fh.displayName="FocusTrapZone",fh.focusStack=[];var gh,mh=function(e){return s.createElement(Ei,i({},e),s.createElement(fh,i({disabled:e.hidden},e.focusTrapProps),e.children))},vh=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,o=void 0===r?Ee.bottomLeftEdge:r,a=e.directionalHintFixed,l=e.targetElement,u=e.firstFocus,c=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=i(i(i({},et(e,Je)),{className:h,target:l,isBeakVisible:!1,directionalHint:o,directionalHintFixed:a,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return s.createElement(s.Fragment,null,c?s.createElement(mh,i({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!u}}),f):s.createElement(Ei,i({},m),f))},_h=he(),yh=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=s.createRef(),n._onKeyDown=function(e){e.which===It&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return s.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),s.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},s.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new Ot(n),Ed(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return r(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,o=e.theme,a=e.mode,l=e.className,u=this.state,c=u.needsScroll,d=u.firstFrameRendered,h=n+r;this._classNames=_h(t,{theme:o,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:c,expandedCardFirstFrameRendered:a===lh.expanded&&d});var p=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return s.createElement(vh,i({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),xh=E(yh,(function(e){var t,n=e.theme,r=e.needsScroll,i=e.expandedCardFirstFrameRendered,o=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,u=or(uh,n);return{root:[u.root,{width:320,pointerEvents:"none",selectors:(t={},t[Un]={border:"1px solid WindowText"},t)},s],compactCard:[u.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[u.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},i&&{height:a}],expandedCardScroll:[u.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),bh={root:"ms-PlainCard-root"},Ch=he(),Sh=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===It&&n.props.onLeave&&n.props.onLeave(e)},Ed(n),n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=Ch(t,{theme:n,className:r});var o=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return s.createElement(vh,i({},this.props,{content:o,className:this._classNames.root}))},t}(s.Component),Eh=E(Sh,(function(e){var t,n=e.theme,r=e.className;return{root:[or(bh,n).root,{pointerEvents:"auto",selectors:(t={},t[Un]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),Lh=he(),kh=function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=s.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:lh.compact,openMode:"keydown"===e.type?Zd.hotKey:Zd.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==It)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==It||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:lh.compact,openMode:Zd.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:lh.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,i=e.eventListenerTarget,o=i?n._getTargetElement(i):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;o&&(n._events.on(o,"mouseenter",n._cardOpen),n._events.on(o,"mouseleave",a),t?n._events.on(o,"keydown",n._cardOpen):(n._events.on(o,"focus",n._cardOpen),n._events.on(o,"blur",a)),r?n._events.on(o,"click",n._instantOpenAsExpanded):(n._events.on(o,"mousedown",a),n._events.on(o,"keydown",a)))},Ed(n),n._async=new Ot(n),n._events=new sh(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:lh.compact,openMode:Zd.hover},n}return r(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:lh.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:lh.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,o=e.setAriaDescribedBy,a=void 0===o||o,l=e.styles,u=e.theme,c=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,m=g.isHoverCardVisible,v=g.mode,_=g.openMode,y=r||xe("hoverCard");this._classNames=Lh(l,{theme:u,className:c});var x=i(i({},et(this.props,Je)),{id:y,trapFocus:!!p,firstFocus:f||_===Zd.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=i(i(i({},t),x),{mode:v}),C=i(i({},h),x);return s.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&m?y:void 0,"data-is-focusable":!this.props.target},n,m&&(d===$d.expanding?s.createElement(xh,i({},b)):s.createElement(Eh,i({},C))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return te().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:$d.expanding},t}(s.Component),Ah=E(kh,(function(e){var t=e.className,n=e.theme;return{host:[or(ah,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(gh||(gh={}));var wh=function(e){var t;void 0===e&&(t={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&t.hasOwnProperty(e.cacheKey))return t[e.cacheKey]},addMeasurementToCache:function(e,n){e.cacheKey&&(t[e.cacheKey]=n)}});var n,r=e;function o(e,t){var n=r.getCachedMeasurement(e);if(void 0!==n)return n;var i=t();return r.addMeasurementToCache(e,i),i}function a(e,t,i){for(var a=e,s=o(e,i);s>n;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,t,s,l){if(void 0!==l||void 0!==t.dataToMeasure){if(l){if(n&&t.renderedData&&!t.dataToMeasure)return i(i({},t),function(e,t,r,o){var a;return a=e>n?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:t}:{resizeDirection:"shrink",dataToMeasure:r},n=e,i(i({},a),{measureContainer:!1})}(l,e.data,t.renderedData,e.onGrowData));n=l}var u=i(i({},t),{measureContainer:!1});return t.dataToMeasure&&(u="grow"===t.resizeDirection&&e.onGrowData?i(i({},u),function(e,t,s,l){for(var u=e,c=o(e,s);c<n;){var d=t(u);if(void 0===d)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=r.getCachedMeasurement(d)))return{dataToMeasure:d};u=d}return i({resizeDirection:"shrink"},a(u,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):i(i({},u),a(t.dataToMeasure,e.onReduceData,s))),u}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:i({},e),resizeDirection:"grow",measureContainer:!0}}}},Dh=s.createContext({isMeasured:!1}),Th={position:"fixed",visibility:"hidden"},Mh={position:"relative"};function Ph(e,t){var n;switch(t.type){case"resizeData":return i({},t.value);case"dataToMeasure":return i(i({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return i(i({},e),((n={})[t.type]=t.value,n))}}var Fh={isMeasured:!0},Nh=s.forwardRef((function(e,t){var n=s.useRef(null),r=Rt(n,t),o=function(e,t){var n=Br(wh),r=s.useRef(null),o=s.useRef(null),a=s.useRef(!1),l=Ht(),u=function(e,t,n){var r=Br((function(){return t.getInitialResizeGroupState(e.data)})),o=s.useReducer(Ph,r),a=o[0],l=o[1];s.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var u=s.useRef(r);return u.current=i({},a),[u,s.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(e,n,t),c=u[0],d=u[1],h=u[2];s.useEffect((function(){var t;c.current.renderedData&&(a.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,c.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var i=void 0;if(c.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();i=e.direction===gh.vertical?s.height:s.width}var l=n.getNextState(e,c.current,(function(){var t=a.current?o:r;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===gh.vertical?n.height:n.width}),i);d(l)}),t.current)})),Bt(zt(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(c.current.dataToMeasure),f=!a.current&&p;return[c.current.dataToMeasure,c.current.renderedData,h,r,o,p,f]}(e,n),a=o[0],l=o[1],u=o[2],c=o[3],d=o[4],h=o[5],p=o[6];s.useImperativeHandle(e.componentRef,(function(){return{remeasure:u}}),[u]);var f=e.className,g=e.onRenderData,m=et(e,Je,["data"]);return s.createElement("div",i({},m,{className:f,ref:r}),s.createElement("div",{style:Mh},h&&!p&&s.createElement("div",{style:Th,ref:d},s.createElement(Dh.Provider,{value:Fh},g(a))),s.createElement("div",{ref:c,style:p?Th:void 0,"data-automation-id":"visibleContent"},p?g(a):l&&g(l))))}));Nh.displayName="ResizeGroupBase";var Vh,Ih=Nh;!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(Vh||(Vh={}));var Oh=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=t?Vh.PERSISTED_KEYTIP_ADDED:Vh.KEYTIP_ADDED;sh.raise(this,i,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),i=this.keytips[t];i&&(r.keytip.visible=i.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||sh.raise(this,Vh.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?Vh.PERSISTED_KEYTIP_REMOVED:Vh.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||sh.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){sh.raise(this,Vh.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){sh.raise(this,Vh.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=a([],e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return i(i({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){sh.raise(this,Vh.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=xe()),{keytip:i({},e),uniqueID:t}},e._instance=new e,e}(),Hh=function(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];n[t.register(o,!0)]=o}},Bh=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];e.unregister(t[i],i,!0),delete t[i]}},Rh=function(e){var t=Oh.getInstance(),n=e.className,r=e.overflowItems,o=e.keytipSequences,a=e.itemSubMenuProvider,l=e.onRenderOverflowButton,u=Br({}),c=s.useCallback((function(e){return a?a(e):e.subMenuProps?e.subMenuProps.items:void 0}),[a]),d=s.useMemo((function(){var e=[],n=[];return o?null==r||r.forEach((function(r){var a,s=r.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||c(r)?(l.onExecute=t.menuExecute.bind(t,o,null===(a=null==r?void 0:r.keytipProps)||void 0===a?void 0:a.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var u=i(i({},r),{keytipProps:i(i({},s),{overflowSetSequence:o})});null==n||n.push(u)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,c,t,o]),h=d.modifiedOverflowItems;return function(e,t,n){var r=ch(e);s.useEffect((function(){r&&(Bh(n,r),Hh(t,n,e))})),s.useEffect((function(){return Hh(t,n,e),function(){Bh(n,e)}}),[])}(u,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},Wh=he(),zh=s.forwardRef((function(e,t){var n=s.useRef(null),r=Rt(n,t);!function(e,t){s.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=Pe(t.current,n)),r},focusElement:function(e){var n=!1;return!!e&&(t.current&&Ae(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var o=e.items,a=e.overflowItems,l=e.className,u=e.styles,c=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=Wh(u,{className:l,vertical:c}),m=!!a&&a.length>0;return s.createElement("div",i({},et(e,Je),{role:d||"group","aria-orientation":"menubar"===d?!0===c?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&m&&s.createElement(Rh,i({},e,{className:g.overflowButton})),o&&o.map((function(e,t){return s.createElement("div",{className:g.item,key:e.key,role:"none"},f(e))})),"end"===p&&m&&s.createElement(Rh,i({},e,{className:g.overflowButton})))}));zh.displayName="OverflowSet";var Yh,Uh={flexShrink:0,display:"inherit"},qh=E(zh,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",Uh],overflowButton:["ms-OverflowSet-overflowButton",Uh]}}),void 0,{scope:"OverflowSet"}),Xh=((Yh={})[""+hd[hd.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Yh[""+hd[hd.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Yh[""+hd[hd.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Yh[""+hd[hd.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Yh[""+hd[hd.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Yh[""+hd[hd.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Yh[""+hd[hd.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Yh[""+hd[hd.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Yh[""+pd[pd.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",Yh),jh=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,o=e.classNameForNonSvg;return-1===Object.keys(Xh).indexOf(r)?s.createElement("div",{className:o}):s.createElement("svg",i({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate("+(r===hd[hd.diamond]?45:r===hd[hd.pyramid]?180:0)+", 0, 0)"}),s.createElement("path",i({d:Xh[r]},n)))},Kh=he(),Gh=function(e){function t(t){var n=e.call(this,t)||this;return n._isLegendSelected=!1,n._onRenderData=function(e){var t=n.props,r=t.overflowProps,o=t.allowFocusOnLegends,a=void 0===o||o,l=t.canSelectMultipleLegends,u=void 0!==l&&l,c={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return s.createElement(Ud,i({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":u}),s.createElement(qh,i({items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},r,{styles:i(i({},c),null==r?void 0:r.styles)})))},n._onReduceData=function(e){if(0!==e.primary.length){var t=a(a([],e.primary.slice(-1)),e.overflow);return{primary:e.primary.slice(0,-1),overflow:t}}},n._onGrowData=function(e){if(0!==e.overflow.length){var t=e.overflow.slice(1);return{primary:a(a([],e.primary),e.overflow.slice(0,1)),overflow:t}}},n._canSelectMultipleLegends=function(e){var t=i({},n.state.selectedLegends);t[e.title]?delete t[e.title]:(t[e.title]=!0,Object.keys(t).length===n.props.legends.length&&(t={})),n.setState({selectedLegends:t})},n._canSelectOnlySingleLegend=function(e){n.state.selectedLegend===e.title?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.title})},n._onClick=function(e){if(e.action){var t=n.props.canSelectMultipleLegends;void 0!==t&&t?n._canSelectMultipleLegends(e):n._canSelectOnlySingleLegend(e),e.action()}},n._onRenderCompactCard=function(e){var t=n.props,r=t.allowFocusOnLegends,o=void 0===r||r,a=t.className,l=t.styles,u=t.theme,c=t.canSelectMultipleLegends,d=void 0!==c&&c,h=[],p=Kh(l,{theme:u,className:a});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);h.push(r)})),s.createElement(Ud,i({},o&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:gd.vertical},n.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},n._renderOverflowItems=function(e){var t=n.props.allowFocusOnLegends,r=void 0===t||t,o=[];e.forEach((function(e,t){o.push({key:t.toString(),name:e.title,onClick:e.action})}));var a={renderData:e},l=n.props,u=l.theme,c=l.className,d=l.styles,h=l.overflowText,p=Kh(d,{theme:u,className:c}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:a},g=h||"more";return s.createElement(Ah,{type:$d.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){n.setState({isHoverCardVisible:!1});var t=Se(e,(function(e){return e.title===n.state.activeLegend}));t&&(n.setState({activeLegend:""}),t.onMouseOutAction&&t.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:n._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:n._hoverCardRef},s.createElement("div",i({className:p.overflowIndicationTextStyle,ref:function(e){return n._hoverCardRef=e}},r&&{role:"button","aria-expanded":n.state.isHoverCardVisible,"aria-label":o.length+" "+g},{"data-is-focusable":r}),o.length," ",g))},n._hoverCardVisible=function(){n.setState({isHoverCardVisible:!0})},n._onHoverOverLegend=function(e){e.hoverAction&&(n.setState({activeLegend:e.title}),e.hoverAction())},n._onLeave=function(e){e.onMouseOutAction&&(n.setState({activeLegend:""}),e.onMouseOutAction())},n._renderButton=function(e,t,r){var o=n.props.allowFocusOnLegends,a=void 0===o||o,l={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},u=n._getColor(l.title,l.color),c=n.props,d=c.theme,h=c.className,p=c.styles,f=c.canSelectMultipleLegends,g=void 0!==f&&f,m=Kh(p,{theme:d,className:h,colorOnSelectedState:u,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),v=function(){n._onHoverOverLegend(l)},_=function(){n._onLeave(l)},y=n._getShape(m,l,u);return s.createElement("button",i({},a&&{"aria-selected":g?!!n.state.selectedLegends[l.title]:n.state.selectedLegend===l.title,role:"option","aria-label":""+l.title,"aria-setsize":e["aria-setsize"],"aria-posinset":e["aria-posinset"]},e.nativeButtonProps&&i({},e.nativeButtonProps),{key:t,className:m.legend,onClick:function(){n._onClick(l)},onMouseOver:v,onMouseOut:_,onFocus:v,onBlur:_,"data-is-focusable":a}),y,s.createElement("div",{className:m.text},l.title))},n.state={selectedLegend:"",activeLegend:"",isHoverCardVisible:!1,selectedLegends:{}},n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Kh(r,{theme:t,className:n}),this._isLegendSelected=""!==this.state.selectedLegend||Object.keys(this.state.selectedLegends).length>0;var i=this._generateData();return s.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):s.createElement(Ih,{data:i,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},t.prototype._generateData=function(){var e=this,t=this.props.allowFocusOnLegends,n=void 0===t||t;return{primary:this.props.legends.map((function(t,r){return i(i({},n&&{nativeButtonProps:et(t,Qe,["title"]),"aria-setsize":e.props.legends.length,"aria-posinset":r+1}),{title:t.title,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,color:t.color,shape:t.shape,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity,key:r})})),overflow:[]}},t.prototype._getShape=function(e,t,n){var r={className:e.shape},i={fill:n,strokeWidth:2,stroke:t.color};return s.createElement(jh,{svgProps:r,pathProps:i,shape:t.shape,classNameForNonSvg:e.rect})},t.prototype._getColor=function(e,t){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegend===e||this.state.selectedLegends[e]?t:n.white:this.state.activeLegend===e||""===this.state.activeLegend?t:n.white},t}(s.Component),Zh=E(Gh,(function(e){var t,n,r=e.className,o=e.theme,a=e.isLineLegendInBarChart,s=void 0!==a&&a,l=o,u=l.palette,c=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[jn(o,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(t={},t[Un]={content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")",opacity:e.colorOnSelectedState===u.white?"0.6":""},t),width:"12px",height:s?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, "+e.colorOnSelectedState+" 1px, "+e.colorOnSelectedState+" 4px)":""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===u.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[Un]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")"},n)},text:i(i({},c.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:e.colorOnSelectedState===u.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:u.black},overflowIndicationTextStyle:[jn(o,d),i(i({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[jn(o,d)]}}}}));function $h(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Qh(e){return function(){return e}}function Jh(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function ep(e){return e}Array.prototype.slice;var tp=Math.abs,np=Math.atan2,rp=Math.cos,ip=Math.max,op=Math.min,ap=Math.sin,sp=Math.sqrt,lp=1e-12,up=Math.PI,cp=up/2,dp=2*up;function hp(e){return e>=1?cp:e<=-1?-cp:Math.asin(e)}function pp(){var e=ep,t=Jh,n=null,r=Qh(0),i=Qh(dp),o=Qh(0);function a(a){var s,l,u,c,d,h=(a=$h(a)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(dp,Math.max(-dp,i.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,o.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+e(a[s],s,a))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(g[e],g[n])})):null!=n&&f.sort((function(e,t){return n(a[e],a[t])})),s=0,u=p?(v-h*y)/p:0;s<h;++s,m=c)l=f[s],c=m+((d=g[l])>0?d*u:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:c,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Qh(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Qh(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Qh(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Qh(+e),a):o},a}var fp=Math.PI,gp=2*fp,mp=1e-6,vp=gp-mp;function _p(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function yp(){return new _p}_p.prototype=yp.prototype={constructor:_p,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>mp)if(Math.abs(c*s-l*u)>mp&&i){var h=n-o,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=i*Math.tan((fp-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>mp&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>u*p)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,i,o){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>mp||Math.abs(this._y1-u)>mp)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%gp+gp),d>vp?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>mp&&(this._+="A"+n+","+n+",0,"+ +(d>=fp)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var xp=yp;function bp(e){return e.innerRadius}function Cp(e){return e.outerRadius}function Sp(e){return e.startAngle}function Ep(e){return e.endAngle}function Lp(e){return e&&e.padAngle}function kp(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/sp(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=i-o,C=h*g-f*p,S=(y<0?-1:1)*sp(ip(0,b*b*x-C*C)),E=(C*y-_*S)/x,L=(-C*_-y*S)/x,k=(C*y+_*S)/x,A=(-C*_+y*S)/x,w=E-m,D=L-v,T=k-m,M=A-v;return w*w+D*D>T*T+M*M&&(E=k,L=A),{cx:E,cy:L,x01:-c,y01:-d,x11:E*(i/b-1),y11:L*(i/b-1)}}function Ap(){var e=bp,t=Cp,n=Qh(0),r=null,i=Sp,o=Ep,a=Lp,s=null;function l(){var l,u,c,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-cp,f=o.apply(this,arguments)-cp,g=tp(f-p),m=f>p;if(s||(s=l=xp()),h<d&&(u=h,h=d,d=u),h>lp)if(g>dp-lp)s.moveTo(h*rp(p),h*ap(p)),s.arc(0,0,h,p,f,!m),d>lp&&(s.moveTo(d*rp(f),d*ap(f)),s.arc(0,0,d,f,p,m));else{var v,_,y=p,x=f,b=p,C=f,S=g,E=g,L=a.apply(this,arguments)/2,k=L>lp&&(r?+r.apply(this,arguments):sp(d*d+h*h)),A=op(tp(h-d)/2,+n.apply(this,arguments)),w=A,D=A;if(k>lp){var T=hp(k/d*ap(L)),M=hp(k/h*ap(L));(S-=2*T)>lp?(b+=T*=m?1:-1,C-=T):(S=0,b=C=(p+f)/2),(E-=2*M)>lp?(y+=M*=m?1:-1,x-=M):(E=0,y=x=(p+f)/2)}var P=h*rp(y),F=h*ap(y),N=d*rp(C),V=d*ap(C);if(A>lp){var I,O=h*rp(x),H=h*ap(x),B=d*rp(b),R=d*ap(b);if(g<up&&(I=function(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,h=d*l-c*u;if(!(h*h<lp))return[e+(h=(c*(t-o)-d*(e-i))/h)*l,t+h*u]}(P,F,B,R,O,H,N,V))){var W=P-I[0],z=F-I[1],Y=O-I[0],U=H-I[1],q=1/ap(((c=(W*Y+z*U)/(sp(W*W+z*z)*sp(Y*Y+U*U)))>1?0:c<-1?up:Math.acos(c))/2),X=sp(I[0]*I[0]+I[1]*I[1]);w=op(A,(d-X)/(q-1)),D=op(A,(h-X)/(q+1))}}E>lp?D>lp?(v=kp(B,R,P,F,h,D,m),_=kp(O,H,N,V,h,D,m),s.moveTo(v.cx+v.x01,v.cy+v.y01),D<A?s.arc(v.cx,v.cy,D,np(v.y01,v.x01),np(_.y01,_.x01),!m):(s.arc(v.cx,v.cy,D,np(v.y01,v.x01),np(v.y11,v.x11),!m),s.arc(0,0,h,np(v.cy+v.y11,v.cx+v.x11),np(_.cy+_.y11,_.cx+_.x11),!m),s.arc(_.cx,_.cy,D,np(_.y11,_.x11),np(_.y01,_.x01),!m))):(s.moveTo(P,F),s.arc(0,0,h,y,x,!m)):s.moveTo(P,F),d>lp&&S>lp?w>lp?(v=kp(N,V,O,H,d,-w,m),_=kp(P,F,B,R,d,-w,m),s.lineTo(v.cx+v.x01,v.cy+v.y01),w<A?s.arc(v.cx,v.cy,w,np(v.y01,v.x01),np(_.y01,_.x01),!m):(s.arc(v.cx,v.cy,w,np(v.y01,v.x01),np(v.y11,v.x11),!m),s.arc(0,0,d,np(v.cy+v.y11,v.cx+v.x11),np(_.cy+_.y11,_.cx+_.x11),m),s.arc(_.cx,_.cy,w,np(_.y11,_.x11),np(_.y01,_.x01),!m))):s.arc(0,0,d,C,b,m):s.lineTo(N,V)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-up/2;return[rp(r)*n,ap(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Qh(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Qh(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Qh(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Qh(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Qh(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Qh(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Qh(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}var wp=function(e){var t=e.color,n=e.href,r=e.theme;return{root:{fill:t,cursor:n?"pointer":"default",stroke:zn.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:r.palette.neutralPrimary}}},Dp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=s.createRef(),t._isRTL=le(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t._getAriaLabel=function(){var e,n=t.props.data.data,r=n.xAxisCalloutData||n.legend,i=n.yAxisCalloutData||n.data||0;return(null===(e=n.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(r?r+", ":"")+i+"."},t._renderArcLabel=function(e){var n=t.props,r=n.arc,i=n.data,o=n.innerRadius,a=n.outerRadius,l=n.showLabelsInPercent,u=n.totalValue;if(n.hideLabels||Math.abs(i.endAngle-i.startAngle)<Math.PI/12)return null;var c=r.centroid(i),d=c[0],h=c[1],p=Math.sqrt(d*d+h*h),f=Math.max(o,a)+2,g=(i.startAngle+i.endAngle)/2,m=i.value;return s.createElement("text",{x:(0===p?0:d/p)*f,y:(0===p?0:h/p)*f,textAnchor:g>Math.PI!==t._isRTL?"end":"start",dominantBaseline:g>Math.PI/2&&g<3*Math.PI/2?"hanging":"auto",className:e,"aria-hidden":!0},l?va(".0%")(0===u?0:m/u):_a(m<1e3?".2~":".1",m)(m))},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Tp(e),null},t.prototype.updateChart=function(e){Tp(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=he()(wp,{color:this.props.color,href:r,theme:this.props.theme}),a=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,l=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return s.createElement("g",{ref:this.currentRef},!!i&&i===a&&s.createElement("path",{id:a+"focusRing",d:n(this.props.focusData),className:o.focusRing}),s.createElement("path",{id:a,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,a),className:o.root,"data-is-focusable":!0,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:l,onClick:r?this._redirectToUrl.bind(this,r):null===(e=this.props.data)||void 0===e?void 0:e.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(o.arcLabel))},t.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},t.prototype._hoverOn=function(e,t){t.persist(),this.props.hoverOnCallback(e,t)},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={arc:Ap()},t}(s.Component);function Tp(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Mp=function(e){var t,n=e.theme;return{root:{},insideDonutString:{fontSize:Hn.xLargePlus,fontWeight:Bn.semibold,fill:n.semanticColors.bodyText,selectors:(t={},t[qn]={fill:"rgb(179, 179, 179)"},t)}}},Pp=he(),Fp=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t,r,i){var o=e&&e.data&&e.data.color;return s.createElement(Dp,{key:t,data:e,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:o,onFocusCallback:n._focusCallback,hoverOnCallback:n._hoverCallback,onBlurCallback:n.props.onBlurCallback,hoverLeaveCallback:n.props.hoverLeaveCallback,uniqText:n.props.uniqText,activeArc:n.props.activeArc,href:i,calloutId:n.props.calloutId,valueInsideDonut:n.props.valueInsideDonut,theme:n.props.theme,focusedArcId:n.props.focusedArcId,showLabelsInPercent:n.props.showLabelsInPercent,totalValue:n._totalValue,hideLabels:n.props.hideLabels})},n._focusCallback=function(e,t,r){n.props.onFocusCallback(e,t,r)},n._computeTotalValue=function(){var e=0;return n.props.data.forEach((function(t){e+=t.data})),e},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=pp().sort(null).value((function(e){return e.data})).padAngle(0),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,i=this._pieForFocusRing(r),o=n(r),a="translate("+this.props.width/2+", "+this.props.height/2+")",l=Pp(Mp,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),s.createElement("g",{transform:a},o.map((function(t,n){return e.arcGenerator(t,n,i[n],e.props.href)})),this.props.valueInsideDonut&&s.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},t.prototype.componentDidUpdate=function(){var e,t,n;e=Pp(Mp,{theme:this.props.theme}).insideDonutString,t=2*this.props.innerRadius-5,n=0,qc("."+e).each((function(){for(var e=Wc(this),r=e.text().split(/\s+/).reverse(),i="",o=[],a=0,s=e.attr("y"),l=e.text(null).append("tspan").attr("id","WordBreakId-"+n+"-"+a).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");i=r.pop();)o.push(i),l.text(o.join(" ")+" "),l.node().getComputedTextLength()>t&&o.length>1&&(o.pop(),l.text(o.join(" ")+" "),o=[i],l=e.append("tspan").attr("id","WordBreakId-"+n+"-"+a).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(i));n+=1}))},t.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},t.defaultProps={pie:pp().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),Np=he(),Vp=function(e){function t(t){var n=e.call(this,t)||this;return n._closeCallout=function(){n.setState({showHover:!1})},n._focusCallback=function(e,t,r){n._currentHoverElement=r,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,focusedArcId:t,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._hoverCallback=function(e,t){n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n._currentHoverElement=t,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onBlur=function(){n.setState({focusedArcId:""})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=xe("callout"),n._uniqText=xe("_Pie_"),n}return r(t,e),t.getDerivedStateFromProps=function(e,t){var n,r;return e.width&&e.width!==t._width&&(n={_width:e.width}),e.height&&e.height!==t._height&&(r={_height:e.height-40}),i(i({},n),r)},t.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},t.prototype.render=function(){var e,t=this,n=this.props,r=n.data,o=n.hideLegend,a=void 0!==o&&o,l=this.props.theme.palette;this._classNames=Np(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var u=this._createLegends(r,l),c=this.props.hideLabels?0:80,d=this.props.hideLabels?0:40,h=Math.min(this.state._width-c,this.state._height-d)/2,p=r&&(null===(e=r.chartData)||void 0===e?void 0:e.filter((function(e){return e.data>0}))),f=this._valueInsideDonut(this.props.valueInsideDonut,p);return s.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e},onMouseLeave:this._handleChartMouseLeave},s.createElement(Ud,{direction:gd.horizontal,handleTabKey:1},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(e){return t._setViewBox(e)}},s.createElement(Fp,{width:this.state._width,height:this.state._height,outerRadius:h,innerRadius:this.props.innerRadius,data:p,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(f),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),s.createElement(Ei,i({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:Ee.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,vd(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Cd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!a&&s.createElement("div",{className:this._classNames.legendContainer},u))},t.prototype._setViewBox=function(e){var t,n;if(null!==e){var r="0 0 "+(e.parentElement?e.parentElement.clientWidth:this.state._width)+" "+(e.parentElement&&(null===(t=e.parentElement)||void 0===t?void 0:t.offsetHeight)>this.state._height?null===(n=e.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height);e.setAttribute("viewBox",r)}},t.prototype._createLegends=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=e&&e.chartData.map((function(e,t){var i=e.color?e.color:r[Math.floor(4*Math.random()+1)];return{title:e.legend,color:i,action:function(){n.state.selectedLegend===e.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.legend})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:e.legend})},onMouseOutAction:function(){n.setState({activeLegend:""})}}}));return s.createElement(Zh,i({legends:o,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._hoverLeave=function(){},t.prototype._valueInsideDonut=function(e,t){var n=this._getHighlightedLegend();if(void 0===e||""===n||this.state.showHover)return e;var r=e;return t.map((function(e,t){e.legend===n&&(r=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),r},t.prototype._toLocaleString=function(e){var t=_d(e,this.props.culture);return t?null==t?void 0:t.toString():e},t.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},t.defaultProps={innerRadius:0,hideLabels:!0},t}(s.Component),Ip=E(Vp,(function(e){var t=e.className,n=e.width,r=e.height;return{root:[e.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},t],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:n+"px"}}}));function Op(e){this._context=e}function Hp(e){return new Op(e)}function Bp(e){return e[0]}function Rp(e){return e[1]}function Wp(e,t){var n=Qh(!0),r=null,i=Hp,o=null;function a(a){var s,l,u,c=(a=$h(a)).length,d=!1;for(null==r&&(o=i(u=xp())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(l,s,a),+t(l,s,a));if(u)return o=null,u+""||null}return e="function"==typeof e?e:void 0===e?Bp:Qh(e),t="function"==typeof t?t:void 0===t?Rp:Qh(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:Qh(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Qh(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:Qh(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a}Op.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var zp=he(),Yp=function(e){function t(t){var n,r,o,a,l,u,c,d,h,p,f,g,m,v,_=e.call(this,t)||this;return _.minLegendContainerHeight=32,_._isRtl=le(),_._multiValueCallout=function(e){var t=_._yValueHoverSubCountsExists(e.YValueHover);return s.createElement("div",{className:_._classNames.calloutContentRoot},s.createElement("div",{className:_._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},s.createElement("div",i({className:_._classNames.calloutContentX},vd(e.xAxisCalloutAccessibilityData,"text",!1)),_d(e.hoverXValue,_.props.culture))),s.createElement("div",{className:_._classNames.calloutInfoContainer,style:t?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,n,r){var o=n+1===r.length,a=e.shouldDrawBorderBottom,l=void 0!==a&&a;return s.createElement("div",i({},vd(e.callOutAccessibilityData,"text",!1),{key:"callout-content-"+n,style:i(t?{display:"inline-block"}:{},l&&{borderBottom:"1px solid "+_.props.theme.semanticColors.menuDivider,paddingBottom:"10px"})}),_._getCalloutContent(e,n,t,o))})),!!e.descriptionMessage&&s.createElement("div",{className:_._classNames.descriptionMessage},e.descriptionMessage)))},_._getData=function(e,t){_.props.getGraphData&&_.props.getGraphData(e,t,_.state.containerHeight-_.state._removalValueForTextTuncate,_.state.containerWidth,_.xAxisElement,_.yAxisElement)},_._onChartLeave=function(){_.props.onChartMouseLeave&&_.props.onChartMouseLeave()},_.state={containerHeight:0,containerWidth:0,_width:_.props.width||600,_height:_.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},_.idForGraph=xe("chart_"),_.margins={top:null!==(r=null===(n=_.props.margins)||void 0===n?void 0:n.top)&&void 0!==r?r:20,bottom:null!==(a=null===(o=_.props.margins)||void 0===o?void 0:o.bottom)&&void 0!==a?a:35,right:_._isRtl?null!==(u=null===(l=_.props.margins)||void 0===l?void 0:l.left)&&void 0!==u?u:40:(null!==(d=null===(c=_.props.margins)||void 0===c?void 0:c.right)&&void 0!==d?d:null===(h=_.props)||void 0===h?void 0:h.secondaryYScaleOptions)?40:20,left:_._isRtl?(null!==(f=null===(p=_.props.margins)||void 0===p?void 0:p.right)&&void 0!==f?f:null===(g=_.props)||void 0===g?void 0:g.secondaryYScaleOptions)?40:20:null!==(v=null===(m=_.props.margins)||void 0===m?void 0:m.left)&&void 0!==v?v:40},_}return r(t,e),t.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===jc.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var e=sd(this.props.points,this.yAxisElement);this.state.startFromX!==e&&this.setState({startFromX:e})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.componentDidUpdate=function(e){if(e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===Kc.StringAxis){var t=function(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,i=[];Wc(t).call(n).selectAll(".tick").each((function(){var e=this.getAttribute("transform");if(-1===(null==e?void 0:e.indexOf("rotate"))){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")).split(",");2===t.length&&(i.push(t[0]),this.setAttribute("transform","translate("+t[0]+",0)rotate(-45)"))}var n=this.getBoundingClientRect(),o=n&&n.height;o>r&&(r=o)}));var o=0;return Wc(t).call(n).selectAll(".tick").each((function(){i.length>o&&(this.setAttribute("transform","translate("+i[o]+","+r/2+")rotate(-45)"),o+=1)})),Math.floor(r/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==t+this.margins.bottom&&t>0&&this.setState({_removalValueForTextTuncate:t+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===jc.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var n=sd(this.props.points,this.yAxisElement);this.state.startFromX!==n&&this.setState({startFromX:n})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},t.prototype.render=function(){var e,t,n,r,o,a,l=this,u=this.props,c=u.calloutProps,d=u.points,h=u.chartType,p=u.chartHoverProps,f=u.svgFocusZoneProps,g=u.svgProps,m=u.culture,v=u.dateLocalizeOptions,_=u.timeFormatLocale,y=u.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var x=i({},this.margins);this.props.chartType===jc.HorizontalBarChartWithAxis&&(this._isRtl?x.right+=this.state.startFromX:x.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(x);var b,C,S,E={domainNRangeValues:cd(d,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,h,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},L={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElement,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:this.props.yMinValue||0,yMaxValue:this.props.yMaxValue||0,tickPadding:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:dd(d,h,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0};switch(this.props.xAxisType){case Kc.NumericAxis:b=id(E,this.props.chartType,m);break;case Kc.DateAxis:b=function(e,t,n,r,i,o){var a=e.domainNRangeValues,s=e.xAxisElement,l=e.tickPadding,u=void 0===l?6:l,c=e.xAxistickSize,d=void 0===c?6:c,h=e.xAxisCount,p=void 0===h?6:h,f=Su().domain([a.dStartValue,a.dEndValue]).range([a.rStartValue,a.rEndValue]),g=Bi(f).tickSize(d).tickPadding(u).ticks(p);if(o)g.tickFormat((function(e,t){return o(e)}));else if(n&&r)g.tickFormat((function(e,t){return e.toLocaleString(n,r)}));else if(i){var m=il(i);g.tickFormat((function(e,t){return function(e,t){var n=t.format(".%L"),r=t.format(":%S"),i=t.format("%I:%M"),o=t.format("%I %p"),a=t.format("%a %d"),s=t.format("%b %d"),l=t.format("%B"),u=t.format("%Y");return($c(e)<e?n:Jc(e)<e?r:td(e)<e?i:Zs(e)<e?o:rd(e)<e?zs(e)<e?a:s:Qs(e)<e?l:u)(e)}(e,m)}))}return t.tickValues&&g.tickValues(t.tickValues),void 0===n&&t.tickFormat&&g.tickFormat(al(t.tickFormat)),s&&Wc(s).call(g).selectAll("text").attr("aria-hidden","true"),f}(E,this.props.tickParams,m,v,_,y);break;case Kc.StringAxis:b=function(e,t,n,r){var i=e.domainNRangeValues,o=e.xAxisCount,a=void 0===o?6:o,s=e.xAxistickSize,l=void 0===s?6:s,u=e.tickPadding,c=void 0===u?10:u,d=e.xAxisPadding,h=void 0===d?.1:d,p=e.xAxisInnerPadding,f=e.xAxisOuterPadding,g=Pu().domain(n).range([i.rStartValue,i.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=Bi(g).tickSize(l).tickPadding(c).ticks(a).tickFormat((function(e,t){return _d(n[t],r)}));return e.xAxisElement&&Wc(e.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),g}(E,this.props.tickParams,this.props.datasetForXAxisDomain,m);break;default:b=id(E,this.props.chartType,m)}if(this._xScale=b,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var k={node:this.xAxisElement,xAxis:b,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},A=b&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,i=e.showXAxisLablesTooltip;if(null!==t){var o=Wc(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=Wc(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,u=e.text().split(/\s+/).reverse();s.push(u.length);var c="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(i&&l>r)g=e.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(i&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);else{for(;c=u.pop();)d.push(c),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[c],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(c));var m=Math.max.apply(Math,s),v=12;o.selectAll("text").each((function(){var e=document.getElementById("WordBreakId"),t=e&&e.getBoundingClientRect(),n=t&&t.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),a=(m-_)*v}})),a>0?a:0}}(k);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==A&&this.setState({_removalValueForTextTuncate:A,isRemoveValCalculated:!1})}var w,D,T,M,P,F,N={yAxisDomainValues:[]};this.props.yAxisType&&this.props.yAxisType===Gc.StringAxis?C=function(e,t,n,r,i,o){return r===jc.HorizontalBarChartWithAxis?function(e,t,n,r,i){var o=e.containerHeight,a=e.tickPadding,s=void 0===a?12:a,l=e.margins,u=e.yAxisTickFormat,c=e.yAxisElement,d=Pu().domain(t).range([o-l.bottom-r/2,l.top+r/2]),h=(n?Hi(d):Ri(d)).tickPadding(s).ticks(t);return u&&h.tickFormat(u),c&&Wc(c).call(h).selectAll("text"),d}(e,t,n,i):function(e,t,n){var r=e.containerHeight,i=e.tickPadding,o=void 0===i?12:i,a=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,u=e.yAxisPadding,c=void 0===u?0:u,d=Pu().domain(t).range([r-a.bottom,a.top]).padding(c),h=(n?Hi(d):Ri(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&Wc(l).call(h).selectAll("text"),d}(e,t,n)}(L,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth):((null===(e=this.props)||void 0===e?void 0:e.secondaryYScaleOptions)&&(S=od({margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(t=this.props.secondaryYScaleOptions)||void 0===t?void 0:t.yMinValue)||0,yMaxValue:null!==(r=null===(n=this.props.secondaryYScaleOptions)||void 0===n?void 0:n.yMaxValue)&&void 0!==r?r:100,tickPadding:10,maxOfYVal:null!==(a=null===(o=this.props.secondaryYScaleOptions)||void 0===o?void 0:o.yMaxValue)&&void 0!==a?a:100,yMinMaxValues:dd(d,h),yAxisPadding:this.props.yAxisPadding},this._isRtl,N,h,this.props.barwidth,!0)),C=od(L,this._isRtl,N,h,this.props.barwidth)),this.props.chartType===jc.HorizontalBarChartWithAxis&&C&&(w=this.yAxisElement,D=C,T=this.props.noOfCharsToTruncate||4,M=this.props.showYAxisLablesTooltip||!1,P=this.state.startFromX,F=this._isRtl,null!==w&&Wc(w).call(D).selectAll(".tick text").each((function(){var e=Wc(this),t=e.text(),n=e.text().slice(0,T)+"...",r=e.text().length,i=M?1.5:1,o=e.attr("y"),a=e.attr("x"),s=parseFloat(e.attr("dy"));e.text(null).append("tspan").attr("x",a).attr("y",o).attr("id","BaseSpan").attr("dy",s+"em").attr("data-",t),M&&r>T?e.append("tspan").attr("id","showDots").attr("x",a).attr("y",o).attr("dy",s).attr("dx",i+0+"em").text(n):e.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",F?P:a).attr("y",o).attr("dx",i+0+"em").text(t)}))),this.props.getAxisData&&this.props.getAxisData(N),this._getData(b,C),this._classNames=zp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var V,I={width:this.state.containerWidth,height:this.state.containerHeight},O=this.props.children(i(i({},this.state),{xScale:b,yScale:C,yScaleSecondary:S}));return V=this.props.focusZoneDirection===gd.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:gd.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(e){return l.chartContainer=e},onMouseLeave:this._onChartLeave},s.createElement(Ud,i({direction:V},f),s.createElement("svg",i({width:I.width,height:I.height,"aria-label":this.props.chartTitle,style:{display:"block"}},g),s.createElement("g",{ref:function(e){l.xAxisElement=e},id:"xAxisGElement"+this.idForGraph,transform:"translate(0, "+(I.height-this.margins.bottom-this.state._removalValueForTextTuncate)+")",className:this._classNames.xAxis}),s.createElement("g",{ref:function(e){l.yAxisElement=e},id:"yAxisGElement"+this.idForGraph,transform:"translate("+(this._isRtl?I.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX)+", 0)",className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&s.createElement("g",{ref:function(e){l.yAxisElementSecondary=e},id:"yAxisGElementSecondary"+this.idForGraph,transform:"translate("+(this._isRtl?this.margins.left:I.width-this.margins.right)+", 0)",className:this._classNames.yAxis}),O)),!this.props.hideLegend&&s.createElement("div",{ref:function(e){return l.legendContainer=e},className:this._classNames.legendContainer},this.props.legendBars),s.createElement(Ei,i({hidden:!(!this.props.hideTooltip&&c.isCalloutVisible),shouldUpdateWhenHidden:!0},c),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(c),!this.props.customizedCallout&&!this.props.isCalloutForStack&&s.createElement(Cd,i({XValue:c.XValue,Legend:c.legend,YValue:c.YValue,color:c.color,culture:this.props.culture},p))))},t.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},t.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},o=void 0!==e.index&&-1!==e.index,a=zp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:e.color,toDrawShape:o}),l=this.props.culture,u=_d(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var c=e.yAxisCalloutData;return s.createElement("div",{style:i},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),Object.keys(c).map((function(e){return s.createElement("div",{key:e,className:a.calloutBlockContainer},s.createElement("div",{className:a.calloutlegendText}," ",_d(e,l)),s.createElement("div",{className:a.calloutContentY},_d(c[e],l)))})))}return s.createElement("div",{style:n?i:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),s.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&s.createElement(jh,{svgProps:{className:a.shapeStyles},pathProps:{fill:e.color},shape:hd[e.index%Object.keys(md).length]}),s.createElement("div",null,s.createElement("div",{className:a.calloutlegendText}," ",e.legend),s.createElement("div",{className:a.calloutContentY},_d(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t;if(e.props.hideLegend)t=0;else{var i=e.legendContainer&&getComputedStyle(e.legendContainer);t=(e.legendContainer&&e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(i&&i.marginTop||"0")+parseFloat(i&&i.marginBottom||"0")}if(e.props.parentRef||e.chartContainer){var o=e.props.parentRef?e.props.parentRef:e.chartContainer,a=o.getBoundingClientRect().width,s=o.getBoundingClientRect().height>t?o.getBoundingClientRect().height:350;(n!==a||r!==s-t)&&e.setState({containerWidth:a,containerHeight:s-t})}}))},t}(s.Component),Up=function(){var e,t=d();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),qp=E(Yp,(function(e){var t,n,r,o,a,s,l,u,c=e.className,d=e.theme,h=e.isRtl,p=e.shouldHighlight,f=e.href,g=e.lineColor,m=void 0===g?"transparent":g,v=e.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(t={},t[qn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[qn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[qn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(o={},o[qn]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!Up&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[i(i({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(a={},a[Un]={forcedColorAdjust:"none"},a),borderLeft:"4px solid "+m,paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:i(i({},_.small),{lineHeight:"16px",selectors:(s={},s[qn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[i(i({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[qn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(u={},u[qn]={color:"rgb(255, 255, 255)"},u),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+d.semanticColors.menuDivider}]}})),Xp=nr((function(e){return nr((function(t){var n=nr((function(e){return function(n){return t(n,e)}}));return function(r,i){return e(r,i?n(i):t)}}))}));function jp(e,t){return Xp(e)(t)}var Kp=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},Gp=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},Zp="spacer-",$p={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Qp=function(e){return e.getBoundingClientRect()},Jp=Qp,ef=Qp,tf=function(e){function t(t){var n=e.call(this,t)||this;return n._root=s.createRef(),n._surface=s.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version||!t.hasMounted&&n.props.renderEarly&&u()?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return s.createElement("div",i({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return s.createElement("div",i({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r,a=n.props,l=a.onRenderCell,u=a.onRenderCellConditional,c=a.role,d=e.page,h=d.items,p=void 0===h?[]:h,f=d.startIndex,g=o(e,["page"]),m=void 0===c?"listitem":"presentation",v=[],_=0;_<p.length;_++){var y=f+_,x=p[_],b=n.props.getKey?n.props.getKey(x,y):x&&x.key;null==b&&(b=y);var C=null!=u?u:l,S=null!==(r=null==C?void 0:C(x,y,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==r?r:null;u&&!S||v.push(s.createElement("div",{role:m,className:"ms-List-cell",key:b,"data-list-index":y,"data-automationid":"ListCell"},S))}return s.createElement("div",i({},g),v)},Ed(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new Ot(n),n._events=new sh(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return r(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var u=this._getPageSpecification(this.props,l,o),c=u.height;if(s=u.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=ef(this._scrollElement),h=Kp(this._scrollElement),p={top:h,bottom:h+d.height},f=e-l,g=0;g<f;++g)a+=t(l+g);var m=a+t(e);switch(n){case 1:return void Gp(this._scrollElement,a);case 2:return void Gp(this._scrollElement,m-d.height);case 3:return void Gp(this._scrollElement,(a+m-d.height)/2)}if(a>=p.top&&m<=p.bottom)return;a<p.top||m>p.bottom&&(a=m-d.height)}return void(this._scrollElement&&Gp(this._scrollElement,a))}a+=c}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var i=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/i)}for(var o=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(i=e(a),r.top+o<=this._scrollTop&&this._scrollTop<r.top+o+i)return a;o+=i}}}return 0},t.prototype.componentDidMount=function(){this._scrollElement=at(this._root.current),this._scrollTop=0,this.setState(i(i({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,i=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var o=0;o<n.length;o++){var a=n[o],s=r[o];if(a.key!==s.key||a.itemCount!==s.itemCount){i=!0;break}}else i=!0;return i},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,o=e.onRenderSurface,a=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,u=[],c=et(this.props,Je),d=0,h=l;d<h.length;d++){var p=h[d];u.push(this._renderPage(p))}var f=o?jp(o,this._onRenderSurface):this._onRenderSurface;return(a?jp(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:u,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:i(i({},c),{className:tt("ms-List",t),role:u.length>0?r:void 0,"aria-label":u.length>0?c["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var i=this._getPageStyle(e),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:i,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return i(i({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=Le(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,i=this._requiredWindowsBehind,o=Math.min(t,r+1),a=Math.min(n,i+1);o===r&&a===i||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>o||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),i(i(i({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,i=n.onPageRemoved;if(r||i){for(var o={},a=0,s=e;a<s.length;a++)(c=s[a]).items&&(o[c.startIndex]=c);for(var l=0,u=t;l<u.length;l++){var c;(c=u[l]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var d in o)o.hasOwnProperty(d)&&this._onPageRemoved(o[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var i={width:n.clientWidth,height:n.clientHeight};(i.height||i.width)&&(t=e.height!==i.height,e.height=i.height,this._cachedPageHeights[e.startIndex]={height:i.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+i.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,o=e.startIndex,a=e.getPageHeight;n=this._getRenderCount(e);for(var s=i({},$p),l=[],u=1,c=0,d=null,h=this._focusedIndex,p=o+n,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!a,m=this._allowedRect,v=function(n){var i=_._getPageSpecification(e,n,m),a=i.height,v=i.data,y=i.key;u=i.itemCount;var x,b,C=c+a-1,S=Ce(t.pages,(function(e){return!!e.items&&e.startIndex===n}))>-1,E=!m||C>=m.top&&c<=m.bottom,L=!_._requiredRect||C>=_._requiredRect.top&&c<=_._requiredRect.bottom;if(!g&&(L||E&&S)||!f||h>=n&&h<n+u||n===o){d&&(l.push(d),d=null);var k=Math.min(u,p-n),A=_._createPage(y,r.slice(n,n+k),n,void 0,void 0,v);A.top=c,A.height=a,_._visibleRect&&_._visibleRect.bottom&&(A.isVisible=C>=_._visibleRect.top&&c<=_._visibleRect.bottom),l.push(A),L&&_._allowedRect&&(x=s,b={top:c,bottom:C,height:a,left:m.left,right:m.right,width:m.width},x.top=b.top<x.top||-1===x.top?b.top:x.top,x.left=b.left<x.left||-1===x.left?b.left:x.left,x.bottom=b.bottom>x.bottom||-1===x.bottom?b.bottom:x.bottom,x.right=b.right>x.right||-1===x.right?b.right:x.right,x.width=x.right-x.left+1,x.height=x.bottom-x.top+1)}else d||(d=_._createPage(Zp+n,void 0,n,0,void 0,v,!0)),d.height=(d.height||0)+(C-c)+1,d.itemCount+=u;if(c+=C-c+1,g&&f)return"break"},_=this,y=o;y<p&&"break"!==v(y);y+=u);return d&&(d.key=Zp+"end",l.push(d)),this._materializedRect=s,i(i({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var i=r(t,n),o=i.itemCount,a=void 0===o?this._getItemCountForPage(t,n):o,s=i.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:i.data,key:i.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){return(this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10)||10},t.prototype._createPage=function(e,t,n,r,i,o,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===i&&(i={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:i,top:0,height:0,data:o,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,i=t.renderCount;return void 0===i?n?n.length-r:0:i},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,o=e.renderedWindowsBehind,a=t.pages;if(this._shouldVirtualize(e)){var s=this._surfaceRect||i({},$p),l=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),u=Kp(this._scrollElement);this._surface.current&&(n||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=Jp(this._surface.current),this._scrollTop=u),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var c=Math.max(0,-s.top),h=d(this._root.current),p={top:c,left:s.left,bottom:c+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=nf(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=nf(p,o,r),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return s.createElement(s.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},t}(s.Component);function nf(e,t,n){var r=e.top-t*e.height,i=e.height+(t+n)*e.height;return{top:r,bottom:r+i,height:i,left:e.left,right:e.right,width:e.width}}var rf,of=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=Wc(t.current),r=e.text.split(/\s+/),i=[],o=n.append("tspan"),a=0;return r.forEach((function(t){i.push(t),o.text(i.join(" "));var r=o.node();r&&r.getComputedTextLength()>e.width&&i.length>1&&(a++,i.pop(),o.text(i.join(" ")),i=[t],o=n.append("tspan").text(t).attr("dy",e.lineHeight).attr("x",e.x))})),n.attr("dy",-a*e.lineHeight),function(){n.selectAll("tspan").remove()}}})),e.lineHeight;var n=o(e,["lineHeight"]);return s.createElement("text",i({ref:t},n))},af=function(e){var t,n=s.useRef(null),r=s.useState(!1),i=r[0],o=r[1],a=null;if(i){var l=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));l.length>0&&(a=s.createElement(Ei,{target:n.current,onDismiss:function(){return o(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(Ud,{isCircularNavigation:!0,direction:gd.vertical},s.createElement(tf,{items:l,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var u=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.textColor;return t=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),s.createElement(s.Fragment,null,s.createElement("g",{ref:n,onClick:function(){return o(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},s.createElement(of,{text:t,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:u})),a)},sf=function(e){var t=e.labelWidth?e.labelWidth:105,n=e.chartYTop-20,r=n+7,o=e.scale.range(),a=e.events.map((function(t){return i(i({},t),{x:e.scale(t.date)})}));a.sort((function(e,t){return+e.date-+t.date}));var l=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.strokeColor,u=function(e,t){for(var n=[],r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=t(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(a,(function(e){return e.date.toString()})).map((function(t,n){return s.createElement("line",{key:n,x1:t.x,x2:t.x,y1:r,y2:e.chartYBottom,stroke:l,strokeDasharray:"8"})})),c=function(e,t,n,r){var i=function(r,i){if(i===e.length)return[];var a=e[i].x,s=a-t;return a<r?[]:i===e.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[i]}]:a+t<n?[{x:a,anchor:"start",aggregatedIdx:[i]}]:[]:o(i,r<s?"end":"start")},o=function(r,o){var a="end"===o?e[r].x:e[r].x+t,s=Ce(e,(function(e){return e.x>a&&(e.x-t>=a||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],u=r;u<s;u++)l.push(u);var c=i(a,s);return c.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),c};return i(r,0)}(a,t+5,o[1],o[0]).map((function(r,o){return s.createElement(af,i({key:o},{lineDefs:a,labelDef:r,textY:n,textWidth:t,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return s.createElement(s.Fragment,null,u,c)},lf={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},uf={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},cf={qualitative:uf,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},df=Object.values(uf),hf=Object.values(lf),pf=function(e,t){if(0===e.length)return"";var n=Number(t);return n<e.length?e[n]:e[0]},ff=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=df[(e+t)%df.length];return pf(r,n)},gf=function(e,t){if(void 0===t&&(t=!1),hf.indexOf(e)>=0){var n=e.split("."),r=n[0],i=n[1],o=cf[r][i];return pf(o,t)}return e},mf=he();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(rf||(rf={}));var vf=zi((function(e){return e.x})).left,_f=function(e){function t(t){var n=e.call(this,t)||this;return n._xAxisScale="",n._yAxisScale="",n.eventLabelHeight=36,n._injectIndexPropertyInLineChartData=function(e){var t=n.props.allowMultipleShapesForPoints,r=void 0!==t&&t;return e?e.map((function(e,t){var o,a,s;return s=void 0===e.color?ff(t,0,null===(o=n.props.theme)||void 0===o?void 0:o.isInverted):gf(e.color,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted),i(i({},e),{index:r?t:-1,color:s})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(e){n.margins=e},n._initializeLineChartData=function(e,t,r,i,o){n._xAxisScale=e,n._yAxisScale=t,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(o,r)},n._handleSingleLegendSelectionAction=function(e){n.state.selectedLegend===e.legend?(n.setState({selectedLegend:""}),n._handleLegendClick(e,null)):(n.setState({selectedLegend:e.legend}),n._handleLegendClick(e,e.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(e,t,r){var i=n.props,o=i.allowMultipleShapesForPoints,a=void 0!==o&&o,s=i.strokeWidth,l=void 0===s?4:s,u=n.state.activePoint;return a?u===e?rf.hoverSize:1===t||r?2.5*l:rf.invisibleSize:u===e?rf.hoverSize:rf.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,u=n._getBoxWidthOfShape(r,i,o),c=l?a%Object.keys(md).length:0,d=md[c].widthRatio;return function(e,t,n,r){return["M"+(e-n/2)+" "+t+"\n A"+n/2+" "+n/2+" 0 1 0 "+(e+n/2)+" "+t+"\n M"+(e-n/2)+" "+t+"\n A "+n/2+" "+n/2+" 0 1 1 "+(e+n/2)+" "+t+"\n ","M"+(e-n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t+n/2)+"\n L"+(e-n/2)+" "+(t+n/2)+"\n Z","M"+(e-n/2)+" "+(t-.2886*n)+"\n H "+(e+n/2)+"\n L"+e+" "+(t+.5774*n)+" Z","M"+e+" "+(t-n/2)+"\n L"+(e+n/2)+" "+t+"\n L"+e+" "+(t+n/2)+"\n L"+(e-n/2)+" "+t+"\n Z","M"+e+" "+(t-.5774*n)+"\n L"+(e+n/2)+" "+(t+.2886*n)+"\n L"+(e-n/2)+" "+(t+.2886*n)+" Z","M"+(e-.5*n)+" "+(t-.866*n)+"\n L"+(e+.5*n)+" "+(t-.866*n)+"\n L"+(e+n)+" "+t+"\n L"+(e+.5*n)+" "+(t+.866*n)+"\n L"+(e-.5*n)+" "+(t+.866*n)+"\n L"+(e-n)+" "+t+"\n Z","M"+e+" "+(t-.851*n)+"\n L"+(e+.6884*n)+" "+(t-.2633*n)+"\n L"+(e+.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.6884*n)+" "+(t-.2633*n)+"\n Z","M"+(e-.5001*n)+" "+(t-1.207*n)+"\n L"+(e+.5001*n)+" "+(t-1.207*n)+"\n L"+(e+1.207*n)+" "+(t-.5001*n)+"\n L"+(e+1.207*n)+" "+(t+.5001*n)+"\n L"+(e+.5001*n)+" "+(t+1.207*n)+"\n L"+(e-.5001*n)+" "+(t+1.207*n)+"\n L"+(e-1.207*n)+" "+(t+.5001*n)+"\n L"+(e-1.207*n)+" "+(t-.5001*n)+"\n Z"][r]}(e,t,u=d>1?u/d:u,c)},n._getPointFill=function(e,t,r,i){var o=n.state.activePoint,a=n.props,s=a.theme;return a.allowMultipleShapesForPoints,o===t?s.palette.white:e},n._createColorFillBars=function(e){var t,r=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var i=dd(n._points,jc.LineChart),o=0;o<n._colorFillBars.length;o++){var a=n._colorFillBars[o],l=xe(a.legend.replace(/\W/g,"")),u=gf(a.color,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted);a.applyPattern&&r.push(n._getStripePattern(u,o));for(var c=0;c<a.data.length;c++){var d=a.data[c].startX,h=a.data[c].endX,p=n._legendHighlighted(a.legend)||n._noLegendHighlighted()||n.state.isSelectedLegend?n._getColorFillBarOpacity(a):.1;r.push(s.createElement("rect",{fill:a.applyPattern?"url(#"+n._colorFillBarPatternId+"_"+o+")":u,fillOpacity:p,x:n._xAxisScale(d),y:n._yAxisScale(i.endValue)-3,width:Math.abs(n._xAxisScale(h)-n._xAxisScale(d)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(i.endValue)+3,key:""+l+c}))}}return r},n._getStripePattern=function(e,t){return s.createElement("pattern",{id:n._colorFillBarPatternId+"_"+t,width:16,height:16,key:n._colorFillBarPatternId+"_"+t,patternUnits:"userSpaceOnUse"},s.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},n._checkInGap=function(e,t,n){for(var r=n,i=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(i=!0),{isInGap:i,gapIndex:r}},n._onMouseOverLargeDataset=function(e,t,r){r.persist();var i=n.props.data.lineChartData,o=n._xAxisScale.invert(Uc(document.getElementById(n._rectId),r)[0]),a=vf(i[e].data,o),s=i[e].data[a-1],l=i[e].data[a],u=null,c=null;if(void 0===s&&void 0!==l)u=l.x,c=a;else if(void 0!==s&&void 0===l)u=s.x,c=a-1;else{var d=void 0,h=void 0,p=void 0;switch(fd(i[e].data[0].x,!0)){case Kc.DateAxis:d=new Date(o).getTime(),h=s.x.getTime(),p=l.x.getTime(),u=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,c=Math.abs(d-h)>Math.abs(d-p)?a:a-1;break;case Kc.NumericAxis:d=o,h=s.x,p=l.x,u=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,c=Math.abs(d-h)>Math.abs(d-p)?a:a-1}}var f=i[e].data[c],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,v=u instanceof Date?u.toLocaleString():u,_=u instanceof Date?u.getTime():u,y=Se(n._calloutPoints,(function(e){return e.x===_})),x=i[e].data[c],b=null===n.state.nearestCircleToHighlight||null!==n.state.nearestCircleToHighlight&&null!==x&&(n.state.nearestCircleToHighlight.x!==x.x||n.state.nearestCircleToHighlight.y!==x.y);y&&b&&(n._uniqueCallOutID="#"+n._staticHighlightCircle+"_"+e,Wc("#"+n._staticHighlightCircle+"_"+e).attr("cx",""+n._xAxisScale(x.x)).attr("cy",""+n._yAxisScale(x.y)).attr("visibility","visibility"),Wc("#"+n._verticalLine).attr("transform",(function(){return"translate("+n._xAxisScale(x.x)+", "+n._yAxisScale(x.y)+")"})).attr("visibility","visibility").attr("y2",""+(t-n._yAxisScale(x.y))),n.setState({nearestCircleToHighlight:x,isCalloutVisible:!0,refSelected:"#"+n._staticHighlightCircle+"_"+e,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:g||v,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:e})),y||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,activePoint:"",activeLine:e})},n._handleFocus=function(e,t,r,i,o){n._uniqueCallOutID=i;var a=t instanceof Date?t.toLocaleDateString():t,s=t instanceof Date?t.getTime():t,l=Se(n._calloutPoints,(function(e){return e.x===s}));if(l){var u=n;Wc("#"+n._verticalLine).attr("transform",(function(){return"translate("+u._xAxisScale(t)+", 0)"})).attr("visibility","visibility"),n._refArray.forEach((function(t){t.index===e&&n.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:r||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:i,xAxisCalloutAccessibilityData:o})}))}else n.setState({activePoint:i})},n._handleHover=function(e,t,r,i,o,a,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,u=e instanceof Date?e.getTime():e,c=n,d=Se(n._calloutPoints,(function(e){return e.x===u}));d?(Wc("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._xAxisScale(e)+", "+c._yAxisScale(t)+")"})).attr("visibility","visibility").attr("y2",""+(r-c._yAxisScale(t))),n._uniqueCallOutID!==o&&(n._uniqueCallOutID=o,n.setState({isCalloutVisible:!0,refSelected:"#"+o,hoverXValue:i||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:o,xAxisCalloutAccessibilityData:a,nearestCircleToHighlight:null,activeLine:null}))):n.setState({activePoint:o,nearestCircleToHighlight:null,activeLine:null})},n._getClickHandler=function(e){return e?{onClick:e}:{}},n._handleMouseOut=function(){Wc("#"+n._verticalLine).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},n._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},n._handleMultipleLineLegendSelectionAction=function(e){var t,r=n.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);t=-1===r?a(a([],n.state.selectedLegendPoints),[e]):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&t.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():t.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._handleMultipleColorFillBarLegendSelectionAction=function(e){var t,r=n.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(t=-1===r?a(a([],n.state.selectedColorBarLegend),[e]):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():t.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getColorFillBarOpacity=function(e){return e.applyPattern?1:.4},n._getAriaLabel=function(e,t){var r,i=n._points[e],o=i.data[t],a=o.x instanceof Date?o.x.toLocaleString():o.x,s=o.xAxisCalloutData||a,l=i.legend,u=o.yAxisCalloutData||o.y;return(null===(r=o.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||s+". "+l+", "+u+"."},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._calloutPoints=ad(n._points)||[],n._circleId=xe("circle"),n._lineId=xe("lineID"),n._borderId=xe("borderID"),n._verticalLine=xe("verticalLine"),n._colorFillBarPatternId=xe("colorFillBarPattern"),n._tooltipId=xe("LineChartTooltipId_"),n._rectId=xe("containerRectLD"),n._staticHighlightCircle=xe("staticHighlightCircle"),t.eventAnnotationProps&&t.eventAnnotationProps.labelHeight&&(n.eventLabelHeight=t.eventAnnotationProps.labelHeight),n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=ad(this._points)||[])},t.prototype.render=function(){var e=this,t=this.props,n=t.tickValues,r=t.tickFormat,o=t.eventAnnotationProps,a=t.legendProps,l=t.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var u=ud(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=ad(c));var d=this._createLegends(this._points),h=i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+this._uniqueCallOutID,target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),p={tickValues:n,tickFormat:r};return s.createElement(qp,i({},this.props,{chartTitle:l.chartTitle,points:c,chartType:jc.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:u?Kc.DateAxis:Kc.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#C8C8C8",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),e.props.optimizeLargeData?s.createElement("rect",{id:e._rectId,width:t.containerWidth,height:t.containerHeight,fill:"transparent"}):s.createElement(s.Fragment,null),s.createElement("g",null,e._renderedColorFillBars,e.lines),o&&s.createElement(sf,i({},o,{scale:t.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:t.containerHeight-35}))))}}))},t.prototype._createLegends=function(e){var t=this,n=this.props,r=n.legendProps,o=n.allowMultipleShapesForPoints,l=void 0!==o&&o,u=!(!r||!r.canSelectMultipleLegends),c=e.map((function(e){var n=e.color;return i(i({title:e.legend,color:n,action:function(){u?t._handleMultipleLineLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t._handleChartMouseLeave(),t.setState({activeLegend:e.legend})}},e.legendShape&&{shape:e.legendShape}),l&&{shape:hd[e.index%Object.keys(md).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r,i=e.legend,o=gf(e.color,null===(r=t.props.theme)||void 0===r?void 0:r.isInverted);return{title:i,color:o,action:function(){u?t._handleMultipleColorFillBarLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t._handleChartMouseLeave(),t.setState({activeLegend:i})},opacity:t._getColorFillBarOpacity(e),stripePattern:e.applyPattern}})):[];return s.createElement(Zh,i({legends:a(a([],c),d),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},u&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e,t){var n,r,o,l,u,c,d,h,p,f,g,m,v,_,y,x,b,C,S,E,L,k,A,w,D=this,T=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var M=function(e){var M=[],F=[],N=[],V=P._points[e].legend,I=P._points[e].color,O=P.state.activePoint,H=P.props.theme,B=t-P.margins.bottom+6;if(1===P._points[e].data.length){var R=P._points[e].data[0],W=R.x,z=R.y,Y=R.xAxisCalloutData,U=R.xAxisCalloutAccessibilityData,q=P._circleId+"_"+e;N.push(s.createElement("circle",i({id:q,key:q,r:O===q?5.5:3.5,cx:P._xAxisScale(W),cy:P._yAxisScale(z),fill:O===q?H.palette.white:I,onMouseOver:P._handleHover.bind(P,W,z,B,Y,q,U),onMouseMove:P._handleHover.bind(P,W,z,B,Y,q,U),onMouseOut:P._handleMouseOut,strokeWidth:O===q?4:0,stroke:O===q?I:"",role:"img","aria-label":P._getAriaLabel(e,0),"data-is-focusable":!0,ref:function(e){D._refCallback(e,q)},onFocus:function(){return D._handleFocus(q,W,Y,q,U)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[0].onDataPointClick))))}var X=0,j=null!==(r=null===(n=P._points[e].gaps)||void 0===n?void 0:n.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==r?r:[];if(P.props.optimizeLargeData&&P._points[e].data.length>1){for(var K=Wp().x((function(e){return D._xAxisScale(e[0])})).y((function(e){return D._yAxisScale(e[1])})).curve(Hp),G=P._lineId+"_"+e,Z=P._borderId+"_"+e,$=(null===(o=P._points[e].lineOptions)||void 0===o?void 0:o.strokeWidth)||P.props.strokeWidth||4,Q=P._legendHighlighted(V)||P._noLegendHighlighted()||P.state.isSelectedLegend,J=[],ee=0;ee<P._points[e].data.length;ee++)J.push([P._points[e].data[ee].x instanceof Date?P._points[e].data[ee].x.getTime():P._points[e].data[ee].x,P._points[e].data[ee].y]);if(Q){var te=(null===(l=P._points[e].lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(P._points[e].lineOptions.lineBorderWidth.toString()):0;te>0&&F.push(s.createElement("path",{id:Z,key:Z,d:K(J),fill:"transparent",strokeLinecap:null!==(c=null===(u=P._points[e].lineOptions)||void 0===u?void 0:u.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat($.toString())+te,stroke:(null===(d=P._points[e].lineOptions)||void 0===d?void 0:d.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("path",i({id:G,key:G,d:K(J),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:$,strokeLinecap:null!==(p=null===(h=P._points[e].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==p?p:"round",onMouseMove:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOver:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOut:P._handleMouseOut},P._getClickHandler(P._points[e].onLineClick),{opacity:1,role:"img","aria-label":V+", series "+(e+1)+" of "+P._points.length+" with "+P._points[e].data.length+" data points."})))}else M.push(s.createElement("path",{id:G,key:G,d:K(J),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:$,strokeLinecap:null!==(g=null===(f=P._points[e].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==g?g:"round",opacity:.1,role:"img","aria-label":V+", series "+(e+1)+" of "+P._points.length+" with "+P._points[e].data.length+" data points."}));var ne=null!==P.state.activeLine&&P.state.activeLine===e;N.push(s.createElement("circle",{id:P._staticHighlightCircle+"_"+e,key:P._staticHighlightCircle+"_"+e,r:5.5,cx:0,cy:0,fill:H.palette.white,strokeWidth:4,stroke:I,visibility:ne?"visibility":"hidden",onMouseMove:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOver:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOut:P._handleMouseOut}))}else if(!P.props.optimizeLargeData)for(var re=function(t){var n=P._checkInGap(t,j,X),r=n.isInGap;X=n.gapIndex;var o=P._lineId+"_"+e+"_"+t,a=P._borderId+"_"+e+"_"+t,l=P._circleId+"_"+e+"_"+t,u=P._points[e].data[t-1],c=u.x,d=u.y,h=u.xAxisCalloutData,p=u.xAxisCalloutAccessibilityData,f=P._points[e].data[t],g=f.x,T=f.y,R=P._getPath(P._xAxisScale(c),P._yAxisScale(d),l,t,!1,P._points[e].index),W=(null===(m=P._points[e].lineOptions)||void 0===m?void 0:m.strokeWidth)||P.props.strokeWidth||4,z=P._legendHighlighted(V)||P._noLegendHighlighted()||P.state.isSelectedLegend,Y=P._points[e].hideNonActiveDots&&O!==l;if(N.push(s.createElement("path",i({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,c,d,B,h,l,p),onMouseMove:P._handleHover.bind(P,c,d,B,h,l,p),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(o,c,h,l,p)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[t-1].onDataPointClick),{opacity:z&&!Y?1:.01,fill:P._getPointFill(I,l,t,!1),stroke:I,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(e,t-1)}))),t+1===P._points[e].data.length){var U=""+l+t+"L",q=P._points[e].hideNonActiveDots&&O!==U;R=P._getPath(P._xAxisScale(g),P._yAxisScale(T),U,t,!0,P._points[e].index);var K=P._points[e].data[t],G=K.xAxisCalloutData,Z=K.xAxisCalloutAccessibilityData;N.push(s.createElement("path",i({id:U,key:U,d:R,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,g,T,B,G,U,Z),onMouseMove:P._handleHover.bind(P,g,T,B,G,U,Z),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(o,g,G,U,Z)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[t].onDataPointClick),{opacity:z&&!q?1:.01,fill:P._getPointFill(I,U,t,!0),stroke:I,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(e,t)})))}if(z){if(!r){var $=(null===(v=P._points[e].lineOptions)||void 0===v?void 0:v.lineBorderWidth)?Number.parseFloat(P._points[e].lineOptions.lineBorderWidth.toString()):0;$>0&&F.push(s.createElement("line",{id:a,key:a,x1:P._xAxisScale(c),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeLinecap:null!==(y=null===(_=P._points[e].lineOptions)||void 0===_?void 0:_.strokeLinecap)&&void 0!==y?y:"round",strokeWidth:Number.parseFloat(W.toString())+$,stroke:(null===(x=P._points[e].lineOptions)||void 0===x?void 0:x.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("line",i({id:o,key:o,x1:P._xAxisScale(c),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,ref:function(e){D._refCallback(e,o)},onMouseOver:P._handleHover.bind(P,c,d,B,h,l,p),onMouseMove:P._handleHover.bind(P,c,d,B,h,l,p),onMouseOut:P._handleMouseOut,stroke:I,strokeLinecap:null!==(C=null===(b=P._points[e].lineOptions)||void 0===b?void 0:b.strokeLinecap)&&void 0!==C?C:"round",strokeDasharray:null===(S=P._points[e].lineOptions)||void 0===S?void 0:S.strokeDasharray,strokeDashoffset:null===(E=P._points[e].lineOptions)||void 0===E?void 0:E.strokeDashoffset,opacity:1},P._getClickHandler(P._points[e].onLineClick))))}}else r||M.push(s.createElement("line",{id:o,key:o,x1:P._xAxisScale(c),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,stroke:I,strokeLinecap:null!==(k=null===(L=P._points[e].lineOptions)||void 0===L?void 0:L.strokeLinecap)&&void 0!==k?k:"round",strokeDasharray:null===(A=P._points[e].lineOptions)||void 0===A?void 0:A.strokeDasharray,strokeDashoffset:null===(w=P._points[e].lineOptions)||void 0===w?void 0:w.strokeDashoffset,opacity:.1}))},ie=1;ie<P._points[e].data.length;ie++)re(ie);T.push.apply(T,a(a(a([],F),M),N))},P=this,F=this._points.length-1;F>=0;F--)M(F);var N=mf(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var V=Wc(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var I={tooltipCls:N.tooltip,id:this._tooltipId,xAxis:V};V&&ld(I)}return T},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(s.Component),yf=E(_f,(function(e){return{tooltip:i(i({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));function xf(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function bf(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Cf(e,t){return e[t]}function Sf(e){const t=[];return t.key=e,t}function Ef(e,t,n){var r=null,i=Qh(!0),o=null,a=Hp,s=null;function l(l){var u,c,d,h,p,f=(l=$h(l)).length,g=!1,m=new Array(f),v=new Array(f);for(null==o&&(s=a(p=xp())),u=0;u<=f;++u){if(!(u<f&&i(h=l[u],u,l))===g)if(g=!g)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[u]=+e(h,u,l),v[u]=+t(h,u,l),s.point(r?+r(h,u,l):m[u],n?+n(h,u,l):v[u]))}if(p)return s=null,p+""||null}function u(){return Wp().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?Bp:Qh(+e),t="function"==typeof t?t:Qh(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Rp:Qh(+n),l.x=function(t){return arguments.length?(e="function"==typeof t?t:Qh(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Qh(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Qh(+e),l):r},l.y=function(e){return arguments.length?(t="function"==typeof e?e:Qh(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:Qh(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Qh(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:Qh(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}function Lf(e){return e<0?-1:1}function kf(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Lf(o)+Lf(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Af(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function wf(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Df(e){this._context=e}function Tf(e){this._context=e}function Mf(e){return new Df(e)}Df.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:wf(this,this._t0,Af(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,wf(this,Af(this,n=kf(this,e,t)),n);break;default:wf(this,this._t0,n=kf(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(function(e){this._context=new Tf(e)}.prototype=Object.create(Df.prototype)).point=function(e,t){Df.prototype.point.call(this,t,e)},Tf.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};var Pf,Ff=he(),Nf=zi((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Pf||(Pf={}));var Vf=function(e){function t(t){var n=e.call(this,t)||this;return n._getMargins=function(e){n.margins=e},n._onRectMouseMove=function(e){e.persist();var t=n.props.data.lineChartData,r=n._xAxisRectScale.invert(Uc(document.getElementById(n._rectId),e)[0]),i=Nf(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,u=null;if(void 0===o&&void 0!==a)l=a.x,u=i;else if(void 0!==o&&void 0===a)l=o.x,u=i-1;else{var c=void 0,d=void 0,h=void 0;switch(s=fd(t[0].data[0].x,!0)){case Kc.DateAxis:c=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1;break;case Kc.NumericAxis:c=r,d=o.x,h=a.x,l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1}}var p=t[0].data[u],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,v=l instanceof Date?l.getTime():l,_=Se(n._calloutPoints,(function(e){return e.x===v})),y=s===Kc.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==y;_&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:y,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:Pf.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Pf.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Pf.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=Qh([]),t=bf,n=xf,r=Cf;function i(i){var o,a,s=Array.from(e.apply(this,arguments),Sf),l=s.length,u=-1;for(const e of i)for(o=0,++u;o<l;++o)(s[o][u]=[0,+r(e,s[o].key,u,i)]).data=e;for(o=0,a=$h(t(s));o<l;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Qh(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Qh(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?bf:"function"==typeof e?e:Qh(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?xf:e,i):n},i}().keys(e)(t),i=qi(r[r.length-1],(function(e){return e[1]})),o=[];return r.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),o.push(t)})),n._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:i}},n._createDataSet=function(e){var t=[],r=[],i=[],o=[],a=ad(e);e&&e.length&&e.forEach((function(e){i.push(e.color),o.push(e.opacity||1),t.push.apply(t,e.data)}));for(var s=t,l=function(){var e=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x,t=s.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)===e})),n={};t.forEach((function(e,t){n.xVal=e.x,n["chart"+t]=e.y})),r.push(n);var i=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x;s=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==i}))};s.length;)l();for(var u=r&&Object.keys(r[0]).length,c=[],d=0;d<u-1;d++){var h="chart"+d;c.push(h)}var p=n._getStackedData(c,r);return{colors:i,opacity:o,keys:c,stackedInfo:p,calloutPoints:a}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(e,t,r,i,o){n._chart=n._drawGraph(r,e,t,o)},n._getLegendData=function(e){var t=[];return e.forEach((function(e){var r=e.color;if(!(t.filter((function(t){return t.title===e.legend&&t.color===r})).length>0)){var i={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};t.push(i)}})),s.createElement(Zh,i({legends:t,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._onDataPointClick=function(e){e&&e(),n.setState({isCircleClicked:!0})},n._getOpacity=function(e){return n._isMultiStackChart?n._legendHighlighted(e)||n._noLegendHighlighted()?.7:.1:.7},n._getLineOpacity=function(e){if(n._isMultiStackChart){var t=.3;return n.state.isCalloutVisible&&(t=1),n._noLegendHighlighted()||(t=n._legendHighlighted(e)?0:.1),t}return 1},n._updateCircleFillColor=function(e,t,r){var i=t;return n.state.nearestCircleToHighlight!==e&&n.state.activePoint!==r||(n._highlightedCircleId=r,n.state.isCircleClicked||(i=n.props.theme.palette.white)),i},n._drawGraph=function(e,t,r,o){var a,l=n._addDefaultColors(n.props.data.lineChartData),u=n.props.data,c=u.pointOptions,d=u.pointLineOptions,h=Ef().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(Mf),p=Wp().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Mf),f=[];n._stackedData.forEach((function(e,o){f.push(s.createElement(s.Fragment,{key:o+"-graph-"+n._uniqueIdForGraph},s.createElement("path",i({id:o+"-line-"+n._uniqueIdForGraph,d:p(e),fill:"transparent",strokeWidth:3,stroke:n._colors[o],opacity:n._getLineOpacity(l[o].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},l[o].lineOptions)),1===e.length?s.createElement("circle",{id:o+"-graph-"+n._uniqueIdForGraph,cx:t(e[0].xVal),cy:r(e[0].values[1]),r:6,stroke:n._colors[o],strokeWidth:3,fill:n._colors[o],opacity:n._opacity[o],fillOpacity:n._getOpacity(l[o].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove}):s.createElement("path",i({id:o+"-graph-"+n._uniqueIdForGraph,d:h(e),fill:n._colors[o],opacity:n._opacity[o],fillOpacity:n._getOpacity(l[o].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},n.props.optimizeLargeData&&{"data-is-focusable":!0,role:"img","aria-label":l[o].legend+", series "+(o+1)+" of "+l.length+" with "+l[o].data.length+" data points."}))))}));var g=c&&c.r?Number(c.r):8;n._stackedData.forEach((function(e,o){l.length!==o&&(n.props.optimizeLargeData&&1!==e.length?e.forEach((function(e,u){var d=e.xVal instanceof Date?e.xVal.getTime():e.xVal;if(n.state.nearestCircleToHighlight===d){var h=n._circleId+"_"+(o*n._stackedData[0].length+u);a=l[o].color,f.push(s.createElement("circle",i({key:h,id:h,cx:t(e.xVal),cy:r(e.values[1]),stroke:a,strokeWidth:3,fill:n._updateCircleFillColor(d,a,h),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[o].data[u].onDataPointClick)},c,{r:n._getCircleRadius(d,g,h)})))}})):f.push(s.createElement("g",{key:o+"-dots-"+n._uniqueIdForGraph,d:h(e),clipPath:"url(#clip)"},e.map((function(e,u){var d=n._circleId+"_"+(o*n._stackedData[0].length+u),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return a=l[o].color,s.createElement("circle",i({key:d,id:d,"data-is-focusable":!0,cx:t(e.xVal),cy:r(e.values[1]),stroke:a,strokeWidth:3,fill:n._updateCircleFillColor(h,a,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[o].data[u].onDataPointClick),onFocus:function(){return n._handleFocus(o,u,d)},onBlur:n._handleBlur},c,{r:n._getCircleRadius(h,g,d),role:"img","aria-label":n._getAriaLabel(o,u)}))})))))})),f.push(s.createElement("line",i({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:a,opacity:.5,visibility:n.state.displayOfLine},d)));var m=Ff(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var v=Wc(o).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var _={tooltipCls:m.tooltip,id:n._tooltipId,xAxis:v};v&&ld(_)}return f},n._getCircleRadius=function(e,t,r){var i=n.state,o=i.isCircleClicked,a=i.nearestCircleToHighlight,s=i.activePoint;return o&&a===e?1:a===e||s===r?t:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._addDefaultColors=function(e){return e?e.map((function(e,t){var r,o,a;return a=void 0===e.color?ff(t,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted):gf(e.color,null===(o=n.props.theme)||void 0===o?void 0:o.isInverted),i(i({},e),{color:a})})):[]},n._handleFocus=function(e,t,r){var i=n.props.data.lineChartData[e].data[t],o=i.x,a=i.y,s=i.xAxisCalloutData,l=o instanceof Date?o.toLocaleString():o,u=o instanceof Date?o.getTime():o,c=n._calloutPoints.find((function(e){return e.x===u}));c.values=c.values.filter((function(e){return e.y===a})),n.setState({refSelected:"#"+r,isCalloutVisible:!0,hoverXValue:s||l,YValueHover:c.values,stackCalloutProps:c,dataPointCalloutProps:c,activePoint:r})},n._handleBlur=function(){n.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},n._getAriaLabel=function(e,t){var r,i=n.props.data.lineChartData[e],o=i.data[t],a=o.x instanceof Date?o.x.toLocaleString():o.x,s=o.xAxisCalloutData||a,l=i.legend,u=o.yAxisCalloutData||o.y;return(null===(r=o.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||s+". "+l+", "+u+"."},n._createSet=tr(n._createDataSet),n.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Pf.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},n._uniqueIdForGraph=xe("areaChart_"),n._verticalLineId=xe("verticalLine_"),n._circleId=xe("circle"),n._rectId=xe("rectangle"),n._tooltipId=xe("AreaChartTooltipID"),n}return r(t,e),t.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#"+this._highlightedCircleId,isCalloutVisible:!0,isShowCalloutPending:!1})},t.prototype.render=function(){var e=this,t=this.props.data,n=t.lineChartData,r=t.chartTitle,o=this._addDefaultColors(n),a=this._createSet(o),l=a.colors,u=a.opacity,c=a.stackedInfo,d=a.calloutPoints;this._calloutPoints=d;var h=ud(o);this._colors=l,this._opacity=u,this._stackedData=c.stackedData;var p=this._getLegendData(o),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},g=i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+this._uniqueCallOutID,gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return s.createElement(qp,i({},this.props,{chartTitle:r,points:o,chartType:jc.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?Kc.DateAxis:Kc.NumericAxis,tickParams:f,maxOfYVal:c.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){e._xAxisRectScale=t.xScale;var n=e._xAxisRectScale.ticks(),r=e._xAxisRectScale(n[n.length-1]),i=t.containerHeight-e.margins.top;return s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),s.createElement("g",null,e._chart))}}))},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t}(s.Component),If=E(Vf,(function(e){return{tooltip:i(i({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Of=function(e){return{root:{fill:e.color,stroke:zn.white,strokeWidth:2}}},Hf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){Rf(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Rf(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=he()(Of,{color:n});return s.createElement("path",{d:r(this.props.data),className:i.root,onClick:null===(e=this.props.data)||void 0===e?void 0:e.data.onClick})},t.defaultProps={arc:Ap()},t}(s.Component),Bf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var t=this.props,n=t.data,r=t.arc,i=t.culture,o=r.centroid(n),a="translate("+o[0]+", "+o[1]+")";return s.createElement("g",{className:"arc"},e.prototype.render.call(this),s.createElement("text",{transform:a,textAnchor:"middle"},n.data.x,"-",_d(n.data.y,i)))},t}(Hf);function Rf(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Wf,zf=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return s.createElement(Bf,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:""+n.colors(t)})},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.colors,i=t.data,o=t.width,a=t.height,l=t.chartTitle;this.colors=Mu().range(r);var u=n(i),c="translate("+o/2+", "+a/2+")";return s.createElement("svg",{width:o,height:a,"aria-label":l},s.createElement("g",{transform:c},u.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:pp().sort(null).value((function(e){return e.y}))},t}(s.Component),Yf=he(),Uf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,i=e.colors,o=e.chartTitle,a=this.props,l=a.theme,u=a.className,c=a.styles,d=a.culture;this._classNames=Yf(c,{theme:l,width:n,height:r,className:u});var h=Math.min(n,r)/2-10;return s.createElement("div",{className:this._classNames.root},this.props.chartTitle&&s.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),s.createElement(zf,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(s.Component),qf=E(Uf,(function(e){var t=e.className,n=e.theme,r=e.width+30,o=e.height+10;return{root:[n.fonts.medium,"ms-PieChart",t,{width:r+40}],chart:[{padding:20,width:r,height:o,boxSizing:"content-box"}],chartTitle:[i({textAlign:"center"},n.fonts.mediumPlus)]}})),Xf=he(),jf=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xe("callout"),n}return r(t,e),t.prototype.render=function(){this._adjustProps();var e=this.props,t=e.data,n=e.benchmarkData,r=e.targetData,o=e.hideNumberDisplay,a=e.ignoreFixStyle,l=e.culture,u=this.props.theme.palette,c=a||t.chartData.length>2?this.props.barHeight:12;n&&(n.color=n.color||u.neutralTertiary),r&&(r.color=r.color||u.neutralSecondary);var d=this._createBarsAndLegends(t,c,u,n,r),h=!1===o&&!a&&2===t.chartData.length,p=!1===o&&!a&&1===t.chartData.length,f=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),g=0;n&&f&&(g=n.data/f*100);var m=0;r&&f&&(m=r.data/f*100);var v=!1===this.props.hideLegend&&(a||t.chartData.length>2);this._classNames=Xf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:g,targetColor:r?r.color:"",targetRatio:m,showTriangle:!(!n&&!r)});var _=function(){return _d(t.chartData[0].data?t.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(Ud,{direction:gd.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement(nh,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),h&&s.createElement("div",i({},vd(t.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},_()),!this.props.hideDenominator&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+_d(f,l))),p&&s.createElement("div",i({className:this._classNames.ratioNumerator},vd(t.chartDataAccessibilityData,"text",!1)),_())),(n||r)&&s.createElement("div",{className:this._classNames.benchmarkContainer},n&&s.createElement("div",{className:this._classNames.benchmark,role:"text"}),r&&s.createElement("div",{className:this._classNames.target,role:"text"}))),s.createElement(Ud,{direction:gd.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},s.createElement("g",null,d[0]),s.createElement(Ei,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Ee.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,vd(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Cd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&s.createElement("div",{className:this._classNames.legendContainer},d[1]))},t.prototype._adjustProps=function(){this._classNames=Xf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},t.prototype._createBarsAndLegends=function(e,t,n,r,o){var a=this,l=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],c=[],d=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),h=0,p=0,f=0;e.chartData.map((function(e,t){var n=e.data?e.data:0;return(p=n/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),f+=p}));var g=0!==f?f/100:1,m=e.chartData.map((function(e,n){var r=e.color?e.color:l[Math.floor(4*Math.random()+1)],i=e.data?e.data:0,o={title:e.legend,color:r,action:d>0?function(){a._onClick(e.legend)}:void 0,hoverAction:d>0?function(){a._handleChartMouseLeave(),a._onHover(e.legend)}:void 0,onMouseOutAction:d>0?function(){a._onLeave()}:void 0};e.placeHolder||u.push(o),n>0&&(h+=p),(p=i/d*100)<1&&0!==p?p=1/g:p>99&&100!==p?p=99/g:p/=g,c.push(h);var f=a.props.styles,m=!(!a._legendHighlighted(e.legend)&&!a._noLegendHighlighted());return a._classNames=Xf(f,{theme:a.props.theme,shouldHighlight:m,href:a.props.href}),s.createElement("g",{key:n,className:a._classNames.opacityChangeOnHover,ref:function(e){a._refCallback(e,o.title)},"data-is-focusable":!a.props.hideTooltip,onFocus:a._onBarFocus.bind(a,i,r,e),onBlur:a._onBarLeave,"aria-label":a._getAriaLabel(e),role:"img",onMouseOver:a._onBarHover.bind(a,i,r,e),onMouseMove:a._onBarHover.bind(a,i,r,e),onMouseLeave:a._onBarLeave,pointerEvents:"all",onClick:a.props.href?a._redirectToUrl.bind(a,a.props.href):e.onClick},s.createElement("rect",{key:n,x:c[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(u,r),this._addLegend(u,o);var v=s.createElement(Zh,i({legends:u,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(t,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralLight)]:m,v]},t.prototype._onBarFocus=function(e,t,n){var r=this;this._refArray.forEach((function(i){i.index===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._addLegend=function(e,t){if(t){var n={title:t.legend,color:t.color,shape:"triangle"};e.push(n)}},t.prototype._generateEmptyBar=function(e,t){return s.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:e,fill:t}))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onHover=function(e){this.setState({activeLegend:e})},t.prototype._onLeave=function(){this.setState({activeLegend:""})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),Kf=E(jf,(function(e){var t,n,r=e.className,o=e.width,a=e.barHeight,s=e.shouldHighlight,l=e.theme,u=e.href,c=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio,f=e.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:a||12,display:"block",marginBottom:f?"16px":"10px"},chartTitle:i(i({},l.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:l.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:u?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Hn.medium,color:l.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c,marginBottom:"4px",selectors:(t={},t[Un]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+c+", "+c+")"},t)},target:{position:"absolute",left:"calc("+p+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(n={},n[Un]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+h+", "+h+")"},n)}}}));!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(Wf||(Wf={}));var Gf,Zf=he(),$f=function(e){function t(t){var n=e.call(this,t)||this;return n._isRTL=le(),n._adjustProps=function(){var e=n.props,t=e.theme,r=e.className,i=e.styles,o=e.width,a=e.barHeight;n._classNames=Zf(i,{legendColor:n.state.color,theme:t,width:o,className:r,barHeight:a})},n._getLegendData=function(e,t,r){var o=[r.blueLight,r.blue,r.blueMid,r.red,r.black],a=[];return e.forEach((function(e,r){var i=e.chartData.filter((function(e){return!e.placeHolder}));i.length<3?void 0!==t[r]&&t[r]&&i.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onHover(e.legend)},onMouseOutAction:function(){n._onLeave()}};a.push(r)}})):i.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onHover(e.legend)},onMouseOutAction:function(){n._onLeave()}};a.push(r)}}))})),s.createElement(Zh,i({legends:a,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n._computeLongestBarTotalValue=function(){var e=0;return n.props.data.forEach((function(t){var n=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0);e=Math.max(e,n)})),e},n.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xe("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme,o=t.culture;this._adjustProps();var a=r.palette,l=this._getLegendData(n,this.props.hideRatio,a),u=this.state.isCalloutVisible;this._classNames=Zf(this.props.styles,{legendColor:this.state.color,theme:r,variant:this.props.variant,hideLabels:this.props.hideLabels});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,a,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href);return s.createElement("div",{key:n},r)}));return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},l),s.createElement(Ei,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&u),directionalHint:Ee.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,vd(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Cd,{Legend:c,YValue:d,color:this.state.color,culture:o}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,o,a){var l=this,u=this.props.culture,c=[n.blueLight,n.blue,n.blueMid,n.red,n.black],d=[],h=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),p=this.props.variant===Wf.AbsoluteScale?this._longestBarTotalValue:h,f=0;if(e.chartData.map((function(e,t){var n=e.data?e.data:0;return(_=n/p*100?n/p*100:0)<1&&0!==_?_=1:_>99&&100!==_&&(_=99),f+=_})),this.props.variant===Wf.AbsoluteScale){var g=0===p?0:(p-h)/p*100;g<1&&0!==g?g=1:g>99&&100!==g&&(g=99),f+=g}var m=0!==f?f/100:1,v=0,_=0,y=e.chartData.map((function(e,r){var i=e.color?e.color:e.placeHolder?n.neutralLight:c[Math.floor(4*Math.random()+1)],o=e.data?e.data:0;r>0&&(v+=_),(_=o/p*100?o/p*100:0)<1&&0!==_?_=1/m:_>99&&100!==_?_=99/m:_/=m,d.push(v);var u=l.props.styles,h=!(!l._legendHighlighted(e.legend)&&!l._noLegendHighlighted());return l._classNames=Zf(u,{theme:l.props.theme,shouldHighlight:h,href:a,variant:l.props.variant,hideLabels:l.props.hideLabels}),s.createElement("g",{key:r,className:e.placeHolder?l._classNames.placeHolderOnHover:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,e.legend)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,o,i,e),onBlur:l._onBarLeave,role:"img","aria-label":l._getAriaLabel(e),onMouseOver:e.placeHolder?void 0:l._onBarHover.bind(l,o,i,e),onMouseMove:e.placeHolder?void 0:l._onBarHover.bind(l,o,i,e),onMouseLeave:e.placeHolder?void 0:l._onBarLeave,onClick:a?e.placeHolder?void 0:l._redirectToUrl.bind(l,a):e.onClick},s.createElement("rect",{key:r,x:(l._isRTL?100-d[r]-_:d[r])+"%",y:0,width:_+"%",height:t,fill:i}))}));this.props.variant===Wf.AbsoluteScale?this.props.hideLabels||y.push(s.createElement("text",{key:"text",x:(this._isRTL?100-(d[d.length-1]||0)-_:(d[d.length-1]||0)+_)+"%",y:t/2,dominantBaseline:"central",transform:"translate("+(this._isRTL?-4:4)+")",className:this._classNames.barLabel,"aria-label":"Total: "+h,role:"img"},_a(h<1e3?".2~":".1",h)(h))):(0===e.chartData.length&&y.push(s.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralLight}))),0===h&&y.push(s.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralLight}))));var x=void 0!==r&&r,b=this.props.variant!==Wf.AbsoluteScale&&!x&&2===e.chartData.length,C=this.props.variant!==Wf.AbsoluteScale&&!x&&1===e.chartData.length,S=function(){return _d(e.chartData[0].data?e.chartData[0].data:0,u)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(Ud,{direction:gd.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement(nh,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),b&&s.createElement("div",i({},vd(e.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},S()),!o&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+_d(h,u))),C&&s.createElement("div",i({className:this._classNames.ratioNumerator},vd(e.chartDataAccessibilityData,"text",!1)),S()))),s.createElement(Ud,{direction:gd.horizontal},s.createElement("div",{className:this._classNames.chartWrapper},s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},y))))},t.prototype._onBarFocus=function(e,t,n){var r=this;this.state.refArray.forEach((function(i){i.legendText===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._refCallback=function(e,t){this.state.refArray.push({legendText:t,refElement:e})},t.prototype._onHover=function(e){this.setState({activeLegend:e})},t.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLeave=function(){this.setState({activeLegend:""})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},t}(s.Component),Qf=E($f,(function(e){var t=e.className,n=e.width,r=e.barHeight,o=e.shouldHighlight,a=e.theme,s=e.href,l=e.variant,u=e.hideLabels;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},t],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:i(i({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:l===Wf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:l===Wf.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:s?"pointer":"default",stroke:a.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:Hn.medium,color:a.palette.neutralPrimary},placeHolderOnHover:{opacity:o?"":"0.1",cursor:"default",stroke:a.palette.white,strokeWidth:"2",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:l!==Wf.AbsoluteScale||u?0:40}}}));!function(e){e.show="visibility",e.hide="hidden"}(Gf||(Gf={}));var Jf,eg=he(),tg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._createLine=function(e,t,r,i,o){var a;void 0===r&&(r=0),void 0===i&&(i=0);var l=n._xAxisType===Kc.NumericAxis,u=n._getScales(r,i,l).xBarScale,c=n._createColors(),d=n.props.theme,h=n.props,p=h.data,f=h.lineLegendColor,g=void 0===f?d.palette.yellow:f,m=h.lineLegendText,v=[],_=[];p&&p.forEach((function(e,t){var n;e.lineData&&e.lineData.y&&v.push({x:e.x,y:e.lineData.y,useSecondaryYScale:null!==(n=e.lineData.useSecondaryYScale)&&void 0!==n&&n,point:e,index:t})}));var y=Wp().x((function(t){return l?e(t.x):u(t.x)+.5*u.bandwidth()})).y((function(e){return e.useSecondaryYScale&&o?o(e.y):t(e.y)})),x=!(!n._legendHighlighted(m)&&!n._noLegendHighlighted()),b=(null===(a=n.props.lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0;b>0&&_.push(s.createElement("path",{opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*b,stroke:d.palette.white})),_.push(s.createElement("path",{opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:g}));var C=v.map((function(r,i){var a;return s.createElement("circle",{key:i,cx:l?e(r.x):u(r.x)+.5*u.bandwidth(),cy:r.useSecondaryYScale&&o?o(r.y):t(r.y),onMouseOver:n._onBarHover.bind(n,r.point,c(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:g,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.activeXdataPoint===r.x?Gf.show:Gf.hide,onClick:null===(a=r.point.lineData)||void 0===a?void 0:a.onClick})}));return s.createElement(s.Fragment,null,_,C)},n._checkForLine=function(){return n.props.data.some((function(e){var t;return void 0!==(null===(t=null==e?void 0:e.lineData)||void 0===t?void 0:t.y)}))},n._getMargins=function(e){n.margins=e},n._renderContentForBothLineAndBars=function(e){var t=n._getCalloutContentForLineAndBar(e),r=t.YValueHover,o=t.hoverXValue,a=r.map((function(e,t){return s.createElement(Cd,i({key:t,Legend:e.legend},0===t&&{XValue:""+(o||e.data)},{color:e.color,YValue:e.data||e.y,culture:n.props.culture}))}));return s.createElement(s.Fragment,null,a)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return s.createElement(s.Fragment,null,s.createElement(Cd,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y),culture:n.props.culture}))},n._renderCallout=function(e){return e?n._isHavingLine?n._renderContentForBothLineAndBars(e):n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===Kc.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForLineAndBar=function(e){var t,r,i,o,a=[],s=n.props,l=s.theme,u=s.useSingleColor,c=void 0!==u&&u,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(t){return t.x===e.x}));return n._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&a.push({legend:p,color:g,y:null===(r=m[0].lineData)||void 0===r?void 0:r.y,data:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData,yAxisCalloutData:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color:c?n._createColors()(1):m[0].color?m[0].color:n._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:e.xAxisCalloutData||e.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){var i=n._getCalloutContentForLineAndBar(e),o=i.YValueHover,a=i.hoverXValue;n._refArray.forEach((function(i,s){i.index===e.legend&&t===s&&n.setState({refSelected:i.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.y,color:e.color||r,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))},n._getScales=function(e,t,r){if(r){var i=qi(n._points,(function(e){return e.x})),o=Xi(n._points,(function(e){return e.x}));return{xBarScale:Ca().domain(n._isRtl?[i,o]:[o,i]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:Ca().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:Pu().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:Ca().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props,o=r.theme,a=r.useSingleColor,l=n.props,u=l.lineLegendText,c=l.lineLegendColor,d=void 0===c?o.palette.yellow:c,h=[];if(e.forEach((function(e,t){var r=a?n._createColors()(1):e.color,i={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};h.push(i)})),n._isHavingLine&&u&&d){var p={title:u,color:d,action:function(){n._onLegendClick(u)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(u)},onMouseOutAction:function(){n._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement(Zh,i({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,r,i,o=e.xAxisCalloutData||e.x,a=e.legend,s=e.yAxisCalloutData||e.y,l=n.props.lineLegendText||"Line",u=(null===(t=e.lineData)||void 0===t?void 0:t.yAxisCalloutData)||(null===(r=e.lineData)||void 0===r?void 0:r.y);return(null===(i=e.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||o+". "+(a?a+", ":"")+s+"."+(void 0!==u?" "+l+", "+u+".":"")},n._getDomainMargins=function(e){if(n._xAxisType!==Kc.NumericAxis){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),o=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,t>=o?n._domainMargin+=(t-o)/2:r=t/(3*n._xAxisLabels.length-2),n._barWidth=r}return i(i({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:"",emptyChart:!1},n._isHavingLine=n._checkForLine(),n._calloutId=xe("callout"),n._tooltipId=xe("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?fd(n.props.data[0].x,!0):Kc.StringAxis,n._domainMargin=8,n}return r(t,e),t.prototype.componentDidMount=function(){var e=this.state.emptyChart||0===this._points.length||qi(this._points,(function(e){return e.y}))<=0&&!this._isHavingLine;this.state.emptyChart!==e&&this.setState({emptyChart:e})},t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max(qi(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=eg(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=i(i(i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,id:"toolTip"+this._calloutId,target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),vd(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:xe("_VBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(qp,i({},this.props,{points:this._points,chartType:jc.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:gd.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Kc.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(t){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars),e._isHavingLine&&s.createElement("g",null,e._createLine(t.xScale,t.yScale,t.containerHeight,t.containerWidth,t.yScaleSecondary)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark],this._isHavingLine=this._checkForLine()},t.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(t*i*this._yMax);return Ca().domain(r).range(this._colors)},t.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForLineAndBar(e),i=r.YValueHover,o=r.hoverXValue;this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,dataForHoverCard:e.y,calloutLegend:e.legend,color:e.color||t,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n){var r=this,i=this.props.useSingleColor,o=void 0!==i&&i,a=this._getScales(e,t,!0),l=a.xBarScale,u=a.yBarScale,c=this._createColors(),d=this._points.map((function(t,n){var i=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=eg(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var a=Math.max(u(t.y),0);if(a<1)return s.createElement(s.Fragment,{key:t.x}," ");var d=l(t.x),h=e-r.margins.bottom-u(t.y);return s.createElement("g",{key:t.x},s.createElement("rect",{x:d,className:r._classNames.opacityChangeOnHover,y:h,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:a,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,c(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,c(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:c(t.y)}),r._renderBarLabel(d,h,t.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=Wc(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&ld(p)}return d},t.prototype._createStringBars=function(e,t,n){var r=this,i=this._getScales(e,t,!1),o=i.xBarScale,a=i.yBarScale,l=this._createColors(),u=this._points.map((function(t,n){var i=Math.max(a(t.y),0);if(i<1)return s.createElement(s.Fragment,{key:t.x}," ");var u=o(t.x),c=e-r.margins.bottom-a(t.y);return s.createElement("g",{key:t.x,transform:"translate("+.5*(o.bandwidth()-r._barWidth)+", 0)"},s.createElement("rect",{x:u,y:c,width:r._barWidth,height:i,"aria-label":r._getAriaLabel(t),role:"img",ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,l(t.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,t,n,l(t.y)),fill:t.color?t.color:l(t.y)}),r._renderBarLabel(u,c,t.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var c=Wc(n).call(o);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:c,showTooltip:this.props.showXAxisLablesTooltip};c&&ld(d)}return u},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._renderBarLabel=function(e,t,n){return this.props.hideLabels||this._barWidth<16?null:s.createElement("text",{x:e+this._barWidth/2,y:t-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},_a(n<1e3?".2~":".1",n)(n))},t}(s.Component),ng=E(tg,(function(e){var t=e.shouldHighlight,n=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:i(i({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:n.palette.neutralPrimary}}})),rg=he();!function(e){e.show="visibility",e.hide="hidden"}(Jf||(Jf={}));var ig=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._toFocusWholeStack=function(e){var t=n.props.isCalloutForStack,r=void 0!==t&&t;return e?""===n.state.selectedLegend:r},n._getFormattedLineData=function(e){var t=[],n={};return e.forEach((function(e,n){e.lineData&&e.lineData.forEach((function(r){t.push(i(i({},r),{index:n,xItem:e}))}))})),t.forEach((function(e){n[e.legend]?n[e.legend].push(e):n[e.legend]=[e]})),n},n._getLineLegends=function(e){var t=n._lineObject,r=[];return Object.keys(t).forEach((function(e){r.push({title:e,color:t[e][0].color})})),r},n._createLines=function(e,t,r,o,a){var l,u=n._xAxisType===Kc.NumericAxis,c=n._getScales(r,o,u).xBarScale,d=n._getFormattedLineData(n.props.data),h=[],p=[],f=[],g=n.props.theme,m=(null===(l=n.props.lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0,v=u?0:c.bandwidth()/2;return Object.keys(d).forEach((function(r,o){for(var l=n._legendHighlighted(r)||n._noLegendHighlighted(),f=1;f<d[r].length;f++){var _=u?e(d[r][f-1].xItem.xAxisPoint):c(d[r][f-1].xItem.xAxisPoint),y=d[r][f-1].useSecondaryYScale&&d[r][f].useSecondaryYScale&&a,x=y?a(d[r][f-1].y):t(d[r][f-1].y),b=u?e(d[r][f].xItem.xAxisPoint):c(d[r][f].xItem.xAxisPoint),C=y?a(d[r][f].y):t(d[r][f].y);m>0&&p.push(s.createElement("line",{key:o+"-"+f+"-BorderLine",x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3+2*m,fill:"transparent",strokeLinecap:"round",stroke:g.palette.white,transform:"translate("+v+", 0)"})),h.push(s.createElement("line",i({key:o+"-"+f+"-line",x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:d[r][f].color,transform:"translate("+v+", 0)"},n.state.selectedLegend===r&&{onMouseOver:n._lineHover.bind(n,d[r][f-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(d).forEach((function(r,o){d[r].forEach((function(l,d){f.push(s.createElement("circle",i({key:o+"-"+d+"-dot",cx:u?e(l.xItem.xAxisPoint):c(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&a?a(l.y):t(l.y),onMouseOver:n.state.selectedLegend===r?n._lineHover.bind(n,l):n._onStackHover.bind(n,l.xItem)},n.state.selectedLegend===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).radius,stroke:l.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).visibility,transform:"translate("+v+", 0)"})))}))})),s.createElement(s.Fragment,null,p,h,f)},n._getCircleVisibilityAndRadius=function(e,t){var r=n.state,i=r.selectedLegend,o=r.activeXAxisDataPoint;return""!==i?e===o&&i===t?{visibility:Jf.show,radius:8}:i===t?{visibility:Jf.show,radius:.3}:{visibility:Jf.hide,radius:0}:{visibility:o===e?Jf.show:Jf.hide,radius:8}},n._getMargins=function(e){n.margins=e},n._getCustomizedCallout=function(){var e=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!e?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(e,t){t.persist(),n.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:""+e.xItem.xAxisPoint,yCalloutValue:""+(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(e,t,r,o){var a=n.props,l=a.barCornerRadius,u=void 0===l?0:l,c=a.barMinimumHeight,d=void 0===c?0:c,h=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(o,a){var l=r-n.margins.bottom,c=e((n._xAxisType,Kc.NumericAxis,o.xAxisPoint)),h=n._xAxisType===Kc.NumericAxis?0:(e.bandwidth()-n._barWidth)/2,f=0,g=o.chartData.filter((function(e){return e.data>0}));if(g.length){var m=n._getBarGapAndScale(g,t),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(e,t){var r=e.color?e.color:n._colors[t],m={},y=!(!n._legendHighlighted(e.legend)&&!n._noLegendHighlighted());n._classNames=rg(n.props.styles,{theme:n.props.theme,shouldHighlight:y,href:n.props.href});var x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(o,e),onMouseOver:n._onRectHover.bind(n,o.xAxisPoint,e,r),onMouseMove:n._onRectHover.bind(n,o.xAxisPoint,e,r),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,e,o.xAxisPoint,r,m),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,e),role:"img"},b=_*e.data;return b<d&&(b=d),l=l-b-(t?v:0),f+=e.data,u&&b>u&&t===g.length-1?s.createElement("path",i({key:t+a+""+p,className:n._classNames.opacityChangeOnHover,d:"\n M "+c+" "+(l+u)+"\n a "+u+" "+u+" 0 0 1 "+u+" "+-u+"\n h "+(n._barWidth-2*u)+"\n a "+u+" "+u+" 0 0 1 "+u+" "+u+"\n v "+(b-u)+"\n h "+-n._barWidth+"\n z\n ",fill:r,ref:function(e){return m.refElement=e},transform:"translate("+h+", 0)"},x)):b<1?s.createElement(s.Fragment,{key:t+a}," "):s.createElement("rect",i({key:t+a,className:n._classNames.opacityChangeOnHover,x:c,y:l,width:n._barWidth,height:b,fill:r,ref:function(e){return m.refElement=e}},x,{transform:"translate("+h+", 0)"}))})),x={},b=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(o),onMouseOver:n._onStackHover.bind(n,o),onMouseMove:n._onStackHover.bind(n,o),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,o,x),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,o),role:"img"};return s.createElement("g",{key:a+""+p},s.createElement("g",i({id:a+"-singleBar",ref:function(e){return x.refElement=e}},b),y),!n.props.hideLabels&&n._barWidth>=16&&s.createElement("text",{x:c+n._barWidth/2,y:l-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-label":"Total: "+f,role:"img",transform:"translate("+h+", 0)"},_a(f<1e3?".2~":".1",f)(f)))}}}));if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var g=Wc(o).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var m={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:g};g&&ld(m)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._yMax,o=Ca().domain([0,i]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var a=qi(n._dataset,(function(e){return e.x})),s=Xi(n._dataset,(function(e){return e.x}));return{xBarScale:Ca().domain(n._isRtl?[a,s]:[s,a]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:o}}return{xBarScale:Pu().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:o}},n._createNumericBars=function(e,t,r){var i=n._getScales(e,t,!0),o=i.xBarScale,a=i.yBarScale;return n._createBar(o,a,e,r)},n._createStringBars=function(e,t,r){var i=n._getScales(e,t,!1),o=i.xBarScale,a=i.yBarScale;return n._createBar(o,a,e,r)},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===Kc.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e,t){var n,r,i;if(!t){var o=e.xAxisCalloutData||e.xAxisPoint,a=e.chartData.map((function(e){return e.legend+", "+(e.yAxisCalloutData||e.data)+"."})).join(" "),s=null===(n=e.lineData)||void 0===n?void 0:n.map((function(e){return e.legend+", "+(e.yAxisCalloutData||e.data||e.y)+"."})).join(" ");return(null===(r=e.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||o+". "+a+(s?" "+s:"")}var l=e.xAxisCalloutData||t.xAxisCalloutData||e.xAxisPoint,u=t.legend,c=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||l+". "+u+", "+c+"."},n._getDomainMargins=function(e){if(n._xAxisType!==Kc.NumericAxis){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),o=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,t>=o?n._domainMargin+=(t-o)/2:r=t/(3*n._xAxisLabels.length-2),n._barWidth=r}return i(i({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=xe("callout"),n._tooltipId=xe("VSBCTooltipId_"),n._adjustProps(),n._dataset=n._createDataSetLayer(),n._createLegendsForLine=tr((function(e){return n._getLineLegends(e)})),n._domainMargin=8,n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},t.prototype.render=function(){var e=this;this._adjustProps();var t=this.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),n=this._toFocusWholeStack(t),r=this.props.isCalloutForStack,o=void 0!==r&&r;this._dataset=this._createDataSetLayer();var a=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=rg(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,id:"toolTip"+this._calloutId,target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),vd(this.state.callOutAccessibilityData)),u={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(qp,i({},this.props,{points:this._dataset,chartType:jc.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:u,legendBars:a,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:o||t?gd.horizontal:gd.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Kc.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(n){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars),s.createElement("g",null,t&&e._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.red,e.black],this._xAxisType=fd(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},t.prototype._createDataSetLayer=function(){var e=[],t=this._points.map((function(t){var n=0;return t.chartData.forEach((function(e){n+=e.data})),e.push(t.xAxisPoint),{x:t.xAxisPoint,y:n}}));return this._xAxisLabels=e,t},t.prototype._renderCallout=function(e){return e?s.createElement(Cd,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._getLegendData=function(e,t,n){var r=this;if(this.props.hideLegend)return s.createElement(s.Fragment,null);var o=[t.blueLight,t.blue,t.blueMid,t.red,t.black],a=[],l=this.props.allowHoverOnLegend,u=void 0===l||l;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:u?function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)}:void 0,onMouseOutAction:u?function(){return r._onLegendLeave()}:void 0};a.push(n)}}))}));var c=[];n&&n.length>0&&n.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(e.title)},hoverAction:u?function(){r._handleChartMouseLeave(),r._onLegendHover(e.title)}:void 0,onMouseOutAction:u?function(){return r._onLegendLeave()}:void 0};c.push(t)}));var d=c.concat(a);return s.createElement(Zh,i({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._onRectHover=function(e,t,n,r){r.persist(),this._onRectFocusHover(e,t,n,r)},t.prototype._onRectFocusHover=function(e,t,n,r){this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:n,xCalloutValue:t.xAxisCalloutData?t.xAxisCalloutData:e,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},t.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},t.prototype._onStackHoverFocus=function(e,t){var n=e.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:t,isCalloutVisible:!0,YValueHover:r?a(a([],n.sort((function(e,t){return e.data<t.data?1:-1}))),e.chartData.slice().reverse()):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},t.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},t.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},t.prototype._onClick=function(e,t){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,t,e),this.props.href&&(window.location.href=this.props.href)},t.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,i=void 0===r?0:r,o=e.reduce((function(e,t){return e+t.data}),0),a=null!=n?n:t(o),s=i&&e.length-1,l=s&&Math.max(1,Math.min(i,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/o}},t}(s.Component),og=E(ig,(function(e){var t=e.shouldHighlight,n=e.href,r=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1",cursor:n?"pointer":"default"},tooltip:i(i({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:r.palette.neutralPrimary}}})),ag=he(),sg=.1/.9,lg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._getGraphData=function(e,t,r,i,o){var a=n._createX0Scale(i),s=n._createX1Scale(a),l=[];n._datasetForBars.forEach((function(e){l.push(n._buildGraph(e,a,s,r,o))})),n._groupedVerticalBarGraph=l},n._getMargins=function(e){return n.margins=e},n._createDataSetOfGVBC=function(e){var t=[],r=e.map((function(e){return e.name}));e[0].series.forEach((function(e){t.push(e.key)}));var i=n._createDataset(e);return{keys:t,xAxisLabels:r,datasetForBars:i}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getOpacity=function(e){return n._legendHighlighted(e)||n._noLegendHighlighted()?"":"0.1"},n._onBarHover=function(e,t,r){r.persist(),n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({refSelected:r,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t,r){n._refArray.forEach((function(i,o){i.index===e.legend&&r===o&&n.setState({refSelected:i.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,i,o){var a=[],l=[],u=Ca().domain([0,n._yMax]).range([0,i-n.margins.bottom-n.margins.top]),c=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(c.forEach((function(t,o){var d=e.indexNum*c.length+o,h=e[t],p=r(t),f=Math.max(i-n.margins.bottom-u(h.data),0);h.data&&a.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:e.indexNum+"-"+o,height:Math.max(u(h.data),0),width:n._barWidth,x:p,y:f,"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(e){n._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,e),onMouseMove:n._onBarHover.bind(n,h,e),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,e,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-label":n._getAriaLabel(h,e.xAxisPoint),role:"img"})),h.data&&!n.props.hideLabels&&n._barWidth>=16&&l.push(s.createElement("text",{x:p+n._barWidth/2,y:f-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-hidden":!0},_a(h.data<1e3?".2~":".1",h.data)(h.data)))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=Wc(o).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var h={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:d};d&&ld(h)}return s.createElement("g",{key:e.indexNum,transform:"translate("+t(e.xAxisPoint)+", 0)"},a,l)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var o={},a={},s=[];e.series.forEach((function(e){o[e.key]=e.data,a[e.key]=i({},e),s.push(e)})),a.xAxisPoint=e.name,a.indexNum=n,a.groupSeries=s,a.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,t.push(a),r.push(o)})),n._dataset=r,t},n._createX0Scale=function(e){return Pu().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right-n._domainMargin,n.margins.left+n._domainMargin]:[n.margins.left+n._domainMargin,e-n.margins.right-n._domainMargin]).paddingInner(2/(2+n._keys.length+(n._keys.length-1)*sg))},n._createX1Scale=function(e){var t=e.bandwidth();return Pu().domain(n._keys).range(n._isRtl?[t,0]:[0,t]).paddingInner(.1)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=e,o=[t.blueLight,t.blue,t.blueMid,t.red,t.black],a=[];return r.forEach((function(e){e.series.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};a.push(r)}}))})),s.createElement(Zh,i({legends:a,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e,t){var n,r=e.xAxisCalloutData||t,i=e.legend,o=e.yAxisCalloutData||e.data;return(null===(n=e.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||r+". "+i+", "+o+"."},n._getDomainMargins=function(e){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barwidth||16,24),o=n._keys.length*r+(n._keys.length-1)*sg*r,a=n._xAxisLabels.length*o+2*(n._xAxisLabels.length-1)*r;return n._domainMargin=8,t>=a?n._domainMargin+=(t-a)/2:r=(o=t/(n._xAxisLabels.length+(n._xAxisLabels.length-1)*(2/(n._keys.length+(n._keys.length-1)*sg))))/(n._keys.length+(n._keys.length-1)*sg),n._barWidth=r,i(i({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n._createSet=tr((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},n._refArray=[],n._calloutId=xe("callout"),n._tooltipId=xe("GVBCTooltipId_"),n._domainMargin=8,n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=this._createSet(t),r=n.keys,o=n.xAxisLabels,a=n.datasetForBars;this._keys=r,this._xAxisLabels=o,this._datasetForBars=a,this._xAxisType=fd(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),u=qi(this._dataset,(function(t){return qi(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(u,this.props.yMaxValue||0),this._classNames=ag(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=i(i(i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,id:"toolTip"+this._calloutId,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),vd(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(qp,i({},this.props,{points:this._datasetForBars,chartType:jc.GroupedVerticalBarChart,calloutProps:c,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:gd.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins,xAxisInnerPadding:2/(2+this._keys.length+(this._keys.length-1)*sg),xAxisOuterPadding:0,children:function(){return s.createElement("g",null,e._groupedVerticalBarGraph)}}))},t.prototype._refCallback=function(e,t,n){this._refArray[n]={index:t,refElement:e}},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t}(s.Component),ug=E(lg,(function(e){var t=e.theme;return{opacityChangeOnHover:{cursor:e.href?"pointer":"default"},tooltip:i(i({},t.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:t.palette.neutralPrimary}}})),cg=he(),dg=function(e){function t(t){var n=e.call(this,t)||this;n._rectRefArray={},n._getXandY=function(){var e="",t="";return n.props.data.forEach((function(n){if(n.data&&n.data.length>0)return e=n.data[0].x,t=n.data[0].y,{x:e,y:t}})),{x:e,y:t}},n._getOpacity=function(e){return n._legendHighlighted(e)||n._noLegendHighlighted()?"1":"0.1"},n._rectRefCallback=function(e,t,r){n._rectRefArray[t]={data:r,refElement:e}},n._onRectFocus=function(e,t){n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},n._onRectMouseOver=function(e,t,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var e=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(t,r){n._dataSet[t].forEach((function(t,i){var o=""+r+i,a=s.createElement("g",{key:o,role:"img","aria-label":n._getAriaLabel(t),"data-is-focusable":!0,fillOpacity:n._getOpacity(t.legend),transform:"translate("+n._xAxisScale(t.x)+", "+n._yAxisScale(t.y)+")",ref:function(e){n._rectRefCallback(e,o,t)},onFocus:n._onRectFocus.bind(n,o,t),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,o,t),onMouseOut:n._onRectBlurOrMouseOut},s.createElement("rect",{fill:n._colorScale(t.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:t.onClick}),s.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate("+n._xAxisScale.bandwidth()/2+", "+n._yAxisScale.bandwidth()/2+")"},_d(t.rectText,n.props.culture)));e.push(a)}))})),e},n._onLegendHover=function(e){n.setState({activeLegend:e})},n._onLegendLeave=function(){n.setState({activeLegend:""})},n._onLegendClick=function(e){n.state.selectedLegend===e?n.setState({selectedLegend:""}):n.setState({selectedLegend:e})},n._createLegendBars=function(){var e=n.props,t=e.data,r=e.legendProps,o=[];return t.forEach((function(e){var t={title:e.legend,color:n._colorScale(e.value),action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};o.push(t)})),s.createElement(Zh,i({},r,{legends:o}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return Ca().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===Kc.DateAxis?""+e.getTime():n._xAxisType===Kc.StringAxis?e:n._xAxisType===Kc.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===Gc.DateAxis?""+e.getTime():n._yAxisType===Gc.StringAxis?e:n._yAxisType===Gc.NumericAxis?""+e:""},n._createNewDataSet=function(e,t,r,o,s){var l=[];e.forEach((function(e){e.data.forEach((function(t){l.push(i(i({},t),{legend:e.legend}))}))}));var u={},c={},d={};return l.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",c[r]="1",u[r]?u[r]=a(a([],u[r]),[e]):u[r]=[e]})),Object.keys(u).forEach((function(e){u[e].sort((function(e,t){return n._xAxisType===Kc.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===Kc.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===Kc.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===Kc.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===Kc.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===Kc.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===Gc.DateAxis&&(e.y=n._getStringFormattedDate(e.y,o)),n._yAxisType===Gc.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===Gc.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(u).forEach((function(e){n._yAxisType===Gc.DateAxis?u[n._getStringFormattedDate(e,o)]=u[e]:n._yAxisType===Gc.NumericAxis?u[""+n._getStringFormattedNumber(e,s)]=u[e]:u[n._getFormattedLabelForYAxisDataPoint(e)]=u[e]})),{dataSet:u,yAxisPoints:n._getYAxisDataPoints(c),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===Kc.DateAxis||n._xAxisType===Kc.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===Kc.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===Kc.NumericAxis?n._getStringFormattedNumber(e,n.props.xAxisNumberFormatString):n._getFormattedLabelForXAxisDataPoint(e)}))},n._getYAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._yAxisType===Gc.DateAxis||n._yAxisType===Gc.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===Gc.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===Gc.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),al(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return va(t||".2~s")(+e)},n._getFormattedLabelForXAxisDataPoint=function(e){var t=n.props.xAxisStringFormatter;return t?t(e):e},n._getFormattedLabelForYAxisDataPoint=function(e){var t=n.props.yAxisStringFormatter;return t?t(e):e},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.x,r=e.y,i=e.legend,o=e.ratio?e.ratio[0]+"/"+e.ratio[1]:e.rectText||e.value,a=e.descriptionMessage;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||n+", "+r+". "+i+", "+o+"."+(a?" "+a+".":"")};var r=n._getXandY(),o=r.x,l=r.y;return n._xAxisType=fd(o,!0),n._yAxisType=fd(l,!1),n._createSet=tr((function(e,t,r,i,o){return n._createNewDataSet(e,t,r,i,o)})),n.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.xAxisDateFormatString,o=t.xAxisNumberFormatString,a=t.yAxisDateFormatString,l=t.yAxisNumberFormatString;this._colorScale=this._getColorScale();var u=this._createSet(n,r,o,a,l),c=u.dataSet,d=u.xAxisPoints,h=u.yAxisPoints;this._dataSet=c,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=cg(this.props.styles,{theme:this.props.theme});var p=i(i(i(i({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:Ee.topAutoEdge,onDismiss:this._closeCallout}),vd(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=i(i({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return s.createElement(qp,i({},this.props,{points:n,chartType:jc.HeatMapChart,xAxisType:Kc.StringAxis,yAxisType:Gc.StringAxis,calloutProps:p,chartHoverProps:f,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:gd.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(s.Component),hg=E(dg,(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white,fontWeight:Bn.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function pg(e,t){return t-1-e.height}function fg(e,t){return e.sourceLinks.length?e.depth:t-1}function gg(e){return function(){return e}}function mg(e,t){return _g(e.source,t.source)||e.index-t.index}function vg(e,t){return _g(e.target,t.target)||e.index-t.index}function _g(e,t){return e.y0-t.y0}function yg(e){return e.value}function xg(e){return e.index}function bg(e){return e.nodes}function Cg(e){return e.links}function Sg(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Eg({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(const e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}class Lg{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function kg(e){return new Lg(e,!0)}var Ag=he(),wg="#757575",Dg=[{fillColor:"#00758F",borderColor:"#002E39"},{fillColor:"#77004D",borderColor:"#43002C"},{fillColor:"#4F6BED",borderColor:"#3B52B4"},{fillColor:"#937600",borderColor:"#6D5700"},{fillColor:"#286EA8",borderColor:"#00457E"},{fillColor:"#A43FB1",borderColor:"#7C158A"},{fillColor:"#CC3595",borderColor:"#7F215D"},{fillColor:"#0E7878",borderColor:"#004E4E"},{fillColor:"#8764B8",borderColor:"#4B3867"},{fillColor:"#9C663F",borderColor:"#6D4123"}],Tg="#323130",Mg="#FFFFFF",Pg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.color:n.state.selectedState&&!n.state.selectedNode?e.color:void 0:e.color},n._fillNodeBorder=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.borderColor:(n.state.selectedState&&n.state.selectedNodes.has(e.index),e.borderColor):e.borderColor},n.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},n._calloutId=xe("callout"),n._linkId=xe("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=tr((function(e){return n._normalizeSankeyData(e)})),n}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentDidUpdate=function(e){e.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.render=function(){var e=this,t=this.props,n=t.theme,r=t.className,o=t.styles,a=t.pathColor;this._classNames=Ag(o,{theme:n,width:this.state.containerWidth,height:this.state.containerHeight,pathColor:a,className:r});var l,u=this._preRenderLayout(),c=u.height,d=u.width;this._normalizeData(this.props.data.SankeyChartData),l=this._adjustPadding(this._sankey,c-6,this._nodesInColumn),this._sankey.nodePadding(l),this._sankey(this.props.data.SankeyChartData),this._populateNodeActualValue(this.props.data.SankeyChartData),this._assignNodeColors();var h=this._createNodes(d),p=this._createLinks(),f={isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,id:"toolTip"+this._calloutId,target:this.state.refSelected,color:this.state.color,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,descriptionMessage:this.state.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:this._classNames.calloutContentRoot,preventDismissOnLostFocus:!0};return s.createElement("div",{className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this._onCloseCallout},s.createElement(Ud,{direction:gd.bidirectional,isCircularNavigation:!0,handleTabKey:1},s.createElement("svg",{width:d,height:c,id:xe("sankeyChart")},s.createElement("g",{className:this._classNames.links,strokeOpacity:1},p),s.createElement("g",{className:this._classNames.nodes},h),f.isCalloutVisible&&s.createElement(Ei,i({},f),s.createElement(Cd,{XValue:f.XValue,YValue:f.YValue,color:f.color,descriptionMessage:f.descriptionMessage?f.descriptionMessage:""})))))},t.prototype._preRenderLayout=function(){var e=this.state.containerWidth-this._margins.right,t=this.state.containerHeight-this._margins.bottom>0?this.state.containerHeight-this._margins.bottom:0;return this._sankey=function(){let e,t,n,r=0,i=0,o=1,a=1,s=24,l=8,u=xg,c=fg,d=bg,h=Cg,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:e,links:t}){for(const[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];const r=new Map(e.map(((t,n)=>[u(t,n,e),t])));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:i}=n;"object"!=typeof t&&(t=n.source=Sg(r,t)),"object"!=typeof i&&(i=n.target=Sg(r,i)),t.sourceLinks.push(n),i.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}(f),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(ji(t.sourceLinks,yg),ji(t.targetLinks,yg)):t.fixedValue}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.depth=i;for(const{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.height=i;for(const{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const u=function({nodes:e}){const n=qi(e,(e=>e.depth))+1,i=(o-r-s)/(n-1),a=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(c.call(null,t,n))));t.layer=e,t.x0=r+e*i,t.x1=t.x0+s,a[e]?a[e].push(t):a[e]=[t]}if(t)for(const e of a)e.sort(t);return a}(n);e=Math.min(l,(a-i)/(qi(u,(e=>e.length))-1)),function(t){const n=Xi(t,(t=>(a-i-(t.length-1)*e)/ji(t,yg)));for(const r of t){let t=i;for(const i of r){i.y0=t,i.y1=t+i.value*n,t=i.y1+e;for(const e of i.sourceLinks)e.width=e.value*n}t=(a-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}b(r)}}(u);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);m(u,t,n),g(u,t,n)}}(f),Eg(f),f}function g(e,n,r){for(let i=1,o=e.length;i<o;++i){const o=e[i];for(const e of o){let t=0,r=0;for(const{source:n,value:i}of e.targetLinks){let o=i*(e.layer-n.layer);t+=C(n,e)*o,r+=o}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,x(e)}void 0===t&&o.sort(_g),v(o,r)}}function m(e,n,r){for(let i=e.length-2;i>=0;--i){const o=e[i];for(const e of o){let t=0,r=0;for(const{target:n,value:i}of e.sourceLinks){let o=i*(n.layer-e.layer);t+=S(e,n)*o,r+=o}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,x(e)}void 0===t&&o.sort(_g),v(o,r)}}function v(t,n){const r=t.length>>1,o=t[r];y(t,o.y0-e,r-1,n),_(t,o.y1+e,r+1,n),y(t,a,t.length-1,n),_(t,i,0,n)}function _(t,n,r,i){for(;r<t.length;++r){const o=t[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+e}}function y(t,n,r,i){for(;r>=0;--r){const o=t[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-e}}function x({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(vg);for(const{target:{targetLinks:t}}of e)t.sort(mg)}}function b(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(vg),n.sort(mg)}function C(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:i,width:o}of t.sourceLinks){if(i===n)break;r+=o+e}for(const{source:e,width:i}of n.targetLinks){if(e===t)break;r-=i}return r}function S(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:i,width:o}of n.targetLinks){if(i===t)break;r+=o+e}for(const{target:e,width:i}of t.sourceLinks){if(e===n)break;r-=i}return r}return f.update=function(e){return Eg(e),e},f.nodeId=function(e){return arguments.length?(u="function"==typeof e?e:gg(e),f):u},f.nodeAlign=function(e){return arguments.length?(c="function"==typeof e?e:gg(e),f):c},f.nodeSort=function(e){return arguments.length?(t=e,f):t},f.nodeWidth=function(e){return arguments.length?(s=+e,f):s},f.nodePadding=function(t){return arguments.length?(l=e=+t,f):l},f.nodes=function(e){return arguments.length?(d="function"==typeof e?e:gg(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:gg(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=i=0,o=+e[0],a=+e[1],f):[o-r,a-i]},f.extent=function(e){return arguments.length?(r=+e[0][0],o=+e[1][0],i=+e[0][1],a=+e[1][1],f):[[r,i],[o,a]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f}().nodeWidth(124).extent([[this._margins.left,this._margins.top],[e-1,t-6]]).nodeAlign(this._isRtl?pg:fg),{height:t,width:e}},t.prototype._populateNodeActualValue=function(e){e.links.forEach((function(e){e.unnormalizedValue||(e.unnormalizedValue=e.value)})),e.nodes.forEach((function(e){e.actualValue=Math.max(ji(e.sourceLinks,(function(e){return e.unnormalizedValue})),ji(e.targetLinks,(function(e){return e.unnormalizedValue})))}))},t.prototype._normalizeSankeyData=function(e){this._nodesInColumn=this._populateNodeInColumns(e,this._sankey),this._adjustOnePercentHeightNodes(this._nodesInColumn)},t.prototype._populateNodeInColumns=function(e,t){t(e);var n={};return e.nodes.forEach((function(e){var t=e.layer;n[t]?n[t].push(e):n[t]=[e]})),n},t.prototype._adjustOnePercentHeightNodes=function(e){var t=this;Object.values(e).map((function(e){return ji(e,(function(e){return e.value}))})).forEach((function(n,r){var i=0;e[r].forEach((function(e){var t=e.value/n*100;e.actualValue=e.value,t<1?(e.value=.01*n,i+=1):i+=t}));var o=0!==i?i/100:1;o>1&&e[r].forEach((function(e){e.value=e.value/o,t._changeColumnValue(e,e.actualValue,e.value)}))}))},t.prototype._changeColumnValue=function(e,t,n){e.sourceLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r})),e.targetLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r}))},t.prototype._adjustPadding=function(e,t,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(e){var n=.3*t;n<t-ji(e,(function(e){return e.y1-e.y0}))&&(r=Math.min(r,n/(e.length-1)))})),r},t.prototype._createLinks=function(){var e=this,t=[];return this.props.data.SankeyChartData&&this.props.data.SankeyChartData.links.forEach((function(n,r){var i,o=[{x:(i=n).source.x1,y0:i.y0+i.width/2,y1:i.y0-i.width/2},{x:i.target.x0,y0:i.y1+i.width/2,y1:i.y1-i.width/2}],a=Ef().x((function(e){return e.x})).y0((function(e){return e.y0})).y1((function(e){return e.y1})).curve(kg),l="url(#gradient-"+e._linkId+"-"+r+")",u=s.createElement("g",{key:e._linkId+"-"+r},s.createElement("defs",null,s.createElement("linearGradient",{id:"gradient-"+e._linkId+"-"+r,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},s.createElement("stop",{offset:"0",stopColor:n.source.color}),s.createElement("stop",{offset:"100%",stopColor:n.target.color}))),s.createElement("path",{d:a(o),id:xe("link"),fill:e._fillStreamColors(n,l),stroke:e._fillStreamBorder(n,l),strokeWidth:"2",strokeOpacity:e._getOpacityStreamBorder(n),onMouseOver:e._onStreamHover.bind(e,n),onMouseOut:function(){e._onStreamLeave(n)},onFocus:e._onFocusLink.bind(e,n),onBlur:e._onBlur,fillOpacity:e._getOpacityStream(n),"data-is-focusable":!0,"aria-label":"link from"+n.source.name+"to"+n.target.name+"with weight"+n.unnormalizedValue,role:"img"}));t.push(u)})),t},t.prototype._createNodes=function(e){var t=this,n=[];if(this.props.data.SankeyChartData)return this.props.data.SankeyChartData.nodes.forEach((function(e,r){var i=e.y1-e.y0>0?e.y1-e.y0:0,o=8,a=0;if(i<36){o+=6;var l=Wc(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);l.text(e.actualValue),null!==l.node()&&(o+=a=l.node().getComputedTextLength()),l.text(null),qc(".tempText").remove()}var u=t._truncateText(e.name,116,o),c="..."===u.slice(-3),d=xe("tooltip"),h=Wc("body").append("div").attr("id",d).attr("class",t._classNames.toolTip).style("opacity",0),p=xe("nodeBar"),f=s.createElement("g",{key:r,id:xe("nodeGElement")},s.createElement("rect",{x:e.x0,y:e.y0,height:i,width:e.x1-e.x0,fill:t._fillNodeColors(e),id:p,onMouseOver:t._onHover.bind(t,e),onMouseOut:function(){t._onLeave(e)},onFocus:t._onCloseCallout.bind(t),stroke:t._fillNodeBorder(e),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node"+e.name+"with weight"+e.actualValue,role:"img"}),e.y1-e.y0>24&&s.createElement("g",{className:t._classNames.nodeTextContainer},s.createElement("g",{className:"nodeName"},s.createElement("text",{id:p+"-name",x:e.x0,y:e.y0,dy:"1.2em",dx:"0.4em",textAnchor:t._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?Mg:Tg,fontSize:10,onMouseOver:t._showTooltip.bind(t,e.name,c,h),onMouseOut:t._hideTooltip.bind(t,h)},u)),s.createElement("text",{x:i>36?e.x0:e.x1-a-8,y:e.y0,dy:i>36?"2em":"1em",dx:i>36?"0.4em":"0em",textAnchor:t._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?Mg:Tg,fontSize:14},e.actualValue)));n.push(f)})),n},t.prototype._onLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},t.prototype._onHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinks(e),r=this._getSelectedNodes(n);r.push(e),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(n).map((function(e){return e.index}))),selectedNode:e,refSelected:t,isCalloutVisible:e.y1-e.y0<24,color:e.color,xCalloutValue:e.name,yCalloutValue:e.actualValue})}},t.prototype._onStreamHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinksforStreamHover(e),r=n.selectedLinks,i=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(i).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(r).map((function(e){return e.index}))),refSelected:t,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.unnormalizedValue.toString(),descriptionMessage:"from "+e.source.name})}},t.prototype._onStreamLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},t.prototype._onFocusLink=function(e,t){t.persist(),this._onCloseCallout(),this.setState({refSelected:t.currentTarget,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.source.actualValue,descriptionMessage:"from "+e.source.name})},t.prototype._assignNodeColors=function(){var e,t;this.props.colorsForNodes&&this.props.borderColorsForNodes?(e=this.props.colorsForNodes,t=this.props.borderColorsForNodes):(e=Dg.map((function(e){return e.fillColor})),t=Dg.map((function(e){return e.borderColor})));var n=0;this.props.data.SankeyChartData.nodes.forEach((function(r){r.color||r.borderColor?r.color&&!r.borderColor?r.borderColor="#757575":r.borderColor&&!r.color&&(r.color="#F5F5F5"):(r.color=e[n],r.borderColor=t[n]),n=(n+1)%e.length}))},t.prototype._fillStreamColors=function(e,t){return this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.color:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:void 0},t.prototype._fillStreamBorder=function(e,t){return this.state.selectedState?this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.borderColor:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:wg:wg},t.prototype._getSelectedNodes=function(e){var t=[];return e.forEach((function(e){t.push(e.target),-1===t.indexOf(e.source)&&t.push(e.source)})),t},t.prototype._getSelectedLinks=function(e){var t=new Array,n=new Set;for(e.sourceLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;)(r=t.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(e){n.add(e),t.push(e)}));for(e.targetLinks&&e.targetLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;){var r;(r=t.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(e){n.add(e),t.push(e)}))}return n},t.prototype._getSelectedLinksforStreamHover=function(e){var t=new Array,n=new Set,r=new Set;for(t.push(e.source),n.add(e);t.length>0;){var i=t.shift();r.add(i),i.targetLinks&&i.targetLinks.length>0&&i.targetLinks.forEach((function(e){t.push(e.source),n.add(e)}))}for(t.push(e.target);t.length>0;)i=t.shift(),r.add(i),i.sourceLinks&&i.sourceLinks.length>0&&i.sourceLinks.forEach((function(e){t.push(e.target),n.add(e)}));return{selectedLinks:n,selectedNodes:r}},t.prototype._getOpacityStream=function(e){if(this.state.selectedState){if(!this.state.selectedLinks.has(e.index))return 1;if(this.state.selectedState&&this.state.selectedLinks.has(e.index)&&!this.state.selectedNode)return.3}return 1},t.prototype._getOpacityStreamBorder=function(e){return!this.state.selectedState||this.state.selectedLinks.has(e.index)||this.state.selectedNode?1:.5},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t=e.props.parentRef?e.props.parentRef:e.chartContainer,i=t.getBoundingClientRect().width,o=t.getBoundingClientRect().height;(n!==i||r!==o)&&e.setState({containerWidth:i,containerHeight:o})}))},t.prototype._truncateText=function(e,t,n){var r=t-n,i=0,o=Wc(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(o.text(e),null!==o.node()&&o.node().getComputedTextLength()<=r)return e;o.text(null),o.text("..."),null!==o.node()&&(i=o.node().getComputedTextLength()),o.text(null);for(var a="",s=0;s<e.length;s++)if(a+=e[s],o.text(a),null!==o.node()&&o.node().getComputedTextLength()>=r-i){a=a.slice(0,-1),a+="...";break}return o.text(null),qc(".tempText").remove(),a},t.prototype._showTooltip=function(e,t,n,r){t&&(n.style("opacity",.9),n.html(e).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},t.prototype._hideTooltip=function(e){e.style("opacity",0)},t}(s.Component),Fg=E(Pg,(function(e){var t,n,r,o=e.className,a=e.theme,s=e.pathColor,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},o],links:{stroke:s||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(t={},t[qn]={fill:"#000000"},t)},nodes:{fill:"#F5F5F5",selectors:(n={},n[qn]={fill:"#000000"},n)},toolTip:i(i({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(r={},r[qn]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function Ng(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Vg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Og)):void 0===t&&(t=Ig);for(var n,r,i,o,a,s=new Rg(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new Rg(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Bg)}function Ig(e){return e.children}function Og(e){return Array.isArray(e)?e[1]:null}function Hg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Bg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Rg(e){this.data=e,this.depth=this.height=0,this.parent=null}function Wg(e,t){return e.parent===t.parent?1:2}function zg(e){var t=e.children;return t?t[0]:e.t}function Yg(e){var t=e.children;return t?t[t.length-1]:e.t}function Ug(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function qg(e,t,n){return e.a.parent===t.parent?e.a:n}function Xg(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Rg.prototype=Vg.prototype={constructor:Rg,count:function(){return this.eachAfter(Ng)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Vg(this).eachBefore(Hg)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}},Xg.prototype=Object.create(Rg.prototype);var jg,Kg,Gg=he(),Zg=function(e){function t(t,n,r,i,o,a){void 0===i&&(i=[]),void 0===o&&(o=[]);var s=e.call(this,t,r,i,o)||this;return s.composition=n,s._treeTraversal=a,s}return r(t,e),t.prototype.createTree=function(e,t){var n,r,i,o,a,s,l=(e=e<65?65:e>90?90:e)||75,u=Vg(this.treeData,(function(e){return e.children})),c=(null==u?void 0:u.height)+1;(function(){var e=Wg,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,a=new Xg(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new Xg(r[i],i)),n.parent=t;return(a.parent=new Xg(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var u=i,c=i,d=i;i.eachBefore((function(e){e.x<u.x&&(u=e),e.x>c.x&&(c=e),e.depth>d.depth&&(d=e)}));var h=u===c?1:e(u,c)/2,p=h-u.x,f=t/(c.x+h+p),g=n/(d.depth||1);i.eachBefore((function(e){e.x=(e.x+p)*f,e.y=e.depth*g}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,l=o.parent.children[0],u=o.m,c=a.m,d=s.m,h=l.m;s=Yg(s),o=zg(o),s&&o;)l=zg(l),(a=Yg(a)).a=t,(i=s.z+d-o.z-u+e(s._,o._))>0&&(Ug(qg(s,t,r),t,i),u+=i,c+=i),d+=s.m,u+=o.m,h+=l.m,c+=a.m;s&&!Yg(a)&&(a.t=s,a.m+=d-c),o&&!zg(l)&&(l.t=o,l.m+=u-h,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i})().nodeSize([l,l/1.5]).separation((function(e,t){return e.parent===u&&t.parent===u?3.5:1}))(u).descendants().forEach((function(e){e.y=0===e.depth?10:130*e.depth,e.x+=t/2}));var d=[],h=0,p=function(e){var t,n;e.id=h,d.push({id:h,children:e.children,dataName:e.data.name,subName:e.data.subname,bodyText:e.data.bodytext,metricName:null===(t=e.data)||void 0===t?void 0:t.metric,fill:e.data.fill,x:e.x,y:e.y,parentID:null===(n=e.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?u.each((function(e){p(e)})):u.eachBefore((function(e){p(e)}));for(var f=3*l,g=f/3.45,m=20,v=new Set,_=0,y=d;_<y.length;_++){var x=y[_],b=0===x.id?"Root Node":"Parent info parentId: "+x.parentID+"\n "+d[x.parentID].dataName+"\n "+d[x.parentID].subName;if(!x.children&&!v.has(x.parentID)&&3===c){var C=(f-m)/2,S=g;v.add(x.parentID),this.addLinktoSVG(x.id,d[x.parentID].x,d[x.parentID].y,d[x.id].x,d[x.id].y,!0,f,g,m);for(var E=null===(n=d[x.parentID])||void 0===n?void 0:n.children,L=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,k=(null===(i=d[x.parentID])||void 0===i?void 0:i.x)+C/2+10,A=null===(o=d[x.parentID])||void 0===o?void 0:o.x,w=null===(a=E[0])||void 0===a?void 0:a.y,D=0;D<E.length;++D){var T=E[D];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?1===E.length?A:L:k,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=S+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=S+m):E.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?L:k,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=S+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=S+m)}}if((x.children||c<=2)&&(this.addNodeShapetoSVG(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,f,g,x.id,b),0===x.id&&x.children)){var M=Xi(E=null===(s=d[x.id])||void 0===s?void 0:s.children,(function(e){return e.x})),P=qi(E,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},t}(function(){function e(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=e,this.styleClassNames=t,this._nodeElements=n,this._linkElements=r}return e.prototype.truncateText=function(e,t,n,r){var i,o=e.split(/\s+/).reverse(),a="",s=Wc(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=o.pop();)if(l.push(a),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>t-n){l.pop(),l.push("...");break}return i=l.join(" ")+" ",s.text(null),qc(".tempText").remove(),i},e.prototype.addNodeShapetoSVG=function(e,t,n,r,i,o,a,l,u,c,d){var h="nodeId: "+c+" \nnodeMainText: "+e+"\nsubText "+t+" "+d,p=i-l/2;!r&&0===c&&n||this._nodeElements.push(s.createElement("rect",{width:l,height:u,x:p,y:o,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:a,key:""+c+this.styleClassNames.rectNode})),t&&(t=this.truncateText(t,l,l/4,this.styleClassNames.rectSubText)),n&&(n=this.truncateText(n,l,l/4,this.styleClassNames.rectBodyText)),r&&(r=this.truncateText(r,l,l/4,this.styleClassNames.rectMetricText)),e=this.truncateText(e,l,l/4,this.styleClassNames.rectText);var f=r?s.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?s.createElement(s.Fragment,null,s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t),s.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t);t||r||n?this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?o+u/2.5:o+u/2,x:p+l/2,key:""+c+this.styleClassNames.rectText},e,f)):this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+u/1.6,x:p+l/2,key:""+c+this.styleClassNames.rectText},e))},e.prototype.createPathLink=function(e,t,n,r,i,o,a,s,l){return i?"M"+e+","+(t+a+s/2)+" V"+(t+5*s)+"\n H"+(e-o/2)+" H"+(e+o/2):"M"+(n-o/2)+","+(r-s)+" H"+(l+o/2)+" M"+e+","+(r-s)+"\n V"+(t+a+s/2)},e.prototype.addLinktoSVG=function(e,t,n,r,i,o,a,l,u,c){void 0===c&&(c=0),this._linkElements.push(s.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,i,o,a,l,u,c),key:""+e+this.styleClassNames.link}))},e}()),$g=function(e){function t(t){var n,r=e.call(this,t)||this;return r._nodeElements=[],r._linkElements=[],r._margin={top:30,right:20,bottom:30,left:50},r._width=r.props.width||1500,r._height=r.props.height||700,r._treeData=r.props.treeData,r._composition=null===(n=r.props)||void 0===n?void 0:n.composition,r._treeTraversal=r.props.treeTraversal,r.state={_width:r._width,_height:r._height},r}return r(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Gg(r,{theme:t,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},t.prototype.componentDidUpdate=function(e){if(e.layoutWidth!==this.props.layoutWidth){var t=qc("text"),n=qc("rect"),r=qc("path");0===this._nodeElements.length&&0===this._linkElements.length&&(t.remove(),n.remove(),r.remove()),this.createTreeChart()}},t.prototype.createTreeChart=function(){var e=[],t=[],n=new Zg(this._treeData,this._composition,this._classNames,e,t,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=e,this._linkElements=t},t.prototype.render=function(){var e;return s.createElement(Ud,null,s.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},s.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},s.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),s.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},t}(s.Component),Qg=E($g,(function(e){return{root:[e.theme.spacing,"ms-TreeChart",e.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:i({fill:"black"},e.theme.fonts.large),rectSubText:i({fill:"#484644"},e.theme.fonts.medium),rectBodyText:i({fill:"#808080"},e.theme.fonts.xSmall),rectMetricText:i({fill:"#000000"},e.theme.fonts.xLarge)}}));!function(e){e[e.long=1]="long",e[e.compact=0]="compact"}(jg||(jg={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(Kg||(Kg={}));var Jg=he(),em=function(e){function t(t){var n=e.call(this,t)||this;return n.margin={top:2,right:0,bottom:0,left:0},n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80},n}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=Ef().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(Hp);this.area=t;var n=Wp().x((function(t){return e.x(t.x)})).y((function(t){return e.y(t.y)})).curve(Hp);this.line=n;var r=this.props.data.lineChartData[0].data,i=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=t(e[a]))&&n>=n)for(r=i=n;++a<o;)null!=(n=t(e[a]))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}(r,(function(e){return e.x})),o=i[0],a=i[1];this.x=Ca().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Ca().domain([0,qi(r,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})},t.prototype.drawSparkline=function(){return s.createElement(s.Fragment,null,s.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),s.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,"aria-label":"Sparkline with label "+this.props.data.lineChartData[0].legend}))},t.prototype.render=function(){var e=Jg(this.props.styles,{theme:this.props.theme});return s.createElement(Ud,{direction:gd.horizontal,isCircularNavigation:!0,className:e.inlineBlock},s.createElement("div",{className:e.inlineBlock},this.state._width>=50&&this.state._height>=16?s.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):s.createElement(s.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?s.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},s.createElement("text",{x:"0%",dx:8,y:"100%",dy:-5,className:e.valueText},this.props.data.lineChartData[0].legend)):s.createElement(s.Fragment,null)))},t}(s.Component),tm=E(em,(function(e){return{inlineBlock:{display:"inline"},valueText:i(i({},e.theme.fonts.smallPlus),{fill:e.theme.palette.black})}})),nm=he(),rm=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._getMargins=function(e){n.margins=e},n._renderContentForOnlyBars=function(e){var t,r,i,o=n.props.useSingleColor,a=void 0!==o&&o,l=0;return n.props.data.forEach((function(t,n){t.y===e.y&&(l=n)})),i=a?n.props.colors?n._createColors()(1):ff(1,0,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted):e.color?e.color:n.props.colors?n._createColors()(e.x):ff(l,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),s.createElement(s.Fragment,null,s.createElement(Cd,{XValue:e.xAxisCalloutData||e.x.toString(),Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:i,culture:n.props.culture}))},n._renderCallout=function(e){return e?n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,i,o,a){return n._bars=n._yAxisType===Gc.NumericAxis?n._createNumericBars(r,i,o,a):n._createStringBars(r,i,o,a)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForBar=function(e){var t,r,i,o=[],a=n.props.useSingleColor,s=void 0!==a&&a,l=n.props.data,u=l.filter((function(t){return t.y===e.y})),c=0;return l.forEach((function(t,n){t.y===e.y&&(c=n)})),i=s?n.props.colors?n._createColors()(1):ff(1,0,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted):u[0].color?u[0].color:n.props.colors?n._createColors()(u[0].x):ff(c,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),o.push({legend:u[0].legend,y:u[0].x,color:i,data:u[0].yAxisCalloutData,yAxisCalloutData:u[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:e.yAxisCalloutData||e.y.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){if(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.selectedLegendTitle===e.legend){var i=n._getCalloutContentForBar(e),o=i.YValueHover,a=i.hoverXValue;n._refArray.forEach((function(i,s){t===s&&n.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:e.legend,dataForHoverCard:e.x,color:n.props.useSingleColor?r:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))}},n._getScales=function(e,t,r){if(r){var i=qi(n._points,(function(e){return e.x})),o=qi(n._points,(function(e){return e.y}));return{xBarScale:Ca().domain(n._isRtl?[i,0]:[0,i]).nice().range([n.margins.left,t-n.margins.right]),yBarScale:a=Ca().domain([0,o]).range([e-n.margins.bottom,n.margins.top])}}i=qi(n._points,(function(e){return e.x}));var a=Pu().domain(n._yAxisLabels).range([e-n.margins.bottom-n._barHeight/2,n.margins.top+n._barHeight/2]).padding(n.props.yAxisPadding||0);return{xBarScale:Ca().domain(n._isRtl?[i,0]:[0,i]).range([n.margins.left,t-n.margins.right]),yBarScale:a}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props.useSingleColor,o=[];return e.forEach((function(e,t){var i,a=r?n.props.colors?n._createColors()(1):ff(1,0,null===(i=n.props.theme)||void 0===i?void 0:i.isInverted):e.color,s={title:e.legend,color:a,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};o.push(s)})),s.createElement(Zh,i({legends:o,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._xMax=Math.max(t[t.length-1],n.props.xMaxValue||0)}},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.x,r=e.yAxisCalloutData||e.y;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||n+". "+r+"."},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},n._calloutId=xe("callout"),n._tooltipId=xe("HBCWATooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?fd(n.props.data[0].x,!0):Kc.NumericAxis,n._yAxisType=n.props.data&&n.props.data.length>0?fd(n.props.data[0].y,!1):Gc.StringAxis,n}return r(t,e),t.prototype.render=function(){var e=this;this._adjustProps();var t=a([],this._points).reverse();this._yAxisLabels=t.map((function(e){return e.y})),this._xMax=Math.max(qi(this._points,(function(e){return e.x})),this.props.xMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=nm(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,id:"toolTip"+this._calloutId,target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),vd(this.state.callOutAccessibilityData)),o={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(qp,i({},this.props,{points:this._points,chartType:jc.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:r,tickParams:o,legendBars:n,barwidth:this._barHeight,focusZoneDirection:gd.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark]},t.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(t*i*this._xMax);return Ca().domain(r).range(this._colors)},t.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForBar(e),i=r.YValueHover,o=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===e.legend)&&this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:e.x,selectedLegendTitle:e.legend,color:this.props.useSingleColor?t:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n,r){var i=this,o=this.props.useSingleColor,l=void 0!==o&&o,u=this._getScales(e,t,!0),c=u.xBarScale,d=u.yBarScale,h=a([],this._points);h.sort((function(e,t){var n="number"==typeof e.y?e.y:parseFloat(e.y);return("number"==typeof t.y?t.y:parseFloat(t.y))-n}));var p=h.map((function(e,n){var r,o,a,u=!0;return(i.state.isLegendHovered||i.state.isLegendSelected)&&(u=i.state.selectedLegendTitle===e.legend),i._classNames=nm(i.props.styles,{theme:i.props.theme,legendColor:i.state.color,shouldHighlight:u}),Math.max(d(e.y),0)<1?s.createElement(s.Fragment,{key:e.x}," "):(a=l?i.props.colors?i._createColors()(1):ff(1,0,null===(r=i.props.theme)||void 0===r?void 0:r.isInverted):i.props.colors?i._createColors()(e.x):ff(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted),s.createElement("rect",{key:e.y,x:i._isRtl?c(e.x):i.margins.left,className:i._classNames.opacityChangeOnHover,y:d(e.y)-i._barHeight/2,"data-is-focusable":!0,width:i._isRtl?t-i.margins.right-Math.max(c(e.x),0):Math.max(c(e.x),0)-i.margins.left,height:i._barHeight,ref:function(t){i._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:i._onBarHover.bind(i,e,a),"aria-label":i._getAriaLabel(e),role:"img","aria-labelledby":"toolTip"+i._calloutId,onMouseLeave:i._onBarLeave,onFocus:i._onBarFocus.bind(i,e,n,a),onBlur:i._onBarLeave,fill:e.color&&!l?e.color:a}))}));return p},t.prototype._tooltipOfYAxislabels=function(e){var t=this,n=e.tooltipCls,r=e.yAxis,i=e.id;if(null===r)return null;for(var o=Wc("body").append("div").attr("id",i).attr("class",n).style("opacity",0),a=r.selectAll("#BaseSpan")._groups[0],s=a&&Object.keys(a).length,l=[],u=0;u<s;u++){var c=a[u].dataset&&Object.values(a[u].dataset)[0];l.push(c)}var d=r.selectAll(".tick")._groups[0],h=d&&Object.keys(d).length,p=function(e){Wc(d[e]).on("mouseover",(function(n){t.state.tooltipElement||(o.style("opacity",.9),o.html(l[e]).style("left",Mc.pageX+"px").style("top",Mc.pageY-28+"px"))})).on("mouseout",(function(e){o.style("opacity",0)}))};for(u=0;u<h;u++)p(u)},t.prototype._createStringBars=function(e,t,n,r){var i=this,o=this._getScales(e,t,!1),a=o.xBarScale,l=o.yBarScale,u=this.props.useSingleColor,c=void 0!==u&&u,d=this._points.map((function(e,n){var r,o,u;return Math.max(l(e.y),0)<1?s.createElement(s.Fragment,{key:e.x}," "):(u=c?i.props.colors?i._createColors()(1):ff(1,0,null===(r=i.props.theme)||void 0===r?void 0:r.isInverted):i.props.colors?i._createColors()(e.x):ff(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted),s.createElement("rect",{key:e.x,x:i._isRtl?a(e.x):i.margins.left,y:l(e.y)+i._barHeight/2,width:i._isRtl?t-i.margins.right-Math.max(a(e.x),0):Math.max(a(e.x),0)-i.margins.left,height:i._barHeight,"aria-labelledby":"toolTip"+i._calloutId,"aria-label":i._getAriaLabel(e),role:"img",ref:function(t){i._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:i._onBarHover.bind(i,e,u),onMouseLeave:i._onBarLeave,onBlur:i._onBarLeave,"data-is-focusable":!0,onFocus:i._onBarFocus.bind(i,e,n,u),fill:e.color&&!c?e.color:u}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(this.props.showYAxisLablesTooltip){var h=Wc(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(s.Component),im=E(rm,(function(e){var t=e.shouldHighlight,n=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1"},xAxisTicks:[],tooltip:i(i({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));Hr("@fluentui/react-charting","5.16.34"),FluentUIReactCharting=t}();
|
|
1
|
+
var FluentUIReactCharting;!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{AreaChart:function(){return Of},CartesianChart:function(){return Xp},ChartHoverCard:function(){return Sd},DataVizPalette:function(){return cf},DonutChart:function(){return Op},GroupedVerticalBarChart:function(){return ug},HeatMapChart:function(){return pg},HorizontalBarChart:function(){return ih},HorizontalBarChartVariant:function(){return _e},HorizontalBarChartWithAxis:function(){return im},Legends:function(){return $h},LineChart:function(){return xf},MultiStackedBarChart:function(){return Jf},MultiStackedBarChartVariant:function(){return zf},NodesComposition:function(){return Kg},PieChart:function(){return Xf},SankeyChart:function(){return Ng},Shape:function(){return Kh},Sparkline:function(){return rm},StackedBarChart:function(){return Gf},Textbox:function(){return af},TreeChart:function(){return em},TreeTraverse:function(){return Gg},VerticalBarChart:function(){return rg},VerticalStackedBarChart:function(){return ig},getChartHoverCardStyles:function(){return Cd},getColorFromToken:function(){return mf},getNextColor:function(){return gf}});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function i(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var s=React;function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},o=0,a=e;o<a.length;o++){var s=a[o];if(s)for(var c in s)if(s.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==s.subComponentStyles){var u=s.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(u[d]):r[d]=[u[d]]);continue}var h=n[c],p=s[c];n[c]=void 0===h?p:i(i([],Array.isArray(h)?h:[h],!0),Array.isArray(p)?p:[p],!0)}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(r.hasOwnProperty(e)){var t=r[e];f[e]=function(e){return l.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in r)g(d)}return n}function c(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}var u=void 0;try{u=window}catch(e){}function d(e){if(c()&&void 0!==u){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:u}}var h="__globalSettings__",p="__callbacks__",f=0,g=function(){function e(){}return e.getValue=function(e,t){var n=m();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=m(),r=n[p],o=n[e];if(t!==o){n[e]=t;var a={oldValue:o,value:t,key:e};for(var i in r)r.hasOwnProperty(i)&&r[i](a)}return t},e.addChangeListener=function(e){var t=e.__id__,n=v();t||(t=e.__id__=String(f++)),n[t]=e},e.removeChangeListener=function(e){delete v()[e.__id__]},e}();function m(){var e,t=d()||{};return t[h]||(t[h]=((e={})[p]={},e)),t[h]}function v(){return m()[p]}var _={settings:{},scopedSettings:{},inCustomizerContext:!1},y=g.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),x=[],b=function(){function e(){}return e.reset=function(){y.settings={},y.scopedSettings={}},e.applySettings=function(t){y.settings=o(o({},y.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){y.scopedSettings[t]=o(o({},y.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=_);for(var r={},o=t&&n.scopedSettings[t]||{},a=t&&y.scopedSettings[t]||{},i=0,s=e;i<s.length;i++){var l=s[i];r[l]=o[l]||n.settings[l]||a[l]||y.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){x.push(e)},e.unobserve=function(e){x=x.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||x.forEach((function(e){return e()}))},e}(),C=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var S=["theme","styles"];function E(e,t,n,r,i){var c=(r=r||{scope:"",fields:void 0}).scope,u=r.fields,d=void 0===u?S:u,h=s.forwardRef((function(r,i){var u,h,p,f,g,m,v=s.useRef(),_=(u=d,h=c,p=s.useState(0)[1],f=function(){return p((function(e){return++e}))},g=s.useContext(C).customizations,m=g.inCustomizerContext,s.useEffect((function(){return m||b.observe(f),function(){m||b.unobserve(f)}}),[m]),b.getSettings(u,h,g)),y=_.styles,x=(_.dir,a(_,["styles","dir"])),S=n?n(r):void 0,E=v.current&&v.current.__cachedInputs__||[],L=r.styles;if(!v.current||y!==E[1]||L!==E[2]){var k=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,a=t;o<a.length;o++){var i=a[o];i&&r.push("function"==typeof i?i(e):i)}return 1===r.length?r[0]:r.length?l.apply(void 0,r):{}}(e,t,y,L)};k.__cachedInputs__=[t,y,L],k.__noStyleOverride__=!y&&!L,v.current=k}return s.createElement(e,o({ref:i},x,S,r,{styles:v.current}))}));h.displayName="Styled".concat(e.displayName||e.name);var p=i?s.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var L,k="__stylesheet__",A="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),w={};try{w=window||{}}catch(V){}var D=function(){function e(e,t){var n,r,a,i,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=o({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null==t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(i=null!==(a=this._config.classNameCache)&&void 0!==a?a:null==t?void 0:t.keyToClassName)&&void 0!==i?i:this._keyToClassName,this._preservedRules=null!==(s=null==t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(L=w[k])||L._lastStyleElement&&L._lastStyleElement.ownerDocument!==document){var t=(null==w?void 0:w.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);L=n,w[k]=n}return L},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=o(o({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case 1:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(e){}break;case 2:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),A||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function T(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],o=D.getInstance();return function e(t){for(var a=0,i=t;a<i.length;a++){var s=i[a];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)e(s.split(" "));else{var l=o.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&r.push(s)}}(e),{classes:n,objects:r}}var M,P={},F={"user-select":1};function N(e,t){var n=function(){var e;if(!M){var t="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,r=null===(e=null==n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();M=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return M}(),r=e[t];if(F[r]){var o=e[t+1];F[r]&&(n.isWebkit&&e.push("-webkit-"+r,o),n.isMoz&&e.push("-moz-"+r,o),n.isMs&&e.push("-ms-"+r,o),n.isOpera&&e.push("-o-"+r,o))}}var V,I=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function O(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=I.indexOf(n)>-1,a=n.indexOf("--")>-1,i=o||a?"":"px";e[t+1]="".concat(r).concat(i)}}var H="left",B="right",R="@noflip",W=((V={})[H]=B,V[B]=H,V),z={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function Y(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf(R)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(H)>=0)t[n]=r.replace(H,B);else if(r.indexOf(B)>=0)t[n]=r.replace(B,H);else if(String(o).indexOf(H)>=0)t[n+1]=o.replace(H,B);else if(String(o).indexOf(B)>=0)t[n+1]=o.replace(B,H);else if(W[r])t[n]=W[r];else if(z[o])t[n+1]=z[o];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}(o);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(o)}}}var U,q="displayName",X=/\:global\((.+?)\)/g;function j(e,t){return e.indexOf(":global(")>=0?e.replace(X,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function K(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?G([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!X.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global(".concat(e.trim(),")")})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return G([r],t,j(n,e))})):G([r],t,j(n,e))}function G(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=D.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,i=e;a<i.length;a++){var s=i[a];if("string"==typeof s){var l=r.argsFromClassName(s);l&&G(l,t,n)}else if(Array.isArray(s))G(s,t,n);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&K(n,t,h,d[h])}else"object"==typeof u?null!==u&&K(n,t,c,u):void 0!==u&&("margin"===c||"padding"===c?Z(o,c,u):o[c]=u)}}return t}function Z(e,t,n){var r="string"==typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function $(e,t){return t<=0?"":1===t?e:e+$(e,t-1)}function Q(e,t){if(!t)return"";var n,r,o,a=[];for(var i in t)t.hasOwnProperty(i)&&i!==q&&void 0!==t[i]&&a.push(i,t[i]);for(var s=0;s<a.length;s+=2)o=void 0,"-"!==(o=(n=a)[r=s]).charAt(0)&&(n[r]=P[o]=P[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),O(a,s),Y(e,a,s),N(a,s);for(s=1;s<a.length;s+=4)a.splice(s,1,":",a[s],";");return a.join("")}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=G(t),o=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,a=t.__order;o<a.length;o++){var i=a[o];n.push(i);var s=t[i];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}(e,r);if(o){var a=D.getInstance(),i={className:a.classNameFromKey(o),key:o,args:t};if(!i.className){i.className=a.getClassName(function(e){var t=e&&e["&"];return t?t.displayName:void 0}(r));for(var s=[],l=0,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,Q(e,r[u]))}i.rulesToInsert=s}return i}}function ee(e,t){void 0===t&&(t=1);var n=D.getInstance(),r=e.className,o=e.key,a=e.args,i=e.rulesToInsert;if(i){for(var s=0;s<i.length;s+=2){var l=i[s+1];if(l){var c=i[s];c=c.replace(/&/g,$(".".concat(e.className),t));var u="".concat(c,"{").concat(l,"}").concat(0===c.indexOf("@")?"}":"");n.insertRule(u)}}n.cacheClassName(r,o,a,i)}}function te(e){if(c()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function ne(e){var t=null;try{var n=d();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function re(e){U!==e&&(U=e)}function oe(){return void 0===U&&(U="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),U}function ae(){return{rtl:oe()}}U=oe();var ie,se="isRTL";function le(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===ie){var t=ne(se);null!==t&&function(e,t){void 0===t&&(t=!1);var n=te();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&function(e,t){var n;try{null===(n=d())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}(se,e?"1":"0"),re(ie=e)}(ie="1"===t);var n=te();void 0===ie&&n&&re(ie="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!ie}var ce=0,ue=D.getInstance();ue&&ue.onReset&&ue.onReset((function(){return ce++}));var de="__retval__";function he(e){void 0===e&&(e={});var t=new Map,n=0,r=0,o=ce;return function(a,i){var s;if(void 0===i&&(i={}),e.useStaticStyles&&"function"==typeof a&&a.__noStyleOverride__)return a(i);r++;var c=t,u=i.theme,h=u&&void 0!==u.rtl?u.rtl:le(),p=e.disableCaching;if(o!==ce&&(o=ce,t=new Map,n=0),e.disableCaching||(c=fe(t,a),c=fe(c,i)),!p&&c[de]||(c[de]=void 0===a?{}:function(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=l.apply(void 0,e),o=[];for(var a in r)if(r.hasOwnProperty(a)){if("subComponentStyles"===a){n.subComponentStyles=r.subComponentStyles||{};continue}var i=T(r[a]),s=i.classes,c=i.objects;(null==c?void 0:c.length)?(h=J(t||{},{displayName:a},c))&&(o.push(h),n[a]=s.concat([h.className]).join(" ")):n[a]=s.join(" ")}for(var u=0,d=o;u<d.length;u++){var h;(h=d[u])&&ee(h,null==t?void 0:t.specificityMultiplier)}return n}(["function"==typeof a?a(i):a],{rtl:!!h,specificityMultiplier:e.useStaticStyles?5:void 0}),p||n++),n>(e.cacheSize||50)){var f=d();(null===(s=null==f?void 0:f.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),t.clear(),n=0,e.disableCaching=!0}return c[de]}}function pe(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function fe(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=pe(e,r[n]);else e=pe(e,t);else if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=pe(e,t[o]));return e}var ge="__currentId__",me="id__",ve=d()||{};void 0===ve[ge]&&(ve[ge]=0);var _e,ye=!1;function xe(e){if(!ye){var t=D.getInstance();t&&t.onReset&&t.onReset(be),ye=!0}var n=ve[ge]++;return(void 0===e?me:e)+n}function be(e){void 0===e&&(e=0),ve[ge]=e}function Ce(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function Se(e,t){var n=Ce(e,t);if(!(n<0))return e[n]}!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(_e||(_e={}));var Ee={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function Le(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function ke(e,t){return e&&e!==document.body?t(e)?e:ke(Le(e),t):null}function Ae(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var o=Le(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}var we="data-is-focusable",De="data-is-visible",Te="data-focuszone-id",Me="data-is-sub-focuszone";function Pe(e,t){var n=Ne(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(We(n),!0)}function Fe(e,t,n,r,o,a,i,s){if(!t||!i&&t===e)return null;var l=Ve(t);if(o&&l&&(a||!He(t)&&!Be(t))){var c=Fe(e,t.lastElementChild,!0,!0,!0,a,i,s);if(c){if(s&&Oe(c,!0)||!s)return c;var u=Fe(e,c.previousElementSibling,!0,!0,!0,a,i,s);if(u)return u;for(var d=c.parentElement;d&&d!==t;){var h=Fe(e,d.previousElementSibling,!0,!0,!0,a,i,s);if(h)return h;d=d.parentElement}}}return n&&l&&Oe(t,s)?t:Fe(e,t.previousElementSibling,!0,!0,!0,a,i,s)||(r?null:Fe(e,t.parentElement,!0,!1,!1,a,i,s))}function Ne(e,t,n,r,o,a,i,s,l){if(!t||t===e&&o&&!i)return null;var c=(l?Ie:Ve)(t);if(n&&c&&Oe(t,s))return t;if(!o&&c&&(a||!He(t)&&!Be(t))){var u=Ne(e,t.firstElementChild,!0,!0,!1,a,i,s,l);if(u)return u}return t===e?null:Ne(e,t.nextElementSibling,!0,!0,!1,a,i,s,l)||(r?null:Ne(e,t.parentElement,!1,!1,!0,a,i,s,l))}function Ve(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(De);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Ie(e){return!!e&&Ve(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function Oe(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var o=e.getAttribute?e.getAttribute(we):null,a=null!==r&&n>=0,i=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||a);return t?-1!==n&&i:i}function He(e){return!!(e&&e.getAttribute&&e.getAttribute(Te))}function Be(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute(Me))}var Re=void 0;function We(e){if(e){if(Re)return void(Re=e);Re=e;var t=d(e);t&&t.requestAnimationFrame((function(){Re&&Re.focus(),Re=void 0}))}}function ze(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Ye(e,t){for(var n=o({},t),r=0,a=Object.keys(e);r<a.length;r++){var i=a[r];void 0===n[i]&&(n[i]=e[i])}return n}var Ue,qe,Xe,je=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var a=o[r],i=0,s=Array.isArray(a)?a:Object.keys(a);i<s.length;i++)n[s[i]]=1;return n},Ke=je(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),Ge=je(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Ze=je(Ge,Ke),$e=(je(Ze,["form"]),je(Ze,["height","loop","muted","preload","src","width"])),Qe=(je($e,["poster"]),je(Ze,["start"]),je(Ze,["value"]),je(Ze,["download","href","hrefLang","media","rel","target","type"]),je(Ze,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Je=(je(Qe,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),je(Qe,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),je(Qe,["form","multiple","required"]),je(Ze,["selected","value"]),je(Ze,["cellPadding","cellSpacing"]),je(Ze,["rowSpan","scope"]),je(Ze,["colSpan","headers","rowSpan","scope"]),je(Ze,["span"]),je(Ze,["span"]),je(Ze,["acceptCharset","action","encType","encType","method","noValidate","target"]),je(Ze,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),je(Ze,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Ze);function et(e,t,n){for(var r=Array.isArray(t),o={},a=0,i=Object.keys(e);a<i.length;a++){var s=i[a];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(o[s]=e[s])}return o}function tt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var a=o[r];if(a)if("string"==typeof a)n.push(a);else if(a.hasOwnProperty("toString")&&"function"==typeof a.toString)n.push(a.toString());else for(var i in a)a[i]&&n.push(i)}return n.join(" ")}function nt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return rt.apply(this,[null,e].concat(t))}function rt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,a=n;o<a.length;o++){var i=a[o];if(i)for(var s in i)!i.hasOwnProperty(s)||e&&!e(s)||(t[s]=i[s])}return t}function ot(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e,t){var n=T(e instanceof Array?e:[e]),r=n.classes,o=n.objects;return o.length&&r.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=J.apply(void 0,i([e],t,!1));return r?(ee(r,e.specificityMultiplier),r.className):""}(t||{},o)),r.join(" ")}(e,ae())}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Ue||(Ue={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(qe||(qe={})),ot({overflow:"hidden !important"});var at="data-is-scrollable";function it(e){for(var t=e,n=te(e);t&&t!==n.body;){if("true"===t.getAttribute(at))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(at)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=d(e)),t}var st,lt=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function ct(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ut=((st={})[Ee.topLeftEdge]=ct(Ue.top,Ue.left),st[Ee.topCenter]=ct(Ue.top),st[Ee.topRightEdge]=ct(Ue.top,Ue.right),st[Ee.topAutoEdge]=ct(Ue.top,void 0,!0),st[Ee.bottomLeftEdge]=ct(Ue.bottom,Ue.left),st[Ee.bottomCenter]=ct(Ue.bottom),st[Ee.bottomRightEdge]=ct(Ue.bottom,Ue.right),st[Ee.bottomAutoEdge]=ct(Ue.bottom,void 0,!0),st[Ee.leftTopEdge]=ct(Ue.left,Ue.top),st[Ee.leftCenter]=ct(Ue.left),st[Ee.leftBottomEdge]=ct(Ue.left,Ue.bottom),st[Ee.rightTopEdge]=ct(Ue.right,Ue.top),st[Ee.rightCenter]=ct(Ue.right),st[Ee.rightBottomEdge]=ct(Ue.right,Ue.bottom),st);function dt(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function ht(e,t){var n=[];return e.top<t.top&&n.push(Ue.top),e.bottom>t.bottom&&n.push(Ue.bottom),e.left<t.left&&n.push(Ue.left),e.right>t.right&&n.push(Ue.right),n}function pt(e,t){return e[Ue[t]]}function ft(e,t,n){return e[Ue[t]]=n,e}function gt(e,t){var n=kt(t);return(pt(e,n.positiveEdge)+pt(e,n.negativeEdge))/2}function mt(e,t){return e>0?t:-1*t}function vt(e,t){return mt(e,pt(t,e))}function _t(e,t,n){return mt(n,pt(e,n)-pt(t,n))}function yt(e,t,n,r){void 0===r&&(r=!0);var o=pt(e,t)-n,a=ft(e,t,n);return r&&(a=ft(e,-1*t,pt(e,-1*t)-o)),a}function xt(e,t,n,r){return void 0===r&&(r=0),yt(e,n,pt(t,n)+mt(n,r))}function bt(e,t,n){return vt(n,e)>vt(n,t)}function Ct(e,t){for(var n=0,r=0,o=ht(e,t);r<o.length;r++){var a=o[r];n+=Math.pow(_t(e,t,a),2)}return n}function St(e,t,n,r){for(var o=0,a=e;o<a.length;o++){var i=a[o],s=void 0;r&&r===-1*i?(s=yt(t.elementRectangle,i,pt(n,i),!1),t.forcedInBounds=!0):bt(s=xt(t.elementRectangle,n,i),n,-1*i)||(s=yt(s,-1*i,pt(n,-1*i),!1),t.forcedInBounds=!0),t.elementRectangle=s}return t}function Et(e,t,n){var r=kt(t).positiveEdge;return yt(e,r,n-(gt(e,t)-pt(e,r)))}function Lt(e,t,n,r,o){void 0===r&&(r=0);var a=new lt(e.left,e.right,e.top,e.bottom),i=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;return a=o?xt(a,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=mt(-1*n,r);return yt(e,-1*n,pt(t,n)+o)}(a,t,s,r),a=i?xt(a,t,i):Et(a,l,gt(t,s))}function kt(e){return e===Ue.top||e===Ue.bottom?{positiveEdge:Ue.left,negativeEdge:Ue.right}:{positiveEdge:Ue.top,negativeEdge:Ue.bottom}}function At(e,t,n){return n&&Math.abs(_t(e,n,t))>Math.abs(_t(e,n,-1*t))?-1*t:t}function wt(e,t,n,r,o,a,i,s){var l,c={},u=Mt(t),d=a?n:-1*n,h=o||kt(n).positiveEdge;return i&&!function(e,t,n){return void 0!==n&&pt(e,t)===pt(n,t)}(e,(l=h,-1*l),r)||(h=At(e,h,r)),c[Ue[d]]=_t(e,u,d),c[Ue[h]]=_t(e,u,h),s&&(c[Ue[-1*d]]=_t(e,u,-1*d),c[Ue[-1*h]]=_t(e,u,-1*h)),c}function Dt(e,t,n){var r=gt(t,e),o=gt(n,e),a=kt(e),i=a.positiveEdge,s=a.negativeEdge;return r<=o?i:s}function Tt(e,t,n,r,o,a,i){var s=Lt(e,t,r,o,i);return dt(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(e,t,n,r,o,a,i){void 0===o&&(o=0);var s=r.alignmentEdge,l=r.alignTargetEdge,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};a||i||(c=function(e,t,n,r,o){void 0===o&&(o=0);var a=[Ue.left,Ue.right,Ue.bottom,Ue.top];le()&&(a[0]*=-1,a[1]*=-1);for(var i,s=e,l=r.targetEdge,c=r.alignmentEdge,u=l,d=c,h=0;h<4;h++){if(bt(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var p=Ct(s,n);(!i||p<i)&&(i=p,u=l,d=c),a.splice(a.indexOf(l),1),a.length>0&&(a.indexOf(-1*l)>-1?l*=-1:(c=l,l=a.slice(-1)[0]),s=Lt(e,t,{targetEdge:l,alignmentEdge:c},o))}return{elementRectangle:s=Lt(e,t,{targetEdge:u,alignmentEdge:d},o),targetEdge:u,alignmentEdge:d}}(e,t,n,r,o));var u=ht(c.elementRectangle,n),d=a?-c.targetEdge:void 0;if(u.length>0)if(l)if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var h=function(e,t,n,r){var o=e.alignmentEdge,a=e.targetEdge,i=-1*o;return{elementRectangle:Lt(e.elementRectangle,t,{targetEdge:a,alignmentEdge:i},n,r),targetEdge:a,alignmentEdge:i}}(c,t,o,i);if(dt(h.elementRectangle,n))return h;c=St(ht(h.elementRectangle,n),c,n,d)}else c=St(u,c,n,d);else c=St(u,c,n,d);return c}(s,t,n,r,o,a,i)}function Mt(e){var t=e.getBoundingClientRect();return new lt(t.left,t.right,t.top,t.bottom)}function Pt(e,t,n,r){var a=e.gapSpace?e.gapSpace:0,i=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new lt(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Mt(t);else{var o=t,a=o.left||o.x,i=o.top||o.y,s=o.right||a,l=o.bottom||i;n=new lt(a,s,i,l)}if(!dt(n,e))for(var c=0,u=ht(n,e);c<u.length;c++){var d=u[c];n[Ue[d]]=e[Ue[d]]}}else n=new lt(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=Dt(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(function(e,t,n){if(void 0===e&&(e=Ee.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=o({},ut[e]);return le()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?ut[t]:r):r}(e.directionalHint,e.directionalHintForRTL,r),i,n,e.coverTarget,e.alignTargetEdge),l=Tt(Mt(t),i,n,s,a,e.directionalHintFixed,e.coverTarget);return o(o({},l),{targetRectangle:i})}function Ft(e,t,n,r,a){var i=e.isBeakVisible&&e.beakWidth||0,s=function(e){return Math.sqrt(e*e*2)}(i)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var c,u,d,h,p,f,g,m,v,_=e.bounds?(v=e.bounds,new lt(v.left,v.right,v.top,v.bottom)):new lt(0,window.innerWidth-function(){if(void 0===Xe){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Xe=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Xe}(),0,window.innerHeight),y=Pt(l,n,_,r),x=(c=y,u=function(e,t){var n=t.targetRectangle,r=kt(t.targetEdge),o=r.positiveEdge,a=r.negativeEdge,i=gt(n,t.targetEdge),s=new lt(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new lt(0,e,0,e);return bt(l=Et(l=yt(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,i-vt(o,t.elementRectangle)),s,o)?bt(l,s,a)||(l=xt(l,s,a)):l=xt(l,s,o),l}(i,y),d=_,h=-1*c.targetEdge,p=new lt(0,c.elementRectangle.width,0,c.elementRectangle.height),f={},g=At(c.elementRectangle,c.alignmentEdge?c.alignmentEdge:kt(h).positiveEdge,d),m=_t(c.elementRectangle,c.targetRectangle,h)>Math.abs(pt(u,h)),f[Ue[h]]=pt(u,h),f[Ue[g]]=_t(u,p,g),{elementPosition:o({},f),closestEdge:Dt(c.targetEdge,u,p),targetEdge:h,hideBeak:!m});return o(o({},function(e,t,n,r,o){return{elementPosition:wt(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(y,t,_,e.coverTarget,a)),{beakPosition:x})}var Nt=["TEMPLATE","STYLE","SCRIPT"];function Vt(e){var t=te(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,o=e.parentElement.children;r<o.length;r++){var a=o[r],i=a.getAttribute("aria-hidden");a!==e&&"true"!==(null==i?void 0:i.toLowerCase())&&-1===Nt.indexOf(a.tagName)&&n.push([a,i])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}var It=27,Ot=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,o=d(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[r]=!0),r},e.prototype.clearImmediate=function(e,t){var n=d(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,a,i=t||0,s=!0,l=!0,c=0,u=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),h=n-c,p=s?i-h:i;return h>=i&&(!t||s)?(c=n,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,a)):null===u&&l&&(u=r.setTimeout(d,p)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var a,i,s=t||0,l=!1,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var f=function(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),a=e.apply(r._parent,i)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var o=t-d,i=s-o,f=t-h,v=!1;return null!==u&&(f>=u&&p?v=!0:i=Math.min(i,u-f)),o>=s||v||n?g(t):null!==p&&e||!c||(p=r.setTimeout(m,i)),a},v=function(){return!!p},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),a},_.pending=v,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=d(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var a=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=o.requestAnimationFrame?o.requestAnimationFrame(a):o.setTimeout(a,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=d(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function Ht(){var e=s.useRef();return e.current||(e.current=new Ot),s.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function Bt(e,t,n,r){var o=s.useRef(n);o.current=n,s.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return ze(n,t,(function(e){return o.current(e)}),r)}),[e,t,r])}function Rt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s.useCallback((function(t){n.current=t;for(var r=0,o=e;r<o.length;r++){var a=o[r];"function"==typeof a?a(t):a&&(a.current=t)}}),i([],e,!0));return n}var Wt=s.createContext({window:"object"==typeof window?window:void 0}),zt=function(){return s.useContext(Wt).window};function Yt(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==d()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var Ut=s.forwardRef((function(e,t){var n=Ye({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=s.useRef(),a=Rt(r,t);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;s.useEffect((function(){if(n&&t.current)return Vt(t.current)}),[t,n])}(n,r),function(e,t){var n=e.onRestoreFocus,r=void 0===n?Yt:n,o=s.useRef(),a=s.useRef(!1);s.useEffect((function(){return o.current=te().activeElement,function(e){var t=te(e),n=t&&t.activeElement;return!(!n||!Ae(e,n))}(t.current)&&(a.current=!0),function(){var e;null==r||r({originalElement:o.current,containsFocus:a.current,documentContainsFocus:(null===(e=te())||void 0===e?void 0:e.hasFocus())||!1}),o.current=void 0}}),[]),Bt(t,"focus",s.useCallback((function(){a.current=!0}),[]),!0),Bt(t,"blur",s.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(a.current=!1)}),[]),!0)}(n,r);var i=n.role,l=n.className,c=n.ariaLabel,u=n.ariaLabelledBy,d=n.ariaDescribedBy,h=n.style,p=n.children,f=n.onDismiss,g=function(e,t){var n=Ht(),r=s.useState(!1),o=r[0],a=r[1];return s.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var i=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;i>0&&s>i&&(r=s-i>1)}o!==r&&a(r)}})),function(){return n.dispose()}})),o}(n,r),m=s.useCallback((function(e){e.which===It&&f&&(f(e),e.preventDefault(),e.stopPropagation())}),[f]);return Bt(zt(),"keydown",m),s.createElement("div",o({ref:a},et(n,Je),{className:l,role:i,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:m,style:o({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));function qt(e){var t=D.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",Q(ae(),e[r]),"}");var o=n.join(""),a=t.classNameFromKey(o);if(a)return a;var i=t.getClassName();return t.insertRule("@keyframes ".concat(i,"{").concat(o,"}"),!0),t.cacheClassName(i,o,[],["keyframes",o]),i}Ut.displayName="Popup";var Xt="cubic-bezier(.1,.9,.2,1)",jt="cubic-bezier(.1,.25,.75,.9)",Kt="0.167s",Gt="0.267s",Zt="0.367s",$t="0.467s",Qt=qt({from:{opacity:0},to:{opacity:1}}),Jt=qt({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),en=Pn(-10),tn=Pn(-20),nn=Pn(-40),rn=Pn(-400),on=Pn(10),an=Pn(20),sn=Pn(40),ln=Pn(400),cn=Fn(10),un=Fn(20),dn=Fn(-10),hn=Fn(-20),pn=Nn(10),fn=Nn(20),gn=Nn(40),mn=Nn(400),vn=Nn(-10),_n=Nn(-20),yn=Nn(-40),xn=Nn(-400),bn=Vn(-10),Cn=Vn(-20),Sn=Vn(10),En=Vn(20),Ln=qt({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),kn=qt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),An=qt({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),wn=qt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Dn=qt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Tn=qt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function Mn(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function Pn(e){return qt({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Fn(e){return qt({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Nn(e){return qt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function Vn(e){return qt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}var In,On,Hn,Bn,Rn,Wn=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=ot(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:Mn("".concat(Qt,",").concat(en),Zt,Xt),slideRightIn20:Mn("".concat(Qt,",").concat(tn),Zt,Xt),slideRightIn40:Mn("".concat(Qt,",").concat(nn),Zt,Xt),slideRightIn400:Mn("".concat(Qt,",").concat(rn),Zt,Xt),slideLeftIn10:Mn("".concat(Qt,",").concat(on),Zt,Xt),slideLeftIn20:Mn("".concat(Qt,",").concat(an),Zt,Xt),slideLeftIn40:Mn("".concat(Qt,",").concat(sn),Zt,Xt),slideLeftIn400:Mn("".concat(Qt,",").concat(ln),Zt,Xt),slideUpIn10:Mn("".concat(Qt,",").concat(cn),Zt,Xt),slideUpIn20:Mn("".concat(Qt,",").concat(un),Zt,Xt),slideDownIn10:Mn("".concat(Qt,",").concat(dn),Zt,Xt),slideDownIn20:Mn("".concat(Qt,",").concat(hn),Zt,Xt),slideRightOut10:Mn("".concat(Jt,",").concat(pn),Zt,Xt),slideRightOut20:Mn("".concat(Jt,",").concat(fn),Zt,Xt),slideRightOut40:Mn("".concat(Jt,",").concat(gn),Zt,Xt),slideRightOut400:Mn("".concat(Jt,",").concat(mn),Zt,Xt),slideLeftOut10:Mn("".concat(Jt,",").concat(vn),Zt,Xt),slideLeftOut20:Mn("".concat(Jt,",").concat(_n),Zt,Xt),slideLeftOut40:Mn("".concat(Jt,",").concat(yn),Zt,Xt),slideLeftOut400:Mn("".concat(Jt,",").concat(xn),Zt,Xt),slideUpOut10:Mn("".concat(Jt,",").concat(bn),Zt,Xt),slideUpOut20:Mn("".concat(Jt,",").concat(Cn),Zt,Xt),slideDownOut10:Mn("".concat(Jt,",").concat(Sn),Zt,Xt),slideDownOut20:Mn("".concat(Jt,",").concat(En),Zt,Xt),scaleUpIn100:Mn("".concat(Qt,",").concat(Ln),Zt,Xt),scaleDownIn100:Mn("".concat(Qt,",").concat(An),Zt,Xt),scaleUpOut103:Mn("".concat(Jt,",").concat(wn),Kt,jt),scaleDownOut98:Mn("".concat(Jt,",").concat(kn),Kt,jt),fadeIn100:Mn(Qt,Kt,jt),fadeIn200:Mn(Qt,Gt,jt),fadeIn400:Mn(Qt,Zt,jt),fadeIn500:Mn(Qt,$t,jt),fadeOut100:Mn(Jt,Kt,jt),fadeOut200:Mn(Jt,Gt,jt),fadeOut400:Mn(Jt,Zt,jt),fadeOut500:Mn(Jt,$t,jt),rotate90deg:Mn(Dn,"0.1s",jt),rotateN90deg:Mn(Tn,"0.1s",jt)}),zn={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(In||(In={})),function(e){e.Arabic="'".concat(In.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(In.Cyrillic,"'"),e.EastEuropean="'".concat(In.EastEuropean,"'"),e.Greek="'".concat(In.Greek,"'"),e.Hebrew="'".concat(In.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(In.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(In.Vietnamese,"'"),e.WestEuropean="'".concat(In.WestEuropean,"'"),e.Armenian="'".concat(In.Armenian,"'"),e.Georgian="'".concat(In.Georgian,"'")}(On||(On={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(Hn||(Hn={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Bn||(Bn={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Rn||(Rn={}));var Yn,Un="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",qn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",Xn="ms-Fabric--isFocusVisible";function jn(e,t,n,r,o,a,i,s){return function(e,t){var n,r;void 0===t&&(t={});var o=t.borderRadius,a=t.inset,i=void 0===a?0:a,s=t.width,l=void 0===s?1:s,c=t.position,u=void 0===c?"relative":c,d=t.highContrastStyle,h=t.borderColor,p=void 0===h?e.palette.white:h,f=t.outlineColor,g=void 0===f?e.palette.neutralSecondary:f,m=t.isFocusedOnly,v=void 0===m||m,_=t.pointerEvents;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(Xn," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:_,left:i+1,top:i+1,bottom:i+1,right:i+1,border:"".concat(l,"px solid ").concat(p),outline:"".concat(l,"px solid ").concat(g),zIndex:Yn.FocusStyle,borderRadius:o,selectors:(r={},r[Un]=d,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:a,isFocusedOnly:i,borderRadius:s})}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Yn||(Yn={}));var Kn={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Gn=!1,Zn=0,$n={empty:!0},Qn={},Jn="undefined"==typeof WeakMap?null:WeakMap;function er(){Zn++}function tr(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Jn)return e;if(!Gn){var r=D.getInstance();r&&r.onReset&&D.getInstance().onReset(er),Gn=!0}var o,a=0,i=Zn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l,c=o;(void 0===o||i!==Zn||t>0&&a>t)&&(o=rr(),a=0,i=Zn),c=o;for(var u=0;u<r.length;u++){var d=(l=r[u])?"object"==typeof l||"function"==typeof l?l:(Qn[l]||(Qn[l]={val:l}),Qn[l]):$n;c.map.has(d)||c.map.set(d,rr()),c=c.map.get(d)}return c.hasOwnProperty("value")||(c.value=e.apply(void 0,r),a++),!n||null!==c.value&&void 0!==c.value||(c.value=e.apply(void 0,r)),c.value}}function nr(e){if(!Jn)return e;var t=new Jn;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function rr(){return{map:Jn?new Jn:null}}var or=tr((function(e,t){var n=D.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function ar(e,t,n){return or(e,void 0!==n?n:t.disableGlobalClassNames)}var ir,sr,lr=function(){return lr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},lr.apply(this,arguments)},cr="undefined"==typeof window?e.g:window,ur=cr&&cr.CSPSettings&&cr.CSPSettings.nonce,dr=((sr=cr.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(sr=lr({},sr,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),sr.registeredThemableStyles||(sr=lr({},sr,{registeredThemableStyles:[]})),cr.__themeState__=sr,sr);function hr(e){dr.theme=e,function(){if(dr.theme){for(var e=[],t=0,n=dr.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(a=1)&&(a=3),3!==a&&2!==a||(pr(dr.registeredStyles),dr.registeredStyles=[]),3!==a&&1!==a||(pr(dr.registeredThemableStyles),dr.registeredThemableStyles=[]),o=[].concat.apply([],e),dr.loadStyles?dr.loadStyles(fr(o).styleString,o):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=fr(e),o=r.styleString,a=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",ur&&n.setAttribute("nonce",ur),n.appendChild(document.createTextNode(o)),dr.perf.count++,t.appendChild(n);var i=document.createEvent("HTMLEvents");i.initEvent("styleinsert",!0,!1),i.args={newStyle:n},document.dispatchEvent(i);var s={styleElement:n,themableStyle:e};a?dr.registeredThemableStyles.push(s):dr.registeredStyles.push(s)}}(o))}var o,a}()}function pr(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function fr(e){var t=dr.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,a=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+a+'".'),o||a}return e.rawString})).join(""),themable:n}}!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(ir||(ir={}));var gr,mr={elevation4:ir.depth4,elevation8:ir.depth8,elevation16:ir.depth16,elevation64:ir.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},vr="'Segoe UI', '".concat(In.WestEuropean,"'"),_r={ar:On.Arabic,bg:On.Cyrillic,cs:On.EastEuropean,el:On.Greek,et:On.EastEuropean,he:On.Hebrew,hi:On.Hindi,hr:On.EastEuropean,hu:On.EastEuropean,ja:On.Japanese,kk:On.EastEuropean,ko:On.Korean,lt:On.EastEuropean,lv:On.EastEuropean,pl:On.EastEuropean,ru:On.Cyrillic,sk:On.EastEuropean,"sr-latn":On.EastEuropean,th:On.Thai,tr:On.EastEuropean,uk:On.Cyrillic,vi:On.Vietnamese,"zh-hans":On.ChineseSimplified,"zh-hant":On.ChineseTraditional,hy:On.Armenian,ka:On.Georgian};function yr(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var xr,br,Cr="language",Sr=(xr=function(e){for(var t in _r)if(_r.hasOwnProperty(t)&&e&&0===t.indexOf(e))return _r[t];return vr}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===gr){var t=te(),n="localStorage"===e?function(e){var t=null;try{var n=d();t=n?n.localStorage.getItem(e):null}catch(e){}return t}(Cr):"sessionStorage"===e?ne(Cr):void 0;n&&(gr=n),void 0===gr&&t&&(gr=t.documentElement.getAttribute("lang")),void 0===gr&&(gr="en")}return gr}()),br="".concat(xr,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:yr(Hn.mini,Bn.regular,br),xSmall:yr(Hn.xSmall,Bn.regular,br),small:yr(Hn.small,Bn.regular,br),smallPlus:yr(Hn.smallPlus,Bn.regular,br),medium:yr(Hn.medium,Bn.regular,br),mediumPlus:yr(Hn.mediumPlus,Bn.regular,br),large:yr(Hn.large,Bn.regular,br),xLarge:yr(Hn.xLarge,Bn.semibold,br),xLargePlus:yr(Hn.xLargePlus,Bn.semibold,br),xxLarge:yr(Hn.xxLarge,Bn.semibold,br),xxLargePlus:yr(Hn.xxLargePlus,Bn.semibold,br),superLarge:yr(Hn.superLarge,Bn.semibold,br),mega:yr(Hn.mega,Bn.semibold,br)});function Er(e,t,n,r){!function(e){var t=D.getInstance(),n=Q(ae(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function Lr(e,t,n,r,o){void 0===r&&(r="segoeui");var a="".concat(e,"/").concat(n,"/").concat(r);Er(t,a+"-light",Bn.light,o&&o+" Light"),Er(t,a+"-semilight",Bn.semilight,o&&o+" SemiLight"),Er(t,a+"-regular",Bn.regular,o),Er(t,a+"-semibold",Bn.semibold,o&&o+" SemiBold"),Er(t,a+"-bold",Bn.bold,o&&o+" Bold")}function kr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Ar(e||{},o[r]);return e}function Ar(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var o=t[r];if("object"!=typeof o||null===o||Array.isArray(o))e[r]=o;else{var a=n.indexOf(o)>-1;e[r]=a?o:Ar(e[r]||{},o,n)}}return n.pop(),e}function wr(e,t,n,r,a){return void 0===a&&(a=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(Dr(e,t,o({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),a)}function Dr(e,t,n,r,a){void 0===a&&(a=!1);var i={},s=e||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,m=s.neutralLighter,v=s.neutralDark,_=s.neutralQuaternary,y=s.neutralQuaternaryAlt,x=s.neutralPrimary,b=s.neutralSecondary,C=s.neutralSecondaryAlt,S=s.neutralTertiary,E=s.neutralTertiaryAlt,L=s.neutralLighterAlt,k=s.accent;return l&&(i.bodyBackground=l,i.bodyFrameBackground=l,i.accentButtonText=l,i.buttonBackground=l,i.primaryButtonText=l,i.primaryButtonTextHovered=l,i.primaryButtonTextPressed=l,i.inputBackground=l,i.inputForegroundChecked=l,i.listBackground=l,i.menuBackground=l,i.cardStandoutBackground=l),c&&(i.bodyTextChecked=c,i.buttonTextCheckedHovered=c),u&&(i.link=u,i.primaryButtonBackground=u,i.inputBackgroundChecked=u,i.inputIcon=u,i.inputFocusBorderAlt=u,i.menuIcon=u,i.menuHeader=u,i.accentButtonBackground=u),d&&(i.primaryButtonBackgroundPressed=d,i.inputBackgroundCheckedHovered=d,i.inputIconHovered=d),h&&(i.linkHovered=h),p&&(i.primaryButtonBackgroundHovered=p),f&&(i.inputPlaceholderBackgroundChecked=f),g&&(i.bodyBackgroundChecked=g,i.bodyFrameDivider=g,i.bodyDivider=g,i.variantBorder=g,i.buttonBackgroundCheckedHovered=g,i.buttonBackgroundPressed=g,i.listItemBackgroundChecked=g,i.listHeaderBackgroundPressed=g,i.menuItemBackgroundPressed=g,i.menuItemBackgroundChecked=g),m&&(i.bodyBackgroundHovered=m,i.buttonBackgroundHovered=m,i.buttonBackgroundDisabled=m,i.buttonBorderDisabled=m,i.primaryButtonBackgroundDisabled=m,i.disabledBackground=m,i.listItemBackgroundHovered=m,i.listHeaderBackgroundHovered=m,i.menuItemBackgroundHovered=m),_&&(i.primaryButtonTextDisabled=_,i.disabledSubtext=_),y&&(i.listItemBackgroundCheckedHovered=y),S&&(i.disabledBodyText=S,i.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||S,i.buttonTextDisabled=S,i.inputIconDisabled=S,i.disabledText=S),x&&(i.bodyText=x,i.actionLink=x,i.buttonText=x,i.inputBorderHovered=x,i.inputText=x,i.listText=x,i.menuItemText=x),L&&(i.bodyStandoutBackground=L,i.defaultStateBackground=L),v&&(i.actionLinkHovered=v,i.buttonTextHovered=v,i.buttonTextChecked=v,i.buttonTextPressed=v,i.inputTextHovered=v,i.menuItemTextHovered=v),b&&(i.bodySubtext=b,i.focusBorder=b,i.inputBorder=b,i.smallInputBorder=b,i.inputPlaceholderText=b),C&&(i.buttonBorder=C),E&&(i.disabledBodySubtext=E,i.disabledBorder=E,i.buttonBackgroundChecked=E,i.menuDivider=E),k&&(i.accentButtonBackground=k),(null==t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),o(o({},i),n)}!function(e){if(e){var t="".concat(e,"/fonts");Lr(t,In.Thai,"leelawadeeui-thai","leelawadeeui"),Lr(t,In.Arabic,"segoeui-arabic"),Lr(t,In.Cyrillic,"segoeui-cyrillic"),Lr(t,In.EastEuropean,"segoeui-easteuropean"),Lr(t,In.Greek,"segoeui-greek"),Lr(t,In.Hebrew,"segoeui-hebrew"),Lr(t,In.Vietnamese,"segoeui-vietnamese"),Lr(t,In.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),Lr(t,On.Selawik,"selawik","selawik"),Lr(t,In.Armenian,"segoeui-armenian"),Lr(t,In.Georgian,"segoeui-georgian"),Er("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),Bn.light),Er("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),Bn.semibold)}}(function(){var e,t,n=null===(e=d())||void 0===e?void 0:e.FabricConfig;return null!==(t=null==n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20221209.001/assets"}());var Tr={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Mr(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o;void 0===t&&(t={});var a=kr({},e,t,{semanticColors:Dr(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var i=0,s=Object.keys(a.fonts);i<s.length;i++){var l=s[i];a.fonts[l]=kr(a.fonts[l],t.defaultFontStyle,null===(o=null==t?void 0:t.fonts)||void 0===o?void 0:o[l])}return a}({palette:zn,effects:mr,fonts:Sr,spacing:Tr,isInverted:n,disableGlobalClassNames:!1,semanticColors:wr(zn,mr,void 0,n,t),rtl:void 0},e)}var Pr=Mr({}),Fr=[],Nr="theme";function Vr(){var e,t,n,r=d();(null===(t=null==r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1),Pr=Mr(e,t),hr(o(o(o(o({},Pr.palette),Pr.semanticColors),Pr.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],a=e.fonts[o],i=0,s=Object.keys(a);i<s.length;i++){var l=s[i],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=a[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),t[c]=u}return t}(Pr))),b.applySettings(((n={})[Nr]=Pr,n)),Fr.forEach((function(e){try{e(Pr)}catch(e){}}))}(r.FabricConfig.legacyTheme):b.getSettings([Nr]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(Pr=Mr(r.FabricConfig.theme)),b.applySettings(((e={})[Nr]=Pr,e)))}Vr();var Ir,Or={},Hr=void 0;try{Hr=window}catch(e){}function Br(e,t){if(void 0!==Hr){var n=Hr.__packages__=Hr.__packages__||{};n[e]&&Or[e]||(Or[e]=t,(n[e]=n[e]||[]).push(t))}}function Rr(e){var t=s.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}Br("@fluentui/set-version","6.0.0"),Br("@fluentui/style-utilities","8.9.14"),Vr();var Wr=((Ir={})[Ue.top]=Wn.slideUpIn10,Ir[Ue.bottom]=Wn.slideDownIn10,Ir[Ue.left]=Wn.slideLeftIn10,Ir[Ue.right]=Wn.slideRightIn10,Ir),zr={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Yr=["role","aria-roledescription"],Ur={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Ee.bottomAutoEdge},qr=he({disableCaching:!0});function Xr(e,t,n,r,a){var i=s.useState(),l=i[0],c=i[1],u=s.useRef(0),d=s.useRef(),h=Ht(),p=e.hidden,f=e.target,g=e.finalHeight,m=e.calloutMaxHeight,v=e.onPositioned,_=e.directionalHint;return s.useEffect((function(){if(!p){var i=h.requestAnimationFrame((function(){var i,s,h,p;if(t.current&&n){var _=o(o({},e),{target:r.current,bounds:a()}),y=n.cloneNode(!0);y.style.maxHeight=m?"".concat(m):"",y.style.visibility="hidden",null===(i=n.parentElement)||void 0===i||i.appendChild(y);var x=d.current===f?l:void 0,b=g?function(e,t,n,r){return function(e,t,n,r){return Ft(e,t,n,r,!0)}(e,t,n,r)}(_,t.current,y,x):function(e,t,n,r){return Ft(e,t,n,r)}(_,t.current,y,x);null===(s=n.parentElement)||void 0===s||s.removeChild(y),!l&&b||l&&b&&(p=b,!Gr((h=l).elementPosition,p.elementPosition)||!Gr(h.beakPosition.elementPosition,p.beakPosition.elementPosition))&&u.current<5?(u.current++,c(b)):u.current>0&&(u.current=0,null==v||v(l))}}),n);return d.current=f,function(){h.cancelAnimationFrame(i),d.current=void 0}}c(void 0),u.current=0}),[p,_,h,n,m,t,r,g,a,v,l,e,f]),l}var jr=s.memo(s.forwardRef((function(e,t){var n=Ye(Ur,e),r=n.styles,a=n.style,i=n.ariaLabel,l=n.ariaDescribedBy,c=n.ariaLabelledBy,u=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,m=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,y=n.hideOverflow,x=void 0===y?!!_:y,b=n.backgroundColor,C=n.calloutMaxHeight,S=n.onScroll,E=n.shouldRestoreFocus,L=void 0===E||E,k=n.target,A=n.hidden,w=n.onLayerMounted,D=n.popupProps,T=s.useRef(null),M=s.useState(null),P=M[0],F=M[1],N=s.useCallback((function(e){F(e)}),[]),V=Rt(T,t),I=function(e,t){var n=s.useRef(),r=s.useRef(null),o=zt();if(!e||e!==n.current||"string"==typeof e){if(e)if("string"==typeof e){var a=te(null==t?void 0:t.current);r.current=a?a.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,o]}(n.target,{current:P}),O=I[0],H=I[1],B=function(e,t,n){var r=e.bounds,o=e.minPagePadding,a=void 0===o?Ur.minPagePadding:o,i=e.target,l=s.useState(!1),c=l[0],u=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||c){var e="function"==typeof r?n?r(i,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var a=e.getBoundingClientRect();r=(a.left+a.right)/2,o=(a.top+a.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var i={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(i={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return i}(e,t)}(t.current,n),e={top:e.top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),d.current=e,c&&u(!1)}return d.current}),[r,a,i,t,n,c]),p=Ht();return Bt(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(n,O,H),R=Xr(n,T,P,O,B),W=function(e,t,n){var r,o=e.calloutMaxHeight,a=e.finalHeight,i=e.directionalHint,l=e.directionalHintFixed,c=e.hidden,u=s.useState(),d=u[0],h=u[1],p=null!==(r=null==n?void 0:n.elementPosition)&&void 0!==r?r:{},f=p.top,g=p.bottom;return s.useEffect((function(){var e,n,r=null!==(e=t())&&void 0!==e?e:{},a=r.top,i=r.bottom;"number"==typeof f&&i?n=i-f:"number"==typeof g&&"number"==typeof a&&i&&(n=i-a-g),h(!o&&!c||o&&n&&o>n?n:o||void 0)}),[g,o,a,i,l,t,c,n,f]),d}(n,B,R),z=function(e,t,n,r,o){var a=e.hidden,i=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=s.useRef(!1),g=Ht(),m=Rr([function(){f.current=!0},function(){f.current=!1}]),v=!!t;return s.useEffect((function(){var e=function(e){v&&!l&&m(e)},t=function(e){c||p&&p(e)||null==i||i(e)},s=function(e){u||m(e)},m=function(e){var t=e.composedPath?e.composedPath():[],a=t.length>0?t[0]:e.target,s=n.current&&!Ae(n.current,a);if(s&&f.current)f.current=!1;else if(!r.current&&s||e.target!==o&&s&&(!r.current||"stopPropagation"in r.current||d||a!==r.current&&!Ae(r.current,a))){if(p&&p(e))return;null==i||i(e)}},_=function(e){h&&((!p||p(e))&&(p||u)||(null==o?void 0:o.document.hasFocus())||null!==e.relatedTarget||null==i||i(e))},y=new Promise((function(n){g.setTimeout((function(){if(!a&&o){var r=[ze(o,"scroll",e,!0),ze(o,"resize",t,!0),ze(o.document.documentElement,"focus",s,!0),ze(o.document.documentElement,"click",s,!0),ze(o,"blur",_,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){y.then((function(e){return e()}))}}),[a,g,n,r,o,i,h,d,u,c,l,v,p]),m}(n,R,T,O,H),Y=z[0],U=z[1],q=(null==R?void 0:R.elementPosition.top)&&(null==R?void 0:R.elementPosition.bottom),X=o(o({},null==R?void 0:R.elementPosition),{maxHeight:W});if(q&&(X.bottom=void 0),function(e,t,n){var r=e.hidden,o=e.setInitialFocus,a=Ht(),i=!!t;s.useEffect((function(){if(!r&&o&&i&&n){var e=a.requestAnimationFrame((function(){return Pe(n)}),n);return function(){return a.cancelAnimationFrame(e)}}}),[r,i,a,n,o])}(n,R,P),s.useEffect((function(){A||null==w||w()}),[A]),!H)return null;var j=x,K=d&&!!k,G=qr(r,{theme:n.theme,className:u,overflowYHidden:j,calloutWidth:f,positions:R,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),Z=o(o({maxHeight:C||"100%"},a),j&&{overflowY:"hidden"}),$=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:V,className:G.container,style:$},s.createElement("div",o({},et(n,Je,Yr),{className:tt(G.root,R&&R.targetEdge&&Wr[R.targetEdge]),style:R?o({},X):zr,tabIndex:-1,ref:N}),K&&s.createElement("div",{className:G.beak,style:Kr(R)}),K&&s.createElement("div",{className:G.beakCurtain}),s.createElement(Ut,o({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:i,ariaLabelledBy:c,className:G.calloutMain,onDismiss:n.onDismiss,onMouseDown:Y,onMouseUp:U,onRestoreFocus:n.onRestoreFocus,onScroll:S,shouldRestoreFocus:L,style:Z},D),h)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||function(e,t){if(!e||!t)return!e&&!t;for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}(e,t)}));function Kr(e){var t,n,r=o(o({},null===(t=null==e?void 0:e.beakPosition)||void 0===t?void 0:t.elementPosition),{display:(null===(n=null==e?void 0:e.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=0,r.top=0),r}function Gr(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function Zr(e){return{height:e,width:e}}jr.displayName="CalloutContentBase";var $r={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Qr=E(jr,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,a=e.calloutWidth,i=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=e.doNotLayer,d=ar($r,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:u?Yn.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Un]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!a&&{width:a},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Zr(i),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"});const Jr=s.createContext(void 0),eo=()=>()=>{};Jr.Provider;var to=ReactDOM;new WeakMap,new WeakMap;var no=s.createContext(void 0),ro=function(e){var t=e.providerRef,n=e.layerRoot,r=s.useState([])[0],o=s.useContext(no),a=void 0!==o&&!n,i=s.useMemo((function(){return a?void 0:{providerRef:t,registeredProviders:r,registerProvider:function(e){r.push(e),null==o||o.registerProvider(e)},unregisterProvider:function(e){null==o||o.unregisterProvider(e);var t=r.indexOf(e);t>=0&&r.splice(t,1)}}}),[t,r,o,a]);return s.useEffect((function(){if(i)return i.registerProvider(i.providerRef),function(){return i.unregisterProvider(i.providerRef)}}),[i]),i?s.createElement(no.Provider,{value:i},e.children):s.createElement(s.Fragment,null,e.children)};function oo(e,t){void 0===e&&(e={});var n=ao(t)?t:function(e){return function(t){return e?o(o({},t),e):t}}(t);return n(e)}function ao(e){return"function"==typeof e}var io=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return r(t,e),t.prototype.componentDidMount=function(){b.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){b.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return s.createElement(C.Consumer,null,(function(n){var r=function(e,t){var n,r,a,i=(t||{}).customizations,s=void 0===i?{settings:{},scopedSettings:{}}:i;return{customizations:{settings:oo(s.settings,e.settings),scopedSettings:(n=s.scopedSettings,r=e.scopedSettings,void 0===n&&(n={}),(ao(r)?r:(void 0===(a=r)&&(a={}),function(e){var t=o({},e);for(var n in a)a.hasOwnProperty(n)&&(t[n]=o(o({},e[n]),a[n]));return t}))(n)),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),s.createElement(C.Provider,{value:r},e.props.children)}))},t}(s.Component),so=he(),lo=tr((function(e,t){return Mr(o(o({},e),{rtl:t}))})),co=s.forwardRef((function(e,t){var n=e.className,r=e.theme,a=e.applyTheme,i=e.applyThemeToBody,l=e.styles,c=so(l,{theme:r,applyTheme:a,className:n}),u=s.useRef(null);return function(e,t,n){var r=t.bodyThemed;s.useEffect((function(){if(e){var t=te(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(i,c,u),s.createElement(s.Fragment,null,function(e,t,n,r){var a=t.root,i=e.as,l=void 0===i?"div":i,c=e.dir,u=e.theme,d=et(e,Je,["dir"]),h=function(e){var t=e.theme,n=e.dir,r=le(t)?"rtl":"ltr",o=le()?"rtl":"ltr",a=n||r;return{rootDir:a!==r||a!==o?a:n,needsTheme:a!==r}}(e),p=h.rootDir,f=h.needsTheme,g=s.createElement(ro,{providerRef:n},s.createElement(l,o({dir:p},d,{className:a,ref:Rt(n,r)})));return f&&(g=s.createElement(io,{settings:{theme:lo(u,"rtl"===c)}},g)),g}(e,c,u,t))}));co.displayName="FabricBase";var uo,ho={fontFamily:"inherit"},po={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},fo=E(co,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[ar(po,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":ho,"& input":ho,"& textarea":ho},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),go="data-portal-element",mo={},vo={},_o="fluent-default-layer-host",yo="#".concat(_o),xo=c()?s.useLayoutEffect:s.useEffect,bo=he(),Co=s.forwardRef((function(e,t){var n,r=null!==(n=s.useContext(Jr))&&void 0!==n?n:eo,a=s.useRef(null),i=Rt(a,t),l=s.useRef(),c=s.useRef(null),u=s.useState(!1),d=u[0],h=u[1],p=e.children,f=e.className,g=e.eventBubblingEnabled,m=e.fabricProps,v=e.hostId,_=e.insertFirst,y=e.onLayerDidMount,x=void 0===y?function(){}:y,b=e.onLayerMounted,C=void 0===b?function(){}:b,S=e.onLayerWillUnmount,E=e.styles,L=e.theme,k=Rt(c,null==m?void 0:m.ref),A=bo(E,{theme:L,className:f,isNotHost:!v}),w=function(){null==S||S();var e=l.current;l.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},D=function(){var e,t=te(a.current);if(t){var n=function(e){var t,n;if(v){var r=function(e){var t=vo[e];return t&&t[0]||void 0}(v);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(v))&&void 0!==n?n:null}var o=yo,a=o?e.querySelector(o):null;return a||(a=function(e){var t=e.createElement("div");return t.setAttribute("id",_o),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}(e)),a}(t);if(n){w();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=A.root,r.setAttribute(go,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var a=o._virtual.children.indexOf(n);a>-1&&o._virtual.children.splice(a,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,a.current),_?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,h(!0)}}};return xo((function(){D(),v&&function(e,t){mo[e]||(mo[e]=[]),mo[e].push(t);var n=vo[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(v,D);var e=l.current?r(l.current):void 0;return function(){e&&e(),w(),v&&function(e,t){var n=mo[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete mo[e])}var o=vo[e];if(o)for(var a=0,i=o;a<i.length;a++)i[a].notifyLayersChanged()}(v,D)}}),[v]),s.useEffect((function(){l.current&&d&&(null==C||C(),null==x||x(),h(!1))}),[d,C,x]),s.createElement("span",{className:"ms-layer",ref:i},l.current&&to.createPortal(s.createElement(ro,{layerRoot:!0,providerRef:k},s.createElement(fo,o({},!g&&(uo||(uo={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(e){return uo[e]=So}))),uo),m,{className:tt(A.content,null==m?void 0:m.className),ref:k}),p)),l.current))}));Co.displayName="LayerBase";var So=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},Eo={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Lo=E(Co,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=ar(Eo,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Yn.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),ko=s.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,i=a(e,["layerProps","doNotLayer"]),l=s.createElement(Qr,o({},i,{doNotLayer:r,ref:t}));return r?l:s.createElement(Lo,o({},n),l)}));ko.displayName="Callout";var Ao=Array.prototype.slice;function wo(e){return e}var Do=1,To=2,Mo=3,Po=4,Fo=1e-6;function No(e){return"translate("+(e+.5)+",0)"}function Vo(e){return"translate(0,"+(e+.5)+")"}function Io(e){return function(t){return+e(t)}}function Oo(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Ho(){return!this.__axis}function Bo(e,t){var n=[],r=null,o=null,a=6,i=6,s=3,l=e===Do||e===Po?-1:1,c=e===Po||e===To?"x":"y",u=e===Do||e===Mo?No:Vo;function d(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==o?t.tickFormat?t.tickFormat.apply(t,n):wo:o,f=Math.max(a,0)+s,g=t.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(t.bandwidth?Oo:Io)(t.copy()),y=d.selection?d.selection():d,x=y.selectAll(".domain").data([null]),b=y.selectAll(".tick").data(h,t).order(),C=b.exit(),S=b.enter().append("g").attr("class","tick"),E=b.select("line"),L=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(S),E=E.merge(S.append("line").attr("stroke","#000").attr(c+"2",l*a)),L=L.merge(S.append("text").attr("fill","#000").attr(c,l*f).attr("dy",e===Do?"0em":e===Mo?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),L=L.transition(d),C=C.transition(d).attr("opacity",Fo).attr("transform",(function(e){return isFinite(e=_(e))?u(e):this.getAttribute("transform")})),S.attr("opacity",Fo).attr("transform",(function(e){var t=this.parentNode.__axis;return u(t&&isFinite(t=t(e))?t:_(e))}))),C.remove(),x.attr("d",e===Po||e==To?"M"+l*i+","+m+"H0.5V"+v+"H"+l*i:"M"+m+","+l*i+"V0.5H"+v+"V"+l*i),b.attr("opacity",1).attr("transform",(function(e){return u(_(e))})),E.attr(c+"2",l*a),L.attr(c,l*f).text(p),y.filter(Ho).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===To?"start":e===Po?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Ao.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Ao.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Ao.call(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(o=e,d):o},d.tickSize=function(e){return arguments.length?(a=i=+e,d):a},d.tickSizeInner=function(e){return arguments.length?(a=+e,d):a},d.tickSizeOuter=function(e){return arguments.length?(i=+e,d):i},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d}function Ro(e){return Bo(To,e)}function Wo(e){return Bo(Mo,e)}function zo(e){return Bo(Po,e)}function Yo(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Uo(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Yo(t(e),n)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var a=r+o>>>1;e(t[a],n)<0?r=a+1:o=a}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var a=r+o>>>1;e(t[a],n)>0?o=a:r=a+1}return r}}}var qo=Uo(Yo);qo.right,qo.left;var Xo=Array.prototype;function jo(e,t){var n,r,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=n;++a<o;)null!=(n=e[a])&&n>r&&(r=n)}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=n;++a<o;)null!=(n=t(e[a],a,e))&&n>r&&(r=n);return r}function Ko(e,t){var n,r,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=n;++a<o;)null!=(n=e[a])&&r>n&&(r=n)}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=n;++a<o;)null!=(n=t(e[a],a,e))&&r>n&&(r=n);return r}function Go(e,t){var n,r=e.length,o=-1,a=0;if(null==t)for(;++o<r;)(n=+e[o])&&(a+=n);else for(;++o<r;)(n=+t(e[o],o,e))&&(a+=n);return a}Xo.slice,Xo.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Zo=Math.sqrt(50),$o=Math.sqrt(10),Qo=Math.sqrt(2);function Jo(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,o);return o>=0?(a>=Zo?10:a>=$o?5:a>=Qo?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=Zo?10:a>=$o?5:a>=Qo?2:1)}function ea(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/o;return a>=Zo?o*=10:a>=$o?o*=5:a>=Qo&&(o*=2),t<e?-o:o}function ta(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function na(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ra(e){let t,n,r;function o(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<0?o=t+1:a=t}while(o<a)}return o}return 2!==e.length?(t=ta,n=(t,n)=>ta(e(t),n),r=(t,n)=>e(t)-n):(t=e===ta||e===na?e:oa,n=e,r=e),{left:o,center:function(e,t,n=0,a=e.length){const i=o(e,t,n,a-1);return i>n&&r(e[i-1],t)>-r(e[i],t)?i-1:i},right:function(e,r,o=0,a=e.length){if(o<a){if(0!==t(r,r))return a;do{const t=o+a>>>1;n(e[t],r)<=0?o=t+1:a=t}while(o<a)}return o}}}function oa(){return 0}const aa=ra(ta),ia=aa.right;aa.left,ra((function(e){return null===e?NaN:+e})).center;var sa=ia;function la(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ca(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ua(){}var da=.7,ha=1/da,pa="\\s*([+-]?\\d+)\\s*",fa="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ga="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ma=/^#([0-9a-f]{3,8})$/,va=new RegExp("^rgb\\("+[pa,pa,pa]+"\\)$"),_a=new RegExp("^rgb\\("+[ga,ga,ga]+"\\)$"),ya=new RegExp("^rgba\\("+[pa,pa,pa,fa]+"\\)$"),xa=new RegExp("^rgba\\("+[ga,ga,ga,fa]+"\\)$"),ba=new RegExp("^hsl\\("+[fa,ga,ga]+"\\)$"),Ca=new RegExp("^hsla\\("+[fa,ga,ga,fa]+"\\)$"),Sa={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ea(){return this.rgb().formatHex()}function La(){return this.rgb().formatRgb()}function ka(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ma.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Aa(t):3===n?new Ta(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Ta(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Ta(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=va.exec(e))?new Ta(t[1],t[2],t[3],1):(t=_a.exec(e))?new Ta(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ya.exec(e))?wa(t[1],t[2],t[3],t[4]):(t=xa.exec(e))?wa(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ba.exec(e))?Na(t[1],t[2]/100,t[3]/100,1):(t=Ca.exec(e))?Na(t[1],t[2]/100,t[3]/100,t[4]):Sa.hasOwnProperty(e)?Aa(Sa[e]):"transparent"===e?new Ta(NaN,NaN,NaN,0):null}function Aa(e){return new Ta(e>>16&255,e>>8&255,255&e,1)}function wa(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ta(e,t,n,r)}function Da(e,t,n,r){return 1===arguments.length?((o=e)instanceof ua||(o=ka(o)),o?new Ta((o=o.rgb()).r,o.g,o.b,o.opacity):new Ta):new Ta(e,t,n,null==r?1:r);var o}function Ta(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ma(){return"#"+Fa(this.r)+Fa(this.g)+Fa(this.b)}function Pa(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Fa(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Na(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ia(e,t,n,r)}function Va(e){if(e instanceof Ia)return new Ia(e.h,e.s,e.l,e.opacity);if(e instanceof ua||(e=ka(e)),!e)return new Ia;if(e instanceof Ia)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n<r):n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new Ia(i,s,l,e.opacity)}function Ia(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Oa(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Ha(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}function Ba(e){return function(){return e}}function Ra(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ba(isNaN(e)?t:e)}la(ua,ka,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ea,formatHex:Ea,formatHsl:function(){return Va(this).formatHsl()},formatRgb:La,toString:La}),la(Ta,Da,ca(ua,{brighter:function(e){return e=null==e?ha:Math.pow(ha,e),new Ta(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?da:Math.pow(da,e),new Ta(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ma,formatHex:Ma,formatRgb:Pa,toString:Pa})),la(Ia,(function(e,t,n,r){return 1===arguments.length?Va(e):new Ia(e,t,n,null==r?1:r)}),ca(ua,{brighter:function(e){return e=null==e?ha:Math.pow(ha,e),new Ia(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?da:Math.pow(da,e),new Ia(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ta(Oa(e>=240?e-240:e+120,o,r),Oa(e,o,r),Oa(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var Wa=function e(t){var n=function(e){return 1==(e=+e)?Ra:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ba(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Da(e)).r,(t=Da(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Ra(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function za(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=Da(t[n]),a[n]=r.r||0,i[n]=r.g||0,s[n]=r.b||0;return a=e(a),i=e(i),s=e(s),r.opacity=1,function(e){return r.r=a(e),r.g=i(e),r.b=s(e),r+""}}}function Ya(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,a=new Array(o),i=new Array(r);for(n=0;n<o;++n)a[n]=$a(e[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(e){for(n=0;n<o;++n)i[n]=a[n](e);return i}}function Ua(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function qa(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Xa(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=$a(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}za((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],a=e[r+1],i=r>0?e[r-1]:2*o-a,s=r<t-1?e[r+2]:2*a-o;return Ha((n-r/t)*t,i,o,a,s)}})),za((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],a=e[r%t],i=e[(r+1)%t],s=e[(r+2)%t];return Ha((n-r/t)*t,o,a,i,s)}}));var ja=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ka=new RegExp(ja.source,"g");function Ga(e,t){var n,r,o,a=ja.lastIndex=Ka.lastIndex=0,i=-1,s=[],l=[];for(e+="",t+="";(n=ja.exec(e))&&(r=Ka.exec(t));)(o=r.index)>a&&(o=t.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i:i,x:qa(n,r)})),a=Ka.lastIndex;return a<t.length&&(o=t.slice(a),s[i]?s[i]+=o:s[++i]=o),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Za(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(a){for(n=0;n<r;++n)o[n]=e[n]*(1-a)+t[n]*a;return o}}function $a(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?Ba(t):("number"===o?qa:"string"===o?(n=ka(t))?(t=n,Wa):Ga:t instanceof ka?Wa:t instanceof Date?Ua:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Ya:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Xa:qa:Za))(e,t)}function Qa(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Ja(e){return+e}var ei=[0,1];function ti(e){return e}function ni(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function ri(e,t,n){var r=e[0],o=e[1],a=t[0],i=t[1];return o<r?(r=ni(o,r),a=n(i,a)):(r=ni(r,o),a=n(a,i)),function(e){return a(r(e))}}function oi(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),a=new Array(r),i=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++i<r;)o[i]=ni(e[i],e[i+1]),a[i]=n(t[i],t[i+1]);return function(t){var n=sa(e,t,1,r)-1;return a[n](o[n](t))}}function ai(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ii(){return function(){var e,t,n,r,o,a,i=ei,s=ei,l=$a,c=ti;function u(){var e,t,n,l=Math.min(i.length,s.length);return c!==ti&&(e=i[0],t=i[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?oi:ri,o=a=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(i.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((a||(a=r(s,i.map(e),qa)))(n)))},d.domain=function(e){return arguments.length?(i=Array.from(e,Ja),u()):i.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=Qa,u()},d.clamp=function(e){return arguments.length?(c=!!e||ti,u()):c!==ti},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(ti,ti)}function si(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var li,ci=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ui(e){if(!(t=ci.exec(e)))throw new Error("invalid format: "+e);var t;return new di({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function di(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function hi(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function pi(e){return(e=hi(Math.abs(e)))?e[1]:NaN}function fi(e,t){var n=hi(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}ui.prototype=di.prototype,di.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var gi={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return fi(100*e,t)},r:fi,s:function(e,t){var n=hi(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(li=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+hi(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function mi(e){return e}var vi,_i,yi,xi=Array.prototype.map,bi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ci(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,o,a,i,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(i=Jo(e,t,n))||!isFinite(i))return[];if(i>0){let n=Math.round(e/i),r=Math.round(t/i);for(n*i<e&&++n,r*i>t&&--r,a=new Array(o=r-n+1);++s<o;)a[s]=(n+s)*i}else{i=-i;let n=Math.round(e*i),r=Math.round(t*i);for(n/i<e&&++n,r/i>t&&--r,a=new Array(o=r-n+1);++s<o;)a[s]=(n+s)/i}return r&&a.reverse(),a}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var o,a=ea(e,t,n);switch((r=ui(null==r?",f":r)).type){case"s":var i=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pi(t)/3)))-pi(Math.abs(e)))}(a,i))||(r.precision=o),yi(r,i);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pi(t)-pi(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-pi(Math.abs(e)))}(a))||(r.precision=o-2*("%"===r.type))}return _i(r)}(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,a=t(),i=0,s=a.length-1,l=a[i],c=a[s],u=10;for(c<l&&(o=l,l=c,c=o,o=i,i=s,s=o);u-- >0;){if((o=Jo(l,c,n))===r)return a[i]=l,a[s]=c,t(a);if(o>0)l=Math.floor(l/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;l=Math.ceil(l*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function Si(){var e=ii();return e.copy=function(){return ai(e,Si())},si.apply(e,arguments),Ci(e)}vi=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?mi:(t=xi.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,a=[],i=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[i=(i+1)%t.length];return a.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",i=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?mi:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(xi.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=ui(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,_=e.type;"n"===_?(g=!0,_="g"):gi[_]||(void 0===m&&(m=12),v=!0,_="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?o:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?a:/[%p]/.test(_)?l:"",b=gi[_],C=/[defgprs%]/.test(_);function S(e){var o,a,l,h=y,S=x;if("c"===_)S=b(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:b(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:c:"-"===d||"("===d?"":d)+h,S=("s"===_?bi[8+li/3]:"")+S+(E&&"("===d?")":""),C)for(o=-1,a=e.length;++o<a;)if(48>(l=e.charCodeAt(o))||l>57){S=(46===l?i+e.slice(o+1):e.slice(o))+S,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var L=h.length+e.length+S.length,k=L<f?new Array(f-L+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?f-S.length:1/0),k=""),n){case"<":e=h+e+S+k;break;case"=":e=h+k+e+S;break;case"^":e=k.slice(0,L=k.length>>1)+h+e+S+k.slice(L);break;default:e=k+h+e+S}return s(e)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=ui(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(pi(t)/3))),o=Math.pow(10,-r),a=bi[8+r/3];return function(e){return n(o*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),_i=vi.format,yi=vi.formatPrefix;const Ei=1e3,Li=6e4,ki=36e5,Ai=864e5,wi=6048e5,Di=31536e6;var Ti=new Date,Mi=new Date;function Pi(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,a){var i,s=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(i=new Date(+n)),t(n,a),e(n)}while(i<n&&n<r);return s},o.filter=function(n){return Pi((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Ti.setTime(+t),Mi.setTime(+r),e(Ti),e(Mi),Math.floor(n(Ti,Mi))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Fi=Pi((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Fi.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Pi((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Fi:null};var Ni=Fi,Vi=(Fi.range,Pi((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Ei)}),(function(e,t){return(t-e)/Ei}),(function(e){return e.getUTCSeconds()}))),Ii=Vi,Oi=(Vi.range,Pi((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ei)}),(function(e,t){e.setTime(+e+t*Li)}),(function(e,t){return(t-e)/Li}),(function(e){return e.getMinutes()}))),Hi=Oi,Bi=(Oi.range,Pi((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ei-e.getMinutes()*Li)}),(function(e,t){e.setTime(+e+t*ki)}),(function(e,t){return(t-e)/ki}),(function(e){return e.getHours()}))),Ri=Bi,Wi=(Bi.range,Pi((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Li)/Ai),(e=>e.getDate()-1))),zi=Wi;function Yi(e){return Pi((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Li)/wi}))}Wi.range;var Ui=Yi(0),qi=Yi(1),Xi=Yi(2),ji=Yi(3),Ki=Yi(4),Gi=Yi(5),Zi=Yi(6),$i=(Ui.range,qi.range,Xi.range,ji.range,Ki.range,Gi.range,Zi.range,Pi((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Qi=$i,Ji=($i.range,Pi((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));Ji.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Pi((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var es=Ji,ts=(Ji.range,Pi((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Li)}),(function(e,t){return(t-e)/Li}),(function(e){return e.getUTCMinutes()}))),ns=ts,rs=(ts.range,Pi((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*ki)}),(function(e,t){return(t-e)/ki}),(function(e){return e.getUTCHours()}))),os=rs,as=(rs.range,Pi((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ai}),(function(e){return e.getUTCDate()-1}))),is=as;function ss(e){return Pi((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/wi}))}as.range;var ls=ss(0),cs=ss(1),us=ss(2),ds=ss(3),hs=ss(4),ps=ss(5),fs=ss(6),gs=(ls.range,cs.range,us.range,ds.range,hs.range,ps.range,fs.range,Pi((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),ms=gs,vs=(gs.range,Pi((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));vs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Pi((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var _s=vs;function ys(e,t,n,r,o,a){const i=[[Ii,1,Ei],[Ii,5,5e3],[Ii,15,15e3],[Ii,30,3e4],[a,1,Li],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,ki],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,Ai],[r,2,1728e5],[n,1,wi],[t,1,2592e6],[t,3,7776e6],[e,1,Di]];function s(t,n,r){const o=Math.abs(n-t)/r,a=ra((([,,e])=>e)).right(i,o);if(a===i.length)return e.every(ea(t/Di,n/Di,r));if(0===a)return Ni.every(Math.max(ea(t,n,r),1));const[s,l]=i[o/i[a-1][2]<i[a][2]/o?a-1:a];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),a=o?o.range(e,+t+1):[];return r?a.reverse():a},s]}vs.range;const[xs,bs]=ys(_s,ms,ls,is,os,ns),[Cs,Ss]=ys(es,Qi,Ui,zi,Ri,Hi);var Es=new Date,Ls=new Date;function ks(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,a){var i,s=[];if(n=o.ceil(n),a=null==a?1:Math.floor(a),!(n<r&&a>0))return s;do{s.push(i=new Date(+n)),t(n,a),e(n)}while(i<n&&n<r);return s},o.filter=function(n){return ks((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return Es.setTime(+t),Ls.setTime(+r),e(Es),e(Ls),Math.floor(n(Es,Ls))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var As=1e3,ws=6e4,Ds=36e5,Ts=864e5,Ms=6048e5;function Ps(e){return ks((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Ms}))}var Fs=Ps(0),Ns=Ps(1),Vs=Ps(2),Is=Ps(3),Os=Ps(4),Hs=Ps(5),Bs=Ps(6),Rs=(Fs.range,Ns.range,Vs.range,Is.range,Os.range,Hs.range,Bs.range,ks((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ts}),(function(e){return e.getUTCDate()-1}))),Ws=Rs;function zs(e){return ks((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ws)/Ms}))}Rs.range;var Ys=zs(0),Us=zs(1),qs=zs(2),Xs=zs(3),js=zs(4),Ks=zs(5),Gs=zs(6),Zs=(Ys.range,Us.range,qs.range,Xs.range,js.range,Ks.range,Gs.range,ks((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ws)/Ts}),(function(e){return e.getDate()-1}))),$s=Zs,Qs=(Zs.range,ks((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));Qs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ks((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var Js=Qs,el=(Qs.range,ks((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));el.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ks((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var tl=el;function nl(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rl(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ol(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function al(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,c=ml(o),u=vl(o),d=ml(a),h=vl(a),p=ml(i),f=vl(i),g=ml(s),m=vl(s),v=ml(l),_=vl(l),y={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ol,e:Ol,f:zl,H:Hl,I:Bl,j:Rl,L:Wl,m:Yl,M:Ul,p:function(e){return o[+(e.getHours()>=12)]},Q:_c,s:yc,S:ql,u:Xl,U:jl,V:Kl,w:Gl,W:Zl,x:null,X:null,y:$l,Y:Ql,Z:Jl,"%":vc},x={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:ec,e:ec,f:ac,H:tc,I:nc,j:rc,L:oc,m:ic,M:sc,p:function(e){return o[+(e.getUTCHours()>=12)]},Q:_c,s:yc,S:lc,u:cc,U:uc,V:dc,w:hc,W:pc,x:null,X:null,y:fc,Y:gc,Z:mc,"%":vc},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:Al,e:Al,f:Fl,H:Dl,I:Dl,j:wl,L:Pl,m:kl,M:Tl,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Vl,s:Il,S:Ml,u:yl,U:xl,V:bl,w:_l,W:Cl,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:El,Y:Sl,Z:Ll,"%":Nl};function C(e,t){return function(n){var r,o,a,i=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(i.push(e.slice(l,s)),null!=(o=ul[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(a=t[r])&&(r=a(n,o)),i.push(r),l=s+1);return i.push(e.slice(l,s)),i.join("")}}function S(e,t){return function(n){var r,o,a=ol(1900);if(E(a,e,n+="",0)!=n.length)return null;if("Q"in a)return new Date(a.Q);if("p"in a&&(a.H=a.H%12+12*a.p),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(o=(r=rl(ol(a.y))).getUTCDay(),r=o>4||0===o?Ns.ceil(r):Ns(r),r=Ws.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(o=(r=t(ol(a.y))).getDay(),r=o>4||0===o?Us.ceil(r):Us(r),r=$s.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),o="Z"in a?rl(ol(a.y)).getUTCDay():t(ol(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(o+5)%7:a.w+7*a.U-(o+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,rl(a)):t(a)}}function E(e,t,n,r){for(var o,a,i=0,s=t.length,l=n.length;i<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=b[o in ul?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",nl);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,rl);return t.toString=function(){return e},t}}}el.range;var il,sl,ll,cl,ul={"-":"",_:" ",0:"0"},dl=/^\s*\d+/,hl=/^%/,pl=/[\\^$*+?|[\]().{}]/g;function fl(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a<n?new Array(n-a+1).join(t)+o:o)}function gl(e){return e.replace(pl,"\\$&")}function ml(e){return new RegExp("^(?:"+e.map(gl).join("|")+")","i")}function vl(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function _l(e,t,n){var r=dl.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function yl(e,t,n){var r=dl.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function bl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Cl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Sl(e,t,n){var r=dl.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function El(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ll(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function kl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Al(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wl(e,t,n){var r=dl.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Dl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ml(e,t,n){var r=dl.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Pl(e,t,n){var r=dl.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Fl(e,t,n){var r=dl.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nl(e,t,n){var r=hl.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Vl(e,t,n){var r=dl.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Il(e,t,n){var r=dl.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ol(e,t){return fl(e.getDate(),t,2)}function Hl(e,t){return fl(e.getHours(),t,2)}function Bl(e,t){return fl(e.getHours()%12||12,t,2)}function Rl(e,t){return fl(1+$s.count(Js(e),e),t,3)}function Wl(e,t){return fl(e.getMilliseconds(),t,3)}function zl(e,t){return Wl(e,t)+"000"}function Yl(e,t){return fl(e.getMonth()+1,t,2)}function Ul(e,t){return fl(e.getMinutes(),t,2)}function ql(e,t){return fl(e.getSeconds(),t,2)}function Xl(e){var t=e.getDay();return 0===t?7:t}function jl(e,t){return fl(Ys.count(Js(e),e),t,2)}function Kl(e,t){var n=e.getDay();return e=n>=4||0===n?js(e):js.ceil(e),fl(js.count(Js(e),e)+(4===Js(e).getDay()),t,2)}function Gl(e){return e.getDay()}function Zl(e,t){return fl(Us.count(Js(e),e),t,2)}function $l(e,t){return fl(e.getFullYear()%100,t,2)}function Ql(e,t){return fl(e.getFullYear()%1e4,t,4)}function Jl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+fl(t/60|0,"0",2)+fl(t%60,"0",2)}function ec(e,t){return fl(e.getUTCDate(),t,2)}function tc(e,t){return fl(e.getUTCHours(),t,2)}function nc(e,t){return fl(e.getUTCHours()%12||12,t,2)}function rc(e,t){return fl(1+Ws.count(tl(e),e),t,3)}function oc(e,t){return fl(e.getUTCMilliseconds(),t,3)}function ac(e,t){return oc(e,t)+"000"}function ic(e,t){return fl(e.getUTCMonth()+1,t,2)}function sc(e,t){return fl(e.getUTCMinutes(),t,2)}function lc(e,t){return fl(e.getUTCSeconds(),t,2)}function cc(e){var t=e.getUTCDay();return 0===t?7:t}function uc(e,t){return fl(Fs.count(tl(e),e),t,2)}function dc(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Os(e):Os.ceil(e),fl(Os.count(tl(e),e)+(4===tl(e).getUTCDay()),t,2)}function hc(e){return e.getUTCDay()}function pc(e,t){return fl(Ns.count(tl(e),e),t,2)}function fc(e,t){return fl(e.getUTCFullYear()%100,t,2)}function gc(e,t){return fl(e.getUTCFullYear()%1e4,t,4)}function mc(){return"+0000"}function vc(){return"%"}function _c(e){return+e}function yc(e){return Math.floor(+e/1e3)}il=al({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),sl=il.format,il.parse,ll=il.utcFormat,cl=il.utcParse;var xc="%Y-%m-%dT%H:%M:%S.%LZ";function bc(e){return new Date(e)}function Cc(e){return e instanceof Date?+e:+new Date(+e)}function Sc(e,t,n,r,o,a,i,s,l,c){var u=ii(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),_=c("%b %d"),y=c("%B"),x=c("%Y");function b(e){return(l(e)<e?p:s(e)<e?f:i(e)<e?g:a(e)<e?m:r(e)<e?o(e)<e?v:_:n(e)<e?y:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,Cc)):h().map(bc)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?b:c(t)},u.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(function(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i<a&&(n=r,r=o,o=n,n=a,a=i,i=n),e[r]=t.floor(a),e[o]=t.ceil(i),e}(n,e)):u},u.copy=function(){return ai(u,Sc(e,t,n,r,o,a,i,s,l,c))},u}function Ec(){return si.apply(Sc(Cs,Ss,es,Qi,Ui,zi,Ri,Hi,Ii,sl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}Date.prototype.toISOString||ll(xc),+new Date("2000-01-01T00:00:00.000Z")||cl(xc);class Lc extends Map{constructor(e,t=Tc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(Ac(this,e))}has(e){return super.has(Ac(this,e))}set(e,t){return super.set(wc(this,e),t)}delete(e){return super.delete(Dc(this,e))}}class kc extends Set{constructor(e,t=Tc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(Ac(this,e))}add(e){return super.add(wc(this,e))}delete(e){return super.delete(Dc(this,e))}}function Ac({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function wc({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Dc({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Tc(e){return null!==e&&"object"==typeof e?e.valueOf():e}const Mc=Symbol("implicit");function Pc(){var e=new Lc,t=[],n=[],r=Mc;function o(o){let a=e.get(o);if(void 0===a){if(r!==Mc)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Lc;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return Pc(t,n).unknown(r)},si.apply(o,arguments),o}function Fc(){var e,t,n=Pc().unknown(void 0),r=n.domain,o=n.range,a=0,i=1,s=!1,l=0,c=0,u=.5;function d(){var n=r().length,d=i<a,h=d?i:a,p=d?a:i;e=(p-h)/Math.max(1,n-l+2*c),s&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*u,t=e*(1-l),s&&(h=Math.round(h),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(o);++r<o;)a[r]=e+r*n;return a}(n).map((function(t){return h+e*t}));return o(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([a,i]=e,a=+a,i=+i,d()):[a,i]},n.rangeRound=function(e){return[a,i]=e,a=+a,i=+i,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,d()):c},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},n.copy=function(){return Fc(r(),[a,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},si.apply(d(),arguments)}var Nc="http://www.w3.org/1999/xhtml",Vc={svg:"http://www.w3.org/2000/svg",xhtml:Nc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ic(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Vc.hasOwnProperty(t)?{space:Vc[t],local:e}:e}function Oc(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Nc&&t.documentElement.namespaceURI===Nc?t.createElement(e):t.createElementNS(n,e)}}function Hc(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Bc(e){var t=Ic(e);return(t.local?Hc:Oc)(t)}function Rc(){}function Wc(e){return null==e?Rc:function(){return this.querySelector(e)}}function zc(){return[]}var Yc=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Uc=document.documentElement;if(!Uc.matches){var qc=Uc.webkitMatchesSelector||Uc.msMatchesSelector||Uc.mozMatchesSelector||Uc.oMatchesSelector;Yc=function(e){return function(){return qc.call(this,e)}}}}var Xc=Yc;function jc(e){return new Array(e.length)}function Kc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Kc.prototype={constructor:Kc,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Gc(e,t,n,r,o,a){for(var i,s=0,l=t.length,c=a.length;s<c;++s)(i=t[s])?(i.__data__=a[s],r[s]=i):n[s]=new Kc(e,a[s]);for(;s<l;++s)(i=t[s])&&(o[s]=i)}function Zc(e,t,n,r,o,a,i){var s,l,c,u={},d=t.length,h=a.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+i.call(l,l.__data__,s,t),c in u?o[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+i.call(e,a[s],s,a)])?(r[s]=l,l.__data__=a[s],u[c]=null):n[s]=new Kc(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(o[s]=l)}function $c(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Qc(e){return function(){this.removeAttribute(e)}}function Jc(e){return function(){this.removeAttributeNS(e.space,e.local)}}function eu(e,t){return function(){this.setAttribute(e,t)}}function tu(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nu(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function ru(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function ou(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function au(e){return function(){this.style.removeProperty(e)}}function iu(e,t,n){return function(){this.style.setProperty(e,t,n)}}function su(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function lu(e){return function(){delete this[e]}}function cu(e,t){return function(){this[e]=t}}function uu(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function du(e){return e.trim().split(/^|\s+/)}function hu(e){return e.classList||new pu(e)}function pu(e){this._node=e,this._names=du(e.getAttribute("class")||"")}function fu(e,t){for(var n=hu(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function gu(e,t){for(var n=hu(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function mu(e){return function(){fu(this,e)}}function vu(e){return function(){gu(this,e)}}function _u(e,t){return function(){(t.apply(this,arguments)?fu:gu)(this,e)}}function yu(){this.textContent=""}function xu(e){return function(){this.textContent=e}}function bu(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Cu(){this.innerHTML=""}function Su(e){return function(){this.innerHTML=e}}function Eu(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Lu(){this.nextSibling&&this.parentNode.appendChild(this)}function ku(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Au(){return null}function wu(){var e=this.parentNode;e&&e.removeChild(this)}function Du(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Tu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}pu.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Mu={},Pu=null;function Fu(e,t,n){return e=Nu(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Nu(e,t,n){return function(r){var o=Pu;Pu=r;try{e.call(this,this.__data__,t,n)}finally{Pu=o}}}function Vu(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?t.length=o:delete this.__on}}}function Iu(e,t,n){var r=Mu.hasOwnProperty(e.type)?Fu:Nu;return function(o,a,i){var s,l=this.__on,c=r(t,a,i);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function Ou(e,t,n){var r=ou(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Hu(e,t){return function(){return Ou(this,e,t)}}function Bu(e,t){return function(){return Ou(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Mu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ru=[null];function Wu(e,t){this._groups=e,this._parents=t}function zu(e){return"string"==typeof e?new Wu([[document.querySelector(e)]],[document.documentElement]):new Wu([[e]],Ru)}Wu.prototype=function(){return new Wu([[document.documentElement]],Ru)}.prototype={constructor:Wu,select:function(e){"function"!=typeof e&&(e=Wc(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i,s=t[o],l=s.length,c=r[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(i=e.call(a,a.__data__,u,s))&&("__data__"in a&&(i.__data__=a.__data__),c[u]=i);return new Wu(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?zc:function(){return this.querySelectorAll(e)}}(e));for(var t=this._groups,n=t.length,r=[],o=[],a=0;a<n;++a)for(var i,s=t[a],l=s.length,c=0;c<l;++c)(i=s[c])&&(r.push(e.call(i,i.__data__,c,s)),o.push(i));return new Wu(r,o)},filter:function(e){"function"!=typeof e&&(e=Xc(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var a,i=t[o],s=i.length,l=r[o]=[],c=0;c<s;++c)(a=i[c])&&e.call(a,a.__data__,c,i)&&l.push(a);return new Wu(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),u=-1,this.each((function(e){f[++u]=e})),f;var n,r=t?Zc:Gc,o=this._parents,a=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var i=a.length,s=new Array(i),l=new Array(i),c=new Array(i),u=0;u<i;++u){var d=o[u],h=a[u],p=h.length,f=e.call(d,d&&d.__data__,u,o),g=f.length,m=l[u]=new Array(g),v=s[u]=new Array(g);r(d,h,m,v,c[u]=new Array(p),f,t);for(var _,y,x=0,b=0;x<g;++x)if(_=m[x]){for(x>=b&&(b=x+1);!(y=v[b])&&++b<g;);_._next=y||null}}return(s=new Wu(s,o))._enter=l,s._exit=c,s},enter:function(){return new Wu(this._enter||this._groups.map(jc),this._parents)},exit:function(){return new Wu(this._exit||this._groups.map(jc),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,o=n.length,a=Math.min(r,o),i=new Array(r),s=0;s<a;++s)for(var l,c=t[s],u=n[s],d=c.length,h=i[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)i[s]=t[s];return new Wu(i,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],a=o.length-1,i=o[a];--a>=0;)(r=o[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=$c);for(var n=this._groups,r=n.length,o=new Array(r),a=0;a<r;++a){for(var i,s=n[a],l=s.length,c=o[a]=new Array(l),u=0;u<l;++u)(i=s[u])&&(c[u]=i);c.sort(t)}return new Wu(o,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,a=r.length;o<a;++o){var i=r[o];if(i)return i}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o,a=t[n],i=0,s=a.length;i<s;++i)(o=a[i])&&e.call(o,o.__data__,i,a);return this},attr:function(e,t){var n=Ic(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Jc:Qc:"function"==typeof t?n.local?ru:nu:n.local?tu:eu)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?au:"function"==typeof t?su:iu)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||ou(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?lu:"function"==typeof t?uu:cu)(e,t)):this.node()[e]},classed:function(e,t){var n=du(e+"");if(arguments.length<2){for(var r=hu(this.node()),o=-1,a=n.length;++o<a;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?_u:t?mu:vu)(n,t))},text:function(e){return arguments.length?this.each(null==e?yu:("function"==typeof e?bu:xu)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Cu:("function"==typeof e?Eu:Su)(e)):this.node().innerHTML},raise:function(){return this.each(Lu)},lower:function(){return this.each(ku)},append:function(e){var t="function"==typeof e?e:Bc(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Bc(e),r=null==t?Au:"function"==typeof t?t:Wc(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(wu)},clone:function(e){return this.select(e?Tu:Du)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,a=function(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}(e+""),i=a.length;if(!(arguments.length<2)){for(s=t?Iu:Vu,null==n&&(n=!1),r=0;r<i;++r)this.each(s(a[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<i;++r)if((o=a[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Bu:Hu)(e,t))}};var Yu=0;function Uu(){this._="@"+(++Yu).toString(36)}function qu(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}function Xu(e){return"string"==typeof e?new Wu([document.querySelectorAll(e)],[document.documentElement]):new Wu([null==e?[]:e],Ru)}Uu.prototype=function(){return new Uu}.prototype={constructor:Uu,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var ju,Ku,Gu,Zu,$u=ks((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*As)}),(function(e,t){return(t-e)/As}),(function(e){return e.getUTCSeconds()})),Qu=$u,Ju=($u.range,ks((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*As)}),(function(e,t){e.setTime(+e+t*ws)}),(function(e,t){return(t-e)/ws}),(function(e){return e.getMinutes()}))),ed=Ju,td=(Ju.range,ks((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*As-e.getMinutes()*ws)}),(function(e,t){e.setTime(+e+t*Ds)}),(function(e,t){return(t-e)/Ds}),(function(e){return e.getHours()}))),nd=td,rd=(td.range,ks((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),od=rd;function ad(e,t,n){var r=e.domainNRangeValues,o=e.showRoundOffXTickValues,a=void 0!==o&&o,i=e.xAxistickSize,s=void 0===i?6:i,l=e.tickPadding,c=void 0===l?10:l,u=e.xAxisCount,d=void 0===u?6:u,h=e.xAxisElement,p=Si().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);a&&p.nice();var f=Wo(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(e,t){var r="number"==typeof e?e:e.valueOf();return yd(r,n)}));return t===Ku.HorizontalBarChartWithAxis&&f.tickSizeInner(-(e.containerHeight-e.margins.top)),h&&zu(h).call(f).selectAll("text").attr("aria-hidden","true"),p}function id(e,t,n,r,o,a){return void 0===a&&(a=!1),r===Ku.HorizontalBarChartWithAxis?function(e,t,n,r){var o=e.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,i=e.yAxisElement,s=void 0===i?null:i,l=e.yMaxValue,c=void 0===l?0:l,u=e.yMinValue,d=void 0===u?0:u,h=e.containerHeight,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,v=void 0===m?0:m,_=e.yAxisTickFormat,y=e.yAxisTickCount,x=void 0===y?4:y,b=v||a.endValue,C=b>c?b:c,S=a.startValue<d?0:d,E=Si().domain([S,C]).range([h-p.bottom,p.top]),L=(t?Ro(E):zo(E)).tickPadding(g).ticks(x);return _?L.tickFormat(_):L.tickFormat(_i(".2~s")),s&&zu(s).call(L).selectAll("text").attr("aria-hidden","true"),E}(e,t):function(e,t,n,r){void 0===r&&(r=!1);var o=e.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,i=e.yAxisElement,s=void 0===i?null:i,l=e.yMaxValue,c=void 0===l?0:l,u=e.yMinValue,d=void 0===u?0:u,h=e.containerHeight,p=e.containerWidth,f=e.margins,g=e.tickPadding,m=void 0===g?12:g,v=e.maxOfYVal,_=void 0===v?0:v,y=e.yAxisTickFormat,x=e.yAxisTickCount,b=void 0===x?4:x,C=e.eventAnnotationProps,S=e.eventLabelHeight,E=_||a.endValue,L=E>c?E:c,k=a.startValue<d?0:d,A=function(e,t,n){for(var r=Math.ceil((e-t)/n),o=[t,t+r];o[o.length-1]<e;)o.push(o[o.length-1]+r);return o}(L,k,b),w=Si().domain([k,A[A.length-1]]).range([h-f.bottom,f.top+(C?S:0)]),D=(!t&&r||t&&!r?Ro(w):zo(w)).tickPadding(m).tickValues(A).tickSizeInner(-(p-f.left-f.right));return y?D.tickFormat(y):D.tickFormat(_i(".2~s")),s&&zu(s).call(D).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=A,w}(e,t,n,a)}rd.range,function(e){e[e.AreaChart=0]="AreaChart",e[e.LineChart=1]="LineChart",e[e.VerticalBarChart=2]="VerticalBarChart",e[e.VerticalStackedBarChart=3]="VerticalStackedBarChart",e[e.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",e[e.HeatMapChart=5]="HeatMapChart",e[e.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(Ku||(Ku={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Gu||(Gu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Zu||(Zu={}));function sd(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return o(o({legend:e.legend},t),{color:e.color,index:e.index})}));t=t.concat(n)}));var n,r=[];return t.forEach((function(e,n){e.x=e.x instanceof Date?e.x.getTime():e.x;var o=[{legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}];t.slice(n+1).forEach((function(t){t.x=t.x instanceof Date?t.x.getTime():t.x,e.x===t.x&&o.push({legend:t.legend,y:t.y,color:t.color,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index})})),r.push({x:e.x,values:o})})),"x",(n=r).map((function(e){return e.x})).map((function(e,t,n){return n.indexOf(e)===t&&t})).filter((function(e){return n[e]})).map((function(e){return n[e]}))}function ld(e,t){var n=0;return e.forEach((function(e){var r=document.createElement("canvas").getContext("2d");r.font=window.getComputedStyle(t,null).getPropertyValue("font-size");var o=r.measureText(e.y).width;n=Math.max(o,n)})),n}function cd(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var o=zu("body").append("div").attr("id",r).attr("class",t).style("opacity",0),a=n.selectAll("#BaseSpan")._groups[0],i=a&&Object.keys(a).length,s=[],l=0;l<i;l++){var c=a[l].dataset&&Object.values(a[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(e){zu(u[e]).on("mouseover",(function(t){o.style("opacity",.9),o.html(s[e]).style("left",Pu.pageX+"px").style("top",Pu.pageY-28+"px")})).on("mouseout",(function(e){o.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function ud(e){var t=!1;return e&&e.length>0&&e.forEach((function(e){e.data.length>0&&(t=e.data[0].x instanceof Date)})),t}function dd(e,t,n,r,o,a,s,l,c){var u;if(a===Gu.NumericAxis)switch(r){case Ku.AreaChart:case Ku.LineChart:u=function(e,t,n,r){var o=Ko(e,(function(e){return Ko(e.data,(function(e){return e.x}))})),a=jo(e,(function(e){return jo(e.data,(function(e){return e.x}))})),i=t.left,s=n-t.right;return r?{dStartValue:a,dEndValue:o,rStartValue:i,rEndValue:s}:{dStartValue:o,dEndValue:a,rStartValue:i,rEndValue:s}}(e,t,n,o);break;case Ku.VerticalStackedBarChart:u=function(e,t,n,r,o){var a=Ko(e,(function(e){return e.x})),i=jo(e,(function(e){return e.x})),s=t.left+o/2,l=n-t.right-o/2;return r?{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}}(e,t,n,o,s);break;case Ku.VerticalBarChart:u=function(e,t,n,r,o){var a=jo(e,(function(e){return e.x})),i=Ko(e,(function(e){return e.x})),s=t.left+o/2,l=n-t.right-o/2;return r?{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}:{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}}(e,t,n,o,s);break;case Ku.HorizontalBarChartWithAxis:u=function(e,t,n,r,o){var a=jo(e,(function(e){return e.x})),i=r?t.left:t.left+o,s=r?n-t.right-o:n-t.right;return r?{dStartValue:a,dEndValue:0,rStartValue:i,rEndValue:s}:{dStartValue:0,dEndValue:a,rStartValue:i,rEndValue:s}}(e,t,n,o,c);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===Gu.DateAxis)switch(r){case Ku.AreaChart:case Ku.LineChart:u=function(e,t,n,r,o){void 0===o&&(o=[]);var a=Ko(e,(function(e){return Ko(e.data,(function(e){return e.x}))})),s=jo(e,(function(e){return jo(e.data,(function(e){return e.x}))})),l=Ko(i(i([],o,!0),[a],!1)),c=jo(i(i([],o,!0),[s],!1)),u=t.left,d=n-t.right;return r?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(e,t,n,o,l);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case Ku.VerticalStackedBarChart:case Ku.GroupedVerticalBarChart:case Ku.VerticalBarChart:case Ku.HeatMapChart:u=function(e,t,n){var r=e.left,o=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:o,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:o}}(t,n,o);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function hd(e,t,n){var r,o,a;switch(void 0===n&&(n=Zu.NumericAxis),t){case Ku.AreaChart:case Ku.LineChart:r=function(e){var t=jo(e,(function(e){return jo(e.data,(function(e){return e.y}))}));return{startValue:Ko(e,(function(e){return Ko(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case Ku.VerticalStackedBarChart:a=jo(o=e,(function(e){return e.y})),r={startValue:Ko(o,(function(e){return e.y})),endValue:a};break;case Ku.VerticalBarChart:r=function(e){var t=jo(e,(function(e){return e.y}));return{startValue:Ko(e,(function(e){return e.y})),endValue:t}}(e);break;case Ku.HorizontalBarChartWithAxis:r=function(e,t){if(void 0!==t&&t===Zu.NumericAxis){var n=jo(e,(function(e){return e.y}));return{startValue:Ko(e,(function(e){return e.y})),endValue:n}}return{startValue:0,endValue:0}}(e,n);break;default:r={startValue:0,endValue:0}}return r}var pd,fd,gd=function(e,t){if(t)switch(typeof e){case"string":return Gu.StringAxis;case"number":return Gu.NumericAxis;default:return Gu.DateAxis}else switch(typeof e){case"string":return Zu.StringAxis;case"number":return Zu.NumericAxis;default:return Zu.DateAxis}};!function(e){e[e.circle=0]="circle",e[e.square=1]="square",e[e.triangle=2]="triangle",e[e.diamond=3]="diamond",e[e.pyramid=4]="pyramid",e[e.hexagon=5]="hexagon",e[e.pentagon=6]="pentagon",e[e.octagon=7]="octagon"}(pd||(pd={})),function(e){e[e.dottedLine=0]="dottedLine"}(fd||(fd={}));var md,vd=((ju={})[pd.circle]={widthRatio:1},ju[pd.square]={widthRatio:1},ju[pd.triangle]={widthRatio:1},ju[pd.diamond]={widthRatio:1},ju[pd.pyramid]={widthRatio:1},ju[pd.hexagon]={widthRatio:2},ju[pd.pentagon]={widthRatio:1.168},ju[pd.octagon]={widthRatio:2.414},ju),_d=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},yd=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e:Number(e).toLocaleString(t)):e},xd=he(),bd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,o=e.YValue,a=e.styles,i=e.theme,l=e.ratio,c=e.descriptionMessage,u=e.culture;return this._classNames=xd(a,{theme:i,color:t,XValue:r,isRatioPresent:!!l}),s.createElement("div",{className:this._classNames.calloutContentRoot},s.createElement("div",{className:this._classNames.calloutDateTimeContainer},s.createElement("div",{className:this._classNames.calloutContentX},r," ")),s.createElement("div",{className:this._classNames.calloutInfoContainer},s.createElement("div",{className:this._classNames.calloutBlockContainer},s.createElement("div",{className:this._classNames.calloutlegendText},yd(n,u)),s.createElement("div",{className:this._classNames.calloutContentY},yd(o,u))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},yd(l[0],u)),"/",s.createElement("span",{className:this._classNames.denominator},yd(l[1],u))))),!!c&&s.createElement("div",{className:this._classNames.descriptionMessage},c))},t}(s.Component),Cd=function(e){var t=e.color,n=e.XValue,r=e.theme,o=e.isRatioPresent,a=void 0!==o&&o;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:r.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[r.fonts.small,{lineHeight:"16px",opacity:"0.8",color:r.semanticColors.bodySubtext}],calloutBlockContainer:[r.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:r.semanticColors.bodyText,borderLeft:"4px solid ".concat(t)}],calloutlegendText:[r.fonts.small,{lineHeight:"16px",color:r.semanticColors.bodyText}],calloutContentY:[r.fonts.xxLarge,{color:t||r.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[a&&{display:"flex",alignItems:"flex-end"}],ratio:[r.fonts.small,{marginLeft:"6px",color:r.semanticColors.bodyText}],numerator:{fontWeight:Bn.bold},denominator:{fontWeight:Bn.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(r.semanticColors.menuDivider)}]}},Sd=E(bd,Cd);function Ed(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function Ld(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Ed(e,e[n],t[n]))}(e,{componentDidMount:kd,componentDidUpdate:Ad,componentWillUnmount:wd})}function kd(){Dd(this.props.componentRef,this)}function Ad(e){e.componentRef!==this.props.componentRef&&(Dd(e.componentRef,null),Dd(this.props.componentRef,this))}function wd(){Dd(this.props.componentRef,null)}function Dd(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function Td(e,t){var n=ke(e,(function(e){return t===e||e.hasAttribute(go)}));return null!==n&&n.hasAttribute(go)}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(md||(md={}));var Md,Pd="data-is-focusable",Fd="data-focuszone-id",Nd="tabindex",Vd="data-no-vertical-wrap",Id="data-no-horizontal-wrap",Od=999999999,Hd=-999999999;function Bd(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var Rd,Wd={},zd=new Set,Yd=["text","number","password","email","tel","url","search","textarea"],Ud=!1,qd=function(e){function t(n){var r,o,a,i,l,c=e.call(this,n)||this;c._root=s.createRef(),c._mergedRef=(l={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.resolver&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(l.refs,e)||(l.resolver=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(t):o&&(o.current=t)}}}(l)),l.refs=e,l.resolver}),c._onFocus=function(e){if(!c._portalContainsElement(e.target)){var t,n=c.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,a=n.stopFocusPropagation,i=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=c._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==c._root.current;){if(Oe(h)&&c._isImmediateDescendantOfZone(h)){t=h;break}h=Le(h,Ud)}if(l&&e.target===c._root.current){var p=u&&"function"==typeof u&&c._root.current&&u(c._root.current);p&&Oe(p)?(t=p,p.focus()):(c.focus(!0),c._activeElement&&(t=null))}var f=!c._activeElement;t&&t!==c._activeElement&&((d||f)&&c._setFocusAlignment(t,!0,!0),c._activeElement=t,f&&c._updateTabIndexes()),r&&r(c._activeElement,e),(a||o)&&e.stopPropagation(),s?s(e):i&&i()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(e){if(!c._portalContainsElement(e.target)&&!c.props.disabled){for(var t=e.target,n=[];t&&t!==c._root.current;)n.push(t),t=Le(t,Ud);for(;n.length&&((t=n.pop())&&Oe(t)&&c._setActiveElement(t,!0),!He(t)););}},c._onKeyDown=function(e,t){if(!c._portalContainsElement(e.target)){var n=c.props,r=n.direction,o=n.disabled,a=n.isInnerZoneKeystroke,i=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(o||(c.props.onKeyDown&&c.props.onKeyDown(e),e.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((s&&s(e)||a&&a(e))&&c._isImmediateDescendantOfZone(e.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!Be(e.target))return;if(!c.focusElement(Ne(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(e.target,e))break;return;case 37:if(r!==md.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusLeft(t)))break;return;case 39:if(r!==md.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusRight(t)))break;return;case 38:if(r!==md.horizontal&&(c._preventDefaultWhenHandled(e),c._moveFocusUp()))break;return;case 40:if(r!==md.horizontal&&(c._preventDefaultWhenHandled(e),c._moveFocusDown()))break;return;case 34:if(!i&&c._moveFocusPaging(!0))break;return;case 33:if(!i&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(e.target)){var u=!1;if(c._processingTabKey=!0,u=r!==md.vertical&&c._shouldWrapFocus(c._activeElement,Id)?(le(t)?!e.shiftKey:e.shiftKey)?c._moveFocusLeft(t):c._moveFocusRight(t):e.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,u)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(e.target)||c._isElementInput(e.target)&&!c._shouldInputLoseFocus(e.target,!1))return!1;var d=c._root.current&&c._root.current.firstChild;if(c._root.current&&d&&c.focusElement(Ne(c._root.current,d,!0)))break;return;case 35:if(c._isContentEditableElement(e.target)||c._isElementInput(e.target)&&!c._shouldInputLoseFocus(e.target,!0))return!1;var h=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(Fe(c._root.current,h,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(e,t,n){var r=c._focusAlignment.left||c._focusAlignment.x||0,o=Math.floor(n.top),a=Math.floor(t.bottom),i=Math.floor(n.bottom),s=Math.floor(t.top);return e&&o>a||!e&&i<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):c._shouldWrapFocus(c._activeElement,Vd)?Od:Hd},Ld(c),c._id=xe("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var u=null===(o=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===o||o;return c._shouldRaiseClicksOnEnter=null!==(a=n.shouldRaiseClicksOnEnter)&&void 0!==a?a:u,c._shouldRaiseClicksOnSpace=null!==(i=n.shouldRaiseClicksOnSpace)&&void 0!==i?i:u,c}return r(t,e),t.getOuterZones=function(){return zd.size},t._onKeyDownCapture=function(e){9===e.which&&zd.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Wd[this._id]=this,e){for(var n=Le(e,Ud);n&&n!==this._getDocument().body&&1===n.nodeType;){if(He(n)){this._isInnerZone=!0;break}n=Le(n,Ud)}this._isInnerZone||(zd.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!Ae(this._root.current,this._activeElement,Ud)||this._defaultFocusElement&&!Ae(this._root.current,this._defaultFocusElement,Ud))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,o=t;r<o.length;r++){var a=o[r],i=n.children[Math.min(a,n.children.length-1)];if(!i)break;n=i}return Oe(n)&&Ve(n)?n:Ne(e,n,!0)||Fe(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Wd[this._id],this._isInnerZone||(zd.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,a=t.rootProps,i=t.ariaDescribedBy,l=t.ariaLabelledBy,c=t.className,u=et(this.props,Ze),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(Pr=Mr({},h)),Pr);return s.createElement(d,o({"aria-labelledby":l,"aria-describedby":i},u,a,{className:tt((Md||(Md=ot({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Md),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(Pd)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Wd[n.getAttribute(Fd)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&Ae(this._root.current,this._activeElement)&&Oe(this._activeElement)&&(!t||Ie(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(Ne(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(Fe(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=Ae(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=Le(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(He(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(Pd)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Bd(n,t),!0;n=Le(n,Ud)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(He(e))return Wd[e.getAttribute(Fd)];for(var t=e.firstElementChild;t;){if(He(t))return Wd[t.getAttribute(Fd)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,a=-1,i=void 0,s=!1,l=this.props.direction===md.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?Ne(this._root.current,o):Fe(this._root.current,o),!l){i=o;break}if(o){var u=t(c,o.getBoundingClientRect());if(-1===u&&-1===a){i=o;break}if(u>-1&&(-1===a||u<a)&&(a=u,i=o),a>=0&&u<0)break}}while(o);if(i&&i!==this._activeElement)s=!0,this.focusElement(i);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Ne(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Fe(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var a=-1,i=Math.floor(o.top),s=Math.floor(r.bottom);return i<s?e._shouldWrapFocus(e._activeElement,Vd)?Od:Hd:((-1===t&&i>=s||i===t)&&(t=i,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var a=-1,i=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return i>l?e._shouldWrapFocus(e._activeElement,Vd)?Od:Hd:((-1===t&&i<=l||s===t)&&(t=s,a=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),a)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Id);return!!this._moveFocus(le(e),(function(r,o){var a=-1;return(le(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==md.vertical?a=r.right-o.right:n||(a=Hd),a}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Id);return!!this._moveFocus(!le(e),(function(r,o){var a=-1;return(le(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==md.vertical?a=o.left-r.left:n||(a=Hd),a}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=it(n);if(!r)return!1;var o=-1,a=void 0,i=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?Ne(this._root.current,n):Fe(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(e,c,u);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>i?(i=d,o=g,a=n):!e&&p<s?(s=p,o=g,a=n):(-1===o||g<=o)&&(o=g,a=n))}}while(n);var m=!1;if(a&&a!==this._activeElement)m=!0,this.focusElement(a),this._setFocusAlignment(a,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(Ne(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Fe(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===md.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,a=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:a}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=a)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=Le(e,Ud);t&&t!==this._root.current&&t!==this._getDocument().body;){if(He(t))return t;t=Le(t,Ud)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!Ae(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Oe(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];He(r)?"true"===r.getAttribute(Pd)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"0"))):(r.getAttribute&&"false"===r.getAttribute(Pd)&&r.setAttribute(Nd,"-1"),Oe(r)?this.props.disabled?r.setAttribute(Nd,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Nd)&&r.setAttribute(Nd,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&Yd.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,a=e.readOnly;if(r||n>0&&!t&&!a||n!==o.length&&t&&!a||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||function(e,t){return"true"!==function(e,t){var n=ke(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Td(e,this._root.current)},t.prototype._getDocument=function(){return te(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:md.bidirectional,shouldRaiseClicks:!0},t}(s.Component);function Xd(e){return function(e){return e.clientWidth<e.scrollWidth}(e)||function(e){return e.clientHeight<e.scrollHeight}(e)}!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(Rd||(Rd={}));var jd,Kd=he(),Gd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?s.createElement("p",{className:t._classNames.subText},e.content):s.createElement("div",{className:t._classNames.subText},e.content)},t}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,a=e.directionalHintForRTL,i=e.styles,l=e.id,c=e.maxWidth,u=e.onRenderContent,d=void 0===u?this._onRenderContent:u,h=e.targetElement,p=e.theme;return this._classNames=Kd(i,{theme:p,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:c}),s.createElement(ko,o({target:h,directionalHint:r,directionalHintForRTL:a},n,et(this.props,Je,["id"]),{className:this._classNames.root}),s.createElement("div",{className:this._classNames.content,id:l,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:Ee.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(s.Component),Zd=E(Gd,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,a=void 0===o?0:o,i=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+a)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Wn.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:i,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(jd||(jd={}));var $d,Qd,Jd=he(),eh=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=s.createRef(),r._defaultTooltipId=xe("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case Rd.Parent:return r._tooltipHost.current.parentElement;case Rd.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipContentFocus=function(e){t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var n=r.props,o=n.overflowMode,a=n.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,void 0!==o){var i=r._getTargetElement();if(i&&!Xd(i))return}if(!e.target||!Td(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==jd.zero){var s=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),s)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===It||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case jd.medium:return 300;case jd.long:return 500;default:return 0}},Ld(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Ot(r),r}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,a=e.directionalHint,i=e.directionalHintForRTL,l=e.hostClassName,c=e.id,u=e.setAriaDescribedBy,d=void 0===u||u,h=e.tooltipProps,p=e.styles,f=e.theme;this._classNames=Jd(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=c||this._defaultTooltipId,v=o(o({id:"".concat(m,"--tooltip"),content:r,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:i,calloutProps:nt({},t,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},et(this.props,Je,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(e){return(null==e?void 0:e.content)?s.createElement(s.Fragment,null,e.content):null})):r,y=g&&!!_,x=d&&g&&_?m:void 0;return s.createElement("div",o({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x}),n,y&&s.createElement(Zd,o({},v)),s.createElement("div",{hidden:!0,id:m,style:Kn},_))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:jd.medium},t}(s.Component),th={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},nh=E(eh,(function(e){var t=e.className,n=e.theme;return{root:[ar(th,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),rh=function(e){function t(t){var n=e.call(this,t)||this;return n._tooltipChild=s.createRef(),n._checkTextOverflow=function(){var e=n._getTargetElement(),t=!!e&&Xd(e);t!==n.state.textOverflow&&n.setState({textOverflow:t})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new Ot(n),n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.content,r=e.accessibilityData;return s.createElement(nh,{overflowMode:Rd.Self,hostClassName:t,content:n},s.createElement("span",o({},_d(r),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),n))},t.prototype.componentDidMount=function(){var e=this._getTargetElement();window.ResizeObserver&&e&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(e))},t.prototype.componentWillUnmount=function(){var e;null===(e=this._resizeObserver)||void 0===e||e.disconnect(),this._async.dispose()},t}(s.Component),oh=he(),ah=function(e){function t(t){var n=e.call(this,t)||this;return n._isRTL=le(),n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||12,n._classNames=oh(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor,variant:n.props.variant,hideLabels:n.props.hideLabels})},n._getChartDataText=function(e){return n.props.barChartCustomData?s.createElement("div",{role:"text"},n.props.barChartCustomData(e)):n._getDefaultTextData(e)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||(e.horizontalBarChartdata?"".concat(e.horizontalBarChartdata.x,"/").concat(e.horizontalBarChartdata.y):0);return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=xe("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme;this._adjustProps();var a=r.palette,i=0;return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(t,n){i=t.chartData&&t.chartData[0]&&t.chartData[0].horizontalBarChartdata.x?t.chartData[0].horizontalBarChartdata.x:0,t.chartData[1]={legend:"",horizontalBarChartdata:{x:t.chartData[0].horizontalBarChartdata.y-i,y:t.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var r=e.props.variant===_e.AbsoluteScale?null:e._getChartDataText(t),o=e._createBars(t,a),l=e._uniqLineText+"_"+n,c=oh(e.props.styles,{theme:e.props.theme,width:e.props.width,showTriangle:!!t.chartData[0].data,variant:e.props.variant});return s.createElement("div",{key:n},s.createElement("div",{className:c.items},s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&s.createElement(rh,{className:e._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),r)),t.chartData[0].data&&e._createBenchmark(t),s.createElement(qd,{direction:md.horizontal,className:e._classNames.chartWrapper},s.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},s.createElement("g",{id:l,key:l,ref:function(n){e._refCallback(n,t.chartData[0].legend)},onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()}},o)))))})),s.createElement(ko,o({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Ee.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(Sd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=Se(this._refArray,(function(e){return e.index===t.legend}));this._calloutAnchorPoint=t,this.setState({isCalloutVisible:!0,hoverValue:e,lineColor:t.color,legend:t.legend,refSelected:n.refElement,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,barCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},t.prototype._hoverOff=function(){},t.prototype._getDefaultTextData=function(e){var t=this.props.culture,n=this.props.chartDataMode||"default",r=e.chartData[0],a=r.horizontalBarChartdata.x,i=r.horizontalBarChartdata.y,l=_d(e.chartDataAccessibilityData,"text",!1);switch(n){case"default":return s.createElement("div",o({className:this._classNames.chartTitleRight},l),yd(a,t));case"fraction":return s.createElement("div",o({},l),s.createElement("span",{className:this._classNames.chartTitleRight},yd(a,t)),s.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+yd(i,t)));case"percentage":var c="".concat(yd(Math.round(a/i*100),t),"%");return s.createElement("div",o({className:this._classNames.chartTitleRight},l),c)}},t.prototype._createBenchmark=function(e){var t=e.chartData[0].horizontalBarChartdata.y,n=e.chartData[0].data,r={left:"calc("+Math.round((n||0)/t*100)+"% - 4px)"};return s.createElement("div",{className:this._classNames.benchmarkContainer},s.createElement("div",{className:this._classNames.triangle,style:r}))},t.prototype._createBars=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=[],a=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),i=0,l=0,c=0;e.chartData.map((function(e,t){var n=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return(l=n/a*100)<0?l=0:l<1&&0!==l&&(l=1),c+=l}));var u=0!==c?c/100:1,d=e.chartData.map((function(t,c){var d=t.color?t.color:r[Math.floor(4*Math.random()+1)],h=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;c>0&&(i+=l),(l=h/a*100)<0?l=0:l<1&&0!==l?l=1/u:l/=u,o.push(i);var p=t.horizontalBarChartdata.x;if(1===c&&n.props.variant===_e.AbsoluteScale){if(n.props.hideLabels)return s.createElement("text",{key:c});var f=e.chartData[0].horizontalBarChartdata.x;return s.createElement("text",{key:c,x:"".concat(n._isRTL?100-o[c]:o[c],"%"),y:n._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(n._isRTL?-4:4,")"),className:n._classNames.barLabel,"aria-hidden":!0},yi(f<1e3?".2~":".1",f)(f))}return s.createElement("rect",{key:c,x:"".concat(n._isRTL?100-o[c]-l:o[c],"%"),y:0,"data-is-focusable":""!==t.legend,width:l+"%",height:n._barHeight,fill:d,onMouseOver:""!==t.legend?n._hoverOn.bind(n,p,t):void 0,onFocus:""!==t.legend?n._hoverOn.bind(n,p,t):void 0,role:"img","aria-label":n._getAriaLabel(t),onBlur:n._hoverOff,onMouseLeave:n._hoverOff,className:n._classNames.barWrapper})}));return d},t}(s.Component),ih=E(ah,(function(e){var t=e.className,n=e.theme,r=e.width,a=e.barHeight,i=e.showTriangle,s=e.variant,l=e.hideLabels,c=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},t],items:{marginBottom:i||s===_e.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:a||12,display:"block",overflow:"visible"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:o(o({},n.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:n.palette.neutralPrimary,marginBottom:s===_e.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:n.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Hn.medium,color:n.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c.blue,marginBottom:"4px",position:"absolute"},barLabel:o(o({},n.fonts.small),{fontWeight:Bn.semibold,fill:n.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==_e.AbsoluteScale||l?0:40}}})),sh={host:"ms-HoverCard-host"},lh=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o){var a;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var i=document.createEvent("HTMLEvents");i.initEvent(n,o||!1,!0),nt(i,r),a=t.dispatchEvent(i)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==a;){var l=t.__events__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],h=0;!1!==a&&h<d.length;h++){var p=d[h];p.objectCallback&&(a=p.objectCallback.call(p.parent,r))}t=o?t.parent:null}return a},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var a=this;if(n.indexOf(",")>-1)for(var i=n.split(/[ ,]+/),s=0;s<i.length;s++)this.on(t,i[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((i=t.__events__=t.__events__||{})[n]=i[n]||{count:0},i[n][this._id]=i[n][this._id]||[],i[n][this._id].push(c),i[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!a._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!a._isDisposed)return r.apply(l,e)};this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var a=this._eventRecords[o];if(!(e&&e!==a.target||t&&t!==a.eventName||n&&n!==a.callback||"boolean"==typeof r&&r!==a.options)){var i=a.target.__events__,s=i[a.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(a),1)):(s.count-=l.length,delete i[a.eventName][this._id]),s.count||delete i[a.eventName]),a.elementCallback&&(a.target.removeEventListener?a.target.removeEventListener(a.eventName,a.elementCallback,a.options):a.target.detachEvent&&a.target.detachEvent("on"+a.eventName,a.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}($d||($d={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Qd||(Qd={}));var ch,uh={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function dh(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}function hh(e,t){var n=s.useRef(t);return n.current||(n.current=xe(e)),n.current}function ph(e){var t=s.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return xo((function(){t.current=e}),[e]),Rr((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(void 0,e)}}))}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(ch||(ch={}));var fh={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},gh=s.forwardRef((function(e,t){var n,r,a,i=s.useRef(null),l=s.useRef(null),c=s.useRef(null),u=Rt(i,t),d=function(){var e;return null===(e=s.useContext(Wt).window)||void 0===e?void 0:e.document}(),h=null===(n=dh(!1))||void 0===n||n,p=Ye(fh,e),f=Rr({hasFocus:!1,focusStackId:hh("ftz-",p.id)}),g=p.children,m=p.componentRef,v=p.disabled,_=p.disableFirstFocus,y=p.forceFocusInsideTrap,x=p.focusPreviouslyFocusedInnerElement,b=p.firstFocusableSelector,C=p.firstFocusableTarget,S=p.disableRestoreFocus,E=void 0===S?p.ignoreExternalFocusing:S,L=p.isClickableOutsideFocusTrap,k=p.enableAriaHiddenSiblings,A={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},w=s.useCallback((function(e){e!==l.current&&e!==c.current&&We(e)}),[]),D=ph((function(){if(i.current){var e=f.previouslyFocusedElementInTrapZone;if(x&&e&&Ae(i.current,e))w(e);else{var t=null;if("string"==typeof C)t=i.current.querySelector(C);else if(C)t=C(i.current);else if(b){var n="string"==typeof b?b:b();t=i.current.querySelector("."+n)}t||(t=Ne(i.current,i.current.firstChild,!1,!1,!1,!0)),t&&w(t)}}})),T=function(e){if(!v&&i.current){var t,n=e===f.hasFocus?(void 0===(t=!1)&&(t=!0),Fe(i.current,c.current,t,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),Ne(e,t,r,!1,!1,!0,!1,!0)}(i.current,l.current,0,!1);n&&(n===l.current||n===c.current?D():n.focus())}},M=ph((function(e){if(gh.focusStack=gh.focusStack.filter((function(e){return f.focusStackId!==e})),d){var t=d.activeElement;E||"function"!=typeof(null==e?void 0:e.focus)||!Ae(i.current,t)&&t!==d.body||w(e)}})),P=ph((function(e){if(!v&&f.focusStackId===gh.focusStack.slice(-1)[0]){var t=e.target;t&&!Ae(i.current,t)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(D(),f.hasFocus=!0)}),0):(D(),f.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return s.useEffect((function(){var e=[];return y&&e.push(ze(window,"focus",P,!0)),L||e.push(ze(window,"click",P,!0)),function(){e.forEach((function(e){return e()}))}}),[y,L]),s.useEffect((function(){if(!v&&(h||y)&&i.current){gh.focusStack.push(f.focusStackId);var e=p.elementToFocusOnDismiss||d.activeElement;return _||Ae(i.current,e)||D(),function(){return M(e)}}}),[y,v]),s.useEffect((function(){if(!v&&k)return Vt(i.current)}),[v,k,i]),r=function(){delete f.previouslyFocusedElementInTrapZone},(a=s.useRef(r)).current=r,s.useEffect((function(){return function(){var e;null===(e=a.current)||void 0===e||e.call(a)}}),[]),function(e,t,n){s.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(m,f.previouslyFocusedElementInTrapZone,D),s.createElement("div",o({"aria-labelledby":p.ariaLabelledBy},et(p,Je),{ref:u,onFocusCapture:function(e){var t;null===(t=p.onFocusCapture)||void 0===t||t.call(p,e),e.target===l.current?T(!0):e.target===c.current&&T(!1),f.hasFocus=!0,e.target!==e.currentTarget&&e.target!==l.current&&e.target!==c.current&&(f.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=p.onBlurCapture)||void 0===t||t.call(p,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=d.activeElement),Ae(i.current,n)||(f.hasFocus=!1)}}),s.createElement("div",o({},A,{ref:l})),g,s.createElement("div",o({},A,{ref:c})))}));gh.displayName="FocusTrapZone",gh.focusStack=[];var mh,vh=function(e){return s.createElement(ko,o({},e),s.createElement(gh,o({disabled:e.hidden},e.focusTrapProps),e.children))},_h=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,a=void 0===r?Ee.bottomLeftEdge:r,i=e.directionalHintFixed,l=e.targetElement,c=e.firstFocus,u=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=o(o(o({},et(e,Je)),{className:h,target:l,isBeakVisible:!1,directionalHint:a,directionalHintFixed:i,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return s.createElement(s.Fragment,null,u?s.createElement(vh,o({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):s.createElement(ko,o({},m),f))},yh=he(),xh=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=s.createRef(),n._onKeyDown=function(e){e.which===It&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return s.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),s.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},s.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new Ot(n),Ld(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return r(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,a=e.theme,i=e.mode,l=e.className,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=n+r;this._classNames=yh(t,{theme:a,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:u,expandedCardFirstFrameRendered:i===ch.expanded&&d});var p=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return s.createElement(_h,o({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),bh=E(xh,(function(e){var t,n=e.theme,r=e.needsScroll,o=e.expandedCardFirstFrameRendered,a=e.compactCardHeight,i=e.expandedCardHeight,s=e.className,l=n.palette,c=ar(uh,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[Un]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:a}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},o&&{height:i}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Ch={root:"ms-PlainCard-root"},Sh=he(),Eh=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===It&&n.props.onLeave&&n.props.onLeave(e)},Ld(n),n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=Sh(t,{theme:n,className:r});var a=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return s.createElement(_h,o({},this.props,{content:a,className:this._classNames.root}))},t}(s.Component),Lh=E(Eh,(function(e){var t,n=e.theme,r=e.className;return{root:[ar(Ch,n).root,{pointerEvents:"auto",selectors:(t={},t[Un]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),kh=he(),Ah=function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=s.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:ch.compact,openMode:"keydown"===e.type?$d.hotKey:$d.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==It)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==It||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:ch.compact,openMode:$d.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:ch.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,o=e.eventListenerTarget,a=o?n._getTargetElement(o):n._getTargetElement(n.props.target),i=n._nativeDismissEvent;a&&(n._events.on(a,"mouseenter",n._cardOpen),n._events.on(a,"mouseleave",i),t?n._events.on(a,"keydown",n._cardOpen):(n._events.on(a,"focus",n._cardOpen),n._events.on(a,"blur",i)),r?n._events.on(a,"click",n._instantOpenAsExpanded):(n._events.on(a,"mousedown",i),n._events.on(a,"keydown",i)))},Ld(n),n._async=new Ot(n),n._events=new lh(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:ch.compact,openMode:$d.hover},n}return r(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:ch.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:ch.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,a=e.setAriaDescribedBy,i=void 0===a||a,l=e.styles,c=e.theme,u=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,m=g.isHoverCardVisible,v=g.mode,_=g.openMode,y=r||xe("hoverCard");this._classNames=kh(l,{theme:c,className:u});var x=o(o({},et(this.props,Je)),{id:y,trapFocus:!!p,firstFocus:f||_===$d.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=o(o(o({},t),x),{mode:v}),C=o(o({},h),x);return s.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":i&&m?y:void 0,"data-is-focusable":!this.props.target},n,m&&(d===Qd.expanding?s.createElement(bh,o({},b)):s.createElement(Lh,o({},C))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return te().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Qd.expanding},t}(s.Component),wh=E(Ah,(function(e){var t=e.className,n=e.theme;return{host:[ar(sh,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(mh||(mh={}));var Dh=function(e){var t;void 0===e&&(t={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&t.hasOwnProperty(e.cacheKey))return t[e.cacheKey]},addMeasurementToCache:function(e,n){e.cacheKey&&(t[e.cacheKey]=n)}});var n,r=e;function a(e,t){var n=r.getCachedMeasurement(e);if(void 0!==n)return n;var o=t();return r.addMeasurementToCache(e,o),o}function i(e,t,o){for(var i=e,s=a(e,o);s>n;){var l=t(i);if(void 0===l)return{renderedData:i,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};i=l}return{renderedData:i,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,t,s,l){if(void 0!==l||void 0!==t.dataToMeasure){if(l){if(n&&t.renderedData&&!t.dataToMeasure)return o(o({},t),function(e,t,r,a){var i;return i=e>n?a?{resizeDirection:"grow",dataToMeasure:a(r)}:{resizeDirection:"shrink",dataToMeasure:t}:{resizeDirection:"shrink",dataToMeasure:r},n=e,o(o({},i),{measureContainer:!1})}(l,e.data,t.renderedData,e.onGrowData));n=l}var c=o(o({},t),{measureContainer:!1});return t.dataToMeasure&&(c="grow"===t.resizeDirection&&e.onGrowData?o(o({},c),function(e,t,s,l){for(var c=e,u=a(e,s);u<n;){var d=t(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return o({resizeDirection:"shrink"},i(c,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):o(o({},c),i(t.dataToMeasure,e.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:o({},e),resizeDirection:"grow",measureContainer:!0}}}},Th=s.createContext({isMeasured:!1}),Mh={position:"fixed",visibility:"hidden"},Ph={position:"relative"};function Fh(e,t){var n;switch(t.type){case"resizeData":return o({},t.value);case"dataToMeasure":return o(o({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return o(o({},e),((n={})[t.type]=t.value,n))}}var Nh={isMeasured:!0},Vh=s.forwardRef((function(e,t){var n=s.useRef(null),r=Rt(n,t),a=function(e,t){var n=Rr(Dh),r=s.useRef(null),a=s.useRef(null),i=s.useRef(!1),l=Ht(),c=function(e,t,n){var r=Rr((function(){return t.getInitialResizeGroupState(e.data)})),a=s.useReducer(Fh,r),i=a[0],l=a[1];s.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var c=s.useRef(r);return c.current=o({},i),[c,s.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(e,n,t),u=c[0],d=c[1],h=c[2];s.useEffect((function(){var t;u.current.renderedData&&(i.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,u.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var o=void 0;if(u.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();o=e.direction===mh.vertical?s.height:s.width}var l=n.getNextState(e,u.current,(function(){var t=i.current?a:r;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===mh.vertical?n.height:n.width}),o);d(l)}),t.current)})),Bt(zt(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(u.current.dataToMeasure),f=!i.current&&p;return[u.current.dataToMeasure,u.current.renderedData,h,r,a,p,f]}(e,n),i=a[0],l=a[1],c=a[2],u=a[3],d=a[4],h=a[5],p=a[6];s.useImperativeHandle(e.componentRef,(function(){return{remeasure:c}}),[c]);var f=e.className,g=e.onRenderData,m=et(e,Je,["data"]);return s.createElement("div",o({},m,{className:f,ref:r}),s.createElement("div",{style:Ph},h&&!p&&s.createElement("div",{style:Mh,ref:d},s.createElement(Th.Provider,{value:Nh},g(i))),s.createElement("div",{ref:u,style:p?Mh:void 0,"data-automation-id":"visibleContent"},p?g(i):l&&g(l))))}));Vh.displayName="ResizeGroupBase";var Ih,Oh=Vh;!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(Ih||(Ih={}));var Hh=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?Ih.PERSISTED_KEYTIP_ADDED:Ih.KEYTIP_ADDED;lh.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||lh.raise(this,Ih.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?Ih.PERSISTED_KEYTIP_REMOVED:Ih.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||lh.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){lh.raise(this,Ih.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){lh.raise(this,Ih.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=i([],e.keySequences,!0);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return o(o({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){lh.raise(this,Ih.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=xe()),{keytip:o({},e),uniqueID:t}},e._instance=new e,e}(),Bh=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var a=o[r];n[t.register(a,!0)]=a}},Rh=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];e.unregister(t[o],o,!0),delete t[o]}},Wh=function(e){var t=Hh.getInstance(),n=e.className,r=e.overflowItems,a=e.keytipSequences,i=e.itemSubMenuProvider,l=e.onRenderOverflowButton,c=Rr({}),u=s.useCallback((function(e){return i?i(e):e.subMenuProps?e.subMenuProps.items:void 0}),[i]),d=s.useMemo((function(){var e=[],n=[];return a?null==r||r.forEach((function(r){var i,s=r.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(r)?(l.onExecute=t.menuExecute.bind(t,a,null===(i=null==r?void 0:r.keytipProps)||void 0===i?void 0:i.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var c=o(o({},r),{keytipProps:o(o({},s),{overflowSetSequence:a})});null==n||n.push(c)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,u,t,a]),h=d.modifiedOverflowItems;return function(e,t,n){var r=dh(e);s.useEffect((function(){r&&(Rh(n,r),Bh(t,n,e))})),s.useEffect((function(){return Bh(t,n,e),function(){Rh(n,e)}}),[])}(c,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},zh=he(),Yh=s.forwardRef((function(e,t){var n=s.useRef(null),r=Rt(n,t);!function(e,t){s.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=Pe(t.current,n)),r},focusElement:function(e){var n=!1;return!!e&&(t.current&&Ae(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var a=e.items,i=e.overflowItems,l=e.className,c=e.styles,u=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=zh(c,{className:l,vertical:u}),m=!!i&&i.length>0;return s.createElement("div",o({},et(e,Je),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&m&&s.createElement(Wh,o({},e,{className:g.overflowButton})),a&&a.map((function(e,t){return s.createElement("div",{className:g.item,key:e.key,role:"none"},f(e))})),"end"===p&&m&&s.createElement(Wh,o({},e,{className:g.overflowButton})))}));Yh.displayName="OverflowSet";var Uh,qh={flexShrink:0,display:"inherit"},Xh=E(Yh,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",qh],overflowButton:["ms-OverflowSet-overflowButton",qh]}}),void 0,{scope:"OverflowSet"}),jh=((Uh={})["".concat(pd[pd.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Uh["".concat(pd[pd.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Uh["".concat(pd[pd.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Uh["".concat(pd[pd.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Uh["".concat(pd[pd.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Uh["".concat(pd[pd.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Uh["".concat(pd[pd.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Uh["".concat(pd[pd.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Uh["".concat(fd[fd.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",Uh),Kh=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,a=e.classNameForNonSvg;return-1===Object.keys(jh).indexOf(r)?s.createElement("div",{className:a}):s.createElement("svg",o({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate(".concat(r===pd[pd.diamond]?45:r===pd[pd.pyramid]?180:0,", 0, 0)")}),s.createElement("path",o({d:jh[r]},n)))},Gh=he(),Zh=function(e){function t(t){var n=e.call(this,t)||this;return n._isLegendSelected=!1,n._onRenderData=function(e){var t=n.props,r=t.overflowProps,a=t.allowFocusOnLegends,i=void 0===a||a,l=t.canSelectMultipleLegends,c=void 0!==l&&l,u={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return s.createElement(qd,o({},i&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),s.createElement(Xh,o({items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},r,{styles:o(o({},u),null==r?void 0:r.styles)})))},n._onReduceData=function(e){if(0!==e.primary.length){var t=i(i([],e.primary.slice(-1),!0),e.overflow,!0);return{primary:e.primary.slice(0,-1),overflow:t}}},n._onGrowData=function(e){if(0!==e.overflow.length){var t=e.overflow.slice(1);return{primary:i(i([],e.primary,!0),e.overflow.slice(0,1),!0),overflow:t}}},n._canSelectMultipleLegends=function(e){var t=o({},n.state.selectedLegends);t[e.title]?delete t[e.title]:(t[e.title]=!0,Object.keys(t).length===n.props.legends.length&&(t={})),n.setState({selectedLegends:t})},n._canSelectOnlySingleLegend=function(e){n.state.selectedLegend===e.title?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.title})},n._onClick=function(e){if(e.action){var t=n.props.canSelectMultipleLegends;void 0!==t&&t?n._canSelectMultipleLegends(e):n._canSelectOnlySingleLegend(e),e.action()}},n._onRenderCompactCard=function(e){var t=n.props,r=t.allowFocusOnLegends,a=void 0===r||r,i=t.className,l=t.styles,c=t.theme,u=t.canSelectMultipleLegends,d=void 0!==u&&u,h=[],p=Gh(l,{theme:c,className:i});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);h.push(r)})),s.createElement(qd,o({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:md.vertical},n.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},n._renderOverflowItems=function(e){var t=n.props.allowFocusOnLegends,r=void 0===t||t,a=[];e.forEach((function(e,t){a.push({key:t.toString(),name:e.title,onClick:e.action})}));var i={renderData:e},l=n.props,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=Gh(d,{theme:c,className:u}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:i},g=h||"more";return s.createElement(wh,{type:Qd.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){n.setState({isHoverCardVisible:!1});var t=Se(e,(function(e){return e.title===n.state.activeLegend}));t&&(n.setState({activeLegend:""}),t.onMouseOutAction&&t.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:n._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:n._hoverCardRef},s.createElement("div",o({className:p.overflowIndicationTextStyle,ref:function(e){return n._hoverCardRef=e}},r&&{role:"button","aria-expanded":n.state.isHoverCardVisible,"aria-label":"".concat(a.length," ").concat(g)},{"data-is-focusable":r}),a.length," ",g))},n._hoverCardVisible=function(){n.setState({isHoverCardVisible:!0})},n._onHoverOverLegend=function(e){e.hoverAction&&(n.setState({activeLegend:e.title}),e.hoverAction())},n._onLeave=function(e){e.onMouseOutAction&&(n.setState({activeLegend:""}),e.onMouseOutAction())},n._renderButton=function(e,t,r){var a=n.props.allowFocusOnLegends,i=void 0===a||a,l={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},c=n._getColor(l.title,l.color),u=n.props,d=u.theme,h=u.className,p=u.styles,f=u.canSelectMultipleLegends,g=void 0!==f&&f,m=Gh(p,{theme:d,className:h,colorOnSelectedState:c,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),v=function(){n._onHoverOverLegend(l)},_=function(){n._onLeave(l)},y=n._getShape(m,l,c);return s.createElement("button",o({},i&&{"aria-selected":g?!!n.state.selectedLegends[l.title]:n.state.selectedLegend===l.title,role:"option","aria-label":"".concat(l.title),"aria-setsize":e["aria-setsize"],"aria-posinset":e["aria-posinset"]},e.nativeButtonProps&&o({},e.nativeButtonProps),{key:t,className:m.legend,onClick:function(){n._onClick(l)},onMouseOver:v,onMouseOut:_,onFocus:v,onBlur:_,"data-is-focusable":i}),y,s.createElement("div",{className:m.text},l.title))},n.state={selectedLegend:"",activeLegend:"",isHoverCardVisible:!1,selectedLegends:{}},n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Gh(r,{theme:t,className:n}),this._isLegendSelected=""!==this.state.selectedLegend||Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return s.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(o):s.createElement(Oh,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},t.prototype._generateData=function(){var e=this,t=this.props.allowFocusOnLegends,n=void 0===t||t;return{primary:this.props.legends.map((function(t,r){return o(o({},n&&{nativeButtonProps:et(t,Qe,["title"]),"aria-setsize":e.props.legends.length,"aria-posinset":r+1}),{title:t.title,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,color:t.color,shape:t.shape,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity,key:r})})),overflow:[]}},t.prototype._getShape=function(e,t,n){var r={className:e.shape},o={fill:n,strokeWidth:2,stroke:t.color};return s.createElement(Kh,{svgProps:r,pathProps:o,shape:t.shape,classNameForNonSvg:e.rect})},t.prototype._getColor=function(e,t){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegend===e||this.state.selectedLegends[e]?t:n.white:this.state.activeLegend===e||""===this.state.activeLegend?t:n.white},t}(s.Component),$h=E(Zh,(function(e){var t,n,r=e.className,a=e.theme,i=e.isLineLegendInBarChart,s=void 0!==i&&i,l=a,c=l.palette,u=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:a.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[jn(a,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(t={},t[Un]={content:"linear-gradient(to right, ".concat(e.colorOnSelectedState,", ").concat(e.colorOnSelectedState,")"),opacity:e.colorOnSelectedState===c.white?"0.6":""},t),width:"12px",height:s?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null==a?void 0:a.semanticColors.buttonBorder,content:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(e.colorOnSelectedState," 1px, ").concat(e.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===c.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[Un]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(e.colorOnSelectedState,", ").concat(e.colorOnSelectedState,")")},n)},text:o(o({},u.small),{lineHeight:"16px",color:null==a?void 0:a.semanticColors.bodyText,opacity:e.colorOnSelectedState===c.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:c.black},overflowIndicationTextStyle:[jn(a,d),o(o({cursor:"pointer",color:null==a?void 0:a.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[jn(a,d)]}}}}));function Qh(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Jh(e){return function(){return e}}function ep(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function tp(e){return e}Array.prototype.slice;var np=Math.abs,rp=Math.atan2,op=Math.cos,ap=Math.max,ip=Math.min,sp=Math.sin,lp=Math.sqrt,cp=1e-12,up=Math.PI,dp=up/2,hp=2*up;function pp(e){return e>=1?dp:e<=-1?-dp:Math.asin(e)}function fp(){var e=tp,t=ep,n=null,r=Jh(0),o=Jh(hp),a=Jh(0);function i(i){var s,l,c,u,d,h=(i=Qh(i)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(hp,Math.max(-hp,o.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,a.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+e(i[s],s,i))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(g[e],g[n])})):null!=n&&f.sort((function(e,t){return n(i[e],i[t])})),s=0,c=p?(v-h*y)/p:0;s<h;++s,m=u)l=f[s],u=m+((d=g[l])>0?d*c:0)+y,g[l]={data:i[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:_};return g}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),i):e},i.sortValues=function(e){return arguments.length?(t=e,n=null,i):t},i.sort=function(e){return arguments.length?(n=e,t=null,i):n},i.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Jh(+e),i):r},i.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Jh(+e),i):o},i.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Jh(+e),i):a},i}var gp=Math.PI,mp=2*gp,vp=1e-6,_p=mp-vp;function yp(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function xp(){return new yp}yp.prototype=xp.prototype={constructor:yp,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+a)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var a=this._x1,i=this._y1,s=n-e,l=r-t,c=a-e,u=i-t,d=c*c+u*u;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>vp)if(Math.abs(u*s-l*c)>vp&&o){var h=n-a,p=r-i,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=o*Math.tan((gp-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>vp&&(this._+="L"+(e+y*c)+","+(t+y*u)),this._+="A"+o+","+o+",0,0,"+ +(u*h>c*p)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,o,a){e=+e,t=+t;var i=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+i,c=t+s,u=1^a,d=a?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>vp||Math.abs(this._y1-c)>vp)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%mp+mp),d>_p?this._+="A"+n+","+n+",0,1,"+u+","+(e-i)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>vp&&(this._+="A"+n+","+n+",0,"+ +(d>=gp)+","+u+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var bp=xp;function Cp(e){return e.innerRadius}function Sp(e){return e.outerRadius}function Ep(e){return e.startAngle}function Lp(e){return e.endAngle}function kp(e){return e&&e.padAngle}function Ap(e,t,n,r,o,a,i){var s=e-n,l=t-r,c=(i?a:-a)/lp(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=o-a,C=h*g-f*p,S=(y<0?-1:1)*lp(ap(0,b*b*x-C*C)),E=(C*y-_*S)/x,L=(-C*_-y*S)/x,k=(C*y+_*S)/x,A=(-C*_+y*S)/x,w=E-m,D=L-v,T=k-m,M=A-v;return w*w+D*D>T*T+M*M&&(E=k,L=A),{cx:E,cy:L,x01:-u,y01:-d,x11:E*(o/b-1),y11:L*(o/b-1)}}function wp(){var e=Cp,t=Sp,n=Jh(0),r=null,o=Ep,a=Lp,i=kp,s=null;function l(){var l,c,u,d=+e.apply(this,arguments),h=+t.apply(this,arguments),p=o.apply(this,arguments)-dp,f=a.apply(this,arguments)-dp,g=np(f-p),m=f>p;if(s||(s=l=bp()),h<d&&(c=h,h=d,d=c),h>cp)if(g>hp-cp)s.moveTo(h*op(p),h*sp(p)),s.arc(0,0,h,p,f,!m),d>cp&&(s.moveTo(d*op(f),d*sp(f)),s.arc(0,0,d,f,p,m));else{var v,_,y=p,x=f,b=p,C=f,S=g,E=g,L=i.apply(this,arguments)/2,k=L>cp&&(r?+r.apply(this,arguments):lp(d*d+h*h)),A=ip(np(h-d)/2,+n.apply(this,arguments)),w=A,D=A;if(k>cp){var T=pp(k/d*sp(L)),M=pp(k/h*sp(L));(S-=2*T)>cp?(b+=T*=m?1:-1,C-=T):(S=0,b=C=(p+f)/2),(E-=2*M)>cp?(y+=M*=m?1:-1,x-=M):(E=0,y=x=(p+f)/2)}var P=h*op(y),F=h*sp(y),N=d*op(C),V=d*sp(C);if(A>cp){var I,O=h*op(x),H=h*sp(x),B=d*op(b),R=d*sp(b);if(g<up&&(I=function(e,t,n,r,o,a,i,s){var l=n-e,c=r-t,u=i-o,d=s-a,h=d*l-u*c;if(!(h*h<cp))return[e+(h=(u*(t-a)-d*(e-o))/h)*l,t+h*c]}(P,F,B,R,O,H,N,V))){var W=P-I[0],z=F-I[1],Y=O-I[0],U=H-I[1],q=1/sp(((u=(W*Y+z*U)/(lp(W*W+z*z)*lp(Y*Y+U*U)))>1?0:u<-1?up:Math.acos(u))/2),X=lp(I[0]*I[0]+I[1]*I[1]);w=ip(A,(d-X)/(q-1)),D=ip(A,(h-X)/(q+1))}}E>cp?D>cp?(v=Ap(B,R,P,F,h,D,m),_=Ap(O,H,N,V,h,D,m),s.moveTo(v.cx+v.x01,v.cy+v.y01),D<A?s.arc(v.cx,v.cy,D,rp(v.y01,v.x01),rp(_.y01,_.x01),!m):(s.arc(v.cx,v.cy,D,rp(v.y01,v.x01),rp(v.y11,v.x11),!m),s.arc(0,0,h,rp(v.cy+v.y11,v.cx+v.x11),rp(_.cy+_.y11,_.cx+_.x11),!m),s.arc(_.cx,_.cy,D,rp(_.y11,_.x11),rp(_.y01,_.x01),!m))):(s.moveTo(P,F),s.arc(0,0,h,y,x,!m)):s.moveTo(P,F),d>cp&&S>cp?w>cp?(v=Ap(N,V,O,H,d,-w,m),_=Ap(P,F,B,R,d,-w,m),s.lineTo(v.cx+v.x01,v.cy+v.y01),w<A?s.arc(v.cx,v.cy,w,rp(v.y01,v.x01),rp(_.y01,_.x01),!m):(s.arc(v.cx,v.cy,w,rp(v.y01,v.x01),rp(v.y11,v.x11),!m),s.arc(0,0,d,rp(v.cy+v.y11,v.cx+v.x11),rp(_.cy+_.y11,_.cx+_.x11),m),s.arc(_.cx,_.cy,w,rp(_.y11,_.x11),rp(_.y01,_.x01),!m))):s.arc(0,0,d,C,b,m):s.lineTo(N,V)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-up/2;return[op(r)*n,sp(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Jh(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Jh(+e),l):r},l.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:Jh(+e),l):o},l.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:Jh(+e),l):a},l.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:Jh(+e),l):i},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}var Dp=function(e){var t=e.color,n=e.href,r=e.theme;return{root:{fill:t,cursor:n?"pointer":"default",stroke:zn.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:r.palette.neutralPrimary}}},Tp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=s.createRef(),t._isRTL=le(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t._getAriaLabel=function(){var e,n=t.props.data.data,r=n.xAxisCalloutData||n.legend,o=n.yAxisCalloutData||n.data||0;return(null===(e=n.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(r?"".concat(r,", "):"")+"".concat(o,".")},t._renderArcLabel=function(e){var n=t.props,r=n.arc,o=n.data,a=n.innerRadius,i=n.outerRadius,l=n.showLabelsInPercent,c=n.totalValue;if(n.hideLabels||Math.abs(o.endAngle-o.startAngle)<Math.PI/12)return null;var u=r.centroid(o),d=u[0],h=u[1],p=Math.sqrt(d*d+h*h),f=Math.max(a,i)+2,g=(o.startAngle+o.endAngle)/2,m=o.value;return s.createElement("text",{x:(0===p?0:d/p)*f,y:(0===p?0:h/p)*f,textAnchor:g>Math.PI!==t._isRTL?"end":"start",dominantBaseline:g>Math.PI/2&&g<3*Math.PI/2?"hanging":"auto",className:e,"aria-hidden":!0},l?_i(".0%")(0===c?0:m/c):yi(m<1e3?".2~":".1",m)(m))},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Mp(e),null},t.prototype.updateChart=function(e){Mp(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,o=t.focusedArcId,a=he()(Dp,{color:this.props.color,href:r,theme:this.props.theme}),i=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,l=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return s.createElement("g",{ref:this.currentRef},!!o&&o===i&&s.createElement("path",{id:i+"focusRing",d:n(this.props.focusData),className:a.focusRing}),s.createElement("path",{id:i,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,i),className:a.root,"data-is-focusable":!0,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:l,onClick:r?this._redirectToUrl.bind(this,r):null===(e=this.props.data)||void 0===e?void 0:e.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(a.arcLabel))},t.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},t.prototype._hoverOn=function(e,t){t.persist(),this.props.hoverOnCallback(e,t)},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={arc:wp()},t}(s.Component);function Mp(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Pp=function(e){var t,n=e.theme;return{root:{},insideDonutString:{fontSize:Hn.xLargePlus,fontWeight:Bn.semibold,fill:n.semanticColors.bodyText,selectors:(t={},t[qn]={fill:"rgb(179, 179, 179)"},t)}}},Fp=he(),Np=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t,r,o){var a=e&&e.data&&e.data.color;return s.createElement(Tp,{key:t,data:e,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:a,onFocusCallback:n._focusCallback,hoverOnCallback:n._hoverCallback,onBlurCallback:n.props.onBlurCallback,hoverLeaveCallback:n.props.hoverLeaveCallback,uniqText:n.props.uniqText,activeArc:n.props.activeArc,href:o,calloutId:n.props.calloutId,valueInsideDonut:n.props.valueInsideDonut,theme:n.props.theme,focusedArcId:n.props.focusedArcId,showLabelsInPercent:n.props.showLabelsInPercent,totalValue:n._totalValue,hideLabels:n.props.hideLabels})},n._focusCallback=function(e,t,r){n.props.onFocusCallback(e,t,r)},n._computeTotalValue=function(){var e=0;return n.props.data.forEach((function(t){e+=t.data})),e},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=fp().sort(null).value((function(e){return e.data})).padAngle(0),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,o=this._pieForFocusRing(r),a=n(r),i="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),l=Fp(Pp,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),s.createElement("g",{transform:i},a.map((function(t,n){return e.arcGenerator(t,n,o[n],e.props.href)})),this.props.valueInsideDonut&&s.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},t.prototype.componentDidUpdate=function(){var e,t,n;e=Fp(Pp,{theme:this.props.theme}).insideDonutString,t=2*this.props.innerRadius-5,n=0,Xu(".".concat(e)).each((function(){for(var e=zu(this),r=e.text().split(/\s+/).reverse(),o="",a=[],i=0,s=e.attr("y"),l=e.text(null).append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(i)).attr("x",0).attr("y",s).attr("dy",1.1*i+++"em");o=r.pop();)a.push(o),l.text(a.join(" ")+" "),l.node().getComputedTextLength()>t&&a.length>1&&(a.pop(),l.text(a.join(" ")+" "),a=[o],l=e.append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(i)).attr("x",0).attr("y",s).attr("dy",1.1*i+++"em").text(o));n+=1}))},t.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},t.defaultProps={pie:fp().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),Vp=he(),Ip=function(e){function t(t){var n=e.call(this,t)||this;return n._closeCallout=function(){n.setState({showHover:!1})},n._focusCallback=function(e,t,r){n._currentHoverElement=r,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,focusedArcId:t,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._hoverCallback=function(e,t){n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n._currentHoverElement=t,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onBlur=function(){n.setState({focusedArcId:""})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=xe("callout"),n._uniqText=xe("_Pie_"),n}return r(t,e),t.getDerivedStateFromProps=function(e,t){var n,r;return e.width&&e.width!==t._width&&(n={_width:e.width}),e.height&&e.height!==t._height&&(r={_height:e.height-40}),o(o({},n),r)},t.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},t.prototype.render=function(){var e,t=this,n=this.props,r=n.data,a=n.hideLegend,i=void 0!==a&&a,l=this.props.theme.palette;this._classNames=Vp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var c=this._createLegends(r,l),u=this.props.hideLabels?0:80,d=this.props.hideLabels?0:40,h=Math.min(this.state._width-u,this.state._height-d)/2,p=r&&(null===(e=r.chartData)||void 0===e?void 0:e.filter((function(e){return e.data>0}))),f=this._valueInsideDonut(this.props.valueInsideDonut,p);return s.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e},onMouseLeave:this._handleChartMouseLeave},s.createElement(qd,{direction:md.horizontal,handleTabKey:1},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(e){return t._setViewBox(e)}},s.createElement(Np,{width:this.state._width,height:this.state._height,outerRadius:h,innerRadius:this.props.innerRadius,data:p,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(f),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),s.createElement(ko,o({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:Ee.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Sd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!i&&s.createElement("div",{className:this._classNames.legendContainer},c))},t.prototype._setViewBox=function(e){var t,n;if(null!==e){var r=e.parentElement?e.parentElement.clientWidth:this.state._width,o=e.parentElement&&(null===(t=e.parentElement)||void 0===t?void 0:t.offsetHeight)>this.state._height?null===(n=e.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height,a="0 0 ".concat(r," ").concat(o);e.setAttribute("viewBox",a)}},t.prototype._createLegends=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],a=e&&e.chartData.map((function(e,t){var o=e.color?e.color:r[Math.floor(4*Math.random()+1)];return{title:e.legend,color:o,action:function(){n.state.selectedLegend===e.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.legend})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:e.legend})},onMouseOutAction:function(){n.setState({activeLegend:""})}}}));return s.createElement($h,o({legends:a,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._hoverLeave=function(){},t.prototype._valueInsideDonut=function(e,t){var n=this._getHighlightedLegend();if(void 0===e||""===n||this.state.showHover)return e;var r=e;return t.map((function(e,t){e.legend===n&&(r=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),r},t.prototype._toLocaleString=function(e){var t=yd(e,this.props.culture);return t?null==t?void 0:t.toString():e},t.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},t.defaultProps={innerRadius:0,hideLabels:!0},t}(s.Component),Op=E(Ip,(function(e){var t=e.className,n=e.width,r=e.height;return{root:[e.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},t],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(n,"px")}}}));function Hp(e){this._context=e}function Bp(e){return new Hp(e)}function Rp(e){return e[0]}function Wp(e){return e[1]}function zp(e,t){var n=Jh(!0),r=null,o=Bp,a=null;function i(i){var s,l,c,u=(i=Qh(i)).length,d=!1;for(null==r&&(a=o(c=bp())),s=0;s<=u;++s)!(s<u&&n(l=i[s],s,i))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,s,i),+t(l,s,i));if(c)return a=null,c+""||null}return e="function"==typeof e?e:void 0===e?Rp:Jh(e),t="function"==typeof t?t:void 0===t?Wp:Jh(t),i.x=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),i):e},i.y=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),i):t},i.defined=function(e){return arguments.length?(n="function"==typeof e?e:Jh(!!e),i):n},i.curve=function(e){return arguments.length?(o=e,null!=r&&(a=o(r)),i):o},i.context=function(e){return arguments.length?(null==e?r=a=null:a=o(r=e),i):r},i}Hp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Yp=he(),Up=function(e){function t(t){var n,r,a,i,l,c,u,d,h,p,f,g,m,v,_=e.call(this,t)||this;return _.minLegendContainerHeight=32,_._isRtl=le(),_._multiValueCallout=function(e){var t=_._yValueHoverSubCountsExists(e.YValueHover);return s.createElement("div",{className:_._classNames.calloutContentRoot},s.createElement("div",{className:_._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},s.createElement("div",o({className:_._classNames.calloutContentX},_d(e.xAxisCalloutAccessibilityData,"text",!1)),yd(e.hoverXValue,_.props.culture))),s.createElement("div",{className:_._classNames.calloutInfoContainer,style:t?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,n,r){var a=n+1===r.length,i=e.shouldDrawBorderBottom,l=void 0!==i&&i;return s.createElement("div",o({},_d(e.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(n),style:o(t?{display:"inline-block"}:{},l&&{borderBottom:"1px solid ".concat(_.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),_._getCalloutContent(e,n,t,a))})),!!e.descriptionMessage&&s.createElement("div",{className:_._classNames.descriptionMessage},e.descriptionMessage)))},_._getData=function(e,t){_.props.getGraphData&&_.props.getGraphData(e,t,_.state.containerHeight-_.state._removalValueForTextTuncate,_.state.containerWidth,_.xAxisElement,_.yAxisElement)},_._onChartLeave=function(){_.props.onChartMouseLeave&&_.props.onChartMouseLeave()},_.state={containerHeight:0,containerWidth:0,_width:_.props.width||600,_height:_.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},_.idForGraph=xe("chart_"),_.margins={top:null!==(r=null===(n=_.props.margins)||void 0===n?void 0:n.top)&&void 0!==r?r:20,bottom:null!==(i=null===(a=_.props.margins)||void 0===a?void 0:a.bottom)&&void 0!==i?i:35,right:_._isRtl?null!==(c=null===(l=_.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(d=null===(u=_.props.margins)||void 0===u?void 0:u.right)&&void 0!==d?d:null===(h=_.props)||void 0===h?void 0:h.secondaryYScaleOptions)?40:20,left:_._isRtl?(null!==(f=null===(p=_.props.margins)||void 0===p?void 0:p.right)&&void 0!==f?f:null===(g=_.props)||void 0===g?void 0:g.secondaryYScaleOptions)?40:20:null!==(v=null===(m=_.props.margins)||void 0===m?void 0:m.left)&&void 0!==v?v:40},_}return r(t,e),t.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===Ku.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var e=ld(this.props.points,this.yAxisElement);this.state.startFromX!==e&&this.setState({startFromX:e})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.componentDidUpdate=function(e){if(e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===Gu.StringAxis){var t=function(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,o=[];zu(t).call(n).selectAll(".tick").each((function(){var e=this.getAttribute("transform");if(-1===(null==e?void 0:e.indexOf("rotate"))){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")).split(",");2===t.length&&(o.push(t[0]),this.setAttribute("transform","translate(".concat(t[0],",0)rotate(-45)")))}var n=this.getBoundingClientRect(),a=n&&n.height;a>r&&(r=a)}));var a=0;return zu(t).call(n).selectAll(".tick").each((function(){o.length>a&&(this.setAttribute("transform","translate(".concat(o[a],",").concat(r/2,")rotate(-45)")),a+=1)})),Math.floor(r/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==t+this.margins.bottom&&t>0&&this.setState({_removalValueForTextTuncate:t+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===Ku.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var n=ld(this.props.points,this.yAxisElement);this.state.startFromX!==n&&this.setState({startFromX:n})}else 0!==this.state.startFromX&&this.setState({startFromX:0})},t.prototype.render=function(){var e,t,n,r,a,i,l=this,c=this.props,u=c.calloutProps,d=c.points,h=c.chartType,p=c.chartHoverProps,f=c.svgFocusZoneProps,g=c.svgProps,m=c.culture,v=c.dateLocalizeOptions,_=c.timeFormatLocale,y=c.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var x=o({},this.margins);this.props.chartType===Ku.HorizontalBarChartWithAxis&&(this._isRtl?x.right+=this.state.startFromX:x.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(x);var b,C,S,E={domainNRangeValues:dd(d,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,h,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},L={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElement,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:this.props.yMinValue||0,yMaxValue:this.props.yMaxValue||0,tickPadding:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:hd(d,h,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0};switch(this.props.xAxisType){case Gu.NumericAxis:b=ad(E,this.props.chartType,m);break;case Gu.DateAxis:b=function(e,t,n,r,o,a){var i=e.domainNRangeValues,s=e.xAxisElement,l=e.tickPadding,c=void 0===l?6:l,u=e.xAxistickSize,d=void 0===u?6:u,h=e.xAxisCount,p=void 0===h?6:h,f=Ec().domain([i.dStartValue,i.dEndValue]).range([i.rStartValue,i.rEndValue]),g=Wo(f).tickSize(d).tickPadding(c).ticks(p);if(a)g.tickFormat((function(e,t){return a(e)}));else if(n&&r)g.tickFormat((function(e,t){return e.toLocaleString(n,r)}));else if(o){var m=al(o);g.tickFormat((function(e,t){return function(e,t){var n=t.format(".%L"),r=t.format(":%S"),o=t.format("%I:%M"),a=t.format("%I %p"),i=t.format("%a %d"),s=t.format("%b %d"),l=t.format("%B"),c=t.format("%Y");return(Qu(e)<e?n:ed(e)<e?r:nd(e)<e?o:$s(e)<e?a:od(e)<e?Ys(e)<e?i:s:Js(e)<e?l:c)(e)}(e,m)}))}return t.tickValues&&g.tickValues(t.tickValues),void 0===n&&t.tickFormat&&g.tickFormat(sl(t.tickFormat)),s&&zu(s).call(g).selectAll("text").attr("aria-hidden","true"),f}(E,this.props.tickParams,m,v,_,y);break;case Gu.StringAxis:b=function(e,t,n,r){var o=e.domainNRangeValues,a=e.xAxisCount,i=void 0===a?6:a,s=e.xAxistickSize,l=void 0===s?6:s,c=e.tickPadding,u=void 0===c?10:c,d=e.xAxisPadding,h=void 0===d?.1:d,p=e.xAxisInnerPadding,f=e.xAxisOuterPadding,g=Fc().domain(n).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=Wo(g).tickSize(l).tickPadding(u).ticks(i).tickFormat((function(e,t){return yd(n[t],r)}));return e.xAxisElement&&zu(e.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),g}(E,this.props.tickParams,this.props.datasetForXAxisDomain,m);break;default:b=ad(E,this.props.chartType,m)}if(this._xScale=b,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var k={node:this.xAxisElement,xAxis:b,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},A=b&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,o=e.showXAxisLablesTooltip;if(null!==t){var a=zu(t).call(n),i=0,s=[];return a.selectAll(".tick text").each((function(){var e=zu(this),t=e.text(),n="".concat(e.text().slice(0,r),"..."),l=e.text().length,c=e.text().split(/\s+/).reverse();s.push(c.length);var u="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(o&&l>r)g=e.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(o&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);else{for(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));var m=Math.max.apply(Math,s),v=12;a.selectAll("text").each((function(){var e=document.getElementById("WordBreakId"),t=e&&e.getBoundingClientRect(),n=t&&t.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),i=(m-_)*v}})),i>0?i:0}}(k);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==A&&this.setState({_removalValueForTextTuncate:A,isRemoveValCalculated:!1})}var w,D,T,M,P,F,N={yAxisDomainValues:[]};this.props.yAxisType&&this.props.yAxisType===Zu.StringAxis?C=function(e,t,n,r,o,a){return r===Ku.HorizontalBarChartWithAxis?function(e,t,n,r,o){var a=e.containerHeight,i=e.tickPadding,s=void 0===i?12:i,l=e.margins,c=e.yAxisTickFormat,u=e.yAxisElement,d=Fc().domain(t).range([a-l.bottom-r/2,l.top+r/2]),h=(n?Ro(d):zo(d)).tickPadding(s).ticks(t);return c&&h.tickFormat(c),u&&zu(u).call(h).selectAll("text"),d}(e,t,n,o):function(e,t,n){var r=e.containerHeight,o=e.tickPadding,a=void 0===o?12:o,i=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,c=e.yAxisPadding,u=void 0===c?0:c,d=Fc().domain(t).range([r-i.bottom,i.top]).padding(u),h=(n?Ro(d):zo(d)).tickPadding(a).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&zu(l).call(h).selectAll("text"),d}(e,t,n)}(L,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth):((null===(e=this.props)||void 0===e?void 0:e.secondaryYScaleOptions)&&(S=id({margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(t=this.props.secondaryYScaleOptions)||void 0===t?void 0:t.yMinValue)||0,yMaxValue:null!==(r=null===(n=this.props.secondaryYScaleOptions)||void 0===n?void 0:n.yMaxValue)&&void 0!==r?r:100,tickPadding:10,maxOfYVal:null!==(i=null===(a=this.props.secondaryYScaleOptions)||void 0===a?void 0:a.yMaxValue)&&void 0!==i?i:100,yMinMaxValues:hd(d,h),yAxisPadding:this.props.yAxisPadding},this._isRtl,N,h,this.props.barwidth,!0)),C=id(L,this._isRtl,N,h,this.props.barwidth)),this.props.chartType===Ku.HorizontalBarChartWithAxis&&C&&(w=this.yAxisElement,D=C,T=this.props.noOfCharsToTruncate||4,M=this.props.showYAxisLablesTooltip||!1,P=this.state.startFromX,F=this._isRtl,null!==w&&zu(w).call(D).selectAll(".tick text").each((function(){var e=zu(this),t=e.text(),n="".concat(e.text().slice(0,T),"..."),r=e.text().length,o=M?1.5:1,a=e.attr("y"),i=e.attr("x"),s=parseFloat(e.attr("dy"));e.text(null).append("tspan").attr("x",i).attr("y",a).attr("id","BaseSpan").attr("dy",s+"em").attr("data-",t),M&&r>T?e.append("tspan").attr("id","showDots").attr("x",i).attr("y",a).attr("dy",s).attr("dx",o+0+"em").text(n):e.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",F?P:i).attr("y",a).attr("dx",o+0+"em").text(t)}))),this.props.getAxisData&&this.props.getAxisData(N),this._getData(b,C),this._classNames=Yp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var V,I={width:this.state.containerWidth,height:this.state.containerHeight},O=this.props.children(o(o({},this.state),{xScale:b,yScale:C,yScaleSecondary:S}));return V=this.props.focusZoneDirection===md.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:md.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(e){return l.chartContainer=e},onMouseLeave:this._onChartLeave},s.createElement(qd,o({direction:V},f),s.createElement("svg",o({width:I.width,height:I.height,"aria-label":this.props.chartTitle,style:{display:"block"}},g),s.createElement("g",{ref:function(e){l.xAxisElement=e},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(I.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),s.createElement("g",{ref:function(e){l.yAxisElement=e},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?I.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&s.createElement("g",{ref:function(e){l.yAxisElementSecondary=e},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:I.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),O)),!this.props.hideLegend&&s.createElement("div",{ref:function(e){return l.legendContainer=e},className:this._classNames.legendContainer},this.props.legendBars),s.createElement(ko,o({hidden:!(!this.props.hideTooltip&&u.isCalloutVisible),shouldUpdateWhenHidden:!0},u),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(u),!this.props.customizedCallout&&!this.props.isCalloutForStack&&s.createElement(Sd,o({XValue:u.XValue,Legend:u.legend,YValue:u.YValue,color:u.color,culture:this.props.culture},p))))},t.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},t.prototype._getCalloutContent=function(e,t,n,r){var o=r?{}:{marginRight:"16px"},a=void 0!==e.index&&-1!==e.index,i=Yp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:e.color,toDrawShape:a}),l=this.props.culture,c=yd(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var u=e.yAxisCalloutData;return s.createElement("div",{style:o},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),Object.keys(u).map((function(e){return s.createElement("div",{key:e,className:i.calloutBlockContainer},s.createElement("div",{className:i.calloutlegendText}," ",yd(e,l)),s.createElement("div",{className:i.calloutContentY},yd(u[e],l)))})))}return s.createElement("div",{style:n?o:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),s.createElement("div",{id:"".concat(t,"_").concat(e.y),className:i.calloutBlockContainer},a&&s.createElement(Kh,{svgProps:{className:i.shapeStyles},pathProps:{fill:e.color},shape:pd[e.index%Object.keys(vd).length]}),s.createElement("div",null,s.createElement("div",{className:i.calloutlegendText}," ",e.legend),s.createElement("div",{className:i.calloutContentY},yd(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t;if(e.props.hideLegend)t=0;else{var o=e.legendContainer&&getComputedStyle(e.legendContainer);t=(e.legendContainer&&e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(o&&o.marginTop||"0")+parseFloat(o&&o.marginBottom||"0")}if(e.props.parentRef||e.chartContainer){var a=e.props.parentRef?e.props.parentRef:e.chartContainer,i=a.getBoundingClientRect().width,s=a.getBoundingClientRect().height>t?a.getBoundingClientRect().height:350;(n!==i||r!==s-t)&&e.setState({containerWidth:i,containerHeight:s-t})}}))},t}(s.Component),qp=function(){var e,t=d();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),Xp=E(Up,(function(e){var t,n,r,a,i,s,l,c,u=e.className,d=e.theme,h=e.isRtl,p=e.shouldHighlight,f=e.href,g=e.lineColor,m=void 0===g?"transparent":g,v=e.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},u],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(t={},t[qn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[qn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[qn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(a={},a[qn]={opacity:.1,stroke:"rgb(179, 179, 179)"},a)},g:[h&&!qp&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[o(o({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(i={},i[Un]={forcedColorAdjust:"none"},i),borderLeft:"4px solid ".concat(m),paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:o(o({},_.small),{lineHeight:"16px",selectors:(s={},s[qn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[o(o({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[qn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[qn]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),jp=nr((function(e){return nr((function(t){var n=nr((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function Kp(e,t){return jp(e)(t)}var Gp=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},Zp=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},$p="spacer-",Qp={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Jp=function(e){return e.getBoundingClientRect()},ef=Jp,tf=Jp,nf=function(e){function t(t){var n=e.call(this,t)||this;return n._root=s.createRef(),n._surface=s.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version||!t.hasMounted&&n.props.renderEarly&&c()?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return s.createElement("div",o({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return s.createElement("div",o({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r,i=n.props,l=i.onRenderCell,c=i.onRenderCellConditional,u=i.role,d=e.page,h=d.items,p=void 0===h?[]:h,f=d.startIndex,g=a(e,["page"]),m=void 0===u?"listitem":"presentation",v=[],_=0;_<p.length;_++){var y=f+_,x=p[_],b=n.props.getKey?n.props.getKey(x,y):x&&x.key;null==b&&(b=y);var C=null!=c?c:l,S=null!==(r=null==C?void 0:C(x,y,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==r?r:null;c&&!S||v.push(s.createElement("div",{role:m,className:"ms-List-cell",key:b,"data-list-index":y,"data-automationid":"ListCell"},S))}return s.createElement("div",o({},g),v)},Ld(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new Ot(n),n._events=new lh(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return r(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.props.startIndex,o=r+this._getRenderCount(),a=this._allowedRect,i=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(this.props,l,a),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=tf(this._scrollElement),h=Gp(this._scrollElement),p={top:h,bottom:h+d.height},f=e-l,g=0;g<f;++g)i+=t(l+g);var m=i+t(e);switch(n){case 1:return void Zp(this._scrollElement,i);case 2:return void Zp(this._scrollElement,m-d.height);case 3:return void Zp(this._scrollElement,(i+m-d.height)/2)}if(i>=p.top&&m<=p.bottom)return;i<p.top||m>p.bottom&&(i=m-d.height)}return void(this._scrollElement&&Zp(this._scrollElement,i))}i+=u}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var a=0,i=r.startIndex;i<r.startIndex+r.itemCount;i++){if(o=e(i),r.top+a<=this._scrollTop&&this._scrollTop<r.top+a+o)return i;a+=o}}}return 0},t.prototype.componentDidMount=function(){this._scrollElement=it(this._root.current),this._scrollTop=0,this.setState(o(o({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var a=0;a<n.length;a++){var i=n[a],s=r[a];if(i.key!==s.key||i.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,a=e.onRenderSurface,i=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=et(this.props,Je),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=a?Kp(a,this._onRenderSurface):this._onRenderSurface;return(i?Kp(i,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:o(o({},u),{className:tt("ms-List",t),role:c.length>0?r:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var o=this._getPageStyle(e),a=this.props.onRenderPage,i=(void 0===a?this._onRenderPage:a)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:i}),i},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return o(o({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=Le(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,a=Math.min(t,r+1),i=Math.min(n,o+1);a===r&&i===o||(this._requiredWindowsAhead=a,this._requiredWindowsBehind=i,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>a||n>i)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),o(o(o({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var a={},i=0,s=e;i<s.length;i++)(u=s[i]).items&&(a[u.startIndex]=u);for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(a[u.startIndex]?delete a[u.startIndex]:this._onPageAdded(u))}for(var d in a)a.hasOwnProperty(d)&&this._onPageRemoved(a[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,a=e.startIndex,i=e.getPageHeight;n=this._getRenderCount(e);for(var s=o({},Qp),l=[],c=1,u=0,d=null,h=this._focusedIndex,p=a+n,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!i,m=this._allowedRect,v=function(n){var o=_._getPageSpecification(e,n,m),i=o.height,v=o.data,y=o.key;c=o.itemCount;var x,b,C=u+i-1,S=Ce(t.pages,(function(e){return!!e.items&&e.startIndex===n}))>-1,E=!m||C>=m.top&&u<=m.bottom,L=!_._requiredRect||C>=_._requiredRect.top&&u<=_._requiredRect.bottom;if(!g&&(L||E&&S)||!f||h>=n&&h<n+c||n===a){d&&(l.push(d),d=null);var k=Math.min(c,p-n),A=_._createPage(y,r.slice(n,n+k),n,void 0,void 0,v);A.top=u,A.height=i,_._visibleRect&&_._visibleRect.bottom&&(A.isVisible=C>=_._visibleRect.top&&u<=_._visibleRect.bottom),l.push(A),L&&_._allowedRect&&(x=s,b={top:u,bottom:C,height:i,left:m.left,right:m.right,width:m.width},x.top=b.top<x.top||-1===x.top?b.top:x.top,x.left=b.left<x.left||-1===x.left?b.left:x.left,x.bottom=b.bottom>x.bottom||-1===x.bottom?b.bottom:x.bottom,x.right=b.right>x.right||-1===x.right?b.right:x.right,x.width=x.right-x.left+1,x.height=x.bottom-x.top+1)}else d||(d=_._createPage($p+n,void 0,n,0,void 0,v,!0)),d.height=(d.height||0)+(C-u)+1,d.itemCount+=c;if(u+=C-u+1,g&&f)return"break"},_=this,y=a;y<p&&"break"!==v(y);y+=c);return d&&(d.key=$p+"end",l.push(d)),this._materializedRect=s,o(o({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var o=r(t,n),a=o.itemCount,i=void 0===a?this._getItemCountForPage(t,n):a,s=o.height;return{itemCount:i,height:void 0===s?this._getPageHeight(t,n,i):s,data:o.data,key:o.key}}return{itemCount:i=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,i)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){return(this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10)||10},t.prototype._createPage=function(e,t,n,r,o,a,i){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:a,isSpacer:i||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,a=e.renderedWindowsBehind,i=t.pages;if(this._shouldVirtualize(e)){var s=this._surfaceRect||o({},Qp),l=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),c=Gp(this._scrollElement);this._surface.current&&(n||!i||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=ef(this._surface.current),this._scrollTop=c),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var u=Math.max(0,-s.top),h=d(this._root.current),p={top:u,left:s.left,bottom:u+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=rf(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=rf(p,a,r),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return s.createElement(s.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},t}(s.Component);function rf(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}var of,af=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=zu(t.current),r=e.text.split(/\s+/),o=[],a=n.append("tspan"),i=0;return r.forEach((function(t){o.push(t),a.text(o.join(" "));var r=a.node();r&&r.getComputedTextLength()>e.width&&o.length>1&&(i++,o.pop(),a.text(o.join(" ")),o=[t],a=n.append("tspan").text(t).attr("dy",e.lineHeight).attr("x",e.x))})),n.attr("dy",-i*e.lineHeight),function(){n.selectAll("tspan").remove()}}})),e.lineHeight;var n=a(e,["lineHeight"]);return s.createElement("text",o({ref:t},n))},sf=function(e){var t,n=s.useRef(null),r=s.useState(!1),o=r[0],a=r[1],i=null;if(o){var l=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));l.length>0&&(i=s.createElement(ko,{target:n.current,onDismiss:function(){return a(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(qd,{isCircularNavigation:!0,direction:md.vertical},s.createElement(nf,{items:l,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var c=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.textColor;return t=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),s.createElement(s.Fragment,null,s.createElement("g",{ref:n,onClick:function(){return a(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},s.createElement(af,{text:t,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:c})),i)},lf=function(e){var t=e.labelWidth?e.labelWidth:105,n=e.chartYTop-20,r=n+7,a=e.scale.range(),i=e.events.map((function(t){return o(o({},t),{x:e.scale(t.date)})}));i.sort((function(e,t){return+e.date-+t.date}));var l=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.strokeColor,c=function(e,t){for(var n=[],r=[],o=0,a=e;o<a.length;o++){var i=a[o],s=t(i);-1===n.indexOf(s)&&(r.push(i),n.push(s))}return r}(i,(function(e){return e.date.toString()})).map((function(t,n){return s.createElement("line",{key:n,x1:t.x,x2:t.x,y1:r,y2:e.chartYBottom,stroke:l,strokeDasharray:"8"})})),u=function(e,t,n,r){var o=function(r,o){if(o===e.length)return[];var i=e[o].x,s=i-t;return i<r?[]:o===e.length-1?r<s?[{x:i,anchor:"end",aggregatedIdx:[o]}]:i+t<n?[{x:i,anchor:"start",aggregatedIdx:[o]}]:[]:a(o,r<s?"end":"start")},a=function(r,a){var i="end"===a?e[r].x:e[r].x+t,s=Ce(e,(function(e){return e.x>i&&(e.x-t>=i||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],c=r;c<s;c++)l.push(c);var u=o(i,s);return u.unshift({x:e[r].x,anchor:a,aggregatedIdx:l}),u};return o(r,0)}(i,t+5,a[1],a[0]).map((function(r,a){return s.createElement(sf,o({key:a},{lineDefs:i,labelDef:r,textY:n,textWidth:t,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return s.createElement(s.Fragment,null,c,u)},cf={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},uf={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},df={qualitative:uf,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},hf=Object.values(uf),pf=Object.values(cf),ff=function(e,t){if(0===e.length)return"";var n=Number(t);return n<e.length?e[n]:e[0]},gf=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=hf[(e+t)%hf.length];return ff(r,n)},mf=function(e,t){if(void 0===t&&(t=!1),pf.indexOf(e)>=0){var n=e.split("."),r=n[0],o=n[1],a=df[r][o];return ff(a,t)}return e},vf=he();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(of||(of={}));var _f=Uo((function(e){return e.x})).left,yf=function(e){function t(t){var n=e.call(this,t)||this;return n._xAxisScale="",n._yAxisScale="",n.eventLabelHeight=36,n._injectIndexPropertyInLineChartData=function(e){var t=n.props.allowMultipleShapesForPoints,r=void 0!==t&&t;return e?e.map((function(e,t){var a,i,s;return s=void 0===e.color?gf(t,0,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted):mf(e.color,null===(i=n.props.theme)||void 0===i?void 0:i.isInverted),o(o({},e),{index:r?t:-1,color:s})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(e){n.margins=e},n._initializeLineChartData=function(e,t,r,o,a){n._xAxisScale=e,n._yAxisScale=t,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(a,r)},n._handleSingleLegendSelectionAction=function(e){n.state.selectedLegend===e.legend?(n.setState({selectedLegend:""}),n._handleLegendClick(e,null)):(n.setState({selectedLegend:e.legend}),n._handleLegendClick(e,e.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(e,t,r){var o=n.props,a=o.allowMultipleShapesForPoints,i=void 0!==a&&a,s=o.strokeWidth,l=void 0===s?4:s,c=n.state.activePoint;return i?c===e?of.hoverSize:1===t||r?2.5*l:of.invisibleSize:c===e?of.hoverSize:of.invisibleSize},n._getPath=function(e,t,r,o,a,i){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=n._getBoxWidthOfShape(r,o,a),u=l?i%Object.keys(vd).length:0,d=vd[u].widthRatio;return function(e,t,n,r){return["M".concat(e-n/2," ").concat(t,"\n A").concat(n/2," ").concat(n/2," 0 1 0 ").concat(e+n/2," ").concat(t,"\n M").concat(e-n/2," ").concat(t,"\n A ").concat(n/2," ").concat(n/2," 0 1 1 ").concat(e+n/2," ").concat(t,"\n "),"M".concat(e-n/2," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t+n/2,"\n L").concat(e-n/2," ").concat(t+n/2,"\n Z"),"M".concat(e-n/2," ").concat(t-.2886*n,"\n H ").concat(e+n/2,"\n L").concat(e," ").concat(t+.5774*n," Z"),"M".concat(e," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t,"\n L").concat(e," ").concat(t+n/2,"\n L").concat(e-n/2," ").concat(t,"\n Z"),"M".concat(e," ").concat(t-.5774*n,"\n L").concat(e+n/2," ").concat(t+.2886*n,"\n L").concat(e-n/2," ").concat(t+.2886*n," Z"),"M".concat(e-.5*n," ").concat(t-.866*n,"\n L").concat(e+.5*n," ").concat(t-.866*n,"\n L").concat(e+n," ").concat(t,"\n L").concat(e+.5*n," ").concat(t+.866*n,"\n L").concat(e-.5*n," ").concat(t+.866*n,"\n L").concat(e-n," ").concat(t,"\n Z"),"M".concat(e," ").concat(t-.851*n,"\n L").concat(e+.6884*n," ").concat(t-.2633*n,"\n L").concat(e+.5001*n," ").concat(t+.6884*n,"\n L").concat(e-.5001*n," ").concat(t+.6884*n,"\n L").concat(e-.6884*n," ").concat(t-.2633*n,"\n Z"),"M".concat(e-.5001*n," ").concat(t-1.207*n,"\n L").concat(e+.5001*n," ").concat(t-1.207*n,"\n L").concat(e+1.207*n," ").concat(t-.5001*n,"\n L").concat(e+1.207*n," ").concat(t+.5001*n,"\n L").concat(e+.5001*n," ").concat(t+1.207*n,"\n L").concat(e-.5001*n," ").concat(t+1.207*n,"\n L").concat(e-1.207*n," ").concat(t+.5001*n,"\n L").concat(e-1.207*n," ").concat(t-.5001*n,"\n Z")][r]}(e,t,c=d>1?c/d:c,u)},n._getPointFill=function(e,t,r,o){var a=n.state.activePoint,i=n.props,s=i.theme;return i.allowMultipleShapesForPoints,a===t?s.palette.white:e},n._createColorFillBars=function(e){var t,r=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var o=hd(n._points,Ku.LineChart),a=0;a<n._colorFillBars.length;a++){var i=n._colorFillBars[a],l=xe(i.legend.replace(/\W/g,"")),c=mf(i.color,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted);i.applyPattern&&r.push(n._getStripePattern(c,a));for(var u=0;u<i.data.length;u++){var d=i.data[u].startX,h=i.data[u].endX,p=n._legendHighlighted(i.legend)||n._noLegendHighlighted()||n.state.isSelectedLegend?n._getColorFillBarOpacity(i):.1;r.push(s.createElement("rect",{fill:i.applyPattern?"url(#".concat(n._colorFillBarPatternId,"_").concat(a,")"):c,fillOpacity:p,x:n._xAxisScale(d),y:n._yAxisScale(o.endValue)-3,width:Math.abs(n._xAxisScale(h)-n._xAxisScale(d)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(o.endValue)+3,key:"".concat(l).concat(u)}))}}return r},n._getStripePattern=function(e,t){return s.createElement("pattern",{id:"".concat(n._colorFillBarPatternId,"_").concat(t),width:16,height:16,key:"".concat(n._colorFillBarPatternId,"_").concat(t),patternUnits:"userSpaceOnUse"},s.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},n._checkInGap=function(e,t,n){for(var r=n,o=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(o=!0),{isInGap:o,gapIndex:r}},n._onMouseOverLargeDataset=function(e,t,r){r.persist();var o=n.props.data.lineChartData,a=n._xAxisScale.invert(qu(document.getElementById(n._rectId),r)[0]),i=_f(o[e].data,a),s=o[e].data[i-1],l=o[e].data[i],c=null,u=null;if(void 0===s&&void 0!==l)c=l.x,u=i;else if(void 0!==s&&void 0===l)c=s.x,u=i-1;else{var d=void 0,h=void 0,p=void 0;switch(gd(o[e].data[0].x,!0)){case Gu.DateAxis:d=new Date(a).getTime(),h=s.x.getTime(),p=l.x.getTime(),c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?i:i-1;break;case Gu.NumericAxis:d=a,h=s.x,p=l.x,c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?i:i-1}}var f=o[e].data[u],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,v=c instanceof Date?c.toLocaleString():c,_=c instanceof Date?c.getTime():c,y=Se(n._calloutPoints,(function(e){return e.x===_})),x=o[e].data[u],b=null===n.state.nearestCircleToHighlight||null!==n.state.nearestCircleToHighlight&&null!==x&&(n.state.nearestCircleToHighlight.x!==x.x||n.state.nearestCircleToHighlight.y!==x.y);y&&b&&(n._uniqueCallOutID="#".concat(n._staticHighlightCircle,"_").concat(e),zu("#".concat(n._staticHighlightCircle,"_").concat(e)).attr("cx","".concat(n._xAxisScale(x.x))).attr("cy","".concat(n._yAxisScale(x.y))).attr("visibility","visibility"),zu("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(n._xAxisScale(x.x),", ").concat(n._yAxisScale(x.y),")")})).attr("visibility","visibility").attr("y2","".concat(t-n._yAxisScale(x.y))),n.setState({nearestCircleToHighlight:x,isCalloutVisible:!0,refSelected:"#".concat(n._staticHighlightCircle,"_").concat(e),stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:g||v,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:e})),y||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,activePoint:"",activeLine:e})},n._handleFocus=function(e,t,r,o,a){n._uniqueCallOutID=o;var i=t instanceof Date?t.toLocaleDateString():t,s=t instanceof Date?t.getTime():t,l=Se(n._calloutPoints,(function(e){return e.x===s}));if(l){var c=n;zu("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(t),", 0)")})).attr("visibility","visibility"),n._refArray.forEach((function(t){t.index===e&&n.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:r||""+i,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:o,xAxisCalloutAccessibilityData:a})}))}else n.setState({activePoint:o})},n._handleHover=function(e,t,r,o,a,i,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,c=e instanceof Date?e.getTime():e,u=n,d=Se(n._calloutPoints,(function(e){return e.x===c}));d?(zu("#".concat(n._verticalLine)).attr("transform",(function(){return"translate(".concat(u._xAxisScale(e),", ").concat(u._yAxisScale(t),")")})).attr("visibility","visibility").attr("y2","".concat(r-u._yAxisScale(t))),n._uniqueCallOutID!==a&&(n._uniqueCallOutID=a,n.setState({isCalloutVisible:!0,refSelected:"#".concat(a),hoverXValue:o||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:a,xAxisCalloutAccessibilityData:i,nearestCircleToHighlight:null,activeLine:null}))):n.setState({activePoint:a,nearestCircleToHighlight:null,activeLine:null})},n._getClickHandler=function(e){return e?{onClick:e}:{}},n._handleMouseOut=function(){zu("#".concat(n._verticalLine)).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},n._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},n._handleMultipleLineLegendSelectionAction=function(e){var t,r=n.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);t=-1===r?i(i([],n.state.selectedLegendPoints,!0),[e],!1):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&t.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():t.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var o=t.map((function(e){return e.legend}));n._handleLegendClick(e,o)},n._handleMultipleColorFillBarLegendSelectionAction=function(e){var t,r=n.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(t=-1===r?i(i([],n.state.selectedColorBarLegend,!0),[e],!1):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():t.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var o=t.map((function(e){return e.legend}));n._handleLegendClick(e,o)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getColorFillBarOpacity=function(e){return e.applyPattern?1:.4},n._getAriaLabel=function(e,t){var r,o=n._points[e],a=o.data[t],i=a.x instanceof Date?a.x.toLocaleString():a.x,s=a.xAxisCalloutData||i,l=o.legend,c=a.yAxisCalloutData||a.y;return(null===(r=a.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._calloutPoints=sd(n._points)||[],n._circleId=xe("circle"),n._lineId=xe("lineID"),n._borderId=xe("borderID"),n._verticalLine=xe("verticalLine"),n._colorFillBarPatternId=xe("colorFillBarPattern"),n._tooltipId=xe("LineChartTooltipId_"),n._rectId=xe("containerRectLD"),n._staticHighlightCircle=xe("staticHighlightCircle"),t.eventAnnotationProps&&t.eventAnnotationProps.labelHeight&&(n.eventLabelHeight=t.eventAnnotationProps.labelHeight),n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=sd(this._points)||[])},t.prototype.render=function(){var e=this,t=this.props,n=t.tickValues,r=t.tickFormat,a=t.eventAnnotationProps,i=t.legendProps,l=t.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var c=ud(this._points),u=this._points;i&&i.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=sd(u));var d=this._createLegends(this._points),h=o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),p={tickValues:n,tickFormat:r};return s.createElement(Xp,o({},this.props,{chartTitle:l.chartTitle,points:u,chartType:Ku.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?Gu.DateAxis:Gu.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#C8C8C8",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),e.props.optimizeLargeData?s.createElement("rect",{id:e._rectId,width:t.containerWidth,height:t.containerHeight,fill:"transparent"}):s.createElement(s.Fragment,null),s.createElement("g",null,e._renderedColorFillBars,e.lines),a&&s.createElement(lf,o({},a,{scale:t.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:t.containerHeight-35}))))}}))},t.prototype._createLegends=function(e){var t=this,n=this.props,r=n.legendProps,a=n.allowMultipleShapesForPoints,l=void 0!==a&&a,c=!(!r||!r.canSelectMultipleLegends),u=e.map((function(e){var n=e.color;return o(o({title:e.legend,color:n,action:function(){c?t._handleMultipleLineLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t._handleChartMouseLeave(),t.setState({activeLegend:e.legend})}},e.legendShape&&{shape:e.legendShape}),l&&{shape:pd[e.index%Object.keys(vd).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r,o=e.legend,a=mf(e.color,null===(r=t.props.theme)||void 0===r?void 0:r.isInverted);return{title:o,color:a,action:function(){c?t._handleMultipleColorFillBarLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t._handleChartMouseLeave(),t.setState({activeLegend:o})},opacity:t._getColorFillBarOpacity(e),stripePattern:e.applyPattern}})):[];return s.createElement($h,o({legends:i(i([],u,!0),d,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},c&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e,t){var n,r,a,l,c,u,d,h,p,f,g,m,v,_,y,x,b,C,S,E,L,k,A,w,D=this,T=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var M=function(e){var M=[],F=[],N=[],V=P._points[e].legend,I=P._points[e].color,O=P.state.activePoint,H=P.props.theme,B=t-P.margins.bottom+6;if(1===P._points[e].data.length){var R=P._points[e].data[0],W=R.x,z=R.y,Y=R.xAxisCalloutData,U=R.xAxisCalloutAccessibilityData,q="".concat(P._circleId,"_").concat(e);N.push(s.createElement("circle",o({id:q,key:q,r:O===q?5.5:3.5,cx:P._xAxisScale(W),cy:P._yAxisScale(z),fill:O===q?H.palette.white:I,onMouseOver:P._handleHover.bind(P,W,z,B,Y,q,U),onMouseMove:P._handleHover.bind(P,W,z,B,Y,q,U),onMouseOut:P._handleMouseOut,strokeWidth:O===q?4:0,stroke:O===q?I:"",role:"img","aria-label":P._getAriaLabel(e,0),"data-is-focusable":!0,ref:function(e){D._refCallback(e,q)},onFocus:function(){return D._handleFocus(q,W,Y,q,U)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[0].onDataPointClick))))}var X=0,j=null!==(r=null===(n=P._points[e].gaps)||void 0===n?void 0:n.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==r?r:[];if(P.props.optimizeLargeData&&P._points[e].data.length>1){for(var K=zp().x((function(e){return D._xAxisScale(e[0])})).y((function(e){return D._yAxisScale(e[1])})).curve(Bp),G="".concat(P._lineId,"_").concat(e),Z="".concat(P._borderId,"_").concat(e),$=(null===(a=P._points[e].lineOptions)||void 0===a?void 0:a.strokeWidth)||P.props.strokeWidth||4,Q=P._legendHighlighted(V)||P._noLegendHighlighted()||P.state.isSelectedLegend,J=[],ee=0;ee<P._points[e].data.length;ee++)J.push([P._points[e].data[ee].x instanceof Date?P._points[e].data[ee].x.getTime():P._points[e].data[ee].x,P._points[e].data[ee].y]);if(Q){var te=(null===(l=P._points[e].lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(P._points[e].lineOptions.lineBorderWidth.toString()):0;te>0&&F.push(s.createElement("path",{id:Z,key:Z,d:K(J),fill:"transparent",strokeLinecap:null!==(u=null===(c=P._points[e].lineOptions)||void 0===c?void 0:c.strokeLinecap)&&void 0!==u?u:"round",strokeWidth:Number.parseFloat($.toString())+te,stroke:(null===(d=P._points[e].lineOptions)||void 0===d?void 0:d.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("path",o({id:G,key:G,d:K(J),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:$,strokeLinecap:null!==(p=null===(h=P._points[e].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==p?p:"round",onMouseMove:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOver:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOut:P._handleMouseOut},P._getClickHandler(P._points[e].onLineClick),{opacity:1,role:"img","aria-label":"".concat(V,", series ").concat(e+1," of ").concat(P._points.length," with ").concat(P._points[e].data.length," data points.")})))}else M.push(s.createElement("path",{id:G,key:G,d:K(J),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:$,strokeLinecap:null!==(g=null===(f=P._points[e].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==g?g:"round",opacity:.1,role:"img","aria-label":"".concat(V,", series ").concat(e+1," of ").concat(P._points.length," with ").concat(P._points[e].data.length," data points.")}));var ne=null!==P.state.activeLine&&P.state.activeLine===e;N.push(s.createElement("circle",{id:"".concat(P._staticHighlightCircle,"_").concat(e),key:"".concat(P._staticHighlightCircle,"_").concat(e),r:5.5,cx:0,cy:0,fill:H.palette.white,strokeWidth:4,stroke:I,visibility:ne?"visibility":"hidden",onMouseMove:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOver:P._onMouseOverLargeDataset.bind(P,e,B),onMouseOut:P._handleMouseOut}))}else if(!P.props.optimizeLargeData)for(var re=function(t){var n=P._checkInGap(t,j,X),r=n.isInGap;X=n.gapIndex;var a="".concat(P._lineId,"_").concat(e,"_").concat(t),i="".concat(P._borderId,"_").concat(e,"_").concat(t),l="".concat(P._circleId,"_").concat(e,"_").concat(t),c=P._points[e].data[t-1],u=c.x,d=c.y,h=c.xAxisCalloutData,p=c.xAxisCalloutAccessibilityData,f=P._points[e].data[t],g=f.x,T=f.y,R=P._getPath(P._xAxisScale(u),P._yAxisScale(d),l,t,!1,P._points[e].index),W=(null===(m=P._points[e].lineOptions)||void 0===m?void 0:m.strokeWidth)||P.props.strokeWidth||4,z=P._legendHighlighted(V)||P._noLegendHighlighted()||P.state.isSelectedLegend,Y=P._points[e].hideNonActiveDots&&O!==l;if(N.push(s.createElement("path",o({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,u,d,B,h,l,p),onMouseMove:P._handleHover.bind(P,u,d,B,h,l,p),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(a,u,h,l,p)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[t-1].onDataPointClick),{opacity:z&&!Y?1:.01,fill:P._getPointFill(I,l,t,!1),stroke:I,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(e,t-1)}))),t+1===P._points[e].data.length){var U="".concat(l).concat(t,"L"),q=P._points[e].hideNonActiveDots&&O!==U;R=P._getPath(P._xAxisScale(g),P._yAxisScale(T),U,t,!0,P._points[e].index);var K=P._points[e].data[t],G=K.xAxisCalloutData,Z=K.xAxisCalloutAccessibilityData;N.push(s.createElement("path",o({id:U,key:U,d:R,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,g,T,B,G,U,Z),onMouseMove:P._handleHover.bind(P,g,T,B,G,U,Z),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(a,g,G,U,Z)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[t].onDataPointClick),{opacity:z&&!q?1:.01,fill:P._getPointFill(I,U,t,!0),stroke:I,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(e,t)})))}if(z){if(!r){var $=(null===(v=P._points[e].lineOptions)||void 0===v?void 0:v.lineBorderWidth)?Number.parseFloat(P._points[e].lineOptions.lineBorderWidth.toString()):0;$>0&&F.push(s.createElement("line",{id:i,key:i,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeLinecap:null!==(y=null===(_=P._points[e].lineOptions)||void 0===_?void 0:_.strokeLinecap)&&void 0!==y?y:"round",strokeWidth:Number.parseFloat(W.toString())+$,stroke:(null===(x=P._points[e].lineOptions)||void 0===x?void 0:x.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("line",o({id:a,key:a,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,ref:function(e){D._refCallback(e,a)},onMouseOver:P._handleHover.bind(P,u,d,B,h,l,p),onMouseMove:P._handleHover.bind(P,u,d,B,h,l,p),onMouseOut:P._handleMouseOut,stroke:I,strokeLinecap:null!==(C=null===(b=P._points[e].lineOptions)||void 0===b?void 0:b.strokeLinecap)&&void 0!==C?C:"round",strokeDasharray:null===(S=P._points[e].lineOptions)||void 0===S?void 0:S.strokeDasharray,strokeDashoffset:null===(E=P._points[e].lineOptions)||void 0===E?void 0:E.strokeDashoffset,opacity:1},P._getClickHandler(P._points[e].onLineClick))))}}else r||M.push(s.createElement("line",{id:a,key:a,x1:P._xAxisScale(u),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,stroke:I,strokeLinecap:null!==(k=null===(L=P._points[e].lineOptions)||void 0===L?void 0:L.strokeLinecap)&&void 0!==k?k:"round",strokeDasharray:null===(A=P._points[e].lineOptions)||void 0===A?void 0:A.strokeDasharray,strokeDashoffset:null===(w=P._points[e].lineOptions)||void 0===w?void 0:w.strokeDashoffset,opacity:.1}))},oe=1;oe<P._points[e].data.length;oe++)re(oe);T.push.apply(T,i(i(i([],F,!1),M,!1),N,!1))},P=this,F=this._points.length-1;F>=0;F--)M(F);var N=vf(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var V=zu(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var I={tooltipCls:N.tooltip,id:this._tooltipId,xAxis:V};V&&cd(I)}return T},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(s.Component),xf=E(yf,(function(e){return{tooltip:o(o({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));function bf(e,t){if((o=e.length)>1)for(var n,r,o,a=1,i=e[t[0]],s=i.length;a<o;++a)for(r=i,i=e[t[a]],n=0;n<s;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Cf(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Sf(e,t){return e[t]}function Ef(e){const t=[];return t.key=e,t}function Lf(e,t,n){var r=null,o=Jh(!0),a=null,i=Bp,s=null;function l(l){var c,u,d,h,p,f=(l=Qh(l)).length,g=!1,m=new Array(f),v=new Array(f);for(null==a&&(s=i(p=bp())),c=0;c<=f;++c){if(!(c<f&&o(h=l[c],c,l))===g)if(g=!g)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[c]=+e(h,c,l),v[c]=+t(h,c,l),s.point(r?+r(h,c,l):m[c],n?+n(h,c,l):v[c]))}if(p)return s=null,p+""||null}function c(){return zp().defined(o).curve(i).context(a)}return e="function"==typeof e?e:void 0===e?Rp:Jh(+e),t="function"==typeof t?t:Jh(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Wp:Jh(+n),l.x=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Jh(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Jh(+e),l):r},l.y=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:Jh(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Jh(+e),l):n},l.lineX0=l.lineY0=function(){return c().x(e).y(t)},l.lineY1=function(){return c().x(e).y(n)},l.lineX1=function(){return c().x(r).y(t)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:Jh(!!e),l):o},l.curve=function(e){return arguments.length?(i=e,null!=a&&(s=i(a)),l):i},l.context=function(e){return arguments.length?(null==e?a=s=null:s=i(a=e),l):a},l}function kf(e){return e<0?-1:1}function Af(e,t,n){var r=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0),s=(a*o+i*r)/(r+o);return(kf(a)+kf(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function wf(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Df(e,t,n){var r=e._x0,o=e._y0,a=e._x1,i=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,o+s*t,a-s,i-s*n,a,i)}function Tf(e){this._context=e}function Mf(e){this._context=e}function Pf(e){return new Tf(e)}Tf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Df(this,this._t0,wf(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Df(this,wf(this,n=Af(this,e,t)),n);break;default:Df(this,this._t0,n=Af(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(function(e){this._context=new Mf(e)}.prototype=Object.create(Tf.prototype)).point=function(e,t){Tf.prototype.point.call(this,t,e)},Mf.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,a){this._context.bezierCurveTo(t,e,r,n,a,o)}};var Ff,Nf=he(),Vf=Uo((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Ff||(Ff={}));var If=function(e){function t(t){var n=e.call(this,t)||this;return n._getMargins=function(e){n.margins=e},n._onRectMouseMove=function(e){e.persist();var t=n.props.data.lineChartData,r=n._xAxisRectScale.invert(qu(document.getElementById(n._rectId),e)[0]),o=Vf(t[0].data,r),a=t[0].data[o-1],i=t[0].data[o],s=null,l=null,c=null;if(void 0===a&&void 0!==i)l=i.x,c=o;else if(void 0!==a&&void 0===i)l=a.x,c=o-1;else{var u=void 0,d=void 0,h=void 0;switch(s=gd(t[0].data[0].x,!0)){case Gu.DateAxis:u=new Date(r).getTime(),d=a.x.getTime(),h=i.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?i.x:a.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1;break;case Gu.NumericAxis:u=r,d=a.x,h=i.x,l=Math.abs(u-d)>Math.abs(u-h)?i.x:a.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1}}var p=t[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,v=l instanceof Date?l.getTime():l,_=Se(n._calloutPoints,(function(e){return e.x===v})),y=s===Gu.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==y;_&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:y,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:Ff.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Ff.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Ff.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=Jh([]),t=Cf,n=bf,r=Sf;function o(o){var a,i,s=Array.from(e.apply(this,arguments),Ef),l=s.length,c=-1;for(const e of o)for(a=0,++c;a<l;++a)(s[a][c]=[0,+r(e,s[a].key,c,o)]).data=e;for(a=0,i=Qh(t(s));a<l;++a)s[i[a]].index=a;return n(s,i),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Jh(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Jh(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Cf:"function"==typeof e?e:Jh(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?bf:e,o):n},o}().keys(e)(t),o=jo(r[r.length-1],(function(e){return e[1]})),a=[];return r.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),a.push(t)})),n._isMultiStackChart=!!(a&&a.length>1),{stackedData:a,maxOfYVal:o}},n._createDataSet=function(e){var t=[],r=[],o=[],a=[],i=sd(e);e&&e.length&&e.forEach((function(e){o.push(e.color),a.push(e.opacity||1),t.push.apply(t,e.data)}));for(var s=t,l=function(){var e=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x,t=s.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)===e})),n={};t.forEach((function(e,t){n.xVal=e.x,n["chart".concat(t)]=e.y})),r.push(n);var o=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x;s=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==o}))};s.length;)l();for(var c=r&&Object.keys(r[0]).length,u=[],d=0;d<c-1;d++){var h="chart".concat(d);u.push(h)}var p=n._getStackedData(u,r);return{colors:o,opacity:a,keys:u,stackedInfo:p,calloutPoints:i}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(e,t,r,o,a){n._chart=n._drawGraph(r,e,t,a)},n._getLegendData=function(e){var t=[];return e.forEach((function(e){var r=e.color;if(!(t.filter((function(t){return t.title===e.legend&&t.color===r})).length>0)){var o={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};t.push(o)}})),s.createElement($h,o({legends:t,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._onDataPointClick=function(e){e&&e(),n.setState({isCircleClicked:!0})},n._getOpacity=function(e){return n._isMultiStackChart?n._legendHighlighted(e)||n._noLegendHighlighted()?.7:.1:.7},n._getLineOpacity=function(e){if(n._isMultiStackChart){var t=.3;return n.state.isCalloutVisible&&(t=1),n._noLegendHighlighted()||(t=n._legendHighlighted(e)?0:.1),t}return 1},n._updateCircleFillColor=function(e,t,r){var o=t;return n.state.nearestCircleToHighlight!==e&&n.state.activePoint!==r||(n._highlightedCircleId=r,n.state.isCircleClicked||(o=n.props.theme.palette.white)),o},n._drawGraph=function(e,t,r,a){var i,l=n._addDefaultColors(n.props.data.lineChartData),c=n.props.data,u=c.pointOptions,d=c.pointLineOptions,h=Lf().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(Pf),p=zp().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Pf),f=[];n._stackedData.forEach((function(e,a){f.push(s.createElement(s.Fragment,{key:"".concat(a,"-graph-").concat(n._uniqueIdForGraph)},s.createElement("path",o({id:"".concat(a,"-line-").concat(n._uniqueIdForGraph),d:p(e),fill:"transparent",strokeWidth:3,stroke:n._colors[a],opacity:n._getLineOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},l[a].lineOptions)),1===e.length?s.createElement("circle",{id:"".concat(a,"-graph-").concat(n._uniqueIdForGraph),cx:t(e[0].xVal),cy:r(e[0].values[1]),r:6,stroke:n._colors[a],strokeWidth:3,fill:n._colors[a],opacity:n._opacity[a],fillOpacity:n._getOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove}):s.createElement("path",o({id:"".concat(a,"-graph-").concat(n._uniqueIdForGraph),d:h(e),fill:n._colors[a],opacity:n._opacity[a],fillOpacity:n._getOpacity(l[a].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},n.props.optimizeLargeData&&{"data-is-focusable":!0,role:"img","aria-label":"".concat(l[a].legend,", series ").concat(a+1," of ").concat(l.length," with ").concat(l[a].data.length," data points.")}))))}));var g=u&&u.r?Number(u.r):8;n._stackedData.forEach((function(e,a){l.length!==a&&(n.props.optimizeLargeData&&1!==e.length?e.forEach((function(e,c){var d=e.xVal instanceof Date?e.xVal.getTime():e.xVal;if(n.state.nearestCircleToHighlight===d){var h="".concat(n._circleId,"_").concat(a*n._stackedData[0].length+c);i=l[a].color,f.push(s.createElement("circle",o({key:h,id:h,cx:t(e.xVal),cy:r(e.values[1]),stroke:i,strokeWidth:3,fill:n._updateCircleFillColor(d,i,h),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[a].data[c].onDataPointClick)},u,{r:n._getCircleRadius(d,g,h)})))}})):f.push(s.createElement("g",{key:"".concat(a,"-dots-").concat(n._uniqueIdForGraph),d:h(e),clipPath:"url(#clip)"},e.map((function(e,c){var d="".concat(n._circleId,"_").concat(a*n._stackedData[0].length+c),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return i=l[a].color,s.createElement("circle",o({key:d,id:d,"data-is-focusable":!0,cx:t(e.xVal),cy:r(e.values[1]),stroke:i,strokeWidth:3,fill:n._updateCircleFillColor(h,i,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[a].data[c].onDataPointClick),onFocus:function(){return n._handleFocus(a,c,d)},onBlur:n._handleBlur},u,{r:n._getCircleRadius(h,g,d),role:"img","aria-label":n._getAriaLabel(a,c)}))})))))})),f.push(s.createElement("line",o({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:i,opacity:.5,visibility:n.state.displayOfLine},d)));var m=Nf(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var v=zu(a).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var _={tooltipCls:m.tooltip,id:n._tooltipId,xAxis:v};v&&cd(_)}return f},n._getCircleRadius=function(e,t,r){var o=n.state,a=o.isCircleClicked,i=o.nearestCircleToHighlight,s=o.activePoint;return a&&i===e?1:i===e||s===r?t:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._addDefaultColors=function(e){return e?e.map((function(e,t){var r,a,i;return i=void 0===e.color?gf(t,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted):mf(e.color,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted),o(o({},e),{color:i})})):[]},n._handleFocus=function(e,t,r){var o=n.props.data.lineChartData[e].data[t],a=o.x,i=o.y,s=o.xAxisCalloutData,l=a instanceof Date?a.toLocaleString():a,c=a instanceof Date?a.getTime():a,u=n._calloutPoints.find((function(e){return e.x===c}));u.values=u.values.filter((function(e){return e.y===i})),n.setState({refSelected:"#".concat(r),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:r})},n._handleBlur=function(){n.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},n._getAriaLabel=function(e,t){var r,o=n.props.data.lineChartData[e],a=o.data[t],i=a.x instanceof Date?a.x.toLocaleString():a.x,s=a.xAxisCalloutData||i,l=o.legend,c=a.yAxisCalloutData||a.y;return(null===(r=a.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},n._createSet=tr(n._createDataSet),n.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Ff.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},n._uniqueIdForGraph=xe("areaChart_"),n._verticalLineId=xe("verticalLine_"),n._circleId=xe("circle"),n._rectId=xe("rectangle"),n._tooltipId=xe("AreaChartTooltipID"),n}return r(t,e),t.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},t.prototype.render=function(){var e=this,t=this.props.data,n=t.lineChartData,r=t.chartTitle,a=this._addDefaultColors(n),i=this._createSet(a),l=i.colors,c=i.opacity,u=i.stackedInfo,d=i.calloutPoints;this._calloutPoints=d;var h=ud(a);this._colors=l,this._opacity=c,this._stackedData=u.stackedData;var p=this._getLegendData(a),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},g=o({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return s.createElement(Xp,o({},this.props,{chartTitle:r,points:a,chartType:Ku.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?Gu.DateAxis:Gu.NumericAxis,tickParams:f,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){e._xAxisRectScale=t.xScale;var n=e._xAxisRectScale.ticks(),r=e._xAxisRectScale(n[n.length-1]),o=t.containerHeight-e.margins.top;return s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("rect",{id:e._rectId,width:r,height:o,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),s.createElement("g",null,e._chart))}}))},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t}(s.Component),Of=E(If,(function(e){return{tooltip:o(o({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Hf=function(e){return{root:{fill:e.color,stroke:zn.white,strokeWidth:2}}},Bf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){Wf(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Wf(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,o=he()(Hf,{color:n});return s.createElement("path",{d:r(this.props.data),className:o.root,onClick:null===(e=this.props.data)||void 0===e?void 0:e.data.onClick})},t.defaultProps={arc:wp()},t}(s.Component),Rf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var t=this.props,n=t.data,r=t.arc,o=t.culture,a=r.centroid(n),i=a[0],l=a[1],c="translate(".concat(i,", ").concat(l,")");return s.createElement("g",{className:"arc"},e.prototype.render.call(this),s.createElement("text",{transform:c,textAnchor:"middle"},n.data.x,"-",yd(n.data.y,o)))},t}(Bf);function Wf(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var zf,Yf=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return s.createElement(Rf,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:"".concat(n.colors(t))})},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.colors,o=t.data,a=t.width,i=t.height,l=t.chartTitle;this.colors=Pc().range(r);var c=n(o),u="translate(".concat(a/2,", ").concat(i/2,")");return s.createElement("svg",{width:a,height:i,"aria-label":l},s.createElement("g",{transform:u},c.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:fp().sort(null).value((function(e){return e.y}))},t}(s.Component),Uf=he(),qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,o=e.colors,a=e.chartTitle,i=this.props,l=i.theme,c=i.className,u=i.styles,d=i.culture;this._classNames=Uf(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n,r)/2-10;return s.createElement("div",{className:this._classNames.root},this.props.chartTitle&&s.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),s.createElement(Yf,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:o,chartTitle:a}))},t.defaultProps={data:[],width:600,height:350},t}(s.Component),Xf=E(qf,(function(e){var t=e.className,n=e.theme,r=e.width+30,a=e.height+10;return{root:[n.fonts.medium,"ms-PieChart",t,{width:r+40}],chart:[{padding:20,width:r,height:a,boxSizing:"content-box"}],chartTitle:[o({textAlign:"center"},n.fonts.mediumPlus)]}})),jf=he(),Kf=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xe("callout"),n}return r(t,e),t.prototype.render=function(){this._adjustProps();var e=this.props,t=e.data,n=e.benchmarkData,r=e.targetData,a=e.hideNumberDisplay,i=e.ignoreFixStyle,l=e.culture,c=this.props.theme.palette,u=i||t.chartData.length>2?this.props.barHeight:12;n&&(n.color=n.color||c.neutralTertiary),r&&(r.color=r.color||c.neutralSecondary);var d=this._createBarsAndLegends(t,u,c,n,r),h=!1===a&&!i&&2===t.chartData.length,p=!1===a&&!i&&1===t.chartData.length,f=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),g=0;n&&f&&(g=n.data/f*100);var m=0;r&&f&&(m=r.data/f*100);var v=!1===this.props.hideLegend&&(i||t.chartData.length>2);this._classNames=jf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:g,targetColor:r?r.color:"",targetRatio:m,showTriangle:!(!n&&!r)});var _=function(){return yd(t.chartData[0].data?t.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement(rh,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),h&&s.createElement("div",o({},_d(t.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},_()),!this.props.hideDenominator&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+yd(f,l))),p&&s.createElement("div",o({className:this._classNames.ratioNumerator},_d(t.chartDataAccessibilityData,"text",!1)),_())),(n||r)&&s.createElement("div",{className:this._classNames.benchmarkContainer},n&&s.createElement("div",{className:this._classNames.benchmark,role:"text"}),r&&s.createElement("div",{className:this._classNames.target,role:"text"}))),s.createElement(qd,{direction:md.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},s.createElement("g",null,d[0]),s.createElement(ko,o({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:Ee.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Sd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&s.createElement("div",{className:this._classNames.legendContainer},d[1]))},t.prototype._adjustProps=function(){this._classNames=jf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},t.prototype._createBarsAndLegends=function(e,t,n,r,a){var i=this,l=[n.blueLight,n.blue,n.blueMid,n.red,n.black],c=[],u=[],d=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),h=0,p=0,f=0;e.chartData.map((function(e,t){var n=e.data?e.data:0;return(p=n/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),f+=p}));var g=0!==f?f/100:1,m=e.chartData.map((function(e,n){var r=e.color?e.color:l[Math.floor(4*Math.random()+1)],o=e.data?e.data:0,a={title:e.legend,color:r,action:d>0?function(){i._onClick(e.legend)}:void 0,hoverAction:d>0?function(){i._handleChartMouseLeave(),i._onHover(e.legend)}:void 0,onMouseOutAction:d>0?function(){i._onLeave()}:void 0};e.placeHolder||c.push(a),n>0&&(h+=p),(p=o/d*100)<1&&0!==p?p=1/g:p>99&&100!==p?p=99/g:p/=g,u.push(h);var f=i.props.styles,m=!(!i._legendHighlighted(e.legend)&&!i._noLegendHighlighted());return i._classNames=jf(f,{theme:i.props.theme,shouldHighlight:m,href:i.props.href}),s.createElement("g",{key:n,className:i._classNames.opacityChangeOnHover,ref:function(e){i._refCallback(e,a.title)},"data-is-focusable":!i.props.hideTooltip,onFocus:i._onBarFocus.bind(i,o,r,e),onBlur:i._onBarLeave,"aria-label":i._getAriaLabel(e),role:"img",onMouseOver:i._onBarHover.bind(i,o,r,e),onMouseMove:i._onBarHover.bind(i,o,r,e),onMouseLeave:i._onBarLeave,pointerEvents:"all",onClick:i.props.href?i._redirectToUrl.bind(i,i.props.href):e.onClick},s.createElement("rect",{key:n,x:u[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(c,r),this._addLegend(c,a);var v=s.createElement($h,o({legends:c,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(t,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralLight)]:m,v]},t.prototype._onBarFocus=function(e,t,n){var r=this;this._refArray.forEach((function(o){o.index===n.legend&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._addLegend=function(e,t){if(t){var n={title:t.legend,color:t.color,shape:"triangle"};e.push(n)}},t.prototype._generateEmptyBar=function(e,t){return s.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:e,fill:t}))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onHover=function(e){this.setState({activeLegend:e})},t.prototype._onLeave=function(){this.setState({activeLegend:""})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),Gf=E(Kf,(function(e){var t,n,r=e.className,a=e.width,i=e.barHeight,s=e.shouldHighlight,l=e.theme,c=e.href,u=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio,f=e.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:a||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:i||12,display:"block",marginBottom:f?"16px":"10px"},chartTitle:o(o({},l.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:l.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:c?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Hn.medium,color:l.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:u,marginBottom:"4px",selectors:(t={},t[Un]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(u,", ").concat(u,")")},t)},target:{position:"absolute",left:"calc("+p+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(n={},n[Un]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},n)}}}));!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(zf||(zf={}));var Zf,$f=he(),Qf=function(e){function t(t){var n=e.call(this,t)||this;return n._isRTL=le(),n._adjustProps=function(){var e=n.props,t=e.theme,r=e.className,o=e.styles,a=e.width,i=e.barHeight;n._classNames=$f(o,{legendColor:n.state.color,theme:t,width:a,className:r,barHeight:i})},n._getLegendData=function(e,t,r){var a=[r.blueLight,r.blue,r.blueMid,r.red,r.black],i=[];return e.forEach((function(e,r){var o=e.chartData.filter((function(e){return!e.placeHolder}));o.length<3?void 0!==t[r]&&t[r]&&o.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onHover(e.legend)},onMouseOutAction:function(){n._onLeave()}};i.push(r)}})):o.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onHover(e.legend)},onMouseOutAction:function(){n._onLeave()}};i.push(r)}}))})),s.createElement($h,o({legends:i,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n._computeLongestBarTotalValue=function(){var e=0;return n.props.data.forEach((function(t){var n=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0);e=Math.max(e,n)})),e},n.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=xe("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme,a=t.culture;this._adjustProps();var i=r.palette,l=this._getLegendData(n,this.props.hideRatio,i),c=this.state.isCalloutVisible;this._classNames=$f(this.props.styles,{legendColor:this.state.color,theme:r,variant:this.props.variant,hideLabels:this.props.hideLabels});var u=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,i,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href);return s.createElement("div",{key:n},r)}));return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},l),s.createElement(ko,o({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&c),directionalHint:Ee.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,_d(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(Sd,{Legend:u,YValue:d,color:this.state.color,culture:a}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,a,i){var l=this,c=this.props.culture,u=[n.blueLight,n.blue,n.blueMid,n.red,n.black],d=[],h=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),p=this.props.variant===zf.AbsoluteScale?this._longestBarTotalValue:h,f=0;if(e.chartData.map((function(e,t){var n=e.data?e.data:0;return(_=n/p*100?n/p*100:0)<1&&0!==_?_=1:_>99&&100!==_&&(_=99),f+=_})),this.props.variant===zf.AbsoluteScale){var g=0===p?0:(p-h)/p*100;g<1&&0!==g?g=1:g>99&&100!==g&&(g=99),f+=g}var m=0!==f?f/100:1,v=0,_=0,y=e.chartData.map((function(e,r){var o=e.color?e.color:e.placeHolder?n.neutralLight:u[Math.floor(4*Math.random()+1)],a=e.data?e.data:0;r>0&&(v+=_),(_=a/p*100?a/p*100:0)<1&&0!==_?_=1/m:_>99&&100!==_?_=99/m:_/=m,d.push(v);var c=l.props.styles,h=!(!l._legendHighlighted(e.legend)&&!l._noLegendHighlighted());return l._classNames=$f(c,{theme:l.props.theme,shouldHighlight:h,href:i,variant:l.props.variant,hideLabels:l.props.hideLabels}),s.createElement("g",{key:r,className:e.placeHolder?l._classNames.placeHolderOnHover:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,e.legend)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,a,o,e),onBlur:l._onBarLeave,role:"img","aria-label":l._getAriaLabel(e),onMouseOver:e.placeHolder?void 0:l._onBarHover.bind(l,a,o,e),onMouseMove:e.placeHolder?void 0:l._onBarHover.bind(l,a,o,e),onMouseLeave:e.placeHolder?void 0:l._onBarLeave,onClick:i?e.placeHolder?void 0:l._redirectToUrl.bind(l,i):e.onClick},s.createElement("rect",{key:r,x:"".concat(l._isRTL?100-d[r]-_:d[r],"%"),y:0,width:_+"%",height:t,fill:o}))}));this.props.variant===zf.AbsoluteScale?this.props.hideLabels||y.push(s.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(d[d.length-1]||0)-_:(d[d.length-1]||0)+_,"%"),y:t/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(h),role:"img"},yi(h<1e3?".2~":".1",h)(h))):(0===e.chartData.length&&y.push(s.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,i)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralLight}))),0===h&&y.push(s.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,i)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralLight}))));var x=void 0!==r&&r,b=this.props.variant!==zf.AbsoluteScale&&!x&&2===e.chartData.length,C=this.props.variant!==zf.AbsoluteScale&&!x&&1===e.chartData.length,S=function(){return yd(e.chartData[0].data?e.chartData[0].data:0,c)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement(rh,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),b&&s.createElement("div",o({},_d(e.chartDataAccessibilityData,"text",!1)),s.createElement("span",{className:this._classNames.ratioNumerator},S()),!a&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+yd(h,c))),C&&s.createElement("div",o({className:this._classNames.ratioNumerator},_d(e.chartDataAccessibilityData,"text",!1)),S()))),s.createElement(qd,{direction:md.horizontal},s.createElement("div",{className:this._classNames.chartWrapper},s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},y))))},t.prototype._onBarFocus=function(e,t,n){var r=this;this.state.refArray.forEach((function(o){o.legendText===n.legend&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._refCallback=function(e,t){this.state.refArray.push({legendText:t,refElement:e})},t.prototype._onHover=function(e){this.setState({activeLegend:e})},t.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLeave=function(){this.setState({activeLegend:""})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},t}(s.Component),Jf=E(Qf,(function(e){var t=e.className,n=e.width,r=e.barHeight,a=e.shouldHighlight,i=e.theme,s=e.href,l=e.variant,c=e.hideLabels;return{root:[i.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},t],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:o(o({},i.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:i.palette.neutralPrimary,marginBottom:l===zf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:l===zf.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:a?"":"0.1",cursor:s?"pointer":"default",stroke:i.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:i.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Hn.medium,fontWeight:Bn.semibold,color:i.palette.neutralPrimary},ratioDenominator:{fontSize:Hn.medium,color:i.palette.neutralPrimary},placeHolderOnHover:{opacity:a?"":"0.1",cursor:"default",stroke:i.palette.white,strokeWidth:"2",selectors:{"&:focus":{stroke:i.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:i.palette.neutralPrimary},chartWrapper:{paddingRight:l!==zf.AbsoluteScale||c?0:40}}}));!function(e){e.show="visibility",e.hide="hidden"}(Zf||(Zf={}));var eg,tg=he(),ng=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._createLine=function(e,t,r,o,a){var i;void 0===r&&(r=0),void 0===o&&(o=0);var l=n._xAxisType===Gu.NumericAxis,c=n._getScales(r,o,l).xBarScale,u=n._createColors(),d=n.props.theme,h=n.props,p=h.data,f=h.lineLegendColor,g=void 0===f?d.palette.yellow:f,m=h.lineLegendText,v=[],_=[];p&&p.forEach((function(e,t){var n;e.lineData&&e.lineData.y&&v.push({x:e.x,y:e.lineData.y,useSecondaryYScale:null!==(n=e.lineData.useSecondaryYScale)&&void 0!==n&&n,point:e,index:t})}));var y=zp().x((function(t){return l?e(t.x):c(t.x)+.5*c.bandwidth()})).y((function(e){return e.useSecondaryYScale&&a?a(e.y):t(e.y)})),x=!(!n._legendHighlighted(m)&&!n._noLegendHighlighted()),b=(null===(i=n.props.lineOptions)||void 0===i?void 0:i.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0;b>0&&_.push(s.createElement("path",{opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*b,stroke:d.palette.white})),_.push(s.createElement("path",{opacity:x?1:.1,d:y(v),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:g}));var C=v.map((function(r,o){var i;return s.createElement("circle",{key:o,cx:l?e(r.x):c(r.x)+.5*c.bandwidth(),cy:r.useSecondaryYScale&&a?a(r.y):t(r.y),onMouseOver:n._onBarHover.bind(n,r.point,u(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:g,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.activeXdataPoint===r.x?Zf.show:Zf.hide,onClick:null===(i=r.point.lineData)||void 0===i?void 0:i.onClick})}));return s.createElement(s.Fragment,null,_,C)},n._checkForLine=function(){return n.props.data.some((function(e){var t;return void 0!==(null===(t=null==e?void 0:e.lineData)||void 0===t?void 0:t.y)}))},n._getMargins=function(e){n.margins=e},n._renderContentForBothLineAndBars=function(e){var t=n._getCalloutContentForLineAndBar(e),r=t.YValueHover,a=t.hoverXValue,i=r.map((function(e,t){return s.createElement(Sd,o({key:t,Legend:e.legend},0===t&&{XValue:"".concat(a||e.data)},{color:e.color,YValue:e.data||e.y,culture:n.props.culture}))}));return s.createElement(s.Fragment,null,i)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return s.createElement(s.Fragment,null,s.createElement(Sd,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y),culture:n.props.culture}))},n._renderCallout=function(e){return e?n._isHavingLine?n._renderContentForBothLineAndBars(e):n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,o,a){return n._bars=n._xAxisType===Gu.NumericAxis?n._createNumericBars(r,o,a):n._createStringBars(r,o,a)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForLineAndBar=function(e){var t,r,o,a,i=[],s=n.props,l=s.theme,c=s.useSingleColor,u=void 0!==c&&c,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(t){return t.x===e.x}));return n._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&i.push({legend:p,color:g,y:null===(r=m[0].lineData)||void 0===r?void 0:r.y,data:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData,yAxisCalloutData:null===(a=m[0].lineData)||void 0===a?void 0:a.yAxisCalloutData}),i.push({legend:m[0].legend,y:m[0].y,color:u?n._createColors()(1):m[0].color?m[0].color:n._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData}),{YValueHover:i,hoverXValue:e.xAxisCalloutData||e.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){var o=n._getCalloutContentForLineAndBar(e),a=o.YValueHover,i=o.hoverXValue;n._refArray.forEach((function(o,s){o.index===e.legend&&t===s&&n.setState({refSelected:o.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.y,color:e.color||r,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:a,hoverXValue:i,callOutAccessibilityData:e.callOutAccessibilityData})}))},n._getScales=function(e,t,r){if(r){var o=jo(n._points,(function(e){return e.x})),a=Ko(n._points,(function(e){return e.x}));return{xBarScale:Si().domain(n._isRtl?[o,a]:[a,o]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:Si().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:Fc().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:Si().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props,a=r.theme,i=r.useSingleColor,l=n.props,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?a.palette.yellow:u,h=[];if(e.forEach((function(e,t){var r=i?n._createColors()(1):e.color,o={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};h.push(o)})),n._isHavingLine&&c&&d){var p={title:c,color:d,action:function(){n._onLegendClick(c)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(c)},onMouseOutAction:function(){n._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement($h,o({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,r,o,a=e.xAxisCalloutData||e.x,i=e.legend,s=e.yAxisCalloutData||e.y,l=n.props.lineLegendText||"Line",c=(null===(t=e.lineData)||void 0===t?void 0:t.yAxisCalloutData)||(null===(r=e.lineData)||void 0===r?void 0:r.y);return(null===(o=e.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(a,". ")+(i?"".concat(i,", "):"")+"".concat(s,".")+(void 0!==c?" ".concat(l,", ").concat(c,"."):"")},n._getDomainMargins=function(e){if(n._xAxisType!==Gu.NumericAxis){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),a=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,t>=a?n._domainMargin+=(t-a)/2:r=t/(3*n._xAxisLabels.length-2),n._barWidth=r}return o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:"",emptyChart:!1},n._isHavingLine=n._checkForLine(),n._calloutId=xe("callout"),n._tooltipId=xe("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?gd(n.props.data[0].x,!0):Gu.StringAxis,n._domainMargin=8,n}return r(t,e),t.prototype.componentDidMount=function(){var e=this.state.emptyChart||0===this._points.length||jo(this._points,(function(e){return e.y}))<=0&&!this._isHavingLine;this.state.emptyChart!==e&&this.setState({emptyChart:e})},t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max(jo(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=tg(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=o(o(o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),_d(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:xe("_VBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Xp,o({},this.props,{points:this._points,chartType:Ku.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:md.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Gu.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(t){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars),e._isHavingLine&&s.createElement("g",null,e._createLine(t.xScale,t.yScale,t.containerHeight,t.containerWidth,t.yScaleSecondary)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark],this._isHavingLine=this._checkForLine()},t.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(t*o*this._yMax);return Si().domain(r).range(this._colors)},t.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForLineAndBar(e),o=r.YValueHover,a=r.hoverXValue;this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,dataForHoverCard:e.y,calloutLegend:e.legend,color:e.color||t,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n){var r=this,o=this.props.useSingleColor,a=void 0!==o&&o,i=this._getScales(e,t,!0),l=i.xBarScale,c=i.yBarScale,u=this._createColors(),d=this._points.map((function(t,n){var o=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=tg(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var i=Math.max(c(t.y),0);if(i<1)return s.createElement(s.Fragment,{key:t.x}," ");var d=l(t.x),h=e-r.margins.bottom-c(t.y);return s.createElement("g",{key:t.x},s.createElement("rect",{x:d,className:r._classNames.opacityChangeOnHover,y:h,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:i,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,u(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!a?t.color:u(t.y)}),r._renderBarLabel(d,h,t.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=zu(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&cd(p)}return d},t.prototype._createStringBars=function(e,t,n){var r=this,o=this._getScales(e,t,!1),a=o.xBarScale,i=o.yBarScale,l=this._createColors(),c=this._points.map((function(t,n){var o=Math.max(i(t.y),0);if(o<1)return s.createElement(s.Fragment,{key:t.x}," ");var c=a(t.x),u=e-r.margins.bottom-i(t.y);return s.createElement("g",{key:t.x,transform:"translate(".concat(.5*(a.bandwidth()-r._barWidth),", 0)")},s.createElement("rect",{x:c,y:u,width:r._barWidth,height:o,"aria-label":r._getAriaLabel(t),role:"img",ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,l(t.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,t,n,l(t.y)),fill:t.color?t.color:l(t.y)}),r._renderBarLabel(c,u,t.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=zu(n).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:u,showTooltip:this.props.showXAxisLablesTooltip};u&&cd(d)}return c},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._renderBarLabel=function(e,t,n){return this.props.hideLabels||this._barWidth<16?null:s.createElement("text",{x:e+this._barWidth/2,y:t-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},yi(n<1e3?".2~":".1",n)(n))},t}(s.Component),rg=E(ng,(function(e){var t=e.shouldHighlight,n=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:o(o({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:n.palette.neutralPrimary}}})),og=he();!function(e){e.show="visibility",e.hide="hidden"}(eg||(eg={}));var ag=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._toFocusWholeStack=function(e){var t=n.props.isCalloutForStack,r=void 0!==t&&t;return e?""===n.state.selectedLegend:r},n._getFormattedLineData=function(e){var t=[],n={};return e.forEach((function(e,n){e.lineData&&e.lineData.forEach((function(r){t.push(o(o({},r),{index:n,xItem:e}))}))})),t.forEach((function(e){n[e.legend]?n[e.legend].push(e):n[e.legend]=[e]})),n},n._getLineLegends=function(e){var t=n._lineObject,r=[];return Object.keys(t).forEach((function(e){r.push({title:e,color:t[e][0].color})})),r},n._createLines=function(e,t,r,a,i){var l,c=n._xAxisType===Gu.NumericAxis,u=n._getScales(r,a,c).xBarScale,d=n._getFormattedLineData(n.props.data),h=[],p=[],f=[],g=n.props.theme,m=(null===(l=n.props.lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0,v=c?0:u.bandwidth()/2;return Object.keys(d).forEach((function(r,a){for(var l=n._legendHighlighted(r)||n._noLegendHighlighted(),f=1;f<d[r].length;f++){var _=c?e(d[r][f-1].xItem.xAxisPoint):u(d[r][f-1].xItem.xAxisPoint),y=d[r][f-1].useSecondaryYScale&&d[r][f].useSecondaryYScale&&i,x=y?i(d[r][f-1].y):t(d[r][f-1].y),b=c?e(d[r][f].xItem.xAxisPoint):u(d[r][f].xItem.xAxisPoint),C=y?i(d[r][f].y):t(d[r][f].y);m>0&&p.push(s.createElement("line",{key:"".concat(a,"-").concat(f,"-BorderLine"),x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3+2*m,fill:"transparent",strokeLinecap:"round",stroke:g.palette.white,transform:"translate(".concat(v,", 0)")})),h.push(s.createElement("line",o({key:"".concat(a,"-").concat(f,"-line"),x1:_,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:d[r][f].color,transform:"translate(".concat(v,", 0)")},n.state.selectedLegend===r&&{onMouseOver:n._lineHover.bind(n,d[r][f-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(d).forEach((function(r,a){d[r].forEach((function(l,d){f.push(s.createElement("circle",o({key:"".concat(a,"-").concat(d,"-dot"),cx:c?e(l.xItem.xAxisPoint):u(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&i?i(l.y):t(l.y),onMouseOver:n.state.selectedLegend===r?n._lineHover.bind(n,l):n._onStackHover.bind(n,l.xItem)},n.state.selectedLegend===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).radius,stroke:l.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).visibility,transform:"translate(".concat(v,", 0)")})))}))})),s.createElement(s.Fragment,null,p,h,f)},n._getCircleVisibilityAndRadius=function(e,t){var r=n.state,o=r.selectedLegend,a=r.activeXAxisDataPoint;return""!==o?e===a&&o===t?{visibility:eg.show,radius:8}:o===t?{visibility:eg.show,radius:.3}:{visibility:eg.hide,radius:0}:{visibility:a===e?eg.show:eg.hide,radius:8}},n._getMargins=function(e){n.margins=e},n._getCustomizedCallout=function(){var e=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!e?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(e,t){t.persist(),n.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:"".concat(e.xItem.xAxisPoint),yCalloutValue:"".concat(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(e,t,r,a){var i=n.props,l=i.barCornerRadius,c=void 0===l?0:l,u=i.barMinimumHeight,d=void 0===u?0:u,h=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(a,i){var l=r-n.margins.bottom,u=e((n._xAxisType,Gu.NumericAxis,a.xAxisPoint)),h=n._xAxisType===Gu.NumericAxis?0:(e.bandwidth()-n._barWidth)/2,f=0,g=a.chartData.filter((function(e){return e.data>0}));if(g.length){var m=n._getBarGapAndScale(g,t),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(e,t){var r=e.color?e.color:n._colors[t],m={},y=!(!n._legendHighlighted(e.legend)&&!n._noLegendHighlighted());n._classNames=og(n.props.styles,{theme:n.props.theme,shouldHighlight:y,href:n.props.href});var x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(a,e),onMouseOver:n._onRectHover.bind(n,a.xAxisPoint,e,r),onMouseMove:n._onRectHover.bind(n,a.xAxisPoint,e,r),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,e,a.xAxisPoint,r,m),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,e),role:"img"},b=_*e.data;return b<d&&(b=d),l=l-b-(t?v:0),f+=e.data,c&&b>c&&t===g.length-1?s.createElement("path",o({key:t+i+"".concat(p),className:n._classNames.opacityChangeOnHover,d:"\n M ".concat(u," ").concat(l+c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(-c,"\n h ").concat(n._barWidth-2*c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(c,"\n v ").concat(b-c,"\n h ").concat(-n._barWidth,"\n z\n "),fill:r,ref:function(e){return m.refElement=e},transform:"translate(".concat(h,", 0)")},x)):b<1?s.createElement(s.Fragment,{key:t+i}," "):s.createElement("rect",o({key:t+i,className:n._classNames.opacityChangeOnHover,x:u,y:l,width:n._barWidth,height:b,fill:r,ref:function(e){return m.refElement=e}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},b=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(a),onMouseOver:n._onStackHover.bind(n,a),onMouseMove:n._onStackHover.bind(n,a),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,a,x),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,a),role:"img"};return s.createElement("g",{key:i+"".concat(p)},s.createElement("g",o({id:"".concat(i,"-singleBar"),ref:function(e){return x.refElement=e}},b),y),!n.props.hideLabels&&n._barWidth>=16&&s.createElement("text",{x:u+n._barWidth/2,y:l-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-label":"Total: ".concat(f),role:"img",transform:"translate(".concat(h,", 0)")},yi(f<1e3?".2~":".1",f)(f)))}}}));if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var g=zu(a).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var m={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:g};g&&cd(m)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var o=n._yMax,a=Si().domain([0,o]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var i=jo(n._dataset,(function(e){return e.x})),s=Ko(n._dataset,(function(e){return e.x}));return{xBarScale:Si().domain(n._isRtl?[i,s]:[s,i]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:a}}return{xBarScale:Fc().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:a}},n._createNumericBars=function(e,t,r){var o=n._getScales(e,t,!0),a=o.xBarScale,i=o.yBarScale;return n._createBar(a,i,e,r)},n._createStringBars=function(e,t,r){var o=n._getScales(e,t,!1),a=o.xBarScale,i=o.yBarScale;return n._createBar(a,i,e,r)},n._getGraphData=function(e,t,r,o,a){return n._bars=n._xAxisType===Gu.NumericAxis?n._createNumericBars(r,o,a):n._createStringBars(r,o,a)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e,t){var n,r,o;if(!t){var a=e.xAxisCalloutData||e.xAxisPoint,i=e.chartData.map((function(e){var t=e.legend,n=e.yAxisCalloutData||e.data;return"".concat(t,", ").concat(n,".")})).join(" "),s=null===(n=e.lineData)||void 0===n?void 0:n.map((function(e){var t=e.legend,n=e.yAxisCalloutData||e.data||e.y;return"".concat(t,", ").concat(n,".")})).join(" ");return(null===(r=e.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(a,". ").concat(i)+(s?" ".concat(s):"")}var l=e.xAxisCalloutData||t.xAxisCalloutData||e.xAxisPoint,c=t.legend,u=t.yAxisCalloutData||t.data;return(null===(o=t.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(l,". ").concat(c,", ").concat(u,".")},n._getDomainMargins=function(e){if(n._xAxisType!==Gu.NumericAxis){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),a=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,t>=a?n._domainMargin+=(t-a)/2:r=t/(3*n._xAxisLabels.length-2),n._barWidth=r}return o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=xe("callout"),n._tooltipId=xe("VSBCTooltipId_"),n._adjustProps(),n._dataset=n._createDataSetLayer(),n._createLegendsForLine=tr((function(e){return n._getLineLegends(e)})),n._domainMargin=8,n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},t.prototype.render=function(){var e=this;this._adjustProps();var t=this.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),n=this._toFocusWholeStack(t),r=this.props.isCalloutForStack,a=void 0!==r&&r;this._dataset=this._createDataSetLayer();var i=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=og(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),_d(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Xp,o({},this.props,{points:this._dataset,chartType:Ku.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:i,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:a||t?md.horizontal:md.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Gu.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(n){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars),s.createElement("g",null,t&&e._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.red,e.black],this._xAxisType=gd(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},t.prototype._createDataSetLayer=function(){var e=[],t=this._points.map((function(t){var n=0;return t.chartData.forEach((function(e){n+=e.data})),e.push(t.xAxisPoint),{x:t.xAxisPoint,y:n}}));return this._xAxisLabels=e,t},t.prototype._renderCallout=function(e){return e?s.createElement(Sd,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._getLegendData=function(e,t,n){var r=this;if(this.props.hideLegend)return s.createElement(s.Fragment,null);var a=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[],l=this.props.allowHoverOnLegend,c=void 0===l||l;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:c?function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)}:void 0,onMouseOutAction:c?function(){return r._onLegendLeave()}:void 0};i.push(n)}}))}));var u=[];n&&n.length>0&&n.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(e.title)},hoverAction:c?function(){r._handleChartMouseLeave(),r._onLegendHover(e.title)}:void 0,onMouseOutAction:c?function(){return r._onLegendLeave()}:void 0};u.push(t)}));var d=u.concat(i);return s.createElement($h,o({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._onRectHover=function(e,t,n,r){r.persist(),this._onRectFocusHover(e,t,n,r)},t.prototype._onRectFocusHover=function(e,t,n,r){this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:n,xCalloutValue:t.xAxisCalloutData?t.xAxisCalloutData:e,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},t.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},t.prototype._onStackHoverFocus=function(e,t){var n=e.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:t,isCalloutVisible:!0,YValueHover:r?i(i([],n.sort((function(e,t){return e.data<t.data?1:-1})),!0),e.chartData.slice().reverse(),!0):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},t.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},t.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},t.prototype._onClick=function(e,t){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,t,e),this.props.href&&(window.location.href=this.props.href)},t.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,o=void 0===r?0:r,a=e.reduce((function(e,t){return e+t.data}),0),i=null!=n?n:t(a),s=o&&e.length-1,l=s&&Math.max(1,Math.min(o,.2*i/s));return{gapHeight:l,heightValueScale:(i-l*s)/a}},t}(s.Component),ig=E(ag,(function(e){var t=e.shouldHighlight,n=e.href,r=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1",cursor:n?"pointer":"default"},tooltip:o(o({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:r.palette.neutralPrimary}}})),sg=he(),lg=.1/.9,cg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._getGraphData=function(e,t,r,o,a){var i=n._createX0Scale(o),s=n._createX1Scale(i),l=[];n._datasetForBars.forEach((function(e){l.push(n._buildGraph(e,i,s,r,a))})),n._groupedVerticalBarGraph=l},n._getMargins=function(e){return n.margins=e},n._createDataSetOfGVBC=function(e){var t=[],r=e.map((function(e){return e.name}));e[0].series.forEach((function(e){t.push(e.key)}));var o=n._createDataset(e);return{keys:t,xAxisLabels:r,datasetForBars:o}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getOpacity=function(e){return n._legendHighlighted(e)||n._noLegendHighlighted()?"":"0.1"},n._onBarHover=function(e,t,r){r.persist(),n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({refSelected:r,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t,r){n._refArray.forEach((function(o,a){o.index===e.legend&&r===a&&n.setState({refSelected:o.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,o,a){var i=[],l=[],c=Si().domain([0,n._yMax]).range([0,o-n.margins.bottom-n.margins.top]),u=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(u.forEach((function(t,a){var d=e.indexNum*u.length+a,h=e[t],p=r(t),f=Math.max(o-n.margins.bottom-c(h.data),0);h.data&&i.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:"".concat(e.indexNum,"-").concat(a),height:Math.max(c(h.data),0),width:n._barWidth,x:p,y:f,"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(e){n._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,e),onMouseMove:n._onBarHover.bind(n,h,e),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,e,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-label":n._getAriaLabel(h,e.xAxisPoint),role:"img"})),h.data&&!n.props.hideLabels&&n._barWidth>=16&&l.push(s.createElement("text",{x:p+n._barWidth/2,y:f-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-hidden":!0},yi(h.data<1e3?".2~":".1",h.data)(h.data)))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=zu(a).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var h={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:d};d&&cd(h)}return s.createElement("g",{key:e.indexNum,transform:"translate(".concat(t(e.xAxisPoint),", 0)")},i,l)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var a={},i={},s=[];e.series.forEach((function(e){a[e.key]=e.data,i[e.key]=o({},e),s.push(e)})),i.xAxisPoint=e.name,i.indexNum=n,i.groupSeries=s,i.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,t.push(i),r.push(a)})),n._dataset=r,t},n._createX0Scale=function(e){return Fc().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right-n._domainMargin,n.margins.left+n._domainMargin]:[n.margins.left+n._domainMargin,e-n.margins.right-n._domainMargin]).paddingInner(2/(2+n._keys.length+(n._keys.length-1)*lg))},n._createX1Scale=function(e){var t=e.bandwidth();return Fc().domain(n._keys).range(n._isRtl?[t,0]:[0,t]).paddingInner(.1)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=e,a=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[];return r.forEach((function(e){e.series.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(i.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};i.push(r)}}))})),s.createElement($h,o({legends:i,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e,t){var n,r=e.xAxisCalloutData||t,o=e.legend,a=e.yAxisCalloutData||e.data;return(null===(n=e.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(r,". ").concat(o,", ").concat(a,".")},n._getDomainMargins=function(e){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barwidth||16,24),a=n._keys.length*r+(n._keys.length-1)*lg*r,i=n._xAxisLabels.length*a+2*(n._xAxisLabels.length-1)*r;return n._domainMargin=8,t>=i?n._domainMargin+=(t-i)/2:r=(a=t/(n._xAxisLabels.length+(n._xAxisLabels.length-1)*(2/(n._keys.length+(n._keys.length-1)*lg))))/(n._keys.length+(n._keys.length-1)*lg),n._barWidth=r,o(o({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n._createSet=tr((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},n._refArray=[],n._calloutId=xe("callout"),n._tooltipId=xe("GVBCTooltipId_"),n._domainMargin=8,n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=this._createSet(t),r=n.keys,a=n.xAxisLabels,i=n.datasetForBars;this._keys=r,this._xAxisLabels=a,this._datasetForBars=i,this._xAxisType=gd(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),c=jo(this._dataset,(function(t){return jo(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=sg(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=o(o(o({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),_d(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Xp,o({},this.props,{points:this._datasetForBars,chartType:Ku.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:md.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins,xAxisInnerPadding:2/(2+this._keys.length+(this._keys.length-1)*lg),xAxisOuterPadding:0,children:function(){return s.createElement("g",null,e._groupedVerticalBarGraph)}}))},t.prototype._refCallback=function(e,t,n){this._refArray[n]={index:t,refElement:e}},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t}(s.Component),ug=E(cg,(function(e){var t=e.theme;return{opacityChangeOnHover:{cursor:e.href?"pointer":"default"},tooltip:o(o({},t.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Hn.small,fontWeight:Bn.semibold,fill:t.palette.neutralPrimary}}})),dg=he(),hg=function(e){function t(t){var n=e.call(this,t)||this;n._rectRefArray={},n._getXandY=function(){var e="",t="";return n.props.data.forEach((function(n){if(n.data&&n.data.length>0)return e=n.data[0].x,t=n.data[0].y,{x:e,y:t}})),{x:e,y:t}},n._getOpacity=function(e){return n._legendHighlighted(e)||n._noLegendHighlighted()?"1":"0.1"},n._rectRefCallback=function(e,t,r){n._rectRefArray[t]={data:r,refElement:e}},n._onRectFocus=function(e,t){n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutYValue:"".concat(t.rectText),calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},n._onRectMouseOver=function(e,t,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutYValue:"".concat(t.rectText),calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var e=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(t,r){n._dataSet[t].forEach((function(t,o){var a="".concat(r).concat(o),i=s.createElement("g",{key:a,role:"img","aria-label":n._getAriaLabel(t),"data-is-focusable":!0,fillOpacity:n._getOpacity(t.legend),transform:"translate(".concat(n._xAxisScale(t.x),", ").concat(n._yAxisScale(t.y),")"),ref:function(e){n._rectRefCallback(e,a,t)},onFocus:n._onRectFocus.bind(n,a,t),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,a,t),onMouseOut:n._onRectBlurOrMouseOut},s.createElement("rect",{fill:n._colorScale(t.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:t.onClick}),s.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate(".concat(n._xAxisScale.bandwidth()/2,", ").concat(n._yAxisScale.bandwidth()/2,")")},yd(t.rectText,n.props.culture)));e.push(i)}))})),e},n._onLegendHover=function(e){n.setState({activeLegend:e})},n._onLegendLeave=function(){n.setState({activeLegend:""})},n._onLegendClick=function(e){n.state.selectedLegend===e?n.setState({selectedLegend:""}):n.setState({selectedLegend:e})},n._createLegendBars=function(){var e=n.props,t=e.data,r=e.legendProps,a=[];return t.forEach((function(e){var t={title:e.legend,color:n._colorScale(e.value),action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};a.push(t)})),s.createElement($h,o({},r,{legends:a}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return Si().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===Gu.DateAxis?"".concat(e.getTime()):n._xAxisType===Gu.StringAxis?e:n._xAxisType===Gu.NumericAxis?"".concat(e):""},n._getYIndex=function(e){return n._yAxisType===Zu.DateAxis?"".concat(e.getTime()):n._yAxisType===Zu.StringAxis?e:n._yAxisType===Zu.NumericAxis?"".concat(e):""},n._createNewDataSet=function(e,t,r,a,s){var l=[];e.forEach((function(e){e.data.forEach((function(t){l.push(o(o({},t),{legend:e.legend}))}))}));var c={},u={},d={};return l.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",u[r]="1",c[r]?c[r]=i(i([],c[r],!0),[e],!1):c[r]=[e]})),Object.keys(c).forEach((function(e){c[e].sort((function(e,t){return n._xAxisType===Gu.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===Gu.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===Gu.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===Gu.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===Gu.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===Gu.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===Zu.DateAxis&&(e.y=n._getStringFormattedDate(e.y,a)),n._yAxisType===Zu.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===Zu.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(c).forEach((function(e){n._yAxisType===Zu.DateAxis?c[n._getStringFormattedDate(e,a)]=c[e]:n._yAxisType===Zu.NumericAxis?c["".concat(n._getStringFormattedNumber(e,s))]=c[e]:c[n._getFormattedLabelForYAxisDataPoint(e)]=c[e]})),{dataSet:c,yAxisPoints:n._getYAxisDataPoints(u),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===Gu.DateAxis||n._xAxisType===Gu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===Gu.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===Gu.NumericAxis?n._getStringFormattedNumber(e,n.props.xAxisNumberFormatString):n._getFormattedLabelForXAxisDataPoint(e)}))},n._getYAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._yAxisType===Zu.DateAxis||n._yAxisType===Zu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===Zu.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===Zu.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),sl(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return _i(t||".2~s")(+e)},n._getFormattedLabelForXAxisDataPoint=function(e){var t=n.props.xAxisStringFormatter;return t?t(e):e},n._getFormattedLabelForYAxisDataPoint=function(e){var t=n.props.yAxisStringFormatter;return t?t(e):e},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.x,r=e.y,o=e.legend,a=e.ratio?"".concat(e.ratio[0],"/").concat(e.ratio[1]):e.rectText||e.value,i=e.descriptionMessage;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||"".concat(n,", ").concat(r,". ").concat(o,", ").concat(a,".")+(i?" ".concat(i,"."):"")};var r=n._getXandY(),a=r.x,l=r.y;return n._xAxisType=gd(a,!0),n._yAxisType=gd(l,!1),n._createSet=tr((function(e,t,r,o,a){return n._createNewDataSet(e,t,r,o,a)})),n.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.xAxisDateFormatString,a=t.xAxisNumberFormatString,i=t.yAxisDateFormatString,l=t.yAxisNumberFormatString;this._colorScale=this._getColorScale();var c=this._createSet(n,r,a,i,l),u=c.dataSet,d=c.xAxisPoints,h=c.yAxisPoints;this._dataSet=u,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=dg(this.props.styles,{theme:this.props.theme});var p=o(o(o(o({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:Ee.topAutoEdge,onDismiss:this._closeCallout}),_d(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=o(o({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return s.createElement(Xp,o({},this.props,{points:n,chartType:Ku.HeatMapChart,xAxisType:Gu.StringAxis,yAxisType:Zu.StringAxis,calloutProps:p,chartHoverProps:f,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:md.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(s.Component),pg=E(hg,(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white,fontWeight:Bn.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function fg(e,t){return t-1-e.height}function gg(e,t){return e.sourceLinks.length?e.depth:t-1}function mg(e){return function(){return e}}function vg(e,t){return yg(e.source,t.source)||e.index-t.index}function _g(e,t){return yg(e.target,t.target)||e.index-t.index}function yg(e,t){return e.y0-t.y0}function xg(e){return e.value}function bg(e){return e.index}function Cg(e){return e.nodes}function Sg(e){return e.links}function Eg(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Lg({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(const e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}class kg{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function Ag(e){return new kg(e,!0)}var wg=he(),Dg="#757575",Tg=[{fillColor:"#00758F",borderColor:"#002E39"},{fillColor:"#77004D",borderColor:"#43002C"},{fillColor:"#4F6BED",borderColor:"#3B52B4"},{fillColor:"#937600",borderColor:"#6D5700"},{fillColor:"#286EA8",borderColor:"#00457E"},{fillColor:"#A43FB1",borderColor:"#7C158A"},{fillColor:"#CC3595",borderColor:"#7F215D"},{fillColor:"#0E7878",borderColor:"#004E4E"},{fillColor:"#8764B8",borderColor:"#4B3867"},{fillColor:"#9C663F",borderColor:"#6D4123"}],Mg="#323130",Pg="#FFFFFF",Fg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.color:n.state.selectedState&&!n.state.selectedNode?e.color:void 0:e.color},n._fillNodeBorder=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.borderColor:(n.state.selectedState&&n.state.selectedNodes.has(e.index),e.borderColor):e.borderColor},n.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},n._calloutId=xe("callout"),n._linkId=xe("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=tr((function(e){return n._normalizeSankeyData(e)})),n}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentDidUpdate=function(e){e.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.render=function(){var e=this,t=this.props,n=t.theme,r=t.className,a=t.styles,i=t.pathColor;this._classNames=wg(a,{theme:n,width:this.state.containerWidth,height:this.state.containerHeight,pathColor:i,className:r});var l,c=this._preRenderLayout(),u=c.height,d=c.width;this._normalizeData(this.props.data.SankeyChartData),l=this._adjustPadding(this._sankey,u-6,this._nodesInColumn),this._sankey.nodePadding(l),this._sankey(this.props.data.SankeyChartData),this._populateNodeActualValue(this.props.data.SankeyChartData),this._assignNodeColors();var h=this._createNodes(d),p=this._createLinks(),f={isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,color:this.state.color,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,descriptionMessage:this.state.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:this._classNames.calloutContentRoot,preventDismissOnLostFocus:!0};return s.createElement("div",{className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this._onCloseCallout},s.createElement(qd,{direction:md.bidirectional,isCircularNavigation:!0,handleTabKey:1},s.createElement("svg",{width:d,height:u,id:xe("sankeyChart")},s.createElement("g",{className:this._classNames.links,strokeOpacity:1},p),s.createElement("g",{className:this._classNames.nodes},h),f.isCalloutVisible&&s.createElement(ko,o({},f),s.createElement(Sd,{XValue:f.XValue,YValue:f.YValue,color:f.color,descriptionMessage:f.descriptionMessage?f.descriptionMessage:""})))))},t.prototype._preRenderLayout=function(){var e=this.state.containerWidth-this._margins.right,t=this.state.containerHeight-this._margins.bottom>0?this.state.containerHeight-this._margins.bottom:0;return this._sankey=function(){let e,t,n,r=0,o=0,a=1,i=1,s=24,l=8,c=bg,u=gg,d=Cg,h=Sg,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:e,links:t}){for(const[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];const r=new Map(e.map(((t,n)=>[c(t,n,e),t])));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:o}=n;"object"!=typeof t&&(t=n.source=Eg(r,t)),"object"!=typeof o&&(o=n.target=Eg(r,o)),t.sourceLinks.push(n),o.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}(f),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(Go(t.sourceLinks,xg),Go(t.targetLinks,xg)):t.fixedValue}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.depth=o;for(const{target:t}of e.sourceLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.height=o;for(const{source:t}of e.targetLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:e}){const n=jo(e,(e=>e.depth))+1,o=(a-r-s)/(n-1),i=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(u.call(null,t,n))));t.layer=e,t.x0=r+e*o,t.x1=t.x0+s,i[e]?i[e].push(t):i[e]=[t]}if(t)for(const e of i)e.sort(t);return i}(n);e=Math.min(l,(i-o)/(jo(c,(e=>e.length))-1)),function(t){const n=Ko(t,(t=>(i-o-(t.length-1)*e)/Go(t,xg)));for(const r of t){let t=o;for(const o of r){o.y0=t,o.y1=t+o.value*n,t=o.y1+e;for(const e of o.sourceLinks)e.width=e.value*n}t=(i-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}b(r)}}(c);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);m(c,t,n),g(c,t,n)}}(f),Lg(f),f}function g(e,n,r){for(let o=1,a=e.length;o<a;++o){const a=e[o];for(const e of a){let t=0,r=0;for(const{source:n,value:o}of e.targetLinks){let a=o*(e.layer-n.layer);t+=C(n,e)*a,r+=a}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,x(e)}void 0===t&&a.sort(yg),v(a,r)}}function m(e,n,r){for(let o=e.length-2;o>=0;--o){const a=e[o];for(const e of a){let t=0,r=0;for(const{target:n,value:o}of e.sourceLinks){let a=o*(n.layer-e.layer);t+=S(e,n)*a,r+=a}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,x(e)}void 0===t&&a.sort(yg),v(a,r)}}function v(t,n){const r=t.length>>1,a=t[r];y(t,a.y0-e,r-1,n),_(t,a.y1+e,r+1,n),y(t,i,t.length-1,n),_(t,o,0,n)}function _(t,n,r,o){for(;r<t.length;++r){const a=t[r],i=(n-a.y0)*o;i>1e-6&&(a.y0+=i,a.y1+=i),n=a.y1+e}}function y(t,n,r,o){for(;r>=0;--r){const a=t[r],i=(a.y1-n)*o;i>1e-6&&(a.y0-=i,a.y1-=i),n=a.y0-e}}function x({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(_g);for(const{target:{targetLinks:t}}of e)t.sort(vg)}}function b(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(_g),n.sort(vg)}function C(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:o,width:a}of t.sourceLinks){if(o===n)break;r+=a+e}for(const{source:e,width:o}of n.targetLinks){if(e===t)break;r-=o}return r}function S(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:o,width:a}of n.targetLinks){if(o===t)break;r+=a+e}for(const{target:e,width:o}of t.sourceLinks){if(e===n)break;r-=o}return r}return f.update=function(e){return Lg(e),e},f.nodeId=function(e){return arguments.length?(c="function"==typeof e?e:mg(e),f):c},f.nodeAlign=function(e){return arguments.length?(u="function"==typeof e?e:mg(e),f):u},f.nodeSort=function(e){return arguments.length?(t=e,f):t},f.nodeWidth=function(e){return arguments.length?(s=+e,f):s},f.nodePadding=function(t){return arguments.length?(l=e=+t,f):l},f.nodes=function(e){return arguments.length?(d="function"==typeof e?e:mg(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:mg(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=o=0,a=+e[0],i=+e[1],f):[a-r,i-o]},f.extent=function(e){return arguments.length?(r=+e[0][0],a=+e[1][0],o=+e[0][1],i=+e[1][1],f):[[r,o],[a,i]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f}().nodeWidth(124).extent([[this._margins.left,this._margins.top],[e-1,t-6]]).nodeAlign(this._isRtl?fg:gg),{height:t,width:e}},t.prototype._populateNodeActualValue=function(e){e.links.forEach((function(e){e.unnormalizedValue||(e.unnormalizedValue=e.value)})),e.nodes.forEach((function(e){e.actualValue=Math.max(Go(e.sourceLinks,(function(e){return e.unnormalizedValue})),Go(e.targetLinks,(function(e){return e.unnormalizedValue})))}))},t.prototype._normalizeSankeyData=function(e){this._nodesInColumn=this._populateNodeInColumns(e,this._sankey),this._adjustOnePercentHeightNodes(this._nodesInColumn)},t.prototype._populateNodeInColumns=function(e,t){t(e);var n={};return e.nodes.forEach((function(e){var t=e.layer;n[t]?n[t].push(e):n[t]=[e]})),n},t.prototype._adjustOnePercentHeightNodes=function(e){var t=this;Object.values(e).map((function(e){return Go(e,(function(e){return e.value}))})).forEach((function(n,r){var o=0;e[r].forEach((function(e){var t=e.value/n*100;e.actualValue=e.value,t<1?(e.value=.01*n,o+=1):o+=t}));var a=0!==o?o/100:1;a>1&&e[r].forEach((function(e){e.value=e.value/a,t._changeColumnValue(e,e.actualValue,e.value)}))}))},t.prototype._changeColumnValue=function(e,t,n){e.sourceLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r})),e.targetLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r}))},t.prototype._adjustPadding=function(e,t,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(e){var n=.3*t;n<t-Go(e,(function(e){return e.y1-e.y0}))&&(r=Math.min(r,n/(e.length-1)))})),r},t.prototype._createLinks=function(){var e=this,t=[];return this.props.data.SankeyChartData&&this.props.data.SankeyChartData.links.forEach((function(n,r){var o,a=[{x:(o=n).source.x1,y0:o.y0+o.width/2,y1:o.y0-o.width/2},{x:o.target.x0,y0:o.y1+o.width/2,y1:o.y1-o.width/2}],i=Lf().x((function(e){return e.x})).y0((function(e){return e.y0})).y1((function(e){return e.y1})).curve(Ag),l="url(#gradient-".concat(e._linkId,"-").concat(r,")"),c=s.createElement("g",{key:"".concat(e._linkId,"-").concat(r)},s.createElement("defs",null,s.createElement("linearGradient",{id:"gradient-".concat(e._linkId,"-").concat(r),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},s.createElement("stop",{offset:"0",stopColor:n.source.color}),s.createElement("stop",{offset:"100%",stopColor:n.target.color}))),s.createElement("path",{d:i(a),id:xe("link"),fill:e._fillStreamColors(n,l),stroke:e._fillStreamBorder(n,l),strokeWidth:"2",strokeOpacity:e._getOpacityStreamBorder(n),onMouseOver:e._onStreamHover.bind(e,n),onMouseOut:function(){e._onStreamLeave(n)},onFocus:e._onFocusLink.bind(e,n),onBlur:e._onBlur,fillOpacity:e._getOpacityStream(n),"data-is-focusable":!0,"aria-label":"link from"+n.source.name+"to"+n.target.name+"with weight"+n.unnormalizedValue,role:"img"}));t.push(c)})),t},t.prototype._createNodes=function(e){var t=this,n=[];if(this.props.data.SankeyChartData)return this.props.data.SankeyChartData.nodes.forEach((function(e,r){var o=e.y1-e.y0>0?e.y1-e.y0:0,a=8,i=0;if(o<36){a+=6;var l=zu(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);l.text(e.actualValue),null!==l.node()&&(a+=i=l.node().getComputedTextLength()),l.text(null),Xu(".tempText").remove()}var c=t._truncateText(e.name,116,a),u="..."===c.slice(-3),d=xe("tooltip"),h=zu("body").append("div").attr("id",d).attr("class",t._classNames.toolTip).style("opacity",0),p=xe("nodeBar"),f=s.createElement("g",{key:r,id:xe("nodeGElement")},s.createElement("rect",{x:e.x0,y:e.y0,height:o,width:e.x1-e.x0,fill:t._fillNodeColors(e),id:p,onMouseOver:t._onHover.bind(t,e),onMouseOut:function(){t._onLeave(e)},onFocus:t._onCloseCallout.bind(t),stroke:t._fillNodeBorder(e),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node"+"".concat(e.name)+"with weight"+"".concat(e.actualValue),role:"img"}),e.y1-e.y0>24&&s.createElement("g",{className:t._classNames.nodeTextContainer},s.createElement("g",{className:"nodeName"},s.createElement("text",{id:"".concat(p,"-name"),x:e.x0,y:e.y0,dy:"1.2em",dx:"0.4em",textAnchor:t._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?Pg:Mg,fontSize:10,onMouseOver:t._showTooltip.bind(t,e.name,u,h),onMouseOut:t._hideTooltip.bind(t,h)},c)),s.createElement("text",{x:o>36?e.x0:e.x1-i-8,y:e.y0,dy:o>36?"2em":"1em",dx:o>36?"0.4em":"0em",textAnchor:t._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?Pg:Mg,fontSize:14},e.actualValue)));n.push(f)})),n},t.prototype._onLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},t.prototype._onHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinks(e),r=this._getSelectedNodes(n);r.push(e),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(n).map((function(e){return e.index}))),selectedNode:e,refSelected:t,isCalloutVisible:e.y1-e.y0<24,color:e.color,xCalloutValue:e.name,yCalloutValue:e.actualValue})}},t.prototype._onStreamHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinksforStreamHover(e),r=n.selectedLinks,o=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(o).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(r).map((function(e){return e.index}))),refSelected:t,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.unnormalizedValue.toString(),descriptionMessage:"from "+e.source.name})}},t.prototype._onStreamLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},t.prototype._onFocusLink=function(e,t){t.persist(),this._onCloseCallout(),this.setState({refSelected:t.currentTarget,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.source.actualValue,descriptionMessage:"from "+e.source.name})},t.prototype._assignNodeColors=function(){var e,t;this.props.colorsForNodes&&this.props.borderColorsForNodes?(e=this.props.colorsForNodes,t=this.props.borderColorsForNodes):(e=Tg.map((function(e){return e.fillColor})),t=Tg.map((function(e){return e.borderColor})));var n=0;this.props.data.SankeyChartData.nodes.forEach((function(r){r.color||r.borderColor?r.color&&!r.borderColor?r.borderColor="#757575":r.borderColor&&!r.color&&(r.color="#F5F5F5"):(r.color=e[n],r.borderColor=t[n]),n=(n+1)%e.length}))},t.prototype._fillStreamColors=function(e,t){return this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.color:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:void 0},t.prototype._fillStreamBorder=function(e,t){return this.state.selectedState?this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.borderColor:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:Dg:Dg},t.prototype._getSelectedNodes=function(e){var t=[];return e.forEach((function(e){t.push(e.target),-1===t.indexOf(e.source)&&t.push(e.source)})),t},t.prototype._getSelectedLinks=function(e){var t=new Array,n=new Set;for(e.sourceLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;)(r=t.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(e){n.add(e),t.push(e)}));for(e.targetLinks&&e.targetLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;){var r;(r=t.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(e){n.add(e),t.push(e)}))}return n},t.prototype._getSelectedLinksforStreamHover=function(e){var t=new Array,n=new Set,r=new Set;for(t.push(e.source),n.add(e);t.length>0;){var o=t.shift();r.add(o),o.targetLinks&&o.targetLinks.length>0&&o.targetLinks.forEach((function(e){t.push(e.source),n.add(e)}))}for(t.push(e.target);t.length>0;)o=t.shift(),r.add(o),o.sourceLinks&&o.sourceLinks.length>0&&o.sourceLinks.forEach((function(e){t.push(e.target),n.add(e)}));return{selectedLinks:n,selectedNodes:r}},t.prototype._getOpacityStream=function(e){if(this.state.selectedState){if(!this.state.selectedLinks.has(e.index))return 1;if(this.state.selectedState&&this.state.selectedLinks.has(e.index)&&!this.state.selectedNode)return.3}return 1},t.prototype._getOpacityStreamBorder=function(e){return!this.state.selectedState||this.state.selectedLinks.has(e.index)||this.state.selectedNode?1:.5},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t=e.props.parentRef?e.props.parentRef:e.chartContainer,o=t.getBoundingClientRect().width,a=t.getBoundingClientRect().height;(n!==o||r!==a)&&e.setState({containerWidth:o,containerHeight:a})}))},t.prototype._truncateText=function(e,t,n){var r=t-n,o=0,a=zu(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(a.text(e),null!==a.node()&&a.node().getComputedTextLength()<=r)return e;a.text(null),a.text("..."),null!==a.node()&&(o=a.node().getComputedTextLength()),a.text(null);for(var i="",s=0;s<e.length;s++)if(i+=e[s],a.text(i),null!==a.node()&&a.node().getComputedTextLength()>=r-o){i=i.slice(0,-1),i+="...";break}return a.text(null),Xu(".tempText").remove(),i},t.prototype._showTooltip=function(e,t,n,r){t&&(n.style("opacity",.9),n.html(e).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},t.prototype._hideTooltip=function(e){e.style("opacity",0)},t}(s.Component),Ng=E(Fg,(function(e){var t,n,r,a=e.className,i=e.theme,s=e.pathColor,l=i.effects;return{root:[i.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},a],links:{stroke:s||i.palette.black,fill:i?i.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(t={},t[qn]={fill:"#000000"},t)},nodes:{fill:"#F5F5F5",selectors:(n={},n[qn]={fill:"#000000"},n)},toolTip:o(o({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(r={},r[qn]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function Vg(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ig(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Hg)):void 0===t&&(t=Og);for(var n,r,o,a,i,s=new Wg(e),l=[s];n=l.pop();)if((o=t(n.data))&&(i=(o=Array.from(o)).length))for(n.children=o,a=i-1;a>=0;--a)l.push(r=o[a]=new Wg(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Rg)}function Og(e){return e.children}function Hg(e){return Array.isArray(e)?e[1]:null}function Bg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Rg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Wg(e){this.data=e,this.depth=this.height=0,this.parent=null}function zg(e,t){return e.parent===t.parent?1:2}function Yg(e){var t=e.children;return t?t[0]:e.t}function Ug(e){var t=e.children;return t?t[t.length-1]:e.t}function qg(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Xg(e,t,n){return e.a.parent===t.parent?e.a:n}function jg(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Wg.prototype=Ig.prototype={constructor:Wg,count:function(){return this.eachAfter(Vg)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,a=this,i=[a],s=[],l=-1;a=i.pop();)if(s.push(a),n=a.children)for(r=0,o=n.length;r<o;++r)i.push(n[r]);for(;a=s.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,a=[o],i=-1;o=a.pop();)if(e.call(t,o,++i,this),n=o.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ig(this).eachBefore(Bg)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)a.push(t[n])}while(a.length)}},jg.prototype=Object.create(Wg.prototype);var Kg,Gg,Zg=he(),$g=function(){function e(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=e,this.styleClassNames=t,this._nodeElements=n,this._linkElements=r}return e.prototype.truncateText=function(e,t,n,r){var o,a=e.split(/\s+/).reverse(),i="",s=zu(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];i=a.pop();)if(l.push(i),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>t-n){l.pop(),l.push("...");break}return o=l.join(" ")+" ",s.text(null),Xu(".tempText").remove(),o},e.prototype.addNodeShapetoSVG=function(e,t,n,r,o,a,i,l,c,u,d){var h="nodeId: ".concat(u," \nnodeMainText: ").concat(e,"\nsubText ").concat(t," ").concat(d),p=o-l/2;!r&&0===u&&n||this._nodeElements.push(s.createElement("rect",{width:l,height:c,x:p,y:a,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:i,key:"".concat(u).concat(this.styleClassNames.rectNode)})),t&&(t=this.truncateText(t,l,l/4,this.styleClassNames.rectSubText)),n&&(n=this.truncateText(n,l,l/4,this.styleClassNames.rectBodyText)),r&&(r=this.truncateText(r,l,l/4,this.styleClassNames.rectMetricText)),e=this.truncateText(e,l,l/4,this.styleClassNames.rectText);var f=r?s.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?s.createElement(s.Fragment,null,s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t),s.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t);t||r||n?this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?a+c/2.5:a+c/2,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},e,f)):this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+c/1.6,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},e))},e.prototype.createPathLink=function(e,t,n,r,o,a,i,s,l){var c="M".concat(n-a/2,",").concat(r-s," H").concat(l+a/2," M").concat(e,",").concat(r-s,"\n V").concat(t+i+s/2),u="M".concat(e,",").concat(t+i+s/2," V").concat(t+5*s,"\n H").concat(e-a/2," H").concat(e+a/2);return o?u:c},e.prototype.addLinktoSVG=function(e,t,n,r,o,a,i,l,c,u){void 0===u&&(u=0),this._linkElements.push(s.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,o,a,i,l,c,u),key:"".concat(e).concat(this.styleClassNames.link)}))},e}(),Qg=function(e){function t(t,n,r,o,a,i){void 0===o&&(o=[]),void 0===a&&(a=[]);var s=e.call(this,t,r,o,a)||this;return s.composition=n,s._treeTraversal=i,s}return r(t,e),t.prototype.createTree=function(e,t){var n,r,o,a,i,s,l=(e=e<65?65:e>90?90:e)||75,c=Ig(this.treeData,(function(e){return e.children})),u=(null==c?void 0:c.height)+1;(function(){var e=zg,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,a,i=new jg(e,0),s=[i];t=s.pop();)if(r=t._.children)for(t.children=new Array(a=r.length),o=a-1;o>=0;--o)s.push(n=t.children[o]=new jg(r[o],o)),n.parent=t;return(i.parent=new jg(null,0)).children=[i],i}(o);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(i),r)o.eachBefore(s);else{var c=o,u=o,d=o;o.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:e(c,u)/2,p=h-c.x,f=t/(u.x+h+p),g=n/(d.depth||1);o.eachBefore((function(e){e.x=(e.x+p)*f,e.y=e.depth*g}))}return o}function a(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,a=o.length;--a>=0;)(t=o[a]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-a):t.z=a}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,a=t,i=t,s=n,l=a.parent.children[0],c=a.m,u=i.m,d=s.m,h=l.m;s=Ug(s),a=Yg(a),s&&a;)l=Yg(l),(i=Ug(i)).a=t,(o=s.z+d-a.z-c+e(s._,a._))>0&&(qg(Xg(s,t,r),t,o),c+=o,u+=o),d+=s.m,c+=a.m,h+=l.m,u+=i.m;s&&!Ug(i)&&(i.t=s,i.m+=d-u),a&&!Yg(l)&&(l.t=a,l.m+=c-h,r=t)}return r}(t,o,t.parent.A||r[0])}function i(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o})().nodeSize([l,l/1.5]).separation((function(e,t){return e.parent===c&&t.parent===c?3.5:1}))(c).descendants().forEach((function(e){e.y=0===e.depth?10:130*e.depth,e.x+=t/2}));var d=[],h=0,p=function(e){var t,n;e.id=h,d.push({id:h,children:e.children,dataName:e.data.name,subName:e.data.subname,bodyText:e.data.bodytext,metricName:null===(t=e.data)||void 0===t?void 0:t.metric,fill:e.data.fill,x:e.x,y:e.y,parentID:null===(n=e.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?c.each((function(e){p(e)})):c.eachBefore((function(e){p(e)}));for(var f=3*l,g=f/3.45,m=20,v=new Set,_=0,y=d;_<y.length;_++){var x=y[_],b=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(d[x.parentID].dataName,"\n ").concat(d[x.parentID].subName);if(!x.children&&!v.has(x.parentID)&&3===u){var C=(f-m)/2,S=g;v.add(x.parentID),this.addLinktoSVG(x.id,d[x.parentID].x,d[x.parentID].y,d[x.id].x,d[x.id].y,!0,f,g,m);for(var E=null===(n=d[x.parentID])||void 0===n?void 0:n.children,L=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,k=(null===(o=d[x.parentID])||void 0===o?void 0:o.x)+C/2+10,A=null===(a=d[x.parentID])||void 0===a?void 0:a.x,w=null===(i=E[0])||void 0===i?void 0:i.y,D=0;D<E.length;++D){var T=E[D];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?1===E.length?A:L:k,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=S+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=S+m):E.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?L:k,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=S+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=S+m)}}if((x.children||u<=2)&&(this.addNodeShapetoSVG(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,f,g,x.id,b),0===x.id&&x.children)){var M=Ko(E=null===(s=d[x.id])||void 0===s?void 0:s.children,(function(e){return e.x})),P=jo(E,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},t}($g),Jg=function(e){function t(t){var n,r=e.call(this,t)||this;return r._nodeElements=[],r._linkElements=[],r._margin={top:30,right:20,bottom:30,left:50},r._width=r.props.width||1500,r._height=r.props.height||700,r._treeData=r.props.treeData,r._composition=null===(n=r.props)||void 0===n?void 0:n.composition,r._treeTraversal=r.props.treeTraversal,r.state={_width:r._width,_height:r._height},r}return r(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Zg(r,{theme:t,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},t.prototype.componentDidUpdate=function(e){if(e.layoutWidth!==this.props.layoutWidth){var t=Xu("text"),n=Xu("rect"),r=Xu("path");0===this._nodeElements.length&&0===this._linkElements.length&&(t.remove(),n.remove(),r.remove()),this.createTreeChart()}},t.prototype.createTreeChart=function(){var e=[],t=[],n=new Qg(this._treeData,this._composition,this._classNames,e,t,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=e,this._linkElements=t},t.prototype.render=function(){var e;return s.createElement(qd,null,s.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},s.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},s.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),s.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},t}(s.Component),em=E(Jg,(function(e){return{root:[e.theme.spacing,"ms-TreeChart",e.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:o({fill:"black"},e.theme.fonts.large),rectSubText:o({fill:"#484644"},e.theme.fonts.medium),rectBodyText:o({fill:"#808080"},e.theme.fonts.xSmall),rectMetricText:o({fill:"#000000"},e.theme.fonts.xLarge)}}));!function(e){e[e.long=1]="long",e[e.compact=0]="compact"}(Kg||(Kg={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(Gg||(Gg={}));var tm=he(),nm=function(e){function t(t){var n=e.call(this,t)||this;return n.margin={top:2,right:0,bottom:0,left:0},n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80},n}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=Lf().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(Bp);this.area=t;var n=zp().x((function(t){return e.x(t.x)})).y((function(t){return e.y(t.y)})).curve(Bp);this.line=n;var r=this.props.data.lineChartData[0].data,o=function(e,t){var n,r,o,a=e.length,i=-1;if(null==t){for(;++i<a;)if(null!=(n=e[i])&&n>=n)for(r=o=n;++i<a;)null!=(n=e[i])&&(r>n&&(r=n),o<n&&(o=n))}else for(;++i<a;)if(null!=(n=t(e[i]))&&n>=n)for(r=o=n;++i<a;)null!=(n=t(e[i]))&&(r>n&&(r=n),o<n&&(o=n));return[r,o]}(r,(function(e){return e.x})),a=o[0],i=o[1];this.x=Si().domain([a,i]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Si().domain([0,jo(r,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})},t.prototype.drawSparkline=function(){return s.createElement(s.Fragment,null,s.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),s.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)}))},t.prototype.render=function(){var e=tm(this.props.styles,{theme:this.props.theme});return s.createElement(qd,{direction:md.horizontal,isCircularNavigation:!0,className:e.inlineBlock},s.createElement("div",{className:e.inlineBlock},this.state._width>=50&&this.state._height>=16?s.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):s.createElement(s.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?s.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},s.createElement("text",{x:"0%",dx:8,y:"100%",dy:-5,className:e.valueText},this.props.data.lineChartData[0].legend)):s.createElement(s.Fragment,null)))},t}(s.Component),rm=E(nm,(function(e){return{inlineBlock:{display:"inline"},valueText:o(o({},e.theme.fonts.smallPlus),{fill:e.theme.palette.black})}})),om=he(),am=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=le(),n._getMargins=function(e){n.margins=e},n._renderContentForOnlyBars=function(e){var t,r,o,a=n.props.useSingleColor,i=void 0!==a&&a,l=0;return n.props.data.forEach((function(t,n){t.y===e.y&&(l=n)})),o=i?n.props.colors?n._createColors()(1):gf(1,0,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted):e.color?e.color:n.props.colors?n._createColors()(e.x):gf(l,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),s.createElement(s.Fragment,null,s.createElement(Sd,{XValue:e.xAxisCalloutData||e.x.toString(),Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:o,culture:n.props.culture}))},n._renderCallout=function(e){return e?n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,o,a,i){return n._bars=n._yAxisType===Zu.NumericAxis?n._createNumericBars(r,o,a,i):n._createStringBars(r,o,a,i)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForBar=function(e){var t,r,o,a=[],i=n.props.useSingleColor,s=void 0!==i&&i,l=n.props.data,c=l.filter((function(t){return t.y===e.y})),u=0;return l.forEach((function(t,n){t.y===e.y&&(u=n)})),o=s?n.props.colors?n._createColors()(1):gf(1,0,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted):c[0].color?c[0].color:n.props.colors?n._createColors()(c[0].x):gf(u,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted),a.push({legend:c[0].legend,y:c[0].x,color:o,data:c[0].yAxisCalloutData,yAxisCalloutData:c[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:e.yAxisCalloutData||e.y.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){if(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.selectedLegendTitle===e.legend){var o=n._getCalloutContentForBar(e),a=o.YValueHover,i=o.hoverXValue;n._refArray.forEach((function(o,s){t===s&&n.setState({refSelected:o.refElement,isCalloutVisible:!0,selectedLegendTitle:e.legend,dataForHoverCard:e.x,color:n.props.useSingleColor?r:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:a,hoverXValue:i,callOutAccessibilityData:e.callOutAccessibilityData})}))}},n._getScales=function(e,t,r){if(r){var o=jo(n._points,(function(e){return e.x})),a=jo(n._points,(function(e){return e.y}));return{xBarScale:Si().domain(n._isRtl?[o,0]:[0,o]).nice().range([n.margins.left,t-n.margins.right]),yBarScale:i=Si().domain([0,a]).range([e-n.margins.bottom,n.margins.top])}}o=jo(n._points,(function(e){return e.x}));var i=Fc().domain(n._yAxisLabels).range([e-n.margins.bottom-n._barHeight/2,n.margins.top+n._barHeight/2]).padding(n.props.yAxisPadding||0);return{xBarScale:Si().domain(n._isRtl?[o,0]:[0,o]).range([n.margins.left,t-n.margins.right]),yBarScale:i}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props.useSingleColor,a=[];return e.forEach((function(e,t){var o,i=r?n.props.colors?n._createColors()(1):gf(1,0,null===(o=n.props.theme)||void 0===o?void 0:o.isInverted):e.color,s={title:e.legend,color:i,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};a.push(s)})),s.createElement($h,o({legends:a,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._xMax=Math.max(t[t.length-1],n.props.xMaxValue||0)}},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.x,r=e.yAxisCalloutData||e.y;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||"".concat(n,". ")+"".concat(r,".")},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},n._calloutId=xe("callout"),n._tooltipId=xe("HBCWATooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?gd(n.props.data[0].x,!0):Gu.NumericAxis,n._yAxisType=n.props.data&&n.props.data.length>0?gd(n.props.data[0].y,!1):Zu.StringAxis,n}return r(t,e),t.prototype.render=function(){var e=this;this._adjustProps();var t=i([],this._points,!0).reverse();this._yAxisLabels=t.map((function(e){return e.y})),this._xMax=Math.max(jo(this._points,(function(e){return e.x})),this.props.xMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=om(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=o(o({isCalloutVisible:this.state.isCalloutVisible,directionalHint:Ee.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),_d(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Xp,o({},this.props,{points:this._points,chartType:Ku.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:r,tickParams:a,legendBars:n,barwidth:this._barHeight,focusZoneDirection:md.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark]},t.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(t*o*this._xMax);return Si().domain(r).range(this._colors)},t.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForBar(e),o=r.YValueHover,a=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===e.legend)&&this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:e.x,selectedLegendTitle:e.legend,color:this.props.useSingleColor?t:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n,r){var o=this,a=this.props.useSingleColor,l=void 0!==a&&a,c=this._getScales(e,t,!0),u=c.xBarScale,d=c.yBarScale,h=i([],this._points,!0);h.sort((function(e,t){var n="number"==typeof e.y?e.y:parseFloat(e.y);return("number"==typeof t.y?t.y:parseFloat(t.y))-n}));var p=h.map((function(e,n){var r,a,i,c=!0;return(o.state.isLegendHovered||o.state.isLegendSelected)&&(c=o.state.selectedLegendTitle===e.legend),o._classNames=om(o.props.styles,{theme:o.props.theme,legendColor:o.state.color,shouldHighlight:c}),Math.max(d(e.y),0)<1?s.createElement(s.Fragment,{key:e.x}," "):(i=l?o.props.colors?o._createColors()(1):gf(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(e.x):gf(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),s.createElement("rect",{key:e.y,x:o._isRtl?u(e.x):o.margins.left,className:o._classNames.opacityChangeOnHover,y:d(e.y)-o._barHeight/2,"data-is-focusable":!0,width:o._isRtl?t-o.margins.right-Math.max(u(e.x),0):Math.max(u(e.x),0)-o.margins.left,height:o._barHeight,ref:function(t){o._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:o._onBarHover.bind(o,e,i),"aria-label":o._getAriaLabel(e),role:"img","aria-labelledby":"toolTip".concat(o._calloutId),onMouseLeave:o._onBarLeave,onFocus:o._onBarFocus.bind(o,e,n,i),onBlur:o._onBarLeave,fill:e.color&&!l?e.color:i}))}));return p},t.prototype._tooltipOfYAxislabels=function(e){var t=this,n=e.tooltipCls,r=e.yAxis,o=e.id;if(null===r)return null;for(var a=zu("body").append("div").attr("id",o).attr("class",n).style("opacity",0),i=r.selectAll("#BaseSpan")._groups[0],s=i&&Object.keys(i).length,l=[],c=0;c<s;c++){var u=i[c].dataset&&Object.values(i[c].dataset)[0];l.push(u)}var d=r.selectAll(".tick")._groups[0],h=d&&Object.keys(d).length,p=function(e){zu(d[e]).on("mouseover",(function(n){t.state.tooltipElement||(a.style("opacity",.9),a.html(l[e]).style("left",Pu.pageX+"px").style("top",Pu.pageY-28+"px"))})).on("mouseout",(function(e){a.style("opacity",0)}))};for(c=0;c<h;c++)p(c)},t.prototype._createStringBars=function(e,t,n,r){var o=this,a=this._getScales(e,t,!1),i=a.xBarScale,l=a.yBarScale,c=this.props.useSingleColor,u=void 0!==c&&c,d=this._points.map((function(e,n){var r,a,c;return Math.max(l(e.y),0)<1?s.createElement(s.Fragment,{key:e.x}," "):(c=u?o.props.colors?o._createColors()(1):gf(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(e.x):gf(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),s.createElement("rect",{key:e.x,x:o._isRtl?i(e.x):o.margins.left,y:l(e.y)+o._barHeight/2,width:o._isRtl?t-o.margins.right-Math.max(i(e.x),0):Math.max(i(e.x),0)-o.margins.left,height:o._barHeight,"aria-labelledby":"toolTip".concat(o._calloutId),"aria-label":o._getAriaLabel(e),role:"img",ref:function(t){o._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:o._onBarHover.bind(o,e,c),onMouseLeave:o._onBarLeave,onBlur:o._onBarLeave,"data-is-focusable":!0,onFocus:o._onBarFocus.bind(o,e,n,c),fill:e.color&&!u?e.color:c}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(this.props.showYAxisLablesTooltip){var h=zu(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(s.Component),im=E(am,(function(e){var t=e.shouldHighlight,n=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1"},xAxisTicks:[],tooltip:o(o({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));Br("@fluentui/react-charting","5.16.36"),FluentUIReactCharting=t}();
|