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

 @version 3.5.0

 @attributions (infers respective third-party copyrights)
 Raphael 2.1.0 (modified as 'Red Raphael') <http://raphaeljs.com/license.html>
 JSON v2 <http://www.JSON.org/js.html>
 Firebug Lite 1.3.0 <http://getfirebug.com/firebuglite>
*/
(function(){if(!window.FusionCharts||!window.FusionCharts.version){var d=window,m=d.document,D=d.navigator,v={window:d},n=v.modules={},c=v.interpreters={},K=Object.prototype.toString,b=/msie/i.test(D.userAgent)&&!d.opera,H=/loaded|complete/,a=!1,z=function(){var a=v.ready;v.ready=!0;v.raiseEvent&&(v.readyNotified=!0,v.raiseEvent("ready",{version:v.core.version,now:!a},v.core));v.readyNow=!a},G=function(a,c){var b,e;if(c instanceof Array)for(b=0;b<c.length;b+=1)"object"!==typeof c[b]?a[b]=c[b]:("object"!==
typeof a[b]&&(a[b]=c[b]instanceof Array?[]:{}),G(a[b],c[b]));else for(b in c)"object"===typeof c[b]?(e=K.call(c[b]),"[object Object]"===e?("object"!==typeof a[b]&&(a[b]={}),G(a[b],c[b])):"[object Array]"===e?(a[b]instanceof Array||(a[b]=[]),G(a[b],c[b])):a[b]=c[b]):a[b]=c[b];return a};v.extend=function(a,c,b,e){var h;b&&a.prototype&&(a=a.prototype);if(!0===e)G(a,c);else for(h in c)a[h]=c[h];return a};v.uniqueId=function(){return"chartobject-"+(v.uniqueId.lastId+=1)};v.uniqueId.lastId=0;v.policies=
{options:{chartTypeSourcePath:["typeSourcePath",""],product:["product","v3"],insertMode:["insertMode","replace"],safeMode:["safeMode",!0],overlayButton:["overlayButton",void 0],containerBackgroundColor:["containerBackgroundColor","#ffffff"],containerBackgroundOpacity:["containerBackgroundOpacity",1],containerClassName:["containerClassName","fusioncharts-container"],chartType:["type",void 0],baseChartMessageFont:["baseChartMessageFont","Verdana,sans"],baseChartMessageFontSize:["baseChartMessageFontSize",
"10"],baseChartMessageColor:["baseChartMessageColor","#666666"],dataLoadStartMessage:["dataLoadStartMessage","Retrieving data. Please wait."],dataLoadErrorMessage:["dataLoadErrorMessage","Error in loading data."],dataInvalidMessage:["dataInvalidMessage","Invalid data."],dataEmptyMessage:["dataEmptyMessage","No data to display."],typeNotSupportedMessage:["typeNotSupportedMessage","Chart type not supported."],loadMessage:["loadMessage","Loading chart. Please wait."],renderErrorMessage:["renderErrorMessage",
"Unable to render chart."]},attributes:{lang:["lang","EN"],id:["id",void 0]},width:["width","400"],height:["height","300"],src:["swfUrl",""]};c.stat="swfUrl id width height debugMode registerWithJS backgroundColor scaleMode lang detectFlashVersion autoInstallRedirect".split(" ");v.parsePolicies=function(a,c,b){var e,h,l;for(h in c)if(v.policies[h]instanceof Array)l=b[c[h][0]],a[h]=void 0===l?c[h][1]:l;else for(e in"object"!==typeof a[h]&&(a[h]={}),c[h])l=b[c[h][e][0]],a[h][e]=void 0===l?c[h][e][1]:
l};v.parseCommands=function(a,b,g){var e,h;"string"===typeof b&&(b=c[b]||[]);e=0;for(h=b.length;e<h;e++)a[b[e]]=g[e];return a};v.registrars={module:function(){return v.core.apply(v.core,arguments)}};v.core=function(a){if(!(this instanceof v.core)){if(1===arguments.length&&a instanceof Array&&"private"===a[0]){if(n[a[1]])return;n[a[1]]={};a[3]instanceof Array&&(v.core.version[a[1]]=a[3]);return"function"===typeof a[2]?a[2].call(v,n[a[1]]):v}if(1===arguments.length&&"string"===typeof a)return v.core.items[a];
v.raiseError&&v.raiseError(this,"25081840","run","",new SyntaxError('Use the "new" keyword while creating a new FusionCharts object'))}var b={};this.__state={};1===arguments.length&&"object"===typeof arguments[0]?b=arguments[0]:v.parseCommands(b,c.stat,arguments);1<arguments.length&&"object"===typeof arguments[arguments.length-1]&&(delete b[c.stat[arguments.length-1]],v.extend(b,arguments[arguments.length-1]));this.id="undefined"===typeof b.id?this.id=v.uniqueId():b.id;this.args=b;v.core.items[this.id]instanceof
v.core&&v.raiseWarning(this,"06091847","param","",Error('A FusionChart oject with the specified id "'+this.id+'" already exists. Renaming it to '+(this.id=v.uniqueId())));v.parsePolicies(this,v.policies,b);this.attributes.id=this.id;this.resizeTo&&this.resizeTo(b.width,b.height,!0);this.chartType&&this.chartType(b.type||b.swfUrl,!0);v.raiseEvent("beforeInitialize",b,this);v.core.items[this.id]=this;v.core.defaultOptions=v.core.options;v.raiseEvent("initialized",b,this);return this};v.core.prototype=
{};v.core.prototype.constructor=v.core;v.extend(v.core,{id:"FusionCharts",version:["3","5","0"],items:{},options:{},getObjectReference:function(a){return v.core.items[a].ref},register:function(a){return v.registrars[a=a&&a.toString&&a.toString().toLowerCase()]&&v.registrars[a].apply(v.core,Array.prototype.slice.call(arguments,1))}});d.FusionCharts=v.core;d.FusionMaps&&d.FusionMaps.legacy&&(v.core(["private","modules.core.geo",d.FusionMaps.legacy,d.FusionMaps.version]),a=!0);H.test(m.readyState)||
m.loaded?(v.ready=!0,setTimeout(z,1)):function(){function c(){arguments.callee.done||(arguments.callee.done=!0,g&&clearTimeout(g),a||(d.FusionMaps&&d.FusionMaps.legacy&&v.core(["private","modules.core.geo",d.FusionMaps.legacy,d.FusionMaps.version]),d.FusionMaps=v.core),setTimeout(z,1))}function A(){H.test(m.readyState)?c():g=setTimeout(A,10)}var g,e;m.addEventListener?m.addEventListener("DOMContentLoaded",c,!1):m.attachEvent&&d.attachEvent("onLoad",c);if(b)try{"https:"===d.location.protocol?m.write('<script id="__ie_onload_fusioncharts" defer="defer" src="//:">\x3c/script>'):
m.write('<script id="__ie_onload_fusioncharts" defer="defer" src="javascript:void(0)">\x3c/script>'),e=m.getElementById("__ie_onload_fusioncharts"),e.onreadystatechange=function(){"complete"==this.readyState&&c()}}catch(h){}/WebKit/i.test(D.userAgent)&&(g=setTimeout(A,10));d.onload=function(a){return function(){c();a&&a.call&&a.call(d)}}(d.onload)}();d.FusionMaps=v.core}})();
FusionCharts.register("module",["private","modules.mantle.errormanager",function(){var d=this,m=d.window,D={type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"},v=function(c,n,b,H,a,z){var G="#"+n+" "+(c?c.id:"unknown-source")+H+" "+z+" >> ";a instanceof Error?(a.name=D[b],a.module="FusionCharts"+H,a.level=z,a.message=G+a.message,G=a.message,m.setTimeout(function(){throw a;
},0)):G+=a;n={id:n,nature:D[b],source:"FusionCharts"+H,message:G};d.raiseEvent(z,n,c);if("function"===typeof m["FC_"+z])m["FC_"+z](n)},n;d.raiseError=function(c,d,b,n,a){v(c,d,b,n,a,"Error")};d.raiseWarning=function(c,d,b,n,a){v(c,d,b,n,a,"Warning")};n={outputHelpers:{text:function(c,d){n.outputTo("#"+c.eventId+" ["+(c.sender.id||c.sender).toString()+'] fired "'+c.eventType+'" event. '+("error"===c.eventType||"warning"===c.eventType?d.message:""))},event:function(c,d){this.outputTo(c,d)},verbose:function(c,
d){n.outputTo(c.eventId,c.sender.id,c.eventType,d)}},outputHandler:function(c,m){"function"!==typeof n.outputTo?d.core["debugger"].outputFailed=!0:(d.core["debugger"].outputFailed=!1,n.currentOutputHelper(c,m))},currentOutputHelper:void 0,outputTo:void 0,enabled:!1};n.currentOutputHelper=n.outputHelpers.text;d.extend(d.core,{"debugger":{syncStateWithCharts:!0,outputFormat:function(c){return c&&"function"===typeof c.toLowerCase&&"function"===typeof n.outputHelpers[c=c.toLowerCase()]?(n.currentOutputHelper=
n.outputHelpers[c],!0):!1},outputTo:function(c){"function"===typeof c?n.outputTo=c:null===c&&(d.core["debugger"].enable(!1),delete n.outputTo)},enable:function(c,m,b){var H;"object"===typeof c&&1===arguments.length&&(H=c,c=H.state,m=H.outputTo,b=H.outputFormat);"function"===typeof c&&("string"!==typeof m||2!==arguments.length&&!H||(b=m),m=c,c=!0);if("boolean"===typeof c&&c!==n.enabled)d.core[(n.enabled=c)?"addEventListener":"removeEventListener"]("*",n.outputHandler);"function"===typeof m&&(n.outputTo=
m);d.core["debugger"].outputFormat(b);return n.enabled},enableFirebugLite:function(){var c;m.console&&m.console.firebug?d.core["debugger"].enable(m.console.log,"verbose"):((c=m.document.getElementsByTagName("html"))&&c[0].setAttribute("debug","true"),d.loadScript("https://getfirebug.com/firebug-lite.js#overrideConsole=false,startOpened=true",function(){d.core["debugger"].enable(m.console.log,"verbose")},"{ startOpened: true }",!0,!0))}},debugMode:{enabled:function(){m.setTimeout(function(){throw Error("Deprecated! Please use FusionCharts.debugger.enable instead.");
},0);return d.core["debugger"].enable.apply(d.core["debugger"],arguments)}}},!1)}]);
FusionCharts.register("module",["private","modules.mantle.eventmanager",function(){var d=this,m=d.window,D=d.core,v=m.Object.prototype.toString,n=v.call([]),c=function(a,c,b,g){try{a[0].call(c,b,g||{})}catch(e){setTimeout(function(){throw e;},0)}},K=function(a,b,A){if(a instanceof Array)for(var g=0,e;g<a.length;g+=1){if(a[g][1]===b.sender||void 0===a[g][1])e=a[g][1]===b.sender?b.sender:d.core,c(a[g],e,b,A),!0===b.detached&&(a.splice(g,1),g-=1,b.detached=!1);if(!0===b.cancelled)break}},b={unpropagator:function(){return!1===
(this.cancelled=!0)},detacher:function(){return!1===(this.detached=!0)},undefaulter:function(){return!1===(this.prevented=!0)},listeners:{},lastEventId:0,addListener:function(a,c,A){var g,e;if(v.call(a)===n){g=[];for(e=0;e<a.length;e+=1)g.push(b.addListener(a[e],c,A));return g}if("string"!==typeof a)d.raiseError(A||d.core,"03091549","param","::EventTarget.addListener",Error("Unspecified Event Type"));else if("function"!==typeof c)d.raiseError(A||d.core,"03091550","param","::EventTarget.addListener",
Error("Invalid Event Listener"));else return a=a.toLowerCase(),b.listeners[a]instanceof Array||(b.listeners[a]=[]),b.listeners[a].push([c,A]),c},removeListener:function(a,c,A){var g;if("function"!==typeof c)d.raiseError(A||d.core,"03091560","param","::EventTarget.removeListener",Error("Invalid Event Listener"));else if(a instanceof Array)for(g=0;g<a.length;g+=1)b.removeListener(a[g],c,A);else if("string"!==typeof a)d.raiseError(A||d.core,"03091559","param","::EventTarget.removeListener",Error("Unspecified Event Type"));
else if(a=a.toLowerCase(),a=b.listeners[a],a instanceof Array)for(g=0;g<a.length;g+=1)a[g][0]===c&&a[g][1]===A&&(a.splice(g,1),g-=1)},triggerEvent:function(a,c,A,g,e,h){if("string"!==typeof a)d.raiseError(c,"03091602","param","::EventTarget.dispatchEvent",Error("Invalid Event Type"));else{a=a.toLowerCase();var l={eventType:a,eventId:b.lastEventId+=1,sender:c||Error("Orphan Event"),cancelled:!1,stopPropagation:this.unpropagator,prevented:!1,preventDefault:this.undefaulter,detached:!1,detachHandler:this.detacher};
K(b.listeners[a],l,A);K(b.listeners["*"],l,A);switch(l.prevented){case !0:if("function"===typeof h)try{h.call(g||c||m,l,A||{})}catch(N){setTimeout(function(){throw N;},0)}break;default:if("function"===typeof e)try{e.call(g||c||m,l,A||{})}catch(z){setTimeout(function(){throw z;},0)}}return!0}}},H=d.raiseEvent=function(a,c,A,g,e,h){return b.triggerEvent(a,A,c,g,e,h)},a=d.legacyEventList={},z={};d.disposeEvents=function(a){var c,A;for(c in b.listeners)for(A=0;A<b.listeners[c].length;A+=1)b.listeners[c][A][1]===
a&&b.listeners[c].splice(A,1)};d.raiseEventWithLegacy=function(c,b,A,g,e,h,l){var d=a[c];H(c,b,A,e,h,l);d&&"function"===typeof m[d]&&setTimeout(function(){m[d].apply(e||m,g)},0)};d.raiseEventGroup=function(a,c,b,g,e,h,l){var d=g.id,w=a+d;z[w]?(clearTimeout(z[w]),delete z[w]):d&&w?z[w]=setTimeout(function(){H(c,b,g,e,h,l);delete z[w]},0):H(c,b,g,e,h,l)};d.addEventListener=function(a,c){return b.addListener(a,c)};d.removeEventListener=function(a,c){return b.removeListener(a,c)};d.extend(D,{addEventListener:function(a,
c){return b.addListener(a,c)},removeEventListener:function(a,c){return b.removeListener(a,c)},ready:function(a,c,b){d.ready?(D.ready=function(a,e){"function"===typeof a&&setTimeout(function(){a.call(e||D,c||D)},0)},D.ready(a,b)):"function"===typeof a&&D.addEventListener("ready",function(){D.ready(a,c,b)});return this}});D.on=D.addEventListener;d.extend(D.prototype,{addEventListener:function(a,c){return b.addListener(a,c,this)},removeEventListener:function(a,c){return b.removeListener(a,c,this)}});
D.prototype.on=D.prototype.addEventListener;d.policies.options.events=["events",{}];d.addEventListener("beforeInitialize",function(a){a=a.sender;var c=a.options.events,b;if(c)for(b in c)"function"===typeof c[b]&&a.addEventListener(b,c[b])});d.ready&&!d.readyNotified&&(d.readyNotified=!0,d.raiseEvent("ready",{version:d.core.version,now:d.readyNow},d.core))}]);
FusionCharts.register("module",["private","modules.mantle.ajax",function(){var d=this,m=d.window,D=parseFloat(m.navigator.appVersion.split("MSIE")[1]),v=5.5<=D&&7>=D?!0:!1,n="file:"===m.location.protocol,c=m.ActiveXObject,K=(!c||!n)&&m.XMLHttpRequest,b={objects:0,xhr:0,requests:0,success:0,failure:0,idle:0},H=function(){var a;if(K)return H=function(){b.xhr++;return new K},H();try{a=new c("Msxml2.XMLHTTP"),H=function(){b.xhr++;return new c("Msxml2.XMLHTTP")}}catch(d){try{a=new c("Microsoft.XMLHTTP"),
H=function(){b.xhr++;return new c("Microsoft.XMLHTTP")}}catch(n){a=!1}}return a};d.core.ajax={stats:function(a){return a?b[a]:d.extend({},b)},headers:{"If-Modified-Since":"Sat, 29 Oct 1994 19:43:31 GMT","X-Requested-With":"XMLHttpRequest","X-Requested-By":"FusionCharts",Accept:"text/plain, */*","Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}};D=d.ajax=function(a,c){this.onSuccess=a;this.onError=c;this.open=!1;b.objects++;b.idle++};d.extend(D.prototype,{headers:d.core.ajax.headers,
transact:function(a,c,G,L){var A=this,g=A.xmlhttp,e=A.headers,h=A.onError,l=A.onSuccess;a="POST"===a;var N,w;if(!g||v)g=H(),A.xmlhttp=g;g.onreadystatechange=function(){try{4===g.readyState&&(!g.status&&n||200<=g.status&&300>g.status||304===g.status||1223===g.status||0===g.status?(l&&l(g.responseText,A,L,c),b.success++):h&&(h(Error("XmlHttprequest Error"),A,L,c),b.failure++),b.idle--,A.open=!1)}catch(a){h&&h(a,A,L,c),m.FC_DEV_ENVIRONMENT&&setTimeout(function(){throw a;},0),b.failure++}};try{g.open(a?
"POST":"GET",c,!0);g.overrideMimeType&&g.overrideMimeType("text/plain");if(a)if("string"===typeof G)N=G;else{N=[];for(w in G)N.push(w+"="+(G[w]+"").replace(/\=/g,"%3D").replace(/\&/g,"%26"));N=N.join("&")}else N=null;for(w in e)g.setRequestHeader(w,e[w]);g.send(N);b.requests++;b.idle++;A.open=!0}catch(p){d.raiseError(d.core,"1110111515A","run","XmlHttprequest Error",p.message)}return g},get:function(a,c){return this.transact("GET",a,void 0,c)},post:function(a,c,b){return this.transact("POST",a,c,
b)},abort:function(){var a=this.xmlhttp;this.open=!1;return a&&"function"===typeof a.abort&&a.readyState&&0!==a.readyState&&a.abort()},dispose:function(){this.open&&this.abort();delete this.onError;delete this.onSuccess;delete this.xmlhttp;delete this.open;b.objects--;return null}})}]);
FusionCharts.register("module",["private","modules.mantle.runtime;1.1",function(){var d=this,m=d.window,D=/(^|[\/\\])(fusioncharts\.js)([\?#].*)?$/ig,v=/[\\\"<>;&]/,n=/^[^\S]*?(sf|f|ht)(tp|tps):\/\//i,c={},K={},b={},H={},a=d.purgeDOM=function(c){var b=c.attributes,g,e;if(b)for(g=b.length-1;0<=g;g-=1)e=b[g].name,"function"===typeof c[e]&&(c[e]=null);if(b=c.childNodes)for(b=b.length,g=0;g<b;g+=1)a(c.childNodes[g])},z=function(a,c,b){var e,h;for(e in a)if(a[e]instanceof Array)c[a[e][0]]=b[e];else for(h in a[e])c[a[e][h][0]]=
b[e][h]},G=/^(FusionCharts|FusionWidgets|FusionMaps)/;d.getScriptBaseUri=function(a){var c=m.document.getElementsByTagName("script"),b=c.length,e,h;for(h=0;h<b;h+=1)if(e=c[h].getAttribute("src"),void 0!==e&&null!==e&&null!==e.match(a))return e.replace(a,"$1")};d.core.options.scriptBaseUri=function(){var a=d.getScriptBaseUri(D);return void 0===a?(d.raiseError(FusionCharts,"1603111624","run",">GenericRuntime~scriptBaseUri","Unable to locate FusionCharts script source location (URL)."),""):a}();d.isXSSSafe=
function(a,c){return c&&null!==n.exec(a)?!1:null===v.exec(a)};d.xssEncode=function(a){return null===a||void 0===a||"function"!==typeof a.toString?"":a=a.toString().replace(/&/g,"&amp;").replace(/\'/g,"&#39;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")};d.loadScript=function(a,A,g,e,h){if(!a)return!1;var l=A&&A.success||A,N=A&&A.failure,w,p={type:"script",success:!1},R=function(){H[w]=clearTimeout(H[w]);p.success?l&&l(a,w):N&&N(a,w);d.raiseEvent("externalresourceload",p,d.core)};
h=h?"":d.core.options.scriptBaseUri;w=h+a;d.isXSSSafe(w,!1)||(w="function"===typeof m.encodeURIComponent?m.encodeURIComponent(w):m.escape(w));p.path=h;p.src=w;p.file=a;if(!0===b[w]&&e)return p.success=!0,p.notReloaded=!0,"function"===typeof A&&(A(),d.raiseEvent("externalresourceload",p,d.core)),!0;if(c[w]&&e)return!1;c[w]=!0;K[w]&&K[w].parentNode&&K[w].parentNode.removeChild(K[w]);A=K[w]=m.document.createElement("script");A.type="text/javascript";A.src=w;g&&(A["\v"==="v"?"text":"innerHTML"]=g);"function"===
typeof l&&(b[w]=!1,H[w]=clearTimeout(H[w]),A.onload=function(){b[w]=!0;p.success=!0;R()},A.onerror=function(){b[w]=!1;c[w]=!1;R()},A.onreadystatechange=function(){if("complete"===this.readyState||"loaded"===this.readyState)b[w]=!0,p.success=!0,R()});m.document.getElementsByTagName("head")[0].appendChild(A);"function"===typeof N&&(H[w]=setTimeout(function(){b[w]||R()},d.core.options.html5ResourceLoadTimeout||15E3));return!0};d.capitalizeString=function(a,c){return a?a.replace(c?/(^|\s)([a-z])/g:/(^|\s)([a-z])/,
function(a,c,b){return c+b.toUpperCase()}):a};d.extend(d.core,{clone:function(a,c){var b=typeof a,e,h=d.extend({},this.args,!1,!1);z(d.policies,h,this);z(d.renderer.getRendererPolicy(this.options.renderer),h,this);delete h.id;delete h.animate;delete h.stallLoad;e=h.link;h=d.extend({},h,!1,!1);h.link=e;switch(b){case "object":d.extend(h,a);break;case "boolean":c=a}return c?h:new d.core(h)},isActive:function(){if(!this.ref||m.document.getElementById(this.id)!==this.ref)return!1;try{return G.test(this.ref.signature())}catch(a){return!1}},
chartType:function(a,c){var b=this.src,e=!0===c,h=this.options,l;"string"===typeof a&&(c="object"===typeof c?c:{},b=a.replace(/[\?\#][\s\S]*$/g,""),l=null!==b.match(/\.swf\s*?$/ig),b=b.replace(/\.swf\s*?$/ig,""),h.chartType=b.replace(/^[\s\S]*\//ig,"").replace(/^fcmap_/i,""),h.chartTypeSourcePath=-1===b.indexOf("/")?c.chartTypeSourcePath||this.options.chartTypeSourcePath||d.core.options.chartTypeSourcePath||"":b.replace(/[^\/]*?$/ig,""),this.src=((d.core.options.scriptBaseUri||"")+(h.chartTypeSourcePath||
d.core.options.chartTypeSourcePath||"")).replace(/\/\s*$/g,"")+"/"+h.chartType.replace(/\.swf\s*?$/ig,"")+".swf",l&&(d.raiseWarning(this,"08101320181","comp","FusionCharts#chartType",'Chart type has ".swf" in alias and as such has been deprecated. Please use chart type alias.'),h.chartTypeSourcePath=d.core.options.chartTypeSourcePath||""),void 0!==c.dataSource&&null!==c.dataSource?this.setChartData(c.dataSource,c.dataFormat,c.dataConfiguration):this.isActive()&&!e&&this.render());return(h.chartType||
"").toLowerCase()}},!0);m.getChartFromId=function(a){d.raiseWarning(this,"11133001041","comp","GenericRuntime~getObjectFromId()",'Use of deprecated getChartFromId() or getMapFromId(). Replace with "FusionCharts()" or FusionCharts.items[].');return d.core.items[a]instanceof d.core?d.core.items[a].ref:m.swfobject&&m.swfobject.getObjectById(a)};m.getMapFromId=m.getChartFromId}]);
FusionCharts.register("module",["private","api.printmanager",function(){var d=this;d.extend(d.core,{printManager:{configure:function(){d.raiseWarning(d.core,"28141714","impl",".printManager.configure","PrintManager is deprecated")},isReady:function(){d.raiseWarning(d.core,"28141714","impl",".printManager.isReady","PrintManager is deprecated");return!1},enabled:function(){d.raiseWarning(d.core,"28141714","impl",".printManager.enabled","PrintManager is deprecated");return!1},managedPrint:function(){d.raiseWarning(d.core,
"28141714","impl",".printManager.managedPrint","PrintManager is deprecated")}}},!1)}]);
FusionCharts.register("module",["private","modules.interface.renderer",function(){var d=this,m=d.window,D=m.document,v=function(){d.raiseError(this,"25081845","run","::RendererManager",Error("No active renderer"))},n=d.FusionChartsDOMInsertModes={REPLACE:"replace",APPEND:"append",PREPEND:"prepend"},c={undefined:{render:v,remove:v,update:v,resize:v,config:v,policies:{}}},K={},b=function(a){return function(){var c=this.ref;if(void 0===c||null===c||"function"!==typeof c[a])d.raiseError(this,"25081617",
"run","#"+a+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return c[a].apply(c,arguments)}},H=function(a,c){return"function"===typeof a[c]?function(){return a[c].apply(a,arguments)}:a[c]},a=function(a,c){var b=D.getElementById(a),e=c.id||c.getAttribute("id"),h,l;if(null===b)return!1;if(a===e)return!0;e=c.getElementsByTagName("*");h=0;for(l=e.length;h<l;h++)if(e[h]===b)return!1;return!0},z=/[^\%\d]*$/ig,G;d.policies.options.containerElementId=["renderAt",void 0];
d.policies.options.renderer=["renderer",void 0];d.normalizeCSSDimension=function(a,c,b){a=void 0===a?b.offsetWidth||parseFloat(b.style.width):a;c=void 0===c?b.offsetHeight||parseFloat(b.style.height):c;var e={},h=b.style,l;h.width=a=a.toString?a.toString():"0";h.height=c=c.toString?c.toString():"0";if((e.widthIsRelative=a.match(/^\s*\d*\.?\d*\%\s*$/)&&!a.match(/^\s*0\%\s*$/))&&0===b.offsetWidth)for(l=b;l=l.offsetParent;)if(0<l.offsetWidth){a=(l.offsetWidth*parseFloat(a.match(/\d*/)[0])/100).toString();
break}if((e.heightIsRelative=c.match(/^\s*\d*\.?\d*\%\s*$/)&&!c.match(/^\s*0\%\s*$/))&&20>=b.offsetHeight)for(l=b;l=l.offsetParent;)if(0<l.offsetHeight){c=(l.offsetHeight*parseFloat(c.match(/\d*/)[0])/100).toString();break}e.width=a.replace?a.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):a;e.height=c.replace?c.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):c;h.width=e.width;h.height=e.height;e.pixelWidth=e.widthIsRelative?b.offsetWidth:parseInt(e.width,10)||0;e.pixelHeight=e.heightIsRelative?b.offsetHeight:parseInt(e.height,
10)||0;return e};G=d.renderer={register:function(a,b){if(!a||"function"!==typeof a.toString)throw Error("#03091436 ~renderer.register() Invalid value for renderer name.");a=a.toString().toLowerCase();if(void 0!==c[a])return d.raiseError(d.core,"03091438","param","::RendererManager>register",'Duplicate renderer name specified in "name"'),!1;c[a]=b;return!0},userSetDefault:!1,setDefault:function(a){if(!a||"function"!==typeof a.toString)return d.raiseError(d.core,"25081731","param","::RendererManager>setDefault",
'Invalid renderer name specified in "name"'),!1;if(void 0===c[a=a.toString().toLowerCase()])return d.raiseError(d.core,"25081733","range","::RendererManager>setDefault","The specified renderer does not exist."),!1;this.userSetDefault=!1;d.policies.options.renderer=["renderer",a];return!0},notifyRender:function(a){var c=d.core.items[a&&a.id];c&&(!1!==a.success||a.silent)||d.raiseError(d.core.items[a.id],"25081850","run","::RendererManager",Error("There was an error rendering the chart. Enable FusionCharts JS debugger for more information."));
if(c.ref=a.ref)a.ref.FusionCharts=d.core.items[a.id];d.raiseEvent("internal.DOMElementCreated",{},c)},protectedMethods:{options:!0,attributes:!0,src:!0,ref:!0,constructor:!0,signature:!0,link:!0,addEventListener:!0,removeEventListener:!0},getRenderer:function(a){return c[a]},getRendererPolicy:function(a){a=c[a].policies;return"object"===typeof a?a:{}},currentRendererName:function(){return d.policies.options.renderer[1]},update:function(a){K[a.id].update.apply(a,Array.prototype.slice.call(arguments,
1))},render:function(a){K[a.id].render.apply(a,Array.prototype.slice.call(arguments,1))},remove:function(a){K[a.id].remove.apply(a,Array.prototype.slice.call(arguments,1))},resize:function(a){K[a.id].resize.apply(a,Array.prototype.slice.call(arguments,1))},config:function(a){K[a.id].config.apply(a,Array.prototype.slice.call(arguments,1))},dispose:function(a){K[a.id].dispose.apply(a,Array.prototype.slice.call(arguments,1))}};d.addEventListener("beforeInitialize",function(a){a=a.sender;var b=a.options.renderer.toLowerCase(),
g;"string"===typeof a.options.renderer&&void 0===c[b]&&(a.options.renderer=d.policies.options.renderer[1]);a.options.renderer=b;K[a.id]=c[a.options.renderer];!0!==K[a.id].initialized&&"function"===typeof K[a.id].init&&(K[a.id].init(),K[a.id].initialized=!0);d.parsePolicies(a,K[a.id].policies||{},a.args);for(g in K[a.id].prototype)a[g]=K[a.id].prototype[g];for(g in K[a.id].events)a.addEventListener(g,K[a.id].events[g])});d.addEventListener(["rendered","dataloaderror","nodatatodisplay","rendercancelled"],
function(a,c){var b=a.sender;b instanceof d.core&&b.__state.rendering&&(d.raiseEvent("internal.rendered",c,b),delete b.__state.rendering)});d.addEventListener("loaded",function(a){var c=a.sender;a=a.sender.ref;var g,e;if(void 0!==a&&null!==a&&"function"===typeof a.getExternalInterfaceMethods){try{g=a.getExternalInterfaceMethods(),g="string"===typeof g?g.split(","):[]}catch(h){g=[],d.raiseError(c,"13111126041","run","RendererManager^Loaded",Error("Error while retrieving data from the chart-object."+
(h.message&&0<=h.message.indexOf("NPObject")?" Possible cross-domain security restriction.":"")))}for(a=0;a<g.length;a+=1)e=g[a],void 0===c[e]&&(c[e]=b(e));if(c.ref)for(e in g=G.protectedMethods,a=G.getRenderer(c.options.renderer).protectedMethods,c)if(a&&!g[e]&&!a[e]&&void 0===c.ref[e])try{c.ref[e]=H(c,e)}catch(l){}}});d.legacyEventList.resized="FC_Resized";d.extend(d.core.prototype,{render:function(c,b,g){var e=this,h,l,N;if((N=m[this.id])&&N.FusionCharts&&N.FusionCharts===this||(N=this.ref)&&N.FusionCharts&&
N.FusionCharts===this)d.renderer.dispose(this),N===m[this.id]&&(m[this.id]=void 0);void 0!==m[this.id]&&d.raiseError(this,"25081843","comp",".render",Error("#25081843:IECompatibility() Chart Id is same as a JavaScript variable name. Variable naming error. Please use unique name forchart JS variable, chart-id and container id."));g?"function"!==typeof g&&(g=void 0):"function"===typeof b?(g=b,b=void 0):b||"function"!==typeof c||(g=c,c=void 0);b=(b||this.options.insertMode).toLowerCase()||n.REPLACE;
void 0===c&&(c=this.options.containerElementId);"string"===typeof c&&(c=D.getElementById(c));if(void 0===c||null===c)return d.raiseError(this,"03091456","run",".render()",Error("Unable to find the container DOM element.")),this;if(a(this.id,c))return d.raiseError(this,"05102109","run",".render()",Error("A duplicate object already exists with the specific Id: "+this.id)),this;h=D.createElement(this.options.containerElementType||"span");h.setAttribute("id",this.id);if("append"!==b&&"prepend"!==b)for(;c.hasChildNodes();)c.removeChild(c.firstChild);
"prepend"===b&&c.firstChild?c.insertBefore(h,c.firstChild):c.appendChild(h);this.options.containerElement=c;this.options.containerElementId=c.id;if(b=h.style)b.position="relative",b.textAlign="left",b.lineHeight="normal",b.display="inline-block",b.zoom="1",b.fontWeight="normal",b.fontVariant="normal",b.fontStyle="normal",b.textDecoration="none",b["*DISPLAY"]="inline",b.padding="0",b.margin="0",b.border="none";this.options.containerClassName&&(h.className=this.options.containerClassName);b=d.normalizeCSSDimension(this.width,
this.height,h);this.__state.renderedWidth=b.pixelWidth;this.__state.renderedHeight=b.pixelHeight;this.__state.rendering=!0;d.raiseEvent("beforeRender",l={container:c,width:this.width,height:this.height,renderer:this.options.renderer},this,void 0,function(a,c){d.renderer.render(e,h,function(){d.renderer.notifyRender.apply(this,arguments);if(g)try{g.call(a.sender,c.container)}catch(b){setTimeout(function(){throw b;})}})},function(){d.raiseEvent("renderCancelled",l,e)});return this},remove:function(){d.renderer.remove(this);
return this},resizeTo:function(a,c,b){var e=this,h=e.width,l=e.height,N=e.__state;"object"===typeof a&&(b=c,c=a.h,a=a.w);a=null===a||void 0===a?h:a.toString().replace(z,"");c=null===c||void 0===c?l:c.toString().replace(z,"");!0!==b?d.raiseEvent("beforeresize",{currentWidth:h,currentHeight:l,newWidth:a,newHeight:c},e,void 0,function(){e.width=a;e.height=c;d.renderer.resize(e,{width:a,height:c});d.raiseEventWithLegacy("resized",{width:e.width,height:e.height,prevWidth:h,prevHeight:l,pixelWidth:e.ref&&
e.ref.offsetWidth||0,pixelHeight:e.ref&&e.ref.offsetHeight||0,originalWidth:N.renderedWidth,originalHeight:N.renderedHeight},e,[e.id,e.width,e.height])},function(){d.raiseEvent("resizecancelled",{currentWidth:h,currentHeight:l,cancelledTargetWidth:a,cancelledTargetHeight:c},e)}):(e.width=a,e.height=c);return this},dispose:function(){var a=this,c={};d.raiseEvent("beforeDispose",c,a,void 0,function(){d.renderer.dispose(a);d.raiseEvent("disposed",c,a);d.disposeEvents(a);delete d.core.items[a.id];for(var b in a)a.hasOwnProperty(b)&&
delete a[b];a.disposed=!0},function(){d.raiseEvent("disposeCancelled",c,a)})},configure:function(a,c){var b;a&&("string"===typeof a?(b={},b[a]=c):b=a,d.renderer.config(this,b))}});d.extend(d.core,{setCurrentRenderer:function(){var a=G.setDefault.apply(G,arguments);G.userSetDefault=!0;return a},getCurrentRenderer:function(){return G.currentRendererName.apply(G,arguments)},render:function(a,c){return a instanceof d.core?(a.render(c),a):(new d.core(a)).render(c)}},!1)}]);
FusionCharts.register("module",["private","modules.interface.transcoder",function(){var d=this,m=d.window,D=d.transcoders={},v={},n={},c=/url$/i,K=d._interactiveCharts={selectscatter:[!0,!1],dragcolumn2d:[!0,!0],dragarea:[!0,!0],dragline:[!0,!0],dragnode:[!0,!0]},b=function(c,b,l,g){var w=l.obj;l=l.args;l.dataSource=c;l.xmlHttpRequestObject=b;l.source="XmlHttpRequest";l.url=g;d.raiseEvent("dataLoadRequestCompleted",l,w,void 0,a,z)},H=function(a,c,b){var g=b.obj;b=b.args;b.error=a;b.httpStatus=c.xhr&&
c.xhr.status?c.xhr.status:-1;b.xmlHttpRequestObject=c;d.raiseEvent("dataLoadError",b,g);"function"===typeof m.FC_DataLoadError&&m.FC_DataLoadError(g.id,b)},a=function(a,c){a.sender.setChartData(c.dataSource,c.dataFormat,c.config,c.successcallback,c.silent)},z=function(a,c){d.raiseEvent("dataLoadCancelled",c,a.sender);c.xmlHttpRequestObject.abort()},G=function(a,c){var l=a.sender,g=l.__state,w=c.url;l.options.dataSource=c.url;g.dhmXhrObj||(g.dhmXhrObj=new d.ajax(b,H));g.dhmXhrObj.get("function"===
typeof m.decodeURIComponent?m.decodeURIComponent(w):m.unescape(w),{obj:l,args:c})},L=function(a,c){var b=a.sender,g=b.__state;d.raiseEvent("dataLoadRequestCancelled",c,b);g&&g.dhmXhrObj&&g.dhmXhrObj.abort()},A=function(a,c){var b=a.sender,g=b.__state,w=b.id;v[w]=c;n[w]&&delete n[w];n[w]={};g.dataReady=void 0;g.dataAvailable=!0;!0!==c.silent&&(!0!==b.options.safeMode||!0!==g.rendering||b.isActive()?(delete g.args,d.renderer.update(b,c)):(g.updatePending=c,d.raiseWarning(b,"23091255","run","::DataHandler~update",
"Renderer update was postponed due to async loading.")));d.raiseEvent("dataUpdated",c,b,void 0,c.successcallback)},g=function(a,c){d.raiseEvent("dataUpdateCancelled",c,a.sender,void 0,c.failurecallback)};d.dataFormats={};d.policies.options.dataSource=["dataSource",void 0];d.policies.options.dataFormat=["dataFormat",void 0];d.policies.options.dataConfiguration=["dataConfiguration",void 0];d.policies.options.showDataLoadingMessage=["showDataLoadingMessage",!1];d.addDataHandler=function(a,c){if("string"!==
typeof a||void 0!==D[a.toLowerCase()])d.raiseError(d.core,"03091606","param","::DataManager.addDataHandler",Error("Invalid Data Handler Name"));else{var b={},g=a.toLowerCase();D[g]=c;c.name=a;b["set"+a+"Data"]=function(c,b,h){return this.setChartData(c,a,b,h)};c.transportable&&(b["set"+a+"Url"]=function(c,b,h){return this.setChartDataUrl(c,a,b,h)},d.dataFormats[a+"URL"]=g+"Url");b["get"+a+"Data"]=function(){return this.getChartData(a)};d.dataFormats[a]=g;d.extend(d.core,b,!0)}};d.extend(d.core.prototype,
{setChartDataUrl:function(a,b,l,g,A){if(void 0===b||null===b||"function"!==typeof b.toString)b=this.options.dataFormat,d.raiseWarning(this,"03091609","param","FusionCharts#setChartDataUrl","Invalid Data Format. Reverting to current data format - "+b);b=b.toString().toLowerCase();b=c.test(b)?b.slice(0,-3):b;d.raiseEvent("dataLoadRequested",{source:"XmlHttpRequest",url:a,dataFormat:b,silent:!!A,config:l,successcallback:g},this,void 0,G,L)},setChartData:function(a,b,l,z,w){var p=this.options,R,t;if(void 0===
b||null===b||"function"!==typeof b.toString)b=p.dataFormat,d.raiseWarning(this,"03091610","param","FusionCharts#setChartData","Invalid Data Format. Reverting to current data format - "+b);b=b.toString().toLowerCase();c.test(b)?this.setChartDataUrl(a,b,l,z,w):(p.dataSource=a,R=b,p.dataFormat=b,t=D[R],"undefined"===typeof t?d.raiseError(d.core,"03091611","param","FusionCharts#setChartData",Error("Data Format not recognized")):(b=(b=d.renderer&&d.renderer.getRenderer(p.renderer||d.renderer.currentRendererName()))&&
b.dataFormat,l=b===R?t.passthrough?t.passthrough(a,l):{data:a}:t.encode(a,this,l||p.dataConfiguration)||{},l["native"]=b===R,l.format=l["native"]?b:"xml",l.dataFormat=R,l.dataSource=a,l.silent=!!w,"function"===typeof z&&(l.successcallback=z),d.raiseEvent("beforeDataUpdate",l,this,void 0,A,g)))},getChartData:function(a,c){var b=this.options,g=this.id,z;if(void 0===a||"function"!==typeof a.toString||void 0===(z=D[a=a.toString().toLowerCase()]))d.raiseError(this,"25081543","param","::transcoder~getChartData()",
Error('Unrecognized data-format specified in "format"'));else return n[g][a]?b=n[g][a]:v[g]?(a===v[g].format?n[g][a]=v[g]:(n[g].xml||(n[g].xml="xml"===v[g].format?v[g]:D[v[g].format].encode(v[g].data,this,b.dataConfiguration)),n[g][a]||(n[g][a]=z.decode(n[g].xml.data,this,b.dataConfiguration))),b=n[g][a]):b={error:Error("Data not defined")},!0===Boolean(c)?b:b.data},dataReady:function(a){return a?this.__state.dataAvailable:this.__state.dataReady}});d.extend(d.core,{transcodeData:function(a,c,b,g,
z){if(c&&"function"===typeof c.toString&&b&&"function"===typeof b.toString&&void 0!==D[b=b.toString().toLowerCase()]&&void 0!==D[c=c.toString().toLowerCase()])return a=D[c].encode(a,this,z),b=D[b].decode(a.data,this,z),b.error instanceof Error||(b.error=a.error),g?b:b.data;d.raiseError(this,"14090217","param",".transcodeData()",Error("Unrecognized data-format specified during transcoding."))}},!1);d.getRenderer&&!d.getRenderer("flash")||d.addEventListener("DataLoadRequested",function(a){var c=a.sender;
c.options&&"flash"===c.options.renderer&&c.options.useLegacyXMLTransport&&a.preventDefault()});d.addEventListener("beforeInitialize",function(a){a=a.sender;var b=a.options,g=b.dataSource,z=d.renderer&&d.renderer.getRenderer(b.renderer);delete v[a.id];n[a.id]={};if(void 0!==g&&null!==g){a.__state.dataSetDuringConstruction=!0;if("string"!==typeof b.dataFormat)switch(typeof g){case "function":g=b.dataSource=g.call(a,b.dataConfiguration);b.dataFormat="JSON";break;case "string":b.dataFormat=/^\s*?\{[\s\S]*\}\s*?$/g.test(a.options.dataFormat)?
"JSON":"XML";break;case "object":b.dataFormat="JSON"}b.dataFormat&&b.dataFormat.toString&&(a.__state.dataFetchDuringConstruction=c.test(b.dataFormat.toString()));a.setChartData(g,b.dataFormat,void 0,void 0,!0)}else z&&(a.__state.dataSetDuringConstruction=!1,d.raiseWarning(a,"1810131922A","param",":dataHandler~event:beforeInitialize","Data source was not defined during construction, hence set to blank renderer default - "+z.dataFormat),a.setChartData("",z.dataFormat,void 0,void 0,!0),a.__state.dataAvailable=
!1)});d.addEventListener("beforeDispose",function(a){var c=a.sender;delete v[a.sender.id];delete n[a.sender.id];c&&c.__state&&c.__state.dhmXhrObj&&c.__state.dhmXhrObj.abort()});d.addEventListener("disposed",function(a){delete n[a.sender.id]});d.addEventListener("loaded",function(a){a=a.sender;var c=a.__state.updatePending;a instanceof d.core&&void 0!==c&&(delete a.__state.updatePending,d.renderer.update(a,c))});d.addEventListener("dataUpdated",function(a,c){var b=a.sender,g=b.__state;g.rendering&&
(g.dataFetchDuringConstruction||g.updatePending)&&(delete g.dataFetchDuringConstruction,delete g.updatePending,d.renderer.update(b,c))});d.addEventListener(["dataLoadError","dataInvalid"],function(a){a.sender.__state.dataAvailable=!1});d.addEventListener("loaded",function(a){a=a.sender;var c=a.__state,b,g,z;z=function(a,c){return function(b){return!1===b?c.apply(this):this.ref.getUpdatedXMLData?d.core.transcodeData(this.ref.getUpdatedXMLData(),"xml",a):this.getData?this.getData(a):c.apply(this)}};
if(a.chartType&&K[a.chartType()]&&K[a.chartType()][0]){for(b in d.transcoders)g=d.transcoders[b].name,g="get"+g+"Data",a[g]=z(b,a.constructor.prototype[g]),a[g]._dynamicdatarouter=!0;c.dynamicDataRoutingEnabled=!0}else if(c.dynamicDataRoutingEnabled){for(b in d.transcoders)g=d.transcoders[b].name,g="get"+g+"Data",a.hasOwnProperty(g)&&a[g]._dynamicdatarouter&&delete a[g];c.dynamicDataRoutingEnabled=!1}})}]);"object"!==typeof JSON&&(JSON={});
(function(){function d(a){return 10>a?"0"+a:a}function m(a){n.lastIndex=0;return n.test(a)?'"'+a.replace(n,function(a){var c=b[a];return"string"===typeof c?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function D(a,b){var d,n,A,g,e=c,h,l=b[a];l&&"object"===typeof l&&"function"===typeof l.toJSON&&(l=l.toJSON(a));"function"===typeof H&&(l=H.call(b,a,l));switch(typeof l){case "string":return m(l);case "number":return isFinite(l)?String(l):"null";case "boolean":case "null":return String(l);
case "object":if(!l)return"null";c+=K;h=[];if("[object Array]"===Object.prototype.toString.apply(l)){g=l.length;for(d=0;d<g;d+=1)h[d]=D(d,l)||"null";A=0===h.length?"[]":c?"[\n"+c+h.join(",\n"+c)+"\n"+e+"]":"["+h.join(",")+"]";c=e;return A}if(H&&"object"===typeof H)for(g=H.length,d=0;d<g;d+=1)"string"===typeof H[d]&&(n=H[d],(A=D(n,l))&&h.push(m(n)+(c?": ":":")+A));else for(n in l)Object.prototype.hasOwnProperty.call(l,n)&&(A=D(n,l))&&h.push(m(n)+(c?": ":":")+A);A=0===h.length?"{}":c?"{\n"+c+h.join(",\n"+
c)+"\n"+e+"}":"{"+h.join(",")+"}";c=e;return A}}"function"!==typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+d(this.getUTCMonth()+1)+"-"+d(this.getUTCDate())+"T"+d(this.getUTCHours())+":"+d(this.getUTCMinutes())+":"+d(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var v=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
n=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,c,K,b={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},H;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var n;K=c="";if("number"===typeof d)for(n=0;n<d;n+=1)K+=" ";else"string"===typeof d&&(K=d);if((H=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return D("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,c){function b(a,g){var e,d,l=a[g];if(l&&"object"===typeof l)for(e in l)Object.prototype.hasOwnProperty.call(l,e)&&(d=b(l,e),void 0!==d?l[e]=d:delete l[e]);return c.call(a,g,l)}var d;a=String(a);v.lastIndex=0;v.test(a)&&(a=a.replace(v,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d=eval("("+a+")"),"function"===typeof c?b({"":d},""):d;throw new SyntaxError("JSON.parse");})})();
FusionCharts.register("module",["private","modules.data.json",function(){var d=this,m=d.window,D=m.document,v=d.xssEncode,n,c;void 0===m.JSON&&d.raiseError(this,"1113062012","run","JSONDataHandler",Error("Could not find library support for JSON parsing."));d.policies.options.allowIESafeXMLParsing=["_allowIESafeXMLParsing",!0];n=function(){var c={set:!0,trendlines:!0,vtrendlines:!0,line:{trendlines:!0,vtrendlines:!0},data:!0,dataset:!0,lineset:!0,categories:!0,category:!0,linkeddata:!0,application:!0,
definition:!0,axis:!0,connectors:!0,connector:{connectors:!0},trendset:!0,row:{rows:!0},column:{columns:!0},label:{labels:!0},color:{colorrange:!0},dial:{dials:!0},pointer:{pointers:!0},point:{trendpoints:!0},process:{processes:!0},task:{tasks:!0},milestone:{milestones:!0},datacolumn:{datatable:!0},text:{datacolumn:!0},item:{legend:!0},alert:{alerts:!0},groups:{annotations:!0},items:{groups:!0,data:!0},shapes:!0,shape:{shapes:!0},entitydef:!0,entity:{entitydef:!0}},b={chart:"linkedchart",map:"linkedmap",
set:"data",vline:{chart:"data",graph:"data",dataset:"data",categories:"category",linkedchart:"data"},apply:{application:"application"},style:{definition:"definition"},marker:{application:"application",definition:"definition",data:"items"},entity:{entitydef:"entitydef",data:"data"},shape:{shapes:"shapes"},connector:{connectors:{chart:"connector",linkedchart:"connector",map:"connectors",linkedmap:"connectors"}},annotationgroup:{annotations:"groups"},annotation:{groups:"items"}},n={vline:{vline:"true"}},
a={chart:!0,map:!0,graph:!0},z={dataset:"data",categories:"category"},G={target:"target",value:"value"},L={styles:{definition:!0,application:!0},chart:{value:!0,target:!0},graph:{value:!0,target:!0},linkedchart:{value:!0,target:!0},markers:{definition:!0,application:!0,shapes:!0,connectors:!0,data:!0},map:{entitydef:!0,data:!0},linkedmap:{entitydef:!0,data:!0}},A,g;A={append:function(a,b,g,d){!c[g]||!0!==c[g]&&!0!==c[g][d]?b[g]=a:(b[g]instanceof Array||(b[g]=[]),b[g].push(a))},child:function(c,g,
l,N){var w,p,R,t,m,q;for(w=0;w<g.length;w+=1)switch(R=g[w],p=R.nodeName.toLowerCase(),R.nodeType){case 1:t=A.attr(R.attributes);q=a[p];!0===q&&(m=t,t={},t[p]=m);q=n[p];"object"===typeof q&&d.extend(t,q);if(q=b[p])if("object"===typeof q&&"object"===typeof q[l])for(m in m=void 0,q[l]){if(N[m]){p=q[l][m];break}}else"object"===typeof q&&"string"===typeof q[l]?p=q[l]:"string"===typeof q&&(p=q);R.childNodes.length&&((q=L[l])&&q[p]?A.child(c,R.childNodes,p,N):A.child(t,R.childNodes,p,N));(q=L[l])&&q[p]||
A.append(t,c,p,l);break;case 3:if(q=G[l])p=q,t=R.data,A.append(t,c,p,l);q=z[l];"string"===typeof q&&N.chart&&parseInt(N.chart.compactdatamode,10)&&(p=q,t=R.data,c[p]=c[p]?c[p]+t:t)}},attr:function(a){var c,b={};if(!a||!a.length)return b;for(c=0;c<a.length;c+=1)b[a[c].nodeName.toLowerCase()]=a[c].value||a[c].nodeValue;return b}};g=function(a){var c={},b,z,n,p,R,t,G,q,H;if("object"!==typeof a&&a&&"function"!==typeof a.toString)return g.errorObject=new TypeError("xml2json.parse()"),c;a=a.toString().replace(/<\!--[\s\S]*?--\x3e/g,
"").replace(/<\?xml[\s\S]*?\?>/ig,"").replace(/&(?!([^;\n\r]+?;))/g,"&amp;$1");a=a.replace(/^\s\s*/,"");for(var L=/\s/,v=a.length;L.test(a.charAt(v-=1)););a=a.slice(0,v+1);if(!a)return c;try{m.DOMParser?b=(new m.DOMParser).parseFromString(a,"text/xml"):D.body&&d.core.options.allowIESafeXMLParsing?(z=D.createElement("xml"),z.innerHTML=a,D.body.appendChild(z),b=z.XMLDocument,D.body.removeChild(z)):(b=new m.ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a));if(!(b&&b.childNodes&&1===b.childNodes.length&&
(n=b.childNodes[0])&&n.nodeName&&(p=n.nodeName.toLowerCase()))||"chart"!==p&&"map"!==p&&"graph"!==p)return g.errorObject=new TypeError("xml2json.parse()"),c;if("graph"===p){R=b.createElement("chart");for(H=(G=n.attributes)&&G.length||0;H--;)R.setAttribute(G[H].name,G[H].value),G.removeNamedItem(G[H].name);if(H=(q=n.childNodes)&&q.length||0)H-=1,t=n.removeChild(q[H]),R.appendChild(t);for(;H--;)t=n.removeChild(q[H]),R.insertBefore(t,R.firstChild);b.replaceChild(R,n);n=R}}catch(K){g.errorObject=K}n?
(n.attributes&&(c[p]=A.attr(n.attributes)),n.childNodes&&A.child(c,n.childNodes,p,c),delete g.errorObject):g.errorObject=new TypeError("xml2json.parse()");return c};return function(a){delete g.errorObject;return{data:g(a),error:g.errorObject}}}();c=function(){var c,b;c={items:{explode:{data:"set",groups:{annotations:"annotationgroup"},items:{groups:"annotation"}},text:{chart:{target:"target",value:"value"},graph:{target:"target",value:"value"}},dsv:{dataset:{data:"dataset"},categories:{category:"categories"}},
attr:{chart:{chart:"chart"},graph:{graph:"graph"},map:{map:"map"},linkedmap:{map:"map"},linkedchart:{chart:"chart"}},group:{styles:{definition:"style",application:"apply"},map:{data:"entity",entitydef:"entity"},markers:{definition:"marker",application:"marker",shapes:"shape",connectors:"connector",items:"marker"}},tag:{markers:{items:"data"}}},qualify:function(c,a,b){return"object"===typeof this.items[c][b]?this.items[c][b][a]:this.items[c][b]}};b=function(d,a,n,m){var L="",A="",g="",e="",h,l,N;a&&
"function"===typeof a.toLowerCase&&(a=a.toLowerCase());if(void 0===n&&d[a])for(h in d[a])l=h.toLowerCase(),"compactdatamode"===l&&(m.applyDSV=1==d[a][h]);if(d instanceof Array)for(h=0;h<d.length;h+=1)g="string"===typeof d[h]?g+v(d[h]):g+b(d[h],a,n,m);else{for(h in d)l=h.toLowerCase(),d[h]instanceof Array&&(N=c.qualify("group",l,a))?(g=c.qualify("tag",l,a)||l,A+="<"+g+">"+b(d[h],N,a,m)+"</"+g+">"):"object"===typeof d[h]?(N=c.qualify("attr",l,a))?(e=b(d[h],N,a,m).replace(/\s*\/\>/ig,""),a=l):A+=b(d[h],
l,a,m):m.applyDSV&&(N=c.qualify("dsv",l,a))?A+=d[h]:(N=c.qualify("text",l,a))?(g=c.qualify("tag",l,a)||N,A+="<"+g+">"+d[h]+"</"+g+">"):"vline"===l&&Boolean(d[h])?a="vline":L+=" "+l+'="'+v(d[h]).toString().replace(/\"/ig,"&quot;")+'"';if(N=c.qualify("explode",n,a))a=N;g=a;g=(""!==e?e:"<"+g)+L+(""!==A?">"+A+"</"+g+">":" />")}return g};return function(c){delete b.errorObject;if(c&&"string"===typeof c)try{c=JSON.parse(c)}catch(a){b.errorObject=a}return{data:b(c,c&&c.graph?"graph":c&&c.map?"map":"chart",
void 0,{}),error:b.errorObject}}}();d.addDataHandler("JSON",{encode:c,decode:n,passthrough:function(c){var b={data:{}};if(!c)return b;if("string"!==typeof c)try{c=JSON.stringify(c)}catch(d){return b.error=d,b}try{b.data=JSON.parse(c.replace(/"([^"]+)":/g,function(a,c){return'"'+c.toLowerCase()+'":'}))}catch(a){b.error=a}return b},transportable:!0})}]);
FusionCharts.register("module",["private","modules.data.xml",function(){var d=function(d){return{data:d,error:void 0}};this.addDataHandler("XML",{encode:d,decode:d,transportable:!0})}]);
FusionCharts.register("module",["private","modules.data.csv",function(){var d=this,m=d.window,D=d.core,v=m.parseInt,n=m.parseFloat,c=function(c){return c},K;K=function(c){this.data=[];this.columnCount=this.rowCount=0;this.configure(c)};K.decodeLiterals=function(c,d){return void 0!==c&&null!==c&&c.toString?c.replace("{tab}","\t").replace("{quot}",'"').replace("{apos}","'"):d};K.prototype.set=function(c,d,a){var n;if(this.rowCount<=c){for(n=this.rowCount;n<=c;n+=1)this.data[n]=[];this.rowCount=c+1}this.columnCount<=
d&&(this.columnCount=d+1);this.data[c][d]=a};K.prototype.setRow=function(c,d){var a;if(this.rowCount<=c){for(a=this.rowCount;a<=c;a+=1)this.data[a]=[];this.rowCount=c+1}this.columnCount<d.length&&(this.columnCount=d.length);this.data[c]=d};K.prototype.get=function(c,d){var a=this.data;return a[c]&&a[c][d]};K.prototype.configure=function(c){var d=K.decodeLiterals;this.delimiter=d(c.delimiter,",");this.qualifier=d(c.qualifier,'"');this.eolCharacter=d(c.eolCharacter,"\r\n");this.numberFormatted=!!v(c.numberFormatted,
0)};K.prototype.clear=function(){this.data=[];this.columnCount=this.rowCount=0};K.prototype.toString=function(){var c,d,a="";for(c=0;c<this.rowCount;c+=1)d=this.qualifier+this.data[c].join(this.qualifier+this.delimiter+this.qualifier)+this.qualifier,a+='""'===d?this.eolCharacter:d+this.eolCharacter;0<this.rowCount&&(a=a.slice(0,a.length-2));return a};d.addDataHandler("CSV",{encode:function(c,n){d.raiseError(n,"0604111215","run","::CSVDataHandler.encode()","FusionCharts CSV data-handler only supports encoding of data.");
throw Error("FeatureNotSupportedException()");},decode:function(b,d){var a=D.transcodeData(b,"xml","json")||{},z=d.jsVars,m,L,A,g,e,h,l,N=a.chart||a.map||a.graph||{};l=Boolean(N.exporterrorcolumns||0);var w=a.categories&&a.categories[0]&&a.categories[0].category||[],p=a.map&&!a.chart||z&&z.instanceAPI&&"geo"===z.instanceAPI.defaultSeriesType,R=!1,t=!1,fa=!1,q=!1;L=!1;var v=c,V={},ia,wa,ja,aa,ka,Y,ca,X,P,Q,T;e=0;m=new K({separator:N.exportdataseparator,qualifier:N.exportdataqualifier,numberFormatted:N.exportdataformattedval});
D.formatNumber&&m.numberFormatted&&(v=function(a){return D.formatNumber(a,N)});if(p)for(Q in V.geo=!0,w=z.hcObj&&z.hcObj.entities&&z.hcObj.entities.items||[],m.setRow(0,["Id"," Short Name","Long Name","Value","Formatted Value"]),z=0,w)t=w[Q],T=t.eJSON,L=t.value,m.setRow(++z,[Q,T.shortLabel,T.label,void 0===L?"":L,t.formattedValue]);else if(void 0!==(ia=a.dials&&a.dials.dial||a.pointers&&a.pointers.pointer||a.value))if(V.gauge=!0,"string"===typeof ia)m.set(0,0,v(ia)),V.singlevalue=!0,"string"===typeof a.target&&
(m.set(0,1,v(a.target)),V.bullet=!0);else for(m.setRow(0,["Id","Value"]),V.multivalue=!0,z=0,h=1,e=ia.length;z<e;z+=1,h+=1)m.setRow(h,[h,v(ia[z].value)]);else if(ia=a.dataset||!(a.data instanceof Array)&&[]){V.multiseries=!0;A=1;if(wa=a.lineset)ia=ia.concat(wa),V.lineset=!0;if(ja=a.axis)ia=ia.concat(ja),V.multiaxis=!0;Y=ia.length;ka=w.length;if(!(Y=ia.length)){for(z=0;z<ka;z+=1)ca=w[z],m.set(z+1,0,ca.label||ca.name);V.multilevel=!0}for(z=0;z<Y;z+=1)for(X=ia,X[z].dataset?(X=X[z].dataset,g=0,aa=X.length):
(X=ia,g=z,aa=g+1);g<aa&&!R&&!fa;g+=1,A+=1){p=X[g];m.set(0,A,p.seriesname);"string"===typeof p.data&&(V.compactdata=!0,p.data=p.data.split(N.dataseparator||"|"));h=e=0;for(P=p.data&&p.data.length||0;e<P||e<ka;e+=1){ca=w[e];L=h+1;Q=p.data&&p.data[h]||{};if(void 0!==Q.x&&void 0!==Q.y){R=V.xy=!0;break}if(void 0!==Q.open||void 0!==Q.high||void 0!==Q.close||void 0!==Q.low){q=V.ohlc=!0;break}if(void 0!==Q.rowid&&void 0!==Q.columnid){fa=V.heatmap=!0;break}if(e<ka&&!ca.vline){m.set(L,0,ca.label||ca.name);
ca=n(Q?Q.value:"");ca=isNaN(ca)?"":v(ca);m.set(L,A,ca);if(t||l||Q.errorvalue)t||m.set(0,A+1,"Error"),T=1,m.set(L,A+1,v(Q.errorvalue));h+=1}}T&&(A+=T,T=0)}wa&&(ia=ia.slice(0,-wa.length));ja&&(ia=ia.slice(0,-ja.length))}else if(ia=a.data){m.set(0,1,N.yaxisname||"Value");V.singleseries=!0;L="1"==N.showsumatend;z=0;for(ka=ia.length;z<ka;z+=1)Q=ia[z],Q.vline||(ca=n(Q.value?Q.value:""),m.setRow(z+1,[Q.label||Q.name,isNaN(ca)?"":(e+=ca,v(ca))]));L&&(V.summation=!0,m.setRow(z+1,[N.sumlabel||"Total",v(e)]))}if(q)for(m.clear(),
m.setRow(0,["Open","Close","High","Low"]),z=0,L=1,ia=a.dataset,aa=ia.length;z<aa;z+=1)for(e=0,p=ia[z]&&ia[z].data||[],Y=p.length;e<Y;e+=1,L+=1)Q=p[e]||{},m.setRow(e+1,[v(Q.open),v(Q.close),v(Q.high),v(Q.low)]);else if(R)for(m.clear(),t=!1,T=0,m.setRow(0,["Series","x","y"]),z=0,L=1,ia=a.dataset,aa=ia.length;z<aa;z+=1)for(e=0,p=ia[z]&&ia[z].data||[],Y=p.length;e<Y;e+=1,L+=1){Q=p[e]||{};ca=[ia[z].seriesname,v(Q.x),v(Q.y)];void 0!==Q.z&&(ca.push(v(Q.z)),T||(m.set(0,3,"z"),T=1));if(t||l||void 0!==Q.errorvalue||
void 0!==Q.horizontalerrorvalue||void 0!==Q.verticalerrorvalue)a=v(Q.errorvalue),ca.push(Q.errorvalue,void 0===Q.horizontalerrorvalue?a:v(Q.horizontalerrorvalue),void 0===Q.verticalerrorvalue?a:v(Q.verticalerrorvalue)),t||(m.set(0,T+3,"Error"),m.set(0,T+4,"Horizontal Error"),m.set(0,T+5,"Vertical Error")),t=V.error=!0;m.setRow(L,ca)}else if(fa){m.clear();R={};fa={};z=0;e=1;w=a.rows&&a.rows.row||[];for(l=w.length;z<l;z+=1,e+=1)ca=w[z],ca.id&&(R[ca.id.toLowerCase()]=e,m.set(e,0,ca.label||ca.id));z=
0;e=1;w=a.columns&&a.columns.column||[];for(l=w.length;z<l;z+=1,e+=1)ca=w[z],ca.id&&(fa[ca.id.toLowerCase()]=e,m.set(0,e,ca.label||ca.id));p=a.dataset&&a.dataset[0]&&a.dataset[0].data||[];z=0;for(l=p.length;z<l;z+=1)Q=p[z],L=Q.rowid.toLowerCase(),A=Q.columnid.toLowerCase(),R[L]||(R[L]=m.rowCount,m.set(m.rowCount,0,Q.rowid)),fa[A]||(fa[A]=m.columnCount,m.set(0,m.columnCount,Q.columnid)),m.set(R[L],fa[A],v(Q.value))}ia=w=wa=ja=null;0<m.rowCount&&void 0===m.get(0,0)&&m.set(0,0,N.xaxisname||"Label");
return{data:m.toString(),error:void 0,predictedFormat:V}},transportable:!1});D.addEventListener("Loaded",function(c){c=c.sender;"javascript"!==c.options.renderer||c.getDataAsCSV||(c.getDataAsCSV=c.ref.getDataAsCSV=c.getCSVData)})}]);
FusionCharts.register("module",["private","modules.renderer.js",function(){var d=this,m=d.window,D=m.document,v=d.core.options,n=/msie/i.test(m.navigator.userAgent)&&!m.opera,c=Boolean(m.SVGAngle||D.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),K=function(){},b=d.hcLib={cmdQueue:[]},H=b.moduleCmdQueue={base:[],charts:[],powercharts:[],widgets:[],maps:[]},a=b.moduleDependencies={},z=b.moduleMeta={base:"fusioncharts.js",charts:"fusioncharts.charts.js",powercharts:"fusioncharts.powercharts.js",
widgets:"fusioncharts.widgets.js",maps:"fusioncharts.maps.js"},G={},L=b.getMetaSentence=function(){var a={};return function(c){c=c&&c.replace(/(^\s*)|(\s*$)/g,"")||"";return a[c]||(a[c]={key:c,subject:c.replace(/[^\/]*?$/ig,""),predicate:c.replace(/^.*\//ig,"")})}}(),A=b.getDependentModuleName=function(c){var b=[],e,d;c=L(c).predicate;for(e in a)void 0!==(d=a[e][c])&&(b[d]=e);return b},g=b.hasModule=function(a){var c,b;if(a instanceof Array){c=0;for(b=a.length;c<b;c+=1)if(!Boolean(d.modules["modules.renderer.js-"+
L(a[c]).predicate]))return!1;return!0}return Boolean(d.modules["modules.renderer.js-"+L(a).predicate])},e=b.loadModule=function(a,c,b,e){a instanceof Array||(a=[a]);var h=a.length,l=0,n;n=function(){if(l>=h)c&&c();else{var A=a[l],m=A&&A.match(/[^\/]*$/i)[0],w=z[A];l+=1;if(A){if(g(m)){n();return}if(G[m]){d.raiseError(e||d.core,"1112201445A","run","JavaScriptRenderer~loadModule() ","required resources are absent or blocked from loading.");b&&b(m);return}}else b&&b(m);A=d.core.options["html5"+d.capitalizeString(m)+
"Src"];d.loadScript(void 0===A?w:A,{success:function(){g(m)?n():b&&b(m)},failure:b&&function(){b(m)}},void 0,!0)}};n()},h=b.executeWaitingCommands=function(a){for(var c;c=a.shift();)"object"===typeof c&&K[c.cmd].apply(c.obj,c.args)},l=function(a){delete a.sender.jsVars._reflowData;a.sender.jsVars._reflowData={};delete a.sender.jsVars._reflowClean},N=function(){var a=function(){};a.prototype={LoadDataErrorText:"Error in loading data.",XMLLoadingText:"Retrieving data. Please wait",InvalidXMLText:"Invalid data.",
ChartNoDataText:"No data to display.",ReadingDataText:"Reading data. Please wait",ChartNotSupported:"Chart type not supported.",PBarLoadingText:"",LoadingText:"Loading chart. Please wait",RenderChartErrorText:"Unable to render chart."};return a.prototype.constructor=a}(),w=b.getContainerBackgroundColor=function(a){var e=a.options.containerBackgroundColor,d=a.options.containerBackgroundOpacity,g=a.jsVars.transparent;void 0!==g&&null!==g?d=a.jsVars.transparent?0:1:(d=parseFloat(d),0>d?d=0:1<d&&(d=1));
e||(e="#ffffff");if(n&&!c)return d?e:"transparent";e=e.replace(/^#?([a-f0-9]+)/ig,"$1");e=b.graphics.HEXtoRGB(e);e[3]=d.toString();return"rgba("+e.join(",")+")"};b.injectModuleDependency=function(c,e,d){var g=!1,h=L(c).subject;c=L(c).predicate;e=void 0===e?c:L(e).predicate;a[c]||(a[c]={},H[c]||(H[c]=[],b.moduleMeta[c]=h+v.html5ScriptNamePrefix+(e&&e.replace&&e.replace(/^[\s\S]*\//ig,"").replace(/\?/g,"%3F").replace(/\#/g,"%23").replace(/\:/g,"%3A")||"")+v.html5ScriptNameSuffix),g=!0);a[c][e]=d||0;
return g};b.needsModule=function(a,c){a=L(a).predicate;c=L(c).predicate;return void 0!==(b.moduleDependencies[a]&&b.moduleDependencies[a][c])};b.cleanupWaitingCommands=function(a){for(var c=a.chartType(),c=A(c),b,e=[],d;b=c.shift();){for(b=H[b]||[];d=b.shift();)"object"===typeof d&&d.obj!==a&&e.push(d);b.concat(e);e=[]}};d.extend(d.core.options,{html5ScriptNameSuffix:".js",html5ScriptNamePrefix:"fusioncharts."});d.extend(K,{dataFormat:"json",ready:!1,policies:{jsVars:{},options:{showChartLoadingMessage:["showChartLoadingMessage",
!0]}},init:function(){g("base")?K.ready=!0:e("base",function(){K.ready=!0;h(b.cmdQueue)},void 0,d.core)},render:function(a){var c=a,e=this.jsVars.msgStore;c&&this.options.showChartLoadingMessage&&(c.innerHTML='<small style="display: inline-block; *zoom:1; *display:inline; width: 100%; font-family: Verdana,sans; font-size: 10px; color: #666666; text-align: center; padding-top: '+(parseInt(c.style.height,10)/2-5)+'px">'+(e.PBarLoadingText||e.LoadingText)+"</small>",c.style.backgroundColor=w(this));
b.cmdQueue.push({cmd:"render",obj:this,args:arguments})},update:function(){b.cmdQueue.push({cmd:"update",obj:this,args:arguments})},resize:function(){b.cmdQueue.push({cmd:"resize",obj:this,args:arguments})},dispose:function(){var a=b.cmdQueue,c,e;c=0;for(e=a.length;c<e;c+=1)a[c].obj===this&&(a.splice(c,1),e-=1,c-=1)},load:function(){b.cmdQueue.push({cmd:"load",obj:this,args:arguments})},config:function(a,c){var b,e=this.jsVars,d=e.msgStore,e=e.cfgStore,g=this.options,h;h={LoadingText:"loadMessage",
ChartNotSupported:"typeNotSupportedMessage",RenderChartErrorText:"renderErrorMessage",XMLLoadingText:"dataLoadStartMessage",ChartNoDataText:"dataEmptyMessage",LoadDataErrorText:"dataLoadErrorMessage",InvalidXMLText:"dataInvalidMessage"};"string"===typeof a&&1<arguments.length&&(b=a,a={},a[b]=c);for(b in a)void 0!==d[b]?d[b]=a[b]:e[b.toLowerCase()]=a[b],h[b]&&(g[h[b]]=a[b])},protectedMethods:{},events:{beforeInitialize:function(a){var c=a.sender;a=c.jsVars;var e;a.fcObj=c;a.msgStore=a.msgStore||new N;
a.cfgStore=a.cfgStore||{};a.previousDrawCount=-1;a.drawCount=0;a._reflowData={};c.addEventListener("beforeRender",function(a){a.sender.jsVars.smartLabel=new b.SmartLabelManager(c.id,D.body||D.getElementsByTagName("body")[0]);a.detachHandler()});a.userModules instanceof Array||(e=a.userModules,a.userModules=[],"string"===typeof e&&(a.userModules=a.userModules.concat(e.split(","))));b.chartAPI&&b.chartAPI[void 0]||(a.needsLoaderCall=!0)},initialized:function(a){a=a.sender;var c=a.jsVars;c.needsLoaderCall&&
(delete c.needsLoaderCall,K.load.call(a))},beforeDataUpdate:l,beforeDispose:function(a){var c=a.sender.jsVars;c.smartLabel&&!c.smartLabel.disposed&&c.smartLabel.dispose();l.apply(this,arguments)},beforeRender:function(a){var c=a.sender.jsVars;delete c.drLoadAttempted;delete c.waitingModule;delete c.waitingModuleError;l.apply(this,arguments)},dataLoadRequested:function(a){a=a.sender;var c=a.jsVars;delete c.loadError;a.ref&&a.options.showDataLoadingMessage?c.hcObj&&!c.hasNativeMessage&&c.hcObj.showLoading?
c.hcObj.showMessage(c.msgStore.XMLLoadingText):a.ref.showChartMessage?a.ref.showChartMessage("XMLLoadingText"):c.stallLoad=!0:c.stallLoad=!0},dataLoadRequestCompleted:function(a){delete a.sender.jsVars.stallLoad},dataLoadError:function(a){var c=a.sender,b=c.jsVars;delete b.stallLoad;b.loadError=!0;c.ref&&"function"===typeof c.ref.showChartMessage&&c.ref.showChartMessage("LoadDataErrorText");c.__state.dataFetchDuringConstruction&&delete c.__state.dataFetchDuringConstruction;l.apply(this,arguments)}},
_call:function(a,c,b){a.apply(b||m,c||[])}});d.extend(K.prototype,{getSWFHTML:function(){d.raiseWarning(this,"11090611381","run","JavaScriptRenderer~getSWFHTML()","getSWFHTML() is not supported for JavaScript charts.")},addVariable:function(){d.raiseWarning(this,"11090611381","run","JavaScriptRenderer~addVariable()",'Use of deprecated "addVariable()". Replace with "configure()".');d.core.prototype.configure.apply(this,arguments)},getXML:function(){d.raiseWarning(this,"11171116291","run","JavaScriptRenderer~getXML()",
'Use of deprecated "getXML()". Replace with "getXMLData()".');return this.getXMLData.apply(this,arguments)},setDataXML:function(){d.raiseWarning(this,"11171116292","run","JavaScriptRenderer~setDataXML()",'Use of deprecated "setDataXML()". Replace with "setXMLData()".');return this.setXMLData.apply(this,arguments)},setDataURL:function(){d.raiseWarning(this,"11171116293","run","JavaScriptRenderer~setDataURL()",'Use of deprecated "SetDataURL()". Replace with "setXMLUrl()".');return this.setXMLUrl.apply(this,
arguments)},hasRendered:function(){return!(!this.jsVars.hcObj||!this.jsVars.hcObj.hasRendered)},setTransparent:function(a){var c;if(c=this.jsVars)"boolean"!==typeof a&&null!==a&&(a=!0),c.transparent=null===a?!1:!0===a?!0:!1}});d.extend(d.core,{_fallbackJSChartWhenNoFlash:function(){m.swfobject.hasFlashPlayerVersion(d.core.options.requiredFlashPlayerVersion)||d.renderer.setDefault("javascript")},_enableJSChartsForSelectedBrowsers:function(a){void 0!==a&&null!==a&&d.renderer.setDefault((new RegExp(a)).test(m.navigator.userAgent)?
"javascript":"flash")},_doNotLoadExternalScript:function(a){var c,b;for(c in a)b=c.toLowerCase(),z[b]&&(G[b]=Boolean(a[c]))},_preloadJSChartModule:function(){throw"NotImplemented()";}});d.renderer.register("javascript",K);c||n?d.renderer.setDefault("javascript"):m.swfobject&&m.swfobject.hasFlashPlayerVersion&&!m.swfobject.hasFlashPlayerVersion(d.core.options.requiredFlashPlayerVersion)&&(d.raiseWarning(d.core,"1204111846","run","JSRenderer","Switched to JavaScript as default rendering due to absence of required Flash Player."),
d.renderer.setDefault("javascript"))}]);
FusionCharts.register("module",["private","modules.renderer.js-lib",function(){var d=this,m=d.window,D=m.document,v=Boolean(m.SVGAngle||D.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),n=/msie/i.test(m.navigator.userAgent)&&!m.opera,c=m.parseFloat,K=/\s+/g,b=/^#?/,H=/^rgba/i,a=/[#\s]/ig,z=/\{br\}/ig,G=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,L=Math.abs,A=Math.pow,g=Math.round,e=A(2,-24),h=Object.prototype.toString,l=void 0!==D.documentElement.ontouchstart,N="http://www.fusioncharts.com?BS=FCHSEvalMark&utm_source=FCS_trial&pver="+
m.escape(d.core.version),w=Math,p=w.max,R=w.min,t={pageX:0,pageY:0},fa=d.hcLib||(d.hcLib={}),q=function(a){var c=a.data,b=c.chart,k=b.paper,e=a.state,d=X(ca(a.originalEvent)),r=d.target||d.originalTarget||d.srcElement||d.relatedTarget||d.fromElement,g=b.elements.resizeBox,h=c.layerX=d.pageX-c.chartPosLeft,J=c.layerY=d.pageY-c.chartPosTop,l=h-c.ox,I=J-c.oy,t=c.bBox,q=c.ox,n=c.oy,P=c.zoomX,A=c.zoomY,t=c.canvasY,m=c.canvasX,U=c.canvasW,z=c.canvasH,w=c.canvasX2,Q=c.canvasY2,ja=c.strokeWidth,l=c.attr;
switch(e){case "start":a=V(this);c.chartPosLeft=a.left;c.chartPosTop=a.top;h=d.pageX-c.chartPosLeft;J=d.pageY-c.chartPosTop;c.oy=J;c.ox=h;c.allowMove=!1;g||(g=b.elements.resizeBox=k.rect(b.layers.tracker).attr(l));h>m&&h<w&&J>t&&J<Q&&(c.allowMove=!0);r&&r.ishot&&(c.allowMove=!1);g.attr({x:0,y:0,width:0,height:0}).show();break;case "end":t=g.getBBox();b={chart:b,selectionLeft:t.x,selectionTop:t.y,selectionHeight:t.height,selectionWidth:t.width,originalEvent:a.originalEvent};c.isDragged&&(c.selectionEnd&&
c.selectionEnd(b),c.isDragged=0);g.hide();delete c.oy;delete c.ox;break;default:if(!c.allowMove)break;l=h-c.ox;I=J-c.oy;q=c.ox;n=c.oy;c.isDragged||(b={chart:b,selectionLeft:(P?R(q,q+l):m)+.5*ja,selectionTop:(A?R(n,n+I):t)+.5*ja,selectionHeight:0,selectionWidth:0,originalEvent:a.originalEvent},c.selectionStart&&c.selectionStart(b),c.isDragged=1);l=-(q-R(q-(q-p(q+l,m)),w));I=-(n-R(n-(n-p(n+I,t)),Q));g.attr({x:(P?R(q,q+l):m)+.5*ja,y:(A?R(n,n+I):t)+.5*ja,width:P?L(l):U,height:A?L(I):z})}},da=function(a){var c=
a.data;a=a.originalEvent;var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,k=a.type,e=a.layerX,d=a.layerY;void 0===e&&(e=a.pageX-c.chartPosLeft,d=a.pageY-c.chartPosTop);"mousedown"===k&&(b.ishot=e>c.canvasX&&e<c.canvasX2&&d>c.canvasY&&d<c.canvasY2);"mouseup"===k&&setTimeout(function(){b.ishot=!1},1)},w=function(){var a="innerWidth",c="innerHeight",b=D.documentElement||D.body,k=b;"innerWidth"in m?k=m:(a="clientWidth",c="clientHeight");return function(){return{width:k[a],
height:k[c],scrollTop:b.scrollTop,scrollLeft:b.scrollLeft}}}(),V=function(a,c){var b={left:a.offsetLeft||0,top:a.offsetTop||0};for(a=a.offsetParent;a;)b.left+=a.offsetLeft||0,b.top+=a.offsetTop||0,a===D.body||a===D.documentElement||c||(b.left-=a.scrollLeft,b.top-=a.scrollTop),a=a.offsetParent;return b},ia=function(a){return a&&a.replace(/\$/g,"$$$$")},wa=function(a,c){return a||!1===a||0===a?a:c},ja=function(){var a,c,b;c=0;for(b=arguments.length;c<b;c+=1)if((a=arguments[c])||!1===a||0===a)return a;
return""},aa=function(){var a,c,b;c=0;for(b=arguments.length;c<b;c+=1)if((a=arguments[c])||!1===a||0===a)return a},ka=function(a,c,b,k){return fa.dem.listen(a,c,b,k)},Y=function(a,c,b){return fa.dem.unlisten(a,c,b)},ca=function(a){a=a.sourceEvent||a.originalEvent||a;return l&&a&&a.touches&&a.touches[0]||a||t},X=function(){var a;return function(c){void 0===c.pageX&&(c.pageX=c.clientX+(a||(a=m.document.body||m.document.documentElement)).scrollLeft,c.pageY=c.clientY+a.scrollTop);return c}}(),P=function(a,
c){c=X(ca(c));var b=c.pageX,k=c.pageY,e=V(a);return{chartX:b-e.left,chartY:k-e.top,pageX:b,pageY:k}},Q=function(a){return a&&a.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none"},T=function(){var a,c,b;c=0;for(b=arguments.length;c<b;c+=1)if(((a=arguments[c])||!1===a||0===a)&&!isNaN(a=Number(a)))return a},r=function(a,c){a=a||!1===a||0===a?Number(a):NaN;return isNaN(a)?null:c?L(a):a},J=function(a){return"string"===typeof a?a.replace(z,"<br />"):""},I=function(a,c){for(var b=c.length,k=-1;b--;)if(a===c[b]){k=
b;break}return k},U=function(){if(Array.isArray)return Array.isArray;var a=Object.prototype.toString,c=a.call([]);return function(b){return a.call(b)===c}}(),Fa=function(a,c,b,k,e){var d,r,g,p;e?(k.push(a),e.push(c)):(k=[a],e=[c]);if(c instanceof Array)for(d=0;d<c.length;d+=1){try{r=a[d],g=c[d]}catch(J){continue}if("object"!==typeof g)b&&void 0===g||(a[d]=g);else{if(null===r||"object"!==typeof r)r=a[d]=g instanceof Array?[]:{};p=I(g,e);-1!==p?r=a[d]=k[p]:Fa(r,g,b,k,e)}}else for(d in c){try{r=a[d],
g=c[d]}catch(l){continue}if(null!==g&&"object"===typeof g)if(p=h.call(g),"[object Object]"===p){if(null===r||"object"!==typeof r)r=a[d]={};p=I(g,e);-1!==p?r=a[d]=k[p]:Fa(r,g,b,k,e)}else"[object Array]"===p?(null!==r&&r instanceof Array||(r=a[d]=[]),p=I(g,e),-1!==p?r=a[d]=k[p]:Fa(r,g,b,k,e)):a[d]=g;else a[d]=g}return a},Ia=function(a,c,b){if("object"!==typeof a&&"object"!==typeof c)return null;if("object"!==typeof c||null===c)return a;"object"!==typeof a&&(a=c instanceof Array?[]:{});Fa(a,c,b);return a},
Ta=function(a,c){var b;if(c instanceof Array)for(b=c.length-1;0<=b;b-=1)"object"!==typeof c[b]?!0===c[b]&&a&&a.splice&&a.splice(b,1):h.call(c[b])===h.call(a[b])&&Ta(a[b],c[b]);else for(b in c)"object"!==typeof c[b]?!0===c[b]&&a&&a.splice&&a.splice(b,1):h.call(c[b])===h.call(a[b])&&Ta(a[b],c[b]);return a},ea=function(){var a=/^@window_/g;return function(c,b){var k=c.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,"").replace(/\[/g,".@window_").replace(/\]/g,"").split("."),e=m,d,r;r="";var g,p,h;p=k.length;
for(h=0;h<p;h+=1){g=k[h];d=e;if(g.match(a))r=m[g.replace(a,"")],e=e[r];else{if(void 0===e||null===e)throw(r||g).replace(a,"")+" is not defined";e=e[g]}r=g}!e||"function"!==typeof e.call&&e!==m.alert?setTimeout(function(){throw g.replace(a,"")+"() is not a function";},0):e===m.alert?e(b):e.call(d,b)}}(),za=function(){var a="FusionChartslinkEval"+parseInt(+new Date,10);return function(c){try{m[a]=new Function(c),eval('window["'+a+'"]();')}catch(b){setTimeout(function(){throw b;},0)}v?delete m[a]:m[a]=
null}}(),Da=function(a,c){a=Number(a);a=isNaN(a)?100:a;void 0!==c&&(a=a*c/100);return a%101},W=function(a,c,b){a=a.split(",");var k;void 0!==b&&(b=T(b.split(",")[0]));a[0]=Da(a[0],b);for(k=1;k<c;k+=1)a[k]=a[0]*Da(a[k],b)/100;return a.join(",")},pa=function(c,b,k){var e=0,d=0,r=0;k&&k.match(H)&&(k=k.split(","),e=k[0].slice(k[0].indexOf("(")+1),d=k[1],r=k[2],b||0===b||(b=parseInt(100*k[3].slice(0,k[3].indexOf(")")),10)));if(c)if(c.match(H))k=c.split(","),e=k[0].slice(k[0].indexOf("(")+1),d=k[1],r=k[2];
else{c=c.replace(a,"").split(",")[0];switch(c.length){case 3:c=c.charAt(0)+c.charAt(0)+c.charAt(1)+c.charAt(1)+c.charAt(2)+c.charAt(2);break;case 6:break;default:c=(c+"FFFFFF").slice(0,6)}e=parseInt(c.slice(0,2),16);d=parseInt(c.slice(2,4),16);r=parseInt(c.slice(4,6),16)}b||0===b||(b=100);"string"===typeof b&&(b=b.split(",")[0]);b=parseInt(b,10)/100;return"rgba("+e+","+d+","+r+","+b+")"},La=function(){var a={};return function(b){var k=(b=b||this)&&b.FCcolor||b,e=k.color,d=k.ratio,r=k.angle,g=k.alpha,
h=k.r,p=k.cx,J=k.cy,l=k.fx,t=k.fy,I=k.gradientUnits,q=k.x1,n=k.y1,P=k.x2,A=k.y2,m=1,U,z,w,Q;if("string"===typeof b)return a[Q="~"+b]||(a[Q]=b.replace(/^#?([a-f0-9]{3,6})/ig,"#$1"));e=e||"";if(!e)return U;Q=[e,g,d,r,h,p,J,I,l,t,q,P,n,A].join("_").replace(/[\(\)\s,\xb0#]/g,"_");if(a[Q])return a[Q];d=d&&(d+"").split(",")||[];g=(g||0===g)&&(g+"").split(",")||[];if(e=e.split(","))if(U="",1===e.length)w=e[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),U=g.length?"rgba("+Qa(w).join(",")+","+.01*c(g[0])+")":w.replace(/^#?([a-f0-9]{3,6})/ig,
"#$1");else{b=0;for(z=e.length;b<z;b++)w=e[b].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),isNaN(d[b])||(d[b]=c(d[b]),w+=":"+d[b],isNaN(d[b+1])||(d[b+1]=c(d[b+1])+d[b])),isNaN(g[b])||""===g[b]||(m=.01*g[b]),e[b]="rgba("+Qa(w).join(",")+","+m+")",isNaN(d[b])||(e[b]=e[b]+":"+d[b]);U+=e.join("-");if(void 0!==h||void 0!==l||void 0!==p||k.radialGradient)U="xr("+[l,t,h,p,J,I].join()+")"+U;else{U="-"+U;if(void 0!==q||void 0!==n||void 0!==P||void 0!==A)U="("+[q,n,P,A,I].join()+")"+U;void 0===r&&(r=0);U=360-c(r)%
360+U}}return a[Q]=U}}(),Ra=function(){return function(){return""}}(),Ja=function(c){return c.replace(a,"").replace(b,"#")},ab=function(c,b){b=(0>b||100<b?100:b)/100;c=c.replace(a,"");var k=parseInt(c,16),e=Math.floor(k/65536),d=Math.floor((k-65536*e)/256);return("000000"+(e*b<<16|d*b<<8|(k-65536*e-256*d)*b).toString(16)).slice(-6)},Ha=function(c,b){b=(0>b||100<b?100:b)/100;c=c.replace(a,"");var k=parseInt(c,16),e=Math.floor(k/65536),d=Math.floor((k-65536*e)/256);return("000000"+(256-(256-e)*b<<16|
256-(256-d)*b<<8|256-(256-(k-65536*e-256*d))*b).toString(16)).slice(-6)},Qa=function(a){a=parseInt(a,16);var c=Math.floor(a/65536),b=Math.floor((a-65536*c)/256);return[c,b,Math.floor(a-65536*c-256*b)]},Na=function(a,c){if("object"!==typeof a)return"";if(a.fontSize||a["font-size"])!a.fontSize&&a["font-size"]&&(a.fontSize=a["font-size"],delete a["font-size"]),a.lineHeight=(parseFloat(a.fontSize)||c||10)*fa.lineHeightFactor+"px",delete a["line-height"];!a.lineHeight&&a["line-height"]&&(a.lineHeight=
a["line-height"],delete a["line-height"]);return a.lineHeight},Ea=function(a,c,b,k,e){var d=ja(a.labelbordercolor,c.bordercolor,b.labelbordercolor,""),r=aa(a.labelbgcolor,c.bgcolor,b.labelbgcolor),g=T(a.labelborderthickness,c.borderthickness,b.labelborderthickness,1);e=T(b.usedataplotcolorforlabels,0)?e||k.color:k.color;d=d?pa(d,T(a.labelborderalpha,c.borderalpha,b.labelborderalpha,a.labelalpha,c.alpha,b.labelalpha,100)):"";a={fontFamily:aa(a.labelfont,c.font,b.labelfont,k.fontFamily),fontSize:aa(a.labelfontsize,
c.fontsize,b.labelfontsize,parseInt(k.fontSize,10))+"px",color:pa(aa(a.labelfontcolor,c.fontcolor,b.labelfontcolor,e),T(a.labelfontalpha,c.fontalpha,b.labelfontalpha,a.labelalpha,c.alpha,b.labelalpha,100)),fontWeight:T(a.labelfontbold,c.fontbold,b.labelfontbold)?"bold":"normal",fontStyle:T(a.labelfontitalic,c.fontitalic,b.labelfontitalic)?"italic":"normal",border:d||r?g+"px solid":"",borderColor:d,borderThickness:g,borderPadding:T(a.labelborderpadding,c.borderpadding,b.labelborderpadding,2),borderRadius:T(a.labelborderradius,
c.borderradius,b.labelborderradius,0),backgroundColor:r?pa(r,T(a.labelbgalpha,c.bgalpha,b.labelbgalpha,a.labelalpha,c.alpha,b.labelalpha,100)):"",borderDash:T(a.labelborderdashed,c.borderdashed,b.labelborderdashed,0)?ib(T(a.labelborderdashlen,c.borderdashlen,b.labelborderdashlen,4),T(a.labelborderdashgap,c.borderdashgap,b.labelborderdashgap,2),g):void 0};a.lineHeight=Na(a);return a},Ya=function(){var a={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"}},c=/([^\,^\s]+)\)$/g,b=function(a,c){var b;/^(bar|bar3d)$/.test(a)&&(this.isBar=!0,this.yPos="bottom",this.yOppPos="top",this.xPos="left",this.xOppPos="right");b=parseInt(c.labelstep,10);this.labelStep=1<b?b:1;this.showLabel=T(c.showlabels,c.shownames,1);this.is3D=/3d$/.test(a)};b.prototype={isBar:!1,yPos:"left",yOppPos:"right",xPos:"bottom",xOppPos:"top",
addAxisGridLine:function(b,k,e,d,r,g,M,h){var p=""===e?!1:!0,J=0<d||0<g.match(c)[1]?!0:!1,l;if(p||J)J||(g="rgba(0,0,0,0)",d=.1),l={isGrid:!0,width:d,dashStyle:r,color:g,value:k,zIndex:void 0===M?2:M},p&&(k=b.opposite?h?this.xOppPos:this.yOppPos:h?this.xPos:this.yPos,k=a[k],l.label={text:e,style:b.labels.style,textAlign:k.textAlign,align:k.align,verticalAlign:k.verticalAlign,rotation:0,x:0,y:0}),b.plotLines.push(l);return l},addAxisAltGrid:function(a,c){if(!this.is3D){var b=T(a._lastValue,a.min),k=
aa(a._altGrid,!1);k&&a.plotBands.push({isGrid:!0,color:a.alternateGridColor,to:c,from:b,zIndex:1});a._lastValue=c;a._altGrid=!k}},addXaxisCat:function(c,b,k,e,C,d,r,g){var M=a[c.opposite?this.xOppPos:this.xPos];b={isGrid:!0,isDataLabel:!0,width:.1,color:"rgba(0,0,0,0)",value:b,label:{text:e,link:aa(C.labellink,d.link,r.labellink),style:Ea(C,d,r,c.labels.style,g),textAlign:M.textAlign,align:M.align,verticalAlign:M.verticalAlign,rotation:0,x:0,y:0}};0!==k%this.labelStep&&(b.stepped=!0,b.label.style=
c.steppedLabels.style);c.plotLines.push(b)},addVline:function(a,c,b,k){k=k._FCconf;var e=k.isBar,C=k.divlineStyle,E=J(c.label),d=Boolean(T(c.showlabelborder,k.showVLineLabelBorder,1)),r=Boolean(T(c.showlabelbackground,1)),g=aa(c.labelhalign,e?"left":"center"),M=aa(c.labelvalign,e?"middle":"bottom").toLowerCase(),h=T(c.labelposition,0),p=T(c.lineposition,.5),l=T(c.showvlines,k.showVLines,1),I=T(c.alpha,k.vLineAlpha,80),t=aa(c.color,k.vLineColor).replace(/^#?/,"#"),q=r?aa(c.labelbgcolor,k.vLineLabelBgColor,
"333333").replace(/^#?/,"#"):"",n=aa(c.labelcolor,k.vLineLabelColor,c.color,k.vLineColor).replace(/^#?/,"#"),P=T(c.thickness,k.vLineThickness,1),U=.5*P,A=Boolean(Number(aa(c.dashed,0))),m=T(c.dashlen,5),z=T(c.dashgap,2),w=k.smartLabel,Q=parseInt(C.fontSize,10)+2,s=0,u=T(c.rotatelabel,k.rotateVLineLabels)?270:0,p=0>p||1<p?.5:p,h=0>h||1<h?0:h;w.setStyle(C);w=w.getOriSize(E);t=pa(t,l?I:"0");if(e){switch(M){case "top":Q-=w.height+U+2;break;case "middle":Q-=.5*w.height+1;break;default:Q+=U}c.labelhalign||
(s-=w.width*h)}else{switch(M){case "top":Q=.5*-w.height+1;break;case "middle":Q=0;break;default:Q=.5*w.height}switch(g){case "left":s+=P;break;case "right":s-=P+1}}a.plotLines.push({isVline:!0,color:t,width:P,value:b-1+p,zIndex:T(c.showontop,k.showVLinesOnTop)?5:3,dashStyle:A?ib(m,z,P):void 0,label:{text:E,align:e?"left":"center",offsetScale:h,rotation:u,y:Q,x:s,textAlign:g,backgroundColor:q,borderWidth:l&&d?"1px":"",borderType:l&&d?"solid":"",borderColor:l&&d?n:"",backgroundOpacity:l&&r?aa(c.labelbgalpha,
k.vLineLabelBgAlpha)/100:0,style:{color:l?n:t,fontSize:C.fontSize,fontFamily:C.fontFamily,lineHeight:C.lineHeight,backgroundColor:q}}})}};return b.prototype.constructor=b}(),nb=function(){var a=function(a,b,k,e,E){a=Math.abs(b-a);b=a/(k+1);c(a,k,e)||(E&&Number(b)/Number(e)<(1<e?2:.5)&&(e/=10),b=(Math.floor(b/e)+1)*e,a=b*(k+1));return a},c=function(a,c,k){return b(a/(c+1))>b(k)?!1:!0},b=function(a){a=Math.abs(a);a=String(a);var c=0,b=a.indexOf(".");-1!=b&&(c=a.length-b-1);return c};return function(b,
k,d,r,g,M,h,p){var l,J,t,I,q,n,P;b=!0===isNaN(b)||void 0===b?.1:b;k=!0===isNaN(k)||void 0===k?0:k;b===k&&0===b&&(b=.1);g=void 0===typeof g?!0:g;M=void 0===typeof M?!0:M;l=Math.floor(Math.log(Math.abs(b))/Math.LN10);J=Math.floor(Math.log(Math.abs(k))/Math.LN10);J=Math.max(J,l);l=Math.pow(10,J);2>Math.abs(b)/l&&2>Math.abs(k)/l&&(J--,l=Math.pow(10,J));J=Math.floor(Math.log(b-k)/Math.LN10);J=Math.pow(10,J);0<b-k&&10<=l/J&&(l=J);J=(Math.floor(b/l)+1)*l;0>k?t=-1*(Math.floor(Math.abs(k/l))+1)*l:M?t=0:(t=
Math.floor(Math.abs(k/l)-1)*l,t=0>t?0:t);g&&0>=b&&(J=0);g=d||0===d?!0:!1;M=r||0===r?!0:!1;b=!1===g||!0===g&&Number(d)<b&&b-Number(d)>e?J:Number(d);k=!1===M||!0===M&&Number(r)>k&&Number(r)-k>e?t:Number(r);r=Math.abs(b-k);if(!1===M&&!1===g&&p)if(0<b&&0>k)for(d=!1,g=10<l?l/10:l,p=a(k,b,h,g,!1),M=p-(h+1)*g;!1===d;){if(M+=(h+1)*g,c(M,h,g))if(p=M-r,J=M/(h+1),I=Math.min(Math.abs(k),b),t=I==Math.abs(k)?-1:1,0===h)d=!0;else for(n=1;n<=Math.floor((h+1)/2);n++)q=J*n,!(q-I>p)&&q>I&&(P=M-q,P/J==Math.floor(P/J)&&
q/J==Math.floor(q/J)&&(r=M,b=-1==t?P:q,k=-1==t?-q:-P,d=!0))}else d=a(k,b,h,l,!0),p=d-r,r=d,0<b?b+=p:k-=p;else if(p&&0<h){p=0;for(d=1;;){g=h+p*d;g=0===g?1:g;if(c(r,g,l))break;p=-1==d||p>h?++p:p;if(25<p){g=0;break}d=p<=h?-1*d:1}h=g}return{Max:b,Min:k,Range:r,interval:l,divGap:(b-k)/(h+1)}}}(),Sb=function(){var a=function(a,c,b){var k=b.jsVars&&b.jsVars.smartLabel,e=a.offsetWidth;a=a.offsetHeight;this.title.y=a/2;this.title.x=e/2;this.title.style=b._chartMessageStyle;delete b._chartMessageStyle;void 0!==
c&&(k?(Na(this.title.style),k.setStyle(this.title.style),c=k.getSmartText(J(c),e,a),this.title.text=c.text):this.title.text=J(c),this.title.verticalAlign="middle")};a.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:N,text:"FusionCharts XT Trial",enabled:!1},legend:{enabled:!1},title:{text:"",style:{fontFamily:"Verdana,sans",fontSize:"10px",color:"#666666"}},plotOptions:{series:{}},series:[{}],exporting:{enabled:!1},nativeMessage:!0};return a.prototype.constructor=
a}(),Fb={"true":{"true":{"true":"center","false":"center"},"false":{"true":"center","false":"center"}},"false":{"true":{"true":"right","false":"left"},"false":{"true":"left","false":"right"}}},Za=function(){return function(a,c,e,d,r,g,p){var h,l=e.trendStyle,t,I,q,n,P,U,A,m,z,w,Q,R,ja,N=g?"xAxis":"dataLabels";if(g?e.showVLines:e.showTrendlines)for(h=0,I=a.length;h<I;h+=1)if((ja=a[h])&&ja.line)for(t=0,q=ja.line.length;t<q;t+=1)n=ja.line[t],w=e.numberFormatter.getCleanValue(aa(n.startvalue,n.value,
0)),Q=e.numberFormatter.getCleanValue(aa(n.endvalue,aa(n.startvalue,n.value,0))),g?m=c:d&&n.parentyaxis&&/^s$/i.test(n.parentyaxis)?(m=c[1],R=1):m=c[0],U=m.max,A=m.min,P=!1,U>=w&&U>=Q&&A<=w&&A<=Q&&(d&&n.parentyaxis&&/^s$/i.test(n.parentyaxis)?P="1"!==aa(n.valueonleft,e.trendlineValuesOnOpp):d||(P="1"===aa(n.valueonright,e.trendlineValuesOnOpp)),U=Boolean(T(n.istrendzone,g?1:0)),(A=(g?e.showVLineLabels:e.showTrendlineLabels)?J(aa(n.displayvalue,e.numberFormatter[N](P?Q:w,R))):"")?(z=w<Q,P={text:A,
textAlign:r?"center":P?"left":"right",align:r?Fb[U][!p][z]:P?"right":"left",verticalAlign:r?"bottom":"middle",rotation:0,x:0,y:0,style:l},A=aa(n.color,e.trendlineColor),n.alwaysVisible=U,A&&(P.style=Ia({},l),P.style.color=A.replace(b,"#"))):P=void 0,A=wa(J(aa(n.tooltext,ja.tooltext,e.trendLineToolText))),A=k(A,[7,15,16,17,18,19],{startValue:w,startDataValue:e.numberFormatter[N](w,R),endValue:Q,endDataValue:e.numberFormatter[N](Q,R),axisName:m.title&&m.title.text},n),z=T(n.thickness,e.trendlineThickness,
1),U?m.plotBands.push({isTrend:!0,color:pa(aa(n.color,e.trendlineColor),aa(n.alpha,e.trendlineAlpha,40)),from:w,to:Q,label:P,zIndex:e.is3d||"1"!==aa(n.showontop,e.showTrendlinesOnTop)?3:5,tooltext:A,alwaysVisible:n.alwaysVisible}):m.plotLines.push({isTrend:!0,color:pa(aa(n.color,e.trendlineColor,e.trendlineColor),aa(n.alpha,e.trendlineAlpha,99)),value:w,to:Q,width:z,dashStyle:"1"==aa(n.dashed,e.trendlinesAreDashed)?ib(T(n.dashlen,e.trendlinesDashLen),T(n.dashgap,e.trendlinesDashGap),z):void 0,label:P,
zIndex:e.is3d||"1"!==aa(n.showontop,e.showTrendlinesOnTop)?3:5,tooltext:A}))}}(),ib=function(a,c,b,k){return k||void 0===k?[a,c]:""},pb=function(){},sb=function(a,c,b){var k,e=sb[a];e||(e=function(){},e.prototype=b instanceof pb?b:new pb,e.prototype.constructor=e,e=sb[a]=new e);b&&(e.base=b);e.name=a;for(k in c)switch(typeof c[k]){case "object":if(c[k]instanceof pb){e[k]=c[k][k];break}default:e[k]=c[k];break;case "undefined":delete e[k]}return this instanceof sb?(a=function(){},a.prototype=e,a.prototype.constructor=
a,new a):e},k=function(){var a=[{regex:/((^|[^\\])((\\)\\)*\$cleanvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cleanvalue))/ig,argIndex:2,argKey:"cleanvalue"},{regex:/((^|[^\\])((\\)\\)*\$datavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$datavalue))/ig,argIndex:2,argKey:"formattedValue"},{regex:/((^|[^\\])((\\)\\)*\$value)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$value))/ig,argIndex:3,argKey:"value"},{regex:/((^|[^\\])((\\)\\)*\$label)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$label))/ig,argIndex:2,
argKey:"label"},{regex:/((^|[^\\])((\\)\\)*\$seriesname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$seriesname))/ig,argIndex:5,argKey:"seriesname"},{regex:/((^|[^\\])((\\)\\)*\$yaxisname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yaxisname))/ig,argIndex:2,argKey:"yaxisName"},{regex:/((^|[^\\])((\\)\\)*\$xaxisname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxisname))/ig,argIndex:2,argKey:"xaxisName"},{regex:/((^|[^\\])((\\)\\)*\$displayvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$displayvalue))/ig,argIndex:3,
argKey:"displayvalue"},{regex:/((^|[^\\])((\\)\\)*\$xdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xdatavalue))/ig,argIndex:2,argKey:"xDataValue"},{regex:/((^|[^\\])((\\)\\)*\$ydatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$ydatavalue))/ig,argIndex:2,argKey:"yDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xvalue))/ig,argIndex:3,argKey:"x"},{regex:/((^|[^\\])((\\)\\)*\$yvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yvalue))/ig,argIndex:3,argKey:"y"},
{regex:/((^|[^\\])((\\)\\)*\$zvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zvalue))/ig,argIndex:3,argKey:"z"},{regex:/((^|[^\\])((\\)\\)*\$name)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$name))/ig,argIndex:3,argKey:"name"},{regex:/((^|[^\\])((\\)\\)*\$percentValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentValue))/ig,argIndex:2,argKey:"percentValue"},{regex:/((^|[^\\])((\\)\\)*\$startValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startValue))/ig,argIndex:2,argKey:"startValue"},{regex:/((^|[^\\])((\\)\\)*\$startDataValue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startDataValue))/ig,argIndex:2,argKey:"startDataValue"},{regex:/((^|[^\\])((\\)\\)*\$endValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endValue))/ig,argIndex:2,argKey:"endValue"},{regex:/((^|[^\\])((\\)\\)*\$endDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endDataValue))/ig,argIndex:2,argKey:"endDataValue"},{regex:/((^|[^\\])((\\)\\)*\$axisName)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$axisName))/ig,argIndex:2,argKey:"axisName"},{regex:/((^|[^\\])((\\)\\)*\$cumulativevalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativevalue))/ig,argIndex:2,argKey:"cumulativeValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativedatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativedatavalue))/ig,argIndex:2,argKey:"cumulativeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativePercentValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativePercentValue))/ig,argIndex:2,argKey:"cumulativePercentValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativepercentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativepercentdatavalue))/ig,
argIndex:2,argKey:"cumulativePercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$sum)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sum))/ig,argIndex:2,argKey:"sum"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsum)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsum))/ig,argIndex:2,argKey:"unformattedSum"},{regex:/((^|[^\\])((\\)\\)*\$targetvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetvalue))/ig,argIndex:2,argKey:"targetValue"},{regex:/((^|[^\\])((\\)\\)*\$targetdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetdatavalue))/ig,
argIndex:2,argKey:"targetDataValue"},{regex:/((^|[^\\])((\\)\\)*\$processname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$processname))/ig,argIndex:2,argKey:"processName"},{regex:/((^|[^\\])((\\)\\)*\$start)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$start))/ig,argIndex:2,argKey:"start"},{regex:/((^|[^\\])((\\)\\)*\$end)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$end))/ig,argIndex:2,argKey:"end"},{regex:/((^|[^\\])((\\)\\)*\$percentcomplete)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentcomplete))/ig,argIndex:2,
argKey:"percentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskpercentcomplete)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskpercentcomplete))/ig,argIndex:2,argKey:"taskPercentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskstartdate)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskstartdate))/ig,argIndex:2,argKey:"taskStartDate"},{regex:/((^|[^\\])((\\)\\)*\$taskenddate)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskenddate))/ig,argIndex:2,argKey:"taskEndDate"},{regex:/((^|[^\\])((\\)\\)*\$tasklabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tasklabel))/ig,
argIndex:2,argKey:"taskLabel"},{regex:/((^|[^\\])((\\)\\)*\$date)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$date))/ig,argIndex:2,argKey:"date"},{regex:/((^|[^\\])((\\)\\)*\$percentofprevvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentofprevvalue))/ig,argIndex:2,argKey:"percentOfPrevValue"},{regex:/((^|[^\\])((\\)\\)*\$sname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sname))/ig,argIndex:2,argKey:"sName"},{regex:/((^|[^\\])((\\)\\)*\$lname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lname))/ig,argIndex:2,
argKey:"lName"},{regex:/((^|[^\\])((\\)\\)*\$fromid)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromid))/ig,argIndex:2,argKey:"fromId"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toid)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toid))/ig,argIndex:2,argKey:"toId"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$fromxvalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxvalue))/ig,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromyvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromyvalue))/ig,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxdatavalue))/ig,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromydatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromydatavalue))/ig,argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toxvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxvalue))/ig,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toyvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toyvalue))/ig,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxdatavalue))/ig,argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toydatavalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toydatavalue))/ig,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$openvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$openvalue))/ig,argIndex:2,argKey:"openValue"},{regex:/((^|[^\\])((\\)\\)*\$closevalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closevalue))/ig,argIndex:2,argKey:"closeValue"},{regex:/((^|[^\\])((\\)\\)*\$highvalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highvalue))/ig,argIndex:2,argKey:"highValue"},{regex:/((^|[^\\])((\\)\\)*\$lowvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowvalue))/ig,argIndex:2,argKey:"lowValue"},{regex:/((^|[^\\])((\\)\\)*\$opendatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$opendatavalue))/ig,argIndex:2,argKey:"openDataValue"},{regex:/((^|[^\\])((\\)\\)*\$closedatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closedatavalue))/ig,argIndex:2,argKey:"closeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$highdatavalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highdatavalue))/ig,argIndex:2,argKey:"highDataValue"},{regex:/((^|[^\\])((\\)\\)*\$lowdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowdatavalue))/ig,argIndex:2,argKey:"lowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$maxvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxvalue))/ig,argIndex:2,argKey:"maxValue"},{regex:/((^|[^\\])((\\)\\)*\$maxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxdatavalue))/ig,argIndex:2,argKey:"maxDataValue"},{regex:/((^|[^\\])((\\)\\)*\$minvalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$minvalue))/ig,argIndex:2,argKey:"minValue"},{regex:/((^|[^\\])((\\)\\)*\$mindatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mindatavalue))/ig,argIndex:2,argKey:"minDataValue"},{regex:/((^|[^\\])((\\)\\)*\$q1)/ig,argIndex:2,argKey:"Q1"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ1)/ig,argIndex:2,argKey:"unformattedQ1"},{regex:/((^|[^\\])((\\)\\)*\$q3)/ig,argIndex:2,argKey:"Q3"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ3)/ig,argIndex:2,argKey:"unformattedQ3"},{regex:/((^|[^\\])((\\)\\)*\$median)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$median))/ig,argIndex:2,argKey:"median"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMedian)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMedian))/ig,argIndex:2,argKey:"unformattedMedian"},{regex:/((^|[^\\])((\\)\\)*\$SD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$SD))/ig,argIndex:2,argKey:"SD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsd)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsd))/ig,argIndex:2,argKey:"unformattedsd"},{regex:/((^|[^\\])((\\)\\)*\$QD)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$QD))/ig,argIndex:2,argKey:"QD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedQD))/ig,argIndex:2,argKey:"unformattedQD"},{regex:/((^|[^\\])((\\)\\)*\$MD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$MD))/ig,argIndex:2,argKey:"MD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMD))/ig,argIndex:2,argKey:"unformattedMD"},{regex:/((^|[^\\])((\\)\\)*\$mean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mean))/ig,
argIndex:2,argKey:"mean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/ig,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/ig,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$volumeValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeValue))/ig,argIndex:2,argKey:"volumeValue"},{regex:/((^|[^\\])((\\)\\)*\$volumeDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeDataValue))/ig,
argIndex:2,argKey:"volumeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXValue))/ig,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYValue))/ig,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXDataValue))/ig,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYDataValue))/ig,
argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromLabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toXValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXValue))/ig,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toYValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYValue))/ig,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toXDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXDataValue))/ig,
argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toYDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYDataValue))/ig,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$tlLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlLabel))/ig,argIndex:5,argKey:"tlLabel"},{regex:/((^|[^\\])((\\)\\)*\$trlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trlabel))/ig,argIndex:5,
argKey:"trLabel"},{regex:/((^|[^\\])((\\)\\)*\$bllabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$bllabel))/ig,argIndex:5,argKey:"blLabel"},{regex:/((^|[^\\])((\\)\\)*\$brlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brlabel))/ig,argIndex:5,argKey:"brLabel"},{regex:/((^|[^\\])((\\)\\)*\$rowlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$rowlabel))/ig,argIndex:5,argKey:"rowLabel"},{regex:/((^|[^\\])((\\)\\)*\$columnlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$columnlabel))/ig,argIndex:5,argKey:"columnLabel"},
{regex:/((^|[^\\])((\\)\\)*\$errorvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorvalue))/ig,argIndex:2,argKey:"errorValue"},{regex:/((^|[^\\])((\\)\\)*\$errordatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errordatavalue))/ig,argIndex:2,argKey:"errorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentvalue))/ig,argIndex:2,argKey:"errorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentdatavalue))/ig,
argIndex:2,argKey:"errorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorValue))/ig,argIndex:2,argKey:"horizontalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorDataValue))/ig,argIndex:2,argKey:"horizontalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorValue))/ig,argIndex:2,argKey:"verticalErrorValue"},
{regex:/((^|[^\\])((\\)\\)*\$verticalErrorDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorDataValue))/ig,argIndex:2,argKey:"verticalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercent)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentValue))/ig,argIndex:2,argKey:"horizontalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercentDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentDataValue))/ig,argIndex:2,argKey:"horizontalErrorPercentDataValue"},
{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercent)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentValue))/ig,argIndex:2,argKey:"verticalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercentDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentDataValue))/ig,argIndex:2,argKey:"verticalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xaxispercentvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxispercentvalue))/ig,argIndex:2,argKey:"xAxisPercentValue"},
{regex:/((^|[^\\])((\\)\\)*\$percentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentdatavalue))/ig,argIndex:2,argKey:"percentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$trType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trType))/ig,argIndex:4,argKey:"trtype"},{regex:/((^|[^\\])((\\)\\)*\$tlType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlType))/ig,argIndex:4,argKey:"tltype"},{regex:/((^|[^\\])((\\)\\)*\$brType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brType))/ig,argIndex:4,argKey:"brtype"},{regex:/((^|[^\\])((\\)\\)*\$blType)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$blType))/ig,argIndex:4,argKey:"bltype"},{regex:/((^|[^\\])((\\)\\)*\$colorRangeLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$colorRangeLabel))/ig,argIndex:5,argKey:"colorRangeLabel"},{regex:/((^|[^\\])((\\)\\)*\$zdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zdatavalue))/ig,argIndex:2,argKey:"zDataValue"}],c=[],b,k=a.length;for(b=0;b<k;b+=1)c.push(b);return function(){var b=arguments[0],k=arguments[1],e,d,r,g,M;U(k)||(k=c);if(b)for(M=k.length,g=0;g<M;g+=
1)if(r=a[k[g]])e=ia(wa((d=arguments[r.argIndex])&&d[r.argKey],"")+""),b=b.replace(r.regex,"$2$4"+(r.parsingMethod?r.parsingMethod(e):e)),b=b.replace(r.escapeRegex,"$2$4$5");return b}}();d.core._setLineHeightFactor=function(a){!(a=c(a))||0>a||(fa.lineHeightFactor=a)};d.extend(fa,{BLANKSTRINGPLACEHOLDER:"#BLANK#",BLANKSTRING:"",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:"0",SAMPLESTRING:"Ay0",TESTSTR:"Ag",ONESTRING:"1",DECIMALSTRING:".",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",TOUCH_THRESHOLD_PIXELS:15,CLICK_THRESHOLD_PIXELS:5,regex:{stripWhitespace:K,
dropHash:b,startsRGBA:H,cleanColorCode:a,breakPlaceholder:z,hexcode:/^#?[0-9a-f]{6}/i},fireEvent:function(a,c,b,k){fa.dem.fire(a,c,b,k)},plotEventHandler:function(a,c,b){c=c||{};var k=c.type,e=P(a.container,c),e=Ia(e,this.data("eventArgs")),r=a.logic.fireGroupEvent,g=this.data("groupId"),h=function(a,b){c.FusionChartsPreventEvent=!0;n&&b.toolText&&fa.toolTip&&fa.toolTip.preventTooltip()};"index"in e&&!("dataIndex"in e)&&(e.dataIndex=e.index);"value"in e&&!("dataValue"in e)&&(e.dataValue=e.value);
b=aa(b,"dataplotclick").toLowerCase();"dataplotrollover"===b?(c.FusionChartsPreventEvent=!1,r?d.raiseEventGroup(g,b,e,a.fusionCharts,void 0,void 0,h):d.raiseEvent(b,e,a.logic.chartInstance,void 0,void 0,h)):r&&"dataplotclick"!==b?d.raiseEventGroup(g,b,e,a.fusionCharts):d.raiseEvent(b,e,a.logic.chartInstance);("click"===k||"mouseup"===k||"touchend"===k&&"dataplotclick"===b)&&a.linkClickFN.call({link:e.link},a)},getEventCoordinate:X,getMouseCoordinate:P,addEvent:ka,removeEvent:Y,getTouchEvent:ca,extend2:Ia,
deltend:function(a,c){if("object"!==typeof a||"object"!==typeof c)return null;Ta(a,c);return a},imprint:function(a,c,b){var k;if("object"!==typeof a||null===a)return c;if("object"!==typeof c||null===c)return a;for(k in c)if(void 0===a[k]||!b&&null===a[k])a[k]=c[k];return a},pluck:aa,pluckNumber:T,getFirstDefinedValue:function(){var a,c,b;c=0;for(b=arguments.length;c<b;c+=1)if((a=arguments[c])||!1===a||0===a||""==a)return a},createElement:function(a,c,b){a=D.createElement(a);for(var k in c)a.setAttribute(k,
c[k]);b&&b.appendChild&&b.appendChild(a);return a},hashify:Q,pluckFontSize:function(){var a,c,b;c=0;for(b=arguments.length;c<b;c+=1)if(((a=arguments[c])||!1===a||0===a)&&!isNaN(a=Number(a)))return 1>a?1:a;return 1},getValidValue:wa,getPosition:V,getViewPortDimension:w,bindSelectionEvent:function(a,c){c=c||{};var b=a.options.chart,k=a.container,e=b.zoomType,d=Ia({},c.attr||{}),r=d["stroke-width"]=T(d.strokeWidth,d["stroke-width"],1),g=V(k),h=a.eventListeners||(a.eventListeners=[]);c=Ia({chart:a,zoomX:/x/.test(e),
zoomY:/y/.test(e),canvasY:a.canvasTop,canvasX:a.canvasLeft,canvasW:a.canvasWidth,canvasH:a.canvasHeight,canvasX2:a.canvasLeft+a.canvasWidth,canvasY2:a.canvasTop+a.canvasHeight,strokeWidth:r,chartPosLeft:g.left,chartPosTop:g.top,attr:d},c);d.stroke=ja(d.stroke,"rgba(51,153,255,0.8)");d.fill=ja(d.fill,"rgba(185,213,241,0.3)");d.ishot=!0;k&&(Y(k,"pointerdrag",q),h.push(ka(k,"pointerdrag",q,c)));b.link&&(Y(a.container,"mouseup mousedown",da),h.push(ka(a.container,"mouseup mousedown",da,c)))},createContextMenu:function(a){var c=
a.chart,b=c.smartLabel,k=c.logic.hcJSON&&c.logic.hcJSON.chart.useRoundEdges,e=fa.Raphael,d=function(a){var c=a.menufillcolor&&Q(a.menufillcolor),b=a.menulabelcolor&&Q(a.menulabelcolor),B=a.menufillhovercolor&&Q(a.menufillhovercolor);a=a.menulabelhovercolor&&Q(a.menulabelhovercolor);return{attrs:{backgroundColor:c,color:b},hover:{backgroundColor:B,color:a}}}(c.definition.chart),r=function(a,c,b){c=c||{};a=(a=(a=a&&e.tintshade(a.color,.7))&&e.getRGB(a))&&"rgb("+[a.r,a.g,a.b].join()+")";return{backgroundColor:c.backgroundHoverColor||
b.backgroundColor||a||"rgb(64, 64, 64)",color:c.hoverColor||b.color||"#FFFFFF"}}(a.basicStyle,a.hover,d.hover),g=function(a,c,b){c=Ia({},c||{});c=Ia(c,a);return{fontFamily:c.fontFamily||"Verdana,sans",fontSize:c.fontSize||"10px",color:c.color||b.color||"#000000",backgroundColor:c.backgroundColor||b.backgroundColor||"rgb(255, 255, 255)"}}(a.basicStyle,a.attrs,d.attrs),h={textAlign:"left",align:"left",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",cursor:"pointer",borderWidth:"0px"},l=a.items,
J=a.position,t=a.verticalPadding||3,I=a.horizontalPadding||6,q={},P,A,U,m,z,w,R,ja,N,T,aa,G,Fa;if(c)P=V(c.container);else return!1;m=function(){var a=q.items,c=a.length,u=0,B=0,F=0,f,e;q.menuItems||(q.menuItems=[]);for(b.setStyle(g);c--;)f=a[c],f=b.getOriSize(f.text),F||(F=f.height+2*t),u+=F,B=p(B,f.width+2*I);q.height=u;q.width=B;q.itemH=F;this.style.width=B+"px";q.menuRect||(u=q.menuRect=D.createElement("div"),u.style.border="1px solid rgb(100, 100, 100)",k&&(u.style.mozBorderRadius="4px",u.style.webkitBorderRadius=
"4px",u.style.borderRadius="4px",u.style.overflow="hidden"),n&&!v?u.style.filter="progid:DXImageTransform.Microsoft.Shadow(Color=#999999,direction=135,strength=3)":(u.style.mozBoxShadow="3px 3px 3px #999",u.style.webkitBoxShadow="3px 3px 3px #999",u.style.boxShadow="3px 3px 3px #999"),this.appendChild(u));B=a.length;for(c=0;c<B;c+=1)if(f=a[c],q.menuItems[c])q.menuItems[c].label.innerHTML=f.text;else{q.menuItems[c]={};u=q.menuItems[c].box=D.createElement("div");u.style.height=F+"px";u.style.lineHeight=
F+"px";for(e in h)u.style[e]=h[e];for(e in g)u.style[e]=g[e];q.menuRect.appendChild(u);u.innerHTML=f.text;fa.dem.listen(u,"click",Fa);fa.dem.listen(u,"pointerhover",T);q.menuItems[c].box._itemIdx=c}for(;q.menuItems[c];)q.menuItems[c].box.parentNode.removeChild(q.menuItems[c].box),q.menuItems.splice(c,1)};z=function(){U||(U=D.createElement("div"),U.style.position="absolute",U.style.zIndex="50",U.style.display="none",c.container.appendChild&&c.container.appendChild(U));return U};w=function(){A=setTimeout(q.hide,
800)};R=function(){A&&clearTimeout(A)};ja=function(a){var b=a.x;a=a.y;var u={x:b,y:a},B=q.width,k=q.height,f=c.chartHeight,e=c.chartWidth;b+B>e&&0<b-B?u.x-=B:b+B>e&&(u.x=0);a+k>f&&0<a-k&&(u.y-=k);return u};N=function(){q.hide()};T=function(a){a.target&&a.target.parentNode&&("start"===a.state?aa:G).call(a.target)};aa=function(){var a=q.menuItems[this._itemIdx],c;R();for(c in r)a.box.style[c]=r[c]};G=function(){var a=q.menuItems[this._itemIdx],c;for(c in g)a.box.style[c]=g[c];w()};Fa=function(a){var c=
q.items[this._itemIdx];c.onclick&&c.onclick.call(c,a);a.originalEvent.stopPropagation?a.originalEvent.stopPropagation():a.originalEvent.cancelBubble=!0;q.hide()};q.showItem=function(a){a=this.menuItems[a];var c=this.height,b=this.itemH;a&&a._isHidden&&(a.box.style.display="",this.height=c+b,a._isHidden=!1,a=ja(J),this.left=a.x,this.top=a.y)};q.hideItem=function(a){a=this.menuItems[a];var c=this.height,b=this.itemH;a&&!a._isHidden&&(a.box.style.display="none",this.height=c-b,a._isHidden=!0,a=ja(J),
this.left=a.x,this.top=a.y)};q.redraw=function(){var a=this.menuContainer;this.items=l;a?m.call(this.menuContainer):J&&void 0!==J.x&&void 0!==J.y?(this.menuContainer=z(),m.call(this.menuContainer),a=ja(J),this.left=a.x,this.top=a.y,this.menuContainer.style.left=this.left+"px",this.menuContainer.style.top=this.top+"px"):(this.menuContainer=z(),m.call(this.menuContainer))};q.show=function(a){var c=this;a&&void 0!==a.x&&void 0!==a.y?(a=ja(a),c.menuContainer.style.left=a.x+"px",c.menuContainer.style.top=
a.y+"px"):(c.menuContainer.style.left=c.left+"px",c.menuContainer.style.top=c.top+"px");c.menuContainer.style.display="";setTimeout(function(){c.visible=!0;e.click(N)},400)};q.hide=function(){this.visible&&(this.visible=!1,q.menuContainer.style.display="none",q.menuContainer.style.left=-q.width+"px",q.menuContainer.style.top=-q.height+"px",e.unclick(N))};q.update=function(a){a&&a.length&&(this.items=a,this.redraw())};q.updatePosition=function(a){var b=P.left,u=P.top;P=V(c.container);a?(J=a,a=ja(a),
this.left=a.x,this.top=a.y):(this.left-=b-P.left,this.top-=u-P.top)};q.add=function(a){var c=this.menuItems,u=c.length,B;b.setStyle(g);this.width=p(this.width,b.getOriSize(a.text).width);c[u]={};c=c[u].box=D.createElement("div");c.style.height=this.itemH+"px";c.style.lineHeight=this.itemH+"px";for(B in h)c.style[B]=h[B];for(B in g)c.style[B]=g[B];q.menuRect.appendChild(c);c.innerHTML=a.text;fa.dem.listen(c,"click",Fa);fa.dem.listen(c,"pointerhover",T);q.menuItems[u].box._itemIdx=u;this.height+=this.itemH};
q.removeItems=function(){for(var a=this.menuItems,c=a&&a.length,b;c--;)b=a[c],fa.dem.unlisten(b.box,"click",Fa),fa.dem.unlisten(b.box,"pointerhover",T),b.box&&b.box.parentNode&&b.box.parentNode.removeChild(b.box);delete this.menuItems;delete this.items};q.setPosition=function(a){void 0!==a.x&&void 0!==a.y&&(this.menuContainer.style.x=a.x,this.menuContainer.style.y=a.y)};q.destroy=function(){this.removeItems();this.menuContainer.parentNode.removeChild(this.menuContainer)};l&&l.length&&(q.redraw(),
q.hide());return q},getDefinedColor:function(a,c){return a||0===a||""===a?a:c},getFirstValue:ja,getFirstColor:function(a){a=a.split(",")[0];a=a.replace(K,"");""==a&&(a="000000");return a.replace(b,"#")},getColorCodeString:function(a,c){var b="",k,e,d=0,r=c.split(",");for(e=r.length;d<e;d+=1)k=r[d].split("-"),b=2===k.length?"-1"!==k[0].indexOf("dark")?b+(Ha(a,100-parseInt(k[1],10))+","):b+(ab(a,100-parseInt(k[1],10))+","):b+(r[d]+",");return b.substring(0,b.length-1)},pluckColor:function(a){if(wa(a))return a=
a.split(",")[0],a=a.replace(K,""),""==a&&(a="000000"),a.replace(b,"#")},toRaphaelColor:La,gradientify:Ra,trimString:function(a){a=a.replace(/^\s\s*/,"");for(var c=/\s/,b=a.length;c.test(a.charAt(b-=1)););return a.slice(0,b+1)},getFirstAlpha:function(a){a=parseInt(a,10);if(isNaN(a)||100<a||0>a)a=100;return a},parsePointValue:r,parseUnsafeString:J,parseTooltext:k,toPrecision:function(a,c){var b=A(10,c);return g(a*b)/b},hasTouch:l,CREDIT_HREF:N,CREDIT_STRING:"FusionCharts XT Trial",getSentenceCase:function(a){a=
a||"";return a.charAt(0).toUpperCase()+a.substr(1)},getCrispValues:function(a,c,b){var k=b%2/2;b=g(a+k)-k;a=g(a+c+k)-k-b;return{position:b,distance:a}},regescape:function(a){return a&&a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},regReplaceEscape:ia,isArray:U,stubFN:function(){},falseFN:function(){return!1},stableSort:function(a,c){var b=a.length,k;for(k=0;k<b;k++)a[k].ssI=k;a.sort(function(a,b){var k=c(a,b);return 0===k?a.ssI-b.ssI:k});for(k=0;k<b;k++)delete a[k].ssI},hasSVG:v,isIE:n,lineHeightFactor:1.2,
getLinkAction:function(a,c){var b=function(a){return a};return function(){var k=T((a.chart||a.map||{}).unescapelinks,1),e=ja(this.link,""),r=aa(e,this.options&&this.options.chart&&this.options.chart.link||"",this.series&&this.series.chart&&this.series.chart.options&&this.series.chart.options.chart&&this.series.chart.options.chart.link||""),g=r,h,p,J,l,q,t,I,n,P,U;void 0!==r&&(k&&(r=m.decodeURIComponent?m.decodeURIComponent(r):m.unescape(r)),r=r.replace(/^\s+/,"").replace(/\s+$/,""),-1!==r.search(/^[a-z]*\s*[\-\:]\s*/i)&&
(q=r.split(/\s*[\-\:]\s*/)[0].toLowerCase(),U=q.length),setTimeout(function(){switch(q){case "j":r=r.replace(/^j\s*\-/i,"j-");h=r.indexOf("-",2);-1===h?ea(r.slice(2)):ea(r.substr(2,h-2).replace(/\s/g,""),r.slice(h+1));break;case "javascript":za(r.replace(/^javascript\s*\:/i,""));break;case "n":r.replace(/^n\s*\-/i,"n-");m.open(b(r.slice(2),k));break;case "f":r=r.replace(/^f\s*\-/i,"f-");h=r.indexOf("-",2);-1!==h?(p=r.substr(2,h-2))&&m.frames[p]?m.frames[p].location=b(r.slice(h+1),k):m.open(b(r.slice(h+
1),k),p):m.open(b(r.slice(2),k));break;case "p":r=r.replace(/p\s*\-/i,"p-");h=r.indexOf("-",2);J=r.indexOf(",",2);-1===h&&(h=1);l=b(r.slice(h+1),k);m.open(l,r.substr(2,J-2),r.substr(J+1,h-J-1)).focus();break;case "newchart":case "newmap":":"===r.charAt(U)&&(h=r.indexOf("-",U+1),P=r.substring(U+1,h),U=h);h=r.indexOf("-",U+1);t=r.substring(U+1,h).toLowerCase();switch(t){case "xmlurl":case "jsonurl":n=r.substring(h+1,r.length);break;case "xml":case "json":var e=I=r.substring(h+1,r.length),A={chart:{}},
z,e=e.toLowerCase();if(a.linkeddata)for(z=0;z<a.linkeddata.length;z+=1)a.linkeddata[z].id.toLowerCase()===e&&(A=a.linkeddata[z].linkedchart||a.linkeddata[z].linkedmap);n=A;t="json"}d.raiseEvent("linkedChartInvoked",{alias:P,linkType:t.toUpperCase(),data:n},c);break;default:m.location.href=r}d.raiseEvent("linkClicked",{linkProvided:g,linkInvoked:r,linkAction:q&&q.toLowerCase()},c)},0))}},graphics:{parseAlpha:W,convertColor:pa,getDarkColor:ab,getLightColor:Ha,mapSymbolName:function(a,c){var b="circle";
a=r(a);3<=a&&(b=(c?"spoke_":"poly_")+a);return b},getColumnColor:function(a,c,b,k,e,d,r,g,h){var p,J;p=a.split(",");J=c.split(",");d=d.split(",");r=r.split(",");a=a.replace(/\s/g,"").replace(/\,$/,"");h?g={FCcolor:{color:p[0],alpha:J[0]}}:e?(a=p[0],J=J[0],g={FCcolor:{color:ab(a,75)+","+Ha(a,10)+","+ab(a,90)+","+Ha(a,55)+","+ab(a,80),alpha:J+","+J+","+J+","+J+","+J,ratio:"0,11,14,57,18",angle:g?"90":"0"}},d=[ab(a,70)]):(c=W(c,p.length),g={FCcolor:{color:a,alpha:c,ratio:b,angle:g?-k:k}});return[g,{FCcolor:{color:d[0],
alpha:r[0]}}]},getAngle:function(a,c,b){a=180*Math.atan(c/a)/Math.PI;2==b?a=180-a:3==b?a+=180:4==b&&(a=360-a);return a},parseColor:Ja,getValidColor:function(a){return G.test(Ja(a))&&a},HSBtoRGB:function(a){var c=a[0],b=0,k=0,e=0,d=[],d=a[1]/100;a=a[2]/100;var r=c/60-Math.floor(c/60),h=a*(1-d),p=a*(1-r*d),d=a*(1-(1-r)*d);switch(Math.floor(c/60)%6){case 0:b=a;k=d;e=h;break;case 1:b=p;k=a;e=h;break;case 2:b=h;k=a;e=d;break;case 3:b=h;k=p;e=a;break;case 4:b=d;k=h;e=a;break;case 5:b=a,k=h,e=p}return d=
[g(255*b),g(255*k),g(255*e)]},RGBtoHSB:function(a){var c=a[0],b=a[1];a=a[2];var k=Math.max(Math.max(c,b),a),e=Math.min(Math.min(c,b),a),d=0,r=0;k==e?d=0:k==c?d=(60*(b-a)/(k-e)+360)%360:k==b?d=60*(a-c)/(k-e)+120:k==a&&(d=60*(c-b)/(k-e)+240);r=0===k?0:(k-e)/k;return[g(d),g(100*r),g(k/255*100)]},RGBtoHex:function(a){return("000000"+(a[0]<<16|a[1]<<8|a[2]).toString(16)).slice(-6)},HEXtoRGB:Qa},setImageDisplayMode:function(a,c,b,k,e,d,r,g){var h=k/100*g.width;k=k/100*g.height;g={};var p,J=d-2*e;p=r-2*
e;var l=function(a,c,b,k,d,r){var g={};switch(a){case "top":g.y=e;break;case "bottom":g.y=r-k-e;break;case "middle":g.y=(r-k)/2}switch(c){case "left":g.x=e;break;case "right":g.x=d-b-e;break;case "middle":g.x=(d-b)/2}return g};switch(a){case "center":g.width=h;g.height=k;g.y=r/2-k/2;g.x=d/2-h/2;break;case "stretch":g.width=d-2*e;g.height=r-2*e;g.y=e;g.x=e;break;case "tile":g.width=h;g.height=k;g.tileInfo={};g.tileInfo.xCount=a=Math.ceil(J/h);g.tileInfo.yCount=p=Math.ceil(p/k);c=l(c,b,h*a,k*p,d,r);
g.y=c.y;g.x=c.x;break;case "fit":a=h/k>J/p?J/h:p/k;g.width=h*a;g.height=k*a;c=l(c,b,g.width,g.height,d,r);g.y=c.y;g.x=c.x;break;case "fill":a=h/k>J/p?p/k:J/h;g.width=h*a;g.height=k*a;c=l(c,b,g.width,g.height,d,r);g.y=c.y;g.x=c.x;break;default:c=l(c,b,h,k,d,r),g.width=h,g.height=k,g.y=c.y,g.x=c.x}return g},setLineHeight:Na,parsexAxisStyles:Ea,supportedStyle:{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"},getAxisLimits:nb,createTrendLine:Za,getDashStyle:ib,axisLabelAdder:Ya,chartAPI:sb,createDialog:Sb})}]);
window.FusionCharts&&window.FusionCharts.register("module",["private","vendor.redraphael",function(){var d=this.hcLib,m=window.Raphael,D;(function(){(function(d,n){var c=/[\.\/]/,m=function(){},b=function(a,c){return a-c},H,a,z={n:{}},G=function(c,d){c=String(c);var g=a,e=Array.prototype.slice.call(arguments,2),h=G.listeners(c),l=0,n,m=[],p={},z=[],t=H;H=c;for(var v=a=0,q=h.length;v<q;v++)"zIndex"in h[v]&&(m.push(h[v].zIndex),0>h[v].zIndex&&(p[h[v].zIndex]=h[v]));for(m.sort(b);0>m[l];)if(n=p[m[l++]],
z.push(n.apply(d,e)),a)return a=g,z;for(v=0;v<q;v++)if(n=h[v],"zIndex"in n)if(n.zIndex==m[l]){z.push(n.apply(d,e));if(a)break;do if(l++,(n=p[m[l]])&&z.push(n.apply(d,e)),a)break;while(n)}else p[n.zIndex]=n;else if(z.push(n.apply(d,e)),a)break;a=g;H=t;return z.length?z:null};G._events=z;G.listeners=function(a){a=a.split(c);var b=z,d,e,h,l,n,m,p,R=[b],t=[];h=0;for(l=a.length;h<l;h++){p=[];n=0;for(m=R.length;n<m;n++)for(b=R[n].n,d=[b[a[h]],b["*"]],e=2;e--;)if(b=d[e])p.push(b),t=t.concat(b.f||[]);R=p}return t};
G.on=function(a,b){a=String(a);if("function"!=typeof b)return function(){};for(var d=a.split(c),e=z,h=0,l=d.length;h<l;h++)e=e.n,e=e.hasOwnProperty(d[h])&&e[d[h]]||(e[d[h]]={n:{}});e.f=e.f||[];h=0;for(l=e.f.length;h<l;h++)if(e.f[h]==b)return m;e.f.push(b);return function(a){+a==+a&&(b.zIndex=+a)}};G.f=function(a){var c=[].slice.call(arguments,1);return function(){G.apply(null,[a,null].concat(c).concat([].slice.call(arguments,0)))}};G.stop=function(){a=1};G.nt=function(a){return a?(new RegExp("(?:\\.|\\/|^)"+
a+"(?:\\.|\\/|$)")).test(H):H};G.nts=function(){return H.split(c)};G.off=G.unbind=function(a,b){if(a){var d=a.split(c),e,h,l,n,m,p,R=[z];n=0;for(m=d.length;n<m;n++)for(p=0;p<R.length;p+=l.length-2){l=[p,1];e=R[p].n;if("*"!=d[n])e[d[n]]&&l.push(e[d[n]]);else for(h in e)e.hasOwnProperty(h)&&l.push(e[h]);R.splice.apply(R,l)}n=0;for(m=R.length;n<m;n++)for(e=R[n];e.n;){if(b){if(e.f){p=0;for(d=e.f.length;p<d;p++)if(e.f[p]==b){e.f.splice(p,1);break}!e.f.length&&delete e.f}for(h in e.n)if(e.n.hasOwnProperty(h)&&
e.n[h].f){l=e.n[h].f;p=0;for(d=l.length;p<d;p++)if(l[p]==b){l.splice(p,1);break}!l.length&&delete e.n[h].f}}else for(h in delete e.f,e.n)e.n.hasOwnProperty(h)&&e.n[h].f&&delete e.n[h].f;e=e.n}}else G._events=z={n:{}}};G.once=function(a,c){var b=function(){G.unbind(a,b);return c.apply(this,arguments)};return G.on(a,b)};G.version="0.4.2";G.toString=function(){return"You are running Eve 0.4.2"};"undefined"!=typeof module&&module.exports?module.exports=G:n||"undefined"==typeof define?d.eve=G:define("eve",
[],function(){return G})})(this,!0);(function(d,n,c){!c&&"function"===typeof define&&define.amd?define(["eve"],function(c){return n(d,c)}):n(d,d.eve)})(this,function(d,n){function c(a){var b,f;c._url="";if(c.is(a,"function"))return l?a():n.on("raphael.DOMload",a);if(c.is(a,p))return c._engine.create[N](c,a.splice(0,3+c.is(a[0],w))).add(a);b=Array.prototype.slice.call(arguments,0);return c.is(b[b.length-1],"function")?(f=b.pop(),l?f.call(c._engine.create[N](c,b)):n.on("raphael.DOMload",function(){f.call(c._engine.create[N](c,
b))})):c._engine.create[N](c,arguments)}function m(){return this.hex}function b(a,c){for(var b=[],f=0,s=a.length;s-2*!c>f;f+=2){var u=[{x:+a[f-2],y:+a[f-1]},{x:+a[f],y:+a[f+1]},{x:+a[f+2],y:+a[f+3]},{x:+a[f+4],y:+a[f+5]}];c?f?s-4==f?u[3]={x:+a[0],y:+a[1]}:s-2==f&&(u[2]={x:+a[0],y:+a[1]},u[3]={x:+a[2],y:+a[3]}):u[0]={x:+a[s-2],y:+a[s-1]}:s-4==f?u[3]=u[2]:f||(u[0]={x:+a[f],y:+a[f+1]});b.push(["C",(-u[0].x+6*u[1].x+u[2].x)/6,(-u[0].y+6*u[1].y+u[2].y)/6,(u[1].x+6*u[2].x-u[3].x)/6,(u[1].y+6*u[2].y-u[3].y)/
6,u[2].x,u[2].y])}return b}function H(a,c,b,f,s,u,k,B,e){null==e&&(e=1);e=(1<e?1:0>e?0:e)/2;for(var F=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],r=0,g=0;12>g;g++)var O=e*F[g]+e,h=O*(O*(-3*a+9*b-9*s+3*k)+6*a-12*b+6*s)-3*a+3*b,O=O*(O*(-3*c+9*f-9*u+3*B)+6*c-12*f+6*u)-3*c+3*f,r=r+d[g]*za(h*h+O*O);return e*r}function a(a,c,b,f,s,u,k,B,e){if(!(0>e||H(a,c,b,f,s,u,k,B)<e)){var F=.5,d=1-F,r;for(r=
H(a,c,b,f,s,u,k,B,d);.01<Fa(r-e);)F/=2,d+=(r<e?1:-1)*F,r=H(a,c,b,f,s,u,k,B,d);return d}}function z(a,b,f){a=c._path2curve(a);b=c._path2curve(b);for(var s,u,k,B,e,F,d,r,g,O,h=f?0:[],C=0,va=a.length;C<va;C++)if(g=a[C],"M"==g[0])s=e=g[1],u=F=g[2];else{"C"==g[0]?(g=[s,u].concat(g.slice(1)),s=g[6],u=g[7]):(g=[s,u,s,u,e,F,e,F],s=e,u=F);for(var p=0,J=b.length;p<J;p++)if(O=b[p],"M"==O[0])k=d=O[1],B=r=O[2];else{"C"==O[0]?(O=[k,B].concat(O.slice(1)),k=O[6],B=O[7]):(O=[k,B,k,B,d,r,d,r],k=d,B=r);var l;var ba=
g,q=O;l=f;var n=c.bezierBBox(ba),E=c.bezierBBox(q);if(c.isBBoxIntersect(n,E)){for(var n=H.apply(0,ba),E=H.apply(0,q),n=I(~~(n/5),1),E=I(~~(E/5),1),M=[],t=[],Aa={},P=l?0:[],m=0;m<n+1;m++){var z=c.findDotsAtSegment.apply(c,ba.concat(m/n));M.push({x:z.x,y:z.y,t:m/n})}for(m=0;m<E+1;m++)z=c.findDotsAtSegment.apply(c,q.concat(m/E)),t.push({x:z.x,y:z.y,t:m/E});for(m=0;m<n;m++)for(ba=0;ba<E;ba++){var ta=M[m],Wa=M[m+1],q=t[ba],z=t[ba+1],Zb=.001>Fa(Wa.x-ta.x)?"y":"x",Cc=.001>Fa(z.x-q.x)?"y":"x",A;A=ta.x;var sc=
ta.y,Q=Wa.x,Z=Wa.y,qc=q.x,w=q.y,rc=z.x,ra=z.y;if(I(A,Q)<U(qc,rc)||U(A,Q)>I(qc,rc)||I(sc,Z)<U(w,ra)||U(sc,Z)>I(w,ra))A=void 0;else{var ja=(A*Z-sc*Q)*(qc-rc)-(A-Q)*(qc*ra-w*rc),R=(A*Z-sc*Q)*(w-ra)-(sc-Z)*(qc*ra-w*rc),ha=(A-Q)*(w-ra)-(sc-Z)*(qc-rc);if(ha){var ja=ja/ha,R=R/ha,ha=+ja.toFixed(2),T=+R.toFixed(2);A=ha<+U(A,Q).toFixed(2)||ha>+I(A,Q).toFixed(2)||ha<+U(qc,rc).toFixed(2)||ha>+I(qc,rc).toFixed(2)||T<+U(sc,Z).toFixed(2)||T>+I(sc,Z).toFixed(2)||T<+U(w,ra).toFixed(2)||T>+I(w,ra).toFixed(2)?void 0:
{x:ja,y:R}}else A=void 0}A&&Aa[A.x.toFixed(4)]!=A.y.toFixed(4)&&(Aa[A.x.toFixed(4)]=A.y.toFixed(4),ta=ta.t+Fa((A[Zb]-ta[Zb])/(Wa[Zb]-ta[Zb]))*(Wa.t-ta.t),q=q.t+Fa((A[Cc]-q[Cc])/(z[Cc]-q[Cc]))*(z.t-q.t),0<=ta&&1.001>=ta&&0<=q&&1.001>=q&&(l?P++:P.push({x:A.x,y:A.y,t1:U(ta,1),t2:U(q,1)})))}l=P}else l=l?0:[];if(f)h+=l;else{n=0;for(E=l.length;n<E;n++)l[n].segment1=C,l[n].segment2=p,l[n].bez1=g,l[n].bez2=O;h=h.concat(l)}}}return h}function G(a,c,b,f,s,u){null!=a?(this.a=+a,this.b=+c,this.c=+b,this.d=+f,
this.e=+s,this.f=+u):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function L(){return this.x+" "+this.y+" "+this.width+" × "+this.height}function A(a,c,b,f,s,u){function k(a,c){var b,Sa,f,s;f=a;for(Sa=0;8>Sa;Sa++){s=((F*f+e)*f+B)*f-a;if(Fa(s)<c)return f;b=(3*F*f+2*e)*f+B;if(1E-6>Fa(b))break;f-=s/b}b=0;Sa=1;f=a;if(f<b)return b;if(f>Sa)return Sa;for(;b<Sa;){s=((F*f+e)*f+B)*f;if(Fa(s-a)<c)break;a>s?b=f:Sa=f;f=(Sa-b)/2+b}return f}var B=3*c,e=3*(f-c)-B,F=1-B-e,d=3*b,r=3*(s-b)-d,g=1-d-r;return function(a,
c){var b=k(a,c);return((g*b+r)*b+d)*b}(a,1/(200*u))}function g(a,c){var b=[],f={};this.ms=c;this.times=1;if(a){for(var s in a)a.hasOwnProperty(s)&&(f[T(s)]=a[s],b.push(T(s)));b.sort(C)}this.anim=f;this.top=b[b.length-1];this.percents=b}function e(a,b,s,u,B,e){s=T(s);var F,d,r,g,O,h,C=a.ms,p={},J={},l={};if(u)for(h=0,q=Ma.length;h<q;h++){var ba=Ma[h];if(ba.el.id==b.id&&ba.anim==a){ba.percent!=s?(Ma.splice(h,1),r=1):d=ba;b.attr(ba.totalOrigin);break}}else u=+J;h=0;for(var q=a.percents.length;h<q;h++)if(a.percents[h]==
s||a.percents[h]>u*a.top){s=a.percents[h];O=a.percents[h-1]||0;C=C/a.top*(s-O);g=a.percents[h+1];F=a.anim[s];break}else u&&b.attr(a.anim[a.percents[h]]);if(F){if(d)d.initstatus=u,d.start=new Date-d.ms*u;else{for(var E in F)if(F.hasOwnProperty(E)&&(k.hasOwnProperty(E)||b.ca[E]))switch(p[E]=b.attr(E),null==p[E]&&(p[E]=sb[E]),J[E]=F[E],k[E]){case w:l[E]=(J[E]-p[E])/C;break;case "colour":p[E]=c.getRGB(p[E]);h=c.getRGB(J[E]);l[E]={r:(h.r-p[E].r)/C,g:(h.g-p[E].g)/C,b:(h.b-p[E].b)/C};break;case "path":h=
f(p[E],J[E]);ba=h[1];p[E]=h[0];l[E]=[];h=0;for(q=p[E].length;h<q;h++){l[E][h]=[0];for(var M=1,t=p[E][h].length;M<t;M++)l[E][h][M]=(ba[h][M]-p[E][h][M])/C}break;case "transform":h=b._;if(q=qc(h[E],J[E]))for(p[E]=q.from,J[E]=q.to,l[E]=[],l[E].real=!0,h=0,q=p[E].length;h<q;h++)for(l[E][h]=[p[E][h][0]],M=1,t=p[E][h].length;M<t;M++)l[E][h][M]=(J[E][h][M]-p[E][h][M])/C;else q=b.matrix||new G,h={_:{transform:h.transform},getBBox:function(){return b.getBBox(1)}},p[E]=[q.a,q.b,q.c,q.d,q.e,q.f],va(h,J[E]),
J[E]=h._.transform,l[E]=[(h.matrix.a-q.a)/C,(h.matrix.b-q.b)/C,(h.matrix.c-q.c)/C,(h.matrix.d-q.d)/C,(h.matrix.e-q.e)/C,(h.matrix.f-q.f)/C];break;case "csv":q=Q(F[E]).split(Ha);ba=Q(p[E]).split(Ha);if("clip-rect"==E)for(p[E]=ba,l[E]=[],h=ba.length;h--;)l[E][h]=(q[h]-p[E][h])/C;J[E]=q;break;default:for(q=[].concat(F[E]),ba=[].concat(p[E]),l[E]=[],h=b.ca[E].length;h--;)l[E][h]=((q[h]||0)-(ba[h]||0))/C}h=F.easing;E=c.easing_formulas[h];if(!E)if((E=Q(h).match(Ea))&&5==E.length){var Aa=E;E=function(a){return A(a,
+Aa[1],+Aa[2],+Aa[3],+Aa[4],C)}}else E=Z;h=F.start||a.start||+new Date;ba={anim:a,percent:s,timestamp:h,start:h+(a.del||0),status:0,initstatus:u||0,stop:!1,ms:C,easing:E,from:p,diff:l,to:J,el:b,callback:F.callback,prev:O,next:g,repeat:e||a.times,origin:b.attr(),totalOrigin:B};Ma.push(ba);if(u&&!d&&!r&&(ba.stop=!0,ba.start=new Date-C*u,1==Ma.length))return Vc();r&&(ba.start=new Date-ba.ms*u);1==Ma.length&&dd(Vc)}n("raphael.anim.start."+b.id,b,a)}}function h(a){for(var c=0;c<Ma.length;c++)Ma[c].el.paper==
a&&Ma.splice(c--,1)}c.upgrade="1.0.0";c.version="2.1.0";c.eve=n;D=c;var l,N="apply",w="number",p="array",R=Array.prototype.slice,t=Array.prototype.splice,fa=function(){return function(){}.hasOwnProperty("prototype")}(),q={doc:document,win:d},da=Object.prototype.hasOwnProperty.call(q.win,"Raphael"),V=q.win.Raphael,ia=q.doc,wa=q.win,ja=c.supportsTouch="createTouch"in ia,aa=function(){};c.ca=c.customAttributes=aa.prototype;var ka=function(){this.ca=this.customAttributes=new aa;this._CustomAttributes=
function(){};this._CustomAttributes.prototype=this.ca;this._elementsById={};this.id=c._oid++;n("raphael.new",this)},Y=c.fn=ka.prototype=c.prototype,ca={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},X="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel".split(" "),P=c._touchMap={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},Q=wa.String,T=wa.parseFloat,r=wa.parseInt,J=wa.Math,I=J.max,U=J.min,Fa=J.abs,Ia=J.pow,Ta=J.cos,
ea=J.sin,za=J.sqrt,Da=J.round,W=J.PI,pa=W/180,La=180/W,Ra=Q.prototype.toLowerCase,Ja=Q.prototype.toUpperCase,ab=wa.Object.prototype.toString,Ha=/[, ]+/,Qa=/\{(\d+)\}/g;c._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var Na=/^\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,
Ea=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Ya=/[\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]*/,nb=/,?([achlmqrstvxz]),?/gi,Sb=/([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,
Fb=/([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,Za=/(-?\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;
c._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/;var ib={NaN:1,Infinity:1,"-Infinity":1},pb={hs:1,rg:1},sb=c._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,target:"_blank","text-anchor":"middle",visibility:"",title:"",transform:"",rotation:0,width:0,x:0,y:0},k=c._availableAnimAttrs={blur:w,"clip-rect":"csv","clip-path":"path",cx:w,cy:w,fill:"colour","fill-opacity":w,"font-size":w,height:w,opacity:w,path:"path",r:w,rx:w,ry:w,stroke:"colour","stroke-opacity":w,"stroke-width":w,transform:"transform",width:w,
x:w,y:w},E={},C=function(a,c){return T(a)-T(c)},M=function(){},Z=function(a){return a},ha=c._rectPath=function(a,c,b,f,s){return s?[["M",a+s,c],["l",b-2*s,0],["a",s,s,0,0,1,s,s],["l",0,f-2*s],["a",s,s,0,0,1,-s,s],["l",2*s-b,0],["a",s,s,0,0,1,-s,-s],["l",0,2*s-f],["a",s,s,0,0,1,s,-s],["z"]]:[["M",a,c],["l",b,0],["l",0,f],["l",-b,0],["z"]]},ga=function(a,c,b,f){null==f&&(f=b);return[["M",a,c],["m",0,-f],["a",b,f,0,1,1,0,2*f],["a",b,f,0,1,1,0,-2*f],["z"]]},sa=c._getPath={group:function(){return!1},path:function(a){return a.attr("path")},
circle:function(a){a=a.attrs;return ga(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return ga(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return ha(a.x,a.y,a.width,a.height,a.r)},image:function(a){a=a.attrs;return ha(a.x,a.y,a.width,a.height)},text:function(a){a=a._getBBox();return ha(a.x,a.y,a.width,a.height)}},qa=c.mapPath=function(a,c){if(!c)return a;var b,s,u,k,B,e,F;a=f(a);u=0;for(B=a.length;u<B;u++)for(F=a[u],k=1,e=F.length;k<e;k+=2)b=c.x(F[k],F[k+1]),s=c.y(F[k],F[k+1]),F[k]=b,F[k+1]=
s;return a};c.pick=function(){for(var a,c=0,b=arguments.length;c<b;c+=1)if((a=arguments[c])||!1===a||0===a)return a};var na=c._lastArgIfGroup=function(a,b){var f=a.length-1,s=a[f];if(s&&s.constructor===c.el.constructor&&"group"===s.type)return b&&(a[f]=void 0,delete a[f],t.call(a,f,1)),s},xa=c._serializeArgs=function(a){var b=a[0],f,s;if(c.is(b,"object")&&!c.is(b,"array")&&"group"!==b.type)for(f=b,b.path&&(b=b.path)&&!c.is(b,"string")&&c.is(b[0],p),b=1,s=arguments.length;b<s;b+=2)f[arguments[b]]||
(f[arguments[b]]=arguments[b+1]);else for(f={},b=1,s=arguments.length;b<s;b+=2)f[arguments[b]]=a[(b-1)/2]||arguments[b+1];return f},oa=c.merge=function(a,c,b,f,s){var u,k,B,e;s?(f.push(a),s.push(c)):(f=[a],s=[c]);if(c instanceof Array)for(u=0;u<c.length;u+=1){try{k=a[u],B=c[u]}catch(F){continue}if("object"!==typeof B)b&&void 0===B||(a[u]=B);else{if(null===k||"object"!==typeof k)k=a[u]=B instanceof Array?[]:{};e=checkCyclicRef(B,s);-1!==e?k=a[u]=f[e]:oa(k,B,b,f,s)}}else for(u in c){try{k=a[u],B=c[u]}catch(d){continue}if(null!==
B&&"object"===typeof B)if(e=ab.call(B),"[object Object]"===e){if(null===k||"object"!==typeof k)k=a[u]={};e=checkCyclicRef(B,s);-1!==e?k=a[u]=f[e]:oa(k,B,b,f,s)}else"[object Array]"===e?(null!==k&&k instanceof Array||(k=a[u]=[]),e=checkCyclicRef(B,s),-1!==e?k=a[u]=f[e]:oa(k,B,b,f,s)):a[u]=B;else a[u]=B}return a};c.extend=function(a,c,b){if("object"!==typeof a&&"object"!==typeof c)return null;if("object"!==typeof c||null===c)return a;"object"!==typeof a&&(a=c instanceof Array?[]:{});oa(a,c,b);return a};
var ya=c.is=function(a,c){c=Ra.call(c);return"finite"==c?!ib.hasOwnProperty(+a):c==p?a instanceof Array:"object"!==c||void 0!==a&&null!==a?"null"==c&&null===a||c==typeof a&&null!==a||"object"==c&&a===Object(a)||"array"==c&&Array.isArray&&Array.isArray(a)||ab.call(a).slice(8,-1).toLowerCase()==c:!1};c.createUUID=function(a,c){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,c).toUpperCase()}}(/[xy]/g,function(a){var c=16*J.random()|0;return("x"==a?c:c&3|8).toString(16)});var tb=
c.clone=fa?function(a){if(Object(a)!==a)return a;var c=new a.constructor,b;for(b in a)"prototype"!==b&&a.hasOwnProperty(b)&&(c[b]=tb(a[b]));return c}:function(a){if(Object(a)!==a)return a;var c=new a.constructor,b;for(b in a)a.hasOwnProperty(b)&&(c[b]=tb(a[b]));return c};c._g=q;c.type=wa.ENABLE_RED_CANVAS&&(wa.CanvasRenderingContext2D||ia.createElement("canvas").getContext)?"CANVAS":wa.SVGAngle||ia.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if("VML"==
c.type){var $=ia.createElement("div"),Ba;$.innerHTML='<v:shape adj="1"/>';Ba=$.firstChild;Ba.style.behavior="url(#default#VML)";if(!Ba||"object"!=typeof Ba.adj)return c.type="";$=null}c.svg=!((c.vml="VML"==c.type)||(c.canvas="CANVAS"==c.type));c._Paper=ka;c._id=0;c._oid=0;c.angle=function(a,b,f,s,u,k){return null==u?(a-=f,b-=s,a||b?(J.atan2(-b,-a)*La+540)%360:0):c.angle(a,b,u,k)-c.angle(f,s,u,k)};c.rad=function(a){return a%360*pa};c.deg=function(a){return a*La%360};c.snapTo=function(a,c,b){var f;
ya(b,"finite")||(b=10);if(ya(a,p))for(f=a.length;f--;){if(Fa(a[f]-c)<=b)return a[f]}else{a=+a;f=c%a;if(f<b)return c-f;if(f>a-b)return c-f+a}return c};c.setWindow=function(a){n("raphael.setWindow",c,q.win,a);wa=q.win=a;ia=q.doc=q.win.document;c._engine.initWin&&c._engine.initWin(q.win)};var S=function(a){if(c.vml){var b=/^\s+|\s+$/g,f;try{var s=new ActiveXObject("htmlfile");s.write("<body>");s.close();f=s.body}catch(u){f=createPopup().document.body}var k=f.createTextRange();S=$a(function(a){try{f.style.color=
Q(a).replace(b,"");var c=k.queryCommandValue("ForeColor");return"#"+("000000"+((c&255)<<16|c&65280|(c&16711680)>>>16).toString(16)).slice(-6)}catch(s){return"none"}})}else{var B=q.doc.createElement("i");B.title="Raphaël Colour Picker";B.style.display="none";q.doc.body.appendChild(B);S=$a(function(a){B.style.color=a;return q.doc.defaultView.getComputedStyle(B,"").getPropertyValue("color")})}return S(a)},Eb=function(){return"hsb("+[this.h,this.s,this.b]+")"},vb=function(){return"hsl("+[this.h,this.s,
this.l]+")"},db=function(){return this.hex},rb=function(a,b,f){null==b&&ya(a,"object")&&"r"in a&&"g"in a&&"b"in a&&(f=a.b,b=a.g,a=a.r);null==b&&ya(a,"string")&&(f=c.getRGB(a),a=f.r,b=f.g,f=f.b);if(1<a||1<b||1<f)a/=255,b/=255,f/=255;return[a,b,f]},ob=function(a,b,f,s){var u={r:a*=255,g:b*=255,b:f*=255,hex:c.rgb(a,b,f),toString:db};ya(s,"finite")&&(u.opacity=s);return u};c.color=function(a){var b;c.is(a,"object")&&"h"in a&&"s"in a&&"b"in a?(b=c.hsb2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.hex=b.hex):c.is(a,
"object")&&"h"in a&&"s"in a&&"l"in a?(b=c.hsl2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.hex=b.hex):(c.is(a,"string")&&(a=c.getRGB(a)),c.is(a,"object")&&"r"in a&&"g"in a&&"b"in a?(b=c.rgb2hsl(a),a.h=b.h,a.s=b.s,a.l=b.l,b=c.rgb2hsb(a),a.v=b.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1));a.toString=db;return a};c.hsb2rgb=function(a,c,b,f){this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(b=a.b,c=a.s,a=a.h,f=a.o);var s,u,k;a=360*a%360/60;k=b*c;c=k*(1-Fa(a%2-1));b=s=u=b-k;a=~~a;b+=[k,c,0,0,c,k][a];s+=[c,k,
k,c,0,0][a];u+=[0,0,c,k,k,c][a];return ob(b,s,u,f)};c.hsl2rgb=function(a,c,b,f){this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(b=a.l,c=a.s,a=a.h);if(1<a||1<c||1<b)a/=360,c/=100,b/=100;var s,u,k;a=360*a%360/60;k=2*c*(.5>b?b:1-b);c=k*(1-Fa(a%2-1));b=s=u=b-k/2;a=~~a;b+=[k,c,0,0,c,k][a];s+=[c,k,k,c,0,0][a];u+=[0,0,c,k,k,c][a];return ob(b,s,u,f)};c.rgb2hsb=function(a,c,b){b=rb(a,c,b);a=b[0];c=b[1];b=b[2];var f,s;f=I(a,c,b);s=f-U(a,c,b);a=((0==s?0:f==a?(c-b)/s:f==c?(b-a)/s+2:(a-c)/s+4)+360)%6*60/360;
return{h:a,s:0==s?0:s/f,b:f,toString:Eb}};c.rgb2hsl=function(a,c,b){b=rb(a,c,b);a=b[0];c=b[1];b=b[2];var f,s,u;f=I(a,c,b);s=U(a,c,b);u=f-s;a=((0==u?0:f==a?(c-b)/u:f==c?(b-a)/u+2:(a-c)/u+4)+360)%6*60/360;f=(f+s)/2;return{h:a,s:0==u?0:.5>f?u/(2*f):u/(2-2*f),l:f,toString:vb}};c._path2string=function(){return this.join(",").replace(nb,"$1")};var $a=c._cacher=function(a,c,b){function f(){var s=R.call(arguments,0),u=s.join("␀"),k=f.cache=f.cache||{},B=f.count=f.count||[];if(k.hasOwnProperty(u)){a:for(var s=
B,B=u,e=0,F=s.length;e<F;e++)if(s[e]===B){s.push(s.splice(e,1)[0]);break a}return b?b(k[u]):k[u]}1E3<=B.length&&delete k[B.shift()];B.push(u);k[u]=a[N](c,s);return b?b(k[u]):k[u]}return f};c._preload=function(a,c){var b=ia.createElement("img");b.style.cssText="position:absolute;left:-9999em;top:-9999em";b.onload=function(){c.call(this);this.onload=null;ia.body.removeChild(this)};b.onerror=function(){ia.body.removeChild(this)};ia.body.appendChild(b);b.src=a};c.getRGB=$a(function(a){var b,f,s,u,k;a&&
ya(a,"object")&&"opacity"in a&&(b=a.opacity);if(!a||(a=Q(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:m};if("none"==a)return{r:-1,g:-1,b:-1,hex:"none",toString:m};!pb.hasOwnProperty(a.toLowerCase().substring(0,2))&&"#"!==a.charAt()&&(a=S(a));if(a=a.match(Na)){a[2]&&(u=r(a[2].substring(5),16),s=r(a[2].substring(3,5),16),f=r(a[2].substring(1,3),16));a[3]&&(u=r((k=a[3].charAt(3))+k,16),s=r((k=a[3].charAt(2))+k,16),f=r((k=a[3].charAt(1))+k,16));a[4]&&(k=a[4].split(Ya),f=T(k[0]),
"%"==k[0].slice(-1)&&(f*=2.55),s=T(k[1]),"%"==k[1].slice(-1)&&(s*=2.55),u=T(k[2]),"%"==k[2].slice(-1)&&(u*=2.55),"rgba"==a[1].toLowerCase().slice(0,4)&&(b=T(k[3])),k[3]&&"%"==k[3].slice(-1)&&(b/=100));if(a[5])return k=a[5].split(Ya),f=T(k[0]),"%"==k[0].slice(-1)&&(f*=2.55),s=T(k[1]),"%"==k[1].slice(-1)&&(s*=2.55),u=T(k[2]),"%"==k[2].slice(-1)&&(u*=2.55),"deg"!=k[0].slice(-3)&&"°"!=k[0].slice(-1)||(f/=360),"hsba"==a[1].toLowerCase().slice(0,4)&&(b=T(k[3])),k[3]&&"%"==k[3].slice(-1)&&(b/=100),c.hsb2rgb(f,
s,u,b);if(a[6])return k=a[6].split(Ya),f=T(k[0]),"%"==k[0].slice(-1)&&(f*=2.55),s=T(k[1]),"%"==k[1].slice(-1)&&(s*=2.55),u=T(k[2]),"%"==k[2].slice(-1)&&(u*=2.55),"deg"!=k[0].slice(-3)&&"°"!=k[0].slice(-1)||(f/=360),"hsla"==a[1].toLowerCase().slice(0,4)&&(b=T(k[3])),k[3]&&"%"==k[3].slice(-1)&&(b/=100),c.hsl2rgb(f,s,u,b);a={r:f,g:s,b:u,toString:m};a.hex="#"+(16777216|u|s<<8|f<<16).toString(16).slice(1);c.is(b,"finite")&&(a.opacity=b);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:m}},c);
c.tintshade=$a(function(a,b){var f=c.getRGB(a),s;s=255;0>b&&(b*=-1,s=0);1<b&&(b=1);s=0===b?f:{r:s-(s-f.r)*b,g:s-(s-f.g)*b,b:s-(s-f.b)*b,toString:m};s.hex=c.rgb(s.r,s.g,s.b);f.error&&(s.error=f.error);"opacity"in f?(s.rgba="rgba("+[s.r,s.g,s.b,f.opacity].join()+")",s.opacity=f.opacity):s.rgba="rgb("+[s.r,s.g,s.b].join()+")";return s},c);c.hsb=$a(function(a,b,f){return c.hsb2rgb(a,b,f).hex});c.hsl=$a(function(a,b,f){return c.hsl2rgb(a,b,f).hex});c.rgb=$a(function(a,c,b){return"#"+(16777216|b|c<<8|a<<
16).toString(16).slice(1)});c.getColor=function(a){a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||.75};var c=this.hsb2rgb(a.h,a.s,a.b);a.h+=.075;1<a.h&&(a.h=0,a.s-=.2,0>=a.s&&(this.getColor.start={h:0,s:1,b:a.b}));return c.hex};c.getColor.reset=function(){delete this.start};c.parsePathString=function(a){if(!a)return null;var b=la(a);if(b.arr)return wb(b.arr);var f={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},s=[];c.is(a,p)&&c.is(a[0],p)&&(s=wb(a));s.length||Q(a).replace(Sb,function(a,c,
b){var u=[];a=c.toLowerCase();b.replace(Za,function(a,c){c&&u.push(+c)});"m"==a&&2<u.length&&(s.push([c].concat(u.splice(0,2))),a="l",c="m"==c?"l":"L");if("r"==a)s.push([c].concat(u));else for(;u.length>=f[a]&&(s.push([c].concat(u.splice(0,f[a]))),f[a]););});s.toString=c._path2string;b.arr=wb(s);return s};c.parseTransformString=$a(function(a){if(!a)return null;var b=[];c.is(a,p)&&c.is(a[0],p)&&(b=wb(a));b.length||Q(a).replace(Fb,function(a,c,f){var s=[];Ra.call(c);f.replace(Za,function(a,c){c&&s.push(+c)});
b.push([c].concat(s))});b.toString=c._path2string;return b});var la=function(a){var c=la.ps=la.ps||{};c[a]?c[a].sleep=100:c[a]={sleep:100};setTimeout(function(){for(var b in c)c.hasOwnProperty(b)&&b!=a&&(c[b].sleep--,!c[b].sleep&&delete c[b])});return c[a]};c.findDotsAtSegment=function(a,c,b,f,s,u,k,B,e){var F=1-e,d=Ia(F,3),r=Ia(F,2),g=e*e,h=g*e,O=d*a+3*r*e*b+3*F*e*e*s+h*k,d=d*c+3*r*e*f+3*F*e*e*u+h*B,r=a+2*e*(b-a)+g*(s-2*b+a),h=c+2*e*(f-c)+g*(u-2*f+c),C=b+2*e*(s-b)+g*(k-2*s+b),g=f+2*e*(u-f)+g*(B-
2*u+f);a=F*a+e*b;c=F*c+e*f;s=F*s+e*k;u=F*u+e*B;B=90-180*J.atan2(r-C,h-g)/W;(r>C||h<g)&&(B+=180);return{x:O,y:d,m:{x:r,y:h},n:{x:C,y:g},start:{x:a,y:c},end:{x:s,y:u},alpha:B}};c.bezierBBox=function(a,b,f,s,u,k,B,e){c.is(a,"array")||(a=[a,b,f,s,u,k,B,e]);a=F.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}};c.isPointInsideBBox=function(a,c,b){return c>=a.x&&c<=a.x2&&b>=a.y&&b<=a.y2};c.isBBoxIntersect=function(a,b){var f=c.isPointInsideBBox;
return f(b,a.x,a.y)||f(b,a.x2,a.y)||f(b,a.x,a.y2)||f(b,a.x2,a.y2)||f(a,b.x,b.y)||f(a,b.x2,b.y)||f(a,b.x,b.y2)||f(a,b.x2,b.y2)||(a.x<b.x2&&a.x>b.x||b.x<a.x2&&b.x>a.x)&&(a.y<b.y2&&a.y>b.y||b.y<a.y2&&b.y>a.y)};c.pathIntersection=function(a,c){return z(a,c)};c.pathIntersectionNumber=function(a,c){return z(a,c,1)};c.isPointInsidePath=function(a,b,f){var s=c.pathBBox(a);return c.isPointInsideBBox(s,b,f)&&(1==z(a,[["M",b,f],["H",s.x2+10]],1)%2||1==z(a,[["M",b,f],["V",s.y2+10]],1)%2)};c._removedFactory=function(a){return function(){n("raphael.log",
null,"Raphaël: you are calling to method “"+a+"” of removed object",a)}};var $b=c.pathBBox=function(a){var c=la(a);if(c.bbox)return c.bbox;if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};a=f(a);for(var b=0,s=0,u=[],k=[],B,e=0,d=a.length;e<d;e++)B=a[e],"M"==B[0]?(b=B[1],s=B[2],u.push(b),k.push(s)):(b=F(b,s,B[1],B[2],B[3],B[4],B[5],B[6]),u=u.concat(b.min.x,b.max.x),k=k.concat(b.min.y,b.max.y),b=B[5],s=B[6]);a=U[N](0,u);B=U[N](0,k);u=I[N](0,u);k=I[N](0,k);k={x:a,y:B,x2:u,y2:k,width:u-a,height:k-B};
c.bbox=tb(k);return k},wb=function(a){a=tb(a);a.toString=c._path2string;return a},jc=c._pathToRelative=function(a){var b=la(a);if(b.rel)return wb(b.rel);c.is(a,p)&&c.is(a&&a[0],p)||(a=c.parsePathString(a));var f=[],s=0,u=0,k=0,B=0,e=0;"M"==a[0][0]&&(s=a[0][1],u=a[0][2],k=s,B=u,e++,f.push(["M",s,u]));for(var F=a.length;e<F;e++){var d=f[e]=[],r=a[e];if(r[0]!=Ra.call(r[0]))switch(d[0]=Ra.call(r[0]),d[0]){case "a":d[1]=r[1];d[2]=r[2];d[3]=r[3];d[4]=r[4];d[5]=r[5];d[6]=+(r[6]-s).toFixed(3);d[7]=+(r[7]-
u).toFixed(3);break;case "v":d[1]=+(r[1]-u).toFixed(3);break;case "m":k=r[1],B=r[2];default:for(var g=1,h=r.length;g<h;g++)d[g]=+(r[g]-(g%2?s:u)).toFixed(3)}else for(f[e]=[],"m"==r[0]&&(k=r[1]+s,B=r[2]+u),d=0,g=r.length;d<g;d++)f[e][d]=r[d];r=f[e].length;switch(f[e][0]){case "z":s=k;u=B;break;case "h":s+=+f[e][r-1];break;case "v":u+=+f[e][r-1];break;default:s+=+f[e][r-2],u+=+f[e][r-1]}}f.toString=c._path2string;b.rel=wb(f);return f},Nb=c._pathToAbsolute=function(a){var f=la(a),s;if(f.abs)return wb(f.abs);
c.is(a,p)&&c.is(a&&a[0],p)||(a=c.parsePathString(a));if(!a||!a.length)return s=["M",0,0],s.toString=c._path2string,s;var u=0,k=0,B=0,e=0,F=0;s=[];"M"==a[0][0]&&(u=+a[0][1],k=+a[0][2],B=u,e=k,F++,s[0]=["M",u,k]);for(var d=3==a.length&&"M"==a[0][0]&&"R"==a[1][0].toUpperCase()&&"Z"==a[2][0].toUpperCase(),r,g=F,h=a.length;g<h;g++){s.push(F=[]);r=a[g];if(r[0]!=Ja.call(r[0]))switch(F[0]=Ja.call(r[0]),F[0]){case "A":F[1]=r[1];F[2]=r[2];F[3]=r[3];F[4]=r[4];F[5]=r[5];F[6]=+(r[6]+u);F[7]=+(r[7]+k);break;case "V":F[1]=
+r[1]+k;break;case "H":F[1]=+r[1]+u;break;case "R":for(var O=[u,k].concat(r.slice(1)),C=2,va=O.length;C<va;C++)O[C]=+O[C]+u,O[++C]=+O[C]+k;s.pop();s=s.concat(b(O,d));break;case "M":B=+r[1]+u,e=+r[2]+k;default:for(C=1,va=r.length;C<va;C++)F[C]=+r[C]+(C%2?u:k)}else if("R"==r[0])O=[u,k].concat(r.slice(1)),s.pop(),s=s.concat(b(O,d)),F=["R"].concat(r.slice(-2));else for(O=0,C=r.length;O<C;O++)F[O]=r[O];switch(F[0]){case "Z":u=B;k=e;break;case "H":u=F[1];break;case "V":k=F[1];break;case "M":B=F[F.length-
2],e=F[F.length-1];default:u=F[F.length-2],k=F[F.length-1]}}s.toString=c._path2string;f.abs=wb(s);return s},Ub=function(a,c,b,f){return[a,c,b,f,b,f]},s=function(a,c,b,f,s,u){var k=1/3,B=2/3;return[k*a+B*b,k*c+B*f,k*s+B*b,k*u+B*f,s,u]},u=function(a,c,b,f,s,k,B,e,F,d){var r=120*W/180,g=pa*(+s||0),h=[],O,C=$a(function(a,c,b){var f=a*Ta(b)-c*ea(b);a=a*ea(b)+c*Ta(b);return{x:f,y:a}});if(d)l=d[0],O=d[1],k=d[2],p=d[3];else{O=C(a,c,-g);a=O.x;c=O.y;O=C(e,F,-g);e=O.x;F=O.y;Ta(pa*s);ea(pa*s);O=(a-e)/2;l=(c-
F)/2;p=O*O/(b*b)+l*l/(f*f);1<p&&(p=za(p),b*=p,f*=p);var p=b*b,va=f*f,p=(k==B?-1:1)*za(Fa((p*va-p*l*l-va*O*O)/(p*l*l+va*O*O)));k=p*b*l/f+(a+e)/2;var p=p*-f*O/b+(c+F)/2,l=J.asin(((c-p)/f).toFixed(9));O=J.asin(((F-p)/f).toFixed(9));l=a<k?W-l:l;O=e<k?W-O:O;0>l&&(l=2*W+l);0>O&&(O=2*W+O);B&&l>O&&(l-=2*W);!B&&O>l&&(O-=2*W)}if(Fa(O-l)>r){var h=O,va=e,E=F;O=l+r*(B&&O>l?1:-1);e=k+b*Ta(O);F=p+f*ea(O);h=u(e,F,b,f,s,0,B,va,E,[O,h,k,p])}k=O-l;s=Ta(l);r=ea(l);B=Ta(O);O=ea(O);k=J.tan(k/4);b=4/3*b*k;k*=4/3*f;f=[a,
c];a=[a+b*r,c-k*s];c=[e+b*O,F-k*B];e=[e,F];a[0]=2*f[0]-a[0];a[1]=2*f[1]-a[1];if(d)return[a,c,e].concat(h);h=[a,c,e].concat(h).join().split(",");d=[];e=0;for(F=h.length;e<F;e++)d[e]=e%2?C(h[e-1],h[e],g).y:C(h[e],h[e+1],g).x;return d},B=function(a,c,b,f,s,u,k,B,e){var F=1-e;return{x:Ia(F,3)*a+3*Ia(F,2)*e*b+3*F*e*e*s+Ia(e,3)*k,y:Ia(F,3)*c+3*Ia(F,2)*e*f+3*F*e*e*u+Ia(e,3)*B}},F=$a(function(a,c,b,f,s,u,k,e){var F=s-2*b+a-(k-2*s+b),d=2*(b-a)-2*(s-b),r=a-b,g=(-d+za(d*d-4*F*r))/2/F,F=(-d-za(d*d-4*F*r))/2/
F,h=[c,e],O=[a,k];"1e12"<Fa(g)&&(g=.5);"1e12"<Fa(F)&&(F=.5);0<g&&1>g&&(g=B(a,c,b,f,s,u,k,e,g),O.push(g.x),h.push(g.y));0<F&&1>F&&(g=B(a,c,b,f,s,u,k,e,F),O.push(g.x),h.push(g.y));F=u-2*f+c-(e-2*u+f);d=2*(f-c)-2*(u-f);r=c-f;g=(-d+za(d*d-4*F*r))/2/F;F=(-d-za(d*d-4*F*r))/2/F;"1e12"<Fa(g)&&(g=.5);"1e12"<Fa(F)&&(F=.5);0<g&&1>g&&(g=B(a,c,b,f,s,u,k,e,g),O.push(g.x),h.push(g.y));0<F&&1>F&&(g=B(a,c,b,f,s,u,k,e,F),O.push(g.x),h.push(g.y));return{min:{x:U[N](0,O),y:U[N](0,h)},max:{x:I[N](0,O),y:I[N](0,h)}}}),
f=c._path2curve=$a(function(a,c){var b=!c&&la(a);if(!c&&b.curve)return wb(b.curve);var f=Nb(a),k=c&&Nb(c),e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},B={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},F=function(a,c){var b,f;if(!a)return["C",c.x,c.y,c.x,c.y,c.x,c.y];a[0]in{T:1,Q:1}||(c.qx=c.qy=null);switch(a[0]){case "M":c.X=a[1];c.Y=a[2];break;case "A":a=["C"].concat(u[N](0,[c.x,c.y].concat(a.slice(1))));break;case "S":b=c.x+(c.x-(c.bx||c.x));f=c.y+(c.y-(c.by||c.y));a=["C",b,f].concat(a.slice(1));break;
case "T":c.qx=c.x+(c.x-(c.qx||c.x));c.qy=c.y+(c.y-(c.qy||c.y));a=["C"].concat(s(c.x,c.y,c.qx,c.qy,a[1],a[2]));break;case "Q":c.qx=a[1];c.qy=a[2];a=["C"].concat(s(c.x,c.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"].concat(Ub(c.x,c.y,a[1],a[2]));break;case "H":a=["C"].concat(Ub(c.x,c.y,a[1],c.y));break;case "V":a=["C"].concat(Ub(c.x,c.y,c.x,a[1]));break;case "Z":a=["C"].concat(Ub(c.x,c.y,c.X,c.Y))}return a},d=function(a,c){if(7<a[c].length){a[c].shift();for(var b=a[c];b.length;)a.splice(c++,0,["C"].concat(b.splice(0,
6)));a.splice(c,1);h=I(f.length,k&&k.length||0)}},r=function(a,c,b,s,u){a&&c&&"M"==a[u][0]&&"M"!=c[u][0]&&(c.splice(u,0,["M",s.x,s.y]),b.bx=0,b.by=0,b.x=a[u][1],b.y=a[u][2],h=I(f.length,k&&k.length||0))},g=0,h=I(f.length,k&&k.length||0);for(;g<h;g++){f[g]=F(f[g],e);d(f,g);k&&(k[g]=F(k[g],B));k&&d(k,g);r(f,k,e,B,g);r(k,f,B,e,g);var O=f[g],C=k&&k[g],p=O.length,va=k&&C.length;e.x=O[p-2];e.y=O[p-1];e.bx=T(O[p-4])||e.x;e.by=T(O[p-3])||e.y;B.bx=k&&(T(C[va-4])||B.x);B.by=k&&(T(C[va-3])||B.y);B.x=k&&C[va-
2];B.y=k&&C[va-1]}k||(b.curve=wb(f));return k?[f,k]:f},null,wb);c._parseDots=$a(function(a){for(var b=[],f=0,s=a.length;f<s;f++){var u={},k=a[f].match(/^([^:]*):?([\d\.]*)/);u.color=c.getRGB(k[1]);if(u.color.error)return null;u.opacity=u.color.opacity;u.color=u.color.hex;k[2]&&(u.offset=k[2]+"%");b.push(u)}f=1;for(s=b.length-1;f<s;f++)if(!b[f].offset){a=T(b[f-1].offset||0);k=0;for(u=f+1;u<s;u++)if(b[u].offset){k=b[u].offset;break}k||(k=100,u=s);k=T(k);for(k=(k-a)/(u-f+1);f<u;f++)a+=k,b[f].offset=
a+"%"}return b});var ba=c._tear=function(a,c){a==c.top&&(c.top=a.prev);a==c.bottom&&(c.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)};c._tofront=function(a,c){if(c.top===a)return!1;ba(a,c);a.next=null;a.prev=c.top;c.top.next=a;c.top=a;return!0};c._toback=function(a,c){if(c.bottom===a)return!1;ba(a,c);a.next=c.bottom;a.prev=null;c.bottom.prev=a;c.bottom=a;return!0};c._insertafter=function(a,c,b,f){ba(a,b);a.parent=f;c===f.top&&(f.top=a);c.next&&(c.next.prev=a);a.next=c.next;
a.prev=c;c.next=a};c._insertbefore=function(a,c,b,f){ba(a,b);a.parent=f;c===f.bottom&&(f.bottom=a);c.prev&&(c.prev.next=a);a.prev=c.prev;c.prev=a;a.next=c};var O=c.toMatrix=function(a,c){var b=$b(a),f={_:{transform:""},getBBox:function(){return b}};va(f,c);return f.matrix};c.transformPath=function(a,c){return qa(a,O(a,c))};var va=c._extractTransform=function(a,b){if(null==b)return a._.transform;b=Q(b).replace(/\.{3}|\u2026/g,a._.transform||"");var f=c.parseTransformString(b),s=0,u=0,k=0,e=1,B=1,F=
a._,k=new G;F.transform=f||[];if(f)for(var u=0,d=f.length;u<d;u++){var r=f[u],g=r.length,h=Q(r[0]).toLowerCase(),O=r[0]!=h,C=O?k.invert():0,p;"t"==h&&3==g?O?(g=C.x(0,0),h=C.y(0,0),O=C.x(r[1],r[2]),C=C.y(r[1],r[2]),k.translate(O-g,C-h)):k.translate(r[1],r[2]):"r"==h?2==g?(p=p||a.getBBox(1),k.rotate(r[1],p.x+p.width/2,p.y+p.height/2),s+=r[1]):4==g&&(O?(O=C.x(r[2],r[3]),C=C.y(r[2],r[3]),k.rotate(r[1],O,C)):k.rotate(r[1],r[2],r[3]),s+=r[1]):"s"==h?2==g||3==g?(p=p||a.getBBox(1),k.scale(r[1],r[g-1],p.x+
p.width/2,p.y+p.height/2),e*=r[1],B*=r[g-1]):5==g&&(O?(O=C.x(r[3],r[4]),C=C.y(r[3],r[4]),k.scale(r[1],r[2],O,C)):k.scale(r[1],r[2],r[3],r[4]),e*=r[1],B*=r[2]):"m"==h&&7==g&&k.add(r[1],r[2],r[3],r[4],r[5],r[6]);F.dirtyT=1;a.matrix=k}a.matrix=k;F.sx=e;F.sy=B;F.deg=s;F.dx=u=k.e;F.dy=k=k.f;1==e&&1==B&&!s&&F.bbox?(F.bbox.x+=+u,F.bbox.y+=+k):F.dirtyT=1},Cc=function(a){var c=a[0];switch(c.toLowerCase()){case "t":return[c,0,0];case "m":return[c,1,0,0,1,0,0];case "r":return 4==a.length?[c,0,a[2],a[3]]:[c,
0];case "s":return 5==a.length?[c,1,1,a[3],a[4]]:3==a.length?[c,1,1]:[c,1]}},qc=c._equaliseTransform=function(a,b){b=Q(b).replace(/\.{3}|\u2026/g,a);a=c.parseTransformString(a)||[];b=c.parseTransformString(b)||[];for(var f=I(a.length,b.length),s=[],u=[],k=0,e,B,F,d;k<f;k++){F=a[k]||Cc(b[k]);d=b[k]||Cc(F);if(F[0]!=d[0]||"r"==F[0].toLowerCase()&&(F[2]!=d[2]||F[3]!=d[3])||"s"==F[0].toLowerCase()&&(F[3]!=d[3]||F[4]!=d[4]))return;s[k]=[];u[k]=[];e=0;for(B=I(F.length,d.length);e<B;e++)e in F&&(s[k][e]=
F[e]),e in d&&(u[k][e]=d[e])}return{from:s,to:u}};c._getContainer=function(a,b,f,s){var u;u=null!=s||c.is(a,"object")?a:q.doc.getElementById(a);if(null!=u)return u.tagName?null==b?{container:u,width:u.style.pixelWidth||u.offsetWidth,height:u.style.pixelHeight||u.offsetHeight}:{container:u,width:b,height:f}:{container:1,x:a,y:b,width:f,height:s}};c.pathToRelative=jc;c._engine={};c.path2curve=f;c.matrix=function(a,c,b,f,s,u){return new G(a,c,b,f,s,u)};(function(a){function b(a){return a[0]*a[0]+a[1]*
a[1]}function f(a){var c=za(b(a));a[0]&&(a[0]/=c);a[1]&&(a[1]/=c)}a.add=function(a,c,b,f,s,u){var k=[[],[],[]],e=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]];c=[[a,b,s],[c,f,u],[0,0,1]];a&&a instanceof G&&(c=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;3>a;a++)for(b=0;3>b;b++){for(f=s=0;3>f;f++)s+=e[a][f]*c[f][b];k[a][b]=s}this.a=k[0][0];this.b=k[1][0];this.c=k[0][1];this.d=k[1][1];this.e=k[0][2];this.f=k[1][2]};a.invert=function(){var a=this.a*this.d-this.b*this.c;return new G(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 G(this.a,this.b,this.c,this.d,this.e,this.f)};a.translate=function(a,c){this.add(1,0,0,1,a,c)};a.scale=function(a,c,b,f){null==c&&(c=a);(b||f)&&this.add(1,0,0,1,b,f);this.add(a,0,0,c,0,0);(b||f)&&this.add(1,0,0,1,-b,-f)};a.rotate=function(a,b,f){a=c.rad(a);b=b||0;f=f||0;var s=+Ta(a).toFixed(9);a=+ea(a).toFixed(9);this.add(s,a,-a,s,b,f);this.add(1,0,0,1,-b,-f)};a.x=function(a,
c){return a*this.a+c*this.c+this.e};a.y=function(a,c){return a*this.b+c*this.d+this.f};a.get=function(a){return+this[Q.fromCharCode(97+a)].toFixed(4)};a.toString=function(){return c.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 s=[[this.a,this.c],[this.b,this.d]];a.scalex=za(b(s[0]));f(s[0]);a.shear=s[0][0]*s[1][0]+s[0][1]*s[1][1];s[1]=[s[1][0]-s[0][0]*a.shear,s[1][1]-s[0][1]*a.shear];a.scaley=za(b(s[1]));f(s[1]);a.shear/=a.scaley;var u=-s[0][1],s=s[1][1];
0>s?(a.rotate=c.deg(J.acos(s)),0>u&&(a.rotate=360-a.rotate)):a.rotate=c.deg(J.asin(u));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.split();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]:
"")+(1!=a.scalex||1!=a.scaley?"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)]}})(G.prototype);var Zb=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);"Apple Computer, Inc."==navigator.vendor&&(Zb&&4>Zb[1]||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&Zb&&8>Zb[1]?Y.safari=function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});
setTimeout(function(){a.remove()});return!0}:Y.safari=M;for(var rc=function(){this.returnValue=!1},ra=function(){return this.originalEvent.preventDefault()},Aa=function(){this.cancelBubble=!0},sc=function(){return this.originalEvent.stopPropagation()},Wc=c.addEvent=function(){if(q.doc.addEventListener)return function(a,c,b,f){var s=ja&&P[c]?P[c]:c,u=function(s){var u=q.doc.documentElement.scrollTop||q.doc.body.scrollTop,k=q.doc.documentElement.scrollLeft||q.doc.body.scrollLeft;if(ja&&P.hasOwnProperty(c))for(var e=
0,B=s.targetTouches&&s.targetTouches.length;e<B;e++)if(s.targetTouches[e].target==a){B=s;s=s.targetTouches[e];s.originalEvent=B;s.preventDefault=ra;s.stopPropagation=sc;break}return b.call(f,s,s.clientX+k,s.clientY+u)};a.addEventListener(s,u,!1);return function(){a.removeEventListener(s,u,!1);return!0}};if(q.doc.attachEvent)return function(a,c,b,f){var s=function(a){a=a||q.win.event;var c=a.clientX+(q.doc.documentElement.scrollLeft||q.doc.body.scrollLeft),s=a.clientY+(q.doc.documentElement.scrollTop||
q.doc.body.scrollTop);a.preventDefault=a.preventDefault||rc;a.stopPropagation=a.stopPropagation||Aa;return b.call(f,a,c,s)};a.attachEvent("on"+c,s);return function(){a.detachEvent("on"+c,s);return!0}}}(),kc=[],Xc=function(a){for(var b=a.clientX,f=a.clientY,s=q.doc.documentElement.scrollTop||q.doc.body.scrollTop,u=q.doc.documentElement.scrollLeft||q.doc.body.scrollLeft,k,e=kc.length;e--;){k=kc[e];if(ja)for(var B=a.touches.length,F;B--;){if(F=a.touches[B],F.identifier==k.el._drag.id){b=F.clientX;f=
F.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();if(!k.el.removed){var B=c._engine.getNode(k.el),d=B.nextSibling,r=B.parentNode,g=B.style.display;q.win.opera&&r.removeChild(B);B.style.display="none";F=k.el.paper.getElementByPoint(b,f);B.style.display=g;q.win.opera&&(d?r.insertBefore(B,d):r.appendChild(B));F&&n("raphael.drag.over."+k.el.id,k.el,F);b+=u;f+=s;n("raphael.drag.move."+k.el.id,k.move_scope||k.el,b-k.el._drag.x,f-k.el._drag.y,b,f,a)}}},Yc=function(a){c.unmousemove(Xc).unmouseup(Yc);
for(var b=kc.length,f;b--;)f=kc[b],f.el._drag={},n("raphael.drag.end."+f.el.id,f.end_scope||f.start_scope||f.move_scope||f.el,a);kc=[]},ma=c.el={},ed=X.length;ed--;)(function(a){c[a]=ma[a]=function(b,f){c.is(b,"function")&&(this.events=this.events||[],this.events.push({name:a,f:b,unbind:Wc(this.shape||this.node||q.doc,a,b,f||this)}));return this};c["un"+a]=ma["un"+a]=function(c){for(var b=this.events||[],f=b.length;f--;)if(b[f].name==a&&b[f].f==c){b[f].unbind();b.splice(f,1);!b.length&&delete this.events;
break}return this}})(X[ed]);ma.data=function(a,b){var f=E[this.id]=E[this.id]||{};if(1==arguments.length){if(c.is(a,"object")){for(var s in a)a.hasOwnProperty(s)&&this.data(s,a[s]);return this}n("raphael.data.get."+this.id,this,f[a],a);return f[a]}f[a]=b;n("raphael.data.set."+this.id,this,b,a);return this};ma.removeData=function(a){null==a?delete E[this.id]:E[this.id]&&delete E[this.id][a];return this};ma.getData=function(){return tb(E[this.id]||{})};var Ca=[],hd=function(){this.untrack=Wc(q.doc,
"mouseup",gd,this)},gd=function(){this.untrack();this.untrack=null;return this.fn&&this.fn.apply(this.scope||this.el,arguments)};ma.mouseup=function(a,b,f){if(!f)return c.mouseup.apply(this,arguments);Ca.push(f={el:this,fn:a,scope:b});f.unbind=Wc(this.shape||this.node||q.doc,"mousedown",hd,f);return this};ma.unmouseup=function(a){for(var b=Ca.length,f;b--;)Ca[b].el===this&&Ca[b].fn===a&&(f=Ca[b],f.unbind(),f.untrack&&f.untrack(),Ca.splice(b,1));return f?this:c.unmouseup.apply(this,arguments)};ma.hover=
function(a,c,b,f){return this.mouseover(a,b).mouseout(c,f||b)};ma.unhover=function(a,c){return this.unmouseover(a).unmouseout(c)};var Gc=[];ma.drag=function(a,b,f,s,u,k){function e(B){(B.originalEvent||B).preventDefault();var F=q.doc.documentElement.scrollTop||q.doc.body.scrollTop,d=q.doc.documentElement.scrollLeft||q.doc.body.scrollLeft;this._drag.x=B.clientX+d;this._drag.y=B.clientY+F;this._drag.id=B.identifier;!kc.length&&c.mousemove(Xc).mouseup(Yc);kc.push({el:this,move_scope:s,start_scope:u,
end_scope:k});b&&n.on("raphael.drag.start."+this.id,b);a&&n.on("raphael.drag.move."+this.id,a);f&&n.on("raphael.drag.end."+this.id,f);n("raphael.drag.start."+this.id,u||s||this,B.clientX+d,B.clientY+F,B)}this._drag={};Gc.push({el:this,start:e});this.mousedown(e);return this};ma.onDragOver=function(a){a?n.on("raphael.drag.over."+this.id,a):n.unbind("raphael.drag.over."+this.id)};ma.undrag=function(){for(var a=Gc.length;a--;)Gc[a].el==this&&(this.unmousedown(Gc[a].start),Gc.splice(a,1),n.unbind("raphael.drag.*."+
this.id));!Gc.length&&c.unmousemove(Xc).unmouseup(Yc);delete this._drag};ma.follow=function(a,b,f){if(a.removed||a.constructor!==c.el.constructor)return this;a.followers.push({el:this,stalk:f={before:"insertBefore",after:"insertAfter"}[f],cb:b});f&&this[f](a);return this};ma.unfollow=function(a){if(a.removed||a.constructor!==c.el.constructor)return this;for(var b=0,f=a.followers.length;b<f;b++)if(a.followers[b].el===this){a.followers.splice(b,1);break}return this};Y.hide=function(){this.canvas.style.visibility=
"hidden";return this};Y.show=function(){this.canvas.style.visibility="";return this};Y.group=function(){var a=arguments,b=na(a,!0),a=c._engine.group(this,a[0],b);return this.__set__&&this.__set__.push(a),this._elementsById[a.id]=a};Y.circle=function(){var a=arguments,b=na(a,!0),a=xa(a,"cx",0,"cy",0,"r",0,"fill","none","stroke","#000"),b=c._engine.circle(this,a,b);return this.__set__&&this.__set__.push(b),this._elementsById[b.id]=b};Y.rect=function(){var a=arguments,b=na(a,!0),a=xa(a,"x",0,"y",0,"width",
0,"height",0,"r",0,"fill","none","stroke","#000"),b=c._engine.rect(this,a,b);return this.__set__&&this.__set__.push(b),this._elementsById[b.id]=b};Y.ellipse=function(){var a=arguments,b=na(a,!0),a=xa(a,"x",0,"y",0,"rx",0,"ry",0,"fill","none","stroke","#000"),b=c._engine.ellipse(this,a,b);return this.__set__&&this.__set__.push(b),this._elementsById[b.id]=b};Y.path=function(){var a=arguments,b=na(a,!0),a=xa(a,"path","","fill","none","stroke","#000"),b=c._engine.path(this,a,b);return this.__set__&&this.__set__.push(b),
this._elementsById[b.id]=b};Y.image=function(){var a=arguments,b=na(a,!0),a=xa(a,"src","about:blank","x",0,"y",0,"width",0,"height",0);out=c._engine.image(this,a,b);return this.__set__&&this.__set__.push(out),this._elementsById[out.id]=out};Y.text=function(){var a=arguments,b=na(a,!0),a=xa(a,"x",0,"y",0,"text","","stroke","none","fill","#000","text-anchor","middle","vertical-align","middle"),b=c._engine.text(this,a,b);return this.__set__&&this.__set__.push(b),this._elementsById[b.id]=b};Y.set=function(a){!c.is(a,
"array")&&(a=t.call(arguments,0,arguments.length));var b=new Gb(a);this.__set__&&this.__set__.push(b);return b};Y.setStart=function(a){this.__set__=a||this.set()};Y.setFinish=function(a){a=this.__set__;delete this.__set__;return a};Y.setSize=function(a,b){return c._engine.setSize.call(this,a,b)};Y.setViewBox=function(a,b,f,s,u){return c._engine.setViewBox.call(this,a,b,f,s,u)};Y.top=Y.bottom=null;Y.raphael=c;Y.getElementByPoint=function(a,c){var b,f,s=this.canvas,u=q.doc.elementFromPoint(a,c);if(q.win.opera&&
"svg"==u.tagName){f=s.getBoundingClientRect();b=s.ownerDocument;var k=b.body,B=b.documentElement;b=f.top+(q.win.pageYOffset||B.scrollTop||k.scrollTop)-(B.clientTop||k.clientTop||0);f=f.left+(q.win.pageXOffset||B.scrollLeft||k.scrollLeft)-(B.clientLeft||k.clientLeft||0);k=s.createSVGRect();k.x=a-f;k.y=c-b;k.width=k.height=1;b=s.getIntersectionList(k,null);b.length&&(u=b[b.length-1])}if(!u)return null;for(;u.parentNode&&u!=s.parentNode&&!u.raphael;)u=u.parentNode;u==this.canvas.parentNode&&(u=s);return u=
u&&u.raphael?this.getById(u.raphaelid):null};Y.getElementsByBBox=function(a){var b=this.set();this.forEach(function(f){c.isBBoxIntersect(f.getBBox(),a)&&b.push(f)});return b};Y.getById=function(a){return this._elementsById[a]||null};Y.forEach=function(a,c){for(var b=this.bottom;b&&!1!==a.call(c,b);)b=b.next;return this};Y.getElementsByPoint=function(a,c){var b=this.set();this.forEach(function(f){f.isPointInside(a,c)&&b.push(f)});return b};ma.isPointInside=function(a,b){var f=this.realPath=this.realPath||
sa[this.type](this),s;return c.isPointInsidePath((s=this.attr("transform"))&&s.length&&c.transformPath(f,s)||f,a,b)};ma.getBBox=function(a){if(this.removed)return{};var c=this._;if(a){if(c.dirty||!c.bboxwt)this.realPath=sa[this.type](this),c.bboxwt=$b(this.realPath),c.bboxwt.toString=L,c.dirty=0;return c.bboxwt}if(c.dirty||c.dirtyT||!c.bbox){if(c.dirty||!this.realPath)c.bboxwt=0,this.realPath=sa[this.type](this);c.bbox=$b(qa(this.realPath,this.matrix));c.bbox.toString=L;c.dirty=c.dirtyT=0}return c.bbox};
ma.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(a);return a};ma.glow=function(a){if("text"==this.type)return null;a=a||{};var c=(a.width||10)+(+this.attr("stroke-width")||1),b=a.fill||!1,f=a.opacity||.5,s=a.offsetx||0,u=a.offsety||0;a=a.color||"#000";for(var k=c/2,B=this.paper,e=B.set(),F=this.realPath||sa[this.type](this),F=this.matrix?qa(F,this.matrix):F,d=1;d<k+1;d++)e.push(B.path(F).attr({stroke:a,fill:b?a:"none",
"stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(c/k*d).toFixed(3),opacity:+(f/k).toFixed(3)}));return e.insertBefore(this).translate(s,u)};var Zc=function(b,f,s,u,k,B,e,F,d){return null==d?H(b,f,s,u,k,B,e,F):c.findDotsAtSegment(b,f,s,u,k,B,e,F,a(b,f,s,u,k,B,e,F,d))},tc=function(a,b){return function(s,u,k){s=f(s);for(var B,e,F,d,r="",g={},O=0,h=0,C=s.length;h<C;h++){F=s[h];if("M"==F[0])B=+F[1],e=+F[2];else{d=Zc(B,e,F[1],F[2],F[3],F[4],F[5],F[6]);if(O+d>u){if(b&&!g.start){B=Zc(B,
e,F[1],F[2],F[3],F[4],F[5],F[6],u-O);r+=["C"+B.start.x,B.start.y,B.m.x,B.m.y,B.x,B.y];if(k)return r;g.start=r;r=["M"+B.x,B.y+"C"+B.n.x,B.n.y,B.end.x,B.end.y,F[5],F[6]].join();O+=d;B=+F[5];e=+F[6];continue}if(!a&&!b)return B=Zc(B,e,F[1],F[2],F[3],F[4],F[5],F[6],u-O),{x:B.x,y:B.y,alpha:B.alpha}}O+=d;B=+F[5];e=+F[6]}r+=F.shift()+F}g.end=r;B=a?O:b?g:c.findDotsAtSegment(B,e,F[0],F[1],F[2],F[3],F[4],F[5],1);B.alpha&&(B={x:B.x,y:B.y,alpha:B.alpha});return B}},Nc=tc(1),Cb=tc(),bb=tc(0,1);c.getTotalLength=
Nc;c.getPointAtLength=Cb;c.getSubpath=function(a,c,b){if(1E-6>this.getTotalLength(a)-b)return bb(a,c).end;a=bb(a,b,1);return c?bb(a,c).end:a};ma.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():Nc(this.attrs.path)};ma.getPointAtLength=function(a){if("path"==this.type)return Cb(this.attrs.path,a)};ma.getSubpath=function(a,b){if("path"==this.type)return c.getSubpath(this.attrs.path,a,b)};var Va=c.easing_formulas={linear:function(a){return a},
"<":function(a){return Ia(a,1.7)},">":function(a){return Ia(a,.48)},"<>":function(a){var c=.48-a/1.04,b=za(.1734+c*c);a=b-c;a=Ia(Fa(a),1/3)*(0>a?-1:1);c=-b-c;c=Ia(Fa(c),1/3)*(0>c?-1:1);a=a+c+.5;return 3*(1-a)*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){return a==!!a?a:Ia(2,-10*a)*ea(2*(a-.075)*W/.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+.75):a<2.5/2.75?(a-=2.25/
2.75,a=7.5625*a*a+.9375):(a-=2.625/2.75,a=7.5625*a*a+.984375);return a}};Va.easeIn=Va["ease-in"]=Va["<"];Va.easeOut=Va["ease-out"]=Va[">"];Va.easeInOut=Va["ease-in-out"]=Va["<>"];Va["back-in"]=Va.backIn;Va["back-out"]=Va.backOut;var Ma=[],dd=d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.oRequestAnimationFrame||d.msRequestAnimationFrame||function(a){setTimeout(a,16)},Vc=function(){for(var a=+new Date,b=0;b<Ma.length;b++){var f=Ma[b];if(!f.el.removed&&!f.paused){var s=
a-f.start,u=f.ms,B=f.easing,F=f.from,d=f.diff,r=f.to,g=f.el,O={},h,C={},p;f.initstatus?(s=(f.initstatus*f.anim.top-f.prev)/(f.percent-f.prev)*u,f.status=f.initstatus,delete f.initstatus,f.stop&&Ma.splice(b--,1)):f.status=(f.prev+s/u*(f.percent-f.prev))/f.anim.top;if(!(0>s))if(s<u){var va=B(s/u),l;for(l in F)if(F.hasOwnProperty(l)){switch(k[l]){case w:h=+F[l]+va*u*d[l];break;case "colour":h="rgb("+[fb(Da(F[l].r+va*u*d[l].r)),fb(Da(F[l].g+va*u*d[l].g)),fb(Da(F[l].b+va*u*d[l].b))].join()+")";break;case "path":h=
[];s=0;for(B=F[l].length;s<B;s++){h[s]=[F[l][s][0]];r=1;for(C=F[l][s].length;r<C;r++)h[s][r]=(+F[l][s][r]+va*u*d[l][s][r]).toFixed(4);h[s]=h[s].join(" ")}h=h.join(" ");break;case "transform":if(d[l].real)for(h=[],s=0,B=F[l].length;s<B;s++)for(h[s]=[F[l][s][0]],r=1,C=F[l][s].length;r<C;r++)h[s][r]=F[l][s][r]+va*u*d[l][s][r];else h=function(a){return+F[l][a]+va*u*d[l][a]},h=[["m",h(0),h(1),h(2),h(3),h(4),h(5)]];break;case "csv":if("clip-rect"==l)for(h=[],s=4;s--;)h[s]=+F[l][s]+va*u*d[l][s];break;default:for(B=
[].concat(F[l]),h=[],s=g.ca[l].length;s--;)h[s]=+B[s]+va*u*d[l][s]}O[l]=h}g.attr(O);(function(a,c,b){setTimeout(function(){n("raphael.anim.frame."+a,c,b)})})(g.id,g,f.anim)}else{(function(a,b,f){setTimeout(function(){n("raphael.anim.frame."+b.id,b,f);n("raphael.anim.finish."+b.id,b,f);c.is(a,"function")&&a.call(b)})})(f.callback,g,f.anim);g.attr(r);Ma.splice(b--,1);if(1<f.repeat&&!f.next){for(p in r)r.hasOwnProperty(p)&&(C[p]=f.totalOrigin[p]);f.el.attr(C);e(f.anim,f.el,f.anim.percents[0],null,f.totalOrigin,
f.repeat-1)}f.next&&!f.stop&&e(f.anim,f.el,f.next,null,f.totalOrigin,f.repeat)}}}c.svg&&g&&g.paper&&g.paper.safari();Ma.length&&dd(Vc)},fb=function(a){return 255<a?255:0>a?0:a};ma.animateWith=function(a,b,f,s,u,k){if(this.removed)return k&&k.call(this),this;f=f instanceof g?f:c.animation(f,s,u,k);e(f,this,f.percents[0],null,this.attr());f=0;for(s=Ma.length;f<s;f++)if(Ma[f].anim==b&&Ma[f].el==a){Ma[s-1].start=Ma[f].start;break}return this};ma.onAnimation=function(a){a?n.on("raphael.anim.frame."+this.id,
a):n.unbind("raphael.anim.frame."+this.id);return this};g.prototype.delay=function(a){var c=new g(this.anim,this.ms);c.times=this.times;c.del=+a||0;return c};g.prototype.repeat=function(a){var c=new g(this.anim,this.ms);c.del=this.del;c.times=J.floor(I(a,0))||1;return c};c.animation=function(a,b,f,s){if(a instanceof g)return a;if(c.is(f,"function")||!f)s=s||f||null,f=null;a=Object(a);b=+b||0;var u={},k,B;for(B in a)a.hasOwnProperty(B)&&T(B)!=B&&T(B)+"%"!=B&&(k=!0,u[B]=a[B]);return k?(f&&(u.easing=
f),s&&(u.callback=s),new g({100:u},b)):new g(a,b)};ma.animate=function(a,b,f,s){if(this.removed)return s&&s.call(this),this;a=a instanceof g?a:c.animation(a,b,f,s);e(a,this,a.percents[0],null,this.attr());return this};ma.setTime=function(a,c){a&&null!=c&&this.status(a,U(c,a.ms)/a.ms);return this};ma.status=function(a,c){var b=[],f=0,s,u;if(null!=c)return e(a,this,-1,U(c,1)),this;for(s=Ma.length;f<s;f++)if(u=Ma[f],u.el.id==this.id&&(!a||u.anim==a)){if(a)return u.status;b.push({anim:u.anim,status:u.status})}return a?
0:b};ma.pause=function(a){for(var c=0;c<Ma.length;c++)Ma[c].el.id!=this.id||a&&Ma[c].anim!=a||!1===n("raphael.anim.pause."+this.id,this,Ma[c].anim)||(Ma[c].paused=!0);return this};ma.resume=function(a){for(var c=0;c<Ma.length;c++)if(Ma[c].el.id==this.id&&(!a||Ma[c].anim==a)){var b=Ma[c];!1!==n("raphael.anim.resume."+this.id,this,b.anim)&&(delete b.paused,this.status(b.anim,b.status))}return this};ma.stop=function(a){for(var c=0;c<Ma.length;c++)Ma[c].el.id!=this.id||a&&Ma[c].anim!=a||!1!==n("raphael.anim.stop."+
this.id,this,Ma[c].anim)&&Ma.splice(c--,1);return this};n.on("raphael.remove",h);n.on("raphael.clear",h);ma.toString=function(){return"Raphaël’s object"};ma.toFront=function(){if(this.removed)return this;var a=c._engine.getNode(this),b=this.parent,f=this.followers,s;c._tofront(this,b)&&b.canvas.appendChild(a);a=0;for(b=f.length;a<b;a++)(s=f[a]).stalk&&s.el[s.stalk](this);return this};ma.toBack=function(){if(this.removed)return this;var a=c._engine.getNode(this),b=this.parent,f=this.followers,s;c._toback(this,
b)&&b.canvas.insertBefore(a,b.canvas.firstChild);a=0;for(b=f.length;a<b;a++)(s=f[a]).stalk&&s.el[s.stalk](this);return this};ma.insertAfter=function(a){if(this.removed)return this;var b=c._engine.getNode(this),f=c._engine.getLastNode(a),s=a.parent.canvas,u=this.followers,k;f.nextSibling?s.insertBefore(b,f.nextSibling):s.appendChild(b);c._insertafter(this,a,this.parent,a.parent);b=0;for(f=u.length;b<f;b++)(k=u[b]).stalk&&k.el[k.stalk](a);return this};ma.insertBefore=function(a){if(this.removed)return this;
var b=c._engine.getNode(this),f=c._engine.getNode(a),s=this.followers,u;a.parent.canvas.insertBefore(b,f);c._insertbefore(this,a,this.parent,a.parent);this.parent=a.parent;b=0;for(f=s.length;b<f;b++)(u=s[b]).stalk&&u.el[u.stalk](a);return this};ma.appendChild=function(a){if(this.removed||"group"!==this.type)return this;var b=this.followers,f,s,u;if(a.parent===this)return a.toFront(),this;s=c._engine.getNode(a);c._tear(a,a.parent);this.canvas.appendChild(s);a.parent=this;!this.bottom&&(this.bottom=
a);a.prev=this.top;a.next=null;this.top&&(this.top.next=a);this.top=a;s=0;for(u=b.length;s<u;s++)(f=b[s]).stalk&&f.el[f.stalk](a);return this};ma.removeChild=function(a){if(this.removed||"group"!==this.type||a.parent!==this)return this;var b=c._engine.getNode(a),f=this.paper;c._tear(a,this);f.canvas.appendChild(b);this.parent=f;!f.bottom&&(f.bottom=this);(this.prev=f.top)&&(f.top.next=this);f.top=this;this.next=null;return this};var Gb=function(a){this.items=[];this.length=0;this.type="set";if(a)for(var c=
0,b=a.length;c<b;c++)!a[c]||a[c].constructor!=ma.constructor&&a[c].constructor!=Gb||(this[this.items.length]=this.items[this.items.length]=a[c],this.length++)},hb=Gb.prototype;hb.push=function(){for(var a,c,b=0,f=arguments.length;b<f;b++)!(a=arguments[b])||a.constructor!=ma.constructor&&a.constructor!=Gb||(c=this.items.length,this[c]=this.items[c]=a,this.length++);return this};hb.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};hb.forEach=function(a,c){for(var b=0,f=
this.items.length;b<f&&!1!==a.call(c,this.items[b],b);b++);return this};for(var jb in ma)ma.hasOwnProperty(jb)&&(hb[jb]=function(a){return function(){var c=arguments;return this.forEach(function(b){b[a][N](b,c)})}}(jb));hb.attr=function(a,b){if(a&&c.is(a,p)&&c.is(a[0],"object"))for(var f=0,s=a.length;f<s;f++)this.items[f].attr(a[f]);else for(f=0,s=this.items.length;f<s;f++)this.items[f].attr(a,b);return this};hb.clear=function(){for(;this.length;)this.pop()};hb.splice=function(a,c,b){a=0>a?I(this.length+
a,0):a;c=I(0,U(this.length-a,isNaN(c)&&this.length||c));var f=[],s=[],u=[],k;for(k=2;k<arguments.length;k++)u.push(arguments[k]);for(k=0;k<c;k++)s.push(this[a+k]);for(;k<this.length-a;k++)f.push(this[a+k]);var B=u.length;for(k=0;k<B+f.length;k++)this.items[a+k]=this[a+k]=k<B?u[k]:f[k-B];for(k=this.items.length=this.length-=c-B;this[k];)delete this[k++];return new Gb(s)};hb.exclude=function(a){for(var c=0,b=this.length;c<b;c++)if(this[c]==a)return this.splice(c,1),!0};hb.animate=function(a,b,f,s){!c.is(f,
"function")&&f||(s=f||null);var u=this.items.length,k=u,B=this,F;if(!u)return this;s&&(F=function(){!--u&&s.call(B)});f=c.is(f,"string")?f:F;b=c.animation(a,b,f,F);for(a=this.items[--k].animate(b);k--;)this.items[k]&&!this.items[k].removed&&this.items[k].animateWith(a,b,b);return this};hb.insertAfter=function(a){for(var c=this.items.length;c--;)this.items[c].insertAfter(a);return this};hb.getBBox=function(){for(var a=[],c=[],b=[],f=[],s=this.items.length;s--;)if(!this.items[s].removed){var u=this.items[s].getBBox();
a.push(u.x);c.push(u.y);b.push(u.x+u.width);f.push(u.y+u.height)}a=U[N](0,a);c=U[N](0,c);b=I[N](0,b);f=I[N](0,f);return{x:a,y:c,x2:b,y2:f,width:b-a,height:f-c}};hb.clone=function(a){a=new Gb;for(var c=0,b=this.items.length;c<b;c++)a.push(this.items[c].clone());return a};hb.toString=function(){return"Raphaël‘s set"};hb.glow=function(a){var c=this.paper.set();this.forEach(function(b,f){var s=b.glow(a);null!=s&&s.forEach(function(a,b){c.push(a)})});return c};c.registerFont=function(a){if(!a.face)return a;
this.fonts=this.fonts||{};var c={w:a.w,face:{},glyphs:{}},b=a.face["font-family"],f;for(f in a.face)a.face.hasOwnProperty(f)&&(c.face[f]=a.face[f]);this.fonts[b]?this.fonts[b].push(c):this.fonts[b]=[c];if(!a.svg){c.face["units-per-em"]=r(a.face["units-per-em"],10);for(var s in a.glyphs)if(a.glyphs.hasOwnProperty(s)&&(b=a.glyphs[s],c.glyphs[s]={w:b.w,k:{},d:b.d&&"M"+b.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},b.k))for(var u in b.k)b.hasOwnProperty(u)&&
(c.glyphs[s].k[u]=b.k[u])}return a};Y.getFont=function(a,b,f,s){s=s||"normal";f=f||"normal";b=+b||{normal:400,bold:700,lighter:300,bolder:800}[b]||400;if(c.fonts){var u=c.fonts[a];if(!u){a=new RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i");for(var k in c.fonts)if(c.fonts.hasOwnProperty(k)&&a.test(k)){u=c.fonts[k];break}}var B;if(u)for(k=0,a=u.length;k<a&&(B=u[k],B.face["font-weight"]!=b||B.face["font-style"]!=f&&B.face["font-style"]||B.face["font-stretch"]!=s);k++);return B}};Y.print=
function(a,b,f,s,u,k,B){k=k||"middle";B=I(U(B||0,1),-1);var F=Q(f).split(""),e=0,d=0,r="";c.is(s,f)&&(s=this.getFont(s));if(s){f=(u||16)/s.face["units-per-em"];var g=s.face.bbox.split(Ha);u=+g[0];var h=g[3]-g[1],O=0;k=+g[1]+("baseline"==k?h+ +s.face.descent:h/2);for(var g=0,C=F.length;g<C;g++){if("\n"==F[g])d=l=e=0,O+=h;else var p=d&&s.glyphs[F[g-1]]||{},l=s.glyphs[F[g]],e=e+(d?(p.w||s.w)+(p.k&&p.k[F[g]]||0)+s.w*B:0),d=1;l&&l.d&&(r+=c.transformPath(l.d,["t",e*f,O*f,"s",f,f,u,k,"t",(a-u)/f,(b-k)/f]))}}return this.path(r).attr({fill:"#000",
stroke:"none"})};Y.add=function(a){if(c.is(a,"array"))for(var b=this.set(),f=0,s=a.length,u;f<s;f++)u=a[f]||{},ca.hasOwnProperty(u.type)&&b.push(this[u.type]().attr(u));return b};c.format=function(a,b){var f=c.is(b,p)?[0].concat(b):arguments;a&&c.is(a,"string")&&f.length-1&&(a=a.replace(Qa,function(a,c){return null==f[++c]?"":f[c]}));return a||""};c.fullfill=function(){var a=/\{([^\}]+)\}/g,c=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,b=function(a,b,f){var s=f;b.replace(c,function(a,
c,b,f,u){c=c||f;s&&(c in s&&(s=s[c]),"function"==typeof s&&u&&(s=s()))});return s=(null==s||s==f?a:s)+""};return function(c,f){return String(c).replace(a,function(a,c){return b(a,c,f)})}}();c.ninja=function(){da?q.win.Raphael=V:delete Raphael;return c};var vc=c.vml&&.5||0;c.crispBound=$a(function(a,c,b,f,s){var u={},k;a=a||0;c=c||0;b=b||0;f=f||0;s=s||0;k=s%2/2+vc;u.x=Da(a+k)-k;u.y=Da(c+k)-k;u.width=Da(a+b+k)-k-u.x;u.height=Da(c+f+k)-k-u.y;u["stroke-width"]=s;0===u.width&&0!==b&&(u.width=1);0===u.height&&
0!==f&&(u.height=1);return u},c);ma.crisp=function(){var a=this.attrs,b,f=this.attr(["x","y","width","height","stroke-width"]),f=c.crispBound(f.x,f.y,f.width,f.height,f["stroke-width"]);for(b in f)a[b]===f[b]&&delete f[b];return this.attr(f)};c.st=hb;c.define=function(a,b,f,s,u,k){var B;if(c.is(a,p))for(k=0,B=a.length;k<B;k++)c.define(a[k]);else if(c.is(a,"object"))c.define(a.name,a[a.name],a.ca,a.fn,a.e,a.data);else if(a&&!c.fn[a])return c.fn[a]=function(){var k=arguments,B=b.apply(this,k),F;if(s&&
c.is(s,"object"))for(F in s)B[F]=s[F];if(u&&c.is(u,"object"))for(F in u)B[F]&&B[F](u[F]);if(f){if(c.is(f,"function"))B.ca[a]=f;else for(F in f)B.ca[F]=f[F];B.ca[a]&&(c._lastArgIfGroup(k,!0),B.attr(a,R.call(k)))}return B},f&&(c.fn[a].ca=f),s&&(c.fn[a].fn=s),u&&(c.fn[a].e=u),k&&(c.fn[a].data=k),c.fn[a]};(function(a,b,f){function s(){/in/.test(a.readyState)?setTimeout(s,9):c.eve("raphael.DOMload")}null==a.readyState&&a.addEventListener&&(a.addEventListener(b,f=function(){a.removeEventListener(b,f,!1);
a.readyState="complete"},!1),a.readyState="loading");s()})(document,"DOMContentLoaded");n.on("raphael.DOMload",function(){l=!0});(function(){if(c.svg){var a=String,b=parseFloat,f=parseInt,s=Math,u=s.max,k=s.abs,B=s.pow,F=s.sqrt,e=/[, ]+/,d=!(!/AppleWebKit/.test(c._g.win.navigator.userAgent)||/Chrome/.test(c._g.win.navigator.userAgent)&&!(29>c._g.win.navigator.appVersion.match(/Chrome\/(\d+)\./)[1])),r=c.eve,g={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={};c.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};c._url="";var O=function(a,c){var b=a.gradient;if(b){if(b===c)return;b.refCount--;b.refCount||b.parentNode.removeChild(b);delete a.gradient}c&&(a.gradient=c,c.refCount++)},C=c._createNode=function(b,f){if(f){"string"==typeof b&&(b=C(b));for(var s in f)f.hasOwnProperty(s)&&("xlink:"==s.substring(0,6)?b.setAttributeNS("http://www.w3.org/1999/xlink",
s.substring(6),a(f[s])):b.setAttribute(s,a(f[s])))}else b=c._g.doc.createElementNS("http://www.w3.org/2000/svg",b);return b},p={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},l={pad:"pad",redlect:"reflect",repeat:"repeat"},va=function(f,e){if(!f.paper||!f.paper.defs)return 0;var d="linear",r=f.paper,g=(r.id+"-"+e).replace(/[\(\)\s%:,\xb0#]/g,"_"),h=.5,va=.5,J,E,ba,q,n,M=f.node,Aa=M.style,t=c._g.doc.getElementById(g);if(!t){e=a(e).replace(c._radial_gradient,function(a,c){d=
"radial";c=c&&c.split(",")||[];q=c[5];n=c[6];var f=c[0],s=c[1],u=c[2],k=c[3],e=c[4],r=f&&s,g;u&&(J=/\%/.test(u)?u:b(u));if(q===p.userSpaceOnUse)return r&&(h=f,va=s),k&&e&&(E=k,ba=e,r||(h=E,va=ba)),"";r&&(h=b(f),va=b(s),f=2*(.5<va)-1,.25<(g=B(h-.5,2))+B(va-.5,2)&&.25>g&&(va=F(.25-g)*f+.5)&&.5!==va&&(va=va.toFixed(5)-1E-5*f));k&&e&&(E=b(k),ba=b(e),f=2*(.5<ba)-1,.25<(g=B(E-.5,2))+B(ba-.5,2)&&.25>g&&(ba=F(.25-g)*f+.5)&&.5!==ba&&(ba=ba.toFixed(5)-1E-5*f),r||(h=E,va=ba));return""});e=e.split(/\s*\-\s*/);
if("linear"==d){var t=e.shift(),I=t.match(/\((.*)\)/),m,I=I&&I[1]&&I[1].split(/\s*\,\s*/),t=-b(t);if(isNaN(t))return null;I&&I.length?(I[0]in p?(q=I.shift(),I[0]in l&&(n=I.shift())):(I[4]&&(q=I[4]),I[5]&&(n=I[5])),m=[I[0]||"0%",I[1]||"0%",I[2]||"100%",I[3]||"0%"]):(m=[0,0,s.cos(c.rad(t)),s.sin(c.rad(t))],t=1/(u(k(m[2]),k(m[3]))||1),m[2]*=t,m[3]*=t,0>m[2]&&(m[0]=-m[2],m[2]=0),0>m[3]&&(m[1]=-m[3],m[3]=0))}I=c._parseDots(e);if(!I)return null;t=C(d+"Gradient",{id:g});t.refCount=0;q in p&&t.setAttribute("gradientUnits",
a(q));n in l&&t.setAttribute("spreadMethod",a(n));"radial"===d?(void 0!==J&&t.setAttribute("r",a(J)),void 0!==E&&void 0!==ba&&(t.setAttribute("cx",a(E)),t.setAttribute("cy",a(ba))),t.setAttribute("fx",a(h)),t.setAttribute("fy",a(va))):C(t,{x1:m[0],y1:m[1],x2:m[2],y2:m[3]});m=0;for(var P=I.length;m<P;m++)t.appendChild(C("stop",{offset:I[m].offset?I[m].offset:m?"100%":"0%","stop-color":I[m].color||"#fff","stop-opacity":void 0===I[m].opacity?1:I[m].opacity}));r.defs.appendChild(t)}O(f,t);C(M,{fill:"url('"+
c._url+"#"+g+"')",opacity:1,"fill-opacity":1});Aa.fill="";Aa.opacity=1;return Aa.fillOpacity=1},E=function(a){var c=a.getBBox(1);C(a.pattern,{patternTransform:a.matrix.invert()+" translate("+c.x+","+c.y+")"})},J=function(b,f,s){if("path"==b.type){for(var u=a(f).toLowerCase().split("-"),k=b.paper,B=s?"end":"start",F=b.node,e=b.attrs,d=e["stroke-width"],r=u.length,O="classic",p,l,va=3,E=3,J=5;r--;)switch(u[r]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":O=u[r];break;
case "wide":E=5;break;case "narrow":E=2;break;case "long":va=5;break;case "short":va=2}"open"==O?(va+=2,E+=2,J+=2,p=1,l=s?4:1,u={fill:"none",stroke:e.stroke}):(l=p=va/2,u={fill:e.stroke,stroke:"none"});b._.arrows?s?(b._.arrows.endPath&&h[b._.arrows.endPath]--,b._.arrows.endMarker&&h[b._.arrows.endMarker]--):(b._.arrows.startPath&&h[b._.arrows.startPath]--,b._.arrows.startMarker&&h[b._.arrows.startMarker]--):b._.arrows={};if("none"!=O){var r="raphael-marker-"+O,ba="raphael-marker-"+B+O+va+E+"-obj"+
b.id;c._g.doc.getElementById(r)?h[r]++:(k.defs.appendChild(C(C("path"),{"stroke-linecap":"round",d:g[O],id:r})),h[r]=1);var q=c._g.doc.getElementById(ba);q?(h[ba]++,va=q.getElementsByTagName("use")[0]):(q=C(C("marker"),{id:ba,markerHeight:E,markerWidth:va,orient:"auto",refX:l,refY:E/2}),va=C(C("use"),{"xlink:href":"#"+r,transform:(s?"rotate(180 "+va/2+" "+E/2+") ":"")+"scale("+va/J+","+E/J+")","stroke-width":(1/((va/J+E/J)/2)).toFixed(4)}),q.appendChild(va),k.defs.appendChild(q),h[ba]=1);C(va,u);
k=p*("diamond"!=O&&"oval"!=O);s?(s=b._.arrows.startdx*d||0,d=c.getTotalLength(e.path)-k*d):(s=k*d,d=c.getTotalLength(e.path)-(b._.arrows.enddx*d||0));u={};u["marker-"+B]="url('"+c._url+"#"+ba+"')";if(d||s)u.d=c.getSubpath(e.path,s,d);C(F,u);b._.arrows[B+"Path"]=r;b._.arrows[B+"Marker"]=ba;b._.arrows[B+"dx"]=k;b._.arrows[B+"Type"]=O;b._.arrows[B+"String"]=f}else s?(s=b._.arrows.startdx*d||0,d=c.getTotalLength(e.path)-s):(s=0,d=c.getTotalLength(e.path)-(b._.arrows.enddx*d||0)),b._.arrows[B+"Path"]&&
C(F,{d:c.getSubpath(e.path,s,d)}),delete b._.arrows[B+"Path"],delete b._.arrows[B+"Marker"],delete b._.arrows[B+"dx"],delete b._.arrows[B+"Type"],delete b._.arrows[B+"String"];for(u in h)h.hasOwnProperty(u)&&!h[u]&&(b=c._g.doc.getElementById(u))&&b.parentNode.removeChild(b)}},ba={"":[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]},q=function(b,f,s){var u=ba[a(f).toLowerCase()],k,B;if(f=u||void 0!==
f&&[].concat(f)){k=b.attrs["stroke-width"]||1;s={round:k,square:k,butt:0}[b.attrs["stroke-linecap"]||s["stroke-linecap"]]||0;B=f.length;k=u?k:1;for(u=[];B--;)u[B]=f[B]*k+(B%2?1:-1)*s,0>u[B]&&(u[B]=0);c.is(f,"array")&&C(b.node,{"stroke-dasharray":u.join(",")})}},n=function(a,c){for(var b in c)r("raphael.attr."+b+"."+a.id,a,c[b],b),a.ca[b]&&a.attr(b,c[b])},M=c._setFillAndStroke=function(b,s){if(b.paper.canvas){var B=b.node,F=b.attrs,r=b.paper,g=B.style,h=g.visibility;g.visibility="hidden";for(var p in s)if(s.hasOwnProperty(p)&&
c._availableAttrs.hasOwnProperty(p)){var l=s[p];F[p]=l;switch(p){case "blur":b.blur(l);break;case "href":case "title":case "target":var ba=B.parentNode;if("a"!=ba.tagName.toLowerCase()){if(""==l)break;var n=C("a");n.raphael=!0;n.raphaelid=B.raphaelid;ba.insertBefore(n,B);n.appendChild(B);ba=n}"target"==p?ba.setAttributeNS("http://www.w3.org/1999/xlink","show","blank"==l?"new":l):ba.setAttributeNS("http://www.w3.org/1999/xlink",p,l);B.titleNode=ba;break;case "cursor":g.cursor=l;break;case "transform":b.transform(l);
break;case "rotation":c.is(l,"array")?b.rotate.apply(b,l):b.rotate(l);break;case "arrow-start":J(b,l);break;case "arrow-end":J(b,l,1);break;case "clip-path":var I=!0;case "clip-rect":ba=!I&&a(l).split(e);b._.clipispath=!!I;if(I||4==ba.length){b.clip&&b.clip.parentNode.parentNode.removeChild(b.clip.parentNode);var n=C("clipPath"),M=C(I?"path":"rect");n.id=c.createUUID();C(M,I?{d:l?F["clip-path"]=c._pathToAbsolute(l):c._availableAttrs.path,fill:"none"}:{x:ba[0],y:ba[1],width:ba[2],height:ba[3],transform:b.matrix.invert()});
n.appendChild(M);r.defs.appendChild(n);C(B,{"clip-path":"url('"+c._url+"#"+n.id+"')"});b.clip=M}!l&&(l=B.getAttribute("clip-path"))&&((l=c._g.doc.getElementById(l.replace(/(^url\(#|\)$)/g,"")))&&l.parentNode.removeChild(l),C(B,{"clip-path":""}),delete b.clip);break;case "path":"path"==b.type&&(C(B,{d:l?F.path=c._pathToAbsolute(l):c._availableAttrs.path}),b._.dirty=1,b._.arrows&&("startString"in b._.arrows&&J(b,b._.arrows.startString),"endString"in b._.arrows&&J(b,b._.arrows.endString,1)));break;case "width":if(B.setAttribute(p,
l),b._.dirty=1,F.fx)p="x",l=F.x;else break;case "x":F.fx&&(l=-F.x-(F.width||0));case "rx":if("rx"==p&&"rect"==b.type)break;case "cx":B.setAttribute(p,l);b.pattern&&E(b);b._.dirty=1;break;case "height":if(B.setAttribute(p,l),b._.dirty=1,F.fy)p="y",l=F.y;else break;case "y":F.fy&&(l=-F.y-(F.height||0));case "ry":if("ry"==p&&"rect"==b.type)break;case "cy":B.setAttribute(p,l);b.pattern&&E(b);b._.dirty=1;break;case "r":"rect"==b.type?C(B,{rx:l,ry:l}):B.setAttribute(p,l);b._.dirty=1;break;case "src":"image"==
b.type&&B.setAttributeNS("http://www.w3.org/1999/xlink","href",l);break;case "stroke-width":if(1!=b._.sx||1!=b._.sy)l/=u(k(b._.sx),k(b._.sy))||1;r._vbSize&&(l*=r._vbSize);d&&0===l&&(l=1E-6);B.setAttribute(p,l);F["stroke-dasharray"]&&q(b,F["stroke-dasharray"],s);b._.arrows&&("startString"in b._.arrows&&J(b,b._.arrows.startString),"endString"in b._.arrows&&J(b,b._.arrows.endString,1));break;case "stroke-dasharray":q(b,l,s);break;case "fill":var Aa=a(l).match(c._ISURL);if(Aa){var n=C("pattern"),m=C("image");
n.id=c.createUUID();C(n,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});C(m,{x:0,y:0,"xlink:href":Aa[1]});n.appendChild(m);(function(a){c._preload(Aa[1],function(){var c=this.offsetWidth,b=this.offsetHeight;C(a,{width:c,height:b});C(m,{width:c,height:b});r.safari()})})(n);r.defs.appendChild(n);g.fill="url('"+c._url+"#"+n.id+"')";C(B,{fill:g.fill});b.pattern=n;b.pattern&&E(b);break}ba=c.getRGB(l);if(!ba.error)delete s.gradient,delete F.gradient,!c.is(F.opacity,"undefined")&&c.is(s.opacity,
"undefined")&&C(B,{opacity:F.opacity}),!c.is(F["fill-opacity"],"undefined")&&c.is(s["fill-opacity"],"undefined")&&C(B,{"fill-opacity":F["fill-opacity"]}),b.gradient&&O(b);else if(("circle"==b.type||"ellipse"==b.type||"r"!=a(l).charAt())&&va(b,l)){if("opacity"in F||"fill-opacity"in F)if(ba=c._g.doc.getElementById(B.getAttribute("fill").replace(/^url\(#|\)$/g,"")))ba=ba.getElementsByTagName("stop"),C(ba[ba.length-1],{"stop-opacity":("opacity"in F?F.opacity:1)*("fill-opacity"in F?F["fill-opacity"]:1)});
F.gradient=l;F.fill="none";g.fill="";break}ba.hasOwnProperty("opacity")?(C(B,{"fill-opacity":g.fillOpacity=1<ba.opacity?ba.opacity/100:ba.opacity}),b._.fillOpacityDirty=!0):b._.fillOpacityDirty&&c.is(F["fill-opacity"],"undefined")&&c.is(s["fill-opacity"],"undefined")&&(B.removeAttribute("fill-opacity"),g.fillOpacity="",delete b._.fillOpacityDirty);case "stroke":ba=c.getRGB(l);B.setAttribute(p,ba.hex);g[p]=ba.hex;"stroke"==p&&(ba.hasOwnProperty("opacity")?(C(B,{"stroke-opacity":g.strokeOpacity=1<ba.opacity?
ba.opacity/100:ba.opacity}),b._.strokeOpacityDirty=!0):b._.strokeOpacityDirty&&c.is(F["stroke-opacity"],"undefined")&&c.is(s["stroke-opacity"],"undefined")&&(B.removeAttribute("stroke-opacity"),g.strokeOpacity="",delete b._.strokeOpacityDirty),b._.arrows&&("startString"in b._.arrows&&J(b,b._.arrows.startString),"endString"in b._.arrows&&J(b,b._.arrows.endString,1)));break;case "gradient":"circle"!=b.type&&"ellipse"!=b.type&&"r"==a(l).charAt()||va(b,l);break;case "line-height":case "vertical-align":break;
case "visibility":"hidden"===l?b.hide():b.show();break;case "opacity":F.gradient&&!F.hasOwnProperty("stroke-opacity")&&C(B,{"stroke-opacity":1<l?l/100:l});case "fill-opacity":if(F.gradient){if(ba=c._g.doc.getElementById(B.getAttribute("fill").replace(/^url\(#|\)$/g,"")))ba=ba.getElementsByTagName("stop"),C(ba[ba.length-1],{"stop-opacity":l});break}default:"font-size"==p&&(l=f(l,10)+"px"),ba=p.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),g[ba]=l,b._.dirty=1,B.setAttribute(p,l)}}"text"===
b.type&&t(b,s);g.visibility=h}},t=function(f,s){if("text"==f.type&&(s.hasOwnProperty("text")||s.hasOwnProperty("font")||s.hasOwnProperty("font-size")||s.hasOwnProperty("x")||s.hasOwnProperty("y")||s.hasOwnProperty("line-height")||s.hasOwnProperty("vertical-align"))){var u=f.attrs,k=f.node,B=k.firstChild&&c._g.doc.defaultView.getComputedStyle(k.firstChild,"")?b(c._g.doc.defaultView.getComputedStyle(k.firstChild,"").getPropertyValue("font-size")):10,F=b(s["line-height"]||u["line-height"])||1.2*B,e=
u.hasOwnProperty("vertical-align")?u["vertical-align"]:"middle";isNaN(F)&&(F=1.2*B);c.is(s.text,"array")&&(s.text=s.text.join("<br>"));e="top"===e?-.5:"bottom"===e?.5:0;if(s.hasOwnProperty("text")&&(s.text!==u.text||f._textdirty)){for(u.text=s.text;k.firstChild;)k.removeChild(k.firstChild);for(var d=a(s.text).split(/\n|<br\s*?\/?>/ig),B=[],r,g=0,h=d.length;g<h;g++)r=C("tspan"),g?C(r,{dy:F,x:u.x}):C(r,{dy:F*d.length*e,x:u.x}),d[g]||(r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space",
"preserve"),d[g]=" "),r.appendChild(c._g.doc.createTextNode(d[g])),k.appendChild(r),B[g]=r;f._textdirty=!1}else for(B=k.getElementsByTagName("tspan"),g=0,h=B.length;g<h;g++)g?C(B[g],{dy:F,x:u.x}):C(B[0],{dy:F*B.length*e,x:u.x});C(k,{x:u.x,y:u.y});f._.dirty=1;k=f._getBBox();F=u.y-(k.y+k.height/2);if(k.isCalculated)switch(u["vertical-align"]){case "top":F=.75*k.height;break;case "bottom":F=-(.25*k.height);break;default:F=u.y-(k.y+.25*k.height)}F&&c.is(F,"finite")&&B[0]&&C(B[0],{dy:F})}},Aa=function(a,
b,f){f=f||b;f.canvas&&f.canvas.appendChild(a);this.node=this[0]=a;a.raphael=!0;a.raphaelid=this.id=c._oid++;this.matrix=c.matrix();this.realPath=null;this.attrs=this.attrs||{};this.followers=this.followers||[];this.paper=b;this.ca=this.customAttributes=this.customAttributes||new b._CustomAttributes;this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};this.parent=f;!f.bottom&&(f.bottom=this);(this.prev=f.top)&&(f.top.next=this);f.top=this;this.next=null},I=c.el;Aa.prototype=I;I.constructor=Aa;c._engine.getNode=
function(a){a=a.node||a[0].node;return a.titleNode||a};c._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.titleNode||a};I.rotate=function(c,f,s){if(this.removed)return this;c=a(c).split(e);c.length-1&&(f=b(c[1]),s=b(c[2]));c=b(c[0]);null==s&&(f=s);if(null==f||null==s)s=this.getBBox(1),f=s.x+s.width/2,s=s.y+s.height/2;this.transform(this._.transform.concat([["r",c,f,s]]));return this};I.scale=function(c,f,s,u){var k;if(this.removed)return this;c=a(c).split(e);c.length-1&&(f=b(c[1]),
s=b(c[2]),u=b(c[3]));c=b(c[0]);null==f&&(f=c);null==u&&(s=u);if(null==s||null==u)k=this.getBBox(1);s=null==s?k.x+k.width/2:s;u=null==u?k.y+k.height/2:u;this.transform(this._.transform.concat([["s",c,f,s,u]]));return this};I.translate=function(c,f){if(this.removed)return this;c=a(c).split(e);c.length-1&&(f=b(c[1]));c=b(c[0])||0;this.transform(this._.transform.concat([["t",c,+f||0]]));return this};I.transform=function(a){var b=this._;if(null==a)return b.transform;c._extractTransform(this,a);this.clip&&
!b.clipispath&&C(this.clip,{transform:this.matrix.invert()});this.pattern&&E(this);this.node&&C(this.node,{transform:this.matrix});if(1!=b.sx||1!=b.sy)a=this.attrs.hasOwnProperty("stroke-width")?this.attrs["stroke-width"]:1,this.attr({"stroke-width":a});return this};I.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};I.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};I.remove=function(){if(!this.removed&&this.parent.canvas){var a=
c._engine.getNode(this),b=this.paper,f=b.defs;b.__set__&&b.__set__.exclude(this);r.unbind("raphael.*.*."+this.id);for(this.gradient&&f&&O(this);f=this.followers.pop();)f.el.remove();for(;f=this.bottom;)f.remove();this._drag&&this.undrag();if(this.events)for(;f=this.events.pop();)f.unbind();this.parent.canvas.removeChild(a);this.removeData();delete b._elementsById[this.id];c._tear(this,this.parent);for(f in this)this[f]="function"===typeof this[f]?c._removedFactory(f):null;this.removed=!0}};I._getBBox=
function(){var a=this.node,c={},b=this.attrs,f,s;"none"===a.style.display&&(this.show(),s=!0);try{c=a.getBBox(),"text"==this.type&&(void 0===c.x&&(c.isCalculated=!0,f=b["text-anchor"],c.x=(b.x||0)-c.width*("start"===f?0:"middle"===f?.5:1)),void 0===c.y&&(c.isCalculated=!0,f=b["vertical-align"],c.y=(b.y||0)-c.height*("bottom"===f?1:"middle"===f?.5:0)))}catch(u){}finally{c=c||{}}s&&this.hide();return c};I.attr=function(a,b){if(this.removed)return this;if(null==a){var f={},s;for(s in this.attrs)this.attrs.hasOwnProperty(s)&&
(f[s]=this.attrs[s]);f.gradient&&"none"==f.fill&&(f.fill=f.gradient)&&delete f.gradient;f.transform=this._.transform;f.visibility="none"===this.node.style.display?"hidden":"visible";return f}if(null==b&&c.is(a,"string")){if("fill"==a&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==a)return this._.transform;if("visibility"==a)return"none"===this.node.style.display?"hidden":"visible";var f=a.split(e),u={},k=0;for(s=f.length;k<s;k++)a=f[k],a in this.attrs?u[a]=
this.attrs[a]:c.is(this.ca[a],"function")?u[a]=this.ca[a].def:u[a]=c._availableAttrs[a];return s-1?u:u[f[0]]}if(null==b&&c.is(a,"array")){u={};k=0;for(s=a.length;k<s;k++)u[a[k]]=this.attr(a[k]);return u}null!=b?(f={},f[a]=b):null!=a&&c.is(a,"object")&&(f=a);for(k in f)r("raphael.attr."+k+"."+this.id,this,f[k],k);var B={};for(k in this.ca)if(this.ca[k]&&f.hasOwnProperty(k)&&c.is(this.ca[k],"function")&&!this.ca["_invoked"+k]){this.ca["_invoked"+k]=!0;s=this.ca[k].apply(this,[].concat(f[k]));delete this.ca["_invoked"+
k];for(u in s)s.hasOwnProperty(u)&&(f[u]=s[u]);this.attrs[k]=f[k];!1===s&&(B[k]=f[k],delete f[k])}M(this,f);var F,k=0;for(s=this.followers.length;k<s;k++)F=this.followers[k],F.cb&&!F.cb.call(F.el,f,this)||F.el.attr(f);for(u in B)f[u]=B[u];return this};I.blur=function(a){if(0!==+a){var b=C("filter"),f=C("feGaussianBlur");this.attrs.blur=a;b.id=c.createUUID();C(f,{stdDeviation:+a||1.5});b.appendChild(f);this.paper.defs.appendChild(b);this._blur=b;C(this.node,{filter:"url('"+c._url+"#"+b.id+"')"})}else this._blur&&
(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")};I.on=function(a,b){if(this.removed)return this;var f=b;c.supportsTouch&&(a=c._touchMap[a]||"click"===a&&"touchstart"||a,f=function(a){a.preventDefault();b()});this.node["on"+a]=f;return this};c._engine.path=function(a,c,b){var f=C("path");a=new Aa(f,a,b);a.type="path";M(a,c);n(a,c);return a};c._engine.group=function(a,c,b){var f=C("g");a=new Aa(f,a,b);a.type="group";a.canvas=
a.node;a.top=a.bottom=null;a._id=c||"";c&&f.setAttribute("class","raphael-group-"+a.id+"-"+c);return a};c._engine.circle=function(a,c,b){var f=C("circle");a=new Aa(f,a,b);a.type="circle";M(a,c);n(a,c);return a};c._engine.rect=function(a,c,b){var f=C("rect");a=new Aa(f,a,b);a.type="rect";c.rx=c.ry=c.r;M(a,c);n(a,c);return a};c._engine.ellipse=function(a,c,b){var f=C("ellipse");a=new Aa(f,a,b);a.type="ellipse";M(a,c);n(a,c);return a};c._engine.image=function(a,c,b){var f=C("image");a=new Aa(f,a,b);
a.type="image";f.setAttribute("preserveAspectRatio","none");M(a,c);n(a,c);return a};c._engine.text=function(a,c,b){var f=C("text");a=new Aa(f,a,b);a.type="text";a._textdirty=!0;M(a,c);n(a,c);return a};c._engine.setSize=function(a,c){this.width=a||this.width;this.height=c||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};c._engine.create=function(){var a=c._getContainer.apply(0,
arguments),b=a&&a.container,f=a.x,s=a.y,u=a.width,a=a.height;if(!b)throw Error("SVG container not found.");var k=C("svg"),B,f=f||0,s=s||0,u=u||512,a=a||342;C(k,{height:a,version:1.1,width:u,xmlns:"http://www.w3.org/2000/svg"});1==b?(k.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:"+f+"px;top:"+s+"px",
c._g.doc.body.appendChild(k),B=1):(k.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",b.firstChild?b.insertBefore(k,b.firstChild):b.appendChild(k));b=new c._Paper;b.width=u;b.height=a;b.canvas=k;C(k,{id:"raphael-paper-"+b.id});b.clear();b._left=b._top=0;B&&(b.renderfix=function(){});b.renderfix();return b};c._engine.setViewBox=
function(a,c,b,f,s){r("raphael.setViewBox",this,this._viewBox,[a,c,b,f,s]);var k=u(b/this.width,f/this.height),B=this.top,F=s?"meet":"xMinYMin",e;null==a?(this._vbSize&&(k=1),delete this._vbSize,e="0 0 "+this.width+" "+this.height):(this._vbSize=k,e=a+" "+c+" "+b+" "+f);for(C(this.canvas,{viewBox:e,preserveAspectRatio:F});k&&B;)F="stroke-width"in B.attrs?B.attrs["stroke-width"]:1,B.attr({"stroke-width":F}),B._.dirty=1,B._.dirtyT=1,B=B.prev;this._viewBox=[a,c,b,f,!!s];return this};c.prototype.renderfix=
function(){var a=this.canvas,c=a.style,b;try{b=a.getScreenCTM()||a.createSVGMatrix()}catch(f){b=a.createSVGMatrix()}a=-b.e%1;b=-b.f%1;if(a||b)a&&(this._left=(this._left+a)%1,c.left=this._left+"px"),b&&(this._top=(this._top+b)%1,c.top=this._top+"px")};c.prototype._desc=function(a){var b=this.desc;if(b)for(;b.firstChild;)b.removeChild(b.firstChild);else this.desc=b=C("desc"),this.canvas.appendChild(b);b.appendChild(c._g.doc.createTextNode(c.is(a,"string")?a:"Created with Red Raphaël "+c.version))};
c.prototype.clear=function(){var a;for(r("raphael.clear",this);a=this.bottom;)a.remove();for(a=this.canvas;a.firstChild;)a.removeChild(a.firstChild);this.bottom=this.top=null;a.appendChild(this.desc=C("desc"));a.appendChild(this.defs=C("defs"))};c.prototype.remove=function(){var a;for(r("raphael.remove",this);a=this.bottom;)a.remove();this.defs&&this.defs.parentNode.removeChild(this.defs);this.desc&&this.desc.parentNode.removeChild(this.desc);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);
for(a in this)this[a]="function"==typeof this[a]?c._removedFactory(a):null;this.removed=!0};var m=c.st,P;for(P in I)I.hasOwnProperty(P)&&!m.hasOwnProperty(P)&&(m[P]=function(a){return function(){var c=arguments;return this.forEach(function(b){b[a].apply(b,c)})}}(P))}})();(function(){if(c.vml){var a=String,b=parseFloat,f=Math,s=f.round,u=f.max,k=f.min,B=f.sqrt,F=f.abs,e=/[, ]+/,d=c.eve,r={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},g=/([clmz]),?([^clmz]*)/gi,h=/ progid:\S+Blur\([^\)]+\)/g,O=/-?[^,\s-]+/g,
C={path:1,rect:1,image:1},l={circle:1,ellipse:1},p=function(b){var f=/[ahqstv]/ig,u=c._pathToAbsolute;a(b).match(f)&&(u=c._path2curve);f=/[clmz]/g;if(u==c._pathToAbsolute&&!a(b).match(f))return(b=a(b).replace(g,function(a,c,b){var f=[],u="m"==c.toLowerCase(),k=r[c];b.replace(O,function(a){u&&2==f.length&&(k+=f+r["m"==c?"l":"L"],f=[]);f.push(s(21600*a))});return k+f}))||"m0,0";var f=u(b),k;b=[];for(var B=0,F=f.length;B<F;B++){u=f[B];k=f[B][0].toLowerCase();"z"==k&&(k="x");for(var e=1,d=u.length;e<
d;e++)k+=s(21600*u[e])+(e!=d-1?",":"");b.push(k)}return b.length?b.join(" "):"m0,0"},va=function(a,b,f){var s=c.matrix();s.rotate(-a,.5,.5);return{dx:s.x(b,f),dy:s.y(b,f)}},ba=function(a,c,b,f,s,u){var k=a._,B=a.matrix,e=k.fillpos;a=a.node;var d=a.style,r=1,g="",h=21600/c,O=21600/b;d.visibility="hidden";if(c&&b){a.coordsize=F(h)+" "+F(O);d.rotation=u*(0>c*b?-1:1);u&&(s=va(u,f,s),f=s.dx,s=s.dy);0>c&&(g+="x");0>b&&(g+=" y")&&(r=-1);d.flip=g;a.coordorigin=f*-h+" "+s*-O;if(e||k.fillsize)if(f=(f=a.getElementsByTagName("fill"))&&
f[0])a.removeChild(f),e&&(s=va(u,B.x(e[0],e[1]),B.y(e[0],e[1])),f.position=s.dx*r+" "+s.dy*r),k.fillsize&&(f.size=k.fillsize[0]*F(c)+" "+k.fillsize[1]*F(b)),a.appendChild(f);d.visibility="visible"}};c._url="";c.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+this.version};var E=function(c,b,f){b=a(b).toLowerCase().split("-");f=f?"end":"start";for(var s=b.length,u="classic",k="medium",B="medium";s--;)switch(b[s]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":u=
b[s];break;case "wide":case "narrow":B=b[s];break;case "long":case "short":k=b[s]}c=c.node.getElementsByTagName("stroke")[0];c[f+"arrow"]=u;c[f+"arrowlength"]=k;c[f+"arrowwidth"]=B},J=function(a,c){for(var b in c)d("raphael.attr."+b+"."+a.id,a,c[b],b),a.ca[b]&&a.attr(b,c[b])},q=c._setFillAndStroke=function(f,B){if(f.paper.canvas){f.attrs=f.attrs||{};var F=f.node,d=f.attrs,r=F.style,g=C[f.type]&&(B.x!=d.x||B.y!=d.y||B.width!=d.width||B.height!=d.height||B.cx!=d.cx||B.cy!=d.cy||B.rx!=d.rx||B.ry!=d.ry||
B.r!=d.r),h=l[f.type]&&(d.cx!=B.cx||d.cy!=B.cy||d.r!=B.r||d.rx!=B.rx||d.ry!=B.ry),O="group"===f.type,va;for(va in B)B.hasOwnProperty(va)&&(d[va]=B[va]);g&&(d.path=c._getPath[f.type](f),f._.dirty=1);B.href&&(F.href=B.href);B.title&&(F.title=B.title);B.target&&(F.target=B.target);B.cursor&&(r.cursor=B.cursor);"blur"in B&&f.blur(B.blur);if(B.path&&"path"==f.type||g)F.path=p(~a(d.path).toLowerCase().indexOf("r")?c._pathToAbsolute(d.path):d.path),"image"==f.type&&(f._.fillpos=[d.x,d.y],f._.fillsize=[d.width,
d.height],ba(f,1,1,0,0,0));"transform"in B&&f.transform(B.transform);"rotation"in B&&(r=B.rotation,c.is(r,"array")?f.rotate.apply(f,r):f.rotate(r));"visibility"in B&&("hidden"===B.visibility?f.hide():f.show());h&&(r=+d.cx,h=+d.cy,g=+d.rx||+d.r||0,va=+d.ry||+d.r||0,F.path=c.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",s(21600*(r-g)),s(21600*(h-va)),s(21600*(r+g)),s(21600*(h+va)),s(21600*r)));"clip-rect"in B&&(r=a(B["clip-rect"]).split(e),4==r.length&&(r[0]=+r[0],r[1]=+r[1],r[2]=+r[2]+r[0],r[3]=+r[3]+
r[1],g=O?F:F.clipRect||c._g.doc.createElement("div"),h=g.style,O?(f.clip=r.slice(),g=f.matrix.offset(),g=[b(g[0]),b(g[1])],r[0]-=g[0],r[1]-=g[1],r[2]-=g[0],r[3]-=g[1],h.width="10800px",h.height="10800px"):F.clipRect||(h.top="0",h.left="0",h.width=f.paper.width+"px",h.height=f.paper.height+"px",F.parentNode.insertBefore(g,F),g.appendChild(F),g.raphael=!0,g.raphaelid=F.raphaelid,F.clipRect=g),h.position="absolute",h.clip=c.format("rect({1}px {2}px {3}px {0}px)",r)),B["clip-rect"]||(O&&f.clip?(F.style.clip=
"rect(auto auto auto auto)",delete f.clip):F.clipRect&&(F.clipRect.style.clip="rect(auto auto auto auto)")));f.textpath&&(O=f.textpath.style,B.font&&(O.font=B.font),B["font-family"]&&(O.fontFamily='"'+B["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),B["font-size"]&&(O.fontSize=B["font-size"]),B["font-weight"]&&(O.fontWeight=B["font-weight"]),B["font-style"]&&(O.fontStyle=B["font-style"]));"arrow-start"in B&&E(f,B["arrow-start"]);"arrow-end"in B&&E(f,B["arrow-end"],1);if(null!=B.opacity||
null!=B["stroke-width"]||null!=B.fill||null!=B.src||null!=B.stroke||null!=B["stroke-width"]||null!=B["stroke-opacity"]||null!=B["fill-opacity"]||null!=B["stroke-dasharray"]||null!=B["stroke-miterlimit"]||null!=B["stroke-linejoin"]||null!=B["stroke-linecap"]){O=F.getElementsByTagName("fill");r=-1;O=O&&O[0];!O&&(O=I("fill"));"image"==f.type&&B.src&&(O.src=B.src);B.fill&&(O.on=!0);if(null==O.on||"none"==B.fill||null===B.fill)O.on=!1;O.on&&B.fill&&((h=a(B.fill).match(c._ISURL))?(O.parentNode==F&&F.removeChild(O),
O.rotate=!0,O.src=h[1],O.type="tile",g=f.getBBox(1),O.position=g.x+" "+g.y,f._.fillpos=[g.x,g.y],c._preload(h[1],function(){f._.fillsize=[this.offsetWidth,this.offsetHeight]})):(h=c.getRGB(B.fill),O.color=h.hex,O.src="",O.type="solid",h.error&&(f.type in{circle:1,ellipse:1}||"r"!=a(B.fill).charAt())&&n(f,B.fill,O)?(d.fill="none",d.gradient=B.fill,O.rotate=!1):"opacity"in h&&!("fill-opacity"in B)&&(r=h.opacity)));if(-1!==r||"fill-opacity"in B||"opacity"in B)h=((+d["fill-opacity"]+1||2)-1)*((+d.opacity+
1||2)-1)*((+r+1||2)-1),h=k(u(h,0),1),O.opacity=h,O.src&&(O.color="none");F.appendChild(O);O=F.getElementsByTagName("stroke")&&F.getElementsByTagName("stroke")[0];r=!1;!O&&(r=O=I("stroke"));if(B.stroke&&"none"!=B.stroke||B["stroke-width"]||null!=B["stroke-opacity"]||B["stroke-dasharray"]||B["stroke-miterlimit"]||B["stroke-linejoin"]||B["stroke-linecap"])O.on=!0;"none"!=B.stroke&&null!==B.stroke&&null!=O.on&&0!=B.stroke&&0!=B["stroke-width"]||(O.on=!1);h=c.getRGB("stroke"in B?B.stroke:d.stroke);O.on&&
B.stroke&&(O.color=h.hex);h=((+d["stroke-opacity"]+1||2)-1)*((+d.opacity+1||2)-1)*((+h.opacity+1||2)-1);g=.75*(b(B["stroke-width"])||1);h=k(u(h,0),1);null==B["stroke-width"]&&(g=d["stroke-width"]);B["stroke-width"]&&(O.weight=g);g&&1>g&&(h*=g)&&(O.weight=1);O.opacity=h;B["stroke-linejoin"]&&(O.joinstyle=B["stroke-linejoin"])||r&&(r.joinstyle="miter");O.miterlimit=B["stroke-miterlimit"]||8;B["stroke-linecap"]&&(O.endcap="butt"==B["stroke-linecap"]?"flat":"square"==B["stroke-linecap"]?"square":"round");
B["stroke-dasharray"]&&(h={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},O.dashstyle=h.hasOwnProperty(B["stroke-dasharray"])?h[B["stroke-dasharray"]]:B["stroke-dasharray"].join&&B["stroke-dasharray"].join(" ")||"");r&&F.appendChild(O)}if("text"==f.type){f.paper.canvas.style.display="";F=f.paper.span;O=d.font&&d.font.match(/\d+(?:\.\d*)?(?=px)/);h=d["line-height"]&&(d["line-height"]+
"").match(/\d+(?:\.\d*)?(?=px)/);r=F.style;d.font&&(r.font=d.font);d["font-family"]&&(r.fontFamily=d["font-family"]);d["font-weight"]&&(r.fontWeight=d["font-weight"]);d["font-style"]&&(r.fontStyle=d["font-style"]);O=b(d["font-size"]||O&&O[0])||10;r.fontSize=100*O+"px";h=b(d["line-height"]||h&&h[0])||12;d["line-height"]&&(r.lineHeight=100*h+"px");c.is(B.text,"array")&&(B.text=f.textpath.string=B.text.join("\n").replace(/<br\s*?\/?>/ig,"\n"));f.textpath.string&&(F.innerHTML=a(f.textpath.string).replace(/</g,
"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));F=F.getBoundingClientRect();f.W=d.w=(F.right-F.left)/100;f.H=d.h=(F.bottom-F.top)/100;f.X=d.x;f.Y=d.y;switch(d["vertical-align"]){case "top":f.bby=f.H/2;break;case "bottom":f.bby=-f.H/2;break;default:f.bby=0}("x"in B||"y"in B||void 0!==f.bby)&&(f.path.v=c.format("m{0},{1}l{2},{1}",s(21600*d.x),s(21600*(d.y+(f.bby||0))),s(21600*d.x)+1));F="x y text font font-family font-weight font-style font-size line-height".split(" ");O=0;for(r=F.length;O<r;O++)if(F[O]in
B){f._.dirty=1;break}switch(d["text-anchor"]){case "start":f.textpath.style["v-text-align"]="left";f.bbx=f.W/2;break;case "end":f.textpath.style["v-text-align"]="right";f.bbx=-f.W/2;break;default:f.textpath.style["v-text-align"]="center",f.bbx=0}f.textpath.style["v-text-kern"]=!0}}},n=function(f,s,u){f.attrs=f.attrs||{};var k=Math.pow,F="linear",e=".5 .5";f.attrs.gradient=s;s=a(s).replace(c._radial_gradient,function(a,c){F="radial";c=c&&c.split(",")||[];var f=c[3],s=c[4];f&&s&&(f=b(f),s=b(s),.25<
k(f-.5,2)+k(s-.5,2)&&(s=B(.25-k(f-.5,2))*(2*(.5<s)-1)+.5),e=f+" "+s);return""});s=s.split(/\s*\-\s*/);if("linear"==F){var d=s.shift(),d=-b(d);if(isNaN(d))return null}s=c._parseDots(s);if(!s)return null;f=f.shape||f.node;if(s.length){u.parentNode==f&&f.removeChild(u);u.on=!0;u.method="none";u.color=s[0].color;u.color2=s[s.length-1].color;for(var r=[],g=1,h=void 0===s[0].opacity?1:s[0].opacity,O=0,C=s.length;O<C;O++)s[O].offset&&r.push(s[O].offset+" "+s[O].color),void 0!==s[O].opacity&&(g=s[O].opacity);
u.colors=r.length?r.join():"0% "+u.color;u.opacity=g;u["o:opacity2"]=h;"radial"==F?(u.type="gradientTitle",u.focus="100%",u.focussize="0 0",u.focusposition=e,u.angle=0):(u.type="gradient",u.angle=(270-d)%360);f.appendChild(u)}return 1},t=function(a,b,f){f=f||b;var s;f.canvas&&f.canvas.appendChild(a);s=I("skew");s.on=!0;a.appendChild(s);this.skew=s;this.node=this[0]=a;a.raphael=!0;a.raphaelid=this.id=c._oid++;this.Y=this.X=0;this.attrs=this.attrs||{};this.followers=this.followers||[];this.paper=b;
this.ca=this.customAttributes=this.customAttributes||new b._CustomAttributes;this.matrix=c.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};this.parent=f;!f.bottom&&(f.bottom=this);(this.prev=f.top)&&(f.top.next=this);f.top=this;this.next=null},f=c.el;t.prototype=f;f.constructor=t;f.transform=function(b){if(null==b)return this._.transform;var f=this.paper._viewBoxShift,s=f?"s"+[f.scale,f.scale]+"-1-1t"+[f.dx,f.dy]:"",u;f&&(u=b=a(b).replace(/\.{3}|\u2026/g,this._.transform||
""));c._extractTransform(this,s+b);var f=this.matrix.clone(),k=this.skew;b=this.node;var s=~a(this.attrs.fill).indexOf("-"),B=!a(this.attrs.fill).indexOf("url(");f.translate(-.5,-.5);B||s||"image"==this.type?(k.matrix="1 0 0 1",k.offset="0 0",k=f.split(),s&&k.noRotation||!k.isSimple?(b.style.filter=f.toFilter(),f=this.getBBox(),s=this.getBBox(1),B=f.x2&&s.x2&&"x2"||"x",k=f.y2&&s.y2&&"y2"||"y",B=f[B]-s[B],f=f[k]-s[k],b.coordorigin=-21600*B+" "+-21600*f,ba(this,1,1,B,f,0)):(b.style.filter="",ba(this,
k.scalex,k.scaley,k.dx,k.dy,k.rotate))):(b.style.filter="",k.matrix=a(f),k.offset=f.offset());u&&(this._.transform=u);return this};f.rotate=function(c,f,s){if(this.removed)return this;if(null!=c){c=a(c).split(e);c.length-1&&(f=b(c[1]),s=b(c[2]));c=b(c[0]);null==s&&(f=s);if(null==f||null==s)s=this.getBBox(1),f=s.x+s.width/2,s=s.y+s.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",c,f,s]]));return this}};f.translate=function(c,f){if(this.removed)return this;c=a(c).split(e);c.length-
1&&(f=b(c[1]));c=b(c[0])||0;f=+f||0;this._.bbox&&(this._.bbox.x+=c,this._.bbox.y+=f);this.transform(this._.transform.concat([["t",c,f]]));return this};f.scale=function(c,f,s,u){if(this.removed)return this;c=a(c).split(e);c.length-1&&(f=b(c[1]),s=b(c[2]),u=b(c[3]),isNaN(s)&&(s=null),isNaN(u)&&(u=null));c=b(c[0]);null==f&&(f=c);null==u&&(s=u);if(null==s||null==u)var k=this.getBBox(1);s=null==s?k.x+k.width/2:s;u=null==u?k.y+k.height/2:u;this.transform(this._.transform.concat([["s",c,f,s,u]]));this._.dirtyT=
1;return this};f.hide=function(a){!this.removed&&(this.node.style.display="none");return this};f.show=function(a){!this.removed&&(this.node.style.display="");return this};f._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y+(this.bby||0)-this.H/2,width:this.W,height:this.H}};f.remove=function(){if(!this.removed&&this.parent.canvas){var a=c._engine.getNode(this),b=this.paper,f=this.shape;b.__set__&&b.__set__.exclude(this);d.unbind("raphael.*.*."+this.id);f&&f.parentNode.removeChild(f);
for(a.parentNode&&a.parentNode.removeChild(a);a=this.followers.pop();)a.el.remove();for(;a=this.bottom;)a.remove();this._drag&&this.undrag();if(this.events)for(;a=this.events.pop();)a.unbind();this.removeData();delete b._elementsById[this.id];c._tear(this,this.parent);for(a in this)this[a]="function"===typeof this[a]?c._removedFactory(a):null;this.removed=!0}};f.attr=function(a,b){if(this.removed)return this;if(null==a){var f={},s;for(s in this.attrs)this.attrs.hasOwnProperty(s)&&(f[s]=this.attrs[s]);
f.gradient&&"none"==f.fill&&(f.fill=f.gradient)&&delete f.gradient;f.transform=this._.transform;f.visibility="none"===this.node.style.display?"hidden":"visible";return f}if(null==b&&c.is(a,"string")){if("fill"==a&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("visibility"==a)return"none"===this.node.style.display?"hidden":"visible";var f=a.split(e),u={},k=0;for(s=f.length;k<s;k++)a=f[k],a in this.attrs?u[a]=this.attrs[a]:c.is(this.ca[a],"function")?u[a]=this.ca[a].def:
u[a]=c._availableAttrs[a];return s-1?u:u[f[0]]}if(this.attrs&&null==b&&c.is(a,"array")){u={};k=0;for(s=a.length;k<s;k++)u[a[k]]=this.attr(a[k]);return u}null!=b&&(f={},f[a]=b);null==b&&c.is(a,"object")&&(f=a);for(k in f)d("raphael.attr."+k+"."+this.id,this,f[k],k);if(f){var B={};for(k in this.ca)if(this.ca[k]&&f.hasOwnProperty(k)&&c.is(this.ca[k],"function")&&!this.ca["_invoked"+k]){this.ca["_invoked"+k]=!0;s=this.ca[k].apply(this,[].concat(f[k]));delete this.ca["_invoked"+k];for(u in s)s.hasOwnProperty(u)&&
(f[u]=s[u]);this.attrs[k]=f[k];!1===s&&(B[k]=f[k],delete f[k])}"text"in f&&"text"==this.type&&(c.is(f.text,"array")&&(f.text=f.text.join("\n")),this.textpath.string=f.text.replace(/<br\s*?\/?>/ig,"\n"));q(this,f);var F,k=0;for(s=this.followers.length;k<s;k++)F=this.followers[k],F.cb&&!F.cb.call(F.el,f,this)||F.el.attr(f);for(u in B)f[u]=B[u]}return this};f.blur=function(a){var b=this.node.runtimeStyle,f=b.filter,f=f.replace(h,"");0!==+a?(this.attrs.blur=a,b.filter=f+"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+
(+a||1.5)+")",b.margin=c.format("-{0}px 0 0 -{0}px",s(+a||1.5))):(b.filter=f,b.margin=0,delete this.attrs.blur);return this};f.on=function(a,b){if(this.removed)return this;this.node["on"+a]=function(){var a=c._g.win.event;a.target=a.srcElement;b(a)};return this};c._engine.getNode=function(a){a=a.node||a[0].node;return a.clipRect||a};c._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.clipRect||a};c._engine.group=function(a,b,f){var s=c._g.doc.createElement("div"),u=new t(s,a,f);
s.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";u._id=b||"";b&&(s.className="raphael-group-"+u.id+"-"+b);(f||a).canvas.appendChild(s);u.type="group";u.canvas=u.node;u.transform=c._engine.group.transform;u.top=null;u.bottom=null;return u};c._engine.group.transform=function(f){if(null==f)return this._.transform;var s=this.node.style,u=this.clip,k=this.paper._viewBoxShift,B=k?"s"+[k.scale,k.scale]+"-1-1t"+[k.dx,k.dy]:"";k&&(f=a(f).replace(/\.{3}|\u2026/g,this._.transform||""));
c._extractTransform(this,B+f);f=this.matrix;B=f.offset();k=b(B[0])||0;B=b(B[1])||0;s.left=k+"px";s.top=B+"px";s.zoom=(this._.tzoom=f.get(0))+"";u&&(s.clip=c.format("rect({1}px {2}px {3}px {0}px)",[u[0]-k,u[1]-B,u[2]-k,u[3]-B]));return this};c._engine.path=function(a,c,b){var f=I("shape");f.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";f.coordsize="21600 21600";f.coordorigin=a.coordorigin;a=new t(f,a,b);a.type=c.type||"path";a.path=[];a.Path="";c.type&&delete c.type;q(a,c);J(a,
c);return a};c._engine.rect=function(a,b,f){var s=c._rectPath(b.x,b.y,b.w,b.h,b.r);b.path=s;b.type="rect";a=a.path(b,f);b=a.attrs;a.X=b.x;a.Y=b.y;a.W=b.width;a.H=b.height;b.path=s;return a};c._engine.ellipse=function(a,c,b){c.type="ellipse";a=a.path(c,b);c=a.attrs;a.X=c.x-c.rx;a.Y=c.y-c.ry;a.W=2*c.rx;a.H=2*c.ry;return a};c._engine.circle=function(a,c,b){c.type="circle";a=a.path(c,b);c=a.attrs;a.X=c.x-c.r;a.Y=c.y-c.r;a.W=a.H=2*c.r;return a};c._engine.image=function(a,b,f){var s=c._rectPath(b.x,b.y,
b.w,b.h);b.path=s;b.type="image";b.stroke="none";a=a.path(b,f);f=a.attrs;var s=a.node,u=s.getElementsByTagName("fill")[0];f.src=b.src;a.X=f.x=b.x;a.Y=f.y=b.y;a.W=f.width=b.w;a.H=f.height=b.h;u.parentNode==s&&s.removeChild(u);u.rotate=!0;u.src=f.src;u.type="tile";a._.fillpos=[f.x,f.y];a._.fillsize=[f.w,f.h];s.appendChild(u);ba(a,1,1,0,0,0);return a};c._engine.text=function(b,f,u){var k=I("shape"),B=I("path"),F=I("textpath");x=f.x||0;y=f.y||0;text=f.text;B.v=c.format("m{0},{1}l{2},{1}",s(21600*f.x),
s(21600*f.y),s(21600*f.x)+1);B.textpathok=!0;F.string=a(f.text).replace(/<br\s*?\/?>/ig,"\n");F.on=!0;k.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";k.coordsize="21600 21600";k.coordorigin="0 0";b=new t(k,b,u);b.shape=k;b.path=B;b.textpath=F;b.type="text";b.attrs.text=a(f.text||"");b.attrs.x=f.x;b.attrs.y=f.y;b.attrs.w=1;b.attrs.h=1;q(b,f);J(b,f);k.appendChild(F);k.appendChild(B);return b};c._engine.setSize=function(a,b){var f=this.canvas.style;this.width=a;this.height=b;a==
+a&&(a+="px");b==+b&&(b+="px");f.width=a;f.height=b;f.clip="rect(0 "+a+" "+b+" 0)";this._viewBox&&c._engine.setViewBox.apply(this,this._viewBox);return this};c._engine.setViewBox=function(a,b,c,f,s){d("raphael.setViewBox",this,this._viewBox,[a,b,c,f,s]);var k=this.width,B=this.height,F=1/u(c/k,f/B),e,r;s&&(e=B/f,r=k/c,c*e<k&&(a-=(k-c*e)/2/e),f*r<B&&(b-=(B-f*r)/2/r));this._viewBox=[a,b,c,f,!!s];this._viewBoxShift={dx:-a,dy:-b,scale:F};this.forEach(function(a){a.transform("...")});return this};var I;
c._engine.initWin=function(b){var f=b.document;f.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!f.namespaces.rvml&&f.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),I=c._createNode=function(b,c){var s=f.createElement("<rvml:"+b+' class="rvml">'),u;for(u in c)s[u]=a(c[u]);return s}}catch(s){I=c._createNode=function(b,c){var s=f.createElement("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'),u;for(u in c)s[u]=a(c[u]);return s}}};c._engine.initWin(c._g.win);
c._engine.create=function(){var a=c._getContainer.apply(0,arguments),b=a.container,f=a.height,s=a.width,u=a.x,a=a.y;if(!b)throw Error("VML container not found.");var k=new c._Paper,B=k.canvas=c._g.doc.createElement("div"),F=B.style,u=u||0,a=a||0,s=s||512,f=f||342;k.width=s;k.height=f;s==+s&&(s+="px");f==+f&&(f+="px");k.coordsize="21600000 21600000";k.coordorigin="0 0";B.id="raphael-paper-"+k.id;k.span=c._g.doc.createElement("span");k.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";
B.appendChild(k.span);F.cssText=c.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",s,f);1==b?(c._g.doc.body.appendChild(B),F.left=u+"px",F.top=a+"px",F.position="absolute"):b.firstChild?b.insertBefore(B,b.firstChild):b.appendChild(B);k.renderfix=function(){};return k};c.prototype.clear=function(){var a;for(d("raphael.clear",this);a=this.bottom;)a.remove();this.canvas.innerHTML="";this.span=c._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};c.prototype.remove=function(){var a;for(d("raphael.remove",this);a=this.bottom;)a.remove();this.canvas.parentNode.removeChild(this.canvas);for(a in this)this[a]="function"==typeof this[a]?c._removedFactory(a):null;return!0};var M=c.st,Aa;for(Aa in f)f.hasOwnProperty(Aa)&&!M.hasOwnProperty(Aa)&&(M[Aa]=function(a){return function(){var b=
arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(Aa))}})();da?q.win.Raphael=c:Raphael=c;return c},!0)})();d.Raphael=D;d.Raphael.desc="";m&&m!==D?window.Raphael=m:window.Raphael===D&&(window.Raphael=void 0)}]);
FusionCharts.register("module",["private","fusioncharts.redraphael.helper",function(){var d={};this.hcLib.Raphael.fn._elementFromEvent=function(m){if(!m||this.removed)return null;var D=m.srcElement||m.target||(m=m.originalEvent)&&(m.srcElement||m.target)||d;"tspan"===D.nodeName&&(D=D.parentNode);return this.getById(D.raphaelid)}}]);
FusionCharts.register("module",["private","fusioncharts.redraphael.css",function(){var d=this.hcLib.Raphael,m=d.eve,D=d._g,v=d.fn,n=d.el,c=/[, ]+/,K=/\B([A-Z]{1})/g,b,H;b=function(a){this.rules={};this.ns=a||""};H=b.prototype;H.getSheet=function(){var a=this.node;a||(a=this.node=D.doc.createElement("style"),this.node.setAttribute("id",d.format("raphael-stylesheet-{0}",d._oid++)),this.node.setAttribute("type","text/css"),(D.doc.head||D.doc.getElementsByTagName("head")[0]).appendChild(this.node));return a};
H.setCssText=function(a){var b=this.node;if(!b)if(a)b=this.getSheet();else return;b.styleSheet?b.styleSheet.cssText=a||"":(b.innerHTML="",a&&b.appendChild(D.doc.createTextNode(a)))};H.destroy=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node);delete this.rules};H.clear=function(){this.setCssText("");this.rules={}};H.add=function(a,b){var c=this.rules[a]||(this.rules[a]={}),d;for(d in b)c[d]=b[d]};H.render=function(){this.setCssText(this.toString())};H.toString=
function(a){var b=a?"":"\n",c=a?"":"\t";a=a?":":": ";var d=b,n,g;for(n in this.rules){d+=n.replace(/(^|\,)/g,"$1"+this.ns+" ")+" {"+b;n=this.rules[n];for(g in n)n[g]&&(d+=c+g.replace(K,"-$1").toLowerCase()+a+n[g]+";"+b);d+="}"+b}return d};m.on("raphael.new",function(){this._stylesheet=this._stylesheet||new b;this.cssNamespace("")});m.on("raphael.remove",function(){this._stylesheet&&this._stylesheet.destroy();delete this._stylesheet});v.cssNamespace=function(a){arguments.length&&(this._stylesheet.ns=
d.format("{0}#raphael-paper-{1}",a&&a+" "||"",this.id));return this._stylesheet.ns};v.cssAddRule=function(a,b){if(1===arguments.length&&"object"===typeof a){for(var c in a)this.cssAddRule(c,a[c]);return this}return this._stylesheet.add(a,b),this};v.cssRender=function(){return d.svg&&this._stylesheet.render(),this};v.cssClear=function(){return this._stylesheet.clear(),this};d._availableAttrs["class"]="";d.svg&&m.on("raphael.attr.class",function(a){var b=this.node;a=a||"";b.setAttribute("class","group"===
this.type&&this._id?"raphael-group-"+this.id+"-"+this._id+" "+a:a)});d.vml&&m.on("raphael.attr.class",function(a){var b=this.paper,c="."+a,b=b._stylesheet&&b._stylesheet.rules,d=this.parent,n=this.attrs,g={},e;this.node.className="group"===this.type?a&&this._id+" "+a||this._id:"rvml "+a;if(c&&b){a=b[c];for(e in a)"color"===e&&"text"===this.type&&(e="fill"),!n[e]&&(g[e]=a[e]);for(;d&&d.attr;){if(a=d.attr("class"))for(e in c="."+a+" "+c,a=b[c],a)"color"===e&&"text"===this.type&&(e="fill"),n[e]||g[e]||
(g[e]=a[e]);d=d.parent}this.css(g)}});n.css=function(a,b){var n,v,A,g;if(this.removed)return this;this.styles||(this.styles={});if(null==b&&d.is(a,"string")){n=a.split(c);v={};g=0;for(A=n.length;g<A;g++)a=n[g],a in this.styles&&(v[a]=this.styles[a]);return A-1?v:v[n[0]]}if(null==b&&d.is(a,"array")){v={};g=0;for(A=a.length;g<A;g++)v[a[g]]=this.styles(a[g]);return v}null!=b?(n={},n[a]=b):null!=a&&d.is(a,"object")&&(n=a);v={};for(g in n)A=g.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),d._availableAttrs.hasOwnProperty(A)||
"color"===A?("color"===A&&"text"===this.type&&(A="fill"),v[A]=n[g],v.dirty=!0):(m("raphael.css."+A+"."+this.id,this,n[g],A),this.node.style[A]=n[g],this.styles[A]=n[g]);g=0;for(A=this.followers.length;g<A;g++)this.followers[g].el.attr(n);v.hasOwnProperty("dirty")&&(delete v.dirty,this.attr(v));return this}}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelexport",function(){var d=this.hcLib,m=d.Raphael,D=d.pluckNumber,v=d.pluck,n=m._availableAttrs,c=/^matrix\(|\)$/g,K=/\,/g,b=/\n|<br\s*?\/?>/ig,H=/[^\d\.]/ig,a=/[\%\(\)\s,\xb0#]/g,z=/group/ig,G=/&/g,L=/"/g,A=/'/g,g=/</g,e=/>/g,h=0;(function(d){var m=Math,w=parseFloat,p=m.max,R=m.abs,t=m.pow,fa=String,q=/[, ]+/,da=[{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(a){return a.toLowerCase()}}],V={blur:function(){},transform:function(){},src:function(a,
b){b.attrSTR+=' xlink:href="'+b.attrs.src+'"'},path:function(a,b){var c=b.attrs.path,c=d._pathToAbsolute(c||"");b.attrSTR+=' d="'+(c.toString&&c.toString()||"").replace(K," ")+'"'},gradient:function(b,c,e){var g=b.attrs.gradient,h="linear",n,q,P,A=.5,z=.5,r=q="",J="",I,U,v,H;n=g.replace(a,"_");if(!e[n]){g=fa(g).replace(d._radial_gradient,function(a,b){var c,e,d,r,g,l,p;b=b&&b.split(",")||[];h="radial";c=b[0];e=b[1];d=b[2];r=b[3];g=b[4];H=b[5];p=c&&e;d&&(v=/\%/.test(d)?d:w(d));if("userSpaceOnUse"===
H)return p&&(A=c,z=e),r&&g&&(I=r,U=g,p||(A=I,z=U)),"";p&&(A=w(c),z=w(e),c=2*(.5<z)-1,.25<(l=t(A-.5,2))+t(z-.5,2)&&.25>l&&(z=m.sqrt(.25-l)*c+.5)&&.5!==z&&(z=z.toFixed(5)-1E-5*c));r&&g&&(I=w(r),U=w(g),c=2*(.5<U)-1,.25<(l=t(I-.5,2))+t(U-.5,2)&&.25>l&&(U=m.sqrt(.25-l)*c+.5)&&.5!==U&&(U=U.toFixed(5)-1E-5*c),p||(A=I,z=U));return""});g=g.split(/\s*\-\s*/);if("linear"===h){q=g.shift();q=-w(q);if(isNaN(q))return null;P=[0,0,m.cos(d.rad(q)),m.sin(d.rad(q))];q=1/(p(R(P[2]),R(P[3]))||1);P[2]*=q;P[3]*=q;0>P[2]&&
(P[0]=-P[2],P[2]=0);0>P[3]&&(P[1]=-P[3],P[3]=0)}g=d._parseDots(g);if(!g)return null;"radial"===h?(q='<radialGradient fx = "'+A+'" fy = "'+z+'" cy = "'+U+'" cx = "'+I+'" r = "'+v+'" gradientUnits = "'+H+'" id = "'+n+'">',r="</radialGradient>"):(q='<linearGradient x1 = "'+P[0]+'" y1 = "'+P[1]+'" x2 = "'+P[2]+'" y2 = "'+P[3]+'" gradientTransform ="matrix('+b.matrix.invert()+')" id = "'+n+'">',r="</linearGradient>");b=0;for(P=g.length;b<P;b++)J+='<stop offset="'+(g[b].offset?g[b].offset:b?"100%":"0%")+
'" stop-color="'+(g[b].color||"#fff")+'" stop-opacity="'+(void 0===g[b].opacity?1:g[b].opacity)+'" />';e[n]=!0;e.str+=q+J+r}c.attrSTR+=" fill=\"url('#"+n+"')\""},fill:function(a,b){var c=b.attrs,e=c.fill,g;a.attrs.gradient||(e=d.color(e),g=e.opacity,"text"===a.type?b.styleSTR+="fill:"+e+"; stroke-opacity:0; ":(b.attrSTR+=' fill="'+e+'"',c["fill-opacity"]||!g&&0!==g||(b.attrSTR+=' fill-opacity="'+g+'"')))},stroke:function(a,b){var c=b.attrs,e,g;e=d.color(c.stroke);g=e.opacity;"text"!==a.type&&(b.attrSTR+=
' stroke="'+e+'"',c["stroke-opacity"]||!g&&0!==g||(b.attrSTR+=' stroke-opacity="'+g+'"'))},"clip-rect":function(b,e,d){var g=fa(e.attrs["clip-rect"]),l=g.split(q),g=g.replace(a,"_")+"__"+h++;4===l.length&&(d[g]||(d[g]=!0,d.str+='<clipPath id="'+g+'"><rect x="'+l[0]+'" y="'+l[1]+'" width="'+l[2]+'" height="'+l[3]+'" transform="matrix('+b.matrix.invert().toMatrixString().replace(c,"")+')"/></clipPath>'),e.attrSTR+=' clip-path="url(#'+g+')"')},cursor:function(a,b){var c=b.attrs.cursor;c&&(b.styleSTR+=
"cursor:"+c+"; ")},font:function(a,b){b.styleSTR+="font:"+b.attrs.font.replace(/\"/ig," ")+"; "},"font-size":function(a,b){var c=v(b.attrs["font-size"],"10");c&&c.replace&&(c=c.replace(H,""));b.styleSTR+="font-size:"+c+"px; "},"font-weight":function(a,b){b.styleSTR+="font-weight:"+b.attrs["font-weight"]+"; "},"font-family":function(a,b){b.styleSTR+="font-family:"+b.attrs["font-family"]+"; "},"line-height":function(){},"clip-path":function(){},visibility:function(){},"vertical-align":function(){},
"text-anchor":function(a,b){var c=b.attrs["text-anchor"]||"middle";"text"===a.type&&(b.attrSTR+=' text-anchor="'+c+'"')},title:function(){},text:function(a,c){var d=c.attrs,h=d.text,l=v(d["font-size"],d.font,"10"),p=v(d["line-height"]),n,q,t;l&&l.replace&&(l=l.replace(H,""));l=D(l);p&&p.replace&&(p=p.replace(H,""));p=D(p,l&&1.2*l);n=l?.85*l:.75*p;l=d.x;q=v(d["vertical-align"],"middle").toLowerCase();h=fa(h).split(b);t=h.length;d=0;for(n="top"===q?n:"bottom"===q?n-p*t:n-p*t*.5;d<t;d++)c.textSTR+="<tspan ",
q=(h[d]||"").replace(G,"&amp;").replace(L,"&quot;").replace(A,"&#39;").replace(g,"&lt;").replace(e,"&gt;"),c.textSTR=d?c.textSTR+('dy="'+p+'" x="'+l+'" '):c.textSTR+('dy="'+n+'"'),c.textSTR+=">"+q+"</tspan>"}},ia=function(a,b){var e="",d={attrSTR:"",styleSTR:"",textSTR:"",attrs:a.attr()},g=a.isShadow,h="",l="",p,q,t=d.attrs;if("none"===a.node.style.display||g)a.next&&(e+=ia(a.next,b));else{for(p in t)if("gradient"!==p&&(void 0!==n[p]||V[p])&&void 0!==t[p])if(V[p])V[p](a,d,b);else d.attrSTR+=" "+p+
'="'+t[p]+'"';a.attrs.gradient&&V.gradient(a,d,b);"rect"===a.type&&t.r&&(d.attrSTR+=' rx="'+t.r+'" ry="'+t.r+'"');for(q in a.styles)d.styleSTR+=q+":"+a.styles[q]+"; ";"image"===a.type&&(d.attrSTR+=' preserveAspectRatio="none"');if("text"===a.type&&!t["text-anchor"])V["text-anchor"](a,d);a.bottom&&(h=ia(a.bottom,b));a.next&&(l=ia(a.next,b));g=a.type;g.match(z)&&(g="g");e+="<"+g+' transform="matrix('+a.matrix.toMatrixString().replace(c,"")+')" style="'+d.styleSTR+'"'+d.attrSTR+">"+d.textSTR+h+"</"+
g+">"+l}return e};d.fn.toSVG=function(a){var b="",c={str:""},e=0,g=da.length,h="";if(d.svg){if(this.canvas&&this.canvas.parentNode){for(b=this.canvas.parentNode.innerHTML;e<g;e+=1)c=da[e],b=b.replace(c.reg,c.repStr);this._stylesheet&&(b=b.replace(/^(<svg\s[\s\S]*?>)/ig,'$1<style type="text/css">'+this._stylesheet.toString(!0)+"</style>"))}}else b='<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=ia(this.bottom,c)),b+="<defs>"+c.str+"</defs>"+h+"</svg>";a||(b=b.replace(/<image [^\>]*\>/gi,""));return b}})(m)}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelshadow",function(){var d=this.window,m=d.Math.sqrt,D=d.parseFloat,v=d.parseInt,d=d.SVGFilterElement||d.SVGFEColorMatrixElement&&2===d.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE,n=this.hcLib.Raphael,c={"drop-shadow":"drop-shadow",stroke:"stroke",fill:"fill","stroke-width":"stroke-width","stroke-opacity":"stroke-opacity","stroke-linecap":"stroke-linecap","stroke-linejoin":"stroke-linejoin","shape-rendering":"shape-rendering",
transform:"transform"},K=n._createNode,b;n.svg?(d&&(n.el.dropshadow=function(b,a,c,d){var v=this.node,A=this._.shadowFilter,g=this.paper.cacheShadows||(this.paper.cacheShadows={}),e="drop-shadow"+[b,a,c,d].join(" "),h;if("none"===b){if(A){A.use-=1;this.node.removeAttribute("filter");if(!A.use){e=A.hash;for(h in A)b=A[h],b.parentNode&&b.parentNode.removeChild(b),delete A[h];delete g[e]}delete this._.shadowFilter}}else A&&g[e]===A||(A=this.paper.defs.appendChild(K("filter",{id:n.createUUID(),width:"200%",
height:"200%"})),d=n.color(d),d.error&&(d=n.color("rgba(0,0,0,1)")),h=n.pick(d.opacity,1),this._.shadowFilter=g[e]={use:1,filter:A,hash:e,offset:A.appendChild(K("feOffset",{result:"offOut","in":"SourceGraphic",dx:D(b),dy:D(a)})),matrix:A.appendChild(K("feColorMatrix",{result:"matrixOut","in":"offOut",type:"matrix",values:"0 0 0 0 "+d.r/255+" 0 0 0 0 "+d.g/255+" 0 0 0 0 "+d.b/255+" 0 0 0 "+h+" 0"})),blur:A.appendChild(K("feGaussianBlur",{result:"blurOut","in":"matrixOut",stdDeviation:m(D(c))})),blend:A.appendChild(K("feComposite",
{"in":"SourceGraphic",in2:"blurOut",operator:"over"}))},v.setAttribute("filter",'url("'+n._url+"#"+A.id+'")'));return this}),b=function(b,a){var d=this.__shadowscale,n={},m,A;for(A in b)switch(c[A]&&(n[A]=b[A],delete b[A]),A){case "transform":m=a.matrix.clone();m.translate(this.__shadowx,this.__shadowy);this.transform(m.toTransformString());break;case "stroke-width":b[A]=((n[A]||1)+6-2*this.__shadowlevel)*d}this.attr(b);for(A in n)b[A]=n[A]},n.ca["drop-shadow"]=function(c,a,d,m,D,A){d=this._.shadows||
(this._.shadows=[]);var g,e,h,l,N;if(!this.__shadowblocked)if("none"===c)for(;e=d.pop();)e.remove();else for(m=n.color(m),m.error&&(m=n.color("rgba(0,0,0,1)")),D instanceof Array?(g=D[0],D=D[1]):g=D,g=1/n.pick(g,1),D=1/n.pick(D,1),c=n.pick(c,1)*g,a=n.pick(a,1)*g,g=.05*n.pick(m.opacity,1),h=v(this.attr("stroke-width")||1,10)+6,l=this.matrix.clone(),l.translate(c,a),N=1;3>=N;N++)e=(d[N-1]||this.clone().follow(this,b,!A&&"before")).attr({stroke:m.hex,"stroke-opacity":g*N,"stroke-width":(h-2*N)*D,transform:l.toTransformString(),
"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"}),e.__shadowlevel=N,e.__shadowscale=D,e.__shadowx=c,e.__shadowy=a,A&&A.appendChild(e),d.push(e);return!1},n.el.shadow=function(b,a,c,d){var m;c&&c.constructor===n.el.constructor&&(d=c,c=void 0);"object"===typeof b&&(a&&a.constructor===n.el.constructor&&(d=a),a=b.opacity,c=b.scalefactor,m=!!b.useFilter,b=void 0===b.apply?!!a:b.apply);void 0===a&&(a=1);if(this.dropshadow){if(m)return b&&this.dropshadow(1,1,3,"rgb(64,64,64)")||this.dropshadow("none"),
this;this._.shadowFilter&&this.dropshadow("none")}return this.attr("drop-shadow",b?[1,1,3,"rgba(64,64,64,"+a+")",c,d]:"none")}):n.vml?(n.ca["drop-shadow"]=function(b,a,c,d,m,A){var g=this._.shadow,e,h;if(this.isShadow)return!1;"none"===b?g&&(this._.shadow=g.remove()):(g||(g=this._.shadow=this.clone(),A&&A.appendChild(g.follow(this))||g.follow(this,void 0,"before"),g.attr({fill:"none","fill-opacity":.5,"stroke-opacity":1}).isShadow=!0,0>=g.attr("stroke-width")&&g.attr("stroke-width",1)),A=g.node.runtimeStyle,
e=A.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,""),d=n.color(d),d.error&&(d=n.color("rgba(0,0,0,1)")),h=n.pick(d.opacity,1)/5,m=1/n.pick(m,1),b=n.pick(b,1)*m,a=n.pick(a,1)*m,g.translate(b,a),A.filter=e+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+D(.4*c)+" makeShadow=True Color="+d.hex+' shadowOpacity="'+h+'");');return!1},n.el.shadow=function(b,a,c,d){c&&c.constructor===n.el.constructor&&(d=c,c=void 0);"object"===typeof b&&(a&&"group"===a.type&&(d=a),a=b.opacity,c=b.scalefactor,b=void 0===
b.apply?!!a:b.apply);void 0===a&&(a=1);return this.attr("drop-shadow",b||!a?[1,1,5,"rgba(64,64,64,"+a+")",c,d]:"none")}):n.canvas&&(n.el.shadow=function(){return this})}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelshapes",function(){var d=this.window,m="createTouch"in d.document,D=/msie/i.test(d.navigator.userAgent)&&!d.opera,v=d.Math,n=v.cos,c=v.sin,K=v.abs,b=v.pow,H=v.atan2,a=v.tan,z=v.acos,G=v.min,L=v.round,A=v.PI,g=v.sqrt,e=2*A,h=d.parseInt,l=d.parseFloat,N=String,w=Array.prototype.slice,p=b(2,-24),R="rgba(192,192,192,"+(D?.002:1E-6)+")",t=this.hcLib.Raphael,fa=t.eve,q=t._createNode,da=t._setFillAndStroke,V=t.el.constructor,ia={speed:"optimizeSpeed",
crisp:"crispEdges",precision:"geometricPrecision"},wa={enabled:!1,"false":!1,0:!1,disabled:!0,"true":!0,1:!0},ja={Q:"L",Z:"X",q:"l",z:"x",",":" "},aa=/,?([achlmqrstvxz]),?/gi,ka=/\s*\,\s*/g,Y,ca=function(){return this.join(",").replace(aa,Y)},X,P,Q=t._cacher(function(a,c,e,d){return g(b(e-a,2)+b(d-c,2))}),T=t._cacher(function(a,b,c,e,d){var g=c-a,h=e-b;c=Q(a,b,c,e);return{x:a+g/c*d,y:b+h/c*d}});if(t.svg)fa.on("raphael.attr.shape-rendering",function(a,b){var c=this.node;this.attrs[b]=a=ia[a]||a||"auto";
c.setAttribute(b,a);c.style.shapeRendering=a});else if(t.vml)fa.on("raphael.attr.shape-rendering",function(a){this.node.style.antialias="crisp"!==a});t.define&&t.define([{name:"polypath",polypath:function(){return this.path(void 0,t._lastArgIfGroup(arguments))},ca:{polypath:function(a,b,e,d,g,p){var q,m,P;q=[];a=h(a,10)||0;b=l(b)||0;e=l(e)||0;d=l(d)||0;g=null===g||isNaN(g)?.5*A:t.rad(g);p=null===p||isNaN(p)?0:l(p);m=g;if(2<a)switch(g=2*A/a,p){case 0:for(p=0;p<a;p++)q.push("L",b+d*n(-m),e+d*c(-m)),
m+=g;q[0]="M";q.push("Z");break;case 1:for(p=0;p<a;p++)q.push("M",b,e,"L",b+d*n(-m),e+d*c(-m)),m+=g;break;default:g*=.5;P=d*n(g)*(1-p);for(p=0;p<a;p++)q.push("L",b+d*n(-m),e+d*c(-m)),m+=g,q.push("L",b+P*n(-m),e+P*c(-m)),m+=g;q[0]="M";q.push("Z")}else 0===d?q.push("M",b,e,"L",b,e,"Z"):q.push("M",b-d,e,"A",d,d,0,0,0,b+d,e,"A",d,d,0,0,0,b-d,e,"Z");return{path:q}},r:function(a){var b=this.attrs.polypath;b[3]=a;this.attr("polypath",b);return!1}}},{name:"ringpath",ringpath:function(){return this.path(void 0,
t._lastArgIfGroup(arguments))},ca:function(a,b,d,g,h,l){var q=l%e-h%e,t=l-h,m,P,w,Q,z;this._.ringangle=.5*(h+l);K(t)<p?(t=n(h),h=c(h),d=["M",a+d*t,b+d*h,"L",a+g*t,b+g*h,"Z"]):(K(t)>p&&K(t)%e<p?(d=["M",a-d,b,"A",d,d,0,0,0,a+d,b,"A",d,d,0,0,0,a-d,b],0!==g&&(d=d.concat(["M",a-g,b,"A",g,g,0,0,1,a+g,b,"A",g,g,0,0,1,a-g,b]))):(t=n(h),h=c(h),m=n(l),l=c(l),q%=e,0>q&&(q+=e),q=q<A?0:1,P=a+d*t,Q=b+d*h,w=a+d*m,z=b+d*l,m=a+g*m,l=b+g*l,.01>K(P-w)&&.01>K(Q-z)&&(Q=z+.01),d=["M",P,Q,"A",d,d,0,q,1,w,z,"L",m,l],0!==
g&&(a+=g*t,b+=g*h,.01>K(m-a)&&.01>K(l-b)&&(b=l+.01),d.push("A",g,g,0,q,0,a,b))),d.push("Z"));return{path:d}}},{name:"cubepath",cubepath:function(){var a={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},b=arguments,c=b.length-1,d=b[c],e,g;d&&d.constructor===t.el.constructor?b[c]=void 0:d=void 0;c=this.path(a,d);e=this.path(a,d);a=this.path(a,d);a._.cubetop=c.follow(a,void 0,"before");a._.cubeside=e.follow(a,void 0,"before");for(g in t.fn.cubepath.ca)a.ca[g]=t.fn.cubepath.ca[g];
return a.attr("cubepath",[b[0],b[1],b[2],b[3],b[4],b[5]])},fn:{_getBBox2:function(){var a=this._.cubeside.getBBox(),b=this._.cubetop.getBBox(),c=this.getBBox();return{x:c.x+b.height,y:c.y-a.width,width:c.width,height:c.height}}},ca:{cubepath:function(a,b,c,d,e,g){var h=this._.cubetop,l=this._.cubeside;a=a||0;b=b||0;c=c||0;d=d||0;e=e||0;g=g||0;this.attr("path",["M",a+c,b,"l",0,d,-c,0,0,-d,"z"]);h.attr("path",["M",a,b,"l",1,1,c-1,0,0,-1,e,-g,-c,0,"z"]);l.attr("path",["M",a+c-1,b+1,"l",0,d-1,1,0,e,-g,
0,-d,-e,g]);return!1},"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},"drop-shadow":function(a,b,c,d){var e=this._.cubetop,g=this._.cubeside;this.dropshadow&&(e.dropshadow(a,-b,c,d),g.dropshadow(a,-b,c,d));return!1},fill:function(a,b){var c=this._.cubetop,d=this._.cubeside,e=this.attr("cubepath")||[0,0,0,0,0,0],g=e[2],h=e[4],e=e[5],l;a=t.color(a);b?(this.attr("fill",a),c.attr("fill",t.tintshade(a,-.78).rgba),d.attr("fill",t.tintshade(a,-.65).rgba)):(l="opacity"in a?"rgba("+[a.r,a.g,
a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")",this.attr("fill",[270,t.tintshade(l,.55).rgba,t.tintshade(l,-.65).rgba].join("-")),d.attr("fill",[270,t.tintshade(l,-.75).rgba,t.tintshade(l,-.35).rgba].join("-")),c.attr("fill",[45+t.deg(H(e,h+g)),t.tintshade(l,-.78).rgba,t.tintshade(l,.22).rgba].join("-")));return!1}}},{name:"scroller",scroller:function(a,b,c,d,e,g,h){var p=this.group("scroller",h),q=p.attrs,n=p._.scroller={};e=e&&"horizontal"||"vertical";var m,P={},A,w,Q;n.track=this.rect(p).mousedown(function(a){var b=
q["scroll-position"];a="horizontal"===q["scroll-orientation"]?a.layerX||a.x:a.layerY||a.y;a=(a-n.anchorOffset)/n.trackLength;m=t.animation({"scroll-position":a},2E3*K(b-a),"easeIn");p.animate(m);fa("raphael.scroll.start."+p.id,p,b)}).mouseup(n._mouseupTrack=function(){this.stop(m);fa("raphael.scroll.end."+this.id,this,q["scroll-position"])},p,!0);n.anchor=this.rect(p).drag(function(){P["scroll-position"]=A+arguments[w]/n.trackLength;p.animate(P,0)},function(a,b,c){w="horizontal"===q["scroll-orientation"]?
0:1;fa("raphael.scroll.start."+p.id,p,A=q["scroll-position"]);c.stopPropagation()},function(){fa("raphael.scroll.end."+p.id,p,A=q["scroll-position"])});for(Q in t.fn.scroller.fn)p[Q]=t.fn.scroller.fn[Q];for(Q in t.fn.scroller.ca)p.ca[Q]=t.fn.scroller.ca[Q];q["scroll-orientation"]=e;q["stroke-width"]=1;p.ca["scroll-repaint"]=p.ca["scroll-repaint-"+e];!t.is(g,"object")&&(g={});return p.attr({ishot:!0,"scroll-display-buttons":g.showButtons&&"arrow"||"none","scroll-display-style":g.displayStyleFlat&&
"flat"||"3d","scroll-ratio":l(g.scrollRatio)||1,"scroll-position":l(g.scrollPosition)||0,"scroll-repaint":[a,b,c,d]})},fn:{scroll:function(a,b){var c=this._.scroller;b=b||this;c.callback=function(){return a.apply(b,arguments)};return this},remove:function(){var a=this._.scroller,b;this.attr("scroll-display-buttons","none");a.track.unmouseup(a._mouseupTrack);for(b in a)a[b]&&a[b].remove&&a[b].remove(),a[b]=null;delete this._.scroller;t.el.remove.apply(this,arguments)}},ca:{"stroke-width":function(){return!1},
"drop-shadow":function(a,b,c,d,e,g){this._.scroller.track.attr("drop-shadow",[a,b,c,d,e,g]);return!1},"scroll-display-style":function(a){var b=this.attrs,c=b["scroll-display-style"],d=b.fill;a={flat:"flat","3d":"3d",transparent:"transparent"}[a]||c;d&&a!==c&&(b["scroll-display-style"]=a,this.attr("fill",d));return{"scroll-display-style":a}},"scroll-display-buttons":function(a){var b=this,c=b.paper,d=b._.scroller,e=b.attrs,g=e["scroll-display-buttons"],h=e["scroll-repaint"],l,p;void 0===g&&(g="none");
a={none:"none",arrow:"arrow"}[a]||g;a!==g&&(e["scroll-display-buttons"]=a,"none"===a&&d.start?(d.arrowstart.remove(),delete d.arrowstart,d.arrowend.remove(),delete d.arrowend,d.start.unmouseup(d._mouseupStart),d.start.remove(),delete d.start,d.end.unmouseup(d._mouseupEnd),d.end.remove(),delete d.end):(d.arrowstart=c.polypath(b),d.arrowend=c.polypath(b),d.start=c.rect(b).mousedown(function(){var a;0!==(a=e["scroll-position"])&&(b.animate({"scroll-position":a-.1},100).animate(l=t.animation({"scroll-position":0},
4500*a,"easeIn")),fa("raphael.scroll.start."+b.id,b,a))}).mouseup(d._mouseupStart=function(){b.stop(l);fa("raphael.scroll.end."+b.id,b,e["scroll-position"])},b,!0),d.end=c.rect(b).mousedown(function(){var a;1!==(a=e["scroll-position"])&&(b.animate({"scroll-position":a+.1},100).animate(p=t.animation({"scroll-position":1},4500*(1-a),"easeIn")),fa("raphael.scroll.start."+b.id,b,a))}).mouseup(d._mouseupEnd=function(){b.stop(p);fa("raphael.scroll.end."+b.id,b,e["scroll-position"])},b,!0),e.fill&&b.attr("fill",
e.fill)),h&&b.attr("scroll-repaint",h));return{"scroll-display-buttons":a}},"scroll-orientation":function(a){var b=this.attrs,c=b["scroll-repaint"],d=b["scroll-orientation"];a={horizontal:"horizontal",vertical:"vertical"}[a]||d;d!==a&&(this.ca["scroll-repaint"]=this.ca["scroll-repaint-"+a],c&&(c[2]+=c[3],c[3]=c[2]-c[3],c[2]-=c[3],this.attr("scroll-repaint",c)),b.fill&&this.attr("fill",b.fill));return{"scroll-orientation":a}},"scroll-ratio":function(a){var b=this.attrs,c=b["scroll-ratio"],d=b["scroll-repaint"];
a=1<a?1:.01>a?.01:l(a);d&&a!==c&&(b["scroll-ratio"]=a,this.attr("scroll-repaint",d));return{"scroll-ratio":a}},"scroll-position":function(a,b){var c=this.attrs,d="horizontal"===c["scroll-orientation"],e=c["scroll-repaint"],g=c["scroll-position"],h=this._.scroller,p=h.anchor;a=1<a?1:0>a?0:l(a);isNaN(a)&&(a=g);e&&(g!==a||b)&&(g=h.start&&h.start.attr(d&&"width"||"height")||0,d&&p.attr("x",e[0]+g+(e[2]-2*g-p.attr("width"))*a+.5)||p.attr("y",e[1]+g+(e[3]-2*g-p.attr("height"))*a+.5),!b&&1>c["scroll-ratio"]&&
(fa("raphael.scroll.change."+this.id,this,a),h.callback&&h.callback(a)));return{"scroll-position":a}},r:function(a){var b=this._.scroller;b.track.attr("r",a);b.anchor.attr("r","none"===this.attrs["scroll-display-buttons"]&&a||0);return!1},"scroll-repaint-horizontal":function(a,b,c,d){var e=this.attrs,g=this._.scroller,h=e["scroll-ratio"],p=e["scroll-position"],l=0,q=c*h,e="none"===e["scroll-display-buttons"];c&&(c-=1);a&&(a+=.5);d&&(d-=1);b&&(b+=.5);g.track.attr({width:c,height:d,y:b,x:a}).crisp();
e||(l=G(d,.5*c),q-=2*l*h,g.start.attr({width:l,height:d,x:a,y:b}),g.arrowstart.attr("polypath",[3,a+.5*l,b+.5*d,.25*l,180]),g.end.attr({width:l,height:d,x:a+c-l,y:b}),g.arrowend.attr("polypath",[3,a+c-.5*l,b+.5*l,.25*l,0]));g.trackLength=c-2*l-q;g.trackOffset=a+l+.5;g.anchorOffset=g.trackOffset+.5*(q-1);g.anchor.attr({height:d,width:q-1,y:b,x:g.trackOffset+g.trackLength*p}).crisp()},"scroll-repaint-vertical":function(a,b,c,d){var e=this.attrs,g=this._.scroller,h=e["scroll-ratio"],l=e["scroll-position"],
p=0,q=d*h,e="none"===e["scroll-display-buttons"];c&&(c-=1);a&&(a+=.5);d&&(d-=1);b&&(b+=.5);g.track.attr({width:c,height:d,y:b,x:a}).crisp();e||(p=G(c,.5*d),q-=2*p*h,g.start.attr({width:c,height:p,x:a,y:b}),g.arrowstart.attr("polypath",[3,a+.5*c,b+.5*p,.25*p,90]),g.end.attr({width:c,height:p,x:a,y:b+d-p}),g.arrowend.attr("polypath",[3,a+.5*c,b+d-.5*p,.25*p,-90]));g.trackLength=d-2*p-q;g.trackOffset=b+p+.5;g.anchorOffset=g.trackOffset+.5*(q-1);g.anchor.attr({height:q-1,width:c,y:g.trackOffset+g.trackLength*
l,x:a}).crisp()},fill:function(a){var b=this.attrs,c=this._.scroller,d=b["scroll-repaint"],e="flat"===b["scroll-display-style"],g="horizontal"===b["scroll-orientation"],h={stroke:"none"},p;m&&d&&3<(p=16-d[g&&3||2])&&(h.stroke=R,h["stroke-width"]=p);a=t.color(a);a.error&&(a="#000000");a="opacity"in a?"rgba("+[a.r,a.g,a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")";h.fill=e&&a||[90*g,t.tintshade(a,.15).rgba,a].join("-");h.stroke=t.tintshade(a,-.75).rgba;c.track.attr(h);h.fill=e&&t.tintshade(a,-.6).rgba||
[270*g,t.tintshade(a,.3).rgba+":40",t.tintshade(a,-.7).rgba].join("-");h.stroke=t.tintshade(a,-.6).rgba;c.anchor.attr(h);h.stroke="none";"none"!==b["scroll-display-buttons"]&&(h.fill=R,c.start.attr(h),c.end.attr(h),h.fill=t.tintshade(a,-.4).rgba,c.arrowstart.attr(h),c.arrowend.attr(h));return!1}}},{name:"button",button:function(a,b,c,d,e,g){g=this.group("button",g);var h;g._.button={bound:this.rect(g),tracker:this.rect(g).attr({fill:R,stroke:R,cursor:"pointer"}).data("compositeButton",g)};!t.is(e,
"object")&&(e={});for(h in t.fn.button.fn)g[h]=t.fn.button.fn[h];for(h in t.fn.button.ca)g.ca[h]=t.fn.button.ca[h];return g.attr({ishot:!0,"button-padding":[e.horizontalPadding,e.verticalPadding],"button-label":c,"button-symbol":d,"button-disabled":e.disabled||"false","button-symbol-position":e.symbolPosition,"button-symbol-padding":e.symbolPadding}).attr("button-repaint",[a,b,e.width,e.height,e.r])},data:{hoverin:function(){var a=this._.button.hoverbackIn;a&&!1===a()||(this.attr("fill","hover").hovered=
!0)},hoverout:function(){var a=this._.button.hoverbackOut;a&&!1===a()||(this.attr("fill",(this.pressed||this.active)&&"active"||"normal").hovered=!1)},mousedown:function(){this.attr("fill","active").pressed=!0},mouseup:function(){var a=this._.button.callback;this.attr("fill",this.hovered&&"hover"||this.active&&"active"||"normal").pressed=!1;a()}},fn:{tooltip:function(){t.el.tooltip&&t.el.tooltip.apply(this._.button.tracker,arguments);return this},buttonclick:function(a,b){var c=this._.button;b=b||
this;c.callback=function(){return a.apply(b,arguments)};return this},labelcss:function(){var a=this._.button,b=a.label;a.cssArg=arguments;b&&b.css.apply(b,arguments);return this.attr("button-repaint",this.attrs["button-repaint"])},buttonhover:function(a,b,c,d){var e=this._.button;c=c||this;d=d||this;e.hoverbackIn=function(){return a.apply(c,arguments)};e.hoverbackOut=function(){return b.apply(d,arguments)};return this},remove:function(){var a=this._.button,b;this.attr("button-disabled","true");for(b in a)a[b]&&
a[b].remove&&a[b].remove(),a[b]=null;delete this._.button;t.el.remove.apply(this,arguments)}},ca:{"button-active":function(a){this.attr("fill",(this.active=!!a)?"active":this.hovered&&"hover"||"normal")},"button-disabled":function(a){var b=this._.button.tracker,c=this.attrs["button-disabled"],d=this.paper.button.data;a=wa[a];c=wa[c];if(void 0!==a&&a!==c)switch(a){case !0:b.attr("fill","rgba(204,204,205,.5)").unmousedown(d.mousedown).unmouseup(d.mouseup).unhover(d.hoverin,d.hoverout);break;case !1:b.attr("fill",
R).mousedown(d.mousedown,this).mouseup(d.mouseup,this,!0).hover(d.hoverin,d.hoverout,this,this)}},"button-label":function(a){var b=this._.button,c=this.attrs,d=b.label,e=b.cssArg,g=this.attrs["button-repaint"];a=N(a||"");"none"===a?d&&(b.label=d.remove()):a&&(!d&&(d=b.label=this.paper.text(this).insertBefore(b.tracker)),d.attr({text:a,"text-anchor":"middle","vertical-align":"middle"}),e&&e.length&&d.css.apply(d,e));g&&c["button-label"]!==a&&this.attr("button-repaint",g)},"button-symbol":function(a){var b=
this.attrs,c=this._.button,d=c.symbol,e=this.attrs["button-repaint"];a=N(a||"");"none"===a?d&&(c.symbol=d.remove()):a&&!d&&(c.symbol=this.paper.symbol(this).insertAfter(c.bound));e&&b["button-symbol"]!==a&&this.attr("button-repaint",e)},"button-symbol-position":function(a){return{"button-symbol-position":{top:"top",right:"right",bottom:"bottom",left:"left",none:"none"}[N(a).toLowerCase()]||"none"}},"button-symbol-padding":function(a){return{"button-symbol-padding":l(a)}},"button-padding":function(a,
b){return{"button-padding":[null==a&&(a=5)||l(a),null==b&&a||l(b)]}},"button-repaint":function(a,b,c,d,e){var g=this._.button,h=g.bound,p=g.label,l=g.symbol,q=this.attrs,n=q["button-padding"],m=n[0],P=n[1],A,Q;void 0===a&&(a=0);void 0===b&&(b=0);if(void 0===c||void 0===d)A=p&&p.getBBox()||{width:0,height:0},void 0===c&&(c=2*m+A.width),void 0===d&&(d=2*P+A.height);h=t.crispBound(a,b,c,d,h.attr("stroke-width"));h.r=t.pick(e,L(.1*G(d,c)));a=h.x;b=h.y;c=h.width;d=h.height;p&&p.attr({x:a+c/2,y:b+d/2});
if(l){!t.is(Q=q["button-symbol-padding"],"finite")&&(Q=.2*d);e=d-P;A=.5*e;switch(q["button-symbol-position"]+(p&&"+"||"-")){case "right+":a=a+(c+(2*A+P))-A-m;b+=.5*d;p.attr("transform",["t",-(e+Q),0]);break;case "left+":a=a+m+A;b+=.5*d;p.attr("transform",["t",e+Q,0]);break;case "top+":a+=.5*c;b=b+n[1]+A;p.attr("transform",["t",0,e+Q]);break;case "bottom+":a+=.5*c;b=b+(d+(2*A+Q))-P-A;p.attr("transform",["t",0,-(e+Q)]);break;default:a+=.5*c,b+=.5*d}l.attr("symbol",[q["button-symbol"],a,b,A])}g.bound.attr(h);
g.tracker.attr(h)},fill:function(a,b,c,d){var e=this._.button,g=e.bound,h=e.symbol,p=e.label,l={normal:e.gradient,active:e.gradientActive,hover:e.gradientHover}[a];l||(a=t.getRGB(a),a.error&&(a=t.color("#cccccc")),a="opacity"in a?"rgba("+[a.r,a.g,a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")",e.gradient=[90,t.tintshade(a,-.8).rgba+":0",t.tintshade(a,.8).rgba+":100"].join("-"),e.gradientActive=[270,t.tintshade(a,-.8).rgba+":0",t.tintshade(a,.8).rgba+":100"].join("-"),d=t.getRGB(d),d.error&&(d=a)||(d=
"opacity"in d?"rgba("+[d.r,d.g,d.b,d.opacity]+")":"rgb("+[d.r,d.g,d.b]+")"),e.gradientHover=[90,t.tintshade(d,-.9).rgba+":0",t.tintshade(d,.7).rgba+":100"].join("-"),c=c||t.tintshade(a,.2).rgba,b=b||t.tintshade(a,-.2).rgba,e.symbolFill=c,e.labelFill=b,l=(this.pressed||this.active)&&e.gradientActive||this.hovered&&e.gradienthover||e.gradient);g.attr("fill",l);h&&h.attr("fill",e.symbolFill);p&&p.attr("fill",e.labelFill);return!1},stroke:function(a,b){var c=this._.button,d=c.symbol;a=t.color(a);a.error&&
(a=t.color("#999999"));c.bound.attr("stroke",a);d&&d.attr("stroke",b||a);return!1},"stroke-width":function(a,b){var c=this._.button,d=c.symbol;c.bound.attr("stroke-width",a);c.tracker.attr("stroke-width",a);d&&d.attr("stroke-width",b);return!1}}},{name:"trianglepath",trianglepath:function(){var a=arguments,b=t._lastArgIfGroup(a);return this.path(b).attr("trianglepath",[a[0],a[1],a[2],a[3],a[4],a[5],a[6]||0,a[7]||0,a[8]||0])},fn:{sides:function(){var a=this._args;return[Q(a[0],a[1],a[2],a[3]),Q(a[2],
a[3],a[4],a[5]),Q(a[4],a[5],a[0],a[1])]},enclosedAngles:function(){var a=this._sides;return[z((b(a[0],2)+b(a[2],2)-b(a[1],2))/(2*a[0]*a[2])),z((b(a[0],2)+b(a[1],2)-b(a[2],2))/(2*a[0]*a[1])),z((b(a[2],2)+b(a[1],2)-b(a[0],2))/(2*a[2]*a[1]))]},semiperimeter:function(){var a=this._sides||this.sides();return(a[0]+a[1]+a[2])/2}},ca:{trianglepath:function(b,c,d,e,h,p,l,q,n){if(l||q||n){this._args=arguments;this._sides=this.sides();var m=this.enclosedAngles(),t;t=this.semiperimeter();t=g(t*(t-this._sides[0])*
(t-this._sides[1])*(t-this._sides[2]))/t;m=[G(l,t)/a(m[0]/2),G(q,t)/a(m[1]/2),G(n,t)/a(m[2]/2)];m=[T(b,c,h,p,m[0]),T(b,c,d,e,m[0]),T(d,e,b,c,m[1]),T(d,e,h,p,m[1]),T(h,p,d,e,m[2]),T(h,p,b,c,m[2])];this.attr({path:["M",m[0].x,m[0].y,"Q",b,c,m[1].x,m[1].y,"L",m[2].x,m[2].y,"Q",d,e,m[3].x,m[3].y,"L",m[4].x,m[4].y,"Q",h,p,m[5].x,m[5].y,"L",m[0].x,m[0].y]})}else this.attr({path:["M",b,c,"L",d,e,h,p,"Z"]})}}}]);t.ca["text-bound"]=function(a,b,c,d,e,g){d=this.paper;var h=this._.textbound;if("text"===this.type){if(!(b&&
"none"!==b||a&&"none"!==a))return this._.textbound=h&&h.unfollow(this).remove(),!1;c&&t.is(c,"finite")||(c=0);e&&t.is(e,"finite")||(e=0);!h&&(h=this._.textbound=d.rect(0,0,0,0,this.group).follow(this,t.ca["text-bound"].reposition,"before"));h.attr({stroke:b,"stroke-width":c,fill:a,"shape-rendering":1===c&&"crisp"||"",r:e});g&&h.attr("stroke-dasharray",g);t.ca["text-bound"].reposition.call(h,this.attr(),this);return!1}};t.ca["text-bound"].reposition=function(a,b){var c={},d,e,g,h,p;a.hasOwnProperty("visibility")&&
this.attr("visibility",a.visibility);if(a.hasOwnProperty("text-bound")||a.hasOwnProperty("x")||a.hasOwnProperty("y")||a.hasOwnProperty("text")||a.hasOwnProperty("text-anchor")||a.hasOwnProperty("text-align")||a.hasOwnProperty("font-size")||a.hasOwnProperty("line-height")||a.hasOwnProperty("vertical-align")||a.hasOwnProperty("transform")||a.hasOwnProperty("rotation"))d=b.attrs["text-bound"],e=N(d&&d[3]||"0").split(ka),d=l(e[0])||0,e=t.pick(l(e[1]),d),g=b.getBBox(),h=g.width,p=g.height,isNaN(h)||(c.x=
g.x-d,c.y=g.y-e,c.width=h+2*d,c.height=p+2*e),this.attr(c)};t.fn.symbol=function(){var a=arguments,b=a.length-1,c=a[b];c&&c.constructor===t.el.constructor?a[b]=void 0:c=void 0;b=this.path(void 0,c);b.ca.symbol=t.fn.symbol.ca.symbol;return a.length===!!c+0?b:b.attr("symbol",a)};t.fn.symbol.cache={"":t._cacher(function(a,b,c,d){return 3<arguments.length?["M",a,b,"h",c,"v",d,"h",-c,"v",-d,"z"]:["M",a-c,b-c,"h",c*=2,"v",c,"h",-c,"v",-c,"z"]})};t.fn.symbol.ca={symbol:function(a){var b=t.is(a,"object")&&
1===arguments.length&&!t.is(a,"function")?a:arguments,c;b===a&&(a=b[0]);b=(c=t.is(a,"function")&&a||t.fn.symbol.cache[a]||t.fn.symbol.cache[""])&&c.apply(t,w.call(b,1));t.is(b,"array")||t.is(b,"string")?this.attr("path",b):b&&this.attr(b)}};t.addSymbol=function(a,b){var c=t.is(b,"function")&&(c={},c[a]=b,c)||a,d=t.fn.symbol.cache,e=[],g;for(g in c)b=c[g],d[g]=t.is(b,"function")&&t._cacher(b,t)||(e.push(g),b);for(;g=e.pop();)d[g]=d[d[g]]};t.svg?(Y="$1",X=function(a){a?"string"===typeof a?a=a.replace(aa,
Y):a.toString=ca:a="M0,0";this.node.setAttribute("d",a.toString());return this},t._engine.litepath=function(a,b,c,d){a=q("path");(d||b).canvas.appendChild(a);b=new V(a,b,d);b.type="litepath";b.id=a.raphaelid=t._oid++;a.raphael=!0;da(b,{fill:"none",stroke:"#000"});return b},t._getPath.litepath=function(a){return t.parsePathString(a.node.getAttribute("d"))}):t.vml&&(Y=function(a,b){return ja[b]||b},P=function(){this._transform.apply(this,arguments);this._.bcoord&&(this.node.coordsize=this._.bcoord);
return this},X=function(a){a?"string"===typeof a?a=a.replace(aa,Y):a.toString=ca:a="M0,0";this.node.path=a;return this},t._engine.litepath=function(a,b,c,d){a=q("shape");var e=a.style,g=new V(a,b,d);e.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;";c=l(c);isNaN(c)?a.coordsize="21600 21600":(g._.bzoom=c,e.width="1px",e.height="1px",a.coordsize=g._.bcoord=c+" "+c);a.coordorigin=b.coordorigin;g.type="litepath";g.id=a.raphaelid=t._oid++;a.raphael=!0;g._transform=g.transform;g.transform=
P;t._setFillAndStroke(g,{fill:"none",stroke:"#000"});(d||b).canvas.appendChild(a);b=q("skew");b.on=!0;a.appendChild(b);g.skew=b;return g},t._getPath.litepath=function(a){return t.parsePathString(a.node.path||"")});t.fn.litepath=function(a,b,c){b&&b.constructor===V&&(c=b,b=void 0);a&&a.constructor===V&&(c=a,a="");b=t._engine.litepath(a,this,b,c);b.ca.litepath=X;a&&b.attr("litepath",t.is(a,"array")?[a]:a);return this.__set__&&this.__set__.push(b),this._elementsById[b.id]=b}}]);
FusionCharts.register("module",["private","modules.renderer.js-htmlrenderer",function(){var d=this.hcLib,m=d.Raphael,D=d.dem,v=this.window,n=v.document,c=/msie/i.test(v.navigator.userAgent)&&!v.opera,K="VML"===m.type,b="createTouch"in n,H={cursor:"cursor"},a={x:"left",y:"top",strokeWidth:"borderThickness","stroke-width":"borderThickness",width:"width",height:"height"},z={fill:"backgroundColor",stroke:"borderColor",color:"color"},G={left:0,top:0,padding:0,border:"none",margin:0,outline:"none","-webkit-apperance":"none",
position:"absolute",zIndex:20},L,A=function(b,c,d,g){b=n.createElement(b);for(var m in c)a[m]?b.style[m]=c[m]:b.setAttribute(m,c[m]);for(m in d)b.style[m]=d[m];g&&g.appendChild&&g.appendChild(b);return b},g;g=function(a,b,c){b&&b instanceof g&&(b=b.element);(this.element=A(a,c,G,b)).ishot="true";this.nodeName=a.toLowerCase();this.added=Boolean(b)};g.prototype={attr:function(b){var d=this.element,g={},m,A,p,R,t,v,q;if("object"!==typeof b){if(!(g=this[b])){if("string"===typeof b)d&&d.getAttribute&&
(R=d.getAttribute(b));else if(void 0!==b&&null!==b&&"object"===typeof b)for(p in b)d.setAttribute(p,b[p]);g=R}return g}for(m in b){p=b[m];if(H[m]){switch(m){case "cursor":"pointer"===p&&K&&(p="hand")}d.style[H[m]]=p;A=!0}else if(a[m])d.style[a[m]]=p+"px",A=!0;else if(z[m])d.style[z[m]]=p&&p.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none",A=!0;else if(/^visibility$/i.test(m))A="hidden"===p,d.style.display=A?"none":"",this.hidden=A,A=!0;else if(/^opacity$/i.test(m))d.style.opacity=p,c&&(A=100*Number(p),d.style.filter=
"progid:DXImageTransform.Microsoft.Alpha(Opacity="+A+")"),A=!0;else if(/^innerhtml$/i.test(m)){if(K&&"select"==d.nodeName.toLowerCase()){for(A=p.match(/<option\s?[\s\S]*?(\/>|><\/option>|>[\s\S]*?<\/option>)/ig);d.firstChild;)d.removeChild(d.firstChild);t=0;for(v=A.length;t<v;t+=1)R=A[t],q=n.createElement("option"),/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig.test(R)&&(q.value=R.replace(/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig,"$1").replace(/[\s\S]*value\s*\=\s*[\'\"]([\s\S]*)[\'\"]/,
"$1")),q.text=R.replace(/<option\s*[\s\S]*[\'\"]?\s*?[\/>|\>]([\s\S]*)<\/option>/ig,"$1 "),d.options.add(q)}else"input"!==d.nodeName.toLowerCase()&&void 0!==p&&(d.innerHTML=p||"");A=!0}else/^text$/i.test(m)?("input"!==d.nodeName.toLowerCase()&&(d.innerHTML="",void 0!==p&&d.appendChild(n.createTextNode(p))),A=!0):/^type$/i.test(m)&&c&&this.added&&(A=!0);A&&(g[m]=p,delete b[m],A=!1)}for(m in b)d.setAttribute(m,b[m]);for(m in g)this[m]=b[m]=g[m],delete g[m];return this},val:function(a){var b=this.element,
c=void 0===a;return"input"===this.nodeName&&"checkbox"===b.getAttribute("type")?c?this.checked()?1:0:this.checked(a):c?b.value:(b.value=a,this)},checked:function(a){var b=this.element;return void 0===a?b.checked:(a?b.setAttribute("checked","checked"):b.removeAttribute("checked"),this)},css:function(a,b){var c=this.element.style,d;if("object"===typeof a)for(d in a)c[d]=a[d];else d&&void 0!==b&&(c[d]=b);return this},translate:function(a,b){var c=this.element;void 0!==a&&(c.style.left=a+"px");void 0!==
b&&(c.style.top=b+"px");return this},add:function(a,b){var c=this.element,d=a.element;b?d.insertBefore(c,d.firstChild):d.appendChild(c);this.added=!0;return this},hide:function(){this.element.style.display="none";return this},show:function(){this.element.style.display="";return this},focus:function(){"function"===typeof this.element.focus?this.element.focus():d.dem.fire(this.element,"focus")},destroy:function(){var a=this.element||{};a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.onblur=a.onfocus=
null;L||(L=A("div"));a&&L.appendChild(a);L.innerHTML="";delete this.element;return null},on:K?function(a,b){this.element["on"+a]=function(){var a=v.event;a.target=a.srcElement;b(a)};return this}:function(a,c){var d=c;b&&"click"===a&&(a="touchstart",d=function(a){a.preventDefault();c()});this.element["on"+a]=d;return this},bind:function(a,b,c){D.listen(this.element,a,b,c);return this},unbind:function(a,b){D.unlisten(this.element,a,b);return this},trigger:function(a,b){D.fire(this.element,a,b);return this},
fadeIn:function(a,b){var c="fast"===a?400:1E3;this.show();this.attr({opacity:0});d.danimate.animate(this.element,{opacity:1},c,"linear",b)}};g.prototype.constructor=g;m.fn.html=function(a,b,c,d){var m={},p;b&&"type"in b&&(m.type=b.type,delete b.type);a=(new g(a,d,m)).css(c).attr(b);for(p in m)b[p]=m[p];return a}}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaeltooltip",function(){var d=this,m=d.window,D=m.document,v=D.body||D.getElementsByTagName("body")[0],n=d.hcLib,c=n.Raphael,K=c.eve,b=n.createElement,H=n.addEvent,a=n.removeEvent,z=n.getPosition,G=n.hasTouch,L=n.getTouchEvent,A=m.Math,g=A.ceil,e=A.floor,h={},l=m.screen.availHeight,N=m.screen.availWidth,w={"":1,moz:1,webkit:1,o:1,ms:1},p={borderRadius:"borderRadius",boxShadow:"boxShadow"},R=/\-([a-z])/ig,t=function(a,b){return b.toUpperCase()},
fa=function(a){var b=q.forbiddenStyle,d,e,g;for(d in a)e=R.test(d)?d.replace(R,t):d,void 0!==a[d]&&!b[e]&&(this[e]=a[d]),c.vml&&/color/ig.test(e)&&(this[e]=c.getRGB(this[e]).toString());for(d in p)if(this[d])for(g in w)this[g+d]=this[d]},q=n.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,prevented:!1,defaultStyle:n.extend2(fa.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:"99999",pointer:"default",display:"block"},forbiddenStyle:{}},da=function(b){!0===q._oobready?q._oobready=!1:(a(v,"touchstart",da),!q.hidden&&q.currentTarget&&(b=b.srcElement||b.target||h,b.raphael&&q.currentTarget.paper.getById(b.raphaelid)===q.currentTarget||q.hide()))};c.svg&&(q.defaultContainerStyle.pointerEvents="none",q.defaultStyle.borderRadius=
"0",q.defaultStyle.boxShadow="none");c.vml&&(q.forbiddenStyle.borderRadius=!0,q.forbiddenStyle.boxShadow=!0,q.defaultStyle.filter="");q.setup=function(){var a=q.container,e=q.textElement,g=q.style,h=q.defaultContainerStyle,p=q.forbiddenStyle,l;a||(a=q.element=b("span"),(D.body||D.getElementsByTagName("body")[0]).appendChild(a),a.setAttribute("id",q.elementId),g=q.containerStyle=a.style,e=q.textElement=b("span"),a.appendChild(e),q.style=c.vml?e.runtimeStyle:e.style,q.style.overflow="hidden",q.style.display=
"block",q.hidden=!1,q.hide());for(l in h)!p[l]&&(g[l]=h[l]);q.scatted=!0;K.on("raphael.drag.start.*",function(){q.scatted&&(q.waitingScat=!0)});K.on("raphael.drag.move.*",function(){q.waitingScat&&(q.block(),q.waitingScat=!1)});K.on("raphael.drag.end.*",function(){q.waitingScat=!1;q.scatted&&q.unblock(!0)});K.on("raphael.remove",function(){if(q.currentPaper===this||q.currentTarget&&q.currentTarget.paper===this)q.hide(),q.currentTarget=q.currentPaper=null});d.addEventListener("LinkedChartInvoked",
function(a){q.currentPaper===a.sender.jsVars.hcObj.paper&&q.hide()})};q.restyle=function(a){var b=q.style,c;for(c in a)b[c]=a[c]};q.onelement=function(a){if(!a.__tipProcessed){var b=this.paper,c="group"===this.type?b&&b._elementFromEvent(a):this,d=b.__tipStyle;c&&d&&c.__tipNeeded&&((a.originalEvent||a).FusionChartsPreventEvent&&q.preventTooltip(),q.hiding&&(q.hiding=clearTimeout(q.hiding)),q.currentPaper!==b&&(b.__tipCp=b.canvas&&z(b.canvas.parentNode,!0)||{},q.restyle(b.__tipStyle),q.currentPaper=
b),q.lastTarget=q.currentTarget,q.currentTarget=c,q.scatted=c.__tipScatted,q.onredraw.call(this,a),a.__tipProcessed=!0,G&&(q._oobready=!0,H(v||(v=D.body||D.getElementsByTagName("body")[0]),"touchstart",da)))}};q.onredraw=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===q.currentTarget&&(q.redrawing&&clearTimeout(q.redrawing),a=L(a),q.x=e(a.pageX||a.clientX+D.body.scrollLeft+D.documentElement.scrollLeft||0),q.y=e(a.pageY||a.clientY+D.body.scrollTop+
D.documentElement.scrollTop||0),q.redrawing=setTimeout(q.redraw,0)))};q.onhide=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===q.currentTarget&&(q.hiding=setTimeout(q.hide,200)))};q.redraw=function(){if(!q.prevented&&!q.blocked&&q.currentTarget&&q.currentTarget.__tipNeeded){var a=q.currentTarget,b=a.paper,c=q.textElement,d=q.containerStyle,e=q.style,h=a.__tipText,a=q.pointeroffset,p=b.__tipCp,m=D.documentElement||D.body,n=m.scrollLeft,m=m.scrollTop,
t=q.x,A=q.y,z,r=b.width,w=b.height,b=b.__tipConstrain;if(100>r||100>w)b=!1;q.hidden&&(q.containerStyle.top="-999em",q.show());h!==q.text&&(q.text=h,d.width=d.height="",c.innerHTML=h,e.whiteSpace="nowrap",h=g(e.pixelWidth||c.offsetWidth||0),z=g(e.pixelHeight||c.offsetHeight||0),(q.textWidthOverflow=t+h>p.left+r)?(d.width=(r>h?h+2*a:r-2*a||0)+"px",e.whiteSpace="normal"):d.width="",(q.textHeightOverflow=z>w)?(d.height=(w||0)-2*a+"px",e.whiteSpace="normal"):d.height="");h=g(e.pixelWidth||c.offsetWidth||
0);z=g(e.pixelHeight||c.offsetHeight||0);b?(q.textWidthOverflow?t=(t-h<p.left?p.left:t-h)-n:t+a+h>p.left-n+r-a&&(t=t-h-a),q.textHeightOverflow?A=p.top-m:A+a+z>p.top-m+w-a&&(A=A-z-1.5*a)):(n+N<t+a+h&&(t=t-h-a),m+l<A+a+z&&(A=A-z-1.5*a));d.left=(t+a||0)+"px";d.top=(A+a||0)+"px";q.hidden&&q.show()}};q.hide=function(){q.hiding&&(q.hiding=clearTimeout(q.hiding));q.containerStyle.display="none";q.hidden=!0;q.prevented=!1};q.show=function(){q.blocked||(q.hiding&&(q.hiding=clearTimeout(q.hiding)),q.containerStyle.display=
"inline",q.hidden=!1)};q.preventTooltip=function(){q.prevented=!0};q.block=function(){q.blocked=!0;q.containerStyle.display="none"};q.unblock=function(a){q.blocked=!1;a&&(q.containerStyle.display=q.hidden&&"none"||"inline")};c.fn.tooltip=function(a,b,d){b&&(b=.4*(void 0===b.opacity?1:b.opacity),c.svg?a.boxShadow="1px 1px 3px rgba(64,64,64,"+b+")":a.filter='progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color="#404040", shadowOpacity="'+b/2+'")');this.__tipStyle=new fa(a);this.__tipCp=
this.canvas&&z(this.canvas.parentNode,!0)||{};this.__tipConstrain=Boolean(d);return this};c.el.trackTooltip=function(a){var b=!!this.__tiptracking;if(void 0===a||(a=!!a)===b)return this;a?G?this.touchstart(q.onelement):(this.mouseover(q.onelement),this.mousemove(q.onredraw),this.mouseout(q.onhide)):G?this.untouchstart(q.onelement):(this.unmouseover(q.onelement),this.unmousemove(q.onredraw),this.unmouseout(q.onhide));this.__tiptracking=a;return this};c.el.tooltip=function(a,b,d,e,g){q.setup();c.el.tooltip=
function(a,b,c,d,e){b=!1===a||void 0===a||""===a;this.__tipScatted=void 0===d?this.__tipScatted:!d;void 0===this.__tipScatted&&(this.__tipScatted=!0);null!==e&&(this.__tip_blocked=e);b^!this.__tipText&&(this.__tipNeeded=!b);this.__tipText=a;if(q.currentTarget===this&&a!==q.text&&!q.hidden)q[b?"hide":"redraw"]();return this};return c.el.tooltip.call(this,a,b,d,e,g)};d.core._setTooltipZIndex=function(a){a=parseInt(a,10);q&&!isNaN(a)&&(q.defaultContainerStyle.zIndex=a,q.containerStyle&&(q.containerStyle.zIndex=
a))}}]);
FusionCharts.register("module",["private","modules.renderer.js-smartlabel",function(){var d=this.hcLib,m=d.isIE,D=d.hasSVG,v=Math.max,n=this.window,c=/ HtmlUnit/.test(n.navigator.userAgent),K=n.document,b=/ AppleWebKit\//.test(n.navigator.userAgent),H=!!K.createElement("canvas").getContext,a=!(!H||!K.createElement("canvas").getContext("2d").measureText),n=function(){function n(a,b,c){if(!a||!a.length)return 0;var d=c.getWidthFunction(),e=0,g=0,g=d(a),h=g/a.length;c=b;e=Math.ceil(b/h);if(g<b)return a.length-
1;e>a.length&&(c=b-g,e=a.length);for(;0<c;)if(c=b-d(a.substr(0,e)),g=Math.floor(c/h))e+=g;else return e;for(;0>c;)if(c=b-d(a.substr(0,e)),g=Math.floor(c/h))e+=g;else break;return e}function G(a,b){b=5<b?b:5;this.maxContainers=20>b?b:20;this.last=this.first=null;this.containers={};this.length=0;this.rootNode=a;if(fa){var c=K.createElementNS("http://www.w3.org/2000/svg","svg");c.setAttributeNS("http://www.w3.org/2000/svg","xlink","http://www.w3.org/1999/xlink");c.setAttributeNS("http://www.w3.org/2000/svg",
"height","0");c.setAttributeNS("http://www.w3.org/2000/svg","width","0");this.svgRoot=c;this.rootNode.appendChild(c)}}function L(a,b,d){if("undefined"!==typeof a&&"object"!==typeof a){this.id=a;var g;"string"===typeof b&&(b=K.getElementById(b));a:{if(b&&(b.offsetWidth||b.offsetHeight)){if(b.appendChild){b.appendChild(b=K.createElement("div"));b.className="fusioncharts-smartlabel-container";b.setAttribute("aria-hidden","true");b.setAttribute("role","presentation");a=b;break a}}else if((a=K.getElementsByTagName("body")[0])&&
a.appendChild){b=K.createElement("div");b.className="fusioncharts-smartlabel-container";b.setAttribute("aria-hidden","true");b.setAttribute("role","presentation");a.appendChild(b);a=b;break a}a=void 0}a=this.parentContainer=a;a.innerHTML="WgI";if(c||!a.offsetHeight&&!a.offsetWidth)fa=!0;a.innerHTML="";for(g in e)a.style[g]=e[g];this.containerManager=new G(a,10);this.showNoEllipses=!d;this.init=!0;this.style={};this.setStyle()}}var A=d.supportedStyle,g={fontWeight:1,"font-weight":1,fontStyle:1,"font-style":1,
fontSize:1,"font-size":1,fontFamily:1,"font-family":1},e={position:"absolute",top:"-9999em",left:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},h=b?0:4.5,l=0,N=/\b_SmartLabel\b/,w=/\b_SmartLabelBR\b/,p=/(<[^<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/ig,R=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),t=/<[^>][^<]*[^>]+>/i,fa=!1,q=0,da=0,V,ia,wa;K.getElementsByClassName?(V="getElementsByClassName",ia="_SmartLabel",wa=!0):(V="getElementsByTagName",
ia="span",wa=!1);G.prototype={get:function(a){var b=this.containers,c=this.length,d=this.maxContainers,e,g="",h="",h=this.getCanvasFont(a);for(e in A)void 0!==a[e]&&(g+=A[e]+":"+a[e]+";");if(!g)return!1;if(b[g])g=b[g],this.first!==g&&(g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),g.next=this.first,g.next.prev=g,this.last===g&&(this.last=g.prev),g.prev=null,this.first=g);else{if(c>=d)for(a=c-d+1;a--;)this.removeContainer(this.last);g=this.addContainer(g,h)}return g},getCanvasFont:function(b){var c,
d=[];if(!H||!a)return!1;for(c in g)void 0!==b[c]&&d.push(b[c]);return d.join(" ")},setMax:function(a){var b=this.length;a=5<a?a:5;a=20>a?a:20;if(a<b){for(b-=a;b--;)this.removeContainer(this.last);this.length=a}this.maxContainers=a},addContainer:function(a,b){var c,d;this.containers[a]=d={next:null,prev:null,node:null,ellipsesWidth:0,lineHeight:0,dotWidth:0,avgCharWidth:4,keyStr:a,canvasStr:b,charCache:{}};d.next=this.first;d.next&&(d.next.prev=d);this.first=d;this.last||(this.last=d);this.length+=
1;c=d.node=K.createElement("div");this.rootNode.appendChild(c);m&&!D?c.style.setAttribute("cssText",a):c.setAttribute("style",a);c.setAttribute("aria-hidden","true");c.setAttribute("role","presentation");c.style.display="inline-block";c.innerHTML="WgI";d.lineHeight=c.offsetHeight;d.avgCharWidth=c.offsetWidth/3;fa?(c=d.svgText=K.createElementNS("http://www.w3.org/2000/svg","text"),c.setAttribute("style",a),this.svgRoot.appendChild(c),c.textContent="WgI",d.lineHeight=c.getBBox().height,d.avgCharWidth=
(c.getBBox().width-h)/3,c.textContent="...",d.ellipsesWidth=c.getBBox().width-h,c.textContent=".",d.dotWidth=c.getBBox().width-h):b?(c=d.canvas=K.createElement("canvas"),c.style.height=c.style.width="0px",this.rootNode.appendChild(c),d.context=c=c.getContext("2d"),c.font=b,d.ellipsesWidth=c.measureText("...").width,d.dotWidth=c.measureText(".").width):(c.innerHTML="...",d.ellipsesWidth=c.offsetWidth,c.innerHTML=".",d.dotWidth=c.offsetWidth,c.innerHTML="");return d},removeContainer:function(a){var b=
a.keyStr;b&&this.length&&a&&(this.length-=1,a.prev&&(a.prev.next=a.next),a.next&&(a.next.prev=a.prev),this.first===a&&(this.first=a.next),this.last===a&&(this.last=a.prev),a.node.parentNode.removeChild(a.node),a.canvas&&a.canvas.parentNode.removeChild(a.canvas),delete this.containers[b])},dispose:function(){var a,b=this.containers;this.maxContainers=null;for(a in b)this.removeContainer(b[a]);this.rootNode.parentNode.removeChild(this.rootNode);this.last=this.first=this.rootNode=null}};G.prototype.constructor=
G;L.prototype={dispose:function(){this.init&&(this.containerManager.dispose(),delete this.container,delete this.context,delete this.cache,delete this.containerManager,delete this.containerObj,delete this.id,delete this.style,delete this.parentContainer,delete this.showNoEllipses)},useEllipsesOnOverflow:function(a){this.init&&(this.showNoEllipses=!a)},getWidthFunction:function(){var a=this.context,b=this.container,c=this.containerObj.svgText;return c?function(a){var b;c.textContent=a;a=c.getBBox();
b=a.width-h;1>b&&(b=a.width);return b}:a?function(b){return a.measureText(b).width}:function(a){b.innerHTML=a;return b.offsetWidth}},getSmartText:function(a,b,c,d){if(!this.init)return!1;if(void 0===a||null===a)a="";var e={text:a,maxWidth:b,maxHeight:c,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:a,isTruncated:!1},g=!1,h,m,A=0,r,J,I,D=-1,H=g=-1;m=this.container;var G=this.context,L=0;I=0;var ea,za,Da;Da=[];var W=0,pa=this.showNoEllipses?"":"...";J=this.lineHeight;var La,L=[],
D=h=-1;La=function(a){a=a.replace(/^\s\s*/,"");for(var b=/\s/,c=a.length;b.test(a.charAt(c-=1)););return a.slice(0,c+1)};g=-1;za=this.getWidthFunction();if(m){if(!fa){m.innerHTML=a;e.oriTextWidth=g=m.offsetWidth;e.oriTextHeight=I=m.offsetHeight;if(I<=c&&g<=b)return e.width=e.oriTextWidth=g,e.height=e.oriTextHeight=I,e;if(J>c)return e.text="",e.width=e.oriTextWidth=0,e.height=e.oriTextHeight=0,e}a=La(a).replace(/(\s+)/g," ");g=t.test(a);J=this.showNoEllipses?b:b-l;if(g){A=a.replace(p,"$2");a=a.replace(p,
'$1<span class="_SmartLabel">$2</span>');a=a.replace(/(<br\s*\/*\>)/g,'<span class="_SmartLabel _SmartLabelBR">$1</span>');m.innerHTML=a;W=m[V](ia);G=0;for(za=W.length;G<za;G+=1)if(a=W[G],wa||N.test(a.className))La=a.innerHTML,""!==La&&(" "===La?D=L.length:"-"===La&&(h=L.length),L.push({spaceIdx:D,dashIdx:h,elem:a}),Da.push(La));W=0;h=L.length;q=L[0].elem.offsetWidth;if(q>b)return e.text="",e.width=e.oriTextWidth=e.height=e.oriTextHeight=0,e;q>J&&!this.showNoEllipses&&(J=b-2*da,J>q?pa="..":(J=b-da,
J>q?pa=".":(J=0,pa="")));Da=L[0].elem.offsetLeft;G=L[0].elem.offsetTop;if(d)for(;W<h;W+=1)a=L[W].elem,za=a.offsetLeft-Da+a.offsetWidth,za>J&&(ea||(ea=W),m.offsetWidth>b&&(r=W,W=h));else for(;W<h;W+=1)a=L[W].elem,La=a.offsetHeight+(a.offsetTop-G),za=a.offsetLeft-Da+a.offsetWidth,d=null,za>J?(ea||(ea=W),za>b&&(g=L[W].spaceIdx,D=L[W].dashIdx,g>H?(L[g].elem.innerHTML="<br/>",H=g):D>H?(L[D].elem.innerHTML=D===W?"<br/>-":"-<br/>",H=D):a.parentNode.insertBefore(d=K.createElement("br"),a),a.offsetHeight+
a.offsetTop>c?(d?d.parentNode.removeChild(d):H===D?L[D].elem.innerHTML="-":L[g].elem.innerHTML=" ",r=W,W=h):ea=null)):La>c&&(r=W,W=h);if(r<h){e.isTruncated=!0;ea=ea?ea:r;for(W=h-1;W>=ea;W-=1)a=L[W].elem,a.parentNode.removeChild(a);for(;0<=W;W-=1)a=L[W].elem,w.test(a.className)?a.parentNode.removeChild(a):W=0}e.text=m.innerHTML.replace(R,"$1");e.isTruncated&&(e.text+=pa,e.tooltext=A)}else{Da=a.split("");h=Da.length;m="";r=[];ea=Da[0];this.cache[ea]?q=this.cache[ea].width:(q=za(ea),this.cache[ea]={width:q});
if(J>q)r=a.substr(0,n(a,J,this)).split(""),W=r.length;else{if(q>b)return e.text="",e.width=e.oriTextWidth=e.height=e.oriTextHeight=0,e;pa&&(J=b-2*da,J>q?pa="..":(J=b-da,J>q?pa=".":(J=0,pa="")))}L=za(r.join(""));I=this.lineHeight;if(d){for(;W<h;W+=1)if(ea=r[W]=Da[W],this.cache[ea]?q=this.cache[ea].width:(q=za(ea),this.cache[ea]={width:q}),L+=q,L>J&&(m||(m=r.slice(0,-1).join("")),L>b))return e.text=La(m)+pa,e.tooltext=e.oriText,e.width=za(e.text),e.height=this.lineHeight,e;e.text=r.join("");e.width=
L;e.height=this.lineHeight}else{for(;W<h;W+=1)if(ea=r[W]=Da[W]," "!==ea||G||(ea="&nbsp;"),this.cache[ea]?q=this.cache[ea].width:(q=za(ea),this.cache[ea]={width:q}),L+=q,L>J&&(m||(m=r.slice(0,-1).join("")),L>b)){g=a.substr(0,r.length).lastIndexOf(" ");D=a.substr(0,r.length).lastIndexOf("-");g>H?(L=za(r.slice(H+1,g).join("")),r.splice(g,1,"<br/>"),H=g,d=g+1):D>H?(D===r.length-1?(L=za(r.slice(H+1,g).join("")),r.splice(D,1,"<br/>-")):(L=za(r.slice(H+1,g).join("")),r.splice(D,1,"-<br/>")),H=D,d=D+1):(r.splice(r.length-
1,1,"<br/>"+Da[W]),g=r.length-2,L=za(r.slice(H+1,g+1).join("")),H=g,d=W);I+=this.lineHeight;if(I>c)return e.text=La(m)+pa,e.tooltext=e.oriText,e.width=b,e.height=I-this.lineHeight,e;A=v(A,L);m=null;ea=n(a.substr(d),J,this);L=za(a.substr(d,ea||1));r.length<d+ea&&(r=r.concat(a.substr(r.length,d+ea-r.length).split("")),W=r.length-1)}A=v(A,L);e.text=r.join("");e.width=A;e.height=I}return e}e.height=m.offsetHeight;e.width=m.offsetWidth}else e.error=Error("Body Tag Missing!");return e},setStyle:function(a){if(!this.init)return!1;
if(a!==this.style||this.styleNotSet){a||(a=this.style);var b=a,c=b.fontSize=b.fontSize||"12px";b.lineHeight=b.lineHeight||b["line-height"]||1.2*parseInt(c,10)+"px";this.style=a;(this.containerObj=a=this.containerManager.get(a))?(this.container=a.node,this.context=a.context,this.cache=a.charCache,this.lineHeight=a.lineHeight,l=a.ellipsesWidth,da=a.dotWidth,this.styleNotSet=!1):this.styleNotSet=!0}},getTextSize:function(a,b,c){if(!this.init)return!1;var d={text:a,width:null,height:null,oriTextWidth:null,
oriTextHeight:null,isTruncated:!1},e=this.container;e&&(e.innerHTML=a,d.oriTextWidth=e.offsetWidth,d.oriTextHeight=e.offsetHeight,d.width=Math.min(d.oriTextWidth,b),d.height=Math.min(d.oriTextHeight,c),d.width<d.oriTextWidth||d.height<d.oriTextHeight)&&(d.isTruncated=!0);return d},getOriSize:function(a){if(!this.init)return!1;var b={text:a,width:null,height:null},c=this.container,d=this.getWidthFunction(),e=0;if(fa){a=a.split(/(<br\s*\/*\>)/g);c=a.length;for(b.height=this.lineHeight*c;c--;)e=v(e,
d(a[c]));b.width=e}else c&&(c.innerHTML=a,b.width=c.offsetWidth,b.height=c.offsetHeight);return b}};return L.prototype.constructor=L}();d.SmartLabelManager=n}]);
FusionCharts.register("module",["private","modules.renderer.js-numberformatter",function(){var d=this,m=d.hcLib,D=m.pluckNumber,v=m.extend2,n=m.getValidValue,c=m.pluck,K=m.getFirstValue,b=Math.abs,H=Math.pow,a=Math.round,z=function(a){return a&&a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},G={},L=function(a){var b=[],c;for(c in a)b.push(c+"_"+a[c]);b.sort();return b.join(",")},A=function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b};m.NumberFormatter=function(){function d(b,c,e){var g;
if(0>=c)return a(b)+"";if(isNaN(c))return b+="",12<b.length&&-1!=b.indexOf(".")&&(c=12-b.split(".")[0].length,g=H(10,c),b=a(b*g)/g+""),b;g=H(10,c);b=a(b*g)/g+"";if(1==e)for(-1==b.indexOf(".")&&(b+=".0"),e=b.split("."),c-=e[1].length,e=1;e<=c;e++)b+="0";return b}function e(a,b,c,d,e){var g=Number(a),h="",l=!1,m="",n="",A=m=0;if(isNaN(g))return"";if(1E15<g)return g.toExponential(e?1:14);m=0;A=a.length;-1!=a.indexOf(".")&&(h=a.substring(a.indexOf(".")+1,a.length),A=a.indexOf("."));0>g&&(l=!0,m=1);m=
a.substring(m,A);a=m.length;e=d.length-1;g=d[e];if(a<g)n=m;else for(;a>=g;)n=(a-g?c:"")+m.substr(a-g,g)+n,a-=g,g=0>=(e-=1)?d[0]:d[e],a<g&&(n=m.substring(a,0)+n);""!=h&&(n=n+b+h);!0===l&&(n="-"+n);return n}var h,l={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:"",numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:"",numbersuffix:"",decimals:"",forcedecimals:"0",yaxisvaluedecimals:"2",decimalseparator:".",thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:"",
inthousandseparator:"",sformatnumber:"1",sformatnumberscale:"0",sdefaultnumberscale:"",snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:"",snumbersuffix:"",sdecimals:"2",sforcedecimals:"0",syaxisvaluedecimals:"2",xFormatNumber:"0",xFormatNumberScale:"0",xDefaultNumberScale:"",xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:"",xNumberSuffix:""},m={mscombidy2d:{formatnumberscale:"1"}},A=function(a,b,d){var e,g,h,A,w,H,L,G,ka,Y=b.name,ca=v({},l),X,P,Q,T,r,J,I,
U,Fa,Ia,Ta;(h=m[Y])&&(ca=v(ca,h));this.csConf=ca;this.chartAPI=b;n(a.numberscaleunit)&&(e=a.numberscaleunit.split(","));if(g=n(a.snumberscaleunit,a.numberscaleunit))g=g.split(",");if(h=n(a.xnumberscaleunit,a.numberscaleunit))h=h.split(",");if(A=n(a.ticknumberscaleunit,a.numberscaleunit))A=A.split(",");if(w=n(a.ynumberscaleunit,a.numberscaleunit))w=w.split(",");n(a.numberscalevalue)&&(H=a.numberscalevalue.split(","));if(P=n(a.snumberscalevalue,a.numberscalevalue))P=P.split(",");if(L=n(a.xnumberscalevalue,
a.numberscalevalue))L=L.split(",");if(G=n(a.ticknumberscalevalue,a.numberscalevalue))G=G.split(",");if(ka=n(a.ynumberscalevalue,a.numberscalevalue))ka=ka.split(",");if(n(a.thousandseparatorposition))for(X=a.thousandseparatorposition.split(","),Q=X.length,r=l.thousandseparatorposition[0];Q--;)T=parseInt(X[Q],10),0>=T&&(T=r),r=X[Q]=T;b||(b={});Q=D(a.scalerecursively,0);T=D(a.sscalerecursively,Q);r=D(a.xscalerecursively,Q);J=D(a.maxscalerecursion,-1);I=D(a.smaxscalerecursion,J);U=D(a.xmaxscalerecursion,
J);Fa=n(a.scaleseparator," ");Ia=n(a.sscaleseparator,Fa);Ta=n(a.xscaleseparator,Fa);J||(J=-1);this.baseConf=e={cacheStore:[],formatnumber:c(a.formatnumber,b.formatnumber,ca.formatnumber),formatnumberscale:c(a.formatnumberscale,b.formatnumberscale,ca.formatnumberscale),defaultnumberscale:K(a.defaultnumberscale,b.defaultnumberscale,ca.defaultnumberscale),numberscaleunit:c(e,b.numberscaleunit,ca.numberscaleunit).concat(),numberscalevalue:c(H,b.numberscalevalue,ca.numberscalevalue).concat(),numberprefix:K(a.numberprefix,
b.numberprefix,ca.numberprefix),numbersuffix:K(a.numbersuffix,b.numbersuffix,ca.numbersuffix),decimalprecision:parseInt("auto"===a.decimals?ca.decimalprecision:c(a.decimals,a.decimalprecision,b.decimals,ca.decimals,b.decimalprecision,ca.decimalprecision),10),forcedecimals:c(a.forcedecimals,b.forcedecimals,ca.forcedecimals),decimalseparator:c(a.decimalseparator,b.decimalseparator,ca.decimalseparator),thousandseparator:c(a.thousandseparator,b.thousandseparator,ca.thousandseparator),thousandseparatorposition:c(X,
b.thousandseparatorposition,ca.thousandseparatorposition),indecimalseparator:K(a.indecimalseparator,b.indecimalseparator,ca.indecimalseparator),inthousandseparator:K(a.inthousandseparator,b.inthousandseparator,ca.inthousandseparator),scalerecursively:Q,maxscalerecursion:J,scaleseparator:Fa};n(e.inthousandseparator)&&(this.baseConf._REGinthousandseparator=new RegExp(z(e.inthousandseparator),"g"));n(e.indecimalseparator)&&(this.baseConf._REGindecimalseparator=new RegExp(z(e.indecimalseparator)));this.Y=
[];d||(d={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:Q,maxscalerecursion:J,scaleseparator:Fa},b.useScaleRecursively&&(d.numberscalevalue&&d.numberscalevalue.length)==(d.numberscaleunit&&d.numberscaleunit.length)||(d.scalerecursively=Q=0),H={cacheStore:[],formatnumber:d.formatnumber,formatnumberscale:d.formatnumberscale,defaultnumberscale:d.defaultnumberscale,numberscaleunit:d.numberscaleunit.concat(),numberscalevalue:d.numberscalevalue.concat(),numberprefix:d.numberprefix,numbersuffix:d.numbersuffix,
decimalprecision:parseInt(c(a.yaxisvaluedecimals,d.decimalprecision,2),10),forcedecimals:c(a.forceyaxisvaluedecimals,d.forcedecimals),decimalseparator:d.decimalseparator,thousandseparator:d.thousandseparator,thousandseparatorposition:d.thousandseparatorposition.concat(),indecimalseparator:d.indecimalseparator,inthousandseparator:d.inthousandseparator,scalerecursively:Q,maxscalerecursion:J,scaleseparator:Fa},P={cacheStore:[],formatnumber:c(a.sformatnumber,b.sformatnumber,l.sformatnumber),formatnumberscale:c(a.sformatnumberscale,
b.sformatnumberscale,l.sformatnumberscale),defaultnumberscale:K(a.sdefaultnumberscale,b.sdefaultnumberscale,d.defaultnumberscale),numberscaleunit:c(g,b.snumberscaleunit,l.snumberscaleunit).concat(),numberscalevalue:c(P,b.snumberscalevalue,l.snumberscalevalue).concat(),numberprefix:K(a.snumberprefix,b.snumberprefix,l.snumberprefix),numbersuffix:K(a.snumbersuffix,b.snumbersuffix,l.snumbersuffix),decimalprecision:parseInt(c(a.syaxisvaluedecimals,a.sdecimals,a.decimals,b.sdecimals,l.sdecimals),10),forcedecimals:c(a.forcesyaxisvaluedecimals,
a.sforcedecimals,a.forcedecimals,b.sforcedecimals,l.sforcedecimals),decimalseparator:c(a.decimalseparator,b.decimalseparator,l.decimalseparator),thousandseparator:c(a.thousandseparator,b.thousandseparator,l.thousandseparator),thousandseparatorposition:d.thousandseparatorposition.concat(),indecimalseparator:c(a.indecimalseparator,b.indecimalseparator,l.indecimalseparator),inthousandseparator:c(a.inthousandseparator,b.inthousandseparator,l.inthousandseparator),scalerecursively:T,maxscalerecursion:I,
scaleseparator:Ia},g=v({},P),g.decimalprecision=parseInt(c(a.sdecimals,a.decimals,a.syaxisvaluedecimals,b.sdecimals,l.sdecimals),10),g.forcedecimals=c(a.sforcedecimals,a.forcedecimals,a.forcesyaxisvaluedecimals,b.sforcedecimals,l.sforcedecimals),g.cacheStore=[],b.useScaleRecursively&&(P.numberscalevalue&&P.numberscalevalue.length)==(P.numberscaleunit&&P.numberscaleunit.length)||(P.scalerecursively=T=0),/^(bubble|scatter|selectscatter)$/.test(Y)&&(H.formatnumber=c(a.yformatnumber,H.formatnumber),H.formatnumberscale=
c(a.yformatnumberscale,H.formatnumberscale),H.defaultnumberscale=K(a.ydefaultnumberscale,H.defaultnumberscale),H.numberscaleunit=c(w,H.numberscaleunit),H.numberscalevalue=c(ka,H.numberscalevalue),H.numberprefix=c(a.ynumberprefix,H.numberprefix),H.numbersuffix=c(a.ynumbersuffix,H.numbersuffix),d.formatnumber=c(a.yformatnumber,d.formatnumber),d.formatnumberscale=c(a.yformatnumberscale,d.formatnumberscale),d.defaultnumberscale=K(a.ydefaultnumberscale,d.defaultnumberscale),d.numberscaleunit=c(a.ynumberscaleunit,
d.numberscaleunit.concat()),d.numberscalevalue=c(a.ynumberscalevalue,d.numberscalevalue.concat()),d.numberprefix=c(a.ynumberprefix,d.numberprefix),d.numbersuffix=c(a.ynumbersuffix,d.numbersuffix)),/^(mscombidy2d|mscombidy3d)$/.test(Y)&&(P.formatnumberscale=D(a.sformatnumberscale)),/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(Y)&&(d.decimalprecision=c(a.decimals,"2")),Q&&(d.numberscalevalue.push(1),d.numberscaleunit.unshift(d.defaultnumberscale),H.numberscalevalue.push(1),
H.numberscaleunit.unshift(H.defaultnumberscale)),T&&(P.numberscalevalue.push(1),P.numberscaleunit.unshift(P.defaultnumberscale),g.numberscalevalue.push(1),g.numberscaleunit.unshift(g.defaultnumberscale)),this.Y[0]={yAxisLabelConf:H,dataLabelConf:d},this.Y[1]={yAxisLabelConf:P,dataLabelConf:g},this.paramLabels=d,this.param1=H,this.param2=P,this.paramLabels2=g);this.paramX={cacheStore:[],formatnumber:c(a.xformatnumber,e.formatnumber),formatnumberscale:c(a.xformatnumberscale,e.formatnumberscale),defaultnumberscale:K(a.xdefaultnumberscale,
e.defaultnumberscale),numberscaleunit:c(h,e.numberscaleunit.concat()),numberscalevalue:c(L,e.numberscalevalue.concat()),numberprefix:c(a.xnumberprefix,e.numberprefix),numbersuffix:c(a.xnumbersuffix,e.numbersuffix),decimalprecision:parseInt(c(a.xaxisvaluedecimals,a.xaxisvaluesdecimals,e.decimalprecision,2),10),forcedecimals:c(a.forcexaxisvaluedecimals,0),decimalseparator:e.decimalseparator,thousandseparator:e.thousandseparator,thousandseparatorposition:e.thousandseparatorposition.concat(),indecimalseparator:e.indecimalseparator,
inthousandseparator:e.inthousandseparator,scalerecursively:r,maxscalerecursion:U,scaleseparator:Ta};this.paramLegend=v(v({},e),{cacheStore:[],decimalprecision:parseInt(D(a.legendvaluedecimals,e.decimalprecision,2),10),forcedecimals:D(a.legendvalueforcedecimals,e.forcedecimals,0),formatnumberscale:c(a.legendvalueformatnumberscale,e.formatnumberscale),formatnumber:c(a.legendvalueformatnumber,e.formatnumber)});b.useScaleRecursively&&(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)==
(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length)||(this.paramX.scalerecursively=r=0);r&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:c(a.tickformatnumber,e.formatnumber),formatnumberscale:c(a.tickformatnumberscale,e.formatnumberscale),defaultnumberscale:K(a.tickdefaultnumberscale,e.defaultnumberscale),numberscaleunit:c(A,e.numberscaleunit.concat()),numberscalevalue:c(G,e.numberscalevalue.concat()),
numberprefix:c(a.ticknumberprefix,e.numberprefix),numbersuffix:c(a.ticknumbersuffix,e.numbersuffix),decimalprecision:parseInt(c(a.tickvaluedecimals,e.decimalprecision,"2"),10),forcedecimals:c(a.forcetickvaluedecimals,e.forcedecimals,0),decimalseparator:e.decimalseparator,thousandseparator:e.thousandseparator,thousandseparatorposition:e.thousandseparatorposition.concat(),indecimalseparator:e.indecimalseparator,inthousandseparator:e.inthousandseparator,scalerecursively:Q,maxscalerecursion:J,scaleseparator:Fa};
Q&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));this.timeConf={inputDateFormat:c(a.inputdateformat,a.dateformat,"mm/dd/yyyy"),outputDateFormat:c(a.outputdateformat,a.inputdateformat,a.dateformat,"mm/dd/yyyy"),days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),months:"January February March April May June July August September October November December".split(" "),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".split(" ")};
this.cleaneValueCacheStore={};this.percentStrCacheStore={}};A.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(a,d){var e=this.baseConf,g=this.csConf,h=this.chartAPI,m=D(a.scalerecursively,e.scalerecursively),A=D(a.maxscalerecursion,e.maxscalerecursion),z=n(a.scaleseparator,e.scaleseparator),w,v,H,N,L,G;d=D(d,this.Y.length);n(a.numberscaleunit)&&(w=a.numberscaleunit.split(","));n(a.numberscalevalue)&&(v=a.numberscalevalue.split(","));A||(A=
-1);if(n(a.thousandseparatorposition))for(H=a.thousandseparatorposition.split(","),N=H.length,G=l.thousandseparatorposition[0];N--;)(L=D(b(H[N])))?G=L:L=G,H[N]=L;e={cacheStore:[],formatnumber:c(a.formatnumber,e.formatnumber),formatnumberscale:c(a.formatnumberscale,e.formatnumberscale),defaultnumberscale:K(a.defaultnumberscale,e.defaultnumberscale),numberscaleunit:c(w,e.numberscaleunit).concat(),numberscalevalue:c(v,e.numberscalevalue).concat(),numberprefix:K(a.numberprefix,e.numberprefix),numbersuffix:K(a.numbersuffix,
e.numbersuffix),forcedecimals:c(a.forcedecimals,e.forcedecimals),decimalprecision:parseInt("auto"===a.decimals?g.decimalprecision:c(a.decimals,e.decimalprecision),10),decimalseparator:c(a.decimalseparator,e.decimalseparator),thousandseparator:c(a.thousandseparator,e.thousandseparator),thousandseparatorposition:c(H,e.thousandseparatorposition),indecimalseparator:K(a.indecimalseparator,e.indecimalseparator),inthousandseparator:K(a.inthousandseparator,e.inthousandseparator),scalerecursively:m,maxscalerecursion:A,
scaleseparator:z};h.useScaleRecursively&&(e.numberscalevalue&&e.numberscalevalue.length)==(e.numberscaleunit&&e.numberscaleunit.length)||(e.scalerecursively=m=0);h={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:parseInt(c(a.yaxisvaluedecimals,e.decimalprecision,2),10),
forcedecimals:c(a.forceyaxisvaluedecimals,e.forcedecimals),decimalseparator:e.decimalseparator,thousandseparator:e.thousandseparator,thousandseparatorposition:e.thousandseparatorposition.concat(),indecimalseparator:e.indecimalseparator,inthousandseparator:e.inthousandseparator,scalerecursively:m,maxscalerecursion:A,scaleseparator:z};m&&(e.numberscalevalue.push(1),e.numberscaleunit.unshift(e.defaultnumberscale),h.numberscalevalue.push(1),h.numberscaleunit.unshift(h.defaultnumberscale));this.Y[d]={dataLabelConf:e,
yAxisLabelConf:h}},percentValue:function(a){var b=this.percentStrCacheStore[a];void 0===b&&(b=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,b=this.percentStrCacheStore[a]=e(d(a,b,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+"%");return b},getCleanValue:function(a,c){var d=this.cleaneValueCacheStore[a];if(void 0===d){var e=this.baseConf,d=a+"";e._REGinthousandseparator&&
(d=d.replace(e._REGinthousandseparator,""));e._REGindecimalseparator&&(d=d.replace(e._REGindecimalseparator,"."));d=parseFloat(d);d=isFinite(d)?d:NaN;this.cleaneValueCacheStore[a]=d=isNaN(d)?null:c?b(d):d}return d},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];void 0===d&&(d=c.cacheStore[a]=h(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];
void 0===d&&(d=c.cacheStore[a]=h(a,c,!0));return d},xAxis:function(a){var b=this.paramX.cacheStore[a];void 0===b&&(b=this.paramX.cacheStore[a]=h(a,this.paramX,!0));return b},sYAxis:function(a){var b=this.Y[1],c,b=b&&b.yAxisLabelConf||this.baseConf;c=b.cacheStore[a];void 0===c&&(c=b.cacheStore[a]=h(a,b));return c},scale:function(a){var b=this.paramScale.cacheStore[a];void 0===b&&(b=this.paramScale.cacheStore[a]=h(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()},legendValue:function(a){var b=this.paramLegend.cacheStore[a];void 0===b&&(b=this.paramLegend.cacheStore[a]=h(a,this.paramLegend));return b},legendPercentValue:function(a){var b=this.percentStrCacheStore[a],c=this.paramLegend;void 0===b&&(b=isNaN(c.decimalprecision)?"2":c.decimalprecision,b=this.percentStrCacheStore[a]=e(d(a,b,c.forcedecimals),c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)+
"%");return b},getDateValue:function(a){var b,c,d;a=/^dd/.test(this.timeConf.inputDateFormat)&&a&&a.replace(/(\d{1,2})\/(\d{1,2})\/(\d{2,4})/,"$2/$1/$3")||a;b=new Date(a);c=b.getTime();!c&&a&&/\:/.test(a)&&(a=a.split(":"),c=D(a[0],0),d=D(a[1],0),a=D(a[2],0),c=23<c?24===c&&0===d&&0===a?c:23:c,d=59<d?59:d,a=59<a?59:a,b=new Date,b.setHours(c),b.setMinutes(d),b.setSeconds(a),c=b.getTime());return{ms:c,date:b}},getFormattedDate:function(a,b){var d="object"===typeof a&&a||new Date(a),e=this.timeConf,g=
c(b,e.outputDateFormat),h=d.getFullYear(),l=d.getMonth(),m=d.getDate(),n=d.getDay(),A=d.getMinutes(),z=d.getSeconds(),d=d.getHours(),A=9<A?""+A:"0"+A,z=9<z?""+z:"0"+z,d=9<d?""+d:"0"+d;g.match(/dnl/)&&(g=g.replace(/dnl/ig,e.days[n]));g.match(/dns/)&&(g=g.replace(/dns/ig,e.days[n]&&e.days[n].substr(0,3)));g.match(/dd/)&&(g=g.replace(/dd/ig,m));g.match(/mnl/)&&(g=g.replace(/mnl/ig,e.months[l]));g.match(/mns/)&&(g=g.replace(/mns/ig,e.months[l]&&e.months[l].substr(0,3)));g.match(/mm/)&&(g=g.replace(/mm/ig,
l+1));g.match(/yyyy/)&&(g=g.replace(/yyyy/ig,h));g.match(/yy/)&&(g=g.replace(/yy/ig,(h%1E3%100+"").replace(/^(\d)$/,"0$1")));g.match(/hh12/)&&(g=g.replace(/hh12/ig,d%12||12));g.match(/hh/)&&(g=g.replace(/hh/ig,d));g.match(/mn/)&&(g=g.replace(/mn/ig,A));g.match(/ss/)&&(g=g.replace(/ss/ig,z));g.match(/ampm/)&&(g=g.replace(/ampm/ig,12>d?"AM":"PM"));g.match(/ds/)&&(g=g.replace(/ds/ig,e.daySuffix[m]));return g}};A.prototype.constructor=A;h=function(a,b,h){if(null!==a){a=Number(a);var l=a+"",m,n,A,z,w;
m=1==b.formatnumberscale?b.defaultnumberscale:"";w=(w=l.split(".")[1])?w.length:b.forcedecimals?"2":"";if(1==b.formatnumberscale){l=a;n=b.numberscalevalue;a=b.numberscaleunit;m={};var v=b.defaultnumberscale;A=0;var H=[],N=[];if(b.scalerecursively){for(A=0;A<n.length;A++)if(z=D(n[A])||1E3,Math.abs(Number(l))>=z&&A<n.length-1)v=l%z,l=(l-v)/z,0!==v&&(H.push(v),N.push(a[A]));else{H.push(l);N.push(a[A]);break}H.reverse();N.reverse();m.value=H;m.scale=N}else{if(n.length===a.length)for(A=0;A<n.length;A++)if(z=
D(n[A])||1E3,Math.abs(Number(l))>=z)v=a[A]||"",l=Number(l)/z;else break;m.value=l;m.scale=v}n=m;a=l=n.value;m=n.scale}if(b.scalerecursively&&0!==b.formatnumberscale&&"0"!==b.formatnumberscale){h=n.value;n=n.scale;a=-1==b.maxscalerecursion?h.length:Math.min(h.length,b.maxscalerecursion);if(1==b.formatnumber)for(l="",z=0;z<a;z++)m=0===z?h[z]:Math.abs(h[z]),A=m+"",z==a-1&&(A=d(m,c(b.decimalprecision,w),b.forcedecimals)),l=l+e(A,b.decimalseparator,b.thousandseparator,b.thousandseparatorposition)+n[z]+
(z<a-1?b.scaleseparator:"");else for(l="",z=0;z<a;z++)l=l+(0===z?h[z]:Math.abs(h[z])+"")+n[z]+(z<a-1?b.scaleseparator:"");l=(b.numberprefix||"")+l+(b.numbersuffix||"")}else 1==b.formatnumber&&(l=d(a,c(b.decimalprecision,w),b.forcedecimals),l=e(l,b.decimalseparator,b.thousandseparator,b.thousandseparatorposition,h)),l=(b.numberprefix||"")+l+m+(b.numbersuffix||"");return l}};return A}();d.extend(d.core,{formatNumber:function(a,b){b=b&&A(b)||{};var c=L(b),d;G[c]?d=G[c]:G[c]=d=new m.NumberFormatter(b,
{useScaleRecursively:!0});return d.dataLabels(a)}},!1);d.extend(d.core,{formatNumber:function(a,b,c,l){c=c&&A(c)||{};var n=this.jsVars.instanceAPI||{},z=n.numberFormatter,p;""===L(c)?z?p=z:(z=this.getChartData(d.dataFormats.JSON,!0),z=z.data||{},z=z.chart||{},c=L(z),G[c]?p=G[c]:G[c]=p=new m.NumberFormatter(z,n)):(z=this.getChartData(d.dataFormats.JSON,!0),z=z.data||{},z=z.chart||{},z=v(v({},z),c),c=L(z),G[c]?p=G[c]:G[c]=p=new m.NumberFormatter(z,n));switch((b&&b.toLowerCase?b:"").toLowerCase()){case "yaxisvalues":a=
p.yAxis(a,l);break;case "xaxisvalues":a=p.xAxis(a);break;case "scale":a=p.scale(a);break;default:a=p.dataLabels(a,l)}return a}},!0)}]);
FusionCharts.register("module",["private","modules.renderer.js-dom",function(){var d=this.hcLib,m=this.window,D=m.document,v=d.extend2,n="ontouchstart"in m;(function(c){var d=function(){var b={},a;b.pointerdrag={start:["mousedown"],end:["mouseup"],onStart:["mousemove"],postHandlers:{},preHandlers:{}};b.pointerhover={start:["mouseover"],end:["mouseout"]};b.click={start:["click"]};b.escape={start:["keydown"],preHandlers:{start:function(a){a=a||m.event;return a.keyCode&&27===a.keyCode?!0:!1}}};n&&(a=
b.pointerdrag,a.start.push("touchstart"),a.end.push("touchend"),a.onStart.push("touchmove"),a.postHandlers.onStart=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1},a=b.click,a.start.push("touchstart"));return b}(),b;b=v({},d);c.dem=new function(){var c={},a={},d=D.addEventListener?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},n=D.removeEventListener?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent("on"+b,c)},L=function(a,
c,d){var g=[],n,p,z;z=b[c];d.start=function(b){b=b||m.event;for(var c=z.onStart,g=z.end,h=[],n=[],p=c&&c.length||0;p--;)h.push(A(a,c[p],d,"onStart"));for(p=g&&g.length||0;p--;)n.push(A(a,g[p],d,"end"));d.startUn=d.startUn?d.startUn.concat(h):h;d.endUn=d.endUn?d.endUn.concat(n):n;d.state="start";d.closure(b)};d.onStart=function(a){a=a||m.event;d.state="on";if(d.gDef&&d.gDef.preHandlers&&"function"===typeof d.gDef.preHandlers.onStart)d.gDef.preHandlers.onStart(a);d.closure(a);if(d.gDef&&d.gDef.postHandlers&&
"function"===typeof d.gDef.postHandlers.onStart)d.gDef.postHandlers.onStart(a)};d.end=function(a){a=a||m.event;for(var b=d.startUn,c=d.endUn,e=b&&b.length||0;e--;)b[e]();delete d.startUn;d.startUn=[];for(e=c&&c.length||0;e--;)c[e]();delete d.endUn;d.endUn=[];d.state="end";d.closure(a)};if(z)for(c=z.start,p=c.length;p--;)(n=c[p])&&g.push(A(a,n,d,"start"));return g},A=function(a,b,c,g){g=g||"closure";d(a,b,c[g]);return function(){n(a,b,c[g])}},g=function(a){return function(b){b=b||m.event;a.handler.call(a.context||
a.elem,{data:a.data,type:a.type,state:a.state,isGesture:a.isGesture,target:b.target||b.srcElement,originalEvent:b})}};return{listen:function(d,h,l,m,n){var p=this;h="string"===typeof h?h.split(" "):h;var z=h.length,t=[],v=function(a,b,c){t.push(function(){p.unlisten(a,b,c)})},q,G,K,ia,wa;if(d.ownerDocument&&d.ownerDocument===D)for(;z--;)G=h[z],ia=Boolean(b[G]),wa="function"===typeof l?l:l[z],K={handler:wa,elem:d,type:G,isGesture:ia,gDef:ia?b[G]:null,data:m,context:n,start:[],end:[],links:{prev:null,
next:null}},K.closure=g(K),ia?((q=a[G])||(q=a[G]=[]),q.push(K),L(d,G,K)):((q=c[G])||(q=c[G]=[]),q.push(K),A(d,G,K)),v(d,G,wa);else for(;z--;)G=h[z],wa="function"===typeof l?l:l[z],K={handler:wa,elem:d,type:G,isGesture:ia,data:m,context:n,start:[],end:[],links:{prev:null,next:null}},K.closure=g(K),(q=c[G])||(q=c[G]=[]),q.push(K),A(d,G,K),v(d,G,wa);return{unlisten:function(){for(var a=t.length;a--;)t[a]();t.length=0;t=null}}},unlisten:function(d,g,l){var m,A=!1,p,z;if(Boolean(b[g]))for(p=(m=a[g])&&
m.length||0;p--;){if(z=m[p],z.handler===l&&z.elem===d){var A=d,t=void 0,v=void 0,q=void 0,t=void 0;if(t=b[g])for(t=t.start,q=t.length;q--;)(v=t[q])&&n(A,v,z.start);m.splice(p,1);A=!0}}else for(p=(m=c[g])&&m.length||0;p--;)z=m[p],z.handler===l&&z.elem===d&&(n(d,g,z.closure),m.splice(p,1),A=!0);return A},fire:function(a,b,d,g){var m;if(a.ownerDocument&&a.ownerDocument===D)D.createEvent?(m=D.createEvent("HTMLEvents"),m.initEvent(b,!0,!0),d&&(d.originalEvent?d.originalEvent=m:v(m,d)),"function"===typeof a[b]&&
a[b].call(a),a.dispatchEvent(m)):(m=D.createEventObject(),m.eventType=b,d&&(d.originalEvent?d.originalEvent=m:v(m,d)),"function"===typeof a[b]&&a[b].call(a),a.fireEvent("on"+b,m)),g&&!m.returnValue&&g(m);else for(g=(b=c[b])&&b.length||0;g--;)m=b[g],m.elem===a&&m.closure(d)}}}})(d||m);(function(c){function d(a,b){var c="";D.defaultView&&D.defaultView.getComputedStyle?c=D.defaultView.getComputedStyle(a,"").getPropertyValue(b):a.currentStyle&&(b=b.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),
c=a.currentStyle[b]);c=parseInt(c,10);return isNaN(c)?0:c}function b(b,c,d,g,e,h,l,m){var n=c/40,p=a[h||"linear"](g-d,n),v=0,t=function(){var a;v<n?(a=p[v],b.style[e]=d+a+m,z&&"opacity"===e&&(a=100*Number(a),b.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+a+")"),v+=1,setTimeout(t,40)):l&&l()};m=m||"";setTimeout(t,40)}var n={width:{suffix:"px"},height:{suffix:"px"},opacity:!0,top:{suffix:"px"},left:{suffix:"px"}},a={linear:function(a,b){for(var c=[],d=a/b,e=0;e<b;e+=1)c[e]=d*(e+1);
return c}},z=/msie/i.test(m.navigator.userAgent)&&!m.opera;c.danimate=v({animate:function(a,c,m,g,e){g={};var h={},l=function(){v+=1;v===z&&"function"===typeof e&&e()},z=0,v=0,p,D;if(40>m){for(D in c)a.style[D]=c[D];e&&e()}else for(D in c)n[D]&&(z+=1,g[D]=c[D],h[D]=d(a,D),p="object"===typeof n[D]&&n[D].suffix,b(a,m,h[D],g[D],D,"linear",l,p))}},{})})(d||m)}]);
FusionCharts.register("module",["private","modules.renderer.js-colormanager",function(){var d=this.hcLib,m=d.pluckNumber,D=d.graphics.getDarkColor,v=d.graphics.getLightColor,n="AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),c="8BBA00 F6BD0F FF654F AFD8F8 FDB398 CDC309 B1D0D2 FAD1B9 B8A79E D7CEA5 C4B3CE E9D3BE EFE9AD CEA7A2 B2D9BA".split(" "),K=d.defaultPaletteOptions={paletteColors:[n,
n,n,n,n],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:["","","","",""],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:["","","","",""],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"]},n=d.colorManager=function(b,c){var a=b.chart,n=d.extend2({},K),G=c.defaultPaletteOptions||{},L;n||(n={});for(L in G)n[L]=G[L];n=this.paletteOptions=n;G=this.themeEnabled=a.palettethemecolor;this.paletteIndex=(0<a.palette&&6>a.palette?a.palette:m(c.paletteIndex,1))-1;this.iterator=0;this.paletteColors=n.paletteColors[this.themeEnabled?0:
this.paletteIndex];L=a.palettecolors;void 0!==L&&null!==L&&""!==a.palettecolors&&(this.paletteColors=a.palettecolors.split(/\s*\,\s*/));this.paletteLen=this.paletteColors.length;this.useFlatColors=m(a.useflatdataplotcolor,c.useFlatColor,0);G&&(this.paletteIndex=5,n.bgColor.push(v(G,35)+","+v(G,10)),n.bgAngle.push(270),n.bgRatio.push("0,100"),n.bgAlpha.push("50,50"),n.canvasBgColor.push("FFFFFF"),n.canvasBgAngle.push(0),n.canvasBgAlpha.push("100"),n.canvasBgRatio.push(""),n.canvasBorderColor.push(D(G,
80)),n.canvasBorderAlpha.push(100),n.showShadow.push(1),n.divLineColor.push(D(G,20)),n.divLineAlpha.push(40),n.altHGridColor.push(v(G,20)),n.altHGridAlpha.push(15),n.altVGridColor.push(v(G,80)),n.altVGridAlpha.push(10),n.anchorBgColor.push("FFFFFF"),n.toolTipBgColor.push("FFFFFF"),n.toolTipBorderColor.push(D(G,80)),n.baseFontColor.push(G.split&&G.split(",")[0]),n.borderColor.push(D(G,60)),n.borderAlpha.push(50),n.legendBgColor.push("FFFFFF"),n.legendBorderColor.push(D(G,80)),n.plotGradientColor.push("FFFFFF"),
n.plotBorderColor.push(D(G,85)),n.plotFillColor.push(D(G,85)),n.bgColor3D.push("FFFFFF"),n.bgAlpha3D.push("100"),n.bgAngle3D.push(90),n.bgRatio3D.push(""),n.canvasBgColor3D.push(v(G,20)),n.canvasBaseColor3D.push(v(G,40)),n.divLineColor3D.push(D(G,20)),n.divLineAlpha3D.push(40),n.legendBgColor3D.push("FFFFFF"),n.legendBorderColor3D.push(D(G,80)),n.toolTipbgColor3D.push("FFFFFF"),n.toolTipBorderColor3D.push(D(G,80)),n.baseFontColor3D.push(G.split&&G.split(",")[0]),n.anchorBgColor3D.push("FFFFFF"),n.tickColor&&
n.tickColor.push(D(G,90)),n.trendDarkColor&&n.trendDarkColor.push(D(G,90)),n.trendLightColor&&n.trendLightColor.push(v(G,n.TrendLightShadeOffset)),n.msgLogColor&&n.msgLogColor.push(v(G,80)),n.dialColor&&n.dialColor.push(D(G,95)+",FFFFFF,"+D(G,95)),n.dialBorderColor&&n.dialBorderColor.push(D(G,95)+",FFFFFF,"+D(G,95)),n.pivotColor&&n.pivotColor.push(v(G,95)+",FFFFFF,"+v(G,95)),n.pivotBorderColor&&n.pivotBorderColor.push(D(G,95)+",FFFFFF,"+D(G,95)),n.pointerBorderColor&&n.pointerBorderColor.push(D(G,
75)),n.pointerBgColor&&n.pointerBgColor.push(D(G,75)),n.thmBorderColor&&n.thmBorderColor.push(D(G,90)),n.thmFillColor&&n.thmFillColor.push(v(G,55)),n.cylFillColor&&n.cylFillColor.push(v(G,55)),n.periodColor&&n.periodColor.push(v(G,10)),n.winColor&&n.winColor.push("666666"),n.lossColor&&n.lossColor.push("CC0000"),n.drawColor&&n.drawColor.push("666666"),n.scorelessColor&&n.scorelessColor.push("FF0000"),n.gridColor&&n.gridColor.push(v(G,30)),n.categoryBgColor&&n.categoryBgColor.push(v(G,10)),n.dataTableBgColor&&
n.dataTableBgColor.push(v(G,10)),n.gridResizeBarColor&&n.gridResizeBarColor.push(D(G,90)),n.scrollBarColor&&n.scrollBarColor.push(v(G,50)))};n.prototype={getColor:function(b){return this.paletteOptions[b][this.paletteIndex]},getPlotColor:function(b){var c=this.paletteColors;b=this.useFlatColors?this.getColor("plotFillColor"):c[b%this.paletteLen];b||(this.iterator===this.paletteLen&&(this.iterator=0),b=c[this.iterator],this.iterator+=1);return b},parseColorMix:function(b,c){var a=[],d,n,m,A,g,e,h,
l,N,w;c=c.replace(/\s/g,"");c=c.toLowerCase();if(""===c||null===c||void 0===c)a=[b];else for(n=c.split(","),m=b.split(","),A=Math.max(n.length,m.length,1),g=n[0],e=m[0],N=/[\{\}]/ig,w=0;w<A;w++)h=(n[w]||g).replace(N,""),l=m[w]||e,"color"==h?a.push(l):"light"==h.substr(0,5)?(d=h.indexOf("-"),d=-1==d?1:h.substr(d+1,h.length-d),d=100-d,a.push(v(l,d))):"dark"==h.substr(0,4)?(d=h.indexOf("-"),d=-1==d?1:h.substr(d+1,h.length-d),d=100-d,a.push(D(l,d))):a.push(h);return a},parseAlphaList:function(b,c){var a=
b.split(","),d=[],n,v=100,A;for(A=0;A<c;A++)n=m(a[A]),void 0!==n&&null!==n&&(v=n),d[A]=v;return d.join()},parseRatioList:function(b,c){var a=b.split(","),d=[],n=0,m,A;for(A=0;A<c;A++)m=a[A],m=isNaN(m)||void 0===m?0:Math.abs(Number(m)),m=100<m?100:m,d[A]=m,n+=m;n=100<n?100:n;if(a.length<c)for(A=a.length;A<c;A++)d[A]=(100-n)/(c-a.length);d[-1]=0;return d.join()}};n.prototype.constructor=n;d.defaultGaugePaletteOptions={paletteColors:[c,c,c,c,c],bgColor:["CBCBCB,E9E9E9","CFD4BE,F3F5DD","C5DADD,EDFBFE",
"A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["50,50","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["555555","60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendDarkColor:["333333","60634E","025B6A","A15E01","68001B"],trendLightColor:["f1f1f1","F3F5DD",
"EDFBFE","FFF5E8","FFD1DD"],pointerBorderColor:["545454","60634E","415D6F","845001","68001B"],pointerBgColor:["545454","60634E","415D6F","845001","68001B"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["545454","545454","415D6F","845001","68001B"],canvasBorderAlpha:[100,100,100,90,100],altHGridColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"],altHGridAlpha:[50,
35,10,20,15],altVGridColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],altVGridAlpha:[10,20,10,15,10],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],legendBgColor:["ffffff","ffffff","ffffff","ffffff","ffffff"],legendBorderColor:["545454","545454","415D6F","845001","D55979"],plotFillColor:["767575","D8DCC5","99C4CD","DEC49C","FEC1D0"],plotBorderColor:["999999","8A8A8A","6BA9B6","C1934D","FC819F"],msgLogColor:["717170","7B7D6D","92CDD6","965B01","68001B"],
TrendLightShadeOffset:30}}]);
FusionCharts.register("module",["private","modules.renderer.js-annotations",function(){var d=this,m=d.core,D=d.hcLib,v=d.window,n=/msie/i.test(v.navigator.userAgent)&&!v.opera,c=D.addEvent,K=D.removeEvent,b=D.hasTouch,H=v.Number,a=b?6:5,z="rgba(192,192,192,"+(n?.002:1E-6)+")",n=v.Math,G=n.min,L=n.max,A=n.sin,g=n.cos,e=n.PI,h=e/180,l=d.extend,N=D.pluck,w=D.pluckNumber,p=D.graphics.convertColor,R=D.getValidValue,t=D.parseUnsafeString,fa=D.setImageDisplayMode,q=D.graphics.parseColor,da=D.setLineHeight,
V=D.getMouseCoordinate,ia={style:{}},wa=D.toRaphaelColor,ja=function(a,b){return{start:-b,end:-a,angle:a-b}},aa=function(a,b,c,d,e){var g,h,n=0,m=0;h=void 0===b||null===b?1:b;var l;if(!a||!a.toString)return{value:c,hasDynamicMacros:!1};a=a.toString();a=a.toLowerCase().replace(/\s/g,"");if(c=a.match(/^[\+\-]?\d+(\.\d+)?|[\+\-]\d+(\.\d+)?/g)){for(b=0;b<c.length;b+=1)n+=Number(c[b])||0;n*=h}if(c=a.match(/^[\+\-]?(\$[a-z0-9\.]+)|[\+\-](\$[a-z0-9\.]+)/g))for(b=0;b<c.length;b+=1){g=c[b];var p=d,q=e,A=g.split("."),
t=void 0,z=void 0,v=0;for(h=void 0;t=A.shift();)switch(typeof(z=p[t])){case "object":p=z[t];break;case "function":z=z(A,q),"-"===g.charAt()&&(z*=-1),h=!0;default:v+=H(z)||0,A.length=0}g=v;h&&(l=!0);m+=g}if(c=a.match(/^[\+\-]?\$\d+(\.\d+)?|[\+\-]\$\d+(\.\d+)?/g))for(b=0;b<c.length;b+=1)m=m+Number(c[b].replace("$",""))||0;return{value:n+m,hasDynamicMacros:l}},ka=function(a,b,c){if(!b.removed){b=b.data("annotation");var e=b.getRenderer(),g=V(e.container,c),h=g.annotationOptions=b.options,n=g.groupOptions=
b.group.options;g._shape=b;"id"in h&&(g.annotationId=h.id);"id"in n&&(g.groupId=n.id);d.raiseEvent(a,g,e.fusionCharts,c)}},Y,ca,X;ca=function(a,b,c,d,e){this.options=a;this.attrs={};this.css={};this.bounds={};this.shared=b;this.snaps=c||{};this.annotations=e;this.items=b=[];this._idstore=d;a.id&&(this._id=a.id,d[a.id]=this);if(a=a.items)for(d=0,c=a.length;d<c;d+=1)b.push(new X(a[d],this))};l(ca.prototype,{scaleImageX:1,scaleImageY:1,scaleText:1,scaleValue:1,scaleValueComplement:1,scaleX:1,scaleY:1});
ca.prototype.setup=function(){var a=this.options,b=this.shared,c=this.getRenderer();c&&(this.isBelow=0!==w(a.showbelow,a.showbelowchart,b.showbelow),this.useTracker=!this.isBelow&&c.layers.tracker&&this.shared.useTracker,this.raiseOwnEvents=b.interactionevents)};ca.prototype.scale=function(){var a=this.options,b=this.shared,c=this.bounds,d=this.snaps,e=this.getRenderer(),g=b.rootxscale,h=b.rootyscale,n=c.xs=w(a.xscale,b.xscale,100)/100,m=c.ys=w(a.yscale,b.yscale,100)/100,l,p,q;e&&(this.scaleText*=
m,this.scaleImageX*=n,this.scaleImageY*=m,0!==w(a.autoscale,b.autoscale)&&(n=w(a.origw,b.origw),m=w(a.origh,b.origh),n=e.chartWidth/n,m=e.chartHeight/m,e=0!==w(a.constrainedscale,b.constrainedscale),l=n<m?n:m,p=e?l:n,q=e?l:m,this.scaleValue=ca.prototype.scaleValue*l,this.scaleValueComplement=ca.prototype.scaleValueComplement*(e?l:n<m?m:n),this.scaleX=ca.prototype.scaleX*p,this.scaleY=ca.prototype.scaleX*q,c.xs*=p,c.ys*=q,g*=p,h*=q,"1"==N(a.scaletext,b.scaletext)&&(this.scaleText=ca.prototype.scaleText*
q),"1"==N(a.scaleimages,b.scaleimages)&&(this.scaleImageX=ca.prototype.scaleImageX*p,this.scaleImageY=ca.prototype.scaleImageY*q)),c.x=aa(N(a.x,a.xpos),g,0,d,this.isBelow).value+w(a.grpxshift,b.grpxshift,0),c.y=aa(N(a.y,a.ypos),h,0,d,this.isBelow).value+w(a.grpyshift,b.grpyshift,0),this.xshift=w(a.xshift,b.xshift,0),this.yshift=w(a.yshift,b.yshift,0))};ca.prototype.draw=function(){var a=this.getRenderer(),b=this.options,c=this.bounds,d=this.items,e=a&&a.layers.dataset,g=this.wrapper;if(a){g||(this.wrapper=
g=a.paper.group("annotations"),e&&(this.isBelow?g.insertBefore(e):g.insertAfter(a.layers.datalabels||e)));this.wrapper.attr({x:0,y:0,visibility:w(b.visible,1)?"":"hidden"}).translate(c.x,c.y);b=0;for(c=d.length;b<c;b+=1)a=d[b],a.scale(!0),a.queueDraw?a.queue():(a.setup(),a.draw());return this}};ca.prototype.destroy=function(){for(var a=this.wrapper,b=this.items,c;c=b.shift();)c.destroy();a&&(this.wrapper=a.remove());this._idstore[this._id]===this&&delete this._idstore[this._id]};ca.prototype.addItem=
function(a,b){var c;this.items.push(c=new X(a,this,this._idstore));b&&null!==this.getRenderer()&&(c.scale(),c.setup(),c.draw());return c};ca.prototype.removeItem=function(a){for(var b=this.items,c=b.length;c--;)if(a===b[c]._id)return b.splice(c,1)};ca.prototype.getRenderer=function(){return this.annotations&&this.annotations.getRenderer()||null};X=function(a,b){var c=!1,d;this.options=a;this.group=b;this.args=[];this.attrs={};this.attrsTracker={};this.style={};this.bounds={};this._idstore=b._idstore;
a.id&&(this._id=a.id,b._idstore[a.id]=this);this.type=a.type&&a.type.toLowerCase&&a.type.toLowerCase();for(d in X.eventNames)"function"===typeof a[d]&&(this[d]=a[d],c=!0);this.hasEvents=c;"function"===typeof a.onload&&(this.onload=a.onload)};d.extend(X.prototype,{getAbsoluteBounds:function(){var a=this.bounds,b=a.x1,c=a.y1,d=a.x2,e=a.y2,g=G(b,d),h=G(c,e),b=L(b,d)-g,c=L(c,e)-h;return{x:g,width:b,y:h,height:c,r:a.r,unscaled:{width:b/a.xs,height:c/a.ys}}},queue:function(){this.group.annotations.shapesToDraw.push(this)},
scale:function(a){var b=this,c=b.group,d=c.bounds,e=b.bounds,g=b.options,h=c.snaps,n=N(g.x,g.xpos),m=N(g.y,g.ypos),l=N(g.tox,g.toxpos),p=N(g.toy,g.toypos),q=e.xs=d.xs,d=e.ys=d.ys,A=w(g.xshift,c.xshift,0),t=w(g.yshift,c.yshift,0),z;z=function(d,e,g,h){d=aa(d,e,g,h,c.isBelow);d.hasDynamicMacros&&a&&(b.queueDraw=!0);return d.value};b.hasDimension=!0;b.hasDimensionX=!0;b.hasDimensionY=!0;e.x1=z(n,q,0,h)+A;void 0===l?(b.hasDimension=!1,b.hasDimensionX=!1,e.x2=e.x1):e.x2=z(l,q,0,h)+A;e.y1=z(m,d,0,h)+t;
void 0===p?(b.hasDimension=!1,b.hasDimensionY=!1,e.y2=e.y1):e.y2=z(p,d,0,h)+t;X.angularShapeTypes[b.type]&&(e.angles=ja(z(g.startangle,1,0,h),z(g.endangle,1,360,h)));e.r=z(g.radius,c.scaleValue,0,h)},setup:function(){var a=this.options,b=this.group,c=b.options,d=this.attrs,e=this.style,g=b.scaleValue,h=w(c.fillalpha,c.alpha,100),n=this.fillAlpha=N(a.fillalpha,a.alpha,h),m=this.fillColor=N(a.fillcolor,a.color,c.color),q=this.fillPattern=N(a.fillpattern&&a.fillpattern.toLowerCase&&a.fillpattern.toLowerCase(),
c.fillpattern&&c.fillpattern.toLowerCase&&c.fillpattern.toLowerCase()),A=this.bordered=w(a.showborder,X.borderedShapeTypes[this.type],!!R(a.bordercolor)),v=this.borderColor=N(a.bordercolor,c.bordercolor,m),h=this.borderAlpha=w(a.borderalpha,a.alpha,c.borderalpha,h),D=this.dashed=!!w(a.dashed,0),H=w(a.borderthickness,a.thickness,2)*g;this.link=N(a.link,c.link);this.shadow="1"==N(a.showshadow,c.showshadow);void 0===m&&(m=X.borderedShapeTypes[this.type]&&"none"||"#ff0000",void 0===v&&(v="#ff0000"));
A&&H?(d.stroke=p(v,h),d["stroke-linecap"]="round",d["stroke-width"]=H,D&&(d["stroke-dasharray"]=[w(a.dashlen,5)*g,w(a.dashgap,3)*g])):d.stroke="none";this.fillOptions={gradientUnits:"objectBoundingBox",color:m,alpha:n,ratio:N(a.fillratio,c.fillratio),angle:360-w(a.fillangle,0),radialGradient:"radial"===q};this.link&&(e.cursor="pointer",e._cursor="hand");d.visibility=w(a.visible,1)?"":"hidden";this.useTracker=b.useTracker;this.toolText=t(N(a.tooltext,c.tooltext));if(this.useTracker||this.link||this.toolText)l(this.attrsTracker,
{stroke:z,fill:z}),this.link&&(this.attrsTracker.ishot=+new Date);this.raiseOwnEvents=b.raiseOwnEvents},draw:function(){var a=this.getRenderer(),b=this.type,d=this.attrs,e=this.style,g=a&&a.paper,h=X.types[b]&&X.types[b].call&&X.types[b].call(this,a),n=X.imageShapeTypes[h],m=X.textShapeTypes[h],l=n||m||X.trackerShapeTypes[h],p=this.link||this.toolText,q=this.wrapper,b=this.tracker,A=a&&a.layers.tracker||this.group.wrapper,t=!1,z=b||q,v=X.eventNames,w=X.ownEvents,D,H;if(a){if(h){if(q)if(q.elemType!==
h){if(this.ownEventsAttached){for(H in w)z["un"+H].apply(q,w[H]);this.ownEventsAttached=!1}q=q.remove()}else if(this.hasEvents)for(D in v)(H=this[D])&&H.eventAttached&&(K(z.node,v[D],H),H.eventAttached=!1);n||(d.fill=wa(this.fillOptions));q?q.attr(d).css(e):(this.args.push(this.group.wrapper),q=this.wrapper=g[h].apply(g,this.args).attr(d).css(e),q.elemType=h,q.data("annotation",this),t=!0,this.args.pop());!this.shadow||this.shadowAdded||n||m?q.shadow(this.shadowAdded=!1):q.shadow(this.shadowAdded=
!0,L(this.borderAlpha,this.fillOptions.alpha)/100);p?this.useTracker&&(b||(this.args.push(A),b=this.tracker=l?g.rect(0,0,0,0,0,A):g[h].apply(g,this.args),this.args.pop()),b.attr(d).attr(this.attrsTracker)):b&&(b=b.remove());z=b||q;if(this.raiseOwnEvents&&!this.ownEventsAttached){for(H in w)z[H].apply(q,w[H]);this.ownEventsAttached=!0}this.link&&z.click(a.linkClickFN,this);this.toolText&&(z.tooltip(this.toolText||""),this.group.wrapper.trackTooltip(!0));if(this.hasEvents)for(D in v)(H=this[D])&&!H.eventAttached&&
(c(z.node,v[D],H,this),H.eventAttached=!0);n||(b&&l&&(a=q.getBBox(),b.attr({x:a.x,y:a.y,width:a.width,height:a.height})),t&&this.onload&&this.onload(d))}return this}},destroy:function(){var a=this.wrapper,b=this.tracker,c=b||a,d=X.eventNames,e=X.ownEvents,g,h;if(a){if(this.ownEventsAttached){for(h in e)c["un"+h].apply(a,e[h]);this.ownEventsAttached=!1}if(this.hasEvents)for(g in d)(h=this[g])&&h.eventAttached&&(K(c.node,d[g],h),h.eventAttached=!1);b&&(this.tracker=b.remove());this.wrapper=a.remove()}this._idstore[this._id]===
this&&delete this._idstore[this._id]},getRenderer:function(){return this.group&&this.group.getRenderer()||null}});d.extend(X,{imageShapeTypes:{image:!0},angularShapeTypes:{circle:!0,arc:!0},textShapeTypes:{text:!0},trackerShapeTypes:{image:!0,text:!0},borderedShapeTypes:{path:!0,line:!0},eventNames:{onmouseover:b?"touchstart":"mouseover",onmouseout:"mouseout",onmousemove:b?"touchmove":"mousemove",onclick:"click"},ownEvents:{click:[function(a){ka("annotationClick",this,a)}],hover:[function(a){ka("annotationRollOver",
this,a)},function(a){ka("annotationRollOut",this,a)}]},textAlignOptions:{left:"start",right:"end",center:"middle"},textVerticalAlignOptions:{top:"bottom",middle:"middle",bottom:"top"},textRotationOptions:{0:"0",1:"270",right:"90",cw:"90",left:"270",ccw:"270"},types:{rectangle:function(){var a=this.args,b=this.attrs,c=this.getAbsoluteBounds(),d=.5*c.width;c.r>d&&(c.r=d);a[0]=b.x=c.x;a[1]=b.y=c.y;a[2]=b.width=c.width;a[3]=b.height=c.height;a[4]=b.r=c.r;return"rect"},line:function(){var b=this.attrs,
c=this.bounds;this.args[0]=b.path=["M",c.x1,c.y1,"L",c.x2,c.y2];1===b["stroke-width"]&&(b["shape-rendering"]="crisp");b["stroke-width"]<a&&(this.attrsTracker["stroke-width"]=a);this.bordered&&this.dashed&&(this.attrsTracker["stroke-dasharray"]="solid");return"path"},path:function(){var a=this.attrs,b=this.bounds;this.args[0]=a.path=this.options.path;a.transform=["T",b.x1,b.y1,"S",b.xs,b.ys,b.x1,b.y1];1===a["stroke-width"]&&(a["shape-rendering"]="crisp");return"path"},polygon:function(){var a=this.args,
b=this.attrs,c=this.options,d=this.bounds,e=this.group,g=e.snaps;a[0]=aa(c.sides,1,5,g,e.isBelow).value;a[1]=d.x1;a[2]=d.y1;a[3]=d.r;a[4]=aa(c.startangle,1,0,g,e.isBelow).value;a[5]=0;b.polypath=a.slice(0);return"polypath"},circle:function(a){var b=this.args,c=this.attrs,d=this.options,n=this.bounds,m=a.chartWidth,l=a.chartHeight,q=this.group.scaleValueComplement,p=this.group.snaps,t=n.angles,z=this.group;a=n.r;N(d.radius)||(n.r=m<l?m*n.xs:l*n.ys,n.r=a=.3*n.r);d=aa(d.yradius,q,a,p,z.isBelow).value;
this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial");"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=.5);m=t.angle%360;if(!m&&a===d)return b[0]=c.cx=n.x1,b[1]=c.cy=n.y1,b[2]=c.r=n.r,"circle";m||(t.start-=.001);l=t.start*h;m=t.end*h;t=t.angle*h;q=n.x1;p=n.y1;n=q+g(l)*a;l=p+A(l)*d;q+=g(m)*a;m=p+A(m)*d;b[0]=c.path=["M",n,l,"A",a,d,0,0,t>=e?0:1,q,m,"Z"];return"path"},arc:function(a){var b=this.options,c=this.args,d=this.attrs,e=this.bounds,g=a.chartWidth;
a=a.chartHeight;var n=this.group,m=n.scaleValue,l=e.angles;N(b.radius)||(e.r=g<a?g*e.xs:a*e.ys,e.r*=.3);e.innerR=aa(b.innerradius,m,.8*e.r,this.group.snaps,n.isBelow).value;e.innerR>e.r&&(e.innerR+=e.r,e.r=e.innerR-e.r,e.innerR-=e.r);this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial");"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=.5);c[0]=e.x1;c[1]=e.y1;c[2]=e.r;c[3]=e.innerR;c[4]=l.start*h;c[5]=l.end*h;d.ringpath=c.slice(0);return"ringpath"},text:function(a){var b=
this.args,c=this.style,d=this.attrs,e=this.group,g=this.bounds,h=this.options,n=this.getAbsoluteBounds(),m=N(h.align,e.options.textalign,"center").toLowerCase(),p=N(h.valign,e.options.textvalign,"middle").toLowerCase(),A=t(N(h.text,h.label)),z=a.logic.smartLabel,v=w(h.wrap,e.options.wraptext,1),D,H,G=N(h.rotatetext,e.options.rotatetext,"0").toLowerCase(),G=X.textRotationOptions[G],K="0"!==G?"y":"x",L=a.options.orphanStyles;a=l({},L.defaultStyle.style||{});L=e.id&&L[e.id.toLowerCase()]||ia;a=l(a,L.style);
var L=parseFloat(a.fontSize),R=N(h.font,e.options.font,a.fontFamily),e=w(h.fontsize,e.options.fontsize,L)*e.scaleText;v&&(D=w(h.wrapwidth,this.hasDimensionX?n.width/g.xs:void 0),H=w(h.wrapheight,this.hasDimensionY?n.height/g.ys:void 0),D&&(D*=g.xs),H&&(H*=g.ys));c.fontFamily=R;c.fontWeight=w(h.bold,h.isbold,0)?"bold":"normal";w(h.italic,h.isitalic,0)&&(c.fontStyle="italic");h.bgcolor&&(!d["text-bound"]&&(d["text-bound"]=[]),d["text-bound"][0]=q(h.bgcolor));h.bordercolor&&(!d["text-bound"]&&(d["text-bound"]=
[]),d["text-bound"][1]=q(h.bordercolor),d["text-bound"][2]=w(h.borderthickness,1),d["text-bound"][3]=w(h.padding,1));h.fontcolor&&(d.fill=q(h.fontcolor),this.fillOptions&&(this.fillOptions.color=d.fill));c.fontSize=e+"px";e===L?c.lineHeight=a.lineHeight:da(c);d["text-anchor"]=X.textAlignOptions[m]||X.textAlignOptions.center;z.setStyle(c);c=z.getSmartText(A,D,H,!1);d["vertical-align"]=X.textVerticalAlignOptions[p]||X.textVerticalAlignOptions.middle;d["text-anchor"]===X.textAlignOptions.left?n[K]+=
w(h.leftmargin,0):d["text-anchor"]===X.textAlignOptions.center&&(n[K]+=.5*w(h.leftmargin,0));"0"!==G&&(d.rotation=[parseFloat(G),n.x,n.y]);b[0]=d.x=n.x;b[1]=d.y=n.y;b[2]=d.text=c.text;c.tooltext&&(d.title=c.tooltext);delete d.stroke;delete d["stroke-weight"];return"text"},image:function(a){var b=this,c=b.style,d=a.chartWidth,e=a.chartHeight;a=b.options;var g=b.attrs,h=b.args,n=R(a.url),m=b.group.scaleImageX*N(Number(a.xscale),100)/100,q=b.group.scaleImageY*N(Number(a.yscale),100)/100,p=b.getAbsoluteBounds(),
A={width:1,height:1},t;if(!n)return h[0]=g.x=p.x,h[1]=g.y=p.y,h[2]=g.width=p.width,h[3]=g.height=p.height,h[4]=g.r=p.r,"rect";t=new v.Image;t.onload=function(){A=fa("none","top","left",100,0,d,e,t);delete A.x;delete A.y;A=l(A,{width:(b.hasDimensionX?p.unscaled.width:A.width)*m,height:(b.hasDimensionY?p.unscaled.height:A.height)*q});setTimeout(function(){var a,d,e;if(a=b.wrapper){a.attr(A);if(d=b.tracker)e=a.getBBox(),d.attr({x:e.x,y:e.y,width:e.width,height:e.height});a.css({opacity:c.opacity=L(w(b.fillAlpha,
b.borderAlpha),b.borderAlpha)/100})}b.onload&&b.onload(A)},0)};t.src=n;h[0]=g.src=n;h[1]=g.x=p.x;h[2]=g.y=p.y;h[3]=g.width=(b.hasDimensionX?p.unscaled.width:A.width)*m;h[4]=g.height=(b.hasDimensionY?p.unscaled.height:A.height)*q;c.opacity=L(w(b.fillAlpha,b.borderAlpha),b.borderAlpha)/100;delete g.stroke;delete g.fill;delete g["stroke-linecap"];return"image"}}});Y=function(){this.groups=[];this._idstore={};this._options={}};D.Annotations=Y;d.extend(Y.prototype,{reset:function(a,b,c){var d=this.groups,
e;this.clear();if(c){e={};for(var g in c)switch(typeof c[g]){case "object":case "function":e["-$"+g]=e["$"+g]=e["+$"+g]=c[g];break;default:e["$"+g]=e["+$"+g]=c[g],e["-$"+g]=-1*c[g]}e=this._literals=e}b&&(this._options=b);if(a&&a.groups&&d)for(c=0;c<a.groups.length;c+=1)d.push(new ca(a.groups[c],b,e,this._idstore,this))},getRenderer:function(){return this._renderer},addGroup:function(a){var b=this.getRenderer();this.groups.push(a=new ca(a,this._options,this._literals,this._idstore,this));b&&(a.setup(),
a.scale(),a.draw());return a},addItem:function(a,b,c){var e,g=this.getRenderer();"string"===typeof a?e=this._idstore[a]:(c=b,b=a);if(e&&e.addItem){if(!g&&c){d.raiseWarning(this,"04031411430","run","Annotations~addItem()","Cannot draw the shapeif the group has not been drawn. Use Annotations~draw() to draw the group and pass the renderer to it.");return}a=e.addItem(b,c)}else a=this.addGroup({}).addItem(b,c);return a},draw:function(a){var b=this.groups,c,d;if(b&&(this._renderer=a||this._renderer))for(c=
0,d=b.length;c<d;c++)a=b[c],a.setup(),a.scale(),a.draw()},clear:function(){var a=this.groups,b;if(a){for(;b=a.shift();)b.destroy();this.shapesToDraw=[]}},dispose:function(){var a;this.disposing=!0;this.clear();for(a in this)delete this[a];this.disposed=!0},hide:function(a){if(a=this._idstore[a])return a.attrs.visibility="hidden",a.wrapper&&a.wrapper.hide(),a},show:function(a){if(a=this._idstore[a])return a.attrs.visibility="",a.wrapper&&a.wrapper.show(),a},update:function(a,b,c){a=this._idstore[a];
var d;if(a&&b){if("object"===typeof b)for(d in b.id&&delete b.id,b.type&&delete b.type,b)a.options[(d+"").toLowerCase()]=b[d]+"";else a.options[(b+"").toLowerCase()]=c+"";a.wrapper&&(a.scale(),a.setup(),a.draw());return a}},destroy:function(a){var b=this._idstore[a],c=b.group;b&&"function"===typeof b.destroy&&(c&&c.removeItem(a),b.destroy())},shapesToDraw:[]});d.core.addEventListener("beforeinitialize",function(a){"javascript"===a.sender.options.renderer&&(a.sender.annotations=new Y)});d.core.addEventListener("disposed",
function(a){a.sender.annotations&&a.sender.annotations.dispose()});d.addEventListener("internal.animationComplete",function(a){var b=(a=a.sender.annotations)&&a.shapesToDraw,c=b&&b.length,d,e;if(c){for(e=0;e<c;e++)d=b[e],d.queueDraw=!1,d.scale(),d.setup(),d.draw();a.shapesToDraw=[]}});m.addEventListener("rendered",function(a,b){if("javascript"===b.renderer){var c=a.sender,d=c.jsVars||{},e=d.instanceAPI;d.hcObj&&e&&e.drawAnnotations?(c.showAnnotation||(c.showAnnotation=function(){c.annotations.show.apply(c.annotations,
arguments)}),c.hideAnnotation||(c.hideAnnotation=function(){c.annotations.hide.apply(c.annotations,arguments)})):(delete c.showAnnotation,delete c.hideAnnotation)}})}]);
FusionCharts.register("module",["private","modules.renderer.js-base",function(){var d=this,m=d.hcLib,D=d.window,v=D.document,n=m.BLANKSTRING,c=m.createTrendLine,K="https:"===D.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",b=m.pluck,H=m.getValidValue,a=m.pluckNumber,z=m.getFirstValue,G=m.getDefinedColor,L=m.parseUnsafeString,A=m.FC_CONFIG_STRING,g=m.extend2,e=m.getDashStyle,h=m.parseTooltext,l=m.toPrecision,N=m.regex.dropHash,w=m.HASHSTRING,p=m.getSentenceCase,
R=m.addEvent,t=D.Math,fa=m.TOUCH_THRESHOLD_PIXELS,q=m.CLICK_THRESHOLD_PIXELS,da=t.min,V=t.max,ia=t.abs,wa=t.ceil,ja=t.floor,aa=t.log,ka=t.pow,Y=t.round,ca=m.graphics.getColumnColor,X=m.getFirstColor,P=m.setLineHeight,Q=m.pluckFontSize,T=m.getFirstAlpha,r=m.graphics.getDarkColor,J=m.graphics.getLightColor,I=m.graphics.convertColor,U=m.COLOR_TRANSPARENT,Fa=m.POSITION_CENTER,Ia=m.POSITION_TOP,Ta=m.POSITION_BOTTOM,ea=m.POSITION_RIGHT,za=m.POSITION_LEFT,Da=m.parsexAxisStyles,W=m.chartAPI,pa=m.graphics.mapSymbolName,
La=W.singleseries,Ra=W.multiseries,Ja=m.COMMASTRING,ab=m.STRINGUNDEFINED,Ha=m.ZEROSTRING,Qa=m.ONESTRING,Na=m.HUNDREDSTRING,Ea=m.PXSTRING,Ya=m.COMMASPACE,nb=D.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),Sb={left:"start",right:"end",center:"middle"},Fb=m.BLANKSTRINGPLACEHOLDER,Za=m.BGRATIOSTRING,ib=m.COLOR_WHITE,pb=m.TESTSTR,sb=m.graphics.getAngle,k=m.axisLabelAdder,E=m.falseFN,C=m.NumberFormatter,M=m.getLinkAction,Z=m.getAxisLimits,ha=m.createDialog,ga=function(a,b){return 0<a?aa(a)/aa(b||10):
null},sa=m.hasTouch=void 0!==v.documentElement.ontouchstart,qa=m.fireEvent=function(a,b,c,d){m.dem.fire(a,b,c,d)},na={1:"bold",0:"normal"},xa={1:"italic",0:"normal"},oa={1:"underline",0:"none"},La={font:function(a,b){b.style.fontFamily=a},size:function(a,b){a&&(b.style.fontSize=Q(a)+Ea)},color:function(a,b,c){b.style.color=a&&a.replace&&a.replace(N,w)||n;c&&(b.color=b.style.color)},bgcolor:function(a,b){b.style.backgroundColor=a&&a.replace&&a.replace(N,w)||n},bordercolor:function(a,b){b.style.border=
"1px solid";b.style.borderColor=a&&a.replace&&a.replace(N,w)||n},ishtml:n,leftmargin:function(b,c){c.style.marginLeft=a(b,0)+Ea},letterspacing:function(b,c){c.style.letterSpacing=a(b,0)+Ea},bold:function(a,b){b.style.fontWeight=na[a]||""},italic:function(a,b){b.style.fontStyle=xa[a]||""},underline:function(a,b){b.style.textDecoration=oa[a]||""}},ya=m.chartPaletteStr={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"}},tb=function(){var a={},b,c=function(){var e,f,k,g,h=0,n,m,C=parseInt(d.core.options.resizeTrackingInterval,10)||300,l;for(e in a)h+=1,f=a[e],k=f.jsVars,n=f.ref,!f.disposed&&(g=n&&n.parentNode)&&(m=n.style)&&(/\%/g.test(m.width)||/\%/g.test(m.height))?(n=g.offsetWidth,l=g.offsetHeight,!k.resizeLocked&&(n&&k._containerOffsetW!==n||l&&k._containerOffsetH!==l)&&
(f.resizeTo&&f.resizeTo(),k._containerOffsetW=n,k._containerOffsetH=l)):(delete a[e],h-=1);b=h?setTimeout(c,C):clearTimeout(b)};return function(k,f){var e=k.jsVars,g=f||k.ref&&k.ref.parentNode||{};e._containerOffsetW=g.parentNode.offsetWidth;e._containerOffsetH=g.parentNode.offsetHeight;a[k.id]=k;b||(b=setTimeout(c,parseInt(d.core.options.resizeTrackingInterval,10)||300))}}(),$={getExternalInterfaceMethods:function(){var a=W[this.jsVars.type],a=a&&a.eiMethods,b="saveAsImage,print,exportChart,getXML,hasRendered,signature,cancelExport,getSVGString,lockResize,showChartMessage,",
c;if("string"===typeof a)b+=a+Ja;else if(void 0!==a||null!==a)for(c in a)b+=c+Ja;return b.substr(0,b.length-1)},drawOverlayButton:function(a){var b=this.jsVars,c=b.overlayButton,k,f;if(a&&a.show){c||(c=b.overlayButton=v.createElement("span"),m.dem.listen(c,"click",function(){d.raiseEvent("OverlayButtonClick",a,b.fcObj)}));for(k=a.message?a.message:"Back";c.firstChild;)c.removeChild(c.firstChild);c.appendChild(v.createTextNode(k));b.overlayButtonMessage=k;k={border:"1px solid "+(a.borderColor?a.borderColor.replace(N,
w):"#7f8975"),backgroundColor:a.bgColor?a.bgColor.replace(N,w):"#edefec",fontFamily:a.font?a.font:"Verdana,sans",color:"#"+a.fontColor?a.fontColor:"49563a",fontSize:(a.fontSize?a.fontSize:"10")+Ea,padding:(a.padding?a.padding:"3")+Ea,fontWeight:0===parseInt(a.bold,10)?"normal":"bold",position:"absolute",top:"0",right:"0",_cursor:"hand",cursor:"pointer"};for(f in k)c.style[f]=k[f];b.hcObj.container.appendChild(c);b.overlayButtonActive=!0}else c&&(b.overlayButton=c.parentNode.removeChild(c),b.overlayButtonActive=
!1,delete b.overlayButtonMessage)},print:function(a){return this.jsVars.hcObj&&this.jsVars.hcObj.hasRendered&&this.jsVars.hcObj.print(a)},exportChart:function(a){var b=this.jsVars.hcObj;return b&&b.options&&b.options.exporting&&b.options.exporting.enabled?b.exportChart(a):!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,c=a.hcObj;c&&(c&&c.destroy&&c.destroy(),m.createChart(a.fcObj,
b,a.type,void 0,void 0,!1,!0),delete a.isResizing)},lockResize:function(a){return"boolean"!==typeof a?!!this.jsVars.resizeLocked:this.jsVars.resizeLocked=a},showChartMessage:function(a,b,c){var d=this.jsVars,f=d.hcObj,k=d.fcObj,e=k.options;d.msgStore[a]&&(a=d.msgStore[a]);b&&f&&f.hasRendered?a?f.showMessage(a,c):f.hideLoading():(f&&f.destroy&&f.destroy(),k._chartMessageStyle={color:e.baseChartMessageColor,fontFamily:e.baseChartMessageFont,fontSize:e.baseChartMessageFontSize},m.createChart(d.fcObj,
d.container,d.type,void 0,a));return a},signature:function(){return"FusionCharts/3.4.0 (XT)"}},Ba=m.HCstub=function(b,c,d,k){b=b.chart;var f=a(b.showborder,1)?a(b.borderthickness,1):0,e=a(b.charttopmargin,k.charttopmargin,15)+f,g=a(b.chartrightmargin,k.chartrightmargin,15)+f,h=a(b.chartbottommargin,k.chartbottommargin,15)+f,f=a(b.chartleftmargin,k.chartleftmargin,15)+f,C=e+h,l=f+g;d*=.7;c*=.7;C>d&&(e-=(C-d)*e/C,h-=(C-d)*h/C);l>c&&(f-=(l-c)*f/l,g-=(l-c)*g/l);c={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},
oriCatTmp:[],noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,ignoreHiddenSeries:!1,events:{},reflow:!1,spacingTop:e,spacingRight:g,spacingBottom:h,spacingLeft:f,marginTop:e,marginRight:g,marginBottom:h,marginLeft:f,borderRadius:0,plotBackgroundColor:"#FFFFFF",style:{},animation:a(b.defaultanimation,b.animation,1)?{duration:500*a(b.animationduration,1)}:!1},colors:"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),
credits:{href:m.CREDIT_HREF,text:m.CREDIT_STRING,enabled:!1},global:{},labels:{items:[]},lang:{},legend:{enabled:!0,symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:n,x:0,y:0,padding:2},scroll:{},itemStyle:{}},loading:{},plotOptions:{series:{pointPadding:0,borderColor:"#333333",events:{},animation:a(b.animation,b.defaultanimation,1)?{duration:1E3*a(b.animationduration,1)}:!1,states:{hover:{enabled:!1},select:{enabled:!1}},dataLabels:{enabled:!0,color:"#555555",style:{},
formatter:function(){return this.point.showPercentValues?k.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:b.interactivelegend===Ha?E:function(){this.slice()}}}},pie3d:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:b.interactivelegend===Ha?E:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:n,style:{}},symbols:[],title:{text:n,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],plotBands:[],title:{style:{},
text:n},tickWidth:0,scroll:{enabled:!1}},yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},text:n},tickLength:0,labels:{x:0,style:{}},plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:n},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==Fb?this.value:n}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}};b.palettecolors&&"string"===typeof b.palettecolors&&(c.colors=
b.palettecolors.split(/\s*\,\s*/));return k.hcJSON=c},S=m.placeVerticalAxis=function(b,c,d,k,f,e,g,h,m,C){var l=d[A],E=l.smartLabel,p,q,M,r,t=0,Z=l.marginRightExtraSpace,z=l.marginLeftExtraSpace,v={},ha={},w={},ga=b.plotLines,D=b.plotBands,l=c.verticalAxisValuesPadding,qa=isNaN(c.fixedValuesPadding)?0:c.fixedValuesPadding,sa=l-qa,oa=c.verticalAxisValuesPadding,na=c.verticalAxisNamePadding,N=c.verticalAxisNameWidth,G=c.rotateVerticalAxisName&&String(c.rotateVerticalAxisName).toLowerCase(),K="none"!==
G,S=b.offset?b.offset:0,xa=0,L=0,I=0,ya=0,J=0,R=0,Q=0,rb,$,P,Ba,l=2,Q=g?Z+5:z+4,tb=V(a(d.chart.plotBorderWidth,1),0),Eb=b.showLine?b.lineThickness:tb,la=function(a,b){var f,d;a&&a.label&&void 0!==H(a.label.text)&&(P=a.label,P.style&&P.style!==$&&($=P.style,E.setStyle($)),p=E.getOriSize(a.label.text),d=(f=p.width)?f+2:0,a.isGrid?(v[b]={width:f,height:p.height,label:P},ya<=d&&(ya=d,c.lYLblIdx=b)):a.isTrend&&(g&&P.textAlign===za||P.textAlign===ea?(ha[b]={width:f,height:p.height,label:P},J=V(J,d)):(w[b]=
{width:f,height:p.height,label:P},R=V(R,d))))},da=function(a,c){var d,k=c?t:t+a;d=b.title.style;q=q||{};if(0<k)return K?(k<q.height&&(E.setStyle(d),q=E.getSmartText(b.title.text,f,k)),d=q.height):(k<q.width&&(E.setStyle(d),q=E.getSmartText(b.title.text,k,f)),d=q.width),b.title._actualWidth=d,b.title.text=q.text,q.tooltext&&(b.title.originalText=q.tooltext),c?k-d+a:k-d;b.title.text=n;return 0},db=function(a,b,c){for(var f in a)a[f].label.x=b,a[f].label.y=c},I=0;for(rb=D.length;I<rb;I+=1)la(D[I],I);
I=0;for(rb=ga.length;I<rb;I+=1)la(ga[I],I);b.title&&b.title.text!=n&&($=b.title.style,E.setStyle($),M=E.getOriSize(pb).height,b.title._originalText=b.title.text,K?(b.title.rotation="cw"===G?90:270,q=E.getSmartText(b.title.text,f,e),t=q.height,r=M):(b.title.rotation=0,q=E.getSmartText(b.title.text,void 0!==N?N:e,f),t=q.width,r=20));0<R&&(L=R+oa);m&&(k=a(k.chart.maxlabelwidthpercent,0),1<=k&&100>=k&&(m=k*m/100,ya>m&&(ya=m)));xa=V(J,ya);xa+=xa?sa+qa:0;0<t&&(xa+=t+na+Q);(function(){if(L+xa>e){Ba=L+xa-
e;if(L){if(oa>=Ba){oa-=Ba;return}Ba-=oa;oa=0}if(sa+na>=Ba)na>=Ba?na-=Ba:(sa-=Ba-na,na=0);else{Ba-=sa+na;na=sa=0;if(20<R)if(J>ya){if(R-J>=Ba){R-=Ba;return}if(J-R>=Ba){J-=Ba;return}J>R?(Ba-=J-R,J=R):(Ba-=R-J,R=J);if(2*(J-ya)>=Ba){R-=Ba/2;J-=Ba/2;return}Ba-=2*(J-ya);R=J=ya}else{if(R-20>=Ba){R-=Ba;return}Ba-=R-20;R=20}if(J>ya){if(J-ya>=Ba){J-=Ba;return}Ba-=J-ya;J=ya}t-r>=Ba?t-=Ba:(Ba-=t-r,t=r,R>=Ba?R=0:(Ba-=R,R=0,t>=Ba?t=0:(Ba-=t,t=0,ya>=Ba&&(J=ya-=Ba))))}}})();I=function(a,b){var c,d=0,s=b?R-2:R+a-2,
k;if(0<R){for(k in w)P=w[k].label,w[k].width>s?(P.style&&P.style!==$&&($=P.style,E.setStyle($)),c=E.getSmartText(P.text,s,f,!0),P.text=c.text,c.tooltext&&(P.originalText=c.tooltext),w[k].height=c.height,d=V(d,c.width)):d=V(d,w[k].width);return b?s-d+a:s-d}for(k in w)w[k].label.text=n;return 0}(0,!0);I=da(I,!0);I=function(a){var b=0,c=V(ya,J)+a-2,d;if(0<c){for(d in v)P=v[d].label,v[d].width>c?(P.style&&P.style!==$&&($=P.style,E.setStyle($)),a=E.getSmartText(P.text,c,f,!0),P.text=a.text,a.tooltext&&
(P.originalText=a.tooltext),v[d].height=a.height,b=V(b,a.width)):b=V(b,v[d].width);for(d in ha)P=ha[d].label,ha[d].width>c?(P.style&&P.style!==$&&($=P.style,E.setStyle($)),a=E.getSmartText(P.text,c,f,!0),P.text=a.text,a.tooltext&&(P.originalText=a.tooltext),ha[d].height=a.height,b=V(b,a.width)):b=V(b,ha[d].width);return c-b}for(d in v)v[d].label.text=n;for(d in ha)ha[d].label.text=n;return 0}(I);I=da(I);m=c.verticalAxisNamePadding-na;I&&m&&(I>m?(na+=m,I-=m):(na+=I,I=0));m=c.verticalAxisValuesPadding-
(sa+qa);I&&m&&(I>m?(sa+=m,I-=m):(sa+=I,I=0));m=c.verticalAxisValuesPadding-oa;I&&m&&(I>m?(oa+=m,I-=m):(oa+=I,I=0));0<R&&(L=R+oa);xa=V(J,ya);xa+=xa?sa+qa:0;0<t&&(xa+=t+na+Q);m=V(J,ya);m+=0<m?sa+qa:0;0<t?(K?t<q.height&&(q=E.getSmartText(b.title.text,f,t)):(t<q.width&&(q=E.getSmartText(b.title.text,t,f)),b.title.y=-((q.height-M)/2)),b.title.text=q.text,q.tooltext&&(b.title.originalText=q.tooltext),b.title.margin=m+na+Q+(K?t-M:t/2)):b.title.text=n;M=-(sa+qa+S+z+2);Z=Z+oa+S+2;Q=V(J,ya);b.labels.style&&
(l=.35*parseInt(b.labels.style.fontSize,10));g?(0<R&&db(w,M,l),0<Q&&(db(v,Z,l),db(ha,Z,l))):(0<R&&db(w,Z,l),0<Q&&(db(v,M,l),db(ha,M,l)));b.labels._textY=l;b.labels._righttX=Z;b.labels._leftX=M;xa=xa||Eb;L=L||(h?0:tb);C?(d.chart.marginLeft+=g?L:xa-C,d.chart.marginRight+=g?xa-C:L):(d.chart.marginLeft+=g?L:xa,d.chart.marginRight+=g?xa:L);return L+xa},Ra=m.titleSpaceManager=function(b,c,d,k){var f=this.snapLiterals||(this.snapLiterals={}),e=c.chart,g=L(e.caption);c=L(e.subcaption);var h=e=a(e.captionpadding,
10),m=b[A],l=this.smartLabel||m.smartLabel,C=!1,E=0,q,p,M=0,r=0,t=0,Z=0,z=b.title,v=b.subtitle,ha=V(a(b.chart.plotBorderWidth,1),0),w=0,ga=0;if(3<k){e<ha&&(e=ha+2);g!==n&&(q=z.style,t=wa(a(parseFloat(q.fontHeight,10),parseFloat(q.lineHeight,10),12)));c!==n&&(p=v.style,Z=a(parseInt(p.fontHeight,10),parseInt(p.lineHeight,10),12));if(0<t||0<Z)k=V(k,0),E=t+Z+e,E>k?(M=k-E,C=!0,M<e?e=V(M,5):(M-=e,e=0,Z>M?(r=Z-M+10,Z=0,v._originalText=v.text,v.text=""):(M-=Z,Z=0,t>M&&(r=t-M)))):r=k-E,0<t&&(l.setStyle(q),
t+=r,k=l.getSmartText(g,d,t),r=t-k.height,z.height=t=k.height,z.text=k.text,k.tooltext&&(z.originalText=k.tooltext),w=k.width),0<Z&&(l.setStyle(p),Z+=r,d=l.getSmartText(c,d,Z),r=Z-d.height,Z=d.height,v.text=d.text,v.height=d.height,d.tooltext&&(v.originalText=d.tooltext),ga=d.width),C&&0<r&&(e+=da(h-e,r)),E=t+Z+e;E=E||ha;z.isOnTop?(f.captionstarty=b.chart.marginTop,b.chart.marginTop+=E):(b.chart.marginBottom+=E,f.captionstarty=z.y=m.height-b.chart.marginBottom+e,b.chart.marginTop+=5,E+=5);z._captionWidth=
w;v._subCaptionWidth=ga;z._lineHeight=t;v._lineHeight=Z}else v&&(v.text=""),z&&(z.text="");return E},Eb=m.stepYAxisNames=function(a,b,c,d,f,k){var e=0,g=d.plotLines,h=[],m,l=d.plotLines.length;b=b[A].smartLabel;for(var C=parseFloat(Q(c.basefontsize,10)),E;e<l;e+=1)c=g[e],c.isGrid&&c.label&&c.label.text&&(h.push(c),0===c.value&&(m=h.length-1));if(l=h.length)if(d.labels.style?b.setStyle(d.labels.style):h[0].label&&h[0].label.style&&b.setStyle(d.labels.style),e=b.getOriSize("W").height,k||(e+=.4*C),
a/=l-1,a<e){k=V(1,wa(e/a));for(e=a=m;e<l;e+=1)c=h[e],e===f&&((e-a)%k&&E&&(E.label.text=""),a=f),c&&c.label&&((e-a)%k?c.label.text=n:E=c);for(e=a=m;0<=e;e-=1)c=h[e],e===f&&((a-e)%k&&E&&(E.label.text=""),a=f),c&&c.label&&((a-e)%k?c.label.text=n:E=c)}},vb=m.placeHorizontalAxis=function(b,c,d,k,f,e,g){var h=d[A],m=k&&k.chart||{},l,C,E,q,p,M,r,t,Z,z,v,ha,w=0,ga=0,D=10,qa=1,sa=0,oa=0,na=0,xa=0,I=!1,N=!1,G=!1,K=a(m.labelstep,0),L=a(m.xaxisminlabelwidth,0),S=a(m.maxlabelheight,e),J=c.labelDisplay,R=c.rotateLabels,
ya=c.horizontalLabelPadding,Ba=h.marginBottomExtraSpace,P=d.chart.marginLeft,Q=d.chart.marginRight,$=h.smartLabel,rb=h.plotBorderThickness,tb=c.catCount,db=c.slantLabels,la=f/(b.max-b.min),Eb=0,$a=0,vb=0,ob=0,T=k&&k.chart||{},jc=1E3*a(T.updateinterval,T.refreshinterval),W=T.datastreamurl,X=Boolean(this.realtimeEnabled&&jc&&void 0!==W),U,fa,wb,$b,aa,ca,Nb,Ub,ia,pa,Y,ka,Ga,Ia,ta,Wa,Ra,Ja,Pa,La,Ib,Ha,Ea,Da,gb,Na=null,Pb=null,Oa,Wb,ec,Rb,Tb,Qb,Qa,lc,Xb,ua,Lb,ib,Ka=[],Mb=[],kb,yb=0,zb=0,Yb,Za,mb,dc,hc,
Ya,cb,ic=c.horizontalAxisNamePadding,Db=0,Xa=c.staggerLines,Jb=Eb,pb=!1,fc,gc,sb,Sb=!1,Fb,nb,Rc,Ac,Pc,bd,mc,Ic,Sc,Dc,Tc,Jc,Qc,wc;Lb=b.plotLines;D=ua=0;for(cb=Lb.length;ua<cb;ua+=1)(C=Lb[ua])&&C.label&&!C.isTrend&&D<parseInt(C.label.style.lineHeight,10)&&(D=parseInt(C.label.style.lineHeight,10),M=C.label.style);if(M||b.labels.style)M=M||b.labels.style,$.setStyle(M),t=$.getOriSize("W"),D=$.lineHeight,r=t.width+4,ha=$.getOriSize("WWW").width+4;b.title&&b.title.text!=n&&(M=b.title.style,$.setStyle(M),
oa=$.getOriSize("W").height,b.title.rotation=0,q=$.getSmartText(b.title.text,f,e),ga=q.height);P!=parseInt(m.chartleftmargin,10)&&(Qa=!0);Q!=parseInt(m.chartrightmargin,10)&&(lc=!0);void 0!==m.canvaspadding&&""!==m.canvaspadding&&(Sb=!0);Xb=f-g;switch(J){case "none":I=G=!0;R&&(w=db?300:270,t=D,D=r,r=t);break;case "rotate":w=db?300:270;t=D;D=r;r=t;I=!0;break;case "stagger":N=I=!0;Z=ja((e-oa)/D);Z<Xa&&(Xa=Z);break;default:R&&(w=db?300:270,t=D,D=r,r=t)}h.isBar&&(I=!0);ua=0;Lb=b.plotLines;if(typeof d._FCconf.isXYPlot!==
ab||h.isBar){U={};ca=aa=0;pa=ia=null;Ja={};pb=!0;la=f/(b.max-b.min);Fb=function(a,c,f){var e,k,u,g,F,h;h=a.plotObj;F=a.labelTextWidth;F||(p=h.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),F=$.getOriSize(p.text).width+4,a.oriWidth=F,F>fa&&(F=fa),a.labelTextWidth=F,a.leftEdge=h.value*la-F/2,a.rightEdge=h.value*la+F/2,f&&(F=da(F,2*(C.value-b.min)*la+d.chart.marginLeft),a.labelTextWidth=F));if(typeof c!==ab){if(f=c.plotObj,p=f.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),c.oriWidth?u=
c.oriWidth:(u=$.getOriSize(p.text).width+4,c.oriWidth=u),u>fa&&(u=fa),c.labelTextWidth=u,c.leftEdge=f.value*la-u/2,c.rightEdge=f.value*la+u/2,e=h.value*la,k=e+F/2,g=f.value*la,u=g-u/2,u<k)if(e+r<g-r)k-=u,e=g-e,a.labelTextWidth=k>e?da(F,e):V(r,F-k/2),c.labelTextWidth=2*(e-a.labelTextWidth/2),a.leftEdge=h.value*la-a.labelTextWidth/2,a.rightEdge=h.value*la+a.labelTextWidth/2,c.leftEdge=f.value*la-c.labelTextWidth/2,c.rightEdge=f.value*la+c.labelTextWidth/2;else return c.labelTextWidth=0,f.label.text=
n,!1}else f&&(F=da(F,2*(b.max-C.value)*la+d.chart.marginRight),a.labelTextWidth=F,a.leftEdge=h.value*la-F/2,a.rightEdge=h.value*la+F/2);a.nextCat=c;return!0};N?Xa>Za?Xa=Za:2>Xa&&(Xa=2):Xa=1;for(cb=Lb.length;ua<cb;ua+=1)(C=Lb[ua])&&C.label&&typeof C.label.text!==ab&&(C.isGrid?($b={plotObj:C},C.isCat&&(Ub=ua%Xa,U[Ub]||(U[Ub]=[]),ia?(pa=$b,U[Ub].push(pa)):(pa=ia=$b,U[Ub].push(ia))),Ka.push($b)):C.isTrend&&Mb.push({plotObj:C}));ib=b.plotBands;ua=0;for(cb=ib.length;ua<cb;ua+=1)(C=ib[ua])&&C.isTrend&&C.label&&
typeof C.label.text!==ab&&Mb.push({plotObj:C});if(Ka.length)if(!G&&!w)if(h.distributedColumns)for(ua=0,cb=Ka.length;ua<cb;ua+=1)Wa=Ka[ua],Ra=ua%Xa,C=Wa.plotObj,C.label&&C.isCat&&(0<=ua-Xa?(ka=Ka[ua-Xa],Ea=ka.plotObj.value*la+ka.plotObj._weight*la/2):(ka=null,Ea=b.min*la-P),ua+Xa<cb?(Y=Ka[ua+Xa],Da=Y.plotObj.value*la-Y.plotObj._weight*la/2):(Y=null,Da=b.max*la+Q),p=C.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),Ga=C.value*la,Rc=Ga-C._weight*la/2,nb=Ga+C._weight*la/2,1<Xa?(La=Rc-Ea,Ib=nb+Da,
gb=nb-Rc+da(La,Ib)):gb=nb-Rc,p=C.label,p.style&&p.style!==M&&$.setStyle(p.style),gb<r&&r<$.getOriSize(p.text).width?(C.label.text=n,Wa.labelTextWidth=0):(Wa.labelTextWidth=gb,l=$.getSmartText(p.text,gb-4,e,I),gb=l.width+4,Wa.labelTextWidth=gb,ob=V(ob,l.height)));else{Za=Ka.length;Yb=Ka.length-1;(kb=(Ka[Yb].plotObj.value-Ka[0].plotObj.value)*la)?(fa=.1*kb,wb=V(.2*kb,kb/Za)):wb=fa=f;for(E in U)for(ua=0,Ia=U[E].length;ua<Ia;){for(Nb=ua+1;!Fb(U[E][ua],U[E][Nb]);)Nb+=1;ua=Nb}ia&&(ca=(ia.plotObj.value-
b.min)*la+P-ia.labelTextWidth/2);C=Ka[0].plotObj;ia&&C===ia.plotObj||(p=C.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),v=$.getOriSize(p.text).width+4,Ga=(C.value-b.min)*la+P,ia&&(Oa=ca-Ga,v=Oa<v&&Oa>r/2?2*Oa:0),Ka[0].labelTextWidth=v,0<v&&(t=Ga-v/2),t<ca&&(ca=t));pa&&(v=pa.labelTextWidth,aa=(b.max-pa.plotObj.value)*la+Q-v/2);C=Ka[Yb].plotObj;pa&&C===pa.plotObj||(p=C.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),v=$.getOriSize(p.text).width+4,Ga=(b.max-C.value)*la+Q,pa&&(Oa=Ga-aa,
v=Oa<v&&Oa>r/2?2*Oa:0),Ka[Yb].labelTextWidth=v,0<v&&(t=Ga-v/2),t<aa&&(aa=t));yb=0>ca?-ca:0;zb=0>aa?-aa:0;Ya=yb+zb;if(0<Ya)for(E in Xb>Ya?(ta=(ta=zb*f/(zb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginLeft+=ta,f-=ta,la=f/(b.max-b.min)):yb<zb?Xb>=zb&&lc?(ta=(ta=zb*f/(zb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,la=f/(b.max-b.min)):Qa&&(ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginLeft+=ta,f-=ta,la=f/(b.max-b.min)):Xb>=yb&&Qa?(ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginLeft+=
ta,f-=ta,la=f/(b.max-b.min)):lc&&(ta=(ta=zb*f/(zb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,la=f/(b.max-b.min)),Q=d.chart.marginRight,P=d.chart.marginLeft,kb=(Ka[Yb].plotObj.value-Ka[0].plotObj.value)*la,fa=.1*kb,wb=V(.2*kb,kb/Za),U){ua=0;for(Ia=U[E].length;ua<Ia;){for(Nb=ua+1;!Fb(U[E][ua],U[E][Nb],!0);)Nb+=1;ua=Nb}E+=1}ua=0;for(cb=Ka.length;ua<cb;ua+=1)if(Wa=Ka[ua],Ra=ua%Xa,C=Wa.plotObj,C.label)if(C.isCat)Wa.labelTextWidth&&(Ja[Ra]=Wa);else{Y=(ka=Ja[Ra])?ka.nextCat:U[Ra]?U[Ra][0]:null;Pa=null;if(ua>=
Xa)for(Pb=ua-Xa,Pa=Ka[Pb];!Pa.labelTextWidth;)if(Pb>=Xa)Pb-=Xa,Pa=Ka[Pb];else{Pa=null;break}Ea=Pa?Pa.rightEdge:b.min*la-P;Da=Y?Y.leftEdge:b.max*la+Q;p=C.label;p.style&&p.style!==M&&(M=p.style,$.setStyle(M));v=$.getOriSize(p.text).width+4;Qb=C.value*la-v/2;if(h.isBar&&ua==cb-1&&Pa)Ea>Qb&&(Pa.plotObj.label.text=n,Pa.labelTextWidth=0,Ea=Pa.leftEdge);else if(Ea>Qb||Da<Qb+v){C.label.text=n;Wa.labelTextWidth=0;continue}Ea=V(Ea,Qb);Ga=C.value*la;gb=2*da(Ga-Ea,Da-Ga);gb.toFixed&&(gb=gb.toFixed(2));p=C.label;
p.style&&p.style!==M&&$.setStyle(p.style);gb<r&&r<$.getOriSize(p.text).width?(C.label.text=n,Wa.labelTextWidth=0):(Wa.labelTextWidth=gb,l=$.getSmartText(p.text,gb-4,e,I),gb=l.width+4,Wa.labelTextWidth=gb,Wa.leftEdge=Ga-gb/2,Wa.rightEdge=Ga+gb/2,ob=V(ob,l.height))}Pa=Ha=null;ua=0;for(cb=Ka.length;ua<cb;ua+=1)if(Wa=Ka[ua],C=Wa.plotObj,Ra=ua%Xa,C.isCat&&Wa.labelTextWidth){Pa=Ha=null;Ga=C.value*la;if(ua>=Xa)for(Pb=ua-Xa,Pa=Ka[Pb];!Pa.labelTextWidth;)if(Pb>Xa)Pb-=Xa,Pa=Ka[Pb];else{Pa=null;break}La=Pa?
Ga-Pa.rightEdge:Ga-b.min*la+d.chart.marginLeft;if(ua+Xa<cb)for(Na=ua+Xa,Ha=Ka[Na];!Ha.labelTextWidth;)if(Na+Xa<cb-1)Na+=Xa,Ha=Ka[Na];else{Ha=null;break}Ib=Ha?Ha.leftEdge-Ga:b.max*la+d.chart.marginRight-Ga;gb=2*da(La,Ib);gb>wb&&(gb=wb);gb>Wa.oriWidth&&(gb=Wa.oriWidth);Wa.labelTextWidth=gb;p=C.label;p.style&&p.style!==M&&$.setStyle(p.style);l=$.getSmartText(p.text,gb-4,e,I);Wa.labelTextWidth=l.width+4;ob=V(ob,l.height);Wa.rightEdge=Ga+Wa.labelTextWidth/2}}else if(w)for(ua=0,cb=Ka.length;ua<cb;ua+=1)if((C=
Ka[ua].plotObj)&&C.label&&C.label.text){p=C.label;p.style&&p.style!==M&&(M=p.style,$.setStyle(M));E=1;if(ua+E<cb)for(Ac=Ka[E+ua].plotObj;Ac&&(Ac.value-C.value)*la<r;)if(C.isCat){if(Ac.label){Ac.label.text=n;E+=1;if(E+ua>=cb-1)break;Ac=Lb[E+ua].plotObj}}else if(Ac.isCat){C.label.text=n;C=Ac;ua+=E-1;p=C.label;p.style&&p.style!==M&&(M=p.style,$.setStyle(M));break}vb=V(vb,$.getOriSize(p.text).width+4)}E=0;for(cb=Mb.length;E<cb;E+=1)(C=Mb[E].plotObj)&&C.label&&void 0!==H(C.label.text)&&(p=C.label,p.style&&
p.style!==M&&(M=p.style,$.setStyle(M)),l=$.getOriSize(p.text),p.verticalAlign===Ta?Eb=V(Eb,l.height):$a=V($a,l.height))}else{for(cb=Lb.length;ua<cb;ua+=1)(C=Lb[ua])&&(C.isGrid?Ka.push(C):C.isTrend&&Mb.push(C));ib=b.plotBands;ua=0;for(cb=ib.length;ua<cb;ua+=1)(C=ib[ua])&&Mb.push(C);Yb=Ka.length-1;Za=Ka.length;N&&(Xa>Za?Xa=Za:2>Xa&&(Xa=2));if(Za)for(b.scroll&&b.scroll.viewPortMin&&b.scroll.viewPortMax?(Rb=b.scroll.viewPortMin,Tb=b.scroll.viewPortMax,lc=Qa=!1):(Rb=b.min,Tb=b.max),kb=(Ka[Yb].value-Ka[0].value)*
la,mb=kb/(tb-1),dc=(Ka[0].value-Rb)*la,hc=(Tb-Ka[Yb].value)*la,"auto"===J?mb<ha&&(w=db?300:270,t=D,D=r,r=t,I=!0):"stagger"===J&&(mb*=Xa),"line"!==this.defaultSeriesType&&("area"===this.defaultSeriesType?h.drawFullAreaBorder&&(rb>dc&&(Rb=b.min-=rb/(2*la),dc+=(Ka[0].value-Rb)*la),rb>hc&&(Tb=b.max+=rb/(2*la),hc+=(Tb-Ka[Yb].value)*la)):(rb>dc&&(Rb=b.min-=rb/(2*la),dc+=(Ka[0].value-Rb)*la),rb>hc&&(Tb=b.max+=rb/(2*la),hc+=(Tb-Ka[Yb].value)*la))),r<L&&(r=L),qa=N||G?V(1,K):V(1,K,wa(r/mb)),h.x&&(h.x.stepValue=
qa),mb*=qa,z=2*(dc+P),(p=Lb[0].label)&&p.text&&(p.style&&$.setStyle(p.style),v=270===w?da(mb,$.getOriSize(p.text).height+4):da(mb,$.getOriSize(p.text).width+4),v>z&&(G||(yb=(v-z)/2),Qa||(Sb&&(yb=0),mb-=yb/(tb-1),sb=mb*(tb-1),la=mb,fc=(kb-sb)/la,Tb=b.max+=fc,Rb=b.min-=fc,yb=0,kb=sb,dc=(Ka[0].value-Rb)*la,hc=(Tb-Ka[Yb].value)*la))),z=2*(hc+Q),(p=Lb[Yb].label)&&p.text&&(p.style&&$.setStyle(p.style),v=270===w?da(mb,$.getOriSize(p.text).height+4):da(mb,$.getOriSize(p.text).width+4),v>z&&(G||(zb=(v-z)/
2),lc||(Sb&&(zb=0),mb-=zb/(tb-1),sb=mb*(tb-1),la=mb,fc=(kb-sb)/la,zb=0,kb=sb,dc=(Ka[0].value-Rb)*la,hc=(Tb-Ka[Yb].value)*la))),Ya=yb+zb,0<Ya&&(Xb>Ya?(ta=(ta=zb*f/(zb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginLeft+=ta,f-=ta,la=f/(b.max-b.min)):yb<zb?Xb>=zb&&lc?(ta=(ta=zb*f/(zb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,la=f/(b.max-b.min)):Qa&&(ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginLeft+=ta,f-=ta,la=f/(b.max-b.min)):Xb>=yb&&Qa?(ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginLeft+=
ta,f-=ta,la=f/(b.max-b.min)):lc&&(ta=(ta=zb*f/(zb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,la=f/(b.max-b.min)),kb=(Ka[Yb].value-Ka[0].value)*la,mb=kb/(tb-1),N&&(mb*=Xa),qa=N||G?V(1,K):w?V(1,K,wa(D/mb)):V(1,K,wa(r/mb)),h.x&&(h.x.stepValue=qa),mb*=qa),E=0;E<Za;E+=1){C=Ka[E];if(E%qa&&C.label){if(C.stepped=!0,C.label.style=b.steppedLabels.style,!X)continue}else C.stepped=!1;C&&C.label&&void 0!==H(C.label.text)&&(p=C.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),w&&G?(l=$.getOriSize(p.text),vb=
V(vb,l.width+4),ob=V(ob,l.height)):G||(l=w||N?$.getOriSize(p.text):$.getSmartText(p.text,mb-4,e,I),vb=V(vb,l.width+4),ob=V(ob,l.height)))}E=0;for(cb=Mb.length;E<cb;E+=1)(C=Mb[E])&&C.label&&void 0!==H(C.label.text)&&(p=C.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),l=$.getOriSize(p.text),p.verticalAlign===Ta?Eb=V(Eb,l.height):$a=V($a,l.height));b.scroll&&b.scroll.enabled&&!w&&!G&&(fc=vb/2,d.chart.marginLeft<fc&&(gc=fc-d.chart.marginLeft,Xb>gc&&(f-=gc,Xb-=gc,d.chart.marginLeft+=gc)),d.chart.marginRight<
fc&&(gc=fc-d.chart.marginRight,Xb>gc&&(f-=gc,Xb-=gc,d.chart.marginRight+=gc)))}G?(Db=D,w&&(Db=vb)):Db=w?vb:N?Xa*ob:ob;0<Db&&(Db+ya>S&&(Db=S-ya,Xa=Math.floor(Db/ob)),Jb+=ya+Db);0<ga&&(Jb+=ga+ic);Wb=ya-4;ec=$a+Jb+2;t=0;ec>e&&(Oa=ec-e,ic>Oa?(ic-=Oa,Oa=0):(Oa-=ic,ic=0,Wb>Oa?(Wb-=Oa,Oa=0):(Oa-=Wb,Wb=0),ya=Wb+4),$a>Oa?($a-=Oa,Oa=0):(0<$a&&(Oa-=$a,$a=0),0<Oa&&(Eb>Oa?(Eb-=Oa,Oa=0):(0<Eb&&(Oa-=Eb,Eb=0),0<Oa&&((t=ga-oa)>Oa?(ga-=Oa,Oa=0):(Oa-=t,ga=oa,0<Oa&&((t=Db-D)>Oa?(Db-=Oa,Oa=0):(Oa-=t,Db=D,0<Oa&&(Oa-=ga+
ic,ga=0,0<Oa&&(Oa-=Db,Db=0,0<Oa&&(ya-=Oa)))))))))));ya+=Ba;Pc=h.is3d?-d.chart.xDepth:0;bd=Db+ya;Dc=Pc;Tc=.5*D;sa=D+ya;cb=Ka.length;na=0;if(pb)if(w)for(wc=ea,mc=db?ya+8:ya+4,cb=Ka.length,E=0;E<cb;E+=1)(C=Ka[E].plotObj)&&C.label&&void 0!==H(C.label.text)&&(p=C.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),ua=1,l=$.getSmartText(p.text,Db-4,r,I),p.text=l.text,l.tooltext&&(p.originalText=l.tooltext),Dc=Pc+Tc/2,p.y=mc,p.x=Dc,p.rotation=w,p.textAlign=wc,na+=1);else for(Ic=Db,wc=Fa,mc=sa,E=0;E<cb;E+=
qa)C=Ka[E].plotObj,D=parseInt(C.label.style.lineHeight,10),C&&C.label&&void 0!==H(C.label.text)&&(p=C.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),G||(l=$.getSmartText(p.text,Ka[E].labelTextWidth-4,Ic,I),p.text=l.text,l.tooltext&&(p.originalText=l.tooltext),N&&(mc=sa+na%Xa*D)),p.y=mc,p.x=Dc,p.rotation=w,p.textAlign=wc,na+=1);else{w?(Ic=mb,Sc=Db-4,wc=ea,mc=db?ya+8:ya+4):N?(Sc=mb-4,wc=Fa):(Ic=Db,Sc=mb-4,wc=Fa,mc=sa);for(E=0;E<cb;E+=qa)C=Ka[E],D=wa(parseFloat(C.label.style.lineHeight)),Tc=.5*
D,sa=D+ya,C&&C.label&&void 0!==H(C.label.text)&&(p=C.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),G||(N&&(Ic=D),l=$.getSmartText(p.text,Sc,Ic,I),p.text=l.text,l.tooltext&&(p.originalText=l.tooltext),N&&(mc=sa+na%Xa*D)),w?Dc=Pc+.5*D:N||(mc=D+ya),p.y=mc,p.x=Dc,p.rotation=w,p.textAlign=wc,na+=1);c._labelY=sa;c._labelX=Pc;c._yShipment=mc;c._isStagger=N;c._rotation=w;c._textAlign=wc;c._adjustedPx=Tc;c._staggerLines=Xa;c._labelHeight=D}cb=Mb.length;for(E=Qc=Jc=0;E<cb;E+=1)(C=Mb[E].plotObj?Mb[E].plotObj:
Mb[E])&&C.label&&void 0!==H(C.label.text)&&(p=C.label,p.style&&p.style!==M&&(M=p.style,$.setStyle(M)),p.verticalAlign===Ta?(l=$.getSmartText(p.text,f,Eb,!0),Qc=V(Qc,l.height),p.text=l.text,l.tooltext&&(p.originalText=l.tooltext),p.y=bd+$.getOriSize(p.text).height,p.x=Dc):(l=$.getSmartText(p.text,f,$a,!0),Jc=V(Jc,l.height),p.text=l.text,l.tooltext&&(p.originalText=l.tooltext),p.y=-($a-$.getOriSize("W").height+ya+2)));0<ga&&($.setStyle(b.title.style),q=$.getSmartText(b.title.text,f,ga),b.title.text=
q.text,q.tooltext&&(b.title.originalText=q.tooltext),b.title.margin=bd+Qc+ic);Jb=Qc;0<Db&&(h.horizontalAxisHeight=ya+Db-Ba,Jb+=h.horizontalAxisHeight);0<ga&&(Jb+=xa=ga+ic);Jb=Jb||ya-Ba;d.chart.marginBottom+=Jb;0<Jc&&(d.chart.marginTop+=Jc,Jb+=Jc);if(b.opposite)for(b.title.margin-=Db-(q&&q.height||0)+ya,Jb-=xa,d.chart.marginTop+=Jb,d.chart.marginBottom-=Jb,d.xAxis.opposite=1,cb=Lb.length,ua=0;ua<cb;ua+=1)(C=Lb[ua])&&C.isGrid&&(p=C.label)&&void 0!==p.text&&(p.textAlign=za,p.y-=mc+ya+4);return Jb},db=
m.configureLegendOptions=function(c,d,e,k,f){k=c.legend;var g=c.chart,h=g.is3D?ya.chart3D:ya.chart2D,C=g.useRoundEdges,l=a(d.legendiconscale,1),m=(parseInt(k.itemStyle.fontSize,10)||10)+1,p=this.colorManager,E;if(0>=l||5<l)l=1;k.padding=4;0>=m&&(m=1);E=3*l;m=da(m*l,f-8);0>=m&&(E=m=0);k.symbolWidth=m;k.symbolPadding=E;k.textPadding=4;k.legendHeight=f=m+2*E;k.rowHeight=V(parseInt(k.itemStyle.lineHeight,10)||12,f);e?(k.align=ea,k.verticalAlign="middle",k.layout="vertical"):k.x=(g.marginLeft-g.spacingLeft-
g.marginRight+g.spacingRight)/2;e=b(d.legendbordercolor,p.getColor(h.legendBorderColor));f=a(d.legendborderalpha,100);g=a(d.legendbgalpha,100);k.backgroundColor=I(b(d.legendbgcolor,p.getColor(h.legendBgColor)),g);k.borderColor=I(e,f);k.borderWidth=a(d.legendborderthickness,!C||d.legendbordercolor?1:0);k.shadow=Boolean(a(d.legendshadow,1));k.symbol3DLighting=Boolean(a(d.use3dlighting,d.useplotgradientcolor,1));k.shadow&&(k.shadow={enabled:k.shadow,opacity:V(f,g)/100});k.reversed=Boolean(a(d.reverselegend,
0)-a(this.reverseLegend,0));k.style={padding:4};Boolean(a(d.interactivelegend,1))?k.symbolStyle={_cursor:"hand",cursor:"pointer"}:(c.legend.interactiveLegend=!1,k.itemStyle.cursor="default",k.itemHoverStyle={cursor:"inherit"});k.borderRadius=a(d.legendborderradius,C?3:0);k.legendAllowDrag=Boolean(a(d.legendallowdrag,0));k.title.text=L(z(d.legendcaption,n));k.legendScrollBgColor=X(b(d.legendscrollbgcolor,d.scrollcolor,p.getColor("altHGridColor")));k.legendScrollBarColor=b(d.legendscrollbarcolor,e);
k.legendScrollBtnColor=b(d.legendscrollbtncolor,e)},rb=m.placeLegendBlockRight=function(b,c,d,k,f){this.configureLegendOptions(b,c.chart,!0,f,d);var e=this.snapLiterals||(this.snapLiterals={}),g=0,h=b.series,C,l=b[A],m=this.smartLabel||l.smartLabel,p=b.chart.spacingRight,E=b.legend,q,M=E.textPadding,r=E.title.padding,t=E.symbolWidth,Z=E.symbolPadding,v=t+2*Z,z=2*k,w=0,ha=a(c.chart.legendpadding,7);c=ha+E.borderWidth/2+a(c.chart.canvasborderthickness,1);var ga=2*E.padding,D=ga,qa=!1,sa=[];d-=ga+ha;
f&&(h=h&&h[0]&&h[0].data);if(typeof h===ab||typeof h.length===ab)return 0;f=h.length;for(g=0;g<f;g+=1)(C=h[g])&&!1!==C.showInLegend&&(C.__i=g,sa.push(C));sa.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=sa.length;q=d-v-ha-M;0>q&&(q=0);m.setStyle(E.itemStyle);E.reversed&&sa.reverse();for(g=0;g<f;g+=1)C=sa[g],qa=!0,C._legendX=0,C._legendY=D,0===q?(D+=C._legendH=v,C.name=n,C._totalWidth=t+Z):(h=m.getSmartText(C.name,q,z),C.name=h.text,h.tooltext&&(C.originalText=h.tooltext),
h.height<v&&(C._legendTestY=(v-h.height)/2),C._totalWidth=t+Z+M+h.width+ha,D+=C._legendH=V(h.height,v),w=V(h.width,w));if(qa)return E.itemWidth=w+v+ha+M,E.width=E.itemWidth+ga,E.title.text!==n&&(m.setStyle(E.title.style),h=m.getSmartText(E.title.text,d,z),E.title.text=h.text,h.tooltext&&(E.title.originalText=h.tooltext),g=h.width+ga,E.width<g&&(E.initialItemX=(g-E.width)/2,E.width=g),E.initialItemY=h.height+r,D+=E.initialItemY),E.height=E.totalHeight=D,E.height>k&&(E.height=k,E.scroll.enabled=!0,
E.scroll.flatScrollBars=l.flatScrollBars,E.scroll.scrollBar3DLighting=l.scrollBar3DLighting,E.width+=(E.scroll.scrollBarWidth=10)+(E.scroll.scrollBarPadding=2)),e.legendstartx=l.width-p-E.width,e.legendwidth=E.width,e.legendendx=e.legendstartx+e.legendwidth,e.legendheight=E.height,c=da(E.width+c,d),b.chart.marginRight+=c+ha,c;E.enabled=!1;return 0},ob=m.placeLegendBlockBottom=function(b,c,d,k,f){this.configureLegendOptions(b,c.chart,!1,f,d);var e=this.snapLiterals||(this.snapLiterals={}),g=0,h=b.series,
C=b[A],l=C.smartLabel||this.smartLabel,m=b.chart,p=m.spacingBottom,E=m.spacingLeft,m=m.spacingRight,q=b.legend,M,r=q.textPadding,t=q.title.padding,Z,v=q.symbolWidth,z=q.symbolPadding,ha=q.legendHeight,w=c.chart;Z=0;var D=2*k,ga=q.rowHeight,qa=.05*ga,sa=[];M=a(w.minimisewrappinginlegend,0);var w=a(parseInt(w.legendnumcolumns,10),0),oa=0,na=0,H=0,I=g=0,N=q.padding,xa=2*N,N=r+z+N;c=a(c.chart.legendpadding,7)+q.borderWidth/2+1;var G=xa,$=!1,K,ya=[],L=!1,S=0,J=0;0>w&&(w=0);d-=xa;l.setStyle(q.itemStyle);
g=l.getOriSize(pb).height;c=da(c,k-g-8);k-=c;f&&(h=h&&h[0]&&h[0].data);if(typeof h===ab||typeof h.length===ab)return 0;f=h.length;for(g=0;g<f;g+=1)(K=h[g])&&!1!==K.showInLegend&&(K.__i=g,ya.push(K));ya.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=ya.length;l.setStyle(q.itemStyle);for(g=0;g<f;g+=1)$=!0,h=l.getOriSize(ya[g].name),oa=V(oa,h.width),na+=h.width,H+=1;g=na/H;ha=ha+qa+r+z+xa;na+=ha*H;if($){g+=ha;oa+=ha;0<w&&H<w&&(w=H);na<=d&&(0>=w||w===H)?(w=H,I=g=na/H,L=!0):0<w&&
(I=d/w)>g?I>oa&&(I=oa):d>oa&&(M||1.5*g>oa)?(w=ja(d/oa),H<w&&(w=H),I=oa):d>=2*g?(w=ja(d/g),H<w&&(w=H),I=ja(d/w),I>oa&&(I=oa)):(w=1,I=d);q.itemWidth=I;M=I-ha;0>M&&(z=M=r=0);q.symbolPadding=z;q.textPadding=r;q.width=I*w-qa;q.title.text!==n&&(l.setStyle(q.title.style),h=l.getSmartText(q.title.text,d,D),q.title.text=h.text,h.tooltext&&(q.title.originalText=h.tooltext),Z=h.width+xa,q.width<Z&&(q.initialItemX=(Z-q.width)/2,q.width=Z),q.initialItemY=Z=h.height+t);l.setStyle(q.itemStyle);q.reversed&&ya.reverse();
for(g=0;g<f;g+=1){d=ya[g];0===M&&(sa[S]=!0,d.name=n,t=1,r=parseInt(S/w,10),qa=S%w,d._legendX=qa*I,d._legendY=r*ga+xa,d._legendH=t*ga,d._totalWidth=v+z);if(L)h=l.getOriSize(d.name),h.height<ga&&(d._legendTestY=(ga-h.height)/2),d._legendX=J,d._legendY=xa,d._legendH=ga,d._totalWidth=v+N+h.width,J+=h.width+ha;else{h=l.getSmartText(d.name,M,D);d.name=h.text;for(h.tooltext&&(d.originalText=h.tooltext);!0===sa[S];)S+=1;r=h.height/ga;qa=S;for(t=0;t<r;t+=1,qa+=w)sa[qa]=!0;h.height<ga&&(d._legendTestY=(ga-
h.height)/2);r=parseInt(S/w,10);qa=S%w;d._legendX=qa*I;d._legendY=r*ga+xa;d._legendH=t*ga;d._totalWidth=v+N+h.width}S+=1}l=L?1:wa(sa.length/w);q.height=q.totalHeight=G+(l*ga+Z);q.rowHeight=ga;q.legendNumColumns=w;q.height>k&&(q.height=k,q.scroll.enabled=!0,q.scroll.flatScrollBars=C.flatScrollBars,q.scroll.scrollBar3DLighting=C.scrollBar3DLighting,q.width+=(q.scroll.scrollBarWidth=10)+(q.scroll.scrollBarPadding=2));e.legendstartx=E+.5*(C.width-E-m-q.width)+(q.x||0);e.legendwidth=q.width;e.legendendx=
e.legendstartx+e.legendwidth;e.legendstarty=C.height-p-q.height;e.legendheight=q.height;e.legendendy=e.legendstarty+e.legendheight;c+=q.height;b.chart.marginBottom+=c;return c}q.enabled=!1;return 0},$a=function(a,b){return a.value-b.value},la=function(a,b,c){var d=b._originalText;a=a[A].smartLabel;b.text=b.rotation?a.getSmartText(d,c,b._actualWidth).text:a.getSmartText(d,b._actualWidth,c).text;b.centerYAxisName=!0},$b=m.adjustVerticalAxisTitle=function(a,b,c){if(b&&b.text){var d=b.text,f=a[A].smartLabel,
k=2*da(a.chart.marginTop,a.chart.marginBottom)+c,e=c+a.chart.marginTop+a.chart.marginBottom;b.style&&f.setStyle(b.style);d=f.getOriSize(d);void 0===b.centerYAxisName&&(b.centerYAxisName=!0);b.rotation?d.width>k&&(b.y=e/2-(c/2+a.chart.marginTop),b.centerYAxisName=!1):d.height>k&&(b.y=(e/2-(c/2+a.chart.marginTop))/2,b.centerYAxisName=!1)}},wb=m.adjustVerticalCanvasMargin=function(b,c,d,k){var f=c.chart,e=c=0,g=0,h=a(f.canvastopmargin,0),f=a(f.canvasbottommargin,0),C=h/(h+f),n=b.chart.marginTop,l=b.chart.marginBottom;
f>l&&(c+=f-l);h>n&&(c+=h-n);c>d?h>n&&f>l?(e=d*C,g=d*(1-C)):h>n?e=d:g=d:0<c&&(f>l&&(g=f-l),h>n&&(e=h-n));e&&(b.chart.marginTop+=e);g&&(b.chart.marginBottom+=g,k&&k.title&&(k.title.margin+=g));return e+g},jc=m.adjustHorizontalCanvasMargin=function(b,c,d,k,f){var e=c.chart;c=a(e.canvasleftmargin,0);var e=a(e.canvasrightmargin,0),g=c/(c+e),h=0,C=b.chart.marginLeft,n=b.chart.marginRight,l=0,m=0;c>C&&(h+=c-C);e>n&&(h+=e-n);h>d?c>C&&e>n?(l=d*g,m=d*(1-g)):e>n?m=d:l=d:0<h&&(c>C&&(l=c-C),e>n&&(m=e-n));l&&(b.chart.marginLeft+=
l,k&&k.title&&(k.title.margin+=l));m&&(b.chart.marginRight+=m,f&&f.title&&(f.title.margin+=m));return m+l},Nb=function(a,b){return a-b},Ub=m.getDataParser={column:function(c,d,k){var g=c[A],f=d.borderWidth;return function(h,C,n){var l=d.plotgradientcolor,m=d.is3d,p=d.isRoundEdges,E=d.plotBorderColor,q=b(h.color,d.color),M=b(h.ratio,d.ratio),r=T(d.plotBorderAlpha),A=a(h.dashed,d.dashed),t=b(h.dashlen,d.dashLen),Z=b(h.dashgap,d.dashGap),v=d.use3DLighting,z=T(b(h.alpha,d.alpha)).toString(),w={opacity:z/
100},ha=d.isBar,ga=d.fillAangle,D=0>n?ha?180-ga:360-ga:ga,ga=ca(q+Ja+l,z,M,D,p,E,da(z,r).toString(),ha,m),qa=A?e(t,Z,f):"none";C=k.getPointStub(h,n,g.oriCatTmp[C],c,d,d.showValues,d.yAxis);h=k.pointHoverOptions(h,d,{plotType:"column",is3d:m,isBar:ha,use3DLighting:v,isRoundEdged:p,color:q,gradientColor:l,alpha:z,ratio:M,angle:D,borderWidth:f,borderColor:E,borderAlpha:r,borderDashed:A,borderDashGap:Z,borderDashLen:t,shadow:w});C.y=n;C.shadow=w;C.color=ga[0];C.borderColor=ga[1];C.borderWidth=f;C.use3DLighting=
v;C.dashStyle=qa;C.tooltipConstraint=k.tooltipConstraint;C.hoverEffects=h.enabled&&h.options;C.rolloverProperties=h.enabled&&h.rolloverOptions;return C}},line:function(c,d,k){var g=c[A];return function(f,h,C){var n=a(f.alpha,d.lineAlpha),l={opacity:n/100},m=a(f.anchorsides,d.anchorSides,0),p=a(f.anchorborderthickness,d.anchorBorderThickness,1),E=X(b(f.anchorbordercolor,d.anchorBorderColor)),q=X(b(f.anchorbgcolor,d.anchorBgColor)),M=a(f.anchorstartangle,d.anchorStartAngle,90),r=b(f.anchoralpha,d.anchorAlpha),
A=b(f.anchorbgalpha,r),t=a(f.anchorradius,d.anchorRadius),Z=Boolean(a(f.anchorshadow,d.anchorShadow,0));h=k.getPointStub(f,C,g.oriCatTmp[h],c,d,d.showValues,d.yAxis);var v=b(f.anchorimageurl,d.imageUrl),z=b(f.anchorimagescale,d.imageScale),w=b(f.anchorimagealpha,d.imageAlpha);h.y=C;h.shadow=l;h.anchorShadow=d.anchorShadow;h.dashStyle=a(f.dashed,d.lineDashed)?e(d.lineDashLen,d.lineDashGap,d.lineThickness):null;h.color={FCcolor:{color:X(b(f.color,d.lineColor)),alpha:n}};h.valuePosition=b(f.valueposition,
d.valuePosition);C=k.pointHoverOptions(f,d,{plotType:"anchor",anchorBgColor:q,anchorAlpha:r,anchorBgAlpha:A,anchorAngle:M,anchorBorderThickness:p,anchorBorderColor:E,anchorBorderAlpha:r,anchorSides:m,anchorRadius:t,imageUrl:v,imageScale:z,imageAlpha:w,shadow:l});h.marker={enabled:void 0===d.drawAnchors?0!==n:!!d.drawAnchors,shadow:Z&&{opacity:r/100},fillColor:{FCcolor:{color:X(b(f.anchorbgcolor,d.anchorBgColor)),alpha:(b(f.anchorbgalpha,d.anchorBgAlpha)*r/100).toString()}},lineColor:{FCcolor:{color:X(b(f.anchorbordercolor,
d.anchorBorderColor)),alpha:r}},imageUrl:v,imageScale:z,imageAlpha:w,lineWidth:a(f.anchorborderthickness,d.anchorBorderThickness),radius:a(f.anchorradius,d.anchorRadius),symbol:pa(a(f.anchorsides,d.anchorSides)),startAngle:b(f.anchorstartangle,d.anchorAngle)};h.hoverEffects=C.enabled&&C.options;h.rolloverProperties=C.enabled&&C.rolloverOptions;return h}},area:function(c,d,k){var e=c[A];return function(f,g,h){var C=b(f.alpha,d.fillAlpha),n={opacity:V(C,d.lineAlpha)/100,inverted:!0},l=a(f.anchorsides,
d.anchorSides,0),m=a(f.anchorborderthickness,d.anchorBorderThickness,1),p=X(b(f.anchorbordercolor,d.anchorBorderColor)),E=X(b(f.anchorbgcolor,d.anchorBgColor)),q=a(f.anchorstartangle,d.anchorStartAngle,90),M=b(f.anchoralpha,d.anchorAlpha),r=b(f.anchorbgalpha,M),A=a(f.anchorradius,d.anchorRadius),t=Boolean(a(f.anchorshadow,d.anchorShadow,0));g=k.getPointStub(f,h,e.oriCatTmp[g],c,d,d.showValues,d.yAxis);var Z=b(f.anchorimageurl,d.imageUrl),v=b(f.anchorimagescale,d.imageScale),z=b(f.anchorimagealpha,
d.imageAlpha);g.y=h;g.shadow=n;g.anchorShadow=d.anchorShadow;g.color={FCcolor:{color:X(b(f.color,d.fillColor)),alpha:C}};g.valuePosition=b(f.valueposition,d.valuePosition);h=k.pointHoverOptions(f,d,{plotType:"anchor",anchorBgColor:E,anchorAlpha:M,anchorBgAlpha:r,anchorAngle:q,anchorBorderThickness:m,anchorBorderColor:p,anchorBorderAlpha:M,anchorSides:l,anchorRadius:A,imageUrl:Z,imageScale:v,imageAlpha:z,shadow:n});g.marker={enabled:d.drawAnchors,shadow:t&&{opacity:M/100},fillColor:{FCcolor:{color:X(b(f.anchorbgcolor,
d.anchorBgColor)),alpha:(b(f.anchorbgalpha,d.anchorBgAlpha)*M/100).toString()}},lineColor:{FCcolor:{color:X(b(f.anchorbordercolor,d.anchorBorderColor)),alpha:M}},imageUrl:Z,imageScale:v,imageAlpha:z,lineWidth:a(f.anchorborderthickness,d.anchorBorderThickness),radius:A,symbol:pa(a(f.anchorsides,d.anchorSides)),startAngle:b(f.anchorstartangle,d.anchorAngle)};g.hoverEffects=h.enabled&&h.options;g.rolloverProperties=h.enabled&&h.rolloverOptions;g.events={click:d.getLink};return g}}};d.core.options.resizeTrackingInterval=
300;d.core.options.preventTrackResize=!1;m.createChart=function(a,b,c,k,f,e,g){var h=a.jsVars,C,n,l=W[c||(c=a.chartType())],p,E=h.hasNativeMessage,q=a.options,M=a.args,r;r=function(f){var e={renderer:"javascript"},C=h.fcObj,n=C.width,q=C.height,M=l&&l.eiMethods,r=h.overlayButton,A;b.jsVars=a.jsVars;h.container=b;h.hcObj=f;h.type=c;h.width=b.offsetWidth;h.height=b.offsetHeight;h.instanceAPI=p;if(f.hasRendered){d.extend(b,$);if(M&&"string"!==typeof M)for(A in M)b[A]=M[A];h.overlayButtonActive&&r&&(r.innerHTML=
"",r.appendChild(v.createTextNode(h.overlayButtonMessage)),f.container.appendChild(r))}(/\%/g.test(n)||/\%/g.test(q))&&b&&b.parentNode&&!d.core.options.preventTrackResize&&tb(C,b);k&&(k({success:f.hasRendered,ref:b,id:a.id}),f.hasRendered&&(m.raiseEvent("loaded",{type:c,renderer:"javascript"},a,[a.id]),E||(C.__state.firstRenderNotified=!0,setTimeout(function(){m.raiseEvent("rendered",{renderer:"javascript"},C,[C.id])},0))));f.hasRendered&&h.previousDrawCount<h.drawCount&&(e.width=h.width,e.height=
h.height,e.drawCount=h.drawCount,e.displayingMessage=E,e.renderer=C.options.renderer,m.raiseEvent("drawcomplete",e,C,[C.id]),E||g||setTimeout(function(){C.__state&&!C.__state.firstRenderNotified&&m.raiseEvent("rendered",{renderer:"javascript"},C,[C.id]);d.raiseEvent("renderComplete",e,C)},0))};h.instanceAPI&&h.instanceAPI.dispose&&h.instanceAPI.dispose();p=l?new W(c):new W("stub");p.chartInstance=a;p.origRenderWidth=a.__state.renderedWidth;p.origRenderHeight=a.__state.renderedHeight;void 0!==f?"string"===
typeof f&&(f=new ha(b,f,a),E=h.hasNativeMessage=!0):!l||!l.init||l&&"stub"===l.name?(a._chartMessageStyle={color:M.typeNotSupportedMessageColor||q.baseChartMessageColor,fontFamily:M.typeNotSupportedMessageFont||q.baseChartMessageFont,fontSize:M.typeNotSupportedMessageFontSize||q.baseChartMessageFontSize},f=new ha(b,q.typeNotSupportedMessage,a),E=h.hasNativeMessage=!0):h.message?(f=new ha(b,h.message,a),E=h.hasNativeMessage=!0):h.loadError?(a._chartMessageStyle={color:M.dataLoadErrorMessageColor||
q.baseChartMessageColor,fontFamily:M.dataLoadErrorMessageFont||q.baseChartMessageFont,fontSize:M.dataLoadErrorMessageFontSize||q.baseChartMessageFontSize},f=new ha(b,q.dataLoadErrorMessage,a),E=h.hasNativeMessage=!0):h.stallLoad?(a._chartMessageStyle={fontFamily:M.dataLoadStartMessageFont||q.baseChartMessageFont,fontSize:M.dataLoadStartMessageFontSize||q.baseChartMessageFontSize,color:M.dataLoadStartMessageColor||q.baseChartMessageColor},f=new ha(b,q.dataLoadStartMessage,a),E=h.hasNativeMessage=!0):
(d.raiseEvent("internal.drawStart",{chartType:c,logicName:p.name,logicBase:p.base&&p.base.name,defaultSeriesType:p.defaultSeriesType},a),C=a.jsVars&&a.jsVars.themeObject&&a.jsVars.themeObject.getThemedJSONData()||a.getChartData(d.dataFormats.JSON,!0),n=C.data,C.error instanceof Error?(a._chartMessageStyle={fontFamily:M.dataInvalidMessageFont||q.baseChartMessageFont,fontSize:M.dataInvalidMessageFontSize||q.baseChartMessageFontSize,color:M.dataInvalidMessageColor||q.baseChartMessageColor},f=new ha(b,
q.dataInvalidMessage,a),E=h.hasNativeMessage=!0,a.__state.dataReady=!1,g||d.raiseEvent("dataInvalid",{error:C.error},h.fcObj,void 0,function(){m.raiseEvent("dataxmlinvalid",{},a,[a.id])})):(g||m.raiseEvent("dataloaded",{},a,[a.id]),f=p.init(b,n,a,r),p.inited=!0,h.previousDrawCount=h.drawCount,h.drawCount+=1,0===f.series.length?(a._chartMessageStyle={fontFamily:M.dataEmptyMessageFont||q.baseChartMessageFont,fontSize:M.dataEmptyMessageFontSize||q.baseChartMessageFontSize,color:M.dataEmptyMessageColor||
q.baseChartMessageColor},f=new ha(b,q.dataEmptyMessage,a),E=h.hasNativeMessage=!0,a.__state.dataReady=!1,g||m.raiseEvent("nodatatodisplay",{},a,[a.id])):(a.__state.dataReady=!0,E=h.hasNativeMessage=!1,delete h.message)));f||(a._chartMessageStyle={fontFamily:q.baseChartMessageFont,fontSize:q.baseChartMessageFontSize,color:q.baseChartMessageColor},f=new ha(b,"Error rendering chart {0x01}",a),E=h.hasNativeMessage=!0);E&&!p.inited&&p.init(b,n,a,r);f.chart=f.chart||{};f.credits=f.credits||{};f.credits.enabled=
l&&!0===l.creditLabel?!0:!1;!1===e&&(f.chart.animation=!1,f.plotOptions||(f.plotOptions={}),f.plotOptions.series||(f.plotOptions.series={}),f.plotOptions.series.animation=!1);b.style&&(f.chart.containerBackgroundColor=m.getContainerBackgroundColor(a));return p.draw(f,r)};W("base",{useScaleRecursively:!0,tooltipConstraint:"chart",rendererId:"root",canvasPaddingModifiers:["anchor","anchorlabel"],drawAnnotations:!0,draw:function(a,b){var c=this.renderer;c||(c=this.renderer=new W("renderer."+this.rendererId));
this.updateDefaultAnnotations();return c.init(this,a,b)},init:function(b,c,d){var k=this.chartInstance||d,f=k.jsVars;d=f._reflowData||(f._reflowData={});var e=f._reflowClean,h=k.options,n=h.args,l,p;this.dataObj=c=g({},c);p=c.chart=c.chart||c.graph||c.map||{};delete c.graph;delete c.map;d&&!this.stateless&&(l=d.hcJSON,delete d.hcJSON,g(this,d,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),d.hcJSON=l);this.containerElement=b;this.config={};this.smartLabel=f.smartLabel;this.smartLabel.useEllipsesOnOverflow(a(p.useellipseswhenoverflow,
p.useellipsewhenoverflow,1));this.colorManager=new m.colorManager(c,this);this.linkClickFN=M(c,k);this.numberFormatter=new C(c.chart,this);if(!this.standaloneInit)return k._chartMessageStyle={fontFamily:n.typeNotSupportedMessageFont||h.baseChartMessageFont,fontSize:n.typeNotSupportedMessageFontSize||h.baseChartMessageFontSize,color:n.typeNotSupportedMessageColor||h.baseChartMessageColor},new m.createDialog(b,h.typeNotSupportedMessage,k);b=this.chart(b.offsetWidth||parseFloat(b.style.width),b.offsetHeight||
parseFloat(b.style.height),k);d&&!this.stateless&&(d.hcJSON&&g(b,d.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),e&&this.cleanedData&&(this.cleanedData(this,e),this.cleanedData(d,e)));return b},postSpaceManager:function(){var b=this.hcJSON,c=b._FCconf,d=b.chart,k=d.marginLeft,f=d.spacingLeft,e=d.spacingRight,g=c.width-k-d.marginRight,h=b.title,b=b.subtitle,C=c.width,n=h.align,c=h.x,l=h.horizontalPadding,m=h.alignWithCanvas,p=(Y(k)||0)+a(g,C)/2,k=this.snapLiterals||(this.snapLiterals=
{}),g=h._captionWidth,E=b._subCaptionWidth,q=h._lineHeight,M=b._lineHeight,r=h.text;if(void 0===c){switch(n){case ea:c=m?C-d.marginRight-l:C-l;break;case za:c=m?d.marginLeft+l:l;break;default:c=m?p:f+.5*(C-f-e)||C/2}h.align===za?(e=f=0,h.align="start"):h.align===ea?(f=g,e=E,h.align="end"):(f=g/2,e=E/2,h.align="middle");h.x=c;h.y=h.y||d.spacingTop||0;b.y=r?h.y+q+2:h.y||d.spacingTop||0;k.captionstartx=c-f-2;k.captionwidth=g+4;k.captionendx=k.captionstartx+k.captionwidth;k.captionstarty=h.y||0;k.captionheight=
q+2;k.captionendy=k.captionstarty+k.captionheight;k.subcaptionstartx=c-e-2;k.subcaptionwidth=E+4;k.subcaptionendx=k.subcaptionstartx+k.subcaptionwidth;k.subcaptionstarty=b.y||0;k.subcaptionheight=M+2;k.subcaptionendy=k.subcaptionstarty+k.subcaptionheight}},chart:function(c,u){var h=this.name,F=this.dataObj,f=F.chart,C=this.colorManager,l,m,p,E,M,t,Z,v=this.defaultSeriesType,w,ha,ga,qa,oa,xa,N,G,S,K,$,R,la,rb,tb,Eb,db,$a,ob,vb,da,U,T,jc,W,wb,$b,aa,ca,Nb,Ub,pa,Y,wa,ja,ka,Ra,La,Da,Ab,Ob,lb,eb,ab,qb,
ib,xb,Kb,Bb,Ua,Vb,pb,Ga,ub,ta,Wa,ac,nb,Pa,Hb,Ib,oc,pc,yc,gb,Fb,Pb,Oa,Wb,ec,Rb,Tb,Qb,zc,lc,Xb,ua,Lb,Hc,Ka,Mb,kb,yb,zb,Yb,$c,mb,dc,hc,fd,cb,ic,Db,Xa,Jb,Oc,fc,gc,ad;l=Ba(F,c,u,this);S=l.chart;G=l.xAxis;w=l[A];this.snapLiterals||(this.snapLiterals={});$=this.snapLiterals;$.chartstartx=0;$.chartstarty=0;$.chartwidth=c;$.chartheight=u;$.chartendx=c;$.chartendy=u;$.chartcenterx=c/2;$.chartcentery=u/2;$.chartbottommargin=S.spacingBottom;$.chartleftmargin=S.spacingLeft;$.chartrightmargin=S.spacingRight;$.charttopmargin=
S.spacingTop;this.updateSnapPoints&&this.updateSnapPoints();this.postHCJSONCreation&&this.postHCJSONCreation.call(this,l);d.raiseEvent("internal.postlogic",this,this.chartInstance);l.labels.smartLabel=t=w.smartLabel=this.smartLabel;w.width=c;w.height=u;ga=l.plotOptions;w.isDual=this.isDual;w.numberFormatter=this.numberFormatter;w.axisGridManager=new k(v,f);w.tooltext=f.plottooltext;w.trendLineToolText=f.trendlinetooltext;S.is3D=m=w.is3d=/3d$/.test(v);S.isBar=ha=w.isBar=this.isBar;Z=/^pie/.test(v);
N=1==f.useroundedges;xa=m?ya.chart3D:ya.chart2D;S.events.click=l.plotOptions.series.point.events.click=this.linkClickFN;S.defaultSeriesType=v;Eb=0<f.palette&&6>f.palette?f.palette:a(this.paletteIndex,1);Eb-=1;S.paletteIndex=Eb;S.usePerPointLabelColor=f.colorlabelsfromplot==Qa;S.syncLabelWithAnchor=a(f.synclabelwithanchoronhover,1);S.useRoundEdges=N&&!m&&!this.distributedColumns&&"pie"!==this.defaultSeriesType;void 0!==b(f.clickurl)&&(S.link=f.clickurl,S.style.cursor="pointer",l.plotOptions.series.point.events.click=
function(){S.events.click.call({link:f.clickurl})});db=b(f.basefont,"Verdana,sans");$a=Q(f.basefontsize,10);ob=b(f.basefontcolor,C.getColor(xa.baseFontColor));vb=b(f.outcnvbasefont,db);da=Q(f.outcnvbasefontsize,$a);U=da+Ea;T=b(f.outcnvbasefontcolor,ob).replace(/^#?([a-f0-9]+)/ig,"#$1");wb=$a;$a+=Ea;ob=ob.replace(/^#?([a-f0-9]+)/ig,"#$1");w.trendStyle=w.outCanvasStyle={fontFamily:vb,color:T,fontSize:U};jc=P(w.trendStyle);w.inCanvasStyle={fontFamily:db,fontSize:$a,color:ob};W=P(w.inCanvasStyle);w.divlineStyle=
{fontFamily:db,fontSize:$a,color:ob,lineHeight:W};G.labels.style={fontFamily:b(f.labelfont,vb),fontSize:a(f.labelfontsize,da)+Ea,color:b(f.labelfontcolor,T)};G.labels.style.lineHeight=P(G.labels.style);G.steppedLabels.style={fontFamily:vb,fontSize:U,lineHeight:jc,color:T,visibility:"hidden"};l.yAxis[0].labels.style={fontFamily:vb,fontSize:U,lineHeight:jc,color:T};l.yAxis[1].labels.style={fontFamily:vb,fontSize:U,lineHeight:jc,color:T};aa=b(f.legenditemfont,vb);ca=Q(f.legenditemfontsize,da);Nb=b(f.legenditemfontcolor,
T).replace(/^#?([a-f0-9]+)/ig,"#$1");Ub=na[a(f.legenditemfontbold,0)]||"";$b=Q(f.legendcaptionfontsize,da)+Ea;ca+=Ea;l.legend.itemStyle={fontFamily:aa,fontSize:ca,color:Nb,fontWeight:Ub};P(l.legend.itemStyle);l.legend.itemHiddenStyle={fontFamily:aa,fontSize:ca,color:b(f.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/ig,"#$1"),fontWeight:Ub};P(l.legend.itemHiddenStyle);l.legend.itemHoverStyle={color:b(f.legenditemhoverfontcolor,Nb).replace(/^#?([a-f0-9]+)/ig,"#$1")};l.legend.title.style={fontFamily:b(f.legendcaptionfont,
aa),fontSize:$b,color:b(f.legendcaptionfontcolor,T).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontWeight:na[a(f.legendcaptionfontbold,1)]||""};P(l.legend.title.style);l.legend.title.align=Sb[f.legendcaptionalignment&&f.legendcaptionalignment.toLowerCase()||Fa]||Sb.center;K=(K=z(f.valuebordercolor,n))?I(K,a(f.valueborderalpha,f.valuealpha,100)):n;l.plotOptions.series.dataLabels.style={fontFamily:b(f.valuefont,db),fontSize:b(f.valuefontsize,parseInt($a,10))+Ea,lineHeight:W,color:I(b(f.valuefontcolor,ob),a(f.valuefontalpha,
f.valuealpha,100)),fontWeight:a(f.valuefontbold)?"bold":"normal",fontStyle:a(f.valuefontitalic)?"italic":"normal",border:K||f.valuebgcolor?a(f.valueborderthickness,1)+"px solid":"",borderColor:K,borderThickness:a(f.valueborderthickness,1),borderPadding:a(f.valueborderpadding,2),borderRadius:a(f.valueborderradius,0),backgroundColor:f.valuebgcolor?I(f.valuebgcolor,a(f.valuebgalpha,f.valuealpha,100)):n,borderDash:a(f.valueborderdashed,0)?e(a(f.valueborderdashlen,4),a(f.valueborderdashgap,2),a(f.valueborderthickness,
1)):void 0};P(l.plotOptions.series.dataLabels.style);l.plotOptions.series.dataLabels.color=l.plotOptions.series.dataLabels.style.color;l.tooltip.style={fontFamily:db,fontSize:$a,lineHeight:W,color:ob};l.title.style={fontFamily:b(f.captionfont,vb),color:b(f.captionfontcolor,T).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:a(f.captionfontsize,da+3)+Ea,fontWeight:0===a(f.captionfontbold)?"normal":"bold"};l.title.align=b(f.captionalignment,Fa);l.title.isOnTop=a(f.captionontop,1);l.title.alignWithCanvas=
a(f.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1);l.title.horizontalPadding=a(f.captionhorizontalpadding,l.title.alignWithCanvas?0:15);P(l.title.style);l.subtitle.style={fontFamily:b(f.subcaptionfont,f.captionfont,vb),color:b(f.subcaptionfontcolor,f.captionfontcolor,T).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:a(f.subcaptionfontsize,a(V(a(f.captionfontsize)-3,-1),da)+a(this.subTitleFontSizeExtender,1))+Ea,fontWeight:0===a(f.subcaptionfontbold,this.subTitleFontWeight,f.captionfontbold)?"normal":
"bold"};l.subtitle.align=l.title.align;l.subtitle.isOnTop=l.title.isOnTop;l.subtitle.alignWithCanvas=l.title.alignWithCanvas;l.subtitle.horizontalPadding=l.title.horizontalPadding;P(l.subtitle.style);K=(K=z(f.xaxisnamebordercolor,n))?I(K,a(f.xaxisnameborderalpha,f.xaxisnamealpha,100)):n;G.title.style={fontFamily:b(f.xaxisnamefont,vb),fontSize:b(f.xaxisnamefontsize,parseInt(U,10))+Ea,color:I(b(f.xaxisnamefontcolor,T),a(f.xaxisnamefontalpha,f.xaxisnamealpha,100)),fontWeight:a(f.xaxisnamefontbold,1)?
"bold":"normal",fontStyle:a(f.xaxisnamefontitalic)?"italic":"normal",border:K||f.xaxisnamebgcolor?a(f.xaxisnameborderthickness,1)+"px solid":void 0,borderColor:K,borderThickness:a(f.xaxisnameborderthickness,1),borderPadding:a(f.xaxisnameborderpadding,2),borderRadius:a(f.xaxisnameborderradius,0),backgroundColor:f.xaxisnamebgcolor?I(f.xaxisnamebgcolor,a(f.xaxisnamebgalpha,f.xaxisnamealpha,100)):n,borderDash:a(f.xaxisnameborderdashed,0)?e(a(f.xaxisnameborderdashlen,4),a(f.xaxisnameborderdashgap,2),a(f.xaxisnameborderthickness,
1)):void 0};P(G.title.style);K=(K=b(f.pyaxisnamebordercolor,f.yaxisnamebordercolor,n))?I(K,a(f.pyaxisnameborderalpha,f.yaxisnameborderalpha,f.pyaxisnamealpha,f.yaxisnamealpha,100)):n;l.yAxis[0].title.style={fontFamily:b(f.pyaxisnamefont,f.yaxisnamefont,vb),fontSize:b(f.pyaxisnamefontsize,f.yaxisnamefontsize,parseInt(U,10))+Ea,color:I(b(f.pyaxisnamefontcolor,f.yaxisnamefontcolor,T),a(f.pyaxisnamefontalpha,f.yaxisnamefontalpha,f.pyaxisnamealpha,f.yaxisnamealpha,100)),fontWeight:a(f.pyaxisnamefontbold,
f.yaxisnamefontbold,1)?"bold":"normal",fontStyle:a(f.pyaxisnamefontitalic,f.yaxisnamefontitalic)?"italic":"normal",border:K||f.pyaxisnamebgcolor||f.yaxisnamebgcolor?a(f.pyaxisnameborderthickness,f.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:K,borderThickness:a(f.pyaxisnameborderthickness,f.yaxisnameborderthickness,1),borderPadding:a(f.pyaxisnameborderpadding,f.yaxisnameborderpadding,2),borderRadius:a(f.pyaxisnameborderradius,f.yaxisnameborderradius,0),backgroundColor:f.pyaxisnamebgcolor||
f.yaxisnamebgcolor?I(b(f.pyaxisnamebgcolor,f.yaxisnamebgcolor),a(f.pyaxisnamebgalpha,f.yaxisnamebgalpha,f.pyaxisnamealpha,f.yaxisnamealpha,100)):n,borderDash:a(f.pyaxisnameborderdashed,f.yaxisnameborderdashed,0)?e(a(f.pyaxisnameborderdashlen,f.yaxisnameborderdashlen,4),a(f.pyaxisnameborderdashgap,f.yaxisnameborderdashgap,2),a(f.pyaxisnameborderthickness,f.yaxisnameborderthickness,1)):void 0};P(l.yAxis[0].title.style);l.yAxis[1].title.style={fontFamily:vb,color:T,fontSize:U,lineHeight:void 0,fontWeight:"bold"};
K=(K=b(f.syaxisnamebordercolor,f.yaxisnamebordercolor,n))?I(K,a(f.syaxisnameborderalpha,f.yaxisnameborderalpha,f.syaxisnamealpha,f.yaxisnamealpha,100)):n;l.yAxis[1].title.style={fontFamily:b(f.syaxisnamefont,f.yaxisnamefont,vb),fontSize:b(f.syaxisnamefontsize,f.yaxisnamefontsize,parseInt(U,10))+Ea,color:I(b(f.syaxisnamefontcolor,f.yaxisnamefontcolor,T),a(f.syaxisnamefontalpha,f.yaxisnamefontalpha,f.syaxisnamealpha,f.yaxisnamealpha,100)),fontWeight:a(f.syaxisnamefontbold,f.yaxisnamefontbold,1)?"bold":
"normal",fontStyle:a(f.syaxisnamefontitalic,f.yaxisnamefontitalic)?"italic":"normal",border:K||f.syaxisnamebgcolor||f.yaxisnamebgcolor?a(f.syaxisnameborderthickness,f.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:K,borderThickness:a(f.syaxisnameborderthickness,f.yaxisnameborderthickness,1),borderPadding:a(f.syaxisnameborderpadding,f.yaxisnameborderpadding,2),borderRadius:a(f.syaxisnameborderradius,f.yaxisnameborderradius,0),backgroundColor:f.syaxisnamebgcolor||f.yaxisnamebgcolor?I(b(f.syaxisnamebgcolor,
f.yaxisnamebgcolor),a(f.syaxisnamebgalpha,f.yaxisnamebgalpha,f.syaxisnamealpha,f.yaxisnamealpha,100)):n,borderDash:a(f.syaxisnameborderdashed,f.yaxisnameborderdashed,0)?e(a(f.syaxisnameborderdashlen,f.yaxisnameborderdashlen,4),a(f.syaxisnameborderdashgap,f.yaxisnameborderdashgap,2),a(f.syaxisnameborderthickness,f.yaxisnameborderthickness,1)):void 0};P(l.yAxis[1].title.style);S.overlapColumns=a(f[ha&&"overlapbars"||"overlapcolumns"],m?0:1);l.orphanStyles={defaultStyle:{style:g({},w.inCanvasStyle)},
connectorlabels:{style:g({},l.plotOptions.series.dataLabels)},vyaxisname:{style:g({},l.yAxis[0].title.style)}};l.plotOptions.series.dataLabels.tlLabelStyle={fontFamily:H(f.tlfont,db),color:X(H(f.tlfontcolor,ob)),fontSize:Q(f.tlfontsize,wb)+"px"};P(l.plotOptions.series.dataLabels.tlLabelStyle);l.plotOptions.series.dataLabels.trLabelStyle={fontFamily:H(f.trfont,db),color:X(H(f.trfontcolor,ob)),fontSize:Q(f.trfontsize,wb)+"px"};P(l.plotOptions.series.dataLabels.trLabelStyle);l.plotOptions.series.dataLabels.blLabelStyle=
{fontFamily:H(f.blfont,db),color:X(H(f.blfontcolor,ob)),fontSize:Q(f.blfontsize,wb)+"px"};P(l.plotOptions.series.dataLabels.blLabelStyle);l.plotOptions.series.dataLabels.brLabelStyle={fontFamily:H(f.brfont,db),color:X(H(f.brfontcolor,ob)),fontSize:Q(f.brfontsize,wb)+"px"};P(l.plotOptions.series.dataLabels.brLabelStyle);this.parseStyles(l);delete l.xAxis.labels.style.backgroundColor;delete l.xAxis.labels.style.borderColor;delete l.yAxis[0].labels.style.backgroundColor;delete l.yAxis[0].labels.style.borderColor;
delete l.yAxis[1].labels.style.backgroundColor;delete l.yAxis[1].labels.style.borderColor;w.showTooltip=a(f.showtooltip,this.showtooltip,1);w.tooltipSepChar=b(f.tooltipsepchar,this.tooltipsepchar,Ya);w.showValues=a(f.showvalues,this.showValues,1);w.seriesNameInToolTip=a(f.seriesnameintooltip,1);w.showVLines=a(f.showvlines,1);w.showVLinesOnTop=a(f.showvlinesontop,0);w.showVLineLabels=a(f.showvlinelabels,this.showVLineLabels,1);w.showVLineLabelBorder=a(f.showvlinelabelborder,1);w.rotateVLineLabels=
a(f.rotatevlinelabels,0);w.vLineColor=b(f.vlinecolor,"333333");w.vLineLabelColor=b(f.vlinelabelcolor);w.vLineThickness=b(f.vlinethickness,1);w.vLineAlpha=a(f.vlinealpha,80);w.vLineLabelBgColor=b(f.vlinelabelbgcolor,"ffffff");w.vLineLabelBgAlpha=a(f.vlinelabelbgalpha,m?50:100);w.trendlineColor=b(f.trendlinecolor,"333333");w.trendlineThickness=b(f.trendlinethickness,1);w.trendlineAlpha=a(f.trendlinealpha);w.showTrendlinesOnTop=b(f.showtrendlinesontop,0);w.trendlineValuesOnOpp=b(f.trendlinevaluesonopp,
f.trendlinevaluesonright,0);w.trendlinesAreDashed=a(f.trendlinesaredashed,0);w.trendlinesDashLen=a(f.trendlinedashlen,5);w.trendlinesDashGap=a(f.trendlinedashgap,2);w.showTrendlines=a(f.showtrendlines,1);w.showTrendlineLabels=a(f.showtrendlinelabels,this.showTrendlineLabels,1);w.flatScrollBars=a(f.flatscrollbars,0);w.scrollBar3DLighting=a(f.scrollbar3dlighting,1);S.anchorTrackingRadius=a(f.anchortrackingradius,sa?fa:q);l.plotOptions.series.connectNullData=a(f.connectnulldata,0);S.backgroundColor=
{FCcolor:{color:b(f.bgcolor,C.getColor(xa.bgColor)),alpha:b(f.bgalpha,C.getColor(xa.bgAlpha)),angle:b(f.bgangle,C.getColor(xa.bgAngle)),ratio:b(f.bgratio,C.getColor(xa.bgRatio))}};S.rotateValues=a(f.rotatevalues,0);S.placeValuesInside=a(f.placevaluesinside,0);S.valuePosition=b(f.valueposition,"auto");S.valuePadding=a(f.valuepadding,2);S.managePlotOverflow=a(f.manageplotoverflow,1);S.borderColor=I(b(f.bordercolor,m?"#666666":C.getColor("borderColor")),b(f.borderalpha,m?"100":C.getColor("borderAlpha")));
qa=a(f.showborder,m?0:1);S.borderWidth=qa?a(f.borderthickness,1):0;S.borderRadius=a(f.borderradius,0);S.borderDashStyle=a(f.borderdashed,0)?e(a(f.borderdashlen,4),a(f.borderdashgap,2),S.borderWidth):void 0;S.plotBorderColor=I(b(f.canvasbordercolor,C.getColor("canvasBorderColor")),b(f.canvasborderalpha,C.getColor("canvasBorderAlpha")));"0"!==f.showcanvasborder&&(oa=Boolean(b(f.canvasborderthickness,N?0:1)),"1"!==f.showaxislines&&"1"!==f.showxaxisline&&"1"!==f.showyaxisline&&"1"!==f.showsyaxisline||
"1"===f.showcanvasborder||(oa=0));S.plotBorderWidth=m||!oa?0:a(f.canvasborderthickness,this.canvasborderthickness,S.useRoundEdges?1:2);S.bgSWF=b(f.bgimage,f.bgswf);S.bgSWFAlpha=a(f.bgimagealpha,f.bgswfalpha,100);pa=b(f.bgimagedisplaymode,"none").toLowerCase();Y=H(f.bgimagevalign,n).toLowerCase();wa=H(f.bgimagehalign,n).toLowerCase();"tile"==pa||"fill"==pa||"fit"==pa?(Y!=Ia&&"middle"!=Y&&Y!=Ta&&(Y="middle"),wa!=za&&"middle"!=wa&&wa!=ea&&(wa="middle")):(Y!=Ia&&"middle"!=Y&&Y!=Ta&&(Y=Ia),wa!=za&&"middle"!=
wa&&wa!=ea&&(wa=za));S.bgImageDisplayMode=pa;S.bgImageVAlign=Y;S.bgImageHAlign=wa;S.bgImageScale=a(f.bgimagescale,100);S.logoURL=H(f.logourl);S.logoPosition=b(f.logoposition,"tl").toLowerCase();S.logoAlpha=a(f.logoalpha,100);S.logoLink=H(f.logolink);S.logoScale=a(f.logoscale,100);S.logoLeftMargin=a(f.logoleftmargin,0);S.logoTopMargin=a(f.logotopmargin,0);ja=S.toolbar={button:{}};ka=ja.button;ka.scale=a(f.toolbarbuttonscale,1.15);ka.width=a(f.toolbarbuttonwidth,15);ka.height=a(f.toolbarbuttonheight,
15);ka.radius=a(f.toolbarbuttonradius,2);ka.spacing=a(f.toolbarbuttonspacing,5);ka.fill=I(b(f.toolbarbuttoncolor,"ffffff"));ka.labelFill=I(b(f.toolbarlabelcolor,"cccccc"));ka.symbolFill=I(b(f.toolbarsymbolcolor,"ffffff"));ka.hoverFill=I(b(f.toolbarbuttonhovercolor,"ffffff"));ka.stroke=I(b(f.toolbarbuttonbordercolor,"bbbbbb"));ka.symbolStroke=I(b(f.toolbarsymbolbordercolor,"9a9a9a"));ka.strokeWidth=a(f.toolbarbuttonborderthickness,1);ka.symbolStrokeWidth=a(f.toolbarsymbolborderthickness,1);Ra=ka.symbolPadding=
a(f.toolbarsymbolpadding,5);ka.symbolHPadding=a(f.toolbarsymbolhpadding,Ra);ka.symbolVPadding=a(f.toolbarsymbolvpadding,Ra);La=ja.position=b(f.toolbarposition,"tr").toLowerCase();switch(La){case "tr":case "rt":case "top right":case "right top":La="tr";break;case "br":case "rb":case "bottom right":case "right bottom":La="br";break;case "tl":case "lt":case "top left":case "left top":La="tl";break;case "bl":case "lb":case "bottom left":case "left bottom":La="bl";break;default:La="tr"}Da=ja.hAlign="left"===
(n+f.toolbarhalign).toLowerCase()?"l":La.charAt(1);Ab=ja.vAlign="bottom"===(n+f.toolbarvalign).toLowerCase()?"b":La.charAt(0);ja.hDirection=a(f.toolbarhdirection,"r"===Da?-1:1);ja.vDirection=a(f.toolbarvdirection,"b"===Ab?-1:1);ja.vMargin=a(f.toolbarvmargin,6);ja.hMargin=a(f.toolbarhmargin,10);ja.x=a(f.toolbarx,"l"===Da?0:c);ja.y=a(f.toolbary,"t"===Ab?0:u);Ob=b(f.divlinecolor,C.getColor(xa.divLineColor));lb=b(f.divlinealpha,m?C.getColor("divLineAlpha3D"):C.getColor("divLineAlpha"));eb=a(f.divlinethickness,
1);ab=Boolean(a(f.divlinedashed,f.divlineisdashed,this.divLineIsDashed,0));qb=a(f.divlinedashlen,4);ib=a(f.divlinedashgap,2);l.yAxis[0].gridLineColor=I(Ob,lb);l.yAxis[0].gridLineWidth=eb;l.yAxis[0].gridLineDashStyle=ab?e(qb,ib,eb):"none";l.yAxis[0].alternateGridColor=ha?I(b(f.alternatevgridcolor,C.getColor("altVGridColor")),1===a(f.showalternatevgridcolor,1)?b(f.alternatevgridalpha,C.getColor("altVGridAlpha")):Ha):I(b(f.alternatehgridcolor,C.getColor("altHGridColor")),"0"===f.showalternatehgridcolor?
0:b(f.alternatehgridalpha,C.getColor("altHGridAlpha")));Hb=a(f.vdivlinethickness,1);Ib=Boolean(a(f.vdivlinedashed,f.vdivlineisdashed,0));oc=a(f.vdivlinedashlen,4);pc=a(f.vdivlinedashgap,2);G.gridLineColor=I(b(f.vdivlinecolor,C.getColor(xa.divLineColor)),b(f.vdivlinealpha,C.getColor("divLineAlpha")));G.gridLineWidth=Hb;G.gridLineDashStyle=Ib?e(oc,pc,Hb):"none";G.alternateGridColor=I(b(f.alternatevgridcolor,C.getColor("altVGridColor")),"1"===f.showalternatehgridcolor?b(f.alternatevgridalpha,C.getColor("altVGridAlpha")):
0);Kb=b(f.canvasbgcolor,C.getColor(xa.canvasBgColor));Ua=b(f.canvasbgalpha,C.getColor("canvasBgAlpha"));b(f.showcanvasbg,Qa)==Ha&&(Ua="0");l.plotOptions.series.shadow=a(f.showshadow,f.showcolumnshadow,this.defaultPlotShadow,C.getColor("showShadow"));this.inversed&&(l.yAxis[0].reversed=!0,l.yAxis[1].reversed=!0);this.isStacked&&(this.distributedColumns?(w.showStackTotal=Boolean(a(f.showsum,1)),M=a(f.usepercentdistribution,1),xb=a(f.showpercentvalues,0),Bb=a(f.showpercentintooltip,M,0),w.showXAxisPercentValues=
a(f.showxaxispercentvalues,1)):(w.showStackTotal=Boolean(a(this.showSum,f.showsum,0)),M=a(this.stack100percent,f.stack100percent,0),xb=a(f.showpercentvalues,M,0),Bb=a(f.showpercentintooltip,xb)),w.showPercentValues=xb,w.showPercentInToolTip=Bb,M?(w.isValueAbs=!0,ga[v].stacking="percent",w[0].stacking100Percent=!0):ga[v].stacking="normal");this.isDual&&("0"===f.primaryaxisonleft&&(l.yAxis[0].opposite=!0,l.yAxis[1].opposite=!1),l.yAxis[0].showAlways=!0,l.yAxis[1].showAlways=!0);S.useRoundEdges&&(l.plotOptions.series.shadow=
a(f.showshadow,f.showcolumnshadow,1),l.plotOptions.series.borderRadius=1,l.tooltip.style.borderRadius="2px",S.plotBorderRadius=3,oa||(S.plotBorderWidth=0),S.plotShadow=l.plotOptions.series.shadow?{enabled:!0,opacity:Ua/100}:0);1===a(f.use3dlighting,1)&&(l.legend.lighting3d=!0);l.plotOptions.series.userMaxColWidth=ha?f.maxbarheight:a(f.maxcolwidth,this.maxColWidth);l.plotOptions.series.maxColWidth=ia(a(l.plotOptions.series.userMaxColWidth,50))||1;l.title.text=L(f.caption);l.subtitle.text=L(f.subcaption);
0===a(f.showtooltip,this.showtooltip)&&(l.tooltip.enabled=!1);Vb=l.tooltip.style;Vb.backgroundColor=I(b(Vb.backgroundColor,f.tooltipbgcolor,C.getColor("toolTipBgColor")),b(f.tooltipbgalpha,100));Vb.borderColor=I(b(Vb.borderColor,f.tooltipbordercolor,C.getColor("toolTipBorderColor")),b(f.tooltipborderalpha,100));l.tooltip.shadow=a(f.showtooltipshadow,f.showshadow,1)?{enabled:!0,opacity:V(a(f.tooltipbgalpha,100),a(f.tooltipborderalpha,100))/100}:!1;l.tooltip.constrain=a(f.constraintooltip,1);Vb.borderWidth=
a(f.tooltipborderthickness,1)+"px";f.tooltipborderradius&&(Vb.borderRadius=a(f.tooltipborderradius,1)+"px");Vb.padding=a(f.tooltippadding,this.tooltippadding,3)+"px";f.tooltipcolor&&(Vb.color=X(f.tooltipcolor));w.userPlotSpacePercent=l.plotOptions.series.userPlotSpacePercent=f.plotspacepercent;pb=a(f.plotspacepercent,20)%100;w.plotSpacePercent=l.plotOptions.series.groupPadding=pb/200;m&&!Z?(S.series2D3Dshift="mscombi3d"===h?!0:Boolean(a(f.use3dlineshift,0)),S.canvasBaseColor3D=b(f.canvasbasecolor,
C.getColor("canvasBaseColor3D")),S.canvasBaseDepth=a(f.canvasbasedepth,10),S.canvasBgDepth=a(f.canvasbgdepth,3),S.showCanvasBg=Boolean(a(f.showcanvasbg,1)),S.showCanvasBase=Boolean(a(f.showcanvasbase,1)),ha?(S.xDepth=5,S.yDepth=5,S.showCanvasBg&&(w.marginTopExtraSpace+=S.canvasBgDepth),w.marginLeftExtraSpace+=S.yDepth+(S.showCanvasBase?S.canvasBaseDepth:0),w.marginBottomExtraSpace+=5):(S.xDepth=10,S.yDepth=10,S.showCanvasBg&&(w.marginRightExtraSpace+=S.canvasBgDepth),w.marginBottomExtraSpace+=S.yDepth+
(S.showCanvasBase?S.canvasBaseDepth:0)),Kb=Kb.split(Ja)[0],Ua=Ua.split(Ja)[0],S.use3DLighting=Boolean(a(f.use3dlighting,1)),S.plotBackgroundColor=S.use3DLighting?{FCcolor:{color:r(Kb,85)+Ja+J(Kb,55),alpha:Ua+Ja+Ua,ratio:Za,angle:sb(c-(S.marginLeft+S.marginRight),u-(S.marginTop+S.marginBottom),1)}}:I(Kb,Ua),S.canvasBgColor=I(r(Kb,80),Ua),p=b(f.zeroplanecolor,f.divlinecolor,C.getColor(xa.divLineColor)),E=b(f.zeroplanealpha,f.divlinealpha,C.getColor("divLineAlpha")),S.zeroPlaneColor=I(p,E),S.zeroPlaneBorderColor=
I(b(f.zeroplanebordercolor,p),a(f.zeroplaneshowborder,1)?E:0),S.zeroPlaneShowBorder=a(f.zeroplaneshowborder,1)):(S.is3D=!1,S.plotBackgroundColor={FCcolor:{color:Kb,alpha:Ua,angle:b(f.canvasbgangle,C.getColor("canvasBgAngle")),ratio:b(f.canvasbgratio,C.getColor("canvasBgRatio"))}});this.parseExportOptions(l);this.parseHoverEffectOptions(S);this.preSeriesAddition&&this.preSeriesAddition(l,F,c,u);this.series&&this.series(F,l,h,c,u);this.postSeriesAddition(l,F,c,u);this.spaceManager(l,F,c,u);this.postSpaceManager&&
this.postSpaceManager(l,F,c,u);Ga=a(f.drawquadrant,0);w.isXYPlot&&Ga&&(ub=G.min,ta=G.max,Wa=l.yAxis[0].min,ac=l.yAxis[0].max,nb=a(f.quadrantxval,(ub+ta)/2),Pa=a(f.quadrantyval,(Wa+ac)/2),Pa>=Wa&&Pa<=ac&&nb>=ub&&nb<=ta&&(yc=I(b(f.quadrantlinecolor,S.plotBorderColor),b(f.quadrantlinealpha,Na)),gb=a(f.quadrantlinethickness,S.plotBorderWidth),Fb=a(f.quadrantlinedashed,f.quadrantlineisdashed,0),Pb=a(f.quadrantlinedashLen,4),Oa=a(f.quadrantlinedashgap,2),Wb=H(f.quadrantlabeltl,n),ec=H(f.quadrantlabeltr,
n),Rb=H(f.quadrantlabelbl,n),Tb=H(f.quadrantlabelbr,n),Qb=a(f.quadrantlabelpadding,3),zc=Fb?e(Pb,Oa,gb):"none",G.plotLines.push({color:yc,value:nb,width:gb,dashStyle:zc,zIndex:3}),l.yAxis[0].plotLines.push({color:yc,value:Pa,width:gb,dashStyle:zc,zIndex:3}),lc=c-S.marginRight-S.marginLeft,Xb=u-S.marginTop-S.marginBottom,kb=w.inCanvasStyle,ua=lc/(ta-ub)*(nb-ub),Lb=lc-ua,Ka=Xb/(ac-Wa)*(Pa-Wa),Hc=Xb-Ka,ua-=Qb,Lb-=Qb,Hc-=Qb,Ka-=Qb,yb=Qb+Ea,zb=Xb-Qb+Ea,Yb=Qb+Ea,$c=lc-Qb+Ea,t.setStyle(kb),0<Hc&&(Wb!==n&&
0<ua&&(Mb=t.getSmartText(Wb,ua,Hc),l.labels.items.push({html:Mb.text,zIndex:3,vAlign:Ia,style:{left:Yb,top:yb,fontSize:kb.fontSize,lineHeight:kb.lineHeight,fontFamily:kb.fontFamily,color:kb.color}})),ec!==n&&0<Lb&&(Mb=t.getSmartText(ec,Lb,Hc),l.labels.items.push({html:Mb.text,textAlign:ea,vAlign:Ia,zIndex:3,style:{left:$c,top:yb,fontSize:kb.fontSize,lineHeight:kb.lineHeight,fontFamily:kb.fontFamily,color:kb.color}}))),0<Ka&&(Rb!==n&&0<ua&&(Mb=t.getSmartText(Rb,ua,Ka),l.labels.items.push({html:Mb.text,
vAlign:Ta,zIndex:3,style:{left:Yb,top:zb,fontSize:kb.fontSize,lineHeight:kb.lineHeight,fontFamily:kb.fontFamily,color:kb.color}})),Tb!==n&&0<Lb&&(Mb=t.getSmartText(Tb,Lb,Ka),l.labels.items.push({html:Mb.text,textAlign:ea,vAlign:Ta,zIndex:3,style:{left:$c,top:zb,fontSize:kb.fontSize,lineHeight:kb.lineHeight,fontFamily:kb.fontFamily,color:kb.color}})))));if(this.hasVDivLine&&(mb=a(f.showvdivlines,0),dc=a(f.numvdivlines,0)+1,mb&&(dc=w.x.catCount-1),1<dc)){cb=G.min;ic=w.x.catCount-1;Db=G.max;Jb=ic/dc;
Oc=!0;fc=cb;G.scroll&&!isNaN(G.scroll.viewPortMax)&&(Db=G.scroll.viewPortMax);hc=b(f.vdivlinecolor,Ob);fd=a(f.vdivlinealpha,lb);Hb=a(f.vdivlinethickness,eb);Ib=a(f.vdivlinedashed,f.vdivlineisdashed,ab);oc=a(f.vdivlinedashlen,qb);pc=a(f.vdivlinedashgap,ib);(ad=a(f.showalternatevgridcolor,0))&&(gc=I(b(f.alternatevgridcolor,C.getColor("altVGridColor")),b(f.alternatevgridalpha,C.getColor("altVGridAlpha"))));for(Xa=Jb;Xa<ic;Xa+=Jb,Oc=!Oc)Oc&&ad&&G.plotBands.push({isNumVDIV:!0,color:gc,from:fc,to:Xa,zIndex:1}),
G.plotLines.push({isNumVDIV:!0,width:Hb,color:I(hc,fd),dashStyle:Ib?e(oc,pc,Hb):"none",value:Xa,zIndex:1}),fc=Xa;Oc&&ad&&G.plotBands.push({isNumVDIV:!0,color:gc,from:fc,to:Db,zIndex:1})}R=S.marginTop;la=S.marginBottom;rb=S.marginLeft;tb=S.marginRight;$.canvasstartx=rb;$.canvasstarty=R;$.canvasendx=c-tb;$.canvasendy=u-la;$.canvaswidth=$.canvasendx-$.canvasstartx;$.canvasheight=$.canvasendy-$.canvasstarty;l.legend&&l.legend.enabled&&"vertical"===l.legend.layout&&($.legendstarty=R+.5*(w.height-la-R-
$.legendheight)+(l.legend.y||0),$.legendendy=$.legendstarty+$.legendheight);m&&S.xDepth>S.marginLeft&&(S.marginLeft=S.xDepth);D.console&&D.console.log&&D.FC_DEV_ENVIRONMENT&&console.log(l);return l},parseHoverEffectOptions:function(c){var d=this.dataObj.chart,k;c.showHoverEffect=d.showhovereffect;c.plotHoverEffect=a(d.plothovereffect,d.anchorhovereffect,c.showHoverEffect);k=c.plotHoverEffects={enabled:c.plotHoverEffect};k.highlight=a(d.highlightonhover,d.highlightplotonhover,c.plotHoverEffect);k.columnHighlight=
a(k.highlight,d.highlightcolumnonhover,d.highlightbaronhover);k.anchorHighlight=a(k.highlight,d.highlightanchoronhover);k.imageHighlight=a(k.highlight,d.highlightanchorimageonhover);k.anchorImageHoverAlpha=b(d.anchorimagehoveralpha);k.anchorImageHoverScale=b(d.anchorimagehoverscale);k.bubbleHighlight=a(k.highlight,d.highlightbubbleonhover);k.color=b(d.plotfillhovercolor,d.columnhovercolor,d.barhovercolor,d.bubblehovercolor);k.alpha=b(d.plotfillhoveralpha,d.columnhoveralpha,d.barhoveralpha,d.bubblehoveralpha);
k.scale=b(d.plothoverscale,d.columnhoverscale,d.barhoverscale,d.bubblehoverscale);k.gradientColor=d.plothovergradientcolor;k.ratio=d.plothoverratio;k.angle=d.plothoverangle;k.borderColor=d.plotborderhovercolor;k.borderAlpha=d.plotborderhoveralpha;k.borderThickness=d.plotborderhoverthickness;k.borderDashed=d.plotborderhoverdashed;k.borderDashGap=d.plotborderhoverdashgap;k.borderDashLen=d.plotborderhoverdashlen;k.shadow=d.plothovershadow;k.anchorScale=d.anchorhoverscale;k.anchorSides=d.anchorhoversides;
k.anchorRadius=d.anchorhoverradius;k.anchorAlpha=d.anchorhoveralpha;k.anchorBgColor=b(d.anchorbghovercolor,d.anchorhovercolor);k.anchorBgAlpha=d.anchorbghoveralpha;k.anchorBorderColor=d.anchorborderhovercolor;k.anchorBorderAlpha=d.anchorborderhoveralpha;k.anchorBorderThickness=d.anchorborderhoverthickness;k.anchorStartAngle=d.anchorhoverstartangle;k.anchorDip=a(d.anchorhoverdip);k.anchorAnimation=a(d.anchorhoveranimation,1);k.negativeColor=b(d.negativehovercolor,d.negativecolor);k.is3DBubble=a(d.is3donhover)},
parseExportOptions:function(c){var d=this.chartInstance,k=this.dataObj.chart;g(c.exporting,{enabled:a(k.exportenabled,0),bgcolor:d.jsVars.transparent||0===a(d.options.containerBackgroundOpacity,1)?n:d.options.containerBackgroundColor||"#ffffff",bgalpha:(d.jsVars.transparent?0:a(d.options.containerBackgroundOpacity,1))+n,exporttargetwindow:b(k.exporttargetwindow,nb?"_blank":"_self"),exportaction:k.exportaction&&"save"===k.exportaction.toString().toLowerCase()&&"save"||"download",exportfilename:b(k.exportfilename,
"FusionCharts"),exporthandler:b(k.html5exporthandler,k.exporthandler,K),exportparameters:b(k.exportparameters,n),exportformat:b(k.exportformat,"PNG"),buttons:{printButton:{enabled:!!a(k.printshowbutton,k.showprintmenuitem,0)},exportButton:{enabled:!(!a(k.exportenabled,0)||!a(k.exportshowbutton,k.exportshowmenuitem,1))}}});var d=c.exporting,e;k=k.exportformats;c=p(c.exporting.exportaction);c={JPG:c+" as JPEG image",PNG:c+" as PNG image",PDF:c+" as PDF document",SVG:c+" as SVG vector image"};var f,
h,l;if(k){k=k.split(/\s*?\|\s*?/);for(l=0;l<k.length;l++)h=(f=k[l].split(/\s*?=\s*?/))&&f[0].toUpperCase()||n,f=f&&f[1]||n,c[h]&&(e||(e={}))&&(e[h]=f||c[h]);e=e||c}else e=c;d.exportformats=e},defaultSeriesType:n,paletteIndex:1,creditLabel:!1,titleSpaceManager:Ra,placeLegendBlockBottom:ob,configureLegendOptions:db,placeLegendBlockRight:rb,placeHorizontalAxis:vb,placeVerticalAxis:S,placeHorizontalCanvasMarginAdjustment:jc,placeVerticalCanvasMarginAdjustment:wb,placeHorizontalXYSpaceManager:function(c,
d,k,e){var f=c[A],g,h,l,C,n=d.chart,m,p,E,q,M,r,t,w=c.chart,Z=f.marginLeftExtraSpace,v=f.marginTopExtraSpace,z=f.marginBottomExtraSpace,ha=f.marginRightExtraSpace;C=k-(Z+ha+w.marginRight+w.marginLeft);var ga=e-(z+w.marginBottom+w.marginTop),D=.3*C;k=.3*ga;var qa=c.xAxis.showLine?c.xAxis.lineThickness:0;l=c.yAxis[0].showLine?c.yAxis[0].lineThickness:0;g=C-D;e=ga-k;m=b(n.legendposition,Ta).toLowerCase();c.legend.enabled&&m===ea&&(g-=this.placeLegendBlockRight(c,d,g/2,ga));M=a(n.xaxisnamepadding,5);
r=a(n.labelpadding,4);t=b(n.rotatexaxisname,"ccw");t=t===Ha?"none":t;p=b(n.showplotborder,f.is3d?Ha:Qa)===Qa;p=f.plotBorderThickness=p?f.is3d?1:a(n.plotborderthickness,1):0;E=V(a(w.plotBorderWidth,1),0);!f.isDual&&w.marginRight<E&&void 0===n.chartrightmargin&&(h=E-w.marginRight,C>D+h&&(w.marginRight=E,C-=h,D=.3*C,g=C-D));h=f.x;q=V(E,p/2);r<q&&(r=q);h.verticalAxisNamePadding=M;h.verticalAxisValuesPadding=r+qa;h.rotateVerticalAxisName=t;h.verticalAxisNameWidth=a(n.xaxisnamewidth);g-=S(c.xAxis,h,c,d,
ga,g,!1,!1,C);c.xAxis.lineEndExtension=l;g-=jc(c,d,g,c.xAxis);C=g+D;c.legend.enabled&&m!==ea&&(e-=this.placeLegendBlockBottom(c,d,C,e/2));e-=this.titleSpaceManager(c,d,C,e/2);h=f[0];h.horizontalAxisNamePadding=a(n.yaxisnamepadding,5);h.horizontalLabelPadding=V(a(n.yaxisvaluespadding,4))+l;h.labelDisplay="auto";h.staggerLines=a(n.staggerlines,2);h.slantLabels=a(n.slantlabels,0);h.horizontalLabelPadding=h.horizontalLabelPadding<E?E:h.horizontalLabelPadding;this.xAxisMinMaxSetter(c,d,C);l=c.xAxis;M=
l.plotLines;g=e/(l.max-l.min);M&&M.length&&(E=(M[0].value-l.min)*g,M=(l.max-M[M.length-1].value)*g,f.isBar&&(p>E&&(l.min-=(p-E)/(2*g)),p>M&&(l.max+=(p-M)/(2*g))));e-=this.placeHorizontalAxis(c.yAxis[0],h,c,d,C,e,D);e-=wb(c,d,e,c.yAxis[0]);Eb(k+e,c,n,c.xAxis,f.x.lYLblIdx,!0);$b(c,c.xAxis.title,e);c.legend.enabled&&m===ea&&(c=c.legend,d=k+e,c.height>d&&(c.height=d,c.scroll.enabled=!0,d=(c.scroll.scrollBarWidth=10)+(c.scroll.scrollBarPadding=2),c.width+=d,w.marginRight+=d),c.y=20);w.marginLeft+=Z;w.marginTop+=
v;w.marginBottom+=z;w.marginRight+=ha},placeVerticalXYSpaceManager:function(c,d,k,e){var f=c[A],g,h,l=!0;g=0;var C=d.chart,n=!1,m,p,E,q,M=c.chart,r,t,w,Z=f.marginLeftExtraSpace,v=f.marginTopExtraSpace,z=f.marginBottomExtraSpace,ha=f.marginRightExtraSpace;q=k-(Z+ha+M.marginRight+M.marginLeft);var ga=e-(z+M.marginBottom+M.marginTop),D=.3*q;e=.3*ga;var qa=q-D;k=ga-e;g=f.drawFullAreaBorder=a(C.drawfullareaborder,1);var sa=b(C.legendposition,Ta).toLowerCase();r=c.xAxis.showLine?c.xAxis.lineThickness:0;
t=c.yAxis[0].showLine?c.yAxis[0].lineThickness:0;w=f.isDual&&c.yAxis[1].showLine?c.yAxis[1].lineThickness:0;m=a(C.yaxisnamepadding,5);p=a(C.yaxisvaluespadding,C.labelypadding,4);h=b(C.showplotborder,f.is3d?Ha:Qa)===Qa;h=f.plotBorderThickness=h?f.is3d?1:a(C.plotborderthickness,1):0;E=V(a(M.plotBorderWidth,1),0);h=V(E,h/2);"area"!==this.defaultSeriesType||g||(h=E);p<E&&(p=E);!f.isDual&&M.marginRight<E&&void 0===C.chartrightmargin&&(g=E-c.chart.marginRight,q>D+g&&(q-=g,D=.3*q,qa=q-D));c.legend.enabled&&
sa===ea&&(qa-=this.placeLegendBlockRight(c,d,qa/2,ga));f.isDual&&(n=!0,g=f[1],l=c.yAxis[1].opposite,E=b(C.rotateyaxisname,l?"cw":"ccw"),E=E===Ha?"none":E,g.verticalAxisNamePadding=m,g.verticalAxisValuesPadding=p+w,g.rotateVerticalAxisName=E,g.verticalAxisNameWidth=a(C.syaxisnamewidth),qa-=S(c.yAxis[1],g,c,d,ga,qa/2,l,n));g=f[0];l=!l;E=b(C.rotateyaxisname,l?"cw":"ccw");E=E===Ha?"none":E;g.verticalAxisNamePadding=m;g.verticalAxisValuesPadding=p+t;g.rotateVerticalAxisName=E;g.verticalAxisNameWidth=a(n?
C.pyaxisnamewidth:C.yaxisnamewidth);qa-=S(c.yAxis[0],g,c,d,ga,qa,l,n,q);qa-=jc(c,d,qa,c.yAxis[0],c.yAxis[1]);l=qa+D;c.legend.enabled&&sa!==ea&&(k-=this.placeLegendBlockBottom(c,d,l,k/2));k-=this.titleSpaceManager(c,d,l,k/2);g=f.x;g.horizontalAxisNamePadding=a(C.xaxisnamepadding,5);g.horizontalLabelPadding=a(C.labelpadding,C.labelxpadding,4)+r;g.labelDisplay=b(C.labeldisplay,"auto").toLowerCase();g.rotateLabels=a(C.rotatelabels,C.rotatexaxislabels,0);g.staggerLines=a(C.staggerlines,2);g.slantLabels=
a(C.slantlabels,C.slantlabel,0);c.yAxis[0].opposite?(c.xAxis.lineEndExtension=t,c.xAxis.lineStartExtension=w):(c.xAxis.lineEndExtension=w,c.xAxis.lineStartExtension=t);g.horizontalLabelPadding<h&&(g.horizontalLabelPadding=h);q={left:0,right:0};q=M.managePlotOverflow&&this.canvasPaddingModifiers&&this.calculateCanvasOverflow(c,!0)||q;r=q.left+q.right;t=.6*l;r>t&&(w=q.left/r,q.left-=w*(r-t),q.right-=(1-w)*(r-t));this.xAxisMinMaxSetter(c,d,l,q.left,q.right);k-=this.placeHorizontalAxis(c.xAxis,g,c,d,
l,k,D);k-=wb(c,d,k,c.xAxis);c.title.alignWithCanvas||("left"===c.title.align&&c.yAxis[0].title.text&&la(c,c.yAxis[0].title,e+k),"right"===c.title.align&&n&&c.yAxis[1].title.text&&la(c,c.yAxis[1].title,e+k));n&&(Eb(e+k,c,C,c.yAxis[1],f[1].lYLblIdx),$b(c,c.yAxis[1].title,e+k));Eb(e+k,c,C,c.yAxis[0],f[0].lYLblIdx);$b(c,c.yAxis[0].title,e+k);c.legend.enabled&&sa===ea&&(c=c.legend,d=e+k,c.height>d&&"gradient"!==c.type&&(c.height=d,c.scroll.enabled=!0,d=(c.scroll.scrollBarWidth=10)+(c.scroll.scrollBarPadding=
2),c.width+=d,M.marginRight+=d));M.marginLeft+=Z;M.marginTop+=v;M.marginBottom+=z;M.marginRight+=ha},placeVerticalAxisTitle:$b,calculateCanvasOverflow:function(a,b){for(var c=this.canvasPaddingModifiers,d=a.chart,f=this.smartLabel,k=0,e=0,g=0,h=0,l=k=!1,C=!1,m=c&&c.length||0,E,p,q,M,r;m--;)switch(e=c[m],e){case "anchor":l=p=k=!0;break;case "anchorlabel":q=p=k=!0;break;case "errorbar":C=k=!0}if(k&&(m=(c=a.series)&&c.length||0,b))for(;m--;)E=c[m],p&&(k=E&&E.data||[],1<k.length&&(M=k[0],r=k[k.length-
1],l&&(k=M&&M.marker&&M.marker.enabled&&(M.marker.radius||0)+(M.marker.lineWidth||0)||0,e=r&&r.marker&&r.marker.enabled&&(r.marker.radius||0)+(r.marker.lineWidth||0)||0,g=V(k+2,g),h=V(e+2,h)),q&&(f.setStyle(a.plotOptions.series.dataLabels.style),d.rotateValues?(e=f.getOriSize(M&&M.displayValue||n),k=e.height/2,e=f.getOriSize(r&&r.displayValue||n),e=e.height/2):(e=f.getOriSize(M&&M.displayValue||n),k=e.width/2,e=f.getOriSize(r&&r.displayValue||n),e=e.width/2),g=V(k+2,g),h=V(e+2,h)))),C&&(e=k=E.errorBarWidth/
2+E.errorBarThickness||0,g=V(k+2,g),h=V(e+2,h));return{left:g,right:h}},spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)},axisMinMaxSetter:function(b,c,d,k,f,e,g,h){d=c.stacking100Percent?Z(99,1,100,0,f,e,g,h):Z(a(c.max,d),a(c.min,k),d,k,f,e,g,h);b.min=Number(l(d.Min,10));b.max=Number(l(d.Max,10));b.tickInterval=Number(l(d.divGap,10));c.numdivlines=t.round((b.max-b.min)/b.tickInterval)-1;2>=d.Range/d.divGap&&(b.alternateGridColor=U);this.highValue=c.max;this.lowValue=
c.min;delete c.max;delete c.min},configurePlotLines:function(c,d,k,e,f,g,h,C,m,E,p){var q=k.min,M=k.max,r=k.tickInterval,t=E?"xAxis":e.stacking100Percent?"percentValue":"yAxis",w=q,Z=1,v=k.gridLineColor,z=k.gridLineWidth,ha=k.gridLineDashStyle,ga=0>q&&0<M?!0:!1,D=0===q,qa=0===M,S=0===a(e.showzeroplanevalue,c.showzeroplanevalue),sa=!0,oa,na=1,H=0<a(c.numdivlines,0),G=d[A].axisGridManager,$=this.colorManager,xa=this.is3D,K=a(c.showaxislimitgridlines,this.showAxisLimitGridLines),xa=a(K,xa||d.chart.plotBorderWidth?
0:1),N=this.inversed;d=d.xAxis;p=a(p,m?1:0);delete k._altGrid;delete k._lastValue;E&&!e.catOccupied&&(e.catOccupied={});!ga||E&&e.catOccupied[0]||(E?(sa=a(c.showvzeroplane,1),oa=a(c.showvzeroplanevalue,g),H=a(c.vzeroplanethickness,1),$=b(c.vzeroplanealpha,c.vdivlinealpha,$.getColor("divLineAlpha")),c=0<H?I(b(c.vzeroplanecolor,v),$):U):($=a(c.divlinealpha,$.getColor("divLineAlpha")),oa=a(e.showzeroplanevalue,c.showzeroplanevalue,g),!1===this.defaultZeroPlaneHighlighted?(sa=a(e.showzeroplane,c.showzeroplane,
!(this.defaultZeroPlaneHidden&&!H)),H=z):(H=1===z?2:z,na=5,$=da(2*$,100)),H=a(e.zeroplanethickness,c.zeroplanethickness,H),$=b(e.zeroplanealpha,c.zeroplanealpha,$),c=0<H?I(b(e.zeroplanecolor,c.zeroplanecolor,v),$):U),sa&&(oa=oa?C[t](0,p):n,(na=G.addAxisGridLine(k,0,oa,H,ha,c,na,E))&&(na.isZeroPlane=!0)),k.effectiveZeroPlaneThickness=sa&&parseInt($,10)&&H);E&&e.catOccupied[q]||(oa=!f||D&&S?n:C[t](q,p),(na=K||xa&&(N||!d.showLine)?G.addAxisGridLine(k,q,oa,z,ha,v||U,2,E):G.addAxisGridLine(k,q,oa,.1,void 0,
U,2,E))&&(na.isMinLabel=!0));0>=z&&(z=.1,v=U);for(q=Number(l(w+r,10));q<M;q=Number(l(q+r,10)),Z+=1)ga&&0>w&&0<q&&!m&&(G.addAxisAltGrid(k,0),Z+=1),0===q||E&&e.catOccupied[q]||(oa=1===g&&0===Z%h?C[t](q,p):n,G.addAxisGridLine(k,q,oa,z,ha,v,2,E)),w=q,m||G.addAxisAltGrid(k,q);m||G.addAxisAltGrid(k,M);0!==Z%h||E&&e.catOccupied[M]||(oa=!f||qa&&S?n:C[t](M,p),(na=K||xa&&(!N||!d.showLine)?G.addAxisGridLine(k,M,oa,z,ha,v||U,2,E):G.addAxisGridLine(k,M,oa,.1,ha,U,2,E))&&(na.isMaxLabel=!0));this.realtimeEnabled&&
(k.labels._enabled=k.labels.enabled,k._gridLineWidth=k.gridLineWidth,k._alternateGridColor=k.alternateGridColor);k.labels.enabled=!1;k.gridLineWidth=0;k.alternateGridColor=U;k.plotLines.sort($a)},xAxisMinMaxSetter:function(b,d,k,e,f){var g=b[A],h=g.x,C=d.chart,l=h.min=a(h.min,0),n=h.max=a(h.max,h.catCount-1),m=0,E=0,p=b.chart.defaultSeriesType,q=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(p),M=/^(line|area|spline|areaspline)$/.test(p),p=/^(scatter|bubble|candlestick|dragnode)$/.test(p),
r=b.xAxis,t=r.scroll,w=t&&t.enabled,Z=a(C.canvaspadding),v=void 0!==Z&&null!==Z,z=wa(da(a(Z,e,0),k/2-10)),Z=wa(da(a(Z,f,0),k/2-10)),ha,ga,D,qa;h.adjustMinMax&&(ha=a(C.setadaptivexmin,1),n=l=!ha,ga=a(this.numVDivLines,C.numvdivlines,4),D=C.adjustvdiv!==Ha,qa=a(C.showxaxisvalues,C.showxaxisvalue,1),ha=a(C.showvlimits,qa),qa=a(C.showvdivlinevalue,C.showvdivlinevalues,qa),this.axisMinMaxSetter(r,h,C.xaxismaxvalue,C.xaxisminvalue,l,n,ga,D),l=r.min,n=r.max,h.requiredAutoNumericLabels&&(ga=a(parseInt(C.xaxisvaluesstep,
10),1),this.configurePlotLines(C,b,r,h,ha,qa,1>ga?1:ga,g.numberFormatter,!1,!0)),r.plotLines.sort($a));r.labels.enabled=!1;r.gridLineWidth=0;r.alternateGridColor=U;!q&&!g.isScroll||g.hasNoColumn||v||void 0===e||null===e||void 0===f||null===f||(E=k/(n-l+1)*.5,z=0<E-e?0:z,Z=0<E-f?0:Z,m=0<E-e?.5:0,E=0<E-f?.5:0);q&&!g.hasNoColumn&&(E=m=.5);g.is3d&&(z+=a(b.chart.xDepth,0));b=(k-(z+Z))/((w?t.vxLength:n)-l+(m+E));r.min=l-(m+z/b);r.max=n+(E+Z/b);w&&(m=t.vxLength,b=r.max-r.min,t.viewPortMin=r.min,t.viewPortMax=
r.max,t.scrollRatio=m/b,t.flatScrollBars=g.flatScrollBars,t.scrollBar3DLighting=g.scrollBar3DLighting,r.max=r.min+m);M&&r.min===r.max&&(r.min-=.65,r.max+=.65);p&&d.vtrendlines&&c(d.vtrendlines,r,g,!1,!0,!0)},postSeriesAddition:function(c){var d=c[A],k=d.isBar,e=d.is3d,f=c.chart.rotateValues&&!k?270:0,C=d[0],l=C&&C.stacking100Percent,n,m,E,p,q,M,r,t,w,Z,v,z,ha,ga,D,qa,S,sa,oa,H,na,$,G;if(this.isStacked)for(E in n=d.plotSpacePercent,m=c.chart.defaultSeriesType,n=1-2*n,qa=c.series,S=this.numberFormatter,
na=g({},c.plotOptions.series.dataLabels.style),$=parseFloat(na.fontSize),G=!C.stacking100Percent,na.color=c.plotOptions.series.dataLabels.color,p=C.stack,p){C=p[E].length;q=n/C;r=-(n-q)/2;ga=[];z=0;for(t=qa.length;z<t;z+=1)w=qa[z],w.yAxis||b(w.type,m)!==E||ga.push(w);for(M=0;M<C;M+=1,r+=q){v=p[E][M];D=[];z=0;for(t=ga.length;z<t;z+=1)w=ga[z],a(w.columnPosition,0)===M&&D.push(w.data);if(v&&v.length)for(Z=0,w=v.length;Z<w;Z+=1)if(z=v[Z])for(ha=(z.n||0)+(z.p||0),d.showStackTotal&&(t=Z,t+=r,z=0>ha?z.n:
z.p,c.xAxis.plotLines.push({value:t,width:0,isVline:G,isTrend:!G,zIndex:4,_isStackSum:1,_catPosition:Z,_stackIndex:M,label:{align:Fa,textAlign:e||270!==f?k?0>ha?ea:za:Fa:0>ha?ea:za,offsetScale:G?z:void 0,offsetScaleIndex:0,rotation:f,style:na,verticalAlign:Ia,y:k?0:0>ha?270===f?4:$:-4,x:0,text:d.numberFormatter.yAxis(ha)}})),z=0,t=D.length;z<t;z+=1)if(oa=D[z][Z])if(H=ha&&(oa.y||0)/ha*100,sa=S.percentValue(H),oa.toolText=h(oa.toolText,[14,24,25,112],{percentValue:sa,sum:S.dataLabels(ha),unformattedSum:ha}),
oa.y||0===oa.y)l&&(oa.y=H,oa.previousY||0===oa.previousY)&&(oa.previousY=oa.previousY/ha*100),oa.showPercentValues&&(oa.displayValue=sa)}}},styleMapForFont:La,styleApplicationDefinition_font:function(a,b,c){var d,f,k=!1,e,g,h=this.styleMapForFont;switch(b){case "caption":d=a.title;break;case "datalabels":d=a.xAxis.labels;break;case "datavalues":d=a.plotOptions.series.dataLabels;k=!0;break;case "tldatavalues":d={style:a.plotOptions.series.dataLabels.tlLabelStyle};break;case "trdatavalues":d={style:a.plotOptions.series.dataLabels.trLabelStyle};
break;case "bldatavalues":d={style:a.plotOptions.series.dataLabels.blLabelStyle};break;case "brdatavalues":d={style:a.plotOptions.series.dataLabels.brLabelStyle};break;case "subcaption":d=a.subtitle;break;case "tooltip":d=a.tooltip;break;case "trendvalues":d={style:a[A].trendStyle};break;case "xaxisname":d=a.xAxis.title;break;case "yaxisname":case "pyaxisname":case "axistitle":d=[];b=0;for(e=a.yAxis.length;b<e;b+=1)d.push(a.yAxis[b].title);break;case "yaxisvalues":d=[];b=0;for(e=a.yAxis.length;b<
e;b+=1)d.push(a.yAxis[b].labels);break;case "vlinelabels":d={style:a[A].divlineStyle};break;case "legend":d={style:a.legend.itemStyle};break;default:(d=a.orphanStyles[b])||(a.orphanStyles[b]=d={text:"",style:{}})}if("object"===typeof d)if(d instanceof Array)for(b=0,e=d.length;b<e;b+=1){g=d[b];for(f in c)if(a=f.toLowerCase(),"function"===typeof h[a])h[a](c[f],g,k);P(g.style)}else{for(f in c)if(a=f.toLowerCase(),"function"===typeof h[a])h[a](c[f],d,k);P(d.style)}},parseStyles:function(a){var b,c,d,
f={},k,e=this.dataObj;if(e.styles&&e.styles.definition instanceof Array&&e.styles.application instanceof Array){for(b=0;b<e.styles.definition.length;b+=1)c=e.styles.definition[b],c.type&&c.name&&this["styleApplicationDefinition_"+c.type.toLowerCase()]&&(f[c.name.toLowerCase()]=c);for(b=0;b<e.styles.application.length;b+=1)for(c=e.styles.application[b].styles&&e.styles.application[b].styles.split(Ja)||[],k=0;k<c.length;k+=1)if(d=c[k].toLowerCase(),f[d]&&e.styles.application[b].toobject)this["styleApplicationDefinition_"+
f[d].type.toLowerCase()](a,e.styles.application[b].toobject.toLowerCase(),f[d])}},updateDefaultAnnotations:function(){var c=this.renderer,d=this.dataObj,k=this.chartInstance,e=d&&d.annotations||{},f={},g;if(this.drawAnnotations&&k.dataReady()&&d&&d.chart&&a(d.chart.showannotations,1)){g=a(e.scaleonresize,d.chart.scaleonresize,1);var c={interactionevents:b(this.annotationInteractionEvents,!0),showbelow:b(e.showbelow,e.showbelowchart),autoscale:e.autoscale,scaletext:e.scaletext,scaleimages:e.scaleimages,
constrainedscale:e.constrainedscale,scaleonresize:g,origw:b(e.origw,d.chart.origw,g?this.origRenderWidth:c.chartWidth),origh:b(e.origh,d.chart.origh,g?this.origRenderHeight:c.chartHeight),xshift:e.xshift,yshift:e.yshift,grpxshift:e.grpxshift,grpyshift:e.grpyshift,xscale:e.xscale,yscale:e.yscale,rootxscale:a(e.xscale,100)/100,rootyscale:a(e.yscale,100)/100},h;c||(c={});for(h in f)c[h]=f[h];k.annotations.reset(e,c,this.snapLiterals)}else k.annotations.clear()},dispose:function(){var a;this.disposing=
!0;this.renderer&&this.renderer.dispose();this.numberFormatter&&this.numberFormatter.dispose();this.hcJSON&&this.hcJSON.chart&&this.hcJSON.chart.renderTo&&delete this.hcJSON.chart.renderTo;for(a in this)delete this[a];delete this.disposing;this.disposed=!0}});W("stub",{init:function(a,b,c){this.containerElement=a;this.smartLabel=c.jsVars.smartLabel},standaloneInit:!0},W.base);W("barbase",{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},W.base);W("singleseries",
{series:function(a,b,d){var k=a.data||a.dataset&&a.dataset[0]&&a.dataset[0].data,f;k&&0<k.length&&k instanceof Array&&(f={data:[],hoverEffects:this.parseSeriesHoverOptions(a,b,{},d),colorByPoint:!0},b.legend.enabled=!1,d=this.point(d,f,k,a.chart,b),d instanceof Array?b.series=b.series.concat(d):b.series.push(d),this.configureAxis(b,a),a.trendlines&&c(a.trendlines,b.yAxis,b[A],!1,this.isBar))},defaultSeriesType:n,configureAxis:function(c,d){var k=c[A],e=c.xAxis,f=d.chart,g=c.chart.is3D,h,C,l,n,m,E,
p,q,M,r,t,w,Z=0,z,v,ha,ga,D,qa,S,oa=this.numberFormatter,sa=a(f.syncaxislimits,0),na;e.title.text=L(f.xaxisname);na=a(parseInt(f.yaxisvaluesstep,10),parseInt(f.yaxisvaluestep,10),1);na=1>na?1:na;h=c.yAxis[0];C=k[0];k.isDual?(l=oa.getCleanValue(f.pyaxismaxvalue),n=oa.getCleanValue(f.pyaxisminvalue),h.title.text=L(f.pyaxisname),sa&&!C.stacking100Percent?(w=k[1],t=a(w.max),w=a(w.min),void 0!==t&&void 0!==w&&(C.min=da(C.min,w),C.max=V(C.max,t)),t=oa.getCleanValue(f.syaxismaxvalue),w=oa.getCleanValue(f.syaxisminvalue),
null!==w&&(n=null!==n?da(n,w):w),null!==t&&(l=null!==l?V(l,t):t)):sa=0):(l=oa.getCleanValue(f.yaxismaxvalue),n=oa.getCleanValue(f.yaxisminvalue),h.title.text=L(f.yaxisname));p=a(this.isStacked?0:this.setAdaptiveYMin,f.setadaptiveymin,this.defSetAdaptiveYMin,0);E=m=!p;q=a(k.numdivlines,f.numdivlines,this.numdivlines,4);M=f.adjustdiv!==Ha;r=a(this.showYAxisValues,f.showyaxisvalues,f.showyaxisvalue,1);t=a(f.showyaxislimits,f.showlimits,r);w=a(f.showdivlinevalue,f.showdivlinevalues,r);g||(Z=a(f.showaxislines,
f.drawAxisLines,0),ha=a(f.axislinethickness,1),D=a(f.axislinealpha,100),100<D&&(D=100),v=I(b(f.axislinecolor,"#000000"),D),h.showLine=a(f.showyaxisline,Z),z=e.showLine=a(f.showxaxisline,Z),ga=e.lineThickness=a(f.xaxislinethickness,ha),h.lineThickness=a(f.yaxislinethickness,ha),qa=e.lineAlpha=a(f.xaxislinealpha,D),100<qa&&(qa=e.lineAlpha=100),S=h.lineAlpha=a(f.yaxislinealpha,D),100<S&&(S=h.lineAlpha=100),e.lineColor=I(b(f.xaxislinecolor,v),qa),h.lineColor=I(b(f.yaxislinecolor,v),S),c.chart.xAxisLineVisible=
z&&!!ga&&0<qa);this.axisMinMaxSetter(h,C,l,n,m,E,q,M);this.configurePlotLines(f,c,h,C,t,w,na,k.numberFormatter,!1);h.reversed&&0<=h.min&&(c.plotOptions.series.threshold=h.max);k.isDual&&(h=c.yAxis[1],C=k[1],t=a(f.showsecondarylimits,t),w=a(f.showdivlinesecondaryvalue,r),sa?(e=c.yAxis[0],h.min=e.min,h.max=e.max,h.tickInterval=e.tickInterval,delete C.max,delete C.min):(l=oa.getCleanValue(f.syaxismaxvalue),n=oa.getCleanValue(f.syaxisminvalue),p=a(f.setadaptivesymin,p),E=m=!p,this.axisMinMaxSetter(h,
C,l,n,m,E,q,M)),g||(h.showLine=a(f.showsyaxisline,Z),h.lineThickness=a(f.syaxislinethickness,ha),g=h.lineAlpha=a(f.syaxislinealpha,D),100<g&&(g=100),h.lineColor=I(b(f.syaxislinecolor,v),g)),this.configurePlotLines(f,c,h,C,t,w,na,k.numberFormatter,!0),h.title.text=L(f.syaxisname))},pointValueWatcher:function(c,d,k,e,f,g,h){c=c[A];var C;if(null!==d)return k=a(k,0),c[k]||(c[k]={}),k=c[k],e&&(this.distributedColumns&&(c.marimekkoTotal+=d),e=k.stack,f=a(f,0),g=a(g,0),h=b(h,ab),e[h]||(e[h]=[]),h=e[h],h[g]||
(h[g]=[]),g=h[g],g[f]||(g[f]={}),f=g[f],0<=d?f.p?(C=f.p,d=f.p+=d):f.p=d:f.n?(C=f.n,d=f.n+=d):f.n=d),k.max=k.max>d?k.max:d,k.min=k.min<d?k.min:d,C},parseSeriesHoverOptions:function(c,d,k){c=d.chart.plotHoverEffects;d={enabled:b(k.showhovereffect,k.hovereffect,c.enabled)};d.highlight=a(k.highlightonhover,k.highlightplotonhover,c.highlight);d.columnHighlight=a(d.highlight,k.highlightcolumnonhover,k.highlightbaronhover,c.columnHighlight);d.anchorHighlight=a(d.highlight,k.highlightanchoronhover,c.anchorHighlight);
d.anchorHighlight=a(d.highlight,k.highlightimageonhover,c.imageHighlight);d.bubbleHighlight=a(d.highlight,k.highlightbubbleonhover,k.highlightbaronhover,c.bubbleHighlight);d.imageHoverAlpha=b(k.anchorimagehoveralpha,c.anchorImageHoverAlpha);d.imageHoverScale=b(k.anchorimagehoverscale,c.anchorImageHoverScale);d.color=b(k.hovercolor,k.bubblehovercolor,c.color);d.alpha=b(k.hoveralpha,c.alpha);d.scale=b(k.hoverscale,k.bubblehoverscale,c.scale);d.gradientColor=void 0!==k.hovergradientcolor?k.hovergradientcolor:
c.gradientColor;d.ratio=b(k.hoverratio,c.ratio);d.angle=b(k.hoverangle,c.angle);d.borderColor=b(k.borderhovercolor,c.borderColor);d.borderAlpha=b(k.borderhoveralpha,c.borderAlpha);d.borderThickness=a(k.borderhoverthickness,c.borderThickness);d.borderDashed=a(k.borderhoverdashed,c.borderDashed);d.borderDashGap=a(k.borderhoverdashgap,c.borderDashGap);d.borderDashLen=a(k.borderhoverdashlen,c.borderDashLen);d.shadow=b(k.hovershadow,c.shadow);d.anchorSides=b(k.anchorhoversides,c.anchorSides);d.anchorRadius=
b(k.anchorhoverradius,c.anchorRadius);d.anchorScale=b(k.anchorhoverscale,c.anchorScale);d.anchorAlpha=b(k.anchorhoveralpha,k.hoveralpha,c.anchorAlpha);d.anchorBgColor=b(k.anchorbghovercolor,k.anchorhovercolor,c.anchorBgColor);d.anchorBgAlpha=b(k.anchorbghoveralpha,c.anchorBgAlpha);d.anchorBorderColor=b(k.anchorborderhovercolor,c.anchorBorderColor);d.anchorBorderAlpha=b(k.anchorborderhoveralpha,c.anchorBorderAlpha);d.anchorBorderThickness=a(k.anchorborderhoverthickness,c.anchorBorderThickness);d.anchorStartAngle=
b(k.anchorhoverstartangle,c.anchorStartAngle);d.anchorDip=b(k.anchorhoverdip,c.anchorDip);d.anchorAnimation=a(k.anchorhoveranimation,c.anchorAnimation,1);d.negativeColor=b(k.negativehovercolor,c.negativeColor);d.is3DBubble=a(k.is3donhover,c.is3DBubble);return d},pointHoverOptions:function(c,d,k){var g,f,h,C={};g=d.hoverEffects;d=a(c.hovereffect,g&&g.enabled);f=!1;var l={enabled:d},m=k&&n+k.plotType.toLowerCase();if(void 0===d)if(this.forceHoverEnable)f=d=l.enabled=!0;else{"anchor"==m&&(f=k.imageUrl?
d=l.enabled=void 0!==b(c.anchorimagehoveralpha,g.imageHoverAlpha,c.anchorimagehoverscale,g.imageHoverScale,void 0):d=l.enabled=void 0!==b(c.hovercolor,c.anchorhovercolor,c.anchorbghovercolor,g.anchorBgColor,g.color,c.hoveralpha,c.anchorhoveralpha,g.anchorAlpha,c.bghoveralpha,c.anchorbghoveralpha,g.anchorBgAlpha,c.anchorborderhovercolor,c.borderhovercolor,g.anchorBorderColor,c.anchorborderhoverthickness,c.borderhoverthickness,g.anchorBorderThickness,c.anchorborderhoveralpha,c.borderhoveralpha,g.anchorBorderAlpha,
c.hoverdip,c.anchorhoverdip,g.anchorDip,c.anchorhoverstartangle,g.anchorStartAngle,c.hoversides,c.anchorhoversides,g.anchorSides,c.hoverradius,c.anchorhoverradius,g.anchorRadius,void 0));if("column"==m||"bubble"==m)f=d=l.enabled=void 0!==b(c.hoveralpha,g.alpha,c.hovergradientcolor,g.gradientColor,c.borderhovercolor,g.borderColor,c.borderhoverthickness,g.borderThickness,c.hoverratio,g.ratio,c.hoverangle,g.angle,c.borderhoveralpha,g.borderAlpha,c.borderhoverdashed,g.borderDashed,c.borderhoverdashgap,
g.borderDashGap,c.borderhoverdashlen,g.borderDashLen,c.hovercolor,g.color,void 0);f||"bubble"!=m||(f=d=l.enabled=void 0!==b(c.negativehovercolor,g.negativeColor,c.is3donhover,g.is3DBubble,c.hoverscale,g.scale,void 0));"pie"==m&&(f=d=l.enabled=void 0!==b(c.hovercolor,g.color,c.hoveralpha,g.alpha,c.borderhovercolor,g.borderColor,c.borderhoverthickness,g.borderThickness,c.borderhoveralpha,g.borderAlpha,void 0))}if(d){l.highlight=a(c.highlightonhover,g.highlight);l.columnHighlight=a(l.highlight,c.highlightcolumnonhover,
c.highlightbaronhover);l.anchorHighlight=a(l.highlight,c.highlightanchoronhover);l.bubbleHighlight=a(l.highlight,c.highlightbubbleonhover);l.alpha=b(c.hoveralpha,g.alpha,k.alpha);l.scale=b(c.hoverscale,g.scale,1);l.gradientColor=void 0===c.hovergradientcolor?g.gradientColor:c.hovergradientcolor;l.borderColor=b(c.borderhovercolor,g.borderColor,k.borderColor);l.borderThickness=a(c.borderhoverthickness,g.borderThickness,k.borderWidth);l.ratio=b(c.hoverratio,g.ratio,k.ratio);l.angle=b(c.hoverangle,g.angle,
k.angle);l.borderAlpha=b(c.borderhoveralpha,g.borderAlpha,k.borderAlpha);l.borderDashed=a(c.borderhoverdashed,g.borderDashed,k.borderDashed,0);l.borderDashGap=a(c.borderhoverdashgap,g.borderDashGap,k.borderDashGap);l.borderDashLen=a(c.borderhoverdashlen,g.borderDashLen,k.borderDashLen);l.shadow=b(c.hovershadow,g.shadow,0);l.color=b(c.hovercolor,g.color);"anchor"==m&&(k.imageUrl?(l.imageHoverAlpha=a(c.anchorimagehoveralpha,g.imageHoverAlpha,100),l.imageHoverScale=k.imageScale*ia(a(c.anchorimagehoverscale,
g.imageHoverScale,110))*.01,l.anchorAnimation=a(c.anchorhoveranimation,g.anchorAnimation,1)):(l.anchorColor=X(b(c.hovercolor,c.anchorhovercolor,c.anchorbghovercolor,g.anchorBgColor,g.color,k.anchorBgColor)),l.anchorAlpha=b(c.hoveralpha,c.anchorhoveralpha,g.anchorAlpha,k.anchorAlpha),l.anchorBgAlpha=b(c.bghoveralpha,c.anchorbghoveralpha,g.anchorBgAlpha,l.anchorAlpha,k.anchorBgAlpha),l.anchorBorderColor=b(c.anchorborderhovercolor,c.borderhovercolor,g.anchorBorderColor,k.anchorBorderColor),l.anchorBorderThickness=
b(c.anchorborderhoverthickness,c.borderhoverthickness,g.anchorBorderThickness,k.anchorBorderThickness),l.anchorBorderAlpha=a(c.anchorborderhoveralpha,c.borderhoveralpha,g.anchorBorderAlpha,l.anchorAlpha,k.anchorBorderAlpha),l.anchorDip=a(c.hoverdip,c.anchorhoverdip,g.anchorDip),l.startAngle=b(c.anchorhoverstartangle,g.anchorStartAngle,k.anchorAngle),l.anchorSides=a(c.hoversides,c.anchorhoversides,g.anchorSides,k.anchorSides),l.anchorRadius=a(c.hoverradius,c.anchorhoverradius,g.anchorRadius),l.anchorScale=
a(c.hoverscale,c.anchorhoverscale,g.anchorScale),l.anchorAnimation=a(c.anchorhoveranimation,g.anchorAnimation,1),void 0===l.anchorRadius&&(l.anchorRadius=!f||l.anchorHighlight?k.anchorRadius&&k.anchorRadius+1:k.anchorRadius)));if(f||(l.columnHighlight||l.bubbleHighlight)&&l.color&&1==l.highlight)l.highlight=0;"column"==m&&(l.color=(b(l.color,k.color)+Ja+(void 0===l.gradientColor?k.gradientColor:l.gradientColor)).replace(/,+?$/,""));"pie"===m&&(l.color=b(l.color,k.color).replace(/,+?$/,""));"bubble"==
m&&(l.negativeColor=b(c.negativehovercolor,g.negativeColor,k.negativeColor),l.is3d=a(c.is3donhover,g.is3DBubble,k.is3d),l.color=l.negativeColor&&0>c.z?l.negativeColor:l.color||k.color,h="string"==typeof l.color,l.color=X(h?l.color:l.color.FCcolor.color),l.color=l.is3d?W.bubble.getPointColor(l.color,l.alpha):{FCcolor:{color:l.color,alpha:l.alpha}});if(1==l.highlight&&"anchor"!==m){c=(h="string"==typeof l.color)?l.color.split(/\s{0,},\s{0,}/):l.color.FCcolor.color.split(/\s{0,},\s{0,}/);g=c.length;
for(f=0;f<g;f++)c[f]=J(c[f],70);h?l.color=c.join(","):l.color.FCcolor.color=c.join(",")}"pie"===m&&(C={color:this.getPointColor(l.color,l.alpha,k.radius3D),alpha:l.alpha,borderColor:I(l.borderColor,l.borderAlpha),borderWidth:l.borderThickness});"column"==m&&(l.colorArr=ca(l.color,l.alpha,l.ratio,l.angle,k.isRoundEdged,l.borderColor,da(l.alpha,l.borderAlpha).toString(),k.isBar,k.is3d),l.dashStyle=l.borderDashed?e(l.borderDashLen,l.borderDashGap,l.borderThickness):"none",C={shadow:l.shadow,color:l.colorArr[0],
borderColor:l.colorArr[1],borderWidth:l.borderThickness,use3DLighting:k.use3DLighting,dashStyle:l.dashStyle});"anchor"==m&&(C=k.imageUrl?{animation:l.anchorAnimation,imageHoverAlpha:l.imageHoverAlpha,imageHoverScale:l.imageHoverScale}:{animation:l.anchorAnimation,shadow:l.shadow,fillColor:{FCcolor:{color:l.anchorColor,alpha:l.anchorBgAlpha*l.anchorAlpha/100+n}},lineColor:{FCcolor:{color:l.anchorBorderColor,alpha:l.anchorBorderAlpha}},lineWidth:l.anchorBorderThickness,radius:l.anchorRadius,symbol:pa(l.anchorSides),
startAngle:l.startAngle,sides:l.anchorSides,scale:l.anchorScale,dip:l.anchorDip});"bubble"==m&&(C={symbol:l.seriesAnchorSymbol,shadow:l.shadow,scale:l.scale,fillColor:l.color,lineColor:{FCcolor:{color:l.borderColor,alpha:l.alpha}},lineWidth:l.borderThickness})}return{enabled:d,options:l,rolloverOptions:C}},getPointStub:function(c,d,k,e){var f=this.dataObj.chart;e=e[A];d=null===d?d:e.numberFormatter.dataLabels(d);var g=H(L(b(c.tooltext,e.tooltext))),l=H(L(c.displayvalue)),f=e.showTooltip?void 0!==
g?h(g,[1,2,3,5,6,7],{formattedValue:d,label:k,yaxisName:L(f.yaxisname),xaxisName:L(f.xaxisname)},c,f):null===d?!1:k!==n?k+e.tooltipSepChar+d:d:n;e=a(c.showvalue,e.showValues)?void 0!==l?l:d:n;c=b(c.link);return{displayValue:e,categoryLabel:k,toolText:f,link:c}},updateSnapPoints:function(){var a=this,b=a.snapLiterals,c=function(a,b){var c=0;switch(a){case "startx":c=b.x;break;case "starty":c=b.y;break;case "x":case "middlex":case "centerx":c=b.x+b.width/2;break;case "y":case "middley":case "centery":c=
b.y+b.height/2;break;case "endx":c=b.x+b.width;break;case "endy":c=b.y+b.height;break;default:c=0}return c};b.dataset=function(b,d){var k=a.renderer&&a.renderer.plots,e,g,h,l;h=a.is3D;if(!k||!k.length)return 0;isNaN(b[0])?e=0:(e=Number(b[0]),b=b.slice(1));g=b[0];if("set"===g){isNaN(b[1])?(l=0,b=b.slice(1)):(l=Number(b[1]),b=b.slice(2));g=b[0];k=(k=k[e]&&k[e].items[l])&&k.graphic;if(!k)return 0;h=d&&h?k._getBBox2():k.getBBox();l=c(g,h)}return l};b.xaxis=function(b){var d=a.renderer&&a.renderer.xAxis&&
a.renderer.xAxis[0]&&a.renderer.xAxis[0].labels,k,e;if(!d||!d.length)return 0;e=b[0];if("label"===e){isNaN(b[1])?(k=0,b=b.slice(1)):(k=Number(b[1]),b=b.slice(2));e=b[0];b=d[k];if(!b)return 0;b=b.getBBox();k=c(e,b)}return k};b.yaxis=function(b){var d=a.renderer&&a.renderer.yAxis,k,e;if(!d||!d.length)return 0;isNaN(b[0])?k=0:(k=Number(b[0]),b=b.slice(1));k=d[k];if(!k)return 0;d=b[0];if("label"===d){e=k.labels;isNaN(b[1])?(k=0,b=b.slice(1)):(k=Number(b[1]),b=b.slice(2));d=b[0];b=e[k];if(!b)return 0;
b=b.getBBox();e=c(d,b)}return e}}},W.base);W("multiseries",{series:function(b,d,k){var e,f,g=d[A],h,l;d.legend.enabled=Boolean(a(b.chart.showlegend,1));if(b.dataset&&0<b.dataset.length){this.categoryAdder(b,d);e=0;for(f=b.dataset.length;e<f;e+=1)h=b.dataset[e],l={hoverEffects:this.parseSeriesHoverOptions(b,d,h,k),visible:!a(h.initiallyhidden,0),data:[]},this.isStacked||(l.numColumns=f),h=this.point(k,l,h,b.chart,d,g.oriCatTmp.length,e),h instanceof Array?d.series=d.series.concat(h):d.series.push(h);
this.configureAxis(d,b);b.trendlines&&!this.isLog&&c(b.trendlines,d.yAxis,g,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(b,c){var d,k=0,f=c[A],e=f.axisGridManager,g=b.chart,h=c.xAxis,l,f=f.x,C,m,E,p;if(b.categories&&b.categories[0]&&b.categories[0].category)for(b.categories[0].font&&(c.xAxis.labels.style.fontFamily=b.categories[0].font),void 0!==(d=a(b.categories[0].fontsize))&&(1>d&&(d=1),c.xAxis.labels.style.fontSize=d+Ea,P(c.xAxis.labels.style)),b.categories[0].fontcolor&&(c.xAxis.labels.style.color=
b.categories[0].fontcolor.split(Ja)[0].replace(/^\#?/,"#")),m=c[A].oriCatTmp,E=b.categories[0].category,d=0;d<E.length;d+=1)E[d].vline?e.addVline(h,E[d],k,c):(C=a(E[d].showlabel,g.showlabels,1),p=b.categories[0].category[d],l=L(z(p.label,p.name)),e.addXaxisCat(h,k,k,C?l:n,{},p,g),m[k]=z(L(p.tooltext),l),k+=1);f.catCount=k},getPointStub:function(c,d,k,e,f,g,l,C,m,E){var p=this.dataObj.chart,q=this.isDual,M=this.isXY,r=this.isMLAxis,t=this.isStacked,w=this.isErrorChart,Z;e=e[A];var v,ha,ga=null===d?
d:this.numberFormatter.dataLabels(d,l),D,qa=H(L(b(c.tooltext,f.plottooltext,e.tooltext))),S=e.tooltipSepChar,oa,sa={},na,G,$,xa,I,K,N,ya,J;w&&(G=null===C?C:this.numberFormatter.dataLabels(C,l),K=null===d?n:this.numberFormatter.percentValue(C/d*100),oa=[1,2,3,4,5,6,7,99,100,101,102],d={yaxisName:xa=L(q?l?p.syaxisname:p.pyaxisname:p.yaxisname),xaxisName:I=L(p.xaxisname),formattedValue:ga,label:k,errorDataValue:G,errorPercentValue:K},M?($=null===m?m:this.numberFormatter.xAxis(m),N=null===E?n:this.numberFormatter.percentValue(m/
E*100),oa.push(103,104,105,106,107,108,109,110),J=b(c.horizontalerrorvalue,c.errorvalue),d.errorValue=ya=b(c.verticalerrorvalue,c.errorvalue),E=H(L(b(c.verticalerrorplottooltext,c.errorplottooltext,f.verticalerrorplottooltext,f.errorplottooltext,p.verticalerrorplottooltext,p.errorplottooltext))),null!==C&&(d.verticalErrorDataValue=G,d.verticalErrorPercentValue=K,d.verticalErrorValue=ya),null!==m&&(d.horizontalErrorDataValue=$,d.horizontalErrorPercentValue=N,d.horizontalErrorValue=J),na=H(L(b(c.horizontalerrorplottooltext,
c.errorplottooltext,f.horizontalerrorplottooltext,f.errorplottooltext,p.horizontalerrorplottooltext,p.errorplottooltext))),sa._hErrortoolText=e.showTooltip?void 0!==na?h(na,oa,{yaxisName:xa=L(q?l?p.syaxisname:p.pyaxisname:p.yaxisname),xaxisName:I=L(p.xaxisname),formattedValue:ga,label:k,errorDataValue:$,errorPercentValue:N,errorValue:J,verticalErrorDataValue:G,verticalErrorPercentValue:K,verticalErrorValue:ya,horizontalErrorDataValue:$,horizontalErrorPercentValue:N,horizontalErrorValue:J},c,p,f):
null===C?!1:$:!1):(E=H(L(b(c.errorplottooltext,f.errorplottooltext,p.errorplottooltext))),d.errorValue=ya=b(c.errorvalue)),sa._errortoolText=e.showTooltip?void 0!==E?h(E,oa,d,c,p,f):null===C?!1:G:!1);e.showTooltip?void 0!==qa?(t=[4,5,6,7],l={yaxisName:xa||L(q?l?p.syaxisname:p.pyaxisname:r?f._yAxisName:p.yaxisname),xaxisName:I||L(p.xaxisname)},M?(t.push(8,9,10,11),l.yDataValue=ga,l.xDataValue=k,w&&(t.push(103,104,105,106,107,108,109,110),null!==C&&(l.verticalErrorDataValue=G,l.verticalErrorPercentValue=
K,l.verticalErrorValue=ya),null!==m&&(l.horizontalErrorDataValue=$,l.horizontalErrorPercentValue=N,l.horizontalErrorValue=J))):(t.push(1,2,3),l.formattedValue=ga,l.label=k,w&&(t.push(99,100,101,102),l.errorValue=ya,null!==C&&(l.errorDataValue=G,l.errorPercentValue=K))),f=h(qa,t,l,c,p,f)):null===ga?f=!1:(e.seriesNameInToolTip&&(D=z(f&&f.seriesname)),f=D?D+S:n,f+=k?k+S:n,e.showPercentInToolTip&&t?(ha=!0,f+="$percentValue"):f+=ga):f=!1;a(c.showvalue,g)?void 0!==H(c.displayvalue)?Z=L(c.displayvalue):
e.showPercentValues?v=!0:Z=ga:Z=n;sa.link=b(c.link);sa.displayValue=Z;sa.categoryLabel=k;sa.toolText=f;sa.showPercentValues=v;sa.showPercentInToolTip=ha;return sa}},W.singleseries);W("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 d,f,k,e;e=a.sumXY;var g=a.sumX,h=a.sumY;f=a.xValues;k=a.sumXsqure;d=a.yValues;a=a.sumYsqure;b?(f.sort(Nb),
d=f[0],f=f[f.length-1],e=(c*e-g*h)/(c*k-ka(g,2)),k=isNaN(e)?h/c:e*(d-g/c)+h/c,c=isNaN(e)?h/c:e*(f-g/c)+h/c,c=[{x:d,y:k},{x:f,y:c}]):(d.sort(Nb),k=d[0],d=d[d.length-1],e=(c*e-g*h)/(c*a-ka(h,2)),f=isNaN(e)?g/c:e*(k-h/c)+g/c,c=isNaN(e)?g/c:e*(d-h/c)+g/c,c=[{x:f,y:k},{x:c,y:d}]);return c},pointValueWatcher:function(a,b,c,d){var f=a[A];null!==b&&(a=f[0],a.max=a.max>b?a.max:b,a.min=a.min<b?a.min:b);null!==c&&(a=f.x,a.max=a.max>c?a.max:c,a.min=a.min<c?a.min:c);d&&(c=c||0,b=b||0,d.sumX+=c,d.sumY+=b,d.sumXY+=
c*b,d.sumXsqure+=ka(c,2),d.xValues.push(c),d.sumYsqure+=ka(b,2),d.yValues.push(b))}},W.multiseries);W("scrollbase",{postSeriesAddition:function(){var c=this.hcJSON,d=c.xAxis.scroll,k=c[A],e=k.width,f=k.x.catCount,g=this.dataObj.chart,h=this.colorManager,l,C,n,m,p,E;k.isScroll=!0;c.chart.hasScroll=!0;if(this.isStacked)l=1;else{C=l=0;m=c.series;E=c.chart.defaultSeriesType;for(n=m.length;C<n;C++)p=b(m[C].type,E),"column"===p&&(l+=1);1>l&&(l=1)}f*=l;e=a(g.numvisibleplot,ja(e/this.avgScrollPointWidth));
d&&2<=e&&e<f&&(d.enabled=!0,d.vxLength=e/l,d.startPercent=da(1,V(0,parseFloat(g.scrolltoend)||0)),d.padding=a(g.scrollpadding,0),d.height=a(g.scrollheight,16),d.showButtons=!!a(g.scrollshowbuttons,1),d.buttonPadding=a(g.scrollbtnpadding,0),d.color=X(b(g.scrollcolor,h.getColor("altHGridColor"))),k.marginBottomExtraSpace+=d.padding+d.height);if(sa||a(g.enabletouchscroll,0))c.chart.zoomType="x",c.chart.nativeZoom=!1,c.chart.selectionMarkerFill="rgba(255,255,255,0)",(c.callbacks||(c.callbacks=[])).push(function(a){R(a,
"selectionstart selectiondrag",W.scrollbase.performTouchScroll,{})})},performTouchScroll:function(a){var b=this.xAxis[0].scroller,c=b.config,c=c.trackLength/(c.width/c.scrollRatio)*(a.chartX||1);!0!==a.isOutsidePlot&&qa(b.elements.anchor.element,"selectionstart"===a.type?"dragstart":"drag",{pageX:-c,pageY:-a.chartY})}},W.multiseries);W("logbase",{isLog:!0,isValueAbs:!0,configureAxis:function(d,k){var e=d[A],h=e.axisGridManager,f=this.numberFormatter,l=d.series,C=d.xAxis,m=d.yAxis[0],p=e[0],E=k.chart,
q=!a(E.showyaxislimits,E.showlimits,E.showyaxisvalues,1),M=!a(E.showdivlinevalues,E.showyaxisvalues,1),r=a(E.base,E.logbase,10),t=a(E.yaxismaxvalue),w=a(E.yaxisminvalue),Z=this.colorManager,z=1===a(E.showminordivlinevalues),v=b(E.minordivlinecolor,m.gridLineColor,Z.getColor("divLineColor")),ha=a(E.minordivlinealpha,E.divlinealpha,Z.getColor("divLineAlpha")),Z=[m,void 0,void 0,a(E.divlinethickness,2),m.gridLineDashStyle,m.gridLineColor,2],v=[m,void 0,void 0,a(E.minordivlinethickness,1),m.gridLineDashStyle,
I(b(E.minordivlinecolor,v),a(E.minordivlinealpha,ha/2)),2],ha=z||ha&&v[3],D=a(E.showaxislimitgridlines,this.showAxisLimitGridLines),qa=a(D,this.is3D||d.chart.plotBorderWidth?0:1),S,oa;0>=r&&(r=10);0>=t&&(t=void 0);0>=w&&(w=void 0);t=this.getLogAxisLimits(p.max||r,p.min||1,t,w,r,ha?E.numminordivlines:0);C.title.text=L(E.xaxisname);C.showLine=a(E.showxaxisline,E.showaxislines,0);C.lineThickness=a(E.xaxislinethickness,E.axislinethickness,1);C.lineAlpha=a(E.xaxislinealpha,E.axislinealpha,100);C.lineColor=
I(b(E.xaxislinecolor,E.axislinecolor,"000"));g(m,{title:{text:L(E.yaxisname)},labels:{enabled:!1},gridLineWidth:0,alternateGridColor:U,reversed:"1"===E.invertyaxis,max:ga(t.Max,r),min:ga(t.Min,r),showLine:a(E.showyaxisline,E.showaxislines,0),lineThickness:a(E.yaxislinethickness,E.axislinethickness,1),lineAlpha:a(E.yaxislinealpha,E.axislinealpha,100),lineColor:I(b(E.yaxislinecolor,E.axislinecolor,"000"))});for(E=l.length;E--;)if(w=l[E])for(w.threshold=m.min,oa=(w=w.data)&&w.length||0;oa--;)S=w[oa],
S.y=ga(S.y,r);delete p.max;delete p.min;p.isLog=!0;m.reversed&&0<=m.min&&(d.plotOptions.series.threshold=m.max);k.trendlines&&c(k.trendlines,[{max:t.Max,min:t.Min,plotLines:m.plotLines,plotBands:m.plotBands,title:m.title}],e);for(E=m.plotLines.length;E--;)S=m.plotLines[E],S.value&&(S.value=ga(S.value,r)),S.from&&(S.from=ga(S.from,r)),S.to&&(S.to=ga(S.to,r));for(E=m.plotBands.length;E--;)S=m.plotBands[E],S.from&&(S.from=ga(S.from,r)),S.to&&(S.to=ga(S.to,r));for(E=t.divArr.length;E--;){S=t.divArr[E];
if(S.ismajor)Z[1]=ga(S.value,r),Z[2]=f.yAxis(S.value),h.addAxisGridLine.apply(h,Z);else if(ha||S.isextreme)v[1]=ga(S.value,r),v[2]=z||S.isextreme?f.yAxis(S.value):n,h.addAxisGridLine.apply(h,v);w=m.plotLines[m.plotLines.length-1];S.isextreme?(w.width=D||qa&&(!S.isMin||!C.showLine)?w.width:.1,q&&(w.label.text=n)):M&&w.label&&(w.label.text=n)}},getLogAxisLimits:function(a,b,c,d,f,k){var e=function(a){return null===a||void 0===a||""===a||isNaN(a)?!1:!0},g=0,h=[],l,C,m,n,E,p,q,M;e(c)&&Number(c)>=a?a=
Number(c):(c=1<f?wa(aa(a)/aa(f)):ja(aa(a)/aa(f)),a=ka(f,c),C=c);C||(C=1<f?wa(aa(a)/aa(f)):ja(aa(a)/aa(f)));e(d)&&Number(d)<=b?b=Number(d):(c=1<f?ja(aa(b)/aa(f)):wa(aa(b)/aa(f)),b=ka(f,c),l=c);l||(l=1<f?ja(aa(b)/aa(f)):wa(aa(b)/aa(f)));d=Number(String(aa(f)/aa(10)));k=Number(k)||(ja(d)==d?8:4);1<f?(m=C,n=l):0<f&&1>f&&(m=l,n=C);d=C;for(l=m;l>=n;--l)if(m=ka(f,d),b<=m&&a>=m&&(h[g++]={value:m,ismajor:!0}),l!=n){C=1<f?-1:1;m=ka(f,d)-ka(f,d+C);c=m/(k+1);for(e=1;e<=k;++e)m=ka(f,d+C)+c*e,b<=m&&a>=m&&(h[g++]=
{value:m,ismajor:!1});1<f?d--:d++}for(q in h)for(M in h[q])"value"==M&&(E||(E=h[q][M]==b&&(h[q].isextreme=h[q].isMin=!0)),p||(p=h[q][M]==a&&(h[q].isextreme=h[q].isMax=!0)));E||(h[g++]={value:b,ismajor:!0,isMin:!0,isextreme:!0});p||(h[g]={value:a,ismajor:!0,isMax:!0,isextreme:!0});return{Max:a,Min:b,divArr:h}},pointValueWatcher:function(b,c,d){b=b[A];d=a(d,0);0<c&&(b[d]||(b[d]={}),d=b[d],d.max=d.max>c?d.max:c,d.min=d.min<c?d.min:c)}},W.mslinebase);La=W.singleseries;Ra=W.multiseries;W("column2dbase",
{point:function(c,d,k,h,f){var l=k.length,C=f[A],m=C.axisGridManager,E=f.xAxis,C=C.x,p=this.colorManager,q=/3d$/.test(f.chart.defaultSeriesType),M=this.isBar,r=/^spark/i.test(c);c=b(h.showplotborder,r||q?Ha:Qa)===Qa?q?1:a(h.plotborderthickness,1):0;var t=f.chart.useRoundEdges,w=a(h.plotborderalpha,h.plotfillalpha,100),Z=b(h.plotbordercolor,p.getColor("plotBorderColor")).split(Ja)[0],r=r?"":a(h.useplotgradientcolor,1)?G(h.plotgradientcolor,p.getColor("plotGradientColor")):n,v=0,ha=Boolean(a(h.use3dlighting,
1)),ga=f[A].numberFormatter,D,S=a(h.plotborderdashed,0),qa=a(h.plotborderdashlen,5),oa=a(h.plotborderdashgap,4),sa,na,$,H,xa,I,K,N,ya,J,R,Ba,la,P;for($=0;$<l;$+=1)la=k[$],la.vline?m.addVline(E,la,v,f):(na=ga.getCleanValue(la.value),D=a(la.showlabel,h.showlabels,1),H=L(z(la.label,la.name)),sa=b(la.color,p.getPlotColor()),xa=b(la.alpha,h.plotfillalpha,Na),I=b(la.ratio,h.plotfillratio),K=b(360-h.plotfillangle,M?180:90),N=b(la.alpha,w),ya=a(la.dashed,S),J=b(la.dashgap,oa),R=b(la.dashlen,qa),m.addXaxisCat(E,
v,v,D?H:n,la,{},h,sa),v+=1,0>na&&(K=M?180-K:360-K),P={opacity:xa/100},Ba=ca(sa+Ja+r.replace(/,+?$/,""),xa,I,K,t,Z,N+n,M,q),D=ya?e(R,J,c):"none",sa=this.pointHoverOptions(la,d,{plotType:"column",is3d:q,isBar:M,use3DLighting:ha,isRoundEdged:t,color:sa,gradientColor:r,alpha:xa,ratio:I,angle:K,borderWidth:c,borderColor:Z,borderAlpha:N,borderDashed:ya,borderDashGap:J,borderDashLen:R,shadow:P}),d.data.push(g(this.getPointStub(la,na,H,f),{y:na,shadow:P,color:Ba[0],borderColor:Ba[1],borderWidth:c,use3DLighting:ha,
dashStyle:D,tooltipConstraint:this.tooltipConstraint,hoverEffects:sa.enabled&&sa.options,rolloverProperties:sa.enabled&&sa.rolloverOptions})),this.pointValueWatcher(f,na));C.catCount=v;return d},defaultSeriesType:"column"},La);W("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(c,d,k,h,f){var l,C,m,E,p,q,M,r,t,w,Z,v,ha,ga,D,S,qa,oa,sa,na,$,G,H,xa,K,I;c=f.chart;var N=k.length,ya=f.xAxis;l=f[A];var J=this.colorManager,la,R=l.axisGridManager,Ba=0,P=l.x,Q=f[A].numberFormatter,
rb,tb,db;ga=X(b(h.linecolor,h.palettecolors,J.getColor("plotFillColor")));D=b(h.linealpha,Na);Z=a(h.linethickness,this.lineThickness,4);v=Boolean(a(h.linedashed,0));M=a(h.linedashlen,5);r=a(h.linedashgap,4);K=a(h.anchorshadow,0);d.color={FCcolor:{color:ga,alpha:D}};d.lineWidth=Z;d.anchorShadow=K;d.step=b(this.stepLine,d.step);d.drawVerticalJoins=Boolean(a(d.drawVerticalJoins,h.drawverticaljoins,1));d.useForwardSteps=Boolean(a(d.useForwardSteps,h.useforwardsteps,1));ha=a(h.drawanchors,h.showanchors);
for(C=0;C<N;C+=1)E=k[C],E.vline?R.addVline(ya,E,Ba,f):(l=Q.getCleanValue(E.value),p=a(E.showlabel,h.showlabels,1),m=L(z(E.label,E.name)),R.addXaxisCat(ya,Ba,Ba,p?m:n,E,{},h),Ba+=1,t=X(b(E.color,ga)),w=a(E.alpha,D),p=a(E.dashed,v)?e(M,r,Z):"none",q={opacity:w/100},qa=a(E.anchorsides,h.anchorsides,0),xa=a(E.anchorstartangle,h.anchorstartangle,90),na=a(E.anchorradius,h.anchorradius,this.anchorRadius,3),sa=X(b(E.anchorbordercolor,h.anchorbordercolor,ga)),oa=a(E.anchorborderthickness,h.anchorborderthickness,
this.anchorBorderThickness,1),$=X(b(E.anchorbgcolor,h.anchorbgcolor,J.getColor("anchorBgColor"))),G=b(E.anchoralpha,h.anchoralpha,Na),H=b(E.anchorbgalpha,h.anchorbgalpha,G),rb=b(E.anchorimageurl,h.anchorimageurl),tb=b(E.anchorimagescale,h.anchorimagescale,100),db=b(E.anchorimagealpha,h.anchorimagealpha,100),S=void 0===ha?0!==w:!!ha,I=Boolean(a(E.anchorshadow,K,0)),la=this.pointHoverOptions(E,d,{plotType:"anchor",anchorBgColor:$,anchorAlpha:G,anchorBgAlpha:H,anchorAngle:xa,anchorBorderThickness:oa,
anchorBorderColor:sa,anchorBorderAlpha:G,anchorSides:qa,anchorRadius:na,imageUrl:rb,imageScale:tb,imageAlpha:db,shadow:q}),d.data.push(g(this.getPointStub(E,l,m,f),{y:l,color:{FCcolor:{color:t,alpha:w}},shadow:q,dashStyle:p,valuePosition:b(E.valueposition,c.valuePosition),marker:{enabled:!!S,shadow:I&&{opacity:G/100},fillColor:{FCcolor:{color:$,alpha:H*G/100+n}},lineColor:{FCcolor:{color:sa,alpha:G}},lineWidth:oa,radius:na,startAngle:xa,symbol:pa(qa),imageUrl:rb,imageScale:tb,imageAlpha:db},tooltipConstraint:this.tooltipConstraint,
hoverEffects:la.enabled&&la.options,rolloverProperties:la.enabled&&la.rolloverOptions})),this.pointValueWatcher(f,l));P.catCount=Ba;return d},defaultZeroPlaneHighlighted:!1},La);W("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,point:function(c,d,k,h,f){c=f.chart;var l=k.length,C=f.xAxis,m=f[A],E=m.axisGridManager,m=m.x,p=f[A].numberFormatter,q=this.colorManager,M=0,r,t,w,Z,v,ha,ga,D,S,qa,oa,sa,na,$,xa,K,I,N,ya,J,la,R,Ba,P,Q,rb,tb,db;v=b(h.plotfillcolor,h.areabgcolor,H(h.palettecolors)?q.getPlotColor(0):
q.getColor("plotFillColor")).split(/\s*\,\s*/)[0];la=Ja+(a(h.useplotgradientcolor,1)?G(h.plotgradientcolor,q.getColor("plotGradientColor")):n);ha=b(h.plotfillalpha,h.areaalpha,this.isStacked?Na:"90");ga=a(h.plotfillangle,270);D=b(h.plotbordercolor,h.areabordercolor,H(h.palettecolors)?q.getPlotColor(0):q.getColor("plotBorderColor")).split(/\s*\,\s*/)[0];S=h.showplotborder==Ha?Ha:b(h.plotborderalpha,h.plotfillalpha,h.areaalpha,Na);r=a(h.plotborderangle,270);t=Boolean(a(h.plotborderdashed,0));w=a(h.plotborderdashlen,
5);na=a(h.plotborderdashgap,4);I=a(h.plotborderthickness,h.areaborderthickness,1);R=d.fillColor={FCcolor:{color:v+la.replace(/,+?$/,""),alpha:ha,ratio:Za,angle:ga}};d.lineWidth=I;d.dashStyle=t?e(w,na,I):"none";d.lineColor={FCcolor:{color:D,alpha:S,ratio:Na,angle:r}};d.step=b(this.stepLine,d.step);d.drawVerticalJoins=Boolean(a(d.drawVerticalJoins,h.drawverticaljoins,1));d.useForwardSteps=Boolean(a(d.useForwardSteps,h.useforwardsteps,1));I=Boolean(a(h.drawanchors,h.showanchors,1));d.anchorShadow=Ba=
a(h.anchorshadow,0);for(t=0;t<l;t+=1)na=k[t],na.vline?E.addVline(C,na,M,f):(r=p.getCleanValue(na.value),Z=a(na.showlabel,h.showlabels,1),w=L(z(na.label,na.name)),E.addXaxisCat(C,M,M,Z?w:n,na,{},h),M+=1,Z=a(na.anchorsides,h.anchorsides,0),sa=a(na.anchorstartangle,h.anchorstartangle,90),qa=a(na.anchorradius,h.anchorradius,3),oa=X(b(na.anchorbordercolor,h.anchorbordercolor,D)),N=a(na.anchorborderthickness,h.anchorborderthickness,1),$=X(b(na.anchorbgcolor,h.anchorbgcolor,q.getColor("anchorBgColor"))),
xa=b(na.anchoralpha,h.anchoralpha,this.anchorAlpha,Ha),K=b(na.anchorbgalpha,h.anchorbgalpha,xa),P=Boolean(a(na.anchorshadow,Ba,0)),ya=H(na.color),J=a(na.alpha),ya=void 0!==ya||void 0!==J?{FCcolor:{color:ya?X(ya)+la:v,alpha:void 0===J?T(J)+n:ha,ratio:Za,angle:ga}}:R,Q=b(na.anchorimageurl,h.anchorimageurl),rb=b(na.anchorimagescale,h.anchorimagescale,100),tb=b(na.anchorimagealpha,h.anchorimagealpha,100),J={opacity:V(J,S)/100,inverted:!0},db=this.pointHoverOptions(na,d,{plotType:"anchor",anchorBgColor:$,
anchorAlpha:xa,anchorBgAlpha:K,anchorAngle:sa,anchorBorderThickness:N,anchorBorderColor:oa,anchorBorderAlpha:xa,anchorSides:Z,anchorRadius:qa,imageUrl:Q,imageScale:rb,imageAlpha:tb,shadow:J}),d.data.push(g(this.getPointStub(na,r,w,f),{y:r,shadow:J,color:ya,valuePosition:b(na.valueposition,c.valuePosition),marker:{enabled:I,shadow:P&&{opacity:xa/100},fillColor:{FCcolor:{color:$,alpha:K*xa/100+n}},lineColor:{FCcolor:{color:oa,alpha:xa}},lineWidth:N,radius:qa,symbol:pa(Z),startAngle:sa,imageUrl:Q,imageScale:rb,
imageAlpha:tb},tooltipConstraint:this.tooltipConstraint,previousY:this.pointValueWatcher(f,r),hoverEffects:db.enabled&&db.options,rolloverProperties:db.enabled&&db.rolloverOptions})));m.catCount=M;return d}},La);W("mscolumn2dbase",{point:function(c,d,k,e,f,g,h,l,C){c=a(e.ignoreemptydatasets,0);var m=!1,E=k.data||[],p=f[A],q=b(d.type,this.defaultSeriesType),M=b(d.isStacked,f.plotOptions[q]&&f.plotOptions[q].stacking),r=b(this.isValueAbs,p.isValueAbs,!1),t=a(d.yAxis,0),w=f[A].numberFormatter,Z=this.colorManager,
v=Z.getPlotColor(),z,ha=f._FCconf.isBar,ga=d.hoverEffects;M||(d.columnPosition=a(C,l,h));d.name=H(k.seriesname);if(0===a(k.includeinlegend)||void 0===d.name)d.showInLegend=!1;d.color=b(k.color,v).split(Ja)[0].replace(/^#?/g,"#");h=/3d$/.test(f.chart.defaultSeriesType);C=b(360-e.plotfillangle,ha?180:90);0>z&&(C=360-C);k=d._dataParser=Ub.column(f,{seriesname:d.name,plottooltext:k.plottooltext,color:b(k.color,v),alpha:b(k.alpha,e.plotfillalpha,Na),plotgradientcolor:a(e.useplotgradientcolor,1)?G(e.plotgradientcolor,
Z.getColor("plotGradientColor")):n,ratio:b(k.ratio,e.plotfillratio),fillAangle:C,isRoundEdges:f.chart.useRoundEdges,plotBorderColor:b(e.plotbordercolor,h?ib:Z.getColor("plotBorderColor")).split(Ja)[0],plotBorderAlpha:e.showplotborder==Ha||h&&e.showplotborder!=Qa?Ha:b(e.plotborderalpha,Na),isBar:this.isBar,is3d:h,dashed:a(k.dashed,e.plotborderdashed,0),dashLen:a(k.dashlen,e.plotborderdashlen,5),dashGap:a(k.dashgap,e.plotborderdashgap,4),borderWidth:a(e.plotborderthickness,Qa),showValues:a(k.showvalues,
p.showValues),yAxis:t,use3DLighting:a(e.use3dlighting,1),_sourceDataset:k,hoverEffects:ga},this);for(e=0;e<g;e+=1)(p=E[e])?(z=w.getCleanValue(p.value,r),null===z?d.data.push({y:null}):(m=!0,p=k(p,e,z),d.data.push(p),p.previousY=this.pointValueWatcher(f,z,t,M,e,l,q))):d.data.push({y:null});!c||m||this.realtimeEnabled||(d.showInLegend=!1);return d},defaultSeriesType:"column"},Ra);W("mslinebase",{hasVDivLine:!0,point:function(c,d,k,e,f,g){c=a(e.ignoreemptydatasets,0);var h=!1,l=this.colorManager,C,m;
C=f.chart;var E=k.data||[];m=f[A];var p=b(d.type,this.defaultSeriesType),q=b(d.isStacked,f.plotOptions[p]&&f.plotOptions[p].stacking),M=b(this.isValueAbs,m.isValueAbs,!1),r=a(d.yAxis,0),t=this.numberFormatter,w=X(b(k.color,e.linecolor,l.getPlotColor())),Z=a(k.alpha,e.linealpha,Na),v=a(e.showshadow,this.defaultPlotShadow,1),z=a(k.drawanchors,k.showanchors,e.drawanchors,e.showanchors),ha=a(k.anchorsides,e.anchorsides,0),ga=a(k.anchorstartangle,e.anchorstartangle,90),D=a(k.anchorradius,e.anchorradius,
3),S=X(b(k.anchorbordercolor,e.anchorbordercolor,w)),qa=a(k.anchorborderthickness,e.anchorborderthickness,1),l=X(b(k.anchorbgcolor,e.anchorbgcolor,l.getColor("anchorBgColor"))),oa=b(k.anchoralpha,e.anchoralpha,Na),sa=b(k.anchorbgalpha,e.anchorbgalpha,oa),na=oa&&b(k.anchorshadow,e.anchorshadow,0),$=d.hoverEffects;d.name=H(k.seriesname);if(0===a(k.includeinlegend)||void 0===d.name||0===Z&&1!==z)d.showInLegend=!1;d.marker={fillColor:{FCcolor:{color:l,alpha:sa*oa/100+n}},lineColor:{FCcolor:{color:S,alpha:oa+
n}},lineWidth:qa,radius:D,symbol:pa(ha),startAngle:ga};d.color={FCcolor:{color:w,alpha:Z}};d.shadow=v?{opacity:v?Z/100:0}:!1;d.anchorShadow=na;d.step=b(this.stepLine,d.step);d.drawVerticalJoins=Boolean(a(d.drawVerticalJoins,e.drawverticaljoins,1));d.useForwardSteps=Boolean(a(d.useForwardSteps,e.useforwardsteps,1));d.lineWidth=a(k.linethickness,e.linethickness,2);C=d._dataParser=Ub.line(f,{seriesname:d.name,plottooltext:k.plottooltext,lineAlpha:Z,anchorAlpha:oa,showValues:a(k.showvalues,m.showValues),
yAxis:r,lineDashed:Boolean(a(k.dashed,e.linedashed,0)),lineDashLen:a(k.linedashlen,e.linedashlen,5),lineDashGap:a(k.linedashgap,e.linedashgap,4),lineThickness:d.lineWidth,lineColor:w,valuePosition:b(k.valueposition,C.valuePosition),drawAnchors:z,anchorBgColor:l,anchorBgAlpha:sa,anchorBorderColor:S,anchorBorderThickness:qa,anchorRadius:D,anchorSides:ha,anchorAngle:ga,anchorShadow:d.anchorShadow,anchorStartAngle:a(k.anchorstartangle,e.anchorstartangle),_sourceDataset:k,hoverEffects:$,imageUrl:b(k.anchorimageurl,
e.anchorimageurl),imageScale:b(k.anchorimagescale,e.anchorimagescale,100),imageAlpha:b(k.anchorimagealpha,e.anchorimagealpha,100)},this);for(e=0;e<g;e+=1)(m=E[e])?(k=t.getCleanValue(m.value,M),null===k?d.data.push({y:null}):(h=!0,m=C(m,e,k),d.data.push(m),m.previousY=this.pointValueWatcher(f,k,r,q,e,0,p))):d.data.push({y:null});!c||h||this.realtimeEnabled||(d.showInLegend=!1);return d},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},Ra);W("msareabase",{hasVDivLine:!0,
point:function(c,d,k,g,f,h){c=a(g.ignoreemptydatasets,0);var l=!1,C=f.chart,m=k.data||[],E=f[A],p=b(d.type,this.defaultSeriesType),q=b(d.isStacked,f.plotOptions[p]&&f.plotOptions[p].stacking),M=b(this.isValueAbs,E.isValueAbs,!1),r=a(d.yAxis,0),t=f[A].numberFormatter,w=this.colorManager,Z=w.getPlotColor(),v=b(k.color,g.plotfillcolor,Z).split(Ja)[0].replace(/^#?/g,"#").split(Ja)[0],z=b(k.alpha,g.plotfillalpha,g.areaalpha,this.areaAlpha,70),ha=a(g.plotfillangle,270),Z=b(k.plotbordercolor,g.plotbordercolor,
g.areabordercolor,this.isRadar?Z:"666666").split(Ja)[0],ga=b(k.showplotborder,g.showplotborder)==Ha?Ha:b(k.plotborderalpha,g.plotborderalpha,k.alpha,g.plotfillalpha,g.areaalpha,"95"),D=a(g.plotborderangle,270),S=a(k.anchorsides,g.anchorsides,0),qa=a(k.anchorstartangle,g.anchorstartangle,90),oa=a(k.anchorradius,g.anchorradius,3),sa=X(b(k.anchorbordercolor,g.anchorbordercolor,v)),na=a(k.anchorborderthickness,g.anchorborderthickness,1),$=X(b(k.anchorbgcolor,g.anchorbgcolor,w.getColor("anchorBgColor"))),
H=a(k.anchoralpha,g.anchoralpha,this.anchorAlpha,0),xa=a(k.anchorbgalpha,g.anchorbgalpha,H),K=H&&b(k.anchorshadow,g.anchorshadow,0),I=d.hoverEffects;this.isRadar||(v+=Ja+(a(g.useplotgradientcolor,1)?G(g.plotgradientcolor,w.getColor("plotGradientColor")):n),v=v.replace(/,+?$/,""));d.step=b(this.stepLine,d.step);d.drawVerticalJoins=Boolean(a(d.drawVerticalJoins,g.drawverticaljoins,1));d.useForwardSteps=Boolean(a(d.useForwardSteps,g.useforwardsteps,1));d.name=b(k.seriesname);if(0===a(k.includeinlegend)||
void 0===d.name)d.showInLegend=!1;d.fillColor={FCcolor:{color:v,alpha:z,ratio:Za,angle:ha}};d.color=v;d.shadow={opacity:a(g.showshadow,1)?ga/100:0};d.anchorShadow=K;d.lineColor={FCcolor:{color:Z,alpha:ga,ratio:Na,angle:D}};d.lineWidth=b(k.plotborderthickness,g.plotborderthickness,1);d.dashStyle=Boolean(a(k.dashed,g.plotborderdashed,0))?e(a(k.dashlen,g.plotborderdashlen,5),a(k.dashgap,g.plotborderdashgap,4),d.lineWidth):void 0;d.marker={fillColor:{FCcolor:{color:$,alpha:xa*H/100+n}},lineColor:{FCcolor:{color:sa,
alpha:H+n}},lineWidth:na,radius:oa,symbol:pa(S),startAngle:qa};k=d._dataParser=Ub.area(f,{seriesname:d.name,plottooltext:k.plottooltext,lineAlpha:ga,anchorAlpha:H,showValues:a(k.showvalues,E.showValues),yAxis:r,fillColor:v,fillAlpha:z,valuePosition:b(k.valueposition,C.valuePosition),drawAnchors:Boolean(a(k.drawanchors,g.drawanchors,g.showanchors,1)),anchorBgColor:$,anchorBgAlpha:xa,anchorBorderColor:sa,anchorBorderThickness:na,anchorRadius:oa,anchorSides:S,anchorAngle:qa,anchorShadow:d.anchorShadow,
getLink:this.linkClickFN,anchorStartAngle:a(k.anchorstartangle,g.anchorstartangle),_sourceDataset:k,hoverEffects:I,imageUrl:b(k.anchorimageurl,g.anchorimageurl),imageScale:b(k.anchorimagescale,g.anchorimagescale,100),imageAlpha:b(k.anchorimagealpha,g.anchorimagealpha,100)},this);for(C=0;C<h;C+=1)(E=m[C])?(g=E?t.getCleanValue(E.value,M):null,null===g?d.data.push({y:null}):(l=!0,E=k(E,C,g),d.data.push(E),E.previousY=this.pointValueWatcher(f,g,r,q,C,0,p))):d.data.push({y:null});!c||l||this.realtimeEnabled||
(d.showInLegend=!1);return d},defaultSeriesType:"area",defaultPlotShadow:0},Ra);W("scatterbase",{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",canvasPaddingModifiers:["anchorlabel"],point:function(c,d,k,g,f,h,l){c=a(g.ignoreemptydatasets,0);var C=this.colorManager,m=C.getPlotColor(),E,p,q,M,r,t,w,Z,v,z,ha,ga,D,S,qa,oa,sa,na,$;h=!1;var G,xa;r=a(k.drawline,g.drawlines,0);t=a(k.drawprogressioncurve,0);M=k.data||[];var K,N,ya,J,la,L=a(k.showvalues,f[A].showValues),
R=this.numberFormatter,Ba,P=d._showRegression=a(k.showregressionline,g.showregressionline,0);d.zIndex=1;d.name=H(k.seriesname);if(0===a(k.includeinlegend)||void 0===d.name)d.showInLegend=!1;if(r||t)q=X(b(k.color,m)),M=b(k.alpha,Na),r=a(k.linethickness,g.linethickness,2),t=Boolean(a(k.linedashed,k.dashed,g.linedashed,0)),w=a(k.linedashlen,g.linedashlen,5),Z=a(k.linedashgap,g.linedashgap,4),d.color=I(b(k.linecolor,g.linecolor,q),a(k.linealpha,g.linealpha,M)),d.lineWidth=r,d.dashStyle=t?e(w,Z,r):"none";
r=Boolean(a(k.drawanchors,k.showanchors,g.drawanchors,g.showanchors,1));l=a(k.anchorsides,g.anchorsides,l+3);t=a(k.anchorradius,g.anchorradius,3);q=X(b(k.anchorbordercolor,k.color,g.anchorbordercolor,q,m));m=a(k.anchorborderthickness,g.anchorborderthickness,1);w=X(b(k.anchorbgcolor,g.anchorbgcolor,C.getColor("anchorBgColor")));Z=b(k.anchoralpha,k.alpha,g.anchoralpha,Na);ha=b(k.anchorbgalpha,k.alpha,g.anchorbgalpha,Z);G=b(k.anchorstartangle,g.anchorstartangle,90);d.anchorShadow=C=a(g.anchorshadow,
0);d.marker={fillColor:this.getPointColor(w,Na),lineColor:{FCcolor:{color:q,alpha:Z+n}},lineWidth:m,radius:t,symbol:pa(l)};M=k.data||[];la=M.length;P&&(d.events={hide:this.hideRLine,show:this.showRLine},K={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},J=a(k.showyonx,g.showyonx,1),N=X(b(k.regressionlinecolor,g.regressionlinecolor,q)),ya=a(k.regressionlinethickness,g.regressionlinethickness,m),E=T(a(k.regressionlinealpha,g.regressionlinealpha,Z)),N=I(N,E));for(p=0;p<la;p+=1)(v=
M[p])?(E=R.getCleanValue(v.y),$=R.getCleanValue(v.x),null===E?d.data.push({y:null,x:$}):(h=!0,xa=this.getPointStub(v,E,R.xAxis($),f,k,L),ga=a(v.anchorsides,l),D=a(v.anchorradius,t),S=X(b(v.anchorbordercolor,q)),qa=a(v.anchorborderthickness,m),oa=X(b(v.anchorbgcolor,w)),sa=b(v.anchoralpha,v.alpha,Z),na=b(v.anchorbgalpha,ha),z=Boolean(a(v.anchorshadow,C,0)),Ba=this.pointHoverOptions(v,d,{plotType:"anchor",anchorBgColor:oa,anchorAlpha:sa,anchorBgAlpha:na,anchorAngle:G,anchorBorderThickness:qa,anchorBorderColor:S,
anchorBorderAlpha:sa,anchorSides:ga,anchorRadius:D,shadow:void 0}),d.data.push({y:E,x:$,displayValue:xa.displayValue,toolText:xa.toolText,link:xa.link,marker:{enabled:r,shadow:z&&{opacity:sa/100},fillColor:{FCcolor:{color:oa,alpha:na*sa/100+n}},lineColor:{FCcolor:{color:S,alpha:sa}},lineWidth:qa,radius:D,symbol:pa(ga),startAngle:b(v.anchorstartangle,k.anchorstartangle,g.anchorstartangle,90)},hoverEffects:Ba.enabled&&Ba.options,rolloverProperties:Ba.enabled&&Ba.rolloverOptions}),this.pointValueWatcher(f,
E,$,P&&K))):d.data.push({y:null});P&&(k=this.getRegressionLineSeries(K,J,la),this.pointValueWatcher(f,k[0].y,k[0].x),this.pointValueWatcher(f,k[1].y,k[1].x),f={type:"line",color:N,showInLegend:!1,lineWidth:ya,enableMouseTracking:!1,marker:{enabled:!1},data:k,zIndex:0},d=[d,f]);c&&!h&&(d.showInLegend=!1);return d},postSeriesAddition:function(b,c){for(var d=b.chart,k=c.chart,f=b.series,e=0,g=f.length;e<g;e+=1)f[e]._showRegression&&(f[e].relatedSeries=[e+1]);d.clipBubbles=a(k.clipbubbles,1)},categoryAdder:function(c,
d){var k,g=0,f,h=d[A].x,l,C=d.xAxis,m,E,p=c.chart,q=parseInt(p.labelstep,10),M=a(p.showlabels,1),r=b(p.xaxislabelmode,"categories").toLowerCase(),t=this.colorManager,w=d[A].numberFormatter,Z,v,ha,ga,D,S;d._FCconf.isXYPlot=!0;q=1<q?q:1;h.catOccupied={};if("auto"!==r&&c.categories&&c.categories[0]&&c.categories[0].category){E=c.categories[0];E.font&&(d.xAxis.labels.style.fontFamily=E.font);void 0!==(f=a(E.fontsize))&&(1>f&&(f=1),d.xAxis.labels.style.fontSize=f+Ea,P(d.xAxis.labels.style));E.fontcolor&&
(d.xAxis.labels.style.color=E.fontcolor.split(Ja)[0].replace(/^\#?/,"#"));k=b(E.verticallinecolor,t.getColor("divLineColor"));f=a(E.verticallinethickness,1);l=a(E.verticallinealpha,t.getColor("divLineAlpha"));t=a(E.verticallinedashed,0);Z=a(E.verticallinedashlen,4);v=a(E.verticallinedashgap,2);ha=I(k,l);for(k=0;k<E.category.length;k+=1)ga=E.category[k],l=w.getCleanValue(ga.x),null===l||ga.vline||(h.catOccupied[l]=!0,m=a(ga.showlabel,ga.showname,M),D=a(ga.showverticalline,ga.showline,ga.sl,0),S=a(ga.linedashed,
t),m=0===m||0!==g%q?n:L(z(ga.label,ga.name)),C.plotLines.push({isGrid:!0,isCat:!0,isDataLabel:!0,width:D?f:0,color:ha,dashStyle:e(Z,v,f,S),value:l,label:{text:m,link:b(ga.link,p.labellink),style:Da({},ga,p,C.labels.style),align:Fa,verticalAlign:Ta,textAlign:Fa,rotation:0,x:0,y:0}}),this.pointValueWatcher(d,null,l),g+=1);"mixed"===r&&(h.requiredAutoNumericLabels=a(this.requiredAutoNumericLabels,1))}else h.requiredAutoNumericLabels=a(this.requiredAutoNumericLabels,1);h.adjustMinMax=!0},getPointColor:function(a,
b){var c,d;a=X(a);b=T(b);c=J(a,70);d=r(a,50);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:.4,cy:.4,r:"100%",color:c+Ja+d,alpha:b+Ja+b,ratio:Za,radialGradient:!0}}}},W.xybase);W("mscombibase",{canvasPaddingModifiers:["anchor","anchorlabel"],series:function(d,k,e){var g,f,h,l,C=d.chart,m,E=[],n=[],p=[],q,M,r=k[A],t=this.isDual,w=0,Z;k.legend.enabled=Boolean(a(d.chart.showlegend,1));if(d.dataset&&0<d.dataset.length){this.categoryAdder(d,k);l=r.oriCatTmp.length;g=0;for(f=d.dataset.length;g<f;g+=
1)switch(h=d.dataset[g],q=t&&"s"===b(h.parentyaxis,"p").toLowerCase()?!0:!1,m={hoverEffects:this.parseSeriesHoverOptions(d,k,h,e),visible:!a(h.initiallyhidden,0),legendIndex:g,data:[]},q?(m.yAxis=1,M=z(h.renderas,this.secondarySeriesType),this.secondarySeriesFilter&&(Z=this.secondarySeriesFilter[M])):(M=z(h.renderas,this.defaultSeriesType),this.defaultSeriesFilter&&(Z=this.defaultSeriesFilter[M])),M=M.toLowerCase(),M){case "line":case "spline":m.type=!0===Z?M:"line";E.push(W.mslinebase.point.call(this,
e,m,h,C,k,l,g));break;case "area":case "splinearea":m.type=!0===Z?M:"area";k.chart.series2D3Dshift=!0;p.push(W.msareabase.point.call(this,e,m,h,C,k,l,g));break;case "column":case "column3d":n.push(W.mscolumn2dbase.point.call(this,e,m,d.dataset[g],C,k,l,g,void 0,w));w+=1;break;default:q?(m.type="line",E.push(W.mslinebase.point.call(this,e,m,h,C,k,l,g))):(n.push(W.mscolumn2dbase.point.call(this,e,m,d.dataset[g],C,k,l,g,void 0,w)),w+=1)}"0"!==C.areaovercolumns?(k.chart.areaOverColumns=!0,k.series=k.series.concat(n,
p,E)):(k.chart.areaOverColumns=!1,k.series=k.series.concat(p,n,E));if(0===n.length&&1!==l)r.hasNoColumn=!0;else if(!this.isStacked)for(e=0,g=n.length;e<g;e+=1)n[e].numColumns=g;this.configureAxis(k,d);d.trendlines&&c(d.trendlines,k.yAxis,k[A],t,this.isBar)}}},W.mscolumn2dbase)}]);
FusionCharts.register("module",["private","modules.renderer.js-renderer",function(){function d(a,b,c,d){var e=b.paper,g=b.layers,h=c?"y-axis":"x-axis",l=this.layerAboveDataset=g.layerAboveDataset,m=this.layerBelowDataset=g.layerBelowDataset,g=l.bands||(l.bands=[]),n=g.length,p=m.bands||(m.bands=[]),q=p.length,r=l.lines||(l.lines=[]),t=r.length,w=m.lines||(m.lines=[]),A=w.length,l=l.labels||(l.labels=[]),v=l.length,m=m.labels||(m.labels=[]),z=m.length;this.renderer=b;this.axisData=a||{};this.globalOptions=
b.options;this.isVertical=c;this.topBandGroup=this.topBandGroup||e.group(h+"-bands",this.layerAboveDataset);this.belowBandGroup=this.belowBandGroup||e.group(h+"-bands",this.layerBelowDataset);g.push(this.topBandGroup);n&&g[n].insertAfter(g[n-1]);p.push(this.belowBandGroup);q&&p[q].insertAfter(p[q-1]);this.topLineGroup=this.topLineGroup||e.group(h+"-lines",this.layerAboveDataset);this.belowLineGroup=this.belowLineGroup||e.group(h+"-lines",this.layerBelowDataset);this.topLabelGroup=this.topLabelGroup||
e.group(h+"-labels",this.layerAboveDataset);this.belowLabelGroup=this.belowLabelGroup||e.group(h+"-labels",this.layerBelowDataset);r.push(this.topLineGroup);t&&r[t].insertAfter(r[t-1]);w.push(this.belowLineGroup);A&&w[A].insertAfter(w[A-1]);l.push(this.topLabelGroup);v&&l[v].insertAfter(l[v-1]);m.push(this.belowLabelGroup);z&&m[z].insertAfter(m[z-1]);this.isReverse=d;this.configure()}function m(a,b,c,d){return W(b-c[1]-d.top,a-c[0]-d.left)}function D(a,b){var c=b?360:Ya;a=(a||0)%c;return 0>a?c+a:
a}var v=this,n=v.window,c=v.hcLib,K=c.Raphael,b=c.chartAPI,H=/msie/i.test(n.navigator.userAgent)&&!n.opera,a=n.document,z=n.Image,G="VML"===K.type,L=c.BLANKSTRING,A="rgba(192,192,192,"+(H?.002:1E-6)+")",H=c.TOUCH_THRESHOLD_PIXELS,g=c.CLICK_THRESHOLD_PIXELS,e=c.stubFN,h={pageX:0,pageY:0},l=parseFloat,N=parseInt,w=c.extend2,p=c.addEvent,R=c.getMouseCoordinate,t=c.removeEvent,fa=c.pluck,q=c.pluckNumber,da=c.toRaphaelColor,V=c.setImageDisplayMode,ia=c.FC_CONFIG_STRING,wa=c.plotEventHandler,ja=c.isArray,
aa=c.each=function(a,b,c,d){var e;c||(c=a);d||(d={});if(ja(a))for(e=0;e<a.length;e+=1){if(!1===b.call(c,a[e],e,a,d))return e}else if(null!==a&&void 0!==a)for(e in a)if(!1===b.call(c,a[e],e,a,d))return e},ka=c.createElement,Y=c.createContextMenu,ca=c.hasTouch,X=ca?H:g,P=c.getSentenceCase,Q=c.getCrispValues,T=c.getValidValue,r=c.getFirstValue,J=c.regex.dropHash,I=c.HASHSTRING,U=function(a){return a!==Ia&&null!==a},Fa=function(a,b){a[1]===a[4]&&(a[1]=a[4]=pa(a[1])+b%2/2);a[2]===a[5]&&(a[2]=a[5]=pa(a[2])+
b%2/2);return a},Ia,Ta=8===a.documentMode?"visible":"",ea=n.Math,za=ea.sin,Da=ea.cos,W=ea.atan2,pa=ea.round,La=ea.min,Ra=ea.max,Ja=ea.abs,ab=ea.ceil,Ha=ea.floor,Qa=180/ea.PI,Na=ea.PI,Ea=Na/2,Ya=2*Na,nb=Na+Ea,Sb=c.getFirstColor,Fb=c.graphics.getLightColor,Za=c.POSITION_TOP,ib=c.POSITION_BOTTOM,pb=c.POSITION_RIGHT,sb=c.POSITION_LEFT;K.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(K.svg)for(b=
b.getElementsByTagName("tspan")[0];b;)b.ishot=a,b=b.nextSibling}return!1};K.addSymbol({printIcon:function(a,b,c){var d=.75*c,e=.5*c,g=.33*c,h=pa(a-c)+.5,l=pa(b-c)+.5,m=pa(a+c)+.5;c=pa(b+c)+.5;var n=pa(a-d)+.5,p=pa(b-d)+.5,d=pa(a+d)+.5,q=pa(b+e)+.5,r=pa(a+e)+.5,t=pa(b+g)+.5;a=pa(a-e)+.5;g=pa(b+g+g)+.5;return["M",n,l,"L",d,l,d,p,n,p,"Z","M",h,p,"L",h,q,n,q,n,b,d,b,d,q,m,q,m,p,"Z","M",n,b,"L",n,c,d,c,d,b,"Z","M",r,t,"L",a,t,"M",r,g,"L",a,g]},exportIcon:function(a,b,c){var d=.66*c,e=.5*d,g=pa(a-c)+.5,
h=pa(b-c)+.5,l=pa(a+c)+.5;c=pa(b+c)-.5;var m=pa(a-e)+.5,n=b<c-3?c-3:pa(b)+.5,e=pa(a+e)-.5,p=pa(a+d)-.5,d=pa(a-d)+.5;return["M",g,n,"L",g,c,l,c,l,n,l,c,g,c,"Z","M",a,c-1,"L",d,b,m,b,m,h,e,h,e,b,p,b,"Z"]}});c.rendererRoot=b("renderer.root",{standaloneInit:!1,isRenderer:!0,inited:!1,callbacks:[],init:function(a,b,c){var d=this,e=d.container=a&&a.containerElement||b.chart.renderTo,g=b.tooltip,h=d.layer,l,m;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;m=(l=b.chart)&&l.animation&&l.animation.duration;d.animationCompleteQueue=[];e.innerHTML=L;e=d.paper=d.fusionCharts.jsVars.paper=new K(e,e.offsetWidth||a.width,e.offsetHeight||a.height);!1!==v.core.options._useSVGDescTag&&e._desc&&(l=a.friendlyName||"Vector image",d.definition&&d.definition.chart&&d.definition.chart.caption&&(l+=' with caption "'+d.definition.chart.caption+'"'),e._desc(l));d.chartWidth=e.width;d.chartHeight=e.height;d.elements||
(d.elements={});h||(h=d.layers={},h.background=h.background||e.group("background"),h.dataset=h.dataset||e.group("dataset").insertAfter(h.background),h.tracker=h.tracker||e.group("hot").insertAfter(h.dataset));g&&!1!==g.enabled&&(e.tooltip(g.style,g.shadow,g.constrain),h.tracker.trackTooltip(!0),h.dataset.trackTooltip(!0));d.disposeChartStyleSheet();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();aa(b.callbacks,function(a){a.apply(d,this)},[a]);aa(d.callbacks,function(a){a.apply(d,this)},[a]);d.fusionCharts.annotations&&d.fusionCharts.annotations.draw(d);d.createChartStyleSheet();d.options.nativeMessage||m||v.raiseEvent("internal.animationComplete",{},d.fusionCharts);d.hasRendered=!0;c&&c(d)},disposeChartStyleSheet:function(){this.paper.cssClear()},createChartStyleSheet:function(){this.paper.cssRender()},addCSSDefinition:function(a,b){var c=this.paper;b.color&&
(b.fill=b.color);c.cssAddRule(a,b)},animationCompleteQueue:[],animationComplete:function(){var a,b,c,d;this.animatedElements=this.animatedElements?++this.animatedElements:1;if(this.animatedElements===this.animatingElementsCount){c=this.animationCompleteQueue;a=0;for(b=c.length;a<b;a++)d=c[a],d.fn&&d.fn.call(d.scope);this.animationCompleteQueue=[];v.raiseEvent("internal.animationComplete",{},this.fusionCharts)}},getAnimationCompleteFn:function(){var a=this;a.animatingElementsCount=a.animatingElementsCount?
++a.animatingElementsCount:1;return function(){a.animationComplete()}},reinit:function(a,b,c){this.hasRendered||this.init(b,c)},dispose:function(){var a=this.eventListeners,b=a&&a.length;this.disposing=!0;if(b)for(;b--;)a[b].unlisten();if(this.toolbar&&this.toolbar.length){for(;this.toolbar.length;)a=this.toolbar.pop(),a.remove();this.toolbar.add=null}if(this.menus&&this.menus.length)for(;this.menus.length;)a=this.menus.pop(),a.destroy();this.paper&&(this.paper.clear(),this.paper.remove(),delete this.paper);
this.exportIframe&&(this.exportIframe.parentNode.removeChild(this.exportIframe),delete this.exportIframe);delete this.disposing;this.container=null;this.disposed=!0},onContainerClick:function(a){var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,d=a.data,e=d.fusionCharts;a=c.getMouseCoordinate(d.container,a.originalEvent);e.ref&&(e=w({height:e.args.height,width:e.args.width,pixelHeight:e.ref.offsetHeight,pixelWidth:e.ref.offsetWidth,id:e.args.id,renderer:e.args.renderer,
container:e.options.containerElement},a),v.raiseEvent("chartclick",e,d.logic.chartInstance),b&&b.ishot&&d||d.options.chart.link&&d.linkClickFN.call(d,d))},onContainerMouseMove:function(a){var b=a.data,d=b.fusionCharts;a=c.getMouseCoordinate(b.container,a.originalEvent);d.ref&&(d=w({height:d.args.height,width:d.args.width,pixelHeight:d.ref.offsetHeight,pixelWidth:d.ref.offsetWidth,id:d.args.id,renderer:d.args.renderer,container:d.options.containerElement},a),v.raiseEvent("chartMouseMove",d,b.logic.chartInstance))},
onContainerRollOver:function(a){var b=a.data,d=b.fusionCharts;a=c.getMouseCoordinate(b.container,a.originalEvent);d.ref&&(d=w({height:d.args.height,width:d.args.width,pixelHeight:d.ref.offsetHeight,pixelWidth:d.ref.offsetWidth,id:d.args.id,renderer:d.args.renderer,container:d.options.containerElement},a),v.raiseEvent("chartRollOver",d,b.logic.chartInstance))},onContainerRollOut:function(a){var b=a.chart,d=b.fusionCharts;a=c.getMouseCoordinate(b.container,a.event);d.ref&&(d=w({height:d.args.height,
width:d.args.width,pixelHeight:d.ref.offsetHeight,pixelWidth:d.ref.offsetWidth,id:d.args.id,renderer:d.args.renderer,container:d.options.containerElement},a),v.raiseEvent("chartRollOut",d,b.logic.chartInstance))},mouseStateIn:!1,winMouseHover:function(b){var c=b.originalEvent,c=c.target||c.originalTarget||c.srcElement||c.relatedTarget||c.fromElement,d=b.data,e=d.paper;b={chart:d,event:b.originalEvent};G?e.getById(c.parentNode.raphaelid)||(d.onContainerRollOut(b),d.mouseStateIn=!1,t(a,"mouseover",
d.winMouseHover)):c.viewportElement||(d.mouseStateIn=!1,d.onContainerRollOut(b),t(n,"mouseover",d.winMouseHover))},chartHoverManager:function(){return function(b){var c=b.type,d=b.data,e=d.eventListeners||(d.eventListeners=[]);"mouseover"!==c&&"touchstart"!==c||!1!==d.mouseStateIn||(d.mouseStateIn=!0,d.onContainerRollOver(b),e.push(p(G?a:n,"mouseover",d.winMouseHover,d)))}}(),setChartEvents:function(){var a=this.options,b=this.eventListeners||(this.eventListeners=[]),a=this.link=a.chart.link,c=this.container,
d=q(this.definition&&this.definition.chart.enablechartmousemoveevent,0);t(c,"click",this.onContainerClick);b.push(p(c,"click",this.onContainerClick,this));t(this.paper.canvas,"mouseover",this.chartHoverManager,this);t(this.paper.canvas,"touchstart",this.chartHoverManager,this);t(this.paper.canvas,"mouseout",this.chartHoverManager,this);t(this.paper.canvas,"touchend",this.chartHoverManager,this);b.push(p(this.paper.canvas,"mouseover touchstart mouseout touchend",this.chartHoverManager,this));t(c,"mousemove",
this.onContainerMouseMove,this);t(c,"touchmove",this.onContainerMouseMove,this);d&&b.push(p(c,"mousemove touchmove",this.onContainerMouseMove,this));this.paper.canvas.style.cursor=K.svg?a&&"pointer"||"default":a&&"hand"||"default"},onOverlayMessageClick:function(){var a=this.elements;K.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,g=e.messageText,h=e.messageVeil,l=
c.width,m=c.height;h||(h=e.messageVeil=c.rect(0,0,l,m).attr({fill:"rgba(0,0,0,0.2)",stroke:"none"}));h.show().toFront().attr("cursor",b?"pointer":"default")[b?"click":"unclick"](this.onOverlayMessageClick,this);g||(g=e.messageText=c.text(l/2,m/2,L).attr({fill:"rgba(255,255,255,1)","font-family":"Verdana,sans","font-size":10,"line-height":14,ishot:!0}));a=a||L;this.smartLabel.setStyle({"line-height":"14px","font-family":"Verdana,sans","font-size":"10px"});c=this.smartLabel.getSmartText(a,l-(d.spacingRight||
0)-(d.spacingLeft||0),m-(d.spacingTop||0)-(d.spacingBotton||0));g.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,c="zoomline"===b.rendererId,d=a.paper,e=a.elements,g=a.toolbar||(a.toolbar=[]),h=a.menus||(a.menus=[]),l=a.layers,m=a.options,n=m[ia],b=n&&n.outCanvasStyle||b.outCanvasStyle||{},n=m.chart.toolbar||{},p=n.hDirection,q=c?1:n.vDirection,r=n.button||{},t=r.scale,w=
r.width*r.scale,A=r.height*r.scale,v=p*(r.spacing*r.scale+w),z=r.radius,D=(m=m.exporting)&&m.buttons||{},G=D.exportButton&&!1!==D.exportButton.enabled,D=D.printButton&&!1!==D.printButton.enabled,H,K=l.buttons||(l.buttons=d.group("buttons").trackTooltip(!0));g.y||(g.y=(c?0:n.y)+n.vMargin*q+La(0,A*q));g.x||(g.x=n.x+n.hMargin*p-Ra(0,w*p));g.count=0;g.add=function(a,b,c){c="string"===typeof c?{tooltip:c}:c||{};var k=0===g.count?v-p*r.spacing*r.scale:v,k=c.x||(g.x+=k),e=c.tooltip||"";g.push(a=d.button(k,
c.y||g.y,Ia,a,{width:w,height:A,r:z,id:g.count++,verticalPadding:r.symbolHPadding*t,horizontalPadding:r.symbolHPadding},K).attr({ishot:!0,fill:[r.fill,r.labelFill,r.symbolFill,r.hoverFill],stroke:[r.stroke,r.symbolStroke],"stroke-width":[r.strokeWidth,r.symbolStrokeWidth]}).tooltip(e).buttonclick(b));return a};G&&(h.push(H=e.exportMenu=Y({chart:a,basicStyle:b,items:function(b){var c=[],d=function(b){return function(){a.logic.chartInstance.exportChart({exportFormat:b})}},e;for(e in b)c.push({text:b[e],
onclick:d(e)});return c}(m.exportformats)})),e.exportButton=g.add("exportIcon",function(a,b){return function(){H.visible?H.hide():H.show({x:a,y:b+1})}}(g.x+w,g.y+A),{tooltip:"Export chart"}));D&&(e.printButton=g.add("printIcon",function(){a.print()},{tooltip:"Print chart"}))},setMargins:function(){var a=this.paper,b=this.options.chart||{},c=pa;this.canvasBorderWidth=b.plotBorderWidth||0;this.canvasTop=c(b.marginTop)||0;this.canvasLeft=c(b.marginLeft)||0;this.canvasWidth=c(a.width-(b.marginLeft||0)-
(b.marginRight||0));this.canvasHeight=c(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,b=a.paper,c=a.layers,d=a.elements,e=c.background,g=d.background,h=d.chartborder,m=a.options.chart||{},n=l(m.borderWidth)||0,p=.5*n,q=2*n,r=m.borderWidth||0,t=a.chartHeight,w=a.chartWidth,A=d.backgroundImage,D=m.bgSWF,S=m.bgSWFAlpha/100,H=m.bgImageDisplayMode,G=m.bgImageVAlign,
K=m.bgImageHAlign,I=m.bgImageScale,N=r+","+r+","+(w-2*r)+","+(t-2*r),J,L,R,P,Q,U,T;b.canvas.style.backgroundColor=m.containerBackgroundColor;!e&&(e=c.background=b.group("background"));c={x:n,y:n,width:b.width-q,height:b.height-q,stroke:"none",fill:da(m.backgroundColor)};g?g.attr(c):g=d.background=b.rect(c,e);c={x:p,y:p,width:b.width-n,height:b.height-n,stroke:m.borderColor,"stroke-width":n,"stroke-dasharray":m.borderDashStyle,fill:"none",r:m.borderRadius||0};h?h.attr(c):h=d.chartborder=b.rect(c,e);
D&&(J=new z,Q=R=1,A=[],J.onload=function(){L=V(H,G,K,I,r,w,t,J);L["clip-rect"]=N;if(L.tileInfo)for(R=L.tileInfo.xCount,Q=U=L.tileInfo.yCount,T=L.y,delete L.tileInfo;R&&L.width&&L.height;)U-=1,P?(A[void 0]=P.clone().attr({x:L.x,y:L.y}),e.appendChild(A[void 0])):A[void 0]=P=b.image(D,e).attr(L).css({opacity:S}),L.y+=L.height,0===U&&(U=Q,R-=1,L.x+=L.width,L.y=T);else A[0]=b.image(D,e),A[0].attr(L).css({opacity:S}).attr({visibility:Ta,"clip-rect":N});v.raiseEvent("BackgroundLoaded",{url:D,bgImageAlpha:100*
S,bgImageDisplayMode:H,bgImageVAlign:G,bgImageHAlign:K,bgImageScale:I,imageWidth:J.width,imageHeight:J.height},a.logic.chartInstance)},J.onerror=function(b){v.raiseEvent("BackgroundLoadError",{url:D,bgImageAlpha:100*S,error:b,bgImageDisplayMode:H,bgImageVAlign:G,bgImageHAlign:K,bgImageScale:I},a.logic.chartInstance)},J.src=D,d.backgroundImage=A)},drawGraph:function(){var a=this,b=a.paper,c=a.plots=a.elements.plots,d=a.logic,e=a.layers,g=a.options,h=a.elements,l=g.chart,g=a.datasets=g.series,m=r(l.rendererId,
l.defaultSeriesType),n=e.background,p=e.dataset=e.dataset||b.group("dataset").insertAfter(n),q,t,n=function(a,b){return function(e){var k=c[a],g,h={hcJSON:{series:[]}},l=h.hcJSON.series[a]||(h.hcJSON.series[a]={}),m=d.chartInstance.jsVars._reflowData;g=(e=r(e,!k.visible))?"visible":"hidden";aa(k.graphics,function(a){!0!==a.data("alwaysInvisible")&&a.attr("visibility",g)});k.visible=e;b.visible=e;l.visible=e;w(m,h,!0)}},A=function(b){return function(d,e){a["legendClick"+m]&&a["legendClick"+m](c[b],
d,e)||a.legendClick&&a.legendClick(c[b],d,e)}},v=function(b){return function(){return a.getEventArgs&&a.getEventArgs(c[b])}},z=function(b,d,e){return function(g,h){d.call(a,c[b],e,{numUpdate:g,hasAxisChanged:h})}};e.tracker=e.tracker||b.group("hot").insertAfter(p);a.drawCanvas();a.drawAxes();c||(c=a.plots=a.plots||[],h.plots=c);e=0;for(h=g.length;e<h;e++)b=g[e]||{},p=b.updatePlot="updatePlot"+P(fa(b.type,b.plotType,m)),p=a[p],q=b.drawPlot="drawPlot"+P(fa(b.type,b.plotType,m)),q=a[q]||a.drawPlot,(t=
c[e])||(c.push(t={index:e,items:[],data:b.data||[],name:b.name,userID:b.userID,setVisible:n(e,b),legendClick:A(e),getEventArgs:v(e),realtimeUpdate:z(e,p||q,b)}),b.plot=t,b.legendClick=t.legendClick,b.getEventArgs=t.getEventArgs,b.setVisible=t.setVisible),q.call(a,t,b);l.hasScroll&&(a.drawScroller(),a.finalizeScrollPlots())},drawPlot:e,drawCanvas:e,drawAxes:e,drawScroller:function(){},drawLegend:function(){var a=this,b=a.options,c=a.paper,d=b.chart||{},e=b.legend,g=e.scroll,b={elements:{}},h=b.elements,
l=a.layers.legend,m=h.box,n=h.caption,p=h.elementGroup,r="vertical"===e.layout,t=d.marginBottom,A=d.spacingBottom,v=d.spacingLeft,z=d.spacingRight,D=c.width,H=c.height,G=a.canvasTop,I=e.width,N=e.height,J=e.borderRadius,R=e.backgroundColor,la=e.borderColor,Q=e.borderWidth||0,U=.5*Q,T=.5*Q+2,d=q(e.padding,4),da=.5*d,V,s,u,B,F,f,ba,O=g&&g.enabled;r?(r=D-z-I,t=G+.5*(H-t-G-N)+(e.y||0)):(r=v+.5*(D-v-z-I)+(e.x||0),t=H-A-N);A=K.crispBound(r,t,I,N,Q);r=A.x;t=A.y;I=A.width;N=A.height;l||(l=a.layers.legend=
c.group("legend").insertBefore(a.layers.tracker).translate(r,t).attr("class","fusioncharts-legend"));a.addCSSDefinition(".fusioncharts-legend .fusioncharts-caption",w({"text-anchor":e.title.align},e.title.style));e.legendAllowDrag&&(a.addCSSDefinition(".fusioncharts-legend",{cursor:"move"}),s=r,u=t,l.drag(function(a,b){B=f+a;F=ba+b;B+I+T>D&&(B=D-I-T);F+N+T>H&&(F=H-N-T);B<T&&(B=T);F<T&&(F=T);l.translate(B-s,F-u);s=B;u=F},function(){f=s;ba=u}));J={x:0,y:0,width:I,height:N,r:J,stroke:la,"stroke-width":Q,
fill:R||"none",ishot:e.legendAllowDrag};m?m.attr(J):m=h.box=c.rect(J,l);m.shadow(e&&e.shadow);O?(V=N-d,m=","+I+","+V,p=h.elementGroup=c.group("legenditems",l).attr({"clip-rect":"0,"+da+m}),g=h.scroller||(h.scroller=c.scroller(I-10+da-Q,U,10,N-Q,!1,{scrollPosition:g.scrollPosition||0,scrollRatio:(V+d)/e.totalHeight,showButtons:!1,displayStyleFlat:g.flatScrollBars},l)),g.attr("fill",e.legendScrollBgColor).scroll(function(b){p.transform(["T",0,(V-e.totalHeight)*b]);w(a.fusionCharts.jsVars._reflowData,
{hcJSON:{legend:{scroll:{position:b}}}},!0)})):p=h.elementGroup=l;if(e.title&&e.title.text!==L){switch(e.title.align){case "start":g=d;break;case "end":g=I-d-(O?10:0);break;default:g=.5*I}J={"class":"fusioncharts-caption","text-anchor":e.title.align,text:e.title.text,title:e.title.originalText||"",x:g,y:d,fill:e.title.style.color,"vertical-align":"top","line-height":e.title.style.lineHeight};n?n.attr(J):n=h.caption=c.text(J,p).attr("class","fusioncharts-caption")}this["draw"+P(e.type||"point")+"LegendItem"](b)},
drawPointLegendItem:function(a){var b=this,c=b.paper,d=b.options,e=d.series,g=d.chart.defaultSeriesType,d=d.legend,h=d.legendHeight,l=d.symbolPadding,m=d.textPadding||2,n=q(d.padding,4),p=d.itemHoverStyle,r=d.itemHiddenStyle,t=d.itemStyle,z=t.color,r=r&&r.color||"#CCCCCC",D=p&&p.color||z,p=d.symbol3DLighting,H=d.symbolWidth,S=!1!==d.interactiveLegend,G=a.elements,I=G.elementGroup;a=a.item=[];var G=G.item=[],K=[],N={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0},J,L,P,Q,T,U,V,W,s,
u,B,F,f,ba,O,va,X,ca,aa,ia,ra;F=0;for(f=e.length;F<f;F+=1)if((J=e[F])&&!1!==J.showInLegend)if(W=J.type||g,"point"===J.legendType)for(J=J.data||[],T=0,U=J.length;T<U;T+=1)P=J[T]||{},!1!==P.showInLegend&&(P._legendType=W,K.push(P));else switch(J._legendType=W,W){case "pie":case "pie3d":case "funnel":case "pyramid":K=J.data;break;default:K.push(J)}K.sort(function(a,b){return(a.legendIndex||0)-(b.legendIndex||0)||a.__i-b.__i});d.reversed&&K.reverse();e=d.initialItemX||0;g=d.initialItemY||0;T=function(a){var c=
this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{},f;a=R(b.logic.chartInstance.ref,a);d.chartX=a.chartX;d.chartY=a.chartY;d.pageX=a.pageX;d.pageY=a.pageY;d.preventDefaults=function(){f=!0};v.raiseEvent("LegendItemClicked",d,b.logic.chartInstance);S&&!f&&c.legendClick()};U=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{};a=R(b.logic.chartInstance.ref,a);var f=!1!==c.visible,c=c.plot.legend.elements.legendItemText;d.chartX=a.chartX;d.chartY=a.chartY;d.pageX=a.pageX;
d.pageY=a.pageY;f&&c&&c.attr({fill:D});v.raiseEvent("LegendItemRollover",d,b.logic.chartInstance)};V=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{};a=R(b.logic.chartInstance.ref,a);var f=!1!==c.visible,c=c.plot.legend.elements.legendItemText;d.chartX=a.chartX;d.chartY=a.chartY;d.pageX=a.pageX;d.pageY=a.pageY;f&&c&&c.attr({fill:z});v.raiseEvent("LegendItemRollout",d,b.logic.chartInstance)};b.addCSSDefinition(".fusioncharts-legend .fusioncharts-legenditem",d.itemStyle);
F=0;for(f=K.length;F<f;F+=1)!1!==K[F].showInLegend&&(ra={elements:{},hiddenColor:r,itemTextColor:z,hoverColor:D},a.push(ra),G.push(ra.elements),J=K[F],s=e+J._legendX+n,u=g+J._legendY-n,B=J._legendH,L=J._legendType||W,P=!1!==J.visible,Q=ra.itemLineColor=da(J.color||{}),J.plot.legend=ra,ra.elements.legendItemText=c.text({"class":"fusioncharts-legenditem",x:s+h+m-2,y:u+(J._legendTestY||0),text:J.name,fill:P?z:r,"vertical-align":"top","text-anchor":"start",cursor:t.cursor||"pointer",ishot:S,"line-height":t.lineHeight,
"font-size":t.fontSize},I).data("legendItem",J),N[L]?(L=u+l+.5*H,J.lineWidth&&(ia=ra.elements.legendItemLine=c.path({"stroke-width":J.lineWidth,stroke:P?Q:r,cursor:t.cursor||"pointer",ishot:S,path:["M",s+l,L,"L",s+l+H,L]},I).data("legendItem",J)),J&&(X=J.marker)&&!1!==X.enabled&&(ra.symbolStroke=da(fa((ca=X.lineColor)&&(ca.FCcolor&&ca.FCcolor.color.split(",")[0]||ca),Q)),p?X.fillColor&&X.fillColor.FCcolor?(L=w({},X.fillColor),L.FCcolor.alpha="100"):L=fa(X.fillColor,Q):L={FCcolor:{color:fa((aa=X.fillColor)&&
(aa.FCcolor&&aa.FCcolor.color.split(",")[0]||aa),Q),angle:0,ratio:"0",alpha:"100"}},ra.symbolColor=da(L),ba=.5*H,Q=s+l+ba,L=u+l+ba,ia&&(ba*=.6),O=X.symbol.split("_"),va="spoke"===O[0]?1:0,L=O[1]?ra.elements.legendItemSymbol=c.polypath(O[1],Q,L,ba,X.startAngle,va,I):ra.elements.legendItemSymbol=c.circle(Q,L,ba,I),L.data("legendItem",J).attr({cursor:t.cursor||"pointer",stroke:P?ra.symbolStroke:r,fill:P?ra.symbolColor:r,"stroke-width":1,ishot:S}))):(L=b.getSymbolPath(s+l,u+l,H,H,L,J,!p),ra.symbolColor=
da(L.color),ra.symbolStroke=da(L.strokeColor),L=ra.elements.legendItemSymbol=c.path({path:L.path,"stroke-width":L.strokeWidth,stroke:P?ra.symbolStroke:r,fill:P?ra.symbolColor:r,cursor:t.cursor||"pointer",ishot:S},I).data("legendItem",J)),ra.elements.legendItemBackground=c.rect({x:s,y:u,width:J._totalWidth,height:B,r:0,fill:da(J.legendFillColor||A),"stroke-width":1,stroke:da(J.legendBorderColor||"none"),cursor:t.cursor||"pointer",ishot:S},I).click(T).mouseover(U).mouseout(V).data("legendItem",J));
d.reversed&&K.reverse()},drawCaption:function(){var a=this.options.chart,b=this.options.title,c=this.options.subtitle,d=this.paper,e=this.smartLabel,g=this.elements,h=this.layers,l=h.caption,m=g.caption,n=g.subcaption,p=b.text,q=c&&c.text,r=b.x,t;!p&&!q||l||(l=h.caption=d.group("caption"),h.tracker?l.insertBefore(h.tracker):l.insertAfter(h.dataset));p?(this.addCSSDefinition(".fusioncharts-caption",b.style),t={"class":"fusioncharts-caption",text:b.text,fill:b.style.color,x:r,y:b.y||a.spacingTop||0,
"text-anchor":b.align||"middle","vertical-align":b.verticalAlign||"top",visibility:"visible",title:b.originalText||""},m?m.attr(t):m=g.caption=d.text(t,l).attr("class","fusioncharts-caption"),m.css(b.style),e?(e.setStyle(b.style),t=e.getOriSize(b.text).height):t=10):m&&(m=g.caption=m.remove());q?(this.addCSSDefinition(".fusioncharts-subcaption",c.style),t={"class":"fusioncharts-subcaption",text:c.text,title:c.originalText||"",fill:c.style.color,x:r,y:p?m.attrs.y+t+2:b.y||a.spacingTop||0,"text-anchor":b.align||
"middle","vertical-align":"top",visibility:"visible"},n?n.attr(t):n=g.subcaption=d.text(t,l).attr("class","fusioncharts-subcaption"),n.css(c.style)):n&&(g.subcaption=n.remove());p||q||!l||(h.caption=l.remove())},drawLogo:function(){var a=this,b=a.paper,c=a.elements,d=a.options,e=d.credits,g=d.chart||{},h=g.borderWidth||0,l=a.chartHeight,m=a.chartWidth,p=c.logoImage,q=g.logoURL,r=g.logoAlpha/100,t=g.logoPosition,w=g.logoLink,A=g.logoScale,D=g.logoLeftMargin,S=g.logoTopMargin,d={tr:{vAlign:Za,hAlign:pb},
bl:{vAlign:ib,hAlign:sb},br:{vAlign:ib,hAlign:pb},cc:{vAlign:"middle",hAlign:"middle"}},H,I,K;a.logic&&e.enabled&&b.text().attr({text:e.text,x:6,y:l-4,"vertical-align":ib,"text-anchor":"start",fill:"rgba(0,0,0,0.5)",title:e.title||""}).css({fontSize:9,fontFamily:"Verdana,sans",cursor:"pointer",_cursor:"hand"}).click(function(){try{n.open(e.href)}catch(a){(n.top||n).location.href=e.href}});q&&(H=new z,(K=d[t])||(K={vAlign:Za,hAlign:sb}),H.onload=function(){a.disposed||b.disposed||(I=V("none",K.vAlign,
K.hAlign,A,h,m,l,H),G&&(I.w=I.width||0,I.h=I.height||0),I.src=q,p=a.paper.image(I).translate(D,S).css("opacity",r),w&&p.css({cursor:"pointer",_cursor:"hand"}),p.mouseover(function(b){b=R(a.logic.chartInstance.ref,b);v.raiseEvent("LogoRollover",{logoURL:q,logoAlpha:100*r,logoPosition:t||"tl",logoScale:A,logoLink:w,chartX:b.chartX,chartY:b.chartY,pageX:b.pageX,pageY:b.pageY},a.logic.chartInstance)}),p.mouseout(function(b){b=R(a.logic.chartInstance.ref,b);v.raiseEvent("LogoRollout",{logoURL:q,logoAlpha:100*
r,logoPosition:t||"tl",logoScale:A,logoLink:w,chartX:b.chartX,chartY:b.chartY,pageX:b.pageX,pageY:b.pageY},a.logic.chartInstance)}),p.click(function(b){b=R(a.logic.chartInstance.ref,b);v.raiseEvent("LogoClick",{logoURL:q,logoAlpha:100*r,logoPosition:t||"tl",logoScale:A,logoLink:w,chartX:b.chartX,chartY:b.chartY,pageX:b.pageX,pageY:b.pageY},a.logic.chartInstance,void 0,function(){w&&g.events.click.call({link:w})})}),v.raiseEvent("LogoLoaded",{logoURL:q,logoAlpha:100*r,logoPosition:t||"tl",logoScale:A,
logoLink:w},a.logic.chartInstance))},H.onerror=function(b){v.raiseEvent("LogoLoadError",{logoURL:q,logoAlpha:100*r,logoPosition:t||"tl",logoScale:A,logoLink:w,error:b},a.logic.chartInstance)},H.src=q,c.logoImage=p)},getEventArgs:function(a){a=a||{};return{datasetName:a.name,datasetIndex:a.index,id:a.userID,visible:a.visible}},legendClick:function(a,b){var c=a.legend,d=c&&c.elements,e=d&&d.legendItemText,g=d&&d.legendItemSymbol,d=d&&d.legendItemLine,h=c&&c.hiddenColor,l=c&&c.itemLineColor,m=c&&c.itemTextColor,
n=c&&c.symbolColor,p=c&&c.symbolStroke,c=fa(b,!a.visible);a.setVisible(b);c?(g&&g.attr({fill:n||l,stroke:p}),e&&e.attr({fill:m}),d&&d.attr({stroke:l})):(g&&g.attr({fill:h,stroke:h}),e&&e.attr({fill:h}),d&&d.attr({stroke:h}));if((e=this.datasets&&this.datasets[a.index]&&this.datasets[a.index].relatedSeries)&&e instanceof Array&&0<e.length)for(g=e.length;g--;)d=parseFloat(e[g]),d=this.plots[d],d.legendClick.call(d,c,!1)},exportChart:function(b){var d=this,e=d.fusionCharts,g=d.options;b="object"===typeof b&&
function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b}(b)||{};var h=w(w({},g.exporting),b),l=(h.exportformat||"png").toLowerCase(),m=h.exporthandler,p=(h.exportaction||L).toLowerCase(),q=h.exporttargetwindow||L,r=h.exportfilename,t=h.exportparameters;if(!g.exporting||!g.exporting.enabled||!m)return!1;v.raiseEvent("beforeExport",h,e,void 0,function(){var b=d.layers.buttons,k=e.id,g=d.paper,w,M;b&&b.attr("visibility","hidden");w=g.toSVG();b&&b.attr("visibility","visible");w=w.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,
"$1M 0 0 L 0 0$2");b={charttype:e.chartType(),stream:w,stream_type:"svg",meta_bgColor:h.bgcolor||"",meta_bgAlpha:h.bgalpha||"1",meta_DOMId:e.id,meta_width:g.width,meta_height:g.height,parameters:["exportfilename="+r,"exportformat="+l,"exportaction="+p,"exportparameters="+t].join("|")};v.raiseEvent("exportDataReady",b,e);if("download"===p){/webkit/ig.test(n.navigator.userAgent)&&"_self"===q&&(q=w=k+"export_iframe",d.exportIframe||(d.exportIframe=w=ka("IFRAME",{name:w,width:"1px",height:"1px"},a.body),
w.style.cssText="position:absolute;left:-10px;top:-10px;"));w=ka("form",{method:"POST",action:m,target:q,style:"display:none;"},a.body);for(M in b)ka("input",{type:"hidden",name:M,value:b[M]},w);w.submit();a.body.removeChild(w);w=void 0;return!0}(new v.ajax(function(a){var b={};a.replace(RegExp("([^?=&]+)(=([^&]*))?","g"),function(a,c,d,e){b[c]=e});c.raiseEvent("exported",b,e)},function(a){a={statusCode:0,statusMessage:"failure",error:a,DOMId:k,width:g.width,height:g.height};c.raiseEvent("exported",
a,e,[a])})).post(m,b)},function(){v.raiseEvent("exportCancelled",h,e)})},print:function(b){var c=this,d=w({},b);if(c.isPrinting)return!1;v.raiseEvent("BeforePrint",d,c.logic.chartInstance,void 0,function(){var b=c.container,e=c.elements,k=e.printButton,g=e.exportButton,h=[],l=b.parentNode,e=a.body||a.getElementsByTagName("body")[0],m=e.childNodes;c.isPrinting=!0;aa(m,function(a,b){1==a.nodeType&&(h[b]=a.style.display,a.style.display="none")});!1!==d.hideButtons&&(k&&"hidden"!=k.attrs.visibility&&
k.attr({visibility:"hidden"}),g&&"hidden"!=g.attrs.visibility&&g.attr({visibility:"hidden"}));e.appendChild(b);n.print();setTimeout(function(){k&&k.attr({visibility:"visible"});g&&g.attr({visibility:"visible"});l.appendChild(b);aa(m,function(a,b){1==a.nodeType&&(a.style.display=h[b])});c.isPrinting=!1;v.raiseEvent("PrintComplete",d,c.logic.chartInstance)},1E3)},function(){v.raiseEvent("PrintCancelled",d,c.logic.chartInstance)})},getSymbolPath:function(a,b,c,d,e,g,h){var l=["M"],m,n,p;m=(g.color&&
Sb("string"===typeof g.color?g.color:g.color.FCcolor.color)||L).replace(J,"");p=Fb(m,60).replace(J,I);h?m={FCcolor:{color:m,angle:0,ratio:"0",alpha:"100"}}:(h=Fb(m,40),m={FCcolor:{color:m+","+m+","+h+","+m+","+m,ratio:"0,30,30,30,10",angle:0,alpha:"100,100,100,100,100"}});switch(e){case "column":case "dragcolumn":case "column3d":g=.25*c;e=.5*g;h=.7*d;n=.4*d;l=l.concat([a,b+d,"l",0,-h,g,0,0,h,"z","m",g+e,0,"l",0,-d,g,0,0,d,"z","m",g+e,0,"l",0,-n,g,0,0,n,"z"]);m.FCcolor.angle=270;break;case "bar":case "bar3d":g=
.3*c;e=.6*c;h=d/4;n=h/2;l=l.concat([a,b,"L",a+e,b,a+e,b+h,a,b+h,"Z","M",a,b+h+n,"L",a+c,b+h+n,a+c,b+h+n+h,a,b+2*h+n,"Z","M",a,b+2*(h+n),"L",a+g,b+2*(h+n),a+g,b+d,a,b+d,"Z"]);break;case "area":case "area3d":case "areaspline":case "dragarea":h=.6*d;n=.2*d;d*=.8;l=l.concat([a,b+d,"L",a,b+h,a+.3*c,b+n,a+.6*c,b+h,a+c,b+n,a+c,b+d,"Z"]);m.FCcolor.angle=270;break;case "pie":case "pie3d":g=.5*c;e=.9*g;c=a+g+1;d=b+g-1;a=a+g-1;b=b+g+1;l=l.concat(["M",c,d,"L",c,d-e+1,"A",e-1,e-1,0,0,1,c+e-1,d,"Z","M",a,b,"L",
a,b-e,"A",e,e,0,1,0,a+e,b,"Z"]);m.FCcolor.radialGradient="1";m.FCcolor.ratio="0,0,0,100,0";break;case "boxandwhisker2d":l=l.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]);m=g.color;p="#000000";break;default:l=l.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]),m.FCcolor.angle=270,m.FCcolor.ratio="0,70,30"}return{path:l,color:m,strokeWidth:.5,strokeColor:p}}});d.prototype={configure:function(){var a=this.axisData,b=this.renderer,c=this.isVertical,d=this.isReverse,e=b.options,g=e.chart,h=g.marginBottom,g=g.marginRight,
l=b.canvasTop,m=b.canvasLeft,n=this.min=a.min,n=this.span=(this.max=a.max)-n,m=this.startX=q(a.startX,m),l=this.startY=q(a.startY,l),p=this.endX=q(a.endX,b.canvasRight),a=this.endY=q(a.endY,b.canvasBottom),n=this.pixelRatio=c?(a-l)/n:(p-m)/n,r=this.relatedObj={};r.marginObj={top:l,right:g,bottom:h,left:m};r.canvasObj={x:m,y:l,w:p-m,h:a-l,toX:p,toY:a};this.startPixel=d?c?a:p:c?l:m;this.pixelValueRatio=d?-n:n;this.primaryOffset=this.secondaryOffset=0;this.cache={lowestVal:0,highestVal:0,indexArr:[],
hashTable:{}};this.elements=this.elements||{};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,g=a&&a.tickWidth;a&&a.title&&this.drawAxisName();a&&a.labels&&(this.renderer.addCSSDefinition("."+a.labels.className+" .fusioncharts-label",
a.labels.style),this.belowLabelGroup&&this.belowLabelGroup.attr("class",a.labels.className),this.topLabelGroup&&this.topLabelGroup.attr("class",a.labels.className));b&&0<b.length&&this.drawPlotLine();c&&0<c.length&&this.drawPlotBands();isNaN(e)||0===e||isNaN(g)||0===g||this.drawTicks();d&&this.drawLine()},scroll:function(){},setOffset:function(a,b){var c=this.primaryOffset=a,d=this.secondaryOffset=b||this.secondaryOffset,e=this.isVertical,g,h,l,m=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,
this.belowLineGroup,this.topBandGroup,this.belowBandGroup],n,p;n=0;for(p=m.length;n<p;n+=1)if(l=m[n])g=e?d:c,h=e?c:d,l.attr({transform:"t"+g+","+h});e||this.drawPlotLine&&this.drawPlotLine()},update:function(){},drawTicks:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,g=this.layerBelowDataset,g=this.tickGroup=this.tickGroup||b.group("axis-ticks",g),h=this.relatedObj.canvasObj,l=a.offset,m=a.opposite,n=a.showAxis,p=a.tickInterval,q=a.tickLength,r=a.tickWidth,
a=a.tickColor,t=c;if(e&&n)for(c=this.getAxisPosition(c),e=this.getAxisPosition(d),h=m?h.toX+l:h.x-l,b.path(["M",h,c,"L",h,e],g).attr({stroke:a,"stroke-width":r});Ha(t)<=d;)l=this.getAxisPosition(t),c=m?h+q:h-q,b.path(["M",h,l,"L",c,l],g).attr({stroke:a,"stroke-width":r}),t+=p},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(){var a=
this.renderer,b=a.paper,c=this.isVertical,d=+!c,e=this.lines=this.lines||[],g=this.labels=this.labels||[],h=this.relatedObj.canvasObj,l=this.globalOptions||{},m=this.elements||{},n=this.axisData.plotLines||[],p=this.primaryOffset,r=c?this.startY:this.startX,t=c?this.endY:this.endX,w=parseFloat(a.canvasBorderWidth)||0,v=Ra(n.length,Ra(e.length,g.length)),z=a.layers.datalabels,D=this.belowLineGroup,H=this.topLineGroup,I=this.belowLabelGroup,G=this.topLabelGroup,K=!1!==(a.tooltip||{}).enabled,J=function(b){return function(c){wa.call(this,
a,c,b)}},l=l.chart.xDepth||0,N=[],R=0,P,Q,T,U,V,s,u,B,F,f,ba,O,va,W,fa,ca,aa,ra,Aa,ia,pa,Y,ea,ja,ma,ka,Ca,La,za,Ia,Ea,Ha,Da,Cb,bb,Va,Ma,Ja,Na,fb,Gb,hb,jb;for(jb=0;jb<v;jb+=1){T=U=V=null;T=e[jb];U=g[jb];if(u=n[jb])if(B=u.width,F=u.isVline,f=u.isTrend,ba=u.isGrid,O=u.tooltext,va=u.value,W=u.color,fa=u.dashStyle,ca=f?u.to:null,aa=u._isStackSum,P=3<u.zIndex?H:D,ra=u.label){Aa=ra.style;ia=ra.text;pa=Aa&&Aa.color;Y=ra.offsetScaleIndex||0;ea=ra.offsetScale;if(ja=Aa&&Aa.fontSize)ma=ja,-1!==ma.indexOf("px")&&
(ma=ma.replace("px",""),ma=parseFloat(ma));Q=Aa&&Aa.lineHeight;ja=Aa?{fontFamily:Aa.fontFamily,fontSize:Aa.fontSize,lineHeight:Aa.lineHeight,fontWeight:Aa.fontWeight,fontStyle:Aa.fontStyle}:null;Q&&(ka=Q,-1!==ka.indexOf("px")&&(ka=ka.replace("px",""),ka=parseFloat(ka)));Ca=ra.rotation;La=ra.x||0;za=ra.y||0;Ia=ra.align;Ea=ra.verticalAlign;Ha=ra.textAlign;Da=(Da=ra.borderWidth)?-1!==Da.indexOf("px")?Da.replace("px",""):1:1;Q=aa?z:3<=u.zIndex?G:I;ra.backgroundColor&&(ra.labelBgClr=da({color:ra.backgroundColor,
alpha:100*ra.backgroundOpacity}));ra.borderColor&&(ra.labelBorderClr=da({color:ra.borderColor,alpha:"100"}));Cb=ma?.2*ma:2;Ha="left"===Ha?"start":"right"===Ha?"end":"middle"}s=Gb="visible";hb=0>q(ea,va,0);c?(Va=this.getAxisPosition(va),Ja=f?this.getAxisPosition(ca)||Va:Va,Na=Va!==Ja?!0:!1,fb=["M",h.x,Va,"L",h.toX,Ja],F?a.logic.isBar&&(bb=a.yAxis[Y],!aa&&!isNaN(ea)&&0<=ea&&1>=ea&&(ea=bb.min+(bb.max-bb.min)*ea),Ma=bb.getAxisPosition(q(ea,va))+La+Cb*(hb?-1:1)):Ma=ra?bb=this.axisData.isOpposite||"right"===
Ia?h.toX+La:h.x+La:bb=this.axisData.isOpposite?h.toX:h.x):(bb=this.getAxisPosition(va)||0,Ma=f?this.getAxisPosition(ca)||bb:bb,!f&&!F&&0<l&&(bb+=l,Ma+=l,t+=l),Na=bb!==Ma?!0:!1,fb=["M"+bb,h.y,"L",Ma,h.toY],Gb=bb+p<r||bb+p>t?"hidden":Gb,F?(bb=a.yAxis[Y],!aa&&!isNaN(ea)&&0<=ea&&1>=ea&&(ea=bb.min+(bb.max-bb.min)*(1-ea)),Va=bb.getAxisPosition(q(ea,va))+za,Va-=(w+parseFloat(Da))*(za&&(0<za?-1:1))):this.axisData.opposite||"top"===Ea&&!ba?(Va=h.y+za,Ja="bottom"):Va=h.toY+za,Ja=Va);s=c?s:Ma+p<r||Ma+p>t?"hidden":
s;if(u&&"visible"===Gb&&.1<B)Na={path:Fa(fb,B),stroke:W,"stroke-width":B,"shape-rendering":!Na&&1<=B?"crisp":void 0,"stroke-dasharray":fa?fa:void 0,visibility:Gb},T?T.attr(Na):(T=e[jb]=b.path(Na,P).css(u.style),m.lines=m.lines||[],m.lines.push(T)),K&&O&&B<X&&Gb&&(V=b.path({stroke:A,"stroke-width":X,ishot:!0,path:fb,fill:A},a.layers.tracker)),V=V||T,K&&O&&V.tooltip(O);else if(T||U)T&&T.remove(),T=null,e&&(e[jb]=null),m&&m.lines&&(m.lines[jb]=null);ra&&u&&!u.stepped&&"visible"===s&&ra.text!=L&&" "!=
ra.text?(Va=f?"left"===Ia?Va:Ja:Ja,V=Ma-+!F*d*l+d*(La||0),aa?(Ja=c||Ca?"middle":"bottom",Va+=c?0:ma*(hb?-.4:.4),Ca&&(Va+=hb?4:-2,Ha=hb?"end":"start")):d&&this.axisData.opposite?(Ja=ib,Ha=Ca?"start":"middle"):Ja=Ea,/\n|<br\s*?\/?>/ig.test(ia)&&ba&&(Ca?(Ja="middle",V-=d*(La||0)):(Ja=d&&this.axisData.opposite&&!Ca?"middle":Za,Va-=ka)),Na={"class":"fusioncharts-label",text:ia,fill:ja?pa||W:null,title:ra&&(ra.originalText||L),cursor:ra.link?"pointer":L,x:V,y:Va,"text-anchor":Ha,"vertical-align":Ja,transform:" ",
"text-bound":[Aa.backgroundColor||ra.labelBgClr,Aa.borderColor||ra.labelBorderClr,Aa.borderThickness||Da,Aa.borderPadding||Cb,Aa.borderRadius,Aa.borderDash],visibility:s,"line-height":Aa.lineHeight},U?U.attr(Na):(U=g[jb]=b.text(Na,Q).attr("class","fusioncharts-label"),T&&(T.label=U),m.labels=m.labels||[],m.labels.push(U)),ja&&U.css(ja),u.isDataLabel&&(s={text:ia,index:R,link:ra.link},R+=1,U.click(J("dataLabelClick")).hover(J("dataLabelRollOver"),J("dataLabelRollOut")).data("eventArgs",s)),Ca&&U.attr("transform",
["r",Ca,V,Va]),aa&&U&&N.push(U)):U&&(U.isRotationSet=!1,U.remove(),g&&(g[jb]=null),m&&m.labels&&(m.labels[jb]=null));!T&&!U||u&&null===u.value||(u&&u.isMinLabel?this.poi.min={label:U,index:jb,line:T}:u&&u.isMaxLabel?this.poi.max={label:U,index:jb,line:T}:u&&u.isZeroPlane&&(this.poi.zero={label:U,index:jb,line:T}));T=U=null}q(a.options.plotOptions.series.animation.duration,0)},drawPlotBands:function(){var a=this.renderer,b=a.paper,c=this.isVertical,d=this.axisData.plotBands||[],e=this.bands=this.bands||
[],g=this.bandLabels=this.bandLabels||[],h=this.relatedObj.canvasObj,l=this.primaryOffset,m=c?this.startY:this.startX,n=c?this.endY:this.endX,p=a.options.chart.hasScroll,r=this.belowBandGroup,t=this.topBandGroup,w=this.belowLabelGroup,A=this.topLabelGroup,v=this.elements||{},a=!1!==(a.tooltip||{}).enabled,z,D,H,I,G,K,J,N,L,R,P,Q,T,s,u,B,F,f,ba,O,U,V,W,X,aa,ra,fa,ca,ia,ea,pa,Y,ma,wa,Ca,ja=Ra(d.length,e.length);for(Ca=0;Ca<ja;Ca+=1){wa="visible";Y=e[Ca];ma=g[Ca];if(z=d[Ca])if(D=z.tooltext,H=z.to,I=
z.from,G=z.value,K=z.width,J=z.color,ea=3<z.zIndex?t:r,N=z.label){if(L=N.style){if(s=L.fontSize)R=s,-1!==R.indexOf("px")&&(R=R.replace("px",""),parseFloat(R));(R=L.lineHeight)&&-1!==R.indexOf("px")&&(R=R.replace("px",""),parseFloat(R));ba=L.color}(R=N.borderWidth)&&-1!==R.indexOf("px")&&R.replace("px","");P=N.align;Q=N.x;T=N.y;F=N.text;f=N.originalText;u=N.backgroundColor;B=N.backgroundOpacity;u&&(U=N.labelBgClr=da({color:u,alpha:100*B}));if(u=N.borderColor)V=N.labelBorderClr=da({color:u,alpha:"100"});
u=N.textAlign;u="left"===u?"start":"right"===u?"end":"middle";B=N.verticalAlign;O=N.borderType;pa=3<z.zIndex?A:w}W=this.getAxisPosition(q(H,G));X=this.getAxisPosition(q(I,G));aa=c?h.x:X;ra=c?W:h.y;fa=c?h.w:(this.axisData.reversed?X-W:W-X)||K||1;X=c?X-W||1:h.h;W=aa+fa;fa=Ja(fa);0>X&&(X=Ja(X),ra-=X);c||(wa=p?"hidden":aa+l>n||W+l<m?"hidden":wa);N&&(ca=c?"right"===P?h.toX+Q:h.x+Q:aa+fa/2,ia=c?ra+X/2:h.toY+T);if(!Y&&z&&"visible"===wa)z={x:aa,y:ra,width:fa,height:X,fill:da(J),"stroke-width":0},Y?Y.attr(z):
(Y=e[Ca]=b.rect(z,ea),v.bands=v.bands||[],v.bands[Ca]=Y),a&&D&&Y.tooltip(D);else if(Y&&(!z||"hidden"===wa)){v.labels&&(g[Ca]=v.labels[Ca]=null);Y.label&&Y.label.remove();e[Ca]=v.bands[Ca]=null;Y.remove();continue}Y&&N&&N.text&&(z={"class":"fusioncharts-label",text:F,title:f||"",fill:ba,"text-bound":[U,V,R,.2*s,"solid"===O?!1:!0],x:ca,y:ia,"text-anchor":u,"vertical-align":B,"line-height":L.lineHeight},ma?ma.attr(z):(ma=g[Ca]=Y.label=b.text(z,pa).attr("class","fusioncharts-label"),L&&ma.css(L),v.labels=
v.labels||[],v.labels[Ca]=ma))}},drawAxisName:function(){var a=this.axisData,b=a.title||{},c=b&&b.style,d=b&&b.className,e=b.align,g=b.centerYAxisName||!1,h=this.renderer.paper,l=this.isVertical,m=this.relatedObj.canvasObj,n=q(a.offset,0)+q(b.margin,0),p=b.text||"",r=this.name||void 0,a=a.opposite,t=this.layerBelowDataset,t=t.nameGroup=t.nameGroup||h.group("axis-name",t),w=q(b.rotation,a?90:270),A=l?a?m.toX+n:m.x-n:(m.x+m.toX)/2,v={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,
fontWeight:c.fontWeight,fontStyle:c.fontStyle},z,g=l?"low"===e?m.toY:g?(m.y+m.toY)/2:this.renderer.chartHeight/2:m.toY+n;p?(!isNaN(w)&&w&&l&&(z=c.fontSize,z=-1!=z.indexOf("px")?z.replace("px",""):z,a?(A+=parseFloat(z),z=270===w?"bottom":"top"):(A-=parseFloat(z),z=270===w?"top":"bottom")),this.renderer.addCSSDefinition("."+d,v),d={"class":d,x:0,y:0,text:p,fill:c.color,"text-anchor":"low"===e?90==w?"end":"start":"middle","vertical-align":l?w?z:"middle":a?ib:"top",transform:l?"t"+A+","+g+"r"+w:"t"+A+
","+g,"font-size":c.fontSize},b.originalText&&(d.title=b.originalText),r?r.attr(d):r=this.name=h.text(d,t),r.attr({"line-height":c.lineHeight,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]})):r&&r.remove();this.elements.name=r},drawLine:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,g=a.opposite,h=this.layerBelowDataset,h=this.lineGroup=this.lineGroup||b.group("axis-lines",h),l=a.lineColor,
m=a.lineThickness,n=a.lineEndExtension||0,p=a.lineStartExtension||0,a=this.relatedObj.canvasObj;e?(c=this.getAxisPosition(c)-p,n=this.getAxisPosition(d)+n,d=e=g?a.toX+m/2:a.x-m/2):(d=a.x-p,e=a.toX+n,c=n=g?a.y-m/2:a.toY+m/2);b=b.path({path:["M",d,c,"L",e,n],stroke:l,"stroke-width":m},h);this.elements.axisLine=b},realtimeUpdateX:function(a){if(0<a){for(var b=this.axisData.plotBands,c=this.min+a,d,e=b.length;e--;)(d=b[e])&&!d.isNumVDIV&&(d.value<c||d.from<c||d.to<c?b.splice(e,1):(void 0!==d.value&&(d.value-=
a),void 0!==d.from&&(d.from-=a),void 0!==d.to&&(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()}};d.prototype.constructor=d;b("renderer.cartesian",{drawCanvas:function(){var a=this.options.chart||{},b=a.plotBackgroundColor,
c=this.paper,d=this.elements,e=d.canvas,g=d.canvas3DBase,h=d.canvas3dbaseline,g=d.canvasBorder,l=d.canvasBg,m=this.canvasTop,n=this.canvasLeft,p=this.canvasWidth,r=this.canvasHeight,t=q(a.plotBorderRadius,0),l=a.plotBorderWidth,w=.5*l,A=a.plotBorderColor,v=a.isBar,z=a.is3D,D=a.use3DLighting,H=a.showCanvasBg,N=a.canvasBgDepth,L=a.showCanvasBase,R=a.canvasBaseColor3D,P=a.canvasBaseDepth,Q=a.plotShadow,T=G&&0===l&&Q&&Q.enabled,U=a.xDepth||0,a=a.yDepth||0,V=this.layers,X=V.background,W=V.dataset;V.tracker=
V.tracker||c.group("hot").insertAfter(W);V.datalabels=V.datalabels||c.group("datalabels").insertAfter(W);V=V.canvas=V.canvas||c.group("canvas").insertAfter(X);g||(d.canvasBorder=c.rect({x:n-w,y:m-w,width:p+l,height:r+l,r:t,"stroke-width":l,stroke:A,"stroke-linejoin":2<l?"round":"miter"},V).shadow(Q));d["clip-canvas"]=[Ra(0,n-U),Ra(0,m-a),Ra(1,p+2*U),Ra(1,r+2*a)];d["clip-canvas-init"]=[Ra(0,n-U),Ra(0,m-a),1,Ra(1,r+2*a)];z&&(H&&(l=v?d.canvasBg=c.path(["M",n,",",m,"L",n+1.2*N,",",m-N,",",n+p-N,",",m-
N,",",n+p,",",m,"Z"],V):d.canvasBg=c.path(["M",n+p,",",m,"L",n+p+N,",",m+1.2*N,",",n+p+N,",",m+r-N,",",n+p,",",m+r,"Z"],V),l.attr({"stroke-width":0,stroke:"none",fill:da(b)})),L&&(g=v?d.canvas3DBase=c.cubepath(n-U-P-1,m+a+1,P,r,U+1,a+1,V):d.canvas3DBase=c.cubepath(n-U-1,m+r+a+1,p,P,U+1,a+1,V),g.attr({stroke:"none","stroke-width":0,fill:[R.replace(J,I),!D]}),h||(h=d.canvas3dbaseline=c.path(void 0,V)),h.attr({path:v?["M",n,m,"V",r+m]:["M",n,m+r,"H",p+n],stroke:K.tintshade(R.replace(J,I),.05).rgba})));
!e&&b&&(d.canvas=c.rect({x:n,y:m,width:p,height:r,r:t,"stroke-width":0,stroke:"none",fill:da(b)},V).shadow(T))},drawAxes:function(){var a=this.logic,b=this.options,c=this.paper,e=this.layers,g=e.dataset,h=e.layerBelowDataset=e.layerBelowDataset||c.group("axisbottom").trackTooltip(!0),l=e.layerAboveDataset=e.layerAboveDataset||c.group("axistop").trackTooltip(!0),c=this.xAxis=[],e=this.yAxis=[];h.insertBefore(g);l.insertAfter(g);if(b.xAxis&&b.xAxis.length)for(g=0,h=b.xAxis.length;g<h;g+=1)c[g]=this.xAxis[g]=
new d(b.xAxis[g],this,a.isBar);else c[0]=this.xAxis[0]=new d(b.xAxis,this,a.isBar);if(b.yAxis)for(g=0,h=b.yAxis.length;g<h;g+=1)e[g]=this.yAxis[g]=new d(b.yAxis[g],this,!a.isBar,!a.isBar);g=0;for(h=e.length;g<h;g+=1)e[g].axisData&&(e[g].axisData.title&&(e[g].axisData.title.className="fusioncharts-yaxis-"+g+"-title"),e[g].axisData.labels&&(e[g].axisData.labels.className="fusioncharts-yaxis-"+g+"-gridlabels")),e[g].draw();g=0;for(h=c.length;g<h;g+=1)c[g].axisData&&(c[g].axisData.title&&(c[g].axisData.title.className=
"fusioncharts-xaxis-"+g+"-title"),c[g].axisData.labels&&(c[g].axisData.labels.className="fusioncharts-xaxis-"+g+"-gridlabels")),c[g].draw()},drawScroller:function(){var a=this,b=a.options,c=a.paper,d=a.layers,e=a.xAxis["0"]||{},g=e.axisData||{},h=g.scroll||{},l=a.canvasTop,m=a.canvasLeft,n=a.canvasWidth,p=a.canvasHeight,r=a.canvasBorderWidth,t=r||(g.showLine?g.lineThickness:0),A=r||g.lineStartExtension,g=r||g.lineEndExtension,r=b.chart.useRoundEdges,z,D,S,H,N,I,G,J,L,R,P,Q,U,T,V,s=d.dataset,u=d.datalabels,
B=d.tracker;H=d.layerAboveDataset;var F,f;h.enabled&&(F=d.scroll=d.scroll||c.group("scroll").insertAfter(H),H=h.scrollRatio,b=q(b[ia].xAxisScrollPos,h.startPercent),N=h.viewPortMax,I=h.viewPortMin,D=h.vxLength,G=ab(D),J=h.showButtons,L=h.height,R=h.padding,P=h.color,Q=h.flatScrollBars,D=h.windowedCanvasWidth=e.getAxisPosition(D),z=h.fullCanvasWidth=e.getAxisPosition(N-I)-D,S=pa(b*z),U=a.fusionCharts.jsVars._reflowData,T={hcJSON:{_FCconf:{xAxisScrollPos:0}}},V=T.hcJSON._FCconf,d.scroller=c.scroller(m-
A,l+p+t+R-!!t,n+A+g,L,!0,{showButtons:J,displayStyleFlat:Q,scrollRatio:H,scrollPosition:b},F).data("fullCanvasWidth",z).data("windowedCanvasWidth",D).attr({"scroll-display-style":Q,fill:P,r:r&&2||0}).scroll(function(b){var c;S=-pa(b*z);s&&s.transform(["T",S,0]);u&&u.transform(["T",S,0]);B&&B.transform(["T",S,0]);e.setOffset&&e.setOffset(S);c={position:b,direction:b-h.lastPos||0,vxLength:G};V.xAxisScrollPos=h.lastPos=b;w(U,T,!0);if(0!==c.direction)for(f=0;f<a.datasets.length;f++)a[a.datasets[f].drawPlot+
"Scroll"]&&a[a.datasets[f].drawPlot+"Scroll"].call(a,a.plots[f],a.datasets[f],c)}),function(){var b;K.eve.on("raphael.scroll.start."+d.scroller.id,function(c){b=c;v.raiseEvent("scrollstart",{scrollPosition:c},a.logic.chartInstance)});K.eve.on("raphael.scroll.end."+d.scroller.id,function(c){v.raiseEvent("scrollend",{prevScrollPosition:b,scrollPosition:c},a.logic.chartInstance)})}());return h.enabled},finalizeScrollPlots:function(){var a=this,b=a.container,d=a.elements,e=a.layers,g=e.scroller,l=e.dataset,
m=e.datalabels,e=e.tracker,n,r={},w,A=a.xAxis["0"]||{},z=(A.axisData||{}).scroll||{},D=q(a.options[ia].xAxisScrollPos,z.startPercent),H=z.fullCanvasWidth;z.enabled&&(l.attr({"clip-rect":d["clip-canvas"]}),m.attr({"clip-rect":d["clip-canvas"]}),e.attr({"clip-rect":d["clip-canvas"]}),d=function(b){var d=a.elements.canvas,e=n.left,l=n.top,m=b.state,p=ca&&c.getTouchEvent(b)||h;b=b.originalEvent;e=(b.clientX||b.pageX||p.pageX)-e;l=(b.clientY||b.pageY||p.pageY)-l;switch(m){case "start":w=d.isPointInside(e,
l);r.ox=w&&e||null;if(!w)return!1;r.prevScrollPosition=g.attrs["scroll-position"];v.raiseEvent("scrollstart",{scrollPosition:r.prevScrollPosition},a.logic.chartInstance);break;case "end":v.raiseEvent("scrollend",{prevScrollPosition:r.prevScrollPosition,scrollPosition:r.scrollPosition},a.logic.chartInstance);w=!1;r={};break;default:if(!w)break;d=e-r.ox;r.ox=e;r.scrollPosition=g.attrs["scroll-position"]-d/H;g.attr({"scroll-position":r.scrollPosition})}},ca&&(n=c.getPosition(b),b&&(t(b,"pointerdrag",
d),p(b,"pointerdrag",d))),0<D&&(b=-pa(D*H),l&&l.transform(["T",b,0]),m&&m.transform(["T",b,0]),e&&e.transform(["T",b,0]),A.setOffset&&A.setOffset(b)))},drawPlotColumn:function(a,b,c){var d=this,e=a.data,g=e.length,h=a.items,m=a.graphics||(a.graphics=[]),n=d.paper,p=d.smartLabel,r=d.logic,t=d.layers,w=d.options,v=d.elements,z=w.chart,D=!1!==(w.tooltip||{}).enabled,H,I=d.definition.chart,G=w.plotOptions.series,J=G.dataLabels.style,L=d.xAxis[b.xAxis||0],R=d.yAxis[b.yAxis||0],P=d.chartWidth,Q=d.chartHeight,
T=R.axisData.reversed,V=r.isLog,W=r.is3D,aa=r.isStacked,ca=r.isWaterfall,s=r.isCandleStick,u=fa(L.axisData.scroll,{}),B=c||{},F=u.enabled,f=q(B.position,w[ia].xAxisScrollPos,u.startPercent),ba=B.vxLength||ab(u.vxLength),O=B.scrollStart||Ra(0,pa((g-ba)*f)-1)||0,va=B.scrollEnd||La(g,O+ba+2)||g,Y=z.canvasBorderOpacity=K.color(z.plotBorderColor).opacity,ea=d.canvasBorderWidth,Zb=z.isCanvasBorder=0!==Y&&0<ea,ja,ra=c!==Ia?0:isNaN(+G.animation)&&G.animation.duration||1E3*G.animation,Aa=b.numColumns||1,ka=
b.columnPosition||0,za=z.use3DLighting,kc=!1===b.visible?"hidden":"visible",Fa=z.overlapColumns,Ha=L.getAxisPosition(0),ma=L.getAxisPosition(1)-Ha,Da=I&&I.plotspacepercent,Ca=q(I&&I.plotpaddingpercent),Ea=G.groupPadding,Na=G.maxColWidth,Ta=(1-.01*Da)*ma||La(ma*(1-2*Ea),Na*Aa),Qa=Ta/2,tc=Ta/Aa,Nc=La(tc-1,1<Aa?Fa||Ca!==Ia?0<Ca?tc*Ca/100:0:4:0),Cb=ka*tc-Qa+Nc/2,bb=R.max,Va=R.min,Ma=0<bb&&0<=Va,ib=0>=bb&&0>Va,Za=0<bb&&0>Va,fb=ib||T&&Ma?bb:V||Ma?Va:0,Gb=R.yBasePos=R.getAxisPosition(fb),hb,jb=q(z.useRoundEdges,
0),vc=t.dataset=t.dataset||n.group("dataset-orphan"),Sa=t.datalabels=t.datalabels||n.group("datalabels").insertAfter(vc),cd=t.tracker,Ya=d.canvasTop,nb=d.canvasLeft,sb=d.canvasWidth,pb=d.canvasBottom,Ec=d.canvasRight,uc,Fb,Bc,Sb,bc,cc,Kc,Ab,Ob,lb,eb,nc,qb,xc,xb,Kb,Bb,Ua,Vb,Fc,Ga,ub,ta,Wa,ac,Lc,Pa,Hb,Ib,oc,pc,yc,gb,Mc,Pb,Oa,Wb,ec,Rb,Tb=function(a){wa.call(this,d,a)},Qb=function(a,b){return function(c){a.attr(b);wa.call(this,d,c,"DataPlotRollOver")}},zc=function(a,b){return function(c){a.attr(b);wa.call(this,
d,c,"DataPlotRollOut")}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",{fontFamily:J.fontFamily,fontSize:J.fontSize,lineHeight:J.lineHeight,fontWeight:J.fontWeight,fontStyle:J.fontStyle,color:J.color});Sa.attr("class","fusioncharts-datalabels");ra&&(!c&&Sa.attr({transform:"...t"+P+","+Q}),d.animationCompleteQueue.push({fn:function(){Sa.attr({transform:"...t"+-P+","+-Q})},scope:d}));tc-=Nc;F&&O>va-ba-2&&(O=Ra(0,va-ba-2));aa&&(Oa=vc.shadows||(vc.shadows=n.group("shadows",vc).toBack()));
Ib=vc.column||(vc.column=n.group("columns",vc));s||W||F||Ib.attrs["clip-rect"]||Ib.attr({"clip-rect":v["clip-canvas"]});ca&&Ib.toBack();if(W)for(bc=z.xDepth||0,cc=z.yDepth||0,oc=Ib.negative=Ib.negative||n.group("negative-values",Ib),gb=Ib.column=Ib.column||n.group("positive-values",Ib),yc=Ib.zeroPlane,!yc&&0>Va&&0<=bb&&(yc=Ib.zeroPlane=n.group("zero-plane",Ib).insertBefore(gb),Fb=z.zeroPlaneColor,Bc=z.zeroPlaneBorderColor,Sb=z.zeroPlaneShowBorder,v.zeroplane=n.cubepath(nb-bc,Gb+cc,sb,1,bc,cc,yc).attr({fill:[Fb,
!za],stroke:Bc||"none","stroke-width":Sb?1:0})),(pc=oc.data("categoryplots"))||(oc.data("categoryplots",Array(g)),pc=oc.data("categoryplots")),(Mc=gb.data("categoryplots"))||(gb.data("categoryplots",Array(g)),Mc=gb.data("categoryplots")),lb=0;lb<g;lb+=1)pc[lb]=pc[lb]||n.group(oc),Mc[lb]=Mc[lb]||n.group(gb);else Pb=Ib;p.setStyle({fontFamily:J.fontFamily,fontSize:J.fontSize,lineHeight:J.lineHeight,fontWeight:J.fontWeight,fontStyle:J.fontStyle});for(lb=O;lb<va;lb+=1){eb=e[lb];xb=eb.y;H=eb.toolText;uc=
a.index+"_"+lb;Pa=Hb=null;if(null===xb){if(Ob=h[lb])Pa=Ob.graphic,W||Pa.attr({height:0})}else{Kc=!1;xc=q(eb.x,lb);nc=eb.link;qb=l(eb.borderWidth)||0;Lc=eb._FCW*ma;Bb=L.getAxisPosition(eb._FCX)||L.getAxisPosition(xc)+Cb;Kb=eb.previousY;Vb=R.getAxisPosition(Kb||fb);Ua=R.getAxisPosition(xb+(Kb||0));Ga=Ja(Ua-Vb);ub=Lc||tc;Rb={index:lb,link:nc,value:eb.y,displayValue:eb.displayValue,categoryLabel:eb.categoryLabel,toolText:eb.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};
if(W){0>xb&&(Ua=Vb,Kc=!0);Pb=0>xb?pc:Mc;(Ob=h[lb])||(Ob=h[lb]={index:lb,value:xb,graphic:n.cubepath(Pb[lb]),dataLabel:null,tracker:null,hot:null});Pa=Ob.graphic;Wa=ac={};eb.hoverEffects&&(Wa={fill:[da(eb.color),!za],stroke:qb&&da(eb.borderColor)||"NONE","stroke-width":qb},ta=eb.rolloverProperties,ac={fill:[da(ta.color),!za],stroke:ta.borderWidth&&da(ta.borderColor)||"NONE","stroke-width":ta.borderWidth});Pa.attr({cubepath:[Bb-bc,ra?Gb+cc:Ua+cc,ub,ra?0:Ga,bc,cc],fill:[da(eb.color),!za],stroke:qb&&
da(eb.borderColor)||"NONE","stroke-width":qb,visibility:kc}).shadow(G.shadow&&eb.shadow,Oa).data("BBox",{height:Ga,width:ub,x:Bb,y:Ua});ra&&Pa.animate({cubepath:[Bb-bc,Ua+cc,ub,Ga,bc,cc]},ra,"normal",d.getAnimationCompleteFn());if(nc||D)!aa&&Ga<X&&(Ua-=(X-Ga)/2,Ga=X),Ob.tracker||(Ob.tracker=n.cubepath(cd)),Hb=Ob.tracker,Hb.attr({cubepath:[Bb-bc,Ua+cc,ub,Ga,bc,cc],cursor:nc?"pointer":"",stroke:qb&&A||"NONE","stroke-width":qb,fill:A,ishot:!0,visibility:kc});(Hb||Pa).data("eventArgs",Rb).data("groupId",
uc).click(Tb).hover(Qb(Pa,ac),zc(Pa,Wa)).tooltip(H);(Hb||Pa)._.cubetop.data("eventArgs",Rb).data("groupId",uc).click(Tb).hover(Qb(Pa,ac),zc(Pa,Wa)).tooltip(H);(Hb||Pa)._.cubeside.data("eventArgs",Rb).data("groupId",uc).click(Tb).hover(Qb(Pa,ac),zc(Pa,Wa)).tooltip(H);aa&&Kc&&(Pa.toBack(),Hb&&Hb.toBack())}else{Ab=!1;if(!V&&!T&&0>xb||!V&&T&&0<xb)Ua=Vb,Ab=!0;T&&!Za&&0<xb&&(Ua=Vb-Ga,Ab=!1);ca&&0>xb&&U(Kb)&&(Ua-=Ga,Ab=!0);s||F||(N(Ua)<=Ya&&(Ga-=Ya-Ua-+Zb,Ua=Ya-+Zb),pa(Ua+Ga)>=pb&&(Ga-=pa(Ua+Ga)-pb+ +!!qb+
+Zb,z.xAxisLineVisible&&!Zb&&(Ga+=1)),1>=qb&&(pa(Bb)<=nb&&(ub+=Bb,Bb=nb-qb/2+ +!!qb-+Zb,ub-=Bb),pa(Bb+ub)>=Ec&&(ub=Ec-Bb+qb/2-+!!qb+ +Zb)));Wb=K.crispBound(Bb,Ua,ub,Ga,qb);Bb=Wb.x;Ua=Wb.y;ub=Wb.width;Ga=Wb.height;if(!s&&Zb&&(!U(Kb)||ca&&Kb===xb&&xb===eb._FCY))if(ib&&!T)ja=Ua-(Ya-qb/2),Ga+=ja,Gb=Ua-=ja;else if(V||Ma||T&&ib)Ga=pb-Ua+qb/2,Gb=Ua+Ga;ca&&Kb&&0<qb&&0!==G.connectorOpacity&&1===G.connectorWidth&&G.connectorDashStyle&&(Ga-=1,0>xb&&(Ua+=1));1>=Ga&&(Ga=1,Ua+=0>xb?1:0===xb?0:-Ga);b._columnWidth=
ub;if(!(Ob=h[lb])){Ob=h[lb]={index:lb,value:xb,width:ub,graphic:null,valueBelowPlot:Ab,dataLabel:null,tracker:null};hb=0;ra||(Gb=Ua,hb=Ga||1);Wa=ac={};eb.hoverEffects&&(Wa={fill:da(eb.color),stroke:da(eb.borderColor),"stroke-width":qb,"stroke-dasharray":eb.dashStyle},ta=eb.rolloverProperties,ac={fill:da(ta.color),stroke:da(ta.borderColor),"stroke-width":ta.borderWidth,"stroke-dasharray":ta.dashStyle});ec={x:Bb,y:Gb,width:ub,height:hb,r:jb,fill:da(eb.color),stroke:da(eb.borderColor),"stroke-width":qb,
"stroke-dasharray":eb.dashStyle,"stroke-linejoin":"miter",visibility:kc};Pa?Pa.attr(ec):Pa=Ob.graphic=n.rect(ec,Pb);Pa.shadow(G.shadow&&eb.shadow,Oa).data("BBox",Wb);ra&&Pa.animate({y:Ua,height:Ga||1},ra,"normal",d.getAnimationCompleteFn());if(nc||D)!aa&&Ga<X&&(Ua-=(X-Ga)/2,Ga=X),ec={x:Bb,y:Ua,width:ub,height:Ga,r:jb,cursor:nc?"pointer":"",stroke:A,"stroke-width":qb,fill:A,ishot:!0,visibility:kc},(Hb=Ob.tracker)?Hb.attr(ec):Hb=Ob.tracker=n.rect(ec,cd);Hb=Ob.tracker;(Hb||Pa).data("eventArgs",Rb).data("groupId",
uc).click(Tb).hover(Qb(Pa,ac),zc(Pa,Wa)).tooltip(H)}}Fc=d.drawPlotColumnLabel(a,b,lb,Bb,Ua)}Fc&&m.push(Fc);Pa&&m.push(Pa);Hb&&m.push(Hb);d.drawTracker&&d.drawTracker.call(d,a,b,lb)}a.visible=!1!==b.visible;return a},drawPlotColumnScroll:function(a,b,c){var d=a.data.length,e=a.items,g;g=c.vxLength;var h=Ra(0,pa((d-g)*c.position)-1)||0,d=La(d,h+g+2)||d;h>d-g-2&&(h=Ra(0,d-g-2));c.scrollEnd=d;for(g=h;g<d;g++)if(!e[g]){c.scrollStart=g;this.drawPlotColumn(a,b,c);break}},drawPlotColumnLabel:function(a,b,
c,d,e,g){var h=this.options,l=this.logic,m=h.chart;d=this.paper;var n=this.smartLabel,p=this.layers,h=h.plotOptions.series.dataLabels.style,q=1===m.rotateValues?270:0,r=this.canvasHeight,t=this.canvasTop,w=a.data[c];a=a.items[c];var A=m.valuePadding+2,z=a.graphic;c=a.dataLabel;var v=fa(a.valueBelowPlot,0>w.y),D=l.isStacked,l=l.is3D,H=m.xDepth||0,G=m.yDepth||0,I=w.displayValue;b=!1===b.visible?"hidden":"visible";var m=m.placeValuesInside,N;g=g||p.datalabels;U(I)&&I!==L&&null!==w.y?(a._state&&a._state.labelWidth||
(n=n.getOriSize(I),a._state=q?{labelWidth:n.height,labelHeight:n.width}:{labelWidth:n.width,labelHeight:n.height}),z=z.data("BBox"),n=z.height,p=N=a._state.labelHeight+A,A=.5*N+A,z=z.x+.5*z.width,r=v?t+r-(e+n):e-t,D?(e=e+.5*n+(G||0),z-=H):m?n>=p?(e+=v?n-A:A,w._valueBelowPoint=1,l&&(z-=H,e+=G)):r>=p?(e+=v?n+A:-A,l&&v&&(z-=H,e+=G)):(e+=v?n-A:A,w._valueBelowPoint=1,l&&(z-=H,e+=G)):r>=p?(e+=v?n+A:-A,l&&(v?(z-=H,e+=G):z-=H/2)):(e+=v?n-A:A,w._valueBelowPoint=1,l&&(z-=H,e+=G)),c?c.attr({x:z,y:e,visibility:b}):
c=a.dataLabel=d.text({text:I,"class":"fusioncharts-label",x:z,y:e,fill:h.color,"font-size":h.fontSize,visibility:b},g).attr({"line-height":h.lineHeight,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash]}),q&&c.attr("transform","T0,0,R"+q)):c&&c.attr({text:L});return c},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 c=this,
d=a.data,e=d.length,g=a.items,h=a.graphics=[],m=c.paper,n=c.logic,p=c.layers,r=c.options,t=c.elements,w=r.chart,z=!1!==(r.tooltip||{}).enabled,v,D=c.definition.chart,r=r.plotOptions.series,H=r.dataLabels.style,G={fontFamily:H.fontFamily,fontSize:H.fontSize,lineHeight:H.lineHeight,fontWeight:H.fontWeight,fontStyle:H.fontStyle},H=c.xAxis[b.xAxis||0],I=c.yAxis[b.yAxis||0],J=n.is3D,n=n.isStacked,L=w.canvasBorderOpacity=K.color(w.plotBorderColor).opacity,R=c.canvasBorderWidth,L=w.isCanvasBorder=0!==L&&
0<R,R=isNaN(+r.animation)&&r.animation.duration||1E3*r.animation,P=b.numColumns||1,Q=b.columnPosition||0,T=w.use3DLighting,U=!1===b.visible?"hidden":"visible",V=w.overlapColumns,W=H.getAxisPosition(0),W=H.getAxisPosition(1)-W,aa=D&&D.plotspacepercent,D=q(D&&D.plotpaddingpercent),s=r.groupPadding,u=r.maxColWidth,aa=(1-.01*aa)*W||La(W*(1-2*s),u*P),W=aa/2,aa=aa/P,V=La(aa-1,1<P?V||D!==Ia?0<D?aa*D/100:0:4:0),P=aa-V,Q=Q*aa-W+V/2,B=I.max,F=I.min,V=I.getAxisPosition(0>B&&0>F?B:0<B&&0<F?F:0),D=q(w.useRoundEdges,
0),f=c.canvasTop,W=c.canvasLeft,ba=c.canvasHeight,aa=c.canvasRight,O=c.chartWidth,va=c.chartHeight,fa,ca,Y,ia,ra,Aa,ea,ja,ka,za,s=I.axisData.effectiveZeroPlaneThickness;ea=p.dataset=p.dataset||m.group("dataset-orphan");var Fa=p.datalabels=p.datalabels||m.group("datalabels").insertAfter(ea),p=p.tracker,ma,Ha,Ca,Da,Ra,Ea,u=function(a){wa.call(this,c,a)},Na=function(a,b){return function(d){a.attr(b);wa.call(this,c,d,"DataPlotRollOver")}},Ta=function(a,b){return function(d){a.attr(b);wa.call(this,c,d,
"DataPlotRollOut")}},Qa;c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",G);Fa.attr("class","fusioncharts-datalabels");R&&(c.animationCompleteQueue.push({fn:function(){Fa.attr({transform:"...t"+-O+","+-va})},scope:c}),Fa.attr({transform:"...t"+O+","+va}));n&&(Ra=ea.shadows||(ea.shadows=m.group("shadows",ea).toBack()));ja=ea.column=ea.column||m.group("bars",ea);if(J)for(fa=w.xDepth||0,ca=w.yDepth||0,G=ja.negative=ja.negative||m.group("negative-values",ja),ea=ja.column=ja.column||m.group("positive-values",
ja),Ca=ja.zeroPlane,!Ca&&0>F&&0<=B&&(Ca=ja.zeroPlane=m.group("zero-plane",ja).insertBefore(ea),za=w.zeroPlaneColor,B=w.zeroPlaneBorderColor,F=w.zeroPlaneShowBorder,t.zeroplane=m.cubepath(V-fa,f+ca,1,ba,fa,ca,Ca).attr({fill:[za,!T],stroke:B||"none","stroke-width":F?1:0})),(Ca=G.data("categoryplots"))||(G.data("categoryplots",Array(e)),Ca=G.data("categoryplots")),(za=ea.data("categoryplots"))||(ea.data("categoryplots",Array(e)),za=ea.data("categoryplots")),t=0;t<e;t+=1)Ca[t]=Ca[t]||m.group(G),za[t]=
za[t]||m.group(ea);else ja.attrs["clip-rect"]||ja.attr({"clip-rect":t["clip-canvas"]}),Da=ja;t=0;for(G=e-1;t<e;t+=1,G-=1){f=d[t];F=f.y;ma=ba=null;if(null===F){if(Aa=g[t])ma=Aa.graphic,J||ma.attr({width:0})}else{ja=q(f.x,t);ea=f.link;v=f.toolText;B=l(f.borderWidth)||0;ja=H.getAxisPosition(ja)+Q;Aa=(Y=f.previousY)?I.getAxisPosition(Y):V;ka=I.getAxisPosition(F+(Y||0));Y=Ja(ka-Aa);0<F&&(ka=Aa);Ha={index:t,link:ea,value:f.y,displayValue:f.displayValue,categoryLabel:f.categoryLabel,toolText:f.toolText,
id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};if(J){Da=0>F?Ca:za;(Aa=g[t])||(Aa=g[t]={index:t,value:F,graphic:m.cubepath(Da[G]),dataLabel:null,tracker:null});ma=Aa.graphic;ra=ia={};f.hoverEffects&&(ra={fill:[da(f.color),!T],stroke:B&&da(f.borderColor)||"NONE","stroke-width":B},ia=f.rolloverProperties,ia={fill:[da(ia.color),!T],stroke:ia.borderWidth&&da(ia.borderColor)||"NONE","stroke-width":ia.borderWidth});ma.attr({cubepath:[R?V-fa:ka-fa,ja+ca,R?0:Y,P,fa,ca],fill:[da(f.color),
!T],stroke:B&&da(f.borderColor)||"NONE","stroke-width":B,"stroke-dasharray":f.dashStyle,cursor:ea?"pointer":"",visibility:U}).shadow(r.shadow&&f.shadow,Ra).data("BBox",{height:P,width:Y,x:ka,y:ja});R&&ma.animate({cubepath:[ka-fa,ja+ca,Y,P,fa,ca]},R,"normal",c.getAnimationCompleteFn());if(ea||z)!n&&Y<X&&(ka-=(X-Y)/2,Y=X),Aa.tracker||(Aa.tracker=m.cubepath(p)),ba=Aa.tracker,ba.attr({cubepath:[ka-fa,ja+ca,Y,P,fa,ca],cursor:ea?"pointer":"",stroke:B&&A||"NONE","stroke-width":B,fill:A,ishot:!0});(ba||ma).data("eventArgs",
Ha).click(u).hover(Na(ma,ia),Ta(ma,ra)).tooltip(v);(ba||ma)._.cubetop.data("eventArgs",Ha).click(u).hover(Na(ma,ia),Ta(ma,ra));(ba||ma)._.cubeside.data("eventArgs",Ha).click(u).hover(Na(ma,ia),Ta(ma,ra));if(!n||n&&0>F)ma.toBack(),ba&&ba.toBack()}else{N(ka)<=W&&(Y+=ka,ka=W+B/2+.2,w.xAxisLineVisible&&!L&&(ka-=1),Y-=ka);pa(ka+Y)>=aa&&(Y=aa-ka-B/2-.2);Ea=K.crispBound(ka,ja,Y,P,B);ka=Ea.x;ja=Ea.y;Y=Ea.width;Qa=Ea.height;1>=Y&&(Y=1,ka+=0>F?-Y:0===F?0:1<s?Y:0);(Aa=g[t])||(Aa=g[t]={index:t,value:F,height:Qa,
graphic:null,dataLabel:null,tracker:null});ma=Aa.graphic;ra=ia={};f.hoverEffects&&(ra={fill:da(f.color),stroke:da(f.borderColor),"stroke-width":B,"stroke-dasharray":f.dashStyle},ia=f.rolloverProperties,ia={fill:da(ia.color),stroke:da(ia.borderColor),"stroke-width":ia.borderWidth,"stroke-dasharray":ia.dashStyle});F={x:R?V:ka,y:ja,width:R?0:Y||1,height:Qa,r:D,fill:da(f.color),stroke:da(f.borderColor),"stroke-width":B,"stroke-dasharray":f.dashStyle,"stroke-linejoin":"miter",cursor:ea?"pointer":"",visibility:U};
ma?ma.attr(F):ma=Aa.graphic=m.rect(F,Da);ma.shadow(r.shadow&&f.shadow,Ra).data("BBox",Ea);R&&ma.animate({x:ka,width:Y||1},R,"normal",c.getAnimationCompleteFn());if(ea||z)!n&&Y<X&&(ka-=(X-Y)/2,Y=X),ba=Aa.tracker,F={x:ka,y:ja,width:Y,height:P,r:D,cursor:ea?"pointer":"",stroke:A,"stroke-width":B,fill:A,ishot:!0},ba?ba.attr(F):ba=Aa.tracker=m.rect(F,p),ba.data("eventArgs",Ha);(ba||ma).data("eventArgs",Ha).click(u).hover(Na(ma,ia),Ta(ma,ra)).tooltip(v)}v=c.drawPlotBarLabel(a,b,t,ka,ja)}v&&h.push(v);ma&&
h.push(ma);ba&&h.push(ba);c.drawTracker&&c.drawTracker.call(c,a,b,t)}a.visible=!1!==b.visible;return a},drawPlotBarLabel:function(a,b,c,d,e,g){var h=this.options,l=this.logic,m=h.chart,n=this.paper,p=this.layers,q=h.plotOptions.series.dataLabels.style,h=this.canvasLeft,r=this.canvasWidth,t=a.data[c],w=a.items[c];a=m.valuePadding+2;var A=w.graphic;c=w.dataLabel;var z=0>t.y,v=l.isStacked,l=l.is3D,D=m.xDepth||0,H=m.yDepth||0,G=t.displayValue;b=!1===b.visible?"hidden":"visible";m=m.placeValuesInside;
g=g||p.datalabels;U(G)&&G!==L&&null!==t.y?(c||(c=w.dataLabel=n.text({"class":"fusioncharts-label",text:G,"font-size":q.fontSize,"text-anchor":v?"middle":z?m?"start":"end":m?"end":"start",title:t.originalText||"",fill:q.color,x:0,y:0,"line-height":q.lineHeight},g).attr("text-bound",[q.backgroundColor,q.borderColor,q.borderThickness,q.borderPadding,q.borderRadius,q.borderDash])),g=c.getBBox(),n=A.data("BBox"),q=n.height,p=n.width,n=g.width,n+=a,e+=.5*q,q=d+(z?0:p),d=z?d-h:h+r-(d+p),v?(q=q+.5*(z?p:-p)-
(l?D:0),e+=l?H:0):(m?p>=n?(q+=z?a:-a,l&&(q-=D,e+=H)):(q+=z?-a:a,l&&z&&(q-=D)):d>=n?(q+=z?-a:a,l&&z&&(q-=D,e+=D)):(q+=z?a+n:-(a+n),l&&(q-=D,e+=H)),q>h+r&&(q=h+r-.5*g.width-4),q<h&&(q=h+.5*g.width+4)),c.attr({x:q,y:e,visibility:b})):c&&c.attr({text:L});return c},drawPlotBar3d:function(a,b){this.drawPlotBar.call(this,a,b)},drawPlotLine:function(a,b){var c=this,d=c.paper,e=c.elements,g=c.options,h=g.chart,m=c.logic,n=g.plotOptions.series,p=a.items,r=a.graphics=a.graphics||[],t,w=c.xAxis[b.xAxis||0],v=
c.yAxis[b.yAxis||0],D=m.multisetRealtime||m.dragExtended,H=m.isWaterfall,G,I,N,J,L,R=0,P=!1!==(g.tooltip||{}).enabled,T,U=isNaN(+n.animation)&&n.animation.duration||1E3*n.animation,V,W=n.dataLabels.style,aa={fontFamily:W.fontFamily,fontSize:W.fontSize,lineHeight:W.lineHeight,fontWeight:W.fontWeight,fontStyle:W.fontStyle},X=h.xDepth||0,s=h.yDepth||0,u=h.series2D3Dshift,B=b.step,F=b.drawVerticalJoins,f=b.useForwardSteps,ba=a.data,O=!1===b.visible?"hidden":"visible",fa,Y=ba.length,ca=w.getAxisPosition(0),
ea=w.getAxisPosition(1)-ca,ia=ea*Y,ra=w.axisData.scroll||{},ja=h.hasScroll||!1,ka,pa=n.connectNullData,za=c.chartWidth,Ha=c.chartHeight,Fa=function(){Kb.attr({"clip-rect":null});xb.show();xc.show();Bb.show();Ec.attr({transform:"...t"+-za+","+-Ha})},ma,Ea,Ca,Da,Ja,Na,Ia,Ta=null,Qa,Cb,bb=n.connectorWidth=l(b.lineWidth),Va=b.color,Ma,ab,ib=n.connectorDashStyle=b.dashStyle,fb,Gb,hb,jb,Za,Sa,Ya,nb,pb,sb=c.layers,Fb=sb.dataset=sb.dataset||d.group("dataset-orphan"),Ec=sb.datalabels=sb.datalabels||d.group("datalabels").insertAfter(Fb),
uc=sb.tracker,Sb=e["clip-canvas-init"].slice(0),Bc=e["clip-canvas"].slice(0),Uc=v.axisData.reversed,bc=v.max,cc=v.min,Kc=v.getAxisPosition(0<bc&&0<cc?Uc?bc:cc:0>bc&&0>cc?Uc?cc:bc:Uc?bc:0)+(u?s:0),Ab=[],Ob=h.anchorTrackingRadius,lb=/drag/ig.test(c.logic.rendererId),eb,nc,qb,xc,xb,Kb,Bb,Ua,Vb,Fc,Ga,ub,ta=[],Wa=function(a){wa.call(this,c,a)},ac=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOver",a,c)}},Lc=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOut",
a,c)}},Pa=function(e,f,g,h,l,m,n,p){return function(){var q=g.imageUrl,s=g.imageScale,u=g.imageAlpha,t=n.imageHoverAlpha,w=n.imageHoverScale,B=this.height*s*.01,z=this.width*s*.01,v=this.width*w*.01;Ya={x:e-this.width*s*.005,y:f-this.height*s*.005,width:z,height:B,alpha:u};nb={x:e-this.width*w*.005,y:f-this.height*w*.005,width:v,height:this.height*w*.01,alpha:t};t=v>z?nb:Ya;lb&&(t={cx:e,cy:f,r:.5*Ra(B,z)});(h.graphic=jb=d.image(q,Bb).attr(Ya).css({opacity:.01*u}).data("alwaysInvisible",!s).data("setRolloverProperties",
n).data("setRolloverAttr",nb).data("setRolloutAttr",Ya).data("anchorRadius",s).data("anchorHoverRadius",w))&&r.push(jb);if(Ea||P||n)Za=h.tracker=(lb?d.circle(uc):d.rect(uc)).attr(t).attr({cursor:Ea?"pointer":"",stroke:A,"stroke-width":g.lineWidth,fill:A,ishot:!0,visibility:O}).data("eventArgs",l).data("groupId",eb).click(Wa).hover(ac(h),Lc(h)).tooltip(m);c.drawTracker&&c.drawTracker.call(c,a,b,p);(Ga=h.dataLabel=c.drawPlotLineLabel(a,b,p,e,f))&&r.push(Ga)}},Hb=function(d,e,f,g,h,l,m,n){return function(){(Ga=
g.dataLabel=c.drawPlotLineLabel(a,b,n,d,e))&&r.push(Ga)}};c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",aa);Ec.attr("class","fusioncharts-datalabels");n.connectorOpacity=K.color(Va).opacity;v.yBasePos=Kc;H&&(G=(I=c.definition.chart)&&I.plotspacepercent,N=n.groupPadding,J=n.maxColWidth,L=(1-.01*G)*ea||La(ea*(1-2*N),1*J),R=L/2);Ec.attr({transform:"...t"+za+","+Ha});U&&c.animationCompleteQueue.push({fn:Fa,scope:c});qb=Fb.line||(Fb.line=d.group("line-connector",Fb));xc=a.lineShadowLayer||
(a.lineShadowLayer=d.group("connector-shadow",qb));xb=a.anchorShadowLayer||(a.anchorShadowLayer=d.group("anchor-shadow",qb));Kb=a.lineLayer||(a.lineLayer=d.group("connector",qb));Bb=a.anchorLayer||(a.anchorLayer=d.group("anchors",qb));Bb.hide();xc.hide();xb.hide();for(fa=0;fa<Y;fa+=1){ma=ba[fa];Ja=ma.y;Na=ma.previousY||0;T=ma.toolText;eb=a.index+"_"+fa;pb=Ga=jb=Za=null;t=p[fa]={index:fa,value:null,graphic:null,connector:null,dataLabel:null,shadowGroup:xb,tracker:null};if(null===Ja)ta.length=0,0===
pa&&(Ta=null);else{Da=q(ma.x,fa);Ea=ma.link;"boxandwhisker"===b.relatedSeries&&b.pointStart&&(Da+=b.pointStart);Cb=v.getAxisPosition(Ja+Na)+(u?s:0);Qa=w.getAxisPosition(Da)-X;Qa=Q(Qa,bb,bb).position;Cb=Q(Cb,bb,bb).position;if((fb=ma.marker)&&fb.enabled)if(Gb=fb.symbol.split("_"),hb="spoke"===Gb[0]?1:0,Ca=fb.radius,Ua=fb.shadow,nc={index:fa,link:Ea,value:ma.y,displayValue:ma.displayValue,categoryLabel:ma.categoryLabel,toolText:ma.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},
Ya=nb={},Sa=ma.rolloverProperties,fb.imageUrl)ub=new z,ub.onload=Pa(Qa,Cb,fb,t,nc,T,Sa,fa),ub.onerror=Hb(Qa,Cb,fb,t,nc,T,Sa,fa),ub.src=fb.imageUrl;else{Sa&&(Ya={polypath:[Gb[1]||2,Qa,Cb,Ca,fb.startAngle,hb],fill:da(fb.fillColor),"stroke-width":fb.lineWidth,stroke:da(fb.lineColor)},nb={polypath:[Sa.sides||2,Qa,Cb,Sa.radius,Sa.startAngle,Sa.dip],fill:da(Sa.fillColor),"stroke-width":Sa.lineWidth,stroke:da(Sa.lineColor)});jb=t.graphic=d.polypath(Gb[1]||2,Qa,Cb,Ca,fb.startAngle,hb,Bb).attr({fill:da(fb.fillColor),
"stroke-width":fb.lineWidth,stroke:da(fb.lineColor),cursor:Ea?"pointer":"",visibility:Ca?O:"hidden"}).data("alwaysInvisible",!Ca).data("setRolloverProperties",Sa).data("setRolloverAttr",nb).data("setRolloutAttr",Ya).data("anchorRadius",Ca).data("anchorHoverRadius",Sa&&Sa.radius).shadow(Ua||!1,xb);if(Ea||P||Sa)Ca=Ra(Ca,Sa&&Sa.radius||0,Ob),Za=t.tracker=d.circle({cx:Qa,cy:Cb,r:Ca,cursor:Ea?"pointer":"",stroke:A,"stroke-width":fb.lineWidth,fill:A,ishot:!0,visibility:O},uc);(Za||jb).data("eventArgs",
nc).data("groupId",eb).click(Wa).hover(ac(t),Lc(t)).tooltip(T);c.drawTracker&&c.drawTracker.call(c,a,b,fa)}Vb=Fc!==[da(ma.color||Va),ma.dashStyle||ib].join(":");if(null!==Ta){if(ta.length&&(Ab=Ab.concat(ta),ta.length=0),(D||H||!Ab.join(""))&&Ab.push("M",Ia,Ta),H&&Ab.push("m",-R,0),B?f?(Ab.push("H",Qa),H&&Ab.push("h",R),F?Ab.push("V",Cb):Ab.push("m",0,Cb-Ta)):(F&&Ab.push("V",Cb),Ab.push("M",Ia,Cb,"H",Qa)):Ab.push("L",Qa,Cb),D||Vb)pb=t.connector=d.path(Ab,Kb).attr({"stroke-dasharray":ab,"stroke-width":bb,
stroke:Ma,"stroke-linecap":"round","stroke-linejoin":2<bb?"round":"miter",visibility:O}).shadow(n.shadow&&ma.shadow,xc),Ab=[]}else!D&&ta.push("M",Qa,Cb);fb&&fb.imageUrl||(Ga=t.dataLabel=c.drawPlotLineLabel(a,b,fa,Qa,Cb));Ia=Qa;Ta=Cb;Ma=da(ma.color||Va);ab=ma.dashStyle||ib;Fc=[Ma,ab].join(":")}Ga&&r.push(Ga);jb&&r.push(jb);pb&&r.push(pb);Za&&r.push(Za)}!D&&Ab.join("")&&(pb=d.path(Ab,Kb).attr({"stroke-dasharray":ab,"stroke-width":bb,stroke:Ma,"stroke-linecap":"round","stroke-linejoin":2<bb?"round":
"miter",visibility:O}).shadow(n.shadow&&ma.shadow,xc))&&r.push(pb);ja&&(ka=ra.startPercent,Bc[2]=ia+Sb[0],1===ka&&(Sb[0]=Bc[2],Bc[0]=0));U?(V=K.animation({"clip-rect":Bc},U,ja?"easeIn":"normal",c.getAnimationCompleteFn()),Kb.attr({"clip-rect":Sb}).animate(H?V.delay(U):V)):(Fa&&Fa(),Fa=void 0);a.visible=!1!==b.visible;return a},hoverPlotAnchor:function(a,b,c,d,e){var g=d.graphic;d=d.dataLabel;var h=e.options.chart,l=1===h.rotateValues?270:0,m=g.data("setRolloverProperties"),n=g.data("isRealtime"),
p=n&&g.attr("polypath"),q=g.data("setRolloverAttr"),r="image"===g.type,t=g.data("setRolloutAttr"),w=d&&(d.data("isBelow")?1:-1)*(r?.5*(q.height-t.height):g.data("anchorHoverRadius")-g.data("anchorRadius")),A="DataPlotRollOver"==c?q:t,z={transform:"T0,"+("DataPlotRollOver"===c?w:0)+"R"+l},v={fill:A.fill,"stroke-width":A["stroke-width"],stroke:A.stroke},A=r?A:{polypath:A.polypath},h=h.syncLabelWithAnchor,D=g.data("anchorRadius"),H=g.data("anchorHoverRadius"),q=!(/,0\)$/.test(q.fill)&&/,0\)$/.test(t.fill))&&
g.data("anchorHoverRadius")-g.data("anchorRadius")&&m.animation&&50;d&&d.data("isMiddle")&&(z={transform:"T,"+("DataPlotRollOver"===c?w:0)+",0R"+l});m&&(("DataPlotRollOver"==c&&0!==H||"DataPlotRollOut"==c&&0!==D)&&g.attr({visibility:"visible"}),r?g.css({opacity:.01*A.alpha}):g.attr(v),n&&!r&&(A.polypath[1]=p[1],A.polypath[2]=p[2]),g.stop(),g.animate(A,q,"easeOut",function(){("DataPlotRollOver"==c&&!H||"DataPlotRollOut"==c&&!D)&&g.attr({visibility:"hidden"})}),d&&d.stop(),q&&h&&d&&d.animate(z,q,"easeOut"));
wa.call(a,e,b,c)},drawPlotArea:function(a,b){var c=this,d=c.paper,e=c.options,g=e.chart,h=c.logic,l=e.plotOptions.series,m=c.elements,n=a.items,p=a.graphics=a.graphics||[],r,t=c.xAxis[b.xAxis||0],v=c.yAxis[b.yAxis||0],D=v.axisData.reversed,H=g.xDepth||0,G=g.yDepth||0,h=h.isStacked,I=!1!==(e.tooltip||{}).enabled,N,J,e=l.dataLabels.style,K={fontFamily:e.fontFamily,fontSize:e.fontSize,lineHeight:e.lineHeight,fontWeight:e.fontWeight,fontStyle:e.fontStyle,color:e.color},e=isNaN(+l.animation)&&l.animation.duration||
1E3*l.animation,L=g.series2D3Dshift,R="0"===c.definition.chart.drawfullareaborder,P=a.data,Q=!1===b.visible?"hidden":"visible",T=P.length,U=t.getAxisPosition(0),V=(t.getAxisPosition(1)-U)*T,W=t.axisData.scroll||{},U=g.hasScroll||!1,s=l.connectNullData,u,B,F,f,ba,O=v.max,fa=v.min,aa=v.getAxisPosition(0<O&&0>fa?0:!D&&0<O&&0<=fa?fa:O)+(L?G:0),X=c.chartWidth,Y=c.chartHeight,D=function(){Za.attr({"clip-rect":null});fb.show();Ta.show();Qa.attr({transform:"...t"+-X+","+-Y})},ca=null,ra,ea,O=b.lineWidth,
fa=b.dashStyle,ia=da(b.fillColor),ja=da(b.lineColor),ka=0,pa=/drag/ig.test(c.logic.rendererId),za,ma,Ea,Ca,Fa,Ha,Da=[],Ja=[],La=null,Na=[],Ia=c.layers;f=Ia.dataset=Ia.dataset||d.group("dataset-orphan");var Qa=Ia.datalabels=Ia.datalabels||d.group("datalabels").insertAfter(f),Va=Ia.tracker,Ia=m["clip-canvas-init"].slice(0),m=m["clip-canvas"].slice(0),g=g.anchorTrackingRadius,Ma,Ta,ab,fb,Za,hb,jb,ib,Sa,Ya,nb=function(a){wa.call(this,c,a)},pb=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOver",
a,c)}},sb=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOut",a,c)}},La=function(e,f,g,h,l,m,n,q){return function(){var r=g.imageUrl,s=g.imageScale,u=g.imageAlpha,t=n.imageHoverAlpha,z=n.imageHoverScale,v=this.width*s*.01,F=this.width*z*.01;Fa={x:e-this.width*s*.005,y:f-this.height*s*.005,width:v,height:this.height*s*.01,alpha:u};Ha={x:e-this.width*z*.005,y:f-this.height*z*.005,width:F,height:this.height*z*.01,alpha:t};t=F>v?Ha:Fa;pa&&(t={cx:e,cy:f,r:.5*Ra(F,v)});(h.graphic=
ma=d.image(r,fb).attr(Fa).css({opacity:.01*u}).data("alwaysInvisible",!s).data("setRolloverProperties",n).data("setRolloverAttr",Ha).data("setRolloutAttr",Fa).data("anchorRadius",s).data("anchorHoverRadius",z))&&p.push(ma);if(B||I||n)Ma=w({cursor:B?"pointer":"",stroke:A,"stroke-width":g.lineWidth,fill:A,ishot:!0,visibility:Q},t),Ea=h.tracker=(pa?d.circle(Ma,Va):d.rect(Ma,Va)).data("eventArgs",l).click(nb).hover(pb(h),sb(h)).tooltip(m),c.drawTracker&&c.drawTracker.call(c,a,b,q);(Ya=h.dataLabel=c.drawPlotLineLabel(a,
b,q,e,f))&&p.push(Ya)}},Fb=function(d,e,f,g,h,l,m,n){return function(){(Ya=g.dataLabel=c.drawPlotLineLabel(a,b,n,d,e))&&p.push(Ya)}};c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",K);Qa.attr("class","fusioncharts-datalabels");v.yBasePos=aa;Qa.attr({transform:"...t"+X+","+Y});e&&c.animationCompleteQueue.push({fn:D,scope:c});K=f;h&&(hb=K.shadows||(K.shadows=d.group("shadows",K).toBack()));Za=K.area=K.area||d.group("area",K);K=K.areaConnector||(K.areaConnector=d.group("area-connector",
K));a.lineShadowLayer||(a.lineShadowLayer=d.group("connector-shadow",K));Ta=a.anchorShadowLayer||(a.anchorShadowLayer=d.group("anchor-shadow",K));ab=a.lineLayer||(a.lineLayer=d.group("connector",K));fb=a.anchorLayer||(a.anchorLayer=d.group("anchors",K));fb.hide();Ta.hide();K=f;for(K=0;K<T;K+=1){u=P[K];f=u.y;r=q(u.x,K);ra=t.getAxisPosition(r)-H;ma=Ya=Ea=null;r=n[K]={};if(null===f)0===s&&(ca=null,0<ka&&(1===ka?Da.splice(-8,8):(Da=Da.concat(Ja),Da.push("Z")),Ja=[])),r.chart=c,r.index=K,r.value=f;else{B=
u.link;N=u.toolText;J=u.previousY;ba=(ba=v.getAxisPosition(J)||null)||aa;ea=v.getAxisPosition(f+(J||0))+(L?G:0);if((Sa=u.marker)&&Sa.enabled)if(J={index:K,link:B,value:u.y,displayValue:u.displayValue,categoryLabel:u.categoryLabel,toolText:u.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},Fa=Ha={},Ca=u.rolloverProperties,Sa.imageUrl)F=new z,F.onload=La(ra,ea,Sa,r,J,N,Ca,K),F.onerror=Fb(ra,ea,Sa,r,J,N,Ca,K),F.src=Sa.imageUrl;else{za=Sa.symbol.split("_");F=Sa.radius;ib=
Sa.shadow;Ca&&(Fa={polypath:[za[1]||2,ra,ea,F,Sa.startAngle,0],fill:da(Sa.fillColor),"stroke-width":Sa.lineWidth,stroke:da(Sa.lineColor)},Ca=u.rolloverProperties,Ha={polypath:[Ca.sides||2,ra,ea,Ca.radius,Ca.startAngle,Ca.dip],fill:da(Ca.fillColor),"stroke-width":Ca.lineWidth,stroke:da(Ca.lineColor)});ma=r.graphic=d.polypath(za[1]||2,ra,ea,F,Sa.startAngle,0,fb).attr({fill:da(Sa.fillColor),"stroke-width":Sa.lineWidth,stroke:da(Sa.lineColor),cursor:B?"pointer":"",visibility:F?Q:"hidden"}).data("alwaysInvisible",
!F).data("setRolloverProperties",Ca).data("setRolloverAttr",Ha).data("setRolloutAttr",Fa).data("anchorRadius",F).data("anchorHoverRadius",Ca&&Ca.radius).shadow(ib||!1,Ta);if(B||I||Ca)h||(F=Ra(F,Ca&&Ca.radius||0,g)),Ea=r.tracker=d.circle({cx:ra,cy:ea,r:F,cursor:B?"pointer":"",stroke:A,"stroke-width":Sa.lineWidth,fill:A,ishot:!0,visibility:Q},Va);(Ea||ma).data("eventArgs",J).click(nb).hover(pb(r),sb(r)).tooltip(N);c.drawTracker&&c.drawTracker.call(c,a,b,K)}null===ca?(Na.push("M",ra,",",ea),Da.push("M",
ra,",",ba),ka=0):Na.push("L",ra,",",ea);Da.push("L",ra,",",ea);Ja.unshift("L",ra,",",ba);ka++;ca=ea;Sa&&Sa.imageUrl||(Ya=r.dataLabel=c.drawPlotLineLabel(a,b,K,ra,ea));r.chart=c;r.index=K;r.value=f;r.dataLabel=Ya}Ya&&p.push(Ya);ma&&p.push(ma);Ea&&p.push(Ea)}0<ka&&(1===ka?Da.splice(-8,8):(Da=Da.concat(Ja),Da.push("Z")));(La=a.graphic=d.path(Da,Za).attr({fill:ia,"stroke-dasharray":fa,"stroke-width":R?0:O,stroke:ja,"stroke-linecap":"round","stroke-linejoin":2<O?"round":"miter",visibility:Q}).shadow(l.shadow&&
u.shadow,hb))&&p.push(La);U&&(l=W.startPercent,m[2]=V+Ia[0],1===l&&(Ia[0]=m[2],m[0]=0));e?jb=Za.attr({"clip-rect":Ia}).animate({"clip-rect":m},e,U?"easeIn":"normal",c.getAnimationCompleteFn()):(D&&D(),D=void 0);hb&&(e?hb.attr({"clip-rect":Ia}).animateWith(Za,jb,{"clip-rect":m},e,U?"easeIn":"normal",function(){hb.attr({"clip-rect":null})}):hb.attr({"clip-rect":null}));R&&(l=a.connector=d.path(Na,ab).attr({"stroke-dasharray":fa,"stroke-width":O,stroke:ja,"stroke-linecap":"round","stroke-linejoin":2<
O?"round":"miter",visibility:Q}),e?ab.attr({"clip-rect":Ia}).animateWith(Za,jb,{"clip-rect":m},e,U?"easeIn":"normal",function(){ab.attr({"clip-rect":null})}):ab.attr({"clip-rect":null}),l&&p.push(l));a.visible=!1!==b.visible;return a},drawPlotScatter:function(a,b){var c=this,d=c.options,e=d.chart,g=d.plotOptions.series,h=c.paper,l=c.elements,m=a.items,n,p=a.graphics=a.graphics||[],q=c.xAxis[b.xAxis||0],r=c.yAxis[b.yAxis||0],t=a.data,w=!1===b.visible?"hidden":"visible",d=!1!==(d.tooltip||{}).enabled,
z,v=g.dataLabels.style,D={fontFamily:v.fontFamily,fontSize:v.fontSize,lineHeight:v.lineHeight,fontWeight:v.fontWeight,fontStyle:v.fontStyle,color:v.color},v=isNaN(+g.animation)&&g.animation.duration||1E3*g.animation,H=c.chartWidth,G=c.chartHeight,K,I,N,J,L,R,P,Q,T,s=b.lineWidth,u=0<s,B=b.color,F=b.dashStyle,f=g.connectNullData,U=[],O,V,W,fa,aa,X,Y=c.layers,ea=Y.dataset||(Y.dataset=h.group("dataset-orphan")),ca=Y.datalabels||(Y.datalabels=h.group("datalabels").insertAfter(ea)),Y=Y.tracker,e=e.anchorTrackingRadius,
ia,ja,ka,pa=function(a){wa.call(this,c,a)},ma=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOver",a,c)}},za=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOut",a,c)}};c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",D);ca.attr("class","fusioncharts-datalabels");v&&(c.animationCompleteQueue.push({fn:function(){ca.attr({transform:"...t"+-H+","+-G})},scope:c}),ca.attr({transform:"...t"+H+","+G}));ia=ea.line||(ea.line=h.group("line-connector",
ea));a.lineShadowLayer=h.group("connector-shadow",ia);ea=a.anchorShadowLayer=h.group("anchor-shadow",ia);D=a.lineLayer=h.group("connector",ia);ia=a.anchorLayer=h.group("anchors",ia);K=0;for(I=t.length;K<I;K+=1){N=t[K];O=N.marker;Q=T=fa=z=aa=null;ka=a.index+"_"+K;R=N.y;L=N.x;if(null!==R&&null!==L){if(O&&O.enabled){J=N.link;z=N.toolText;W=O.radius;ja=O.shadow;T=r.getAxisPosition(R);Q=q.getAxisPosition(L);V={index:K,link:J,y:N.y,x:N.x,displayValue:N.displayValue,categoryLabel:N.categoryLabel,toolText:N.toolText,
id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};fa=O.symbol.split("_");n=m[K]={index:K,x:L,y:R,value:R};L=R={};N.hoverEffects&&(L={polypath:[fa[1]||2,Q,T,W,O.startAngle,0],fill:da(O.fillColor),"stroke-width":O.lineWidth,stroke:da(O.lineColor)},X=N.rolloverProperties,R={polypath:[X.sides||2,Q,T,X.radius,X.startAngle,X.dip],fill:da(X.fillColor),"stroke-width":X.lineWidth,stroke:da(X.lineColor)});fa=n.graphic=h.polypath(fa[1]||2,Q,T,W,O.startAngle,0,ia).attr({fill:da(O.fillColor),
"stroke-width":O.lineWidth,stroke:da(O.lineColor),cursor:J?"pointer":"",visibility:W?w:"hidden"}).data("alwaysInvisible",!W).data("setRolloverProperties",X).data("setRolloverAttr",R).data("setRolloutAttr",L).data("anchorRadius",W).data("anchorHoverRadius",X&&X.radius).shadow(ja||!1,ea);if(J||d||X)W=Ra(W,X&&X.radius||0,e),aa=n.tracker=h.circle({cx:Q,cy:T,r:W,cursor:J?"pointer":"",stroke:A,"stroke-width":O.lineWidth,fill:A,ishot:!0,visibility:w},Y);(aa||fa).data("eventArgs",V).data("groupId",ka).click(pa).hover(ma(n),
za(n)).tooltip(z)}u&&((void 0===P||null===P&&0===f)&&Q&&T&&U.push("M",Q,",",T),Q&&T&&U.push("L",Q,",",T),P=T);z=n.dataLabel=c.drawPlotLineLabel(a,b,K,Q,T)}else u&&0===f&&(P=null),m[K]={chart:c,index:K,x:L,y:R};z&&p.push(z);fa&&p.push(fa);aa&&p.push(aa);c.drawTracker&&c.drawTracker.call(c,a,b,K)}U.length&&(g=a.graphic=h.path(U,D).attr({"stroke-dasharray":F,"stroke-width":s,stroke:B,"stroke-linecap":"round","stroke-linejoin":2<s?"round":"miter",visibility:w}).shadow(g.shadow&&N.shadow),D.attr({"clip-rect":l[v?
"clip-canvas-init":"clip-canvas"]}),v&&D.animate({"clip-rect":l["clip-canvas"]},v,"normal"),p.push(g));v&&ia.attr({opacity:0}).animate({opacity:1},v,"normal",c.getAnimationCompleteFn());a.visible=!1!==b.visible;return a},drawPlotLineLabel:function(a,b,c,d,e,g){var h=this.options,l=h.chart,m=this.paper,n=this.layers,p=h.plotOptions.series.dataLabels.style,h=1===l.rotateValues?270:0,q=this.canvasHeight,r=this.canvasTop,t=a.data,w=t[c],A=a.items[c],z=T(w.valuePosition,"auto").toLowerCase();a=this.logic.defaultSeriesType;
var v=A.graphic,D=w.marker,v=D&&D.enabled?v&&"image"==v.type&&.5*v.attr("height")||D&&D.radius-3:0,l=l.valuePadding+2+v;b=!1===b.visible?"hidden":"visible";v=A.dataLabel;g=g||n.datalabels;switch(z){case "above":c=0;break;case "below":c=1;break;default:n=t[c-1]||{},t=t[c+1]||{},c=c?n.y>w.y?1:(null==n.y&&t.y)>w.y?1:0:0}n=w.displayValue;U(n)&&n!==L?(v?h&&v.attr("transform",["r",360-h]):v=A.dataLabel=m.text(g).attr({"class":"fusioncharts-label",text:n,fill:p.color,"text-bound":[p.backgroundColor,p.borderColor,
p.borderThickness,p.borderPadding,p.borderRadius,p.borderDash],"font-weight":p.fontWeight,"font-style":p.fontStyle,"font-family":p.fontFamily,"font-size":p.fontSize,"line-height":p.lineHeight}),v.attr({title:w.originalText||"",fill:p.color}),A._state&&A._state.labelWidth||(g=v.getBBox(),A._state={labelWidth:g.width,labelHeight:g.height}),m=p=h?A._state.labelWidth:A._state.labelHeight,g=e-r,q=r+q-e,m=m+l+4,r=.5*p+l,/bubble/i.test(a)||(c?q>m?(e+=r,w._valueBelowPoint=1):g>m&&(e-=r,w._valueBelowPoint=
0):g>m?(e-=r,w._valueBelowPoint=0):q>m&&(e+=r,w._valueBelowPoint=1)),v.attr({x:d,y:e,visibility:b}).data("isBelow",w._valueBelowPoint),h&&v.attr("transform","T0,0,R"+h)):v&&v.attr({text:L});return v},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=[]),g=this.canvasTop,h=this.canvasLeft,l={right:"end",left:"start",undefined:"start"},m,n,p;c--;)p=b[c],m=
p.style,n={fontFamily:m.fontFamily,fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fill:m.color},U(p.html)&&p.html!==L&&(e[c]=a.text(d).attr({text:p.html,x:parseInt(m.left,10)+h,y:parseInt(m.top,10)+g,"text-anchor":l[p.textAlign],"vertical-align":p.vAlign}).css(n))}},b["renderer.root"]);b("renderer.piebase",{isHovered:!1,getPlotData:function(a,b){var c=this.datasets[0],d=c.data[a],c=c.userData||(c.userData=[]),e,g;if(c[a])c=c[a];else{c=c[a]={};for(g in d)"object"!==
typeof(e=d[g])&&"function"!==typeof e&&0!==g.indexOf("_")&&(c[g]=e);c.value=c.y;c.label=c.name;delete c.y;delete c.total;delete c.doNotSlice;delete c.name;delete c.centerAngle;delete c.showInLegend}c.sliced=b;return c},redrawDataLabels:function(a){var b=a.elements.plots[0];a.placeDataLabels(!0,b.items,b);return{}},sliceInOtherPies:function(a){var b=this.options.series[0],c=b.plot.items,d=c.length,e=0,g;for(b.enableMultiSlicing=!0;d--;)d!==a&&(g=c[d]).sliced&&++e&&this.plotGraphicClick.call(g);b.enableMultiSlicing=
!1;return!!e},plotGraphicClick:function(a){var b=this.graphic||this,c=b.plotItem||b.data("plotItem"),d=c.seriesData,e=c.chart,g=e.logic.chartInstance,h=c.index,l=e.options.series[0].enableMultiSlicing,m=d.data[c.index].doNotSlice,n=c.slicedTranslation,p,q;!d.isRotating&&wa.call(b,e,a);if(!(d.isRotating||d.singletonCase||m||(b=!l&&e.sliceInOtherPies(h),(a=c.sliced)&&b)))return b=c.graphic,d=c.connector,l=c.dataLabel,n="object"===typeof n?"t"+n:n,m=c.connectorPath,p=(a?-1:1)*c.transX,q=(a?-1:1)*c.transY,
v.raiseEvent("slicingStart",{slicedState:a,data:e.getPlotData(h,a)},g),b.animate({transform:a?"t0,0":n},200,"easeIn",function(){v.raiseEvent("slicingEnd",{slicedState:c.sliced,data:e.getPlotData(h,c.sliced)},g)}),l&&l.x&&l.animate({x:l.x+(a?0:p)},200,"easeIn"),m&&(m[1]+=p,m[2]+=q,m[4]+=p,m[6]+=p,d.animate({path:m},200,"easeIn")),a=c.sliced=!a,b={hcJSON:{series:[]}},b.hcJSON.series[0]={data:n=[]},n[h]={sliced:a},w(g.jsVars._reflowData,b,!0),a},plotDragStart:function(a,b,c){var d=this.data("plotItem"),
e=d.chart,d=d.seriesData,g=-e.datasets[0].startAngle*Qa;e.options.series[0].enableRotation&&(a=m.call(c,a,b,d.pieCenter,d.chartPosition),d.dragStartAngle=a,d.startingAngleOnDragStart=g)},plotDragEnd:function(){var a=this.data("plotItem"),b=a.chart,c=a.seriesData,a=-b.datasets[0].startAngle*Qa,d={hcJSON:{series:[{startAngle:a}]}};b.disposed||(w(b.logic.chartInstance.jsVars._reflowData,d,!0),b.rotate(c,b.options.series[0]));c.isRotating&&(setTimeout(function(){c.isRotating=!1},0),v.raiseEvent("RotationEnd",
{startingAngle:D(a,!0),changeInAngle:a-c.startingAngleOnDragStart},b.logic.chartInstance));!b.isHovered&&b.onPlotHover(this,!1)},plotDragMove:function(a,b,c,d,e){a=this.data("plotItem");var g=a.chart,h=a.seriesData,l=g.options.series;l[0].enableRotation&&!h.singletonCase&&(h.isRotating||(h.isRotating=!0,v.raiseEvent("RotationStart",{startingAngle:D(h.startingAngleOnDragStart,!0)},g.logic.chartInstance)),c=m.call(e,c,d,h.pieCenter,h.chartPosition),l[0].startAngle+=c-h.dragStartAngle,h.dragStartAngle=
c,h.moveDuration=0,c=(new Date).getTime(),!h._lastTime||h._lastTime+h.timerThreshold<c)&&(setTimeout(function(){g.rotate(h,l[0])},0),h._lastTime=c)},plotMouseDown:function(){(this.plotItem||this.data("plotItem")).seriesData.isRotating=!1},plotMouseUp:function(a){var b=this.plotItem||this.data("plotItem"),c=b.chart,d=b.seriesData;K.supportsTouch&&!d.isRotating&&c.plotGraphicClick.call(b,a)},plotRollOver:function(a){var b=this.plotItem||this.data("plotItem"),c=b.chart,d,e;b.seriesData.isRotating||(wa.call(this,
c,a,"DataPlotRollOver"),c.onPlotHover(this,!0));c.isHovered=!0;(a=b.innerDiameter)&&(d=b.centerLabelConfig)&&(e=d.label)&&c.drawDoughnutCenterLabel(e,b.center[0],b.center[1],a,a,d,!1)},plotRollOut:function(a){var b=this.plotItem||this.data("plotItem"),c=b.chart,d=c.options.series[0],e,g;b.seriesData.isRotating||(wa.call(this,c,a,"DataPlotRollOut"),c.onPlotHover(this,!1));c.isHovered=!1;(a=b.innerDiameter)&&(e=d.centerLabelConfig)&&((g=e.label)||!g)&&c.drawDoughnutCenterLabel(g,b.center[0],b.center[1],
a,a,e,!1)},onPlotHover:function(a,b){var c=a.data("plotItem"),d=c.rolloverProperties,e=b?d.color:c.color,g=b?d.borderWidth:c.borderWidth,h=b?d.borderColor:c.borderColor;d&&c.graphic.attr({fill:da(e),"stroke-width":g,stroke:h})},getEventArgs:function(a){a=a||{};return{datasetName:a.label,datasetIndex:a.originalIndex,id:a.userID,visible:!0,label:a.label,value:a.value,percentValue:a.percentage,tooltext:a.toolText,link:a.link,sliced:a.sliced}},legendClick:function(a){var b=a.chart;b.elements.plots[0].isRotating=
!1;b.plotGraphicClick.call(a)},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(g,h,l,m){var n=this.options.plotOptions,p=n.pie,t=this.canvasLeft+.5*this.canvasWidth,w=this.canvasTop+.5*this.canvasHeight,A=this.smartLabel,v=n.series.dataLabels,z=v.style,D=q(ab(parseFloat(z.lineHeight)),12),D=r(v.placeLabelsInside,1===h.length?!0:!1),n=v.skipOverlapLabels,
H=v.manageLabelOverflow,G=v.connectorPadding,K=v.distance,N=m&&m.metrics||[t,w,p.size,p.innerSize||0],I=N[1],J=N[0];m=.5*N[2];var L=[[],[],[],[]],R=this.canvasLeft,P=this.canvasTop,p=this.canvasWidth,K=l.labelsRadius||(l.labelsRadius=m+K),w=t=parseInt(z.fontSize,10),Q=w/2,G=[G,G,-G,-G];l=l.labelsMaxInQuadrant||(l.labelsMaxInQuadrant=Ha(K/w));var v=v.isSmartLineSlanted,N=N[3]/2,T,U,s,u,B,F,f,V,O,W,fa,X,Y,ca,da,ia,ja,ka,pa,wa;g||A.setStyle(z);if(1==h.length&&!N&&D)u=h[0],(da=u.dataLabel)&&da.show(),
u.slicedTranslation=[R,P],da&&(da.attr({visibility:Ta,align:"middle",transform:["t",J,I+Q-2]}),da.x=J);else if(D)wa=N+(m-N)/2,aa(h,function(a){(da=a.dataLabel)&&da.show();da&&(Y=a.angle,X=I+wa*za(Y)+Q-2,V=J+wa*Da(Y),da.x=V,da._x=V,da.y=X,a.sliced&&(pa=a.slicedTranslation,ja=pa[0]-R,ka=pa[1]-P,V+=ja,X+=ka),da.attr({visibility:Ta,align:"middle",transform:["t",V,X]}))});else{aa(h,function(a){(da=a.dataLabel)&&da.show();da&&(Y=a.angle%Ya,0>Y&&(Y=Ya+Y),ia=0<=Y&&Y<Ea?1:Y<Na?2:Y<nb?3:0,L[ia].push({point:a,
angle:Y}))});for(h=g=4;h--;){if(n&&(D=L[h].length-l,0<D))for(L[h].sort(a),z=L[h].splice(0,D),D=0,s=z.length;D<s;D+=1)u=z[D].point,u.dataLabel.attr({visibility:"hidden"}),u.connector&&u.connector.attr({visibility:"hidden"});L[h].sort(b)}D=Ra(L[0].length,L[1].length,L[2].length,L[3].length);ca=Ra(La(D,l)*w,K+w);L[1].reverse();for(L[3].reverse();g--;){N=L[g];s=N.length;n||(w=s>l?ca/s:t,Q=w/2);u=s*w;z=ca;for(h=0;h<s;h+=1,u-=w)D=Ja(ca*za(N[h].angle)),z<D?D=z:D<u&&(D=u),z=(N[h].oriY=D)-w;T=c[g];s=ca-(s-
1)*w;z=0;for(h=N.length-1;0<=h;h-=1,s+=w)if(u=N[h].point,Y=N[h].angle,B=u.sliced,da=u.dataLabel,D=Ja(ca*za(Y)),D<z?D=z:D>s&&(D=s),z=D+w,W=(D+N[h].oriY)/2,F=J+e[g]*K*Da(ea.asin(W/ca)),W*=d[g],W+=I,fa=I+m*za(Y),f=J+m*Da(Y),(2>g&&F<f||1<g&&F>f)&&(F=f),V=F+G[g],X=W-Q-2,O=V+G[g],da.x=O,da._x=O,H&&(U=1<g?O-this.canvasLeft:this.canvasLeft+p-O,A.setStyle(u.style),D=q(ab(parseFloat(u.style.lineHeight)),12)+2*ab(parseFloat(u.style.border),12),D=A.getSmartText(u.labelText,U,D),da.attr({text:D.text,title:D.tooltext||
""})),da.y=X,B&&(ja=u.transX,ka=u.transY,V+=ja,F+=ja,f+=ja,fa+=ka,O+=ja),da.attr({visibility:Ta,"text-anchor":T,vAlign:"middle",x:O,y:W}),D=u.connector)u.connectorPath=u=["M",f,fa,"L",v?F:f,W,V,W],D.attr({path:u,visibility:Ta})}}}}()},b["renderer.root"])}]);
FusionCharts.register("module",["private","modules.renderer.js-interface",function(){var d=this,m=d.hcLib,D=d.renderer.getRenderer("javascript"),v=m.hasModule,n=m.loadModule,c=m.getMetaSentence,K=m.moduleCmdQueue,b=m.executeWaitingCommands,H=m.injectModuleDependency,a=m.moduleDependencies,z=m.getDependentModuleName,G,L;G=function(a){var g,e,h,l={},n;a=c(a);for(g in d.core.items)g=d.core.items[g],e=g.chartType(),h=g.options.chartTypeSourcePath+e,(e=g.jsVars)&&e.waitingModule&&g.__state.rendering&&
m.needsModule(a.predicate,h)&&(e.waitingModuleError=!0,e=z(h).concat(e.userModules),e.length&&(e=e[e.length-1],l[e]=m.moduleCmdQueue[e]));for(n in l)b(l[n]);d.raiseError(d.core,"11171116151","run","HC-interface~renderer.load","Unable to load required modules and resources: "+a.key)};L=function(a,b,c){var h=a.args,l=a.options;a._chartMessageStyle={color:h.typeNotSupportedMessageColor||l.baseChartMessageColor,fontFamily:h.typeNotSupportedMessageFont||l.baseChartMessageFont,fontSize:h.typeNotSupportedMessageFontSize||
l.baseChartMessageFontSize};d.hcLib.createChart(a,b,"stub",c,l.typeNotSupportedMessage)};m.eventList=d.extend(d.legacyEventList,{loaded:"FC_Loaded",dataloaded:"FC_DataLoaded",rendered:"FC_Rendered",drawcomplete:"FC_DrawComplete",dataxmlinvalid:"FC_DataXMLInvalid",nodatatodisplay:"FC_NoDataToDisplay",exported:"FC_Exported"});m.raiseEvent=d.raiseEventWithLegacy;a.charts=d.extend(a.charts||{},{column2d:0,column3d:0,bar2d:0,bar3d:0,pie2d:0,pie3d:0,line: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=d.extend(a.powercharts||{},{spline:0,splinearea:0,msspline:0,mssplinearea:0,mssplinedy: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,logstackedcolumn2d:0,radar:0,dragnode:0,candlestick:0,selectscatter:0,dragcolumn2d:0,dragline:0,dragarea:0,boxandwhisker2d:0,kagi:0,heatmap:0});a.widgets=d.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=d.extend(a.maps||{},{});d.extend(D,{render:function(a,b){var c=this.chartType(),h=this.options.chartTypeSourcePath+c,l=this.jsVars,n=this.__state,w=m.chartAPI,p=this.options,G=this.args,t=this.options.showChartLoadingMessage,
fa,q;fa=z(h).concat(l.userModules);l.isResizing&&(l.isResizing=clearTimeout(l.isResizing));l.hcObj&&l.hcObj.destroy&&l.hcObj.destroy();if(w[c]){if(w[n.lastRenderedType]&&n.lastRenderedType!==c)for(q in d.raiseEvent("chartTypeChanged",{previousType:n.lastRenderedType,newType:c},this),w[n.lastRenderedType].eiMethods)delete this[q];n.lastRenderedType=c;n.lastRenderedSrc=this.src;!l.waitingModuleError&&m.raiseEvent("internal.loaded",{type:c,triggeredModuleLoad:l.drLoadAttempted||l.waitingModule},this,
[this.id]);delete l.waitingModule;delete l.waitingModuleError;delete l.drLoadAttempted;d.hcLib.createChart(this,a,c,b)}else{if(c&&v(fa)){if(l.drLoadAttempted){d.raiseError(this,11112822001,"run","HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");L(this,a,b);return}H(h)&&(fa=z(h).concat(l.userModules));l.drLoadAttempted=!0}else{if(!fa.length){L(this,a,b);return}if(l.waitingModuleError){L(this,a,b);delete l.waitingModule;delete l.waitingModuleError;return}}(c=
K[fa[fa.length-1]])?(c.push({cmd:"render",obj:this,args:arguments}),l.waitingModule||(l=t?p.PBarLoadingText||p.loadMessage:"",this._chartMessageStyle={color:G.loadMessageColor||p.baseChartMessageColor,fontFamily:G.loadMessageFont||p.baseChartMessageFont,fontSize:G.loadMessageFontSize||p.baseChartMessageFontSize},d.hcLib.createChart(this,a,"stub",void 0,l),D.load.call(this,a,b))):(d.raiseError(this,12080515551,"run","HC-interface~renderer.render","Unregistered module in dependentModule definition."),
this._chartMessageStyle={color:G.renderErrorMessageColor||p.baseChartMessageColor,fontFamily:G.renderErrorMessageFont||p.baseChartMessageFont,fontSize:G.renderErrorMessageFontSize||p.baseChartMessageFontSize},d.hcLib.createChart(this,a,"stub",void 0,p.renderErrorMessage))}},update:function(a){var b=this.ref,c=this.jsVars;c.hcObj&&c.hcObj.destroy&&c.hcObj.destroy();c.isResizing&&(c.isResizing=clearTimeout(c.isResizing));void 0===a.error?(delete c.stallLoad,delete c.loadError,this.isActive()?this.src!==
this.__state.lastRenderedSrc?this.render():d.hcLib.createChart(this,c.container):this.__state.rendering&&!c.waitingModule&&d.hcLib.createChart(this,c.container)):(this.isActive()&&"function"===typeof b.showChartMessage&&b.showChartMessage("InvalidXMLText"),delete c.loadError)},resize:function(a){var b=this.ref,c,h=this.jsVars;b&&b.resize&&(h.isResizing&&(h.isResizing=clearTimeout(h.isResizing)),h.isResizing=setTimeout(function(){c=d.normalizeCSSDimension(a.width,a.height,b);void 0!==a.width&&(b.style.width=
c.width);void 0!==a.height&&(b.style.height=c.height);b.resize();delete h.isResizing},0))},dispose:function(){var a,b=this.jsVars;b.isResizing&&(b.isResizing=clearTimeout(b.isResizing));b.instanceAPI&&b.instanceAPI.dispose&&(b.instanceAPI.dispose(),delete b.instanceAPI);if(a=this.ref)d.purgeDOM(a),a.parentNode&&a.parentNode.removeChild(a);b.container=null;m.cleanupWaitingCommands(this)},load:function(a,c){var e=this.jsVars,h=this.chartType(),l=d.hcLib.chartAPI[h],h=z(h).concat(e.userModules),v=h[h.length-
1];l||!h||h&&0===h.length?(delete e.waitingModule,a&&L(this,a||this.ref,c)):e.waitingModule||(e.waitingModule=!0,delete e.waitingModuleError,n(h,function(){delete e.waitingModule;b(m.moduleCmdQueue[v])},G,this))}})}]);
FusionCharts.register("module",["private","modules.api.dynamicchartattributes",function(){var d=this;d.extend(d.core,{setChartAttribute:function(m,D){var v,n,c,K;if("string"===typeof m)v=m,m={},m[v]=D;else if(null===m||"object"!==typeof m)return;K=0;if(c=(v=this.getChartData(d.dataFormats.JSON))&&(v.chart||v.graph||v.map)){for(n in m)K+=1,null===m[n]?delete c[n.toLowerCase()]:c[n.toLowerCase()]=m[n];0<K&&("undefined"===typeof c.animation&&(c.animation="0"),this.setChartData(v,d.dataFormats.JSON))}else d.raiseError(this,
"2105141421","run","#setChartAttribute()","Could not retrieve attribute list. Is data ready?")},getChartAttribute:function(m){var D=this.getChartData(d.dataFormats.JSON),D=D&&(D.chart||D.graph||D.map),v,n;if(0===arguments.length||void 0===m||void 0===D)return D;if("string"===typeof m)v=D[m.toString().toLowerCase()];else if(m instanceof Array)for(v={},n=0;n<m.length;n+=1)v[m[n]]=D[m[n].toString().toLowerCase()];else d.raiseError(this,"25081429","param","~getChartAttribute()",'Unexpected value of "attribute"');
return v}},!0)}]);
FusionCharts.register("module",["private","api.linkmanager",function(){var d=this,m=d.FusionChartsDOMInsertModes,D={},v=function(c,m){this.items={};this.root=c;this.parent=m;m instanceof d.core?this.level=this.parent.link.level+1:(D[c.id]=[{}],this.level=0)},n=function(c,d){return(c.options.containerElement===d.options.containerElement||c.options.containerElementId===d.options.containerElementId)&&c.options.insertMode===m.REPLACE};d.policies.link=["link",void 0];v.prototype.configuration=function(){return D[this.root.id][this.level]||
(D[this.root.id][this.level]={})};d.extend(d.core,{configureLink:function(c,m){var b;if(c instanceof Array){for(b=0;b<c.length;b+=1)"object"!==typeof D[this.link.root.id][b]&&(D[this.link.root.id][b]={}),d.extend(D[this.link.root.id][b],c[b]);D[this.link.root.id].splice(c.length)}else"object"===typeof c?("number"!==typeof m&&(m=this.link.level),void 0===D[this.link.root.id][m]&&(D[this.link.root.id][m]={}),d.extend(D[this.link.root.id][m],c)):d.raiseError(this,"25081731","param","~configureLink()",
"Unable to update link configuration from set parameters")}},!0);d.addEventListener("beforeInitialize",function(c){c.sender.link instanceof v?c.sender.link.parent instanceof d.core&&(c.sender.link.parent.link.items[c.sender.id]=c.sender):c.sender.link=new v(c.sender)});d.addEventListener("linkedChartInvoked",function(c,m){var b=c.sender,D=b.clone({dataSource:m.data,dataFormat:m.linkType,link:new v(b.link.root,b)},!0),a=m.alias,z;a&&(!D.typeSource&&D.swfUrl&&(D.typeSource=D.swfUrl.replace(/(.*?)?[^\/]*\.swf.*?/ig,
"$1")),D.type=a);b.args&&0!==parseInt(b.args.animate,10)&&delete D.animate;d.extend(D,b.link.configuration());d.raiseEvent("beforeLinkedItemOpen",{level:b.link.level},b.link.root,void 0,function(){d.core.items[D.id]instanceof d.core&&d.core.items[D.id].dispose();z=new d.core(D);n(z,b)||b.options.overlayButton&&b.options.overlayButton.message||("object"!==typeof b.options.overlayButton&&(b.options.overlayButton={}),b.options.overlayButton.message="Close");z.render();d.raiseEvent("linkedItemOpened",
{level:b.link.level,item:z},b.link.root)})});d.addEventListener("overlayButtonClick",function(c,m){if("LinkManager"===m.id){var b=c.sender,v=b.link.level-1,a=b.link.parent,z=b.link.root;d.raiseEvent("beforeLinkedItemClose",{level:v,item:b},z,b,function(){setTimeout(function(){d.core.items[b.id]&&b.dispose();d.raiseEvent("linkedItemClosed",{level:v},z)},0);a.disposed||a.isActive()||!n(b,a)||a.render()})}});d.addEventListener("Loaded",function(c){c=c.sender;var m;c&&void 0!==c.link&&c.link.root!==c&&
c.link.parent instanceof d.core&&(c.ref&&"function"===typeof c.ref.drawOverlayButton?(m=d.extend({show:!0,id:"LinkManager"},c.link.parent.options.overlayButton),d.extend(m,c.link.parent.link.configuration().overlayButton||{}),c.ref.drawOverlayButton(m)):d.raiseWarning(c,"04091602","run","::LinkManager^Loaded","Unable to draw overlay button on object. -"+c.id))});d.addEventListener("beforeDispose",function(c){var m=c.sender;m&&m.link instanceof v&&(m&&m.link&&m.link.parent instanceof d.core&&m.link.parent.link&&
m.link.parent.link.items&&delete m.link.parent.link.items[c.sender.id],delete D[m.id])})}]);
FusionCharts.register("module",["private","modules.renderer.js-thememanager",function(){var d=this,m,D,v,n=/\s+!important$/,c=/\\!important$/,K=function(a,b){for(var c=b.length,d=-1;c--;)if(a===b[c]){d=c;break}return d},b=function(a,c,d,l,m){var n,p,v,t;m?(l.push(a),m.push(c)):(l=[a],m=[c]);if(c instanceof Array)for(n=0;n<c.length;n+=1){try{p=a[n],v=c[n]}catch(z){continue}if("object"!==typeof v)d&&void 0===v||(a[n]=v);else{if(null===p||"object"!==typeof p)p=a[n]=v instanceof Array?[]:{};t=K(v,m);
-1!==t?p=a[n]=l[t]:b(p,v,d,l,m)}}else for(n in c){try{p=a[n],v=c[n]}catch(q){continue}if(null!==v&&"object"===typeof v)if(t=Object.prototype.toString.call(v),"[object Object]"===t){if(null===p||"object"!==typeof p)p=a[n]={};t=K(v,m);-1!==t?p=a[n]=l[t]:b(p,v,d,l,m)}else"[object Array]"===t?(null!==p&&p instanceof Array||(p=a[n]=[]),t=K(v,m),-1!==t?p=a[n]=l[t]:b(p,v,d,l,m)):a[n]=v;else a[n]=v}return a},H=function(a,c,d){if("object"!==typeof a&&"object"!==typeof c)return null;if("object"!==typeof c||
null===c)return a;"object"!==typeof a&&(a=c instanceof Array?[]:{});b(a,c,d);return a},a=function(a){var b={important:!1,str:""};if(!a)return b;a=a.toString();n.test(a)?(a=a.replace(n,""),b.important=!0):(a=a.replace(c,"!imporant"),b.important=!1);b.str=a;return b},z=function(a,b){var c,d,m,n,p,v,t=0,A=0;for(c in a)if(d=a[c],d instanceof Array)for(v=d.length,p=0;p<v;p+=1){if(n=d[p],"object"===typeof n)if("category"===c)if("true"===n.vline){if(m=b.component("vline",t,n))G(n,m),t+=1}else{if(m=b.component("category",
A,n,v))G(n,m),A+=1}else if(m=b.component(c,p,n,v))G(n,m),z(n,m)}else"object"===typeof d&&(m=b.component(c,null,d))&&(G(d,m),z(d,m))},G=function(b,c){var d=c.getAll(),l,m;for(l in d)m=d[l].toString(),m=a(m),m.important?b[l.toLowerCase()]=m.str:void 0===b[l.toLowerCase()]&&(b[l.toLowerCase()]=m.str)},L=function(a,b){"geo"===b.defaultSeriesType&&A.call(this,a,b)},A=function(a,b){var c=a.sender,l=c.getChartData(d.dataFormats.JSON,!0),m;l.error||((m=l.data.chart.theme)?v.themify(m,c,c.chartType(),l.data,
"geo"===b.defaultSeriesType&&"geo"):c.jsVars.themeObject&&c.jsVars.themeObject.dispose())};m=function(){this.themeStore={}};m.prototype={constructor:m,add:function(a){for(var b=0,c=a.length,d;b<c;b+=1)(d=a[b].name)&&(this.themeStore[d]=a[b])},themify:function(a,b,c,l,m){var n=b.jsVars,p=a.split(","),v=[],t=p.length,z,q;if(t){for(q=0;q<t;q+=1){z=this.themeStore;var G;G=p[q];G=G.replace(/^\s\s*/,"");for(var H=/\s/,K=G.length;H.test(G.charAt(K-=1)););G=G.slice(0,K+1);(z=z[G])&&v.push(this.evaluateThemeJSON(z.theme,
b,c,m))}v.length?(n.themeObject=new D(v,b,!1,l),this.applyTheme(b),b.addEventListener("chartTypeChanged",A),b.addEventListener("internal.drawstart",L)):d.raiseWarning(b,"14051100501","run","api.themes~themify()",'The theme "'+a+'" requested has not been registered.')}},evaluateThemeJSON:function(a,b,c,d){var m={},n=b.jsVars,p=function(a){var b,c;for(b in a)c=a[b],m[b]=c instanceof Array?H(m[b]||[],c):"object"===typeof c?H(m[b]||{},c):c};c=c||b.chartType();n.themeObject&&a!==n.themeObject&&(n.themeObject.dispose(),
delete n.themeObject);p(a.base);d&&a[d]&&p(a[d]);c&&a[c]&&p(a[c]);return m},applyTheme:function(a){a=a.jsVars.themeObject;var b=a.getThemedJSONData().data;b&&z(b,a)}};D=function(a,b,c,d){this.themeArray=a;this.themeComponents={};this.base={};this.chartInstance=b;this.isChildInstance=Boolean(c);this.themedData=c?null:H({},d);this.length=a.length;b=0;for(c=a.length;b<c;b+=1)this.parse(a[b])};D.prototype={constructor:D,pushTheme:function(a){a&&(this.themeArray.push(a),this.parse(a),this.length+=1)},
popTheme:function(){},parse:function(b){var c=this.themeComponents,d=this.chartInstance,l=this.base,m,n,p;for(n in b)if("string"===typeof b[n]||"number"===typeof b[n])if(l[n]){if(m=a(b[n]),p=a(l[n]),m.important||!p.important)l[n]=b[n]}else l[n]=b[n];else c[n]||(c[n]=[]),m=c[n],b[n]instanceof Array?m.push(H([],b[n])):"object"===typeof b[n]?m.push(new D([b[n]],d,!0)):"function"===typeof b[n]&&m.push(b[n])},merge:function(b){var c=this.base,d=b.base,l=this.themeComponents,m=b.themeComponents,n,p,v;for(v in d)if(n=
a(c[v]),p=a(d[v]),!n.important||p.important)c[v]=d[v];for(v in m)l[v]=l[v]?l[v].concat(m[v]):[].concat(m[v]);this.length+=b.length},get:function(a){return this.base[a]},getAll:function(){return H({},this.base)},component:function(a,b,c,d){var m=this.themeComponents,n=this.chartInstance,p=new D([],n,!0),v,t,z;t=m[a];if(!t)return null;a=0;for(m=t.length;a<m;a+=1)z=t[a],"function"===typeof z?(b=b||0,p.pushTheme(z.call(n,b,c,d))):z instanceof Array?(b=b||0,v=z.length,b%=v,v=z[b],v instanceof D?p.merge(v):
"function"===typeof v?p.pushTheme(v.call(n,b,c,d)):p.pushTheme(v)):z instanceof D?p.merge(z):p.pushTheme(z);return p},getThemedJSONData:function(){return{data:this.themedData}},dispose:function(){var a=this.themeComponents,b=this.chartInstance,c,d;for(c in a)if(d=a[c].length){for(;d--;)a[c][d].dispose&&a[c][d].dispose();delete a[c]}this.isChildInstance||(b.removeEventListener("chartTypeChanged",A),b.removeEventListener("internal.drawstart",L));this.dataWithoutTheme=this.isChildInstance=this.themeArray=
this.base=this.chartInstance=this.themeComponents=null}};v=new m;d.registrars.theme=d.registerTheme=function(a){a&&("[object Array]"!==Object.prototype.toString.call(a)&&(a=[a]),v.add(a))};d.addEventListener("beforeDataUpdate",function(a,b){var c=a.sender,l=d.core.transcodeData(b.data,b.format,d.dataFormats.JSON),m=l.chart&&l.chart.theme;m?v.themify(m,c,c.args.type,l):c.jsVars.themeObject&&(c.jsVars.themeObject.dispose(),delete c.jsVars.themeObject)})}]);
FusionCharts.register("theme",{name:"default",theme:{base:{chart:{labelDisplay:"stagger !important",caption:"Theme Caption \\!important",canvasBgColor:"#56EF22",borderThickness:"5 !important",borderColor:"#E60539",baseFontColor:"#781129"},categories:[{fontColor:"#0F4F40",fontSize:15,category:function(d){return{showLabel:d%2?0:1}},vline:{color:"#000000",thickness:2}}],dataset:[{color:"#8C3146",data:function(d,m){8==d&&(m.value="");return{color:32E3>Number(m.value)?"#8C3146":"#FF0000",alpha:"100"}}}],
trendlines:[{line:function(d){return d?{color:"#ff0000",thickness:3}:{color:"#ffff00",thickness:3}}}]},pie2d:{chart:{bgColor:"#FF0000"}},msline:{chart:{canvasBgColor:"#ff0000"}},geo:{chart:{canvasBgColor:"#0000ff"}},world:{chart:{canvasBgColor:"#00ff00"}}}});
