!function(o){"object"==typeof module&&module.exports?module.exports=o.default=o:"function"==typeof define&&define.amd?define("highcharts/modules/vector",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){function o(t,o,r,i){t.hasOwnProperty(o)||(t[o]=i.apply(null,r))}o(t=t?t._modules:{},"Series/Vector/VectorSeries.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(t,o,r,i){var e,n=this&&this.__extends||(e=function(t,o){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var r in o)o.hasOwnProperty(r)&&(t[r]=o[r])})(t,o)},function(t,o){function r(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(r.prototype=o.prototype,new r)}),s=t.animObject,a=r.series,p=r.seriesTypes.scatter,h=i.arrayMax;t=i.extend;var c,l=i.merge,d=i.pick;function u(){var t=null!==c&&c.apply(this,arguments)||this;return t.data=void 0,t.lengthMax=void 0,t.options=void 0,t.points=void 0,t}return n(u,c=p),u.prototype.animate=function(t){t?this.markerGroup.attr({opacity:.01}):this.markerGroup.animate({opacity:1},s(this.options.animation))},u.prototype.arrow=function(t){var o={start:10*(t=t.length/this.lengthMax*this.options.vectorLength/20),center:0,end:-10*t}[this.options.rotationOrigin]||0;return[["M",0,7*t+o],["L",-1.5*t,7*t+o],["L",0,10*t+o],["L",1.5*t,7*t+o],["L",0,7*t+o],["L",0,-10*t+o]]},u.prototype.drawPoints=function(){var i=this.chart;this.points.forEach(function(t){var o=t.plotX,r=t.plotY;!1===this.options.clip||i.isInsidePlot(o,r,i.inverted)?(t.graphic||(t.graphic=this.chart.renderer.path().add(this.markerGroup).addClass("highcharts-point highcharts-color-"+d(t.colorIndex,t.series.colorIndex))),t.graphic.attr({d:this.arrow(t),translateX:o,translateY:r,rotation:t.direction}),this.chart.styledMode||t.graphic.attr(this.pointAttribs(t))):t.graphic&&(t.graphic=t.graphic.destroy())},this)},u.prototype.pointAttribs=function(t,o){var r=this.options;t=t.color||this.color;var i=this.options.lineWidth;return o&&(t=r.states[o].color||t,i=(r.states[o].lineWidth||i)+(r.states[o].lineWidthPlus||0)),{stroke:t,"stroke-width":i}},u.prototype.translate=function(){a.prototype.translate.call(this),this.lengthMax=h(this.lengthData)},u.defaultOptions=l(p.defaultOptions,{lineWidth:2,marker:null,rotationOrigin:"center",states:{hover:{lineWidthPlus:1}},tooltip:{pointFormat:"[{point.x}, {point.y}]
Length: {point.length}
Direction: {point.direction}°
"},vectorLength:20}),t((i=u).prototype,{drawGraph:o.noop,getSymbol:o.noop,markerAttribs:o.noop,parallelArrays:["x","y","length","direction"],pointArrayMap:["y","length","direction"]}),r.registerSeriesType("vector",i),i}),o(t,"masters/modules/vector.src.js",[],function(){})});