/**
 * Highstock JS v11.3.0 (2024-01-10)
 *
 * Advanced Highcharts Stock tools
 *
 * (c) 2010-2024 Highsoft AS
 * Author: Torstein Honsi
 *
 * License: www.highcharts.com/license
 */!function(s){"object"==typeof module&&module.exports?(s.default=s,module.exports=s):"function"==typeof define&&define.amd?define("highcharts/modules/price-indicator",["highcharts","highcharts/modules/stock"],function(i){return s(i),s.Highcharts=i,s}):s("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(s){"use strict";var i=s?s._modules:{};function t(s,i,t,e){s.hasOwnProperty(i)||(s[i]=e.apply(null,t),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:s[i]}})))}t(i,"Extensions/PriceIndication.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],function(s,i){let{composed:t}=s,{addEvent:e,isArray:o,merge:r,pushUnique:a}=i;function l(){let s=this.options,i=s.lastVisiblePrice,t=s.lastPrice;if((i||t)&&"highcharts-navigator-series"!==s.id){let e;let a=this.xAxis,l=this.yAxis,c=l.crosshair,h=l.cross,n=l.crossLabel,d=this.points,u=this.yData.length,b=d.length,p=this.xData[this.xData.length-1],P=this.yData[u-1];if(t&&t.enabled&&(l.crosshair=l.options.crosshair=s.lastPrice,!this.chart.styledMode&&l.crosshair&&l.options.crosshair&&s.lastPrice&&(l.crosshair.color=l.options.crosshair.color=s.lastPrice.color||this.color),l.cross=this.lastPrice,e=o(P)?P[3]:P,this.lastPriceLabel&&this.lastPriceLabel.destroy(),delete l.crossLabel,l.drawCrosshair(null,{x:p,y:e,plotX:a.toPixels(p,!0),plotY:l.toPixels(e,!0)}),this.yAxis.cross&&(this.lastPrice=this.yAxis.cross,this.lastPrice.addClass("highcharts-color-"+this.colorIndex),this.lastPrice.y=e),this.lastPriceLabel=l.crossLabel),i&&i.enabled&&b>0){l.crosshair=l.options.crosshair=r({color:"transparent"},s.lastVisiblePrice),l.cross=this.lastVisiblePrice;let i=d[b-1].isInside?d[b-1]:d[b-2];this.lastVisiblePriceLabel&&this.lastVisiblePriceLabel.destroy(),delete l.crossLabel,l.drawCrosshair(null,i),l.cross&&(this.lastVisiblePrice=l.cross,i&&"number"==typeof i.y&&(this.lastVisiblePrice.y=i.y)),this.lastVisiblePriceLabel=l.crossLabel}l.crosshair=l.options.crosshair=c,l.cross=h,l.crossLabel=n}}return{compose:function s(i){a(t,s)&&e(i,"afterRender",l)}}}),t(i,"masters/modules/price-indicator.src.js",[i["Core/Globals.js"],i["Extensions/PriceIndication.js"]],function(s,i){i.compose(s.Series)})});