/* Highcharts JS v10.1.0 (2022-04-29) (c) 2009-2021 Torstein Honsi License: www.highcharts.com/license */ (function(U,K){"object"===typeof module&&module.exports?(K["default"]=K,module.exports=U.document?K(U):K):"function"===typeof define&&define.amd?define("highcharts/highcharts",function(){return K(U)}):(U.Highcharts&&U.Highcharts.error(16,!0),U.Highcharts=K(U))})("undefined"!==typeof window?window:this,function(U){function K(a,C,f,H){a.hasOwnProperty(C)||(a[C]=H.apply(null,f),"function"===typeof CustomEvent&&U.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:C,module:a[C]}})))} var f={};K(f,"Core/Globals.js",[],function(){var a;(function(a){a.SVG_NS="http://www.w3.org/2000/svg";a.product="Highcharts";a.version="10.1.0";a.win="undefined"!==typeof U?U:{};a.doc=a.win.document;a.svg=a.doc&&a.doc.createElementNS&&!!a.doc.createElementNS(a.SVG_NS,"svg").createSVGRect;a.userAgent=a.win.navigator&&a.win.navigator.userAgent||"";a.isChrome=-1!==a.userAgent.indexOf("Chrome");a.isFirefox=-1!==a.userAgent.indexOf("Firefox");a.isMS=/(edge|msie|trident)/i.test(a.userAgent)&&!a.win.opera; a.isSafari=!a.isChrome&&-1!==a.userAgent.indexOf("Safari");a.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(a.userAgent);a.isWebKit=-1!==a.userAgent.indexOf("AppleWebKit");a.deg2rad=2*Math.PI/360;a.hasBidiBug=a.isFirefox&&4>parseInt(a.userAgent.split("Firefox/")[1],10);a.hasTouch=!!a.win.TouchEvent;a.marginNames=["plotTop","marginRight","marginBottom","plotLeft"];a.noop=function(){};a.supportsPassiveEvents=function(){var f=!1;if(!a.isMS){var C=Object.defineProperty({},"passive",{get:function(){f= !0}});a.win.addEventListener&&a.win.removeEventListener&&(a.win.addEventListener("testPassive",a.noop,C),a.win.removeEventListener("testPassive",a.noop,C))}return f}();a.charts=[];a.dateFormats={};a.seriesTypes={};a.symbolSizes={};a.chartCount=0})(a||(a={}));"";return a});K(f,"Core/Utilities.js",[f["Core/Globals.js"]],function(a){function f(d,r,h,l){var v=r?"Highcharts error":"Highcharts warning";32===d&&(d=v+": Deprecated member");var m=n(d),c=m?v+" #"+d+": www.highcharts.com/errors/"+d+"/":d.toString(); if("undefined"!==typeof l){var q="";m&&(c+="?");y(l,function(b,d){q+="\n - "+d+": "+b;m&&(c+=encodeURI(d)+"="+encodeURI(b))});c+=q}z(a,"displayError",{chart:h,code:d,message:c,params:l},function(){if(r)throw Error(c);b.console&&-1===f.messages.indexOf(c)&&console.warn(c)});f.messages.push(c)}function B(b,d){var v={};y(b,function(r,h){if(I(b[h],!0)&&!b.nodeType&&d[h])r=B(b[h],d[h]),Object.keys(r).length&&(v[h]=r);else if(I(b[h])||b[h]!==d[h]||h in b&&!(h in d))v[h]=b[h]});return v}function H(b,d){return parseInt(b, d||10)}function w(b){return"string"===typeof b}function E(b){b=Object.prototype.toString.call(b);return"[object Array]"===b||"[object Array Iterator]"===b}function I(b,d){return!!b&&"object"===typeof b&&(!d||!E(b))}function A(b){return I(b)&&"number"===typeof b.nodeType}function u(b){var d=b&&b.constructor;return!(!I(b,!0)||A(b)||!d||!d.name||"Object"===d.name)}function n(b){return"number"===typeof b&&!isNaN(b)&&Infinity>b&&-Infinity=r-1&&(r=Math.floor(h)),Math.max(0,r-(v(d,"padding-left",!0)||0)-(v(d,"padding-right",!0)||0));if("height"===r)return Math.max(0,Math.min(d.offsetHeight,d.scrollHeight)-(v(d,"padding-top",!0)||0)-(v(d,"padding-bottom",!0)||0));b.getComputedStyle||f(27,!0);if(d= b.getComputedStyle(d,void 0)){var l=d.getPropertyValue(r);p(h,"opacity"!==r)&&(l=H(l))}return l}function y(b,d,h){for(var v in b)Object.hasOwnProperty.call(b,v)&&d.call(h||b[v],b[v],v,b)}function x(b,d,h){function v(d,J){var v=b.removeEventListener||a.removeEventListenerPolyfill;v&&v.call(b,d,J,!1)}function r(r){var J;if(b.nodeName){if(d){var L={};L[d]=!0}else L=r;y(L,function(b,d){if(r[d])for(J=r[d].length;J--;)v(d,r[d][J].fn)})}}var l="function"===typeof b&&b.prototype||b;if(Object.hasOwnProperty.call(l, "hcEvents")){var m=l.hcEvents;d?(l=m[d]||[],h?(m[d]=l.filter(function(b){return h!==b.fn}),v(d,h)):(r(m),m[d]=[])):(r(m),delete l.hcEvents)}}function z(b,d,l,m){l=l||{};if(h.createEvent&&(b.dispatchEvent||b.fireEvent&&b!==a)){var v=h.createEvent("Events");v.initEvent(d,!0,!0);l=c(v,l);b.dispatchEvent?b.dispatchEvent(l):b.fireEvent(d,l)}else if(b.hcEvents){l.target||c(l,{preventDefault:function(){l.defaultPrevented=!0},target:b,type:d});v=[];for(var r=b,q=!1;r.hcEvents;)Object.hasOwnProperty.call(r, "hcEvents")&&r.hcEvents[d]&&(v.length&&(q=!0),v.unshift.apply(v,r.hcEvents[d])),r=Object.getPrototypeOf(r);q&&v.sort(function(b,d){return b.order-d.order});v.forEach(function(d){!1===d.fn.call(b,l)&&l.preventDefault()})}m&&!l.defaultPrevented&&m.call(b,l)}var m=a.charts,h=a.doc,b=a.win;(f||(f={})).messages=[];Math.easeInOutSine=function(b){return-.5*(Math.cos(Math.PI*b)-1)};var l=Array.prototype.find?function(b,d){return b.find(d)}:function(b,d){var v,r=b.length;for(v=0;vv&&(v=b[d]);return v},arrayMin:function(b){for(var d=b.length,v=b[0];d--;)b[d]d?b=h&&(d=[1/h])));for(l=0;l=b||!m&&v<=(d[l]+(d[l+1]||d[l]))/2);l++);return r=q(r*h,-Math.round(Math.log(.001)/Math.LN10))},objectEach:y,offset:function(d){var r=h.documentElement;d=d.parentElement||d.parentNode?d.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:d.top+(b.pageYOffset||r.scrollTop)-(r.clientTop||0),left:d.left+(b.pageXOffset||r.scrollLeft)-(r.clientLeft||0),width:d.width,height:d.height}},pad:function(b,d,h){return Array((d||2)+1-String(b).replace("-", "").length).join(h||"0")+b},pick:p,pInt:H,relativeLength:function(b,d,h){return/%$/.test(b)?d*parseFloat(b)/100+(h||0):parseFloat(b)},removeEvent:x,splat:function(b){return E(b)?b:[b]},stableSort:function(b,d){var h=b.length,r,l;for(l=0;l>16,(n&65280)>>8,n&255,1]:4===u&&(A=[(n&3840)>>4|(n&3840)>>8,(n&240)>>4|n&240,(n&15)<<4|n&15,1])}if(!A)for(n=f.parsers.length;n--&& !A;){var k=f.parsers[n];(u=k.regex.exec(a))&&(A=k.parse(u))}}A&&(this.rgba=A)};f.prototype.get=function(a){var A=this.input,u=this.rgba;if("object"===typeof A&&"undefined"!==typeof this.stops){var n=H(A);n.stops=[].slice.call(n.stops);this.stops.forEach(function(k,e){n.stops[e]=[n.stops[e][0],k.get(a)]});return n}return u&&C(u[0])?"rgb"===a||!a&&1===u[3]?"rgb("+u[0]+","+u[1]+","+u[2]+")":"a"===a?""+u[3]:"rgba("+u.join(",")+")":A};f.prototype.brighten=function(a){var A=this.rgba;if(this.stops)this.stops.forEach(function(n){n.brighten(a)}); else if(C(a)&&0!==a)for(var u=0;3>u;u++)A[u]+=w(255*a),0>A[u]&&(A[u]=0),255m?"AM":"PM",P:12>m?"am":"pm",S:n(g.getSeconds()),L:n(Math.floor(e%1E3),3)},a.dateFormats);u(g,function(b,d){for(;-1!==c.indexOf("%"+d);)c=c.replace("%"+d,"function"===typeof b?b.call(q,e):b)});return p?c.substr(0,1).toUpperCase()+c.substr(1):c};t.prototype.resolveDTLFormat=function(c){return I(c,!0)?c:(c=e(c),{main:c[0],from:c[1],to:c[2]})};t.prototype.getTimeTicks= function(e,g,p,t){var q=this,m=[],h={},b=new q.Date(g),l=e.unitRange,d=e.count||1,D;t=k(t,1);if(H(g)){q.set("Milliseconds",b,l>=c.second?0:d*Math.floor(q.get("Milliseconds",b)/d));l>=c.second&&q.set("Seconds",b,l>=c.minute?0:d*Math.floor(q.get("Seconds",b)/d));l>=c.minute&&q.set("Minutes",b,l>=c.hour?0:d*Math.floor(q.get("Minutes",b)/d));l>=c.hour&&q.set("Hours",b,l>=c.day?0:d*Math.floor(q.get("Hours",b)/d));l>=c.day&&q.set("Date",b,l>=c.month?1:Math.max(1,d*Math.floor(q.get("Date",b)/d)));if(l>= c.month){q.set("Month",b,l>=c.year?0:d*Math.floor(q.get("Month",b)/d));var v=q.get("FullYear",b)}l>=c.year&&q.set("FullYear",b,v-v%d);l===c.week&&(v=q.get("Day",b),q.set("Date",b,q.get("Date",b)-v+t+(v4*c.month||q.getTimezoneOffset(g)!==q.getTimezoneOffset(p));g=b.getTime();for(b=1;gm.length&&m.forEach(function(b){0===b%18E5&&"000000000"===q.dateFormat("%H%M%S%L",b)&&(h[b]="day")})}m.info=E(e,{higherRanks:h,totalRange:l*d});return m};t.prototype.getDateFormat=function(e,g,p,t){var q=this.dateFormat("%m-%d %H:%M:%S.%L",g),m={millisecond:15,second:12,minute:9,hour:6,day:3},h="millisecond";for(b in c){if(e===c.week&&+this.dateFormat("%w", g)===p&&"00:00:00.000"===q.substr(6)){var b="week";break}if(c[b]>e){b=h;break}if(m[b]&&q.substr(m[b])!=="01-01 00:00:00.000".substr(m[b]))break;"week"!==b&&(h=b)}if(b)var l=this.resolveDTLFormat(t[b]).main;return l};return t}();"";return f});K(f,"Core/DefaultOptions.js",[f["Core/Chart/ChartDefaults.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Color/Palettes.js"],f["Core/Time.js"],f["Core/Utilities.js"]],function(a,f,B,H,w,E){f=f.parse;var C=E.merge,A={colors:H.colors,symbols:["circle", "diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0, timezone:void 0,timezoneOffset:0,useUTC:!0},chart:a,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399", inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5, textAlign:"center"}},tooltip:{enabled:!0,animation:B.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:B.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
', backgroundColor:f("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};A.chart.styledMode=!1;"";var u=new w(C(A.global,A.time));a={defaultOptions:A,defaultTime:u,getOptions:function(){return A}, setOptions:function(n){C(!0,A,n);if(n.time||n.global)B.time?B.time.update(C(A.global,A.time,n.global,n.time)):B.time=u;return A}};"";return a});K(f,"Core/Animation/Fx.js",[f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f,B){var C=a.parse,w=f.win,E=B.isNumber,I=B.objectEach;return function(){function a(a,n,k){this.pos=NaN;this.options=n;this.elem=a;this.prop=k}a.prototype.dSetter=function(){var a=this.paths,n=a&&a[0];a=a&&a[1];var k=this.now||0,e=[];if(1!==k&&n&&a)if(n.length=== a.length&&1>k)for(var c=0;c=p+this.startTime){this.now=this.end;this.pos=1;this.update();var t=g[this.prop]=!0;I(g,function(c){!0!==c&&(t=!1)});t&&c&&c.call(e);a=!1}else this.pos=k.easing((n-this.startTime)/p),this.now=this.start+(this.end-this.start)*this.pos,this.update(),a=!0;return a};a.prototype.initPath=function(a,n,k){function e(c,m){for(;c.lengtht[1]){var F=k+ +t[1];0<=F?(t[0]=(+t[0]).toExponential(F).split("e")[0],k=F):(t[0]=t[0].split(".")[0]||0,a=20>k?(t[0]*Math.pow(10,t[1])).toFixed(k):0,t[1]=0)}F=(Math.abs(t[1]?t[0]:a)+Math.pow(10,-Math.max(k,g)- 1)).toFixed(k);g=String(u(F));var y=3a?"-":"")+(y?g.substr(0,y)+c:"");a=0>+t[1]&&!q?"0":a+g.substr(y).replace(/(\d{3})(?=\d)/g,"$1"+c);k&&(a+=e+F.slice(-k));t[1]&&0!==+a&&(a+="e"+t[1]);return a}var H=a.defaultOptions,w=a.defaultTime,E=f.getNestedProperty,I=f.isNumber,A=f.pick,u=f.pInt;return{dateFormat:function(a,k,e){return w.dateFormat(a,k,e)},format:function(a,k,e){var c="{",p=!1,g=/f$/,t=/\.([0-9])/,q=H.lang,F=e&&e.time|| w;e=e&&e.numberFormatter||C;for(var y=[];a;){var x=a.indexOf(c);if(-1===x)break;var z=a.slice(0,x);if(p){z=z.split(":");c=E(z.shift()||"",k);if(z.length&&"number"===typeof c)if(z=z.join(":"),g.test(z)){var m=parseInt((z.match(t)||["","-1"])[1],10);null!==c&&(c=e(c,m,q.decimalPoint,-1e){H(a,c);for(F=g=0;F<=e;)F+=a[g].size,g++;q=a.splice(g-1,a.length)}H(a,p);for(a=a.map(function(c){return{size:c.size,targets:[c.target],align:B(c.align,.5)}});t;){for(g=a.length;g--;)e=a[g],c=(Math.min.apply(0,e.targets)+Math.max.apply(0,e.targets))/ 2,e.pos=f(c-e.size*e.align,0,u-e.size);g=a.length;for(t=!1;g--;)0a[g].pos&&(a[g-1].size+=a[g].size,a[g-1].targets=a[g-1].targets.concat(a[g].targets),a[g-1].align=.5,a[g-1].pos+a[g-1].size>u&&(a[g-1].pos=u-a[g-1].size),a.splice(g,1),t=!0)}k.push.apply(k,q);g=0;a.some(function(c){var e=0;return(c.targets||[]).some(function(){k[g].pos=c.pos+e;if("undefined"!==typeof n&&Math.abs(k[g].pos-k[g].target)>n)return k.slice(0,g+1).forEach(function(c){return delete c.pos}),k.reducedLen= (k.reducedLen||u)-.1*u,k.reducedLen>.1*u&&C(k,u,n),!0;e+=k[g].size;g++;return!1})});H(k,p);return k}a.distribute=C})(w||(w={}));return w});K(f,"Core/Renderer/SVG/SVGElement.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Renderer/HTML/AST.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f,B,H,w){var C=a.animate,I=a.animObject,A=a.stop,u=H.deg2rad,n=H.doc,k=H.noop,e=H.svg,c=H.SVG_NS,p=H.win,g=w.addEvent,t=w.attr,q=w.createElement,F=w.css,y=w.defined,x=w.erase, z=w.extend,m=w.fireEvent,h=w.isArray,b=w.isFunction,l=w.isNumber,d=w.isString,D=w.merge,v=w.objectEach,r=w.pick,O=w.pInt,P=w.syncTimeout,S=w.uniqueKey;a=function(){function a(){this.element=void 0;this.onEvents={};this.opacity=1;this.renderer=void 0;this.SVG_NS=c;this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}a.prototype._defaultGetter=function(b){b=r(this[b+"Value"],this[b],this.element?this.element.getAttribute(b):null,0);/^[\-0-9\.]+$/.test(b)&& (b=parseFloat(b));return b};a.prototype._defaultSetter=function(b,d,c){c.setAttribute(d,b)};a.prototype.add=function(b){var d=this.renderer,c=this.element;b&&(this.parentGroup=b);this.parentInverted=b&&b.inverted;"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&d.buildText(this);this.added=!0;if(!b||b.handleZ||this.zIndex)var h=this.zIndexSetter();h||(b?b.element:d.box).appendChild(c);if(this.onAdd)this.onAdd();return this};a.prototype.addClass=function(b,d){var c=d?"":this.attr("class")|| "";b=(b||"").split(/ /g).reduce(function(b,d){-1===c.indexOf(d)&&b.push(d);return b},c?[c]:[]).join(" ");b!==c&&this.attr("class",b);return this};a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)};a.prototype.align=function(b,c,J){var h={},l=this.renderer,e=l.alignedObjects,m,a,G;if(b){if(this.alignOptions=b,this.alignByTranslate=c,!J||d(J))this.alignTo=m=J||"renderer",x(e,this),e.push(this),J=void 0}else b=this.alignOptions,c=this.alignByTranslate, m=this.alignTo;J=r(J,l[m],"scrollablePlotBox"===m?l.plotBox:void 0,l);m=b.align;var v=b.verticalAlign;l=(J.x||0)+(b.x||0);e=(J.y||0)+(b.y||0);"right"===m?a=1:"center"===m&&(a=2);a&&(l+=(J.width-(b.width||0))/a);h[c?"translateX":"x"]=Math.round(l);"bottom"===v?G=1:"middle"===v&&(G=2);G&&(e+=(J.height-(b.height||0))/G);h[c?"translateY":"y"]=Math.round(e);this[this.placed?"animate":"attr"](h);this.placed=!0;this.alignAttr=h;return this};a.prototype.alignSetter=function(b){var d={left:"start",center:"middle", right:"end"};d[b]&&(this.alignValue=b,this.element.setAttribute("text-anchor",d[b]))};a.prototype.animate=function(b,d,c){var J=this,h=I(r(d,this.renderer.globalAnimation,!0));d=h.defer;r(n.hidden,n.msHidden,n.webkitHidden,!1)&&(h.duration=0);0!==h.duration?(c&&(h.complete=c),P(function(){J.element&&C(J,b,h)},d)):(this.attr(b,void 0,c||h.complete),v(b,function(b,d){h.step&&h.step.call(this,b,{prop:d,pos:1,elem:this})},this));return this};a.prototype.applyTextOutline=function(b){var d=this.element; -1!==b.indexOf("contrast")&&(b=b.replace(/contrast/g,this.renderer.getContrast(d.style.fill)));var J=b.split(" ");b=J[J.length-1];if((J=J[0])&&"none"!==J&&H.svg){this.fakeTS=!0;this.ySetter=this.xSetter;J=J.replace(/(^[\d\.]+)(.*?)$/g,function(b,d,c){return 2*Number(d)+c});this.removeTextOutline();var h=n.createElementNS(c,"tspan");t(h,{"class":"highcharts-text-outline",fill:b,stroke:b,"stroke-width":J,"stroke-linejoin":"round"});[].forEach.call(d.childNodes,function(b){var d=b.cloneNode(!0);d.removeAttribute&& ["fill","stroke","stroke-width","stroke"].forEach(function(b){return d.removeAttribute(b)});h.appendChild(d)});var l=n.createElementNS(c,"tspan");l.textContent="\u200b";["x","y"].forEach(function(b){var c=d.getAttribute(b);c&&l.setAttribute(b,c)});h.appendChild(l);d.insertBefore(h,d.firstChild)}};a.prototype.attr=function(b,d,c,h){var J=this.element,l=this.symbolCustomAttribs,r,L=this,G,e;if("string"===typeof b&&"undefined"!==typeof d){var m=b;b={};b[m]=d}"string"===typeof b?L=(this[b+"Getter"]|| this._defaultGetter).call(this,b,J):(v(b,function(d,c){G=!1;h||A(this,c);this.symbolName&&-1!==l.indexOf(c)&&(r||(this.symbolAttr(b),r=!0),G=!0);!this.rotation||"x"!==c&&"y"!==c||(this.doTransform=!0);G||(e=this[c+"Setter"]||this._defaultSetter,e.call(this,d,c,J),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(c)&&this.updateShadows(c,d,e))},this),this.afterSetters());c&&c.call(this);return L};a.prototype.clip=function(b){return this.attr("clip-path",b?"url("+ this.renderer.url+"#"+b.id+")":"none")};a.prototype.crisp=function(b,d){d=d||b.strokeWidth||0;var c=Math.round(d)%2/2;b.x=Math.floor(b.x||this.x||0)+c;b.y=Math.floor(b.y||this.y||0)+c;b.width=Math.floor((b.width||this.width||0)-2*c);b.height=Math.floor((b.height||this.height||0)-2*c);y(b.strokeWidth)&&(b.strokeWidth=d);return b};a.prototype.complexColor=function(b,d,c){var J=this.renderer,l,r,e,a,G,g,p,q,k,t,x=[],z;m(this.renderer,"complexColor",{args:arguments},function(){b.radialGradient?r="radialGradient": b.linearGradient&&(r="linearGradient");if(r){e=b[r];G=J.gradients;g=b.stops;k=c.radialReference;h(e)&&(b[r]=e={x1:e[0],y1:e[1],x2:e[2],y2:e[3],gradientUnits:"userSpaceOnUse"});"radialGradient"===r&&k&&!y(e.gradientUnits)&&(a=e,e=D(e,J.getRadialAttr(k,a),{gradientUnits:"userSpaceOnUse"}));v(e,function(b,d){"id"!==d&&x.push(d,b)});v(g,function(b){x.push(b)});x=x.join(",");if(G[x])t=G[x].attr("id");else{e.id=t=S();var L=G[x]=J.createElement(r).attr(e).add(J.defs);L.radAttr=a;L.stops=[];g.forEach(function(b){0=== b[1].indexOf("rgba")?(l=B.parse(b[1]),p=l.get("rgb"),q=l.get("a")):(p=b[1],q=1);b=J.createElement("stop").attr({offset:b[0],"stop-color":p,"stop-opacity":q}).add(L);L.stops.push(b)})}z="url("+J.url+"#"+t+")";c.setAttribute(d,z);c.gradient=x;b.toString=function(){return z}}})};a.prototype.css=function(b){var d=this.styles,c={},h=this.element,l=!d;b.color&&(b.fill=b.color);d&&v(b,function(b,J){d&&d[J]!==b&&(c[J]=b,l=!0)});if(l){d&&(b=z(d,c));if(null===b.width||"auto"===b.width)delete this.textWidth; else if("text"===h.nodeName.toLowerCase()&&b.width)var r=this.textWidth=O(b.width);this.styles=b;r&&!e&&this.renderer.forExport&&delete b.width;var m=D(b);h.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(b){return m&&delete m[b]});F(h,m);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),b.textOutline&&this.applyTextOutline(b.textOutline))}return this};a.prototype.dashstyleSetter=function(b){var d=this["stroke-width"];"inherit"===d&&(d= 1);if(b=b&&b.toLowerCase()){var c=b.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(b=c.length;b--;)c[b]=""+O(c[b])*r(d,NaN);b=c.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",b)}};a.prototype.destroy=function(){var b=this,d=b.element||{},c=b.renderer,h=d.ownerSVGElement,l=c.isSVG&& "SPAN"===d.nodeName&&b.parentGroup||void 0;d.onclick=d.onmouseout=d.onmouseover=d.onmousemove=d.point=null;A(b);if(b.clipPath&&h){var r=b.clipPath;[].forEach.call(h.querySelectorAll("[clip-path],[CLIP-PATH]"),function(b){-1D.width)D={x:0,y:0,width:0,height:0}}else D=this.htmlGetBBox();if(e.isSVG&&(e=D.width,d=D.height,p&&(D.height=d={"11px,17":14,"13px,20":16}[(q||"")+","+Math.round(d)]||d),c)){p=Number(l.getAttribute("y")||0)-D.y;h={right:1,center:.5}[h||0]||0;m=c*u;q=(c-90)*u;var x=e*Math.cos(m);c=e*Math.sin(m);t=Math.cos(q);m=Math.sin(q);e=D.x+h*(e-x)+p*t;q=e+x;t=q-d*t;x=t-x;p=D.y+p-h*c+p*m;h=p+c;d=h-d*m;c=d-c;D.x=Math.min(e,q,t,x);D.y=Math.min(p,h,d,c);D.width= Math.max(e,q,t,x)-D.x;D.height=Math.max(p,h,d,c)-D.y}if(k&&(""===v||0]*>/g,"").replace(/</g,"<").replace(/>/g,">")};a.prototype.toFront=function(){var b=this.element;b.parentNode.appendChild(b);return this};a.prototype.translate=function(b,d){return this.attr({translateX:b, translateY:d})};a.prototype.updateShadows=function(b,d,c){var h=this.shadows;if(h)for(var l=h.length;l--;)c.call(h[l],"height"===b?Math.max(d-(h[l].cutHeight||0),0):"d"===b?this.d:d,b,h[l])};a.prototype.updateTransform=function(){var b=this.scaleX,d=this.scaleY,c=this.inverted,h=this.rotation,l=this.matrix,e=this.element,m=this.translateX||0,a=this.translateY||0;c&&(m+=this.width,a+=this.height);m=["translate("+m+","+a+")"];y(l)&&m.push("matrix("+l.join(",")+")");c?m.push("rotate(90) scale(-1,1)"): h&&m.push("rotate("+h+" "+r(this.rotationOriginX,e.getAttribute("x"),0)+" "+r(this.rotationOriginY,e.getAttribute("y")||0)+")");(y(b)||y(d))&&m.push("scale("+r(b,1)+" "+r(d,1)+")");m.length&&e.setAttribute("transform",m.join(" "))};a.prototype.visibilitySetter=function(b,d,c){"inherit"===b?c.removeAttribute(d):this[d]!==b&&c.setAttribute(d,b);this[d]=b};a.prototype.xGetter=function(b){"circle"===this.element.nodeName&&("x"===b?b="cx":"y"===b&&(b="cy"));return this._defaultGetter(b)};a.prototype.zIndexSetter= function(b,d){var c=this.renderer,h=this.parentGroup,l=(h||c).element||c.box,r=this.element;c=l===c.box;var e=!1;var m=this.added;var G;y(b)?(r.setAttribute("data-z-index",b),b=+b,this[d]===b&&(m=!1)):y(this[d])&&r.removeAttribute("data-z-index");this[d]=b;if(m){(b=this.zIndex)&&h&&(h.handleZ=!0);d=l.childNodes;for(G=d.length-1;0<=G&&!e;G--){h=d[G];m=h.getAttribute("data-z-index");var a=!y(m);if(h!==r)if(0>b&&a&&!c&&!G)l.insertBefore(r,d[G]),e=!0;else if(O(m)<=b||a&&(!y(b)||0<=b))l.insertBefore(r, d[G+1]||null),e=!0}e||(l.insertBefore(r,d[c?3:0]||null),e=!0)}return e};return a}();a.prototype["stroke-widthSetter"]=a.prototype.strokeSetter;a.prototype.yGetter=a.prototype.xGetter;a.prototype.matrixSetter=a.prototype.rotationOriginXSetter=a.prototype.rotationOriginYSetter=a.prototype.rotationSetter=a.prototype.scaleXSetter=a.prototype.scaleYSetter=a.prototype.translateXSetter=a.prototype.translateYSetter=a.prototype.verticalAlignSetter=function(b,d){this[d]=b;this.doTransform=!0};"";return a}); K(f,"Core/Renderer/RendererRegistry.js",[f["Core/Globals.js"]],function(a){var f;(function(f){f.rendererTypes={};var C;f.getRendererType=function(a){void 0===a&&(a=C);return f.rendererTypes[a]||f.rendererTypes[C]};f.registerRendererType=function(w,B,I){f.rendererTypes[w]=B;if(!C||I)C=w,a.Renderer=B}})(f||(f={}));return f});K(f,"Core/Renderer/SVG/SVGLabel.js",[f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(a,f){var C=this&&this.__extends||function(){var a=function(k,e){a=Object.setPrototypeOf|| {__proto__:[]}instanceof Array&&function(c,e){c.__proto__=e}||function(c,e){for(var a in e)e.hasOwnProperty(a)&&(c[a]=e[a])};return a(k,e)};return function(k,e){function c(){this.constructor=k}a(k,e);k.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),H=f.defined,w=f.extend,E=f.isNumber,I=f.merge,A=f.pick,u=f.removeEvent;return function(n){function k(e,c,a,g,t,q,F,y,x,z){var m=n.call(this)||this;m.paddingLeftSetter=m.paddingSetter;m.paddingRightSetter=m.paddingSetter;m.init(e, "g");m.textStr=c;m.x=a;m.y=g;m.anchorX=q;m.anchorY=F;m.baseline=x;m.className=z;m.addClass("button"===z?"highcharts-no-tooltip":"highcharts-label");z&&m.addClass("highcharts-"+z);m.text=e.text(void 0,0,0,y).attr({zIndex:1});var h;"string"===typeof t&&((h=/^url\((.*?)\)$/.test(t))||m.renderer.symbols[t])&&(m.symbolKey=t);m.bBox=k.emptyBBox;m.padding=3;m.baselineOffset=0;m.needsBox=e.styledMode||h;m.deferredAttr={};m.alignFactor=0;return m}C(k,n);k.prototype.alignSetter=function(e){e={left:0,center:.5, right:1}[e];e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&E(this.xSetting)&&this.attr({x:this.xSetting}))};k.prototype.anchorXSetter=function(e,c){this.anchorX=e;this.boxAttr(c,Math.round(e)-this.getCrispAdjust()-this.xSetting)};k.prototype.anchorYSetter=function(e,c){this.anchorY=e;this.boxAttr(c,e-this.ySetting)};k.prototype.boxAttr=function(e,c){this.box?this.box.attr(e,c):this.deferredAttr[e]=c};k.prototype.css=function(e){if(e){var c={};e=I(e);k.textProps.forEach(function(a){"undefined"!== typeof e[a]&&(c[a]=e[a],delete e[a])});this.text.css(c);var p="width"in c;"fontSize"in c||"fontWeight"in c?this.updateTextPadding():p&&this.updateBoxSize()}return a.prototype.css.call(this,e)};k.prototype.destroy=function(){u(this.element,"mouseenter");u(this.element,"mouseleave");this.text&&this.text.destroy();this.box&&(this.box=this.box.destroy());a.prototype.destroy.call(this)};k.prototype.fillSetter=function(e,c){e&&(this.needsBox=!0);this.fill=e;this.boxAttr(c,e)};k.prototype.getBBox=function(){this.textStr&& 0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var e=this.padding,c=A(this.paddingLeft,e);return{width:this.width,height:this.height,x:this.bBox.x-c,y:this.bBox.y-e}};k.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2};k.prototype.heightSetter=function(e){this.heightSetting=e};k.prototype.onAdd=function(){var e=this.textStr;this.text.add(this);this.attr({text:H(e)? e:"",x:this.x,y:this.y});this.box&&H(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})};k.prototype.paddingSetter=function(e,c){E(e)?e!==this[c]&&(this[c]=e,this.updateTextPadding()):this[c]=void 0};k.prototype.rSetter=function(e,c){this.boxAttr(c,e)};k.prototype.shadow=function(e){e&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(e));return this};k.prototype.strokeSetter=function(e,c){this.stroke=e;this.boxAttr(c,e)};k.prototype["stroke-widthSetter"]= function(e,c){e&&(this.needsBox=!0);this["stroke-width"]=e;this.boxAttr(c,e)};k.prototype["text-alignSetter"]=function(e){this.textAlign=e};k.prototype.textSetter=function(e){"undefined"!==typeof e&&this.text.attr({text:e});this.updateTextPadding()};k.prototype.updateBoxSize=function(){var e=this.text.element.style,c={},a=this.padding,g=this.bBox=E(this.widthSetting)&&E(this.heightSetting)&&!this.textAlign||!H(this.text.textStr)?k.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth();this.height= (this.heightSetting||g.height||0)+2*a;e=this.renderer.fontMetrics(e&&e.fontSize,this.text);this.baselineOffset=a+Math.min((this.text.firstLineMetrics||e).b,g.height||Infinity);this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2);this.needsBox&&(this.box||(a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),a.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)),a=this.getCrispAdjust(), c.x=a,c.y=(this.baseline?-this.baselineOffset:0)+a,c.width=Math.round(this.width),c.height=Math.round(this.height),this.box.attr(w(c,this.deferredAttr)),this.deferredAttr={})};k.prototype.updateTextPadding=function(){var e=this.text;this.updateBoxSize();var c=this.baseline?0:this.baselineOffset,a=A(this.paddingLeft,this.padding);H(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(a+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width));if(a!== e.x||c!==e.y)e.attr("x",a),e.hasBoxWidthChanged&&(this.bBox=e.getBBox(!0)),"undefined"!==typeof c&&e.attr("y",c);e.x=a;e.y=c};k.prototype.widthSetter=function(e){this.widthSetting=E(e)?e:void 0};k.prototype.getPaddedWidth=function(){var e=this.padding,c=A(this.paddingLeft,e);e=A(this.paddingRight,e);return(this.widthSetting||this.bBox.width||0)+c+e};k.prototype.xSetter=function(e){this.x=e;this.alignFactor&&(e-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0);this.xSetting=Math.round(e); this.attr("translateX",this.xSetting)};k.prototype.ySetter=function(e){this.ySetting=this.y=Math.round(e);this.attr("translateY",this.ySetting)};k.emptyBBox={width:0,height:0,x:0,y:0};k.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" ");return k}(a)});K(f,"Core/Renderer/SVG/Symbols.js",[f["Core/Utilities.js"]],function(a){function f(a,f,n,k,e){var c=[];if(e){var p=e.start||0,g=I(e.r,n);n=I(e.r,k||n);var t= (e.end||0)-.001;k=e.innerR;var q=I(e.open,.001>Math.abs((e.end||0)-p-2*Math.PI)),F=Math.cos(p),y=Math.sin(p),x=Math.cos(t),z=Math.sin(t);p=I(e.longArc,.001>t-p-Math.PI?0:1);c.push(["M",a+g*F,f+n*y],["A",g,n,0,p,I(e.clockwise,1),a+g*x,f+n*z]);w(k)&&c.push(q?["M",a+k*x,f+k*z]:["L",a+k*x,f+k*z],["A",k,k,0,p,w(e.clockwise)?1-e.clockwise:0,a+k*F,f+k*y]);q||c.push(["Z"])}return c}function B(a,f,n,k,e){return e&&e.r?H(a,f,n,k,e):[["M",a,f],["L",a+n,f],["L",a+n,f+k],["L",a,f+k],["Z"]]}function H(a,f,n,k, e){e=e&&e.r||0;return[["M",a+e,f],["L",a+n-e,f],["C",a+n,f,a+n,f,a+n,f+e],["L",a+n,f+k-e],["C",a+n,f+k,a+n,f+k,a+n-e,f+k],["L",a+e,f+k],["C",a,f+k,a,f+k,a,f+k-e],["L",a,f+e],["C",a,f,a,f,a+e,f]]}var w=a.defined,E=a.isNumber,I=a.pick;return{arc:f,callout:function(a,f,n,k,e){var c=Math.min(e&&e.r||0,n,k),p=c+6,g=e&&e.anchorX;e=e&&e.anchorY||0;var t=H(a,f,n,k,{r:c});if(!E(g))return t;a+g>=n?e>f+p&&e=a+g?e>f+p&&ek&&g>a+p&&ge&&g>a+p&&g/g,x=[t,this.ellipsis,this.noWrap,this.textLineHeight, this.textOutline,this.fontSize,this.width].join();if(x!==c.textCache){c.textCache=x;delete c.actualWidth;for(x=f.length;x--;)e.removeChild(f[x]);q||this.ellipsis||this.width||-1!==t.indexOf(" ")&&(!this.noWrap||y.test(t))?""!==t&&(g&&g.appendChild(e),t=new a(t),this.modifyTree(t.nodes),t.addToDOM(c.element),this.modifyDOM(),this.ellipsis&&-1!==(e.textContent||"").indexOf("\u2026")&&c.attr("title",this.unescapeEntities(c.textStr||"",["<",">"])),g&&g.removeChild(e)):e.appendChild(C.createTextNode(this.unescapeEntities(t))); u(this.textOutline)&&c.applyTextOutline&&c.applyTextOutline(this.textOutline)}};e.prototype.modifyDOM=function(){var c=this,a=this.svgElement,e=I(a.element,"x");a.firstLineMetrics=void 0;for(var k;k=a.element.firstChild;)if(/^[\s\u200B]*$/.test(k.textContent||" "))a.element.removeChild(k);else break;[].forEach.call(a.element.querySelectorAll("tspan.highcharts-br"),function(g,q){g.nextSibling&&g.previousSibling&&(0===q&&1===g.previousSibling.nodeType&&(a.firstLineMetrics=a.renderer.fontMetrics(void 0, g.previousSibling)),I(g,{dy:c.getLineHeight(g.nextSibling),x:e}))});var q=this.width||0;if(q){var f=function(g,k){var m=g.textContent||"",h=m.replace(/([^\^])-/g,"$1- ").split(" "),b=!c.noWrap&&(1q){for(;h<=b;)l=Math.ceil((h+b)/2),e&&(d=f(e,l)),v=D(l,d&&d.length-1),h===b?h=b+1:v>q?b=l-1:h=l;0===b?c.textContent="":a&&b===a.length-1||(c.textContent=d||f(a||e,l))}e&&e.splice(0,l);g.actualWidth=v;g.rotation=t};e.prototype.unescapeEntities=function(c,a){n(this.renderer.escapes,function(e,k){a&&-1!==a.indexOf(e)||(c=c.toString().replace(new RegExp(e,"g"),k))});return c};return e}()}); K(f,"Core/Renderer/SVG/SVGRenderer.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Color/Color.js"],f["Core/Globals.js"],f["Core/Renderer/RendererRegistry.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGLabel.js"],f["Core/Renderer/SVG/Symbols.js"],f["Core/Renderer/SVG/TextBuilder.js"],f["Core/Utilities.js"]],function(a,f,B,H,w,E,I,A,u){var n=B.charts,k=B.deg2rad,e=B.doc,c=B.isFirefox,p=B.isMS,g=B.isWebKit,t=B.noop,q=B.SVG_NS,F=B.symbolSizes,y=B.win,x=u.addEvent,z=u.attr,m=u.createElement, h=u.css,b=u.defined,l=u.destroyObjectProperties,d=u.extend,D=u.isArray,v=u.isNumber,r=u.isObject,O=u.isString,P=u.merge,S=u.pick,N=u.pInt,C=u.uniqueKey,X;B=function(){function J(b,d,c,h,a,e,l){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0;this.init(b,d,c,h,a,e,l)}J.prototype.init=function(b,d,a,l,r,m,J){var G=this.createElement("svg").attr({version:"1.1", "class":"highcharts-root"}),L=G.element;J||G.css(this.getStyle(l));b.appendChild(L);z(b,"dir","ltr");-1===b.innerHTML.indexOf("xmlns")&&z(L,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=L;this.boxWrapper=G;this.alignedObjects=[];this.url=this.getReferenceURL();this.createElement("desc").add().element.appendChild(e.createTextNode("Created with Highcharts 10.1.0"));this.defs=this.createElement("defs").add();this.allowHTML=m;this.forExport=r;this.styledMode=J;this.gradients={};this.cache={};this.cacheKeys= [];this.imgCount=0;this.setSize(d,a,!1);var g;c&&b.getBoundingClientRect&&(d=function(){h(b,{left:0,top:0});g=b.getBoundingClientRect();h(b,{left:Math.ceil(g.left)-g.left+"px",top:Math.ceil(g.top)-g.top+"px"})},d(),this.unSubPixelFix=x(y,"resize",d))};J.prototype.definition=function(b){return(new a([b])).addToDOM(this.defs.element)};J.prototype.getReferenceURL=function(){if((c||g)&&e.getElementsByTagName("base").length){if(!b(X)){var d=C();d=(new a([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs", children:[{tagName:"clipPath",attributes:{id:d},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+d+")",fill:"rgba(0,0,0,0.001)"}}]}])).addToDOM(e.body);h(d,{position:"fixed",top:0,left:0,zIndex:9E5});var l=e.elementFromPoint(6,6);X="hitme"===(l&&l.id);e.body.removeChild(d)}if(X)return y.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""};J.prototype.getStyle= function(b){return this.style=d({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},b)};J.prototype.setStyle=function(b){this.boxWrapper.css(this.getStyle(b))};J.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width};J.prototype.destroy=function(){var b=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();l(this.gradients||{});this.gradients=null;b&&(this.defs=b.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects= null};J.prototype.createElement=function(b){var d=new this.Element;d.init(this,b);return d};J.prototype.getRadialAttr=function(b,d){return{cx:b[0]-b[2]/2+(d.cx||0)*b[2],cy:b[1]-b[2]/2+(d.cy||0)*b[2],r:(d.r||0)*b[2]}};J.prototype.buildText=function(b){(new A(b)).buildSVG()};J.prototype.getContrast=function(b){b=f.parse(b).rgba;b[0]*=1;b[1]*=1.2;b[2]*=.5;return 459b?b+3:Math.round(1.2*b);return{h:d,b:Math.round(.8*d),f:b}};J.prototype.rotCorr=function(b,d,c){var a=b;d&&c&&(a=Math.max(a*Math.cos(d*k),4));return{x:-b/3*Math.sin(d*k),y:a}};J.prototype.pathToSegments=function(b){for(var d= [],c=[],a={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},h=0;h":">","'":"'",'"':"""},symbols:I,draw:t});H.registerRendererType("svg",B,!0);"";return B});K(f,"Core/Renderer/HTML/HTMLElement.js",[f["Core/Globals.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(a,f,B){var C=this&&this.__extends||function(){var c=function(a,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return c(a,e)};return function(a, e){function g(){this.constructor=a}c(a,e);a.prototype=null===e?Object.create(e):(g.prototype=e.prototype,new g)}}(),w=a.isFirefox,E=a.isMS,I=a.isWebKit,A=a.win,u=B.css,n=B.defined,k=B.extend,e=B.pick,c=B.pInt;return function(a){function g(){return null!==a&&a.apply(this,arguments)||this}C(g,a);g.compose=function(c){if(-1===g.composedClasses.indexOf(c)){g.composedClasses.push(c);var a=g.prototype,e=c.prototype;e.getSpanCorrection=a.getSpanCorrection;e.htmlCss=a.htmlCss;e.htmlGetBBox=a.htmlGetBBox; e.htmlUpdateTransform=a.htmlUpdateTransform;e.setSpanRotation=a.setSpanRotation}return c};g.prototype.getSpanCorrection=function(c,a,e){this.xCorr=-c*e;this.yCorr=-a};g.prototype.htmlCss=function(c){var a="SPAN"===this.element.tagName&&c&&"width"in c,g=e(a&&c.width,void 0);if(a){delete c.width;this.textWidth=g;var f=!0}c&&"ellipsis"===c.textOverflow&&(c.whiteSpace="nowrap",c.overflow="hidden");this.styles=k(this.styles,c);u(this.element,c);f&&this.htmlUpdateTransform();return this};g.prototype.htmlGetBBox= function(){var c=this.element;return{x:c.offsetLeft,y:c.offsetTop,width:c.offsetWidth,height:c.offsetHeight}};g.prototype.htmlUpdateTransform=function(){if(this.added){var a=this.renderer,e=this.element,g=this.translateX||0,k=this.translateY||0,f=this.x||0,p=this.y||0,m=this.textAlign||"left",h={left:0,center:.5,right:1}[m],b=this.styles;b=b&&b.whiteSpace;u(e,{marginLeft:g,marginTop:k});!a.styledMode&&this.shadows&&this.shadows.forEach(function(b){u(b,{marginLeft:g+1,marginTop:k+1})});this.inverted&& [].forEach.call(e.childNodes,function(b){a.invertChild(b,e)});if("SPAN"===e.tagName){var l=this.rotation,d=this.textWidth&&c(this.textWidth),D=[l,m,e.innerHTML,this.textWidth,this.textAlign].join(),v=void 0;v=!1;if(d!==this.oldTextWidth){if(this.textPxLength)var r=this.textPxLength;else u(e,{width:"",whiteSpace:b||"nowrap"}),r=e.offsetWidth;(d>this.oldTextWidth||r>d)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(u(e,{width:r>d||l?d+"px":"auto",display:"block",whiteSpace:b|| "normal"}),this.oldTextWidth=d,v=!0)}this.hasBoxWidthChanged=v;D!==this.cTT&&(v=a.fontMetrics(e.style.fontSize,e).b,!n(l)||l===(this.oldRotation||0)&&m===this.oldAlign||this.setSpanRotation(l,h,v),this.getSpanCorrection(!n(l)&&this.textPxLength||e.offsetWidth,v,h,l,m));u(e,{left:f+(this.xCorr||0)+"px",top:p+(this.yCorr||0)+"px"});this.cTT=D;this.oldRotation=l;this.oldAlign=m}}else this.alignOnAdd=!0};g.prototype.setSpanRotation=function(c,a,e){var g={},k=E&&!/Edge/.test(A.navigator.userAgent)?"-ms-transform": I?"-webkit-transform":w?"MozTransform":A.opera?"-o-transform":void 0;k&&(g[k]=g.transform="rotate("+c+"deg)",g[k+(w?"Origin":"-origin")]=g.transformOrigin=100*a+"% "+e+"px",u(this.element,g))};g.composedClasses=[];return g}(f)});K(f,"Core/Renderer/HTML/HTMLRenderer.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Utilities.js"]],function(a,f,B,H){var C=this&&this.__extends||function(){var a=function(k,e){a=Object.setPrototypeOf|| {__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var e in a)a.hasOwnProperty(e)&&(c[e]=a[e])};return a(k,e)};return function(k,e){function c(){this.constructor=k}a(k,e);k.prototype=null===e?Object.create(e):(c.prototype=e.prototype,new c)}}(),E=H.attr,I=H.createElement,A=H.extend,u=H.pick;return function(n){function k(){return null!==n&&n.apply(this,arguments)||this}C(k,n);k.compose=function(a){-1===k.composedClasses.indexOf(a)&&(k.composedClasses.push(a),a.prototype.html= k.prototype.html);return a};k.prototype.html=function(e,c,k){var g=this.createElement("span"),p=g.element,q=g.renderer,n=q.isSVG,y=function(c,a){["opacity","visibility"].forEach(function(e){c[e+"Setter"]=function(h,b,l){var d=c.div?c.div.style:a;f.prototype[e+"Setter"].call(this,h,b,l);d&&(d[b]=h)}});c.addedSetters=!0};g.textSetter=function(c){c!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,a.setElementHTML(this.element,u(c,"")),this.textStr=c,g.doTransform=!0)};n&&y(g,g.element.style); g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(c,a){"align"===a?g.alignValue=g.textAlign=c:g[a]=c;g.doTransform=!0};g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};g.attr({text:e,x:Math.round(c),y:Math.round(k)}).css({position:"absolute"});q.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});p.style.whiteSpace="nowrap";g.css=g.htmlCss;n&&(g.add=function(c){var a=q.box.parentNode,e=[];if(this.parentGroup=c){var h= c.div;if(!h){for(;c;)e.push(c),c=c.parentGroup;e.reverse().forEach(function(b){function c(d,c){b[c]=d;"translateX"===c?v.left=d+"px":v.top=d+"px";b.doTransform=!0}var d=E(b.element,"class"),m=b.styles||{};h=b.div=b.div||I("div",d?{className:d}:void 0,{position:"absolute",left:(b.translateX||0)+"px",top:(b.translateY||0)+"px",display:b.display,opacity:b.opacity,cursor:m.cursor,pointerEvents:m.pointerEvents,visibility:b.visibility},h||a);var v=h.style;A(b,{classSetter:function(b){return function(d){this.element.setAttribute("class", d);b.className=d}}(h),on:function(){e[0].div&&g.on.apply({element:e[0].div,onEvents:b.onEvents},arguments);return b},translateXSetter:c,translateYSetter:c});b.addedSetters||y(b)})}}else h=a;h.appendChild(p);g.added=!0;g.alignOnAdd&&g.htmlUpdateTransform();return g});return g};k.composedClasses=[];return k}(B)});K(f,"Core/Axis/AxisDefaults.js",[],function(){var a;(function(a){a.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L", range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01, minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999", lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"};a.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){var a=this.axis.chart.numberFormatter;return a(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold", textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0};a.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}};a.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}};a.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}};a.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}})(a||(a={}));return a});K(f,"Core/Foundation.js",[f["Core/Utilities.js"]],function(a){var f=a.addEvent,B=a.isFunction,H=a.objectEach,w=a.removeEvent, E;(function(a){a.registerEventOptions=function(a,u){a.eventOptions=a.eventOptions||{};H(u.events,function(n,k){a.eventOptions[k]!==n&&(a.eventOptions[k]&&(w(a,k,a.eventOptions[k]),delete a.eventOptions[k]),B(n)&&(a.eventOptions[k]=n,f(a,k,n)))})}})(E||(E={}));return E});K(f,"Core/Axis/Tick.js",[f["Core/FormatUtilities.js"],f["Core/Globals.js"],f["Core/Utilities.js"]],function(a,f,B){var C=f.deg2rad,w=B.clamp,E=B.correctFloat,I=B.defined,A=B.destroyObjectProperties,u=B.extend,n=B.fireEvent,k=B.isNumber, e=B.merge,c=B.objectEach,p=B.pick;f=function(){function g(c,a,e,g,k){this.isNewLabel=this.isNew=!0;this.axis=c;this.pos=a;this.type=e||"";this.parameters=k||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;n(this,"init");e||g||this.addLabel()}g.prototype.addLabel=function(){var c=this,e=c.axis,g=e.options,f=e.chart,x=e.categories,z=e.logarithmic,m=e.names,h=c.pos,b=p(c.options&&c.options.labels,g.labels),l=e.tickPositions,d=h===l[0],D=h===l[l.length-1],v= (!b.step||1===b.step)&&1===e.tickInterval;l=l.info;var r=c.label,O;x=this.parameters.category||(x?p(x[h],m[h],h):h);z&&k(x)&&(x=E(z.lin2log(x)));if(e.dateTime)if(l){var P=f.time.resolveDTLFormat(g.dateTimeLabelFormats[!g.grid&&l.higherRanks[h]||l.unitName]);var S=P.main}else k(x)&&(S=e.dateTime.getXDateFormat(x,g.dateTimeLabelFormats||{}));c.isFirst=d;c.isLast=D;var N={axis:e,chart:f,dateTimeLabelFormat:S,isFirst:d,isLast:D,pos:h,tick:c,tickPositionInfo:l,value:x};n(this,"labelFormat",N);var C=function(d){return b.formatter? b.formatter.call(d,d):b.format?(d.text=e.defaultLabelFormatter.call(d),a.format(b.format,d,f)):e.defaultLabelFormatter.call(d,d)};g=C.call(N,N);var X=P&&P.list;c.shortenLabel=X?function(){for(O=0;Ob&&g-l*df&&(t=Math.round((k-g)/Math.cos(b*C)));else if(k=g+(1-l)*d,g-l*df&&(r=f-c.x+r*l,n=-1),r=Math.min(D,r),rr||a.autoRotation&&(h.styles||{}).width)t=r;t&&(this.shortenLabel?this.shortenLabel():(v.width=Math.floor(t)+"px",(e.style||{}).textOverflow||(v.textOverflow="ellipsis"),h.css(v)))};g.prototype.moveLabel=function(a,e){var g=this,k=g.label,f=g.axis,p=f.reversed,m=!1;k&&k.textStr===a? (g.movedLabel=k,m=!0,delete g.label):c(f.ticks,function(b){m||b.isNew||b===g||!b.label||b.label.textStr!==a||(g.movedLabel=b.label,m=!0,b.labelPos=g.movedLabel.xy,delete b.label)});if(!m&&(g.labelPos||k)){var h=g.labelPos||k.xy;k=f.horiz?p?0:f.width+f.left:h.x;f=f.horiz?h.y:p?f.width+f.left:0;g.movedLabel=g.createLabel({x:k,y:f},a,e);g.movedLabel&&g.movedLabel.attr({opacity:0})}};g.prototype.render=function(c,a,e){var g=this.axis,k=g.horiz,f=this.pos,m=p(this.tickmarkOffset,g.tickmarkOffset);f=this.getPosition(k, f,m,a);m=f.x;var h=f.y;g=k&&m===g.pos+g.len||!k&&h===g.pos?-1:1;k=p(e,this.label&&this.label.newOpacity,1);e=p(e,1);this.isActive=!0;this.renderGridLine(a,e,g);this.renderMark(f,e,g);this.renderLabel(f,a,k,c);this.isNew=!1;n(this,"afterRender")};g.prototype.renderGridLine=function(c,a,e){var g=this.axis,k=g.options,f={},m=this.pos,h=this.type,b=p(this.tickmarkOffset,g.tickmarkOffset),l=g.chart.renderer,d=this.gridLine,D=k.gridLineWidth,v=k.gridLineColor,r=k.gridLineDashStyle;"minor"===this.type&& (D=k.minorGridLineWidth,v=k.minorGridLineColor,r=k.minorGridLineDashStyle);d||(g.chart.styledMode||(f.stroke=v,f["stroke-width"]=D||0,f.dashstyle=r),h||(f.zIndex=1),c&&(a=0),this.gridLine=d=l.path().attr(f).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(g.gridGroup));if(d&&(e=g.getPlotLinePath({value:m+b,lineWidth:d.strokeWidth()*e,force:"pass",old:c})))d[c||this.isNew?"attr":"animate"]({d:e,opacity:a})};g.prototype.renderMark=function(c,a,e){var g=this.axis,k=g.options,f=g.chart.renderer,m= this.type,h=g.tickSize(m?m+"Tick":"tick"),b=c.x;c=c.y;var l=p(k["minor"!==m?"tickWidth":"minorTickWidth"],!m&&g.isXAxis?1:0);k=k["minor"!==m?"tickColor":"minorTickColor"];var d=this.mark,D=!d;h&&(g.opposite&&(h[0]=-h[0]),d||(this.mark=d=f.path().addClass("highcharts-"+(m?m+"-":"")+"tick").add(g.axisGroup),g.chart.styledMode||d.attr({stroke:k,"stroke-width":l})),d[D?"attr":"animate"]({d:this.getMarkPath(b,c,h[0],d.strokeWidth()*e,g.horiz,f),opacity:a}))};g.prototype.renderLabel=function(c,a,e,g){var f= this.axis,q=f.horiz,m=f.options,h=this.label,b=m.labels,l=b.step;f=p(this.tickmarkOffset,f.tickmarkOffset);var d=c.x;c=c.y;var D=!0;h&&k(d)&&(h.xy=c=this.getLabelPosition(d,c,h,q,b,f,g,l),this.isFirst&&!this.isLast&&!m.showFirstLabel||this.isLast&&!this.isFirst&&!m.showLastLabel?D=!1:!q||b.step||b.rotation||a||0===e||this.handleOverflow(c),l&&g%l&&(D=!1),D&&k(c.y)?(c.opacity=e,h[this.isNewLabel?"attr":"animate"](c).show(!0),this.isNewLabel=!1):(h.hide(),this.isNewLabel=!0))};g.prototype.replaceMovedLabel= function(){var c=this.label,a=this.axis,e=a.reversed;if(c&&!this.isNew){var g=a.horiz?e?a.left:a.width+a.left:c.xy.x;e=a.horiz?c.xy.y:e?a.width+a.top:a.top;c.animate({x:g,y:e,opacity:0},void 0,c.destroy);delete this.label}a.isDirty=!0;this.label=this.movedLabel;delete this.movedLabel};return g}();"";return f});K(f,"Core/Axis/Axis.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/AxisDefaults.js"],f["Core/Color/Color.js"],f["Core/DefaultOptions.js"],f["Core/Foundation.js"],f["Core/Globals.js"], f["Core/Axis/Tick.js"],f["Core/Utilities.js"]],function(a,f,B,H,w,E,I,A){var u=a.animObject,n=H.defaultOptions,k=w.registerEventOptions,e=E.deg2rad,c=A.arrayMax,p=A.arrayMin,g=A.clamp,t=A.correctFloat,q=A.defined,F=A.destroyObjectProperties,y=A.erase,x=A.error,z=A.extend,m=A.fireEvent,h=A.isArray,b=A.isNumber,l=A.isString,d=A.merge,D=A.normalizeTickInterval,v=A.objectEach,r=A.pick,O=A.relativeLength,P=A.removeEvent,S=A.splat,N=A.syncTimeout,C=function(b,d){return D(d,void 0,void 0,r(b.options.allowDecimals, .5>d||void 0!==b.tickAmount),!!b.tickAmount)};a=function(){function a(b,d){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset= this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0;this.init(b,d)}a.prototype.init=function(d,c){var a=c.isX;this.chart=d;this.horiz=d.inverted&&!this.isZAxis?!a:a;this.isXAxis=a;this.coll=this.coll||(a?"xAxis":"yAxis");m(this, "init",{userOptions:c});this.opposite=r(c.opposite,this.opposite);this.side=r(c.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3);this.setOptions(c);var e=this.options,h=e.labels,l=e.type;this.userOptions=c;this.minPixelPadding=0;this.reversed=r(e.reversed,this.reversed);this.visible=e.visible;this.zoomEnabled=e.zoomEnabled;this.hasNames="category"===l||!0===e.categories;this.categories=e.categories||(this.hasNames?[]:void 0);this.names||(this.names=[],this.names.keys={});this.plotLinesAndBandsGroups= {};this.positiveValuesOnly=!!this.logarithmic;this.isLinked=q(e.linkedTo);this.ticks={};this.labelEdge=[];this.minorTicks={};this.plotLinesAndBands=[];this.alternateBands={};this.len=0;this.minRange=this.userMinRange=e.minRange||e.maxZoom;this.range=e.range;this.offset=e.offset||0;this.min=this.max=null;c=r(e.crosshair,S(d.options.tooltip.crosshairs)[a?0:1]);this.crosshair=!0===c?{}:c;-1===d.axes.indexOf(this)&&(a?d.axes.splice(d.xAxis.length,0,this):d.axes.push(this),d[this.coll].push(this));this.series= this.series||[];d.inverted&&!this.isZAxis&&a&&"undefined"===typeof this.reversed&&(this.reversed=!0);this.labelRotation=b(h.rotation)?h.rotation:void 0;k(this,e);m(this,"afterInit")};a.prototype.setOptions=function(b){this.options=d(f.defaultXAxisOptions,"yAxis"===this.coll&&f.defaultYAxisOptions,[f.defaultTopAxisOptions,f.defaultRightAxisOptions,f.defaultBottomAxisOptions,f.defaultLeftAxisOptions][this.side],d(n[this.coll],b));m(this,"afterSetOptions",{userOptions:b})};a.prototype.defaultLabelFormatter= function(d){var c=this.axis;d=this.chart.numberFormatter;var a=b(this.value)?this.value:NaN,e=c.chart.time,h=this.dateTimeLabelFormat,l=n.lang,g=l.numericSymbols;l=l.numericSymbolMagnitude||1E3;var r=c.logarithmic?Math.abs(a):c.tickInterval,m=g&&g.length;if(c.categories)var J=""+this.value;else if(h)J=e.dateFormat(h,a);else if(m&&1E3<=r)for(;m--&&"undefined"===typeof J;)c=Math.pow(l,m+1),r>=c&&0===10*a%c&&null!==g[m]&&0!==a&&(J=d(a/c,-1)+g[m]);"undefined"===typeof J&&(J=1E4<=Math.abs(a)?d(a,-1):d(a, -1,void 0,""));return J};a.prototype.getSeriesExtremes=function(){var d=this,c=d.chart,a;m(this,"getSeriesExtremes",null,function(){d.hasVisibleSeries=!1;d.dataMin=d.dataMax=d.threshold=null;d.softThreshold=!d.isXAxis;d.stacking&&d.stacking.buildStacks();d.series.forEach(function(e){if(e.visible||!c.options.chart.ignoreHiddenSeries){var h=e.options,l=h.threshold;d.hasVisibleSeries=!0;d.positiveValuesOnly&&0>=l&&(l=null);if(d.isXAxis){if(h=e.xData,h.length){h=d.logarithmic?h.filter(d.validatePositiveValue): h;a=e.getXExtremes(h);var g=a.min;var m=a.max;b(g)||g instanceof Date||(h=h.filter(b),a=e.getXExtremes(h),g=a.min,m=a.max);h.length&&(d.dataMin=Math.min(r(d.dataMin,g),g),d.dataMax=Math.max(r(d.dataMax,m),m))}}else if(e=e.applyExtremes(),b(e.dataMin)&&(g=e.dataMin,d.dataMin=Math.min(r(d.dataMin,g),g)),b(e.dataMax)&&(m=e.dataMax,d.dataMax=Math.max(r(d.dataMax,m),m)),q(l)&&(d.threshold=l),!h.softThreshold||d.positiveValuesOnly)d.softThreshold=!1}})});m(this,"afterGetSeriesExtremes")};a.prototype.translate= function(d,c,a,e,h,l){var g=this.linkedParent||this,m=e&&g.old?g.old.min:g.min,r=g.minPixelPadding;h=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&h)&&g.lin2val;var k=1,J=0;e=e&&g.old?g.old.transA:g.transA;e||(e=g.transA);a&&(k*=-1,J=g.len);g.reversed&&(k*=-1,J-=k*(g.sector||g.len));c?(l=(d*k+J-r)/e+m,h&&(l=g.lin2val(l))):(h&&(d=g.val2lin(d)),d=k*(d-m)*e,l=b(m)?(g.isRadial?d:t(d))+J+k*r+(b(l)?e*l:0):void 0);return l};a.prototype.toPixels=function(b,d){return this.translate(b, !1,!this.horiz,null,!0)+(d?0:this.pos)};a.prototype.toValue=function(b,d){return this.translate(b-(d?0:this.pos),!0,!this.horiz,null,!0)};a.prototype.getPlotLinePath=function(d){function c(b,d,c){if("pass"!==n&&bc)n?b=g(b,d,c):P=!0;return b}var a=this,e=a.chart,h=a.left,l=a.top,k=d.old,J=d.value,f=d.lineWidth,v=k&&e.oldChartHeight||e.chartHeight,D=k&&e.oldChartWidth||e.chartWidth,p=a.transB,q=d.translatedValue,n=d.force,t,z,y,O,P;d={value:J,lineWidth:f,old:k,force:n,acrossPanes:d.acrossPanes, translatedValue:q};m(this,"getPlotLinePath",d,function(d){q=r(q,a.translate(J,null,null,k));q=g(q,-1E5,1E5);t=y=Math.round(q+p);z=O=Math.round(v-q-p);b(q)?a.horiz?(z=l,O=v-a.bottom,t=y=c(t,h,h+a.width)):(t=h,y=D-a.right,z=O=c(z,l,l+a.height)):(P=!0,n=!1);d.path=P&&!n?null:e.renderer.crispLine([["M",t,z],["L",y,O]],f||1)});return d.path};a.prototype.getLinearTickPositions=function(b,d,c){var a=t(Math.floor(d/b)*b);c=t(Math.ceil(c/b)*b);var e=[],h;t(a+b)===a&&(h=20);if(this.single)return[d];for(d=a;d<= c;){e.push(d);d=t(d+b,h);if(d===l)break;var l=d}return e};a.prototype.getMinorTickInterval=function(){var b=this.options;return!0===b.minorTicks?r(b.minorTickInterval,"auto"):!1===b.minorTicks?null:b.minorTickInterval};a.prototype.getMinorTickPositions=function(){var b=this.options,d=this.tickPositions,c=this.minorTickInterval,a=this.pointRangePadding||0,e=this.min-a;a=this.max+a;var h=a-e,l=[];if(h&&h/c=this.minRange;var v=this.minRange;var D=(v-e+a)/2;D=[a-D,r(b.min,a-D)];f&&(D[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin);a=c(D);e=[a+v,r(b.max,a+v)];f&&(e[2]=d?d.log2lin(this.dataMax):this.dataMax);e=p(e);e-a=p)y=p,D=0;else if(this.dataMax<=p){var O=p;v=0}this.min=r(n,y,this.dataMin);this.max=r(z,O,this.dataMax)}a&&(this.positiveValuesOnly&&!d&&0>=Math.min(this.min,r(this.dataMin,this.min))&&x(10,1,c),this.min=t(a.log2lin(this.min),16),this.max=t(a.log2lin(this.max),16));this.range&&q(this.max)&&(this.userMin=this.min=n=Math.max(this.dataMin,this.minFromRange()),this.userMax=z=this.max,this.range=null);m(this,"foundExtremes"); this.beforePadding&&this.beforePadding();this.adjustForMinRange();!(k||this.axisPointRange||this.stacking&&this.stacking.usePercentage||l)&&q(this.min)&&q(this.max)&&(c=this.max-this.min)&&(!q(n)&&D&&(this.min-=c*D),!q(z)&&v&&(this.max+=c*v));b(this.userMin)||(b(e.softMin)&&e.softMinthis.max&&(this.max=z=e.softMax),b(e.ceiling)&&(this.max=Math.min(this.max,e.ceiling)));f&& q(this.dataMin)&&(p=p||0,!q(n)&&this.min=p?this.min=this.options.minRange?Math.min(p,this.max-this.minRange):p:!q(z)&&this.max>p&&this.dataMax<=p&&(this.max=this.options.minRange?Math.max(p,this.min+this.minRange):p));b(this.min)&&b(this.max)&&!this.chart.polar&&this.min>this.max&&(q(this.options.min)?this.max=this.min:q(this.options.max)&&(this.min=this.max));this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:l&&this.linkedParent&& !J&&g===this.linkedParent.options.tickPixelInterval?J=this.linkedParent.tickInterval:r(J,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,k?1:(this.max-this.min)*g/Math.max(this.len,g));if(h&&!d){var P=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(b){b.forceCrop=b.forceCropping&&b.forceCropping();b.processData(P)});m(this,"postProcessData",{hasExtemesChanged:P})}this.setAxisTranslation();m(this,"initialAxisTranslation"); this.pointRange&&!J&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));d=r(e.minTickInterval,this.dateTime&&!this.series.some(function(b){return b.noSharedTooltip})?this.closestPointRange:0);!J&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)c=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,b.units),this.min,this.max,b.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)c=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var l=b=this.tickInterval;l<=2*b;)if(c=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&c.length>this.tickAmount)this.tickInterval= C(this,l*=1.1);else break;else c=[this.min,this.max],x(19,!1,this.chart);c.length>this.len&&(c=[c[0],c.pop()],c[0]===c[1]&&(c.length=1));this.tickPositions=c;e&&(e=e.apply(this,[this.min,this.max]))&&(this.tickPositions=c=e)}this.paddedTicks=c.slice(0);this.trimTicks(c,h,a);this.isLinked||(this.single&&2>c.length&&!this.categories&&!this.series.some(function(b){return b.is("heatmap")&&"between"===b.options.pointPlacement})&&(this.min-=.5,this.max+=.5),d||e||this.adjustTickAmount());m(this,"afterSetTickPositions")}; a.prototype.trimTicks=function(b,d,c){var a=b[0],e=b[b.length-1],h=!this.isOrdinal&&this.minPointOffset||0;m(this,"trimTicks");if(!this.isLinked){if(d&&-Infinity!==a)this.min=a;else for(;this.min-h>b[0];)b.shift();if(c)this.max=e;else for(;this.max+hc&&(this.finalTickAmt=c,c=5);this.tickAmount=c};a.prototype.adjustTickAmount=function(){var d=this,c=d.finalTickAmt,a=d.max,e=d.min,h=d.options,l=d.tickPositions,g=d.tickAmount,m=d.thresholdAlignment,k=l&&l.length,f=r(d.threshold,d.softThreshold?0:null);var v=d.tickInterval;if(b(m)){var D=.5>m?Math.ceil(m*(g-1)):Math.floor(m*(g-1));h.reversed&&(D=g-1-D)}if(d.hasData()&& b(e)&&b(a)){m=function(){d.transA*=(k-1)/(g-1);d.min=h.startOnTick?l[0]:Math.min(e,l[0]);d.max=h.endOnTick?l[l.length-1]:Math.max(a,l[l.length-1])};if(b(D)&&b(d.threshold)){for(;l[D]!==f||l.length!==g||l[0]>e||l[l.length-1]d.threshold?l.unshift(t(l[0]-v)):l.push(t(l[l.length-1]+v));if(v>8*d.tickInterval)break;v*=2}m()}else if(k=c&&0g&&(d=g)),q(e)&&(hg&&(h=g))),c.displayBtn="undefined"!==typeof d||"undefined"!==typeof h,c.setExtremes(d,h,!1,void 0,{trigger:"zoom"});b.zoomed=!0});return b.zoomed};a.prototype.setAxisSize=function(){var b=this.chart, d=this.options,c=d.offsets||[0,0,0,0],a=this.horiz,e=this.width=Math.round(O(r(d.width,b.plotWidth-c[3]+c[1]),b.plotWidth)),h=this.height=Math.round(O(r(d.height,b.plotHeight-c[0]+c[2]),b.plotHeight)),l=this.top=Math.round(O(r(d.top,b.plotTop+c[0]),b.plotHeight,b.plotTop));d=this.left=Math.round(O(r(d.left,b.plotLeft+c[3]),b.plotWidth,b.plotLeft));this.bottom=b.chartHeight-h-l;this.right=b.chartWidth-e-d;this.len=Math.max(a?e:h,0);this.pos=a?d:l};a.prototype.getExtremes=function(){var b=this.logarithmic; return{min:b?t(b.lin2log(this.min)):this.min,max:b?t(b.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}};a.prototype.getThreshold=function(b){var d=this.logarithmic,c=d?d.lin2log(this.min):this.min;d=d?d.lin2log(this.max):this.max;null===b||-Infinity===b?b=c:Infinity===b?b=d:c>b?b=c:dd?b.align="right":195d&&(b.align="left")});return b.align};a.prototype.tickSize=function(b){var d=this.options,c=r(d["tick"===b?"tickWidth":"minorTickWidth"],"tick"===b&&this.isXAxis&&!this.categories?1:0),a=d["tick"===b?"tickLength":"minorTickLength"];if(c&&a){"inside"===d[b+"Position"]&&(a=-a);var e=[a,c]}b={tickSize:e};m(this,"afterTickSize",b);return b.tickSize};a.prototype.labelMetrics=function(){var b=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize, this.ticks[b]&&this.ticks[b].label)};a.prototype.unsquish=function(){var d=this.options.labels,c=this.horiz,a=this.tickInterval,h=this.len/(((this.categories?1:0)+this.max-this.min)/a),l=d.rotation,g=this.labelMetrics(),m=Math.max(this.max-this.min,0),k=function(b){var d=b/(h||1);d=1m&&Infinity!==b&&Infinity!==h&&m&&(d=Math.ceil(m/a));return t(d*a)},v=a,f,D,p=Number.MAX_VALUE;if(c){if(!d.staggerLines&&!d.step)if(b(l))var q=[l];else h=b){D=k(Math.abs(g.h/Math.sin(e*b)));var d=D+Math.abs(b/360);de.step)return e.rotation?0:(this.staggerLines||1)*this.len/h;if(!a){d=e.style.width; if(void 0!==d)return parseInt(String(d),10);if(l)return l-c.spacing[3]}return.33*c.chartWidth};a.prototype.renderUnsquish=function(){var b=this.chart,d=b.renderer,c=this.tickPositions,a=this.ticks,e=this.options.labels,h=e.style,g=this.horiz,m=this.getSlotWidth(),r=Math.max(1,Math.round(m-2*e.padding)),k={},v=this.labelMetrics(),f=h.textOverflow,D=0;l(e.rotation)||(k.rotation=e.rotation||0);c.forEach(function(b){b=a[b];b.movedLabel&&b.replaceMovedLabel();b&&b.label&&b.label.textPxLength>D&&(D=b.label.textPxLength)}); this.maxLabelLength=D;if(this.autoRotation)D>r&&D>v.h?k.rotation=this.labelRotation:this.labelRotation=0;else if(m){var p=r;if(!f){var q="clip";for(r=c.length;!g&&r--;){var n=c[r];if(n=a[n].label)n.styles&&"ellipsis"===n.styles.textOverflow?n.css({textOverflow:"clip"}):n.textPxLength>m&&n.css({width:m+"px"}),n.getBBox().height>this.len/c.length-(v.h-v.f)&&(n.specificTextOverflow="ellipsis")}}}k.rotation&&(p=D>.5*b.chartHeight?.33*b.chartHeight:D,f||(q="ellipsis"));if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))k.align= this.labelAlign;c.forEach(function(b){var d=(b=a[b])&&b.label,c=h.width,e={};d&&(d.attr(k),b.shortenLabel?b.shortenLabel():p&&!c&&"nowrap"!==h.whiteSpace&&(p=this.min&&b<=this.max||this.grid&&this.grid.isColumn)a[b]||(a[b]=new I(this,b)),c&&a[b].isNew&&a[b].render(d, !0,-1),a[b].render(d)};a.prototype.render=function(){var d=this,c=d.chart,a=d.logarithmic,e=d.options,h=d.isLinked,l=d.tickPositions,g=d.axisTitle,r=d.ticks,k=d.minorTicks,f=d.alternateBands,D=e.stackLabels,p=e.alternateGridColor,q=d.tickmarkOffset,n=d.axisLine,t=d.showAxis,z=u(c.renderer.globalAnimation),y,O;d.labelEdge.length=0;d.overlap=!1;[r,k,f].forEach(function(b){v(b,function(b){b.isActive=!1})});if(d.hasData()||h){var P=d.chart.hasRendered&&d.old&&b(d.old.min);d.minorTickInterval&&!d.categories&& d.getMinorTickPositions().forEach(function(b){d.renderMinorTick(b,P)});l.length&&(l.forEach(function(b,c){d.renderTick(b,c,P)}),q&&(0===d.min||d.single)&&(r[-1]||(r[-1]=new I(d,-1,null,!0)),r[-1].render(-1)));p&&l.forEach(function(b,e){O="undefined"!==typeof l[e+1]?l[e+1]+q:d.max-q;0===e%2&&bc&&(!g||p<=k)&&"undefined"!==typeof p&&n.push(p);p>k&&(m=!0);p=b}}}else c=this.lin2log(c),k=this.lin2log(k),a=g?e.getMinorTickInterval():p.tickInterval,a=H("auto"===a?null:a,this.minorAutoInterval,p.tickPixelInterval/ (g?5:1)*(k-c)/((g?f/e.tickPositions.length:f)||1)),a=B(a),n=e.getLinearTickPositions(a,c,k).map(this.log2lin),g||(this.minorAutoInterval=a/5);g||(e.tickInterval=a);return n};a.prototype.lin2log=function(a){return Math.pow(10,a)};a.prototype.log2lin=function(a){return Math.log(a)/Math.LN10};return a}();a.Additions=n})(w||(w={}));return w});K(f,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[f["Core/Utilities.js"]],function(a){var f=a.erase,B=a.extend,H=a.isNumber,w;(function(a){var w=[],A;a.compose= function(a,k){A||(A=a);-1===w.indexOf(k)&&(w.push(k),B(k.prototype,u.prototype));return k};var u=function(){function a(){}a.prototype.getPlotBandPath=function(a,e,c){void 0===c&&(c=this.options);var k=this.getPlotLinePath({value:e,force:!0,acrossPanes:c.acrossPanes}),g=[],f=this.horiz;e=!H(this.min)||!H(this.max)||athis.max&&e>this.max;a=this.getPlotLinePath({value:a,force:!0,acrossPanes:c.acrossPanes});c=1;if(a&&k){if(e){var q=a.toString()===k.toString();c=0}for(e=0;en-l?n:n-l);else if(p)h[b]=Math.max(f,m+ l+a>d?m:m+l);else return!1},F=function(b,d,a,c,l){var g;ld-e?g=!1:h[b]=ld-c/2?d-c-2:l-a/2;return g},G=function(b){var d=n;n=q;q=d;z=b},T=function(){!1!==y.apply(0,n)?!1!==F.apply(0,q)||z||(G(!0),T()):z?h.x=h.y=0:(G(!0),T())};(c.inverted||1d})&&(b=b.map(function(b){var a=d(b.anchorX,b.anchorY,b.point.isHeader,b.boxWidth,!1);return p(b,{target:a.y,x:a.x})}));c.cleanSplit();A(b,E);var H=R,ba=R;b.forEach(function(b){var d= b.x,a=b.boxWidth;b=b.isHeader;b||(c.outside&&R+dba&&(ba=R+d))});b.forEach(function(b){var d=b.x,a=b.anchorX,e=b.pos,h=b.point.isHeader;e={visibility:"undefined"===typeof e?"hidden":"inherit",x:d,y:e+B,anchorX:a,anchorY:b.anchorY};if(c.outside&&dd[0]?Math.max(Math.abs(d[0]),e.width-d[0]):Math.max(Math.abs(d[0]),e.width);c.height=0>d[1]?Math.max(Math.abs(d[1]), e.height-Math.abs(d[1])):Math.max(Math.abs(d[1]),e.height);this.tracker?this.tracker.attr(c):(this.tracker=a.renderer.rect(c).addClass("highcharts-tracker").add(a),b.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}};a.prototype.styledModeFormat=function(b){return b.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')};a.prototype.tooltipFooterHeaderFormatter=function(b,a){var d=b.series, c=d.tooltipOptions,e=d.xAxis,h=e&&e.dateTime;e={isFooter:a,labelConfig:b};var l=c.xDateFormat,m=c[a?"footerFormat":"headerFormat"];g(this,"headerFormatter",e,function(a){h&&!l&&q(b.key)&&(l=h.getXDateFormat(b.key,c.dateTimeLabelFormats));h&&l&&(b.point&&b.point.tooltipDateKeys||["key"]).forEach(function(b){m=m.replace("{point."+b+"}","{point."+b+":"+l+"}")});d.chart.styledMode&&(m=this.styledModeFormat(m));a.text=C(m,{point:b,series:d},this.chart)});return e.text};a.prototype.update=function(b){this.destroy(); y(!0,this.chart.options.tooltip.userOptions,b);this.init(this.chart,y(!0,this.options,b))};a.prototype.updatePosition=function(b){var a=this.chart,d=this.options,c=a.pointer,e=this.getLabel();c=c.getChartPosition();var h=(d.positioner||this.getPosition).call(this,e.width,e.height,b),g=b.plotX+a.plotLeft;b=b.plotY+a.plotTop;if(this.outside){d=d.borderWidth+2*this.distance;this.renderer.setSize(e.width+d,e.height+d,!1);if(1!==c.scaleX||1!==c.scaleY)k(this.container,{transform:"scale("+c.scaleX+", "+ c.scaleY+")"}),g*=c.scaleX,b*=c.scaleY;g+=c.left-h.x;b+=c.top-h.y}this.move(Math.round(h.x),Math.round(h.y||0),g,b)};return a}();"";return a});K(f,"Core/Series/Point.js",[f["Core/Renderer/HTML/AST.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/DefaultOptions.js"],f["Core/FormatUtilities.js"],f["Core/Utilities.js"]],function(a,f,B,H,w){var C=f.animObject,I=B.defaultOptions,A=H.format,u=w.addEvent,n=w.defined,k=w.erase,e=w.extend,c=w.fireEvent,p=w.getNestedProperty,g=w.isArray,t=w.isFunction, q=w.isNumber,F=w.isObject,y=w.merge,x=w.objectEach,z=w.pick,m=w.syncTimeout,h=w.removeEvent,b=w.uniqueKey;f=function(){function l(){this.colorIndex=this.category=void 0;this.formatPrefix="point";this.id=void 0;this.isNull=!1;this.percentage=this.options=this.name=void 0;this.selected=!1;this.total=this.series=void 0;this.visible=!0;this.x=void 0}l.prototype.animateBeforeDestroy=function(){var b=this,a={x:b.startXPos,opacity:0},c=b.getGraphicalProps();c.singular.forEach(function(d){b[d]=b[d].animate("dataLabel"=== d?{x:b[d].startXPos,y:b[d].startYPos,opacity:0}:a)});c.plural.forEach(function(d){b[d].forEach(function(d){d.element&&d.animate(e({x:b.startXPos},d.startYPos?{x:d.startXPos,y:d.startYPos}:{}))})})};l.prototype.applyOptions=function(b,a){var d=this.series,c=d.options.pointValKey||d.pointValKey;b=l.prototype.optionsToObject.call(this,b);e(this,b);this.options=this.options?e(this.options,b):b;b.group&&delete this.group;b.dataLabels&&delete this.dataLabels;c&&(this.y=l.prototype.getNestedProperty.call(this, c));this.formatPrefix=(this.isNull=z(this.isValid&&!this.isValid(),null===this.x||!q(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&"undefined"===typeof a&&d.xAxis&&d.xAxis.hasNames&&(this.x=d.xAxis.nameToX(this));"undefined"===typeof this.x&&d?this.x="undefined"===typeof a?d.autoIncrement():a:q(b.x)&&d.options.relativeXValue&&(this.x=d.autoIncrement(b.x));return this};l.prototype.destroy=function(){function b(){if(a.graphic||a.dataLabel||a.dataLabels)h(a),a.destroyElements(); for(f in a)a[f]=null}var a=this,c=a.series,e=c.chart;c=c.options.dataSorting;var l=e.hoverPoints,g=C(a.series.chart.renderer.globalAnimation),f;a.legendItem&&e.legend.destroyItem(a);l&&(a.setState(),k(l,a),l.length||(e.hoverPoints=null));if(a===e.hoverPoint)a.onMouseOut();c&&c.enabled?(this.animateBeforeDestroy(),m(b,g.duration)):b();e.pointCount--};l.prototype.destroyElements=function(b){var d=this;b=d.getGraphicalProps(b);b.singular.forEach(function(b){d[b]=d[b].destroy()});b.plural.forEach(function(b){d[b].forEach(function(b){b.element&& b.destroy()});delete d[b]})};l.prototype.firePointEvent=function(b,a,e){var d=this,h=this.series.options;(h.point.events[b]||d.options&&d.options.events&&d.options.events[b])&&d.importEvents();"click"===b&&h.allowPointSelect&&(e=function(b){d.select&&d.select(null,b.ctrlKey||b.metaKey||b.shiftKey)});c(d,b,a,e)};l.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+ ("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")};l.prototype.getGraphicalProps=function(b){var d=this,a=[],c={singular:[],plural:[]},e;b=b||{graphic:1,dataLabel:1};b.graphic&&a.push("graphic","upperGraphic","shadowGroup");b.dataLabel&&a.push("dataLabel","dataLabelUpper","connector");for(e=a.length;e--;){var h=a[e];d[h]&& c.singular.push(h)}["dataLabel","connector"].forEach(function(a){var e=a+"s";b[a]&&d[e]&&c.plural.push(e)});return c};l.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}};l.prototype.getNestedProperty=function(b){if(b)return 0===b.indexOf("custom.")?p(b,this.options):this[b]};l.prototype.getZone=function(){var b=this.series, a=b.zones;b=b.zoneAxis||"y";var c,e=0;for(c=a[e];this[b]>=c.value;)c=a[++e];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=c&&c.color&&!this.options.color?c.color:this.nonZonedColor;return c};l.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType};l.prototype.init=function(d,a,e){this.series=d;this.applyOptions(a,e);this.id=n(this.id)?this.id:b();this.resolveColor();d.chart.pointCount++;c(this,"afterInit"); return this};l.prototype.optionsToObject=function(b){var d=this.series,a=d.options.keys,c=a||d.pointArrayMap||["y"],e=c.length,h={},m=0,f=0;if(q(b)||null===b)h[c[0]]=b;else if(g(b))for(!a&&b.length>e&&(d=typeof b[0],"string"===d?h.name=b[0]:"number"===d&&(h.x=b[0]),m++);fg+f&&(x=g+f),zm+k&&(z=m+k),this.hasDragged=Math.sqrt(Math.pow(p-x,2)+Math.pow(n-z,2)),10d.options.findNearestPointBy.indexOf("y");d= d.searchPoint(b,a);if((a=t(d,!0)&&d.series)&&!(a=!t(h,!0))){a=h.distX-d.distX;var e=h.dist-d.dist,l=(d.series.group&&d.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);a=0<(0!==a&&c?a:0!==e?e:0!==l?l:h.series.index>d.series.index?-1:1)}a&&(h=d)});return h};a.prototype.getChartCoordinatesFromPoint=function(a,c){var b=a.series,e=b.xAxis;b=b.yAxis;var d=a.shapeArgs;if(e&&b){var h=y(a.clientX,a.plotX),m=a.plotY||0;a.isNode&&d&&g(d.x)&&g(d.y)&&(h=d.x,m=d.y);return c?{chartX:b.len+b.pos-m,chartY:e.len+ e.pos-h}:{chartX:h+e.pos,chartY:m+b.pos}}if(d&&d.x&&d.y)return{chartX:d.x,chartY:d.y}};a.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var a=this.chart.container,c=F(a);this.chartPosition={left:c.left,top:c.top,scaleX:1,scaleY:1};var b=a.offsetWidth;a=a.offsetHeight;2v.max&&(b=v.max-x,u=!0);u?(M-=.8*(M-f[l][0]),"number"===typeof F&&(F-=.8*(F-f[l][1])), c()):f[l]=[M,F];q||(g[l]=G-n,g[p]=x);g=q?1/z:z;d[p]=x;d[l]=b;e[q?a?"scaleY":"scaleX":"scale"+m]=z;e["translate"+m]=g*n+(M-g*t)};a.prototype.reset=function(a,c){var b=this.chart,e=b.hoverSeries,d=b.hoverPoint,h=b.hoverPoints,g=b.tooltip,f=g&&g.shared?h:d;a&&f&&x(f).forEach(function(b){b.series.isCartesian&&"undefined"===typeof b.plotX&&(a=!1)});if(a)g&&f&&x(f).length&&(g.refresh(f),g.shared&&h?h.forEach(function(b){b.setState(b.state,!0);b.series.isCartesian&&(b.series.xAxis.crosshair&&b.series.xAxis.drawCrosshair(null, b),b.series.yAxis.crosshair&&b.series.yAxis.drawCrosshair(null,b))}):d&&(d.setState(d.state,!0),b.axes.forEach(function(b){b.crosshair&&d.series[b.coll]===b&&b.drawCrosshair(null,d)})));else{if(d)d.onMouseOut();h&&h.forEach(function(b){b.setState()});if(e)e.onMouseOut();g&&g.hide(c);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());b.axes.forEach(function(b){b.hideCrosshair()});this.hoverX=b.hoverPoints=b.hoverPoint=null}};a.prototype.runPointActions=function(e,h){var b=this.chart, g=b.tooltip&&b.tooltip.options.enabled?b.tooltip:void 0,d=g?g.shared:!1,f=h||b.hoverPoint,k=f&&f.series||b.hoverSeries;h=this.getHoverData(f,k,b.series,(!e||"touchmove"!==e.type)&&(!!h||k&&k.directTouch&&this.isDirectTouch),d,e);f=h.hoverPoint;k=h.hoverSeries;var m=h.hoverPoints;h=k&&k.tooltipOptions.followPointer&&!k.tooltipOptions.split;var p=d&&k&&!k.noSharedTooltip;if(f&&(f!==b.hoverPoint||g&&g.isHidden)){(b.hoverPoints||[]).forEach(function(b){-1===m.indexOf(b)&&b.setState()});if(b.hoverSeries!== k)k.onMouseOver();this.applyInactiveState(m);(m||[]).forEach(function(b){b.setState("hover")});b.hoverPoint&&b.hoverPoint.firePointEvent("mouseOut");if(!f.series)return;b.hoverPoints=m;b.hoverPoint=f;f.firePointEvent("mouseOver",void 0,function(){g&&f&&g.refresh(p?m:f,e)})}else h&&g&&!g.isHidden&&(d=g.getAnchor([{}],e),b.isInsidePlot(d[0],d[1],{visiblePlotOnly:!0})&&g.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=A(b.container.ownerDocument,"mousemove",function(b){var d= C[a.hoverChartIndex];if(d)d.pointer.onDocumentMouseMove(b)}),this.eventsToUnbind.push(this.unDocMouseMove));b.axes.forEach(function(a){var d=y((a.crosshair||{}).snap,!0),h;d&&((h=b.hoverPoint)&&h.series[a.coll]===a||(h=c(m,function(b){return b.series&&b.series[a.coll]===a})));h||!d?a.drawCrosshair(e,h):a.hideCrosshair()})};a.prototype.scaleGroups=function(a,c){var b=this.chart;b.series.forEach(function(e){var d=a||e.getPlotBox();e.group&&(e.xAxis&&e.xAxis.zoomEnabled||b.mapView)&&(e.group.attr(d), e.markerGroup&&(e.markerGroup.attr(d),e.markerGroup.clip(c?b.clipRect:null)),e.dataLabelsGroup&&e.dataLabelsGroup.attr(d))});b.clipRect.attr(c||b.clipBox)};a.prototype.setDOMEvents=function(){var c=this,e=this.chart.container,b=e.ownerDocument;e.onmousedown=this.onContainerMouseDown.bind(this);e.onmousemove=this.onContainerMouseMove.bind(this);e.onclick=this.onContainerClick.bind(this);this.eventsToUnbind.push(A(e,"mouseenter",this.onContainerMouseEnter.bind(this)));this.eventsToUnbind.push(A(e,"mouseleave", this.onContainerMouseLeave.bind(this)));a.unbindDocumentMouseUp||(a.unbindDocumentMouseUp=A(b,"mouseup",this.onDocumentMouseUp.bind(this)));for(var g=this.chart.renderTo.parentElement;g&&"BODY"!==g.tagName;)this.eventsToUnbind.push(A(g,"scroll",function(){delete c.chartPosition})),g=g.parentElement;f.hasTouch&&(this.eventsToUnbind.push(A(e,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(A(e,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})), a.unbindDocumentTouchEnd||(a.unbindDocumentTouchEnd=A(b,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))};a.prototype.setHoverChartIndex=function(){var c=this.chart,e=f.charts[y(a.hoverChartIndex,-1)];if(e&&e!==c)e.pointer.onContainerMouseLeave({relatedTarget:c.container});e&&e.mouseIsDown||(a.hoverChartIndex=c.index)};a.prototype.touch=function(a,c){var b=this.chart,e;this.setHoverChartIndex();if(1===a.touches.length)if(a=this.normalize(a),(e=b.isInsidePlot(a.chartX-b.plotLeft,a.chartY- b.plotTop,{visiblePlotOnly:!0}))&&!b.openMenu){c&&this.runPointActions(a);if("touchmove"===a.type){c=this.pinchDown;var d=c[0]?4<=Math.sqrt(Math.pow(c[0].chartX-a.chartX,2)+Math.pow(c[0].chartY-a.chartY,2)):!1}y(d,!0)&&this.pinch(a)}else c&&this.reset();else 2===a.touches.length&&this.pinch(a)};a.prototype.touchSelect=function(a){return!(!this.chart.options.chart.zoomBySingleTouch||!a.touches||1!==a.touches.length)};a.prototype.zoomOption=function(a){var c=this.chart,b=c.options.chart;c=c.inverted; var e=b.zoomType||"";/touch/.test(a.type)&&(e=y(b.pinchType,e));this.zoomX=a=/x/.test(e);this.zoomY=b=/y/.test(e);this.zoomHor=a&&!c||b&&c;this.zoomVert=b&&!c||a&&c;this.hasZoom=a||b};return a}();"";return a});K(f,"Core/MSPointer.js",[f["Core/Globals.js"],f["Core/Pointer.js"],f["Core/Utilities.js"]],function(a,f,B){function C(){var a=[];a.item=function(a){return this[a]};c(g,function(c){a.push({pageX:c.pageX,pageY:c.pageY,target:c.target})});return a}function w(a,c,e,g){var k=I[f.hoverChartIndex|| NaN];"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!k||(k=k.pointer,g(a),k[c]({type:e,target:a.currentTarget,preventDefault:u,touches:C()}))}var E=this&&this.__extends||function(){var a=function(c,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return a(c,e)};return function(c,e){function g(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(g.prototype=e.prototype, new g)}}(),I=a.charts,A=a.doc,u=a.noop,n=a.win,k=B.addEvent,e=B.css,c=B.objectEach,p=B.removeEvent,g={},t=!!n.PointerEvent;return function(c){function f(){return null!==c&&c.apply(this,arguments)||this}E(f,c);f.isRequired=function(){return!(a.hasTouch||!n.PointerEvent&&!n.MSPointerEvent)};f.prototype.batchMSEvents=function(a){a(this.chart.container,t?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,t?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(A,t? "pointerup":"MSPointerUp",this.onDocumentPointerUp)};f.prototype.destroy=function(){this.batchMSEvents(p);c.prototype.destroy.call(this)};f.prototype.init=function(a,g){c.prototype.init.call(this,a,g);this.hasZoom&&e(a.container,{"-ms-touch-action":"none","touch-action":"none"})};f.prototype.onContainerPointerDown=function(a){w(a,"onContainerTouchStart","touchstart",function(a){g[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})};f.prototype.onContainerPointerMove=function(a){w(a, "onContainerTouchMove","touchmove",function(a){g[a.pointerId]={pageX:a.pageX,pageY:a.pageY};g[a.pointerId].target||(g[a.pointerId].target=a.currentTarget)})};f.prototype.onDocumentPointerUp=function(a){w(a,"onDocumentTouchEnd","touchend",function(a){delete g[a.pointerId]})};f.prototype.setDOMEvents=function(){c.prototype.setDOMEvents.call(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(k)};return f}(f)});K(f,"Core/Legend/Legend.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/FormatUtilities.js"], f["Core/Globals.js"],f["Core/Series/Point.js"],f["Core/Renderer/RendererUtilities.js"],f["Core/Utilities.js"]],function(a,f,B,H,w,E){var C=a.animObject,A=a.setAnimation,u=f.format;a=B.isFirefox;var n=B.marginNames;B=B.win;var k=w.distribute,e=E.addEvent,c=E.createElement,p=E.css,g=E.defined,t=E.discardElement,q=E.find,F=E.fireEvent,y=E.isNumber,x=E.merge,z=E.pick,m=E.relativeLength,h=E.stableSort,b=E.syncTimeout;w=E.wrap;E=function(){function a(b,a){this.allItems=[];this.contentGroup=this.box=void 0; this.display=!1;this.group=void 0;this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0;this.options=void 0;this.padding=0;this.pages=[];this.proximate=!1;this.scrollGroup=void 0;this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0;this.chart=b;this.init(b,a)}a.prototype.init=function(b,a){this.chart= b;this.setOptions(a);a.enabled&&(this.render(),e(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=e(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())};a.prototype.setOptions=function(b){var a=z(b.padding,8);this.options=b;this.chart.styledMode||(this.itemStyle=b.itemStyle,this.itemHiddenStyle=x(this.itemStyle,b.itemHiddenStyle));this.itemMarginTop=b.itemMarginTop|| 0;this.itemMarginBottom=b.itemMarginBottom||0;this.padding=a;this.initialItemY=a-5;this.symbolWidth=z(b.symbolWidth,16);this.pages=[];this.proximate="proximate"===b.layout&&!this.chart.inverted;this.baseline=void 0};a.prototype.update=function(b,a){var d=this.chart;this.setOptions(x(!0,this.options,b));this.destroy();d.isDirtyLegend=d.isDirtyBox=!0;z(a,!0)&&d.redraw();F(this,"afterUpdate")};a.prototype.colorizeItem=function(b,a){b.legendGroup[a?"removeClass":"addClass"]("highcharts-legend-item-hidden"); if(!this.chart.styledMode){var d=this.options,c=b.legendItem,e=b.legendLine,h=b.legendSymbol,g=this.itemHiddenStyle.color;d=a?d.itemStyle.color:g;var l=a?b.color||g:g,f=b.options&&b.options.marker,k={fill:l};c&&c.css({fill:d,color:d});e&&e.attr({stroke:l});h&&(f&&h.isMarker&&(k=b.pointAttribs(),a||(k.stroke=k.fill=g)),h.attr(k))}F(this,"afterColorizeItem",{item:b,visible:a})};a.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()}; a.prototype.positionItem=function(b){var a=this,d=this.options,c=d.symbolPadding,e=!d.rtl,h=b._legendItemPos;d=h[0];h=h[1];var l=b.checkbox,f=b.legendGroup;f&&f.element&&(c={translateX:e?d:this.legendWidth-d-2*c-4,translateY:h},e=function(){F(a,"afterPositionItem",{item:b})},g(f.translateY)?f.animate(c,void 0,e):(f.attr(c),e()));l&&(l.x=d,l.y=h)};a.prototype.destroyItem=function(b){var a=b.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(a){b[a]&&(b[a]=b[a].destroy())}); a&&t(b.checkbox)};a.prototype.destroy=function(){function b(b){this[b]&&(this[b]=this[b].destroy())}this.getAllItems().forEach(function(a){["legendItem","legendGroup"].forEach(b,a)});"clipRect up down pager nav box title group".split(" ").forEach(b,this);this.display=null};a.prototype.positionCheckboxes=function(){var b=this.group&&this.group.alignAttr,a=this.clipHeight||this.legendHeight,c=this.titleHeight;if(b){var e=b.translateY;this.allItems.forEach(function(d){var h=d.checkbox;if(h){var g=e+ c+h.y+(this.scrollOffset||0)+3;p(h,{left:b.translateX+d.checkboxOffset+h.x-20+"px",top:g+"px",display:this.proximate||g>e-6&&g1.5*d?a.height:d))};a.prototype.layoutItem=function(b){var a=this.options, c=this.padding,d="horizontal"===a.layout,e=b.itemHeight,h=this.itemMarginBottom,g=this.itemMarginTop,l=d?z(a.itemDistance,20):0,f=this.maxLegendWidth;a=a.alignColumns&&this.totalItemWidth>f?this.maxItemWidth:b.itemWidth;d&&this.itemX-c+a>f&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=g+this.lastLineHeight+h),this.lastLineHeight=0);this.lastItemY=g+this.itemY+h;this.lastLineHeight=Math.max(e,this.lastLineHeight);b._legendItemPos=[this.itemX,this.itemY];d?this.itemX+=a:(this.itemY+=g+e+h,this.lastLineHeight= e);this.offsetWidth=this.widthOption||Math.max((d?this.itemX-c-(b.checkbox?0:l):a)+c,this.offsetWidth)};a.prototype.getAllItems=function(){var b=[];this.chart.series.forEach(function(a){var c=a&&a.options;a&&z(c.showInLegend,g(c.linkedTo)?!1:void 0,!0)&&(b=b.concat(a.legendItems||("point"===c.legendType?a.data:a)))});F(this,"afterGetAllItems",{allItems:b});return b};a.prototype.getAlignment=function(){var b=this.options;return this.proximate?b.align.charAt(0)+"tv":b.floating?"":b.align.charAt(0)+ b.verticalAlign.charAt(0)+b.layout.charAt(0)};a.prototype.adjustMargins=function(b,a){var c=this.chart,d=this.options,e=this.getAlignment();e&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(h,f){h.test(e)&&!g(b[f])&&(c[n[f]]=Math.max(c[n[f]],c.legend[(f+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][f]*d[f%2?"x":"y"]+z(d.margin,12)+a[f]+(c.titleOffset[f]||0)))})};a.prototype.proximatePositions=function(){var b=this.chart,a=[],c="left"===this.options.align;this.allItems.forEach(function(d){var e; var h=c;if(d.yAxis){d.xAxis.options.reversed&&(h=!h);d.points&&(e=q(h?d.points:d.points.slice(0).reverse(),function(b){return y(b.plotY)}));h=this.itemMarginTop+d.legendItem.getBBox().height+this.itemMarginBottom;var g=d.yAxis.top-b.plotTop;d.visible?(e=e?e.plotY:d.yAxis.height,e+=g-.3*h):e=g+d.yAxis.height;a.push({target:e,size:h,item:d})}},this);k(a,b.plotHeight).forEach(function(a){a.item._legendItemPos&&(a.item._legendItemPos[1]=b.plotTop-b.spacing[0]+a.pos)})};a.prototype.render=function(){var b= this.chart,a=b.renderer,c=this.options,e=this.padding,g=this.getAllItems(),f=this.group,l=this.box;this.itemX=e;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=m(c.width,b.spacingBox.width-e);var k=b.spacingBox.width-2*e-c.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(k/=2);this.maxLegendWidth=this.widthOption||k;f||(this.group=f=a.g("legend").addClass(c.className||"").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(f),this.scrollGroup= a.g().add(this.contentGroup));this.renderTitle();h(g,function(b,a){return(b.options&&b.options.legendIndex||0)-(a.options&&a.options.legendIndex||0)});c.reversed&&g.reverse();this.allItems=g;this.display=k=!!g.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;g.forEach(this.renderItem,this);g.forEach(this.layoutItem,this);g=(this.widthOption||this.offsetWidth)+e;var p=this.lastItemY+this.lastLineHeight+this.titleHeight;p=this.handleOverflow(p);p+=e;l||(this.box=l= a.rect().addClass("highcharts-legend-box").attr({r:c.borderRadius}).add(f));b.styledMode||l.attr({stroke:c.borderColor,"stroke-width":c.borderWidth||0,fill:c.backgroundColor||"none"}).shadow(c.shadow);if(0h&&!1!==k.enabled?(this.clipHeight=G=Math.max(h-20-this.titleHeight-f,0),this.currentPage=z(this.currentPage,1),this.fullHeight=b,q.forEach(function(b,a){var c=b._legendItemPos[1],d=Math.round(b.legendItem.getBBox().height),e=n.length;if(!e||c-n[e-1]>G&&(x||c)!==n[e-1])n.push(x||c),e++;b.pageIx=e-1;x&&(q[a-1].pageIx=e- 1);a===q.length-1&&c+d-n[e-1]>G&&d<=G&&(n.push(c),b.pageIx=e);c!==x&&(x=c)}),F||(F=a.clipRect=d.clipRect(0,f,9999,0),a.contentGroup.clip(F)),t(G),M||(this.nav=M=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,p,p).add(M),y("upTracker").on("click",function(){a.scroll(-1,m)}),this.pager=d.text("",15,10).addClass("highcharts-legend-navigation"),!c.styledMode&&k.style&&this.pager.css(k.style),this.pager.add(M),this.down=d.symbol("triangle-down",0,0,p,p).add(M),y("downTracker").on("click", function(){a.scroll(1,m)})),a.scroll(0),b=h):M&&(t(),this.nav=M.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return b};a.prototype.scroll=function(a,c){var d=this,e=this.chart,h=this.pages,g=h.length,f=this.clipHeight,l=this.options.navigation,k=this.pager,m=this.padding,p=this.currentPage+a;p>g&&(p=g);0=Math.max(l+h,p.pos)&&f<=Math.min(l+h+e.width,p.pos+p.len)||(b.isInsidePlot=!1)}!c.ignoreY&&b.isInsidePlot&&(d=m&&(d?m.xAxis:m.yAxis)||{pos:g,len:Infinity},c=c.paneCoordinates?d.pos+a:g+a,c>=Math.max(k+g,d.pos)&&c<=Math.min(k+g+e.height,d.pos+d.len)||(b.isInsidePlot=!1));Q(this,"afterIsInsidePlot", b);return b.isInsidePlot};a.prototype.redraw=function(b){Q(this,"beforeRedraw");var a=this.hasCartesianSeries?this.axes:this.colorAxis||[],c=this.series,d=this.pointer,e=this.legend,h=this.userOptions.legend,g=this.renderer,f=g.isHidden(),l=[],k=this.isDirtyBox,m=this.isDirtyLegend;this.setResponsive&&this.setResponsive(!1);F(this.hasRendered?b:!1,this);f&&this.temporaryDisplay();this.layOutTitles();for(b=c.length;b--;){var p=c[b];if(p.options.stacking||p.options.centerInCategory){var G=!0;if(p.isDirty){var n= !0;break}}}if(n)for(b=c.length;b--;)p=c[b],p.options.stacking&&(p.isDirty=!0);c.forEach(function(b){b.isDirty&&("point"===b.options.legendType?("function"===typeof b.updateTotals&&b.updateTotals(),m=!0):h&&(h.labelFormatter||h.labelFormat)&&(m=!0));b.isDirtyData&&Q(b,"updatedData")});m&&e&&e.options.enabled&&(e.render(),this.isDirtyLegend=!1);G&&this.getStacks();a.forEach(function(b){b.updateNames();b.setScale()});this.getMargins();a.forEach(function(b){b.isDirty&&(k=!0)});a.forEach(function(b){var a= b.min+","+b.max;b.extKey!==a&&(b.extKey=a,l.push(function(){Q(b,"afterSetExtremes",K(b.eventArgs,b.getExtremes()));delete b.eventArgs}));(k||G)&&b.redraw()});k&&this.drawChartBox();Q(this,"predraw");c.forEach(function(b){(k||b.isDirty)&&b.visible&&b.redraw();b.isDirtyData=!1});d&&d.reset(!0);g.draw();Q(this,"redraw");Q(this,"render");f&&this.temporaryDisplay(!0);l.forEach(function(b){b.call()})};a.prototype.get=function(b){function a(a){return a.id===b||a.options&&a.options.id===b}for(var c=this.series, d=da(this.axes,a)||da(this.series,a),e=0;!d&&e=f&&d<=l||k||!Y(d))m=!0;c[k?"zoomX":"zoomY"]&&m&&(h=g.zoom(b.min, b.max),g.displayBtn&&(e=!0))});var g=a.resetZoomButton;e&&!g?a.showResetZoom():!e&&M(g)&&(a.resetZoomButton=g.destroy());h&&a.redraw(R(a.options.chart.animation,b&&b.animation,100>a.pointCount))};a.prototype.pan=function(b,a){var c=this,d=c.hoverPoints;a="object"===typeof a?a:{enabled:a,type:"x"};var e=c.options.chart,h=c.options.mapNavigation&&c.options.mapNavigation.enabled;e&&e.panning&&(e.panning=a);var g=a.type,f;Q(this,"pan",{originalEvent:b},function(){d&&d.forEach(function(b){b.setState()}); var a=c.xAxis;"xy"===g?a=a.concat(c.yAxis):"y"===g&&(a=c.yAxis);var e={};a.forEach(function(a){if(a.options.panningEnabled&&!a.options.isInternal){var d=a.horiz,l=b[d?"chartX":"chartY"];d=d?"mouseDownX":"mouseDownY";var k=c[d],m=a.minPointOffset||0,p=a.reversed&&!c.inverted||!a.reversed&&c.inverted?-1:1,G=a.getExtremes(),n=a.toValue(k-l,!0)+m*p,q=a.toValue(k+a.len-l,!0)-(m*p||a.isXAxis&&a.pointRangePadding||0),r=q=p&&n<=q&&(a.setExtremes(k,n,!1,!1,{trigger:"pan"}),c.resetZoomButton||h||k===p||n===q||!g.match("y")||(c.showResetZoom(),a.displayBtn=!1),f=!0),e[d]=l)}});Z(e,function(b,a){c[a]=b});f&&c.redraw(!1);N(c.container,{cursor:"move"})})};return a}();K(a.prototype,{callbacks:[],collectionsWithInit:{xAxis:[a.prototype.addAxis,[!0]],yAxis:[a.prototype.addAxis,[!1]],series:[a.prototype.addSeries]}, collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}); "";return a});K(f,"Core/Legend/LegendSymbol.js",[f["Core/Utilities.js"]],function(a){var f=a.merge,B=a.pick,H;(function(a){a.drawLineMarker=function(a){var w=this.options,A=a.symbolWidth,u=a.symbolHeight,n=u/2,k=this.chart.renderer,e=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var c={},p=w.marker;this.chart.styledMode||(c={"stroke-width":w.lineWidth||0},w.dashStyle&&(c.dashstyle=w.dashStyle));this.legendLine=k.path([["M",0,a],["L",A,a]]).addClass("highcharts-graph").attr(c).add(e); p&&!1!==p.enabled&&A&&(w=Math.min(B(p.radius,n),n),0===this.symbol.indexOf("url")&&(p=f(p,{width:u,height:u}),w=0),this.legendSymbol=A=k.symbol(this.symbol,A/2-w,a-w,2*w,2*w,p).addClass("highcharts-point").add(e),A.isMarker=!0)};a.drawRectangle=function(a,f){var w=a.symbolHeight,u=a.options.squareSymbol;f.legendSymbol=this.chart.renderer.rect(u?(a.symbolWidth-w)/2:0,a.baseline-w+1,u?w:a.symbolWidth,w,B(a.options.symbolRadius,w/2)).addClass("highcharts-point").attr({zIndex:3}).add(f.legendGroup)}})(H|| (H={}));return H});K(f,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var a=this.series.chart.numberFormatter; return"number"!==typeof this.y?"":a(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"}});K(f,"Core/Series/Series.js", [f["Core/Animation/AnimationUtilities.js"],f["Core/DefaultOptions.js"],f["Core/Foundation.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Core/Series/Point.js"],f["Core/Series/SeriesDefaults.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/SVGElement.js"],f["Core/Utilities.js"]],function(a,f,B,H,w,E,I,A,u,n){var k=a.animObject,e=a.setAnimation,c=f.defaultOptions,p=B.registerEventOptions,g=H.hasTouch,t=H.svg,q=H.win,F=A.seriesTypes,y=n.addEvent,x=n.arrayMax,z=n.arrayMin,m= n.clamp,h=n.cleanRecursively,b=n.correctFloat,l=n.defined,d=n.erase,D=n.error,v=n.extend,r=n.find,C=n.fireEvent,P=n.getNestedProperty,S=n.isArray,N=n.isNumber,Y=n.isString,X=n.merge,J=n.objectEach,L=n.pick,K=n.removeEvent,da=n.splat,Q=n.syncTimeout;a=function(){function a(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i= void 0}a.prototype.init=function(b,a){C(this,"init",{options:a});var c=this,d=b.series;this.eventsToUnbind=[];c.chart=b;c.options=c.setOptions(a);a=c.options;c.linkedSeries=[];c.bindAxes();v(c,{name:a.name,state:"",visible:!1!==a.visible,selected:!0===a.selected});p(this,a);var e=a.events;if(e&&e.click||a.point&&a.point.events&&a.point.events.click||a.allowPointSelect)b.runTrackerClick=!0;c.getColor();c.getSymbol();c.parallelArrays.forEach(function(b){c[b+"Data"]||(c[b+"Data"]=[])});c.isCartesian&& (b.hasCartesianSeries=!0);var h;d.length&&(h=d[d.length-1]);c._i=L(h&&h._i,-1)+1;c.opacity=c.options.opacity;b.orderSeries(this.insert(d));a.dataSorting&&a.dataSorting.enabled?c.setDataSortingOptions():c.points||c.data||c.setData(a.data,!1);C(this,"afterInit")};a.prototype.is=function(b){return F[b]&&this instanceof F[b]};a.prototype.insert=function(b){var a=this.options.index,c;if(N(a)){for(c=b.length;c--;)if(a>=L(b[c].options.index,b[c]._i)){b.splice(c+1,0,this);break}-1===c&&b.unshift(this);c+= 1}else b.push(this);return L(c,b.length-1)};a.prototype.bindAxes=function(){var b=this,a=b.options,c=b.chart,d;C(this,"bindAxes",null,function(){(b.axisTypes||[]).forEach(function(e){var h=0;c[e].forEach(function(c){d=c.options;if(a[e]===h&&!d.isInternal||"undefined"!==typeof a[e]&&a[e]===d.id||"undefined"===typeof a[e]&&0===d.index)b.insert(c.series),b[e]=c,c.isDirty=!0;d.isInternal||h++});b[e]||b.optionalAxis===e||D(18,!0,c)})});C(this,"afterBindAxes")};a.prototype.updateParallelArrays=function(b, a){var c=b.series,d=arguments,e=N(a)?function(d){var e="y"===d&&c.toYData?c.toYData(b):b[d];c[d+"Data"][a]=e}:function(b){Array.prototype[a].apply(c[b+"Data"],Array.prototype.slice.call(d,2))};c.parallelArrays.forEach(e)};a.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?l-this.cropStart:l);!f&&N(l)&&e[l]&&e[l].touched&&(l=void 0);return l};a.prototype.updateData=function(b,a){var c=this.options,d=c.dataSorting,e=this.points,h=[],g=this.requireSorting,f=b.length===e.length,k,m,p,n=!0;this.xIncrement=null;b.forEach(function(b,a){var m=l(b)&&this.pointClass.prototype.optionsToObject.call({series:this},b)||{},n=m.x;if(m.id||N(n)){if(m=this.findPointIndex(m,p),-1===m||"undefined"===typeof m?h.push(b): e[m]&&b!==c.data[m]?(e[m].update(b,!1,null,!1),e[m].touched=!0,g&&(p=m+1)):e[m]&&(e[m].touched=!0),!f||a!==m||d&&d.enabled||this.hasDerivedData)k=!0}else h.push(b)},this);if(k)for(b=e.length;b--;)(m=e[b])&&!m.touched&&m.remove&&m.remove(!1,a);else!f||d&&d.enabled?n=!1:(b.forEach(function(b,a){b!==e[a].y&&e[a].update&&e[a].update(b,!1,null,!1)}),h.length=0);e.forEach(function(b){b&&(b.touched=!1)});if(!n)return!1;h.forEach(function(b){this.addPoint(b,!1,null,null,!1)},this);null===this.xIncrement&& this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement());return!0};a.prototype.setData=function(b,a,c,d){var e=this,h=e.points,g=h&&h.length||0,f=e.options,l=e.chart,k=f.dataSorting,m=e.xAxis,p=f.turboThreshold,n=this.xData,q=this.yData,r=e.pointArrayMap;r=r&&r.length;var G=f.keys,t,y=0,z=1,x=null;if(!l.options.chart.allowMutatingData){f.data&&delete e.options.data;e.userOptions.data&&delete e.userOptions.data;var v=X(!0,b)}b=v||b||[];v=b.length;a=L(a,!0);k&&k.enabled&& (b=this.sortData(b));l.options.chart.allowMutatingData&&!1!==d&&v&&g&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.isSeriesBoosting&&(t=this.updateData(b,c));if(!t){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(b){e[b+"Data"].length=0});if(p&&v>p)if(x=e.getFirstValidPoint(b),N(x))for(c=0;cb?1:0}).forEach(function(b,a){b.x=a},this);a.linkedSeries&&a.linkedSeries.forEach(function(a){var c= a.options,e=c.data;c.dataSorting&&c.dataSorting.enabled||!e||(e.forEach(function(c,h){e[h]=d(a,c);b[h]&&(e[h].x=b[h].x,e[h].index=h)}),a.setData(e,!1))});return b};a.prototype.getProcessedData=function(b){var a=this.xAxis,c=this.options,d=c.cropThreshold,e=b||this.getExtremesFromAll||c.getExtremesFromAll,h=this.isCartesian;b=a&&a.val2lin;c=!(!a||!a.logarithmic);var g=0,f=this.xData,l=this.yData,k=this.requireSorting;var m=!1;var p=f.length;if(a){m=a.getExtremes();var n=m.min;var q=m.max;m=!(!a.categories|| a.names.length)}if(h&&this.sorted&&!e&&(!d||p>d||this.forceCrop))if(f[p-1]q)f=[],l=[];else if(this.yData&&(f[0]q)){var r=this.cropData(this.xData,this.yData,n,q);f=r.xData;l=r.yData;g=r.start;r=!0}for(d=f.length||1;--d;)if(a=c?b(f[d])-b(f[d-1]):f[d]-f[d-1],0a&&k&&!m&&(D(15,!1,this.chart),k=!1);return{xData:f,yData:l,cropped:r,cropStart:g,closestPointRange:G}};a.prototype.processData=function(b){var a=this.xAxis;if(this.isCartesian&& !this.isDirty&&!a.isDirty&&!this.yAxis.isDirty&&!b)return!1;b=this.getProcessedData();this.cropped=b.cropped;this.cropStart=b.cropStart;this.processedXData=b.xData;this.processedYData=b.yData;this.closestPointRange=this.basePointRange=b.closestPointRange;C(this,"afterProcessData")};a.prototype.cropData=function(b,a,c,d,e){var h=b.length,g,f=0,l=h;e=L(e,this.cropShoulder);for(g=0;g=c){f=Math.max(0,g-e);break}for(c=g;cd){l=c+e;break}return{xData:b.slice(f,l),yData:a.slice(f, l),start:f,end:l}};a.prototype.generatePoints=function(){var b=this.options,a=this.processedData||b.data,c=this.processedXData,d=this.processedYData,e=this.pointClass,h=c.length,g=this.cropStart||0,f=this.hasGroupedData,l=b.keys,k=[];b=b.dataGrouping&&b.dataGrouping.groupAll?g:0;var m,p,n=this.data;if(!n&&!f){var q=[];q.length=a.length;n=this.data=q}l&&f&&(this.options.keys=!1);for(p=0;p=l&&(e[f-g]||q)<=k;if(r&&q)if(r=n.length)for(;r--;)N(n[r])&&(h[m++]=n[r]);else h[m++]=n}b={activeYData:h, dataMin:z(h),dataMax:x(h)};C(this,"afterGetExtremes",{dataExtremes:b});return b};a.prototype.applyExtremes=function(){var b=this.getExtremes();this.dataMin=b.dataMin;this.dataMax=b.dataMax;return b};a.prototype.getFirstValidPoint=function(b){for(var a=b.length,c=0,d=null;null===d&&c=A&&(A=null),v.total=v.stackTotal=u.total,v.percentage=u.total&&v.y/u.total*100,v.stackY=w,this.irregularWidths||u.setOffset(this.pointXOffset||0,this.barW||0));v.yBottom=l(A)?m(g.translate(A,0,1,0,1),-1E5,1E5):null;this.dataModify&&(w=this.dataModify.modifyValue(w,y));v.plotY=void 0;N(w)&&(u=g.translate(w,!1,!0,!1,!0), "undefined"!==typeof u&&(v.plotY=m(u,-1E5,1E5)));v.isInside=this.isPointInside(v);v.clientX=n?b(d.translate(F,0,0,0,1,p)):z;v.negative=v[t]<(a[t+"Threshold"]||q||0);v.category=L(e&&e[v.x],v.x);if(!v.isNull&&!1!==v.visible){"undefined"!==typeof I&&(x=Math.min(x,Math.abs(z-I)));var I=z}v.zone=this.zones.length?v.getZone():void 0;!v.graphic&&this.group&&h&&(v.isNew=!0)}this.closestPointRangePx=x;C(this,"afterTranslate")};a.prototype.getValidPoints=function(b,a,c){var d=this.chart;return(b||this.points|| []).filter(function(b){return a&&!d.isInsidePlot(b.plotX,b.plotY,{inverted:d.inverted})?!1:!1!==b.visible&&(c||!b.isNull)})};a.prototype.getClipBox=function(){var b=this.chart,a=this.xAxis,c=this.yAxis,d=X(b.clipBox);a&&a.len!==b.plotSizeX&&(d.width=a.len);c&&c.len!==b.plotSizeY&&(d.height=c.len);return d};a.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)};a.prototype.setClip=function(){var b=this.chart,a=this.group,c=this.markerGroup, d=b.sharedClips;b=b.renderer;var e=this.getClipBox(),h=this.getSharedClipKey(),g=d[h];g?g.animate(e):d[h]=g=b.clipRect(e);a&&a.clip(!1===this.options.clip?void 0:g);c&&c.clip()};a.prototype.animate=function(b){var a=this.chart,c=this.group,d=this.markerGroup,e=a.inverted,h=k(this.options.animation),g=[this.getSharedClipKey(),h.duration,h.easing,h.defer].join(),f=a.sharedClips[g],l=a.sharedClips[g+"m"];if(b&&c)h=this.getClipBox(),f?f.attr("height",h.height):(h.width=0,e&&(h.x=a.plotHeight),f=a.renderer.clipRect(h), a.sharedClips[g]=f,l=a.renderer.clipRect({x:e?(a.plotSizeX||0)+99:-99,y:e?-a.plotLeft:-a.plotTop,width:99,height:e?a.chartWidth:a.chartHeight}),a.sharedClips[g+"m"]=l),c.clip(f),d&&d.clip(l);else if(f&&!f.hasClass("highcharts-animating")){a=this.getClipBox();var m=h.step;d&&d.element.childNodes.length&&(h.step=function(b,a){m&&m.apply(a,arguments);l&&l.element&&l.attr(a.prop,"width"===a.prop?b+99:b)});f.addClass("highcharts-animating").animate(a,h)}};a.prototype.afterAnimate=function(){var b=this; this.setClip();J(this.chart.sharedClips,function(a,c,d){a&&!b.chart.container.querySelector('[clip-path="url(#'+a.id+')"]')&&(a.destroy(),delete d[c])});this.finishedAnimating=!0;C(this,"afterAnimate")};a.prototype.drawPoints=function(){var b=this.points,a=this.chart,c=this.options.marker,d=this[this.specialGroup]||this.markerGroup,e=this.xAxis,h=L(c.enabled,!e||e.isRadial?!0:null,this.closestPointRangePx>=c.enabledThreshold*c.radius),g,f;if(!1!==c.enabled||this._hasPointMarkers)for(g=0;gD.max;b.resetZones&&0===n&&(n=void 0)});this.clips=e}else b.visible&&(h&&h.show(),g&&g.show())};a.prototype.invertGroups=function(b){function a(){["group","markerGroup"].forEach(function(a){c[a]&& (d.renderer.isVML&&c[a].attr({width:c.yAxis.len,height:c.xAxis.len}),c[a].width=c.yAxis.len,c[a].height=c.xAxis.len,c[a].invert(c.isRadialSeries?!1:b))})}var c=this,d=c.chart;c.xAxis&&(c.eventsToUnbind.push(y(d,"resize",a)),a(),c.invertGroups=a)};a.prototype.plotGroup=function(b,a,c,d,e){var h=this[b],g=!h;c={visibility:c,zIndex:d||.1};"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(c.opacity=this.opacity);g&&(this[b]=h=this.chart.renderer.g().add(e));h.addClass("highcharts-"+ a+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(h.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);h.attr(c)[g?"attr":"animate"](this.getPlotBox());return h};a.prototype.getPlotBox=function(){var b=this.chart,a=this.xAxis,c=this.yAxis;b.inverted&&(a=c,c=this.xAxis);return{translateX:a?a.left:b.plotLeft,translateY:c?c.top:b.plotTop,scaleX:1,scaleY:1}};a.prototype.removeEvents= function(b){b||K(this);this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(b){b()}),this.eventsToUnbind.length=0)};a.prototype.render=function(){var b=this,a=b.chart,c=b.options,d=k(c.animation),e=b.visible?"inherit":"hidden",h=c.zIndex,g=b.hasRendered,f=a.seriesGroup,l=a.inverted;a=!b.finishedAnimating&&a.renderer.isSVG?d.duration:0;C(this,"render");var m=b.plotGroup("group","series",e,h,f);b.markerGroup=b.plotGroup("markerGroup","markers",e,h,f);!1!==c.clip&&b.setClip();b.animate&& a&&b.animate(!0);m.inverted=L(b.invertible,b.isCartesian)?l:!1;b.drawGraph&&(b.drawGraph(),b.applyZones());b.visible&&b.drawPoints();b.drawDataLabels&&b.drawDataLabels();b.redrawPoints&&b.redrawPoints();b.drawTracker&&!1!==b.options.enableMouseTracking&&b.drawTracker();b.invertGroups(l);b.animate&&a&&b.animate();g||(a&&d.defer&&(a+=d.defer),b.animationTimeout=Q(function(){b.afterAnimate()},a||0));b.isDirty=!1;b.hasRendered=!0;C(b,"afterRender")};a.prototype.redraw=function(){var b=this.chart,a=this.isDirty|| this.isDirtyData,c=this.group,d=this.xAxis,e=this.yAxis;c&&(b.inverted&&c.attr({width:b.plotWidth,height:b.plotHeight}),c.animate({translateX:L(d&&d.left,b.plotLeft),translateY:L(e&&e.top,b.plotTop)}));this.translate();this.render();a&&delete this.kdTree};a.prototype.searchPoint=function(b,a){var c=this.xAxis,d=this.yAxis,e=this.chart.inverted;return this.searchKDTree({clientX:e?c.len-b.chartY+c.pos:b.chartX-c.pos,plotY:e?d.len-b.chartX+d.pos:b.chartY-d.pos},a,b)};a.prototype.buildKDTree=function(b){function a(b, d,e){var h=b&&b.length;if(h){var g=c.kdAxisArray[d%e];b.sort(function(b,a){return b[g]-a[g]});h=Math.floor(h/2);return{point:b[h],left:a(b.slice(0,h),d+1,e),right:a(b.slice(h+1),d+1,e)}}}this.buildingKdTree=!0;var c=this,d=-1p?"left":"right";q=0>p?"right":"left";a[r]&&(r=d(b,a[r],c+1,k),n=r[f]q;)r--;this.updateParallelArrays(n,"splice",r,0,0);this.updateParallelArrays(n,r);l&&n.name&&(l[q]=n.name);k.splice(r,0,b);if(p||this.processedData)this.data.splice(r,0,null),this.processData();"point"===h.legendType&&this.generatePoints();c&&(g[0]&&g[0].remove?g[0].remove(!1):(g.shift(),this.updateParallelArrays(n, "shift"),k.shift()));!1!==e&&C(this,"addPoint",{point:n});this.isDirtyData=this.isDirty=!0;a&&f.redraw(d)};a.prototype.removePoint=function(b,a,c){var d=this,h=d.data,g=h[b],f=d.points,l=d.chart,k=function(){f&&f.length===h.length&&f.splice(b,1);h.splice(b,1);d.options.data.splice(b,1);d.updateParallelArrays(g||{series:d},"splice",b,1);g&&g.destroy();d.isDirty=!0;d.isDirtyData=!0;a&&l.redraw()};e(c,l);a=L(a,!0);g?g.firePointEvent("remove",null,k):k()};a.prototype.remove=function(b,a,c,d){function e(){h.destroy(d); g.isDirtyLegend=g.isDirtyBox=!0;g.linkSeries();L(b,!0)&&g.redraw(a)}var h=this,g=h.chart;!1!==c?C(h,"remove",null,e):e()};a.prototype.update=function(b,a){b=h(b,this.userOptions);C(this,"update",{options:b});var c=this,d=c.chart,e=c.userOptions,g=c.initialType||c.type,f=d.options.plotOptions,l=F[g].prototype,k=c.finishedAnimating&&{animation:!1},m={},p,n=["eventOptions","navigatorSeries","baseSeries"],q=b.type||e.type||d.options.chart.type,r=!(this.hasDerivedData||q&&q!==this.type||"undefined"!== typeof b.pointStart||"undefined"!==typeof b.pointInterval||"undefined"!==typeof b.relativeXValue||b.joinBy||b.mapData||c.hasOptionChanged("dataGrouping")||c.hasOptionChanged("pointStart")||c.hasOptionChanged("pointInterval")||c.hasOptionChanged("pointIntervalUnit")||c.hasOptionChanged("keys"));q=q||g;r&&(n.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData", "minY","maxY","minX","maxX"),!1!==b.visible&&n.push("area","graph"),c.parallelArrays.forEach(function(b){n.push(b+"Data")}),b.data&&(b.dataSorting&&v(c.options.dataSorting,b.dataSorting),this.setData(b.data,!1)));b=X(e,k,{index:"undefined"===typeof e.index?c.index:e.index,pointStart:L(f&&f.series&&f.series.pointStart,e.pointStart,c.xData[0])},!r&&{data:c.options.data},b);r&&b.data&&(b.data=c.options.data);n=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(n);n.forEach(function(b){n[b]= c[b];delete c[b]});f=!1;if(F[q]){if(f=q!==c.type,c.remove(!1,!1,!1,!0),f)if(Object.setPrototypeOf)Object.setPrototypeOf(c,F[q].prototype);else{k=Object.hasOwnProperty.call(c,"hcEvents")&&c.hcEvents;for(p in l)c[p]=void 0;v(c,F[q].prototype);k?c.hcEvents=k:delete c.hcEvents}}else D(17,!0,d,{missingModuleFor:q});n.forEach(function(b){c[b]=n[b]});c.init(d,b);if(r&&this.points){var t=c.options;!1===t.visible?(m.graphic=1,m.dataLabel=1):c._hasPointLabels||(b=t.marker,l=t.dataLabels,!b||!1!==b.enabled&& (e.marker&&e.marker.symbol)===b.symbol||(m.graphic=1),l&&!1===l.enabled&&(m.dataLabel=1));this.points.forEach(function(b){b&&b.series&&(b.resolveColor(),Object.keys(m).length&&b.destroyElements(m),!1===t.showInLegend&&b.legendItem&&d.legend.destroyItem(b))},this)}c.initialType=g;d.linkSeries();f&&c.linkedSeries.length&&(c.isDirtyData=!0);C(this,"afterUpdate");L(a,!0)&&d.redraw(r?void 0:!1)};a.prototype.setName=function(b){this.name=this.options.name=this.userOptions.name=b;this.chart.isDirtyLegend= !0};a.prototype.hasOptionChanged=function(b){var a=this.options[b],c=this.chart.options.plotOptions,d=this.userOptions[b];return d?a!==d:a!==L(c&&c[this.type]&&c[this.type][b],c&&c.series&&c.series[b],a)};a.prototype.onMouseOver=function(){var b=this.chart,a=b.hoverSeries;b.pointer.setHoverChartIndex();if(a&&a!==this)a.onMouseOut();this.options.events.mouseOver&&C(this,"mouseOver");this.setState("hover");b.hoverSeries=this};a.prototype.onMouseOut=function(){var b=this.options,a=this.chart,c=a.tooltip, d=a.hoverPoint;a.hoverSeries=null;if(d)d.onMouseOut();this&&b.events.mouseOut&&C(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();a.series.forEach(function(b){b.setState("",!0)})};a.prototype.setState=function(b,a){var c=this,d=c.options,e=c.graph,h=d.inactiveOtherPoints,g=d.states,f=L(g[b||"normal"]&&g[b||"normal"].animation,c.chart.options.chart.animation),l=d.lineWidth,k=0,m=d.opacity;b=b||"";if(c.state!==b&&([c.group,c.markerGroup,c.dataLabelsGroup].forEach(function(a){a&& (c.state&&a.removeClass("highcharts-series-"+c.state),b&&a.addClass("highcharts-series-"+b))}),c.state=b,!c.chart.styledMode)){if(g[b]&&!1===g[b].enabled)return;b&&(l=g[b].lineWidth||l+(g[b].lineWidthPlus||0),m=L(g[b].opacity,m));if(e&&!e.dashstyle)for(d={"stroke-width":l},e.animate(d,f);c["zone-graph-"+k];)c["zone-graph-"+k].animate(d,f),k+=1;h||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(b){b&&b.animate({opacity:m},f)})}a&&h&&c.points&&c.setAllPointsToState(b||void 0)}; a.prototype.setAllPointsToState=function(b){this.points.forEach(function(a){a.setState&&a.setState(b)})};a.prototype.setVisible=function(b,a){var c=this,d=c.chart,e=c.legendItem,h=d.options.chart.ignoreHiddenSeries,g=c.visible,f=(c.visible=b=c.options.visible=c.userOptions.visible="undefined"===typeof b?!g:b)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(b){if(c[b])c[b][f]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();e&& d.legend.colorizeItem(c,b);c.isDirty=!0;c.options.stacking&&d.series.forEach(function(b){b.options.stacking&&b.visible&&(b.isDirty=!0)});c.linkedSeries.forEach(function(a){a.setVisible(b,!1)});h&&(d.isDirtyBox=!0);C(c,f);!1!==a&&d.redraw()};a.prototype.show=function(){this.setVisible(!0)};a.prototype.hide=function(){this.setVisible(!1)};a.prototype.select=function(b){this.selected=b=this.options.selected="undefined"===typeof b?!this.selected:b;this.checkbox&&(this.checkbox.checked=b);C(this,b?"select": "unselect")};a.prototype.shouldShowTooltip=function(b,a,c){void 0===c&&(c={});c.series=this;c.visiblePlotOnly=!0;return this.chart.isInsidePlot(b,a,c)};a.defaultOptions=I;return a}();v(a.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:w.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:E,requireSorting:!0,sorted:!0});A.series=a;"";"";return a});K(f,"Extensions/ScrollablePlotArea.js", [f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/Axis.js"],f["Core/Chart/Chart.js"],f["Core/Series/Series.js"],f["Core/Renderer/RendererRegistry.js"],f["Core/Utilities.js"]],function(a,f,B,H,w,E){var C=a.stop,A=E.addEvent,u=E.createElement,n=E.merge,k=E.pick;A(B,"afterSetChartSize",function(a){var c=this.options.chart.scrollablePlotArea,e=c&&c.minWidth;c=c&&c.minHeight;if(!this.renderer.forExport){if(e){if(this.scrollablePixelsX=e=Math.max(0,e-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox= n(this.plotBox);this.plotBox.width=this.plotWidth+=e;this.inverted?this.clipBox.height+=e:this.clipBox.width+=e;var g={1:{name:"right",value:e}}}}else c&&(this.scrollablePixelsY=e=Math.max(0,c-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=n(this.plotBox),this.plotBox.height=this.plotHeight+=e,this.inverted?this.clipBox.width+=e:this.clipBox.height+=e,g={2:{name:"bottom",value:e}});g&&!a.skipAxes&&this.axes.forEach(function(a){g[a.side]?a.getPlotLinePath=function(){var c= g[a.side].name,e=this[c];this[c]=e-g[a.side].value;var k=f.prototype.getPlotLinePath.apply(this,arguments);this[c]=e;return k}:(a.setAxisSize(),a.setAxisTranslation())})}});A(B,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});B.prototype.setUpScrolling=function(){var a=this,c={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(c.overflowX= "auto");this.scrollablePixelsY&&(c.overflowY="auto");this.scrollingParent=u("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo);this.scrollingContainer=u("div",{className:"highcharts-scrolling"},c,this.scrollingParent);A(this.scrollingContainer,"scroll",function(){a.pointer&&delete a.pointer.chartPosition});this.innerContainer=u("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling= null};B.prototype.moveFixedElements=function(){var a=this.container,c=this.fixedRenderer,f=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),g;this.scrollablePixelsX&&!this.inverted?g=".highcharts-yaxis":this.scrollablePixelsX&& this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?g=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(g=".highcharts-yaxis");g&&f.push(g+":not(.highcharts-radial-axis)",g+"-labels:not(.highcharts-radial-axis-labels)");f.forEach(function(e){[].forEach.call(a.querySelectorAll(e),function(a){(a.namespaceURI===c.SVG_NS?c.box:c.box.parentNode).appendChild(a);a.style.pointerEvents="auto"})})};B.prototype.applyFixed=function(){var a=!this.fixedDiv,c=this.options.chart, f=c.scrollablePlotArea,g=w.getRendererType();a?(this.fixedDiv=u("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(c.style&&c.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=c=new g(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=c.path().attr({fill:this.options.chart.backgroundColor|| "#fff","fill-opacity":k(f.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),A(this,"afterShowResetZoom",this.moveFixedElements),A(this,"afterApplyDrilldown",this.moveFixedElements),A(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);if(this.scrollableDirty||a)this.scrollableDirty=!1,this.moveFixedElements();c=this.chartWidth+(this.scrollablePixelsX||0);g=this.chartHeight+(this.scrollablePixelsY||0);C(this.container); this.container.style.width=c+"px";this.container.style.height=g+"px";this.renderer.boxWrapper.attr({width:c,height:g,viewBox:[0,0,c,g].join(" ")});this.chartBackground.attr({width:c,height:g});this.scrollingContainer.style.height=this.chartHeight+"px";a&&(f.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*f.scrollPositionX),f.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*f.scrollPositionY));g=this.axisOffset;a=this.plotTop-g[0]-1;f=this.plotLeft- g[3]-1;c=this.plotTop+this.plotHeight+g[2]+1;g=this.plotLeft+this.plotWidth+g[1]+1;var n=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),q=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);a=this.scrollablePixelsX?[["M",0,a],["L",this.plotLeft-1,a],["L",this.plotLeft-1,c],["L",0,c],["Z"],["M",n,a],["L",this.chartWidth,a],["L",this.chartWidth,c],["L",n,c],["Z"]]:this.scrollablePixelsY?[["M",f,0],["L",f,this.plotTop-1],["L",g,this.plotTop-1],["L",g,0],["Z"],["M",f,q],["L",f,this.chartHeight], ["L",g,this.chartHeight],["L",g,q],["Z"]]:[["M",0,0]];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:a})};A(f,"afterInit",function(){this.chart.scrollableDirty=!0});A(H,"show",function(){this.chart.scrollableDirty=!0});""});K(f,"Core/Axis/StackingAxis.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Axis/Axis.js"],f["Core/Utilities.js"]],function(a,f,B){var C=a.getDeferredAnimation,w=B.addEvent,E=B.destroyObjectProperties,I=B.fireEvent,A=B.isNumber,u=B.objectEach,n;(function(a){function e(){var a= this.stacking;if(a){var c=a.stacks;u(c,function(a,e){E(a);c[e]=null});a&&a.stackTotalGroup&&a.stackTotalGroup.destroy()}}function c(){this.stacking||(this.stacking=new g(this))}var f=[];a.compose=function(a){-1===f.indexOf(a)&&(f.push(a),w(a,"init",c),w(a,"destroy",e));return a};var g=function(){function a(a){this.oldStacks={};this.stacks={};this.stacksTouched=0;this.axis=a}a.prototype.buildStacks=function(){var a=this.axis,c=a.series,e=a.options.reversedStacks,g=c.length,f;if(!a.isXAxis){this.usePercentage= !1;for(f=g;f--;){var k=c[e?f:g-f-1];k.setStackedPoints();k.setGroupedPoints()}for(f=0;fg&&f.shadow));n&&(n.startX=k.xMap,n.isArea=k.isArea)})};A.prototype.getGraphPath=function(a,f,k){var e=this,c=e.options,p=[],g=[],n,q=c.step;a=a||e.points;var u=a.reversed;u&&a.reverse();(q={right:1,center:2}[q]||q&&3)&&u&&(q=4-q);a=this.getValidPoints(a,!1,!(c.connectNulls&&!f&&!k));a.forEach(function(t,x){var z=t.plotX,m=t.plotY, h=a[x-1];(t.leftCliff||h&&h.rightCliff)&&!k&&(n=!0);t.isNull&&!w(f)&&0a&&u>c?(u=Math.max(a,c),y=2*c-u):uk&& y>c?(y=Math.max(k,c),u=2*c-y):y=Math.abs(a)&&.5b.closestPointRange* b.xAxis.transA;f=b.borderWidth=x(c.borderWidth,f?0:1);var h=b.xAxis,g=b.yAxis,k=c.threshold,m=b.translatedThreshold=g.getThreshold(k),n=x(c.minPointLength,5),q=b.getColumnMetrics(),t=q.width,z=b.pointXOffset=q.offset,u=b.dataMin,y=b.dataMax,C=b.barW=Math.max(t,1+2*f);a.inverted&&(m-=.5);c.pointPadding&&(C=Math.ceil(C));w.prototype.translate.apply(b);b.points.forEach(function(d){var f=x(d.yBottom,m),l=999+Math.abs(f),r=d.plotX||0;l=e(d.plotY,-l,g.len+l);var v=Math.min(l,f),w=Math.max(l,f)-v,D=t,A= r+z,B=C;n&&Math.abs(w)n?f-n:m-(r?n:0));p(d.options.pointWidth)&&(D=B=Math.ceil(d.options.pointWidth),A-=Math.round((D-t)/2));c.centerInCategory&&(A=b.adjustForMissingColumns(A,D,d,q));d.barX=A;d.pointWidth=D;d.tooltipPos=a.inverted?[e(g.len+g.pos-a.plotLeft-l,g.pos-a.plotLeft,g.len+g.pos-a.plotLeft),h.len+h.pos-a.plotTop-A-B/2,w]:[h.left-a.plotLeft+A+ B/2,e(l+g.pos-a.plotTop,g.pos-a.plotTop,g.len+g.pos-a.plotTop),w];d.shapeType=b.pointClass.prototype.shapeType||"rect";d.shapeArgs=b.crispCol.apply(b,d.isNull?[A,m,B,0]:[A,v,B,w])})};f.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")};f.prototype.pointAttribs=function(b,a){var c=this.options,e=this.pointAttrToOptions||{},f=e.stroke||"borderColor",h=e["stroke-width"]||"borderWidth",g=b&&b.color||this.color,l=b&&b[f]||c[f]||g;e=b&&b.options.dashStyle|| c.dashStyle;var k=b&&b[h]||c[h]||this[h]||0,m=x(b&&b.opacity,c.opacity,1);if(b&&this.zones.length){var p=b.getZone();g=b.options.color||p&&(p.color||b.nonZonedColor)||this.color;p&&(l=p.borderColor||l,e=p.dashStyle||e,k=p.borderWidth||k)}a&&b&&(b=y(c.states[a],b.options.states&&b.options.states[a]||{}),a=b.brightness,g=b.color||"undefined"!==typeof a&&n(g).brighten(b.brightness).get()||g,l=b[f]||l,k=b[h]||k,e=b.dashStyle||e,m=x(b.opacity,m));f={fill:g,stroke:l,"stroke-width":k,opacity:m};e&&(f.dashstyle= e);return f};f.prototype.drawPoints=function(){var b=this,a=this.chart,c=b.options,e=a.renderer,f=c.animationLimit||250,h;b.points.forEach(function(d){var g=d.graphic,l=!!g,k=g&&a.pointCount"===b&&a>c||"<"===b&&a="===b&&a>=c||"<="===b&&a<=c||"=="===b&&a==c||"==="===b&&a===c?!0:!1):!0}function p(){var a=this,b=a.chart,f=a.options,d=a.points,m=a.hasRendered||0,p=b.renderer,n=f.dataLabels,q,t=n.animation;t=n.defer?C(b,t,a):{defer:0,duration:0};n=x(x(b.options.plotOptions&&b.options.plotOptions.series&&b.options.plotOptions.series.dataLabels,b.options.plotOptions&&b.options.plotOptions[a.type]&& b.options.plotOptions[a.type].dataLabels),n);A(this,"drawDataLabels");if(u(n)||n.enabled||a._hasPointLabels){var z=a.plotGroup("dataLabelsGroup","data-labels",m?"inherit":"hidden",n.zIndex||6);z.attr({opacity:+m});!m&&(m=a.dataLabelsGroup)&&(a.visible&&z.show(),m[f.animation?"animate":"attr"]({opacity:1},t));d.forEach(function(d){q=c(x(n,d.dlOptions||d.options&&d.options.dataLabels));q.forEach(function(c,h){var l=c.enabled&&(!d.isNull||d.dataLabelOnNull)&&g(d,c),m=d.connectors?d.connectors[h]:d.connector, n=d.dataLabels?d.dataLabels[h]:d.dataLabel,q=!n,r=e(c.distance,d.labelDistance);if(l){var t=d.getLabelConfig();var v=e(c[d.formatPrefix+"Format"],c.format);t=E(v)?w(v,t,b):(c[d.formatPrefix+"Formatter"]||c.formatter).call(t,c);v=c.style;var u=c.rotation;b.styledMode||(v.color=e(c.color,v.color,a.color,"#000000"),"contrast"===v.color?(d.contrastColor=p.getContrast(d.color||a.color),v.color=!E(r)&&c.inside||0>r||f.stacking?d.contrastColor:"#000000"):delete d.contrastColor,f.cursor&&(v.cursor=f.cursor)); var x={r:c.borderRadius||0,rotation:u,padding:c.padding,zIndex:1};b.styledMode||(x.fill=c.backgroundColor,x.stroke=c.borderColor,x["stroke-width"]=c.borderWidth);k(x,function(b,a){"undefined"===typeof b&&delete x[a]})}!n||l&&E(t)&&!!n.div===!!c.useHTML&&(n.rotation&&c.rotation||n.rotation===c.rotation)||(q=!0,d.dataLabel=n=d.dataLabel&&d.dataLabel.destroy(),d.dataLabels&&(1===d.dataLabels.length?delete d.dataLabels:delete d.dataLabels[h]),h||delete d.dataLabel,m&&(d.connector=d.connector.destroy(), d.connectors&&(1===d.connectors.length?delete d.connectors:delete d.connectors[h])));l&&E(t)?(n?x.text=t:(d.dataLabels=d.dataLabels||[],n=d.dataLabels[h]=u?p.text(t,0,0,c.useHTML).addClass("highcharts-data-label"):p.label(t,0,0,c.shape,null,null,c.useHTML,null,"data-label"),h||(d.dataLabel=n),n.addClass(" highcharts-data-label-color-"+d.colorIndex+" "+(c.className||"")+(c.useHTML?" highcharts-tracker":""))),n.options=c,n.attr(x),b.styledMode||n.css(v).shadow(c.shadow),n.added||n.add(z),c.textPath&& !c.useHTML&&(n.setTextPath(d.getDataLabelPath&&d.getDataLabelPath(n)||d.graphic,c.textPath),d.dataLabelPath&&!c.textPath.enabled&&(d.dataLabelPath=d.dataLabelPath.destroy())),a.alignDataLabel(d,n,c,null,q)):n&&n.hide()})})}A(this,"afterDrawDataLabels")}function y(a,b,c,d,e,f){var h=this.chart,g=b.align,k=b.verticalAlign,l=a.box?0:a.padding||0,m=b.x;m=void 0===m?0:m;var p=b.y;p=void 0===p?0:p;var n=(c.x||0)+l;if(0>n){"right"===g&&0<=m?(b.align="left",b.inside=!0):m-=n;var q=!0}n=(c.x||0)+d.width-l; n>h.plotWidth&&("left"===g&&0>=m?(b.align="right",b.inside=!0):m+=h.plotWidth-n,q=!0);n=c.y+l;0>n&&("bottom"===k&&0<=p?(b.verticalAlign="top",b.inside=!0):p-=n,q=!0);n=(c.y||0)+d.height-l;n>h.plotHeight&&("top"===k&&0>=p?(b.verticalAlign="bottom",b.inside=!0):p+=h.plotHeight-n,q=!0);q&&(b.x=m,b.y=p,a.placed=!f,a.align(b,void 0,e));return q}function x(a,b){var c=[],d;if(u(a)&&!u(b))c=a.map(function(a){return n(a,b)});else if(u(b)&&!u(a))c=b.map(function(b){return n(a,b)});else if(u(a)||u(b))for(d= Math.max(a.length,b.length);d--;)c[d]=n(a[d],b[d]);else c=n(a,b);return c}function z(a,b,c,d,e){var f=this.chart,g=f.inverted,h=this.xAxis,k=h.reversed,l=g?b.height/2:b.width/2;a=(a=a.pointWidth)?a/2:0;b.startXPos=g?e.x:k?-l-a:h.width-l+a;b.startYPos=g?k?this.yAxis.height-l+a:-l-a:e.y;d?"hidden"===b.visibility&&(b.show(),b.attr({opacity:0}).animate({opacity:1})):b.attr({opacity:1}).animate({opacity:0},void 0,b.hide);f.hasRendered&&(c&&b.attr({x:b.startXPos,y:b.startYPos}),b.placed=!0)}var m=[];a.compose= function(a){if(-1===m.indexOf(a)){var b=a.prototype;m.push(a);b.alignDataLabel=f;b.drawDataLabels=p;b.justifyDataLabel=y;b.setDataLabelStartPos=z}}})(p||(p={}));"";return p});K(f,"Series/Column/ColumnDataLabel.js",[f["Core/Series/DataLabel.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Utilities.js"]],function(a,f,B){var C=f.series,w=B.merge,E=B.pick,I;(function(f){function u(a,e,c,f,g){var k=this.chart.inverted,n=a.series,p=(n.xAxis?n.xAxis.len:this.chart.plotSizeX)||0;n=(n.yAxis?n.yAxis.len:this.chart.plotSizeY)|| 0;var u=a.dlBox||a.shapeArgs,x=E(a.below,a.plotY>E(this.translatedThreshold,n)),z=E(c.inside,!!this.options.stacking);u&&(f=w(u),0>f.y&&(f.height+=f.y,f.y=0),u=f.y+f.height-n,0\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}});return n}(f);I(H.prototype,{drawTracker:a.prototype.drawTracker, sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1});C(H,"afterTranslate",function(){this.applyJitter()});B.registerSeriesType("scatter",H);"";return H});K(f,"Series/CenteredUtilities.js",[f["Core/Globals.js"],f["Core/Series/Series.js"],f["Core/Utilities.js"]],function(a,f,B){var C=a.deg2rad,w=B.isNumber,E=B.pick,I=B.relativeLength,A;(function(a){a.getCenter=function(){var a=this.options,k=this.chart,e=2*(a.slicedOffset||0), c=k.plotWidth-2*e,p=k.plotHeight-2*e,g=a.center,t=Math.min(c,p),q=a.thickness,u=a.size,y=a.innerSize||0;"string"===typeof u&&(u=parseFloat(u));"string"===typeof y&&(y=parseFloat(y));a=[E(g[0],"50%"),E(g[1],"50%"),E(u&&0>u?void 0:a.size,"100%"),E(y&&0>y?void 0:a.innerSize||0,"0%")];!k.angular||this instanceof f||(a[3]=0);for(g=0;4>g;++g)u=a[g],k=2>g||2===g&&/%$/.test(u),a[g]=I(u,[c,p,t,a[2]][g])+(k?e:0);a[3]>a[2]&&(a[3]=a[2]);w(q)&&2*qa&&360>f-a?f:a+360;return{start:C*(a+-90),end:C*(f+-90)}}})(A||(A={}));"";return A});K(f,"Series/Pie/PiePoint.js",[f["Core/Animation/AnimationUtilities.js"],f["Core/Series/Point.js"],f["Core/Utilities.js"]],function(a,f,B){var C=this&&this.__extends||function(){var a=function(e,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return a(e,c)};return function(e,c){function f(){this.constructor= e}a(e,c);e.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),w=a.setAnimation,E=B.addEvent,I=B.defined;a=B.extend;var A=B.isNumber,u=B.pick,n=B.relativeLength;f=function(a){function e(){var c=null!==a&&a.apply(this,arguments)||this;c.labelDistance=void 0;c.options=void 0;c.series=void 0;return c}C(e,a);e.prototype.getConnectorPath=function(){var a=this.labelPosition,e=this.series.options.dataLabels,f=this.connectorShapes,k=e.connectorShape;f[k]&&(k=f[k]);return k.call(this,{x:a.final.x, y:a.final.y,alignment:a.alignment},a.connectorPosition,e)};e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}};e.prototype.haloPath=function(a){var c=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(c.x,c.y,c.r+a,c.r+a,{innerR:c.r-1,start:c.start,end:c.end})};e.prototype.init=function(){var c=this;a.prototype.init.apply(this,arguments);this.name=u(this.name,"Slice");var e=function(a){c.slice("select"=== a.type)};E(this,"select",e);E(this,"unselect",e);return this};e.prototype.isValid=function(){return A(this.y)&&0<=this.y};e.prototype.setVisible=function(a,e){var c=this,f=this.series,k=f.chart,n=f.options.ignoreHiddenPoint;e=u(e,n);a!==this.visible&&(this.visible=this.options.visible=a="undefined"===typeof a?!this.visible:a,f.options.data[f.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){if(c[e])c[e][a?"show":"hide"](a)}),this.legendItem&&k.legend.colorizeItem(this, a),a||"hover"!==this.state||this.setState(""),n&&(f.isDirty=!0),e&&k.redraw())};e.prototype.slice=function(a,e,f){var c=this.series;w(f,c.chart);u(e,!0);this.sliced=this.options.sliced=I(a)?a:!this.sliced;c.options.data[c.data.indexOf(this)]=this.options;this.graphic&&this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())};return e}(f);a(f.prototype,{connectorShapes:{fixedOffset:function(a,e,c){var f=e.breakAt;e=e.touchingSliceAt;return[["M",a.x, a.y],c.softConnector?["C",a.x+("left"===a.alignment?-5:5),a.y,2*f.x-e.x,2*f.y-e.y,f.x,f.y]:["L",f.x,f.y],["L",e.x,e.y]]},straight:function(a,e){e=e.touchingSliceAt;return[["M",a.x,a.y],["L",e.x,e.y]]},crookedLine:function(a,e,c){e=e.touchingSliceAt;var f=this.series,g=f.center[0],k=f.chart.plotWidth,q=f.chart.plotLeft;f=a.alignment;var u=this.shapeArgs.r;c=n(c.crookDistance,1);k="left"===f?g+u+(k+q-g-u)*(1-c):q+(g-u)*c;c=["L",k,a.y];g=!0;if("left"===f?k>a.x||ke.x)g=!1;a=[["M",a.x,a.y]]; g&&a.push(c);a.push(["L",e.x,e.y]);return a}}});return f});K(f,"Series/Pie/PieSeries.js",[f["Series/CenteredUtilities.js"],f["Series/Column/ColumnSeries.js"],f["Core/Globals.js"],f["Core/Legend/LegendSymbol.js"],f["Series/Pie/PiePoint.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"],f["Core/Renderer/SVG/Symbols.js"],f["Core/Utilities.js"]],function(a,f,B,H,w,E,I,A,u){var n=this&&this.__extends||function(){var a=function(c,e){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&& function(a,c){a.__proto__=c}||function(a,c){for(var e in c)c.hasOwnProperty(e)&&(a[e]=c[e])};return a(c,e)};return function(c,e){function f(){this.constructor=c}a(c,e);c.prototype=null===e?Object.create(e):(f.prototype=e.prototype,new f)}}(),k=a.getStartAndEndRadians;B=B.noop;var e=u.clamp,c=u.extend,p=u.fireEvent,g=u.merge,t=u.pick,q=u.relativeLength;u=function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.center=void 0;c.data=void 0;c.maxLabelDistance=void 0;c.options=void 0;c.points= void 0;return c}n(c,a);c.prototype.animate=function(a){var c=this,e=c.points,f=c.startAngleRad;a||e.forEach(function(a){var b=a.graphic,d=a.shapeArgs;b&&d&&(b.attr({r:t(a.startR,c.center&&c.center[3]/2),start:f,end:f}),b.animate({r:d.r,start:d.start,end:d.end},c.options.animation))})};c.prototype.drawEmpty=function(){var a=this.startAngleRad,c=this.endAngleRad,e=this.options;if(0===this.total&&this.center){var f=this.center[0];var b=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(f, b,this.center[1]/2,0,a,c).addClass("highcharts-empty-series").add(this.group));this.graph.attr({d:A.arc(f,b,this.center[2]/2,0,{start:a,end:c,innerR:this.center[3]/2})});this.chart.styledMode||this.graph.attr({"stroke-width":e.borderWidth,fill:e.fillColor||"none",stroke:e.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())};c.prototype.drawPoints=function(){var a=this.chart.renderer;this.points.forEach(function(c){c.graphic&&c.hasNewShapeType()&&(c.graphic=c.graphic.destroy());c.graphic|| (c.graphic=a[c.shapeType](c.shapeArgs).add(c.series.group),c.delayedRendering=!0)})};c.prototype.generatePoints=function(){a.prototype.generatePoints.call(this);this.updateTotals()};c.prototype.getX=function(a,c,f){var g=this.center,b=this.radii?this.radii[f.index]||0:g[2]/2;a=Math.asin(e((a-g[1])/(b+f.labelDistance),-1,1));return g[0]+(c?-1:1)*Math.cos(a)*(b+f.labelDistance)+(01.5*Math.PI?x-=2*Math.PI:x<-Math.PI/2&&(x+=2*Math.PI);w.slicedTranslation={translateX:Math.round(Math.cos(x)*e),translateY:Math.round(Math.sin(x)*e)};C=Math.cos(x)*a[2]/2;var A=Math.sin(x)*a[2]/2;w.tooltipPos=[a[0]+.7*C,a[1]+.7*A];w.half=x<-Math.PI/2||x>Math.PI/2?1:0;w.angle=x;y=Math.min(f,w.labelDistance/5);w.labelPosition={natural:{x:a[0]+C+ Math.cos(x)*w.labelDistance,y:a[1]+A+Math.sin(x)*w.labelDistance},"final":{},alignment:0>w.labelDistance?"center":w.half?"right":"left",connectorPosition:{breakAt:{x:a[0]+C+Math.cos(x)*y,y:a[1]+A+Math.sin(x)*y},touchingSliceAt:{x:a[0]+C,y:a[1]+A}}}}p(this,"afterTranslate")};c.prototype.updateTotals=function(){var a=this.points,c=a.length,e=this.options.ignoreHiddenPoint,f,b=0;for(f=0;ft&&(a.dataLabel.css({width:Math.round(.7* t)+"px"}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),y.forEach(function(e,f){var h=e.length,l=[],m;if(h){a.sortByAngle(e,f-.5);if(0n-d&&0===f&&(r=Math.round(M+U-n+d),C[1]=Math.max(r,C[1])),0>V-T/2?C[0]=Math.max(Math.round(-V+T/2),C[0]):V+T/2>p&&(C[2]=Math.max(Math.round(V+T/2-p),C[2])), K.sideOverflow=r)}}}),0===u(C)||this.verifyDataLabelOverflow(C))&&(this.placeDataLabels(),this.points.forEach(function(d){R=e(g,d.options.dataLabels);if(E=c(R.connectorWidth,1)){var f;H=d.connector;if((K=d.dataLabel)&&K._pos&&d.visible&&0c.bottom-2?e:b,c.half,c)},justify:function(a,c,b){return b[0]+(a.half?-1:1)*(c+a.labelDistance)},alignToPlotEdges:function(a,c,b,e){a=a.getBBox().width;return c?a+e:b-a-e},alignToConnectors:function(a,c,b,e){var d=0,f;a.forEach(function(a){f=a.dataLabel.getBBox().width;f>d&&(d=f)});return c?d+e:b-d-e}};f.compose=function(c){a.compose(A);-1===x.indexOf(c)&& (x.push(c),c=c.prototype,c.dataLabelPositioners=z,c.alignDataLabel=C,c.drawDataLabels=g,c.placeDataLabels=t,c.verifyDataLabelOverflow=w)}})(g||(g={}));return g});K(f,"Extensions/OverlappingDataLabels.js",[f["Core/Chart/Chart.js"],f["Core/Utilities.js"]],function(a,f){function C(a,f){var e=!1;if(a){var c=a.newOpacity;a.oldOpacity!==c&&(a.alignAttr&&a.placed?(a[c?"removeClass":"addClass"]("highcharts-data-label-hidden"),e=!0,a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,function(){f.styledMode|| a.css({pointerEvents:c?"auto":"none"})}),w(f,"afterHideOverlappingLabel")):a.attr({opacity:c}));a.isOld=!0}return e}var H=f.addEvent,w=f.fireEvent,E=f.isArray,I=f.isNumber,A=f.objectEach,u=f.pick;H(a,"render",function(){var a=this,f=[];(this.labelCollectors||[]).forEach(function(a){f=f.concat(a())});(this.yAxis||[]).forEach(function(a){a.stacking&&a.options.stackLabels&&!a.options.stackLabels.allowOverlap&&A(a.stacking.stacks,function(a){A(a,function(a){a.label&&f.push(a.label)})})});(this.series|| []).forEach(function(e){var c=e.options.dataLabels;e.visible&&(!1!==c.enabled||e._hasPointLabels)&&(c=function(c){return c.forEach(function(c){c.visible&&(E(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[]).forEach(function(e){var g=e.options;e.labelrank=u(g.labelrank,c.labelrank,c.shapeArgs&&c.shapeArgs.height);g.allowOverlap?(e.oldOpacity=e.opacity,e.newOpacity=1,C(e,a)):f.push(e)})})},c(e.nodes||[]),c(e.points))});this.hideOverlappingLabels(f)});a.prototype.hideOverlappingLabels=function(a){var f= this,e=a.length,c=f.renderer,n,g,t,q=!1;var u=function(a){var e,f=a.box?0:a.padding||0,b=e=0,g;if(a&&(!a.alignAttr||a.placed)){var d=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var k=a.parentGroup;a.width||(e=a.getBBox(),a.width=e.width,a.height=e.height,e=c.fontMetrics(null,a.element).h);var n=a.width-2*f;(g={left:"0",center:"0.5",right:"1"}[a.alignValue])?b=+g*n:I(a.x)&&Math.round(a.x)!==a.translateX&&(b=a.x-a.translateX);return{x:d.x+(k.translateX||0)+f-(b||0),y:d.y+(k.translateY||0)+f-e,width:a.width- 2*f,height:a.height-2*f}}};for(g=0;g=y.x+y.width||x.x+x.width<=y.x||x.y>=y.y+y.height||x.y+x.height<=y.y||((u.labelrank=A(e.minWidth, 0)&&this.chartHeight>=A(e.minHeight,0)}).call(this)&&c.push(a._id)};a.prototype.setResponsive=function(a,c){var e=this,f=this.options.responsive,g=this.currentResponsive,k=[];!c&&f&&f.rules&&f.rules.forEach(function(a){"undefined"===typeof a._id&&(a._id=n());e.matchResponsiveRule(a,k)},this);c=E.apply(void 0,k.map(function(a){return B((f||{}).rules||[],function(c){return c._id===a})}).map(function(a){return a&&a.chartOptions}));c.isResponsiveOptions=!0;k=k.toString()||void 0;k!==(g&&g.ruleIds)&&(g&& this.update(g.undoOptions,a,!0),k?(g=this.currentOptions(c),g.isResponsiveOptions=!0,this.currentResponsive={ruleIds:k,mergedOptions:c,undoOptions:g},this.update(c,a,!0)):this.currentResponsive=void 0)};return a}()})(k||(k={}));"";"";return k});K(f,"masters/highcharts.src.js",[f["Core/Globals.js"],f["Core/Utilities.js"],f["Core/DefaultOptions.js"],f["Core/Animation/Fx.js"],f["Core/Animation/AnimationUtilities.js"],f["Core/Renderer/HTML/AST.js"],f["Core/FormatUtilities.js"],f["Core/Renderer/RendererUtilities.js"], f["Core/Renderer/SVG/SVGElement.js"],f["Core/Renderer/SVG/SVGRenderer.js"],f["Core/Renderer/HTML/HTMLElement.js"],f["Core/Renderer/HTML/HTMLRenderer.js"],f["Core/Axis/Axis.js"],f["Core/Axis/DateTimeAxis.js"],f["Core/Axis/LogarithmicAxis.js"],f["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],f["Core/Axis/Tick.js"],f["Core/Tooltip.js"],f["Core/Series/Point.js"],f["Core/Pointer.js"],f["Core/MSPointer.js"],f["Core/Legend/Legend.js"],f["Core/Chart/Chart.js"],f["Core/Series/Series.js"],f["Core/Series/SeriesRegistry.js"], f["Series/Column/ColumnSeries.js"],f["Series/Column/ColumnDataLabel.js"],f["Series/Pie/PieSeries.js"],f["Series/Pie/PieDataLabel.js"],f["Core/Series/DataLabel.js"],f["Core/Responsive.js"],f["Core/Color/Color.js"],f["Core/Time.js"]],function(a,f,B,H,w,E,I,A,u,n,k,e,c,p,g,t,q,F,y,x,z,m,h,b,l,d,D,v,r,K,P,S,N){a.animate=w.animate;a.animObject=w.animObject;a.getDeferredAnimation=w.getDeferredAnimation;a.setAnimation=w.setAnimation;a.stop=w.stop;a.timers=H.timers;a.AST=E;a.Axis=c;a.Chart=h;a.chart=h.chart; a.Fx=H;a.Legend=m;a.PlotLineOrBand=t;a.Point=y;a.Pointer=z.isRequired()?z:x;a.Series=b;a.SVGElement=u;a.SVGRenderer=n;a.Tick=q;a.Time=N;a.Tooltip=F;a.Color=S;a.color=S.parse;e.compose(n);k.compose(u);a.defaultOptions=B.defaultOptions;a.getOptions=B.getOptions;a.time=B.defaultTime;a.setOptions=B.setOptions;a.dateFormat=I.dateFormat;a.format=I.format;a.numberFormat=I.numberFormat;a.addEvent=f.addEvent;a.arrayMax=f.arrayMax;a.arrayMin=f.arrayMin;a.attr=f.attr;a.clearTimeout=f.clearTimeout;a.correctFloat= f.correctFloat;a.createElement=f.createElement;a.css=f.css;a.defined=f.defined;a.destroyObjectProperties=f.destroyObjectProperties;a.discardElement=f.discardElement;a.distribute=A.distribute;a.erase=f.erase;a.error=f.error;a.extend=f.extend;a.extendClass=f.extendClass;a.find=f.find;a.fireEvent=f.fireEvent;a.getMagnitude=f.getMagnitude;a.getStyle=f.getStyle;a.inArray=f.inArray;a.isArray=f.isArray;a.isClass=f.isClass;a.isDOMElement=f.isDOMElement;a.isFunction=f.isFunction;a.isNumber=f.isNumber;a.isObject= f.isObject;a.isString=f.isString;a.keys=f.keys;a.merge=f.merge;a.normalizeTickInterval=f.normalizeTickInterval;a.objectEach=f.objectEach;a.offset=f.offset;a.pad=f.pad;a.pick=f.pick;a.pInt=f.pInt;a.relativeLength=f.relativeLength;a.removeEvent=f.removeEvent;a.seriesType=l.seriesType;a.splat=f.splat;a.stableSort=f.stableSort;a.syncTimeout=f.syncTimeout;a.timeUnits=f.timeUnits;a.uniqueKey=f.uniqueKey;a.useSerialIds=f.useSerialIds;a.wrap=f.wrap;D.compose(d);K.compose(b);p.compose(c);g.compose(c);r.compose(v); t.compose(c);P.compose(h);return a});f["masters/highcharts.src.js"]._modules=f;return f["masters/highcharts.src.js"]}); //# sourceMappingURL=highcharts.js.map