highcharts 13.0.0 → 13.0.2
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/bower.json +1 -1
- package/css/highcharts.css +2 -1
- package/es-modules/Accessibility/A11yI18n.js +4 -4
- package/es-modules/Accessibility/Accessibility.js +38 -1
- package/es-modules/Accessibility/Components/InfoRegionsComponent.js +6 -4
- package/es-modules/Accessibility/Components/LegendComponent.js +3 -4
- package/es-modules/Accessibility/Components/NavigatorComponent.js +3 -4
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesDescriber.js +13 -10
- package/es-modules/Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js +8 -4
- package/es-modules/Accessibility/Components/ZoomComponent.js +2 -2
- package/es-modules/Accessibility/FocusBorder.js +2 -2
- package/es-modules/Accessibility/Options/A11yDefaults.js +12 -3
- package/es-modules/Accessibility/Options/DeprecatedOptions.js +1 -2
- package/es-modules/Accessibility/ProxyElement.js +1 -0
- package/es-modules/Core/Animation/AnimationUtilities.js +34 -43
- package/es-modules/Core/Animation/Fx.js +16 -19
- package/es-modules/Core/Axis/Axis.js +49 -59
- package/es-modules/Core/Axis/Axis3DComposition.js +8 -6
- package/es-modules/Core/Axis/AxisDefaults.js +12 -2
- package/es-modules/Core/Axis/BrokenAxis.js +6 -5
- package/es-modules/Core/Axis/Color/ColorAxis.js +24 -12
- package/es-modules/Core/Axis/Color/ColorAxisComposition.js +3 -3
- package/es-modules/Core/Axis/GridAxis.js +12 -5
- package/es-modules/Core/Axis/LogarithmicAxis.js +5 -3
- package/es-modules/Core/Axis/NavigatorAxisComposition.js +2 -2
- package/es-modules/Core/Axis/OrdinalAxis.js +21 -11
- package/es-modules/Core/Axis/PlotLineOrBand/PlotLineOrBand.js +3 -2
- package/es-modules/Core/Axis/RadialAxis.js +23 -22
- package/es-modules/Core/Axis/ScrollbarAxis.js +3 -3
- package/es-modules/Core/Axis/Stacking/StackItem.js +5 -5
- package/es-modules/Core/Axis/Stacking/StackingAxis.js +5 -6
- package/es-modules/Core/Axis/Tick.js +10 -11
- package/es-modules/Core/Axis/TreeGrid/TreeGridAxis.js +1 -1
- package/es-modules/Core/Axis/TreeGrid/TreeGridTick.js +3 -3
- package/es-modules/Core/Chart/Chart.js +58 -53
- package/es-modules/Core/Chart/Chart3D.js +3 -3
- package/es-modules/Core/Chart/ChartDefaults.js +24 -1
- package/es-modules/Core/Chart/MapChart.js +7 -10
- package/es-modules/Core/Chart/StockChart.js +15 -11
- package/es-modules/Core/Color/Color.js +3 -1
- package/es-modules/Core/Defaults.js +44 -2
- package/es-modules/Core/Globals.js +1 -1
- package/es-modules/Core/Legend/Legend.js +20 -17
- package/es-modules/Core/Legend/LegendSymbol.js +2 -2
- package/es-modules/Core/MSPointer.js +2 -2
- package/es-modules/Core/Math3D.js +6 -7
- package/es-modules/Core/Pointer.js +20 -10
- package/es-modules/Core/Renderer/HTML/AST.js +5 -1
- package/es-modules/Core/Renderer/HTML/HTMLElement.js +23 -16
- package/es-modules/Core/Renderer/RendererUtilities.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGElement.js +12 -11
- package/es-modules/Core/Renderer/SVG/SVGElement3D.js +2 -2
- package/es-modules/Core/Renderer/SVG/SVGLabel.js +5 -5
- package/es-modules/Core/Renderer/SVG/SVGRenderer.js +6 -6
- package/es-modules/Core/Renderer/SVG/SVGRenderer3D.js +13 -12
- package/es-modules/Core/Renderer/SVG/Symbols.js +6 -5
- package/es-modules/Core/Renderer/SVG/TextBuilder.js +2 -2
- package/es-modules/Core/Responsive.js +7 -5
- package/es-modules/Core/Series/DataLabel.js +9 -8
- package/es-modules/Core/Series/OverlappingDataLabels.js +5 -2
- package/es-modules/Core/Series/Point.js +31 -24
- package/es-modules/Core/Series/Series.js +125 -82
- package/es-modules/Core/Series/Series3D.js +2 -2
- package/es-modules/Core/Series/SeriesDefaults.js +33 -0
- package/es-modules/Core/Templating.js +18 -15
- package/es-modules/Core/Tooltip.js +12 -9
- package/es-modules/Core/Utilities.js +4 -3
- package/es-modules/Data/Connectors/DataConnector.js +2 -2
- package/es-modules/Data/Connectors/GoogleSheetsConnector.js +2 -2
- package/es-modules/Data/DataTable.js +17 -0
- package/es-modules/Data/DataTableCore.js +1 -1
- package/es-modules/Extensions/Annotations/Annotation.js +5 -6
- package/es-modules/Extensions/Annotations/AnnotationChart.js +2 -2
- package/es-modules/Extensions/Annotations/AnnotationDefaults.js +4 -4
- package/es-modules/Extensions/Annotations/ControlPoint.js +2 -2
- package/es-modules/Extensions/Annotations/Controllables/ControllableLabel.js +2 -2
- package/es-modules/Extensions/Annotations/EventEmitter.js +4 -4
- package/es-modules/Extensions/Annotations/MockPoint.js +7 -9
- package/es-modules/Extensions/Annotations/NavigationBindings.js +6 -3
- package/es-modules/Extensions/Annotations/NavigationBindingsUtilities.js +31 -4
- package/es-modules/Extensions/Annotations/Popup/Popup.js +3 -2
- package/es-modules/Extensions/Annotations/Popup/PopupAnnotations.js +6 -8
- package/es-modules/Extensions/Annotations/Types/CrookedLine.js +4 -4
- package/es-modules/Extensions/Annotations/Types/Measure.js +28 -10
- package/es-modules/Extensions/Annotations/Types/TimeCycles.js +4 -2
- package/es-modules/Extensions/Annotations/Types/Tunnel.js +3 -1
- package/es-modules/Extensions/Annotations/Types/VerticalLine.js +3 -3
- package/es-modules/Extensions/Boost/Boost.js +13 -0
- package/es-modules/Extensions/Boost/BoostChart.js +11 -4
- package/es-modules/Extensions/Boost/BoostSeries.js +17 -11
- package/es-modules/Extensions/Boost/WGLRenderer.js +9 -6
- package/es-modules/Extensions/Boost/WGLShader.js +3 -3
- package/es-modules/Extensions/BoostCanvas.js +2 -2
- package/es-modules/Extensions/BorderRadius.js +12 -10
- package/es-modules/Extensions/Breadcrumbs/Breadcrumbs.js +6 -5
- package/es-modules/Extensions/DataGrouping/DataGrouping.js +2 -2
- package/es-modules/Extensions/DataGrouping/DataGroupingAxisComposition.js +4 -3
- package/es-modules/Extensions/DataGrouping/DataGroupingSeriesComposition.js +2 -2
- package/es-modules/Extensions/DraggablePoints/DragDropProps.js +2 -3
- package/es-modules/Extensions/DraggablePoints/DraggableChart.js +1 -2
- package/es-modules/Extensions/Drilldown/Drilldown.js +1 -2
- package/es-modules/Extensions/Drilldown/DrilldownSeries.js +1 -2
- package/es-modules/Extensions/ExportData/ExportData.js +21 -16
- package/es-modules/Extensions/Exporting/Exporting.js +28 -28
- package/es-modules/Extensions/Exporting/ExportingDefaults.js +32 -0
- package/es-modules/Extensions/MarkerClusters/MarkerClusterScatter.js +1 -2
- package/es-modules/Extensions/MarkerClusters/MarkerClusters.js +1 -2
- package/es-modules/Extensions/MouseWheelZoom/MouseWheelZoom.js +2 -2
- package/es-modules/Extensions/OfflineExporting/OfflineExporting.js +31 -4
- package/es-modules/Extensions/Pane/PaneComposition.js +2 -2
- package/es-modules/Extensions/Pane/PaneDefaults.js +1 -1
- package/es-modules/Extensions/ParallelCoordinates/ParallelAxis.js +2 -2
- package/es-modules/Extensions/ParallelCoordinates/ParallelCoordinates.js +3 -0
- package/es-modules/Extensions/PatternFill.js +7 -5
- package/es-modules/Extensions/PriceIndication.js +5 -4
- package/es-modules/Extensions/ScrollablePlotArea.js +8 -2
- package/es-modules/Extensions/SeriesLabel/SeriesLabel.js +8 -9
- package/es-modules/Extensions/Sonification/MIDI.js +2 -3
- package/es-modules/Extensions/Sonification/Sonification.js +2 -2
- package/es-modules/Extensions/Sonification/SonificationSpeaker.js +3 -2
- package/es-modules/Extensions/Sonification/SynthPatch.js +4 -4
- package/es-modules/Extensions/Sonification/TimelineFromChart.js +11 -11
- package/es-modules/Gantt/Legacy.js +2 -2
- package/es-modules/Gantt/Pathfinder.js +3 -3
- package/es-modules/Gantt/PathfinderAlgorithms.js +4 -3
- package/es-modules/Gantt/Tree.js +1 -1
- package/es-modules/Maps/GeoJSONComposition.js +14 -1
- package/es-modules/Maps/MapNavigation.js +4 -4
- package/es-modules/Maps/MapPointer.js +2 -2
- package/es-modules/Maps/MapView.js +3 -3
- package/es-modules/Series/ArcDiagram/ArcDiagramSeries.js +8 -6
- package/es-modules/Series/Area/AreaSeries.js +4 -5
- package/es-modules/Series/AreaRange/AreaRangeSeries.js +87 -147
- package/es-modules/Series/AreaRange/AreaRangeSeriesDefaults.js +42 -4
- package/es-modules/Series/Bellcurve/BellcurveSeries.js +10 -6
- package/es-modules/Series/BoxPlot/BoxPlotSeries.js +40 -32
- package/es-modules/Series/BoxPlot/BoxPlotSeriesDefaults.js +33 -1
- package/es-modules/Series/Bubble/BubbleLegendItem.js +10 -6
- package/es-modules/Series/Bubble/BubbleSeries.js +25 -9
- package/es-modules/Series/Bullet/BulletSeries.js +17 -10
- package/es-modules/Series/Candlestick/CandlestickSeries.js +3 -3
- package/es-modules/Series/CenteredUtilities.js +12 -9
- package/es-modules/Series/ColorMapComposition.js +7 -4
- package/es-modules/Series/Column/ColumnPoint.js +2 -0
- package/es-modules/Series/Column/ColumnSeries.js +14 -14
- package/es-modules/Series/Column/ColumnSeriesDefaults.js +4 -2
- package/es-modules/Series/Column3D/Column3DComposition.js +22 -19
- package/es-modules/Series/ColumnPyramid/ColumnPyramidPoint.js +18 -0
- package/es-modules/Series/ColumnPyramid/ColumnPyramidPointOptions.js +12 -0
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeries.js +7 -6
- package/es-modules/Series/ColumnPyramid/ColumnPyramidSeriesOptions.js +12 -0
- package/es-modules/Series/ColumnRange/ColumnRangePoint.js +2 -0
- package/es-modules/Series/ColumnRange/ColumnRangePointOptions.js +12 -0
- package/es-modules/Series/ColumnRange/ColumnRangeSeries.js +13 -144
- package/es-modules/Series/ColumnRange/ColumnRangeSeriesDefaults.js +148 -0
- package/es-modules/Series/ColumnRange/ColumnRangeSeriesOptions.js +12 -0
- package/es-modules/Series/Contour/ContourPoint.js +2 -0
- package/es-modules/Series/Contour/ContourSeries.js +1 -0
- package/es-modules/Series/Contour/ContourSeriesDefaults.js +7 -0
- package/es-modules/Series/Contour/ContourShader.js +9 -1
- package/es-modules/Series/CrossSymbol.js +3 -2
- package/es-modules/Series/Cylinder/CylinderComposition.js +12 -12
- package/es-modules/Series/Cylinder/CylinderPoint.js +2 -0
- package/es-modules/Series/Cylinder/CylinderPointOptions.js +15 -0
- package/es-modules/Series/Cylinder/CylinderSeries.js +2 -1
- package/es-modules/Series/Cylinder/CylinderSeriesOptions.js +15 -0
- package/es-modules/Series/Cylinder/SVGElement3DCylinder.js +2 -0
- package/es-modules/Series/DataModifyComposition.js +9 -7
- package/es-modules/Series/DependencyWheel/DependencyWheelPoint.js +3 -1
- package/es-modules/Series/DependencyWheel/DependencyWheelPointOptions.js +14 -0
- package/es-modules/Series/DependencyWheel/DependencyWheelSeries.js +8 -8
- package/es-modules/Series/DependencyWheel/DependencyWheelSeriesOptions.js +14 -0
- package/es-modules/Series/DerivedComposition.js +9 -8
- package/es-modules/Series/DotPlot/DotPlotPoint.js +18 -0
- package/es-modules/Series/DotPlot/DotPlotPointOptions.js +12 -0
- package/es-modules/Series/DotPlot/DotPlotSeries.js +6 -4
- package/es-modules/Series/DotPlot/DotPlotSeriesOptions.js +12 -0
- package/es-modules/Series/DragNodesComposition.js +11 -8
- package/es-modules/Series/DrawPointUtilities.js +3 -1
- package/es-modules/Series/Dumbbell/DumbbellPoint.js +19 -6
- package/es-modules/Series/Dumbbell/DumbbellPointOptions.js +12 -0
- package/es-modules/Series/Dumbbell/DumbbellSeries.js +33 -15
- package/es-modules/Series/Dumbbell/DumbbellSeriesOptions.js +12 -0
- package/es-modules/Series/ErrorBar/ErrorBarPoint.js +18 -0
- package/es-modules/Series/ErrorBar/ErrorBarPointOptions.js +12 -0
- package/es-modules/Series/ErrorBar/ErrorBarSeries.js +6 -9
- package/es-modules/Series/ErrorBar/ErrorBarSeriesDefaults.js +15 -1
- package/es-modules/Series/ErrorBar/ErrorBarSeriesOptions.js +12 -0
- package/es-modules/Series/Flags/FlagsSeries.js +5 -14
- package/es-modules/Series/Flags/FlagsSeriesDefaults.js +2 -1
- package/es-modules/Series/FlowMap/FlowMapPoint.js +5 -3
- package/es-modules/Series/FlowMap/FlowMapSeries.js +17 -9
- package/es-modules/Series/Funnel/FunnelSeries.js +25 -26
- package/es-modules/Series/Funnel/FunnelSeriesDefaults.js +12 -0
- package/es-modules/Series/Funnel3D/Funnel3DSeries.js +7 -5
- package/es-modules/Series/Gantt/GanttSeries.js +2 -1
- package/es-modules/Series/Gauge/GaugeSeries.js +2 -2
- package/es-modules/Series/GeoHeatmap/GeoHeatmapSeries.js +9 -9
- package/es-modules/Series/GraphLayoutComposition.js +3 -3
- package/es-modules/Series/Heatmap/HeatmapPoint.js +6 -6
- package/es-modules/Series/Heatmap/HeatmapPointOptions.js +12 -0
- package/es-modules/Series/Heatmap/HeatmapSeries.js +13 -13
- package/es-modules/Series/Heatmap/HeatmapSeriesOptions.js +12 -0
- package/es-modules/Series/Histogram/HistogramPoint.js +17 -0
- package/es-modules/Series/Histogram/HistogramPointOptions.js +12 -0
- package/es-modules/Series/Histogram/HistogramSeries.js +15 -3
- package/es-modules/Series/Histogram/HistogramSeriesOptions.js +12 -0
- package/es-modules/Series/HollowCandlestick/HollowCandlestickSeries.js +9 -9
- package/es-modules/Series/InterpolationUtilities.js +5 -5
- package/es-modules/Series/Item/ItemPointOptions.js +14 -0
- package/es-modules/Series/Item/ItemSeries.js +18 -6
- package/es-modules/Series/Item/ItemSeriesOptions.js +14 -0
- package/es-modules/Series/Map/MapPoint.js +5 -3
- package/es-modules/Series/Map/MapSeries.js +6 -10
- package/es-modules/Series/Map/MapSeriesDefaults.js +11 -1
- package/es-modules/Series/Networkgraph/NetworkgraphPoint.js +3 -3
- package/es-modules/Series/Networkgraph/NetworkgraphSeries.js +14 -9
- package/es-modules/Series/Networkgraph/NetworkgraphSeriesDefaults.js +12 -0
- package/es-modules/Series/Networkgraph/ReingoldFruchtermanLayout.js +18 -9
- package/es-modules/Series/NodesComposition.js +9 -10
- package/es-modules/Series/OHLC/OHLCPoint.js +2 -2
- package/es-modules/Series/OHLC/OHLCSeries.js +1 -0
- package/es-modules/Series/Organization/OrganizationPoint.js +3 -2
- package/es-modules/Series/Organization/OrganizationSeries.js +29 -7
- package/es-modules/Series/Organization/OrganizationSeriesDefaults.js +11 -4
- package/es-modules/Series/PackedBubble/PackedBubbleLayout.js +3 -3
- package/es-modules/Series/PackedBubble/PackedBubbleSeries.js +5 -5
- package/es-modules/Series/Pictorial/PictorialSeries.js +4 -2
- package/es-modules/Series/Pie/PieDataLabel.js +2 -2
- package/es-modules/Series/Pie/PiePoint.js +3 -4
- package/es-modules/Series/Pie/PieSeries.js +3 -2
- package/es-modules/Series/Pie3D/Pie3DSeries.js +8 -4
- package/es-modules/Series/PolarComposition.js +13 -14
- package/es-modules/Series/Polygon/PolygonSeries.js +2 -2
- package/es-modules/Series/Polygon/PolygonSeriesDefaults.js +20 -0
- package/es-modules/Series/RangeDataLabel.js +128 -0
- package/es-modules/Series/Sankey/SankeySeries.js +13 -7
- package/es-modules/Series/Sankey/SankeySeriesDefaults.js +2 -2
- package/es-modules/Series/Scatter/ScatterSeries.js +6 -5
- package/es-modules/Series/Scatter/ScatterSeriesDefaults.js +2 -0
- package/es-modules/Series/SimulationSeriesUtilities.js +1 -2
- package/es-modules/Series/SolidGauge/SolidGaugeSeries.js +4 -4
- package/es-modules/Series/Spline/SplineSeries.js +5 -5
- package/es-modules/Series/Sunburst/SunburstSeriesDefaults.js +8 -0
- package/es-modules/Series/TiledWebMap/TiledWebMapSeries.js +20 -12
- package/es-modules/Series/Tilemap/TilemapSeriesDefaults.js +2 -1
- package/es-modules/Series/Tilemap/TilemapShapes.js +2 -2
- package/es-modules/Series/Timeline/TimelinePoint.js +2 -2
- package/es-modules/Series/Timeline/TimelineSeries.js +13 -6
- package/es-modules/Series/TreeUtilities.js +16 -7
- package/es-modules/Series/Treegraph/TreegraphLink.js +2 -2
- package/es-modules/Series/Treegraph/TreegraphSeries.js +22 -13
- package/es-modules/Series/Treemap/TreemapPoint.js +2 -2
- package/es-modules/Series/Treemap/TreemapSeries.js +14 -11
- package/es-modules/Series/Treemap/TreemapSeriesDefaults.js +22 -1
- package/es-modules/Series/VariablePie/VariablePieSeries.js +6 -4
- package/es-modules/Series/VariablePie/VariablePieSeriesDefaults.js +3 -2
- package/es-modules/Series/Variwide/VariwideSeries.js +2 -2
- package/es-modules/Series/Vector/VectorSeries.js +7 -9
- package/es-modules/Series/Venn/VennSeries.js +3 -4
- package/es-modules/Series/Waterfall/WaterfallSeries.js +3 -3
- package/es-modules/Series/Windbarb/WindbarbSeries.js +8 -10
- package/es-modules/Series/XRange/XRangeSeries.js +8 -8
- package/es-modules/Shared/TimeBase.js +13 -8
- package/es-modules/Shared/Utilities.js +9 -7
- package/es-modules/Stock/Indicators/Aroon/AroonIndicator.js +3 -3
- package/es-modules/Stock/Indicators/DPO/DPOIndicator.js +4 -3
- package/es-modules/Stock/Indicators/RSI/RSIIndicator.js +1 -1
- package/es-modules/Stock/Indicators/SMA/SMAIndicator.js +2 -2
- package/es-modules/Stock/Indicators/VBP/VBPIndicator.js +1 -2
- package/es-modules/Stock/Navigator/ChartNavigatorComposition.js +4 -4
- package/es-modules/Stock/Navigator/Navigator.js +26 -26
- package/es-modules/Stock/Navigator/NavigatorDefaults.js +9 -2
- package/es-modules/Stock/Navigator/NavigatorSymbols.js +2 -1
- package/es-modules/Stock/Navigator/StandaloneNavigator.js +55 -14
- package/es-modules/Stock/RangeSelector/RangeSelector.js +15 -11
- package/es-modules/Stock/RangeSelector/RangeSelectorComposition.js +3 -3
- package/es-modules/Stock/Scrollbar/Scrollbar.js +8 -7
- package/es-modules/Stock/StockTools/StockToolbar.js +6 -6
- package/es-modules/Stock/StockTools/StockTools.js +2 -2
- package/es-modules/Stock/StockTools/StockToolsBindings.js +7 -7
- package/es-modules/Stock/StockTools/StockToolsGui.js +6 -4
- package/es-modules/masters/highcharts-3d.src.js +1 -1
- package/es-modules/masters/highcharts-autoload.src.js +1 -1
- package/es-modules/masters/highcharts-gantt.src.js +1 -1
- package/es-modules/masters/highcharts-more.src.js +1 -1
- package/es-modules/masters/highcharts.src.js +13 -8
- package/es-modules/masters/highmaps.src.js +1 -1
- package/es-modules/masters/highstock.src.js +1 -1
- package/es-modules/masters/i18n/fr-FR.src.d.ts +1 -1
- package/es-modules/masters/i18n/fr-FR.src.js +1 -1
- package/es-modules/masters/i18n/nb-NO.src.d.ts +1 -1
- package/es-modules/masters/i18n/nb-NO.src.js +1 -1
- package/es-modules/masters/i18n/zh-CN.src.d.ts +1 -1
- package/es-modules/masters/i18n/zh-CN.src.js +1 -1
- package/es-modules/masters/indicators/acceleration-bands.src.js +1 -1
- package/es-modules/masters/indicators/accumulation-distribution.src.js +1 -1
- package/es-modules/masters/indicators/ao.src.js +1 -1
- package/es-modules/masters/indicators/apo.src.js +1 -1
- package/es-modules/masters/indicators/aroon-oscillator.src.js +1 -1
- package/es-modules/masters/indicators/aroon.src.js +1 -1
- package/es-modules/masters/indicators/atr.src.js +1 -1
- package/es-modules/masters/indicators/bollinger-bands.src.js +1 -1
- package/es-modules/masters/indicators/cci.src.js +1 -1
- package/es-modules/masters/indicators/chaikin.src.js +1 -1
- package/es-modules/masters/indicators/cmf.src.js +1 -1
- package/es-modules/masters/indicators/cmo.src.js +1 -1
- package/es-modules/masters/indicators/dema.src.js +1 -1
- package/es-modules/masters/indicators/disparity-index.src.js +1 -1
- package/es-modules/masters/indicators/dmi.src.js +1 -1
- package/es-modules/masters/indicators/dpo.src.js +1 -1
- package/es-modules/masters/indicators/ichimoku-kinko-hyo.src.js +1 -1
- package/es-modules/masters/indicators/indicators-all.src.js +1 -1
- package/es-modules/masters/indicators/indicators.src.js +1 -1
- package/es-modules/masters/indicators/keltner-channels.src.js +1 -1
- package/es-modules/masters/indicators/klinger.src.js +1 -1
- package/es-modules/masters/indicators/macd.src.js +1 -1
- package/es-modules/masters/indicators/mfi.src.js +1 -1
- package/es-modules/masters/indicators/momentum.src.js +1 -1
- package/es-modules/masters/indicators/natr.src.js +1 -1
- package/es-modules/masters/indicators/obv.src.js +1 -1
- package/es-modules/masters/indicators/pivot-points.src.js +1 -1
- package/es-modules/masters/indicators/ppo.src.js +1 -1
- package/es-modules/masters/indicators/price-channel.src.js +1 -1
- package/es-modules/masters/indicators/price-envelopes.src.js +1 -1
- package/es-modules/masters/indicators/psar.src.js +1 -1
- package/es-modules/masters/indicators/regressions.src.js +1 -1
- package/es-modules/masters/indicators/roc.src.js +1 -1
- package/es-modules/masters/indicators/rsi.src.js +1 -1
- package/es-modules/masters/indicators/slow-stochastic.src.js +1 -1
- package/es-modules/masters/indicators/stochastic.src.js +1 -1
- package/es-modules/masters/indicators/supertrend.src.js +1 -1
- package/es-modules/masters/indicators/tema.src.js +1 -1
- package/es-modules/masters/indicators/trendline.src.js +1 -1
- package/es-modules/masters/indicators/trix.src.js +1 -1
- package/es-modules/masters/indicators/volume-by-price.src.js +1 -1
- package/es-modules/masters/indicators/vwap.src.js +1 -1
- package/es-modules/masters/indicators/williams-r.src.js +1 -1
- package/es-modules/masters/indicators/wma.src.js +1 -1
- package/es-modules/masters/indicators/zigzag.src.js +1 -1
- package/es-modules/masters/modules/accessibility.src.js +1 -1
- package/es-modules/masters/modules/annotations-advanced.src.js +1 -1
- package/es-modules/masters/modules/annotations.src.js +1 -1
- package/es-modules/masters/modules/arc-diagram.src.js +1 -1
- package/es-modules/masters/modules/arrow-symbols.src.js +1 -1
- package/es-modules/masters/modules/boost-canvas.src.js +1 -1
- package/es-modules/masters/modules/boost.src.js +1 -1
- package/es-modules/masters/modules/broken-axis.src.js +1 -1
- package/es-modules/masters/modules/bullet.src.js +1 -1
- package/es-modules/masters/modules/coloraxis.src.js +1 -1
- package/es-modules/masters/modules/contour.src.js +1 -1
- package/es-modules/masters/modules/current-date-indicator.src.js +1 -1
- package/es-modules/masters/modules/cylinder.src.js +1 -1
- package/es-modules/masters/modules/data-sorting.src.js +1 -1
- package/es-modules/masters/modules/data-tools.src.js +1 -1
- package/es-modules/masters/modules/data.src.js +1 -1
- package/es-modules/masters/modules/datagrouping.src.js +1 -1
- package/es-modules/masters/modules/debugger.src.js +1 -1
- package/es-modules/masters/modules/dependency-wheel.src.js +1 -1
- package/es-modules/masters/modules/dotplot.src.js +1 -1
- package/es-modules/masters/modules/drag-panes.src.js +1 -1
- package/es-modules/masters/modules/draggable-points.src.js +1 -1
- package/es-modules/masters/modules/drilldown.src.js +1 -1
- package/es-modules/masters/modules/dumbbell.src.js +1 -1
- package/es-modules/masters/modules/export-data.src.js +1 -1
- package/es-modules/masters/modules/exporting.src.js +1 -1
- package/es-modules/masters/modules/flowmap.src.js +2 -1
- package/es-modules/masters/modules/full-screen.src.js +1 -1
- package/es-modules/masters/modules/funnel.src.js +1 -1
- package/es-modules/masters/modules/funnel3d.src.js +1 -1
- package/es-modules/masters/modules/gantt.src.js +1 -1
- package/es-modules/masters/modules/geoheatmap.src.js +1 -1
- package/es-modules/masters/modules/grid-axis.src.js +1 -1
- package/es-modules/masters/modules/heatmap.src.js +1 -1
- package/es-modules/masters/modules/heikinashi.src.js +1 -1
- package/es-modules/masters/modules/histogram-bellcurve.src.js +1 -1
- package/es-modules/masters/modules/hollowcandlestick.src.js +1 -1
- package/es-modules/masters/modules/item-series.src.js +1 -1
- package/es-modules/masters/modules/lollipop.src.js +1 -1
- package/es-modules/masters/modules/map.src.js +1 -1
- package/es-modules/masters/modules/marker-clusters.src.js +1 -1
- package/es-modules/masters/modules/mouse-wheel-zoom.src.js +1 -1
- package/es-modules/masters/modules/navigator.src.js +1 -1
- package/es-modules/masters/modules/networkgraph.src.js +1 -1
- package/es-modules/masters/modules/no-data-to-display.src.js +1 -1
- package/es-modules/masters/modules/non-cartesian-zoom.src.js +1 -1
- package/es-modules/masters/modules/offline-exporting.src.js +1 -1
- package/es-modules/masters/modules/organization.src.js +1 -1
- package/es-modules/masters/modules/parallel-coordinates.src.js +1 -1
- package/es-modules/masters/modules/pareto.src.js +1 -1
- package/es-modules/masters/modules/pathfinder.src.js +1 -1
- package/es-modules/masters/modules/pattern-fill.src.js +1 -1
- package/es-modules/masters/modules/pictorial.src.js +1 -1
- package/es-modules/masters/modules/pointandfigure.src.js +1 -1
- package/es-modules/masters/modules/price-indicator.src.js +1 -1
- package/es-modules/masters/modules/pyramid3d.src.js +1 -1
- package/es-modules/masters/modules/renko.src.js +1 -1
- package/es-modules/masters/modules/sankey.src.js +1 -1
- package/es-modules/masters/modules/series-label.src.js +1 -1
- package/es-modules/masters/modules/series-on-point.src.js +1 -1
- package/es-modules/masters/modules/solid-gauge.src.js +1 -1
- package/es-modules/masters/modules/sonification.src.js +1 -1
- package/es-modules/masters/modules/static-scale.src.js +1 -1
- package/es-modules/masters/modules/stock-tools.src.js +1 -1
- package/es-modules/masters/modules/stock.src.js +1 -1
- package/es-modules/masters/modules/streamgraph.src.js +1 -1
- package/es-modules/masters/modules/sunburst.src.js +3 -2
- package/es-modules/masters/modules/textpath.src.js +1 -1
- package/es-modules/masters/modules/tiledwebmap.src.js +1 -1
- package/es-modules/masters/modules/tilemap.src.js +1 -1
- package/es-modules/masters/modules/timeline.src.js +1 -1
- package/es-modules/masters/modules/treegraph.src.js +1 -1
- package/es-modules/masters/modules/treegrid.src.js +1 -1
- package/es-modules/masters/modules/treemap.src.js +1 -1
- package/es-modules/masters/modules/variable-pie.src.js +1 -1
- package/es-modules/masters/modules/variwide.src.js +1 -1
- package/es-modules/masters/modules/vector.src.js +1 -1
- package/es-modules/masters/modules/venn.src.js +1 -1
- package/es-modules/masters/modules/windbarb.src.js +1 -1
- package/es-modules/masters/modules/wordcloud.src.js +1 -1
- package/es-modules/masters/modules/xrange.src.js +1 -1
- package/es-modules/masters/standalone-navigator.src.js +1 -1
- package/es-modules/masters/themes/adaptive.src.js +1 -1
- package/es-modules/masters/themes/avocado.src.js +1 -1
- package/es-modules/masters/themes/dark-unica.src.js +1 -1
- package/es-modules/masters/themes/grid-light.src.js +1 -1
- package/es-modules/masters/themes/high-contrast.src.js +1 -1
- package/es-modules/masters/themes/sand-signika.src.js +1 -1
- package/es-modules/masters/themes/sunset.src.js +1 -1
- package/es-modules/tsconfig.tsbuildinfo +1 -1
- package/esm/highcharts-3d.js +2 -2
- package/esm/highcharts-3d.src.js +78 -55
- package/esm/highcharts-autoload.js +2 -2
- package/esm/highcharts-autoload.src.js +22 -8
- package/esm/highcharts-gantt.js +2 -2
- package/esm/highcharts-gantt.src.js +1 -24
- package/esm/highcharts-more.js +2 -2
- package/esm/highcharts-more.src.js +1198 -981
- package/esm/highcharts.js +5 -5
- package/esm/highcharts.src.js +702 -515
- package/esm/highmaps.js +2 -2
- package/esm/highmaps.src.js +1 -24
- package/esm/highstock.js +2 -2
- package/esm/highstock.src.js +1 -24
- package/esm/i18n/fr-FR.js +2 -2
- package/esm/i18n/fr-FR.src.js +22 -8
- package/esm/i18n/nb-NO.js +2 -2
- package/esm/i18n/nb-NO.src.js +22 -8
- package/esm/i18n/zh-CN.js +2 -2
- package/esm/i18n/zh-CN.src.js +22 -8
- package/esm/indicators/acceleration-bands.js +2 -2
- package/esm/indicators/acceleration-bands.src.js +22 -8
- package/esm/indicators/accumulation-distribution.js +2 -2
- package/esm/indicators/accumulation-distribution.src.js +22 -8
- package/esm/indicators/ao.js +2 -2
- package/esm/indicators/ao.src.js +22 -8
- package/esm/indicators/apo.js +2 -2
- package/esm/indicators/apo.src.js +22 -8
- package/esm/indicators/aroon-oscillator.js +2 -2
- package/esm/indicators/aroon-oscillator.src.js +22 -8
- package/esm/indicators/aroon.js +2 -2
- package/esm/indicators/aroon.src.js +24 -10
- package/esm/indicators/atr.js +2 -2
- package/esm/indicators/atr.src.js +22 -8
- package/esm/indicators/bollinger-bands.js +2 -2
- package/esm/indicators/bollinger-bands.src.js +22 -8
- package/esm/indicators/cci.js +2 -2
- package/esm/indicators/cci.src.js +22 -8
- package/esm/indicators/chaikin.js +2 -2
- package/esm/indicators/chaikin.src.js +22 -8
- package/esm/indicators/cmf.js +2 -2
- package/esm/indicators/cmf.src.js +22 -8
- package/esm/indicators/cmo.js +2 -2
- package/esm/indicators/cmo.src.js +22 -8
- package/esm/indicators/dema.js +2 -2
- package/esm/indicators/dema.src.js +22 -8
- package/esm/indicators/disparity-index.js +2 -2
- package/esm/indicators/disparity-index.src.js +22 -8
- package/esm/indicators/dmi.js +2 -2
- package/esm/indicators/dmi.src.js +22 -8
- package/esm/indicators/dpo.js +2 -2
- package/esm/indicators/dpo.src.js +25 -10
- package/esm/indicators/ichimoku-kinko-hyo.js +2 -2
- package/esm/indicators/ichimoku-kinko-hyo.src.js +22 -8
- package/esm/indicators/indicators-all.js +2 -2
- package/esm/indicators/indicators-all.src.js +31 -17
- package/esm/indicators/indicators.js +2 -2
- package/esm/indicators/indicators.src.js +24 -10
- package/esm/indicators/keltner-channels.js +2 -2
- package/esm/indicators/keltner-channels.src.js +22 -8
- package/esm/indicators/klinger.js +2 -2
- package/esm/indicators/klinger.src.js +22 -8
- package/esm/indicators/macd.js +2 -2
- package/esm/indicators/macd.src.js +22 -8
- package/esm/indicators/mfi.js +2 -2
- package/esm/indicators/mfi.src.js +22 -8
- package/esm/indicators/momentum.js +2 -2
- package/esm/indicators/momentum.src.js +22 -8
- package/esm/indicators/natr.js +2 -2
- package/esm/indicators/natr.src.js +22 -8
- package/esm/indicators/obv.js +2 -2
- package/esm/indicators/obv.src.js +22 -8
- package/esm/indicators/pivot-points.js +2 -2
- package/esm/indicators/pivot-points.src.js +22 -8
- package/esm/indicators/ppo.js +2 -2
- package/esm/indicators/ppo.src.js +22 -8
- package/esm/indicators/price-channel.js +2 -2
- package/esm/indicators/price-channel.src.js +22 -8
- package/esm/indicators/price-envelopes.js +2 -2
- package/esm/indicators/price-envelopes.src.js +22 -8
- package/esm/indicators/psar.js +2 -2
- package/esm/indicators/psar.src.js +22 -8
- package/esm/indicators/regressions.js +2 -2
- package/esm/indicators/regressions.src.js +22 -8
- package/esm/indicators/roc.js +2 -2
- package/esm/indicators/roc.src.js +22 -8
- package/esm/indicators/rsi.js +2 -2
- package/esm/indicators/rsi.src.js +23 -9
- package/esm/indicators/slow-stochastic.js +2 -2
- package/esm/indicators/slow-stochastic.src.js +22 -8
- package/esm/indicators/stochastic.js +2 -2
- package/esm/indicators/stochastic.src.js +22 -8
- package/esm/indicators/supertrend.js +2 -2
- package/esm/indicators/supertrend.src.js +22 -8
- package/esm/indicators/tema.js +2 -2
- package/esm/indicators/tema.src.js +22 -8
- package/esm/indicators/trendline.js +2 -2
- package/esm/indicators/trendline.src.js +22 -8
- package/esm/indicators/trix.js +2 -2
- package/esm/indicators/trix.src.js +22 -8
- package/esm/indicators/volume-by-price.js +2 -2
- package/esm/indicators/volume-by-price.src.js +23 -10
- package/esm/indicators/vwap.js +2 -2
- package/esm/indicators/vwap.src.js +22 -8
- package/esm/indicators/williams-r.js +2 -2
- package/esm/indicators/williams-r.src.js +22 -8
- package/esm/indicators/wma.js +2 -2
- package/esm/indicators/wma.src.js +22 -8
- package/esm/indicators/zigzag.js +2 -2
- package/esm/indicators/zigzag.src.js +22 -8
- package/esm/modules/accessibility.js +2 -2
- package/esm/modules/accessibility.src.js +564 -92
- package/esm/modules/annotations-advanced.js +11 -11
- package/esm/modules/annotations-advanced.src.js +224 -162
- package/esm/modules/annotations.js +11 -11
- package/esm/modules/annotations.src.js +184 -144
- package/esm/modules/arc-diagram.js +2 -2
- package/esm/modules/arc-diagram.src.js +37 -22
- package/esm/modules/arrow-symbols.js +3 -3
- package/esm/modules/arrow-symbols.src.js +22 -8
- package/esm/modules/boost-canvas.js +2 -2
- package/esm/modules/boost-canvas.src.js +60 -30
- package/esm/modules/boost.js +2 -2
- package/esm/modules/boost.src.js +72 -29
- package/esm/modules/broken-axis.js +2 -2
- package/esm/modules/broken-axis.src.js +27 -12
- package/esm/modules/bullet.js +2 -2
- package/esm/modules/bullet.src.js +38 -17
- package/esm/modules/coloraxis.js +2 -2
- package/esm/modules/coloraxis.src.js +47 -21
- package/esm/modules/contour.js +3 -3
- package/esm/modules/contour.src.js +46 -13
- package/esm/modules/current-date-indicator.js +2 -2
- package/esm/modules/current-date-indicator.src.js +22 -8
- package/esm/modules/cylinder.js +2 -2
- package/esm/modules/cylinder.src.js +46 -28
- package/esm/modules/data-sorting.js +2 -2
- package/esm/modules/data-sorting.src.js +22 -8
- package/esm/modules/data-tools.js +2 -2
- package/esm/modules/data-tools.src.js +44 -13
- package/esm/modules/data.js +4 -4
- package/esm/modules/data.src.js +23 -9
- package/esm/modules/datagrouping.js +2 -2
- package/esm/modules/datagrouping.src.js +28 -13
- package/esm/modules/debugger.js +2 -2
- package/esm/modules/debugger.src.js +22 -8
- package/esm/modules/dependency-wheel.js +2 -2
- package/esm/modules/dependency-wheel.src.js +428 -17
- package/esm/modules/dotplot.js +2 -2
- package/esm/modules/dotplot.src.js +27 -11
- package/esm/modules/drag-panes.js +2 -2
- package/esm/modules/drag-panes.src.js +22 -8
- package/esm/modules/draggable-points.js +2 -2
- package/esm/modules/draggable-points.src.js +24 -12
- package/esm/modules/drilldown.js +2 -2
- package/esm/modules/drilldown.src.js +38 -25
- package/esm/modules/dumbbell.js +2 -2
- package/esm/modules/dumbbell.src.js +72 -27
- package/esm/modules/export-data.js +2 -2
- package/esm/modules/export-data.src.js +42 -23
- package/esm/modules/exporting.js +2 -2
- package/esm/modules/exporting.src.js +83 -37
- package/esm/modules/flowmap.js +3 -2
- package/esm/modules/flowmap.src.js +43 -18
- package/esm/modules/full-screen.js +2 -2
- package/esm/modules/full-screen.src.js +22 -8
- package/esm/modules/funnel.js +2 -2
- package/esm/modules/funnel.src.js +73 -42
- package/esm/modules/funnel3d.js +2 -2
- package/esm/modules/funnel3d.src.js +35 -20
- package/esm/modules/gantt.js +2 -2
- package/esm/modules/gantt.src.js +542 -100
- package/esm/modules/geoheatmap.js +2 -2
- package/esm/modules/geoheatmap.src.js +35 -21
- package/esm/modules/grid-axis.js +2 -2
- package/esm/modules/grid-axis.src.js +33 -12
- package/esm/modules/heatmap.js +2 -2
- package/esm/modules/heatmap.src.js +50 -33
- package/esm/modules/heikinashi.js +2 -2
- package/esm/modules/heikinashi.src.js +22 -8
- package/esm/modules/histogram-bellcurve.js +2 -2
- package/esm/modules/histogram-bellcurve.src.js +56 -25
- package/esm/modules/hollowcandlestick.js +2 -2
- package/esm/modules/hollowcandlestick.src.js +31 -17
- package/esm/modules/item-series.js +2 -2
- package/esm/modules/item-series.src.js +72 -13
- package/esm/modules/lollipop.js +2 -2
- package/esm/modules/lollipop.src.js +22 -8
- package/esm/modules/map.js +2 -2
- package/esm/modules/map.src.js +148 -91
- package/esm/modules/marker-clusters.js +2 -2
- package/esm/modules/marker-clusters.src.js +25 -13
- package/esm/modules/mouse-wheel-zoom.js +2 -2
- package/esm/modules/mouse-wheel-zoom.src.js +54 -13
- package/esm/modules/navigator.js +2 -2
- package/esm/modules/navigator.src.js +534 -74
- package/esm/modules/networkgraph.js +2 -2
- package/esm/modules/networkgraph.src.js +87 -46
- package/esm/modules/no-data-to-display.js +2 -2
- package/esm/modules/no-data-to-display.src.js +22 -8
- package/esm/modules/non-cartesian-zoom.js +2 -2
- package/esm/modules/non-cartesian-zoom.src.js +22 -8
- package/esm/modules/offline-exporting.js +2 -2
- package/esm/modules/offline-exporting.src.js +53 -12
- package/esm/modules/organization.js +4 -2
- package/esm/modules/organization.src.js +63 -19
- package/esm/modules/parallel-coordinates.js +2 -2
- package/esm/modules/parallel-coordinates.src.js +26 -9
- package/esm/modules/pareto.js +2 -2
- package/esm/modules/pareto.src.js +31 -16
- package/esm/modules/pathfinder.js +2 -2
- package/esm/modules/pathfinder.src.js +28 -13
- package/esm/modules/pattern-fill.js +2 -2
- package/esm/modules/pattern-fill.src.js +28 -12
- package/esm/modules/pictorial.js +2 -2
- package/esm/modules/pictorial.src.js +36 -19
- package/esm/modules/pointandfigure.js +2 -2
- package/esm/modules/pointandfigure.src.js +26 -11
- package/esm/modules/price-indicator.js +2 -2
- package/esm/modules/price-indicator.src.js +26 -11
- package/esm/modules/pyramid3d.js +2 -2
- package/esm/modules/pyramid3d.src.js +22 -8
- package/esm/modules/renko.js +2 -2
- package/esm/modules/renko.src.js +22 -8
- package/esm/modules/sankey.js +2 -2
- package/esm/modules/sankey.src.js +59 -31
- package/esm/modules/series-label.js +2 -2
- package/esm/modules/series-label.src.js +31 -18
- package/esm/modules/series-on-point.js +2 -2
- package/esm/modules/series-on-point.src.js +23 -9
- package/esm/modules/solid-gauge.js +2 -2
- package/esm/modules/solid-gauge.src.js +40 -20
- package/esm/modules/sonification.js +2 -2
- package/esm/modules/sonification.src.js +45 -30
- package/esm/modules/static-scale.js +2 -2
- package/esm/modules/static-scale.src.js +22 -8
- package/esm/modules/stock-tools.js +3 -3
- package/esm/modules/stock-tools.src.js +73 -27
- package/esm/modules/stock.js +2 -2
- package/esm/modules/stock.src.js +554 -122
- package/esm/modules/streamgraph.js +2 -2
- package/esm/modules/streamgraph.src.js +22 -8
- package/esm/modules/sunburst.js +2 -2
- package/esm/modules/sunburst.src.js +110 -45
- package/esm/modules/textpath.js +2 -2
- package/esm/modules/textpath.src.js +22 -8
- package/esm/modules/tiledwebmap.js +3 -3
- package/esm/modules/tiledwebmap.src.js +44 -19
- package/esm/modules/tilemap.js +2 -2
- package/esm/modules/tilemap.src.js +27 -12
- package/esm/modules/timeline.js +2 -2
- package/esm/modules/timeline.src.js +35 -14
- package/esm/modules/treegraph.js +2 -2
- package/esm/modules/treegraph.src.js +59 -27
- package/esm/modules/treegrid.js +2 -2
- package/esm/modules/treegrid.src.js +58 -27
- package/esm/modules/treemap.js +2 -2
- package/esm/modules/treemap.src.js +89 -36
- package/esm/modules/variable-pie.js +2 -2
- package/esm/modules/variable-pie.src.js +30 -13
- package/esm/modules/variwide.js +2 -2
- package/esm/modules/variwide.src.js +23 -9
- package/esm/modules/vector.js +2 -2
- package/esm/modules/vector.src.js +28 -16
- package/esm/modules/venn.js +2 -2
- package/esm/modules/venn.src.js +28 -13
- package/esm/modules/windbarb.js +2 -2
- package/esm/modules/windbarb.src.js +29 -17
- package/esm/modules/wordcloud.js +2 -2
- package/esm/modules/wordcloud.src.js +25 -9
- package/esm/modules/xrange.js +2 -2
- package/esm/modules/xrange.src.js +29 -15
- package/esm/standalone-navigator.js +5 -5
- package/esm/standalone-navigator.src.js +808 -570
- package/esm/themes/adaptive.js +3 -3
- package/esm/themes/adaptive.src.js +22 -8
- package/esm/themes/avocado.js +2 -2
- package/esm/themes/avocado.src.js +22 -8
- package/esm/themes/dark-unica.js +2 -2
- package/esm/themes/dark-unica.src.js +22 -8
- package/esm/themes/grid-light.js +2 -2
- package/esm/themes/grid-light.src.js +22 -8
- package/esm/themes/high-contrast.js +2 -2
- package/esm/themes/high-contrast.src.js +22 -8
- package/esm/themes/sand-signika.js +2 -2
- package/esm/themes/sand-signika.src.js +22 -8
- package/esm/themes/sunset.js +2 -2
- package/esm/themes/sunset.src.js +22 -8
- package/highcharts-3d.js +2 -2
- package/highcharts-3d.src.js +116 -92
- package/highcharts-autoload.d.ts +15 -5
- package/highcharts-autoload.js +4 -4
- package/highcharts-autoload.src.d.ts +15 -5
- package/highcharts-autoload.src.js +724 -499
- package/highcharts-gantt.js +4 -4
- package/highcharts-gantt.src.js +851 -590
- package/highcharts-more.d.ts +7 -3
- package/highcharts-more.js +2 -2
- package/highcharts-more.src.d.ts +7 -3
- package/highcharts-more.src.js +1313 -1095
- package/highcharts.d.ts +34795 -25647
- package/highcharts.js +4 -4
- package/highcharts.src.d.ts +34795 -25647
- package/highcharts.src.js +723 -498
- package/highmaps.js +4 -4
- package/highmaps.src.js +863 -583
- package/highstock.js +4 -4
- package/highstock.src.js +899 -619
- package/i18n/fr-FR.js +2 -2
- package/i18n/fr-FR.src.js +32 -16
- package/i18n/nb-NO.js +2 -2
- package/i18n/nb-NO.src.js +32 -16
- package/i18n/zh-CN.js +2 -2
- package/i18n/zh-CN.src.js +32 -16
- package/indicators/acceleration-bands.js +2 -2
- package/indicators/acceleration-bands.src.js +31 -16
- package/indicators/accumulation-distribution.js +2 -2
- package/indicators/accumulation-distribution.src.js +31 -16
- package/indicators/ao.js +2 -2
- package/indicators/ao.src.js +31 -16
- package/indicators/apo.js +2 -2
- package/indicators/apo.src.js +31 -16
- package/indicators/aroon-oscillator.js +2 -2
- package/indicators/aroon-oscillator.src.js +31 -16
- package/indicators/aroon.js +2 -2
- package/indicators/aroon.src.js +33 -18
- package/indicators/atr.js +2 -2
- package/indicators/atr.src.js +31 -16
- package/indicators/bollinger-bands.js +2 -2
- package/indicators/bollinger-bands.src.js +31 -16
- package/indicators/cci.js +2 -2
- package/indicators/cci.src.js +31 -16
- package/indicators/chaikin.js +2 -2
- package/indicators/chaikin.src.js +31 -16
- package/indicators/cmf.js +2 -2
- package/indicators/cmf.src.js +31 -16
- package/indicators/cmo.js +2 -2
- package/indicators/cmo.src.js +31 -16
- package/indicators/dema.js +2 -2
- package/indicators/dema.src.js +31 -16
- package/indicators/disparity-index.js +2 -2
- package/indicators/disparity-index.src.js +31 -16
- package/indicators/dmi.js +2 -2
- package/indicators/dmi.src.js +31 -16
- package/indicators/dpo.js +2 -2
- package/indicators/dpo.src.js +34 -18
- package/indicators/ichimoku-kinko-hyo.js +2 -2
- package/indicators/ichimoku-kinko-hyo.src.js +41 -26
- package/indicators/indicators-all.js +2 -2
- package/indicators/indicators-all.src.js +52 -37
- package/indicators/indicators.js +2 -2
- package/indicators/indicators.src.js +39 -24
- package/indicators/keltner-channels.js +2 -2
- package/indicators/keltner-channels.src.js +31 -16
- package/indicators/klinger.js +2 -2
- package/indicators/klinger.src.js +31 -16
- package/indicators/macd.js +2 -2
- package/indicators/macd.src.js +31 -16
- package/indicators/mfi.js +2 -2
- package/indicators/mfi.src.js +31 -16
- package/indicators/momentum.js +2 -2
- package/indicators/momentum.src.js +31 -16
- package/indicators/natr.js +2 -2
- package/indicators/natr.src.js +31 -16
- package/indicators/obv.js +2 -2
- package/indicators/obv.src.js +31 -16
- package/indicators/pivot-points.js +2 -2
- package/indicators/pivot-points.src.js +31 -16
- package/indicators/ppo.js +2 -2
- package/indicators/ppo.src.js +31 -16
- package/indicators/price-channel.js +2 -2
- package/indicators/price-channel.src.js +31 -16
- package/indicators/price-envelopes.js +2 -2
- package/indicators/price-envelopes.src.js +31 -16
- package/indicators/psar.js +2 -2
- package/indicators/psar.src.js +31 -16
- package/indicators/regressions.js +2 -2
- package/indicators/regressions.src.js +31 -16
- package/indicators/roc.js +2 -2
- package/indicators/roc.src.js +31 -16
- package/indicators/rsi.js +2 -2
- package/indicators/rsi.src.js +32 -17
- package/indicators/slow-stochastic.js +2 -2
- package/indicators/slow-stochastic.src.js +31 -16
- package/indicators/stochastic.js +2 -2
- package/indicators/stochastic.src.js +31 -16
- package/indicators/supertrend.js +2 -2
- package/indicators/supertrend.src.js +31 -16
- package/indicators/tema.js +2 -2
- package/indicators/tema.src.js +31 -16
- package/indicators/trendline.js +2 -2
- package/indicators/trendline.src.js +31 -16
- package/indicators/trix.js +2 -2
- package/indicators/trix.src.js +31 -16
- package/indicators/volume-by-price.js +2 -2
- package/indicators/volume-by-price.src.js +32 -18
- package/indicators/vwap.js +2 -2
- package/indicators/vwap.src.js +31 -16
- package/indicators/williams-r.js +2 -2
- package/indicators/williams-r.src.js +31 -16
- package/indicators/wma.js +2 -2
- package/indicators/wma.src.js +31 -16
- package/indicators/zigzag.js +2 -2
- package/indicators/zigzag.src.js +31 -16
- package/modules/accessibility.d.ts +47 -0
- package/modules/accessibility.js +2 -2
- package/modules/accessibility.src.d.ts +47 -0
- package/modules/accessibility.src.js +603 -130
- package/modules/annotations-advanced.js +11 -11
- package/modules/annotations-advanced.src.js +246 -183
- package/modules/annotations.js +11 -11
- package/modules/annotations.src.js +206 -165
- package/modules/arc-diagram.js +2 -2
- package/modules/arc-diagram.src.js +58 -42
- package/modules/arrow-symbols.js +2 -2
- package/modules/arrow-symbols.src.js +28 -13
- package/modules/boost-canvas.js +2 -2
- package/modules/boost-canvas.src.js +69 -38
- package/modules/boost.js +2 -2
- package/modules/boost.src.js +81 -37
- package/modules/broken-axis.js +2 -2
- package/modules/broken-axis.src.js +36 -20
- package/modules/bullet.js +2 -2
- package/modules/bullet.src.js +50 -28
- package/modules/coloraxis.js +2 -2
- package/modules/coloraxis.src.js +65 -38
- package/modules/contour.js +5 -5
- package/modules/contour.src.js +91 -44
- package/modules/current-date-indicator.js +2 -2
- package/modules/current-date-indicator.src.js +28 -13
- package/modules/cylinder.js +2 -2
- package/modules/cylinder.src.js +67 -48
- package/modules/data-sorting.js +2 -2
- package/modules/data-sorting.src.js +28 -13
- package/modules/data-tools.js +2 -2
- package/modules/data-tools.src.js +50 -18
- package/modules/data.js +2 -2
- package/modules/data.src.js +50 -35
- package/modules/datagrouping.js +2 -2
- package/modules/datagrouping.src.js +42 -26
- package/modules/debugger.js +2 -2
- package/modules/debugger.src.js +28 -13
- package/modules/dependency-wheel.d.ts +7 -1
- package/modules/dependency-wheel.js +2 -2
- package/modules/dependency-wheel.src.d.ts +7 -1
- package/modules/dependency-wheel.src.js +440 -28
- package/modules/dotplot.js +2 -2
- package/modules/dotplot.src.js +36 -19
- package/modules/drag-panes.js +2 -2
- package/modules/drag-panes.src.js +28 -13
- package/modules/draggable-points.js +2 -2
- package/modules/draggable-points.src.js +30 -17
- package/modules/drilldown.js +2 -2
- package/modules/drilldown.src.js +49 -35
- package/modules/dumbbell.js +2 -2
- package/modules/dumbbell.src.js +86 -40
- package/modules/export-data.d.ts +66 -1
- package/modules/export-data.js +2 -2
- package/modules/export-data.src.d.ts +66 -1
- package/modules/export-data.src.js +56 -36
- package/modules/exporting.d.ts +0 -103
- package/modules/exporting.js +2 -2
- package/modules/exporting.src.d.ts +0 -103
- package/modules/exporting.src.js +97 -50
- package/modules/flowmap.js +3 -2
- package/modules/flowmap.src.js +52 -26
- package/modules/full-screen.js +2 -2
- package/modules/full-screen.src.js +31 -16
- package/modules/funnel.d.ts +3 -3
- package/modules/funnel.js +2 -2
- package/modules/funnel.src.d.ts +3 -3
- package/modules/funnel.src.js +82 -50
- package/modules/funnel3d.js +2 -2
- package/modules/funnel3d.src.js +56 -40
- package/modules/gantt.d.ts +47 -0
- package/modules/gantt.js +8 -8
- package/modules/gantt.src.d.ts +47 -0
- package/modules/gantt.src.js +602 -156
- package/modules/geoheatmap.d.ts +13 -12
- package/modules/geoheatmap.js +2 -2
- package/modules/geoheatmap.src.d.ts +13 -12
- package/modules/geoheatmap.src.js +44 -29
- package/modules/grid-axis.js +2 -2
- package/modules/grid-axis.src.js +42 -20
- package/modules/heatmap.d.ts +0 -12
- package/modules/heatmap.js +4 -4
- package/modules/heatmap.src.d.ts +0 -12
- package/modules/heatmap.src.js +102 -71
- package/modules/heikinashi.js +2 -2
- package/modules/heikinashi.src.js +31 -16
- package/modules/histogram-bellcurve.js +2 -2
- package/modules/histogram-bellcurve.src.js +70 -38
- package/modules/hollowcandlestick.js +2 -2
- package/modules/hollowcandlestick.src.js +45 -30
- package/modules/item-series.js +2 -2
- package/modules/item-series.src.js +81 -21
- package/modules/lollipop.js +2 -2
- package/modules/lollipop.src.js +36 -21
- package/modules/map.d.ts +0 -20
- package/modules/map.js +4 -4
- package/modules/map.src.d.ts +0 -20
- package/modules/map.src.js +212 -140
- package/modules/marker-clusters.js +2 -2
- package/modules/marker-clusters.src.js +31 -18
- package/modules/mouse-wheel-zoom.js +2 -2
- package/modules/mouse-wheel-zoom.src.js +60 -18
- package/modules/navigator.d.ts +47 -0
- package/modules/navigator.js +2 -2
- package/modules/navigator.src.d.ts +47 -0
- package/modules/navigator.src.js +556 -95
- package/modules/networkgraph.js +2 -2
- package/modules/networkgraph.src.js +99 -57
- package/modules/no-data-to-display.js +2 -2
- package/modules/no-data-to-display.src.js +31 -16
- package/modules/non-cartesian-zoom.js +2 -2
- package/modules/non-cartesian-zoom.src.js +28 -13
- package/modules/offline-exporting.js +2 -2
- package/modules/offline-exporting.src.js +67 -25
- package/modules/organization.js +4 -2
- package/modules/organization.src.js +75 -30
- package/modules/parallel-coordinates.js +2 -2
- package/modules/parallel-coordinates.src.js +37 -19
- package/modules/pareto.js +2 -2
- package/modules/pareto.src.js +45 -29
- package/modules/pathfinder.js +2 -2
- package/modules/pathfinder.src.js +37 -21
- package/modules/pattern-fill.js +2 -2
- package/modules/pattern-fill.src.js +34 -17
- package/modules/pictorial.js +2 -2
- package/modules/pictorial.src.js +62 -43
- package/modules/pointandfigure.js +2 -2
- package/modules/pointandfigure.src.js +35 -19
- package/modules/price-indicator.js +2 -2
- package/modules/price-indicator.src.js +32 -16
- package/modules/pyramid3d.js +2 -2
- package/modules/pyramid3d.src.js +31 -16
- package/modules/renko.js +2 -2
- package/modules/renko.src.js +34 -19
- package/modules/sankey.js +2 -2
- package/modules/sankey.src.js +80 -51
- package/modules/series-label.js +2 -2
- package/modules/series-label.src.js +42 -28
- package/modules/series-on-point.js +2 -2
- package/modules/series-on-point.src.js +40 -25
- package/modules/solid-gauge.d.ts +3 -3
- package/modules/solid-gauge.js +2 -2
- package/modules/solid-gauge.src.d.ts +3 -3
- package/modules/solid-gauge.src.js +54 -33
- package/modules/sonification.js +2 -2
- package/modules/sonification.src.js +56 -40
- package/modules/static-scale.js +2 -2
- package/modules/static-scale.src.js +28 -13
- package/modules/stock-tools.js +3 -3
- package/modules/stock-tools.src.js +90 -43
- package/modules/stock.d.ts +47 -0
- package/modules/stock.js +6 -6
- package/modules/stock.src.d.ts +47 -0
- package/modules/stock.src.js +650 -185
- package/modules/streamgraph.js +2 -2
- package/modules/streamgraph.src.js +31 -16
- package/modules/sunburst.js +2 -2
- package/modules/sunburst.src.js +137 -71
- package/modules/textpath.js +2 -2
- package/modules/textpath.src.js +28 -13
- package/modules/tiledwebmap.js +3 -3
- package/modules/tiledwebmap.src.js +65 -32
- package/modules/tilemap.js +2 -2
- package/modules/tilemap.src.js +41 -25
- package/modules/timeline.js +2 -2
- package/modules/timeline.src.js +47 -25
- package/modules/treegraph.js +2 -2
- package/modules/treegraph.src.js +83 -50
- package/modules/treegrid.js +2 -2
- package/modules/treegrid.src.js +76 -44
- package/modules/treemap.js +2 -2
- package/modules/treemap.src.js +116 -62
- package/modules/variable-pie.js +2 -2
- package/modules/variable-pie.src.js +39 -21
- package/modules/variwide.js +2 -2
- package/modules/variwide.src.js +32 -17
- package/modules/vector.js +2 -2
- package/modules/vector.src.js +37 -24
- package/modules/venn.js +2 -2
- package/modules/venn.src.js +42 -26
- package/modules/windbarb.js +2 -2
- package/modules/windbarb.src.js +51 -38
- package/modules/wordcloud.js +2 -2
- package/modules/wordcloud.src.js +34 -17
- package/modules/xrange.js +2 -2
- package/modules/xrange.src.js +43 -28
- package/options/abands.d.ts +722 -83
- package/options/abands.src.d.ts +722 -83
- package/options/ad.d.ts +381 -26
- package/options/ad.src.d.ts +381 -26
- package/options/ao.d.ts +744 -70
- package/options/ao.src.d.ts +744 -70
- package/options/apo.d.ts +381 -26
- package/options/apo.src.d.ts +381 -26
- package/options/arcdiagram.d.ts +80 -534
- package/options/arcdiagram.src.d.ts +80 -534
- package/options/area.d.ts +432 -129
- package/options/area.src.d.ts +432 -129
- package/options/arearange.d.ts +46 -4
- package/options/arearange.src.d.ts +46 -4
- package/options/areaspline.d.ts +141 -866
- package/options/areaspline.src.d.ts +141 -866
- package/options/areasplinerange.d.ts +221 -871
- package/options/areasplinerange.src.d.ts +221 -871
- package/options/aroon.d.ts +432 -124
- package/options/aroon.src.d.ts +432 -124
- package/options/aroonoscillator.d.ts +127 -689
- package/options/aroonoscillator.src.d.ts +127 -689
- package/options/atr.d.ts +381 -71
- package/options/atr.src.d.ts +381 -71
- package/options/bar.d.ts +103 -12
- package/options/bar.src.d.ts +103 -12
- package/options/bb.d.ts +87 -762
- package/options/bb.src.d.ts +87 -762
- package/options/bellcurve.d.ts +87 -364
- package/options/bellcurve.src.d.ts +87 -364
- package/options/boxplot.d.ts +82 -13
- package/options/boxplot.src.d.ts +82 -13
- package/options/bubble.d.ts +83 -874
- package/options/bubble.src.d.ts +83 -874
- package/options/bullet.d.ts +354 -717
- package/options/bullet.src.d.ts +354 -717
- package/options/candlestick.d.ts +99 -1214
- package/options/candlestick.src.d.ts +99 -1214
- package/options/cci.d.ts +381 -26
- package/options/cci.src.d.ts +381 -26
- package/options/chaikin.d.ts +728 -83
- package/options/chaikin.src.d.ts +728 -83
- package/options/cmf.d.ts +381 -26
- package/options/cmf.src.d.ts +381 -26
- package/options/cmo.d.ts +730 -79
- package/options/cmo.src.d.ts +730 -79
- package/options/column.d.ts +1265 -99
- package/options/column.src.d.ts +1265 -99
- package/options/columnpyramid.d.ts +102 -1158
- package/options/columnpyramid.src.d.ts +102 -1158
- package/options/columnrange.d.ts +952 -95
- package/options/columnrange.src.d.ts +952 -95
- package/options/contour.d.ts +31 -443
- package/options/contour.src.d.ts +31 -443
- package/options/cylinder.d.ts +100 -12
- package/options/cylinder.src.d.ts +100 -12
- package/options/dema.d.ts +80 -736
- package/options/dema.src.d.ts +80 -736
- package/options/dependencywheel.d.ts +599 -218
- package/options/dependencywheel.src.d.ts +599 -218
- package/options/disparityindex.d.ts +84 -365
- package/options/disparityindex.src.d.ts +84 -365
- package/options/dmi.d.ts +86 -775
- package/options/dmi.src.d.ts +86 -775
- package/options/dpo.d.ts +83 -365
- package/options/dpo.src.d.ts +83 -365
- package/options/dumbbell.d.ts +27 -4
- package/options/dumbbell.src.d.ts +27 -4
- package/options/ema.d.ts +81 -703
- package/options/ema.src.d.ts +81 -703
- package/options/errorbar.d.ts +91 -1161
- package/options/errorbar.src.d.ts +91 -1161
- package/options/flags.d.ts +98 -1192
- package/options/flags.src.d.ts +98 -1192
- package/options/flowmap.d.ts +48 -373
- package/options/flowmap.src.d.ts +48 -373
- package/options/funnel.d.ts +40 -3
- package/options/funnel.src.d.ts +40 -3
- package/options/gantt.d.ts +37 -40
- package/options/gantt.src.d.ts +37 -40
- package/options/gauge.d.ts +398 -472
- package/options/gauge.src.d.ts +398 -472
- package/options/geoheatmap.d.ts +462 -63
- package/options/geoheatmap.src.d.ts +462 -63
- package/options/heatmap.d.ts +31 -380
- package/options/heatmap.src.d.ts +31 -380
- package/options/heikinashi.d.ts +20 -2
- package/options/heikinashi.src.d.ts +20 -2
- package/options/hlc.d.ts +20 -2
- package/options/hlc.src.d.ts +20 -2
- package/options/ikh.d.ts +750 -103
- package/options/ikh.src.d.ts +750 -103
- package/options/item.d.ts +34 -74
- package/options/item.src.d.ts +34 -74
- package/options/keltnerchannels.d.ts +87 -708
- package/options/keltnerchannels.src.d.ts +87 -708
- package/options/klinger.d.ts +34 -365
- package/options/klinger.src.d.ts +34 -365
- package/options/line.d.ts +151 -851
- package/options/line.src.d.ts +151 -851
- package/options/linearregression.d.ts +960 -85
- package/options/linearregression.src.d.ts +960 -85
- package/options/linearregressionangle.d.ts +96 -699
- package/options/linearregressionangle.src.d.ts +96 -699
- package/options/linearregressionintercept.d.ts +381 -26
- package/options/linearregressionintercept.src.d.ts +381 -26
- package/options/linearregressionslope.d.ts +381 -26
- package/options/linearregressionslope.src.d.ts +381 -26
- package/options/lollipop.d.ts +214 -851
- package/options/lollipop.src.d.ts +214 -851
- package/options/macd.d.ts +386 -83
- package/options/macd.src.d.ts +386 -83
- package/options/map.d.ts +470 -36
- package/options/map.src.d.ts +470 -36
- package/options/mapbubble.d.ts +43 -532
- package/options/mapbubble.src.d.ts +43 -532
- package/options/mapline.d.ts +135 -58
- package/options/mapline.src.d.ts +135 -58
- package/options/mappoint.d.ts +205 -283
- package/options/mappoint.src.d.ts +205 -283
- package/options/mfi.d.ts +772 -82
- package/options/mfi.src.d.ts +772 -82
- package/options/momentum.d.ts +381 -71
- package/options/momentum.src.d.ts +381 -71
- package/options/natr.d.ts +776 -75
- package/options/natr.src.d.ts +776 -75
- package/options/networkgraph.d.ts +184 -207
- package/options/networkgraph.src.d.ts +184 -207
- package/options/obv.d.ts +426 -26
- package/options/obv.src.d.ts +426 -26
- package/options/ohlc.d.ts +77 -14
- package/options/ohlc.src.d.ts +77 -14
- package/options/packedbubble.d.ts +76 -696
- package/options/packedbubble.src.d.ts +76 -696
- package/options/pareto.d.ts +28 -364
- package/options/pareto.src.d.ts +28 -364
- package/options/pc.d.ts +724 -85
- package/options/pc.src.d.ts +724 -85
- package/options/pictorial.d.ts +1093 -58
- package/options/pictorial.src.d.ts +1093 -58
- package/options/pie.d.ts +595 -129
- package/options/pie.src.d.ts +595 -129
- package/options/pivotpoints.d.ts +34 -365
- package/options/pivotpoints.src.d.ts +34 -365
- package/options/pointandfigure.d.ts +10 -50
- package/options/pointandfigure.src.d.ts +10 -50
- package/options/polygon.d.ts +803 -74
- package/options/polygon.src.d.ts +803 -74
- package/options/ppo.d.ts +34 -365
- package/options/ppo.src.d.ts +34 -365
- package/options/priceenvelopes.d.ts +93 -719
- package/options/priceenvelopes.src.d.ts +93 -719
- package/options/psar.d.ts +34 -365
- package/options/psar.src.d.ts +34 -365
- package/options/pyramid.d.ts +35 -3
- package/options/pyramid.src.d.ts +35 -3
- package/options/renko.d.ts +25 -2
- package/options/renko.src.d.ts +25 -2
- package/options/roc.d.ts +78 -712
- package/options/roc.src.d.ts +78 -712
- package/options/rsi.d.ts +34 -365
- package/options/rsi.src.d.ts +34 -365
- package/options/sankey.d.ts +27 -5
- package/options/sankey.src.d.ts +27 -5
- package/options/scatter.d.ts +896 -290
- package/options/scatter.src.d.ts +896 -290
- package/options/series.d.ts +938 -83
- package/options/series.src.d.ts +938 -83
- package/options/slowstochastic.d.ts +381 -26
- package/options/slowstochastic.src.d.ts +381 -26
- package/options/sma.d.ts +729 -79
- package/options/sma.src.d.ts +729 -79
- package/options/solidgauge.d.ts +882 -105
- package/options/solidgauge.src.d.ts +882 -105
- package/options/spline.d.ts +389 -90
- package/options/spline.src.d.ts +389 -90
- package/options/stochastic.d.ts +83 -716
- package/options/stochastic.src.d.ts +83 -716
- package/options/streamgraph.d.ts +97 -364
- package/options/streamgraph.src.d.ts +97 -364
- package/options/sunburst.d.ts +87 -19
- package/options/sunburst.src.d.ts +87 -19
- package/options/supertrend.d.ts +77 -749
- package/options/supertrend.src.d.ts +77 -749
- package/options/tema.d.ts +83 -365
- package/options/tema.src.d.ts +83 -365
- package/options/tiledwebmap.d.ts +13 -72
- package/options/tiledwebmap.src.d.ts +13 -72
- package/options/tilemap.d.ts +372 -533
- package/options/tilemap.src.d.ts +372 -533
- package/options/timeline.d.ts +49 -154
- package/options/timeline.src.d.ts +49 -154
- package/options/treegraph.d.ts +174 -696
- package/options/treegraph.src.d.ts +174 -696
- package/options/treemap.d.ts +468 -1079
- package/options/treemap.src.d.ts +468 -1079
- package/options/trendline.d.ts +381 -26
- package/options/trendline.src.d.ts +381 -26
- package/options/trix.d.ts +712 -82
- package/options/trix.src.d.ts +712 -82
- package/options/variablepie.d.ts +130 -587
- package/options/variablepie.src.d.ts +130 -587
- package/options/variwide.d.ts +1123 -94
- package/options/variwide.src.d.ts +1123 -94
- package/options/vbp.d.ts +57 -383
- package/options/vbp.src.d.ts +57 -383
- package/options/vector.d.ts +22 -58
- package/options/vector.src.d.ts +22 -58
- package/options/venn.d.ts +32 -78
- package/options/venn.src.d.ts +32 -78
- package/options/vwap.d.ts +122 -703
- package/options/vwap.src.d.ts +122 -703
- package/options/waterfall.d.ts +139 -1150
- package/options/waterfall.src.d.ts +139 -1150
- package/options/williamsr.d.ts +381 -76
- package/options/williamsr.src.d.ts +381 -76
- package/options/windbarb.d.ts +39 -2
- package/options/windbarb.src.d.ts +39 -2
- package/options/wma.d.ts +78 -704
- package/options/wma.src.d.ts +78 -704
- package/options/wordcloud.d.ts +98 -595
- package/options/wordcloud.src.d.ts +98 -595
- package/options/xrange.d.ts +166 -1056
- package/options/xrange.src.d.ts +166 -1056
- package/options/zigzag.d.ts +34 -410
- package/options/zigzag.src.d.ts +34 -410
- package/package.json +1 -1
- package/standalone-navigator.js +4 -4
- package/standalone-navigator.src.js +829 -553
- package/themes/adaptive.js +2 -2
- package/themes/adaptive.src.js +33 -18
- package/themes/avocado.js +2 -2
- package/themes/avocado.src.js +28 -13
- package/themes/dark-unica.js +2 -2
- package/themes/dark-unica.src.js +28 -13
- package/themes/grid-light.js +2 -2
- package/themes/grid-light.src.js +28 -13
- package/themes/high-contrast.js +2 -2
- package/themes/high-contrast.src.js +28 -13
- package/themes/sand-signika.js +2 -2
- package/themes/sand-signika.src.js +28 -13
- package/themes/sunset.js +2 -2
- package/themes/sunset.src.js +28 -13
- package/css/.stylelintrc.json +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Highcharts JS v13.0.
|
|
2
|
+
* Highcharts JS v13.0.2 (2026-08-27)
|
|
3
3
|
* @module highcharts/modules/annotations
|
|
4
4
|
* @requires highcharts
|
|
5
5
|
*
|
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
*
|
|
11
11
|
* A commercial license may be required depending on use,
|
|
12
12
|
* see www.highcharts.com/license
|
|
13
|
-
*/import*as t from"../highcharts.js";var e,i,s,o,n,a={};a.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return a.d(e,{a:e}),e},a.d=(t,e)=>{for(var i in e)a.o(e,i)&&!a.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let r=t.default;var h=a.n(r);function l(t,e){let i=this.initAnnotation(t);return this.options.annotations.push(i.options),(0,r.pick)(e,!0)&&(i.redraw(),i.graphic.attr({opacity:1})),i}function c(){let t=this;t.plotBoxClip=this.renderer.clipRect(this.plotBox),t.controlPointsGroup=t.renderer.g("control-points").attr({zIndex:99}).clip(t.plotBoxClip).add(),t.options.annotations.forEach((e,i)=>{if(!t.annotations.some(t=>t.options===e)){let s=t.initAnnotation(e);t.options.annotations[i]=s.options}}),t.drawAnnotations(),(0,r.addEvent)(t,"redraw",t.drawAnnotations),(0,r.addEvent)(t,"destroy",function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}),(0,r.addEvent)(t,"exportData",function(e){let i=t.annotations,s=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,o=!e.dataRows[1].xValues,n=t.options.lang&&t.options.lang.exportData&&t.options.lang.exportData.annotationHeader,a=e.dataRows[0].length,r=t.options.exporting?.csv?.annotations?.itemDelimiter,h=t.options.exporting?.csv?.annotations?.join;i.forEach(t=>{t.options.labelOptions?.includeInDataExport&&t.labels.forEach(t=>{if(t.options.text){let i=t.options.text;t.points.forEach(t=>{let s=t.x,o=t.series.xAxis?t.series.xAxis.index:-1,n=!1;if(-1===o){let t=e.dataRows[0].length,a=Array(t);for(let e=0;e<t;++e)a[e]="";a.push(i),a.xValues=[],a.xValues[o]=s,e.dataRows.push(a),n=!0}if(n||e.dataRows.forEach(t=>{!n&&t.xValues&&void 0!==o&&s===t.xValues[o]&&(h&&t.length>a?t[t.length-1]+=r+i:t.push(i),n=!0)}),!n){let t=e.dataRows[0].length,n=Array(t);for(let e=0;e<t;++e)n[e]="";n[0]=s,n.push(i),n.xValues=[],void 0!==o&&(n.xValues[o]=s),e.dataRows.push(n)}})}})});let l=0;e.dataRows.forEach(t=>{l=Math.max(l,t.length)});let c=l-e.dataRows[0].length;for(let t=0;t<c;t++){let i=function(t){let e;return s&&!1!==(e=s(t))?e:(e=n+" "+t,o)?{columnTitle:e,topLevelColumnTitle:e}:e}(t+1);o?(e.dataRows[0].push(i.topLevelColumnTitle),e.dataRows[1].push(i.columnTitle)):e.dataRows[0].push(i)}})}function p(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach(t=>{t.redraw(),t.graphic.animate({opacity:1},t.animationConfig)})}function d(t){let e=this.annotations,i="annotations"===t.coll?t:(0,r.find)(e,function(e){return e.options.id===t});i&&((0,r.fireEvent)(i,"remove"),(0,r.erase)(this.options.annotations,i.options),(0,r.erase)(e,i),i.destroy())}function u(){let t=this.options.annotations,e=this.userOptions.annotations;this.annotations=[],(0,r.isArray)(this.options.annotations)||(this.options.annotations=[]),(0,r.isObject)(e,!0)&&(0,r.isObject)(t,!0)&&this.options.annotations.push(t)}function g(t){this.chart.hasDraggedAnnotation||t.apply(this,Array.prototype.slice.call(arguments,1))}(i||(i={})).compose=function(t,e,i){let s=e.prototype;if(!s.addAnnotation){let o=i.prototype;(0,r.addEvent)(e,"afterInit",u),s.addAnnotation=l,s.callbacks.push(c),s.collectionsWithInit.annotations=[l],s.collectionsWithUpdate.push("annotations"),s.drawAnnotations=p,s.removeAnnotation=d,s.initAnnotation=function(e){let i=new(t.types[e.type]||t)(this,e);return this.annotations.push(i),i},(0,r.wrap)(o,"onContainerMouseDown",g)}};let m=i,f={visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"var(--highcharts-neutral-color-100)",borderRadius:3,borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return(0,r.defined)(this.y)?""+this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"0.7em",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{events:{},style:{cursor:"pointer",fill:"var(--highcharts-background-color)",stroke:"var(--highcharts-neutral-color-100)","stroke-width":2},height:10,symbol:"circle",visible:!1,width:10},events:{},typeOptions:{},types:{},zIndex:6},{doc:v,isTouchDevice:y}=h(),x=class{addEvents(){let t=this,e=function(e){(0,r.addEvent)(e,y?"touchstart":"mousedown",e=>{t.onMouseDown(e)},{passive:!1})};if(e(this.graphic.element),(t.labels||[]).forEach(t=>{t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&e(t.graphic.text.element)}),(0,r.objectEach)(t.options.events,(e,i)=>{let s=function(s){"click"===i&&t.cancelClick||e.call(t,t.chart.pointer?.normalize(s),t.target,t)};-1===(t.nonDOMEvents||[]).indexOf(i)?((0,r.addEvent)(t.graphic.element,i,s,{passive:!1}),t.graphic.div&&(0,r.addEvent)(t.graphic.div,i,s,{passive:!1})):(0,r.addEvent)(t,i,s,{passive:!1})}),t.options.draggable&&((0,r.addEvent)(t,"drag",t.onDrag),!t.graphic.renderer.styledMode)){let e={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[t.options.draggable]};t.graphic.css(e),(t.labels||[]).forEach(t=>{t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&t.graphic.text.css(e)})}t.isUpdating||(0,r.fireEvent)(t,"add")}destroy(){this.removeDocEvents(),(0,r.removeEvent)(this),this.hcEvents=null}mouseMoveToRadians(t,e,i){let s=t.prevChartY-i,o=t.prevChartX-e,n=t.chartY-i,a=t.chartX-e,r;return this.chart.inverted&&(r=o,o=s,s=r,r=a,a=n,n=r),Math.atan2(n,a)-Math.atan2(s,o)}mouseMoveToScale(t,e,i){let s=t.prevChartX-e,o=t.prevChartY-i,n=t.chartX-e,a=t.chartY-i,r=(n||1)/(s||1),h=(a||1)/(o||1);if(this.chart.inverted){let t=h;h=r,r=t}return{x:r,y:h}}mouseMoveToTranslation(t){let e=t.chartX-t.prevChartX,i=t.chartY-t.prevChartY,s;return this.chart.inverted&&(s=i,i=e,e=s),{x:e,y:i}}onDrag(t){if(this.chart.isInsidePlot(t.chartX-this.chart.plotLeft,t.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){let e=this.mouseMoveToTranslation(t);"x"===this.options.draggable&&(e.y=0),"y"===this.options.draggable&&(e.x=0),this.points.length?this.translate(e.x,e.y):(this.shapes.forEach(t=>t.translate(e.x,e.y)),this.labels.forEach(t=>t.translate(e.x,e.y))),this.redraw(!1)}}onMouseDown(t){if(t.preventDefault&&t.preventDefault(),2===t.button)return;let e=this,i=e.chart.pointer,s=t?.sourceCapabilities?.firesTouchEvents||!1,o=(t=i?.normalize(t)||t).chartX,n=t.chartY;e.cancelClick=!1,e.chart.hasDraggedAnnotation=!0,e.removeDrag=(0,r.addEvent)(v,y||s?"touchmove":"mousemove",function(t){e.hasDragged=!0,(t=i?.normalize(t)||t).prevChartX=o,t.prevChartY=n,(0,r.fireEvent)(e,"drag",t),o=t.chartX,n=t.chartY},y||s?{passive:!1}:void 0),e.removeMouseUp=(0,r.addEvent)(v,y||s?"touchend":"mouseup",function(){let t=(0,r.pick)(e.target&&e.target.annotation,e.target);t&&(t.cancelClick=e.hasDragged),e.cancelClick=e.hasDragged,e.chart.hasDraggedAnnotation=!1,e.hasDragged&&(0,r.fireEvent)((0,r.pick)(t,e),"afterUpdate"),e.hasDragged=!1,e.onMouseUp()},y||s?{passive:!1}:void 0)}onMouseUp(){this.removeDocEvents()}removeDocEvents(){this.removeDrag&&(this.removeDrag=this.removeDrag()),this.removeMouseUp&&(this.removeMouseUp=this.removeMouseUp())}},b=class extends x{constructor(t,e,i,s){super(),this.nonDOMEvents=["drag"],this.chart=t,this.target=e,this.options=i,this.index=(0,r.pick)(i.index,s)}destroy(){super.destroy(),this.graphic&&(this.graphic=this.graphic.destroy()),this.chart=null,this.target=null,this.options=null}redraw(t){this.graphic[t?"animate":"attr"](this.options.positioner.call(this,this.target,this))}render(){let t=this.chart,e=this.options;this.graphic=t.renderer.symbol(e.symbol,0,0,e.width,e.height).add(t.controlPointsGroup).css(e.style),this.setVisibility(e.visible),this.addEvents()}setVisibility(t){this.graphic[t?"show":"hide"](),this.options.visible=t}update(t){let e=this.chart,i=this.target,s=this.index,o=(0,r.merge)(!0,this.options,t);this.destroy(),this.constructor(e,i,o,s),this.render(e.controlPointsGroup),this.redraw()}},A=t.default.SeriesRegistry;var E=a.n(A);let{series:{prototype:k}}=E();class w{static fromPoint(t){return new w(t.series.chart,null,{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis})}static pointToPixels(t,e){let i=t.series,s=i.chart,o=t.plotX||0,n=t.plotY||0,a;return s.inverted&&(t.mock?(o=t.plotY,n=t.plotX):(o=s.plotWidth-(t.plotY||0),n=s.plotHeight-(t.plotX||0))),i&&!e&&(o+=(a=i.getPlotBox()).translateX,n+=a.translateY),{x:o,y:n}}static pointToOptions(t){return{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis}}constructor(t,e,i){this.mock=!0,this.point=this,this.series={visible:!0,chart:t,getPlotBox:k.getPlotBox},this.target=e||null,this.options=i,this.applyOptions(this.getOptions())}applyOptions(t){this.command=t.command,this.setAxis(t,"x"),this.setAxis(t,"y"),this.refresh()}getOptions(){return this.hasDynamicOptions()&&"function"==typeof this.options?this.options(this.target):this.options}hasDynamicOptions(){return"function"==typeof this.options}isInsidePlot(){let t=this.plotX,e=this.plotY,i=this.series.xAxis,s=this.series.yAxis,o={x:t,y:e,isInsidePlot:!0,options:{}};return i&&(o.isInsidePlot=(0,r.defined)(t)&&t>=0&&t<=i.len),s&&(o.isInsidePlot=o.isInsidePlot&&(0,r.defined)(e)&&e>=0&&e<=s.len),(0,r.fireEvent)(this.series.chart,"afterIsInsidePlot",o),o.isInsidePlot}refresh(){let t=this.series,e=t.xAxis,i=t.yAxis,s=this.getOptions();e?(this.x=s.x,this.plotX=e.toPixels(s.x,!0)):(this.x=void 0,this.plotX=s.x),i?(this.y=s.y,this.plotY=i.toPixels(s.y,!0)):(this.y=null,this.plotY=s.y),this.isInside=this.isInsidePlot()}refreshOptions(){let t=this.series,e=t.xAxis,i=t.yAxis;this.x=this.options.x=e?this.options.x=e.toValue(this.plotX,!0):this.plotX,this.y=this.options.y=i?i.toValue(this.plotY,!0):this.plotY}rotate(t,e,i){if(!this.hasDynamicOptions()){let s=Math.cos(i),o=Math.sin(i),n=this.plotX-t,a=this.plotY-e;this.plotX=n*s-a*o+t,this.plotY=n*o+a*s+e,this.refreshOptions()}}scale(t,e,i,s){if(!this.hasDynamicOptions()){let o=this.plotX*i,n=this.plotY*s;this.plotX=(1-i)*t+o,this.plotY=(1-s)*e+n,this.refreshOptions()}}setAxis(t,e){let i=e+"Axis",s=t[i],o=this.series.chart;this.series[i]="object"==typeof s?s:(0,r.defined)(s)?o[i][s]||o.get(s):null}toAnchor(){let t=[this.plotX,this.plotY,0,0];return this.series.chart.inverted&&(t[0]=this.plotY,t[1]=this.plotX),t}translate(t,e,i,s){this.hasDynamicOptions()||(this.plotX+=i,this.plotY+=s,this.refreshOptions())}}!function(t){function e(){let t=this.controlPoints,e=this.options.controlPoints||[];e.forEach((i,s)=>{let o=(0,r.merge)(this.options.controlPointOptions,i);o.index||(o.index=s),e[s]=o,t.push(new b(this.chart,this,o))})}function i(t){let e=t.series.getPlotBox(),i=t.series.chart,s=t.mock?t.toAnchor():i.tooltip&&i.tooltip.getAnchor.call({chart:t.series.chart},t)||[0,0,0,0],o={x:s[0]+(this.options.x||0),y:s[1]+(this.options.y||0),height:s[2]||0,width:s[3]||0};return{relativePosition:o,absolutePosition:(0,r.merge)(o,{x:o.x+(t.mock?e.translateX:i.plotLeft),y:o.y+(t.mock?e.translateY:i.plotTop)})}}function s(){this.controlPoints.forEach(t=>t.destroy()),this.chart=null,this.controlPoints=null,this.points=null,this.options=null,this.annotation&&(this.annotation=null)}function o(){let t=this.options;return t.points||t.point&&(0,r.splat)(t.point)}function n(){let t,e,i=this.getPointsOptions(),s=this.points,o=i?.length||0;for(t=0;t<o;t++){if(!(e=this.point(i[t],s[t]))){s.length=0;return}e.mock&&e.refresh(),s[t]=e}return s}function a(t,e){if(t&&t.series)return t;if(!e||null===e.series){if((0,r.isObject)(t))e=new w(this.chart,this,t);else if((0,r.isString)(t))e=this.chart.get(t)||null;else if("function"==typeof t){let i=t.call(e,this);e=i.series?i:new w(this.chart,this,t)}}return e}function h(t){this.controlPoints.forEach(e=>e.redraw(t))}function l(){this.controlPoints.forEach(t=>t.render())}function c(t,e,i,s,o){if(this.chart.inverted){let t=e;e=i,i=t}this.points.forEach((n,a)=>this.transformPoint(t,e,i,s,o,a),this)}function p(t,e,i,s,o,n){let a=this.points[n];a.mock||(a=this.points[n]=w.fromPoint(a)),a[t](e,i,s,o)}function d(t,e){this.transform("translate",null,null,t,e)}function u(t,e,i){this.transformPoint("translate",null,null,t,e,i)}t.compose=function(t){let g=t.prototype;g.addControlPoints||(0,r.merge)(!0,g,{addControlPoints:e,anchor:i,destroyControlTarget:s,getPointsOptions:o,linkPoints:n,point:a,redrawControlPoints:h,renderControlPoints:l,transform:c,transformPoint:p,translate:d,translatePoint:u})}}(s||(s={}));let C=s;class P{constructor(t,e,i,s){this.annotation=t,this.chart=t.chart,this.collection="label"===s?"labels":"shapes",this.controlPoints=[],this.options=e,this.points=[],this.index=i,this.itemType=s,this.init(t,e,i)}attr(){this.graphic.attr.apply(this.graphic,arguments)}attrsFromOptions(t){let e,i,s=this.constructor.attrsMap,o={},n=this.chart.styledMode;for(e in t)i=s[e],void 0===s[e]||n&&-1!==["fill","stroke","stroke-width"].indexOf(i)||(o[i]=t[e]);return o}destroy(){this.graphic&&(this.graphic=this.graphic.destroy()),this.tracker&&(this.tracker=this.tracker.destroy()),this.destroyControlTarget()}calculateAnnotationSize(t,e,i){let s=i.toPixels(t,!0);return Math.abs(i.toPixels(t+e,!0)-s)}init(t,e,i){this.annotation=t,this.chart=t.chart,this.options=e,this.points=[],this.controlPoints=[],this.index=i,this.linkPoints(),this.addControlPoints()}redraw(t){this.redrawControlPoints(t)}render(t){this.options.className&&this.graphic&&this.graphic.addClass(this.options.className),this.renderControlPoints()}rotate(t,e,i){this.transform("rotate",t,e,i)}scale(t,e,i,s){this.transform("scale",t,e,i,s)}setControlPointsVisibility(t){this.controlPoints.forEach(e=>{e.setVisibility(t)})}shouldBeDrawn(){return!!this.points.length}translateShape(t,e,i){let s=this.annotation.chart,o=this.annotation.userOptions,n=s.annotations.indexOf(this.annotation),a=s.options.annotations[n];this.translatePoint(t,e,0),i&&this.translatePoint(t,e,1),a[this.collection][this.index].point=this.options.point,o[this.collection][this.index].point=this.options.point}update(t){let e=this.annotation,i=(0,r.merge)(!0,this.options,t),s=this.graphic.parentGroup,o=this.constructor;this.destroy();let n=new o(e,i,this.index,this.itemType);(0,r.merge)(!0,this,n),this.render(s),this.redraw()}}C.compose(P);let O=P,{defaultMarkers:M}={defaultMarkers:{arrow:{tagName:"marker",attributes:{id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 0 L 10 5 L 0 10 Z","stroke-width":0}}]},"reverse-arrow":{tagName:"marker",attributes:{id:"reverse-arrow",refY:5,refX:1,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 5 L 10 0 L 10 10 Z","stroke-width":0}}]}}},B=L("marker-end"),N=L("marker-start"),T="rgba(192,192,192,"+(h().svg?1e-4:.002)+")";function L(t){return function(e){this.attr(t,"url(#"+e+")")}}function I(){this.options.defs=(0,r.merge)(M,this.options.defs||{})}function S(t,e){let i={attributes:{id:t}},s={stroke:e.color||"none",fill:e.color||"rgba(0, 0, 0, 0.75)"};i.children=e.children&&e.children.map(function(t){return(0,r.merge)(s,t)});let o=(0,r.merge)(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},e,i),n=this.definition(o);return n.id=t,n}class D extends O{static compose(t,e){let i=e.prototype;i.addMarker||((0,r.addEvent)(t,"afterGetContainer",I),i.addMarker=S)}constructor(t,e,i){super(t,e,i,"shape"),this.type="path"}init(t,e,i){(0,r.defined)(e.yAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.yAxis=e.yAxis)}),(0,r.defined)(e.xAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.xAxis=e.xAxis)}),super.init(t,e,i)}toD(){let t=this.options.d;if(t)return"function"==typeof t?t.call(this):t;let e=this.points,i=e.length,s=[],o=i,n=e[0],a=o&&this.anchor(n).absolutePosition,r=0,h;if(a)for(s.push(["M",a.x,a.y]);++r<i&&o;)h=(n=e[r]).command||"L",a=this.anchor(n).absolutePosition,"M"===h||"L"===h?s.push([h,a.x,a.y]):"Z"===h&&s.push([h]),o=n.series.visible;return o&&this.graphic?this.chart.renderer.crispLine(s,this.graphic.strokeWidth()):null}shouldBeDrawn(){return super.shouldBeDrawn()||!!this.options.d}render(t){let e=this.options,i=this.attrsFromOptions(e);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(i).add(t),this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(t),this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",stroke:T,fill:T,"stroke-width":this.graphic.strokeWidth()+2*e.snap}),super.render(),(0,r.extend)(this.graphic,{markerStartSetter:N,markerEndSetter:B}),this.setMarkers(this)}redraw(t){if(this.graphic){let e=this.toD(),i=t?"animate":"attr";e?(this.graphic[i]({d:e}),this.tracker[i]({d:e})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"})),this.graphic.placed=this.tracker.placed=!!e}super.redraw(t)}setMarkers(t){let e=t.options,i=t.chart,s=i.options.defs,o=e.fill,n=(0,r.defined)(o)&&"none"!==o?o:e.stroke;["markerStart","markerEnd"].forEach(function(o){let a,h,l,c,p=e[o];if(p){for(l in s)if((p===((a=s[l]).attributes&&a.attributes.id)||p===a.id)&&"marker"===a.tagName){h=a;break}h&&(c=t[o]=i.renderer.addMarker((e.id||(0,r.uniqueKey)())+"-"+p,(0,r.merge)(h,{color:n})),t.attr(o,c.getAttribute("id")))}})}}D.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"};class Y extends O{constructor(t,e,i){super(t,e,i,"shape"),this.type="rect",this.translate=super.translateShape}init(t,e,i){let{point:s,xAxis:o,yAxis:n}=e;s&&"string"!=typeof s&&((0,r.defined)(o)&&(s.xAxis=o),(0,r.defined)(n)&&(s.yAxis=n)),super.init(t,e,i)}render(t){let e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9e9,0,0).attr(e).add(t),super.render()}redraw(t){if(this.graphic){let e=this.points[0],i=this.anchor(e).absolutePosition,s=this.options.width||0,o=this.options.height||0;if(i){let n=(0,r.defined)(this.options.xAxis)?this.chart.xAxis[this.options.xAxis]:void 0,a=(0,r.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;n&&(0,r.defined)(e.x)&&(s=this.calculateAnnotationSize(e.x,s,n)),a&&(0,r.defined)(e.y)&&(o=this.calculateAnnotationSize(e.y,o,a)),this.graphic[t?"animate":"attr"]({x:i.x,y:i.y,width:s,height:o})}else this.attr({x:0,y:-9e9});this.graphic.placed=!!i}super.redraw(t)}}Y.attrsMap=(0,r.merge)(D.attrsMap,{width:"width",height:"height"});class X extends O{constructor(t,e,i){super(t,e,i,"shape"),this.type="circle",this.translate=super.translateShape}init(t,e,i){let{point:s,xAxis:o,yAxis:n}=e;s&&"string"!=typeof s&&((0,r.defined)(o)&&(s.xAxis=o),(0,r.defined)(n)&&(s.yAxis=n)),super.init(t,e,i)}redraw(t){if(this.graphic){let e=this.points[0],i=this.anchor(e).absolutePosition,s=this.options.r||0;if(i){let o=(0,r.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;o&&(0,r.defined)(e.y)&&(s=this.calculateAnnotationSize(e.y,s,o)),this.graphic[t?"animate":"attr"]({x:i.x,y:i.y,r:s})}else this.graphic.attr({x:0,y:-9e9});this.graphic.placed=!!i}super.redraw.call(this,t)}render(t){let e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9e9,0).attr(e).add(t),super.render()}setRadius(t){this.options.r=t}}X.attrsMap=(0,r.merge)(D.attrsMap,{r:"r"});class F extends O{constructor(t,e,i){super(t,e,i,"shape"),this.type="ellipse"}init(t,e,i){(0,r.defined)(e.yAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.yAxis=e.yAxis)}),(0,r.defined)(e.xAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.xAxis=e.xAxis)}),super.init(t,e,i)}render(t){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(t),super.render()}translate(t,e){super.translateShape(t,e,!0)}getDistanceFromLine(t,e,i,s){return Math.abs((e.y-t.y)*i-(e.x-t.x)*s+e.x*t.y-e.y*t.x)/Math.sqrt((e.y-t.y)*(e.y-t.y)+(e.x-t.x)*(e.x-t.x))}getAttrs(t,e){let i=t.x,s=t.y,o=e.x,n=e.y,a=(i+o)/2,r=Math.sqrt((i-o)*(i-o)/4+(s-n)*(s-n)/4),h=180*Math.atan((n-s)/(o-i))/Math.PI;return a<i&&(h+=180),{cx:a,cy:(s+n)/2,rx:r,ry:this.getRY(),angle:h}}getRY(){let t=this.getYAxis();return(0,r.defined)(t)?Math.abs(t.toPixels(this.options.ry)-t.toPixels(0)):this.options.ry}getYAxis(){let t=this.options.yAxis;return this.chart.yAxis[t]}getAbsolutePosition(t){return this.anchor(t).absolutePosition}redraw(t){if(this.graphic){let e=this.getAbsolutePosition(this.points[0]),i=this.getAbsolutePosition(this.points[1]),s=this.getAttrs(e,i);e?this.graphic[t?"animate":"attr"]({cx:s.cx,cy:s.cy,rx:s.rx,ry:s.ry,rotation:s.angle,rotationOriginX:s.cx,rotationOriginY:s.cy}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!e}super.redraw(t)}setYRadius(t){let e=this.annotation.userOptions.shapes;this.options.ry=t,e&&e[0]&&(e[0].ry=t,e[0].ry=t)}}F.attrsMap=(0,r.merge)(D.attrsMap,{ry:"ry"});let U=t.default.Templating;var R=a.n(U);let{format:W}=R();function j(t,e,i,s,o){let n=o&&o.anchorX,a=o&&o.anchorY,h,l,c=i/2;return(0,r.isNumber)(n)&&(0,r.isNumber)(a)&&(h=[["M",n,a]],(l=e-a)<0&&(l=-s-l),l<i&&(c=n<t+i/2?l:i-l),a>e+s?h.push(["L",t+c,e+s]):a<e?h.push(["L",t+c,e]):n<t?h.push(["L",t,e+s/2]):n>t+i&&h.push(["L",t+i,e+s/2])),h||[]}class z extends O{static alignedPosition(t,e){return{x:Math.round((e.x||0)+(t.x||0)+(e.width-(t.width||0))*(0,r.getAlignFactor)(t.align)),y:Math.round((e.y||0)+(t.y||0)+(e.height-(t.height||0))*(0,r.getAlignFactor)(t.verticalAlign))}}static compose(t){t.prototype.symbols.connector=j}static justifiedOptions(t,e,i,s){let o,n=i.align,a=i.verticalAlign,r=e.box?0:e.padding||0,h=e.getBBox(),l={align:n,verticalAlign:a,x:i.x,y:i.y,width:e.width,height:e.height},c=(s.x||0)-t.plotLeft,p=(s.y||0)-t.plotTop;return(o=c+r)<0&&("right"===n?l.align="left":l.x=(l.x||0)-o),(o=c+h.width-r)>t.plotWidth&&("left"===n?l.align="right":l.x=(l.x||0)+t.plotWidth-o),(o=p+r)<0&&("bottom"===a?l.verticalAlign="top":l.y=(l.y||0)-o),(o=p+h.height-r)>t.plotHeight&&("top"===a?l.verticalAlign="bottom":l.y=(l.y||0)+t.plotHeight-o),l}constructor(t,e,i){super(t,e,i,"label")}translatePoint(t,e){super.translatePoint(t,e,0)}translate(t,e){var i,s;let o=this.annotation.chart,n=this.annotation.userOptions,a=o.annotations.indexOf(this.annotation),r=o.options.annotations[a];if(o.inverted){let i=t;t=e,e=i}(i=this.options).x||(i.x=0),(s=this.options).y||(s.y=0),this.options.x+=t,this.options.y+=e,r[this.collection][this.index].x=this.options.x,r[this.collection][this.index].y=this.options.y,n[this.collection][this.index].x=this.options.x,n[this.collection][this.index].y=this.options.y}render(t){let e=this.options,i=this.attrsFromOptions(e),s=e.style,o=this.annotation.chart.options.chart,n=o.plotBackgroundColor||o.backgroundColor;if(this.graphic=this.annotation.chart.renderer.label("",0,-9999,e.shape,void 0,void 0,e.useHTML,void 0,"annotation-label").attr(i).add(t),!this.annotation.chart.styledMode){if(s?.color==="contrast"){let t=!e.shape||z.shapesWithoutBackground.indexOf(e.shape)>-1||"none"===e.backgroundColor?n:e.backgroundColor;s.color=this.annotation.chart.renderer.getContrast("string"==typeof t?t:"string"==typeof n?n:"#ffffff")}this.graphic.css(e.style||{}).shadow(e.shadow)}this.graphic.labelrank=e.labelrank,super.render()}redraw(t){let e=this.options,i=this.text||e.format||e.text,s=this.graphic,o=this.points[0];if(!s)return void this.redraw(t);s.attr({text:i?W(String(i),o,this.annotation.chart):e.formatter.call(o,o)});let n=this.anchor(o),a=this.position(n);a?(s.alignAttr=a,a.anchorX=n.absolutePosition.x,a.anchorY=n.absolutePosition.y,s[t?"animate":"attr"](a)):s.attr({x:0,y:-9999}),s.placed=!!a,super.redraw(t)}anchor(t){let e=super.anchor.apply(this,arguments),i=this.options.x||0,s=this.options.y||0;return e.absolutePosition.x-=i,e.absolutePosition.y-=s,e.relativePosition.x-=i,e.relativePosition.y-=s,e}position(t){let e=this.graphic,i=this.annotation.chart,s=i.tooltip,o=this.points[0],n=this.options,a=t.absolutePosition,h=t.relativePosition,l,c,p,d,u=o.series.visible&&w.prototype.isInsidePlot.call(o);if(e&&u){let{width:t=0,height:g=0}=e;n.distance&&s?l=s.getPosition.call({chart:i,distance:(0,r.pick)(n.distance,16),getPlayingField:s.getPlayingField,pointer:s.pointer},t,g,{plotX:h.x,plotY:h.y,negative:o.negative,ttBelow:o.ttBelow,h:h.height||h.width}):n.positioner?l=n.positioner.call(this,this):(c={x:a.x,y:a.y,width:0,height:0},l=z.alignedPosition((0,r.extend)(n,{width:t,height:g}),c),"justify"===this.options.overflow&&(l=z.alignedPosition(z.justifiedOptions(i,e,n,l),c))),n.crop&&(p=l.x-i.plotLeft,d=l.y-i.plotTop,u=i.isInsidePlot(p,d)&&i.isInsidePlot(p+t,d+g))}return u?l:null}}z.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"},z.shapesWithoutBackground=["connector"];class V extends O{constructor(t,e,i){super(t,e,i,"shape"),this.type="image",this.translate=super.translateShape}render(t){let e=this.attrsFromOptions(this.options),i=this.options;this.graphic=this.annotation.chart.renderer.image(i.src,0,-9e9,i.width,i.height).attr(e).add(t),this.graphic.width=i.width,this.graphic.height=i.height,super.render()}redraw(t){if(this.graphic){let e=this.anchor(this.points[0]),i=z.prototype.position.call(this,e);i?this.graphic[t?"animate":"attr"]({x:i.x,y:i.y}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!i}super.redraw(t)}}V.attrsMap={width:"width",height:"height",zIndex:"zIndex"};let q=t.default.AST;var $=a.n(q);let H=t=>`<?xml version="1.0" encoding="utf-8"?>
|
|
14
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 ${t} ${t}">`,
|
|
15
|
-
<polygon fill="${
|
|
13
|
+
*/import*as t from"../highcharts.js";let e={};e.n=t=>{let i=t&&t.__esModule?()=>t.default:()=>t;return e.d(i,{a:i}),i},e.d=(t,i)=>{if(Array.isArray(i))for(var s=0;s<i.length;){var o=i[s++],n=i[s++];e.o(t,o)?0===n&&s++:0===n?Object.defineProperty(t,o,{enumerable:!0,value:i[s++]}):Object.defineProperty(t,o,{enumerable:!0,get:n})}else for(var o in i)e.o(i,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:i[o]})},e.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let i=t.default;var s,o,n,a,r,h=e.n(i);function l(t,e){let i=this.initAnnotation(t);return this.options.annotations.push(i.options),(e??!0)&&(i.redraw(),i.graphic.attr({opacity:1})),i}function c(){let t=this;t.plotBoxClip=this.renderer.clipRect(this.plotBox),t.controlPointsGroup=t.renderer.g("control-points").attr({zIndex:99}).clip(t.plotBoxClip).add(),t.options.annotations.forEach((e,i)=>{if(!t.annotations.some(t=>t.options===e)){let s=t.initAnnotation(e);t.options.annotations[i]=s.options}}),t.drawAnnotations(),(0,i.addEvent)(t,"redraw",t.drawAnnotations),(0,i.addEvent)(t,"destroy",function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}),(0,i.addEvent)(t,"exportData",function(e){let i=t.annotations,s=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,o=!e.dataRows[1].xValues,n=t.options.lang&&t.options.lang.exportData&&t.options.lang.exportData.annotationHeader,a=e.dataRows[0].length,r=t.options.exporting?.csv?.annotations?.itemDelimiter,h=t.options.exporting?.csv?.annotations?.join;i.forEach(t=>{t.options.labelOptions?.includeInDataExport&&t.labels.forEach(t=>{if(t.options.text){let i=t.options.text;t.points.forEach(t=>{let s=t.x,o=t.series.xAxis?t.series.xAxis.index:-1,n=!1;if(-1===o){let t=e.dataRows[0].length,a=Array(t);for(let e=0;e<t;++e)a[e]="";a.push(i),a.xValues=[],a.xValues[o]=s,e.dataRows.push(a),n=!0}if(n||e.dataRows.forEach(t=>{!n&&t.xValues&&void 0!==o&&s===t.xValues[o]&&(h&&t.length>a?t[t.length-1]+=r+i:t.push(i),n=!0)}),!n){let t=e.dataRows[0].length,n=Array(t);for(let e=0;e<t;++e)n[e]="";n[0]=s,n.push(i),n.xValues=[],void 0!==o&&(n.xValues[o]=s),e.dataRows.push(n)}})}})});let l=0;e.dataRows.forEach(t=>{l=Math.max(l,t.length)});let c=l-e.dataRows[0].length;for(let t=0;t<c;t++){let i=function(t){let e;return s&&!1!==(e=s(t))?e:(e=n+" "+t,o)?{columnTitle:e,topLevelColumnTitle:e}:e}(t+1);o?(e.dataRows[0].push(i.topLevelColumnTitle),e.dataRows[1].push(i.columnTitle)):e.dataRows[0].push(i)}})}function p(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach(t=>{t.redraw(),t.graphic.animate({opacity:1},t.animationConfig)})}function d(t){let e=this.annotations,s="annotations"===t.coll?t:(0,i.find)(e,function(e){return e.options.id===t});s&&((0,i.fireEvent)(s,"remove"),(0,i.erase)(this.options.annotations,s.options),(0,i.erase)(e,s),s.destroy())}function u(){let t=this.options.annotations,e=this.userOptions.annotations;this.annotations=[],(0,i.isArray)(this.options.annotations)||(this.options.annotations=[]),(0,i.isObject)(e,!0)&&(0,i.isObject)(t,!0)&&this.options.annotations.push(t)}function g(t){this.chart.hasDraggedAnnotation||t.apply(this,Array.prototype.slice.call(arguments,1))}(o||(o={})).compose=function(t,e,s){let o=e.prototype;if(!o.addAnnotation){let n=s.prototype;(0,i.addEvent)(e,"afterInit",u),o.addAnnotation=l,o.callbacks.push(c),o.collectionsWithInit.annotations=[l],o.collectionsWithUpdate.push("annotations"),o.drawAnnotations=p,o.removeAnnotation=d,o.initAnnotation=function(e){let i=new(t.types[e.type]||t)(this,e);return this.annotations.push(i),i},(0,i.wrap)(n,"onContainerMouseDown",g)}};let m=o,f={visible:!0,animation:{},crop:!0,draggable:"xy",labelOptions:{align:"center",allowOverlap:!1,backgroundColor:"rgba(0, 0, 0, 0.75)",borderColor:"var(--highcharts-neutral-color-100)",borderRadius:3,borderWidth:1,className:"highcharts-no-tooltip",crop:!1,formatter:function(){return(0,i.defined)(this.y)?""+this.y:"Annotation label"},includeInDataExport:!0,overflow:"justify",padding:5,shadow:!1,shape:"callout",style:{fontSize:"0.7em",fontWeight:"normal",color:"contrast"},useHTML:!1,verticalAlign:"bottom",x:0,y:-16},shapeOptions:{stroke:"rgba(0, 0, 0, 0.75)",strokeWidth:1,fill:"rgba(0, 0, 0, 0.75)",r:0,snap:2},controlPointOptions:{events:{},style:{cursor:"pointer",fill:"var(--highcharts-background-color)",stroke:"var(--highcharts-neutral-color-100)","stroke-width":2},height:10,symbol:"circle",visible:!1,width:10},events:{},typeOptions:{},types:{},zIndex:6},{doc:v,isTouchDevice:y}=h(),x=class{addEvents(){let t=this,e=function(e){(0,i.addEvent)(e,y?"touchstart":"mousedown",e=>{t.onMouseDown(e)},{passive:!1})};if(e(this.graphic.element),(t.labels||[]).forEach(t=>{t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&e(t.graphic.text.element)}),(0,i.objectEach)(t.options.events,(e,s)=>{let o=function(i){"click"===s&&t.cancelClick||e.call(t,t.chart.pointer?.normalize(i),t.target,t)};-1===(t.nonDOMEvents||[]).indexOf(s)?((0,i.addEvent)(t.graphic.element,s,o,{passive:!1}),t.graphic.div&&(0,i.addEvent)(t.graphic.div,s,o,{passive:!1})):(0,i.addEvent)(t,s,o,{passive:!1})}),t.options.draggable&&((0,i.addEvent)(t,"drag",t.onDrag),!t.graphic.renderer.styledMode)){let e={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[t.options.draggable]};t.graphic.css(e),(t.labels||[]).forEach(t=>{t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&t.graphic.text.css(e)})}t.isUpdating||(0,i.fireEvent)(t,"add")}destroy(){this.removeDocEvents(),(0,i.removeEvent)(this),this.hcEvents=null}mouseMoveToRadians(t,e,i){let s=t.prevChartY-i,o=t.prevChartX-e,n=t.chartY-i,a=t.chartX-e,r;return this.chart.inverted&&(r=o,o=s,s=r,r=a,a=n,n=r),Math.atan2(n,a)-Math.atan2(s,o)}mouseMoveToScale(t,e,i){let s=t.prevChartX-e,o=t.prevChartY-i,n=t.chartX-e,a=t.chartY-i,r=(n||1)/(s||1),h=(a||1)/(o||1);if(this.chart.inverted){let t=h;h=r,r=t}return{x:r,y:h}}mouseMoveToTranslation(t){let e=t.chartX-t.prevChartX,i=t.chartY-t.prevChartY,s;return this.chart.inverted&&(s=i,i=e,e=s),{x:e,y:i}}onDrag(t){if(this.chart.isInsidePlot(t.chartX-this.chart.plotLeft,t.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){let e=this.mouseMoveToTranslation(t);"x"===this.options.draggable&&(e.y=0),"y"===this.options.draggable&&(e.x=0),this.points.length?this.translate(e.x,e.y):(this.shapes.forEach(t=>t.translate(e.x,e.y)),this.labels.forEach(t=>t.translate(e.x,e.y))),this.redraw(!1)}}onMouseDown(t){if(t.preventDefault&&t.preventDefault(),2===t.button)return;let e=this,s=e.chart.pointer,o=t?.sourceCapabilities?.firesTouchEvents||!1,n=(t=s?.normalize(t)||t).chartX,a=t.chartY;e.cancelClick=!1,e.chart.hasDraggedAnnotation=!0,e.removeDrag=(0,i.addEvent)(v,y||o?"touchmove":"mousemove",function(t){e.hasDragged=!0,(t=s?.normalize(t)||t).prevChartX=n,t.prevChartY=a,(0,i.fireEvent)(e,"drag",t),n=t.chartX,a=t.chartY},y||o?{passive:!1}:void 0),e.removeMouseUp=(0,i.addEvent)(v,y||o?"touchend":"mouseup",function(){let t=(e.target&&e.target.annotation)??e.target;t&&(t.cancelClick=e.hasDragged),e.cancelClick=e.hasDragged,e.chart.hasDraggedAnnotation=!1,e.hasDragged&&(0,i.fireEvent)(t??e,"afterUpdate"),e.hasDragged=!1,e.onMouseUp()},y||o?{passive:!1}:void 0)}onMouseUp(){this.removeDocEvents()}removeDocEvents(){this.removeDrag&&(this.removeDrag=this.removeDrag()),this.removeMouseUp&&(this.removeMouseUp=this.removeMouseUp())}},b=class extends x{constructor(t,e,i,s){super(),this.nonDOMEvents=["drag"],this.chart=t,this.target=e,this.options=i,this.index=i.index??s}destroy(){super.destroy(),this.graphic&&(this.graphic=this.graphic.destroy()),this.chart=null,this.target=null,this.options=null}redraw(t){this.graphic[t?"animate":"attr"](this.options.positioner.call(this,this.target,this))}render(){let t=this.chart,e=this.options;this.graphic=t.renderer.symbol(e.symbol,0,0,e.width,e.height).add(t.controlPointsGroup).css(e.style),this.setVisibility(e.visible),this.addEvents()}setVisibility(t){this.graphic[t?"show":"hide"](),this.options.visible=t}update(t){let e=this.chart,s=this.target,o=this.index,n=(0,i.merge)(!0,this.options,t);this.destroy(),this.constructor(e,s,n,o),this.render(e.controlPointsGroup),this.redraw()}},A={backgroundColor:"color",backgroundColors:"color",borderColor:"color",borderRadius:"string",color:"color",fill:"color",fontSize:"string",labels:"string",name:"string",stroke:"color",title:"string"},E={annotationsFieldsTypes:A,getAssignedAxis:function(t){return t.filter(t=>{let e=t.axis.getExtremes(),s=e.min,o=e.max,n=t.axis.minPointOffset??0;return(0,i.isNumber)(s)&&(0,i.isNumber)(o)&&t.value>=s-n&&t.value<=o+n&&!t.axis.options.isInternal})[0]},getAxisFromOptions:function(t,e,s){return(0,i.isNumber)(s)?t[e][s]:(0,i.defined)(s)?(0,i.find)(t[e],t=>t.options.id===s):void 0},getFieldType:function(t,e){let s=A[t],o=typeof e;return(0,i.defined)(s)&&(o=s),({string:"text",number:"number",boolean:"checkbox",color:"color"})[o]}},w=t.default.SeriesRegistry;var k=e.n(w);let{getAxisFromOptions:C}=E,{series:{prototype:P}}=k();class O{static fromPoint(t){return new O(t.series.chart,null,{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis})}static pointToPixels(t,e){let i=t.series,s=i.chart,o=t.plotX||0,n=t.plotY||0,a;return s.inverted&&(t.mock?(o=t.plotY,n=t.plotX):(o=s.plotWidth-(t.plotY||0),n=s.plotHeight-(t.plotX||0))),i&&!e&&(o+=(a=i.getPlotBox()).translateX,n+=a.translateY),{x:o,y:n}}static pointToOptions(t){return{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis}}constructor(t,e,i){this.mock=!0,this.point=this,this.series={visible:!0,chart:t,getPlotBox:P.getPlotBox},this.target=e||null,this.options=i,this.applyOptions(this.getOptions())}applyOptions(t){this.command=t.command,this.setAxis(t,"x"),this.setAxis(t,"y"),this.refresh()}getOptions(){return this.hasDynamicOptions()&&"function"==typeof this.options?this.options(this.target):this.options}hasDynamicOptions(){return"function"==typeof this.options}isInsidePlot(){let t=this.plotX,e=this.plotY,s=this.series.xAxis,o=this.series.yAxis,n={x:t,y:e,isInsidePlot:!0,options:{}};return s&&(n.isInsidePlot=(0,i.defined)(t)&&t>=0&&t<=s.len),o&&(n.isInsidePlot=n.isInsidePlot&&(0,i.defined)(e)&&e>=0&&e<=o.len),(0,i.fireEvent)(this.series.chart,"afterIsInsidePlot",n),n.isInsidePlot}refresh(){let t=this.series,e=t.xAxis,i=t.yAxis,s=this.getOptions();e?(this.x=s.x,this.plotX=e.toPixels(s.x,!0)):(this.x=void 0,this.plotX=s.x),i?(this.y=s.y,this.plotY=i.toPixels(s.y,!0)):(this.y=null,this.plotY=s.y),this.isInside=this.isInsidePlot()}refreshOptions(){let t=this.series,e=t.xAxis,i=t.yAxis;this.x=this.options.x=e?this.options.x=e.toValue(this.plotX,!0):this.plotX,this.y=this.options.y=i?i.toValue(this.plotY,!0):this.plotY}rotate(t,e,i){if(!this.hasDynamicOptions()){let s=Math.cos(i),o=Math.sin(i),n=this.plotX-t,a=this.plotY-e;this.plotX=n*s-a*o+t,this.plotY=n*o+a*s+e,this.refreshOptions()}}scale(t,e,i,s){if(!this.hasDynamicOptions()){let o=this.plotX*i,n=this.plotY*s;this.plotX=(1-i)*t+o,this.plotY=(1-s)*e+n,this.refreshOptions()}}setAxis(t,e){let i=e+"Axis",s=t[i],o=this.series.chart;this.series[i]="object"==typeof s?s:C(o,i,s)||null}toAnchor(){let t=[this.plotX,this.plotY,0,0];return this.series.chart.inverted&&(t[0]=this.plotY,t[1]=this.plotX),t}translate(t,e,i,s){this.hasDynamicOptions()||(this.plotX+=i,this.plotY+=s,this.refreshOptions())}}!function(t){function e(){let t=this.controlPoints,e=this.options.controlPoints||[];e.forEach((s,o)=>{let n=(0,i.merge)(this.options.controlPointOptions,s);n.index||(n.index=o),e[o]=n,t.push(new b(this.chart,this,n))})}function s(t){let e=t.series.getPlotBox(),s=t.series.chart,o=t.mock?t.toAnchor():s.tooltip&&s.tooltip.getAnchor.call({chart:t.series.chart},t)||[0,0,0,0],n={x:o[0]+(this.options.x||0),y:o[1]+(this.options.y||0),height:o[2]||0,width:o[3]||0};return{relativePosition:n,absolutePosition:(0,i.merge)(n,{x:n.x+(t.mock?e.translateX:s.plotLeft),y:n.y+(t.mock?e.translateY:s.plotTop)})}}function o(){this.controlPoints.forEach(t=>t.destroy()),this.chart=null,this.controlPoints=null,this.points=null,this.options=null,this.annotation&&(this.annotation=null)}function n(){let t=this.options;return t.points||t.point&&(0,i.splat)(t.point)}function a(){let t,e,i=this.getPointsOptions(),s=this.points,o=i?.length||0;for(t=0;t<o;t++){if(!(e=this.point(i[t],s[t]))){s.length=0;return}e.mock&&e.refresh(),s[t]=e}return s}function r(t,e){if(t&&t.series)return t;if(!e||null===e.series){if((0,i.isObject)(t))e=new O(this.chart,this,t);else if((0,i.isString)(t))e=this.chart.get(t)||null;else if("function"==typeof t){let i=t.call(e,this);e=i.series?i:new O(this.chart,this,t)}}return e}function h(t){this.controlPoints.forEach(e=>e.redraw(t))}function l(){this.controlPoints.forEach(t=>t.render())}function c(t,e,i,s,o){if(this.chart.inverted){let t=e;e=i,i=t}this.points.forEach((n,a)=>this.transformPoint(t,e,i,s,o,a),this)}function p(t,e,i,s,o,n){let a=this.points[n];a.mock||(a=this.points[n]=O.fromPoint(a)),a[t](e,i,s,o)}function d(t,e){this.transform("translate",null,null,t,e)}function u(t,e,i){this.transformPoint("translate",null,null,t,e,i)}t.compose=function(t){let g=t.prototype;g.addControlPoints||(0,i.merge)(!0,g,{addControlPoints:e,anchor:s,destroyControlTarget:o,getPointsOptions:n,linkPoints:a,point:r,redrawControlPoints:h,renderControlPoints:l,transform:c,transformPoint:p,translate:d,translatePoint:u})}}(n||(n={}));let M=n;class N{constructor(t,e,i,s){this.annotation=t,this.chart=t.chart,this.collection="label"===s?"labels":"shapes",this.controlPoints=[],this.options=e,this.points=[],this.index=i,this.itemType=s,this.init(t,e,i)}attr(){this.graphic.attr.apply(this.graphic,arguments)}attrsFromOptions(t){let e,i,s=this.constructor.attrsMap,o={},n=this.chart.styledMode;for(e in t)i=s[e],void 0===s[e]||n&&-1!==["fill","stroke","stroke-width"].indexOf(i)||(o[i]=t[e]);return o}destroy(){this.graphic&&(this.graphic=this.graphic.destroy()),this.tracker&&(this.tracker=this.tracker.destroy()),this.destroyControlTarget()}calculateAnnotationSize(t,e,i){let s=i.toPixels(t,!0);return Math.abs(i.toPixels(t+e,!0)-s)}init(t,e,i){this.annotation=t,this.chart=t.chart,this.options=e,this.points=[],this.controlPoints=[],this.index=i,this.linkPoints(),this.addControlPoints()}redraw(t){this.redrawControlPoints(t)}render(t){this.options.className&&this.graphic&&this.graphic.addClass(this.options.className),this.renderControlPoints()}rotate(t,e,i){this.transform("rotate",t,e,i)}scale(t,e,i,s){this.transform("scale",t,e,i,s)}setControlPointsVisibility(t){this.controlPoints.forEach(e=>{e.setVisibility(t)})}shouldBeDrawn(){return!!this.points.length}translateShape(t,e,i){let s=this.annotation.chart,o=this.annotation.userOptions,n=s.annotations.indexOf(this.annotation),a=s.options.annotations[n];this.translatePoint(t,e,0),i&&this.translatePoint(t,e,1),a[this.collection][this.index].point=this.options.point,o[this.collection][this.index].point=this.options.point}update(t){let e=this.annotation,s=(0,i.merge)(!0,this.options,t),o=this.graphic.parentGroup,n=this.constructor;this.destroy();let a=new n(e,s,this.index,this.itemType);(0,i.merge)(!0,this,a),this.render(o),this.redraw()}}M.compose(N);let B=N,{defaultMarkers:T}={defaultMarkers:{arrow:{tagName:"marker",attributes:{id:"arrow",refY:5,refX:9,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 0 L 10 5 L 0 10 Z","stroke-width":0}}]},"reverse-arrow":{tagName:"marker",attributes:{id:"reverse-arrow",refY:5,refX:1,markerWidth:10,markerHeight:10},children:[{tagName:"path",attributes:{d:"M 0 5 L 10 0 L 10 10 Z","stroke-width":0}}]}}},L=D("marker-end"),I=D("marker-start"),S="rgba(192,192,192,"+(h().svg?1e-4:.002)+")";function D(t){return function(e){this.attr(t,"url(#"+e+")")}}function Y(){this.options.defs=(0,i.merge)(T,this.options.defs||{})}function X(t,e){let s={attributes:{id:t}},o={stroke:e.color||"none",fill:e.color||"rgba(0, 0, 0, 0.75)"};s.children=e.children&&e.children.map(function(t){return(0,i.merge)(o,t)});let n=(0,i.merge)(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},e,s),a=this.definition(n);return a.id=t,a}class F extends B{static compose(t,e){let s=e.prototype;s.addMarker||((0,i.addEvent)(t,"afterGetContainer",Y),s.addMarker=X)}constructor(t,e,i){super(t,e,i,"shape"),this.type="path"}init(t,e,s){(0,i.defined)(e.yAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.yAxis=e.yAxis)}),(0,i.defined)(e.xAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.xAxis=e.xAxis)}),super.init(t,e,s)}toD(){let t=this.options.d;if(t)return"function"==typeof t?t.call(this):t;let e=this.points,i=e.length,s=[],o=i,n=e[0],a=o&&this.anchor(n).absolutePosition,r=0,h;if(a)for(s.push(["M",a.x,a.y]);++r<i&&o;)h=(n=e[r]).command||"L",a=this.anchor(n).absolutePosition,"M"===h||"L"===h?s.push([h,a.x,a.y]):"Z"===h&&s.push([h]),o=n.series.visible;return o&&this.graphic?this.chart.renderer.crispLine(s,this.graphic.strokeWidth()):null}shouldBeDrawn(){return super.shouldBeDrawn()||!!this.options.d}render(t){let e=this.options,s=this.attrsFromOptions(e);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(s).add(t),this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(t),this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",stroke:S,fill:S,"stroke-width":this.graphic.strokeWidth()+2*e.snap}),super.render(),(0,i.extend)(this.graphic,{markerStartSetter:I,markerEndSetter:L}),this.setMarkers(this)}redraw(t){if(this.graphic){let e=this.toD(),i=t?"animate":"attr";e?(this.graphic[i]({d:e}),this.tracker[i]({d:e})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"})),this.graphic.placed=this.tracker.placed=!!e}super.redraw(t)}setMarkers(t){let e=t.options,s=t.chart,o=s.options.defs,n=e.fill,a=(0,i.defined)(n)&&"none"!==n?n:e.stroke;["markerStart","markerEnd"].forEach(function(n){let r,h,l,c,p=e[n];if(p){for(l in o)if((p===((r=o[l]).attributes&&r.attributes.id)||p===r.id)&&"marker"===r.tagName){h=r;break}h&&(c=t[n]=s.renderer.addMarker((e.id||(0,i.uniqueKey)())+"-"+p,(0,i.merge)(h,{color:a})),t.attr(n,c.getAttribute("id")))}})}}F.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"};class U extends B{constructor(t,e,i){super(t,e,i,"shape"),this.type="rect",this.translate=super.translateShape}init(t,e,s){let{point:o,xAxis:n,yAxis:a}=e;o&&"string"!=typeof o&&((0,i.defined)(n)&&(o.xAxis=n),(0,i.defined)(a)&&(o.yAxis=a)),super.init(t,e,s)}render(t){let e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9e9,0,0).attr(e).add(t),super.render()}redraw(t){if(this.graphic){let e=this.points[0],s=this.anchor(e).absolutePosition,o=this.options.width||0,n=this.options.height||0;if(s){let a=(0,i.defined)(this.options.xAxis)?this.chart.xAxis[this.options.xAxis]:void 0,r=(0,i.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;a&&(0,i.defined)(e.x)&&(o=this.calculateAnnotationSize(e.x,o,a)),r&&(0,i.defined)(e.y)&&(n=this.calculateAnnotationSize(e.y,n,r)),this.graphic[t?"animate":"attr"]({x:s.x,y:s.y,width:o,height:n})}else this.attr({x:0,y:-9e9});this.graphic.placed=!!s}super.redraw(t)}}U.attrsMap=(0,i.merge)(F.attrsMap,{width:"width",height:"height"});class R extends B{constructor(t,e,i){super(t,e,i,"shape"),this.type="circle",this.translate=super.translateShape}init(t,e,s){let{point:o,xAxis:n,yAxis:a}=e;o&&"string"!=typeof o&&((0,i.defined)(n)&&(o.xAxis=n),(0,i.defined)(a)&&(o.yAxis=a)),super.init(t,e,s)}redraw(t){if(this.graphic){let e=this.points[0],s=this.anchor(e).absolutePosition,o=this.options.r||0;if(s){let n=(0,i.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;n&&(0,i.defined)(e.y)&&(o=this.calculateAnnotationSize(e.y,o,n)),this.graphic[t?"animate":"attr"]({x:s.x,y:s.y,r:o})}else this.graphic.attr({x:0,y:-9e9});this.graphic.placed=!!s}super.redraw.call(this,t)}render(t){let e=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9e9,0).attr(e).add(t),super.render()}setRadius(t){this.options.r=t}}R.attrsMap=(0,i.merge)(F.attrsMap,{r:"r"});class W extends B{constructor(t,e,i){super(t,e,i,"shape"),this.type="ellipse"}init(t,e,s){(0,i.defined)(e.yAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.yAxis=e.yAxis)}),(0,i.defined)(e.xAxis)&&e.points.forEach(t=>{t&&"string"!=typeof t&&(t.xAxis=e.xAxis)}),super.init(t,e,s)}render(t){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(t),super.render()}translate(t,e){super.translateShape(t,e,!0)}getDistanceFromLine(t,e,i,s){return Math.abs((e.y-t.y)*i-(e.x-t.x)*s+e.x*t.y-e.y*t.x)/Math.sqrt((e.y-t.y)*(e.y-t.y)+(e.x-t.x)*(e.x-t.x))}getAttrs(t,e){let i=t.x,s=t.y,o=e.x,n=e.y,a=(i+o)/2,r=Math.sqrt((i-o)*(i-o)/4+(s-n)*(s-n)/4),h=180*Math.atan((n-s)/(o-i))/Math.PI;return a<i&&(h+=180),{cx:a,cy:(s+n)/2,rx:r,ry:this.getRY(),angle:h}}getRY(){let t=this.getYAxis();return(0,i.defined)(t)?Math.abs(t.toPixels(this.options.ry)-t.toPixels(0)):this.options.ry}getYAxis(){let t=this.options.yAxis;return this.chart.yAxis[t]}getAbsolutePosition(t){return this.anchor(t).absolutePosition}redraw(t){if(this.graphic){let e=this.getAbsolutePosition(this.points[0]),i=this.getAbsolutePosition(this.points[1]),s=this.getAttrs(e,i);e?this.graphic[t?"animate":"attr"]({cx:s.cx,cy:s.cy,rx:s.rx,ry:s.ry,rotation:s.angle,rotationOriginX:s.cx,rotationOriginY:s.cy}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!e}super.redraw(t)}setYRadius(t){let e=this.annotation.userOptions.shapes;this.options.ry=t,e&&e[0]&&(e[0].ry=t,e[0].ry=t)}}W.attrsMap=(0,i.merge)(F.attrsMap,{ry:"ry"});let j=t.default.Templating;var z=e.n(j);let{format:V}=z();function q(t,e,s,o,n){let a=n&&n.anchorX,r=n&&n.anchorY,h,l,c=s/2;return(0,i.isNumber)(a)&&(0,i.isNumber)(r)&&(h=[["M",a,r]],(l=e-r)<0&&(l=-o-l),l<s&&(c=a<t+s/2?l:s-l),r>e+o?h.push(["L",t+c,e+o]):r<e?h.push(["L",t+c,e]):a<t?h.push(["L",t,e+o/2]):a>t+s&&h.push(["L",t+s,e+o/2])),h||[]}class $ extends B{static alignedPosition(t,e){return{x:Math.round((e.x||0)+(t.x||0)+(e.width-(t.width||0))*(0,i.getAlignFactor)(t.align)),y:Math.round((e.y||0)+(t.y||0)+(e.height-(t.height||0))*(0,i.getAlignFactor)(t.verticalAlign))}}static compose(t){t.prototype.symbols.connector=q}static justifiedOptions(t,e,i,s){let o,n=i.align,a=i.verticalAlign,r=e.box?0:e.padding||0,h=e.getBBox(),l={align:n,verticalAlign:a,x:i.x,y:i.y,width:e.width,height:e.height},c=(s.x||0)-t.plotLeft,p=(s.y||0)-t.plotTop;return(o=c+r)<0&&("right"===n?l.align="left":l.x=(l.x||0)-o),(o=c+h.width-r)>t.plotWidth&&("left"===n?l.align="right":l.x=(l.x||0)+t.plotWidth-o),(o=p+r)<0&&("bottom"===a?l.verticalAlign="top":l.y=(l.y||0)-o),(o=p+h.height-r)>t.plotHeight&&("top"===a?l.verticalAlign="bottom":l.y=(l.y||0)+t.plotHeight-o),l}constructor(t,e,i){super(t,e,i,"label")}translatePoint(t,e){super.translatePoint(t,e,0)}translate(t,e){var i,s;let o=this.annotation.chart,n=this.annotation.userOptions,a=o.annotations.indexOf(this.annotation),r=o.options.annotations[a];if(o.inverted){let i=t;t=e,e=i}(i=this.options).x||(i.x=0),(s=this.options).y||(s.y=0),this.options.x+=t,this.options.y+=e,r[this.collection][this.index].x=this.options.x,r[this.collection][this.index].y=this.options.y,n[this.collection][this.index].x=this.options.x,n[this.collection][this.index].y=this.options.y}render(t){let e=this.options,i=this.attrsFromOptions(e),s=e.style,o=this.annotation.chart.options.chart,n=o.plotBackgroundColor||o.backgroundColor;if(this.graphic=this.annotation.chart.renderer.label("",0,-9999,e.shape,void 0,void 0,e.useHTML,void 0,"annotation-label").attr(i).add(t),!this.annotation.chart.styledMode){if(s?.color==="contrast"){let t=!e.shape||$.shapesWithoutBackground.indexOf(e.shape)>-1||"none"===e.backgroundColor?n:e.backgroundColor;s.color=this.annotation.chart.renderer.getContrast("string"==typeof t?t:"string"==typeof n?n:"#ffffff")}this.graphic.css(e.style||{}).shadow(e.shadow)}this.graphic.labelrank=e.labelrank,super.render()}redraw(t){let e=this.options,i=this.text||e.format||e.text,s=this.graphic,o=this.points[0];if(!s)return void this.redraw(t);s.attr({text:i?V(String(i),o,this.annotation.chart):e.formatter.call(o,o)});let n=this.anchor(o),a=this.position(n);a?(s.alignAttr=a,a.anchorX=n.absolutePosition.x,a.anchorY=n.absolutePosition.y,s[t?"animate":"attr"](a)):s.attr({x:0,y:-9999}),s.placed=!!a,super.redraw(t)}anchor(t){let e=super.anchor.apply(this,arguments),i=this.options.x||0,s=this.options.y||0;return e.absolutePosition.x-=i,e.absolutePosition.y-=s,e.relativePosition.x-=i,e.relativePosition.y-=s,e}position(t){let e=this.graphic,s=this.annotation.chart,o=s.tooltip,n=this.points[0],a=this.options,r=t.absolutePosition,h=t.relativePosition,l,c,p,d,u=n.series.visible&&O.prototype.isInsidePlot.call(n);if(e&&u){let{width:t=0,height:g=0}=e;a.distance&&o?l=o.getPosition.call({chart:s,distance:a.distance??16,getPlayingField:o.getPlayingField,pointer:o.pointer},t,g,{plotX:h.x,plotY:h.y,negative:n.negative,ttBelow:n.ttBelow,h:h.height||h.width}):a.positioner?l=a.positioner.call(this,this):(c={x:r.x,y:r.y,width:0,height:0},l=$.alignedPosition((0,i.extend)(a,{width:t,height:g}),c),"justify"===this.options.overflow&&(l=$.alignedPosition($.justifiedOptions(s,e,a,l),c))),a.crop&&(p=l.x-s.plotLeft,d=l.y-s.plotTop,u=s.isInsidePlot(p,d)&&s.isInsidePlot(p+t,d+g))}return u?l:null}}$.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"},$.shapesWithoutBackground=["connector"];class H extends B{constructor(t,e,i){super(t,e,i,"shape"),this.type="image",this.translate=super.translateShape}render(t){let e=this.attrsFromOptions(this.options),i=this.options;this.graphic=this.annotation.chart.renderer.image(i.src,0,-9e9,i.width,i.height).attr(e).add(t),this.graphic.width=i.width,this.graphic.height=i.height,super.render()}redraw(t){if(this.graphic){let e=this.anchor(this.points[0]),i=$.prototype.position.call(this,e);i?this.graphic[t?"animate":"attr"]({x:i.x,y:i.y}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!i}super.redraw(t)}}H.attrsMap={width:"width",height:"height",zIndex:"zIndex"};let G=t.default.AST;var K=e.n(G);let _=t=>`<?xml version="1.0" encoding="utf-8"?>
|
|
14
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 ${t} ${t}">`,Z="#4B4B4D",J={"close.svg":`${_(32)}
|
|
15
|
+
<polygon fill="${Z}" points="24.308,8.756 23.248,7.695 16.002,14.941 8.757,7.695 7.695,8.754 14.941,16.001 7.696,23.246
|
|
16
16
|
8.755,24.308 16.002,17.061 23.247,24.307 24.308,23.248 17.062,16.001"/>
|
|
17
17
|
</svg>
|
|
18
|
-
`,"destroy.svg":`${
|
|
18
|
+
`,"destroy.svg":`${_(32)}
|
|
19
19
|
<g>
|
|
20
|
-
<rect x="12.75" y="14" fill="${
|
|
21
|
-
<rect x="17.75" y="14" fill="${
|
|
22
|
-
<path fill="${
|
|
20
|
+
<rect x="12.75" y="14" fill="${Z}" width="1.5" height="10"/>
|
|
21
|
+
<rect x="17.75" y="14" fill="${Z}" width="1.5" height="10"/>
|
|
22
|
+
<path fill="${Z}" d="M25.25,10.5c0-1.517-1.233-2.75-2.75-2.75h-3.25V7c0-1.24-1.01-2.25-2.25-2.25h-2
|
|
23
23
|
c-1.24,0-2.25,1.01-2.25,2.25v0.75H9.5c-1.517,0-2.75,1.233-2.75,2.75v1.751h2V27.25h14.5V12.251h2V10.5z M14.25,7
|
|
24
24
|
c0-0.413,0.337-0.75,0.75-0.75h2c0.413,0,0.75,0.337,0.75,0.75v0.75h-3.5V7z M21.75,25.75h-11.5V12.251h11.5V25.75z M23.75,10.751
|
|
25
25
|
H8.25V10.5c0-0.689,0.561-1.25,1.25-1.25h13c0.689,0,1.25,0.561,1.25,1.25V10.751z"/>
|
|
26
26
|
</g>
|
|
27
27
|
</svg>
|
|
28
|
-
`,"edit.svg":`${
|
|
29
|
-
<path fill="${
|
|
28
|
+
`,"edit.svg":`${_(32)}
|
|
29
|
+
<path fill="${Z}" d="M22.125,3.814L5.817,20.122l-1.818,7.879l7.879-1.818L28.186,9.875L22.125,3.814z M26.064,9.875
|
|
30
30
|
l-1.439,1.439l-3.939-3.939l1.439-1.439L26.064,9.875z M10.186,22.875l9.939-9.939l1.439,1.439l-9.939,9.939L10.186,22.875z
|
|
31
31
|
M7.686,20.375l9.939-9.939l1.439,1.439l-9.939,9.939L7.686,20.375z M18.686,9.375l0.939-0.939l3.939,3.939l-0.939,0.939
|
|
32
32
|
L18.686,9.375z M6.974,21.784l3.242,3.242l-4.215,0.973L6.974,21.784z"/>
|
|
33
33
|
</svg>
|
|
34
|
-
`},_=(t,e,i)=>{let s,o=i[t];return"renderer"===e&&o?(o=encodeURIComponent(o),s=`url("data:image/svg+xml;charset=utf-8,${o}")`):s=e.startsWith("http")&&e.match(/\.(png|svg|jpe?g|gif)$/ig)?'url("'+e+'")':`url("${e}${t}")`,s},Z=class{constructor(t,e){this.iconsURL=e,this.container=this.createPopupContainer(t),this.closeButton=this.addCloseButton()}createPopupContainer(t,e="highcharts-popup highcharts-no-tooltip"){return(0,r.createElement)("div",{className:e},void 0,t)}addCloseButton(t="highcharts-popup-close"){let e=(0,r.createElement)("button",{className:t},void 0,this.container);return(0,r.createElement)("span",{className:"highcharts-icon"},{backgroundImage:_("close.svg",this.iconsURL,K)},e),["click","touchstart"].forEach(t=>{(0,r.addEvent)(e,t,this.closeButtonEvents.bind(this))}),(0,r.addEvent)(document,"keydown",t=>{"Escape"===t.code&&this.closeButtonEvents()}),e}closeButtonEvents(){this.closePopup()}showPopup(t="highcharts-annotation-toolbar"){let e=this.container,i=this.closeButton;this.type=void 0,e.innerHTML=$().emptyHTML,e.className.indexOf(t)>=0&&(e.classList.remove(t),e.removeAttribute("style")),e.appendChild(i),e.style.display="block",e.style.height=""}closePopup(){this.container.style.display="none"}},J=t.default.Color;var Q=a.n(J);let{doc:tt,isFirefox:te}=h();function ti(t,e,i,s,o,n){let a,h;if(!e)return;let l=this.addInput,c=this.lang;(0,r.objectEach)(s,(s,n)=>{a=""!==i?i+"."+n:n,(0,r.isObject)(s)&&(!(0,r.isArray)(s)||(0,r.isArray)(s)&&(0,r.isObject)(s[0])?((h=c[n]||n).match(/\d/g)||o.push([!0,h,t]),ti.call(this,t,e,a,s,o,!1)):o.push([this,a,"annotation",t,s]))}),n&&((0,r.stableSort)(o,t=>t[1].match(/format/g)?-1:1),te&&o.reverse(),o.forEach(t=>{!0===t[0]?(0,r.createElement)("span",{className:"highcharts-annotation-title"},void 0,t[2]).appendChild(tt.createTextNode(t[1])):(t[4]={value:t[4][0],type:t[4][1]},l.apply(t[0],t.splice(1)))}))}let{doc:ts}=h(),{seriesTypes:to}=E();(e=o||(o={}))[e["params.algorithm"]=0]="params.algorithm",e[e["params.average"]=1]="params.average";let tn={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};function ta(t){let e=(0,r.createElement)("div",{className:"highcharts-popup-lhs-col"},void 0,t),i=(0,r.createElement)("div",{className:"highcharts-popup-rhs-col"},void 0,t);return(0,r.createElement)("div",{className:"highcharts-popup-rhs-col-wrapper"},void 0,i),{lhsCol:e,rhsCol:i}}function tr(t,e,i,s){let o=e.params||e.options.params;s.innerHTML=$().emptyHTML,(0,r.createElement)("h3",{className:"highcharts-indicator-title"},void 0,s).appendChild(ts.createTextNode(tm(e,i).indicatorFullName)),(0,r.createElement)("input",{type:"hidden",name:"highcharts-type-"+i,value:i},void 0,s),tf.call(this,i,"series",t,s,e,e.linkedParent&&e.linkedParent.options.id),o.volumeSeriesID&&tf.call(this,i,"volume",t,s,e,e.linkedParent&&o.volumeSeriesID),tl.call(this,t,"params",o,i,s)}function th(t,e,i,s){function o(e,i){let s=m.parentNode.children[1];tr.call(n,t,e,i,m),s&&(s.style.display="block"),c&&e.options&&(0,r.createElement)("input",{type:"hidden",name:"highcharts-id-"+i,value:e.options.id},void 0,m).setAttribute("highcharts-data-series-id",e.options.id)}let n=this,a=n.lang,h=e.querySelectorAll(".highcharts-popup-lhs-col")[0],l=e.querySelectorAll(".highcharts-popup-rhs-col")[0],c="edit"===i,p=c?t.series:t.options.plotOptions||{};if(!t&&p)return;let d,u=[];c||(0,r.isArray)(p)?(0,r.isArray)(p)&&(u=tg.call(this,p)):u=tu.call(this,p,s),(0,r.stableSort)(u,(t,e)=>{let i=t.indicatorFullName.toLowerCase(),s=e.indicatorFullName.toLowerCase();return i<s?-1:+(i>s)}),h.children[1]&&h.children[1].remove();let g=(0,r.createElement)("ul",{className:"highcharts-indicator-list"},void 0,h),m=l.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];if(u.forEach(t=>{let{indicatorFullName:e,indicatorType:i,series:s}=t;d=(0,r.createElement)("li",{className:"highcharts-indicator-list"},void 0,g);let n=(0,r.createElement)("button",{className:"highcharts-indicator-list-item",textContent:e},void 0,d);["click","touchstart"].forEach(t=>{(0,r.addEvent)(n,t,function(){o(s,i)})})}),u.length>0){let{series:t,indicatorType:e}=u[0];o(t,e)}else c||($().setElementHTML(m.parentNode.children[0],a.noFilterMatch||""),m.parentNode.children[1].style.display="none")}function tl(t,e,i,s,n){if(!t)return;let a=this.addInput;(0,r.objectEach)(i,(i,h)=>{let l=e+"."+h;if((0,r.defined)(i)&&l)if((0,r.isObject)(i)&&(a.call(this,l,s,n,{}),tl.call(this,t,l,i,s,n)),l in o){let o=tp.call(this,s,l,n);td.call(this,t,e,o,s,h,i)}else"params.volumeSeriesID"===l||(0,r.isArray)(i)||a.call(this,l,s,n,{value:i,type:"number"})})}function tc(t,e){let i=this,s=e.querySelectorAll(".highcharts-popup-lhs-col")[0],o=this.lang.clearFilter,n=(0,r.createElement)("div",{className:"highcharts-input-wrapper"},void 0,s),a=function(e){th.call(i,t,i.container,"add",e)},h=this.addInput("searchIndicators","input",n,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),l=(0,r.createElement)("a",{textContent:o},void 0,n);h.classList.add("highcharts-input-search-indicators"),l.classList.add("clear-filter-button"),(0,r.addEvent)(h,"input",function(){a(this.value),this.value.length?l.style.display="inline-block":l.style.display="none"}),["click","touchstart"].forEach(t=>{(0,r.addEvent)(l,t,function(){h.value="",a(""),l.style.display="none"})})}function tp(t,e,i){let s=e.split("."),o=s[s.length-1],n="highcharts-"+e+"-type-"+t,a=this.lang;(0,r.createElement)("label",{htmlFor:n},null,i).appendChild(ts.createTextNode(a[o]||e));let h=(0,r.createElement)("select",{name:n,className:"highcharts-popup-field",id:"highcharts-select-"+e},null,i);return h.setAttribute("id","highcharts-select-"+e),h}function td(t,e,i,s,o,n,a){"series"===e||"volume"===e?t.series.forEach(t=>{let s=t.options,o=s.name||s.params?t.name:s.id||"";"highcharts-navigator-series"!==s.id&&s.id!==(a&&a.options&&a.options.id)&&((0,r.defined)(n)||"volume"!==e||"column"!==t.type||(n=s.id),(0,r.createElement)("option",{value:s.id},void 0,i).appendChild(ts.createTextNode(o)))}):s&&o&&tn[o+"-"+s].forEach(t=>{(0,r.createElement)("option",{value:t},void 0,i).appendChild(ts.createTextNode(t))}),(0,r.defined)(n)&&(i.value=n)}function tu(t,e){let i,s=this.chart&&this.chart.options.lang,o=s&&s.navigation&&s.navigation.popup&&s.navigation.popup.indicatorAliases,n=new Map;return(0,r.objectEach)(t,(t,s)=>{let a=t&&t.options;if(t.params||a&&a.params){let{indicatorFullName:a,indicatorType:r}=tm(t,s);if(e){let s=RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),h=o&&o[r]&&o[r].join(" ")||"";(a.match(s)||h.match(s))&&(i={indicatorFullName:a,indicatorType:r,series:t},n.set(r.toLowerCase(),i))}else i={indicatorFullName:a,indicatorType:r,series:t},n.set(r.toLowerCase(),i)}}),Array.from(n.values())}function tg(t){let e=[];return t.forEach(t=>{t.is("sma")&&e.push({indicatorFullName:t.name,indicatorType:t.type,series:t})}),e}function tm(t,e){let i=t.options,s=to[e]&&to[e].prototype.nameBase||e.toUpperCase(),o=e;return i&&i.type&&(o=t.options.type,s=t.name),{indicatorFullName:s,indicatorType:o}}function tf(t,e,i,s,o,n){if(!i)return;let a=tp.call(this,t,e,s);td.call(this,i,e,a,void 0,void 0,void 0,o),(0,r.defined)(n)&&(a.value=n)}let{doc:tv}=h();function ty(){let t=this.container;return(0,r.createElement)("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,t)}function tx(t,e){let i=this.container,s=this.lang,o="highcharts-tab-item";0===e&&(o+=" highcharts-tab-disabled");let n=(0,r.createElement)("button",{className:o},void 0,i);return n.appendChild(tv.createTextNode(s[t+"Button"]||t)),n.setAttribute("highcharts-data-tab-type",t),n}function tb(){let t=this.container,e=t.querySelectorAll(".highcharts-tab-item"),i=t.querySelectorAll(".highcharts-tab-item-content");for(let t=0;t<e.length;t++)e[t].classList.remove("highcharts-tab-item-active"),i[t].classList.remove("highcharts-tab-item-show")}function tA(t,e){let i=this.container.querySelectorAll(".highcharts-tab-item-content");t.className+=" highcharts-tab-item-active",i[e].className+=" highcharts-tab-item-show"}function tE(t){let e=this;this.container.querySelectorAll(".highcharts-tab-item").forEach((i,s)=>{(0!==t||"edit"!==i.getAttribute("highcharts-data-tab-type"))&&["click","touchstart"].forEach(t=>{(0,r.addEvent)(i,t,function(){tb.call(e),tA.call(e,this,s)})})})}let{doc:tk}=h(),{getOptions:tw}=h();class tC extends Z{constructor(t,e,i){super(t,e),this.chart=i,this.lang=(tw().lang.navigation||{}).popup||{},(0,r.addEvent)(this.container,"mousedown",()=>{let t=i&&i.navigationBindings&&i.navigationBindings.activeAnnotation;if(t){t.cancelClick=!0;let e=(0,r.addEvent)(tk,"click",()=>{setTimeout(()=>{t.cancelClick=!1},0),e()})}})}addInput(t,e,i,s){let o=t.split("."),n=o[o.length-1],a=this.lang,h="highcharts-"+e+"-"+(0,r.pick)(s.htmlFor,n);if(n.match(/^\d+$/)||(0,r.createElement)("label",{htmlFor:h,className:s.labelClassName},void 0,i).appendChild(tk.createTextNode(a[n]||n)),"color"===s.type&&this.chart?.container)return this.createColorInput(t,h,s,i,this.chart.container);let l=(0,r.createElement)("input",{name:h,value:s.value,type:s.type,className:"highcharts-popup-field"},void 0,i);return l.setAttribute("highcharts-data-name",t),l}createColorInput(t,e,i,s,o){let{value:n,alpha:a}=function(t,e){let i=t=>("0"+Math.round(t).toString(16)).slice(-2).toUpperCase(),s=t=>{let[e,s,o,n]=Q().parse(t).rgba;return{value:"#"+i(e)+i(s)+i(o),alpha:n}};if(t.startsWith("rgb")||t.startsWith("rgba"))return s(t);if(t.startsWith("color")||t.startsWith("var")){let o=tk.createElement("span");o.style.setProperty("color",t),e.appendChild(o);let n=window.getComputedStyle(o).color;if(e.removeChild(o),n.startsWith("color")){let t=n.match(RegExp("color\\s*\\(\\s*srgb\\s+([\\d.]+)\\s+([\\d.]+)\\s+([\\d.]+)\\s+(?:\\s*\\/\\s*([\\d.]+))?\\s*\\)"));if(t){let e=Math.round(255*parseFloat(t[1])),s=Math.round(255*parseFloat(t[2])),o=Math.round(255*parseFloat(t[3])),n=t[4]?parseFloat(t[4]):1;return{value:"#"+i(e)+i(s)+i(o),alpha:n}}}if(n.startsWith("rgb")||n.startsWith("rgba"))return s(n)}return{value:t,alpha:1}}(i.value||"",o),h=Q().parse(i.value||"").rgba[3],l=isNaN(h)?a:h,c=(0,r.createElement)("div",{className:"highcharts-popup-color-wrapper"},void 0,s),p=(0,r.createElement)("input",{type:"color",value:n,className:"highcharts-popup-field highcharts-popup-field-color"},void 0,c),d=(0,r.createElement)("input",{name:e,id:e,value:n,type:"text",className:"highcharts-popup-field highcharts-popup-field-text"},void 0,c);d.setAttribute("highcharts-data-name",t);let u=(0,r.createElement)("span",{className:"highcharts-popup-color-separator"},void 0,c),g=(0,r.createElement)("input",{type:"number",value:String(Math.round(100*l)),className:"highcharts-popup-field highcharts-popup-opacity-percentage",min:"0",max:"100",step:"1"},void 0,c),m=(0,r.createElement)("span",{className:"highcharts-popup-opacity-percent-suffix"},void 0,c);m.appendChild(tk.createTextNode(" %"));let f=(0,r.createElement)("input",{type:"range",value:String(Math.round(100*l)),className:"highcharts-popup-opacity-slider",min:"0",max:"100",step:"1"},void 0,s);f.style.setProperty("--highcharts-popup-opacity-track-color",n),f.style.setProperty("display","none");let v=()=>{let t=/^#[0-9A-Fa-f]{6}$/.test(d.value);u.style.display=t?"":"none",g.style.display=t?"":"none",m.style.display=t?"":"none"};v();let y=t=>{let e=t.target,i=(0,r.clamp)(Number(e.value),0,100);f.value=String(i),g.value=String(Math.round(i))},x=t=>{t.target===p?d.value=p.value.toUpperCase():p.value=d.value,f.style.setProperty("--highcharts-popup-opacity-track-color",p.value),v()};return(0,r.addEvent)(s,"mousedown",t=>{t.target!==g&&t.target!==f&&(f.style.display="none")}),(0,r.addEvent)(g,"focus",()=>{f.style.display=""}),(0,r.addEvent)(g,"input",y),(0,r.addEvent)(f,"input",y),(0,r.addEvent)(p,"input",x),(0,r.addEvent)(d,"input",x),c}closeButtonEvents(){if(this.chart){let t=this.chart.navigationBindings;(0,r.fireEvent)(t,"closePopup"),t&&t.selectedButtonElement&&(0,r.fireEvent)(t,"deselectButton",{button:t.selectedButtonElement})}else super.closeButtonEvents()}addButton(t,e,i,s,o){let n=(0,r.createElement)("button",void 0,void 0,t);return n.appendChild(tk.createTextNode(e)),o&&["click","touchstart"].forEach(t=>{(0,r.addEvent)(n,t,()=>{let t,e,n,a,r;return this.closePopup(),o((t=Array.prototype.slice.call(s.querySelectorAll("input")),e=Array.prototype.slice.call(s.querySelectorAll("select")),n=s.querySelectorAll("#highcharts-select-series > option:checked")[0],a=s.querySelectorAll("#highcharts-select-volume > option:checked")[0],r={actionType:i,linkedTo:n&&n.getAttribute("value")||"",fields:{}},t.forEach(t=>{let e=t.getAttribute("highcharts-data-name");if(t.getAttribute("highcharts-data-series-id"))r.seriesId=t.value;else if(e){let i=t.closest(".highcharts-popup-color-wrapper"),s=i?.querySelector(".highcharts-popup-opacity-percentage"),o=s?Number(s.value)/100:1;if(s){let i=Q().parse(t.value).rgba;r.fields[e]=Number.isNaN(i[0])?t.value:`rgba(${i[0]},${i[1]},${i[2]},${o})`}else r.fields[e]=t.value}else r.type=t.value}),e.forEach(t=>{let e=t.id;if("highcharts-select-series"!==e&&"highcharts-select-volume"!==e){let i=e.split("highcharts-select-")[1];r.fields[i]=t.value}}),a&&(r.fields["params.volumeSeriesID"]=a.getAttribute("value")||""),r))})}),n}showForm(t,e,i,s){e&&(this.showPopup(),"indicators"===t&&this.indicators.addForm.call(this,e,i,s),"annotation-toolbar"===t&&this.annotations.addToolbar.call(this,e,i,s),"annotation-edit"===t&&this.annotations.addForm.call(this,e,i,s),"flag"===t&&this.annotations.addForm.call(this,e,i,s,!0),this.type=t,this.container.style.height=this.container.offsetHeight+"px")}}(0,r.extend)(tC.prototype,{annotations:{addForm:function(t,e,i,s){if(!t)return;let o=this.container,n=this.lang,a=(0,r.createElement)("h2",{className:"highcharts-popup-main-title"},void 0,o);a.appendChild(tt.createTextNode(n[e.langKey]||e.langKey||"")),a=(0,r.createElement)("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,o);let h=(0,r.createElement)("div",{className:"highcharts-popup-bottom-row"},void 0,o);ti.call(this,a,t,"",e,[],!0),this.addButton(h,s?n.addButton||"Add":n.saveButton||"Save",s?"add":"save",o,i)},addToolbar:function(t,e,i){let s=this.lang,o=this.container,n=this.showForm,a="highcharts-annotation-toolbar";-1===o.className.indexOf(a)&&(o.className+=" "+a+" highcharts-no-mousewheel"),t&&(o.style.top=t.plotTop+10+"px");let h=(0,r.createElement)("p",{className:"highcharts-annotation-label"},void 0,o);h.setAttribute("aria-label","Annotation type"),h.appendChild(tt.createTextNode((0,r.pick)(s[e.langKey]||e.langKey,e.shapes&&e.shapes[0].type,"")));let l=this.addButton(o,s.editButton||"Edit","edit",o,()=>{n.call(this,"annotation-edit",t,e,i)});l.className+=" highcharts-annotation-edit-button",(0,r.createElement)("span",{className:"highcharts-icon"},{backgroundImage:_("edit.svg",this.iconsURL,K)},l),l=this.addButton(o,s.removeButton||"Remove","remove",o,i),l.className+=" highcharts-annotation-remove-button",(0,r.createElement)("span",{className:"highcharts-icon"},{backgroundImage:_("destroy.svg",this.iconsURL,K)},l)}},indicators:{addForm:function(t,e,i){let s,o=this.lang;if(!t)return;this.tabs.init.call(this,t);let n=this.container.querySelectorAll(".highcharts-tab-item-content");ta(n[0]),tc.call(this,t,n[0]),th.call(this,t,n[0],"add"),s=n[0].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(s,o.addButton||"add","add",s,i),ta(n[1]),th.call(this,t,n[1],"edit"),s=n[1].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(s,o.saveButton||"save","edit",s,i),this.addButton(s,o.removeButton||"remove","remove",s,i)},getAmount:function(){let t=0;return this.series.forEach(e=>{(e.params||e.options.params)&&t++}),t}},tabs:{init:function(t){if(!t)return;let e=this.indicators.getAmount.call(t),i=tx.call(this,"add");tx.call(this,"edit",e),ty.call(this),ty.call(this),tE.call(this,e),tA.call(this,i,0)}}});let{composed:tP}=h();function tO(){this.popup&&this.popup.closePopup()}function tM(t){this.popup||(this.popup=new tC(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"renderer",this.chart)),this.popup.showForm(t.formType,this.chart,t.options,t.onSubmit)}function tB(t,e){this.inClass(e.target,"highcharts-popup")||t.apply(this,Array.prototype.slice.call(arguments,1))}let tN=function(t,e){(0,r.pushUnique)(tP,"Popup")&&((0,r.addEvent)(t,"closePopup",tO),(0,r.addEvent)(t,"showPopup",tM),(0,r.wrap)(e.prototype,"onContainerMouseDown",tB))},{getDeferredAnimation:tT}=h(),{defaultOptions:tL}=h();function tI(t,e){let i={};return["labels","shapes"].forEach(s=>{let o=t[s],n=e[s];o&&(n?i[s]=(0,r.splat)(n).map((t,e)=>(0,r.merge)(o[e],t)):i[s]=t[s])}),i}class tS extends x{static compose(t,e,i,s){m.compose(tS,t,i),z.compose(s),D.compose(t,s),e.compose(tS,t),tN(e,i)}constructor(t,e){super(),this.coll="annotations",this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.index=-1,this.labels=[],this.shapes=[],this.setOptions(e),this.userOptions=e;let i=tI(this.options,e);this.options.labels=i.labels,this.options.shapes=i.shapes,this.init(t,this.options)}addClipPaths(){this.setClipAxes(),this.clipXAxis&&this.clipYAxis&&this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))}addLabels(){let t=this.options.labels||[];t.forEach((e,i)=>{let s=this.initLabel(e,i);(0,r.merge)(!0,t[i],s.options)})}addShapes(){let t=this.options.shapes||[];t.forEach((e,i)=>{let s=this.initShape(e,i);(0,r.merge)(!0,t[i],s.options)})}destroy(){let t=this.chart,e=function(t){t.destroy()};this.labels.forEach(e),this.shapes.forEach(e),this.clipXAxis=null,this.clipYAxis=null,(0,r.erase)(t.labelCollectors,this.labelCollector),super.destroy(),this.destroyControlTarget(),(0,r.destroyObjectProperties)(this,t)}destroyItem(t){(0,r.erase)(this[t.itemType+"s"],t),t.destroy()}getClipBox(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}}initProperties(t,e){this.setOptions(e);let i=tI(this.options,e);this.options.labels=i.labels,this.options.shapes=i.shapes,this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.userOptions=e,this.labels=[],this.shapes=[]}init(t,e,i=this.index){let s=this.chart,o=this.options.animation;this.index=i,this.linkPoints(),this.addControlPoints(),this.addShapes(),this.addLabels(),this.setLabelCollector(),this.animationConfig=tT(s,o)}initLabel(t,e){this.options.labelOptions?.align;let i=new z(this,(0,r.merge)(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},t),e);return i.itemType="label",this.labels.push(i),i}initShape(t,e){let i=(0,r.merge)(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},t),s=new tS.shapesMap[i.type||"rect"](this,i,e);return s.itemType="shape",this.shapes.push(s),s}redraw(t){this.linkPoints(),this.graphic||this.render(),this.clipRect&&this.clipRect.animate(this.getClipBox()),this.redrawItems(this.shapes,t),this.redrawItems(this.labels,t),this.redrawControlPoints(t)}redrawItem(t,e){if(t.linkPoints(),t.shouldBeDrawn()){let i,s;t.graphic||this.renderItem(t),t.redraw((0,r.pick)(e,!0)&&t.graphic.placed),t.points.length&&(i=t.graphic,s=t.points.some(t=>!1!==t.series.visible&&!1!==t.visible),i&&(s?"hidden"===i.visibility&&i.show():i.hide()))}else this.destroyItem(t)}redrawItems(t,e){let i=t.length;for(;i--;)this.redrawItem(t[i],e)}remove(){return this.chart.removeAnnotation(this)}render(){let t=this.chart.renderer;this.graphic=t.g("annotation").addClass(this.options.className||"").attr({opacity:0,zIndex:this.options.zIndex,visibility:this.options.visible?"inherit":"hidden"}).add(),this.shapesGroup=t.g("annotation-shapes").add(this.graphic),this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip),this.labelsGroup=t.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic),this.addClipPaths(),this.clipRect&&this.graphic.clip(this.clipRect),this.renderItems(this.shapes),this.renderItems(this.labels),this.addEvents(),this.renderControlPoints()}renderItem(t){t.render("label"===t.itemType?this.labelsGroup:this.shapesGroup)}renderItems(t){let e=t.length;for(;e--;)this.renderItem(t[e])}setClipAxes(){let t=this.chart.xAxis,e=this.chart.yAxis,i=[...this.options.labels??[],...this.options.shapes??[]].reduce((i,s)=>{let o=s&&(s.point||"points"in s&&s.points?.[0]);return[t[o&&o.xAxis]||i[0],e[o&&o.yAxis]||i[1]]},[]);this.clipXAxis=i[0],this.clipYAxis=i[1]}setControlPointsVisibility(t){let e=function(e){e.setControlPointsVisibility(t)};this.controlPoints.forEach(e=>{e.setVisibility(t)}),this.shapes.forEach(e),this.labels.forEach(e)}setLabelCollector(){let t=this;t.labelCollector=function(){return t.labels.reduce(function(t,e){return e.options.allowOverlap||t.push(e.graphic),t},[])},t.chart.labelCollectors.push(t.labelCollector)}setOptions(t){var e;this.options=(0,r.merge)(this.defaultOptions,t.type&&this.defaultOptions.types?.[t.type]||{},t),(e=this.options).typeOptions||(e.typeOptions={})}setVisibility(t){let e=this.options,i=this.chart.navigationBindings,s=(0,r.pick)(t,!e.visible);if(this.graphic.attr("visibility",s?"inherit":"hidden"),!s){let t=function(t){t.setControlPointsVisibility(s)};this.shapes.forEach(t),this.labels.forEach(t),i.activeAnnotation===this&&i.popup&&"annotation-toolbar"===i.popup.type&&(0,r.fireEvent)(i,"closePopup")}e.visible=s}update(t,e){let i=this.chart,s=tI(this.userOptions,t),o=i.annotations.indexOf(this),n=(0,r.merge)(!0,this.userOptions,t);n.labels=s.labels,n.shapes=s.shapes,this.destroy(),this.initProperties(i,n),this.init(i,n),i.options.annotations[o]=this.options,this.isUpdating=!0,(0,r.pick)(e,!0)&&i.drawAnnotations(),(0,r.fireEvent)(this,"afterUpdate"),this.isUpdating=!1}}tS.ControlPoint=b,tS.MockPoint=w,tS.shapesMap={rect:Y,circle:X,ellipse:F,path:D,image:V},tS.types={},tS.prototype.defaultOptions=f,tL.annotations=f,tS.prototype.nonDOMEvents=["add","afterUpdate","drag","remove"],C.compose(tS);var tD=n||(n={});tD.compose=function(t){return t.navigation||(t.navigation=new tY(t)),t};class tY{constructor(t){this.updates=[],this.chart=t}addUpdate(t){this.chart.navigation.updates.push(t)}update(t,e){this.updates.forEach(i=>{i.call(this.chart,t,e)})}}tD.Additions=tY;let tX=n,tF={backgroundColor:"color",backgroundColors:"color",borderColor:"color",borderRadius:"string",color:"color",fill:"color",fontSize:"string",labels:"string",name:"string",stroke:"color",title:"string"},tU={annotationsFieldsTypes:tF,getAssignedAxis:function(t){return t.filter(t=>{let e=t.axis.getExtremes(),i=e.min,s=e.max,o=(0,r.pick)(t.axis.minPointOffset,0);return(0,r.isNumber)(i)&&(0,r.isNumber)(s)&&t.value>=i-o&&t.value<=s+o&&!t.axis.options.isInternal})[0]},getFieldType:function(t,e){let i=tF[t],s=typeof e;return(0,r.defined)(i)&&(s=i),({string:"text",number:"number",boolean:"checkbox",color:"color"})[s]}},{getAssignedAxis:tR}=tU,tW={lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Background colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&tR(e.xAxis),s=e&&tR(e.yAxis),o=this.chart.options.navigation;if(i&&s)return this.chart.addAnnotation((0,r.merge)({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:i.value,y:s.value,xAxis:i.axis.index,yAxis:s.axis.index},r:5}]},o.annotationsOptions,o.bindings.circleAnnotation.annotationsOptions))},steps:[function(t,e){let i,s=e.options.shapes,o=s&&s[0]&&s[0].point||{};if((0,r.isNumber)(o.xAxis)&&(0,r.isNumber)(o.yAxis)){let e=this.chart.inverted,s=this.chart.xAxis[o.xAxis].toPixels(o.x),n=this.chart.yAxis[o.yAxis].toPixels(o.y);i=Math.max(Math.sqrt(Math.pow(e?n-t.chartX:s-t.chartX,2)+Math.pow(e?s-t.chartY:n-t.chartY,2)),5)}e.update({shapes:[{r:i}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&tR(e.xAxis),s=e&&tR(e.yAxis),o=this.chart.options.navigation;if(i&&s)return this.chart.addAnnotation((0,r.merge)({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:i.axis.index,yAxis:s.axis.index,points:[{x:i.value,y:s.value},{x:i.value,y:s.value}],ry:1}]},o.annotationsOptions,o.bindings.ellipseAnnotation.annotationsOptions))},steps:[function(t,e){let i=e.shapes[0],s=i.getAbsolutePosition(i.points[1]);i.translatePoint(t.chartX-s.x,t.chartY-s.y,1),i.redraw(!1)},function(t,e){let i=e.shapes[0],s=i.getAbsolutePosition(i.points[0]),o=i.getAbsolutePosition(i.points[1]),n=i.getDistanceFromLine(s,o,t.chartX,t.chartY),a=i.getYAxis(),r=Math.abs(a.toValue(0)-a.toValue(n));i.setYRadius(r),i.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&tR(e.xAxis),s=e&&tR(e.yAxis);if(!i||!s)return;let o=i.value,n=s.value,a=i.axis.index,h=s.axis.index,l=this.chart.options.navigation;return this.chart.addAnnotation((0,r.merge)({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:a,yAxis:h,x:o,y:n},{xAxis:a,yAxis:h,x:o,y:n},{xAxis:a,yAxis:h,x:o,y:n},{xAxis:a,yAxis:h,x:o,y:n},{command:"Z"}]}]},l.annotationsOptions,l.bindings.rectangleAnnotation.annotationsOptions))},steps:[function(t,e){let i=e.options.shapes,s=i&&i[0]&&i[0].points||[],o=this.chart.pointer?.getCoordinates(t),n=o&&tR(o.xAxis),a=o&&tR(o.yAxis);if(n&&a){let t=n.value,i=a.value;s[1].x=t,s[2].x=t,s[2].y=i,s[3].y=i,e.update({shapes:[{points:s}]})}}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),i=e&&tR(e.xAxis),s=e&&tR(e.yAxis),o=this.chart.options.navigation;if(i&&s)return this.chart.addAnnotation((0,r.merge)({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}",overflow:"none",crop:!0},labels:[{point:{xAxis:i.axis.index,yAxis:s.axis.index,x:i.value,y:s.value}}]},o.annotationsOptions,o.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}},{setOptions:tj}=h(),{format:tz}=R(),{composed:tV,doc:tq,win:t$}=h(),{getAssignedAxis:tH,getFieldType:tG}=tU;function tK(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}function t_(){this.navigationBindings&&this.navigationBindings.destroy()}function tZ(){let t=this.options;t&&t.navigation&&t.navigation.bindings&&(this.navigationBindings=new t2(this,t.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function tJ(){let t=this.navigationBindings,e="highcharts-disabled-btn";if(this&&t){let i=!1;if(this.series.forEach(t=>{!t.options.isInternal&&t.visible&&(i=!0)}),this.navigationBindings&&this.navigationBindings.container&&this.navigationBindings.container[0]){let s=this.navigationBindings.container[0];(0,r.objectEach)(t.boundClassNames,(t,o)=>{let n=s.querySelectorAll("."+o);if(n)for(let s=0;s<n.length;s++){let o=n[s],a=o.className;"normal"===t.noDataState||i?-1!==a.indexOf(e)&&o.classList.remove(e):-1===a.indexOf(e)&&(o.className+=" "+e)}})}}}function tQ(){this.deselectAnnotation()}function t0(){this.selectedButtonElement=null}function t1(t){let e,i,s=t.prototype.defaultOptions.events&&t.prototype.defaultOptions.events.click;function o(t){let e=this,i=e.chart.navigationBindings,o=i.activeAnnotation;s&&s.call(e,t),o!==e?(i.deselectAnnotation(),i.activeAnnotation=e,e.setControlPointsVisibility(!0),(0,r.fireEvent)(i,"showPopup",{annotation:e,formType:"annotation-toolbar",options:i.annotationToFields(e),onSubmit:function(t){if("remove"===t.actionType)i.activeAnnotation=!1,i.chart.removeAnnotation(e);else{let s={};i.fieldsToOptions(t.fields,s),i.deselectAnnotation();let o=s.typeOptions;"measure"===e.options.type&&(o.crosshairY.enabled=0!==o.crosshairY.strokeWidth,o.crosshairX.enabled=0!==o.crosshairX.strokeWidth),e.update(s)}}})):(0,r.fireEvent)(i,"closePopup"),t.activeAnnotation=!0}(0,r.merge)(!0,t.prototype.defaultOptions.events,{click:o,touchstart:function(t){e=t.touches[0].clientX,i=t.touches[0].clientY},touchend:function(t){e&&Math.sqrt(Math.pow(e-t.changedTouches[0].clientX,2)+Math.pow(i-t.changedTouches[0].clientY,2))>=4||o.call(this,t)}})}class t2{static compose(t,e){(0,r.pushUnique)(tV,"NavigationBindings")&&((0,r.addEvent)(t,"remove",tK),t1(t),(0,r.objectEach)(t.types,t=>{t1(t)}),(0,r.addEvent)(e,"destroy",t_),(0,r.addEvent)(e,"load",tZ),(0,r.addEvent)(e,"render",tJ),(0,r.addEvent)(t2,"closePopup",tQ),(0,r.addEvent)(t2,"deselectButton",t0),tj(tW))}constructor(t,e){this.boundClassNames=void 0,this.chart=t,this.options=e,this.eventsToUnbind=[],this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||""),this.container.length||(this.container=tq.getElementsByClassName(this.options.bindingsClassName||""))}getCoords(t){let e=this.chart.pointer?.getCoordinates(t);return[e&&tH(e.xAxis),e&&tH(e.yAxis)]}initEvents(){let t=this,e=t.chart,i=t.container,s=t.options;t.boundClassNames={},(0,r.objectEach)(s.bindings||{},e=>{t.boundClassNames[e.className]=e}),[].forEach.call(i,e=>{t.eventsToUnbind.push((0,r.addEvent)(e,"click",i=>{let s=t.getButtonEvents(e,i);s&&!s.button.classList.contains("highcharts-disabled-btn")&&t.bindingsButtonClick(s.button,s.events,i)}))}),(0,r.objectEach)(s.events||{},(e,i)=>{(0,r.isFunction)(e)&&t.eventsToUnbind.push((0,r.addEvent)(t,i,e,{passive:!1}))}),t.eventsToUnbind.push((0,r.addEvent)(e.container,"click",function(i){!e.cancelClick&&e.isInsidePlot(i.chartX-e.plotLeft,i.chartY-e.plotTop,{visiblePlotOnly:!0})&&t.bindingsChartClick(this,i)})),t.eventsToUnbind.push((0,r.addEvent)(e.container,h().isTouchDevice?"touchmove":"mousemove",function(e){t.bindingsContainerMouseMove(this,e)},h().isTouchDevice?{passive:!1}:void 0))}initUpdate(){let t=this;tX.compose(this.chart).navigation.addUpdate(e=>{t.update(e)})}bindingsButtonClick(t,e,i){let s=this.chart,o=s.renderer.boxWrapper,n=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===t.classList&&(n=!1),(0,r.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&s.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1)),n?(this.selectedButton=e,this.selectedButtonElement=t,(0,r.fireEvent)(this,"selectButton",{button:t}),e.init&&e.init.call(this,t,i),(e.start||e.steps)&&s.renderer.boxWrapper.addClass("highcharts-draw-mode")):(s.stockTools&&t.classList.remove("highcharts-active"),o.removeClass("highcharts-draw-mode"),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null)}bindingsChartClick(t,e){t=this.chart;let i=this.activeAnnotation,s=this.selectedButton,o=t.renderer.boxWrapper;i&&(i.cancelClick||e.activeAnnotation||!e.target.parentNode||function(t,e){let i=t$.Element.prototype,s=i.matches||i.msMatchesSelector||i.webkitMatchesSelector,o=null;if(i.closest)o=i.closest.call(t,e);else do{if(s.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return o}(e.target,".highcharts-popup")?i.cancelClick&&setTimeout(()=>{i.cancelClick=!1},0):(0,r.fireEvent)(this,"closePopup")),s&&s.start&&(this.nextEvent?(this.nextEvent(e,this.currentUserDetails),this.steps&&(this.stepIndex++,s.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=s.steps[this.stepIndex]:((0,r.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),o.removeClass("highcharts-draw-mode"),s.end&&s.end.call(this,e,this.currentUserDetails),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null))):(this.currentUserDetails=s.start.call(this,e),this.currentUserDetails&&s.steps?(this.stepIndex=0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=s.steps[this.stepIndex]):((0,r.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),o.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,s.end&&s.end.call(this,e,this.currentUserDetails))))}bindingsContainerMouseMove(t,e){this.mouseMoveEvent&&this.mouseMoveEvent(e,this.currentUserDetails)}fieldsToOptions(t,e){return(0,r.objectEach)(t,(t,i)=>{let s=parseFloat(t),o=i.split("."),n=o.length-1;if(!(0,r.isNumber)(s)||t.match(/px|em/g)||i.match(/format/g)||i.match(/title/g)||(t=s),"undefined"!==t){let i=e;o.forEach((e,s)=>{if("__proto__"!==e&&"constructor"!==e){let a=(0,r.pick)(o[s+1],"");n===s?i[e]=t:(i[e]||(i[e]=a.match(/\d/g)?[]:{}),i=i[e])}})}}),e}deselectAnnotation(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)}annotationToFields(t){let e=t.options,i=t2.annotationsEditable,s=i.nestedOptions,o=(0,r.pick)(e.type,e.shapes?.[0]?.type,e.labels?.[0]?.type,"label"),n=t2.annotationsNonEditable[e.langKey]||[],a={langKey:e.langKey,type:o};function h(e,i,o,a,l){let c;o&&(0,r.defined)(e)&&-1===n.indexOf(i)&&((o.indexOf&&o.indexOf(i))>=0||o[i]||!0===o)&&((0,r.isArray)(e)?(a[i]=[],e.forEach((t,e)=>{(0,r.isObject)(t)?(a[i][e]={},(0,r.objectEach)(t,(t,o)=>{h(t,o,s[i],a[i][e],i)})):h(t,0,s[i],a[i],i)})):(0,r.isObject)(e)?(c={},(0,r.isArray)(a)?(a.push(c),c[i]={},c=c[i]):a[i]=c,(0,r.objectEach)(e,(t,e)=>{h(t,e,0===i?o:s[i],c,i)})):"format"===i?a[i]=[tz(e,t.labels[0].points[0]).toString(),"text"]:(0,r.isArray)(a)?a.push([e,tG(l,e)]):a[i]=[e,tG(i,e)])}return(0,r.objectEach)(e,(t,n)=>{"typeOptions"===n&&"basicAnnotation"!==a.type?(a[n]={},(0,r.objectEach)(e[n],(t,e)=>{h(t,e,s,a[n],e)})):h(t,n,i[o],a,n)}),a}getClickedClassNames(t,e){let i=e.target,s=[],o;for(;i&&i.tagName&&((o=(0,r.attr)(i,"class"))&&(s=s.concat(o.split(" ").map(t=>[t,i]))),(i=i.parentNode)!==t););return s}getButtonEvents(t,e){let i,s=this;return this.getClickedClassNames(t,e).forEach(t=>{s.boundClassNames[t[0]]&&!i&&(i={events:s.boundClassNames[t[0]],button:t[1]})}),i}update(t){this.options=(0,r.merge)(!0,this.options,t),this.removeEvents(),this.initEvents()}removeEvents(){this.eventsToUnbind.forEach(t=>t())}destroy(){this.removeEvents()}}t2.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill","strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],crookedLine:[],basicAnnotation:["shapes","labelOptions"]},t2.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]};let t9=h();t9.Annotation=t9.Annotation||tS,t9.NavigationBindings=t9.NavigationBindings||t2,t9.Annotation.compose(t9.Chart,t9.NavigationBindings,t9.Pointer,t9.SVGRenderer);let t5=h();export{t5 as default};
|
|
34
|
+
`},Q=(t,e,i)=>{let s,o=i[t];return"renderer"===e&&o?(o=encodeURIComponent(o),s=`url("data:image/svg+xml;charset=utf-8,${o}")`):s=e.startsWith("http")&&e.match(/\.(png|svg|jpe?g|gif)$/ig)?'url("'+e+'")':`url("${e}${t}")`,s},tt=class{constructor(t,e){this.iconsURL=e,this.container=this.createPopupContainer(t),this.closeButton=this.addCloseButton()}createPopupContainer(t,e="highcharts-popup highcharts-no-tooltip"){return(0,i.createElement)("div",{className:e},void 0,t)}addCloseButton(t="highcharts-popup-close"){let e=(0,i.createElement)("button",{className:t},void 0,this.container);return(0,i.createElement)("span",{className:"highcharts-icon"},{backgroundImage:Q("close.svg",this.iconsURL,J)},e),["click","touchstart"].forEach(t=>{(0,i.addEvent)(e,t,this.closeButtonEvents.bind(this))}),(0,i.addEvent)(document,"keydown",t=>{"Escape"===t.code&&this.closeButtonEvents()}),e}closeButtonEvents(){this.closePopup()}showPopup(t="highcharts-annotation-toolbar"){let e=this.container,i=this.closeButton;this.type=void 0,e.innerHTML=K().emptyHTML,e.className.indexOf(t)>=0&&(e.classList.remove(t),e.removeAttribute("style")),e.appendChild(i),e.style.display="block",e.style.height=""}closePopup(){this.container.style.display="none"}},te=t.default.Color;var ti=e.n(te);let{doc:ts,isFirefox:to}=h();function tn(t,e,s,o,n,a){let r,h;if(!e)return;let l=this.addInput,c=this.lang;(0,i.objectEach)(o,(o,a)=>{r=""!==s?s+"."+a:a,(0,i.isObject)(o)&&(!(0,i.isArray)(o)||(0,i.isArray)(o)&&(0,i.isObject)(o[0])?((h=c[a]||a).match(/\d/g)||n.push([!0,h,t]),tn.call(this,t,e,r,o,n,!1)):n.push([this,r,"annotation",t,o]))}),a&&((0,i.stableSort)(n,t=>t[1].match(/format/g)?-1:1),to&&n.reverse(),n.forEach(t=>{!0===t[0]?(0,i.createElement)("span",{className:"highcharts-annotation-title"},void 0,t[2]).appendChild(ts.createTextNode(t[1])):(t[4]={value:t[4][0],type:t[4][1]},l.apply(t[0],t.splice(1)))}))}let{doc:ta}=h(),{seriesTypes:tr}=k();(s=a||(a={}))[s["params.algorithm"]=0]="params.algorithm",s[s["params.average"]=1]="params.average";let th={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};function tl(t){let e=(0,i.createElement)("div",{className:"highcharts-popup-lhs-col"},void 0,t),s=(0,i.createElement)("div",{className:"highcharts-popup-rhs-col"},void 0,t);return(0,i.createElement)("div",{className:"highcharts-popup-rhs-col-wrapper"},void 0,s),{lhsCol:e,rhsCol:s}}function tc(t,e,s,o){let n=e.params||e.options.params;o.innerHTML=K().emptyHTML,(0,i.createElement)("h3",{className:"highcharts-indicator-title"},void 0,o).appendChild(ta.createTextNode(ty(e,s).indicatorFullName)),(0,i.createElement)("input",{type:"hidden",name:"highcharts-type-"+s,value:s},void 0,o),tx.call(this,s,"series",t,o,e,e.linkedParent&&e.linkedParent.options.id),n.volumeSeriesID&&tx.call(this,s,"volume",t,o,e,e.linkedParent&&n.volumeSeriesID),td.call(this,t,"params",n,s,o)}function tp(t,e,s,o){function n(e,s){let o=m.parentNode.children[1];tc.call(a,t,e,s,m),o&&(o.style.display="block"),c&&e.options&&(0,i.createElement)("input",{type:"hidden",name:"highcharts-id-"+s,value:e.options.id},void 0,m).setAttribute("highcharts-data-series-id",e.options.id)}let a=this,r=a.lang,h=e.querySelectorAll(".highcharts-popup-lhs-col")[0],l=e.querySelectorAll(".highcharts-popup-rhs-col")[0],c="edit"===s,p=c?t.series:t.options.plotOptions||{};if(!t&&p)return;let d,u=[];c||(0,i.isArray)(p)?(0,i.isArray)(p)&&(u=tv.call(this,p)):u=tf.call(this,p,o),(0,i.stableSort)(u,(t,e)=>{let i=t.indicatorFullName.toLowerCase(),s=e.indicatorFullName.toLowerCase();return i<s?-1:+(i>s)}),h.children[1]&&h.children[1].remove();let g=(0,i.createElement)("ul",{className:"highcharts-indicator-list"},void 0,h),m=l.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];if(u.forEach(t=>{let{indicatorFullName:e,indicatorType:s,series:o}=t;d=(0,i.createElement)("li",{className:"highcharts-indicator-list"},void 0,g);let a=(0,i.createElement)("button",{className:"highcharts-indicator-list-item",textContent:e},void 0,d);["click","touchstart"].forEach(t=>{(0,i.addEvent)(a,t,function(){n(o,s)})})}),u.length>0){let{series:t,indicatorType:e}=u[0];n(t,e)}else c||(K().setElementHTML(m.parentNode.children[0],r.noFilterMatch||""),m.parentNode.children[1].style.display="none")}function td(t,e,s,o,n){if(!t)return;let r=this.addInput;(0,i.objectEach)(s,(s,h)=>{let l=e+"."+h;if((0,i.defined)(s)&&l)if((0,i.isObject)(s)&&(r.call(this,l,o,n,{}),td.call(this,t,l,s,o,n)),l in a){let i=tg.call(this,o,l,n);tm.call(this,t,e,i,o,h,s)}else"params.volumeSeriesID"===l||(0,i.isArray)(s)||r.call(this,l,o,n,{value:s,type:"number"})})}function tu(t,e){let s=this,o=e.querySelectorAll(".highcharts-popup-lhs-col")[0],n=this.lang.clearFilter,a=(0,i.createElement)("div",{className:"highcharts-input-wrapper"},void 0,o),r=function(e){tp.call(s,t,s.container,"add",e)},h=this.addInput("searchIndicators","input",a,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),l=(0,i.createElement)("a",{textContent:n},void 0,a);h.classList.add("highcharts-input-search-indicators"),l.classList.add("clear-filter-button"),(0,i.addEvent)(h,"input",function(){r(this.value),this.value.length?l.style.display="inline-block":l.style.display="none"}),["click","touchstart"].forEach(t=>{(0,i.addEvent)(l,t,function(){h.value="",r(""),l.style.display="none"})})}function tg(t,e,s){let o=e.split("."),n=o[o.length-1],a="highcharts-"+e+"-type-"+t,r=this.lang;(0,i.createElement)("label",{htmlFor:a},null,s).appendChild(ta.createTextNode(r[n]||e));let h=(0,i.createElement)("select",{name:a,className:"highcharts-popup-field",id:"highcharts-select-"+e},null,s);return h.setAttribute("id","highcharts-select-"+e),h}function tm(t,e,s,o,n,a,r){"series"===e||"volume"===e?t.series.forEach(t=>{let o=t.options,n=o.name||o.params?t.name:o.id||"";"highcharts-navigator-series"!==o.id&&o.id!==(r&&r.options&&r.options.id)&&((0,i.defined)(a)||"volume"!==e||"column"!==t.type||(a=o.id),(0,i.createElement)("option",{value:o.id},void 0,s).appendChild(ta.createTextNode(n)))}):o&&n&&th[n+"-"+o].forEach(t=>{(0,i.createElement)("option",{value:t},void 0,s).appendChild(ta.createTextNode(t))}),(0,i.defined)(a)&&(s.value=a)}function tf(t,e){let s,o=this.chart&&this.chart.options.lang,n=o&&o.navigation&&o.navigation.popup&&o.navigation.popup.indicatorAliases,a=new Map;return(0,i.objectEach)(t,(t,i)=>{let o=t&&t.options;if(t.params||o&&o.params){let{indicatorFullName:o,indicatorType:r}=ty(t,i);if(e){let i=RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),h=n&&n[r]&&n[r].join(" ")||"";(o.match(i)||h.match(i))&&(s={indicatorFullName:o,indicatorType:r,series:t},a.set(r.toLowerCase(),s))}else s={indicatorFullName:o,indicatorType:r,series:t},a.set(r.toLowerCase(),s)}}),Array.from(a.values())}function tv(t){let e=[];return t.forEach(t=>{t.is("sma")&&e.push({indicatorFullName:t.name,indicatorType:t.type,series:t})}),e}function ty(t,e){let i=t.options,s=tr[e]&&tr[e].prototype.nameBase||e.toUpperCase(),o=e;return i&&i.type&&(o=t.options.type,s=t.name),{indicatorFullName:s,indicatorType:o}}function tx(t,e,s,o,n,a){if(!s)return;let r=tg.call(this,t,e,o);tm.call(this,s,e,r,void 0,void 0,void 0,n),(0,i.defined)(a)&&(r.value=a)}let{doc:tb}=h();function tA(){let t=this.container;return(0,i.createElement)("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,t)}function tE(t,e){let s=this.container,o=this.lang,n="highcharts-tab-item";0===e&&(n+=" highcharts-tab-disabled");let a=(0,i.createElement)("button",{className:n},void 0,s);return a.appendChild(tb.createTextNode(o[t+"Button"]||t)),a.setAttribute("highcharts-data-tab-type",t),a}function tw(){let t=this.container,e=t.querySelectorAll(".highcharts-tab-item"),i=t.querySelectorAll(".highcharts-tab-item-content");for(let t=0;t<e.length;t++)e[t].classList.remove("highcharts-tab-item-active"),i[t].classList.remove("highcharts-tab-item-show")}function tk(t,e){let i=this.container.querySelectorAll(".highcharts-tab-item-content");t.className+=" highcharts-tab-item-active",i[e].className+=" highcharts-tab-item-show"}function tC(t){let e=this;this.container.querySelectorAll(".highcharts-tab-item").forEach((s,o)=>{(0!==t||"edit"!==s.getAttribute("highcharts-data-tab-type"))&&["click","touchstart"].forEach(t=>{(0,i.addEvent)(s,t,function(){tw.call(e),tk.call(e,this,o)})})})}let{doc:tP}=h(),{getOptions:tO}=h();class tM extends tt{constructor(t,e,s){super(t,e),this.chart=s,this.lang=(tO().lang.navigation||{}).popup||{},(0,i.addEvent)(this.container,"mousedown",()=>{let t=s&&s.navigationBindings&&s.navigationBindings.activeAnnotation;if(t){t.cancelClick=!0;let e=(0,i.addEvent)(tP,"click",()=>{setTimeout(()=>{t.cancelClick=!1},0),e()})}})}addInput(t,e,s,o){let n=t.split("."),a=n[n.length-1],r=this.lang,h="highcharts-"+e+"-"+(o.htmlFor??a);if(a.match(/^\d+$/)||(0,i.createElement)("label",{htmlFor:h,className:o.labelClassName},void 0,s).appendChild(tP.createTextNode(r[a]||a)),"color"===o.type&&this.chart?.container)return this.createColorInput(t,h,o,s,this.chart.container);let l=(0,i.createElement)("input",{name:h,value:o.value,type:o.type,className:"highcharts-popup-field"},void 0,s);return l.setAttribute("highcharts-data-name",t),l}createColorInput(t,e,s,o,n){let{value:a,alpha:r}=function(t,e){let i=t=>("0"+Math.round(t).toString(16)).slice(-2).toUpperCase(),s=t=>{let[e,s,o,n]=ti().parse(t).rgba;return{value:"#"+i(e)+i(s)+i(o),alpha:n}};if(t.startsWith("rgb")||t.startsWith("rgba"))return s(t);if(t.startsWith("color")||t.startsWith("var")){let o=tP.createElement("span");o.style.setProperty("color",t),e.appendChild(o);let n=window.getComputedStyle(o).color;if(e.removeChild(o),n.startsWith("color")){let t=n.match(RegExp("color\\s*\\(\\s*srgb\\s+([\\d.]+)\\s+([\\d.]+)\\s+([\\d.]+)\\s+(?:\\s*\\/\\s*([\\d.]+))?\\s*\\)"));if(t){let e=Math.round(255*parseFloat(t[1])),s=Math.round(255*parseFloat(t[2])),o=Math.round(255*parseFloat(t[3])),n=t[4]?parseFloat(t[4]):1;return{value:"#"+i(e)+i(s)+i(o),alpha:n}}}if(n.startsWith("rgb")||n.startsWith("rgba"))return s(n)}return{value:t,alpha:1}}(s.value||"",n),h=ti().parse(s.value||"").rgba[3],l=isNaN(h)?r:h,c=(0,i.createElement)("div",{className:"highcharts-popup-color-wrapper"},void 0,o),p=(0,i.createElement)("input",{type:"color",value:a,className:"highcharts-popup-field highcharts-popup-field-color"},void 0,c),d=(0,i.createElement)("input",{name:e,id:e,value:a,type:"text",className:"highcharts-popup-field highcharts-popup-field-text"},void 0,c);d.setAttribute("highcharts-data-name",t);let u=(0,i.createElement)("span",{className:"highcharts-popup-color-separator"},void 0,c),g=(0,i.createElement)("input",{type:"number",value:String(Math.round(100*l)),className:"highcharts-popup-field highcharts-popup-opacity-percentage",min:"0",max:"100",step:"1"},void 0,c),m=(0,i.createElement)("span",{className:"highcharts-popup-opacity-percent-suffix"},void 0,c);m.appendChild(tP.createTextNode(" %"));let f=(0,i.createElement)("input",{type:"range",value:String(Math.round(100*l)),className:"highcharts-popup-opacity-slider",min:"0",max:"100",step:"1"},void 0,o);f.style.setProperty("--highcharts-popup-opacity-track-color",a),f.style.setProperty("display","none");let v=()=>{let t=/^#[0-9A-Fa-f]{6}$/.test(d.value);u.style.display=t?"":"none",g.style.display=t?"":"none",m.style.display=t?"":"none"};v();let y=t=>{let e=t.target,s=(0,i.clamp)(Number(e.value),0,100);f.value=String(s),g.value=String(Math.round(s))},x=t=>{t.target===p?d.value=p.value.toUpperCase():p.value=d.value,f.style.setProperty("--highcharts-popup-opacity-track-color",p.value),v()};return(0,i.addEvent)(o,"mousedown",t=>{t.target!==g&&t.target!==f&&(f.style.display="none")}),(0,i.addEvent)(g,"focus",()=>{f.style.display=""}),(0,i.addEvent)(g,"input",y),(0,i.addEvent)(f,"input",y),(0,i.addEvent)(p,"input",x),(0,i.addEvent)(d,"input",x),c}closeButtonEvents(){if(this.chart){let t=this.chart.navigationBindings;(0,i.fireEvent)(t,"closePopup"),t&&t.selectedButtonElement&&(0,i.fireEvent)(t,"deselectButton",{button:t.selectedButtonElement})}else super.closeButtonEvents()}addButton(t,e,s,o,n){let a=(0,i.createElement)("button",void 0,void 0,t);return a.appendChild(tP.createTextNode(e)),n&&["click","touchstart"].forEach(t=>{(0,i.addEvent)(a,t,()=>{let t,e,i,a,r;return this.closePopup(),n((t=Array.prototype.slice.call(o.querySelectorAll("input")),e=Array.prototype.slice.call(o.querySelectorAll("select")),i=o.querySelectorAll("#highcharts-select-series > option:checked")[0],a=o.querySelectorAll("#highcharts-select-volume > option:checked")[0],r={actionType:s,linkedTo:i&&i.getAttribute("value")||"",fields:{}},t.forEach(t=>{let e=t.getAttribute("highcharts-data-name");if(t.getAttribute("highcharts-data-series-id"))r.seriesId=t.value;else if(e){let i=t.closest(".highcharts-popup-color-wrapper"),s=i?.querySelector(".highcharts-popup-opacity-percentage"),o=s?Number(s.value)/100:1;if(s){let i=ti().parse(t.value).rgba;r.fields[e]=Number.isNaN(i[0])?t.value:`rgba(${i[0]},${i[1]},${i[2]},${o})`}else r.fields[e]=t.value}else r.type=t.value}),e.forEach(t=>{let e=t.id;if("highcharts-select-series"!==e&&"highcharts-select-volume"!==e){let i=e.split("highcharts-select-")[1];r.fields[i]=t.value}}),a&&(r.fields["params.volumeSeriesID"]=a.getAttribute("value")||""),r))})}),a}showForm(t,e,i,s){e&&(this.showPopup(),"indicators"===t&&this.indicators.addForm.call(this,e,i,s),"annotation-toolbar"===t&&this.annotations.addToolbar.call(this,e,i,s),"annotation-edit"===t&&this.annotations.addForm.call(this,e,i,s),"flag"===t&&this.annotations.addForm.call(this,e,i,s,!0),this.type=t,this.container.style.height=this.container.offsetHeight+"px")}}(0,i.extend)(tM.prototype,{annotations:{addForm:function(t,e,s,o){if(!t)return;let n=this.container,a=this.lang,r=(0,i.createElement)("h2",{className:"highcharts-popup-main-title"},void 0,n);r.appendChild(ts.createTextNode(a[e.langKey]||e.langKey||"")),r=(0,i.createElement)("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,n);let h=(0,i.createElement)("div",{className:"highcharts-popup-bottom-row"},void 0,n);tn.call(this,r,t,"",e,[],!0),this.addButton(h,o?a.addButton||"Add":a.saveButton||"Save",o?"add":"save",n,s)},addToolbar:function(t,e,s){let o=this.lang,n=this.container,a=this.showForm,r="highcharts-annotation-toolbar";-1===n.className.indexOf(r)&&(n.className+=" "+r+" highcharts-no-mousewheel"),t&&(n.style.top=t.plotTop+10+"px");let h=(0,i.createElement)("p",{className:"highcharts-annotation-label"},void 0,n);h.setAttribute("aria-label","Annotation type"),h.appendChild(ts.createTextNode((o[e.langKey]||e.langKey)??(e.shapes&&e.shapes[0].type)??""));let l=this.addButton(n,o.editButton||"Edit","edit",n,()=>{a.call(this,"annotation-edit",t,e,s)});l.className+=" highcharts-annotation-edit-button",(0,i.createElement)("span",{className:"highcharts-icon"},{backgroundImage:Q("edit.svg",this.iconsURL,J)},l),l=this.addButton(n,o.removeButton||"Remove","remove",n,s),l.className+=" highcharts-annotation-remove-button",(0,i.createElement)("span",{className:"highcharts-icon"},{backgroundImage:Q("destroy.svg",this.iconsURL,J)},l)}},indicators:{addForm:function(t,e,i){let s,o=this.lang;if(!t)return;this.tabs.init.call(this,t);let n=this.container.querySelectorAll(".highcharts-tab-item-content");tl(n[0]),tu.call(this,t,n[0]),tp.call(this,t,n[0],"add"),s=n[0].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(s,o.addButton||"add","add",s,i),tl(n[1]),tp.call(this,t,n[1],"edit"),s=n[1].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(s,o.saveButton||"save","edit",s,i),this.addButton(s,o.removeButton||"remove","remove",s,i)},getAmount:function(){let t=0;return this.series.forEach(e=>{(e.params||e.options.params)&&t++}),t}},tabs:{init:function(t){if(!t)return;let e=this.indicators.getAmount.call(t),i=tE.call(this,"add");tE.call(this,"edit",e),tA.call(this),tA.call(this),tC.call(this,e),tk.call(this,i,0)}}});let{composed:tN}=h();function tB(){this.popup&&this.popup.closePopup()}function tT(t){this.popup||(this.popup=new tM(this.chart.container,this.chart.options.navigation.iconsURL||this.chart.options.stockTools&&this.chart.options.stockTools.gui.iconsURL||"renderer",this.chart)),this.popup.showForm(t.formType,this.chart,t.options,t.onSubmit)}function tL(t,e){this.inClass(e.target,"highcharts-popup")||t.apply(this,Array.prototype.slice.call(arguments,1))}let tI=function(t,e){(0,i.pushUnique)(tN,"Popup")&&((0,i.addEvent)(t,"closePopup",tB),(0,i.addEvent)(t,"showPopup",tT),(0,i.wrap)(e.prototype,"onContainerMouseDown",tL))},{defaultOptions:tS}=h();function tD(t,e){let s={};return["labels","shapes"].forEach(o=>{let n=t[o],a=e[o];n&&(a?s[o]=(0,i.splat)(a).map((t,e)=>(0,i.merge)(n[e],t)):s[o]=t[o])}),s}class tY extends x{static compose(t,e,i,s){m.compose(tY,t,i),$.compose(s),F.compose(t,s),e.compose(tY,t),tI(e,i)}constructor(t,e){super(),this.coll="annotations",this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.index=-1,this.labels=[],this.shapes=[],this.setOptions(e),this.userOptions=e;let i=tD(this.options,e);this.options.labels=i.labels,this.options.shapes=i.shapes,this.init(t,this.options)}addClipPaths(){this.setClipAxes(),this.clipXAxis&&this.clipYAxis&&this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))}addLabels(){let t=this.options.labels||[];t.forEach((e,s)=>{let o=this.initLabel(e,s);(0,i.merge)(!0,t[s],o.options)})}addShapes(){let t=this.options.shapes||[];t.forEach((e,s)=>{let o=this.initShape(e,s);(0,i.merge)(!0,t[s],o.options)})}destroy(){let t=this.chart,e=function(t){t.destroy()};this.labels.forEach(e),this.shapes.forEach(e),this.clipXAxis=null,this.clipYAxis=null,(0,i.erase)(t.labelCollectors,this.labelCollector),super.destroy(),this.destroyControlTarget(),(0,i.destroyObjectProperties)(this,t)}destroyItem(t){(0,i.erase)(this[t.itemType+"s"],t),t.destroy()}getClipBox(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}}initProperties(t,e){this.setOptions(e);let i=tD(this.options,e);this.options.labels=i.labels,this.options.shapes=i.shapes,this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.userOptions=e,this.labels=[],this.shapes=[]}init(t,e,s=this.index){let o=this.chart,n=this.options.animation;this.index=s,this.linkPoints(),this.addControlPoints(),this.addShapes(),this.addLabels(),this.setLabelCollector(),this.animationConfig=(0,i.getDeferredAnimation)(o,n)}initLabel(t,e){this.options.labelOptions?.align;let s=new $(this,(0,i.merge)(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},t),e);return s.itemType="label",this.labels.push(s),s}initShape(t,e){let s=(0,i.merge)(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},t),o=new tY.shapesMap[s.type||"rect"](this,s,e);return o.itemType="shape",this.shapes.push(o),o}redraw(t){this.linkPoints(),this.graphic||this.render(),this.clipRect&&this.clipRect.animate(this.getClipBox()),this.redrawItems(this.shapes,t),this.redrawItems(this.labels,t),this.redrawControlPoints(t)}redrawItem(t,e){if(t.linkPoints(),t.shouldBeDrawn()){let i,s;t.graphic||this.renderItem(t),t.redraw((e??!0)&&t.graphic.placed),t.points.length&&(i=t.graphic,s=t.points.some(t=>!1!==t.series.visible&&!1!==t.visible),i&&(s?"hidden"===i.visibility&&i.show():i.hide()))}else this.destroyItem(t)}redrawItems(t,e){let i=t.length;for(;i--;)this.redrawItem(t[i],e)}remove(){return this.chart.removeAnnotation(this)}render(){let t=this.chart.renderer;this.graphic=t.g("annotation").addClass(this.options.className||"").attr({opacity:0,zIndex:this.options.zIndex,visibility:this.options.visible?"inherit":"hidden"}).add(),this.shapesGroup=t.g("annotation-shapes").add(this.graphic),this.options.crop&&this.shapesGroup.clip(this.chart.plotBoxClip),this.labelsGroup=t.g("annotation-labels").attr({translateX:0,translateY:0}).add(this.graphic),this.addClipPaths(),this.clipRect&&this.graphic.clip(this.clipRect),this.renderItems(this.shapes),this.renderItems(this.labels),this.addEvents(),this.renderControlPoints()}renderItem(t){t.render("label"===t.itemType?this.labelsGroup:this.shapesGroup)}renderItems(t){let e=t.length;for(;e--;)this.renderItem(t[e])}setClipAxes(){let t=this.chart.xAxis,e=this.chart.yAxis,i=[...this.options.labels??[],...this.options.shapes??[]].reduce((i,s)=>{let o=s&&(s.point||"points"in s&&s.points?.[0]);return[t[o&&o.xAxis]||i[0],e[o&&o.yAxis]||i[1]]},[]);this.clipXAxis=i[0],this.clipYAxis=i[1]}setControlPointsVisibility(t){let e=function(e){e.setControlPointsVisibility(t)};this.controlPoints.forEach(e=>{e.setVisibility(t)}),this.shapes.forEach(e),this.labels.forEach(e)}setLabelCollector(){let t=this;t.labelCollector=function(){return t.labels.reduce(function(t,e){return e.options.allowOverlap||t.push(e.graphic),t},[])},t.chart.labelCollectors.push(t.labelCollector)}setOptions(t){var e;this.options=(0,i.merge)(this.defaultOptions,t.type&&this.defaultOptions.types?.[t.type]||{},t),(e=this.options).typeOptions||(e.typeOptions={})}setVisibility(t){let e=this.options,s=this.chart.navigationBindings,o=t??!e.visible;if(this.graphic.attr("visibility",o?"inherit":"hidden"),!o){let t=function(t){t.setControlPointsVisibility(o)};this.shapes.forEach(t),this.labels.forEach(t),s.activeAnnotation===this&&s.popup&&"annotation-toolbar"===s.popup.type&&(0,i.fireEvent)(s,"closePopup")}e.visible=o}update(t,e){let s=this.chart,o=tD(this.userOptions,t),n=s.annotations.indexOf(this),a=(0,i.merge)(!0,this.userOptions,t);a.labels=o.labels,a.shapes=o.shapes,this.destroy(),this.initProperties(s,a),this.init(s,a),s.options.annotations[n]=this.options,this.isUpdating=!0,(e??!0)&&s.drawAnnotations(),(0,i.fireEvent)(this,"afterUpdate"),this.isUpdating=!1}}tY.ControlPoint=b,tY.MockPoint=O,tY.shapesMap={rect:U,circle:R,ellipse:W,path:F,image:H},tY.types={},tY.prototype.defaultOptions=f,tS.annotations=f,tY.prototype.nonDOMEvents=["add","afterUpdate","drag","remove"],M.compose(tY);var tX=r||(r={});tX.compose=function(t){return t.navigation||(t.navigation=new tF(t)),t};class tF{constructor(t){this.updates=[],this.chart=t}addUpdate(t){this.chart.navigation.updates.push(t)}update(t,e){this.updates.forEach(i=>{i.call(this.chart,t,e)})}}tX.Additions=tF;let tU=r,{getAssignedAxis:tR}=E,tW={lang:{navigation:{popup:{simpleShapes:"Simple shapes",lines:"Lines",circle:"Circle",ellipse:"Ellipse",rectangle:"Rectangle",label:"Label",shapeOptions:"Shape options",typeOptions:"Details",fill:"Fill",format:"Text",strokeWidth:"Line width",stroke:"Line color",title:"Title",name:"Name",labelOptions:"Label options",labels:"Labels",backgroundColor:"Background color",backgroundColors:"Background colors",borderColor:"Border color",borderRadius:"Border radius",borderWidth:"Border width",style:"Style",padding:"Padding",fontSize:"Font size",color:"Color",height:"Height",shapes:"Shape options"}}},navigation:{bindingsClassName:"highcharts-bindings-container",bindings:{circleAnnotation:{className:"highcharts-circle-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),s=e&&tR(e.xAxis),o=e&&tR(e.yAxis),n=this.chart.options.navigation;if(s&&o)return this.chart.addAnnotation((0,i.merge)({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:s.value,y:o.value,xAxis:s.axis.index,yAxis:o.axis.index},r:5}]},n.annotationsOptions,n.bindings.circleAnnotation.annotationsOptions))},steps:[function(t,e){let s,o=e.options.shapes,n=o&&o[0]&&o[0].point||{};if((0,i.isNumber)(n.xAxis)&&(0,i.isNumber)(n.yAxis)){let e=this.chart.inverted,i=this.chart.xAxis[n.xAxis].toPixels(n.x),o=this.chart.yAxis[n.yAxis].toPixels(n.y);s=Math.max(Math.sqrt(Math.pow(e?o-t.chartX:i-t.chartX,2)+Math.pow(e?i-t.chartY:o-t.chartY,2)),5)}e.update({shapes:[{r:s}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),s=e&&tR(e.xAxis),o=e&&tR(e.yAxis),n=this.chart.options.navigation;if(s&&o)return this.chart.addAnnotation((0,i.merge)({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:s.axis.index,yAxis:o.axis.index,points:[{x:s.value,y:o.value},{x:s.value,y:o.value}],ry:1}]},n.annotationsOptions,n.bindings.ellipseAnnotation.annotationsOptions))},steps:[function(t,e){let i=e.shapes[0],s=i.getAbsolutePosition(i.points[1]);i.translatePoint(t.chartX-s.x,t.chartY-s.y,1),i.redraw(!1)},function(t,e){let i=e.shapes[0],s=i.getAbsolutePosition(i.points[0]),o=i.getAbsolutePosition(i.points[1]),n=i.getDistanceFromLine(s,o,t.chartX,t.chartY),a=i.getYAxis(),r=Math.abs(a.toValue(0)-a.toValue(n));i.setYRadius(r),i.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),s=e&&tR(e.xAxis),o=e&&tR(e.yAxis);if(!s||!o)return;let n=s.value,a=o.value,r=s.axis.index,h=o.axis.index,l=this.chart.options.navigation;return this.chart.addAnnotation((0,i.merge)({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:r,yAxis:h,x:n,y:a},{xAxis:r,yAxis:h,x:n,y:a},{xAxis:r,yAxis:h,x:n,y:a},{xAxis:r,yAxis:h,x:n,y:a},{command:"Z"}]}]},l.annotationsOptions,l.bindings.rectangleAnnotation.annotationsOptions))},steps:[function(t,e){let i=e.options.shapes,s=i&&i[0]&&i[0].points||[],o=this.chart.pointer?.getCoordinates(t),n=o&&tR(o.xAxis),a=o&&tR(o.yAxis);if(n&&a){let t=n.value,i=a.value;s[1].x=t,s[2].x=t,s[2].y=i,s[3].y=i,e.update({shapes:[{points:s}]})}}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(t){let e=this.chart.pointer?.getCoordinates(t),s=e&&tR(e.xAxis),o=e&&tR(e.yAxis),n=this.chart.options.navigation;if(s&&o)return this.chart.addAnnotation((0,i.merge)({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}",overflow:"none",crop:!0},labels:[{point:{xAxis:s.axis.index,yAxis:o.axis.index,x:s.value,y:o.value}}]},n.annotationsOptions,n.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}},{setOptions:tj}=h(),{format:tz}=z(),{composed:tV,doc:tq,win:t$}=h(),{getAssignedAxis:tH,getFieldType:tG}=E;function tK(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}function t_(){this.navigationBindings&&this.navigationBindings.destroy()}function tZ(){let t=this.options;t&&t.navigation&&t.navigation.bindings&&(this.navigationBindings=new t2(this,t.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function tJ(){let t=this.navigationBindings,e="highcharts-disabled-btn";if(this&&t){let s=!1;if(this.series.forEach(t=>{!t.options.isInternal&&t.visible&&(s=!0)}),this.navigationBindings&&this.navigationBindings.container&&this.navigationBindings.container[0]){let o=this.navigationBindings.container[0];(0,i.objectEach)(t.boundClassNames,(t,i)=>{let n=o.querySelectorAll("."+i);if(n)for(let i=0;i<n.length;i++){let o=n[i],a=o.className;"normal"===t.noDataState||s?-1!==a.indexOf(e)&&o.classList.remove(e):-1===a.indexOf(e)&&(o.className+=" "+e)}})}}}function tQ(){this.deselectAnnotation()}function t0(){this.selectedButtonElement=null}function t1(t){let e,s,o=t.prototype.defaultOptions.events&&t.prototype.defaultOptions.events.click;function n(t){let e=this,s=e.chart.navigationBindings,n=s.activeAnnotation;o&&o.call(e,t),n!==e?(s.deselectAnnotation(),s.activeAnnotation=e,e.setControlPointsVisibility(!0),(0,i.fireEvent)(s,"showPopup",{annotation:e,formType:"annotation-toolbar",options:s.annotationToFields(e),onSubmit:function(t){if("remove"===t.actionType)s.activeAnnotation=!1,s.chart.removeAnnotation(e);else{let i={};s.fieldsToOptions(t.fields,i),s.deselectAnnotation();let o=i.typeOptions;"measure"===e.options.type&&(o.crosshairY.enabled=0!==o.crosshairY.strokeWidth,o.crosshairX.enabled=0!==o.crosshairX.strokeWidth),e.update(i)}}})):(0,i.fireEvent)(s,"closePopup"),t.activeAnnotation=!0}(0,i.merge)(!0,t.prototype.defaultOptions.events,{click:n,touchstart:function(t){e=t.touches[0].clientX,s=t.touches[0].clientY},touchend:function(t){e&&Math.sqrt(Math.pow(e-t.changedTouches[0].clientX,2)+Math.pow(s-t.changedTouches[0].clientY,2))>=4||n.call(this,t)}})}class t2{static compose(t,e){(0,i.pushUnique)(tV,"NavigationBindings")&&((0,i.addEvent)(t,"remove",tK),t1(t),(0,i.objectEach)(t.types,t=>{t1(t)}),(0,i.addEvent)(e,"destroy",t_),(0,i.addEvent)(e,"load",tZ),(0,i.addEvent)(e,"render",tJ),(0,i.addEvent)(t2,"closePopup",tQ),(0,i.addEvent)(t2,"deselectButton",t0),tj(tW))}constructor(t,e){this.boundClassNames=void 0,this.chart=t,this.options=e,this.eventsToUnbind=[],this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||""),this.container.length||(this.container=tq.getElementsByClassName(this.options.bindingsClassName||""))}getCoords(t){let e=this.chart.pointer?.getCoordinates(t);return[e&&tH(e.xAxis),e&&tH(e.yAxis)]}initEvents(){let t=this,e=t.chart,s=t.container,o=t.options;t.boundClassNames={},(0,i.objectEach)(o.bindings||{},e=>{t.boundClassNames[e.className]=e}),[].forEach.call(s,e=>{t.eventsToUnbind.push((0,i.addEvent)(e,"click",i=>{let s=t.getButtonEvents(e,i);s&&!s.button.classList.contains("highcharts-disabled-btn")&&t.bindingsButtonClick(s.button,s.events,i)}))}),(0,i.objectEach)(o.events||{},(e,s)=>{(0,i.isFunction)(e)&&t.eventsToUnbind.push((0,i.addEvent)(t,s,e,{passive:!1}))}),t.eventsToUnbind.push((0,i.addEvent)(e.container,"click",function(i){!e.cancelClick&&e.isInsidePlot(i.chartX-e.plotLeft,i.chartY-e.plotTop,{visiblePlotOnly:!0})&&t.bindingsChartClick(this,i)})),t.eventsToUnbind.push((0,i.addEvent)(e.container,h().isTouchDevice?"touchmove":"mousemove",function(e){t.bindingsContainerMouseMove(this,e)},h().isTouchDevice?{passive:!1}:void 0))}initUpdate(){let t=this;tU.compose(this.chart).navigation.addUpdate(e=>{t.update(e)})}bindingsButtonClick(t,e,s){let o=this.chart,n=o.renderer.boxWrapper,a=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===t.classList&&(a=!1),(0,i.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&o.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1)),a?(this.selectedButton=e,this.selectedButtonElement=t,(0,i.fireEvent)(this,"selectButton",{button:t}),e.init&&e.init.call(this,t,s),(e.start||e.steps)&&o.renderer.boxWrapper.addClass("highcharts-draw-mode")):(o.stockTools&&t.classList.remove("highcharts-active"),n.removeClass("highcharts-draw-mode"),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null)}bindingsChartClick(t,e){t=this.chart;let s=this.activeAnnotation,o=this.selectedButton,n=t.renderer.boxWrapper;s&&(s.cancelClick||e.activeAnnotation||!e.target.parentNode||function(t,e){let i=t$.Element.prototype,s=i.matches||i.msMatchesSelector||i.webkitMatchesSelector,o=null;if(i.closest)o=i.closest.call(t,e);else do{if(s.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return o}(e.target,".highcharts-popup")?s.cancelClick&&setTimeout(()=>{s.cancelClick=!1},0):(0,i.fireEvent)(this,"closePopup")),o&&o.start&&(this.nextEvent?(this.nextEvent(e,this.currentUserDetails),this.steps&&(this.stepIndex++,o.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=o.steps[this.stepIndex]:((0,i.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),n.removeClass("highcharts-draw-mode"),o.end&&o.end.call(this,e,this.currentUserDetails),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null))):(this.currentUserDetails=o.start.call(this,e),this.currentUserDetails&&o.steps?(this.stepIndex=0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=o.steps[this.stepIndex]):((0,i.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),n.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,o.end&&o.end.call(this,e,this.currentUserDetails))))}bindingsContainerMouseMove(t,e){this.mouseMoveEvent&&this.mouseMoveEvent(e,this.currentUserDetails)}fieldsToOptions(t,e){return(0,i.objectEach)(t,(t,s)=>{let o=parseFloat(t),n=s.split("."),a=n.length-1;if(!(0,i.isNumber)(o)||t.match(/px|em/g)||s.match(/format/g)||s.match(/title/g)||(t=o),"undefined"!==t){let i=e;n.forEach((e,s)=>{if("__proto__"!==e&&"constructor"!==e){let o=n[s+1]??"";a===s?i[e]=t:(i[e]||(i[e]=o.match(/\d/g)?[]:{}),i=i[e])}})}}),e}deselectAnnotation(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)}annotationToFields(t){let e=t.options,s=t2.annotationsEditable,o=s.nestedOptions,n=e.type??e.shapes?.[0]?.type??e.labels?.[0]?.type??"label",a=t2.annotationsNonEditable[e.langKey]||[],r={langKey:e.langKey,type:n};function h(e,s,n,r,l){let c;n&&(0,i.defined)(e)&&-1===a.indexOf(s)&&((n.indexOf&&n.indexOf(s))>=0||n[s]||!0===n)&&((0,i.isArray)(e)?(r[s]=[],e.forEach((t,e)=>{(0,i.isObject)(t)?(r[s][e]={},(0,i.objectEach)(t,(t,i)=>{h(t,i,o[s],r[s][e],s)})):h(t,0,o[s],r[s],s)})):(0,i.isObject)(e)?(c={},(0,i.isArray)(r)?(r.push(c),c[s]={},c=c[s]):r[s]=c,(0,i.objectEach)(e,(t,e)=>{h(t,e,0===s?n:o[s],c,s)})):"format"===s?r[s]=[tz(e,t.labels[0].points[0]).toString(),"text"]:(0,i.isArray)(r)?r.push([e,tG(l,e)]):r[s]=[e,tG(s,e)])}return(0,i.objectEach)(e,(t,a)=>{"typeOptions"===a&&"basicAnnotation"!==r.type?(r[a]={},(0,i.objectEach)(e[a],(t,e)=>{h(t,e,o,r[a],e)})):h(t,a,s[n],r,a)}),r}getClickedClassNames(t,e){let s=e.target,o=[],n;for(;s&&s.tagName&&((n=(0,i.attr)(s,"class"))&&(o=o.concat(n.split(" ").map(t=>[t,s]))),(s=s.parentNode)!==t););return o}getButtonEvents(t,e){let i,s=this;return this.getClickedClassNames(t,e).forEach(t=>{s.boundClassNames[t[0]]&&!i&&(i={events:s.boundClassNames[t[0]],button:t[1]})}),i}update(t){this.options=(0,i.merge)(!0,this.options,t),this.removeEvents(),this.initEvents()}removeEvents(){this.eventsToUnbind.forEach(t=>t())}destroy(){this.removeEvents()}}t2.annotationsEditable={nestedOptions:{labelOptions:["style","format","backgroundColor"],labels:["style"],label:["style"],style:["fontSize","color"],background:["fill","strokeWidth","stroke"],innerBackground:["fill","strokeWidth","stroke"],outerBackground:["fill","strokeWidth","stroke"],shapeOptions:["fill","strokeWidth","stroke"],shapes:["fill","strokeWidth","stroke"],line:["strokeWidth","stroke"],backgroundColors:[!0],connector:["fill","strokeWidth","stroke"],crosshairX:["strokeWidth","stroke"],crosshairY:["strokeWidth","stroke"]},circle:["shapes"],ellipse:["shapes"],verticalLine:[],label:["labelOptions"],measure:["background","crosshairY","crosshairX"],fibonacci:[],tunnel:["background","line","height"],pitchfork:["innerBackground","outerBackground"],rect:["shapes"],crookedLine:[],basicAnnotation:["shapes","labelOptions"]},t2.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]};let t9=h();t9.Annotation=t9.Annotation||tY,t9.NavigationBindings=t9.NavigationBindings||t2,t9.Annotation.compose(t9.Chart,t9.NavigationBindings,t9.Pointer,t9.SVGRenderer);let t5=h();export{t5 as default};
|