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

 @version fusioncharts/3.3.1-sr3.21100
*/
(function(){var j=FusionCharts(["private","modules.renderer.js-lib"]);if(j!==void 0){var g=window,m="",X="0",w=".",J=document,Y=!!J.createElementNS&&!!J.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,b=/msie/i.test(navigator.userAgent)&&!window.opera,A=/\s+/g,e=/^#?/,r=/^rgba/i,z=/[#\s]/ig,oa=/\{br\}/ig,Z=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,s=Math.abs,ia=Math.pow,I=Math.round,K=ia(2,-24),P=Object.prototype.toString,ha=J.documentElement.ontouchstart!==void 0,H=Math,s=H.abs,o=H.max,
p=H.min,E={pageX:0,pageY:0},V=function(a){var b=a.data,c=b.chart,d=c.paper,f=a.type,e=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,l=ha&&h(a)||E,x=c.elements.resizeBox,n=a.layerX||l.layerX,C=a.layerY||l.layerY,k=n-b.ox,t=C-b.oy,u=b.bBox,i=b.ox,B=b.oy,u=b.zoomX,M=b.zoomY,H=b.canvasY,ba=b.canvasX,da=b.canvasW,v=b.canvasH,r=b.canvasX2,j=b.canvasY2,z=b.strokeWidth,k=b.chartPosLeft,t=b.chartPosTop,i=b.attr;n===void 0&&(n=(a.pageX||l.pageX)-k,C=(a.pageY||l.pageY)-t);switch(f){case "dragstart":b.oy=
C;b.ox=n;b.allowMove=!1;if(!x)x=c.elements.resizeBox=d.rect(c.layers.tracker).attr(i);if(n>ba&&n<r&&C>H&&C<j)b.allowMove=!0;if(e&&e.ishot)b.allowMove=!1;x.attr({x:0,y:0,width:0,height:0}).show();break;case "dragend":u=x.getBBox();a={chart:c,selectionLeft:u.x,selectionTop:u.y,selectionHeight:u.height,selectionWidth:u.width};b.allowMove&&b.callback(a);x.hide();delete b.oy;delete b.ox;break;default:if(!b.allowMove)break;k=n-b.ox;t=C-b.oy;i=b.ox;B=b.oy;k=-(i-p(i-(i-o(i+k,ba)),r));t=-(B-p(B-(B-o(B+t,H)),
j));x.attr({x:(u?p(i,i+k):ba)+z*0.5,y:(M?p(B,B+t):H)+z*0.5,width:u?s(k):da,height:M?s(t):v})}},L=function(a){var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,c=a.data,d=a.type,f=a.layerX,e=a.layerY;f===void 0&&(f=a.pageX-c.chartPosLeft,e=a.pageY-c.chartPosTop);if(d==="mousedown")b.ishot=f>c.canvasX&&f<c.canvasX2&&e>c.canvasY&&e<c.canvasY2;d==="mouseup"&&setTimeout(function(){b.ishot=!1},1)},H=function(){var a="innerWidth",b="innerHeight",c=J.documentElement||J.body,d=
c;"innerWidth"in g?d=g:(a="clientWidth",b="clientHeight");return function(){return{width:d[a],height:d[b],scrollTop:c.scrollTop,scrollLeft:c.scrollLeft}}}(),G=function(a,b){for(var c={left:a.offsetLeft||0,top:a.offsetTop||0},a=a.offsetParent;a;)c.left+=a.offsetLeft||0,c.top+=a.offsetTop||0,a!==J.body&&a!==J.documentElement&&!b&&(c.left-=a.scrollLeft,c.top-=a.scrollTop),a=a.offsetParent;return c},S=function(a,b){return!a&&a!==!1&&a!==0?b:a},W=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=
1)if((a=arguments[b])||!(a!==!1&&a!==0))return a;return m},v=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))return a},F={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},f=function(a,b,c,d){jQuery(a).bind(ha&&F[b]||b,d,c)},i=function(a,b,c){var d=J.removeEventListener?"removeEventListener":"detachEvent";J[d]&&!a[d]&&(a[d]=function(){});jQuery(a).unbind(ha&&F[b]||b,c)},h=function(a){var b=a.sourceEvent||a.originalEvent;return ha&&b&&b.touches&&
b.touches[0]||a},c=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))if(!isNaN(a=Number(a)))return a},d=function(a,b){a=!a&&a!==!1&&a!==0?NaN:Number(a);return isNaN(a)?null:b?s(a):a},a=function(a){return typeof a==="string"?a.replace(oa,"<br />"):m},k=function(a,b,c){var d,f;if(b instanceof Array)for(d=0;d<b.length;d+=1)if(typeof b[d]!=="object")c&&b[d]===void 0||(a[d]=b[d]);else{if(a[d]===null||typeof a[d]!=="object")a[d]=b[d]instanceof Array?[]:{};k(a[d],
b[d],c)}else for(d in b)if(b[d]!==null&&typeof b[d]==="object")if(f=P.call(b[d]),f==="[object Object]"){if(a[d]===null||typeof a[d]!=="object")a[d]={};k(a[d],b[d],c)}else if(f==="[object Array]"){if(a[d]===null||!(a[d]instanceof Array))a[d]=[];k(a[d],b[d],c)}else a[d]=b[d];else a[d]=b[d];return a},t=function(a,b,c){if(typeof a!=="object"&&typeof b!=="object")return null;if(typeof b!=="object"||b===null)return a;typeof a!=="object"&&(a=b instanceof Array?[]:{});k(a,b,c);return a},u=function(a,b){var c;
if(b instanceof Array)for(c=b.length-1;c>=0;c-=1)typeof b[c]!=="object"?b[c]===!0&&a&&a.splice&&a.splice(c,1):P.call(b[c])===P.call(a[c])&&u(a[c],b[c]);else for(c in b)typeof b[c]!=="object"?b[c]===!0&&a&&a.splice&&a.splice(c,1):P.call(b[c])===P.call(a[c])&&u(a[c],b[c]);return a},M=function(){var a=/^@window_/g;return function(b,c){var d=b.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,m).replace(/\[/g,".@window_").replace(/\]/g,m).split("."),f=g,e,l;l=m;var x,n,k;n=d.length;for(k=0;k<n;k+=1){x=d[k];
e=f;if(x.match(a))l=g[x.replace(a,m)],f=f[l];else if(f===void 0||f===null)throw(l||x).replace(a,m)+" is not defined";else f=f[x];l=x}f&&(typeof f.call==="function"||f===g.alert)?f===g.alert?f(c):f.call(e,c):setTimeout(function(){throw x.replace(a,m)+"() is not a function";},0)}}(),ba=function(){var a="FusionChartslinkEval"+parseInt(+new Date,10);return function(b){try{g[a]=new Function(b),eval("window['"+a+"']();")}catch(c){setTimeout(function(){throw c;},0)}Y?delete g[a]:g[a]=null}}(),R=function(){if(Array.isArray)return Array.isArray;
var a=Object.prototype.toString,b=a.call([]);return function(c){return a.call(c)===b}}(),Ha=function(a,b){a=Number(a);a=isNaN(a)?100:a;b!==void 0&&(a=a*b/100);return a%101},ya=function(a,b,d){var a=a.split(","),f;d!==void 0&&(d=c(d.split(",")[0]));a[0]=Ha(a[0],d);for(f=1;f<b;f+=1)a[f]=a[0]*Ha(a[f],d)/100;return a.join(",")},sa=function(a,b,c){var d=0,f=0,e=0;c&&c.match(r)&&(c=c.split(","),d=c[0].slice(c[0].indexOf("(")+1),f=c[1],e=c[2],!b&&b!==0&&(b=parseInt(c[3].slice(0,c[3].indexOf(")"))*100,10)));
if(a)if(a.match(r))c=a.split(","),d=c[0].slice(c[0].indexOf("(")+1),f=c[1],e=c[2];else{a=a.replace(z,m).split(",")[0];switch(a.length){case 3:a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2];break;case 6:break;default:a=(a+"FFFFFF").slice(0,6)}d=parseInt(a.slice(0,2),16);f=parseInt(a.slice(2,4),16);e=parseInt(a.slice(4,6),16)}!b&&b!=0&&(b=100);typeof b==="string"&&(b=b.split(",")[0]);b=parseInt(b,10)/100;return"rgba("+d+","+f+","+e+","+b+")"},fa=function(a){return a.replace(z,m).replace(e,"#")},Ka=function(a,b){b=
b<0||b>100?100:b;b/=100;var a=a.replace(z,m),c=parseInt(a,16),d=Math.floor(c/65536),f=Math.floor((c-d*65536)/256);return("000000"+(d*b<<16|f*b<<8|(c-d*65536-f*256)*b).toString(16)).slice(-6)},ta=function(a,b){b=b<0||b>100?100:b;b/=100;var a=a.replace(z,m),c=parseInt(a,16),d=Math.floor(c/65536),f=Math.floor((c-d*65536)/256);return("000000"+(256-(256-d)*b<<16|256-(256-f)*b<<8|256-(256-(c-d*65536-f*256))*b).toString(16)).slice(-6)},ua={circle:"circle",triangle:"triangle",square:"square",diamond:"diamond",
poly:"poly_",spoke:"spoke_"},Fa={font:"font",fontFamily:"font-family","font-family":"font-family",fontWeight:"font-weight","font-weight":"font-weight",fontSize:"font-size","font-size":"font-size",lineHeight:"line-height","line-height":"line-height",textDecoration:"text-decoration","text-decoration":"text-decoration",color:"color",whiteSpace:"white-space","white-space":"white-space",padding:"padding",margin:"margin",background:"background",backgroundColor:"background-color","background-color":"background-color",
backgroundImage:"background-image","background-image":"background-image",backgroundPosition:"background-position","background-position":"background-position",backgroundPositionLeft:"background-position-left","background-position-left":"background-position-left",backgroundPositionTop:"background-position-top","background-position-top":"background-position-top",backgroundRepeat:"background-repeat","background-repeat":"background-repeat",border:"border",borderColor:"border-color","border-color":"border-color",
borderStyle:"border-style","border-style":"border-style",borderThickness:"border-thickness","border-thickness":"border-thickness",borderTop:"border-top","border-top":"border-top",borderTopColor:"border-top-color","border-top-color":"border-top-color",borderTopStyle:"border-top-style","border-top-style":"border-top-style",borderTopThickness:"border-top-thickness","border-top-thickness":"border-top-thickness",borderRight:"border-right","border-right":"border-right",borderRightColor:"border-right-color",
"border-right-color":"border-right-color",borderRightStyle:"border-right-style","border-right-style":"border-right-style",borderRightThickness:"border-right-thickness","border-right-thickness":"border-right-thickness",borderBottom:"border-bottom","border-bottom":"border-bottom",borderBottomColor:"border-bottom-color","border-bottom-color":"border-bottom-color",borderBottomStyle:"border-bottom-style","border-bottom-style":"border-bottom-style",borderBottomThickness:"border-bottom-thickness","border-bottom-thickness":"border-bottom-thickness",
borderLeft:"border-left","border-left":"border-left",borderLeftColor:"border-left-color","border-left-color":"border-left-color",borderLeftStyle:"border-left-style","border-left-Style":"border-left-style",borderLeftThickness:"border-left-thickness","border-left-thickness":"border-left-thickness"},La=function(){var a=document.createElement("span"),d,f={lineHeight:!0,"line-height":!0},e=function(){return c(parseInt(a.style.fontSize,10),10)*1.4+"px"};a.innerHTML="fy";d=window.getComputedStyle?function(){var b=
window.getComputedStyle(a,null);return b&&b.getPropertyValue("line-height")?b.getPropertyValue("line-height"):e.apply(this,arguments)}:a.currentStyle?function(){return a.currentStyle.lineHeight}:e;return function(c){var k,l="";for(k in c)!f[k]&&Fa[k]&&(l+=Fa[k]+" : "+c[k]+";");b&&!Y?a.style.setAttribute("cssText",l):a.setAttribute("style",l);k=d();parseFloat(k)||(k=e());return c.lineHeight=k}}(),eb=function(){var b={top:{align:"center",verticalAlign:"top",textAlign:"center"},right:{align:"right",
verticalAlign:"middle",textAlign:"left"},bottom:{align:"center",verticalAlign:"bottom",textAlign:"center"},left:{align:"left",verticalAlign:"middle",textAlign:"right"}},d=/([^\,^\s]+)\)$/g,f=function(a,b){var d;if(/^(bar|bar3d)$/.test(a))this.isBar=!0,this.yPos="bottom",this.yOppPos="top",this.xPos="left",this.xOppPos="right";d=parseInt(b.labelstep,10);this.labelStep=d>1?d:1;this.showLabel=c(b.showlabels,b.shownames,1);this.is3D=/3d$/.test(a)};f.prototype={isBar:!1,yPos:"left",yOppPos:"right",xPos:"bottom",
xOppPos:"top",addAxisGridLine:function(a,c,f,l,x,n,e,k){var t=f===""?!1:!0,u=l>0||n.match(d)[1]>0?!0:!1,i;if(t||u){u||(n="rgba(0,0,0,0)",l=0.1);i={isGrid:!0,width:l,dashStyle:x,color:n,value:c,zIndex:e===void 0?2:e};if(t)c=a.opposite?k?this.xOppPos:this.yOppPos:k?this.xPos:this.yPos,c=b[c],i.label={text:f,style:a.labels.style,textAlign:c.textAlign,align:c.align,verticalAlign:c.verticalAlign,rotation:0,x:0,y:0};a.plotLines.push(i)}return i},addAxisAltGrid:function(a,b){if(!this.is3D){var d=c(a._lastValue,
a.min),l=v(a._altGrid,!1);l&&a.plotBands.push({isGrid:!0,color:a.alternateGridColor,to:b,from:d,zIndex:1});a._lastValue=b;a._altGrid=!l}},addXaxisCat:function(a,c,d,l){var x=b[a.opposite?this.xOppPos:this.xPos],c={isGrid:!0,width:0.1,color:"rgba(0,0,0,0)",value:c,label:{text:l,style:a.labels.style,textAlign:x.textAlign,align:x.align,verticalAlign:x.verticalAlign,rotation:0,x:0,y:0}};if(d%this.labelStep!==0)c.stepped=!0,c.label.style=a.steppedLabels.style;a.plotLines.push(c)},addVline:function(b,d,
f,l){var x=l._FCconf,n=x.isBar,l=l.chart.plotBorderWidth,e=l%2,k=x.divlineStyle,t=a(d.label),u=Boolean(c(d.showlabelborder,x.showVLineLabelBorder,1)),i=Boolean(c(d.showlabelbackground,1)),h=v(d.labelhalign,n?"left":"center"),M=v(d.labelvalign,n?"middle":"bottom").toLowerCase(),o=c(d.labelposition,0),H=c(d.lineposition,0.5),ba=c(d.showvlines,x.showVLines,1),p=c(d.alpha,x.vLineAlpha,80),Ia=v(d.color,x.vLineColor,"333333").replace(/^#?/,"#"),E=i?v(d.labelbgcolor,x.vLineLabelBgColor,"333333").replace(/^#?/,
"#"):m,r=Ia,j=c(d.thickness,x.vLineThickness,1),z=j*0.5,D=Boolean(Number(v(d.dashed,0))),y=c(d.dashlen,5),ca=c(d.dashgap,2),U=x.smartLabel,q=parseInt(k.fontSize,10)+2,ga=0,Ga=c(d.rotatelabel,x.rotateVLineLabels)?270:0,H=H<0||H>1?0.5:H,o=o<0||o>1?0:o;U.setStyle(k);U=U.getOriSize(t);Ia=sa(Ia,ba?p:"0");if(n){switch(M){case "top":q-=U.height+z+2;break;case "middle":q-=U.height*0.5+1;break;default:q+=z}d.labelhalign||(ga-=U.width*o)}else{switch(M){case "top":q-=U.height+2+(l||1)*(1-o)+o;break;case "middle":q-=
U.height*0.5+l*(1-o*2);break;default:q+=(l-e)*o}switch(h){case "left":ga+=j;break;case "right":ga-=j+1}}b.plotLines.push({isVline:!0,color:Ia,width:j,value:f-1+H,zIndex:c(d.showontop,x.showVLinesOnTop)?5:3,dashStyle:D?Ma(y,ca,j):void 0,label:{text:t,align:n?"left":"center",offsetScale:o,rotation:Ga,y:q,x:ga,textAlign:h,backgroundColor:E,borderWidth:ba&&u?"1px":m,borderType:ba&&u?"solid":m,borderColor:ba&&u?r:m,backgroundOpacity:ba&&i?v(d.labelbgalpha,x.vLineLabelBgAlpha)/100:0,style:{color:ba?r:Ia,
fontSize:k.fontSize,fontFamily:k.fontFamily,lineHeight:k.lineHeight,backgroundColor:E}}})}};return f.prototype.constructor=f}();(function(){function a(b,c,d){var f;if(c<=0)return String(I(b));if(isNaN(c))return b=b.toString(),b.length>12&&b.indexOf(w)!=-1&&(c=12-b.split(w)[0].length,f=ia(10,c),b=String(I(b*f)/f)),b;f=ia(10,c);b=String(I(b*f)/f);if(d==1){b.indexOf(w)==-1&&(b+=".0");d=b.split(w);c-=d[1].length;for(d=1;d<=c;d++)b+=X}return b}function b(a,c,d,f){var e=Number(a);if(isNaN(e))return m;var k=
m,t=!1,u=m,i=m,h=u=0,u=0,h=a.length;a.indexOf(w)!=-1&&(k=a.substring(a.indexOf(w)+1,a.length),h=a.indexOf(w));e<0&&(t=!0,u=1);u=a.substring(u,h);a=u.length;e=f.length-1;h=f[e];if(a<h)i=u;else for(;a>=h;)i=(a-h?d:m)+u.substr(a-h,h)+i,a-=h,h=(e-=1)<=0?f[0]:f[e],a<h&&(i=u.substring(a,0)+i);k!=m&&(i=i+c+k);t==!0&&(i="-"+i);return i}var d={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:m,numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:m,numbersuffix:m,decimals:m,forcedecimals:X,
yaxisvaluedecimals:"2",decimalseparator:w,thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:m,inthousandseparator:m,sformatnumber:"1",sformatnumberscale:X,sdefaultnumberscale:m,snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:m,snumbersuffix:m,sdecimals:"2",sforcedecimals:X,syaxisvaluedecimals:"2",xFormatNumber:X,xFormatNumberScale:X,xDefaultNumberScale:m,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:m,xNumberSuffix:m},f={mscombidy2d:{formatnumberscale:"1"}},
e=function(a,b,n){var e,k,u,i,h,B,o,M,H,ba=b.name,p=t({},d),Ia,E;(u=f[ba])&&(p=t(p,u));this.csConf=p;this.chartAPI=b;S(a.numberscaleunit)&&(e=a.numberscaleunit.split(","));if(k=S(a.snumberscaleunit,a.numberscaleunit))k=k.split(",");if(u=S(a.xnumberscaleunit,a.numberscaleunit))u=u.split(",");if(i=S(a.ticknumberscaleunit,a.numberscaleunit))i=i.split(",");if(h=S(a.ynumberscaleunit,a.numberscaleunit))h=h.split(",");S(a.numberscalevalue)&&(B=a.numberscalevalue.split(","));if(E=S(a.snumberscalevalue,a.numberscalevalue))E=
E.split(",");if(o=S(a.xnumberscalevalue,a.numberscalevalue))o=o.split(",");if(M=S(a.ticknumberscalevalue,a.numberscalevalue))M=M.split(",");if(H=S(a.ynumberscalevalue,a.numberscalevalue))H=H.split(",");if(S(a.thousandseparatorposition)){Ia=a.thousandseparatorposition.split(",");for(var r=Ia.length,j,z=c(Ia[r]),z=z?z:d.thousandseparatorposition[0];r;)r-=1,(j=c(Math.abs(Ia[r])))?z=j:j=z,Ia[r]=j}b||(b={});r=c(a.scalerecursively,0);j=c(a.sscalerecursively,r);var z=c(a.xscalerecursively,r),D=c(a.maxscalerecursion,
-1),y=c(a.smaxscalerecursion,D),ca=c(a.xmaxscalerecursion,D),U=S(a.scaleseparator," "),q=S(a.sscaleseparator,U),ga=S(a.xscaleseparator,U);if(!D||D==0)D=-1;this.baseConf=e={cacheStore:[],formatnumber:v(a.formatnumber,b.formatnumber,p.formatnumber),formatnumberscale:v(a.formatnumberscale,b.formatnumberscale,p.formatnumberscale),defaultnumberscale:W(a.defaultnumberscale,b.defaultnumberscale,p.defaultnumberscale),numberscaleunit:v(e,b.numberscaleunit,p.numberscaleunit).concat(),numberscalevalue:v(B,b.numberscalevalue,
p.numberscalevalue).concat(),numberprefix:W(a.numberprefix,b.numberprefix,p.numberprefix),numbersuffix:W(a.numbersuffix,b.numbersuffix,p.numbersuffix),decimalprecision:parseInt(a.decimals==="auto"?p.decimalprecision:v(a.decimals,a.decimalprecision,b.decimals,p.decimals,b.decimalprecision,p.decimalprecision),10),forcedecimals:v(a.forcedecimals,b.forcedecimals,p.forcedecimals),decimalseparator:v(a.decimalseparator,b.decimalseparator,p.decimalseparator),thousandseparator:v(a.thousandseparator,b.thousandseparator,
p.thousandseparator),thousandseparatorposition:v(Ia,b.thousandseparatorposition,p.thousandseparatorposition),indecimalseparator:W(a.indecimalseparator,b.indecimalseparator,p.indecimalseparator),inthousandseparator:W(a.inthousandseparator,b.inthousandseparator,p.inthousandseparator),scalerecursively:r,maxscalerecursion:D,scaleseparator:U};this.Y=[];if(!n){n={cacheStore:[],formatnumber:e.formatnumber,formatnumberscale:e.formatnumberscale,defaultnumberscale:e.defaultnumberscale,numberscaleunit:e.numberscaleunit.concat(),
numberscalevalue:e.numberscalevalue.concat(),numberprefix:e.numberprefix,numbersuffix:e.numbersuffix,decimalprecision:e.decimalprecision,forcedecimals:e.forcedecimals,decimalseparator:e.decimalseparator,thousandseparator:e.thousandseparator,thousandseparatorposition:e.thousandseparatorposition,indecimalseparator:e.indecimalseparator,inthousandseparator:e.inthousandseparator,scalerecursively:r,maxscalerecursion:D,scaleseparator:U};if(!b.useScaleRecursively||(n.numberscalevalue&&n.numberscalevalue.length)!=
(n.numberscaleunit&&n.numberscaleunit.length))n.scalerecursively=r=0;B={cacheStore:[],formatnumber:n.formatnumber,formatnumberscale:n.formatnumberscale,defaultnumberscale:n.defaultnumberscale,numberscaleunit:n.numberscaleunit.concat(),numberscalevalue:n.numberscalevalue.concat(),numberprefix:n.numberprefix,numbersuffix:n.numbersuffix,decimalprecision:parseInt(v(a.yaxisvaluedecimals,n.decimalprecision,2)),forcedecimals:v(a.forceyaxisvaluedecimals,n.forcedecimals),decimalseparator:n.decimalseparator,
thousandseparator:n.thousandseparator,thousandseparatorposition:n.thousandseparatorposition.concat(),indecimalseparator:n.indecimalseparator,inthousandseparator:n.inthousandseparator,scalerecursively:r,maxscalerecursion:D,scaleseparator:U};E={cacheStore:[],formatnumber:v(a.sformatnumber,b.sformatnumber,d.sformatnumber),formatnumberscale:v(a.sformatnumberscale,b.sformatnumberscale,d.sformatnumberscale),defaultnumberscale:W(a.sdefaultnumberscale,b.sdefaultnumberscale,n.defaultnumberscale),numberscaleunit:v(k,
b.snumberscaleunit,d.snumberscaleunit).concat(),numberscalevalue:v(E,b.snumberscalevalue,d.snumberscalevalue).concat(),numberprefix:W(a.snumberprefix,b.snumberprefix,d.snumberprefix),numbersuffix:W(a.snumbersuffix,b.snumbersuffix,d.snumbersuffix),decimalprecision:parseInt(v(a.syaxisvaluedecimals,a.sdecimals,a.decimals,b.sdecimals,d.sdecimals),10),forcedecimals:v(a.forcesyaxisvaluedecimals,a.sforcedecimals,a.forcedecimals,b.sforcedecimals,d.sforcedecimals),decimalseparator:v(a.decimalseparator,b.decimalseparator,
d.decimalseparator),thousandseparator:v(a.thousandseparator,b.thousandseparator,d.thousandseparator),thousandseparatorposition:n.thousandseparatorposition.concat(),indecimalseparator:v(a.indecimalseparator,b.indecimalseparator,d.indecimalseparator),inthousandseparator:v(a.inthousandseparator,b.inthousandseparator,d.inthousandseparator),scalerecursively:j,maxscalerecursion:y,scaleseparator:q};k=t({},E);k.decimalprecision=parseInt(v(a.sdecimals,a.decimals,a.syaxisvaluedecimals,b.sdecimals,d.sdecimals),
10);k.forcedecimals=v(a.sforcedecimals,a.forcedecimals,a.forcesyaxisvaluedecimals,b.sforcedecimals,d.sforcedecimals);k.cacheStore=[];if(!b.useScaleRecursively||(E.numberscalevalue&&E.numberscalevalue.length)!=(E.numberscaleunit&&E.numberscaleunit.length))E.scalerecursively=j=0;if(/^(bubble|scatter|selectscatter)$/.test(ba))B.formatnumber=v(a.yformatnumber,B.formatnumber),B.formatnumberscale=v(a.yformatnumberscale,B.formatnumberscale),B.defaultnumberscale=W(a.ydefaultnumberscale,B.defaultnumberscale),
B.numberscaleunit=v(h,B.numberscaleunit),B.numberscalevalue=v(H,B.numberscalevalue),B.numberprefix=v(a.ynumberprefix,B.numberprefix),B.numbersuffix=v(a.ynumbersuffix,B.numbersuffix),n.formatnumber=v(a.yformatnumber,n.formatnumber),n.formatnumberscale=v(a.yformatnumberscale,n.formatnumberscale),n.defaultnumberscale=W(a.ydefaultnumberscale,n.defaultnumberscale),n.numberscaleunit=v(a.ynumberscaleunit,n.numberscaleunit.concat()),n.numberscalevalue=v(a.ynumberscalevalue,n.numberscalevalue.concat()),n.numberprefix=
v(a.ynumberprefix,n.numberprefix),n.numbersuffix=v(a.ynumbersuffix,n.numbersuffix);if(/^(mscombidy2d|mscombidy3d)$/.test(ba))E.formatnumberscale=c(a.sformatnumberscale,"1");if(/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(ba))n.decimalprecision=v(a.decimals,"2");r&&(n.numberscalevalue.push(1),n.numberscaleunit.unshift(n.defaultnumberscale),B.numberscalevalue.push(1),B.numberscaleunit.unshift(B.defaultnumberscale));j&&(E.numberscalevalue.push(1),E.numberscaleunit.unshift(E.defaultnumberscale),
k.numberscalevalue.push(1),k.numberscaleunit.unshift(k.defaultnumberscale));this.Y[0]={yAxisLabelConf:B,dataLabelConf:n};this.Y[1]={yAxisLabelConf:E,dataLabelConf:k};this.paramLabels=n;this.param1=B;this.param2=E;this.paramLabels2=k}this.paramX={cacheStore:[],formatnumber:v(a.xformatnumber,e.formatnumber),formatnumberscale:v(a.xformatnumberscale,e.formatnumberscale),defaultnumberscale:W(a.xdefaultnumberscale,e.defaultnumberscale),numberscaleunit:v(u,e.numberscaleunit.concat()),numberscalevalue:v(o,
e.numberscalevalue.concat()),numberprefix:v(a.xnumberprefix,e.numberprefix),numbersuffix:v(a.xnumbersuffix,e.numbersuffix),decimalprecision:parseInt(v(a.xaxisvaluedecimals,a.xaxisvaluesdecimals,e.decimalprecision,2),10),forcedecimals:v(a.forcexaxisvaluedecimals,0),decimalseparator:e.decimalseparator,thousandseparator:e.thousandseparator,thousandseparatorposition:e.thousandseparatorposition.concat(),indecimalseparator:e.indecimalseparator,inthousandseparator:e.inthousandseparator,scalerecursively:z,
maxscalerecursion:ca,scaleseparator:ga};if(!b.useScaleRecursively||(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)!=(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length))this.paramX.scalerecursively=z=0;z&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:v(a.tickformatnumber,e.formatnumber),formatnumberscale:v(a.tickformatnumberscale,e.formatnumberscale),defaultnumberscale:W(a.tickdefaultnumberscale,
e.defaultnumberscale),numberscaleunit:v(i,e.numberscaleunit.concat()),numberscalevalue:v(M,e.numberscalevalue.concat()),numberprefix:v(a.ticknumberprefix,e.numberprefix),numbersuffix:v(a.ticknumbersuffix,e.numbersuffix),decimalprecision:parseInt(v(a.tickvaluedecimals,e.decimalprecision,"2")),forcedecimals:v(a.forcetickvaluedecimals,e.forcedecimals,0),decimalseparator:e.decimalseparator,thousandseparator:e.thousandseparator,thousandseparatorposition:e.thousandseparatorposition.concat(),indecimalseparator:e.indecimalseparator,
inthousandseparator:e.inthousandseparator,scalerecursively:r,maxscalerecursion:D,scaleseparator:U};r&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));this.timeConf={inputDateFormat:v(a.inputdateformat,a.dateformat),outputDateFormat:v(a.outputdateformat,a.inputdateformat,a.dateformat),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August",
"September","October","November","December"],daySuffix:["st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th","th","th","th","th","st"]}};e.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y;this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore;this.percentStrCacheStore&&delete this.percentStrCacheStore;this.baseConf&&delete this.baseConf;this.timeConf&&delete this.timeConf;
this.paramX&&delete this.paramX;this.paramScale&&delete this.paramScale},parseMLAxisConf:function(a,b){var f=this.baseConf,e=this.csConf,k=this.chartAPI,t=c(a.scalerecursively,f.scalerecursively),u=c(a.maxscalerecursion,f.maxscalerecursion),i=S(a.scaleseparator,f.scaleseparator),h,o,M,H,p,ba,b=c(b,this.Y.length);S(a.numberscaleunit)&&(h=a.numberscaleunit.split(","));S(a.numberscalevalue)&&(o=a.numberscalevalue.split(","));u||(u=-1);if(S(a.thousandseparatorposition)){M=a.thousandseparatorposition.split(",");
H=M.length;for(ba=d.thousandseparatorposition[0];H--;)(p=c(s(M[H])))?ba=p:p=ba,M[H]=p}f={cacheStore:[],formatnumber:v(a.formatnumber,f.formatnumber),formatnumberscale:v(a.formatnumberscale,f.formatnumberscale),defaultnumberscale:W(a.defaultnumberscale,f.defaultnumberscale),numberscaleunit:v(h,f.numberscaleunit).concat(),numberscalevalue:v(o,f.numberscalevalue).concat(),numberprefix:W(a.numberprefix,f.numberprefix),numbersuffix:W(a.numbersuffix,f.numbersuffix),forcedecimals:v(a.forcedecimals,f.forcedecimals),
decimalprecision:parseInt(a.decimals==="auto"?e.decimalprecision:v(a.decimals,f.decimalprecision),10),decimalseparator:v(a.decimalseparator,f.decimalseparator),thousandseparator:v(a.thousandseparator,f.thousandseparator),thousandseparatorposition:v(M,f.thousandseparatorposition),indecimalseparator:W(a.indecimalseparator,f.indecimalseparator),inthousandseparator:W(a.inthousandseparator,f.inthousandseparator),scalerecursively:t,maxscalerecursion:u,scaleseparator:i};if(!k.useScaleRecursively||(f.numberscalevalue&&
f.numberscalevalue.length)!=(f.numberscaleunit&&f.numberscaleunit.length))f.scalerecursively=t=0;k={cacheStore:[],formatnumber:f.formatnumber,formatnumberscale:f.formatnumberscale,defaultnumberscale:f.defaultnumberscale,numberscaleunit:f.numberscaleunit.concat(),numberscalevalue:f.numberscalevalue.concat(),numberprefix:f.numberprefix,numbersuffix:f.numbersuffix,decimalprecision:parseInt(v(a.yaxisvaluedecimals,f.decimalprecision,2)),forcedecimals:v(a.forceyaxisvaluedecimals,f.forcedecimals),decimalseparator:f.decimalseparator,
thousandseparator:f.thousandseparator,thousandseparatorposition:f.thousandseparatorposition.concat(),indecimalseparator:f.indecimalseparator,inthousandseparator:f.inthousandseparator,scalerecursively:t,maxscalerecursion:u,scaleseparator:i};t&&(f.numberscalevalue.push(1),f.numberscaleunit.unshift(f.defaultnumberscale),k.numberscalevalue.push(1),k.numberscaleunit.unshift(k.defaultnumberscale));this.Y[b]={dataLabelConf:f,yAxisLabelConf:k}},percentValue:function(c){var d=this.percentStrCacheStore[c];
d===void 0&&(d=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,d=this.percentStrCacheStore[c]=b(a(c,d,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%");return d},getCleanValue:function(a,b){var c=this.cleaneValueCacheStore[a],d;if(c===void 0){c=a;d=this.baseConf.indecimalseparator;var f=this.baseConf.inthousandseparator;c+=m;S(f)&&(f=f.replace(/(\W)/ig,"\\$1"),c=c.toString().replace(RegExp(f,
"g"),m));S(d)&&(c=c.replace(d,w));d=!isNaN(c=parseFloat(c))&&isFinite(c)?c:NaN;this.cleaneValueCacheStore[a]=c=isNaN(d)?null:b?s(d):d}return c},dataLabels:function(a,b){var c=this.Y[b]||(b?this.Y[1]:this.Y[0]),d,c=c&&c.dataLabelConf||this.baseConf;d=c.cacheStore[a];d===void 0&&(d=c.cacheStore[a]=k(a,c));return d},yAxis:function(a,b){var c=this.Y[b]||(b?this.Y[1]:this.Y[0]),d,c=c&&c.yAxisLabelConf||this.baseConf;d=c.cacheStore[a];d===void 0&&(d=c.cacheStore[a]=k(a,c));return d},xAxis:function(a){var b=
this.paramX.cacheStore[a];b===void 0&&(b=this.paramX.cacheStore[a]=k(a,this.paramX));return b},sYAxis:function(a){var b=this.Y[1],c,b=b&&b.yAxisLabelConf||this.baseConf;c=b.cacheStore[a];c===void 0&&(c=b.cacheStore[a]=k(a,b));return c},scale:function(a){var b=this.paramScale.cacheStore[a];b===void 0&&(b=this.paramScale.cacheStore[a]=k(a,this.paramScale));return b},getCleanTime:function(a){var b;this.timeConf.inputDateFormat&&Date.parseExact&&(b=Date.parseExact(a,this.timeConf.inputDateFormat));return b&&
b.getTime()},getDateValue:function(a){a=a&&/^dd/.test(this.timeConf.inputDateFormat)&&a.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||a;a=new Date(a);return{ms:a.getTime(),date:a}},getFormatedDate:function(a,b){var c=typeof a==="object"&&a||this.getDateValue(a).date,d=this.timeConf,f=v(b,d.outputDateFormat),e=c.getFullYear(),k=c.getMonth(),t=c.getDate(),u=c.getDay(),i=c.getMinutes(),h=c.getSeconds(),c=c.getHours();f.match(/dnl/)&&(f=f.replace(/dnl/ig,d.days[u]));f.match(/dns/)&&(f=f.replace(/dns/ig,
d.days[u].substr(0,3)));f.match(/dd/)&&(f=f.replace(/dd/ig,t));f.match(/mnl/)&&(f=f.replace(/mnl/ig,d.months[k]));f.match(/mns/)&&(f=f.replace(/mns/ig,d.months[k].substr(0,3)));f.match(/mm/)&&(f=f.replace(/mm/ig,k+1));f.match(/yyyy/)&&(f=f.replace(/yyyy/ig,e));f.match(/yy/)&&(f=f.replace(/yy/ig,(e%1E3%100+"").replace(/^(\d)$/,"0$1")));f.match(/hh12/)&&(f=f.replace(/hh12/ig,c%12||12));f.match(/hh/)&&(f=f.replace(/hh/ig,c));f.match(/mn/)&&(f=f.replace(/mn/ig,i));f.match(/ss/)&&(f=f.replace(/ss/ig,h));
f.match(/ampm/)&&(f=f.replace(/ampm/ig,c<12?"AM":"PM"));f.match(/ds/)&&(f=f.replace(/ds/ig,d.daySuffix[t]));return f}};e.prototype.constructor=e;var k=function(d,f){if(d!==null){var d=Number(d),e=d+m,k;k=f.formatnumberscale==1?f.defaultnumberscale:m;var t;t=(t=e.split(".")[1])?t.length:f.forcedecimals?"2":m;if(f.formatnumberscale==1){var u,e=d;k=f.numberscalevalue;u=f.numberscaleunit;var i={},h=f.defaultnumberscale,B=0,M,o=[],H=[];if(f.scalerecursively){for(B=0;B<k.length;B++)if(M=c(k[B])||1E3,Math.abs(Number(e))>=
M&&B<k.length-1)h=e%M,e=(e-h)/M,h!=0&&(o.push(h),H.push(u[B]));else{o.push(e);H.push(u[B]);break}o.reverse();H.reverse();i.value=o;i.scale=H}else{if(k.length===u.length)for(B=0;B<k.length;B++)if((M=c(k[B])||1E3)&&Math.abs(Number(e))>=M)h=u[B]||m,e=Number(e)/M;else break;i.value=e;i.scale=h}u=i;d=e=u.value;k=u.scale}if(f.scalerecursively&&f.formatnumberscale!=0){k=u.value;u=u.scale;i=f.maxscalerecursion==-1?k.length:Math.min(k.length,f.maxscalerecursion);if(f.formatnumber==1){e="";for(o=0;o<i;o++)B=
o==0?k[o]:Math.abs(k[o]),M=String(B),o==i-1&&(M=a(B,v(f.decimalprecision,t),f.forcedecimals)),e=e+b(M,f.decimalseparator,f.thousandseparator,f.thousandseparatorposition)+u[o]+(o<i-1?f.scaleseparator:"")}else{e="";for(o=0;o<i;o++)e=e+String(o==0?k[o]:Math.abs(k[o]))+u[o]+(o<i-1?f.scaleseparator:"")}e=(f.numberprefix||m)+e+(f.numbersuffix||m);delete k;delete u}else f.formatnumber==1&&(e=a(d,v(f.decimalprecision,t),f.forcedecimals),e=b(e,f.decimalseparator,f.thousandseparator,f.thousandseparatorposition)),
e=(f.numberprefix||m)+e+k+(f.numbersuffix||m);return e}};return e})();var Xa=function(){var a=function(a,c,f,d,e){a=Math.abs(c-a);c=a/(f+1);b(a/(f+1))>b(d)&&(e&&Number(c)/Number(d)<(d>1?2:0.5)&&(d/=10),c=(Math.floor(c/d)+1)*d,a=c*(f+1));return a},b=function(a){var a=Math.abs(a),a=String(a),b=0,c=a.indexOf(w);c!=-1&&(b=a.length-c-1);return b};return function(c,d,f,e,l,k,t,u){var i,c=isNaN(c)==!0||c==void 0?0.1:c,d=isNaN(d)==!0||d==void 0?0:d;c==d&&c==0&&(c=0.1);var k=typeof k===void 0?!0:k,h=Math.max(Math.floor(Math.log(Math.abs(d))/
Math.LN10),Math.floor(Math.log(Math.abs(c))/Math.LN10));i=Math.pow(10,h);Math.abs(c)/i<2&&Math.abs(d)/i<2&&(h--,i=Math.pow(10,h));h=Math.pow(10,Math.floor(Math.log(c-d)/Math.LN10));c-d>0&&i/h>=10&&(i=h);var h=(Math.floor(c/i)+1)*i,o;d<0?o=-1*(Math.floor(Math.abs(d/i))+1)*i:k?o=0:(o=Math.floor(Math.abs(d/i)-1)*i,o=o<0?0:o);(typeof l===void 0||l)&&c<=0&&(h=0);l=f==null||f==void 0||f==m?!1:!0;k=e==null||e==void 0||e==m||isNaN(Number(e))?!1:!0;c=l==!1||l==!0&&Number(f)<c&&c-Number(f)>K?h:Number(f);d=
k==!1||k==!0&&Number(e)>d&&Number(e)-d>K?o:Number(e);e=Math.abs(c-d);if(k==!1&&l==!1&&u==!0)if(c>0&&d<0)for(var u=!1,f=i>10?i/10:i,l=a(d,c,t,f,!1)-(t+1)*f,M,B,H,p;u==!1;){if(l+=(t+1)*f,!(b(l/(t+1))>b(f)))if(M=l-e,k=l/(t+1),o=Math.min(Math.abs(d),c),h=o==Math.abs(d)?-1:1,t==0)u=!0;else for(p=1;p<=Math.floor((t+1)/2);p++)B=k*p,!(B-o>M)&&B>o&&(H=l-B,H/k==Math.floor(H/k)&&B/k==Math.floor(B/k)&&(e=l,c=h==-1?H:B,d=h==-1?-B:-H,u=!0))}else u=a(d,c,t,i,!0),M=u-e,e=u,c>0?c+=M:d-=M;else if(u==!0&&t>0){u=0;for(f=
1;;){M=t+u*f;M=M==0?1:M;if(!(b(e/(M+1))>b(i)))break;u=f==-1||u>t?++u:u;if(u>25){M=0;break}f=u<=t?f*-1:1}t=M}return{Max:c,Min:d,Range:e,interval:i,divGap:(c-d)/(t+1)}}}(),Ya=function(){var a=function(a,b){this.title.y=a.offsetHeight/2;if(b!==void 0)this.title.text=b};a.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:"FusionCharts",enabled:!0},legend:{enabled:!1},title:{text:"",style:{fontFamily:"Verdana",
fontSize:"10px",color:"#666666"}},plotOptions:{series:{}},series:[{}],exporting:{enabled:!1},nativeMessage:!0};return a.prototype.constructor=a}(),ka={"true":{"true":{"true":"center","false":"center"},"false":{"true":"center","false":"center"}},"false":{"true":{"true":"right","false":"left"},"false":{"true":"left","false":"right"}}},Wa=function(){return function(b,d,f,k,u,i,l){var x,n=f.trendStyle,h,Q,o,M,H,B,p,ba,E,da,r,j;parseInt(n.fontSize,10);if(!(i?!f.showVLines:!f.showTrendlines)){x=0;for(Q=
b.length;x<Q;x+=1)if(b[x].line){h=0;for(o=b[x].line.length;h<o;h+=1)if(M=b[x].line[h],da=f.numberFormatter.getCleanValue(v(M.startvalue,M.value,0)),r=f.numberFormatter.getCleanValue(v(M.endvalue,v(M.startvalue,M.value,0))),i?ba=d:k&&M.parentyaxis&&/^s$/i.test(M.parentyaxis)?(ba=d[1],j=1):ba=d[0],B=ba.max,p=ba.min,H=!1,B>=da&&B>=r&&p<=da&&p<=r){k&&M.parentyaxis&&/^s$/i.test(M.parentyaxis)?H=v(M.valueonleft,f.trendlineValuesOnOpp)!=="1":k||(H=v(M.valueonright,f.trendlineValuesOnOpp)==="1");B=Boolean(c(M.istrendzone,
i?1:0));if(p=(i?f.showVLineLabels:f.showTrendlineLabels)?a(v(M.displayvalue,f.numberFormatter[i?"xAxis":"dataLabels"](H?r:da,j))):m){if(E=da<r,H={text:p,textAlign:u?"center":H?"left":"right",align:u?ka[B][!l][E]:H?"right":"left",verticalAlign:u?"bottom":"middle",rotation:0,x:0,y:0,style:n},p=v(M.color,f.trendlineColor),M.alwaysVisible=B,p)H.style=t({},n),H.style.color=p.replace(e,"#")}else H=void 0;p=v(M.tooltext);E=c(M.thickness,f.trendlineThickness,1);B?ba.plotBands.push({isTrend:!0,color:sa(v(M.color,
f.trendlineColor),v(M.alpha,f.trendlineAlpha,40)),from:da,to:r,label:H,zIndex:!f.is3d&&v(M.showontop,f.showTrendlinesOnTop)==="1"?5:3,tooltext:p,alwaysVisible:M.alwaysVisible}):ba.plotLines.push({isTrend:!0,color:sa(v(M.color,f.trendlineColor,f.trendlineColor),v(M.alpha,f.trendlineAlpha,99)),value:da,to:r,width:E,dashStyle:v(M.dashed,f.trendlinesAreDashed)=="1"?Ma(c(M.dashlen,f.trendlinesDashLen),c(M.dashgap,f.trendlinesDashGap),E):void 0,label:H,zIndex:!f.is3d&&v(M.showontop,f.showTrendlinesOnTop)===
"1"?5:3,tooltext:p})}}}}}(),Ma=function(a,b,c,f){return f||f===void 0?[a,b]:m},cb=function(){},Oa=function(a,b,c){var f,d=Oa[a];if(!d)d=function(){},d.prototype=c instanceof cb?c:new cb,d.prototype.constructor=d,d=Oa[a]=new d;if(c)d.base=c;d.name=a;for(f in b)switch(typeof b[f]){case "object":if(b[f]instanceof cb){d[f]=b[f][f];break}default:d[f]=b[f];break;case "undefined":delete d[f]}return this instanceof Oa?(a=function(){},a.prototype=d,a.prototype.constructor=a,new a):d};j.extend(j.hcLib,{BLANKSTRINGPLACEHOLDER:"#BLANK#",
BLANKSTRING:m,COLOR_BLACK:"000000",COLOR_GLASS:"rgba(255, 255, 255, 0.3)",COLOR_WHITE:"FFFFFF",COLOR_TRANSPARENT:"rgba(0,0,0,0)",HASHSTRING:"#",BREAKSTRING:"<br />",STRINGSTRING:"string",OBJECTSTRING:"object",COMMASTRING:",",ZEROSTRING:X,SAMPLESTRING:"Ay0",TESTSTR:"Ag",ONESTRING:"1",DECIMALSTRING:w,STRINGUNDEFINED:"undefined",POSITION_TOP:"top",POSITION_RIGHT:"right",POSITION_BOTTOM:"bottom",POSITION_LEFT:"left",POSITION_CENTER:"center",POSITION_MIDDLE:"middle",POSITION_START:"start",POSITION_END:"end",
FC_CONFIG_STRING:"_FCconf",SHAPE_RECT:"rect",HUNDREDSTRING:"100",PXSTRING:"px",COMMASPACE:", ",TEXTANCHOR:"text-anchor",regex:{stripWhitespace:A,dropHash:e,startsRGBA:r,cleanColorCode:z,breakPlaceholder:oa,hexcode:/^#?[0-9a-f]{6}/i},fireEvent:function(a,b,c,f){var d=jQuery.Event(b),e="detached"+b;extend(d,c);a[b]&&(a[e]=a[b],a[b]=null);jQuery(a).trigger(d);a[e]&&(a[b]=a[e],a[e]=null);f&&!d.isDefaultPrevented()&&f(d)},addEvent:f,removeEvent:i,getTouchEvent:h,extend2:t,deltend:function(a,b){if(typeof a!==
"object"||typeof b!=="object")return null;u(a,b);return a},imprint:function(a,b,c){var f;if(typeof a!=="object"||a===null)return b;if(typeof b!=="object"||b===null)return a;for(f in b)if(a[f]===void 0||!c&&a[f]===null)a[f]=b[f];return a},pluck:v,pluckNumber:c,getFirstDefinedValue:function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0&&a!=m))return a},createElement:function(a,b,c){var a=J.createElement(a),f;for(f in b)a.setAttribute(f,b[f]);c&&c.appendChild&&
c.appendChild(a);return a},hashify:function(a){return a&&a.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none"},pluckFontSize:function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!(a!==!1&&a!==0))if(!isNaN(a=Number(a)))return a<1?1:a;return 1},getValidValue:S,getPosition:G,getViewPortDimension:H,bindSelectionEvent:function(a,b,d){var d=d||{},e=a.options.chart,k=a.container,u=e.zoomType,l=t({},d.attr||{}),d=l["stroke-width"]=c(l.strokeWidth,l["stroke-width"],1),x=G(k),d={chart:a,zoomX:/x/.test(u),
zoomY:/y/.test(u),canvasY:a.canvasTop,canvasX:a.canvasLeft,canvasW:a.canvasWidth,canvasH:a.canvasHeight,canvasX2:a.canvasLeft+a.canvasWidth,canvasY2:a.canvasTop+a.canvasHeight,strokeWidth:d,chartPosLeft:x.left,chartPosTop:x.top,attr:l,callback:b};l.stroke=W(l.stroke,"rgba(51,153,255,0.8)");l.fill=W(l.fill,"rgba(185,213,241,0.3)");l.ishot=!0;k&&(i(k,"dragstart drag dragend",V),f(k,"dragstart drag dragend",V,d));e.link&&(i(a.container,"mouseup mousedown",L),f(a.container,"mouseup mousedown",L,d))},
createContextMenu:function(a){var b=a.chart,c=b.smartLabel,f=a.labels,d=a.hover||{fill:"rgba(64, 64, 64, 1)"},e=a.attrs||{fill:"rgba(255, 255, 255, 1)"},k=f&&f.style||{fontSize:"12px",color:"000000"},t=f&&f.attrs||{},n=f&&f.hover||{color:"FFFFFF"},u=a.items,i=a.position,h=a.verticalPadding||5,M=a.horizontalPadding||10,o=j.hcLib.Raphael,B={},H,p,ba;if(b)H=G(b.container);else return!1;var v=function(){ba=this;var a=B.items,b=a.length,f=0,d=0,U=0,q=0,n,u=B.group;if(!B.menuItems)B.menuItems=[];for(c.setStyle(k);b--;)n=
a[b],n=c.getOriSize(n.text),U||(U=n.height+2*h),f+=U,d=Math.max(d,n.width+2*M);B.height=f;B.width=d;B.itemH=U;ba.setSize(d+5,f+5);if(!u)u=B.group=ba.group("contextmenu-container");B.menuRect?B.menuRect.attr({width:d,height:f}):B.menuRect=ba.rect(0,0,d,f,0,u).shadow(!0).attr({"stroke-width":1,fill:"rgba(255, 255, 255, 1)"});f=a.length;for(b=0;b<f;b+=1)n=a[b],B.menuItems[b]?B.menuItems[b].label.attr({text:n.text}):(B.menuItems[b]={},B.menuItems[b].box=ba.rect(0,q,d,U,0,u).attr({stroke:"none"}).attr(e).click(R).hover(z,
g),B.menuItems[b].label=ba.text(M/2,q+U/2,n.text,u).attr({"text-anchor":"start"}).attr(t).css(k).click(R).hover(z,g),B.menuItems[b].box._itemIdx=b,B.menuItems[b].label._itemIdx=b,q+=U);for(;B.menuItems[b];)B.menuItems[b].box.remove(),B.menuItems[b].label.remove(),B.menuItems.splice(b,1)},E=function(a){var c=a.x,a=a.y,f={x:c+H.left,y:a+H.top},d=B.width,e=B.height,q=b.chartHeight;c+d>b.chartWidth&&c-d>0&&(f.x-=d);a+e>q&&a-e>0&&(f.y-=e);return f},r=function(){B.hide()},z=function(){var a=B.menuItems[this._itemIdx];
p&&clearTimeout(p);a.box.attr(d);a.label.css(n)},g=function(){var a=B.menuItems[this._itemIdx];a.box.attr(e);a.label.css(k);p=setTimeout(B.hide,800)},R=function(a){var b=B.items[this._itemIdx];b.onclick&&b.onclick.call(b,a);B.hide()};B.showItem=function(a){var b=this.menuItems[a],c=this.height,f=this.itemH;if(b&&b._isHidden){c=this.height=c+f;this.menuRect.attr({height:c});b.box.show();b.label.show();b._isHidden=!1;b=E(i);this.left=b.x;this.top=b.y;for(a+=1;b=this.menuItems[a];)b.box.attr({y:b.box.attrs.y+
f}),b.label.attr({y:b.label.attrs.y+f}),a+=1}};B.hideItem=function(a){var b=this.menuItems[a],c=this.height,f=this.itemH;if(b&&!b._isHidden){b.box.hide();b.label.hide();c=this.height=c-f;this.menuRect.attr({height:c});b._isHidden=!0;b=E(i);this.left=b.x;this.top=b.y;for(a+=1;b=this.menuItems[a];)b.box.attr({y:b.box.attrs.y-f}),b.label.attr({y:b.label.attrs.y-f}),a+=1}};B.redraw=function(){var a=this.paper;this.items=u;a?v.call(this.paper):i&&i.x!==void 0&&i.y!==void 0?(this.paper=o(0,0,100,100),v.call(this.paper),
a=E(i),this.left=a.x,this.top=a.y,this.paper.canvas.style.left=this.left+"px",this.paper.canvas.style.top=this.top+"px"):(this.paper=o(0,0,100,100),v.call(this.paper))};B.show=function(a){this.visible=!0;a&&a.x!==void 0&&a.y!==void 0?(a=E(a),this.paper.canvas.style.left=a.x+"px",this.paper.canvas.style.top=a.y+"px"):(this.paper.canvas.style.left=this.left+"px",this.paper.canvas.style.top=this.top+"px");B.group.show();setTimeout(function(){o.click(r)},50)};B.hide=function(){this.visible=!1;B.group.hide();
B.paper.canvas.style.left=-B.width+"px";B.paper.canvas.style.top=-B.height+"px";o.unclick(r)};B.update=function(a){if(a&&a.length)this.items=a,this.redraw()};B.updatePosition=function(a){var c={left:H.left,top:H.top};H=G(b.container);a?(i=a,a=E(a),this.left=a.x,this.top=a.y):(this.left-=c.left-H.left,this.top-=c.top-H.top)};B.add=function(a){var b=this.paper,c=this.menuItems,f=c.length;c[f]={};c[f].box=b.rect(0,this.height,this.width,this.itemH,0).attr(e).hover(z,g);B.menuItems[f].label=b.text(this.width/
2,this.height+this.itemH/2,a.text).attr(t).css(k).hover(z,g);B.menuItems[f].box._itemIdx=f;B.menuItems[f].label._itemIdx=f;this.height+=this.itemH;this.menuRect.attr({height:this.height})};B.removeItems=function(){for(var a=this.menuItems,b=a&&a.length,c;b--;)c=a[b],c.box&&c.box.remove&&c.box.remove(),c.label&&c.label.remove&&c.label.remove();delete this.menuItems;delete this.items};B.setPosition=function(a){a.x!==void 0&&a.y!==void 0&&this.paper.setViewBox(a.x,a.y,this.width,this.height)};B.destroy=
function(){this.removeItems();this.menuRect.remove()};u&&u.length&&(B.redraw(),B.hide());return B},getDefinedColor:function(a,b){return!a&&a!=0&&a!=!1?b:a},getFirstValue:W,getFirstColor:function(a){a=a.split(",")[0];a=a.replace(A,m);a==m&&(a="000000");return a.replace(e,"#")},getColorCodeString:function(a,b){var c="",f,d,e=0,k=b.split(",");for(d=k.length;e<d;e+=1)f=k[e].split("-"),c+=f.length===2?f[0].indexOf("dark")!=="-1"?ta(a,100-parseInt(f[1],10))+",":Ka(a,100-parseInt(f[1],10))+",":k[e]+",";
return c.substring(0,c.length-1)},pluckColor:function(a){if(S(a))return a=a.split(",")[0],a=a.replace(A,m),a==m&&(a="000000"),a.replace(e,"#")},trimString:function(a){for(var a=a.replace(/^\s\s*/,""),b=/\s/,c=a.length;b.test(a.charAt(c-=1)););return a.slice(0,c+1)},getFirstAlpha:function(a){a=parseInt(a,10);if(isNaN(a)||a>100||a<0)a=100;return a},parsePointValue:d,parseUnsafeString:a,toPrecision:function(a,b){var c=ia(10,b);return I(a*c)/c},hasTouch:ha,getSentenceCase:function(a){a=a||m;return a.charAt(0).toUpperCase()+
a.substr(1)},getCrispValues:function(a,b,c){var f=c%2/2,c=I(a+f)-f,a=I(a+b+f)-f-c;return{position:c,distance:a}},isArray:R,stubFN:function(){},falseFN:function(){return!1},stableSort:function(a,b){var c=a.length,f;for(f=0;f<c;f++)a[f].ss_i=f;a.sort(function(a,c){var f=b(a,c);return f===0?a.ss_i-c.ss_i:f});for(f=0;f<c;f++)delete a[f].ss_i},hasSVG:Y,isIE:b,getLinkAction:function(a,b){var f=function(a){return a};return function(){var d=c((a.chart||a.map||{}).unescapelinks,1),e=W(this.link,m),k=v(e,this.options&&
this.options.chart&&this.options.chart.link||m,this.series&&this.series.chart&&this.series.chart.options&&this.series.chart.options.chart&&this.series.chart.options.chart.link||m),l=k,t,n,u,i,h,o,H,B,p,E;if(k!==void 0){d&&(k=g.decodeURIComponent?g.decodeURIComponent(k):unescape(k));k=k.replace(/^\s+/,m).replace(/\s+$/,m);if(k.search(/^[a-z]*\s*[\-\:]\s*/i)!==-1)h=k.split(/\s*[\-\:]\s*/)[0].toLowerCase(),E=h.length;setTimeout(function(){switch(h){case "j":k=k.replace(/^j\s*\-/i,"j-");t=k.indexOf("-",
2);t===-1?M(k.slice(2)):M(k.substr(2,t-2).replace(/\s/g,m),k.slice(t+1));break;case "javascript":ba(k.replace(/^javascript\s*\:/i,m));break;case "n":k.replace(/^n\s*\-/i,"n-");g.open(f(k.slice(2),d));break;case "f":k=k.replace(/^f\s*\-/i,"f-");t=k.indexOf("-",2);t!==-1?(n=k.substr(2,t-2))&&g.frames[n]?g.frames[n].location=f(k.slice(t+1),d):g.open(f(k.slice(t+1),d),n):g.open(f(k.slice(2),d));break;case "p":k=k.replace(/p\s*\-/i,"p-");t=k.indexOf("-",2);u=k.indexOf(",",2);t===-1&&(t=1);i=f(k.slice(t+
1),d);g.open(i,k.substr(2,u-2),k.substr(u+1,t-u-1)).focus();break;case "newchart":case "newmap":k.charAt(E)===":"&&(t=k.indexOf("-",E+1),p=k.substring(E+1,t),E=t);t=k.indexOf("-",E+1);o=k.substring(E+1,t).toLowerCase();switch(o){case "xmlurl":case "jsonurl":B=k.substring(t+1,k.length);break;case "xml":case "json":var c=H=k.substring(t+1,k.length),e={chart:{}},v,c=c.toLowerCase();if(a.linkeddata)for(v=0;v<a.linkeddata.length;v+=1)a.linkeddata[v].id.toLowerCase()===c&&(e=a.linkeddata[v].linkedchart||
a.linkeddata[v].linkedmap);B=e;o="json"}j.raiseEvent("LinkedChartInvoked",{alias:p,linkType:o.toUpperCase(),data:B},b);break;default:g.location.href=k}j.raiseEvent("linkclicked",{linkProvided:l,linkInvoked:k,linkAction:h&&h.toLowerCase()},b)},0)}}},graphics:{parseAlpha:ya,convertColor:sa,getDarkColor:Ka,getLightColor:ta,mapSymbolName:function(a,b){var c=ua.circle,a=d(a);a>=3&&(c=(b?ua.spoke:ua.poly)+a);return c},getColumnColor:function(a,b,c,f,d,e,k,t,n){var u,i;u=a.split(",");i=b.split(",");e=e.split(",");
k=k.split(",");a=a.replace(/\s/g,m).replace(/\,$/,m);n?t={FCcolor:{color:u[0],alpha:i[0]}}:d?(a=u[0],i=i[0],t={FCcolor:{color:Ka(a,75)+","+ta(a,10)+","+Ka(a,90)+","+ta(a,55)+","+Ka(a,80),alpha:i+","+i+","+i+","+i+","+i,ratio:"0,11,14,57,18",angle:t?"90":"0"}},e=[Ka(a,70)]):(b=ya(b,u.length),t={FCcolor:{color:a,alpha:b,ratio:c,angle:t?-f:f}});return[t,{FCcolor:{color:e[0],alpha:k[0]}}]},getAngle:function(a,b,c){a=Math.atan(b/a)*180/Math.PI;c==2?a=180-a:c==3?a+=180:c==4&&(a=360-a);return a},parseColor:fa,
getValidColor:function(a){return Z.test(fa(a))&&a},HSBtoRGB:function(a){var b=a[0],c=0,f=0,d=0,e=[],e=a[1]/100,a=a[2]/100,k=b/60-Math.floor(b/60),t=a*(1-e),u=a*(1-k*e),e=a*(1-(1-k)*e);switch(Math.floor(b/60)%6){case 0:c=a;f=e;d=t;break;case 1:c=u;f=a;d=t;break;case 2:c=t;f=a;d=e;break;case 3:c=t;f=u;d=a;break;case 4:c=e;f=t;d=a;break;case 5:c=a,f=t,d=u}return e=[I(c*255),I(f*255),I(d*255)]},RGBtoHSB:function(a){var b=a[0],c=a[1],a=a[2],f=Math.max(Math.max(b,c),a),d=Math.min(Math.min(b,c),a),e=0,k=
0;f==d?e=0:f==b?e=(60*(c-a)/(f-d)+360)%360:f==c?e=60*(a-b)/(f-d)+120:f==a&&(e=60*(b-c)/(f-d)+240);k=f==0?0:(f-d)/f;return[I(e),I(k*100),I(f/255*100)]},RGBtoHex:function(a){return("000000"+(a[0]<<16|a[1]<<8|a[2]).toString(16)).slice(-6)},HEXtoRGB:function(a){var a=parseInt(a,16),b=Math.floor(a/65536),c=Math.floor((a-b*65536)/256);return[b,c,Math.floor(a-b*65536-c*256)]}},setImageDisplayMode:function(a,b,c,f,d,e,k,t){var u=t.width*(f/100),f=t.height*(f/100),t={},i,h=e-d*2;i=k-d*2;var M=function(a,b,
c,f,e,k){var t={};switch(a){case "top":t.y=d;break;case "bottom":t.y=k-f-d;break;case "middle":t.y=(k-f)/2}switch(b){case "left":t.x=d;break;case "right":t.x=e-c-d;break;case "middle":t.x=(e-c)/2}return t};switch(a){case "center":t.width=u;t.height=f;t.y=k/2-f/2;t.x=e/2-u/2;break;case "stretch":t.width=e-d*2;t.height=k-d*2;t.y=d;t.x=d;break;case "tile":t.width=u;t.height=f;t.tileInfo={};t.tileInfo.xCount=a=Math.ceil(h/u);t.tileInfo.yCount=i=Math.ceil(i/f);alignObj=M(b,c,u*a,f*i,e,k);t.y=alignObj.y;
t.x=alignObj.x;break;case "fit":a=u/f>h/i?h/u:i/f;t.width=u*a;t.height=f*a;alignObj=M(b,c,t.width,t.height,e,k);t.y=alignObj.y;t.x=alignObj.x;break;case "fill":a=u/f>h/i?i/f:h/u;t.width=u*a;t.height=f*a;alignObj=M(b,c,t.width,t.height,e,k);t.y=alignObj.y;t.x=alignObj.x;break;default:alignObj=M(b,c,u,f,e,k),t.width=u,t.height=f,t.y=alignObj.y,t.x=alignObj.x}return t},setLineHeight:La,supportedStyle:Fa,getAxisLimits:Xa,createTrendLine:Wa,getDashStyle:Ma,axisLabelAdder:eb,chartAPI:Oa,createDialog:Ya,
defaultPaletteOptions:{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"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:[m,m,m,m,m],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,
100],showShadow:[0,1,1,1,1],divLineColor:["717170","7B7D6D","92CDD6","965B01","68001B"],divLineAlpha:[40,45,65,40,30],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],anchorBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555",
"60634E","025B6A","A15E01","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotGradientColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],plotBorderColor:["333333","8A8A8A","FFFFFF","FFFFFF","FFFFFF"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],bgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAlpha3D:["100",
"100","100","100","100"],bgAngle3D:[90,90,90,90,90],bgRatio3D:[m,m,m,m,m],canvasBgColor3D:["DDE3D5","D8D8D7","EEDFCA","CFD2D8","FEE8E0"],canvasBaseColor3D:["ACBB99","BCBCBD","C8A06C","96A4AF","FAC7BC"],divLineColor3D:["ACBB99","A4A4A4","BE9B6B","7C8995","D49B8B"],divLineAlpha3D:[100,100,100,100,100],legendBgColor3D:["F0F3ED","F3F3F3","F7F0E8","EEF0F2","FEF8F5"],legendBorderColor3D:["C6CFB8","C8C8C8","DFC29C","CFD5DA","FAD1C7"],toolTipbgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor3D:["49563A",
"666666","49351D","576373","681C09"],baseFontColor3D:["49563A","4A4A4A","49351D","48505A","681C09"],anchorBgColor3D:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"]}})}})();
(function(j){j.fn.drag=function(b,r,z){var g=typeof b=="string"?b:"",w=j.isFunction(b)?b:j.isFunction(r)?r:null;g.indexOf("drag")!==0&&(g="drag"+g);z=(b==w?r:z)||{};return w?this.bind(g,z,w):this.trigger(g)};var g=j.event,m=g.dispatch||g.handle,X="ontouchstart"in document.documentElement,w=X?"touchstart":"mousedown",J=X?"touchmove touchend":"mousemove mouseup",Y=function(b,r){var z;if(!r.touchXY||!b.originalEvent)return b;z=b.originalEvent||b.sourceEvent;(z=z.changedTouches||z.touches)&&z.length&&
j.extend(b,z[0]);return b},b=g.special,A=b.drag={defaults:{which:1,distance:0,not:":input",handle:null,relative:!1,drop:!1,click:!1,touchXY:!0},datakey:"dragdata",livekey:"livedrag",add:function(b){var r=j.data(this,A.datakey)||j.data(this,A.datakey,j.extend({related:0},A.defaults)),z=b.data||{};r.related+=1;if(!r.live&&b.selector)r.live=!0,g.add(this,"draginit."+A.livekey,A.delegate);j.each(A.defaults,function(b){z[b]!==void 0&&(r[b]=z[b])})},remove:function(){(j.data(this,A.datakey)||{}).related-=
1},setup:function(){if(!j.data(this,A.datakey)){var b=j.extend({related:0},A.defaults);j.data(this,A.datakey,b);g.add(this,w,A.init,b);this.attachEvent&&this.attachEvent("ondragstart",A.dontstart)}},teardown:function(){(j.data(this,A.datakey)||{}).related||(j.removeData(this,A.datakey),g.remove(this,w,A.init),g.remove(this,"draginit",A.delegate),A.textselect(!0),this.detachEvent&&this.detachEvent("ondragstart",A.dontstart))},init:function(e){var r=e.data,z;if((z=(z=e.originalEvent||e.sourceEvent)?
z.changedTouches||z.touches:[])&&z.length)if(z.length>1)return;else Y(e,r);else if(r.which>0&&e.which!=r.which)return;if(!j(e.target).is(r.not)&&(!r.handle||j(e.target).closest(r.handle,e.currentTarget).length))if(r.propagates=1,r.interactions=[A.interaction(this,r)],r.target=e.target,r.pageX=e.pageX,r.pageY=e.pageY,r.dragging=null,z=A.hijack(e,"draginit",r),r.propagates){if((z=A.flatten(z))&&z.length)r.interactions=[],j.each(z,function(){r.interactions.push(A.interaction(this,r))});r.propagates=
r.interactions.length;r.drop!==!1&&b.drop&&b.drop.handler(e,r);A.textselect(!1);g.add(document,J,A.handler,r);if(!X)return!1}},interaction:function(b,r){return{drag:b,callback:new A.callback,droppable:[],offset:j(b)[r.relative?"position":"offset"]()||{top:0,left:0}}},handler:function(e){var r=e.data,j;if(!r.dragging&&(e.type==="mousemove"||e.type==="touchmove")){if(Math.pow(e.pageX-r.pageX,2)+Math.pow(e.pageY-r.pageY,2)<Math.pow(r.distance,2))return;e.target=r.target;A.hijack(e,"dragstart",r);if(r.propagates)r.dragging=
!0}switch(e.type){case "touchmove":j=e.originalEvent||e.sourceEvent,j=j.touches,r.dragging&&(j&&j.length>1||e.preventDefault(),Y(e,r));case "mousemove":if(r.dragging){A.hijack(e,"drag",r);if(r.propagates){r.drop!==!1&&b.drop&&b.drop.handler(e,r);break}e.type="mouseup"}case "touchend":r.dragging&&Y(e,r);case "mouseup":if(g.remove(document,J,A.handler),r.dragging&&(r.drop!==!1&&b.drop&&b.drop.handler(e,r),A.hijack(e,"dragend",r)),A.textselect(!0),r.click===!1&&r.dragging)jQuery.event.triggered=!0,setTimeout(function(){jQuery.event.triggered=
!1},20),r.dragging=!1}},delegate:function(b){var r=[],z,w=j.data(this,"events")||{};j.each(w.live||[],function(w,s){if(s.preType.indexOf("drag")===0&&(z=j(b.target).closest(s.selector,b.currentTarget)[0]))g.add(z,s.origType+"."+A.livekey,s.origHandler,s.data),j.inArray(z,r)<0&&r.push(z)});if(!r.length)return!1;return j(r).bind("dragend."+A.livekey,function(){g.remove(this,"."+A.livekey)})},hijack:function(b,r,z,g,w){if(z){var s={event:b.originalEvent,type:b.type},ia=r.indexOf("drop")?"drag":"drop",
I,K=g||0,P,ha,g=!isNaN(g)?g:z.interactions.length;b.type=r;b.sourceEvent=s.event;b.originalEvent=null;z.results=[];do if((P=z.interactions[K])&&!(r!=="dragend"&&P.cancelled)){ha=A.properties(b,z,P);P.results=[];j(w||P[ia]||z.droppable).each(function(H,o){I=(ha.target=o)?m.call(o,b,ha):null;if(I===!1){if(ia=="drag")P.cancelled=!0,z.propagates-=1;r=="drop"&&(P[ia][H]=null)}else r=="dropinit"&&P.droppable.push(A.element(I)||o);if(r=="dragstart")P.proxy=j(A.element(I)||P.drag)[0];P.results.push(I);delete b.result;
if(r!=="dropinit")return I});z.results[K]=A.flatten(P.results);if(r=="dropinit")P.droppable=A.flatten(P.droppable);r=="dragstart"&&!P.cancelled&&ha.update()}while(++K<g);b.type=s.type;b.originalEvent=s.event;return A.flatten(z.results)}},properties:function(b,r,j){var g=j.callback;g.drag=j.drag;g.proxy=j.proxy||j.drag;g.startX=r.pageX;g.startY=r.pageY;g.deltaX=b.pageX-r.pageX;g.deltaY=b.pageY-r.pageY;g.originalX=j.offset.left;g.originalY=j.offset.top;g.offsetX=b.pageX-(r.pageX-g.originalX);g.offsetY=
b.pageY-(r.pageY-g.originalY);g.drop=A.flatten((j.drop||[]).slice());g.available=A.flatten((j.droppable||[]).slice());return g},element:function(b){if(b&&(b.jquery||b.nodeType==1))return b},flatten:function(b){return j.map(b,function(b){return b&&b.jquery?j.makeArray(b):b&&b.length?A.flatten(b):b})},textselect:function(b){j(document)[b?"unbind":"bind"]("selectstart",A.dontstart).attr("unselectable",b?"off":"on").css("MozUserSelect",b?"":"none")},dontstart:function(){return!1},callback:function(){}};
A.callback.prototype={update:function(){b.drop&&this.available.length&&j.each(this.available,function(e){b.drop.locate(this,e)})}};b.draginit=b.dragstart=b.dragend=A})(jQuery);
(function(j){function g(g){var w=g||window.event,m=[].slice.call(arguments,1),Y=0,b=0,A=0,g=j.event.fix(w);g.type="wheelchange";g.wheelDelta&&(Y=g.wheelDelta/120);g.detail&&(Y=-g.detail/3);A=Y;w.axis!==void 0&&w.axis===w.HORIZONTAL_AXIS&&(A=0,b=-1*Y);w.wheelDeltaY!==void 0&&(A=w.wheelDeltaY/120);w.wheelDeltaX!==void 0&&(b=-1*w.wheelDeltaX/120);m.unshift(g,Y,b,A);return j.event.handle.apply(this,m)}var m=["DOMMouseScroll","mousewheel"];j.event.special.wheelchange={setup:function(){if(this.addEventListener)for(var j=
m.length;j;)this.addEventListener(m[--j],g,!1);else this.onmousewheel=g},teardown:function(){if(this.removeEventListener)for(var j=m.length;j;)this.removeEventListener(m[--j],g,!1);else this.onmousewheel=null}};j.fn.extend({wheelchange:function(j){return j?this.bind("wheelchange",j):this.trigger("wheelchange")},unwheelchange:function(j){return this.unbind("wheelchange",j)}})})(jQuery);
FusionCharts(["private","modules.renderer.js-smartlabel",function(){var j=this.hcLib,g=j.isIE,m=j.hasSVG,X=Math.max,w=/ HtmlUnit/.test(navigator.userAgent),J=document,Y=/ AppleWebKit\//.test(navigator.userAgent),b=!!J.createElement("canvas").getContext,A=!(!b||!J.createElement("canvas").getContext("2d").measureText),e=function(){function e(b,i,h){if(!b||!b.length)return 0;var c=h.getWidthFunction(),d=0,a=0,a=c(b),k=a/b.length,h=i,d=Math.ceil(i/k);if(a<i)return b.length-1;if(d>b.length)h=i-a,d=b.length;
for(;h>0;)if(h=i-c(b.substr(0,d)),a=Math.floor(h/k))d+=a;else return d;for(;h<0;)if(h=i-c(b.substr(0,d)),a=Math.floor(h/k))d+=a;else break;return d}function z(b,e){e=e>5?e:5;this.maxContainers=e<20?e:20;this.last=this.first=null;this.containers={};this.length=0;this.rootNode=b;if(V){var h=document.createElementNS("http://www.w3.org/2000/svg","svg");h.setAttributeNS("http://www.w3.org/2000/svg","xlink","http://www.w3.org/1999/xlink");h.setAttributeNS("http://www.w3.org/2000/svg","height","0");h.setAttributeNS("http://www.w3.org/2000/svg",
"width","0");this.svgRoot=h;this.rootNode.appendChild(h)}}function oa(b,e,h){if(!(typeof b==="undefined"||typeof b==="object")){this.id=b;var c,d;typeof e==="string"&&(e=J.getElementById(e));if(e&&e.offsetWidth&&e.offsetHeight){if(e.appendChild)e.appendChild(c=document.createElement("div")),c.className="_SmartLabel_Container",c.setAttribute("aria-hidden","true"),c.setAttribute("role","presentation")}else if((b=document.getElementsByTagName("body")[0])&&b.appendChild)c=document.createElement("div"),
c.className="_SmartLabel_Container",c.setAttribute("aria-hidden","true"),c.setAttribute("role","presentation"),S+=1,b.appendChild(c);c=this.parentContainer=c;c.innerHTML=E;if(w||!c.offsetHeight&&!c.offsetWidth)V=!0;c.innerHTML="";for(d in ia)c.style[d]=ia[d];this.containerManager=new z(c,10);this.showNoEllipses=!h;this.init=!0;this.style={};this.setStyle()}}var Z=j.supportedStyle,s={fontWeight:1,"font-weight":1,fontStyle:1,"font-style":1,fontSize:1,"font-size":1,fontFamily:1,"font-family":1},ia={position:"absolute",
top:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},I=Y?0:4.5,K=0,P=/\b_SmartLabel\b/,ha=/\b_SmartLabelBR\b/,H=/(\<[^\<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/ig,o=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),p=/<[^>][^<]*[^>]+>/i,E="WgI",V=!1,L=0,G=0,S=0,W,v,F;J.getElementsByClassName?(W="getElementsByClassName",v="_SmartLabel",F=!0):(W="getElementsByTagName",v="span",F=!1);z.prototype={get:function(b){var e=this.containers,h=this.length,
c=this.maxContainers,d,a="",k="",k=this.getCanvasFont(b);for(d in Z)b[d]!==void 0&&(a+=Z[d]+":"+b[d]+";");if(!a)return!1;if(e[a]){if(a=e[a],this.first!==a)a.prev&&(a.prev.next=a.next),a.next&&(a.next.prev=a.prev),a.next=this.start,a.prev=null,this.last===a&&(this.last=a.prev),this.start=a}else{if(h>=c)for(b=h-c+1;b--;)this.removeContainer(this.last);a=this.addContainer(a,k)}return a},getCanvasFont:function(f){var e,h=[];if(!b||!A)return!1;for(e in s)f[e]!==void 0&&h.push(f[e]);return h.join(" ")},
setMax:function(b){var e=this.length,b=b>5?b:5,b=b<20?b:20;if(b<e){for(e-=b;e--;)this.removeContainer(this.last);this.length=b}this.maxContainers=b},addContainer:function(b,e){var h,c;this.containers[b]=c={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:b,canvasStr:e,charCache:{}};c.next=this.start;c.next&&(c.next.prev=c);this.start=c;this.length+=1;h=c.node=J.createElement("span");this.rootNode.appendChild(h);g&&!m?h.style.setAttribute("cssText",b):h.setAttribute("style",
b);h.setAttribute("aria-hidden","true");h.setAttribute("role","presentation");h.style.display="inline-block";h.innerHTML=E;c.lineHeight=h.offsetHeight;c.avgCharWidth=h.offsetWidth/3;V?(h=c.svgText=J.createElementNS("http://www.w3.org/2000/svg","text"),h.setAttribute("style",b),this.svgRoot.appendChild(h),h.textContent=E,c.lineHeight=h.getBBox().height,c.avgCharWidth=(h.getBBox().width-I)/3,h.textContent="...",c.ellipsesWidth=h.getBBox().width-I,h.textContent=".",c.dotWidth=h.getBBox().width-I):e?
(h=c.canvas=J.createElement("canvas"),h.style.height=h.style.width="0px",this.rootNode.appendChild(h),c.context=h=h.getContext("2d"),h.font=e,c.ellipsesWidth=h.measureText("...").width,c.dotWidth=h.measureText(".").width):(h.innerHTML="...",c.ellipsesWidth=h.offsetWidth,h.innerHTML=".",c.dotWidth=h.offsetWidth,h.innerHTML="");return c},removeContainer:function(b){var e=b.keyStr;if(e&&this.length&&b)this.length-=1,b.prev&&(b.prev.next=b.next),b.next&&(b.next.prev=b.prev),this.first===b&&(this.first=
b.next),this.last===b&&(this.last=b.prev),delete this.containers[e],delete b}};z.prototype.constructor=z;oa.prototype={dispose:function(){var b=this.container,e;if(this.init){if(b&&(e=b.parentNode))e.removeChild(b),delete this.container;delete this.id;delete this.style;delete this.parentContainer;delete this.showNoEllipses}},useEllipsesOnOverflow:function(b){if(this.init)this.showNoEllipses=!b},getWidthFunction:function(){var b=this.context,e=this.container,h=this.containerObj.svgText;return h?function(b){var f;
h.textContent=b;b=h.getBBox();f=b.width-I;if(f<1)f=b.width;return f}:b?function(c){return b.measureText(c).width}:function(b){e.innerHTML=b;return e.offsetWidth}},getSmartText:function(b,i,h,c){if(!this.init)return!1;if(b===void 0||b===null)b="";var d={text:b,maxWidth:i,maxHeight:h,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:b,isTruncated:!1},a=!1,k,t=0,u,M,ba=-1,E=-1,j=-1;k=this.container;var g=this.context,z=0,w=0,s,A,I=[],m=0,ia=this.showNoEllipses?"":"...",ba=this.lineHeight,
Z=function(a){for(var a=a.replace(/^\s\s*/,""),b=/\s/,c=a.length;b.test(a.charAt(c-=1)););return a.slice(0,c+1)};A=this.getWidthFunction();if(k){if(!V){k.innerHTML=b;d.oriTextWidth=M=k.offsetWidth;d.oriTextHeight=a=k.offsetHeight;if(a<=h&&M<=i)return d.width=d.oriTextWidth=M,d.height=d.oriTextHeight=a,d;if(ba>h)return d.text="",d.width=d.oriTextWidth=0,d.height=d.oriTextHeight=0,d}b=Z(b).replace(/(\s+)/g," ");a=p.test(b);M=this.showNoEllipses?i:i-K;if(a){t=b.replace(H,"$2");b=b.replace(H,'$1<span class="_SmartLabel">$2</span>');
b=b.replace(/(\<br\s*\/*\>)/g,"<span class='_SmartLabel _SmartLabelBR'>$1</span>");k.innerHTML=b;m=k[W](v);g=[];E=ba=-1;a=0;for(A=m.length;a<A;a+=1)if(b=m[a],F||P.test(b.className))if(Z=b.innerHTML,Z!=""){if(Z==" ")E=g.length;else if(Z=="-")ba=g.length;g.push({spaceIdx:E,dashIdx:ba,elem:b});I.push(Z)}delete m;m=0;a=g.length;L=g[0].elem.offsetWidth;if(L>i)return d.text="",d.width=d.oriTextWidth=d.height=d.oriTextHeight=0,d;else L>M&&!this.showNoEllipses&&(M=i-2*G,M>L?ia="..":(M=i-G,M>L?ia=".":(M=0,
ia="")));if(c)for(;m<a;m+=1)b=g[m].elem,c=b.offsetLeft+b.offsetWidth,c>M&&(s||(s=m),k.offsetWidth>i&&(u=m,m=a));else for(;m<a;m+=1)if(b=g[m].elem,A=b.offsetHeight+b.offsetTop,c=b.offsetLeft+b.offsetWidth,I=null,c>M){if(s||(s=m),c>i)E=g[m].spaceIdx,ba=g[m].dashIdx,E>j?(g[E].elem.innerHTML="<br/>",j=E):ba>j?(g[ba].elem.innerHTML=ba===m?"<br/>-":"-<br/>",j=ba):b.parentNode.insertBefore(I=document.createElement("br"),b),b.offsetHeight+b.offsetTop>h?(I?I.parentNode.removeChild(I):j===ba?g[ba].elem.innerHTML=
"-":g[E].elem.innerHTML=" ",u=m,m=a):s=null}else A>h&&(u=m,m=a);if(u<a){d.isTruncated=!0;s=s?s:u;for(m=a-1;m>=s;m-=1)b=g[m].elem,b.parentNode.removeChild(b);for(;m>=0;m-=1)b=g[m].elem,ha.test(b.className)?b.parentNode.removeChild(b):m=0}d.text=k.innerHTML.replace(o,"$1");if(d.isTruncated)d.text+=ia,d.tooltext=t}else{I=b.split("");a=I.length;k="";u=[];s=I[0];this.cache[s]?L=this.cache[s].width:(L=A(s),this.cache[s]={width:L});if(M>L)u=b.substr(0,e(b,M,this)).split(""),m=u.length;else if(L>i)return d.text=
"",d.width=d.oriTextWidth=d.height=d.oriTextHeight=0,d;else ia&&(M=i-2*G,M>L?ia="..":(M=i-G,M>L?ia=".":(M=0,ia="")));z=A(u.join(""));w=this.lineHeight;if(c){for(;m<a;m+=1)if(s=u[m]=I[m],this.cache[s]?L=this.cache[s].width:(L=A(s),this.cache[s]={width:L}),z+=L,z>M&&(k||(k=u.slice(0,-1).join("")),z>i))return d.text=Z(k)+ia,d.tooltext=d.oriText,d.width=A(d.text),d.height=this.lineHeight,d;d.text=u.join("");d.width=z;d.height=this.lineHeight}else{for(;m<a;m+=1)if(s=u[m]=I[m],s===" "&&!g&&(s="&nbsp;"),
this.cache[s]?L=this.cache[s].width:(L=A(s),this.cache[s]={width:L}),z+=L,z>M&&(k||(k=u.slice(0,-1).join("")),z>i))if(E=b.substr(0,u.length).lastIndexOf(" "),ba=b.substr(0,u.length).lastIndexOf("-"),E>j?(z=A(u.slice(j+1,E).join("")),u.splice(E,1,"<br/>"),j=E,c=E+1):ba>j?(ba===u.length-1?(z=A(u.slice(j+1,E).join("")),u.splice(ba,1,"<br/>-")):(z=A(u.slice(j+1,E).join("")),u.splice(ba,1,"-<br/>")),j=ba,c=ba+1):(u.splice(u.length-1,1,"<br/>"+I[m]),c=m),w+=this.lineHeight,w>h)return d.text=Z(k)+ia,d.tooltext=
d.oriText,d.width=t,d.height=w-this.lineHeight,d;else t=X(t,z),k=null,s=e(b.substr(c),M,this),z=A(b.substr(c,s||1)),u.length<c+s&&(u=u.concat(b.substr(u.length,c+s-u.length).split("")),m=u.length-1);t=X(t,z);d.text=u.join("");d.width=t;d.height=w}return d}d.height=k.offsetHeight;d.width=k.offsetWidth}else d.error=Error("Body Tag Missing!");return d},setStyle:function(b){if(!this.init)return!1;if(b!==this.style||this.styleNotSet){if(!b)b=this.style;this.style=b;(this.containerObj=b=this.containerManager.get(b))?
(this.container=b.node,this.context=b.context,this.cache=b.charCache,this.lineHeight=b.lineHeight,K=b.ellipsesWidth,G=b.dotWidth,this.styleNotSet=!1):this.styleNotSet=!0}},getTextSize:function(b,e,h){if(!this.init)return!1;var c={text:b,width:null,height:null,oriTextWidth:null,oriTextHeight:null,isTruncated:!1},d=this.container;if(d&&(d.innerHTML=b,c.oriTextWidth=d.offsetWidth,c.oriTextHeight=d.offsetHeight,c.width=Math.min(c.oriTextWidth,e),c.height=Math.min(c.oriTextHeight,h),c.width<c.oriTextWidth||
c.height<c.oriTextHeight))c.isTruncated=!0;return c},getOriSize:function(b){if(!this.init)return!1;var e={text:b,width:null,height:null},h=this.container,c=this.getWidthFunction(),d=0;if(V){b=b.split(/(\<br\s*\/*\>)/g);h=b.length;for(e.height=this.lineHeight*h;h--;)d=X(d,c(b[h]));e.width=d}else if(h)h.innerHTML=b,e.width=h.offsetWidth,e.height=h.offsetHeight;return e}};return oa.prototype.constructor=oa}();j.SmartLabelManager=e}]);
FusionCharts(["private","modules.renderer.js-numberformatter",function(){var j=this.hcLib,g=j.pluckNumber,m=j.extend2,X=j.getValidValue,g=j.pluckNumber,w=j.pluck,J=j.getFirstValue,Y=Math.abs,b=Math.pow,A=Math.round,e="",r="0",z=".",oa="-",Z=function(b){return b&&b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")};j.NumberFormatter=function(){function j(H,o,p){var E;if(o<=0)return A(H)+e;if(isNaN(o))return H+=e,H.length>12&&H.indexOf(z)!=-1&&(o=12-H.split(z)[0].length,E=b(10,o),H=A(H*E)/E+e),H;E=b(10,o);
H=A(H*E)/E+e;if(p==1){H.indexOf(z)==-1&&(H+=".0");p=H.split(z);o-=p[1].length;for(p=1;p<=o;p++)H+=r}return H}function ia(b,o,p,E){var j=Number(b);if(isNaN(j))return e;var g=e,r=!1,s=e,m=e,v=s=0,s=0,v=b.length;b.indexOf(z)!=-1&&(g=b.substring(b.indexOf(z)+1,b.length),v=b.indexOf(z));j<0&&(r=!0,s=1);s=b.substring(s,v);b=s.length;j=E.length-1;v=E[j];if(b<v)m=s;else for(;b>=v;)m=(b-v?p:e)+s.substr(b-v,v)+m,b-=v,v=(j-=1)<=0?E[0]:E[j],b<v&&(m=s.substring(b,0)+m);g!=e&&(m=m+o+g);r==!0&&(m=oa+m);return m}
var I={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:e,numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:e,numbersuffix:e,decimals:e,forcedecimals:r,yaxisvaluedecimals:"2",decimalseparator:z,thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:e,inthousandseparator:e,sformatnumber:"1",sformatnumberscale:r,sdefaultnumberscale:e,snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:e,snumbersuffix:e,sdecimals:"2",sforcedecimals:r,syaxisvaluedecimals:"2",
xFormatNumber:r,xFormatNumberScale:r,xDefaultNumberScale:e,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:e,xNumberSuffix:e},K={mscombidy2d:{formatnumberscale:"1"}},P=function(b,e,p){var E,j,r,s,z,A,v,F,f,i=e.name,h=m({},I),c,d;(r=K[i])&&(h=m(h,r));this.csConf=h;this.chartAPI=e;X(b.numberscaleunit)&&(E=b.numberscaleunit.split(","));if(j=X(b.snumberscaleunit,b.numberscaleunit))j=j.split(",");if(r=X(b.xnumberscaleunit,b.numberscaleunit))r=r.split(",");if(s=X(b.ticknumberscaleunit,
b.numberscaleunit))s=s.split(",");if(z=X(b.ynumberscaleunit,b.numberscaleunit))z=z.split(",");X(b.numberscalevalue)&&(A=b.numberscalevalue.split(","));if(d=X(b.snumberscalevalue,b.numberscalevalue))d=d.split(",");if(v=X(b.xnumberscalevalue,b.numberscalevalue))v=v.split(",");if(F=X(b.ticknumberscalevalue,b.numberscalevalue))F=F.split(",");if(f=X(b.ynumberscalevalue,b.numberscalevalue))f=f.split(",");if(X(b.thousandseparatorposition)){c=b.thousandseparatorposition.split(",");for(var a=c.length,k,t=
I.thousandseparatorposition[0];a--;)k=parseInt(c[a],10),k>0||(k=t),t=c[a]=k}e||(e={});a=g(b.scalerecursively,0);k=g(b.sscalerecursively,a);var t=g(b.xscalerecursively,a),u=g(b.maxscalerecursion,-1),M=g(b.smaxscalerecursion,u),ba=g(b.xmaxscalerecursion,u),R=X(b.scaleseparator," "),Ha=X(b.sscaleseparator,R),ia=X(b.xscaleseparator,R);u||(u=-1);this.baseConf=E={cacheStore:[],formatnumber:w(b.formatnumber,e.formatnumber,h.formatnumber),formatnumberscale:w(b.formatnumberscale,e.formatnumberscale,h.formatnumberscale),
defaultnumberscale:J(b.defaultnumberscale,e.defaultnumberscale,h.defaultnumberscale),numberscaleunit:w(E,e.numberscaleunit,h.numberscaleunit).concat(),numberscalevalue:w(A,e.numberscalevalue,h.numberscalevalue).concat(),numberprefix:J(b.numberprefix,e.numberprefix,h.numberprefix),numbersuffix:J(b.numbersuffix,e.numbersuffix,h.numbersuffix),decimalprecision:parseInt(b.decimals==="auto"?h.decimalprecision:w(b.decimals,b.decimalprecision,e.decimals,h.decimals,e.decimalprecision,h.decimalprecision),10),
forcedecimals:w(b.forcedecimals,e.forcedecimals,h.forcedecimals),decimalseparator:w(b.decimalseparator,e.decimalseparator,h.decimalseparator),thousandseparator:w(b.thousandseparator,e.thousandseparator,h.thousandseparator),thousandseparatorposition:w(c,e.thousandseparatorposition,h.thousandseparatorposition),indecimalseparator:J(b.indecimalseparator,e.indecimalseparator,h.indecimalseparator),inthousandseparator:J(b.inthousandseparator,e.inthousandseparator,h.inthousandseparator),scalerecursively:a,
maxscalerecursion:u,scaleseparator:R};if(X(E.inthousandseparator))this.baseConf._REGinthousandseparator=RegExp(Z(E.inthousandseparator),"g");if(X(E.indecimalseparator))this.baseConf._REGindecimalseparator=RegExp(Z(E.indecimalseparator));this.Y=[];if(!p){p={cacheStore:[],formatnumber:E.formatnumber,formatnumberscale:E.formatnumberscale,defaultnumberscale:E.defaultnumberscale,numberscaleunit:E.numberscaleunit.concat(),numberscalevalue:E.numberscalevalue.concat(),numberprefix:E.numberprefix,numbersuffix:E.numbersuffix,
decimalprecision:E.decimalprecision,forcedecimals:E.forcedecimals,decimalseparator:E.decimalseparator,thousandseparator:E.thousandseparator,thousandseparatorposition:E.thousandseparatorposition,indecimalseparator:E.indecimalseparator,inthousandseparator:E.inthousandseparator,scalerecursively:a,maxscalerecursion:u,scaleseparator:R};if(!e.useScaleRecursively||(p.numberscalevalue&&p.numberscalevalue.length)!=(p.numberscaleunit&&p.numberscaleunit.length))p.scalerecursively=a=0;A={cacheStore:[],formatnumber:p.formatnumber,
formatnumberscale:p.formatnumberscale,defaultnumberscale:p.defaultnumberscale,numberscaleunit:p.numberscaleunit.concat(),numberscalevalue:p.numberscalevalue.concat(),numberprefix:p.numberprefix,numbersuffix:p.numbersuffix,decimalprecision:parseInt(w(b.yaxisvaluedecimals,p.decimalprecision,2)),forcedecimals:w(b.forceyaxisvaluedecimals,p.forcedecimals),decimalseparator:p.decimalseparator,thousandseparator:p.thousandseparator,thousandseparatorposition:p.thousandseparatorposition.concat(),indecimalseparator:p.indecimalseparator,
inthousandseparator:p.inthousandseparator,scalerecursively:a,maxscalerecursion:u,scaleseparator:R};d={cacheStore:[],formatnumber:w(b.sformatnumber,e.sformatnumber,I.sformatnumber),formatnumberscale:w(b.sformatnumberscale,e.sformatnumberscale,I.sformatnumberscale),defaultnumberscale:J(b.sdefaultnumberscale,e.sdefaultnumberscale,p.defaultnumberscale),numberscaleunit:w(j,e.snumberscaleunit,I.snumberscaleunit).concat(),numberscalevalue:w(d,e.snumberscalevalue,I.snumberscalevalue).concat(),numberprefix:J(b.snumberprefix,
e.snumberprefix,I.snumberprefix),numbersuffix:J(b.snumbersuffix,e.snumbersuffix,I.snumbersuffix),decimalprecision:parseInt(w(b.syaxisvaluedecimals,b.sdecimals,b.decimals,e.sdecimals,I.sdecimals),10),forcedecimals:w(b.forcesyaxisvaluedecimals,b.sforcedecimals,b.forcedecimals,e.sforcedecimals,I.sforcedecimals),decimalseparator:w(b.decimalseparator,e.decimalseparator,I.decimalseparator),thousandseparator:w(b.thousandseparator,e.thousandseparator,I.thousandseparator),thousandseparatorposition:p.thousandseparatorposition.concat(),
indecimalseparator:w(b.indecimalseparator,e.indecimalseparator,I.indecimalseparator),inthousandseparator:w(b.inthousandseparator,e.inthousandseparator,I.inthousandseparator),scalerecursively:k,maxscalerecursion:M,scaleseparator:Ha};j=m({},d);j.decimalprecision=parseInt(w(b.sdecimals,b.decimals,b.syaxisvaluedecimals,e.sdecimals,I.sdecimals),10);j.forcedecimals=w(b.sforcedecimals,b.forcedecimals,b.forcesyaxisvaluedecimals,e.sforcedecimals,I.sforcedecimals);j.cacheStore=[];if(!e.useScaleRecursively||
(d.numberscalevalue&&d.numberscalevalue.length)!=(d.numberscaleunit&&d.numberscaleunit.length))d.scalerecursively=k=0;if(/^(bubble|scatter|selectscatter)$/.test(i))A.formatnumber=w(b.yformatnumber,A.formatnumber),A.formatnumberscale=w(b.yformatnumberscale,A.formatnumberscale),A.defaultnumberscale=J(b.ydefaultnumberscale,A.defaultnumberscale),A.numberscaleunit=w(z,A.numberscaleunit),A.numberscalevalue=w(f,A.numberscalevalue),A.numberprefix=w(b.ynumberprefix,A.numberprefix),A.numbersuffix=w(b.ynumbersuffix,
A.numbersuffix),p.formatnumber=w(b.yformatnumber,p.formatnumber),p.formatnumberscale=w(b.yformatnumberscale,p.formatnumberscale),p.defaultnumberscale=J(b.ydefaultnumberscale,p.defaultnumberscale),p.numberscaleunit=w(b.ynumberscaleunit,p.numberscaleunit.concat()),p.numberscalevalue=w(b.ynumberscalevalue,p.numberscalevalue.concat()),p.numberprefix=w(b.ynumberprefix,p.numberprefix),p.numbersuffix=w(b.ynumbersuffix,p.numbersuffix);if(/^(mscombidy2d|mscombidy3d)$/.test(i))d.formatnumberscale=g(b.sformatnumberscale,
"1");if(/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(i))p.decimalprecision=w(b.decimals,"2");a&&(p.numberscalevalue.push(1),p.numberscaleunit.unshift(p.defaultnumberscale),A.numberscalevalue.push(1),A.numberscaleunit.unshift(A.defaultnumberscale));k&&(d.numberscalevalue.push(1),d.numberscaleunit.unshift(d.defaultnumberscale),j.numberscalevalue.push(1),j.numberscaleunit.unshift(j.defaultnumberscale));this.Y[0]={yAxisLabelConf:A,dataLabelConf:p};this.Y[1]={yAxisLabelConf:d,
dataLabelConf:j};this.paramLabels=p;this.param1=A;this.param2=d;this.paramLabels2=j}this.paramX={cacheStore:[],formatnumber:w(b.xformatnumber,E.formatnumber),formatnumberscale:w(b.xformatnumberscale,E.formatnumberscale),defaultnumberscale:J(b.xdefaultnumberscale,E.defaultnumberscale),numberscaleunit:w(r,E.numberscaleunit.concat()),numberscalevalue:w(v,E.numberscalevalue.concat()),numberprefix:w(b.xnumberprefix,E.numberprefix),numbersuffix:w(b.xnumbersuffix,E.numbersuffix),decimalprecision:parseInt(w(b.xaxisvaluedecimals,
b.xaxisvaluesdecimals,E.decimalprecision,2),10),forcedecimals:w(b.forcexaxisvaluedecimals,0),decimalseparator:E.decimalseparator,thousandseparator:E.thousandseparator,thousandseparatorposition:E.thousandseparatorposition.concat(),indecimalseparator:E.indecimalseparator,inthousandseparator:E.inthousandseparator,scalerecursively:t,maxscalerecursion:ba,scaleseparator:ia};if(!e.useScaleRecursively||(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)!=(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length))this.paramX.scalerecursively=
t=0;t&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:w(b.tickformatnumber,E.formatnumber),formatnumberscale:w(b.tickformatnumberscale,E.formatnumberscale),defaultnumberscale:J(b.tickdefaultnumberscale,E.defaultnumberscale),numberscaleunit:w(s,E.numberscaleunit.concat()),numberscalevalue:w(F,E.numberscalevalue.concat()),numberprefix:w(b.ticknumberprefix,E.numberprefix),numbersuffix:w(b.ticknumbersuffix,
E.numbersuffix),decimalprecision:parseInt(w(b.tickvaluedecimals,E.decimalprecision,"2")),forcedecimals:w(b.forcetickvaluedecimals,E.forcedecimals,0),decimalseparator:E.decimalseparator,thousandseparator:E.thousandseparator,thousandseparatorposition:E.thousandseparatorposition.concat(),indecimalseparator:E.indecimalseparator,inthousandseparator:E.inthousandseparator,scalerecursively:a,maxscalerecursion:u,scaleseparator:R};a&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));
this.timeConf={inputDateFormat:w(b.inputdateformat,b.dateformat,"mm/dd/yyyy"),outputDateFormat:w(b.outputdateformat,b.inputdateformat,b.dateformat,"mm/dd/yyyy"),days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],daySuffix:["","st","nd","rd","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","th","st","nd","rd","th","th","th",
"th","th","th","th","st"]}};P.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y;this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore;this.percentStrCacheStore&&delete this.percentStrCacheStore;this.paramLabels&&delete this.paramLabels;this.param1&&delete this.param1;this.param2&&delete this.param2;this.paramLabels2&&delete this.paramLabels2;this.csConf&&delete this.csConf;this.chartAPI&&delete this.chartAPI;this.baseConf&&delete this.baseConf;
this.timeConf&&delete this.timeConf;this.paramX&&delete this.paramX;this.paramScale&&delete this.paramScale},parseMLAxisConf:function(b,e){var p=this.baseConf,j=this.csConf,r=this.chartAPI,s=g(b.scalerecursively,p.scalerecursively),z=g(b.maxscalerecursion,p.maxscalerecursion),m=X(b.scaleseparator,p.scaleseparator),A,v,F,f,i,h,e=g(e,this.Y.length);X(b.numberscaleunit)&&(A=b.numberscaleunit.split(","));X(b.numberscalevalue)&&(v=b.numberscalevalue.split(","));z||(z=-1);if(X(b.thousandseparatorposition)){F=
b.thousandseparatorposition.split(",");f=F.length;for(h=I.thousandseparatorposition[0];f--;)(i=g(Y(F[f])))?h=i:i=h,F[f]=i}p={cacheStore:[],formatnumber:w(b.formatnumber,p.formatnumber),formatnumberscale:w(b.formatnumberscale,p.formatnumberscale),defaultnumberscale:J(b.defaultnumberscale,p.defaultnumberscale),numberscaleunit:w(A,p.numberscaleunit).concat(),numberscalevalue:w(v,p.numberscalevalue).concat(),numberprefix:J(b.numberprefix,p.numberprefix),numbersuffix:J(b.numbersuffix,p.numbersuffix),forcedecimals:w(b.forcedecimals,
p.forcedecimals),decimalprecision:parseInt(b.decimals==="auto"?j.decimalprecision:w(b.decimals,p.decimalprecision),10),decimalseparator:w(b.decimalseparator,p.decimalseparator),thousandseparator:w(b.thousandseparator,p.thousandseparator),thousandseparatorposition:w(F,p.thousandseparatorposition),indecimalseparator:J(b.indecimalseparator,p.indecimalseparator),inthousandseparator:J(b.inthousandseparator,p.inthousandseparator),scalerecursively:s,maxscalerecursion:z,scaleseparator:m};if(!r.useScaleRecursively||
(p.numberscalevalue&&p.numberscalevalue.length)!=(p.numberscaleunit&&p.numberscaleunit.length))p.scalerecursively=s=0;r={cacheStore:[],formatnumber:p.formatnumber,formatnumberscale:p.formatnumberscale,defaultnumberscale:p.defaultnumberscale,numberscaleunit:p.numberscaleunit.concat(),numberscalevalue:p.numberscalevalue.concat(),numberprefix:p.numberprefix,numbersuffix:p.numbersuffix,decimalprecision:parseInt(w(b.yaxisvaluedecimals,p.decimalprecision,2)),forcedecimals:w(b.forceyaxisvaluedecimals,p.forcedecimals),
decimalseparator:p.decimalseparator,thousandseparator:p.thousandseparator,thousandseparatorposition:p.thousandseparatorposition.concat(),indecimalseparator:p.indecimalseparator,inthousandseparator:p.inthousandseparator,scalerecursively:s,maxscalerecursion:z,scaleseparator:m};s&&(p.numberscalevalue.push(1),p.numberscaleunit.unshift(p.defaultnumberscale),r.numberscalevalue.push(1),r.numberscaleunit.unshift(r.defaultnumberscale));this.Y[e]={dataLabelConf:p,yAxisLabelConf:r}},percentValue:function(b){var e=
this.percentStrCacheStore[b];e===void 0&&(e=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,e=this.percentStrCacheStore[b]=ia(j(b,e,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%");return e},getCleanValue:function(b,o){var p=this.cleaneValueCacheStore[b];if(p===void 0){var p=b,j=this.baseConf;p+=e;j._REGinthousandseparator&&(p=p.replace(j._REGinthousandseparator,e));
j._REGindecimalseparator&&(p=p.replace(j._REGindecimalseparator,z));p=parseFloat(p);p=isFinite(p)?p:NaN;this.cleaneValueCacheStore[b]=p=isNaN(p)?null:o?Y(p):p}return p},dataLabels:function(b,e){var p=this.Y[e]||(e?this.Y[1]:this.Y[0]),j,p=p&&p.dataLabelConf||this.baseConf;j=p.cacheStore[b];j===void 0&&(j=p.cacheStore[b]=ha(b,p));return j},yAxis:function(b,e){var p=this.Y[e]||(e?this.Y[1]:this.Y[0]),j,p=p&&p.yAxisLabelConf||this.baseConf;j=p.cacheStore[b];j===void 0&&(j=p.cacheStore[b]=ha(b,p));return j},
xAxis:function(b){var e=this.paramX.cacheStore[b];e===void 0&&(e=this.paramX.cacheStore[b]=ha(b,this.paramX));return e},sYAxis:function(b){var e=this.Y[1],p,e=e&&e.yAxisLabelConf||this.baseConf;p=e.cacheStore[b];p===void 0&&(p=e.cacheStore[b]=ha(b,e));return p},scale:function(b){var e=this.paramScale.cacheStore[b];e===void 0&&(e=this.paramScale.cacheStore[b]=ha(b,this.paramScale));return e},getCleanTime:function(b){var e;this.timeConf.inputDateFormat&&Date.parseExact&&(e=Date.parseExact(b,this.timeConf.inputDateFormat));
return e&&e.getTime()},getDateValue:function(b){var e,p,j,b=/^dd/.test(this.timeConf.inputDateFormat)&&b&&b.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||b;e=new Date(b);p=e.getTime();!p&&b&&/\:/.test(b)&&(b=b.split(":"),p=g(b[0],0),j=g(b[1],0),b=g(b[2],0),p=p>23?p===24&&j===0&&b===0?p:23:p,j=j>59?59:j,b=b>59?59:b,e=new Date,e.setHours(p),e.setMinutes(j),e.setSeconds(b),p=e.getTime());return{ms:p,date:e}},getFormatedDate:function(b,j){var p=typeof b==="object"&&b||new Date(b),g=this.timeConf,
s=w(j,g.outputDateFormat),z=p.getFullYear(),m=p.getMonth(),A=p.getDate(),I=p.getDay(),v=p.getMinutes(),F=p.getSeconds(),p=p.getHours(),v=v>9?e+v:r+v,F=F>9?e+F:r+F,p=p>9?e+p:r+p;s.match(/dnl/)&&(s=s.replace(/dnl/ig,g.days[I]));s.match(/dns/)&&(s=s.replace(/dns/ig,g.days[I]&&g.days[I].substr(0,3)));s.match(/dd/)&&(s=s.replace(/dd/ig,A));s.match(/mnl/)&&(s=s.replace(/mnl/ig,g.months[m]));s.match(/mns/)&&(s=s.replace(/mns/ig,g.months[m]&&g.months[m].substr(0,3)));s.match(/mm/)&&(s=s.replace(/mm/ig,m+
1));s.match(/yyyy/)&&(s=s.replace(/yyyy/ig,z));s.match(/yy/)&&(s=s.replace(/yy/ig,(z%1E3%100+"").replace(/^(\d)$/,"0$1")));s.match(/hh12/)&&(s=s.replace(/hh12/ig,p%12||12));s.match(/hh/)&&(s=s.replace(/hh/ig,p));s.match(/mn/)&&(s=s.replace(/mn/ig,v));s.match(/ss/)&&(s=s.replace(/ss/ig,F));s.match(/ampm/)&&(s=s.replace(/ampm/ig,p<12?"AM":"PM"));s.match(/ds/)&&(s=s.replace(/ds/ig,g.daySuffix[A]));return s}};P.prototype.constructor=P;var ha=function(b,o){if(b!==null){var b=Number(b),p=b+e,r;r=o.formatnumberscale==
1?o.defaultnumberscale:e;var m;m=(m=p.split(z)[1])?m.length:o.forcedecimals?"2":e;if(o.formatnumberscale==1){var A,p=b;r=o.numberscalevalue;A=o.numberscaleunit;var I={},P=o.defaultnumberscale,W=0,v,F=[],f=[];if(o.scalerecursively){for(W=0;W<r.length;W++)if(v=g(r[W])||1E3,Math.abs(Number(p))>=v&&W<r.length-1)P=p%v,p=(p-P)/v,P!=0&&(F.push(P),f.push(A[W]));else{F.push(p);f.push(A[W]);break}F.reverse();f.reverse();I.value=F;I.scale=f}else{if(r.length===A.length)for(W=0;W<r.length;W++)if((v=g(r[W])||1E3)&&
Math.abs(Number(p))>=v)P=A[W]||e,p=Number(p)/v;else break;I.value=p;I.scale=P}A=I;b=p=A.value;r=A.scale}if(o.scalerecursively&&o.formatnumberscale!=0){r=A.value;A=A.scale;I=o.maxscalerecursion==-1?r.length:Math.min(r.length,o.maxscalerecursion);if(o.formatnumber==1){p="";for(F=0;F<I;F++)W=F==0?r[F]:Math.abs(r[F]),v=W+e,F==I-1&&(v=j(W,w(o.decimalprecision,m),o.forcedecimals)),p=p+ia(v,o.decimalseparator,o.thousandseparator,o.thousandseparatorposition)+A[F]+(F<I-1?o.scaleseparator:"")}else{p="";for(F=
0;F<I;F++)p=p+(F==0?r[F]:Math.abs(r[F])+e)+A[F]+(F<I-1?o.scaleseparator:"")}p=(o.numberprefix||e)+p+(o.numbersuffix||e);delete r;delete A}else o.formatnumber==1&&(p=j(b,w(o.decimalprecision,m),o.forcedecimals),p=ia(p,o.decimalseparator,o.thousandseparator,o.thousandseparatorposition)),p=(o.numberprefix||e)+p+r+(o.numbersuffix||e);return p}};return P}()}]);
FusionCharts(["private","modules.renderer.js-raphael",function(){var j=this.hcLib,g="",m,X=window.Raphael,w,J=window.parent!==window,Y=navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1;(function(b){var g=/[\.\/]/,e=function(){},r=function(b,e){return b-e},z,m,w={n:{}},s=j.eve=function(b,e){var j=m,g=Array.prototype.slice.call(arguments,2),A=s.listeners(b),w=0,o,p=[],E={},Z=[],L=z;z=b;for(var G=m=0,X=A.length;G<X;G++)"zIndex"in A[G]&&(p.push(A[G].zIndex),A[G].zIndex<0&&(E[A[G].zIndex]=A[G]));
for(p.sort(r);p[w]<0;)if(o=E[p[w++]],Z.push(o.apply(e,g)),m)return m=j,Z;for(G=0;G<X;G++)if(o=A[G],"zIndex"in o)if(o.zIndex==p[w]){Z.push(o.apply(e,g));if(m)break;do if(w++,(o=E[p[w]])&&Z.push(o.apply(e,g)),m)break;while(o)}else E[o.zIndex]=o;else if(Z.push(o.apply(e,g)),m)break;m=j;z=L;return Z.length?Z:null};s.listeners=function(b){var b=b.split(g),e=w,j,s,r,m,o,p,z,V=[e],L=[];r=0;for(m=b.length;r<m;r++){z=[];o=0;for(p=V.length;o<p;o++){e=V[o].n;j=[e[b[r]],e["*"]];for(s=2;s--;)if(e=j[s])z.push(e),
L=L.concat(e.f||[])}V=z}return L};s.on=function(b,j){for(var s=b.split(g),r=w,m=0,z=s.length;m<z;m++)r=r.n,!r[s[m]]&&(r[s[m]]={n:{}}),r=r[s[m]];r.f=r.f||[];m=0;for(z=r.f.length;m<z;m++)if(r.f[m]==j)return e;r.f.push(j);return function(b){if(+b==+b)j.zIndex=+b}};s.stop=function(){m=1};s.nt=function(b){if(b)return RegExp("(?:\\.|\\/|^)"+b+"(?:\\.|\\/|$)").test(z);return z};s.off=s.unbind=function(b,e){var j=b.split(g),s,r,m,o,p,z,V=[w];o=0;for(p=j.length;o<p;o++)for(z=0;z<V.length;z+=m.length-2){m=
[z,1];s=V[z].n;if(j[o]!="*")s[j[o]]&&m.push(s[j[o]]);else for(r in s)s.hasOwnProperty(r)&&m.push(s[r]);V.splice.apply(V,m)}o=0;for(p=V.length;o<p;o++)for(s=V[o];s.n;){if(e){if(s.f){z=0;for(j=s.f.length;z<j;z++)if(s.f[z]==e){s.f.splice(z,1);break}!s.f.length&&delete s.f}for(r in s.n)if(s.n.hasOwnProperty(r)&&s.n[r].f){m=s.n[r].f;z=0;for(j=m.length;z<j;z++)if(m[z]==e){m.splice(z,1);break}!m.length&&delete s.n[r].f}}else for(r in delete s.f,s.n)s.n.hasOwnProperty(r)&&s.n[r].f&&delete s.n[r].f;s=s.n}};
s.once=function(b,e){var j=function(){var r=e.apply(this,arguments);s.unbind(b,j);return r};return s.on(b,j)};s.version="0.3.4";s.toString=function(){return"You are running Eve 0.3.4"};typeof module!="undefined"&&module.exports?module.exports=s:typeof define!="undefined"?define("eve",[],function(){return s}):b.eve=s})(j);m=j.eve;(function(){function b(a){if(b._url)b._url=window.location.href.replace(/#.*?$/,g);if(b.is(a,"function"))return H?a():m.on("raphael.DOMload",a);else if(b.is(a,ua))return b._engine.create[v](b,
a.splice(0,3+b.is(a[0],ta))).add(a);else{var c=Array.prototype.slice.call(arguments,0);if(b.is(c[c.length-1],"function")){var d=c.pop();return H?d.call(b._engine.create[v](b,c)):m.on("raphael.DOMload",function(){d.call(b._engine.create[v](b,c))})}else return b._engine.create[v](b,arguments)}}function j(b){if(Object(b)!==b)return b;var a=new b.constructor,c;for(c in b)b[V](c)&&(a[c]=j(b[c]));return a}function e(){return this.hex}function r(b,a){for(var c=[],d=0,f=b.length;f-2*!a>d;d+=2){var e=[{x:+b[d-
2],y:+b[d-1]},{x:+b[d],y:+b[d+1]},{x:+b[d+2],y:+b[d+3]},{x:+b[d+4],y:+b[d+5]}];a?d?f-4==d?e[3]={x:+b[0],y:+b[1]}:f-2==d&&(e[2]={x:+b[0],y:+b[1]},e[3]={x:+b[2],y:+b[3]}):e[0]={x:+b[f-2],y:+b[f-1]}:f-4==d?e[3]=e[2]:d||(e[0]={x:+b[d],y:+b[d+1]});c.push(["C",(-e[0].x+6*e[1].x+e[2].x)/6,(-e[0].y+6*e[1].y+e[2].y)/6,(e[1].x+6*e[2].x-e[3].x)/6,(e[1].y+6*e[2].y-e[3].y)/6,e[2].x,e[2].y])}return c}function z(b,a,c,d,e,f,q,D,y){y==null&&(y=1);for(var y=(y>1?1:y<0?0:y)/2,k=[-0.1252,0.1252,-0.3678,0.3678,-0.5873,
0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],ca=[0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],U=0,t=0;t<12;t++){var l=y*k[t]+y,u=l*(l*(-3*b+9*c-9*e+3*q)+6*b-12*c+6*e)-3*b+3*c,l=l*(l*(-3*a+9*d-9*f+3*D)+6*a-12*d+6*f)-3*a+3*d;U+=ca[t]*sa(u*u+l*l)}return y*U}function X(b,a,c,d,e,f,q,D,y){if(!(y<0||z(b,a,c,d,e,f,q,D)<y)){var k=0.5,ca=1-k,U;for(U=z(b,a,c,d,e,f,q,D,ca);ba(U-y)>0.01;)k/=2,ca+=(U<y?1:-1)*k,U=z(b,a,c,d,e,f,q,D,ca);return ca}}function Z(a,c,d){for(var a=
b._path2curve(a),c=b._path2curve(c),e,f,q,D,y,k,ca,U,t,l,n=d?0:[],ga=0,$=a.length;ga<$;ga++)if(t=a[ga],t[0]=="M")e=y=t[1],f=k=t[2];else{t[0]=="C"?(t=[e,f].concat(t.slice(1)),e=t[6],f=t[7]):(t=[e,f,e,f,y,k,y,k],e=y,f=k);for(var h=0,ib=c.length;h<ib;h++)if(l=c[h],l[0]=="M")q=ca=l[1],D=U=l[2];else{l[0]=="C"?(l=[q,D].concat(l.slice(1)),q=l[6],D=l[7]):(l=[q,D,q,D,ca,U,ca,U],q=ca,D=U);var i;var x=t,Ga=l;i=d;var Da=b.bezierBBox(x),qa=b.bezierBBox(Ga);if(b.isBBoxIntersect(Da,qa)){for(var Da=z.apply(0,x),
qa=z.apply(0,Ga),Da=~~(Da/5),qa=~~(qa/5),Ta=[],B=[],C={},Q=i?0:[],j=0;j<Da+1;j++){var $a=b.findDotsAtSegment.apply(b,x.concat(j/Da));Ta.push({x:$a.x,y:$a.y,t:j/Da})}for(j=0;j<qa+1;j++)$a=b.findDotsAtSegment.apply(b,Ga.concat(j/qa)),B.push({x:$a.x,y:$a.y,t:j/qa});for(j=0;j<Da;j++)for(x=0;x<qa;x++){var Za=Ta[j],p=Ta[j+1],Ga=B[x],$a=B[x+1],s=ba(p.x-Za.x)<0.001?"y":"x",r=ba($a.x-Ga.x)<0.001?"y":"x",o;b:{o=Za.x;var g=Za.y,N=p.x,v=p.y,m=Ga.x,Ua=Ga.y,O=$a.x,ab=$a.y;if(!(u(o,N)<M(m,O)||M(o,N)>u(m,O)||u(g,
v)<M(Ua,ab)||M(g,v)>u(Ua,ab))){var va=(o-N)*(Ua-ab)-(g-v)*(m-O);if(va){var aa=((o*v-g*N)*(m-O)-(o-N)*(m*ab-Ua*O))/va,va=((o*v-g*N)*(Ua-ab)-(g-v)*(m*ab-Ua*O))/va,A=+aa.toFixed(2),pa=+va.toFixed(2);if(!(A<+M(o,N).toFixed(2)||A>+u(o,N).toFixed(2)||A<+M(m,O).toFixed(2)||A>+u(m,O).toFixed(2)||pa<+M(g,v).toFixed(2)||pa>+u(g,v).toFixed(2)||pa<+M(Ua,ab).toFixed(2)||pa>+u(Ua,ab).toFixed(2))){o={x:aa,y:va};break b}}}o=void 0}o&&C[o.x.toFixed(4)]!=o.y.toFixed(4)&&(C[o.x.toFixed(4)]=o.y.toFixed(4),Za=Za.t+ba((o[s]-
Za[s])/(p[s]-Za[s]))*(p.t-Za.t),Ga=Ga.t+ba((o[r]-Ga[r])/($a[r]-Ga[r]))*($a.t-Ga.t),Za>=0&&Za<=1&&Ga>=0&&Ga<=1&&(i?Q++:Q.push({x:o.x,y:o.y,t1:Za,t2:Ga})))}i=Q}else i=i?0:[];if(d)n+=i;else{Da=0;for(qa=i.length;Da<qa;Da++)i[Da].segment1=ga,i[Da].segment2=h,i[Da].bez1=t,i[Da].bez2=l;n=n.concat(i)}}}return n}function s(b,a,c,d,e,f){b!=null?(this.a=+b,this.b=+a,this.c=+c,this.d=+d,this.e=+e,this.f=+f):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function ia(){return this.x+i+this.y+i+this.width+
" \u00d7 "+this.height}function I(b,a,c,d,e,f){function q(b,a){var T,c,d,e;d=b;for(c=0;c<8;c++){e=((k*d+y)*d+D)*d-b;if(ba(e)<a)return d;T=(3*k*d+2*y)*d+D;if(ba(T)<1.0E-6)break;d-=e/T}T=0;c=1;d=b;if(d<T)return T;if(d>c)return c;for(;T<c;){e=((k*d+y)*d+D)*d;if(ba(e-b)<a)break;b>e?T=d:c=d;d=(c-T)/2+T}return d}var D=3*a,y=3*(d-a)-D,k=1-D-y,ca=3*c,U=3*(e-c)-ca,t=1-ca-U;return function(b,a){var T=q(b,a);return((t*T+U)*T+ca)*T}(b,1/(200*f))}function K(b,a){var c=[],d={};this.ms=a;this.times=1;if(b){for(var e in b)b[V](e)&&
(d[ka(e)]=b[e],c.push(ka(e)));c.sort(x)}this.anim=d;this.top=c[c.length-1];this.percents=c}function P(a,d,e,f,q,D){var e=ka(e),y,k,ca,U,t,l,u=a.ms,n={},i={},Ga={};if(f){l=0;for(Da=za.length;l<Da;l++){var x=za[l];if(x.el.id==d.id&&x.anim==a){x.percent!=e?(za.splice(l,1),ca=1):k=x;d.attr(x.totalOrigin);break}}}else f=+i;l=0;for(var Da=a.percents.length;l<Da;l++)if(a.percents[l]==e||a.percents[l]>f*a.top){e=a.percents[l];t=a.percents[l-1]||0;u=u/a.top*(e-t);U=a.percents[l+1];y=a.anim[e];break}else f&&
d.attr(a.anim[a.percents[l]]);if(y){if(k)k.initstatus=f,k.start=new Date-k.ms*f;else{for(var qa in y)if(y[V](qa)&&(Oa[V](qa)||d.ca[qa]))switch(n[qa]=d.attr(qa),n[qa]==null&&(n[qa]=cb[qa]),i[qa]=y[qa],Oa[qa]){case ta:Ga[qa]=(i[qa]-n[qa])/u;break;case "colour":n[qa]=b.getRGB(n[qa]);l=b.getRGB(i[qa]);Ga[qa]={r:(l.r-n[qa].r)/u,g:(l.g-n[qa].g)/u,b:(l.b-n[qa].b)/u};break;case "path":l=ga(n[qa],i[qa]);x=l[1];n[qa]=l[0];Ga[qa]=[];l=0;for(Da=n[qa].length;l<Da;l++){Ga[qa][l]=[0];for(var Ta=1,M=n[qa][l].length;Ta<
M;Ta++)Ga[qa][l][Ta]=(x[l][Ta]-n[qa][l][Ta])/u}break;case "transform":l=d._;if(Da=$(l[qa],i[qa])){n[qa]=Da.from;i[qa]=Da.to;Ga[qa]=[];Ga[qa].real=!0;l=0;for(Da=n[qa].length;l<Da;l++){Ga[qa][l]=[n[qa][l][0]];Ta=1;for(M=n[qa][l].length;Ta<M;Ta++)Ga[qa][l][Ta]=(i[qa][l][Ta]-n[qa][l][Ta])/u}}else Da=d.matrix||new s,l={_:{transform:l.transform},getBBox:function(){return d.getBBox(1)}},n[qa]=[Da.a,Da.b,Da.c,Da.d,Da.e,Da.f],ib(l,i[qa]),i[qa]=l._.transform,Ga[qa]=[(l.matrix.a-Da.a)/u,(l.matrix.b-Da.b)/u,
(l.matrix.c-Da.c)/u,(l.matrix.d-Da.d)/u,(l.matrix.e-Da.e)/u,(l.matrix.f-Da.f)/u];break;case "csv":Da=h(y[qa])[c](o);x=h(n[qa])[c](o);if(qa=="clip-rect"){n[qa]=x;Ga[qa]=[];for(l=x.length;l--;)Ga[qa][l]=(Da[l]-n[qa][l])/u}i[qa]=Da;break;default:Da=[][F](y[qa]);x=[][F](n[qa]);Ga[qa]=[];for(l=d.ca[qa].length;l--;)Ga[qa][l]=((Da[l]||0)-(x[l]||0))/u}l=y.easing;qa=b.easing_formulas[l];if(!qa)if((qa=h(l).match(Xa))&&qa.length==5){var B=qa;qa=function(b){return I(b,+B[1],+B[2],+B[3],+B[4],u)}}else qa=C;l=
y.start||a.start||+new Date;x={anim:a,percent:e,timestamp:l,start:l+(a.del||0),status:0,initstatus:f||0,stop:!1,ms:u,easing:qa,from:n,diff:Ga,to:i,el:d,callback:y.callback,prev:t,next:U,repeat:D||a.times,origin:d.attr(),totalOrigin:q};za.push(x);if(f&&!k&&!ca&&(x.stop=!0,x.start=new Date-u*f,za.length==1))return jb();if(ca)x.start=new Date-x.ms*f;za.length==1&&nb(jb)}m("raphael.anim.start."+d.id,d,a)}}function ha(b){for(var a=0;a<za.length;a++)za[a].el.paper==b&&za.splice(a--,1)}w=b;b.version="2.1.0";
b.eve=m;var H,o=/[, ]+/,p={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},E=/\{(\d+)\}/g,V="hasOwnProperty",L={doc:document,win:window},G=function(){};b.ca=G.prototype;var S={was:Object.prototype[V].call(L.win,"Raphael"),is:L.win.Raphael},W=function(){this.ca=this.customAttributes=new G;this._CustomAttributes=function(){};this._CustomAttributes.prototype=this.ca},v="apply",F="concat",f=b._supportsTouch="createTouch"in L.doc,i=" ",h=String,c="split",d="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[c](i),
a=b._touchMap={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},k=h.prototype.toLowerCase,t=Math,u=t.max,M=t.min,ba=t.abs,R=t.pow,Ha=t.cos,ya=t.sin,sa=t.sqrt,fa=t.PI,Ka=fa/180,ta="number",ua="array",Fa=Object.prototype.toString;b._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var La=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,
eb={NaN:1,Infinity:1,"-Infinity":1},Xa=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Ya=t.round,ka=parseFloat,Wa=parseInt,Ma=h.prototype.toUpperCase,cb=b._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9","clip-path":"",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"about:blank","letter-spacing":0,"line-height":12,
"vertical-align":"middle",opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,"shape-rendering":"default",target:"_blank","text-anchor":"middle",visibility:"",title:"",transform:"",rotation:0,width:0,x:0,y:0},Oa=b._availableAnimAttrs={blur:ta,"clip-rect":"csv","clip-path":"path",cx:ta,cy:ta,fill:"colour","fill-opacity":ta,"font-size":ta,height:ta,opacity:ta,path:"path",
r:ta,rx:ta,ry:ta,stroke:"colour","stroke-opacity":ta,"stroke-width":ta,transform:"transform",width:ta,x:ta,y:ta},Ia=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,bb={hs:1,rg:1},fb=/,?([achlmqrstvxz]),?/gi,gb=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,
Ja=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,Qa=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/ig;
b._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/;var l={},x=function(b,a){return ka(b)-ka(a)},n=function(){},C=function(b){return b},Q=b._rectPath=function(b,a,c,d,e){if(e)return[["M",b+e,a],["l",c-e*2,0],["a",e,e,0,0,1,e,e],["l",0,d-e*2],["a",e,e,0,0,1,-e,e],["l",e*2-c,0],["a",e,e,0,0,1,-e,-e],["l",0,e*2-d],["a",e,e,0,0,1,e,-e],["z"]];return[["M",b,a],["l",c,0],["l",0,d],["l",-c,0],["z"]]},va=function(b,a,c,d){d==null&&(d=c);return[["M",b,a],["m",0,-d],["a",c,d,0,1,1,0,2*d],["a",c,d,0,1,1,0,-2*d],["z"]]},
O=b._getPath={group:function(){return!1},path:function(b){return b.attr("path")},circle:function(b){b=b.attrs;return va(b.cx,b.cy,b.r)},ellipse:function(b){b=b.attrs;return va(b.cx,b.cy,b.rx,b.ry)},rect:function(b){b=b.attrs;return Q(b.x,b.y,b.width,b.height,b.r)},image:function(b){b=b.attrs;return Q(b.x,b.y,b.width,b.height)},text:function(b){b=b._getBBox();return Q(b.x,b.y,b.width,b.height)}},pa=b.mapPath=function(b,a){if(!a)return b;var c,d,e,f,q,D,y,b=ga(b);e=0;for(q=b.length;e<q;e++){y=b[e];
f=1;for(D=y.length;f<D;f+=2)c=a.x(y[f],y[f+1]),d=a.y(y[f],y[f+1]),y[f]=c,y[f+1]=d}return b};b.pick=function(){var b,a,c;a=0;for(c=arguments.length;a<c;a+=1)if((b=arguments[a])||!(b!==!1&&b!==0))return b};b._g=L;b.type=L.win.ENABLE_RED_CANVAS&&(L.win.CanvasRenderingContext2D||L.doc.createElement("canvas").getContext)?"CANVAS":L.win.SVGAngle||L.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if(b.type=="VML"){var B=L.doc.createElement("div");B.innerHTML=
'<v:shape adj="1"/>';B=B.firstChild;B.style.behavior="url(#default#VML)";if(!(B&&typeof B.adj=="object"))return b.type="";B=null}b.svg=!((b.vml=b.type=="VML")||(b.canvas=b.type=="CANVAS"));b._Paper=W;b.fn=W=W.prototype=b.prototype;b._id=0;b._oid=0;b.is=function(b,a){a=k.call(a);if(a=="finite")return!eb[V](+b);if(a=="array")return b instanceof Array;if(a==="object"&&(b===void 0||b===null))return!1;return a=="null"&&b===null||a==typeof b&&b!==null||a=="object"&&b===Object(b)||a=="array"&&Array.isArray&&
Array.isArray(b)||Fa.call(b).slice(8,-1).toLowerCase()==a};b.angle=function(a,c,d,e,f,q){if(f==null){a-=d;c-=e;if(!a&&!c)return 0;return(t.atan2(-c,-a)*180/fa+540)%360}else return b.angle(a,c,f,q)-b.angle(d,e,f,q)};b.rad=function(b){return b%360*Ka};b.deg=function(b){return b*180/fa%360};b.snapTo=function(a,c,d){d=b.is(d,"finite")?d:10;if(b.is(a,ua))for(var e=a.length;e--;){if(ba(a[e]-c)<=d)return a[e]}else{a=+a;e=c%a;if(e<d)return c-e;if(e>a-d)return c-e+a}return c};b.createUUID=function(b,a){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(b,
a).toUpperCase()}}(/[xy]/g,function(b){var a=t.random()*16|0;return(b=="x"?a:a&3|8).toString(16)});b.setWindow=function(a){m("raphael.setWindow",b,L.win,a);L.win=a;L.doc=L.win.document;b._engine.initWin&&b._engine.initWin(L.win)};var na=function(a){if(b.vml){var c=/^\s+|\s+$/g,d;try{var e=new ActiveXObject("htmlfile");e.write("<body>");e.close();d=e.body}catch(f){d=createPopup().document.body}var q=d.createTextRange();na=wa(function(b){try{d.style.color=h(b).replace(c,"");var a=q.queryCommandValue("ForeColor");
return"#"+("000000"+((a&255)<<16|a&65280|(a&16711680)>>>16).toString(16)).slice(-6)}catch(T){return"none"}})}else{var D=L.doc.createElement("i");D.title="Rapha\u00ebl Colour Picker";D.style.display="none";L.doc.body.appendChild(D);na=wa(function(b){D.style.color=b;return L.doc.defaultView.getComputedStyle(D,"").getPropertyValue("color")})}return na(a)},xa=function(){return"hsb("+[this.h,this.s,this.b]+")"},ea=function(){return"hsl("+[this.h,this.s,this.l]+")"},da=function(){return this.hex},la=function(a,
c,d){if(c==null&&b.is(a,"object")&&"r"in a&&"g"in a&&"b"in a)d=a.b,c=a.g,a=a.r;if(c==null&&b.is(a,"string"))d=b.getRGB(a),a=d.r,c=d.g,d=d.b;if(a>1||c>1||d>1)a/=255,c/=255,d/=255;return[a,c,d]},ma=function(a,c,d,e){a*=255;c*=255;d*=255;a={r:a,g:c,b:d,hex:b.rgb(a,c,d),toString:da};b.is(e,"finite")&&(a.opacity=e);return a};b.color=function(a){var c;b.is(a,"object")&&"h"in a&&"s"in a&&"b"in a?(c=b.hsb2rgb(a),a.r=c.r,a.g=c.g,a.b=c.b,a.hex=c.hex):b.is(a,"object")&&"h"in a&&"s"in a&&"l"in a?(c=b.hsl2rgb(a),
a.r=c.r,a.g=c.g,a.b=c.b,a.hex=c.hex):(b.is(a,"string")&&(a=b.getRGB(a)),b.is(a,"object")&&"r"in a&&"g"in a&&"b"in a?(c=b.rgb2hsl(a),a.h=c.h,a.s=c.s,a.l=c.l,c=b.rgb2hsb(a),a.v=c.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1));a.toString=da;return a};b.hsb2rgb=function(a,b,c,d){if(this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a)c=a.b,b=a.s,a=a.h,d=a.o;a*=360;var e,f,D,a=a%360/60;D=c*b;b=D*(1-ba(a%2-1));c=e=f=c-D;a=~~a;c+=[D,b,0,0,b,D][a];e+=[b,D,D,b,0,0][a];f+=[0,0,b,D,D,b][a];return ma(c,e,f,d)};
b.hsl2rgb=function(a,b,c,d){if(this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a)c=a.l,b=a.s,a=a.h;if(a>1||b>1||c>1)a/=360,b/=100,c/=100;a*=360;var e,f,D,a=a%360/60;D=2*b*(c<0.5?c:1-c);b=D*(1-ba(a%2-1));c=e=f=c-D/2;a=~~a;c+=[D,b,0,0,b,D][a];e+=[b,D,D,b,0,0][a];f+=[0,0,b,D,D,b][a];return ma(c,e,f,d)};b.rgb2hsb=function(a,b,c){var c=la(a,b,c),a=c[0],b=c[1],c=c[2],d,e;d=u(a,b,c);e=d-M(a,b,c);return{h:((e==0?0:d==a?(b-c)/e:d==b?(c-a)/e+2:(a-b)/e+4)+360)%6*60/360,s:e==0?0:e/d,b:d,toString:xa}};b.rgb2hsl=
function(a,b,c){var c=la(a,b,c),a=c[0],b=c[1],c=c[2],d,e,f;e=u(a,b,c);d=M(a,b,c);f=e-d;d=(e+d)/2;return{h:((f==0?0:e==a?(b-c)/f:e==b?(c-a)/f+2:(a-b)/f+4)+360)%6*60/360,s:f==0?0:d<0.5?f/(2*d):f/(2-2*d),l:d,toString:ea}};b._path2string=function(){return this.join(",").replace(fb,"$1")};var wa=b._cacher=function(a,b,c){function d(){var e=Array.prototype.slice.call(arguments,0),f=e.join("\u2400"),D=d.cache=d.cache||{},q=d.count=d.count||[];if(D[V](f)){a:for(var e=q,q=f,y=0,k=e.length;y<k;y++)if(e[y]===
q){e.push(e.splice(y,1)[0]);break a}return c?c(D[f]):D[f]}q.length>=1E3&&delete D[q.shift()];q.push(f);D[f]=a[v](b,e);return c?c(D[f]):D[f]}return d};b._preload=function(a,b){var c=L.doc.createElement("img");c.style.cssText="position:absolute;left:-9999em;top:-9999em";c.onload=function(){b.call(this);this.onload=null;L.doc.body.removeChild(this)};c.onerror=function(){L.doc.body.removeChild(this)};L.doc.body.appendChild(c);c.src=a};b.getRGB=wa(function(a){var d;a&&b.is(a,"object")&&"opacity"in a&&
(d=a.opacity);if(!a||(a=h(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:e};if(a=="none")return{r:-1,g:-1,b:-1,hex:"none",toString:e};!(bb[V](a.toLowerCase().substring(0,2))||a.charAt()=="#")&&(a=na(a));var f,D,q,y;if(a=a.match(La)){a[2]&&(q=Wa(a[2].substring(5),16),D=Wa(a[2].substring(3,5),16),f=Wa(a[2].substring(1,3),16));a[3]&&(q=Wa((y=a[3].charAt(3))+y,16),D=Wa((y=a[3].charAt(2))+y,16),f=Wa((y=a[3].charAt(1))+y,16));a[4]&&(y=a[4][c](Ia),f=ka(y[0]),y[0].slice(-1)=="%"&&(f*=
2.55),D=ka(y[1]),y[1].slice(-1)=="%"&&(D*=2.55),q=ka(y[2]),y[2].slice(-1)=="%"&&(q*=2.55),a[1].toLowerCase().slice(0,4)=="rgba"&&(d=ka(y[3])),y[3]&&y[3].slice(-1)=="%"&&(d/=100));if(a[5])return y=a[5][c](Ia),f=ka(y[0]),y[0].slice(-1)=="%"&&(f*=2.55),D=ka(y[1]),y[1].slice(-1)=="%"&&(D*=2.55),q=ka(y[2]),y[2].slice(-1)=="%"&&(q*=2.55),(y[0].slice(-3)=="deg"||y[0].slice(-1)=="\u00b0")&&(f/=360),a[1].toLowerCase().slice(0,4)=="hsba"&&(d=ka(y[3])),y[3]&&y[3].slice(-1)=="%"&&(d/=100),b.hsb2rgb(f,D,q,d);
if(a[6])return y=a[6][c](Ia),f=ka(y[0]),y[0].slice(-1)=="%"&&(f*=2.55),D=ka(y[1]),y[1].slice(-1)=="%"&&(D*=2.55),q=ka(y[2]),y[2].slice(-1)=="%"&&(q*=2.55),(y[0].slice(-3)=="deg"||y[0].slice(-1)=="\u00b0")&&(f/=360),a[1].toLowerCase().slice(0,4)=="hsla"&&(d=ka(y[3])),y[3]&&y[3].slice(-1)=="%"&&(d/=100),b.hsl2rgb(f,D,q,d);a={r:f,g:D,b:q,toString:e};a.hex="#"+(16777216|q|D<<8|f<<16).toString(16).slice(1);b.is(d,"finite")&&(a.opacity=d);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:e}},b);
b.tintshade=wa(function(a,c){var d=b.getRGB(a),f;f=255;c<0&&(c*=-1,f=0);c>1&&(c=1);f=c===0?d:{r:f-(f-d.r)*c,g:f-(f-d.g)*c,b:f-(f-d.b)*c,toString:e};f.hex=b.rgb(f.r,f.g,f.b);d.error&&(f.error=d.error);"opacity"in d?(f.rgba="rgba("+[f.r,f.g,f.b,d.opacity].join(",")+")",f.opacity=d.opacity):f.rgba="rgb("+[f.r,f.g,f.b].join(",")+")";return f},b);b.hsb=wa(function(a,c,d){return b.hsb2rgb(a,c,d).hex});b.hsl=wa(function(a,c,d){return b.hsl2rgb(a,c,d).hex});b.rgb=wa(function(a,b,c){return"#"+(16777216|c|
b<<8|a<<16).toString(16).slice(1)});b.getColor=function(a){var a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||0.75},b=this.hsb2rgb(a.h,a.s,a.b);a.h+=0.075;if(a.h>1)a.h=0,a.s-=0.2,a.s<=0&&(this.getColor.start={h:0,s:1,b:a.b});return b.hex};b.getColor.reset=function(){delete this.start};b.parsePathString=function(a){if(!a)return null;var c=Aa(a);if(c.arr)return ra(c.arr);var d={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},e=[];b.is(a,ua)&&b.is(a[0],ua)&&(e=ra(a));e.length||h(a).replace(gb,
function(a,b,c){var f=[],a=b.toLowerCase();c.replace(Qa,function(a,b){b&&f.push(+b)});a=="m"&&f.length>2&&(e.push([b][F](f.splice(0,2))),a="l",b=b=="m"?"l":"L");if(a=="r")e.push([b][F](f));else for(;f.length>=d[a];)if(e.push([b][F](f.splice(0,d[a]))),!d[a])break});e.toString=b._path2string;c.arr=ra(e);return e};b.parseTransformString=wa(function(a){if(!a)return null;var c=[];b.is(a,ua)&&b.is(a[0],ua)&&(c=ra(a));c.length||h(a).replace(Ja,function(a,b,d){var e=[];k.call(b);d.replace(Qa,function(a,b){b&&
e.push(+b)});c.push([b][F](e))});c.toString=b._path2string;return c});var Aa=function(a){var b=Aa.ps=Aa.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100};setTimeout(function(){for(var c in b)b[V](c)&&c!=a&&(b[c].sleep--,!b[c].sleep&&delete b[c])});return b[a]};b.findDotsAtSegment=function(a,b,c,d,e,f,D,q,y){var k=1-y,ca=R(k,3),U=R(k,2),l=y*y,u=l*y,n=ca*a+U*3*y*c+k*3*y*y*e+u*D,ca=ca*b+U*3*y*d+k*3*y*y*f+u*q,U=a+2*y*(c-a)+l*(e-2*c+a),u=b+2*y*(d-b)+l*(f-2*d+b),ga=c+2*y*(e-c)+l*(D-2*e+c),l=d+2*y*(f-d)+l*(q-
2*f+d),a=k*a+y*c,b=k*b+y*d,e=k*e+y*D,f=k*f+y*q,q=90-t.atan2(U-ga,u-l)*180/fa;(U>ga||u<l)&&(q+=180);return{x:n,y:ca,m:{x:U,y:u},n:{x:ga,y:l},start:{x:a,y:b},end:{x:e,y:f},alpha:q}};b.bezierBBox=function(a,c,d,e,f,D,y,k){b.is(a,"array")||(a=[a,c,d,e,f,D,y,k]);a=q.apply(null,a);return{x:a.min.x,y:a.min.y,x2:a.max.x,y2:a.max.y,width:a.max.x-a.min.x,height:a.max.y-a.min.y}};b.isPointInsideBBox=function(a,b,c){return b>=a.x&&b<=a.x2&&c>=a.y&&c<=a.y2};b.isBBoxIntersect=function(a,c){var d=b.isPointInsideBBox;
return d(c,a.x,a.y)||d(c,a.x2,a.y)||d(c,a.x,a.y2)||d(c,a.x2,a.y2)||d(a,c.x,c.y)||d(a,c.x2,c.y)||d(a,c.x,c.y2)||d(a,c.x2,c.y2)||(a.x<c.x2&&a.x>c.x||c.x<a.x2&&c.x>a.x)&&(a.y<c.y2&&a.y>c.y||c.y<a.y2&&c.y>a.y)};b.pathIntersection=function(a,b){return Z(a,b)};b.pathIntersectionNumber=function(a,b){return Z(a,b,1)};b.isPointInsidePath=function(a,c,d){var e=b.pathBBox(a);return b.isPointInsideBBox(e,c,d)&&Z(a,[["M",c,d],["H",e.x2+10]],1)%2==1};b._removedFactory=function(a){return function(){m("raphael.log",
null,"Rapha\u00ebl: you are calling to method \u201c"+a+"\u201d of removed object",a)}};var Ra=b.pathBBox=function(a){var b=Aa(a);if(b.bbox)return b.bbox;if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var a=ga(a),c=0,d=0,e=[],f=[],D,y=0,k=a.length;y<k;y++)D=a[y],D[0]=="M"?(c=D[1],d=D[2],e.push(c),f.push(d)):(c=q(c,d,D[1],D[2],D[3],D[4],D[5],D[6]),e=e[F](c.min.x,c.max.x),f=f[F](c.min.y,c.max.y),c=D[5],d=D[6]);a=M[v](0,e);D=M[v](0,f);e=u[v](0,e);f=u[v](0,f);f={x:a,y:D,x2:e,y2:f,width:e-a,height:f-
D};b.bbox=j(f);return f},ra=function(a){a=j(a);a.toString=b._path2string;return a},B=b._pathToRelative=function(a){var c=Aa(a);if(c.rel)return ra(c.rel);if(!b.is(a,ua)||!b.is(a&&a[0],ua))a=b.parsePathString(a);var d=[],e=0,f=0,D=0,y=0,q=0;a[0][0]=="M"&&(e=a[0][1],f=a[0][2],D=e,y=f,q++,d.push(["M",e,f]));for(var ca=a.length;q<ca;q++){var U=d[q]=[],l=a[q];if(l[0]!=k.call(l[0]))switch(U[0]=k.call(l[0]),U[0]){case "a":U[1]=l[1];U[2]=l[2];U[3]=l[3];U[4]=l[4];U[5]=l[5];U[6]=+(l[6]-e).toFixed(3);U[7]=+(l[7]-
f).toFixed(3);break;case "v":U[1]=+(l[1]-f).toFixed(3);break;case "m":D=l[1],y=l[2];default:for(var t=1,u=l.length;t<u;t++)U[t]=+(l[t]-(t%2?e:f)).toFixed(3)}else{d[q]=[];l[0]=="m"&&(D=l[1]+e,y=l[2]+f);U=0;for(t=l.length;U<t;U++)d[q][U]=l[U]}l=d[q].length;switch(d[q][0]){case "z":e=D;f=y;break;case "h":e+=+d[q][l-1];break;case "v":f+=+d[q][l-1];break;default:e+=+d[q][l-2],f+=+d[q][l-1]}}d.toString=b._path2string;c.rel=ra(d);return d},D=b._pathToAbsolute=function(a){var c=Aa(a),d;if(c.abs)return ra(c.abs);
if(!b.is(a,ua)||!b.is(a&&a[0],ua))a=b.parsePathString(a);if(!a||!a.length)return d=["M",0,0],d.toString=b._path2string,d;var e=0,f=0,D=0,q=0,y=0;d=[];a[0][0]=="M"&&(e=+a[0][1],f=+a[0][2],D=e,q=f,y++,d[0]=["M",e,f]);for(var k=a.length==3&&a[0][0]=="M"&&a[1][0].toUpperCase()=="R"&&a[2][0].toUpperCase()=="Z",ca,l=y,U=a.length;l<U;l++){d.push(y=[]);ca=a[l];if(ca[0]!=Ma.call(ca[0]))switch(y[0]=Ma.call(ca[0]),y[0]){case "A":y[1]=ca[1];y[2]=ca[2];y[3]=ca[3];y[4]=ca[4];y[5]=ca[5];y[6]=+(ca[6]+e);y[7]=+(ca[7]+
f);break;case "V":y[1]=+ca[1]+f;break;case "H":y[1]=+ca[1]+e;break;case "R":for(var t=[e,f][F](ca.slice(1)),u=2,n=t.length;u<n;u++)t[u]=+t[u]+e,t[++u]=+t[u]+f;d.pop();d=d[F](r(t,k));break;case "M":D=+ca[1]+e,q=+ca[2]+f;default:u=1;for(n=ca.length;u<n;u++)y[u]=+ca[u]+(u%2?e:f)}else if(ca[0]=="R")t=[e,f][F](ca.slice(1)),d.pop(),d=d[F](r(t,k)),y=["R"][F](ca.slice(-2));else{t=0;for(u=ca.length;t<u;t++)y[t]=ca[t]}switch(y[0]){case "Z":e=D;f=q;break;case "H":e=y[1];break;case "V":f=y[1];break;case "M":D=
y[y.length-2],q=y[y.length-1];default:e=y[y.length-2],f=y[y.length-1]}}d.toString=b._path2string;c.abs=ra(d);return d},y=function(a,b,c,d,e,f){var D=1/3,y=2/3;return[D*a+y*c,D*b+y*d,D*e+y*c,D*f+y*d,e,f]},ca=function(a,b,d,e,f,D,y,q,k,l){var U=fa*120/180,u=Ka*(+f||0),n=[],ga,i=wa(function(a,b,c){var d=a*Ha(c)-b*ya(c),a=a*ya(c)+b*Ha(c);return{x:d,y:a}});if(l)x=l[0],ga=l[1],D=l[2],$=l[3];else{ga=i(a,b,-u);a=ga.x;b=ga.y;ga=i(q,k,-u);q=ga.x;k=ga.y;Ha(Ka*f);ya(Ka*f);ga=(a-q)/2;x=(b-k)/2;$=ga*ga/(d*d)+x*
x/(e*e);$>1&&($=sa($),d*=$,e*=$);var $=d*d,Ga=e*e,$=(D==y?-1:1)*sa(ba(($*Ga-$*x*x-Ga*ga*ga)/($*x*x+Ga*ga*ga))),D=$*d*x/e+(a+q)/2,$=$*-e*ga/d+(b+k)/2,x=t.asin(((b-$)/e).toFixed(9));ga=t.asin(((k-$)/e).toFixed(9));x=a<D?fa-x:x;ga=q<D?fa-ga:ga;x<0&&(x=fa*2+x);ga<0&&(ga=fa*2+ga);y&&x>ga&&(x-=fa*2);!y&&ga>x&&(ga-=fa*2)}if(ba(ga-x)>U){var n=ga,Ga=q,h=k;ga=x+U*(y&&ga>x?1:-1);q=D+d*Ha(ga);k=$+e*ya(ga);n=ca(q,k,d,e,f,0,y,Ga,h,[ga,n,D,$])}D=ga-x;f=Ha(x);U=ya(x);y=Ha(ga);ga=ya(ga);D=t.tan(D/4);d=4/3*d*D;D*=
4/3*e;e=[a,b];a=[a+d*U,b-D*f];b=[q+d*ga,k-D*y];q=[q,k];a[0]=2*e[0]-a[0];a[1]=2*e[1]-a[1];if(l)return[a,b,q][F](n);else{n=[a,b,q][F](n).join()[c](",");l=[];q=0;for(k=n.length;q<k;q++)l[q]=q%2?i(n[q-1],n[q],u).y:i(n[q],n[q+1],u).x;return l}},U=function(a,b,c,d,e,f,D,y,q){var k=1-q;return{x:R(k,3)*a+R(k,2)*3*q*c+k*3*q*q*e+R(q,3)*D,y:R(k,3)*b+R(k,2)*3*q*d+k*3*q*q*f+R(q,3)*y}},q=wa(function(a,b,c,d,e,f,D,y){var q=e-2*c+a-(D-2*e+c),k=2*(c-a)-2*(e-c),ca=a-c,l=(-k+sa(k*k-4*q*ca))/2/q,q=(-k-sa(k*k-4*q*ca))/
2/q,t=[b,y],n=[a,D];ba(l)>"1e12"&&(l=0.5);ba(q)>"1e12"&&(q=0.5);l>0&&l<1&&(l=U(a,b,c,d,e,f,D,y,l),n.push(l.x),t.push(l.y));q>0&&q<1&&(l=U(a,b,c,d,e,f,D,y,q),n.push(l.x),t.push(l.y));q=f-2*d+b-(y-2*f+d);k=2*(d-b)-2*(f-d);ca=b-d;l=(-k+sa(k*k-4*q*ca))/2/q;q=(-k-sa(k*k-4*q*ca))/2/q;ba(l)>"1e12"&&(l=0.5);ba(q)>"1e12"&&(q=0.5);l>0&&l<1&&(l=U(a,b,c,d,e,f,D,y,l),n.push(l.x),t.push(l.y));q>0&&q<1&&(l=U(a,b,c,d,e,f,D,y,q),n.push(l.x),t.push(l.y));return{min:{x:M[v](0,n),y:M[v](0,t)},max:{x:u[v](0,n),y:u[v](0,
t)}}}),ga=b._path2curve=wa(function(a,b){var c=!b&&Aa(a);if(!b&&c.curve)return ra(c.curve);var d=D(a),e=b&&D(b),f={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},q={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},k=function(a,b){var c,d;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];!(a[0]in{T:1,Q:1})&&(b.qx=b.qy=null);switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"][F](ca[v](0,[b.x,b.y][F](a.slice(1))));break;case "S":c=b.x+(b.x-(b.bx||b.x));d=b.y+(b.y-(b.by||b.y));a=["C",c,d][F](a.slice(1));break;
case "T":b.qx=b.x+(b.x-(b.qx||b.x));b.qy=b.y+(b.y-(b.qy||b.y));a=["C"][F](y(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"][F](y(b.x,b.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"][F]([b.x,b.y,a[1],a[2],a[1],a[2]]);break;case "H":a=["C"][F]([b.x,b.y,a[1],b.y,a[1],b.y]);break;case "V":a=["C"][F]([b.x,b.y,b.x,a[1],b.x,a[1]]);break;case "Z":a=["C"][F]([b.x,b.y,b.X,b.Y,b.X,b.Y])}return a},l=function(a,b){if(a[b].length>7){a[b].shift();for(var c=a[b];c.length;)a.splice(b++,0,
["C"][F](c.splice(0,6)));a.splice(b,1);n=u(d.length,e&&e.length||0)}},U=function(a,b,c,f,q){if(a&&b&&a[q][0]=="M"&&b[q][0]!="M")b.splice(q,0,["M",f.x,f.y]),c.bx=0,c.by=0,c.x=a[q][1],c.y=a[q][2],n=u(d.length,e&&e.length||0)},t=0,n=u(d.length,e&&e.length||0);for(;t<n;t++){d[t]=k(d[t],f);l(d,t);e&&(e[t]=k(e[t],q));e&&l(e,t);U(d,e,f,q,t);U(e,d,q,f,t);var ga=d[t],x=e&&e[t],$=ga.length,i=e&&x.length;f.x=ga[$-2];f.y=ga[$-1];f.bx=ka(ga[$-4])||f.x;f.by=ka(ga[$-3])||f.y;q.bx=e&&(ka(x[i-4])||q.x);q.by=e&&(ka(x[i-
3])||q.y);q.x=e&&x[i-2];q.y=e&&x[i-1]}if(!e)c.curve=ra(d);return e?[d,e]:d},null,ra);b._parseDots=wa(function(a){for(var c=[],d=0,e=a.length;d<e;d++){var f={},q=a[d].match(/^([^:]*):?([\d\.]*)/);f.color=b.getRGB(q[1]);if(f.color.error)return null;f.opacity=f.color.opacity;f.color=f.color.hex;q[2]&&(f.offset=q[2]+"%");c.push(f)}d=1;for(e=c.length-1;d<e;d++)if(!c[d].offset){a=ka(c[d-1].offset||0);q=0;for(f=d+1;f<e;f++)if(c[f].offset){q=c[f].offset;break}q||(q=100,f=e);q=ka(q);for(q=(q-a)/(f-d+1);d<
f;d++)a+=q,c[d].offset=a+"%"}return c});var Ga=b._tear=function(a,b){a==b.top&&(b.top=a.prev);a==b.bottom&&(b.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)};b._tofront=function(a,b){if(b.top===a)return!1;Ga(a,b);a.next=null;a.prev=b.top;b.top.next=a;b.top=a;return!0};b._toback=function(a,b){if(b.bottom===a)return!1;Ga(a,b);a.next=b.bottom;a.prev=null;b.bottom.prev=a;b.bottom=a;return!0};b._insertafter=function(a,b,c,d){Ga(a,c);a.parent=d;b===d.top&&(d.top=a);b.next&&(b.next.prev=
a);a.next=b.next;a.prev=b;b.next=a};b._insertbefore=function(a,b,c,d){Ga(a,c);a.parent=d;b===d.bottom&&(d.bottom=a);b.prev&&(b.prev.next=a);a.prev=b.prev;b.prev=a;a.next=b};var qa=b.toMatrix=function(a,b){var c=Ra(a),d={_:{transform:""},getBBox:function(){return c}};ib(d,b);return d.matrix};b.transformPath=function(a,b){return pa(a,qa(a,b))};var ib=b._extractTransform=function(a,c){if(c==null)return a._.transform;var c=h(c).replace(/\.{3}|\u2026/g,a._.transform||""),d=b.parseTransformString(c),e=
0,f=0,q=0,D=1,y=1,k=a._,q=new s;k.transform=d||[];if(d)for(var f=0,ca=d.length;f<ca;f++){var l=d[f],U=l.length,t=h(l[0]).toLowerCase(),u=l[0]!=t,n=u?q.invert():0,ga;t=="t"&&U==3?u?(U=n.x(0,0),t=n.y(0,0),u=n.x(l[1],l[2]),n=n.y(l[1],l[2]),q.translate(u-U,n-t)):q.translate(l[1],l[2]):t=="r"?U==2?(ga=ga||a.getBBox(1),q.rotate(l[1],ga.x+ga.width/2,ga.y+ga.height/2),e+=l[1]):U==4&&(u?(u=n.x(l[2],l[3]),n=n.y(l[2],l[3]),q.rotate(l[1],u,n)):q.rotate(l[1],l[2],l[3]),e+=l[1]):t=="s"?U==2||U==3?(ga=ga||a.getBBox(1),
q.scale(l[1],l[U-1],ga.x+ga.width/2,ga.y+ga.height/2),D*=l[1],y*=l[U-1]):U==5&&(u?(u=n.x(l[3],l[4]),n=n.y(l[3],l[4]),q.scale(l[1],l[2],u,n)):q.scale(l[1],l[2],l[3],l[4]),D*=l[1],y*=l[2]):t=="m"&&U==7&&q.add(l[1],l[2],l[3],l[4],l[5],l[6]);k.dirtyT=1;a.matrix=q}a.matrix=q;k.sx=D;k.sy=y;k.deg=e;k.dx=f=q.e;k.dy=q=q.f;D==1&&y==1&&!e&&k.bbox?(k.bbox.x+=+f,k.bbox.y+=+q):k.dirtyT=1},Da=function(a){var b=a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,1,0,0,1,0,0];case "r":return a.length==
4?[b,0,a[2],a[3]]:[b,0];case "s":return a.length==5?[b,1,1,a[3],a[4]]:a.length==3?[b,1,1]:[b,1]}},$=b._equaliseTransform=function(a,c){for(var c=h(c).replace(/\.{3}|\u2026/g,a),a=b.parseTransformString(a)||[],c=b.parseTransformString(c)||[],d=u(a.length,c.length),e=[],f=[],q=0,D,y,k,l;q<d;q++){k=a[q]||Da(c[q]);l=c[q]||Da(k);if(k[0]!=l[0]||k[0].toLowerCase()=="r"&&(k[2]!=l[2]||k[3]!=l[3])||k[0].toLowerCase()=="s"&&(k[3]!=l[3]||k[4]!=l[4]))return;e[q]=[];f[q]=[];D=0;for(y=u(k.length,l.length);D<y;D++)D in
k&&(e[q][D]=k[D]),D in l&&(f[q][D]=l[D])}return{from:e,to:f}};b._getContainer=function(a,c,d,e){var f;f=e==null&&!b.is(a,"object")?L.doc.getElementById(a):a;if(f!=null){if(f.tagName)return c==null?{container:f,width:f.style.pixelWidth||f.offsetWidth,height:f.style.pixelHeight||f.offsetHeight}:{container:f,width:c,height:d};return{container:1,x:a,y:c,width:d,height:e}}};b.pathToRelative=B;b._engine={};b.path2curve=ga;b.matrix=function(a,b,c,d,e,f){return new s(a,b,c,d,e,f)};(function(a){function d(a){return a[0]*
a[0]+a[1]*a[1]}function e(a){var b=sa(d(a));a[0]&&(a[0]/=b);a[1]&&(a[1]/=b)}a.add=function(a,b,c,d,e,f){var q=[[],[],[]],D=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],b=[[a,c,e],[b,d,f],[0,0,1]];a&&a instanceof s&&(b=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;a<3;a++)for(c=0;c<3;c++){for(d=e=0;d<3;d++)e+=D[a][d]*b[d][c];q[a][c]=e}this.a=q[0][0];this.b=q[1][0];this.c=q[0][1];this.d=q[1][1];this.e=q[0][2];this.f=q[1][2]};a.invert=function(){var a=this.a*this.d-this.b*this.c;return new s(this.d/
a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*this.e)/a,(this.b*this.e-this.a*this.f)/a)};a.clone=function(){return new s(this.a,this.b,this.c,this.d,this.e,this.f)};a.translate=function(a,b){this.add(1,0,0,1,a,b)};a.scale=function(a,b,c,d){b==null&&(b=a);(c||d)&&this.add(1,0,0,1,c,d);this.add(a,0,0,b,0,0);(c||d)&&this.add(1,0,0,1,-c,-d)};a.rotate=function(a,c,d){var a=b.rad(a),c=c||0,d=d||0,e=+Ha(a).toFixed(9),a=+ya(a).toFixed(9);this.add(e,a,-a,e,c,d);this.add(1,0,0,1,-c,-d)};a.x=function(a,
b){return a*this.a+b*this.c+this.e};a.y=function(a,b){return a*this.b+b*this.d+this.f};a.get=function(a){return+this[h.fromCharCode(97+a)].toFixed(4)};a.toString=function(){return b.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};a.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"};a.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+
this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"};a.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};a.split=function(){var a={};a.dx=this.e;a.dy=this.f;var c=[[this.a,this.c],[this.b,this.d]];a.scalex=sa(d(c[0]));e(c[0]);a.shear=c[0][0]*c[1][0]+c[0][1]*c[1][1];c[1]=[c[1][0]-c[0][0]*a.shear,c[1][1]-c[0][1]*a.shear];a.scaley=sa(d(c[1]));e(c[1]);a.shear/=a.scaley;var f=-c[0][1],c=c[1][1];
if(c<0){if(a.rotate=b.deg(t.acos(c)),f<0)a.rotate=360-a.rotate}else a.rotate=b.deg(t.asin(f));a.isSimple=!+a.shear.toFixed(9)&&(a.scalex.toFixed(9)==a.scaley.toFixed(9)||!a.rotate);a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate;a.noRotation=!+a.shear.toFixed(9)&&!a.rotate;return a};a.toTransformString=function(a){a=a||this[c]();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,
a.dy]:"")+(a.scalex!=1||a.scaley!=1?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[a.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(s.prototype);B=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);W.safari=navigator.vendor=="Apple Computer, Inc."&&(B&&B[1]<4||navigator.platform.slice(0,2)=="iP")||navigator.vendor=="Google Inc."&&B&&B[1]<8?function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});
setTimeout(function(){a.remove()});return!0}:n;for(var Ta=function(){this.returnValue=!1},ab=function(){return this.originalEvent.preventDefault()},Za=function(){this.cancelBubble=!0},$a=function(){return this.originalEvent.stopPropagation()},kb=b.addEvent=function(){if(L.doc.addEventListener)return function(b,c,d,e){var q=f&&a[c]?a[c]:c,D=function(q){var D=L.doc.documentElement.scrollTop||L.doc.body.scrollTop,y=L.doc.documentElement.scrollLeft||L.doc.body.scrollLeft;if(f&&a[V](c))for(var k=0,l=q.targetTouches&&
q.targetTouches.length;k<l;k++)if(q.targetTouches[k].target==b){l=q;q=q.targetTouches[k];q.originalEvent=l;q.preventDefault=ab;q.stopPropagation=$a;break}return d.call(e,q,q.clientX+y,q.clientY+D)};b.addEventListener(q,D,!1);return function(){b.removeEventListener(q,D,!1);return!0}};else if(L.doc.attachEvent)return function(a,b,c,d){var e=function(a){var a=a||L.win.event,b=a.clientX+(L.doc.documentElement.scrollLeft||L.doc.body.scrollLeft),e=a.clientY+(L.doc.documentElement.scrollTop||L.doc.body.scrollTop);
a.preventDefault=a.preventDefault||Ta;a.stopPropagation=a.stopPropagation||Za;return c.call(d,a,b,e)};a.attachEvent("on"+b,e);return function(){a.detachEvent("on"+b,e);return!0}}}(),Ua=[],lb=function(a){for(var b=a.clientX,c=a.clientY,d=L.doc.documentElement.scrollTop||L.doc.body.scrollTop,e=L.doc.documentElement.scrollLeft||L.doc.body.scrollLeft,q,D=Ua.length;D--;){q=Ua[D];if(f)for(var y=a.touches.length,k;y--;){if(k=a.touches[y],k.identifier==q.el._drag.id){b=k.clientX;c=k.clientY;(a.originalEvent?
a.originalEvent:a).preventDefault();break}}else a.preventDefault();var y=q.el.node,l=y.nextSibling,ca=y.parentNode,U=y.style.display;L.win.opera&&ca.removeChild(y);y.style.display="none";k=q.el.paper.getElementByPoint(b,c);y.style.display=U;L.win.opera&&(l?ca.insertBefore(y,l):ca.appendChild(y));k&&m("raphael.drag.over."+q.el.id,q.el,k);b+=e;c+=d;m("raphael.drag.move."+q.el.id,q.move_scope||q.el,b-q.el._drag.x,c-q.el._drag.y,b,c,a)}},db=function(a){b.unmousemove(lb).unmouseup(db);for(var c=Ua.length,
d;c--;)d=Ua[c],d.el._drag={},m("raphael.drag.end."+d.el.id,d.end_scope||d.start_scope||d.move_scope||d.el,a);Ua=[]},N=b.el={},n=d.length;n--;)(function(a){b[a]=N[a]=function(c,d){if(b.is(c,"function"))this.events=this.events||[],this.events.push({name:a,f:c,unbind:kb(this.shape||this.node||L.doc,a,c,d||this)});return this};b["un"+a]=N["un"+a]=function(b){for(var c=this.events||[],d=c.length;d--;)if(c[d].name==a&&c[d].f==b){c[d].unbind();c.splice(d,1);!c.length&&delete this.events;break}return this}})(d[n]);
N.data=function(a,c){var d=l[this.id]=l[this.id]||{};if(arguments.length==1){if(b.is(a,"object")){for(var e in a)a[V](e)&&this.data(e,a[e]);return this}m("raphael.data.get."+this.id,this,d[a],a);return d[a]}d[a]=c;m("raphael.data.set."+this.id,this,c,a);return this};N.removeData=function(a){a==null?l[this.id]={}:l[this.id]&&delete l[this.id][a];return this};var aa=[],Pa=function(){this.untrack=kb(L.doc,"mouseup",Na,this)},Na=function(){this.untrack();this.untrack=null;return this.fn&&this.fn.apply(this.scope||
this.el,arguments)};N.mouseup=function(a,c,d){if(!d)return b.mouseup.apply(this,arguments);aa.push(d={el:this,fn:a,scope:c});d.unbind=kb(this.shape||this.node||L.doc,"mousedown",Pa,d);return this};N.unmouseup=function(a){for(var c=aa.length,d;c--;)aa[c].el===this&&aa[c].fn===a&&(d=aa[c],d.unbind(),d.untrack&&d.untrack(),aa.splice(c,1));return d?this:b.unmouseup.apply(this,arguments)};N.hover=function(a,b,c,d){return this.mouseover(a,c).mouseout(b,d||c)};N.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};
var hb=[];N.drag=function(a,c,d,e,f,q){function D(y){(y.originalEvent||y).preventDefault();var k=L.doc.documentElement.scrollTop||L.doc.body.scrollTop,l=L.doc.documentElement.scrollLeft||L.doc.body.scrollLeft;this._drag.x=y.clientX+l;this._drag.y=y.clientY+k;this._drag.id=y.identifier;!Ua.length&&b.mousemove(lb).mouseup(db);Ua.push({el:this,move_scope:e,start_scope:f,end_scope:q});c&&m.on("raphael.drag.start."+this.id,c);a&&m.on("raphael.drag.move."+this.id,a);d&&m.on("raphael.drag.end."+this.id,
d);m("raphael.drag.start."+this.id,f||e||this,y.clientX+l,y.clientY+k,y)}this._drag={};hb.push({el:this,start:D});this.mousedown(D);return this};N.onDragOver=function(a){a?m.on("raphael.drag.over."+this.id,a):m.unbind("raphael.drag.over."+this.id)};N.undrag=function(){for(var a=hb.length;a--;)hb[a].el==this&&(this.unmousedown(hb[a].start),hb.splice(a,1),m.unbind("raphael.drag.*."+this.id));!hb.length&&b.unmousemove(lb).unmouseup(db)};N.follow=function(a,c,d){if(a.removed||a.constructor!==b.el.constructor)return this;
a.followers.push({el:this,stalk:d={before:"insertBefore",after:"insertAfter"}[d],cb:c});d&&this[d](a);return this};N.unfollow=function(a){if(a.removed||a.constructor!==b.el.constructor)return this;for(var c=0,d=a.followers.length;c<d;c++)if(a.followers[c].el===this){a.followers.splice(c,1);break}return this};var Ea=Array.prototype.splice;W.group=function(){var a;a=arguments;var c=a.length-1,d=a[c];d&&d.constructor===b.el.constructor?(a[c]=void 0,Ea.call(a,c,1)):d=void 0;a=b._engine.group(this,a[0],
d);this.__set__&&this.__set__.push(a);return a};W.circle=function(){var a;a=arguments;var c=a.length-1,d=a[c];d&&d.constructor===b.el.constructor?(a[c]=void 0,Ea.call(a,c,1)):d=void 0;a=b._engine.circle(this,a[0]||0,a[1]||0,a[2]||0,d);this.__set__&&this.__set__.push(a);return a};W.rect=function(){var a;a=arguments;var c=a.length-1,d=a[c];d&&d.constructor===b.el.constructor?(a[c]=void 0,Ea.call(a,c,1)):d=void 0;a=b._engine.rect(this,a[0]||0,a[1]||0,a[2]||0,a[3]||0,a[4]||0,d);this.__set__&&this.__set__.push(a);
return a};W.ellipse=function(){var a;a=arguments;var c=a.length-1,d=a[c];d&&d.constructor===b.el.constructor?(a[c]=void 0,Ea.call(a,c,1)):d=void 0;a=b._engine.ellipse(this,a[0]||0,a[1]||0,a[2]||0,a[3]||0,d);this.__set__&&this.__set__.push(a);return a};W.path=function(){var a,c=arguments,d=c.length-1;(a=c[d])&&a.constructor===b.el.constructor?(c[d]=void 0,Ea.call(c,d,1)):a=void 0;(c=c[0])&&!b.is(c,"string")&&b.is(c[0],ua);a=b._engine.path(b.format[v](b,arguments),this,a);this.__set__&&this.__set__.push(a);
return a};W.image=function(){var a;a=arguments;var c=a.length-1,d=a[c];d&&d.constructor===b.el.constructor?(a[c]=void 0,Ea.call(a,c,1)):d=void 0;a=b._engine.image(this,a[0]||"about:blank",a[1]||0,a[2]||0,a[3]||0,a[4]||0,d);this.__set__&&this.__set__.push(a);return a};W.text=function(){var a;a=arguments;var c=a.length-1,d=a[c];d&&d.constructor===b.el.constructor?(a[c]=void 0,Ea.call(a,c,1)):d=void 0;a=b._engine.text(this,a[0]||0,a[1]||0,h(a[2]||""),d);this.__set__&&this.__set__.push(a);return a};W.set=
function(a){!b.is(a,"array")&&(a=Array.prototype.splice.call(arguments,0,arguments.length));var c=new Va(a);this.__set__&&this.__set__.push(c);return c};W.setStart=function(a){this.__set__=a||this.set()};W.setFinish=function(){var a=this.__set__;delete this.__set__;return a};W.setSize=function(a,c){return b._engine.setSize.call(this,a,c)};W.setViewBox=function(a,c,d,e,f){return b._engine.setViewBox.call(this,a,c,d,e,f)};W.top=W.bottom=null;W.raphael=b;W.getElementByPoint=function(a,b){var c=this.canvas,
d=L.doc.elementFromPoint(a,b);if(L.win.opera&&d.tagName=="svg"){var e;e=c.getBoundingClientRect();var f=c.ownerDocument,q=f.body,f=f.documentElement;e={y:e.top+(L.win.pageYOffset||f.scrollTop||q.scrollTop)-(f.clientTop||q.clientTop||0),x:e.left+(L.win.pageXOffset||f.scrollLeft||q.scrollLeft)-(f.clientLeft||q.clientLeft||0)};q=c.createSVGRect();q.x=a-e.x;q.y=b-e.y;q.width=q.height=1;e=c.getIntersectionList(q,null);e.length&&(d=e[e.length-1])}if(!d)return null;for(;d.parentNode&&d!=c.parentNode&&!d.raphael;)d=
d.parentNode;d==this.canvas.parentNode&&(d=c);return d=d&&d.raphael?this.getById(d.raphaelid):null};W.getById=function(a){for(var b=this.bottom;b;){if(b.id==a)return b;b=b.next}return null};W.forEach=function(a,b){for(var c=this.bottom;c;){if(a.call(b,c)===!1)break;c=c.next}return this};W.getElementsByPoint=function(a,b){var c=this.set();this.forEach(function(d){d.isPointInside(a,b)&&c.push(d)});return c};N.isPointInside=function(a,c){var d=this.realPath=this.realPath||O[this.type](this);return b.isPointInsidePath(d,
a,c)};N.getBBox=function(a){if(this.removed)return{};var b=this._;if(a){if(b.dirty||!b.bboxwt)this.realPath=O[this.type](this),b.bboxwt=Ra(this.realPath),b.bboxwt.toString=ia,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=O[this.type](this);b.bbox=Ra(pa(this.realPath,this.matrix));b.bbox.toString=ia;b.dirty=b.dirtyT=0}return b.bbox};N.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&
this.__set__.push(a);return a};N.glow=function(a){if(this.type=="text")return null;for(var a=a||{},a={width:(a.width||10)+(+this.attr("stroke-width")||1),fill:a.fill||!1,opacity:a.opacity||0.5,offsetx:a.offsetx||0,offsety:a.offsety||0,color:a.color||"#000"},b=a.width/2,c=this.paper,d=c.set(),e=this.realPath||O[this.type](this),e=this.matrix?pa(e,this.matrix):e,f=1;f<b+1;f++)d.push(c.path(e).attr({stroke:a.color,fill:a.fill?a.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(a.width/
b*f).toFixed(3),opacity:+(a.opacity/b).toFixed(3)}));return d.insertBefore(this).translate(a.offsetx,a.offsety)};var mb=function(a,c,d,e,f,q,D,y,k){return k==null?z(a,c,d,e,f,q,D,y):b.findDotsAtSegment(a,c,d,e,f,q,D,y,X(a,c,d,e,f,q,D,y,k))},d=function(a,c){return function(d,e,f){for(var d=ga(d),q,D,y,k,l="",ca={},U=0,t=0,u=d.length;t<u;t++){y=d[t];if(y[0]=="M")q=+y[1],D=+y[2];else{k=mb(q,D,y[1],y[2],y[3],y[4],y[5],y[6]);if(U+k>e){if(c&&!ca.start){q=mb(q,D,y[1],y[2],y[3],y[4],y[5],y[6],e-U);l+=["C"+
q.start.x,q.start.y,q.m.x,q.m.y,q.x,q.y];if(f)return l;ca.start=l;l=["M"+q.x,q.y+"C"+q.n.x,q.n.y,q.end.x,q.end.y,y[5],y[6]].join();U+=k;q=+y[5];D=+y[6];continue}if(!a&&!c)return q=mb(q,D,y[1],y[2],y[3],y[4],y[5],y[6],e-U),{x:q.x,y:q.y,alpha:q.alpha}}U+=k;q=+y[5];D=+y[6]}l+=y.shift()+y}ca.end=l;q=a?U:c?ca:b.findDotsAtSegment(q,D,y[0],y[1],y[2],y[3],y[4],y[5],1);q.alpha&&(q={x:q.x,y:q.y,alpha:q.alpha});return q}},ob=d(1),pb=d(),Ca=d(0,1);b.getTotalLength=ob;b.getPointAtLength=pb;b.getSubpath=function(a,
b,c){if(this.getTotalLength(a)-c<1.0E-6)return Ca(a,b).end;a=Ca(a,c,1);return b?Ca(a,b).end:a};N.getTotalLength=function(){if(this.type=="path"){if(this.node.getTotalLength)return this.node.getTotalLength();return ob(this.attrs.path)}};N.getPointAtLength=function(a){if(this.type=="path")return pb(this.attrs.path,a)};N.getSubpath=function(a,c){if(this.type=="path")return b.getSubpath(this.attrs.path,a,c)};d=b.easing_formulas={linear:function(a){return a},"<":function(a){return R(a,1.7)},">":function(a){return R(a,
0.48)},"<>":function(a){var b=0.48-a/1.04,c=sa(0.1734+b*b),a=c-b,a=R(ba(a),1/3)*(a<0?-1:1),b=-c-b,b=R(ba(b),1/3)*(b<0?-1:1),a=a+b+0.5;return(1-a)*3*a*a+a*a*a},backIn:function(a){return a*a*(2.70158*a-1.70158)},backOut:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},elastic:function(a){if(a==!!a)return a;return R(2,-10*a)*ya((a-0.075)*2*fa/0.3)+1},bounce:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*
a*a+0.984375);return a}};d.easeIn=d["ease-in"]=d["<"];d.easeOut=d["ease-out"]=d[">"];d.easeInOut=d["ease-in-out"]=d["<>"];d["back-in"]=d.backIn;d["back-out"]=d.backOut;var za=[],nb=J&&Y?function(a){setTimeout(a,16)}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,16)},jb=function(){for(var a=+new Date,c=0;c<za.length;c++){var d=za[c];if(!d.el.removed&&!d.paused){var e=
a-d.start,f=d.ms,q=d.easing,y=d.from,D=d.diff,k=d.to,l=d.el,ca={},U,t={},u;d.initstatus?(e=(d.initstatus*d.anim.top-d.prev)/(d.percent-d.prev)*f,d.status=d.initstatus,delete d.initstatus,d.stop&&za.splice(c--,1)):d.status=(d.prev+(d.percent-d.prev)*(e/f))/d.anim.top;if(!(e<0))if(e<f){var n=q(e/f),ga;for(ga in y)if(y[V](ga)){switch(Oa[ga]){case ta:U=+y[ga]+n*f*D[ga];break;case "colour":U="rgb("+[Ba(Ya(y[ga].r+n*f*D[ga].r)),Ba(Ya(y[ga].g+n*f*D[ga].g)),Ba(Ya(y[ga].b+n*f*D[ga].b))].join(",")+")";break;
case "path":U=[];e=0;for(q=y[ga].length;e<q;e++){U[e]=[y[ga][e][0]];k=1;for(t=y[ga][e].length;k<t;k++)U[e][k]=(+y[ga][e][k]+n*f*D[ga][e][k]).toFixed(4);U[e]=U[e].join(i)}U=U.join(i);break;case "transform":if(D[ga].real){U=[];e=0;for(q=y[ga].length;e<q;e++){U[e]=[y[ga][e][0]];k=1;for(t=y[ga][e].length;k<t;k++)U[e][k]=y[ga][e][k]+n*f*D[ga][e][k]}}else U=function(a){return+y[ga][a]+n*f*D[ga][a]},U=[["m",U(0),U(1),U(2),U(3),U(4),U(5)]];break;case "csv":if(ga=="clip-rect"){U=[];for(e=4;e--;)U[e]=+y[ga][e]+
n*f*D[ga][e]}break;default:q=[][F](y[ga]);U=[];for(e=l.ca[ga].length;e--;)U[e]=+q[e]+n*f*D[ga][e]}ca[ga]=U}l.attr(ca);(function(a,b,c){setTimeout(function(){m("raphael.anim.frame."+a,b,c)})})(l.id,l,d.anim)}else{(function(a,c,d){setTimeout(function(){m("raphael.anim.frame."+c.id,c,d);m("raphael.anim.finish."+c.id,c,d);b.is(a,"function")&&a.call(c)})})(d.callback,l,d.anim);l.attr(k);za.splice(c--,1);if(d.repeat>1&&!d.next){for(u in k)k[V](u)&&(t[u]=d.totalOrigin[u]);d.el.attr(t);P(d.anim,d.el,d.anim.percents[0],
null,d.totalOrigin,d.repeat-1)}d.next&&!d.stop&&P(d.anim,d.el,d.next,null,d.totalOrigin,d.repeat)}}}b.svg&&l&&l.paper&&l.paper.safari();za.length&&nb(jb)},Ba=function(a){return a>255?255:a<0?0:a};N.animateWith=function(a,c,d,e,f,q){if(this.removed)return q&&q.call(this),this;d=d instanceof K?d:b.animation(d,e,f,q);P(d,this,d.percents[0],null,this.attr());d=0;for(e=za.length;d<e;d++)if(za[d].anim==c&&za[d].el==a){za[e-1].start=za[d].start;break}return this};N.onAnimation=function(a){a?m.on("raphael.anim.frame."+
this.id,a):m.unbind("raphael.anim.frame."+this.id);return this};K.prototype.delay=function(a){var b=new K(this.anim,this.ms);b.times=this.times;b.del=+a||0;return b};K.prototype.repeat=function(a){var b=new K(this.anim,this.ms);b.del=this.del;b.times=t.floor(u(a,0))||1;return b};b.animation=function(a,c,d,e){if(a instanceof K)return a;if(b.is(d,"function")||!d)e=e||d||null,d=null;var a=Object(a),c=+c||0,f={},q,y;for(y in a)a[V](y)&&ka(y)!=y&&ka(y)+"%"!=y&&(q=!0,f[y]=a[y]);return q?(d&&(f.easing=d),
e&&(f.callback=e),new K({100:f},c)):new K(a,c)};N.animate=function(a,c,d,e){if(this.removed)return e&&e.call(this),this;a=a instanceof K?a:b.animation(a,c,d,e);P(a,this,a.percents[0],null,this.attr());return this};N.setTime=function(a,b){a&&b!=null&&this.status(a,M(b,a.ms)/a.ms);return this};N.status=function(a,b){var c=[],d=0,e,f;if(b!=null)return P(a,this,-1,M(b,1)),this;else{for(e=za.length;d<e;d++)if(f=za[d],f.el.id==this.id&&(!a||f.anim==a)){if(a)return f.status;c.push({anim:f.anim,status:f.status})}if(a)return 0;
return c}};N.pause=function(a){for(var b=0;b<za.length;b++)if(za[b].el.id==this.id&&(!a||za[b].anim==a)&&m("raphael.anim.pause."+this.id,this,za[b].anim)!==!1)za[b].paused=!0;return this};N.resume=function(a){for(var b=0;b<za.length;b++)if(za[b].el.id==this.id&&(!a||za[b].anim==a)){var c=za[b];m("raphael.anim.resume."+this.id,this,c.anim)!==!1&&(delete c.paused,this.status(c.anim,c.status))}return this};N.stop=function(a){for(var b=0;b<za.length;b++)za[b].el.id==this.id&&(!a||za[b].anim==a)&&m("raphael.anim.stop."+
this.id,this,za[b].anim)!==!1&&za.splice(b--,1);return this};m.on("raphael.remove",ha);m.on("raphael.clear",ha);N.toString=function(){return"Rapha\u00ebl\u2019s object"};N.toFront=function(){if(this.removed)return this;var a=b._engine.getNode(this),c=this.parent,d=this.followers,e;b._tofront(this,c)&&c.canvas.appendChild(a);a=0;for(c=d.length;a<c;a++)(e=d[a]).stalk&&e.el[e.stalk](this);return this};N.toBack=function(){if(this.removed)return this;var a=b._engine.getNode(this),c=this.parent,d=this.followers,
e;b._toback(this,c)&&c.canvas.insertBefore(a,c.canvas.firstChild);a=0;for(c=d.length;a<c;a++)(e=d[a]).stalk&&e.el[e.stalk](this);return this};N.insertAfter=function(a){if(this.removed)return this;var c=b._engine.getNode(this),d=b._engine.getLastNode(a),e=a.parent.canvas,f=this.followers,q;d.nextSibling?e.insertBefore(c,d.nextSibling):e.appendChild(c);b._insertafter(this,a,this.parent,a.parent);c=0;for(d=f.length;c<d;c++)(q=f[c]).stalk&&q.el[q.stalk](a);return this};N.insertBefore=function(a){if(this.removed)return this;
var c=b._engine.getNode(this),d=b._engine.getNode(a),e=this.followers,f;a.parent.canvas.insertBefore(c,d);b._insertbefore(this,a,this.parent,a.parent);this.parent=a.parent;c=0;for(d=e.length;c<d;c++)(f=e[c]).stalk&&f.el[f.stalk](a);return this};N.appendChild=function(a){if(this.removed||this.type!=="group")return this;var c=this.followers,d,e,f;if(a.parent===this)return a.toFront(),this;e=b._engine.getNode(a);b._tear(a,a.parent);this.canvas.appendChild(e);a.parent=this;!this.bottom&&(this.bottom=
a);a.prev=this.top;a.next=null;this.top&&(this.top.next=a);this.top=a;e=0;for(f=c.length;e<f;e++)(d=c[e]).stalk&&d.el[d.stalk](a);return this};N.removeChild=function(a){if(this.removed||this.type!=="group"||a.parent!==this)return this;var c=b._engine.getNode(a),d=this.paper;b._tear(a,this);d.canvas.appendChild(c);this.parent=d;!d.bottom&&(d.bottom=this);(this.prev=d.top)&&(d.top.next=this);d.top=this;this.next=null;return this};var Va=function(a){this.items=[];this.length=0;this.type="set";if(a)for(var b=
0,c=a.length;b<c;b++)if(a[b]&&(a[b].constructor==N.constructor||a[b].constructor==Va))this[this.items.length]=this.items[this.items.length]=a[b],this.length++},d=Va.prototype;d.push=function(){for(var a,b,c=0,d=arguments.length;c<d;c++)if((a=arguments[c])&&(a.constructor==N.constructor||a.constructor==Va))b=this.items.length,this[b]=this.items[b]=a,this.length++;return this};d.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};d.forEach=function(a,b){for(var c=0,d=this.items.length;c<
d;c++)if(a.call(b,this.items[c],c)===!1)break;return this};for(var Sa in N)N[V](Sa)&&(d[Sa]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a][v](c,b)})}}(Sa));d.attr=function(a,c){if(a&&b.is(a,ua)&&b.is(a[0],"object"))for(var d=0,e=a.length;d<e;d++)this.items[d].attr(a[d]);else{d=0;for(e=this.items.length;d<e;d++)this.items[d].attr(a,c)}return this};d.clear=function(){for(;this.length;)this.pop()};d.splice=function(a,b){var a=a<0?u(this.length+a,0):a,b=u(0,M(this.length-
a,isNaN(b)&&this.length||b)),c=[],d=[],e=[],f;for(f=2;f<arguments.length;f++)e.push(arguments[f]);for(f=0;f<b;f++)d.push(this[a+f]);for(;f<this.length-a;f++)c.push(this[a+f]);var q=e.length;for(f=0;f<q+c.length;f++)this.items[a+f]=this[a+f]=f<q?e[f]:c[f-q];for(f=this.items.length=this.length-=b-q;this[f];)delete this[f++];return new Va(d)};d.exclude=function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]==a)return this.splice(b,1),!0};d.animate=function(a,c,d,e){(b.is(d,"function")||!d)&&(e=d||null);
var f=this.items.length,q=f,y=this,D;if(!f)return this;e&&(D=function(){!--f&&e.call(y)});d=b.is(d,"string")?d:D;c=b.animation(a,c,d,D);for(a=this.items[--q].animate(c);q--;)this.items[q]&&!this.items[q].removed&&this.items[q].animateWith(a,c,c);return this};d.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};d.getBBox=function(){for(var a=[],b=[],c=[],d=[],e=this.items.length;e--;)if(!this.items[e].removed){var f=this.items[e].getBBox();a.push(f.x);
b.push(f.y);c.push(f.x+f.width);d.push(f.y+f.height)}a=M[v](0,a);b=M[v](0,b);c=u[v](0,c);d=u[v](0,d);return{x:a,y:b,x2:c,y2:d,width:c-a,height:d-b}};d.clone=function(a){for(var a=new Va,b=0,c=this.items.length;b<c;b++)a.push(this.items[b].clone());return a};d.toString=function(){return"Rapha\u00ebl\u2018s set"};b.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,face:{},glyphs:{}},c=a.face["font-family"],d;for(d in a.face)a.face[V](d)&&(b.face[d]=a.face[d]);this.fonts[c]?
this.fonts[c].push(b):this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=Wa(a.face["units-per-em"],10);for(var e in a.glyphs)if(a.glyphs[V](e)&&(c=a.glyphs[e],b.glyphs[e]={w:c.w,k:{},d:c.d&&"M"+c.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},c.k))for(var f in c.k)c[V](f)&&(b.glyphs[e].k[f]=c.k[f])}return a};W.getFont=function(a,c,d,e){e=e||"normal";d=d||"normal";c=+c||{normal:400,bold:700,lighter:300,bolder:800}[c]||400;if(b.fonts){var f=b.fonts[a];
if(!f){var a=RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i"),q;for(q in b.fonts)if(b.fonts[V](q)&&a.test(q)){f=b.fonts[q];break}}var y;if(f){q=0;for(a=f.length;q<a;q++)if(y=f[q],y.face["font-weight"]==c&&(y.face["font-style"]==d||!y.face["font-style"])&&y.face["font-stretch"]==e)break}return y}};W.print=function(a,d,e,f,q,y,D){var y=y||"middle",D=u(M(D||0,1),-1),k=h(e)[c](""),l=0,ca=0,U="";b.is(f,e)&&(f=this.getFont(f));if(f)for(var e=(q||16)/f.face["units-per-em"],t=f.face.bbox[c](o),
q=+t[0],ga=t[3]-t[1],n=0,y=+t[1]+(y=="baseline"?ga+ +f.face.descent:ga/2),t=0,x=k.length;t<x;t++){if(k[t]=="\n")ca=i=l=0,n+=ga;else{var $=ca&&f.glyphs[k[t-1]]||{},i=f.glyphs[k[t]];l+=ca?($.w||f.w)+($.k&&$.k[k[t]]||0)+f.w*D:0;ca=1}i&&i.d&&(U+=b.transformPath(i.d,["t",l*e,n*e,"s",e,e,q,y,"t",(a-q)/e,(d-y)/e]))}return this.path(U).attr({fill:"#000",stroke:"none"})};W.add=function(a){if(b.is(a,"array"))for(var c=this.set(),d=0,e=a.length,f;d<e;d++)f=a[d]||{},p[V](f.type)&&c.push(this[f.type]().attr(f));
return c};b.format=function(a,c){var d=b.is(c,ua)?[0][F](c):arguments;a&&b.is(a,"string")&&d.length-1&&(a=a.replace(E,function(a,b){return d[++b]==null?"":d[b]}));return a||""};b.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,d){var e=d;c.replace(b,function(a,b,c,d,f){b=b||d;e&&(b in e&&(e=e[b]),typeof e=="function"&&f&&(e=e()))});return e=(e==null||e==d?a:e)+""};return function(b,d){return String(b).replace(a,function(a,b){return c(a,
b,d)})}}();b.ninja=function(){S.was?L.win.Raphael=S.is:delete Raphael;return b};b.st=d;(function(a,c,d){function e(){/in/.test(a.readyState)?setTimeout(e,9):b.eve("raphael.DOMload")}if(a.readyState==null&&a.addEventListener)a.addEventListener(c,d=function(){a.removeEventListener(c,d,!1);a.readyState="complete"},!1),a.readyState="loading";e()})(document,"DOMContentLoaded");S.was?L.win.Raphael=b:Raphael=b;m.on("raphael.DOMload",function(){H=!0})})();window.Raphael.svg&&function(b){var j=String,e=parseFloat,
r=parseInt,g=Math,m=g.max,w=g.abs,s=g.pow,ia=g.sqrt,I=/[, ]+/,K=!(!/AppleWebKit/.test(b._g.win.navigator.userAgent)||/Chrome/.test(b._g.win.navigator.userAgent)&&!(b._g.win.navigator.appVersion.match(/Chrome\/(\d+)\./)[1]<29)),P=b.eve,X={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},H=b._shapeRenderingAttrs={speed:"optimizeSpeed",crisp:"crispEdges",precision:"geometricPrecision"},
o={};b._url=/msie/i.test(navigator.userAgent)&&!window.opera?"":window.location.href.replace(/#.*?$/,"");b.toString=function(){return"Your browser supports SVG.\nYou are running Rapha\u00ebl "+this.version};var p=b._createNode=function(a,c){if(c){typeof a=="string"&&(a=p(a));for(var d in c)c.hasOwnProperty(d)&&(d.substring(0,6)=="xlink:"?a.setAttributeNS("http://www.w3.org/1999/xlink",d.substring(6),j(c[d])):a.setAttribute(d,j(c[d])))}else a=b._g.doc.createElementNS("http://www.w3.org/2000/svg",a);
return a},E={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},V={pad:"pad",redlect:"reflect",repeat:"repeat"},L=function(a,c){var d="linear",f=a.id+c,i=0.5,h=0.5,r,o,v,I,F,W=a.node,L=a.paper,H=W.style,P=b._g.doc.getElementById(f);if(!P&&L.defs){c=j(c).replace(b._radial_gradient,function(a,b){d="radial";b=b&&b.split(",")||[];I=b[5];F=b[6];var c=b[0],f=b[1],k=b[2],u=b[3],j=b[4],p=c&&f,g;k&&(r=/\%/.test(k)?k:e(k));if(I===E.userSpaceOnUse)return p&&(i=c,h=f),u&&j&&(o=u,v=j,p||(i=
o,h=v)),"";p&&(i=e(c),h=e(f),c=(h>0.5)*2-1,(g=s(i-0.5,2))+s(h-0.5,2)>0.25&&g<0.25&&(h=ia(0.25-g)*c+0.5)&&h!==0.5&&(h=h.toFixed(5)-1.0E-5*c));u&&j&&(o=e(u),v=e(j),c=(v>0.5)*2-1,(g=s(o-0.5,2))+s(v-0.5,2)>0.25&&g<0.25&&(v=ia(0.25-g)*c+0.5)&&v!==0.5&&(v=v.toFixed(5)-1.0E-5*c),p||(i=o,h=v));return""});c=c.split(/\s*\-\s*/);if(d=="linear"){var P=c.shift(),K=P.match(/\((.*)\)/),G,K=K&&K[1]&&K[1].split(/\s*\,\s*/),P=-e(P);if(isNaN(P))return null;K&&K.length?(K[0]in E?(I=K.shift(),K[0]in V&&(F=K.shift())):
(K[4]&&(I=K[4]),K[5]&&(F=K[5])),G=[K[0]||"0%",K[1]||"0%",K[2]||"100%",K[3]||"0%"]):(G=[0,0,g.cos(b.rad(P)),g.sin(b.rad(P))],P=1/(m(w(G[2]),w(G[3]))||1),G[2]*=P,G[3]*=P,G[2]<0&&(G[0]=-G[2],G[2]=0),G[3]<0&&(G[1]=-G[3],G[3]=0))}K=b._parseDots(c);if(!K)return null;f=f.replace(/[\(\)\s,\xb0#]/g,"_");a.gradient&&f!==a.gradient.id&&(L.defs.removeChild(a.gradient),delete a.gradient);if(!a.gradient){P=p(d+"Gradient",{id:f});a.gradient=P;I in E&&P.setAttribute("gradientUnits",j(I));F in V&&P.setAttribute("spreadMethod",
j(F));d==="radial"?(r!==void 0&&P.setAttribute("r",j(r)),o!==void 0&&v!==void 0&&(P.setAttribute("cx",j(o)),P.setAttribute("cy",j(v))),P.setAttribute("fx",j(i)),P.setAttribute("fy",j(h))):p(P,{x1:G[0],y1:G[1],x2:G[2],y2:G[3],gradientTransform:a.matrix.invert()});L.defs.appendChild(P);L=0;for(G=K.length;L<G;L++)P.appendChild(p("stop",{offset:K[L].offset?K[L].offset:L?"100%":"0%","stop-color":K[L].color||"#fff","stop-opacity":K[L].opacity===void 0?1:K[L].opacity}))}}p(W,{fill:"url('"+b._url+"#"+f+"')",
opacity:1,"fill-opacity":1});H.fill="";H.opacity=1;return H.fillOpacity=1},G=function(a){var b=a.getBBox(1);p(a.pattern,{patternTransform:a.matrix.invert()+" translate("+b.x+","+b.y+")"})},S=function(a,c,d){if(a.type=="path"){for(var e=j(c).toLowerCase().split("-"),f=a.paper,i=d?"end":"start",h=a.node,s=a.attrs,r=s["stroke-width"],g=e.length,v="classic",m,z,w=3,E=3,I=5;g--;)switch(e[g]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":v=e[g];break;case "wide":E=5;break;
case "narrow":E=2;break;case "long":w=5;break;case "short":w=2}v=="open"?(w+=2,E+=2,I+=2,m=1,z=d?4:1,e={fill:"none",stroke:s.stroke}):(z=m=w/2,e={fill:s.stroke,stroke:"none"});a._.arrows?d?(a._.arrows.endPath&&o[a._.arrows.endPath]--,a._.arrows.endMarker&&o[a._.arrows.endMarker]--):(a._.arrows.startPath&&o[a._.arrows.startPath]--,a._.arrows.startMarker&&o[a._.arrows.startMarker]--):a._.arrows={};if(v!="none"){var g="raphael-marker-"+v,F="raphael-marker-"+i+v+w+E;b._g.doc.getElementById(g)?o[g]++:
(f.defs.appendChild(p(p("path"),{"stroke-linecap":"round",d:X[v],id:g})),o[g]=1);var W=b._g.doc.getElementById(F);W?(o[F]++,w=W.getElementsByTagName("use")[0]):(W=p(p("marker"),{id:F,markerHeight:E,markerWidth:w,orient:"auto",refX:z,refY:E/2}),w=p(p("use"),{"xlink:href":"#"+g,transform:(d?"rotate(180 "+w/2+" "+E/2+") ":"")+"scale("+w/I+","+E/I+")","stroke-width":(1/((w/I+E/I)/2)).toFixed(4)}),W.appendChild(w),f.defs.appendChild(W),o[F]=1);p(w,e);f=m*(v!="diamond"&&v!="oval");d?(d=a._.arrows.startdx*
r||0,r=b.getTotalLength(s.path)-f*r):(d=f*r,r=b.getTotalLength(s.path)-(a._.arrows.enddx*r||0));e={};e["marker-"+i]="url('"+b._url+"#"+F+"')";if(r||d)e.d=Raphael.getSubpath(s.path,d,r);p(h,e);a._.arrows[i+"Path"]=g;a._.arrows[i+"Marker"]=F;a._.arrows[i+"dx"]=f;a._.arrows[i+"Type"]=v;a._.arrows[i+"String"]=c}else d?(d=a._.arrows.startdx*r||0,r=b.getTotalLength(s.path)-d):(d=0,r=b.getTotalLength(s.path)-(a._.arrows.enddx*r||0)),a._.arrows[i+"Path"]&&p(h,{d:Raphael.getSubpath(s.path,d,r)}),delete a._.arrows[i+
"Path"],delete a._.arrows[i+"Marker"],delete a._.arrows[i+"dx"],delete a._.arrows[i+"Type"],delete a._.arrows[i+"String"];for(e in o)o.hasOwnProperty(e)&&!o[e]&&(a=b._g.doc.getElementById(e))&&a.parentNode.removeChild(a)}},W={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},v=function(a,c,d){var e=W[j(c).toLowerCase()];if(c=e||c!==void 0&&[].concat(c)){var f=a.attrs["stroke-width"]||"1",d=
{round:f,square:f,butt:0}[a.attrs["stroke-linecap"]||d["stroke-linecap"]]||0,i,h=i=c.length;if(e)for(;i--;)c[i]=c[i]*f+(i%2?1:-1)*d;else for(i=0;i<h;i+=2)c[i]-=d,c[i+1]&&(c[i+1]+=d),c[i]<=0&&(c[i]=0.1);b.is(c,"array")&&p(a.node,{"stroke-dasharray":c.join(",")})}},F=b._setFillAndStroke=function(a,c){if(a.paper.canvas){var d=a.node,e=a.attrs,i=a.paper,h=d.style.visibility;d.style.visibility="hidden";for(var s in c)if(c.hasOwnProperty(s)&&b._availableAttrs.hasOwnProperty(s)){var g=c[s];e[s]=g;switch(s){case "blur":a.blur(g);
break;case "href":case "title":case "target":var o=d.parentNode;if(o.tagName.toLowerCase()!="a"){if(g=="")break;var z=p("a");o.insertBefore(z,d);z.appendChild(d);o=z}s=="target"?o.setAttributeNS("http://www.w3.org/1999/xlink","show",g=="blank"?"new":g):o.setAttributeNS("http://www.w3.org/1999/xlink",s,g);d.titleNode=o;break;case "cursor":d.style.cursor=g;break;case "transform":a.transform(g);break;case "rotation":b.is(g,"array")?a.rotate.apply(a,g):a.rotate(g);break;case "arrow-start":S(a,g);break;
case "arrow-end":S(a,g,1);break;case "clip-path":var E=!0;case "clip-rect":o=!E&&j(g).split(I);a._.clipispath=!!E;if(E||o.length==4){a.clip&&a.clip.parentNode.parentNode.removeChild(a.clip.parentNode);var z=p("clipPath"),F=p(E?"path":"rect");z.id=b.createUUID();p(F,E?{d:g?e["clip-path"]=b._pathToAbsolute(g):b._availableAttrs.path,fill:"none"}:{x:o[0],y:o[1],width:o[2],height:o[3],transform:a.matrix.invert()});z.appendChild(F);i.defs.appendChild(z);p(d,{"clip-path":"url('"+b._url+"#"+z.id+"')"});a.clip=
F}if(!g&&(g=d.getAttribute("clip-path")))(g=b._g.doc.getElementById(g.replace(/(^url\(#|\)$)/g,"")))&&g.parentNode.removeChild(g),p(d,{"clip-path":""}),delete a.clip;break;case "path":if(a.type=="path")p(d,{d:g?e.path=b._pathToAbsolute(g):b._availableAttrs.path}),a._.dirty=1,a._.arrows&&("startString"in a._.arrows&&S(a,a._.arrows.startString),"endString"in a._.arrows&&S(a,a._.arrows.endString,1));break;case "width":if(d.setAttribute(s,g),a._.dirty=1,e.fx)s="x",g=e.x;else break;case "x":e.fx&&(g=-e.x-
(e.width||0));case "rx":if(s=="rx"&&a.type=="rect")break;case "cx":d.setAttribute(s,g);a.pattern&&G(a);a._.dirty=1;break;case "height":if(d.setAttribute(s,g),a._.dirty=1,e.fy)s="y",g=e.y;else break;case "y":e.fy&&(g=-e.y-(e.height||0));case "ry":if(s=="ry"&&a.type=="rect")break;case "cy":d.setAttribute(s,g);a.pattern&&G(a);a._.dirty=1;break;case "r":a.type=="rect"?p(d,{rx:g,ry:g}):d.setAttribute(s,g);a._.dirty=1;break;case "src":a.type=="image"&&d.setAttributeNS("http://www.w3.org/1999/xlink","href",
g);break;case "stroke-width":if(a._.sx!=1||a._.sy!=1)g/=m(w(a._.sx),w(a._.sy))||1;i._vbSize&&(g*=i._vbSize);K&&g===0&&(g=1.0E-6);d.setAttribute(s,g);e["stroke-dasharray"]&&v(a,e["stroke-dasharray"],c);a._.arrows&&("startString"in a._.arrows&&S(a,a._.arrows.startString),"endString"in a._.arrows&&S(a,a._.arrows.endString,1));break;case "stroke-dasharray":v(a,g,c);break;case "fill":var W=j(g).match(b._ISURL);if(W){var z=p("pattern"),ia=p("image");z.id=b.createUUID();p(z,{x:0,y:0,patternUnits:"userSpaceOnUse",
height:1,width:1});p(ia,{x:0,y:0,"xlink:href":W[1]});z.appendChild(ia);(function(a){b._preload(W[1],function(){var b=this.offsetWidth,c=this.offsetHeight;p(a,{width:b,height:c});p(ia,{width:b,height:c});i.safari()})})(z);i.defs.appendChild(z);p(d,{fill:"url('"+b._url+"#"+z.id+"')"});a.pattern=z;a.pattern&&G(a);break}o=b.getRGB(g);if(o.error){if((a.type=="circle"||a.type=="ellipse"||j(g).charAt()!="r")&&L(a,g)){if("opacity"in e||"fill-opacity"in e)if(o=b._g.doc.getElementById(d.getAttribute("fill").replace(/^url\(#|\)$/g,
"")))o=o.getElementsByTagName("stop"),p(o[o.length-1],{"stop-opacity":("opacity"in e?e.opacity:1)*("fill-opacity"in e?e["fill-opacity"]:1)});e.gradient=g;e.fill="none";break}}else delete c.gradient,delete e.gradient,!b.is(e.opacity,"undefined")&&b.is(c.opacity,"undefined")&&p(d,{opacity:e.opacity}),!b.is(e["fill-opacity"],"undefined")&&b.is(c["fill-opacity"],"undefined")&&p(d,{"fill-opacity":e["fill-opacity"]});o.hasOwnProperty("opacity")?(p(d,{"fill-opacity":o.opacity>1?o.opacity/100:o.opacity}),
a._.opacitydirty=!0):a._.opacitydirty&&b.is(e["fill-opacity"],"undefined")&&b.is(c["fill-opacity"],"undefined")&&(d.removeAttribute("fill-opacity"),delete a._.opacitydirty);case "stroke":o=b.getRGB(g);d.setAttribute(s,o.hex);s=="stroke"&&o.hasOwnProperty("opacity")&&p(d,{"stroke-opacity":o.opacity>1?o.opacity/100:o.opacity});s=="stroke"&&a._.arrows&&("startString"in a._.arrows&&S(a,a._.arrows.startString),"endString"in a._.arrows&&S(a,a._.arrows.endString,1));break;case "gradient":(a.type=="circle"||
a.type=="ellipse"||j(g).charAt()!="r")&&L(a,g);break;case "shape-rendering":e[s]=g=H[g]||g||"default";d.setAttribute(s,g);d.style.shapeRendering=g;break;case "line-height":case "vertical-align":break;case "visibility":g==="hidden"?a.hide():a.show();break;case "opacity":e.gradient&&!e.hasOwnProperty("stroke-opacity")&&p(d,{"stroke-opacity":g>1?g/100:g});case "fill-opacity":if(e.gradient){if(o=b._g.doc.getElementById(d.getAttribute("fill").replace(/^url\(#|\)$/g,"")))o=o.getElementsByTagName("stop"),
p(o[o.length-1],{"stop-opacity":g});break}default:s=="font-size"&&(g=r(g,10)+"px"),o=s.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),d.style[o]=g,a._.dirty=1,d.setAttribute(s,g)}}f(a,c);d.style.visibility=h}},f=function(a,c){if(!(a.type!="text"||!c.hasOwnProperty("text")&&!c.hasOwnProperty("font")&&!c.hasOwnProperty("font-size")&&!c.hasOwnProperty("x")&&!c.hasOwnProperty("y")&&!c.hasOwnProperty("line-height")&&!c.hasOwnProperty("vertical-align"))){var d=a.attrs,f=a.node,i=f.firstChild&&
b._g.doc.defaultView.getComputedStyle(f.firstChild,""),i=i?e(i.getPropertyValue("font-size")):e(c["font-size"]||d["font-size"])||10,h=e(c["line-height"]||d["line-height"])||i*1.2,g=d.hasOwnProperty("vertical-align")?d["vertical-align"]:"middle";isNaN(i)&&(i=10);isNaN(h)&&(h=i*1.2);g=g==="top"?-0.5:g==="bottom"?0.5:0;if(c.hasOwnProperty("text")&&(c.text!==d.text||a._textdirty)){for(d.text=c.text;f.firstChild;)f.removeChild(f.firstChild);for(var s=j(c.text).split(/\n|<br\s*?\/?>/ig),i=[],o,r=0,v=s.length;r<
v;r++)o=p("tspan"),r?p(o,{dy:h,x:d.x}):p(o,{dy:h*s.length*g,x:d.x}),s[r]||(o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),s[r]=" "),o.appendChild(b._g.doc.createTextNode(s[r])),f.appendChild(o),i[r]=o;a._textdirty=!1}else{i=f.getElementsByTagName("tspan");r=0;for(v=i.length;r<v;r++)r?p(i[r],{dy:h,x:d.x}):p(i[0],{dy:h*i.length*g,x:d.x})}p(f,{x:d.x,y:d.y});a._.dirty=1;f=a._getBBox();h=d.y-(f.y+f.height/2);if(f.isCalculated)switch(d["vertical-align"]){case "top":h=f.height*
0.75;break;case "bottom":h=-(f.height*0.25);break;default:h=d.y-(f.y+f.height*0.25)}h&&b.is(h,"finite")&&i[0]&&p(i[0],{dy:h})}},i=function(a,c,d){d=d||c;this.node=this[0]=a;a.raphael=!0;a.raphaelid=this.id=b._oid++;this.matrix=b.matrix();this.realPath=null;this.attrs=this.attrs||{};this.styles=this.styles||{};this.followers=this.followers||[];this.paper=c;this.ca=this.customAttributes=this.customAttributes||new c._CustomAttributes;this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};this.parent=
d;!d.bottom&&(d.bottom=this);(this.prev=d.top)&&(d.top.next=this);d.top=this;this.next=null},h=b.el;i.prototype=h;h.constructor=i;b._engine.getNode=function(a){a=a.node||a[0].node;return a.titleNode||a};b._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.titleNode||a};b._engine.path=function(a,b,c){var d=p("path");c&&c.canvas&&c.canvas.appendChild(d)||b.canvas&&b.canvas.appendChild(d);b=new i(d,b,c);b.type="path";F(b,{fill:"none",stroke:"#000",path:a});return b};h.rotate=function(a,
b,c){if(this.removed)return this;a=j(a).split(I);a.length-1&&(b=e(a[1]),c=e(a[2]));a=e(a[0]);c==null&&(b=c);if(b==null||c==null)c=this.getBBox(1),b=c.x+c.width/2,c=c.y+c.height/2;this.transform(this._.transform.concat([["r",a,b,c]]));return this};h.scale=function(a,b,c,d){var f;if(this.removed)return this;a=j(a).split(I);a.length-1&&(b=e(a[1]),c=e(a[2]),d=e(a[3]));a=e(a[0]);b==null&&(b=a);d==null&&(c=d);if(c==null||d==null)f=this.getBBox(1);c=c==null?f.x+f.width/2:c;d=d==null?f.y+f.height/2:d;this.transform(this._.transform.concat([["s",
a,b,c,d]]));return this};h.translate=function(a,b){if(this.removed)return this;a=j(a).split(I);a.length-1&&(b=e(a[1]));a=e(a[0])||0;this.transform(this._.transform.concat([["t",a,+b||0]]));return this};h.transform=function(a){var c=this._;if(a==null)return c.transform;b._extractTransform(this,a);this.clip&&!c.clipispath&&p(this.clip,{transform:this.matrix.invert()});this.pattern&&G(this);this.node&&p(this.node,{transform:this.matrix});if(c.sx!=1||c.sy!=1)a=this.attrs.hasOwnProperty("stroke-width")?
this.attrs["stroke-width"]:1,this.attr({"stroke-width":a});return this};h.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};h.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};h.remove=function(){if(!this.removed&&this.parent.canvas){var a=b._engine.getNode(this),c=this.paper,d=c.defs;c.__set__&&c.__set__.exclude(this);P.unbind("raphael.*.*."+this.id);for(this.gradient&&d&&d.removeChild(this.gradient);d=this.followers.pop();)d.el.remove();
this.parent.canvas.removeChild(a);b._tear(this,c);for(d in this)this[d]=typeof this[d]==="function"?b._removedFactory(d):null;this.removed=!0}};h._getBBox=function(){var a=this.node,b={},c=this.attrs,d,e;a.style.display==="none"&&(this.show(),e=!0);try{if(b=a.getBBox(),this.type=="text"){if(b.x===void 0)b.isCalculated=!0,d=c["text-anchor"],b.x=(c.x||0)-b.width*(d==="start"?0:d==="middle"?0.5:1);if(b.y===void 0)b.isCalculated=!0,d=c["vertical-align"],b.y=(c.y||0)-b.height*(d==="bottom"?1:d==="middle"?
0.5:0)}}catch(f){}finally{b=b||{}}e&&this.hide();return b};h.css=function(a,c){if(this.removed)return this;if(c==null&&b.is(a,"string")){for(var d=a.split(I),e={},f=0,i=d.length;f<i;f++)a=d[f],a in this.styles&&(e[a]=this.styles[a]);return i-1?e:e[d[0]]}if(c==null&&b.is(a,"array")){e={};f=0;for(i=a.length;f<i;f++)e[a[f]]=this.styles(a[f]);return e}c!=null?(d={},d[a]=c):a!=null&&b.is(a,"object")&&(d=a);e={};for(i in d)f=i.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),b._availableAttrs.hasOwnProperty(f)||
f==="color"?(f==="color"&&this.type==="text"&&(f="fill"),e[f]=d[i],e.dirty=!0):(P("raphael.css."+f+"."+this.id,this,d[i],f),this.node.style[f]=d[i],this.styles[f]=d[i]);f=0;for(i=this.followers.length;f<i;f++)this.followers[f].el.css(d);e.hasOwnProperty("dirty")&&(delete e.dirty,this.attr(e));return this};h.attr=function(a,c){if(this.removed)return this;if(a==null){var d={},e;for(e in this.attrs)this.attrs.hasOwnProperty(e)&&(d[e]=this.attrs[e]);d.gradient&&d.fill=="none"&&(d.fill=d.gradient)&&delete d.gradient;
d.transform=this._.transform;d.visibility=this.node.style.display==="none"?"hidden":"visible";return d}if(c==null&&b.is(a,"string")){if(a=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient)return this.attrs.gradient;if(a=="transform")return this._.transform;if(a=="visibility")return this.node.style.display==="none"?"hidden":"visible";var d=a.split(I),f={},i=0;for(e=d.length;i<e;i++)a=d[i],f[a]=a in this.attrs?this.attrs[a]:b.is(this.ca[a],"function")?this.ca[a].def:b._availableAttrs[a];return e-
1?f:f[d[0]]}if(c==null&&b.is(a,"array")){f={};i=0;for(e=a.length;i<e;i++)f[a[i]]=this.attr(a[i]);return f}c!=null?(d={},d[a]=c):a!=null&&b.is(a,"object")&&(d=a);for(i in d)P("raphael.attr."+i+"."+this.id,this,d[i],i);var h={};for(i in this.ca)if(this.ca[i]&&d.hasOwnProperty(i)&&b.is(this.ca[i],"function")&&!this.ca["_invoked"+i]){this.ca["_invoked"+i]=!0;e=this.ca[i].apply(this,[].concat(d[i]));delete this.ca["_invoked"+i];for(f in e)e.hasOwnProperty(f)&&(d[f]=e[f]);this.attrs[i]=d[i];e===!1&&(h[i]=
d[i],delete d[i])}F(this,d);var j,i=0;for(e=this.followers.length;i<e;i++)j=this.followers[i],j.cb&&!j.cb.call(j.el,d,this)||j.el.attr(d);for(f in h)d[f]=h[f];return this};h.blur=function(a){if(+a!==0){var c=p("filter"),d=p("feGaussianBlur");this.attrs.blur=a;c.id=b.createUUID();p(d,{stdDeviation:+a||1.5});c.appendChild(d);this.paper.defs.appendChild(c);this._blur=c;p(this.node,{filter:"url('"+b._url+"#"+c.id+"')"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,
delete this.attrs.blur),this.node.removeAttribute("filter")};h.on=function(a,c){if(this.removed)return this;var d=c;b._supportsTouch&&(a=b._touchMap[a]||a==="click"&&"touchstart"||a,d=function(a){a.preventDefault();c()});this.node["on"+a]=d;return this};b._engine.group=function(a,b,c){var d=p("g");c&&c.canvas&&c.canvas.appendChild(d)||a.canvas&&a.canvas.appendChild(d);a=new i(d,a,c);a.type="group";a.canvas=a.node;a.top=null;a.bottom=null;b&&d.setAttribute("class",["red",b,a.id].join("-"));return a};
b._engine.circle=function(a,b,c,d,e){var f=p("circle");e&&e.canvas&&e.canvas.appendChild(f)||a.canvas&&a.canvas.appendChild(f);a=new i(f,a,e);a.attrs={cx:b,cy:c,r:d,fill:"none",stroke:"#000"};a.type="circle";p(f,a.attrs);return a};b._engine.rect=function(a,b,c,d,e,f,h){var j=p("rect");h&&h.canvas&&h.canvas.appendChild(j)||a.canvas&&a.canvas.appendChild(j);a=new i(j,a,h);a.attrs={x:b,y:c,width:d,height:e,r:f||0,rx:f||0,ry:f||0,fill:"none",stroke:"#000"};a.type="rect";p(j,a.attrs);return a};b._engine.ellipse=
function(a,b,c,d,e,f){var h=p("ellipse");f&&f.canvas&&f.canvas.appendChild(h)||a.canvas&&a.canvas.appendChild(h);a=new i(h,a,f);a.attrs={cx:b,cy:c,rx:d,ry:e,fill:"none",stroke:"#000"};a.type="ellipse";p(h,a.attrs);return a};b._engine.image=function(a,b,c,d,e,f,h){var j=p("image");p(j,{x:c,y:d,width:e,height:f,preserveAspectRatio:"none"});j.setAttributeNS("http://www.w3.org/1999/xlink","href",b);h&&h.canvas&&h.canvas.appendChild(j)||a.canvas&&a.canvas.appendChild(j);a=new i(j,a,h);a.attrs={x:c,y:d,
width:e,height:f,src:b};a.type="image";return a};b._engine.text=function(a,b,c,d,e){var f=p("text");e&&e.canvas&&e.canvas.appendChild(f)||a.canvas&&a.canvas.appendChild(f);a=new i(f,a,e);a.attrs={x:b,y:c,"text-anchor":"middle","vertical-align":"middle",text:d,stroke:"none",fill:"#000"};a.type="text";a._textdirty=!0;F(a,a.attrs);return a};b._engine.setSize=function(a,b){this.width=a||this.width;this.height=b||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",
this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};b._engine.create=function(){var a=b._getContainer.apply(0,arguments),c=a&&a.container,d=a.x,e=a.y,f=a.width,a=a.height;if(!c)throw Error("SVG container not found.");var i=p("svg"),h,d=d||0,e=e||0,f=f||512,a=a||342;p(i,{height:a,version:1.1,width:f,xmlns:"http://www.w3.org/2000/svg"});c==1?(i.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:absolute;left:"+
d+"px;top:"+e+"px",b._g.doc.body.appendChild(i),h=1):(i.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:relative",c.firstChild?c.insertBefore(i,c.firstChild):c.appendChild(i));c=new b._Paper;c.width=f;c.height=a;c.canvas=i;c.clear();c._left=c._top=0;h&&(c.renderfix=function(){});c.renderfix();return c};b._engine.setViewBox=
function(a,b,c,d,e){P("raphael.setViewBox",this,this._viewBox,[a,b,c,d,e]);var f=m(c/this.width,d/this.height),i=this.top,h;a==null?(this._vbSize&&(f=1),delete this._vbSize,h="0 0 "+this.width+" "+this.height):(this._vbSize=f,h=a+" "+b+" "+c+" "+d);for(p(this.canvas,{viewBox:h,preserveAspectRatio:e?"meet":"xMinYMin"});f&&i;)h="stroke-width"in i.attrs?i.attrs["stroke-width"]:1,i.attr({"stroke-width":h}),i._.dirty=1,i._.dirtyT=1,i=i.prev;this._viewBox=[a,b,c,d,!!e];return this};b.prototype.renderfix=
function(){var a=this.canvas,b=a.style,c;try{c=a.getScreenCTM()||a.createSVGMatrix()}catch(d){c=a.createSVGMatrix()}a=-c.e%1;c=-c.f%1;if(a||c){if(a)this._left=(this._left+a)%1,b.left=this._left+"px";if(c)this._top=(this._top+c)%1,b.top=this._top+"px"}};b.prototype._desc=function(a){var c=this.desc;if(c)for(;c.firstChild;)c.removeChild(c.firstChild);else this.desc=c=p("desc"),this.canvas.appendChild(c);c.appendChild(b._g.doc.createTextNode(b.is(a,"string")?a:"Created with Red Rapha\u00ebl "+b.version))};
b.prototype.clear=function(){P("raphael.clear",this);for(var a=this.canvas;a.firstChild;)a.removeChild(a.firstChild);this.bottom=this.top=null;this._desc(b.desc);a.appendChild(this.defs=p("defs"))};b.prototype.remove=function(){P("raphael.remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var a in this)this[a]=typeof this[a]=="function"?b._removedFactory(a):null;this.removed=!0};var c=b.st,d;for(d in h)h.hasOwnProperty(d)&&!c.hasOwnProperty(d)&&(c[d]=function(a){return function(){var b=
arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(d))}(window.Raphael);window.Raphael.vml&&function(b){var j=String,e=parseFloat,g=Math,m=g.round,w=g.max,Z=g.min,s=g.sqrt,ia=g.abs,I=/[, ]+/,K=b.eve,P={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},X=/([clmz]),?([^clmz]*)/gi,H=/ progid:\S+Blur\([^\)]+\)/g,o=/-?[^,\s-]+/g,p={path:1,rect:1,image:1},E={circle:1,ellipse:1},V=function(c){var d=/[ahqstv]/ig,a=b._pathToAbsolute;j(c).match(d)&&(a=b._path2curve);d=/[clmz]/g;if(a==b._pathToAbsolute&&
!j(c).match(d))return(c=j(c).replace(X,function(a,b,c){var d=[],e=b.toLowerCase()=="m",f=P[b];c.replace(o,function(a){e&&d.length==2&&(f+=d+P[b=="m"?"l":"L"],d=[]);d.push(m(a*21600))});return f+d}))||"m0,0";for(var d=a(c),e,c=[],f=0,i=d.length;f<i;f++){a=d[f];e=d[f][0].toLowerCase();e=="z"&&(e="x");for(var h=1,g=a.length;h<g;h++)e+=m(a[h]*21600)+(h!=g-1?",":"");c.push(e)}return c.length?c.join(" "):"m0,0"},L=function(c,d,a){var e=b.matrix();e.rotate(-c,0.5,0.5);return{dx:e.x(d,a),dy:e.y(d,a)}},G=
function(b,d,a,e,f,i){var h=b._,j=b.matrix,g=h.fillpos,b=b.node,s=b.style,o=1,p="",r=21600/d,v=21600/a;s.visibility="hidden";if(d&&a){b.coordsize=ia(r)+" "+ia(v);s.rotation=i*(d*a<0?-1:1);if(i)f=L(i,e,f),e=f.dx,f=f.dy;d<0&&(p+="x");a<0&&(p+=" y")&&(o=-1);s.flip=p;b.coordorigin=e*-r+" "+f*-v;if(g||h.fillsize){e=(e=b.getElementsByTagName("fill"))&&e[0];b.removeChild(e);if(g)f=L(i,j.x(g[0],g[1]),j.y(g[0],g[1])),e.position=f.dx*o+" "+f.dy*o;if(h.fillsize)e.size=h.fillsize[0]*ia(d)+" "+h.fillsize[1]*ia(a);
b.appendChild(e)}s.visibility=""}};b._url="";b.toString=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\u00ebl "+this.version};var S=function(b,d,a){for(var d=j(d).toLowerCase().split("-"),a=a?"end":"start",e=d.length,f="classic",i="medium",h="medium";e--;)switch(d[e]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":f=d[e];break;case "wide":case "narrow":h=d[e];break;case "long":case "short":i=d[e]}b=b.node.getElementsByTagName("stroke")[0];
b[a+"arrow"]=f;b[a+"arrowlength"]=i;b[a+"arrowwidth"]=h},W=b._setFillAndStroke=function(c,d){if(c.paper.canvas){c.attrs=c.attrs||{};var a=c.node,k=c.attrs,i=a.style,h=p[c.type]&&(d.x!=k.x||d.y!=k.y||d.width!=k.width||d.height!=k.height||d.cx!=k.cx||d.cy!=k.cy||d.rx!=k.rx||d.ry!=k.ry||d.r!=k.r),g=E[c.type]&&(k.cx!=d.cx||k.cy!=d.cy||k.r!=d.r||k.rx!=d.rx||k.ry!=d.ry),s=c.type==="group",o;for(o in d)d.hasOwnProperty(o)&&(k[o]=d[o]);if(h)k.path=b._getPath[c.type](c),c._.dirty=1;d.href&&(a.href=d.href);
d.title&&(a.title=d.title);d.target&&(a.target=d.target);d.cursor&&(i.cursor=d.cursor);"blur"in d&&c.blur(d.blur);if(d.path&&c.type=="path"||h)if(a.path=V(~j(k.path).toLowerCase().indexOf("r")?b._pathToAbsolute(k.path):k.path),c.type=="image")c._.fillpos=[k.x,k.y],c._.fillsize=[k.width,k.height],G(c,1,1,0,0,0);"transform"in d&&c.transform(d.transform);if("rotation"in d)i=d.rotation,b.is(i,"array")?c.rotate.apply(c,i):c.rotate(i);if("shape-rendering"in d)a.style.antialias=d["shape-rendering"]!=="crisp";
"visibility"in d&&(d.visibility==="hidden"?c.hide():c.show());if(g)i=+k.cx,g=+k.cy,h=+k.rx||+k.r||0,o=+k.ry||+k.r||0,a.path=b.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",m((i-h)*21600),m((g-o)*21600),m((i+h)*21600),m((g+o)*21600),m(i*21600));if("clip-rect"in d){i=j(d["clip-rect"]).split(I);if(i.length==4){i[0]=+i[0];i[1]=+i[1];i[2]=+i[2]+i[0];i[3]=+i[3]+i[1];h=s?a:a.clipRect||b._g.doc.createElement("div");g=h.style;if(s)c.clip=i.slice(),h=c.matrix.offset(),h=[e(h[0]),e(h[1])],i[0]-=h[0],i[1]-=h[1],
i[2]-=h[0],i[3]-=h[1],g.width="10800px",g.height="10800px";else if(!a.clipRect)g.top="0",g.left="0",g.width=c.paper.width+"px",g.height=c.paper.height+"px",a.parentNode.insertBefore(h,a),h.appendChild(a),a.clipRect=h;g.position="absolute";g.clip=b.format("rect({1}px {2}px {3}px {0}px)",i)}if(!d["clip-rect"])if(s&&c.clip)a.style.clip="rect(auto auto auto auto)",delete c.clip;else if(a.clipRect)a.clipRect.style.clip="rect(auto auto auto auto)"}if(c.textpath)s=c.textpath.style,d.font&&(s.font=d.font),
d["font-family"]&&(s.fontFamily='"'+d["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),d["font-size"]&&(s.fontSize=d["font-size"]),d["font-weight"]&&(s.fontWeight=d["font-weight"]),d["font-style"]&&(s.fontStyle=d["font-style"]);"arrow-start"in d&&S(c,d["arrow-start"]);"arrow-end"in d&&S(c,d["arrow-end"],1);if(d.opacity!=null||d["stroke-width"]!=null||d.fill!=null||d.src!=null||d.stroke!=null||d["stroke-width"]!=null||d["stroke-opacity"]!=null||d["fill-opacity"]!=null||d["stroke-dasharray"]!=
null||d["stroke-miterlimit"]!=null||d["stroke-linejoin"]!=null||d["stroke-linecap"]!=null){s=a.getElementsByTagName("fill");i=-1;s=s&&s[0];!s&&(s=f("fill"));if(c.type=="image"&&d.src)s.src=d.src;d.fill&&(s.on=!0);if(s.on==null||d.fill=="none"||d.fill===null)s.on=!1;if(s.on&&d.fill)if(g=j(d.fill).match(b._ISURL))s.parentNode==a&&a.removeChild(s),s.rotate=!0,s.src=g[1],s.type="tile",h=c.getBBox(1),s.position=h.x+" "+h.y,c._.fillpos=[h.x,h.y],b._preload(g[1],function(){c._.fillsize=[this.offsetWidth,
this.offsetHeight]});else if(g=b.getRGB(d.fill),s.color=g.hex,s.src="",s.type="solid",g.error&&(c.type in{circle:1,ellipse:1}||j(d.fill).charAt()!="r")&&v(c,d.fill,s))k.fill="none",k.gradient=d.fill,s.rotate=!1;else if("opacity"in g&&!("fill-opacity"in d))i=g.opacity;if(i!==-1||"fill-opacity"in d||"opacity"in d)if(g=((+k["fill-opacity"]+1||2)-1)*((+k.opacity+1||2)-1)*((+i+1||2)-1),g=Z(w(g,0),1),s.opacity=g,s.src)s.color="none";a.appendChild(s);s=a.getElementsByTagName("stroke")&&a.getElementsByTagName("stroke")[0];
i=!1;!s&&(i=s=f("stroke"));if(d.stroke&&d.stroke!="none"||d["stroke-width"]||d["stroke-opacity"]!=null||d["stroke-dasharray"]||d["stroke-miterlimit"]||d["stroke-linejoin"]||d["stroke-linecap"])s.on=!0;(d.stroke=="none"||d.stroke===null||s.on==null||d.stroke==0||d["stroke-width"]==0)&&(s.on=!1);g=b.getRGB("stroke"in d?d.stroke:k.stroke);s.on&&d.stroke&&(s.color=g.hex);g=((+k["stroke-opacity"]+1||2)-1)*((+k.opacity+1||2)-1)*((+g.opacity+1||2)-1);h=(e(d["stroke-width"])||1)*0.75;g=Z(w(g,0),1);d["stroke-width"]==
null&&(h=k["stroke-width"]);d["stroke-width"]&&(s.weight=h);h&&h<1&&(g*=h)&&(s.weight=1);s.opacity=g;d["stroke-linejoin"]&&(s.joinstyle=d["stroke-linejoin"])||i&&(i.joinstyle="miter");s.miterlimit=d["stroke-miterlimit"]||8;d["stroke-linecap"]&&(s.endcap=d["stroke-linecap"]=="butt"?"flat":d["stroke-linecap"]=="square"?"square":"round");if(d["stroke-dasharray"])g={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot",
"--..":"longdashdotdot"},s.dashstyle=g.hasOwnProperty(d["stroke-dasharray"])?g[d["stroke-dasharray"]]:d["stroke-dasharray"].join&&d["stroke-dasharray"].join(" ")||"";i&&a.appendChild(s)}if(c.type=="text"){c.paper.canvas.style.display="";a=c.paper.span;s=k.font&&k.font.match(/\d+(?:\.\d*)?(?=px)/);g=k["line-height"]&&(k["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/);i=a.style;k.font&&(i.font=k.font);k["font-family"]&&(i.fontFamily=k["font-family"]);k["font-weight"]&&(i.fontWeight=k["font-weight"]);
k["font-style"]&&(i.fontStyle=k["font-style"]);s=e(k["font-size"]||s&&s[0])||10;i.fontSize=s*100+"px";g=e(k["line-height"]||g&&g[0])||12;k["line-height"]&&(i.lineHeight=g*100+"px");c.textpath.string&&(a.innerHTML=j(c.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));a=a.getBoundingClientRect();c.W=k.w=(a.right-a.left)/100;c.H=k.h=(a.bottom-a.top)/100;c.X=k.x;c.Y=k.y;switch(k["vertical-align"]){case "top":c.bby=c.H/2;break;case "bottom":c.bby=-c.H/2;break;default:c.bby=
0}("x"in d||"y"in d||c.bby!==void 0)&&(c.path.v=b.format("m{0},{1}l{2},{1}",m(k.x*21600),m((k.y+(c.bby||0))*21600),m(k.x*21600)+1));a=["x","y","text","font","font-family","font-weight","font-style","font-size","line-height"];s=0;for(i=a.length;s<i;s++)if(a[s]in d){c._.dirty=1;break}switch(k["text-anchor"]){case "start":c.textpath.style["v-text-align"]="left";c.bbx=c.W/2;break;case "end":c.textpath.style["v-text-align"]="right";c.bbx=-c.W/2;break;default:c.textpath.style["v-text-align"]="center",c.bbx=
0}c.textpath.style["v-text-kern"]=!0}}},v=function(c,d,a){c.attrs=c.attrs||{};var f=Math.pow,i="linear",h=".5 .5";c.attrs.gradient=d;d=j(d).replace(b._radial_gradient,function(a,b){i="radial";var b=b&&b.split(",")||[],c=b[3],d=b[4];c&&d&&(c=e(c),d=e(d),f(c-0.5,2)+f(d-0.5,2)>0.25&&(d=s(0.25-f(c-0.5,2))*((d>0.5)*2-1)+0.5),h=c+" "+d);return""});d=d.split(/\s*\-\s*/);if(i=="linear"){var g=d.shift(),g=-e(g);if(isNaN(g))return null}d=b._parseDots(d);if(!d)return null;c=c.shape||c.node;if(d.length){c.removeChild(a);
a.on=!0;a.method="none";a.color=d[0].color;a.color2=d[d.length-1].color;for(var o=[],p=1,r=d[0].opacity===void 0?1:d[0].opacity,v=0,m=d.length;v<m;v++)if(d[v].offset&&o.push(d[v].offset+" "+d[v].color),d[v].opacity!==void 0)p=d[v].opacity;a.colors=o.length?o.join():"0% "+a.color;a.opacity=p;a["o:opacity2"]=r;i=="radial"?(a.type="gradientTitle",a.focus="100%",a.focussize="0 0",a.focusposition=h,a.angle=0):(a.type="gradient",a.angle=(270-g)%360);c.appendChild(a)}return 1},F=function(c,d,a){a=a||d;this.node=
this[0]=c;c.raphael=!0;c.raphaelid=this.id=b._oid++;this.Y=this.X=0;this.attrs=this.attrs||{};this.styles=this.styles||{};this.followers=this.followers||[];this.paper=d;this.ca=this.customAttributes=this.customAttributes||new d._CustomAttributes;this.matrix=b.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};this.parent=a;!a.bottom&&(a.bottom=this);(this.prev=a.top)&&(a.top.next=this);a.top=this;this.next=null},g=b.el;F.prototype=g;g.constructor=F;g.transform=function(c){if(c==
null)return this._.transform;var d=this.paper._viewBoxShift,a=d?"s"+[d.scale,d.scale]+"-1-1t"+[d.dx,d.dy]:"",e;d&&(e=c=j(c).replace(/\.{3}|\u2026/g,this._.transform||""));b._extractTransform(this,a+c);var d=this.matrix.clone(),f=this.skew,c=this.node,a=~j(this.attrs.fill).indexOf("-"),i=!j(this.attrs.fill).indexOf("url(");d.translate(-0.5,-0.5);i||a||this.type=="image"?(f.matrix="1 0 0 1",f.offset="0 0",f=d.split(),a&&f.noRotation||!f.isSimple?(c.style.filter=d.toFilter(),d=this.getBBox(),a=this.getBBox(1),
i=d.x2&&a.x2&&"x2"||"x",f=d.y2&&a.y2&&"y2"||"y",i=d[i]-a[i],d=d[f]-a[f],c.coordorigin=i*-21600+" "+d*-21600,G(this,1,1,i,d,0)):(c.style.filter="",G(this,f.scalex,f.scaley,f.dx,f.dy,f.rotate))):(c.style.filter="",f.matrix=j(d),f.offset=d.offset());e&&(this._.transform=e);return this};g.rotate=function(b,d,a){if(this.removed)return this;if(b!=null){b=j(b).split(I);b.length-1&&(d=e(b[1]),a=e(b[2]));b=e(b[0]);a==null&&(d=a);if(d==null||a==null)a=this.getBBox(1),d=a.x+a.width/2,a=a.y+a.height/2;this._.dirtyT=
1;this.transform(this._.transform.concat([["r",b,d,a]]));return this}};g.translate=function(b,d){if(this.removed)return this;b=j(b).split(I);b.length-1&&(d=e(b[1]));b=e(b[0])||0;d=+d||0;this._.bbox&&(this._.bbox.x+=b,this._.bbox.y+=d);this.transform(this._.transform.concat([["t",b,d]]));return this};g.scale=function(b,d,a,f){if(this.removed)return this;b=j(b).split(I);b.length-1&&(d=e(b[1]),a=e(b[2]),f=e(b[3]),isNaN(a)&&(a=null),isNaN(f)&&(f=null));b=e(b[0]);d==null&&(d=b);f==null&&(a=f);if(a==null||
f==null)var i=this.getBBox(1);a=a==null?i.x+i.width/2:a;f=f==null?i.y+i.height/2:f;this.transform(this._.transform.concat([["s",b,d,a,f]]));this._.dirtyT=1;return this};g.hide=function(){!this.removed&&(this.node.style.display="none");return this};g.show=function(){!this.removed&&(this.node.style.display="");return this};g._getBBox=function(){if(this.removed)return{};return{x:this.X+(this.bbx||0)-this.W/2,y:this.Y+(this.bby||0)-this.H/2,width:this.W,height:this.H}};g.remove=function(){if(!this.removed&&
this.parent.canvas){var c,d=b._engine.getNode(this);this.paper.__set__&&this.paper.__set__.exclude(this);for(K.unbind("raphael.*.*."+this.id);c=this.followers.pop();)c.el.remove();this.shape&&this.shape.parentNode.removeChild(this.shape);d.parentNode.removeChild(d);b._tear(this,this.paper);for(c in this)this[c]=typeof this[c]=="function"?b._removedFactory(c):null;this.removed=!0}};g.css=function(c,d){if(this.removed)return this;if(d==null&&b.is(c,"string")){for(var a=c.split(I),e={},f=0,i=a.length;f<
i;f++)c=a[f],c in this.styles&&(e[c]=this.styles[c]);return i-1?e:e[a[0]]}if(d==null&&b.is(c,"array")){e={};f=0;for(i=c.length;f<i;f++)e[c[f]]=this.styles(c[f]);return e}d!=null?(a={},a[c]=d):c!=null&&b.is(c,"object")&&(a=c);e={};for(i in a)f=i.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),f==="color"&&this.type==="text"&&(f="fill"),b._availableAttrs.hasOwnProperty(f)?(e[f]=a[i],e.dirty=!0):(K("raphael.css."+f+"."+this.id,this,a[i],f),a[i]!=void 0&&(this.node.style[f]=a[i]),this.styles[f]=a[i]);f=
0;for(i=this.followers.length;f<i;f++)this.followers[f].el.css(a);e.hasOwnProperty("dirty")&&(delete e.dirty,this.attr(e));return this};g.attr=function(c,d){if(this.removed)return this;if(c==null){var a={},e;for(e in this.attrs)this.attrs.hasOwnProperty(e)&&(a[e]=this.attrs[e]);a.gradient&&a.fill=="none"&&(a.fill=a.gradient)&&delete a.gradient;a.transform=this._.transform;a.visibility=this.node.style.display==="none"?"hidden":"visible";return a}if(d==null&&b.is(c,"string")){if(c=="fill"&&this.attrs.fill==
"none"&&this.attrs.gradient)return this.attrs.gradient;if(c=="visibility")return this.node.style.display==="none"?"hidden":"visible";var a=c.split(I),f={},i=0;for(e=a.length;i<e;i++)c=a[i],f[c]=c in this.attrs?this.attrs[c]:b.is(this.ca[c],"function")?this.ca[c].def:b._availableAttrs[c];return e-1?f:f[a[0]]}if(this.attrs&&d==null&&b.is(c,"array")){f={};i=0;for(e=c.length;i<e;i++)f[c[i]]=this.attr(c[i]);return f}d!=null&&(a={},a[c]=d);d==null&&b.is(c,"object")&&(a=c);for(i in a)K("raphael.attr."+i+
"."+this.id,this,a[i],i);if(a){var h={};for(i in this.ca)if(this.ca[i]&&a.hasOwnProperty(i)&&b.is(this.ca[i],"function")&&!this.ca["_invoked"+i]){this.ca["_invoked"+i]=!0;e=this.ca[i].apply(this,[].concat(a[i]));delete this.ca["_invoked"+i];for(f in e)e.hasOwnProperty(f)&&(a[f]=e[f]);this.attrs[i]=a[i];e===!1&&(h[i]=a[i],delete a[i])}if("text"in a&&this.type=="text")this.textpath.string=a.text.replace(/<br\s*?\/?>/ig,"\n");W(this,a);var g,i=0;for(e=this.followers.length;i<e;i++)g=this.followers[i],
g.cb&&!g.cb.call(g.el,a,this)||g.el.attr(a);for(f in h)a[f]=h[f]}return this};g.blur=function(c){var d=this.node.runtimeStyle,a=d.filter,a=a.replace(H,"");+c!==0?(this.attrs.blur=c,d.filter=a+"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+c||1.5)+")",d.margin=b.format("-{0}px 0 0 -{0}px",m(+c||1.5))):(d.filter=a,d.margin=0,delete this.attrs.blur);return this};g.on=function(c,d){if(this.removed)return this;this.node["on"+c]=function(){var a=b._g.win.event;a.target=a.srcElement;d(a)};return this};
b._engine.getNode=function(b){b=b.node||b[0].node;return b.clipRect||b};b._engine.getLastNode=function(b){b=b.node||b[b.length-1].node;return b.clipRect||b};b._engine.group=function(c,d,a){var e=b._g.doc.createElement("div"),f=new F(e,c,a);e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";d&&(e.className=["red",d,f.id].join("-"));(a||c).canvas.appendChild(e);f.type="group";f.canvas=f.node;f.transform=b._engine.group.transform;f.top=null;f.bottom=null;return f};b._engine.group.transform=
function(c){if(c==null)return this._.transform;var d=this.node.style,a=this.clip,f=this.paper._viewBoxShift,i=f?"s"+[f.scale,f.scale]+"-1-1t"+[f.dx,f.dy]:"";f&&(c=j(c).replace(/\.{3}|\u2026/g,this._.transform||""));b._extractTransform(this,i+c);c=this.matrix;i=c.offset();f=e(i[0])||0;i=e(i[1])||0;d.left=f+"px";d.top=i+"px";d.zoom=(this._.tzoom=c.get(0))+"";a&&(d.clip=b.format("rect({1}px {2}px {3}px {0}px)",[a[0]-f,a[1]-i,a[2]-f,a[3]-i]));return this};b._engine.path=function(b,d,a){var e=f("shape");
e.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";e.coordsize="21600 21600";e.coordorigin=d.coordorigin;var i=new F(e,d,a),h={fill:"none",stroke:"#000"};b&&(h.path=b);i.type="path";i.path=[];i.Path="";W(i,h);(a||d).canvas.appendChild(e);b=f("skew");b.on=!0;e.appendChild(b);i.skew=b;return i};b._engine.rect=function(c,d,a,e,f,i,h){var g=b._rectPath(d,a,e,f,i),c=c.path(g,h),h=c.attrs;c.X=h.x=d;c.Y=h.y=a;c.W=h.width=e;c.H=h.height=f;h.r=i;h.path=g;c.type="rect";return c};b._engine.ellipse=
function(b,d,a,e,f,i){b=b.path(void 0,i);b.X=d-e;b.Y=a-f;b.W=e*2;b.H=f*2;b.type="ellipse";W(b,{cx:d,cy:a,rx:e,ry:f});return b};b._engine.circle=function(b,d,a,e,f){b=b.path(void 0,f);b.X=d-e;b.Y=a-e;b.W=b.H=e*2;b.type="circle";W(b,{cx:d,cy:a,r:e});return b};b._engine.image=function(c,d,a,e,f,i,h){var g=b._rectPath(a,e,f,i),c=c.path(g,h).attr({stroke:"none"}),h=c.attrs,s=c.node,j=s.getElementsByTagName("fill")[0];h.src=d;c.X=h.x=a;c.Y=h.y=e;c.W=h.width=f;c.H=h.height=i;h.path=g;c.type="image";j.parentNode==
s&&s.removeChild(j);j.rotate=!0;j.src=d;j.type="tile";c._.fillpos=[a,e];c._.fillsize=[f,i];s.appendChild(j);G(c,1,1,0,0,0);return c};b._engine.text=function(c,d,a,e,i){var h=f("shape"),g=f("path"),s=f("textpath"),d=d||0,a=a||0;g.v=b.format("m{0},{1}l{2},{1}",m(d*21600),m(a*21600),m(d*21600)+1);g.textpathok=!0;s.string=j(e).replace(/<br\s*?\/?>/ig,"\n");s.on=!0;h.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";h.coordsize="21600 21600";h.coordorigin="0 0";var o=new F(h,c,i),p={fill:"#000",
stroke:"none",text:e};o.shape=h;o.path=g;o.textpath=s;o.type="text";o.attrs.text=j(e||"");o.attrs.x=d;o.attrs.y=a;o.attrs.w=1;o.attrs.h=1;W(o,p);h.appendChild(s);h.appendChild(g);(i||c).canvas.appendChild(h);c=f("skew");c.on=!0;h.appendChild(c);o.skew=c;return o};b._engine.setSize=function(c,d){var a=this.canvas.style;this.width=c;this.height=d;c==+c&&(c+="px");d==+d&&(d+="px");a.width=c;a.height=d;a.clip="rect(0 "+c+" "+d+" 0)";this._viewBox&&b._engine.setViewBox.apply(this,this._viewBox);return this};
b._engine.setViewBox=function(b,d,a,e,f){K("raphael.setViewBox",this,this._viewBox,[b,d,a,e,f]);var i=this.width,h=this.height,g=1/w(a/i,e/h),s,j;f&&(s=h/e,j=i/a,a*s<i&&(b-=(i-a*s)/2/s),e*j<h&&(d-=(h-e*j)/2/j));this._viewBox=[b,d,a,e,!!f];this._viewBoxShift={dx:-b,dy:-d,scale:g};this.forEach(function(a){a.transform("...")});return this};var f;b._engine.initWin=function(c){var d=c.document;d.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!d.namespaces.rvml&&d.namespaces.add("rvml",
"urn:schemas-microsoft-com:vml"),f=b._createNode=function(a,b){var c=d.createElement("<rvml:"+a+' class="rvml">'),e;for(e in b)c[e]=j(b[e]);return c}}catch(a){f=b._createNode=function(a,b){var c=d.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'),e;for(e in b)c[e]=j(b[e]);return c}}};b._engine.initWin(b._g.win);b._engine.create=function(){var c=b._getContainer.apply(0,arguments),d=c.container,a=c.height,e=c.width,f=c.x,c=c.y;if(!d)throw Error("VML container not found.");
var i=new b._Paper,h=i.canvas=b._g.doc.createElement("div"),g=h.style,f=f||0,c=c||0,e=e||512,a=a||342;i.width=e;i.height=a;e==+e&&(e+="px");a==+a&&(a+="px");i.coordsize="21600000 21600000";i.coordorigin="0 0";i.span=b._g.doc.createElement("span");i.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";h.appendChild(i.span);g.cssText=b.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",
e,a);d==1?(b._g.doc.body.appendChild(h),g.left=f+"px",g.top=c+"px",g.position="absolute"):d.firstChild?d.insertBefore(h,d.firstChild):d.appendChild(h);i.renderfix=function(){};return i};b.prototype.clear=function(){K("raphael.clear",this);this.canvas.innerHTML="";this.span=b._g.doc.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas.appendChild(this.span);this.bottom=this.top=null};b.prototype.remove=
function(){K("raphael.remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var c in this)this[c]=typeof this[c]=="function"?b._removedFactory(c):null;return!0};var i=b.st,h;for(h in g)g.hasOwnProperty(h)&&!i.hasOwnProperty(h)&&(i[h]=function(b){return function(){var d=arguments;return this.forEach(function(a){a[b].apply(a,d)})}}(h))}(window.Raphael);j.Raphael=w;j.Raphael.desc="";if(X&&X!==w)window.Raphael=X;else if(window.Raphael===w)window.Raphael=void 0}]);
FusionCharts(["private","modules.renderer.js-raphaelshadow",function(){var j=this.hcLib,g=window,m=g.navigator.userAgent,X=g.Math,w=X.sqrt,J=g.parseFloat,Y=g.parseInt;/AppleWebKit/.test(m);/Safari/.test(m)&&/Version\/[1-4]\./.test(m);/Chrome/.test(m);/msie/i.test(m);var g=g.SVGFilterElement||g.SVGFEColorMatrixElement&&g.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE===2,b=j.Raphael,X=Math,A=b._createNode,e;if(b.svg){if(g)b.el.dropshadow=function(e,g,j,s){var r=this.node,m=this._.shadowFilter,
K=this.paper.cacheShadows||(this.paper.cacheShadows={}),P="drop-shadow"+[e,g,j,s].join(" "),X;if(e==="none"){if(m){m.use-=1;this.node.removeAttribute("filter");if(!m.use){P=m.hash;for(X in m)e=m[X],e.parentNode&&e.parentNode.removeChild(e),delete m[X];delete K[P]}delete this._.shadowFilter}}else if(!(m&&K[P]===m))m=this.paper.defs.appendChild(A("filter",{id:b.createUUID(),width:"200%",height:"200%"})),s=b.color(s),s.error&&(s=b.color("rgba(0,0,0,1)")),X=b.pick(s.opacity,1),this._.shadowFilter=K[P]=
{use:1,filter:m,hash:P,offset:m.appendChild(A("feOffset",{result:"offOut","in":"SourceGraphic",dx:J(e),dy:J(g)})),matrix:m.appendChild(A("feColorMatrix",{result:"matrixOut","in":"offOut",type:"matrix",values:"0 0 0 0 "+s.r/255+" 0 0 0 0 "+s.g/255+" 0 0 0 0 "+s.b/255+" 0 0 0 "+X+" 0"})),blur:m.appendChild(A("feGaussianBlur",{result:"blurOut","in":"matrixOut",stdDeviation:w(J(j))})),blend:m.appendChild(A("feComposite",{"in":"SourceGraphic",in2:"blurOut",operator:"over"}))},r.setAttribute("filter","url('"+
b._url+"#"+m.id+"')");return this};var r={"drop-shadow":"drop-shadow",stroke:"stroke",fill:"fill","stroke-width":"stroke-width","stroke-opacity":"stroke-opacity","stroke-linecap":"stroke-linecap","shape-rendering":"shape-rendering",transform:"transform"};e=function(b,e){var g=this.__shadowscale,s={},j,m;for(m in b)switch(r[m]&&(s[m]=b[m],delete b[m]),m){case "transform":j=e.matrix.clone();j.translate(this.__shadowx,this.__shadowy);this.transform(j.toTransformString());break;case "stroke-width":b[m]=
((s[m]||1)+6-2*this.__shadowlevel)*g}this.attr(b);for(m in s)b[m]=s[m]};b.ca["drop-shadow"]=function(g,j,m,s,r,w){var m=this._.shadows||(this._.shadows=[]),A,P,X,H,o;if(!this.__shadowblocked)if(g==="none")for(;P=m.pop();)P.remove();else{s=b.color(s);s.error&&(s=b.color("rgba(0,0,0,1)"));r instanceof Array?(A=r[0],r=r[1]):A=r;A=1/b.pick(A,1);r=1/b.pick(r,1);g=b.pick(g,1)*A;j=b.pick(j,1)*A;A=b.pick(s.opacity,1)*0.05;X=Y(this.attr("stroke-width")||1,10)+6;H=this.matrix.clone();H.translate(g,j);for(o=
1;o<=3;o++)P=(m[o-1]||this.clone().follow(this,e,!w&&"before")).attr({stroke:s.hex,"stroke-opacity":A*o,"stroke-width":(X-2*o)*r,transform:H.toTransformString(),"stroke-linecap":"round","shape-rendering":"default",fill:"none"}),P.__shadowlevel=o,P.__shadowscale=r,P.__shadowx=g,P.__shadowy=j,w&&w.appendChild(P),m.push(P)}return!1};b.el.shadow=function(e,g,j,s){var m;j&&j.constructor===b.el.constructor&&(s=j,j=void 0);if(typeof e==="object")g&&g.constructor===b.el.constructor&&(s=g),g=e.opacity,j=e.scalefactor,
m=!!e.useFilter,e=e.apply===void 0?!!g:e.apply;g===void 0&&(g=1);if(this.dropshadow)if(m)return e&&this.dropshadow(1,1,3,"rgb(64,64,64)")||this.dropshadow("none"),this;else this._.shadowFilter&&this.dropshadow("none");return this.attr("drop-shadow",e?[1,1,3,"rgba(64,64,64,"+g+")",j,s]:"none")}}else if(b.vml)b.ca["drop-shadow"]=function(e,g,j,s,m,r){var w=this._.shadow,A,X;if(this.isShadow)return!1;if(e==="none")w&&(this._.shadow=w.remove());else{if(!w)w=this._.shadow=this.clone(),r&&r.appendChild(w.follow(this))||
w.follow(this,void 0,"before"),w.attr({fill:"none","fill-opacity":0.5,"stroke-opacity":1}).isShadow=!0,w.attr("stroke-width")<=0&&w.attr("stroke-width",1);r=w.node.runtimeStyle;A=r.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,"");s=b.color(s);s.error&&(s=b.color("rgba(0,0,0,1)"));X=b.pick(s.opacity,1)/5;m=1/b.pick(m,1);e=b.pick(e,1)*m;g=b.pick(g,1)*m;w.translate(e,g);r.filter=A+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+J(j*0.4)+" makeShadow=True Color="+s.hex+" shadowOpacity='"+X+"');"}return!1},
b.el.shadow=function(e,g,j,s){j&&j.constructor===b.el.constructor&&(s=j,j=void 0);if(typeof e==="object")g&&g.type==="group"&&(s=g),g=e.opacity,j=e.scalefactor,e=e.apply===void 0?!!g:e.apply;g===void 0&&(g=1);return this.attr("drop-shadow",e||!g?[1,1,5,"rgba(64,64,64,"+g+")",j,s]:"none")};else if(b.canvas)b.el.shadow=function(){return this}}]);
FusionCharts(["private","modules.renderer.js-raphaelshapes",function(){var j=this.hcLib.Raphael,g="createTouch"in document,m=window,m=/msie/i.test(navigator.userAgent)&&!m.opera,X=Math,w=X.cos,J=X.sin,Y=X.abs,b=X.pow,A=X.atan2,e=X.min,r=X.round,z=X.PI,oa=2*z,Z=parseInt,s=parseFloat,ia=String,I="fill",I="fill",K=b(2,-24),P="rgba(192,192,192,"+(m?0.002:1.0E-6)+")",ha=j.eve,H=j.vml&&0.5||0,o=j._createNode,p=j._setFillAndStroke,E=j.el.constructor;j.crispBound=j._cacher(function(b,e,h,c,d){var a={},k,
b=b||0,e=e||0,h=h||0,c=c||0,d=d||0;k=d%2/2+H;a.x=r(b+k)-k;a.y=r(e+k)-k;a.width=r(b+h+k)-k-a.x;a.height=r(e+c+k)-k-a.y;a["stroke-width"]=d;a.width===0&&h!==0&&(a.width=1);a.height===0&&c!==0&&(a.height=1);return a},j);j.el.crisp=function(){var b=this.attrs,e,h=this.attr(["x","y","width","height","stroke-width"]),h=j.crispBound(h.x,h.y,h.width,h.height,h["stroke-width"]);for(e in h)b[e]===h[e]&&delete h[e];return this.attr(h)};j.fn.polypath=function(){var b=arguments,e=b.length-1,h=b[e];h&&h.constructor===
j.el.constructor?b[e]=void 0:h=void 0;e=this.path(void 0,h);e.ca.polypath=j.fn.polypath.ca;arguments.length-!!h&&e.attr("polypath",[b[0],b[1],b[2],b[3],b[4],b[5]])||(e.attrs.polypath=[0,0,0,0,0,0]);return e};j.fn.polypath.ca=function(b,e,h,c,d,a){var k,g,o;k=[];b=Z(b,10)||0;e=s(e)||0;h=s(h)||0;c=s(c)||0;d=d===null||isNaN(d)?z*0.5:j.rad(d);a=a===null||isNaN(a)?0:s(a);g=d;if(b>2)switch(d=2*z/b,a){case 0:for(a=0;a<b;a++)k.push("L",e+c*w(-g),h+c*J(-g)),g+=d;k[0]="M";k.push("Z");break;case 1:for(a=0;a<
b;a++)k.push("M",e,h,"L",e+c*w(-g),h+c*J(-g)),g+=d;break;default:d*=0.5;o=c*w(d)*(1-a);for(a=0;a<b;a++)k.push("L",e+c*w(-g),h+c*J(-g)),g+=d,k.push("L",e+o*w(-g),h+o*J(-g)),g+=d;k[0]="M";k.push("Z")}else c===0?k.push("M",e,h,"L",e,h,"Z"):k.push("M",e-c,h,"A",c,c,0,0,0,e+c,h,"A",c,c,0,0,0,e-c,h,"Z");return{path:k}};j.fn.ringpath=function(){var b=arguments,e=b.length-1,h=b[e];h&&h.constructor===j.el.constructor?b[e]=void 0:h=void 0;e=this.path(void 0,h);e.ca.ringpath=j.fn.ringpath.ca;arguments.length-
!!h&&e.attr("ringpath",[b[0],b[1],b[2],b[3],b[4],b[5]])||(e.attrs.ringpath=[0,0,0,0,0,0]);return e};j.fn.ringpath.ca=function(b,e,h,c,d,a){var k=a%oa-d%oa,g=a-d,j;this._.ringangle=(d+a)*0.5;Y(g)<K?(g=w(d),d=J(d),h=["M",b+h*g,e+h*d,"L",b+c*g,e+c*d,"Z"]):(Y(g)>K&&Y(g)%oa<K?(h=["M",b-h,e,"A",h,h,0,0,0,b+h,e,"A",h,h,0,0,0,b-h,e],c!==0&&(h=h.concat(["M",b-c,e,"A",c,c,0,0,1,b+c,e,"A",c,c,0,0,1,b-c,e]))):(g=w(d),d=J(d),j=w(a),a=J(a),k%=oa,k<0&&(k+=oa),k=k<z?0:1,h=["M",b+h*g,e+h*d,"A",h,h,0,k,1,b+h*j,e+h*
a,"L",b+c*j,e+c*a],c!==0&&h.push("A",c,c,0,k,0,b+c*g,e+c*d)),h.push("Z"));return{path:h}};j.fn.cubepath=function(){var b={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},e=arguments,h=e.length-1,c=e[h],d;c&&c.constructor===j.el.constructor?e[h]=void 0:c=void 0;h=this.path(void 0,c).attr(b);d=this.path(void 0,c).attr(b);b=this.path(void 0,c).attr(b);b._.cubetop=h.follow(b,void 0,"before");b._.cubeside=d.follow(b,void 0,"before");for(var a in j.fn.cubepath.ca)b.ca[a]=j.fn.cubepath.ca[a];
return b.attr("cubepath",[e[0]||0,e[1]||0,e[2]||0,e[3]||0,e[4]||0,e[5]||0])};j.fn.cubepath.ca={cubepath:function(b,e,h,c,d,a){var k=this._.cubetop,g=this._.cubeside;this.attr("path",["M",b+h,e,"l",0,c,-h,0,0,-c,"z"]);k.attr("path",["M",b,e,"l",1,1,h-1,0,0,-1,d,-a,-h,0,"z"]);g.attr("path",["M",b+h-1,e+1,"l",0,c-1,1,0,d,-a,0,-c,-d,a]);return!1},"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},"drop-shadow":function(b,e,h,c){var d=this._.cubetop,a=this._.cubeside;this.dropshadow&&(d.dropshadow(b,
-e,h,c),a.dropshadow(b,-e,h,c));return!1},fill:function(b,e){var h=this._.cubetop,c=this._.cubeside,d=this.attr("cubepath")||[0,0,0,0,0,0],a=d[2],k=d[4],d=d[5],g,b=j.color(b);e?(this.attr(I,b),h.attr(I,j.tintshade(b,-0.78).rgba),c.attr(I,j.tintshade(b,-0.65).rgba)):(g="opacity"in b?"rgba("+[b.r,b.g,b.b,b.opacity]+")":"rgb("+[b.r,b.g,b.b]+")",this.attr(I,[270,j.tintshade(g,0.55).rgba,j.tintshade(g,-0.65).rgba].join("-")),c.attr(I,[270,j.tintshade(g,-0.75).rgba,j.tintshade(g,-0.35).rgba].join("-")),
h.attr(I,[45+j.deg(A(d,k+a)),j.tintshade(g,-0.78).rgba,j.tintshade(g,0.22).rgba].join("-")));return!1}};j.ca["text-bound"]=function(b,e,h,c,d,a){var c=this.paper,g=this._.textbound;if(this.type==="text"){if((!e||e==="none")&&(!b||b==="none"))return this._.textbound=g&&g.unfollow(this).remove(),!1;(!h||!j.is(h,"finite"))&&(h=0);(!d||!j.is(d,"finite"))&&(d=0);!g&&(g=this._.textbound=c.rect(0,0,0,0,this.group).follow(this,j.ca["text-bound"].reposition,"before"));g.attr({stroke:e,"stroke-width":h,fill:b,
"shape-rendering":h===1&&"crisp"||"",r:d});a&&g.attr("stroke-dasharray",a);j.ca["text-bound"].reposition.call(g,this.attrs,this);return!1}};j.ca["text-bound"].reposition=function(b,e){var h={},c,d,a,g,o;b.hasOwnProperty("visibility")&&this.attr("visibility",b.visibility);if(b.hasOwnProperty("text-bound")||b.hasOwnProperty("x")||b.hasOwnProperty("y")||b.hasOwnProperty("text")||b.hasOwnProperty("text-anchor")||b.hasOwnProperty("text-align")||b.hasOwnProperty("font-size")||b.hasOwnProperty("line-height")||
b.hasOwnProperty("vertical-align")||b.hasOwnProperty("transform")){c=ia((e.attrs["text-bound"]||[])[3]||"0").split(/\s*\,\s*/g);d=s(c[0])||0;c=j.pick(s(c[1]),d);a=e.getBBox();g=a.width;o=a.height;if(!isNaN(g))h.x=a.x-d,h.y=a.y-c,h.width=g+d*2,h.height=o+c*2;this.attr(h)}};j.fn.scroller=function(b,e,h,c,d,a,g){var o=this.group("scroller",g),p=o.attrs,m=o._.scroller={},d=d&&"horizontal"||"vertical",r,v={},w,E;m.track=this.rect(o).mousedown(function(a){var b=p["scroll-position"],a=p["scroll-orientation"]===
"horizontal"?a.layerX||a.x:a.layerY||a.y,a=(a-m.anchorOffset)/m.trackLength;r=j.animation({"scroll-position":a},2E3*Y(b-a),"easeIn");o.animate(r);ha("raphael.scroll.start."+o.id,o,b)}).mouseup(function(){this.stop(r);ha("raphael.scroll.end."+this.id,this,p["scroll-position"])},o,!0);m.anchor=this.rect(o).drag(function(){v["scroll-position"]=w+arguments[E]/m.trackLength;o.animate(v,0)},function(a,b,d){E=p["scroll-orientation"]==="horizontal"?0:1;ha("raphael.scroll.start."+o.id,o,w=p["scroll-position"]);
d.stopPropagation()},function(){ha("raphael.scroll.end."+o.id,o,w=p["scroll-position"])});for(var A in j.fn.scroller.fn)o[A]=j.fn.scroller.fn[A];for(A in j.fn.scroller.ca)o.ca[A]=j.fn.scroller.ca[A];p["scroll-orientation"]=d;p["stroke-width"]=1;o.ca["scroll-repaint"]=o.ca["scroll-repaint-"+d];!j.is(a,"object")&&(a={});return o.attr({ishot:!0,"scroll-display-buttons":a.showButtons&&"arrow"||"none","scroll-display-style":a.displayStyleFlat&&"flat"||"3d","scroll-ratio":s(a.scrollRatio)||1,"scroll-position":s(a.scrollPosition)||
0,"scroll-repaint":[b,e,h,c]})};j.fn.scroller.fn={scroll:function(b,e){var h=this._.scroller,e=e||this;h.callback=function(){return b.apply(e,arguments)};return this}};j.fn.scroller.ca={"stroke-width":function(){return!1},"drop-shadow":function(b,e,h,c,d,a){this._.scroller.track.attr("drop-shadow",[b,e,h,c,d,a]);return!1},"scroll-display-style":function(b){var e=this.attrs,h=e["scroll-display-style"],c=e.fill,b={flat:"flat","3d":"3d",transparent:"transparent"}[b]||h;c&&b!==h&&(e["scroll-display-style"]=
b,this.attr(I,c));return{"scroll-display-style":b}},"scroll-display-buttons":function(b){var e=this,h=e.paper,c=e._.scroller,d=e.attrs,a=d["scroll-display-buttons"],g=d["scroll-repaint"],s,o,b={none:"none",arrow:"arrow"}[b]||a;if(b!==a)d["scroll-display-buttons"]=b,b==="none"&&c.start?(c.arrowstart.remove(),delete c.arrowstart,c.arrowend.remove(),delete c.arrowend,c.start.remove(),delete c.start,c.end.remove(),delete c.end):(c.arrowstart=h.polypath(e),c.arrowend=h.polypath(e),c.start=h.rect(e).mousedown(function(){var a;
if((a=d["scroll-position"])!==0)e.animate({"scroll-position":a-0.1},100).animate(s=j.animation({"scroll-position":0},4500*a,"easeIn")),ha("raphael.scroll.start."+e.id,e,a)}).mouseup(function(){e.stop(s);ha("raphael.scroll.end."+e.id,e,d["scroll-position"])},e,!0),c.end=h.rect(e).mousedown(function(){var a;if((a=d["scroll-position"])!==1)e.animate({"scroll-position":a+0.1},100).animate(o=j.animation({"scroll-position":1},4500*(1-a),"easeIn")),ha("raphael.scroll.start."+e.id,e,a)}).mouseup(function(){e.stop(o);
ha("raphael.scroll.end."+e.id,e,d["scroll-position"])},e,!0),d.fill&&e.attr(I,d.fill)),g&&e.attr("scroll-repaint",g);return{"scroll-display-buttons":b}},"scroll-orientation":function(b){var e=this.attrs,h=e["scroll-repaint"],c=e["scroll-orientation"],b={horizontal:"horizontal",vertical:"vertical"}[b]||c;c!==b&&(this.ca["scroll-repaint"]=this.ca["scroll-repaint-"+b],h&&(h[2]+=h[3],h[3]=h[2]-h[3],h[2]-=h[3],this.attr("scroll-repaint",h)),e.fill&&this.attr(I,e.fill));return{"scroll-orientation":b}},
"scroll-ratio":function(b){var e=this.attrs,h=e["scroll-ratio"],c=e["scroll-repaint"],b=b>1?1:b<0.01?0.01:s(b);c&&b!==h&&(e["scroll-ratio"]=b,this.attr("scroll-repaint",c));return{"scroll-ratio":b}},"scroll-position":function(b,e){var h=this.attrs,c=h["scroll-orientation"]==="horizontal",d=h["scroll-repaint"],a=h["scroll-position"],g=this._.scroller,j=g.anchor,b=b>1?1:b<0?0:s(b);isNaN(b)&&(b=a);if(d&&(a!==b||e))a=g.start&&g.start.attr(c&&"width"||"height")||0,c&&j.attr("x",d[0]+a+(d[2]-2*a-j.attr("width"))*
b+0.5)||j.attr("y",d[1]+a+(d[3]-2*a-j.attr("height"))*b+0.5),!e&&h["scroll-ratio"]<1&&(ha("raphael.scroll.change."+this.id,this,b),g.callback&&g.callback(b));return{"scroll-position":b}},r:function(b){var e=this._.scroller;e.track.attr("r",b);e.anchor.attr("r",this.attrs["scroll-display-buttons"]==="none"&&b||0);return!1},"scroll-repaint-horizontal":function(b,i,h,c){var d=this.attrs,a=this._.scroller,g=d["scroll-ratio"],j=d["scroll-position"],s=0,o=h*g,d=d["scroll-display-buttons"]==="none";h&&(h-=
1);b&&(b+=0.5);c&&(c-=1);i&&(i+=0.5);a.track.attr({width:h,height:c,y:i,x:b}).crisp();d||(s=e(c,h*0.5),o-=s*2*g,a.start.attr({width:s,height:c,x:b,y:i}),a.arrowstart.attr("polypath",[3,b+s*0.5,i+c*0.5,s*0.25,180]),a.end.attr({width:s,height:c,x:b+h-s,y:i}),a.arrowend.attr("polypath",[3,b+h-s*0.5,i+s*0.5,s*0.25,0]));a.trackLength=h-2*s-o;a.trackOffset=b+s+0.5;a.anchorOffset=a.trackOffset+(o-1)*0.5;a.anchor.attr({height:c,width:o-1,y:i,x:a.trackOffset+a.trackLength*j}).crisp()},"scroll-repaint-vertical":function(b,
i,h,c){var d=this.attrs,a=this._.scroller,g=d["scroll-ratio"],j=d["scroll-position"],s=0,o=c*g,d=d["scroll-display-buttons"]==="none";h&&(h-=1);b&&(b+=0.5);c&&(c-=1);i&&(i+=0.5);a.track.attr({width:h,height:c,y:i,x:b}).crisp();d||(s=e(h,c*0.5),o-=s*2*g,a.start.attr({width:h,height:s,x:b,y:i}),a.arrowstart.attr("polypath",[3,b+h*0.5,i+s*0.5,s*0.25,90]),a.end.attr({width:h,height:s,x:b,y:i+c-s}),a.arrowend.attr("polypath",[3,b+h*0.5,i+c-s*0.5,s*0.25,-90]));a.trackLength=c-2*s-o;a.trackOffset=i+s+0.5;
a.anchorOffset=a.trackOffset+(o-1)*0.5;a.anchor.attr({height:o-1,width:h,y:a.trackOffset+a.trackLength*j,x:b}).crisp()},fill:function(b){var e=this.attrs,h=this._.scroller,c=e["scroll-repaint"],d=e["scroll-display-style"]==="flat",a=e["scroll-orientation"]==="horizontal",k={stroke:"none"},s;if(g&&c&&(s=16-c[a&&3||2])>3)k.stroke=P,k["stroke-width"]=s;b=j.color(b);b.error&&(b="#000000");b="opacity"in b?"rgba("+[b.r,b.g,b.b,b.opacity]+")":"rgb("+[b.r,b.g,b.b]+")";k.fill=d&&b||[90*a,j.tintshade(b,0.15).rgba,
b].join("-");k.stroke=j.tintshade(b,-0.75).rgba;h.track.attr(k);k.fill=d&&j.tintshade(b,-0.6).rgba||[270*a,j.tintshade(b,0.3).rgba+":40",j.tintshade(b,-0.7).rgba].join("-");k.stroke=j.tintshade(b,-0.6).rgba;h.anchor.attr(k);k.stroke="none";if(e["scroll-display-buttons"]!=="none")k.fill=P,h.start.attr(k),h.end.attr(k),k.fill=j.tintshade(b,-0.4).rgba,h.arrowstart.attr(k),h.arrowend.attr(k);return!1}};var V=Array.prototype.slice;j.fn.symbol=function(){var b=arguments,e=b.length-1,h=b[e];h&&h.constructor===
j.el.constructor?b[e]=void 0:h=void 0;e=this.path(void 0,h);e.ca.symbol=j.fn.symbol.ca.symbol;return b.length===!!h+0?e:e.attr("symbol",b)};j.fn.symbol.cache={"":j._cacher(function(b,e,h,c){return arguments.length>3?["M",b,e,"h",h,"v",c,"h",-h,"v",-c,"z"]:["M",b-h,e-h,"h",h*=2,"v",h,"h",-h,"v",-h,"z"]})};j.fn.symbol.ca={symbol:function(b){var e=j.is(b,"object")&&arguments.length===1&&!j.is(b,"function")?b:arguments,h;e===b&&(b=e[0]);e=(h=j.is(b,"function")&&b||j.fn.symbol.cache[b]||j.fn.symbol.cache[""])&&
h.apply(j,V.call(e,1));j.is(e,"array")||j.is(e,"string")?this.attr("path",e):e&&this.attr(e)}};j.addSymbol=function(b,e){var h=j.is(e,"function")&&(h={},h[b]=e,h)||b,c=j.fn.symbol.cache,d=[],a;for(a in h)e=h[a],c[a]=j.is(e,"function")&&j._cacher(e,j)||(d.push(a),e);for(;a=d.pop();)c[a]=c[c[a]]};j.fn.button=function(b,e,h,c,d,a){a=this.group("button",a);a._.button={bound:this.rect(a),tracker:this.rect(a).attr({fill:P,stroke:P,cursor:"pointer"}).data("compositeButton",a)};var g;!j.is(d,"object")&&(d=
{});for(g in j.fn.button.fn)a[g]=j.fn.button.fn[g];for(g in j.fn.button.ca)a.ca[g]=j.fn.button.ca[g];return a.attr({ishot:!0,"button-padding":[d.horizontalPadding,d.verticalPadding],"button-label":h,"button-symbol":c,"button-disabled":d.disabled,"button-symbol-position":d.symbolPosition,"button-symbol-padding":d.symbolPadding}).attr("button-repaint",[b,e,d.width,d.height,d.r])};j.fn.button.e={hoverin:function(){var b=this._.button.hoverbackIn;b&&b()===!1||(this.attr("fill","hover").hovered=!0)},hoverout:function(){var b=
this._.button.hoverbackOut;b&&b()===!1||(this.attr("fill",(this.pressed||this.active)&&"active"||"normal").hovered=!1)},mousedown:function(){this.attr("fill","active").pressed=!0},mouseup:function(){var b=this._.button.callback;this.attr("fill",this.hovered&&"hover"||this.active&&"active"||"normal").pressed=!1;b()}};j.fn.button.fn={buttonclick:function(b,e){var h=this._.button,e=e||this;h.callback=function(){return b.apply(e,arguments)};return this},labelcss:function(){var b=this._.button,e=b.label;
b.cssArg=arguments;e&&e.css.apply(e,arguments);return this},buttonhover:function(b,e,h,c){var d=this._.button,h=h||this,c=c||this;d.hoverbackIn=function(){return b.apply(h,arguments)};d.hoverbackOut=function(){return e.apply(c,arguments)};return this}};j.fn.button.ca={"button-active":function(b){this.attr("fill",(this.active=!!b)?"active":this.hovered&&"hover"||"normal")},"button-disabled":function(b){var e=this.paper,h=this._.button.tracker,c=e.button.e,b=ia(b);b==="disabled"||b==="true"||b==="1"?
h.attr("fill","rgba(204,204,205,.5)").unmousedown(c.mousedown).unmouseup(c.mouseup).unhover(e.button.e.hoverin,e.button.e.hoverout):h.attr("fill",P).mousedown(c.mousedown,this).mouseup(c.mouseup,this,!0).hover(e.button.e.hoverin,e.button.e.hoverout,this,this)},"button-label":function(b){var e=this._.button,h=this.attrs,c=e.label,d=e.cssArg,a=this.attrs["button-repaint"],b=ia(b||"");if(b==="none")c&&(e.label=c.remove());else if(b)!c&&(c=e.label=this.paper.text(this).insertBefore(e.tracker)),c.attr({text:b,
"text-anchor":"start","vertical-align":"top"}),d&&d.length&&c.css.apply(c,d);a&&h["button-label"]!==b&&this.attr("button-repaint",a)},"button-symbol":function(b){var e=this.attrs,h=this._.button,c=h.symbol,d=this.attrs["button-repaint"],b=ia(b||"");if(b==="none")c&&(h.symbol=c.remove());else if(b&&!c)h.symbol=this.paper.symbol(this).insertAfter(h.bound);d&&e["button-symbol"]!==b&&this.attr("button-repaint",d)},"button-symbol-position":function(b){return{"button-symbol-position":{top:"top",right:"right",
bottom:"bottom",left:"left",none:"none"}[ia(b).toLowerCase()]||"none"}},"button-symbol-padding":function(b){return{"button-symbol-padding":s(b)}},"button-padding":function(b,e){return{"button-padding":[b==null&&(b=5)||s(b),e==null&&b||s(e)]}},"button-repaint":function(b,i,h,c,d){var a=this._.button,g=a.bound,s=a.label,o=a.symbol,p=this.attrs,m=p["button-padding"],v=m[0],w=m[1],E;b==void 0&&(b=0);i==void 0&&(i=0);if(h==void 0||c==void 0)E=s&&s.getBBox()||{width:0,height:0},h==void 0&&(h=v*2+E.width),
c==void 0&&(c=w*2+E.height);g=j.crispBound(b,i,h,c,g.attr("stroke-width"));g.r=j.pick(d,r(e(c,h)*0.1));b=g.x;i=g.y;h=g.width;c=g.height;s&&s.attr({x:b+v,y:i+w});if(o){!j.is(E=p["button-symbol-padding"],"finite")&&(E=c*0.2);d=(c-w)*0.5;switch(p["button-symbol-position"]+(s&&"+"||"-")){case "right+":h+=d*2+w;b=b+h-d-v;i+=c*0.5;break;case "left+":b=b+v+d;i+=c*0.5;s.attr("x",b+d+E);break;case "top+":b+=h*0.5;i=i+m[1]+d;s&&s.attr("y",i+d+E);break;case "bottom+":c+=d*2+E;b+=h*0.5;i=i+c-w-d;break;default:b+=
h*0.5,i+=c*0.5}o.attr("symbol",[p["button-symbol"],b,i,d])}a.bound.attr(g);a.tracker.attr(g)},fill:function(b,e,h,c){var d=this._.button,a=d.bound,g=d.symbol,s=d.label,o={normal:d.gradient,active:d.gradientActive,hover:d.gradientHover}[b];if(!o)b=j.getRGB(b),b.error&&(b=j.color("#cccccc")),b="opacity"in b?"rgba("+[b.r,b.g,b.b,b.opacity]+")":"rgb("+[b.r,b.g,b.b]+")",d.gradient=[90,j.tintshade(b,-0.8).rgba+":0",j.tintshade(b,0.8).rgba+":100"].join("-"),d.gradientActive=[270,j.tintshade(b,-0.8).rgba+
":0",j.tintshade(b,0.8).rgba+":100"].join("-"),c=j.getRGB(c),c.error&&(c=b)||(c="opacity"in c?"rgba("+[c.r,c.g,c.b,c.opacity]+")":"rgb("+[c.r,c.g,c.b]+")"),d.gradientHover=[90,j.tintshade(c,-0.9).rgba+":0",j.tintshade(c,0.7).rgba+":100"].join("-"),h=h||j.tintshade(b,0.2).rgba,e=e||j.tintshade(b,-0.2).rgba,d.symbolFill=h,d.labelFill=e,o=(this.pressed||this.active)&&d.gradientActive||this.hovered&&d.gradienthover||d.gradient;a.attr("fill",o);g&&g.attr("fill",d.symbolFill);s&&s.attr("fill",d.labelFill);
return!1},stroke:function(b,e){var h=this._.button,c=h.symbol,b=j.color(b);b.error&&(b=j.color("#999999"));h.bound.attr("stroke",b);c&&c.attr("stroke",e||b);return!1},"stroke-width":function(b,e){var h=this._.button,c=h.symbol;h.bound.attr("stroke-width",b);h.tracker.attr("stroke-width",b);c&&c.attr("stroke-width",e);return!1}};var L={Q:"L",Z:"X",q:"l",z:"x",",":" "},G=/,?([achlmqrstvxz]),?/gi,S,W=function(){return this.join(",").replace(G,S)},v,F;if(j.svg)S="$1",v=function(b){b?typeof b==="string"?
b=b.replace(G,S):b.toString=W:b="M0,0";this.node.setAttribute("d",b.toString());return this},j._engine.litepath=function(b,e,h,c){b=o("path");(c||e).canvas.appendChild(b);e=new E(b,e,c);e.type="litepath";p(e,{fill:"none",stroke:"#000"});return e},j._getPath.litepath=function(b){return j.parsePathString(b.node.getAttribute("d"))};else if(j.vml)S=function(b,e){return L[e]||e},F=function(){this._transform.apply(this,arguments);this._.bcoord&&(this.node.coordsize=this._.bcoord);return this},v=function(b){b?
typeof b==="string"?b=b.replace(G,S):b.toString=W:b="M0,0";this.node.path=b;return this},j._engine.litepath=function(b,e,h,c){var b=o("shape"),d=b.style,a=new E(b,e,c);d.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;";h=s(h);isNaN(h)?b.coordsize="21600 21600":(a._.bzoom=h,d.width="1px",d.height="1px",b.coordsize=a._.bcoord=h+" "+h);b.coordorigin=e.coordorigin;a.type="litepath";a._transform=a.transform;a.transform=F;j._setFillAndStroke(a,{fill:"none",stroke:"#000"});(c||e).canvas.appendChild(b);
e=o("skew");e.on=!0;b.appendChild(e);a.skew=e;return a},j._getPath.litepath=function(b){return j.parsePathString(b.node.path||"")};j.fn.litepath=function(b,e,h){e&&e.constructor===E&&(h=e,e=void 0);b&&b.constructor===E&&(h=b,b="");e=j._engine.litepath(b,this,e,h);e.ca.litepath=v;b&&e.attr("litepath",j.is(b,"array")?[b]:b);this.__set__&&this.__set__.push(e);return e}}]);
FusionCharts(["private","modules.renderer.js-raphaelexport",function(){var j=this.hcLib,g=j.Raphael,m=j.pluckNumber,X=j.pluck,w=g._availableAttrs,J=/^matrix\(|\)$/g,Y=/\,/g,b=/\n|<br\s*?\/?>/ig,A=/[^\d\.]/ig,e=/[\(\)\s,\xb0#]/g,r=/group/ig,z=/&/g,oa=/"/g,Z=/'/g,s=/</g,ia=/>/g,I=0;(function(g){var j=Math,ha=parseFloat,H=j.max,o=j.abs,p=j.pow,E=String,V=/[, ]+/,L=[{reg:/xmlns\=\"http\:\/\/www.w3.org\/2000\/svg\"/ig,repStr:""},{reg:/^.*<svg /,repStr:'<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" '},
{reg:/\/svg>.*$/,repStr:"/svg>"},{reg:/\<desc\>[^\<]*\<\/desc\>/,repStr:""},{reg:/zIndex="[^"]+"/g,repStr:""},{reg:/url\((\\?[\'\"])[^#]+#/g,repStr:"url($1#"},{reg:/ href=/g,repStr:" xlink:href="},{reg:/(id|class|width|height)=([^" >]+)/g,repStr:'$1="$2"'},{reg:/:(path|rect)/g,repStr:"$1"},{reg:/\<ima?ge? ([^\>]+?)[^\/]\>/gi,repStr:"<image $1 />"},{reg:/\<\/ima?ge?\>/g,repStr:""},{reg:/style="([^"]+)"/g,repStr:function(b){return b.toLowerCase()}}],G={blur:function(){},transform:function(){},src:function(b,
e){e.attrSTR+=' xlink:href="'+e.attrs.src+'"'},path:function(b,e){var j=e.attrs.path,j=g._pathToAbsolute(j||"");e.attrSTR+=' d="'+(j.toString&&j.toString()||"").replace(Y," ")+'"'},gradient:function(b,s,m){var f=b.attrs.gradient,i="linear",h,c,d=0.5,a=0.5,k=c="",r="";h=f.replace(e,"_");if(!m[h]){f=E(f).replace(g._radial_gradient,function(b,e,c){i="radial";e&&c&&(d=ha(e),a=ha(c),b=(a>0.5)*2-1,p(d-0.5,2)+p(a-0.5,2)>0.25&&(a=j.sqrt(0.25-p(d-0.5,2))*b+0.5)&&a!=0.5&&(a=a.toFixed(5)-1.0E-5*b));return""});
f=f.split(/\s*\-\s*/);if(i==="linear"){c=f.shift();c=-ha(c);if(isNaN(c))return null;var u=[0,0,j.cos(g.rad(c)),j.sin(g.rad(c))];c=1/(H(o(u[2]),o(u[3]))||1);u[2]*=c;u[3]*=c;u[2]<0&&(u[0]=-u[2],u[2]=0);u[3]<0&&(u[1]=-u[3],u[3]=0)}f=g._parseDots(f);if(!f)return null;i==="radial"?(c='<radialGradient fx = "'+d+'" fy = "'+a+'" id = "'+h+'">',k="</radialGradient>"):(c='<linearGradient x1 = "'+u[0]+'" y1 = "'+u[1]+'" x2 = "'+u[2]+'" y2 = "'+u[3]+'" gradientTransform ="matrix('+b.matrix.invert()+')" id = "'+
h+'">',k="</linearGradient>");b=0;for(u=f.length;b<u;b++)r+='<stop offset="'+(f[b].offset?f[b].offset:b?"100%":"0%")+'" stop-color="'+(f[b].color||"#fff")+'" stop-opacity="'+(f[b].opacity===void 0?1:f[b].opacity)+'" />';m[h]=!0;m.str+=c+r+k}s.attrSTR+=" fill=\"url('#"+h+"')\""},fill:function(b,e){var j=e.attrs,f=j.fill,i;if(!b.attrs.gradient)if(f=g.color(f),i=f.opacity,b.type==="text")e.styleSTR+="fill:"+f+"; stroke-opacity:0; ";else if(e.attrSTR+=' fill="'+f+'"',!j["fill-opacity"]&&(i||i===0))e.attrSTR+=
' fill-opacity="'+i+'"'},stroke:function(b,e){var j=e.attrs,f,i;f=g.color(j.stroke);i=f.opacity;if(b.type!=="text"&&(e.attrSTR+=' stroke="'+f+'"',!j["stroke-opacity"]&&(i||i===0)))e.attrSTR+=' stroke-opacity="'+i+'"'},"clip-rect":function(b,g,j){var f=E(g.attrs["clip-rect"]),i=f.split(V),f=f.replace(e,"_")+"__"+I++;i.length===4&&(j[f]||(j[f]=!0,j.str+='<clipPath id="'+f+'"><rect x="'+i[0]+'" y="'+i[1]+'" width="'+i[2]+'" height="'+i[3]+'" transform="matrix('+b.matrix.invert().toMatrixString().replace(J,
"")+')"/></clipPath>'),g.attrSTR+=' clip-path="url(#'+f+')"')},cursor:function(b,e){var g=e.attrs.cursor;g&&(e.styleSTR+="cursor:"+g+"; ")},font:function(b,e){e.styleSTR+="font:"+e.attrs.font.replace(/\"/ig," ")+"; "},"font-size":function(b,e){var g=X(e.attrs["font-size"],"10");g&&g.replace&&(g=g.replace(A,""));e.styleSTR+="font-size:"+g+"px; "},"font-weight":function(b,e){e.styleSTR+="font-weight:"+e.attrs["font-weight"]+"; "},"font-family":function(b,e){e.styleSTR+="font-family:"+e.attrs["font-family"]+
"; "},"line-height":function(){},"clip-path":function(){},visibility:function(){},"vertical-align":function(){},"text-anchor":function(b,e){var g=e.attrs["text-anchor"]||"middle";b.type==="text"&&(e.attrSTR+=' text-anchor="'+g+'"')},title:function(){},text:function(e,g){var j=g.attrs,f=j.text,i=X(j["font-size"],j.font,"10"),h=X(j["line-height"]),c;i&&i.replace&&(i=i.replace(A,""));i=m(i);h&&h.replace&&(h=h.replace(A,""));h=m(h,i&&i*1.2);c=i?i*0.85:h*0.75;for(var i=j.x,d=X(j["vertical-align"],"middle").toLowerCase(),
f=E(f).split(b),j=f.length,a=0,d=d==="top"?c:d==="bottom"?c-h*j:c-h*j*0.5;a<j;a++)g.textSTR+="<tspan ",c=(f[a]||"").replace(z,"&amp;").replace(oa,"&quot;").replace(Z,"&#39;").replace(s,"&lt;").replace(ia,"&gt;"),g.textSTR+=a?'dy="'+h+'" x="'+i+'" ':'dy="'+d+'"',g.textSTR+=">"+c+"</tspan>"}},S=function(b,e){var g="",f={attrSTR:"",styleSTR:"",textSTR:"",attrs:b.attr()},i=b.isShadow,h="",c="",d,a,j=f.attrs;if(b.node.style.display!=="none"&&!i){for(d in j)if(d!=="gradient"&&(w[d]!==void 0||G[d]))if(G[d])G[d](b,
f,e);else f.attrSTR+=" "+d+'="'+j[d]+'"';b.attrs.gradient&&G.gradient(b,f,e);b.type==="rect"&&j.r&&(f.attrSTR+=' rx="'+j.r+'" ry="'+j.r+'"');for(a in b.styles)f.styleSTR+=a+":"+b.styles[a]+"; ";b.type==="image"&&(f.attrSTR+=' preserveAspectRatio="none"');b.bottom&&(h=S(b.bottom,e));b.next&&(c=S(b.next,e));i=b.type;i.match(r)&&(i="g");g+="<"+i+' transform="matrix('+b.matrix.toMatrixString().replace(J,"")+')" style="'+f.styleSTR+'"'+f.attrSTR+">"+f.textSTR+h+"</"+i+">"+c}else b.next&&(g+=S(b.next,e));
return g};g.fn.toSVG=function(b){var e="",j={str:""},f=0,i=L.length,h="";if(g.svg){if(this.canvas&&this.canvas.parentNode)for(e=this.canvas.parentNode.innerHTML;f<i;f+=1)j=L[f],e=e.replace(j.reg,j.repStr)}else e='<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+this.width+'" version="1.1" height="'+this.height+'">',this.bottom&&(h=S(this.bottom,j)),e+="<defs>"+j.str+"</defs>"+h+"</svg>";b||(e=e.replace(/\<image [^\>]*\>/gi,
""));return e}})(g)}]);
FusionCharts(["private","modules.renderer.js-raphaeltooltip",function(){var j=window,g=document,m=this.hcLib,X=m.Raphael,w=X.eve,J=m.createElement,Y=m.addEvent,b=m.removeEvent,A=m.getPosition,e=m.hasTouch,r=m.getTouchEvent,z=j.Math,oa=z.ceil,Z=z.floor,s=j.screen.availHeight,ia=j.screen.availWidth,I={"":1,moz:1,webkit:1,o:1,ms:1},K={borderRadius:"borderRadius",boxShadow:"boxShadow"},P=/\-([a-z])/ig,ha=function(b,e){return e.toUpperCase()},H=function(b){var e=o.forbiddenStyle,g,j,s;for(g in b)j=P.test(g)?
g.replace(P,ha):g,b[g]!==void 0&&!e[j]&&(this[j]=b[g]),X.vml&&/color/ig.test(j)&&(this[j]=X.getRGB(this[j]).toString());for(g in K)if(this[g])for(s in I)this[s+g]=this[g]},o=m.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,defaultStyle:m.extend2(H.prototype,{backgroundColor:"#ffffee",borderColor:"#000000",borderWidth:"1px",color:"#000000",fontSize:"10px",lineHeight:"12px",padding:"3px",borderStyle:"solid"}),defaultContainerStyle:{position:"absolute",
textAlign:"left",margin:"0",zIndex:"999",pointer:"default",display:"block"},forbiddenStyle:{}},p=function(e){b(window,"click",p);o.onhide.call(this,e)};if(X.svg)o.defaultContainerStyle.pointerEvents="none",o.defaultStyle.borderRadius="0",o.defaultStyle.boxShadow="none";if(X.vml)o.forbiddenStyle.borderRadius=!0,o.forbiddenStyle.boxShadow=!0,o.defaultStyle.filter="";o.setup=function(){var b=o.container,j=o.textElement,s=o.style,p=o.defaultContainerStyle,m=o.forbiddenStyle,r;if(!b)b=o.element=J("span"),
(g.body||g.getElementsByTagName("body")[0]).appendChild(b),b.setAttribute("id",o.elementId),s=o.containerStyle=b.style,j=o.textElement=J("span"),b.appendChild(j),o.style=X.vml?j.runtimeStyle:j.style,o.style.overflow="hidden",o.style.display="block",o.hidden=!1,o.hide();for(r in p)!m[r]&&(s[r]=p[r]);Y(b,e&&"touchstart"||"mouseover",o.onredraw);o.scatted=!0;w.on("raphael.drag.start.*",function(){o.scatted&&(o.waitingScat=!0)});w.on("raphael.drag.move.*",function(){if(o.waitingScat)o.block(),o.waitingScat=
!1});w.on("raphael.drag.end.*",function(){o.waitingScat=!1;o.scatted&&o.unblock(!0)});w.on("raphael.remove",function(){if(o.currentPaper===this||o.currentTarget&&o.currentTarget.paper===this)o.hide(),o.currentTarget=o.currentPaper=null})};o.restyle=function(b){var e=o.style,g;for(g in b)e[g]=b[g]};o.onelement=function(b){var g=b.data,j=g.paper;if(j.__tip_style){o.hiding&&(o.hiding=clearTimeout(o.hiding));if(o.currentPaper!==j)j.__tip_cp=j.canvas&&A(j.canvas.parentNode,!0)||{},o.restyle(j.__tip_style),
o.currentPaper=j;o.lastTarget=o.currentTarget;o.currentTarget=g;o.scatted=g.__tip_scatted;o.onredraw.call(this,b);if(e)return Y(window,"click",p),!1}};o.onredraw=function(b){o.redrawing&&clearTimeout(o.redrawing);b=r(b);o.x=Z(b.pageX);o.y=Z(b.pageY);o.redrawing=setTimeout(o.redraw,0)};o.onhide=function(){o.hiding=setTimeout(o.hide,200)};o.redraw=function(){if(!o.blocked&&o.currentTarget){var b=o.currentTarget,e=b.paper,j=o.textElement,p=o.containerStyle,m=o.style,r=b.__tip_text,b=o.pointeroffset,
v=e.__tip_cp,w=g.documentElement||g.body,f=w.scrollLeft,w=w.scrollTop,i=o.x,h=o.y,c,d=e.width,a=e.height,e=e.__tip_constrain;if(d<100||a<100)e=!1;if(o.hidden)o.containerStyle.top="-999em",o.show();if(r!==o.text)o.text=r,p.width=p.height="",j.innerHTML=r,m.whiteSpace="nowrap",r=oa(m.pixelWidth||j.offsetWidth||0),c=oa(m.pixelHeight||j.offsetHeight||0),(o.textWidthOverflow=r>d)?(p.width=(d||0)-b*2+"px",m.whiteSpace="normal"):p.width="",(o.textHeightOverflow=c>a)?(p.height=(a||0)-b*2+"px",m.whiteSpace=
"normal"):p.height="";r=oa(m.pixelWidth||j.offsetWidth||0);c=oa(m.pixelHeight||j.offsetHeight||0);e?(o.textWidthOverflow?i=v.left-f:i+b+r>v.left-f+d-b&&(i=i-r-b),o.textHeightOverflow?h=v.top-w:h+b+c>v.top-w+a-b&&(h=h-c-b*1.5)):(f+ia<i+b+r&&(i=i-r-b),w+s<h+b+c&&(h=h-c-b*1.5));p.left=(i+b||0)+"px";p.top=(h+b||0)+"px";o.hidden&&o.show()}};o.hide=function(){o.hiding&&(o.hiding=clearTimeout(o.hiding));o.containerStyle.display="none";o.hidden=!0};o.show=function(){if(!o.blocked)o.hiding&&(o.hiding=clearTimeout(o.hiding)),
o.containerStyle.display="inline",o.hidden=!1};o.block=function(){o.blocked=!0;o.containerStyle.display="none"};o.unblock=function(b){o.blocked=!1;b&&(o.containerStyle.display=o.hidden&&"none"||"inline")};X.fn.tooltip=function(b,e,g){if(e)e=(e.opacity===void 0?1:e.opacity)*0.4,X.svg?b.boxShadow="1px 1px 3px rgba(64,64,64,"+e+")":b.filter="progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color='#404040', shadowOpacity='"+e/2+"')";this.__tip_style=new H(b);this.__tip_cp=this.canvas&&
A(this.canvas.parentNode,!0)||{};this.__tip_constrain=Boolean(g);return this};X.el.tooltip=function(g,j,s,p,m){o.setup();X.el.tooltip=function(g,j,s,f,i){j=this.node;s=g===!1||g==void 0||!(g+"");this.__tip_scatted=f==void 0?this.__tip_scatted:!f;this.__tip_scatted==void 0&&(this.__tip_scatted=!0);if(i!=null)this.__tip_blocked=i;s^!this.__tip_text&&(e?(s?b:Y)(j,"click",o.onelement,this):s?(b(j,"mouseover",o.onelement,this),b(j,"mousemove",o.onredraw,this),b(j,"mouseout",o.onhide,this)):(Y(j,"mouseover",
o.onelement,this),Y(j,"mousemove",o.onredraw,this),Y(j,"mouseout",o.onhide,this)));this.__tip_text=g;if(o.currentTarget===this&&g!==o.text&&!o.hidden)o[s?"hide":"redraw"]();return this};return X.el.tooltip.call(this,g,j,s,p,m)}}]);
FusionCharts(["private","modules.renderer.js-base",function(){var j=this,g=j.hcLib,m=window,X=m.document,w=g.BLANKSTRING,J=g.createTrendLine,Y=m.location.protocol==="https:"?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",b=g.pluck,A=g.getValidValue,e=g.pluckNumber,r=g.defaultPaletteOptions,z=g.getFirstValue,oa=g.getDefinedColor,Z=g.parseUnsafeString,s=g.FC_CONFIG_STRING,ia=g.extend2,I=g.getDashStyle,K=g.toPrecision,P=g.regex.dropHash,ha=g.HASHSTRING,H=g.getSentenceCase,
o=g.addEvent,m=Math,p=m.min,E=m.max,V=m.ceil,L=m.floor,G=m.log,S=m.pow,W=g.graphics.getColumnColor,v=g.getFirstColor,F=g.setLineHeight,f=g.pluckFontSize,i=g.getFirstAlpha,h=g.graphics.getDarkColor,c=g.graphics.getLightColor,d=g.graphics.convertColor,a=g.COLOR_TRANSPARENT,k=g.POSITION_CENTER,t=g.POSITION_TOP,u=g.POSITION_BOTTOM,M=g.POSITION_RIGHT,ba=g.POSITION_LEFT,R=g.chartAPI,Ha=g.titleSpaceManager,m=g.placeLegendBlockBottom,ya=g.placeLegendBlockRight,sa=g.graphics.mapSymbolName,m=R.singleseries,
ya=R.multiseries,fa=g.COMMASTRING,Ka=g.STRINGUNDEFINED,ta=g.ZEROSTRING,ua=g.ONESTRING,Fa=g.HUNDREDSTRING,La=g.PXSTRING,eb=g.COMMASPACE,Xa=g.CREDIT_STRING="FusionCharts XT Trial",Ya=g.BLANKSTRINGPLACEHOLDER,ka=g.BGRATIOSTRING,Wa=g.COLOR_WHITE,Ma=g.TESTSTR,cb=g.graphics.getAngle,Oa=g.axisLabelAdder,Ia=g.falseFN,bb=g.SmartLabelManager,fb=g.NumberFormatter,gb=g.getLinkAction,Ja=g.getAxisLimits,Qa=g.createDialog,l=function(a,b){return a>0?G(a)/G(b||10):null},x=g.hasTouch=document.documentElement.ontouchstart!==
void 0;g.removeEvent=function(a,b,e){var d=X.removeEventListener?"removeEventListener":"detachEvent";X[d]&&!a[d]&&(a[d]=function(){});jQuery(a).unbind(b,e)};var n=g.fireEvent=function(a,b,e,d){var c=jQ.Event(b),f="detached"+b;ia(c,e);a[b]&&(a[f]=a[b],a[b]=null);jQuery(a).trigger(c);a[f]&&(a[b]=a[f],a[f]=null);d&&!c.isDefaultPrevented()&&d(c)},C={fontWeight:{1:"bold",0:"normal"},fontStyle:{1:"italic",0:"normal"},textDecoration:{1:"underline",0:"none"}},Q={font:function(a,b){b.style.fontFamily=a},size:function(a,
b){if(a)b.style.fontSize=f(a)+La},color:function(a,b,e){b.style.color=a&&a.replace&&a.replace(P,ha)||w;if(e)b.color=b.style.color},bgcolor:function(a,b){b.style.backgroundColor=a&&a.replace&&a.replace(P,ha)||w},bordercolor:function(a,b){b.style.border="1px solid";b.style.borderColor=a&&a.replace&&a.replace(P,ha)||w},ishtml:w,leftmargin:function(a,b){b.style.marginLeft=e(a,0)+La},letterspacing:function(a,b){b.style.letterSpacing=e(a,0)+La},bold:function(a,b){b.style.fontWeight=C.fontWeight[a]||""},
italic:function(a,b){b.style.fontStyle=C.fontStyle[a]||""},underline:function(a,b){b.style.textDecoration=C.textDecoration[a]||""}},va={chart2D:{bgColor:"bgColor",bgAlpha:"bgAlpha",bgAngle:"bgAngle",bgRatio:"bgRatio",canvasBgColor:"canvasBgColor",canvasBaseColor:"canvasBaseColor",divLineColor:"divLineColor",legendBgColor:"legendBgColor",legendBorderColor:"legendBorderColor",toolTipbgColor:"toolTipbgColor",toolTipBorderColor:"toolTipBorderColor",baseFontColor:"baseFontColor",anchorBgColor:"anchorBgColor"},
chart3D:{bgColor:"bgColor3D",bgAlpha:"bgAlpha3D",bgAngle:"bgAngle3D",bgRatio:"bgRatio3D",canvasBgColor:"canvasBgColor3D",canvasBaseColor:"canvasBaseColor3D",divLineColor:"divLineColor3D",divLineAlpha:"divLineAlpha3D",legendBgColor:"legendBgColor3D",legendBorderColor:"legendBorderColor3D",toolTipbgColor:"toolTipbgColor3D",toolTipBorderColor:"toolTipBorderColor3D",baseFontColor:"baseFontColor3D",anchorBgColor:"anchorBgColor3D"}},O=function(){var a={},b,e=function(){var e,d,c,f,l=0,ca;for(e in a)if(l+=
1,d=a[e],c=d.jsVars,f=(d=d.ref)&&d.parentNode){if(ca=f.offsetWidth,f=f.offsetHeight,!c.resizeLocked&&(c._containerOffsetW!==ca||c._containerOffsetH!==f))d.resize&&d.resize(),c._containerOffsetW=ca,c._containerOffsetH=f}else delete a[e],l-=1;l||(b=clearInterval(b))};return function(d){var c=d.jsVars,f=d.ref&&d.ref.parentNode||{};c._containerOffsetW=f.offsetWidth;c._containerOffsetH=f.offsetHeight;a[d.id]=d;b||(b=setInterval(e,300))}}(),pa={getExternalInterfaceMethods:function(){var a=R[this.jsVars.type],
a=a&&a.eiMethods,b="saveAsImage,print,exportChart,getXML,hasRendered,signature,cancelExport,getSVGString,";if(typeof a==="string")b+=a+fa;else if(a!==void 0||a!==null)for(var e in a)b+=e+fa;return b.substr(0,b.length-1)},drawOverlayButton:function(a){var b=this.jsVars,e=b.$overlayButton;if(a&&a.show){if(!e)e=b.$overlayButton=jQuery("<span>"),e.click(function(){j.raiseEvent("OverlayButtonClick",a,b.fcObj)});e.text(a.message?a.message:"Back");b.overlayButtonMessage=e.text();e.css({border:"1px solid "+
(a.borderColor?a.borderColor.replace(P,ha):"#7f8975"),backgroundColor:a.bgColor?a.bgColor.replace(P,ha):"#edefec",fontFamily:a.font?a.font:"Verdana",color:"#"+a.fontColor?a.fontColor:"49563a",fontSize:(a.fontSize?a.fontSize:"10")+La,padding:(a.padding?a.padding:"3")+La,fontWeight:parseInt(a.bold,10)===0?"normal":"bold",position:"absolute",top:"0",right:"0",_cursor:"hand",cursor:"pointer"});b.hcObj.container.appendChild(e[0]);b.overlayButtonActive=!0}else if(e)e.detach(),b.overlayButtonActive=!1,delete b.overlayButtonMessage},
print:function(){return this.jsVars.hcObj&&this.jsVars.hcObj.hasRendered&&this.jsVars.hcObj.print()},exportChart:function(a){var b=this.jsVars.hcObj;if(b&&b.options&&b.options.exporting&&b.options.exporting.enabled)return b.exportChart(a);return!1},getSVGString:function(){return this.jsVars&&this.jsVars.hcObj&&this.jsVars.hcObj.paper&&this.jsVars.hcObj.paper.toSVG()},resize:function(){var a=this.jsVars,b=a.container,e=a.fcObj,d=a.hcObj;d&&(d&&d.destroy&&d.destroy(),g.createChart(a.fcObj,b,a.type,
void 0,void 0,!1),delete a.isResizing,g.raiseEvent("resized",{width:e.width,height:e.height,prevWidth:a.width,prevHeight:a.height},e,[e.id]))},lockResize:function(a){return this.jsVars.resizeLocked=a===void 0&&!0||a},showChartMessage:function(a,b,e){var d=this.jsVars,c=d.hcObj;d.msgStore[a]&&(a=d.msgStore[a]);b&&c&&c.hasRendered?a?c.showMessage(a,e):c.hideLoading():(c&&c.destroy&&c.destroy(),g.createChart(d.fcObj,d.container,d.type,void 0,a));return a},signature:function(){return"FusionCharts/3.3.1 (XT)"}};
g.createChart=function(a,b,e,d,c,f,l){var h=a.jsVars,n=h.msgStore,i,x=R[e],s,k=function(c){var f={renderer:"javascript"},q=h.fcObj,l=q.width,n=q.height,ga=x&&x.eiMethods,i=h.$overlayButton;b.jsVars=a.jsVars;h.container=b;h.hcObj=c;h.type=e;h.width=b.offsetWidth;h.height=b.offsetHeight;h.instanceAPI=s;if(c.hasRendered){j.extend(b,pa);if(ga&&typeof ga!=="string")for(var k in ga)b[k]=ga[k];h.overlayButtonActive&&i&&(i.text(h.overlayButtonMessage),c.container.appendChild(i[0]))}d&&(d({success:c.hasRendered,
ref:b,id:a.id}),c.hasRendered&&(l=Number((l&&l.match&&l.match(/^\s*(\d*\.?\d*)\%\s*$/)||[])[1]),n=Number((n&&n.match&&n.match(/^\s*(\d*\.?\d*)\%\s*$/)||[])[1]),(l||n)&&q.ref&&q.ref.parentNode&&O(q),g.raiseEvent("loaded",{type:e,renderer:"javascript"},a,[a.id]),g.raiseEvent("rendered",{renderer:"javascript"},q,[q.id])));if(c.hasRendered&&h.previousDrawCount<h.drawCount)f.width=h.width,f.height=h.height,f.drawCount=h.drawCount,f.drawingLatency=s.drawingLatency,f.displayingMessage=h.hasNativeMessage,
g.raiseEvent("drawcomplete",f,q,[q.id])};a.__state.dataReady=!1;h.instanceAPI&&h.instanceAPI.dispose&&h.instanceAPI.dispose();s=x?new R(e):new R("stub");s.chartInstance=a;if(c!==void 0){if(typeof c==="string")c=new Qa(b,c),h.hasNativeMessage=!0}else!x||!x.init||x&&x.name==="stub"?(c=new Qa(b,n.ChartNotSupported),h.hasNativeMessage=!0):h.message?(c=new Qa(b,h.message),h.hasNativeMessage=!0):h.loadError?(c=new Qa(b,n.LoadDataErrorText),h.hasNativeMessage=!0):h.stallLoad?(c=new Qa(b,n.XMLLoadingText),
h.hasNativeMessage=!0):(c=a.getChartData(FusionChartsDataFormats.JSON,!0),i=c.data,c.error instanceof Error?(c=new Qa(b,n.InvalidXMLText),h.hasNativeMessage=!0,l||g.raiseEvent("dataxmlinvalid",{},h.fcObj,[h.fcObj.id])):(l||g.raiseEvent("dataloaded",{},h.fcObj,[h.fcObj.id]),c=s.init(b,i,a,k),h.previousDrawCount=h.drawCount,h.drawCount+=1,c.series.length===0?(c=new Qa(b,n.ChartNoDataText),h.hasNativeMessage=!0,l||g.raiseEvent("nodatatodisplay",{},h.fcObj,[h.fcObj.id])):(a.__state.dataReady=!0,h.hasNativeMessage=
!1,delete h.message)));if(!c)c=new Qa(b,"Error rendering chart {0x01}"),h.hasNativeMessage=!0;c.chart=c.chart||{};c.chart.renderTo=b;c.credits=c.credits||{};c.credits.enabled=x&&x.creditLabel===!0?!0:!1;if(f===!1)c.chart.animation=!1,(c.plotOptions||(c.plotOptions={}))&&(c.plotOptions.series||(c.plotOptions.series={})),c.plotOptions.series.animation=!1;if(b.style)c.chart.containerBackgroundColor=h.transparent?"transparent":a.options.containerBackgroundColor||"#ffffff";return s.draw(c,k)};var B=g.HCstub=
function(a,b,d,c){var a=a.chart,f=e(a.charttopmargin,c.charttopmargin,15),l=e(a.chartrightmargin,c.chartrightmargin,15),h=e(a.chartbottommargin,c.chartbottommargin,15),g=e(a.chartleftmargin,c.chartleftmargin,15),n=f+h,i=g+l;d*=0.7;b*=0.7;n>d&&(f-=(n-d)*f/n,h-=(n-d)*h/n);i>b&&(g-=(i-b)*g/i,l-=(i-b)*l/i);b={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},oriCatTmp:[],noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,
renderTo:w,ignoreHiddenSeries:!1,events:{},reflow:!1,spacingTop:f,spacingRight:l,spacingBottom:h,spacingLeft:g,marginTop:f,marginRight:l,marginBottom:h,marginLeft:g,borderRadius:0,plotBackgroundColor:"#FFFFFF",style:{},animation:!e(a.defaultanimation,a.animation,1)?!1:{duration:e(a.animationduration,1)*500}},colors:["AFD8F8","F6BD0F","8BBA00","FF8E46","008E8E","D64646","8E468E","588526","B3AA00","008ED6","9D080D","A186BE","CC6600","FDC689","ABA000","F26D7D","FFF200","0054A6","F7941C","CC3300","006600",
"663300","6DCFF6"],credits:{href:"http://www.fusioncharts.com?BS=FCHSEvalMark",text:Xa,enabled:!0},global:{},labels:{items:[]},lang:{},legend:{enabled:!0,symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:w,x:0,y:0,padding:2},scroll:{},itemStyle:{}},loading:{},plotOptions:{series:{pointPadding:0,borderColor:"#333333",events:{},animation:!e(a.animation,a.defaultanimation,1)?!1:{duration:e(a.animationduration,1)*1E3},states:{hover:{enabled:!1},select:{enabled:!1}},dataLabels:{enabled:!0,
color:"#555555",style:{},formatter:function(){return this.point.showPercentValues?c.numberFormatter.percentValue(this.percentage):this.point.displayValue}},point:{events:{}}},area:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},radar:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},areaspline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},
line:{shadow:!0,states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},scatter:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},bubble:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},spline:{states:{hover:{enabled:!1}},marker:{lineWidth:1,radius:3,states:{hover:{enabled:!1},select:{enabled:!1}}}},pie:{size:"80%",allowPointSelect:!0,
cursor:"pointer",point:{events:{legendItemClick:a.interactivelegend===ta?Ia:function(){this.slice()}}}},pie3d:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:a.interactivelegend===ta?Ia:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:w,style:{}},symbols:[],title:{text:w,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],
plotBands:[],title:{style:{},text:w},tickWidth:0,scroll:{enabled:!1}},yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},text:w},tickLength:0,labels:{x:0,style:{}},plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:w},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==Ya?this.value:w}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}};if(a.palettecolors&&typeof a.palettecolors===
"string")b.colors=a.palettecolors.split(fa);return c.hcJSON=b},na=g.placeVerticalAxis=function(a,b,d,c,f,l,h,g,n,i){var j=d[s],x=j.smartLabel,k,o,B,p,C=0,g=j.marginRightExtraSpace,m=j.marginLeftExtraSpace,r={},Q={},u={},O=a.plotLines,va=a.plotBands,j=b.verticalAxisValuesPadding,t=!isNaN(b.fixedValuesPadding)?b.fixedValuesPadding:0,v=j-t,pa=b.verticalAxisValuesPadding,da=b.verticalAxisNamePadding,z=b.verticalAxisNameWidth,na=b.rotateVerticalAxisName,xa=a.offset?a.offset:0,la=0,wa=0,ea=0,I=0,ma=0,T=
0,Aa=0,ra,H,F,ja,j=2,Aa=h?g+8:m+4,P=function(a,e){var d,c;if(a&&a.label&&A(a.label.text)!==void 0){F=a.label;if(F.style&&F.style!==H)H=F.style,x.setStyle(H);k=x.getOriSize(a.label.text);c=(d=k.width)?d+2:0;if(a.isGrid){if(r[e]={width:d,height:k.height,label:F},I<=c)I=c,b.lYLblIdx=e}else a.isTrend&&(h&&F.textAlign===ba||F.textAlign===M?(Q[e]={width:d,height:k.height,label:F},ma=E(ma,c)):(u[e]={width:d,height:k.height,label:F},T=E(T,c)))}},L=function(b,e){var d,c=e?C:C+b;o=o||{};return c>0?(na?(c<o.height&&
(o=x.getSmartText(a.title.text,f,c)),d=o.height):(c<o.width&&(o=x.getSmartText(a.title.text,c,f)),d=o.width),a.title.text=o.text,o.tooltext&&(a.title.originalText=o.tooltext),e?c-d+b:c-d):(a.title.text=w,0)},ia=function(a,b,e){for(var d in a)a[d].label.x=b,a[d].label.y=e};ra=0;for(ea=va.length;ra<ea;ra+=1)P(va[ra],ra);ra=0;for(ea=O.length;ra<ea;ra+=1)P(O[ra],ra);if(a.title&&a.title.text!=w)H=a.title.style,x.setStyle(H),B=x.getOriSize(Ma).height,na?(o=x.getSmartText(a.title.text,f,l),C=o.height,p=
B):(a.title.rotation=0,o=x.getSmartText(a.title.text,z!==void 0?z:l,f),C=o.width,p=20);T>0&&(wa=T+pa);n&&(c=e(c.chart.maxlabelwidthpercent,0),c>=1&&c<=100&&(n=c*n/100,I>n&&(I=n)));la=E(ma,I);la+=la?v+t:0;C>0&&(la+=C+da+Aa);(function(){if(wa+la>l){ja=wa+la-l;if(wa)if(pa>=ja){pa-=ja;return}else ja-=pa,pa=0;if(v+da>=ja)da>=ja?da-=ja:(v-=ja-da,da=0);else{ja-=v+da;da=v=0;if(T>20)if(ma>I)if(T-ma>=ja){T-=ja;return}else if(ma-T>=ja){ma-=ja;return}else if(ma>T?(ja-=ma-T,ma=T):(ja-=T-ma,T=ma),2*(ma-I)>=ja){T-=
ja/2;ma-=ja/2;return}else ja-=2*(ma-I),T=ma=I;else if(T-20>=ja){T-=ja;return}else ja-=T-20,T=20;if(ma>I)if(ma-I>=ja){ma-=ja;return}else ja-=ma-I,ma=I;C-p>=ja?C-=ja:(ja-=C-p,C=p,T>=ja?T=0:(ja-=T,T=0,C>=ja?C=0:(ja-=C,C=0,I>=ja&&(I-=ja,ma=I))))}}})();ea=function(a,b){var e,d=0,c=b?T-2:T+a-2;if(T>0){for(ra in u)if(F=u[ra].label,u[ra].width>c){if(F.style&&F.style!==H)H=F.style,x.setStyle(H);e=x.getSmartText(F.text,c,f,!0);F.text=e.text;e.tooltext&&(F.originalText=e.tooltext);u[ra].height=e.height;d=Math.max(d,
e.width)}else d=Math.max(d,u[ra].width);return b?c-d+a:c-d}else{for(ra in u)u[ra].label.text=w;return 0}}(0,!0);ea=L(ea,!0);ea=function(a){var b=0,e=Math.max(I,ma)+a-2;if(e>0){for(ra in r)if(F=r[ra].label,r[ra].width>e){if(F.style&&F.style!==H)H=F.style,x.setStyle(H);a=x.getSmartText(F.text,e,f,!0);F.text=a.text;a.tooltext&&(F.originalText=a.tooltext);r[ra].height=a.height;b=Math.max(b,a.width)}else b=Math.max(b,r[ra].width);for(ra in Q)if(F=Q[ra].label,Q[ra].width>e){if(F.style&&F.style!==H)H=F.style,
x.setStyle(H);a=x.getSmartText(F.text,e,f,!0);F.text=a.text;a.tooltext&&(F.originalText=a.tooltext);Q[ra].height=a.height;b=Math.max(b,a.width)}else b=Math.max(b,Q[ra].width);return e-b}else{for(ra in r)r[ra].label.text=w;for(ra in Q)Q[ra].label.text=w;return 0}}(ea);ea=L(ea);n=b.verticalAxisNamePadding-da;ea&&n&&(ea>n?(da+=n,ea-=n):(da+=ea,ea=0));n=b.verticalAxisValuesPadding-(v+t);ea&&n&&(ea>n?(v+=n,ea-=n):(v+=ea,ea=0));n=b.verticalAxisValuesPadding-pa;ea&&n&&(ea>n?(pa+=n,ea-=n):(pa+=ea,ea=0));
T>0&&(wa=T+pa);la=E(ma,I);la+=la?v+t:0;C>0&&(la+=C+da+Aa);n=E(ma,I);n+=n>0?v+t:0;C>0?(na?C<o.height&&(o=x.getSmartText(a.title.text,f,C)):(C<o.width&&(o=x.getSmartText(a.title.text,C,f)),a.title.y=-((o.height-B)/2)),a.title.text=o.text,o.tooltext&&(a.title.originalText=o.tooltext),a.title.margin=n+da+Aa+(na?C-B:C/2)):a.title.text=w;B=-(v+t+xa+m+2);g=g+pa+xa+2;Aa=E(ma,I);a.labels.style&&(j=parseInt(a.labels.style.fontSize,10)*0.35);h?(T>0&&ia(u,B,j),Aa>0&&(ia(r,g,j),ia(Q,g,j))):(T>0&&ia(u,g,j),Aa>
0&&(ia(r,B,j),ia(Q,B,j)));a.labels._textY=j;a.labels._righttX=g;a.labels._leftX=B;i?(d.chart.marginLeft+=h?wa:la-i,d.chart.marginRight+=h?la-i:wa):(d.chart.marginLeft+=h?wa:la,d.chart.marginRight+=h?la:wa);return wa+la},Ha=g.titleSpaceManager=function(a,b,d,c){var f=b.chart,l=Z(f.caption),h=Z(f.subcaption),g=b=e(f.captionpadding,10),n=a[s].smartLabel,i=!1,j,x=0,k,o,C=0,B=0,m=0,r=0,Q=a.title,u=a.subtitle,C=e(f.plotBorderWidth,1),C=e(f.canvasborderthickness,1);b<C&&(b=C);if(l!==w)k=Q.style,m=e(parseInt(k.fontHeight,
10),parseInt(k.lineHeight,10),12),e(parseInt(k.fontSize,10),10);if(h!==w)o=u.style,r=e(parseInt(o.fontHeight,10),parseInt(o.lineHeight,10),12),e(parseInt(o.fontSize,10),10);if(m>0||r>0){x=m+r+b;x>c?(C=x-c,i=!0,C<b?b-=C:(C-=b,b=0,r>C?(B=r-C+10,r=0):(C-=r,r=0,m>C&&(B=m-C),m=0))):B=c-x;if(m>0)n.setStyle(k),m+=B,j=n.getSmartText(l,d,m),B=m-j.height,m=j.height,Q.text=j.text,Q.height=j.height,j.tooltext&&(Q.originalText=j.tooltext);if(r>0)n.setStyle(o),r+=B,d=n.getSmartText(h,d,r),B=r-d.height,r=d.height,
u.text=d.text,u.height=d.height,d.tooltext&&(Q.originalText=j.tooltext);i&&B>0&&(b+=p(g-b,B));x=m+r+b;a.chart.marginTop+=x}return x},xa=g.stepYAxisNames=function(a,b,e,d,c,l){for(var h=0,g=d.plotLines,n=[],j,i=d.plotLines.length,b=b[s].smartLabel,x=parseFloat(f(e.basefontsize,10)),k;h<i;h+=1)e=g[h],e.isGrid&&e.label&&e.label.text&&(n.push(e),e.value===0&&(j=n.length-1));if(i=n.length)if(d.labels.style?b.setStyle(d.labels.style):n[0].label&&n[0].label.style&&b.setStyle(d.labels.style),h=b.getOriSize("W").height,
l||(h+=x*0.4),a/=i-1,a<h){l=Math.max(1,Math.ceil(h/a));for(h=a=j;h<i;h+=1){e=n[h];if(h===c){if((h-a)%l&&k)k.label.text="";a=c}if(e&&e.label)(h-a)%l?e.label.text=w:k=e}for(h=a=j;h>=0;h-=1){e=n[h];if(h===c){if((a-h)%l&&k)k.label.text="";a=c}if(e&&e.label)(a-h)%l?e.label.text=w:k=e}}},ea=g.placeHorizontalAxis=function(a,b,d,c,f,l,h){var g=d[s],n=c&&c.chart||{},j,i,x,o,C,B,m,r,p,Q,O=0,v=0,t=10,va=1,pa=0,da=pa=0,z=0,na=!1,ea=!1,la=!1,I=e(n.labelstep,0),xa=e(n.xaxisminlabelwidth,0),wa=b.labelDisplay,ma=
b.rotateLabels,ra=b.horizontalLabelPadding,Aa=g.marginBottomExtraSpace;p=d.chart.marginLeft;var T=d.chart.marginRight,H=g.smartLabel,F=g.plotBorderThickness,ia=b.catCount,P=b.slantLabels,ja=f/(a.max-a.min),L=0,Z=0,da={w:0,h:0},Ra=c&&c.chart||{},c=e(Ra.updateinterval,Ra.refreshinterval)*1E3,Ra=Ra.datastreamurl,W=Boolean(this.realtimeEnabled&&c&&Ra!==void 0);if(a.labels.style)B=a.labels.style,H.setStyle(B),r=H.getOriSize("W"),t=H.lineHeight,m=r.width+4,Q=H.getOriSize("WWW").width+4;var X,K,G,R=[],c=
[],J=0,ha=0,S,V,ta,ua,Ra=b.horizontalAxisNamePadding;K=0;var Y=b.staggerLines,fa=L,ka=!1,oa=!1;if(a.title&&a.title.text!=w)B=a.title.style,H.setStyle(B),pa=H.getOriSize("W").height,a.title.rotation=0,o=H.getSmartText(a.title.text,f,l),v=o.height;p!=parseInt(n.chartleftmargin,10)&&(j=!0);T!=parseInt(n.chartrightmargin,10)&&(G=!0);n.canvaspadding!==void 0&&n.canvaspadding!==""&&(oa=!0);K=f-h;switch(wa){case "none":na=la=!0;ma&&(O=P?300:270,r=t,t=m,m=r);break;case "rotate":O=P?300:270;r=t;t=m;m=r;na=
!0;break;case "stagger":ea=na=!0;h=Math.floor((l-pa)/t);h<Y&&(Y=h);break;default:ma&&(O=P?300:270,r=t,t=m,m=r)}g.isBar&&(na=!0);n=0;h=a.plotLines;if(typeof d._FCconf.isXYPlot===Ka&&!g.isBar){for(S=h.length;n<S;n+=1)(i=h[n])&&(i.isGrid?R.push(i):i.isTrend&&c.push(i));ma=a.plotBands;n=0;for(S=ma.length;n<S;n+=1)(i=ma[n])&&c.push(i);ma=R.length-1;S=R.length;ea&&(Y>S?Y=S:Y<2&&(Y=2));if(S){a.scroll&&a.scroll.viewPortMin&&a.scroll.viewPortMax?(x=a.scroll.viewPortMin,X=a.scroll.viewPortMax,G=j=!1):(x=a.min,
X=a.max);n=(R[ma].value-R[0].value)*ja;V=n/(ia-1);ta=(R[0].value-x)*ja;ua=(X-R[ma].value)*ja;wa==="auto"?V<Q&&(O=P?300:270,r=t,t=m,m=r,na=!0):wa==="stagger"&&(V*=Y);this.defaultSeriesType!=="line"&&(this.defaultSeriesType==="area"?g.drawFullAreaBorder&&(F>ta&&(x=a.min-=F/(2*ja),ta+=(R[0].value-x)*ja),F>ua&&(X=a.max+=F/(2*ja),ua+=(X-R[ma].value)*ja)):(F>ta&&(x=a.min-=F/(2*ja),ta+=(R[0].value-x)*ja),F>ua&&(X=a.max+=F/(2*ja),ua+=(X-R[ma].value)*ja)));m<xa&&(m=xa);va=!ea&&!la?Math.max(1,I,Math.ceil(m/
V)):Math.max(1,I);if(g.x)g.x.stepValue=va;V*=va;p=(ta+p)*2;if((C=h[0].label)&&C.text)C.style&&H.setStyle(C.style),Q=O===270?Math.min(V,H.getOriSize(C.text).height+4):Math.min(V,H.getOriSize(C.text).width+4),Q>p&&(la||(J=(Q-p)/2),j||(oa&&(J=0),V-=J/(ia-1),r=V*(ia-1),ja=V,p=(n-r)/ja,X=a.max+=p,x=a.min-=p,J=0,n=r,ta=(R[0].value-x)*ja,ua=(X-R[ma].value)*ja));p=(ua+T)*2;if((C=h[ma].label)&&C.text)C.style&&H.setStyle(C.style),Q=O===270?Math.min(V,H.getOriSize(C.text).height+4):Math.min(V,H.getOriSize(C.text).width+
4),Q>p&&(la||(ha=(Q-p)/2),G||(oa&&(ha=0),V-=ha/(ia-1),r=V*(ia-1),ja=V,p=(n-r)/ja,ha=0,n=r,ta=(R[0].value-x)*ja,ua=(X-R[ma].value)*ja));n=J+ha;if(n>0){K>n?(T=(T=ha*f/(ha+f))?T+4:0,d.chart.marginRight+=T,f-=T,T=(T=J*f/(J+f))?T+4:0,d.chart.marginLeft+=T,f-=T,ja=f/(a.max-a.min)):J<ha?K>=ha&&G?(T=(T=ha*f/(ha+f))?T+4:0,d.chart.marginRight+=T,f-=T,ja=f/(a.max-a.min)):j&&(T=(T=J*f/(J+f))?T+4:0,d.chart.marginLeft+=T,f-=T,ja=f/(a.max-a.min)):K>=J&&j?(T=(T=J*f/(J+f))?T+4:0,d.chart.marginLeft+=T,f-=T,ja=f/(a.max-
a.min)):G&&(T=(T=ha*f/(ha+f))?T+4:0,d.chart.marginRight+=T,f-=T,ja=f/(a.max-a.min));n=(R[ma].value-R[0].value)*ja;V=n/(ia-1);ea&&(V*=Y);va=!ea&&!la?O?Math.max(1,I,Math.ceil(t/V)):Math.max(1,I,Math.ceil(m/V)):Math.max(1,I);if(g.x)g.x.stepValue=va;V*=va}for(x=0;x<S;x+=1){i=R[x];if(x%va&&i.label){if(i.stepped=!0,i.label.style=a.steppedLabels.style,!W)continue}else i.stepped=!1,i.label.style=a.labels.style;if(i&&i.label&&A(i.label.text)!==void 0){C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);
if(O&&la)j=H.getOriSize(C.text),da.w=E(da.w,j.width+4),da.h=E(da.h,j.height);else if(!la)j=O||ea?H.getOriSize(C.text):H.getSmartText(C.text,V-4,l,na),da.w=E(da.w,j.width+4),da.h=E(da.h,j.height)}}}x=0;for(S=c.length;x<S;x+=1)if((i=c[x])&&i.label&&A(i.label.text)!==void 0){C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);j=H.getOriSize(C.text);C.verticalAlign===u?L=E(L,j.height):Z=E(Z,j.height)}a.scroll&&a.scroll.enabled&&!O&&!la&&(p=da.w/2,d.chart.marginLeft<p&&(T=p-d.chart.marginLeft,K>
T&&(f-=T,K-=T,d.chart.marginLeft+=T)),d.chart.marginRight<p&&(T=p-d.chart.marginRight,K>T&&(f-=T,K-=T,d.chart.marginRight+=T)))}else{var I={},ya,wa=ha=0,F=oa=null,ia={},ka=!0,ja=f/(a.max-a.min),xa=function(b,e,c){var f,q,y,l,n,h;h=b.plotObj;n=b.labelTextWidth;if(!n){C=h.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);n=H.getOriSize(C.text).width+4;b.oriWidth=n;n>ya&&(n=ya);b.labelTextWidth=n;b.leftEdge=h.value*ja-n/2;b.rightEdge=h.value*ja+n/2;if(c)n=Math.min(n,2*(i.value-a.min)*ja+d.chart.marginLeft),
b.labelTextWidth=n}if(typeof e!==Ka){c=e.plotObj;C=c.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);e.oriWidth?y=e.oriWidth:(y=H.getOriSize(C.text).width+4,e.oriWidth=y);y>ya&&(y=ya);e.labelTextWidth=y;e.leftEdge=c.value*ja-y/2;e.rightEdge=c.value*ja+y/2;f=h.value*ja;q=f+n/2;l=c.value*ja;y=l-y/2;if(y<q)if(f+m<l-m)q-=y,f=l-f,b.labelTextWidth=q>f?Math.min(n,f):Math.max(m,n-q/2),e.labelTextWidth=2*(f-b.labelTextWidth/2),b.leftEdge=h.value*ja-b.labelTextWidth/2,b.rightEdge=h.value*ja+b.labelTextWidth/
2,e.leftEdge=c.value*ja-e.labelTextWidth/2,e.rightEdge=c.value*ja+e.labelTextWidth/2;else return e.labelTextWidth=0,c.label.text=w,!1}else if(c)n=Math.min(n,2*(a.max-i.value)*ja+d.chart.marginRight),b.labelTextWidth=n,b.leftEdge=h.value*ja-n/2,b.rightEdge=h.value*ja+n/2;b.nextCat=e;return!0};ea?Y>S?Y=S:Y<2&&(Y=2):Y=1;for(S=h.length;n<S;n+=1)if((i=h[n])&&i.label&&typeof i.label.text!==Ka)i.isGrid?(J={plotObj:i},i.isCat&&(ma=n%Y,I[ma]||(I[ma]=[]),oa?(F=J,I[ma].push(F)):(F=oa=J,I[ma].push(oa))),R.push(J)):
i.isTrend&&c.push({plotObj:i});ma=a.plotBands;n=0;for(S=ma.length;n<S;n+=1)(i=ma[n])&&i.isTrend&&i.label&&typeof i.label.text!==Ka&&c.push({plotObj:i});if(R.length)if(!la&&!O)if(g.distributedColumns){n=0;for(S=R.length;n<S;n+=1)if(x=R[n],G=n%Y,i=x.plotObj,i.label&&i.isCat){n-Y>=0?(j=R[n-Y],G=j.plotObj.value*ja+j.plotObj._weight*ja/2):(j=null,G=a.min*ja-p);n+Y<S?(r=R[n+Y],r=r.plotObj.value*ja-r.plotObj._weight*ja/2):(r=null,r=a.max*ja+T);C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);J=
i.value*ja;K=J-i._weight*ja/2;J+=i._weight*ja/2;Y>1?(j=K-G,G=J+r,G=J-K+Math.min(j,G)):G=J-K;C=i.label;C.style&&C.style!==B&&H.setStyle(C.style);G<m&&m<H.getOriSize(C.text).width?(i.label.text=w,x.labelTextWidth=0):(x.labelTextWidth=G,j=H.getSmartText(C.text,G-4,l,na),G=j.width+4,x.labelTextWidth=G,da.h=Math.max(da.h,j.height))}}else{S=R.length;ma=R.length-1;(n=(R[ma].plotObj.value-R[0].plotObj.value)*ja)?(ya=n*0.1,W=Math.max(n*0.2,n/S)):W=ya=f;for(x in I){n=0;for(Q=I[x].length;n<Q;){for(J=n+1;!xa(I[x][n],
I[x][J]);)J+=1;n=J}}oa&&(wa=(oa.plotObj.value-a.min)*ja+p-oa.labelTextWidth/2);i=R[0].plotObj;if(!oa||i!==oa.plotObj){C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);Q=H.getOriSize(C.text).width+4;J=(i.value-a.min)*ja+p;oa&&(n=wa-J,Q=n<Q&&n>m/2?n*2:0);R[0].labelTextWidth=Q;Q>0&&(r=J-Q/2);r<wa&&(wa=r)}if(F)Q=F.labelTextWidth,ha=(a.max-F.plotObj.value)*ja+T-Q/2;i=R[ma].plotObj;if(!F||i!==F.plotObj){C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);Q=H.getOriSize(C.text).width+4;J=
(a.max-i.value)*ja+T;F&&(n=J-ha,Q=n<Q&&n>m/2?n*2:0);R[ma].labelTextWidth=Q;Q>0&&(r=J-Q/2);r<ha&&(ha=r)}J=wa<0?-wa:0;ha=ha<0?-ha:0;n=J+ha;if(n>0)for(x in K>n?(T=(T=ha*f/(ha+f))?T+4:0,d.chart.marginRight+=T,f-=T,T=(T=J*f/(J+f))?T+4:0,d.chart.marginLeft+=T,f-=T,ja=f/(a.max-a.min)):J<ha?K>=ha&&G?(T=(T=ha*f/(ha+f))?T+4:0,d.chart.marginRight+=T,f-=T,ja=f/(a.max-a.min)):j&&(T=(T=J*f/(J+f))?T+4:0,d.chart.marginLeft+=T,f-=T,ja=f/(a.max-a.min)):K>=J&&j?(T=(T=J*f/(J+f))?T+4:0,d.chart.marginLeft+=T,f-=T,ja=f/
(a.max-a.min)):G&&(T=(T=ha*f/(ha+f))?T+4:0,d.chart.marginRight+=T,f-=T,ja=f/(a.max-a.min)),T=d.chart.marginRight,p=d.chart.marginLeft,n=(R[ma].plotObj.value-R[0].plotObj.value)*ja,ya=n*0.1,W=Math.max(n*0.2,n/S),I){n=0;for(Q=I[x].length;n<Q;){for(J=n+1;!xa(I[x][n],I[x][J],!0);)J+=1;n=J}x+=1}n=0;for(S=R.length;n<S;n+=1)if(x=R[n],G=n%Y,i=x.plotObj,i.label)if(i.isCat)x.labelTextWidth&&(ia[G]=x);else{r=(j=ia[G])?j.nextCat:I[G]?I[G][0]:null;j=null;if(n>=Y){G=n-Y;for(j=R[G];!j.labelTextWidth;)if(G>=Y)G-=
Y,j=R[G];else{j=null;break}}G=j?j.rightEdge:a.min*ja-p;r=r?r.leftEdge:a.max*ja+T;C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);Q=H.getOriSize(C.text).width+4;K=i.value*ja-Q/2;if(g.isBar&&n==S-1&&j){if(G>K)j.plotObj.label.text=w,j.labelTextWidth=0,G=j.leftEdge}else if(G>K||r<K+Q){i.label.text=w;x.labelTextWidth=0;continue}G=Math.max(G,K);J=i.value*ja;G=2*Math.min(J-G,r-J);G.toFixed&&(G=G.toFixed(2));C=i.label;C.style&&C.style!==B&&H.setStyle(C.style);G<m&&m<H.getOriSize(C.text).width?(i.label.text=
w,x.labelTextWidth=0):(x.labelTextWidth=G,j=H.getSmartText(C.text,G-4,l,na),G=j.width+4,x.labelTextWidth=G,x.leftEdge=J-G/2,x.rightEdge=J+G/2,da.h=Math.max(da.h,j.height))}j=T=G=p=null;n=0;for(S=R.length;n<S;n+=1)if(x=R[n],i=x.plotObj,G=n%Y,i.isCat&&x.labelTextWidth){j=T=null;J=i.value*ja;if(n>=Y){G=n-Y;for(j=R[G];!j.labelTextWidth;)if(G>Y)G-=Y,j=R[G];else{j=null;break}}j=j?J-j.rightEdge:J-a.min*ja+d.chart.marginLeft;if(n+Y<S){p=n+Y;for(T=R[p];!T.labelTextWidth;)if(p+Y<S-1)p+=Y,T=R[p];else{T=null;
break}}G=T?T.leftEdge-J:a.max*ja+d.chart.marginRight-J;G=Math.min(j,G)*2;G>W&&(G=W);if(G>x.oriWidth)G=x.oriWidth;x.labelTextWidth=G;C=i.label;C.style&&C.style!==B&&H.setStyle(C.style);j=H.getSmartText(C.text,G-4,l,na);x.labelTextWidth=j.width+4;da.h=Math.max(da.h,j.height);x.rightEdge=J+x.labelTextWidth/2}}else if(O){n=0;for(S=R.length;n<S;n+=1)if((i=R[n].plotObj)&&i.label&&i.label.text){C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);x=1;if(n+x<S)for(T=R[x+n].plotObj;T&&(T.value-i.value)*
ja<m;)if(i.isCat){if(T.label){T.label.text=w;x+=1;if(x+n>=S-1)break;T=h[x+n].plotObj}}else if(T.isCat){i.label.text=w;i=T;n+=x-1;C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);break}da.w=Math.max(da.w,H.getOriSize(C.text).width+4)}}x=0;for(S=c.length;x<S;x+=1)if((i=c[x].plotObj)&&i.label&&A(i.label.text)!==void 0){C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);j=H.getOriSize(C.text);C.verticalAlign===u?L=E(L,j.height):Z=E(Z,j.height)}}if(la){if(K=t,O)K=da.w}else K=O?da.w:ea?
Y*t:da.h;K>0&&(fa+=ra+K);v>0&&(fa+=v+Ra);da=ra-4;fa=Z+fa+2;r=0;fa>l&&(n=fa-l,Ra>n?(Ra-=n,n=0):(n-=Ra,Ra=0,da>n?(da-=n,differnece=0):(n-=da,da=0),ra=da+4),Z>n?(Z-=n,n=0):(Z>0&&(n-=Z,Z=0),n>0&&(L>n?(L-=n,n=0):(L>0&&(n-=L,L=0),n>0&&((r=v-pa)>n?(v-=n,n=0):(n-=r,v=pa,n>0&&((r=K-t)>n?(K-=n,n=0):(n-=r,K=t,n>0&&(n-=v+Ra,v=0,n>0&&(n-=K,K=0,n>0&&(ra-=n)))))))))));ra+=Aa;var T=g.is3d?-d.chart.xDepth:0,l=K+ra,sa,fa=T;p=t*0.5;pa=t+ra;S=R.length;da=0;if(ka)if(O){V=M;sa=P?ra+8:ra+4;S=R.length;for(x=0;x<S;x+=1)if((i=
R[x].plotObj)&&i.label&&A(i.label.text)!==void 0){C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);n=1;j=H.getSmartText(C.text,K-4,m,na);C.text=j.text;j.tooltext&&(C.originalText=j.tooltext);fa=T+p/2;C.y=sa;C.x=fa;C.rotation=O;C.textAlign=V;da+=1}}else{ka=K;V=k;sa=pa;for(x=0;x<S;x+=va)if((i=R[x].plotObj)&&i.label&&A(i.label.text)!==void 0){C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);if(!la)j=H.getSmartText(C.text,R[x].labelTextWidth-4,ka,na),C.text=j.text,j.tooltext&&(C.originalText=
j.tooltext),ea&&(sa=pa+da%Y*t);C.y=sa;C.x=fa;C.rotation=O;C.textAlign=V;da+=1}}else{O?(ka=V,n=K-4,V=M,sa=P?ra+8:ra+4):ea?(ka=t,n=V-4,V=k):(ka=K,n=V-4,V=k,sa=pa);for(x=0;x<S;x+=va)if((i=R[x])&&i.label&&A(i.label.text)!==void 0){C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);if(!la)j=H.getSmartText(C.text,n,ka,na),C.text=j.text,j.tooltext&&(C.originalText=j.tooltext),ea&&(sa=pa+da%Y*t),O&&(fa=T+p/2);C.y=sa;C.x=fa;C.rotation=O;C.textAlign=V;da+=1}b._labelY=pa;b._labelX=T;b._yShipment=sa;b._isStagger=
ea;b._rotation=O;b._textAlign=V;b._adjustedPx=p/2;b._staggerLines=Y;b._labelHeight=t}S=c.length;for(x=O=b=0;x<S;x+=1)if((i=c[x].plotObj?c[x].plotObj:c[x])&&i.label&&A(i.label.text)!==void 0){C=i.label;if(C.style&&C.style!==B)B=C.style,H.setStyle(B);C.verticalAlign===u?(j=H.getSmartText(C.text,f,L,!0),O=Math.max(O,j.height),C.text=j.text,j.tooltext&&(C.originalText=j.tooltext),C.y=l+H.getOriSize(C.text).height,C.x=fa):(j=H.getSmartText(C.text,f,Z,!0),b=Math.max(b,j.height),C.text=j.text,j.tooltext&&
(C.originalText=j.tooltext),C.y=-(Z-H.getOriSize("W").height+ra+2))}if(v>0)H.setStyle(a.title.style),o=H.getSmartText(a.title.text,f,v),a.title.text=o.text,o.tooltext&&(a.title.originalText=o.tooltext),a.title.margin=l+O+Ra;fa=O;if(K>0)g.horizontalAxisHeight=ra+K-Aa,fa+=g.horizontalAxisHeight;v>0&&(fa+=z=v+Ra);d.chart.marginBottom+=fa;b>0&&(d.chart.marginTop+=b,fa+=b);if(a.opposite){a.title.margin-=K-(o&&o.height||0)+ra;fa-=z;d.chart.marginTop+=fa;d.chart.marginBottom-=fa;d.xAxis.opposite=1;S=h.length;
for(n=0;n<S;n+=1)if((i=h[n])&&i.isGrid&&(C=i.label)&&C.text!==void 0)C.textAlign=ba,C.y-=sa+ra+4}return fa},da=g.configureLegendOptions=function(a,c,f,l,q){var l=a.legend,n=a.chart,h=n.paletteIndex,g=n.is3D?va.chart3D:va.chart2D,i=n.useRoundEdges,j=e(c.legendiconscale,1),x=(parseInt(l.itemStyle.fontSize,10)||10)+1,C=a.chart.defaultSeriesType,k=3;if(j<=0||j>5)j=1;l.padding=4;x<=0&&(x=1);q-=8;x*=j;k*=j;x=Math.min(x,q);x<=0&&(k=x=0);l.symbolWidth=x;l.symbolPadding=k;l.textPadding=4;l.legendHeight=q=
x+2*k;l.rowHeight=Math.max(parseInt(l.itemStyle.lineHeight,10)||12,q);f?(l.align=M,l.verticalAlign="middle",l.layout="vertical"):l.x=(n.marginLeft-n.spacingLeft-n.marginRight+n.spacingRight)/2;f=b(c.legendbordercolor,r[g.legendBorderColor][h]);q=e(c.legendborderalpha,100);n=e(c.legendbgalpha,100);l.backgroundColor=d(b(c.legendbgcolor,r[g.legendBgColor][h]),n);l.borderColor=d(f,q);l.borderWidth=e(c.legendborderthickness,!i||c.legendbordercolor?1:0);l.shadow=Boolean(e(c.legendshadow,1));if(l.shadow)l.shadow=
{enabled:l.shadow,opacity:E(q,n)/100};l.reversed=Boolean(e(c.reverselegend,0));if(/^pie|pie3d$/.test(C))l.reversed=!l.reversed;l.style={padding:4};Boolean(e(c.interactivelegend,1))?l.symbolStyle={_cursor:"hand",cursor:"pointer"}:(a.legend.interactiveLegend=!1,l.itemStyle.cursor="default",l.itemHoverStyle={cursor:"inherit"});l.borderRadius=e(c.legendborderradius,i?3:0);l.legendAllowDrag=Boolean(e(c.legendallowdrag,0));l.title.text=Z(z(c.legendcaption,w));l.legendScrollBgColor=v(b(c.legendscrollbgcolor,
r.altHGridColor[a.chart.paletteIndex]));l.legendScrollBarColor=b(c.legendscrollbarcolor,f);l.legendScrollBtnColor=b(c.legendscrollbtncolor,f);l.title.style=ia({fontWeight:"bold"},l.itemStyle)},ya=g.placeLegendBlockRight=function(a,b,c,d,f){da(a,b.chart,!0,f,c);var l=0,n=a.series,h,g=a[s],i=g.smartLabel,j=a.legend,x,C=j.textPadding,k=j.title.padding,o=j.symbolWidth+2*j.symbolPadding,B=d*2,r=0,b=e(b.chart.legendpadding,7)+j.borderWidth/2+e(b.chart.canvasborderthickness,1),p=2*j.padding,m={width:p,height:p},
Q=!1,O=[];c-=p;f&&(n=n&&n[0]&&n[0].data);if(typeof n===Ka||typeof n.length===Ka)return 0;else{f=n.length;for(l=0;l<f;l+=1)if((h=n[l])&&h.showInLegend!==!1)h.__i=l,O.push(h);O.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=O.length}x=c-o-2-C;x<0&&(x=0);i.setStyle(j.itemStyle);j.reversed&&O.reverse();for(l=0;l<f;l+=1)if(h=O[l],Q=!0,h._legendX=0,h._legendY=m.height,x===0)m.height+=h._legendH=o,h.name=w;else{n=i.getSmartText(h.name,x,B);h.name=n.text;n.tooltext&&(h.originalText=
n.tooltext);if(n.height<o)h._legendTestY=(o-n.height)/2;m.height+=h._legendH=Math.max(n.height,o);r=Math.max(n.width,r)}if(Q){j.itemWidth=r+o+2+C;j.width=j.itemWidth+p;if(j.title.text!==w){i.setStyle(j.title.style);n=i.getSmartText(j.title.text,c,B);j.title.text=n.text;n.tooltext&&(j.title.originalText=n.tooltext);l=n.width+p;if(j.width<l)j.initialItemX=(l-j.width)/2,j.width=l;j.initialItemY=n.height+k;m.height+=j.initialItemY}j.height=j.totalHeight=m.height;if(j.height>d)j.height=d,j.scroll.enabled=
!0,j.scroll.flatScrollBars=g.flatScrollBars,j.scroll.scrollBar3DLighting=g.scrollBar3DLighting,j.width+=(j.scroll.scrollBarWidth=10)+(j.scroll.scrollBarPadding=2);b=Math.min(j.width+b,c);a.chart.marginRight+=b;return b}else return j.enabled=!1,0},m=g.placeLegendBlockBottom=function(a,b,c,d,f){da(a,b.chart,!1,f,c);var l=0,n=a.series,h,j=a[s],g=j.smartLabel,i=a.legend,x,C=i.textPadding;h=i.title.padding;var k,o=i.symbolPadding;x=i.legendHeight;var B=b.chart;k=0;var r=d*2,p=i.rowHeight,m=[],Q=e(B.minimisewrappinginlegend,
0),B=e(parseInt(B.legendnumcolumns,10),0),O=0,u=0,t=0,v=l=0,va=2*i.padding,b=e(b.chart.legendpadding,7)+i.borderWidth/2+1,pa={width:va,height:va},na=!1,A,z=[];B<0&&(B=0);c-=va;g.setStyle(i.itemStyle);l=g.getOriSize(Ma).height;b=Math.min(b,d-l-8);d-=b;f&&(n=n&&n[0]&&n[0].data);if(typeof n===Ka||typeof n.length===Ka)return 0;else{f=n.length;for(l=0;l<f;l+=1)if((A=n[l])&&A.showInLegend!==!1)A.__i=l,z.push(A);z.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=z.length}g.setStyle(i.itemStyle);
for(l=0;l<f;l+=1)na=!0,n=g.getOriSize(z[l].name),O=Math.max(O,n.width),u+=n.width,t+=1;l=u/t;if(na){l+=x+2+C;O+=x+2+C;B>0&&t<B&&(B=t);B>0&&(v=c/B)>l?v>O&&(v=O):c>O&&(Q||l*1.5>O)?(B=Math.floor(c/O),t<B&&(B=t),v=O):c>=2*l?(B=Math.floor(c/l),t<B&&(B=t),v=Math.floor(c/B),v>O&&(v=O)):(B=1,v=c);i.itemWidth=v;x=v-x-2-C;x<0&&(o=x=C=0);i.symbolPadding=o;i.textPadding=C;i.width=v*B+va;if(i.title.text!==w){g.setStyle(i.title.style);n=g.getSmartText(i.title.text,c,r);i.title.text=n.text;n.tooltext&&(i.title.originalText=
n.tooltext);k=n.width+va;if(i.width<k)i.initialItemX=(k-i.width)/2,i.width=k;i.initialItemY=k=n.height+h}g.setStyle(i.itemStyle);C=0;i.reversed&&z.reverse();for(l=0;l<f;l+=1){h=z[l];if(x===0)m[C]=!0,h.name=w,c=1;else{n=g.getSmartText(h.name,x,r);h.name=n.text;for(n.tooltext&&(h.originalText=n.tooltext);m[C]===!0;)C+=1;o=n.height/p;Q=C;for(c=0;c<o;c+=1,Q+=B)m[Q]=!0;if(n.height<p)h._legendTestY=(p-n.height)/2}o=parseInt(C/B,10);n=C%B;h._legendX=n*v;h._legendY=o*p+va;h._legendH=c*p;C+=1}pa.height+=Math.ceil(m.length/
B)*p+k;i.height=i.totalHeight=pa.height;i.rowHeight=p;i.legendNumColumns=B;if(i.height>d)i.height=d,i.scroll.enabled=!0,i.scroll.flatScrollBars=j.flatScrollBars,i.scroll.scrollBar3DLighting=j.scrollBar3DLighting,i.width+=(i.scroll.scrollBarWidth=10)+(i.scroll.scrollBarPadding=2);b+=i.height;a.chart.marginBottom+=b;return b}else return i.enabled=!1,0},la=function(a,b){return a.value-b.value},ma=g.adjustVerticalAxisTitle=function(a,b,e){if(b&&b.text){var c=b.text,d=a[s].smartLabel,f=2*Math.min(a.chart.marginTop,
a.chart.marginBottom)+e,l=e+a.chart.marginTop+a.chart.marginBottom;b.style&&d.setStyle(b.style);c=d.getOriSize(c);if(b.centerYAxisName===void 0)b.centerYAxisName=!0;if(b.rotation=="0"){if(c.height>f)b.y=(l/2-(e/2+a.chart.marginTop))/2,b.centerYAxisName=!1}else if(c.width>f)b.y=l/2-(e/2+a.chart.marginTop),b.centerYAxisName=!1}},wa=g.adjustVerticalCanvasMargin=function(a,b,c,d){var f=b.chart,l=b=0,n=0,h=e(f.canvastopmargin,0),f=e(f.canvasbottommargin,0),i=h/(h+f),g=a.chart.marginTop,j=a.chart.marginBottom;
f>j&&(b+=f-j);h>g&&(b+=h-g);b>c?h>g&&f>j?(l=c*i,n=c*(1-i)):h>g?l=c:n=c:b>0&&(f>j&&(n=f-j),h>g&&(l=h-g));l&&(a.chart.marginTop+=l);n&&(a.chart.marginBottom+=n,d&&d.title&&(d.title.margin+=n));return l+n},Aa=g.adjustHorizontalCanvasMargin=function(a,b,c,d,f){var l=b.chart,b=e(l.canvasleftmargin,0),l=e(l.canvasrightmargin,0),n=b/(b+l),h=0,i=a.chart.marginLeft,g=a.chart.marginRight,j=0,x=0;b>i&&(h+=b-i);l>g&&(h+=l-g);h>c?b>i&&l>g?(j=c*n,x=c*(1-n)):l>g?x=c:j=c:h>0&&(b>i&&(j=b-i),l>g&&(x=l-g));j&&(a.chart.marginLeft+=
j,d&&d.title&&(d.title.margin+=j));x&&(a.chart.marginRight+=x,f&&f.title&&(f.title.margin+=x));return x+j};R("base",{useScaleRecursively:!0,tooltipConstraint:"chart",rendererId:"root",draw:function(a,b){var e=this,c=e.renderer,d=e.chartInstance.jsVars,f="reinit",l=new Date;e.drawingLatency=e.drawingLatency||0;if(!c)d._lastpaper&&(d._lastpaper=d._lastpaper.dispose()),f="init",c=e.renderer=new R("renderer."+e.rendererId);return c[f](e,a,function(){d._lastpaper=c;e.drawingLatency=new Date-l;b&&b.apply(this,
arguments)})},init:function(a,b,c){var d=this.chartInstance||c,f=d.jsVars,c=f._reflowData||(f._reflowData={}),l=f._reflowClean,n,h;this.dataObj=b=ia({},b);h=b.chart=b.chart||b.graph||b.map||{};delete b.graph;delete b.map;if(c&&!this.stateless)n=c.hcJSON,delete c.hcJSON,ia(this,c,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),c.hcJSON=n;this.containerElement=a;this.config={};this.smartLabel=new bb(d.id,document.getElementsByTagName("body")[0]||a,e(h.useellipseswhenoverflow,h.useellipsewhenoverflow,
1));this.linkClickFN=gb(b,d);this.numberFormatter=new fb(b.chart,this);if(!this.standaloneInit)return new g.createDialog(a,f.msgStore.ChartNotSupported);a=this.chart(a.offsetWidth||parseFloat(a.style.width),a.offsetHeight||parseFloat(a.style.height),d);c&&!this.stateless&&(c.hcJSON&&ia(a,c.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),l&&this.cleanedData&&(this.cleanedData(this,l),this.cleanedData(c,l)));return a},chart:function(a,l){var y;var n=this.name,i=this.dataObj,
q=i.chart,g,j,x,C,k,o,p=this.defaultSeriesType,m,Q,O,da,pa,na,z,N;g=B(i,a,l,this);N=g.chart;z=g.xAxis;m=g[s];this.postHCJSONCreation&&this.postHCJSONCreation.call(this,g);g.labels.smartLabel=o=m.smartLabel=this.smartLabel;m.width=a;m.height=l;Q=g.plotOptions;m.isDual=this.isDual;m.numberFormatter=this.numberFormatter;m.axisGridManager=new Oa(p,q);N.is3D=j=m.is3d=/3d$/.test(p);N.isBar=C=m.isBar=this.isBar;x=/^pie/.test(p);na=q.useroundedges==1;pa=j?va.chart3D:va.chart2D;N.events.click=g.plotOptions.series.point.events.click=
this.linkClickFN;N.defaultSeriesType=p;var aa=q.palette>0&&q.palette<6?q.palette:e(this.paletteIndex,1);aa-=1;N.paletteIndex=aa;N.usePerPointLabelColor=q.colorlabelsfromplot==ua;N.useRoundEdges=na&&!j&&!this.distributedColumns&&this.defaultSeriesType!=="pie";if(b(q.clickurl)!==void 0)N.link=q.clickurl,N.style.cursor="pointer",g.plotOptions.series.point.events.click=function(){N.events.click.call({link:q.clickurl})};O=b(q.basefont,"Verdana");var ea=f(q.basefontsize,10),la=b(q.basefontcolor,r[pa.baseFontColor][aa]),
H=b(q.outcnvbasefont,O);k=f(q.outcnvbasefontsize,ea);var ma=k+La,wa=b(q.outcnvbasefontcolor,la).replace(/^#?([a-f0-9]+)/ig,"#$1"),xa,ra,Aa=ea;ea+=La;la=la.replace(/^#?([a-f0-9]+)/ig,"#$1");m.trendStyle=m.outCanvasStyle={fontFamily:H,color:wa,fontSize:ma};xa=F(m.trendStyle);m.inCanvasStyle={fontFamily:O,fontSize:ea,color:la};ra=F(m.inCanvasStyle);m.divlineStyle={fontFamily:O,fontSize:ea,color:la,lineHeight:ra};z.labels.style={fontFamily:H,fontSize:ma,lineHeight:xa,color:wa};z.steppedLabels.style={fontFamily:H,
fontSize:ma,lineHeight:xa,color:wa,visibility:"hidden"};g.yAxis[0].labels.style={fontFamily:H,fontSize:ma,lineHeight:xa,color:wa};g.yAxis[1].labels.style={fontFamily:H,fontSize:ma,lineHeight:xa,color:wa};g.legend.itemStyle={fontFamily:H,fontSize:ma,lineHeight:xa,color:wa};g.legend.itemHiddenStyle={fontFamily:H,fontSize:ma,lineHeight:xa};g.plotOptions.series.dataLabels.style={fontFamily:O,fontSize:ea,lineHeight:ra,color:la};g.plotOptions.series.dataLabels.color=g.plotOptions.series.dataLabels.style.color;
g.tooltip.style={fontFamily:O,fontSize:ea,lineHeight:ra,color:la};g.title.style={fontFamily:H,color:wa,fontSize:k+3+La,fontWeight:e(q.captionfontbold)===0?"normal":"bold"};F(g.title.style);g.subtitle.style={fontFamily:H,color:wa,fontSize:k+e(this.subTitleFontSizeExtender,1)+La,fontWeight:A(this.subTitleFontWeight,"bold")};F(g.subtitle.style);z.title.style={fontFamily:H,color:wa,fontSize:ma,fontWeight:e(q.subcaptionfontbold)===0?"normal":"bold"};ea=F(z.title.style);g.yAxis[0].title.style={fontFamily:H,
color:wa,fontSize:ma,lineHeight:ea,fontWeight:"bold"};g.yAxis[1].title.style={fontFamily:H,color:wa,fontSize:ma,lineHeight:ea,fontWeight:"bold"};N.overlapColumns=e(q[C&&"overlapbars"||"overlapcolumns"],j?0:1);g.orphanStyles={defaultStyle:{style:ia({},m.inCanvasStyle)},connectorlabels:{style:ia({},g.plotOptions.series.dataLabels)},vyaxisname:{style:ia({},g.yAxis[0].title.style)}};g.plotOptions.series.dataLabels.tlLabelStyle={fontFamily:A(q.tlfont,O),color:v(A(q.tlfontcolor,la)),fontSize:f(q.tlfontsize,
Aa)+"px"};F(g.plotOptions.series.dataLabels.tlLabelStyle);g.plotOptions.series.dataLabels.trLabelStyle={fontFamily:A(q.trfont,O),color:v(A(q.trfontcolor,la)),fontSize:f(q.trfontsize,Aa)+"px"};F(g.plotOptions.series.dataLabels.trLabelStyle);g.plotOptions.series.dataLabels.blLabelStyle={fontFamily:A(q.blfont,O),color:v(A(q.blfontcolor,la)),fontSize:f(q.blfontsize,Aa)+"px"};F(g.plotOptions.series.dataLabels.blLabelStyle);g.plotOptions.series.dataLabels.brLabelStyle={fontFamily:A(q.brfont,O),color:v(A(q.brfontcolor,
la)),fontSize:f(q.brfontsize,Aa)+"px"};F(g.plotOptions.series.dataLabels.brLabelStyle);this.parseStyles(g);delete g.xAxis.labels.style.backgroundColor;delete g.xAxis.labels.style.borderColor;delete g.yAxis[0].labels.style.backgroundColor;delete g.yAxis[0].labels.style.borderColor;delete g.yAxis[1].labels.style.backgroundColor;delete g.yAxis[1].labels.style.borderColor;m.showTooltip=e(q.showtooltip,this.showtooltip,1);m.tooltipSepChar=b(q.tooltipsepchar,this.tooltipsepchar,eb);m.showValues=e(q.showvalues,
this.showValues,1);m.seriesNameInToolTip=e(q.seriesnameintooltip,1);m.showVLines=e(q.showvlines,1);m.showVLinesOnTop=e(q.showvlinesontop,0);m.showVLineLabels=e(q.showvlinelabels,this.showVLineLabels,1);m.showVLineLabelBorder=e(q.showvlinelabelborder,1);m.rotateVLineLabels=e(q.rotatevlinelabels,0);m.vLineColor=b(q.vlinecolor,"333333");m.vLineThickness=b(q.vlinethickness,1);m.vLineAlpha=e(q.vlinealpha,80);m.vLineLabelBgColor=b(q.vlinelabelbgcolor,"ffffff");m.vLineLabelBgAlpha=e(q.vlinelabelbgalpha,
j?50:100);m.trendlineColor=b(q.trendlinecolor,"333333");m.trendlineThickness=b(q.trendlinethickness,1);m.trendlineAlpha=e(q.trendlinealpha);m.showTrendlinesOnTop=b(q.showtrendlinesontop,0);m.trendlineValuesOnOpp=b(q.trendlinevaluesonopp,q.trendlinevaluesonright,0);m.trendlinesAreDashed=e(q.trendlinesaredashed,0);m.trendlinesDashLen=e(q.trendlinedashlen,5);m.trendlinesDashGap=e(q.trendlinedashgap,2);m.showTrendlines=e(q.showtrendlines,1);m.showTrendlineLabels=e(q.showtrendlinelabels,this.showTrendlineLabels,
1);m.flatScrollBars=e(q.flatscrollbars,0);m.scrollBar3DLighting=e(q.scrollbar3dlighting,1);g.plotOptions.series.connectNullData=e(q.connectnulldata,0);N.backgroundColor={FCcolor:{color:b(q.bgcolor,r[pa.bgColor][aa]),alpha:b(q.bgalpha,r[pa.bgAlpha][aa]),angle:b(q.bgangle,r[pa.bgAngle][aa]),ratio:b(q.bgratio,r[pa.bgRatio][aa])}};N.borderRadius=e(q.borderradius,0);N.rotateValues=e(q.rotatevalues,0);N.placeValuesInside=e(q.placevaluesinside,0);N.valuePosition=b(q.valueposition,"auto");N.valuePadding=
e(q.valuepadding,2);N.borderColor=d(b(q.bordercolor,j?"#666666":r.borderColor[aa]),b(q.borderalpha,j?"100":r.borderAlpha[aa]));O=e(q.showborder,j?0:1);N.borderWidth=O?e(q.borderthickness,1):0;N.plotBorderColor=d(b(q.canvasbordercolor,r.canvasBorderColor[aa]),b(q.canvasborderalpha,r.canvasBorderAlpha[aa]));if(q.showcanvasborder!=="0"&&(da=Boolean(b(q.canvasborderthickness,na?0:1)),q.showaxislines==="1"||q.showxaxisline==="1"||q.showyaxisline==="1"))q.showcanvasborder!=="1"&&(da=0);N.plotBorderWidth=
j||!da?0:e(q.canvasborderthickness,this.canvasborderthickness,N.useRoundEdges?1:2);N.bgSWF=b(q.bgimage,q.bgswf);N.bgSWFAlpha=e(q.bgimagealpha,q.bgswfalpha,100);na=b(q.bgimagedisplaymode,"none").toLowerCase();O=A(q.bgimagevalign,w).toLowerCase();la=A(q.bgimagehalign,w).toLowerCase();na=="tile"||na=="fill"||na=="fit"?(O!=t&&O!="middle"&&O!=u&&(O="middle"),la!=ba&&la!="middle"&&la!=M&&(la="middle")):(O!=t&&O!="middle"&&O!=u&&(O=t),la!=ba&&la!="middle"&&la!=M&&(la=ba));N.bgImageDisplayMode=na;N.bgImageVAlign=
O;N.bgImageHAlign=la;N.bgImageScale=e(q.bgimagescale,100);N.logoURL=A(q.logourl);N.logoPosition=b(q.logoposition,"tl").toLowerCase();N.logoAlpha=e(q.logoalpha,100);N.logoLink=A(q.logolink);N.logoScale=e(q.logoscale,100);N.logoLeftMargin=e(q.logoleftmargin,0);N.logoTopMargin=e(q.logotopmargin,0);na=N.toolbar={button:{}};O=na.button;O.scale=e(q.toolbarbuttonscale,1.15);O.width=e(q.toolbarbuttonwidth,15);O.height=e(q.toolbarbuttonheight,15);O.radius=e(q.toolbarbuttonradius,2);O.spacing=e(q.toolbarbuttonspacing,
5);O.fill=d(b(q.toolbarbuttoncolor,"ffffff"));O.labelFill=d(b(q.toolbarlabelcolor,"cccccc"));O.symbolFill=d(b(q.toolbarsymbolcolor,"ffffff"));O.hoverFill=d(b(q.toolbarbuttonhovercolor,"ffffff"));O.stroke=d(b(q.toolbarbuttonbordercolor,"bbbbbb"));O.symbolStroke=d(b(q.toolbarsymbolbordercolor,"9a9a9a"));O.strokeWidth=e(q.toolbarbuttonborderthickness,1);O.symbolStrokeWidth=e(q.toolbarsymbolborderthickness,1);la=O.symbolPadding=e(q.toolbarsymbolpadding,5);O.symbolHPadding=e(q.toolbarsymbolhpadding,la);
O.symbolVPadding=e(q.toolbarsymbolvpadding,la);la=na.position=b(q.toolbarposition,"tr").toLowerCase();switch(la){case "tr":case "tl":case "br":case "bl":break;default:la="tr"}O=na.hAlign=(w+q.toolbarhalign).toLowerCase()==="left"?"l":la.charAt(1);y=na.vAlign=(w+q.toolbarvalign).toLowerCase()==="bottom"?"b":la.charAt(0),la=y;na.hDirection=e(q.toolbarhdirection,O==="r"?-1:1);na.vDirection=e(q.toolbarvdirection,la==="b"?-1:1);na.vMargin=e(q.toolbarvmargin,6);na.hMargin=e(q.toolbarhmargin,10);na.x=e(q.toolbarx,
O==="l"?0:a);na.y=e(q.toolbary,la==="t"?0:l);wa=b(q.divlinecolor,r[pa.divLineColor][aa]);ma=b(q.divlinealpha,j?r.divLineAlpha3D[aa]:r.divLineAlpha[aa]);na=e(q.divlinethickness,1);O=Boolean(e(q.divlineisdashed,this.divLineIsDashed,0));la=e(q.divlinedashlen,4);H=e(q.divlinedashgap,2);g.yAxis[0].gridLineColor=d(wa,ma);g.yAxis[0].gridLineWidth=na;g.yAxis[0].gridLineDashStyle=O?I(la,H,na):void 0;g.yAxis[0].alternateGridColor=C?d(b(q.alternatevgridcolor,r.altVGridColor[aa]),e(q.showalternatevgridcolor,
1)===1?b(q.alternatevgridalpha,r.altVGridAlpha[aa]):ta):d(b(q.alternatehgridcolor,r.altHGridColor[aa]),q.showalternatehgridcolor==0?0:b(q.alternatehgridalpha,r.altHGridAlpha[aa]));Aa=e(q.vdivlinethickness,1);ea=Boolean(e(q.vdivlineisdashed,0));k=e(q.vdivlinedashlen,4);xa=e(q.vdivlinedashgap,2);z.gridLineColor=d(b(q.vdivlinecolor,r[pa.divLineColor][aa]),b(q.vdivlinealpha,r.divLineAlpha[aa]));z.gridLineWidth=Aa;z.gridLineDashStyle=ea?I(k,xa,Aa):void 0;z.alternateGridColor=d(b(q.alternatevgridcolor,
r.altVGridColor[aa]),q.showalternatehgridcolor==="1"?b(q.alternatevgridalpha,r.altVGridAlpha[aa]):0);Aa=b(q.canvasbgcolor,r[pa.canvasBgColor][aa]);ea=b(q.canvasbgalpha,r.canvasBgAlpha[aa]);b(q.showcanvasbg,ua)==ta&&(ea="0");g.plotOptions.series.shadow=e(q.showshadow,q.showcolumnshadow,this.defaultPlotShadow,r.showShadow[aa]);if(this.inversed)g.yAxis[0].reversed=!0,g.yAxis[1].reversed=!0;if(this.isStacked)this.distributedColumns?(m.showStackTotal=Boolean(e(q.showsum,1)),k=e(q.usepercentdistribution,
1),xa=e(q.showpercentvalues,0),ra=e(q.showpercentintooltip,k,0),m.showXAxisPercentValues=e(q.showxaxispercentvalues,1)):(m.showStackTotal=Boolean(e(this.showSum,q.showsum,0)),k=e(this.stack100percent,q.stack100percent,0),xa=e(q.showpercentvalues,k,0),ra=e(q.showpercentintooltip,xa)),m.showPercentValues=xa,m.showPercentInToolTip=ra,k?(m.isValueAbs=!0,Q[p].stacking="percent",m[0].stacking100Percent=!0):Q[p].stacking="normal";if(this.isDual){if(q.primaryaxisonleft==="0")g.yAxis[0].opposite=!0,g.yAxis[1].opposite=
!1;g.yAxis[0].showAlways=!0;g.yAxis[1].showAlways=!0}if(N.useRoundEdges){g.plotOptions.series.shadow=e(q.showshadow,q.showcolumnshadow,1);g.plotOptions.series.borderRadius=1;g.tooltip.style.borderRadius="2px";N.plotBorderRadius=3;if(!da)N.plotBorderWidth=0;N.plotShadow=g.plotOptions.series.shadow?{enabled:!0,opacity:ea/100}:0}if(e(q.use3dlighting,1)===1)g.legend.lighting3d=!0;g.plotOptions.series.userMaxColWidth=C?q.maxbarheight:e(q.maxcolwidth,this.maxColWidth);g.plotOptions.series.maxColWidth=Math.abs(e(g.plotOptions.series.userMaxColWidth,
50))||1;g.title.text=Z(q.caption);g.subtitle.text=Z(q.subcaption);if(e(q.showtooltip,this.showtooltip)==0)g.tooltip.enabled=!1;p=g.tooltip.style;p.backgroundColor=d(b(p.backgroundColor,q.tooltipbgcolor,r.toolTipBgColor[aa]),b(q.tooltipbgalpha,100));p.borderColor=d(b(p.borderColor,q.tooltipbordercolor,r.toolTipBorderColor[aa]),b(q.tooltipborderalpha,100));g.tooltip.shadow=e(q.showtooltipshadow,q.showshadow,1)?{enabled:!0,opacity:E(e(q.tooltipbgalpha,100),e(q.tooltipborderalpha,100))/100}:!1;g.tooltip.constrain=
e(q.constraintooltip,1);p.borderWidth=e(q.tooltipborderthickness,1)+"px";if(q.tooltipborderradius)p.borderRadius=e(q.tooltipborderradius,1)+"px";p.padding=e(q.tooltippadding,this.tooltippadding,3)+"px";if(q.tooltipcolor)p.color=v(q.tooltipcolor);m.userPlotSpacePercent=g.plotOptions.series.userPlotSpacePercent=q.plotspacepercent;p=e(q.plotspacepercent,20)%100;m.plotSpacePercent=g.plotOptions.series.groupPadding=p/200;j&&!x?(N.series2D3Dshift=n==="mscombi3d"?!0:Boolean(e(q.use3dlineshift,0)),N.canvasBaseColor3D=
b(q.canvasbasecolor,r.canvasBaseColor3D[aa]),N.canvasBaseDepth=e(q.canvasbasedepth,10),N.canvasBgDepth=e(q.canvasbgdepth,3),N.showCanvasBg=Boolean(e(q.showcanvasbg,1)),N.showCanvasBase=Boolean(e(q.showcanvasbase,1)),C?(N.xDepth=5,N.yDepth=5,N.showCanvasBg&&(m.marginTopExtraSpace+=N.canvasBgDepth),m.marginLeftExtraSpace+=N.yDepth+(N.showCanvasBase?N.canvasBaseDepth:0),m.marginBottomExtraSpace+=5):(N.xDepth=10,N.yDepth=10,N.showCanvasBg&&(m.marginRightExtraSpace+=N.canvasBgDepth),m.marginBottomExtraSpace+=
N.yDepth+(N.showCanvasBase?N.canvasBaseDepth:0)),Aa=Aa.split(fa)[0],ea=ea.split(fa)[0],N.use3DLighting=Boolean(e(q.use3dlighting,1)),N.plotBackgroundColor=N.use3DLighting?{FCcolor:{color:h(Aa,85)+fa+c(Aa,55),alpha:ea+fa+ea,ratio:ka,angle:cb(a-(N.marginLeft+N.marginRight),l-(N.marginTop+N.marginBottom),1)}}:d(Aa,ea),N.canvasBgColor=d(h(Aa,80),ea),x=b(q.zeroplanecolor,q.divlinecolor,r[pa.divLineColor][aa]),C=b(q.zeroplanealpha,q.divlinealpha,r.divLineAlpha[aa]),N.zeroPlaneColor=d(x,C),N.zeroPlaneBorderColor=
d(b(q.zeroplanebordercolor,x),e(q.zeroplaneshowborder,1)?C:0)):(N.is3D=!1,N.plotBackgroundColor={FCcolor:{color:Aa,alpha:ea,angle:b(q.canvasbgangle,r.canvasBgAngle[aa]),ratio:b(q.canvasbgratio,r.canvasBgRatio[aa])}});this.parseExportOptions(g);this.preSeriesAddition&&this.preSeriesAddition(g,i,a,l);this.series&&this.series(i,g,n,a,l);this.postSeriesAddition(g,i,a,l);this.spaceManager(g,i,a,l);this.postSpaceManager&&this.postSpaceManager(g,i,a,l);n=e(q.drawquadrant,0);if(m.isXYPlot&&n&&(k=z.min,xa=
z.max,Q=g.yAxis[0].min,da=g.yAxis[0].max,ra=e(q.quadrantxval,(k+xa)/2),Aa=e(q.quadrantyval,(Q+da)/2),Aa>=Q&&Aa<=da&&ra>=k&&ra<=xa)){var p=d(b(q.quadrantlinecolor,N.plotBorderColor),b(q.quadrantlinealpha,Fa)),ea=e(q.quadrantlinethickness,N.plotBorderWidth),G=e(q.quadrantlineisdashed,0),J=e(q.quadrantlinedashLen,4),L=e(q.quadrantlinedashgap,2);C=A(q.quadrantlabeltl,w);n=A(q.quadrantlabeltr,w);i=A(q.quadrantlabelbl,w);x=A(q.quadrantlabelbr,w);pa=e(q.quadrantlabelpadding,3);G=G?I(J,L,ea):void 0;z.plotLines.push({color:p,
value:ra,width:ea,dashStyle:G,zIndex:3});g.yAxis[0].plotLines.push({color:p,value:Aa,width:ea,dashStyle:G,zIndex:3});ea=a-N.marginRight-N.marginLeft;G=l-N.marginTop-N.marginBottom;p=m.inCanvasStyle;parseInt(p.fontSize,10);k=ea/(xa-k)*(ra-k);xa=ea-k;da=G/(da-Q)*(Aa-Q);Q=G-da;k-=pa;xa-=pa;Q-=pa;da-=pa;Aa=pa+La;ra=G-pa+La;G=pa+La;pa=ea-pa+La;o.setStyle(p);Q>0&&(C!==w&&k>0&&(C=o.getSmartText(C,k,Q),g.labels.items.push({html:C.text,zIndex:3,vAlign:t,style:{left:G,top:Aa,fontSize:p.fontSize,lineHeight:p.lineHeight,
fontFamily:p.fontFamily,color:p.color}})),n!==w&&xa>0&&(C=o.getSmartText(n,xa,Q),g.labels.items.push({html:C.text,textAlign:M,vAlign:t,zIndex:3,style:{left:pa,top:Aa,fontSize:p.fontSize,lineHeight:p.lineHeight,fontFamily:p.fontFamily,color:p.color}})));da>0&&(i!==w&&k>0&&(C=o.getSmartText(i,k,da),g.labels.items.push({html:C.text,vAlign:u,zIndex:3,style:{left:G,top:ra,fontSize:p.fontSize,lineHeight:p.lineHeight,fontFamily:p.fontFamily,color:p.color}})),x!==w&&xa>0&&(C=o.getSmartText(x,xa,da),g.labels.items.push({html:C.text,
textAlign:M,vAlign:u,zIndex:3,style:{left:pa,top:ra,fontSize:p.fontSize,lineHeight:p.lineHeight,fontFamily:p.fontFamily,color:p.color}})))}if(this.hasVDivLine&&(n=e(q.numvdivlines,0)+1,n>1)){m=m.x.catCount-1;o=z.max;n=m/n;i=!0;x=z.min;var K;z.scroll&&!isNaN(z.scroll.viewPortMax)&&(o=z.scroll.viewPortMax);wa=b(q.vdivlinecolor,wa);ma=e(q.vdivlinealpha,ma);Aa=e(q.vdivlinethickness,na);ea=e(q.vdivlineisdashed,O);k=e(q.vdivlinedashlen,la);xa=e(q.vdivlinedashgap,H);(na=e(q.showalternatevgridcolor,0))&&
(K=d(b(q.alternatevgridcolor,r.altVGridColor[aa]),b(q.alternatevgridalpha,r.altVGridAlpha[aa])));for(aa=n;aa<m;aa+=n,i=!i)i&&na&&z.plotBands.push({isNumVDIV:!0,color:K,from:x,to:aa,zIndex:1}),z.plotLines.push({isNumVDIV:!0,width:Aa,color:d(wa,ma),dashStyle:ea?I(k,xa,Aa):void 0,value:aa,zIndex:1}),x=aa;i&&na&&z.plotBands.push({isNumVDIV:!0,color:K,from:x,to:o,zIndex:1})}if(j&&N.xDepth>N.marginLeft)N.marginLeft=N.xDepth;window.console&&window.console.log&&window.FC_DEV_ENVIRONMENT&&console.log(g);return g},
parseExportOptions:function(a){var c,d=this.dataObj.chart,f=this.chartInstance.jsVars.transparent?"":this.chartInstance.options.containerBackgroundColor||"#ffffff",l=navigator.userAgent.match(/(iPad|iPhone|iPod)/g);a.exporting.enabled=e(d.exportenabled,0);a.exporting.bgcolor=f;a.exporting.exporttargetwindow=b(d.exporttargetwindow,l?"_blank":"_self");a.exporting.exportaction=d.exportaction&&d.exportaction.toString().toLowerCase()==="save"&&"save"||"download";c=H(a.exporting.exportaction);a.exporting.exportfilename=
b(d.exportfilename,"FusionCharts");a.exporting.exporthandler=b(d.html5exporthandler,d.exporthandler,Y);a.exporting.exportparameters=b(d.exportparameters,"");a.exporting.exportformat=b(d.exportformat,"PNG");a.exporting.exportatclient=e(d.exportatclient,0);a.exporting.exportformats=function(a){var b={JPG:c+" as JPEG image",PNG:c+" as PNG image",PDF:c+" as PDF document",SVG:c+" as SVG vector image"},e,d,f,l=0;if(a){a=a.split("|");for(l=0;l<a.length;l++)f=(d=a[l].split("="))&&d[0].toUpperCase()||"",d=
d&&d[1]||"",b[f]&&(e||(e={}))&&(e[f]=d||b[f])}return e||b}(d.exportformats);a.exporting.buttons.printButton.enabled=d.showprintmenuitem=="1";a.exporting.buttons.exportButton.enabled=d.exportenabled=="1"?d.exportshowmenuitem!="0":!1},defaultSeriesType:w,paletteIndex:1,creditLabel:!1,placeTitle:Ha,placeLegendBlockBottom:m,placeLegendBlockRight:ya,placeHorizontalAxis:ea,placeVerticalAxis:na,placeHorizontalCanvasMarginAdjustment:Aa,placeVerticalCanvasMarginAdjustment:wa,placeHorizontalXYSpaceManager:function(a,
c,d,f){var l=a[s],n,g,h,i=c.chart,j,x,C,k,o,B,m=a.chart,p=l.marginLeftExtraSpace,r=l.marginTopExtraSpace,Q=l.marginBottomExtraSpace,O=l.marginRightExtraSpace;h=d-(p+O+m.marginRight+m.marginLeft);var t=f-(Q+m.marginBottom+m.marginTop),da=h*0.3,d=t*0.3;n=h-da;f=t-d;j=b(i.legendposition,u).toLowerCase();a.legend.enabled&&j===M&&(n-=this.placeLegendBlockRight(a,c,n/2,t));k=e(i.xaxisnamepadding,5);o=e(i.labelpadding,2);B=i.rotatexaxisname!==ta;x=b(i.showplotborder,l.is3d?ta:ua)===ua;x=l.plotBorderThickness=
x?l.is3d?1:e(i.plotborderthickness,1):0;C=E(e(m.plotBorderWidth,1),0);g=E(C,x/2);o<g&&(o=g);if(!l.isDual&&m.marginRight<C&&i.chartrightmargin===void 0&&(g=C-m.marginRight,h>da+g))m.marginRight=C,h-=g,da=h*0.3,n=h-da;g=l.x;g.verticalAxisNamePadding=k;g.verticalAxisValuesPadding=o;g.rotateVerticalAxisName=B;g.verticalAxisNameWidth=e(i.xaxisnamewidth);n-=na(a.xAxis,g,a,c,t,n,!1,!1,h);n-=Aa(a,c,n,a.xAxis);h=n+da;a.legend.enabled&&j!==M&&(f-=this.placeLegendBlockBottom(a,c,h,f/2));f-=Ha(a,c,h,f/2);g=l[0];
g.horizontalAxisNamePadding=e(i.yaxisnamepadding,5);g.horizontalLabelPadding=e(i.yaxisvaluespadding,2);g.labelDisplay="auto";g.staggerLines=e(i.staggerlines,2);g.slantLabels=e(i.slantlabels,0);g.horizontalLabelPadding=g.horizontalLabelPadding<C?C:g.horizontalLabelPadding;this.xAxisMinMaxSetter(a,c,h);n=a.xAxis;o=n.plotLines;C=f/(n.max-n.min);o&&o.length&&(k=(o[0].value-n.min)*C,o=(n.max-o[o.length-1].value)*C,l.isBar&&(x>k&&(n.min-=(x-k)/(2*C)),x>o&&(n.max+=(x-o)/(2*C))));f-=this.placeHorizontalAxis(a.yAxis[0],
g,a,c,h,f,da);f-=wa(a,c,f,a.yAxis[0]);xa(d+f,a,i,a.xAxis,l.x.lYLblIdx,!0);ma(a,a.xAxis.title,f);if(a.legend.enabled&&j===M){a=a.legend;c=d+f;if(a.height>c)a.height=c,a.scroll.enabled=!0,c=(a.scroll.scrollBarWidth=10)+(a.scroll.scrollBarPadding=2),a.width+=c,m.marginRight+=c;a.y=20}m.marginLeft+=p;m.marginTop+=r;m.marginBottom+=Q;m.marginRight+=O},placeVerticalXYSpaceManager:function(a,c,d,f){var l=a[s],n,g,h=!0,i=0,j=c.chart,x=!1,C,k,o,m=a.chart,B=l.marginLeftExtraSpace,p=l.marginTopExtraSpace,r=
l.marginBottomExtraSpace,Q=l.marginRightExtraSpace;n=d-(B+Q+m.marginRight+m.marginLeft);var O=f-(r+m.marginBottom+m.marginTop),da=n*0.3,f=O*0.3,t=n-da,d=O-f,i=l.drawFullAreaBorder=e(j.drawfullareaborder,1),v=b(j.legendposition,u).toLowerCase();C=e(j.yaxisnamepadding,5);k=e(j.yaxisvaluespadding,j.labelypadding,2);g=b(j.showplotborder,l.is3d?ta:ua)===ua;g=l.plotBorderThickness=g?l.is3d?1:e(j.plotborderthickness,1):0;o=E(e(m.plotBorderWidth,1),0);g=E(o,g/2);this.defaultSeriesType==="area"&&!i&&(g=o);
k<o&&(k=o);if(!l.isDual&&m.marginRight<o&&j.chartrightmargin===void 0&&(i=o-a.chart.marginRight,n>da+i))m.marginRight=o,n-=i,da=n*0.3,t=n-da;a.legend.enabled&&v===M&&(t-=this.placeLegendBlockRight(a,c,t/2,O));i=j.rotateyaxisname!==ta;if(l.isDual)x=!0,n=l[1],n.verticalAxisNamePadding=C,n.verticalAxisValuesPadding=k,n.rotateVerticalAxisName=i,n.verticalAxisNameWidth=e(j.syaxisnamewidth),h=a.yAxis[1].opposite,t-=na(a.yAxis[1],n,a,c,O,t/2,h,x);n=l[0];n.verticalAxisNamePadding=C;n.verticalAxisValuesPadding=
k;n.rotateVerticalAxisName=i;n.verticalAxisNameWidth=e(x?j.pyaxisnamewidth:j.yaxisnamewidth);t-=na(a.yAxis[0],n,a,c,O,t,!h,x);t-=Aa(a,c,t,a.yAxis[0],a.yAxis[1]);h=t+da;a.legend.enabled&&v!==M&&(d-=this.placeLegendBlockBottom(a,c,h,d/2));d-=Ha(a,c,h,d/2);n=l.x;n.horizontalAxisNamePadding=e(j.xaxisnamepadding,5);n.horizontalLabelPadding=e(j.labelpadding,j.labelxpadding,2);n.labelDisplay=b(j.labeldisplay,"auto").toLowerCase();n.rotateLabels=e(j.rotatelabels,j.rotatexaxislabels,0);n.staggerLines=e(j.staggerlines,
2);n.slantLabels=e(j.slantlabels,j.slantlabel,0);if(n.horizontalLabelPadding<g)n.horizontalLabelPadding=g;this.xAxisMinMaxSetter(a,c,h);d-=this.placeHorizontalAxis(a.xAxis,n,a,c,h,d,da);d-=wa(a,c,d,a.xAxis);x&&(xa(f+d,a,j,a.yAxis[1],l[1].lYLblIdx),ma(a,a.yAxis[1].title,d));xa(f+d,a,j,a.yAxis[0],l[0].lYLblIdx);ma(a,a.yAxis[0].title,d);if(a.legend.enabled&&v===M&&(a=a.legend,c=f+d,a.height>c&&a.type!=="gradient"))a.height=c,a.scroll.enabled=!0,c=(a.scroll.scrollBarWidth=10)+(a.scroll.scrollBarPadding=
2),a.width+=c,m.marginRight+=c;m.marginLeft+=B;m.marginTop+=p;m.marginBottom+=r;m.marginRight+=Q},placeVerticalAxisTitle:ma,spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)},axisMinMaxSetter:function(b,c,d,f,l,n,g,h){d=c.stacking100Percent?Ja(99,1,100,0,l,n,g,h):Ja(e(c.max,d),e(c.min,f),d,f,l,n,g,h);b.min=Number(K(d.Min,10));b.max=Number(K(d.Max,10));b.tickInterval=Number(K(d.divGap,10));c.numdivlines=Math.round((b.max-b.min)/b.tickInterval)-1;if(d.Range/d.divGap<=
2)b.alternateGridColor=a;this.highValue=c.max;this.lowValue=c.min;delete c.max;delete c.min},configurePlotLines:function(c,f,l,n,q,g,h,i,j,x,C){var k;k=l.min;var o=l.max,m=l.tickInterval,B=x?"xAxis":n.stacking100Percent?"percentValue":"yAxis",p=k,Q=1,O=l.gridLineColor,t=l.gridLineWidth,da=l.gridLineDashStyle,u=k<0&&o>0?!0:!1,v=k===0,pa=o===0,va=e(n.showzeroplanevalue,c.showzeroplanevalue)===0,na=!0,z=1,ea=e(c.numdivlines,0)>0,A=f[s].axisGridManager,H=f.chart.paletteIndex,C=e(C,j?1:0);delete l._altGrid;
delete l._lastValue;if(x&&!n.catOccupied)n.catOccupied={};if(u&&(!x||!n.catOccupied[0]))if(x?(na=e(c.showvzeroplane,1),f=e(c.showvzeroplanevalue,g),ea=e(c.vzeroplanethickness,1),c=ea>0?d(b(c.vzeroplanecolor,O),b(c.vzeroplanealpha,c.vdivlinealpha,r.divLineAlpha[H])):a):(H=e(c.divlinealpha,r.divLineAlpha[H]),f=e(n.showzeroplanevalue,c.showzeroplanevalue,g),this.defaultZeroPlaneHighlighted===!1?(na=e(n.showzeroplane,c.showzeroplane,!(this.defaultZeroPlaneHidden&&!ea)),ea=t):(ea=t===1?2:t,z=5,H*=2),ea=
e(n.zeroplanethickness,c.zeroplanethickness,ea),c=ea>0?d(b(n.zeroplanecolor,c.zeroplanecolor,O),b(n.zeroplanealpha,c.zeroplanealpha,H)):a),na)na=f?i[B](0,C):w,(z=A.addAxisGridLine(l,0,na,ea,da,c,z,x))&&(z.isZeroPlane=!0);if(q===1&&(!x||!n.catOccupied[k]))na=v&&va?w:i[B](k,C),(z=A.addAxisGridLine(l,k,na,0.1,void 0,a,1,x))&&(z.isMinLabel=!0);t<=0&&(t=0.1,O=a);for(k=Number(K(p+m,10));k<o;k=Number(K(k+m,10)),Q+=1){u&&p<0&&k>0&&!j&&(A.addAxisAltGrid(l,0),Q+=1);if(k!==0&&(!x||!n.catOccupied[k]))na=g===
1&&Q%h===0?i[B](k,C):w,A.addAxisGridLine(l,k,na,t,da,O,2,x);p=k;j||A.addAxisAltGrid(l,k)}j||A.addAxisAltGrid(l,o);if(q===1&&Q%h===0&&(!x||!n.catOccupied[o]))na=pa&&va?w:i[B](o,C),(z=A.addAxisGridLine(l,o,na,0.1,da,a,2,x))&&(z.isMaxLabel=!0);if(this.realtimeEnabled)l.labels._enabled=l.labels.enabled,l._gridLineWidth=l.gridLineWidth,l._alternateGridColor=l.alternateGridColor;l.labels.enabled=!1;l.gridLineWidth=0;l.alternateGridColor=a;l.plotLines.sort(la)},xAxisMinMaxSetter:function(b,c,d){var f=b[s],
l=f.x,n=c.chart,g=l.min=e(l.min,0),h=l.max=e(l.max,l.catCount-1),i,j=0,x=0,C=b.chart.defaultSeriesType,k=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(C),o=/^(line|area|spline|areaspline)$/.test(C),C=/^(scatter|bubble|candlestick|dragnode)$/.test(C),m=b.xAxis,B=m.scroll,p=i=Math.min(e(n.canvaspadding,0),d/2-10);if(l.adjustMinMax){var h=g=!e(n.setadaptivexmin,1),r=e(this.numVDivLines,n.numvdivlines,4),Q=n.adjustvdiv!==ta,O=e(n.showxaxisvalues,n.showxaxisvalue,
1),t=e(n.showvlimits,O),O=e(n.showvdivlinevalue,n.showvdivlinevalues,O);this.axisMinMaxSetter(m,l,n.xaxismaxvalue,n.xaxisminvalue,g,h,r,Q);g=m.min;h=m.max;l.requiredAutoNumericLabels&&(r=e(parseInt(n.xaxisvaluesstep,10),1),this.configurePlotLines(n,b,m,l,t,O,r<1?1:r,f.numberFormatter,!1,!0));m.plotLines.sort(la)}m.labels.enabled=!1;m.gridLineWidth=0;m.alternateGridColor=a;if((k||f.isScroll)&&!f.hasNoColumn)x=j=0.5;f.is3d&&(p+=e(b.chart.xDepth,0));b=(d-(p+i))/(h-g+(j+x));m.min=g-(j+p/b);m.max=h+(x+
i/b);if(B&&B.enabled)j=B.vxLength,x=m.max-m.min,B.viewPortMin=m.min,B.viewPortMax=m.max,B.scrollRatio=j/x,B.flatScrollBars=f.flatScrollBars,B.scrollBar3DLighting=f.scrollBar3DLighting,m.max=m.min+j;o&&m.min===m.max&&(m.min-=0.5,m.max+=0.5);C&&c.vtrendlines&&J(c.vtrendlines,m,f,!1,!0,!0)},postSeriesAddition:function(a){var c=a[s],d=c.isBar,f=c.is3d,l=a.chart.rotateValues&&!d?270:0,n=c[0],g=n&&n.stacking100Percent,h=c.showPercentValues||c.showPercentInToolTip;if(this.isStacked&&(c.showStackTotal||g||
h)){var i=c.plotSpacePercent,j=a.chart.defaultSeriesType,x,C,m=1-i,m=1-2*i,i=c.numberFormatter,o,B,p,r,Q,O,da,u,v,pa,va,na=a.series,w,z,ea=ia({},a.plotOptions.series.dataLabels.style),A=parseFloat(ea.fontSize),la=!n.stacking100Percent;ea.color=a.plotOptions.series.dataLabels.color;C=n.stack;for(x in C){n=C[x].length;o=m/n;p=-(m-o)/2;if(g||h){pa=[];u=0;for(r=na.length;u<r;u+=1)Q=na[u],!Q.yAxis&&b(Q.type,j)===x&&pa.push(Q)}for(B=0;B<n;B+=1,p+=o){da=C[x][B];if(g||h){va=[];u=0;for(r=pa.length;u<r;u+=
1)Q=pa[u],e(Q.columnPosition,0)===B&&va.push(Q.data)}if(da&&da.length){O=0;for(Q=da.length;O<Q;O+=1)if(u=da[O])if(v=(u.n||0)+(u.p||0),c.showStackTotal&&(r=O,r+=p,u=v<0?u.n:u.p,a.xAxis.plotLines.push({value:r,width:0,isVline:la,isTrend:!la,zIndex:4,_isStackSum:1,_catPosition:O,_stackIndex:B,label:{align:k,textAlign:!f&&l===270?v<0?M:ba:d?v<0?M:ba:k,offsetScale:la?u:void 0,offsetScaleIndex:0,rotation:l,style:ea,verticalAlign:t,y:d?0:v<0?l===270?4:A:-4,x:0,text:i.yAxis(v)}})),g||h){u=0;for(r=va.length;u<
r;u+=1)if(w=va[u][O])if(z=v&&(w.y||0)/v*100,i.percentValue(z),w.y||w.y===0){if(g&&(w.y=z,w.previousY||w.previousY===0))w.previousY=w.previousY/v*100;if(w.showPercentValues)w.displayValue=i.percentValue(z);if(w.showPercentInToolTip)w.toolText=w.toolText+parseInt(z*100,10)/100+"%"}}}}}}},styleMapForFont:Q,styleApplicationDefinition_font:function(a,b,c){var e,d,f=!1,l,n,g=this.styleMapForFont;switch(b){case "caption":e=a.title;break;case "datalabels":e=a.xAxis.labels;break;case "datavalues":e=a.plotOptions.series.dataLabels;
f=!0;break;case "tldatavalues":e={style:a.plotOptions.series.dataLabels.tlLabelStyle};break;case "trdatavalues":e={style:a.plotOptions.series.dataLabels.trLabelStyle};break;case "bldatavalues":e={style:a.plotOptions.series.dataLabels.blLabelStyle};break;case "brdatavalues":e={style:a.plotOptions.series.dataLabels.brLabelStyle};break;case "subcaption":e=a.subtitle;break;case "tooltip":e=a.tooltip;break;case "trendvalues":e={style:a[s].trendStyle};break;case "xaxisname":e=a.xAxis.title;break;case "yaxisname":case "pyaxisname":case "axistitle":e=
[];b=0;for(l=a.yAxis.length;b<l;b+=1)e.push(a.yAxis[b].title);break;case "yaxisvalues":e=[];b=0;for(l=a.yAxis.length;b<l;b+=1)e.push(a.yAxis[b].labels);break;case "vlinelabels":e={style:a[s].divlineStyle};break;case "legend":e={style:a.legend.itemStyle};break;default:(e=a.orphanStyles[b])||(a.orphanStyles[b]=e={text:"",style:{}})}if(typeof e==="object")if(e instanceof Array){b=0;for(l=e.length;b<l;b+=1){n=e[b];for(d in c)if(a=d.toLowerCase(),typeof g[a]==="function")g[a](c[d],n,f);F(n.style)}}else{for(d in c)if(a=
d.toLowerCase(),typeof g[a]==="function")g[a](c[d],e,f);F(e.style)}},parseStyles:function(a){var b,c,e,d={},f,l=this.dataObj;if(l.styles&&l.styles.definition instanceof Array&&l.styles.application instanceof Array){for(b=0;b<l.styles.definition.length;b+=1)c=l.styles.definition[b],c.type&&c.name&&this["styleApplicationDefinition_"+c.type.toLowerCase()]&&(d[c.name.toLowerCase()]=c);for(b=0;b<l.styles.application.length;b+=1){c=l.styles.application[b].styles&&l.styles.application[b].styles.split(fa)||
[];for(f=0;f<c.length;f+=1)if(e=c[f].toLowerCase(),d[e]&&l.styles.application[b].toobject)this["styleApplicationDefinition_"+d[e].type.toLowerCase()](a,l.styles.application[b].toobject.toLowerCase(),d[e])}}},dispose:function(){var a;this.disposing=!0;this.renderer&&this.renderer.dispose();this.numberFormatter&&this.numberFormatter.dispose();this.smartLabel&&this.smartLabel.dispose();for(a in this)delete this[a];delete this.disposing;this.disposed=!0}});R("stub",{standaloneInit:!0},R.base);R("barbase",
{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},R.base);R("singleseries",{series:function(a,b,c){var e=a.data||a.dataset&&a.dataset[0]&&a.dataset[0].data;if(e&&e.length>0&&e instanceof Array)b.legend.enabled=!1,c=this.point(c,{data:[],colorByPoint:!0},e,a.chart,b),c instanceof Array?b.series=b.series.concat(c):b.series.push(c),this.configureAxis(b,a),a.trendlines&&J(a.trendlines,b.yAxis,b[s],!1,this.isBar)},defaultSeriesType:w,configureAxis:function(a,c){var f=
a[s],l=a.xAxis,n=c.chart,g=a.chart.is3D,h,i,j,x,C,k,m,o,B,r,Q,O,t=0,u,da,v=this.numberFormatter,pa=e(n.syncaxislimits,0),va;l.title.text=Z(n.xaxisname);va=e(parseInt(n.yaxisvaluesstep,10),parseInt(n.yaxisvaluestep,10),1);va=va<1?1:va;h=a.yAxis[0];i=f[0];if(f.isDual)if(j=v.getCleanValue(n.pyaxismaxvalue),x=v.getCleanValue(n.pyaxisminvalue),h.title.text=Z(n.pyaxisname),pa&&!i.stacking100Percent){O=f[1];Q=e(O.max);O=e(O.min);if(Q!==void 0&&O!==void 0)i.min=p(i.min,O),i.max=E(i.max,Q);Q=v.getCleanValue(n.syaxismaxvalue);
O=v.getCleanValue(n.syaxisminvalue);O!==null&&(x=x!==null?p(x,O):O);Q!==null&&(j=j!==null?E(j,Q):Q)}else pa=0;else j=v.getCleanValue(n.yaxismaxvalue),x=v.getCleanValue(n.yaxisminvalue),h.title.text=Z(n.yaxisname);m=e(this.isStacked?0:this.setAdaptiveYMin,n.setadaptiveymin,this.defSetAdaptiveYMin,0);k=C=!m;o=e(f.numdivlines,n.numdivlines,this.numdivlines,4);B=n.adjustdiv!==ta;r=e(this.showYAxisValues,n.showyaxisvalues,n.showyaxisvalue,1);Q=e(n.showlimits,r);O=e(n.showdivlinevalue,n.showdivlinevalues,
r);if(!g)t=e(n.showaxislines,n.drawAxisLines,0),h.showLine=e(n.showyaxisline,t),l.showLine=e(n.showxaxisline,t),u=d(b(n.axislinecolor,"#000000")),l.lineColor=d(b(n.xaxislinecolor,u)),h.lineColor=d(b(n.yaxislinecolor,u)),da=e(n.axislinethickness,1),l.lineThickness=e(n.xaxislinethickness,da),h.lineThickness=e(n.yaxislinethickness,da);this.axisMinMaxSetter(h,i,j,x,C,k,o,B);this.configurePlotLines(n,a,h,i,Q,O,va,f.numberFormatter,!1);if(h.reversed&&h.min>=0)a.plotOptions.series.threshold=h.max;if(f.isDual){h=
a.yAxis[1];i=f[1];Q=e(n.showsecondarylimits,Q);O=e(n.showdivlinesecondaryvalue,r);pa?(l=a.yAxis[0],h.min=l.min,h.max=l.max,h.tickInterval=l.tickInterval,delete i.max,delete i.min):(j=v.getCleanValue(n.syaxismaxvalue),x=v.getCleanValue(n.syaxisminvalue),m=e(n.setadaptivesymin,m),k=C=!m,this.axisMinMaxSetter(h,i,j,x,C,k,o,B));if(!g)h.showLine=e(n.showsyaxisline,t),h.lineColor=d(b(n.syaxislinethickness,u)),h.lineThickness=e(n.syaxislinethickness,da);this.configurePlotLines(n,a,h,i,Q,O,va,f.numberFormatter,
!0);h.title.text=Z(n.syaxisname)}},pointValueWatcher:function(a,c,d,f,l,n,g){if(c!==null){var a=a[s],h,d=e(d,0);a[d]||(a[d]={});d=a[d];if(f)this.distributedColumns&&(a.marimekkoTotal+=c),f=d.stack,l=e(l,0),n=e(n,0),g=b(g,Ka),f[g]||(f[g]=[]),g=f[g],g[n]||(g[n]=[]),n=g[n],n[l]||(n[l]={}),l=n[l],c>=0?l.p?(h=l.p,c=l.p+=c):l.p=c:l.n?(h=l.n,c=l.n+=c):l.n=c;d.max=d.max>c?d.max:c;d.min=d.min<c?d.min:c;return h}},getPointStub:function(a,c,d,f){var f=f[s],c=c===null?c:f.numberFormatter.dataLabels(c),l=A(Z(a.tooltext)),
n=A(Z(a.displayvalue)),d=f.showTooltip?l!==void 0?l:c===null?!1:d!==w?d+f.tooltipSepChar+c:c:w,f=e(a.showvalue,f.showValues)?n!==void 0?n:c:w,a=b(a.link);return{displayValue:f,toolText:d,link:a}}},R.base);R("multiseries",{series:function(a,b,c){var d,f,l=b[s],n;b.legend.enabled=Boolean(e(a.chart.showlegend,1));if(a.dataset&&a.dataset.length>0){this.categoryAdder(a,b);d=0;for(f=a.dataset.length;d<f;d+=1){n={visible:!!e(a.dataset[d].visible,1),data:[]};if(!this.isStacked)n.numColumns=f;n=this.point(c,
n,a.dataset[d],a.chart,b,l.oriCatTmp.length,d);n instanceof Array?b.series=b.series.concat(n):b.series.push(n)}this.configureAxis(b,a);a.trendlines&&!this.isLog&&J(a.trendlines,b.yAxis,l,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(a,b){var c,d=0,f=b[s],l=f.axisGridManager,n=a.chart,g=b.xAxis,h,f=f.x,i;if(a.categories&&a.categories[0]&&a.categories[0].category){if(a.categories[0].font)b.xAxis.labels.style.fontFamily=a.categories[0].font;if((c=e(a.categories[0].fontsize))!==void 0)c<
1&&(c=1),b.xAxis.labels.style.fontSize=c+La,F(b.xAxis.labels.style);if(a.categories[0].fontcolor)b.xAxis.labels.style.color=a.categories[0].fontcolor.split(fa)[0].replace(/^\#?/,"#");var j=b[s].oriCatTmp,x=a.categories[0].category;for(c=0;c<x.length;c+=1)x[c].vline?l.addVline(g,x[c],d,b):(i=e(x[c].showlabel,n.showlabels,1),h=Z(z(a.categories[0].category[c].label,a.categories[0].category[c].name)),l.addXaxisCat(g,d,d,i?h:w),j[d]=z(Z(a.categories[0].category[c].tooltext),h),d+=1)}f.catCount=d},getPointStub:function(a,
c,d,f,l,n,g){var h,f=f[s],i,j,c=c===null?c:this.numberFormatter.dataLabels(c,g),x,C=A(Z(a.tooltext)),g=f.tooltipSepChar;f.showTooltip?C!==void 0?l=C:c===null?l=!1:(f.seriesNameInToolTip&&(x=z(l&&l.seriesname)),l=x?x+g:w,l+=d?d+g:w,f.showPercentInToolTip?j=!0:l+=c):l=!1;e(a.showvalue,n)?A(a.displayvalue)!==void 0?h=Z(a.displayvalue):f.showPercentValues?i=!0:h=c:h=w;a=b(a.link);return{displayValue:h,toolText:l,link:a,showPercentValues:i,showPercentInToolTip:j}}},R.singleseries);var Ra=function(a,b){return a-
b};R("xybase",{hideRLine:function(){var a=this.chart.series[this.index+1];a&&a.hide&&a.hide()},showRLine:function(){var a=this.chart.series[this.index+1];a&&a.show&&a.show()},getRegressionLineSeries:function(a,b,c){var e,d,f,l;l=a.sumXY;var n=a.sumX,g=a.sumY;d=a.xValues;f=a.sumXsqure;e=a.yValues;a=a.sumYsqure;b?(d.sort(Ra),e=d[0],d=d[d.length-1],l=(c*l-n*g)/(c*f-Math.pow(n,2)),f=!isNaN(l)?l*(e-n/c)+g/c:g/c,c=!isNaN(l)?l*(d-n/c)+g/c:g/c,c=[{x:e,y:f},{x:d,y:c}]):(e.sort(Ra),f=e[0],e=e[e.length-1],l=
(c*l-n*g)/(c*a-Math.pow(g,2)),d=!isNaN(l)?l*(f-g/c)+n/c:n/c,c=!isNaN(l)?l*(e-g/c)+n/c:n/c,c=[{x:d,y:f},{x:c,y:e}]);return c},pointValueWatcher:function(a,b,c,e){var d=a[s];if(b!==null)a=d[0],a.max=a.max>b?a.max:b,a.min=a.min<b?a.min:b;if(c!==null)a=d.x,a.max=a.max>c?a.max:c,a.min=a.min<c?a.min:c;e&&(c=c||0,b=b||0,e.sumX+=c,e.sumY+=b,e.sumXY+=c*b,e.sumXsqure+=Math.pow(c,2),e.xValues.push(c),e.sumYsqure+=Math.pow(b,2),e.yValues.push(b))}},R.multiseries);R("scrollbase",{postSeriesAddition:function(){var a=
this.hcJSON,c=a.xAxis.scroll,d=a[s],f=d.width,l=d.x.catCount,n=this.dataObj.chart;d.isScroll=!0;a.chart.hasScroll=!0;if(this.isStacked)g=1;else{var g=0,h=0,i,j=a.series,C,k=a.chart.defaultSeriesType;for(i=j.length;h<i;h++)C=b(j[h].type,k),C==="column"&&(g+=1);g<1&&(g=1)}l*=g;f=e(n.numvisibleplot,Math.floor(f/this.avgScrollPointWidth));if(c&&f>=2&&f<l)c.enabled=!0,c.vxLength=f/g,c.startPercent=n.scrolltoend===ua?1:0,c.padding=e(n.scrollpadding,a.chart.plotBorderWidth/2),c.height=e(n.scrollheight,16),
c.buttonWidth=e(n.scrollbtnwidth,n.scrollheight,16),c.buttonPadding=e(n.scrollbtnpadding,0),c.color=v(b(n.scrollcolor,r.altHGridColor[a.chart.paletteIndex])),d.marginBottomExtraSpace+=c.padding+c.height;if(x||e(n.enabletouchscroll,0))a.chart.zoomType="x",a.chart.nativeZoom=!1,a.chart.selectionMarkerFill="rgba(255,255,255,0)",(a.callbacks||(a.callbacks=[])).push(function(a){o(a,"selectionstart selectiondrag",R.scrollbase.performTouchScroll,{})})},performTouchScroll:function(a){var b=this.xAxis[0].scroller,
c=b.config;a.isOutsidePlot!==!0&&n(b.elements.anchor.element,a.type==="selectionstart"?"dragstart":"drag",{pageX:-(c.trackLength/(c.width/c.scrollRatio)*(a.chartX||1)),pageY:-a.chartY})}},R.multiseries);R("logbase",{isLog:!0,isValueAbs:!0,configureAxis:function(c,f){var n=c[s],g=n.axisGridManager,h=this.numberFormatter,i=c.series,j=c.xAxis,x=c.yAxis[0],C=n[0],k=f.chart,m=!e(k.showlimits,k.showyaxisvalues,1),o=!e(k.showdivlinevalues,k.showyaxisvalues,1),B=e(k.base,k.logbase,10),p=e(k.yaxismaxvalue),
Q=e(k.yaxisminvalue),O=e(k.showminordivlinevalues)===1,t=b(k.minordivlinecolor,x.gridLineColor,r.divLineColor[c.chart.paletteIndex]),u=e(k.minordivlinealpha,k.divlinealpha,r.divLineAlpha[c.chart.paletteIndex]),da=[x,void 0,void 0,e(k.divlinethickness,2),x.gridLineDashStyle,x.gridLineColor,2],t=[x,void 0,void 0,e(k.minordivlinethickness,1),x.gridLineDashStyle,d(b(k.minordivlinecolor,t),e(k.minordivlinealpha,u/2)),2],u=O||u&&t[3],v;B<=0&&(B=10);p<=0&&(p=void 0);Q<=0&&(Q=void 0);p=this.getLogAxisLimits(C.max||
B,C.min||1,p,Q,B,u?k.numminordivlines:0);j.title.text=Z(k.xaxisname);ia(x,{title:{text:Z(k.yaxisname)},labels:{enabled:!1},gridLineWidth:0,alternateGridColor:a,reversed:k.invertyaxis==="1",max:l(p.Max,B),min:l(p.Min,B)});for(j=i.length;j--;)if(k=i[j]){k.threshold=x.min;for(v=(k=k.data)&&k.length||0;v--;)Q=k[v],Q.y=l(Q.y,B)}delete C.max;delete C.min;C.isLog=!0;if(x.reversed&&x.min>=0)c.plotOptions.series.threshold=x.max;f.trendlines&&J(f.trendlines,[{max:p.Max,min:p.Min,plotLines:x.plotLines,plotBands:x.plotBands}],
n);for(j=x.plotLines.length;j--;)Q=x.plotLines[j],Q.value&&(Q.value=l(Q.value,B)),Q.from&&(Q.from=l(Q.from,B)),Q.to&&(Q.to=l(Q.to,B));for(j=x.plotBands.length;j--;)Q=x.plotBands[j],Q.from&&(Q.from=l(Q.from,B)),Q.to&&(Q.to=l(Q.to,B));for(j=p.divArr.length;j--;){Q=p.divArr[j];if(Q.ismajor)da[1]=l(Q.value,B),da[2]=h.yAxis(Q.value),g.addAxisGridLine.apply(g,da);else if(u||Q.isextreme)t[1]=l(Q.value,B),t[2]=O||Q.isextreme?h.yAxis(Q.value):w,g.addAxisGridLine.apply(g,t);k=x.plotLines[x.plotLines.length-
1];if(Q.isextreme){if(k.width=0.1,m)k.label.text=w}else if(o&&k.label)k.label.text=w}},getLogAxisLimits:function(a,b,c,e,d,f){var l=function(a){return a==null||a==void 0||a==""||isNaN(a)?!1:!0},n=0,g=[],h,i,j,x,C,k;l(c)&&Number(c)>=a?a=Number(c):(c=d>1?V(G(a)/G(d)):L(G(a)/G(d)),a=S(d,c),i=c);i||(i=d>1?V(G(a)/G(d)):L(G(a)/G(d)));l(e)&&Number(e)<=b?b=Number(e):(c=d>1?L(G(b)/G(d)):V(G(b)/G(d)),b=S(d,c),h=c);h||(h=d>1?L(G(b)/G(d)):V(G(b)/G(d)));e=Number(String(G(d)/G(10)));f=Number(f)||(L(e)==e?8:4);
d>1?(j=i,x=h):d>0&&d<1&&(j=h,x=i);e=i;for(h=j;h>=x;--h)if(j=S(d,e),b<=j&&a>=j&&(g[n++]={value:j,ismajor:!0}),h!=x){i=d>1?-1:1;j=S(d,e)-S(d,e+i);c=j/(f+1);for(l=1;l<=f;++l)j=S(d,e+i)+c*l,b<=j&&a>=j&&(g[n++]={value:j,ismajor:!1});d>1?e--:e++}for(var m in g)for(var o in g[m])if(o=="value"){if(!C)C=g[m][o]==b&&(g[m].isextreme=!0);if(!k)k=g[m][o]==a&&(g[m].isextreme=!0)}C||(g[n++]={value:b,ismajor:!0,isextreme:!0});k||(g[n]={value:a,ismajor:!0,isextreme:!0});return{Max:a,Min:b,divArr:g}},pointValueWatcher:function(a,
b,c){a=a[s];c=e(c,0);if(b>0)a[c]||(a[c]={}),c=a[c],c.max=c.max>b?c.max:b,c.min=c.min<b?c.min:b}},R.mslinebase);m=R.singleseries;ya=R.multiseries;R("column2dbase",{point:function(a,c,d,f,l){var a=d.length,n=l[s],g=n.axisGridManager,h=l.xAxis,i=l.chart.paletteIndex,n=n.x,j=l.colors,x=l.colors.length,C=/3d$/.test(l.chart.defaultSeriesType),k=this.isBar,m=b(f.showplotborder,C?ta:ua)===ua?C?1:e(f.plotborderthickness,1):0,o=l.chart.useRoundEdges,B=e(f.plotborderalpha,f.plotfillalpha,100),p=b(f.plotbordercolor,
r.plotBorderColor[i]).split(fa)[0],i=fa+(e(f.useplotgradientcolor,1)?oa(f.plotgradientcolor,r.plotGradientColor[i]):w),Q=0,O=Boolean(e(f.use3dlighting,1)),t=l[s].numberFormatter,u,da=e(f.plotborderdashed,0),v=e(f.plotborderdashlen,5),pa=e(f.plotborderdashgap,4),va,na,ea,A,la,H,xa,ma,wa;for(ea=na=0;na<a;na+=1)xa=d[na],xa.vline?g.addVline(h,xa,Q,l):(va=t.getCleanValue(xa.value),wa=e(xa.showlabel,f.showlabels,1),A=Z(z(xa.label,xa.name)),g.addXaxisCat(h,Q,Q,wa?A:w),Q+=1,u=b(xa.color,j[ea%x])+i.replace(/,+?$/,
""),la=b(xa.alpha,f.plotfillalpha,Fa),H=b(xa.ratio,f.plotfillratio),ma=b(360-f.plotfillangle,k?180:90),va<0&&(ma=k?180-ma:360-ma),wa={opacity:la/100},la=W(u,la,H,ma,o,p,b(xa.alpha,B)+w,k,C),u=e(xa.dashed,da)?I(b(xa.dashlen,v),b(xa.dashgap,pa),m):void 0,c.data.push(ia(this.getPointStub(xa,va,A,l),{y:va,shadow:wa,color:la[0],borderColor:la[1],borderWidth:m,use3DLighting:O,dashStyle:u,tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(l,va),ea+=1);n.catCount=Q;return c},defaultSeriesType:"column"},
m);R("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(a,c,d,f,l){var n,g,h,i,j,x,C,k,m,o,B,p,Q,O,t,u,da,pa,va,na,ea,la,A,xa,H,a=l.chart,ma=d.length,wa=l.xAxis;n=l[s];var ra=n.axisGridManager,E=0,Aa=n.x,T=l.chart.paletteIndex,F=l[s].numberFormatter;t=v(b(f.linecolor,f.palettecolors,r.plotFillColor[T]));u=b(f.linealpha,Fa);p=e(f.linethickness,this.lineThickness,4);Q=Boolean(e(f.linedashed,0));k=e(f.linedashlen,5);m=e(f.linedashgap,4);c.color={FCcolor:{color:t,alpha:u}};
c.lineWidth=p;c.step=b(this.stepLine,c.step);c.drawVerticalJoins=Boolean(e(c.drawVerticalJoins,f.drawverticaljoins,1));c.useForwardSteps=Boolean(e(c.useForwardSteps,f.useforwardsteps,1));O=e(f.drawanchors,f.showanchors);for(j=g=0;g<ma;g+=1)i=d[g],i.vline?ra.addVline(wa,i,E,l):(n=F.getCleanValue(i.value),x=e(i.showlabel,f.showlabels,1),h=Z(z(i.label,i.name)),ra.addXaxisCat(wa,E,E,x?h:w),E+=1,o=v(b(i.color,t)),B=b(i.alpha,u),x=e(i.dashed,Q)?I(k,m,p):void 0,C={opacity:B/100},pa=e(i.anchorsides,f.anchorsides,
0),H=e(i.anchorstartangle,f.anchorstartangle,90),ea=e(i.anchorradius,f.anchorradius,this.anchorRadius,3),na=v(b(i.anchorbordercolor,f.anchorbordercolor,t)),va=e(i.anchorborderthickness,f.anchorborderthickness,this.anchorBorderThickness,1),la=v(b(i.anchorbgcolor,f.anchorbgcolor,r.anchorBgColor[T])),A=b(i.anchoralpha,f.anchoralpha,Fa),xa=b(i.anchorbgalpha,f.anchorbgalpha,A),da=O===void 0?B!=0:!!O,c.data.push(ia(this.getPointStub(i,n,h,l),{y:n,color:{FCcolor:{color:o,alpha:B}},shadow:C,dashStyle:x,valuePosition:b(i.valueposition,
a.valuePosition),marker:{enabled:!!da,fillColor:{FCcolor:{color:la,alpha:xa*A/100+w}},lineColor:{FCcolor:{color:na,alpha:A}},lineWidth:va,radius:ea,startAngle:H,symbol:sa(pa)},tooltipConstraint:this.tooltipConstraint})),this.pointValueWatcher(l,n),j+=1);Aa.catCount=E;return c},defaultZeroPlaneHighlighted:!1},m);R("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,point:function(a,c,d,f,l){var a=l.chart,n=d.length,g=l.xAxis,h=l[s],j=l.chart.paletteIndex,x=h.axisGridManager,h=h.x,C=l[s].numberFormatter,
k=0,m,o,B,p,Q,O,t,u,da,pa,va,na,ea,la,xa,H,ma,wa,ra,E,Aa,F,G;Q=b(f.plotfillcolor,f.areabgcolor,A(f.palettecolors)?l.colors[0]:r.plotFillColor[j]).split(fa)[0];F=fa+(e(f.useplotgradientcolor,1)?oa(f.plotgradientcolor,r.plotGradientColor[j]):w);O=b(f.plotfillalpha,f.areaalpha,this.isStacked?Fa:"90");t=e(f.plotfillangle,270);u=b(f.plotbordercolor,f.areabordercolor,A(f.palettecolors)?l.colors[0]:r.plotBorderColor[j]).split(fa)[0];da=f.showplotborder==ta?ta:b(f.plotborderalpha,f.plotfillalpha,f.areaalpha,
Fa);m=e(f.plotborderangle,270);o=Boolean(e(f.plotborderdashed,0));B=e(f.plotborderdashlen,5);ea=e(f.plotborderdashgap,4);ma=e(f.plotborderthickness,f.areaborderthickness,1);G=c.fillColor={FCcolor:{color:Q+F.replace(/,+?$/,""),alpha:O,ratio:ka,angle:t}};c.lineWidth=ma;c.dashStyle=o?I(B,ea,ma):void 0;c.lineColor={FCcolor:{color:u,alpha:da,ratio:Fa,angle:m}};c.step=b(this.stepLine,c.step);c.drawVerticalJoins=Boolean(e(c.drawVerticalJoins,f.drawverticaljoins,1));c.useForwardSteps=Boolean(e(c.useForwardSteps,
f.useforwardsteps,1));ma=Boolean(e(f.drawanchors,f.showanchors,1));for(ra=o=0;o<n;o+=1)ea=d[o],ea.vline?x.addVline(g,ea,k,l):(m=C.getCleanValue(ea.value),p=e(ea.showlabel,f.showlabels,1),B=Z(z(ea.label,ea.name)),x.addXaxisCat(g,k,k,p?B:w),k+=1,p=e(ea.anchorsides,f.anchorsides,0),na=e(ea.anchorstartangle,f.anchorstartangle,90),pa=e(ea.anchorradius,f.anchorradius,3),va=v(b(ea.anchorbordercolor,f.anchorbordercolor,u)),wa=e(ea.anchorborderthickness,f.anchorborderthickness,1),la=v(b(ea.anchorbgcolor,f.anchorbgcolor,
r.anchorBgColor[j])),xa=b(ea.anchoralpha,f.anchoralpha,this.anchorAlpha,ta),H=b(ea.anchorbgalpha,f.anchorbgalpha,xa),E=A(ea.color),Aa=e(ea.alpha),E=E!==void 0||Aa!==void 0?{FCcolor:{color:E?v(E)+F:Q,alpha:void 0===Aa?i(Aa)+w:O,ratio:ka,angle:t}}:G,Aa={opacity:Math.max(Aa,da)/100,inverted:!0},c.data.push(ia(this.getPointStub(ea,m,B,l),{y:m,shadow:Aa,color:E,valuePosition:b(ea.valueposition,a.valuePosition),marker:{enabled:ma,fillColor:{FCcolor:{color:la,alpha:H*xa/100+w}},lineColor:{FCcolor:{color:va,
alpha:xa}},lineWidth:wa,radius:pa,symbol:sa(p),startAngle:na},tooltipConstraint:this.tooltipConstraint,previousY:this.pointValueWatcher(l,m)})),ra+=1);h.catCount=k;return c}},m);var ra=g.getDataParser={column:function(a,c,d){var f=a[s],l=c.borderWidth;return function(n,g,h){var j=i(b(n.alpha,c.alpha)).toString(),x={opacity:j/100},C=c.isBar,k=c.fillAangle,j=W(b(n.color,c.color)+c.plotgradientcolor,j,b(n.ratio,c.ratio),h<0?C?180-k:360-k:k,c.isRoundEdges,c.plotBorderColor,Math.min(j,i(c.plotBorderAlpha)).toString(),
C,c.is3d),C=e(n.dashed,c.dashed)?I(b(n.dashlen,c.dashLen),b(n.dashgap,c.dashGap),l):void 0,n=d.getPointStub(n,h,f.oriCatTmp[g],a,c,c.showValues,c.yAxis);n.y=h;n.shadow=x;n.color=j[0];n.borderColor=j[1];n.borderWidth=l;n.use3DLighting=c.use3DLighting;n.dashStyle=C;n.tooltipConstraint=d.tooltipConstraint;return n}},line:function(a,c,d){var f=a[s];return function(l,n,g){var h=b(l.alpha,c.lineAlpha),i={opacity:h/100},j=b(l.anchoralpha,c.anchorAlpha),n=d.getPointStub(l,g,f.oriCatTmp[n],a,c,c.showValues,
c.yAxis);n.y=g;n.shadow=i;n.dashStyle=e(l.dashed,c.lineDashed)?I(c.lineDashLen,c.lineDashGap,c.lineThickness):void 0;n.color={FCcolor:{color:v(b(l.color,c.lineColor)),alpha:h}};n.valuePosition=b(l.valueposition,c.valuePosition);n.marker={enabled:c.drawAnchors===void 0?h!=0:!!c.drawAnchors,fillColor:{FCcolor:{color:v(b(l.anchorbgcolor,c.anchorBgColor)),alpha:(b(l.anchorbgalpha,c.anchorBgAlpha)*j/100).toString()}},lineColor:{FCcolor:{color:v(b(l.anchorbordercolor,c.anchorBorderColor)),alpha:j}},lineWidth:e(l.anchorborderthickness,
c.anchorBorderThickness),radius:e(l.anchorradius,c.anchorRadius),symbol:sa(e(l.anchorsides,c.anchorSides)),startAngle:b(l.anchorstartangle,c.anchorAngle)};return n}},area:function(a,c,d){var f=a[s];return function(l,n,g){var h=b(l.alpha,c.fillAlpha),i={opacity:Math.max(h,c.lineAlpha)/100,inverted:!0},j=b(l.anchoralpha,c.anchorAlpha),n=d.getPointStub(l,g,f.oriCatTmp[n],a,c,c.showValues,c.yAxis);n.y=g;n.shadow=i;n.color={FCcolor:{color:v(b(l.color,c.fillColor)),alpha:h}};n.valuePosition=b(l.valueposition,
c.valuePosition);n.marker={enabled:c.drawAnchors,fillColor:{FCcolor:{color:v(b(l.anchorbgcolor,c.anchorBgColor)),alpha:(b(l.anchorbgalpha,c.anchorBgAlpha)*j/100).toString()}},lineColor:{FCcolor:{color:v(b(l.anchorbordercolor,c.anchorBorderColor)),alpha:j}},lineWidth:e(l.anchorborderthickness,c.anchorBorderThickness),radius:e(l.anchorradius,c.anchorRadius),symbol:sa(e(l.anchorsides,c.anchorSides)),startAngle:b(l.anchorstartangle,c.anchorAngle)};n.events={click:c.getLink};return n}}};R("mscolumn2dbase",
{point:function(a,c,d,f,l,n,g,h,i){var q;var a=!1,j=d.data||[],x=l[s],C=b(c.type,this.defaultSeriesType),k=b(c.isStacked,l.plotOptions[C]&&l.plotOptions[C].stacking),m=b(this.isValueAbs,x.isValueAbs,!1),o=e(c.yAxis,0),B=l[s].numberFormatter,p=l.chart.paletteIndex,Q,O;O=l._FCconf.isBar;if(!k)c.columnPosition=e(i,h,g);c.name=A(d.seriesname);if(e(d.includeinlegend)===0||c.name===void 0)c.showInLegend=!1;c.color=b(d.color,l.colors[g%l.colors.length]).split(fa)[0].replace(/^#?/g,"#");i=/3d$/.test(l.chart.defaultSeriesType);
O=b(360-f.plotfillangle,O?180:90);Q<0&&(O=360-O);q=c._dataParser=ra.column(l,{seriesname:c.name,color:b(d.color,l.colors[g%l.colors.length]),alpha:b(d.alpha,f.plotfillalpha,Fa),plotgradientcolor:fa+(e(f.useplotgradientcolor,1)?oa(f.plotgradientcolor,r.plotGradientColor[p]):w),ratio:b(d.ratio,f.plotfillratio),fillAangle:O,isRoundEdges:l.chart.useRoundEdges,plotBorderColor:b(f.plotbordercolor,i?Wa:r.plotBorderColor[p]).split(fa)[0],plotBorderAlpha:f.showplotborder==ta||i&&f.showplotborder!=ua?ta:b(f.plotborderalpha,
Fa),isBar:this.isBar,is3d:i,dashed:e(d.dashed,f.plotborderdashed,0),dashLen:e(d.dashlen,f.plotborderdashlen,5),dashGap:e(d.dashgap,f.plotborderdashgap,4),borderWidth:b(f.plotborderthickness,ua),showValues:e(d.showvalues,x.showValues),yAxis:o,use3DLighting:e(f.use3dlighting,1),_sourceDataset:d},this),d=q;for(f=0;f<n;f+=1)(g=j[f])?(Q=B.getCleanValue(g.value,m),Q===null?c.data.push({y:null}):(a=!0,g=d(g,f,Q),c.data.push(g),g.previousY=this.pointValueWatcher(l,Q,o,k,f,h,C))):c.data.push({y:null});if(!a&&
!this.realtimeEnabled)c.showInLegend=!1;return c},defaultSeriesType:"column"},ya);R("mslinebase",{hasVDivLine:!0,point:function(a,c,d,f,l,n,g){var q;var a=!1,h,i;h=l.chart;var j=d.data||[];i=l[s];var x=b(c.type,this.defaultSeriesType),C=b(c.isStacked,l.plotOptions[x]&&l.plotOptions[x].stacking),k=b(this.isValueAbs,i.isValueAbs,!1),m=e(c.yAxis,0),o=this.numberFormatter,g=v(b(d.color,f.linecolor,l.colors[g%l.colors.length])),B=b(d.alpha,f.linealpha,Fa),p=e(f.showshadow,this.defaultPlotShadow,1),Q=e(d.drawanchors,
d.showanchors,f.drawanchors,f.showanchors),O=e(d.anchorsides,f.anchorsides,0),t=e(d.anchorstartangle,f.anchorstartangle,90),u=e(d.anchorradius,f.anchorradius,3),da=v(b(d.anchorbordercolor,f.anchorbordercolor,g)),pa=e(d.anchorborderthickness,f.anchorborderthickness,1),va=v(b(d.anchorbgcolor,f.anchorbgcolor,r.anchorBgColor[l.chart.paletteIndex])),na=b(d.anchoralpha,f.anchoralpha,Fa),ea=b(d.anchorbgalpha,f.anchorbgalpha,na);c.name=A(d.seriesname);if(e(d.includeinlegend)===0||c.name===void 0||B==0&&Q!==
1)c.showInLegend=!1;c.marker={fillColor:{FCcolor:{color:va,alpha:ea*na/100+w}},lineColor:{FCcolor:{color:da,alpha:na+w}},lineWidth:pa,radius:u,symbol:sa(O),startAngle:t};c.color={FCcolor:{color:g,alpha:B}};c.shadow=p?{opacity:p?B/100:0}:!1;c.step=b(this.stepLine,c.step);c.drawVerticalJoins=Boolean(e(c.drawVerticalJoins,f.drawverticaljoins,1));c.useForwardSteps=Boolean(e(c.useForwardSteps,f.useforwardsteps,1));c.lineWidth=e(d.linethickness,f.linethickness,2);q=c._dataParser=ra.line(l,{seriesname:c.name,
lineAlpha:B,anchorAlpha:na,showValues:e(d.showvalues,i.showValues),yAxis:m,lineDashed:Boolean(e(d.dashed,f.linedashed,0)),lineDashLen:e(d.linedashlen,f.linedashlen,5),lineDashGap:e(d.linedashgap,f.linedashgap,4),lineThickness:c.lineWidth,lineColor:g,valuePosition:b(d.valueposition,h.valuePosition),drawAnchors:Q,anchorBgColor:va,anchorBgAlpha:ea,anchorBorderColor:da,anchorBorderThickness:pa,anchorRadius:u,anchorSides:O,anchorAngle:t,_sourceDataset:d},this),h=q;for(f=0;f<n;f+=1)(i=j[f])?(d=o.getCleanValue(i.value,
k),d===null?c.data.push({y:null}):(a=!0,i=h(i,f,d),c.data.push(i),i.previousY=this.pointValueWatcher(l,d,m,C,f,0,x))):c.data.push({y:null});if(!a&&!this.realtimeEnabled)c.showInLegend=!1;return c},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},ya);R("msareabase",{hasVDivLine:!0,point:function(a,c,d,f,l,n,g){var q;var a=!1,h=l.chart,i=d.data||[],j=l[s],x=b(c.type,this.defaultSeriesType),C=b(c.isStacked,l.plotOptions[x]&&l.plotOptions[x].stacking),k=b(this.isValueAbs,j.isValueAbs,
!1),m=l.chart.paletteIndex,o=e(c.yAxis,0),B=l[s].numberFormatter,p=b(d.color,f.plotfillcolor,l.colors[g%l.colors.length]).split(fa)[0].replace(/^#?/g,"#").split(fa)[0],Q=b(d.alpha,f.plotfillalpha,f.areaalpha,this.areaAlpha,70),O=e(f.plotfillangle,270),g=b(d.plotbordercolor,f.plotbordercolor,f.areabordercolor,this.isRadar?l.colors[g%l.colors.length]:"666666").split(fa)[0],t=b(d.showplotborder,f.showplotborder)==ta?ta:b(d.plotborderalpha,f.plotborderalpha,d.alpha,f.plotfillalpha,f.areaalpha,"95"),u=
e(f.plotborderangle,270),da=e(d.anchorsides,f.anchorsides,0),pa=e(d.anchorstartangle,f.anchorstartangle,90),va=e(d.anchorradius,f.anchorradius,3),na=v(b(d.anchorbordercolor,f.anchorbordercolor,p)),ea=e(d.anchorborderthickness,f.anchorborderthickness,1),z=v(b(d.anchorbgcolor,f.anchorbgcolor,r.anchorBgColor[m])),la=e(d.anchoralpha,f.anchoralpha,this.anchorAlpha,0),A=e(d.anchorbgalpha,f.anchorbgalpha,la);this.isRadar||(p+=fa+(e(f.useplotgradientcolor,1)?oa(f.plotgradientcolor,r.plotGradientColor[m]):
w),p=p.replace(/,+?$/,""));c.step=b(this.stepLine,c.step);c.drawVerticalJoins=Boolean(e(c.drawVerticalJoins,f.drawverticaljoins,1));c.useForwardSteps=Boolean(e(c.useForwardSteps,f.useforwardsteps,1));c.name=b(d.seriesname);if(e(d.includeinlegend)===0||c.name===void 0)c.showInLegend=!1;c.fillColor={FCcolor:{color:p,alpha:Q,ratio:ka,angle:O}};c.color=p;c.shadow={opacity:e(f.showshadow,1)?t/100:0};c.lineColor={FCcolor:{color:g,alpha:t,ratio:Fa,angle:u}};c.lineWidth=b(d.plotborderthickness,f.plotborderthickness,
1);c.dashStyle=Boolean(e(d.dashed,f.plotborderdashed,0))?I(e(d.dashlen,f.plotborderdashlen,5),e(d.dashgap,f.plotborderdashgap,4),c.lineWidth):void 0;c.marker={fillColor:{FCcolor:{color:z,alpha:A*la/100+w}},lineColor:{FCcolor:{color:na,alpha:la+w}},lineWidth:ea,radius:va,symbol:sa(da),startAngle:pa};q=c._dataParser=ra.area(l,{seriesname:c.name,lineAlpha:t,anchorAlpha:la,showValues:e(d.showvalues,j.showValues),yAxis:o,fillColor:p,fillAlpha:Q,valuePosition:b(d.valueposition,h.valuePosition),drawAnchors:Boolean(e(f.drawanchors,
f.showanchors,1)),anchorBgColor:z,anchorBgAlpha:A,anchorBorderColor:na,anchorBorderThickness:ea,anchorRadius:va,anchorSides:da,anchorAngle:pa,getLink:this.linkClickFN,_sourceDataset:d},this),d=q;for(h=0;h<n;h+=1)(j=i[h])?(f=j?B.getCleanValue(j.value,k):null,f===null?c.data.push({y:null}):(a=!0,j=d(j,h,f),c.data.push(j),j.previousY=this.pointValueWatcher(l,f,o,C,h,0,x))):c.data.push({y:null});if(!a&&!this.realtimeEnabled)c.showInLegend=!1;return c},defaultSeriesType:"area",defaultPlotShadow:0},ya);
R("scatterbase",{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",point:function(a,c,f,l,n,g,h){if(f.data){var j,x,C,k,m,o,B,p,Q,O,t,u,da,pa,va,na,ea,z=!1,la;C=e(f.drawline,l.drawlines,0);k=e(f.drawprogressioncurve,0);var a=f.data,g=a.length,xa=e(f.showvalues,n[s].showValues),H=this.numberFormatter,ma=e(f.showregressionline,l.showregressionline,0);c.zIndex=1;c.name=A(f.seriesname);if(e(f.includeinlegend)===0||c.name===void 0)c.showInLegend=!1;if(C||k)x=v(b(f.color,
n.colors[h%n.colors.length])),C=b(f.alpha,Fa),k=e(f.linethickness,l.linethickness,2),m=Boolean(e(f.linedashed,f.dashed,l.linedashed,0)),o=e(f.linedashlen,l.linedashlen,5),B=e(f.linedashgap,l.linedashgap,4),c.color=d(b(f.linecolor,l.linecolor,x),e(f.linealpha,l.linealpha,C)),c.lineWidth=k,c.dashStyle=m?I(o,B,k):void 0;C=Boolean(e(f.drawanchors,f.showanchors,l.drawanchors,l.showanchors,1));k=e(f.anchorsides,l.anchorsides,h+3);m=e(f.anchorradius,l.anchorradius,3);h=v(b(f.anchorbordercolor,f.color,l.anchorbordercolor,
x,n.colors[h%n.colors.length]));x=e(f.anchorborderthickness,l.anchorborderthickness,1);o=v(b(f.anchorbgcolor,l.anchorbgcolor,r.anchorBgColor[n.chart.paletteIndex]));B=b(f.anchoralpha,f.alpha,l.anchoralpha,Fa);Q=b(f.anchorbgalpha,f.alpha,l.anchorbgalpha,B);b(f.anchorstartangle,l.anchorstartangle,90);c.marker={fillColor:this.getPointColor(o,Fa),lineColor:{FCcolor:{color:h,alpha:B+w}},lineWidth:x,radius:m,symbol:sa(k)};if(ma){c.events={hide:this.hideRLine,show:this.showRLine};var wa={sumX:0,sumY:0,sumXY:0,
sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},E=e(f.showyonx,l.showyonx,1),ra=v(b(f.regressionlinecolor,l.regressionlinecolor,h)),Aa=e(f.regressionlinethickness,l.regressionlinethickness,x),l=i(e(f.regressionlinealpha,l.regressionlinealpha,B)),ra=d(ra,l)}for(j=0;j<g;j+=1)(p=a[j])?(l=H.getCleanValue(p.y),ea=H.getCleanValue(p.x),l===null?c.data.push({y:null,x:ea}):(z=!0,la=this.getPointStub(p,l,H.xAxis(ea),n,f,xa),O=e(p.anchorsides,k),t=e(p.anchorradius,m),u=v(b(p.anchorbordercolor,h)),da=e(p.anchorborderthickness,
x),pa=v(b(p.anchorbgcolor,o)),va=b(p.anchoralpha,p.alpha,B),na=b(p.anchorbgalpha,Q),c.data.push({y:l,x:ea,displayValue:la.displayValue,toolText:la.toolText,link:la.link,marker:{enabled:C,fillColor:{FCcolor:{color:pa,alpha:na*va/100+w}},lineColor:{FCcolor:{color:u,alpha:va}},lineWidth:da,radius:t,symbol:sa(O),startAngle:b(p.anchorstartangle,90)}}),this.pointValueWatcher(n,l,ea,ma&&wa))):c.data.push({y:null});ma&&(f=this.getRegressionLineSeries(wa,E,g),this.pointValueWatcher(n,f[0].y,f[0].x),this.pointValueWatcher(n,
f[1].y,f[1].x),n={type:"line",color:ra,showInLegend:!1,lineWidth:Aa,enableMouseTracking:!1,marker:{enabled:!1},data:f,zIndex:0},c=[c,n])}if(!z)c.showInLegend=!1;return c},categoryAdder:function(a,c){var f,l=0,n,g=c[s].x,h,i=c.xAxis,j,x;x=a.chart;var C=parseInt(x.labelstep,10),m=e(x.showlabels,1),o=b(x.xaxislabelmode,"categories").toLowerCase(),B=c[s].numberFormatter;c._FCconf.isXYPlot=!0;C=C>1?C:1;g.catOccupied={};if(o!=="auto"&&a.categories&&a.categories[0]&&a.categories[0].category){x=a.categories[0];
if(x.font)c.xAxis.labels.style.fontFamily=x.font;if((n=e(x.fontsize))!==void 0)n<1&&(n=1),c.xAxis.labels.style.fontSize=n+La,F(c.xAxis.labels.style);if(x.fontcolor)c.xAxis.labels.style.color=x.fontcolor.split(fa)[0].replace(/^\#?/,"#");f=b(x.verticallinecolor,r.divLineColor[c.chart.paletteIndex]);n=e(x.verticallinethickness,1);h=e(x.verticallinealpha,r.divLineAlpha[c.chart.paletteIndex]);var p=e(x.verticallinedashed,0),Q=e(x.verticallinedashlen,4),O=e(x.verticallinedashgap,2),t=d(f,h),da,v,pa;for(f=
0;f<x.category.length;f+=1)j=x.category[f],h=B.getCleanValue(j.x),h!==null&&!j.vline&&(g.catOccupied[h]=!0,pa=e(j.showlabel,j.showname,m),da=e(j.showverticalline,j.showline,j.sl,0),v=e(j.linedashed,p),j=pa===0||l%C!==0?w:Z(z(j.label,j.name)),i.plotLines.push({isGrid:!0,isCat:!0,width:da?n:0,color:t,dashStyle:I(Q,O,n,v),value:h,label:{text:j,style:i.labels.style,align:k,verticalAlign:u,textAlign:k,rotation:0,x:0,y:0}}),this.pointValueWatcher(c,null,h),l+=1);if(o==="mixed")g.requiredAutoNumericLabels=
e(this.requiredAutoNumericLabels,1)}else g.requiredAutoNumericLabels=e(this.requiredAutoNumericLabels,1);g.adjustMinMax=!0},getPointColor:function(a,b){var d,e,a=v(a),b=i(b);d=c(a,70);e=h(a,50);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.4,cy:0.4,r:"100%",color:d+fa+e,alpha:b+fa+b,ratio:ka,radialGradient:!0}}}},R.xybase);R("mscombibase",{series:function(a,c,d){var f,l,n,g,h=a.chart,j,i=[],x=[],C=[],k,m,o=c[s],B=this.isDual,p=0;c.legend.enabled=Boolean(e(a.chart.showlegend,1));if(a.dataset&&
a.dataset.length>0){this.categoryAdder(a,c);g=o.oriCatTmp.length;f=0;for(l=a.dataset.length;f<l;f+=1)switch(n=a.dataset[f],k=B&&b(n.parentyaxis,"p").toLowerCase()==="s"?!0:!1,j={visible:!!e(n.visible,1),legendIndex:f,data:[]},k?(j.yAxis=1,m=z(n.renderas,this.secondarySeriesType)):m=z(n.renderas,this.defaultSeriesType),m=m.toLowerCase(),m){case "line":case "spline":j.type="line";i.push(R.mslinebase.point.call(this,d,j,n,h,c,g,f));break;case "area":case "splinearea":j.type="area";c.chart.series2D3Dshift=
!0;C.push(R.msareabase.point.call(this,d,j,n,h,c,g,f));break;case "column":case "column3d":x.push(R.mscolumn2dbase.point.call(this,d,j,a.dataset[f],h,c,g,f,void 0,p));p+=1;break;default:k?(j.type="line",i.push(R.mslinebase.point.call(this,d,j,n,h,c,g,f))):(x.push(R.mscolumn2dbase.point.call(this,d,j,a.dataset[f],h,c,g,f,void 0,p)),p+=1)}h.areaovercolumns!=="0"?(c.chart.areaOverColumns=!0,c.series=c.series.concat(x,C,i)):(c.chart.areaOverColumns=!1,c.series=c.series.concat(C,x,i));if(x.length===0)o.hasNoColumn=
!0;else if(!this.isStacked){d=0;for(f=x.length;d<f;d+=1)x[d].numColumns=f}this.configureAxis(c,a);a.trendlines&&J(a.trendlines,c.yAxis,c[s],B,this.isBar)}}},R.mscolumn2dbase)}]);
FusionCharts(["private","modules.renderer.js-renderer",function(){var j=this,g=j.hcLib,m=g.Raphael,X=g.chartAPI,w=window,J=/msie/i.test(navigator.userAgent)&&!w.opera,Y=document,b=m.type==="VML",A=g.BLANKSTRING,e="crisp",r="rgba(192,192,192,"+(J?0.002:1.0E-6)+")",z=Math.round,oa=g.stubFN,Z={pageX:0,pageY:0},s=parseFloat,ia=parseInt,I=g.extend2,K=g.addEvent,P=g.removeEvent,ha=g.pluck,H=g.pluckNumber,o=g.graphics.HEXtoRGB,p=g.setImageDisplayMode,E=g.falseFN,V=g.FC_CONFIG_STRING,L=/\s\bx\b=['"][^'"]+?['"]/ig,
G=/\s\by\b=['"][^'"]+?['"]/ig,S=g.isArray,W=g.each=function(a,b,c,d){var e;c||(c=a);d||(d={});if(S(a))for(e=0;e<a.length;e+=1){if(b.call(c,a[e],e,a,d)===!1)return e}else if(!(a===null||a===void 0))for(e in a)if(b.call(c,a[e],e,a,d)===!1)return e},v=g.createElement,F=g.createContextMenu,f=g.toRaphaelColor=function(){var a={};return function(b){var c=(b=b||this)&&b.FCcolor||b,d=c.color,e=c.ratio,f=c.angle,g=c.alpha,h=c.r,j=c.cx,i=c.cy,k=c.fx,m=c.fy,p=c.gradientUnits,r=c.x1,t=c.y1,u=c.x2,v=c.y2,w=1,
z,D,y,ca;if(typeof b==="string")return a[ca="~"+b]||(a[ca]=b.replace(/^#?([a-f0-9]{3,6})/ig,"#$1"));d=d||A;if(!d)return z;ca=[d,g,e,f,h,j,i,p,k,m,r,u,t,v].join("_").replace(/[\(\)\s,\xb0#]/g,"_");if(a[ca])return a[ca];e=e&&(e+A).split(",")||[];g=(g||g===0)&&(g+A).split(",")||[];if(d=d.split(","))if(z=A,d.length===1)y=d[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),z=g.length?"rgba("+o(y).join(",")+","+s(g[0])*0.01+")":y.replace(/^#?([a-f0-9]{3,6})/ig,"#$1");else{b=0;for(D=d.length;b<D;b++)y=d[b].replace(/^#?([a-f0-9]{3,6})/ig,
"$1"),isNaN(e[b])||(e[b]=s(e[b]),y+=":"+e[b],isNaN(e[b+1])||(e[b+1]=s(e[b+1])+e[b])),!isNaN(g[b])&&g[b]!==A&&(w=g[b]*0.01),d[b]="rgba("+o(y).join(",")+","+w+")",isNaN(e[b])||(d[b]=d[b]+":"+e[b]);z+=d.join("-");if(h!==void 0||k!==void 0||j!==void 0||c.radialGradient)z="xr("+[k,m,h,j,i,p].join(",")+")"+z;else{z="-"+z;if(r!==void 0||t!==void 0||u!==void 0||v!==void 0)z="("+[r,t,u,v,p].join(",")+")"+z;f===void 0&&(f=0);z=360-s(f)%360+z}}return a[ca]=z}}();g.gradientify=function(){return function(){return""}}();
var i=g.hasTouch,h=i?10:3,c=g.getSentenceCase,d=g.getCrispValues,a=g.getValidValue,H=g.pluckNumber,k=g.getFirstValue,t=g.regex.dropHash,u=g.HASHSTRING,M=function(a){return a!==R&&a!==null},ba=function(a,b){a[1]===a[4]&&(a[1]=a[4]=z(a[1])+b%2/2);a[2]===a[5]&&(a[2]=a[5]=z(a[2])+b%2/2);return a},R,Ha=document.documentMode===8?"visible":"",e="crisp",ya=Math,sa=ya.sin,fa=ya.cos,Ka=ya.atan2,z=ya.round,ta=ya.min,ua=ya.max,Fa=ya.abs,La=ya.ceil,eb=ya.floor,Xa=ya.PI,Ya=Xa/2,ka=2*Xa,Wa=Xa+Ya,Ma=g.getFirstColor,
cb=g.graphics.getDarkColor,Oa=g.graphics.getLightColor,r="rgba(192,192,192,"+(J?0.002:1.0E-6)+")",Ia=g.POSITION_TOP,bb=g.POSITION_BOTTOM,fb=g.POSITION_RIGHT,gb=g.POSITION_LEFT;m.ca.ishot=function(a){if(this.removed)return!1;var b=this.node,a=a||"";b.ishot=a;switch(this.type){case "group":for(b=this.bottom;b;)b.attr("ishot",a),b=b.next;break;case "text":if(m.svg)for(b=b.getElementsByTagName("tspan")[0];b;)b.ishot=a,b=b.nextSibling}return!1};m.addSymbol({printIcon:function(a,b,c){var d=c*0.75,e=c*0.5,
f=c*0.33,g=z(a-c)+0.5,h=z(b-c)+0.5,j=z(a+c)+0.5,c=z(b+c)+0.5,i=z(a-d)+0.5,k=z(b-d)+0.5,d=z(a+d)+0.5,m=z(b+e)+0.5,o=z(a+e)+0.5,p=z(b+f)+0.5,a=z(a-e)+0.5,f=z(b+f+f)+0.5;return["M",i,h,"L",d,h,d,k,i,k,"Z","M",g,k,"L",g,m,i,m,i,b,d,b,d,m,j,m,j,k,"Z","M",i,b,"L",i,c,d,c,d,b,"Z","M",o,p,"L",a,p,"M",o,f,"L",a,f]},exportIcon:function(a,b,c){var d=c*0.66,e=d*0.5,f=z(a-c)+0.5,g=z(b-c)+0.5,h=z(a+c)+0.5,c=z(b+c)-0.5,j=z(a-e)+0.5,i=b<c-3?c-3:z(b)+0.5,e=z(a+e)-0.5,k=z(a+d)-0.5,d=z(a-d)+0.5;return["M",f,i,"L",f,
c,h,c,h,i,h,c,f,c,"Z","M",a,c-1,"L",d,b,j,b,j,g,e,g,e,b,k,b,"Z"]}});g.rendererRoot=X("renderer.root",{standaloneInit:!1,isRenderer:!0,inited:!1,callbacks:[],init:function(a,b,c){var l;var d=this,e=d.container=b.chart.renderTo,f=b.tooltip,g=d.layer,h;d.options=b;d.logic=a;d.definition=a.dataObj;d.smartLabel=a.smartLabel;d.numberFormatter=a.numberFormatter;d.fusionCharts=a.chartInstance;d.linkClickFN=a.linkClickFN;e.innerHTML=A;l=d.paper=m(e,e.offsetWidth||a.width,e.offsetHeight||a.height),e=l;j.core.options._useSVGDescTag!==
!1&&e._desc&&(h=a.friendlyName||"Vector image",d.definition&&d.definition.chart&&d.definition.chart.caption&&(h+=' with caption "'+d.definition.chart.caption+'"'),e._desc(h));d.chartWidth=e.width;d.chartHeight=e.height;if(!d.elements)d.elements={};if(!g)g=d.layers={},g.background=g.background||e.group("background"),g.dataset=g.dataset||e.group("dataset").insertAfter(g.background),g.tracker=g.tracker||e.group("hot").insertAfter(g.dataset);f&&f.enabled!==!1&&e.tooltip(f.style,f.shadow,f.constrain);
d.setMargins();d.drawBackground();d.drawButtons();d.drawGraph();b.legend&&b.legend.enabled&&d.drawLegend();d.drawCaption();d.drawLogo();d.setChartEvents();d.drawLabels&&d.drawLabels();W(b.callbacks,function(a){a.apply(d,this)},[a]);W(d.callbacks,function(a){a.apply(d,this)},[a]);d.hasRendered=!0;c&&c(d)},reinit:function(a,b,c){this.hasRendered||this.init(b,c)},dispose:function(){this.disposing=!0;this.paper&&(this.paper.remove(),delete this.paper);this.exportIframe&&(this.exportIframe.parentNode.removeChild(this.exportIframe),
delete this.exportIframe);delete this.disposing;this.disposed=!0},onContainerClick:function(a){var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,a=a.data;(!b||!b.ishot||!a)&&a.linkClickFN.call(a,a)},setChartEvents:function(){var a=this.options.chart.link,b=this.container;P(b,"click",this.onContainerClick);if(a)this.link=a,K(b,"click",this.onContainerClick,this);this.paper.canvas.style.cursor=m.svg?a&&"pointer"||"default":a&&"hand"||"default"},onOverlayMessageClick:function(){var a=
this.elements;m.animation({opacity:0},1E3);a.messageText&&a.messageText.hide();a.messageVeil&&a.messageVeil.hide()},showMessage:function(a,b){var c=this.paper,d=this.options.chart,e=this.elements,f=e.messageText,g=e.messageVeil,h=c.width,j=c.height;if(!g)g=e.messageVeil=c.rect(0,0,h,j).attr({fill:"rgba(0,0,0,0.2)",stroke:"none"});g.show().toFront().attr("cursor",b?"pointer":"default")[b?"click":"unclick"](this.onOverlayMessageClick,this);if(!f)f=e.messageText=c.text(h/2,j/2,A).attr({fill:"rgba(255,255,255,1)",
"font-family":"Verdana","font-size":10,"line-height":14,ishot:!0});a=a||A;this.smartLabel.setStyle({"line-height":"14px","font-family":"Verdana","font-size":"10px"});c=this.smartLabel.getSmartText(a,h-(d.spacingRight||0)-(d.spacingLeft||0),j-(d.spacingTop||0)-(d.spacingBotton||0));f.attr({text:c.text,ishot:!0,cursor:b?"pointer":"default"})[b?"click":"unclick"](this.onOverlayMessageClick,this).show().toFront()},drawButtons:function(){var a=this,b=a.logic.rendererId==="zoomline",c=a.paper,d=a.elements,
e=a.toolbar||(a.toolbar=[]),f=a.menus||(a.menus=[]),g=a.layers,h=a.options,j=h[V],j=j&&j.outCanvasStyle||a.logic.outCanvasStyle||{},i=h.chart.toolbar||{},k=i.hDirection,o=b?1:i.vDirection,p=i.button||{};e.count=0;var s=p.scale,r=p.width*p.scale,t=p.height*p.scale,u=k*(p.spacing*p.scale+r),v=p.radius;e.y||(e.y=(b?0:i.y)+i.vMargin*o+ta(0,t*o));e.x||(e.x=i.x+i.hMargin*k-ua(0,r*k));var i=(b=h.exporting)&&b.buttons||{},h=i.exportButton&&i.exportButton.enabled!==!1,i=i.printButton&&i.printButton.enabled!==
!1,w,D=g.buttons||(g.buttons=c.group("buttons"));e.add=function(a,b,d){var d=typeof d==="string"?{tooltip:d}:d||{},f=e.count===0?u-k*p.spacing*p.scale:u,f=d.x||(e.x+=f),l=d.tooltip||"";e.push(a=c.button(f,d.y||e.y,R,a,{width:r,height:t,r:v,id:e.count++,verticalPadding:p.symbolHPadding*s,horizontalPadding:p.symbolHPadding},D).attr({ishot:!0,fill:[p.fill,p.labelFill,p.symbolFill,p.hoverFill],stroke:[p.stroke,p.symbolStroke],"stroke-width":[p.strokeWidth,p.symbolStrokeWidth]}).tooltip(l).buttonclick(b));
return a};if(h)f.push(w=d.exportMenu=F({chart:a,labels:{style:j,hover:{color:"rgba(255, 255, 255, 1)"}},attrs:{fill:"rgba(255, 255, 255, 1)"},hover:{fill:m.tintshade(j.color,0.7)},items:function(b){var c=[],d;for(d in b)c.push({text:b[d],onclick:function(b){return function(){a.logic.chartInstance.exportChart({exportFormat:b})}}(d)});return c}(b.exportformats)})),d.exportButton=e.add("exportIcon",function(a,b){return function(){w.visible?w.hide():w.show({x:a,y:b+1})}}(e.x+r,e.y+t),{tooltip:"Export chart"});
if(i)d.printButton=e.add("printIcon",function(){a.print()},{tooltip:"Print chart"})},setMargins:function(){var a=this.paper,b=this.options.chart||{};this.canvasBorderWidth=b.plotBorderWidth||0;this.canvasTop=z(b.marginTop)||0;this.canvasLeft=z(b.marginLeft)||0;this.canvasWidth=z(a.width-(b.marginLeft||0)-(b.marginRight||0));this.canvasHeight=z(a.height-(b.marginTop||0)-(b.marginBottom||0));this.canvasRight=this.canvasLeft+this.canvasWidth;this.canvasBottom=this.canvasTop+this.canvasHeight},drawBackground:function(){var a=
this.paper,b=this.layers,c=this.elements,d=b.background||(b.background=a.group("background")),b=c.background||(c.background=a.rect(d)),e=this.options.chart||{},g=s(e.borderWidth)||0,h=g*0.5,i=e.borderWidth||0,j=this.chartHeight,k=this.chartWidth,m=c.backgroundImage,o=e.bgSWF,r=e.bgSWFAlpha/100,t=e.bgImageDisplayMode,u=e.bgImageVAlign,v=e.bgImageHAlign,w=e.bgImageScale,z=i+","+i+","+(k-i*2)+","+(j-i*2),A,D,y,H,U,q,I;a.canvas.style.backgroundColor=e.containerBackgroundColor;b.attr({x:h,y:h,width:a.width-
g,height:a.height-g,stroke:e.borderColor,"stroke-width":g,fill:f(e.backgroundColor)});if(o)A=new Image,U=y=1,m=[],A.onload=function(){D=p(t,u,v,w,i,k,j,A);D["clip-rect"]=z;if(D.tileInfo){y=D.tileInfo.xCount;U=q=D.tileInfo.yCount;I=D.y;for(delete D.tileInfo;y;)if(q-=1,H?(m[void 0]=H.clone().attr({x:D.x,y:D.y}),d.appendChild(m[void 0])):m[void 0]=H=a.image(o,d).attr(D).css({opacity:r}),D.y+=D.height,q===0)q=U,y-=1,D.x+=D.width,D.y=I}else m[0]=a.image(o,d),m[0].attr(D).css({opacity:r}).attr({visibility:Ha,
"clip-rect":z})},A.src=o,c.backgroundImage=m},drawGraph:function(){var a=this,b=a.paper,d=a.plots=a.elements.plots,e=a.logic,f=a.layers,g=a.options,h=a.elements,i=g.chart,g=a.datasets=g.series,j=k(i.rendererId,i.defaultSeriesType),m=f.background,m=f.dataset=f.dataset||b.group("dataset").insertAfter(m);f.tracker=f.tracker||b.group("hot").insertAfter(m);var o,p;a.drawCanvas();a.drawAxes();if(!d)d=a.plots=a.plots||[],h.plots=d;f=0;for(h=g.length;f<h;f++){b=g[f]||{};m=b.updatePlot="updatePlot"+c(ha(b.type,
b.plotType,j));m=a[m];o=b.drawPlot="drawPlot"+c(ha(b.type,b.plotType,j));o=a[o]||a.drawPlot;if(!(p=d[f]))d.push(p={index:f,items:[],data:b.data||[],name:b.name,userID:b.userID,setVisible:function(a,b){return function(c){var f=d[a],l,g={hcJSON:{series:[]}},h=g.hcJSON.series[a]||(g.hcJSON.series[a]={}),i=e.chartInstance.jsVars._reflowData;l=(c=k(c,!f.visible))?"visible":"hidden";W(f.graphics,function(a){a.attr("visibility",l)});f.visible=c;b.visible=c;h.visible=c;I(i,g,!0)}}(f,b),legendClick:function(b){return function(c,
e){a["legendClick"+j]&&a["legendClick"+j](d[b],c,e)||a.legendClick&&a.legendClick(d[b],c,e)}}(f),realtimeUpdate:function(b,c,e){return function(f,g){c.call(a,d[b],e,{numUpdate:f,hasAxisChanged:g})}}(f,m||o,b)}),b.plot=p,b.legendClick=p.legendClick,b.setVisible=p.setVisible;o.call(a,p,b)}i.hasScroll&&(a.drawScroller(),a.finalizeScrollPlots())},drawPlot:oa,drawCanvas:oa,drawAxes:oa,drawScroller:function(){},drawLegend:function(){var l;var a=this,b=a.options,d=a.paper,e=b.chart||{},f=b.legend,g=f.scroll,
b={elements:{}},h=b.elements,i=a.layers.legend,j=h.box,k=h.caption,o=h.elementGroup,p=f.layout==="vertical",s=e.marginTop,r=e.marginBottom,t=e.spacingBottom,u=e.spacingLeft,v=e.spacingRight,w=d.width,z=d.height,s=a.canvasTop,D=f.width,y=f.height,ca=f.borderRadius,U=f.backgroundColor,q=f.borderColor,E=f.borderWidth||0,F=E*0.5,qa=E*0.5+2,e=H(f.padding,4),G=e*0.5,M,$,J,K,L,ia,P;p?(p=w-v-D,s=s+(z-r-s-y)*0.5+(f.y||0)):(p=u+(w-u-v-D)*0.5+(f.x||0),s=z-t-y);r=m.crispBound(p,s,D,y,E);p=r.x;s=r.y;D=r.width;
y=r.height;if(!i)i=a.layers.legend=d.group("legend").insertBefore(a.layers.tracker).translate(p,s);f.legendAllowDrag&&($=p,J=s,i.css({cursor:"move"}).drag(function(a,b){K=ia+a;L=P+b;K+D+qa>w&&(K=w-D-qa);L+y+qa>z&&(L=z-y-qa);K<qa&&(K=qa);L<qa&&(L=qa);i.translate(K-$,L-J);$=K;J=L},function(){ia=$;P=J}));if(!j)j=h.box=d.rect(i);j.attr({x:0,y:0,width:D,height:y,r:ca,stroke:q,"stroke-width":E,fill:U||"none",ishot:f.legendAllowDrag}).shadow(f&&f.shadow);g&&g.enabled?(M=y-e,j=","+D+","+M,o=h.elementGroup=
d.group("legenditems",i).attr({"clip-rect":"0,"+G+j}),l=h.scroller||(h.scroller=d.scroller(D-10+G-E,F,10,y-E,!1,{scrollPosition:g.scrollPosition||0,scrollRatio:(M+e)/f.totalHeight,showButtons:!1,displayStyleFlat:g.flatScrollBars},i)),g=l,g.attr("fill",f.legendScrollBgColor).scroll(function(b){o.transform(["T",0,(M-f.totalHeight)*b]);I(a.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:b}}}},!0)})):o=h.elementGroup=i;if(f.title&&f.title.text!==A){if(!k)k=h.caption=d.text(o);k.attr({text:f.title.text,
title:f.title.originalText||"",x:D*0.5,y:e,fill:f.title.style.color,"vertical-align":"top"}).css(f.title.style)}this["draw"+c(f.type||"point")+"LegendItem"](b)},drawPointLegendItem:function(a){var n;var l;var b=this.paper,c=this.options,d=c.series,e=c.chart.defaultSeriesType,c=c.legend,g=c.legendHeight,h=c.symbolPadding,i=c.textPadding||2,j=H(c.padding,4),k=c.itemHiddenStyle,m=c.itemStyle,o=m.color,k=k&&k.color||"#CCCCCC",p=c.symbolWidth,s=c.itemWidth,t=c.interactiveLegend!==!1,u=a.elements,v=u.elementGroup,
a=a.item=[],u=u.item=[],w=[],z={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0},D,y,A,U,q,ga,F,G,M,K,$,L,J,ia;K=0;for(L=d.length;K<L;K+=1)if((A=d[K])&&A.showInLegend!==!1)if(ga=A.type||e,A.legendType==="point"){A=A.data||[];$=0;for(G=A.length;$<G;$+=1)if(q=A[$]||{},q.showInLegend!==!1)q._legendType=ga,w.push(q)}else switch(A._legendType=ga,ga){case "pie":case "pie3d":case "funnel":case "pyramid":w=A.data;break;default:w.push(A)}w.sort(function(a,b){return(a.legendIndex||0)-(b.legendIndex||
0)||a.__i-b.__i});c.reversed&&w.reverse();d=c.initialItemX||0;e=c.initialItemY||0;K=0;for(L=w.length;K<L;K+=1)if(w[K].showInLegend!==!1)if($={elements:{},hiddenColor:k,itemTextColor:o},a.push($),u.push($.elements),D=w[K],F=d+D._legendX+j,G=e+D._legendY-j,M=D._legendH,y=D._legendType||ga,A=D.visible!==!1,U=$.itemLineColor=f(D.color||{}),q=t?function(a){return function(){a.legendClick()}}(D):E,D.plot.legend=$,$.elements.legendItemBackground=b.rect(F,G,s,M,0,v).click(q).attr({fill:f(D.legendFillColor||
r),"stroke-width":1,stroke:f(D.legendBorderColor||"none"),cursor:m.cursor||"pointer",ishot:t}),$.elements.legendItemText=b.text(F+g+i-2,G+(D._legendTestY||0),D.name,v).css(m).click(q).attr({fill:A?o:k,"vertical-align":"top","text-anchor":"start",cursor:m.cursor||"pointer",title:D.originalText||"",ishot:t}),z[y]){y=G+h+p*0.5;if(D.lineWidth)ia=$.elements.legendItemLine=b.path(["M",F+h,y,"L",F+h+p,y],v).click(q).attr({"stroke-width":D.lineWidth,stroke:A?U:k,cursor:m.cursor||"pointer",ishot:t});if(D&&
(J=D.marker)&&J.enabled!==!1)$.symbolStroke=f(ha(J.lineColor&&(J.lineColor.FCcolor&&J.lineColor.FCcolor.color.split(",")[0]||J.lineColor),U)),J.fillColor&&J.fillColor.FCcolor?(y=I({},J.fillColor),y.FCcolor.alpha="100"):y=ha(J.fillColor,U),$.symbolColor=f(y),D=p*0.5,F=F+h+D,y=G+h+D,ia&&(D*=0.6),G=J.symbol.split("_"),U=G[0]==="spoke"?1:0,l=G[1]?$.elements.legendItemSymbol=b.polypath(G[1],F,y,D,J.startAngle,U,v):$.elements.legendItemSymbol=b.circle(F,y,D,v),G=l,G.click(q).attr({cursor:m.cursor||"pointer",
stroke:A?$.symbolStroke:k,fill:A?$.symbolColor:k,"stroke-width":1,ishot:t})}else G=this.getSymbolPath(F+h,G+h,p,p,y,D),$.symbolColor=f(G.color),$.symbolStroke=f(G.strokeColor),n=$.elements.legendItemSymbol=b.path(G.path,v).click(q).attr({"stroke-width":G.strokeWidth,stroke:A?$.symbolStroke:k,fill:A?$.symbolColor:k,cursor:m.cursor||"pointer",ishot:t}),G=n;c.reversed&&w.reverse()},drawCaption:function(){var l;var a=this.options.chart,b=this.options.title,c=this.options.subtitle,d=this.paper,e=this.elements,
f=this.layers,g=f.caption,h=e.caption,i=e.subcaption,j=b&&b.text,k=c&&c.text,m=(this.canvasLeft||0)+H(this.canvasWidth,d.width)/2,o=b.x,p=c&&c.x;if((j||k)&&!g)g=f.caption=d.group("caption"),f.tracker?g.insertBefore(f.tracker):g.insertAfter(f.dataset);if(j){if(!h)h=e.caption=d.text(g);if(o===void 0)o=m,b.align="middle";h.css(b.style).attr({text:b.text,fill:b.style.color,x:o,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":"top",visibility:"visible",title:b.originalText||""})}else if(h)l=
e.caption=h.remove(),h=l;if(k){if(!i)i=e.subcaption=d.text(g);if(p===void 0)p=m,c.align="middle";i.css(c.style).attr({text:c.text,title:c.originalText||"",fill:c.style.color,x:p,y:j?h.attrs.y+h.getBBox().height+2:b.y||a.spacingTop||0,"text-anchor":c.align||"middle","vertical-align":"top",visibility:"visible"})}else if(i)e.subcaption=i.remove();if(!j&&!k&&g)f.caption=g.remove()},drawLogo:function(){var a=this.paper,b=this.elements,c=this.options,d=c.credits,e=c.chart||{},f=e.borderWidth||0,g=this.chartHeight,
h=this.chartWidth,i=b.logoImage,j=this.layers.tracker,k=e.logoURL,m=e.logoAlpha/100,o=e.logoPosition,s=e.logoLink,r=e.logoScale,t=e.logoLeftMargin,u=e.logoTopMargin,v=f+","+f+","+(h-f*2)+","+(g-f*2),c={tr:{vAlign:Ia,hAlign:fb},bl:{vAlign:bb,hAlign:gb},br:{vAlign:bb,hAlign:fb},cc:{vAlign:"middle",hAlign:"middle"}},w,D;this.logic&&d.enabled&&a.text().attr({text:d.text,x:6,y:g-4,"vertical-align":bb,"text-anchor":"start",fill:"rgba(0,0,0,0.5)",title:d.title||""}).css({fontSize:9,fontFamily:"Verdana",
cursor:"pointer",_cursor:"hand"}).click(function(){e.events.click.call({link:d.href})});if(k)w=new Image,(o=c[o])||(o={vAlign:Ia,hAlign:gb}),w.onload=function(){D=p("none",o.vAlign,o.hAlign,r,f,h,g,w);i=a.image(k);j.appendChild(i);D["clip-rect"]=v;i.attr(D).translate(t,u).css({opacity:m});s&&i.css({cursor:"pointer",_cursor:"hand"}).click(function(){e.events.click.call({link:s})})},w.src=k,b.logoImage=i},legendClick:function(a,b,c){var d=a.legend,e=d&&d.elements,f=e&&e.legendItemText,g=e&&e.legendItemSymbol,
e=e&&e.legendItemLine,h=d&&d.hiddenColor,i=d&&d.itemLineColor,k=d&&d.itemTextColor,m=d&&d.symbolColor,o=d&&d.symbolStroke,d=ha(b,!a.visible);a.setVisible(b);c!==!0&&(eventArgs={datasetName:a.name,datasetIndex:a.index,id:a.userID,visible:d},j.raiseEvent("legenditemclicked",eventArgs,this.logic.chartInstance));d?(g&&g.attr({fill:m||i,stroke:o}),f&&f.attr({fill:k}),e&&e.attr({stroke:i})):(g&&g.attr({fill:h,stroke:h}),f&&f.attr({fill:h}),e&&e.attr({stroke:h}));if((a=this.datasets&&this.datasets[a.index]&&
this.datasets[a.index].relatedSeries)&&a instanceof Array&&a.length>0)for(b=a.length;b--;)c=parseFloat(a[b]),(c=this.plots[c])&&c.legend&&c.legendClick.call(c,d,!1)},exportChart:function(a){var b=this.elements,c=b.printButton,d=b.exportButton,e=this.fusionCharts,f=e.id,h=this.paper,i=this.options,a=typeof a==="object"&&function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b}(a)||{},k=I(I({},i.exporting),a),m=(k.exportformat||"png").toLowerCase(),a=k.exporthandler,o=(k.exportaction||A).toLowerCase(),
b=k.exporttargetwindow||A,p=k.exportfilename,s=k.exportparameters,r;if(!i.exporting||!i.exporting.enabled||!a)return!1;c&&c.attrs.visibility!="hidden"&&c.attr({visibility:"hidden"});d&&d.attrs.visibility!="hidden"&&d.attr({visibility:"hidden"});i=h.toSVG();c&&c.attr({visibility:"visible"});d&&d.attr({visibility:"visible"});i=i.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,"$1M 0 0 L 0 0$2");m==="pdf"&&(i=i.replace(/<(\b[^<>s\s]+\b)[^\>]+?opacity\s*=\s*['"][^1][^\>]+?(\/>|>[\s\r\n]*?<\/\1>)/ig,function(a,
b){var c=L.exec(a)||A,d=G.exec(a)||A;return a+"<"+b+c+d+' opacity="1" stroke-opacity="1" fill="#cccccc" stroke-width="0" r="0" height="0.5" width="0.5" d="M 0 0 L 1 1" />'}));c={charttype:e.src,stream:i,stream_type:"svg",meta_bgColor:k.bgcolor||"",meta_DOMId:e.id,meta_width:h.width,meta_height:h.height,parameters:["exportfilename="+p,"exportformat="+m,"exportaction="+o,"exportparameters="+s].join("|")};if(o==="download"){if(/webkit/ig.test(navigator.userAgent)&&b==="_self"&&(b=d=f+"export_iframe",
!this.exportIframe))this.exportIframe=d=v("IFRAME",{name:d,width:"1px",height:"1px"},Y.body),d.style.cssText="position:absolute;left:-10px;top:-10px;";a=v("form",{method:"POST",action:a,target:b,style:"display:none;"},Y.body);for(r in c)v("input",{type:"hidden",name:r,value:c[r]},a);a.submit();Y.body.removeChild(a);a=void 0}else r=new j.ajax(function(a){var b={};a.replace(RegExp("([^?=&]+)(=([^&]*))?","g"),function(a,c,d,e){b[c]=e});g.raiseEvent("exported",b,e,[b])},function(a){a={statusCode:0,statusMessage:"failure",
error:a,DOMId:f,width:h.width,height:h.height};g.raiseEvent("exported",a,e,[a])}),r.post(a,c);return!0},print:function(){var a=this,b=a.container,c=a.elements,d=c.printButton,e=c.exportButton,f=[],g=b.parentNode,c=Y.body,h=c.childNodes;if(!a.isPrinting)a.isPrinting=!0,W(h,function(a,b){if(a.nodeType==1)f[b]=a.style.display,a.style.display="none"}),d&&d.attrs.visibility!="hidden"&&d.attr({visibility:"hidden"}),e&&e.attrs.visibility!="hidden"&&e.attr({visibility:"hidden"}),c.appendChild(b),w.print(),
setTimeout(function(){d&&d.attr({visibility:"visible"});e&&e.attr({visibility:"visible"});g.appendChild(b);W(h,function(a,b){if(a.nodeType==1)a.style.display=f[b]});a.isPrinting=!1},1E3)},getSymbolPath:function(a,b,c,d,e,f){var g=["M"],h,i,j,k;h=(f.color&&Ma(typeof f.color==="string"?f.color:f.color.FCcolor.color)||A).replace(t,"");i=Oa(h,40);k=cb(h,60).replace(t,u);h={FCcolor:{color:h+","+h+","+i+","+h+","+h,ratio:"0,30,30,30,10",angle:0,alpha:"100,100,100,100,100"}};switch(e){case "column":case "dragcolumn":case "column3d":i=
c*0.25;j=i*0.5;e=d*0.7;f=d*0.4;g=g.concat([a,b+d,"l",0,-e,i,0,0,e,"z","m",i+j,0,"l",0,-d,i,0,0,d,"z","m",i+j,0,"l",0,-f,i,0,0,f,"z"]);h.FCcolor.angle=270;break;case "bar":case "bar3d":i=c*0.3;j=c*0.6;e=d/4;f=e/2;g=g.concat([a,b,"L",a+j,b,a+j,b+e,a,b+e,"Z","M",a,b+e+f,"L",a+c,b+e+f,a+c,b+e+f+e,a,b+2*e+f,"Z","M",a,b+2*(e+f),"L",a+i,b+2*(e+f),a+i,b+d,a,b+d,"Z"]);break;case "area":case "area3d":case "areaspline":case "dragarea":e=d*0.6;f=d*0.2;d*=0.8;g=g.concat([a,b+d,"L",a,b+e,a+c*0.3,b+f,a+c*0.6,b+
e,a+c,b+f,a+c,b+d,"Z"]);h.FCcolor.angle=270;break;case "pie":case "pie3d":i=c/2;j=c*0.7;e=d/2;g=g.concat([a+i,b+e,"L",a+j,b,"A",i,e,0,0,0,a,b+e,"L",a+i,b+e,"M",a+i,b+e,"L",a,b+e,"A",i,e,0,0,0,a+j,b+d,"L",a+i,b+e,"M",a+i,b+e,"L",a+j,b+d,"A",i+1,e+1,0,0,0,a+j,b,"Z"]);break;case "boxandwhisker2d":g=g.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]);h=f.color;k="#000000";break;default:g=g.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]),h.FCcolor.angle=270,h.FCcolor.ratio="0,70,30"}return{path:g,color:h,strokeWidth:0.5,
strokeColor:k}}});var Ja=function(a,b,c,d){this.axisData=a||{};b=this.renderer=b;a=b.paper;this.globalOptions=b.options;var e=b.layers,b=c?"y-axis":"x-axis",f=this.layerAboveDataset=e.layerAboveDataset,g=this.layerBelowDataset=e.layerBelowDataset,e=f.bands||(f.bands=[]),h=e.length,i=g.bands||(g.bands=[]),j=i.length,k=f.lines||(f.lines=[]),m=k.length,o=g.lines||(g.lines=[]),p=o.length,f=f.labels||(f.labels=[]),s=f.length,g=g.labels||(g.labels=[]),r=g.length;this.isVertical=c;this.topBandGroup=this.topBandGroup||
a.group(b+"-bands",this.layerAboveDataset);this.belowBandGroup=this.belowBandGroup||a.group(b+"-bands",this.layerBelowDataset);e.push(this.topBandGroup);h&&e[h].insertAfter(e[h-1]);i.push(this.belowBandGroup);j&&i[j].insertAfter(i[j-1]);this.topLineGroup=this.topLineGroup||a.group(b+"-lines",this.layerAboveDataset);this.belowLineGroup=this.belowLineGroup||a.group(b+"-lines",this.layerBelowDataset);this.topLabelGroup=this.topLabelGroup||a.group(b+"-labels",this.layerAboveDataset);this.belowLabelGroup=
this.belowLabelGroup||a.group(b+"-labels",this.layerBelowDataset);k.push(this.topLineGroup);m&&k[m].insertAfter(k[m-1]);o.push(this.belowLineGroup);p&&o[p].insertAfter(o[p-1]);f.push(this.topLabelGroup);s&&f[s].insertAfter(f[s-1]);g.push(this.belowLabelGroup);r&&g[r].insertAfter(g[r-1]);this.isReverse=d;this.configure()};Ja.prototype={configure:function(){var a=this.axisData,b=this.renderer,c=this.isVertical,d=this.isReverse,e=b.options,f=e.chart,g=f.marginBottom,f=f.marginRight,h=b.canvasTop,i=b.canvasLeft,
j=this.min=a.min,j=this.span=(this.max=a.max)-j,i=this.startX=H(a.startX,i),h=this.startY=H(a.startY,h),k=this.endX=H(a.endX,b.canvasRight),a=this.endY=H(a.endY,b.canvasBottom);this.startPixel=d?c?a:k:c?h:i;c=this.pixelRatio=c?(a-h)/j:(k-i)/j;this.pixelValueRatio=d?-c:c;d=this.relatedObj={};d.marginObj={top:h,right:f,bottom:g,left:i};d.canvasObj={x:i,y:h,w:k-i,h:a-h,toX:k,toY:a};this.primaryOffset=this.secondaryOffset=0;this.cache={lowestVal:0,highestVal:0,indexArr:[],hashTable:{}};this.elements=
this.elements||{};if(this.belowBandGroup)b.elements.axes=b.elements.axes||{},b.elements.axes.belowBandGroup=this.belowBandGroup,e&&e.chart&&e.chart.hasScroll&&this.belowBandGroup.attr({"clip-rect":b.elements["clip-canvas"]});this.poi={}},draw:function(){var a=this.axisData,b=a&&a.plotLines||[],c=a&&a.plotBands||[],d=a&&a.showLine,e=a&&a.tickLength,f=a&&a.tickWidth;a&&a.title&&this.drawAxisName();b&&b.length>0&&this.drawPlotLine();c&&c.length>0&&this.drawPlotBands();!isNaN(e)&&e!=0&&!isNaN(f)&&f!=
0&&this.drawTicks();d&&this.drawLine()},scroll:function(){},setOffset:function(a,b){var c=h?this.startY:this.startX,d=h?this.endY:this.endX,e=this.cache.hashTable,f=this.primaryOffset=a||this.primaryOffset,g=this.secondaryOffset=b||this.secondaryOffset,h=this.isVertical,i,j,k,m=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,this.belowLineGroup,this.topBandGroup,this.belowBandGroup],o,p,s;o=0;for(p=m.length;o<p;o+=1)if(k=m[o])i=h?g:f,j=h?f:g,k.attr({transform:"t"+i+","+j});if(!h)for(s in e)if(o=
parseFloat(s)+f,o<c||o>d){g=e[s];o=0;for(p=g.elements.length;o<p;o+=1)h=g.elements[o],h.attr("visibility")==="visible"&&h.attr({visibility:"hidden"})}else if(o>c&&o<d){g=e[s];o=0;for(p=g.elements.length;o<p;o+=1)h=g.elements[o],h.attr("visibility")==="hidden"&&h.attr({visibility:"visible"})}},update:function(){},drawTicks:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,f=this.layerBelowDataset,f=this.tickGroup=this.tickGroup||b.group("axis-ticks",f),g=
this.relatedObj.canvasObj,h=a.offset,i=a.opposite,j=a.showAxis,k=a.tickInterval,m=a.tickLength,o=a.tickWidth,a=a.tickColor,p=c;if(e&&j){c=this.getAxisPosition(c);e=this.getAxisPosition(d);g=!i?g.x-h:g.toX+h;for(b.path(["M",g,c,"L",g,e],f).attr({stroke:a,"stroke-width":o});eb(p)<=d;)h=this.getAxisPosition(p),c=!i?g-m:g+m,b.path(["M",g,h,"L",c,h],f).attr({stroke:a,"stroke-width":o}),p+=k}},getAxisPosition:function(a,b){var c;b?c=(a-this.startPixel)/this.pixelValueRatio+this.min:(a=this.axisData.reversed?
this.min+(this.max-a):a,c=this.startPixel+(a-this.min)*this.pixelValueRatio);return c},drawPlotLine:function(){for(var a=this.renderer,b=a.paper,c=this.isVertical,d=+!c,g=this.belowLineGroup,i=this.topLineGroup,j=this.belowLabelGroup,k=this.topLabelGroup,m=this.axisData.plotLines||[],o=this.lines=this.lines||[],p=this.labels=this.labels||[],s=this.relatedObj.canvasObj,t=this.globalOptions||{},u=this.elements||{},v=this.cache||{},w=v.hashTable,z=v.indexArr,E=c?this.startY:this.startX,I=c?this.endY:
this.endX,D=this.primaryOffset,y=parseFloat(a.canvasBorderWidth)||0,ca,U=(a.tooltip||{}).enabled!==!1,q,G,F,M,J,K,$,L,ia,P,R,Z,X,W,S,N,aa=0,ha=0,V,Y,Ea,fa,ta,oa,Ca,za,ka=t.chart.xDepth||0,sa,Ba,ya,Sa,T,Fa,Ha,Ka,La,ja,Qa,Wa=ua(m.length,ua(o.length,p.length)),Oa,Ja,Ma,Xa,v=[],Ya,t=0;t<Wa;t+=1){G=F=M=null;fa=K="visible";G=o[t];F=p[t];La=($=m[t])&&$.width;R=(ca=$&&$.label)&&ca.style;if(!G&&$){if(Ba=$.zIndex>3?i:g,La>0.1)G=o[t]=b.path(Ba).css($.style),u.lines=u.lines||[],u.lines.push(G)}else if(!$&&(G||
F))G&&G.remove(),F&&F.remove(),o&&(o[t]=null),p&&(p[t]=null),u&&u.lines&&(u.lines[t]=null),u&&u.labels&&(u.labels[t]=null);if($){if(!F&&ca&&!$.stepped){if(ca.text!=A&&ca.text!=" "){F=$.zIndex>=3?k:j;F=p[t]=b.text(F).css(R);if(G)G.label=F;u.labels=u.labels||[];u.labels.push(F)}}else if(F)if(ca)if(ca.text===A||ca.text===" ")F.isRotationSet=!1,F.remove(),delete F,p&&(p[t]=null),u&&u.labels&&(u.labels[t]=null);else{if($&&$.stepped)F.isRotationSet=!1,F.remove(),delete F,p&&(p[t]=null),u&&u.labels&&(u.labels[t]=
null)}else F.isRotationSet=!1,F.remove(),delete F,p&&(p[t]=null),u&&u.labels&&(u.labels[t]=null);if(!G&&!F)G=F=null;else if($.value!==null){if($)Sa=$.isVline,T=$.isTrend,Fa=$.isGrid,q=$.tooltext,Ha=$.value,Ka=$.color,ja=$.dashStyle,Qa=T?$.to:null,L=$._isStackSum;if(ca)ia=ca.text,P=R&&R.color,W=ca.offsetScaleIndex||0,S=ca.offsetScale,Z=R&&R.fontSize,X=R&&R.lineHeight,N=ca.rotation,aa=ca.x||0,ha=ca.y||0,V=ca.align,Y=ca.verticalAlign,Ea=ca.textAlign,sa=(sa=ca&&ca.borderWidth)?sa.indexOf("px")!==-1?sa.replace("px",
""):1:1;Z&&(Ja=Z,Ja.indexOf("px")!==-1&&(Ja=Ja.replace("px",""),Ja=parseFloat(Ja)));X&&(Ma=X,Ma.indexOf("px")!==-1&&(Ma=Ma.replace("px",""),Ma=parseFloat(Ma)));c?(R=this.getAxisPosition(Ha),J=T?this.getAxisPosition(Qa)||R:R,ya=R!==J?!0:!1,Ba=["M",s.x,R,"L",s.toX,J],Sa?a.logic.isBar&&(Ca=a.yAxis[W],!L&&!isNaN(S)&&S>=0&&S<=1&&(S=Ca.min+(Ca.max-Ca.min)*S),oa=Ca.getAxisPosition(H(S,Ha))+aa):oa=ca?ta=this.axisData.isOpposite||V==="right"?s.toX+aa:s.x+aa:ta=this.axisData.isOpposite?s.toX:s.x):(ta=T?this.getAxisPosition(Ha):
this.getAxisPosition(Ha)||0,oa=T?this.getAxisPosition(Qa)||ta:ta,!T&&!Sa&&ka>0&&(ta+=ka,oa+=ka,I+=ka),ya=ta!==oa?!0:!1,Ba=["M"+ta,s.y,"L",oa,s.toY],K=ta+D<E||ta+D>I?"hidden":K,Sa?(Ca=a.yAxis[W],!L&&!isNaN(S)&&S>=0&&S<=1&&(S=Ca.min+(Ca.max-Ca.min)*(1-S)),R=Ca.getAxisPosition(H(S,Ha))+ha,R-=y+parseFloat(sa)):this.axisData.opposite||Y==="top"&&!Fa?(R=s.y+ha,Oa="bottom"):R=s.toY+ha,J=R);if(F){if(ca&&ca.backgroundColor)ca.labelBgClr=f({color:ca.backgroundColor,alpha:ca.backgroundOpacity*100});if(ca&&ca.borderColor)ca.labelBorderClr=
f({color:ca.borderColor,alpha:"100"});za=T?V==="left"?R:J:J;Ca=oa-+!Sa*d*ka;Ca=oa-+!Sa*d*ka+d*(aa||0);Xa=Ja?Ja*0.2:2;fa=!c?oa+D<E||oa+D>I?"hidden":fa:fa;J=Ea==="left"?"start":Ea==="right"?"end":"middle";L?(Oa="bottom",za+=Ja*0.4,v.push(F)):d&&this.axisData.opposite?(Oa=bb,J=N?"start":"middle"):Oa=Y;/\n|<br\s*?\/?>/ig.test(ia)&&!N&&Fa&&(Oa=d&&this.axisData.opposite&&!N?"middle":Ia,za-=Ma);F.attr({transform:" "});F.attr({text:ia,fill:P||Ka,"text-bound":ca&&[ca.labelBgClr,ca.labelBorderClr,sa,Xa],title:ca&&
(ca.originalText||""),x:Ca,y:za,"text-anchor":J,"vertical-align":Oa,visibility:fa});N&&F.rotate(N,Ca,za);fa=c?za.toString():oa.toString();(ca=w[fa])?ca.elements.push(F):(ca={counter:t,keyProp:fa,elements:[F]},w[fa]=ca,z.push(ca))}G&&(G.attr({path:ba(Ba,La),stroke:Ka,"stroke-width":La,"shape-rendering":!ya&&La>=1?e:void 0,"stroke-dasharray":ja?ja:void 0,visibility:K}),U&&q&&La<h&&K&&(M=b.path(Ba).attr({stroke:r,"stroke-width":h,ishot:!0})),M=M||G,U&&M.tooltip(q),fa=c?R.toString():ta.toString(),(ca=
w[fa])?ca.elements.push(G):(ca={counter:t,keyProp:fa,elements:[G]},w[fa]=ca,z.push(ca)));if($&&$.isMinLabel)this.poi.min={label:F,index:t,line:G};else if($&&$.isMaxLabel)this.poi.max={label:F,index:t,line:G};else if($&&$.isZeroPlane)this.poi.zero={label:F,index:t,line:G};G=F=null}}}b=v.length;Ya=H(a.options.plotOptions.series.animation.duration,0);if(b>0)for(t=0;t<b;t+=1)(a=v[t])&&function(a){a.hide();setTimeout(function(){a.show()},Ya)}(a)},drawPlotBands:function(){var a=this.renderer,b=a.paper,
c=this.isVertical,d=a.options.chart.hasScroll,e=this.belowBandGroup,g=this.topBandGroup,h=this.belowLabelGroup,i=this.topLabelGroup,j=this.axisData.plotBands||[],k=this.bands=this.bands||[],o=this.bandLabels=this.bandLabels||[],m=this.relatedObj.canvasObj,p=this.elements||{},s=this.cache||{},r=s.hashTable,s=s.indexArr,t=c?this.startY:this.startX,u=c?this.endY:this.endX,v=this.primaryOffset,a=(a.tooltip||{}).enabled!==!1,w,D,y,z,A,q,E,F,I,G,M,$,J,K,L,R,ia,P,Z,S,N,aa,X,W,ha,V,Y,ba,fa,ta,za,oa,ka,Ba,
sa=ua(j.length,k.length);for(Ba=0;Ba<sa;Ba+=1){D=z="visible";y=k[Ba];A=o[Ba];J=($=(q=j[Ba])&&q.label)&&$.style;if(!y&&q){if(y=q.zIndex>3?g:e,oa=q.zIndex>3?i:h,y=k[Ba]=b.rect(y),p.bands=p.bands||[],p.bands[Ba]=y,$&&$.text)A=o[Ba]=y.label=b.text(oa).css(J),p.labels=p.labels||[],p.labels[Ba]=A}else if(!q&&y){p.labels&&(o[Ba]=p.labels[Ba]=null);y.label&&y.label.remove();k[Ba]=p.bands[Ba]=null;y.remove();delete y;continue}if(q)w=q.tooltext,E=q.to,F=q.from,I=q.value,G=q.width,M=q.color;if($)P=J&&J.fontSize,
Z=J&&J.lineHeight,K=$.borderWidth,L=$.align,R=$.x,ia=$.y,aa=$.text,X=$.originalText,W=J&&J.color,ha=$.backgroundColor,V=$.backgroundOpacity,Y=$.borderColor,S=$.textAlign,N=$.verticalAlign,ba=$.borderType;P&&(q=P,q.indexOf("px")!==-1&&(q=q.replace("px",""),parseFloat(q)));Z&&(q=Z,q.indexOf("px")!==-1&&(q=q.replace("px",""),parseFloat(q)));ka=this.getAxisPosition(H(E,I));za=this.getAxisPosition(H(F,I));J=c?m.x:za;q=c?ka:m.y;oa=c?m.w:(!this.axisData.reversed?ka-za:za-ka)||G||1;ka=c?za-ka||1:m.h;za=J+
oa;oa=Fa(oa);ka<0&&(ka=Fa(ka),q-=ka);z=d?!0:!c?J+v>u||za+v<t?"hidden":z:z;y&&(y.attr({x:J,y:q,width:oa,height:ka,fill:f(M),"stroke-width":0,visibility:z}),a&&w&&y.tooltip(w));if(A&&$){(z=K)&&z.indexOf("px")!==-1&&z.replace("px","");z=c?L==="right"?m.toX+R:m.x+R:J+oa/2;y=c?q+ka/2:m.toY+ia;D=!c?z+v<t||z+v>u?"hidden":D:D;if(ha)fa=$.labelBgClr=f({color:ha,alpha:V*100});if(Y)ta=$.labelBorderClr=f({color:Y,alpha:"100"});S=S==="left"?"start":S==="right"?"end":"center";A.attr({text:aa,title:X||"",fill:W,
"text-bound":[fa,ta,K,P*0.2,ba==="solid"?!1:!0],x:z,y:y,"text-anchor":S,"vertical-align":N,visibility:D});$=c?y.toString():z.toString();(D=r[$])?D.elements.push(A):(D={counter:Ba,keyProp:$,elements:[A]},r[$]=D,s.push(D))}}},drawAxisName:function(){var l;var a=this.axisData,b=a.title||{},c=b&&b.style,d=b.align,e=b.centerYAxisName||!1,g=this.renderer.paper,h=this.isVertical,i=this.relatedObj.canvasObj,j=H(a.offset,0)+H(b.margin,0),k=b.text||"",m=this.name||void 0,a=a.opposite,o=this.layerBelowDataset,
o=o.nameGroup=o.nameGroup||g.group("axis-name",o),p=H(b.rotation,!a?270:90),s=h?a?i.toX+j:i.x-j:(i.x+i.toX)/2,r,t,u,v,w;if(c)t=c.color,u=f({color:c.backgroundColor,alpha:100}),v=f({color:c.borderColor,alpha:100}),(l=(c=c.border)&&c.split(" "),c=l)&&c.length>0&&(w=c[0].indexOf("px")!=-1?parseFloat(c[0].replace("px","")):parseFloat(c[0]));e=h?d==="low"?i.toY:e?(i.y+i.toY)/2:this.renderer.chartHeight/2:i.toY+j;!m&&k?m=this.name=g.text(o).css(b.style):!k&&m&&m.remove();if(!isNaN(p)&&p&&h)r=b.style.fontSize,
r=r.indexOf("px")!=-1?r.replace("px",""):r,s=a?s+parseFloat(r):s-parseFloat(r);m&&m.attr({text:k,title:b.originalText||"",fill:t||"#000000","text-bound":[u,v,w,r*0.1],"text-anchor":d==="low"?!a?"start":"end":"middle","vertical-align":h?!p?"middle":"top":a?bb:"top",transform:h?"t"+s+","+e+"r"+p:"t"+s+","+e});this.elements.name=m},drawLine:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,f=a.opposite,g=this.layerBelowDataset,g=this.lineGroup=this.lineGroup||
b.group("axis-lines",g),h=a.lineColor,a=a.lineThickness,i=this.relatedObj.canvasObj,j;e?(c=this.getAxisPosition(c),d=this.getAxisPosition(d),e=j=!f?i.x:i.toX):(e=i.x,j=i.toX,c=d=!f?i.toY:i.y);this.elements.axisLine=b.path(["M",e,c,"L",j,d],g).attr({stroke:h,"stroke-width":a})},realtimeUpdateX:function(a){if(a>0){for(var b=this.axisData.plotBands,c=this.min+a,d,e=b.length;e--;)if((d=b[e])&&!d.isNumVDIV)d.value<c||d.from<c||d.to<c?b.splice(e,1):(d.value!==void 0&&(d.value-=a),d.from!==void 0&&(d.from-=
a),d.to!==void 0&&(d.to-=a));this.drawPlotLine();this.drawPlotBands()}},realtimeUpdateY:function(a,b){var c=this.axisData,d=this.min=c.min=a,c=this.span=(this.max=c.max=b)-d,c=this.pixelRatio=this.isVertical?this.relatedObj.canvasObj.h/c:this.relatedObj.canvasObj.w/c;this.pixelValueRatio=this.isReverse?-c:c;this.drawPlotLine();this.drawPlotBands()}};Ja.prototype.constructor=Ja;var Qa=function(a,b,c,d){return Ka(b-c[1]-d.top,a-c[0]-d.left)};X("renderer.cartesian",{drawCanvas:function(){var l;var a=
this.options.chart||{},c=a.plotBackgroundColor,d=this.paper,e=this.elements,g=e.canvas,h=e.canvas3DBase,i=e.canvas3dbaseline,h=e.canvasBorder,j=e.canvasBg,k=this.canvasTop,o=this.canvasLeft,p=this.canvasWidth,s=this.canvasHeight,r=H(a.plotBorderRadius,0),j=a.plotBorderWidth,v=j*0.5,w=a.plotBorderColor,z=a.isBar,A=a.is3D,E=a.use3DLighting,F=a.showCanvasBg,D=a.canvasBgDepth,y=a.showCanvasBase,I=a.canvasBaseColor3D,U=a.canvasBaseDepth,q=a.plotShadow,G=b&&j===0&&q&&q.enabled,J=a.xDepth||0,a=a.yDepth||
0,M=this.layers,K=M.background,L=M.dataset;M.tracker=M.tracker||d.group("hot").insertAfter(L);M.datalabels=M.datalabels||d.group("datalabels").insertAfter(L);l=M.canvas=M.canvas||d.group("canvas").insertAfter(K),M=l;if(!h)e.canvasBorder=d.rect(o-v,k-v,p+j,s+j,r,M).attr({"stroke-width":j,stroke:w,"stroke-linejoin":j>2?"round":"miter"}).shadow(q);e["clip-canvas"]=[ua(0,o-J),ua(0,k-a),ua(1,p+J*2),ua(1,s+a*2)];e["clip-canvas-init"]=[ua(0,o-J),ua(0,k-a),1,ua(1,s+a*2)];if(A){if(F)j=z?e.canvasBg=d.path(["M",
o,",",k,"L",o+D*1.2,",",k-D,",",o+p-D,",",k-D,",",o+p,",",k,"Z"],M):e.canvasBg=d.path(["M",o+p,",",k,"L",o+p+D,",",k+D*1.2,",",o+p+D,",",k+s-D,",",o+p,",",k+s,"Z"],M),j.attr({"stroke-width":0,stroke:"none",fill:f(c)});if(y){h=z?e.canvas3DBase=d.cubepath(o-J-U-1,k+a+1,U,s,J+1,a+1,M):e.canvas3DBase=d.cubepath(o-J-1,k+s+a+1,p,U,J+1,a+1,M);h.attr({stroke:"none","stroke-width":0,fill:[I.replace(t,u),!E]});if(!i)i=e.canvas3dbaseline=d.path(void 0,M);i.attr({path:z?["M",o,k,"V",s+k]:["M",o,k+s,"H",p+o],
stroke:m.tintshade(I.replace(t,u),0.05).rgba})}}if(!g&&c)e.canvas=d.rect(o,k,p,s,r,M).attr({"stroke-width":0,stroke:"none",fill:f(c)}).shadow(G)},drawAxes:function(){var a=this.logic,b=this.options,c=this.paper,d=this.layers,e=d.dataset,f=d.layerBelowDataset=d.layerBelowDataset||c.group("axisbottom"),g=d.layerAboveDataset=d.layerAboveDataset||c.group("axistop"),c=this.xAxis=[],d=this.yAxis=[];f.insertBefore(e);g.insertAfter(e);if(b.xAxis&&b.xAxis.length){e=0;for(f=b.xAxis.length;e<f;e+=1)c[e]=this.xAxis[e]=
new Ja(b.xAxis[e],this,a.isBar)}else c[0]=this.xAxis[0]=new Ja(b.xAxis,this,a.isBar);if(b.yAxis){e=0;for(f=b.yAxis.length;e<f;e+=1)d[e]=this.yAxis[e]=new Ja(b.yAxis[e],this,!a.isBar,!a.isBar)}e=0;for(f=d.length;e<f;e+=1)d[e].draw();e=0;for(f=c.length;e<f;e+=1)c[e].draw()},drawScroller:function(){var a=this,b=a.options,c=a.paper,d=a.layers,e=a.xAxis["0"]||{},f=(e.axisData||{}).scroll||{},g=a.canvasTop,h=a.canvasLeft,i=a.canvasWidth,j=a.canvasHeight,k=ta(a.canvasBorderWidth,2),o,m,p,s,r,t,u,v,w,y,A,
E,q,F,G,M=d.dataset,J=d.datalabels,K=d.tracker;s=d.layerAboveDataset;var $,L;if(f.enabled)$=d.scroll=d.scroll||c.group("scroll").insertAfter(s),s=f.scrollRatio,b=H(b[V].xAxisScrollPos,f.startPercent),r=f.viewPortMax,t=f.viewPortMin,m=f.vxLength,u=La(m),v=f.buttonWidth,w=f.height,y=f.padding,A=f.color,E=f.flatScrollBars,m=f.windowedCanvasWidth=e.getAxisPosition(m),o=f.fullCanvasWidth=e.getAxisPosition(r-t)-m,p=z(b*o),q=a.fusionCharts.jsVars._reflowData,F={hcJSON:{_FCconf:{xAxisScrollPos:0}}},G=F.hcJSON._FCconf,
d.scroller=c.scroller(h-k,g+j+y,i+k*2,w,!0,{showButtons:!0,displayStyleFlat:E,buttonWidth:v,scrollRatio:s,scrollPosition:b},$).data("fullCanvasWidth",o).data("windowedCanvasWidth",m).attr({"scroll-display-style":E,fill:A}).scroll(function(b){p=-z(b*o);M&&M.transform(["T",p,0]);J&&J.transform(["T",p,0]);K&&K.transform(["T",p,0]);e.setOffset&&e.setOffset(p);scrollStateObj={position:b,direction:b-f.lastPos||0,vxLength:u};G.xAxisScrollPos=f.lastPos=b;I(q,F,!0);if(scrollStateObj.direction!==0)for(L=0;L<
a.datasets.length;L++)a[a.datasets[L].drawPlot+"Scroll"]&&a[a.datasets[L].drawPlot+"Scroll"].call(a,a.plots[L],a.datasets[L],scrollStateObj)});return f.enabled},finalizeScrollPlots:function(){var a=this,b=a.container,c=a.elements,d=a.layers,e=d.scroller,f=d.dataset,h=d.datalabels,d=d.tracker,j,k={},o,m=a.xAxis["0"]||{},p=(m.axisData||{}).scroll||{},s=H(a.options[V].xAxisScrollPos,p.startPercent),r=p.fullCanvasWidth;p.enabled&&(f.attr({"clip-rect":c["clip-canvas"]}),h.attr({"clip-rect":c["clip-canvas"]}),
d.attr({"clip-rect":c["clip-canvas"]}),c=function(b){var c=a.elements.canvas,d=j.left,f=j.top,h=b.type,n=i&&g.getTouchEvent(b)||Z,d=b.layerX||n.layerX||(b.pageX||n.pageX)-d,b=b.layerY||n.layerY||(b.pageY||n.pageY)-f;switch(h){case "dragstart":o=c.isPointInside(d,b);k.ox=o&&d||null;if(!o)return!1;break;case "dragend":o=!1;k={};break;default:if(!o)break;c=d-k.ox;k.ox=d;k.scrollPosition=e.attrs["scroll-position"]-c/r;e.attr({"scroll-position":k.scrollPosition})}},i&&(j=g.getPosition(b),b&&(P(b,"dragstart drag dragend",
c),K(b,"dragstart drag dragend",c))),s>0&&(b=-z(s*r),f&&f.transform(["T",b,0]),h&&h.transform(["T",b,0]),d&&d.transform(["T",b,0]),m.setOffset&&m.setOffset(b)))},drawPlotColumn:function(a,b,d){var e=this,g=a.data,i=g.length,j=a.items,k=a.graphics||(a.graphics=[]),o=e.paper,p=e.logic,t=e.layers,u=e.options,v=e.elements,w=u.chart,A=(u.tooltip||{}).enabled!==!1,E=e.definition.chart,F=u.plotOptions.series,I=e.xAxis[b.xAxis||0],G=e.yAxis[b.yAxis||0],D=G.axisData.reversed,y=p.isLog,ca=p.is3D,U=p.isStacked,
q=p.isWaterfall,J=p.isCandleStick,K=ha(I.axisData.scroll,{}),L=d||{},P=K.enabled,u=H(L.position,u[V].xAxisScrollPos,K.startPercent),Z=L.vxLength||La(K.vxLength),$=L.scrollStart||ua(0,z((i-Z)*u)-1)||0,L=L.scrollEnd||ta(i,$+Z+2)||i,K=w.canvasBorderOpacity=m.color(w.plotBorderColor).opacity,u=e.canvasBorderWidth,K=w.isCanvasBorder=K!==0&&u>0,S;c(p.name);var p=d!==R?0:isNaN(+F.animation)&&F.animation.duration||F.animation*1E3,X=b.numColumns||1,W=b.columnPosition||0,u=w.use3DLighting,Y=b.visible===!1?
"hidden":"visible",ba=w.overlapColumns,fa=I.getAxisPosition(0),fa=I.getAxisPosition(1)-fa,oa=E&&E.plotspacepercent,db=H(E&&E.plotpaddingpercent),E=F.groupPadding,N=F.maxColWidth,E=(1-oa*0.01)*fa||ta(fa*(1-E*2),N*X),oa=E/2;E/=X;var aa=ta(E-1,X>1?!ba&&db===R?4:db>0?E*db/100:0:0),W=W*E-oa+aa/2,Pa=G.max,Na=G.min,X=Pa>0&&Na>=0,ba=Pa<=0&&Na<0,db=Pa>0&&Na<0,oa=ba||D&&X?Pa:y||X?Na:0;S=G.yBasePos=G.getAxisPosition(oa);var N=H(w.useRoundEdges,0),ka=F.dataLabels.style,Ea=t.dataset=t.dataset||o.group("dataset-orphan"),
sa=t.datalabels=t.datalabels||o.group("datalabels").insertAfter(Ea),t=t.tracker,ya=e.canvasTop,Ha=e.canvasLeft,Ca=e.canvasWidth,za=e.canvasBottom,Ka=e.canvasRight,Ia,Ba,Va;parseInt(ka.lineHeight,10);var Sa,T,Ja,Ma,Oa,Qa;!d&&sa.hide();E-=aa;P&&$>L-Z-2&&($=ua(0,L-Z-2));if(U)Qa=Ea.shadows||(Ea.shadows=o.group("shadows",Ea).toBack());aa=Ea.column||(Ea.column=o.group("columns",Ea));!J&&!ca&&!P&&(aa.attrs["clip-rect"]||aa.attr({"clip-rect":v["clip-canvas"]}));q&&aa.toBack();if(ca){Ba=w.xDepth||0;Va=w.yDepth||
0;d=aa.negative=aa.negative||o.group("negative-values",aa);Z=aa.column=aa.column||o.group("positive-values",aa);Ma=aa.zeroPlane;if(!Ma&&Na<0&&Pa>=0)Ma=aa.zeroPlane=o.group("zero-plane",aa).insertBefore(Z),Ia=w.zeroPlaneColor,v.zeroplane=o.cubepath(Ha-Ba,S+Va,Ca,1,Ba,Va,Ma).attr({fill:[Ia,!u],stroke:"none","stroke-width":1});if(!(Ma=d.data("categoryplots")))d.data("categoryplots",Array(i)),Ma=d.data("categoryplots");if(!(Ia=Z.data("categoryplots")))Z.data("categoryplots",Array(i)),Ia=Z.data("categoryplots");
for(v=0;v<i;v+=1)Ma[v]=Ma[v]||o.group(d),Ia[v]=Ia[v]||o.group(Z)}else Oa=aa;for(v=$;v<L;v+=1){w=g[v];$=w.y;i=w.toolText;d=Z=null;if($===null){if(ka=j[v])d=ka.graphic,ca||d.attr({height:0})}else{Sa=!1;Na=H(w.x,v);T=w.link;Pa=s(w.borderWidth)||0;Ea=w._FCW*fa;Na=I.getAxisPosition(w._FCX)||I.getAxisPosition(Na)+W;ka=w.previousY;Ja=G.getAxisPosition(ka||oa);Ca=G.getAxisPosition($+(ka||0));aa=Fa(Ca-Ja);Ea=Ea||E;if(ca){$<0&&(Ca=Ja,Sa=!0);Oa=$<0?Ma:Ia;if(!(ka=j[v]))ka=j[v]={index:v,value:$,graphic:o.cubepath(Oa[v]),
dataLabel:null,tracker:null,hot:null};d=ka.graphic;d.attr({cubepath:[Na-Ba,S+Va,Ea,0,Ba,Va],fill:[f(w.color),!u],stroke:Pa&&f(w.borderColor)||"NONE","stroke-width":Pa,visibility:Y}).shadow(F.shadow&&w.shadow,Qa).animate({cubepath:[Na-Ba,Ca+Va,Ea,aa,Ba,Va]},p,"normal",function(){sa.show()}).data("BBox",{height:aa,width:Ea,x:Na,y:Ca});if(T||A){!U&&aa<h&&(Ca-=(h-aa)/2,aa=h);if(!ka.tracker)ka.tracker=o.cubepath(t);Z=ka.tracker;Z.attr({cubepath:[Na-Ba,Ca+Va,Ea,aa,Ba,Va],cursor:T?"pointer":"",stroke:Pa&&
r||"NONE","stroke-width":Pa,fill:r,ishot:!!T,visibility:Y}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(i).data("link",T);Z._.cubetop.click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(i).data("link",T);Z._.cubeside.click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(i).data("link",T)}U&&Sa&&(d.toBack(),Z&&Z.toBack())}else{Sa=!1;if(!y&&!D&&$<0||!y&&D&&$>0)Ca=Ja,Sa=!0;D&&!db&&$>0&&(Ca=Ja-aa,
Sa=!1);q&&$<0&&M(ka)&&(Ca-=aa,Sa=!0);!J&&!P&&(ia(Ca)<=ya&&(aa-=ya-Ca-+K,Ca=ya-+K),z(Ca+aa)>=za&&(aa-=z(Ca+aa)-za+ +!!Pa+ +K),Pa<=1&&(z(Na)<=Ha&&(Ea+=Na,Na=Ha-Pa/2+ +!!Pa-+K,Ea-=Na),z(Na+Ea)>=Ka&&(Ea=Ka-Na+Pa/2-+!!Pa+ +K)));Ja=m.crispBound(Na,Ca,Ea,aa,Pa);Na=Ja.x;Ca=Ja.y;Ea=Ja.width;aa=Ja.height;if(!J&&K&&(!M(ka)||q&&ka===$&&$===w._FCY))if(ba&&!D&&!y)S=Ca-(ya-Pa/2),aa+=S,S=Ca-=S;else if(y||X||D&&ba)aa=za-Ca+Pa/2,S=Ca+aa;q&&ka&&Pa>0&&F.connectorOpacity!==0&&F.connectorWidth===1&&F.connectorDashStyle&&
(aa-=1,$<0&&(Ca+=1));aa<=1&&(aa=1,Ca+=$<0?0:-aa);b._columnWidth=Ea;if(!(ka=j[v]))if(ka=j[v]={index:v,value:$,width:Ea,graphic:o.rect(Oa),valueBelowPlot:Sa,dataLabel:null,tracker:null},d=ka.graphic,d.attr({x:Na,y:S,width:Ea,height:0,r:N,fill:f(w.color),stroke:f(w.borderColor),"stroke-width":Pa,"stroke-dasharray":w.dashStyle,"stroke-linejoin":"miter",visibility:Y}).shadow(F.shadow&&w.shadow,Qa).animate({y:Ca,height:aa||1},p,"normal",function(){sa.show()}).data("BBox",Ja),T||A){if(!ka.tracker)ka.tracker=
o.rect(t);!U&&aa<h&&(Ca-=(h-aa)/2,aa=h);Z=ka.tracker;Z.attr({x:Na,y:Ca,width:Ea,height:aa,r:N,cursor:T?"pointer":"",stroke:r,"stroke-width":Pa,fill:r,ishot:!!T,visibility:Y}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(i).data("link",T)}}T=e.drawPlotColumnLabel(a,b,v,Na,Ca)}T&&k.push(T);d&&k.push(d);Z&&k.push(Z);e.drawTracker&&e.drawTracker.call(e,a,b,v)}a.visible=b.visible!==!1;return a},drawPlotColumnScroll:function(a,b,c){var d=a.data.length,e=a.items,f;
f=c.vxLength;var g=ua(0,z((d-f)*c.position)-1)||0,d=ta(d,g+f+2)||d;g>d-f-2&&(g=ua(0,d-f-2));c.scrollEnd=d;for(f=g;f<d;f++)if(!e[f]){c.scrollStart=f;this.drawPlotColumn(a,b,c);break}},drawPlotColumnLabel:function(a,b,c,d,e,f){var l;var d=this.options,g=this.logic,h=d.chart,i=this.paper,j=this.layers,d=d.plotOptions.series.dataLabels.style,k=h.rotateValues===1?270:0,o=this.canvasHeight,p=this.canvasTop,m=a.data[c],s=a.items[c],r=h.valuePadding+2,t=s.graphic,a=s.dataLabel,c=ha(s.valueBelowPlot,m.y<0),
u=g.isStacked,g=g.is3D,v=h.xDepth||0,w=h.yDepth||0,y=m.displayValue,b=b.visible===!1?"hidden":"visible",z=h.placeValuesInside,h=!1,f=f||j.datalabels;M(y)&&y!==A&&m.y!==null?(a?k&&a.rotate(360-k):(a=s.dataLabel=i.text().attr({text:y}).css(d),h=!0),j=a.getBBox(),t=t.data("BBox"),i=t.height,l=s=k?j.width:j.height,j=l,j+=r,r=s*0.5+r,t=t.x+t.width*0.5,o=c?p+o-(e+i):e-p,u?(e=e+i*0.5+(w||0),t-=v):z?i>=j?(e+=c?i-r:r,m._valueBelowPoint=1,g&&(t-=v,e+=w)):o>=j?(e+=c?i+r:-r,g&&c&&(t-=v,e+=w)):(e+=c?i-r:r,m._valueBelowPoint=
1,g&&(t-=v,e+=w)):o>=j?(e+=c?i+r:-r,g&&c&&(t-=v,e+=w)):(e+=c?i-r:r,m._valueBelowPoint=1,g&&(t-=v,e+=w)),a.attr({x:t,y:e,visibility:b}),k&&a.attr("transform","T0,0,R"+k),h&&f.appendChild(a),h&&ha(d.backgroundColor,d.borderColor)!==A&&a.attr({"text-bound":[d.backgroundColor,d.borderColor,1,2]})):a&&a.attr({text:A});return a},drawPlotFloatedcolumn:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotColumn3d:function(a,b){this.drawPlotColumn.call(this,a,b)},drawPlotBar:function(a,b){var d=this,
e=a.data,g=e.length,i=a.items,j=a.graphics=[],k=d.paper,o=d.logic,p=d.layers,t=d.options,u=d.elements,v=t.chart,w=(t.tooltip||{}).enabled!==!1,A,E=d.definition.chart,t=t.plotOptions.series,F=d.xAxis[b.xAxis||0],I=d.yAxis[b.yAxis||0],G=o.is3D,D=o.isStacked,y=v.canvasBorderOpacity=m.color(v.plotBorderColor).opacity,ca=d.canvasBorderWidth,y=v.isCanvasBorder=y!==0&&ca>0;c(o.name);var o=isNaN(+t.animation)&&t.animation.duration||t.animation*1E3,U=b.numColumns||1,q=b.columnPosition||0,ca=v.use3DLighting,
M=b.visible===!1?"hidden":"visible",J=v.overlapColumns,K=F.getAxisPosition(0),K=F.getAxisPosition(1)-K,L=E&&E.plotspacepercent,E=H(E&&E.plotpaddingpercent),Z=t.groupPadding,p=t.maxColWidth,L=(1-L*0.01)*K||ta(K*(1-Z*2),p*U),K=L/2;L/=U;var J=ta(L-1,U>1?!J&&E===R?4:E>0?L*E/100:0:0),U=L-J,q=q*L-K+J/2,$=I.max,P=I.min,J=$<0&&P<0?$:$>0&&P>0?P:0,E=I.getAxisPosition(J),K=H(v.useRoundEdges,0),S=d.canvasTop,L=d.canvasLeft,X=d.canvasHeight,Z=d.canvasRight,W,ha,V,Y,ba,N,aa,fa,ka,p=d.layers;ba=p.dataset=p.dataset||
k.group("dataset-orphan");var oa=p.datalabels=p.datalabels||k.group("datalabels").insertAfter(ba),p=p.tracker,Ea,ua,sa,ya,Ca;oa.hide();if(D)ya=ba.shadows||(ba.shadows=k.group("shadows",ba).toBack());aa=ba.column=ba.column||k.group("bars",ba);if(G){W=v.xDepth||0;ha=v.yDepth||0;ba=aa.negative=aa.negative||k.group("negative-values",aa);N=aa.column=aa.column||k.group("positive-values",aa);ua=aa.zeroPlane;if(!ua&&P<0&&$>=0)ua=aa.zeroPlane=k.group("zero-plane",aa).insertBefore(N),ka=v.zeroPlaneColor,u.zeroplane=
k.cubepath(E-W,S+ha,1,X,W,ha,ua).attr({fill:[ka,!ca],stroke:"none","stroke-width":0});if(!(ua=ba.data("categoryplots")))ba.data("categoryplots",Array(g)),ua=ba.data("categoryplots");if(!(ka=N.data("categoryplots")))N.data("categoryplots",Array(g)),ka=N.data("categoryplots");for(u=0;u<g;u+=1)ua[u]=ua[u]||k.group(ba),ka[u]=ka[u]||k.group(N)}else aa.attrs["clip-rect"]||aa.attr({"clip-rect":u["clip-canvas"]}),sa=aa;u=0;for(S=g-1;u<g;u+=1,S-=1){X=e[u];$=X.y;Ea=P=null;if($===null){if(Y=i[u])Ea=Y.graphic,
G||Ea.attr({width:0})}else{aa=H(X.x,u);ba=X.link;A=X.toolText;N=s(X.borderWidth)||0;aa=F.getAxisPosition(aa)+q;V=X.previousY;Y=I.getAxisPosition(V||J);fa=I.getAxisPosition($+(V||0));V=Fa(fa-Y);$>0&&(fa=Y);if(G){sa=$<0?ua:ka;if(!(Y=i[u]))Y=i[u]={index:u,value:$,graphic:k.cubepath(sa[S]),dataLabel:null,tracker:null};Ea=Y.graphic;Ea.attr({cubepath:[E-W,aa+ha,0,U,W,ha],fill:[f(X.color),!ca],stroke:N&&f(X.borderColor)||"NONE","stroke-width":N,"stroke-dasharray":X.dashStyle,cursor:ba?"pointer":"",visibility:M}).shadow(t.shadow&&
X.shadow,ya).animate({cubepath:[fa-W,aa+ha,V,U,W,ha]},o,"normal",function(){oa.show()}).data("BBox",{height:U,width:V,x:fa,y:aa});if(ba||w){!D&&V<h&&(fa-=(h-V)/2,V=h);if(!Y.tracker)Y.tracker=k.cubepath(p);P=Y.tracker;P.attr({cubepath:[fa-W,aa+ha,V,U,W,ha],cursor:ba?"pointer":"",stroke:N&&r||"NONE","stroke-width":N,fill:r,ishot:!!ba}).click(function(){var a=this.data("link");a&&d.linkClickFN.call({link:a},d)}).tooltip(A).data("link",ba);P._.cubetop.click(function(){var a=this.data("link");a&&d.linkClickFN.call({link:a},
d)}).tooltip(A).data("link",ba);P._.cubeside.click(function(){var a=this.data("link");a&&d.linkClickFN.call({link:a},d)}).tooltip(A).data("link",ba)}if(!D||D&&$<0)Ea.toBack(),P&&P.toBack()}else{ia(fa)<=L&&(V+=fa,fa=L-N/2+ +!!N-+y,v.xAxisLineVisible&&!y&&(fa-=1),V-=fa);z(fa+V)>=Z&&(fa-=N/2+ +!N,V=Z-fa+N/2-+!!N+ +y);Ca=m.crispBound(fa,aa,V,U,N);fa=Ca.x;aa=Ca.y;V=Ca.width;U=Ca.height;V<=1&&(V=1,fa+=$<0?-V:0);if(!(Y=i[u]))Y=i[u]={index:u,value:$,height:U,graphic:k.rect(sa),dataLabel:null,tracker:null};
Ea=Y.graphic;Ea.attr({x:E,y:aa,width:0,height:U,r:K,fill:f(X.color),stroke:f(X.borderColor),"stroke-width":N,"stroke-dasharray":X.dashStyle,"stroke-linejoin":"miter",cursor:ba?"pointer":"",visibility:M}).shadow(t.shadow&&X.shadow,ya).animate({x:fa,width:V||1},o,"normal",function(){oa.show()}).data("BBox",Ca);if(ba||w){!D&&V<h&&(fa-=(h-V)/2,V=h);if(!Y.tracker)Y.tracker=k.rect(p);P=Y.tracker;P.attr({x:fa,y:aa,width:V,height:U,r:K,cursor:ba?"pointer":"",stroke:r,"stroke-width":N,fill:r,ishot:!!ba}).click(function(){var a=
this.data("link");a&&d.linkClickFN.call({link:a},d)}).tooltip(A).data("link",ba)}}A=d.drawPlotBarLabel(a,b,u,fa,aa)}A&&j.push(A);Ea&&j.push(Ea);P&&j.push(P);d.drawTracker&&d.drawTracker.call(d,a,b,u)}a.visible=b.visible!==!1;return a},drawPlotBarLabel:function(a,b,c,d,e,f){var g=this.options,h=this.logic,i=g.chart,j=this.paper,k=this.layers,g=g.plotOptions.series.dataLabels.style,o=this.canvasLeft,p=this.canvasWidth,m=a.data[c],s=a.items[c],r=i.valuePadding+2,t=s.graphic,a=s.dataLabel,c=m.y<0,u=h.isStacked,
h=h.is3D,v=i.xDepth||0,w=i.yDepth||0,y=m.displayValue,b=b.visible===!1?"hidden":"visible",i=i.placeValuesInside,z=!1,f=f||k.datalabels;if(M(y)&&y!==A&&m.y!==null){if(!a)a=s.dataLabel=j.text(),z=!0;a.attr({text:y,title:m.originalText||"",fill:g.color}).css(g);j=a.getBBox();k=t.data("BBox");t=k.height;m=k.width;k=s=j.width;k+=r;e+=t*0.5;t=d+(c?0:m);r=s*0.5+r;d=c?d-o:o+p-(d+m);u?(t+=(c?m:-m)*0.5,t-=h?v:0,e+=h?w:0):(i?m>=k?(t+=c?r:-r,h&&(t-=v,e+=w)):(t+=c?-r:r,h&&c&&(t-=v)):d>=k?(t+=c?-r:r,h&&c&&(t-=
v,e+=v)):(t+=c?r:-r,h&&(t-=v,e+=w)),t>o+p&&(t=o+p-j.width*0.5-4),t<o&&(t=o+j.width*0.5+4));a.attr({x:t,y:e,visibility:b});z&&f.appendChild(a);z&&ha(g.backgroundColor,g.borderColor)!==A&&a.attr({"text-bound":[g.backgroundColor,g.borderColor,1,2]})}else a&&a.attr({text:A});return a},drawPlotBar3d:function(a,b){this.drawPlotBar.call(this,a,b)},drawPlotLine:function(a,b){var l;var e=this,g=e.paper,i=e.elements,j=e.options,k=j.chart,o=e.logic,p=j.plotOptions.series,t=a.items,u=a.graphics=a.graphics||[],
v,w=e.xAxis[b.xAxis||0],z=e.yAxis[b.yAxis||0],A=o.multisetRealtime||o.dragExtended,E=o.isWaterfall,F,I,G;F=0;var D=(j.tooltip||{}).enabled!==!1,y,j=isNaN(+p.animation)&&p.animation.duration||p.animation*1E3,J=k.xDepth||0,U=k.yDepth||0,q=k.series2D3Dshift,o=e.logic,M=b.step,K=b.drawVerticalJoins,L=b.useForwardSteps;c(o.name);var o=a.data,P=b.visible===!1?"hidden":"visible",Z,$=o.length,R=w.getAxisPosition(0);v=w.getAxisPosition(1)-R;var R=v*$,X=w.axisData.scroll||{},k=k.hasScroll||!1,ia=p.connectNullData,
S,W,V,ba,Y,N,aa=null,ha=p.connectorWidth=s(b.lineWidth),fa=b.color;p.connectorOpacity=m.color(fa).opacity;var ka,oa,ua=p.connectorDashStyle=b.dashStyle,sa,ya,Ca,za=e.layers;Z=za.dataset=za.dataset||g.group("dataset-orphan");var Ha=za.datalabels=za.datalabels||g.group("datalabels").insertAfter(Z),Ja=za.tracker,za=i["clip-canvas-init"].slice(0),i=i["clip-canvas"].slice(0),Ba=z.axisData.reversed;I=z.max;G=z.min;I=z.getAxisPosition(I>0&&G>0?!Ba?G:I:I<0&&G<0?!Ba?I:G:!Ba?0:I)+(q?U:0);var Ba=[],Fa,Ia,T,
Ka;z.yBasePos=I;if(E)F=(F=e.definition.chart)&&F.plotspacepercent,I=p.groupPadding,G=p.maxColWidth,F=(1-F*0.01)*v||ta(v*(1-I*2),G*1),F/=2;Ha.hide();Fa=Z.line||(Z.line=g.group("line-connector",Z));Ia=Z.anchors||(Z.anchors=g.group("line-anchors",Z));Ia.hide();T=Z.anchorShadows||(Z.anchorShadows=g.group("anchor-shadows",Z).toBack());T.hide();for(Z=0;Z<$;Z+=1){S=o[Z];Y=S.y;V=S.previousY||0;y=S.toolText;G=W=ya=I=null;v=t[Z]={index:Z,value:null,graphic:null,connector:null,dataLabel:null,shadowGroup:T,tracker:null};
if(Y===null)ia===0&&(aa=null);else{ba=H(S.x,Z);W=S.link;b.relatedSeries==="boxandwhisker"&&b.pointStart&&(ba+=b.pointStart);Y=z.getAxisPosition(Y+V)+(q?U:0);ba=w.getAxisPosition(ba)-J;ba=d(ba,ha,ha).position;Y=d(Y,ha,ha).position;if((sa=S.marker)&&sa.enabled)if(ya=sa.symbol.split("_"),Ca=ya[0]==="spoke"?1:0,V=sa.radius,l=v.graphic=g.polypath(ya[1]||2,ba,Y,V,sa.startAngle,Ca,Ia).attr({fill:f(sa.fillColor),"stroke-width":sa.lineWidth,stroke:f(sa.lineColor),cursor:W?"pointer":"",visibility:P}),ya=l,
W||D)V<h&&(V=h),I=v.tracker=g.circle(ba,Y,V,Ja).attr({cursor:W?"pointer":"",stroke:r,"stroke-width":sa.lineWidth,fill:r,ishot:!!W,visibility:P}).click(function(){var a=this.data("link");a&&e.linkClickFN.call({link:a},e)}).tooltip(y).data("link",W);Ka=Ka!==[f(S.color||fa),S.dashStyle||ua].join(":");if(aa!==null){if((A||E||!Ba.join(""))&&Ba.push("M",N,aa),E&&Ba.push("m",-F,0),M?L?(Ba.push("H",ba),E&&Ba.push("h",F),K?Ba.push("V",Y):Ba.push("m",0,Y-aa)):(K&&Ba.push("V",Y),Ba.push("M",N,Y,"H",ba)):Ba.push("L",
ba,Y),A||Ka)G=v.connector=g.path(Ba,Fa).attr({"stroke-dasharray":oa,"stroke-width":ha,stroke:ka,"stroke-linecap":"round","stroke-linejoin":ha>2?"round":"miter",visibility:P}).shadow(p.shadow&&S.shadow),Ba=[]}else!A&&Ba.push("M",ba,Y);W=v.dataLabel=e.drawPlotLineLabel(a,b,Z,ba,Y);N=ba;aa=Y;ka=f(S.color||fa);oa=S.dashStyle||ua;Ka=[ka,oa].join(":")}W&&u.push(W);ya&&u.push(ya);G&&u.push(G);I&&u.push(I);e.drawTracker&&e.drawTracker.call(e,a,b,Z)}!A&&Ba.join("")&&(G=g.path(Ba,Fa).attr({"stroke-dasharray":oa,
"stroke-width":ha,stroke:ka,"stroke-linecap":"round","stroke-linejoin":ha>2?"round":"miter",visibility:P}).shadow(p.shadow&&S.shadow))&&u.push(G);if(k)g=X.startPercent,i[2]=R+za[0],g===1&&(za[0]=i[2],i[0]=0);g=m.animation({"clip-rect":i},j,k?"easeIn":"normal",function(){Fa.attr({"clip-rect":null});T.show();Ia.show();Ha.show()});Fa.attr({"clip-rect":za}).animate(E?g.delay(j):g);a.visible=b.visible!==!1;return a},drawPlotArea:function(a,b){var l;var c=this,d=c.paper,e=c.options,g=e.chart,i=c.logic,
j=e.plotOptions.series,k=c.elements,o=a.items,p=a.graphics=a.graphics||[],m=c.xAxis[b.xAxis||0],s=c.yAxis[b.yAxis||0],t=s.axisData.reversed,u=g.xDepth||0,v=g.yDepth||0,w=i.isStacked,z=(e.tooltip||{}).enabled!==!1,A,e=isNaN(+j.animation)&&j.animation.duration||j.animation*1E3,D=g.series2D3Dshift,i=c.definition.chart.drawfullareaborder==="0",y=a.data,E=b.visible===!1?"hidden":"visible",F,q=y.length,I=m.getAxisPosition(0),I=(m.getAxisPosition(1)-I)*q,G=m.axisData.scroll||{},g=g.hasScroll||!1,J=j.connectNullData,
M,K,L,Z,P,S=s.max,R=s.min,X=s.getAxisPosition(S>0&&R<0?0:!t&&S>0&&R>=0?R:S)+(D?v:0),ia=null,W,ba,t=b.lineWidth,S=b.dashStyle,N=f(b.fillColor),R=f(b.lineColor),aa=0,Y,V,ha,fa=[],ka=[],oa=null,ta=[],sa=c.layers;F=sa.dataset=sa.dataset||d.group("dataset-orphan");var ua=sa.datalabels=sa.datalabels||d.group("datalabels").insertAfter(F),oa=sa.tracker,sa=k["clip-canvas-init"].slice(0),k=k["clip-canvas"].slice(0),ya,Fa,Ba,Ha,Ia;s.yBasePos=X;ua.hide();if(w)Ha=F.shadows||(F.shadows=d.group("shadows",F).toBack());
Fa=F.area=F.area||d.group("area",F);ya=F.arealine=F.arealine||d.group("area-connector",F);Ba=F.areaanchors=F.areaanchors||d.group("area-anchors",F);Ba.hide();for(F=0;F<q;F+=1){M=y[F];Z=M.y;A=H(M.x,F);W=m.getAxisPosition(A)-u;V=Ia=ha=null;if(Z===null)J===0&&(ia=null,aa>0&&(aa===1?fa.splice(-8,8):(fa=fa.concat(ka),fa.push("Z")),ka=[])),o[F]={chart:c,index:F,value:Z};else{K=M.link;A=M.toolText;L=M.previousY;P=(P=s.getAxisPosition(L)||null)||X;ba=s.getAxisPosition(Z+(L||0))+(D?v:0);if((Y=M.marker)&&Y.enabled)if(V=
Y.symbol.split("_"),L=Y.radius,V=d.polypath(V[1]||2,W,ba,L,Y.startAngle,0,Ba).attr({fill:f(Y.fillColor),"stroke-width":Y.lineWidth,stroke:f(Y.lineColor),cursor:K?"pointer":"",visibility:E}),K||z)!w&&L<h&&(L=h),ha=d.circle(W,ba,L,oa).attr({cursor:K?"pointer":"",stroke:r,"stroke-width":Y.lineWidth,fill:r,ishot:!!K,visibility:E}).click(function(){var a=this.data("link");a&&c.linkClickFN.call({link:a},c)}).tooltip(A).data("link",K);ia===null?(ta.push("M",W,",",ba),fa.push("M",W,",",P),aa=0):ta.push("L",
W,",",ba);fa.push("L",W,",",ba);ka.unshift("L",W,",",P);aa++;ia=ba;o[F]={chart:c,index:F,value:Z,graphic:V,dataLabel:Ia,tracker:ha};Ia=c.drawPlotLineLabel(a,b,F,W,ba)}Ia&&p.push(Ia);V&&p.push(V);ha&&p.push(ha);c.drawTracker&&c.drawTracker.call(c,a,b,F)}aa>0&&(aa===1?fa.splice(-8,8):(fa=fa.concat(ka),fa.push("Z")));(oa=a.graphic=d.path(fa,Fa).attr({fill:N,"stroke-dasharray":S,"stroke-width":i?0:t,stroke:R,"stroke-linecap":"round","stroke-linejoin":t>2?"round":"miter",visibility:E}).shadow(j.shadow&&
M.shadow,Ha))&&p.push(oa);if(g)j=G.startPercent,k[2]=I+sa[0],j===1&&(sa[0]=k[2],k[0]=0);j=Fa.attr({"clip-rect":sa}).animate({"clip-rect":k},e,g?"easeIn":"normal",function(){Fa.attr({"clip-rect":null});Ba.show();ua.show()});Ha&&Ha.attr({"clip-rect":sa}).animateWith(Fa,j,{"clip-rect":k},e,g?"easeIn":"normal",function(){Ha.attr({"clip-rect":null})});if(i)l=a.connector=d.path(ta,ya).attr({"stroke-dasharray":S,"stroke-width":t,stroke:R,"stroke-linecap":"round","stroke-linejoin":t>2?"round":"miter",visibility:E}),
d=l,ya.attr({"clip-rect":sa}).animateWith(Fa,j,{"clip-rect":k},e,g?"easeIn":"normal",function(){ya.attr({"clip-rect":null})}),d&&p.push(d);a.visible=b.visible!==!1;return a},drawPlotScatter:function(a,b){var l;var c=this,d=c.options,e=d.plotOptions.series,g=c.paper,i=c.elements,j=a.items,k=a.graphics=a.graphics||[],o=c.xAxis[b.xAxis||0],p=c.yAxis[b.yAxis||0],m=a.data,s=b.visible===!1?"hidden":"visible",t=(d.tooltip||{}).enabled!==!1,u,d=isNaN(+e.animation)&&e.animation.duration||e.animation*1E3,v,
w,z,A,D,y,F,E,q,I=b.lineWidth,G=I>0,H=b.color,M=b.dashStyle,J=e.connectNullData,K=[],L,Z,P,S,R=c.layers,W=R.dataset||(R.dataset=g.group("dataset-orphan")),ia=R.datalabels||(R.datalabels=g.group("datalabels").insertAfter(W)),X=R.tracker,N;ia.hide();R=W.line||(W.line=g.group("connector",W));W=W.anchor||(W.anchor=g.group("anchor",W));v=0;for(w=m.length;v<w;v+=1){z=m[v];L=z.marker;E=q=P=N=S=null;y=z.y;D=z.x;if(y!==null&&D!==null){if(L&&L.enabled&&(A=z.link,u=z.toolText,Z=L.radius,q=p.getAxisPosition(y),
E=o.getAxisPosition(D),P=L.symbol.split("_"),P=g.polypath(P[1]||2,E,q,Z,L.startAngle,0,W).attr({fill:f(L.fillColor),"stroke-width":L.lineWidth,stroke:f(L.lineColor),cursor:A?"pointer":"",visibility:s}).shadow(e.shadow&&z.shadow),A||t))Z<h&&(Z=h),S=g.circle(E,q,Z,X).attr({cursor:A?"pointer":"",stroke:r,"stroke-width":L.lineWidth,fill:r,ishot:!!A}).tooltip(u).data("link",A).click(function(){var a=this.data("link");a&&c.linkClickFN.call({link:a},c)});G&&((F===void 0||F===null&&J===0)&&E&&q&&K.push("M",
E,",",q),E&&q&&K.push("L",E,",",q),F=q);j[v]={index:v,x:D,y:y,value:y,graphic:P,dataLabel:N,tracker:S};N=c.drawPlotLineLabel(a,b,v,E,q)}else G&&J===0&&(F=null),j[v]={chart:c,index:v,x:D,y:y};N&&k.push(N);P&&k.push(P);S&&k.push(S);c.drawTracker&&c.drawTracker.call(c,a,b,v)}if(K.length)l=a.graphic=g.path(K,R).attr({"stroke-dasharray":M,"stroke-width":I,stroke:H,"stroke-linecap":"round","stroke-linejoin":I>2?"round":"miter",visibility:s}).shadow(e.shadow&&z.shadow),e=l,R.attr({"clip-rect":i["clip-canvas-init"]}).animate({"clip-rect":i["clip-canvas"]},
d,"normal"),k.push(e);W.attr({opacity:0}).animate({opacity:1},d,"normal",function(){ia.show()});a.visible=b.visible!==!1;return a},drawPlotLineLabel:function(b,c,d,e,f,g){var h=this.options,i=h.chart,j=this.paper,k=this.layers,h=h.plotOptions.series.dataLabels.style,o=i.rotateValues===1?270:0,p=this.canvasHeight,m=this.canvasTop,s=b.data,r=s[d],t=b.items[d],u=a(r.valuePosition,"auto").toLowerCase(),b=this.logic.defaultSeriesType,i=i.valuePadding+2,c=c.visible===!1?"hidden":"visible",v=!1,w=t.dataLabel,
g=g||k.datalabels;switch(u){case "above":d=0;break;case "below":d=1;break;default:k=s[d-1]||{},s=s[d+1]||{},d=!d?0:k.y>r.y?1:(k.y==null&&s.y)>r.y?1:0}k=r.displayValue;if(M(k)&&k!==A){w?o&&w.rotate(360-o):(w=t.dataLabel=j.text().attr({text:k}).css(h),v=!0);w.attr({title:r.originalText||"",fill:h.color});j=w.getBBox();t=k=o?j.width:j.height;t+=i;j=f-m;p=m+p-f;t+=4;m=k*0.5+i;if(!/bubble/i.test(b))if(d)p>t?(f+=m,r._valueBelowPoint=1):j>t&&(f-=m);else if(j>t)f-=m;else if(p>t)f+=m,r._valueBelowPoint=1;
w.attr({x:e,y:f,visibility:c});o&&w.attr("transform","T0,0,R"+o);v&&g.appendChild(w);v&&ha(h.backgroundColor,h.borderColor)!==A&&w.attr({"text-bound":[h.backgroundColor,h.borderColor,1,2]})}else w&&w.attr({text:A});return w},drawLabels:function(){for(var a=this.paper,b=this.options,c=(b=b.labels&&b.labels.items&&b.labels.items)&&b.length,d=this.layers.layerAboveDataset,e=this.elements.quadran||(this.elements.quadran=[]),f=this.canvasTop,g=this.canvasLeft,h={right:"end",left:"start",undefined:"start"},
i,j;c--;)j=b[c],i=j.style,M(j.html)&&j.html!==A&&(e[c]=a.text(d).attr({text:j.html,x:parseInt(i.left,10)+g,y:parseInt(i.top,10)+f,fill:i.color,"text-anchor":h[j.textAlign],"vertical-align":j.vAlign}).css(i))}},X["renderer.root"]);X("renderer.piebase",{drawCaption:function(){var l;var a=this.options.chart,b=this.options.title,c=this.options.subtitle,d=this.paper,e=this.elements,f=this.layers,g=f.caption,h=e.caption,i=e.subcaption,j=b&&b.text,k=c&&c.text,o=d.width/2,p=b.x,m=c&&c.x;if((j||k)&&!g)g=f.caption=
d.group("caption"),f.tracker?g.insertBefore(f.tracker):g.insertAfter(f.dataset);if(j){if(!h)h=e.caption=d.text(g);if(p===void 0)p=o,b.align="middle";h.css(b.style).attr({text:b.text,fill:b.style.color,x:p,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":"top",visibility:"visible",title:b.originalText||""})}else if(h)l=e.caption=h.remove(),h=l;if(k){if(!i)i=e.subcaption=d.text(g);if(m===void 0)m=o,c.align="middle";i.css(c.style).attr({text:c.text,title:c.originalText||"",fill:c.style.color,
x:m,y:j?h.attrs.y+h.getBBox().height+2:b.y||a.spacingTop||0,"text-anchor":c.align||"middle","vertical-align":"top",visibility:"visible"})}else if(i)e.subcaption=i.remove();if(!j&&!k&&g)f.caption=g.remove()},redrawDataLabels:function(a){var b=a.elements.plots[0];a.placeDataLabels(!0,b.items,b);return{}},plotGraphicClick:function(){var a=this.graphic&&this||this.data("plotItem"),b=a.seriesData,c=a.chart,d,e,f,g,h,i,j;if(!b.isRotating&&!b.singletonCase)return d=a.graphic,e=a.connector,f=a.dataLabel,
b=a.sliced,g=a.slicedTranslation,h=a.connectorPath,i=(b?-1:1)*a.transX,j=(b?-1:1)*a.transY,d.animate({transform:b?"t0,0":g},200,"easeIn"),f&&f.x&&f.animate({x:f.x+(b?0:i)},200,"easeIn"),h&&(h[1]+=i,h[2]+=j,h[4]+=i,h[6]+=i,e.animate({path:h},200,"easeIn")),b=a.sliced=!b,a={hcJSON:{series:[]}},a.hcJSON.series[0]={data:[]},I(c.logic.chartInstance.jsVars._reflowData,a,!0),b},plotDragStart:function(a,b,c){var d=this.data("plotItem"),e=d.chart,d=d.seriesData;if(e.options.series[0].enableRotation)a=Qa.call(c,
a,b,d.pieCenter,d.chartPosition),d.dragStartAngle=a,e._pierotateActive=!0},plotDragEnd:function(){var a=this.data("plotItem"),b=a.chart,c={hcJSON:{series:[{startAngle:-b.datasets[0].startAngle*180/Xa}]}};b.disposed||(I(b.logic.chartInstance.jsVars._reflowData,c,!0),b.rotate(a.seriesData,b.options.series[0]));setTimeout(function(){a.seriesData.isRotating=!1},0)},plotDragMove:function(a,b,c,d,e){var a=this.data("plotItem"),f=a.chart,g=a.seriesData,h=f.options.series;if(h[0].enableRotation&&!g.singletonCase&&
(g.isRotating=!0,c=Qa.call(e,c,d,g.pieCenter,g.chartPosition),h[0].startAngle+=c-g.dragStartAngle,g.dragStartAngle=c,g.moveDuration=0,c=(new Date).getTime(),!g._lastTime||g._lastTime+g.timerThreshold<c))setTimeout(function(){f.rotate(g,h[0])},0),g._lastTime=c},plotMouseDown:function(){this.data("plotItem").seriesData.isRotating=!1},plotMouseUp:function(){var a=this.data("plotItem"),b=a.chart,c=a.seriesData;!c.isRotating&&b.linkClickFN.call({link:c.data[a.index].link},b);m._supportsTouch&&!c.isRotating&&
b.plotGraphicClick.call(a)},legendClick:function(a,b,c){var d=a.chart;d.elements.plots[0].isRotating=!1;d.plotGraphicClick.call(a.graphic);c!==!0&&(eventArgs={datasetName:a.label,datasetIndex:a.originalIndex,id:a.userID,visible:b,label:a.label,value:a.value,percentValue:a.percentage,tooltext:a.toolText,link:a.link,sliced:!a.sliced},j.raiseEvent("legenditemclicked",eventArgs,d.logic.chartInstance))},placeDataLabels:function(){var a=function(a,b){return a.point.value-b.point.value},b=function(a,b){return a.angle-
b.angle},c=["start","start","end","end"],d=[-1,1,1,-1],e=[1,1,-1,-1];return function(f,g,h,i){var j=this.options.plotOptions,o=j.pie,p=this.canvasLeft+this.canvasWidth*0.5,m=this.canvasTop+this.canvasHeight*0.5,s=this.smartLabel,r=j.series.dataLabels,t=r.style,j=H(La(parseFloat(t.lineHeight)),12),u=k(r.placeInside,!1),v=r.skipOverlapLabels,w=r.manageLabelOverflow,z=r.connectorPadding,y=r.distance;k(r.softConnector,!0);var A=i&&i.metrics||[p,m,o.size,o.innerSize||0],F=A[1],q=A[0],i=A[2]*0.5,E=[[],
[],[],[]],I=this.canvasLeft,G=this.canvasTop,o=this.canvasWidth,y=h.labelsRadius||(h.labelsRadius=i+y),m=p=parseInt(t.fontSize,10),L=m/2,z=[z,z,-z,-z],h=h.labelsMaxInQuadrant||(h.labelsMaxInQuadrant=eb(y/m)),r=r.isSmartLineSlanted,A=A[3]/2,M,J,K,Z,P,R,S,ia,X,ba,N,aa,Y,V,ha;f||s.setStyle(t);if(g.length==1&&!A){if(A=g[0],(V=A.dataLabel)&&V.show(),A.slicedTranslation=[I,G],V)V.attr({visibility:Ha,align:"middle",transform:"t"+q+","+(F+L-2)}),V.x=q}else if(u){var oa=A+(i-A)/2;W(g,function(a){(V=a.dataLabel)&&
V.show();if(V){var b=a.angle;N=F+oa*sa(b)+L-2;S=q+oa*fa(b);V.x=S;V._x=S;V.y=N;if(a.sliced)a=a.slicedTranslation,b=a[1]-G,S+=a[0]-I,N+=b;V.attr({visibility:Ha,align:"middle",transform:"t"+S+","+N})}})}else{W(g,function(a){(V=a.dataLabel)&&V.show();V&&(aa=a.angle%ka,aa<0&&(aa=ka+aa),ha=aa>=0&&aa<Ya?1:aa<Xa?2:aa<Wa?3:0,E[ha].push({point:a,angle:aa}))});for(g=f=4;g--;){if(v&&(t=E[g].length-h,t>0)){E[g].sort(a);u=E[g].splice(0,t);t=0;for(Z=u.length;t<Z;t+=1)A=u[t].point,A.dataLabel.attr({visibility:"hidden"}),
A.connector&&A.connector.attr({visibility:"hidden"})}E[g].sort(b)}g=ua(E[0].length,E[1].length,E[2].length,E[3].length);Y=ua(ta(g,h)*m,y+m);E[1].reverse();for(E[3].reverse();f--;){u=E[f];Z=u.length;v||(m=Z>h?Y/Z:p,L=m/2);A=Z*m;t=Y;for(g=0;g<Z;g+=1,A-=m)K=Fa(Y*sa(u[g].angle)),t<K?K=t:K<A&&(K=A),t=(u[g].oriY=K)-m;M=c[f];Z=Y-(Z-1)*m;t=0;for(g=u.length-1;g>=0;g-=1,Z+=m){A=u[g].point;aa=u[g].angle;P=A.sliced;V=A.dataLabel;K=Fa(Y*sa(aa));K<t?K=t:K>Z&&(K=Z);t=K+m;X=(K+u[g].oriY)/2;K=q+e[f]*y*fa(ya.asin(X/
Y));X*=d[f];X+=F;ba=F+i*sa(aa);R=q+i*fa(aa);(f<2&&K<R||f>1&&K>R)&&(K=R);S=K+z[f];N=X-L-2;ia=S+z[f];V.x=ia;V._x=ia;w&&(J=f>1?ia-this.canvasLeft:this.canvasLeft+o-ia,J=s.getSmartText(A.labelText,J,j),V.attr({text:J.text,title:J.tooltext||""}));V.y=N;if(P)P=A.transX,J=A.transY,S+=P,K+=P,R+=P,ba+=J,ia+=P;V.attr({visibility:Ha,"text-anchor":M,vAlign:"middle",x:ia,y:X});if(ia=A.connector)A.connectorPath=A=["M",R,ba,"L",r?K:R,X,S,X],ia.attr({path:A,visibility:Ha})}}}}}()},X["renderer.root"])}]);
(function(){var j=FusionCharts(["private","modules.renderer.js-interface"]);if(j!==void 0){var g=j.hcLib,m=j.renderer.getRenderer("javascript"),X=g.hasModule,w=g.loadModule,J=g.moduleCmdQueue,Y=g.executeWaitingCommands,b=g.injectModuleDependency,A=g.moduleDependencies,e=g.getDependentModuleName,r=g.eventList={loaded:"FC_Loaded",dataloaded:"FC_DataLoaded",rendered:"FC_Rendered",drawcomplete:"FC_DrawComplete",resized:"FC_Resized",dataxmlinvalid:"FC_DataXMLInvalid",nodatatodisplay:"FC_NoDataToDisplay",
exported:"FC_Exported"};g.raiseEvent=function(b,e,g,m,w,z){var A=r[b];j.raiseEvent(b,e,g,w,z);A&&typeof window[A]==="function"&&setTimeout(function(){window[A].apply(window,m)},0)};var z=function(b){var m,r,w,z={},A;for(m in j.core.items)if(m=j.core.items[m],w=m.chartType(),(r=m.jsVars)&&r.waitingModule&&m.__state.rendering&&g.needsModule(b,w))r.waitingModuleError=!0,r=e(w).concat(r.userModules),r.length&&(r=r[r.length-1],z[r]=g.moduleCmdQueue[r]);for(A in z)Y(z[A]);j.raiseError(j.core,"11171116151",
"run","HC-interface~renderer.load","Unable to load required modules and resources: "+b)},oa=function(b,e,g){j.hcLib.createChart(b,e,"stub",g,b.jsVars.msgStore.ChartNotSupported)};A.charts=j.extend(A.charts||{},{column2d:0,column3d:0,bar2d:0,bar3d:0,pie2d:0,pie3d:0,line:0,bar2d:0,area2d:0,doughnut2d:0,doughnut3d:0,pareto2d:0,pareto3d:0,mscolumn2d:0,mscolumn3d:0,msline:0,msarea:0,msbar2d:0,msbar3d:0,stackedcolumn2d:0,marimekko:0,stackedcolumn3d:0,stackedarea2d:0,stackedcolumn2dline:0,stackedcolumn3dline:0,
stackedbar2d:0,stackedbar3d:0,msstackedcolumn2d:0,mscombi2d:0,mscombi3d:0,mscolumnline3d:0,mscombidy2d:0,mscolumn3dlinedy:0,stackedcolumn3dlinedy:0,msstackedcolumn2dlinedy:0,scatter:0,bubble:0,ssgrid:0,scrollcolumn2d:0,scrollcolumn3d:0,scrollline2d:0,scrollarea2d:0,scrollstackedcolumn2d:0,scrollcombi2d:0,scrollcombidy2d:0,zoomline:0});A.powercharts=j.extend(A.powercharts||{},{spline:0,splinearea:0,msspline:0,mssplinearea:0,multiaxisline:0,multilevelpie:0,waterfall2d:0,msstepline:0,inversemsline:0,
inversemscolumn2d:0,inversemsarea:0,errorbar2d:0,errorscatter:0,errorline:0,logmsline:0,logmscolumn2d:0,radar:0,dragnode:0,candlestick:0,selectscatter:0,dragcolumn2d:0,dragline:0,dragarea:0,boxandwhisker2d:0,kagi:0,heatmap:0});A.widgets=j.extend(A.widgets||{},{angulargauge:0,bulb:0,cylinder:0,drawingpad:0,funnel:0,hbullet:0,hled:0,hlineargauge:0,vlineargauge:0,pyramid:0,realtimearea:0,realtimecolumn:0,realtimeline:0,realtimelinedy:0,realtimestackedarea:0,realtimestackedcolumn:0,sparkcolumn:0,sparkline:0,
sparkwinloss:0,thermometer:0,vbullet:0,gantt:0,vled:0});A.maps=j.extend(A.maps||{},{});j.extend(m,{render:function(r,s){var w=this.chartType(),z=this.jsVars,A=this.__state,P=g.chartAPI,Y;Y=e(w).concat(z.userModules);if(z.isResizing)z.isResizing=clearTimeout(z.isResizing);z.hcObj&&z.hcObj.destroy&&z.hcObj.destroy();if(P[w]){if(P[A.lastRenderedType]&&A.lastRenderedType!==w)for(var H in P[A.lastRenderedType].eiMethods)delete this[H];A.lastRenderedType=w;A.lastRenderedSrc=this.src;delete z.waitingModule;
delete z.waitingModuleError;delete z.drLoadAttempted;j.hcLib.createChart(this,r,w,s)}else{if(X(Y))if(z.drLoadAttempted){j.raiseError(this,11112822001,"run","HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");oa(this,r,s);return}else b(w)&&(Y=e(w).concat(z.userModules)),z.drLoadAttempted=!0;else if(Y.length){if(z.waitingModuleError){oa(this,r,s);delete z.waitingModule;delete z.waitingModuleError;return}}else{oa(this,r,s);return}(w=J[Y[Y.length-1]])?(w.push({cmd:"render",
obj:this,args:arguments}),z.waitingModule||(j.hcLib.createChart(this,r,"stub",void 0,z.msgStore.PBarLoadingText||z.msgStore.LoadingText),m.load.call(this))):(j.raiseError(this,12080515551,"run","HC-interface~renderer.render","Unregistered module in dependentModule definition."),j.hcLib.createChart(this,r,"stub",void 0,z.msgStore.RenderChartErrorText))}},update:function(b){var e=this.ref,g=this.jsVars;g.hcObj&&g.hcObj.destroy&&g.hcObj.destroy();if(g.isResizing)g.isResizing=clearTimeout(g.isResizing);
b.error===void 0?(delete g.stallLoad,delete g.loadError,this.isActive()&&(this.src!==this.__state.lastRenderedSrc?this.render():j.hcLib.createChart(this,g.container,g.type))):(this.isActive()&&typeof e.showChartMessage==="function"&&e.showChartMessage("InvalidXMLText"),delete g.loadError)},resize:function(b){var e=this.ref,g,m=this.jsVars;if(e&&e.resize){if(m.isResizing)m.isResizing=clearTimeout(m.isResizing);m.isResizing=setTimeout(function(){g=j.normalizeCSSDimension(b.width,b.height,e);if(b.width!==
void 0)e.style.width=g.width;if(b.height!==void 0)e.style.height=g.height;e.resize();delete m.isResizing},0)}},dispose:function(){var b;b=this.jsVars;var e=b.hcObj||{};if(b.isResizing)b.isResizing=clearTimeout(b.isResizing);b.instanceAPI&&b.instanceAPI.dispose&&b.instanceAPI.dispose();if(b=this.ref)j.purgeDOM(b),b.parentNode&&b.parentNode.removeChild(b);g.cleanupWaitingCommands(this);return e&&e.destroy&&e.destroy()},load:function(){var b=this.jsVars,m=this.chartType(),r=j.hcLib.chartAPI[m],m=e(m).concat(b.userModules),
A=m[m.length-1];if(r||!m||m&&m.length===0)delete b.waitingModule;else if(!b.waitingModule)b.waitingModule=!0,delete b.waitingModuleError,w(m,function(){delete b.waitingModule;Y(g.moduleCmdQueue[A])},z,this)}})}})();