/* FusionCharts JavaScript Library Copyright FusionCharts Technologies LLP License Information at @version 3.10.1 */ FusionCharts.register("module",["private","modules.renderer.js-messagelogger",function(){var V=this.hcLib,mb=V.Raphael,Fa,eb=V.isIE,qa=V.graphics.HEXtoRGB,I=V.graphics.convertColor,Ga,J,Ta,Ka,q,E,h,Ua,Ba,U,Y,fa,ta,Na,ub=this.window,pa=ub.document,zb=8===pa.documentMode,na=!0,da=!1,L=V.pluck,xa=V.pluckNumber,Ab=V.FC_CONFIG_STRING,Ya={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"},v=function(h,q){var y=this,E;q||(q="");for(E=y.indexOf(h);-1!==E;)y=y.replace(h, q),E=y.indexOf(h);return y};Na=function(v,L,y){var J=v.hcJSON,Y=J&&J[Ab],U=L&&L.chartWidth,ca=L&&L.chartHeight,J=Ka/100*U,ta=q/100*ca,ka=(U-J)/2,ja=(ca-ta)/2,xa=J-18-22,ra=ta-18-22,pa=Ua,qa=Ua;v=y.html("div",{fill:"transparent",width:U,height:ca},{fontSize:"10px",lineHeight:"15px",fontFamily:(Y&&Y.inCanvasStyle||v.inCanvasStyle).fontFamily},L&&L.container);v.veil=y.html("div",{id:"veil",fill:"000000",width:U,height:ca,opacity:.1},void 0,v).on("click",function(){fa&&V.messageLogger.close()});h&&E&& (v.title=y.html("p",{id:"Title",innerHTML:h,x:5,y:5},{"font-weight":"bold"},v));v.dialog=y.html("div",{id:"dialog",x:ka,y:ja,fill:"ffffff",strokeWidth:1,stroke:pa,width:J,height:ta},{borderRadius:"5px",boxShadow:"1px 1px 3px #000000","-webkit-border-radius":"5px","-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'},v);v.logBackground=y.html("div",{id:"dialogBackground",x:0,y:0,fill:qa,width:J,height:ta},void 0,v.dialog); fa&&(v.closeBtnContainer=y.html("div",{id:"closeBtnContainer",width:18,height:18,x:ka+J-21,y:ja+3},{},v),L=new mb("closeBtnContainer",18,18),U=L.group("closeGroup"),v.closeButton=L.symbol("closeIcon",0,0,6,U).attr({transform:"t9,9","stroke-width":2,stroke:I("999999"),ishot:!0,"stroke-linecap":"round","stroke-linejoin":"round"}).css({cursor:"pointer",_cursor:"hand"}).click(function(){V.messageLogger.close()}));v.logWrapper=y.html("div",{id:"logWrapper",x:(J-xa)/2,y:(ta-ra)/2,width:xa,height:ra},{overflow:"auto"}, v.dialog).on("scroll",function(){var h=this&&this.scrollTop,q=this&&this.scrollHeight,y=this&&this.offsetHeight;da?da=!1:na=q-h===y?!0:!1});v.log=y.html("div",{id:"log",x:0,y:0},{},v.logWrapper);v.hide();return v};Fa=function(h,q,y,v){if(V.messageLogger)return V.messageLogger;this.chart=h;this.instanceAPI=q;this.renderer=y;this.paper=v;this.menuCreated=!1;this.log=(h=this.ui=Na(q,y,v))&&h.log;h&&this.updateStatus("INITIALIZED")};Fa.prototype={STATUS:"",updateStatus:function(h){var q=this.renderer, q=q&&q.menu instanceof Array&&q.menu[0];this.status=h;switch(q&&this.status.toLowerCase()){case "initialized":Ga?q.hideItem(4):q.hideItem(1);break;case "closed":Ga?q.showItem(3):q.showItem(0);Ga?q.hideItem(4):q.hideItem(1);break;case "active":Ga?q.showItem(4):q.showItem(1),Ga?q.hideItem(3):q.hideItem(0)}},appendMessage:function(h){var q=this.status,y=L(h.msgid,""),E=L(h.msgtitle,""),J=L(h.msgtext,""),I=h&&L(h.msgtype,"literal"),ca=h&&!!xa(h.clearlog,0),ta=h&&!!xa(h.hidelog,0),ka=h&&!!xa(h.showlog, 0),ja=h&&!!xa(h.msggoestolog,Ta),Ka=h&&!!xa(h.msggoestojs,Ba);ja&&"INITIALIZED"===q&&this.updateStatus("CLOSED");ta&&this.close();ca&&this.clear();ka&&this.open();ja&&"ACTIVE"!==this.status&&this.show();if((""!==E&&void 0!==E||""!==J&&void 0!==J)&&this.log&&ja){var q=this.log,ca=h&&h.msgtitle,ta=h&&h.msgtext,ka=h&&L(h.msgtype,"literal"),ra,V;h="";var fa,ya,ha;q&&q.element&&(fa=q.element);fa&&(ya=fa.parentElement);ca&&(ca+=" : ");switch(ka.toLowerCase()){case "info":ca&&(ra='$titleVal$'); ta&&(V="$msgVal$");break;case "literal":ca&&(ra='$titleVal$');ta&&(V="$msgVal$");break;case "error":ca&&(ra='$titleVal$');ta&&(V='$msgVal$');break;case "link":ca&&(ra='$titleVal$');ta&&(V='$msgVal$');break;default:ca&&(ra='$titleVal$'),ta&&(V="$msgVal$")}ra&& (ra=ra.replace("$titleVal$",ca),h+=ra);V&&(V=v.call(V,"$msgVal$",ta),h+=V);if(fa&&h){ra=pa.createElement("span");for(ha in Ya)ra.style[ha]=Ya[ha];ra.innerHTML=h;fa.appendChild&&fa.appendChild(ra);eb&&zb&&(ha=fa.innerHTML,fa.innerHTML=ha);na&&(da=!0,fa=ya.scrollHeight,ya.scrollTop=fa)}eb||(this.ui.element.scrollHeight+=30,this.ui.element.scrollTop=this.ui.element.scrollHeight)}Ka&&U&&(Ka=ub[U],"function"===typeof Ka&&(Y?Ka(y,E,J,I):Ka(J)))},hide:function(){"ACTIVE"===this.status&&(this.ui.hide(),this.updateStatus("BEFORE CLOSE"))}, close:function(){"ACTIVE"===this.status&&(this.ui.hide(),this.updateStatus("CLOSED"))},open:function(){"ACTIVE"!==this.status&&(this.ui.show(),this.updateStatus("ACTIVE"))},show:function(){"ACTIVE"!==this.status&&"CLOSED"!==this.status&&(this.ui.show(),this.updateStatus("ACTIVE"))},clear:function(){var h=this.log;if(h=h&&h.element)for(;h.hasChildNodes();)h.removeChild(h.lastChild)},destroy:function(){this.hide();this.updateStatus("DESTROYED");V.messageLogger=null;delete V.messageLogger;return null}}; Fa.prototype.constructor=Fa;this.core.addEventListener(["rendered","dataupdated","resized"],function(v){var L=v&&v.sender;v=v&&v.eventType;var y=L&&L.jsVars,I=y&&y.hcObj,da=I&&I.options,na=y&&y.instanceAPI,ca=na&&na.renderer,I=ca&&ca.paper,da=da&&da.chart,pa=L&&L.options,pa=pa&&pa.renderer,ka=V&&V.messageLogger,ja=ka&&ka.status,Ya=y&&y._reflowData,ra=Ya&&Ya._messageLogger||{},y=ra&&ra.appendedMessages,Na;if(!pa||"javascript"===pa.toLowerCase())if(J=da&&da.useMessageLog){da&&(Ga=da.showRTMenuItem, Ta=da.messageGoesToLog,Ba=da.messageGoesToJS,U=da.messageJSHandler,Y=da.messagePassAllToJS,Ka=da.messageLogWPercent,q=da.messageLogHPercent,E=da.messageLogShowTitle,h=da.messageLogTitle,fa=da.messageLogIsCancelable,Ua=da.messageLogColor,Ua=Ua.replace(/^#?([a-f0-9]+)/ig,"$1"),qa(Ua),ta=da.alwaysShowMessageLogMenu);ka&&(ka=V.messageLogger=ka.destroy());Na=(ka=V.messageLogger=new Fa(L,na,ca,I))&&ka.ui&&ka.ui.log&&ka.ui.log.element;if("resized"===v)switch(y&&(Na.innerHTML=y),ja.toLowerCase()){case "active":ka.ui.show(); ka.updateStatus(ja);break;case "closed":ka.updateStatus(ja)}ta&&(ka.menuCreated=!0);L.addEventListener("RealTimeUpdateComplete",function(h,q){var y=q&&q.updateObject,v=y&&y.msgtitle,E=y&&y.msgtext,I=y&&xa(y.showlog,0),da=y&&xa(y.hidelog,0),Y=y&&xa(y.clearlog,0);if(v||E||I||da||Y)!J||Ga||!Ta||ta||ka.menuCreated||(na.drawMLMenuButtons.call(ca,L),ka.menuCreated=!0),ka.appendMessage(y),ra.appendedMessages=Na&&Na.innerHTML,Ya._messageLogger=ra});L.addEventListener("beforeDispose",function(){ka&&ka.destroy()})}})}]); FusionCharts.register("module",["private","modules.renderer.js-realtime",function(){var V=this,mb=V.window,Fa=Math,eb=Fa.random,qa=Fa.max,I=V.hcLib.pluckNumber,Ga=function(I,q,E){clearTimeout(E);return setTimeout(I,q)},J,Ta;J=function(I){var q=I.sender,E=q.jsVars;I=q.__state;var h=E.instanceAPI,J=h.hcJSON,Ba=h.numberFormatter,U=J&&J.alerts&&J.alerts.alert||[],E=E._rtLastUpdatedData&&E._rtLastUpdatedData.values,Y=U.length,fa;if(E&&E.length){h=function(h){var E,I=Ba.getCleanValue(h),J,fa=function(h){return function(){eval(h.param)}}; for(J=0;J=I){if("1"!==h.occuronce||!h.hasOccurred){h.hasOccurred=!0;h.state="1";switch(E){case "calljs":setTimeout(fa(h),0);break;case "showannotation":q.showAnnotation&&q.showAnnotation(h.param)}V.raiseEvent("AlertComplete",{alertValue:I,alertMaxValue:h.maxvalue,alertMinValue:h.minvalue},q)}}else"showannotation"===E&&"1"===h.state&&q.hideAnnotation&&q.hideAnnotation(h.param),h.state="2"};J=qa(E.length,0);for(fa=0;fa=fa?(E._toRealtime=clearTimeout(E._toRealtime),pa&&pa.abort()):10>fa&&(fa=10),E._toClearChart= clearTimeout(E._toClearChart),0ta?ta=10:E._toClearChart=setTimeout(Ta,ta)),E._rtStaticRefreshMS=fa,Y&&(void 0===E._rtPaused&&(E._rtPaused=!1),E._rtDataUrl=Na,E.lastSetValues=null,pa=E._rtAjaxObj||(E._rtAjaxObj=new V.ajax),pa.onSuccess=function(I,L,J,Y){if(!q.disposed){var U=h.hcObj&&h.hcObj.logic;J=U.linearDataParser&&U.linearDataParser(I,U.multisetRealtime);E._rtAjaxLatencyStart&&(E._rtAjaxLatency=new Date-E._rtAjaxLatencyStart);if(q.isActive()&&J&&qa&&(qa.realtimeUpdate||U.realtimeUpdate)){Fa= J.dataStamp?J.dataStamp:null;J.interval=1E3>fa?fa:1E3;L=q.getDataJSON();qa.realtimeUpdate?qa.realtimeUpdate(J):U.realtimeUpdate(J);h._rtLastUpdatedData=U.multisetRealtime?J:q.getDataJSON();U=(U.realtimeDrawingLatency||0)+(E._rtAjaxLatency||0);V.raiseEvent("realtimeUpdateComplete",{data:I,updateObject:J,prevData:L.values,source:"XmlHttpRequest",url:Y,networkLatency:E._rtAjaxLatency,latency:U},Ka.sender);try{mb.FC_ChartUpdated&&mb.FC_ChartUpdated(Ka.sender.id)}catch(v){setTimeout(function(){throw v; },1)}E._rtPaused||(U>=E._rtStaticRefreshMS&&(U=E._rtStaticRefreshMS-1),E._toRealtime=setTimeout(na,E._rtStaticRefreshMS-U))}else E._toRealtime=clearTimeout(E._toRealtime)}},pa.onError=function(h,J,I,U){E._rtAjaxLatencyStart&&(E._rtAjaxLatency=new Date-E._rtAjaxLatencyStart);V.raiseEvent("realtimeUpdateError",{source:"XmlHttpRequest",url:U,xmlHttpRequestObject:J.xhr,error:h,httpStatus:J.xhr&&J.xhr.status?J.xhr.status:-1,networkLatency:E._rtAjaxLatency},Ka.sender);E._toRealtime=q.isActive()?setTimeout(na, fa):clearTimeout(E._toRealtime)},E._rtPaused||(E._toRealtime=Ga(na,U>fa?U:fa,E._toRealtime))),q.removeEventListener("realtimeUpdateComplete",J),Ba.dataObj&&Ba.dataObj.alerts&&Ba.dataObj.alerts&&Ba.dataObj.alerts.alert&&Ba.dataObj.alerts.alert.length&&q.addEventListener("realtimeUpdateComplete",J))};V.addEventListener(["beforeDataUpdate","beforeRender"],function(J){J=J.sender;var q=J.__state;J.jsVars&&(J.jsVars._rtLastUpdatedData=null);q._toRealtime&&(q._toRealtime=clearTimeout(q._toRealtime));q._toClearChart&& (q._toClearChart=clearTimeout(q._toClearChart));q._rtAjaxLatencyStart=null;q._rtAjaxLatency=null});V.addEventListener(["renderComplete","dataUpdated"],function(J){var q=J.sender.__state;q&&(void 0===q.rtPreInit&&(q.rtPreInit=!1),q._rtPaused&&delete q._rtPaused,q.rtStateChanged||(q.rtStateChanged=!0,Ta.apply(this,arguments)))});V.core.addEventListener("beforeDispose",function(J){J=J.sender.__state;J._toRealtime&&(J._toRealtime=clearTimeout(J._toRealtime));J._toClearChart&&(J._toClearChart=clearTimeout(J._toClearChart))}); V.core.addEventListener("drawComplete",Ta)}]); FusionCharts.register("module",["private","modules.renderer.js-widgets",function(){function V(){}function mb(a,e,c,d){e=h(e,d);a=h(a,c);return e&&a?a/c==e/d?c/a:Math.min(c/a,d/e):1}function Fa(a,e){var c=a.labels,d=c._textY,b=c._righttX,c=c._leftX,f,n,g=e.length;for(f=0;fb.maxvalue&&(g=b.minvalue,b.minvalue=b.maxvalue,b.maxvalue=g);a.sort(Nb);a[0].code||(a[0].code=c[0]);void 0===E(a[0].alpha)&&(a[0].alpha=Ia);f=0;for(n=a.length-1;fd.minvalue){if(b.maxvalue>d.maxvalue){g=Y(b);g.maxvalue=b.maxvalue;m=g.minvalue=d.maxvalue;for(p=f+2;pb;b++)e[b]+=parseInt(255*a,10),0>e[b]&&(e[b]=0),255< e[b]&&(e[b]=255)}return this},setOpacity:function(a){e[3]=a;return this}}},ya=Y({},I.defaultGaugePaletteOptions);V.prototype={numDecimals:function(a){a=Cb(a,10);a=Math.abs(a);a=Cb(a-Math.floor(a),10);a=String(a).length-2;return 0>a?0:a},toRadians:function(a){return a/180*Math.PI},toDegrees:function(a){return a/Math.PI*180},flashToStandardAngle:function(a){return-1*a},standardToFlashAngle:function(a){return-1*a},flash180ToStandardAngle:function(a){var e=360-(0>(a%=360)?a+360:a);return 360==e?0:e}, getAngularPoint:function(a,e,c,d){d*=Math.PI/180;return{x:a+c*Math.cos(d),y:e-c*Math.sin(d)}},remainderOf:function(a,e){var c=a%e,d=void 0,d=ia(10,void 0===d?2:d),c=ha(Number(String(c*d)));return c/=d},boundAngle:function(a){return 0<=a?V.prototype.remainderOf(a,360):360-V.prototype.remainderOf(Math.abs(a),360)},toNearestTwip:function(a){var e=0>a?-1:1;a=ha(100*Math.abs(a));var c=Math.floor(a/5);return(2a&&(a=b),fMath.abs(a)/f&&2>Math.abs(e)/f&&(n--,f=ia(10,n));n=ia(10,Math.floor(Math.log(a-e)/Math.LN10));0e?g=-1*(Math.floor(Math.abs(e/f))+1)*f:this.setMinAsZero?g=0:(g=Math.floor(Math.abs(e/ f)-1)*f,g=0>g?0:g);this.stopMaxAtZero&&0>=a&&(n=0);this.max=!1===this.userMaxGiven||!0===this.userMaxGiven&&be&&c?g:Number(this.userMin);this.min>this.max?this.min==Number(this.userMin)&&this.max==b?(c=this.min,this.min=this.max,this.max=c):this.min==Number(this.userMin)?this.max=this.min+1:this.max==b&&(this.min=this.max-1):this.min==this.max&&(this.max=this.min+1);this.range=Math.abs(this.max-this.min);this.interval= f;this.calcTickInterval()},calcTickInterval:function(){var a,e,c=0;-1!=this.numMajorTM&&2>this.numMajorTM&&(this.numMajorTM=2);!1===this.userMinGiven&&!1===this.userMaxGiven&&-1!==this.numMajorTM?(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,a=this.getDivisibleRange(this.min,this.max,this.numMajorTM,this.interval,!0),e=a-this.range,this.range=a,0b.numMajorTM?++c:c;if(25this.MathExt.numDecimals(c)?!1:!0},getDivisibleRange:function(a,e,c,d, b){if(3>c)return this.range;a=Math.abs(e-a);e=a/(c-1);this.isRangeDivisible(a,c,d)||(b&&Number(e)/Number(d)<(1b.palette?b.palette:h(this.paletteIndex,1);--w;u.paletteIndex= w;f=Y({},d.colorrange);this.colorRangeGetter=new eb(f.color,void 0,this.defaultPaletteOptions.paletteColors[w],this);u.events.click=l.plotOptions.series.point.events.click=this.linkClickFN;void 0!==q(b.clickurl)&&(u.link=b.clickurl,u.style.cursor="pointer",l.plotOptions.series.point.events.click=function(){u.events.click.call({link:b.clickurl})});C=q(b.basefont,"Verdana,sans");F=Rb(b.basefontsize,10);x=q(b.basefontcolor,g.getColor("baseFontColor"));f=q(b.outcnvbasefont,C);z=Rb(b.outcnvbasefontsize, F);w=z+ob;W=q(b.outcnvbasefontcolor,x).replace(/^#?([a-f0-9]+)/ig,"#$1");F+=ob;x=x.replace(/^#?([a-f0-9]+)/ig,"#$1");this.trendStyle=this.outCanvasStyle={fontFamily:f,color:W,fontSize:w};A=Oa(this.trendStyle);this.inCanvasStyle={fontFamily:C,fontSize:F,color:x};B=Oa(this.inCanvasStyle);k.trendStyle=k.outCanvasStyle={fontFamily:f,color:W,fontSize:w};Y(l.legend,{title:{style:{fontFamily:q(b.legendcaptionfont,f),fontSize:h(b.legendcaptionfontsize,z)+"px",color:ta(q(b.legendcaptionfontcolor,W)),fontWeight:h(b.legendcaptionfontbold, 1)?"bold":"normal"},align:cc[q(b.legendcaptionalignment)]},itemStyle:{fontFamily:q(b.legenditemfont,f),fontSize:h(b.legenditemfontsize,z)+"px",color:ta(q(b.legenditemfontcolor,W)),fontWeight:h(b.legenditemfontbold)?"bold":"normal"},itemHiddenStyle:{fontFamily:f,fontSize:z+"px",color:ta(q(b.legenditemhiddencolor,W))},itemHoverStyle:{color:ta(q(b.legenditemhoverfontcolor,b.legenditemfontcolor,W))}});l.legend.title.style.lineHeight=Oa(l.legend.title.style);l.legend.itemStyle.lineHeight=Oa(l.legend.itemStyle); l.legend.itemHiddenStyle.lineHeight=Oa(l.legend.itemHiddenStyle);k=(k=pa(b.valuebordercolor,J))?L(k,h(b.valueborderalpha,b.valuealpha,100)):J;k=r.series.dataLabels.style={fontFamily:q(b.valuefont,C),fontSize:q(b.valuefontsize,parseInt(F,10))+ob,color:L(q(b.valuefontcolor,x),h(b.valuefontalpha,b.valuealpha,100)),fontWeight:h(b.valuefontbold)?"bold":"normal",fontStyle:h(b.valuefontitalic)?"italic":"normal",border:k||b.valuebgcolor?h(b.valueborderthickness,1)+"px solid":void 0,borderColor:k,borderThickness:h(b.valueborderthickness, 1),borderPadding:h(b.valueborderpadding,2),borderRadius:h(b.valueborderradius,0),backgroundColor:b.valuebgcolor?L(b.valuebgcolor,h(b.valuebgalpha,b.valuealpha,100)):J,borderDash:h(b.valueborderdashed,0)?fa(h(b.valueborderdashlen,4),h(b.valueborderdashgap,2),h(b.valueborderthickness,1)):"none"};Oa(k);r.series.dataLabels.color=k.color;this.isDataLabelBold&&(k.fontWeight="bold",delete k.lineHeight,Oa(k));l.tooltip.style={fontFamily:C,fontSize:F,lineHeight:B,color:x};l.title.style={fontFamily:q(b.captionfont, f),color:q(b.captionfontcolor,W).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.captionfontsize,z+3)+ob,fontWeight:0===h(b.captionfontbold)?"normal":"bold"};l.title.align=q(b.captionalignment,Va);l.title.isOnTop=h(b.captionontop,1);l.title.alignWithCanvas=h(b.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1);l.title.horizontalPadding=h(b.captionhorizontalpadding,l.title.alignWithCanvas?0:15);Oa(l.title.style);l.subtitle.style={fontFamily:q(b.subcaptionfont,b.captionfont,f),color:q(b.subcaptionfontcolor, b.captionfontcolor,W).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.subcaptionfontsize,h(Ca(h(b.captionfontsize)-3,-1),z)+h(this.subTitleFontSizeExtender,1))+ob,fontWeight:0===h(b.subcaptionfontbold,this.subTitleFontWeight,b.captionfontbold)?"normal":"bold"};l.subtitle.align=l.title.align;l.subtitle.isOnTop=l.title.isOnTop;l.subtitle.alignWithCanvas=l.title.alignWithCanvas;l.subtitle.horizontalPadding=l.title.horizontalPadding;Oa(l.subtitle.style);l.chart.trendPointStyle={style:this.trendStyle}; l.orphanStyles={defaultStyle:{style:Y({},this.inCanvasStyle)}};l.chart.colorRangeStyle={style:{fontFamily:C,fontSize:F,lineHeight:B,color:x}};Oa(l.chart.colorRangeStyle);k=h(b.scaleonresize,1);u.origW=r=h(b.origw,k?this.origRenderWidth:a);u.origH=k=h(b.origh,k?this.origRenderHeight:e);r=(u.autoScale=C=h(b.autoscale,1))?mb(r,k,a,e):1;this.scaleFactor=u.scaleFactor=r;this.createGaugeAxis&&this.createGaugeAxis(d,l,{fontFamily:f,fontSize:w,lineHeight:A,color:W});this.parseStyles(l);delete l.xAxis.labels.style.backgroundColor; delete l.xAxis.labels.style.borderColor;delete l.yAxis[0].labels.style.backgroundColor;delete l.yAxis[0].labels.style.borderColor;delete l.yAxis[1].labels.style.backgroundColor;delete l.yAxis[1].labels.style.borderColor;this.showTooltip=h(b.showtooltip,this.showtooltip,1);this.tooltipSepChar=q(b.tooltipsepchar,Sb);this.showValues=h(b.showvalues,b.showvalue,this.showValues,1);this.seriesNameInToolTip=h(b.seriesnameintooltip,1);this.showTooltip||(l.tooltip.enabled=!1);l.plotOptions.series.connectNullData= h(b.connectnulldata,0);u.backgroundColor={FCcolor:{color:q(b.bgcolor,g.getColor(p.bgColor)),alpha:q(b.bgalpha,g.getColor(p.bgAlpha)),angle:q(b.bgangle,g.getColor(p.bgAngle)),ratio:q(b.bgratio,g.getColor(p.bgRatio))}};p=h(b.showborder,t?0:1);u.borderWidth=p?h(b.borderthickness,1):0;u.borderRadius=h(b.borderradius,0);u.borderDashStyle=h(b.borderdashed,0)?fa(h(b.borderdashlen,4),h(b.borderdashgap,2),u.borderWidth):"none";u.borderColor=L(q(b.bordercolor,t?"#666666":g.getColor("borderColor")),q(b.borderalpha, t?"100":g.getColor("borderAlpha")));u.plotBackgroundColor=u.plotBorderColor=Ya;u.plotBorderWidth=0;u.plotShadow=0;u.bgSWF=q(b.bgimage,b.bgswf);u.bgSWFAlpha=h(b.bgimagealpha,b.bgswfalpha,100);t=q(b.bgimagedisplaymode,"none").toLowerCase();p=E(b.bgimagevalign,J).toLowerCase();f=E(b.bgimagehalign,J).toLowerCase();"tile"==t||"fill"==t||"fit"==t?(p!=cb&&p!=Aa&&p!=rb&&(p=Aa),"left"!=f&&f!=Aa&&"right"!=f&&(f=Aa)):(p!=cb&&p!=Aa&&p!=rb&&(p=cb),"left"!=f&&f!=Aa&&"right"!=f&&(f="left"));u.bgImageDisplayMode= t;u.bgImageVAlign=p;u.bgImageHAlign=f;u.bgImageScale=h(b.bgimagescale,100);u.logoURL=E(b.logourl);u.logoPosition=q(b.logoposition,"tl").toLowerCase();u.logoAlpha=h(b.logoalpha,100);u.logoLink=E(b.logolink);u.logoScale=h(b.logoscale,100);u.logoLeftMargin=h(b.logoleftmargin,0);u.logoTopMargin=h(b.logotopmargin,0);u.annRenderDelay=E(b.annrenderdelay);t=l.tooltip.style;t.backgroundColor=L(q(t.backgroundColor,b.tooltipbgcolor,b.hovercapbgcolor,b.hovercapbg,g.getColor("toolTipBgColor")),q(b.tooltipbgalpha, 100));t.borderColor=L(q(t.borderColor,b.tooltipbordercolor,b.hovercapbordercolor,b.hovercapborder,g.getColor("toolTipBorderColor")),q(b.tooltipborderalpha,100));l.tooltip.constrain=h(b.constraintooltip,1);l.tooltip.shadow=h(b.showtooltipshadow,b.showshadow,1)?{enabled:!0,opacity:Ca(h(b.tooltipbgalpha,100),h(b.tooltipborderalpha,100))/100}:!1;t.borderWidth=h(b.tooltipborderthickness,1)+"px";b.tooltipborderradius&&(t.borderRadius=h(b.tooltipborderradius,1)+"px");l.tooltip.style.padding=h(b.tooltippadding, this.tooltippadding,3)+"px";b.tooltipcolor&&(t.color=zb(b.tooltipcolor));u.rotateValues=h(b.rotatevalues,0);u.placeValuesInside=h(b.placevaluesinside,0);u.valuePosition=b.valueposition;u.valuePadding=h(b.valuepadding,4);l.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,this.defaultPlotShadow,this.colorManager.getColor("showShadow"));u.useRoundEdges&&(l.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,1),l.plotOptions.series.borderRadius=1,l.tooltip.borderRadius=2);l.title.text= ca(b.caption);l.subtitle.text=ca(b.subcaption);b.showtooltip==fb&&(l.tooltip.enabled=!1);g=h(b.plotspacepercent,20);if(80g)g=20;this.plotSpacePercent=l.plotOptions.series.groupPadding=g/200;this.parseExportOptions(l);u.dataStreamURL=q(b.datastreamurl,"");u.refreshInterval=h(b.refreshinterval,1);u.dataStamp=b.datastamp;u.useMessageLog=h(b.usemessagelog,0);u.messageLogWPercent=La(h(b.messagelogwpercent,80),100);u.messageLogHPercent=La(h(b.messageloghpercent,70),100);u.messageLogShowTitle=h(b.messagelogshowtitle, 1);u.messageLogTitle=q(b.messagelogtitle,"Message Log");u.messageLogColor=q(b.messagelogcolor,"#fbfbfb");u.messageGoesToJS=h(b.messagegoestojs,0);u.messageGoesToLog=h(b.messagegoestolog,1);u.messageJSHandler=q(b.messagejshandler,"");u.messagePassAllToJS=h(b.messagepassalltojs,0);u.messageLogIsCancelable=h(b.messagelogiscancelable,1);u.alwaysShowMessageLogMenu=h(b.alwaysshowmessagelogmenu,u.useMessageLog);u.showRTMenuItem=h(b.showrtmenuitem,0);g=h(b.showgaugeborder,1);u.gaugeBorderColor=q(b.gaugebordercolor, this.gaugeBorderColor,"333333");u.gaugeBorderThickness=g?h(b.gaugeborderthickness,this.gaugeBorderThickness,2):0;u.gaugeBorderAlpha=q(b.gaugeborderalpha,Ia);u.gaugeFillColor=q(b.gaugefillcolor,b.ledbgcolor,"000000");u.useSameFillColor=h(b.usesamefillcolor,0);u.useSameFillBgColor=h(b.usesamefillbgcolor,u.useSameFillColor);u.colorRangeFillMix=Ua(b.colorrangefillmix,b.gaugefillmix,this.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}");u.colorRangeFillRatio=Ua(b.colorrangefillratio,b.gaugefillratio, this.colorRangeFillRatio,b.gaugefillratio,"0,10,80,10");u.showColorRangeBorder=h(b.showcolorrangeborder,b.showgaugeborder,this.showColorRangeBorder,0);u.colorRangeBorderColor=q(b.colorrangebordercolor,b.gaugebordercolor,"{dark-20}");u.colorRangeBorderThickness=g?h(b.colorrangeborderthickness,b.gaugeborderthickness,1):0;u.colorRangeBorderAlpha=h(b.colorrangeborderalpha,b.gaugeborderalpha,100);u.roundRadius=h(b.roundradius,b.gaugeroundradius,0);u.showShadow=h(b.showshadow,1);u.gaugeType=h(b.gaugetype, this.gaugeType,1);this.preSeriesAddition&&this.preSeriesAddition(l,d,a,e);this.series(d,l,c,a,e);this.postSeriesAddition&&this.postSeriesAddition(l,d,a,e);this.configureAxis&&this.configureAxis(l,d);this.spaceManager&&this.spaceManager(l,d,a,e);this.postSpaceManager&&this.postSpaceManager();this.updateSnapPoints&&this.updateSnapPoints(l);this.latestDataUpdater&&this.latestDataUpdater(l,d,a,e);c=u.toolbar={button:{}};g=c.button;g.scale=h(b.toolbarbuttonscale,1.15);g.width=h(b.toolbarbuttonwidth,15); g.height=h(b.toolbarbuttonheight,15);g.radius=h(b.toolbarbuttonradius,2);g.spacing=h(b.toolbarbuttonspacing,5);g.fill=L(q(b.toolbarbuttoncolor,"ffffff"));g.labelFill=L(q(b.toolbarlabelcolor,"cccccc"));g.symbolFill=L(q(b.toolbarsymbolcolor,"ffffff"));g.hoverFill=L(q(b.toolbarbuttonhovercolor,"ffffff"));g.stroke=L(q(b.toolbarbuttonbordercolor,"bbbbbb"));g.symbolStroke=L(q(b.toolbarsymbolbordercolor,"9a9a9a"));g.strokeWidth=h(b.toolbarbuttonborderthickness,1);g.symbolStrokeWidth=h(b.toolbarsymbolborderthickness, 1);d=g.symbolPadding=h(b.toolbarsymbolpadding,5);g.symbolHPadding=h(b.toolbarsymbolhpadding,d);g.symbolVPadding=h(b.toolbarsymbolvpadding,d);g=c.position=q(b.toolbarposition,"tr").toLowerCase();switch(g){case "tr":case "tl":case "br":case "bl":break;default:g="tr"}d=c.hAlign="left"===(J+b.toolbarhalign).toLowerCase()?"l":g.charAt(1);g=c.vAlign="bottom"===(J+b.toolbarvalign).toLowerCase()?"b":g.charAt(0);c.hDirection=h(b.toolbarhdirection,"r"===d?-1:1);c.vDirection=h(b.toolbarvdirection,"b"===g?-1: 1);c.vMargin=h(b.toolbarvmargin,6);c.hMargin=h(b.toolbarhmargin,10);c.x=h(b.toolbarx,"l"===d?0:a);c.y=h(b.toolbary,"t"===g?0:e);ka.console&&ka.console.log&&ka.FC_DEV_ENVIRONMENT&&console.log(l);h(b.showrtmenuitem,0)?(l.callbacks||(l.callbacks=[])).push(this.drawRTMenuButtons):u.useMessageLog&&u.alwaysShowMessageLogMenu&&u.messageGoesToLog&&(l.callbacks||(l.callbacks=[])).push(this.drawMLMenuButtons);n&&m&&(this.hcJSON.alerts=this.parseAlertObj(m));return l},parseAlertObj:function(){return kb.parseAlertObj.apply(this, arguments)},drawMLMenuButtons:function(){var a=this.options,e=a.chart,c=this.menu||(this.menu=[]),d=this.toolbar,a=a[U],b;c.push(b=Ka({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.open();b.showItem(4);b.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.close();b.showItem(3);b.hideItem(4)}}],position:{x:e.spacingLeft,y:this.chartHeight- e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}}));b.hideItem(1);this.elements.configureButton=d.add("loggerIcon",function(a,c){return function(){b.visible?b.hide():b.show({x:a,y:c+1})}}(),{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Show & Hide Message"})},drawRTMenuButtons:function(){var a=this.logic,e=a.chartInstance,c=this.options,d=c.chart,b=d&&d.alwaysShowMessageLogMenu,f=this.menu||(this.menu=[]),n=this.toolbar,c=(c=c[U])&& c.outCanvasStyle||this.outCanvasStyle||{},g,a=(a=e.isUpdateActive||a.eiMethods.isUpdateActive)&&a.call(e);f.push(g=Ka({chart:this,basicStyle:c,items:[{text:"Stop Update",visibility:a?xb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:a?"hidden":xb,onclick:function(){g.hideItem(1);g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&& I.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.close();g.showItem(3);g.hideItem(4)}}],position:{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15)}}));g.hideItem(2);g.hideItem(0);g.hideItem(1);g.showItem(a?0:1);!b&&g.hideItem(3);g.hideItem(4);this.elements.configureButton=n.add("configureIcon",function(a,b){return function(){g.visible?g.hide():g.show({x:a,y:b+ 1})}}(),{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15),tooltip:"Manage RealTime Update"})},latestDataUpdater:function(a){var e=this.chartInstance;a=(a=a.series&&a.series)&&a[0]&&a[0].data;var c,d,b;if((e=e&&e.jsVars&&e.jsVars._rtLastUpdatedData)&&a)for(c=0,d=e.values&&e.values.length;cp?1:p;e.scale={min:null,max:null,axisPosition:f,showTickMarks:m,showTickValues:l,showLimits:h(a.showlimits,l),adjustTM:Boolean(h(a.adjusttm,1)),majorTMNumber:h(a.majortmnumber,-1),majorTMColor:L(d,n),majorTMHeight:m?g:0,majorTMThickness:t,minorTMNumber:h(a.minortmnumber,this.minorTMNumber,4),minorTMColor:L(q(a.minortmcolor, d),h(a.minortmalpha,n)),minorTMHeight:m?h(h(a.minortmheight,a.minortmwidth)*this.scaleFactor,ha(g/2)):0,minorTMThickness:h(a.minortmthickness,1),tickMarkDistance:h(h(a.tickmarkdistance,a.tickmarkgap)*this.scaleFactor,this.tickMarkDistance,3),tickValueDistance:h(h(a.tickvaluedistance,a.displayvaluedistance)*this.scaleFactor,2)+2,placeTicksInside:h(a.placeticksinside,0),placeValuesInside:h(a.placevaluesinside,0),tickValueStep:p,setAdaptiveMin:h(a.setadaptivemin,0),upperLimit:r,lowerLimit:b,upperLimitDisplay:E(a.upperlimitdisplay), lowerLimitDisplay:E(a.lowerlimitdisplay),reverseScale:u,connectorColor:L(q(a.connectorcolor,d),h(a.connectoralpha,n)),connectorThickness:k?h(a.connectorthickness,t):0,majorTM:[],minorTM:[],trendPoint:[],labels:{style:Y({},c)},tickValues:{style:Y({},c)},limitValues:{style:Y({},c)}}},configureAxis:function(a,e){var c=e.chart,d,b,f,n,g=this.colorManager,p,m,k,l,t,r=this.colorRangeGetter,u=(r=r&&r.colorArr)&&r.length;b=r&&r[0];d=r&&r[u-1];n=this.minDataValue;m=this.maxDataValue;r=a.scale;k=r.lowerLimit; l=r.upperLimit;var u=this.numberFormatter,w;if(a.series[0]&&(ga(n)&&ga(m)?(k=k<=n?k:b&&b.minvalue,l=l>=m?l:d&&d.maxvalue):(k=h(k,b&&b.minvalue),l=h(l,d&&d.maxvalue)),d=new Hb(k,l,!1,r,this.numberFormatter),d.calculateLimits(this.maxDataValue,this.minDataValue),d.calculateTicks(),r.majorTM=d.getMajorTM(),r.minorTM=d.getMinorTM(),b=r.min=d.min,d=r.max=d.max,e.trendpoints&&(f=e.trendpoints.point)&&0<(p=f.length))){r.trendPoint=[];for(m=0;m=b&&l<=d&&l>=b&&(r.trendPoint.push({style:Y(Y(a.chart.trendPointStyle.style),{}),startValue:k,endValue:l,tooltext:E(ca(n.markertooltext)),displayValue:E(ca(n.displayvalue),w?J:u.scale(k)),showOnTop:h(n.showontop,c.ticksbelowgauge,c.ticksbelowgraph,1),color:q(n.color,g.getColor("trendLightColor")),alpha:h(n.alpha,99),thickness:h(n.thickness,1),dashStyle:t,useMarker:h(n.usemarker,0),markerColor:L(q(n.markercolor, n.color,g.getColor("trendLightColor")),100),markerBorderColor:L(q(n.markerbordercolor,n.bordercolor,g.getColor("trendDarkColor")),100),markerRadius:h(h(n.markerradius)*this.scaleFactor,5),markerToolText:pa(n.markertooltext),trendValueDistance:h(h(n.trendvaluedistance,c.trendvaluedistance)*this.scaleFactor,r.tickValueDistance),isZone:w,valueInside:h(n.valueinside,c.placevaluesinside,0),showBorder:h(n.showborder,1),borderColor:L(q(n.bordercolor,n.color,g.getColor("trendDarkColor")),h(n.borderalpha, n.alpha,100)),radius:h(h(n.radius)*this.scaleFactor),innerRadius:h(h(n.innerradius)*this.scaleFactor)}),xa(q(n.bordercolor,n.color,g.getColor("trendDarkColor"))));"lineargauge"===this.defaultSeriesType&&I.stableSort&&I.stableSort(r.trendPoint,function(a,b){return a.startValue-b.startValue})}},placeTickMark:function(a,e,c){var d=this.smartLabel,b=a.chart,f=this.width-(b.marginRight+b.marginLeft),n=this.height-(b.marginTop+b.marginBottom);a=a.scale;var g=a.min,p=a.max,m=a.axisPosition,k=a.showLimits, l=a.showTickValues,t=a.tickMarkDistance,r=a.tickValueDistance,u=Math.max(a.majorTMHeight,a.minorTMHeight),w=a.placeTicksInside,C=a.placeValuesInside,F=a.reverseScale,x=0,q=0,z=1,A,B=a.majorTM.length-1,D=2===m||4===m?!1:!0,R=6;e=D?n-c:f-e;c=0;var G=a.tickValues.style,M=a.limitValues.style;a.majorTM[0]&&a.majorTM[1]&&(A=a.majorTM[1].value-a.majorTM[0].value);w||(x+=t+u);if(l||k)for(d.setStyle(M),k=h(parseInt(M.fontSize,10),10),l=h(parseInt(M.lineHeight,10),12),l/=2,C||(x+=r),3===m&&(q=k),D?(n=e-x,f= f/(p-g)*A/2+6):(f=e-x,n=n/(p-g)*A+l),a.majorTM[0]&&(A=a.majorTM[0],A.isString?A.displayValue&&(g=d.getSmartText(A.displayValue,f,n),A.displayValue=g.text,A._oriText=g.oriText,g.tooltext&&(A.originalText=g.tooltext),D?(c=Math.max(c,g.height),A.labelY=1===m&&!C||3===m&&C?k-g.height:q,R=Math.min(6,g.width/2)):(c=Math.max(c,g.width),A.labelY=k-(F?g.height-l:l),A.labelX=0)):z=0,D&&(F?(A.labelX=R,A.align=gb):(A.labelX=-R,A.align=Wa))),a.majorTM[B]&&(A=a.majorTM[B],A.isString?A.displayValue&&(g=d.getSmartText(A.displayValue, f,n),A.displayValue=g.text,A._oriText=g.oriText,g.tooltext&&(A.originalText=g.tooltext),D?(c=Math.max(c,g.height),A.labelY=1===m&&!C||3===m&&C?k-g.height:q,R=Math.min(6,g.width/2)):(c=Math.max(c,g.width),A.labelY=k-(F?l:g.height-l),A.labelX=0)):(R=6,B+=1),D&&(F?(A.labelX=-R,A.align=Wa):(A.labelX=R,A.align=gb)));za?this.maxDataValue:a,this.minDataValue= this.minDataValuel&&10h&&10c&&(a=l-c,p=ab&&(k=b),d.marginRight+=k,n.align=Wa,n.x=0,n.y=p-c.height/2);return k},manageTitleSpace:function(a,e,c){var d=a.chart,b=e.chart,f=this.width-(d.marginRight+ d.marginLeft),d=this.height-(d.marginTop+d.marginBottom),n=h(b.captionpadding,2),b=h(h(b.captiononright,0)?b.canvasrightmargin:b.canvasleftmargin);ga(b)&&(b-=n);c=h(b,f-c);return Fb(a,e,c,d,this.defaultCaptionPadding,this.width,this.height,this)},fixCaptionAlignment:function(a,e,c,d,b,f){d=e.chart;var n=c.chart,g=h(n.canvasleftmargin),n=h(n.canvasrightmargin);d.marginRight+=a.right;d.marginLeft+=a.left;ga(g)&&(d.spacingLeft=d.marginLeft=g,d.spacingLeft-=a.left+0-1);ga(n)&&(d.spacingRight=d.marginRight= n,d.spacingRight-=a.right+0-1);Gb(e,c,this.width,b,f,this)}},v.bullet);v("lineargauge",{creditLabel:ja,defaultSeriesType:"lineargauge",multiValueGauge:!0,realtimeEnabled:!0,gaugeType:1,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,colorRangeFillMix:"{light-10},{dark-20},{light-50},{light-85}",colorRangeFillRatio:"0,8,84,8",isDataLabelBold:!0,eiMethods:Y(Y({},v.gaugebase.eiMethods),{getData:function(a){var e,c=(e=this.jsVars)&&(e=e.hcObj)&&(e=e.options)&&(e=e.series)&& (e=e[0])&&e.data;e=c&&c.length?c.length:0;return void 0!==a&&0=R.sides?.5:R.sides%2?1.1-1/R.sides:1),f.valuePadding=Math.max(f.valuePadding,u),this.isHorizontal?(R.isLabelString?(m=b.getSmartText(R.displayValue,n,c-r),R.displayValue=m.text,m.tooltext&&(R.originalText=m.tooltext)):m=b.getOriSize(R.displayValue)," "===R.displayValue&&(m={height:t}),0c&&(w=c),f.pointerOnOpp?(3===d.axisPosition&&(x=Math.max(g,x),w=Math.max(g,w)),C=Math.max(C,w)):(1===d.axisPosition&&(q=Math.max(g,q),w=Math.max(g,w)),F=Math.max(w,F))):(R.isLabelString?(m=b.getSmartText(R.displayValue,e-r,p),R.displayValue=m.text,m.tooltext&&(R.originalText=m.tooltext)):m=b.getOriSize(R.displayValue),0e&&(z=e),f.pointerOnOpp?2===d.axisPosition?(f.marginRight-=g,f.marginRight+=Math.max(g,z)):f.marginRight+=z:4===d.axisPosition?(f.marginLeft-=g,f.marginLeft+= Math.max(g,z)):f.marginLeft+=z),k.align=Va);b.setStyle(l);B=0;for(D=a.length;Bc&&(w=c),R.showOnTop?(1===d.axisPosition&&(q=Math.max(g,q),w=Math.max(g,w)),F=Math.max(F,w)):(3===d.axisPosition&&(x=Math.max(g,x),w=Math.max(g,w)),C=Math.max(w,C)),k.align=Va));this.isHorizontal&&(f.marginBottom+=C-x,f.marginTop+=F-q,w=F+C- x-q);return w},preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=a.scale;c.pointerRadius=h(d.pointerradius,10);c.pointerBgColor=q(d.pointerbgcolor,d.pointercolor,b.getColor("pointerBgColor"));c.pointerBgAlpha=h(d.pointerbgalpha,100);c.pointerBorderColor=q(d.pointerbordercolor,b.getColor("pointerBorderColor"));c.pointerBorderThickness=h(d.pointerborderthickness,1);c.pointerBorderAlpha=h(d.pointerborderalpha,100);c.pointerSides=h(d.pointersides,3);c.showGaugeLabels=h(d.showgaugelabels, 1);c.showPointerShadow=h(d.showpointershadow,d.showshadow,1);c.valuePadding=h(d.valuepadding,2);this.isHorizontal?(c.pointerOnOpp=h(d.pointerontop,1==f.axisPosition?0:1)?0:1,c.gaugeType=f.reverseScale?2:1,c.valueAbovePointer=h(d.valueabovepointer,c.pointerOnOpp?0:1,1),c.valueInsideGauge=c.valueAbovePointer===c.pointerOnOpp?1:0):(c.pointerOnOpp=h(d.pointeronright,2==f.axisPosition?0:1),c.gaugeType=f.reverseScale?4:3)},getPointStub:function(a,e,c,d,b){var f=this.numberFormatter,n=this.colorManager, g=c.chart,p=c[U];c=f.getCleanValue(a.value);var m=E(a.link),k=E(ca(q(a.tooltext,p.tooltext))),l=E(ca(a.displayvalue)),t=f.dataLabels(c),f=this.colorRangeGetter.getColorObj(c);d=d.chart;var p=h(a.alpha,a.bgalpha,g.pointerBgAlpha),r=q(a.color,a.bgcolor,g.pointerBgColor),u=L(r,p),w=h(a.showborder,d.showplotborder,1),C=h(a.borderalpha,g.pointerBorderAlpha),F=q(a.bordercolor,g.pointerBorderColor),x=L(F,C),W=w?h(a.borderthickness,g.pointerBorderThickness):0,z=h(a.radius,g.pointerRadius),A=h(a.showhovereffect, d.showhovereffect),B,D,R,G,M,ma,N,H,K=!1,T=!1,y,O,Q;this.showTooltip?void 0!==k?(b=ab(k,[1,2],{formattedValue:t},a,d),T=!0):b=null===t?!1:void 0!==b?b+this.tooltipSepChar+t:t:b=J;h(a.showvalue,this.showValues)?void 0!==l?(k=l,K=!0):k=E(t," "):k=J;t=q(l,t,J);l=h(a.sides,g.pointerSides);3>l&&(l=3);this.pointValueWatcher&&this.pointValueWatcher(c);0!==A&&(A||a.bghovercolor||d.pointerbghovercolor||d.plotfillhovercolor||a.bghoveralpha||d.pointerbghoveralpha||d.plotfillhoveralpha||0===a.bghoveralpha||0=== d.pointerbghoveralpha||a.showborderonhover||d.showborderonhover||0===a.showborderonhover||0===d.showborderonhover||a.borderhoverthickness||d.pointerborderhoverthickness||0===a.borderhoverthickness||0===d.pointerborderhoverthickness||a.borderhovercolor||d.pointerborderhovercolor||a.borderhoveralpha||d.pointerborderhoveralpha||0===a.borderhoveralpha||0===d.pointerborderhoveralpha||a.hoverradius||d.pointerhoverradius||0===a.hoverradius||0===d.pointerhoverradius)&&(A=!0,R=q(a.bghovercolor,d.pointerbghovercolor, d.plotfillhovercolor,"{dark-10}"),G=h(a.bghoveralpha,d.pointerbghoveralpha,d.plotfillhoveralpha),B=h(a.showborderonhover,d.showborderonhover),void 0===B&&(B=a.borderhoverthickness||0===a.borderhoverthickness||a.borderhovercolor||a.borderhoveralpha||0===a.borderhoveralpha?1:w),w=q(a.borderhovercolor,d.pointerborderhovercolor,"{dark-10}"),ma=h(a.borderhoveralpha,d.pointerborderhoveralpha),M=B?h(a.borderhoverthickness,d.pointerborderhoverthickness,W||1):0,D=h(a.hoverradius,d.pointerhoverradius,z+2), N=!!h(a.showhoveranimation,d.showhoveranimation,1),B={},O={},W!==M&&(B["stroke-width"]=M,O["stroke-width"]=W),O.fill=u,R=(H=/\{/.test(R))?n.parseColorMix(r,R)[0]:R,B.fill=L(R,h(G,p)),M&&(O.stroke=x,r=/\{/.test(w),B.stroke=L(r?n.parseColorMix(F,w)[0]:w,h(ma,C))),D&&(N?(y={r:D},Q={r:z}):(B.r=D,O.r=z)));return{y:c,displayValue:k,displayValueArgs:t,id:q(a.id,"pointer_"+e),editMode:h(a.editmode,d.editmode),isLabelString:K,isTooltextString:T,toolText:b,_tooltext:a.tooltext,plotFillPercent:q(d.plotfillpercent, 40),bgalpha:p,color:u,borderAlpha:h(d.showplotborder,1)?g.pointerBorderAlpha:0,borderColor:x,borderWidth:W,radius:z,sides:l,link:m,colorRange:f,doNotSlice:!0,tooltipConstraint:this.tooltipConstraint,rolloverProperties:{enabled:A,hoverAttr:B,hoverAnimAttr:y,outAttr:O,outAnimAttr:Q}}}},v.linearscalegauge);v("hlineargauge",{friendlyName:"Horizontal Linear Gauge",creditLabel:ja,defaultSeriesType:"lineargauge",rendererId:"hlinear",standaloneInit:!0,isHorizontal:!0},v.lineargauge);v("vlineargauge",{friendlyName:"Vertical Linear Gauge", creditLabel:ja,defaultSeriesType:"lineargauge",connectTickMarks:0,standaloneInit:!0},v.lineargauge);v("thermometer",{friendlyName:"Thermometer Gauge",creditLabel:ja,defaultSeriesType:"thermometer",rendererId:"thermometer",connectTickMarks:0,tickMarkDistance:0,standaloneInit:!0,realtimeEnabled:!0,isDataLabelBold:!0,defaultPlotShadow:0,alignCaptionWithCanvas:0,defaultPaletteOptions:Ma(Y({},ya),{thmBorderColor:["545454","60634E","415D6F","845001","68001B"],thmFillColor:["999999","ADB68F","A2C4C8","FDB548", "FF7CA0"]}),preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f;f=this.numberFormatter;var n=h(d.showhovereffect);c.thmOriginX=h(d.thmoriginx,d.gaugeoriginx);c.thmOriginY=h(d.thmoriginy,d.gaugeoriginy);c.thmBulbRadius=h(f.getCleanValue(d.thmbulbradius,!0));c.thmHeight=h(f.getCleanValue(h(d.thmheight,d.gaugeheight),!0));c.gaugeFillColor=q(d.gaugefillcolor,d.thmfillcolor,b.getColor("thmFillColor"));c.gaugeFillAlpha=h(d.gaugefillalpha,d.thmfillalpha,Ia);0!==n&&(n||d.thmfillhovercolor|| d.plotfillhovercolor||d.thmfillhoveralpha||d.plotfillhoveralpha||0===d.thmfillhoveralpha)&&(c.plotHoverEffects={},c.plotHoverEffects.enabled=!0,f=q(d.thmfillhovercolor,d.plotfillhovercolor,"{dark-10}"),c.plotHoverEffects.thmFillHoverColor=/\{/.test(f)?b.parseColorMix(c.gaugeFillColor,f)[0]:f,c.plotHoverEffects.thmFillHoverAlpha=q(d.thmfillhoveralpha,d.plotfillhoveralpha,c.gaugeFillAlpha));f=h(d.showgaugeborder,1)?h(d.gaugeborderalpha,40):0;c.gaugeBorderColor=L(q(d.gaugebordercolor,b.getColor("thmBorderColor")), f);c.gaugeBorderThickness=h(d.gaugeborderthickness,1);c.thmGlassColor=q(d.thmglasscolor,da(c.gaugeFillColor,30));c.use3DLighting=!h(d.use3dlighting,1)},getPointColorObj:function(a){return{code:q(a.gaugefillcolor,a.thmfillcolor,this.colorManager.getColor("thmFillColor")),alpha:h(a.gaugefillalpha,a.thmfillalpha,100)}},getPointStub:v.linearscalegauge,placeDataLabels:v.linearscalegauge,manageTitleSpace:v.linearscalegauge,spaceManager:function(a,e,c,d){var b=a.chart,f=c-(b.marginRight+b.marginLeft);d-= b.marginTop+b.marginBottom;var n=b.marginRight,g=b.marginLeft,p=b.marginTop,m=b.marginBottom,k=.3*f,l=.3*d,t=b.thmOriginX,r=b.thmOriginY,u=b.thmBulbRadius,w=b.thmHeight,C=ga(t),F=ga(r),x=ga(u),q=ga(w),z=4===a.scale.axisPosition,A=0,B=0,D,R,G=0;a.title.alignWithCanvas||(d-=G=this.manageTitleSpace(a,e,0,d/2));this.placeTickMark&&(f-=A=this.placeTickMark(a,2*h(u,4),l));x||(b.thmBulbRadius=u=Math.min(f/2,.13*h(w,d)),x=!0);x&&(R=.643*u,k=D=2*R,x=(2*u-D)/2,C?b.marginLeft=z?b.marginLeft+(B=t-R-A):b.marginLeft+ (B=t-R):z?(b.marginLeft+=(c-g-n-x-D)/2-A/2,b.marginRight-=(c-g-n-x-D)/2-A/2,b.marginRight+=B=Math.min(u,f/2)-R):(b.marginLeft+=(c-g-n-x-D)/2-A/2,b.marginRight-=(c-g-n-x-D)/2-A/2,b.marginLeft+=B=Math.min(u,f/2)-R),f-=B);b.marginRight+=f-D;a.title.alignWithCanvas&&(d-=G=this.manageTitleSpace(a,e,0,d/2));F&&(l=r-G+u);this.placeDataLabels&&(d-=this.placeDataLabels(a,k,l,p,n,m,g));q||(b.thmHeight=F?w=Math.max(r-G+u-R,3*u):w=Math.max(d-R,3*u));b.marginTop=F?b.marginTop+(r-G+u-w):b.marginTop+(d-w);e=1.766* u;b.marginBottom+=e;b.valuePadding+=e;b.thmHeight=b.plotHeight=w-e;this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,k,l);b.marginBottom+=F?d-r-u+G:0}},v.gaugebase);v("cylinder",{friendlyName:"Cylinder Gauge",creditLabel:ja,defaultSeriesType:"cylinder",connectTickMarks:0,rendererId:"cylinder",tickMarkDistance:2,standaloneInit:!0,charttopmargin:10,chartbottommargin:10,chartrightmargin:10,chartleftmargin:10,isDataLabelBold:!0,realtimeEnabled:!0,alignCaptionWithCanvas:0,defaultPaletteOptions:Ma(Y({}, ya),{cylFillColor:["CCCCCC","ADB68F","E1F5FF","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]}),preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=h(d.showhovereffect);c.cylFillColor=q(d.gaugefillcolor,d.cylfillcolor,b.getColor("cylFillColor"));c.cylFillAlpha=q(d.gaugefillalpha,d.cylfillalpha,100);0!==f&&(f||d.cylfillhovercolor||d.plotfillhovercolor||d.cylfillhoveralpha||d.plotfillhoveralpha||0===d.cylfillhoveralpha)&&(c.plotHoverEffects={}, c.plotHoverEffects.enabled=!0,f=q(d.cylfillhovercolor,d.plotfillhovercolor,"{dark-10}"),c.plotHoverEffects.cylFillHoverColor=/\{/.test(f)?b.parseColorMix(c.cylFillColor,f)[0]:f,c.plotHoverEffects.cylFillHoverAlpha=q(d.cylfillhoveralpha,d.plotfillhoveralpha,c.cylFillAlpha));c.cylGlassColor=q(d.cylglasscolor,"FFFFFF");c.cyl3DLighting=h(d.use3dlighting,"1")},getPointColorObj:function(a){return{code:q(a.gaugefillcolor,a.thmfillcolor,this.colorManager.getColor("cylFillColor")),alpha:h(a.gaugefillalpha, a.thmfillalpha,100)}},getPointStub:v.linearscalegauge,placeDataLabels:v.linearscalegauge,manageTitleSpace:v.linearscalegauge,spaceManager:function(a,e,c,d){var b=a.chart,f=e.chart,n=c-(b.marginRight+b.marginLeft),g=d-(b.marginTop+b.marginBottom),p=b.marginRight,m=b.marginLeft,k=b.marginTop,l=b.marginBottom,t=.2*n,r=.3*g,u=h(f.cylyscale,30),w=this.scaleFactor,C=this.numberFormatter;a.title.alignWithCanvas||(g-=this.manageTitleSpace(a,e,n/2,g/2));this.placeTickMark&&(n-=this.placeTickMark(a,t,r));this.placeDataLabels&& (g-=this.placeDataLabels(a,t,r,k,p,l,m)+8,b.valuePadding+=8);this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,t,r);b.cylHeight=E(f.cylheight);if(50u)u=30;b.cylYScale=u/=100;p=Math.max(La(n,1.2*g)/2,5);p=h(E(C.getCleanValue(f.cylradius,!0))*w,p);b.marginLeft=h(E(f.cyloriginx)*w,b.marginLeft);b.marginLeft+=n/2-p;b.marginRight=c-(b.marginLeft+2*p);a.title.alignWithCanvas&&(g-=this.manageTitleSpace(a,e,n/2,g/2));a=g-p*u*2;C=h(E(C.getCleanValue(f.cylheight,!0))*w,a);u=b.yScaleRadius= p*u;a=b.cylinderTotalHeight=2*u+C;g=g-a+b.marginTop;b.marginTop=h(E(f.cyloriginy)*w-C,u+g);b.marginBottom=d-(b.marginTop+C);b.cylRadius=p;b.cylHeight=C;b.yScaleRadius=u}},v.gaugebase);v("angulargauge",{friendlyName:"Angular Gauge",standaloneInit:!0,drawAnnotations:!0,defaultSeriesType:"angulargauge",creditLabel:ja,rendererId:"angular",isAngular:!0,eiMethods:v.lineargauge.eiMethods,multiValueGauge:!0,realtimeEnabled:!0,defaultPaletteOptions:Ma(Y({},ya),{dialColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F", "A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],dialBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],pivotColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],pivotBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),subTitleFontSizeExtender:0,charttopmargin:5,chartrightmargin:5,chartbottommargin:5,chartleftmargin:5,defaultPlotShadow:1,gaugeBorderColor:"{dark-20}",gaugeBorderThickness:1,updateSnapPoints:function(a){v.gaugebase.updateSnapPoints.apply(this, arguments);var e=a.series[0],c=this.snapLiterals;c.gaugestartangle=a.chart.gaugeStartAngle/hb;c.gaugeendangle=a.chart.gaugeEndAngle/hb;c.chartcenterx=a.chart.origW/2;c.chartcentery=a.chart.origH/2;c.gaugecenterx=e.gaugeOriginX;c.gaugecentery=e.gaugeOriginY;c.gaugeinnerradius=e.gaugeInnerRadius;c.gaugeouterradius=e.gaugeOuterRadius;c.dial=function(c){var b=a.series[0],f=c[1]||c[0],e=(c=b.data[Number(c[0])||0])&&c.graphic;if(e){e=e.matrix;switch(f){case "startx":b=b.gaugeOriginX+e.x(-c.rearExtension, 0);break;case "starty":b=b.gaugeOriginY+e.y(-c.rearExtension,0);break;case "endx":b=b.gaugeOriginX+e.x(c.radius,0);break;case "endy":b=b.gaugeOriginY+e.y(c.radius,0);break;default:b=0}return b}return 0}},preSeriesAddition:function(a,e){var c=e.chart,d=h(c.gaugescaleangle,180),b=h(c.gaugestartangle),c=h(c.gaugeendangle),f=ga(b),n=Na?.001:.01,g=ga(c);if(360d)d=0c)c%=360;if(360b)b%=360;if(f&&g){if(d=b-c,360d)d%=360,c=b-d}else if(f){if(c=b-d,360c)c%=360,b+=0b)b%=360,c+=0jb&&(jb+=Fa);(pa=pa||0)&&pala/2&&(xa=la/2);ya>la/2&&(ya=la/2);ab=Math.cos(na);bb=Math.sin(na);cb=Math.cos(ta);eb=Math.sin(ta);Aa=Math.min(ab,cb,0);Ia=Math.max(ab,cb,0);Za=Math.min(bb,eb,0);db=Math.max(bb,eb,0);if(!Ca||!Ha||!Ka){ib=ta-na;$a=jb+ib;if($a>Fa||0>$a)Ia=1;if(0Ga||$a>Fa+Ga)db=1;if(jbBa||$a>Fa+Ba)Aa=-1;if(jbLa||$a>Fa+La)Za=-1}else{if(jb>Ga&&$aBa&&$aLa&&$a=Ma&&(Ma=Math.min(C/2,la/2))}z=g.gaugeOriginX=Oa;A=g.gaugeOriginY=Ta;N=n.majorTM;H=0;K=N.length;y=a.labels.smartLabel;J=n.min;I=n.max-n.min;oa=C-z;ua=F-A;wa=n.placeValuesInside;va=Math.cos(89.98*hb);za=-va;Da=ga(g.gaugeOuterRadius);lb=n.tickValueDistance;Qa=n.showTickValues;X=n.showLimits;U=h(g.gaugeOuterRadius,Ma);Y=h(g.gaugeInnerRadius,U*R); Ja=U;Ra=.2*U;fa=1.5*k;ra=(D-B)/I;if(Qa||X)for(wa?Y>lb+k?Jb=Y-lb:(Jb=Y,lb=0):(Ja+=lb,Da||(Ra+=lb)),y.setStyle(m);Hva?gb:Lva||LZ?0: S-r);else if(P.align=L>va?Wa:Lea&&(ka=v-v*Z,A<-ea+ka&&(ea=ka-A,Ja=Math.max(ea/Z,Ra)))),L>va)aa+Q>oa&&(Da?P.isString&&(O=y.getSmartText(T,oa-aa,fa),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height,v=S/2):(aa=oa-Q,Ja=Math.max(aa/L,Ra),aa=Ja*L,P.isString&&aa+Q>oa&&(O=y.getSmartText(T,oa-aa,fa),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height,v=S/2,Q=O.width,aa=oa- Q,Ja=Math.max(aa/L,Ra)))),P.y=l-v+u+.4*S*Z;else if(Lz&&(Da?P.isString&&(O=y.getSmartText(T,z+aa,fa),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height,v=S/2):(aa=Q-z,Ja=Math.max(aa/L,Ra),aa=Ja*L,P.isString&&Q-aa>z&&(O=y.getSmartText(T,z+aa,fa),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),Q=O.width,S=O.height,v=S/2,aa=Q-z,Ja=Math.max(aa/L,Ra)))),P.y=l-v+u+.4*S*Z;else{0ca&&(Ja=Math.max(ca-S,Ra),V=S+Ja),P.isString&& V>ca||Q>C)O=y.getSmartText(T,C,Math.max(ca-Ra,k)),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height,Ja=Math.max(ca-S,Ra)}else if(P.isString&&V>ca||Q>C)O=y.getSmartText(T,C,Math.max(S-V+ca,k)),P.displayValue=O.text,O.tooltext&&(P.originalText=O.tooltext),S=O.height;P.y=t-(0=g.gaugeOuterRadius&&(g.gaugeOuterRadius=Math.abs(Ra)));g.gaugeInnerRadius=h(g.gaugeInnerRadius,g.gaugeOuterRadius*R)}},v.gaugebase);v("bulb",{friendlyName:"Bulb Gauge", defaultSeriesType:"bulb",defaultPlotShadow:1,standaloneInit:!0,drawAnnotations:!0,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,realtimeEnabled:!0,isDataLabelBold:!0,rendererId:"bulb",preSeriesAddition:function(a){a=a.chart;a.colorRangeGetter=this.colorRangeGetter;a.defaultColors=this.colorManager.getPlotColor(0);a.defaultColLen=a.defaultColors.length},getPointColor:function(a,e,c){return c?{FCcolor:{cx:.4,cy:.4,r:"80%",color:da(a,65)+y+da(a,75)+y+na(a,65),alpha:e+ y+e+y+e,ratio:"0,30,70",radialGradient:!0}}:L(a,e)},getPointStub:function(a,e,c,d,b){var f=c.chart,n=c[U];e=d.chart;c=this.numberFormatter;d=c.getCleanValue(a.value);var g=c.dataLabels(d);c=E(a.link);var p=E(ca(q(a.tooltext,n.tooltext))),m=E(ca(a.displayvalue)),n=this.colorRangeGetter.getColorObj(d),k=f.useColorNameAsValue=h(e.usecolornameasvalue,0),l=n.colorObj||n.prevObj||n.nextObj||{},t=this.colorManager,r=ca(q(l.label,l.name)),u=q(e.gaugefillalpha,l.alpha,Ia),w=q(l.bordercolor,e.gaugebordercolor, na(l.code,70)),C=h(l.borderalpha,e.gaugeborderalpha,"90")*u/100,F=h(e.showgaugeborder,0),x=F?h(e.gaugeborderthickness,1):0,W=f.is3D=h(e.is3d,1),z=this.getPointColor(l.code,u,W),A=h(e.showhovereffect),B,D,R,G,M,ma,N,H,K;n.isOnMeetPoint&&(l=n.nextObj);f.gaugeFillAlpha=u;w=(H=/\{/.test(w))?t.parseColorMix(q(l.bordercolor,l.code),w)[0]:w;f=L(w,C);0!==A&&(A||e.gaugefillhovercolor||e.plotfillhovercolor||e.gaugefillhoveralpha||e.plotfillhoveralpha||0===e.gaugefillhoveralpha||e.is3donhover||0===e.is3donhover|| e.showgaugeborderonhover||0===e.showgaugeborderonhover||e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness)&&(A=!0,B=q(e.gaugefillhovercolor,e.plotfillhovercolor,"{dark-10}"),D=h(e.gaugefillhoveralpha,e.plotfillhoveralpha),R=h(e.showgaugeborderonhover),void 0===R&&(R=e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness?1:F), F=q(e.gaugeborderhovercolor,"{dark-10}"),M=h(e.gaugeborderhoveralpha),G=R?h(e.gaugeborderhoverthickness,x||1):0,W=!!h(e.is3donhover,W),h(e.showhoveranimation,1),R={},K={},x!==G&&(R["stroke-width"]=G,K["stroke-width"]=x),K.fill=X(z),B=(N=/\{/.test(B))?t.parseColorMix(l.code,B)[0]:q(B,l.code),R.fill=X(this.getPointColor(B,h(D,u),W)),G&&(K.stroke=f,l=/\{/.test(F),R.stroke=L(l?t.parseColorMix(H?B:w,F)[0]:F,h(M,C))));this.showTooltip?void 0!==p?(a=ab(p,[1,2],{formattedValue:g},a,e),ma=!0):a=k?r:null=== g?!1:void 0!==b?b+this.tooltipSepChar+g:g:a=!1;b=void 0!==m?m:k?r:g;this.pointValueWatcher&&this.pointValueWatcher(d);return{y:d,displayValue:b,displayValueArgs:b,toolText:a,isLabelString:ma,colorName:r,color:z,borderWidth:x,borderColor:f,colorRange:n,link:c,doNotSlice:!0,rolloverProperties:{enabled:A,hoverAttr:R,hoverAnimAttr:void 0,outAttr:K}}},spaceManager:function(a,e,c,d){var b=this.smartLabel,f=a.series[0],n=f&&f.data[0],f=a.chart,g=e.chart,p=f.scaleFactor=this.scaleFactor;c-=f.marginRight+ f.marginLeft;d-=f.marginTop+f.marginBottom;var m=f.marginLeft,k=f.marginTop,l=h(g.valuepadding,4),t=f.useColorNameAsValue,r,u=0,w;n.y=E(n.y,a.scale.min);n.displayValue=this.showValues?E(n.displayValue,this.numberFormatter.dataLabels(a.scale.min)):J;w=n.displayValue;f.gaugeOriginX=h(g.gaugeoriginx,g.bulboriginx,-1);f.gaugeOriginY=h(g.gaugeoriginy,g.bulboriginy,-1);f.gaugeRadius=h(g.gaugeradius,g.bulbradius,-1);g=-1!==f.gaugeRadius;d-=e=this.titleSpaceManager(a,e,c,.3*d);k+=e;f.dataLabels={style:a.plotOptions.series.dataLabels.style}; e=f.dataLabels.style;b.setStyle(e);1==f.placeValuesInside?(a=g?f.gaugeRadius*p:Math.min(c,d)/2,r=Math.sqrt(ia(2*a,2)/2),b=b.getSmartText(w,r,r)):(r=(g?d-2*f.gaugeRadius*p:.7*d)-l,b=b.getSmartText(w,c,r),u=b.height+l,a=Math.min(c,d-u)/2);t&&(n.displayValue=b.text,b.tooltext&&(n.originalText=b.tooltext));f.valuePadding=l;f.valueTextHeight=b.height;f.labelLineHeight=parseInt(e.lineHeight,10);a=g?f.gaugeRadius*p:a;b=-1===f.gaugeOriginX?m+c/2:f.gaugeOriginX*p;p=-1===f.gaugeOriginY?k+(d-u)/2:f.gaugeOriginY* p;f.marginTop=f.marginLeft=0;f.gaugeRadius=a;f.gaugeOriginX=b;f.gaugeOriginY=p},updateSnapPoints:function(a){v.gaugebase.updateSnapPoints.apply(this,arguments);this.snapLiterals.gaugeradius=a.chart.gaugeRadius}},v.gaugebase);v("drawingpad",{friendlyName:"DrawingPad Component",standaloneInit:!0,defaultSeriesType:"drawingpad",rendererId:"drawingpad",defaultPlotShadow:1,drawAnnotations:!0,chartleftmargin:0,charttopmargin:0,chartrightmargin:0,chartbottommargin:0,chart:function(){Y(this.dataObj.chart, {bgcolor:this.dataObj.chart.bgcolor||"#ffffff",bgalpha:this.dataObj.chart.bgalpha||"100"});return this.base.chart.apply(this,arguments)},series:function(){Y(this.hcJSON,{legend:{enabled:!1},chart:{plotBackgroundColor:Ya,plotBorderColor:Ya},series:[{data:[]}]})},spaceManager:function(){},creditLabel:ja},v.bulb);v("funnel",{friendlyName:"Funnel Chart",standaloneInit:!0,defaultSeriesType:"funnel",sliceOnLegendClick:!0,defaultPlotShadow:1,subTitleFontSizeExtender:0,tooltippadding:3,drawAnnotations:!0, isDataLabelBold:!1,formatnumberscale:1,rendererId:"funnel",alignCaptionWithCanvas:0,defaultPaletteOptions:Ma(Y({},ya),{paletteColors:I.defaultPaletteOptions.paletteColors}),preSeriesAddition:function(a,e){var c=e.chart,d=this.colorManager,b=a.plotOptions.series.dataLabels;b.connectorWidth=h(c.smartlinethickness,1);b.connectorColor=L(q(c.smartlinecolor,d.getColor("baseFontColor")),h(c.smartlinealpha,100));h(c.showlegend,0)?(a.legend.enabled=!0,a.legend.reversed=!Boolean(h(c.reverselegend,0))):a.legend.enabled= !1;a.plotOptions.series.point.events.legendItemClick=c.interactivelegend===fb?ub:function(){this.slice()}},series:function(a,e,c){a.data&&0=ea?ea/200:.2;w||C||(b.plotOptions.series.dataLabels.enabled=!1,!1===b.tooltip.enabled&&(m=!1));e.useSameSlantAngle= h(d.usesameslantangle,wa?0:1);for(b=0;b2*r?0:t;f=Math.min(2*(d-r),p);n.marginTop+=r/2;n.marginBottom+=r/2;u.SlicingDistance=t;l=u.data;A=l.length;B=m?0:1;r=u.labelDistance+3;t=u.showLabelsAtCenter;M=Math.min(f,.3*p);x=p-M;ma=p-M-r;H=0;K=(C=l[0])&&l[0].y?l[0].y:1;y=u.valueSum?u.valueSum:1;v=m?0:1;O=.8/K;Q=1==u.useSameSlantAngle;G=(S=!m&&!u.streamlinedData)?l[0].y-l[1].y:0;!m&&C&&l[0].displayValue&& (D=l[0],C=a.plotOptions.series.dataLabels.style,N=h(Lb(parseFloat(C.lineHeight)+C.borderPadding+C.borderThickness),10),b.setStyle(C),F=b.getSmartText(D.displayValue,p,N),D.displayValue=F.text,F.tooltext&&(D.originalText=F.tooltext),D.labelWidht=b.getOriSize(F.text).width,n.marginTop+=w.topLabelSpace=N+4);for(;Bf&&(x=f);G=S?l[0].y-l[1].y:0;if(!t)for(B=m?0:1,A=l.length;B"+a.xaxisname:"
");c=v.msareabase.chart.apply(this, arguments);b=c.chart;d=c[U];g=c.series;d.isDual?(d._userPMin=h(a.pyaxisminvalue),d._userPMax=h(a.pyaxismaxvalue),d._userSMin=h(a.syaxisminvalue),d._userSMax=h(a.syaxismaxvalue)):(d._userMin=h(a.yaxisminvalue),d._userMax=h(a.yaxismaxvalue));b.dataStreamURL=q(a.datastreamurl,"");b.refreshInterval=h(a.refreshinterval,1);b.updateInterval=h(a.updateinterval,b.refreshInterval);b.clearInterval=h(a.clearchartinterval,0);b.dataStamp=a.datastamp;b.useMessageLog=h(a.usemessagelog,0);b.messageLogWPercent=La(h(a.messagelogwpercent, 80),100);b.messageLogHPercent=La(h(a.messageloghpercent,70),100);b.messageLogShowTitle=h(a.messagelogshowtitle,1);b.messageLogTitle=q(a.messagelogtitle,"Message Log");b.messageLogColor=q(a.messagelogcolor,"#fbfbfb");b.messageGoesToJS=h(a.messagegoestojs,0);b.messageGoesToLog=h(a.messagegoestolog,1);b.messageJSHandler=q(a.messagejshandler,"");b.messagePassAllToJS=h(a.messagepassalltojs,0);b.messageLogIsCancelable=h(a.messagelogiscancelable,1);b.alwaysShowMessageLogMenu=h(a.alwaysshowmessagelogmenu, b.useMessageLog);b.showRTMenuItem=h(a.showrtmenuitem,0);b.showRealtimeValue=f;b.realtimeValueSeparator=q(a.realtimevaluesep,", ");b.realtimeValuePadding=n;b.realtimeValueFont=q(a.realtimevaluefont,"");b.realtimeValueFontBold=q(a.realtimevaluefontbold,0);b.realtimeValueFontColor=q(a.realtimevaluefontcolor,"");b.realtimeValueFontSize=h(a.realtimevaluefontsize,"");if(f){if(!d.realtimeValues)for(d.realtimeValues=[],f=0,n=g.length;fn&&(m=n,n=f,f=m),b.alert.push({minvalue:f,maxvalue:n,param:p,action:g}));return b},drawMLMenuButtons:function(){var a=this.options,e=a.chart,c=this.menu||(this.menu=[]),d=this.toolbar,a=a[U],b;c.push(b=Ka({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.open();b.showItem(4);b.hideItem(3)}}, {text:"Hide Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.close();b.showItem(3);b.hideItem(4)}}],position:{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}}));b.hideItem(1);this.elements.configureButton=d.add("loggerIcon",function(a,c){return function(){b.visible?b.hide():b.show({x:a,y:c+1})}}(),{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Show & Hide Message"})}, drawRTMenuButtons:function(){var a=this.logic,e=a.chartInstance,c=this.options,d=c.chart,b=d&&d.alwaysShowMessageLogMenu,f=this.menu||(this.menu=[]),n=this.toolbar,c=(c=c[U])&&c.outCanvasStyle||this.outCanvasStyle||{},g,p=e.isUpdateActive||a.eiMethods.isUpdateActive,p=p&&p.call(e);f.push(g=Ka({chart:this,basicStyle:c,items:[{text:"Stop Update",visibility:p?xb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:p?"hidden":xb,onclick:function(){g.hideItem(1); g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){I&&I.messageLogger&&I.messageLogger.close();g.showItem(3);g.hideItem(4)}}],position:{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15)}}));h(a.dataObj.chart.allowclear,1)||g.hideItem(2); g.hideItem(0);g.hideItem(1);!b&&g.hideItem(3);g.hideItem(4);g.showItem(p?0:1);this.elements.configureButton=n.add("configureIcon",function(a,b){return function(){g.visible?g.hide():g.show({x:a,y:b+1})}}(),{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15),tooltip:"Manage RealTime Update"})},shiftPlotLines:function(a,e,c,d){var b,f,n=[],g=d[0],p=g&&g.RTValueArr,m=p&&p.length||0,k=(d=d[1])&&d.RTValueArr,l=k&&k.length||0,t=a&&a.length||0,r;c=h(c,-.5);for(r=0;r< t;r+=1)if(b=a[r],b.isGrid||b.isVline)if(f=b.value+=e,fa.max&&(g.max=a.max));if(d&&k&&l)for(k.splice(0,-e),l=k.length,delete d.min,delete d.max,r=0;ra.max&&(d.max=a.max));return n},configureAxis:function(a){var e= a[U],c=a.xAxis,d=e.x,b=e.axisGridManager,f=d.catCount,n=e.oriCatTmp,g=e[0],p=g&&g.RTValueArr,m=e[1],k=m&&m.RTValueArr,l=this.dataObj,t=l.chart||(l.chart={}),l=a.series,r=l[0].data.length,t=this.numDisplaySets=h(t.numdisplaysets,Ca(r,15)),u=c.plotLines,w=u&&u.length||0,C=[],F=this.chartInstance.jsVars._reflowData,x;F.hcJSON&&(x=F.hcJSON[U])&&(g.min=x[0]&&x[0].min,g.max=x[0]&&x[0].max,m.min=x[1]&&x[1].min,m.max=x[1]&&x[1].max);m=((this.dataObj.categories||(this.dataObj.categories=[{category:[]}]))[0]|| (this.dataObj.categories[0]={category:[]})).category||(this.dataObj.categories[0].category=[]);0===f&&(this.chartInstance.jsVars._forceReflow=!0);g=t-r;if(0h?m.n:m.p,a.xAxis.plotLines.push({value:p,width:0,isVline:C,isTrend:!C,zIndex:4,_isStackSum:1,_catPosition:b,label:{align:Va,textAlign:270===d?0>h?gb:Wa:Va,offsetScale:C?m:void 0,offsetScaleIndex:0,rotation:d,style:u,verticalAlign:cb,y:c?0:0>h?270===d?4:w:-4,x:0,text:e.numberFormatter.yAxis(h)}})),g)for(m=0,p=r.length;me&&(f.max=e,!1===a.max>e&&(a.max=e));!1===f.minz?z:a.dimension,P=z-p,Q=[],Pa=a.vlines,ba=I.placeHorizontalAxis,sa,Z,aa,ea,oa,ua,wa,va,za,Da,X=new Date,Qa,Ub,Ib,V,Ja,Ra;a.clear&&f&&this.realtimeUpdate({dimension:this.numDisplaySets,values:[],labels:[]},0g.max||D.minN||(!R||0!==g.max)&&g.max!==n._userPMax&&g.max-D.max>N)B._forceReflow=!0,n._skipValueWatcher=!0;g=c.yAxis[1];D=n[1];M=R=!h(b.setadaptivesymin,y);N=(g.max-g.min)/4;if(D.max>g.max||D.minN||(!R||0!==g.max)&&g.max!==n._userSMax&&g.max-D.max>N)B._forceReflow=!0,n._skipValueWatcher=!0}else if(D.max>g.max||D.min< g.min||(!M||0!==g.min)&&g.min!==n._userMin&&D.min-g.min>N||(!R||0!==g.max)&&g.max!==n._userMax&&g.max-D.max>N)B._forceReflow=!0,n._skipValueWatcher=!0;Qa=n[0]&&n[0].RTValueArr;Ub=n[1]&&n[1].RTValueArr;B._forceReflow&&(g=c.yAxis[0],D=n[0],Ib=n[0]&&n[0].min,V=n[0]&&n[0].max,Ja=n[1]&&n[1].min,Ra=n[1]&&n[1].max,S=g.min,sa=g.max,N=h(n.numdivlines,b.numdivlines,this.numdivlines,4),ua=b.adjustdiv!==fb,za=h(n._userMax,n._userPMax),f=h(n._userMin,n._userPMin),q=h(b.showyaxisvalues,b.showyaxisvalue,1),G=h(b.showlimits, q),K=h(b.showdivlinevalue,b.showdivlinevalues,q),v=h(parseInt(b.yaxisvaluesstep,10),parseInt(b.yaxisvaluestep,10),1),v=1>v?1:v,this.axisMinMaxSetter(g,D,za,f,R,M,N,ua),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(b,c,g,D,G,K,v,n.numberFormatter,!1),S===g.min&&sa===g.max&&(va=!0),n.isDual?(za=n._userSMax,f=n._userSMin,y=h(b.setadaptivesymin,y),M=R=!y,G=h(b.showsecondarylimits,G), K=h(b.showdivlinesecondaryvalue,q),g=c.yAxis[1],D=n[1],S=g.min,sa=g.max,this.axisMinMaxSetter(g,D,za,f,R,M,N,ua),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(b,c,g,D,G,K,v,n.numberFormatter,!0),S===g.min&&sa===g.max&&va&&(B._forceReflow=!1)):va&&(B._forceReflow=!1),d.trendlines&&Ta(d.trendlines,c.yAxis,n,n.isDual,this.isBar));O.hcJSON&&(b=O.hcJSON[U],delete O.hcJSON[U],Y(c.series, O.hcJSON.series,!0),O.hcJSON[U]=b,b=null);Y(O,{preReflowAdjustments:function(){this.dataObj.categories=d.categories},postReflowAdjustments:function(){var a,b=c.series,d=b&&b.length;this.hcJSON.xAxis.plotLines=H.plotLines;this.hcJSON._FCconf[0].RTValueArr=Qa;this.hcJSON._FCconf[1].RTValueArr=Ub;if(b)for(a=0;a=b.minvalue&&a<=b.maxvalue)return n.colorObj=b,f&&a==f.minvalue&&(n.nextObj=f,n.isOnMeetPoint=!0),n;n.prevObj=b}n.index=c-1;return n},getColorRangeArr:function(a,e){var c,d=this.colorArr,b,f,n=[],g,p;if(!this.defaultAsigned&&(a>e&&(c=a,a=e,e=c),a=m&&(w.fluidHRatio=m,u=!0),r&&(m=na(w.fluidColor,w.is2D?80:70),k.fluid.attr({fill:L(m,w.fluidAlpha)}),k.fluidTop.attr({fill:L(m,w.fluidAlpha)}),k.topLight.attr({stroke:L(m,.4*w.fluidAlpha)}),k.topLightBorder.attr({fill:X({FCcolor:{color:m+y+m,alpha:"40,0",ratio:"0,80", radialGradient:!0,cx:.5,cy:1,r:"70%"}})})),u&&(m=w.scaleY+w.h*(1-w.fluidHRatio),c?(k.fluid.animate({path:w.fluidPath.concat(["L",w.lx2,m,w.lx1,m,"Z"])},c,"easeIn"),k.fluidTop.animate({path:e.concat(["M",w.lx1,m,"A",w.lCylWidthHalf,1,0,1,0,w.lx2,m,"Z"])},c,"easeIn")):(k.fluid.attr({path:w.fluidPath.concat(["L",w.lx2,m,w.lx1,m,"Z"])}),k.fluidTop.attr({path:e.concat(["M",w.lx1,m,"A",w.lCylWidthHalf,1,0,1,0,w.lx2,m,"Z"])})))):this._attr(f,m);return k},f=function(a,b,c){this.border.shadow(a,b,c)};return function(a, c,p,m,k,l,t,r,u,w,C,F,x){var W,z,A,B,D,R,G,M,v,N,H,K,T,J,O,Q;qb(a)&&(c=a.y,p=a.r,m=a.h,l=a.renderer,t=a.fluidHRatio,r=a.conColor,u=a.conBorderColor,w=a.conBorderThickness,C=a.fluidColor,F=a.fluidAlpha,x=a.is2D,a=a.x);0<=t&&1>=t||(t=0);r=q(r,"FFFFFF");u=q(u,"#000000");w=h(w,1);C=q(C,"000000");F=h(F,100);Q={x:a,y:c,r:p,h:m,renderer:l,fluidHRatio:t,conColor:r,conBorderColor:u,conBorderThickness:w,fluidStroke:3,fluidColor:C,is2D:x,fluidAlpha:F};k._attr=k.attr;k.attr=b;k._setAnimate=d;k.shadow=f;k._3dAttr= Q;W=na(r,80);C=na(C,x?80:70);r=da(r,80);z=.643*p;A=.33*z;B=z-A;D=a-z;R=a+z;G=a-B;B=a+B;M=c+z;v=M+m;N=v+.766*p;H=c+A;m=M+m*(1-t);t=.9*z;K=p+t-z;T=a-t;J=a+t;N-=Math.abs(Math.sqrt(K*K-t*t));O=parseInt(a-.6*z,10);z=a+z/2;Q.fluidPath=["M",T,N,"A",K,K,0,1,0,J,N];Q.scaleY=M;Q.lx1=T;Q.lx2=J;Q.lCylWidthHalf=t;k.topLight=l.path(["M",T,M,"L",J,M],k).attr({"stroke-width":1,stroke:L(C,40)});k.topLightBorder=l.path(["M",T,M,"L",J,M,J,H,T,H,"Z"],k).attr({"stroke-width":0,fill:X({FCcolor:{color:C+y+C,alpha:x?"0,0": "40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})});k.fluid=l.path(Q.fluidPath.concat(["L",J,m,T,m,"Z"]),k).attr({"stroke-width":0,fill:L(C,F)});k.fluidTop=l.path(e.concat(["M",T,m,"A",t,1,0,1,0,J,m,"Z"]),k).attr({"stroke-width":0,fill:L(C,F)});k.border=l.path(e.concat(["M",G,c,"A",A,A,0,0,0,D,H],["L",D,v],["A",p,p,0,1,0,R,v],["L",R,H],["A",A,A,0,0,0,B,c,"Z"]),k).attr({"stroke-width":w,stroke:u});x||(k.bulbBorderLight=l.path(e.concat(["M",D,v,"A",p,p,0,0,1,R,v],["M",R,v,"A",p,p,0,0,0,D, v],["M",D,v,"A",p,p,0,1,0,R,v,"Z"]),k).attr({"stroke-width":0,stroke:"#00FF00",fill:X({FCcolor:{cx:.5,cy:.5,r:"50%",color:W+y+r,alpha:"0,50",ratio:"78,30",radialGradient:!0}})}),k.bulbTopLight=l.path(e.concat(["M",D,v,"A",p,p,0,0,1,R,v],["A",p,p,0,0,0,D,v],["A",p,p,0,1,0,R,v,"Z"]),k).attr({"stroke-width":0,fill:X({FCcolor:{cx:.3,cy:.1,r:"100%",color:r+y+W,alpha:"60,0",ratio:"0,30",radialGradient:!0}})}),k.bulbCenterLight=l.path(e.concat(["M",D,v,"A",p,p,0,1,0,R,v],["A",p,p,0,0,0,D,v],["A",p,p,0,0, 1,R,v,"Z"]),k).attr({"stroke-width":0,fill:X({FCcolor:{cx:.25,cy:.7,r:"100%",color:r+y+W,alpha:"80,0",ratio:"0,70",radialGradient:!0}})}),k.cylLeftLight=l.path(e.concat(["M",a,c,"L",G,c],["A",A,A,0,0,0,D,H],["L",D,v,a,v,"Z"]),k).attr({"stroke-width":0,fill:X({FCcolor:{color:r+y+W,alpha:"50,0",ratio:"0,80",angle:0}})}),k.cylRightLight=l.path(e.concat(["M",D,c,"L",B,c],["A",A,A,0,0,1,R,H],["L",R,v,D,v,"Z"]),k).attr({"stroke-width":0,fill:X({FCcolor:{color:r+y+W+y+W,alpha:"50,0,0",ratio:"0,40,60",angle:180}})}), k.cylLeftLight1=l.path(["M",O,H,"L",D,H,D,v,O,v,"Z"],k).attr({"stroke-width":0,fill:X({FCcolor:{color:r+y+W,alpha:"60,0",ratio:"0,100",angle:180}})}),k.cylRightLight1=l.path(["M",O-.01,H,"L",z,H,z,v,O-.01,v,"Z"],k).attr({"stroke-width":0,fill:X({FCcolor:{color:r+y+W,alpha:"60,0",ratio:"0,100",angle:0}})}));return k}}();Pb=function(){var a={fluidHRatio:!0,color:!0,alpha:!0,fill:!0},e=[],c=0,d=function(a){c=Boolean(a)?a.duration:0},b=function(b,d){var f,m,k=this,l,t,r=!1,u=!1,w=this._3dAttr,C,F,x,W, z,A,B,D;bb(b)&&ga(d)&&(f=b,b={},b[f]=d);if(bb(b))k=a[b]?k._3dAttr[b]:k._attr(b);else for(f in b)m=b[f],a[f]?("fill"===f?(m&&m.linearGradient&&m.stops&&m.stops[0]&&(m=m.stops[0][1]),yb.test(m)?(t=new sb(m),l=t.get("hex"),t=100*t.get("a")):m&&m.FCcolor?(l=m.FCcolor.color.split(y)[0],t=m.FCcolor.alpha.split(y)[0]):vb.test(m)&&(l=m.replace(ib,nb)),w.fluidColor=q(l,w.fluidColor,"000000"),w.fluidAlpha=h(t,w.fluidAlpha,100),r=!0):"color"===f?(w.fluidColor=q(m,w.fluidColor,"000000"),r=!0):"alpha"===f?(w.fluidAlpha= h(m,w.fluidAlpha,100),r=!0):0<=m&&1>=m&&(w.fluidHRatio=m,u=!0),r&&(m=na(w.fluidColor,70),C=da(w.fluidColor,70),x=na(w.conColor,80),F=da(w.conColor,80),t=w.fluidAlpha,W=t+y+t,k.fluid.attr({"stroke-width":0,fill:X({FCcolor:{cx:.5,cy:0,r:"100%",color:C+y+m,alpha:W,ratio:"0,100",radialGradient:!0}})}),k.fluidTop.attr({"stroke-width":3,stroke:L(C,t),fill:X({FCcolor:{cx:.5,cy:.7,r:"100%",color:C+y+m,alpha:W,ratio:"0,100",radialGradient:!0}})}),k.btnBorderLight.attr({fill:X({FCcolor:{color:F+y+x+y+F+y+F+ y+x+y+m+y+x+y+F,alpha:"50,50,50,50,50,"+.7*t+",50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})})),u&&(x=w.x,m=w.r,C=w.fluidStroke,F=C/2,z=w.h*w.fluidHRatio,C=x-m,x+=m,W=C+F,A=x-F,B=w.y+w.h,z=B-z,D=m*w.r3dFactor,F=m-F,c?(k.fluid.animate({path:e.concat(["M",C,B],["A",m,Ca(D,1),0,0,0,x,B],["L",x,z],["A",m,Ca(D,1),0,0,0,C,z,"Z"])},c,"easeIn"),k.fluidTop.animate({path:e.concat(["M",W,z],["A",F,D,0,0,0,A,z],["L",A,z],["A",F,D,0,0,0,W,z,"Z"])},c,"easeIn")):(k.fluid.attr({path:e.concat(["M",C,B],["A",m,D, 0,0,0,x,B],["L",x,z],["A",m,D,0,0,1,C,z,"Z"])}),k.fluidTop.attr({path:e.concat(["M",W,z],["A",F,D,0,0,0,A,z],["L",A,z],["A",F,D,0,0,0,W,z,"Z"])})))):this._attr(f,m);return k},f=function(){};return function(a,c,p,m,k,l,t,r,u,w,C,F,x){var W,z,A,B,D,R,G,v,ma,N,H,K,T,J,O,Q,S,E;qb(a)&&(c=a.y,p=a.r,m=a.h,k=a.r3dFactor,l=a.parentGroup,t=a.renderer,r=a.fluidHRatio,u=a.conColor,w=a.conAlpha,C=a.fluidColor,F=a.fluidAlpha,a=a.x);k=h(k,.15);Ga.vml&&(k=k||.001);0<=r&&1>=r||(r=0);u=q(u,"FFFFFF");w=h(w,30);C=q(C, "000000");F=h(F,100);w={x:a,y:c,r:p,h:m,r3dFactor:k,renderer:t,fluidHRatio:r,conColor:u,conAlpha:w,fluidStroke:3,fluidColor:C,fluidAlpha:F};l=t.group("graphic",l);l._attr=l.attr;l.attr=b;l._setAnimate=d;l.shadow=f;l._3dAttr=w;k*=p;w=p-1.5;W=c+m;m=W-m*r;r=a-p;z=a+p;A=r+1.5;B=z-1.5;D=r-2;R=z+2;G=p+2;v=k+2;ma=W+4;N=ma+.001;H=na(u,80);K=na(u,90);u=da(u,80);T=na(C,70);C=da(C,70);J=na(T,90);O=.85*p;Q=a-O;a+=O;S=Math.sqrt((1-O*O/(p*p))*k*k);O=c+S;S=W+S;E=c-1;l.btnBorder=t.path(e.concat(["M",D,ma],["A",G, v,0,0,0,R,ma],["L",R,N],["A",G,v,0,0,0,D,N,"Z"]),l).attr({"stroke-width":4,stroke:L(H,80)});l.btnBorder1=t.path(e.concat(["M",r,ma],["A",p,k,0,0,0,z,ma],["L",z,N],["A",p,k,0,0,0,r,N,"Z"]),l).attr({"stroke-width":4,stroke:L(H,50)});l.btnBorderLight=t.path(e.concat(["M",r,W],["A",p,k,0,0,0,z,W],["A",p,k,0,0,0,r,W,"Z"]),l).attr({"stroke-width":0,fill:X({FCcolor:{color:u+y+H+y+u+y+u+y+H+y+T+y+H+y+u,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})});D=x?u+y+H+y+u+y+H+y+K+y+K+y+H+ y+u:u+y+H+y+H+y+H+y+H+y+H+y+H+y+u;l.back=t.path(e.concat(["M",r,W],["A",p,k,0,0,0,z,W],["L",z,c],["A",p,k,0,0,0,r,c,"Z"]),l).attr({"stroke-width":1,stroke:L(H,50),fill:X({FCcolor:{color:D,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}})});D=x?C+y+T:T+y+T;l.fluid=t.path(e.concat(["M",r,W],["A",p,Ca(k,1),0,0,0,z,W],["L",z,m],["A",p,Ca(k,1),0,0,0,r,m,"Z"]),l).attr({"stroke-width":0,fill:X({FCcolor:{cx:.5,cy:0,r:"100%",color:D,alpha:F+y+F,ratio:"0,100",radialGradient:!0}})});D= x?C+y+T:T+y+T;l.fluidTop=t.path(e.concat(["M",A,m],["A",w,k,0,0,0,B,m],["L",B,m],["A",w,k,0,0,0,A,m,"Z"]),l).attr({"stroke-width":2,stroke:x?L(C,F):L(J),fill:X({FCcolor:{cx:.5,cy:.7,r:"100%",color:D,alpha:F+y+F,ratio:"0,100",radialGradient:!0}})});D=x?u+y+H+y+u+y+u+y+H+y+u+y+H+y+u:H+y+H+y+H+y+H+y+H+y+H+y+H+y+H;l.front=t.path(e.concat(["M",r,W],["A",p,k,0,0,0,z,W],["L",z,c],["A",p,k,0,0,1,r,c,"Z"]),l).attr({"stroke-width":1,stroke:L(H,50),fill:X({FCcolor:{color:D,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,0,12,0,15,43,15", angle:0}})});x&&(l.frontLight=t.path(e.concat(["M",r,W],["A",p,k,1,0,0,Q,S],["L",Q,O],["A",p,k,0,0,1,r,c,"Z"]),l).attr({"stroke-width":0,stroke:"#"+H,fill:X({FCcolor:{color:D,alpha:"40,0",ratio:"0,100",angle:0}})}));x&&(l.frontLight1=t.path(e.concat(["M",a,S],["A",p,k,0,0,0,z,W],["L",z,c],["A",p,k,1,0,0,a,O,"Z"]),l).attr({"stroke-width":0,stroke:"#"+H,fill:X({FCcolor:{color:D,alpha:"40,0",ratio:"0,100",angle:180}})}));l.cylinterTop=t.path(e.concat(["M",r,E],["A",p,k,0,0,0,z,E],["L",z,E],["A",p,k, 0,0,0,r,E,"Z"]),l).attr({"stroke-width":2,stroke:L(H,40)});return l}}();Qb=function(){var a={value:!0},e=0,c=function(a){e=Boolean(a)?a.duration:0},d=function(b,c){var d,p,m=this,k=this._3dAttr,l,h,r,u,w,C,q;bb(b)&&ga(c)&&(d=b,b={},b[d]=c);if(bb(b))m=a[b]?m._3dAttr[b]:m._attr(b);else for(d in b)if(p=b[d],a[d]){if(p>=k.minValue&&p<=k.maxValue){k[d]=p;l=(p-k.minValue)/k.perLEDValueLength;p=ha(l)*k.sizeGapSum-k.ledGap;if(k.LEDCase){h=m.colorArr;u=h.length;for(r=0;r=F&&l<=x||(l=F);t=q(t,"FFFFFF");r=q(r,"000000").replace(ib,nb);u=h(u,1);w=h(w,2);Qa={x:a,y:e,w:g,h:p,wGroup:m,renderer:k,value:l,gaugeFillColor:t,gaugeBorderColor:r,gaugeBorderAlpha:u,gaugeBorderThickness:w,colorRangeManager:C,minValue:F,maxValue:x,ledGap:B,ledSize:A,type:D,useSameFillColor:W,useSameFillBgColor:z};m=k.group("graphic",m);m._attr=m.attr;m.attr=d;m._setAnimate=c;m.shadow=b;m._3dAttr=Qa;C=C.getColorRangeArr(F,x);N=a;H=e;T=K=!0;J=2===D||4===D?p:g;O=B+A;Q=B/2;S=Q/2;E=J-A;P=x-F; x=0;I=C.length;Z=sa=0;aa=!1;oa=ea="show";ua=a;wa=e;va=w/2;za=a-va;Da=e-va;U=a+g+va;va=e+p+va;W&&(Z+=1,ea="hide");z&&(Z+=2,oa="hide");0>E?(W=1,A=J):(W=parseInt(E/O,10)+1,A+=E%O/W,O=A+B);z=P/W;m.colorArr=[];J=[];1===D?ua+=O-B/2:2===D?(T=!1,wa+=O-B/2):3===D?(N=a+g,K=!1,ua+=O-B/2):(H=e+p,T=K=!1,wa+=O-B/2);Qa.ledGap=B;Qa.ledSize=A;Qa.sizeGapSum=O;Qa.perLEDValueLength=z;Qa.isIncrement=K;Qa.isXChange=T;Qa.LEDLowerFN=ea;Qa.LEDUpperFN=oa;(Qa.LEDCase=Z)&&(3===Z?ba={x:a,y:e,width:g,height:p}:aa=!0);for(m.border= k.path(["M",za,Da,"L",U,Da,U,va,za,va,"Z"],m).attr({stroke:L(r,u),"stroke-width":w}).shadow({apply:v});xe.x+d.spacingLeft&&(e=e.width-d.spacingLeft,d.origWq],stroke:C,"stroke-linecap":"round","stroke-width":q});b=0;for(m=k.length;bW],stroke:x,"stroke-linecap":"round","stroke-width":W})),Z!==J){C=0===b||b===m-1?n.limitValues.style:n.tickValues.style; g=q.labelX||0;P=z+ea;Da.getSmartText(Z);aa=Da.getSmartText(Z.charAt(0)).height;I=r+oa;ma?(b==k.length-1?(f=k[b-1],r=f.value-N,r*=E,f=r+oa,f-=aa/2):b||(f=k[b+1],r=f.value-N,r*=E,f=r+oa,f=I-f-aa/2),f=Math.max(f,aa),Z=Da.getSmartText(Z,Number.POSITIVE_INFINITY,f),aa=Da.getSmartText(Z.text).height,b==k.length-1&&.5*aa>this.canvasTop?I=.5*aa-this.canvasTop:!b&&.5*aa>this.chartHeight-this.canvasBottom&&(I-=.5*aa-(this.chartHeight-this.canvasBottom))):Z=this.smartLabel.getSmartText(Z,Number.POSITIVE_INFINITY, f);za[b]=Z.width;if(1===l||3===l)if(aa=b===m-1?P+g-Z.width:P-(Z.width/2+g),0===b?r=Number.NEGATIVE_INFINITY:(r=void 0===va?b-1:va,A=A=z=void 0,0>r?r=Number.NEGATIVE_INFINITY:(z=e.tmLabel[r],A=za[r],A=0===r?z?z.node.scrollWidth?z.node.scrollWidth>A?z.node.scrollWidth:A:A:0:z?z.node.scrollWidth?(z.node.scrollWidth>A?z.node.scrollWidth:A)/2:A/2:0,r=z?z.attrs.x+A:0)),r>=aa)if(b===m-1)e.tmLabel[va].remove();else continue;else va=b;e.tmLabel[b]=a.text(P+g,I,Z.text,c).attr({"text-anchor":Ha[q.align||G], direction:d,"vertical-align":y}).css(C).tooltip(Z.tooltext)}w&&(e.tmConnector=a.path(["M",O,Q,"L",p*T+O,p*E+Q],c).attr({"shape-rendering":wb[1>w],stroke:u,"stroke-linecap":"round","stroke-width":w}));c.translate(ua,wa);return c},realtimeUpdate:function(a){if(a===this.lastUpdatedObj)return!1;var e=this.options,c=e.series,d=this.logic,c=c&&c[0]&&c[0].data,b=a.values||[],f=a.labels||[],n=a.toolTexts||[],g=a.showLabels||[],p=c&&c.length||0,m=[],k;if(p){for(;p--;)k={},void 0!==b[p]&&""!==b[p]?(k.value= b[p],k.hasNewData=!0):k.value=c[p].y,f[p]&&(k.displayvalue=f[p],k.hasNewData=!0),n[p]&&(k.tooltext=n[p],k.hasNewData=!0),k.hasNewData&&(m[p]=d.getPointStub(k,p,e,this.definition)),"0"!=g[p]&&c[p].displayValue||(m[p].displayValue=J);m.length&&(this.lastUpdatedObj=a)&&this.drawValue(m);return Boolean(m.length)}}},v["renderer.root"]);v("renderer.bulb",{drawWidget:function(){var a=this,e=a.options,c=e.chart,d=a.paper,b=a.elements,f=c.gaugeRadius,e=e.series[0]&&e.series[0].data&&e.series[0].data[0]||{}, n=e.rolloverProperties||{},g={cx:c.gaugeOriginX,cy:c.gaugeOriginY,stroke:e.borderColor,"stroke-linecap":"round","stroke-width":e.borderWidth,r:c.animation?.001:f},p={r:f},m;null===e.y||isNaN(e.y)||(m=b.bulb=(m=b.bulb)?m.attr(g):d.circle(g,a.layers.dataset),c.animation&&m.animate(p,c.animation.duration,"easeIn"),m.click(function(b){la.call(this,a,b)}).hover(function(b){la.call(this,a,b,"DataPlotRollOver")},function(b){la.call(this,a,b,"DataPlotRollOut")}),n.enabled&&m.mouseover(function(){m.attr(n.hoverAttr); n.hoverAnimAttr&&m.animate(n.hoverAnimAttr,100,"easeIn")}).data("hoverAttr",n.hoverAttr).mouseout(function(){m.attr(n.outAttr);n.hoverAnimAttr?m.animate(p,100,"easeIn"):m.attr(p)}).data("outAttr",n.outAttr))},drawWidgetValue:function(a){var e=this.elements;a=a[0];var c=a.rolloverProperties||{},d=c.hoverAttr,b=c.outAttr,f={fill:X(a.color),ishot:!0},e=e.bulb,n=e.data("hoverAttr"),g=e.data("outAttr");c.enabled&&(d&&d.stroke&&(n.stroke=d.stroke,g.stroke=b.stroke),d&&d.fill&&(n.fill=d.fill,g.fill=b.fill)); e||this.drawWidget();c={value:a.y,displayValue:a.displayValueArgs,toolText:a.toolText};null===a.y||isNaN(a.y)||e.attr(f).tooltip(a.toolText).data("eventArgs",c)},drawScale:function(){},drawWidgetLabel:function(a){var e=this.options.chart,c=this.paper,d=this.elements,b=this.layers,f=e.gaugeRadius,n=e.gaugeOriginX,g=e.gaugeOriginY;a=a[0];var p=d.dataLabel,m=e.dataLabels.style,k={fontFamily:m.fontFamily,fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle};b.datalabels|| (b.datalabels=c.group("datalabels").insertAfter(b.dataset));e.placeValuesInside?(b=g,f=Aa):(b=g+f+e.valuePadding,f=cb);null===a.y||isNaN(a.y)||a.displayValue===J||(p||(d.dataLabel=p=c.text(this.layers.dataset)),p.attr({text:a.displayValue,"text-anchor":"middle",x:n,y:b,"vertical-align":f,fill:m.color,direction:e.textDirection,"text-bound":[m.backgroundColor,m.borderColor,m.borderThickness,m.borderPadding,m.borderRadius,m.borderDash]}).css(k).tooltip(a.originalText))}},v["renderer.widgetbase"]);v("renderer.thermometer", {drawWidget:function(){var a=this.options,e=a.chart,c=this.paper,d=a.series[0].data[0],b=e.plotHoverEffects||{},f=e.thmBulbRadius,n=.643*f,g=new sb(d.color),p=g.get("hex").replace(ib,J),g=100*g.get("a"),m;d.minValue=a.scale.min;d.maxValue=a.scale.max;m=this.elements.thermometer=Ob(0+n,0-n,f,e.thmHeight,this.layers.dataset,c,0,e.thmGlassColor,e.gaugeBorderColor,e.gaugeBorderThickness,p,g,e.use3DLighting);b.enabled&&m.data("hoverInAttrs",{fluidColor:b.thmFillHoverColor,fluidAlpha:b.thmFillHoverAlpha}).data("hoverOutAttrs", {fluidColor:p,fluidAlpha:g}).hover(function(){m.attr(m.data("hoverInAttrs"))},function(){m.attr(m.data("hoverOutAttrs"))})},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,n=b.min,b=a[0],f=(h(b.y,n)-n)/(f-n),g;d.thermometer||c.drawWidget();b.fluidHRatio=f;n={value:b.y,displayValue:b.displayValueArgs,toolText:b.toolText};e&&d.thermometer._setAnimate(e);d.thermometer.attr({fluidHRatio:f,ishot:!0}).click(function(a){la.call(this,c,a)}).hover(function(a){la.call(this,c, a,"DataPlotRollOver")},function(a){la.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",n);if(b.toolText&&(g=d.thermometer.bottom)){do g.tooltip(b.toolText);while(g=g.next)}}},v["renderer.widgetbase"]);v("renderer.cylinder",{drawWidget:function(){var a=this.options,e=a.chart,c=e.plotHoverEffects||{},d=this.paper,b=this.elements,f=this.layers.dataset,n=a.scale,g=n.max,a=a.series[0].data[0],h,m;a.minValue=n.min;a.maxValue=g;b.cylinder=Pb(e.cylRadius,0,e.cylRadius,e.cylHeight,e.cylYScale,f,d,0,e.cylGlassColor, "100",e.cylFillColor,e.cylFillAlpha,e.cyl3DLighting);c.enabled&&(h={color:c.cylFillHoverColor,alpha:c.cylFillHoverAlpha},m={color:e.cylFillColor,alpha:e.cylFillAlpha},b.cylinder.hover(function(){b.cylinder.attr(h)},function(){b.cylinder.attr(m)}))},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,n=b.min,b=a[0],f=(h(b.y,n)-n)/(f-n),g;d.cylinder||c.drawWidget();n={value:b.y,displayValue:b.displayValueArgs,toolText:b.toolText};b.fluidHRatio=f;e&&d.cylinder._setAnimate(e); d.cylinder.attr({fluidHRatio:f,ishot:!0}).click(function(a){la.call(this,c,a)}).hover(function(a){la.call(this,c,a,"DataPlotRollOver")},function(a){la.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",n);if(b.toolText&&(g=d.cylinder.bottom)){do g.tooltip(b.toolText);while(g=g.next)}}},v["renderer.widgetbase"]);v("renderer.led",{drawWidget:function(){var a=this.options,e=this.paper,c=this.logic,d=a.chart,b=this.elements,f=a.scale,n=f.max,g=f.min,a=a.series[0].data[0],h=this.layers.dataset;a.minValue= g;a.maxValue=n;b.led=Qb(0,0,this.canvasWidth,this.canvasHeight,h,e,0,d.gaugeFillColor,d.gaugeBorderColor,d.gaugeBorderAlpha,d.gaugeBorderThickness,c.colorRangeGetter,g,n,d.useSameFillColor,d.useSameFillBgColor,d.ledSize,d.ledGap,c.isHorizontal?f.reverseScale?3:1:f.reverseScale?4:2,d.showShadow,d.plotHoverEffect)},drawWidgetValue:function(a,e){var c=this.elements,d=a[0].y;c.led||this.drawWidget();e&&c.led._setAnimate(e);c.led.attr({value:d})}},v["renderer.widgetbase"]);v("renderer.bullet",{drawWidget:function(){var a= this.options,e=this.paper,c=this.logic,d=a.chart,b=a.scale,a=this.elements,f=this.layers.dataset,n=this.canvasWidth,g=this.canvasHeight,p=b.min,m=b.max,k=b&&b.trendPoint||[],l=d.colorRangeFillMix,t=d.colorRangeFillRatio,r=d.colorRangeBorderColor,u=d.colorRangeBorderAlpha,w=d.colorRangeBorderThickness,C=c.colorRangeGetter.getColorRangeArr(p,m),d=d.showShadow,q,x,v,z,A,B=c.colorManager,D,R,G;a.linear||(a.linear=q=e.group("colorrange",f),a.outerRect=e.rect(q));a.outerRect.attr({x:0,y:0,width:n,height:g, stroke:"none",r:0});c=c.isHorizontal?b.reverseScale?3:1:b.reverseScale?4:2;1===c?(f=function(a,b){return{x:a*n/(m-p),y:0,width:(b-a)*n/(m-p),height:g}},x=270):2===c?(f=function(a,b){return{x:0,y:a*g/(m-p),width:n,height:(b-a)*g/(m-p)}},x=180):3===c?(f=function(a,b){return{x:n-b*n/(m-p),y:0,width:(b-a)*n/(m-p),height:g}},x=270):(f=function(a,b){return{x:0,y:g-b*g/(m-p),width:n,height:(b-a)*g/(m-p)}},x=180);a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(b=C.length;cw]}).click(function(a){la.call(this,e,a)}).hover(function(a){la.call(this,e,a,"DataPlotRollOver");M.enabled&&(this.attr(M.hoverAttr),M.showHoverAnimation&&this.animate(N,100,"easeOut"))},function(a){la.call(this,e,a,"DataPlotRollOut");M.enabled&&(this.attr(M.outAttr),M.showHoverAnimation&&this.animate(J,100,"easeOut"))}).tooltip(l.toolText).data("eventArgs",p))}},v["renderer.widgetbase"]);v("renderer.hbullet",{drawWidgetLabel:function(a){var e= this.options,c=e.chart,d=this.layers,b=this.paper,f=d.datalabels;a=a[0];var n=this.canvasWidth,g=this.canvasHeight,h=c.valuePadding,e=e.plotOptions.series.dataLabels.style,m={fontFamily:e.fontFamily,fontSize:e.fontSize,lineHeight:e.lineHeight,fontWeight:e.fontWeight,fontStyle:e.fontStyle};f||(f=d.datalabels=b.group("datalabels").insertAfter(d.dataset));d=n+h;void 0===a.y||isNaN(a.y)||a.displayValue===J||(a.dataLabel=b.text(d,g/2,a.displayValue,f).attr({"text-anchor":Ha[Wa],fill:e.color,direction:c.textDirection, "text-bound":[e.backgroundColor,e.borderColor,e.borderThickness,e.borderPadding,e.borderRadius,e.borderDash]}).css(m).tooltip(a.originalText))}},v["renderer.bullet"]);v("renderer.hlinear",{drawWidget:function(){var a=this.options,e=this.paper,c=this.logic,d=a.chart,b=a.scale,a=this.elements,f=this.layers.dataset,n=this.canvasWidth,g=this.canvasHeight,p=b.min,m=b.max,b=b&&b.trendPoint||[],k=d.colorRangeFillMix,l=d.colorRangeFillRatio,t=d.colorRangeBorderColor,r=d.colorRangeBorderAlpha,u=d.colorRangeBorderThickness, w=c.colorRangeGetter.getColorRangeArr(p,m),C=d.showShadow,F,x,v,z,A,B,D=this.pointOrientation={top:1,bottom:3},R=c.colorManager,G,M,J;a.linear||(a.linear=x=e.group("colorrange",f),a.outerRect=e.rect(x));a.outerRect.attr({x:0,y:0,width:n,height:g,stroke:"none",r:0});v=function(a,b){return{x:a*n/(m-p),y:0,width:(b-a)*n/(m-p),height:g}};a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(F=w.length;cg.max&&(e=g.max);for(;nu+C&&(Q=u-e+C);return{x:Q,y:b,align:"middle"}};y=function(a,b){return{x:(a-p+(b-a)/2)*u/(m-p),y:w/2,width:(b-a)*u/(m-p),height:w}};if(a&&a.length)for(v=a.length;v--;)if(B=a[v],0!==B.showvalue&&B.displayValue!==J&&(H=c.getOriSize(B.displayValue),B.setWidth&&(H=c.getSmartText(B.displayValue,B.setWidth,H.height,!0)),G=this.getPointerLabelXY(B.y,x,F,H.height/2,H.width/2),B.isLabelString)){E=!1;for(N=1;!E;){M=a[v+N];if(!M)break;M.isLabelString?E= !0:N+=1}M&&(E=c.getOriSize(M.displayValue),z=D(M.y,x,F,E.height/2),N=z.x-E.width/2-(G.x+H.width/2),z=z.x-G.x,0>N&&(A=H.width+N,A>z&&(B.setWidth=A=z),A>K?(G=B.setWidth&&B.setWidth<=A?c.getSmartText(B.displayValue,B.setWidth,H.height,!0):c.getSmartText(B.displayValue,A,H.height,!0),B.displayValue=G.text,G.tooltext&&(B.originalText=G.tooltext)):(G=c.getSmartText(B.displayValue,K,H.height,!0),B.displayValue=G.text,G.tooltext&&(B.originalText=G.tooltext),N=2*N+K-4),B.setWidth=null,A=E.width+N-4,M.setWidth= A>z?z:A>K?A:K));B.setWidth&&(G=c.getSmartText(B.displayValue,B.setWidth,H.height,!0),B.displayValue=G.text,G.tooltext&&(B.originalText=G.tooltext),B.setWidth=null)}this.drawPointerLabels(null,e);t=t||{};c.setStyle(t);if(l&&r)for(v=0,F=l.length;vK&&G.height-4>T?c.getSmartText(x,G.width-4,G.height-4):c.getSmartText(x,G.width,G.height),f.text(b).attr({"text-anchor":Aa,"vertical-align":Aa,text:H.text,x:G.x,y:G.y, direction:k,fill:t.color}).css(t).tooltip(H.tooltext));if(d)for(v=0,F=d.length;vN&&(z=z.x-G.x,A=H.width+N,A>z&&(l.setWidth=A=z),A>K?(H=l.setWidth&&l.setWidth<=A?c.getSmartText(l.displayValue,l.setWidth,H.height,!0):c.getSmartText(l.displayValue,H.width+N-4,H.height,!0),l.displayValue=H.text,H.tooltext&&(l.originalText=H.tooltext)):(H=c.getSmartText(l.displayValue,K,H.height,!0),l.displayValue=H.text,H.tooltext&&(l.originalText=H.tooltext),N=2*N+K-4),l.setWidth=null,A=E.width+N-4,M.setWidth=A>z?z:A>K?A:K));l.setWidth&&(H=c.getSmartText(l.displayValue,l.setWidth,H.height, !0),l.displayValue=H.text,H.tooltext&&(l.originalText=H.tooltext),l.setWidth=null);T=l.showOnTop?-(n+H.height/2):w+O;t=l.isZone?y(l.startValue,l.endValue).x:G.x;l.dataLabel=f.text(0,T,l.displayValue,b).attr({"text-anchor":Ha[G.align],direction:k}).css(l.style).tooltip(l.originalText);l.dataLabel.attr({x:t})}},drawPointerLabels:function(a,e){for(var c=this.layers.datalabels,d=this.paper,b=this.options,f=b.chart,n=f.marginLeft,g=f.pointerOnOpp,h=f.valueInsideGauge,f=f.textDirection,m=this.smartLabel, k=b.series&&b.series[0]&&b.series[0].data||[],b=b.plotOptions.series.dataLabels.style,l=k.length,t={fontFamily:b.fontFamily,fontSize:b.fontSize,lineHeight:b.lineHeight,fontWeight:b.fontWeight,fontStyle:b.fontStyle},r,u,q,C;l--;)u=k[l],r=u.displayValue,0!==u.showvalue&&r!==J&&(m.setStyle(t),C=m.getOriSize(r),q=this.getPointerLabelXY(u.y,h,g,C.height/2,C.width/2),u.dataLabel?u.dataLabel.attr({text:r,title:u.originalText||""}):u.dataLabel=d.text(c).attr({"text-anchor":Ha[q.align],text:r,x:0,y:q.y,fill:b.color, direction:f,"text-bound":[b.backgroundColor,b.borderColor,b.borderThickness,b.borderPadding,b.borderRadius,b.borderDash]}).css(t).tooltip(u.originalText),q.x+nM&&(E+=M,M=E-M,E-=M),a.ringpath(r,u,n,g,E,M,f).attr({fill:X({FCcolor:{cx:r,cy:u,r:n,gradientUnits:"userSpaceOnUse",color:N.join(),alpha:H,ratio:K,radialGradient:!0}}),"stroke-width":k,stroke:I}).shadow({apply:F,opacity:G/100}),E=T;b.tickMarkGroup||(b.tickMarkGroup=a.group("tickmark",f));b.trendMarkerGroup||(b.trendMarkerGroup=a.group("trendmarker",f));b.pointGroup|| (b.pointGroup=a.group("pointers",f).translate(r,u));b.pivot||(b.pivot=a.circle(f));b.pivot.attr({cx:r,cy:u,r:d.pivotRadius,fill:X({FCcolor:d.isRadialGradient?{color:d.pivotFillColor,alpha:d.pivotFillAlpha,ratio:d.pivotFillRatio,radialGradient:!0,angle:d.pivotFillAngle,cx:.5,cy:.5,r:"50%"}:{color:d.pivotFillColor,alpha:d.pivotFillAlpha,ratio:d.pivotFillRatio,radialGradient:!1,angle:d.pivotFillAngle}}),"stroke-width":d.pivotBorderThickness,stroke:d.pivotBorderColor}).shadow({apply:F});f=Math.cos(89.99* hb);p=-f;B=0;for(D=c.length;BH&&(t+=H,H=t-H,t-=H),d.graphic=a.ringpath(r,u,m,k,t,H,b.trendPointGroup).attr({fill:L(d.color,d.alpha),"stroke-width":d.showBorder?d.thickness:0,stroke:d.borderColor,"stroke-dasharray":d.dashStyle})):d.graphic=a.path(["M",K,M,"L",N,H],b.tickMarkGroup).attr({"stroke-width":d.showBorder? d.thickness:0,stroke:d.borderColor,"stroke-linecap":"round","stroke-dasharray":d.dashStyle}),d.useMarker&&(d.markerElement=a.polypath("3",K,M,d.markerRadius,(-t+Math.PI)/hb,0,b.trendMarkerGroup).attr({fill:d.markerColor,"stroke-width":1,stroke:d.markerBorderColor}),""!==d.markerToolText&&d.markerElement.tooltip(d.markerToolText)),d.displayValue!==J&&(M=(d.endValue+d.startValue)/2,H=w+(M-x)/R*C,N=Math.cos(H),H=Math.sin(H),t=O.getSmartText(d.displayValue).width,M=d.valueInside?k-2-l:m+2+l,K=r+M*N,M= u+M*H,m=O.getSmartText(d.displayValue).height,m=O.getSmartText(d.displayValue,this.canvasWidth,m),K=this.canvasWidththis.canvasWidth&&(K=this.canvasWidth/2),k=d.style,d.textElement=a.text(b.trendMarkerGroup).attr({x:K,y:M,text:m.text,direction:e,"text-anchor":Va,"vertical-align":cb}).css(k).tooltip(m.oriText),K=d.textElement.getBBox(),K=K.height,M=N>f||NH?0:K):M+-(0d&&0e?Bb(c.rotationStartAngle)-d:c.rotationStartAngle- d;e=this.y-e*x;a=[];b=0;g=this.index;ef.max&&(e=f.max);for(;b=r&&t.y<= u&&(z=(t.y-r)/C*F,z=(l+z)/hb,D.attr({angle:z},null,e),d&&D.tooltip(t.toolText))},drawWidgetLabel:function(a){var e=this.paper,c=this.layers,d=c.datalabels,b=this.options,f=b.series[0],n=b.plotOptions.series.dataLabels.style,g=f.pivotRadius,p=h(parseInt(n.lineHeight,10),12),m=f.valueBelowPivot,k=f.gaugeOriginX,l=b.chart.textDirection,t={fontFamily:n.fontFamily,fontSize:n.fontSize,lineHeight:n.lineHeight,fontWeight:n.fontWeight,fontStyle:n.fontStyle},r,u,q,C=f.gaugeOriginY+(m?p/2+g+2:-(p/2)-g-2);d|| (d=c.datalabels=e.group("datalabels").insertAfter(c.dataset));dc(a,function(a,b){r=a.displayValue;q=a.valueY;u=h(a.valueX,k);ga(q)||(q=m?C+p*b:C-p*b);ga(r)&&r!==J&&(a.dataLabel?a.dataLabel.attr({text:r,title:a.originalText||""}):a.dataLabel=e.text(d).attr({x:u,y:q,text:r,"text-anchor":Ha[Va],direction:l,fill:n.color,"text-bound":[n.backgroundColor,n.borderColor,n.borderThickness,n.borderPadding,n.borderRadius,n.borderDash]}).css(t).tooltip(a.originalText))})},drawScale:function(){var a=this.options, e=a.chart,c=a.scale,d=this.paper,b=this.elements,f=a.series[0],a=Number(f.gaugeOriginX),n=Number(f.gaugeOriginY),g=e.gaugeStartAngle,p=c.min,m=e.textDirection,k=Number(f.gaugeInnerRadius),l=Number(f.gaugeOuterRadius),f=c.max-p,e=e.gaugeEndAngle-g,t=0,r=c.majorTM,u=c.minorTM,q=b.tickMarkGroup,C,F,x,v,z,A,B=Math.cos,D=Math.sin,y=Number(c.minorTMHeight),G=Number(c.majorTMHeight),M=c.placeTicksInside,t=c.placeValuesInside;z=c.tickValueDistance;var J,N,H=c.limitValues.style,K=c.tickValues.style,E=.75* h(parseInt(H.lineHeight,10),12),I=.75*h(parseInt(K.lineHeight,10),12);M?(M=k,y=M+y,G=M+G):(M=l,y=M-y,G=M-G);J=t?k-z:l+z;b.majorTM||(b.majorTM=[]);b.tmLabel||(b.tmLabel=[]);t=0;for(k=r.length;tC?y=v:vC&&(y=e);e=pb((ia(y-C,2)-ia(l,2))/ia(c,2));d=-e;v={x:ha(ia(c,2)*e/(y-C)*100)/100,y:ha(100*(ia(l,2)/(y-C)+C))/100};e={x:ha(ia(u,2)*e/(y-h)*100)/100,y:ha(100*(ia(m,2)/(y-h)+h))/100};r={x:ha(ia(c,2)*d/(y-C)*100)/100,y:ha(100*(ia(l,2)/(y-C)+C))/100};y={x:ha(ia(u,2)*d/(y-h)*100)/100,y:ha(100*(ia(m,2)/(y-h)+h))/100};v={topLeft:r,bottomLeft:y,topRight:v,bottomRight:e};for(x in v)if(isNaN(v[x].x)|| isNaN(v[x].y))v[x].x="topLeft"===x||"bottomLeft"===x?-c:c,v[x].y="bottomRight"===x||"bottomLeft"===x?h:C;h=v.topLeft;d=v.bottomLeft;x=q+h.x;y=q+v.topRight.x;C=q+d.x;q+=v.bottomRight.x;h=h.y;d=d.y;v=["A",c,l,0,0,0,y,h];e=["A",c,l,0,1,1,y,h];r=["A",u,m,0,0,1,C,d];u=["A",u,m,0,1,0,C,d];u={front:["M",x,h].concat(v,["L",q,d],r,["Z"]),back:["M",x,h].concat(e,["L",q,d],u,["Z"]),silhuette:["M",x,h].concat(e,["L",q,d],r,["Z"])};a||(u.top=["M",x,h].concat(v,["L",y,h],["A",c,l,0,1,0,x,h],["Z"]));x=u}else x= d*m,y=e*m,h=La(5,d),d=La(2,2*x),e=La(2,d),m=e/m,x={top:["M",l,c,"L",a,c+x,u,c,a,c-x,"Z"],front:["M",l,c,"L",a,c+x,u,c,C,v,a,v+y,q,v,"Z"],topLight:["M",l,c+.5,"L",a,c+x+.5,a,c+x-d,l+m,c,"Z"],topLight1:["M",u,c+.5,"L",a,c+x+.5,a,c+x-e,u-m,c,"Z"],silhuette:["M",l,c,"L",a,c-x,u,c,C,v,a,v+y,q,v,"Z"],centerLight:["M",a,c+x,"L",a,v+y,a-5,v+y,a-h,c+x,"Z"],centerLight1:["M",a,c+x,"L",a,v+y,a+5,v+y,a+h,c+x,"Z"]};return x},c=function(b,c){var d,g,p=this,m,k,l=!1,t=!1,r=this._3dAttr,q;bb(b)&&ga(c)&&(d=b,b={}, b[d]=c);if(bb(b))p=a[b]?this._3dAttr[b]:this._attr(b);else{for(d in b)g=b[d],a[d]?(r[d]=g,"fill"===d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),yb.test(g)?(k=new sb(g),m=k.get("hex"),k=100*k.get("a")):g&&g.FCcolor?(m=g.FCcolor.color.split(y)[0],k=g.FCcolor.opacity.split(y)[0]):vb.test(g)&&(m=g.replace(ib,nb),k=h(r.opacity,100)),r.color=m,r.opacity=k,t=!0):"color"===d||"opacity"===d?(r.fill=X(L(r.color,h(r.opacity,100))),t=!0):"stroke"===d||"strokeColor"===d||"strokeAlpha"===d?r.is2D&& ("stroke"===d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),yb.test(g)?(k=new sb(g),m=k.get("hex"),k=100*k.get("a")):g&&g.FCcolor?(m=g.FCcolor.color.split(y)[0],k=g.FCcolor.opacity.split(y)[0]):vb.test(g)&&(m=g.replace(ib,nb),k=h(r.opacity,100)),r.strokeColor=m,r.strokeAlpha=k):r.stroke=L(r.strokeColor,h(r.strokeAlpha,100)),r.isFunnel?this.funnel2D.attr("stroke",r.stroke):this.borderElement.attr("stroke",r.stroke)):"stroke-width"===d?r.is2D&&(r.isFunnel?this.funnel2D.attr(d,g):this.borderElement.attr(d, g)):l=!0):this._attr(d,g);r.is2D?(l&&(m=e(r.x,r.y,r.R1,r.R2,r.h,r.r3dFactor,r.is2D),p.shadowElement.attr({path:m.silhuette}),r.isFunnel?p.funnel2D.attr({path:m.silhuette}):(p.lighterHalf.attr({path:m.lighterHalf}),p.darkerHalf.attr({path:m.darkerHalf}),p.borderElement.attr({path:m.silhuette}))),t&&(r.isFunnel?p.funnel2D.attr("fill",X(L(r.color,h(r.opacity,100)))):(!1===r.use3DLighting?m=k=r.color:(m=na(r.color,80),k=da(r.color,80)),p.lighterHalf.attr("fill",X(L(k,h(r.opacity,100)))),p.darkerHalf.attr("fill", X(L(m,h(r.opacity,100))))))):(l&&(m=e(r.x,r.y,r.R1,r.R2,r.h,r.r3dFactor,r.is2D),p.shadowElement.attr("path",m.silhuette),r.isFunnel?(p.front.attr("path",m.front),p.back.attr("path",m.back),p.toptop&&m.top&&p.toptop.attr("path",m.top)):(p.front.attr("path",m.front),p.toptop.attr("path",m.top),p.topLight.attr("path",m.topLight),p.topLight1.attr("path",m.topLight1),p.centerLight.attr("path",m.centerLight),p.centerLight1.attr("path",m.centerLight1))),t&&(m=r.color,k=r.opacity,r.isFunnel?(t=da(m,60),l= na(m,60),p.back.attr("fill",X({FCcolor:{color:l+y+t+y+m,alpha:k+y+k+y+k,ratio:"0,60,40",angle:0}})),p.front.attr("fill",X({FCcolor:{color:m+y+t+y+l,alpha:k+y+k+y+k,ratio:"0,40,60",angle:0}})),p.toptop&&p.toptop.attr("fill",X({FCcolor:{color:t+y+l,alpha:k+y+k,ratio:"0,100",angle:-65}}))):(t=da(m,80),d=da(m,70),l=na(m,80),g="0,"+k,q=m+y+d,r=5/(r.R1*r.r3dFactor)*100,p.centerLight.attr("fill",X({FCcolor:{color:q,alpha:g,ratio:"0,100",angle:0}})),p.centerLight1.attr("fill",X({FCcolor:{color:q,alpha:g, ratio:"0,100",angle:180}})),p.topLight.attr("fill",X({FCcolor:{color:d+y+d+y+m+y+m,alpha:k+y+k+y+0+y+0,ratio:"0,50,"+r+y+(50-r),angle:-45}})),p.topLight1.attr("fill",X({FCcolor:{color:d+y+m+y+l,alpha:k+y+k+y+k,ratio:"0,50,50",angle:0}})),p.front.attr("fill",X({FCcolor:{color:m+y+m+y+l+y+l,alpha:k+y+k+y+k+y+k,ratio:"0,50,0,50",angle:0}})),p.toptop.attr("fill",X({FCcolor:{color:t+y+m+y+l+y+l,alpha:k+y+k+y+k+y+k,ratio:"0,25,30,45",angle:-45}})))))}return p},d=function(){var a=this.shadowElement;d&&a.shadow.apply(a, arguments)};return function(a,f,n,g,p,m,k,l,t,r,q,w){var v=this.layers.dataset;qb(a)&&(f=a.y,n=a.R1,g=a.R2,p=a.h,m=a.r3dFactor,k=a.gStr,l=a.is2D,w=a.use3DLighting,t=a.renderer,q=a.isHollow,r=a.isFunnel,a=a.x);m=h(m,.15);a={x:a,y:f,R1:n,R2:g,h:p,r3dFactor:m,is2D:l,use3DLighting:w,isHollow:q,isFunnel:r,renderer:t};f=e(a);k=t.group(k,v);k.Shapeargs=f;k.shadowElement=t.path(f.silhuette,k).attr({fill:ra,stroke:"none"});k._attr=k.attr;k.attr=c;k.shadow=d;k._3dAttr=a;r?l?k.funnel2D=t.path(f.silhuette,k): (k.back=t.path(f.back,k).attr({"stroke-width":0,stroke:"none"}),k.front=t.path(f.front,k).attr({"stroke-width":0,stroke:"none"}),f.top&&(k.toptop=t.path(f.top,k).attr({"stroke-width":0,stroke:"none"}))):l?(k.lighterHalf=t.path(f.lighterHalf,k).attr({"stroke-width":0}),k.darkerHalf=t.path(f.darkerHalf,k).attr({"stroke-width":0}),k.borderElement=t.path(f.silhuette,k).attr({fill:ra,stroke:"none"})):(k.front=t.path(f.front,k).attr({"stroke-width":0}),k.centerLight=t.path(f.centerLight,k).attr({"stroke-width":0}), k.centerLight1=t.path(f.centerLight1,k).attr({"stroke-width":0}),k.toptop=t.path(f.top,k).attr({"stroke-width":0}),k.topLight=t.path(f.topLight,k).attr({"stroke-width":0}),k.topLight1=t.path(f.topLight1,k).attr({"stroke-width":0}));return k}}(),getPlotData:function(a){var e=this.datasets[0],c=e.data[a],d=e.userData||(e.userData=[]),e="y name color alpha borderColor borderWidth link displayValue datasetIndex toolText".split(" "),b;if(d[a])a=d[a];else{a=d[a]={};for(d=0;dd&&(this.point=b,this.sLabel=c)):(this.point=b,this.sLabel=c)};aa.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX+e.oriTextWidth,d=b.labelX+c.oriTextWidth,ab?!0:!1}])}();Z.set=function(){return t.set.apply(Z,[function(a,b){return a.labelX+b.oriTextWidth},function(a,b){return ah.labelX?(p=h.labelX+r.width,p=b.smartLabel.getSmartText(h.displayValue,p,Number.POSITIVE_INFINITY,!0),h.labelX= 2,h.isLabelTruncated=!0,h.displayValue=p.text,h.virtualWidth=p.maxWidth,P.setAll(!0,h,p)):!m&&h.labelX+r.width>b.chartWidth&&(p=b.smartLabel.getSmartText(h.displayValue,b.chartWidth-h.labelX,Number.POSITIVE_INFINITY,!0),h.isLabelTruncated=!0,h.displayValue=p.text,h.virtualWidth=p.maxWidth,aa.setAll(!0,h,p))),h.pWidth=h.virtualWidth=h.virtualWidth||r.width,J+=x,v=y):(h.oriText=h.displayValue,y=1==n.useSameSlantAngle?q?k*g[0].y/q:k:q?k*pb(g[0].y/q):k,h.labelWidht>2*y&&!c?(h.labelAline="start",h.labelX= 0):(h.labelAline="middle",h.labelX=I),r=2*E,h.displayValue=b.smartLabel.getSmartText(h.displayValue,2*y+r,Number.POSITIVE_INFINITY,!0).text,h.labelY=(B?J:J-z*v)-O-3),h.plotX=I,h.plotY=J;d(a,{lTrimmedInfo:P,rTrimmedInfo:aa,lLargestLabel:S,rLargestLabel:Z})}function d(a,c){var d=0,e=c.lTrimmedInfo,f=c.rTrimmedInfo,g=c.lLargestLabel,h=c.rLargestLabel,k=0;if(!e.flag||!f.flag){if(f.flag){if(!g.point)return;d=f.sLabel;d=d.oriTextWidth-d.width;g=g.point.labelX-3;d=-Math.ceil(Math.min(d,g))}else if(e.flag){if(!h.point)return; d=e.sLabel;d=d.oriTextWidth-d.width;g=aa-(h.point.labelX+h.sLabel.width);d=Math.ceil(Math.min(d,g))}if(d)for(h=0,e=a.length;hd?b.smartLabel.getSmartText(g.oriText,g.pWidth,Number.POSITIVE_INFINITY,!0):b.smartLabel.getSmartText(g.oriText,g.pWidth+d,Number.POSITIVE_INFINITY,!0),g.isLabelTruncated&&(k=f.width-g.pWidth)):f=0>>0;if("function"!==typeof a)throw new TypeError(a+" is not a function");1this.distributionLength&&!b){n.exhaustion=!0;for(m in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[m],r=0,b=c.length;rparseInt(m,10)?t.distributionFactor=l.getEffectiveLength()-1-m:t.distributionFactor=0),l.set(q++,t),d=!d;this.distributedMatrix= e.mergeWith(h);this.altDistributedMatrix=f.mergeWith(k)}else{for(p in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[p],r=0,b=c.length;rparseInt(p,10)?t.distributionFactor=l.getEffectiveLength()-1-p:t.distributionFactor=0),l.set(q++,t);this.distributedMatrix=e.mergeWith(h)}};e.prototype.getDistributedResult=function(){var a,c=[],d=(a=b.options.legend)&&"right"===a.align&&1||0;a.width?d&&(aa-=a.width+f.chart.spacingRight):d=0;b.isLegendRight= d;this.distribute(d);d?(a=b.alignmentType["default"],c.push(this.distributedMatrix)):(a=this.flags.exhaustion?b.alignmentType.alternate:b.alignmentType["default"],this.flags.exhaustion?[].push.call(c,this.distributedMatrix,this.altDistributedMatrix):c.push(this.distributedMatrix));return{forceMatrix:this.forcePushObj,suggestion:a,matrix:c}};S=new e(Math.floor(m/Q));ea=M?P:w;g.forEach(function(a,b){var c;c=0;!M&&0===b||!M&&b===g.length-1?S.forcePush(a,b):(c=a.y*ea,X+=a.y*ea,c=X-c+c/2,c=Math.floor(c/ Q),S.push(a,c))});m=S.getDistributedResult();g.length=0;if(void 0===m.matrix[1])[].push.apply(g,m.matrix[0]);else for(P=m.matrix[0],U=m.matrix[1],r=Math.max(P.length,U.length),t=0;tb.length)){w&&(x=La(1.5*J,y/w),z=J);y=function(a){return function(){c.legendClick(a, !0,!1)}};J=function(a){return function(){return c.getEventArgs(a)}};L=function(a){return function(){a.attr({visibility:"visible"})}};t.trackTooltip(!0);b&&b.length||(b=[]);g.singletonCase=E&&2==b.length||1==b.length;e.data||(e.data=[]);for(I=b.length;I--;)N=b[I],G=N.y,M=N.displayValue,l=N.toolText,K=!!N.link,H=A?0:N.isSliced,null!==G&&void 0!==G&&N.shapeArgs?((E=d[I])||(e.data[I].plot=E=d[I]={value:G,displayValue:M,sliced:!!H,chart:c,plotItems:d,seriesData:g,cursor:K?"pointer":"",x:N.x,index:I,graphic:c.pyramidFunnelShape(N.shapeArgs).attr({fill:N.color, opacity:0,"stroke-width":N.borderWidth,stroke:N.borderColor}),dataLabel:m.text(t).attr({text:M,ishot:!0,cursor:K?"pointer":"",direction:f,x:0,y:0}).css(B).tooltip(N.originalText),trackerObj:m.path(r)},e.data[I].legendClick=y(E),e.data[I].getEventArgs=J(E),G=M={},N.hoverEffects&&(G={color:N.color,opacity:N.alpha,"stroke-width":N.borderWidth,stroke:N.borderColor},M=N.rolloverProperties,M={color:M.color,opacity:M.alpha,"stroke-width":M.borderWidth,stroke:M.borderColor}),!N.doNotSlice&&E.trackerObj.click(c.slice, E),E.trackerObj.mouseup(c.plotMouseUp,E),E.trackerObj.hover(D(E,M),R(E,G)),E.dataLabel.hover(D(E,M),R(E,G)),k&&E.trackerObj.tooltip(l),!N.doNotSlice&&E.dataLabel.click(c.slice,E),E.dataLabel.mouseup(c.plotMouseUp,E),q&&0===I&&"funnel"==c.type&&g.streamlinedData||(E.connector=m.path(t).attr({"stroke-width":p.connectorWidth,stroke:p.connectorColor,ishot:!0,cursor:K?"pointer":""}).click(c.slice,E).mouseup(c.plotMouseUp,E).hover(D(E,M),R(E,G))),E.dy=0,w&&(z&&(E._startTranslateY=l="t0,"+z,E.dy=E.DistanceAvailed= z,E.graphic.attr({transform:l}),E.dataLabel.attr({transform:l}),E.connector.attr({transform:l})),v[N.x]&&(z-=x))),h?(t.attr({visibility:"hidden"}),E.graphic.animate({opacity:N.alpha},h,"easeIn",I===b.length-1&&L(t))):E.graphic.attr({opacity:N.alpha})):e.data[I].plot=d[I]={dataLabel:m.text(t).attr({text:M,direction:f,x:0,y:0}).css(B).tooltip(N.originalText)};c.drawDataLabels();c.drawTracker(a,e)}},slice:function(a,e,c,d){var b=this.chart;a=b.datasets[0].SlicingDistance/2;c=e=0;var f=this.plotItems, h=f.length,g,p,m,k,l,t,r,q;t={hcJSON:{chart:{issliced:!1},series:[]}};t.hcJSON.series[0]={data:m=[]};d=this.sliced=ga(d)?d:!this.sliced;r=-a;q=function(a,c){return function(){qa.raiseEvent("SlicingEnd",{slicedState:a,data:b.getPlotData(c)},b.logic.chartInstance)}};for(e=0;el?"crisp":""})),f=0===v&&"funnel"==this.type&&a.streamlinedData?f+(d[1].DistanceAvailed||0):l+(c.DistanceAvailed||0)),E!==J&&c.dataLabel.attr({transform:"t"+b+","+f,"text-anchor":Ha[n],text:E,fill:x.color,"font-size":x.fontSize,"text-bound":[x.backgroundColor,x.borderColor,x.borderThickness,x.borderPadding, x.borderRadius,x.borderDash]}).css(k)},drawTracker:function(a){var e=this.paper,c=a.items;a=a.data;for(var d,b,f=+new Date,h=a.length-1,g,p=this.layers.tracker,m,k;0<=h;--h)g=c[h],k=a[h],b=g.trackerObj,g.graphic&&(d=g.graphic.Shapeargs.silhuette,m={link:k.link,value:k.y,displayValue:k.displayValueArgs,categoryLabel:k.categoryLabel,dataIndex:g.index||"",toolText:k.toolText},k.datasetIndex=g.index,b?b.attr({path:d,isTracker:f,fill:ra,stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}): g.trackerObj=e.path(d,p).attr({isTracker:f,fill:ra,stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}),b.data("eventArgs",m))},getEventArgs:function(a){return a.chart.getPlotData(a.index)},legendClick:function(a){var e=a.chart;e.slice.call(e.plots[0].items[a.index])},plotMouseUp:function(a){la.call(this.trackerObj,this.chart,a)}},v["renderer.piebase"]);v("renderer.pyramid",{type:"pyramid",translate:function(){function a(){var b=[],c=0;this.set=function(a,d){c++;b[a]=d}; this.get=function(a){return b[a]};this.getAll=function(){return b};this.mergeWith=function(c){var d,e,f=b.slice(0);if(!(c instanceof Array))if(c instanceof a)c=c.getAll();else return;for(d in c)e=c[d],f[d]||(f[d]=e);return f};this.getEffectiveLength=function(){return c}}function e(a){this.distributionLength=a;this.distributedMatrix=[];this.altDistributedMatrix=[];this.nonDistributedMatrix={};this.flags={exhaustion:!1}}function c(a,c){var e,f,g,h,n=0,m=!1;e={flag:!1,point:void 0,sLabel:void 0,setAll:function(a, b,c){this.flag=a;this.point=b;this.sLabel=c}};var p={point:void 0,sLabel:void 0,set:function(a,b){return function(c,d){var e,f;c.dontPlot||(this.point&&this.sLabel?(e=a(this.point,this.sLabel),f=a(c,d),b(e,f)&&(this.point=c,this.sLabel=d)):(this.point=c,this.sLabel=d))}}},O={},L={},P={},Q={};qa.extend(O,e);qa.extend(L,e);O.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX-(e.oriTextWidth-e.width),d=b.labelX-(c.oriTextWidth-c.width),a>d&&(this.point=b,this.sLabel=c)): (this.point=b,this.sLabel=c)};L.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX+e.oriTextWidth,d=b.labelX+c.oriTextWidth,ab?!0:!1}])}();Q.set=function(){return p.set.apply(Q,[function(a,b){return a.labelX+b.oriTextWidth},function(a,b){return ah.labelX?(n=h.labelX+g.width,n=b.smartLabel.getSmartText(h.displayValue,n,Number.POSITIVE_INFINITY,!0),h.labelX=2,h.displayValue=n.text,h.virtualWidth=n.width,O.setAll(!0,h,n)):!m&&h.labelX+g.width>b.chartWidth&&(n=b.smartLabel.getSmartText(h.displayValue,b.chartWidth-h.labelX,Number.POSITIVE_INFINITY,!0),h.displayValue=n.text,h.virtualWidth=n.width, L.setAll(!0,h,n))),h.pWidth=h.virtualWidth||g.width,n=h.distributionFactor*H,h.labelY=q+M+r/2+n),q+=r,h.plotX=I,h.plotY=q-r/2,K=t,h.virtualWidth=h.virtualWidth||g.width;d(a,{lTrimmedInfo:O,rTrimmedInfo:L,lLargestLabel:P,rLargestLabel:Q})}function d(a,c){var d=0,e=c.lTrimmedInfo,f=c.rTrimmedInfo,g=c.lLargestLabel,h=c.rLargestLabel;if(!e.flag||!f.flag){if(f.flag){if(!g.point)return;d=f.sLabel;d=d.oriTextWidth-d.width;h=g.point.labelX-3;d=-Math.ceil(Math.min(d,h))}else if(e.flag){if(!h.point)return; g=e.point;d=e.sLabel;d=d.oriTextWidth-d.width;h=O-(h.point.labelX+h.sLabel.width);d=Math.ceil(Math.min(d,h));g.labelX-=d}if(d)for(g=0,e=a.length;gd?b.smartLabel.getSmartText(h.oriText,h.pWidth,Number.POSITIVE_INFINITY,!0):b.smartLabel.getSmartText(h.oriText,h.pWidth+d,Number.POSITIVE_INFINITY,!0):0>>0;if("function"!==typeof a)throw new TypeError(a+" is not a function");1this.distributionLength&&!b){n.exhaustion=!0;for(m in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[m],r=0,b=c.length;rparseInt(m,10)?q.distributionFactor=l.getEffectiveLength()-1-m:q.distributionFactor=0),l.set(t++,q),d=!d;this.distributedMatrix=e.mergeWith(h);this.altDistributedMatrix=f.mergeWith(k)}else{for(p in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[p],r=0,b=c.length;r< b;r++)q=c[r],q.dontPlot?l=h:(l=e,l.getEffectiveLength()>parseInt(p,10)?q.distributionFactor=l.getEffectiveLength()-1-p:q.distributionFactor=0),l.set(t++,q);this.distributedMatrix=e.mergeWith(h)}};e.prototype.getDistributedResult=function(){var a,c=[],d=(a=b.options.legend)&&"right"===a.align&&1||0;a.width?d&&(O-=a.width+f.chart.spacingRight):d=0;b.isLegendRight=d;this.distribute(d);d?(a=b.alignmentType["default"],c.push(this.distributedMatrix)):(a=this.flags.exhaustion?b.alignmentType.alternate:b.alignmentType["default"], this.flags.exhaustion?[].push.call(c,this.distributedMatrix,this.altDistributedMatrix):c.push(this.distributedMatrix));return{suggestion:a,matrix:c}};L=new e(Math.floor(m/H));g.forEach(function(a){var b=0,b=a.y*N;X+=a.y*N;L.push(a,Math.floor((X-b+b/2)/H))});m=L.getDistributedResult();g.length=0;if(void 0===m.matrix[1])[].push.apply(g,m.matrix[0]);else for(S=m.matrix[0],U=m.matrix[1],P=Math.max(S.length,U.length),Q=0;Q=I&&0>G,I=0>I&&0>G?I:0=f&&(K||(K=n[c]={index:V,value:S,width:F,graphic:null,dataLabel:null,tracker:null}),K&&(K.valueBelowPlot=0>S),Y=V={},T.hoverEffects&&(Y={fill:X(T.color),stroke:X(T.borderColor),"stroke-width":A,"stroke-dasharray":T.dashStyle},V=T.rolloverProperties,V={fill:X(V.color),stroke:X(V.borderColor),"stroke-width":V.borderWidth,"stroke-dasharray":V.dashStyle}),K.graphic||(K.graphic=p.rect(N).attr({visibility:z}),g.push(K.graphic),K.graphic.shadow(k.shadow&& T.shadow,ba)),K.graphic.attr({r:l,fill:X(T.color||""),stroke:X(T.borderColor||""),"stroke-width":A,"stroke-dasharray":T.dashStyle,"stroke-linejoin":"miter"}),K.tracker||(K.tracker=p.rect(m).attr({stroke:ra,fill:ra,visibility:z}),g.push(K.tracker)),K._attrHoverInFn&&K.tracker.unhover(K._attrHoverInFn,K._attrHoverOutFn),K._attrClickFn&&K.tracker.unclick(K._attrClickFn),K.tracker.attr({height:0,width:0,r:l,"stroke-width":A,stroke:ra,cursor:U?"pointer":"",ishot:!0}).data("eventArgs",Z).click(K._attrClickFn= ea).hover(K._attrHoverInFn=r(K.graphic,V),K._attrHoverOutFn=aa(K.graphic,Y)).tooltip(Q));if(null===S)K&&(K.graphic&&K.graphic.attr({height:0,"stroke-width":0}),K.tracker&&K.tracker.attr({height:0,"stroke-width":0}),K.dataLabel&&K.dataLabel.attr({text:""}));else if(Y=T.previousY,V=v.getAxisPosition(Y||I),T=v.getAxisPosition(S+(Y||0)),Q=Bb(T-V),0>S&&(T=V),Zb(T)<=G&&(Q-=G-T-+E,T=G-+E),ha(T+Q)>=L&&(Q-=ha(T+Q)-L+ +!!A+ +E),1>=A&&(ha(P)<=M&&(F+=P,P=M-A/2+ +!!A-+E,F-=P),ha(P+F)>=H&&(F=H-P+A/2-+!!A+ +E)), V=Ga.crispBound(P,T,F,Q,A),P=V.x,T=V.y,F=V.width,Q=V.height,E&&!ga(Y)&&(D?(A=T-(G-A/2),Q+=A,T-=A):B&&(Q=L-T+A/2)),1>=Q&&(Q=1,T+=0>S?0:-Q),K&&K.graphic&&(K.graphic.attr({x:P,y:T,width:F,height:Q}).data("BBox",V),K.tracker.data("eventArgs",Z),K.dataLabel&&K.dataLabel.attrs.text!==O&&K.dataLabel.attr({text:O}),d.drawPlotColumnLabel(a,e,c,P,T),U||q))!y&&Q=v&&(k||(k=p[c]={index:c,value:B,graphic:null,connector:null,dataLabel:null,tracker:null}),k.graphic&&"image"===k.graphic.type&&!fa&&(k.graphic&&k.graphic.remove(),k.tracker&&k.tracker.remove(),k.graphic=k.tracker=null),k.graphicImage&&k.graphicImage.remove(), k.graphic||(k.graphic=(fa?b.image(ba):b.polypath(ba)).attr({visibility:u}),m.push(k.graphic)),fa||k.graphic.attr({fill:X(O),"stroke-width":U,stroke:X(Q)}),k.connector||(k.connector=b.path(P).attr({visibility:u}),k.connector.shadow(g.shadow&&F.shadow,ca),m.push(k.connector)),k.connector.attr({"stroke-dasharray":N,stroke:X(G||L),"stroke-width":M,"stroke-linecap":"round","stroke-linejoin":2=v?(N=new ka.Image,x={isTooltip:f,setLink:x,hotLayer:V},N.onload=d.onAnchorImageLoad(this, a,e,A,G,H,k,ga,z,S,c,ba,x),N.onerror=na(A,G,H,k,ga,z,S,c),N.src=H.imageUrl):this.updateRealtimeAnchorImage(A,G,e,a,k,H,F,b,x,f);else{if(S=F.rolloverProperties)N={polypath:[T[1]||2,A,G,K,H.startAngle,0],fill:X(H.fillColor),"stroke-width":H.lineWidth,stroke:X(H.lineColor)},S=F.rolloverProperties,B={polypath:[S.sides||2,A,G,S.radius,S.startAngle,S.dip],fill:X(S.fillColor),"stroke-width":S.lineWidth,stroke:X(S.lineColor)};U&&U.attr({polypath:[T[1]||2,A,G,K,H.startAngle,0],visibility:0===K?"hidden":u}).data("isRealtime", !0).data("alwaysInvisible",0===K).data("setRolloverProperties",S).data("setRolloverAttr",B).data("setRolloutAttr",N).data("anchorRadius",K).data("anchorHoverRadius",S&&S.radius).shadow(aa||!1,Z);(x||f)&&k.tracker&&k.tracker.attr({cx:A,cy:G})}k.dataLabel&&k.dataLabel.attrs.text!=E&&k.dataLabel.attr({text:E});Y=d.drawPlotLineLabel(a,e,c,A,G);null!==I?(D=["M",D,y,I],D.push("L",A,y,G),(I=k.connector)&&I.attr({path:D,"stroke-width":M})):k.connector&&k.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0}); D=A;I=G;G=F.color;N=F.dashStyle||e.dashStyle}return a},updatePlotArea:function(a,e,c){var d=this,b=d.paper,f=d.options,n=f.chart,g=d.logic,p=f.plotOptions.series,m=a.items,k=a.graphics||(a.graphics=[]),l,q=d.xAxis[e.xAxis||0],r=d.yAxis[e.yAxis||0],u=r.axisData.reversed,v=g.isStacked,f=!1!==(f.tooltip||{}).enabled,g="0"===d.definition.chart.drawfullareaborder,C=a.data,E=!1===e.visible?"hidden":"visible",x=C.length,I=p.connectNullData,z,A,B,D,L,G,M,U=r.max,N=r.min,u=r.getAxisPosition(0U&&0>N?u?N:U:u?U:0),U=null,H,N=e.lineWidth,K=e.dashStyle,T=X(e.lineColor),V=0,O,Q,S,Y,P,ca,ba=[],da=[],Z=[],aa=d.layers,ea=aa.dataset=aa.dataset||b.group("dataset-orphan"),aa=aa.tracker,fa,ga,ha,ja,ia,na,pa,ta,qa,xa,ya,Aa,Ba;r.yBasePos=u;xa=function(a){la.call(this,d,a)};ya=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}};Aa=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}};Ba=function(b,c,f,g,h,l,m,n){return function(){(ja=g.dataLabel= d.drawPlotLineLabel(a,e,n,b,c))&&k.push(ja)}};v&&(ha=ea.shadows||(ea.shadows=b.group("shadows",ea).toBack()));fa=ea.line||(ea.line=b.group("line-connector",ea));a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",fa));ea=a.anchorShadowLayer||(a.anchorShadowLayer=b.group("anchor-shadow",fa));v=a.lineLayer||(a.lineLayer=b.group("connector",fa));fa=a.anchorLayer||(a.anchorLayer=b.group("anchors",fa));if(na=c.numUpdate||0)for(c=0;c=x&&(l||(l=m[c]={index:c,graphic:null,connector:null,dataLabel:null,tracker:null}),l.graphic&&"image"===l.graphic.type&&!qa&&(l.graphic&&l.graphic.remove(),l.tracker&&l.tracker.remove(),l.graphic=l.tracker=null),l.graphicImage&&!qa&&(l.graphicImage&&l.graphicImage.remove(), l.graphic&&l.graphic.remove(),l.tracker&&l.tracker.remove(),l.graphic=l.tracker=null),l.graphic||(l.graphic=(qa?b.image(fa):b.polypath(fa)).attr({visibility:E}),k.push(l.graphic)),qa||l.graphic.attr({fill:X(S),"stroke-width":G,stroke:X(Y)}),l.tracker||(l.tracker=(qa?b.rect(aa):b.circle(aa)).attr({stroke:ra,fill:ra,visibility:E}),k.push(l.tracker)),M=Ca(M,P&&P.radius||0,n.anchorTrackingRadius),pa={index:c,link:A,value:z.y,displayValue:z.displayValueArgs,categoryLabel:z.categoryLabel,toolText:z.toolText, id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},l._attrHoverInFn&&l.tracker.unhover(l._attrHoverInFn,l._attrHoverOutFn),l._attrClickFn&&l.tracker.unclick(l._attrClickFn),l.tracker.attr({r:M,"stroke-width":G,cursor:A?"pointer":"",ishot:!0}).data("eventArgs",pa).click(l._attrClickFn=xa).hover(l._attrHoverInFn=ya(l),l._attrHoverOutFn=Aa(l)).tooltip(D)),l&&(l.index=c),null===L?(l&&(l.graphic&&l.graphic.attr({polypath:[2,0,0,0,0,0],"stroke-width":0}),l.dataLabel&&l.dataLabel.attr({text:""}), l.tracker&&l.tracker.attr({r:0,"stroke-width":0})),0===I&&(U=null,0=x?(ia=new ka.Image,A={isTooltip:f,setLink:A,hotLayer:aa},ia.onload=d.onAnchorImageLoad(this,a,e,H,L,O,l,pa,D,P,c,fa,A),ia.onerror=Ba(H,L,O,l,pa,D,P,c),ia.src=ta):this.updateRealtimeAnchorImage(H, L,e,a,l,O,z,b,A,f):(P&&(G={polypath:[Y[1]||2,H,L,Q,O.startAngle,0],fill:X(O.fillColor),"stroke-width":O.lineWidth,stroke:X(O.lineColor)},P=z.rolloverProperties,S={polypath:[P.sides||2,H,L,P.radius,P.startAngle,P.dip],fill:X(P.fillColor),"stroke-width":P.lineWidth,stroke:X(P.lineColor)}),ca&&ca.attr({polypath:[Y[1]||2,H,L,Q,O.startAngle,0],visibility:0===Q?"hidden":E}).data("isRealtime",!0).data("alwaysInvisible",0===Q).data("setRolloverProperties",P).data("setRolloverAttr",S).data("setRolloutAttr", G).data("anchorRadius",Q).data("anchorHoverRadius",P&&P.radius).shadow(ga||!1,ea),(A||f)&&l.tracker&&l.tracker.attr({cx:H,cy:L}))),l.dataLabel&&l.dataLabel.attrs.text!==B&&l.dataLabel.attr({text:B}),ja=d.drawPlotLineLabel(a,e,c,H,L),null===U?(Z.push("M",H,y,L),ba.push("M",H,y,M),V=0):Z.push("L",H,y,L),ba.push("L",H,y,L),da.unshift("L",H,y,M),V++,U=L);0