/**
 * Highcharts JS v11.2.0 (2023-10-30)
 *
 * Bullet graph series type for Highcharts
 *
 * (c) 2010-2021 Kacper Madej
 *
 * License: www.highcharts.com/license
 */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/bullet",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function i(t,e,i,r){t.hasOwnProperty(e)||(t[e]=r.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}i(e,"Series/Bullet/BulletPoint.js",[e["Series/Column/ColumnSeries.js"]],function(t){class e extends t.prototype.pointClass{constructor(){super(...arguments),this.options=void 0,this.series=void 0}destroy(){this.targetGraphic&&(this.targetGraphic=this.targetGraphic.destroy()),super.destroy.apply(this,arguments)}}return e}),i(e,"Series/Bullet/BulletSeriesDefaults.js",[],function(){return{targetOptions:{width:"140%",height:3,borderWidth:0,borderRadius:0},tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.y}</b>. Target: <b>{point.target}</b><br/>'}}}),i(e,"Series/Bullet/BulletSeries.js",[e["Series/Bullet/BulletPoint.js"],e["Series/Bullet/BulletSeriesDefaults.js"],e["Series/Column/ColumnSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,i,r,s){let{extend:o,isNumber:a,merge:l,pick:n,relativeLength:d}=s;class h extends i{constructor(){super(...arguments),this.data=void 0,this.options=void 0,this.points=void 0,this.targetData=void 0}drawPoints(){let t=this.chart,e=this.options,i=e.animationLimit||250;for(let r of(super.drawPoints.apply(this,arguments),this.points)){let s=r.options,o=r.target,h=r.y,p,u=r.targetGraphic,c,g,m,f;if(a(o)&&null!==o){g=(m=l(e.targetOptions,s.targetOptions)).height;let y=r.shapeArgs;r.dlBox&&y&&!a(y.width)&&(y=r.dlBox),c=d(m.width,y.width),f=this.yAxis.translate(o,!1,!0,!1,!0)-m.height/2-.5,p=this.crispCol.apply({chart:t,borderWidth:m.borderWidth,options:{crisp:e.crisp}},[y.x+y.width/2-c/2,f,c,g]),u?(u[t.pointCount<i?"animate":"attr"](p),a(h)&&null!==h?u.element.point=r:u.element.point=void 0):r.targetGraphic=u=t.renderer.rect().attr(p).add(this.group),t.styledMode||u.attr({fill:n(m.color,s.color,this.zones.length&&(r.getZone.call({series:this,x:r.x,y:o,options:{}}).color||this.color)||void 0,r.color,this.color),stroke:n(m.borderColor,r.borderColor,this.options.borderColor),"stroke-width":m.borderWidth,r:m.borderRadius}),a(h)&&null!==h&&(u.element.point=r),u.addClass(r.getClassName()+" highcharts-bullet-target",!0)}else u&&(r.targetGraphic=u.destroy())}}getExtremes(t){let e=super.getExtremes.call(this,t),i=this.targetData;if(i&&i.length){let t=super.getExtremes.call(this,i);a(t.dataMin)&&(e.dataMin=Math.min(n(e.dataMin,1/0),t.dataMin)),a(t.dataMax)&&(e.dataMax=Math.max(n(e.dataMax,-1/0),t.dataMax))}return e}}return h.defaultOptions=l(i.defaultOptions,e),o(h.prototype,{parallelArrays:["x","y","target"],pointArrayMap:["y","target"]}),h.prototype.pointClass=t,r.registerSeriesType("bullet",h),h}),i(e,"masters/modules/bullet.src.js",[],function(){})});//# sourceMappingURL=bullet.js.map