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

 @author FusionCharts Technologies LLP
 @version fusioncharts/3.2.4-sr1.9888
*/
FusionCharts(["private","modules.renderer.highcharts-realtime",function(){var ba=this,I=Math,ua=I.random,va=I.min,Ba=ba.hcLib.pluckNumber,ma,ha,q;ma=function(r){var q=r.sender,j=q.jsVars,r=q.__state,t=j.instanceAPI,f=t.dataObj,I=f&&f.alerts&&f.alerts.alert||[],j=j._rtLastUpdatedData&&j._rtLastUpdatedData.values,ba=I.length,W;if(j&&j.length){f=function(f){var j,t,r;for(r=0;r<ba;r+=1)if(j=I[r],t=j.action&&j.action.toLowerCase(),j.minvalue<f&&j.maxvalue>f){if(!(j.occuronce==="1"&&j.hasOccurred))switch(j.hasOccurred=
!0,j.state="1",t){case "calljs":setTimeout(function(){eval(j.param)},0);break;case "showannotation":q.showAnnotation&&q.showAnnotation(j.param)}}else t==="showannotation"&&j.state==="1"&&q.hideAnnotation&&q.hideAnnotation(j.param),j.state="2"};if(t.multiValueGauge){t=va(j.length,t.hcInstance&&t.hcInstance.options&&t.hcInstance.options&&t.hcInstance.options.series&&t.hcInstance.options.series[0]&&t.hcInstance.options.series[0].data&&t.hcInstance.options.series[0].data.length||0);for(W=0;W<t;W+=1)(!r.lastSetValues||
j[W]!==r.lastSetValues[W])&&f(j[W])}else(!r.lastSetValues||j[0]!==r.lastSetValues[0])&&f(j[0]);r.lastSetValues=j}};ha=function(r){var r=r.sender,q=r.__state;r.jsVars&&(r.jsVars._rtLastUpdatedData=null);q._toRealtime=clearTimeout(q._toRealtime);q._toClearChart=clearTimeout(q._toClearChart)};q=function(r,q,j){clearTimeout(j);return setTimeout(r,q)};ba.addEventListener(["BeforeRender","DataUpdated"],function(r){r=r.sender;if(r.options.renderer==="javascript")r.__state.rtStateChanged=!0});ba.addEventListener("drawcomplete",
function(r){var I=r.sender,j=I.__state;if(I.options.renderer==="javascript"||j.rtStateChanged){if(r.eventType==="drawcomplete")j.rtStateStart=!0;else if(j.rtStateStart){j.rtStateStart=!1;return}j.rtStateChanged=!1;var t=I.jsVars.instanceAPI,f=t.hcInstance,Ca=I.jsVars,fa=f&&f.options&&f.options.chart||{},W=Ba(fa.updateInterval,fa.refreshInterval)*1E3,Z=Ba(fa.clearInterval,0)*1E3,B=t.drawingLatency,F=fa.dataStreamURL,X=fa.dataStamp,fa=Boolean(t.realtimeEnabled&&W>0&&F!==void 0&&f.options.chart),va=
t.hcJSON&&t.hcJSON.plotOptions&&t.hcJSON.plotOptions.series.animation&&t.hcJSON.plotOptions.series.animation.duration||0,da=j._rtAjaxObj,E=function(){I.clearChart&&I.clearChart();if(Z)j._toClearChart=setTimeout(E,Z)},V=function(){var f=F+(F.indexOf("?")===-1?"?num=":"&num=")+ua();X&&(f+="&dataStamp="+X);da.open&&da.abort();da.get(f)};W<=0?(j._toRealtime=clearTimeout(j._toRealtime),da&&da.abort()):W<10&&(B>=10&&(B=9),W=10);j._toClearChart=clearTimeout(j._toClearChart);if(Z>0)Z<10?Z=10:j._toClearChart=
setTimeout(E,Z);j._rtStaticRefreshMS=W;W-=B;if(fa){if(j._rtPaused===void 0)j._rtPaused=!1;j._rtDataUrl=F;j.lastSetValues=null;da=j._rtAjaxObj||(j._rtAjaxObj=new ba.ajax);da.onSuccess=function(w,q,B,E){var B=t.linearDataParser&&t.linearDataParser(w,t.multisetRealtime),s=f.series&&f.series[0];if(I.isActive()&&B&&f&&(s&&s.realtimeUpdate||t.realtimeUpdate)){X=B.dataStamp?B.dataStamp:null;B.interval=W<1E3?W:1E3;q=I.getDataJSON();t.realtimeUpdate?t.realtimeUpdate(B):s.realtimeUpdate(B);Ca._rtLastUpdatedData=
t.multisetRealtime?B:I.getDataJSON();ba.raiseEvent("RealTimeUpdateComplete",{data:w,prevData:q.values,source:"XmlHttpRequest",url:E,drawingLatency:t.drawingLatency},r.sender);try{window.FC_ChartUpdated&&window.FC_ChartUpdated(r.sender.id)}catch(F){setTimeout(function(){throw F;},1)}if(!j._rtPaused)w=t.realtimeDrawingLatency||0,w>=j._rtStaticRefreshMS&&(w=j._rtStaticRefreshMS-1),j._toRealtime=setTimeout(V,j._rtStaticRefreshMS-w)}else j._toRealtime=clearTimeout(j._toRealtime)};da.onError=function(f,
t,q,B){ba.raiseEvent("RealTimeUpdateError",{source:"XmlHttpRequest",url:B,xmlHttpRequestObject:t.xhr,error:f,httpStatus:t.xhr&&t.xhr.status?t.xhr.status:-1},r.sender);j._toRealtime=I.isActive()?setTimeout(V,W):clearTimeout(j._toRealtime)};if(!j._rtPaused)j._toRealtime=q(V,va>W?va:W,j._toRealtime)}I.addEventListener("beforedispose",function(){j._toRealtime=clearTimeout(j._toRealtime);j._toClearChart=clearTimeout(j._toClearChart)});I.removeEventListener(["beforedataupdate","beforerender"],ha);I.addEventListener(["beforedataupdate",
"beforerender"],ha);r.eventType==="drawcomplete"&&(I.removeEventListener("RealTimeUpdateComplete",ma),t.dataObj&&t.dataObj.alerts&&t.dataObj.alerts&&t.dataObj.alerts.alert&&t.dataObj.alerts.alert.length&&I.addEventListener("RealTimeUpdateComplete",ma))}})}]);
FusionCharts(["private","modules.renderer.highcharts-annotations",function(){var ba=this.core,I=this.hcLib,ua=I.Highcharts,va=ua.each,Ba=ua.addEvent,ma=ua.removeEvent,ha=ua.hasTouch,q=ua.hasSVG,r=ha?6:5,Na="rgba(192,192,192,"+(q?1.0E-6:0.0020)+")",j=Math.min,t=Math.max,f=Math.sin,Ca=Math.cos,fa=Math.PI,W=fa/180,Z=this.extend,B=I.pluck,F=I.pluckNumber,X=I.graphics.convertColor,Xa=I.getDashStyle,da=I.getValidValue,E=I.parseUnsafeString,V=I.setImageDisplayMode,w=I.graphics.parseColor,wa=I.setLineHeight,
Ya={style:{}},Ha=function(){return this},s=function(f,j){var u;if(j>360||j<-360)j%=360;if(f>360||f<-360)f%=360;u=f-j;if(u>360||u<-360)u%=360,j=f-u;j=360-j;f=360-f;if(f>360||j>360)f-=360,j-=360;return{start:f,end:j,angle:-u}},ia=function(f,j,u,m){var R=0,t=0,j=j===void 0||j===null?1:j,r;if(!f||!f.toString)return u;f=f.toLowerCase().replace(/\s/g,"");if(u=f.match(/^[\+\-]?\d+(\.\d+)?|[\+\-]\d+(\.\d+)?/g)){for(r=0;r<u.length;r+=1)R+=Number(u[r])||0;R*=j}if(u=f.match(/^[\+\-]?(\$[a-z]+)|[\+\-](\$[a-z]+)/g))for(r=
0;r<u.length;r+=1)t+=m[u[r]]||0;if(u=f.match(/^[\+\-]?\$\d+(\.\d+)?|[\+\-]\$\d+(\.\d+)?/g))for(r=0;r<u.length;r+=1)t=t+Number(u[r].replace("$",""))||0;return R+t},Za=function(f){var j=this.__state.annotationGroupsById;(f=j&&j[f])&&f.wrapper&&f.wrapper.show()},$a=function(f){var j=this.__state.annotationGroupsById;(f=j&&j[f])&&f.wrapper&&f.wrapper.hide()},H,m;H=function(f,j,u,m){this.options=f;this.chart=u;this.attrs={};this.css={};this.bounds={};this.shared=j;this.snaps=m||{};this.id=f.id||"";this.items=
[];this.setup();this.scale()};Z(H.prototype,{scaleImageX:1,scaleImageY:1,scaleText:1,scaleValue:1,scaleValueComplement:1,scaleX:1,scaleY:1});H.prototype.setup=function(){var f=this.options;this.isBelow=B(f.showbelow,f.showbelowchart,this.shared.showbelow)!="0";this.useTracker=!this.isBelow&&this.chart.trackerGroup&&this.shared.useTracker};H.prototype.scale=function(){var f=this.options,j=this.chart,u=this.shared,m=this.bounds,R=this.snaps,r=u.rootxscale,t=u.rootyscale,s=m.xs=F(f.xscale,u.xscale,100)/
100,C=m.ys=F(f.yscale,u.yscale,100)/100,w,q,U;this.scaleText*=C;this.scaleImageX*=s;this.scaleImageY*=C;if(B(f.autoscale,u.autoscale)!="0")s=F(f.origw,u.origw),C=F(f.origh,u.origh),s=j.chartWidth/s,C=j.chartHeight/C,j=B(f.constrainedscale,u.constrainedscale)!="0",w=s<C?s:C,q=j?w:s,U=j?w:C,this.scaleValue*=w,this.scaleValueComplement*=j?w:s<C?C:s,this.scaleX*=q,this.scaleY=this.scaleX*U,m.xs*=q,m.ys*=U,r*=q,t*=U,B(f.scaletext,u.scaletext)=="1"&&(this.scaleText*=U),B(f.scaleimages,u.scaleimages)=="1"&&
(this.scaleImageX*=q,this.scaleImageY*=U);m.x=ia(B(f.x,f.xpos),r,0,R)+F(f.grpxshift,u.grpxshift,0);m.y=ia(B(f.y,f.ypos),t,0,R)+F(f.grpyshift,u.grpyshift,0);this.xshift=F(f.xshift,u.xshift,0);this.yshift=F(f.yshift,u.yshift,0)};H.prototype.draw=function(){var f=this.chart,j=this.options,u=this.bounds,r=this.items,R;if(!this.wrapper)this.wrapper=f.renderer.g("annotations").attr({zIndex:this.isBelow?0.5:6}).add();for(this.wrapper.attr({x:0,y:0,visibility:j.visible=="0"?"hidden":""}).translate(u.x,u.y);u=
r.unshift();)u.destroy();if(j=j.items){u=0;for(R=j.length;u<R;u+=1)r.push((new m(f,j[u],this)).draw())}return this};H.prototype.destroy=function(){for(var f=this.wrapper,j=this.items,u;u=j.shift();)u.destroy();if(f)this.wrapper=f.destroy()};m=function(f,j,u){var r=!1,R;this.chart=f;this.options=j;this.group=u;this.args=[];this.attrs={};this.attrsTracker={};this.style={};this.bounds={};this.type=j.type&&j.type.toLowerCase&&j.type.toLowerCase();for(R in m.eventNames)typeof j[R]==="function"&&(this[R]=
j[R],r=!0);this.hasEvents=r;if(typeof j.onload==="function")this.onload=j.onload;this.scale();this.setup()};m.prototype.getAbsoluteBounds=function(){var f=this.bounds,m=f.x1,u=f.y1,r=f.x2,R=f.y2,s=j(m,r),w=j(u,R),m=t(m,r)-s,u=t(u,R)-w;return{x:s,width:m,y:w,height:u,r:f.r,unscaled:{width:m/f.xs,height:u/f.ys}}};m.prototype.scale=function(){var f=this.group,j=f.bounds,u=this.bounds,m=this.options,r=f.snaps,t=B(m.x,m.xpos),s=B(m.y,m.ypos),w=B(m.tox,m.toxpos),C=B(m.toy,m.toypos),q=u.xs=j.xs,j=u.ys=j.ys,
ca=F(m.xshift,f.xshift,0),U=F(m.yshift,f.yshift,0);this.hasDimensionY=this.hasDimensionX=this.hasDimension=!0;u.x1=ia(t,q,0,r)+ca;w===void 0?(this.hasDimensionX=this.hasDimension=!1,u.x2=u.x1):u.x2=ia(w,q,0,r)+ca;u.y1=ia(s,j,0,r)+U;C===void 0?(this.hasDimensionY=this.hasDimension=!1,u.y2=u.y1):u.y2=ia(C,j,0,r)+U;u.r=F(m.radius,0)*f.scaleValue};m.prototype.setup=function(){var f=this.options,j=this.group,u=j.options,m=this.attrs,r=this.style,t=j.scaleValue,s=F(u.fillalpha,u.alpha,100),w=this.fillAlpha=
B(f.fillalpha,f.alpha,s),C=this.fillColor=B(f.fillcolor,f.color,u.color,"#ff0000"),q=this.fillPattern=B(f.fillpattern&&f.fillpattern.toLowerCase&&f.fillpattern.toLowerCase(),u.fillpattern&&u.fillpattern.toLowerCase&&u.fillpattern.toLowerCase()),ca=f.showborder?f.showborder=="1":da(f.bordercolor),U=this.borderAlpha=F(f.borderalpha,f.alpha,u.borderalpha,s),s=this.dashed=f.dashed=="1";this.link=B(f.link,u.link);this.shadow=B(f.showshadow,u.showshadow)=="1";m.stroke=ca?X(B(f.bordercolor,C),U):"none";
m["stroke-linecap"]="round";w={FCcolor:{gradientUnits:"objectBoundingBox",color:C,alpha:w,ratio:B(f.fillratio,u.fillratio),angle:360-F(f.fillangle,0),radialGradient:q==="radial"}};m.fill=w;m["stroke-width"]=ca?F(f.borderthickness,f.thickness,2)*t:0;if(s)m.dashstyle=Xa(f.dashlen*t,f.dashgap*t,m["stroke-width"]);if(this.link)r.cursor="pointer",r._cursor="hand";this.useTracker=j.useTracker;this.toolText=E(B(f.tooltext,u.tooltext));(this.useTracker||this.link||this.toolText)&&Z(this.attrsTracker,{isTracker:+new Date,
stroke:Na,fill:Na})};m.prototype.draw=function(){var f=this,j=f.chart,u=f.type,r=f.attrs,R=f.style,s=j.renderer,u=m.types[u]&&m.types[u].call&&m.types[u].call(f),w=u==="image",q=u==="text",C=w||q,B=f.link||f.toolText,ca=f.wrapper,U=f.tracker,E=!1,F,H,I=m.eventNames,V,Z;if(u){if(ca)if(ca.elemType!==u)ca=ca.destroy();else if(f.hasEvents)for(V in I)if((Z=f[V])&&Z.eventAttached)ma(H.element,I[V],Z),Z.eventAttached=!1;ca?ca.attr(r).css(R):(ca=f.wrapper=s[u].apply(j.renderer,f.args).attr(r).css(R).add(f.group.wrapper),
ca.elemType=u,E=!0);f.shadow&&!f.shadowAdded&&!w&&!q?(R={opacity:t(f.borderAlpha,r.fill.FCcolor.alpha)/100},f.shadowAdded=!0,ca.shadow(R,void 0,R)):(f.shadowAdded=!1,(F=ca.shadows)&&va(F,function(f){ca.safeRemoveChild(f)}));q&&ca.textBound();if(B){if(f.useTracker){if(!U)U=f.tracker=C?s.rect(0,0,0,0,0):s[u].apply(j.renderer,f.args);U.attr(r).attr(f.attrsTracker);U.added||U.add(j.trackerGroup)}f.toolText&&f.createTooltip()}else U&&(U=U.destroy());H=f.tracker||ca;if(f.link)H.on("click",function(){j.options.instanceAPI.linkClickFN.call(f)});
if(f.hasEvents)for(V in I)if((Z=f[V])&&!Z.eventAttached)Ba(H.element,I[V],Z,f),Z.eventAttached=!0;w||(U&&C&&U.attr(ca.getBBox()),E&&f.onload&&f.onload(r))}return f};m.prototype.createTooltip=function(f){var j=this.wrapper,u=this.chart,m=u.plotLeft,r=u.plotTop,t,s,w,q,B,E=!1;if(t=u.tooltip)f||(f=this.tracker||j),s={tooltipPos:[20,20],series:{},svgElm:j.svgElm,point:this,getLabelConfig:Ha},w=function(){t.refresh(s)},q=function(){t.hide()},f.on("mousemove",function(f){s.tooltipPos[0]=(f.layerX||f.x)-
m;s.tooltipPos[1]=(f.layerY||f.y)-r;E&&B&&(B=clearTimeout(B));E=!1;B?(B=clearTimeout(B),B=setTimeout(w,150)):(t.refresh(s),B=-2)}).on("mouseout",function(){B=clearTimeout(B);E=!0;B=setTimeout(q,200)})};m.prototype.destroy=function(){var f=this.wrapper;if(f)this.tracker&&this.tracker.destroy(),this.wrapper=f.destroy()};m.eventNames={onmouseover:ha?"touchstart":"mouseover",onmouseout:"mouseout",onmousemove:ha?"touchmove":"mousemove",onclick:"click"};m.textAlignOptions={left:"left",right:"right",center:"center"};
m.textVerticalAlignOptions={top:"top",middle:"middle",bottom:"bottom"};m.textRotationOptions={0:"0",1:"270",right:"90",left:"270"};m.types={rectangle:function(){var f=this.args,j=this.getAbsoluteBounds(),u=j.width*0.5;if(j.r>u)j.r=u;f[0]=j.x;f[1]=j.y;f[2]=j.width;f[3]=j.height;f[4]=j.r;return"rect"},line:function(){var f=this.options,j=this.group.scaleValue,u=this.attrs,m=this.bounds;this.args[0]=["M",m.x1,m.y1,"L",m.x2,m.y2];u.stroke=X(this.fillColor,this.fillAlpha);u["stroke-width"]=F(f.thickness,
2)*j;u["stroke-width"]<r&&(this.attrsTracker["stroke-width"]=r);this.attrsTracker.dashstyle="solid";return"path"},polygon:function(){var f=this.args,j=this.options,u=this.bounds;f[0]="poly_"+F(j.sides,5);f[1]=u.x1;f[2]=u.y1;f[3]=u.r;f[4]={startAngle:F(j.startangle,0)*W};return"symbol"},circle:function(){var j=this.args,m=this.attrs,u=this.options,r=this.bounds,t=this.chart.chartWidth,w=this.chart.chartHeight,q=this.group.scaleValueComplement,E=s(F(u.startangle,0),F(u.endangle,360)),C=r.r,H,I;if(!B(u.radius))r.r=
t<w?t*r.xs:w*r.ys,r.r=C=r.r*0.3;u=F(u.yradius,C/q)*q;if(!this.fillPattern)m.fill.FCcolor.radialGradient=!0,this.fillPattern="radial";if(this.fillPattern==="radial")m.fill.FCcolor.cx=m.fill.FCcolor.cy=0.5;if(!(E.angle%360)&&C===u)return j[0]=r.x1,j[1]=r.y1,j[2]=r.r,"circle";E.angle%360||(E.start-=0.0010);m=this.chart.renderer.getArcPath;H=E.start*W;t=E.end*W;E=E.angle*W;w=r.x1;q=r.y1;r=w+Ca(H)*C;H=q+f(H)*u;I=w+Ca(t)*C;t=q+f(t)*u;C=m(w,q,r,H,I,t,C,u,0,E>=fa?1:0);C.unshift("M",r,H);C.push("Z");j[0]=
C;return"path"},arc:function(){var f=this.options,j=this.args,u=this.attrs,m=this.bounds,r=this.chart.chartWidth,t=this.chart.chartHeight,w=this.group.scaleValue,E=s(F(f.startangle,0),F(f.endangle,360)),C=E.start,H=E.end;if(!B(f.radius))m.r=r<t?r*m.xs:t*m.ys,m.r*=0.3;m.innerR=F(f.innerradius,m.r*0.8/w)*w;if(m.innerR>m.r)m.innerR+=m.r,m.r=m.innerR-m.r,m.innerR-=m.r;!(E.angle%360)&&!q&&(H+=0.5,C-=0.5);if(!this.fillPattern)u.fill.FCcolor.radialGradient=!0,this.fillPattern="radial";if(this.fillPattern===
"radial")u.fill.FCcolor.cx=u.fill.FCcolor.cy=0.5;j[0]=m.x1;j[1]=m.y1;j[2]=m.r;j[3]=m.innerR;j[5]=C*W;j[4]=H*W;return"arc"},text:function(){var f=this.chart,j=this.args,u=this.style,r=this.attrs,t=this.group,s=this.bounds,q=this.options,H=this.getAbsoluteBounds(),C=B(q.align,t.options.textalign,"center").toLowerCase(),I=B(q.valign,t.options.textvalign,"middle").toLowerCase(),V=E(B(q.text,q.label)),U=this.chart&&this.chart.renderer&&this.chart.renderer.smartLabel,W=B(q.wrap,t.options.wraptext)=="1",
ja,ba,X=B(q.rotatetext,t.options.rotatetext,"0").toLowerCase(),da=m.textRotationOptions[X],ha=da!="0",X=ha?"x":"y",ha=ha?"y":"x",f=f.options.orphanStyles,fa=Z({},f.defaultStyle.style||{}),Y=f[t.id.toLowerCase()]||Ya,f=Y.style.color,Y=Z(fa,Y.style),ia=parseFloat(Y.fontSize),fa=da=="90"?-1:1,ma=B(q.font,t.options.font,Y.fontFamily),t=F(q.fontsize,t.options.fontsize,ia)*t.scaleText;W&&(ja=F(q.wrapwidth,this.hasDimensionX?H.width/s.xs:void 0),ba=F(q.wrapheight,this.hasDimensionY?H.height/s.ys:void 0),
ja&&(ja*=s.xs),ba&&(ba*=s.ys));u.fontFamily=ma;u.fontWeight=B(q.bold,q.isbold)=="1"?"bold":"normal";if(B(q.italic,q.isitalic)=="1")u.fontStyle="italic";if(q.bgcolor)u.backgroundColor=w(q.bgcolor);if(q.bordercolor)u.borderColor=w(q.bordercolor),u.border="1px solid "+u.borderColor;u.color=q.fontcolor?r.fill=w(q.fontcolor):w(f||r.fill.FCcolor.color);u.fontSize=t+"px";t==ia?u.lineHeight=Y.lineHeight:wa(u);r.align=m.textAlignOptions[C]||"center";r.rotation=parseInt(da,10);U.setStyle(u);u=U.getSmartText(V,
ja,ba,!1);switch(m.textVerticalAlignOptions[I]||"middle"){case "top":H[X]+=(t-u.height)*fa;break;case "bottom":H[X]+=t*fa;break;default:H[X]+=(t-u.height*0.5)*fa}r.align==="left"?H[ha]+=F(q.leftmargin,0):r.align==="center"&&(H[ha]+=F(q.leftmargin,0)*0.5);j[0]=u.text;j[1]=H.x;j[2]=H.y;delete r.stroke;delete r["stroke-weight"];return"text"},image:function(){var f=this,j=f.chart,m=f.style,r=j.chartWidth,q=j.chartHeight,j=f.options,s=f.attrs,w=f.args,H=da(j.url),C=f.group.scaleImageX*B(Number(j.xscale),
100)/100,E=f.group.scaleImageY*B(Number(j.yscale),100)/100,I=f.getAbsoluteBounds(),U={width:1,height:1},W;if(!H)return w[0]=I.x,w[1]=I.y,w[2]=I.width,w[3]=I.height,w[4]=I.r,"rect";W=new Image;W.onload=function(){U=V("none","top","left",100,0,r,q,W);delete U.x;delete U.y;U=Z(U,{width:(f.hasDimensionX?I.unscaled.width:U.width)*C,height:(f.hasDimensionY?I.unscaled.height:U.height)*E});setTimeout(function(){var j,r;if(j=f.wrapper)j.attr(U),(r=f.tracker)&&r.attr(j.getBBox()),j.css({opacity:m.opacity=t(F(f.fillAlpha,
f.borderAlpha),f.borderAlpha)/100});f.onload&&f.onload(U)},0)};W.src=H;w[0]=H;w[1]=I.x;w[2]=I.y;w[3]=(f.hasDimensionX?I.unscaled.width:U.width)*C;w[4]=(f.hasDimensionY?I.unscaled.height:U.height)*E;m.opacity=t(F(f.fillAlpha,f.borderAlpha),f.borderAlpha)/100;delete s.stroke;delete s.fill;delete s["stroke-linecap"];return"image"}};I.Highcharts.Chart.prototype.callbacks.unshift(function(f,j){var m=j.chartInstance,r=m.__state,t=j.dataObj||{},q=t.annotations,w=j.hcJSON,s={},C,E;if(!j.drawAnnotations||
!m.dataReady()||!t.chart||!(t.chart.showannotations!="0"&&q&&q.groups&&q.groups.length)){if(!w||!w.annotations)return;q=w.annotations;if(q.options)s=q.options}else delete q.id;if(!r.annotationStores)r.annotationStores=[];r.annotationStores.push(m=q.id||"annotations");m=f[m]=[];s=Z({showbelow:B(q.showbelow,q.showbelowchart),autoscale:q.autoscale,scaletext:q.scaletext,scaleimages:q.scaleimages,constrainedscale:q.constrainedscale,origw:B(q.origw,t.chart.origw,f.chartWidth),origh:B(q.origh,t.chart.origh,
f.chartHeight),xshift:q.xshift,yshift:q.yshift,grpxshift:q.grpxshift,grpyshift:q.grpyshift,xscale:q.xscale,yscale:q.yscale,rootxscale:F(q.xscale,100)/100,rootyscale:F(q.yscale,100)/100},s);if(j.snapLiterals){C=j.snapLiterals;t={};for(E in C)t["$"+E]=t["+$"+E]=C[E],t["-$"+E]=C[E]*-1;C=t}for(t=0;t<q.groups.length;t+=1)m.push(E=(new H(q.groups[t],s,f,C)).draw()),E.id&&r.annotationGroupsById&&!f.renderer.forExport&&(r.annotationGroupsById[E.id]&&r.annotationGroupsById[E.id].destroy(),r.annotationGroupsById[E.id]=
E)});ba.addEventListener("rendered",function(f,j){if(j.renderer==="javascript"){var m=f.sender,r=m.jsVars||{},t=r.instanceAPI;if(!r.hcObj||!t||!t.drawAnnotations)delete m.showAnnotation,delete m.hideAnnotation;else{if(!m.showAnnotation)m.showAnnotation=m.ref.showAnnotation=Za;if(!m.hideAnnotation)m.hideAnnotation=m.ref.hideAnnotation=$a}}});ba.addEventListener("Initialized",function(f){var f=f.sender,j=f.__state;if(f.options.renderer==="javascript")j.annotationGroupsById={}});ba.addEventListener("Disposed",
function(f){if(f.sender.options.renderer==="javascript"){var j=f.sender,f=j.__state,j=j.jsVars.hcObj,m,r,t,q;for(q=f.annotationStores&&f.annotationStores.length||0;q--;){t=f.annotationStores[q];if(m=j&&j[t])for(;r=m.shift();)r.destroy();delete f[t]}}})}]);
FusionCharts(["private","modules.renderer.highcharts-widgets",function(){function ba(a,c,b){var d=t(c)!==void 0;this.paletteId=a;this.themeColor=c;this.isTheme=d;this._iterator=0;this.defaultGaugePaletteOptions=b&&b.defaultGaugePaletteOptions||ga}function I(){}function ua(a,c,b,d){c=f(c,d);a=f(a,b);return!c||!a?1:a/b==c/d?b/a:Math.min(b/a,d/c)}function va(a,c,b,d){var e,h=a&&a.length||0,i,g,n=[],k=c<0,b=f(b,-0.5),d=f(d,1.5);for(e=0;e<h;e+=1)if(i=a[e],i.isGrid||i.isVline)if(g=i.value+=c,k&&g<b||!k&&
g>d)a.splice(e,1),i.isGrid&&n.push(i),e-=1,h-=1;return n}function Ba(a,c){var b=a.labels,d=b._textY,e=b._righttX,b=b._leftX,h,i,g=c.length;for(h=0;h<g;h+=1)if(i=c[h]&&c[h].label)i.y=d,i.x=i.align==na?e:b}function ma(a,c,b,d){var e,h,i,g,n,f;b instanceof Array||(b=ga.paletteColors[0]);if(a&&a.length>0){for(h=i=a.length-1;h>=0;h-=1)if(e=a[h]){e.minvalue=d.numberFormatter.getCleanValue(e.minvalue);e.maxvalue=d.numberFormatter.getCleanValue(e.maxvalue);if(e.minvalue===null)e.maxvalue!==null?e.minvalue=
e.maxvalue:h!==i&&a.splice(h,1);if(e.label!==void 0)e.label=u(e.label);if(e.name!==void 0)e.name=u(e.name);if(e.maxvalue!==null&&e.minvalue>e.maxvalue)g=e.minvalue,e.minvalue=e.maxvalue,e.maxvalue=g}a.sort(nb);if(!a[0].code)a[0].code=b[0];if(t(a[0].alpha)==void 0)a[0].alpha=oa;h=0;for(i=a.length-1;h<i;h+=1){g=h+1;e=a[h];d=a[g];if(!d.code)d.code=b[g];if(t(d.alpha)==void 0)d.alpha=oa;if(e.maxvalue===null)e.maxvalue=d.minvalue;if(e.maxvalue>d.minvalue){if(e.maxvalue>d.maxvalue){g=B(e);g.maxvalue=e.maxvalue;
f=g.minvalue=d.maxvalue;for(n=h+2;n<i&&a[n].minvalue<f;n+=1);a.splice(n,0,g);i+=1}e.maxvalue=d.minvalue}}e=a[h];if(e.maxvalue===null)e.maxvalue=e.minvalue}if(!(a&&a.length>0))c||(c={code:"CCCCCC",alpha:"100",bordercolor:"000000",borderalpha:"100"}),a=[c],this.defaultAsigned=!0;this.colorArr=a}var ha=this,q=ha.hcLib,r=q.BLANKSTRING,Na=q.createTrendLine,j=q.pluck,t=q.getValidValue,f=q.pluckNumber,Ca=q.getFirstDefinedValue,fa=q.defaultPaletteOptions,W=q.getFirstValue,Z=q.FC_CONFIG_STRING,B=q.extend2,
F=q.getDashStyle,X=q.hasSVG,Xa=q.falseFN,da=q.getFirstColor,E=q.graphics.getDarkColor,V=q.graphics.getLightColor,w=q.graphics.convertColor,wa=q.graphics.parseColor,Ya=q.graphics.parseAlpha,Ha=q.COLOR_TRANSPARENT,s=q.chartAPI,ia=q.titleSpaceManager,Za=q.placeLegendBlockBottom,$a=q.placeLegendBlockRight,H=s.singleseries,m=q.COMMASTRING,Da=q.ZEROSTRING,Ea=q.ONESTRING,u=q.parseUnsafeString,jb=q.HCstub,R=window,db=/msie/i.test(navigator.userAgent)&&!R.opera,R=q.Highcharts,Oa=document,kb=Oa.documentMode===
8,C=Math,ya=C.max,ca=C.min,U=C.abs,lb=C.atan2,ja=C.PI/180,Fa=q.regex.dropHash,ab=q.toPrecision,Ia=q.HASHSTRING,mb=q.getColorCodeString,Pa=q.regex.hexcode,Y,C=R.seriesTypes,Ga=R.attr,za=Oa.documentElement.ontouchstart!==void 0,Qa=R.getTouchEvent,Ra=R.addEvent,Ja=R.each,xa=R.extend,ea=R.merge,ob=R.pick,Ka=R.Color,qa=function(a){return typeof a==="object"},sa=function(a){return typeof a==="string"},O=function(a){return a!==void 0&&a!==null},La="rgba(192,192,192,"+(X?1.0E-6:0.0020)+")",ka=db&&!X?"visible":
"",Sa=q.regex.startsRGBA,ta=q.setLineHeight,eb=q.pluckFontSize,ra=q.POSITION_CENTER,Ta=q.POSITION_TOP,bb=q.POSITION_BOTTOM,na=q.POSITION_RIGHT,pa=q.POSITION_LEFT,Ma=q.POSITION_MIDDLE,oa=q.HUNDREDSTRING,Ua=q.PXSTRING,fb=q.COMMASPACE,aa=!/fusioncharts\.com$/i.test(location.hostname),Va=function(a,c,b,d,e){var h=d.chart.options.scale,i=h.minorTM,g=h.min,n=h.max,f=h.majorTM,l;l=h.axisPosition;var T=h.minorTMHeight,p=h.majorTMHeight,o=h.connectorColor,J=h.connectorThickness,v=h.minorTMColor,A=h.minorTMThickness,
y=h.majorTMColor,D=h.majorTMThickness,x=h.tickMarkDistance,m=h.tickValueDistance,P=h.placeTicksInside,la=h.placeValuesInside,Aa,z=Math.max(p,T),e=b.g("scale").add(e),t=ra,u=h.reverseScale,G=0,q=0,w=0,s=0,B=0,N=0,K=Aa=0,S=0,C=0,E=0,Q=0,H=0,I=0,R=0,F=0,O=n-g,V=A/2,U=D/2;P?(x=-x,p=-p,T=-T,la?(z=-z,m=-m):z=-x):la&&(z=-x,m=-m);u&&(O=-O,g=n);switch(l){case 1:G=a/O;s=-x;N=s-U;K=s-V;C=s-p;Q=s-T;I=s-z-m;break;case 2:q=c/O;w=x;B=w+U;Aa=w+V;S=w+p;E=w+T;H=w+z+m;t=la?na:pa;R=a;break;case 3:G=a/O;s=x;N=s+U;K=s+
V;C=s+p;Q=s+T;I=s+z+m;F=c;break;case 4:q=c/O,w=-x,B=w-U,Aa=w-V,S=w-p,E=w-T,H=w-z-m,t=la?pa:na}if(!d.minorTM)d.minorTM=[];if(!d.majorTM)d.majorTM=[];if(!d.tmLabel)d.tmLabel=[];e.translate(R,F);if(T){a=0;for(c=i.length;a<c;a+=1)l=i[a]-g,n=l*G,l*=q,p=b.crispLine(["M",n+Aa,l+K,"L",n+E,l+Q],A),d.minorTM[a]=b.path(p).attr({stroke:v,"stroke-linecap":"round","stroke-width":A}).add(e)}a=0;for(c=f.length;a<c;a+=1)v=f[a],l=v.value-g,i=v.displayValue,n=l*G,l*=q,T&&(p=b.crispLine(["M",n+B,l+N,"L",n+S,l+C],A),
d.majorTM[a]=b.path(p).attr({stroke:y,"stroke-linecap":"round","stroke-width":D}).add(e)),i!==r&&(Aa=a==0||a==c-1?h.limitValues.style:h.tickValues.style,K=v.labelX||0,E=v.labelY||0,d.tmLabel[a]=b.text(i,n+H+K,l+I+E).attr({align:j(v.align,t)}).css(Aa).add(e));J&&(p=b.crispLine(["M",w,s,"L",O*G+w,O*q+s],D),b.path(p).attr({stroke:o,"stroke-linecap":"round","stroke-width":J}).add(e));return e},ga={paletteColors:[["8BBA00","F6BD0F","FF654F","AFD8F8","FDB398","CDC309","B1D0D2","FAD1B9","B8A79E","D7CEA5",
"C4B3CE","E9D3BE","EFE9AD","CEA7A2","B2D9BA"],["8BBA00","F6BD0F","FF654F","AFD8F8","FDB398","CDC309","B1D0D2","FAD1B9","B8A79E","D7CEA5","C4B3CE","E9D3BE","EFE9AD","CEA7A2","B2D9BA"],["8BBA00","F6BD0F","FF654F","AFD8F8","FDB398","CDC309","B1D0D2","FAD1B9","B8A79E","D7CEA5","C4B3CE","E9D3BE","EFE9AD","CEA7A2","B2D9BA"],["8BBA00","F6BD0F","FF654F","AFD8F8","FDB398","CDC309","B1D0D2","FAD1B9","B8A79E","D7CEA5","C4B3CE","E9D3BE","EFE9AD","CEA7A2","B2D9BA"],["8BBA00","F6BD0F","FF654F","AFD8F8","FDB398",
"CDC309","B1D0D2","FAD1B9","B8A79E","D7CEA5","C4B3CE","E9D3BE","EFE9AD","CEA7A2","B2D9BA"]],bgColor:["CBCBCB,E9E9E9","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:["50,50","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],
tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendDarkColor:["333333","60634E","025B6A","A15E01","68001B"],trendLightColor:["f1f1f1","F3F5DD","EDFBFE","FFF5E8","FFD1DD"],pointerBorderColor:["545454","60634E","415D6F","845001","68001B"],pointerBgColor:["545454","60634E","415D6F","845001","68001B"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454",
"545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["ffffff","ffffff","ffffff","ffffff","ffffff"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotFillColor:["767575","D8DCC5",
"99C4CD","DEC49C","FEC1D0"],plotBorderColor:["999999","8A8A8A","6BA9B6","C1934D","FC819F"],msgLogColor:["717170","7B7D6D","92CDD6","965B01","68001B"],TrendLightShadeOffset:30};ba.prototype={getColor:function(){var a=this.paletteId,c=this.defaultGaugePaletteOptions.paletteColors[a][this._iterator];this._iterator+=1;if(this._iterator==this.defaultGaugePaletteOptions.paletteColors[a].length-1)this._iterator=0;return c},get2DBgColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?
V(c,35)+m+V(c,10):this.defaultGaugePaletteOptions.bgColor[a]},get2DBgAlpha:function(){return this.defaultGaugePaletteOptions.bgAlpha[this.paletteId]},get2DBgAngle:function(){return this.defaultGaugePaletteOptions.bgAngle[this.paletteId]},get2DBgRatio:function(){return this.defaultGaugePaletteOptions.bgRatio[this.paletteId]},getTickColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?E(c,90):this.defaultGaugePaletteOptions.tickColor[a]},getTrendDarkColor:function(){var a=this.paletteId,
c=this.themeColor;return this.isTheme?E(c,90):this.defaultGaugePaletteOptions.trendDarkColor[a]},getTrendLightColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?V(c,this.defaultGaugePaletteOptions.TrendLightShadeOffset):this.defaultGaugePaletteOptions.trendLightColor[a]},get2DCanvasBgColor:function(){return this.defaultGaugePaletteOptions.canvasBgColor[this.paletteId]},get2DCanvasBgAngle:function(){return this.defaultGaugePaletteOptions.canvasBgAngle[this.paletteId]},get2DCanvasBgAlpha:function(){return this.defaultGaugePaletteOptions.canvasBgAlpha[this.paletteId]},
get2DCanvasBgRatio:function(){return this.defaultGaugePaletteOptions.canvasBgRatio[this.paletteId]},get2DCanvasBorderColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?E(c,80):this.defaultGaugePaletteOptions.canvasBorderColor[a]},get2DCanvasBorderAlpha:function(){return this.defaultGaugePaletteOptions.canvasBorderAlpha[this.paletteId]},get2DAltHGridColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?V(c,20):this.defaultGaugePaletteOptions.altHGridColor[a]},
get2DAltHGridAlpha:function(){return this.defaultGaugePaletteOptions.altHGridAlpha[this.paletteId]},get2DAltVGridColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?V(c,80):this.defaultGaugePaletteOptions.altVGridColor[a]},get2DAltVGridAlpha:function(){return this.defaultGaugePaletteOptions.altVGridAlpha[this.paletteId]},get2DToolTipBgColor:function(){return this.defaultGaugePaletteOptions.toolTipBgColor[this.paletteId]},get2DToolTipBorderColor:function(){var a=this.paletteId,
c=this.themeColor;return this.isTheme?E(c,80):this.defaultGaugePaletteOptions.toolTipBorderColor[a]},get2DBaseFontColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?c:this.defaultGaugePaletteOptions.baseFontColor[a]},get2DBorderColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?E(c,60):this.defaultGaugePaletteOptions.borderColor[a]},get2DBorderAlpha:function(){return this.defaultGaugePaletteOptions.borderAlpha[this.paletteId]},get2DLegendBgColor:function(){return this.defaultGaugePaletteOptions.legendBgColor[this.paletteId]},
get2DLegendBorderColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?E(c,80):this.defaultGaugePaletteOptions.legendBorderColor[a]},get2DPlotGradientColor:function(){return this.defaultGaugePaletteOptions.plotGradientColor[this.paletteId]},get2DPlotBorderColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?E(c,85):this.defaultGaugePaletteOptions.plotBorderColor[a]},get2DPlotFillColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?
E(c,85):this.defaultGaugePaletteOptions.plotFillColor[a]},get2DMsgLogColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?V(c,80):this.defaultGaugePaletteOptions.msgLogColor[a]},getDialColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?E(c,95)+",FFFFFF,"+E(c,95):this.defaultGaugePaletteOptions.dialColor[a]},getDialBorderColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?E(c,95)+",FFFFFF,"+E(c,95):this.defaultGaugePaletteOptions.dialBorderColor[a]},
getPivotColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?V(c,95)+",FFFFFF,"+V(c,95):this.defaultGaugePaletteOptions.pivotColor[a]},getPivotBorderColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?E(c,95)+",FFFFFF,"+E(c,95):this.defaultGaugePaletteOptions.pivotBorderColor[a]},getPointerBorderColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?E(c,75):this.defaultGaugePaletteOptions.pointerBorderColor[a]},getPointerBgColor:function(){var a=
this.paletteId,c=this.themeColor;return this.isTheme?E(c,75):this.defaultGaugePaletteOptions.pointerBgColor[a]},getThmBorderColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?E(c,90):this.defaultGaugePaletteOptions.thmBorderColor[a]},getThmFillColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?V(c,55):this.defaultGaugePaletteOptions.thmFillColor[a]},getCylFillColor:function(){var a=this.paletteId,c=this.themeColor;return this.isTheme?V(c,55):this.defaultGaugePaletteOptions.cylFillColor[a]},
getPeriodColor:function(){return this.isTheme?V(this.themeColor,10):this.defaultGaugePaletteOptions.periodColor[this.paletteId]},getWinColor:function(){return this.defaultGaugePaletteOptions.winColor[this.paletteId]},getLossColor:function(){return this.defaultGaugePaletteOptions.lossColor[this.paletteId]},getDrawColor:function(){return this.defaultGaugePaletteOptions.drawColor[this.paletteId]},getScoreLessColor:function(){return this.defaultGaugePaletteOptions.scorelessColor[this.paletteId]},reset:function(){this._iterator=
0},parseColorMix:function(a,c){var b=[],c=c.replace(/\s/g,r),c=c.toLowerCase();if(c==""||c==null||c==void 0)b=[a];else{var d,e,h=c.split(",");for(d=0;d<h.length;d++)h[d]=h[d].replace("{",""),h[d]=h[d].replace("}",""),h[d]=="color"?b.push(a):h[d].substr(0,5)=="light"?(e=h[d].indexOf("-"),e=e==-1?1:h[d].substr(e+1,h[d].length-e),e=100-e,b.push(V(a,e))):h[d].substr(0,4)=="dark"?(e=h[d].indexOf("-"),e=e==-1?1:h[d].substr(e+1,h[d].length-e),e=100-e,b.push(E(a,e))):b.push(h[d])}return b},parseAlphaList:function(a,
c){var b=[],d=[],b=a.split(","),e,h=100,i;for(i=0;i<c;i++)e=f(b[i]),O(e)&&(h=e),d[i]=h;return d.join()},parseRatioList:function(a,c){var b=[],d=[],b=a.split(","),e=0,h,i;for(i=0;i<c;i++)h=b[i],h=isNaN(h)||h==void 0?0:Math.abs(Number(h)),h=h>100?100:h,d[i]=h,e+=h;e=e>100?100:e;if(b.length<c)for(i=b.length;i<c;i++)d[i]=(100-e)/(c-b.length);d[-1]=0;return d.join()}};ba.prototype.constructor=ba;Y=R.setOptions({}).plotOptions;I.prototype={numDecimals:function(a){a=ab(a,10);a=Math.abs(a);a=ab(a-Math.floor(a),
10);a=String(a).length-2;return a<0?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 c=360-((a%=360)<0?a+360:a);return c==360?0:c},getAngularPoint:function(a,c,b,d){d*=Math.PI/180;return{x:a+b*Math.cos(d),y:c-b*Math.sin(d)}},remainderOf:function(a,c){return cb(a%c)},boundAngle:function(a){return a>=0?remainderOf(a,360):360-remainderOf(Math.abs(a),
360)},toNearestTwip:function(a){var c=Math.round(Math.abs(a)*100),b=Math.floor(c/5);return(a<0?-1:1)*((Number(String(c-b*5))>2?b*5+5:b*5)/100)},roundUp:function(a,c){var b=Math.pow(10,c==void 0?2:c);a*=b;a=Math.round(Number(String(a)));a/=b;return a}};I.prototype.constructor=I;window.MathExt=I;var gb=function(a,c,b,d,e){var h=a[Z].smartLabel,i=c.chart,g=a.chart,n,k,l=0,c=a.title,j=a.subtitle,p=c.text,o=j.text,e=f(i.captionpadding,e,2),J=0,v=0,A=l=0,y=f(i.captiononright,0),D=t(i.captionposition,"top").toLowerCase(),
x=0,i={left:0,right:0};if(p!==r)n=c.style,J=f(parseInt(n.fontHeight,10),parseInt(n.lineHeight,10),12),A=f(parseInt(n.fontSize,10),10);if(o!==r)k=j.style,v=f(parseInt(k.fontHeight,10),parseInt(k.lineHeight,10),12),l=f(parseInt(k.fontSize,10),10);if(J>0||v>0){h.setStyle(n);n=h.getSmartText(c.text,b,d);if(n.width>0)n.width+=2,x=n.height;h.setStyle(k);h=h.getSmartText(j.text,b,d-x);h.width>0&&(h.width+=2);switch(D){case "middle":c.y=d/2+(A-(l>0?l+0:0))/2;c.y=d/2-h.height/2;j.y=c.y+0+l;break;case "bottom":j.y=
d-g.marginBottom-g.marginTop;c.y=j.y-(h.height>0?h.height+0:0);break;default:c.y=A-0,j.y=n.height+l}l=Math.max(n.width,h.width);a.title.text=n.text;a.subtitle.text=h.text;l>0&&(l+=e);a=Math.min(l,b);y?(c.align=j.align=na,i.right=a,c.x=n.width-l+e,j.x=h.width-l+e):(c.align=j.align=pa,i.left=a,c.x=l-n.width-e,j.x=l-h.width-e)}return i},hb=function(a,c,b,d,e){var h=a.chart,i=c.chart,c=a.title,g=f(i.captionpadding,2),i=f(i.captiononright,0),a=a.subtitle;h.spacingRight=h.spacingLeft=0;O(d)||(d=0);O(e)||
(e=0);i?(b-=h.marginRight,a.align=c.align=pa,c.x=a.x=b+g+e+2):(b-=h.marginLeft,a.align=c.align=na,c.x=a.x=h.spacingLeft-b-g-d-2)},ib=function(a,c,b,d,e){this.userMin=a;this.userMax=c;this.numMajorTM=f(d.majorTMNumber,-1);this.numMinorTM=f(d.minorTMNumber,5);this.adjustTM=d.adjustTM;this.tickValueStep=f(d.tickValueStep,1);this.showLimits=f(d.showLimits,1);this.showTickValues=f(d.showTickValues,1);this.nf=e;this.stopMaxAtZero=b;this.setMinAsZero=!d.setAdaptiveMin;this.upperLimitDisplay=d.upperLimitDisplay;
this.lowerLimitDisplay=d.lowerLimitDisplay;this.userMaxGiven=this.userMax==null||this.userMax==void 0||this.userMax==""?!1:!0;this.userMinGiven=this.userMin==null||this.userMin==void 0||this.userMin==""?!1:!0;this.majorTM=[];this.minorTM=[];this.MathExt=new I};ib.prototype={setAxisCoords:function(a,c){this.startAxisPos=a;this.endAxisPos=c},calculateLimits:function(a,c){var b=!0,d=!0,e=Number(this.userMax);isNaN(a)&&(a=0.9,d=!1);isNaN(c)&&(c=0,b=!1);if(a==c&&a==0&&(isNaN(e)||e==0))a=0.9;var h=Math.max(Math.floor(Math.log(Math.abs(c))/
Math.LN10),Math.floor(Math.log(Math.abs(a))/Math.LN10)),i=Math.pow(10,h);Math.abs(a)/i<2&&Math.abs(c)/i<2&&(h--,i=Math.pow(10,h));h=Math.pow(10,Math.floor(Math.log(a-c)/Math.LN10));a-c>0&&i/h>=10&&(i=h);var h=(Math.floor(a/i)+1)*i,g;c<0?g=-1*(Math.floor(Math.abs(c/i))+1)*i:this.setMinAsZero?g=0:(g=Math.floor(Math.abs(c/i)-1)*i,g=g<0?0:g);this.stopMaxAtZero&&a<=0&&(h=0);this.max=this.userMaxGiven==!1||this.userMaxGiven==!0&&e<a&&d?h:e;this.min=this.userMinGiven==!1||this.userMinGiven==!0&&Number(this.userMin)>
c&&b?g:Number(this.userMin);if(this.min>this.max)if(this.min==Number(this.userMin)&&this.max==e)b=this.min,this.min=this.max,this.max=b;else if(this.min==Number(this.userMin))this.max=this.min+1;else{if(this.max==e)this.min=this.max-1}else if(this.min==this.max)this.max=this.min+1;this.range=Math.abs(this.max-this.min);this.interval=i;this.calcTickInterval()},calcTickInterval:function(){if(this.numMajorTM!=-1&&this.numMajorTM<2)this.numMajorTM=2;if(this.userMinGiven==!1&&this.userMaxGiven==!1&&this.numMajorTM!=
-1){this.numMajorTM=this.numMajorTM==-1?5:this.numMajorTM;var a=this.getDivisibleRange(this.min,this.max,this.numMajorTM,this.interval,!0),c=a-this.range;this.range=a;this.max>0?this.max+=c:this.min-=c}else if(this.numMajorTM=this.numMajorTM==-1?5:this.numMajorTM,this.adjustTM==!0){for(var a=0,c=1,b;;){b=this.numMajorTM+a*c;b=b==0?1:b;if(this.isRangeDivisible(this.range,b,this.interval))break;a=c==-1||a>this.numMajorTM?++a:a;if(a>25){b=this.numMajorTM;break}c=a<=this.numMajorTM?c*-1:1}this.numMajorTM=
b>1?b:this.numMajorTM}this.majorTickInt=(this.max-this.min)/(this.numMajorTM-1)},isRangeDivisible:function(a,c,b){return this.MathExt.numDecimals(a/(c-1))>this.MathExt.numDecimals(b)?!1:!0},getDivisibleRange:function(a,c,b,d,e){if(b<3)return this.range;a=Math.abs(c-a);c=a/(b-1);this.isRangeDivisible(a,b,d)||(e&&Number(c)/Number(d)<(d>1?2:0.5)&&(d/=10),c=(Math.floor(c/d)+1)*d,a=c*(b-1));return a},calculateTicks:function(){this.majorTM=[];this.minorTM=[];for(var a=0,c,b,d=this.numMajorTM,e=this.numMinorTM,
h=this.nf,i=this.tickValueStep,g=u(this.lowerLimitDisplay),n=u(this.upperLimitDisplay),k=this.majorTickInt,l=this.min,j=this.showTickValues,p=!1,o=f(this.showLimits,j);a<d;a+=1)c=ab(Number(l+k*a),10),b=h.scale(c),p=!1,a%i!==0&&a!==d-1?b=r:a==0||a==d-1?o?a==0&&g?(b=g,p=!0):a==d-1&&n&&(b=n,p=!0):b=r:j||(b=r),this.majorTM.push({displayValue:b,isString:p,value:c});b=k/(e+1);for(a=0;a<d-1;a+=1)for(c=1;c<=e;c+=1)this.minorTM.push(this.majorTM[a].value+b*c)},returnDataAsTick:function(a,c){var b={};b.value=
a;b.displayValue=this.nf.dataLabels(a);b.showValue=c;return b},getMax:function(){return this.max},getMin:function(){return this.min},getMajorTM:function(){return this.majorTM},getMinorTM:function(){return this.minorTM},getAxisPosition:function(a){if(this.startAxisPos==void 0||this.endAxisPos==void 0)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(this.startAxisPos==void 0||this.endAxisPos==void 0)throw Error("Cannot calculate value, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");var c,b;c=this.max-this.min;b=a-this.startAxisPos;return b/(b+(this.endAxisPos-a))*c+this.min}};s("gaugebase",{creditLabel:aa,defaultGaugePaletteOptions:ga,multiValueGauge:!1,decimals:2,formatnumberscale:0,drawAnnotations:!0,useScaleRecursively:!0,
init:function(a,c,b){var d=b.jsVars;this.rtLatestSeriesData=d&&d._rtLastUpdatedData?d._rtLastUpdatedData:null;return s.base.init.apply(this,arguments)},chart:function(a,c){var b=this.name,d=this.dataObj||{},e,h=this.defaultSeriesType,i,g=d.chart||{},n,k;e=jb(d,a,c,this);k=e.chart;e.labels.smartLabel=e[Z].smartLabel=this.smartLabel;this.width=a;this.height=c;i=e.plotOptions;k.useRoundEdges=g.useroundedges==1;k.defaultSeriesType=h;h=g.palette>0&&g.palette<6?g.palette:f(this.paletteIndex,1);h-=1;k.paletteIndex=
h;var l=this.colorM=new ba(h,g.palettethemecolor,this);n=B({},d.colorrange);this.colorRangeGetter=new ma(n.color,void 0,this.defaultGaugePaletteOptions.paletteColors[h],this);k.events.click=e.plotOptions.series.point.events.click=this.linkClickFN;if(j(g.clickurl)!==void 0)k.link=g.clickurl,k.style.cursor="pointer",e.plotOptions.series.point.events.click=function(){k.events.click.call({link:g.clickurl})};var T=j(g.basefont,"Verdana"),p=eb(g.basefontsize,10),o=j(g.basefontcolor,l.get2DBaseFontColor());
n=j(g.outcnvbasefont,T);var J=eb(g.outcnvbasefontsize,p),v=J+Ua,A=j(g.outcnvbasefontcolor,o).replace(/^#?([a-f0-9]+)/ig,"#$1"),y,D;p+=Ua;o=o.replace(/^#?([a-f0-9]+)/ig,"#$1");this.trendStyle=this.outCanvasStyle={fontFamily:n,color:A,fontSize:v};y=ta(this.trendStyle);this.inCanvasStyle={fontFamily:T,fontSize:p,color:o};D=ta(this.inCanvasStyle);e.legend.itemStyle={fontFamily:n,fontSize:v,lineHeight:y,color:A};i.series.dataLabels.style={fontFamily:T,fontSize:p,lineHeight:D,color:o};i.series.dataLabels.color=
i.series.dataLabels.style.color;if(this.isDataLabelBold)i.series.dataLabels.style.fontWeight="bold",delete i.series.dataLabels.style.lineHeight,ta(i.series.dataLabels.style);e.tooltip.style={fontFamily:T,fontSize:p,lineHeight:D,color:o};e.title.style={fontFamily:n,color:A,fontSize:J+3+Ua,fontWeight:"bold"};ta(e.title.style);e.subtitle.style={fontFamily:n,color:A,fontSize:J+f(this.subTitleFontSizeExtender,1)+Ua,fontWeight:t(this.subTitleFontWeight,"bold")};ta(e.subtitle.style);e.chart.trendPointStyle=
{style:this.trendStyle};e.orphanStyles={defaultStyle:{style:B({},this.inCanvasStyle)}};e.chart.colorRangeStyle={style:{fontFamily:T,fontSize:p,lineHeight:D,color:o}};ta(e.chart.colorRangeStyle);k.origW=i=f(g.origw,a);k.origH=T=f(g.origh,c);i=(k.autoScale=p=f(g.autoscale,1))?ua(i,T,a,c):1;this.scaleFactor=k.scaleFactor=i;this.createGaugeAxis&&this.createGaugeAxis(d,e,{fontFamily:n,fontSize:v,lineHeight:y,color:A});this.parseStyles(e);delete e.xAxis.labels.style.backgroundColor;delete e.xAxis.labels.style.borderColor;
delete e.yAxis[0].labels.style.backgroundColor;delete e.yAxis[0].labels.style.borderColor;delete e.yAxis[1].labels.style.backgroundColor;delete e.yAxis[1].labels.style.borderColor;this.showTooltip=f(g.showtooltip,this.showTooltip,1);this.tooltipSepChar=j(g.tooltipsepchar,fb);this.showValues=f(g.showvalues,g.showvalue,this.showValues,1);this.seriesNameInToolTip=f(g.seriesnameintooltip,1);if(!this.showTooltip)e.tooltip.enabled=!1;e.plotOptions.series.connectNullData=f(g.connectnulldata,0);k.backgroundColor=
{FCcolor:{color:j(g.bgcolor,l.get2DBgColor()),alpha:j(g.bgalpha,l.get2DBgAlpha()),angle:j(g.bgangle,l.get2DBgAngle()),ratio:j(g.bgratio,l.get2DBgRatio())}};k.borderRadius=f(g.borderradius,0);n=f(g.showborder,1);k.borderWidth=n?f(g.borderthickness,1):0;k.borderColor=w(j(g.bordercolor,l.get2DBorderColor()),j(g.borderalpha,l.get2DBorderAlpha()));k.plotBackgroundColor=k.plotBorderColor=Ha;k.plotBorderWidth=0;k.plotShadow=0;k.bgSWF=j(g.bgimage,g.bgswf);k.bgSWFAlpha=f(g.bgimagealpha,g.bgswfalpha,100);n=
j(g.bgimagedisplaymode,"none").toLowerCase();v=t(g.bgimagevalign,r).toLowerCase();A=t(g.bgimagehalign,r).toLowerCase();n=="tile"||n=="fill"||n=="fit"?(v!=Ta&&v!=Ma&&v!=bb&&(v=Ma),A!=pa&&A!=Ma&&A!=na&&(A=Ma)):(v!=Ta&&v!=Ma&&v!=bb&&(v=Ta),A!=pa&&A!=Ma&&A!=na&&(A=pa));k.bgImageDisplayMode=n;k.bgImageVAlign=v;k.bgImageHAlign=A;k.bgImageScale=f(g.bgimagescale,100);k.logoURL=t(g.logourl);k.logoPosition=j(g.logoposition,"tl").toLowerCase();k.logoAlpha=f(g.logoalpha,100);k.logoLink=t(g.logolink);k.logoScale=
f(g.logoscale,100);k.logoLeftMargin=f(g.logoleftmargin,0);k.logoTopMargin=f(g.logotopmargin,0);k.annRenderDelay=t(g.annrenderdelay);n=e.tooltip.style;e.tooltip.backgroundColor=w(j(n.backgroundColor,g.tooltipbgcolor,g.hovercapbgcolor,g.hovercapbg,l.get2DToolTipBgColor()),j(g.tooltipbgalpha,100));e.tooltip.borderColor=w(j(n.borderColor,g.tooltipbordercolor,g.hovercapbordercolor,g.hovercapborder,l.get2DToolTipBorderColor()),j(g.tooltipborderalpha,100));e.tooltip.shadow=g.showtooltipshadow==Ea?{enabled:!0,
opacity:f(ya(g.tooltipbgalpha,g.tooltipborderalpha),100)/100}:!1;e.tooltip.borderWidth=f(g.tooltipborderthickness,1);if(g.tooltipborderradius)e.tooltip.borderRadius=f(g.tooltipborderradius,1);e.tooltip.style.padding=f(g.tooltippadding,this.tooltippadding,2);if(g.tooltipcolor)n.color=da(g.tooltipcolor);n.backgroundColor=void 0;n.borderColor=void 0;n.border=void 0;k.rotateValues=f(g.rotatevalues,0);k.placeValuesInside=f(g.placevaluesinside,0);k.valuePosition=g.valueposition;k.valuePadding=f(g.valuepadding,
4);e.plotOptions.series.shadow=f(g.showshadow,g.showcolumnshadow,this.defaultPlotShadow,fa.showShadow[h]);if(k.useRoundEdges)e.plotOptions.series.shadow=f(g.showshadow,g.showcolumnshadow,1),e.plotOptions.series.borderRadius=1,e.tooltip.borderRadius=2;e.title.text=u(g.caption);e.subtitle.text=u(g.subcaption);if(g.showtooltip==Da)e.tooltip.enabled=!1;h=f(g.plotspacepercent,20);if(h>80||h<0)h=20;this.plotSpacePercent=e.plotOptions.series.groupPadding=h/200;this.parseExportOptions(e);k.dataStreamURL=
j(g.datastreamurl,"");k.refreshInterval=f(g.refreshinterval,1);k.dataStamp=g.datastamp;h=f(g.showgaugeborder,1);k.gaugeBorderColor=j(g.gaugebordercolor,this.gaugeBorderColor,"333333");k.gaugeBorderThickness=h?f(g.gaugeborderthickness,this.gaugeBorderThickness,2):0;k.gaugeBorderAlpha=j(g.gaugeborderalpha,oa);k.gaugeFillColor=j(g.gaugefillcolor,g.ledbgcolor,"000000");k.useSameFillColor=f(g.usesamefillcolor,0);k.useSameFillBgColor=f(g.usesamefillbgcolor,k.useSameFillColor);k.colorRangeFillMix=Ca(g.colorrangefillmix,
g.gaugefillmix,this.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}");k.colorRangeFillRatio=Ca(g.colorrangefillratio,g.gaugefillratio,this.colorRangeFillRatio,g.gaugefillratio,"0,10,80,10");k.showColorRangeBorder=f(g.showcolorrangeborder,g.showgaugeborder,this.showColorRangeBorder,0);k.colorRangeBorderColor=j(g.colorrangebordercolor,g.gaugebordercolor,"{dark-20}");k.colorRangeBorderThickness=h?f(g.colorrangeborderthickness,g.gaugeborderthickness,1):0;k.colorRangeBorderAlpha=f(g.colorrangeborderalpha,
g.gaugeborderalpha,100);k.roundRadius=f(g.roundradius,g.gaugeroundradius,0);k.showShadow=f(g.showshadow,1);k.gaugeType=f(g.gaugetype,this.gaugeType,1);this.preSeriesAddition&&this.preSeriesAddition(e,d,a,c);this.series(d,e,b,a,c);this.postSeriesAddition&&this.postSeriesAddition(e,d,a,c);this.configureAxis&&this.configureAxis(e,d);this.spaceManager&&this.spaceManager(e,d,a,c);this.updateSnapPoints&&this.updateSnapPoints(e);this.latestDataUpdater&&this.latestDataUpdater(e,d,a,c);window.console&&window.console.log&&
window.FC_DEV_ENVIRONMENT&&console.log(e);return e},latestDataUpdater:function(a){var c=this.chartInstance,a=(a=a.series&&a.series)&&a[0]&&a[0].data,b,d,e;if((c=c&&c.jsVars&&c.jsVars._rtLastUpdatedData)&&a){b=0;for(d=c.values&&c.values.length;b<d;b+=1)if(e=a[b])e.y=c.values[b],e.displayValue=c.labels[b],e.toolText=c.toolTexts[b]}},styleApplicationDefinition_font:function(a,c,b){var d,e=!1,h,i,g,n=this.styleMapForFont;switch(c){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;e=!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[Z].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[c]=a={text:"",style:{}}}if(typeof a==="object")if(a instanceof Array){h=0;for(i=a.length;h<i;h+=1){g=a[h];for(d in b)if(c=d.toLowerCase(),typeof n[c]==="function")n[c](b[d],g,e);ta(g.style)}}else{for(d in b)if(c=d.toLowerCase(),typeof n[c]==="function")n[c](b[d],a,e);ta(a.style)}},createGaugeAxis:function(a,c,b){var a=a.chart,d=
this.colorM,e=this.numberFormatter,h=this.isHorizontal?f(a.ticksbelowgauge,a.ticksbelowgraph,this.ticksbelowgauge,1)?3:1:f(a.ticksonright,this.ticksOnRight,1)?2:4,d=j(a.majortmcolor,d.getTickColor()),i=f(a.majortmalpha,100),g=f(f(a.majortmheight)*this.scaleFactor,this.majorTMHeight,6),n=f(a.tickvaluestep,a.tickvaluesstep,1),k=f(a.showtickmarks,1),l=k?f(a.connecttickmarks,this.connectTickMarks,1):0,T=f(a.showtickvalues,k),p=f(a.majortmthickness,1),o=f(e.getCleanValue(a.upperlimit)),e=f(e.getCleanValue(a.lowerlimit)),
J=f(a.reversescale,0)==1;this.isHorizontal||(J=!J);n=n<1?1:n;c.scale={min:null,max:null,axisPosition:h,showTickMarks:k,showTickValues:T,showLimits:f(a.showlimits,T),adjustTM:Boolean(f(a.adjusttm,1)),majorTMNumber:f(a.majortmnumber,-1),majorTMColor:w(d,i),majorTMHeight:k?g:0,majorTMThickness:p,minorTMNumber:f(a.minortmnumber,this.minorTMNumber,4),minorTMColor:w(j(a.minortmcolor,d),f(a.minortmalpha,i)),minorTMHeight:k?f(f(a.minortmheight,a.minortmwidth)*this.scaleFactor,Math.round(g/2)):0,minorTMThickness:f(a.minortmthickness,
1),tickMarkDistance:f(f(a.tickmarkdistance,a.tickmarkgap)*this.scaleFactor,this.tickMarkDistance,3),tickValueDistance:f(f(a.tickvaluedistance,a.displayvaluedistance)*this.scaleFactor,2)+2,placeTicksInside:f(a.placeticksinside,0),placeValuesInside:f(a.placevaluesinside,0),tickValueStep:n,setAdaptiveMin:f(a.setadaptivemin,0),upperLimit:o,lowerLimit:e,upperLimitDisplay:t(a.upperlimitdisplay),lowerLimitDisplay:t(a.lowerlimitdisplay),reverseScale:J,connectorColor:w(j(a.connectorcolor,d),f(a.connectoralpha,
i)),connectorThickness:l?f(a.connectorthickness,p):0,majorTM:[],minorTM:[],trendPoint:[],labels:{style:B({},b)},tickValues:{style:B({},b)},limitValues:{style:B({},b)}}},configureAxis:function(a,c){var x;var b=c.chart,d,e,h,i,g=this.colorM,n,k,l,T,p,o=this.colorRangeGetter,J=(o=o&&o.colorArr)&&o.length;e=o&&o[0];d=o&&o[J-1];i=this.minDataValue;k=this.maxDataValue;o=a.scale;l=o.lowerLimit;T=o.upperLimit;var J=this.numberFormatter,v;if(a.series[0]&&(O(i)&&O(k)?(l=l<=i?l:e&&e.minvalue,T=T>=k?T:d&&d.maxvalue):
(l=f(l,e&&e.minvalue),T=f(T,d&&d.maxvalue)),d=new ib(l,T,!1,o,this.numberFormatter),d.calculateLimits(this.maxDataValue,this.minDataValue),d.calculateTicks(),o.majorTM=d.getMajorTM(),o.minorTM=d.getMinorTM(),e=o.min=d.min,x=o.max=d.max,d=x,c.trendpoints&&(h=c.trendpoints.point)&&(n=h.length)>0)){o.trendPoint=[];for(k=0;k<n;k+=1)i=h[k],p=f(i.dashed,0)?F(j(Math.max(i.dashlen,i.thickness),4),j(i.dashgap,3),f(i.thickness,1)):void 0,l=f(i.startvalue,i.value),T=f(i.endvalue,l),v=l!==T,l<=d&&l>=e&&T<=d&&
T>=e&&(o.trendPoint.push({style:B(B(a.chart.trendPointStyle.style),{}),startValue:l,endValue:T,displayValue:t(u(i.displayvalue),v?r:J.scale(l)),showOnTop:f(i.showontop,b.ticksbelowgauge,b.ticksbelowgraph,1),color:j(i.color,g.getTrendLightColor()),alpha:f(i.alpha,99),thickness:f(i.thickness,1),dashStyle:p,useMarker:f(i.usemarker,0),markerColor:w(j(i.markercolor,i.color,g.getTrendLightColor()),100),markerBorderColor:w(j(i.markerbordercolor,i.bordercolor,g.getTrendDarkColor()),100),markerRadius:f(f(i.markerradius)*
this.scaleFactor,5),markerToolText:W(i.markertooltext),trendValueDistance:f(f(i.trendvaluedistance,b.trendvaluedistance)*this.scaleFactor,o.tickValueDistance),isZone:v,valueInside:f(i.valueinside,b.placevaluesinside,0),showBorder:f(i.showborder,1),borderColor:w(j(i.bordercolor,i.color,g.getTrendDarkColor()),f(i.borderalpha,i.alpha,100)),radius:f(f(i.radius)*this.scaleFactor),innerRadius:f(f(i.innerradius)*this.scaleFactor)}),wa(j(i.bordercolor,i.color,g.getTrendDarkColor())));this.defaultSeriesType===
"lineargauge"&&q.stableSort&&q.stableSort(o.trendPoint,function(a,b){return a.startValue-b.startValue})}},placeTickMark:function(a,c,b){var d=this.smartLabel,e=a.chart,h=this.width-(e.marginRight+e.marginLeft),i=this.height-(e.marginTop+e.marginBottom),a=a.scale,g=a.min,n=a.max,k=a.axisPosition,l=a.showLimits,j=a.showTickValues,p=a.tickMarkDistance,o=a.tickValueDistance,J=Math.max(a.majorTMHeight,a.minorTMHeight),v=a.placeTicksInside,A=a.placeValuesInside,y=a.reverseScale,D=0,x=0,m=1,P,la=a.majorTM.length-
1,r=k===2||k===4?!1:!0,z=6,c=r?i-b:h-c,b=0,t=a.tickValues.style,q=a.limitValues.style;a.majorTM[0]&&a.majorTM[1]&&(P=a.majorTM[1].value-a.majorTM[0].value);v||(D+=p+J);if(j||l){d.setStyle(q);l=f(parseInt(q.fontSize,10),10);j=f(parseInt(q.lineHeight,10),12);j/=2;A||(D+=o);k===3&&(x=l);r?(i=c-D,h=h/(n-g)*P/2+6):(h=c-D,i=i/(n-g)*P+j);if(a.majorTM[0]){P=a.majorTM[0];if(P.isString){if(P.displayValue)g=d.getSmartText(P.displayValue,h,i),P.displayValue=g.text,P._oriText=g.oriText,r?(b=Math.max(b,g.height),
P.labelY=k===1&&!A||k===3&&A?l-g.height:x,z=Math.min(6,g.width/2)):(b=Math.max(b,g.width),P.labelY=l-(y?g.height-j:j),P.labelX=0)}else m=0;if(r)y?(P.labelX=z,P.align=na):(P.labelX=-z,P.align=pa)}if(a.majorTM[la]){P=a.majorTM[la];if(P.isString){if(P.displayValue)g=d.getSmartText(P.displayValue,h,i),P.displayValue=g.text,P._oriText=g.oriText,r?(b=Math.max(b,g.height),P.labelY=k===1&&!A||k===3&&A?l-g.height:x,z=Math.min(6,g.width/2)):(b=Math.max(b,g.width),P.labelY=l-(y?j:g.height-j),P.labelX=0)}else z=
6,la+=1;if(r)y?(P.labelX=-z,P.align=pa):(P.labelX=z,P.align=na)}for(;m<la;m++)if(m==0||m==la-1?(d.setStyle(q),l=f(parseInt(q.fontSize,10),10),j=f(parseInt(q.lineHeight,10),12)):(d.setStyle(t),l=f(parseInt(t.fontSize,10),10),j=f(parseInt(t.lineHeight,10),12)),r&&(x=k===1&&A||k===3&&!A?l:0),P=a.majorTM[m],P.displayValue)P.labelX=f(P.labelX,0),r?(b=Math.max(b,j),P.labelY=x):(g=d.getOriSize(P.displayValue),b=Math.max(b,g.width),P.labelY=l-g.height/2)}d=D;A||(D+=b);D=Math.min(c,D);a._labelUsedSpace=A?
b:D-d;switch(k){case 1:e.marginTop+=D;break;case 2:e.marginRight+=D;break;case 3:e.marginBottom+=D;break;case 4:e.marginLeft+=D}return D},eiMethods:{feedData:function(a){var c=this.jsVars,b=c.instanceAPI,d=b.hcInstance&&b.hcInstance.series&&b.hcInstance.series[0],e,h;if(this.isActive()&&b&&b.linearDataParser&&(h=b.linearDataParser(a,b.multisetRealtime))){e=this.getDataJSON();b.realtimeUpdate?b.realtimeUpdate(h):d&&d.realtimeUpdate(h);c._rtLastUpdatedData=b.multisetRealtime?h:this.getDataJSON();ha.raiseEvent("RealTimeUpdateComplete",
{data:a,prevData:e.values,source:"feedData",url:null},c.fcObj);try{window.FC_ChartUpdated&&window.FC_ChartUpdated(c.fcObj.id)}catch(i){setTimeout(function(){throw i;},0)}return!0}return!1},getData:function(){var a,c=(a=this.jsVars)&&(a=a.instanceAPI)&&(a=a.hcInstance)&&(a=a.series)&&(a=a[0])&&a.data;if(a=c&&c[0])return f(a.value,a.y);return null},setData:function(a,c){var b="";if(a&&a.toString||a===""||a===0)b="value="+a.toString();if(c&&c.toString||c==="")b=b+"&label="+c.toString();b&&this.feedData(b)},
stopUpdate:function(a){var c=this.__state,b,d;d=(b=jQuery(this.jsVars.hcObj["cache-realtime-update-menu"]))&&jQuery(b.children().children().get(0));b=b&&jQuery(b.children().children().get(1));d&&d.hide();b&&b.show();clearTimeout(c._toRealtime);c._rtAjaxObj&&c._rtAjaxObj.abort();c._rtPaused=!0;ha.raiseEvent("RealimeUpdateStopped",{source:a},this)},restartUpdate:function(){var a=this.__state,c,b;b=(c=jQuery(this.jsVars.hcObj["cache-realtime-update-menu"]))&&jQuery(c.children().children().get(0));c=
c&&jQuery(c.children().children().get(1));b&&b.show();c&&c.hide();if(a._rtDataUrl&&a._rtPaused)a._rtPaused=!1,a._rtAjaxObj.get(a._rtDataUrl)},isUpdateActive:function(){return!this.__state._rtPaused},clearChart:function(a){var c=this.jsVars,b,d,a=a&&a.toString&&a.toString();if((b=c.instanceAPI)&&(b=b.hcInstance)&&(d=b.series)&&(b=d[0])&&(b=b.chart)&&(b=b.options)&&(b=b.scale))c=b.min,isNaN(c)||(this.feedData("&showLabel=0&value="+c),q.raiseEvent("ChartCleared",{source:a},this,[this.id,a]))},getDataJSON:function(){var a=
0,c,b,d=[],e=[],h=[],i=(c=this.jsVars)&&(c=c.instanceAPI)&&(c=c.hcInstance)&&(c=c.series)&&(c=c[0])&&c.data;for(c=!i||!i.length?0:i.length;a<c;a+=1)b=i[a],d.push(f(b.value,b.y)),e.push(b.dataLabel&&b.dataLabel.textStr||""),h.push(b.toolText||"");return{values:d,labels:e,toolTexts:h}}},linearDataParser:function(a,c){var b={values:",",colors:",",toolTexts:",",links:",",valueVisibility:","},d=this.chartInstance,e,h,i,g,n,f={},l=0,a=a&&a.toString&&a.toString()||"";e=a.split("&");g=0;for(n=e.length;g<
n;g+=1)if(h=e[g].split("="),i=h[1],h=h[0],!(h===r||h===void 0||i===void 0||i===r&&!c))switch(h=h.toLowerCase(),h){case "label":f.labels=i.split(",");break;case "vline":f.vlines=i.split(",");break;case "vlinelabel":f.vlineLabels=i.split(",");break;case "vlinecolor":f.vlineColors=i.split(",");break;case "vlinethickness":f.vlineThickness=i.split(",");break;case "vlinedashed":f.vlineDashed=i.split(",");break;case "value":f.values=i.split("|");l=1;break;case "showlabel":f.showLabels=i.split(",");break;
case "showvalue":f.valueVisibility=i.split("|");break;case "tooltext":f.toolTexts=i.split("|");break;case "link":f.links=i.split("|");break;case "color":f.colors=i.split("|");break;case "datastamp":f.dataStamp=i;break;case "stopupdate":f.pause=i=="1";break;case "clear":f.clear=i=="1";break;default:f[h]=i}if(c){if(!f.values)f.values=[];for(g=f.values.length;g--;){for(h in b)f[h]?f[h][g]&&(f[h][g]=f[h][g].split(",")):f[h]=[];l=ya(f.values[g].length,l)}}f.labels&&(l=ya(l,f.labels.length));f.dimension=
l;f.pause&&d.stopUpdate&&d.stopUpdate("datastream");return f},series:function(a,c){var b={data:[]},d,e,h;c.legend.enabled=!1;d=a.pointers&&a.pointers.pointer?a.pointers.pointer:a.value;d instanceof Array||(d=typeof d!=="object"?[{value:d}]:[d]);h=this.multiValueGauge?d.length:1;for(e=0;e<h;e+=1)b.data.push(this.getPointStub(d[e],e,c,a));c.series[0]=b},pointValueWatcher:function(a){if(a!==null)this.maxDataValue=this.maxDataValue>a?this.maxDataValue:a,this.minDataValue=this.minDataValue<a?this.minDataValue:
a},updateSnapPoints:function(a){var c=a.chart,b=this.width,d=this.height,e=c.marginBottom,a=c.marginLeft,h=c.marginRight,c=c.marginTop,b=xa(this.snapLiterals||(this.snapLiterals={}),{chartstartx:0,chartstarty:0,chartwidth:b,chartheight:d,chartendx:b,chartendy:d,chartcenterx:b/2,chartcentery:d/2,chartbottommargin:e,chartleftmargin:a,chartrightmargin:h,charttopmargin:c,canvasstartx:a,canvasstarty:c,canvaswidth:b-a-h,canvasheight:d-c-e,canvasendx:b-h,canvasendy:d-e});b.gaugestartx=b.canvasstartx;b.gaugestarty=
b.canvasstarty;b.gaugeendx=b.canvasendx;b.gaugeendy=b.canvasendy;b.gaugecenterx=b.canvascenterx=a+b.canvaswidth/2;b.gaugecentery=b.canvascentery=c+b.canvasheight/2}},s.base);s("linearscalegauge",{spaceManager:function(a,c,b,d){var e=a.chart,h=c.chart,i=b-(e.marginRight+e.marginLeft);d-=e.marginTop+e.marginBottom;var g=e.marginRight,n=e.marginLeft,k=e.marginTop,e=e.marginBottom,l=i*0.3,j=d*0.3,p,o,J=0;f(h.canvasleftmargin);f(h.canvasleftmargin,i*0.4);f(h.canvasrightmargin);this.manageTitleSpace&&(o=
this.manageTitleSpace(a,c,i/2,d/2));this.placeTickMark&&(p=this.placeTickMark(a,l,j));this.placeDataLabels&&(J=this.placeDataLabels(a,l,j,k,g,e,n,p));this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,l,j);this.fixCaptionAlignment&&this.fixCaptionAlignment(o,a,c,b,0,J)},manageTitleSpace:function(a,c,b,d){b=a.chart;return ia(a,c,this.width-(b.marginRight+b.marginLeft),this.height-(b.marginTop+b.marginBottom)-d)},placeDataLabels:function(a,c,b,d,e,h){var i=this.smartLabel,c=a.chart,g=this.width-
(c.marginRight+c.marginLeft),n=this.height-(c.marginTop+c.marginBottom),d=c.marginBottom,e=a.plotOptions.series.dataLabels,k=e.style,l=f(parseInt(k.fontSize,10),10),j=f(parseInt(k.lineHeight,10),12),b=n-b,n=c.valuePadding,p=0;if((a=a.series[0].data[0])&&a.displayValue!==r)i.setStyle(k),a.isLabelString?(i=i.getSmartText(a.displayValue,g,b-n),a.displayValue=i.text):i=i.getOriSize(a.displayValue),a.displayValue===" "&&(i={height:j}),i.height>0&&(p=i.height+n),p>b&&(a=p-b,n=a<n?n-a:0,p=b),c.marginBottom+=
p,e.align=ra,c.valuePadding=d-h+l+n;return p},postDataLabelsPlacement:function(a){var c=this.smartLabel,b=a.chart,d=this.width-(b.marginRight+b.marginLeft),e=this.height-(b.marginTop+b.marginBottom),a=a.scale,h=a.min,i=a.max,g=a.axisPosition,n=a.limitValues.style,b=a.reverseScale,k,l=a.majorTM.length-1,g=g===2||g===4?!1:!0,j=f(parseInt(n.fontSize,10),10),p=f(parseInt(n.lineHeight,10),12)/2;a.majorTM[0]&&a.majorTM[1]&&(k=a.majorTM[1].value-a.majorTM[0].value);g?(e=a._labelUsedSpace,d=d/(i-h)*k/2+6):
(d=a._labelUsedSpace,e=e/(i-h)*k+p);c.setStyle(n);if(a.majorTM[0]&&a.majorTM[0].isString&&(k=a.majorTM[0],k.displayValue))h=c.getSmartText(k._oriText,d,e),k.displayValue=h.text,g?(h=Math.min(6,h.width/2),k.labelX=b?h:-h):k.labelY=j-(b?h.height-p:p);if(a.majorTM[l]&&a.majorTM[l].isString&&(k=a.majorTM[l],k.displayValue))h=c.getSmartText(k._oriText,d,e),k.displayValue=h.text,g?(h=Math.min(6,h.width/2),k.labelX=b?-h:h):k.labelY=j-(b?p:h.height-p)},getPointStub:function(a,c,b,d,e){var h=this.numberFormatter,
c=h.getCleanValue(a.value),b=t(a.link),i=a.tooltext,g=t(u(a.displayvalue)),h=h.dataLabels(c),n,d=d.chart,k;this.showTooltip?i!==void 0?(e=u(i),k=!0):e=h===null?!1:e!==void 0?e+this.tooltipSepChar+h:h:e=!1;a=f(a.showvalue,this.showValues)?g!==void 0?g:t(h," "):r;this.pointValueWatcher&&this.pointValueWatcher(c);this.getPointColorObj&&(n=this.getPointColorObj(d,c));return{y:c,displayValue:a,toolText:e,isLabelString:k,color:w(n.code,n.alpha),link:b,colorRange:n,doNotSlice:!0}},getPointColorObj:function(a,
c){return this.colorRangeGetter.getColorObj(c)}},s.gaugebase);s("led",{singleValued:!0,isDataLabelBold:!0,preSeriesAddition:function(a,c){var b=c.chart,d=a.chart;d.ledGap=f(b.ledgap,2);d.ledSize=f(b.ledsize,2)}},s.linearscalegauge);s("vled",{defaultSeriesType:"led",defaultPlotShadow:1,standaloneInit:!0,realtimeEnabled:!0,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,showTooltip:0,connectTickMarks:0,creditLabel:aa},s.led);s("hled",{defaultPlotShadow:1,standaloneInit:!0,
defaultGaugePaletteOptions:ga,creditLabel:aa,isHorizontal:!0,connectTickMarks:1,realtimeEnabled:!0},s.vled);s("bullet",{creditLabel:aa,defaultSeriesType:"bullet",defaultPlotShadow:1,drawAnnotations:!0,realtimeEnabled:!1,subTitleFontSizeExtender:0,subTitleFontWeight:"normal",connectTickMarks:0,minorTMNumber:0,majorTMHeight:4,chartleftmargin:10,chartrightmargin:15,charttopmargin:5,chartbottommargin:5,isDataLabelBold:!0,defaultGaugePaletteOptions:ea(ga,{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(a,c){var b=this.colorRangeGetter.colorArr,d=b.length,e=a.chart,h=c.chart,i;d&&this.pointValueWatcher&&(i=f(b[0].minvalue),O(i)&&this.pointValueWatcher(i),i=f(b[d-1].maxvalue),
O(i)&&this.pointValueWatcher(i));b=f(h.showgaugeborder,h.showcolorrangeborder,0);e.colorRangeBorderThickness=b?f(h.colorrangeborderthickness,h.gaugeborderthickness,this.gaugeBorderThickness,2):0},postSeriesAddition:function(a,c){var b=c.chart;a.series[0].data.push(B(this.getPointStub({value:c.target},0,a,c),{borderColor:w(j(b.targetcolor,this.colorM.get2DPlotFillColor()),t(b.targetalpha,100)),borderWidth:f(b.targetthickness,3),targetThickness:f(b.targetthickness,3),targetFillPercent:f(b.targetfillpercent,
60)}))},getPointStub:function(a,c,b,d,e){var h=this.numberFormatter,c=this.colorM,b=h.getCleanValue(a.value),i=t(a.link),g=a.tooltext,n=t(u(a.displayvalue)),k=h.dataLabels(b),h=this.colorRangeGetter.getColorObj(b),d=d.chart,l=j(d.plotfillcolor,c.get2DPlotFillColor()),T=f(d.plotasdot,0),e=this.showTooltip?g!==void 0?u(g):k===null?!1:e!==void 0?e+this.tooltipSepChar+k:k:r,a=f(a.showvalue,this.showValues)?n!==void 0?n:t(k," "):r;this.pointValueWatcher&&this.pointValueWatcher(b);if(/\{/.test(n=j(d.plotbordercolor,
"{dark-20}")))n=c.parseColorMix(l,n).join();return{y:b,displayValue:a,toolText:e,plotAsDot:T,plotFillPercent:j(d.plotfillpercent,T?25:40),color:w(l,f(d.plotfillalpha,100)),borderColor:w(n,f(d.plotborderalpha,100)),borderWidth:f(d.showplotborder,0)?f(d.plotborderthickness,1):0,link:i,colorRange:h,doNotSlice:!0}}},s.linearscalegauge);s("vbullet",{creditLabel:aa,defaultSeriesType:"bullet",gaugeType:4,ticksOnRight:0,standaloneInit:!0},s.bullet);s("hbullet",{creditLabel:aa,defaultSeriesType:"hbullet",
gaugeType:1,standaloneInit:!0,isHorizontal:!0,defaultCaptionPadding:5,placeDataLabels:function(a,c){var b=this.smartLabel,d=a.chart,e=this.width-(d.marginRight+d.marginLeft),h=this.height-(d.marginTop+d.marginBottom),i=a.plotOptions.series.dataLabels,g=i.style,n=f(parseInt(g.fontSize,10),10);e-=c;var k=d.valuePadding,l=0,j=a.series[0].data[0];if(j&&j.displayValue!==r)b.setStyle(g),j.isLabelString?(b=b.getSmartText(j.displayValue,e-k,h),j.displayValue=b.text):b=b.getOriSize(j.displayValue),b.height>
0&&(l=b.width+k),l>e&&(l=e),d.marginRight+=l,i.align=pa,i.x=0,i.y=n-b.height/2;return l},manageTitleSpace:function(a,c,b){var d=a.chart,e=c.chart,h=this.width-(d.marginRight+d.marginLeft),d=this.height-(d.marginTop+d.marginBottom),i=f(e.captionpadding,2),e=f(f(e.captiononright,0)?e.canvasrightmargin:e.canvasleftmargin);O(e)&&(e-=i);b=f(e,h-b);return gb(a,c,b,d,this.defaultCaptionPadding,this.width,this.height)},fixCaptionAlignment:function(a,c,b,d,e,h){var d=c.chart,i=b.chart,g=f(i.canvasleftmargin),
i=f(i.canvasrightmargin);d.marginRight+=a.right;d.marginLeft+=a.left;if(O(g))d.spacingLeft=d.marginLeft=g,d.spacingLeft-=a.left+0-1;if(O(i))d.spacingRight=d.marginRight=i,d.spacingRight-=a.right+0-1;hb(c,b,this.width,e,h)}},s.bullet);s("lineargauge",{creditLabel:aa,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:xa({},s.gaugebase.eiMethods,{getData:function(a){var c,b=(c=this.jsVars)&&(c=c.instanceAPI)&&(c=c.hcInstance)&&(c=c.series)&&(c=c[0])&&c.data;c=!b||!b.length?0:b.length;return a!==void 0&&a>0&&a<=c?(a=b[a-1],f(a.value,a.y)):null},getDataForId:function(a){var c,b=(c=this.jsVars)&&(c=c.instanceAPI)&&(c=c.hcInstance)&&(c=c.series)&&(c=c[0])&&c.dataById;return b[a]&&b[a].point?(a=b[a].point,f(a.value,a.y)):null},setData:function(a,c,b){var d="",e="",h,i=(h=this.jsVars)&&(h=
h.instanceAPI)&&(h=h.hcInstance)&&(h=h.series)&&(h=h[0])&&h.data;h=i&&i.length||0;i=0;if(a>0&&a<=h&&(c&&c.toString()||c===""||c===0)){for(i=a;--i;)e+="|";d+="value="+(e+c);if(b&&b.toString||b==="")d+="&label="+e+b.toString();this.feedData(d)}},setDataForId:function(a,c,b){var d,e=(d=this.jsVars)&&(d=d.instanceAPI)&&(d=d.hcInstance)&&(d=d.series)&&(d=d[0])&&d.dataById;e[a]&&e[a].index!==void 0&&this.setData(e[a].index+1,c,b)}}),placeDataLabels:function(a,c,b,d,e,h,i,g){var d=a.scale,e=this.smartLabel,
h=a.chart,i=this.width-(h.marginRight+h.marginLeft),n=this.height-(h.marginTop+h.marginBottom),k,l=a.plotOptions.series.dataLabels;k=l.style;var j=a.scale&&a.scale.labels&&a.scale.labels.style;f(parseInt(k.fontSize,10),10);var p=f(parseInt(k.lineHeight,10),12),b=n-b,c=i-c,o=h.valuePadding,J,v=0,A=0,y=0,D=0,x=0,m=0,P=a.series&&a.series[0]&&a.series[0].data||[],a=a.scale&&a.scale.trendPoint||[],la=0,t=P.length,z;for(e.setStyle(k);la<t;la+=1)if((z=P[la])&&z.displayValue!==r)J=o+z.radius*(z.sides<=3?
0.5:z.sides%2?1.1-1/z.sides:1),h.valuePadding=Math.max(h.valuePadding,J),this.isHorizontal?(z.isLabelString?(k=e.getSmartText(z.displayValue,i,b-o),z.displayValue=k.text):k=e.getOriSize(z.displayValue),z.displayValue===" "&&(k={height:p}),k.height>0&&(v=k.height+J),v>b&&(v=b),h.pointerOnOpp?(d.axisPosition===3&&(D=Math.max(g,D),v=Math.max(g,v)),A=Math.max(A,v)):(d.axisPosition===1&&(x=Math.max(g,x),v=Math.max(g,v)),y=Math.max(v,y))):(z.isLabelString?(k=e.getSmartText(z.displayValue,c-o,n),z.displayValue=
k.text):k=e.getOriSize(z.displayValue),k.width>0&&(m=k.width+J),m>c&&(m=c),h.pointerOnOpp?d.axisPosition===2?(h.marginRight-=g,h.marginRight+=Math.max(g,m)):h.marginRight+=m:d.axisPosition===4?(h.marginLeft-=g,h.marginLeft+=Math.max(g,m)):h.marginLeft+=m),l.align=ra;e.setStyle(j);la=0;for(t=a.length;la<t;la+=1)if((z=a[la])&&z.displayValue!==r)if(J=o+z.markerRadius*0.5,h.valuePadding=Math.max(J,h.valuePadding),this.isHorizontal)k=e.getOriSize(z.displayValue),k.height>0&&(v=k.height+J),v>b&&(v=b),z.showOnTop?
(d.axisPosition===1&&(x=Math.max(g,x),v=Math.max(g,v)),y=Math.max(y,v)):(d.axisPosition===3&&(D=Math.max(g,D),v=Math.max(g,v)),A=Math.max(v,A)),l.align=ra;this.isHorizontal&&(h.marginBottom+=A-D,h.marginTop+=y-x,v=y+A-D-x);return v},preSeriesAddition:function(a,c){var b=a.chart,d=c.chart,e=this.colorM,h=a.scale;b.pointerRadius=f(d.pointerradius,10);b.pointerBgColor=j(d.pointerbgcolor,d.pointercolor,e.getPointerBgColor());b.pointerBgAlpha=f(d.pointerbgalpha,100);b.pointerBorderColor=j(d.pointerbordercolor,
e.getPointerBorderColor());b.pointerBorderThickness=f(d.pointerborderthickness,1);b.pointerBorderAlpha=f(d.pointerborderalpha,100);b.pointerSides=f(d.pointersides,3);b.showGaugeLabels=f(d.showgaugelabels,1);b.showPointerShadow=f(d.showpointershadow,d.showshadow,1);b.valuePadding=f(d.valuepadding,2);this.isHorizontal?(b.pointerOnOpp=f(d.pointerontop,h.axisPosition==1?0:1)?0:1,b.gaugeType=h.reverseScale?2:1,b.valueAbovePointer=f(d.valueabovepointer,b.pointerOnOpp?0:1,1),b.valueInsideGauge=b.valueAbovePointer===
b.pointerOnOpp?1:0):(b.pointerOnOpp=f(d.pointeronright,h.axisPosition==2?0:1),b.gaugeType=h.reverseScale?4:3)},getPointStub:function(a,c,b,d,e){var h=this.numberFormatter,b=b.chart,i=h.getCleanValue(a.value),g=t(a.link),n=a.tooltext,k=t(u(a.displayvalue)),l=h.dataLabels(i),h=this.colorRangeGetter.getColorObj(i),d=d.chart,T=!1,p=!1;this.showTooltip?n!==void 0?(e=u(n),p=!0):e=l===null?!1:e!==void 0?e+this.tooltipSepChar+l:l:e=r;f(a.showvalue,this.showValues)?k!==void 0?T=!0:k=t(l," "):k=r;n=f(a.sides,
b.pointerSides);n<3&&(n=3);this.pointValueWatcher&&this.pointValueWatcher(i);return{y:i,displayValue:k,id:j(a.id,"pointer_"+c),editable:j(a.editable,d.editmode),isLabelString:T,isTooltextString:p,toolText:e,plotFillPercent:j(d.plotfillpercent,40),color:w(j(a.color,a.bgcolor,b.pointerBgColor),f(a.alpha,a.bgalpha,b.pointerBgAlpha)),borderColor:w(j(a.bordercolor,b.pointerBorderColor),f(d.showplotborder,1)?b.pointerBorderAlpha:0),borderWidth:f(a.borderthickness,b.pointerBorderThickness),radius:f(a.radius,
b.pointerRadius),sides:n,link:g,colorRange:h,doNotSlice:!0,tooltipConstraint:this.tooltipConstraint}}},s.linearscalegauge);s("hlineargauge",{creditLabel:aa,defaultSeriesType:"lineargauge",standaloneInit:!0,isHorizontal:!0},s.lineargauge);s("vlineargauge",{creditLabel:aa,defaultSeriesType:"lineargauge",connectTickMarks:0,standaloneInit:!0},s.lineargauge);s("thermometer",{creditLabel:aa,defaultSeriesType:"thermometer",connectTickMarks:0,tickMarkDistance:0,standaloneInit:!0,realtimeEnabled:!0,isDataLabelBold:!0,
defaultPlotShadow:0,defaultGaugePaletteOptions:ea(ga,{thmBorderColor:["545454","60634E","415D6F","845001","68001B"],thmFillColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),preSeriesAddition:function(a,c){var b=a.chart,d=c.chart,e=this.colorM,h;h=this.numberFormatter;b.thmOriginX=f(d.thmoriginx,d.gaugeoriginx);b.thmOriginY=f(d.thmoriginy,d.gaugeoriginy);b.thmBulbRadius=h.getCleanValue(d.thmbulbradius,!0);b.thmHeight=h.getCleanValue(f(d.thmheight,d.gaugeheight),!0);b.gaugeFillColor=j(d.gaugefillcolor,
d.thmfillcolor,e.getThmFillColor());b.gaugeFillAlpha=f(d.gaugefillalpha,d.thmfillalpha,oa);h=f(d.gaugeborderalpha,f(d.showgaugeborder,1)?40:0);b.gaugeBorderColor=w(j(d.gaugebordercolor,e.getThmBorderColor()),h);b.gaugeBorderThickness=f(d.gaugeborderthickness,1);b.thmGlassColor=j(d.thmglasscolor,V(b.gaugeFillColor,30));b.use3DLighting=!f(d.use3dlighting,1)},getPointColorObj:function(a){return{code:j(a.gaugefillcolor,a.thmfillcolor,this.colorM.getThmFillColor()),alpha:f(a.gaugefillalpha,a.thmfillalpha,
100)}},getPointStub:s.linearscalegauge,placeDataLabels:s.linearscalegauge,manageTitleSpace:s.linearscalegauge,spaceManager:function(a,c,b,d){var e=a.chart;b-=e.marginRight+e.marginLeft;var h=d-(e.marginTop+e.marginBottom),i=e.marginRight,g=e.marginLeft,n=e.marginTop,k=e.marginBottom,d=b*0.3,l=h*0.3,j=e.thmOriginX,p=e.thmOriginY,o=e.thmBulbRadius,J=e.thmHeight,v=O(j),A=O(p),y=O(o),D=O(J),x=a.scale.axisPosition===4,m=0,P,r,t=0;this.manageTitleSpace&&(h-=t=this.manageTitleSpace(a,c,b/2,h/2));this.placeTickMark&&
(b-=this.placeTickMark(a,f(o,4)*2,l));if(!y)e.thmBulbRadius=o=Math.min(b/2,f(J,h)*0.13),y=!0;y&&(r=o*0.643,d=P=2*r,v?x?e.marginRight+=m=b-j-r:e.marginLeft+=m=j-r:x?e.marginRight+=m=Math.min(o,b/2)-r:e.marginLeft+=m=Math.min(o,b/2)-r,b-=m);e.marginRight+=b-P;A&&(l=p-t+o);this.placeDataLabels&&(h-=this.placeDataLabels(a,d,l,n,i,k,g));if(!D)e.thmHeight=A?J=Math.max(p-t+o-r,3*o):J=Math.max(h-r,3*o);e.marginTop+=A?p-t+o-J:h-J;c=o*1.766;e.marginBottom+=c;e.valuePadding+=c;this.postDataLabelsPlacement&&
this.postDataLabelsPlacement(a,d,l)}},s.gaugebase);s("cylinder",{creditLabel:aa,defaultSeriesType:"cylinder",connectTickMarks:0,tickMarkDistance:2,standaloneInit:!0,charttopmargin:10,chartbottommargin:10,chartrightmargin:10,chartleftmargin:10,isDataLabelBold:!0,realtimeEnabled:!0,defaultGaugePaletteOptions:ea(ga,{cylFillColor:["CCCCCC","ADB68F","E1F5FF","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]}),preSeriesAddition:function(a,c){var b=a.chart,d=c.chart;b.cylFillColor=
j(d.gaugefillcolor,d.cylfillcolor,this.colorM.getCylFillColor());b.cylGlassColor=j(d.cylglasscolor,"FFFFFF")},getPointColorObj:function(a){return{code:j(a.gaugefillcolor,a.thmfillcolor,this.colorM.getCylFillColor()),alpha:f(a.gaugefillalpha,a.thmfillalpha,100)}},getPointStub:s.linearscalegauge,placeDataLabels:s.linearscalegauge,manageTitleSpace:s.linearscalegauge,spaceManager:function(a,c,b,d){var e=a.chart,h=c.chart,i=b-(e.marginRight+e.marginLeft),g=d-(e.marginTop+e.marginBottom),n=e.marginRight,
k=e.marginLeft,l=e.marginTop,j=e.marginBottom,p=i*0.2,o=g*0.3,J=f(h.cylyscale,30),v=this.scaleFactor,A=this.numberFormatter;this.manageTitleSpace&&(g-=this.manageTitleSpace(a,c,i/2,g/2));this.placeTickMark&&(i-=this.placeTickMark(a,p,o));this.placeDataLabels&&(g-=this.placeDataLabels(a,p,o,l,n,j,k)+8);this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,p,o);e.cylHeight=t(h.cylheight);if(J>50||J<0)J=30;e.cylYScale=J/=100;a=Math.max(i/2,5);a=f(t(A.getCleanValue(h.cylradius,!0))*v,a);A=f(t(A.getCleanValue(h.cylheight,
!0))*v,g-a*J*2);e.marginLeft=f(t(h.cyloriginx)*v,e.marginLeft);e.marginRight=b-(e.marginLeft+a*2);b=e.yScaleRadius=a*J;J=e.cylinderTotalHeight=b*2+A;g=g-J+e.marginTop;e.marginTop=f(t(h.cyloriginy)*v-A,b+g);e.marginBottom=d-(e.marginTop+A);e.cylRadius=a;e.cylHeight=A;e.yScaleRadius=b}},s.gaugebase);s("angulargauge",{standaloneInit:!0,drawAnnotations:!0,defaultSeriesType:"angulargauge",creditLabel:aa,isAngular:!0,eiMethods:s.lineargauge.eiMethods,multiValueGauge:!0,realtimeEnabled:!0,defaultGaugePaletteOptions:ea(ga,
{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){s.gaugebase.updateSnapPoints.apply(this,arguments);var c=a.series[0],b=this.snapLiterals;b.gaugestartangle=a.chart.gaugeStartAngle;b.gaugeendangle=a.chart.gaugeEndAngle;b.chartcenterx=b.gaugecenterx=c.gaugeOriginX;b.chartcentery=b.gaugecentery=c.gaugeOriginY;b.gaugeinnerradius=c.gaugeInnerRadius;b.gaugeouterradius=c.gaugeOuterRadius},preSeriesAddition:function(a,c){var b=c.chart,d=f(b.gaugescaleangle,180),e=f(b.gaugestartangle),
b=f(b.gaugeendangle),h=O(e),i=X?0.0010:0.01,g=O(b);if(d>360||d<-360)d=d>0?360:-360;if(b>360||b<-360)b%=360;if(e>360||e<-360)e%=360;if(h&&g){if(d=e-b,d>360||d<-360)d%=360,b=e-d}else if(h){if(b=e-d,b>360||b<-360)b%=360,e+=b>0?-360:360}else if(g){if(e=b+d,e>360||e<-360)e%=360,b+=e>0?-360:360}else d===360?(e=180,b=-180):d===-360?b=e=-180:(e=90+d/2,b=e-d);Math.abs(d)===360&&(d+=d>0?-i:i,b=e-d);b=360-b;e=360-e;if(e>360||b>360)e-=360,b-=360;a.chart.gaugeStartAngle=e*ja;a.chart.gaugeEndAngle=b*ja;a.chart.gaugeScaleAngle=
-d*ja},series:function(a,c){var b={data:[],colorByPoint:!0},d=a.chart,e=this.numberFormatter,h=this.colorM,i=b.showValue=f(d.showvalue,d.showrealtimevalue,0),g=this.scaleFactor,n=0,k=a.dials&&a.dials.dial,l=f(d.editmode,0),T=n=f(t(d.pivotradius)*g,5);b.pivotRadius=T;var p=0,o=k&&k.length,J,v,A,y,D,x,m=0,P;o||(p=-1,o=0,k=[]);for(;p<o;p+=1)J=k[p]||{},d=e.getCleanValue(J.value),this.pointValueWatcher&&this.pointValueWatcher(d),v=f(t(J.rearextension)*g,0),n=Math.max(n,v),A=t(e.dataLabels(d),r),D=f(J.showvalue,
i),x=f(t(J.valuey)*g),y=j(J.tooltext,J.hovertext)?!0:!1,D&&!O(x)&&(m+=1),P=f(J.borderalpha,100),b.data.push({y:d,id:j(J.id,p),color:{FCcolor:{color:j(J.color,J.bgcolor,h.getDialColor()),angle:90}},showValue:D,editMode:f(J.editmode,l),borderColor:w(j(J.bordercolor,h.getDialBorderColor()),P),shadowAlpha:P,borderThickness:P&&f(J.borderthickness,1),baseWidth:f(t(J.basewidth)*g,T*1.6),topWidth:f(t(J.topwidth)*g,0),rearExtension:v,valueX:f(t(J.valuex)*g),valueY:x,radius:f(t(J.radius)*g),link:j(J.link,r),
isLabelString:y,toolText:j(J.tooltext,J.hovertext,A),displayValue:D?j(A," "):r,doNotSlice:!0});b.displayValueCount=m;b.compositPivotRadius=n;c.series[0]=b},postSeriesAddition:function(a,c){var b=c.chart,d=a.series[0],e=this.colorM,h;d.valueBelowPivot=f(b.valuebelowpivot,0);d.gaugeFillMix=b.gaugefillmix;d.gaugeFillRatio=b.gaugefillratio;if(d.gaugeFillMix==void 0)d.gaugeFillMix="{light-10},{light-70},{dark-10}";if(d.gaugeFillRatio==void 0)d.gaugeFillRatio=",6";else if(d.gaugeFillRatio!="")d.gaugeFillRatio=
","+d.gaugeFillRatio;h=e.parseColorMix(j(b.pivotfillcolor,b.pivotcolor,b.pivotbgcolor,e.getPivotColor()),j(b.pivotfillmix,"{light-10},{light-30},{dark-20}"));d.pivotFillAlpha=e.parseAlphaList(j(b.pivotfillalpha,oa),h.length);d.pivotFillRatio=e.parseRatioList(j(b.pivotfillratio,Da),h.length);d.pivotFillColor=h.join();d.pivotFillAngle=f(b.pivotfillangle,0);d.isRadialGradient=j(b.pivotfilltype,"radial").toLowerCase()=="radial";d.showPivotBorder=f(b.showpivotborder,0);d.pivotBorderThickness=f(b.pivotborderthickness,
1);d.pivotBorderColor=w(j(b.pivotbordercolor,e.getPivotBorderColor()),d.showPivotBorder==1?j(b.pivotborderalpha,oa):Da);this.parseColorMix=e.parseColorMix;this.parseAlphaList=e.parseAlphaList;this.parseRatioList=e.parseRatioList},spaceManager:function(a,c,b,d){var e=a.chart,h=c.chart,i=a.scale,g=a.series[0],n=g.displayValueCount,k=i.tickValues.style,l=f(parseInt(k.lineHeight,10),12),j=f(parseInt(k.fontSize,10),10),p=j*(X?0.8:1),o=l*(X?0.1:0.3),J=X?0:l*0.1,v=f(parseInt(a.plotOptions.series.dataLabels.style.lineHeight,
10),12);b-=e.marginRight+e.marginLeft;var A=d-(e.marginTop+e.marginBottom),y=this.scaleFactor,D=g.compositPivotRadius,x,d=e.gaugeStartAngle,m=e.gaugeEndAngle,P=n*v+2+g.pivotRadius,r=0,v=g.valueBelowPivot,n=/^\d+\%$/.test(h.gaugeinnerradius)?parseInt(h.gaugeinnerradius,10)/100:0.7;A-=ia(a,c,b,A/2);v||(r=P,P=0);g.gaugeOuterRadius=f(Math.abs(t(h.gaugeouterradius)*y));g.gaugeInnerRadius=f(Math.abs(t(h.gaugeinnerradius)*y),g.gaugeOuterRadius*n);var q=e.gaugeStartAngle,z=e.gaugeEndAngle,v=A,c=g.gaugeOuterRadius,
u=f(t(h.gaugeoriginx)*y-e.marginLeft),e=f(t(h.gaugeoriginy)*y-e.marginTop),h=Math.max(D,j),D=P,y=O(c),w=O(u),P=O(e),G=Math.PI*2,s=Math.PI,L=Math.PI/2,M=s+L,c={radius:c,centerX:u,centerY:e},B,N,K,S,E=!1,C,Q=q%G;Q<0&&(Q+=G);(h=h||0)&&h<b/2&&h<v/2&&(E=!0);D>v/2&&(D=v/2);r>v/2&&(r=v/2);N=Math.cos(q);S=Math.sin(q);K=Math.cos(z);C=Math.sin(z);B=Math.min(N,K,0);K=Math.max(N,K,0);N=Math.min(S,C,0);S=Math.max(S,C,0);if(!y||!w||!P){z-=q;q=Q+z;if(q>G||q<0)K=1;if(z>0){if(Q<L&&q>L||q>G+L)S=1;if(Q<s&&q>s||q>G+
s)B=-1;if(Q<M&&q>M||q>G+M)N=-1}else{if(Q>L&&q<L||q<-M)S=1;if(Q>s&&q<s||q<-s)B=-1;if(Q>M&&q<M||q<-L)N=-1}w?y||(z=b-u,x=B?Math.min(z/K,-u/B):z/K):(q=b/(K-B),u=-q*B,x=q,E&&(b-u<h?(u=b-h,z=b-u,x=B?Math.min(z/K,-u/B):z/K):u<h&&(u=h,z=b-u,x=B?Math.min(z/K,-u/B):z/K)),c.centerX=u);P?y||(z=v-e,x=Math.min(x,N?Math.min(z/S,-e/N):z/S)):(q=v/(S-N),e=-q*N,E&&(v-e<h?(e=v-h,z=v-e,x=Math.min(x,N?Math.min(z/S,-e/N):z/S)):e<h&&(e=h,z=v-e,x=Math.min(x,N?Math.min(z/S,-e/N):z/S))),v-e<D?(e=v-D,z=v-e,x=Math.min(x,N?Math.min(z/
S,-e/N):z/S)):e<r&&(e=r,z=v-e,x=Math.min(x,N?Math.min(z/S,-e/N):z/S)),x=Math.min(x,q),c.centerY=e);c.maxRadius=x;if(c.maxRadius<=0)c.maxRadius=Math.min(b/2,v/2)}x=g.gaugeOriginX=c.centerX;v=g.gaugeOriginY=c.centerY;u=i.majorTM;e=0;q=u.length;a=a.labels.smartLabel;z=i.min;w=i.max-i.min;h=b-x;A-=v;D=i.placeValuesInside;r=Math.cos(89.98*ja);y=-r;P=O(g.gaugeOuterRadius);B=i.tickValueDistance;G=i.showTickValues;s=i.showLimits;c=f(g.gaugeOuterRadius,c.maxRadius);L=f(g.gaugeInnerRadius,c*n);i=c;c*=0.2;var H,
E=l*1.5,m=(m-d)/w;if(G||s){D?L>B+l?H=L-B:(H=L,B=0):(i+=B,P||(c+=B));for(a.setStyle(k);e<q;e+=1)if(k=u[e],w=d+(k.value-z)*m,M=Math.cos(w),L=Math.sin(w),w=k.displayValue,K=a.getOriSize(w),G=K.width,s=K.height,N=s/2,G>0&&s>0)if(k.x=0,D){k.align=M>r?na:M<y?pa:ra;if(k.isString&&(Q=H*M,K=Math.abs(Q),K<G))K=a.getSmartText(w,Math.max(K,l),E),k.displayValue=K.text,s=K.height,N=s/2;M>r||M<y?(k.y=j-N+J,k.y-=s*0.4*L):k.y=p-(L<0?0:s-o)}else if(k.align=M>r?pa:M<y?na:ra,Q=i*M,K=i*L,P||(K>0?(S=N+N*L,A<K+S&&(K=A-
S,i=Math.max(K/L,c))):K<0&&(S=N-N*L,v<-K+S&&(K=S-v,i=Math.max(K/L,c)))),M>r){if(Q+G>h)if(P){if(k.isString)K=a.getSmartText(w,h-Q,E),k.displayValue=K.text,s=K.height,N=s/2}else if(Q=h-G,i=Math.max(Q/M,c),Q=i*M,k.isString&&Q+G>h)K=a.getSmartText(w,h-Q,E),k.displayValue=K.text,s=K.height,N=s/2,G=K.width,Q=h-G,i=Math.max(Q/M,c);k.y=j-N+J+s*0.4*L}else if(M<y){if(G-Q>x)if(P){if(k.isString)K=a.getSmartText(w,x+Q,E),k.displayValue=K.text,s=K.height,N=s/2}else if(Q=G-x,i=Math.max(Q/M,c),Q=i*M,k.isString&&
G-Q>x)K=a.getSmartText(w,x+Q,E),k.displayValue=K.text,G=K.width,s=K.height,N=s/2,Q=G-x,i=Math.max(Q/M,c);k.y=j-N+J+s*0.4*L}else{L>0?(M=A,N=s+K):(M=v,N=s-K);if(P){if(k.isString&&N>M||G>b)K=a.getSmartText(w,b,Math.max(s-N+M,l)),k.displayValue=K.text,s=K.height}else if(N>M&&(i=Math.max(M-s,c),N=s+i),k.isString&&N>M||G>b)K=a.getSmartText(w,b,Math.max(M-c,l)),k.displayValue=K.text,s=K.height,i=Math.max(M-s,c);k.y=p-(L>0?0:s-o)}}if(!P&&(g.gaugeOuterRadius=D?i:i-B,g.gaugeOuterRadius<=0))g.gaugeOuterRadius=
Math.abs(c);g.gaugeInnerRadius=f(g.gaugeInnerRadius,g.gaugeOuterRadius*n)}},s.gaugebase);s("bulb",{defaultSeriesType:"bulb",defaultPlotShadow:1,standaloneInit:!0,drawAnnotations:!0,defaultGaugePaletteOptions:ga,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,realtimeEnabled:!0,isDataLabelBold:!0,preSeriesAddition:function(a){a=a.chart;a.colorRangeGetter=this.colorRangeGetter;a.defaultColors=ga.paletteColors[0];a.defaultColLen=a.defaultColors.length},getPointColor:function(a,
c,b){var d;b?(a=da(a),b=V(a,65),d=V(a,75),a=E(a,65),c={FCcolor:{gradientUnits:"objectBoundingBox",cx:0.4,cy:0.4,r:"80%",color:b+m+d+m+a,alpha:c+m+c+m+c,ratio:"0,30,70",radialGradient:!0}}):c=w(a,c);return c},getPointStub:function(a,c,b,d,e){var c=b.chart,h=d.chart,b=this.numberFormatter,d=b.getCleanValue(a.value),i=b.dataLabels(d),b=t(a.link),g=a.tooltext,n=t(u(a.displayvalue)),a=this.colorRangeGetter.getColorObj(d),k=c.useColorNameAsValue=f(h.usecolornameasvalue,0),l=a.colorObj||a.prevObj||a.nextObj||
{},T=this.colorM,p=u(j(l.label,l.name)),o=j(h.gaugefillalpha,l.alpha,oa),J=j(l.bordercolor,h.gaugebordercolor,E(l.code,70)),v=f(l.borderalpha,h.gaugeborderalpha,"90")*o/100,A=f(h.showgaugeborder,0)?f(h.gaugeborderthickness,1):0,h=c.is3D=f(h.is3d,1),h=this.getPointColor(l.code,o,h),y;if(a.isOnMeetPoint)l=a.nextObj;c.gaugeFillAlpha=o;J=w(/\{/.test(J)?T.parseColorMix(j(l.bordercolor,l.code),J)[0]:J,v);this.showTooltip?g!==void 0?(e=u(g),y=!0):e=i===null?!1:e!==void 0?e+this.tooltipSepChar+i:i:e=!1;c=
n!==void 0?n:i;k&&(c=p);this.pointValueWatcher&&this.pointValueWatcher(d);return{y:d,displayValue:c,toolText:e,isLabelString:y,colorName:p,color:h,borderWidth:A,borderColor:J,colorRange:a,link:b,doNotSlice:!0}},spaceManager:function(a,c,b,d){var e=a[Z].smartLabel,h=a.series[0],i=h&&h.data[0],h=a.chart,g=c.chart,n=h.scaleFactor=this.scaleFactor;b-=h.marginRight+h.marginLeft;d-=h.marginTop+h.marginBottom;var k=h.marginLeft,l=h.marginTop,j=f(g.valuepadding,4),p=h.useColorNameAsValue,o,J=0,v;this.showValues?
(i.y=t(i.y,a.scale.min),i.displayValue=t(i.displayValue,this.numberFormatter.dataLabels(a.scale.min))):i.displayValue=r;v=i.displayValue;h.gaugeOriginX=f(g.gaugeoriginx,g.bulboriginx,-1);h.gaugeOriginY=f(g.gaugeoriginy,g.bulboriginy,-1);h.gaugeRadius=f(g.gaugeradius,g.bulbradius,-1);g=h.gaugeRadius!==-1;d-=c=ia(a,c,b,d*0.3);l+=c;h.dataLabels={style:a.plotOptions.series.dataLabels.style};c=h.dataLabels.style;e.setStyle(c);h.placeValuesInside==1?(a=g?h.gaugeRadius*n:Math.min(b,d)/2,o=Math.sqrt(Math.pow(a*
2,2)/2),e=e.getSmartText(v,o,o)):(o=(g?d-h.gaugeRadius*2*n:d*0.7)-j,e=e.getSmartText(v,b,o),J=e.height,a=Math.min(b,d-J)/2);if(p)i.displayValue=e.text;h.valuePadding=j;h.valueTextHeight=e.height;h.labelLineHeight=parseInt(c.lineHeight);e=k+b/2;i=l+(d-J)/2;g&&(a=h.gaugeRadius*n);h.gaugeOriginX!=-1&&(e=h.gaugeOriginX*n);h.gaugeOriginY!=-1&&(i=h.gaugeOriginY*n);h.gaugeRadius=a;h.gaugeOriginX=e;h.gaugeOriginY=i}},s.gaugebase);s("drawingpad",{standaloneInit:!0,defaultSeriesType:"drawingpad",defaultPlotShadow:1,
drawAnnotations:!0,chartleftmargin:0,charttopmargin:0,chartrightmargin:0,chartbottommargin:0,defaultGaugePaletteOptions:ga,chart:function(){B(this.dataObj.chart,{bgcolor:this.dataObj.chart.bgcolor||"#ffffff",bgalpha:this.dataObj.chart.bgalpha||"100"});return this.base.chart.apply(this,arguments)},series:function(){B(this.hcJSON,{legend:{enabled:!1},chart:{plotBackgroundColor:Ha,plotBorderColor:Ha},series:[{data:[]}]})},spaceManager:function(){},creditLabel:aa},s.bulb);s("funnel",{standaloneInit:!0,
defaultSeriesType:"funnel",sliceOnLegendClick:!0,defaultPlotShadow:1,subTitleFontSizeExtender:0,tooltippadding:4,drawAnnotations:!0,defaultGaugePaletteOptions:ga,isDataLabelBold:!1,formatnumberscale:1,preSeriesAddition:function(a,c){var b=c.chart,d=this.colorM,e=a.plotOptions.series.dataLabels;e.connectorWidth=f(b.smartlinethickness,1);e.connectorColor=w(j(b.smartlinecolor,d.get2DBaseFontColor()),f(b.smartlinealpha,100));f(b.showlegend,0)?(a.legend.enabled=!0,a.legend.reversed=!Boolean(f(b.reverselegend,
0))):a.legend.enabled=!1;a.plotOptions.series.point.events.legendItemClick=b.interactivelegend===Da?Xa:function(){this.slice()}},series:function(a,c,b){a.data&&a.data.length>0&&(a=this.point(b,{data:[],colorByPoint:!0,showInLegend:!0},a.data,a.chart,c))&&c.series.push(a)},point:function(a,c,b,d,e){var h,i,g,a=e[Z],n,k,l,T,p=0,o,J=0,v=[],A=j(d.plotborderthickness,Ea);f(d.use3dlighting,1);f(d.showzeropies,1);var y=!0,D=!1,x=this.isPyramid,q=f(d.showpercentintooltip,1),P=f(d.showlabels,1),s=f(d.showvalues,
1),Aa=f(d.showpercentvalues,d.showpercentagevalues,0),z=j(d.tooltipsepchar,d.hovercapsepchar,fb),B=j(d.labelsepchar,z),pb=j(d.plotbordercolor,d.piebordercolor),G=this.smartLabel,E=this.numberFormatter;h=b.length;var L=f(d.issliced,0),M=0,C,N,K,S={apply:d.showshadow==Ea,opacity:1};c.isPyramid=x;K=c.streamlinedData=f(d.streamlineddata,1);c.is2d=f(d.is2d,0);c.isHollow=f(d.ishollow,K?1:0);N=f(d.percentofprevious,0);i=f(this.isPyramid?d.pyramidyscale:d.funnelyscale);c.labelDistance=Math.abs(f(d.labeldistance,
d.nametbdistance,50));c.showLabelsAtCenter=f(d.showlabelsatcenter,0);c.yScale=i>=0&&i<=40?i/200:0.2;if(!P&&!s)e.plotOptions.series.dataLabels.enabled=!1,e.tooltip.enabled===!1&&(y=!1);c.useSameSlantAngle=f(d.usesameslantangle,K?0:1);var H,I;for(C=i=0;i<h;i+=1)if(g=b[i],!b[i].vline&&(g.value=H=E.getCleanValue(g.value,!0),H!==null))D=!0,I=I||H,g.value=H,v.push(g),p+=H,C+=1,I=Math.max(I,H);if(D){c.valueSum=p;h=v.length;!x&&K&&v.sort(function(a,b){return b.value-a.value});!x&&!K&&(J+=1,c.data.push({showInLegend:!1,
y:p,name:"",shadow:S,smartTextObj:o,color:n,alpha:k,borderColor:w(l,T),borderWidth:A,link:t(g.link),displayValue:r,doNotSlice:j(d.enableslicing,Ea)!=Ea}));for(i=0;i<v.length;i+=1){g=v[i];b=g.value;D=i?v[i-1].value:b;h=u(j(g.label,g.name,r));o=G.getOriSize(h);n=i&&!x&&K?i-1:i;n=j(g.color,e.colors[n%e.colors.length]);k=j(g.alpha,d.plotfillalpha,oa);l=j(g.bordercolor,pb,V(n,25)).split(m)[0];T=d.showplotborder!=1?Da:j(g.borderalpha,d.plotborderalpha,d.pieborderalpha,"80");S.opacity=Math.max(k,T)/100;
if(C=f(g.issliced,L))M+=1,a.preSliced=C;o={showInLegend:h!==r,y:b,name:h,shadow:S,smartTextObj:o,color:n,alpha:k,borderColor:w(l,T),borderWidth:A,link:t(g.link),isSliced:C,displayValue:r,doNotSlice:j(d.enableslicing,Ea)!=Ea,tooltipConstraint:this.tooltipConstraint};if(!i&&!x&&K)o.showInLegend=!1;c.data.push(o);if(y)o=h,l=E.percentValue(b/(x||!K?p:N?D:I)*100),T=E.dataLabels(b)||r,k=q===1?l:T,n=P===1?o:r,l=f(g.showvalue,s)===1?Aa===1?l:T:r,l=(T=t(u(g.displayvalue)))?T:l!==r&&n!==r?n+B+l:j(n,l)||r,o=
o!=r?o+z+k:k,c.data[J].displayValue=l,c.data[J].toolText=j(u(g.tooltext),o),J+=1}c.labelMaxWidth=0;c.noOFSlicedElement=M;return c}else return null},spaceManager:function(a,c,b,d){var e=this.smartLabel,h=c.chart,i=a.chart,g=j(h.legendposition,bb).toLowerCase();b-=i.marginRight+i.marginLeft;var n=d-(i.marginTop+i.marginBottom),k=this.isPyramid,l;if(d=a.series[0]){var T=this._tempSnap={top3DSpace:0,bottom3DSpace:0,topLabelSpace:0,rightLabelSpace:0};n-=ia(a,c,b,n/2);a.legend.enabled&&(g===na?b-=$a(a,
c,b/2,n,!0):n-=Za(a,c,b,n/2,!0));c=n*0.1;h=f(h.slicingdistance,c);c=h>2*c?0:h;l=Math.min(2*(n-c),b);i.marginTop+=c/2;i.marginBottom+=c/2;d.SlicingDistance=h;var c=d.data,g=c.length,n=k?0:1,p,o,J,v=0,h=d.labelDistance+3,A=d.showLabelsAtCenter,y,D=Math.min(l,b*0.3);l-=D;var x=b-D-h;y=a.plotOptions.series.dataLabels.style;var m=f(parseInt(y.lineHeight,10),10),a=0,r=c[0].y,q=d.valueSum,t,z=k?0:1,s,u=0.8/r,w=d.useSameSlantAngle==1,B=!d.streamlinedData;e.setStyle(y);if(!k&&c[0].displayValue)o=e.getSmartText(c[0].displayValue,
b,m),c[0].displayValue=o.text,c[0].labelWidht=e.getOriSize(o.text).width,i.marginTop+=T.topLabelSpace=m+4;for(;n<g;n+=1)p=c[n],A?e.getSmartText(p.displayValue,b,m):(k?(y=v+p.y/2,t=y/q):t=B?0.2+u*v:w?p.y/r:Math.sqrt(p.y/r),y=D*t,J=x+(D-y)/2,o=e.getSmartText(p.displayValue,J,m),p.displayValue=o.text,a=Math.max(a,o.width),l>0&&(o=o.width>0?J-o.width:J+h,y=1/(t+1)*(y+2*o+D),l=Math.min(l,y-D)),v+=p.y);p&&(s=k?1:B?0.2:w?p.y/r:Math.sqrt(p.y/r));e=D+l;a>0?i.marginRight+=T.rightLabelSpace=b-e:h=0;d.labelDistance=
d.connectorWidth=h;if(!d.is2d)i.marginTop+=T.top3DSpace=e*d.yScale*z/2,i.marginBottom+=T.bottom3DSpace=e*d.yScale*s/2}},updateSnapPoints:function(){s.gaugebase.updateSnapPoints.apply(this,arguments);var a=this.snapLiterals,c=this._tempSnap||{};a.plotwidth=a.canvaswidth;a.plotsemiwidth=a.canvaswidth/2;a.plotheight=a.canvasheight+c.top3DSpace+c.bottom3DSpace;a.plotstartx=a.canvasstartx;a.plotstarty=a.canvasstarty-c.top3DSpace;a.plotendx=a.canvasendx;a.plotendy=a.canvasendy+c.bottom3DSpace;a.canvaswidth+=
c.rightLabelSpace;a.canvasheight=a.plotheight+c.topLabelSpace;a.canvasstarty=a.plotstarty-c.topLabelSpace;a.canvasendy=a.plotendy;a.canvasendx+=c.rightLabelSpace},eiMethods:{sliceDataItem:function(a){var c=this.jsVars.hcObj,b;if(c&&c.series&&(b=c.series[0])&&b.data&&b.data[a]&&b.data[a].slice)return b.data[b.xIncrement-1-a].slice()}},useSortedData:!0,creditLabel:aa},s.gaugebase);s("pyramid",{defaultGaugePaletteOptions:ga,subTitleFontSizeExtender:0,drawAnnotations:!0,standaloneInit:!0,defaultSeriesType:"pyramid",
defaultPlotShadow:1,useSortedData:!1,isPyramid:1,creditLabel:aa},s.funnel);s("sparkbase",{defaultPlotShadow:0,useSortedData:!1,subTitleFontSizeExtender:0,subTitleFontWeight:"normal",drawAnnotations:!0,showYAxisValues:0,numdivlines:0,chartrightmargin:3,chartleftmargin:3,charttopmargin:3,chartbottommargin:3,decimals:2,showTrendlineLabel:0,zeroplanethickness:0,tooltippadding:1,useScaleRecursively:!0,styleApplicationDefinition_font:s.gaugebase.styleApplicationDefinition_font,defaultGaugePaletteOptions:ea(ga,
{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,c){if(this.name=="sparkwinloss"){var b=c.data||c.dataset&&c.dataset[0]&&c.dataset[0].data,d,e,h={w:1,l:-1,d:0.1};if((d=b&&b.length)>0)for(;d;)d-=
1,e=b[d],e.value=h[e.value.toLowerCase()]}b=a.chart;d=c.chart;e=this.colorM=new ba(b.paletteIndex,d.palettethemecolor,this);b.backgroundColor={FCcolor:{color:j(d.bgcolor,e.get2DBgColor()),alpha:j(d.bgalpha,e.get2DBgAlpha()),angle:j(d.bgangle,e.get2DBgAngle()),ratio:j(d.bgratio,e.get2DBgRatio())}};b.borderColor=w(j(d.bordercolor,e.get2DBorderColor()),j(d.borderalpha,e.get2DBorderAlpha()));b.borderWidth=f(d.showborder,this.showBorder,0)?f(d.borderthickness,1):0;b.plotBorderColor=w(j(d.canvasbordercolor,
e.get2DCanvasBorderColor()),f(d.showcanvasborder,1)==0?Da:j(d.canvasborderalpha,oa));b.plotBorderWidth=f(d.canvasborderthickness,1);e=wa(j(d.basefontcolor,e.get2DBaseFontColor()));a.tooltip.style.color=a.plotOptions.series.dataLabels.style.color=a.title.style.color=a.subtitle.style.color=e;e=b.openColor=wa(j(d.opencolor,"0099FF"));h=b.closeColor=wa(j(d.closecolor,"0099FF"));b.highColor=wa(j(d.highcolor,"00CC00"));b.lowColor=wa(j(d.lowcolor,"CC0000"));a.chart.openValue={style:B({},a.plotOptions.series.dataLabels.style)};
ta(a.chart.openValue.style);a.chart.openValue.style.color=e;a.chart.closeValue={style:B({},a.plotOptions.series.dataLabels.style)};ta(a.chart.openValue.style);a.chart.closeValue.style.color=h;a.chart.highLowValue={style:B({},a.plotOptions.series.dataLabels.style)};this.parseStyles(a);if(this.showCanvas==0)b.plotBackgroundColor=Ha;if(!this.showCanvasBorder)b.plotBorderWidth=0;if(!b.useRoundEdges)b.plotShadow=0;d.zeroplanethickness=j(d.zeroplanethickness,this.zeroplanethickness)},spaceManager:function(a,
c,b,d){var e=a[Z].smartLabel,h=c.chart,i=a.series[0],g=a.chart,n=b-(g.marginRight+g.marginLeft),k=f(h.canvasleftmargin),l=f(h.canvasrightmargin),T=a.valuePadding=f(h.valuepadding,2),p=a.plotOptions.series.dataLabels.style,o=parseInt(p.lineHeight),J=n,v=0,A=0;if(i){d=gb(a,c,n*0.7,d,void 0,b,d);J-=d.left+d.right;var n=b-(g.marginRight+g.marginLeft),y=i=0,m=0;e.setStyle(p);O(g.openValue.label)&&(e.setStyle(g.openValue.style),o=f(parseInt(g.openValue.style.lineHeight,10),10),p=e.getSmartText(g.openValue.label,
J,o*1.5),p.width>0&&(v=i=p.width+T,J-=i));O(g.closeValue.label)&&(e.setStyle(g.closeValue.style),o=f(parseInt(g.closeValue.style.lineHeight,10),10),p=e.getSmartText(g.closeValue.label,J,o*1.5),p.width>0&&(A=y=p.width+T,J-=y));O(g.highLowValue.label)&&(e.setStyle(g.highLowValue.style),o=f(parseInt(g.highLowValue.style.lineHeight,10),10),e=e.getSmartText(g.highLowValue.label,J,o*1.5),e.width>0&&(A+=m=e.width+T));g.marginRight+=m+y;g.marginLeft+=i;O(k)?(g.spacingLeft=g.marginLeft=k,g.spacingLeft-=d.left+
i):g.marginLeft+=d.left;O(l)?(g.spacingRight=g.marginRight=l,g.spacingRight-=d.right+m+y):g.marginRight+=d.right;this.xAxisMinMaxSetter(a,c,n);g=a.xAxis;l=g.min;n=g.max;k=f(h.periodlength,0);h=w(j(h.periodcolor,this.colorM.getPeriodColor()),f(h.periodalpha,100));T=1;if(k>0)for(;l<=n;l+=k)T?(g.plotBands.push({color:h,from:l,to:Math.min(n,l+k),zIndex:1}),T=0):T=1;hb(a,c,b,v,A)}}},H);s("sparkline",{standaloneInit:!0,defaultSeriesType:"sparkline",creditLabel:aa,showtooltip:0,showCanvas:0,point:s.linebase.point,
lineThickness:1,anchorRadius:2,anchorBorderThickness:0,postSeriesAddition:function(a,c){var b=a.chart,d=c.chart,e=this.colorM,h=a.series&&a.series[0],i=h&&a.series[0].data,g,n,k,l=this.highValue,T=this.lowValue,p=a[Z].numberFormatter,o=b.openColor,J=b.closeColor,v=b.highColor,A=b.lowColor;f(d.periodlength,-1);j(d.periodcolor,e.getPeriodColor());j(d.periodalpha,oa);var y=wa(j(d.anchorcolor,e.get2DPlotFillColor())),m=f(d.showopenanchor,d.drawanchors,d.showanchors,1),x=f(d.showcloseanchor,d.drawanchors,
d.showanchors,1),q=f(d.showhighanchor,d.drawanchors,d.showanchors,1),P=f(d.showlowanchor,d.drawanchors,d.showanchors,1);f(d.showopenvalue,1);f(d.showclosevalue,1);f(d.showhighlowvalue,1);var t=f(d.anchoralpha,100),s=f(d.drawanchors,d.showanchors,0)==1?f(d.anchoralpha,100):0,z,u,B=0,G=j(d.linecolor,e.get2DPlotFillColor()),E=f(d.linealpha,100);if((e=g=i&&i.length)>0){n=c.data||c.dataset&&c.dataset[0]&&c.dataset[0].data;for(h.color=w(G,E);g;){g-=1;h=i[g];k=n[g];h.color=w(j(k.color,G),f(k.alpha,E));h.marker.fillColor=
w(j(h.anchorbgcolor,y),f(h.anchorbgalpha,s));if(l==T&&h.y==l){z=u=p.dataLabels(h.y);if(P)h.marker.fillColor=w(j(h.anchorbgcolor,A),f(h.anchorbgalpha,t)),h.marker.enabled=!!P;if(q)h.marker.fillColor=w(j(h.anchorbgcolor,v),f(h.anchorbgalpha,t)),h.marker.enabled=!!q}else{if(h.y==T)h.marker.fillColor=w(j(h.anchorbgcolor,A),f(h.anchorbgalpha,t)),h.marker.enabled=!!P,u=p.dataLabels(h.y);if(h.y==l)h.marker.fillColor=w(j(h.anchorbgcolor,v),f(h.anchorbgalpha,t)),h.marker.enabled=!!q,z=p.dataLabels(h.y)}if(!f(k.showvalue,
d.showvalue,d.showvalues,0))h.displayValue=r;O(h.y)&&(B=1)}h=i[0];h.marker.fillColor=w(j(h.anchorbgcolor,o),f(h.anchorbgalpha,t));h.marker.enabled=!!m;o=p.dataLabels(h.y);if(h.y==T&&P)h.marker.fillColor=w(j(h.anchorbgcolor,A),f(h.anchorbgalpha,t)),h.marker.enabled=!!P;if(h.y==l&&q)h.marker.fillColor=w(j(h.anchorbgcolor,v),f(h.anchorbgalpha,t)),h.marker.enabled=!!q;h=i[e-1];h.marker.fillColor=w(j(h.anchorbgcolor,J),f(h.anchorbgalpha,t));h.marker.enabled=!!x;i=p.dataLabels(h.y);if(h.y==T&&P)h.marker.fillColor=
w(j(h.anchorbgcolor,A),f(h.anchorbgalpha,t)),h.marker.enabled=!!P;if(h.y==l&&q)h.marker.fillColor=w(j(h.anchorbgcolor,v),f(h.anchorbgalpha,t)),h.marker.enabled=!!q;b.openValue.label=b.closeValue.label=b.highLowValue.label=r;if(B)b.openValue.label=f(d.showopenvalue,1)?o:r,b.closeValue.label=f(d.showclosevalue,1)?i:r,b.highLowValue.label=f(d.showhighlowvalue,1)?'[<span style="color: '+v+'">'+z+'</span><span>|</span><span style="color: '+A+'">'+u+"</span>]":r}}},s.sparkbase);s("sparkcolumn",{standaloneInit:!0,
defaultSeriesType:"column",creditLabel:aa,showCanvasBorder:!0,point:s.column2dbase.point,postSeriesAddition:function(a,c){var b=c.chart,d=this.colorM,e=a.series&&a.series[0]&&a.series[0].data,h,i,g,n=this.highValue,k=this.lowValue,l=j(b.plotfillalpha,oa),T=j(b.plotfillcolor,d.get2DPlotFillColor()),p=j(b.plotborderalpha,oa),o=j(b.plotbordercolor),J=j(b.highcolor,T),v=j(b.lowcolor,T),A=j(b.highbordercolor,o),y=j(b.lowbordercolor,o),m=f(b.showplotborder,0)?f(b.plotborderthickness,1):0;if((d=e&&e.length)>
0)for(i=c.data||c.dataset&&c.dataset[0]&&c.dataset[0].data;d;){d-=1;h=e[d];g=i[d];var x=j(g.color,T),q=j(g.alpha,l),P=j(g.bordercolor,o),t=j(g.borderalpha,p),s=j(g.ratio,b.plotfillratio),z=j(360-b.plotfillangle,90);h.y==n&&(x=j(g.color,J),P=j(g.bordercolor,A));h.y==k&&(x=j(g.color,v),P=j(g.bordercolor,y));x=this.getColumnColor(g,x,q,P,t,s,z,a.chart.useRoundEdges);h.color=x[0];h.borderColor=x[1];h.borderWidth=m;if(!f(g.showvalue,b.showvalue,b.showvalues,0))h.displayValue=r}},getColumnColor:function(a,
c,b,d,e,h,i,g,f,k){var l,d=j(d,E(c,60));l=c.split(m);a=b.split(m);d=d.split(m);e=e.split(m);k?f={FCcolor:{color:l[0],alpha:a[0]}}:g?(c=l[0],b=a[0],f={FCcolor:{color:E(c,75)+m+V(c,25)+m+E(c,80)+m+V(c,65)+m+E(c,80),alpha:b+m+b+m+b+m+b+m+b,ratio:"0,10,13,57,20",angle:f?"-180":"0"}},d=[E(c,70)]):(b=Ya(b,l.length),f={FCcolor:{color:c,alpha:b,ratio:h,angle:f?180-i:i}});return[f,{FCcolor:{color:d[0],alpha:e[0]}}]}},s.sparkbase);s("sparkwinloss",{standaloneInit:!0,defaultSeriesType:"sparkwinloss",creditLabel:aa,
showCanvasBorder:!1,showCanvas:0,showtooltip:0,postSeriesAddition:function(a,c){var b=a.chart,d=c.chart,e=this.colorM,h=a.series&&a.series[0]&&a.series[0].data,i=j(d.plotfillalpha,oa),g=j(d.plotfillcolor,e.get2DPlotFillColor()),n=j(d.plotborderalpha,oa),k=j(d.plotbordercolor),l=f(d.showplotborder,0)?f(d.plotborderthickness,1):0,T=j(d.wincolor,e.getWinColor()),p=j(d.losscolor,e.getLossColor()),o=j(d.drawcolor,e.getDrawColor()),e=j(d.scorelesscolor,e.getScoreLessColor()),J=r,v,A,y,m,x,q=0,P=0,t=0,s=
a.yAxis[0],z,u,w;a.tooltip.enabled=!1;s.min=-1.1;s.max=1.1;if((s=h&&h.length)>0){for(u=c.data||c.dataset&&c.dataset[0]&&c.dataset[0].data;s;){s-=1;z=h[s];w=u[s];switch(w.value){case 1:J=j(w.color,T,g);q+=1;break;case -1:J=j(w.color,p,g);P+=1;break;case 0.1:J=j(w.color,o,g),t+=1}w.scoreless==1&&(J=j(w.color,e,g));v=j(w.alpha,i);A=j(w.bordercolor,k);y=j(w.borderalpha,n);m=j(w.ratio,d.plotfillratio);x=j(360-d.plotfillangle,90);v=this.getColumnColor(w,J,v,A,y,m,x,a.chart.useRoundEdges);z.color=v[0];z.borderColor=
v[1];z.borderWidth=l;if(!f(w.showvalue,d.showvalue,d.showvalues,0))z.displayValue=r}if(f(d.showvalue,1)==1)b.closeValue.style=B({},a.plotOptions.series.dataLabels.style),b.closeValue.label=q+"-"+P+(t>0?"-"+t:r)}}},s.sparkcolumn);H={realtimeEnabled:!0,linearDataParser:s.gaugebase.linearDataParser,eiMethods:xa({},s.gaugebase.eiMethods),decimals:2,prepareRealtimeValueText:function(){var a=this.hcJSON[Z];return a.rtvHTMLWrapper+a.realtimeValues.join(this.hcJSON.chart.realtimeValueSeparator)+"</span>"+
a.x.name},chart:function(){var a=this.dataObj.chart,c=this.numberFormatter,b,d,e,h=f(a.showrealtimevalue,1),i=f(a.realtimevaluepadding);b=this.dataObj.categories&&this.dataObj.categories[0]&&this.dataObj.categories[0].category||[];d=0;var g,n,k;for(k=0;k<b.length;k+=1)b[k].vline||(d+=1);this.numDisplaySets=f(a.numdisplaysets,d||15);this.chartInstance.addEventListener("beforedataupdate",function(a){delete a.sender.__state._rtPaused});a=this.dataObj.chart;a.adjustdiv="0";if(h)a.xaxisname=a.xaxisname?
"<br />"+a.xaxisname:"<br />";b=s.msareabase.chart.apply(this,arguments);e=b.chart;d=b[Z];g=b.series;d.isDual?(d._userPMin=f(a.pyaxisminvalue),d._userPMax=f(a.pyaxismaxvalue),d._userSMin=f(a.syaxisminvalue),d._userSMax=f(a.syaxismaxvalue)):(d._userMin=f(a.yaxisminvalue),d._userMax=f(a.yaxismaxvalue));e.dataStreamURL=j(a.datastreamurl,"");e.refreshInterval=f(a.refreshinterval,1);e.updateInterval=f(a.updateinterval,e.refreshInterval);e.clearInterval=f(a.clearchartinterval,0);e.dataStamp=a.datastamp;
e.showRealtimeValue=h;e.realtimeValueSeparator=j(a.realtimevaluesep,", ");e.realtimeValuePadding=i;e.realtimeValueFont=j(a.realtimevaluefont,"");e.realtimeValueFontBold=j(a.realtimevaluefontbold,0);e.realtimeValueFontColor=j(a.realtimevaluefontcolor,"");e.realtimeValueFontSize=f(a.realtimevaluefontsize,"");if(h){if(!d.realtimeValues){d.realtimeValues=[];k=0;for(i=g.length;k<i;k++)h=g[k],n=(n=h.data)&&n.length&&n[n.length-1]&&n[n.length-1].y,d.realtimeValues[k]=c.dataLabels(n,h.yAxis)}if(!d.x.name)d.x.name=
b.xAxis.title.text;if(!d.rtvHTMLWrapper)d.rtvHTMLWrapper='<span style="font-weight: '+(e.realtimeValueFontBold?"bold":"normal")+(e.realtimeValueFontColor?";color:"+e.realtimeValueFontColor.replace(Fa,Ia):"")+(e.realtimeValueFontSize?";font-size:"+e.realtimeValueFontSize+"px":"")+(e.realtimeValueFont?";font-family:"+e.realtimeValueFont:"")+'">';b.xAxis.title.text=this.prepareRealtimeValueText()}if(f(a.showrtmenuitem,0))(b.callbacks||(b.callbacks=[])).push(this.drawRTMenuButtons);return b},drawRTMenuButtons:function(a,
c){var b=c.chartInstance,d=c.hcJSON.chart,e=[],e=(e=b.isUpdateActive||c.eiMethods.isUpdateActive)&&e.call(b),e=[{text:"Stop Update",visibility:e?ka:"hidden",onclick:function(){b.stopUpdate()}},{text:"Start Update",visibility:e?"hidden":ka,onclick:function(){b.restartUpdate()}}];f(c.dataObj.chart.allowclear,1)&&e.push({text:"Clear Chart",onclick:function(){b.clearChart()}});a.addButton({x:d.spacingLeft,y:a.chartHeight-d.spacingBottom+(!d.showFormBtn&&!d.showRestoreBtn?-15:10),align:"left",symbol:"configureIcon",
tooltip:"Manage RealTime update",menuId:"realtime-update-menu",menuItems:e})},configureAxis:function(a){var c=a[Z],b=a.xAxis,d=c.x,e=c.axisGridManager,h=d.catCount,i=c.oriCatTmp,c=this.dataObj,g=c.chart||(c.chart={}),c=a.series,n=c[0],g=this.numDisplaySets=f(g.numdisplaysets,h||15),k=n.data.length,l=b.plotLines,j=l&&l.length||0,n=[],p;p=((this.dataObj.categories||(this.dataObj.categories=[{category:[]}]))[0]||(this.dataObj.categories[0]={category:[]})).category||(this.dataObj.categories[0].category=
[]);if(h===0)this.chartInstance.jsVars._forceReflow=!0;k=g-k;if(k>0){for(;j--;)l[j].value+=k;for(b.plotLines=[];k--;)n[k]={y:null},e.addXaxisCat(b,k,k," "),i.unshift(null),p.unshift({label:" "});b.plotLines=b.plotLines.reverse().concat(l)}else k&&(va(b.plotLines,k,-0.5),i.splice(0,-k));for(k=c.length;k--;)e=c[k],b=e.data,e.data=n.concat(b.slice(-g));this.needsRedraw=h===0;d.catCount=g;return s.msareabase.configureAxis&&s.msareabase.configureAxis.apply(this,arguments)},pointValueWatcher:function(a,
c,b,d,e,h,i,g){d=a[Z];if(!d._skipValueWatcher){b=b===void 0?0:b;if(!d._chartState)d._chartState={};d._chartState[b]||(d._chartState[b]={nullValObj:{},nValueMap:{},pValueMap:{},nullArr:[],valueArr:[],pSumArr:[],nSumArr:[],pNullArr:[],nNullArr:[],isLastNull:!1,isLastPSumNull:!1,isLastNSumNull:!1,currentIdx:-1});var a=d[b],b=d._chartState[b],d=b.nullValObj,h=b.nullArr,i=b.valueArr,f=b.pSumArr,k=b.nSumArr,l=b.pNullArr,j=b.nNullArr,p=b.isLastNull,o=b.isLastPSumNull,m=b.isLastNSumNull,v=this.numDisplaySets,
A=b.currentIdx,y=b.pValueMap,D=b.nValueMap,x=v-1,v=e%v;if(e>A){if(p)p=A-d.lastNullIdx,h.push(p),d.lastNullIdx=A,p=A-d.lastNSumNullIdx,j.push(p),d.lastNSumNullIdx=A,p=A-d.lastPSumNullIdx,l.push(p),d.lastPSumNullIdx=A;else{if(m)p=A-d.lastNSumNullIdx,j.push(p),d.lastNSumNullIdx=A;if(o)p=A-d.lastPSumNullIdx,l.push(p),d.lastPSumNullIdx=A}m=o=p=!0;A>=x&&(h[0]===0&&h.shift()||i.shift(),h[0]&&(h[0]-=1)&&d.lastNullIdx&&(d.lastNullIdx-=1),l[0]===0&&l.shift()||f.shift(),l[0]&&(l[0]-=1)&&d.lastPSumNullIdx&&(d.lastPSumNullIdx-=
1),j[0]===0&&j.shift()||k.shift(),j[0]&&(j[0]-=1)&&d.lastNSumNullIdx&&(d.lastNSumNullIdx-=1),delete y[v],delete D[v])}c!==null&&(p=!1,this.isStacked?(!y[v]&&y[v]!==0&&!D[v]&&D[v]!==0&&i.push(c),c>0?!y[v]&&y[v]!==0?(y[v]=c,o=!1,f.push(c)):f[g?f.length-1:v]+=c:!D[v]&&D[v]!==0?(D[v]=c,m=!1,k.push(c)):k[g?k.length-1:v]+=c):(m=o=!1,!y[v]&&y[v]!==0?(y[v]=c,f.push(c)):c>y[v]&&(y[v]=f[f.length-1]=c),!D[v]&&D[v]!==0?(D[v]=c,k.push(c)):c<D[v]&&(D[v]=k[k.length-1]=c)));b.currentIdx=e;b.isLastNull=p;b.isLastPSumNull=
o;b.isLastNSumNull=m;e=i.concat(f).concat(k);c=Math.max.apply(Math,e);e=Math.min.apply(Math,e);a.max=c;a.min=e}},realtimeUpdate:function(a,c){var b=this.hcJSON,d=this.dataObj,e=d.chart,h=e.allowclear==="0"?0:1,i=b[Z],g=this.numberFormatter,n=i.x,k=n._labelY,l=n._labelX,j=n._yShipment,p=n._isStagger,o=n._rotation,m=n._textAlign,v=n._adjustedPx,A=n._staggerLines,y=n._labelHeight,D,x=i.axisGridManager,q=n.catCount,P=this.hcInstance,s=this.chartInstance.jsVars,w=a.values,z=a.labels||[],E=a.showLabels||
[],C=a.colors,G=a.toolTexts,H=a.links,L=b.xAxis,M=d.chart.showlabels=="0",I=b.chart.showRealtimeValue,N=d.categories,K=s._reflowData,S=[],R=f(i._startIndex,0),O=n.stepValue,n=a.dimension>q?q:a.dimension,Q=q-n,F,V=[],S=[],U=a.vlines,W,Y,ca,aa,ba,X,ha,ka,fa,da,ea,ja,ia,ga,oa=new Date;fa=i.showStackTotal;da=!i[0].stacking100Percent;ea=i.isBar;ja=i.is3d;ia=b.chart.rotateValues&&!ea?270:0;ga=b.plotOptions.series.dataLabels.style;var qa=parseFloat(ga.fontSize),ma=[];a.clear&&h&&this.realtimeUpdate({dimension:this.numDisplaySets,
values:[],labels:[]},a.dimension>0);if(a.dimension){b.plotOptions.series.animation=!1;U?(W=a.vlineColors||[],Y=a.vlineLabels||[],ca=a.vlineThickness||[],aa=a.vlinedashed||[]):U=[];if(!N)N=d.categories=[];if(N[0]){if(!N[0].category)N[0].category=[]}else N[0]={category:[]};N=N[0].category;S=va(L.plotLines,-n,-0.5);h=S.length;for(V=[];h--;){if((F=S[h]).label)ba=F.label,ba.text=E[h]==="0"||M?"":u(z[h]||r),D=Q+h,F.value=D,ha=q+h+R,(D=ha%O===0)?(ba.style=L.labels.style,ba.y=p?k+ha/O%A*y:j,ba.x=l+(o?v:0),
ba.rotation=o,ba.textAlign=m):ba.style=L.steppedLabels.style,V.push(F),L.plotLines.push(B({},F)),N.shift(),N.push({label:ba.text});U[h]==="1"&&x.addVline(L,{color:W[h]&&decodeURIComponent(W[h]),label:Y[h]&&decodeURIComponent(Y[h]),thickness:ca[h]&&decodeURIComponent(ca[h]),dashed:aa[h]&&decodeURIComponent(aa[h])},Q+h,b)}S=[];i._startIndex=(n+R)%(p?O*A:O);h=b.series&&b.series.length;n&&i.oriCatTmp.splice(0,n);for(i._skipValueWatcher=!1;h--;){E=b.series[h];M=w&&w[h]||[];N=C&&C[h]||[];R=H&&H[h]||[];
W=G&&G[h]||[];x=E.yAxis||0;F=i._chartState&&i._chartState[x]||{};ca=i._rtCounter||(i._rtCounter=F.currentIdx&&F.currentIdx+2||1);!S[h]&&(S[h]=[]);Y=S[h];U=E.data;Q=U.length;aa=Q-n;for(O=0;aa<Q;aa+=1,O+=1)X=g.getCleanValue(decodeURIComponent(t(M[O],null))),F=decodeURIComponent(z[O]||""),i.oriCatTmp[aa]=F,U.shift(),F=E._dataParser({label:F,color:N&&N[O]&&decodeURIComponent(N[O]),link:R&&R[O]&&decodeURIComponent(R[O]),tooltext:W&&W[O]&&decodeURIComponent(W[O])},aa,X),F.y=X,U.push(F),Y.push(F),this.pointValueWatcher(b,
X,x,null,ca-1,void 0,void 0,!0),fa&&X!==null&&(F=ma[O]||(ma[O]={value:aa,width:0,isVline:da,isTrend:!da,zIndex:4,label:{align:ra,offsetScaleIndex:0,rotation:ia,style:ga,verticalAlign:Ta,x:0},_p:0,_n:0,_value:0}),X<0?F._n+=X:F._p+=X,F._value+=X);I&&(i.realtimeValues[h]=g.dataLabels(X,E.yAxis))}i._rtCounter+=n;if(fa)for(h=ma.length;h--;){F=ma[h];X=F._value;if(da)F.label.offsetScale=X<0?F._n:F._p;F.label.y=ea?0:X<0?ia===270?4:qa:-4;F.label.textAlign=!ja&&ia===270?X<0?na:pa:ea?X<0?na:pa:ra;F.label.text=
i.numberFormatter.yAxis(X);delete F._p;delete F._n;delete F._value;V.push(F);L.plotLines.push(B({},F))}if(I)L.title.text=this.prepareRealtimeValueText();g=b.yAxis[0];w=i[0];G=f(this.isStacked?0:this.setAdaptiveYMin,e.setadaptiveymin,0);C=z=!G;H=(g.max-g.min)/4;if(i.isDual){if(w.max>g.max||w.min<g.min||!(C&&g.min===0)&&g.min!==i._userPMin&&w.min-g.min>H||!(z&&g.max===0)&&g.max!==i._userPMax&&g.max-w.max>H)s._forceReflow=!0,i._skipValueWatcher=!0;g=b.yAxis[1];w=i[1];C=z=!f(e.setadaptivesymin,G);H=(g.max-
g.min)/4;if(w.max>g.max||w.min<g.min||!(C&&g.min===0)&&g.min!==i._userSMin&&w.min-g.min>H||!(z&&g.max===0)&&g.max!==i._userSMax&&g.max-w.max>H)s._forceReflow=!0,i._skipValueWatcher=!0}else if(w.max>g.max||w.min<g.min||!(C&&g.min===0)&&g.min!==i._userMin&&w.min-g.min>H||!(z&&g.max===0)&&g.max!==i._userMax&&g.max-w.max>H)s._forceReflow=!0,i._skipValueWatcher=!0;if(s._forceReflow){g=b.yAxis[0];w=i[0];H=f(i.numdivlines,e.numdivlines,this.numdivlines,4);X=e.adjustdiv!==Da;fa=f(i._userMax,i._userPMax);
da=f(i._userMin,i._userPMin);ea=f(e.showyaxisvalues,e.showyaxisvalue,1);ja=f(e.showlimits,ea);ia=f(e.showdivlinevalue,e.showdivlinevalues,ea);ga=f(parseInt(e.yaxisvaluesstep,10),parseInt(e.yaxisvaluestep,10),1);ga=ga<1?1:ga;this.axisMinMaxSetter(g,w,fa,da,z,C,H,X);delete g._altGrid;delete g._lastValue;g.plotLines=[];g.plotBands=[];g.labels.enabled=g.labels._enabled;g.gridLineWidth=g._gridLineWidth;g.alternateGridColor=g._alternateGridColor;this.configurePlotLines(e,b,g,w,ja,ia,ga,i.numberFormatter,
!1);if(i.isDual)fa=i._userSMax,da=i._userSMin,G=f(e.setadaptivesymin,G),C=z=!G,ja=f(e.showsecondarylimits,ja),ia=f(e.showdivlinesecondaryvalue,ea),g=b.yAxis[1],w=i[1],this.axisMinMaxSetter(g,w,fa,da,z,C,H,X),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(e,b,g,w,ja,ia,ga,i.numberFormatter,!0);d.trendlines&&Na(d.trendlines,b.yAxis,i,i.isDual,this.isBar)}if(K.hcJSON)e=K.hcJSON[Z],delete K.hcJSON[Z],
B(b.series,K.hcJSON.series,!0),K.hcJSON[Z]=e,e=null,K.hcJSON.yAxis=[{},{}];B(K,{preReflowAdjustments:function(){this.dataObj.categories=d.categories},postReflowAdjustments:function(){this.hcJSON.xAxis.plotLines=L.plotLines;this.hcJSON.series=b.series},postHCJSONCreation:function(a){B(a,{_FCconf:{0:{min:i[0].min,max:i[0].max},1:{min:i[1].min,max:i[1].max},_skipValueWatcher:!0,realtimeValues:i.realtimeValues,rtvHTMLWrapper:i.rtvHTMLWrapper}},!0)},hcJSON:{_FCconf:{_userMax:i._userMax,_userMin:i._userMin,
_userPMax:i._userPMax,_userSMax:i._userSMax,_userPMin:i._userPMin,_userSMin:i._userSMin,_chartState:i._chartState,_rtCounter:i._rtCounter,_startIndex:i._startIndex,oriCatTmp:i.oriCatTmp,x:{catCount:q,_labelY:k,_labelX:l,_yShipment:j,_isStagger:p,_rotation:o,_textAlign:m,_adjustedPx:v,_staggerLines:A,_labelHeight:y}}}},!0);if(!c){if(s._forceReflow)s._forceReflow=!1,g=b.yAxis[0],k=g.plotBands.concat(g.plotLines),K.hcJSON.yAxis||(K.hcJSON.yAxis=[]),K.hcJSON.yAxis[0]=g,Ba(g,k),P.yAxis[0].realtimeSetExtremes(g.min,
g.max,k),i.isDual&&(g=b.yAxis[1],K.hcJSON.yAxis[1]=g,k=g.plotBands.concat(g.plotLines),Ba(g,k),P.yAxis[1].realtimeSetExtremes(g.min,g.max,k));P.xAxis[0].realtimeAxisShift(n,V);if(I&&(ka=P.xAxis[0].axisTitle))ka.added=!0,ka.attr({text:L.title.text});h=0;for(aa=S.length;h<aa;h+=1)P.series[h].realtimeUpdate(S[h]);this.realtimeDrawingLatency=new Date-oa}}},extractTrendLines:function(a){for(var c=a.plotLines,a=a.plotBands,b,d=c.length,e=[],h=[];d;)b=d-1,b=c[b],b.isTrend&&h.push(b),d-=1;for(d=a.length;d;)b=
d-1,c=a[b],c.isTrend&&e.push(c),d-=1;return{trendLines:h,trendBands:e}}};xa(R.Renderer.prototype.symbols,{configureIcon:function(a,c,b){b-=1;var d=b*0.71,e=(b+2)*0.71,h=a-b,i=c-b,g=a+b,b=c+b,f=a+0.5,k=c+0.5,l=a-0.5,j=c-0.5,p=h-2,o=i-2,m=g+2,v=b+2,A=a+d,y=c+d,D=a-d,d=c-d,x=a+e,q=c+e;a-=e;c-=e;return["M",h,k,"L",p,k,p,j,h,j,D-0.25,d+0.25,a-0.25,c+0.25,a+0.25,c-0.25,D+0.25,d-0.25,l,i,l,o,f,o,f,i,A-0.25,d-0.25,x-0.25,c-0.25,x+0.25,c+0.25,A+0.25,d+0.25,g,j,m,j,m,k,g,k,A+0.25,y-0.25,x+0.25,q-0.25,x-0.25,
q+0.25,A-0.25,y+0.25,f,b,f,v,l,v,l,b,D+0.25,y+0.25,a+0.25,q+0.25,a-0.25,q-0.25,D-0.25,y-0.25,"Z"]}});xa(H.eiMethods,{clearChart:function(a){a=a&&a.toString&&a.toString();this.feedData("clear=1");q.raiseEvent("ChartCleared",{source:a},this,[this.id,a])},getDataJSON:function(){return this.jsVars._rtLastUpdatedData||{values:[]}},getData:function(){var a=this.jsVars,c=a.hcObj,a=a.instanceAPI.hcJSON[Z].oriCatTmp,b,d=[],e,h,i,g;if(!c||!c.series)return d;c=c.series;e=[];for(i=c.length;i--;){b=c[i];e[b.index]=
b.name;h=b.data;for(g=a.length;g--;)b=d[g]||(d[g]=[a[g]]),b[i+1]=h[g].y}e.unshift(null);d.unshift(e);return d}});s("realtimearea",xa({standaloneInit:!0,multisetRealtime:!0,defaultPlotShadow:1,creditLabel:aa},H),s.msareabase);s("realtimecolumn",xa({standaloneInit:!0,multisetRealtime:!0,creditLabel:aa},H),s.mscolumn2dbase);s("realtimeline",xa({standaloneInit:!0,multisetRealtime:!0,creditLabel:aa},H),s.mslinebase);s("realtimelinedy",xa({standaloneInit:!0,multisetRealtime:!0,isDual:!0,creditLabel:aa,
series:s.mscombibase},H),s.mslinebase);s("realtimestackedarea",{isStacked:!0,showSum:0,creditLabel:aa},s.realtimearea);s("realtimestackedcolumn",{isStacked:!0,creditLabel:aa},s.realtimecolumn);var nb=function(a,c){return a.minvalue-c.minvalue};ma.prototype={getColorObj:function(a){for(var c=this.colorArr,b=0,d=c.length,e,h,i={};b<d;b+=1){i.index=b;e=c[b];h=c[b+1];if(a<e.minvalue)return i.nextObj=e,i;if(a>=e.minvalue&&a<=e.maxvalue){i.colorObj=e;if(h&&a==h.minvalue)i.nextObj=h,i.isOnMeetPoint=!0;return i}i.prevObj=
e}i.index=b-1;return i},getColorRangeArr:function(a,c){var b,d=this.colorArr,e,h,i=[],g,f;if(!this.defaultAsigned&&(a>c&&(b=a,a=c,c=b),a<c&&(e=this.getColorObj(a),h=this.getColorObj(c),e&&h))){b=a;e=e.index;for(h=h.index;e<=h;e+=1){g=B({},d[e]);if(g.minvalue!==b)g.minvalue=b;i.push(g);f=g;b=g.maxvalue}f.maxvalue=c}return i}};ma.prototype.constructor=ma;var qb=function(){var a={y:!0,R1:!0,R2:!0,h:!0,r3dFactor:!0,color:!0,alpha:!0,fill:!0,stroke:!0,strokeColor:!0,strokeAlpha:!0,"stroke-width":!0},c=
function(a,b,c,d,f,k,l,j,p,o){if(qa(a))b=a.y,c=a.R1,d=a.R2,f=a.h,k=a.r3dFactor,l=a.is2D,o=a.isHollow,p=a.isFunnel,j=a.renderer,a=a.x;var m=a-c,v=a+c,A=a-d,y=a+d,D=b+f,x;if(l){if(x={silhuette:["M",m,b,"L",v,b,y,D,A,D,"Z"]},!p)x.lighterHalf=["M",m,b,"L",a,b,a,D,A,D,"Z"],x.darkerHalf=["M",a,b,"L",v,b,y,D,a,D,"Z"]}else if(p){m=c||0.01;A=d||0.01;v=o;y=j;f=b+f;D=m*k;k*=A;var c=Math.pow(A,2)-Math.pow(m,2),d=-2*(Math.pow(A,2)*b-Math.pow(m,2)*f),o=Math.sqrt(Math.pow(d,2)-4*c*(Math.pow(m*k,2)+Math.pow(A*b,
2)-Math.pow(A*D,2)-Math.pow(m*f,2))),j=(-d+o)/(2*c),c=(-d-o)/(2*c),q;j<f&&j>b?q=c:c<f&&c>b&&(q=j);j=Math.sqrt((Math.pow(q-b,2)-Math.pow(D,2))/Math.pow(m,2));c=-j;c={topLeft:{x:Math.round(Math.pow(m,2)*c/(q-b)*100)/100,y:Math.round((Math.pow(D,2)/(q-b)+b)*100)/100},bottomLeft:{x:Math.round(Math.pow(A,2)*c/(q-f)*100)/100,y:Math.round((Math.pow(k,2)/(q-f)+f)*100)/100},topRight:{x:Math.round(Math.pow(m,2)*j/(q-b)*100)/100,y:Math.round((Math.pow(D,2)/(q-b)+b)*100)/100},bottomRight:{x:Math.round(Math.pow(A,
2)*j/(q-f)*100)/100,y:Math.round((Math.pow(k,2)/(q-f)+f)*100)/100}};for(x in c)if(isNaN(c[x].x)||isNaN(c[x].y))c[x].x=x=="topLeft"||x=="bottomLeft"?-m:m,c[x].y=x=="bottomRight"||x=="bottomLeft"?f:b;d=c.topLeft;o=c.bottomLeft;x=a+d.x;q=a+c.topRight.x;var j=a+o.x,c=a+c.bottomRight.x,d=d.y,p=o.y,o=y.getArcPath(a,b,x,d,q,d,m,D,0,0),l=y.getArcPath(a,b,x,d,q,d,m,D,1,1),r=y.getArcPath(a,f,c,p,j,p,A,k,1,0),A=y.getArcPath(a,f,c,p,j,p,A,k,0,1),A={front:["M",x,d].concat(o,["L",c,p],r,["Z"]),back:["M",x,d].concat(l,
["L",c,p],A,["Z"]),silhuette:["M",x,d].concat(l,["L",c,p],r,["Z"])};if(!v)A.top=["M",x,d].concat(o,["L",q,d],y.getArcPath(a,b,q,d,x,d,m,D,0,1),["Z"]);x=A}else x=c*k,q=d*k,f=ca(5,c),j=ca(2,2*x),c=ca(2,j),k=c/k,x={top:["M",m,b,"L",a,b+x,v,b,a,b-x,"Z"],front:["M",m,b,"L",a,b+x,v,b,y,D,a,D+q,A,D,"Z"],topLight:["M",m,b+0.5,"L",a,b+x+0.5,a,b+x-j,m+k,b,"Z"],topLight1:["M",v,b+0.5,"L",a,b+x+0.5,a,b+x-c,v-k,b,"Z"],silhuette:["M",m,b,"L",a,b-x,v,b,y,D,a,D+q,A,D,"Z"],centerLight:["M",a,b+x,"L",a,D+q,a-5,D+q,
a-f,b+x,"Z"],centerLight1:["M",a,b+x,"L",a,D+q,a+5,D+q,a+f,b+x,"Z"]};return x},b=function(b,d){var i,g,n=this,k,l,j=!1,p=!1,o=this._3dAttr;sa(b)&&O(d)&&(i=b,b={},b[i]=d);if(sa(b))n=a[b]?this._3dAttr[b]:this._attr(b);else{for(i in b)if(g=b[i],a[i])if(o[i]=g,i==="fill")g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),Sa.test(g)?(l=Ka(g),k=l.get("hex"),l=l.get("a")*100):g&&g.FCcolor?(k=g.FCcolor.color.split(m)[0],l=g.FCcolor.alpha.split(m)[0]):Pa.test(g)&&(k=g.replace(Fa,Ia),l=f(o.alpha,100)),
o.color=k,o.alpha=l,p=!0;else if(i==="color"||i==="alpha")o.fill=w(o.color,f(o.alpha,100)),p=!0;else if(i==="stroke"||i==="strokeColor"||i==="strokeAlpha"){if(o.is2D)i==="stroke"?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),Sa.test(g)?(l=Ka(g),k=l.get("hex"),l=l.get("a")*100):g&&g.FCcolor?(k=g.FCcolor.color.split(m)[0],l=g.FCcolor.alpha.split(m)[0]):Pa.test(g)&&(k=g.replace(Fa,Ia),l=f(o.alpha,100)),o.strokeColor=k,o.strokeAlpha=l):o.stroke=w(o.strokeColor,f(o.strokeAlpha,100)),o.isFunnel?
this.funnel2D.attr("stroke",o.stroke):this.borderElement.attr("stroke",o.stroke)}else i==="stroke-width"?o.is2D&&(o.isFunnel?this.funnel2D.attr(i,g):this.borderElement.attr(i,g)):j=!0;else this._attr(i,g);if(o.is2D)j&&(Shapeargs=c(o.x,o.y,o.R1,o.R2,o.h,o.r3dFactor,o.is2D),n.shadowElement.attr({d:Shapeargs.silhuette}),o.isFunnel?n.funnel2D.attr({d:Shapeargs.silhuette}):(n.lighterHalf.attr({d:Shapeargs.lighterHalf}),n.darkerHalf.attr({d:Shapeargs.darkerHalf}),n.borderElement.attr({d:Shapeargs.silhuette}))),
p&&(o.isFunnel?n.funnel2D.attr("fill",w(o.color,f(o.alpha,100))):(k=E(o.color,80),l=V(o.color,80),n.lighterHalf.attr("fill",w(l,f(o.alpha,100))),n.darkerHalf.attr("fill",w(k,f(o.alpha,100)))));else if(j&&(Shapeargs=c(o.x,o.y,o.R1,o.R2,o.h,o.r3dFactor,o.is2D),n.shadowElement.attr("d",Shapeargs.silhuette),o.isFunnel?(n.front.attr("d",Shapeargs.front),n.back.attr("d",Shapeargs.back),n.top&&Shapeargs.top&&n.top.attr("d",Shapeargs.top)):(n.front.attr("d",Shapeargs.front),n.top.attr("d",Shapeargs.top),
n.topLight.attr("d",Shapeargs.topLight),n.topLight1.attr("d",Shapeargs.topLight1),n.centerLight.attr("d",Shapeargs.centerLight),n.centerLight1.attr("d",Shapeargs.centerLight1))),p)if(k=o.color,l=o.alpha,o.isFunnel)i=V(k,60),p=E(k,60),n.back.attr("fill",{FCcolor:{color:p+m+i+m+k,alpha:l+m+l+m+l,ratio:"0,60,40",angle:0}}),n.front.attr("fill",{FCcolor:{color:k+m+i+m+p,alpha:l+m+l+m+l,ratio:"0,40,60",angle:0}}),n.top&&n.top.attr("fill",{FCcolor:{color:i+m+p,alpha:l+m+l,ratio:"0,100",angle:-65}});else{i=
V(k,80);j=V(k,70);p=E(k,80);g="0,"+l;var q=k+m+j,o=5/(o.R1*o.r3dFactor)*100;n.centerLight.attr("fill",{FCcolor:{color:q,alpha:g,ratio:"0,100",angle:0}});n.centerLight1.attr("fill",{FCcolor:{color:q,alpha:g,ratio:"0,100",angle:180}});n.topLight.attr("fill",{FCcolor:{color:j+m+j+m+k+m+k,alpha:l+m+l+m+0+m+0,ratio:"0,50,"+o+m+(50-o),angle:-45}});n.topLight1.attr("fill",{FCcolor:{color:j+m+k+m+p,alpha:l+m+l+m+l,ratio:"0,50,50",angle:0}});n.front.attr("fill",{FCcolor:{color:k+m+k+m+p+m+p,alpha:l+m+l+m+
l+m+l,ratio:"0,50,0,50",angle:0}});n.top.attr("fill",{FCcolor:{color:i+m+k+m+p+m+p,alpha:l+m+l+m+l+m+l,ratio:"0,25,30,45",angle:-45}})}}return n},d=function(){var a=this.shadowElement;d&&a.shadow.apply(a,arguments)};return function(a,h,i,g,n,k,l,j,p,o,m){if(qa(a))h=a.y,i=a.R1,g=a.R2,n=a.h,k=a.r3dFactor,l=a.gStr,j=a.is2D,p=a.renderer,m=a.isHollow,o=a.isFunnel,a=a.x;k=f(k,0.15);a={x:a,y:h,R1:i,R2:g,h:n,r3dFactor:k,is2D:j,isHollow:m,isFunnel:o,renderer:p};h=c(a);l=p.g(l);l.Shapeargs=h;l.shadowElement=
p.path(h.silhuette).attr({fill:La}).add(l);l._attr=l.attr;l.attr=b;l.shadow=d;l._3dAttr=a;if(o)if(j)l.funnel2D=p.path(h.silhuette).add(l);else{if(l.back=p.path(h.back).attr({"stroke-width":0}).add(l),l.front=p.path(h.front).attr({"stroke-width":0}).add(l),h.top)l.top=p.path(h.top).attr({"stroke-width":0}).add(l)}else j?(l.lighterHalf=p.path(h.lighterHalf).attr({"stroke-width":0}).add(l),l.darkerHalf=p.path(h.darkerHalf).attr({"stroke-width":0}).add(l),l.borderElement=p.path(h.silhuette).attr({fill:La}).add(l)):
(l.front=p.path(h.front).attr({"stroke-width":0}).add(l),l.centerLight=p.path(h.centerLight).attr({"stroke-width":0}).add(l),l.centerLight1=p.path(h.centerLight1).attr({"stroke-width":0}).add(l),l.top=p.path(h.top).attr({"stroke-width":0}).add(l),l.topLight=p.path(h.topLight).attr({"stroke-width":0}).add(l),l.topLight1=p.path(h.topLight1).attr({"stroke-width":0}).add(l));return l}}();Y.funnel=ea(Y.pie,{states:{hover:{}}});H=R.extendClass(C.pie.prototype.pointClass,{slice:function(a,c){var b=this.series,
d=b.options.SlicingDistance/2,e,h,a=this.sliced=O(a)?a:!this.sliced;e={hcJSON:{series:[]}};e.hcJSON.series[b.index]={data:[]};if(a){if(b.lastSlicedPoint)e.hcJSON.series[b.index].data[b.lastSlicedPoint.index]={isSliced:!1},b.lastSlicedPoint.sliced=!1;else for(h=b.data.length;h--;)e.hcJSON.series[b.index].data[h]={isSliced:!1};b.lastSlicedPoint=this}else b.lastSlicedPoint=void 0;var i={translateY:a?-d:0},g={translateY:a?d:0},f=0,k=b.data,l=k.length;e.hcJSON.series[b.index].data[this.index]={isSliced:a||
!1};B(b.chart.options.instanceAPI.chartInstance.jsVars._reflowData,e,!0);ob(c,!0);for(h=0;h<l;h+=1)e=k[h],e.graphic&&(e.x<this.x?(b=i,f+=1):b=e.x==this.x?f?h==l-1?{translateY:a?d/2:0}:{translateY:0}:{translateY:a?-d/2:0}:g,e.graphic.animate(b),e.dataLabelElement&&e.dataLabelElement.animate(b),e.tracker&&e.tracker.animate(b));return a}});H=R.extendClass(C.pie,{type:"funnel",pointClass:H,translate:function(){var a=this.data,c=this.chart,b=this.options,d=c.plotWidth/2,e=c.plotHeight,h=a.length-1,i=a[h].y,
g=a[0].y,n,k,l,j,p=0,o=b.yScale,m=b.isHollow,v=b.is2d,A=0,y=c.renderer,q={},x=b.streamlinedData,r=this.options.labelDistance,s=0.8/e,t,w=0,z=b.showLabelsAtCenter;f(parseInt(b.dataLabels.style.lineHeight),12);var u=f(parseInt(b.dataLabels.style.fontSize),10)*0.3;n=x?e/(g-i):e/g;k=d;Ja(a,function(c,e){if(e){if(c.isSliced)t=c.x,t>1&&!q[t]&&(q[t]=!0,w+=1),t<h&&(q[t+1]=!0,w+=1);x?(l=b.useSameSlantAngle==1?d*c.y/g:d*Math.sqrt(c.y/g),j=n*(a[e-1].y-c.y)):(A+=j=n*a[e].y,l=d*(1-A*s));c.shapeArgs={x:d,y:p,R1:k,
R2:l,h:j||1,r3dFactor:o,isHollow:m,gStr:"point",is2D:v,renderer:y,isFunnel:!0};z?(c.labelAline="center",c.labelX=d,c.labelY=(v?p:p+o*k)+j/2+u):(c.labelAline="left",c.labelX=d+r+l+3,c.labelY=p+u+j);p+=j;k=l}else l=b.useSameSlantAngle==1?d*a[0].y/g:d*Math.sqrt(a[0].y/g),c.labelWidht>l*2?(c.labelAline="left",c.labelX=0):(c.labelAline="center",c.labelX=d),c.labelY=(v?p:p-o*k)-u-3;c.plotX=d;c.plotY=p});this._temp={slicingGapPosition:q,noOfGap:w}},drawPoints:function(){var a=this.data,c=a.length-1,b,d=
this._temp||{},e=d.slicingGapPosition,d=d.noOfGap;b=this.options.SlicingDistance;var h,i=b/2,g=0;d&&(h=Math.min(i*1.5,b/d),g=i);for(;c>=0;c-=1)if(b=a[c],b.shapeArgs){if(!b.graphic)b.graphic=qb(b.shapeArgs);b.graphic.attr({color:b.color,alpha:b.alpha,"stroke-width":b.borderWidth,stroke:b.borderColor}).add(this.group).shadow(b.shadow.apply,void 0,b.shadow);if(d){if(g)b.graphic.attr({translateY:g}),b._startTranslateY=g;e[b.x]&&(g-=h)}}},drawDataLabels:function(){var a=this.data,c=this.chart,b=this.options.dataLabels,
d=this.dataLabelsGroup,e,h,i,g=c.renderer,n=this.options.showLabelsAtCenter,k={"stroke-width":b.connectorWidth,stroke:b.connectorColor},l=Number(b.style.lineHeight.split(/px/)[0]),j=f(parseInt(b.style.fontSize),10)*0.3,p={},o,m,v,A,y,q=this.options.labelDistance,x,t;if(!d)d=this.dataLabelsGroup=g.g("data-labels").attr({visibility:this.visible?ka:"hidden",zIndex:6}).translate(c.plotLeft,c.plotTop).add(),c.options.chart.hasScroll&&d.clip(this.clipRect);for(A=a.length-1;A>=0;A-=1)y=a[A],e=y.labelY,c=
y.labelX,h=y.labelAline,n?y.dataLabelElement=g.text(y.displayValue,c,e).attr({align:h,translateY:y._startTranslateY||0}).css(b.style).add(y.graphic?d:p.graphic):(v=i=e-j,o!==void 0&&m!==void 0&&m-i<l&&(v=m-l,e=v+j),o=y.plotY,m=v,typeof y.displayValue!=="undefined"&&y.displayValue!==r&&!(A===0&&this.type=="funnel")&&(x=c-3,t=x-q,i=["M",t,i,"L",x,v],i=g.crispLine(i,b.connectorWidth),g.path(i).attr(k).add(y.graphic||d)),g.text(y.displayValue,c,e).attr({align:h}).css(b.style).add(y.graphic||p.graphic||
d)),p=y},drawTracker:function(){for(var a=this,c=a.chart,b=c.renderer,d,e,h=+new Date,i=(d=a.options.cursor)&&{cursor:d},g=a.data.length-1,f,k;g>=0;g-=1)if(f=a.data[g],e=f.tracker,f.graphic)d=f.graphic.Shapeargs.silhuette,e?e.attr(d):(e=f.link!==void 0?{cursor:"pointer",_cursor:"hand"}:i,f.tracker=b.path(d).attr({isTracker:h,fill:La,visibility:a.visible?ka:"hidden",zIndex:1,translateY:f._startTranslateY||0}).on(za?"touchstart":"mouseover",function(b){return function(d){k=d.relatedTarget||d.fromElement;
if(c.hoverSeries!==a&&Ga(k,"isTracker")!==h)a.onMouseOver();b.onMouseOver()}}(f)).on("mouseout",function(b){if(!a.options.stickyTracking&&(k=b.relatedTarget||b.toElement,Ga(k,"isTracker")!==h))a.onMouseOut()}).css(e).add(c.trackerGroup||f.graphic))},render:function(){var d;var a,c=this.chart;a=c.renderer;var b=this.options;if(!this.group)d=this.group=a.g("series"),a=d,a.attr({visibility:this.visible?ka:"hidden",zIndex:b.zIndex}).translate(c.plotLeft,c.plotTop).add(c.seriesGroup);this.drawPoints();
this.drawTracker();this.drawDataLabels();if(this.visible)c.currentSeriesIndex=this.index,c.naviigator&&placeNaviGator(c);this.options.animation&&this.animate&&this.animate();this.isDirty=!1},animate:function(){var a,c,b,d=this.data.length,e=this.options.animation;e&&!qa(e)&&(e={});for(a=0;a<d;a+=1)if((b=(c=this.data[a])&&c.graphic)&&!b.isAnimating)b.isAnimating=!0,b.attr({alpha:0,strokeAlpha:0}),b.animate({alpha:c.alpha,strokeAlpha:Ka(c.borderColor).get("a")*100},e);this.animate=null}});C.funnel=
H;Y.pyramid=ea(Y.funnel,{states:{hover:{}}});H=R.extendClass(C.funnel,{type:"pyramid",translate:function(){var a=this.data,c=this.chart,b=this.options,d=c.plotWidth/2,e=c.plotHeight,h,i,g,n,k=c.renderer,l=b.valueSum,j=b.is2d,p=0,o=0,m,v={},A=0,y=a.length-1,q=b.yScale,x=this.options.labelDistance,r=b.showLabelsAtCenter,t=f(parseInt(b.dataLabels.style.fontSize),10)*0.3;h=e/l;i=0;Ja(a,function(a){if(a.isSliced){if((m=a.x)&&!v[m])v[m]=!0,A+=1;m<y&&(v[m+1]=!0,A+=1)}p+=a.y;g=d*p/l;n=h*a.y;a.shapeArgs={x:d,
y:o,R1:i,R2:g,h:n,r3dFactor:q,gStr:"point",is2D:j,renderer:k};r?(a.labelAline="center",a.labelX=d,a.labelY=(j?o:o+q*i)+n/2+t):(a.labelAline="left",a.labelX=d+x+(i+g)/2+3,a.labelY=o+t+n/2);o+=n;a.plotX=d;a.plotY=o-n/2;i=g});this._temp={slicingGapPosition:v,noOfGap:A}}});C.pyramid=H;Y.bulb=ea(Y.pie,{states:{hover:{}}});H=R.extendClass(C.pie,{type:"bulb",drawPoints:function(){var a,c=this.chart;a=c.options.chart;var b,d,e=a.gaugeRadius,h=a.gaugeOriginX,i=a.gaugeOriginY;b=this.data[0];d=b.graphic;if(b.y!==
void 0&&!isNaN(b.y))a={r:e,fill:b.color,stroke:b.borderColor,"stroke-linecap":"round","stroke-width":b.borderWidth},b.plotX=h,b.plotY=i,b.radius=e,d?d.animate({x:h,y:i,r:e}):b.graphic=c.renderer.symbol("circle",h,i,e).attr(a).add(this.chart.seriesGroup)},drawDataLabels:function(){var a=this.chart,c=this.options,b=a.options.chart,d=this.data[0],e=this.dataLabelsGroup;if(!e)e=this.dataLabelsGroup=a.renderer.g("data-labels").attr({visibility:this.visible?ka:"hidden",zIndex:6}).add();b=b.placeValuesInside?
d.plotY+b.labelLineHeight*1-b.valueTextHeight/2:d.plotY+d.radius+b.valuePadding+b.labelLineHeight*1;if(d.y!==void 0&&!isNaN(d.y)&&d.displayValue!==r)d.dataLabel=a.renderer.text(d.displayValue,d.plotX,b).attr({align:"center"}).css(c.dataLabels.style).add(e)},animate:function(){var a,c,b=this.options.animation;b&&!qa(b)&&(b={});if((c=(a=this.data[0])&&a.graphic)&&!c.isAnimating)c.isAnimating=!0,c.attr({r:0}),c.animate({r:a.radius},b);this.animate=null},realtimeUpdate:function(a){var c=this.chart,b=
c.options,d=b.chart,e=this&&this.data&&this.data[0],h={},i,g=b.instanceAPI.numberFormatter;i=b.instanceAPI.getPointColor;var f=b.instanceAPI.colorRangeGetter,k=a.values||[],l=a.labels||[],m=a.toolTexts||[],a=a.showLabels||[];if(e&&(k[0]&&(f=f.getColorObj(g.getCleanValue(k[0])),(h=f.isOnMeetPoint?f.nextObj:f.colorObj)||(h=f.nextObj||f.prevObj),b=d.defaultColors[f.index%b.defaultColLen],i=i(j(h.code,b),d.gaugeFillAlpha,d.is3D),e.graphic.attr({fill:i})),d=h&&d.useColorNameAsValue?j(h.name,h.label,l[0]):
j(l[0],g.dataLabels(k[0])),d!==void 0&&(a[0]==0&&(d=r),e.dataLabel&&e.dataLabel.attr({text:d})),d=j(m[0],g.dataLabels(k[0])),d!==void 0))e.toolText=d,c.tooltip&&c.tooltip.refresh(e,!0)},drawGraph:function(){},render:function(){var d;var a,c=this.chart;a=c.renderer;var b=this.options;if(!this.group)d=this.group=a.g("series"),a=d,a.attr({visibility:this.visible?ka:"hidden",zIndex:b.zIndex}).translate(c.plotLeft,c.plotTop).add(c.seriesGroup);this.drawGraph();this.drawPoints();this.drawTracker();this.drawDataLabels();
if(this.visible)c.currentSeriesIndex=this.index,c.naviigator&&placeNaviGator(c);this.options.animation&&this.animate&&this.animate();this.isDirty=!1}});C.bulb=H;Y.led=ea(Y.bulb,{states:{hover:{}}});var rb=function(){var a={value:!0},c=function(b,c){var e,h,i=this,g=this._3dAttr,f;sa(b)&&O(c)&&(e=b,b={},b[e]=c);if(sa(b))i=a[b]?i._3dAttr[b]:i._attr(b);else for(e in b)if(h=b[e],a[e]){if(h>=g.minValue&&h<=g.maxValue){g[e]=h;f=(h-g.minValue)/g.perLEDValueLength;h=Math.round(f)*g.sizeGapSum-g.ledGap;if(g.LEDCase){for(var k=
i.colorArr,l=0,j=k.length,p,o,m,l=0;l<j;l+=1)p=k[l],p.maxLEDNoFrac<=f?m=g.LEDLowerFN:o?m=g.LEDUpperFN:(m=void 0,o=p),m&&(p[m](),m==="show"&&p.attr(p.oriShapeArg));o||(o=p);o.show();o.attr(o.hoverShapeArg)}if(i.darkShade){f={};if(g.isXChange){if(f.width=Math.ceil(g.w-h),g.isIncrement)f.x=g.x+h}else if(f.height=Math.ceil(g.h-h),g.isIncrement)f.y=g.y+h;i.darkShade.attr(f)}}}else this._attr(e,h);return i};return function(a,d,e,h,i,g,n,k,l,m,p,o,q,v,A,y,D,x,r,t){if(qa(a))d=a.y,e=a.w,h=a.h,i=a.gStr,g=a.renderer,
n=a.value,k=a.gaugeFillColor,l=a.gaugeBorderColor,m=a.gaugeBorderAlpha,p=a.gaugeBorderThickness,o=a.colorRangeManager,q=a.minValue,v=a.maxValue,A=a.useSameFillColor,y=a.useSameFillBgColor,D=a.ledSize,x=a.ledGap,r=a.type,a=a.x;n>=q&&n<=v||(n=q);var k=j(k,"FFFFFF"),l=j(l,"000000").replace(Fa,Ia),m=f(m,1),p=f(p,2),s={x:a,y:d,w:e,h:h,gStr:i,renderer:g,value:n,gaugeFillColor:k,gaugeBorderColor:l,gaugeBorderAlpha:m,gaugeBorderThickness:p,colorRangeManager:o,minValue:q,maxValue:v,ledGap:x,ledSize:D,type:r,
useSameFillColor:A,useSameFillBgColor:y},i=g.g(i);i._attr=i.attr;i.attr=c;i.shadow=t;i._3dAttr=s;var o=o.getColorRangeArr(q,v),t=a,u=d,z=!0,B=!0,E=r===2||r===4?h:e,G=x+D,C=x/2,L=C/2,M=E-D,H=v-q,v=0,N=o.length,K=0,S,F=K=0,I=!1,Q="show",R=a,U=d,V=p/2,W=a-V,X=d-V,Y=a+e+V,V=d+h+V;A&&(F+=1,LEDLOwerFN="hide");y&&(F+=2,Q="hide");M<0?(A=1,D=E):(A=parseInt(M/G,10)+1,D+=M%G/A,G=D+x);y=H/A;i.colorArr=[];E=[];r===1?R+=G-x/2:r===2?(B=!1,U+=G-x/2):r===3?(t=a+e,z=!1,R+=G-x/2):(u=d+h,B=z=!1,U+=G-x/2);s.ledGap=x;
s.ledSize=D;s.sizeGapSum=G;s.perLEDValueLength=y;s.isIncrement=z;s.isXChange=B;s.LEDLowerFN="show";s.LEDUpperFN=Q;(s.LEDCase=F)&&(F===3?S={x:a,y:d,width:e,height:h}:I=!0);for(i.border=g.path(["M",W,X,"L",Y,X,Y,V,W,V,"Z"]).attr({stroke:w(l,m),"stroke-width":p}).add(i);v<N;v+=1)if((l=o[v])&&O(l.maxvalue))if(m=Math.round((l.maxvalue-q)/y),D=m-K,K=m,D>0){p={r:0};I&&(S={});D*=G;if(B){p.y=u;p.width=D-x;p.height=h;z?(p.x=t,t+=D):(p.x=t-p.width,t-=D);if(I)S.width=p.x-a,z&&F===1||!z&&F===2?(S.x=a,S.width+=
p.width):S.width=e-S.width;if(v===0||v===N-1){if(p.width+=L,z&&v===N-1||!z&&v===0)p.x-=L,p.width=Math.ceil(p.width)}else p.width+=C,p.x-=L}else{p.x=t;p.width=e;p.height=D-x;z?(p.y=u,u+=D):(p.y=u-p.height,u-=D);if(I)S.height=p.y-d,z&&F===1||!z&&F===2?(S.y=d,S.height+=p.height):S.height=h-S.height;if(v===0||v===N-1){if(p.height+=L,z&&v===N-1||!z&&v===0)p.y-=L,p.height=Math.ceil(p.height)}else p.height+=C,p.y-=L}D=g.rect(p).attr({"stroke-width":0,fill:w(j(l.code,"000000"),f(l.alpha,100))}).add(i);D.oriShapeArg=
p;D.hoverShapeArg=S;D.maxLEDNo=m;D.maxLEDNoFrac=(l.maxvalue-q)/y;i.colorArr.push(D)}i.darkShade=g.rect(a,d,e,h,0).attr({"stroke-width":0,fill:w(k,50)}).add(i);for(v=1;v<A;v+=1)B?(E.push("M",R,U,"L",R,U+h),R+=G):(E.push("M",R,U,"L",R+e,U),U+=G);i.LEDGap=g.path(E).attr({stroke:w(k,100),"stroke-width":x}).add(i);i.attr({value:n});return i}}(),H=R.extendClass(C.bulb,{type:"led",drawPoints:function(){var a=this.chart,c=this.options,b=a.options.scale,d=b.max,e=b.min,h=this.data[0],i=this.chart.options.instanceAPI,
g=this.group,f=a.options.chart,k=h.y;h.minValue=e;h.maxValue=d;h.graphic=rb(0,0,a.plotSizeX,a.plotSizeY,"points-group",a.renderer,k,f.gaugeFillColor,f.gaugeBorderColor,f.gaugeBorderAlpha,f.gaugeBorderThickness,i.colorRangeGetter,e,d,f.useSameFillColor,f.useSameFillBgColor,f.ledSize,f.ledGap,i.isHorizontal?b.reverseScale?3:1:b.reverseScale?4:2,c.shadow).add(g);h.graphic.border&&h.graphic.border.shadow(c.shadow,void 0,c.shadow);Va(a.plotWidth,a.plotHeight,a.renderer,this,g)},realtimeUpdate:function(a){var c=
this&&this.chart,b=this&&this.data&&this.data[0],d=this.chart.options.instanceAPI.numberFormatter,e=c.options.plotOptions.series.animation,h={duration:e?a.interval:0},i=a.labels||[],g=a.showLabels||[],f=a.toolTexts||[],a=d.getCleanValue((a.values||[])[0]);if(b){var k=b.maxValue;if(a>=b.minValue&&a<=k&&(e&&$(b.graphic).stop(!0,!0),b.value=a,b.graphic.animate({value:a},h),e=j(i[0],d.dataLabels(a),b.dataLabel&&b.dataLabel.textStr),g[0]==0&&(e=""),b.dataLabel&&e!==void 0&&b.dataLabel.attr({text:e}),d=
j(f[0],d.dataLabels(a)),d!==void 0))b.toolText=d,c.tooltip&&c.tooltip.refresh(b,!0)}},drawDataLabels:function(){var a=this.chart,c=this.data[0],b=this.dataLabelsGroup,d=a.plotWidth,e=a.plotHeight,h=a.options.chart,i=h.valuePadding,g=this.options.dataLabels,n=g.style,k=parseInt(n.lineHeight),h=f(h.yScaleRadius+k*0.37,0);if(!b)b=this.dataLabelsGroup=a.renderer.g("data-labels").translate(a.plotLeft,a.plotTop).attr({visibility:this.visible?ka:"hidden",zIndex:6}).add();e=e+i+h;if(c.y!==void 0&&!isNaN(c.y)&&
c.displayValue!==r)c.dataLabel=a.renderer.text(c.displayValue,d/2,e).attr({align:g.align||ra}).css(n).add(b),b=c.dataLabel.getBBox(),b.x<0&&(b=b.width-a.plotLeft,a.chartWidth<b&&(b=a.chartWidth-a.plotLeft),c.dataLabel.attr({x:b/2}))},animate:function(a){var c,b=this.options.animation;b&&!qa(b)&&(b={});if(!a){c=this.data[0];var a=c.minValue,d;if(c=c&&c.graphic)d=c.attr("value"),c.attr({value:a}),c.animate({value:d},b)}},render:function(){var d;var a,c=this.chart;a=c.renderer;var b=this.options;if(!this.group)d=
this.group=a.g("series"),a=d,a.attr({visibility:this.visible?ka:"hidden",zIndex:b.zIndex}).translate(c.plotLeft,c.plotTop).add(c.seriesGroup);this.drawPoints();this.drawTracker();this.drawDataLabels();if(this.visible)c.currentSeriesIndex=this.index,c.naviigator&&placeNaviGator(c);this.options.animation&&this.animate&&this.animate();this.isDirty=!1}});C.led=H;Y.cylinder=ea(Y.bulb,{states:{hover:{}}});var sb=function(){var a={fulidHRatio:!0,color:!0,alpha:!0,fill:!0},c=[],b=function(b,d){var i,g,n=
this,k,l,q=!1,p=!1,o=this._3dAttr;sa(b)&&O(d)&&(i=b,b={},b[i]=d);if(sa(b))n=a[b]?n._3dAttr[b]:n._attr(b);else for(i in b)if(g=b[i],a[i]){if(i==="fill")g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),Sa.test(g)?(l=Ka(g),k=l.get("hex"),l=l.get("a")*100):g&&g.FCcolor?(k=g.FCcolor.color.split(m)[0],l=g.FCcolor.alpha.split(m)[0]):Pa.test(g)&&(k=g.replace(Fa,Ia)),o.fluidColor=j(k,o.fluidColor,"000000"),o.fluidAlpha=f(l,o.fluidAlpha,100),q=!0;else if(i==="color")o.fluidColor=j(g,o.fluidColor,
"000000"),q=!0;else if(i==="alpha")o.fluidAlpha=f(g,o.fluidAlpha,100),q=!0;else if(g>=0&&g<=1)o.fulidHRatio=g,p=!0;if(q){g=E(o.fluidColor,70);var r=V(o.fluidColor,70),v=E(o.conColor,80),A=V(o.conColor,80),y;l=o.fluidAlpha;y=l+m+l;n.fluid.attr({"stroke-width":0,fill:{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.5,cy:0,r:"100%",color:r+m+g,alpha:y,ratio:"0,100",radialGradient:!0}}});n.fluidTop.attr({"stroke-width":3,stroke:w(r,l),fill:{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.5,cy:0.7,r:"100%",
color:r+m+g,alpha:y,ratio:"0,100",radialGradient:!0}}});n.btnBorderLight.attr({fill:{FCcolor:{color:A+m+v+m+A+m+A+m+v+m+g+m+v+m+A,alpha:"50,50,50,50,50,"+l*0.7+",50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}}})}if(p){g=o.x;var r=o.r,D=o.fluidStroke/2,v=g-r,A=g+r;y=v+D;var x=A-D,t=o.y+o.h,s=t-o.h*o.fulidHRatio,u=r*o.r3dFactor,D=r-D,B=o.renderer.getArcPath;n.fluid.attr({d:c.concat(["M",v,t],B(g,t,v,t,A,t,r,u,0,0),["L",A,s],B(g,s,A,s,v,s,r,u,1,0),["Z"])});n.fluidTop.attr({d:c.concat(["M",y,s],B(g,s,y,
s,x,s,D,u,0,0),["L",x,s],B(g,s,x,s,y,s,D,u,0,0),["Z"])})}}else this._attr(i,g);return n},d=function(){};return function(a,h,i,g,n,k,l,q,p,o,r,v){if(qa(a))h=a.y,i=a.r,g=a.h,n=a.r3dFactor,k=a.gStr,l=a.renderer,q=a.fulidHRatio,p=a.conColor,o=a.conAlpha,r=a.fluidColor,v=a.fluidAlpha,a=a.x;n=f(n,0.15);q>=0&&q<=1||(q=0);p=j(p,"FFFFFF");o=f(o,30);r=j(r,"000000");v=f(v,100);v={x:a,y:h,r:i,h:g,r3dFactor:n,renderer:l,fulidHRatio:q,conColor:p,conAlpha:o,fluidStroke:3,fluidColor:r,fluidAlpha:v};o=l.getArcPath;
k=l.g(k);k._attr=k.attr;k.attr=b;k.shadow=d;k._3dAttr=v;n*=i;var v=i-1.5,A=h+g,g=A-g*q,q=a-i,y=a+i,D=q+1.5,x=y-1.5,t=q-2,s=y+2,u=i+2,B=n+2,z=A+4,C=z+0.0010,H=z+1,G=E(p,80),F=E(p,90),p=V(p,80),L=E(r,70),r=V(r,70),M=i*0.85,I=a-M,N=a+M,K=Math.sqrt((1-M*M/(i*i))*n*n),M=h+K,K=A+K,S=h-1;k.btnBorder=l.path(c.concat(["M",t,z],o(a,z,t,z,s,z,u,B,0,0),["L",s,C],o(a,C,s,C,t,C,u,B,0,0),["Z"])).attr({"stroke-width":4,stroke:w(G,80)}).add(k);k.btnBorder1=l.path(c.concat(["M",q,z],o(a,z,q,z,y,z,i,n,0,0),["L",y,C],
o(a,C,y,C,q,C,i,n,0,0),["Z"])).attr({"stroke-width":4,stroke:w(G,50)}).add(k);k.btnBorderLight=l.path(c.concat(["M",q,A],o(a,A,q,A,y,A,i,n,0,0),["L",y,H],o(a,H,y,H,q,H,i,n,1,0),["Z"])).attr({"stroke-width":0,fill:{FCcolor:{color:p+m+G+m+p+m+p+m+G+m+L+m+G+m+p,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}}}).add(k);k.back=l.path(c.concat(["M",q,A],o(a,A,q,A,y,A,i,n,1,0),["L",y,h],o(a,h,y,h,q,h,i,n,0,0),["Z"])).attr({"stroke-width":1,stroke:w(G,50),fill:{FCcolor:{color:p+m+G+
m+p+m+G+m+F+m+F+m+G+m+p,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}}}).add(k);k.fluid=l.path(c.concat(["M",q,A],o(a,A,q,A,y,A,i,n,0,0),["L",y,g],o(a,g,y,g,q,g,i,n,1,0),["Z"])).attr({"stroke-width":0,fill:{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.5,cy:0,r:"100%",color:r+m+L,alpha:"100,100",ratio:"0,100",radialGradient:!0}}}).add(k);k.fluidTop=l.path(c.concat(["M",D,g],o(a,g,D,g,x,g,v,n,0,0),["L",x,g],o(a,g,x,g,D,g,v,n,0,0),["Z"])).attr({"stroke-width":3,stroke:w(r,
100),fill:{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.5,cy:0.7,r:"100%",color:r+m+L,alpha:"100,100",ratio:"0,100",radialGradient:!0}}}).add(k);k.front=l.path(c.concat(["M",q,A],o(a,A,q,A,y,A,i,n,0,0),["L",y,h],o(a,h,y,h,q,h,i,n,1,0),["Z"])).attr({"stroke-width":1,stroke:w(G,50),fill:{FCcolor:{color:p+m+G+m+p+m+p+m+G+m+p+m+G+m+p,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,0,12,0,15,43,15",angle:0}}}).add(k);k.frontLight=l.path(c.concat(["M",q,A],o(a,A,q,A,I,K,i,n,0,0),["L",I,M],o(a,h,I,M,q,h,
i,n,1,0),["Z"])).attr({"stroke-width":0,stroke:"#"+G,fill:{FCcolor:{color:p+m+G,alpha:"40,0",ratio:"0,100",angle:0}}}).add(k);k.frontLight1=l.path(c.concat(["M",N,K],o(a,A,N,K,y,A,i,n,0,0),["L",y,h],o(a,h,y,h,N,M,i,n,1,0),["Z"])).attr({"stroke-width":0,stroke:"#"+G,fill:{FCcolor:{color:p+m+G,alpha:"40,0",ratio:"0,100",angle:180}}}).add(k);k.cylinterTop=l.path(c.concat(["M",q,S],o(a,S,q,S,y,S,i,n,0,0),["L",y,S],o(a,S,y,S,q,S,i,n,0,0),["Z"])).attr({"stroke-width":2,stroke:w(G,40)}).add(k);return k}}(),
H=R.extendClass(C.bulb,{type:"cylinder",drawPoints:function(){var a=this.chart,c=a.options.scale,b=c.max,c=c.min,d=a.options.chart,e=this.data[0],h=(f(e.y,c)-c)/(b-c);e.minValue=c;e.maxValue=b;e.fulidHRatio=h;e.graphic=sb(d.cylRadius,0,d.cylRadius,d.cylHeight,d.cylYScale,"points-group",a.renderer,h,d.cylGlassColor,"100",d.cylFillColor,"100").add(this.group);Va(a.plotWidth,a.plotHeight,a.renderer,this,this.group)},realtimeUpdate:function(a){var c=this&&this.data&&this.data[0],b=this.chart,d=b.options.instanceAPI.numberFormatter,
e=b.options.plotOptions.series.animation,h={duration:e?a.interval:0},i=a.values||[],g=a.labels||[],f=a.showLabels||[],a=a.toolTexts||[];if(c){var k=c.minValue,l=c.maxValue,i=d.getCleanValue(i[0]),k=(i-k)/(l-k);if(i===null||!(k<0||k>1)){e&&$(c.graphic).stop(!0,!0);c.graphic.animate({fulidHRatio:k},h);e=j(g[0],d.dataLabels(i));d=j(a[0],d.dataLabels(i));if(d!==void 0)c.toolText=d,b.tooltip&&b.tooltip.refresh(c,!0);c.dataLabel&&e!==void 0&&(f[0]==0&&(e=""),c.dataLabel.attr({text:e}))}}},drawDataLabels:C.led.prototype.drawDataLabels,
animate:function(){var a,c,b=this.options.animation;b&&!qa(b)&&(b={});if((c=(a=this.data[0])&&a.graphic)&&!c.isAnimating)c.isAnimating=!0,c.attr({fulidHRatio:0}),c.animate({fulidHRatio:a.fulidHRatio},b);this.animate=null},drawTracker:function(){},render:function(){var d;var a,c=this.chart;a=c.renderer;var b=this.options;if(!this.group)d=this.group=a.g("series"),a=d,a.attr({visibility:this.visible?ka:"hidden",zIndex:b.zIndex}).translate(c.plotLeft,c.plotTop).add(c.seriesGroup);this.drawPoints();this.drawTracker();
this.drawDataLabels();if(this.visible)c.currentSeriesIndex=this.index,c.naviigator&&placeNaviGator(c);this.options.animation&&this.animate&&this.animate();this.isDirty=!1}});C.cylinder=H;Y.thermometer=ea(Y.bulb,{states:{hover:{}}});var tb=function(){var a={fulidHRatio:!0,fluidColor:!0,fluidAlpha:!0,fluidFill:!0},c=[],b=function(b,d){var i,g,n=this,k,l,q=!1,p=!1,o=this._3dAttr,r=o.renderer.getArcPath;sa(b)&&O(d)&&(i=b,b={},b[i]=d);if(sa(b))n=a[b]?n._3dAttr[b]:n._attr(b);else for(i in b)if(g=b[i],a[i]){if(i===
"fluidFill")g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),Sa.test(g)?(l=Ka(g),k=l.get("hex"),l=l.get("a")*100):g&&g.FCcolor?(k=g.FCcolor.color.split(m)[0],l=g.FCcolor.alpha.split(m)[0]):Pa.test(g)&&(k=g.replace(Fa,Ia)),o.fluidColor=j(k,o.fluidColor,"000000"),o.fluidAlpha=f(l,o.fluidAlpha,100),q=!0;else if(i==="fluidColor")o.fluidColor=j(g,o.fluidColor,"000000"),q=!0;else if(i==="fluidAlpha")o.fluidAlpha=f(g,o.fluidAlpha,100),q=!0;else if(g>=0&&g<=1)o.fulidHRatio=g,p=!0;q&&(g=E(o.fluidColor,
o.is2D?80:70),n.fluid.attr({fill:w(g,o.fluidAlpha)}),n.fluidTop.attr({fill:w(g,o.fluidAlpha)}),n.topLight.attr({stroke:w(g,o.fluidAlpha*0.4)}),n.topLightBorder.attr({fill:{FCcolor:{color:g+m+g,alpha:"0,"+o.fluidAlpha*0.3,ratio:"0,80",angle:90}}}));p&&(g=o.scaleY+o.h*(1-o.fulidHRatio),n.fluid.attr({d:o.fluidPath.concat(["L",o.lx2,g,o.lx1,g,"Z"])}),n.fluidTop.attr({d:c.concat(["M",o.lx1,g],r(o.x,g,o.lx1,g,o.lx2,g,o.lCylWidthHalf,1,1,0),["Z"])}))}else this._attr(i,g);return n},d=function(a,b,c){this.border.shadow(a,
b,c)};return function(a,h,i,g,n,k,l,q,p,o,r,v,A){if(qa(a))h=a.y,i=a.r,g=a.h,n=a.gStr,k=a.renderer,l=a.fulidHRatio,q=a.conColor,p=a.conBorderColor,o=a.conBorderThickness,r=a.fluidColor,v=a.fluidAlpha,A=a.is2D,a=a.x;l>=0&&l<=1||(l=0);var q=j(q,"FFFFFF"),p=j(p,"#000000"),o=f(o,1),r=j(r,"000000"),v=f(v,100),y={x:a,y:h,r:i,h:g,renderer:k,fulidHRatio:l,conColor:q,conBorderColor:p,conBorderThickness:o,fluidStroke:3,fluidColor:r,is2D:A,fluidAlpha:v},D=k.getArcPath,n=k.g(n);n._attr=n.attr;n.attr=b;n.shadow=
d;n._3dAttr=y;var x=E(q,80),r=E(r,A?80:70),q=V(q,80),t=i*0.643,s=t*0.33,u=t-s,B=a-t,z=a+t,C=a-u,u=a+u,H=h+t,G=H+g,F=G+i*0.766,L=h+s,g=H+g*(1-l),l=t*0.9,M=i+l-t,I=a-l,N=a+l,K=F-Math.abs(Math.sqrt(M*M-l*l)),S=parseInt(a-t*0.6,10),t=a+t/2;y.fluidPath=c.concat(["M",I,K],D(a,F,I,K,N,K,M,M,0,1));y.scaleY=H;y.lx1=I;y.lx2=N;y.lCylWidthHalf=l;n.topLight=k.path(["M",I,H,"L",N,H]).attr({"stroke-width":1,stroke:w(r,40)}).add(n);n.topLightBorder=k.path(["M",I,H,"L",N,H,N,L,I,L,"Z"]).attr({"stroke-width":0,fill:{FCcolor:{color:r+
m+r,alpha:"40,0",ratio:"0,80",radialGradient:!0,gradientUnits:"objectBoundingBox",cx:0.5,cy:1,r:"70%"}}}).add(n);n.fluid=k.path(y.fluidPath.concat(["L",N,g,I,g,"Z"])).attr({"stroke-width":0,fill:w(r,v)}).add(n);n.fluidTop=k.path(c.concat(["M",I,g],D(a,g,I,g,N,g,l,1,1,0),["Z"])).attr({"stroke-width":0,fill:w(r,v)}).add(n);n.border=k.path(c.concat(["M",C,h],D(C,L,C,h,B,L,s,s,0,0),["L",B,G],D(a,F,B,G,z,G,i,i,0,1),["L",z,L],D(u,L,z,L,u,h,s,s,0,0),["Z"])).attr({"stroke-width":o,stroke:p}).add(n);if(!A)n.bulbBorderLight=
k.path(c.concat(["M",B,G],D(a,F,B,G,z,G,i,i,0,1),D(a,F,z,G,B,G,i,i,0,0),D(a,F,B,G,z,G,i,i,1,0),["Z"])).attr({"stroke-width":0,stroke:"#00FF00",fill:{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.5,cy:0.5,r:"50%",color:x+m+q,alpha:"0,50",ratio:"78,30",radialGradient:!0}}}).add(n),n.bulbTopLight=k.path(c.concat(["M",B,G],D(a,F,B,G,z,G,i,i,0,1),D(a,F,z,G,B,G,i,i,0,0),D(a,F,B,G,z,G,i,i,1,0),["Z"])).attr({"stroke-width":0,fill:{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.3,cy:0.1,r:"100%",color:q+
m+x,alpha:"60,0",ratio:"0,30",radialGradient:!0}}}).add(n),n.bulbCenterLight=k.path(c.concat(["M",B,G],D(a,F,B,G,z,G,i,i,0,1),D(a,F,z,G,B,G,i,i,0,0),D(a,F,B,G,z,G,i,i,1,0),["Z"])).attr({"stroke-width":0,fill:{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.25,cy:0.7,r:"100%",color:q+m+x,alpha:"80,0",ratio:"0,70",radialGradient:!0}}}).add(n),n.cylLeftLight=k.path(c.concat(["M",a,h,"L",C,h],D(C,L,C,h,B,L,s,s,0,0),["L",B,G,a,G,"Z"])).attr({"stroke-width":0,fill:{FCcolor:{color:q+m+x,alpha:"50,0",ratio:"0,80",
angle:0}}}).add(n),n.cylRightLight=k.path(c.concat(["M",B,h,"L",u,h],D(u,L,u,h,z,L,s,s,1,0),["L",z,G,B,G,"Z"])).attr({"stroke-width":0,fill:{FCcolor:{color:q+m+x+m+x,alpha:"50,0, 0",ratio:"0,40,60",angle:180}}}).add(n),n.cylLeftLight1=k.path(["M",S,L,"L",B,L,B,G,S,G,"Z"]).attr({"stroke-width":0,fill:{FCcolor:{color:q+m+x,alpha:"60,0",ratio:"0,100",angle:180}}}).add(n),n.cylRightLight1=k.path(["M",S-0.01,L,"L",t,L,t,G,S-0.01,G,"Z"]).attr({"stroke-width":0,fill:{FCcolor:{color:q+m+x,alpha:"60,0",ratio:"0,100",
angle:0}}}).add(n);return n}}(),H=R.extendClass(C.cylinder,{type:"thermometer",drawPoints:function(){var a=this.chart,c=a.renderer,b=a.options.scale,d=b.max,b=b.min,e=this.options,h=a.options.chart,i=this.data[0],g=f(i.y,b),n=h.thmBulbRadius,k=n*0.643,g=(g-b)/(d-b),l=Ka(i.color),j=l.get("hex").replace(Fa,r),l=l.get("a")*100;i.minValue=b;i.maxValue=d;i.fulidHRatio=g;i.graphic=tb(0+k,0-k,n,a.plotHeight,"points-group",c,g,h.thmGlassColor,h.gaugeBorderColor,h.gaugeBorderThickness,j,l,h.use3DLighting).add(this.group);
i.graphic.shadow(e.shadow,!1,e.shadow);Va(a.plotWidth,a.plotHeight,a.renderer,this,this.group)},drawDataLabels:C.led.prototype.drawDataLabels,animate:function(){var a,c,b=this.options.animation;b&&!qa(b)&&(b={});if((c=(a=this.data[0])&&a.graphic)&&!c.isAnimating)c.isAnimating=!0,c.attr({fulidHRatio:0}),c.animate({fulidHRatio:a.fulidHRatio},b);this.animate=null},render:function(){var d;var a,c=this.chart;a=c.renderer;var b=this.options;if(!this.group)d=this.group=a.g("series"),a=d,a.attr({visibility:this.visible?
ka:"hidden",zIndex:b.zIndex}).translate(c.plotLeft,c.plotTop).add(c.seriesGroup);this.drawPoints();this.drawTracker();this.drawDataLabels();if(this.visible)c.currentSeriesIndex=this.index,c.naviigator&&placeNaviGator(c);this.options.animation&&this.animate&&this.animate();this.isDirty=!1}});C.thermometer=H;Y.lineargauge=ea(Y.bulb,{states:{hover:{}}});H=R.extendClass(C.bulb,{type:"lineargauge",drawTracker:function(){var a=this,c=a.chart,b=a.data,d=c.options.scale,e=(d.max-d.min)/c.plotWidth,h={},i=
c.renderer,g,n,k=+new Date,l=a.options,m;c.options.chart.hasScroll&&c.trackerGroup.clip(a.clipRect);Ja(a.data,function(b){n=b.tracker;var d=b.errorTracker,e=b.errorValue;g=b.trackerArgs||b.shapeArgs||{};delete g.strokeWidth;if(n)n.attr(g);else{if(b.link!==void 0)var h={cursor:"pointer",_cursor:"hand"};b.tracker=i[b.shapeType]&&i[b.shapeType](g).attr({isTracker:k,fill:La,visibility:a.visible?ka:"hidden",zIndex:l.zIndex||1}).on(za?"touchstart":"mouseover",function(d){m=d.relatedTarget||d.fromElement;
if(c.hoverSeries!==a&&Ga(m,"isTracker")!==k)a.onMouseOver();b.onMouseOver()}).on("mouseout",function(b){if(!l.stickyTracking&&(m=b.relatedTarget||b.toElement,Ga(m,"isTracker")!==k))a.onMouseOut()}).css(h).add(b.group||c.trackerGroup)}if(e)e=b.errorPath,d?d.attr({d:e}):(d={series:a,chart:c,id:b.id,label:b.label,options:b.options,svgElm:b.svgElm,toolText:b.errorValue+"",getLabelConfig:b.getLabelConfig},b.errorTracker=i.path(e).attr({"stroke-width":ya(a.options.errorBarThickness,10),stroke:La,isTracker:k,
fill:La,visibility:a.visible?ka:"hidden",zIndex:1}).on(za?"touchstart":"mouseover",function(a,b){return function(c){var d=b.plotLeft,e=b.plotTop;a.tooltipPos=[j(c.layerX,c.x)-d+20,j(c.layerY,c.y)-e-15];b.tooltip.refresh(a)}}(d,c)).on("mousemove",function(a,b){return function(c){var d=b.plotLeft,e=b.plotTop;a.tooltipPos=[j(c.layerX,c.x)-d+20,j(c.layerY,c.y)-e-15];b.tooltip.refresh(a)}}(d,c)).on("mouseout",function(a){return function(){a.tooltip.hide()}}(c)).css(h).add(b.group||c.trackerGroup))});for(var p=
{pageX:0,pageY:0},o=function(b){var d=b.type==="dragend",e=b.data,g=za&&Qa(b)||p,i=a.chart&&a.chart.options&&a.chart.options.instanceAPI&&a.chart.options.instanceAPI.chartInstance;if(d){(b=i&&i.jsVars)&&(b._rtLastUpdatedData=i.getDataJSON());ha.raiseEvent("RealTimeUpdateComplete",{data:"&value="+e.updatedValStr,prevData:h.values,source:"editMode",url:null},i);try{window.FC_ChartUpdated&&window.FC_ChartUpdated(i.id)}catch(f){setTimeout(function(){throw f;},1)}c.tooltip&&c.tooltip.block(!1)&&c.tooltip.refresh(e,
!0)}else h=i.getDataJSON(),e.dragStartX=b.pageX||g.pageX,e.dragStartY=b.pageY||g.pageY,c.tooltip&&c.tooltip.block(!0)},q=function(b){var c=b.data,h=za&&Qa(b)||p,g=c.dragStartX-(b.pageX||h.pageX),i=f(c.value,c.y,d.min),g=i-g*e,k=0,n=[];if(g<d.min)g=d.min;else if(g>d.max)g=d.max;for(;k<c.index;k+=1)n.push("");n.push(g);if(i!==g&&a.realtimeUpdate({values:n}))c.updatedValStr=n.join("|"),c.dragStartX=b.pageX||h.pageX},v=b&&b.length||0;v--;)if(point=b[v],point.editable==="1"&&point.tracker)point.index=
v,point.tracker.css({cursor:"pointer",_cursor:"hand"}),Ra(point.tracker.element,"dragstart dragend",o,point),Ra(point.tracker.element,"drag",q,point)},realtimeUpdate:function(a,c){if(a===this.lastUpdatedObj)return!1;var b=this.chart,d=b.options.scale,e=b.options.series&&b.options.series[0]&&b.options.series[0].data,h=b.options.plotOptions.series.animation,i={duration:h?a.interval:0},g=this&&this.data,f=0,k=this.chart.options.instanceAPI.numberFormatter,l,m,p,o=b.plotWidth,q=b.plotHeight,v=b.options.chart.gaugeType,
r=d.min,y=d.max,t={1:function(a){return{x:(a-r)*o/(y-r)}},2:function(a){return{y:(a-r)*q/(y-r)}},3:function(a){return{x:(y-a)*o/(y-r)}},4:function(a){return{y:(y-a)*q/(y-r)}}},x=a.values||[],s=a.labels||[],u=a.toolTexts||[],w=a.showLabels||[],B=Math.min(g.length,x.length),z=!1;if(c){if(d=g[c.index],m=k.getCleanValue(x[0]),d&&(m===null||m<=y&&m>=r)){if(m!==null){d.value=m;p=t[v](m);h&&$(d.graphic).stop(!0,!0);d.graphic.animate(p,i);if(d.tracker){h&&$(d.tracker).stop(!0,!0);d.tracker.animate(p,i);if(p.x!==
void 0)d.plotX=p.x;if(p.y!==void 0)d.plotY=p.y}z=!0}l=j(s[0],k.dataLabels(m));d.dataLabel&&l!==void 0&&(l=w[0]==0?"":l,h&&$(d.dataLabel).stop(!0,!0),d.dataLabel.animate(p,i),d.dataLabel.attr({text:l}),z=!0);l=j(u[0],e&&e[c.index]&&e[c.index].isTooltextString&&e[c.index].toolText||void 0,k.dataLabels(m));if(l!==void 0)d.toolText=l,b.tooltip&&b.tooltip.refresh(d,!0),z=!0}}else{for(;f<B;f+=1)if(d=g[f],m=k.getCleanValue(x[f]),d&&(m===null||m<=y&&m>=r)){if(m!==null){d.value=m;p=t[v](m);h&&$(d.graphic).stop(!0,
!0);d.graphic.animate(p,i);if(d.tracker){h&&$(d.tracker).stop(!0,!0);d.tracker.animate(p,i);if(p.x!==void 0)d.plotX=p.x;if(p.y!==void 0)d.plotY=p.y}z=!0}l=j(s[f],k.dataLabels(m));d.dataLabel&&l!==void 0&&(l=w[f]==0?"":l,h&&$(d.dataLabel).stop(!0,!0),d.dataLabel.animate(p,i),d.dataLabel.attr({text:l}),z=!0);l=j(u[f],e&&e[f]&&e[f].isTooltextString&&e[f].toolText||void 0,k.dataLabels(m));if(l!==void 0)d.toolText=l,b.tooltip&&b.tooltip.refresh(d,!0),z=!0}this.lastUpdatedObj=a}return z},translate:function(){var a=
this.data,c=this.chart,b=c.options&&c.options.chart,d=c.options.scale,e=d&&d.trendPoint||[],h=c.plotHeight,i=c.plotWidth,g=d.min,n=d.max,k=n-g,l=a.length,j=0,p=0,o=0,m=0,q=g;c.options.instanceAPI.isHorizontal?(j=i/k,m=b.pointerOnOpp?h:0,c=d.reverseScale?3:1):(p=h/k,o=b.pointerOnOpp?i:0,c=d.reverseScale?4:2);d.reverseScale&&(j=-j,p=-p,q=n);this.gaugeType=c;for(this.valueTranslator=function(a){a=f(a,q)-q;return{x:a*j+o,y:a*p+m}};l--;)n=a[l],d=f(n.y,q)-q,n.plotX=n.origX=d*j+o,n.plotY=n.origY=d*p+m;for(l=
e.length;l--;)n=e[l],d=n.startValue-g,n.plotX=n.origX=d*j+o,n.plotY=n.origY=d*p+m},drawPoints:function(){var a=this.data,c=a.length,b=this.chart,d=b.options.scale,e=b.options.chart,h=b.renderer,i=e.showPointerShadow,g=e.showShadow,d=d&&d.trendPoint||[],f,k;k=this.gaugeType;var l={right:0,top:0.5,left:1,bottom:1.5},m,p=function(){return{x:this.category,y:this.y,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},e=e.pointerOnOpp,e=k===1?e?"top":"bottom":k===
2?e?"left":"right":k===3?e?"top":"bottom":e?"left":"right";if(this.dataById===void 0)this.dataById={};for(;c--;)f=a[c],k=l[e]*Math.PI,f.shapeType="symbol",f.shapeArgs={symbol:"poly_"+f.sides,x:f.plotX,y:f.plotY,radius:f.radius,options:{startAngle:k}},f=a[c],f.id!==void 0&&(this.dataById[f.id]={index:c,point:f}),k=i?{opacity:Math.max(f.bgalpha,f.borderalpha)/100}:null,f.graphic=h[f.shapeType](f.shapeArgs).attr({fill:f.color,stroke:f.borderColor,"stroke-width":f.borderWidth}).add(this.group).shadow(k,
void 0,k);for(c=d.length;c--;)if(f=d[c],f.useMarker)f.showOnTop?(e="bottom",a=0):(e="top",a=b.plotHeight),k=l[e]*Math.PI,f.shapeType="symbol",f.shapeArgs={symbol:"poly_3",x:f.plotX,y:a,radius:f.markerRadius,options:{startAngle:k}},k={apply:g,opacity:1},f.graphic=m=h[f.shapeType](f.shapeArgs).attr({fill:f.markerColor,stroke:f.markerBorderColor,"stroke-width":1}).add(this.group).shadow(k.apply,void 0,k),f.markerToolText!==""&&function(a){var c={series:{},chart:b,id:f.id,label:this.label,options:this.options,
svgElm:this.svgElm,toolText:a,getLabelConfig:p};m.on("mouseover",function(a){var d=b.plotLeft,e=b.plotTop;c.tooltipPos=[j(a.layerX,a.x)-d+20,j(a.layerY,a.y)-e-15];b.tooltip.refresh(c)}).on("mouseout",function(){b.tooltip.hide()}).on("mousemove",function(a){var d=b.plotLeft,e=b.plotTop;c.tooltipPos=[j(a.layerX,a.x)-d+20,j(a.layerY,a.y)-e-15];b.tooltip.refresh(c)})}(f.markerToolText)},drawGraph:function(){var a=this.chart,c=a.options.chart,b=a.options.scale,d=a.options.instanceAPI,e=this.gaugeType,
h=a.plotHeight,i=a.plotWidth,g=b.min,j=b.max,k=d.colorRangeGetter.getColorRangeArr(g,j),b=b&&b.trendPoint||[],l=c.colorRangeFillMix,q=c.colorRangeFillRatio,p=c.colorRangeBorderColor,o=c.colorRangeBorderAlpha,r=c.colorRangeBorderThickness,v=a.renderer,c=c.showShadow,t,y,s,x,u,B,C,E=d.colorM,d=this.group;e===1?(s=function(a,b){return{x:a*i/(j-g),y:0,width:(b-a)*i/(j-g),height:h}},x=270):e===2?(s=function(a,b){return{x:0,y:a*h/(j-g),width:i,height:(b-a)*h/(j-g)}},x=180):e===3?(s=function(a,b){return{x:i-
b*i/(j-g),y:0,width:(b-a)*i/(j-g),height:h}},x=270):(s=function(a,b){return{x:0,y:h-b*h/(j-g),width:i,height:(b-a)*h/(j-g)}},x=180);var z=v.g("range").add(d);z.outerRect=v.rect(0,0,i,h,0).add(z);e=0;for(y=k.length;e<y;e+=1){u=k[e];C=s(u.minvalue-g,u.maxvalue-g);u.x=C.x;u.y=C.y;u.width=C.width;u.height=C.height;t=u.code;B=w(mb(t,p),o);t=c?Math.max(u.alpha,o)/100:null;var H=E.parseColorMix(u.code,l),F=E.parseAlphaList(u.alpha,H.length);u=f(u.borderAlpha,o);var G=F.split(m),G=ya.apply(Math,G),G=ya(r&&
u||0,G);z["colorBand"+e]=v.rect(C.x,C.y,C.width,C.height,0).attr({"stroke-width":r,stroke:B,fill:{FCcolor:{color:H.toString(),ratio:q,alpha:F,angle:x}}}).add(z).shadow(t,void 0,{opacity:G/100})}e=0;for(y=b.length;e<y;e+=1)k=b[e],C=s(k.startValue-g,k.endValue-g),k.isZone?z["trendZone"+e]=v.rect(C.x,C.y,C.width,C.height,0).attr({fill:{FCcolor:{color:k.color,alpha:k.alpha}}}).add(z):(l=v.crispLine(["M",C.x,C.y,"L",C.x,C.y+C.height],k.thickness),z["trendLine"+e]=v.path(l).attr({stroke:w(k.color,k.alpha),
"stroke-width":k.thickness,dashstyle:k.dashStyle}).add(z));Va(a.plotWidth,a.plotHeight,a.renderer,this,d)},drawDataLabels:function(){var a=this.data,c=this.chart,b=this.options,d=c.options.scale,e=c.options.chart,h=c.options.instanceAPI,i=this.dataLabelsGroup,g=d.min,n=d.max,k=this.gaugeType,l=h.colorRangeGetter.getColorRangeArr(g,n),h=h.numberFormatter,m=e.colorRangeStyle.style||{},p=c.plotHeight,o=c.plotWidth,d=d&&d.trendPoint||[],q=e.pointerOnOpp,v=e.valueInsideGauge,t=e.showGaugeLabels,y=b.dataLabels.style,
s,x,u,w,B,C,z,E,H,G;H=!1;var b=c.renderer.smartLabel,F,L;L=f(parseInt(y.fontHeight,10),parseInt(y.lineHeight,10),12);var M=e.valuePadding+L*0.5,I=e.valuePadding,N=M,M=v===q?M:M+L/2;b.setStyle(y);e=b.getOriSize("W...").width;if(!i)i=this.dataLabelsGroup=c.renderer.g("data-labels").attr({visibility:this.visible?ka:"hidden",zIndex:6}).add(this.group);k===1?(B=function(a,b,c,d){return{x:(a-g)*o/(n-g),y:c?b?p-d-M:p+M:b?M:-(M+d),align:"center"}},C=function(a,b){return{x:(a-g+(b-a)/2)*o/(n-g),y:p/2,width:(b-
a)*o/(n-g),height:p}}):k===2?(B=function(a,b,c){c?b?(c="right",b=o-M):(c="left",b=o+M):b?(c="left",b=M):(c="right",b=-M);return{x:b,y:a*p/(n-g),align:c}},C=function(a,b){return{y:(a-g+(b-a)/2)*p/(n-g),x:o/2,height:(b-a)*p/(n-g),width:o}}):k===3?(B=function(a,b,c){return{x:o-(a-g)*o/(n-g),y:c?b?p-M:p+M:b?M:-M,align:"center"}},C=function(a,b){return{x:o-(a-g+(b-a)/2)*o/(n-g),y:p/2,width:(b-a)*o/(n-g),height:p}}):(B=function(a,b,c){c?b?(c="right",b=o-M):(c="left",b=o+M):b?(c="left",b=M):(c="right",b=
-M);return{x:b,y:p-a*p/(n-g),align:c}},C=function(a,b){return{y:p-(a-g+(b-a)/2)*p/(n-g),x:o/2,height:(b-a)*p/(n-g),width:o}});if(a){k=0;for(u=a.length;k<u;k+=1)if(w=a[k],w.showvalue!=0&&w.displayValue!==r){F=b.getOriSize(w.displayValue);w.setWidth&&(F=b.getSmartText(w.displayValue,w.setWidth,F.height,!0));z=B(w.y,v,q,F.height-L);if(w.isLabelString){H=!1;for(G=1;!H;){E=a[k+G];if(!E)break;E.isLabelString?H=!0:G+=1}if(E&&(H=b.getOriSize(E.displayValue),s=B(E.y,v,q,H.height-L),G=s.x-H.width/2-(z.x+F.width/
2),s=s.x-z.x,G<0)){x=F.width+G;if(x>s)w.setWidth=x=s;x>e?w.displayValue=w.setWidth&&w.setWidth<=x?b.getSmartText(w.displayValue,w.setWidth,F.height,!0).text:b.getSmartText(w.displayValue,x,F.height,!0).text:(w.displayValue=b.getSmartText(w.displayValue,e,F.height,!0).text,G=G*2+e-4);w.setWidth=null;x=H.width+G-4;E.setWidth=x>s?s:x>e?x:e}if(w.setWidth)w.displayValue=b.getSmartText(w.displayValue,w.setWidth,F.height,!0).text,w.setWidth=null}w.dataLabel=c.renderer.text(w.displayValue,z.x,z.y).attr({align:z.align}).css(y).add(i)}}y=
m||{};b.setStyle(y);if(l&&t){k=0;for(u=l.length;k<u;k+=1)m=l[k],a=j(m.label,m.name),O(a)&&(z=C(m.minvalue,m.maxvalue),F=z.width-4>e&&z.height-4>L?b.getSmartText(a,z.width-4,z.height-4):b.getSmartText(a,z.width,z.height),c.renderer.text(F.text,z.x,z.y+L/4-(F.height-L)/2).attr({align:"center"}).css(y).add(i))}if(d){k=0;for(u=d.length;k<u;k+=1){l=d[k];l.displayValue=j(l.displayValue,h.dataLabels(l.startValue));b.setStyle(l.style);L=b.getOriSize("Wg").height;F=b.getOriSize(l.displayValue);z=B(l.startValue,
0,!l.showOnTop);l.setWidth&&(F=b.getSmartText(l.displayValue,l.setWidth,F.height,!0));H=!1;for(G=1;!H;){E=d[k+G];if(!E)break;E.showOnTop===l.showOnTop?H=!0:G+=1}if(E&&(H=b.getOriSize(E.displayValue),s=B(E.startValue,0,!E.showOnTop),G=s.x-H.width/2-(z.x+F.width/2),G<0)){s=s.x-z.x;x=F.width+G;if(x>s)l.setWidth=x=s;x>e?(F=l.setWidth&&l.setWidth<=x?b.getSmartText(l.displayValue,l.setWidth,F.height,!0):b.getSmartText(l.displayValue,F.width+G-4,F.height,!0),l.displayValue=F.text):(F=b.getSmartText(l.displayValue,
e,F.height,!0),l.displayValue=F.text,G=G*2+e-4);l.setWidth=null;x=H.width+G-4;E.setWidth=x>s?s:x>e?x:e}if(l.setWidth)F=b.getSmartText(l.displayValue,l.setWidth,F.height,!0),l.displayValue=F.text,l.setWidth=null;L=l.showOnTop?-(I+F.height-L):p+N;a=l.isZone?C(l.startValue,l.endValue).x:z.x;l.dataLabel=c.renderer.text(l.displayValue,a,L).attr({align:z.align}).css(l.style).add(i)}}},animate:function(){var a=this.chart,c=this.gaugeType,b=a.options.chart.animation,d=a.plotHeight,e=a.plotWidth,h=0,a=(a.series&&
a.series[0]&&a.series[0].data||[]).length,f=c===1||c===3?"x":"y",g={},j={};b&&!qa(b)&&(b={});for(j[f]=c==="3"?e:c==="4"?d:0;h<a;h+=1){d=(c=this.data[h])&&c.graphic;g[f]=c.shapeArgs[f];if(d&&!d.isAnimating)d.isAnimating=!0,d.attr(j),d.animate(g,b);if((c=c&&c.dataLabel)&&!c.isAnimating)c.isAnimating=!0,c.attr(j),c.animate(g,b)}this.animate=null}});C.lineargauge=H;Y.bullet=ea(Y.bulb,{states:{hover:{}}});H=R.extendClass(C.lineargauge,{type:"bullet",translate:function(){var a=this.data,c=this.chart,b=
c.options.scale,d=c.plotHeight,e=c.plotWidth,h=b.min,i=b.max,g=i-h,j=a.length,k=0,l=0,m=0,p=0,o=h;c.options.instanceAPI.isHorizontal?(k=e/g,p=d/2,c=b.reverseScale?3:1):(l=d/g,m=e/2,c=b.reverseScale?4:2);b.reverseScale&&(k=-k,l=-l,o=i);this.gaugeType=c;for(this.valueTranslator=function(a){a=f(a,o)-o;return{x:a*k+m,y:a*l+p}};j--;)i=a[j],b=f(i.y,o)-o,i.plotX=i.origX=b*k+m,i.plotY=i.origY=b*l+p},drawPoints:function(){var a=this.data,c=this.chart,b=c.renderer,d=c.plotHeight,e=c.plotWidth,h=c.options.scale,
f=a[0],a=a[1],g,j,k,l,m=a.borderWidth;l=c.options.instanceAPI.isHorizontal;var p;p=this.valueTranslator(Math.min(Math.max(h.min,0),h.max));if(O(f.y))f.plotAsDot?(j=k=(l?d:e)*(f.plotFillPercent/100),h=f.plotX-k/2,c=f.plotY-j/2,l?(f.animInitAttr={x:p.x},f.animAttr={x:h}):(f.animInitAttr={y:p.y},f.animAttr={y:c})):(h=Math.min(f.plotX,p.x),c=Math.min(f.plotY,p.y),j=Math.abs(f.plotY-p.y),k=Math.abs(f.plotX-p.x),l?(f.animInitAttr={x:p.x,width:0},f.animAttr={x:h,width:k},j=d*(f.plotFillPercent/100),c-=j/
2):(f.animInitAttr={y:p.y,height:0},f.animAttr={y:c,height:j},k=e*(f.plotFillPercent/100),h-=k/2)),f.shapeType="rect",f.shapeArgs={x:h,y:c,height:j,width:k,endY:g,r:0},f.graphic=b[f.shapeType](f.shapeArgs).attr({fill:f.color,stroke:f.borderColor,"stroke-width":f.borderWidth}).add(this.group);if(O(a.y))l?(j=d*a.targetFillPercent/100,l=j/2,d=h=a.plotX,f=c=a.plotY-l,g=a.plotY+l,l=j,j=m,e=h-m/2,k=[h+m,a.plotY]):(j=e*a.targetFillPercent/100,l=j/2,e=h=a.plotX-l,c=g=a.plotY,d=a.plotX+l,l=m,f=c-m/2,k=[a.plotX,
c+m+10]),a.shapeType="rect",a.tooltipPos=k,a.trackerArgs={x:e,y:f,height:l,width:j,r:0},a.shapeArgs=b.crispLine(["M",h,c,"L",d,g],m),a.animInitAttr={d:["M",a.plotX,a.plotY,"L",a.plotX,a.plotY]},a.animAttr={d:a.shapeArgs},a.graphic=b.path(a.shapeArgs).attr({stroke:a.borderColor,"stroke-width":m,"stroke-linecap":"round"}).add(this.group)},drawDataLabels:C.led.prototype.drawDataLabels,animate:function(a){var c=this.data,b,d=this.options.animation;d&&!qa(d)&&(d={});if(!a){if((a=c[0])&&a.animInitAttr&&
a.animAttr)if((b=a&&a.graphic)&&!b.isAnimating)b.isAnimating=!0,b.attr(a.animInitAttr),b.animate(a.animAttr,d);if((a=c[1])&&a.animInitAttr&&a.animAttr)if((b=a&&a.graphic)&&!b.isAnimating)b.isAnimating=!0,b.attr(a.animInitAttr),b.animate(a.animAttr,d);this.animate=null}}});C.bullet=H;Y.hbullet=ea(Y.bullet,{states:{hover:{}}});H=R.extendClass(C.bullet,{type:"hbullet",drawDataLabels:function(){var a=this.chart,c=this.data[0],b=this.dataLabelsGroup,d=a.plotWidth,e=a.plotHeight,h=a.options.chart.valuePadding,
f=this.options.dataLabels,g=f.style;parseInt(g.lineHeight);if(!b)b=this.dataLabelsGroup=a.renderer.g("data-labels").translate(a.plotLeft,a.plotTop).attr({visibility:this.visible?ka:"hidden",zIndex:6}).add();d+=h;if(c.y!==void 0&&!isNaN(c.y)&&c.displayValue!==r)c.dataLabel=a.renderer.text(c.displayValue,d,e/2),c.dataLabel.attr({align:f.align||ra}).css(g).add(b)},realtimeUpdate:function(a){var c=this&&this.options,b=this&&this.data,d=this.chart,e,h=d.options.instanceAPI.numberFormatter,f,g,n=c.gaugeWidth,
d=c.gaugeOriginX-d.plotLeft,k=c.min,l,c=c.max,m=a.values||[];if(b[0]&&m[0]&&(a=b[0],e=m[0],f=h.getCleanValue(m[0],!0),a&&f<=c&&f>=k))a.plotasdot?(l=d+(f-k)*n/(c-k)-a.shapeArgs.width/2,a.graphic.animate({x:l})):(g=(f-k)*n/(c-k),l=(f-a.value)*n/(c-k),a.graphic.animate({width:g})),e=j(e.label,h.dataLabels(f)),a.toolText=e,a.value=f,a.dataLabel&&a.dataLabel.attr({text:e}),a.tracker&&(a.tracker.animate({width:g}),a.plotX+=l/2);if(b[1]&&m[1]&&(a=b[1],e=m[1],f=h.getCleanValue(qa(e)?e.value:e,!0),a&&f<=c&&
f>=k&&(l=d+(f-k)*n/(c-k)-a.shapeArgs.width/2,a.graphic.animate({x:l}),e=j(e.label,h.dataLabels(f)),a.toolText=e,a.value=f,a.tracker)))a.tracker.animate({x:l}),a.plotX=l}});C.hbullet=H;Y.drawingpad=ea(Y.pie,{states:{hover:{}}});H=R.extendClass(C.pie,{type:"drawingpad",drawPoints:function(){},drawDataLabel:function(){},animate:function(){}});C.drawingpad=H;Y.sparkline=ea(Y.line,{states:{hover:{}}});H=R.extendClass(C.line,{type:"sparkline",drawDataLabels:function(){var a=this.chart,c=this.data[0],b=
this.dataLabelsGroup,d=parseInt(this.options.dataLabels.style.lineHeight),e=a.options.chart,f=e.valuePadding,i=0,d=a.plotHeight/2+d*0.3;if(!b)b=this.dataLabelsGroup=a.renderer.g("data-labels").attr({visibility:this.visible?ka:"hidden",zIndex:6}).translate(a.plotLeft,a.plotTop).add(a.seriesGroup);if(O(e.openValue.label))c.openValue=a.renderer.text(e.openValue.label,-f,d).attr({align:"right"}).css(e.openValue.style).add(b);if(O(e.closeValue.label))c.closeValue=a.renderer.text(e.closeValue.label,a.plotWidth+
f,d).attr({align:"left"}).css(e.closeValue.style).add(b);c.closeValue&&c.closeValue.getBBox().width>0&&(i=c.closeValue.getBBox().width+f);if(O(e.highLowValue.label))c.dataLabel=a.renderer.text(e.highLowValue.label,a.plotWidth+f+i,d,void 0,0).attr({align:"left"}).css(e.highLowValue.style).add(b)}});C.sparkline=H;Y.sparkwinloss=ea(Y.column,{states:{hover:{}}});H=R.extendClass(C.column,{type:"sparkwinloss",drawDataLabels:function(){var a=this.chart,c=a.options.chart,b=this.data[0],d=this.dataLabelsGroup,
e=this.options.dataLabels.style,f=parseInt(e.lineHeight);if(!d)d=this.dataLabelsGroup=a.renderer.g("data-labels").attr({visibility:this.visible?ka:"hidden",zIndex:6}).translate(a.plotLeft,a.plotTop).add(a.seriesGroup);if(typeof c.closeValue.label!="undefined")b.dataLabel=a.renderer.text(c.closeValue.label,a.plotWidth+c.valuePadding,a.plotHeight/2+f*0.3).attr({align:"left"}).css(e).add(d)}});C.sparkwinloss=H;Y.angulargauge=ea(Y.pie,{states:{hover:{}}});var cb=function(a,c){var b=Math.pow(10,c==void 0?
2:c);a*=b;a=Math.round(Number(String(a)));a/=b;return a},Wa=function(a,c,b,d){return[cb(a*b-c*d,2),cb(c*b+a*d,2)]},ub=function(){return function(a,c){var b,d,e,h=this,i=this._Attr,g,n,k;i||(i=h._Attr={});sa(a)&&O(c)&&(b=a,a={},a[b]=c);if(sa(a))h=a=="angle"?h._Attr[a]:h._attr(a);else for(b in a)if(d=a[b],b=="angle")if(i[b]=d,n=d*ja,i.tooltipPos[0]=i.cx+i.toolTipRadius*Math.cos(n),i.tooltipPos[1]=i.cy+i.toolTipRadius*Math.sin(n),h.renderer.type==="VML"){e=h.element;g=j(i.d,h.d.split(" "));i.d=g;k=Math.cos(n);
n=Math.sin(n);g=["M"].concat(Wa(g[1],g[2],k,n),["L"],Wa(g[4],g[5],k,n),Wa(g[6],g[7],k,n),Wa(g[8],g[9],k,n),["Z"]);h._attr({d:g});if(i.color&&i.color.FCcolor)i.color.FCcolor.angle=0-d;Ja(e.childNodes,function(a){var b;if(O(a.angle))b=f(a.angle,0),O(a.FCColorAngle)?b=a.FCColorAngle:a.FCColorAngle=b,b-=d,db&&!X&&(b%=360),kb?a.angle=b:Ga(a,"angle",b)})}else h.rotate(d,0,0);else h._attr(b,d);return h}},R=R.extendClass(C.pie,{type:"angulargauge",drawPoints:function(){var a=this.data,c=this.chart,b=c.options.chart,
d=c.options.scale,e=this.options,c=c.renderer,h=Number(e.gaugeOriginX),i=Number(e.gaugeOriginY),g=b.gaugeStartAngle,j=b.gaugeEndAngle,b=d.min,d=d.max,k=this.pointGroup,l=d-b,m=j-g,p=0,o,q,r,s,t,u,x=a&&a.length,w,B=ub(g,j);if(this.dataById===void 0)this.dataById={};for(;p<x;p+=1){j=a[p];if(!O(j.y)){j.y=b;if(!O(j.toolText))j.toolText=b;if(j.displayValue===" ")j.displayValue=b}j.id!==void 0&&(this.dataById[j.id]={index:p,point:j});j.index=p;o=f(j.radius,(Number(e.gaugeOuterRadius)+Number(e.gaugeInnerRadius))/
2);q=j.baseWidth;t=q/2;r=j.topWidth;u=r/2;s=j.rearExtension;w=j.y>=b&&j.y<=d?(g+(j.y-b)/l*m)/ja:g;j.tooltipPos=[h,i];j.graphic=c.path(["M",o,-u,"L",o,u,-s,t,-s,-t,"Z"]).attr({fill:j.color,stroke:j.borderColor,"stroke-width":j.borderThickness}).add(k);(q||r||j.borderThickness)&&j.graphic.shadow(!!e.shadow);j.graphic._attr=j.graphic.attr;j.graphic.attr=B;j.graphic._Attr={tooltipPos:j.tooltipPos,cx:h,cy:i,toolTipRadius:o-s,color:j.color};j.graphic.attr({angle:w})}},drawGraph:function(){var a=this.chart,
c=a.options.chart,b=a.options.scale,d=this.options,e=this.chart.renderer,h=d.gaugeOuterRadius,i=d.gaugeInnerRadius,g=d.gaugeFillRatio,n=c.gaugeBorderColor,k=c.gaugeBorderThickness,l=c.gaugeBorderAlpha,q=d.gaugeFillMix,p=d.gaugeOriginX,o=d.gaugeOriginY,r=c.gaugeStartAngle,s=c.gaugeEndAngle,c=b.min,t=b.max,y=a.options.instanceAPI,u=y.colorRangeGetter.getColorRangeArr(c,t),x=0,B=u.length,C=t-c,F=s-r,E,z,H,I,G=s>r?1:0,R=1-G,s=r,L=Math.cos(r),M=Math.sin(r),O=p+h*L,N=o+h*M;H=p+i*L;var K=o+i*M,S,U,b=b.trendPoint;
if(!this.trendPointGroup)this.trendPointGroup=e.g("trendpoint").add(this.group);for(;x<B;x+=1){E=u[x];z=r+(Math.min(E.maxvalue,t)-c)/C*F;L=Math.cos(z);M=Math.sin(z);S=p+h*L;U=o+h*M;L=p+i*L;M=o+i*M;I=Math.abs(s-z)>Math.PI?1:0;H=["M",O,N].concat(e.getArcPath(p,o,O,N,S,U,h,h,G,I),["L",L,M],e.getArcPath(p,o,L,M,H,K,i,i,R,I),["Z"]);s=y.parseColorMix(E.code,q);N=y.parseAlphaList(E.alpha,s.length);O=y.parseRatioList(i/h*100+g,s.length);I=E.bordercolor;var V=f(E.borderAlpha,l);I=I&&I.indexOf("{")==-1?w(I,
V):y.parseColorMix(E.code,j(I,n))[0];I=w(I,V);K=N.split(m);K=ya.apply(Math,K);K=ya(k&&V||0,K);e.path(H).attr({fill:{FCcolor:{gradientUnits:"userSpaceOnUse",cx:p,cy:o,r:h,color:s.join(),alpha:N,ratio:O,defaultColor:E.color,defaultAlpha:E.alpha,radialGradient:!0}},"stroke-width":k,stroke:I}).add(this.group).shadow(d.shadow,void 0,{opacity:K/100});O=S;N=U;H=L;K=M;s=z}if(!this.tickMarkGroup)this.tickMarkGroup=e.g("tickMark").add(this.group);if(!this.trendMarkerGroup)this.trendMarkerGroup=e.g("trendMarker").add(this.group);
if(!this.pointGroup)this.pointGroup=e.g("point").translate(p,o).add(this.group);e.circle(p,o,d.pivotRadius).attr({fill:{FCcolor:{color:d.pivotFillColor,alpha:d.pivotFillAlpha,ratio:d.pivotFillRatio,radialGradient:d.isRadialGradient,gradientUnits:"objectBoundingBox",angle:d.pivotFillAngle,cx:0.5,cy:0.5,r:"50%"}},"stroke-width":d.pivotBorderThickness,stroke:d.pivotBorderColor}).add(this.group).shadow(d.shadow);for(var Q,W,d=Math.cos(89.99*ja),g=-d,X=function(){return{x:this.category,y:this.y,series:this.series,
point:this,percentage:this.percentage,total:this.total||this.stackTotal}},x=0,B=b.length;x<B;x+=1){Q=b[x];G=Q.isZone;q=r+(Q.startValue-c)/C*F;n=f(Q.radius,h);k=f(Q.innerRadius,G?Math.max(i-15,0):i);l=f(Q.trendValueDistance,0);L=Math.cos(q);M=Math.sin(q);O=p+n*L;N=o+n*M;H=p+k*L;K=o+k*M;G?(G=r+(Q.endValue-c)/C*F,L=Math.cos(G),M=Math.sin(G),S=p+n*L,U=o+n*M,L=p+k*L,M=o+k*M,R=(G=G>q?1:0)?0:1,I=Math.abs(s-z)>Math.PI?1:0,H=["M",O,N].concat(e.getArcPath(p,o,O,N,S,U,n,n,G,I),["L",L,M],e.getArcPath(p,o,L,M,
H,K,k,k,R,I),["Z"]),Q.graphic=e.path(H).attr({fill:w(Q.color,Q.alpha),"stroke-width":Q.showBorder?Q.thickness:0,stroke:Q.borderColor,dashstyle:Q.dashStyle}).add(this.trendPointGroup)):Q.graphic=e.path(["M",O,N,"L",H,K]).attr({"stroke-width":Q.showBorder?Q.thickness:0,stroke:Q.borderColor,"stroke-linecap":"round",dashstyle:Q.dashStyle}).add(this.tickMarkGroup);if(Q.useMarker)Q.markerElement=W=e.symbol("poly_3",O,N,Q.markerRadius,{startAngle:-q+Math.PI}).attr({fill:Q.markerColor,"stroke-width":1,stroke:Q.markerBorderColor}).add(this.trendMarkerGroup),
Q.markerToolText!==""&&function(b){var c={series:{},chart:a,id:Q.id,label:this.label,options:this.options,svgElm:this.svgElm,toolText:b,getLabelConfig:X};W.on("mouseover",function(b){var d=a.plotLeft,e=a.plotTop;c.tooltipPos=[j(b.layerX,b.x)-d+20,j(b.layerY,b.y)-e-15];a.tooltip.refresh(c)}).on("mouseout",function(){a.tooltip.hide()}).on("mousemove",function(b){var d=a.plotLeft,e=a.plotTop;c.tooltipPos=[j(b.layerX,b.x)-d+20,j(b.layerY,b.y)-e-15];a.tooltip.refresh(c)})}(Q.markerToolText);if(Q.displayValue!=
"")N=(Q.endValue+Q.startValue)/2,G=r+(N-c)/C*F,L=Math.cos(G),M=Math.sin(G),Q.valueInside?(N=k-2-l,G=L>d?na:L<g?pa:ra):(N=n+2+l,G=L>d?pa:L<g?na:ra),O=p+N*L,N=o+N*M,R=Q.style,R=f(parseInt(R.fontSize,10),10),S=R*0.8,Q.textElement=e.text(Q.displayValue,O,N).attr({align:Q.align||G}).css(Q.style).add(this.trendMarkerGroup),O=Q.textElement.getBBox(),O=O.height,N+=L>d||L<g?R-O/2+O*0.4*M*(Q.valueInside?-1:1):Q.valueInside?S-(M<0?0:O*0.9):S-(M>0?0:O*0.9),Q.textElement.attr({y:N})}},drawTracker:function(){var a=
this,c=a.chart,b=a.options,d=c.options.chart,e=c.options.scale,h=b.gaugeOriginX,i=b.gaugeOriginY,g,j=+new Date,k,l,m=(e.max-e.min)/(d.gaugeEndAngle-d.gaugeStartAngle),p=function(a){for(var b={left:a.offsetLeft,top:a.offsetTop},a=a.offsetParent;a;)b.left+=a.offsetLeft,b.top+=a.offsetTop,a!==Oa.body&&a!==Oa.documentElement&&(b.left-=a.scrollLeft,b.top-=a.scrollTop),a=a.offsetParent;return b}(a.chart.container),o=function(a,b,c){return lb(b[1]-a.pageY+c.top,b[0]-a.pageX+c.left)},q={pageX:0,pageY:0},
r=function(b){a.rotationStartAngle=o(za?Qa(b)||q:b,[h,i],p);var c=a.chart&&a.chart.options&&a.chart.options.instanceAPI&&a.chart.options.instanceAPI.chartInstance,d;if(a.chart.tooltip)if(b.type==="dragstart")a.chart.tooltip.block(!0),l=c.getDataJSON();else{(d=(c=a.chart&&a.chart.options&&a.chart.options.instanceAPI&&a.chart.options.instanceAPI.chartInstance)&&c.jsVars)&&(d._rtLastUpdatedData=c.getDataJSON());ha.raiseEvent("RealTimeUpdateComplete",{data:"&value="+b.data.updatedValStr,prevData:l.values,
source:"editMode",url:null},c);try{window.FC_ChartUpdated&&window.FC_ChartUpdated(c.id)}catch(e){setTimeout(function(){throw e;},1)}a.chart.tooltip.block(!1);a.chart.tooltip.refresh(b.data,!0)}},s=function(b){var c=b.data,b=o(za?Qa(b)||q:b,[h,i],p),d=a.rotationStartAngle,d=b<0&&d>0?U(b)-a.rotationStartAngle:b>0&&d<0?U(a.rotationStartAngle)-b:a.rotationStartAngle-b,d=f(c.value,c.y)-d*m,g=[],j=0,k=c.index;if(d<e.min)d=e.min;else if(d>e.max)d=e.max;for(;j<k;j+=1)g.push("");g.push(d);if(d!==c.value&&
a.realtimeUpdate({values:g}))c.updatedValStr=g.join("|"),a.rotationStartAngle=b};Ja(a.data,function(b){g=b.trackerEventAdded;if(b.y!==null&&!g&&b.graphic){if(b.link!==void 0||b.editMode)var d={cursor:"pointer",_cursor:"hand"};b.graphic.attr({isTracker:j}).on(za?"touchstart":"mouseover",function(d){k=d.relatedTarget||d.fromElement;if(c.hoverSeries!==a&&Ga(k,"isTracker")!==j)a.onMouseOver();b.onMouseOver()}).on("mouseout",function(b){if(!a.options.stickyTracking&&(k=b.relatedTarget||b.toElement,Ga(k,
"isTracker")!==j))a.onMouseOut()}).css(d);b.trackerEventAdded=!0;b.editMode&&(Ra(b.graphic.element,"dragstart dragend",r,b),Ra(b.graphic.element,"drag",s,b))}})},drawTickMarks:function(){var a=this.chart,c=this.options,b=a.options.chart,d=a.options.scale,a=a.renderer,e=Number(c.gaugeOriginX),f=Number(c.gaugeOriginY),i=b.gaugeStartAngle,g=d.min,j=Number(c.gaugeInnerRadius),k=Number(c.gaugeOuterRadius),c=d.max-g,b=b.gaugeEndAngle-i,l=0,m=d.majorTM,p=d.minorTM,o=this.tickMarkGroup,q,r,s,t,u,x,B=Math.cos,
C=Math.sin,E=Number(d.minorTMHeight),F=Number(d.majorTMHeight),l=d.placeValuesInside;u=d.tickValueDistance;var z,H,I;d.placeTicksInside?(z=j,E=z+E,F=z+F):(z=k,E=z-E,F=z-F);H=l?j-u:k+u;if(!this.majorTM)this.majorTM=[];if(!this.tmLabel)this.tmLabel=[];l=0;for(j=m.length;l<j;l+=1)k=m[l],q=k.value,u=k.displayValue,x=(q-g)*b/c+i,I=B(x),x=C(x),q=e+z*I,r=f+z*x,s=e+F*I,t=f+F*x,this.majorTM[l]=a.path(["M",q,r,"L",s,t]).attr({stroke:w(d.majorTMColor,d.majorTMAlpha),"stroke-width":d.majorTMThickness,"stroke-linecap":"round"}).add(o),
u!==""&&(s=l==0||l==j-1?d.limitValues.style:d.tickValues.style,q=e+H*I+(k.x||0),r=f+H*x+(k.y||0),this.tmLabel[l]=a.text(u,q,r).attr({align:k.align||"center"}).css(s).add(o));if(!this.minorTM)this.minorTM=[];l=0;for(j=p.length;l<j;l+=1)q=p[l],x=(q-g)*b/c+i,q=e+z*B(x),r=f+z*C(x),s=e+E*B(x),t=f+E*C(x),this.majorTM[l]=a.path(["M",q,r,"L",s,t]).attr({stroke:w(d.minorTMColor,d.minorTMAlpha),"stroke-width":d.minorTMThickness,"stroke-linecap":"round"}).add(o)},drawDataLabels:function(){var a=this.data,c=
this.chart,b=this.options,d=this.dataLabelsGroup,e,h,i=c.renderer,g=b.dataLabels.style,j=b.pivotRadius,k=f(parseInt(g.lineHeight,10),12),l=b.valueBelowPivot,m=b.gaugeOriginX,p=b.gaugeOriginY+(l?k+j+2:-j-2);if(!d)d=this.dataLabelsGroup=i.g("data-labels").attr({visibility:this.visible?ka:"hidden",zIndex:6}).translate(c.plotLeft,c.plotTop).add();Ja(a,function(a){if(a.displayValue!==r)h=a.valueY,e=f(a.valueX,m),O(h)||(h=p,p+=l?k:-k),a.dataLabel=i.text(a.displayValue,e,h).attr({align:"center"}).css(g).add(d)})},
realtimeUpdate:function(a,c){var b=this.data,d=this.chart,e=d.options.scale,f=d.options.chart,i=0,g=d.options.series&&d.options.series[0]&&d.options.series[0].data,n=d.options.instanceAPI.numberFormatter,k=d.options.plotOptions.series.animation?a.interval:0,l,m,p=f.gaugeStartAngle,o=e.min,e=e.max,q=e-o,r=f.gaugeEndAngle-p,s=a.values||[],t=a.labels||[],u=a.showLabels||[],w=a.toolTexts||[],B=Math.min(s.length,b.length),C=!1;if(c){if(f=b[c.index],m=n.getCleanValue(s[0]),f&&(m===null||m<=e&&m>=o)){if(m!==
null)f.value=m,$(f.graphic).stop(!0,!0),f.graphic.animate({angle:(p+(m-o)/q*r)/ja},{duration:k}),C=!0;l=j(t[0],n.dataLabels(m));f.dataLabel&&l!==void 0&&(u[0]==0&&(l=""),f.dataLabel.attr({text:l}),C=!0);l=j(w[0],g&&g[c.index]&&g[c.index].isLabelString&&g[c.index].toolText||void 0,n.dataLabels(m));if(l!==void 0)f.toolText=l,d.tooltip&&d.tooltip.refresh(f,!0),C=!0}}else for(;i<B;i+=1)if(f=b[i],m=n.getCleanValue(s[i]),f&&(m===null||m<=e&&m>=o)){if(m!==null)f.value=m,$(f.graphic).stop(!0,!0),f.graphic.animate({angle:(p+
(m-o)/q*r)/ja},{duration:k}),C=!0;l=j(t[i],n.dataLabels(m));f.dataLabel&&l!==void 0&&(u[i]==i&&(l=""),f.dataLabel.attr({text:l}),C=!0);l=j(w[i],g&&g[i]&&g[i].isLabelString&&g[i].toolText||void 0,n.dataLabels(m));if(l!==void 0)f.toolText=l,d.tooltip&&d.tooltip.refresh(f,!0),C=!0}return C},render:function(){var d;var a,c=this.chart;a=c.renderer;var b=this.options;if(!this.group)d=this.group=a.g("series"),a=d,a.attr({visibility:this.visible?ka:"hidden",zIndex:b.zIndex}).translate(c.plotLeft,c.plotTop).add(c.seriesGroup);
this.drawGraph();this.drawTickMarks();this.drawPoints();this.drawTracker();this.drawDataLabels();if(this.visible)c.currentSeriesIndex=this.index,c.naviigator&&placeNaviGator(c);this.options.animation&&this.animate&&this.animate();this.isDirty=!1},animate:function(a){var c=this.data,b=this.chart.options.chart.gaugeStartAngle,d=0,e,f=c&&c.length;if(!a){for(;d<f;d+=1)e=c[d],e.y&&(a=e.graphic.attr("angle"),e.graphic.attr("angle",b/ja),e.graphic.animate({angle:a},this.options.animation));this.animate=
null}}});C.angulargauge=R},[3,2,0,"sr2"]]);
