/*
 Highcharts JS v10.3.3 (2023-01-20)

 (c) 2009-2021 Sebastian Bochan, Rafal Sebestjanski

 License: www.highcharts.com/license
*/
(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/dumbbell",["highcharts"],function(h){a(h);a.Highcharts=h;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function h(a,e,l,d){a.hasOwnProperty(e)||(a[e]=d.apply(null,l),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:a[e]}})))}a=a?a._modules:{};h(a,
"Series/AreaRange/AreaRangePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,e){var l=this&&this.__extends||function(){var a=function(b,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var f in b)b.hasOwnProperty(f)&&(a[f]=b[f])};return a(b,m)};return function(b,m){function f(){this.constructor=b}a(b,m);b.prototype=null===m?Object.create(m):(f.prototype=m.prototype,new f)}}();a=a.seriesTypes.area.prototype;var d=
a.pointClass.prototype,k=e.defined,p=e.isNumber;return function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.high=void 0;b.low=void 0;b.options=void 0;b.plotX=void 0;b.series=void 0;return b}l(b,a);b.prototype.setState=function(){var a=this.state,b=this.series,c=b.chart.polar;k(this.plotHigh)||(this.plotHigh=b.yAxis.toPixels(this.high,!0));k(this.plotLow)||(this.plotLow=this.plotY=b.yAxis.toPixels(this.low,!0));b.stateMarkerGraphic&&(b.lowerStateMarkerGraphic=b.stateMarkerGraphic,
b.stateMarkerGraphic=b.upperStateMarkerGraphic);this.graphic=this.graphics&&this.graphics[1];this.plotY=this.plotHigh;c&&p(this.plotHighX)&&(this.plotX=this.plotHighX);d.setState.apply(this,arguments);this.state=a;this.plotY=this.plotLow;this.graphic=this.graphics&&this.graphics[0];c&&p(this.plotLowX)&&(this.plotX=this.plotLowX);b.stateMarkerGraphic&&(b.upperStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.lowerStateMarkerGraphic,b.lowerStateMarkerGraphic=void 0);d.setState.apply(this,
arguments)};b.prototype.haloPath=function(){var b=this.series.chart.polar,a=[];this.plotY=this.plotLow;b&&p(this.plotLowX)&&(this.plotX=this.plotLowX);this.isInside&&(a=d.haloPath.apply(this,arguments));this.plotY=this.plotHigh;b&&p(this.plotHighX)&&(this.plotX=this.plotHighX);this.isTopInside&&(a=a.concat(d.haloPath.apply(this,arguments)));return a};b.prototype.isValid=function(){return p(this.low)&&p(this.high)};return b}(a.pointClass)});h(a,"Series/Dumbbell/DumbbellPoint.js",[a["Series/AreaRange/AreaRangePoint.js"],
a["Core/Utilities.js"]],function(a,e){var l=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return a(c,b)};return function(c,b){function d(){this.constructor=c}a(c,b);c.prototype=null===b?Object.create(b):(d.prototype=b.prototype,new d)}}(),d=e.extend,k=e.pick;e=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.series=void 0;
b.options=void 0;b.connector=void 0;b.pointWidth=void 0;return b}l(c,a);c.prototype.setState=function(){var a=this.series,c=a.chart,e=a.options.marker,l=this.options,p=k(l.lowColor,a.options.lowColor,l.color,this.zone&&this.zone.color,this.color,a.color),h="attr";this.pointSetState.apply(this,arguments);if(!this.state){h="animate";var q=this.graphics||[],n=q[0];q=q[1];n&&!c.styledMode&&(n.attr({fill:p}),q&&(c={y:this.y,zone:this.zone},this.y=this.high,this.zone=this.zone?this.getZone():void 0,e=k(this.marker?
this.marker.fillColor:void 0,e?e.fillColor:void 0,l.color,this.zone?this.zone.color:void 0,this.color),q.attr({fill:e}),d(this,c)))}this.connector[h](a.getConnectorAttribs(this))};c.prototype.destroy=function(){this.graphic||(this.graphic=this.connector,this.connector=void 0);return a.prototype.destroy.call(this)};return c}(a);d(e.prototype,{pointSetState:a.prototype.setState});return e});h(a,"Series/Dumbbell/DumbbellSeries.js",[a["Series/Column/ColumnSeries.js"],a["Series/Dumbbell/DumbbellPoint.js"],
a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,e,l,d,h,p,c){var b=this&&this.__extends||function(){var a=function(b,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var b in g)g.hasOwnProperty(b)&&(a[b]=g[b])};return a(b,g)};return function(b,g){function c(){this.constructor=b}a(b,g);b.prototype=null===g?Object.create(g):(c.prototype=
g.prototype,new c)}}(),m=a.prototype;l=l.noop;var f=d.prototype;d=h.seriesTypes;var k=d.arearange;d=d.columnrange.prototype;var r=k.prototype,u=c.extend,q=c.merge,n=c.pick;c=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.columnMetrics=void 0;return b}b(c,a);c.prototype.getConnectorAttribs=function(a){var b=this.chart,c=a.options,g=this.options,t=this.xAxis,e=this.yAxis,d=n(c.connectorWidth,g.connectorWidth),h=n(c.connectorColor,
g.connectorColor,c.color,a.zone?a.zone.color:void 0,a.color),l=n(g.states&&g.states.hover&&g.states.hover.connectorWidthPlus,1),m=n(c.dashStyle,g.dashStyle),k=n(a.plotLow,a.plotY),f=e.toPixels(g.threshold||0,!0);f=n(a.plotHigh,b.inverted?e.len-f:f);if("number"!==typeof k)return{};a.state&&(d+=l);0>k?k=0:k>=e.len&&(k=e.len);0>f?f=0:f>=e.len&&(f=e.len);if(0>a.plotX||a.plotX>t.len)d=0;a.graphics&&a.graphics[1]&&(t={y:a.y,zone:a.zone},a.y=a.high,a.zone=a.zone?a.getZone():void 0,h=n(c.connectorColor,g.connectorColor,
c.color,a.zone?a.zone.color:void 0,a.color),u(a,t));a={d:p.prototype.crispLine([["M",a.plotX,k],["L",a.plotX,f]],d,"ceil")};b.styledMode||(a.stroke=h,a["stroke-width"]=d,m&&(a.dashstyle=m));return a};c.prototype.drawConnector=function(a){var b=n(this.options.animationLimit,250);b=a.connector&&this.chart.pointCount<b?"animate":"attr";a.connector||(a.connector=this.chart.renderer.path().addClass("highcharts-lollipop-stem").attr({zIndex:-1}).add(this.group));a.connector[b](this.getConnectorAttribs(a))};
c.prototype.getColumnMetrics=function(){var a=m.getColumnMetrics.apply(this,arguments);a.offset+=a.width/2;return a};c.prototype.translate=function(){var a=this,b=this.chart.inverted;this.setShapeArgs.apply(this);this.translatePoint.apply(this,arguments);this.points.forEach(function(c){var g=c.pointWidth,e=c.shapeArgs;e=void 0===e?{}:e;var d=c.tooltipPos;c.plotX=e.x||0;e.x=c.plotX-g/2;d&&(b?d[1]=a.xAxis.len-c.plotX:d[0]=c.plotX)});this.columnMetrics.offset-=this.columnMetrics.width/2};c.prototype.drawPoints=
function(){var a=this.chart,b=this.points.length,c=this.lowColor=this.options.lowColor,e=0;for(this.seriesDrawPoints.apply(this,arguments);e<b;){var d=this.points[e];var f=d.graphics||[];var h=f[0];f=f[1];this.drawConnector(d);f&&(f.element.point=d,f.addClass("highcharts-lollipop-high"));d.connector.element.point=d;h&&(f=d.zone&&d.zone.color,d=n(d.options.lowColor,c,d.options.color,f,d.color,this.color),a.styledMode||h.attr({fill:d}),h.addClass("highcharts-lollipop-low"));e++}};c.prototype.markerAttribs=
function(){var a=r.markerAttribs.apply(this,arguments);a.x=Math.floor(a.x||0);a.y=Math.floor(a.y||0);return a};c.prototype.pointAttribs=function(a,b){var c=f.pointAttribs.apply(this,arguments);"hover"===b&&delete c.fill;return c};c.defaultOptions=q(k.defaultOptions,{trackByArea:!1,fillColor:"none",lineWidth:0,pointRange:1,connectorWidth:1,stickyTracking:!1,groupPadding:.2,crisp:!1,pointPadding:.1,lowColor:"#333333",states:{hover:{lineWidthPlus:0,connectorWidthPlus:1,halo:!1}}});return c}(k);u(c.prototype,
{crispCol:m.crispCol,drawGraph:l,drawTracker:a.prototype.drawTracker,pointClass:e,setShapeArgs:d.translate,seriesDrawPoints:r.drawPoints,trackerGroups:["group","markerGroup","dataLabelsGroup"],translatePoint:r.translate});h.registerSeriesType("dumbbell",c);"";return c});h(a,"masters/modules/dumbbell.src.js",[],function(){})});
//# sourceMappingURL=dumbbell.js.map