!/**
 * Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/annotations
 * @requires highcharts
 *
 * Annotations module
 *
 * (c) 2009-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(t,i){"object"==typeof exports&&"object"==typeof module?module.exports=i(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Templating,t._Highcharts.AST,t._Highcharts.Color):"function"==typeof define&&define.amd?define("highcharts/modules/annotations",["highcharts/highcharts"],function(t){return i(t,t.SeriesRegistry,t.Templating,t.AST,t.Color)}):"object"==typeof exports?exports["highcharts/modules/annotations"]=i(t._Highcharts,t._Highcharts.SeriesRegistry,t._Highcharts.Templating,t._Highcharts.AST,t._Highcharts.Color):t.Highcharts=i(t.Highcharts,t.Highcharts.SeriesRegistry,t.Highcharts.Templating,t.Highcharts.AST,t.Highcharts.Color)}("u"<typeof window?this:window,function(t,i,o,e,n){return function(){"use strict";var s,r,a,h,c,l,p,u,d,f,v,g,y,m,x,b,A={512:function(t){t.exports=i},620:function(t){t.exports=n},660:function(t){t.exports=e},944:function(i){i.exports=t},984:function(t){t.exports=o}},E={};function w(t){var i=E[t];if(void 0!==i)return i.exports;var o=E[t]={exports:{}};return A[t](o,o.exports,w),o.exports}w.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return w.d(i,{a:i}),i},w.d=function(t,i){for(var o in i)w.o(i,o)&&!w.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:i[o]})},w.o=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)};var k={};w.d(k,{default:function(){return ix}});var C=w(944),O=w.n(C);function P(t,i){var o=this.initAnnotation(t);return this.options.annotations.push(o.options),(0,C.pick)(i,!0)&&(o.redraw(),o.graphic.attr({opacity:1})),o}function N(){var 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(function(i,o){if(!t.annotations.some(function(t){return t.options===i})){var e=t.initAnnotation(i);t.options.annotations[o]=e.options}}),t.drawAnnotations(),(0,C.addEvent)(t,"redraw",t.drawAnnotations),(0,C.addEvent)(t,"destroy",function(){t.plotBoxClip.destroy(),t.controlPointsGroup.destroy()}),(0,C.addEvent)(t,"exportData",function(i){var o,e,n,s,r,a,h=t.annotations,c=(this.options.exporting&&this.options.exporting.csv||{}).columnHeaderFormatter,l=!i.dataRows[1].xValues,p=t.options.lang&&t.options.lang.exportData&&t.options.lang.exportData.annotationHeader,u=i.dataRows[0].length,d=null==(n=null==(e=null==(o=t.options.exporting)?void 0:o.csv)?void 0:e.annotations)?void 0:n.itemDelimiter,f=null==(a=null==(r=null==(s=t.options.exporting)?void 0:s.csv)?void 0:r.annotations)?void 0:a.join;h.forEach(function(t){var o;(null==(o=t.options.labelOptions)?void 0:o.includeInDataExport)&&t.labels.forEach(function(t){if(t.options.text){var o=t.options.text;t.points.forEach(function(t){var e=t.x,n=t.series.xAxis?t.series.xAxis.index:-1,s=!1;if(-1===n){for(var r=i.dataRows[0].length,a=Array(r),h=0;h<r;++h)a[h]="";a.push(o),a.xValues=[],a.xValues[n]=e,i.dataRows.push(a),s=!0}if(s||i.dataRows.forEach(function(t){!s&&t.xValues&&void 0!==n&&e===t.xValues[n]&&(f&&t.length>u?t[t.length-1]+=d+o:t.push(o),s=!0)}),!s){for(var r=i.dataRows[0].length,a=Array(r),h=0;h<r;++h)a[h]="";a[0]=e,a.push(o),a.xValues=[],void 0!==n&&(a.xValues[n]=e),i.dataRows.push(a)}})}})});var v=0;i.dataRows.forEach(function(t){v=Math.max(v,t.length)});for(var g=v-i.dataRows[0].length,y=0;y<g;y++){var m=function(t){var i;return c&&!1!==(i=c(t))?i:(i=p+" "+t,l)?{columnTitle:i,topLevelColumnTitle:i}:i}(y+1);l?(i.dataRows[0].push(m.topLevelColumnTitle),i.dataRows[1].push(m.columnTitle)):i.dataRows[0].push(m)}})}function M(){this.plotBoxClip.attr(this.plotBox),this.annotations.forEach(function(t){t.redraw(),t.graphic.animate({opacity:1},t.animationConfig)})}function B(t){var i=this.annotations,o="annotations"===t.coll?t:(0,C.find)(i,function(i){return i.options.id===t});o&&((0,C.fireEvent)(o,"remove"),(0,C.erase)(this.options.annotations,o.options),(0,C.erase)(i,o),o.destroy())}function T(){var t=this.options.annotations,i=this.userOptions.annotations;this.annotations=[],(0,C.isArray)(this.options.annotations)||(this.options.annotations=[]),(0,C.isObject)(i,!0)&&(0,C.isObject)(t,!0)&&this.options.annotations.push(t)}function _(t){this.chart.hasDraggedAnnotation||t.apply(this,Array.prototype.slice.call(arguments,1))}(y||(y={})).compose=function(t,i,o){var e=i.prototype;if(!e.addAnnotation){var n=o.prototype;(0,C.addEvent)(i,"afterInit",T),e.addAnnotation=P,e.callbacks.push(N),e.collectionsWithInit.annotations=[P],e.collectionsWithUpdate.push("annotations"),e.drawAnnotations=M,e.removeAnnotation=B,e.initAnnotation=function(i){var o=new(t.types[i.type]||t)(this,i);return this.annotations.push(o),o},(0,C.wrap)(n,"onContainerMouseDown",_)}};var S=y,L={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,C.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},I=O().doc,D=O().isTouchDevice,j=function(){function t(){}return t.prototype.addEvents=function(){var t=this,i=function(i){(0,C.addEvent)(i,D?"touchstart":"mousedown",function(i){t.onMouseDown(i)},{passive:!1})};if(i(this.graphic.element),(t.labels||[]).forEach(function(t){t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&i(t.graphic.text.element)}),(0,C.objectEach)(t.options.events,function(i,o){var e=function(e){var n;"click"===o&&t.cancelClick||i.call(t,null==(n=t.chart.pointer)?void 0:n.normalize(e),t.target,t)};-1===(t.nonDOMEvents||[]).indexOf(o)?((0,C.addEvent)(t.graphic.element,o,e,{passive:!1}),t.graphic.div&&(0,C.addEvent)(t.graphic.div,o,e,{passive:!1})):(0,C.addEvent)(t,o,e,{passive:!1})}),t.options.draggable&&((0,C.addEvent)(t,"drag",t.onDrag),!t.graphic.renderer.styledMode)){var o={cursor:{x:"ew-resize",y:"ns-resize",xy:"move"}[t.options.draggable]};t.graphic.css(o),(t.labels||[]).forEach(function(t){t.options.useHTML&&t.graphic.text&&!t.graphic.text.foreignObject&&t.graphic.text.css(o)})}t.isUpdating||(0,C.fireEvent)(t,"add")},t.prototype.destroy=function(){this.removeDocEvents(),(0,C.removeEvent)(this),this.hcEvents=null},t.prototype.mouseMoveToRadians=function(t,i,o){var e,n=t.prevChartY-o,s=t.prevChartX-i,r=t.chartY-o,a=t.chartX-i;return this.chart.inverted&&(e=s,s=n,n=e,e=a,a=r,r=e),Math.atan2(r,a)-Math.atan2(n,s)},t.prototype.mouseMoveToScale=function(t,i,o){var e=t.prevChartX-i,n=t.prevChartY-o,s=t.chartX-i,r=t.chartY-o,a=(s||1)/(e||1),h=(r||1)/(n||1);if(this.chart.inverted){var c=h;h=a,a=c}return{x:a,y:h}},t.prototype.mouseMoveToTranslation=function(t){var i,o=t.chartX-t.prevChartX,e=t.chartY-t.prevChartY;return this.chart.inverted&&(i=e,e=o,o=i),{x:o,y:e}},t.prototype.onDrag=function(t){if(this.chart.isInsidePlot(t.chartX-this.chart.plotLeft,t.chartY-this.chart.plotTop,{visiblePlotOnly:!0})){var i=this.mouseMoveToTranslation(t);"x"===this.options.draggable&&(i.y=0),"y"===this.options.draggable&&(i.x=0),this.points.length?this.translate(i.x,i.y):(this.shapes.forEach(function(t){return t.translate(i.x,i.y)}),this.labels.forEach(function(t){return t.translate(i.x,i.y)})),this.redraw(!1)}},t.prototype.onMouseDown=function(t){if(t.preventDefault&&t.preventDefault(),2!==t.button){var i,o=this,e=o.chart.pointer,n=(null==(i=null==t?void 0:t.sourceCapabilities)?void 0:i.firesTouchEvents)||!1,s=(t=(null==e?void 0:e.normalize(t))||t).chartX,r=t.chartY;o.cancelClick=!1,o.chart.hasDraggedAnnotation=!0,o.removeDrag=(0,C.addEvent)(I,D||n?"touchmove":"mousemove",function(t){o.hasDragged=!0,(t=(null==e?void 0:e.normalize(t))||t).prevChartX=s,t.prevChartY=r,(0,C.fireEvent)(o,"drag",t),s=t.chartX,r=t.chartY},D||n?{passive:!1}:void 0),o.removeMouseUp=(0,C.addEvent)(I,D||n?"touchend":"mouseup",function(){var t=(0,C.pick)(o.target&&o.target.annotation,o.target);t&&(t.cancelClick=o.hasDragged),o.cancelClick=o.hasDragged,o.chart.hasDraggedAnnotation=!1,o.hasDragged&&(0,C.fireEvent)((0,C.pick)(t,o),"afterUpdate"),o.hasDragged=!1,o.onMouseUp()},D||n?{passive:!1}:void 0)}},t.prototype.onMouseUp=function(){this.removeDocEvents()},t.prototype.removeDocEvents=function(){this.removeDrag&&(this.removeDrag=this.removeDrag()),this.removeMouseUp&&(this.removeMouseUp=this.removeMouseUp())},t}(),Y=(s=function(t,i){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])})(t,i)},function(t,i){function o(){this.constructor=t}s(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),X=function(t){function i(i,o,e,n){var s=t.call(this)||this;return s.nonDOMEvents=["drag"],s.chart=i,s.target=o,s.options=e,s.index=(0,C.pick)(e.index,n),s}return Y(i,t),i.prototype.destroy=function(){t.prototype.destroy.call(this),this.graphic&&(this.graphic=this.graphic.destroy()),this.chart=null,this.target=null,this.options=null},i.prototype.redraw=function(t){this.graphic[t?"animate":"attr"](this.options.positioner.call(this,this.target,this))},i.prototype.render=function(){var t=this.chart,i=this.options;this.graphic=t.renderer.symbol(i.symbol,0,0,i.width,i.height).add(t.controlPointsGroup).css(i.style),this.setVisibility(i.visible),this.addEvents()},i.prototype.setVisibility=function(t){this.graphic[t?"show":"hide"](),this.options.visible=t},i.prototype.update=function(t){var i=this.chart,o=this.target,e=this.index,n=(0,C.merge)(!0,this.options,t);this.destroy(),this.constructor(i,o,n,e),this.render(i.controlPointsGroup),this.redraw()},i}(j),F=w(512),R=w.n(F),U=R().series.prototype,W=function(){function t(t,i,o){this.mock=!0,this.point=this,this.series={visible:!0,chart:t,getPlotBox:U.getPlotBox},this.target=i||null,this.options=o,this.applyOptions(this.getOptions())}return t.fromPoint=function(i){return new t(i.series.chart,null,{x:i.x,y:i.y,xAxis:i.series.xAxis,yAxis:i.series.yAxis})},t.pointToPixels=function(t,i){var o,e=t.series,n=e.chart,s=t.plotX||0,r=t.plotY||0;return n.inverted&&(t.mock?(s=t.plotY,r=t.plotX):(s=n.plotWidth-(t.plotY||0),r=n.plotHeight-(t.plotX||0))),e&&!i&&(s+=(o=e.getPlotBox()).translateX,r+=o.translateY),{x:s,y:r}},t.pointToOptions=function(t){return{x:t.x,y:t.y,xAxis:t.series.xAxis,yAxis:t.series.yAxis}},t.prototype.applyOptions=function(t){this.command=t.command,this.setAxis(t,"x"),this.setAxis(t,"y"),this.refresh()},t.prototype.getOptions=function(){return this.hasDynamicOptions()&&"function"==typeof this.options?this.options(this.target):this.options},t.prototype.hasDynamicOptions=function(){return"function"==typeof this.options},t.prototype.isInsidePlot=function(){var t=this.plotX,i=this.plotY,o=this.series.xAxis,e=this.series.yAxis,n={x:t,y:i,isInsidePlot:!0,options:{}};return o&&(n.isInsidePlot=(0,C.defined)(t)&&t>=0&&t<=o.len),e&&(n.isInsidePlot=n.isInsidePlot&&(0,C.defined)(i)&&i>=0&&i<=e.len),(0,C.fireEvent)(this.series.chart,"afterIsInsidePlot",n),n.isInsidePlot},t.prototype.refresh=function(){var t=this.series,i=t.xAxis,o=t.yAxis,e=this.getOptions();i?(this.x=e.x,this.plotX=i.toPixels(e.x,!0)):(this.x=void 0,this.plotX=e.x),o?(this.y=e.y,this.plotY=o.toPixels(e.y,!0)):(this.y=null,this.plotY=e.y),this.isInside=this.isInsidePlot()},t.prototype.refreshOptions=function(){var t=this.series,i=t.xAxis,o=t.yAxis;this.x=this.options.x=i?this.options.x=i.toValue(this.plotX,!0):this.plotX,this.y=this.options.y=o?o.toValue(this.plotY,!0):this.plotY},t.prototype.rotate=function(t,i,o){if(!this.hasDynamicOptions()){var e=Math.cos(o),n=Math.sin(o),s=this.plotX-t,r=this.plotY-i;this.plotX=s*e-r*n+t,this.plotY=s*n+r*e+i,this.refreshOptions()}},t.prototype.scale=function(t,i,o,e){if(!this.hasDynamicOptions()){var n=this.plotX*o,s=this.plotY*e;this.plotX=(1-o)*t+n,this.plotY=(1-e)*i+s,this.refreshOptions()}},t.prototype.setAxis=function(t,i){var o=i+"Axis",e=t[o],n=this.series.chart;this.series[o]="object"==typeof e?e:(0,C.defined)(e)?n[o][e]||n.get(e):null},t.prototype.toAnchor=function(){var t=[this.plotX,this.plotY,0,0];return this.series.chart.inverted&&(t[0]=this.plotY,t[1]=this.plotX),t},t.prototype.translate=function(t,i,o,e){this.hasDynamicOptions()||(this.plotX+=o,this.plotY+=e,this.refreshOptions())},t}();!function(t){function i(){var t=this,i=this.controlPoints,o=this.options.controlPoints||[];o.forEach(function(e,n){var s=(0,C.merge)(t.options.controlPointOptions,e);s.index||(s.index=n),o[n]=s,i.push(new X(t.chart,t,s))})}function o(t){var i=t.series.getPlotBox(),o=t.series.chart,e=t.mock?t.toAnchor():o.tooltip&&o.tooltip.getAnchor.call({chart:t.series.chart},t)||[0,0,0,0],n={x:e[0]+(this.options.x||0),y:e[1]+(this.options.y||0),height:e[2]||0,width:e[3]||0};return{relativePosition:n,absolutePosition:(0,C.merge)(n,{x:n.x+(t.mock?i.translateX:o.plotLeft),y:n.y+(t.mock?i.translateY:o.plotTop)})}}function e(){this.controlPoints.forEach(function(t){return t.destroy()}),this.chart=null,this.controlPoints=null,this.points=null,this.options=null,this.annotation&&(this.annotation=null)}function n(){var t=this.options;return t.points||t.point&&(0,C.splat)(t.point)}function s(){var t,i,o=this.getPointsOptions(),e=this.points,n=(null==o?void 0:o.length)||0;for(t=0;t<n;t++){if(!(i=this.point(o[t],e[t]))){e.length=0;return}i.mock&&i.refresh(),e[t]=i}return e}function r(t,i){if(t&&t.series)return t;if(!i||null===i.series){if((0,C.isObject)(t))i=new W(this.chart,this,t);else if((0,C.isString)(t))i=this.chart.get(t)||null;else if("function"==typeof t){var o=t.call(i,this);i=o.series?o:new W(this.chart,this,t)}}return i}function a(t){this.controlPoints.forEach(function(i){return i.redraw(t)})}function h(){this.controlPoints.forEach(function(t){return t.render()})}function c(t,i,o,e,n){var s=this;if(this.chart.inverted){var r=i;i=o,o=r}this.points.forEach(function(r,a){return s.transformPoint(t,i,o,e,n,a)},this)}function l(t,i,o,e,n,s){var r=this.points[s];r.mock||(r=this.points[s]=W.fromPoint(r)),r[t](i,o,e,n)}function p(t,i){this.transform("translate",null,null,t,i)}function u(t,i,o){this.transformPoint("translate",null,null,t,i,o)}t.compose=function(t){var d=t.prototype;d.addControlPoints||(0,C.merge)(!0,d,{addControlPoints:i,anchor:o,destroyControlTarget:e,getPointsOptions:n,linkPoints:s,point:r,redrawControlPoints:a,renderControlPoints:h,transform:c,transformPoint:l,translate:p,translatePoint:u})}}(m||(m={}));var H=m,z=function(){function t(t,i,o,e){this.annotation=t,this.chart=t.chart,this.collection="label"===e?"labels":"shapes",this.controlPoints=[],this.options=i,this.points=[],this.index=o,this.itemType=e,this.init(t,i,o)}return t.prototype.attr=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];this.graphic.attr.apply(this.graphic,arguments)},t.prototype.attrsFromOptions=function(t){var i,o,e=this.constructor.attrsMap,n={},s=this.chart.styledMode;for(i in t)o=e[i],void 0===e[i]||s&&-1!==["fill","stroke","stroke-width"].indexOf(o)||(n[o]=t[i]);return n},t.prototype.destroy=function(){this.graphic&&(this.graphic=this.graphic.destroy()),this.tracker&&(this.tracker=this.tracker.destroy()),this.destroyControlTarget()},t.prototype.calculateAnnotationSize=function(t,i,o){var e=o.toPixels(t,!0);return Math.abs(o.toPixels(t+i,!0)-e)},t.prototype.init=function(t,i,o){this.annotation=t,this.chart=t.chart,this.options=i,this.points=[],this.controlPoints=[],this.index=o,this.linkPoints(),this.addControlPoints()},t.prototype.redraw=function(t){this.redrawControlPoints(t)},t.prototype.render=function(t){this.options.className&&this.graphic&&this.graphic.addClass(this.options.className),this.renderControlPoints()},t.prototype.rotate=function(t,i,o){this.transform("rotate",t,i,o)},t.prototype.scale=function(t,i,o,e){this.transform("scale",t,i,o,e)},t.prototype.setControlPointsVisibility=function(t){this.controlPoints.forEach(function(i){i.setVisibility(t)})},t.prototype.shouldBeDrawn=function(){return!!this.points.length},t.prototype.translateShape=function(t,i,o){var e=this.annotation.chart,n=this.annotation.userOptions,s=e.annotations.indexOf(this.annotation),r=e.options.annotations[s];this.translatePoint(t,i,0),o&&this.translatePoint(t,i,1),r[this.collection][this.index].point=this.options.point,n[this.collection][this.index].point=this.options.point},t.prototype.update=function(t){var i=this.annotation,o=(0,C.merge)(!0,this.options,t),e=this.graphic.parentGroup,n=this.constructor;this.destroy();var s=new n(i,o,this.index,this.itemType);(0,C.merge)(!0,this,s),this.render(e),this.redraw()},t}();H.compose(z);var V={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}}]}},q=(r=function(t,i){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}r(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),G=Z("marker-end"),K=Z("marker-start"),$="rgba(192,192,192,"+(O().svg?1e-4:.002)+")";function Z(t){return function(i){this.attr(t,"url(#"+i+")")}}function J(){this.options.defs=(0,C.merge)(V,this.options.defs||{})}function Q(t,i){var o={attributes:{id:t}},e={stroke:i.color||"none",fill:i.color||"rgba(0, 0, 0, 0.75)"};o.children=i.children&&i.children.map(function(t){return(0,C.merge)(e,t)});var n=(0,C.merge)(!0,{attributes:{markerWidth:20,markerHeight:20,refX:0,refY:0,orient:"auto"}},i,o),s=this.definition(n);return s.id=t,s}var tt=function(t){function i(i,o,e){var n=t.call(this,i,o,e,"shape")||this;return n.type="path",n}return q(i,t),i.compose=function(t,i){var o=i.prototype;o.addMarker||((0,C.addEvent)(t,"afterGetContainer",J),o.addMarker=Q)},i.prototype.init=function(i,o,e){(0,C.defined)(o.yAxis)&&o.points.forEach(function(t){t&&"string"!=typeof t&&(t.yAxis=o.yAxis)}),(0,C.defined)(o.xAxis)&&o.points.forEach(function(t){t&&"string"!=typeof t&&(t.xAxis=o.xAxis)}),t.prototype.init.call(this,i,o,e)},i.prototype.toD=function(){var t=this.options.d;if(t)return"function"==typeof t?t.call(this):t;var i,o=this.points,e=o.length,n=[],s=e,r=o[0],a=s&&this.anchor(r).absolutePosition,h=0;if(a)for(n.push(["M",a.x,a.y]);++h<e&&s;)i=(r=o[h]).command||"L",a=this.anchor(r).absolutePosition,"M"===i||"L"===i?n.push([i,a.x,a.y]):"Z"===i&&n.push([i]),s=r.series.visible;return s&&this.graphic?this.chart.renderer.crispLine(n,this.graphic.strokeWidth()):null},i.prototype.shouldBeDrawn=function(){return t.prototype.shouldBeDrawn.call(this)||!!this.options.d},i.prototype.render=function(i){var o=this.options,e=this.attrsFromOptions(o);this.graphic=this.annotation.chart.renderer.path([["M",0,0]]).attr(e).add(i),this.tracker=this.annotation.chart.renderer.path([["M",0,0]]).addClass("highcharts-tracker-line").attr({zIndex:2}).add(i),this.annotation.chart.styledMode||this.tracker.attr({"stroke-linejoin":"round",stroke:$,fill:$,"stroke-width":this.graphic.strokeWidth()+2*o.snap}),t.prototype.render.call(this),(0,C.extend)(this.graphic,{markerStartSetter:K,markerEndSetter:G}),this.setMarkers(this)},i.prototype.redraw=function(i){if(this.graphic){var o=this.toD(),e=i?"animate":"attr";o?(this.graphic[e]({d:o}),this.tracker[e]({d:o})):(this.graphic.attr({d:"M 0 -9000000000"}),this.tracker.attr({d:"M 0 -9000000000"})),this.graphic.placed=this.tracker.placed=!!o}t.prototype.redraw.call(this,i)},i.prototype.setMarkers=function(t){var i=t.options,o=t.chart,e=o.options.defs,n=i.fill,s=(0,C.defined)(n)&&"none"!==n?n:i.stroke;["markerStart","markerEnd"].forEach(function(n){var r,a,h,c,l=i[n];if(l){for(h in e)if((l===((r=e[h]).attributes&&r.attributes.id)||l===r.id)&&"marker"===r.tagName){a=r;break}a&&(c=t[n]=o.renderer.addMarker((i.id||(0,C.uniqueKey)())+"-"+l,(0,C.merge)(a,{color:s})),t.attr(n,c.getAttribute("id")))}})},i.attrsMap={dashStyle:"dashstyle",strokeWidth:"stroke-width",stroke:"stroke",fill:"fill",zIndex:"zIndex"},i}(z),ti=(a=function(t,i){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}a(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),to=function(t){function i(i,o,e){var n=t.call(this,i,o,e,"shape")||this;return n.type="rect",n.translate=t.prototype.translateShape,n}return ti(i,t),i.prototype.init=function(i,o,e){var n=o.point,s=o.xAxis,r=o.yAxis;n&&"string"!=typeof n&&((0,C.defined)(s)&&(n.xAxis=s),(0,C.defined)(r)&&(n.yAxis=r)),t.prototype.init.call(this,i,o,e)},i.prototype.render=function(i){var o=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.rect(0,-9e9,0,0).attr(o).add(i),t.prototype.render.call(this)},i.prototype.redraw=function(i){if(this.graphic){var o=this.points[0],e=this.anchor(o).absolutePosition,n=this.options.width||0,s=this.options.height||0;if(e){var r=(0,C.defined)(this.options.xAxis)?this.chart.xAxis[this.options.xAxis]:void 0,a=(0,C.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;r&&(0,C.defined)(o.x)&&(n=this.calculateAnnotationSize(o.x,n,r)),a&&(0,C.defined)(o.y)&&(s=this.calculateAnnotationSize(o.y,s,a)),this.graphic[i?"animate":"attr"]({x:e.x,y:e.y,width:n,height:s})}else this.attr({x:0,y:-9e9});this.graphic.placed=!!e}t.prototype.redraw.call(this,i)},i.attrsMap=(0,C.merge)(tt.attrsMap,{width:"width",height:"height"}),i}(z),te=(h=function(t,i){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}h(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tn=function(t){function i(i,o,e){var n=t.call(this,i,o,e,"shape")||this;return n.type="circle",n.translate=t.prototype.translateShape,n}return te(i,t),i.prototype.init=function(i,o,e){var n=o.point,s=o.xAxis,r=o.yAxis;n&&"string"!=typeof n&&((0,C.defined)(s)&&(n.xAxis=s),(0,C.defined)(r)&&(n.yAxis=r)),t.prototype.init.call(this,i,o,e)},i.prototype.redraw=function(i){if(this.graphic){var o=this.points[0],e=this.anchor(o).absolutePosition,n=this.options.r||0;if(e){var s=(0,C.defined)(this.options.yAxis)?this.chart.yAxis[this.options.yAxis]:void 0;s&&(0,C.defined)(o.y)&&(n=this.calculateAnnotationSize(o.y,n,s)),this.graphic[i?"animate":"attr"]({x:e.x,y:e.y,r:n})}else this.graphic.attr({x:0,y:-9e9});this.graphic.placed=!!e}t.prototype.redraw.call(this,i)},i.prototype.render=function(i){var o=this.attrsFromOptions(this.options);this.graphic=this.annotation.chart.renderer.circle(0,-9e9,0).attr(o).add(i),t.prototype.render.call(this)},i.prototype.setRadius=function(t){this.options.r=t},i.attrsMap=(0,C.merge)(tt.attrsMap,{r:"r"}),i}(z),ts=(c=function(t,i){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}c(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tr=function(t){function i(i,o,e){var n=t.call(this,i,o,e,"shape")||this;return n.type="ellipse",n}return ts(i,t),i.prototype.init=function(i,o,e){(0,C.defined)(o.yAxis)&&o.points.forEach(function(t){t&&"string"!=typeof t&&(t.yAxis=o.yAxis)}),(0,C.defined)(o.xAxis)&&o.points.forEach(function(t){t&&"string"!=typeof t&&(t.xAxis=o.xAxis)}),t.prototype.init.call(this,i,o,e)},i.prototype.render=function(i){this.graphic=this.annotation.chart.renderer.createElement("ellipse").attr(this.attrsFromOptions(this.options)).add(i),t.prototype.render.call(this)},i.prototype.translate=function(i,o){t.prototype.translateShape.call(this,i,o,!0)},i.prototype.getDistanceFromLine=function(t,i,o,e){return Math.abs((i.y-t.y)*o-(i.x-t.x)*e+i.x*t.y-i.y*t.x)/Math.sqrt((i.y-t.y)*(i.y-t.y)+(i.x-t.x)*(i.x-t.x))},i.prototype.getAttrs=function(t,i){var o=t.x,e=t.y,n=i.x,s=i.y,r=(o+n)/2,a=Math.sqrt((o-n)*(o-n)/4+(e-s)*(e-s)/4),h=180*Math.atan((s-e)/(n-o))/Math.PI;return r<o&&(h+=180),{cx:r,cy:(e+s)/2,rx:a,ry:this.getRY(),angle:h}},i.prototype.getRY=function(){var t=this.getYAxis();return(0,C.defined)(t)?Math.abs(t.toPixels(this.options.ry)-t.toPixels(0)):this.options.ry},i.prototype.getYAxis=function(){var t=this.options.yAxis;return this.chart.yAxis[t]},i.prototype.getAbsolutePosition=function(t){return this.anchor(t).absolutePosition},i.prototype.redraw=function(i){if(this.graphic){var o=this.getAbsolutePosition(this.points[0]),e=this.getAbsolutePosition(this.points[1]),n=this.getAttrs(o,e);o?this.graphic[i?"animate":"attr"]({cx:n.cx,cy:n.cy,rx:n.rx,ry:n.ry,rotation:n.angle,rotationOriginX:n.cx,rotationOriginY:n.cy}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!o}t.prototype.redraw.call(this,i)},i.prototype.setYRadius=function(t){var i=this.annotation.userOptions.shapes;this.options.ry=t,i&&i[0]&&(i[0].ry=t,i[0].ry=t)},i.attrsMap=(0,C.merge)(tt.attrsMap,{ry:"ry"}),i}(z),ta=w(984),th=w.n(ta),tc=(l=function(t,i){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}l(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tl=th().format;function tp(t,i,o,e,n){var s,r,a=n&&n.anchorX,h=n&&n.anchorY,c=o/2;return(0,C.isNumber)(a)&&(0,C.isNumber)(h)&&(s=[["M",a,h]],(r=i-h)<0&&(r=-e-r),r<o&&(c=a<t+o/2?r:o-r),h>i+e?s.push(["L",t+c,i+e]):h<i?s.push(["L",t+c,i]):a<t?s.push(["L",t,i+e/2]):a>t+o&&s.push(["L",t+o,i+e/2])),s||[]}var tu=function(t){function i(i,o,e){return t.call(this,i,o,e,"label")||this}return tc(i,t),i.alignedPosition=function(t,i){return{x:Math.round((i.x||0)+(t.x||0)+(i.width-(t.width||0))*(0,C.getAlignFactor)(t.align)),y:Math.round((i.y||0)+(t.y||0)+(i.height-(t.height||0))*(0,C.getAlignFactor)(t.verticalAlign))}},i.compose=function(t){t.prototype.symbols.connector=tp},i.justifiedOptions=function(t,i,o,e){var n,s=o.align,r=o.verticalAlign,a=i.box?0:i.padding||0,h=i.getBBox(),c={align:s,verticalAlign:r,x:o.x,y:o.y,width:i.width,height:i.height},l=(e.x||0)-t.plotLeft,p=(e.y||0)-t.plotTop;return(n=l+a)<0&&("right"===s?c.align="left":c.x=(c.x||0)-n),(n=l+h.width-a)>t.plotWidth&&("left"===s?c.align="right":c.x=(c.x||0)+t.plotWidth-n),(n=p+a)<0&&("bottom"===r?c.verticalAlign="top":c.y=(c.y||0)-n),(n=p+h.height-a)>t.plotHeight&&("top"===r?c.verticalAlign="bottom":c.y=(c.y||0)+t.plotHeight-n),c},i.prototype.translatePoint=function(i,o){t.prototype.translatePoint.call(this,i,o,0)},i.prototype.translate=function(t,i){var o,e,n=this.annotation.chart,s=this.annotation.userOptions,r=n.annotations.indexOf(this.annotation),a=n.options.annotations[r];if(n.inverted){var h=t;t=i,i=h}(o=this.options).x||(o.x=0),(e=this.options).y||(e.y=0),this.options.x+=t,this.options.y+=i,a[this.collection][this.index].x=this.options.x,a[this.collection][this.index].y=this.options.y,s[this.collection][this.index].x=this.options.x,s[this.collection][this.index].y=this.options.y},i.prototype.render=function(o){var e=this.options,n=this.attrsFromOptions(e),s=e.style,r=this.annotation.chart.options.chart,a=r.plotBackgroundColor||r.backgroundColor;if(this.graphic=this.annotation.chart.renderer.label("",0,-9999,e.shape,void 0,void 0,e.useHTML,void 0,"annotation-label").attr(n).add(o),!this.annotation.chart.styledMode){if((null==s?void 0:s.color)==="contrast"){var h=!e.shape||i.shapesWithoutBackground.indexOf(e.shape)>-1||"none"===e.backgroundColor?a:e.backgroundColor;s.color=this.annotation.chart.renderer.getContrast("string"==typeof h?h:"string"==typeof a?a:"#ffffff")}this.graphic.css(e.style||{}).shadow(e.shadow)}this.graphic.labelrank=e.labelrank,t.prototype.render.call(this)},i.prototype.redraw=function(i){var o=this.options,e=this.text||o.format||o.text,n=this.graphic,s=this.points[0];if(!n)return void this.redraw(i);n.attr({text:e?tl(String(e),s,this.annotation.chart):o.formatter.call(s,s)});var r=this.anchor(s),a=this.position(r);a?(n.alignAttr=a,a.anchorX=r.absolutePosition.x,a.anchorY=r.absolutePosition.y,n[i?"animate":"attr"](a)):n.attr({x:0,y:-9999}),n.placed=!!a,t.prototype.redraw.call(this,i)},i.prototype.anchor=function(i){var o=t.prototype.anchor.apply(this,arguments),e=this.options.x||0,n=this.options.y||0;return o.absolutePosition.x-=e,o.absolutePosition.y-=n,o.relativePosition.x-=e,o.relativePosition.y-=n,o},i.prototype.position=function(t){var o,e,n,s,r=this.graphic,a=this.annotation.chart,h=a.tooltip,c=this.points[0],l=this.options,p=t.absolutePosition,u=t.relativePosition,d=c.series.visible&&W.prototype.isInsidePlot.call(c);if(r&&d){var f=r.width,v=void 0===f?0:f,g=r.height,y=void 0===g?0:g;l.distance&&h?o=h.getPosition.call({chart:a,distance:(0,C.pick)(l.distance,16),getPlayingField:h.getPlayingField,pointer:h.pointer},v,y,{plotX:u.x,plotY:u.y,negative:c.negative,ttBelow:c.ttBelow,h:u.height||u.width}):l.positioner?o=l.positioner.call(this,this):(e={x:p.x,y:p.y,width:0,height:0},o=i.alignedPosition((0,C.extend)(l,{width:v,height:y}),e),"justify"===this.options.overflow&&(o=i.alignedPosition(i.justifiedOptions(a,r,l,o),e))),l.crop&&(n=o.x-a.plotLeft,s=o.y-a.plotTop,d=a.isInsidePlot(n,s)&&a.isInsidePlot(n+v,s+y))}return d?o:null},i.attrsMap={backgroundColor:"fill",borderColor:"stroke",borderWidth:"stroke-width",zIndex:"zIndex",borderRadius:"r",padding:"padding"},i.shapesWithoutBackground=["connector"],i}(z),td=(p=function(t,i){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}p(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tf=function(t){function i(i,o,e){var n=t.call(this,i,o,e,"shape")||this;return n.type="image",n.translate=t.prototype.translateShape,n}return td(i,t),i.prototype.render=function(i){var o=this.attrsFromOptions(this.options),e=this.options;this.graphic=this.annotation.chart.renderer.image(e.src,0,-9e9,e.width,e.height).attr(o).add(i),this.graphic.width=e.width,this.graphic.height=e.height,t.prototype.render.call(this)},i.prototype.redraw=function(i){if(this.graphic){var o=this.anchor(this.points[0]),e=tu.prototype.position.call(this,o);e?this.graphic[i?"animate":"attr"]({x:e.x,y:e.y}):this.graphic.attr({x:0,y:-9e9}),this.graphic.placed=!!e}t.prototype.redraw.call(this,i)},i.attrsMap={width:"width",height:"height",zIndex:"zIndex"},i}(z),tv=w(660),tg=w.n(tv),ty=function(t){return'<?xml version="1.0" encoding="utf-8"?>\n        <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 '.concat(t," ").concat(t,'">')},tm="#4B4B4D",tx={"close.svg":"".concat(ty(32),'\n<polygon fill="').concat(tm,'" 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\n    8.755,24.308 16.002,17.061 23.247,24.307 24.308,23.248 17.062,16.001"/>\n</svg>\n'),"destroy.svg":"".concat(ty(32),'\n<g>\n    <rect x="12.75" y="14" fill="').concat(tm,'" width="1.5" height="10"/>\n    <rect x="17.75" y="14" fill="').concat(tm,'" width="1.5" height="10"/>\n    <path fill="').concat(tm,'" 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\n        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\n        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\n        H8.25V10.5c0-0.689,0.561-1.25,1.25-1.25h13c0.689,0,1.25,0.561,1.25,1.25V10.751z"/>\n</g>\n</svg>\n'),"edit.svg":"".concat(ty(32),'\n<path fill="').concat(tm,'" 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\n    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\n     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\n    L18.686,9.375z M6.974,21.784l3.242,3.242l-4.215,0.973L6.974,21.784z"/>\n</svg>\n')},tb=function(t,i,o){var e,n=o[t];return"renderer"===i&&n?(n=encodeURIComponent(n),e='url("data:image/svg+xml;charset=utf-8,'.concat(n,'")')):e=i.startsWith("http")&&i.match(/\.(png|svg|jpe?g|gif)$/ig)?'url("'+i+'")':'url("'.concat(i+t+'"'),e},tA=function(){function t(t,i){this.iconsURL=i,this.container=this.createPopupContainer(t),this.closeButton=this.addCloseButton()}return t.prototype.createPopupContainer=function(t,i){return void 0===i&&(i="highcharts-popup highcharts-no-tooltip"),(0,C.createElement)("div",{className:i},void 0,t)},t.prototype.addCloseButton=function(t){var i=this;void 0===t&&(t="highcharts-popup-close");var o=(0,C.createElement)("button",{className:t},void 0,this.container);return(0,C.createElement)("span",{className:"highcharts-icon"},{backgroundImage:tb("close.svg",this.iconsURL,tx)},o),["click","touchstart"].forEach(function(t){(0,C.addEvent)(o,t,i.closeButtonEvents.bind(i))}),(0,C.addEvent)(document,"keydown",function(t){"Escape"===t.code&&i.closeButtonEvents()}),o},t.prototype.closeButtonEvents=function(){this.closePopup()},t.prototype.showPopup=function(t){void 0===t&&(t="highcharts-annotation-toolbar");var i=this.container,o=this.closeButton;this.type=void 0,i.innerHTML=tg().emptyHTML,i.className.indexOf(t)>=0&&(i.classList.remove(t),i.removeAttribute("style")),i.appendChild(o),i.style.display="block",i.style.height=""},t.prototype.closePopup=function(){this.container.style.display="none"},t}(),tE=w(620),tw=w.n(tE),tk=O().doc,tC=O().isFirefox;function tO(t,i,o,e,n,s){var r,a,h=this;if(i){var c=this.addInput,l=this.lang;(0,C.objectEach)(e,function(e,s){r=""!==o?o+"."+s:s,(0,C.isObject)(e)&&(!(0,C.isArray)(e)||(0,C.isArray)(e)&&(0,C.isObject)(e[0])?((a=l[s]||s).match(/\d/g)||n.push([!0,a,t]),tO.call(h,t,i,r,e,n,!1)):n.push([h,r,"annotation",t,e]))}),s&&((0,C.stableSort)(n,function(t){return t[1].match(/format/g)?-1:1}),tC&&n.reverse(),n.forEach(function(t){!0===t[0]?(0,C.createElement)("span",{className:"highcharts-annotation-title"},void 0,t[2]).appendChild(tk.createTextNode(t[1])):(t[4]={value:t[4][0],type:t[4][1]},c.apply(t[0],t.splice(1)))}))}}var tP=O().doc,tN=R().seriesTypes;(u=x||(x={}))[u["params.algorithm"]=0]="params.algorithm",u[u["params.average"]=1]="params.average";var tM={"algorithm-pivotpoints":["standard","fibonacci","camarilla"],"average-disparityindex":["sma","ema","dema","tema","wma"]};function tB(t){var i=(0,C.createElement)("div",{className:"highcharts-popup-lhs-col"},void 0,t),o=(0,C.createElement)("div",{className:"highcharts-popup-rhs-col"},void 0,t);return(0,C.createElement)("div",{className:"highcharts-popup-rhs-col-wrapper"},void 0,o),{lhsCol:i,rhsCol:o}}function tT(t,i,o,e){var n=i.params||i.options.params;e.innerHTML=tg().emptyHTML,(0,C.createElement)("h3",{className:"highcharts-indicator-title"},void 0,e).appendChild(tP.createTextNode(tX(i,o).indicatorFullName)),(0,C.createElement)("input",{type:"hidden",name:"highcharts-type-"+o,value:o},void 0,e),tF.call(this,o,"series",t,e,i,i.linkedParent&&i.linkedParent.options.id),n.volumeSeriesID&&tF.call(this,o,"volume",t,e,i,i.linkedParent&&n.volumeSeriesID),tS.call(this,t,"params",n,o,e)}function t_(t,i,o,e){function n(i,o){var e=f.parentNode.children[1];tT.call(s,t,i,o,f),e&&(e.style.display="block"),c&&i.options&&(0,C.createElement)("input",{type:"hidden",name:"highcharts-id-"+o,value:i.options.id},void 0,f).setAttribute("highcharts-data-series-id",i.options.id)}var s=this,r=s.lang,a=i.querySelectorAll(".highcharts-popup-lhs-col")[0],h=i.querySelectorAll(".highcharts-popup-rhs-col")[0],c="edit"===o,l=c?t.series:t.options.plotOptions||{};if(t||!l){var p,u=[];c||(0,C.isArray)(l)?(0,C.isArray)(l)&&(u=tY.call(this,l)):u=tj.call(this,l,e),(0,C.stableSort)(u,function(t,i){var o=t.indicatorFullName.toLowerCase(),e=i.indicatorFullName.toLowerCase();return o<e?-1:+(o>e)}),a.children[1]&&a.children[1].remove();var d=(0,C.createElement)("ul",{className:"highcharts-indicator-list"},void 0,a),f=h.querySelectorAll(".highcharts-popup-rhs-col-wrapper")[0];if(u.forEach(function(t){var i=t.indicatorFullName,o=t.indicatorType,e=t.series;p=(0,C.createElement)("li",{className:"highcharts-indicator-list"},void 0,d);var s=(0,C.createElement)("button",{className:"highcharts-indicator-list-item",textContent:i},void 0,p);["click","touchstart"].forEach(function(t){(0,C.addEvent)(s,t,function(){n(e,o)})})}),u.length>0){var v=u[0];n(v.series,v.indicatorType)}else c||(tg().setElementHTML(f.parentNode.children[0],r.noFilterMatch||""),f.parentNode.children[1].style.display="none")}}function tS(t,i,o,e,n){var s=this;if(t){var r=this.addInput;(0,C.objectEach)(o,function(o,a){var h=i+"."+a;if((0,C.defined)(o)&&h)if((0,C.isObject)(o)&&(r.call(s,h,e,n,{}),tS.call(s,t,h,o,e,n)),h in x){var c=tI.call(s,e,h,n);tD.call(s,t,i,c,e,a,o)}else"params.volumeSeriesID"===h||(0,C.isArray)(o)||r.call(s,h,e,n,{value:o,type:"number"})})}}function tL(t,i){var o=this,e=i.querySelectorAll(".highcharts-popup-lhs-col")[0],n=this.lang.clearFilter,s=(0,C.createElement)("div",{className:"highcharts-input-wrapper"},void 0,e),r=function(i){t_.call(o,t,o.container,"add",i)},a=this.addInput("searchIndicators","input",s,{value:"",type:"text",htmlFor:"search-indicators",labelClassName:"highcharts-input-search-indicators-label"}),h=(0,C.createElement)("a",{textContent:n},void 0,s);a.classList.add("highcharts-input-search-indicators"),h.classList.add("clear-filter-button"),(0,C.addEvent)(a,"input",function(){r(this.value),this.value.length?h.style.display="inline-block":h.style.display="none"}),["click","touchstart"].forEach(function(t){(0,C.addEvent)(h,t,function(){a.value="",r(""),h.style.display="none"})})}function tI(t,i,o){var e=i.split("."),n=e[e.length-1],s="highcharts-"+i+"-type-"+t,r=this.lang;(0,C.createElement)("label",{htmlFor:s},null,o).appendChild(tP.createTextNode(r[n]||i));var a=(0,C.createElement)("select",{name:s,className:"highcharts-popup-field",id:"highcharts-select-"+i},null,o);return a.setAttribute("id","highcharts-select-"+i),a}function tD(t,i,o,e,n,s,r){"series"===i||"volume"===i?t.series.forEach(function(t){var e=t.options,n=e.name||e.params?t.name:e.id||"";"highcharts-navigator-series"!==e.id&&e.id!==(r&&r.options&&r.options.id)&&((0,C.defined)(s)||"volume"!==i||"column"!==t.type||(s=e.id),(0,C.createElement)("option",{value:e.id},void 0,o).appendChild(tP.createTextNode(n)))}):e&&n&&tM[n+"-"+e].forEach(function(t){(0,C.createElement)("option",{value:t},void 0,o).appendChild(tP.createTextNode(t))}),(0,C.defined)(s)&&(o.value=s)}function tj(t,i){var o,e=this.chart&&this.chart.options.lang,n=e&&e.navigation&&e.navigation.popup&&e.navigation.popup.indicatorAliases,s=new Map;return(0,C.objectEach)(t,function(t,e){var r=t&&t.options;if(t.params||r&&r.params){var a=tX(t,e),h=a.indicatorFullName,c=a.indicatorType;if(i){var l=RegExp(i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i"),p=n&&n[c]&&n[c].join(" ")||"";(h.match(l)||p.match(l))&&(o={indicatorFullName:h,indicatorType:c,series:t},s.set(c.toLowerCase(),o))}else o={indicatorFullName:h,indicatorType:c,series:t},s.set(c.toLowerCase(),o)}}),Array.from(s.values())}function tY(t){var i=[];return t.forEach(function(t){t.is("sma")&&i.push({indicatorFullName:t.name,indicatorType:t.type,series:t})}),i}function tX(t,i){var o=t.options,e=tN[i]&&tN[i].prototype.nameBase||i.toUpperCase(),n=i;return o&&o.type&&(n=t.options.type,e=t.name),{indicatorFullName:e,indicatorType:n}}function tF(t,i,o,e,n,s){if(o){var r=tI.call(this,t,i,e);tD.call(this,o,i,r,void 0,void 0,void 0,n),(0,C.defined)(s)&&(r.value=s)}}var tR=O().doc;function tU(){var t=this.container;return(0,C.createElement)("div",{className:"highcharts-tab-item-content highcharts-no-mousewheel"},void 0,t)}function tW(t,i){var o=this.container,e=this.lang,n="highcharts-tab-item";0===i&&(n+=" highcharts-tab-disabled");var s=(0,C.createElement)("button",{className:n},void 0,o);return s.appendChild(tR.createTextNode(e[t+"Button"]||t)),s.setAttribute("highcharts-data-tab-type",t),s}function tH(){for(var t=this.container,i=t.querySelectorAll(".highcharts-tab-item"),o=t.querySelectorAll(".highcharts-tab-item-content"),e=0;e<i.length;e++)i[e].classList.remove("highcharts-tab-item-active"),o[e].classList.remove("highcharts-tab-item-show")}function tz(t,i){var o=this.container.querySelectorAll(".highcharts-tab-item-content");t.className+=" highcharts-tab-item-active",o[i].className+=" highcharts-tab-item-show"}function tV(t){var i=this;this.container.querySelectorAll(".highcharts-tab-item").forEach(function(o,e){(0!==t||"edit"!==o.getAttribute("highcharts-data-tab-type"))&&["click","touchstart"].forEach(function(t){(0,C.addEvent)(o,t,function(){tH.call(i),tz.call(i,this,e)})})})}var tq=(d=function(t,i){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}d(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),tG=O().doc,tK=O().getOptions,t$=function(t){function i(i,o,e){var n=t.call(this,i,o)||this;return n.chart=e,n.lang=(tK().lang.navigation||{}).popup||{},(0,C.addEvent)(n.container,"mousedown",function(){var t=e&&e.navigationBindings&&e.navigationBindings.activeAnnotation;if(t){t.cancelClick=!0;var i=(0,C.addEvent)(tG,"click",function(){setTimeout(function(){t.cancelClick=!1},0),i()})}}),n}return tq(i,t),i.prototype.addInput=function(t,i,o,e){var n,s=t.split("."),r=s[s.length-1],a=this.lang,h="highcharts-"+i+"-"+(0,C.pick)(e.htmlFor,r);if(r.match(/^\d+$/)||(0,C.createElement)("label",{htmlFor:h,className:e.labelClassName},void 0,o).appendChild(tG.createTextNode(a[r]||r)),"color"===e.type&&(null==(n=this.chart)?void 0:n.container))return this.createColorInput(t,h,e,o,this.chart.container);var c=(0,C.createElement)("input",{name:h,value:e.value,type:e.type,className:"highcharts-popup-field"},void 0,o);return c.setAttribute("highcharts-data-name",t),c},i.prototype.createColorInput=function(t,i,o,e,n){var s=function(t,i){var o=function(t){return("0"+Math.round(t).toString(16)).slice(-2).toUpperCase()},e=function(t){var i=tw().parse(t).rgba,e=i[0],n=i[1],s=i[2],r=i[3];return{value:"#"+o(e)+o(n)+o(s),alpha:r}};if(t.startsWith("rgb")||t.startsWith("rgba"))return e(t);if(t.startsWith("color")||t.startsWith("var")){var n=tG.createElement("span");n.style.setProperty("color",t),i.appendChild(n);var s=window.getComputedStyle(n).color;if(i.removeChild(n),s.startsWith("color")){var r=s.match(RegExp("color\\s*\\(\\s*srgb\\s+([\\d.]+)\\s+([\\d.]+)\\s+([\\d.]+)\\s+(?:\\s*\\/\\s*([\\d.]+))?\\s*\\)"));if(r){var a=Math.round(255*parseFloat(r[1])),h=Math.round(255*parseFloat(r[2])),c=Math.round(255*parseFloat(r[3])),l=r[4]?parseFloat(r[4]):1;return{value:"#"+o(a)+o(h)+o(c),alpha:l}}}if(s.startsWith("rgb")||s.startsWith("rgba"))return e(s)}return{value:t,alpha:1}}(o.value||"",n),r=s.value,a=s.alpha,h=tw().parse(o.value||"").rgba[3],c=isNaN(h)?a:h,l=(0,C.createElement)("div",{className:"highcharts-popup-color-wrapper"},void 0,e),p=(0,C.createElement)("input",{type:"color",value:r,className:"highcharts-popup-field highcharts-popup-field-color"},void 0,l),u=(0,C.createElement)("input",{name:i,id:i,value:r,type:"text",className:"highcharts-popup-field highcharts-popup-field-text"},void 0,l);u.setAttribute("highcharts-data-name",t);var d=(0,C.createElement)("span",{className:"highcharts-popup-color-separator"},void 0,l),f=(0,C.createElement)("input",{type:"number",value:String(Math.round(100*c)),className:"highcharts-popup-field highcharts-popup-opacity-percentage",min:"0",max:"100",step:"1"},void 0,l),v=(0,C.createElement)("span",{className:"highcharts-popup-opacity-percent-suffix"},void 0,l);v.appendChild(tG.createTextNode(" %"));var g=(0,C.createElement)("input",{type:"range",value:String(Math.round(100*c)),className:"highcharts-popup-opacity-slider",min:"0",max:"100",step:"1"},void 0,e);g.style.setProperty("--highcharts-popup-opacity-track-color",r),g.style.setProperty("display","none");var y=function(){var t=/^#[0-9A-Fa-f]{6}$/.test(u.value);d.style.display=t?"":"none",f.style.display=t?"":"none",v.style.display=t?"":"none"};y();var m=function(t){var i=t.target,o=(0,C.clamp)(Number(i.value),0,100);g.value=String(o),f.value=String(Math.round(o))},x=function(t){t.target===p?u.value=p.value.toUpperCase():p.value=u.value,g.style.setProperty("--highcharts-popup-opacity-track-color",p.value),y()};return(0,C.addEvent)(e,"mousedown",function(t){t.target!==f&&t.target!==g&&(g.style.display="none")}),(0,C.addEvent)(f,"focus",function(){g.style.display=""}),(0,C.addEvent)(f,"input",m),(0,C.addEvent)(g,"input",m),(0,C.addEvent)(p,"input",x),(0,C.addEvent)(u,"input",x),l},i.prototype.closeButtonEvents=function(){if(this.chart){var i=this.chart.navigationBindings;(0,C.fireEvent)(i,"closePopup"),i&&i.selectedButtonElement&&(0,C.fireEvent)(i,"deselectButton",{button:i.selectedButtonElement})}else t.prototype.closeButtonEvents.call(this)},i.prototype.addButton=function(t,i,o,e,n){var s=this,r=(0,C.createElement)("button",void 0,void 0,t);return r.appendChild(tG.createTextNode(i)),n&&["click","touchstart"].forEach(function(t){(0,C.addEvent)(r,t,function(){var t,i,r,a,h;return s.closePopup(),n((t=Array.prototype.slice.call(e.querySelectorAll("input")),i=Array.prototype.slice.call(e.querySelectorAll("select")),r=e.querySelectorAll("#highcharts-select-series > option:checked")[0],a=e.querySelectorAll("#highcharts-select-volume > option:checked")[0],h={actionType:o,linkedTo:r&&r.getAttribute("value")||"",fields:{}},t.forEach(function(t){var i=t.getAttribute("highcharts-data-name");if(t.getAttribute("highcharts-data-series-id"))h.seriesId=t.value;else if(i){var o=t.closest(".highcharts-popup-color-wrapper"),e=null==o?void 0:o.querySelector(".highcharts-popup-opacity-percentage"),n=e?Number(e.value)/100:1;if(e){var s=tw().parse(t.value).rgba;h.fields[i]=Number.isNaN(s[0])?t.value:"rgba(".concat(s[0],",").concat(s[1],",").concat(s[2],",").concat(n,")")}else h.fields[i]=t.value}else h.type=t.value}),i.forEach(function(t){var i=t.id;if("highcharts-select-series"!==i&&"highcharts-select-volume"!==i){var o=i.split("highcharts-select-")[1];h.fields[o]=t.value}}),a&&(h.fields["params.volumeSeriesID"]=a.getAttribute("value")||""),h))})}),r},i.prototype.showForm=function(t,i,o,e){i&&(this.showPopup(),"indicators"===t&&this.indicators.addForm.call(this,i,o,e),"annotation-toolbar"===t&&this.annotations.addToolbar.call(this,i,o,e),"annotation-edit"===t&&this.annotations.addForm.call(this,i,o,e),"flag"===t&&this.annotations.addForm.call(this,i,o,e,!0),this.type=t,this.container.style.height=this.container.offsetHeight+"px")},i}(tA);(0,C.extend)(t$.prototype,{annotations:{addForm:function(t,i,o,e){if(t){var n=this.container,s=this.lang,r=(0,C.createElement)("h2",{className:"highcharts-popup-main-title"},void 0,n);r.appendChild(tk.createTextNode(s[i.langKey]||i.langKey||"")),r=(0,C.createElement)("div",{className:"highcharts-popup-lhs-col highcharts-popup-lhs-full"},void 0,n);var a=(0,C.createElement)("div",{className:"highcharts-popup-bottom-row"},void 0,n);tO.call(this,r,t,"",i,[],!0),this.addButton(a,e?s.addButton||"Add":s.saveButton||"Save",e?"add":"save",n,o)}},addToolbar:function(t,i,o){var e=this,n=this.lang,s=this.container,r=this.showForm,a="highcharts-annotation-toolbar";-1===s.className.indexOf(a)&&(s.className+=" "+a+" highcharts-no-mousewheel"),t&&(s.style.top=t.plotTop+10+"px");var h=(0,C.createElement)("p",{className:"highcharts-annotation-label"},void 0,s);h.setAttribute("aria-label","Annotation type"),h.appendChild(tk.createTextNode((0,C.pick)(n[i.langKey]||i.langKey,i.shapes&&i.shapes[0].type,"")));var c=this.addButton(s,n.editButton||"Edit","edit",s,function(){r.call(e,"annotation-edit",t,i,o)});c.className+=" highcharts-annotation-edit-button",(0,C.createElement)("span",{className:"highcharts-icon"},{backgroundImage:tb("edit.svg",this.iconsURL,tx)},c),c=this.addButton(s,n.removeButton||"Remove","remove",s,o),c.className+=" highcharts-annotation-remove-button",(0,C.createElement)("span",{className:"highcharts-icon"},{backgroundImage:tb("destroy.svg",this.iconsURL,tx)},c)}},indicators:{addForm:function(t,i,o){var e,n=this.lang;if(t){this.tabs.init.call(this,t);var s=this.container.querySelectorAll(".highcharts-tab-item-content");tB(s[0]),tL.call(this,t,s[0]),t_.call(this,t,s[0],"add"),e=s[0].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(e,n.addButton||"add","add",e,o),tB(s[1]),t_.call(this,t,s[1],"edit"),e=s[1].querySelectorAll(".highcharts-popup-rhs-col")[0],this.addButton(e,n.saveButton||"save","edit",e,o),this.addButton(e,n.removeButton||"remove","remove",e,o)}},getAmount:function(){var t=0;return this.series.forEach(function(i){(i.params||i.options.params)&&t++}),t}},tabs:{init:function(t){if(t){var i=this.indicators.getAmount.call(t),o=tW.call(this,"add");tW.call(this,"edit",i),tU.call(this),tU.call(this),tV.call(this,i),tz.call(this,o,0)}}}});var tZ=O().composed;function tJ(){this.popup&&this.popup.closePopup()}function tQ(t){this.popup||(this.popup=new t$(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 t0(t,i){this.inClass(i.target,"highcharts-popup")||t.apply(this,Array.prototype.slice.call(arguments,1))}var t1=function(t,i){(0,C.pushUnique)(tZ,"Popup")&&((0,C.addEvent)(t,"closePopup",tJ),(0,C.addEvent)(t,"showPopup",tQ),(0,C.wrap)(i.prototype,"onContainerMouseDown",t0))},t2=(f=function(t,i){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)},function(t,i){if("function"!=typeof i&&null!==i)throw TypeError("Class extends value "+String(i)+" is not a constructor or null");function o(){this.constructor=t}f(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),t9=function(t,i,o){if(o||2==arguments.length)for(var e,n=0,s=i.length;n<s;n++)!e&&n in i||(e||(e=Array.prototype.slice.call(i,0,n)),e[n]=i[n]);return t.concat(e||Array.prototype.slice.call(i))},t5=O().getDeferredAnimation,t3=O().defaultOptions;function t7(t,i){var o={};return["labels","shapes"].forEach(function(e){var n=t[e],s=i[e];n&&(s?o[e]=(0,C.splat)(s).map(function(t,i){return(0,C.merge)(n[i],t)}):o[e]=t[e])}),o}var t4=function(t){function i(i,o){var e=t.call(this)||this;e.coll="annotations",e.chart=i,e.points=[],e.controlPoints=[],e.coll="annotations",e.index=-1,e.labels=[],e.shapes=[],e.setOptions(o),e.userOptions=o;var n=t7(e.options,o);return e.options.labels=n.labels,e.options.shapes=n.shapes,e.init(i,e.options),e}return t2(i,t),i.compose=function(t,o,e,n){S.compose(i,t,e),tu.compose(n),tt.compose(t,n),o.compose(i,t),t1(o,e)},i.prototype.addClipPaths=function(){this.setClipAxes(),this.clipXAxis&&this.clipYAxis&&this.options.crop&&(this.clipRect=this.chart.renderer.clipRect(this.getClipBox()))},i.prototype.addLabels=function(){var t=this,i=this.options.labels||[];i.forEach(function(o,e){var n=t.initLabel(o,e);(0,C.merge)(!0,i[e],n.options)})},i.prototype.addShapes=function(){var t=this,i=this.options.shapes||[];i.forEach(function(o,e){var n=t.initShape(o,e);(0,C.merge)(!0,i[e],n.options)})},i.prototype.destroy=function(){var i=this.chart,o=function(t){t.destroy()};this.labels.forEach(o),this.shapes.forEach(o),this.clipXAxis=null,this.clipYAxis=null,(0,C.erase)(i.labelCollectors,this.labelCollector),t.prototype.destroy.call(this),this.destroyControlTarget(),(0,C.destroyObjectProperties)(this,i)},i.prototype.destroyItem=function(t){(0,C.erase)(this[t.itemType+"s"],t),t.destroy()},i.prototype.getClipBox=function(){if(this.clipXAxis&&this.clipYAxis)return{x:this.clipXAxis.left,y:this.clipYAxis.top,width:this.clipXAxis.width,height:this.clipYAxis.height}},i.prototype.initProperties=function(t,i){this.setOptions(i);var o=t7(this.options,i);this.options.labels=o.labels,this.options.shapes=o.shapes,this.chart=t,this.points=[],this.controlPoints=[],this.coll="annotations",this.userOptions=i,this.labels=[],this.shapes=[]},i.prototype.init=function(t,i,o){void 0===o&&(o=this.index);var e=this.chart,n=this.options.animation;this.index=o,this.linkPoints(),this.addControlPoints(),this.addShapes(),this.addLabels(),this.setLabelCollector(),this.animationConfig=t5(e,n)},i.prototype.initLabel=function(t,i){null==(o=this.options.labelOptions)||o.align;var o,e=new tu(this,(0,C.merge)(this.options.labelOptions,{controlPointOptions:this.options.controlPointOptions},t),i);return e.itemType="label",this.labels.push(e),e},i.prototype.initShape=function(t,o){var e=(0,C.merge)(this.options.shapeOptions,{controlPointOptions:this.options.controlPointOptions},t),n=new i.shapesMap[e.type||"rect"](this,e,o);return n.itemType="shape",this.shapes.push(n),n},i.prototype.redraw=function(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)},i.prototype.redrawItem=function(t,i){if(t.linkPoints(),t.shouldBeDrawn()){var o,e;t.graphic||this.renderItem(t),t.redraw((0,C.pick)(i,!0)&&t.graphic.placed),t.points.length&&(o=t.graphic,e=t.points.some(function(t){return!1!==t.series.visible&&!1!==t.visible}),o&&(e?"hidden"===o.visibility&&o.show():o.hide()))}else this.destroyItem(t)},i.prototype.redrawItems=function(t,i){for(var o=t.length;o--;)this.redrawItem(t[o],i)},i.prototype.remove=function(){return this.chart.removeAnnotation(this)},i.prototype.render=function(){var 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()},i.prototype.renderItem=function(t){t.render("label"===t.itemType?this.labelsGroup:this.shapesGroup)},i.prototype.renderItems=function(t){for(var i=t.length;i--;)this.renderItem(t[i])},i.prototype.setClipAxes=function(){var t,i,o=this.chart.xAxis,e=this.chart.yAxis,n=t9(t9([],null!=(t=this.options.labels)?t:[],!0),null!=(i=this.options.shapes)?i:[],!0).reduce(function(t,i){var n,s=i&&(i.point||"points"in i&&(null==(n=i.points)?void 0:n[0]));return[o[s&&s.xAxis]||t[0],e[s&&s.yAxis]||t[1]]},[]);this.clipXAxis=n[0],this.clipYAxis=n[1]},i.prototype.setControlPointsVisibility=function(t){var i=function(i){i.setControlPointsVisibility(t)};this.controlPoints.forEach(function(i){i.setVisibility(t)}),this.shapes.forEach(i),this.labels.forEach(i)},i.prototype.setLabelCollector=function(){var t=this;t.labelCollector=function(){return t.labels.reduce(function(t,i){return i.options.allowOverlap||t.push(i.graphic),t},[])},t.chart.labelCollectors.push(t.labelCollector)},i.prototype.setOptions=function(t){var i,o;this.options=(0,C.merge)(this.defaultOptions,t.type&&(null==(i=this.defaultOptions.types)?void 0:i[t.type])||{},t),(o=this.options).typeOptions||(o.typeOptions={})},i.prototype.setVisibility=function(t){var i=this.options,o=this.chart.navigationBindings,e=(0,C.pick)(t,!i.visible);if(this.graphic.attr("visibility",e?"inherit":"hidden"),!e){var n=function(t){t.setControlPointsVisibility(e)};this.shapes.forEach(n),this.labels.forEach(n),o.activeAnnotation===this&&o.popup&&"annotation-toolbar"===o.popup.type&&(0,C.fireEvent)(o,"closePopup")}i.visible=e},i.prototype.update=function(t,i){var o=this.chart,e=t7(this.userOptions,t),n=o.annotations.indexOf(this),s=(0,C.merge)(!0,this.userOptions,t);s.labels=e.labels,s.shapes=e.shapes,this.destroy(),this.initProperties(o,s),this.init(o,s),o.options.annotations[n]=this.options,this.isUpdating=!0,(0,C.pick)(i,!0)&&o.drawAnnotations(),(0,C.fireEvent)(this,"afterUpdate"),this.isUpdating=!1},i.ControlPoint=X,i.MockPoint=W,i.shapesMap={rect:to,circle:tn,ellipse:tr,path:tt,image:tf},i.types={},i}(j);t4.prototype.defaultOptions=L,t3.annotations=L,t4.prototype.nonDOMEvents=["add","afterUpdate","drag","remove"],H.compose(t4),(v=b||(b={})).compose=function(t){return t.navigation||(t.navigation=new g(t)),t},v.Additions=g=function(){function t(t){this.updates=[],this.chart=t}return t.prototype.addUpdate=function(t){this.chart.navigation.updates.push(t)},t.prototype.update=function(t,i){var o=this;this.updates.forEach(function(e){e.call(o.chart,t,i)})},t}();var t6=b,t8={backgroundColor:"color",backgroundColors:"color",borderColor:"color",borderRadius:"string",color:"color",fill:"color",fontSize:"string",labels:"string",name:"string",stroke:"color",title:"string"},it=function(t){return t.filter(function(t){var i=t.axis.getExtremes(),o=i.min,e=i.max,n=(0,C.pick)(t.axis.minPointOffset,0);return(0,C.isNumber)(o)&&(0,C.isNumber)(e)&&t.value>=o-n&&t.value<=e+n&&!t.axis.options.isInternal})[0]},ii={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){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t),e=o&&it(o.xAxis),n=o&&it(o.yAxis),s=this.chart.options.navigation;if(e&&n)return this.chart.addAnnotation((0,C.merge)({langKey:"circle",type:"basicAnnotation",shapes:[{type:"circle",point:{x:e.value,y:n.value,xAxis:e.axis.index,yAxis:n.axis.index},r:5}]},s.annotationsOptions,s.bindings.circleAnnotation.annotationsOptions))},steps:[function(t,i){var o,e=i.options.shapes,n=e&&e[0]&&e[0].point||{};if((0,C.isNumber)(n.xAxis)&&(0,C.isNumber)(n.yAxis)){var s=this.chart.inverted,r=this.chart.xAxis[n.xAxis].toPixels(n.x),a=this.chart.yAxis[n.yAxis].toPixels(n.y);o=Math.max(Math.sqrt(Math.pow(s?a-t.chartX:r-t.chartX,2)+Math.pow(s?r-t.chartY:a-t.chartY,2)),5)}i.update({shapes:[{r:o}]})}]},ellipseAnnotation:{className:"highcharts-ellipse-annotation",start:function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t),e=o&&it(o.xAxis),n=o&&it(o.yAxis),s=this.chart.options.navigation;if(e&&n)return this.chart.addAnnotation((0,C.merge)({langKey:"ellipse",type:"basicAnnotation",shapes:[{type:"ellipse",xAxis:e.axis.index,yAxis:n.axis.index,points:[{x:e.value,y:n.value},{x:e.value,y:n.value}],ry:1}]},s.annotationsOptions,s.bindings.ellipseAnnotation.annotationsOptions))},steps:[function(t,i){var o=i.shapes[0],e=o.getAbsolutePosition(o.points[1]);o.translatePoint(t.chartX-e.x,t.chartY-e.y,1),o.redraw(!1)},function(t,i){var o=i.shapes[0],e=o.getAbsolutePosition(o.points[0]),n=o.getAbsolutePosition(o.points[1]),s=o.getDistanceFromLine(e,n,t.chartX,t.chartY),r=o.getYAxis(),a=Math.abs(r.toValue(0)-r.toValue(s));o.setYRadius(a),o.redraw(!1)}]},rectangleAnnotation:{className:"highcharts-rectangle-annotation",start:function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t),e=o&&it(o.xAxis),n=o&&it(o.yAxis);if(e&&n){var s=e.value,r=n.value,a=e.axis.index,h=n.axis.index,c=this.chart.options.navigation;return this.chart.addAnnotation((0,C.merge)({langKey:"rectangle",type:"basicAnnotation",shapes:[{type:"path",points:[{xAxis:a,yAxis:h,x:s,y:r},{xAxis:a,yAxis:h,x:s,y:r},{xAxis:a,yAxis:h,x:s,y:r},{xAxis:a,yAxis:h,x:s,y:r},{command:"Z"}]}]},c.annotationsOptions,c.bindings.rectangleAnnotation.annotationsOptions))}},steps:[function(t,i){var o,e=i.options.shapes,n=e&&e[0]&&e[0].points||[],s=null==(o=this.chart.pointer)?void 0:o.getCoordinates(t),r=s&&it(s.xAxis),a=s&&it(s.yAxis);if(r&&a){var h=r.value,c=a.value;n[1].x=h,n[2].x=h,n[2].y=c,n[3].y=c,i.update({shapes:[{points:n}]})}}]},labelAnnotation:{className:"highcharts-label-annotation",start:function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t),e=o&&it(o.xAxis),n=o&&it(o.yAxis),s=this.chart.options.navigation;if(e&&n)return this.chart.addAnnotation((0,C.merge)({langKey:"label",type:"basicAnnotation",labelOptions:{format:"{y:.2f}",overflow:"none",crop:!0},labels:[{point:{xAxis:e.axis.index,yAxis:n.axis.index,x:e.value,y:n.value}}]},s.annotationsOptions,s.bindings.labelAnnotation.annotationsOptions))}}},events:{},annotationsOptions:{animation:{defer:0}}}},io=O().setOptions,ie=th().format,is=O().composed,ir=O().doc,ia=O().win,ih=function(t,i){var o=t8[t],e=typeof i;return(0,C.defined)(o)&&(e=o),({string:"text",number:"number",boolean:"checkbox",color:"color"})[e]};function ic(){this.chart.navigationBindings&&this.chart.navigationBindings.deselectAnnotation()}function il(){this.navigationBindings&&this.navigationBindings.destroy()}function ip(){var t=this.options;t&&t.navigation&&t.navigation.bindings&&(this.navigationBindings=new iy(this,t.navigation),this.navigationBindings.initEvents(),this.navigationBindings.initUpdate())}function iu(){var t=this.navigationBindings,i="highcharts-disabled-btn";if(this&&t){var o=!1;if(this.series.forEach(function(t){!t.options.isInternal&&t.visible&&(o=!0)}),this.navigationBindings&&this.navigationBindings.container&&this.navigationBindings.container[0]){var e=this.navigationBindings.container[0];(0,C.objectEach)(t.boundClassNames,function(t,n){var s=e.querySelectorAll("."+n);if(s)for(var r=0;r<s.length;r++){var a=s[r],h=a.className;"normal"===t.noDataState||o?-1!==h.indexOf(i)&&a.classList.remove(i):-1===h.indexOf(i)&&(a.className+=" "+i)}})}}}function id(){this.deselectAnnotation()}function iv(){this.selectedButtonElement=null}function ig(t){var i,o,e=t.prototype.defaultOptions.events&&t.prototype.defaultOptions.events.click;function n(t){var i=this,o=i.chart.navigationBindings,n=o.activeAnnotation;e&&e.call(i,t),n!==i?(o.deselectAnnotation(),o.activeAnnotation=i,i.setControlPointsVisibility(!0),(0,C.fireEvent)(o,"showPopup",{annotation:i,formType:"annotation-toolbar",options:o.annotationToFields(i),onSubmit:function(t){if("remove"===t.actionType)o.activeAnnotation=!1,o.chart.removeAnnotation(i);else{var e={};o.fieldsToOptions(t.fields,e),o.deselectAnnotation();var n=e.typeOptions;"measure"===i.options.type&&(n.crosshairY.enabled=0!==n.crosshairY.strokeWidth,n.crosshairX.enabled=0!==n.crosshairX.strokeWidth),i.update(e)}}})):(0,C.fireEvent)(o,"closePopup"),t.activeAnnotation=!0}(0,C.merge)(!0,t.prototype.defaultOptions.events,{click:n,touchstart:function(t){i=t.touches[0].clientX,o=t.touches[0].clientY},touchend:function(t){i&&Math.sqrt(Math.pow(i-t.changedTouches[0].clientX,2)+Math.pow(o-t.changedTouches[0].clientY,2))>=4||n.call(this,t)}})}var iy=function(){function t(t,i){this.boundClassNames=void 0,this.chart=t,this.options=i,this.eventsToUnbind=[],this.container=this.chart.container.getElementsByClassName(this.options.bindingsClassName||""),this.container.length||(this.container=ir.getElementsByClassName(this.options.bindingsClassName||""))}return t.compose=function(i,o){(0,C.pushUnique)(is,"NavigationBindings")&&((0,C.addEvent)(i,"remove",ic),ig(i),(0,C.objectEach)(i.types,function(t){ig(t)}),(0,C.addEvent)(o,"destroy",il),(0,C.addEvent)(o,"load",ip),(0,C.addEvent)(o,"render",iu),(0,C.addEvent)(t,"closePopup",id),(0,C.addEvent)(t,"deselectButton",iv),io(ii))},t.prototype.getCoords=function(t){var i,o=null==(i=this.chart.pointer)?void 0:i.getCoordinates(t);return[o&&it(o.xAxis),o&&it(o.yAxis)]},t.prototype.initEvents=function(){var t=this,i=t.chart,o=t.container,e=t.options;t.boundClassNames={},(0,C.objectEach)(e.bindings||{},function(i){t.boundClassNames[i.className]=i}),[].forEach.call(o,function(i){t.eventsToUnbind.push((0,C.addEvent)(i,"click",function(o){var e=t.getButtonEvents(i,o);e&&!e.button.classList.contains("highcharts-disabled-btn")&&t.bindingsButtonClick(e.button,e.events,o)}))}),(0,C.objectEach)(e.events||{},function(i,o){(0,C.isFunction)(i)&&t.eventsToUnbind.push((0,C.addEvent)(t,o,i,{passive:!1}))}),t.eventsToUnbind.push((0,C.addEvent)(i.container,"click",function(o){!i.cancelClick&&i.isInsidePlot(o.chartX-i.plotLeft,o.chartY-i.plotTop,{visiblePlotOnly:!0})&&t.bindingsChartClick(this,o)})),t.eventsToUnbind.push((0,C.addEvent)(i.container,O().isTouchDevice?"touchmove":"mousemove",function(i){t.bindingsContainerMouseMove(this,i)},O().isTouchDevice?{passive:!1}:void 0))},t.prototype.initUpdate=function(){var t=this;t6.compose(this.chart).navigation.addUpdate(function(i){t.update(i)})},t.prototype.bindingsButtonClick=function(t,i,o){var e=this.chart,n=e.renderer.boxWrapper,s=!0;this.selectedButtonElement&&(this.selectedButtonElement.classList===t.classList&&(s=!1),(0,C.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),this.nextEvent&&(this.currentUserDetails&&"annotations"===this.currentUserDetails.coll&&e.removeAnnotation(this.currentUserDetails),this.mouseMoveEvent=this.nextEvent=!1)),s?(this.selectedButton=i,this.selectedButtonElement=t,(0,C.fireEvent)(this,"selectButton",{button:t}),i.init&&i.init.call(this,t,o),(i.start||i.steps)&&e.renderer.boxWrapper.addClass("highcharts-draw-mode")):(e.stockTools&&t.classList.remove("highcharts-active"),n.removeClass("highcharts-draw-mode"),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null)},t.prototype.bindingsChartClick=function(t,i){t=this.chart;var o=this.activeAnnotation,e=this.selectedButton,n=t.renderer.boxWrapper;o&&(o.cancelClick||i.activeAnnotation||!i.target.parentNode||function(t,i){var o=ia.Element.prototype,e=o.matches||o.msMatchesSelector||o.webkitMatchesSelector,n=null;if(o.closest)n=o.closest.call(t,i);else do{if(e.call(t,i))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return n}(i.target,".highcharts-popup")?o.cancelClick&&setTimeout(function(){o.cancelClick=!1},0):(0,C.fireEvent)(this,"closePopup")),e&&e.start&&(this.nextEvent?(this.nextEvent(i,this.currentUserDetails),this.steps&&(this.stepIndex++,e.steps[this.stepIndex]?this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]:((0,C.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),n.removeClass("highcharts-draw-mode"),e.end&&e.end.call(this,i,this.currentUserDetails),this.nextEvent=!1,this.mouseMoveEvent=!1,this.selectedButton=null))):(this.currentUserDetails=e.start.call(this,i),this.currentUserDetails&&e.steps?(this.stepIndex=0,this.steps=!0,this.mouseMoveEvent=this.nextEvent=e.steps[this.stepIndex]):((0,C.fireEvent)(this,"deselectButton",{button:this.selectedButtonElement}),n.removeClass("highcharts-draw-mode"),this.steps=!1,this.selectedButton=null,e.end&&e.end.call(this,i,this.currentUserDetails))))},t.prototype.bindingsContainerMouseMove=function(t,i){this.mouseMoveEvent&&this.mouseMoveEvent(i,this.currentUserDetails)},t.prototype.fieldsToOptions=function(t,i){return(0,C.objectEach)(t,function(t,o){var e=parseFloat(t),n=o.split("."),s=n.length-1;if(!(0,C.isNumber)(e)||t.match(/px|em/g)||o.match(/format/g)||o.match(/title/g)||(t=e),"undefined"!==t){var r=i;n.forEach(function(i,o){if("__proto__"!==i&&"constructor"!==i){var e=(0,C.pick)(n[o+1],"");s===o?r[i]=t:(r[i]||(r[i]=e.match(/\d/g)?[]:{}),r=r[i])}})}}),i},t.prototype.deselectAnnotation=function(){this.activeAnnotation&&(this.activeAnnotation.setControlPointsVisibility(!1),this.activeAnnotation=!1)},t.prototype.annotationToFields=function(i){var o,e,n,s,r=i.options,a=t.annotationsEditable,h=a.nestedOptions,c=(0,C.pick)(r.type,null==(e=null==(o=r.shapes)?void 0:o[0])?void 0:e.type,null==(s=null==(n=r.labels)?void 0:n[0])?void 0:s.type,"label"),l=t.annotationsNonEditable[r.langKey]||[],p={langKey:r.langKey,type:c};function u(t,o,e,n,s){var r;e&&(0,C.defined)(t)&&-1===l.indexOf(o)&&((e.indexOf&&e.indexOf(o))>=0||e[o]||!0===e)&&((0,C.isArray)(t)?(n[o]=[],t.forEach(function(t,i){(0,C.isObject)(t)?(n[o][i]={},(0,C.objectEach)(t,function(t,e){u(t,e,h[o],n[o][i],o)})):u(t,0,h[o],n[o],o)})):(0,C.isObject)(t)?(r={},(0,C.isArray)(n)?(n.push(r),r[o]={},r=r[o]):n[o]=r,(0,C.objectEach)(t,function(t,i){u(t,i,0===o?e:h[o],r,o)})):"format"===o?n[o]=[ie(t,i.labels[0].points[0]).toString(),"text"]:(0,C.isArray)(n)?n.push([t,ih(s,t)]):n[o]=[t,ih(o,t)])}return(0,C.objectEach)(r,function(t,i){"typeOptions"===i&&"basicAnnotation"!==p.type?(p[i]={},(0,C.objectEach)(r[i],function(t,o){u(t,o,h,p[i],o)})):u(t,i,a[c],p,i)}),p},t.prototype.getClickedClassNames=function(t,i){for(var o,e=i.target,n=[];e&&e.tagName&&((o=(0,C.attr)(e,"class"))&&(n=n.concat(o.split(" ").map(function(t){return[t,e]}))),(e=e.parentNode)!==t););return n},t.prototype.getButtonEvents=function(t,i){var o,e=this;return this.getClickedClassNames(t,i).forEach(function(t){e.boundClassNames[t[0]]&&!o&&(o={events:e.boundClassNames[t[0]],button:t[1]})}),o},t.prototype.update=function(t){this.options=(0,C.merge)(!0,this.options,t),this.removeEvents(),this.initEvents()},t.prototype.removeEvents=function(){this.eventsToUnbind.forEach(function(t){return t()})},t.prototype.destroy=function(){this.removeEvents()},t.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"]},t.annotationsNonEditable={rectangle:["crosshairX","crosshairY","labelOptions"],ellipse:["labelOptions"],circle:["labelOptions"]},t}(),im=O();im.Annotation=im.Annotation||t4,im.NavigationBindings=im.NavigationBindings||iy,im.Annotation.compose(im.Chart,im.NavigationBindings,im.Pointer,im.SVGRenderer);var ix=O();return k.default}()});