/* Highcharts JS v8.2.0 (2020-08-20) Old IE (v6, v7, v8) module for Highcharts v6+. (c) 2010-2019 Highsoft AS Author: Torstein Honsi License: www.highcharts.com/license */ (function(d){"object"===typeof module&&module.exports?(d["default"]=d,module.exports=d):"function"===typeof define&&define.amd?define("highcharts/modules/oldie",["highcharts"],function(l){d(l);d.Highcharts=l;return d}):d("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(d){function l(d,G,h,l){d.hasOwnProperty(G)||(d[G]=l.apply(null,h))}d=d?d._modules:{};l(d,"Extensions/Oldie.js",[d["Core/Chart/Chart.js"],d["Core/Color.js"],d["Core/Globals.js"],d["Core/Pointer.js"],d["Core/Renderer/SVG/SVGElement.js"], d["Core/Renderer/SVG/SVGRenderer.js"],d["Core/Utilities.js"]],function(d,l,h,C,w,r,g){var G=l.parse,u=h.deg2rad,f=h.doc,H=h.noop,D=h.svg,t=h.win,Q=g.addEvent,E=g.createElement,y=g.css,L=g.defined,M=g.discardElement,N=g.erase,v=g.extend,R=g.extendClass,O=g.getOptions,S=g.isArray,P=g.isNumber,F=g.isObject;l=g.merge;var T=g.offset,z=g.pick,q=g.pInt,U=g.uniqueKey;O().global.VMLRadialGradientURL="http://code.highcharts.com/8.2.0/gfx/vml-radial-gradient.png";f&&!f.defaultView&&(h.getStyle=g.getStyle=function(a, b){var c={width:"clientWidth",height:"clientHeight"}[b];if(a.style[b])return q(a.style[b]);"opacity"===b&&(b="filter");if(c)return a.style.zoom=1,Math.max(a[c]-2*g.getStyle(a,"padding"),0);a=a.currentStyle[b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})];"filter"===b&&(a=a.replace(/alpha\(opacity=([0-9]+)\)/,function(a,b){return b/100}));return""===a?1:q(a)});D||(Q(w,"afterInit",function(){"text"===this.element.nodeName&&this.css({position:"absolute"})}),C.prototype.normalize=function(a, b){a=a||t.event;a.target||(a.target=a.srcElement);b||(this.chartPosition=b=T(this.chart.container));return v(a,{chartX:Math.round(Math.max(a.x,a.clientX-b.left)),chartY:Math.round(a.y)})},d.prototype.ieSanitizeSVG=function(a){return a=a.replace(//g,"<$1title>").replace(/height=([^" ]+)/g,'height="$1"').replace(/width=([^" ]+)/g,'width="$1"').replace(/hc-svg-href="([^"]+)">/g,'xlink:href="$1"/>').replace(/ id=([^" >]+)/g,' id="$1"').replace(/class=([^" >]+)/g, 'class="$1"').replace(/ transform /g," ").replace(/:(path|rect)/g,"$1").replace(/style="([^"]+)"/g,function(a){return a.toLowerCase()})},d.prototype.isReadyToRender=function(){var a=this;return D||t!=t.top||"complete"===f.readyState?!0:(f.attachEvent("onreadystatechange",function(){f.detachEvent("onreadystatechange",a.firstRender);"complete"===f.readyState&&a.firstRender()}),!1)},f.createElementNS||(f.createElementNS=function(a,b){return f.createElement(b)}),h.addEventListenerPolyfill=function(a, b){function c(a){a.target=a.srcElement||t;b.call(e,a)}var e=this;e.attachEvent&&(e.hcEventsIE||(e.hcEventsIE={}),b.hcKey||(b.hcKey=U()),e.hcEventsIE[b.hcKey]=c,e.attachEvent("on"+a,c))},h.removeEventListenerPolyfill=function(a,b){this.detachEvent&&(b=this.hcEventsIE[b.hcKey],this.detachEvent("on"+a,b))},d={docMode8:f&&8===f.documentMode,init:function(a,b){var c=["<",b,' filled="f" stroked="f"'],e=["position: ","absolute",";"],m="div"===b;("shape"===b||m)&&e.push("left:0;top:0;width:1px;height:1px;"); e.push("visibility: ",m?"hidden":"visible");c.push(' style="',e.join(""),'"/>');b&&(c=m||"span"===b||"img"===b?c.join(""):a.prepVML(c),this.element=E(c));this.renderer=a},add:function(a){var b=this.renderer,c=this.element,e=b.box,m=a&&a.inverted;e=a?a.element||a:e;a&&(this.parentGroup=a);m&&b.invertChild(c,e);e.appendChild(c);this.added=!0;this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform();if(this.onAdd)this.onAdd();this.className&&this.attr("class",this.className);return this},updateTransform:w.prototype.htmlUpdateTransform, setSpanRotation:function(){var a=this.rotation,b=Math.cos(a*u),c=Math.sin(a*u);y(this.element,{filter:a?["progid:DXImageTransform.Microsoft.Matrix(M11=",b,", M12=",-c,", M21=",c,", M22=",b,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(a,b,c,e,m){var d=e?Math.cos(e*u):1,A=e?Math.sin(e*u):0,I=z(this.elemHeight,this.element.offsetHeight);this.xCorr=0>d&&-a;this.yCorr=0>A&&-I;var k=0>d*A;this.xCorr+=A*b*(k?1-c:c);this.yCorr-=d*b*(e?k?c:1-c:1);m&&"left"!==m&&(this.xCorr-= a*c*(0>d?-1:1),e&&(this.yCorr-=I*c*(0>A?-1:1)),y(this.element,{textAlign:m}))},pathToVML:function(a){for(var b=a.length,c=[];b--;)P(a[b])?c[b]=Math.round(10*a[b])-5:"Z"===a[b]?c[b]="x":(c[b]=a[b],!a.isArc||"wa"!==a[b]&&"at"!==a[b]||(c[b+5]===c[b+7]&&(c[b+7]+=a[b+7]>a[b+5]?1:-1),c[b+6]===c[b+8]&&(c[b+8]+=a[b+8]>a[b+6]?1:-1)));return c.join(" ")||"x"},clip:function(a){var b=this;if(a){var c=a.members;N(c,b);c.push(b);b.destroyClip=function(){N(c,b)};a=a.getCSS(b)}else b.destroyClip&&b.destroyClip(), a={clip:b.docMode8?"inherit":"rect(auto)"};return b.css(a)},css:w.prototype.htmlCss,safeRemoveChild:function(a){a.parentNode&&M(a)},destroy:function(){this.destroyClip&&this.destroyClip();return w.prototype.destroy.apply(this)},on:function(a,b){this.element["on"+a]=function(){var a=t.event;a.target=a.srcElement;b(a)};return this},cutOffPath:function(a,b){a=a.split(/[ ,]/);var c=a.length;if(9===c||11===c)a[c-4]=a[c-2]=q(a[c-2])-10*b;return a.join(" ")},shadow:function(a,b,c){var e=[],d,n=this.element, A=this.renderer,I=n.style,k=n.path;k&&"string"!==typeof k.value&&(k="x");var g=k;if(a){var f=z(a.width,3);var p=(a.opacity||.15)/f;for(d=1;3>=d;d++){var h=2*f+1-2*d;c&&(g=this.cutOffPath(k.value,h+.5));var l=[''];var x=E(A.prepVML(l),null,{left:q(I.left)+z(a.offsetX,1),top:q(I.top)+z(a.offsetY,1)});c&&(x.cutOff=h+1);l=['']; E(A.prepVML(l),null,null,x);b?b.element.appendChild(x):n.parentNode.insertBefore(x,n);e.push(x)}this.shadows=e}return this},updateShadows:H,setAttr:function(a,b){this.docMode8?this.element[a]=b:this.element.setAttribute(a,b)},getAttr:function(a){return this.docMode8?this.element[a]:this.element.getAttribute(a)},classSetter:function(a){(this.added?this.element:this).className=a},dashstyleSetter:function(a,b,c){(c.getElementsByTagName("stroke")[0]||E(this.renderer.prepVML([""]),null,null,c))[b]= a||"solid";this[b]=a},dSetter:function(a,b,c){var e=this.shadows;a=a||[];this.d=a.join&&a.join(" ");c.path=a=this.pathToVML(a);if(e)for(c=e.length;c--;)e[c].path=e[c].cutOff?this.cutOffPath(a,e[c].cutOff):a;this.setAttr(b,a)},fillSetter:function(a,b,c){var e=c.nodeName;"SPAN"===e?c.style.color=a:"IMG"!==e&&(c.filled="none"!==a,this.setAttr("fillcolor",this.renderer.color(a,c,b,this)))},"fill-opacitySetter":function(a,b,c){E(this.renderer.prepVML(["<",b.split("-")[0],' opacity="',a,'"/>']),null,null, c)},opacitySetter:H,rotationSetter:function(a,b,c){c=c.style;this[b]=c[b]=a;c.left=-Math.round(Math.sin(a*u)+1)+"px";c.top=Math.round(Math.cos(a*u))+"px"},strokeSetter:function(a,b,c){this.setAttr("strokecolor",this.renderer.color(a,c,b,this))},"stroke-widthSetter":function(a,b,c){c.stroked=!!a;this[b]=a;P(a)&&(a+="px");this.setAttr("strokeweight",a)},titleSetter:function(a,b){this.setAttr(b,a)},visibilitySetter:function(a,b,c){"inherit"===a&&(a="visible");this.shadows&&this.shadows.forEach(function(c){c.style[b]= a});"DIV"===c.nodeName&&(a="hidden"===a?"-999em":0,this.docMode8||(c.style[b]=a?"visible":"hidden"),b="top");c.style[b]=a},xSetter:function(a,b,c){this[b]=a;"x"===b?b="left":"y"===b&&(b="top");this.updateClipping?(this[b]=a,this.updateClipping()):c.style[b]=a},zIndexSetter:function(a,b,c){c.style[b]=a},fillGetter:function(){return this.getAttr("fillcolor")||""},strokeGetter:function(){return this.getAttr("strokecolor")||""},classGetter:function(){return this.getAttr("className")||""}},d["stroke-opacitySetter"]= d["fill-opacitySetter"],h.VMLElement=d=R(w,d),d.prototype.ySetter=d.prototype.widthSetter=d.prototype.heightSetter=d.prototype.xSetter,C={Element:d,isIE8:-1'];E(d.prepVML(g),null,null,b)};var v=a[0];var z=a[a.length-1];0z[0]&&a.push([1,z[1]]);a.forEach(function(a,b){n.test(a[1])?(J=G(a[1]), h=J.get("rgb"),l=J.get("a")):(h=a[1],l=1);w.push(100*a[0]+"% "+h);b?(r=l,x=h):(q=l,u=h)});if("fill"===c)if("gradient"===f)c=p.x1||p[0]||0,a=p.y1||p[1]||0,v=p.x2||p[2]||0,p=p.y2||p[3]||0,t='angle="'+(90-180*Math.atan((p-a)/(v-c))/Math.PI)+'"',y();else{k=p.r;var C=2*k,D=2*k,F=p.cx,H=p.cy,K=b.radialReference,B;k=function(){K&&(B=e.getBBox(),F+=(K[0]-B.x)/B.width-.5,H+=(K[1]-B.y)/B.height-.5,C*=K[2]/B.width,D*=K[2]/B.height);t='src="'+O().global.VMLRadialGradientURL+'" size="'+C+","+D+'" origin="0.5,0.5" position="'+ F+","+H+'" color2="'+u+'" ';y()};e.added?k():e.onAdd=k;k=x}else k=h}else if(n.test(a)&&"IMG"!==b.tagName){var J=G(a);e[c+"-opacitySetter"](J.get("a"),c,b);k=J.get("rgb")}else k=b.getElementsByTagName(c),k.length&&(k[0].opacity=1,k[0].type="solid"),k=a;return k},prepVML:function(a){var b=this.isIE8;a=a.join("");b?(a=a.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),a=-1===a.indexOf('style="')?a.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):a.replace('style="', 'style="display:inline-block;behavior:url(#default#VML);')):a=a.replace("<","