/* Highcharts JS v10.2.1 (2022-08-29) Boost module (c) 2010-2021 Highsoft AS Author: Torstein Honsi 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/boost",["highcharts"],function(x){a(x);a.Highcharts=x;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function x(a,g,c,P){a.hasOwnProperty(g)||(a[g]=P.apply(null,c),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:g,module:a[g]}})))}a=a?a._modules:{};x(a,"Extensions/Boost/Boostables.js", [],function(){return"area areaspline arearange column columnrange bar line scatter heatmap bubble treemap".split(" ")});x(a,"Extensions/Boost/BoostableMap.js",[a["Extensions/Boost/Boostables.js"]],function(a){var g={};a.forEach(function(a){g[a]=!0});return g});x(a,"Extensions/Boost/BoostChart.js",[a["Extensions/Boost/BoostableMap.js"],a["Core/Utilities.js"]],function(a,g){function c(b){var e=b.series,g=b.boost=b.boost||{},p=b.options.boost||{},c=F(p.seriesThreshold,50);if(e.length>=c)return!0;if(1=== e.length)return!1;p=p.allowForce;if("undefined"===typeof p)for(p=!0,c=0,b=b.xAxis;cF(k.dataMin,-Infinity)||F(k.max,Infinity)=(k.boostThreshold||Number.MAX_VALUE)&& ++c)}g.forceChartBoost=p&&(b===e.length&&0=e.length?(a.y=Math.min(e[0].pos,a.y),a.height=e[0].pos-b.plotTop+e[0].len):a.height=b.plotHeight);return a},isChartSeriesBoosting:c}});x(a,"Extensions/Boost/WGLDrawMode.js",[],function(){return{area:"LINES",arearange:"LINES",areaspline:"LINES", column:"LINES",columnrange:"LINES",bar:"LINES",line:"LINE_STRIP",scatter:"POINTS",heatmap:"TRIANGLES",treemap:"TRIANGLES",bubble:"POINTS"}});x(a,"Extensions/Boost/WGLShader.js",[a["Core/Utilities.js"]],function(a){var g=a.clamp,c=a.error,t=a.pick;return function(){function a(a){this.errors=[];this.uLocations={};(this.gl=a)&&this.createShader()}a.prototype.bind=function(){this.gl&&this.shaderProgram&&this.gl.useProgram(this.shaderProgram)};a.prototype.createShader=function(){var a=this,g=this.stringToProgram("#version 100\n#define LN10 2.302585092994046\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform bool xAxisIsLog;\nuniform bool xAxisReversed;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool yAxisIsLog;\nuniform bool yAxisReversed;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value = aVertexPosition.w;\nfloat zMax = bubbleZMax;\nfloat zMin = bubbleZMin;\nfloat radius = 0.0;\nfloat pos = 0.0;\nfloat zRange = zMax - zMin;\nif (bubbleSizeAbs){\nvalue = value - bubbleZThreshold;\nzMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin = 0.0;\n}\nif (value < zMin){\nradius = bubbleZMin / 2.0 - 1.0;\n} else {\npos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea && pos > 0.0){\npos = sqrt(pos);\n}\nradius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord,\nbool isLog,\nbool reversed\n){\nfloat sign = 1.0;\nfloat cvsOffset = 0.0;\nif (cvsCoord) {\nsign *= -1.0;\ncvsOffset = len;\n}\nif (isLog) {\nval = log(val) / LN10;\n}\nif (reversed) {\nsign *= -1.0;\ncvsOffset -= sign * len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value) {\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold) {\nfloat v;\nif (skipTranslation){\nv = value;// + yAxisPos;\n} else {\nv = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;\nif (v > yAxisLen) {\nv = yAxisLen;\n}\n}\nif (checkTreshold > 0.0 && hasThreshold) {\nv = min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize = bubbleRadius();\n} else {\ngl_PointSize = pSize;\n}\nvColor = aColor;\nif (skipTranslation && isInverted) {\ngl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);\n} else if (isInverted) {\ngl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}", "vertex"),c=this.stringToProgram("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col = fillColor;\nvec4 tcol = texture2D(uSampler, gl_PointCoord.st);\nif (hasColor) {\ncol = vColor;\n}\nif (isCircle) {\ncol *= tcol;\nif (tcol.r < 0.0) {\ndiscard;\n} else {\ngl_FragColor = col;\n}\n} else {\ngl_FragColor = col;\n}\n}","fragment"),b=function(b){return a.gl.getUniformLocation(a.shaderProgram, b)};if(!g||!c)return this.shaderProgram=!1,this.handleErrors(),!1;this.shaderProgram=this.gl.createProgram();this.gl.attachShader(this.shaderProgram,g);this.gl.attachShader(this.shaderProgram,c);this.gl.linkProgram(this.shaderProgram);if(!this.gl.getProgramParameter(this.shaderProgram,this.gl.LINK_STATUS))return this.errors.push(this.gl.getProgramInfoLog(this.shaderProgram)),this.handleErrors(),this.shaderProgram=!1;this.gl.useProgram(this.shaderProgram);this.gl.bindAttribLocation(this.shaderProgram, 0,"aVertexPosition");this.pUniform=b("uPMatrix");this.psUniform=b("pSize");this.fcUniform=b("fillColor");this.isBubbleUniform=b("isBubble");this.bubbleSizeAbsUniform=b("bubbleSizeAbs");this.bubbleSizeAreaUniform=b("bubbleSizeByArea");this.uSamplerUniform=b("uSampler");this.skipTranslationUniform=b("skipTranslation");this.isCircleUniform=b("isCircle");this.isInverted=b("isInverted");return!0};a.prototype.handleErrors=function(){this.errors.length&&c("[highcharts boost] shader error - "+this.errors.join("\n"))}; a.prototype.stringToProgram=function(a,g){var e=this.gl.createShader("vertex"===g?this.gl.VERTEX_SHADER:this.gl.FRAGMENT_SHADER);this.gl.shaderSource(e,a);this.gl.compileShader(e);return this.gl.getShaderParameter(e,this.gl.COMPILE_STATUS)?e:(this.errors.push("when compiling "+g+" shader:\n"+this.gl.getShaderInfoLog(e)),!1)};a.prototype.destroy=function(){this.gl&&this.shaderProgram&&(this.gl.deleteProgram(this.shaderProgram),this.shaderProgram=!1)};a.prototype.fillColorUniform=function(){return this.fcUniform}; a.prototype.getProgram=function(){return this.shaderProgram};a.prototype.pointSizeUniform=function(){return this.psUniform};a.prototype.perspectiveUniform=function(){return this.pUniform};a.prototype.reset=function(){this.gl&&this.shaderProgram&&(this.gl.uniform1i(this.isBubbleUniform,0),this.gl.uniform1i(this.isCircleUniform,0))};a.prototype.setBubbleUniforms=function(a,c,k,b){void 0===b&&(b=1);var e=a.options,u=Number.MAX_VALUE,p=-Number.MAX_VALUE;if(this.gl&&this.shaderProgram&&a.is("bubble")){var F= a.getPxExtremes();u=t(e.zMin,g(c,!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE,u));p=t(e.zMax,Math.max(p,k));this.gl.uniform1i(this.isBubbleUniform,1);this.gl.uniform1i(this.isCircleUniform,1);this.gl.uniform1i(this.bubbleSizeAreaUniform,"width"!==a.options.sizeBy);this.gl.uniform1i(this.bubbleSizeAbsUniform,a.options.sizeByAbsoluteValue);this.setUniform("bubbleMinSize",F.minPxSize*b);this.setUniform("bubbleMaxSize",F.maxPxSize*b);this.setUniform("bubbleZMin",u);this.setUniform("bubbleZMax", p);this.setUniform("bubbleZThreshold",a.options.zThreshold)}};a.prototype.setColor=function(a){this.gl&&this.shaderProgram&&this.gl.uniform4f(this.fcUniform,a[0]/255,a[1]/255,a[2]/255,a[3])};a.prototype.setDrawAsCircle=function(a){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isCircleUniform,a?1:0)};a.prototype.setInverted=function(a){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isInverted,a)};a.prototype.setPMatrix=function(a){this.gl&&this.shaderProgram&&this.gl.uniformMatrix4fv(this.pUniform, !1,a)};a.prototype.setPointSize=function(a){this.gl&&this.shaderProgram&&this.gl.uniform1f(this.psUniform,a)};a.prototype.setSkipTranslation=function(a){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.skipTranslationUniform,!0===a?1:0)};a.prototype.setTexture=function(a){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.uSamplerUniform,a)};a.prototype.setUniform=function(a,g){this.gl&&this.shaderProgram&&(a=this.uLocations[a]=this.uLocations[a]||this.gl.getUniformLocation(this.shaderProgram, a),this.gl.uniform1f(a,g))};return a}()});x(a,"Extensions/Boost/WGLVertexBuffer.js",[],function(){return function(){function a(a,c,t){this.buffer=!1;this.iterator=0;this.vertAttribute=this.preAllocated=!1;this.components=t||2;this.dataComponents=t;this.gl=a;this.shader=c}a.prototype.allocate=function(a){this.iterator=-1;this.preAllocated=new Float32Array(4*a)};a.prototype.bind=function(){if(!this.buffer)return!1;this.gl.vertexAttribPointer(this.vertAttribute,this.components,this.gl.FLOAT,!1,0,0)}; a.prototype.build=function(a,c,t){var g;this.data=a||[];if(!(this.data&&0!==this.data.length||this.preAllocated))return this.destroy(),!1;this.components=t||this.components;this.buffer&&this.gl.deleteBuffer(this.buffer);this.preAllocated||(g=new Float32Array(this.data));this.buffer=this.gl.createBuffer();this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffer);this.gl.bufferData(this.gl.ARRAY_BUFFER,this.preAllocated||g,this.gl.STATIC_DRAW);this.vertAttribute=this.gl.getAttribLocation(this.shader.getProgram(), c);this.gl.enableVertexAttribArray(this.vertAttribute);return!0};a.prototype.destroy=function(){this.buffer&&(this.gl.deleteBuffer(this.buffer),this.vertAttribute=this.buffer=!1);this.iterator=0;this.components=this.dataComponents||2;this.data=[]};a.prototype.push=function(a,c,t,u){this.preAllocated&&(this.preAllocated[++this.iterator]=a,this.preAllocated[++this.iterator]=c,this.preAllocated[++this.iterator]=t,this.preAllocated[++this.iterator]=u)};a.prototype.render=function(a,c,t){var g=this.preAllocated? this.preAllocated.length:this.data.length;if(!this.buffer||!g)return!1;if(!a||a>g||0>a)a=0;if(!c||c>g)c=g;if(a>=c)return!1;this.gl.drawArrays(this.gl[t||"POINTS"],a/this.components,(c-a)/this.components);return!0};return a}()});x(a,"Extensions/Boost/WGLRenderer.js",[a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Utilities.js"],a["Extensions/Boost/WGLDrawMode.js"],a["Extensions/Boost/WGLShader.js"],a["Extensions/Boost/WGLVertexBuffer.js"]],function(a,g,c,x,u,e){var t=a.parse,k=g.doc,b=g.win, P=c.isNumber,ta=c.isObject,p=c.merge,L=c.objectEach,M=c.pick,y={column:!0,columnrange:!0,bar:!0,area:!0,areaspline:!0,arearange:!0},G={scatter:!0,bubble:!0},z=["webgl","experimental-webgl","moz-webgl","webkit-3d"];return function(){function c(a){this.data=[];this.height=0;this.isInited=!1;this.markerData=[];this.series=[];this.textureHandles={};this.width=0;this.postRenderCallback=a;this.settings={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1, timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}}}c.orthoMatrix=function(a,b){return[2/a,0,0,0,0,-(2/b),0,0,0,0,-2,0,-1,1,-1,1]};c.seriesPointCount=function(a){if(a.boosted){var l=!!a.options.stacking;var b=a.xData||a.options.xData||a.processedXData;l=(l?a.data:b||a.options.data).length;"treemap"===a.type?l*=12:"heatmap"===a.type?l*=6:y[a.type]&&(l*=2);return l}return 0};c.prototype.getPixelRatio=function(){return this.settings.pixelRatio||b.devicePixelRatio|| 1};c.prototype.setOptions=function(a){"pixelRatio"in a||(a.pixelRatio=1);p(!0,this.settings,a)};c.prototype.allocateBuffer=function(a){var l=this.vbuffer,b=0;this.settings.usePreallocated&&(a.series.forEach(function(a){a.boosted&&(b+=c.seriesPointCount(a))}),l&&l.allocate(b))};c.prototype.allocateBufferForSingleSeries=function(a){var l=this.vbuffer,b=0;this.settings.usePreallocated&&(a.boosted&&(b=c.seriesPointCount(a)),l&&l.allocate(b))};c.prototype.clear=function(){var a=this.gl;a&&a.clear(a.COLOR_BUFFER_BIT| a.DEPTH_BUFFER_BIT)};c.prototype.pushSeriesData=function(a,b){var l=this,c=this.data,e=this.settings,f=this.vbuffer,n=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),q=a.chart,r=a.options,O=!!r.stacking,ea=r.data,d=a.xAxis.getExtremes(),T=d.min,g=d.max;d=a.yAxis.getExtremes();var k=d.min,u=d.max,p=a.xData||r.xData||a.processedXData,G=a.yData||r.yData||a.processedYData,z=a.zData||r.zData||a.processedZData,x=a.yAxis,M=a.xAxis,F=!p||0===p.length,H=r.connectNulls;d=a.points||!1;var v=O?a.data: p||ea,W={x:Number.MAX_VALUE,y:0},Q={x:-Number.MAX_VALUE,y:0},h="undefined"===typeof q.index,m=y[a.type],Aa=r.zoneAxis||"y",ca=r.zones||!1,Y=r.threshold,da=this.getPixelRatio(),ua=a.chart.plotWidth,ha=!1,ia=!1,aa,U,ya=0,P=!1,D,A,I,ja,B=-1,S=!1,Z=!1,N,L=!1,ra=!1,C=!1,va=!1,wa=!0,sa=!0,K=!1,E=!1,ba=0;if(!(r.boostData&&0h.node.levelDynamic)return 1;if(a.node.levelDynamicb.zMax&&(b.zMax=I[2]),I[2]b.zMax&&(b.zMax=z[B]),z[B]=T&&Z<=g&&(L=!0);S&&S>=T&&S<=g&&(ra=!0);n?(F&&(A=I.slice(1,3)),N=A[0],A=A[1]):O&&(D=I.x,A=I.stackY,N=A-I.y);null!==k&&"undefined"!==typeof k&&null!==u&&"undefined"!==typeof u&&(wa=A>=k&&A<=u);D>g&&Q.xT&&(W.x=D,W.y=A);if(null===A&&H)return"continue";if(null===A||!wa&&!L&&!ra)return za(),"continue";(Z>=T||D>= T)&&(S<=g||D<=g)&&(va=!0);if(!va&&!L&&!ra)return"continue";E&&D-S>E&&za();if(ca){var l;ca.some(function(a,h){var b=ca[h-1];return"x"===Aa?"undefined"!==typeof a.value&&D<=a.value?(ka[h]&&(!b||D>=b.value)&&(l=ka[h]),!0):!1:"undefined"!==typeof a.value&&A<=a.value?(ka[h]&&(!b||A>=b.value)&&(l=ka[h]),!0):!1});C=l||K||C}if(!e.useGPUTranslations&&(b.skipTranslation=!0,D=M.toPixels(D,!0),A=x.toPixels(A,!0),D>ua&&"POINTS"===b.drawMode))return"continue";b.hasMarkers&&va&&!1!==ha&&(a.closestPointRangePx=Math.min(a.closestPointRangePx, Math.abs(D-ha)));if(!e.useGPUTranslations&&!e.usePreallocated&&ha&&1>Math.abs(D-ha)&&ia&&1>Math.abs(A-ia))return e.debug.showSkipSummary&&++ya,"continue";if(m){aa=N;if(!1===N||"undefined"===typeof N)aa=0>A?A:0;n||O||(aa=Math.max(null===Y?k:Y,k));e.useGPUTranslations||(aa=x.toPixels(aa,!0));R(D,aa,0,0,C)}r.step&&!sa&&R(D,ia,0,2,C);R(D,A,0,"bubble"===a.type?ja||1:2,C);ha=D;ia=A;P=!0;sa=!1};B-Number.MAX_VALUE&&d(Q))}Ca()}};c.prototype.pushSeries=function(a){var b=this.markerData,l=this.series,c=this.settings;0=l.length?l.push(b):l[a.index]=b;this.pushSeriesData(a,b);c.debug.timeSeriesProcessing&&console.timeEnd("building "+a.type+" series")};c.prototype.flush=function(){var a=this.vbuffer;this.data=[];this.markerData=[];this.series=[];a&&a.destroy()};c.prototype.setXAxis=function(a){var b=this.shader;if(b){var c=this.getPixelRatio(); b.setUniform("xAxisTrans",a.transA*c);b.setUniform("xAxisMin",a.min);b.setUniform("xAxisMinPad",a.minPixelPadding*c);b.setUniform("xAxisPointRange",a.pointRange);b.setUniform("xAxisLen",a.len*c);b.setUniform("xAxisPos",a.pos*c);b.setUniform("xAxisCVSCoord",!a.horiz);b.setUniform("xAxisIsLog",!!a.logarithmic);b.setUniform("xAxisReversed",!!a.reversed)}};c.prototype.setYAxis=function(a){var b=this.shader;if(b){var c=this.getPixelRatio();b.setUniform("yAxisTrans",a.transA*c);b.setUniform("yAxisMin", a.min);b.setUniform("yAxisMinPad",a.minPixelPadding*c);b.setUniform("yAxisPointRange",a.pointRange);b.setUniform("yAxisLen",a.len*c);b.setUniform("yAxisPos",a.pos*c);b.setUniform("yAxisCVSCoord",!a.horiz);b.setUniform("yAxisIsLog",!!a.logarithmic);b.setUniform("yAxisReversed",!!a.reversed)}};c.prototype.setThreshold=function(a,b){var c=this.shader;c&&(c.setUniform("hasThreshold",a),c.setUniform("translatedThreshold",b))};c.prototype.renderChart=function(b){var l=this,w=this.gl,k=this.settings,p=this.shader, f=this.vbuffer,n=this.getPixelRatio();if(b)this.width=b.chartWidth*n,this.height=b.chartHeight*n;else return!1;var q=this.height,r=this.width;if(!(w&&p&&r&&q))return!1;k.debug.timeRendering&&console.time("gl rendering");w.canvas.width=r;w.canvas.height=q;p.bind();w.viewport(0,0,r,q);p.setPMatrix(c.orthoMatrix(r,q));12*((d.marker?d.marker.radius:10)||10));r=l.textureHandles[r&&r.symbol||c.series.symbol]||l.textureHandles.circle;if(0!==c.segments.length&&c.segments[0].from!==c.segments[0].to&&(r.isReady&&(w.bindTexture(w.TEXTURE_2D,r.handle),p.setTexture(r.handle)),b.styledMode?r=c.series.markerGroup&&c.series.markerGroup.getStyle("fill"): (r="POINTS"===c.drawMode&&c.series.pointAttribs&&c.series.pointAttribs().fill||c.series.color,d.colorByPoint&&(r=c.series.chart.options.colors[g])),c.series.fillOpacity&&d.fillOpacity&&(r=(new a(r)).setOpacity(M(d.fillOpacity,1)).get()),r=t(r).rgba,k.useAlpha||(r[3]=1),"LINES"===c.drawMode&&k.useAlpha&&1>r[3]&&(r[3]/=10),"add"===d.boostBlending?(w.blendFunc(w.SRC_ALPHA,w.ONE),w.blendEquation(w.FUNC_ADD)):"mult"===d.boostBlending||"multiply"===d.boostBlending?w.blendFunc(w.DST_COLOR,w.ZERO):"darken"=== d.boostBlending?(w.blendFunc(w.ONE,w.ONE),w.blendEquation(w.FUNC_MIN)):w.blendFuncSeparate(w.SRC_ALPHA,w.ONE_MINUS_SRC_ALPHA,w.ONE,w.ONE_MINUS_SRC_ALPHA),p.reset(),0(c.boostThreshold||Number.MAX_VALUE)&&X(d.min)&&X(d.max)&&(!b||X(f.min)&&X(f.max))&&(!a||X(a.min)&&X(a.max))}function G(){var a=this,b=a.chart; b.boost&&b.boost.markerGroup===a.markerGroup&&(a.markerGroup=null);b.hoverPoints&&(b.hoverPoints=b.hoverPoints.filter(function(b){return b.series===a}));b.hoverPoint&&b.hoverPoint.series===a&&(b.hoverPoint=null)}function z(){var a=this.boost;a&&a.canvas&&a.target&&(a.wgl&&a.wgl.clear(),a.clear&&a.clear())}function W(a){var b=a.boost;b&&b.canvas&&b.target&&b.wgl&&!ma(a.chart)&&b.wgl.render(a.chart)}function l(a,b){var c=a.options,f=a.xAxis,d=a.pointClass;if(b instanceof d)return b;c=a.xData||c.xData|| a.processedXData||!1;d=(new d).init(a,a.options.data[b.i],c?c[b.i]:void 0);d.category=pa(f.categories?f.categories[d.x]:d.x,d.x);d.dist=b.dist;d.distX=b.distX;d.plotX=b.plotX;d.plotY=b.plotY;d.index=b.i;d.isInside=a.isPointInside(d);return d}function ea(){function a(a,b){var c="undefined"===typeof d.index,h=!1,n=!0;if("undefined"===typeof a)return!0;if(!c){if(M){var q=a[0];var m=a[1]}else q=a,m=r[b];B?(M&&(m=a.slice(1,3)),h=m[0],m=m[1]):G&&(q=a.x,m=a.stackY,h=m-a.y);y||(n=(m||0)>=T&&m<=v);if(null!== m&&q>=l&&q<=O&&n)if(a=f.toPixels(q,!0),w){if("undefined"===typeof E||a===J){B||(h=m);if("undefined"===typeof ba||m>K)K=m,ba=b;if("undefined"===typeof E||h=(d.options.boostThreshold||Number.MAX_VALUE)};b(this.chart)&&a[this.type]?(e(f)&&"heatmap"!==this.type&&"treemap"!==this.type&&!this.options.stacking&&y(this,!0)||(c.apply(this,[].slice.call(arguments,1)),f=this.processedXData),(this.boosted=e(f))?(f=void 0,this.options.data&&this.options.data.length&&(f=this.getFirstValidPoint(this.options.data), X(f)||Ha(f)||oa(12,!1,this.chart)),L(this)):M(this)):c.apply(this,[].slice.call(arguments,1))}function r(a){var b=a.apply(this,[].slice.call(arguments,1));return this.boost&&b?this.boost.getPoint(b):b}var O=c.getBoostClipRect,ma=c.isChartSeriesBoosting,d=x.getOptions,T=u.doc,Fa=u.noop,na=u.win,J=e.addEvent,oa=e.error,fa=e.extend,Ga=e.fireEvent,Ha=e.isArray,X=e.isNumber,pa=e.pick,H=e.wrap,v=[],qa,Q;return{compose:function(a,b,c){var e=a.prototype.pointClass;-1===v.indexOf(e)&&(v.push(e),H(e.prototype, "haloPath",w));if(-1===v.indexOf(a)){v.push(a);J(a,"destroy",G);J(a,"hide",z);var h=a.prototype;c&&(h.renderCanvas=ea);H(h,"getExtremes",f);H(h,"markerAttribs",n);H(h,"processData",q);H(h,"searchPoint",r);["translate","generatePoints","drawTracker","drawPoints","render"].forEach(function(a){return xa(h,b,a)})}if(-1===v.indexOf(d)){v.push(d);var l=d().plotOptions;g.forEach(function(a){var c=l[a];c&&(c.boostThreshold=5E3,c.boostData=[],b[a].prototype.fillOpacity=!0)})}if(c){var m=b.area,p=b.areaspline, k=b.bubble;c=b.column;e=b.heatmap;var t=b.scatter,O=b.treemap;m&&-1===v.indexOf(m)&&(v.push(m),fa(m.prototype,{fill:!0,fillOpacity:!0,sampling:!0}));p&&-1===v.indexOf(p)&&(v.push(p),fa(p.prototype,{fill:!0,fillOpacity:!0,sampling:!0}));k&&-1===v.indexOf(k)&&(v.push(k),m=k.prototype,delete m.buildKDTree,H(m,"markerAttribs",function(a){return this.boosted?!1:a.apply(this,[].slice.call(arguments,1))}));c&&-1===v.indexOf(c)&&(v.push(c),fa(c.prototype,{fill:!0,sampling:!0}));t&&-1===v.indexOf(t)&&(v.push(t), t.prototype.fill=!0);[e,O].forEach(function(a){a&&-1===v.indexOf(a)&&(v.push(a),H(a.prototype,"drawPoints",la))})}return a},destroyGraphics:P,getPoint:l}});x(a,"Extensions/BoostCanvas.js",[a["Extensions/Boost/BoostChart.js"],a["Extensions/Boost/BoostSeries.js"],a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,g,c,x,u,e,F,k){var b=a.getBoostClipRect,t=a.isChartSeriesBoosting,P=g.destroyGraphics, p=x.parse,L=u.doc,M=u.noop,y=F.seriesTypes,G=k.addEvent,z=k.extend,W=k.fireEvent,l=k.isNumber,ea=k.merge,w=k.pick,la=k.wrap,xa;return function(){u.seriesTypes.heatmap&&la(u.seriesTypes.heatmap.prototype,"drawPoints",function(){var a=this.chart,b=this.getContext(),c=this.chart.inverted,e=this.xAxis,g=this.yAxis;b?(this.points.forEach(function(f){var d=f.plotY;if("undefined"!==typeof d&&!isNaN(d)&&null!==f.y&&b){var n=f.shapeArgs||{};d=n.x;d=void 0===d?0:d;var q=n.y;q=void 0===q?0:q;var r=n.width;r= void 0===r?0:r;n=n.height;n=void 0===n?0:n;f=a.styledMode?f.series.colorAttribs(f):f.series.pointAttribs(f);b.fillStyle=f.fill;c?b.fillRect(g.len-q+e.left,e.len-d+g.top,-n,-r):b.fillRect(d+e.left,q+g.top,r,n)}}),this.canvasToSVG()):this.chart.showLoading("Your browser doesn't support HTML5 canvas,
please use a modern browser")});z(e.prototype,{getContext:function(){var a=this.chart,c=t(a)?a:this,e=c===a?a.seriesGroup:a.seriesGroup||this.group,g=a.chartWidth,l=a.chartHeight,p=function(a,b,c,d, f,e,n){a.call(this,c,b,d,f,e,n)},d=c.boost=c.boost||{};var k=d.targetCtx;d.canvas||(d.canvas=L.createElement("canvas"),d.target=a.renderer.image("",0,0,g,l).addClass("highcharts-boost-canvas").add(e),k=d.targetCtx=d.canvas.getContext("2d"),a.inverted&&["moveTo","lineTo","rect","arc"].forEach(function(a){la(k,a,p)}),d.copy=function(){d.target.attr({href:d.canvas.toDataURL("image/png")})},d.clear=function(){k.clearRect(0,0,d.canvas.width,d.canvas.height);c===d.target&&d.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})}, d.clipRect=a.renderer.clipRect(),d.target.clip(d.clipRect));d.canvas.width!==g&&(d.canvas.width=g);d.canvas.height!==l&&(d.canvas.height=l);d.target.attr({x:0,y:0,width:g,height:l,style:"pointer-events: none",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="});d.clipRect&&d.clipRect.attr(b(a,c));return k},canvasToSVG:function(){t(this.chart)?this.boost&&this.boost.clear&&this.boost.clear():this.boost&&this.boost.copy?this.boost.copy(): this.chart.boost&&this.chart.boost.copy&&this.chart.boost.copy()},cvsLineTo:function(a,b,c){a.lineTo(b,c)},renderCanvas:function(){var a=this,b=a.options,c=a.chart,e=this.xAxis,g=this.yAxis,t=(c.options.boost||{}).timeRendering||!1,d=0,y=a.processedXData,F=a.processedYData,L=b.data,J=e.getExtremes(),oa=J.min,fa=J.max;J=g.getExtremes();var la=J.min,ta=J.max,X={},pa,H=!!a.sampling,v=b.marker&&b.marker.radius,qa=this.cvsDrawPoint,Q=b.lineWidth?this.cvsLineTo:void 0,h=v&&1>=v?this.cvsMarkerSquare:this.cvsMarkerCircle, m=this.cvsStrokeBatch||1E3,Aa=!1!==b.enableMouseTracking,ca;J=b.threshold;var Y=g.getThreshold(J),da=l(J),ua=Y,ha=this.fill,ia=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),aa=!!b.stacking,U=a.cropStart||0;J=c.options.loading;var ya=a.requireSorting,Ba,D=b.connectNulls,A=!y,I,ja,B,S,Z,N=aa?a.data:y||L,Ea=a.fillOpacity?x.parse(a.color).setOpacity(w(b.fillOpacity,.75)).get():a.color,ra=function(){ha?(E.fillStyle=Ea,E.fill()):(E.strokeStyle=a.color,E.lineWidth=b.lineWidth,E.stroke())},C=function(b, f,e,g){0===d&&(E.beginPath(),Q&&(E.lineJoin="round"));c.scroller&&"highcharts-navigator-series"===a.options.className?(f+=c.scroller.top,e&&(e+=c.scroller.top)):f+=c.plotTop;b+=c.plotLeft;Ba?E.moveTo(b,f):qa?qa(E,b,f,e,ca):Q?Q(E,b,f):h&&h.call(a,E,b,f,v,g);d+=1;d===m&&(ra(),d=0);ca={clientX:b,plotY:f,yBottom:e}},va="x"===b.findNearestPointBy,wa=this.xData||this.options.xData||this.processedXData||!1,sa=function(a,b,d){Z=va?a:a+","+b;Aa&&!X[Z]&&(X[Z]=!0,c.inverted&&(a=e.len-a,b=g.len-b),K.push({x:wa? wa[U+d]:!1,clientX:a,plotX:a,plotY:b,i:U+d}))};y=this.boost||{};y.target&&y.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="});(this.points||this.graph)&&P(this);a.plotGroup("group","series",a.visible?"visible":"hidden",b.zIndex,c.seriesGroup);a.markerGroup=a.group;G(a,"destroy",function(){a.markerGroup=null});var K=this.points=[];var E=this.getContext();a.buildKDTree=M;y.clear&&y.clear();this.visible&&(99999=oa&& n<=fa&&(f=!0);r&&r>=oa&&r<=fa&&(h=!0);if(ia){A&&(k=b.slice(1,3));var p=k[0];k=k[1]}else aa&&(q=b.x,k=b.stackY,p=k-b.y);b=null===k;ya||(m=k>=la&&k<=ta);if(!b&&(q>=oa&&q<=fa&&m||f||h))if(q=Math.round(e.toPixels(q,!0)),H){if("undefined"===typeof B||q===pa){ia||(p=k);if("undefined"===typeof S||k>ja)ja=k,S=d;if("undefined"===typeof B||p