/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.5.0
*/
FusionCharts.register("module",["private","modules.renderer.js-messagelogger",function(){var aa=this.hcLib,cb=aa.Raphael,Ua,Za=aa.isIE,Ha=aa.graphics.HEXtoRGB,E=aa.graphics.convertColor,Aa,J,$a,na,q,D,h,ca,sa,O,R,Y,da,Oa,Ia=this.window,la=Ia.document,tb=8===la.documentMode,V=!0,U=!1,M=aa.pluck,oa=aa.pluckNumber,ub=aa.FC_CONFIG_STRING,Ba={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"},v=function(h,q){var w=this,D;q||(q="");for(D=w.indexOf(h);-1!==D;)w=
w.replace(h,q),D=w.indexOf(h);return w};Oa=function(v,M,w){var J=v.hcJSON,R=J&&J[ub],O=M&&M.chartWidth,W=M&&M.chartHeight,J=na/100*O,da=q/100*W,ea=(O-J)/2,oa=(W-da)/2,la=J-18-22,ha=da-18-22,Ba=ca,sa=ca;v=w.html("div",{fill:"transparent",width:O,height:W},{fontSize:"10px",lineHeight:"15px",fontFamily:(R&&R.inCanvasStyle||v.inCanvasStyle).fontFamily},M&&M.container);v.veil=w.html("div",{id:"veil",fill:"000000",width:O,height:W,opacity:.1},void 0,v).on("click",function(){Y&&aa.messageLogger.close()});
h&&D&&(v.title=w.html("p",{id:"Title",innerHTML:h,x:5,y:5},{"font-weight":"bold"},v));v.dialog=w.html("div",{id:"dialog",x:ea,y:oa,fill:"ffffff",strokeWidth:1,stroke:Ba,width:J,height:da},{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=w.html("div",{id:"dialogBackground",x:0,y:0,fill:sa,width:J,height:da},void 0,
v.dialog);Y&&(v.closeBtnContainer=w.html("div",{id:"closeBtnContainer",width:18,height:18,x:ea+J-21,y:oa+3},{},v),M=new cb("closeBtnContainer",18,18),O=M.group("closeGroup"),v.closeButton=M.symbol("closeIcon",0,0,6,O).attr({transform:"t9,9","stroke-width":2,stroke:E("999999"),ishot:!0,"stroke-linecap":"round","stroke-linejoin":"round"}).css({cursor:"pointer",_cursor:"hand"}).click(function(){aa.messageLogger.close()}));v.logWrapper=w.html("div",{id:"logWrapper",x:(J-la)/2,y:(da-ha)/2,width:la,height:ha},
{overflow:"auto"},v.dialog).on("scroll",function(){var h=this&&this.scrollTop,q=this&&this.scrollHeight,w=this&&this.offsetHeight;U?U=!1:V=q-h===w?!0:!1});v.log=w.html("div",{id:"log",x:0,y:0},{},v.logWrapper);v.hide();return v};Ua=function(h,q,w,v){if(aa.messageLogger)return aa.messageLogger;this.chart=h;this.instanceAPI=q;this.renderer=w;this.paper=v;this.menuCreated=!1;this.log=(h=this.ui=Oa(q,w,v))&&h.log;h&&this.updateStatus("INITIALIZED")};Ua.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":Aa?q.hideItem(4):q.hideItem(1);break;case "closed":Aa?q.showItem(3):q.showItem(0);Aa?q.hideItem(4):q.hideItem(1);break;case "active":Aa?q.showItem(4):q.showItem(1),Aa?q.hideItem(3):q.hideItem(0)}},appendMessage:function(h){var q=this.status,w=M(h.msgid,""),D=M(h.msgtitle,""),J=M(h.msgtext,""),E=h&&M(h.msgtype,"literal"),W=h&&!!oa(h.clearlog,0),da=h&&!!oa(h.hidelog,0),ea=h&&!!oa(h.showlog,
0),na=h&&!!oa(h.msggoestolog,$a),aa=h&&!!oa(h.msggoestojs,sa);na&&"INITIALIZED"===q&&this.updateStatus("CLOSED");da&&this.close();W&&this.clear();ea&&this.open();na&&"ACTIVE"!==this.status&&this.show();if((""!==D&&void 0!==D||""!==J&&void 0!==J)&&this.log&&na){var q=this.log,W=h&&h.msgtitle,da=h&&h.msgtext,ea=h&&M(h.msgtype,"literal"),ha,Y;h="";var ca,Ea,ka;q&&q.element&&(ca=q.element);ca&&(Ea=ca.parentElement);W&&(W+=" : ");switch(ea.toLowerCase()){case "info":W&&(ha='<span style="color: #005900">$titleVal$</span>');
da&&(Y="<span>$msgVal$</span>");break;case "literal":W&&(ha='<span style="color: #005900">$titleVal$</span>');da&&(Y="<span>$msgVal$</span>");break;case "error":W&&(ha='<span style="color: #CC0000">$titleVal$</span>');da&&(Y='<span style="color: #CC0000">$msgVal$</span>');break;case "link":W&&(ha='<span style="color: #005900">$titleVal$</span>');da&&(Y='<a href="$msgVal$">$msgVal$</a>');break;default:W&&(ha='<span style="color: #005900">$titleVal$</span>'),da&&(Y="<span>$msgVal$</span>")}ha&&(ha=
ha.replace("$titleVal$",W),h+=ha);Y&&(Y=v.call(Y,"$msgVal$",da),h+=Y);if(ca&&h){ha=la.createElement("span");for(ka in Ba)ha.style[ka]=Ba[ka];ha.innerHTML=h;ca.appendChild&&ca.appendChild(ha);Za&&tb&&(ka=ca.innerHTML,ca.innerHTML=ka);V&&(U=!0,ca=Ea.scrollHeight,Ea.scrollTop=ca)}Za||(this.ui.element.scrollHeight+=30,this.ui.element.scrollTop=this.ui.element.scrollHeight)}aa&&O&&(aa=Ia[O],"function"===typeof aa&&(R?aa(w,D,J,E):aa(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");aa.messageLogger=null;delete aa.messageLogger;return null}};
Ua.prototype.constructor=Ua;this.core.addEventListener(["rendered","dataupdated","resized"],function(v){var M=v&&v.sender;v=v&&v.eventType;var w=M&&M.jsVars,E=w&&w.hcObj,U=E&&E.options,V=w&&w.instanceAPI,W=V&&V.renderer,E=W&&W.paper,U=U&&U.chart,la=M&&M.options,la=la&&la.renderer,ea=aa&&aa.messageLogger,Ba=ea&&ea.status,Oa=w&&w._reflowData,ha=Oa&&Oa._messageLogger||{},w=ha&&ha.appendedMessages,Ia;if(!la||"javascript"===la.toLowerCase())if(J=U&&U.useMessageLog){U&&(Aa=U.showRTMenuItem,$a=U.messageGoesToLog,
sa=U.messageGoesToJS,O=U.messageJSHandler,R=U.messagePassAllToJS,na=U.messageLogWPercent,q=U.messageLogHPercent,D=U.messageLogShowTitle,h=U.messageLogTitle,Y=U.messageLogIsCancelable,ca=U.messageLogColor,ca=ca.replace(/^#?([a-f0-9]+)/ig,"$1"),Ha(ca),da=U.alwaysShowMessageLogMenu);ea&&(ea=aa.messageLogger=ea.destroy());Ia=(ea=aa.messageLogger=new Ua(M,V,W,E))&&ea.ui&&ea.ui.log&&ea.ui.log.element;if("resized"===v)switch(w&&(Ia.innerHTML=w),Ba.toLowerCase()){case "active":ea.ui.show();ea.updateStatus(Ba);
break;case "closed":ea.updateStatus(Ba)}da&&(ea.menuCreated=!0);M.addEventListener("RealTimeUpdateComplete",function(h,q){var w=q&&q.updateObject,v=w&&w.msgtitle,D=w&&w.msgtext,E=w&&oa(w.showlog,0),U=w&&oa(w.hidelog,0),R=w&&oa(w.clearlog,0);if(v||D||E||U||R)!J||Aa||!$a||da||ea.menuCreated||(V.drawMLMenuButtons.call(W,M),ea.menuCreated=!0),ea.appendMessage(w),ha.appendedMessages=Ia&&Ia.innerHTML,Oa._messageLogger=ha});M.addEventListener("beforeDispose",function(){ea&&ea.destroy()})}})}]);
FusionCharts.register("module",["private","modules.renderer.js-realtime",function(){var aa=this,cb=aa.window,Ua=Math,Za=Ua.random,Ha=Ua.max,E=aa.hcLib.pluckNumber,Aa=function(E,q,D){clearTimeout(D);return setTimeout(E,q)},J,$a;J=function(E){var q=E.sender,D=q.jsVars;E=q.__state;var h=D.instanceAPI,J=h.hcJSON,sa=h.numberFormatter,O=J&&J.alerts&&J.alerts.alert||[],D=D._rtLastUpdatedData&&D._rtLastUpdatedData.values,R=O.length,Y;if(D&&D.length){h=function(h){var D,E=sa.getCleanValue(h),J,Y=function(h){return function(){eval(h.param)}};
for(J=0;J<R;J+=1)if(h=O[J],D=h.action&&h.action.toLowerCase(),h.minvalue<E&&h.maxvalue>E){if("1"!==h.occuronce||!h.hasOccurred){h.hasOccurred=!0;h.state="1";switch(D){case "calljs":setTimeout(Y(h),0);break;case "showannotation":q.showAnnotation&&q.showAnnotation(h.param)}aa.raiseEvent("AlertComplete",null,h)}}else"showannotation"===D&&"1"===h.state&&q.hideAnnotation&&q.hideAnnotation(h.param),h.state="2"};J=Ha(D.length,0);for(Y=0;Y<J;Y+=1)E.lastSetValues&&D[Y]===E.lastSetValues[Y]||h(D[Y]);E.lastSetValues=
D}};$a=function(na){var q=na.sender,D=q.__state,h,ca,sa,O,R,Y,da,Oa,Ia,la,Ha,V;D.dataSetDuringConstruction&&!D.rtStateChanged&&void 0===D.rtPreInit&&(q.dataReady()?(D.rtStateChanged=!0,D.rtPreInit=!0):D.rtPreInit=!1);D.rtStateChanged&&(D.rtStateChanged=!1,h=q.jsVars,ca=h.hcObj)&&(sa=ca.logic,R=(O=ca.options)&&O.chart||{},Y=1E3*E(R.updateInterval,R.refreshInterval),da=1E3*E(R.clearInterval,0),Oa=R.dataStreamURL,Ia=R.dataStamp,R=Boolean(sa&&sa.realtimeEnabled&&0<Y&&void 0!==Oa&&R),O=O&&O.plotOptions&&
O.plotOptions.series.animation&&O.plotOptions.series.animation.duration||0,la=D._rtAjaxObj,Ha=function(){q.clearChart&&q.clearChart();da&&(D._toClearChart=setTimeout(Ha,da))},V=function(){var h=Oa,h=h+((-1===Oa.indexOf("?")?"?num=":"&num=")+Za());Ia&&(h+="&dataStamp="+Ia);la.open&&la.abort();la.get(h);D._rtAjaxLatencyStart=new Date},0>=Y?(D._toRealtime=clearTimeout(D._toRealtime),la&&la.abort()):10>Y&&(Y=10),D._toClearChart=clearTimeout(D._toClearChart),0<da&&(10>da?da=10:D._toClearChart=setTimeout(Ha,
da)),D._rtStaticRefreshMS=Y,R&&(void 0===D._rtPaused&&(D._rtPaused=!1),D._rtDataUrl=Oa,D.lastSetValues=null,la=D._rtAjaxObj||(D._rtAjaxObj=new aa.ajax),la.onSuccess=function(E,M,J,R){if(!q.disposed){var O=h.hcObj&&h.hcObj.logic;J=O.linearDataParser&&O.linearDataParser(E,O.multisetRealtime);D._rtAjaxLatencyStart&&(D._rtAjaxLatency=new Date-D._rtAjaxLatencyStart);if(q.isActive()&&J&&ca&&(ca.realtimeUpdate||O.realtimeUpdate)){Ia=J.dataStamp?J.dataStamp:null;J.interval=1E3>Y?Y:1E3;M=q.getDataJSON();ca.realtimeUpdate?
ca.realtimeUpdate(J):O.realtimeUpdate(J);h._rtLastUpdatedData=O.multisetRealtime?J:q.getDataJSON();O=(O.realtimeDrawingLatency||0)+(D._rtAjaxLatency||0);aa.raiseEvent("realtimeUpdateComplete",{data:E,updateObject:J,prevData:M.values,source:"XmlHttpRequest",url:R,networkLatency:D._rtAjaxLatency,latency:O},na.sender);try{cb.FC_ChartUpdated&&cb.FC_ChartUpdated(na.sender.id)}catch(v){setTimeout(function(){throw v;},1)}D._rtPaused||(O>=D._rtStaticRefreshMS&&(O=D._rtStaticRefreshMS-1),D._toRealtime=setTimeout(V,
D._rtStaticRefreshMS-O))}else D._toRealtime=clearTimeout(D._toRealtime)}},la.onError=function(h,M,J,E){D._rtAjaxLatencyStart&&(D._rtAjaxLatency=new Date-D._rtAjaxLatencyStart);aa.raiseEvent("realtimeUpdateError",{source:"XmlHttpRequest",url:E,xmlHttpRequestObject:M.xhr,error:h,httpStatus:M.xhr&&M.xhr.status?M.xhr.status:-1,networkLatency:D._rtAjaxLatency},na.sender);D._toRealtime=q.isActive()?setTimeout(V,Y):clearTimeout(D._toRealtime)},D._rtPaused||(D._toRealtime=Aa(V,O>Y?O:Y,D._toRealtime))),q.removeEventListener("realtimeUpdateComplete",
J),sa.dataObj&&sa.dataObj.alerts&&sa.dataObj.alerts&&sa.dataObj.alerts.alert&&sa.dataObj.alerts.alert.length&&q.addEventListener("realtimeUpdateComplete",J))};aa.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});aa.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,$a.apply(this,arguments)))});aa.core.addEventListener("beforeDispose",function(J){J=J.sender.__state;J._toRealtime&&(J._toRealtime=clearTimeout(J._toRealtime));J._toClearChart&&(J._toClearChart=clearTimeout(J._toClearChart))});aa.core.addEventListener("drawComplete",$a)}]);
FusionCharts.register("module",["private","modules.renderer.js-widgets",function(){function aa(){}function cb(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 Ua(a,e){var c=a.labels,d=c._textY,b=c._righttX,c=c._leftX,f,m,g=e.length;for(f=0;f<g;f+=1)if(m=e[f]&&e[f].label)m.y=d,m.x=m.align===bb?b:c}function Za(a,e,c,d){var b,f,m,g,p,n;c instanceof Array||(c=this.colorManager.getPlotColor(0));if(a&&0<a.length){for(f=m=a.length-1;0<=f;f-=1)if(b=a[f])b.minvalue=d.numberFormatter.getCleanValue(b.minvalue),
b.maxvalue=d.numberFormatter.getCleanValue(b.maxvalue),null===b.minvalue&&(null!==b.maxvalue?b.minvalue=b.maxvalue:f!==m&&a.splice(f,1)),void 0!==b.label&&(b.label=W(b.label)),void 0!==b.name&&(b.name=W(b.name)),null!==b.maxvalue&&b.minvalue>b.maxvalue&&(g=b.minvalue,b.minvalue=b.maxvalue,b.maxvalue=g);a.sort(Hb);a[0].code||(a[0].code=c[0]);void 0===D(a[0].alpha)&&(a[0].alpha=Ga);f=0;for(m=a.length-1;f<m;f+=1)if(g=f+1,b=a[f],d=a[g],d.code||(d.code=c[g]),void 0===D(d.alpha)&&(d.alpha=Ga),null===b.maxvalue&&
(b.maxvalue=d.minvalue),b.maxvalue>d.minvalue){if(b.maxvalue>d.maxvalue){g=R(b);g.maxvalue=b.maxvalue;n=g.minvalue=d.maxvalue;for(p=f+2;p<m&&a[p].minvalue<n;p+=1);a.splice(p,0,g);m+=1}b.maxvalue=d.minvalue}b=a[f];null===b.maxvalue&&(b.maxvalue=b.minvalue)}a&&0<a.length||(e||(e={code:"CCCCCC",alpha:"100",bordercolor:"000000",borderalpha:"100"}),a=[e],this.defaultAsigned=!0);this.colorArr=a}var Ha=this,E=Ha.hcLib,Aa=E.Raphael,J=E.BLANKSTRING,$a=E.createTrendLine,na=E.createContextMenu,q=E.pluck,D=E.getValidValue,
h=E.pluckNumber,ca=E.getFirstDefinedValue,sa=E.getColorCodeString,O=E.FC_CONFIG_STRING,R=E.extend2,Y=E.getDashStyle,da=E.hashify,Oa=E.hasSVG,Ia=E.falseFN,la=E.getFirstValue,tb=E.getFirstColor,V=E.graphics.getDarkColor,U=E.graphics.getLightColor,M=E.graphics.convertColor,oa=E.graphics.parseColor,ub=E.graphics.parseAlpha,Ba=E.COLOR_TRANSPARENT,v=E.chartAPI,ab=E.parseTooltext,Nb=v.singleseries,w=E.COMMASTRING,db=E.ZEROSTRING,Eb=E.ONESTRING,Ob=/\\,/ig,W=E.parseUnsafeString,Pb=E.HCstub,ea=Ha.window,Ra=
/msie/i.test(ea.navigator.userAgent)&&!ea.opera,ob=E.regex.hexcode,ha="rgba(192,192,192,"+(Ra?.002:1E-6)+")",Qb=parseFloat,Rb=parseInt,Ea=Math,ka=Ea.round,Fb=Ea.ceil,va=Ea.max,Ka=Ea.min,vb=Ea.abs,Gb=Ea.atan2,ja=Ea.pow,kb=Ea.sqrt,eb=Ea.PI/180,fb=E.regex.dropHash,wb=E.toPrecision,Sb=E.isArray,hb=E.HASHSTRING,T=E.toRaphaelColor,Ea=E.TOUCH_THRESHOLD_PIXELS,Tb=E.CLICK_THRESHOLD_PIXELS,xb=void 0!==ea.document.documentElement.ontouchstart,yb=xb?Ea:Tb,Ub=E.getPosition,pa=E.plotEventHandler,Hb,zb,Ab,Bb,Va,
Ib,Jb,Kb,Vb={left:"start",right:"end",center:"middle"},pb={"true":void 0,"false":"crisp"},Cb=function(a,e,c){var d=0,b=a.length;if(c)for(;d<b;d++){if(!1===e.call(c,a[d],d,a))return d}else for(;d<b;d++)if(!1===e.call(a[d],a[d],d,a))return d},xa=function(a,e){var c;a||(a={});for(c in e)a[c]=e[c];return a},lb=function(a){return"object"===typeof a},Fa=function(a){return"string"===typeof a},X=function(a){return void 0!==a&&null!==a},qb=Ra&&!Oa?"visible":"",rb=E.regex.startsRGBA,La=E.setLineHeight,Lb=E.pluckFontSize,
Ma=E.POSITION_MIDDLE,Wa=E.POSITION_TOP,mb=E.POSITION_BOTTOM,bb=E.POSITION_RIGHT,Ja=E.POSITION_LEFT,ya=E.POSITION_MIDDLE,Ga=E.HUNDREDSTRING,jb=E.PXSTRING,Mb=E.COMMASPACE,qa={right:"end",left:"start",middle:"middle",start:"start",end:"end",center:"middle",undefined:"","":""},Wb=function(){return function(a,e,c){var d,b=this,f=this._Attr,m=Aa.vml?-1.5:0,g=Aa.vml?-1.5:0,p;f||(f=b._Attr={});Fa(a)&&X(e)&&(d=a,a={},a[d]=e);if(Fa(a)||void 0===a)b="angle"==a?b._Attr[a]:b._attr(a);else for(d in a)e=a[d],"angle"===
d?(f[d]=e,p=e*eb,f.tooltipPos[0]=f.cx+f.toolTipRadius*Math.cos(p),f.tooltipPos[1]=f.cy+f.toolTipRadius*Math.sin(p),f.prevValue=e,c&&c.duration?b.animate({transform:"R"+e+","+m+","+g},c.duration,"easeIn"):b.attr({transform:"R"+e+","+m+","+g})):b._attr(d,e);return b}},nb=function(a){var e=[],c;(function(a){(c=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(a))?e=[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10),parseFloat(c[4])]:(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))&&
(e=[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16),1])})(a);return{get:function(c){return e&&!isNaN(e[0])?"rgb"===c?"rgb("+e[0]+","+e[1]+","+e[2]+")":"hex"===c?"#"+("000000"+(e[0]<<16|e[1]<<8|e[2]).toString(16)).slice(-6):"a"===c?e[3]:"rgba("+e.join(",")+")":a},brighten:function(a){if(!isNaN(a)&&0!==a){var b;for(b=0;3>b;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}}},Ra=R({},E.defaultGaugePaletteOptions);aa.prototype=
{numDecimals:function(a){a=wb(a,10);a=Math.abs(a);a=wb(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;a+=c*Math.cos(d);e-=c*Math.sin(d);return{x:a,y:e}},remainderOf:function(a,e){var c=
a%e,d=void 0,d=ja(10,void 0===d?2:d),c=ka(Number(String(c*d)));return c/=d},boundAngle:function(a){return 0<=a?aa.prototype.remainderOf(a,360):360-aa.prototype.remainderOf(Math.abs(a),360)},toNearestTwip:function(a){var e=0>a?-1:1;a=Math.abs(a);a=ka(100*a);var c=Math.floor(a/5);return(2<Number(String(a-5*c))?5*c+5:5*c)/100*e},roundUp:function(a,e){var c=ja(10,void 0===e?2:e);a=ka(Number(String(a*c)));return a/=c}};aa.prototype.constructor=aa;E.MathExt=aa;zb=function(a,e,c,d,b,f,m,g){var p=a[O].smartLabel,
n=e.chart,k=a.chart,l,s,u=0;e=a.title;m=a.subtitle;var t=e.text,r=m.text;b=h(n.captionpadding,b,2);var K=0,A=0,u=0,q=h(n.captiononright,0),G=D(n.captionposition,"top").toLowerCase(),n=0,x={left:0,right:0};g=g.snapLiterals||(g.snapLiterals={});var y=0,F=0;t!==J&&(l=e.style,K=h(parseInt(l.fontHeight,10),parseInt(l.lineHeight,10),12),h(parseInt(l.fontSize,10),10));r!==J&&(s=m.style,A=h(parseInt(s.fontHeight,10),parseInt(s.lineHeight,10),12),u=h(parseInt(s.fontSize,10),10));if(0<K||0<A){p.setStyle(l);
l=p.getSmartText(e.text,c,d);0<l.width&&(l.width+=2,n=l.height);p.setStyle(s);s=p.getSmartText(m.text,c,d-n);0<s.width&&(s.width+=2);p=l.height+0+u/2;switch(G){case "middle":e.y=d/2-l.height;m.y=e.y+p;break;case "bottom":m.y=d-k.marginBottom-k.marginTop-s.height;e.y=m.y-(0<l.height?p:0);break;default:e.y=0,m.y=p}u=Math.max(l.width,s.width);a.title.text=l.text;l.tooltext&&(a.title.originalText=l.tooltext);a.subtitle.text=s.text;s.tooltext&&(a.subtitle.originalText=s.tooltext);0<u&&(u+=b);a=Math.min(u,
c);q?(e.align=m.align=qa.start,x.right=a,e.x=f-u+b,m.x=f-u+b):(e.align=m.align=qa.end,x.left=a,e.x=u-b,m.x=u-b,y=a,F=s.width);e._captionWidth=l.width;m._subCaptionWidth=s.width;g.captionstartx=e.x-y;g.captionstarty=e.y;g.captionwidth=l.width;g.captionheight=n||0;g.captionendx=g.captionstartx+g.captionwidth;g.captionendy=g.captionstarty+g.captionheight;g.subcaptionstartx=m.x-F;g.subcaptionstarty=m.y;g.subcaptionwidth=0<s.width?s.width:0;g.subcaptionheight=0<s.height?s.height:0;g.subcaptionendx=g.subcaptionstartx+
g.subcaptionwidth;g.subcaptionendy=g.subcaptionstarty+g.subcaptionheight}return x};Ab=function(a,e,c,d,b,f){var m=a.chart,g=e.chart;e=a.title;var p=h(g.captionpadding,2),g=h(g.captiononright,0);a=a.subtitle;f=f.snapLiterals;var n=0,k=0;m.spacingRight=m.spacingLeft=0;X(d)||(d=0);X(b)||(b=0);g?(c-=m.marginRight,a.align=e.align=qa.start,e.x=a.x=c+p+b+2):(a.align=e.align=qa.end,e.x=a.x=m.marginLeft-m.spacingLeft-p-d-2,n=e._captionWidth,k=a._subCaptionWidth);f.captionstartx=e.x-n;f.subcaptionstartx=a.x-
k;f.captionendx=f.captionstartx+f.captionwidth;f.subcaptionendx=f.subcaptionstartx+f.subcaptionwidth};Bb=function(a,e,c,d,b){this.userMin=a;this.userMax=e;this.numMajorTM=h(d.majorTMNumber,-1);this.numMinorTM=h(d.minorTMNumber,5);this.adjustTM=d.adjustTM;this.tickValueStep=h(d.tickValueStep,1);this.showLimits=h(d.showLimits,1);this.showTickValues=h(d.showTickValues,1);this.nf=b;this.stopMaxAtZero=c;this.setMinAsZero=!d.setAdaptiveMin;this.upperLimitDisplay=d.upperLimitDisplay;this.lowerLimitDisplay=
d.lowerLimitDisplay;this.userMaxGiven=null===this.userMax||void 0===this.userMax||""===this.userMax?!1:!0;this.userMinGiven=null===this.userMin||void 0===this.userMin||""===this.userMin?!1:!0;this.majorTM=[];this.minorTM=[];this.MathExt=new aa};Bb.prototype={setAxisCoords:function(a,e){this.startAxisPos=a;this.endAxisPos=e},calculateLimits:function(a,e){var c=!0,d=!0,b=Number(this.userMax),f=Number(this.userMin),m,g;if(this.userMaxGiven&&this.userMinGiven)a=b,e=f;else if(isNaN(a)&&(a=.9,d=!1),isNaN(e)&&
(e=0,c=!1),a===e&&0===a&&(isNaN(b)||(a=b),isNaN(b)||0===b))a=.9;f=Math.floor(Math.log(Math.abs(a))/Math.LN10);m=Math.floor(Math.log(Math.abs(e))/Math.LN10);m=Math.max(m,f);f=ja(10,m);2>Math.abs(a)/f&&2>Math.abs(e)/f&&(m--,f=ja(10,m));m=Math.floor(Math.log(a-e)/Math.LN10);m=ja(10,m);0<a-e&&10<=f/m&&(f=m);m=(Math.floor(a/f)+1)*f;0>e?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&&(m=0);this.max=!1===this.userMaxGiven||
!0===this.userMaxGiven&&b<a&&d?m:b;this.min=!1===this.userMinGiven||!0===this.userMinGiven&&Number(this.userMin)>e&&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;-1!=this.numMajorTM&&
2>this.numMajorTM&&(this.numMajorTM=2);if(!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,0<this.max?this.max+=e:this.min-=e;else if(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,!0===this.adjustTM){a=0;for(e=1;;){c=this.numMajorTM+a*e;c=0===c?1:c;if(this.isRangeDivisible(this.range,c,this.interval))break;a=-1==
e||a>this.numMajorTM?++a:a;if(25<a){c=this.numMajorTM;break}e=a<=this.numMajorTM?-1*e:1}this.numMajorTM=1<c?c:this.numMajorTM}this.majorTickInt=(this.max-this.min)/(this.numMajorTM-1)},isRangeDivisible:function(a,e,c){return this.MathExt.numDecimals(a/(e-1))>this.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)<(1<d?2:.5)&&(d/=10),e=(Math.floor(e/d)+1)*d,a=e*(c-1));return a},
calculateTicks:function(){this.majorTM=[];this.minorTM=[];for(var a=0,e,c,d=this.numMajorTM,b=this.numMinorTM,f=this.nf,m=this.tickValueStep,g=W(this.lowerLimitDisplay),p=W(this.upperLimitDisplay),n=this.majorTickInt,k=this.min,l=this.showTickValues,s=!1,u=h(this.showLimits,l);a<d;a+=1)e=wb(Number(k+n*a),10),c=f.scale(e),s=!1,0!==a%m&&a!==d-1?c=J:0===a||a===d-1?u?0===a&&g?(c=g,s=!0):a==d-1&&p&&(c=p,s=!0):c=J:l||(c=J),this.majorTM.push({displayValue:c,isString:s,value:e});c=n/(b+1);for(a=0;a<d-1;a+=
1)for(e=1;e<=b;e+=1)this.minorTM.push(this.majorTM[a].value+c*e)},returnDataAsTick:function(a,e){var c={};c.value=a;c.displayValue=this.nf.dataLabels(a);c.showValue=e;return c},getMax:function(){return this.max},getMin:function(){return this.min},getMajorTM:function(){return this.majorTM},getMinorTM:function(){return this.minorTM},getAxisPosition:function(a){if(void 0===this.startAxisPos||void 0===this.endAxisPos)throw Error("Cannot calculate position, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");
return this.startAxisPos+(this.endAxisPos-this.startAxisPos)/(this.max-this.min)*(a-this.min)},getValueFromPosition:function(a){if(void 0===this.startAxisPos||void 0===this.endAxisPos)throw Error("Cannot calculate value, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");var e,c;e=this.max-this.min;c=a-this.startAxisPos;return c/(c+(this.endAxisPos-a))*e+this.min}};v("gaugebase",{creditLabel:!1,defaultPaletteOptions:Ra,multiValueGauge:!1,decimals:2,
formatnumberscale:0,drawAnnotations:!0,useScaleRecursively:!0,includeColorRangeInLimits:!1,init:function(a,e,c){var d=c.jsVars;this.rtLatestSeriesData=d&&d._rtLastUpdatedData?d._rtLastUpdatedData:null;return v.base.init.apply(this,arguments)},chart:function(a,e){var c=this.name,d=this.dataObj||{},b=d.chart||{},f=this.defaultSeriesType,m=this.realtimeEnabled,g=this.colorManager,p,n=d.alerts,k,l,s,u,t,r,K,A,z,G,x,y,F;l=Pb(d,a,e,this);t=l.chart;k=l[O];l.labels.smartLabel=k.smartLabel=this.smartLabel;
this.width=a;this.height=e;k.width=a;k.height=e;u=l.plotOptions;t.useRoundEdges=1==b.useroundedges;k.tooltext=b.plottooltext;k.targettooltext=b.targettooltext;p=(t.is3D=s=k.is3d=/3d$/.test(f))?E.chartPaletteStr.chart3D:E.chartPaletteStr.chart2D;t.defaultSeriesType=f;r=0<b.palette&&6>b.palette?b.palette:h(this.paletteIndex,1);r-=1;t.paletteIndex=r;f=R({},d.colorrange);this.colorRangeGetter=new Za(f.color,void 0,this.defaultPaletteOptions.paletteColors[r],this);t.events.click=l.plotOptions.series.point.events.click=
this.linkClickFN;void 0!==q(b.clickurl)&&(t.link=b.clickurl,t.style.cursor="pointer",l.plotOptions.series.point.events.click=function(){t.events.click.call({link:b.clickurl})});K=q(b.basefont,"Verdana,sans");A=Lb(b.basefontsize,10);z=q(b.basefontcolor,g.getColor("baseFontColor"));f=q(b.outcnvbasefont,K);x=Lb(b.outcnvbasefontsize,A);r=x+jb;G=q(b.outcnvbasefontcolor,z).replace(/^#?([a-f0-9]+)/ig,"#$1");A+=jb;z=z.replace(/^#?([a-f0-9]+)/ig,"#$1");this.trendStyle=this.outCanvasStyle={fontFamily:f,color:G,
fontSize:r};y=La(this.trendStyle);this.inCanvasStyle={fontFamily:K,fontSize:A,color:z};F=La(this.inCanvasStyle);k.trendStyle=k.outCanvasStyle={fontFamily:f,color:G,fontSize:r};R(l.legend,{title:{style:{fontFamily:q(b.legendcaptionfont,f),fontSize:h(b.legendcaptionfontsize,x)+"px",color:da(q(b.legendcaptionfontcolor,G)),fontWeight:h(b.legendcaptionfontbold,1)?"bold":"normal"},align:Vb[q(b.legendcaptionalignment)]},itemStyle:{fontFamily:q(b.legenditemfont,f),fontSize:h(b.legenditemfontsize,x)+"px",
color:da(q(b.legenditemfontcolor,G)),fontWeight:h(b.legenditemfontbold)?"bold":"normal"},itemHiddenStyle:{fontFamily:f,fontSize:x+"px",color:da(q(b.legenditemhiddencolor,G))},itemHoverStyle:{color:da(q(b.legenditemhoverfontcolor,b.legenditemfontcolor,G))}});l.legend.title.style.lineHeight=La(l.legend.title.style);l.legend.itemStyle.lineHeight=La(l.legend.itemStyle);l.legend.itemHiddenStyle.lineHeight=La(l.legend.itemHiddenStyle);k=(k=la(b.valuebordercolor,J))?M(k,h(b.valueborderalpha,b.valuealpha,
100)):J;k=u.series.dataLabels.style={fontFamily:q(b.valuefont,K),fontSize:q(b.valuefontsize,parseInt(A,10))+jb,color:M(q(b.valuefontcolor,z),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?
M(b.valuebgcolor,h(b.valuebgalpha,b.valuealpha,100)):J,borderDash:h(b.valueborderdashed,0)?Y(h(b.valueborderdashlen,4),h(b.valueborderdashgap,2),h(b.valueborderthickness,1)):"none"};La(k);u.series.dataLabels.color=k.color;this.isDataLabelBold&&(k.fontWeight="bold",delete k.lineHeight,La(k));l.tooltip.style={fontFamily:K,fontSize:A,lineHeight:F,color:z};l.title.style={fontFamily:q(b.captionfont,f),color:q(b.captionfontcolor,G).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.captionfontsize,x+3)+jb,
fontWeight:0===h(b.captionfontbold)?"normal":"bold"};l.title.align=q(b.captionalignment,Ma);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);La(l.title.style);l.subtitle.style={fontFamily:q(b.subcaptionfont,b.captionfont,f),color:q(b.subcaptionfontcolor,b.captionfontcolor,G).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.subcaptionfontsize,h(va(h(b.captionfontsize)-
3,-1),x)+h(this.subTitleFontSizeExtender,1))+jb,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;La(l.subtitle.style);l.chart.trendPointStyle={style:this.trendStyle};l.orphanStyles={defaultStyle:{style:R({},this.inCanvasStyle)}};l.chart.colorRangeStyle={style:{fontFamily:K,fontSize:A,
lineHeight:F,color:z}};La(l.chart.colorRangeStyle);k=h(b.scaleonresize,1);t.origW=u=h(b.origw,k?this.origRenderWidth:a);t.origH=k=h(b.origh,k?this.origRenderHeight:e);u=(t.autoScale=K=h(b.autoscale,1))?cb(u,k,a,e):1;this.scaleFactor=t.scaleFactor=u;this.createGaugeAxis&&this.createGaugeAxis(d,l,{fontFamily:f,fontSize:r,lineHeight:y,color:G});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,Mb);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);t.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,s?0:1);t.borderWidth=p?h(b.borderthickness,1):0;t.borderRadius=h(b.borderradius,0);t.borderDashStyle=h(b.borderdashed,0)?Y(h(b.borderdashlen,4),h(b.borderdashgap,2),t.borderWidth):void 0;t.borderColor=M(q(b.bordercolor,s?"#666666":g.getColor("borderColor")),q(b.borderalpha,s?"100":g.getColor("borderAlpha")));t.plotBackgroundColor=t.plotBorderColor=Ba;t.plotBorderWidth=0;t.plotShadow=0;t.bgSWF=q(b.bgimage,
b.bgswf);t.bgSWFAlpha=h(b.bgimagealpha,b.bgswfalpha,100);s=q(b.bgimagedisplaymode,"none").toLowerCase();p=D(b.bgimagevalign,J).toLowerCase();f=D(b.bgimagehalign,J).toLowerCase();"tile"==s||"fill"==s||"fit"==s?(p!=Wa&&p!=ya&&p!=mb&&(p=ya),"left"!=f&&f!=ya&&"right"!=f&&(f=ya)):(p!=Wa&&p!=ya&&p!=mb&&(p=Wa),"left"!=f&&f!=ya&&"right"!=f&&(f="left"));t.bgImageDisplayMode=s;t.bgImageVAlign=p;t.bgImageHAlign=f;t.bgImageScale=h(b.bgimagescale,100);t.logoURL=D(b.logourl);t.logoPosition=q(b.logoposition,"tl").toLowerCase();
t.logoAlpha=h(b.logoalpha,100);t.logoLink=D(b.logolink);t.logoScale=h(b.logoscale,100);t.logoLeftMargin=h(b.logoleftmargin,0);t.logoTopMargin=h(b.logotopmargin,0);t.annRenderDelay=D(b.annrenderdelay);s=l.tooltip.style;s.backgroundColor=M(q(s.backgroundColor,b.tooltipbgcolor,b.hovercapbgcolor,b.hovercapbg,g.getColor("toolTipBgColor")),q(b.tooltipbgalpha,100));s.borderColor=M(q(s.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:va(h(b.tooltipbgalpha,100),h(b.tooltipborderalpha,100))/100}:!1;s.borderWidth=h(b.tooltipborderthickness,1)+"px";b.tooltipborderradius&&(s.borderRadius=h(b.tooltipborderradius,1)+"px");l.tooltip.style.padding=h(b.tooltippadding,this.tooltippadding,3)+"px";b.tooltipcolor&&(s.color=tb(b.tooltipcolor));t.rotateValues=h(b.rotatevalues,0);t.placeValuesInside=h(b.placevaluesinside,
0);t.valuePosition=b.valueposition;t.valuePadding=h(b.valuepadding,4);l.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,this.defaultPlotShadow,this.colorManager.getColor("showShadow"));t.useRoundEdges&&(l.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,1),l.plotOptions.series.borderRadius=1,l.tooltip.borderRadius=2);l.title.text=W(b.caption);l.subtitle.text=W(b.subcaption);b.showtooltip==db&&(l.tooltip.enabled=!1);g=h(b.plotspacepercent,20);if(80<g||0>g)g=20;this.plotSpacePercent=
l.plotOptions.series.groupPadding=g/200;this.parseExportOptions(l);t.dataStreamURL=q(b.datastreamurl,"");t.refreshInterval=h(b.refreshinterval,1);t.dataStamp=b.datastamp;t.useMessageLog=h(b.usemessagelog,0);t.messageLogWPercent=Ka(h(b.messagelogwpercent,80),100);t.messageLogHPercent=Ka(h(b.messageloghpercent,70),100);t.messageLogShowTitle=h(b.messagelogshowtitle,1);t.messageLogTitle=q(b.messagelogtitle,"Message Log");t.messageLogColor=q(b.messagelogcolor,"#fbfbfb");t.messageGoesToJS=h(b.messagegoestojs,
0);t.messageGoesToLog=h(b.messagegoestolog,1);t.messageJSHandler=q(b.messagejshandler,"");t.messagePassAllToJS=h(b.messagepassalltojs,0);t.messageLogIsCancelable=h(b.messagelogiscancelable,1);t.alwaysShowMessageLogMenu=h(b.alwaysshowmessagelogmenu,t.useMessageLog);t.showRTMenuItem=h(b.showrtmenuitem,0);g=h(b.showgaugeborder,1);t.gaugeBorderColor=q(b.gaugebordercolor,this.gaugeBorderColor,"333333");t.gaugeBorderThickness=g?h(b.gaugeborderthickness,this.gaugeBorderThickness,2):0;t.gaugeBorderAlpha=
q(b.gaugeborderalpha,Ga);t.gaugeFillColor=q(b.gaugefillcolor,b.ledbgcolor,"000000");t.useSameFillColor=h(b.usesamefillcolor,0);t.useSameFillBgColor=h(b.usesamefillbgcolor,t.useSameFillColor);t.colorRangeFillMix=ca(b.colorrangefillmix,b.gaugefillmix,this.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}");t.colorRangeFillRatio=ca(b.colorrangefillratio,b.gaugefillratio,this.colorRangeFillRatio,b.gaugefillratio,"0,10,80,10");t.showColorRangeBorder=h(b.showcolorrangeborder,b.showgaugeborder,
this.showColorRangeBorder,0);t.colorRangeBorderColor=q(b.colorrangebordercolor,b.gaugebordercolor,"{dark-20}");t.colorRangeBorderThickness=g?h(b.colorrangeborderthickness,b.gaugeborderthickness,1):0;t.colorRangeBorderAlpha=h(b.colorrangeborderalpha,b.gaugeborderalpha,100);t.roundRadius=h(b.roundradius,b.gaugeroundradius,0);t.showShadow=h(b.showshadow,1);t.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=t.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=M(q(b.toolbarbuttoncolor,
"ffffff"));g.labelFill=M(q(b.toolbarlabelcolor,"cccccc"));g.symbolFill=M(q(b.toolbarsymbolcolor,"ffffff"));g.hoverFill=M(q(b.toolbarbuttonhovercolor,"ffffff"));g.stroke=M(q(b.toolbarbuttonbordercolor,"bbbbbb"));g.symbolStroke=M(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);ea.console&&
ea.console.log&&ea.FC_DEV_ENVIRONMENT&&console.log(l);h(b.showrtmenuitem,0)?(l.callbacks||(l.callbacks=[])).push(this.drawRTMenuButtons):t.useMessageLog&&t.alwaysShowMessageLogMenu&&t.messageGoesToLog&&(l.callbacks||(l.callbacks=[])).push(this.drawMLMenuButtons);m&&n&&(this.hcJSON.alerts=this.parseAlertObj(n));return l},parseAlertObj:function(){return Va.parseAlertObj.apply(this,arguments)},drawMLMenuButtons:function(){var a=this.options,e=a.chart,c=this.menu||(this.menu=[]),d=this.toolbar,a=a[O],
b;c.push(b=na({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){E&&E.messageLogger&&E.messageLogger.open();b.showItem(4);b.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){E&&E.messageLogger&&E.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=[]),m=this.toolbar,c=(c=c[O])&&c.outCanvasStyle||this.outCanvasStyle||{},g,a=(a=e.isUpdateActive||a.eiMethods.isUpdateActive)&&a.call(e);f.push(g=na({chart:this,
basicStyle:c,items:[{text:"Stop Update",visibility:a?qb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:a?"hidden":qb,onclick:function(){g.hideItem(1);g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){E&&E.messageLogger&&E.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){E&&E.messageLogger&&
E.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=m.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;c<d;c+=1)if(b=a[c])b.y=e.values[c],b.displayValue=e.labels[c],b.toolText=e.toolTexts[c]},styleApplicationDefinition_font:function(a,e,c){var d,b=!1,f,m,g,p=this.styleMapForFont;switch(e){case "caption":a=a.title;break;case "datalabels":a=a.plotOptions.series.dataLabels;break;case "value":a=a.plotOptions.series.dataLabels;
break;case "datavalues":a=a.plotOptions.series.dataLabels;b=!0;break;case "subcaption":a=a.subtitle;break;case "tooltip":a=a.tooltip;break;case "trendvalues":a=a.chart.trendPointStyle;break;case "xaxisname":a=a.xAxis.title;break;case "vlinelabels":a={style:a[O].divlineStyle};break;case "gaugelabels":a=a.chart.colorRangeStyle;break;case "tickvalues":a=a.scale.tickValues;break;case "limitvalues":a=a.scale.limitValues;break;case "openvalue":a=a.chart.openValue;break;case "closevalue":a=a.chart.closeValue;
break;case "highlowvalue":a=a.chart.highLowValue;break;case "legend":a={style:a.legend.itemStyle};break;default:a.orphanStyles[e]=a={text:"",style:{}}}if("object"===typeof a)if(a instanceof Array)for(f=0,m=a.length;f<m;f+=1){g=a[f];for(d in c)if(e=d.toLowerCase(),"function"===typeof p[e])p[e](c[d],g,b);La(g.style)}else{for(d in c)if(e=d.toLowerCase(),"function"===typeof p[e])p[e](c[d],a,b);La(a.style)}},createGaugeAxis:function(a,e,c){a=a.chart;var d=this.colorManager,b=this.numberFormatter,f=this.isHorizontal?
h(a.ticksbelowgauge,a.ticksbelowgraph,this.ticksbelowgauge,1)?3:1:h(a.ticksonright,this.ticksOnRight,1)?2:4,d=q(a.majortmcolor,d.getColor("tickColor")),m=h(a.majortmalpha,100),g=h(h(a.majortmheight)*this.scaleFactor,this.majorTMHeight,6),p=h(a.tickvaluestep,a.tickvaluesstep,1),n=h(a.showtickmarks,1),k=n?h(a.connecttickmarks,this.connectTickMarks,1):0,l=h(a.showtickvalues,n),s=h(a.majortmthickness,1),u=h(b.getCleanValue(a.upperlimit)),b=h(b.getCleanValue(a.lowerlimit)),t=1==h(a.reversescale,0);this.isHorizontal||
(t=!t);p=1>p?1:p;e.scale={min:null,max:null,axisPosition:f,showTickMarks:n,showTickValues:l,showLimits:h(a.showlimits,l),adjustTM:Boolean(h(a.adjusttm,1)),majorTMNumber:h(a.majortmnumber,-1),majorTMColor:M(d,m),majorTMHeight:n?g:0,majorTMThickness:s,minorTMNumber:h(a.minortmnumber,this.minorTMNumber,4),minorTMColor:M(q(a.minortmcolor,d),h(a.minortmalpha,m)),minorTMHeight:n?h(h(a.minortmheight,a.minortmwidth)*this.scaleFactor,ka(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:u,lowerLimit:b,upperLimitDisplay:D(a.upperlimitdisplay),lowerLimitDisplay:D(a.lowerlimitdisplay),reverseScale:t,connectorColor:M(q(a.connectorcolor,d),h(a.connectoralpha,m)),connectorThickness:k?h(a.connectorthickness,
s):0,majorTM:[],minorTM:[],trendPoint:[],labels:{style:R({},c)},tickValues:{style:R({},c)},limitValues:{style:R({},c)}}},configureAxis:function(a,e){var c=e.chart,d,b,f,m,g=this.colorManager,p,n,k,l,s,u=this.colorRangeGetter,t=(u=u&&u.colorArr)&&u.length;b=u&&u[0];d=u&&u[t-1];m=this.minDataValue;n=this.maxDataValue;u=a.scale;k=u.lowerLimit;l=u.upperLimit;var t=this.numberFormatter,r;if(a.series[0]&&(X(m)&&X(n)?(k=k<=m?k:b&&b.minvalue,l=l>=n?l:d&&d.maxvalue):(k=h(k,b&&b.minvalue),l=h(l,d&&d.maxvalue)),
d=new Bb(k,l,!1,u,this.numberFormatter),d.calculateLimits(this.maxDataValue,this.minDataValue),d.calculateTicks(),u.majorTM=d.getMajorTM(),u.minorTM=d.getMinorTM(),b=u.min=d.min,d=u.max=d.max,e.trendpoints&&(f=e.trendpoints.point)&&0<(p=f.length))){u.trendPoint=[];for(n=0;n<p;n+=1)m=f[n],s=h(m.dashed,0)?Y(q(Math.max(m.dashlen,m.thickness),4),h(m.dashgap,3),h(m.thickness,1)):void 0,k=h(m.startvalue,m.value),l=h(m.endvalue,k),r=k!==l,k<=d&&k>=b&&l<=d&&l>=b&&(u.trendPoint.push({style:R(R(a.chart.trendPointStyle.style),
{}),startValue:k,endValue:l,tooltext:D(W(m.markertooltext)),displayValue:D(W(m.displayvalue),r?J:t.scale(k)),showOnTop:h(m.showontop,c.ticksbelowgauge,c.ticksbelowgraph,1),color:q(m.color,g.getColor("trendLightColor")),alpha:h(m.alpha,99),thickness:h(m.thickness,1),dashStyle:s,useMarker:h(m.usemarker,0),markerColor:M(q(m.markercolor,m.color,g.getColor("trendLightColor")),100),markerBorderColor:M(q(m.markerbordercolor,m.bordercolor,g.getColor("trendDarkColor")),100),markerRadius:h(h(m.markerradius)*
this.scaleFactor,5),markerToolText:la(m.markertooltext),trendValueDistance:h(h(m.trendvaluedistance,c.trendvaluedistance)*this.scaleFactor,u.tickValueDistance),isZone:r,valueInside:h(m.valueinside,c.placevaluesinside,0),showBorder:h(m.showborder,1),borderColor:M(q(m.bordercolor,m.color,g.getColor("trendDarkColor")),h(m.borderalpha,m.alpha,100)),radius:h(h(m.radius)*this.scaleFactor),innerRadius:h(h(m.innerradius)*this.scaleFactor)}),oa(q(m.bordercolor,m.color,g.getColor("trendDarkColor"))));"lineargauge"===
this.defaultSeriesType&&E.stableSort&&E.stableSort(u.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),m=this.height-(b.marginTop+b.marginBottom);a=a.scale;var g=a.min,p=a.max,n=a.axisPosition,k=a.showLimits,l=a.showTickValues,s=a.tickMarkDistance,u=a.tickValueDistance,t=Math.max(a.majorTMHeight,a.minorTMHeight),r=a.placeTicksInside,K=a.placeValuesInside,A=a.reverseScale,q=0,G=0,x=1,
y,F=a.majorTM.length-1,B=2===n||4===n?!1:!0,C=6;e=B?m-c:f-e;c=0;var S=a.tickValues.style,ma=a.limitValues.style;a.majorTM[0]&&a.majorTM[1]&&(y=a.majorTM[1].value-a.majorTM[0].value);r||(q+=s+t);if(l||k)for(d.setStyle(ma),k=h(parseInt(ma.fontSize,10),10),l=h(parseInt(ma.lineHeight,10),12),l/=2,K||(q+=u),3===n&&(G=k),B?(m=e-q,f=f/(p-g)*y/2+6):(f=e-q,m=m/(p-g)*y+l),a.majorTM[0]&&(y=a.majorTM[0],y.isString?y.displayValue&&(g=d.getSmartText(y.displayValue,f,m),y.displayValue=g.text,y._oriText=g.oriText,
g.tooltext&&(y.originalText=g.tooltext),B?(c=Math.max(c,g.height),y.labelY=1===n&&!K||3===n&&K?k-g.height:G,C=Math.min(6,g.width/2)):(c=Math.max(c,g.width),y.labelY=k-(A?g.height-l:l),y.labelX=0)):x=0,B&&(A?(y.labelX=C,y.align=bb):(y.labelX=-C,y.align=Ja))),a.majorTM[F]&&(y=a.majorTM[F],y.isString?y.displayValue&&(g=d.getSmartText(y.displayValue,f,m),y.displayValue=g.text,y._oriText=g.oriText,g.tooltext&&(y.originalText=g.tooltext),B?(c=Math.max(c,g.height),y.labelY=1===n&&!K||3===n&&K?k-g.height:
G,C=Math.min(6,g.width/2)):(c=Math.max(c,g.width),y.labelY=k-(A?l:g.height-l),y.labelX=0)):(C=6,F+=1),B&&(A?(y.labelX=-C,y.align=Ja):(y.labelX=C,y.align=bb)));x<F;x++)0===x||x===F-1?(d.setStyle(ma),k=h(parseInt(ma.fontSize,10),10),l=h(parseInt(ma.lineHeight,10),12)):(d.setStyle(S),k=h(parseInt(S.fontSize,10),10),l=h(parseInt(S.lineHeight,10),12)),B&&(G=1===n&&K||3===n&&!K?k:0),y=a.majorTM[x],y.displayValue&&(y.labelX=h(y.labelX,0),B?(c=Math.max(c,l),y.labelY=G):(g=d.getOriSize(y.displayValue),c=Math.max(c,
g.width),y.labelY=k-g.height/2));d=q;K||(q+=c);q=Math.min(e,q);a._labelUsedSpace=K?c:q-d;switch(n){case 1:b.marginTop+=q;break;case 2:b.marginRight+=q;break;case 3:b.marginBottom+=q;break;case 4:b.marginLeft+=q}return q},eiMethods:{feedData:function(a){var e=this.jsVars,c=e.hcObj,d=c.logic,b=c.options&&c.options.series&&c.options.series[0],f,m;if(this.isActive()&&d&&d.linearDataParser&&(m=d.linearDataParser(a,d.multisetRealtime))){f=this.getDataJSON();c.realtimeUpdate?c.realtimeUpdate(m):c.logic.realtimeUpdate?
c.logic.realtimeUpdate(m):b&&b.realtimeUpdate&&b.realtimeUpdate(m);e._rtLastUpdatedData=d.multisetRealtime?m:this.getDataJSON();Ha.raiseEvent("realtimeUpdateComplete",{data:a,updateObject:m,prevData:f.values,source:"feedData",url:null},e.fcObj);try{ea.FC_ChartUpdated&&ea.FC_ChartUpdated(e.fcObj.id)}catch(g){setTimeout(function(){throw g;},0)}return!0}return!1},getData:function(){var a,e=(a=this.jsVars)&&(a=a.hcObj)&&(a=a.options)&&(a=a.series)&&(a=a[0])&&a.data;return(a=e&&e[0])?h(a.value,a.y):null},
setData:function(a,e){var c="";if(a&&a.toString||""===a||0===a)c="value="+a.toString();if(e&&e.toString||""===e)c=c+"&label="+e.toString();c&&this.feedData(c)},stopUpdate:function(a){var e=this.__state;clearTimeout(e._toRealtime);e._rtAjaxObj&&e._rtAjaxObj.abort();e._rtPaused=!0;Ha.raiseEvent("realimeUpdateStopped",{source:a},this)},restartUpdate:function(){var a=this.__state;a._rtDataUrl&&a._rtPaused&&(a._rtPaused=!1,a._rtAjaxObj.get(a._rtDataUrl))},isUpdateActive:function(){return!this.__state._rtPaused},
clearChart:function(a){var e=this.jsVars,c;a=a&&a.toString&&a.toString();(c=e.hcObj)&&(c=c.options)&&(c=c.scale)&&(e=c.min,isNaN(e)||(this.jsVars.hcObj.fusionCharts.feedData("&showLabel=0&value="+e),E.raiseEvent("chartCleared",{source:a},this,[this.id,a])))},getDataJSON:function(){var a=0,e,c,d=[],b=[],f=[],m=(e=this.jsVars)&&(e=e.hcObj)&&(e=e.options)&&(e=e.series)&&(e=e[0])&&e.data;for(e=m&&m.length?m.length:0;a<e;a+=1)c=m[a],d.push(h(c.value,c.y)),b.push(c.displayValue||""),f.push(c.toolText||
"");return{values:d,labels:b,toolTexts:f}},showLog:function(){return this.feedData("showLog=1")},hideLog:function(){return this.feedData("hideLog=1")},clearLog:function(){return this.feedData("clearLog=1")}},linearDataParser:function(a,e){var c={values:w,colors:w,toolTexts:w,links:function(a){var b=[],c;a=a.replace(Ob,"_fc_escaped_comma_");b=a.split(",");a=0;for(c=b.length;a<c;a+=1)b[a]=b[a].replace(/_fc_escaped_comma_/ig,",");return b},valueVisibility:w},d=this.chartInstance,b,f,m,g,p,n={},k=0;a=
a&&a.toString&&a.toString()||"";b=a.split("&");g=0;for(p=b.length;g<p;g+=1)if(f=b[g].split("="),m=f[1],f=f[0],f!==J&&void 0!==f&&void 0!==m&&(m!==J||e))switch(f=f.toLowerCase(),f){case "label":n.labels=m.split(",");break;case "vline":n.vlines=m.split(",");break;case "vlinelabel":n.vlineLabels=m.split(",");break;case "vlinecolor":n.vlineColors=m.split(",");break;case "vlinethickness":n.vlineThickness=m.split(",");break;case "vlinedashed":n.vlineDashed=m.split(",");break;case "value":n.values=m.split("|");
k=1;break;case "showlabel":n.showLabels=m.split(",");break;case "showvalue":n.valueVisibility=m.split("|");break;case "tooltext":n.toolTexts=m.split("|");break;case "link":n.links=m.split("|");break;case "color":n.colors=m.split("|");break;case "datastamp":n.dataStamp=m;break;case "stopupdate":n.pause="1"==m;break;case "clear":n.clear="1"==m;break;default:n[f]=m}if(e)for(n.values||(n.values=[]),g=n.values.length;g--;){for(f in c)n[f]?"function"===typeof c[f]?n[f][g]&&(n[f][g]=c[f].call(this,n[f][g])):
n[f][g]&&(n[f][g]=n[f][g].split(c[f])):n[f]=[];k=va(n.values[g].length,k)}n.labels&&(k=va(k,n.labels.length));n.dimension=k;n.pause&&d.stopUpdate&&d.stopUpdate("datastream");return n},series:function(){var a=this.dataObj,e=this.hcJSON,c=a.pointers&&a.pointers.pointer||a.value,d=a.chart,b=this.colorRangeGetter,f=(b=b&&b.colorArr)&&b.length,m={},g=m.data=[],p,n;e.legend.enabled=!1;Sb(c)||(c="object"!==typeof c?[{value:c}]:[c]);p=0;for(n=this.multiValueGauge?c.length:1;p<n;p++)g.push(this.getPointStub(c[p],
p,e,a));e.series[0]=m;f&&this.pointValueWatcher&&h(d.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(a=h(b[0].minvalue),X(a)&&this.pointValueWatcher(a),a=h(b[f-1].maxvalue),X(a)&&this.pointValueWatcher(a))},pointValueWatcher:function(a){null!==a&&(this.maxDataValue=this.maxDataValue>a?this.maxDataValue:a,this.minDataValue=this.minDataValue<a?this.minDataValue:a)},updateSnapPoints:function(a){var e=a.chart,c=this.width,d=this.height,b=e.marginBottom;a=e.marginLeft;var f=e.marginRight,e=
e.marginTop,c=xa(this.snapLiterals||(this.snapLiterals={}),{chartstartx:0,chartstarty:0,chartwidth:c,chartheight:d,chartendx:c,chartendy:d,chartcenterx:c/2,chartcentery:d/2,chartbottommargin:b,chartleftmargin:a,chartrightmargin:f,charttopmargin:e,canvasstartx:a,canvasstarty:e,canvaswidth:c-a-f,canvasheight:d-e-b,canvasendx:c-f,canvasendy:d-b});c.gaugestartx=c.canvasstartx;c.gaugestarty=c.canvasstarty;c.gaugeendx=c.canvasendx;c.gaugeendy=c.canvasendy;c.gaugecenterx=c.canvascenterx=a+c.canvaswidth/
2;c.gaugecentery=c.canvascentery=e+c.canvasheight/2}},v.base);v("linearscalegauge",{spaceManager:function(a,e,c,d){var b=a.chart,f=c-(b.marginRight+b.marginLeft),m=d-(b.marginTop+b.marginBottom),g=b.marginRight,p=b.marginLeft,n=b.marginTop,k=b.marginBottom,l=Ka(va(.3*f,5),f),h=Ka(va(.3*m,5),m),u,t,r=0,K;5>l&&10<c&&(l=f=5,K=g+p,g=b.marginRight=(c-f)*g/K,p=b.marginLeft=(c-f)*p/K);5>h&&10<d&&(h=m=5,K=n+k,n=b.marginRight=(d-m)*n/K,k=b.marginLeft=(d-m)*k/K);this.manageTitleSpace&&a.title.alignCaptionWithCanvas&&
(t=this.manageTitleSpace(a,e,l,h));this.placeTickMark&&(u=this.placeTickMark(a,l,h));this.manageTitleSpace&&!a.title.alignCaptionWithCanvas&&(t=this.manageTitleSpace(a,e,l,h));this.placeDataLabels&&(r=this.placeDataLabels(a,l,h,n,g,k,p,u));this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,l,h);this.fixCaptionAlignment&&this.fixCaptionAlignment(t,a,e,c,0,r)},manageTitleSpace:function(a,e,c,d){c=a.chart;return this.titleSpaceManager(a,e,this.width-(c.marginRight+c.marginLeft),this.height-
(c.marginTop+c.marginBottom)-d)},placeDataLabels:function(a,e,c,d,b,f){var m=this.smartLabel;e=a.chart;var g=this.width-(e.marginRight+e.marginLeft),p=this.height-(e.marginTop+e.marginBottom);d=e.marginBottom;b=a.plotOptions.series.dataLabels;var n=b.style,k=h(parseInt(n.lineHeight,10),12);c=p-c;var p=e.valuePadding,l=0;(a=a.series[0].data[0])&&a.displayValue!==J&&(m.setStyle(n),a.isLabelString?(m=m.getSmartText(a.displayValue,g,c-p),a.displayValue=m.text,m.tooltext&&(a.originalText=m.tooltext)):
m=m.getOriSize(a.displayValue)," "===a.displayValue&&(m={height:k}),0<m.height&&(l=m.height+p),l>c&&(a=l-c,p=a<p?p-a:0,l=c),e.marginBottom+=l,b.align=Ma,e.valuePadding=d-f+p);return l},postDataLabelsPlacement:function(a){var e=this.smartLabel,c=a.chart,d=this.width-(c.marginRight+c.marginLeft),b=this.height-(c.marginTop+c.marginBottom);a=a.scale;var f=a.min,m=a.max,g=a.axisPosition,p=a.limitValues.style,c=a.reverseScale,n,k=a.majorTM.length-1,g=2===g||4===g?!1:!0,l=h(parseInt(p.fontSize,10),10),s=
h(parseInt(p.lineHeight,10),12)/2;a.majorTM[0]&&a.majorTM[1]&&(n=a.majorTM[1].value-a.majorTM[0].value);g?(b=a._labelUsedSpace,d=d/(m-f)*n/2+6):(d=a._labelUsedSpace,b=b/(m-f)*n+s);e.setStyle(p);a.majorTM[0]&&a.majorTM[0].isString&&(n=a.majorTM[0],n.displayValue&&(f=e.getSmartText(n._oriText,d,b),n.displayValue=f.text,f.tooltext&&(n.originalText=f.tooltext),g?(f=Math.min(6,f.width/2),n.labelX=c?f:-f):n.labelY=l-(c?f.height-s:s)));a.majorTM[k]&&a.majorTM[k].isString&&(n=a.majorTM[k],n.displayValue&&
(f=e.getSmartText(n._oriText,d,b),n.displayValue=f.text,f.tooltext&&(n.originalText=f.tooltext),g?(f=Math.min(6,f.width/2),n.labelX=c?-f:f):n.labelY=l-(c?s:f.height-s)))},getPointStub:function(a,e,c,d,b){var f=c[O];e=this.colorManager;var m=this.numberFormatter;c=m.getCleanValue(a.value);var g=D(a.link),p=D(W(q(a.tooltext,f.tooltext))),f=D(W(a.displayvalue)),n=m.dataLabels(c),k,m=d.chart;d=h(m.showhovereffect);var l,s,u;this.showTooltip?void 0!==p?(b=ab(p,[1,2],{formattedValue:n},a,m),u=!0):b=null===
n?!1:void 0!==b?b+this.tooltipSepChar+n:n:b=!1;a=h(a.showvalue,this.showValues)?void 0!==f?f:D(n," "):J;this.pointValueWatcher&&this.pointValueWatcher(c);this.getPointColorObj&&(k=this.getPointColorObj(m,c));0!==d&&(d||m.gaugefillhovercolor||m.plotfillhovercolor||m.gaugefillhoveralpha||m.plotfillhoveralpha||0===m.gaugefillhoveralpha)&&(d=!0,f=q(m.gaugefillhovercolor,m.plotfillhovercolor,"{dark-10}"),m=h(m.gaugefillhoveralpha,m.plotfillhoveralpha),l={},s={},s.fluidColor=k.code,s.fluidAlpha=k.alpha,
f=(p=/\{/.test(f))?e.parseColorMix(D(k.code,J),f)[0]:f,l.fluidColor=f,l.fluidAlpha=h(m,k.alpha));return{y:c,displayValue:a,toolText:b,isLabelString:u,color:M(k.code,k.alpha),link:g,colorRange:k,doNotSlice:!0,rolloverProperties:{enabled:d,hoverAttr:l,outAttr:s}}},getPointColorObj:function(a,e){return this.colorRangeGetter.getColorObj(e)}},v.gaugebase);v("led",{singleValued:!0,isDataLabelBold:!0,preSeriesAddition:function(a,e){var c=e.chart,d=a.chart;d.ledGap=h(c.ledgap,2);d.ledSize=h(c.ledsize,2);
d.plotHoverEffect=h(c.showhovereffect,0)}},v.linearscalegauge);v("vled",{friendlyName:"Vertical LED Gauge",defaultSeriesType:"led",defaultPlotShadow:1,standaloneInit:!0,realtimeEnabled:!0,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,showTooltip:0,connectTickMarks:0,rendererId:"led",creditLabel:!1},v.led);v("hled",{friendlyName:"Horizontal LED Gauge",defaultPlotShadow:1,standaloneInit:!0,creditLabel:!1,isHorizontal:!0,rendererId:"led",connectTickMarks:1,realtimeEnabled:!0},
v.vled);v("bullet",{creditLabel:!1,defaultSeriesType:"bullet",defaultPlotShadow:1,drawAnnotations:!0,realtimeEnabled:!1,subTitleFontSizeExtender:0,subTitleFontWeight:0,connectTickMarks:0,minorTMNumber:0,majorTMHeight:4,chartleftmargin:10,chartrightmargin:15,charttopmargin:5,chartbottommargin:5,isDataLabelBold:!0,defaultPaletteOptions:xa(R({},Ra),{paletteColors:[["A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0",
"FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],
trendColor:["545454","60634E","415D6F","845001","68001B"],plotFillColor:["545454","60634E","415D6F","845001","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50]}),preSeriesAddition:function(){var a=this.dataObj.chart;this.hcJSON.chart.colorRangeBorderThickness=h(a.showgaugeborder,a.showcolorrangeborder,0)?h(a.colorrangeborderthickness,a.gaugeborderthickness,this.gaugeBorderThickness,2):0},postSeriesAddition:function(a){var e=this.dataObj,c=this.colorManager,
d=a.series[0],b=e.chart,f=h(b.showhovereffect),m={value:e.target},g=h(b.targetthickness,3),p=q(b.targetcolor,c.getColor("plotFillColor")),n=D(b.targetalpha,100),k=M(p,n),l=h(b.targetfillpercent,60),s,u,t,r;0!==f&&(f||b.targethovercolor||b.targethoveralpha||0===b.targethoveralpha||b.targethoverthickness||0===b.targethoverthickness)&&(f=!0,t={},r={},u=h(b.targethoverthickness,g+2),g!==u&&(t["stroke-width"]=u,r["stroke-width"]=g),s=q(b.targethovercolor,"{dark-10}"),n=h(b.targethoveralpha,n),u&&(r.stroke=
k,u=/\{/.test(s),t.stroke=M(u?c.parseColorMix(p,s)[0]:s,n)),s=!!h(b.showhoveranimation,1));a=this.getPointStub(m,1,a,e);delete a.rolloverProperties;d.data.push(R(a,{borderColor:k,borderWidth:g,targetThickness:g,targetFillPercent:l,rolloverProperties:{enabled:f,hoverAttr:t,outAttr:r,showHoverAnimation:s}}))},getPointStub:function(a,e,c,d,b){var f=this.numberFormatter,m=this.colorManager,g=c[O];c=f.getCleanValue(a.value);var p=D(a.link),n=D(W(e?g.targettooltext:g.tooltext)),k=D(W(a.displayvalue)),l=
f.dataLabels(c),g=this.colorRangeGetter.getColorObj(c),s=d.chart,u=e?f.dataLabels(f.getCleanValue(d.value)):l,t=e?c:f.getCleanValue(d.target),r=e?l:f.dataLabels(t),K=q(s.plotfillcolor,m.getColor("plotFillColor"));e=h(s.plotasdot,0);var f=h(s.showhovereffect),A=h(s.showplotborder,0),z=A?h(s.plotborderthickness,1):0,G=h(s.plotfillpercent,e?25:40),x,y,F,B;d=this.showTooltip?void 0!==n?ab(n,[1,2,26,27],{formattedValue:u,targetValue:t,targetDataValue:r},d,s):null===l?!1:void 0!==b?b+this.tooltipSepChar+
l:l:J;a=h(a.showvalue,this.showValues)?void 0!==k?k:D(l," "):J;this.pointValueWatcher&&this.pointValueWatcher(c);/\{/.test(b=q(s.plotbordercolor,"{dark-20}"))&&(y=!0,b=m.parseColorMix(K,b).join());u=h(s.plotfillalpha,100);k=M(K,u);n=h(s.plotborderalpha,100);l=M(b,n);0!==f&&(f||s.plotfillhovercolor||s.plotfillhoveralpha||0===s.plotfillhoveralpha||s.showplotborderonhover||0===s.showplotborderonhover||s.plotborderhovercolor||s.plotborderhoverthickness||0===s.plotborderhoverthickness||s.plotborderhoveralpha||
0===s.plotborderhoveralpha)&&(f=!0,F={},B={},x=q(s.plotfillhovercolor,"{dark-10}"),u=h(s.plotfillhoveralpha,u),x=/\{/.test(x)?m.parseColorMix(K,x)[0]:x,F.fill=M(x,u),B.fill=k,K=h(s.showplotborderonhover),void 0===K&&(K=s.plotborderhoverthickness||s.plotborderhovercolor||s.plotborderhoveralpha?1:A),K=K?h(s.plotborderhoverthickness,z||1):0,z!==K&&(F["stroke-width"]=K,B["stroke-width"]=z),A=q(s.plotborderhovercolor,"{dark-10}"),n=h(s.plotborderhoveralpha,n),K&&(B.stroke=l,K=/\{/.test(A),F.stroke=M(K?
m.parseColorMix(y?x:b,A)[0]:A,n)),x=!!h(s.showhoveranimation,1));return{y:c,displayValue:a,toolText:d,plotAsDot:e,plotFillPercent:G,color:k,borderColor:l,borderWidth:z,link:p,colorRange:g,doNotSlice:!0,rolloverProperties:{enabled:f,hoverAttr:F,outAttr:B,showHoverAnimation:x}}}},v.linearscalegauge);v("vbullet",{friendlyName:"Vertical Bullet Gauge",creditLabel:!1,defaultSeriesType:"bullet",gaugeType:4,ticksOnRight:0,rendererId:"bullet",standaloneInit:!0},v.bullet);v("hbullet",{friendlyName:"Horizontal Bullet Gauge",
creditLabel:!1,defaultSeriesType:"hbullet",gaugeType:1,standaloneInit:!0,isHorizontal:!0,defaultCaptionPadding:5,rendererId:"hbullet",placeDataLabels:function(a,e){var c=this.smartLabel,d=a.chart,b=this.width-(d.marginRight+d.marginLeft),f=this.height-(d.marginTop+d.marginBottom),m=a.plotOptions.series.dataLabels,g=m.style,p=h(parseInt(g.fontSize,10),10),b=b-e,n=d.valuePadding,k=0,l=a.series[0].data[0];l&&l.displayValue!==J&&(c.setStyle(g),l.isLabelString?(c=c.getSmartText(l.displayValue,b-n,f),l.displayValue=
c.text,c.tooltext&&(l.originalText=c.tooltext)):c=c.getOriSize(l.displayValue),0<c.height&&(k=c.width+n),k>b&&(k=b),d.marginRight+=k,m.align=Ja,m.x=0,m.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),m=h(b.captionpadding,2),b=h(h(b.captiononright,0)?b.canvasrightmargin:b.canvasleftmargin);X(b)&&(b-=m);c=h(b,f-c);return zb(a,e,c,d,this.defaultCaptionPadding,this.width,this.height,
this)},fixCaptionAlignment:function(a,e,c,d,b,f){d=e.chart;var m=c.chart,g=h(m.canvasleftmargin),m=h(m.canvasrightmargin);d.marginRight+=a.right;d.marginLeft+=a.left;X(g)&&(d.spacingLeft=d.marginLeft=g,d.spacingLeft-=a.left+0-1);X(m)&&(d.spacingRight=d.marginRight=m,d.spacingRight-=a.right+0-1);Ab(e,c,this.width,b,f,this)}},v.bullet);v("lineargauge",{creditLabel:!1,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:R(R({},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<a&&a<=e?(a=c[a-1],h(a.value,a.y)):null},getDataForId:function(a){var e,c=(e=this.jsVars)&&(e=e.hcObj)&&e.dataById;return c[a]&&c[a].point?(a=c[a].point,h(a.value,a.y)):null},setData:function(a,
e,c){var d="",b,f=(b=this.jsVars)&&(b=b.hcObj)&&(b=b.options)&&(b=b.series)&&(b=b[0])&&b.data;b=f&&f.length||0;f=0;if(0<a&&a<=b&&(e&&e.toString()||""===e||0===e)){for(f=a;--f;)d+="|";a="value="+(d+e);if(c&&c.toString||""===c)a+="&label="+d+c.toString();this.feedData(a)}},setDataForId:function(a,e,c){var d,b=(d=this.jsVars)&&(d=d.hcObj)&&d.dataById;b[a]&&void 0!==b[a].index&&this.setData(b[a].index+1,e,c)}}),placeDataLabels:function(a,e,c,d,b,f,m,g){d=a.scale;b=this.smartLabel;f=a.chart;m=this.width-
(f.marginRight+f.marginLeft);var p=this.height-(f.marginTop+f.marginBottom),n,k=a.plotOptions.series.dataLabels;n=k.style;var l=a.scale&&a.scale.labels&&a.scale.labels.style,s=h(parseInt(n.lineHeight,10),12);c=p-c;e=m-e;var u=f.valuePadding,t,r=0,K=0,q=0,z=0,G=0,x=0,y=a.series&&a.series[0]&&a.series[0].data||[];a=a.scale&&a.scale.trendPoint||[];var F=0,B=y.length,C;for(b.setStyle(n);F<B;F+=1)(C=y[F])&&C.displayValue!==J&&(t=u+C.radius*(3>=C.sides?.5:C.sides%2?1.1-1/C.sides:1),f.valuePadding=Math.max(f.valuePadding,
t),this.isHorizontal?(C.isLabelString?(n=b.getSmartText(C.displayValue,m,c-u),C.displayValue=n.text,n.tooltext&&(C.originalText=n.tooltext)):n=b.getOriSize(C.displayValue)," "===C.displayValue&&(n={height:s}),0<n.height&&(r=n.height+t),r>c&&(r=c),f.pointerOnOpp?(3===d.axisPosition&&(z=Math.max(g,z),r=Math.max(g,r)),K=Math.max(K,r)):(1===d.axisPosition&&(G=Math.max(g,G),r=Math.max(g,r)),q=Math.max(r,q))):(C.isLabelString?(n=b.getSmartText(C.displayValue,e-u,p),C.displayValue=n.text,n.tooltext&&(C.originalText=
n.tooltext)):n=b.getOriSize(C.displayValue),0<n.width&&(x=n.width+t),x>e&&(x=e),f.pointerOnOpp?2===d.axisPosition?(f.marginRight-=g,f.marginRight+=Math.max(g,x)):f.marginRight+=x:4===d.axisPosition?(f.marginLeft-=g,f.marginLeft+=Math.max(g,x)):f.marginLeft+=x),k.align=Ma);b.setStyle(l);F=0;for(B=a.length;F<B;F+=1)(C=a[F])&&C.displayValue!==J&&(t=u+.5*C.markerRadius,f.valuePadding=Math.max(t,f.valuePadding),this.isHorizontal&&(n=b.getOriSize(C.displayValue),0<n.height&&(r=n.height+t),r>c&&(r=c),C.showOnTop?
(1===d.axisPosition&&(G=Math.max(g,G),r=Math.max(g,r)),q=Math.max(q,r)):(3===d.axisPosition&&(z=Math.max(g,z),r=Math.max(g,r)),K=Math.max(r,K)),k.align=Ma));this.isHorizontal&&(f.marginBottom+=K-z,f.marginTop+=q-G,r=q+K-z-G);return r},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,m=this.colorManager,g=c.chart,p=c[O];c=f.getCleanValue(a.value);var n=D(a.link),k=D(W(q(a.tooltext,p.tooltext))),l=D(W(a.displayvalue)),s=f.dataLabels(c),f=this.colorRangeGetter.getColorObj(c);d=d.chart;var p=h(a.alpha,a.bgalpha,g.pointerBgAlpha),u=q(a.color,a.bgcolor,g.pointerBgColor),t=
M(u,p),r=h(a.showborder,d.showplotborder,1),K=h(a.borderalpha,g.pointerBorderAlpha),A=q(a.bordercolor,g.pointerBorderColor),z=M(A,K),G=r?h(a.borderthickness,g.pointerBorderThickness):0,x=h(a.radius,g.pointerRadius),y=h(a.showhovereffect,d.showhovereffect),F,B,C,S,ma,I,w,H=!1,N=!1,v,ga,L;this.showTooltip?void 0!==k?(b=ab(k,[1,2],{formattedValue:s},a,d),N=!0):b=null===s?!1:void 0!==b?b+this.tooltipSepChar+s:s:b=J;h(a.showvalue,this.showValues)?void 0!==l?H=!0:l=D(s," "):l=J;k=h(a.sides,g.pointerSides);
3>k&&(k=3);this.pointValueWatcher&&this.pointValueWatcher(c);0!==y&&(y||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)&&(y=!0,s=q(a.bghovercolor,d.pointerbghovercolor,d.plotfillhovercolor,"{dark-10}"),C=h(a.bghoveralpha,d.pointerbghoveralpha,d.plotfillhoveralpha),F=h(a.showborderonhover,d.showborderonhover),void 0===F&&(F=a.borderhoverthickness||0===a.borderhoverthickness||a.borderhovercolor||a.borderhoveralpha||0===a.borderhoveralpha?1:r),r=q(a.borderhovercolor,
d.pointerborderhovercolor,"{dark-10}"),ma=h(a.borderhoveralpha,d.pointerborderhoveralpha),S=F?h(a.borderhoverthickness,d.pointerborderhoverthickness,G||1):0,B=h(a.hoverradius,d.pointerhoverradius,x+2),I=!!h(a.showhoveranimation,d.showhoveranimation,1),F={},ga={},G!==S&&(F["stroke-width"]=S,ga["stroke-width"]=G),ga.fill=t,s=(w=/\{/.test(s))?m.parseColorMix(u,s)[0]:s,F.fill=M(s,h(C,p)),S&&(ga.stroke=z,u=/\{/.test(r),F.stroke=M(u?m.parseColorMix(A,r)[0]:r,h(ma,K))),B&&(I?(v={r:B},L={r:x}):(F.r=B,ga.r=
x)));return{y:c,displayValue:l,id:q(a.id,"pointer_"+e),editMode:h(a.editmode,d.editmode),isLabelString:H,isTooltextString:N,toolText:b,_tooltext:a.tooltext,plotFillPercent:q(d.plotfillpercent,40),bgalpha:p,color:t,borderAlpha:h(d.showplotborder,1)?g.pointerBorderAlpha:0,borderColor:z,borderWidth:G,radius:x,sides:k,link:n,colorRange:f,doNotSlice:!0,tooltipConstraint:this.tooltipConstraint,rolloverProperties:{enabled:y,hoverAttr:F,hoverAnimAttr:v,outAttr:ga,outAnimAttr:L}}}},v.linearscalegauge);v("hlineargauge",
{friendlyName:"Horizontal Linear Gauge",creditLabel:!1,defaultSeriesType:"lineargauge",rendererId:"hlinear",standaloneInit:!0,isHorizontal:!0},v.lineargauge);v("vlineargauge",{friendlyName:"Vertical Linear Gauge",creditLabel:!1,defaultSeriesType:"lineargauge",connectTickMarks:0,standaloneInit:!0},v.lineargauge);v("thermometer",{friendlyName:"Thermometer Gauge",creditLabel:!1,defaultSeriesType:"thermometer",rendererId:"thermometer",connectTickMarks:0,tickMarkDistance:0,standaloneInit:!0,realtimeEnabled:!0,
isDataLabelBold:!0,defaultPlotShadow:0,alignCaptionWithCanvas:0,defaultPaletteOptions:xa(R({},Ra),{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 m=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,Ga);0!==m&&(m||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.gaugeborderalpha,h(d.showgaugeborder,1)?40:0);c.gaugeBorderColor=M(q(d.gaugebordercolor,b.getColor("thmBorderColor")),f);c.gaugeBorderThickness=h(d.gaugeborderthickness,1);c.thmGlassColor=q(d.thmglasscolor,U(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),m=d-(b.marginTop+b.marginBottom),g=b.marginRight,p=b.marginLeft,n=b.marginTop,k=b.marginBottom;d=.3*f;var l=.3*m,s=b.thmOriginX,u=b.thmOriginY,t=b.thmBulbRadius,r=b.thmHeight,K=X(s),q=X(u),z=X(t),G=X(r),x=4===a.scale.axisPosition,y=0,F=0,B,C,S=0;a.title.alignWithCanvas||(m-=
S=this.manageTitleSpace(a,e,0,m/2));this.placeTickMark&&(f-=y=this.placeTickMark(a,2*h(t,4),l));z||(b.thmBulbRadius=t=Math.min(f/2,.13*h(r,m)),z=!0);z&&(C=.643*t,d=B=2*C,z=(2*t-B)/2,K?b.marginLeft=x?b.marginLeft+(F=s-C-y):b.marginLeft+(F=s-C):x?(b.marginLeft+=(c-p-g-z-B)/2-y/2,b.marginRight-=(c-p-g-z-B)/2-y/2,b.marginRight+=F=Math.min(t,f/2)-C):(b.marginLeft+=(c-p-g-z-B)/2-y/2,b.marginRight-=(c-p-g-z-B)/2-y/2,b.marginLeft+=F=Math.min(t,f/2)-C),f-=F);b.marginRight+=f-B;a.title.alignWithCanvas&&(m-=
S=this.manageTitleSpace(a,e,0,m/2));q&&(l=u-S+t);this.placeDataLabels&&(m-=this.placeDataLabels(a,d,l,n,g,k,p));G||(b.thmHeight=q?r=Math.max(u-S+t-C,3*t):r=Math.max(m-C,3*t));b.marginTop=q?b.marginTop+(u-S+t-r):b.marginTop+(m-r);e=1.766*t;b.marginBottom+=e;b.valuePadding+=e;b.thmHeight=b.plotHeight=r-e;this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,d,l)}},v.gaugebase);v("cylinder",{friendlyName:"Cylinder Gauge",creditLabel:!1,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:xa(R({},Ra),{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,m=c-(b.marginRight+b.marginLeft),g=d-(b.marginTop+b.marginBottom),p=b.marginRight,n=b.marginLeft,k=b.marginTop,l=b.marginBottom,
s=.2*m,u=.3*g,t=h(f.cylyscale,30),r=this.scaleFactor,K=this.numberFormatter;a.title.alignWithCanvas||(g-=this.manageTitleSpace(a,e,m/2,g/2));this.placeTickMark&&(m-=this.placeTickMark(a,s,u));this.placeDataLabels&&(g-=this.placeDataLabels(a,s,u,k,p,l,n)+8,b.valuePadding+=8);this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,s,u);b.cylHeight=D(f.cylheight);if(50<t||0>t)t=30;b.cylYScale=t/=100;p=Math.max(Ka(m,1.2*g)/2,5);p=h(D(K.getCleanValue(f.cylradius,!0))*r,p);b.marginLeft=h(D(f.cyloriginx)*
r,b.marginLeft);b.marginLeft+=m/2-p;b.marginRight=c-(b.marginLeft+2*p);a.title.alignWithCanvas&&(g-=this.manageTitleSpace(a,e,m/2,g/2));a=g-p*t*2;K=h(D(K.getCleanValue(f.cylheight,!0))*r,a);t=b.yScaleRadius=p*t;a=b.cylinderTotalHeight=2*t+K;g=g-a+b.marginTop;b.marginTop=h(D(f.cyloriginy)*r-K,t+g);b.marginBottom=d-(b.marginTop+K);b.cylRadius=p;b.cylHeight=K;b.yScaleRadius=t}},v.gaugebase);v("angulargauge",{friendlyName:"Angular Gauge",standaloneInit:!0,drawAnnotations:!0,defaultSeriesType:"angulargauge",
creditLabel:!1,rendererId:"angular",isAngular:!0,eiMethods:v.lineargauge.eiMethods,multiValueGauge:!0,realtimeEnabled:!0,defaultPaletteOptions:xa(R({},Ra),{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/eb;c.gaugeendangle=a.chart.gaugeEndAngle/eb;c.chartcenterx=c.gaugecenterx=e.gaugeOriginX;c.chartcentery=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=X(b),m=Oa?.001:.01,g=X(c);if(360<d||-360>d)d=0<d?360:-360;if(360<c||-360>c)c%=360;if(360<b||-360>b)b%=360;if(f&&g){if(d=b-c,360<d||-360>d)d%=360,c=b-d}else if(f){if(c=b-d,360<c||-360>c)c%=360,b+=0<c?-360:360}else if(g){if(b=c+d,360<b||-360>b)b%=360,c+=0<b?-360:360}else 360===d?(b=180,c=-180):-360===d?c=b=-180:(b=90+d/2,c=b-d);360===Math.abs(d)&&(d+=0<d?-m:m,c=b-d);c=360-c;b=360-b;if(360<b||360<c)b-=360,c-=360;a.chart.gaugeStartAngle=b*eb;a.chart.gaugeEndAngle=
c*eb;a.chart.gaugeScaleAngle=-d*eb},series:function(a,e){var c={data:[],colorByPoint:!0},d=a.chart,b=this.colorRangeGetter,f=(b=b&&b.colorArr)&&b.length,m=e[O],g=this.numberFormatter,p=this.colorManager,n,k,l,s=c.showValue=h(d.showvalue,d.showrealtimevalue,0),u=this.scaleFactor,t=0,r=a.dials&&a.dials.dial,K,A,z=h(d.showhovereffect),G,x,y,F,B,C,S,ma,I,w,H,N,v,ga,L=h(d.editmode,0),ua,Q,E,P,Da,Z,ba,sb,Db,$,ta;ua=t=h(D(d.pivotradius)*u,5);c.pivotRadius=ua;Q=0;E=r&&r.length;$=0;E||(Q=-1,E=0,r=[]);for(0!==
z&&(z||d.dialborderhovercolor||d.dialborderhoveralpha||0===d.dialborderhoveralpha||d.dialborderhoverthickness||0===d.dialborderhoverthickness||d.dialbghovercolor||d.plotfillhovercolor||d.dialbghoveralpha||d.plotfillhoveralpha||0===d.dialbghoveralpha)&&(z=1);Q<E;Q+=1){P=r[Q]||{};n=g.getCleanValue(P.value);this.pointValueWatcher&&this.pointValueWatcher(n);Da=h(P.rearextension,0);t=Math.max(t,Da*u);l=g.dataLabels(n);Z=D(l,J);sb=h(P.showvalue,s);Db=h(D(P.valuey)*u);ba=q(P.tooltext,P.hovertext)?!0:!1;
sb&&!X(Db)&&($+=1);k=(k=D(W(q(P.tooltext,P.hovertext,m.tooltext))))?ab(k,[1,2],{formattedValue:l},P,d):Z;v=q(P.color,P.bgcolor,p.getColor("dialColor"));B=h(P.alpha,P.bgalpha,100);ga=T({FCcolor:{color:v,alpha:B,angle:90}});K=q(P.bordercolor,p.getColor("dialBorderColor"));ta=h(P.borderalpha,100);l=M(K,ta);A=h(P.borderthickness,1);ma=h(P.radius);I=h(P.basewidth);H=h(P.topwidth,0);w=h(P.baseradius,0);G=h(P.showhovereffect,z);if(0!==G&&(G||P.borderhovercolor||P.borderhoveralpha||0===P.borderhoveralpha||
P.borderhoverthickness||0===P.borderhoverthickness||P.bghovercolor||P.bghoveralpha||0===P.bghoveralpha)){G=!0;N={};S={};x=q(P.borderhovercolor,d.dialborderhovercolor,"{dark-10}");F=h(P.borderhoveralpha,d.dialborderhoveralpha,ta);if(y=h(P.borderhoverthickness,d.dialborderhoverthickness,A))N.stroke=l,C=/\{/.test(x),S.stroke=M(C?p.parseColorMix(K,x)[0]:x,F);y!==A&&(S["stroke-width"]=y,N["stroke-width"]=A);K=q(P.bghovercolor,d.dialbghovercolor,d.plotfillhovercolor,"{dark-10}");B=h(P.bghoveralpha,d.dialbghoveralpha,
d.plotfillhoveralpha,B);N.fill=ga;K=(x=/\{/.test(K))?p.parseColorMix(v,K).join():K;x={FCcolor:{color:K,alpha:B,angle:90}};S.fill=T(x)}c.data.push({rolloverProperties:{enabled:G,hasHoverSizeChange:void 0,hoverRadius:h(NaN*u),baseHoverWidth:h(NaN*u,1.6*ua),topHoverWidth:h(NaN*u),rearHoverExtension:h(NaN*u),hoverFill:x,hoverAttr:S,outAttr:N},_tooltext:q(P.tooltext,P.hovertext),y:n,id:q(P.id,Q),color:ga,showValue:sb,editMode:h(P.editmode,L),borderColor:l,shadowAlpha:ta,borderThickness:A,baseWidth:h(I*
u,1.6*ua),topWidth:h(H*u),baseRadius:h(w*u),rearExtension:Da*u,valueX:h(D(P.valuex)*u),valueY:Db,radius:h(ma*u),link:q(P.link,J),isLabelString:ba,toolText:k,displayValue:sb?q(Z," "):J,doNotSlice:!0})}c.displayValueCount=$;c.compositPivotRadius=t;e.series[0]=c;f&&this.pointValueWatcher&&h(d.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(c=h(b[0].minvalue),X(c)&&this.pointValueWatcher(c),c=h(b[f-1].maxvalue),X(c)&&this.pointValueWatcher(c))},postSeriesAddition:function(a,e){var c=e.chart,
d=a.series[0],b=this.colorManager,f;d.valueBelowPivot=h(c.valuebelowpivot,0);d.gaugeFillMix=c.gaugefillmix;d.gaugeFillRatio=c.gaugefillratio;void 0===d.gaugeFillMix&&(d.gaugeFillMix="{light-10},{light-70},{dark-10}");void 0===d.gaugeFillRatio?d.gaugeFillRatio=",6":""!==d.gaugeFillRatio&&(d.gaugeFillRatio=","+d.gaugeFillRatio);f=b.parseColorMix(q(c.pivotfillcolor,c.pivotcolor,c.pivotbgcolor,b.getColor("pivotColor")),q(c.pivotfillmix,"{light-10},{light-30},{dark-20}"));d.pivotFillAlpha=b.parseAlphaList(q(c.pivotfillalpha,
Ga),f.length);d.pivotFillRatio=b.parseRatioList(q(c.pivotfillratio,db),f.length);d.pivotFillColor=f.join();d.pivotFillAngle=h(c.pivotfillangle,0);d.isRadialGradient="radial"==q(c.pivotfilltype,"radial").toLowerCase();d.showPivotBorder=h(c.showpivotborder,0);d.pivotBorderThickness=h(c.pivotborderthickness,1);d.pivotBorderColor=M(q(c.pivotbordercolor,b.getColor("pivotBorderColor")),1==d.showPivotBorder?q(c.pivotborderalpha,Ga):db);this.parseColorMix=b.parseColorMix;this.parseAlphaList=b.parseAlphaList;
this.parseRatioList=b.parseRatioList},spaceManager:function(a,e,c,d){var b=a.chart,f=e.chart,m=a.scale,g=a.series[0],p=g.displayValueCount,n=m.tickValues.style,k=h(parseInt(n.lineHeight,10),12),l=h(parseInt(n.fontSize,10),10),s=.8*l,u=.1*k,t=Oa?0:.1*k,r=h(parseInt(a.plotOptions.series.dataLabels.style.lineHeight,10),12),K=c-(b.marginRight+b.marginLeft),q=d-(b.marginTop+b.marginBottom),z=this.scaleFactor,G=g.compositPivotRadius,x,y,F=b.gaugeStartAngle,B=b.gaugeEndAngle,C,S=p*r+2+g.pivotRadius,ma=0,
I=g.valueBelowPivot,w,H,N,v,ga,L,J,Q,E,P,M,Z,ba,T,O,$,ta,fa,ra,ia,R,U,W,aa,ha,ea,Y,wa,V,da,pa,ca,ja,la,ka,oa,qa;C=/^\d+\%$/.test(f.gaugeinnerradius)?parseInt(f.gaugeinnerradius,10)/100:.7;q-=this.titleSpaceManager(a,e,K,q/2);I||(ma=S,S=0);g.gaugeOuterRadius=h(Math.abs(D(f.gaugeouterradius)*z));g.gaugeInnerRadius=h(Math.abs(D(f.gaugeinnerradius)*z),g.gaugeOuterRadius*C);var va=b.gaugeStartAngle,sa=b.gaugeEndAngle,Pa=q,Ha=g.gaugeOuterRadius,Xa=h(D(f.gaugeoriginx)*z-b.marginLeft),Ca=h(D(f.gaugeoriginy)*
z-b.marginTop),na=Math.max(G,l),Aa=S,Ea=ma,Ia=X(Ha),Ka=X(Xa),La=X(Ca),Ba=2*Math.PI,xa=Math.PI,ya=Math.PI/2,Ga=xa+ya,Na,Ua=Xa,ab=Ca,Ra,gb,Sa,Fa,Ya,Wa=!1,Za,$a,db,fb,Va,Ta,cb,za,Qa,hb,ib=va%Ba;0>ib&&(ib+=Ba);(na=na||0)&&na<K/2&&na<Pa/2&&(Wa=!0);Aa>Pa/2&&(Aa=Pa/2);Ea>Pa/2&&(Ea=Pa/2);Za=Math.cos(va);$a=Math.sin(va);db=Math.cos(sa);fb=Math.sin(sa);gb=Math.min(Za,db,0);Fa=Math.max(Za,db,0);Sa=Math.min($a,fb,0);Ya=Math.max($a,fb,0);if(!Ia||!Ka||!La){hb=sa-va;Ta=ib+hb;if(Ta>Ba||0>Ta)Fa=1;if(0<hb){if(ib<ya&&
Ta>ya||Ta>Ba+ya)Ya=1;if(ib<xa&&Ta>xa||Ta>Ba+xa)gb=-1;if(ib<Ga&&Ta>Ga||Ta>Ba+Ga)Sa=-1}else{if(ib>ya&&Ta<ya||Ta<-Ga)Ya=1;if(ib>xa&&Ta<xa||Ta<-xa)gb=-1;if(ib>Ga&&Ta<Ga||Ta<-ya)Sa=-1}Ka?Ia||(za=K-Xa,Qa=-Xa,Na=gb?Math.min(za/Fa,Qa/gb):za/Fa):(cb=Fa-gb,Va=K/cb,Xa=-Va*gb,Na=Va,Wa&&(K-Xa<na?(Xa=K-na,za=K-Xa,Qa=-Xa,Na=gb?Math.min(za/Fa,Qa/gb):za/Fa):Xa<na&&(Xa=na,za=K-Xa,Qa=-Xa,Na=gb?Math.min(za/Fa,Qa/gb):za/Fa)),Ua=Xa);La?Ia||(za=Pa-Ca,Qa=-Ca,Na=Math.min(Na,Sa?Math.min(za/Ya,Qa/Sa):za/Ya)):(cb=Ya-Sa,Va=Pa/
cb,Ca=-Va*Sa,Wa&&(Pa-Ca<na?(Ca=Pa-na,za=Pa-Ca,Qa=-Ca,Na=Math.min(Na,Sa?Math.min(za/Ya,Qa/Sa):za/Ya)):Ca<na&&(Ca=na,za=Pa-Ca,Qa=-Ca,Na=Math.min(Na,Sa?Math.min(za/Ya,Qa/Sa):za/Ya))),Pa-Ca<Aa?(Ca=Pa-Aa,za=Pa-Ca,Qa=-Ca,Na=Math.min(Na,Sa?Math.min(za/Ya,Qa/Sa):za/Ya)):Ca<Ea&&(Ca=Ea,za=Pa-Ca,Qa=-Ca,Na=Math.min(Na,Sa?Math.min(za/Ya,Qa/Sa):za/Ya)),Na=Math.min(Na,Va),ab=Ca);Ra=Na;0>=Ra&&(Ra=Math.min(K/2,Pa/2))}x=g.gaugeOriginX=Ua;y=g.gaugeOriginY=ab;w=m.majorTM;H=0;N=w.length;ga=a.labels.smartLabel;M=m.min;
Z=m.max-m.min;ta=K-x;fa=q-y;ra=m.placeValuesInside;ia=Math.cos(89.98*eb);R=-ia;U=X(g.gaugeOuterRadius);W=m.tickValueDistance;aa=m.showTickValues;ha=m.showLimits;ea=h(g.gaugeOuterRadius,Ra);Y=h(g.gaugeInnerRadius,ea*C);wa=ea;V=.2*ea;ka=1.5*k;qa=(B-F)/Z;if(aa||ha)for(ra?Y>W+k?da=Y-W:(da=Y,W=0):(wa+=W,U||(V+=W)),ga.setStyle(n);H<N;H+=1)if(P=w[H],oa=F+(P.value-M)*qa,ba=Math.cos(oa),T=Math.sin(oa),v=P.displayValue,L=ga.getOriSize(v),J=L.width,Q=L.height,E=Q/2,0<J&&0<Q)if(P.x=0,ra)P.align=ba>ia?bb:ba<R?
Ja:Ma,P.isString&&(O=da*ba,pa=Math.abs(O),pa<J&&(L=ga.getSmartText(v,Math.max(pa,k),ka),P.displayValue=L.text,L.tooltext&&(P.originalText=L.tooltext),Q=L.height,E=Q/2)),ba>ia||ba<R?(P.y=l-E+t,P.y-=.4*Q*T):P.y=s-(0>T?0:Q-u);else if(P.align=ba>ia?Ja:ba<R?bb:Ma,O=wa*ba,$=wa*T,U||(0<$?(la=E+E*T,fa<$+la&&($=fa-la,wa=Math.max($/T,V))):0>$&&(la=E-E*T,y<-$+la&&($=la-y,wa=Math.max($/T,V)))),ba>ia)O+J>ta&&(U?P.isString&&(L=ga.getSmartText(v,ta-O,ka),P.displayValue=L.text,L.tooltext&&(P.originalText=L.tooltext),
Q=L.height,E=Q/2):(O=ta-J,wa=Math.max(O/ba,V),O=wa*ba,P.isString&&O+J>ta&&(L=ga.getSmartText(v,ta-O,ka),P.displayValue=L.text,L.tooltext&&(P.originalText=L.tooltext),Q=L.height,E=Q/2,J=L.width,O=ta-J,wa=Math.max(O/ba,V)))),P.y=l-E+t+.4*Q*T;else if(ba<R)J-O>x&&(U?P.isString&&(L=ga.getSmartText(v,x+O,ka),P.displayValue=L.text,L.tooltext&&(P.originalText=L.tooltext),Q=L.height,E=Q/2):(O=J-x,wa=Math.max(O/ba,V),O=wa*ba,P.isString&&J-O>x&&(L=ga.getSmartText(v,x+O,ka),P.displayValue=L.text,L.tooltext&&
(P.originalText=L.tooltext),J=L.width,Q=L.height,E=Q/2,O=J-x,wa=Math.max(O/ba,V)))),P.y=l-E+t+.4*Q*T;else{0<T?(ca=fa,ja=Q+$):(ca=y,ja=Q-$);if(!U){if(ja>ca&&(wa=Math.max(ca-Q,V),ja=Q+wa),P.isString&&ja>ca||J>K)L=ga.getSmartText(v,K,Math.max(ca-V,k)),P.displayValue=L.text,L.tooltext&&(P.originalText=L.tooltext),Q=L.height,wa=Math.max(ca-Q,V)}else if(P.isString&&ja>ca||J>K)L=ga.getSmartText(v,K,Math.max(Q-ja+ca,k)),P.displayValue=L.text,L.tooltext&&(P.originalText=L.tooltext),Q=L.height;P.y=s-(0<T?0:
Q-u)}U||(g.gaugeOuterRadius=ra?wa:wa-W,0>=g.gaugeOuterRadius&&(g.gaugeOuterRadius=Math.abs(V)));g.gaugeInnerRadius=h(g.gaugeInnerRadius,g.gaugeOuterRadius*C)}},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:U(a,65)+w+U(a,75)+w+V(a,65),alpha:e+w+e+w+e,ratio:"0,30,70",radialGradient:!0}}:M(a,e)},getPointStub:function(a,e,c,d,b){var f=c.chart,m=c[O];e=d.chart;c=this.numberFormatter;d=c.getCleanValue(a.value);var g=c.dataLabels(d);c=D(a.link);var p=D(W(q(a.tooltext,m.tooltext))),n=D(W(a.displayvalue)),m=this.colorRangeGetter.getColorObj(d),k=
f.useColorNameAsValue=h(e.usecolornameasvalue,0),l=m.colorObj||m.prevObj||m.nextObj||{},s=this.colorManager,u=W(q(l.label,l.name)),t=q(e.gaugefillalpha,l.alpha,Ga),r=q(l.bordercolor,e.gaugebordercolor,V(l.code,70)),K=h(l.borderalpha,e.gaugeborderalpha,"90")*t/100,A=h(e.showgaugeborder,0),z=A?h(e.gaugeborderthickness,1):0,G=f.is3D=h(e.is3d,1),x=this.getPointColor(l.code,t,G),y=h(e.showhovereffect),F,B,C,S,ma,I,w,H,N;m.isOnMeetPoint&&(l=m.nextObj);f.gaugeFillAlpha=t;r=(H=/\{/.test(r))?s.parseColorMix(q(l.bordercolor,
l.code),r)[0]:r;f=M(r,K);0!==y&&(y||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)&&(y=!0,F=q(e.gaugefillhovercolor,e.plotfillhovercolor,"{dark-10}"),B=h(e.gaugefillhoveralpha,e.plotfillhoveralpha),C=
h(e.showgaugeborderonhover),void 0===C&&(C=e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness?1:A),A=q(e.gaugeborderhovercolor,"{dark-10}"),ma=h(e.gaugeborderhoveralpha),S=C?h(e.gaugeborderhoverthickness,z||1):0,G=!!h(e.is3donhover,G),h(e.showhoveranimation,1),C={},N={},z!==S&&(C["stroke-width"]=S,N["stroke-width"]=z),N.fill=T(x),F=(w=/\{/.test(F))?s.parseColorMix(l.code,F)[0]:q(F,l.code),C.fill=T(this.getPointColor(F,
h(B,t),G)),S&&(N.stroke=f,l=/\{/.test(A),C.stroke=M(l?s.parseColorMix(H?F:r,A)[0]:A,h(ma,K))));this.showTooltip?void 0!==p?(a=ab(p,[1,2],{formattedValue:g},a,e),I=!0):a=k?u:null===g?!1:void 0!==b?b+this.tooltipSepChar+g:g:a=!1;b=void 0!==n?n:k?u:g;this.pointValueWatcher&&this.pointValueWatcher(d);return{y:d,displayValue:b,toolText:a,isLabelString:I,colorName:u,color:x,borderWidth:z,borderColor:f,colorRange:m,link:c,doNotSlice:!0,rolloverProperties:{enabled:y,hoverAttr:C,hoverAnimAttr:void 0,outAttr:N}}},
spaceManager:function(a,e,c,d){var b=this.smartLabel,f=a.series[0],m=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 n=f.marginLeft,k=f.marginTop,l=h(g.valuepadding,4),s=f.useColorNameAsValue,u,t=0,r;this.showValues?(m.y=D(m.y,a.scale.min),m.displayValue=D(m.displayValue,this.numberFormatter.dataLabels(a.scale.min))):m.displayValue=J;r=m.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,u=Math.sqrt(ja(2*a,2)/2),b=b.getSmartText(r,u,u)):(u=(g?d-2*f.gaugeRadius*p:.7*d)-l,b=b.getSmartText(r,c,u),t=b.height+l,a=Math.min(c,d-t)/2);s&&(m.displayValue=b.text,b.tooltext&&(m.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?n+c/2:f.gaugeOriginX*p;p=-1===f.gaugeOriginY?k+(d-t)/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(){R(this.dataObj.chart,{bgcolor:this.dataObj.chart.bgcolor||"#ffffff",bgalpha:this.dataObj.chart.bgalpha||"100"});return this.base.chart.apply(this,arguments)},series:function(){R(this.hcJSON,{legend:{enabled:!1},chart:{plotBackgroundColor:Ba,plotBorderColor:Ba},series:[{data:[]}]})},spaceManager:function(){},creditLabel:!1},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:xa(R({},Ra),{paletteColors:E.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=M(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===db?Ia:function(){this.slice()}},series:function(a,e,c){a.data&&0<a.data.length&&(a=this.point(c,{data:[],colorByPoint:!0,showInLegend:!0},a.data,a.chart,e))&&e.series.push(a)},pointHoverOptions:function(a,e,c){var d=h(a.showhovereffect,e.showhovereffect),b={enabled:d},
f={};void 0===d&&(d=b.enabled=void 0!==q(a.hovercolor,e.plotfillhovercolor,a.hoveralpha,e.plotfillhoveralpha,a.borderhovercolor,e.plotborderhovercolor,a.borderhoverthickness,e.plotborderhoverthickness,a.borderhoveralpha,e.plotborderhoveralpha));if(d){b.highlight=h(a.highlightonhover,e.highlightonhover);b.color=q(a.hovercolor,e.plotfillhovercolor);b.alpha=q(a.hoveralpha,e.plotfillhoveralpha,c.alpha);b.borderColor=q(a.borderhovercolor,e.plotborderhovercolor,c.borderColor);b.borderThickness=h(a.borderhoverthickness,
e.plotborderhoverthickness,c.borderWidth);b.borderAlpha=q(a.borderhoveralpha,e.plotborderhoveralpha,c.borderAlpha);0!==b.highlight&&void 0===b.color&&(b.highlight=1);b.color=q(b.color,c.color).replace(/,+?$/,J);if(1===b.highlight){a=b.color.split(/\s{0,},\s{0,}/);e=a.length;for(c=0;c<e;c+=1)a[c]=U(a[c],70);b.color=a.join(",")}f={color:b.color,alpha:b.alpha,borderColor:M(b.borderColor,b.borderAlpha),borderWidth:b.borderThickness}}return{enabled:d,options:b,rolloverOptions:f}},point:function(a,e,c,
d,b){a=b[O];var f=0,m=J,g=[],p=q(d.plotborderthickness,Eb),n=!0,k=!1,l=J,s=b.chart,u=this.isPyramid,t=h(d.showpercentintooltip,1),r=h(d.showlabels,1),K=h(d.showvalues,1),A=h(d.showpercentvalues,d.showpercentagevalues,0),z=q(d.tooltipsepchar,d.hovercapsepchar,Mb),G=q(d.labelsepchar,z),x=q(d.plotbordercolor,d.piebordercolor),y=this.smartLabel,F=this.numberFormatter,B=c.length,C,S=this.colorManager,s=s.issliced=h(d.issliced,0),ma=0,I=h(d.showvalueinlegend,0),Xb=h(d.showlabelinlegend,1),H=h(d.valuebeforelabelinlegend,
0),N=h(d.showvalueaspercentinlegend,1),v=q(d.legendsepchar,", "),ga=b.plotOptions.series.dataLabels.style,L={apply:d.showshadow==Eb,opacity:1},ua,Q,T,P,Da,Z,ba,R,X,$,ta,fa,ra,ia,V;e.isPyramid=u;ra=e.streamlinedData=h(d.streamlineddata,1);e.is2d=h(d.is2d,0);e.isHollow=h(d.ishollow,ra?1:0);ta=h(d.percentofprevious,0);$=h(this.isPyramid?d.pyramidyscale:d.funnelyscale);e.labelDistance=Math.abs(h(d.labeldistance,d.nametbdistance,50));e.showLabelsAtCenter=h(d.showlabelsatcenter,0);e.yScale=0<=$&&40>=$?
$/200:.2;r||K||(b.plotOptions.series.dataLabels.enabled=!1,!1===b.tooltip.enabled&&(n=!1));e.useSameSlantAngle=h(d.usesameslantangle,ra?0:1);for(b=0;b<B;b+=1)ua=c[b],c[b].vline||(ua.cleanValue=$=F.getCleanValue(ua.value,!0),null!==$&&(k=!0,V=V||$,g.push(ua),f+=$,V=Math.max(V,$)));if(k){e.valueSum=f;c=F.dataLabels(f);B=g.length;!u&&ra&&g.sort(function(a,b){return b.cleanValue-a.cleanValue});u||ra||e.data.push({showInLegend:!1,y:f,name:"",shadow:L,smartTextObj:C,color:Q,alpha:T,borderColor:M(P,Da),
borderWidth:p,link:D(ua.link),displayValue:J,doNotSlice:0===h(d.enableslicing,1)});for(b=0;b<g.length;b+=1){ua=g[b];k=ua.cleanValue;fa=b?g[b-1].value:k;B=W(q(ua.label,ua.name,J));C=y.getOriSize(B);Q=b&&!u&&ra?b-1:b;Q=q(ua.color,S.getPlotColor(Q));T=q(ua.alpha,d.plotfillalpha,Ga);P=q(ua.bordercolor,x,U(Q,25)).split(w)[0];Da=1!=d.showplotborder?db:q(ua.borderalpha,d.plotborderalpha,d.pieborderalpha,"80");L.opacity=Math.max(T,Da)/100;if($=h(ua.issliced,s))ma+=1,a.preSliced=$;ia=u||!ra?f:ta?fa:V;n&&(ba=
F.percentValue(k/ia*100),R=F.dataLabels(k)||J,Z=1===r?B:J,m=1===h(ua.showvalue,K)?1===A?ba:R:J,m=(X=D(W(ua.displayvalue)))?X:m!==J&&Z!==J?Z+G+m:q(Z,m)||J,ra&&(l=ta?ba:F.percentValue(k/fa*100)),Z=D(W(q(ua.tooltext,a.tooltext))),void 0!==Z?Z=ab(Z,[1,2,3,7,14,24,25,37],{formattedValue:R,label:B,percentValue:ta?F.percentValue(k/V*100):ba,sum:c,unformattedSum:f,percentOfPrevValue:l},ua,d):(Z=1===t?ba:R,Z=B!==J?B+z+Z:Z));fa=Xb?B:J;I&&(ia=N?F.legendPercentValue(k/ia*100):F.legendValue(k),fa=H?ia+(fa&&v+
fa):(fa&&fa+v)+ia);ia=this.pointHoverOptions(ua,d,{color:Q,alpha:T,borderColor:P,borderAlpha:Da,borderWidth:p});C={displayValue:m,style:E.parsexAxisStyles(ua,{},d,ga,Q),categoryLabel:B,toolText:Z,showInLegend:fa!==J,y:k,name:fa,shadow:L,smartTextObj:C,color:Q,alpha:T,borderColor:M(P,Da),borderWidth:p,link:D(ua.link),isSliced:$,doNotSlice:0===h(d.enableslicing,1),tooltipConstraint:this.tooltipConstraint,hoverEffects:ia.enabled&&ia.options,rolloverProperties:ia.enabled&&ia.rolloverOptions};b||u||!ra||
(C.showInLegend=!1);e.data.push(C)}f||(e.data=[]);e.labelMaxWidth=0;e.noOFSlicedElement=ma;return e}return null},spaceManager:function(a,e,c,d){var b=this.smartLabel,f=e.chart,m=a.chart,g=q(f.legendposition,mb).toLowerCase(),p=c-(m.marginRight+m.marginLeft);d-=m.marginTop+m.marginBottom;var n=this.isPyramid,k=0,l=0,s,u=a.series[0],t,r,K,A,z,G,x,y,F,B,C,S,ma,I,w,H,N,v,J,L,E;if(u){t=this._tempSnap={top3DSpace:0,bottom3DSpace:0,topLabelSpace:0,rightLabelSpace:0};a.legend.enabled&&(g===bb?p-=this.placeLegendBlockRight(a,
e,p/2,d,!0):d-=this.placeLegendBlockBottom(a,e,p,d/2,!0));g=.1*d;s=h(f.slicingdistance,g);g=s>2*g?0:s;f=Math.min(2*(d-g),p);m.marginTop+=g/2;m.marginBottom+=g/2;u.SlicingDistance=s;l=u.data;x=l.length;y=n?0:1;g=u.labelDistance+3;s=u.showLabelsAtCenter;S=Math.min(f,.3*p);A=p-S;ma=p-S-g;w=0;H=(r=l[0])&&l[0].y?l[0].y:1;N=u.valueSum?u.valueSum:1;v=n?0:1;J=.8/H;L=1==u.useSameSlantAngle;C=(E=!n&&!u.streamlinedData)?l[0].y-l[1].y:0;!n&&r&&l[0].displayValue&&(F=l[0],r=a.plotOptions.series.dataLabels.style,
I=h(Fb(parseFloat(r.lineHeight)+r.borderPadding+r.borderThickness),10),b.setStyle(r),K=b.getSmartText(F.displayValue,p,I),F.displayValue=K.text,K.tooltext&&(F.originalText=K.tooltext),F.labelWidht=b.getOriSize(K.text).width,m.marginTop+=t.topLabelSpace=I+4);for(;y<x;y+=1)F=l[y],r=F.style,I=h(Fb(parseFloat(r.lineHeight)+r.borderPadding+r.borderThickness),10),b.setStyle(r),s?b.getSmartText(F.displayValue,p,I):(G=n?(r=C+F.y/2)?r/N:1:E?.2+J*C:F.y?L?F.y/H:Math.sqrt(F.y/H):1,r=S*G,B=ma+(S-r)/2,K=b.getSmartText(F.displayValue,
B,I),F.displayValue=K.text,K.tooltext&&(F.originalText=K.tooltext),w=Math.max(w,K.width),0<A&&(K=0<K.width?B-K.width:B+g,r=1/(G+1)*(r+2*K+S),A=Math.min(A,r-S)),C+=E?-(l[y+1]&&l[y+1].y||0):F.y);F&&(z=n?1:E?.2:F.y?L?F.y/H:Math.sqrt(F.y/H):1);A=S+A;A>f&&(A=f);C=E?l[0].y-l[1].y:0;if(!s)for(y=n?0:1,x=l.length;y<x;y+=1)F=l[y],G=n?(r=C+F.y/2)?r/N:1:E?.2+J*C:F.y?L?F.y/H:kb(F.y/H):1,r=A*G,B=ma+(S-r)/2,K=b.getSmartText(F.displayValue,B,I),k=va(k,.5*r+K.width+g),C+=E?-(l[y+1]&&l[y+1].y||0):F.y;0<w?(t.rightLabelSpace=
p-A,l=k-(.5*c-m.marginRight),0<l&&(m.marginRight+=l,m.marginLeft-=l),m.marginRight+=.5*t.rightLabelSpace,m.marginLeft+=.5*t.rightLabelSpace,p-=a.title.alignWithCanvas?t.rightLabelSpace:0):g=0;u.labelDistance=u.connectorWidth=g;this.titleSpaceManager(a,e,p,d/2);(s||!w)&&f<p&&(m.marginLeft+=.5*(p-f-g),m.marginRight+=.5*(p-f-g));u.is2d||(m.marginTop+=t.top3DSpace=A*u.yScale*v/2,m.marginBottom+=t.bottom3DSpace=A*u.yScale*z/2)}},updateSnapPoints:function(){v.gaugebase.updateSnapPoints.apply(this,arguments);
var a=this.snapLiterals,e=this._tempSnap||{};a.plotwidth=a.canvaswidth;a.plotsemiwidth=a.canvaswidth/2;a.plotheight=a.canvasheight+e.top3DSpace+e.bottom3DSpace;a.plotstartx=a.canvasstartx;a.plotstarty=a.canvasstarty-e.top3DSpace;a.plotendx=a.canvasendx;a.plotendy=a.canvasendy+e.bottom3DSpace;a.canvaswidth+=e.rightLabelSpace;a.canvasheight=a.plotheight+e.topLabelSpace;a.canvasstarty=a.plotstarty-e.topLabelSpace;a.canvasendy=a.plotendy;a.canvasendx+=e.rightLabelSpace},eiMethods:{sliceDataItem:function(a){var e=
this.jsVars.hcObj,c;if(e&&e.series&&(c=e.series[0])&&c.data&&c.data[a]&&c.data[a].slice)return c.data[c.xIncrement-1-a].slice()}},useSortedData:!0,creditLabel:!1},v.gaugebase);v("pyramid",{friendlyName:"Pyramid Chart",subTitleFontSizeExtender:0,drawAnnotations:!0,standaloneInit:!0,defaultSeriesType:"pyramid",defaultPlotShadow:1,useSortedData:!1,isPyramid:1,creditLabel:!1,rendererId:"pyramid"},v.funnel);v("sparkbase",{defaultPlotShadow:0,useSortedData:!1,subTitleFontSizeExtender:0,subTitleFontWeight:0,
drawAnnotations:!0,showYAxisValues:0,numdivlines:0,chartrightmargin:3,chartleftmargin:3,charttopmargin:3,chartbottommargin:3,decimals:2,showTrendlineLabel:0,zeroplanethickness:0,tooltippadding:1,useScaleRecursively:!0,showTrendlineLabels:0,showAxisLimitGridLines:0,styleApplicationDefinition_font:v.gaugebase.styleApplicationDefinition_font,defaultPaletteOptions:xa(R({},Ra),{paletteColors:[["555555","A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE",
"CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["BCBCBC","BEC5A7","93ADBF",
"C97901","FF97B1"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["666666","60634E","415D6F","845001","68001B"],plotFillColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"],winColor:["666666","60634E",
"025B6A","A15E01","FF97B1"],lossColor:["CC0000","CC0000","CC0000","CC0000","CC0000"],drawColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],scorelessColor:["FF0000","FF0000","FF0000","FF0000","FF0000"]}),preSeriesAddition:function(a,e){var c=a.plotOptions.series.dataLabels.style,d=a.chart,b=e.chart,c={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},f,m,g,p;if("sparkwinloss"==this.name&&(f=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data,
m={w:1,l:-1,d:.1},0<(g=f&&f.length)))for(;g;)g-=1,p=f[g],p.value=m[p.value.toLowerCase()];d.borderWidth=h(b.showborder,this.showBorder,0)?h(b.borderthickness,1):0;d.plotBorderWidth=h(b.canvasborderthickness,1);f=d.openColor=oa(q(b.opencolor,"0099FF"));m=d.closeColor=oa(q(b.closecolor,"0099FF"));d.highColor=oa(q(b.highcolor,"00CC00"));d.lowColor=oa(q(b.lowcolor,"CC0000"));d.openHoverColor=M(oa(q(b.openhovercolor,b.anchorhovercolor,b.plotfillhovercolor,U(f,70))),h(b.openhoveralpha,b.anchorhoveralpha,
b.plotfillhoveralpha,100));d.closeHoverColor=M(oa(q(b.closehovercolor,b.anchorhovercolor,b.plotfillhovercolor,U(m,70))),h(b.closehoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.highHoverColor=M(oa(q(b.highhovercolor,b.anchorhovercolor,b.plotfillhovercolor,U(d.highColor,70))),h(b.highhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.lowHoverColor=M(oa(q(b.lowhovercolor,b.anchorhovercolor,b.plotfillhovercolor,U(d.lowColor,70))),h(b.lowhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,
100));this.forceHoverEnable=q(b.openhovercolor,b.closehovercolor,b.highhovercolor,b.lowhovercolor,b.openhoveralpha,b.closehoveralpha,b.highhoveralpha,b.lowhoveralpha,b.winhovercolor,b.losshovercolor,b.drawhovercolor,b.scorelesshovercolor);a.chart.openValue={style:R({},c)};La(a.chart.openValue.style);a.chart.openValue.style.color=f;a.chart.closeValue={style:R({},c)};La(a.chart.openValue.style);a.chart.closeValue.style.color=m;a.chart.highLowValue={style:R({},c)};this.parseStyles(a);0===this.showCanvas&&
(d.plotBackgroundColor=Ba);this.showCanvasBorder||(d.plotBorderWidth=0);d.useRoundEdges||(d.plotShadow=0);b.zeroplanethickness=q(b.zeroplanethickness,this.zeroplanethickness);delete b.yaxisname;delete b.xaxisname;b.showlabels=q(b.showlabels,db)},spaceManager:function(a,e,c,d){var b=a[O],f=this.smartLabel||b.smartLabel,m=e.chart,g=a.series[0],p=a.chart,n=c-(p.marginRight+p.marginLeft),k=h(m.canvasleftmargin),l=h(m.canvasrightmargin),s=a.valuePadding=h(m.valuepadding,2),u=a.plotOptions.series.dataLabels.style,
t=parseInt(u.lineHeight,10),r=n,K=b=0,A,z;if(g){d=zb(a,e,.7*n,d,void 0,c,d,this);r-=d.left+d.right;n=c-(p.marginRight+p.marginLeft);z=A=g=0;f.setStyle(u);X(p.openValue.label)&&(f.setStyle(p.openValue.style),t=h(parseInt(p.openValue.style.lineHeight,10),10),u=f.getSmartText(p.openValue.label,r,1.5*t),0<u.width&&(b=g=u.width+s,r-=g));X(p.closeValue.label)&&(f.setStyle(p.closeValue.style),t=h(parseInt(p.closeValue.style.lineHeight,10),10),u=f.getSmartText(p.closeValue.label,r,1.5*t),0<u.width&&(K=A=
u.width+s,r-=A));X(p.highLowValue.label)&&(f.setStyle(p.highLowValue.style),t=h(parseInt(p.highLowValue.style.lineHeight,10),10),f=f.getSmartText(p.highLowValue.label,r,1.5*t),0<f.width&&(K+=z=f.width+s));p.marginRight+=z+A;p.marginLeft+=g;X(k)?(p.spacingLeft=p.marginLeft=k,p.spacingLeft-=d.left+g):p.marginLeft+=d.left;X(l)?(p.spacingRight=p.marginRight=l,p.spacingRight-=d.right+z+A):p.marginRight+=d.right;this.xAxisMinMaxSetter(a,e,n);p=a.xAxis;l=p.min;n=p.max;k=h(m.periodlength,0);m=M(q(m.periodcolor,
this.colorManager.getColor("periodColor")),h(m.periodalpha,100));s=1;if(0<k)for(;l<=n;l+=k)s?(p.plotBands.push({color:m,from:l,to:Math.min(n,l+k),zIndex:1}),s=0):s=1;Ab(a,e,c,b,K,this)}}},Nb);v("sparkline",{friendlyName:"Spark Line Chart",standaloneInit:!0,defaultSeriesType:"line",rendererId:"sparkline",creditLabel:!1,showtooltip:0,showCanvas:0,point:v.linebase.point,lineThickness:1,anchorRadius:2,anchorBorderThickness:0,postSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,
f=a.series&&a.series[0],m=f&&a.series[0].data,g,p,n,k=this.highValue,l=this.lowValue,s=this.numberFormatter,u=c.openColor,t=c.closeColor,r=c.highColor,K=c.lowColor,A=c.openHoverColor,z=c.closeHoverColor,G=c.highHoverColor,x=c.lowHoverColor,y;y=oa(q(d.anchorcolor,b.getColor("plotFillColor")));var F=h(d.showopenanchor,d.drawanchors,d.showanchors,1),B=h(d.showcloseanchor,d.drawanchors,d.showanchors,1),C=h(d.showhighanchor,d.drawanchors,d.showanchors,1),S=h(d.showlowanchor,d.drawanchors,d.showanchors,
1),ma=h(d.anchoralpha,100),I,w=h(d.drawanchors,d.showanchors,0),H=w?h(d.anchoralpha,100):0,N,v,E=0,L=q(d.linecolor,b.getColor("plotFillColor")),D=h(d.linealpha,100),Q,O;if(0<(b=g=m&&m.length)){p=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;f.color=M(L,D);Q=m[0]&&m[0].y||J;for(O=m[b-1]&&m[b-1].y||J;g;)g-=1,f=m[g],n=p[g],y=void 0,I=h(f.anchorbgalpha,ma),f.color=M(q(n.color,L),h(n.alpha,D)),f.marker.fillColor=M(q(f.anchorbgcolor,y),h(f.anchorbgalpha,H)),y=M(oa(q(d.anchorhovercolor,d.plotfillhovercolor,
U(L,70))),h(d.lowhoveralpha,d.anchorhoveralpha,d.plotfillhoveralpha,100)),h(d.anchorhoverradius,f.marker.radius),f.marker.enabled=!!w,f.y==l&&(y=q(f.anchorbgcolor,K),f.marker.fillColor=M(y,I),y=x,f.marker.enabled=!!S,v=s.dataLabels(f.y)),f.y==k&&(y=q(f.anchorbgcolor,r),f.marker.fillColor=M(y,I),y=G,f.marker.enabled=!!C,N=s.dataLabels(f.y)),void 0!==f.toolText&&(f.toolText=ab(f.toolText,[54,55,56,57,58,59,60,61],{openDataValue:s.dataLabels(Q),closeDataValue:s.dataLabels(O),highDataValue:s.dataLabels(k),
lowDataValue:s.dataLabels(l),openValue:Q,closeValue:O,highValue:k,lowValue:l},{},d)),h(n.showvalue,d.showvalue,d.showvalues,0)||(f.displayValue=J),X(f.y)&&(E=1),n=f.hoverEffects,f.marker.enabled&&n&&(n.anchorColor=y,n=f.rolloverProperties,n.radius=h(d.anchorhoverradius,f.marker.radius),n.lineWidth=0,n.lineColor=n.fillColor=y);f=m[0];f.marker.fillColor=M(q(f.anchorbgcolor,u),I);f.marker.enabled=!!F;n=f.hoverEffects;f.marker.enabled&&n&&(n.anchorColor=A,n=f.rolloverProperties,n.radius=h(d.anchorhoverradius,
f.marker.radius),n.lineWidth=0,n.lineColor=n.fillColor=A);u=s.dataLabels(f.y);f.y==l&&S&&(f.marker.fillColor=M(q(f.anchorbgcolor,K),I),f.marker.enabled=!!S);f.y==k&&C&&(f.marker.fillColor=M(q(f.anchorbgcolor,r),I),f.marker.enabled=!!C);f=m[b-1];f.marker.fillColor=M(q(f.anchorbgcolor,t),I);f.marker.enabled=!!B;n=f.hoverEffects;f.marker.enabled&&n&&(n.anchorColor=z,n=f.rolloverProperties,n.radius=h(d.anchorhoverradius,f.marker.radius),n.lineWidth=0,n.lineColor=n.fillColor=z);m=s.dataLabels(f.y);f.y==
l&&S&&(f.marker.fillColor=M(q(f.anchorbgcolor,K),I),f.marker.enabled=!!S);f.y==k&&C&&(f.marker.fillColor=M(q(f.anchorbgcolor,r),I),f.marker.enabled=!!C);c.openValue.label=c.closeValue.label=c.highLowValue.label=c.highLowValue.highLabel=c.highLowValuelLowlabel=J;E&&(c.openValue.label=h(d.showopenvalue,1)?u:J,c.closeValue.label=h(d.showclosevalue,1)?m:J,h(d.showhighlowvalue,1)&&(c.highLowValue.label="["+N+" | "+v+"]",c.highLowValue.highLabel=N,c.highLowValue.lowLabel=v))}}},v.sparkbase);v("sparkcolumn",
{friendlyName:"Spark Column Chart",standaloneInit:!0,rendererId:"cartesian",defaultSeriesType:"column",creditLabel:!1,showCanvasBorder:!0,point:v.column2dbase.point,useFlatColor:!0,postSeriesAddition:function(a,e){var c=e.chart,d=this.colorManager,b=a.series&&a.series[0]&&a.series[0].data,f,m,g,p,n=this.highValue,k=this.lowValue,l=this.numberFormatter,s=q(c.plotfillalpha,Ga),u=q(c.plotfillcolor,d.getColor("plotFillColor")),t=q(c.plotborderalpha,Ga),r=q(c.plotbordercolor),K,A=q(c.highcolor,"000000"),
z=q(c.lowcolor,"000000"),G=q(c.highbordercolor,r),x=q(c.lowbordercolor,r),y=h(c.showplotborder,0)?h(c.plotborderthickness,1):0,F,B,C,S,ma,I;if(0<(d=b&&b.length))for(m=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;d;)d-=1,f=b[d],g=m[d],F=q(g.color,u),B=q(g.alpha,s),C=q(g.bordercolor,r),S=q(g.borderalpha,t),ma=q(g.ratio,c.plotfillratio),I=q(360-c.plotfillangle,90),f.y==n&&(F=q(g.color,A),C=q(g.bordercolor,G),p=f.hoverEffects)&&(p.color=q(g.hovercolor,c.highhovercolor,c.plotfillhovercolor,U(F,70)),
p.borderColor=q(g.borderhovercolor,c.highborderhovercolor,c.plotborderhovercolor,C),p.colorArr=p=this.getColumnColor(g,p.color,q(g.hoveralpha,c.highhoveralpha,c.plotfillhoveralpha,B),p.borderColor,S,ma,I,a.chart.useRoundEdges),K=f.rolloverProperties,K.color=p[0],K.borderColor=p[1]),f.y==k&&(F=q(g.color,z),C=q(g.bordercolor,x),p=f.hoverEffects)&&(p.color=q(g.hovercolor,c.lowhovercolor,c.plotfillhovercolor,U(F,70)),p.borderColor=q(g.borderhovercolor,c.lowborderhovercolor,c.plotborderhovercolor,C),p.colorArr=
p=this.getColumnColor(g,f.hoverEffects.color,q(g.hoveralpha,c.lowhoveralpha,c.plotfillhoveralpha,B),f.hoverEffects.borderColor,S,ma,I,a.chart.useRoundEdges),K=f.rolloverProperties,K.color=p[0],K.borderColor=p[1]),void 0!==f.toolText&&(f.toolText=ab(f.toolText,[56,57,60,61],{highValue:n,lowValue:k,highDataValue:l.dataLabels(n),lowDataValue:l.dataLabels(k)},{},c)),p=this.getColumnColor(g,F,B,C,S,ma,I,a.chart.useRoundEdges),f.color=p[0],f.borderColor=p[1],f.borderWidth=y,h(g.showvalue,c.showvalue,c.showvalues,
0)||(f.displayValue=J)},getColumnColor:function(a,e,c,d,b,f,m,g,p,n){var k;d=q(d,V(e,60));k=e.split(w);a=c.split(w);d=d.split(w);b=b.split(w);n?p={FCcolor:{color:k[0],alpha:a[0]}}:g?(e=k[0],c=a[0],p={FCcolor:{color:V(e,75)+w+U(e,25)+w+V(e,80)+w+U(e,65)+w+V(e,80),alpha:c+w+c+w+c+w+c+w+c,ratio:"0,10,13,57,20",angle:p?"-180":"0"}},d=[V(e,70)]):(c=ub(c,k.length),p={FCcolor:{color:e,alpha:c,ratio:f,angle:p?180-m:m}});return[p,{FCcolor:{color:d[0],alpha:b[0]}}]}},v.sparkbase);v("sparkwinloss",{friendlyName:"Spark Win-Loss Chart",
standaloneInit:!0,defaultSeriesType:"column",rendererId:"sparkwinloss",creditLabel:!1,showCanvasBorder:!1,showCanvas:0,showtooltip:0,postSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=a.series&&a.series[0]&&a.series[0].data,m=q(d.plotfillalpha,Ga),g=q(d.plotfillcolor,b.getColor("plotFillColor")),p=q(d.plotborderalpha,Ga),n=q(d.plotbordercolor),k=h(d.showplotborder,0)?h(d.plotborderthickness,1):0,l=q(d.wincolor,b.getColor("winColor")),s=q(d.losscolor,b.getColor("lossColor")),
u=q(d.drawcolor,b.getColor("drawColor")),b=q(d.scorelesscolor,b.getColor("scorelessColor")),t=d.winhovercolor,r=d.losshovercolor,K=d.drawhovercolor,A=d.scorelesshovercolor,z=J,G,x,y,F,B,C,S=0,ma=0,I=0;x=a.yAxis[0];var w,H,N,v,E,L;a.tooltip.enabled=!1;x.min=-1.1;x.max=1.1;if(0<(v=f&&f.length)){for(E=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;v;){v-=1;w=f[v];L=E[v];switch(L.value){case 1:z=q(L.color,l,g);G=q(L.hovercolor,t,z);S+=1;break;case -1:z=q(L.color,s,g);G=q(L.hovercolor,r,z);ma+=1;break;
case .1:z=q(L.color,u,g),G=q(L.hovercolor,K,z),I+=1}1==L.scoreless&&(z=q(L.color,b,g),G=q(L.hovercolor,A,L.color,b,G));x=q(L.alpha,m);y=q(L.bordercolor,n);F=q(L.borderalpha,p);B=q(L.ratio,d.plotfillratio);C=q(360-d.plotfillangle,90);N=this.getColumnColor(L,z,x,y,F,B,C,a.chart.useRoundEdges);w.color=N[0];w.borderColor=N[1];w.borderWidth=k;h(L.showvalue,0)||(w.displayValue=J);if(H=w.hoverEffects)w=w.rolloverProperties,H.color=U(G,70),N=H.colorArr=this.getColumnColor(L,H.color,x,y,F,B,C,a.chart.useRoundEdges),
w.color=N[0],w.borderColor=N[1],H.borderThickness=k,w.borderWidth=k}1==h(d.showvalue,1)&&(c.closeValue.style=R({},a.plotOptions.series.dataLabels.style),c.closeValue.label=S+"-"+ma+(0<I?"-"+I:J))}}},v.sparkcolumn);Va={realtimeEnabled:!0,canvasPaddingModifiers:null,linearDataParser:v.gaugebase.linearDataParser,eiMethods:xa({},v.gaugebase.eiMethods),decimals:2,prepareRealtimeValueText:function(){var a=this.hcJSON,e=this.hcJSON[O],c=e.rtLabel,d=a.chart.realtimeValueSeparator,b=new RegExp(d+"$","g");
c&&c.label&&(e=e.realtimeValues.join(d).replace(b,J),c.label.text=e,a.xAxis.plotLines&&(a.xAxis.plotLines[0]=c))},chart:function(){var a=this.dataObj.chart,e=this.numberFormatter,c,d,b,f=h(a.showrealtimevalue,1),m=h(a.realtimevaluepadding),g,p,a=this.dataObj.chart;a.adjustdiv="0";f&&(a.xaxisname=a.xaxisname?"<br/>"+a.xaxisname:"<br/>");c=v.msareabase.chart.apply(this,arguments);b=c.chart;d=c[O];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=Ka(h(a.messagelogwpercent,80),100);b.messageLogHPercent=Ka(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=
m;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,m=g.length;f<m;f++)a=g[f],p=(p=a.data)&&p.length&&p[p.length-1]&&p[p.length-1].y,d.realtimeValues[f]=e.dataLabels(p,a.yAxis);d.rtLabel||(e=R({},d.outCanvasStyle),e.fontWeight=b.realtimeValueFontBold?"bold":"normal",b.realtimeValueFontColor&&
(e.color=b.realtimeValueFontColor.replace(fb,hb)),b.realtimeValueFontSize&&(e.fontSize=b.realtimeValueFontSize+jb),b.realtimeValueFont&&(e.fontFamily=b.realtimeValueFont),g=h(parseInt(e.fontSize,10),10),d.rtLabel={color:ha,alwaysVisible:!0,isTrend:!0,value:(d.x.catCount-1)/2,width:.01,label:{align:Ma,textAlign:Ma,rotation:0,textVAlign:Wa,text:" ",x:0,y:.8*g+(c.xAxis.title.margin|0),style:e}},c.xAxis.plotLines.splice(0,0,d.rtLabel))}b.showRTMenuItem?(c.callbacks||(c.callbacks=[])).push(this.drawRTMenuButtons):
b.useMessageLog&&b.alwaysShowMessageLogMenu&&b.messageGoesToLog&&(c.callbacks||(c.callbacks=[])).push(this.drawMLMenuButtons);this.dataObj.alerts&&(this.hcJSON.alerts=this.parseAlertObj(this.dataObj.alerts));return c},parseAlertObj:function(a){var e=this.numberFormatter,c=a&&a.alert,d=c.length,b={alert:[]},f,m,g,p,n;for(a=0;a<d;a+=1)p=c[a],f=e.getCleanValue(p.minvalue),m=e.getCleanValue(p.maxvalue),g=q(p.action,""),p=q(p.param,""),null!==f&&null!==m&&""!==g&&(f>m&&(n=m,m=f,f=n),b.alert.push({minvalue:f,
maxvalue:m,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[O],b;c.push(b=na({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){E&&E.messageLogger&&E.messageLogger.open();b.showItem(4);b.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){E&&E.messageLogger&&E.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=[]),m=this.toolbar,
c=(c=c[O])&&c.outCanvasStyle||this.outCanvasStyle||{},g,p=e.isUpdateActive||a.eiMethods.isUpdateActive,p=p&&p.call(e);f.push(g=na({chart:this,basicStyle:c,items:[{text:"Stop Update",visibility:p?qb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:p?"hidden":qb,onclick:function(){g.hideItem(1);g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){E&&E.messageLogger&&
E.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){E&&E.messageLogger&&E.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=m.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,m=[],g=d[0],p=g&&g.RTValueArr,n=p&&p.length||0,k=(d=d[1])&&d.RTValueArr,l=k&&k.length||0,s=a&&a.length||0,u;c=h(c,-.5);for(u=0;u<s;u+=1)if(b=a[u],b.isGrid||b.isVline)if(f=b.value+=e,f<c||f===c&&b.isVline)a.splice(u,1),b.isGrid&&m.push(b),u-=1,s-=1;if(g&&p&&n)for(p.splice(0,-e),n=p.length,delete g.min,
delete g.max,u=0;u<n;u+=1)(a=p[u])&&void 0!==a.min&&(!1===g.min<a.min&&(g.min=a.min),!1===g.max>a.max&&(g.max=a.max));if(d&&k&&l)for(k.splice(0,-e),l=k.length,delete d.min,delete d.max,u=0;u<l;u+=1)(a=k[u])&&void 0!==a.min&&(!1===d.min<a.min&&(d.min=a.min),!1===d.max>a.max&&(d.max=a.max));return m},configureAxis:function(a){var e=a[O],c=a.xAxis,d=e.x,b=e.axisGridManager,f=d.catCount,m=e.oriCatTmp,g=e[0],p=g&&g.RTValueArr,n=e[1],k=n&&n.RTValueArr,l=this.dataObj,s=l.chart||(l.chart={}),l=a.series,u=
l[0].data.length,s=this.numDisplaySets=h(s.numdisplaysets,va(u,15)),t=c.plotLines,r=t&&t.length||0,q=[],A=this.chartInstance.jsVars._reflowData,z;A.hcJSON&&(z=A.hcJSON[O])&&(g.min=z[0]&&z[0].min,g.max=z[0]&&z[0].max,n.min=z[1]&&z[1].min,n.max=z[1]&&z[1].max);n=((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=s-u;if(0<g){for(;r--;)t[r].value+=
g;for(c.plotLines=[];g--;)q[g]={y:null},b.addXaxisCat(c,g,g," ",{},{},{}),p&&p.unshift(null),k&&k.unshift(null),m.unshift(null),n.unshift({label:" "});c.plotLines=c.plotLines.reverse().concat(t)}else g&&(this.shiftPlotLines(c.plotLines,g,-.5,e),m.splice(0,-g));for(g=l.length;g--;)c=l[g],e=c.data,c.data=q.concat(e.slice(-s));this.needsRedraw=0===f;d.catCount=s;return v.msareabase.configureAxis&&v.msareabase.configureAxis.apply(this,arguments)},postSeriesAddition:function(a,e,c,d,b){e=a[O];c=e.isBar;
d=a.chart.rotateValues&&!c?270:0;var f=e[0],m=f.RTValueArr,g=f&&f.stacking100Percent,p,n,k,l,h,u,t,r,q;if(this.isStacked&&m&&(e.showStackTotal||g))for(b=b||0,u=a.series,t=R({},a.plotOptions.series.dataLabels.style),r=parseFloat(t.fontSize),q=!f.stacking100Percent,t.color=a.plotOptions.series.dataLabels.color,f=m.length;b<f;b+=1)if(n=m[b])if(h=(n.n||0)+(n.p||0),e.showStackTotal&&(p=b,n=0>h?n.n:n.p,a.xAxis.plotLines.push({value:p,width:0,isVline:q,isTrend:!q,zIndex:4,_isStackSum:1,_catPosition:b,label:{align:Ma,
textAlign:270===d?0>h?bb:Ja:Ma,offsetScale:q?n:void 0,offsetScaleIndex:0,rotation:d,style:t,verticalAlign:Wa,y:c?0:0>h?270===d?4:r:-4,x:0,text:e.numberFormatter.yAxis(h)}})),g)for(n=0,p=u.length;n<p;n+=1)if(u[n].data){k=u[n].data[b];if(k.y||0===k.y)l=k.y/h*100,k.y=l,k.showPercentValues&&(k.displayValue=this.numberFormatter.percentValue(l)),k.showPercentInToolTip&&(k.toolText=k.toolText+parseInt(100*l,10)/100+"%");if(k.previousY||0===k.previousY)k.previousY=k.previousY/h*100}},pointValueWatcher:function(a,
e,c,d,b){if(null!==e){var f=a[O];a=f[c||(c=0)];var m;a||(a=f[c]={});c=a.RTValueArr;c||(c=a.RTValueArr=[]);(f=c[b])||(f=c[b]={});d&&(0<=e?f.p?(m=f.p,e=f.p+=e):f.p=e:f.n?(m=f.n,e=f.n+=e):f.n=e);!1===f.max>e&&(f.max=e,!1===a.max>e&&(a.max=e));!1===f.min<e&&(f.min=e,!1===a.min<e&&(a.min=e));return m}},realtimeUpdate:function(a,e){var c=this.hcJSON,d=this.dataObj,b=d.chart,f="0"===b.allowclear?0:1,m=c[O],g=this.numberFormatter,p=m.x,n=p._labelY,k=p._labelX,l=p._yShipment,s=p._isStagger,u=p._rotation,t=
p._textAlign,r=p._adjustedPx,q=p._staggerLines,A=p._labelHeight,z,G=m.axisGridManager,x=p.catCount,y=this.renderer,F=this.chartInstance.jsVars,B=a.values,C=a.labels||[],S=a.showLabels||[],w=a.colors,I=a.toolTexts,v=a.links,H=c.xAxis,N="0"===d.chart.showlabels,E=c.chart.showRealtimeValue,ga=d.categories,L=F._reflowData,M=[],Q=h(m._startIndex,0),T=p.stepValue,p=a.dimension>x?x:a.dimension,P=x-p,M=[],Da=a.vlines,Z,ba,U,V,$,ta,fa,ra,ia,X,aa=new Date,ea,ha,Y,ca,da,wa;a.clear&&f&&this.realtimeUpdate({dimension:this.numDisplaySets,
values:[],labels:[]},0<a.dimension);if(a.dimension){c.plotOptions.series.animation=!1;Da?(Z=a.vlineColors||[],ba=a.vlineLabels||[],U=a.vlineThickness||[],V=a.vlineDashed||[]):Da=[];ga||(ga=d.categories=[]);ga[0]?ga[0].category||(ga[0].category=[]):ga[0]={category:[]};ga=ga[0].category;M=this.shiftPlotLines(H.plotLines,-p,-.5,m);for(f=M.length;f--;)(X=M[f]).label&&($=X.label,$.text="0"===S[f]||N?"":W(C[f]||J),z=P+f,X.value=z,ta=x+f+Q,(z=0===ta%T)?($.style=H.labels.style,$.y=s?n+ta/T%q*A:l,$.x=k+(u?
r:0),$.rotation=u,$.textAlign=t):$.style=H.steppedLabels.style,H.plotLines.push(R({},X)),ga.shift(),ga.push({label:$.text})),"1"===Da[f]&&G.addVline(H,{color:Z[f]&&decodeURIComponent(Z[f]),label:ba[f]&&decodeURIComponent(ba[f]),thickness:U[f]&&decodeURIComponent(U[f]),dashed:V[f]&&decodeURIComponent(V[f])},P+f,c);M=[];m._startIndex=(p+Q)%(s?T*q:T);Q=c.series&&c.series.length;p&&m.oriCatTmp.splice(0,p);m._skipValueWatcher=!1;for(f=0;f<Q;f+=1){Z=c.series[f];U=B&&B[f]||[];V=w&&w[f]||[];T=v&&v[f]||[];
P=I&&I[f]||[];S=Z.yAxis||0;m._rtCounter||(m._rtCounter=1);!M[f]&&(M[f]=[]);G=M[f];ba=Z.data;fa=ba.length;N=fa-p;for(ga=0;N<fa;N+=1,ga+=1)Da=decodeURIComponent(D(U[ga],null)),ia=g.getCleanValue(Da),$=decodeURIComponent(C[ga]||""),m.oriCatTmp[N]=$,ba.shift(),Da=Z._dataParser({value:Da,label:$,color:V&&V[ga]&&decodeURIComponent(V[ga]),link:T&&T[ga]&&decodeURIComponent(T[ga]),tooltext:P&&P[ga]&&decodeURIComponent(P[ga])},N,ia),Da.y=ia,ba.push(Da),G.push(Da),Da.previousY=this.pointValueWatcher(c,ia,S,
this.isStacked,N);E&&(m.realtimeValues[f]=g.dataLabels(ia,Z.yAxis))}m._rtCounter+=p;this.postSeriesAddition(c,void 0,void 0,void 0,fa-p);E&&this.prepareRealtimeValueText();g=c.yAxis[0];B=m[0];I=h(this.isStacked?0:this.setAdaptiveYMin,b.setadaptiveymin,0);w=C=!I;v=(g.max-g.min)/4;if(m.isDual){if(B.max>g.max||B.min<g.min||(!w||0!==g.min)&&g.min!==m._userPMin&&B.min-g.min>v||(!C||0!==g.max)&&g.max!==m._userPMax&&g.max-B.max>v)F._forceReflow=!0,m._skipValueWatcher=!0;g=c.yAxis[1];B=m[1];w=C=!h(b.setadaptivesymin,
I);v=(g.max-g.min)/4;if(B.max>g.max||B.min<g.min||(!w||0!==g.min)&&g.min!==m._userSMin&&B.min-g.min>v||(!C||0!==g.max)&&g.max!==m._userSMax&&g.max-B.max>v)F._forceReflow=!0,m._skipValueWatcher=!0}else if(B.max>g.max||B.min<g.min||(!w||0!==g.min)&&g.min!==m._userMin&&B.min-g.min>v||(!C||0!==g.max)&&g.max!==m._userMax&&g.max-B.max>v)F._forceReflow=!0,m._skipValueWatcher=!0;ea=m[0]&&m[0].RTValueArr;ha=m[1]&&m[1].RTValueArr;F._forceReflow&&(g=c.yAxis[0],B=m[0],Y=m[0]&&m[0].min,ca=m[0]&&m[0].max,da=m[1]&&
m[1].min,wa=m[1]&&m[1].max,ga=g.min,Q=g.max,v=h(m.numdivlines,b.numdivlines,this.numdivlines,4),E=b.adjustdiv!==db,fa=h(m._userMax,m._userPMax),ia=h(m._userMin,m._userPMin),f=h(b.showyaxisvalues,b.showyaxisvalue,1),G=h(b.showlimits,f),S=h(b.showdivlinevalue,b.showdivlinevalues,f),N=h(parseInt(b.yaxisvaluesstep,10),parseInt(b.yaxisvaluestep,10),1),N=1>N?1:N,this.axisMinMaxSetter(g,B,fa,ia,C,w,v,E),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=
g._alternateGridColor,this.configurePlotLines(b,c,g,B,G,S,N,m.numberFormatter,!1),ga===g.min&&Q===g.max&&(ra=!0),m.isDual?(fa=m._userSMax,ia=m._userSMin,I=h(b.setadaptivesymin,I),w=C=!I,G=h(b.showsecondarylimits,G),S=h(b.showdivlinesecondaryvalue,f),g=c.yAxis[1],B=m[1],ga=g.min,Q=g.max,this.axisMinMaxSetter(g,B,fa,ia,C,w,v,E),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(b,c,g,B,
G,S,N,m.numberFormatter,!0),ga===g.min&&Q===g.max&&ra&&(F._forceReflow=!1)):ra&&(F._forceReflow=!1),d.trendlines&&$a(d.trendlines,c.yAxis,m,m.isDual,this.isBar));L.hcJSON&&(b=L.hcJSON[O],delete L.hcJSON[O],R(c.series,L.hcJSON.series,!0),L.hcJSON[O]=b,b=null);R(L,{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=ea;this.hcJSON._FCconf[1].RTValueArr=
ha;if(b)for(a=0;a<d;a+=1)this.hcJSON.series[a].data=b[a].data},postHCJSONCreation:function(a){R(a,{_FCconf:{0:{min:Y,max:ca},1:{min:da,max:wa},_skipValueWatcher:!0,realtimeValues:m.realtimeValues,rtvHTMLWrapper:m.rtvHTMLWrapper}},!0)},hcJSON:{_FCconf:{_userMax:m._userMax,_userMin:m._userMin,_userPMax:m._userPMax,_userSMax:m._userSMax,_userPMin:m._userPMin,_userSMin:m._userSMin,_chartState:m._chartState,_rtCounter:m._rtCounter,_startIndex:m._startIndex,oriCatTmp:m.oriCatTmp,x:{catCount:x,_labelY:n,
_labelX:k,_yShipment:l,_isStagger:s,_rotation:u,_textAlign:t,_adjustedPx:r,_staggerLines:q,_labelHeight:A},0:{min:h(Y,m[0]&&m[0].min),max:h(ca,m[0]&&m[0].max)},1:{min:h(da,m[1]&&m[1].min),max:h(wa,m[1]&&m[1].max)}}}},!0);if(!e){F._forceReflow&&(F._forceReflow=!1,g=c.yAxis[0],n=g.plotBands.concat(g.plotLines),Ua(g,n),y.yAxis[0].realtimeUpdateY(g.min,g.max),m.isDual&&(g=c.yAxis[1],n=g.plotBands.concat(g.plotLines),Ua(g,n),y.yAxis[1].realtimeUpdateY(g.min,g.max)),this.containerElement.resizeTo());y.xAxis[0].realtimeUpdateX(p);
f=0;for(N=M.length;f<N;f+=1)y.plots[f]&&y.plots[f].realtimeUpdate&&y.plots[f].realtimeUpdate(p,F._forceReflow);this.realtimeDrawingLatency=new Date-aa}}},extractTrendLines:function(a){var e=a.plotLines;a=a.plotBands;for(var c,d=e.length,b=[],f=[];d;)c=d-1,c=e[c],c.isTrend&&f.push(c),d-=1;for(d=a.length;d;)c=d-1,e=a[c],e.isTrend&&b.push(e),d-=1;return{trendLines:f,trendBands:b}}};xa(Va.eiMethods,{clearChart:function(a){a=a&&a.toString&&a.toString();this.feedData("clear=1");E.raiseEvent("ChartCleared",
{source:a},this,[this.id,a])},getDataJSON:function(){return this.jsVars._rtLastUpdatedData||{values:[]}},getData:function(){var a=this.jsVars.hcObj.options,e=a[O].oriCatTmp,c,d=[],b,f,m,g;if(!a||!a.series)return d;a=a.series;b=[];for(m=a.length;m--;)for(c=a[m],b[c.index]=c.name,f=c.data,g=e.length;g--;)c=d[g]||(d[g]=[e[g]]),c[m+1]=f[g].y;b.unshift(null);d.unshift(b);return d}});v("realtimearea",xa({friendlyName:"Realtime Data Streaming Area Chart",standaloneInit:!0,multisetRealtime:!0,defaultPlotShadow:1,
creditLabel:!1,rendererId:"realtimecartesian"},Va),v.msareabase);v("realtimecolumn",xa({friendlyName:"Realtime Data Streaming Column Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:!1,rendererId:"realtimecartesian"},Va),v.mscolumn2dbase);v("realtimeline",xa({friendlyName:"Realtime Data Streaming Line Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:!1,rendererId:"realtimecartesian"},Va),v.mslinebase);v("realtimelinedy",xa({friendlyName:"Realtime Data Streaming Dual Y-Axis Line Chart",
standaloneInit:!0,multisetRealtime:!0,isDual:!0,creditLabel:!1,series:v.mscombibase,rendererId:"realtimecartesian"},Va),v.mslinebase);v("realtimestackedarea",{friendlyName:"Realtime Data Streaming Stacked Area Chart",isStacked:!0,showSum:0,areaAlpha:100,creditLabel:!1},v.realtimearea);v("realtimestackedcolumn",{friendlyName:"Realtime Data Streaming Column Chart",isStacked:!0,creditLabel:!1},v.realtimecolumn);Hb=function(a,e){return a.minvalue-e.minvalue};Za.prototype={getColorObj:function(a){for(var e=
this.colorArr,c=0,d=e.length,b,f,m={};c<d;c+=1){m.index=c;b=e[c];f=e[c+1];if(a<b.minvalue)return m.nextObj=b,m;if(a>=b.minvalue&&a<=b.maxvalue)return m.colorObj=b,f&&a==f.minvalue&&(m.nextObj=f,m.isOnMeetPoint=!0),m;m.prevObj=b}m.index=c-1;return m},getColorRangeArr:function(a,e){var c,d=this.colorArr,b,f,m=[],g,p;if(!this.defaultAsigned&&(a>e&&(c=a,a=e,e=c),a<e&&(b=this.getColorObj(a),f=this.getColorObj(e),b&&f))){c=a;b=b.index;for(f=f.index;b<=f;b+=1)g=R({},d[b]),g.minvalue!==c&&(g.minvalue=c),
m.push(g),p=g,c=g.maxvalue;p.maxvalue=e}return m}};Za.prototype.constructor=Za;Ib=function(){var a={fluidHRatio:!0,fluidColor:!0,fluidAlpha:!0,fluidFill:!0},e=[],c=0,d=function(a){c=Boolean(a)?a.duration:0},b=function(b,d){var f,n,k=this,l,s,u=!1,t=!1,r=this._3dAttr;Fa(b)&&X(d)&&(f=b,b={},b[f]=d);if(Fa(b))k=a[b]?k._3dAttr[b]:k._attr(b);else for(f in b)n=b[f],a[f]?("fluidFill"===f?(n&&n.linearGradient&&n.stops&&n.stops[0]&&(n=n.stops[0][1]),rb.test(n)?(s=new nb(n),l=s.get("hex"),s=100*s.get("a")):
n&&n.FCcolor?(l=n.FCcolor.color.split(w)[0],s=n.FCcolor.alpha.split(w)[0]):ob.test(n)&&(l=n.replace(fb,hb)),r.fluidColor=q(l,r.fluidColor,"000000"),r.fluidAlpha=h(s,r.fluidAlpha,100),u=!0):"fluidColor"===f?(r.fluidColor=q(n,r.fluidColor,"000000"),u=!0):"fluidAlpha"===f?(r.fluidAlpha=h(n,r.fluidAlpha,100),u=!0):0<=n&&1>=n&&(r.fluidHRatio=n,t=!0),u&&(n=V(r.fluidColor,r.is2D?80:70),k.fluid.attr({fill:M(n,r.fluidAlpha)}),k.fluidTop.attr({fill:M(n,r.fluidAlpha)}),k.topLight.attr({stroke:M(n,.4*r.fluidAlpha)}),
k.topLightBorder.attr({fill:T({FCcolor:{color:n+w+n,alpha:"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})})),t&&(n=r.scaleY+r.h*(1-r.fluidHRatio),c?(k.fluid.animate({path:r.fluidPath.concat(["L",r.lx2,n,r.lx1,n,"Z"])},c,"easeIn"),k.fluidTop.animate({path:e.concat(["M",r.lx1,n,"A",r.lCylWidthHalf,1,0,1,0,r.lx2,n,"Z"])},c,"easeIn")):(k.fluid.attr({path:r.fluidPath.concat(["L",r.lx2,n,r.lx1,n,"Z"])}),k.fluidTop.attr({path:e.concat(["M",r.lx1,n,"A",r.lCylWidthHalf,1,0,1,0,r.lx2,n,"Z"])})))):
this._attr(f,n);return k},f=function(a,b,c){this.border.shadow(a,b,c)};return function(a,c,p,n,k,l,s,u,t,r,K,A,z){var G,x,y,F,B,C,S,v,I,J,H,N,E,D,L,O;lb(a)&&(c=a.y,p=a.r,n=a.h,l=a.renderer,s=a.fluidHRatio,u=a.conColor,t=a.conBorderColor,r=a.conBorderThickness,K=a.fluidColor,A=a.fluidAlpha,z=a.is2D,a=a.x);0<=s&&1>=s||(s=0);u=q(u,"FFFFFF");t=q(t,"#000000");r=h(r,1);K=q(K,"000000");A=h(A,100);O={x:a,y:c,r:p,h:n,renderer:l,fluidHRatio:s,conColor:u,conBorderColor:t,conBorderThickness:r,fluidStroke:3,fluidColor:K,
is2D:z,fluidAlpha:A};k._attr=k.attr;k.attr=b;k._setAnimate=d;k.shadow=f;k._3dAttr=O;G=V(u,80);K=V(K,z?80:70);u=U(u,80);x=.643*p;y=.33*x;F=x-y;B=a-x;C=a+x;S=a-F;F=a+F;v=c+x;I=v+n;J=I+.766*p;H=c+y;n=v+n*(1-s);s=.9*x;N=p+s-x;E=a-s;D=a+s;J-=Math.abs(Math.sqrt(N*N-s*s));L=parseInt(a-.6*x,10);x=a+x/2;O.fluidPath=["M",E,J,"A",N,N,0,1,0,D,J];O.scaleY=v;O.lx1=E;O.lx2=D;O.lCylWidthHalf=s;k.topLight=l.path(["M",E,v,"L",D,v],k).attr({"stroke-width":1,stroke:M(K,40)});k.topLightBorder=l.path(["M",E,v,"L",D,v,
D,H,E,H,"Z"],k).attr({"stroke-width":0,fill:T({FCcolor:{color:K+w+K,alpha:z?"0,0":"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})});k.fluid=l.path(O.fluidPath.concat(["L",D,n,E,n,"Z"]),k).attr({"stroke-width":0,fill:M(K,A)});k.fluidTop=l.path(e.concat(["M",E,n,"A",s,1,0,1,0,D,n,"Z"]),k).attr({"stroke-width":0,fill:M(K,A)});k.border=l.path(e.concat(["M",S,c,"A",y,y,0,0,0,B,H],["L",B,I],["A",p,p,0,1,0,C,I],["L",C,H],["A",y,y,0,0,0,F,c,"Z"]),k).attr({"stroke-width":r,stroke:t});z||(k.bulbBorderLight=
l.path(e.concat(["M",B,I,"A",p,p,0,0,1,C,I],["M",C,I,"A",p,p,0,0,0,B,I],["M",B,I,"A",p,p,0,1,0,C,I,"Z"]),k).attr({"stroke-width":0,stroke:"#00FF00",fill:T({FCcolor:{cx:.5,cy:.5,r:"50%",color:G+w+u,alpha:"0,50",ratio:"78,30",radialGradient:!0}})}),k.bulbTopLight=l.path(e.concat(["M",B,I,"A",p,p,0,0,1,C,I],["A",p,p,0,0,0,B,I],["A",p,p,0,1,0,C,I,"Z"]),k).attr({"stroke-width":0,fill:T({FCcolor:{cx:.3,cy:.1,r:"100%",color:u+w+G,alpha:"60,0",ratio:"0,30",radialGradient:!0}})}),k.bulbCenterLight=l.path(e.concat(["M",
B,I,"A",p,p,0,1,0,C,I],["A",p,p,0,0,0,B,I],["A",p,p,0,0,1,C,I,"Z"]),k).attr({"stroke-width":0,fill:T({FCcolor:{cx:.25,cy:.7,r:"100%",color:u+w+G,alpha:"80,0",ratio:"0,70",radialGradient:!0}})}),k.cylLeftLight=l.path(e.concat(["M",a,c,"L",S,c],["A",y,y,0,0,0,B,H],["L",B,I,a,I,"Z"]),k).attr({"stroke-width":0,fill:T({FCcolor:{color:u+w+G,alpha:"50,0",ratio:"0,80",angle:0}})}),k.cylRightLight=l.path(e.concat(["M",B,c,"L",F,c],["A",y,y,0,0,1,C,H],["L",C,I,B,I,"Z"]),k).attr({"stroke-width":0,fill:T({FCcolor:{color:u+
w+G+w+G,alpha:"50,0,0",ratio:"0,40,60",angle:180}})}),k.cylLeftLight1=l.path(["M",L,H,"L",B,H,B,I,L,I,"Z"],k).attr({"stroke-width":0,fill:T({FCcolor:{color:u+w+G,alpha:"60,0",ratio:"0,100",angle:180}})}),k.cylRightLight1=l.path(["M",L-.01,H,"L",x,H,x,I,L-.01,I,"Z"],k).attr({"stroke-width":0,fill:T({FCcolor:{color:u+w+G,alpha:"60,0",ratio:"0,100",angle:0}})}));return k}}();Jb=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,n,k=this,l,s,u=!1,t=!1,r=this._3dAttr,K,A,z,G,x,y,F,B;Fa(b)&&X(d)&&(f=b,b={},b[f]=d);if(Fa(b))k=a[b]?k._3dAttr[b]:k._attr(b);else for(f in b)n=b[f],a[f]?("fill"===f?(n&&n.linearGradient&&n.stops&&n.stops[0]&&(n=n.stops[0][1]),rb.test(n)?(s=new nb(n),l=s.get("hex"),s=100*s.get("a")):n&&n.FCcolor?(l=n.FCcolor.color.split(w)[0],s=n.FCcolor.alpha.split(w)[0]):ob.test(n)&&(l=n.replace(fb,hb)),r.fluidColor=q(l,r.fluidColor,"000000"),r.fluidAlpha=h(s,r.fluidAlpha,100),u=!0):"color"===f?(r.fluidColor=
q(n,r.fluidColor,"000000"),u=!0):"alpha"===f?(r.fluidAlpha=h(n,r.fluidAlpha,100),u=!0):0<=n&&1>=n&&(r.fluidHRatio=n,t=!0),u&&(n=V(r.fluidColor,70),K=U(r.fluidColor,70),z=V(r.conColor,80),A=U(r.conColor,80),s=r.fluidAlpha,G=s+w+s,k.fluid.attr({"stroke-width":0,fill:T({FCcolor:{cx:.5,cy:0,r:"100%",color:K+w+n,alpha:G,ratio:"0,100",radialGradient:!0}})}),k.fluidTop.attr({"stroke-width":3,stroke:M(K,s),fill:T({FCcolor:{cx:.5,cy:.7,r:"100%",color:K+w+n,alpha:G,ratio:"0,100",radialGradient:!0}})}),k.btnBorderLight.attr({fill:T({FCcolor:{color:A+
w+z+w+A+w+A+w+z+w+n+w+z+w+A,alpha:"50,50,50,50,50,"+.7*s+",50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})})),t&&(z=r.x,n=r.r,K=r.fluidStroke,A=K/2,x=r.h*r.fluidHRatio,K=z-n,z+=n,G=K+A,y=z-A,F=r.y+r.h,x=F-x,B=n*r.r3dFactor,A=n-A,c?(k.fluid.animate({path:e.concat(["M",K,F],["A",n,va(B,1),0,0,0,z,F],["L",z,x],["A",n,va(B,1),0,0,0,K,x,"Z"])},c,"easeIn"),k.fluidTop.animate({path:e.concat(["M",G,x],["A",A,B,0,0,0,y,x],["L",y,x],["A",A,B,0,0,0,G,x,"Z"])},c,"easeIn")):(k.fluid.attr({path:e.concat(["M",K,
F],["A",n,B,0,0,0,z,F],["L",z,x],["A",n,B,0,0,1,K,x,"Z"])}),k.fluidTop.attr({path:e.concat(["M",G,x],["A",A,B,0,0,0,y,x],["L",y,x],["A",A,B,0,0,0,G,x,"Z"])})))):this._attr(f,n);return k},f=function(){};return function(a,c,p,n,k,l,s,u,t,r,K,A,z){var G,x,y,F,B,C,S,v,I,E,H,N,J,D,L,O,Q,R;lb(a)&&(c=a.y,p=a.r,n=a.h,k=a.r3dFactor,l=a.parentGroup,s=a.renderer,u=a.fluidHRatio,t=a.conColor,r=a.conAlpha,K=a.fluidColor,A=a.fluidAlpha,a=a.x);k=h(k,.15);Aa.vml&&(k=k||.001);0<=u&&1>=u||(u=0);t=q(t,"FFFFFF");r=h(r,
30);K=q(K,"000000");A=h(A,100);r={x:a,y:c,r:p,h:n,r3dFactor:k,renderer:s,fluidHRatio:u,conColor:t,conAlpha:r,fluidStroke:3,fluidColor:K,fluidAlpha:A};l=s.group("graphic",l);l._attr=l.attr;l.attr=b;l._setAnimate=d;l.shadow=f;l._3dAttr=r;k*=p;r=p-1.5;G=c+n;n=G-n*u;u=a-p;x=a+p;y=u+1.5;F=x-1.5;B=u-2;C=x+2;S=p+2;v=k+2;I=G+4;E=I+.001;H=V(t,80);N=V(t,90);t=U(t,80);J=V(K,70);K=U(K,70);D=V(J,90);L=.85*p;O=a-L;a+=L;Q=Math.sqrt((1-L*L/(p*p))*k*k);L=c+Q;Q=G+Q;R=c-1;l.btnBorder=s.path(e.concat(["M",B,I],["A",
S,v,0,0,0,C,I],["L",C,E],["A",S,v,0,0,0,B,E,"Z"]),l).attr({"stroke-width":4,stroke:M(H,80)});l.btnBorder1=s.path(e.concat(["M",u,I],["A",p,k,0,0,0,x,I],["L",x,E],["A",p,k,0,0,0,u,E,"Z"]),l).attr({"stroke-width":4,stroke:M(H,50)});l.btnBorderLight=s.path(e.concat(["M",u,G],["A",p,k,0,0,0,x,G],["A",p,k,0,0,0,u,G,"Z"]),l).attr({"stroke-width":0,fill:T({FCcolor:{color:t+w+H+w+t+w+t+w+H+w+J+w+H+w+t,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})});B=z?t+w+H+w+t+w+H+w+N+w+N+w+H+
w+t:t+w+H+w+H+w+H+w+H+w+H+w+H+w+t;l.back=s.path(e.concat(["M",u,G],["A",p,k,0,0,0,x,G],["L",x,c],["A",p,k,0,0,0,u,c,"Z"]),l).attr({"stroke-width":1,stroke:M(H,50),fill:T({FCcolor:{color:B,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}})});B=z?K+w+J:J+w+J;l.fluid=s.path(e.concat(["M",u,G],["A",p,va(k,1),0,0,0,x,G],["L",x,n],["A",p,va(k,1),0,0,0,u,n,"Z"]),l).attr({"stroke-width":0,fill:T({FCcolor:{cx:.5,cy:0,r:"100%",color:B,alpha:A+w+A,ratio:"0,100",radialGradient:!0}})});B=
z?K+w+J:J+w+J;l.fluidTop=s.path(e.concat(["M",y,n],["A",r,k,0,0,0,F,n],["L",F,n],["A",r,k,0,0,0,y,n,"Z"]),l).attr({"stroke-width":2,stroke:z?M(K,A):M(D),fill:T({FCcolor:{cx:.5,cy:.7,r:"100%",color:B,alpha:A+w+A,ratio:"0,100",radialGradient:!0}})});B=z?t+w+H+w+t+w+t+w+H+w+t+w+H+w+t:H+w+H+w+H+w+H+w+H+w+H+w+H+w+H;l.front=s.path(e.concat(["M",u,G],["A",p,k,0,0,0,x,G],["L",x,c],["A",p,k,0,0,1,u,c,"Z"]),l).attr({"stroke-width":1,stroke:M(H,50),fill:T({FCcolor:{color:B,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,0,12,0,15,43,15",
angle:0}})});z&&(l.frontLight=s.path(e.concat(["M",u,G],["A",p,k,1,0,0,O,Q],["L",O,L],["A",p,k,0,0,1,u,c,"Z"]),l).attr({"stroke-width":0,stroke:"#"+H,fill:T({FCcolor:{color:B,alpha:"40,0",ratio:"0,100",angle:0}})}));z&&(l.frontLight1=s.path(e.concat(["M",a,Q],["A",p,k,0,0,0,x,G],["L",x,c],["A",p,k,1,0,0,a,L,"Z"]),l).attr({"stroke-width":0,stroke:"#"+H,fill:T({FCcolor:{color:B,alpha:"40,0",ratio:"0,100",angle:180}})}));l.cylinterTop=s.path(e.concat(["M",u,R],["A",p,k,0,0,0,x,R],["L",x,R],["A",p,k,
0,0,0,u,R,"Z"]),l).attr({"stroke-width":2,stroke:M(H,40)});return l}}();Kb=function(){var a={value:!0},e=0,c=function(a){e=Boolean(a)?a.duration:0},d=function(b,c){var d,p,n=this,k=this._3dAttr,l,h,u,t,r,q,A;Fa(b)&&X(c)&&(d=b,b={},b[d]=c);if(Fa(b))n=a[b]?n._3dAttr[b]:n._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=ka(l)*k.sizeGapSum-k.ledGap;if(k.LEDCase){h=n.colorArr;t=h.length;for(u=0;u<t;u+=1)r=h[u],r.maxLEDNoFrac<=l?A=k.LEDLowerFN:
q?A=k.LEDUpperFN:(A=void 0,q=r),A&&(r[A](),"show"===A&&r.attr(r.oriShapeArg));q||(q=r);q.show();q.attr(q.hoverShapeArg)}n.darkShade&&(l={},k.isXChange?(l.width=Math.ceil(k.w-p),k.isIncrement&&(l.x=k.x+p)):(l.height=Math.ceil(k.h-p),k.isIncrement&&(l.y=k.y+p)),e?n.darkShade.animate(l,e,"easeIn"):n.darkShade.attr(l))}}else this._attr(d,p);return n},b=function(){};return function(a,e,g,p,n,k,l,s,u,t,r,K,A,z,G,x,y,F,B,C,S){var w=function(a){var b=0,c,d;return function(){b=0;for(c=a.colorArr.length;b<
c;b+=1)d=a.colorArr[b],d.attr(d.data("rollover"))}},I=function(a){var b=0,c,d;return function(){b=0;for(c=a.colorArr.length;b<c;b+=1)d=a.colorArr[b],d.attr(d.data("rollout"))}},v,H,N,J,E,L,D,Q,O,P,R,Z,ba,W,Y,$,ta,fa,ra,ia,ea,aa,ca,da;lb(a)&&(e=a.y,g=a.w,p=a.h,n=a.wGroup,k=a.renderer,l=a.value,s=a.gaugeFillColor,u=a.gaugeBorderColor,t=a.gaugeBorderAlpha,r=a.gaugeBorderThickness,K=a.colorRangeManager,A=a.minValue,z=a.maxValue,G=a.useSameFillColor,x=a.useSameFillBgColor,y=a.ledSize,F=a.ledGap,B=a.type,
a=a.x);l>=A&&l<=z||(l=A);s=q(s,"FFFFFF");u=q(u,"000000").replace(fb,hb);t=h(t,1);r=h(r,2);da={x:a,y:e,w:g,h:p,wGroup:n,renderer:k,value:l,gaugeFillColor:s,gaugeBorderColor:u,gaugeBorderAlpha:t,gaugeBorderThickness:r,colorRangeManager:K,minValue:A,maxValue:z,ledGap:F,ledSize:y,type:B,useSameFillColor:G,useSameFillBgColor:x};n=k.group("graphic",n);n._attr=n.attr;n.attr=d;n._setAnimate=c;n.shadow=b;n._3dAttr=da;K=K.getColorRangeArr(A,z);v=a;H=e;J=N=!0;E=2===B||4===B?p:g;L=F+y;D=F/2;Q=D/2;O=E-y;P=z-A;
z=0;R=K.length;W=ba=0;Y=!1;ta=$="show";fa=a;ra=e;ia=r/2;ea=a-ia;aa=e-ia;ca=a+g+ia;ia=e+p+ia;G&&(W+=1,$="hide");x&&(W+=2,ta="hide");0>O?(G=1,y=E):(G=parseInt(O/L,10)+1,y+=O%L/G,L=y+F);x=P/G;n.colorArr=[];E=[];1===B?fa+=L-F/2:2===B?(J=!1,ra+=L-F/2):3===B?(v=a+g,N=!1,fa+=L-F/2):(H=e+p,J=N=!1,ra+=L-F/2);da.ledGap=F;da.ledSize=y;da.sizeGapSum=L;da.perLEDValueLength=x;da.isIncrement=N;da.isXChange=J;da.LEDLowerFN=$;da.LEDUpperFN=ta;(da.LEDCase=W)&&(3===W?Z={x:a,y:e,width:g,height:p}:Y=!0);for(n.border=
k.path(["M",ea,aa,"L",ca,aa,ca,ia,ea,ia,"Z"],n).attr({stroke:M(u,t),"stroke-width":r}).shadow({apply:C});z<R;z+=1)if((u=K[z])&&X(u.maxvalue)&&(t=ka((u.maxvalue-A)/x),y=t-ba,ba=t,0<y)){r={r:0};Y&&(Z={});y*=L;if(J)if(r.y=H,r.width=y-F,r.height=p,N?(r.x=v,v+=y):(r.x=v-r.width,v-=y),Y&&(Z.width=r.x-a,N&&1===W||!N&&2===W?(Z.x=a,Z.width+=r.width):Z.width=g-Z.width),0===z||z===R-1){if(r.width+=Q,N&&z===R-1||!N&&0===z)r.x-=Q,r.width=Math.ceil(r.width)}else r.width+=D,r.x-=Q;else if(r.x=v,r.width=g,r.height=
y-F,N?(r.y=H,H+=y):(r.y=H-r.height,H-=y),Y&&(Z.height=r.y-e,N&&1===W||!N&&2===W?(Z.y=e,Z.height+=r.height):Z.height=p-Z.height),0===z||z===R-1){if(r.height+=Q,N&&z===R-1||!N&&0===z)r.y-=Q,r.height=Math.ceil(r.height)}else r.height+=D,r.y-=Q;y=k.rect(r.x,r.y,r.width,r.height,n).attr({"stroke-width":0,fill:T({FCcolor:{color:q(u.code,"000000"),alpha:h(u.alpha,100)}})});y.oriShapeArg=r;y.hoverShapeArg=Z;y.maxLEDNo=t;y.maxLEDNoFrac=(u.maxvalue-A)/x;S&&(y.data("rollover",{"stroke-width":0,fill:T({FCcolor:{color:V(q(u.code,
"000000"),80)+","+U(q(u.code,"000000"),80),alpha:h(u.alpha,100),angle:B%2?90:0}})}),y.data("rollout",{"stroke-width":0,fill:T({FCcolor:{color:q(u.code,"000000"),alpha:h(u.alpha,100)}})}));n.colorArr.push(y)}n.darkShade=k.rect(a,e,g,p,0,n).attr({"stroke-width":0,fill:M(s,50)});for(z=1;z<G;z+=1)J?(E.push("M",fa,ra,"L",fa,ra+p),fa+=L):(E.push("M",fa,ra,"L",fa+g,ra),ra+=L);n.LEDGap=k.path(E,n).attr({stroke:M(s,100),"stroke-width":F});n.tracker=k.rect(a,e,g,p,0,n).attr({fill:ha});S&&n.tracker.hover(w(n),
I(n));n.attr({value:l});return n}}();v("renderer.drawingpad",{deleteme:function(a){this.container.innerHTML="called from drawingpad: "+a}},v["renderer.root"]);v("renderer.widgetbase",{drawLegend:function(){},drawGraph:function(){var a=this.elements,e=this.paper,c=this.layers,d=this.options,b=c.dataset;d.nativeMessage||(c.dataset||(b=a.widgetGroup=c.dataset=e.group("dataset"),c.tracker=e.group("hot"),c.tracker.insertAfter(c.dataset)),c.datalabels||(c.datalabels=e.group("datalabels").insertAfter(b)),
b.translate(this.canvasLeft,this.canvasTop),c.datalabels.translate(this.canvasLeft,this.canvasTop),d.tooltip&&!1!==d.tooltip.enabled&&e.tooltip(d.tooltip.style,d.tooltip.shadow,d.tooltip.constrain),this.drawWidget(),this.drawScale(),this.drawValue())},drawWidgetValue:function(){},drawValue:function(a,e){var c=this.options,d=e||c.plotOptions.series.animation,c=c.series&&c.series[0]&&c.series[0].data||[],b;if(c.length){if(a&&(b=a.length))for(;b--;)c[b]&&(c[b]=a[b]);this.drawWidgetValue(c,d);this.drawWidgetLabel(c,
d)}},drawWidgetLabel:function(a){var e=this.paper,c=this.options,d=c.chart,b=this.elements,f=this.layers;a=a[0];var f=f.datalabels||(f.datalabels=e.group("datalabels").insertAfter(f.dataset)),m=this.canvasWidth,g=this.canvasHeight,p=d.valuePadding,n=a.displayValue,k=h(d.yScaleRadius,0),c=c.plotOptions.series.dataLabels.style,l={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},g=g+p+k;null!==a.y&&!isNaN(a.y)&&X(n)&&n!==J&&(b.dataLabel?
b.dataLabel.attr({text:n}):b.dataLabel=e.text(f).attr({"vertical-align":"top",text:n,x:m/2,y:g,"text-anchor":qa[ya],fill:c.color,title:a.originalText||"","text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]}).css(l),e=b.dataLabel.getBBox(),0>e.x+d.spacingLeft&&(e=e.width-d.spacingLeft,d.origW<e&&(e=d.origW-d.spacingLeft),b.dataLabel.attr({x:e/2})))},drawScale:function(){var a=this.paper,e=this.elements,c=this.layers.dataset,d=this.canvasWidth,
b=this.canvasHeight,f=this.options.scale,m=f.minorTM,g=f.min,p=f.max,n=f.majorTM,k=f.axisPosition,l=f.minorTMHeight,h=f.majorTMHeight,u=f.connectorColor,t=f.connectorThickness,r=f.minorTMColor,q=f.minorTMThickness,A=f.majorTMColor,z=f.majorTMThickness,G=f.tickMarkDistance,x=f.tickValueDistance,y=f.placeTicksInside,F=f.placeValuesInside,B=Math.max(h,l),c=e.scaleGroup||(e.scaleGroup=a.group("scale",c)),C=Ma,S=ya,w=f.reverseScale,I=g,v=q/2,H=z/2,g=p-g,N=0,E=0,D=0,L=0,M=0,Q=0,O=0,P=0,T=0,R=0,W=0,U=0,
V=0,$=0,ta=0,fa=0;y?(G=-G,h=-h,l=-l,F?(B=-B,x=-x):B=-G):F&&(B=-G,x=-x);w&&(g=-g,I=p);switch(k){case 1:N=d/g;L=-G;Q=L-H;P=L-v;R=L-h;U=L-l;$=L-B-x;C=Ma;S=F?Wa:mb;break;case 2:E=b/g;D=G;M=D+H;O=D+v;T=D+h;W=D+l;V=D+B+x;ta=d;C=F?bb:Ja;S=ya;break;case 3:N=d/g;L=G;Q=L+H;P=L+v;R=L+h;U=L+l;$=L+B+x;fa=b;C=Ma;S=F?mb:Wa;break;case 4:E=b/g,D=-G,M=D-H,O=D-v,T=D-h,W=D-l,V=D-B-x,C=F?Ja:bb,S=ya}e.minorTM||(e.minorTM=[]);e.majorTM||(e.majorTM=[]);this.tmLabel||(e.tmLabel=[]);if(l)for(b=0,p=m.length;b<p;b+=1)k=m[b]-
I,d=k*N,k*=E,e.minorTM[b]=a.path(["M",d+O,k+P,"L",d+W,k+U],c).attr({"shape-rendering":pb[1>q],stroke:r,"stroke-linecap":"round","stroke-width":q});b=0;for(p=n.length;b<p;b+=1)m=n[b],k=m.value-I,r=m.displayValue,d=k*N,k*=E,l&&(e.majorTM[b]=a.path(["M",d+M,k+Q,"L",d+T,k+R],c).attr({"shape-rendering":pb[1>z],stroke:A,"stroke-linecap":"round","stroke-width":z})),r!==J&&(O=0===b||b===p-1?f.limitValues.style:f.tickValues.style,q=m.labelX||0,e.tmLabel[b]=a.text(d+V+q,k+$,r,c).attr({"text-anchor":qa[m.align||
C],"vertical-align":S,title:m.originalText||""}).css(O));t&&(e.tmConnector=a.path(["M",D,L,"L",g*N+D,g*E+L],c).attr({"shape-rendering":pb[1>t],stroke:u,"stroke-linecap":"round","stroke-width":t}));c.translate(ta,fa);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||[],m=a.toolTexts||[],g=a.showLabels||[],p=c&&c.length||0,h=[],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),m[p]&&(k.tooltext=m[p],k.hasNewData=!0),k.hasNewData&&(h[p]=d.getPointStub(k,p,e,this.definition)),"0"!=g[p]&&c[p].displayValue||(h[p].displayValue=J);h.length&&(this.lastUpdatedObj=a)&&this.drawValue(h);return Boolean(h.length)}}},v["renderer.root"]);v("renderer.bulb",{drawWidget:function(){var a=this.options,e=a.chart,c=this.paper,d=this.elements,b=e.gaugeRadius,a=a.series[0]&&a.series[0].data&&a.series[0].data[0]||{},f=
a.rolloverProperties||{},m={cx:e.gaugeOriginX,cy:e.gaugeOriginY,stroke:a.borderColor,"stroke-linecap":"round","stroke-width":a.borderWidth,r:e.animation?.001:b},g={r:b},p;null===a.y||isNaN(a.y)||(p=d.bulb=(p=d.bulb)?p.attr(m):c.circle(m,this.layers.dataset),e.animation&&p.animate(g,e.animation.duration,"easeIn"),f.enabled&&p.mouseover(function(){p.attr(f.hoverAttr);f.hoverAnimAttr&&p.animate(f.hoverAnimAttr,100,"easeIn")}).data("hoverAttr",f.hoverAttr).mouseout(function(){p.attr(f.outAttr);f.hoverAnimAttr?
p.animate(g,100,"easeIn"):p.attr(g)}).data("outAttr",f.outAttr))},drawWidgetValue:function(a){var e=this,c=e.elements;a=a[0];var d=a.rolloverProperties||{},b=d.hoverAttr,f=d.outAttr,m={fill:T(a.color),ishot:!0},c=c.bulb,g=c.data("hoverAttr"),p=c.data("outAttr");d.enabled&&(b&&b.stroke&&(g.stroke=b.stroke,p.stroke=f.stroke),b&&b.fill&&(g.fill=b.fill,p.fill=f.fill));c||e.drawWidget();d={value:a.y,displayValue:a.displayValue,toolText:a.toolText};null===a.y||isNaN(a.y)||c.attr(m).click(function(a){pa.call(this,
e,a)}).hover(function(a){pa.call(this,e,a,"DataPlotRollOver")},function(a){pa.call(this,e,a,"DataPlotRollOut")}).tooltip(a.toolText).data("eventArgs",d)},drawScale:function(){},drawWidgetLabel:function(a){var e=this.options.chart,c=this.paper,d=this.elements,b=this.layers,f=e.gaugeRadius,m=e.gaugeOriginX,g=e.gaugeOriginY;a=a[0];var p=d.dataLabel,h=e.dataLabels.style,k={fontFamily:h.fontFamily,fontSize:h.fontSize,lineHeight:h.lineHeight,fontWeight:h.fontWeight,fontStyle:h.fontStyle};b.datalabels||
(b.datalabels=c.group("datalabels").insertAfter(b.dataset));e.placeValuesInside?(e=g,b=ya):(e=g+f+e.valuePadding,b=Wa);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:m,y:e,title:a.originalText||"","vertical-align":b,fill:h.color,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash]}).css(k))}},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,m=.643*f,g=new nb(d.color),p=g.get("hex").replace(fb,J),g=100*g.get("a"),h;d.minValue=a.scale.min;d.maxValue=a.scale.max;h=this.elements.thermometer=Ib(0+m,0-m,f,e.thmHeight,this.layers.dataset,c,0,e.thmGlassColor,e.gaugeBorderColor,e.gaugeBorderThickness,p,g,e.use3DLighting);b.enabled&&h.data("hoverInAttrs",{fluidColor:b.thmFillHoverColor,fluidAlpha:b.thmFillHoverAlpha}).data("hoverOutAttrs",{fluidColor:p,
fluidAlpha:g}).hover(function(){h.attr(h.data("hoverInAttrs"))},function(){h.attr(h.data("hoverOutAttrs"))})},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,m=b.min,b=a[0],f=(h(b.y,m)-m)/(f-m),g;d.thermometer||c.drawWidget();b.fluidHRatio=f;m={value:b.y,displayValue:b.displayValue,toolText:b.toolText};e&&d.thermometer._setAnimate(e);d.thermometer.attr({fluidHRatio:f,ishot:!0}).click(function(a){pa.call(this,c,a)}).hover(function(a){pa.call(this,c,a,"DataPlotRollOver")},
function(a){pa.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",m);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,m=a.scale,g=m.max,a=a.series[0].data[0],h,n;a.minValue=m.min;a.maxValue=g;b.cylinder=Jb(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},n={color:e.cylFillColor,alpha:e.cylFillAlpha},b.cylinder.hover(function(){b.cylinder.attr(h)},function(){b.cylinder.attr(n)}))},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,m=b.min,b=a[0],f=(h(b.y,m)-m)/(f-m),g;d.cylinder||c.drawWidget();m={value:b.y,displayValue:b.displayValue,toolText:b.toolText};b.fluidHRatio=f;e&&d.cylinder._setAnimate(e);d.cylinder.attr({fluidHRatio:f,
ishot:!0}).click(function(a){pa.call(this,c,a)}).hover(function(a){pa.call(this,c,a,"DataPlotRollOver")},function(a){pa.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",m);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,m=f.max,g=f.min,a=a.series[0].data[0],h=this.layers.dataset;a.minValue=g;a.maxValue=m;b.led=Kb(0,
0,this.canvasWidth,this.canvasHeight,h,e,0,d.gaugeFillColor,d.gaugeBorderColor,d.gaugeBorderAlpha,d.gaugeBorderThickness,c.colorRangeGetter,g,m,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,m=this.canvasWidth,g=this.canvasHeight,p=b.min,n=b.max,k=b&&b.trendPoint||[],l=d.colorRangeFillMix,s=d.colorRangeFillRatio,u=d.colorRangeBorderColor,t=d.colorRangeBorderAlpha,r=d.colorRangeBorderThickness,q=c.colorRangeGetter.getColorRangeArr(p,n),d=d.showShadow,A,z,G,x,y,F=c.colorManager,B,C,S;a.linear||(a.linear=A=e.group("colorrange",f),a.outerRect=e.rect(A));a.outerRect.attr({x:0,y:0,width:m,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*m/(n-p),y:0,width:(b-a)*m/(n-p),height:g}},z=270):2===c?(f=function(a,b){return{x:0,y:a*g/(n-p),width:m,height:(b-a)*g/(n-p)}},z=180):3===c?(f=function(a,b){return{x:m-b*m/(n-p),y:0,width:(b-a)*m/(n-p),height:g}},z=270):(f=function(a,b){return{x:0,y:g-b*g/(n-p),width:m,height:(b-a)*g/(n-p)}},z=180);a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(b=q.length;c<b;c+=1)x=q[c],y=f(x.minvalue-p,x.maxvalue-p),
x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height,G=x.code,G=M(sa(G,u),t),d&&Math.max(x.alpha,t),B=F.parseColorMix(x.code,l),C=F.parseAlphaList(x.alpha,B.length),S=h(x.borderAlpha,t),x=C.split(w),x=va.apply(Math,x),x=va(r&&S||0,x),a.colorRangeElems[c]||(a.colorRangeElems[c]=e.rect(A)),a.colorRangeElems[c].attr({x:y.x,y:y.y,width:y.width,height:y.height,r:0,"stroke-width":r,stroke:G,fill:T({FCcolor:{color:B.toString(),ratio:s,alpha:C,angle:z}})}).shadow({apply:d,opacity:x/100});for(;a.colorRangeElems[c];)a.colorRangeElems[c].remove(),
a.colorRangeElems.splice(c,1);a.trendObjElems||(a.trendObjElems=[]);c=0;for(b=k.length;c<b;c+=1)l=k[c],y=f(l.startValue-p,l.endValue-p),l.isZone?(a.trendObjElems[c]||(a.trendObjElems[c]=e.rect(A)),a.trendObjElems[c].attr({x:y.x,y:y.y,width:0<y.width?y.width:0,height:0<y.height?y.height:0,r:0,fill:T({FCcolor:{color:l.color,alpha:l.alpha}})})):a.trendObjElems[c]=this.path(["M",y.x,y.y,"L",y.x,y.y+y.height],A).attr({stroke:M(l.color,l.alpha),"stroke-width":l.thickness,"stroke-dasharray":l.dashStyle});
for(;a.trendObjElems[c];)a.trendObjElems[c].remove(),a.trendObjElems.splice(c,1)},drawWidgetValue:function(a){var e=this,c=e.paper,d=e.layers.dataset,b=e.canvasWidth,f=e.canvasHeight,m=e.options.scale,g=m.max,p=m.min,n=g-p,k=a[0],l=a[1],s=m&&m.trendPoint||[],u,t,r=l.borderWidth,q=e.logic.isHorizontal,A;t=a.length;var z=0,G=0,x=0,y=0,F=p,B,C,S,w,I,v;q?(z=b/n,y=f/2):(G=f/n,x=b/2);m.reverseScale&&(z=-z,G=-G,F=g);for(;t--;)A=a[t],m=h(A.y,F)-F,A.plotX=A.origX=m*z+x,A.plotY=A.origY=m*G+y;for(t=s.length;t--;)A=
s[t],m=A.startValue-p,A.plotX=A.origX=m*z+x,A.plotY=A.origY=m*G+y;m=function(a){a=h(a,F)-F;return{x:a*z+x,y:a*G+y}}(Math.min(Math.max(p,0),g));X(k.y)&&(k.plotAsDot?(s=t=k.plotFillPercent/100*(q?f:b),a=k.plotX-t/2,g=k.plotY-s/2,q?(k.animInitAttr={x:m.x},k.animAttr={x:a}):(k.animInitAttr={y:m.y},k.animAttr={y:g})):(a=Math.min(k.plotX,m.x),g=Math.min(k.plotY,m.y),s=Math.abs(k.plotY-m.y),t=Math.abs(k.plotX-m.x),q?(k.animInitAttr={x:m.x,width:0},k.animAttr={x:a,width:t},s=k.plotFillPercent/100*f,g-=s/
2):(k.animInitAttr={y:m.y,height:0},k.animAttr={y:g,height:s},t=k.plotFillPercent/100*b,a-=t/2)),p={link:A.link,value:k.y,displayValue:k.displayValue,toolText:A.toolText},A.shapeType="rect",A.shapeArgs={x:a,y:g,height:s,width:t,endY:u,r:0},S=k.rolloverProperties||{},S.enabled&&void 0!==S.plotFillHoverPercent&&(S.showHoverAnimation?(B={},C={}):(B=S.hoverAttr,C=S.outAttr),k.plotAsDot?(B.width=B.height=S.plotFillHoverPercent/100*(q?f:b),B.x=k.plotX-B.width/2,B.y=k.plotY-B.width/2,C.width=C.height=t,
C.x=a,C.y=g):q?(B.height=S.plotFillHoverPercent/100*f,B.y=Math.min(k.plotY,m.y)-B.height/2,C.height=s,C.y=g):(B.width=S.plotFillHoverPercent/100*b,B.x=Math.min(k.plotX,m.x)-B.width/2,C.width=t,C.x=a)),A.graphic=c.rect(a,g,t,s,0,d).attr({fill:A.color,stroke:A.borderColor,ishot:!0,"stroke-width":A.borderWidth}).click(function(a){pa.call(this,e,a)}).hover(function(a){pa.call(this,e,a,"DataPlotRollOver");S.enabled&&(this.attr(S.hoverAttr),S.showHoverAnimation&&this.animate(B,100,"easeOut"))},function(a){pa.call(this,
e,a,"DataPlotRollOut");S.enabled&&(this.attr(S.outAttr),S.showHoverAnimation&&this.animate(C,100,"easeOut"))}).tooltip(A.toolText).data("eventArgs",p));X(l.y)&&(q?(t=f*l.targetFillPercent/100,s=t/2,k=a=l.plotX,p=g=l.plotY-s,u=l.plotY+s,s=t,t=r,A=a-r/2,m=[a+r,l.plotY]):(t=b*l.targetFillPercent/100,s=t/2,A=a=l.plotX-s,g=u=l.plotY,k=l.plotX+s,s=r,p=g-r/2,m=[l.plotX,g+r+10]),l.shapeType="rect",l.tooltipPos=m,l.trackerArgs={x:A,y:p,height:s,width:t,r:0},l.shapeArgs=["M",a,g,"L",k,u],l.animInitAttr={d:["M",
l.plotX,l.plotY,"L",l.plotX,l.plotY]},l.animAttr={d:l.shapeArgs},p={link:l.link,value:l.y,displayValue:l.displayValue,toolText:l.toolText},w=l.rolloverProperties||{},w.enabled&&void 0!==w.plotFillHoverPercent&&(w.showHoverAnimation?(v={},I={d:l.shapeArgs}):(v=w.hoverAttr,w.outAttr.d=l.shapeArgs),q?(t=f*l.plotFillHoverPercent/100,s=t/2,v.d=["M",a,l.plotY-s,"L",k,l.plotY+s]):(t=b*l.plotFillHoverPercent/100,s=t/2,v.d=["M",l.plotX-s,g,"L",l.plotX+s,u])),l.graphic=c.path(l.shapeArgs,d).attr({stroke:l.borderColor,
"stroke-width":r,"stroke-linecap":"round",ishot:!0,"shape-rendering":pb[1>r]}).click(function(a){pa.call(this,e,a)}).hover(function(a){pa.call(this,e,a,"DataPlotRollOver");w.enabled&&(this.attr(w.hoverAttr),w.showHoverAnimation&&this.animate(v,100,"easeOut"))},function(a){pa.call(this,e,a,"DataPlotRollOut");w.enabled&&(this.attr(w.outAttr),w.showHoverAnimation&&this.animate(I,100,"easeOut"))}).tooltip(l.toolText).data("eventArgs",p))}},v["renderer.widgetbase"]);v("renderer.hbullet",{drawWidgetLabel:function(a){var e=
this.options,c=this.layers,d=this.paper,b=c.datalabels;a=a[0];var f=this.canvasWidth,m=this.canvasHeight,g=e.chart.valuePadding,e=e.plotOptions.series.dataLabels.style,h={fontFamily:e.fontFamily,fontSize:e.fontSize,lineHeight:e.lineHeight,fontWeight:e.fontWeight,fontStyle:e.fontStyle};b||(b=c.datalabels=d.group("datalabels").insertAfter(c.dataset));c=f+g;void 0===a.y||isNaN(a.y)||a.displayValue===J||(a.dataLabel=d.text(c,m/2,a.displayValue,b).attr({"text-anchor":qa[Ja],title:a.originalText||"",fill:e.color,
"text-bound":[e.backgroundColor,e.borderColor,e.borderThickness,e.borderPadding,e.borderRadius,e.borderDash]}).css(h))}},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,m=this.canvasWidth,g=this.canvasHeight,p=b.min,n=b.max,b=b&&b.trendPoint||[],k=d.colorRangeFillMix,l=d.colorRangeFillRatio,s=d.colorRangeBorderColor,u=d.colorRangeBorderAlpha,t=d.colorRangeBorderThickness,r=c.colorRangeGetter.getColorRangeArr(p,
n),K=d.showShadow,A,z,G,x,y,F,B=this.pointOrientation={top:1,bottom:3},C=c.colorManager,S,v,I;a.linear||(a.linear=z=e.group("colorrange",f),a.outerRect=e.rect(z));a.outerRect.attr({x:0,y:0,width:m,height:g,stroke:"none",r:0});G=function(a,b){return{x:a*m/(n-p),y:0,width:(b-a)*m/(n-p),height:g}};a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(A=r.length;c<A;c+=1)y=r[c],F=G(y.minvalue-p,y.maxvalue-p),y.x=F.x,y.y=F.y,y.width=F.width,y.height=F.height,x=y.code,x=M(sa(q(y.bordercolor,x),s),h(y.borderalpha,
u)),K&&Math.max(y.alpha,u),S=C.parseColorMix(y.code,k),v=C.parseAlphaList(y.alpha,S.length),y=h(y.borderAlpha,u),I=v.split(w),I=va.apply(Math,I),I=va(t&&y||0,I),a.colorRangeElems[c]||(a.colorRangeElems[c]=e.rect(z)),a.colorRangeElems[c].attr({x:F.x,y:F.y,width:F.width,height:F.height,r:0,"stroke-width":t,stroke:x,fill:T({FCcolor:{color:S.toString(),ratio:l,alpha:v,angle:270}})}).shadow({apply:K,opacity:I/100});for(;a.colorRangeElems[c];)a.colorRangeElems[c].remove(),a.colorRangeElems.splice(c,1);
a.trendObjElems||(a.trendObjElems=[]);c=0;for(A=b.length;c<A;c+=1)k=b[c],F=G(k.startValue-p,k.endValue-p),k.isZone?(a.trendObjElems[c]||(a.trendObjElems[c]=e.rect(z)),a.trendObjElems[c].attr({x:F.x,y:F.y,width:0<F.width?F.width:0,height:0<F.height?F.height:0,r:0,"stroke-width":0,fill:T({FCcolor:{color:k.color,alpha:k.alpha}})}).tooltip(k.tooltext)):a.trendObjElems[c]=e.path(["M",F.x,F.y,"L",F.x,F.y+F.height],z).attr({stroke:M(k.color,k.alpha),"stroke-width":k.thickness,"stroke-dasharray":k.dashStyle}).tooltip(k.tooltext),
k.useMarker&&(k.showOnTop?(s="bottom",l=0):(s="top",l=g),s=90*B[s],k.graphic=e.polypath(3,F.x,l,k.markerRadius,s,0,f).attr({fill:k.markerColor,stroke:k.markerBorderColor,"stroke-width":1}).shadow({apply:d.showShadow}).tooltip(k.tooltext));for(;a.trendObjElems[c];)a.trendObjElems[c].remove(),a.trendObjElems.splice(c,1)},drawWidgetValue:function(a,e){var c=a&&a.length||0,d=this.options.chart,b=this.pointOrientation,f={point:[],showPointerShadow:d.showPointerShadow},d=d.pointerOnOpp?"top":"bottom";for(this.dataById=
{};c--;)f.point[c]={startAngle:90*b[d]};this.drawPointerValues(null,e,f)},drawPointerValues:function(a,e,c){var d=this;a=d.layers.dataset;var b=d.options,f=d.elements,m=d.paper,g=b.scale,p=b.series&&b.series[0]&&b.series[0].data||[],n=d.canvasWidth,k=d.canvasHeight,k=b.chart.pointerOnOpp?k:0,l=b.chart.showPointerShadow,b=!1!==b.tooltip.enabled,s=(g.max-g.min)/n,u=g.min,t=g.max,r=p.length,q,A,z,G,x={pageX:0,pageY:0},y=function(a){A=d.fusionCharts.getDataJSON();this.dragStartX=a},F=function(){var a,
b=d.fusionCharts;(a=b&&b.jsVars)&&(a._rtLastUpdatedData=b.getDataJSON());Ha.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:A.values,source:"editMode",url:null},b);try{ea.FC_ChartUpdated&&ea.FC_ChartUpdated(b.id)}catch(c){setTimeout(function(){throw c;},1)}this.graphic.tooltip(this.toolText)},B=function(a,b,c,e,f){a=xb&&(xb&&f.sourceEvent&&f.sourceEvent.touches&&f.sourceEvent.touches[0]||f)||x;b=h(this.y,g.min);e=b-(this.dragStartX-
c)*s;var k=0,m=[];e<g.min?e=g.min:e>g.max&&(e=g.max);for(;k<this.index;k+=1)m.push("");m.push(e);b!==e&&d.realtimeUpdate({values:m},{duration:0})&&(this.updatedValStr=m.join("|"),this.dragStartX=c||f.pageX||a.pageX)},C,w,v,I,E,H;I=function(a){pa.call(this,d,a)};E=function(a){var b=this.data("rolloverProperties");b.enabled&&(this.attr(b.hoverAttr),b.hoverAnimAttr&&this.animate(b.hoverAnimAttr,100,"easeIn"));pa.call(this,d,a,"DataPlotRollOver")};for(H=function(a){var b=this.data("rolloverProperties");
b.enabled&&(this.attr(b.outAttr),b.outAnimAttr&&this.animate(b.outAnimAttr,100,"easeIn"));pa.call(this,d,a,"DataPlotRollOut")};r--;)q=p[r],w=q.rolloverProperties||{},G=c&&c.point[r]&&c.point[r].startAngle||q._startAngle,G+=.2,f.pointers||(f.pointers=[]),f.pointers[r]||(void 0!==q.id&&(d.dataById[q.id]={index:r,point:q}),z=l?{opacity:Math.max(q.bgalpha,q.borderalpha)/100}:!1,C=q.editMode?void 0:q.link,v={link:C,value:q.y,displayValue:q.displayValue,toolText:q.toolText},q.graphic=f.pointers[r]=m.polypath(q.sides,
0,k||0,q.radius,G,0,a).attr({fill:q.color,stroke:q.borderColor,ishot:!0,r:q.radius,"stroke-width":q.borderWidth}).shadow(!!z,z&&z.opacity).click(I).hover(E,H).data("eventArgs",v).data("rolloverProperties",w),C&&q.graphic.css({cursor:"pointer",_cursor:"hand"}),q._startAngle=G,q.editMode&&(q.index=r,q.graphic.css({cursor:"pointer",_cursor:"hand"}).attr({ishot:!0}),q.graphic.drag(B,y,F,q,q,q))),q.graphic=f.pointers[r],b&&q.graphic.tooltip(q.toolText),e&&e.duration?q.graphic.animate({polypath:[q.sides,
n*(h(q.y,u)-u)/(t-u),k||0,q.radius,G,0]},e.duration,"easeIn"):q.graphic.attr({polypath:[q.sides,n*(h(q.y,u)-u)/(t-u),k||0,q.radius,G,0]})},drawWidgetLabel:function(a,e){var c=this.options,d=c.scale,b=this.layers,f=this.paper,m=c.chart,g=this.logic,b=b.datalabels||(b.datalabels=f.group("datalabels").insertAfter(b.dataset)),p=d.min,n=d.max,k=g.colorRangeGetter.getColorRangeArr(p,n),g=g.numberFormatter,l=m.colorRangeStyle.style||{},s,u=this.canvasWidth,t=this.canvasHeight,d=d&&d.trendPoint||[],r=m.pointerOnOpp,
K=m.valueInsideGauge;s=m.showGaugeLabels;var A=c.plotOptions.series.dataLabels.style,z,G,x,y,F,B,C,w,v;w=!1;var c=this.smartLabel,I,E,H;H=h(parseInt(A.fontHeight,10),parseInt(A.lineHeight,10),12);var N=m.valuePadding+.5*H,m=m.valuePadding,D=N,A={fontFamily:A.fontFamily,fontSize:A.fontSize,lineHeight:A.lineHeight,fontWeight:A.fontWeight,fontStyle:A.fontStyle},N=K===r?N-H/4:N+H/4;c.setStyle(A);E=c.getOriSize("W...").width;y=this.getPointerLabelXY=function(a,b,c,d){return{x:(a-p)*u/(n-p),y:c?b?t-d-N:
t+N:b?N:-(N+d),align:"middle"}};F=function(a,b){return{x:(a-p+(b-a)/2)*u/(n-p),y:t/2,width:(b-a)*u/(n-p),height:t}};if(a&&a.length)for(A=a.length;A--;)if(x=a[A],0!==x.showvalue&&x.displayValue!==J&&(I=c.getOriSize(x.displayValue),x.setWidth&&(I=c.getSmartText(x.displayValue,x.setWidth,I.height,!0)),B=this.getPointerLabelXY(x.y,K,r,I.height/2),x.isLabelString)){w=!1;for(v=1;!w;){C=a[A+v];if(!C)break;C.isLabelString?w=!0:v+=1}C&&(w=c.getOriSize(C.displayValue),z=y(C.y,K,r,w.height/2),v=z.x-w.width/
2-(B.x+I.width/2),z=z.x-B.x,0>v&&(G=I.width+v,G>z&&(x.setWidth=G=z),G>E?(B=x.setWidth&&x.setWidth<=G?c.getSmartText(x.displayValue,x.setWidth,I.height,!0):c.getSmartText(x.displayValue,G,I.height,!0),x.displayValue=B.text,B.tooltext&&(x.originalText=B.tooltext)):(B=c.getSmartText(x.displayValue,E,I.height,!0),x.displayValue=B.text,B.tooltext&&(x.originalText=B.tooltext),v=2*v+E-4),x.setWidth=null,G=w.width+v-4,C.setWidth=G>z?z:G>E?G:E));x.setWidth&&(B=c.getSmartText(x.displayValue,x.setWidth,I.height,
!0),x.displayValue=B.text,B.tooltext&&(x.originalText=B.tooltext),x.setWidth=null)}this.drawPointerLabels(null,e);l=l||{};c.setStyle(l);if(k&&s)for(A=0,r=k.length;A<r;A+=1)s=k[A],K=q(s.label,s.name),X(K)&&K!==J&&(B=F(s.minvalue,s.maxvalue),I=B.width-4>E&&B.height-4>H?c.getSmartText(K,B.width-4,B.height-4):c.getSmartText(K,B.width,B.height),f.text(b).attr({"text-anchor":ya,title:I.tooltext||"","vertical-align":ya,text:I.text,x:B.x,y:B.y,fill:l.color}).css(l));if(d)for(A=0,r=d.length;A<r;A+=1){k=d[A];
k.displayValue=q(k.displayValue,g.dataLabels(k.startValue));c.setStyle(k.style);H=c.getOriSize("Wg").height;I=c.getOriSize(k.displayValue);B=y(k.startValue,0,!k.showOnTop);k.setWidth&&(I=c.getSmartText(k.displayValue,k.setWidth,I.height,!0));w=!1;for(v=1;!w;){C=d[A+v];if(!C)break;C.showOnTop===k.showOnTop?w=!0:v+=1}C&&(w=c.getOriSize(C.displayValue),z=y(C.startValue,0,!C.showOnTop),v=z.x-w.width/2-(B.x+I.width/2),0>v&&(z=z.x-B.x,G=I.width+v,G>z&&(k.setWidth=G=z),G>E?(I=k.setWidth&&k.setWidth<=G?c.getSmartText(k.displayValue,
k.setWidth,I.height,!0):c.getSmartText(k.displayValue,I.width+v-4,I.height,!0),k.displayValue=I.text,I.tooltext&&(k.originalText=I.tooltext)):(I=c.getSmartText(k.displayValue,E,I.height,!0),k.displayValue=I.text,I.tooltext&&(k.originalText=I.tooltext),v=2*v+E-4),k.setWidth=null,G=w.width+v-4,C.setWidth=G>z?z:G>E?G:E));k.setWidth&&(I=c.getSmartText(k.displayValue,k.setWidth,I.height,!0),k.displayValue=I.text,I.tooltext&&(k.originalText=I.tooltext),k.setWidth=null);H=k.showOnTop?-(m+I.height/2):t+D;
l=k.isZone?F(k.startValue,k.endValue).x:B.x;k.dataLabel=f.text(0,H,k.displayValue,b).attr({"text-anchor":qa[B.align],title:k.originalText||""}).css(k.style);k.dataLabel.attr({x:l})}},drawPointerLabels:function(a,e){for(var c=this.layers.datalabels,d=this.paper,b=this.options,f=b.chart,m=f.pointerOnOpp,f=f.valueInsideGauge,g=this.smartLabel,h=b.series&&b.series[0]&&b.series[0].data||[],b=b.plotOptions.series.dataLabels.style,n=h.length,k={fontFamily:b.fontFamily,fontSize:b.fontSize,lineHeight:b.lineHeight,
fontWeight:b.fontWeight,fontStyle:b.fontStyle},l,s,u;n--;)s=h[n],l=s.displayValue,0!==s.showvalue&&l!==J&&(u=g.getOriSize(l),u=this.getPointerLabelXY(s.y,f,m,u.height/2),s.dataLabel?s.dataLabel.attr({text:l,title:s.originalText||""}):s.dataLabel=d.text(c).attr({"text-anchor":qa[u.align],title:s.originalText||"",text:l,x:0,y:u.y,fill:b.color,"text-bound":[b.backgroundColor,b.borderColor,b.borderThickness,b.borderPadding,b.borderRadius,b.borderDash]}).css(k),e&&e.duration?s.dataLabel.animate({x:u.x},
e.duration,"easeIn"):s.dataLabel.attr({x:u.x}))},realtimeUpdate:function(a,e){if(a===this.lastUpdatedObj)return!1;var c=this.options,d=c[O],b=c.series,f=this.numberFormatter,b=b&&b[0]&&b[0].data,m=a.values||[],g=a.labels||[],h=a.toolTexts||[],n=a.showLabels||[],k=b&&b.length||0,l,s,u=null,t=[],r;e=e||c.plotOptions.series.animation;if(k){for(;k--;)c={},r={},l=b[k],void 0!==m[k]&&""!==m[k]?(c.value=r.value=m[k],u=r.displayvalue=r.tooltext=f.dataLabels(r.value),r.hasNewData=!0):r.value=l.y,g[k]&&(r.displayvalue=
g[k],r.hasNewData=!0),"0"==n[k]&&(r.displayvalue=J,r.hasNewData=!0),s=D(W(q(l._tooltext,d.tooltext))),h[k]&&(s=D(W(h[k])),r.hasNewData=!0),r.hasNewData&&(t[k]=r,R(l,{y:r.value,displayValue:l.displayValue||"1"==n[k]?r.displayvalue:J,toolText:void 0!==s?ab(s,[1,2],{formattedValue:u},c):u}));t.length&&(this.lastUpdatedObj=a,this.drawPointerValues(b,e),this.drawPointerLabels(b,e));return Boolean(t.length)}}},v["renderer.widgetbase"]);v("renderer.angular",{drawWidget:function(){var a=this.options,e=a.chart,
c=a.scale,d=a.series[0],a=this.paper,b=this.elements,f=this.layers.dataset,m=d.gaugeOuterRadius,g=d.gaugeInnerRadius,p=d.gaugeFillRatio,n=e.gaugeBorderColor,k=e.gaugeBorderThickness,l=e.gaugeBorderAlpha,s=d.gaugeFillMix,u=d.gaugeOriginX,t=d.gaugeOriginY,r=e.gaugeStartAngle,K=e.gaugeEndAngle,A=e.showShadow,e=c.min,z=c.max,G=this.logic,x=G.colorRangeGetter.getColorRangeArr(e,z),y=0,F=x.length,B=z-e,K=K-r,C,v,E=r,I=Math.cos(r),D=Math.sin(r),H=u+m*I;v=t+m*D;var I=u+g*I,D=t+g*D,N,c=c.trendPoint,O;b.trendPointGroup||
(b.trendPointGroup=a.group("trendpoint",f));for(;y<F;y+=1)C=x[y],v=r+(Math.min(C.maxvalue,z)-e)/B*K,I=G.parseColorMix(C.code,s),D=G.parseAlphaList(C.alpha,I.length),H=G.parseRatioList(g/m*100+p,I.length),O=C.bordercolor,N=h(C.borderAlpha,l),O=O&&-1==O.indexOf("{")?M(O,N):G.parseColorMix(C.code,q(O,n))[0],O=M(O,N),C=D.split(w),C=va.apply(Math,C),C=A?va(k&&N||0,C):0,N=v,E>v&&(E+=v,v=E-v,E-=v),a.ringpath(u,t,m,g,E,v,f).attr({fill:T({FCcolor:{cx:u,cy:t,r:m,gradientUnits:"userSpaceOnUse",color:I.join(),
alpha:D,ratio:H,radialGradient:!0}}),"stroke-width":k,stroke:O}).shadow({apply:A,opacity:C/100}),E=N;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(u,t));b.pivot||(b.pivot=a.circle(f));b.pivot.attr({cx:u,cy:t,r:d.pivotRadius,fill:T({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:A});f=Math.cos(89.99*eb);p=-f;y=0;for(F=c.length;y<F;y+=1)d=c[y],A=d.isZone,s=r+(d.startValue-e)/B*K,n=h(d.radius,m),k=h(d.innerRadius,A?Math.max(g-15,0):g),l=h(d.trendValueDistance,0),I=Math.cos(s),D=Math.sin(s),H=u+n*I,v=t+n*D,I=u+k*I,D=t+k*D,A?(D=r+(d.endValue-e)/B*K,s>D&&(s+=D,D=s-
D,s-=D),d.graphic=a.ringpath(u,t,n,k,s,D,b.trendPointGroup).attr({fill:M(d.color,d.alpha),"stroke-width":d.showBorder?d.thickness:0,stroke:d.borderColor,"stroke-dasharray":d.dashStyle})):d.graphic=a.path(["M",H,v,"L",I,D],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",H,v,d.markerRadius,(-s+Math.PI)/eb,0,b.trendMarkerGroup).attr({fill:d.markerColor,"stroke-width":1,
stroke:d.markerBorderColor}),""!==d.markerToolText&&d.markerElement.tooltip(d.markerToolText)),d.displayValue!==J&&(v=(d.endValue+d.startValue)/2,D=r+(v-e)/B*K,I=Math.cos(D),D=Math.sin(D),d.valueInside?(v=k-2-l,n=I>f?bb:I<p?Ja:Ma):(v=n+2+l,n=I>f?Ja:I<p?bb:Ma),H=u+v*I,v=t+v*D,k=d.style,d.textElement=a.text(b.trendMarkerGroup).attr({x:H,y:v,text:d.displayValue,title:d.originalText||"","text-anchor":qa[d.align||n],"vertical-align":Wa}).css(k),H=d.textElement.getBBox(),H=H.height,v=I>f||I<p?v+(-(H/2)+
.4*H*D*(d.valueInside?-1:1)):d.valueInside?v+-(0>D?0:H):v+-(0<D?0:H),d.textElement.attr({y:v}))},drawWidgetValue:function(a,e){var c=this,d=c.options,b=d.chart,f=d.scale,m=d.series[0],g=c.paper,p=c.elements,n=Number(m.gaugeOriginX),k=Number(m.gaugeOriginY),l=b.gaugeStartAngle,s=b.gaugeEndAngle,b=b.showShadow,d=!1!==d.tooltip.enabled,u=f.min,q=f.max,r=p.pointGroup,v=q-u,A=s-l,z=v/A,G=0,x,y,F,B,C,w,E,I=a&&a.length,D,H=Wb(l,s),J=Ub(c.container),M=function(a,b){var d;d=[n,k];d=Gb(d[1]-b+J.top,d[0]-a+
J.left);c.rotationStartAngle=d;D=c.fusionCharts.getDataJSON()},O=function(){var a=c.fusionCharts,b;(b=a&&a.jsVars)&&(b._rtLastUpdatedData=a.getDataJSON());Ha.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:D.values,source:"editMode",url:null},a);try{ea.FC_ChartUpdated&&ea.FC_ChartUpdated(a.id)}catch(d){setTimeout(function(){throw d;},1)}},L=function(a,b,d,e){a=[n,k];d=Gb(a[1]-e+J.top,a[0]-d+J.left);e=c.rotationStartAngle;var g;
e=0>d&&0<e?vb(d)-c.rotationStartAngle:0<d&&0>e?vb(c.rotationStartAngle)-d:c.rotationStartAngle-d;e=this.y-e*z;a=[];b=0;g=this.index;e<f.min?e=f.min:e>f.max&&(e=f.max);for(;b<g;b+=1)a.push("");a.push(e);e!==this.value&&c.realtimeUpdate({values:a},{duration:0})&&(this.updatedValStr=a.join("|"),c.rotationStartAngle=d)},T,Q,R,P,W,Z,U,V,Y,$;void 0===c.dataById&&(c.dataById={});p.pointers||(p.pointers=[]);V=function(a){pa.call(this,c,a)};Y=function(a){var b=this.data("rolloverProperties");pa.call(this,
c,a,"DataPlotRollOver");b.enabled&&(a=this.attr("transform"),this.attr("transform",""),this.attr(b.hoverAttr),this.attr("transform",a))};for($=function(a){var b=this.data("rolloverProperties");pa.call(this,c,a,"DataPlotRollOut");b.enabled&&(a=this.attr("transform"),this.attr("transform",""),this.attr(b.outAttr),this.attr("transform",a))};G<I;G+=1)s=a[G],Q=s.rolloverProperties||{},X(s.y)||(s.y=u,X(s.toolText)||(s.toolText=u)," "===s.displayValue&&(s.displayValue=u)),void 0!==s.id&&(c.dataById[s.id]=
{index:G,point:s}),s.index=G,x=h(s.radius,(Number(m.gaugeOuterRadius)+Number(m.gaugeInnerRadius))/2),y=s.baseWidth,w=y/2,F=s.topWidth,E=F/2,C=s.rearExtension,B=s.baseRadius,s.tooltipPos=[n,k],p.pointers[G]?B=p.pointers[G]:(T=s.editMode?void 0:s.link,R=["M",x,-E,"L",x,E,-C,w,-C,-w,"Z"],Q.hasHoverSizeChange&&(Q.outAttr.path=R,P=h(Q.hoverRadius,x),W=Q.baseHoverWidth,W/=2,Z=Q.topHoverWidth,Z/=2,U=Q.rearHoverExtension,Q.hoverAttr.path=["M",P,-Z,"L",P,Z,-U,W,-U,-W,"Z"]),T={link:T,value:s.y,displayValue:s.displayValue,
toolText:s.toolText},p.pointers[G]=F?g.path(R,r):g.trianglepath(x,E,-C,w,-C,-w,0,B,B,r),s.graphic=B=p.pointers[G],s.graphic.attr({fill:s.color,stroke:s.borderColor,ishot:!0,"stroke-width":s.borderThickness}).click(V).hover(Y,$).data("eventArgs",T).data("rolloverProperties",Q),(y||F||s.borderThickness)&&s.graphic.shadow({apply:b}),B._attr=B.attr,B.attr=H,B._Attr={tooltipPos:s.tooltipPos,cx:n,cy:k,toolTipRadius:x-C,color:s.color},x=l/eb,B.attr({angle:x}),s.editMode&&(s.index=G,s.graphic.css({cursor:"pointer",
_cursor:"hand"}).attr({ishot:!0}),s.graphic.drag(L,M,O,s,s,s))),s.y>=u&&s.y<=q&&(x=(s.y-u)/v*A,x=(l+x)/eb,B.attr({angle:x},null,e),d&&B.tooltip(s.toolText))},drawWidgetLabel:function(a){var e=this.paper,c=this.layers,d=c.datalabels,b=this.options,f=b.series[0],m=b.plotOptions.series.dataLabels.style,b=f.pivotRadius,g=h(parseInt(m.lineHeight,10),12),p=f.valueBelowPivot,n=f.gaugeOriginX,k={fontFamily:m.fontFamily,fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle},
l,s,u,q=f.gaugeOriginY+(p?g/2+b+2:-(g/2)-b-2);d||(d=c.datalabels=e.group("datalabels").insertAfter(c.dataset));Cb(a,function(a,b){l=a.displayValue;u=a.valueY;s=h(a.valueX,n);X(u)||(u=p?q+g*b:q-g*b);X(l)&&l!==J&&(a.dataLabel?a.dataLabel.attr({text:l,title:a.originalText||""}):a.dataLabel=e.text(d).attr({x:s,y:u,text:l,"text-anchor":qa[Ma],title:a.originalText||"",fill:m.color,"text-bound":[m.backgroundColor,m.borderColor,m.borderThickness,m.borderPadding,m.borderRadius,m.borderDash]}).css(k))})},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),m=Number(f.gaugeOriginY),g=e.gaugeStartAngle,p=c.min,n=Number(f.gaugeInnerRadius),k=Number(f.gaugeOuterRadius),f=c.max-p,e=e.gaugeEndAngle-g,l=0,s=c.majorTM,u=c.minorTM,q=b.tickMarkGroup,r,v,A,z,G,x,y=Math.cos,F=Math.sin,B=Number(c.minorTMHeight),C=Number(c.majorTMHeight),w=c.placeTicksInside,l=c.placeValuesInside;G=c.tickValueDistance;var E,I,D=c.limitValues.style,H=c.tickValues.style,J=.75*h(parseInt(D.lineHeight,
10),12),O=.75*h(parseInt(H.lineHeight,10),12);w?(w=n,B=w+B,C=w+C):(w=k,B=w-B,C=w-C);E=l?n-G:k+G;b.majorTM||(b.majorTM=[]);b.tmLabel||(b.tmLabel=[]);l=0;for(n=s.length;l<n;l+=1)k=s[l],r=k.value,G=k.displayValue,x=(r-p)*e/f+g,I=y(x),x=F(x),r=a+w*I,v=m+w*x,A=a+C*I,z=m+C*x,b.majorTM[l]=d.path(["M",r,v,"L",A,z],q).attr({stroke:M(c.majorTMColor,c.majorTMAlpha),"stroke-width":c.majorTMThickness,"stroke-linecap":"round"}),""!==G&&(0===l||l===n-1?(A=D,v=m+E*x+(k.y||0)-J):(A=H,v=m+E*x+(k.y||0)-O),r=a+E*I+(k.x||
0),b.tmLabel[l]=d.text(r,v,G,q).attr({"text-anchor":qa[k.align||Ma],title:k.originalText||"","vertical-align":Wa}).css(A));b.minorTM||(b.minorTM=[]);l=0;for(n=u.length;l<n;l+=1)r=u[l],x=(r-p)*e/f+g,r=a+w*y(x),v=m+w*F(x),A=a+B*y(x),z=m+B*F(x),b.minorTM[l]=d.path(["M",r,v,"L",A,z],q).attr({stroke:M(c.minorTMColor,c.minorTMAlpha),"stroke-width":c.minorTMThickness,"stroke-linecap":"round"})},realtimeUpdate:function(a,e){if(a===this.lastUpdatedObj)return!1;var c=this.options,d=c[O],b=c.series,f=this.numberFormatter,
b=b&&b[0]&&b[0].data,m=a.values||[],g=a.labels||[],h=a.toolTexts||[],n=a.showLabels||[],k=b&&b.length||0,l,s,u=null,t=[],r,v;e=e||c.plotOptions.series.animation;if(k){for(;k--;)r={},c={},v=!1,l=b[k],s=l.id&&(l.id.toLowerCase&&l.id.toLowerCase()||l.id),void 0!==m[k]&&""!==m[k]&&(v=!0)||s&&a[s]?(c.value=r.value=v?m[k]:a[s],u=r.displayvalue=r.tooltext=f.dataLabels(r.value),r.hasNewData=!0):r.value=l.y,g[k]&&(r.displayvalue=g[k],r.hasNewData=!0),"0"==n[k]&&(r.displayvalue=J,r.hasNewData=!0),s=D(W(q(l._tooltext,
d.tooltext))),h[k]&&(s=D(W(h[k])),r.hasNewData=!0),r.hasNewData&&(t[k]=r,R(l,{y:r.value,displayValue:l.displayValue||"1"===n[k]?r.displayvalue:J,toolText:void 0!==s?ab(s,[1,2],{formattedValue:u},c):u}));t.length&&(this.lastUpdatedObj=a,this.drawWidgetValue(b,e),this.drawWidgetLabel(b,e));return Boolean(t.length)}}},v["renderer.widgetbase"]);v("renderer.funnel",{type:"funnel",pyramidFunnelShape:function(){var a={y:!0,R1:!0,R2:!0,h:!0,r3dFactor:!0,color:!0,opacity:!0,fill:!0,stroke:!0,strokeColor:!0,
strokeAlpha:!0,"stroke-width":!0},e=function(a,c,d,e,h,n,k,l,s,q){lb(a)&&(c=a.y,d=a.R1,e=a.R2,h=a.h,n=a.r3dFactor,k=a.is2D,q=a.isHollow,s=a.isFunnel,a=a.x);l=a-d;var t=a+d,r=a-e,v=a+e,A=c+h,z,w;if(k)z={silhuette:["M",l,c,"L",t,c,v,A,r,A,"Z"]},s||(z.lighterHalf=["M",l,c,"L",a,c,a,A,r,A,"Z"],z.darkerHalf=["M",a,c,"L",t,c,v,A,a,A,"Z"]);else if(s){r=a;v=c;c=d||.01;t=e||.01;a=q;l=c*n;n*=t;h=v+h;A=ja(t,2)-ja(c,2);d=-2*(ja(t,2)*v-ja(c,2)*h);e=ja(c*n,2)+ja(t*v,2)-ja(t*l,2)-ja(c*h,2);q=kb(ja(d,2)-4*A*e);e=
(-d+q)/(2*A);A=(-d-q)/(2*A);e<h&&e>v?w=A:A<h&&A>v&&(w=e);e=kb((ja(w-v,2)-ja(l,2))/ja(c,2));d=-e;A={x:ka(ja(c,2)*e/(w-v)*100)/100,y:ka(100*(ja(l,2)/(w-v)+v))/100};e={x:ka(ja(t,2)*e/(w-h)*100)/100,y:ka(100*(ja(n,2)/(w-h)+h))/100};q={x:ka(ja(c,2)*d/(w-v)*100)/100,y:ka(100*(ja(l,2)/(w-v)+v))/100};w={x:ka(ja(t,2)*d/(w-h)*100)/100,y:ka(100*(ja(n,2)/(w-h)+h))/100};A={topLeft:q,bottomLeft:w,topRight:A,bottomRight:e};for(z in A)if(isNaN(A[z].x)||isNaN(A[z].y))A[z].x="topLeft"===z||"bottomLeft"===z?-c:c,A[z].y=
"bottomRight"===z||"bottomLeft"===z?h:v;h=A.topLeft;d=A.bottomLeft;z=r+h.x;w=r+A.topRight.x;v=r+d.x;r+=A.bottomRight.x;h=h.y;d=d.y;A=["A",c,l,0,0,0,w,h];e=["A",c,l,0,1,1,w,h];q=["A",t,n,0,0,1,v,d];t=["A",t,n,0,1,0,v,d];t={front:["M",z,h].concat(A,["L",r,d],q,["Z"]),back:["M",z,h].concat(e,["L",r,d],t,["Z"]),silhuette:["M",z,h].concat(e,["L",r,d],q,["Z"])};a||(t.top=["M",z,h].concat(A,["L",w,h],["A",c,l,0,1,0,z,h],["Z"]));z=t}else z=d*n,w=e*n,h=Ka(5,d),d=Ka(2,2*z),e=Ka(2,d),n=e/n,z={top:["M",l,c,"L",
a,c+z,t,c,a,c-z,"Z"],front:["M",l,c,"L",a,c+z,t,c,v,A,a,A+w,r,A,"Z"],topLight:["M",l,c+.5,"L",a,c+z+.5,a,c+z-d,l+n,c,"Z"],topLight1:["M",t,c+.5,"L",a,c+z+.5,a,c+z-e,t-n,c,"Z"],silhuette:["M",l,c,"L",a,c-z,t,c,v,A,a,A+w,r,A,"Z"],centerLight:["M",a,c+z,"L",a,A+w,a-5,A+w,a-h,c+z,"Z"],centerLight1:["M",a,c+z,"L",a,A+w,a+5,A+w,a+h,c+z,"Z"]};return z},c=function(b,c){var d,g,p=this,n,k,l=!1,s=!1,q=this._3dAttr,t;Fa(b)&&X(c)&&(d=b,b={},b[d]=c);if(Fa(b))p=a[b]?this._3dAttr[b]:this._attr(b);else{for(d in b)g=
b[d],a[d]?(q[d]=g,"fill"===d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),rb.test(g)?(k=new nb(g),n=k.get("hex"),k=100*k.get("a")):g&&g.FCcolor?(n=g.FCcolor.color.split(w)[0],k=g.FCcolor.opacity.split(w)[0]):ob.test(g)&&(n=g.replace(fb,hb),k=h(q.opacity,100)),q.color=n,q.opacity=k,s=!0):"color"===d||"opacity"===d?(q.fill=T(M(q.color,h(q.opacity,100))),s=!0):"stroke"===d||"strokeColor"===d||"strokeAlpha"===d?q.is2D&&("stroke"===d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),
rb.test(g)?(k=new nb(g),n=k.get("hex"),k=100*k.get("a")):g&&g.FCcolor?(n=g.FCcolor.color.split(w)[0],k=g.FCcolor.opacity.split(w)[0]):ob.test(g)&&(n=g.replace(fb,hb),k=h(q.opacity,100)),q.strokeColor=n,q.strokeAlpha=k):q.stroke=M(q.strokeColor,h(q.strokeAlpha,100)),q.isFunnel?this.funnel2D.attr("stroke",q.stroke):this.borderElement.attr("stroke",q.stroke)):"stroke-width"===d?q.is2D&&(q.isFunnel?this.funnel2D.attr(d,g):this.borderElement.attr(d,g)):l=!0):this._attr(d,g);q.is2D?(l&&(n=e(q.x,q.y,q.R1,
q.R2,q.h,q.r3dFactor,q.is2D),p.shadowElement.attr({path:n.silhuette}),q.isFunnel?p.funnel2D.attr({path:n.silhuette}):(p.lighterHalf.attr({path:n.lighterHalf}),p.darkerHalf.attr({path:n.darkerHalf}),p.borderElement.attr({path:n.silhuette}))),s&&(q.isFunnel?p.funnel2D.attr("fill",T(M(q.color,h(q.opacity,100)))):(n=V(q.color,80),k=U(q.color,80),p.lighterHalf.attr("fill",T(M(k,h(q.opacity,100)))),p.darkerHalf.attr("fill",T(M(n,h(q.opacity,100))))))):(l&&(n=e(q.x,q.y,q.R1,q.R2,q.h,q.r3dFactor,q.is2D),
p.shadowElement.attr("path",n.silhuette),q.isFunnel?(p.front.attr("path",n.front),p.back.attr("path",n.back),p.toptop&&n.top&&p.toptop.attr("path",n.top)):(p.front.attr("path",n.front),p.toptop.attr("path",n.top),p.topLight.attr("path",n.topLight),p.topLight1.attr("path",n.topLight1),p.centerLight.attr("path",n.centerLight),p.centerLight1.attr("path",n.centerLight1))),s&&(n=q.color,k=q.opacity,q.isFunnel?(s=U(n,60),l=V(n,60),p.back.attr("fill",T({FCcolor:{color:l+w+s+w+n,alpha:k+w+k+w+k,ratio:"0,60,40",
angle:0}})),p.front.attr("fill",T({FCcolor:{color:n+w+s+w+l,alpha:k+w+k+w+k,ratio:"0,40,60",angle:0}})),p.toptop&&p.toptop.attr("fill",T({FCcolor:{color:s+w+l,alpha:k+w+k,ratio:"0,100",angle:-65}}))):(s=U(n,80),d=U(n,70),l=V(n,80),g="0,"+k,t=n+w+d,q=5/(q.R1*q.r3dFactor)*100,p.centerLight.attr("fill",T({FCcolor:{color:t,alpha:g,ratio:"0,100",angle:0}})),p.centerLight1.attr("fill",T({FCcolor:{color:t,alpha:g,ratio:"0,100",angle:180}})),p.topLight.attr("fill",T({FCcolor:{color:d+w+d+w+n+w+n,alpha:k+
w+k+w+0+w+0,ratio:"0,50,"+q+w+(50-q),angle:-45}})),p.topLight1.attr("fill",T({FCcolor:{color:d+w+n+w+l,alpha:k+w+k+w+k,ratio:"0,50,50",angle:0}})),p.front.attr("fill",T({FCcolor:{color:n+w+n+w+l+w+l,alpha:k+w+k+w+k+w+k,ratio:"0,50,0,50",angle:0}})),p.toptop.attr("fill",T({FCcolor:{color:s+w+n+w+l+w+l,alpha:k+w+k+w+k+w+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,m,g,p,n,k,l,q,u,t){var r=this.layers.dataset;
lb(a)&&(f=a.y,m=a.R1,g=a.R2,p=a.h,n=a.r3dFactor,k=a.gStr,l=a.is2D,q=a.renderer,t=a.isHollow,u=a.isFunnel,a=a.x);n=h(n,.15);a={x:a,y:f,R1:m,R2:g,h:p,r3dFactor:n,is2D:l,isHollow:t,isFunnel:u,renderer:q};f=e(a);k=q.group(k,r);k.Shapeargs=f;k.shadowElement=q.path(f.silhuette,k).attr({fill:ha,stroke:"none"});k._attr=k.attr;k.attr=c;k.shadow=d;k._3dAttr=a;u?l?k.funnel2D=q.path(f.silhuette,k):(k.back=q.path(f.back,k).attr({"stroke-width":0,stroke:"none"}),k.front=q.path(f.front,k).attr({"stroke-width":0,
stroke:"none"}),f.top&&(k.toptop=q.path(f.top,k).attr({"stroke-width":0,stroke:"none"}))):l?(k.lighterHalf=q.path(f.lighterHalf,k).attr({"stroke-width":0}),k.darkerHalf=q.path(f.darkerHalf,k).attr({"stroke-width":0}),k.borderElement=q.path(f.silhuette,k).attr({fill:ha,stroke:"none"})):(k.front=q.path(f.front,k).attr({"stroke-width":0}),k.centerLight=q.path(f.centerLight,k).attr({"stroke-width":0}),k.centerLight1=q.path(f.centerLight1,k).attr({"stroke-width":0}),k.toptop=q.path(f.top,k).attr({"stroke-width":0}),
k.topLight=q.path(f.topLight,k).attr({"stroke-width":0}),k.topLight1=q.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 toolText".split(" "),b;if(d[a])a=d[a];else{a=d[a]={};for(d=0;d<e.length;d++)a[b=e[d]]=c[b];a.value=a.y;a.label=a.name;delete a.y;delete a.name}return a},translate:function(){var a=this.datasets[0],e=a.data,c=this.canvasWidth/
2,d=this.canvasHeight,b=e.length-1,f=e[0],m=f&&e[b].y,g=f&&e[0].y,p,n,k,l,q=this.canvasTop,u=a.yScale,t=a.isHollow,r=a.is2d,v=0,A=this.paper,w={},G=a.streamlinedData,x=a.labelDistance,y=.8/d,F,B=0,C=c+this.canvasLeft,E=a.showLabelsAtCenter,D=.3*h(parseInt(this.options.plotOptions.series.dataLabels.style.fontSize,10),10);p=G?d/(g-m):g?d/g:d;n=c;Cb(e,function(d,f){(d.x=f)?(d.isSliced&&(F=d.x,1<F&&!w[F]&&(w[F]=!0,B+=1),F<b&&(w[F+1]=!0,B+=1)),G?(k=1==a.useSameSlantAngle?g?c*d.y/g:c:g?c*kb(d.y/g):c,l=
p*(e[f-1].y-d.y)||1):(v+=l=p*e[f].y,k=c*(1-v*y)),d.shapeArgs={x:C,y:q,R1:n,R2:k,h:l||1,r3dFactor:u,isHollow:t,gStr:"point",is2D:r,renderer:A,isFunnel:!0},E?(d.labelAline="middle",d.labelX=C,d.labelY=(r?q:q+u*n)+l/2+D):(d.labelAline="start",d.labelX=C+x+k+3,d.labelY=q+D+l),q+=l,n=k):(k=1==a.useSameSlantAngle?g?c*e[0].y/g:c:g?c*kb(e[0].y/g):c,d.labelWidht>2*k?(d.labelAline="start",d.labelX=0):(d.labelAline="middle",d.labelX=C),d.labelY=(r?q:q-u*n)-D-3);d.plotX=C;d.plotY=q});a._temp={slicingGapPosition:w,
noOfGap:B}},drawPlotFunnel:function(a,e){this.translate();var c=this,d=a.items,b=a.data,f=c.options,h=f.plotOptions,g=c.elements.plots[0],p=h.series.dataLabels,n=c.paper,k=f.tooltip||{},k=k&&!1!==k.enabled,l,h=h.series.animation.duration||0,q=c.layers,u=q.tracker,q=q.datalabels||(q.datalabels=n.group("datalabels").insertAfter(q.dataset)),t=g.showLabelsAtCenter,r=e._temp||{},v=r.slicingGapPosition,r=r.noOfGap,A=e.SlicingDistance,w,G=A/2,x=0,f=f.chart.issliced,y=p.style,y={fontFamily:y.fontFamily,fontSize:y.fontSize,
lineHeight:y.lineHeight,fontWeight:y.fontWeight,fontStyle:y.fontStyle},F=function(a,b){return function(d){a.graphic.attr(b);pa.call(this,c,d,"DataPlotRollOver")}},B=function(a,b){return function(d){a.graphic.attr(b);pa.call(this,c,d,"DataPlotRollOut")}},C,E,D,I,J,H,N,M;if(!(D=c.datasets[0].streamlinedData&&2>b.length)){r&&(w=Ka(1.5*G,A/r),x=G);A=function(a){return function(){c.legendClick(a,!0,!1)}};G=function(a){return function(){return c.getEventArgs(a)}};M=function(a){return function(){a.attr({visibility:"visible"})}};
b&&b.length||(b=[]);g.singletonCase=D&&2==b.length||1==b.length;e.data||(e.data=[]);for(N=b.length;N--;)I=b[N],C=I.y,E=I.displayValue,l=I.toolText,H=!!I.link,J=f?0:I.isSliced,null!==C&&void 0!==C&&I.shapeArgs?((D=d[N])||(e.data[N].plot=D=d[N]={value:C,displayValue:E,sliced:!!J,chart:c,plotItems:d,seriesData:g,cursor:H?"pointer":"",x:I.x,index:N,graphic:c.pyramidFunnelShape(I.shapeArgs).attr({fill:I.color,opacity:0,"stroke-width":I.borderWidth,stroke:I.borderColor}),dataLabel:n.text(q).attr({text:E,
title:I.originalText||"",ishot:!0,cursor:H?"pointer":"",x:0,y:0}).css(y),trackerObj:n.path(u)},e.data[N].legendClick=A(D),e.data[N].getEventArgs=G(D),C=E={},I.hoverEffects&&(C={color:I.color,opacity:I.alpha,"stroke-width":I.borderWidth,stroke:I.borderColor},E=I.rolloverProperties,E={color:E.color,opacity:E.alpha,"stroke-width":E.borderWidth,stroke:E.borderColor}),!I.doNotSlice&&D.trackerObj.click(c.slice,D),D.trackerObj.mouseup(c.plotMouseUp,D),D.trackerObj.hover(F(D,E),B(D,C)),D.dataLabel.hover(F(D,
E),B(D,C)),k&&D.trackerObj.tooltip(l),!I.doNotSlice&&D.dataLabel.click(c.slice,D),D.dataLabel.mouseup(c.plotMouseUp,D),t&&0===N&&"funnel"==c.type&&g.streamlinedData||(D.connector=n.path(q).attr({"stroke-width":p.connectorWidth,stroke:p.connectorColor,ishot:!0,cursor:H?"pointer":""}).click(c.slice,D).mouseup(c.plotMouseUp,D).hover(F(D,E),B(D,C))),D.dy=0,r&&(x&&(D._startTranslateY=l="t0,"+x,D.dy=D.DistanceAvailed=x,D.graphic.attr({transform:l}),D.dataLabel.attr({transform:l}),D.connector.attr({transform:l})),
v[I.x]&&(x-=w))),h?(q.attr({visibility:"hidden"}),D.graphic.animate({opacity:I.alpha},h,"easeIn",N===b.length-1&&M(q))):D.graphic.attr({opacity:I.alpha})):e.data[N].plot=d[N]={dataLabel:n.text(q).attr({text:E,title:I.originalText||"",x:0,y:0}).css(y)};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,n,k,l,q,u,t;q={hcJSON:{chart:{issliced:!1},series:[]}};q.hcJSON.series[0]={data:n=[]};d=this.sliced=
X(d)?d:!this.sliced;u=-a;t=function(a,c){return function(){Ha.raiseEvent("SlicingEnd",{slicedState:a,data:b.getPlotData(c)},b.logic.chartInstance)}};for(e=0;e<h;e+=1)p=f[e],p!==this?(p.sliced=!1,n[e]={isSliced:!1},k=!1):(n[e]={isSliced:d},k=!0,l=e),p.graphic&&(g=p.dy,g=-g,d&&(p.x<this.x?(g+=u,c+=1):p.x==this.x?c?e==h-1&&(g+=.5*a):g+=.5*-a:g+=a),p.graphic.attr({transform:"t0,"+p.dy}),p.dy+=g,g={transform:"...t0,"+g},k&&Ha.raiseEvent("SlicingStart",{slicedState:!d,data:b.getPlotData(l)},b.logic.chartInstance),
p.graphic.animate(g,300,"easeIn",k&&t(d,l)),p.dataLabel&&p.dataLabel.animate(g,300,"easeIn"),p.connector&&p.connector.animate(g,300,"easeIn"),p.trackerObj&&p.trackerObj.animate(g,300,"easeIn"),1==e&&!f[0].graphic&&f[0].dataLabel&&f[0].dataLabel.animate(g,300,"easeIn"));R(b.logic.chartInstance.jsVars._reflowData,q,!0)},drawDataLabels:function(){var a=this.datasets[0],e=a.data,c=this.options.plotOptions.series.dataLabels,d=this.elements.plots[0].items,b,f,m,g,p=a.showLabelsAtCenter,n=Number(c.style.lineHeight.split(/px/)[0]),
k=h(parseInt(c.style.fontSize,10),10),l=.3*k,q=.3*n,u,t,r,v,w,z=a.labelDistance,G,x;for(w=e.length-1;0<=w;w-=1)g=e[w],x=g.displayValue,c=d[w],f=g.labelY,b=g.labelX,m=g.labelAline,G=g.style,k=h(parseInt(G.fontSize,10),10),l=.3*k,k={fontFamily:G.fontFamily,fontSize:G.fontSize,lineHeight:G.lineHeight,fontWeight:G.fontWeight,fontStyle:G.fontStyle},p?f=0===w&&"funnel"==this.type&&a.streamlinedData?f-q+(d[1].DistanceAvailed||0):f-q+(c.DistanceAvailed||0):(v=r=f-l,void 0!==u&&void 0!==t&&t-r<n&&(v=t-n,f=
v+l),u=g.plotY,t=v,"undefined"===typeof x||x===J||0===w&&"funnel"==this.type&&a.streamlinedData||(g=b-3,l=g-z,g=["M",l,r,"L",g,v],c.connector.attr({path:g,"shape-rendering":r===v&&1>v?"crisp":""})),f=0===w&&"funnel"==this.type&&a.streamlinedData?f+(d[1].DistanceAvailed||0):v+(c.DistanceAvailed||0)),x!==J&&c.dataLabel.attr({transform:"t"+b+","+f,"text-anchor":qa[m],text:x,fill:G.color,"font-size":G.fontSize,"text-bound":[G.backgroundColor,G.borderColor,G.borderThickness,G.borderPadding,G.borderRadius,
G.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,n;0<=h;h-=1)g=c[h],n=a[h],b=g.trackerObj,g.graphic&&(d=g.graphic.Shapeargs.silhuette,n={link:n.link,value:n.y,displayValue:n.displayValue,categoryLabel:n.categoryLabel,toolText:n.toolText},b?b.attr({path:d,isTracker:f,fill:ha,stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}):g.trackerObj=e.path(d,p).attr({isTracker:f,fill:ha,
stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}),b.data("eventArgs",n))},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){pa.call(this.trackerObj,this.chart,a)}},v["renderer.piebase"]);v("renderer.pyramid",{type:"pyramid",translate:function(){var a=this.datasets[0],e=a.data,c=this.canvasWidth/2,d=this.canvasHeight,b=e.length-1,f,m,g=this.canvasTop,p=a.yScale,
n=a.is2d,k=this.paper,l=a.valueSum?a.valueSum:1,q=0,u,t={},r=0,v=a.labelDistance,w=a.showLabelsAtCenter,z=.3*h(parseInt(this.options.plotOptions.series.dataLabels.style.fontSize,10),10),G=this.canvasLeft+c,x=d/l,y=0;Cb(e,function(a,d){a.x=d;a.isSliced&&((u=a.x)&&!t[u]&&(t[u]=!0,r+=1),u<b&&(t[u+1]=!0,r+=1));q+=a.y;f=c*q/l;m=x*a.y;a.shapeArgs={x:G,y:g,R1:y,R2:f,h:m,r3dFactor:p,gStr:"point",is2D:n,renderer:k};w?(a.labelAline="middle",a.labelX=G,a.labelY=(n?g:g+p*y)+m/2+z):(a.labelAline="start",a.labelX=
G+v+(y+f)/2+3,a.labelY=g+z+m/2);g+=m;a.plotX=G;a.plotY=g-m/2;y=f});a._temp={slicingGapPosition:t,noOfGap:r}},drawPlotPyramid:function(a,e){this.translate();var c=this,d=a.items,b=a.data,f=c.options,h=f.plotOptions,g=c.elements.plots[0],p=c.datasets[0],n=h.series.dataLabels,k=g.showLabelsAtCenter,h=h.series.animation.duration||0,l=c.paper,q=f.tooltip||{},q=q&&!1!==q.enabled,u,t=c.layers,r=t.tracker,t=t.datalabels||(t.datalabels=l.group("datalabels").insertAfter(t.dataset)),v=p._temp||{},w=v.slicingGapPosition,
v=v.noOfGap,z=p.SlicingDistance,G,x=z/2,p=0,f=f.chart.issliced,y=n.style,y={fontFamily:y.fontFamily,fontSize:y.fontSize,lineHeight:y.lineHeight,fontWeight:y.fontWeight,fontStyle:y.fontStyle},F=function(a,b){return function(d){a.graphic.attr(b);pa.call(this,c,d,"DataPlotRollOver")}},B=function(a,b){return function(d){a.graphic.attr(b);pa.call(this,c,d,"DataPlotRollOut")}},C,D,E,I,J,H,N,M;H=function(a){return function(){c.legendClick(a,!0,!1)}};N=function(a){return function(){return c.getEventArgs(a)}};
M=function(a){return function(){a.attr({visibility:"visible"})}};v&&(G=Ka(1.5*x,z/v),p=x);b&&b.length||(b=[]);g.singletonCase=1==b.length;for(J=b.length;J--;)x=b[J],C=x.y,D=x.displayValue,u=x.toolText,E=!!x.link,I=f?0:x.isSliced,null!==C&&void 0!==C&&x.shapeArgs?((z=d[J])||(e.data[J].plot=z=d[J]={value:C,sliced:!!I,cursor:E?"pointer":"",chart:c,plotItems:d,seriesData:g,x:x.x,index:J,graphic:c.pyramidFunnelShape(x.shapeArgs).attr({fill:x.color,opacity:h?0:x.alpha,"stroke-width":x.borderWidth,stroke:x.borderColor}),
dataLabel:l.text(t).attr({text:D,title:x.originalText||"",ishot:!0,cursor:E?"pointer":"",x:0,y:0}).css(y),trackerObj:l.path(r)},C=D={},x.hoverEffects&&(C={color:x.color,opacity:x.alpha,"stroke-width":x.borderWidth,stroke:x.borderColor},D=x.rolloverProperties,D={color:D.color,opacity:D.alpha,"stroke-width":D.borderWidth,stroke:D.borderColor}),e.data[J].legendClick=H(z),e.data[J].getEventArgs=N(z),!x.doNotSlice&&z.trackerObj.click(c.slice,z),z.trackerObj.mouseup(c.plotMouseUp,z).hover(F(z,D),B(z,C)),
q&&z.trackerObj.tooltip(u),!x.doNotSlice&&z.dataLabel.click(c.slice,z),z.dataLabel.mouseup(c.plotMouseUp,z).hover(F(z,D),B(z,C)),k&&0===J&&"funnel"==c.type&&g.streamlinedData||(z.connector=l.path(t).attr({"stroke-width":n.connectorWidth,stroke:n.connectorColor,ishot:!0,cursor:E?"pointer":""}).click(c.slice,z).mouseup(c.plotMouseUp,z).hover(F(z,D),B(z,C))),z.dy=0,v&&(p&&(z._startTranslateY=u="t,0,"+p,z.dy=z.DistanceAvailed=p,z.graphic.attr({transform:u}),z.dataLabel.attr({transform:u}),z.connector.attr({transform:u})),
w[x.x]&&(p-=G))),h&&(t.attr("visibility","hidden"),z.graphic.animate({opacity:x.alpha},h,"easeIn",J===b.length-1&&M(t)))):e.data[J].plot=d[J]={dataLabel:l.text(t).attr({text:D,title:x.originalText||"",x:0,y:0}).css(y)};c.drawDataLabels();c.drawTracker(a,e)}},v["renderer.funnel"]);v("renderer.sparkline",{callbacks:[function(){if(!this.options.nativeMessage){var a=this.options,e=this.layers,c=this.paper,d=a.series[0]&&a.series[0].data&&a.series[0].data[0],b=e.limitlabels,f=this.smartLabel,a=a.chart,
h=a.highLowValue.highLabel,g=a.highLowValue.lowLabel,p=a.valuePadding,n=this.canvasHeight/2,k;d&&(b||(b=e.limitlabels=c.group("limitlabels").insertAfter(e.dataset)),b.translate(this.canvasLeft,this.canvasTop),X(a.openValue.label)&&(d.openValue=c.text(-p,n,a.openValue.label,b).attr({"text-anchor":qa[bb]}).css(a.openValue.style)),e=a.closeValue.label,k=this.canvasWidth+p,X(e)&&(d.closeValue=c.text(this.canvasWidth+p,n,e,b).attr({"text-anchor":qa[Ja]}).css(a.closeValue.style),f.setStyle(a.closeValue.style),
k+=f.getOriSize(e).width+p),X(h)&&(c.text(k,n,"[",b).attr({"text-anchor":qa[Ja]}).css(a.highLowValue.style),f.setStyle(a.highLowValue.style),k+=f.getOriSize("[").width+1,d.highLabel=c.text(k,n,h,b).attr({"text-anchor":qa[Ja]}).css(a.highLowValue.style).css({color:a.highColor}),k+=f.getOriSize(h).width+1),X(g)&&(c.text(k,n,"|",b).attr({"text-anchor":qa[Ja]}).css(a.highLowValue.style),k+=f.getOriSize("|").width+1,d.dataLabel=c.text(k,n,g,b).attr({"text-anchor":qa[Ja]}).css(a.highLowValue.style).css({color:a.lowColor}),
k+=f.getOriSize(g).width+1,c.text(k,n,"]",b).attr({"text-anchor":qa[Ja]}).css(a.highLowValue.style)))}}]},v["renderer.cartesian"]);v("renderer.sparkwinloss",{callbacks:[function(){if(!this.options.nativeMessage){var a=this.options,e=this.layers,c=this.paper,d=a.series[0]&&a.series[0].data&&a.series[0].data[0],b=e.limitlabels,f=a.plotOptions.series.dataLabels&&a.plotOptions.series.dataLabels.style||{},a=a.chart,h=a.closeValue.label,g={fontFamily:f.fontFamily,fontSize:f.fontSize,lineHeight:f.lineHeight,
fontWeight:f.fontWeight,fontStyle:f.fontStyle};d&&(b||(b=e.limitlabels=c.group("limitlabels").insertAfter(e.dataset)),b.translate(this.canvasLeft,this.canvasTop),X(h)&&h!==J&&(d.dataLabel=c.text(this.canvasWidth+a.valuePadding,this.canvasHeight/2,h,b).attr({"text-anchor":qa[Ja],fill:f.color,"text-bound":[f.backgroundColor,f.borderColor,f.borderThickness,f.borderPadding,f.borderRadius,f.borderDash]}).css(g)))}}]},v["renderer.cartesian"]);v("renderer.realtimecartesian",{updatePlotColumn:function(a,
e,c){var d=this,b=a.data,f=b.length,m=a.items,g=a.graphics||(a.graphics=[]),p=d.paper,n=d.layers,k=d.options,l=k.chart,q=!1!==(k.tooltip||{}).enabled,u=d.definition.chart,k=k.plotOptions.series,t=d.xAxis[e.xAxis||0],r=d.yAxis[e.yAxis||0],v=d.logic.isStacked,w=e.numColumns||1,z=e.columnPosition||0,D=l.canvasBorderOpacity=Aa.color(l.plotBorderColor).opacity,x=d.canvasBorderWidth,D=l.isCanvasBorder||(l.isCanvasBorder=0!==D&&0<x),y,x=!1===e.visible?"hidden":"visible",F=l.overlapColumns,B=t.getAxisPosition(0),
B=t.getAxisPosition(1)-B,C=u&&u.plotspacepercent,E=k.groupPadding,M=k.maxColWidth,u=h(u&&u.plotpaddingpercent),C=(1-.01*C)*B||Ka(B*(1-2*E),M*w),B=C/2,C=C/w,F=Ka(C-1,1<w?F||void 0!==u?0<u?C*u/100:0:4:0),w=C-F,z=z*C-B+F/2,B=r.max,C=r.min,F=0<B&&0<=C,u=0>=B&&0>C,B=0>B&&0>C?B:0<B&&0<C?C:0,l=h(l.useRoundEdges,0),I=n.dataset=n.dataset||p.group("dataset-orphan"),n=n.tracker,C=d.canvasTop,E=d.canvasLeft,M=d.canvasBottom,O=d.canvasRight,H,N,R,W,L,U,Q,V,P,Y,Z,ba,ea,aa,$;ea=function(a,b){return function(c){a.attr(b);
pa.call(this,d,c,"dataplotrollover")}};aa=function(a,b){return function(c){a.attr(b);pa.call(this,d,c,"dataplotrollout")}};$=function(a){pa.call(this,d,a)};v&&(Z=I.shadows||(I.shadows=p.group("shadows",I).toBack()));I=I.column=I.column||p.group("columns",I);if(ba=c.numUpdate||0)for(c=0;c<ba;c+=1)(H=m.shift())&&delete H._state,m.push(H);for(c=0;c<f;c+=1)if(P=c+ba,N=b[c],U=N.y,H=h(N.x,c),V=t.getAxisPosition(H)+z,H=m[c],L=N.toolText,R=N.link,W=N.displayValue||J,y=Qb(N.borderWidth)||0,Q={index:c,link:R,
value:U,displayValue:N.displayValue,categoryLabel:N.categoryLabel,toolText:L,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},P>=f&&(H||(H=m[c]={index:c,value:U,width:w,graphic:null,dataLabel:null,tracker:null}),H&&(H.valueBelowPlot=0>U),P=Y={},N.hoverEffects&&(P={fill:T(N.color),stroke:T(N.borderColor),"stroke-width":y,"stroke-dasharray":N.dashStyle},Y=N.rolloverProperties,Y={fill:T(Y.color),stroke:T(Y.borderColor),"stroke-width":Y.borderWidth,"stroke-dasharray":Y.dashStyle}),
H.graphic||(H.graphic=p.rect(I).attr({visibility:x}),g.push(H.graphic),H.graphic.shadow(k.shadow&&N.shadow,Z)),H.graphic.attr({r:l,fill:T(N.color||""),stroke:T(N.borderColor||""),"stroke-width":y,"stroke-dasharray":N.dashStyle,"stroke-linejoin":"miter"}),H.tracker||(H.tracker=p.rect(n).attr({stroke:ha,fill:ha,visibility:x}),g.push(H.tracker)),H._attrHoverInFn&&H.tracker.unhover(H._attrHoverInFn,H._attrHoverOutFn),H._attrClickFn&&H.tracker.unclick(H._attrClickFn),H.tracker.attr({height:0,width:0,r:l,
"stroke-width":y,stroke:ha,cursor:R?"pointer":"",ishot:!0}).data("eventArgs",Q).click(H._attrClickFn=$).hover(H._attrHoverInFn=ea(H.graphic,Y),H._attrHoverOutFn=aa(H.graphic,P)).tooltip(L)),H&&(H.index=c),null===U)H&&(H.graphic&&H.graphic.attr({height:0,"stroke-width":0}),H.tracker&&H.tracker.attr({height:0,"stroke-width":0}),H.dataLabel&&H.dataLabel.attr({text:""}));else if(Q=N.previousY,P=r.getAxisPosition(Q||B),N=r.getAxisPosition(U+(Q||0)),L=vb(N-P),0>U&&(N=P),Rb(N)<=C&&(L-=C-N-+D,N=C-+D),ka(N+
L)>=M&&(L-=ka(N+L)-M+ +!!y+ +D),1>=y&&(ka(V)<=E&&(w+=V,V=E-y/2+ +!!y-+D,w-=V),ka(V+w)>=O&&(w=O-V+y/2-+!!y+ +D)),P=Aa.crispBound(V,N,w,L,y),V=P.x,N=P.y,w=P.width,L=P.height,D&&!X(Q)&&(u?(y=N-(C-y/2),L+=y,N-=y):F&&(L=M-N+y/2)),1>=L&&(L=1,N+=0>U?0:-L),H&&H.graphic&&(H.graphic.attr({x:V,y:N,width:w,height:L}).data("BBox",P),H.dataLabel&&H.dataLabel.attrs.text!==W&&H.dataLabel.attr({text:W}),d.drawPlotColumnLabel(a,e,c,V,N),R||q))!v&&L<yb&&(N-=(yb-L)/2,L=yb),H.tracker&&H.tracker.attr({x:V,y:N,width:w,
height:L});return a},updatePlotLine:function(a,e,c){var d=this,b=d.paper,f=d.options,m=f.chart,g=f.plotOptions.series,p=a.items,n=a.graphics||(a.graphics=[]),k,l=d.xAxis[e.xAxis||0],q=d.yAxis[e.yAxis||0],u=!1!==(f.tooltip||{}).enabled,f=a.data,t=!1===e.visible?"hidden":"visible",r=f.length,v=g.connectNullData,A,z,D,x,y,F,B,C=null,E,M=e.lineWidth,I=e.color,O,H,N,R,V,L,W,Q,U,P,Y=d.layers,Z=Y.dataset=Y.dataset||b.group("dataset-orphan"),Y=Y.tracker,ba,X,aa,$,da,fa,ca,ia,ja,la,ka,na,oa,qa;la=function(a){pa.call(this,
d,a)};ka=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}};na=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}};qa=function(b,c,f,g,k,h,l,m,p){return function(){var h=f.imageUrl,q=f.imageScale,r=f.imageAlpha,s=l.imageHoverAlpha,v=l.imageHoverScale,w=this.width*q*.01,x=this.width*v*.01;U={x:b-this.width*q*.005,y:c-this.height*q*.005,width:w,height:this.height*q*.01,alpha:r};P={x:b-this.width*v*.005,y:c-this.height*v*.005,width:x,height:this.height*
v*.01,alpha:s};s=x>w?P:U;g.graphic&&g.graphic.attr(U).attr("src",h).css({opacity:.01*r}).data("alwaysInvisible",0===q).data("setRolloverProperties",l).data("setRolloverAttr",P).data("setRolloutAttr",U).data("anchorRadius",q).data("anchorHoverRadius",v);if(p||u||l)g.tracker.attr(s).attr({cursor:p?"pointer":"",stroke:ha,"stroke-width":f.lineWidth,fill:ha,ishot:!0,visibility:t}).data("eventArgs",k),d.drawTracker&&d.drawTracker.call(d,a,e,m);(ba=g.dataLabel=d.drawPlotLineLabel(a,e,m,b,c))&&n.push(ba)}};
oa=function(b,c,f,g,k,h,l,m){return function(){(ba=g.dataLabel=d.drawPlotLineLabel(a,e,m,b,c))&&n.push(ba)}};X=Z.line||(Z.line=b.group("line-connector",Z));aa=a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",X));$=a.anchorShadowLayer||(a.anchorShadowLayer=b.group("anchor-shadow",X));Z=a.lineLayer||(a.lineLayer=b.group("connector",X));X=a.anchorLayer||(a.anchorLayer=b.group("anchors",X));if(ca=c.numUpdate||0)for(c=0;c<ca;c+=1)(k=p.shift())&&delete k._state,p.push(k);for(c=0;c<r;c+=
1)if(fa=c+ca,A=f[c],F=A.y,y=h(A.x,c),y=l.getAxisPosition(y),x=A.toolText,z=A.link,D=A.displayValue||J,H=A.marker||{},N=R=H.radius||0,da=H.shadow,V=H.lineWidth||0,L=H.fillColor||"",W=H.lineColor||"",k=H.imageUrl,ja=!!k,k=p[c],k._state||(k._state={}),fa>=r&&(k||(k=p[c]={index:c,value:F,graphic:null,connector:null,dataLabel:null,tracker:null}),k.graphic&&"image"===k.graphic.type&&!ja&&(k.graphic&&k.graphic.remove(),k.tracker&&k.tracker.remove(),k.graphic=k.tracker=null),k.graphic||(k.graphic=(ja?b.image(X):
b.polypath(X)).attr({visibility:t}),n.push(k.graphic)),ja||k.graphic.attr({fill:T(L),"stroke-width":V,stroke:T(W)}),k.connector||(k.connector=b.path(Z).attr({visibility:t}),k.connector.shadow(g.shadow&&A.shadow,aa),n.push(k.connector)),k.connector.attr({"stroke-dasharray":O,stroke:T(E||I),"stroke-width":M,"stroke-linecap":"round","stroke-linejoin":2<M?"round":"miter"}),k.tracker||(k.tracker=(ja?b.rect(Y):b.circle(Y)).attr({stroke:ha,fill:ha,visibility:t}),n.push(k.tracker)),R=va(R,Q&&Q.radius||0,
m.anchorTrackingRadius),ia={index:c,link:z,value:A.y,displayValue:A.displayValue,categoryLabel:A.categoryLabel,toolText:A.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},k._attrClickFn&&k.tracker.unclick(k._attrClickFn),k._attrHoverInFn&&k.tracker.unhover(k._attrHoverInFn,k._attrHoverOutFn),k.tracker.attr({r:R,"stroke-width":V,stroke:ha,cursor:z?"pointer":"",ishot:!0}).data("eventArgs",ia).click(k._attrClickFn=la).hover(k._attrHoverInFn=ka(k),k._attrHoverOutFn=na(k)).tooltip(x)),
k&&(k.index=c),null===F)k&&(k.graphic&&k.graphic.attr({polypath:[2,0,0,0,0,0],"stroke-width":0}),k.dataLabel&&k.dataLabel.attr({text:""}),k.connector&&k.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0}),k.tracker&&k.tracker.attr({r:0,"stroke-width":0})),0===v&&(C=null);else{E=q.getAxisPosition(F);if(H&&H.enabled)if(O=H.symbol.split("_"),F=k.graphic,U=P={},Q=A.rolloverProperties,ja)fa>=r?(O=new ea.Image,O.onload=qa(y,E,H,k,ia,x,Q,c,z),O.onerror=oa(y,E,H,k,ia,x,Q,c),O.src=H.imageUrl):(P=F.data("setRolloverAttr"),
U=F.data("setRolloutAttr"),P&&(P.x=y-.5*P.width,P.y=E-.5*P.height,F&&F.stop(),k.dataLabel&&k.dataLabel.stop(),U.x=y-.5*U.width,U.y=E-.5*U.height,F.attr(U),k.tracker&&k.tracker.attr({x:U.x,y:U.y,fill:ha})));else{if(Q=A.rolloverProperties)U={polypath:[O[1]||2,y,E,N,H.startAngle,0],fill:T(H.fillColor),"stroke-width":H.lineWidth,stroke:T(H.lineColor)},Q=A.rolloverProperties,P={polypath:[Q.sides||2,y,E,Q.radius,Q.startAngle,Q.dip],fill:T(Q.fillColor),"stroke-width":Q.lineWidth,stroke:T(Q.lineColor)};F&&
F.attr({polypath:[O[1]||2,y,E,N,H.startAngle,0],visibility:0===N?"hidden":t}).data("isRealtime",!0).data("alwaysInvisible",0===N).data("setRolloverProperties",Q).data("setRolloverAttr",P).data("setRolloutAttr",U).data("anchorRadius",N).data("anchorHoverRadius",Q&&Q.radius).shadow(da||!1,$);(z||u)&&k.tracker&&k.tracker.attr({cx:y,cy:E})}k.dataLabel&&k.dataLabel.attrs.text!=D&&k.dataLabel.attr({text:D});ba=d.drawPlotLineLabel(a,e,c,y,E);null!==C?(B=["M",B,w,C],B.push("L",y,w,E),(C=k.connector)&&C.attr({path:B,
"stroke-width":M})):k.connector&&k.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0});B=y;C=E;E=A.color;O=A.dashStyle||e.dashStyle}return a},updatePlotArea:function(a,e,c){var d=this,b=d.paper,f=d.options,m=f.chart,g=d.logic,p=f.plotOptions.series,n=a.items,k=a.graphics||(a.graphics=[]),l,q=d.xAxis[e.xAxis||0],u=d.yAxis[e.yAxis||0],t=u.axisData.reversed,r=g.isStacked,v=!1!==(f.tooltip||{}).enabled,f="0"===d.definition.chart.drawfullareaborder,g=a.data,A=!1===e.visible?"hidden":"visible",z=
g.length,D=p.connectNullData,x,y,E,B,C,M,O,I=u.max,R=u.min,t=u.getAxisPosition(0<I&&0<R?t?I:R:0>I&&0>R?t?R:I:t?I:0),I=null,H,R=e.lineWidth,N=e.dashStyle,U=T(e.lineColor),V=0,L,W,Q,Y,P,X,Z,ba=[],aa=[],da=[],$=d.layers,ca=$.dataset=$.dataset||b.group("dataset-orphan"),$=$.tracker,fa,ja,ia,la,ka,na,oa,qa,sa,xa,wa,ya,Aa,Ba;u.yBasePos=t;xa=function(a){pa.call(this,d,a)};wa=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}};ya=function(a){return function(b){d.hoverPlotAnchor(this,
b,"DataPlotRollOut",a,d)}};Aa=function(b,c,f,g,h,l,m,n,p){return function(){var l=f.imageUrl,q=f.imageScale,r=f.imageAlpha,s=m.imageHoverAlpha,t=m.imageHoverScale,u=this.width*q*.01,w=this.width*t*.01;X={x:b-this.width*q*.005,y:c-this.height*q*.005,width:u,height:this.height*q*.01,alpha:r};Z={x:b-this.width*t*.005,y:c-this.height*t*.005,width:w,height:this.height*t*.01,alpha:s};s=w>u?Z:X;g.graphic&&g.graphic.attr(X).attr("src",l).css({opacity:.01*r}).data("alwaysInvisible",0===q).data("setRolloverProperties",
m).data("setRolloverAttr",Z).data("setRolloutAttr",X).data("anchorRadius",q).data("anchorHoverRadius",t);if(p||v||m)g.tracker.attr(s).attr({cursor:p?"pointer":"",stroke:ha,"stroke-width":f.lineWidth,fill:ha,ishot:!0,visibility:A}).data("eventArgs",h),d.drawTracker&&d.drawTracker.call(d,a,e,n);(la=g.dataLabel=d.drawPlotLineLabel(a,e,n,b,c))&&k.push(la)}};Ba=function(b,c,f,g,h,l,m,n){return function(){(la=g.dataLabel=d.drawPlotLineLabel(a,e,n,b,c))&&k.push(la)}};r&&(ia=ca.shadows||(ca.shadows=b.group("shadows",
ca).toBack()));fa=ca.line||(ca.line=b.group("line-connector",ca));a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",fa));ca=a.anchorShadowLayer||(a.anchorShadowLayer=b.group("anchor-shadow",fa));r=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<na;c+=1)(l=n.shift())&&delete l._state,n.push(l);for(c=0;c<z;c+=1)ka=c+na,x=g[c],C=x.y,l=h(x.x,c),H=q.getAxisPosition(l),B=x.toolText,y=x.link,E=x.displayValue||
J,L=x.marker||{},W=O=L.radius||0,ja=L.shadow,M=L.lineWidth||0,Q=L.fillColor||"",Y=L.lineColor||"",qa=L.imageUrl,sa=!!qa,l=n[c],ka>=z&&(l||(l=n[c]={index:c,graphic:null,connector:null,dataLabel:null,tracker:null}),l.graphic&&"image"===l.graphic.type&&!sa&&(l.graphic&&l.graphic.remove(),l.tracker&&l.tracker.remove(),l.graphic=l.tracker=null),l.graphic||(l.graphic=(sa?b.image(fa):b.polypath(fa)).attr({visibility:A}),k.push(l.graphic)),sa||l.graphic.attr({fill:T(Q),"stroke-width":M,stroke:T(Y)}),l.tracker||
(l.tracker=(sa?b.rect($):b.circle($)).attr({stroke:ha,fill:ha,visibility:A}),k.push(l.tracker)),O=va(O,P&&P.radius||0,m.anchorTrackingRadius),oa={index:c,link:y,value:x.y,displayValue:x.displayValue,categoryLabel:x.categoryLabel,toolText:x.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:O,"stroke-width":M,cursor:y?"pointer":"",
ishot:!0}).data("eventArgs",oa).click(l._attrClickFn=xa).hover(l._attrHoverInFn=wa(l),l._attrHoverOutFn=ya(l)).tooltip(B)),l&&(l.index=c),null===C?(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===D&&(I=null,0<V&&(1===V?ba.splice(-8,8):(ba=ba.concat(aa),ba.push("Z")),aa=[]))):(y=x.link,M=x.previousY,O=(O=u.getAxisPosition(M)||null)||t,C=u.getAxisPosition(C+(M||0)),L&&L.enabled&&
(M=L.symbol.split("_"),Q=l.graphic,X=Z={},P=x.rolloverProperties,sa&&Q?ka>=z?(ka=new ea.Image,ka.onload=Aa(H,C,L,l,oa,B,P,c,y),ka.onerror=Ba(H,C,L,l,oa,B,P,c),ka.src=qa):(Z=Q.data("setRolloverAttr"),X=Q.data("setRolloutAttr"),Q&&Q.stop(),l.dataLabel&&l.dataLabel.stop(),Z&&(Z.x=H-.5*Z.width,Z.y=C-.5*Z.height,X.x=H-.5*X.width,X.y=C-.5*X.height,Q.attr(X),l.tracker&&l.tracker.attr({x:X.x,y:X.y,fill:ha}))):(P&&(X={polypath:[M[1]||2,H,C,W,L.startAngle,0],fill:T(L.fillColor),"stroke-width":L.lineWidth,stroke:T(L.lineColor)},
P=x.rolloverProperties,Z={polypath:[P.sides||2,H,C,P.radius,P.startAngle,P.dip],fill:T(P.fillColor),"stroke-width":P.lineWidth,stroke:T(P.lineColor)}),Q&&Q.attr({polypath:[M[1]||2,H,C,W,L.startAngle,0],visibility:0===W?"hidden":A}).data("isRealtime",!0).data("alwaysInvisible",0===W).data("setRolloverProperties",P).data("setRolloverAttr",Z).data("setRolloutAttr",X).data("anchorRadius",W).data("anchorHoverRadius",P&&P.radius).shadow(ja||!1,ca),(y||v)&&l.tracker&&l.tracker.attr({cx:H,cy:C}))),l.dataLabel&&
l.dataLabel.attrs.text!==E&&l.dataLabel.attr({text:E}),la=d.drawPlotLineLabel(a,e,c,H,C),null===I?(da.push("M",H,w,C),ba.push("M",H,w,O),V=0):da.push("L",H,w,C),ba.push("L",H,w,C),aa.unshift("L",H,w,O),V++,I=C);0<V&&(1===V?ba.splice(-8,8):(ba=ba.concat(aa),ba.push("Z")));a.graphic||(a.graphic=b.path(void 0).attr({"stroke-dasharray":N,"stroke-width":f?0:R,stroke:U,"stroke-linecap":"round","stroke-linejoin":2<R?"round":"miter"}).shadow(p.shadow&&x.shadow,ia),k.push(a.graphic));a.graphic.attr({path:ba});
f&&(a.connector||(a.connector=b.path(r).attr({"stroke-dasharray":N,"stroke-width":R,stroke:U,"stroke-linecap":"round","stroke-linejoin":2<R?"round":"miter"}),k.push(a.connector)),a.connector.attr({path:da}));return a}},v["renderer.cartesian"])},[3,2,0,"sr2"]]);
