/*
 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.4.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,k=d.document,B=d.navigator,v={window:d},l=v.modules={},c=v.interpreters={},K=Object.prototype.toString,b=/msie/i.test(B.userAgent)&&!d.opera,J=/loaded|complete/,a=!1,D=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},F=function(a,c){var b,g;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?[]:{}),F(a[b],c[b]));else for(b in c)"object"===typeof c[b]?(g=K.call(c[b]),"[object Object]"===g?("object"!==typeof a[b]&&(a[b]={}),F(a[b],c[b])):"[object Array]"===g?(a[b]instanceof Array||(a[b]=[]),F(a[b],c[b])):a[b]=c[b]):a[b]=c[b];return a};v.extend=function(a,c,b,g){var n;b&&a.prototype&&(a=a.prototype);if(!0===g)F(a,c);else for(n in c)a[n]=c[n];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],chartType:["type",void 0]},attributes:{lang:["lang","EN"],"class":["className","FusionCharts"],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 g,n,s;for(n in c)if(v.policies[n]instanceof Array)s=b[c[n][0]],a[n]=void 0===s?c[n][1]:s;else for(g in"object"!==typeof a[n]&&(a[n]={}),c[n])s=b[c[n][g][0]],a[n][g]=void 0===s?c[n][g][1]:s};v.parseCommands=function(a,b,e){var g,n;"string"===typeof b&&(b=c[b]||[]);g=0;for(n=b.length;g<n;g++)a[b[g]]=e[g];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(l[a[1]])return;l[a[1]]={};a[3]instanceof Array&&(v.core.version[a[1]]=a[3]);return"function"===typeof a[2]?a[2].call(v,l[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","4","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);J.test(k.readyState)||k.loaded?(v.ready=!0,setTimeout(D,1)):function(){function c(){arguments.callee.done||(arguments.callee.done=!0,e&&clearTimeout(e),a||(d.FusionMaps&&d.FusionMaps.legacy&&v.core(["private","modules.core.geo",d.FusionMaps.legacy,d.FusionMaps.version]),d.FusionMaps=v.core),setTimeout(D,1))}function w(){J.test(k.readyState)?
c():e=setTimeout(w,10)}var e,g;k.addEventListener?k.addEventListener("DOMContentLoaded",c,!1):k.attachEvent&&d.attachEvent("onLoad",c);if(b)try{"https:"===d.location.protocol?k.write('<script id="__ie_onload_fusioncharts" defer="defer" src="//:">\x3c/script>'):k.write('<script id="__ie_onload_fusioncharts" defer="defer" src="javascript:void(0)">\x3c/script>'),g=k.getElementById("__ie_onload_fusioncharts"),g.onreadystatechange=function(){"complete"==this.readyState&&c()}}catch(n){}/WebKit/i.test(B.userAgent)&&
(e=setTimeout(w,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,k=d.window,B={type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"},v=function(c,l,b,J,a,D){var F="#"+l+" "+(c?c.id:"unknown-source")+J+" "+D+" >> ";a instanceof Error?(a.name=B[b],a.module="FusionCharts"+J,a.level=D,a.message=F+a.message,F=a.message,k.setTimeout(function(){throw a;
},0)):F+=a;l={id:l,nature:B[b],source:"FusionCharts"+J,message:F};d.raiseEvent(D,l,c);if("function"===typeof k["FC_"+D])k["FC_"+D](l)},l;d.raiseError=function(c,d,b,l,a){v(c,d,b,l,a,"Error")};d.raiseWarning=function(c,d,b,l,a){v(c,d,b,l,a,"Warning")};l={outputHelpers:{text:function(c,d){l.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){l.outputTo(c.eventId,c.sender.id,c.eventType,d)}},outputHandler:function(c,k){"function"!==typeof l.outputTo?d.core["debugger"].outputFailed=!0:(d.core["debugger"].outputFailed=!1,l.currentOutputHelper(c,k))},currentOutputHelper:void 0,outputTo:void 0,enabled:!1};l.currentOutputHelper=l.outputHelpers.text;d.extend(d.core,{"debugger":{syncStateWithCharts:!0,outputFormat:function(c){return c&&"function"===typeof c.toLowerCase&&"function"===typeof l.outputHelpers[c=c.toLowerCase()]?(l.currentOutputHelper=
l.outputHelpers[c],!0):!1},outputTo:function(c){"function"===typeof c?l.outputTo=c:null===c&&(d.core["debugger"].enable(!1),delete l.outputTo)},enable:function(c,k,b){var J;"object"===typeof c&&1===arguments.length&&(J=c,c=J.state,k=J.outputTo,b=J.outputFormat);"function"===typeof c&&("string"!==typeof k||2!==arguments.length&&!J||(b=k),k=c,c=!0);if("boolean"===typeof c&&c!==l.enabled)d.core[(l.enabled=c)?"addEventListener":"removeEventListener"]("*",l.outputHandler);"function"===typeof k&&(l.outputTo=
k);d.core["debugger"].outputFormat(b);return l.enabled},enableFirebugLite:function(){var c;k.console&&k.console.firebug?d.core["debugger"].enable(k.console.log,"verbose"):((c=k.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(k.console.log,"verbose")},"{ startOpened: true }",!0,!0))}},debugMode:{enabled:function(){k.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,k=d.window,B=d.core,v=k.Object.prototype.toString,l=v.call([]),c=function(a,c,b,e){try{a[0].call(c,b,e||{})}catch(g){setTimeout(function(){throw g;},0)}},K=function(a,b,w){if(a instanceof Array)for(var e=0,g;e<a.length;e+=1){if(a[e][1]===b.sender||void 0===a[e][1])g=a[e][1]===b.sender?b.sender:d.core,c(a[e],g,b,w),!0===b.detached&&(a.splice(e,1),e-=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,w){var e,g;if(v.call(a)===l){e=[];for(g=0;g<a.length;g+=1)e.push(b.addListener(a[g],c,w));return e}if("string"!==typeof a)d.raiseError(w||d.core,"03091549","param","::EventTarget.addListener",Error("Unspecified Event Type"));else if("function"!==typeof c)d.raiseError(w||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,w]),c},removeListener:function(a,c,w){var e;if("function"!==typeof c)d.raiseError(w||d.core,"03091560","param","::EventTarget.removeListener",Error("Invalid Event Listener"));else if(a instanceof Array)for(e=0;e<a.length;e+=1)b.removeListener(a[e],c,w);else if("string"!==typeof a)d.raiseError(w||d.core,"03091559","param","::EventTarget.removeListener",Error("Unspecified Event Type"));
else if(a=a.toLowerCase(),a=b.listeners[a],a instanceof Array)for(e=0;e<a.length;e+=1)a[e][0]===c&&a[e][1]===w&&(a.splice(e,1),e-=1)},triggerEvent:function(a,c,w,e,g,n){if("string"!==typeof a)d.raiseError(c,"03091602","param","::EventTarget.dispatchEvent",Error("Invalid Event Type"));else{a=a.toLowerCase();var s={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],s,w);K(b.listeners["*"],s,w);switch(s.prevented){case !0:if("function"===typeof n)try{n.call(e||c||k,s,w||{})}catch(R){setTimeout(function(){throw R;},0)}break;default:if("function"===typeof g)try{g.call(e||c||k,s,w||{})}catch(m){setTimeout(function(){throw m;},0)}}return!0}}},J=d.raiseEvent=function(a,c,w,e,g,n){return b.triggerEvent(a,w,c,e,g,n)},a=d.legacyEventList={},D={};d.disposeEvents=function(a){var c,w;for(c in b.listeners)for(w=0;w<b.listeners[c].length;w+=1)b.listeners[c][w][1]===
a&&b.listeners[c].splice(w,1)};d.raiseEventWithLegacy=function(c,b,w,e,g,n,s){var d=a[c];J(c,b,w,g,n,s);d&&"function"===typeof k[d]&&setTimeout(function(){k[d].apply(g||k,e)},0)};d.raiseEventGroup=function(a,c,b,e,g,n,s){var d=e.id,m=a+d;D[m]?(clearTimeout(D[m]),delete D[m]):d&&m?D[m]=setTimeout(function(){J(c,b,e,g,n,s);delete D[m]},0):J(c,b,e,g,n,s)};d.addEventListener=function(a,c){return b.addListener(a,c)};d.removeEventListener=function(a,c){return b.removeListener(a,c)};d.extend(B,{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?(B.ready=function(a,g){"function"===typeof a&&setTimeout(function(){a.call(g||B,c||B)},0)},B.ready(a,b)):"function"===typeof a&&B.addEventListener("ready",function(){B.ready(a,c,b)});return this}});B.on=B.addEventListener;d.extend(B.prototype,{addEventListener:function(a,c){return b.addListener(a,c,this)},removeEventListener:function(a,c){return b.removeListener(a,c,this)}});
B.prototype.on=B.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,k=d.window,B=parseFloat(k.navigator.appVersion.split("MSIE")[1]),v=5.5<=B&&7>=B?!0:!1,l="file:"===k.location.protocol,c=k.ActiveXObject,K=(!c||!l)&&k.XMLHttpRequest,b={objects:0,xhr:0,requests:0,success:0,failure:0,idle:0},J=function(){var a;if(K)return J=function(){b.xhr++;return new K},J();try{a=new c("Msxml2.XMLHTTP"),J=function(){b.xhr++;return new c("Msxml2.XMLHTTP")}}catch(d){try{a=new c("Microsoft.XMLHTTP"),
J=function(){b.xhr++;return new c("Microsoft.XMLHTTP")}}catch(l){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"}};B=d.ajax=function(a,c){this.onSuccess=a;this.onError=c;this.open=!1;b.objects++;b.idle++};d.extend(B.prototype,{headers:d.core.ajax.headers,
transact:function(a,c,F,C){var w=this,e=w.xmlhttp,g=w.headers,n=w.onError,s=w.onSuccess;a="POST"===a;var R,m;if(!e||v)e=J(),w.xmlhttp=e;e.onreadystatechange=function(){try{4===e.readyState&&(!e.status&&l||200<=e.status&&300>e.status||304===e.status||1223===e.status||0===e.status?(s&&s(e.responseText,w,C,c),b.success++):n&&(n(Error("XmlHttprequest Error"),w,C,c),b.failure++),b.idle--,w.open=!1)}catch(a){n&&n(a,w,C,c),k.FC_DEV_ENVIRONMENT&&setTimeout(function(){throw a;},0),b.failure++}};try{e.open(a?
"POST":"GET",c,!0);e.overrideMimeType&&e.overrideMimeType("text/plain");if(a)if("string"===typeof F)R=F;else{R=[];for(m in F)R.push(m+"="+(F[m]+"").replace(/\=/g,"%3D").replace(/\&/g,"%26"));R=R.join("&")}else R=null;for(m in g)e.setRequestHeader(m,g[m]);e.send(R);b.requests++;b.idle++;w.open=!0}catch(I){d.raiseError(d.core,"1110111515A","run","XmlHttprequest Error",I.message)}return e},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,k=d.window,B=/(^|[\/\\])(fusioncharts\.js)([\?#].*)?$/ig,v=/[\\\"<>;&]/,l=/^[^\S]*?(sf|f|ht)(tp|tps):\/\//i,c={},K={},b={},J={},a=d.purgeDOM=function(c){var b=c.attributes,e,g;if(b)for(e=b.length-1;0<=e;e-=1)g=b[e].name,"function"===typeof c[g]&&(c[g]=null);if(b=c.childNodes)for(b=b.length,e=0;e<b;e+=1)a(c.childNodes[e])},D=function(a,c,b){var g,n;for(g in a)if(a[g]instanceof Array)c[a[g][0]]=b[g];else for(n in a[g])c[a[g][n][0]]=
b[g][n]},F=/^(FusionCharts|FusionWidgets|FusionMaps)/;d.getScriptBaseUri=function(a){var c=k.document.getElementsByTagName("script"),b=c.length,g,n;for(n=0;n<b;n+=1)if(g=c[n].getAttribute("src"),void 0!==g&&null!==g&&null!==g.match(a))return g.replace(a,"$1")};d.core.options.scriptBaseUri=function(){var a=d.getScriptBaseUri(B);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!==l.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,w,e,g,n){if(!a)return!1;var s=w&&w.success||w,R=w&&w.failure,m,I={type:"script",success:!1},D=function(){J[m]=clearTimeout(J[m]);I.success?s&&s(a,m):R&&R(a,m);d.raiseEvent("externalresourceload",I,d.core)};
n=n?"":d.core.options.scriptBaseUri;m=n+a;d.isXSSSafe(m,!1)||(m="function"===typeof k.encodeURIComponent?k.encodeURIComponent(m):k.escape(m));I.path=n;I.src=m;I.file=a;if(!0===b[m]&&g)return I.success=!0,I.notReloaded=!0,"function"===typeof w&&(w(),d.raiseEvent("externalresourceload",I,d.core)),!0;if(c[m]&&g)return!1;c[m]=!0;K[m]&&K[m].parentNode&&K[m].parentNode.removeChild(K[m]);w=K[m]=k.document.createElement("script");w.type="text/javascript";w.src=m;e&&(w["\v"==="v"?"text":"innerHTML"]=e);"function"===
typeof s&&(b[m]=!1,J[m]=clearTimeout(J[m]),w.onload=function(){b[m]=!0;I.success=!0;D()},w.onerror=function(){b[m]=!1;c[m]=!1;D()},w.onreadystatechange=function(){if("complete"===this.readyState||"loaded"===this.readyState)b[m]=!0,I.success=!0,D()});k.document.getElementsByTagName("head")[0].appendChild(w);"function"===typeof R&&(J[m]=setTimeout(function(){b[m]||D()},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,g,n=d.extend({},this.args,!1,!1);D(d.policies,n,this);D(d.renderer.getRendererPolicy(this.options.renderer),n,this);delete n.id;delete n.animate;delete n.stallLoad;g=n.link;n=d.extend({},n,!1,!1);n.link=g;switch(b){case "object":d.extend(n,a);break;case "boolean":c=a}return c?n:new d.core(n)},isActive:function(){if(!this.ref||k.document.getElementById(this.id)!==this.ref)return!1;try{return F.test(this.ref.signature())}catch(a){return!1}},
chartType:function(a,c){var b=this.src,g=!0===c,n=this.options,s;"string"===typeof a&&(c="object"===typeof c?c:{},b=a.replace(/[\?\#][\s\S]*$/g,""),s=null!==b.match(/\.swf\s*?$/ig),b=b.replace(/\.swf\s*?$/ig,""),n.chartType=b.replace(/^[\s\S]*\//ig,"").replace(/^fcmap_/i,""),n.chartTypeSourcePath=-1===b.indexOf("/")?c.chartTypeSourcePath||this.options.chartTypeSourcePath||d.core.options.chartTypeSourcePath||"":b.replace(/[^\/]*?$/ig,""),this.src=((d.core.options.scriptBaseUri||"")+(n.chartTypeSourcePath||
d.core.options.chartTypeSourcePath||"")).replace(/\/\s*$/g,"")+"/"+n.chartType.replace(/\.swf\s*?$/ig,"")+".swf",s&&(d.raiseWarning(this,"08101320181","comp","FusionCharts#chartType",'Chart type has ".swf" in alias and as such has been deprecated. Please use chart type alias.'),n.chartTypeSourcePath=d.core.options.chartTypeSourcePath||""),void 0!==c.dataSource&&null!==c.dataSource?this.setChartData(c.dataSource,c.dataFormat,c.dataConfiguration):this.isActive()&&!g&&this.render());return(n.chartType||
"").toLowerCase()}},!0);k.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:k.swfobject&&k.swfobject.getObjectById(a)};k.getMapFromId=k.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,k=d.window,B=k.document,v=function(){d.raiseError(this,"25081845","run","::RendererManager",Error("No active renderer"))},l=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)}},J=function(a,c){return"function"===typeof a[c]?function(){return a[c].apply(a,arguments)}:a[c]},a=function(a,c){var b=B.getElementById(a),g=c.id||c.getAttribute("id"),n,s;if(null===b)return!1;if(a===g)return!0;g=c.getElementsByTagName("*");n=0;for(s=g.length;n<s;n++)if(g[n]===b)return!1;return!0},D=/[^\%\d]*$/ig,F;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 g={},n=b.style,s;n.width=a=a.toString?a.toString():"0";n.height=c=c.toString?c.toString():"0";if((g.widthIsRelative=a.match(/^\s*\d*\.?\d*\%\s*$/)&&!a.match(/^\s*0\%\s*$/))&&0===b.offsetWidth)for(s=b;s=s.offsetParent;)if(0<s.offsetWidth){a=(s.offsetWidth*parseFloat(a.match(/\d*/)[0])/100).toString();
break}if((g.heightIsRelative=c.match(/^\s*\d*\.?\d*\%\s*$/)&&!c.match(/^\s*0\%\s*$/))&&20>=b.offsetHeight)for(s=b;s=s.offsetParent;)if(0<s.offsetHeight){c=(s.offsetHeight*parseFloat(c.match(/\d*/)[0])/100).toString();break}g.width=a.replace?a.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):a;g.height=c.replace?c.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):c;n.width=g.width;n.height=g.height;g.pixelWidth=g.widthIsRelative?b.offsetWidth:parseInt(g.width,10)||0;g.pixelHeight=g.heightIsRelative?b.offsetHeight:parseInt(g.height,
10)||0;return g};F=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(),
e;"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(e in K[a.id].prototype)a[e]=K[a.id].prototype[e];for(e in K[a.id].events)a.addEventListener(e,K[a.id].events[e])});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 e,g;if(void 0!==a&&null!==a&&"function"===typeof a.getExternalInterfaceMethods){try{e=a.getExternalInterfaceMethods(),e="string"===typeof e?e.split(","):[]}catch(n){e=[],d.raiseError(c,"13111126041","run","RendererManager^Loaded",Error("Error while retrieving data from the chart-object."+
(n.message&&0<=n.message.indexOf("NPObject")?" Possible cross-domain security restriction.":"")))}for(a=0;a<e.length;a+=1)g=e[a],void 0===c[g]&&(c[g]=b(g));if(c.ref)for(g in e=F.protectedMethods,a=F.getRenderer(c.options.renderer).protectedMethods,c)if(a&&!e[g]&&!a[g]&&void 0===c.ref[g])try{c.ref[g]=J(c,g)}catch(s){}}});d.legacyEventList.resized="FC_Resized";d.extend(d.core.prototype,{render:function(c,b,e){var g=this,n,s,R;if((R=k[this.id])&&R.FusionCharts&&R.FusionCharts===this||(R=this.ref)&&R.FusionCharts&&
R.FusionCharts===this)d.renderer.dispose(this),R===k[this.id]&&(k[this.id]=void 0);void 0!==k[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."));e?"function"!==typeof e&&(e=void 0):"function"===typeof b?(e=b,b=void 0):b||"function"!==typeof c||(e=c,c=void 0);b=(b||this.options.insertMode).toLowerCase()||l.REPLACE;
void 0===c&&(c=this.options.containerElementId);"string"===typeof c&&(c=B.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;n=B.createElement(this.options.containerElementType||"span");n.setAttribute("id",this.id);if("append"!==b&&"prepend"!==b)for(;c.hasChildNodes();)c.removeChild(c.firstChild);
"prepend"===b&&c.firstChild?c.insertBefore(n,c.firstChild):c.appendChild(n);this.options.containerElement=c;this.options.containerElementId=c.id;if(b=n.style)b.position="relative",b.textAlign="left",b.lineHeight="100%",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";b=d.normalizeCSSDimension(this.width,this.height,n);this.__state.renderedWidth=b.pixelWidth;
this.__state.renderedHeight=b.pixelHeight;this.__state.rendering=!0;d.raiseEvent("beforeRender",s={container:c,width:this.width,height:this.height,renderer:this.options.renderer},this,void 0,function(a,c){d.renderer.render(g,n,function(){d.renderer.notifyRender.apply(this,arguments);if(e)try{e.call(a.sender,c.container)}catch(b){setTimeout(function(){throw b;})}})},function(){d.raiseEvent("renderCancelled",s,g)});return this},remove:function(){d.renderer.remove(this);return this},resizeTo:function(a,
c,b){var g=this,n=g.width,s=g.height,R=g.__state;"object"===typeof a&&(b=c,c=a.h,a=a.w);a=null===a||void 0===a?n:a.toString().replace(D,"");c=null===c||void 0===c?s:c.toString().replace(D,"");!0!==b?d.raiseEvent("beforeresize",{currentWidth:n,currentHeight:s,newWidth:a,newHeight:c},g,void 0,function(){g.width=a;g.height=c;d.renderer.resize(g,{width:a,height:c});d.raiseEventWithLegacy("resized",{width:g.width,height:g.height,prevWidth:n,prevHeight:s,pixelWidth:g.ref&&g.ref.offsetWidth||0,pixelHeight:g.ref&&
g.ref.offsetHeight||0,originalWidth:R.renderedWidth,originalHeight:R.renderedHeight},g,[g.id,g.width,g.height])},function(){d.raiseEvent("resizecancelled",{currentWidth:n,currentHeight:s,cancelledTargetWidth:a,cancelledTargetHeight:c},g)}):(g.width=a,g.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=F.setDefault.apply(F,arguments);F.userSetDefault=!0;return a},getCurrentRenderer:function(){return F.currentRendererName.apply(F,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,k=d.window,B=d.transcoders={},v={},l={},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,s,e){var m=s.obj;s=s.args;s.dataSource=c;s.xmlHttpRequestObject=b;s.source="XmlHttpRequest";s.url=e;d.raiseEvent("dataLoadRequestCompleted",s,m,void 0,a,D)},J=function(a,c,b){var e=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,e);"function"===typeof k.FC_DataLoadError&&k.FC_DataLoadError(e.id,b)},a=function(a,c){a.sender.setChartData(c.dataSource,c.dataFormat,c.config,c.successcallback,c.silent)},D=function(a,c){d.raiseEvent("dataLoadCancelled",c,a.sender);c.xmlHttpRequestObject.abort()},F=function(a,c){var s=a.sender,e=s.__state,m=c.url;s.options.dataSource=c.url;e.dhmXhrObj||(e.dhmXhrObj=new d.ajax(b,J));e.dhmXhrObj.get("function"===
typeof k.decodeURIComponent?k.decodeURIComponent(m):k.unescape(m),{obj:s,args:c})},C=function(a,c){var b=a.sender,e=b.__state;d.raiseEvent("dataLoadRequestCancelled",c,b);e&&e.dhmXhrObj&&e.dhmXhrObj.abort()},w=function(a,c){var b=a.sender,e=b.__state,m=b.id;v[m]=c;l[m]&&delete l[m];l[m]={};e.dataReady=void 0;e.dataAvailable=!0;!0!==c.silent&&(!0!==b.options.safeMode||!0!==e.rendering||b.isActive()?(delete e.args,d.renderer.update(b,c)):(e.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)},e=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!==B[a.toLowerCase()])d.raiseError(d.core,"03091606","param","::DataManager.addDataHandler",Error("Invalid Data Handler Name"));else{var b={},e=a.toLowerCase();B[e]=c;c.name=a;b["set"+a+"Data"]=function(c,b,n){return this.setChartData(c,a,b,n)};c.transportable&&(b["set"+a+"Url"]=function(c,b,n){return this.setChartDataUrl(c,a,b,n)},d.dataFormats[a+"URL"]=e+"Url");b["get"+a+"Data"]=function(){return this.getChartData(a)};d.dataFormats[a]=e;d.extend(d.core,b,!0)}};d.extend(d.core.prototype,
{setChartDataUrl:function(a,b,e,w,m){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:!!m,config:e,successcallback:w},this,void 0,F,C)},setChartData:function(a,b,s,D,m){var I=this.options,l,J;if(void 0===
b||null===b||"function"!==typeof b.toString)b=I.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,s,D,m):(I.dataSource=a,l=b,I.dataFormat=b,J=B[l],"undefined"===typeof J?d.raiseError(d.core,"03091611","param","FusionCharts#setChartData",Error("Data Format not recognized")):(b=(b=d.renderer&&d.renderer.getRenderer(I.renderer||d.renderer.currentRendererName()))&&
b.dataFormat,s=b===l?J.passthrough?J.passthrough(a,s):{data:a}:J.encode(a,this,s||I.dataConfiguration)||{},s["native"]=b===l,s.format=s["native"]?b:"xml",s.dataFormat=l,s.dataSource=a,s.silent=!!m,"function"===typeof D&&(s.successcallback=D),d.raiseEvent("beforeDataUpdate",s,this,void 0,w,e)))},getChartData:function(a,c){var b=this.options,e=this.id,m;if(void 0===a||"function"!==typeof a.toString||void 0===(m=B[a=a.toString().toLowerCase()]))d.raiseError(this,"25081543","param","::transcoder~getChartData()",
Error('Unrecognized data-format specified in "format"'));else return l[e][a]?b=l[e][a]:v[e]?(a===v[e].format?l[e][a]=v[e]:(l[e].xml||(l[e].xml="xml"===v[e].format?v[e]:B[v[e].format].encode(v[e].data,this,b.dataConfiguration)),l[e][a]||(l[e][a]=m.decode(l[e].xml.data,this,b.dataConfiguration))),b=l[e][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,e,
m){if(c&&"function"===typeof c.toString&&b&&"function"===typeof b.toString&&void 0!==B[b=b.toString().toLowerCase()]&&void 0!==B[c=c.toString().toLowerCase()])return a=B[c].encode(a,this,m),b=B[b].decode(a.data,this,m),b.error instanceof Error||(b.error=a.error),e?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,e=b.dataSource,w=d.renderer&&d.renderer.getRenderer(b.renderer);delete v[a.id];l[a.id]={};if(void 0!==e&&null!==e){a.__state.dataSetDuringConstruction=!0;if("string"!==typeof b.dataFormat)switch(typeof e){case "function":e=b.dataSource=e.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(e,b.dataFormat,void 0,void 0,!0)}else w&&(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 - "+w.dataFormat),a.setChartData("",w.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 l[a.sender.id];c&&c.__state&&c.__state.dhmXhrObj&&c.__state.dhmXhrObj.abort()});d.addEventListener("disposed",function(a){delete l[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,e=b.__state;e.rendering&&
(e.dataFetchDuringConstruction||e.updatePending)&&(delete e.dataFetchDuringConstruction,delete e.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,e,m;m=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)e=d.transcoders[b].name,e="get"+e+"Data",a[e]=m(b,a.constructor.prototype[e]),a[e]._dynamicdatarouter=!0;c.dynamicDataRoutingEnabled=!0}else if(c.dynamicDataRoutingEnabled){for(b in d.transcoders)e=d.transcoders[b].name,e="get"+e+"Data",a.hasOwnProperty(e)&&a[e]._dynamicdatarouter&&delete a[e];c.dynamicDataRoutingEnabled=!1}})}]);"object"!==typeof JSON&&(JSON={});
(function(){function d(a){return 10>a?"0"+a:a}function k(a){l.lastIndex=0;return l.test(a)?'"'+a.replace(l,function(a){var c=b[a];return"string"===typeof c?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function B(a,b){var d,l,w,e,g=c,n,s=b[a];s&&"object"===typeof s&&"function"===typeof s.toJSON&&(s=s.toJSON(a));"function"===typeof J&&(s=J.call(b,a,s));switch(typeof s){case "string":return k(s);case "number":return isFinite(s)?String(s):"null";case "boolean":case "null":return String(s);
case "object":if(!s)return"null";c+=K;n=[];if("[object Array]"===Object.prototype.toString.apply(s)){e=s.length;for(d=0;d<e;d+=1)n[d]=B(d,s)||"null";w=0===n.length?"[]":c?"[\n"+c+n.join(",\n"+c)+"\n"+g+"]":"["+n.join(",")+"]";c=g;return w}if(J&&"object"===typeof J)for(e=J.length,d=0;d<e;d+=1)"string"===typeof J[d]&&(l=J[d],(w=B(l,s))&&n.push(k(l)+(c?": ":":")+w));else for(l in s)Object.prototype.hasOwnProperty.call(s,l)&&(w=B(l,s))&&n.push(k(l)+(c?": ":":")+w);w=0===n.length?"{}":c?"{\n"+c+n.join(",\n"+
c)+"\n"+g+"}":"{"+n.join(",")+"}";c=g;return w}}"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,
l=/[\\\"\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",'"':'\\"',"\\":"\\\\"},J;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var l;K=c="";if("number"===typeof d)for(l=0;l<d;l+=1)K+=" ";else"string"===typeof d&&(K=d);if((J=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return B("",{"":a})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,c){function b(a,e){var g,d,s=a[e];if(s&&"object"===typeof s)for(g in s)Object.prototype.hasOwnProperty.call(s,g)&&(d=b(s,g),void 0!==d?s[g]=d:delete s[g]);return c.call(a,e,s)}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,k=d.window,B=k.document,v=d.xssEncode,l,c;void 0===k.JSON&&d.raiseError(this,"1113062012","run","JSONDataHandler",Error("Could not find library support for JSON parsing."));d.policies.options.allowIESafeXMLParsing=["_allowIESafeXMLParsing",!0];l=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"}},l={vline:{vline:"true"}},
a={chart:!0,map:!0,graph:!0},D={dataset:"data",categories:"category"},F={target:"target",value:"value"},C={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}},w,e;w={append:function(a,b,e,d){!c[e]||!0!==c[e]&&!0!==c[e][d]?b[e]=a:(b[e]instanceof Array||(b[e]=[]),b[e].push(a))},child:function(c,e,
s,k){var m,I,Q,v,B,p;for(m=0;m<e.length;m+=1)switch(Q=e[m],I=Q.nodeName.toLowerCase(),Q.nodeType){case 1:v=w.attr(Q.attributes);p=a[I];!0===p&&(B=v,v={},v[I]=B);p=l[I];"object"===typeof p&&d.extend(v,p);if(p=b[I])if("object"===typeof p&&"object"===typeof p[s])for(B in B=void 0,p[s]){if(k[B]){I=p[s][B];break}}else"object"===typeof p&&"string"===typeof p[s]?I=p[s]:"string"===typeof p&&(I=p);Q.childNodes.length&&((p=C[s])&&p[I]?w.child(c,Q.childNodes,I,k):w.child(v,Q.childNodes,I,k));(p=C[s])&&p[I]||
w.append(v,c,I,s);break;case 3:if(p=F[s])I=p,v=Q.data,w.append(v,c,I,s);p=D[s];"string"===typeof p&&k.chart&&parseInt(k.chart.compactdatamode,10)&&(I=p,v=Q.data,c[I]=c[I]?c[I]+v:v)}},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}};e=function(a){var c={},b,l,m,I,D,J,C,p,H;if("object"!==typeof a&&a&&"function"!==typeof a.toString)return e.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 S=/\s/,F=a.length;S.test(a.charAt(F-=1)););a=a.slice(0,F+1);if(!a)return c;try{k.DOMParser?b=(new k.DOMParser).parseFromString(a,"text/xml"):B.body&&d.core.options.allowIESafeXMLParsing?(l=B.createElement("xml"),l.innerHTML=a,B.body.appendChild(l),b=l.XMLDocument,B.body.removeChild(l)):(b=new k.ActiveXObject("Microsoft.XMLDOM"),b.async="false",b.loadXML(a));if(!(b&&b.childNodes&&1===b.childNodes.length&&
(m=b.childNodes[0])&&m.nodeName&&(I=m.nodeName.toLowerCase()))||"chart"!==I&&"map"!==I&&"graph"!==I)return e.errorObject=new TypeError("xml2json.parse()"),c;if("graph"===I){D=b.createElement("chart");for(H=(C=m.attributes)&&C.length||0;H--;)D.setAttribute(C[H].name,C[H].value),C.removeNamedItem(C[H].name);if(H=(p=m.childNodes)&&p.length||0)H-=1,J=m.removeChild(p[H]),D.appendChild(J);for(;H--;)J=m.removeChild(p[H]),D.insertBefore(J,D.firstChild);b.replaceChild(D,m);m=D}}catch(v){e.errorObject=v}m?
(m.attributes&&(c[I]=w.attr(m.attributes)),m.childNodes&&w.child(c,m.childNodes,I,c),delete e.errorObject):e.errorObject=new TypeError("xml2json.parse()");return c};return function(a){delete e.errorObject;return{data:e(a),error:e.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,l,k){var C="",w="",e="",g="",n,s,R;a&&
"function"===typeof a.toLowerCase&&(a=a.toLowerCase());if(void 0===l&&d[a])for(n in d[a])s=n.toLowerCase(),"compactdatamode"===s&&(k.applyDSV=1==d[a][n]);if(d instanceof Array)for(n=0;n<d.length;n+=1)e="string"===typeof d[n]?e+v(d[n]):e+b(d[n],a,l,k);else{for(n in d)s=n.toLowerCase(),d[n]instanceof Array&&(R=c.qualify("group",s,a))?(e=c.qualify("tag",s,a)||s,w+="<"+e+">"+b(d[n],R,a,k)+"</"+e+">"):"object"===typeof d[n]?(R=c.qualify("attr",s,a))?(g=b(d[n],R,a,k).replace(/\s*\/\>/ig,""),a=s):w+=b(d[n],
s,a,k):k.applyDSV&&(R=c.qualify("dsv",s,a))?w+=d[n]:(R=c.qualify("text",s,a))?(e=c.qualify("tag",s,a)||R,w+="<"+e+">"+d[n]+"</"+e+">"):"vline"===s&&Boolean(d[n])?a="vline":C+=" "+s+'="'+v(d[n]).toString().replace(/\"/ig,"&quot;")+'"';if(R=c.qualify("explode",l,a))a=R;e=a;e=(""!==g?g:"<"+e)+C+(""!==w?">"+w+"</"+e+">":" />")}return e};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:l,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,k=d.window,B=d.core,v=k.parseInt,l=k.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 l;if(this.rowCount<=c){for(l=this.rowCount;l<=c;l+=1)this.data[l]=[];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,l){d.raiseError(l,"0604111215","run","::CSVDataHandler.encode()","FusionCharts CSV data-handler only supports encoding of data.");
throw Error("FeatureNotSupportedException()");},decode:function(b){var d=B.transcodeData(b,"xml","json")||{},a,D,k,C,w,e,g,n=d.chart||d.map||d.graph||{},s=Boolean(n.exporterrorcolumns||0),R=d.categories&&d.categories[0]&&d.categories[0].category||[];C=d.map&&!d.chart;var m=!1,I=!1,Q=!1,v=!1;a=!1;var $=c,p={},H,S,fa,sa,ya,ca,Y,xa,t,M,h;w=0;b=new K({separator:n.exportdataseparator,qualifier:n.exportdataqualifier,numberFormatted:n.exportdataformattedval});B.formatNumber&&b.numberFormatted&&($=function(a){return B.formatNumber(a,
n)});if(C)p.geo=!0,b.setRow(0,["Id"," Short Name","Long Name","Value","Formatted Value"]);else if(void 0!==(H=d.dials&&d.dials.dial||d.pointers&&d.pointers.pointer||d.value))if(p.gauge=!0,"string"===typeof H)b.set(0,0,$(H)),p.singlevalue=!0,"string"===typeof d.target&&(b.set(0,1,$(d.target)),p.bullet=!0);else for(b.setRow(0,["Id","Value"]),p.multivalue=!0,C=0,e=1,w=H.length;C<w;C+=1,e+=1)b.setRow(e,[e,$(H[C].value)]);else if(H=d.dataset||!(d.data instanceof Array)&&[]){p.multiseries=!0;D=1;if(S=d.lineset)H=
H.concat(S),p.lineset=!0;if(fa=d.axis)H=H.concat(fa),p.multiaxis=!0;ca=H.length;ya=R.length;if(!(ca=H.length)){for(C=0;C<ya;C+=1)Y=R[C],b.set(C+1,0,Y.label||Y.name);p.multilevel=!0}for(C=0;C<ca;C+=1)for(xa=H,xa[C].dataset?(xa=xa[C].dataset,k=0,sa=xa.length):(xa=H,k=C,sa=k+1);k<sa&&!m&&!Q;k+=1,D+=1){t=xa[k];b.set(0,D,t.seriesname);"string"===typeof t.data&&(p.compactdata=!0,t.data=t.data.split(n.dataseparator||"|"));e=w=0;for(M=t.data&&t.data.length||0;w<M||w<ya;w+=1){Y=R[w];a=e+1;h=t.data&&t.data[e]||
{};if(void 0!==h.x&&void 0!==h.y){m=p.xy=!0;break}if(void 0!==h.open||void 0!==h.high||void 0!==h.close||void 0!==h.low){v=p.ohlc=!0;break}if(void 0!==h.rowid&&void 0!==h.columnid){Q=p.heatmap=!0;break}if(w<ya&&!Y.vline){b.set(a,0,Y.label||Y.name);Y=l(h?h.value:"");Y=isNaN(Y)?"":$(Y);b.set(a,D,Y);if(I||s||h.errorvalue)I||b.set(0,D+1,"Error"),g=1,b.set(a,D+1,$(h.errorvalue));e+=1}}g&&(D+=g,g=0)}S&&(H=H.slice(0,-S.length));fa&&(H=H.slice(0,-fa.length))}else if(H=d.data){b.set(0,1,n.yaxisname||"Value");
p.singleseries=!0;a="1"==n.showsumatend;C=0;for(ya=H.length;C<ya;C+=1)h=H[C],h.vline||(Y=l(h.value?h.value:""),b.setRow(C+1,[h.label||h.name,isNaN(Y)?"":(w+=Y,$(Y))]));a&&(p.summation=!0,b.setRow(C+1,[n.sumlabel||"Total",$(w)]))}if(v)for(b.clear(),b.setRow(0,["Open","Close","High","Low"]),C=0,a=1,H=d.dataset,sa=H.length;C<sa;C+=1)for(w=0,t=H[C]&&H[C].data||[],ca=t.length;w<ca;w+=1,a+=1)h=t[w]||{},b.setRow(w+1,[$(h.open),$(h.close),$(h.high),$(h.low)]);else if(m)for(b.clear(),I=!1,g=0,b.setRow(0,["Series",
"x","y"]),C=0,a=1,H=d.dataset,sa=H.length;C<sa;C+=1)for(w=0,t=H[C]&&H[C].data||[],ca=t.length;w<ca;w+=1,a+=1){h=t[w]||{};Y=[H[C].seriesname,$(h.x),$(h.y)];void 0!==h.z&&(Y.push($(h.z)),g||(b.set(0,3,"z"),g=1));if(I||s||void 0!==h.errorvalue||void 0!==h.horizontalerrorvalue||void 0!==h.verticalerrorvalue)d=$(h.errorvalue),Y.push(h.errorvalue,void 0===h.horizontalerrorvalue?d:$(h.horizontalerrorvalue),void 0===h.verticalerrorvalue?d:$(h.verticalerrorvalue)),I||(b.set(0,g+3,"Error"),b.set(0,g+4,"Horizontal Error"),
b.set(0,g+5,"Vertical Error")),I=p.error=!0;b.setRow(a,Y)}else if(Q){b.clear();s={};I={};C=0;w=1;R=d.rows&&d.rows.row||[];for(g=R.length;C<g;C+=1,w+=1)Y=R[C],Y.id&&(s[Y.id.toLowerCase()]=w,b.set(w,0,Y.label||Y.id));C=0;w=1;R=d.columns&&d.columns.column||[];for(g=R.length;C<g;C+=1,w+=1)Y=R[C],Y.id&&(I[Y.id.toLowerCase()]=w,b.set(0,w,Y.label||Y.id));t=d.dataset&&d.dataset[0]&&d.dataset[0].data||[];C=0;for(g=t.length;C<g;C+=1)h=t[C],a=h.rowid.toLowerCase(),D=h.columnid.toLowerCase(),s[a]||(s[a]=b.rowCount,
b.set(b.rowCount,0,h.rowid)),I[D]||(I[D]=b.columnCount,b.set(0,b.columnCount,h.columnid)),b.set(s[a],I[D],$(h.value))}H=R=S=fa=null;0<b.rowCount&&void 0===b.get(0,0)&&b.set(0,0,n.xaxisname||"Label");return{data:b.toString(),error:void 0,predictedFormat:p}},transportable:!1});B.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,k=d.window,B=k.document,v=d.core.options,l=/msie/i.test(k.navigator.userAgent)&&!k.opera,c=Boolean(k.SVGAngle||B.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),K=function(){},b=d.hcLib={cmdQueue:[]},J=b.moduleCmdQueue={base:[],charts:[],powercharts:[],widgets:[],maps:[]},a=b.moduleDependencies={},D=b.moduleMeta={base:"fusioncharts.js",charts:"fusioncharts.charts.js",powercharts:"fusioncharts.powercharts.js",
widgets:"fusioncharts.widgets.js",maps:"fusioncharts.maps.js"},F={},C=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,"")})}}(),w=b.getDependentModuleName=function(c){var b=[],d,e;c=C(c).predicate;for(d in a)void 0!==(e=a[d][c])&&(b[e]=d);return b},e=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-"+
C(a[c]).predicate]))return!1;return!0}return Boolean(d.modules["modules.renderer.js-"+C(a).predicate])},g=b.loadModule=function(a,c,b,g){a instanceof Array||(a=[a]);var p=a.length,m=0,n;n=function(){if(m>=p)c&&c();else{var s=a[m],l=s&&s.match(/[^\/]*$/i)[0],w=D[s];m+=1;if(s){if(e(l)){n();return}if(F[l]){d.raiseError(g||d.core,"1112201445A","run","JavaScriptRenderer~loadModule() ","required resources are absent or blocked from loading.");b&&b(l);return}}else b&&b(l);s=d.core.options["html5"+d.capitalizeString(l)+
"Src"];d.loadScript(void 0===s?w:s,{success:function(){e(l)?n():b&&b(l)},failure:b&&function(){b(l)}},void 0,!0)}};n()},n=b.executeWaitingCommands=function(a){for(var c;c=a.shift();)"object"===typeof c&&K[c.cmd].apply(c.obj,c.args)},s=function(a){delete a.sender.jsVars._reflowData;a.sender.jsVars._reflowData={};delete a.sender.jsVars._reflowClean},R=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}(),m=b.getContainerBackgroundColor=function(a){var d=a.options.containerBackgroundColor,e=a.options.containerBackgroundOpacity;isNaN(e)?e=a.jsVars.transparent?0:1:(e=parseFloat(e),0>e?e=0:1<e&&(e=1));d||(d="#ffffff");if(l&&!c)return e?
d:"transparent";d=d.replace(/^#?([a-f0-9]+)/ig,"$1");d=b.graphics.HEXtoRGB(d);d[3]=e.toString();return"rgba("+d.join(",")+")"};b.injectModuleDependency=function(c,d,e){var g=!1,p=C(c).subject;c=C(c).predicate;d=void 0===d?c:C(d).predicate;a[c]||(a[c]={},J[c]||(J[c]=[],b.moduleMeta[c]=p+v.html5ScriptNamePrefix+(d&&d.replace&&d.replace(/^[\s\S]*\//ig,"").replace(/\?/g,"%3F").replace(/\#/g,"%23").replace(/\:/g,"%3A")||"")+v.html5ScriptNameSuffix),g=!0);a[c][d]=e||0;return g};b.needsModule=function(a,
c){a=C(a).predicate;c=C(c).predicate;return void 0!==(b.moduleDependencies[a]&&b.moduleDependencies[a][c])};b.cleanupWaitingCommands=function(a){for(var c=a.chartType(),c=w(c),b,d=[],e;b=c.shift();){for(b=J[b]||[];e=b.shift();)"object"===typeof e&&e.obj!==a&&d.push(e);b.concat(d);d=[]}};d.extend(d.core.options,{html5ScriptNameSuffix:".js",html5ScriptNamePrefix:"fusioncharts."});d.extend(K,{dataFormat:"json",ready:!1,policies:{jsVars:{},options:{showChartLoadingMessage:["showChartLoadingMessage",!0]}},
init:function(){e("base")?K.ready=!0:g("base",function(){K.ready=!0;n(b.cmdQueue)},void 0,d.core)},render:function(a){var c=a,d=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">'+(d.PBarLoadingText||d.LoadingText)+"</small>",c.style.backgroundColor=m(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,d;c=0;for(d=a.length;c<d;c+=1)a[c].obj===this&&(a.splice(c,1),d-=1,c-=1)},load:function(){b.cmdQueue.push({cmd:"load",obj:this,args:arguments})},config:function(a,c){var b,d=this.jsVars,e=d.msgStore,d=d.cfgStore;"string"===typeof a&&1<arguments.length&&(b=a,a={},a[b]=c);for(b in a)void 0!==
e[b]?e[b]=a[b]:d[b.toLowerCase()]=a[b]},protectedMethods:{},events:{beforeInitialize:function(a){var c=a.sender;a=c.jsVars;var d;a.fcObj=c;a.msgStore=a.msgStore||new R;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,B.body||B.getElementsByTagName("body")[0]);a.detachHandler()});a.userModules instanceof Array||(d=a.userModules,a.userModules=[],"string"===typeof d&&(a.userModules=
a.userModules.concat(d.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:s,beforeDispose:function(a){var c=a.sender.jsVars;c.smartLabel&&!c.smartLabel.disposed&&c.smartLabel.dispose();s.apply(this,arguments)},beforeRender:function(a){var c=a.sender.jsVars;delete c.drLoadAttempted;delete c.waitingModule;delete c.waitingModuleError;s.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;s.apply(this,arguments)}},_call:function(a,c,b){a.apply(b||k,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(){k.swfobject.hasFlashPlayerVersion(d.core.options.requiredFlashPlayerVersion)||d.renderer.setDefault("javascript")},
_enableJSChartsForSelectedBrowsers:function(a){void 0!==a&&null!==a&&d.renderer.setDefault(RegExp(a).test(k.navigator.userAgent)?"javascript":"flash")},_doNotLoadExternalScript:function(a){var c,b;for(c in a)b=c.toLowerCase(),D[b]&&(F[b]=Boolean(a[c]))},_preloadJSChartModule:function(){throw"NotImplemented()";}});d.renderer.register("javascript",K);c||l?d.renderer.setDefault("javascript"):k.swfobject&&k.swfobject.hasFlashPlayerVersion&&!k.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,k=d.window,B=k.document,v=Boolean(k.SVGAngle||B.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),l=/msie/i.test(k.navigator.userAgent)&&!k.opera,c=k.parseFloat,K=/\s+/g,b=/^#?/,J=/^rgba/i,a=/[#\s]/ig,D=/\{br\}/ig,F=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,C=Math.abs,w=Math.pow,e=Math.round,g=w(2,-24),n=Object.prototype.toString,s=void 0!==B.documentElement.ontouchstart,R="http://www.fusioncharts.com?BS=FCHSEvalMark&utm_source=FCS_trial&pver="+
k.escape(d.core.version),m=!/fusioncharts\.com$/i.test(k.location.hostname),I=Math,Q=I.max,X=I.min,$={pageX:0,pageY:0},p=d.hcLib||(d.hcLib={}),H=function(a){var c=a.data,b=c.chart,d=b.paper,r=a.state,e=h(M(a.originalEvent)),g=e.target||e.originalTarget||e.srcElement||e.relatedTarget||e.fromElement,p=b.elements.resizeBox,t=c.layerX=e.pageX-c.chartPosLeft,m=c.layerY=e.pageY-c.chartPosTop,N=t-c.ox,E=m-c.oy,n=c.bBox,s=c.ox,l=c.oy,w=c.zoomX,W=c.zoomY,n=c.canvasY,S=c.canvasX,D=c.canvasW,H=c.canvasH,k=c.canvasX2,
ca=c.canvasY2,ia=c.strokeWidth,N=c.attr;switch(r){case "start":a=fa(this);c.chartPosLeft=a.left;c.chartPosTop=a.top;t=e.pageX-c.chartPosLeft;m=e.pageY-c.chartPosTop;c.oy=m;c.ox=t;c.allowMove=!1;p||(p=b.elements.resizeBox=d.rect(b.layers.tracker).attr(N));t>S&&t<k&&m>n&&m<ca&&(c.allowMove=!0);g&&g.ishot&&(c.allowMove=!1);p.attr({x:0,y:0,width:0,height:0}).show();break;case "end":n=p.getBBox();b={chart:b,selectionLeft:n.x,selectionTop:n.y,selectionHeight:n.height,selectionWidth:n.width,originalEvent:a.originalEvent};
c.isDragged&&(c.selectionEnd&&c.selectionEnd(b),c.isDragged=0);p.hide();delete c.oy;delete c.ox;break;default:if(!c.allowMove)break;N=t-c.ox;E=m-c.oy;s=c.ox;l=c.oy;c.isDragged||(b={chart:b,selectionLeft:(w?X(s,s+N):S)+0.5*ia,selectionTop:(W?X(l,l+E):n)+0.5*ia,selectionHeight:0,selectionWidth:0,originalEvent:a.originalEvent},c.selectionStart&&c.selectionStart(b),c.isDragged=1);N=-(s-X(s-(s-Q(s+N,S)),k));E=-(l-X(l-(l-Q(l+E,n)),ca));p.attr({x:(w?X(s,s+N):S)+0.5*ia,y:(W?X(l,l+E):n)+0.5*ia,width:w?C(N):
D,height:W?C(E):H})}},S=function(a){var c=a.data;a=a.originalEvent;var b=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,h=a.type,d=a.layerX,r=a.layerY;void 0===d&&(d=a.pageX-c.chartPosLeft,r=a.pageY-c.chartPosTop);"mousedown"===h&&(b.ishot=d>c.canvasX&&d<c.canvasX2&&r>c.canvasY&&r<c.canvasY2);"mouseup"===h&&setTimeout(function(){b.ishot=!1},1)},I=function(){var a="innerWidth",c="innerHeight",b=B.documentElement||B.body,h=b;"innerWidth"in k?h=k:(a="clientWidth",c="clientHeight");
return function(){return{width:h[a],height:h[c],scrollTop:b.scrollTop,scrollLeft:b.scrollLeft}}}(),fa=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===B.body||a===B.documentElement||c||(b.left-=a.scrollLeft,b.top-=a.scrollTop),a=a.offsetParent;return b},sa=function(a){return a&&a.replace(/\$/g,"$$$$")},ya=function(a,c){return a||!1===a||0===a?a:c},ca=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""},Y=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},xa=function(a,c,b,h){return p.dem.listen(a,c,b,h)},t=function(a,c,b){return p.dem.unlisten(a,c,b)},M=function(a){a=a.sourceEvent||a.originalEvent||a;return s&&a&&a.touches&&a.touches[0]||a||$},h=function(){var a;return function(c){void 0===c.pageX&&(c.pageX=c.clientX+(a||(a=k.document.body||k.document.documentElement)).scrollLeft,c.pageY=c.clientY+
a.scrollTop);return c}}(),N=function(a,c){c=h(M(c));var b=c.pageX,d=c.pageY,r=fa(a);return{chartX:b-r.left,chartY:d-r.top,pageX:b,pageY:d}},W=function(a){return a&&a.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none"},na=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},ia=function(a,c){a=a||!1===a||0===a?Number(a):NaN;return isNaN(a)?null:c?C(a):a},Z=function(a){return"string"===typeof a?a.replace(D,"<br />"):""},Aa=function(a,c){for(var b=
c.length,h=-1;b--;)if(a===c[b]){h=b;break}return h},Ga=function(){if(Array.isArray)return Array.isArray;var a=Object.prototype.toString,c=a.call([]);return function(b){return a.call(b)===c}}(),oa=function(a,c,b,h,d){var r,e,g,p;d?(h.push(a),d.push(c)):(h=[a],d=[c]);if(c instanceof Array)for(r=0;r<c.length;r+=1){try{e=a[r],g=c[r]}catch(t){continue}if("object"!==typeof g)b&&void 0===g||(a[r]=g);else{if(null===e||"object"!==typeof e)e=a[r]=g instanceof Array?[]:{};p=Aa(g,d);-1!==p?e=a[r]=h[p]:oa(e,g,
b,h,d)}}else for(r in c){try{e=a[r],g=c[r]}catch(m){continue}if(null!==g&&"object"===typeof g)if(p=n.call(g),"[object Object]"===p){if(null===e||"object"!==typeof e)e=a[r]={};p=Aa(g,d);-1!==p?e=a[r]=h[p]:oa(e,g,b,h,d)}else"[object Array]"===p?(null!==e&&e instanceof Array||(e=a[r]=[]),p=Aa(g,d),-1!==p?e=a[r]=h[p]:oa(e,g,b,h,d)):a[r]=g;else a[r]=g}return a},ua=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},ea=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):n.call(c[b])===n.call(a[b])&&ea(a[b],c[b]);else for(b in c)"object"!==typeof c[b]?!0===c[b]&&a&&a.splice&&a.splice(b,1):n.call(c[b])===n.call(a[b])&&ea(a[b],c[b]);return a},da=function(){var a=/^@window_/g;return function(c,b){var h=c.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,"").replace(/\[/g,".@window_").replace(/\]/g,"").split("."),
d=k,r,e;e="";var g,p,t;p=h.length;for(t=0;t<p;t+=1){g=h[t];r=d;if(g.match(a))e=k[g.replace(a,"")],d=d[e];else{if(void 0===d||null===d)throw(e||g).replace(a,"")+" is not defined";d=d[g]}e=g}!d||"function"!==typeof d.call&&d!==k.alert?setTimeout(function(){throw g.replace(a,"")+"() is not a function";},0):d===k.alert?d(b):d.call(r,b)}}(),aa=function(){var a="FusionChartslinkEval"+parseInt(+new Date,10);return function(c){try{k[a]=new Function(c),eval('window["'+a+'"]();')}catch(b){setTimeout(function(){throw b;
},0)}v?delete k[a]:k[a]=null}}(),ba=function(a,c){a=Number(a);a=isNaN(a)?100:a;void 0!==c&&(a=a*c/100);return a%101},ga=function(a,c,b){a=a.split(",");var h;void 0!==b&&(b=na(b.split(",")[0]));a[0]=ba(a[0],b);for(h=1;h<c;h+=1)a[h]=a[0]*ba(a[h],b)/100;return a.join(",")},la=function(c,b,h){var d=0,r=0,e=0;h&&h.match(J)&&(h=h.split(","),d=h[0].slice(h[0].indexOf("(")+1),r=h[1],e=h[2],b||0===b||(b=parseInt(100*h[3].slice(0,h[3].indexOf(")")),10)));if(c)if(c.match(J))h=c.split(","),d=h[0].slice(h[0].indexOf("(")+
1),r=h[1],e=h[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)}d=parseInt(c.slice(0,2),16);r=parseInt(c.slice(2,4),16);e=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("+d+","+r+","+e+","+b+")"},za=function(){var a={};return function(b){var h=(b=b||this)&&b.FCcolor||b,d=h.color,r=h.ratio,
e=h.angle,g=h.alpha,p=h.r,t=h.cx,m=h.cy,N=h.fx,M=h.fy,n=h.gradientUnits,E=h.x1,s=h.y1,l=h.x2,w=h.y2,W=1,S,D,H,k;if("string"===typeof b)return a[k="~"+b]||(a[k]=b.replace(/^#?([a-f0-9]{3,6})/ig,"#$1"));d=d||"";if(!d)return S;k=[d,g,r,e,p,t,m,n,N,M,E,l,s,w].join("_").replace(/[\(\)\s,\xb0#]/g,"_");if(a[k])return a[k];r=r&&(r+"").split(",")||[];g=(g||0===g)&&(g+"").split(",")||[];if(d=d.split(","))if(S="",1===d.length)H=d[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),S=g.length?"rgba("+Pa(H).join(",")+","+
0.01*c(g[0])+")":H.replace(/^#?([a-f0-9]{3,6})/ig,"#$1");else{b=0;for(D=d.length;b<D;b++)H=d[b].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),isNaN(r[b])||(r[b]=c(r[b]),H+=":"+r[b],isNaN(r[b+1])||(r[b+1]=c(r[b+1])+r[b])),isNaN(g[b])||""===g[b]||(W=0.01*g[b]),d[b]="rgba("+Pa(H).join(",")+","+W+")",isNaN(r[b])||(d[b]=d[b]+":"+r[b]);S+=d.join("-");if(void 0!==p||void 0!==N||void 0!==t||h.radialGradient)S="xr("+[N,M,p,t,m,n].join()+")"+S;else{S="-"+S;if(void 0!==E||void 0!==s||void 0!==l||void 0!==w)S="("+[E,
s,l,w,n].join()+")"+S;void 0===e&&(e=0);S=360-c(e)%360+S}}return a[k]=S}}(),hb=function(){return function(){return""}}(),Ha=function(c){return c.replace(a,"").replace(b,"#")},La=function(c,b){b=(0>b||100<b?100:b)/100;c=c.replace(a,"");var h=parseInt(c,16),d=Math.floor(h/65536),r=Math.floor((h-65536*d)/256);return("000000"+(d*b<<16|r*b<<8|(h-65536*d-256*r)*b).toString(16)).slice(-6)},Oa=function(c,b){b=(0>b||100<b?100:b)/100;c=c.replace(a,"");var h=parseInt(c,16),d=Math.floor(h/65536),r=Math.floor((h-
65536*d)/256);return("000000"+(256-(256-d)*b<<16|256-(256-r)*b<<8|256-(256-(h-65536*d-256*r))*b).toString(16)).slice(-6)},Pa=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)]},qb=function(a,c){if("object"!==typeof a)return"";a.lineHeight||a["line-height"]?!a.lineHeight&&a["line-height"]&&(a.lineHeight=a["line-height"],delete a["line-height"]):(!a.fontSize&&a["font-size"]&&(a.fontSize=a["font-size"],delete a["font-size"]),a.lineHeight=
(parseFloat(a.fontSize)||c||10)*p.lineHeightFactor+"px");return a.lineHeight},sb=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=na(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,h,d,r,e,g,p,t){var U=""===d?!1:!0,m=0<r||0<g.match(c)[1]?!0:!1,N;if(U||m)m||(g="rgba(0,0,0,0)",r=0.1),N={isGrid:!0,width:r,dashStyle:e,color:g,value:h,zIndex:void 0===p?2:p},U&&(h=b.opposite?t?this.xOppPos:this.yOppPos:t?this.xPos:this.yPos,h=a[h],N.label={text:d,style:b.labels.style,
textAlign:h.textAlign,align:h.align,verticalAlign:h.verticalAlign,rotation:0,x:0,y:0}),b.plotLines.push(N);return N},addAxisAltGrid:function(a,c){if(!this.is3D){var b=na(a._lastValue,a.min),z=Y(a._altGrid,!1);z&&a.plotBands.push({isGrid:!0,color:a.alternateGridColor,to:c,from:b,zIndex:1});a._lastValue=c;a._altGrid=!z}},addXaxisCat:function(c,b,h,d){var r=a[c.opposite?this.xOppPos:this.xPos];b={isGrid:!0,width:0.1,color:"rgba(0,0,0,0)",value:b,label:{text:d,style:c.labels.style,textAlign:r.textAlign,
align:r.align,verticalAlign:r.verticalAlign,rotation:0,x:0,y:0}};0!==h%this.labelStep&&(b.stepped=!0,b.label.style=c.steppedLabels.style);c.plotLines.push(b)},addVline:function(a,c,b,z){z=z._FCconf;var h=z.isBar,d=z.divlineStyle,r=Z(c.label),e=Boolean(na(c.showlabelborder,z.showVLineLabelBorder,1)),g=Boolean(na(c.showlabelbackground,1)),p=Y(c.labelhalign,h?"left":"center"),V=Y(c.labelvalign,h?"middle":"bottom").toLowerCase(),t=na(c.labelposition,0),U=na(c.lineposition,0.5),m=na(c.showvlines,z.showVLines,
1),N=na(c.alpha,z.vLineAlpha,80),M=Y(c.color,z.vLineColor).replace(/^#?/,"#"),n=g?Y(c.labelbgcolor,z.vLineLabelBgColor,"333333").replace(/^#?/,"#"):"",E=Y(c.labelcolor,z.vLineLabelColor,c.color,z.vLineColor).replace(/^#?/,"#"),s=na(c.thickness,z.vLineThickness,1),l=0.5*s,w=Boolean(Number(Y(c.dashed,0))),W=na(c.dashlen,5),S=na(c.dashgap,2),D=z.smartLabel,H=parseInt(d.fontSize,10)+2,q=0,u=na(c.rotatelabel,z.rotateVLineLabels)?270:0,U=0>U||1<U?0.5:U,t=0>t||1<t?0:t;D.setStyle(d);D=D.getOriSize(r);M=la(M,
m?N:"0");if(h){switch(V){case "top":H-=D.height+l+2;break;case "middle":H-=0.5*D.height+1;break;default:H+=l}c.labelhalign||(q-=D.width*t)}else{switch(V){case "top":H=0.5*-D.height+1;break;case "middle":H=0;break;default:H=0.5*D.height}switch(p){case "left":q+=s;break;case "right":q-=s+1}}a.plotLines.push({isVline:!0,color:M,width:s,value:b-1+U,zIndex:na(c.showontop,z.showVLinesOnTop)?5:3,dashStyle:w?jb(W,S,s):void 0,label:{text:r,align:h?"left":"center",offsetScale:t,rotation:u,y:H,x:q,textAlign:p,
backgroundColor:n,borderWidth:m&&e?"1px":"",borderType:m&&e?"solid":"",borderColor:m&&e?E:"",backgroundOpacity:m&&g?Y(c.labelbgalpha,z.vLineLabelBgAlpha)/100:0,style:{color:m?E:M,fontSize:d.fontSize,fontFamily:d.fontFamily,lineHeight:d.lineHeight,backgroundColor:n}}})}};return b.prototype.constructor=b}(),tb=function(){var a=function(a,b,z,h,d){a=Math.abs(b-a);b=a/(z+1);c(a,z,h)||(d&&Number(b)/Number(h)<(1<h?2:0.5)&&(h/=10),b=(Math.floor(b/h)+1)*h,a=b*(z+1));return a},c=function(a,c,z){return b(a/
(c+1))>b(z)?!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,h,d,r,e,p,t,U){var m,N,M,n,E,s,l;b=!0===isNaN(b)||void 0===b?0.1:b;h=!0===isNaN(h)||void 0===h?0:h;b===h&&0===b&&(b=0.1);e=void 0===typeof e?!0:e;p=void 0===typeof p?!0:p;m=Math.floor(Math.log(Math.abs(b))/Math.LN10);N=Math.floor(Math.log(Math.abs(h))/Math.LN10);N=Math.max(N,m);m=Math.pow(10,N);2>Math.abs(b)/m&&2>Math.abs(h)/m&&(N--,m=Math.pow(10,N));N=Math.floor(Math.log(b-
h)/Math.LN10);N=Math.pow(10,N);0<b-h&&10<=m/N&&(m=N);N=(Math.floor(b/m)+1)*m;0>h?M=-1*(Math.floor(Math.abs(h/m))+1)*m:p?M=0:(M=Math.floor(Math.abs(h/m)-1)*m,M=0>M?0:M);e&&0>=b&&(N=0);e=d||0===d?!0:!1;p=r||0===r?!0:!1;b=!1===e||!0===e&&Number(d)<b&&b-Number(d)>g?N:Number(d);h=!1===p||!0===p&&Number(r)>h&&Number(r)-h>g?M:Number(r);r=Math.abs(b-h);if(!1===p&&!1===e&&U)if(0<b&&0>h)for(U=!1,d=10<m?m/10:m,n=a(h,b,t,d,!1),e=n-(t+1)*d;!1===U;){if(e+=(t+1)*d,c(e,t,d))if(n=e-r,p=e/(t+1),M=Math.min(Math.abs(h),
b),N=M==Math.abs(h)?-1:1,0===t)U=!0;else for(s=1;s<=Math.floor((t+1)/2);s++)E=p*s,!(E-M>n)&&E>M&&(l=e-E,l/p==Math.floor(l/p)&&E/p==Math.floor(E/p)&&(r=e,b=-1==N?l:E,h=-1==N?-E:-l,U=!0))}else U=a(h,b,t,m,!0),n=U-r,r=U,0<b?b+=n:h-=n;else if(U&&0<t){U=0;for(d=1;;){n=t+U*d;n=0===n?1:n;if(c(r,n,m))break;U=-1==d||U>t?++U:U;if(25<U){n=0;break}d=U<=t?-1*d:1}t=n}return{Max:b,Min:h,Range:r,interval:m,divGap:(b-h)/(t+1)}}}(),xb=function(){var a=function(a,c,b){b=b.jsVars&&b.jsVars.smartLabel;var z=a.offsetWidth;
a=a.offsetHeight;this.title.y=a/2;this.title.x=z/2;void 0!==c&&(b?(qb(this.title.style),b.setStyle(this.title.style),c=b.getSmartText(Z(c),z,a),this.title.text=c.text):this.title.text=Z(c),this.title.verticalAlign="middle")};a.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:R,text:"",enabled:m},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}(),kb={"true":{"true":{"true":"center","false":"center"},"false":{"true":"center","false":"center"}},"false":{"true":{"true":"right","false":"left"},"false":{"true":"left","false":"right"}}},eb=function(){return function(a,c,h,d,r,e,g){var p,t=h.trendStyle,m,N,M,n,s,l,w,W,S,D,H,k,ca,ia=e?"xAxis":"dataLabels";if(e?h.showVLines:h.showTrendlines)for(p=0,N=a.length;p<N;p+=1)if((ca=a[p])&&ca.line)for(m=0,M=ca.line.length;m<M;m+=
1)n=ca.line[m],D=h.numberFormatter.getCleanValue(Y(n.startvalue,n.value,0)),H=h.numberFormatter.getCleanValue(Y(n.endvalue,Y(n.startvalue,n.value,0))),e?W=c:d&&n.parentyaxis&&/^s$/i.test(n.parentyaxis)?(W=c[1],k=1):W=c[0],l=W.max,w=W.min,s=!1,l>=D&&l>=H&&w<=D&&w<=H&&(d&&n.parentyaxis&&/^s$/i.test(n.parentyaxis)?s="1"!==Y(n.valueonleft,h.trendlineValuesOnOpp):d||(s="1"===Y(n.valueonright,h.trendlineValuesOnOpp)),l=Boolean(na(n.istrendzone,e?1:0)),(w=(e?h.showVLineLabels:h.showTrendlineLabels)?Z(Y(n.displayvalue,
h.numberFormatter[ia](s?H:D,k))):"")?(S=D<H,s={text:w,textAlign:r?"center":s?"left":"right",align:r?kb[l][!g][S]:s?"right":"left",verticalAlign:r?"bottom":"middle",rotation:0,x:0,y:0,style:t},w=Y(n.color,h.trendlineColor),n.alwaysVisible=l,w&&(s.style=ua({},t),s.style.color=w.replace(b,"#"))):s=void 0,w=ya(Z(Y(n.tooltext,ca.tooltext,h.trendLineToolText))),w=E(w,[7,15,16,17,18,19],{startValue:D,startDataValue:h.numberFormatter[ia](D,k),endValue:H,endDataValue:h.numberFormatter[ia](H,k),axisName:W.title&&
W.title.text},n),S=na(n.thickness,h.trendlineThickness,1),l?W.plotBands.push({isTrend:!0,color:la(Y(n.color,h.trendlineColor),Y(n.alpha,h.trendlineAlpha,40)),from:D,to:H,label:s,zIndex:h.is3d||"1"!==Y(n.showontop,h.showTrendlinesOnTop)?3:5,tooltext:w,alwaysVisible:n.alwaysVisible}):W.plotLines.push({isTrend:!0,color:la(Y(n.color,h.trendlineColor,h.trendlineColor),Y(n.alpha,h.trendlineAlpha,99)),value:D,to:H,width:S,dashStyle:"1"==Y(n.dashed,h.trendlinesAreDashed)?jb(na(n.dashlen,h.trendlinesDashLen),
na(n.dashgap,h.trendlinesDashGap),S):void 0,label:s,zIndex:h.is3d||"1"!==Y(n.showontop,h.showTrendlinesOnTop)?3:5,tooltext:w}))}}(),jb=function(a,c,b,h){return h||void 0===h?[a,c]:""},lb=function(){},r=function(a,c,b){var h,d=r[a];d||(d=function(){},d.prototype=b instanceof lb?b:new lb,d.prototype.constructor=d,d=r[a]=new d);b&&(d.base=b);d.name=a;for(h in c)switch(typeof c[h]){case "object":if(c[h]instanceof lb){d[h]=c[h][h];break}default:d[h]=c[h];break;case "undefined":delete d[h]}return this instanceof
r?(a=function(){},a.prototype=d,a.prototype.constructor=a,new a):d},E=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"}],c=[],b,h=a.length;for(b=0;b<h;b+=1)c.push(b);return function(){var b=arguments[0],h=arguments[1],d,r,e,g,p;!h instanceof Array&&(h=c);if(b)for(p=h.length,g=0;g<p;g+=
1)if(e=a[h[g]])d=sa(ya((r=arguments[e.argIndex])&&r[e.argKey],"")+""),b=b.replace(e.regex,"$2$4"+(e.parsingMethod?e.parsingMethod(d):d)),b=b.replace(e.escapeRegex,"$2$4$5");return b}}();d.core._setLineHeightFactor=function(a){!(a=c(a))||0>a||(p.lineHeightFactor=a)};d.extend(p,{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:J,cleanColorCode:a,breakPlaceholder:D,hexcode:/^#?[0-9a-f]{6}/i},fireEvent:function(a,c,b,h){p.dem.fire(a,c,b,h)},plotEventHandler:function(a,c,b){c=c||{};var h=c.type,r=N(a.container,c),r=ua(r,this.data("eventArgs")),e=a.logic.fireGroupEvent,g=this.data("groupId"),t=function(a,b){c.FusionChartsPreventEvent=!0;l&&b.toolText&&p.toolTip&&p.toolTip.preventTooltip()};"index"in r&&!("dataIndex"in r)&&(r.dataIndex=r.index);"value"in r&&!("dataValue"in r)&&(r.dataValue=r.value);b=Y(b,"dataplotclick").toLowerCase();
"dataplotrollover"===b?(c.FusionChartsPreventEvent=!1,e?d.raiseEventGroup(g,b,r,a.fusionCharts,void 0,void 0,t):d.raiseEvent(b,r,a.logic.chartInstance,void 0,void 0,t)):e&&"dataplotclick"!==b?d.raiseEventGroup(g,b,r,a.fusionCharts):d.raiseEvent(b,r,a.logic.chartInstance);("click"===h||"mouseup"===h&&"dataplotclick"===b)&&a.linkClickFN.call({link:r.link},a)},getEventCoordinate:h,getMouseCoordinate:N,addEvent:xa,removeEvent:t,getTouchEvent:M,extend2:ua,deltend:function(a,c){if("object"!==typeof a||
"object"!==typeof c)return null;ea(a,c);return a},imprint:function(a,c,b){var h;if("object"!==typeof a||null===a)return c;if("object"!==typeof c||null===c)return a;for(h in c)if(void 0===a[h]||!b&&null===a[h])a[h]=c[h];return a},pluck:Y,pluckNumber:na,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=B.createElement(a);for(var h in c)a.setAttribute(h,c[h]);b&&b.appendChild&&b.appendChild(a);
return a},hashify:W,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:ya,getPosition:fa,getViewPortDimension:I,bindSelectionEvent:function(a,c){c=c||{};var b=a.options.chart,h=a.container,d=b.zoomType,r=ua({},c.attr||{}),e=r["stroke-width"]=na(r.strokeWidth,r["stroke-width"],1),g=fa(h),p=a.eventListeners||(a.eventListeners=[]);c=ua({chart:a,zoomX:/x/.test(d),zoomY:/y/.test(d),canvasY:a.canvasTop,
canvasX:a.canvasLeft,canvasW:a.canvasWidth,canvasH:a.canvasHeight,canvasX2:a.canvasLeft+a.canvasWidth,canvasY2:a.canvasTop+a.canvasHeight,strokeWidth:e,chartPosLeft:g.left,chartPosTop:g.top,attr:r},c);r.stroke=ca(r.stroke,"rgba(51,153,255,0.8)");r.fill=ca(r.fill,"rgba(185,213,241,0.3)");r.ishot=!0;h&&(t(h,"pointerdrag",H),p.push(xa(h,"pointerdrag",H,c)));b.link&&(t(a.container,"mouseup mousedown",S),p.push(xa(a.container,"mouseup mousedown",S,c)))},createContextMenu:function(a){var c=a.chart,b=c.smartLabel,
h=c.logic.hcJSON&&c.logic.hcJSON.chart.useRoundEdges,d=p.Raphael,r=function(a){var c=a.menufillcolor&&W(a.menufillcolor),b=a.menulabelcolor&&W(a.menulabelcolor),h=a.menufillhovercolor&&W(a.menufillhovercolor);a=a.menulabelhovercolor&&W(a.menulabelhovercolor);return{attrs:{backgroundColor:c,color:b},hover:{backgroundColor:h,color:a}}}(c.definition.chart),e=function(a,c,b){c=c||{};a=(a=(a=a&&d.tintshade(a.color,0.7))&&d.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,r.hover),g=function(a,c,b){c=ua({},c||{});c=ua(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,r.attrs),t={textAlign:"left",align:"left",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",cursor:"pointer",borderWidth:"0px"},m=a.items,
N=a.position,n=a.verticalPadding||3,M=a.horizontalPadding||6,E={},s,w,S,D,H,k,ca,ia,Z,C,na,R,Y;if(c)s=fa(c.container);else return!1;D=function(){var a=E.items,c=a.length,u=0,A=0,G=0,f,d;E.menuItems||(E.menuItems=[]);for(b.setStyle(g);c--;)f=a[c],f=b.getOriSize(f.text),G||(G=f.height+2*n),u+=G,A=Q(A,f.width+2*M);E.height=u;E.width=A;E.itemH=G;this.style.width=A+"px";E.menuRect||(u=E.menuRect=B.createElement("div"),u.style.border="1px solid rgb(100, 100, 100)",h&&(u.style.mozBorderRadius="4px",u.style.webkitBorderRadius=
"4px",u.style.borderRadius="4px",u.style.overflow="hidden"),l&&!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));A=a.length;for(c=0;c<A;c+=1)if(f=a[c],E.menuItems[c])E.menuItems[c].label.innerHTML=f.text;else{E.menuItems[c]={};u=E.menuItems[c].box=B.createElement("div");u.style.height=G+"px";u.style.lineHeight=
G+"px";for(d in t)u.style[d]=t[d];for(d in g)u.style[d]=g[d];E.menuRect.appendChild(u);u.innerHTML=f.text;p.dem.listen(u,"click",Y);p.dem.listen(u,"pointerhover",C);E.menuItems[c].box._itemIdx=c}for(;E.menuItems[c];)E.menuItems[c].box.parentNode.removeChild(E.menuItems[c].box),E.menuItems.splice(c,1)};H=function(){S||(S=B.createElement("div"),S.style.position="absolute",S.style.zIndex="50",S.style.display="none",c.container.appendChild&&c.container.appendChild(S));return S};k=function(){w=setTimeout(E.hide,
800)};ca=function(){w&&clearTimeout(w)};ia=function(a){var b=a.x;a=a.y;var u={x:b,y:a},h=E.width,G=E.height,f=c.chartHeight;b+h>c.chartWidth&&0<b-h&&(u.x-=h);a+G>f&&0<a-G&&(u.y-=G);return u};Z=function(){E.hide()};C=function(a){a.target&&a.target.parentNode&&("start"===a.state?na:R).call(a.target)};na=function(){var a=E.menuItems[this._itemIdx],c;ca();for(c in e)a.box.style[c]=e[c]};R=function(){var a=E.menuItems[this._itemIdx],c;for(c in g)a.box.style[c]=g[c];k()};Y=function(a){var c=E.items[this._itemIdx];
c.onclick&&c.onclick.call(c,a);a.originalEvent.stopPropagation?a.originalEvent.stopPropagation():a.originalEvent.cancelBubble=!0;E.hide()};E.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=ia(N),this.left=a.x,this.top=a.y)};E.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=ia(N),this.left=a.x,this.top=
a.y)};E.redraw=function(){var a=this.menuContainer;this.items=m;a?D.call(this.menuContainer):N&&void 0!==N.x&&void 0!==N.y?(this.menuContainer=H(),D.call(this.menuContainer),a=ia(N),this.left=a.x,this.top=a.y,this.menuContainer.style.left=this.left+"px",this.menuContainer.style.top=this.top+"px"):(this.menuContainer=H(),D.call(this.menuContainer))};E.show=function(a){var c=this;a&&void 0!==a.x&&void 0!==a.y?(a=ia(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;d.click(Z)},400)};E.hide=function(){this.visible&&(this.visible=!1,E.menuContainer.style.display="none",E.menuContainer.style.left=-E.width+"px",E.menuContainer.style.top=-E.height+"px",d.unclick(Z))};E.update=function(a){a&&a.length&&(this.items=a,this.redraw())};E.updatePosition=function(a){var b=s.left,u=s.top;s=fa(c.container);a?(N=a,a=ia(a),this.left=a.x,this.top=a.y):(this.left-=
b-s.left,this.top-=u-s.top)};E.add=function(a){var c=this.menuItems,u=c.length,h;b.setStyle(g);this.width=Q(this.width,b.getOriSize(a.text).width);c[u]={};c=c[u].box=B.createElement("div");c.style.height=this.itemH+"px";c.style.lineHeight=this.itemH+"px";for(h in t)c.style[h]=t[h];for(h in g)c.style[h]=g[h];E.menuRect.appendChild(c);c.innerHTML=a.text;p.dem.listen(c,"click",Y);p.dem.listen(c,"pointerhover",C);E.menuItems[u].box._itemIdx=u;this.height+=this.itemH};E.removeItems=function(){for(var a=
this.menuItems,c=a&&a.length,b;c--;)b=a[c],p.dem.unlisten(b.box,"click",Y),p.dem.unlisten(b.box,"pointerhover",C),b.box&&b.box.parentNode&&b.box.parentNode.removeChild(b.box);delete this.menuItems;delete this.items};E.setPosition=function(a){void 0!==a.x&&void 0!==a.y&&(this.menuContainer.style.x=a.x,this.menuContainer.style.y=a.y)};E.destroy=function(){this.removeItems();this.menuContainer.parentNode.removeChild(this.menuContainer)};m&&m.length&&(E.redraw(),E.hide());return E},getDefinedColor:function(a,
c){return a||0===a||""===a?a:c},getFirstValue:ca,getFirstColor:function(a){a=a.split(",")[0];a=a.replace(K,"");""==a&&(a="000000");return a.replace(b,"#")},getColorCodeString:function(a,c){var b="",h,d,r=0,e=c.split(",");for(d=e.length;r<d;r+=1)h=e[r].split("-"),b=2===h.length?"-1"!==h[0].indexOf("dark")?b+(Oa(a,100-parseInt(h[1],10))+","):b+(La(a,100-parseInt(h[1],10))+","):b+(e[r]+",");return b.substring(0,b.length-1)},pluckColor:function(a){if(ya(a))return a=a.split(",")[0],a=a.replace(K,""),""==
a&&(a="000000"),a.replace(b,"#")},toRaphaelColor:za,gradientify:hb,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:ia,parseUnsafeString:Z,parseTooltext:E,toPrecision:function(a,c){var b=w(10,c);return e(a*b)/b},hasTouch:s,CREDIT_HREF:R,CREDIT_STRING:"",getSentenceCase:function(a){a=a||"";return a.charAt(0).toUpperCase()+
a.substr(1)},getCrispValues:function(a,c,b){var h=b%2/2;b=e(a+h)-h;a=e(a+c+h)-h-b;return{position:b,distance:a}},regescape:function(a){return a&&a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},regReplaceEscape:sa,isArray:Ga,stubFN:function(){},falseFN:function(){return!1},stableSort:function(a,c){var b=a.length,h;for(h=0;h<b;h++)a[h].ssI=h;a.sort(function(a,b){var h=c(a,b);return 0===h?a.ssI-b.ssI:h});for(h=0;h<b;h++)delete a[h].ssI},hasSVG:v,isIE:l,lineHeightFactor:1.2,getLinkAction:function(a,
c){var b=function(a){return a};return function(){var h=na((a.chart||a.map||{}).unescapelinks,1),r=ca(this.link,""),e=Y(r,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=e,p,t,m,N,E,n,M,s,l,w;void 0!==e&&(h&&(e=k.decodeURIComponent?k.decodeURIComponent(e):k.unescape(e)),e=e.replace(/^\s+/,"").replace(/\s+$/,""),-1!==e.search(/^[a-z]*\s*[\-\:]\s*/i)&&
(E=e.split(/\s*[\-\:]\s*/)[0].toLowerCase(),w=E.length),setTimeout(function(){switch(E){case "j":e=e.replace(/^j\s*\-/i,"j-");p=e.indexOf("-",2);-1===p?da(e.slice(2)):da(e.substr(2,p-2).replace(/\s/g,""),e.slice(p+1));break;case "javascript":aa(e.replace(/^javascript\s*\:/i,""));break;case "n":e.replace(/^n\s*\-/i,"n-");k.open(b(e.slice(2),h));break;case "f":e=e.replace(/^f\s*\-/i,"f-");p=e.indexOf("-",2);-1!==p?(t=e.substr(2,p-2))&&k.frames[t]?k.frames[t].location=b(e.slice(p+1),h):k.open(b(e.slice(p+
1),h),t):k.open(b(e.slice(2),h));break;case "p":e=e.replace(/p\s*\-/i,"p-");p=e.indexOf("-",2);m=e.indexOf(",",2);-1===p&&(p=1);N=b(e.slice(p+1),h);k.open(N,e.substr(2,m-2),e.substr(m+1,p-m-1)).focus();break;case "newchart":case "newmap":":"===e.charAt(w)&&(p=e.indexOf("-",w+1),l=e.substring(w+1,p),w=p);p=e.indexOf("-",w+1);n=e.substring(w+1,p).toLowerCase();switch(n){case "xmlurl":case "jsonurl":s=e.substring(p+1,e.length);break;case "xml":case "json":var r=M=e.substring(p+1,e.length),S={chart:{}},
W,r=r.toLowerCase();if(a.linkeddata)for(W=0;W<a.linkeddata.length;W+=1)a.linkeddata[W].id.toLowerCase()===r&&(S=a.linkeddata[W].linkedchart||a.linkeddata[W].linkedmap);s=S;n="json"}d.raiseEvent("linkedChartInvoked",{alias:l,linkType:n.toUpperCase(),data:s},c);break;default:k.location.href=e}d.raiseEvent("linkClicked",{linkProvided:g,linkInvoked:e,linkAction:E&&E.toLowerCase()},c)},0))}},graphics:{parseAlpha:ga,convertColor:la,getDarkColor:La,getLightColor:Oa,mapSymbolName:function(a,c){var b="circle";
a=ia(a);3<=a&&(b=(c?"spoke_":"poly_")+a);return b},getColumnColor:function(a,c,b,h,d,r,e,g,p){var t,m;t=a.split(",");m=c.split(",");r=r.split(",");e=e.split(",");a=a.replace(/\s/g,"").replace(/\,$/,"");p?g={FCcolor:{color:t[0],alpha:m[0]}}:d?(a=t[0],m=m[0],g={FCcolor:{color:La(a,75)+","+Oa(a,10)+","+La(a,90)+","+Oa(a,55)+","+La(a,80),alpha:m+","+m+","+m+","+m+","+m,ratio:"0,11,14,57,18",angle:g?"90":"0"}},r=[La(a,70)]):(c=ga(c,t.length),g={FCcolor:{color:a,alpha:c,ratio:b,angle:g?-h:h}});return[g,
{FCcolor:{color:r[0],alpha:e[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:Ha,getValidColor:function(a){return F.test(Ha(a))&&a},HSBtoRGB:function(a){var c=a[0],b=0,h=0,d=0,r=[],r=a[1]/100;a=a[2]/100;var g=c/60-Math.floor(c/60),p=a*(1-r),t=a*(1-g*r),r=a*(1-(1-g)*r);switch(Math.floor(c/60)%6){case 0:b=a;h=r;d=p;break;case 1:b=t;h=a;d=p;break;case 2:b=p;h=a;d=r;break;case 3:b=p;h=t;d=a;break;case 4:b=r;h=p;d=a;break;case 5:b=
a,h=p,d=t}return r=[e(255*b),e(255*h),e(255*d)]},RGBtoHSB:function(a){var c=a[0],b=a[1];a=a[2];var h=Math.max(Math.max(c,b),a),d=Math.min(Math.min(c,b),a),r=0,g=0;h==d?r=0:h==c?r=(60*(b-a)/(h-d)+360)%360:h==b?r=60*(a-c)/(h-d)+120:h==a&&(r=60*(c-b)/(h-d)+240);g=0===h?0:(h-d)/h;return[e(r),e(100*g),e(h/255*100)]},RGBtoHex:function(a){return("000000"+(a[0]<<16|a[1]<<8|a[2]).toString(16)).slice(-6)},HEXtoRGB:Pa},setImageDisplayMode:function(a,c,b,h,d,r,e,g){var p=h/100*g.width;h=h/100*g.height;g={};var t,
m=r-2*d;t=e-2*d;var E=function(a,c,b,h,r,e){var g={};switch(a){case "top":g.y=d;break;case "bottom":g.y=e-h-d;break;case "middle":g.y=(e-h)/2}switch(c){case "left":g.x=d;break;case "right":g.x=r-b-d;break;case "middle":g.x=(r-b)/2}return g};switch(a){case "center":g.width=p;g.height=h;g.y=e/2-h/2;g.x=r/2-p/2;break;case "stretch":g.width=r-2*d;g.height=e-2*d;g.y=d;g.x=d;break;case "tile":g.width=p;g.height=h;g.tileInfo={};g.tileInfo.xCount=a=Math.ceil(m/p);g.tileInfo.yCount=t=Math.ceil(t/h);c=E(c,
b,p*a,h*t,r,e);g.y=c.y;g.x=c.x;break;case "fit":a=p/h>m/t?m/p:t/h;g.width=p*a;g.height=h*a;c=E(c,b,g.width,g.height,r,e);g.y=c.y;g.x=c.x;break;case "fill":a=p/h>m/t?t/h:m/p;g.width=p*a;g.height=h*a;c=E(c,b,g.width,g.height,r,e);g.y=c.y;g.x=c.x;break;default:c=E(c,b,p,h,r,e),g.width=p,g.height=h,g.y=c.y,g.x=c.x}return g},setLineHeight:qb,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:tb,createTrendLine:eb,getDashStyle:jb,axisLabelAdder:sb,chartAPI:r,createDialog:xb})}]);
window.FusionCharts&&window.FusionCharts.register("module",["private","vendor.redraphael",function(){var d=this.hcLib,k=window.Raphael,B;(function(){(function(d){var l=/[\.\/]/,c=function(){},k=function(a,c){return a-c},b,J,a={n:{}},D=function(a,c){a=String(a);var d=J,e=Array.prototype.slice.call(arguments,2),g=D.listeners(a),n=0,s,l=[],m={},v=[],B=b;b=a;for(var X=J=0,$=g.length;X<$;X++)"zIndex"in g[X]&&(l.push(g[X].zIndex),0>g[X].zIndex&&(m[g[X].zIndex]=g[X]));for(l.sort(k);0>l[n];)if(s=m[l[n++]],
v.push(s.apply(c,e)),J)return J=d,v;for(X=0;X<$;X++)if(s=g[X],"zIndex"in s)if(s.zIndex==l[n]){v.push(s.apply(c,e));if(J)break;do if(n++,(s=m[l[n]])&&v.push(s.apply(c,e)),J)break;while(s)}else m[s.zIndex]=s;else if(v.push(s.apply(c,e)),J)break;J=d;b=B;return v.length?v:null};D._events=a;D.listeners=function(c){c=c.split(l);var b=a,d,e,g,n,s,D,m,k=[b],v=[];g=0;for(n=c.length;g<n;g++){m=[];s=0;for(D=k.length;s<D;s++)for(b=k[s].n,d=[b[c[g]],b["*"]],e=2;e--;)if(b=d[e])m.push(b),v=v.concat(b.f||[]);k=m}return v};
D.on=function(b,d){b=String(b);if("function"!=typeof d)return function(){};for(var w=b.split(l),e=a,g=0,n=w.length;g<n;g++)e=e.n,e=e.hasOwnProperty(w[g])&&e[w[g]]||(e[w[g]]={n:{}});e.f=e.f||[];g=0;for(n=e.f.length;g<n;g++)if(e.f[g]==d)return c;e.f.push(d);return function(a){+a==+a&&(d.zIndex=+a)}};D.f=function(a){var c=[].slice.call(arguments,1);return function(){D.apply(null,[a,null].concat(c).concat([].slice.call(arguments,0)))}};D.stop=function(){J=1};D.nt=function(a){return a?RegExp("(?:\\.|\\/|^)"+
a+"(?:\\.|\\/|$)").test(b):b};D.nts=function(){return b.split(l)};D.off=D.unbind=function(c,b){if(c){var d=c.split(l),e,g,n,s,k,m,v=[a];s=0;for(k=d.length;s<k;s++)for(m=0;m<v.length;m+=n.length-2){n=[m,1];e=v[m].n;if("*"!=d[s])e[d[s]]&&n.push(e[d[s]]);else for(g in e)e.hasOwnProperty(g)&&n.push(e[g]);v.splice.apply(v,n)}s=0;for(k=v.length;s<k;s++)for(e=v[s];e.n;){if(b){if(e.f){m=0;for(d=e.f.length;m<d;m++)if(e.f[m]==b){e.f.splice(m,1);break}!e.f.length&&delete e.f}for(g in e.n)if(e.n.hasOwnProperty(g)&&
e.n[g].f){n=e.n[g].f;m=0;for(d=n.length;m<d;m++)if(n[m]==b){n.splice(m,1);break}!n.length&&delete e.n[g].f}}else for(g in delete e.f,e.n)e.n.hasOwnProperty(g)&&e.n[g].f&&delete e.n[g].f;e=e.n}}else D._events=a={n:{}}};D.once=function(a,c){var b=function(){D.unbind(a,b);return c.apply(this,arguments)};return D.on(a,b)};D.version="0.4.2";D.toString=function(){return"You are running Eve 0.4.2"};"undefined"!=typeof module&&module.exports?module.exports=D:"undefined"!=typeof define?define("eve",[],function(){return D}):
d.eve=D})(this);(function(d,l){"function"===typeof define&&define.amd?define(["eve"],function(c){return l(d,c)}):l(d,d.eve)})(this,function(d,l){function c(a){var b,f;c._url="";if(c.is(a,"function"))return s?a():l.on("raphael.DOMload",a);if(c.is(a,$))return c._engine.create[I](c,a.splice(0,3+c.is(a[0],X))).add(a);b=Array.prototype.slice.call(arguments,0);return c.is(b[b.length-1],"function")?(f=b.pop(),s?f.call(c._engine.create[I](c,b)):l.on("raphael.DOMload",function(){f.call(c._engine.create[I](c,
b))})):c._engine.create[I](c,arguments)}function k(){return this.hex}function b(a,c){for(var b=[],f=0,q=a.length;q-2*!c>f;f+=2){var h=[{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?q-4==f?h[3]={x:+a[0],y:+a[1]}:q-2==f&&(h[2]={x:+a[0],y:+a[1]},h[3]={x:+a[2],y:+a[3]}):h[0]={x:+a[q-2],y:+a[q-1]}:q-4==f?h[3]=h[2]:f||(h[0]={x:+a[f],y:+a[f+1]});b.push(["C",(-h[0].x+6*h[1].x+h[2].x)/6,(-h[0].y+6*h[1].y+h[2].y)/6,(h[1].x+6*h[2].x-h[3].x)/6,(h[1].y+6*h[2].y-h[3].y)/
6,h[2].x,h[2].y])}return b}function J(a,c,b,f,q,h,u,A,d){null==d&&(d=1);d=(1<d?1:0>d?0:d)/2;for(var G=[-0.1252,0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],r=[0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],e=0,g=0;12>g;g++)var p=d*G[g]+d,t=p*(p*(-3*a+9*b-9*q+3*u)+6*a-12*b+6*q)-3*a+3*b,p=p*(p*(-3*c+9*f-9*h+3*A)+6*c-12*f+6*h)-3*c+3*f,e=e+r[g]*ga(t*t+p*p);return d*e}function a(a,c,b,f,q,h,u,A,d){if(!(0>d||J(a,c,b,f,q,h,u,A)<
d)){var G=0.5,r=1-G,e;for(e=J(a,c,b,f,q,h,u,A,r);0.01<ea(e-d);)G/=2,r+=(e<d?1:-1)*G,e=J(a,c,b,f,q,h,u,A,r);return r}}function D(a,b,f){a=c._path2curve(a);b=c._path2curve(b);for(var q,h,u,A,d,G,r,e,g,p,t=f?0:[],L=0,z=a.length;L<z;L++)if(g=a[L],"M"==g[0])q=d=g[1],h=G=g[2];else{"C"==g[0]?(g=[q,h].concat(g.slice(1)),q=g[6],h=g[7]):(g=[q,h,q,h,d,G,d,G],q=d,h=G);for(var va=0,m=b.length;va<m;va++)if(p=b[va],"M"==p[0])u=r=p[1],A=e=p[2];else{"C"==p[0]?(p=[u,A].concat(p.slice(1)),u=p[6],A=p[7]):(p=[u,A,u,A,
r,e,r,e],u=r,A=e);var E;var N=g,n=p;E=f;var O=c.bezierBBox(N),M=c.bezierBBox(n);if(c.isBBoxIntersect(O,M)){for(var O=J.apply(0,N),M=J.apply(0,n),O=oa(~~(O/5),1),M=oa(~~(M/5),1),s=[],V=[],l={},Ib=E?0:[],qa=0;qa<O+1;qa++){var W=c.findDotsAtSegment.apply(c,N.concat(qa/O));s.push({x:W.x,y:W.y,t:qa/O})}for(qa=0;qa<M+1;qa++)W=c.findDotsAtSegment.apply(c,n.concat(qa/M)),V.push({x:W.x,y:W.y,t:qa/M});for(qa=0;qa<O;qa++)for(N=0;N<M;N++){var Fa=s[qa],U=s[qa+1],n=V[N],W=V[N+1],S=0.001>ea(U.x-Fa.x)?"y":"x",w=
0.001>ea(W.x-n.x)?"y":"x",D;D=Fa.x;var tc=Fa.y,kc=U.x,H=U.y,k=n.x,nc=n.y,Va=W.x,ca=W.y;if(oa(D,kc)<ua(k,Va)||ua(D,kc)>oa(k,Va)||oa(tc,H)<ua(nc,ca)||ua(tc,H)>oa(nc,ca))D=void 0;else{var P=(D*H-tc*kc)*(k-Va)-(D-kc)*(k*ca-nc*Va),ia=(D*H-tc*kc)*(nc-ca)-(tc-H)*(k*ca-nc*Va),Z=(D-kc)*(nc-ca)-(tc-H)*(k-Va);if(Z){var P=P/Z,ia=ia/Z,Z=+P.toFixed(2),na=+ia.toFixed(2);D=Z<+ua(D,kc).toFixed(2)||Z>+oa(D,kc).toFixed(2)||Z<+ua(k,Va).toFixed(2)||Z>+oa(k,Va).toFixed(2)||na<+ua(tc,H).toFixed(2)||na>+oa(tc,H).toFixed(2)||
na<+ua(nc,ca).toFixed(2)||na>+oa(nc,ca).toFixed(2)?void 0:{x:P,y:ia}}else D=void 0}D&&l[D.x.toFixed(4)]!=D.y.toFixed(4)&&(l[D.x.toFixed(4)]=D.y.toFixed(4),Fa=Fa.t+ea((D[S]-Fa[S])/(U[S]-Fa[S]))*(U.t-Fa.t),n=n.t+ea((D[w]-n[w])/(W[w]-n[w]))*(W.t-n.t),0<=Fa&&1.001>=Fa&&0<=n&&1.001>=n&&(E?Ib++:Ib.push({x:D.x,y:D.y,t1:ua(Fa,1),t2:ua(n,1)})))}E=Ib}else E=E?0:[];if(f)t+=E;else{O=0;for(M=E.length;O<M;O++)E[O].segment1=L,E[O].segment2=va,E[O].bez1=g,E[O].bez2=p;t=t.concat(E)}}}return t}function F(a,c,b,f,q,
h){null!=a?(this.a=+a,this.b=+c,this.c=+b,this.d=+f,this.e=+q,this.f=+h):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function C(){return this.x+R+this.y+R+this.width+" × "+this.height}function w(a,c,b,f,q,h){function u(a,c){var b,Mb,f,q;f=a;for(Mb=0;8>Mb;Mb++){q=((G*f+d)*f+A)*f-a;if(ea(q)<c)return f;b=(3*G*f+2*d)*f+A;if(1E-6>ea(b))break;f-=q/b}b=0;Mb=1;f=a;if(f<b)return b;if(f>Mb)return Mb;for(;b<Mb;){q=((G*f+d)*f+A)*f;if(ea(q-a)<c)break;a>q?b=f:Mb=f;f=(Mb-b)/2+b}return f}var A=3*c,d=3*(f-
c)-A,G=1-A-d,r=3*b,e=3*(q-b)-r,g=1-r-e;return function(a,c){var b=u(a,c);return((g*b+e)*b+r)*b}(a,1/(200*h))}function e(a,c){var b=[],f={};this.ms=c;this.times=1;if(a){for(var q in a)a[m](q)&&(f[Z(q)]=a[q],b.push(Z(q)));b.sort(ha)}this.anim=f;this.top=b[b.length-1];this.percents=b}function g(a,b,f,q,h,u){f=Z(f);var A,d,G,r,e,g,t=a.ms,L={},z={},E={};if(q)for(g=0,n=Ra.length;g<n;g++){var N=Ra[g];if(N.el.id==b.id&&N.anim==a){N.percent!=f?(Ra.splice(g,1),G=1):d=N;b.attr(N.totalOrigin);break}}else q=+z;
g=0;for(var n=a.percents.length;g<n;g++)if(a.percents[g]==f||a.percents[g]>q*a.top){f=a.percents[g];e=a.percents[g-1]||0;t=t/a.top*(f-e);r=a.percents[g+1];A=a.anim[f];break}else q&&b.attr(a.anim[a.percents[g]]);if(A){if(d)d.initstatus=q,d.start=new Date-d.ms*q;else{for(var O in A)if(A[m](O)&&(U[m](O)||b.ca[O]))switch(L[O]=b.attr(O),null==L[O]&&(L[O]=V[O]),z[O]=A[O],U[O]){case X:E[O]=(z[O]-L[O])/t;break;case "colour":L[O]=c.getRGB(L[O]);g=c.getRGB(z[O]);E[O]={r:(g.r-L[O].r)/t,g:(g.g-L[O].g)/t,b:(g.b-
L[O].b)/t};break;case "path":g=va(L[O],z[O]);N=g[1];L[O]=g[0];E[O]=[];g=0;for(n=L[O].length;g<n;g++){E[O][g]=[0];for(var M=1,s=L[O][g].length;M<s;M++)E[O][g][M]=(N[g][M]-L[O][g][M])/t}break;case "transform":g=b._;if(n=gd(g[O],z[O]))for(L[O]=n.from,z[O]=n.to,E[O]=[],E[O].real=!0,g=0,n=L[O].length;g<n;g++)for(E[O][g]=[L[O][g][0]],M=1,s=L[O][g].length;M<s;M++)E[O][g][M]=(z[O][g][M]-L[O][g][M])/t;else n=b.matrix||new F,g={_:{transform:g.transform},getBBox:function(){return b.getBBox(1)}},L[O]=[n.a,n.b,
n.c,n.d,n.e,n.f],nc(g,z[O]),z[O]=g._.transform,E[O]=[(g.matrix.a-n.a)/t,(g.matrix.b-n.b)/t,(g.matrix.c-n.c)/t,(g.matrix.d-n.d)/t,(g.matrix.e-n.e)/t,(g.matrix.f-n.f)/t];break;case "csv":n=ia(A[O])[p](qb);N=ia(L[O])[p](qb);if("clip-rect"==O)for(L[O]=N,E[O]=[],g=N.length;g--;)E[O][g]=(n[g]-L[O][g])/t;z[O]=n;break;default:for(n=[][Q](A[O]),N=[][Q](L[O]),E[O]=[],g=b.ca[O].length;g--;)E[O][g]=((n[g]||0)-(N[g]||0))/t}g=A.easing;O=c.easing_formulas[g];if(!O)if((O=ia(g).match(xb))&&5==O.length){var qa=O;O=
function(a){return w(a,+qa[1],+qa[2],+qa[3],+qa[4],t)}}else O=pa;g=A.start||a.start||+new Date;N={anim:a,percent:f,timestamp:g,start:g+(a.del||0),status:0,initstatus:q||0,stop:!1,ms:t,easing:O,from:L,diff:E,to:z,el:b,callback:A.callback,prev:e,next:r,repeat:u||a.times,origin:b.attr(),totalOrigin:h};Ra.push(N);if(q&&!d&&!G&&(N.stop=!0,N.start=new Date-t*q,1==Ra.length))return Jc();G&&(N.start=new Date-N.ms*q);1==Ra.length&&bd(Jc)}l("raphael.anim.start."+b.id,b,a)}}function n(a){for(var c=0;c<Ra.length;c++)Ra[c].el.paper==
a&&Ra.splice(c--,1)}c.upgrade="1.0.0";c.version="2.1.0";c.eve=l;B=c;var s,R=" ",m="hasOwnProperty",I="apply",Q="concat",X="number",$="array",p="split",H=Array.prototype.slice,S=Array.prototype.splice,fa={doc:document,win:d},sa=Object.prototype[m].call(fa.win,"Raphael"),ya=fa.win.Raphael,ca=fa.doc,Y=fa.win,xa=c.supportsTouch="createTouch"in ca,t=function(){};c.ca=c.customAttributes=t.prototype;var M=function(){this.ca=this.customAttributes=new t;this._CustomAttributes=function(){};this._CustomAttributes.prototype=
this.ca;this._elementsById={};this.id=c._oid++;l("raphael.new",this)},h=c.fn=M.prototype=c.prototype,N={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},W="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[p](R),na=c._touchMap={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},ia=Y.String,Z=Y.parseFloat,Aa=Y.parseInt,Ga=Y.Math,oa=Ga.max,ua=Ga.min,ea=Ga.abs,da=Ga.pow,aa=Ga.cos,ba=Ga.sin,ga=Ga.sqrt,la=Ga.round,za=Ga.PI,hb=
za/180,Ha=180/za,La=ia.prototype.toLowerCase,Oa=ia.prototype.toUpperCase,Pa=Y.Object.prototype.toString,qb=/[, ]+/,sb=/\{(\d+)\}/g;c._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var tb=/^\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,xb=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,
kb=/[\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]*/,eb=/,?([achlmqrstvxz]),?/gi,jb=/([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,
lb=/([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,r=/(-?\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 E={NaN:1,Infinity:1,"-Infinity":1},z={hs:1,rg:1},V=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},U=c._availableAnimAttrs={blur:X,"clip-rect":"csv","clip-path":"path",cx:X,cy:X,fill:"colour","fill-opacity":X,"font-size":X,height:X,opacity:X,path:"path",r:X,rx:X,ry:X,stroke:"colour","stroke-opacity":X,"stroke-width":X,transform:"transform",width:X,x:X,
y:X},P={},ha=function(a,c){return Z(a)-Z(c)},ra=function(){},pa=function(a){return a},ja=c._rectPath=function(a,c,b,f,q){return q?[["M",a+q,c],["l",b-2*q,0],["a",q,q,0,0,1,q,q],["l",0,f-2*q],["a",q,q,0,0,1,-q,q],["l",2*q-b,0],["a",q,q,0,0,1,-q,-q],["l",0,2*q-f],["a",q,q,0,0,1,q,-q],["z"]]:[["M",a,c],["l",b,0],["l",0,f],["l",-b,0],["z"]]},Ia=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"]]},ka=c._getPath={group:function(){return!1},path:function(a){return a.attr("path")},
circle:function(a){a=a.attrs;return Ia(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return Ia(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return ja(a.x,a.y,a.width,a.height,a.r)},image:function(a){a=a.attrs;return ja(a.x,a.y,a.width,a.height)},text:function(a){a=a._getBBox();return ja(a.x,a.y,a.width,a.height)}},Ca=c.mapPath=function(a,c){if(!c)return a;var b,f,q,h,u,A,d;a=va(a);q=0;for(u=a.length;q<u;q++)for(d=a[q],h=1,A=d.length;h<A;h+=2)b=c.x(d[h],d[h+1]),f=c.y(d[h],d[h+1]),d[h]=b,d[h+1]=
f;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 Ka=c._lastArgIfGroup=function(a,b){var f=a.length-1,q=a[f];if(q&&q.constructor===c.el.constructor&&"group"===q.type)return b&&(a[f]=void 0,delete a[f],S.call(a,f,1)),q},T=c._serializeArgs=function(a){var b=a[0],f,q;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],$),b=1,q=arguments.length;b<q;b+=2)f[arguments[b]]||
(f[arguments[b]]=arguments[b+1]);else for(f={},b=1,q=arguments.length;b<q;b+=2)f[arguments[b]]=a[(b-1)/2]||arguments[b+1];return f},ob=c.merge=function(a,c,b,f,q){var h,u,A,d;q?(f.push(a),q.push(c)):(f=[a],q=[c]);if(c instanceof Array)for(h=0;h<c.length;h+=1){try{u=a[h],A=c[h]}catch(G){continue}if("object"!==typeof A)b&&void 0===A||(a[h]=A);else{if(null===u||"object"!==typeof u)u=a[h]=A instanceof Array?[]:{};d=checkCyclicRef(A,q);-1!==d?u=a[h]=f[d]:ob(u,A,b,f,q)}}else for(h in c){try{u=a[h],A=c[h]}catch(r){continue}if(null!==
A&&"object"===typeof A)if(d=Pa.call(A),"[object Object]"===d){if(null===u||"object"!==typeof u)u=a[h]={};d=checkCyclicRef(A,q);-1!==d?u=a[h]=f[d]:ob(u,A,b,f,q)}else"[object Array]"===d?(null!==u&&u instanceof Array||(u=a[h]=[]),d=checkCyclicRef(A,q),-1!==d?u=a[h]=f[d]:ob(u,A,b,f,q)):a[h]=A;else a[h]=A}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?[]:{});ob(a,c,b);return a};
var Ta=c.is=function(a,c){c=La.call(c);return"finite"==c?!E[m](+a):c==$?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)||Pa.call(a).slice(8,-1).toLowerCase()==c:!1},ab=c.clone=function(a){if(Object(a)!==a)return a;var c=new a.constructor,b;for(b in a)a[m](b)&&(c[b]=ab(a[b]));return c};c.createUUID=function(a,c){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,
c).toUpperCase()}}(/[xy]/g,function(a){var c=16*Ga.random()|0;return("x"==a?c:c&3|8).toString(16)});c._g=fa;c.type=Y.ENABLE_RED_CANVAS&&(Y.CanvasRenderingContext2D||ca.createElement("canvas").getContext)?"CANVAS":Y.SVGAngle||ca.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if("VML"==c.type){var mb=ca.createElement("div"),Fb;mb.innerHTML='<v:shape adj="1"/>';Fb=mb.firstChild;Fb.style.behavior="url(#default#VML)";if(!Fb||"object"!=typeof Fb.adj)return c.type=
"";mb=null}c.svg=!((c.vml="VML"==c.type)||(c.canvas="CANVAS"==c.type));c._Paper=M;c._id=0;c._oid=0;c.angle=function(a,b,f,q,h,u){return null==h?(a-=f,b-=q,a||b?(Ga.atan2(-b,-a)*Ha+540)%360:0):c.angle(a,b,h,u)-c.angle(f,q,h,u)};c.rad=function(a){return a%360*hb};c.deg=function(a){return a*Ha%360};c.snapTo=function(a,c,b){var f;Ta(b,"finite")||(b=10);if(Ta(a,$))for(f=a.length;f--;){if(ea(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){l("raphael.setWindow",
c,fa.win,a);Y=fa.win=a;ca=fa.doc=fa.win.document;c._engine.initWin&&c._engine.initWin(fa.win)};var Ja=function(a){if(c.vml){var b=/^\s+|\s+$/g,f;try{var q=new ActiveXObject("htmlfile");q.write("<body>");q.close();f=q.body}catch(h){f=createPopup().document.body}var u=f.createTextRange();Ja=Bb(function(a){try{f.style.color=ia(a).replace(b,"");var c=u.queryCommandValue("ForeColor");return"#"+("000000"+((c&255)<<16|c&65280|(c&16711680)>>>16).toString(16)).slice(-6)}catch(q){return"none"}})}else{var A=
fa.doc.createElement("i");A.title="Raphaël Colour Picker";A.style.display="none";fa.doc.body.appendChild(A);Ja=Bb(function(a){A.style.color=a;return fa.doc.defaultView.getComputedStyle(A,"").getPropertyValue("color")})}return Ja(a)},Xb=function(){return"hsb("+[this.h,this.s,this.b]+")"},ma=function(){return"hsl("+[this.h,this.s,this.l]+")"},bb=function(){return this.hex},ic=function(a,b,f){null==b&&Ta(a,"object")&&"r"in a&&"g"in a&&"b"in a&&(f=a.b,b=a.g,a=a.r);null==b&&Ta(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]},Eb=function(a,b,f,q){var h={r:a*=255,g:b*=255,b:f*=255,hex:c.rgb(a,b,f),toString:bb};Ta(q,"finite")&&(h.opacity=q);return h};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=bb;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 q,h,u;a=360*a%360/60;u=b*c;c=u*(1-ea(a%2-1));b=q=h=b-u;a=~~a;b+=[u,c,0,0,c,u][a];q+=[c,u,u,c,0,0][a];h+=[0,0,c,u,u,c][a];return Eb(b,q,h,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 q,h,u;a=360*a%360/60;u=2*c*(0.5>b?b:1-b);c=u*(1-ea(a%2-1));b=q=h=b-u/2;a=~~a;b+=[u,c,0,0,c,u][a];q+=[c,u,u,c,0,0][a];h+=[0,0,c,u,u,c][a];return Eb(b,q,h,f)};c.rgb2hsb=function(a,c,b){b=ic(a,c,b);a=b[0];c=b[1];b=b[2];var f,q;f=oa(a,c,b);q=f-ua(a,c,b);a=((0==q?0:f==a?(c-b)/q:f==c?(b-a)/q+2:(a-c)/q+4)+360)%6*60/360;return{h:a,s:0==q?0:q/f,b:f,toString:Xb}};c.rgb2hsl=function(a,c,b){b=ic(a,c,b);a=b[0];c=b[1];b=b[2];var f,q,h;f=oa(a,c,b);q=ua(a,c,b);h=f-q;a=((0==h?0:f==a?(c-b)/h:f==c?(b-a)/h+2:(a-
c)/h+4)+360)%6*60/360;f=(f+q)/2;return{h:a,s:0==h?0:0.5>f?h/(2*f):h/(2-2*f),l:f,toString:ma}};c._path2string=function(){return this.join(",").replace(eb,"$1")};var Bb=c._cacher=function(a,c,b){function f(){var q=H.call(arguments,0),h=q.join("␀"),u=f.cache=f.cache||{},A=f.count=f.count||[];if(u[m](h)){a:for(var q=A,A=h,d=0,G=q.length;d<G;d++)if(q[d]===A){q.push(q.splice(d,1)[0]);break a}return b?b(u[h]):u[h]}1E3<=A.length&&delete u[A.shift()];A.push(h);u[h]=a[I](c,q);return b?b(u[h]):u[h]}return f};
c._preload=function(a,c){var b=ca.createElement("img");b.style.cssText="position:absolute;left:-9999em;top:-9999em";b.onload=function(){c.call(this);this.onload=null;ca.body.removeChild(this)};b.onerror=function(){ca.body.removeChild(this)};ca.body.appendChild(b);b.src=a};c.getRGB=Bb(function(a){var b,f,q,h,u;a&&Ta(a,"object")&&"opacity"in a&&(b=a.opacity);if(!a||(a=ia(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:k};if("none"==a)return{r:-1,g:-1,b:-1,hex:"none",toString:k};
!z[m](a.toLowerCase().substring(0,2))&&"#"!==a.charAt()&&(a=Ja(a));if(a=a.match(tb)){a[2]&&(h=Aa(a[2].substring(5),16),q=Aa(a[2].substring(3,5),16),f=Aa(a[2].substring(1,3),16));a[3]&&(h=Aa((u=a[3].charAt(3))+u,16),q=Aa((u=a[3].charAt(2))+u,16),f=Aa((u=a[3].charAt(1))+u,16));a[4]&&(u=a[4][p](kb),f=Z(u[0]),"%"==u[0].slice(-1)&&(f*=2.55),q=Z(u[1]),"%"==u[1].slice(-1)&&(q*=2.55),h=Z(u[2]),"%"==u[2].slice(-1)&&(h*=2.55),"rgba"==a[1].toLowerCase().slice(0,4)&&(b=Z(u[3])),u[3]&&"%"==u[3].slice(-1)&&(b/=
100));if(a[5])return u=a[5][p](kb),f=Z(u[0]),"%"==u[0].slice(-1)&&(f*=2.55),q=Z(u[1]),"%"==u[1].slice(-1)&&(q*=2.55),h=Z(u[2]),"%"==u[2].slice(-1)&&(h*=2.55),"deg"!=u[0].slice(-3)&&"°"!=u[0].slice(-1)||(f/=360),"hsba"==a[1].toLowerCase().slice(0,4)&&(b=Z(u[3])),u[3]&&"%"==u[3].slice(-1)&&(b/=100),c.hsb2rgb(f,q,h,b);if(a[6])return u=a[6][p](kb),f=Z(u[0]),"%"==u[0].slice(-1)&&(f*=2.55),q=Z(u[1]),"%"==u[1].slice(-1)&&(q*=2.55),h=Z(u[2]),"%"==u[2].slice(-1)&&(h*=2.55),"deg"!=u[0].slice(-3)&&"°"!=u[0].slice(-1)||
(f/=360),"hsla"==a[1].toLowerCase().slice(0,4)&&(b=Z(u[3])),u[3]&&"%"==u[3].slice(-1)&&(b/=100),c.hsl2rgb(f,q,h,b);a={r:f,g:q,b:h,toString:k};a.hex="#"+(16777216|h|q<<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:k}},c);c.tintshade=Bb(function(a,b){var f=c.getRGB(a),q;q=255;0>b&&(b*=-1,q=0);1<b&&(b=1);q=0===b?f:{r:q-(q-f.r)*b,g:q-(q-f.g)*b,b:q-(q-f.b)*b,toString:k};q.hex=c.rgb(q.r,q.g,q.b);f.error&&(q.error=f.error);"opacity"in
f?(q.rgba="rgba("+[q.r,q.g,q.b,f.opacity].join()+")",q.opacity=f.opacity):q.rgba="rgb("+[q.r,q.g,q.b].join()+")";return q},c);c.hsb=Bb(function(a,b,f){return c.hsb2rgb(a,b,f).hex});c.hsl=Bb(function(a,b,f){return c.hsl2rgb(a,b,f).hex});c.rgb=Bb(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||0.75};var c=this.hsb2rgb(a.h,a.s,a.b);a.h+=0.075;1<a.h&&(a.h=0,a.s-=0.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=vb(a);if(b.arr)return ib(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},q=[];c.is(a,$)&&c.is(a[0],$)&&(q=ib(a));q.length||ia(a).replace(jb,function(a,c,b){var h=[];a=c.toLowerCase();b.replace(r,function(a,c){c&&h.push(+c)});"m"==a&&2<h.length&&(q.push([c][Q](h.splice(0,2))),a="l",c="m"==c?"l":"L");if("r"==a)q.push([c][Q](h));else for(;h.length>=f[a]&&(q.push([c][Q](h.splice(0,
f[a]))),f[a]););});q.toString=c._path2string;b.arr=ib(q);return q};c.parseTransformString=Bb(function(a){if(!a)return null;var b=[];c.is(a,$)&&c.is(a[0],$)&&(b=ib(a));b.length||ia(a).replace(lb,function(a,c,f){var q=[];La.call(c);f.replace(r,function(a,c){c&&q.push(+c)});b.push([c][Q](q))});b.toString=c._path2string;return b});var vb=function(a){var c=vb.ps=vb.ps||{};c[a]?c[a].sleep=100:c[a]={sleep:100};setTimeout(function(){for(var b in c)c[m](b)&&b!=a&&(c[b].sleep--,!c[b].sleep&&delete c[b])});
return c[a]};c.findDotsAtSegment=function(a,c,b,f,q,h,u,A,d){var G=1-d,r=da(G,3),g=da(G,2),e=d*d,p=e*d,t=r*a+3*g*d*b+3*G*d*d*q+p*u,r=r*c+3*g*d*f+3*G*d*d*h+p*A,g=a+2*d*(b-a)+e*(q-2*b+a),p=c+2*d*(f-c)+e*(h-2*f+c),L=b+2*d*(q-b)+e*(u-2*q+b),e=f+2*d*(h-f)+e*(A-2*h+f);a=G*a+d*b;c=G*c+d*f;q=G*q+d*u;h=G*h+d*A;A=90-180*Ga.atan2(g-L,p-e)/za;(g>L||p<e)&&(A+=180);return{x:t,y:r,m:{x:g,y:p},n:{x:L,y:e},start:{x:a,y:c},end:{x:q,y:h},alpha:A}};c.bezierBBox=function(a,b,f,q,h,u,A,d){c.is(a,"array")||(a=[a,b,f,q,
h,u,A,d]);a=L.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 D(a,
c)};c.pathIntersectionNumber=function(a,c){return D(a,c,1)};c.isPointInsidePath=function(a,b,f){var q=c.pathBBox(a);return c.isPointInsideBBox(q,b,f)&&(1==D(a,[["M",b,f],["H",q.x2+10]],1)%2||1==D(a,[["M",b,f],["V",q.y2+10]],1)%2)};c._removedFactory=function(a){return function(){l("raphael.log",null,"Raphaël: you are calling to method “"+a+"” of removed object",a)}};var Gb=c.pathBBox=function(a){var c=vb(a);if(c.bbox)return c.bbox;if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};a=va(a);for(var b=
0,f=0,q=[],h=[],u,A=0,d=a.length;A<d;A++)u=a[A],"M"==u[0]?(b=u[1],f=u[2],q.push(b),h.push(f)):(b=L(b,f,u[1],u[2],u[3],u[4],u[5],u[6]),q=q[Q](b.min.x,b.max.x),h=h[Q](b.min.y,b.max.y),b=u[5],f=u[6]);a=ua[I](0,q);u=ua[I](0,h);q=oa[I](0,q);h=oa[I](0,h);h={x:a,y:u,x2:q,y2:h,width:q-a,height:h-u};c.bbox=ab(h);return h},ib=function(a){a=ab(a);a.toString=c._path2string;return a},q=c._pathToRelative=function(a){var b=vb(a);if(b.rel)return ib(b.rel);c.is(a,$)&&c.is(a&&a[0],$)||(a=c.parsePathString(a));var f=
[],q=0,h=0,u=0,A=0,d=0;"M"==a[0][0]&&(q=a[0][1],h=a[0][2],u=q,A=h,d++,f.push(["M",q,h]));for(var G=a.length;d<G;d++){var r=f[d]=[],e=a[d];if(e[0]!=La.call(e[0]))switch(r[0]=La.call(e[0]),r[0]){case "a":r[1]=e[1];r[2]=e[2];r[3]=e[3];r[4]=e[4];r[5]=e[5];r[6]=+(e[6]-q).toFixed(3);r[7]=+(e[7]-h).toFixed(3);break;case "v":r[1]=+(e[1]-h).toFixed(3);break;case "m":u=e[1],A=e[2];default:for(var g=1,p=e.length;g<p;g++)r[g]=+(e[g]-(g%2?q:h)).toFixed(3)}else for(f[d]=[],"m"==e[0]&&(u=e[1]+q,A=e[2]+h),r=0,g=
e.length;r<g;r++)f[d][r]=e[r];e=f[d].length;switch(f[d][0]){case "z":q=u;h=A;break;case "h":q+=+f[d][e-1];break;case "v":h+=+f[d][e-1];break;default:q+=+f[d][e-2],h+=+f[d][e-1]}}f.toString=c._path2string;b.rel=ib(f);return f},u=c._pathToAbsolute=function(a){var f=vb(a),q;if(f.abs)return ib(f.abs);c.is(a,$)&&c.is(a&&a[0],$)||(a=c.parsePathString(a));if(!a||!a.length)return q=["M",0,0],q.toString=c._path2string,q;var h=0,u=0,d=0,A=0,G=0;q=[];"M"==a[0][0]&&(h=+a[0][1],u=+a[0][2],d=h,A=u,G++,q[0]=["M",
h,u]);for(var r=3==a.length&&"M"==a[0][0]&&"R"==a[1][0].toUpperCase()&&"Z"==a[2][0].toUpperCase(),e,g=G,p=a.length;g<p;g++){q.push(G=[]);e=a[g];if(e[0]!=Oa.call(e[0]))switch(G[0]=Oa.call(e[0]),G[0]){case "A":G[1]=e[1];G[2]=e[2];G[3]=e[3];G[4]=e[4];G[5]=e[5];G[6]=+(e[6]+h);G[7]=+(e[7]+u);break;case "V":G[1]=+e[1]+u;break;case "H":G[1]=+e[1]+h;break;case "R":for(var t=[h,u][Q](e.slice(1)),L=2,z=t.length;L<z;L++)t[L]=+t[L]+h,t[++L]=+t[L]+u;q.pop();q=q[Q](b(t,r));break;case "M":d=+e[1]+h,A=+e[2]+u;default:for(L=
1,z=e.length;L<z;L++)G[L]=+e[L]+(L%2?h:u)}else if("R"==e[0])t=[h,u][Q](e.slice(1)),q.pop(),q=q[Q](b(t,r)),G=["R"][Q](e.slice(-2));else for(t=0,L=e.length;t<L;t++)G[t]=e[t];switch(G[0]){case "Z":h=d;u=A;break;case "H":h=G[1];break;case "V":u=G[1];break;case "M":d=G[G.length-2],A=G[G.length-1];default:h=G[G.length-2],u=G[G.length-1]}}q.toString=c._path2string;f.abs=ib(q);return q},A=function(a,c,b,f){return[a,c,b,f,b,f]},G=function(a,c,b,f,q,h){var u=1/3,d=2/3;return[u*a+d*b,u*c+d*f,u*q+d*b,u*h+d*f,
q,h]},f=function(a,c,b,q,h,u,d,A,G,r){var e=120*za/180,g=hb*(+h||0),L=[],t,z=Bb(function(a,c,b){var f=a*aa(b)-c*ba(b);a=a*ba(b)+c*aa(b);return{x:f,y:a}});if(r)E=r[0],t=r[1],u=r[2],O=r[3];else{t=z(a,c,-g);a=t.x;c=t.y;t=z(A,G,-g);A=t.x;G=t.y;aa(hb*h);ba(hb*h);t=(a-A)/2;E=(c-G)/2;O=t*t/(b*b)+E*E/(q*q);1<O&&(O=ga(O),b*=O,q*=O);var O=b*b,va=q*q,O=(u==d?-1:1)*ga(ea((O*va-O*E*E-va*t*t)/(O*E*E+va*t*t)));u=O*b*E/q+(a+A)/2;var O=O*-q*t/b+(c+G)/2,E=Ga.asin(((c-O)/q).toFixed(9));t=Ga.asin(((G-O)/q).toFixed(9));
E=a<u?za-E:E;t=A<u?za-t:t;0>E&&(E=2*za+E);0>t&&(t=2*za+t);d&&E>t&&(E-=2*za);!d&&t>E&&(t-=2*za)}if(ea(t-E)>e){var L=t,va=A,n=G;t=E+e*(d&&t>E?1:-1);A=u+b*aa(t);G=O+q*ba(t);L=f(A,G,b,q,h,0,d,va,n,[t,L,u,O])}u=t-E;h=aa(E);e=ba(E);d=aa(t);t=ba(t);u=Ga.tan(u/4);b=4/3*b*u;u*=4/3*q;q=[a,c];a=[a+b*e,c-u*h];c=[A+b*t,G-u*d];A=[A,G];a[0]=2*q[0]-a[0];a[1]=2*q[1]-a[1];if(r)return[a,c,A][Q](L);L=[a,c,A][Q](L).join()[p](",");r=[];A=0;for(G=L.length;A<G;A++)r[A]=A%2?z(L[A-1],L[A],g).y:z(L[A],L[A+1],g).x;return r},
O=function(a,c,b,f,q,h,u,A,d){var G=1-d;return{x:da(G,3)*a+3*da(G,2)*d*b+3*G*d*d*q+da(d,3)*u,y:da(G,3)*c+3*da(G,2)*d*f+3*G*d*d*h+da(d,3)*A}},L=Bb(function(a,c,b,f,q,h,u,A){var d=q-2*b+a-(u-2*q+b),G=2*(b-a)-2*(q-b),r=a-b,e=(-G+ga(G*G-4*d*r))/2/d,d=(-G-ga(G*G-4*d*r))/2/d,g=[c,A],t=[a,u];"1e12"<ea(e)&&(e=0.5);"1e12"<ea(d)&&(d=0.5);0<e&&1>e&&(e=O(a,c,b,f,q,h,u,A,e),t.push(e.x),g.push(e.y));0<d&&1>d&&(e=O(a,c,b,f,q,h,u,A,d),t.push(e.x),g.push(e.y));d=h-2*f+c-(A-2*h+f);G=2*(f-c)-2*(h-f);r=c-f;e=(-G+ga(G*
G-4*d*r))/2/d;d=(-G-ga(G*G-4*d*r))/2/d;"1e12"<ea(e)&&(e=0.5);"1e12"<ea(d)&&(d=0.5);0<e&&1>e&&(e=O(a,c,b,f,q,h,u,A,e),t.push(e.x),g.push(e.y));0<d&&1>d&&(e=O(a,c,b,f,q,h,u,A,d),t.push(e.x),g.push(e.y));return{min:{x:ua[I](0,t),y:ua[I](0,g)},max:{x:oa[I](0,t),y:oa[I](0,g)}}}),va=c._path2curve=Bb(function(a,c){var b=!c&&vb(a);if(!c&&b.curve)return ib(b.curve);var q=u(a),h=c&&u(c),d={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},r={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},e=function(a,c){var b,q;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"][Q](f[I](0,[c.x,c.y][Q](a.slice(1))));break;case "S":b=c.x+(c.x-(c.bx||c.x));q=c.y+(c.y-(c.by||c.y));a=["C",b,q][Q](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"][Q](G(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"][Q](G(c.x,c.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"][Q](A(c.x,c.y,a[1],a[2]));break;case "H":a=
["C"][Q](A(c.x,c.y,a[1],c.y));break;case "V":a=["C"][Q](A(c.x,c.y,c.x,a[1]));break;case "Z":a=["C"][Q](A(c.x,c.y,c.X,c.Y))}return a},g=function(a,c){if(7<a[c].length){a[c].shift();for(var b=a[c];b.length;)a.splice(c++,0,["C"][Q](b.splice(0,6)));a.splice(c,1);L=oa(q.length,h&&h.length||0)}},t=function(a,c,b,f,u){a&&c&&"M"==a[u][0]&&"M"!=c[u][0]&&(c.splice(u,0,["M",f.x,f.y]),b.bx=0,b.by=0,b.x=a[u][1],b.y=a[u][2],L=oa(q.length,h&&h.length||0))},p=0,L=oa(q.length,h&&h.length||0);for(;p<L;p++){q[p]=e(q[p],
d);g(q,p);h&&(h[p]=e(h[p],r));h&&g(h,p);t(q,h,d,r,p);t(h,q,r,d,p);var O=q[p],z=h&&h[p],E=O.length,va=h&&z.length;d.x=O[E-2];d.y=O[E-1];d.bx=Z(O[E-4])||d.x;d.by=Z(O[E-3])||d.y;r.bx=h&&(Z(z[va-4])||r.x);r.by=h&&(Z(z[va-3])||r.y);r.x=h&&z[va-2];r.y=h&&z[va-1]}h||(b.curve=ib(q));return h?[q,h]:q},null,ib);c._parseDots=Bb(function(a){for(var b=[],f=0,q=a.length;f<q;f++){var h={},u=a[f].match(/^([^:]*):?([\d\.]*)/);h.color=c.getRGB(u[1]);if(h.color.error)return null;h.opacity=h.color.opacity;h.color=h.color.hex;
u[2]&&(h.offset=u[2]+"%");b.push(h)}f=1;for(q=b.length-1;f<q;f++)if(!b[f].offset){a=Z(b[f-1].offset||0);u=0;for(h=f+1;h<q;h++)if(b[h].offset){u=b[h].offset;break}u||(u=100,h=q);u=Z(u);for(u=(u-a)/(h-f+1);f<h;f++)a+=u,b[f].offset=a+"%"}return b});var kc=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;kc(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;kc(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){kc(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){kc(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 Ib=c.toMatrix=function(a,c){var b=Gb(a),f={_:{transform:""},getBBox:function(){return b}};nc(f,c);return f.matrix};
c.transformPath=function(a,c){return Ca(a,Ib(a,c))};var nc=c._extractTransform=function(a,b){if(null==b)return a._.transform;b=ia(b).replace(/\.{3}|\u2026/g,a._.transform||"");var f=c.parseTransformString(b),q=0,h=0,u=0,d=1,A=1,G=a._,u=new F;G.transform=f||[];if(f)for(var h=0,r=f.length;h<r;h++){var e=f[h],g=e.length,t=ia(e[0]).toLowerCase(),p=e[0]!=t,L=p?u.invert():0,O;"t"==t&&3==g?p?(g=L.x(0,0),t=L.y(0,0),p=L.x(e[1],e[2]),L=L.y(e[1],e[2]),u.translate(p-g,L-t)):u.translate(e[1],e[2]):"r"==t?2==g?
(O=O||a.getBBox(1),u.rotate(e[1],O.x+O.width/2,O.y+O.height/2),q+=e[1]):4==g&&(p?(p=L.x(e[2],e[3]),L=L.y(e[2],e[3]),u.rotate(e[1],p,L)):u.rotate(e[1],e[2],e[3]),q+=e[1]):"s"==t?2==g||3==g?(O=O||a.getBBox(1),u.scale(e[1],e[g-1],O.x+O.width/2,O.y+O.height/2),d*=e[1],A*=e[g-1]):5==g&&(p?(p=L.x(e[3],e[4]),L=L.y(e[3],e[4]),u.scale(e[1],e[2],p,L)):u.scale(e[1],e[2],e[3],e[4]),d*=e[1],A*=e[2]):"m"==t&&7==g&&u.add(e[1],e[2],e[3],e[4],e[5],e[6]);G.dirtyT=1;a.matrix=u}a.matrix=u;G.sx=d;G.sy=A;G.deg=q;G.dx=
h=u.e;G.dy=u=u.f;1==d&&1==A&&!q&&G.bbox?(G.bbox.x+=+h,G.bbox.y+=+u):G.dirtyT=1},Va=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]}},gd=c._equaliseTransform=function(a,b){b=ia(b).replace(/\.{3}|\u2026/g,a);a=c.parseTransformString(a)||[];b=c.parseTransformString(b)||[];for(var f=oa(a.length,b.length),q=[],h=[],u=0,d,A,G,e;u<
f;u++){G=a[u]||Va(b[u]);e=b[u]||Va(G);if(G[0]!=e[0]||"r"==G[0].toLowerCase()&&(G[2]!=e[2]||G[3]!=e[3])||"s"==G[0].toLowerCase()&&(G[3]!=e[3]||G[4]!=e[4]))return;q[u]=[];h[u]=[];d=0;for(A=oa(G.length,e.length);d<A;d++)d in G&&(q[u][d]=G[d]),d in e&&(h[u][d]=e[d])}return{from:q,to:h}};c._getContainer=function(a,b,f,q){var h;h=null!=q||c.is(a,"object")?a:fa.doc.getElementById(a);if(null!=h)return h.tagName?null==b?{container:h,width:h.style.pixelWidth||h.offsetWidth,height:h.style.pixelHeight||h.offsetHeight}:
{container:h,width:b,height:f}:{container:1,x:a,y:b,width:f,height:q}};c.pathToRelative=q;c._engine={};c.path2curve=va;c.matrix=function(a,c,b,f,q,h){return new F(a,c,b,f,q,h)};(function(a){function b(a){return a[0]*a[0]+a[1]*a[1]}function f(a){var c=ga(b(a));a[0]&&(a[0]/=c);a[1]&&(a[1]/=c)}a.add=function(a,c,b,f,q,h){var u=[[],[],[]],d=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]];c=[[a,b,q],[c,f,h],[0,0,1]];a&&a instanceof F&&(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=q=0;3>f;f++)q+=d[a][f]*c[f][b];u[a][b]=q}this.a=u[0][0];this.b=u[1][0];this.c=u[0][1];this.d=u[1][1];this.e=u[0][2];this.f=u[1][2]};a.invert=function(){var a=this.a*this.d-this.b*this.c;return new F(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 F(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 q=+aa(a).toFixed(9);a=+ba(a).toFixed(9);this.add(q,a,-a,q,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[ia.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 q=[[this.a,this.c],[this.b,this.d]];a.scalex=ga(b(q[0]));f(q[0]);a.shear=q[0][0]*q[1][0]+q[0][1]*q[1][1];q[1]=[q[1][0]-q[0][0]*a.shear,q[1][1]-q[0][1]*a.shear];a.scaley=ga(b(q[1]));f(q[1]);a.shear/=a.scaley;var h=-q[0][1],q=q[1][1];0>q?(a.rotate=c.deg(Ga.acos(q)),0>h&&(a.rotate=360-a.rotate)):a.rotate=c.deg(Ga.asin(h));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[p]();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)]}})(F.prototype);var qa=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);
"Apple Computer, Inc."==navigator.vendor&&(qa&&4>qa[1]||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&qa&&8>qa[1]?h.safari=function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){a.remove()});return!0}:h.safari=ra;for(var tc=function(){this.returnValue=!1},hd=function(){return this.originalEvent.preventDefault()},id=function(){this.cancelBubble=!0},jd=function(){return this.originalEvent.stopPropagation()},Ba=c.addEvent=
function(){if(fa.doc.addEventListener)return function(a,c,b,f){var q=xa&&na[c]?na[c]:c,h=function(q){var h=fa.doc.documentElement.scrollTop||fa.doc.body.scrollTop,u=fa.doc.documentElement.scrollLeft||fa.doc.body.scrollLeft;if(xa&&na[m](c))for(var d=0,A=q.targetTouches&&q.targetTouches.length;d<A;d++)if(q.targetTouches[d].target==a){A=q;q=q.targetTouches[d];q.originalEvent=A;q.preventDefault=hd;q.stopPropagation=jd;break}return b.call(f,q,q.clientX+u,q.clientY+h)};a.addEventListener(q,h,!1);return function(){a.removeEventListener(q,
h,!1);return!0}};if(fa.doc.attachEvent)return function(a,c,b,f){var q=function(a){a=a||fa.win.event;var c=a.clientX+(fa.doc.documentElement.scrollLeft||fa.doc.body.scrollLeft),q=a.clientY+(fa.doc.documentElement.scrollTop||fa.doc.body.scrollTop);a.preventDefault=a.preventDefault||tc;a.stopPropagation=a.stopPropagation||id;return b.call(f,a,c,q)};a.attachEvent("on"+c,q);return function(){a.detachEvent("on"+c,q);return!0}}}(),Cc=[],Da=function(a){for(var b=a.clientX,f=a.clientY,q=fa.doc.documentElement.scrollTop||
fa.doc.body.scrollTop,h=fa.doc.documentElement.scrollLeft||fa.doc.body.scrollLeft,u,d=Cc.length;d--;){u=Cc[d];if(xa)for(var A=a.touches.length,G;A--;){if(G=a.touches[A],G.identifier==u.el._drag.id){b=G.clientX;f=G.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();if(!u.el.removed){var A=c._engine.getNode(u.el),e=A.nextSibling,r=A.parentNode,g=A.style.display;fa.win.opera&&r.removeChild(A);A.style.display="none";G=u.el.paper.getElementByPoint(b,f);A.style.display=
g;fa.win.opera&&(e?r.insertBefore(A,e):r.appendChild(A));G&&l("raphael.drag.over."+u.el.id,u.el,G);b+=h;f+=q;l("raphael.drag.move."+u.el.id,u.move_scope||u.el,b-u.el._drag.x,f-u.el._drag.y,b,f,a)}}},Vc=function(a){c.unmousemove(Da).unmouseup(Vc);for(var b=Cc.length,f;b--;)f=Cc[b],f.el._drag={},l("raphael.drag.end."+f.el.id,f.end_scope||f.start_scope||f.move_scope||f.el,a);Cc=[]},Sa=c.el={},cd=W.length;cd--;)(function(a){c[a]=Sa[a]=function(b,f){c.is(b,"function")&&(this.events=this.events||[],this.events.push({name:a,
f:b,unbind:Ba(this.shape||this.node||fa.doc,a,b,f||this)}));return this};c["un"+a]=Sa["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}})(W[cd]);Sa.data=function(a,b){var f=P[this.id]=P[this.id]||{};if(1==arguments.length){if(c.is(a,"object")){for(var q in a)a[m](q)&&this.data(q,a[q]);return this}l("raphael.data.get."+this.id,this,f[a],a);return f[a]}f[a]=b;l("raphael.data.set."+this.id,
this,b,a);return this};Sa.removeData=function(a){null==a?delete P[this.id]:P[this.id]&&delete P[this.id][a];return this};Sa.getData=function(){return ab(P[this.id]||{})};var Kc=[],yc=function(){this.untrack=Ba(fa.doc,"mouseup",Sc,this)},Sc=function(){this.untrack();this.untrack=null;return this.fn&&this.fn.apply(this.scope||this.el,arguments)};Sa.mouseup=function(a,b,f){if(!f)return c.mouseup.apply(this,arguments);Kc.push(f={el:this,fn:a,scope:b});f.unbind=Ba(this.shape||this.node||fa.doc,"mousedown",
yc,f);return this};Sa.unmouseup=function(a){for(var b=Kc.length,f;b--;)Kc[b].el===this&&Kc[b].fn===a&&(f=Kc[b],f.unbind(),f.untrack&&f.untrack(),Kc.splice(b,1));return f?this:c.unmouseup.apply(this,arguments)};Sa.hover=function(a,c,b,f){return this.mouseover(a,b).mouseout(c,f||b)};Sa.unhover=function(a,c){return this.unmouseover(a).unmouseout(c)};var $a=[];Sa.drag=function(a,b,f,q,h,u){function d(A){(A.originalEvent||A).preventDefault();var G=fa.doc.documentElement.scrollTop||fa.doc.body.scrollTop,
e=fa.doc.documentElement.scrollLeft||fa.doc.body.scrollLeft;this._drag.x=A.clientX+e;this._drag.y=A.clientY+G;this._drag.id=A.identifier;!Cc.length&&c.mousemove(Da).mouseup(Vc);Cc.push({el:this,move_scope:q,start_scope:h,end_scope:u});b&&l.on("raphael.drag.start."+this.id,b);a&&l.on("raphael.drag.move."+this.id,a);f&&l.on("raphael.drag.end."+this.id,f);l("raphael.drag.start."+this.id,h||q||this,A.clientX+e,A.clientY+G,A)}this._drag={};$a.push({el:this,start:d});this.mousedown(d);return this};Sa.onDragOver=
function(a){a?l.on("raphael.drag.over."+this.id,a):l.unbind("raphael.drag.over."+this.id)};Sa.undrag=function(){for(var a=$a.length;a--;)$a[a].el==this&&(this.unmousedown($a[a].start),$a.splice(a,1),l.unbind("raphael.drag.*."+this.id));!$a.length&&c.unmousemove(Da).unmouseup(Vc);delete this._drag};Sa.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};Sa.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};h.hide=function(){this.canvas.style.visibility="hidden";return this};h.show=function(){this.canvas.style.visibility="";return this};h.group=function(){var a=arguments,b=Ka(a,!0),a=c._engine.group(this,a[0],b);return this.__set__&&this.__set__.push(a),this._elementsById[a.id]=a};h.circle=function(){var a=arguments,b=
Ka(a,!0),a=T(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};h.rect=function(){var a=arguments,b=Ka(a,!0),a=T(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};h.ellipse=function(){var a=arguments,b=Ka(a,!0),a=T(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};h.path=function(){var a=arguments,b=Ka(a,!0),a=T(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};h.image=function(){var a=arguments,b=Ka(a,!0),a=T(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};h.text=function(){var a=arguments,
b=Ka(a,!0),a=T(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};h.set=function(a){!c.is(a,"array")&&(a=S.call(arguments,0,arguments.length));var b=new Ua(a);this.__set__&&this.__set__.push(b);return b};h.setStart=function(a){this.__set__=a||this.set()};h.setFinish=function(a){a=this.__set__;delete this.__set__;return a};h.setSize=function(a,b){return c._engine.setSize.call(this,
a,b)};h.setViewBox=function(a,b,f,q,h){return c._engine.setViewBox.call(this,a,b,f,q,h)};h.top=h.bottom=null;h.raphael=c;h.getElementByPoint=function(a,c){var b,f,q=this.canvas,h=fa.doc.elementFromPoint(a,c);if(fa.win.opera&&"svg"==h.tagName){f=q.getBoundingClientRect();b=q.ownerDocument;var u=b.body,d=b.documentElement;b=f.top+(fa.win.pageYOffset||d.scrollTop||u.scrollTop)-(d.clientTop||u.clientTop||0);f=f.left+(fa.win.pageXOffset||d.scrollLeft||u.scrollLeft)-(d.clientLeft||u.clientLeft||0);u=q.createSVGRect();
u.x=a-f;u.y=c-b;u.width=u.height=1;b=q.getIntersectionList(u,null);b.length&&(h=b[b.length-1])}if(!h)return null;for(;h.parentNode&&h!=q.parentNode&&!h.raphael;)h=h.parentNode;h==this.canvas.parentNode&&(h=q);return h=h&&h.raphael?this.getById(h.raphaelid):null};h.getElementsByBBox=function(a){var b=this.set();this.forEach(function(f){c.isBBoxIntersect(f.getBBox(),a)&&b.push(f)});return b};h.getById=function(a){return this._elementsById[a]||null};h.forEach=function(a,c){for(var b=this.bottom;b&&!1!==
a.call(c,b);)b=b.next;return this};h.getElementsByPoint=function(a,c){var b=this.set();this.forEach(function(f){f.isPointInside(a,c)&&b.push(f)});return b};Sa.isPointInside=function(a,b){var f=this.realPath=this.realPath||ka[this.type](this),q;return c.isPointInsidePath((q=this.attr("transform"))&&q.length&&c.transformPath(f,q)||f,a,b)};Sa.getBBox=function(a){if(this.removed)return{};var c=this._;if(a){if(c.dirty||!c.bboxwt)this.realPath=ka[this.type](this),c.bboxwt=Gb(this.realPath),c.bboxwt.toString=
C,c.dirty=0;return c.bboxwt}if(c.dirty||c.dirtyT||!c.bbox){if(c.dirty||!this.realPath)c.bboxwt=0,this.realPath=ka[this.type](this);c.bbox=Gb(Ca(this.realPath,this.matrix));c.bbox.toString=C;c.dirty=c.dirtyT=0}return c.bbox};Sa.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(a);return a};Sa.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||
0.5,q=a.offsetx||0,h=a.offsety||0;a=a.color||"#000";for(var u=c/2,d=this.paper,A=d.set(),G=this.realPath||ka[this.type](this),G=this.matrix?Ca(G,this.matrix):G,e=1;e<u+1;e++)A.push(d.path(G).attr({stroke:a,fill:b?a:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(c/u*e).toFixed(3),opacity:+(f/u).toFixed(3)}));return A.insertBefore(this).translate(q,h)};var Za=function(b,f,q,h,u,d,A,G,e){return null==e?J(b,f,q,h,u,d,A,G):c.findDotsAtSegment(b,f,q,h,u,d,A,G,a(b,f,q,h,u,d,A,
G,e))},Wc=function(a,b){return function(f,q,h){f=va(f);for(var u,d,A,G,e="",r={},g=0,t=0,p=f.length;t<p;t++){A=f[t];if("M"==A[0])u=+A[1],d=+A[2];else{G=Za(u,d,A[1],A[2],A[3],A[4],A[5],A[6]);if(g+G>q){if(b&&!r.start){u=Za(u,d,A[1],A[2],A[3],A[4],A[5],A[6],q-g);e+=["C"+u.start.x,u.start.y,u.m.x,u.m.y,u.x,u.y];if(h)return e;r.start=e;e=["M"+u.x,u.y+"C"+u.n.x,u.n.y,u.end.x,u.end.y,A[5],A[6]].join();g+=G;u=+A[5];d=+A[6];continue}if(!a&&!b)return u=Za(u,d,A[1],A[2],A[3],A[4],A[5],A[6],q-g),{x:u.x,y:u.y,
alpha:u.alpha}}g+=G;u=+A[5];d=+A[6]}e+=A.shift()+A}r.end=e;u=a?g:b?r:c.findDotsAtSegment(u,d,A[0],A[1],A[2],A[3],A[4],A[5],1);u.alpha&&(u={x:u.x,y:u.y,alpha:u.alpha});return u}},dd=Wc(1),ed=Wc(),Xc=Wc(0,1);c.getTotalLength=dd;c.getPointAtLength=ed;c.getSubpath=function(a,c,b){if(1E-6>this.getTotalLength(a)-b)return Xc(a,c).end;a=Xc(a,b,1);return c?Xc(a,c).end:a};Sa.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():dd(this.attrs.path)};Sa.getPointAtLength=
function(a){if("path"==this.type)return ed(this.attrs.path,a)};Sa.getSubpath=function(a,b){if("path"==this.type)return c.getSubpath(this.attrs.path,a,b)};var Ma=c.easing_formulas={linear:function(a){return a},"<":function(a){return da(a,1.7)},">":function(a){return da(a,0.48)},"<>":function(a){var c=0.48-a/1.04,b=ga(0.1734+c*c);a=b-c;a=da(ea(a),1/3)*(0>a?-1:1);c=-b-c;c=da(ea(c),1/3)*(0>c?-1:1);a=a+c+0.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:da(2,-10*a)*ba(2*(a-0.075)*za/0.3)+1},bounce:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+0.9375):(a-=2.625/2.75,a=7.5625*a*a+0.984375);return a}};Ma.easeIn=Ma["ease-in"]=Ma["<"];Ma.easeOut=Ma["ease-out"]=Ma[">"];Ma.easeInOut=Ma["ease-in-out"]=Ma["<>"];Ma["back-in"]=Ma.backIn;Ma["back-out"]=Ma.backOut;var Ra=[],bd=d.requestAnimationFrame||d.webkitRequestAnimationFrame||
d.mozRequestAnimationFrame||d.oRequestAnimationFrame||d.msRequestAnimationFrame||function(a){setTimeout(a,16)},Jc=function(){for(var a=+new Date,b=0;b<Ra.length;b++){var f=Ra[b];if(!f.el.removed&&!f.paused){var q=a-f.start,h=f.ms,u=f.easing,A=f.from,d=f.diff,G=f.to,e=f.el,r={},t,p={},L;f.initstatus?(q=(f.initstatus*f.anim.top-f.prev)/(f.percent-f.prev)*h,f.status=f.initstatus,delete f.initstatus,f.stop&&Ra.splice(b--,1)):f.status=(f.prev+q/h*(f.percent-f.prev))/f.anim.top;if(!(0>q))if(q<h){var O=
u(q/h),z;for(z in A)if(A[m](z)){switch(U[z]){case X:t=+A[z]+O*h*d[z];break;case "colour":t="rgb("+[oc(la(A[z].r+O*h*d[z].r)),oc(la(A[z].g+O*h*d[z].g)),oc(la(A[z].b+O*h*d[z].b))].join()+")";break;case "path":t=[];q=0;for(u=A[z].length;q<u;q++){t[q]=[A[z][q][0]];G=1;for(p=A[z][q].length;G<p;G++)t[q][G]=(+A[z][q][G]+O*h*d[z][q][G]).toFixed(4);t[q]=t[q].join(R)}t=t.join(R);break;case "transform":if(d[z].real)for(t=[],q=0,u=A[z].length;q<u;q++)for(t[q]=[A[z][q][0]],G=1,p=A[z][q].length;G<p;G++)t[q][G]=
A[z][q][G]+O*h*d[z][q][G];else t=function(a){return+A[z][a]+O*h*d[z][a]},t=[["m",t(0),t(1),t(2),t(3),t(4),t(5)]];break;case "csv":if("clip-rect"==z)for(t=[],q=4;q--;)t[q]=+A[z][q]+O*h*d[z][q];break;default:for(u=[][Q](A[z]),t=[],q=e.ca[z].length;q--;)t[q]=+u[q]+O*h*d[z][q]}r[z]=t}e.attr(r);(function(a,c,b){setTimeout(function(){l("raphael.anim.frame."+a,c,b)})})(e.id,e,f.anim)}else{(function(a,b,f){setTimeout(function(){l("raphael.anim.frame."+b.id,b,f);l("raphael.anim.finish."+b.id,b,f);c.is(a,"function")&&
a.call(b)})})(f.callback,e,f.anim);e.attr(G);Ra.splice(b--,1);if(1<f.repeat&&!f.next){for(L in G)G[m](L)&&(p[L]=f.totalOrigin[L]);f.el.attr(p);g(f.anim,f.el,f.anim.percents[0],null,f.totalOrigin,f.repeat-1)}f.next&&!f.stop&&g(f.anim,f.el,f.next,null,f.totalOrigin,f.repeat)}}}c.svg&&e&&e.paper&&e.paper.safari();Ra.length&&bd(Jc)},oc=function(a){return 255<a?255:0>a?0:a};Sa.animateWith=function(a,b,f,q,h,u){if(this.removed)return u&&u.call(this),this;f=f instanceof e?f:c.animation(f,q,h,u);g(f,this,
f.percents[0],null,this.attr());f=0;for(q=Ra.length;f<q;f++)if(Ra[f].anim==b&&Ra[f].el==a){Ra[q-1].start=Ra[f].start;break}return this};Sa.onAnimation=function(a){a?l.on("raphael.anim.frame."+this.id,a):l.unbind("raphael.anim.frame."+this.id);return this};e.prototype.delay=function(a){var c=new e(this.anim,this.ms);c.times=this.times;c.del=+a||0;return c};e.prototype.repeat=function(a){var c=new e(this.anim,this.ms);c.del=this.del;c.times=Ga.floor(oa(a,0))||1;return c};c.animation=function(a,b,f,
q){if(a instanceof e)return a;if(c.is(f,"function")||!f)q=q||f||null,f=null;a=Object(a);b=+b||0;var h={},u,A;for(A in a)a[m](A)&&Z(A)!=A&&Z(A)+"%"!=A&&(u=!0,h[A]=a[A]);return u?(f&&(h.easing=f),q&&(h.callback=q),new e({100:h},b)):new e(a,b)};Sa.animate=function(a,b,f,q){if(this.removed)return q&&q.call(this),this;a=a instanceof e?a:c.animation(a,b,f,q);g(a,this,a.percents[0],null,this.attr());return this};Sa.setTime=function(a,c){a&&null!=c&&this.status(a,ua(c,a.ms)/a.ms);return this};Sa.status=function(a,
c){var b=[],f=0,q,h;if(null!=c)return g(a,this,-1,ua(c,1)),this;for(q=Ra.length;f<q;f++)if(h=Ra[f],h.el.id==this.id&&(!a||h.anim==a)){if(a)return h.status;b.push({anim:h.anim,status:h.status})}return a?0:b};Sa.pause=function(a){for(var c=0;c<Ra.length;c++)Ra[c].el.id!=this.id||a&&Ra[c].anim!=a||!1===l("raphael.anim.pause."+this.id,this,Ra[c].anim)||(Ra[c].paused=!0);return this};Sa.resume=function(a){for(var c=0;c<Ra.length;c++)if(Ra[c].el.id==this.id&&(!a||Ra[c].anim==a)){var b=Ra[c];!1!==l("raphael.anim.resume."+
this.id,this,b.anim)&&(delete b.paused,this.status(b.anim,b.status))}return this};Sa.stop=function(a){for(var c=0;c<Ra.length;c++)Ra[c].el.id!=this.id||a&&Ra[c].anim!=a||!1!==l("raphael.anim.stop."+this.id,this,Ra[c].anim)&&Ra.splice(c--,1);return this};l.on("raphael.remove",n);l.on("raphael.clear",n);Sa.toString=function(){return"Raphaël’s object"};Sa.toFront=function(){if(this.removed)return this;var a=c._engine.getNode(this),b=this.parent,f=this.followers,q;c._tofront(this,b)&&b.canvas.appendChild(a);
a=0;for(b=f.length;a<b;a++)(q=f[a]).stalk&&q.el[q.stalk](this);return this};Sa.toBack=function(){if(this.removed)return this;var a=c._engine.getNode(this),b=this.parent,f=this.followers,q;c._toback(this,b)&&b.canvas.insertBefore(a,b.canvas.firstChild);a=0;for(b=f.length;a<b;a++)(q=f[a]).stalk&&q.el[q.stalk](this);return this};Sa.insertAfter=function(a){if(this.removed)return this;var b=c._engine.getNode(this),f=c._engine.getLastNode(a),q=a.parent.canvas,h=this.followers,u;f.nextSibling?q.insertBefore(b,
f.nextSibling):q.appendChild(b);c._insertafter(this,a,this.parent,a.parent);b=0;for(f=h.length;b<f;b++)(u=h[b]).stalk&&u.el[u.stalk](a);return this};Sa.insertBefore=function(a){if(this.removed)return this;var b=c._engine.getNode(this),f=c._engine.getNode(a),q=this.followers,h;a.parent.canvas.insertBefore(b,f);c._insertbefore(this,a,this.parent,a.parent);this.parent=a.parent;b=0;for(f=q.length;b<f;b++)(h=q[b]).stalk&&h.el[h.stalk](a);return this};Sa.appendChild=function(a){if(this.removed||"group"!==
this.type)return this;var b=this.followers,f,q,h;if(a.parent===this)return a.toFront(),this;q=c._engine.getNode(a);c._tear(a,a.parent);this.canvas.appendChild(q);a.parent=this;!this.bottom&&(this.bottom=a);a.prev=this.top;a.next=null;this.top&&(this.top.next=a);this.top=a;q=0;for(h=b.length;q<h;q++)(f=b[q]).stalk&&f.el[f.stalk](a);return this};Sa.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 Ua=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!=Sa.constructor&&a[c].constructor!=Ua||(this[this.items.length]=this.items[this.items.length]=a[c],this.length++)},gb=Ua.prototype;gb.push=function(){for(var a,c,b=0,f=arguments.length;b<f;b++)!(a=arguments[b])||a.constructor!=Sa.constructor&&a.constructor!=Ua||
(c=this.items.length,this[c]=this.items[c]=a,this.length++);return this};gb.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};gb.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 zc in Sa)Sa[m](zc)&&(gb[zc]=function(a){return function(){var c=arguments;return this.forEach(function(b){b[a][I](b,c)})}}(zc));gb.attr=function(a,b){if(a&&c.is(a,$)&&c.is(a[0],"object"))for(var f=0,q=a.length;f<q;f++)this.items[f].attr(a[f]);
else for(f=0,q=this.items.length;f<q;f++)this.items[f].attr(a,b);return this};gb.clear=function(){for(;this.length;)this.pop()};gb.splice=function(a,c,b){a=0>a?oa(this.length+a,0):a;c=oa(0,ua(this.length-a,isNaN(c)&&this.length||c));var f=[],q=[],h=[],u;for(u=2;u<arguments.length;u++)h.push(arguments[u]);for(u=0;u<c;u++)q.push(this[a+u]);for(;u<this.length-a;u++)f.push(this[a+u]);var A=h.length;for(u=0;u<A+f.length;u++)this.items[a+u]=this[a+u]=u<A?h[u]:f[u-A];for(u=this.items.length=this.length-=
c-A;this[u];)delete this[u++];return new Ua(q)};gb.exclude=function(a){for(var c=0,b=this.length;c<b;c++)if(this[c]==a)return this.splice(c,1),!0};gb.animate=function(a,b,f,q){!c.is(f,"function")&&f||(q=f||null);var h=this.items.length,u=h,A=this,d;if(!h)return this;q&&(d=function(){!--h&&q.call(A)});f=c.is(f,"string")?f:d;b=c.animation(a,b,f,d);for(a=this.items[--u].animate(b);u--;)this.items[u]&&!this.items[u].removed&&this.items[u].animateWith(a,b,b);return this};gb.insertAfter=function(a){for(var c=
this.items.length;c--;)this.items[c].insertAfter(a);return this};gb.getBBox=function(){for(var a=[],c=[],b=[],f=[],q=this.items.length;q--;)if(!this.items[q].removed){var u=this.items[q].getBBox();a.push(u.x);c.push(u.y);b.push(u.x+u.width);f.push(u.y+u.height)}a=ua[I](0,a);c=ua[I](0,c);b=oa[I](0,b);f=oa[I](0,f);return{x:a,y:c,x2:b,y2:f,width:b-a,height:f-c}};gb.clone=function(a){a=new Ua;for(var c=0,b=this.items.length;c<b;c++)a.push(this.items[c].clone());return a};gb.toString=function(){return"Raphaël‘s set"};
gb.glow=function(a){var c=this.paper.set();this.forEach(function(b,f){var q=b.glow(a);null!=q&&q.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[m](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"]=Aa(a.face["units-per-em"],10);for(var q in a.glyphs)if(a.glyphs[m](q)&&(b=a.glyphs[q],c.glyphs[q]=
{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[m](u)&&(c.glyphs[q].k[u]=b.k[u])}return a};h.getFont=function(a,b,f,q){q=q||"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=RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i");for(var h in c.fonts)if(c.fonts[m](h)&&a.test(h)){u=c.fonts[h];break}}var A;if(u)for(h=0,a=u.length;h<
a&&(A=u[h],A.face["font-weight"]!=b||A.face["font-style"]!=f&&A.face["font-style"]||A.face["font-stretch"]!=q);h++);return A}};h.print=function(a,b,f,q,u,h,A){h=h||"middle";A=oa(ua(A||0,1),-1);var d=ia(f)[p](""),G=0,e=0,r="";c.is(q,f)&&(q=this.getFont(q));if(q){f=(u||16)/q.face["units-per-em"];var g=q.face.bbox[p](qb);u=+g[0];var t=g[3]-g[1],L=0;h=+g[1]+("baseline"==h?t+ +q.face.descent:t/2);for(var g=0,z=d.length;g<z;g++){if("\n"==d[g])e=E=G=0,L+=t;else var O=e&&q.glyphs[d[g-1]]||{},E=q.glyphs[d[g]],
G=G+(e?(O.w||q.w)+(O.k&&O.k[d[g]]||0)+q.w*A:0),e=1;E&&E.d&&(r+=c.transformPath(E.d,["t",G*f,L*f,"s",f,f,u,h,"t",(a-u)/f,(b-h)/f]))}}return this.path(r).attr({fill:"#000",stroke:"none"})};h.add=function(a){if(c.is(a,"array"))for(var b=this.set(),f=0,q=a.length,u;f<q;f++)u=a[f]||{},N[m](u.type)&&b.push(this[u.type]().attr(u));return b};c.format=function(a,b){var f=c.is(b,$)?[0][Q](b):arguments;a&&c.is(a,"string")&&f.length-1&&(a=a.replace(sb,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 q=f;b.replace(c,function(a,c,b,f,u){c=c||f;q&&(c in q&&(q=q[c]),"function"==typeof q&&u&&(q=q()))});return q=(null==q||q==f?a:q)+""};return function(c,f){return String(c).replace(a,function(a,c){return b(a,c,f)})}}();c.ninja=function(){sa?fa.win.Raphael=ya:delete Raphael;return c};var kd=c.vml&&0.5||0;c.crispBound=Bb(function(a,c,b,f,q){var u={},h;a=a||0;c=c||0;b=b||0;f=f||
0;q=q||0;h=q%2/2+kd;u.x=la(a+h)-h;u.y=la(c+h)-h;u.width=la(a+b+h)-h-u.x;u.height=la(c+f+h)-h-u.y;u["stroke-width"]=q;0===u.width&&0!==b&&(u.width=1);0===u.height&&0!==f&&(u.height=1);return u},c);Sa.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=gb;c.define=function(a,b,f,q,u,h){var A;if(c.is(a,$))for(h=0,A=a.length;h<A;h++)c.define(a[h]);
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 h=arguments,A=b.apply(this,h),d;if(q&&c.is(q,"object"))for(d in q)A[d]=q[d];if(u&&c.is(u,"object"))for(d in u)A[d]&&A[d](u[d]);if(f){if(c.is(f,"function"))A.ca[a]=f;else for(d in f)A.ca[d]=f[d];A.ca[a]&&(c._lastArgIfGroup(h,!0),A.attr(a,H.call(h)))}return A},f&&(c.fn[a].ca=f),q&&(c.fn[a].fn=q),u&&(c.fn[a].e=u),h&&(c.fn[a].data=h),c.fn[a]};(function(a,b,f){function q(){/in/.test(a.readyState)?
setTimeout(q,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");q()})(document,"DOMContentLoaded");l.on("raphael.DOMload",function(){s=!0});(function(){if(c.svg){var a=String,b=parseFloat,f=parseInt,q=Math,u=q.max,h=q.abs,A=q.pow,d=q.sqrt,G=/[, ]+/,e=!(!/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"},t={};c.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};c._url="";var p=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++)},L=c._createNode=function(b,f){if(f){"string"==
typeof b&&(b=L(b));for(var q in f)f.hasOwnProperty(q)&&("xlink:"==q.substring(0,6)?b.setAttributeNS("http://www.w3.org/1999/xlink",q.substring(6),a(f[q])):b.setAttribute(q,a(f[q])))}else b=c._g.doc.createElementNS("http://www.w3.org/2000/svg",b);return b},z={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},O={pad:"pad",redlect:"reflect",repeat:"repeat"},E=function(f,G){if(!f.paper||!f.paper.defs)return 0;var e="linear",r=f.paper,g=(r.id+"-"+G).replace(/[\(\)\s%:,\xb0#]/g,"_"),
t=0.5,E=0.5,va,n,m,N,M,s=f.node,qa=s.style,l=c._g.doc.getElementById(g);if(!l){G=a(G).replace(c._radial_gradient,function(a,c){e="radial";c=c&&c.split(",")||[];N=c[5];M=c[6];var f=c[0],q=c[1],u=c[2],h=c[3],G=c[4],r=f&&q,g;u&&(va=/\%/.test(u)?u:b(u));if(N===z.userSpaceOnUse)return r&&(t=f,E=q),h&&G&&(n=h,m=G,r||(t=n,E=m)),"";r&&(t=b(f),E=b(q),f=2*(0.5<E)-1,0.25<(g=A(t-0.5,2))+A(E-0.5,2)&&0.25>g&&(E=d(0.25-g)*f+0.5)&&0.5!==E&&(E=E.toFixed(5)-1E-5*f));h&&G&&(n=b(h),m=b(G),f=2*(0.5<m)-1,0.25<(g=A(n-0.5,
2))+A(m-0.5,2)&&0.25>g&&(m=d(0.25-g)*f+0.5)&&0.5!==m&&(m=m.toFixed(5)-1E-5*f),r||(t=n,E=m));return""});G=G.split(/\s*\-\s*/);if("linear"==e){var l=G.shift(),V=l.match(/\((.*)\)/),W,V=V&&V[1]&&V[1].split(/\s*\,\s*/),l=-b(l);if(isNaN(l))return null;V&&V.length?(V[0]in z?(N=V.shift(),V[0]in O&&(M=V.shift())):(V[4]&&(N=V[4]),V[5]&&(M=V[5])),W=[V[0]||"0%",V[1]||"0%",V[2]||"100%",V[3]||"0%"]):(W=[0,0,q.cos(c.rad(l)),q.sin(c.rad(l))],l=1/(u(h(W[2]),h(W[3]))||1),W[2]*=l,W[3]*=l,0>W[2]&&(W[0]=-W[2],W[2]=0),
0>W[3]&&(W[1]=-W[3],W[3]=0))}V=c._parseDots(G);if(!V)return null;l=L(e+"Gradient",{id:g});l.refCount=0;N in z&&l.setAttribute("gradientUnits",a(N));M in O&&l.setAttribute("spreadMethod",a(M));"radial"===e?(void 0!==va&&l.setAttribute("r",a(va)),void 0!==n&&void 0!==m&&(l.setAttribute("cx",a(n)),l.setAttribute("cy",a(m))),l.setAttribute("fx",a(t)),l.setAttribute("fy",a(E))):L(l,{x1:W[0],y1:W[1],x2:W[2],y2:W[3]});W=0;for(var Ib=V.length;W<Ib;W++)l.appendChild(L("stop",{offset:V[W].offset?V[W].offset:
W?"100%":"0%","stop-color":V[W].color||"#fff","stop-opacity":void 0===V[W].opacity?1:V[W].opacity}));r.defs.appendChild(l)}p(f,l);L(s,{fill:"url('"+c._url+"#"+g+"')",opacity:1,"fill-opacity":1});qa.fill="";qa.opacity=1;return qa.fillOpacity=1},va=function(a){var c=a.getBBox(1);L(a.pattern,{patternTransform:a.matrix.invert()+" translate("+c.x+","+c.y+")"})},n=function(b,f,q){if("path"==b.type){for(var u=a(f).toLowerCase().split("-"),h=b.paper,A=q?"end":"start",d=b.node,G=b.attrs,e=G["stroke-width"],
r=u.length,p="classic",z,O,E=3,va=3,n=5;r--;)switch(u[r]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":p=u[r];break;case "wide":va=5;break;case "narrow":va=2;break;case "long":E=5;break;case "short":E=2}"open"==p?(E+=2,va+=2,n+=2,z=1,O=q?4:1,u={fill:"none",stroke:G.stroke}):(O=z=E/2,u={fill:G.stroke,stroke:"none"});b._.arrows?q?(b._.arrows.endPath&&t[b._.arrows.endPath]--,b._.arrows.endMarker&&t[b._.arrows.endMarker]--):(b._.arrows.startPath&&t[b._.arrows.startPath]--,
b._.arrows.startMarker&&t[b._.arrows.startMarker]--):b._.arrows={};if("none"!=p){var r="raphael-marker-"+p,m="raphael-marker-"+A+p+E+va+"-obj"+b.id;c._g.doc.getElementById(r)?t[r]++:(h.defs.appendChild(L(L("path"),{"stroke-linecap":"round",d:g[p],id:r})),t[r]=1);var N=c._g.doc.getElementById(m);N?(t[m]++,E=N.getElementsByTagName("use")[0]):(N=L(L("marker"),{id:m,markerHeight:va,markerWidth:E,orient:"auto",refX:O,refY:va/2}),E=L(L("use"),{"xlink:href":"#"+r,transform:(q?"rotate(180 "+E/2+" "+va/2+
") ":"")+"scale("+E/n+","+va/n+")","stroke-width":(1/((E/n+va/n)/2)).toFixed(4)}),N.appendChild(E),h.defs.appendChild(N),t[m]=1);L(E,u);h=z*("diamond"!=p&&"oval"!=p);q?(q=b._.arrows.startdx*e||0,e=c.getTotalLength(G.path)-h*e):(q=h*e,e=c.getTotalLength(G.path)-(b._.arrows.enddx*e||0));u={};u["marker-"+A]="url('"+c._url+"#"+m+"')";if(e||q)u.d=Raphael.getSubpath(G.path,q,e);L(d,u);b._.arrows[A+"Path"]=r;b._.arrows[A+"Marker"]=m;b._.arrows[A+"dx"]=h;b._.arrows[A+"Type"]=p;b._.arrows[A+"String"]=f}else q?
(q=b._.arrows.startdx*e||0,e=c.getTotalLength(G.path)-q):(q=0,e=c.getTotalLength(G.path)-(b._.arrows.enddx*e||0)),b._.arrows[A+"Path"]&&L(d,{d:Raphael.getSubpath(G.path,q,e)}),delete b._.arrows[A+"Path"],delete b._.arrows[A+"Marker"],delete b._.arrows[A+"dx"],delete b._.arrows[A+"Type"],delete b._.arrows[A+"String"];for(u in t)t.hasOwnProperty(u)&&!t[u]&&(b=c._g.doc.getElementById(u))&&b.parentNode.removeChild(b)}},N={"":[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]},m=function(b,f,q){var u=N[a(f).toLowerCase()];if(f=u||void 0!==f&&[].concat(f)){var h=b.attrs["stroke-width"]||"1";q={round:h,square:h,butt:0}[b.attrs["stroke-linecap"]||q["stroke-linecap"]]||0;var A,d=A=f.length;if(u)for(;A--;)f[A]=f[A]*h+(A%2?1:-1)*q;else for(A=0;A<d;A+=2)f[A]-=q,f[A+1]&&(f[A+1]+=q),0>=f[A]&&(f[A]=0.1);c.is(f,"array")&&L(b.node,{"stroke-dasharray":f.join(",")})}},M=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])},s=c._setFillAndStroke=function(b,q){if(b.paper.canvas){var A=b.node,d=b.attrs,r=b.paper,g=A.style,t=g.visibility;g.visibility="hidden";for(var z in q)if(q.hasOwnProperty(z)&&c._availableAttrs.hasOwnProperty(z)){var O=q[z];d[z]=O;switch(z){case "blur":b.blur(O);break;case "href":case "title":case "target":var N=A.parentNode;if("a"!=N.tagName.toLowerCase()){if(""==O)break;var M=L("a");M.raphael=!0;M.raphaelid=A.raphaelid;N.insertBefore(M,A);M.appendChild(A);
N=M}"target"==z?N.setAttributeNS("http://www.w3.org/1999/xlink","show","blank"==O?"new":O):N.setAttributeNS("http://www.w3.org/1999/xlink",z,O);A.titleNode=N;break;case "cursor":g.cursor=O;break;case "transform":b.transform(O);break;case "rotation":c.is(O,"array")?b.rotate.apply(b,O):b.rotate(O);break;case "arrow-start":n(b,O);break;case "arrow-end":n(b,O,1);break;case "clip-path":var s=!0;case "clip-rect":N=!s&&a(O).split(G);b._.clipispath=!!s;if(s||4==N.length){b.clip&&b.clip.parentNode.parentNode.removeChild(b.clip.parentNode);
var M=L("clipPath"),l=L(s?"path":"rect");M.id=c.createUUID();L(l,s?{d:O?d["clip-path"]=c._pathToAbsolute(O):c._availableAttrs.path,fill:"none"}:{x:N[0],y:N[1],width:N[2],height:N[3],transform:b.matrix.invert()});M.appendChild(l);r.defs.appendChild(M);L(A,{"clip-path":"url('"+c._url+"#"+M.id+"')"});b.clip=l}!O&&(O=A.getAttribute("clip-path"))&&((O=c._g.doc.getElementById(O.replace(/(^url\(#|\)$)/g,"")))&&O.parentNode.removeChild(O),L(A,{"clip-path":""}),delete b.clip);break;case "path":"path"==b.type&&
(L(A,{d:O?d.path=c._pathToAbsolute(O):c._availableAttrs.path}),b._.dirty=1,b._.arrows&&("startString"in b._.arrows&&n(b,b._.arrows.startString),"endString"in b._.arrows&&n(b,b._.arrows.endString,1)));break;case "width":if(A.setAttribute(z,O),b._.dirty=1,d.fx)z="x",O=d.x;else break;case "x":d.fx&&(O=-d.x-(d.width||0));case "rx":if("rx"==z&&"rect"==b.type)break;case "cx":A.setAttribute(z,O);b.pattern&&va(b);b._.dirty=1;break;case "height":if(A.setAttribute(z,O),b._.dirty=1,d.fy)z="y",O=d.y;else break;
case "y":d.fy&&(O=-d.y-(d.height||0));case "ry":if("ry"==z&&"rect"==b.type)break;case "cy":A.setAttribute(z,O);b.pattern&&va(b);b._.dirty=1;break;case "r":"rect"==b.type?L(A,{rx:O,ry:O}):A.setAttribute(z,O);b._.dirty=1;break;case "src":"image"==b.type&&A.setAttributeNS("http://www.w3.org/1999/xlink","href",O);break;case "stroke-width":if(1!=b._.sx||1!=b._.sy)O/=u(h(b._.sx),h(b._.sy))||1;r._vbSize&&(O*=r._vbSize);e&&0===O&&(O=1E-6);A.setAttribute(z,O);d["stroke-dasharray"]&&m(b,d["stroke-dasharray"],
q);b._.arrows&&("startString"in b._.arrows&&n(b,b._.arrows.startString),"endString"in b._.arrows&&n(b,b._.arrows.endString,1));break;case "stroke-dasharray":m(b,O,q);break;case "fill":var W=a(O).match(c._ISURL);if(W){var M=L("pattern"),qa=L("image");M.id=c.createUUID();L(M,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});L(qa,{x:0,y:0,"xlink:href":W[1]});M.appendChild(qa);(function(a){c._preload(W[1],function(){var c=this.offsetWidth,b=this.offsetHeight;L(a,{width:c,height:b});L(qa,{width:c,
height:b});r.safari()})})(M);r.defs.appendChild(M);g.fill="url('"+c._url+"#"+M.id+"')";L(A,{fill:g.fill});b.pattern=M;b.pattern&&va(b);break}N=c.getRGB(O);if(!N.error)delete q.gradient,delete d.gradient,!c.is(d.opacity,"undefined")&&c.is(q.opacity,"undefined")&&L(A,{opacity:d.opacity}),!c.is(d["fill-opacity"],"undefined")&&c.is(q["fill-opacity"],"undefined")&&L(A,{"fill-opacity":d["fill-opacity"]}),b.gradient&&p(b);else if(("circle"==b.type||"ellipse"==b.type||"r"!=a(O).charAt())&&E(b,O)){if("opacity"in
d||"fill-opacity"in d)if(N=c._g.doc.getElementById(A.getAttribute("fill").replace(/^url\(#|\)$/g,"")))N=N.getElementsByTagName("stop"),L(N[N.length-1],{"stop-opacity":("opacity"in d?d.opacity:1)*("fill-opacity"in d?d["fill-opacity"]:1)});d.gradient=O;d.fill="none";g.fill="";break}N.hasOwnProperty("opacity")?(L(A,{"fill-opacity":g.fillOpacity=1<N.opacity?N.opacity/100:N.opacity}),b._.fillOpacityDirty=!0):b._.fillOpacityDirty&&c.is(d["fill-opacity"],"undefined")&&c.is(q["fill-opacity"],"undefined")&&
(A.removeAttribute("fill-opacity"),g.fillOpacity="",delete b._.fillOpacityDirty);case "stroke":N=c.getRGB(O);A.setAttribute(z,N.hex);g[z]=N.hex;"stroke"==z&&(N.hasOwnProperty("opacity")?(L(A,{"stroke-opacity":g.strokeOpacity=1<N.opacity?N.opacity/100:N.opacity}),b._.strokeOpacityDirty=!0):b._.strokeOpacityDirty&&c.is(d["stroke-opacity"],"undefined")&&c.is(q["stroke-opacity"],"undefined")&&(A.removeAttribute("stroke-opacity"),g.strokeOpacity="",delete b._.strokeOpacityDirty),b._.arrows&&("startString"in
b._.arrows&&n(b,b._.arrows.startString),"endString"in b._.arrows&&n(b,b._.arrows.endString,1)));break;case "gradient":"circle"!=b.type&&"ellipse"!=b.type&&"r"==a(O).charAt()||E(b,O);break;case "line-height":case "vertical-align":break;case "visibility":"hidden"===O?b.hide():b.show();break;case "opacity":d.gradient&&!d.hasOwnProperty("stroke-opacity")&&L(A,{"stroke-opacity":1<O?O/100:O});case "fill-opacity":if(d.gradient){if(N=c._g.doc.getElementById(A.getAttribute("fill").replace(/^url\(#|\)$/g,"")))N=
N.getElementsByTagName("stop"),L(N[N.length-1],{"stop-opacity":O});break}default:"font-size"==z&&(O=f(O,10)+"px"),N=z.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),g[N]=O,b._.dirty=1,A.setAttribute(z,O)}}"text"===b.type&&V(b,q);g.visibility=t}},V=function(f,q){if("text"==f.type&&(q.hasOwnProperty("text")||q.hasOwnProperty("font")||q.hasOwnProperty("font-size")||q.hasOwnProperty("x")||q.hasOwnProperty("y")||q.hasOwnProperty("line-height")||q.hasOwnProperty("vertical-align"))){var u=
f.attrs,h=f.node,A=h.firstChild&&c._g.doc.defaultView.getComputedStyle(h.firstChild,"")?b(c._g.doc.defaultView.getComputedStyle(h.firstChild,"").getPropertyValue("font-size")):10,d=b(q["line-height"]||u["line-height"])||1.2*A,G=u.hasOwnProperty("vertical-align")?u["vertical-align"]:"middle";isNaN(d)&&(d=1.2*A);c.is(q.text,"array")&&(q.text=q.text.join("<br>"));G="top"===G?-0.5:"bottom"===G?0.5:0;if(q.hasOwnProperty("text")&&(q.text!==u.text||f._textdirty)){for(u.text=q.text;h.firstChild;)h.removeChild(h.firstChild);
for(var e=a(q.text).split(/\n|<br\s*?\/?>/ig),A=[],r,g=0,t=e.length;g<t;g++)r=L("tspan"),g?L(r,{dy:d,x:u.x}):L(r,{dy:d*e.length*G,x:u.x}),e[g]||(r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),e[g]=" "),r.appendChild(c._g.doc.createTextNode(e[g])),h.appendChild(r),A[g]=r;f._textdirty=!1}else for(A=h.getElementsByTagName("tspan"),g=0,t=A.length;g<t;g++)g?L(A[g],{dy:d,x:u.x}):L(A[0],{dy:d*A.length*G,x:u.x});L(h,{x:u.x,y:u.y});f._.dirty=1;h=f._getBBox();d=u.y-(h.y+h.height/
2);if(h.isCalculated)switch(u["vertical-align"]){case "top":d=0.75*h.height;break;case "bottom":d=-(0.25*h.height);break;default:d=u.y-(h.y+0.25*h.height)}d&&c.is(d,"finite")&&A[0]&&L(A[0],{dy:d})}},l=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},qa=c.el;l.prototype=qa;qa.constructor=l;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};qa.rotate=function(c,f,q){if(this.removed)return this;c=a(c).split(G);c.length-1&&(f=b(c[1]),q=b(c[2]));c=b(c[0]);null==q&&(f=q);if(null==f||
null==q)q=this.getBBox(1),f=q.x+q.width/2,q=q.y+q.height/2;this.transform(this._.transform.concat([["r",c,f,q]]));return this};qa.scale=function(c,f,q,u){var h;if(this.removed)return this;c=a(c).split(G);c.length-1&&(f=b(c[1]),q=b(c[2]),u=b(c[3]));c=b(c[0]);null==f&&(f=c);null==u&&(q=u);if(null==q||null==u)h=this.getBBox(1);q=null==q?h.x+h.width/2:q;u=null==u?h.y+h.height/2:u;this.transform(this._.transform.concat([["s",c,f,q,u]]));return this};qa.translate=function(c,f){if(this.removed)return this;
c=a(c).split(G);c.length-1&&(f=b(c[1]));c=b(c[0])||0;this.transform(this._.transform.concat([["t",c,+f||0]]));return this};qa.transform=function(a){var b=this._;if(null==a)return b.transform;c._extractTransform(this,a);this.clip&&!b.clipispath&&L(this.clip,{transform:this.matrix.invert()});this.pattern&&va(this);this.node&&L(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};qa.hide=
function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};qa.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};qa.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&&p(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}};qa._getBBox=function(){var a=this.node,c={},b=this.attrs,f,q;"none"===a.style.display&&(this.show(),q=!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?0.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?0.5:0)))}catch(u){}finally{c=c||{}}q&&this.hide();return c};qa.attr=function(a,b){if(this.removed)return this;if(null==a){var f={},q;for(q in this.attrs)this.attrs.hasOwnProperty(q)&&(f[q]=this.attrs[q]);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(G),u={},h=0;for(q=f.length;h<q;h++)a=f[h],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 q-1?u:u[f[0]]}if(null==b&&c.is(a,"array")){u={};h=0;for(q=a.length;h<q;h++)u[a[h]]=this.attr(a[h]);return u}null!=b?(f={},f[a]=b):null!=
a&&c.is(a,"object")&&(f=a);for(h in f)r("raphael.attr."+h+"."+this.id,this,f[h],h);var A={};for(h in this.ca)if(this.ca[h]&&f.hasOwnProperty(h)&&c.is(this.ca[h],"function")&&!this.ca["_invoked"+h]){this.ca["_invoked"+h]=!0;q=this.ca[h].apply(this,[].concat(f[h]));delete this.ca["_invoked"+h];for(u in q)q.hasOwnProperty(u)&&(f[u]=q[u]);this.attrs[h]=f[h];!1===q&&(A[h]=f[h],delete f[h])}s(this,f);var d,h=0;for(q=this.followers.length;h<q;h++)d=this.followers[h],d.cb&&!d.cb.call(d.el,f,this)||d.el.attr(f);
for(u in A)f[u]=A[u];return this};qa.blur=function(a){if(0!==+a){var b=L("filter"),f=L("feGaussianBlur");this.attrs.blur=a;b.id=c.createUUID();L(f,{stdDeviation:+a||1.5});b.appendChild(f);this.paper.defs.appendChild(b);this._blur=b;L(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")};qa.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=L("path");a=new l(f,a,b);a.type="path";s(a,c);M(a,c);return a};c._engine.group=function(a,c,b){var f=L("g");a=new l(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=L("circle");a=new l(f,a,b);a.type="circle";s(a,c);M(a,c);
return a};c._engine.rect=function(a,c,b){var f=L("rect");a=new l(f,a,b);a.type="rect";c.rx=c.ry=c.r;s(a,c);M(a,c);return a};c._engine.ellipse=function(a,c,b){var f=L("ellipse");a=new l(f,a,b);a.type="ellipse";s(a,c);M(a,c);return a};c._engine.image=function(a,c,b){var f=L("image");a=new l(f,a,b);a.type="image";f.setAttribute("preserveAspectRatio","none");s(a,c);M(a,c);return a};c._engine.text=function(a,c,b){var f=L("text");a=new l(f,a,b);a.type="text";a._textdirty=!0;s(a,c);M(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,q=a.y,u=a.width,a=a.height;if(!b)throw Error("SVG container not found.");var h=L("svg"),A,f=f||0,q=q||0,u=u||512,a=a||342;L(h,{height:a,version:1.1,width:u,xmlns:"http://www.w3.org/2000/svg"});
1==b?(h.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:"+q+"px",c._g.doc.body.appendChild(h),A=1):(h.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(h,b.firstChild):b.appendChild(h));b=new c._Paper;b.width=u;b.height=a;b.canvas=h;L(h,{id:"raphael-paper-"+b.id});b.clear();b._left=b._top=0;A&&(b.renderfix=function(){});b.renderfix();return b};c._engine.setViewBox=function(a,c,b,f,q){r("raphael.setViewBox",this,this._viewBox,[a,c,b,f,q]);var h=u(b/this.width,f/this.height),A=this.top,d=q?"meet":"xMinYMin",G;null==a?(this._vbSize&&(h=1),delete this._vbSize,G="0 0 "+this.width+" "+this.height):(this._vbSize=h,G=a+" "+c+
" "+b+" "+f);for(L(this.canvas,{viewBox:G,preserveAspectRatio:d});h&&A;)d="stroke-width"in A.attrs?A.attrs["stroke-width"]:1,A.attr({"stroke-width":d}),A._.dirty=1,A._.dirtyT=1,A=A.prev;this._viewBox=[a,c,b,f,!!q];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=L("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=L("desc"));a.appendChild(this.defs=L("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 Ib=c.st,W;for(W in qa)qa.hasOwnProperty(W)&&!Ib.hasOwnProperty(W)&&(Ib[W]=function(a){return function(){var c=arguments;return this.forEach(function(b){b[a].apply(b,c)})}}(W))}})();
(function(){if(c.vml){var a=String,b=parseFloat,f=Math,q=f.round,h=f.max,u=f.min,A=f.sqrt,d=f.abs,G=/[, ]+/,e=c.eve,r={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},g=/([clmz]),?([^clmz]*)/gi,t=/ progid:\S+Blur\([^\)]+\)/g,L=/-?[^,\s-]+/g,p={path:1,rect:1,image:1},O={circle:1,ellipse:1},z=function(b){var f=/[ahqstv]/ig,h=c._pathToAbsolute;a(b).match(f)&&(h=c._path2curve);f=/[clmz]/g;if(h==c._pathToAbsolute&&!a(b).match(f))return(b=a(b).replace(g,function(a,c,b){var f=[],h="m"==c.toLowerCase(),
u=r[c];b.replace(L,function(a){h&&2==f.length&&(u+=f+r["m"==c?"l":"L"],f=[]);f.push(q(21600*a))});return u+f}))||"m0,0";var f=h(b),u;b=[];for(var A=0,d=f.length;A<d;A++){h=f[A];u=f[A][0].toLowerCase();"z"==u&&(u="x");for(var G=1,e=h.length;G<e;G++)u+=q(21600*h[G])+(G!=e-1?",":"");b.push(u)}return b.length?b.join(" "):"m0,0"},E=function(a,b,f){var q=c.matrix();q.rotate(-a,0.5,0.5);return{dx:q.x(b,f),dy:q.y(b,f)}},N=function(a,c,b,f,q,h){var u=a._,A=a.matrix,G=u.fillpos;a=a.node;var e=a.style,r=1,g=
"",t=21600/c,L=21600/b;e.visibility="hidden";if(c&&b){a.coordsize=d(t)+" "+d(L);e.rotation=h*(0>c*b?-1:1);h&&(q=E(h,f,q),f=q.dx,q=q.dy);0>c&&(g+="x");0>b&&(g+=" y")&&(r=-1);e.flip=g;a.coordorigin=f*-t+" "+q*-L;if(G||u.fillsize)if(f=(f=a.getElementsByTagName("fill"))&&f[0])a.removeChild(f),G&&(q=E(h,A.x(G[0],G[1]),A.y(G[0],G[1])),f.position=q.dx*r+" "+q.dy*r),u.fillsize&&(f.size=u.fillsize[0]*d(c)+" "+u.fillsize[1]*d(b)),a.appendChild(f);e.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 va=function(c,b,f){b=a(b).toLowerCase().split("-");f=f?"end":"start";for(var q=b.length,h="classic",u="medium",A="medium";q--;)switch(b[q]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":h=b[q];break;case "wide":case "narrow":A=b[q];break;case "long":case "short":u=b[q]}c=c.node.getElementsByTagName("stroke")[0];c[f+"arrow"]=h;c[f+"arrowlength"]=u;c[f+"arrowwidth"]=A},n=function(a,c){for(var b in c)e("raphael.attr."+b+"."+a.id,a,c[b],b),a.ca[b]&&a.attr(b,
c[b])},m=c._setFillAndStroke=function(f,A){if(f.paper.canvas){f.attrs=f.attrs||{};var d=f.node,e=f.attrs,r=d.style,g=p[f.type]&&(A.x!=e.x||A.y!=e.y||A.width!=e.width||A.height!=e.height||A.cx!=e.cx||A.cy!=e.cy||A.rx!=e.rx||A.ry!=e.ry||A.r!=e.r),t=O[f.type]&&(e.cx!=A.cx||e.cy!=A.cy||e.r!=A.r||e.rx!=A.rx||e.ry!=A.ry),L="group"===f.type,E;for(E in A)A.hasOwnProperty(E)&&(e[E]=A[E]);g&&(e.path=c._getPath[f.type](f),f._.dirty=1);A.href&&(d.href=A.href);A.title&&(d.title=A.title);A.target&&(d.target=A.target);
A.cursor&&(r.cursor=A.cursor);"blur"in A&&f.blur(A.blur);if(A.path&&"path"==f.type||g)d.path=z(~a(e.path).toLowerCase().indexOf("r")?c._pathToAbsolute(e.path):e.path),"image"==f.type&&(f._.fillpos=[e.x,e.y],f._.fillsize=[e.width,e.height],N(f,1,1,0,0,0));"transform"in A&&f.transform(A.transform);"rotation"in A&&(r=A.rotation,c.is(r,"array")?f.rotate.apply(f,r):f.rotate(r));"visibility"in A&&("hidden"===A.visibility?f.hide():f.show());t&&(r=+e.cx,t=+e.cy,g=+e.rx||+e.r||0,E=+e.ry||+e.r||0,d.path=c.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",
q(21600*(r-g)),q(21600*(t-E)),q(21600*(r+g)),q(21600*(t+E)),q(21600*r)));"clip-rect"in A&&(r=a(A["clip-rect"]).split(G),4==r.length&&(r[0]=+r[0],r[1]=+r[1],r[2]=+r[2]+r[0],r[3]=+r[3]+r[1],g=L?d:d.clipRect||c._g.doc.createElement("div"),t=g.style,L?(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],t.width="10800px",t.height="10800px"):d.clipRect||(t.top="0",t.left="0",t.width=f.paper.width+"px",t.height=f.paper.height+"px",d.parentNode.insertBefore(g,
d),g.appendChild(d),g.raphael=!0,g.raphaelid=d.raphaelid,d.clipRect=g),t.position="absolute",t.clip=c.format("rect({1}px {2}px {3}px {0}px)",r)),A["clip-rect"]||(L&&f.clip?(d.style.clip="rect(auto auto auto auto)",delete f.clip):d.clipRect&&(d.clipRect.style.clip="rect(auto auto auto auto)")));f.textpath&&(L=f.textpath.style,A.font&&(L.font=A.font),A["font-family"]&&(L.fontFamily='"'+A["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),A["font-size"]&&(L.fontSize=A["font-size"]),A["font-weight"]&&
(L.fontWeight=A["font-weight"]),A["font-style"]&&(L.fontStyle=A["font-style"]));"arrow-start"in A&&va(f,A["arrow-start"]);"arrow-end"in A&&va(f,A["arrow-end"],1);if(null!=A.opacity||null!=A["stroke-width"]||null!=A.fill||null!=A.src||null!=A.stroke||null!=A["stroke-width"]||null!=A["stroke-opacity"]||null!=A["fill-opacity"]||null!=A["stroke-dasharray"]||null!=A["stroke-miterlimit"]||null!=A["stroke-linejoin"]||null!=A["stroke-linecap"]){L=d.getElementsByTagName("fill");r=-1;L=L&&L[0];!L&&(L=l("fill"));
"image"==f.type&&A.src&&(L.src=A.src);A.fill&&(L.on=!0);if(null==L.on||"none"==A.fill||null===A.fill)L.on=!1;L.on&&A.fill&&((t=a(A.fill).match(c._ISURL))?(L.parentNode==d&&d.removeChild(L),L.rotate=!0,L.src=t[1],L.type="tile",g=f.getBBox(1),L.position=g.x+" "+g.y,f._.fillpos=[g.x,g.y],c._preload(t[1],function(){f._.fillsize=[this.offsetWidth,this.offsetHeight]})):(t=c.getRGB(A.fill),L.color=t.hex,L.src="",L.type="solid",t.error&&(f.type in{circle:1,ellipse:1}||"r"!=a(A.fill).charAt())&&M(f,A.fill,
L)?(e.fill="none",e.gradient=A.fill,L.rotate=!1):"opacity"in t&&!("fill-opacity"in A)&&(r=t.opacity)));if(-1!==r||"fill-opacity"in A||"opacity"in A)t=((+e["fill-opacity"]+1||2)-1)*((+e.opacity+1||2)-1)*((+r+1||2)-1),t=u(h(t,0),1),L.opacity=t,L.src&&(L.color="none");d.appendChild(L);L=d.getElementsByTagName("stroke")&&d.getElementsByTagName("stroke")[0];r=!1;!L&&(r=L=l("stroke"));if(A.stroke&&"none"!=A.stroke||A["stroke-width"]||null!=A["stroke-opacity"]||A["stroke-dasharray"]||A["stroke-miterlimit"]||
A["stroke-linejoin"]||A["stroke-linecap"])L.on=!0;"none"!=A.stroke&&null!==A.stroke&&null!=L.on&&0!=A.stroke&&0!=A["stroke-width"]||(L.on=!1);t=c.getRGB("stroke"in A?A.stroke:e.stroke);L.on&&A.stroke&&(L.color=t.hex);t=((+e["stroke-opacity"]+1||2)-1)*((+e.opacity+1||2)-1)*((+t.opacity+1||2)-1);g=0.75*(b(A["stroke-width"])||1);t=u(h(t,0),1);null==A["stroke-width"]&&(g=e["stroke-width"]);A["stroke-width"]&&(L.weight=g);g&&1>g&&(t*=g)&&(L.weight=1);L.opacity=t;A["stroke-linejoin"]&&(L.joinstyle=A["stroke-linejoin"])||
r&&(r.joinstyle="miter");L.miterlimit=A["stroke-miterlimit"]||8;A["stroke-linecap"]&&(L.endcap="butt"==A["stroke-linecap"]?"flat":"square"==A["stroke-linecap"]?"square":"round");A["stroke-dasharray"]&&(t={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},L.dashstyle=t.hasOwnProperty(A["stroke-dasharray"])?t[A["stroke-dasharray"]]:A["stroke-dasharray"].join&&A["stroke-dasharray"].join(" ")||
"");r&&d.appendChild(L)}if("text"==f.type){f.paper.canvas.style.display="";d=f.paper.span;L=e.font&&e.font.match(/\d+(?:\.\d*)?(?=px)/);t=e["line-height"]&&(e["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/);r=d.style;e.font&&(r.font=e.font);e["font-family"]&&(r.fontFamily=e["font-family"]);e["font-weight"]&&(r.fontWeight=e["font-weight"]);e["font-style"]&&(r.fontStyle=e["font-style"]);L=b(e["font-size"]||L&&L[0])||10;r.fontSize=100*L+"px";t=b(e["line-height"]||t&&t[0])||12;e["line-height"]&&(r.lineHeight=
100*t+"px");c.is(A.text,"array")&&(A.text=f.textpath.string=A.text.join("\n").replace(/<br\s*?\/?>/ig,"\n"));f.textpath.string&&(d.innerHTML=a(f.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));d=d.getBoundingClientRect();f.W=e.w=(d.right-d.left)/100;f.H=e.h=(d.bottom-d.top)/100;f.X=e.x;f.Y=e.y;switch(e["vertical-align"]){case "top":f.bby=f.H/2;break;case "bottom":f.bby=-f.H/2;break;default:f.bby=0}("x"in A||"y"in A||void 0!==f.bby)&&(f.path.v=c.format("m{0},{1}l{2},{1}",
q(21600*e.x),q(21600*(e.y+(f.bby||0))),q(21600*e.x)+1));d="x y text font font-family font-weight font-style font-size line-height".split(" ");L=0;for(r=d.length;L<r;L++)if(d[L]in A){f._.dirty=1;break}switch(e["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}}},M=function(f,q,h){f.attrs=f.attrs||{};
var u=Math.pow,d="linear",G=".5 .5";f.attrs.gradient=q;q=a(q).replace(c._radial_gradient,function(a,c){d="radial";c=c&&c.split(",")||[];var f=c[3],q=c[4];f&&q&&(f=b(f),q=b(q),0.25<u(f-0.5,2)+u(q-0.5,2)&&(q=A(0.25-u(f-0.5,2))*(2*(0.5<q)-1)+0.5),G=f+" "+q);return""});q=q.split(/\s*\-\s*/);if("linear"==d){var e=q.shift(),e=-b(e);if(isNaN(e))return null}q=c._parseDots(q);if(!q)return null;f=f.shape||f.node;if(q.length){h.parentNode==f&&f.removeChild(h);h.on=!0;h.method="none";h.color=q[0].color;h.color2=
q[q.length-1].color;for(var r=[],g=1,L=void 0===q[0].opacity?1:q[0].opacity,t=0,p=q.length;t<p;t++)q[t].offset&&r.push(q[t].offset+" "+q[t].color),void 0!==q[t].opacity&&(g=q[t].opacity);h.colors=r.length?r.join():"0% "+h.color;h.opacity=g;h["o:opacity2"]=L;"radial"==d?(h.type="gradientTitle",h.focus="100%",h.focussize="0 0",h.focusposition=G,h.angle=0):(h.type="gradient",h.angle=(270-e)%360);f.appendChild(h)}return 1},s=function(a,b,f){f=f||b;var q;f.canvas&&f.canvas.appendChild(a);q=l("skew");q.on=
!0;a.appendChild(q);this.skew=q;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;s.prototype=f;f.constructor=s;f.transform=
function(b){if(null==b)return this._.transform;var f=this.paper._viewBoxShift,q=f?"s"+[f.scale,f.scale]+"-1-1t"+[f.dx,f.dy]:"",h;f&&(h=b=a(b).replace(/\.{3}|\u2026/g,this._.transform||""));c._extractTransform(this,q+b);var f=this.matrix.clone(),u=this.skew;b=this.node;var q=~a(this.attrs.fill).indexOf("-"),A=!a(this.attrs.fill).indexOf("url(");f.translate(-0.5,-0.5);A||q||"image"==this.type?(u.matrix="1 0 0 1",u.offset="0 0",u=f.split(),q&&u.noRotation||!u.isSimple?(b.style.filter=f.toFilter(),f=
this.getBBox(),q=this.getBBox(1),A=f.x2&&q.x2&&"x2"||"x",u=f.y2&&q.y2&&"y2"||"y",A=f[A]-q[A],f=f[u]-q[u],b.coordorigin=-21600*A+" "+-21600*f,N(this,1,1,A,f,0)):(b.style.filter="",N(this,u.scalex,u.scaley,u.dx,u.dy,u.rotate))):(b.style.filter="",u.matrix=a(f),u.offset=f.offset());h&&(this._.transform=h);return this};f.rotate=function(c,f,q){if(this.removed)return this;if(null!=c){c=a(c).split(G);c.length-1&&(f=b(c[1]),q=b(c[2]));c=b(c[0]);null==q&&(f=q);if(null==f||null==q)q=this.getBBox(1),f=q.x+
q.width/2,q=q.y+q.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",c,f,q]]));return this}};f.translate=function(c,f){if(this.removed)return this;c=a(c).split(G);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,q,h){if(this.removed)return this;c=a(c).split(G);c.length-1&&(f=b(c[1]),q=b(c[2]),h=b(c[3]),isNaN(q)&&(q=null),isNaN(h)&&(h=null));c=b(c[0]);
null==f&&(f=c);null==h&&(q=h);if(null==q||null==h)var u=this.getBBox(1);q=null==q?u.x+u.width/2:q;h=null==h?u.y+u.height/2:h;this.transform(this._.transform.concat([["s",c,f,q,h]]));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);e.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={},q;for(q in this.attrs)this.attrs.hasOwnProperty(q)&&(f[q]=this.attrs[q]);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(G),h={},u=0;for(q=f.length;u<q;u++)a=f[u],a in this.attrs?h[a]=this.attrs[a]:c.is(this.ca[a],"function")?h[a]=this.ca[a].def:h[a]=c._availableAttrs[a];return q-1?h:h[f[0]]}if(this.attrs&&null==b&&c.is(a,"array")){h={};u=0;for(q=a.length;u<q;u++)h[a[u]]=this.attr(a[u]);return h}null!=b&&(f={},f[a]=b);null==b&&c.is(a,"object")&&(f=a);for(u in f)e("raphael.attr."+u+"."+this.id,this,f[u],u);if(f){var A={};for(u in this.ca)if(this.ca[u]&&
f.hasOwnProperty(u)&&c.is(this.ca[u],"function")&&!this.ca["_invoked"+u]){this.ca["_invoked"+u]=!0;q=this.ca[u].apply(this,[].concat(f[u]));delete this.ca["_invoked"+u];for(h in q)q.hasOwnProperty(h)&&(f[h]=q[h]);this.attrs[u]=f[u];!1===q&&(A[u]=f[u],delete f[u])}"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"));m(this,f);var d,u=0;for(q=this.followers.length;u<q;u++)d=this.followers[u],d.cb&&!d.cb.call(d.el,
f,this)||d.el.attr(f);for(h in A)f[h]=A[h]}return this};f.blur=function(a){var b=this.node.runtimeStyle,f=b.filter,f=f.replace(t,"");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",q(+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 q=c._g.doc.createElement("div"),u=new s(q,a,f);q.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";u._id=b||"";b&&(q.className="raphael-group-"+u.id+"-"+b);(f||a).canvas.appendChild(q);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 q=this.node.style,u=this.clip,h=this.paper._viewBoxShift,A=h?"s"+[h.scale,h.scale]+"-1-1t"+[h.dx,h.dy]:"";h&&(f=a(f).replace(/\.{3}|\u2026/g,this._.transform||""));c._extractTransform(this,A+f);f=this.matrix;A=f.offset();h=b(A[0])||0;A=b(A[1])||0;q.left=h+"px";q.top=A+"px";q.zoom=(this._.tzoom=f.get(0))+"";u&&(q.clip=c.format("rect({1}px {2}px {3}px {0}px)",[u[0]-h,u[1]-A,u[2]-h,u[3]-A]));return this};c._engine.path=function(a,c,b){var f=l("shape");
f.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";f.coordsize="21600 21600";f.coordorigin=a.coordorigin;a=new s(f,a,b);a.type=c.type||"path";a.path=[];a.Path="";c.type&&delete c.type;m(a,c);n(a,c);return a};c._engine.rect=function(a,b,f){var q=c._rectPath(b.x,b.y,b.w,b.h,b.r);b.path=q;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=q;return a};c._engine.ellipse=function(a,b,c){b.type="ellipse";a=a.path(b,c);b=a.attrs;a.X=b.x-b.rx;a.Y=b.y-b.ry;
a.W=2*b.rx;a.H=2*b.ry;return a};c._engine.circle=function(a,b,c){b.type="circle";a=a.path(b,c);b=a.attrs;a.X=b.x-b.r;a.Y=b.y-b.r;a.W=a.H=2*b.r;return a};c._engine.image=function(a,b,f){var q=c._rectPath(b.x,b.y,b.w,b.h);b.path=q;b.type="image";b.stroke="none";a=a.path(b,f);f=a.attrs;var q=a.node,u=q.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==q&&q.removeChild(u);u.rotate=!0;u.src=f.src;u.type="tile";a._.fillpos=[f.x,f.y];a._.fillsize=
[f.w,f.h];q.appendChild(u);N(a,1,1,0,0,0);return a};c._engine.text=function(b,f,u){var h=l("shape"),A=l("path"),d=l("textpath");x=f.x||0;y=f.y||0;text=f.text;A.v=c.format("m{0},{1}l{2},{1}",q(21600*f.x),q(21600*f.y),q(21600*f.x)+1);A.textpathok=!0;d.string=a(f.text).replace(/<br\s*?\/?>/ig,"\n");d.on=!0;h.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";h.coordsize="21600 21600";h.coordorigin="0 0";b=new s(h,b,u);b.shape=h;b.path=A;b.textpath=d;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;m(b,f);n(b,f);h.appendChild(d);h.appendChild(A);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,q){e("raphael.setViewBox",this,this._viewBox,[a,b,c,f,q]);var u=this.width,A=this.height,d=1/h(c/u,f/A),G,
r;q&&(G=A/f,r=u/c,c*G<u&&(a-=(u-c*G)/2/G),f*r<A&&(b-=(A-f*r)/2/r));this._viewBox=[a,b,c,f,!!q];this._viewBoxShift={dx:-a,dy:-b,scale:d};this.forEach(function(a){a.transform("...")});return this};var l;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"),l=c._createNode=function(b,c){var q=f.createElement("<rvml:"+b+' class="rvml">'),u;for(u in c)q[u]=a(c[u]);
return q}}catch(q){l=c._createNode=function(b,c){var q=f.createElement("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'),u;for(u in c)q[u]=a(c[u]);return q}}};c._engine.initWin(c._g.win);c._engine.create=function(){var a=c._getContainer.apply(0,arguments),b=a.container,f=a.height,q=a.width,u=a.x,a=a.y;if(!b)throw Error("VML container not found.");var h=new c._Paper,A=h.canvas=c._g.doc.createElement("div"),d=A.style,u=u||0,a=a||0,q=q||512,f=f||342;h.width=q;h.height=f;q==+q&&(q+="px");
f==+f&&(f+="px");h.coordsize="21600000 21600000";h.coordorigin="0 0";A.id="raphael-paper-"+h.id;h.span=c._g.doc.createElement("span");h.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";A.appendChild(h.span);d.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",q,f);1==b?(c._g.doc.body.appendChild(A),d.left=u+"px",d.top=a+"px",d.position="absolute"):b.firstChild?
b.insertBefore(A,b.firstChild):b.appendChild(A);h.renderfix=function(){};return h};c.prototype.clear=function(){var a;for(e("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(e("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 V=c.st,W;for(W in f)f.hasOwnProperty(W)&&!V.hasOwnProperty(W)&&(V[W]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(W))}})();sa?fa.win.Raphael=c:Raphael=c;return c})})();d.Raphael=B;d.Raphael.desc="";k&&k!==B?window.Raphael=k:window.Raphael===B&&(window.Raphael=void 0)}]);
FusionCharts.register("module",["private","fusioncharts.redraphael.helper",function(){var d={};this.hcLib.Raphael.fn._elementFromEvent=function(k){if(!k||this.removed)return null;var B=k.srcElement||k.target||(k=k.originalEvent)&&(k.srcElement||k.target)||d;"tspan"===B.nodeName&&(B=B.parentNode);return this.getById(B.raphaelid)}}]);
FusionCharts.register("module",["private","fusioncharts.redraphael.css",function(){var d=this.hcLib.Raphael,k=d.eve,B=d._g,v=d.fn,l=d.el,c=/[, ]+/,K=/\B([A-Z]{1})/g,b,J;b=function(a){this.rules={};this.ns=a||""};J=b.prototype;J.getSheet=function(){var a=this.node;a||(a=this.node=B.doc.createElement("style"),this.node.setAttribute("id",d.format("raphael-stylesheet-{0}",d._oid++)),this.node.setAttribute("type","text/css"),(B.doc.head||B.doc.getElementsByTagName("head")[0]).appendChild(this.node));return a};
J.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(B.doc.createTextNode(a)))};J.destroy=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node);delete this.rules};J.clear=function(){this.setCssText("");this.rules={}};J.add=function(a,b){var c=this.rules[a]||(this.rules[a]={}),d;for(d in b)c[d]=b[d]};J.render=function(){this.setCssText(this.toString())};J.toString=
function(a){var b=a?"":"\n",c=a?"":"\t";a=a?":":": ";var d=b,l,e;for(l in this.rules){d+=l.replace(/(^|\,)/g,"$1"+this.ns+" ")+" {"+b;l=this.rules[l];for(e in l)l[e]&&(d+=c+e.replace(K,"-$1").toLowerCase()+a+l[e]+";"+b);d+="}"+b}return d};k.on("raphael.new",function(){this._stylesheet=this._stylesheet||new b;this.cssNamespace("")});k.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&&k.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&&k.on("raphael.attr.class",function(a){var b=this.paper,c="."+a,b=b._stylesheet&&b._stylesheet.rules,d=this.parent,l=this.attrs,e={},g;this.node.className="group"===this.type?a&&this._id+" "+a||this._id:"rvml "+a;if(c&&b){a=b[c];for(g in a)"color"===g&&"text"===this.type&&(g="fill"),!l[g]&&(e[g]=a[g]);for(;d&&d.attr;){if(a=d.attr("class"))for(g in c="."+a+" "+c,a=b[c],a)"color"===g&&"text"===this.type&&(g="fill"),l[g]||e[g]||
(e[g]=a[g]);d=d.parent}this.css(e)}});l.css=function(a,b){var l,v,w,e;if(this.removed)return this;this.styles||(this.styles={});if(null==b&&d.is(a,"string")){l=a.split(c);v={};e=0;for(w=l.length;e<w;e++)a=l[e],a in this.styles&&(v[a]=this.styles[a]);return w-1?v:v[l[0]]}if(null==b&&d.is(a,"array")){v={};e=0;for(w=a.length;e<w;e++)v[a[e]]=this.styles(a[e]);return v}null!=b?(l={},l[a]=b):null!=a&&d.is(a,"object")&&(l=a);v={};for(e in l)w=e.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),d._availableAttrs.hasOwnProperty(w)||
"color"===w?("color"===w&&"text"===this.type&&(w="fill"),v[w]=l[e],v.dirty=!0):(k("raphael.css."+w+"."+this.id,this,l[e],w),this.node.style[w]=l[e],this.styles[w]=l[e]);e=0;for(w=this.followers.length;e<w;e++)this.followers[e].el.attr(l);v.hasOwnProperty("dirty")&&(delete v.dirty,this.attr(v));return this}}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelexport",function(){var d=this.hcLib,k=d.Raphael,B=d.pluckNumber,v=d.pluck,l=k._availableAttrs,c=/^matrix\(|\)$/g,K=/\,/g,b=/\n|<br\s*?\/?>/ig,J=/[^\d\.]/ig,a=/[\(\)\s,\xb0#]/g,D=/group/ig,F=/&/g,C=/"/g,w=/'/g,e=/</g,g=/>/g,n=0;(function(d){var k=Math,m=parseFloat,I=k.max,Q=k.abs,X=k.pow,$=String,p=/[, ]+/,H=[{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()}}],S={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,p="linear",t,n,h,N=0.5,l=0.5,S=n="",w="";t=g.replace(a,"_");if(!e[t]){g=$(g).replace(d._radial_gradient,function(a,b){var c,h;b=b&&b.split(",")||[];p="radial";c=b[3];h=b[4];c&&h&&(N=m(c),l=m(h),c=2*(0.5<l)-1,0.25<X(N-0.5,2)+X(l-0.5,2)&&(l=k.sqrt(0.25-X(N-0.5,2))*c+0.5)&&0.5!=
l&&(l=l.toFixed(5)-1E-5*c));return""});g=g.split(/\s*\-\s*/);if("linear"===p){n=g.shift();n=-m(n);if(isNaN(n))return null;h=[0,0,k.cos(d.rad(n)),k.sin(d.rad(n))];n=1/(I(Q(h[2]),Q(h[3]))||1);h[2]*=n;h[3]*=n;0>h[2]&&(h[0]=-h[2],h[2]=0);0>h[3]&&(h[1]=-h[3],h[3]=0)}g=d._parseDots(g);if(!g)return null;"radial"===p?(n='<radialGradient fx = "'+N+'" fy = "'+l+'" id = "'+t+'">',S="</radialGradient>"):(n='<linearGradient x1 = "'+h[0]+'" y1 = "'+h[1]+'" x2 = "'+h[2]+'" y2 = "'+h[3]+'" gradientTransform ="matrix('+
b.matrix.invert()+')" id = "'+t+'">',S="</linearGradient>");b=0;for(h=g.length;b<h;b++)w+='<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[t]=!0;e.str+=n+w+S}c.attrSTR+=" fill=\"url('#"+t+"')\""},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,d,e){var g=$(d.attrs["clip-rect"]),m=g.split(p),g=g.replace(a,"_")+"__"+n++;4===m.length&&(e[g]||(e[g]=!0,e.str+='<clipPath id="'+g+'"><rect x="'+m[0]+'" y="'+m[1]+'" width="'+m[2]+'" height="'+m[3]+'" transform="matrix('+b.matrix.invert().toMatrixString().replace(c,
"")+')"/></clipPath>'),d.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(J,""));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,p=d.text,n=v(d["font-size"],d.font,"10"),t=v(d["line-height"]),m,h,N;n&&n.replace&&(n=n.replace(J,""));n=B(n);t&&t.replace&&(t=t.replace(J,""));t=B(t,n&&1.2*n);m=n?0.85*n:0.75*t;n=d.x;h=v(d["vertical-align"],"middle").toLowerCase();
p=$(p).split(b);N=p.length;d=0;for(m="top"===h?m:"bottom"===h?m-t*N:m-t*N*0.5;d<N;d++)c.textSTR+="<tspan ",h=(p[d]||"").replace(F,"&amp;").replace(C,"&quot;").replace(w,"&#39;").replace(e,"&lt;").replace(g,"&gt;"),c.textSTR=d?c.textSTR+('dy="'+t+'" x="'+n+'" '):c.textSTR+('dy="'+m+'"'),c.textSTR+=">"+h+"</tspan>"}},fa=function(a,b){var d="",e={attrSTR:"",styleSTR:"",textSTR:"",attrs:a.attr()},g=a.isShadow,t="",p="",h,n,m=e.attrs;if("none"===a.node.style.display||g)a.next&&(d+=fa(a.next,b));else{for(h in m)if("gradient"!==
h&&(void 0!==l[h]||S[h])&&void 0!==m[h])if(S[h])S[h](a,e,b);else e.attrSTR+=" "+h+'="'+m[h]+'"';a.attrs.gradient&&S.gradient(a,e,b);"rect"===a.type&&m.r&&(e.attrSTR+=' rx="'+m.r+'" ry="'+m.r+'"');for(n in a.styles)e.styleSTR+=n+":"+a.styles[n]+"; ";"image"===a.type&&(e.attrSTR+=' preserveAspectRatio="none"');if("text"===a.type&&!m["text-anchor"])S["text-anchor"](a,e);a.bottom&&(t=fa(a.bottom,b));a.next&&(p=fa(a.next,b));g=a.type;g.match(D)&&(g="g");d+="<"+g+' transform="matrix('+a.matrix.toMatrixString().replace(c,
"")+')" style="'+e.styleSTR+'"'+e.attrSTR+">"+e.textSTR+t+"</"+g+">"+p}return d};d.fn.toSVG=function(a){var b="",c={str:""},e=0,g=H.length,t="";if(d.svg){if(this.canvas&&this.canvas.parentNode){for(b=this.canvas.parentNode.innerHTML;e<g;e+=1)c=H[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&&(t=fa(this.bottom,c)),b+="<defs>"+c.str+"</defs>"+t+"</svg>";a||(b=b.replace(/<image [^\>]*\>/gi,""));return b}})(k)}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelshadow",function(){var d=this.window,k=d.Math.sqrt,B=d.parseFloat,v=d.parseInt,d=d.SVGFilterElement||d.SVGFEColorMatrixElement&&2===d.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE,l=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=l._createNode,b;l.svg?(d&&(l.el.dropshadow=function(b,a,c,d){var v=this.node,w=this._.shadowFilter,e=this.paper.cacheShadows||(this.paper.cacheShadows={}),g="drop-shadow"+[b,a,c,d].join(" "),n;if("none"===b){if(w){w.use-=1;this.node.removeAttribute("filter");if(!w.use){g=w.hash;for(n in w)b=w[n],b.parentNode&&b.parentNode.removeChild(b),delete w[n];delete e[g]}delete this._.shadowFilter}}else w&&e[g]===w||(w=this.paper.defs.appendChild(K("filter",{id:l.createUUID(),width:"200%",
height:"200%"})),d=l.color(d),d.error&&(d=l.color("rgba(0,0,0,1)")),n=l.pick(d.opacity,1),this._.shadowFilter=e[g]={use:1,filter:w,hash:g,offset:w.appendChild(K("feOffset",{result:"offOut","in":"SourceGraphic",dx:B(b),dy:B(a)})),matrix:w.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 "+n+" 0"})),blur:w.appendChild(K("feGaussianBlur",{result:"blurOut","in":"matrixOut",stdDeviation:k(B(c))})),blend:w.appendChild(K("feComposite",
{"in":"SourceGraphic",in2:"blurOut",operator:"over"}))},v.setAttribute("filter",'url("'+l._url+"#"+w.id+'")'));return this}),b=function(b,a){var d=this.__shadowscale,l={},k,w;for(w in b)switch(c[w]&&(l[w]=b[w],delete b[w]),w){case "transform":k=a.matrix.clone();k.translate(this.__shadowx,this.__shadowy);this.transform(k.toTransformString());break;case "stroke-width":b[w]=((l[w]||1)+6-2*this.__shadowlevel)*d}this.attr(b);for(w in l)b[w]=l[w]},l.ca["drop-shadow"]=function(c,a,d,k,C,w){d=this._.shadows||
(this._.shadows=[]);var e,g,n,s,R;if(!this.__shadowblocked)if("none"===c)for(;g=d.pop();)g.remove();else for(k=l.color(k),k.error&&(k=l.color("rgba(0,0,0,1)")),C instanceof Array?(e=C[0],C=C[1]):e=C,e=1/l.pick(e,1),C=1/l.pick(C,1),c=l.pick(c,1)*e,a=l.pick(a,1)*e,e=0.05*l.pick(k.opacity,1),n=v(this.attr("stroke-width")||1,10)+6,s=this.matrix.clone(),s.translate(c,a),R=1;3>=R;R++)g=(d[R-1]||this.clone().follow(this,b,!w&&"before")).attr({stroke:k.hex,"stroke-opacity":e*R,"stroke-width":(n-2*R)*C,transform:s.toTransformString(),
"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"}),g.__shadowlevel=R,g.__shadowscale=C,g.__shadowx=c,g.__shadowy=a,w&&w.appendChild(g),d.push(g);return!1},l.el.shadow=function(b,a,c,d){var k;c&&c.constructor===l.el.constructor&&(d=c,c=void 0);"object"===typeof b&&(a&&a.constructor===l.el.constructor&&(d=a),a=b.opacity,c=b.scalefactor,k=!!b.useFilter,b=void 0===b.apply?!!a:b.apply);void 0===a&&(a=1);if(this.dropshadow){if(k)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")}):l.vml?(l.ca["drop-shadow"]=function(b,a,c,d,k,w){var e=this._.shadow,g,n;if(this.isShadow)return!1;"none"===b?e&&(this._.shadow=e.remove()):(e||(e=this._.shadow=this.clone(),w&&w.appendChild(e.follow(this))||e.follow(this,void 0,"before"),e.attr({fill:"none","fill-opacity":0.5,"stroke-opacity":1}).isShadow=!0,0>=e.attr("stroke-width")&&e.attr("stroke-width",1)),w=e.node.runtimeStyle,
g=w.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,""),d=l.color(d),d.error&&(d=l.color("rgba(0,0,0,1)")),n=l.pick(d.opacity,1)/5,k=1/l.pick(k,1),b=l.pick(b,1)*k,a=l.pick(a,1)*k,e.translate(b,a),w.filter=g+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+B(0.4*c)+" makeShadow=True Color="+d.hex+' shadowOpacity="'+n+'");');return!1},l.el.shadow=function(b,a,c,d){c&&c.constructor===l.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")}):l.canvas&&(l.el.shadow=function(){return this})}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelshapes",function(){var d=this.window,k="createTouch"in d.document,B=/msie/i.test(d.navigator.userAgent)&&!d.opera,v=d.Math,l=v.cos,c=v.sin,K=v.abs,b=v.pow,J=v.atan2,a=v.min,D=v.round,F=v.PI,C=2*F,w=d.parseInt,e=d.parseFloat,g=String,n=Array.prototype.slice,s=b(2,-24),R="rgba(192,192,192,"+(B?0.002:1E-6)+")",m=this.hcLib.Raphael,I=m.eve,Q=m._createNode,X=m._setFillAndStroke,$=m.el.constructor,p={speed:"optimizeSpeed",crisp:"crispEdges",
precision:"geometricPrecision"},H={enabled:!1,"false":!1,0:!1,disabled:!0,"true":!0,1:!0},S={Q:"L",Z:"X",q:"l",z:"x",",":" "},fa=/,?([achlmqrstvxz]),?/gi,sa=/\s*\,\s*/g,ya,ca=function(){return this.join(",").replace(fa,ya)},Y,xa;if(m.svg)I.on("raphael.attr.shape-rendering",function(a,b){var c=this.node;this.attrs[b]=a=p[a]||a||"auto";c.setAttribute(b,a);c.style.shapeRendering=a});else if(m.vml)I.on("raphael.attr.shape-rendering",function(a){this.node.style.antialias="crisp"!==a});m.define&&m.define([{name:"polypath",
polypath:function(){return this.path(void 0,m._lastArgIfGroup(arguments))},ca:{polypath:function(a,b,h,d,g,p){var n,s,S;n=[];a=w(a,10)||0;b=e(b)||0;h=e(h)||0;d=e(d)||0;g=null===g||isNaN(g)?0.5*F:m.rad(g);p=null===p||isNaN(p)?0:e(p);s=g;if(2<a)switch(g=2*F/a,p){case 0:for(p=0;p<a;p++)n.push("L",b+d*l(-s),h+d*c(-s)),s+=g;n[0]="M";n.push("Z");break;case 1:for(p=0;p<a;p++)n.push("M",b,h,"L",b+d*l(-s),h+d*c(-s)),s+=g;break;default:g*=0.5;S=d*l(g)*(1-p);for(p=0;p<a;p++)n.push("L",b+d*l(-s),h+d*c(-s)),s+=
g,n.push("L",b+S*l(-s),h+S*c(-s)),s+=g;n[0]="M";n.push("Z")}else 0===d?n.push("M",b,h,"L",b,h,"Z"):n.push("M",b-d,h,"A",d,d,0,0,0,b+d,h,"A",d,d,0,0,0,b-d,h,"Z");return{path:n}},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,m._lastArgIfGroup(arguments))},ca:function(a,b,h,d,e,g){var p=g%C-e%C,n=g-e,m;this._.ringangle=0.5*(e+g);K(n)<s?(n=l(e),e=c(e),h=["M",a+h*n,b+h*e,"L",a+d*n,b+d*e,"Z"]):(K(n)>s&&K(n)%
C<s?(h=["M",a-h,b,"A",h,h,0,0,0,a+h,b,"A",h,h,0,0,0,a-h,b],0!==d&&(h=h.concat(["M",a-d,b,"A",d,d,0,0,1,a+d,b,"A",d,d,0,0,1,a-d,b]))):(n=l(e),e=c(e),m=l(g),g=c(g),p%=C,0>p&&(p+=C),p=p<F?0:1,h=["M",a+h*n,b+h*e,"A",h,h,0,p,1,a+h*m,b+h*g,"L",a+d*m,b+d*g],0!==d&&h.push("A",d,d,0,p,0,a+d*n,b+d*e)),h.push("Z"));return{path:h}}},{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===m.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 m.fn.cubepath.ca)a.ca[g]=m.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 p=this._.cubetop,n=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"]);p.attr("path",["M",a,b,"l",1,1,c-1,0,0,-1,e,-g,-c,0,"z"]);n.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],p=e[4],e=e[5],n;a=m.color(a);b?(this.attr("fill",a),c.attr("fill",m.tintshade(a,-0.78).rgba),d.attr("fill",m.tintshade(a,-0.65).rgba)):(n="opacity"in a?"rgba("+[a.r,a.g,a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")",this.attr("fill",[270,m.tintshade(n,0.55).rgba,m.tintshade(n,-0.65).rgba].join("-")),d.attr("fill",[270,m.tintshade(n,-0.75).rgba,m.tintshade(n,-0.35).rgba].join("-")),c.attr("fill",[45+m.deg(J(e,p+g)),m.tintshade(n,-0.78).rgba,m.tintshade(n,0.22).rgba].join("-")));return!1}}},
{name:"scroller",scroller:function(a,b,c,d,g,p,n){var l=this.group("scroller",n),s=l.attrs,S=l._.scroller={};g=g&&"horizontal"||"vertical";var w,k={},H,D,v;S.track=this.rect(l).mousedown(function(a){var b=s["scroll-position"];a="horizontal"===s["scroll-orientation"]?a.layerX||a.x:a.layerY||a.y;a=(a-S.anchorOffset)/S.trackLength;w=m.animation({"scroll-position":a},2E3*K(b-a),"easeIn");l.animate(w);I("raphael.scroll.start."+l.id,l,b)}).mouseup(S._mouseupTrack=function(){this.stop(w);I("raphael.scroll.end."+
this.id,this,s["scroll-position"])},l,!0);S.anchor=this.rect(l).drag(function(){k["scroll-position"]=H+arguments[D]/S.trackLength;l.animate(k,0)},function(a,b,c){D="horizontal"===s["scroll-orientation"]?0:1;I("raphael.scroll.start."+l.id,l,H=s["scroll-position"]);c.stopPropagation()},function(){I("raphael.scroll.end."+l.id,l,H=s["scroll-position"])});for(v in m.fn.scroller.fn)l[v]=m.fn.scroller.fn[v];for(v in m.fn.scroller.ca)l.ca[v]=m.fn.scroller.ca[v];s["scroll-orientation"]=g;s["stroke-width"]=
1;l.ca["scroll-repaint"]=l.ca["scroll-repaint-"+g];!m.is(p,"object")&&(p={});return l.attr({ishot:!0,"scroll-display-buttons":p.showButtons&&"arrow"||"none","scroll-display-style":p.displayStyleFlat&&"flat"||"3d","scroll-ratio":e(p.scrollRatio)||1,"scroll-position":e(p.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;m.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"],p=e["scroll-repaint"],n,l;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-0.1},100).animate(n=m.animation({"scroll-position":0},4500*a,"easeIn")),I("raphael.scroll.start."+b.id,b,a))}).mouseup(d._mouseupStart=function(){b.stop(n);I("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+0.1},100).animate(l=
m.animation({"scroll-position":1},4500*(1-a),"easeIn")),I("raphael.scroll.start."+b.id,b,a))}).mouseup(d._mouseupEnd=function(){b.stop(l);I("raphael.scroll.end."+b.id,b,e["scroll-position"])},b,!0),e.fill&&b.attr("fill",e.fill)),p&&b.attr("scroll-repaint",p));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:0.01>a?0.01:e(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"],g=c["scroll-repaint"],p=c["scroll-position"],n=this._.scroller,m=n.anchor;
a=1<a?1:0>a?0:e(a);isNaN(a)&&(a=p);g&&(p!==a||b)&&(p=n.start&&n.start.attr(d&&"width"||"height")||0,d&&m.attr("x",g[0]+p+(g[2]-2*p-m.attr("width"))*a+0.5)||m.attr("y",g[1]+p+(g[3]-2*p-m.attr("height"))*a+0.5),!b&&1>c["scroll-ratio"]&&(I("raphael.scroll.change."+this.id,this,a),n.callback&&n.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(b,
c,h,d){var e=this.attrs,g=this._.scroller,p=e["scroll-ratio"],n=e["scroll-position"],m=0,l=h*p,e="none"===e["scroll-display-buttons"];h&&(h-=1);b&&(b+=0.5);d&&(d-=1);c&&(c+=0.5);g.track.attr({width:h,height:d,y:c,x:b}).crisp();e||(m=a(d,0.5*h),l-=2*m*p,g.start.attr({width:m,height:d,x:b,y:c}),g.arrowstart.attr("polypath",[3,b+0.5*m,c+0.5*d,0.25*m,180]),g.end.attr({width:m,height:d,x:b+h-m,y:c}),g.arrowend.attr("polypath",[3,b+h-0.5*m,c+0.5*m,0.25*m,0]));g.trackLength=h-2*m-l;g.trackOffset=b+m+0.5;
g.anchorOffset=g.trackOffset+0.5*(l-1);g.anchor.attr({height:d,width:l-1,y:c,x:g.trackOffset+g.trackLength*n}).crisp()},"scroll-repaint-vertical":function(b,c,h,d){var e=this.attrs,g=this._.scroller,p=e["scroll-ratio"],n=e["scroll-position"],m=0,l=d*p,e="none"===e["scroll-display-buttons"];h&&(h-=1);b&&(b+=0.5);d&&(d-=1);c&&(c+=0.5);g.track.attr({width:h,height:d,y:c,x:b}).crisp();e||(m=a(h,0.5*d),l-=2*m*p,g.start.attr({width:h,height:m,x:b,y:c}),g.arrowstart.attr("polypath",[3,b+0.5*h,c+0.5*m,0.25*
m,90]),g.end.attr({width:h,height:m,x:b,y:c+d-m}),g.arrowend.attr("polypath",[3,b+0.5*h,c+d-0.5*m,0.25*m,-90]));g.trackLength=d-2*m-l;g.trackOffset=c+m+0.5;g.anchorOffset=g.trackOffset+0.5*(l-1);g.anchor.attr({height:l-1,width:h,y:g.trackOffset+g.trackLength*n,x:b}).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"],p={stroke:"none"},n;k&&d&&3<(n=16-d[g&&3||2])&&(p.stroke=R,p["stroke-width"]=
n);a=m.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]+")";p.fill=e&&a||[90*g,m.tintshade(a,0.15).rgba,a].join("-");p.stroke=m.tintshade(a,-0.75).rgba;c.track.attr(p);p.fill=e&&m.tintshade(a,-0.6).rgba||[270*g,m.tintshade(a,0.3).rgba+":40",m.tintshade(a,-0.7).rgba].join("-");p.stroke=m.tintshade(a,-0.6).rgba;c.anchor.attr(p);p.stroke="none";"none"!==b["scroll-display-buttons"]&&(p.fill=R,c.start.attr(p),c.end.attr(p),p.fill=m.tintshade(a,-0.4).rgba,
c.arrowstart.attr(p),c.arrowend.attr(p));return!1}}},{name:"button",button:function(a,b,c,d,e,g){g=this.group("button",g);var p;g._.button={bound:this.rect(g),tracker:this.rect(g).attr({fill:R,stroke:R,cursor:"pointer"}).data("compositeButton",g)};!m.is(e,"object")&&(e={});for(p in m.fn.button.fn)g[p]=m.fn.button.fn[p];for(p in m.fn.button.ca)g.ca[p]=m.fn.button.ca[p];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(){m.el.tooltip&&m.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;m.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=H[a];c=H[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,p=this.attrs["button-repaint"];a=g(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));p&&c["button-label"]!==a&&this.attr("button-repaint",p)},"button-symbol":function(a){var b=this.attrs,c=this._.button,d=c.symbol,e=this.attrs["button-repaint"];a=g(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"}[g(a).toLowerCase()]||"none"}},"button-symbol-padding":function(a){return{"button-symbol-padding":e(a)}},"button-padding":function(a,b){return{"button-padding":[null==a&&(a=5)||e(a),null==b&&a||e(b)]}},"button-repaint":function(b,c,h,d,e){var g=this._.button,p=g.bound,n=g.label,l=g.symbol,s=this.attrs,S=s["button-padding"],w=S[0],k=S[1],H,v;void 0===b&&(b=0);void 0===c&&(c=0);if(void 0===h||void 0===d)H=n&&n.getBBox()||{width:0,height:0},void 0===
h&&(h=2*w+H.width),void 0===d&&(d=2*k+H.height);p=m.crispBound(b,c,h,d,p.attr("stroke-width"));p.r=m.pick(e,D(0.1*a(d,h)));b=p.x;c=p.y;h=p.width;d=p.height;n&&n.attr({x:b+h/2,y:c+d/2});if(l){!m.is(v=s["button-symbol-padding"],"finite")&&(v=0.2*d);e=d-k;H=0.5*e;switch(s["button-symbol-position"]+(n&&"+"||"-")){case "right+":b=b+(h+(2*H+k))-H-w;c+=0.5*d;n.attr("transform",["t",-(e+v),0]);break;case "left+":b=b+w+H;c+=0.5*d;n.attr("transform",["t",e+v,0]);break;case "top+":b+=0.5*h;c=c+S[1]+H;n.attr("transform",
["t",0,e+v]);break;case "bottom+":b+=0.5*h;c=c+(d+(2*H+v))-k-H;n.attr("transform",["t",0,-(e+v)]);break;default:b+=0.5*h,c+=0.5*d}l.attr("symbol",[s["button-symbol"],b,c,H])}g.bound.attr(p);g.tracker.attr(p)},fill:function(a,b,c,d){var e=this._.button,g=e.bound,p=e.symbol,n=e.label,l={normal:e.gradient,active:e.gradientActive,hover:e.gradientHover}[a];l||(a=m.getRGB(a),a.error&&(a=m.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,m.tintshade(a,
-0.8).rgba+":0",m.tintshade(a,0.8).rgba+":100"].join("-"),e.gradientActive=[270,m.tintshade(a,-0.8).rgba+":0",m.tintshade(a,0.8).rgba+":100"].join("-"),d=m.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,m.tintshade(d,-0.9).rgba+":0",m.tintshade(d,0.7).rgba+":100"].join("-"),c=c||m.tintshade(a,0.2).rgba,b=b||m.tintshade(a,-0.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);p&&p.attr("fill",e.symbolFill);n&&n.attr("fill",e.labelFill);return!1},stroke:function(a,b){var c=this._.button,d=c.symbol;a=m.color(a);a.error&&(a=m.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}}}]);m.ca["text-bound"]=function(a,b,c,d,e,g){d=this.paper;var p=this._.textbound;
if("text"===this.type){if(!(b&&"none"!==b||a&&"none"!==a))return this._.textbound=p&&p.unfollow(this).remove(),!1;c&&m.is(c,"finite")||(c=0);e&&m.is(e,"finite")||(e=0);!p&&(p=this._.textbound=d.rect(0,0,0,0,this.group).follow(this,m.ca["text-bound"].reposition,"before"));p.attr({stroke:b,"stroke-width":c,fill:a,"shape-rendering":1===c&&"crisp"||"",r:e});g&&p.attr("stroke-dasharray",g);m.ca["text-bound"].reposition.call(p,this.attr(),this);return!1}};m.ca["text-bound"].reposition=function(a,b){var c=
{},d,p,n,l,s;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"],p=g(d&&d[3]||"0").split(sa),d=e(p[0])||0,p=m.pick(e(p[1]),d),n=
b.getBBox(),l=n.width,s=n.height,isNaN(l)||(c.x=n.x-d,c.y=n.y-p,c.width=l+2*d,c.height=s+2*p),this.attr(c)};m.fn.symbol=function(){var a=arguments,b=a.length-1,c=a[b];c&&c.constructor===m.el.constructor?a[b]=void 0:c=void 0;b=this.path(void 0,c);b.ca.symbol=m.fn.symbol.ca.symbol;return a.length===!!c+0?b:b.attr("symbol",a)};m.fn.symbol.cache={"":m._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"]})};m.fn.symbol.ca=
{symbol:function(a){var b=m.is(a,"object")&&1===arguments.length&&!m.is(a,"function")?a:arguments,c;b===a&&(a=b[0]);b=(c=m.is(a,"function")&&a||m.fn.symbol.cache[a]||m.fn.symbol.cache[""])&&c.apply(m,n.call(b,1));m.is(b,"array")||m.is(b,"string")?this.attr("path",b):b&&this.attr(b)}};m.addSymbol=function(a,b){var c=m.is(b,"function")&&(c={},c[a]=b,c)||a,d=m.fn.symbol.cache,e=[],g;for(g in c)b=c[g],d[g]=m.is(b,"function")&&m._cacher(b,m)||(e.push(g),b);for(;g=e.pop();)d[g]=d[d[g]]};m.svg?(ya="$1",
Y=function(a){a?"string"===typeof a?a=a.replace(fa,ya):a.toString=ca:a="M0,0";this.node.setAttribute("d",a.toString());return this},m._engine.litepath=function(a,b,c,d){a=Q("path");(d||b).canvas.appendChild(a);b=new $(a,b,d);b.type="litepath";b.id=a.raphaelid=m._oid++;a.raphael=!0;X(b,{fill:"none",stroke:"#000"});return b},m._getPath.litepath=function(a){return m.parsePathString(a.node.getAttribute("d"))}):m.vml&&(ya=function(a,b){return S[b]||b},xa=function(){this._transform.apply(this,arguments);
this._.bcoord&&(this.node.coordsize=this._.bcoord);return this},Y=function(a){a?"string"===typeof a?a=a.replace(fa,ya):a.toString=ca:a="M0,0";this.node.path=a;return this},m._engine.litepath=function(a,b,c,d){a=Q("shape");var g=a.style,p=new $(a,b,d);g.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;";c=e(c);isNaN(c)?a.coordsize="21600 21600":(p._.bzoom=c,g.width="1px",g.height="1px",a.coordsize=p._.bcoord=c+" "+c);a.coordorigin=b.coordorigin;p.type="litepath";p.id=a.raphaelid=
m._oid++;a.raphael=!0;p._transform=p.transform;p.transform=xa;m._setFillAndStroke(p,{fill:"none",stroke:"#000"});(d||b).canvas.appendChild(a);b=Q("skew");b.on=!0;a.appendChild(b);p.skew=b;return p},m._getPath.litepath=function(a){return m.parsePathString(a.node.path||"")});m.fn.litepath=function(a,b,c){b&&b.constructor===$&&(c=b,b=void 0);a&&a.constructor===$&&(c=a,a="");b=m._engine.litepath(a,this,b,c);b.ca.litepath=Y;a&&b.attr("litepath",m.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,k=d.Raphael,B=d.dem,v=this.window,l=v.document,c=/msie/i.test(v.navigator.userAgent)&&!v.opera,K="VML"===k.type,b="createTouch"in l,J={cursor:"cursor"},a={x:"left",y:"top",strokeWidth:"borderThickness","stroke-width":"borderThickness",width:"width",height:"height"},D={fill:"backgroundColor",stroke:"borderColor",color:"color"},F={left:0,top:0,padding:0,border:"none",margin:0,outline:"none","-webkit-apperance":"none",
position:"absolute",zIndex:20},C,w=function(b,c,d,e){b=l.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];e&&e.appendChild&&e.appendChild(b);return b},e;e=function(a,b,c){b&&b instanceof e&&(b=b.element);(this.element=w(a,c,F,b)).ishot="true";this.nodeName=a.toLowerCase();this.added=Boolean(b)};e.prototype={attr:function(b){var d=this.element,e={},w,m,k,v,C,B,p;if("object"!==typeof b){if(!(e=this[b])){if("string"===typeof b)d&&d.getAttribute&&
(v=d.getAttribute(b));else if(void 0!==b&&null!==b&&"object"===typeof b)for(k in b)d.setAttribute(k,b[k]);e=v}return e}for(w in b){k=b[w];if(J[w]){switch(w){case "cursor":"pointer"===k&&K&&(k="hand")}d.style[J[w]]=k;m=!0}else if(a[w])d.style[a[w]]=k+"px",m=!0;else if(D[w])d.style[D[w]]=k&&k.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none",m=!0;else if(/^visibility$/i.test(w))m="hidden"===k,d.style.display=m?"none":"",this.hidden=m,m=!0;else if(/^opacity$/i.test(w))d.style.opacity=k,c&&(m=100*Number(k),d.style.filter=
"progid:DXImageTransform.Microsoft.Alpha(Opacity="+m+")"),m=!0;else if(/^innerhtml$/i.test(w)){if(K&&"select"==d.nodeName.toLowerCase()){for(m=k.match(/<option\s?[\s\S]*?(\/>|><\/option>|>[\s\S]*?<\/option>)/ig);d.firstChild;)d.removeChild(d.firstChild);C=0;for(B=m.length;C<B;C+=1)v=m[C],p=l.createElement("option"),/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig.test(v)&&(p.value=v.replace(/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig,"$1").replace(/[\s\S]*value\s*\=\s*[\'\"]([\s\S]*)[\'\"]/,
"$1")),p.text=v.replace(/<option\s*[\s\S]*[\'\"]?\s*?[\/>|\>]([\s\S]*)<\/option>/ig,"$1 "),d.options.add(p)}else"input"!==d.nodeName.toLowerCase()&&void 0!==k&&(d.innerHTML=k||"");m=!0}else/^text$/i.test(w)?("input"!==d.nodeName.toLowerCase()&&(d.innerHTML="",void 0!==k&&d.appendChild(l.createTextNode(k))),m=!0):/^type$/i.test(w)&&c&&this.added&&(m=!0);m&&(e[w]=k,delete b[w],m=!1)}for(w in b)d.setAttribute(w,b[w]);for(w in e)this[w]=b[w]=e[w],delete e[w];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;C||(C=w("div"));a&&C.appendChild(a);C.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){B.listen(this.element,a,b,c);return this},unbind:function(a,b){B.unlisten(this.element,a,b);return this},trigger:function(a,b){B.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)}};e.prototype.constructor=e;k.fn.html=function(a,b,c,d){var m={},l;b&&"type"in b&&(m.type=b.type,delete b.type);a=(new e(a,d,m)).css(c).attr(b);for(l in m)b[l]=m[l];return a}}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaeltooltip",function(){var d=this,k=d.window,B=k.document,v=B.body||B.getElementsByTagName("body")[0],l=d.hcLib,c=l.Raphael,K=c.eve,b=l.createElement,J=l.addEvent,a=l.removeEvent,D=l.getPosition,F=l.hasTouch,C=l.getTouchEvent,w=k.Math,e=w.ceil,g=w.floor,n={},s=k.screen.availHeight,R=k.screen.availWidth,m={"":1,moz:1,webkit:1,o:1,ms:1},I={borderRadius:"borderRadius",boxShadow:"boxShadow"},Q=/\-([a-z])/ig,X=function(a,b){return b.toUpperCase()},
$=function(a){var b=p.forbiddenStyle,d,e,g;for(d in a)e=Q.test(d)?d.replace(Q,X):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 I)if(this[d])for(g in m)this[g+d]=this[d]},p=l.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,prevented:!1,defaultStyle:l.extend2($.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:{}},H=function(b){!0===p._oobready?p._oobready=!1:(a(v,"touchstart",H),!p.hidden&&p.currentTarget&&(b=b.srcElement||b.target||n,b.raphael&&p.currentTarget.paper.getById(b.raphaelid)===p.currentTarget||p.hide()))};c.svg&&(p.defaultContainerStyle.pointerEvents="none",p.defaultStyle.borderRadius="0",
p.defaultStyle.boxShadow="none");c.vml&&(p.forbiddenStyle.borderRadius=!0,p.forbiddenStyle.boxShadow=!0,p.defaultStyle.filter="");p.setup=function(){var a=p.container,e=p.textElement,g=p.style,m=p.defaultContainerStyle,n=p.forbiddenStyle,l;a||(a=p.element=b("span"),(B.body||B.getElementsByTagName("body")[0]).appendChild(a),a.setAttribute("id",p.elementId),g=p.containerStyle=a.style,e=p.textElement=b("span"),a.appendChild(e),p.style=c.vml?e.runtimeStyle:e.style,p.style.overflow="hidden",p.style.display=
"block",p.hidden=!1,p.hide());for(l in m)!n[l]&&(g[l]=m[l]);p.scatted=!0;K.on("raphael.drag.start.*",function(){p.scatted&&(p.waitingScat=!0)});K.on("raphael.drag.move.*",function(){p.waitingScat&&(p.block(),p.waitingScat=!1)});K.on("raphael.drag.end.*",function(){p.waitingScat=!1;p.scatted&&p.unblock(!0)});K.on("raphael.remove",function(){if(p.currentPaper===this||p.currentTarget&&p.currentTarget.paper===this)p.hide(),p.currentTarget=p.currentPaper=null});d.addEventListener("LinkedChartInvoked",
function(a){p.currentPaper===a.sender.jsVars.hcObj.paper&&p.hide()})};p.restyle=function(a){var b=p.style,c;for(c in a)b[c]=a[c]};p.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&&p.preventTooltip(),p.hiding&&(p.hiding=clearTimeout(p.hiding)),p.currentPaper!==b&&(b.__tipCp=b.canvas&&D(b.canvas.parentNode,!0)||{},p.restyle(b.__tipStyle),p.currentPaper=
b),p.lastTarget=p.currentTarget,p.currentTarget=c,p.scatted=c.__tipScatted,p.onredraw.call(this,a),a.__tipProcessed=!0,F&&(p._oobready=!0,J(v||(v=B.body||B.getElementsByTagName("body")[0]),"touchstart",H)))}};p.onredraw=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===p.currentTarget&&(p.redrawing&&clearTimeout(p.redrawing),a=C(a),p.x=g(a.pageX||a.clientX+B.body.scrollLeft+B.documentElement.scrollLeft||0),p.y=g(a.pageY||a.clientY+B.body.scrollTop+
B.documentElement.scrollTop||0),p.redrawing=setTimeout(p.redraw,0)))};p.onhide=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===p.currentTarget&&(p.hiding=setTimeout(p.hide,200)))};p.redraw=function(){if(!p.prevented&&!p.blocked&&p.currentTarget&&p.currentTarget.__tipNeeded){var a=p.currentTarget,b=a.paper,c=p.textElement,d=p.containerStyle,g=p.style,m=a.__tipText,a=p.pointeroffset,n=b.__tipCp,l=B.documentElement||B.body,w=l.scrollLeft,l=l.scrollTop,
h=p.x,k=p.y,H,D=b.width,v=b.height,b=b.__tipConstrain;if(100>D||100>v)b=!1;p.hidden&&(p.containerStyle.top="-999em",p.show());m!==p.text&&(p.text=m,d.width=d.height="",c.innerHTML=m,g.whiteSpace="nowrap",m=e(g.pixelWidth||c.offsetWidth||0),H=e(g.pixelHeight||c.offsetHeight||0),(p.textWidthOverflow=m>D)?(d.width=(D||0)-2*a+"px",g.whiteSpace="normal"):d.width="",(p.textHeightOverflow=H>v)?(d.height=(v||0)-2*a+"px",g.whiteSpace="normal"):d.height="");m=e(g.pixelWidth||c.offsetWidth||0);H=e(g.pixelHeight||
c.offsetHeight||0);b?(p.textWidthOverflow?h=n.left-w:h+a+m>n.left-w+D-a&&(h=h-m-a),p.textHeightOverflow?k=n.top-l:k+a+H>n.top-l+v-a&&(k=k-H-1.5*a)):(w+R<h+a+m&&(h=h-m-a),l+s<k+a+H&&(k=k-H-1.5*a));d.left=(h+a||0)+"px";d.top=(k+a||0)+"px";p.hidden&&p.show()}};p.hide=function(){p.hiding&&(p.hiding=clearTimeout(p.hiding));p.containerStyle.display="none";p.hidden=!0;p.prevented=!1};p.show=function(){p.blocked||(p.hiding&&(p.hiding=clearTimeout(p.hiding)),p.containerStyle.display="inline",p.hidden=!1)};
p.preventTooltip=function(){p.prevented=!0};p.block=function(){p.blocked=!0;p.containerStyle.display="none"};p.unblock=function(a){p.blocked=!1;a&&(p.containerStyle.display=p.hidden&&"none"||"inline")};c.fn.tooltip=function(a,b,d){b&&(b=0.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 $(a);this.__tipCp=this.canvas&&D(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?F?this.touchstart(p.onelement):(this.mouseover(p.onelement),this.mousemove(p.onredraw),this.mouseout(p.onhide)):F?this.untouchstart(p.onelement):(this.unmouseover(p.onelement),this.unmousemove(p.onredraw),this.unmouseout(p.onhide));this.__tiptracking=a;return this};c.el.tooltip=function(a,b,d,e,g){p.setup();c.el.tooltip=function(a,b,c,d,h){b=!1===a||
void 0===a||""===a;this.__tipScatted=void 0===d?this.__tipScatted:!d;void 0===this.__tipScatted&&(this.__tipScatted=!0);null!==h&&(this.__tip_blocked=h);b^!this.__tipText&&(this.__tipNeeded=!b);this.__tipText=a;if(p.currentTarget===this&&a!==p.text&&!p.hidden)p[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);p&&!isNaN(a)&&(p.defaultContainerStyle.zIndex=a,p.containerStyle&&(p.containerStyle.zIndex=a))}}]);
FusionCharts.register("module",["private","modules.renderer.js-smartlabel",function(){var d=this.hcLib,k=d.isIE,B=d.hasSVG,v=Math.max,l=this.window,c=/ HtmlUnit/.test(l.navigator.userAgent),K=l.document,b=/ AppleWebKit\//.test(l.navigator.userAgent),J=!!K.createElement("canvas").getContext,a=!(!J||!K.createElement("canvas").getContext("2d").measureText),l=function(){function l(a,b,c){if(!a||!a.length)return 0;var d=c.getWidthFunction(),e=0,h=0,h=d(a),g=h/a.length;c=b;e=Math.ceil(b/g);if(h<b)return a.length-
1;e>a.length&&(c=b-h,e=a.length);for(;0<c;)if(c=b-d(a.substr(0,e)),h=Math.floor(c/g))e+=h;else return e;for(;0>c;)if(c=b-d(a.substr(0,e)),h=Math.floor(c/g))e+=h;else break;return e}function F(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(p){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 C(a,b,d){if("undefined"!==typeof a&&"object"!==typeof a){this.id=a;var e;"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=$;if(c||!a.offsetHeight&&!a.offsetWidth)p=!0;a.innerHTML="";for(e in g)a.style[e]=g[e];this.containerManager=new F(a,10);this.showNoEllipses=!d;this.init=!0;this.style={};this.setStyle()}}var w=d.supportedStyle,e={fontWeight:1,"font-weight":1,fontStyle:1,"font-style":1,
fontSize:1,"font-size":1,fontFamily:1,"font-family":1},g={position:"absolute",top:"-9999em",left:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},n=b?0:4.5,s=0,R=/\b_SmartLabel\b/,m=/\b_SmartLabelBR\b/,I=/(<[^<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/ig,Q=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),X=/<[^>][^<]*[^>]+>/i,$="WgI",p=!1,H=0,S=0,fa,sa,ya;K.getElementsByClassName?(fa="getElementsByClassName",sa="_SmartLabel",ya=!0):(fa="getElementsByTagName",
sa="span",ya=!1);F.prototype={get:function(a){var b=this.containers,c=this.length,d=this.maxContainers,e,h="",g="",g=this.getCanvasFont(a);for(e in w)void 0!==a[e]&&(h+=w[e]+":"+a[e]+";");if(!h)return!1;if(b[h])h=b[h],this.first!==h&&(h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),h.next=this.first,h.next.prev=h,this.last===h&&(this.last=h.prev),h.prev=null,this.first=h);else{if(c>=d)for(a=c-d+1;a--;)this.removeContainer(this.last);h=this.addContainer(h,g)}return h},getCanvasFont:function(b){var c,
d=[];if(!J||!a)return!1;for(c in e)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);k&&!B?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=$;d.lineHeight=c.offsetHeight;d.avgCharWidth=c.offsetWidth/3;p?(c=d.svgText=K.createElementNS("http://www.w3.org/2000/svg","text"),c.setAttribute("style",a),this.svgRoot.appendChild(c),c.textContent=$,d.lineHeight=c.getBBox().height,d.avgCharWidth=(c.getBBox().width-
n)/3,c.textContent="...",d.ellipsesWidth=c.getBBox().width-n,c.textContent=".",d.dotWidth=c.getBBox().width-n):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}};F.prototype.constructor=F;C.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-n;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},h=!1,g,n,w=0,k,C,B,J=-1,F=h=-1;n=this.container;var $=this.context,ea=0;B=0;var da,aa,ba;ba=[];var ga=0,la=this.showNoEllipses?"":"...";C=this.lineHeight;var za,ea=[],J=g=-1;za=
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)};h=-1;aa=this.getWidthFunction();if(n){if(!p){n.innerHTML=a;e.oriTextWidth=h=n.offsetWidth;e.oriTextHeight=B=n.offsetHeight;if(B<=c&&h<=b)return e.width=e.oriTextWidth=h,e.height=e.oriTextHeight=B,e;if(C>c)return e.text="",e.width=e.oriTextWidth=0,e.height=e.oriTextHeight=0,e}a=za(a).replace(/(\s+)/g," ");h=X.test(a);C=this.showNoEllipses?b:b-s;if(h){w=a.replace(I,"$2");a=a.replace(I,'$1<span class="_SmartLabel">$2</span>');
a=a.replace(/(<br\s*\/*\>)/g,'<span class="_SmartLabel _SmartLabelBR">$1</span>');n.innerHTML=a;ga=n[fa](sa);$=0;for(aa=ga.length;$<aa;$+=1)if(a=ga[$],ya||R.test(a.className))za=a.innerHTML,""!==za&&(" "===za?J=ea.length:"-"===za&&(g=ea.length),ea.push({spaceIdx:J,dashIdx:g,elem:a}),ba.push(za));ga=0;g=ea.length;H=ea[0].elem.offsetWidth;if(H>b)return e.text="",e.width=e.oriTextWidth=e.height=e.oriTextHeight=0,e;H>C&&!this.showNoEllipses&&(C=b-2*S,C>H?la="..":(C=b-S,C>H?la=".":(C=0,la="")));ba=ea[0].elem.offsetLeft;
$=ea[0].elem.offsetTop;if(d)for(;ga<g;ga+=1)a=ea[ga].elem,aa=a.offsetLeft-ba+a.offsetWidth,aa>C&&(da||(da=ga),n.offsetWidth>b&&(k=ga,ga=g));else for(;ga<g;ga+=1)a=ea[ga].elem,za=a.offsetHeight+(a.offsetTop-$),aa=a.offsetLeft-ba+a.offsetWidth,d=null,aa>C?(da||(da=ga),aa>b&&(h=ea[ga].spaceIdx,J=ea[ga].dashIdx,h>F?(ea[h].elem.innerHTML="<br/>",F=h):J>F?(ea[J].elem.innerHTML=J===ga?"<br/>-":"-<br/>",F=J):a.parentNode.insertBefore(d=K.createElement("br"),a),a.offsetHeight+a.offsetTop>c?(d?d.parentNode.removeChild(d):
F===J?ea[J].elem.innerHTML="-":ea[h].elem.innerHTML=" ",k=ga,ga=g):da=null)):za>c&&(k=ga,ga=g);if(k<g){e.isTruncated=!0;da=da?da:k;for(ga=g-1;ga>=da;ga-=1)a=ea[ga].elem,a.parentNode.removeChild(a);for(;0<=ga;ga-=1)a=ea[ga].elem,m.test(a.className)?a.parentNode.removeChild(a):ga=0}e.text=n.innerHTML.replace(Q,"$1");e.isTruncated&&(e.text+=la,e.tooltext=w)}else{ba=a.split("");g=ba.length;n="";k=[];da=ba[0];this.cache[da]?H=this.cache[da].width:(H=aa(da),this.cache[da]={width:H});if(C>H)k=a.substr(0,
l(a,C,this)).split(""),ga=k.length;else{if(H>b)return e.text="",e.width=e.oriTextWidth=e.height=e.oriTextHeight=0,e;la&&(C=b-2*S,C>H?la="..":(C=b-S,C>H?la=".":(C=0,la="")))}ea=aa(k.join(""));B=this.lineHeight;if(d){for(;ga<g;ga+=1)if(da=k[ga]=ba[ga],this.cache[da]?H=this.cache[da].width:(H=aa(da),this.cache[da]={width:H}),ea+=H,ea>C&&(n||(n=k.slice(0,-1).join("")),ea>b))return e.text=za(n)+la,e.tooltext=e.oriText,e.width=aa(e.text),e.height=this.lineHeight,e;e.text=k.join("");e.width=ea;e.height=
this.lineHeight}else{for(;ga<g;ga+=1)if(da=k[ga]=ba[ga]," "!==da||$||(da="&nbsp;"),this.cache[da]?H=this.cache[da].width:(H=aa(da),this.cache[da]={width:H}),ea+=H,ea>C&&(n||(n=k.slice(0,-1).join("")),ea>b)){h=a.substr(0,k.length).lastIndexOf(" ");J=a.substr(0,k.length).lastIndexOf("-");h>F?(ea=aa(k.slice(F+1,h).join("")),k.splice(h,1,"<br/>"),F=h,d=h+1):J>F?(J===k.length-1?(ea=aa(k.slice(F+1,h).join("")),k.splice(J,1,"<br/>-")):(ea=aa(k.slice(F+1,h).join("")),k.splice(J,1,"-<br/>")),F=J,d=J+1):(k.splice(k.length-
1,1,"<br/>"+ba[ga]),h=k.length,ea=aa(k.slice(F,k.length-1)),F=h,d=ga);B+=this.lineHeight;if(B>c)return e.text=za(n)+la,e.tooltext=e.oriText,e.width=b,e.height=B-this.lineHeight,e;w=v(w,ea);n=null;da=l(a.substr(d),C,this);ea=aa(a.substr(d,da||1));k.length<d+da&&(k=k.concat(a.substr(k.length,d+da-k.length).split("")),ga=k.length-1)}w=v(w,ea);e.text=k.join("");e.width=w;e.height=B}return e}e.height=n.offsetHeight;e.width=n.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,s=a.ellipsesWidth,S=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(p){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 C.prototype.constructor=C}();d.SmartLabelManager=l}]);
FusionCharts.register("module",["private","modules.renderer.js-numberformatter",function(){var d=this,k=d.hcLib,B=k.pluckNumber,v=k.extend2,l=k.getValidValue,c=k.pluck,K=k.getFirstValue,b=Math.abs,J=Math.pow,a=Math.round,D="",F="0",C=".",w="-",e=function(a){return a&&a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},g={},n=function(a){var b=[],c;for(c in a)b.push(c+"_"+a[c]);b.sort();return b.join(",")},s=function(a){var b={},c;for(c in a)b[c.toLowerCase()]=a[c];return b};k.NumberFormatter=function(){function d(b,
c,e){var g;if(0>=c)return a(b)+D;if(isNaN(c))return b+=D,12<b.length&&-1!=b.indexOf(C)&&(c=12-b.split(C)[0].length,g=J(10,c),b=a(b*g)/g+D),b;g=J(10,c);b=a(b*g)/g+D;if(1==e)for(-1==b.indexOf(C)&&(b+=".0"),e=b.split(C),c-=e[1].length,e=1;e<=c;e++)b+=F;return b}function g(a,b,c,d){var e=Number(a),n=D,m=!1,l=D,s=D,k=l=0;if(isNaN(e))return D;l=0;k=a.length;-1!=a.indexOf(C)&&(n=a.substring(a.indexOf(C)+1,a.length),k=a.indexOf(C));0>e&&(m=!0,l=1);l=a.substring(l,k);a=l.length;e=d.length-1;k=d[e];if(a<k)s=
l;else for(;a>=k;)s=(a-k?c:D)+l.substr(a-k,k)+s,a-=k,k=0>=(e-=1)?d[0]:d[e],a<k&&(s=l.substring(a,0)+s);n!=D&&(s=s+b+n);!0===m&&(s=w+s);return s}var n,s={formatnumber:"1",formatnumberscale:"1",defaultnumberscale:D,numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:D,numbersuffix:D,decimals:D,forcedecimals:F,yaxisvaluedecimals:"2",decimalseparator:C,thousandseparator:",",thousandseparatorposition:[3],indecimalseparator:D,inthousandseparator:D,sformatnumber:"1",sformatnumberscale:F,sdefaultnumberscale:D,
snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:D,snumbersuffix:D,sdecimals:"2",sforcedecimals:F,syaxisvaluedecimals:"2",xFormatNumber:F,xFormatNumberScale:F,xDefaultNumberScale:D,xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:D,xNumberSuffix:D},k={mscombidy2d:{formatnumberscale:"1"}},$=function(a,b,d){var g,n,m,w,D,C,t,J,h,N=b.name,W=v({},s),R,I,Z,F,$,oa,ua,ea,da,aa,ba;(m=k[N])&&(W=v(W,m));this.csConf=W;this.chartAPI=b;l(a.numberscaleunit)&&(g=a.numberscaleunit.split(","));
if(n=l(a.snumberscaleunit,a.numberscaleunit))n=n.split(",");if(m=l(a.xnumberscaleunit,a.numberscaleunit))m=m.split(",");if(w=l(a.ticknumberscaleunit,a.numberscaleunit))w=w.split(",");if(D=l(a.ynumberscaleunit,a.numberscaleunit))D=D.split(",");l(a.numberscalevalue)&&(C=a.numberscalevalue.split(","));if(I=l(a.snumberscalevalue,a.numberscalevalue))I=I.split(",");if(t=l(a.xnumberscalevalue,a.numberscalevalue))t=t.split(",");if(J=l(a.ticknumberscalevalue,a.numberscalevalue))J=J.split(",");if(h=l(a.ynumberscalevalue,
a.numberscalevalue))h=h.split(",");if(l(a.thousandseparatorposition))for(R=a.thousandseparatorposition.split(","),Z=R.length,$=s.thousandseparatorposition[0];Z--;)F=parseInt(R[Z],10),0>=F&&(F=$),$=R[Z]=F;b||(b={});Z=B(a.scalerecursively,0);F=B(a.sscalerecursively,Z);$=B(a.xscalerecursively,Z);oa=B(a.maxscalerecursion,-1);ua=B(a.smaxscalerecursion,oa);ea=B(a.xmaxscalerecursion,oa);da=l(a.scaleseparator," ");aa=l(a.sscaleseparator,da);ba=l(a.xscaleseparator,da);oa||(oa=-1);this.baseConf=g={cacheStore:[],
formatnumber:c(a.formatnumber,b.formatnumber,W.formatnumber),formatnumberscale:c(a.formatnumberscale,b.formatnumberscale,W.formatnumberscale),defaultnumberscale:K(a.defaultnumberscale,b.defaultnumberscale,W.defaultnumberscale),numberscaleunit:c(g,b.numberscaleunit,W.numberscaleunit).concat(),numberscalevalue:c(C,b.numberscalevalue,W.numberscalevalue).concat(),numberprefix:K(a.numberprefix,b.numberprefix,W.numberprefix),numbersuffix:K(a.numbersuffix,b.numbersuffix,W.numbersuffix),decimalprecision:parseInt("auto"===
a.decimals?W.decimalprecision:c(a.decimals,a.decimalprecision,b.decimals,W.decimals,b.decimalprecision,W.decimalprecision),10),forcedecimals:c(a.forcedecimals,b.forcedecimals,W.forcedecimals),decimalseparator:c(a.decimalseparator,b.decimalseparator,W.decimalseparator),thousandseparator:c(a.thousandseparator,b.thousandseparator,W.thousandseparator),thousandseparatorposition:c(R,b.thousandseparatorposition,W.thousandseparatorposition),indecimalseparator:K(a.indecimalseparator,b.indecimalseparator,W.indecimalseparator),
inthousandseparator:K(a.inthousandseparator,b.inthousandseparator,W.inthousandseparator),scalerecursively:Z,maxscalerecursion:oa,scaleseparator:da};l(g.inthousandseparator)&&(this.baseConf._REGinthousandseparator=RegExp(e(g.inthousandseparator),"g"));l(g.indecimalseparator)&&(this.baseConf._REGindecimalseparator=RegExp(e(g.indecimalseparator)));this.Y=[];d||(d={cacheStore:[],formatnumber:g.formatnumber,formatnumberscale:g.formatnumberscale,defaultnumberscale:g.defaultnumberscale,numberscaleunit:g.numberscaleunit.concat(),
numberscalevalue:g.numberscalevalue.concat(),numberprefix:g.numberprefix,numbersuffix:g.numbersuffix,decimalprecision:g.decimalprecision,forcedecimals:g.forcedecimals,decimalseparator:g.decimalseparator,thousandseparator:g.thousandseparator,thousandseparatorposition:g.thousandseparatorposition,indecimalseparator:g.indecimalseparator,inthousandseparator:g.inthousandseparator,scalerecursively:Z,maxscalerecursion:oa,scaleseparator:da},b.useScaleRecursively&&(d.numberscalevalue&&d.numberscalevalue.length)==
(d.numberscaleunit&&d.numberscaleunit.length)||(d.scalerecursively=Z=0),C={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:Z,maxscalerecursion:oa,scaleseparator:da},I={cacheStore:[],formatnumber:c(a.sformatnumber,b.sformatnumber,s.sformatnumber),formatnumberscale:c(a.sformatnumberscale,b.sformatnumberscale,s.sformatnumberscale),defaultnumberscale:K(a.sdefaultnumberscale,b.sdefaultnumberscale,d.defaultnumberscale),numberscaleunit:c(n,
b.snumberscaleunit,s.snumberscaleunit).concat(),numberscalevalue:c(I,b.snumberscalevalue,s.snumberscalevalue).concat(),numberprefix:K(a.snumberprefix,b.snumberprefix,s.snumberprefix),numbersuffix:K(a.snumbersuffix,b.snumbersuffix,s.snumbersuffix),decimalprecision:parseInt(c(a.syaxisvaluedecimals,a.sdecimals,a.decimals,b.sdecimals,s.sdecimals),10),forcedecimals:c(a.forcesyaxisvaluedecimals,a.sforcedecimals,a.forcedecimals,b.sforcedecimals,s.sforcedecimals),decimalseparator:c(a.decimalseparator,b.decimalseparator,
s.decimalseparator),thousandseparator:c(a.thousandseparator,b.thousandseparator,s.thousandseparator),thousandseparatorposition:d.thousandseparatorposition.concat(),indecimalseparator:c(a.indecimalseparator,b.indecimalseparator,s.indecimalseparator),inthousandseparator:c(a.inthousandseparator,b.inthousandseparator,s.inthousandseparator),scalerecursively:F,maxscalerecursion:ua,scaleseparator:aa},n=v({},I),n.decimalprecision=parseInt(c(a.sdecimals,a.decimals,a.syaxisvaluedecimals,b.sdecimals,s.sdecimals),
10),n.forcedecimals=c(a.sforcedecimals,a.forcedecimals,a.forcesyaxisvaluedecimals,b.sforcedecimals,s.sforcedecimals),n.cacheStore=[],b.useScaleRecursively&&(I.numberscalevalue&&I.numberscalevalue.length)==(I.numberscaleunit&&I.numberscaleunit.length)||(I.scalerecursively=F=0),/^(bubble|scatter|selectscatter)$/.test(N)&&(C.formatnumber=c(a.yformatnumber,C.formatnumber),C.formatnumberscale=c(a.yformatnumberscale,C.formatnumberscale),C.defaultnumberscale=K(a.ydefaultnumberscale,C.defaultnumberscale),
C.numberscaleunit=c(D,C.numberscaleunit),C.numberscalevalue=c(h,C.numberscalevalue),C.numberprefix=c(a.ynumberprefix,C.numberprefix),C.numbersuffix=c(a.ynumbersuffix,C.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(N)&&(I.formatnumberscale=B(a.sformatnumberscale,"1")),/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(N)&&(d.decimalprecision=c(a.decimals,"2")),Z&&(d.numberscalevalue.push(1),d.numberscaleunit.unshift(d.defaultnumberscale),C.numberscalevalue.push(1),C.numberscaleunit.unshift(C.defaultnumberscale)),F&&(I.numberscalevalue.push(1),I.numberscaleunit.unshift(I.defaultnumberscale),
n.numberscalevalue.push(1),n.numberscaleunit.unshift(n.defaultnumberscale)),this.Y[0]={yAxisLabelConf:C,dataLabelConf:d},this.Y[1]={yAxisLabelConf:I,dataLabelConf:n},this.paramLabels=d,this.param1=C,this.param2=I,this.paramLabels2=n);this.paramX={cacheStore:[],formatnumber:c(a.xformatnumber,g.formatnumber),formatnumberscale:c(a.xformatnumberscale,g.formatnumberscale),defaultnumberscale:K(a.xdefaultnumberscale,g.defaultnumberscale),numberscaleunit:c(m,g.numberscaleunit.concat()),numberscalevalue:c(t,
g.numberscalevalue.concat()),numberprefix:c(a.xnumberprefix,g.numberprefix),numbersuffix:c(a.xnumbersuffix,g.numbersuffix),decimalprecision:parseInt(c(a.xaxisvaluedecimals,a.xaxisvaluesdecimals,g.decimalprecision,2),10),forcedecimals:c(a.forcexaxisvaluedecimals,0),decimalseparator:g.decimalseparator,thousandseparator:g.thousandseparator,thousandseparatorposition:g.thousandseparatorposition.concat(),indecimalseparator:g.indecimalseparator,inthousandseparator:g.inthousandseparator,scalerecursively:$,
maxscalerecursion:ea,scaleseparator:ba};this.paramLegend=v(v({},g),{cacheStore:[],decimalprecision:parseInt(B(a.legendvaluedecimals,g.decimalprecision,2),10),forcedecimals:B(a.legendvalueforcedecimals,g.forcedecimals,0),formatnumberscale:c(a.legendvalueformatnumberscale,g.formatnumberscale),formatnumber:c(a.legendvalueformatnumber,g.formatnumber)});b.useScaleRecursively&&(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)==(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length)||
(this.paramX.scalerecursively=$=0);$&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:c(a.tickformatnumber,g.formatnumber),formatnumberscale:c(a.tickformatnumberscale,g.formatnumberscale),defaultnumberscale:K(a.tickdefaultnumberscale,g.defaultnumberscale),numberscaleunit:c(w,g.numberscaleunit.concat()),numberscalevalue:c(J,g.numberscalevalue.concat()),numberprefix:c(a.ticknumberprefix,g.numberprefix),
numbersuffix:c(a.ticknumbersuffix,g.numbersuffix),decimalprecision:parseInt(c(a.tickvaluedecimals,g.decimalprecision,"2"),10),forcedecimals:c(a.forcetickvaluedecimals,g.forcedecimals,0),decimalseparator:g.decimalseparator,thousandseparator:g.thousandseparator,thousandseparatorposition:g.thousandseparatorposition.concat(),indecimalseparator:g.indecimalseparator,inthousandseparator:g.inthousandseparator,scalerecursively:Z,maxscalerecursion:oa,scaleseparator:da};Z&&(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={}};$.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,n=this.chartAPI,m=B(a.scalerecursively,e.scalerecursively),k=B(a.maxscalerecursion,e.maxscalerecursion),w=l(a.scaleseparator,e.scaleseparator),D,t,v,h,N,W;d=B(d,this.Y.length);l(a.numberscaleunit)&&(D=a.numberscaleunit.split(","));l(a.numberscalevalue)&&(t=a.numberscalevalue.split(","));k||(k=
-1);if(l(a.thousandseparatorposition))for(v=a.thousandseparatorposition.split(","),h=v.length,W=s.thousandseparatorposition[0];h--;)(N=B(b(v[h])))?W=N:N=W,v[h]=N;e={cacheStore:[],formatnumber:c(a.formatnumber,e.formatnumber),formatnumberscale:c(a.formatnumberscale,e.formatnumberscale),defaultnumberscale:K(a.defaultnumberscale,e.defaultnumberscale),numberscaleunit:c(D,e.numberscaleunit).concat(),numberscalevalue:c(t,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(v,e.thousandseparatorposition),indecimalseparator:K(a.indecimalseparator,e.indecimalseparator),inthousandseparator:K(a.inthousandseparator,e.inthousandseparator),scalerecursively:m,maxscalerecursion:k,
scaleseparator:w};n.useScaleRecursively&&(e.numberscalevalue&&e.numberscalevalue.length)==(e.numberscaleunit&&e.numberscaleunit.length)||(e.scalerecursively=m=0);n={cacheStore:[],formatnumber:e.formatnumber,formatnumberscale:e.formatnumberscale,defaultnumberscale:e.defaultnumberscale,numberscaleunit:e.numberscaleunit.concat(),numberscalevalue:e.numberscalevalue.concat(),numberprefix:e.numberprefix,numbersuffix:e.numbersuffix,decimalprecision: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:k,scaleseparator:w};m&&(e.numberscalevalue.push(1),e.numberscaleunit.unshift(e.defaultnumberscale),n.numberscalevalue.push(1),n.numberscaleunit.unshift(n.defaultnumberscale));this.Y[d]={dataLabelConf:e,
yAxisLabelConf:n}},percentValue:function(a){var b=this.percentStrCacheStore[a];void 0===b&&(b=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,b=this.percentStrCacheStore[a]=g(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+D;e._REGinthousandseparator&&
(d=d.replace(e._REGinthousandseparator,D));e._REGindecimalseparator&&(d=d.replace(e._REGindecimalseparator,C));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]=n(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]=n(a,c));return d},xAxis:function(a){var b=this.paramX.cacheStore[a];void 0===b&&(b=this.paramX.cacheStore[a]=n(a,this.paramX));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]=n(a,b));return c},scale:function(a){var b=this.paramScale.cacheStore[a];void 0===b&&(b=this.paramScale.cacheStore[a]=n(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]=n(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]=g(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=B(a[0],0),d=B(a[1],0),a=B(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),n=d.getFullYear(),m=d.getMonth(),l=d.getDate(),s=d.getDay(),k=d.getMinutes(),w=d.getSeconds(),d=d.getHours(),k=9<k?D+k:F+k,w=9<w?D+w:F+w,d=9<d?D+d:F+d;g.match(/dnl/)&&(g=g.replace(/dnl/ig,e.days[s]));g.match(/dns/)&&(g=g.replace(/dns/ig,e.days[s]&&e.days[s].substr(0,3)));g.match(/dd/)&&(g=g.replace(/dd/ig,l));g.match(/mnl/)&&(g=g.replace(/mnl/ig,e.months[m]));g.match(/mns/)&&(g=g.replace(/mns/ig,e.months[m]&&e.months[m].substr(0,3)));g.match(/mm/)&&(g=g.replace(/mm/ig,m+1));
g.match(/yyyy/)&&(g=g.replace(/yyyy/ig,n));g.match(/yy/)&&(g=g.replace(/yy/ig,(n%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,k));g.match(/ss/)&&(g=g.replace(/ss/ig,w));g.match(/ampm/)&&(g=g.replace(/ampm/ig,12>d?"AM":"PM"));g.match(/ds/)&&(g=g.replace(/ds/ig,e.daySuffix[l]));return g}};$.prototype.constructor=$;n=function(a,b){if(null!==a){a=Number(a);var e=a+D,n,l,s,k,w,v,t;n=1==
b.formatnumberscale?b.defaultnumberscale:D;t=(t=e.split(C)[1])?t.length:b.forcedecimals?"2":D;if(1==b.formatnumberscale){e=a;n=b.numberscalevalue;l=b.numberscaleunit;s={};var J=b.defaultnumberscale;k=0;v=[];var h=[];if(b.scalerecursively){for(k=0;k<n.length;k++)if(w=B(n[k])||1E3,Math.abs(Number(e))>=w&&k<n.length-1)J=e%w,e=(e-J)/w,0!==J&&(v.push(J),h.push(l[k]));else{v.push(e);h.push(l[k]);break}v.reverse();h.reverse();s.value=v;s.scale=h}else{if(n.length===l.length)for(k=0;k<n.length;k++)if((w=B(n[k])||
1E3)&&Math.abs(Number(e))>=w)J=l[k]||D,e=Number(e)/w;else break;s.value=e;s.scale=J}l=s;a=e=l.value;n=l.scale}if(b.scalerecursively&&0!==b.formatnumberscale&&"0"!==b.formatnumberscale){n=l.value;l=l.scale;s=-1==b.maxscalerecursion?n.length:Math.min(n.length,b.maxscalerecursion);if(1==b.formatnumber)for(e="",v=0;v<s;v++)k=0===v?n[v]:Math.abs(n[v]),w=k+D,v==s-1&&(w=d(k,c(b.decimalprecision,t),b.forcedecimals)),e=e+g(w,b.decimalseparator,b.thousandseparator,b.thousandseparatorposition)+l[v]+(v<s-1?b.scaleseparator:
"");else for(e="",v=0;v<s;v++)e=e+(0===v?n[v]:Math.abs(n[v])+D)+l[v]+(v<s-1?b.scaleseparator:"");e=(b.numberprefix||D)+e+(b.numbersuffix||D)}else 1==b.formatnumber&&(e=d(a,c(b.decimalprecision,t),b.forcedecimals),e=g(e,b.decimalseparator,b.thousandseparator,b.thousandseparatorposition)),e=(b.numberprefix||D)+e+n+(b.numbersuffix||D);return e}};return $}();d.extend(d.core,{formatNumber:function(a,b){b=b&&s(b)||{};var c=n(b),d;g[c]?d=g[c]:g[c]=d=new k.NumberFormatter(b,{useScaleRecursively:!0});return d.dataLabels(a)}},
!1);d.extend(d.core,{formatNumber:function(a,b,c,e){c=c&&s(c)||{};var l=this.jsVars.instanceAPI||{},w=l.numberFormatter,p;n(c)===D?w?p=w:(w=this.getChartData(d.dataFormats.JSON,!0),w=w.data||{},w=w.chart||{},c=n(w),g[c]?p=g[c]:g[c]=p=new k.NumberFormatter(w,l)):(w=this.getChartData(d.dataFormats.JSON,!0),w=w.data||{},w=w.chart||{},w=v(v({},w),c),c=n(w),g[c]?p=g[c]:g[c]=p=new k.NumberFormatter(w,l));switch((b&&b.toLowerCase?b:D).toLowerCase()){case "yaxisvalues":a=p.yAxis(a,e);break;case "xaxisvalues":a=
p.xAxis(a);break;case "scale":a=p.scale(a);break;default:a=p.dataLabels(a,e)}return a}},!0)}]);
FusionCharts.register("module",["private","modules.renderer.js-dom",function(){var d=this.hcLib,k=this.window,B=k.document,v=d.extend2,l="ontouchstart"in k;(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||k.event;return a.keyCode&&27===a.keyCode?!0:!1}}};l&&(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=B.addEventListener?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},l=B.removeEventListener?function(a,b,c){a.removeEventListener(b,c)}:function(a,b,c){a.detachEvent("on"+b,c)},C=function(a,
c,d){var e=[],m,l,D;D=b[c];d.start=function(b){b=b||k.event;for(var c=D.onStart,e=D.end,n=[],m=[],l=c&&c.length||0;l--;)n.push(w(a,c[l],d,"onStart"));for(l=e&&e.length||0;l--;)m.push(w(a,e[l],d,"end"));d.startUn=d.startUn?d.startUn.concat(n):n;d.endUn=d.endUn?d.endUn.concat(m):m;d.state="start";d.closure(b)};d.onStart=function(a){a=a||k.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||k.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(D)for(c=D.start,l=c.length;l--;)(m=c[l])&&e.push(w(a,m,d,"start"));return e},w=function(a,b,c,e){e=e||"closure";d(a,b,c[e]);return function(){l(a,b,c[e])}},e=function(a){return function(b){b=b||k.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,n,l,k,m){var D=this;n="string"===typeof n?n.split(" "):n;var v=n.length,F=[],K=function(a,b,c){F.push(function(){D.unlisten(a,b,c)})},p,H,S,fa,sa;if(d.ownerDocument&&d.ownerDocument===B)for(;v--;)H=n[v],fa=Boolean(b[H]),sa="function"===typeof l?l:l[v],S={handler:sa,elem:d,type:H,isGesture:fa,gDef:fa?b[H]:null,data:k,context:m,start:[],end:[],links:{prev:null,
next:null}},S.closure=e(S),fa?((p=a[H])||(p=a[H]=[]),p.push(S),C(d,H,S)):((p=c[H])||(p=c[H]=[]),p.push(S),w(d,H,S)),K(d,H,sa);else for(;v--;)H=n[v],sa="function"===typeof l?l:l[v],S={handler:sa,elem:d,type:H,isGesture:fa,data:k,context:m,start:[],end:[],links:{prev:null,next:null}},S.closure=e(S),(p=c[H])||(p=c[H]=[]),p.push(S);return{unlisten:function(){for(var a=F.length;a--;)F[a]()}}},unlisten:function(d,e,k){var w,m=!1,D,v;if(Boolean(b[e]))for(D=(w=a[e])&&w.length||0;D--;){if(v=w[D],v.handler===
k&&v.elem===d){var m=d,C=void 0,B=void 0,p=void 0,C=void 0;if(C=b[e])for(C=C.start,p=C.length;p--;)(B=C[p])&&l(m,B,v.start);w.splice(D,1);m=!0}}else for(D=(w=c[e])&&w.length||0;D--;)v=w[D],v.handler===k&&v.elem===d&&(l(d,e,v.closure),w.splice(D,1),m=!0);return m},fire:function(a,b,d,e){var m;if(a.ownerDocument&&a.ownerDocument===B)B.createEvent?(m=B.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=B.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)),e&&!m.returnValue&&e(m);else for(e=(b=c[b])&&b.length||0;e--;)m=b[e],m.elem===a&&m.closure(d)}}}})(d||k);(function(c){function d(a,b){var c="";B.defaultView&&B.defaultView.getComputedStyle?c=B.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,n,l,k,m){var v=c/F,B=a[l||"linear"](g-d,v),J=0,K=function(){var a;J<v?(a=B[J],b.style[n]=d+a+m,D&&"opacity"===n&&(a=100*Number(a),b.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+a+")"),J+=1,setTimeout(K,F)):k&&k()};m=m||"";setTimeout(K,F)}var l={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,n=0;n<b;n+=1)c[n]=d*(n+1);return c}},D=/msie/i.test(k.navigator.userAgent)&&
!k.opera,F=40;c.danimate=v({animate:function(a,c,e,g,n){g={};var k={},D=function(){v+=1;v===m&&"function"===typeof n&&n()},m=0,v=0,B,X;if(e<F){for(X in c)a.style[X]=c[X];n&&n()}else for(X in c)l[X]&&(m+=1,g[X]=c[X],k[X]=d(a,X),B="object"===typeof l[X]&&l[X].suffix,b(a,e,k[X],g[X],X,"linear",D,B))}},{})})(d||k)}]);
FusionCharts.register("module",["private","modules.renderer.js-colormanager",function(){var d=this.hcLib,k=d.pluckNumber,B=d.graphics.getDarkColor,v=d.graphics.getLightColor,l="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:[l,
l,l,l,l],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"]},l=d.colorManager=function(b,c){var a=b.chart,l=d.extend2({},K),F=c.defaultPaletteOptions||{},C;l||(l={});for(C in F)l[C]=F[C];l=this.paletteOptions=l;F=this.themeEnabled=a.palettethemecolor;this.paletteIndex=(0<a.palette&&6>a.palette?a.palette:k(c.paletteIndex,1))-1;this.iterator=0;this.paletteColors=l.paletteColors[this.themeEnabled?0:
this.paletteIndex];C=a.palettecolors;void 0!==C&&null!==C&&""!==a.palettecolors&&(this.paletteColors=a.palettecolors.split(/\s*\,\s*/));this.paletteLen=this.paletteColors.length;this.useFlatColors=k(a.useflatdataplotcolor,c.useFlatColor,0);F&&(this.paletteIndex=5,l.bgColor.push(v(F,35)+","+v(F,10)),l.bgAngle.push(270),l.bgRatio.push("0,100"),l.bgAlpha.push("50,50"),l.canvasBgColor.push("FFFFFF"),l.canvasBgAngle.push(0),l.canvasBgAlpha.push("100"),l.canvasBgRatio.push(""),l.canvasBorderColor.push(B(F,
80)),l.canvasBorderAlpha.push(100),l.showShadow.push(1),l.divLineColor.push(B(F,20)),l.divLineAlpha.push(40),l.altHGridColor.push(v(F,20)),l.altHGridAlpha.push(15),l.altVGridColor.push(v(F,80)),l.altVGridAlpha.push(10),l.anchorBgColor.push("FFFFFF"),l.toolTipBgColor.push("FFFFFF"),l.toolTipBorderColor.push(B(F,80)),l.baseFontColor.push(F.split&&F.split(",")[0]),l.borderColor.push(B(F,60)),l.borderAlpha.push(50),l.legendBgColor.push("FFFFFF"),l.legendBorderColor.push(B(F,80)),l.plotGradientColor.push("FFFFFF"),
l.plotBorderColor.push(B(F,85)),l.plotFillColor.push(B(F,85)),l.bgColor3D.push("FFFFFF"),l.bgAlpha3D.push("100"),l.bgAngle3D.push(90),l.bgRatio3D.push(""),l.canvasBgColor3D.push(v(F,20)),l.canvasBaseColor3D.push(v(F,40)),l.divLineColor3D.push(B(F,20)),l.divLineAlpha3D.push(40),l.legendBgColor3D.push("FFFFFF"),l.legendBorderColor3D.push(B(F,80)),l.toolTipbgColor3D.push("FFFFFF"),l.toolTipBorderColor3D.push(B(F,80)),l.baseFontColor3D.push(F.split&&F.split(",")[0]),l.anchorBgColor3D.push("FFFFFF"),l.tickColor&&
l.tickColor.push(B(F,90)),l.trendDarkColor&&l.trendDarkColor.push(B(F,90)),l.trendLightColor&&l.trendLightColor.push(v(F,l.TrendLightShadeOffset)),l.msgLogColor&&l.msgLogColor.push(v(F,80)),l.dialColor&&l.dialColor.push(B(F,95)+",FFFFFF,"+B(F,95)),l.dialBorderColor&&l.dialBorderColor.push(B(F,95)+",FFFFFF,"+B(F,95)),l.pivotColor&&l.pivotColor.push(v(F,95)+",FFFFFF,"+v(F,95)),l.pivotBorderColor&&l.pivotBorderColor.push(B(F,95)+",FFFFFF,"+B(F,95)),l.pointerBorderColor&&l.pointerBorderColor.push(B(F,
75)),l.pointerBgColor&&l.pointerBgColor.push(B(F,75)),l.thmBorderColor&&l.thmBorderColor.push(B(F,90)),l.thmFillColor&&l.thmFillColor.push(v(F,55)),l.cylFillColor&&l.cylFillColor.push(v(F,55)),l.periodColor&&l.periodColor.push(v(F,10)),l.winColor&&l.winColor.push("666666"),l.lossColor&&l.lossColor.push("CC0000"),l.drawColor&&l.drawColor.push("666666"),l.scorelessColor&&l.scorelessColor.push("FF0000"),l.gridColor&&l.gridColor.push(v(F,30)),l.categoryBgColor&&l.categoryBgColor.push(v(F,10)),l.dataTableBgColor&&
l.dataTableBgColor.push(v(F,10)),l.gridResizeBarColor&&l.gridResizeBarColor.push(B(F,90)),l.scrollBarColor&&l.scrollBarColor.push(v(F,50)))};l.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,l,k,w,e,g,n,
s,K,m;c=c.replace(/\s/g,"");c=c.toLowerCase();if(""===c||null===c||void 0===c)a=[b];else for(l=c.split(","),k=b.split(","),w=Math.max(l.length,k.length,1),e=l[0],g=k[0],K=/[\{\}]/ig,m=0;m<w;m++)n=(l[m]||e).replace(K,""),s=k[m]||g,"color"==n?a.push(s):"light"==n.substr(0,5)?(d=n.indexOf("-"),d=-1==d?1:n.substr(d+1,n.length-d),d=100-d,a.push(v(s,d))):"dark"==n.substr(0,4)?(d=n.indexOf("-"),d=-1==d?1:n.substr(d+1,n.length-d),d=100-d,a.push(B(s,d))):a.push(n);return a},parseAlphaList:function(b,c){var a=
b.split(","),d=[],l,v=100,w;for(w=0;w<c;w++)l=k(a[w]),void 0!==l&&null!==l&&(v=l),d[w]=v;return d.join()},parseRatioList:function(b,c){var a=b.split(","),d=[],l=0,k,w;for(w=0;w<c;w++)k=a[w],k=isNaN(k)||void 0===k?0:Math.abs(Number(k)),k=100<k?100:k,d[w]=k,l+=k;l=100<l?100:l;if(a.length<c)for(w=a.length;w<c;w++)d[w]=(100-l)/(c-a.length);d[-1]=0;return d.join()}};l.prototype.constructor=l;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,k=d.core,B=d.hcLib,v=d.window,l=/msie/i.test(v.navigator.userAgent)&&!v.opera,c=B.addEvent,K=B.removeEvent,b=B.hasTouch,J=v.Number,a=b?6:5,D="rgba(192,192,192,"+(l?0.002:1E-6)+")",l=v.Math,F=l.min,C=l.max,w=l.sin,e=l.cos,g=l.PI,n=g/180,s=d.extend,R=B.pluck,m=B.pluckNumber,I=B.graphics.convertColor,Q=B.getValidValue,X=B.parseUnsafeString,$=B.setImageDisplayMode,p=B.graphics.parseColor,H=B.setLineHeight,
S=B.getMouseCoordinate,fa={style:{}},sa=B.toRaphaelColor,ya=function(a,b){return{start:-b,end:-a,angle:a-b}},ca=function(a,b,c,d,e){var g,l,n=0,m=0;l=void 0===b||null===b?1:b;var p;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*=l}if(c=a.match(/^[\+\-]?(\$[a-z0-9\.]+)|[\+\-](\$[a-z0-9\.]+)/g))for(b=0;b<c.length;b+=1){g=c[b];var k=d,w=e,s=g.split("."),
t=void 0,v=void 0,C=0;for(l=void 0;t=s.shift();)switch(typeof(v=k[t])){case "object":k=v[t];break;case "function":v=v(s,w),"-"===g.charAt()&&(v*=-1),l=!0;default:C+=J(v)||0,s.length=0}g=C;l&&(p=!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:p}},Y=function(a,b,c){if(!b.removed){b=b.data("annotation");var e=b.getRenderer(),g=S(e.container,c),l=g.annotationOptions=b.options,n=g.groupOptions=
b.group.options;g._shape=b;"id"in l&&(g.annotationId=l.id);"id"in n&&(g.groupId=n.id);d.raiseEvent(a,g,e.fusionCharts,c)}},xa,t,M;t=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 M(a[d],this))};s(t.prototype,{scaleImageX:1,scaleImageY:1,scaleText:1,scaleValue:1,scaleValueComplement:1,scaleX:1,scaleY:1});
t.prototype.setup=function(){var a=this.options,b=this.shared,c=this.getRenderer();c&&(this.isBelow=0!==m(a.showbelow,a.showbelowchart,b.showbelow),this.useTracker=!this.isBelow&&c.layers.tracker&&this.shared.useTracker,this.raiseOwnEvents=b.interactionevents)};t.prototype.scale=function(){var a=this.options,b=this.shared,c=this.bounds,d=this.snaps,e=this.getRenderer(),g=b.rootxscale,l=b.rootyscale,n=c.xs=m(a.xscale,b.xscale,100)/100,p=c.ys=m(a.yscale,b.yscale,100)/100,k,w,s;e&&(this.scaleText*=p,
this.scaleImageX*=n,this.scaleImageY*=p,0!==m(a.autoscale,b.autoscale)&&(n=m(a.origw,b.origw),p=m(a.origh,b.origh),n=e.chartWidth/n,p=e.chartHeight/p,e=0!==m(a.constrainedscale,b.constrainedscale),k=n<p?n:p,w=e?k:n,s=e?k:p,this.scaleValue=t.prototype.scaleValue*k,this.scaleValueComplement=t.prototype.scaleValueComplement*(e?k:n<p?p:n),this.scaleX=t.prototype.scaleX*w,this.scaleY=t.prototype.scaleX*s,c.xs*=w,c.ys*=s,g*=w,l*=s,"1"==R(a.scaletext,b.scaletext)&&(this.scaleText=t.prototype.scaleText*s),
"1"==R(a.scaleimages,b.scaleimages)&&(this.scaleImageX=t.prototype.scaleImageX*w,this.scaleImageY=t.prototype.scaleImageY*s)),c.x=ca(R(a.x,a.xpos),g,0,d,this.isBelow).value+m(a.grpxshift,b.grpxshift,0),c.y=ca(R(a.y,a.ypos),l,0,d,this.isBelow).value+m(a.grpyshift,b.grpyshift,0),this.xshift=m(a.xshift,b.xshift,0),this.yshift=m(a.yshift,b.yshift,0))};t.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:m(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}};t.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]};t.prototype.addItem=
function(a,b){var c;this.items.push(c=new M(a,this,this._idstore));b&&null!==this.getRenderer()&&(c.scale(),c.setup(),c.draw());return c};t.prototype.removeItem=function(a){for(var b=this.items,c=b.length;c--;)if(a===b[c]._id)return b.splice(c,1)};t.prototype.getRenderer=function(){return this.annotations&&this.annotations.getRenderer()||null};M=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 M.eventNames)"function"===typeof a[d]&&(this[d]=a[d],c=!0);this.hasEvents=c;"function"===typeof a.onload&&(this.onload=a.onload)};d.extend(M.prototype,{getAbsoluteBounds:function(){var a=this.bounds,b=a.x1,c=a.y1,d=a.x2,e=a.y2,g=F(b,d),l=F(c,e),b=C(b,d)-g,c=C(c,e)-l;return{x:g,width:b,y:l,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,l=c.snaps,n=R(g.x,g.xpos),p=R(g.y,g.ypos),k=R(g.tox,g.toxpos),w=R(g.toy,g.toypos),s=e.xs=d.xs,d=e.ys=d.ys,t=m(g.xshift,c.xshift,0),v=m(g.yshift,c.yshift,0),C;C=function(d,e,g,l){d=ca(d,e,g,l,c.isBelow);d.hasDynamicMacros&&a&&(b.queueDraw=!0);return d.value};b.hasDimension=!0;b.hasDimensionX=!0;b.hasDimensionY=!0;e.x1=C(n,s,0,l)+t;void 0===k?(b.hasDimension=!1,b.hasDimensionX=!1,e.x2=e.x1):e.x2=C(k,s,0,l)+t;e.y1=C(p,d,0,l)+v;
void 0===w?(b.hasDimension=!1,b.hasDimensionY=!1,e.y2=e.y1):e.y2=C(w,d,0,l)+v;M.angularShapeTypes[b.type]&&(e.angles=ya(C(g.startangle,1,0,l),C(g.endangle,1,360,l)));e.r=C(g.radius,c.scaleValue,0,l)},setup:function(){var a=this.options,b=this.group,c=b.options,d=this.attrs,e=this.style,g=b.scaleValue,l=m(c.fillalpha,c.alpha,100),n=this.fillAlpha=R(a.fillalpha,a.alpha,l),p=this.fillColor=R(a.fillcolor,a.color,c.color),k=this.fillPattern=R(a.fillpattern&&a.fillpattern.toLowerCase&&a.fillpattern.toLowerCase(),
c.fillpattern&&c.fillpattern.toLowerCase&&c.fillpattern.toLowerCase()),w=this.bordered=m(a.showborder,M.borderedShapeTypes[this.type],!!Q(a.bordercolor)),t=this.borderColor=R(a.bordercolor,c.bordercolor,p),l=this.borderAlpha=m(a.borderalpha,a.alpha,c.borderalpha,l),v=this.dashed=!!m(a.dashed,0),C=m(a.borderthickness,a.thickness,2)*g;this.link=R(a.link,c.link);this.shadow="1"==R(a.showshadow,c.showshadow);void 0===p&&(p=M.borderedShapeTypes[this.type]&&"none"||"#ff0000",void 0===t&&(t="#ff0000"));
w&&C?(d.stroke=I(t,l),d["stroke-linecap"]="round",d["stroke-width"]=C,v&&(d["stroke-dasharray"]=[m(a.dashlen,5)*g,m(a.dashgap,3)*g])):d.stroke="none";this.fillOptions={gradientUnits:"objectBoundingBox",color:p,alpha:n,ratio:R(a.fillratio,c.fillratio),angle:360-m(a.fillangle,0),radialGradient:"radial"===k};this.link&&(e.cursor="pointer",e._cursor="hand");d.visibility=m(a.visible,1)?"":"hidden";this.useTracker=b.useTracker;this.toolText=X(R(a.tooltext,c.tooltext));if(this.useTracker||this.link||this.toolText)s(this.attrsTracker,
{stroke:D,fill:D}),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,l=M.types[b]&&M.types[b].call&&M.types[b].call(this,a),n=M.imageShapeTypes[l],m=M.textShapeTypes[l],p=n||m||M.trackerShapeTypes[l],k=this.link||this.toolText,w=this.wrapper,b=this.tracker,s=a&&a.layers.tracker||this.group.wrapper,t=!1,v=b||w,D=M.eventNames,B=M.ownEvents,H,J;if(a){if(l){if(w)if(w.elemType!==
l){if(this.ownEventsAttached){for(J in B)v["un"+J].apply(w,B[J]);this.ownEventsAttached=!1}w=w.remove()}else if(this.hasEvents)for(H in D)(J=this[H])&&J.eventAttached&&(K(v.node,D[H],J),J.eventAttached=!1);n||(d.fill=sa(this.fillOptions));w?w.attr(d).css(e):(this.args.push(this.group.wrapper),w=this.wrapper=g[l].apply(g,this.args).attr(d).css(e),w.elemType=l,w.data("annotation",this),t=!0,this.args.pop());!this.shadow||this.shadowAdded||n||m?w.shadow(this.shadowAdded=!1):w.shadow(this.shadowAdded=
!0,C(this.borderAlpha,this.fillOptions.alpha)/100);k?this.useTracker&&(b||(this.args.push(s),b=this.tracker=p?g.rect(0,0,0,0,0,s):g[l].apply(g,this.args),this.args.pop()),b.attr(d).attr(this.attrsTracker)):b&&(b=b.remove());v=b||w;if(this.raiseOwnEvents&&!this.ownEventsAttached){for(J in B)v[J].apply(w,B[J]);this.ownEventsAttached=!0}this.link&&v.click(a.linkClickFN,this);this.toolText&&(v.tooltip(this.toolText||""),this.group.wrapper.trackTooltip(!0));if(this.hasEvents)for(H in D)(J=this[H])&&!J.eventAttached&&
(c(v.node,D[H],J,this),J.eventAttached=!0);n||(b&&p&&(a=w.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=M.eventNames,e=M.ownEvents,g,l;if(a){if(this.ownEventsAttached){for(l in e)c["un"+l].apply(a,e[l]);this.ownEventsAttached=!1}if(this.hasEvents)for(g in d)(l=this[g])&&l.eventAttached&&(K(c.node,d[g],l),l.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(M,{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){Y("annotationClick",this,a)}],hover:[function(a){Y("annotationRollOver",
this,a)},function(a){Y("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=0.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]=ca(c.sides,1,5,g,e.isBelow).value;a[1]=d.x1;a[2]=d.y1;a[3]=d.r;a[4]=ca(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,l=this.bounds,m=a.chartWidth,p=a.chartHeight,k=this.group.scaleValueComplement,s=this.group.snaps,t=l.angles,v=this.group;a=l.r;R(d.radius)||(l.r=m<p?m*l.xs:p*l.ys,l.r=a=0.3*l.r);d=ca(d.yradius,k,a,s,v.isBelow).value;
this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial");"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=0.5);m=t.angle%360;if(!m&&a===d)return b[0]=c.cx=l.x1,b[1]=c.cy=l.y1,b[2]=c.r=l.r,"circle";m||(t.start-=0.001);p=t.start*n;m=t.end*n;t=t.angle*n;k=l.x1;s=l.y1;l=k+e(p)*a;p=s+w(p)*d;k+=e(m)*a;m=s+w(m)*d;b[0]=c.path=["M",l,p,"A",a,d,0,0,t>=g?0:1,k,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 l=this.group,m=l.scaleValue,p=e.angles;R(b.radius)||(e.r=g<a?g*e.xs:a*e.ys,e.r*=0.3);e.innerR=ca(b.innerradius,m,0.8*e.r,this.group.snaps,l.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=0.5);c[0]=e.x1;c[1]=e.y1;c[2]=e.r;c[3]=e.innerR;c[4]=p.start*n;c[5]=p.end*n;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,l=this.options,n=this.getAbsoluteBounds(),k=R(l.align,e.options.textalign,"center").toLowerCase(),w=R(l.valign,e.options.textvalign,"middle").toLowerCase(),t=X(R(l.text,l.label)),v=a.logic.smartLabel,C=m(l.wrap,e.options.wraptext,1),D,B,J=R(l.rotatetext,e.options.rotatetext,"0").toLowerCase(),J=M.textRotationOptions[J],K="0"!==J?"y":"x",I=a.options.orphanStyles;a=s({},I.defaultStyle.style||{});I=e.id&&I[e.id.toLowerCase()]||
fa;a=s(a,I.style);var I=parseFloat(a.fontSize),F=R(l.font,e.options.font,a.fontFamily),e=m(l.fontsize,e.options.fontsize,I)*e.scaleText;C&&(D=m(l.wrapwidth,this.hasDimensionX?n.width/g.xs:void 0),B=m(l.wrapheight,this.hasDimensionY?n.height/g.ys:void 0),D&&(D*=g.xs),B&&(B*=g.ys));c.fontFamily=F;c.fontWeight=m(l.bold,l.isbold,0)?"bold":"normal";m(l.italic,l.isitalic,0)&&(c.fontStyle="italic");l.bgcolor&&(!d["text-bound"]&&(d["text-bound"]=[]),d["text-bound"][0]=p(l.bgcolor));l.bordercolor&&(!d["text-bound"]&&
(d["text-bound"]=[]),d["text-bound"][1]=p(l.bordercolor),d["text-bound"][2]=m(l.borderthickness,1),d["text-bound"][3]=m(l.padding,1));l.fontcolor&&(d.fill=p(l.fontcolor),this.fillOptions&&(this.fillOptions.color=d.fill));c.fontSize=e+"px";e===I?c.lineHeight=a.lineHeight:H(c);d["text-anchor"]=M.textAlignOptions[k]||M.textAlignOptions.center;v.setStyle(c);c=v.getSmartText(t,D,B,!1);d["vertical-align"]=M.textVerticalAlignOptions[w]||M.textVerticalAlignOptions.middle;d["text-anchor"]===M.textAlignOptions.left?
n[K]+=m(l.leftmargin,0):d["text-anchor"]===M.textAlignOptions.center&&(n[K]+=0.5*m(l.leftmargin,0));"0"!==J&&(d.rotation=[parseFloat(J),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,l=b.args,n=Q(a.url),p=b.group.scaleImageX*R(Number(a.xscale),100)/100,k=b.group.scaleImageY*R(Number(a.yscale),100)/100,w=b.getAbsoluteBounds(),
t={width:1,height:1},D;if(!n)return l[0]=g.x=w.x,l[1]=g.y=w.y,l[2]=g.width=w.width,l[3]=g.height=w.height,l[4]=g.r=w.r,"rect";D=new v.Image;D.onload=function(){t=$("none","top","left",100,0,d,e,D);delete t.x;delete t.y;t=s(t,{width:(b.hasDimensionX?w.unscaled.width:t.width)*p,height:(b.hasDimensionY?w.unscaled.height:t.height)*k});setTimeout(function(){var a,d,e;if(a=b.wrapper){a.attr(t);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=C(m(b.fillAlpha,
b.borderAlpha),b.borderAlpha)/100})}b.onload&&b.onload(t)},0)};D.src=n;l[0]=g.src=n;l[1]=g.x=w.x;l[2]=g.y=w.y;l[3]=g.width=(b.hasDimensionX?w.unscaled.width:t.width)*p;l[4]=g.height=(b.hasDimensionY?w.unscaled.height:t.height)*k;c.opacity=C(m(b.fillAlpha,b.borderAlpha),b.borderAlpha)/100;delete g.stroke;delete g.fill;delete g["stroke-linecap"];return"image"}}});xa=function(){this.groups=[];this._idstore={};this._options={}};B.Annotations=xa;d.extend(xa.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 t(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 t(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 xa)});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=[]}});k.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,k=d.hcLib,B=d.window,v=B.document,l=k.BLANKSTRING,c=k.createTrendLine,K="https:"===B.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",b=k.pluck,J=k.getValidValue,a=k.pluckNumber,D=k.getFirstValue,F=k.getDefinedColor,C=k.parseUnsafeString,w=k.FC_CONFIG_STRING,e=k.extend2,g=k.getDashStyle,n=k.parseTooltext,s=k.toPrecision,R=k.regex.dropHash,m=k.HASHSTRING,I=k.getSentenceCase,
Q=k.addEvent,X=B.Math,$=k.TOUCH_THRESHOLD_PIXELS,p=k.CLICK_THRESHOLD_PIXELS,H=X.min,S=X.max,fa=X.abs,sa=X.ceil,ya=X.floor,ca=X.log,Y=X.pow,xa=X.round,t=k.graphics.getColumnColor,M=k.getFirstColor,h=k.setLineHeight,N=k.pluckFontSize,W=k.getFirstAlpha,na=k.graphics.getDarkColor,ia=k.graphics.getLightColor,Z=k.graphics.convertColor,Aa=k.COLOR_TRANSPARENT,Ga=k.POSITION_CENTER,oa=k.POSITION_TOP,ua=k.POSITION_BOTTOM,ea=k.POSITION_RIGHT,da=k.POSITION_LEFT,aa=k.chartAPI,ba=k.graphics.mapSymbolName,ga=aa.singleseries,
la=aa.multiseries,za=k.COMMASTRING,hb=k.STRINGUNDEFINED,Ha=k.ZEROSTRING,La=k.ONESTRING,Oa=k.HUNDREDSTRING,Pa=k.PXSTRING,qb=k.COMMASPACE,sb=B.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),tb=!/fusioncharts\.com$/i.test(B.location.hostname),xb={left:"start",right:"end",center:"middle"},kb=k.BLANKSTRINGPLACEHOLDER,eb=k.BGRATIOSTRING,jb=k.COLOR_WHITE,lb=k.TESTSTR,r=k.graphics.getAngle,E=k.axisLabelAdder,z=k.falseFN,V=k.NumberFormatter,U=k.getLinkAction,P=k.getAxisLimits,ha=k.createDialog,ra=function(a,
b){return 0<a?ca(a)/ca(b||10):null},pa=k.hasTouch=void 0!==v.documentElement.ontouchstart,ja=k.fireEvent=function(a,b,c,d){k.dem.fire(a,b,c,d)},Ia={1:"bold",0:"normal"},ka={1:"italic",0:"normal"},Ca={1:"underline",0:"none"},ga={font:function(a,b){b.style.fontFamily=a},size:function(a,b){a&&(b.style.fontSize=N(a)+Pa)},color:function(a,b,c){b.style.color=a&&a.replace&&a.replace(R,m)||l;c&&(b.color=b.style.color)},bgcolor:function(a,b){b.style.backgroundColor=a&&a.replace&&a.replace(R,m)||l},bordercolor:function(a,
b){b.style.border="1px solid";b.style.borderColor=a&&a.replace&&a.replace(R,m)||l},ishtml:l,leftmargin:function(b,c){c.style.marginLeft=a(b,0)+Pa},letterspacing:function(b,c){c.style.letterSpacing=a(b,0)+Pa},bold:function(a,b){b.style.fontWeight=Ia[a]||""},italic:function(a,b){b.style.fontStyle=ka[a]||""},underline:function(a,b){b.style.textDecoration=Ca[a]||""}},Ka=k.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"}},T=function(){var a={},b,c=function(){var e,f,g,h,r=0,l,n,z=parseInt(d.core.options.resizeTrackingInterval,10)||300,m;for(e in a)r+=1,f=a[e],g=f.jsVars,l=f.ref,!f.disposed&&(h=l&&l.parentNode)&&(n=l.style)&&(/\%/g.test(n.width)||/\%/g.test(n.height))?(l=h.offsetWidth,m=h.offsetHeight,!g.resizeLocked&&(l&&g._containerOffsetW!==l||m&&g._containerOffsetH!==m)&&
(f.resizeTo&&f.resizeTo(),g._containerOffsetW=l,g._containerOffsetH=m)):(delete a[e],r-=1);b=r?setTimeout(c,z):clearTimeout(b)};return function(e,f){var g=e.jsVars,h=f||e.ref&&e.ref.parentNode||{};g._containerOffsetW=h.parentNode.offsetWidth;g._containerOffsetH=h.parentNode.offsetHeight;a[e.id]=e;b||(b=setTimeout(c,parseInt(d.core.options.resizeTrackingInterval,10)||300))}}(),ob={getExternalInterfaceMethods:function(){var a=aa[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+za;else if(void 0!==a||null!==a)for(c in a)b+=c+za;return b.substr(0,b.length-1)},drawOverlayButton:function(a){var b=this.jsVars,c=b.overlayButton,e,f;if(a&&a.show){c||(c=b.overlayButton=v.createElement("span"),k.dem.listen(c,"click",function(){d.raiseEvent("OverlayButtonClick",a,b.fcObj)}));for(e=a.message?a.message:"Back";c.firstChild;)c.removeChild(c.firstChild);c.appendChild(v.createTextNode(e));b.overlayButtonMessage=e;e={border:"1px solid "+(a.borderColor?a.borderColor.replace(R,
m):"#7f8975"),backgroundColor:a.bgColor?a.bgColor.replace(R,m):"#edefec",fontFamily:a.font?a.font:"Verdana,sans",color:"#"+a.fontColor?a.fontColor:"49563a",fontSize:(a.fontSize?a.fontSize:"10")+Pa,padding:(a.padding?a.padding:"3")+Pa,fontWeight:0===parseInt(a.bold,10)?"normal":"bold",position:"absolute",top:"0",right:"0",_cursor:"hand",cursor:"pointer"};for(f in e)c.style[f]=e[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(),k.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;d.msgStore[a]&&(a=d.msgStore[a]);b&&f&&f.hasRendered?a?f.showMessage(a,c):f.hideLoading():(f&&f.destroy&&f.destroy(),k.createChart(d.fcObj,d.container,d.type,void 0,a));return a},signature:function(){return"FusionCharts/3.4.0 (XT)"}},Ta=k.HCstub=function(b,c,d,e){b=b.chart;var f=a(b.showborder,
1)?a(b.borderthickness,1):0,g=a(b.charttopmargin,e.charttopmargin,15)+f,h=a(b.chartrightmargin,e.chartrightmargin,15)+f,r=a(b.chartbottommargin,e.chartbottommargin,15)+f,f=a(b.chartleftmargin,e.chartleftmargin,15)+f,n=g+r,m=f+h;d*=0.7;c*=0.7;n>d&&(g-=(n-d)*g/n,r-=(n-d)*r/n);m>c&&(f-=(m-c)*f/m,h-=(m-c)*h/m);c={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},oriCatTmp:[],noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,
renderTo:l,ignoreHiddenSeries:!1,events:{},reflow:!1,spacingTop:g,spacingRight:h,spacingBottom:r,spacingLeft:f,marginTop:g,marginRight:h,marginBottom:r,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:k.CREDIT_HREF,
text:k.CREDIT_STRING,enabled:tb},global:{},labels:{items:[]},lang:{},legend:{enabled:!0,symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:l,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?
e.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?z:function(){this.slice()}}}},pie3d:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:b.interactivelegend===Ha?z:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:l,style:{}},symbols:[],title:{text:l,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],plotBands:[],title:{style:{},text:l},tickWidth:0,scroll:{enabled:!1}},
yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},text:l},tickLength:0,labels:{x:0,style:{}},plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:l},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==kb?this.value:l}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}};b.palettecolors&&"string"===typeof b.palettecolors&&(c.colors=b.palettecolors.split(/\s*\,\s*/));return e.hcJSON=
c},ab=k.placeVerticalAxis=function(b,c,d,e,f,g,h,r,n,z){var m=d[w],p=m.smartLabel,E,k,s,V,U=0,t=m.marginRightExtraSpace,v=m.marginLeftExtraSpace,P={},ha={},C={},D=b.plotLines,pa=b.plotBands,m=c.verticalAxisValuesPadding,B=isNaN(c.fixedValuesPadding)?0:c.fixedValuesPadding,H=m-B,ra=c.verticalAxisValuesPadding,ka=c.verticalAxisNamePadding,ja=c.verticalAxisNameWidth,Ia=c.rotateVerticalAxisName&&String(c.rotateVerticalAxisName).toLowerCase(),K="none"!==Ia,I=b.offset?b.offset:0,R=0,Ta=0,F=0,N=0,M=0,Ca=
0,T=0,ob,Ja,Ka,ma,m=2,T=h?t+5:v+4,ab=S(a(d.chart.plotBorderWidth,1),0),bb=b.showLine?b.lineThickness:ab,W=function(a,b){var f,d;a&&a.label&&void 0!==J(a.label.text)&&(Ka=a.label,Ka.style&&Ka.style!==Ja&&(Ja=Ka.style,p.setStyle(Ja)),E=p.getOriSize(a.label.text),d=(f=E.width)?f+2:0,a.isGrid?(P[b]={width:f,height:E.height,label:Ka},N<=d&&(N=d,c.lYLblIdx=b)):a.isTrend&&(h&&Ka.textAlign===da||Ka.textAlign===ea?(ha[b]={width:f,height:E.height,label:Ka},M=S(M,d)):(C[b]={width:f,height:E.height,label:Ka},
Ca=S(Ca,d))))},Q=function(a,c){var d,e=c?U:U+a;d=b.title.style;k=k||{};if(0<e)return K?(e<k.height&&(p.setStyle(d),k=p.getSmartText(b.title.text,f,e)),d=k.height):(e<k.width&&(p.setStyle(d),k=p.getSmartText(b.title.text,e,f)),d=k.width),b.title._actualWidth=d,b.title.text=k.text,k.tooltext&&(b.title.originalText=k.tooltext),c?e-d+a:e-d;b.title.text=l;return 0},$=function(a,b,c){for(var f in a)a[f].label.x=b,a[f].label.y=c},F=0;for(ob=pa.length;F<ob;F+=1)W(pa[F],F);F=0;for(ob=D.length;F<ob;F+=1)W(D[F],
F);b.title&&b.title.text!=l&&(Ja=b.title.style,p.setStyle(Ja),s=p.getOriSize(lb).height,b.title._originalText=b.title.text,K?(b.title.rotation="cw"===Ia?90:270,k=p.getSmartText(b.title.text,f,g),U=k.height,V=s):(b.title.rotation=0,k=p.getSmartText(b.title.text,void 0!==ja?ja:g,f),U=k.width,V=20));0<Ca&&(Ta=Ca+ra);n&&(e=a(e.chart.maxlabelwidthpercent,0),1<=e&&100>=e&&(n=e*n/100,N>n&&(N=n)));R=S(M,N);R+=R?H+B:0;0<U&&(R+=U+ka+T);(function(){if(Ta+R>g){ma=Ta+R-g;if(Ta){if(ra>=ma){ra-=ma;return}ma-=ra;
ra=0}if(H+ka>=ma)ka>=ma?ka-=ma:(H-=ma-ka,ka=0);else{ma-=H+ka;ka=H=0;if(20<Ca)if(M>N){if(Ca-M>=ma){Ca-=ma;return}if(M-Ca>=ma){M-=ma;return}M>Ca?(ma-=M-Ca,M=Ca):(ma-=Ca-M,Ca=M);if(2*(M-N)>=ma){Ca-=ma/2;M-=ma/2;return}ma-=2*(M-N);Ca=M=N}else{if(Ca-20>=ma){Ca-=ma;return}ma-=Ca-20;Ca=20}if(M>N){if(M-N>=ma){M-=ma;return}ma-=M-N;M=N}U-V>=ma?U-=ma:(ma-=U-V,U=V,Ca>=ma?Ca=0:(ma-=Ca,Ca=0,U>=ma?U=0:(ma-=U,U=0,N>=ma&&(M=N-=ma))))}}})();F=function(a,b){var c,d=0,q=b?Ca-2:Ca+a-2,e;if(0<Ca){for(e in C)Ka=C[e].label,
C[e].width>q?(Ka.style&&Ka.style!==Ja&&(Ja=Ka.style,p.setStyle(Ja)),c=p.getSmartText(Ka.text,q,f,!0),Ka.text=c.text,c.tooltext&&(Ka.originalText=c.tooltext),C[e].height=c.height,d=S(d,c.width)):d=S(d,C[e].width);return b?q-d+a:q-d}for(e in C)C[e].label.text=l;return 0}(0,!0);F=Q(F,!0);F=function(a){var b=0,c=S(N,M)+a-2,d;if(0<c){for(d in P)Ka=P[d].label,P[d].width>c?(Ka.style&&Ka.style!==Ja&&(Ja=Ka.style,p.setStyle(Ja)),a=p.getSmartText(Ka.text,c,f,!0),Ka.text=a.text,a.tooltext&&(Ka.originalText=
a.tooltext),P[d].height=a.height,b=S(b,a.width)):b=S(b,P[d].width);for(d in ha)Ka=ha[d].label,ha[d].width>c?(Ka.style&&Ka.style!==Ja&&(Ja=Ka.style,p.setStyle(Ja)),a=p.getSmartText(Ka.text,c,f,!0),Ka.text=a.text,a.tooltext&&(Ka.originalText=a.tooltext),ha[d].height=a.height,b=S(b,a.width)):b=S(b,ha[d].width);return c-b}for(d in P)P[d].label.text=l;for(d in ha)ha[d].label.text=l;return 0}(F);F=Q(F);n=c.verticalAxisNamePadding-ka;F&&n&&(F>n?(ka+=n,F-=n):(ka+=F,F=0));n=c.verticalAxisValuesPadding-(H+
B);F&&n&&(F>n?(H+=n,F-=n):(H+=F,F=0));n=c.verticalAxisValuesPadding-ra;F&&n&&(F>n?(ra+=n,F-=n):(ra+=F,F=0));0<Ca&&(Ta=Ca+ra);R=S(M,N);R+=R?H+B:0;0<U&&(R+=U+ka+T);n=S(M,N);n+=0<n?H+B:0;0<U?(K?U<k.height&&(k=p.getSmartText(b.title.text,f,U)):(U<k.width&&(k=p.getSmartText(b.title.text,U,f)),b.title.y=-((k.height-s)/2)),b.title.text=k.text,k.tooltext&&(b.title.originalText=k.tooltext),b.title.margin=n+ka+T+(K?U-s:U/2)):b.title.text=l;s=-(H+B+I+v+2);t=t+ra+I+2;T=S(M,N);b.labels.style&&(m=0.35*parseInt(b.labels.style.fontSize,
10));h?(0<Ca&&$(C,s,m),0<T&&($(P,t,m),$(ha,t,m))):(0<Ca&&$(C,t,m),0<T&&($(P,s,m),$(ha,s,m)));b.labels._textY=m;b.labels._righttX=t;b.labels._leftX=s;R=R||bb;Ta=Ta||(r?0:ab);z?(d.chart.marginLeft+=h?Ta:R-z,d.chart.marginRight+=h?R-z:Ta):(d.chart.marginLeft+=h?Ta:R,d.chart.marginRight+=h?R:Ta);return Ta+R},la=k.titleSpaceManager=function(b,c,d,e){var f=this.snapLiterals||(this.snapLiterals={}),g=c.chart,h=C(g.caption);c=C(g.subcaption);var r=g=a(g.captionpadding,10),n=b[w],m=this.smartLabel||n.smartLabel,
z=!1,p=0,E,k,s=0,V=0,U=0,t=0,v=b.title,P=b.subtitle,ha=S(a(b.chart.plotBorderWidth,1),0),D=0,pa=0;g<ha&&(g=ha+2);h!==l&&(E=v.style,U=a(parseInt(E.fontHeight,10),parseInt(E.lineHeight,10),12));c!==l&&(k=P.style,t=a(parseInt(k.fontHeight,10),parseInt(k.lineHeight,10),12));if(0<U||0<t)p=U+t+g,p>e?(s=p-e,z=!0,s<g?g-=s:(s-=g,g=0,t>s?(V=t-s+10,t=0,P._originalText=P.text,P.text=""):(s-=t,t=0,U>s&&(V=U-s),U=0,v._originalText=v.text,v.text=""))):V=e-p,0<U&&(m.setStyle(E),U+=V,e=m.getSmartText(h,d,U),V=U-e.height,
v.height=U=e.height,v.text=e.text,e.tooltext&&(v.originalText=e.tooltext),D=e.width),0<t&&(m.setStyle(k),t+=V,d=m.getSmartText(c,d,t),V=t-d.height,t=d.height,P.text=d.text,P.height=d.height,d.tooltext&&(P.originalText=d.tooltext),pa=d.width),z&&0<V&&(g+=H(r-g,V)),p=U+t+g;p=p||ha;v.isOnTop?(f.captionstarty=b.chart.marginTop,b.chart.marginTop+=p):(b.chart.marginBottom+=p,f.captionstarty=v.y=n.height-b.chart.marginBottom+g,b.chart.marginTop+=5,p+=5);v._captionWidth=D;P._subCaptionWidth=pa;v._lineHeight=
U;P._lineHeight=t;return p},mb=k.stepYAxisNames=function(a,b,c,d,f,e){var g=0,h=d.plotLines,r=[],n,m=d.plotLines.length;b=b[w].smartLabel;for(var z=parseFloat(N(c.basefontsize,10)),p;g<m;g+=1)c=h[g],c.isGrid&&c.label&&c.label.text&&(r.push(c),0===c.value&&(n=r.length-1));if(m=r.length)if(d.labels.style?b.setStyle(d.labels.style):r[0].label&&r[0].label.style&&b.setStyle(d.labels.style),g=b.getOriSize("W").height,e||(g+=0.4*z),a/=m-1,a<g){e=S(1,sa(g/a));for(g=a=n;g<m;g+=1)c=r[g],g===f&&((g-a)%e&&p&&
(p.label.text=""),a=f),c&&c.label&&((g-a)%e?c.label.text=l:p=c);for(g=a=n;0<=g;g-=1)c=r[g],g===f&&((a-g)%e&&p&&(p.label.text=""),a=f),c&&c.label&&((a-g)%e?c.label.text=l:p=c)}},Fb=k.placeHorizontalAxis=function(b,c,d,e,f,g,h){var r=d[w],n=e&&e.chart||{},m,z,p,E,k,s,V,U,t,v,P,ha,C=0,D=0,pa=10,ra=1,B=0,ka=0,ja=0,F=0,Ia=!1,R=!1,K=!1,M=a(n.labelstep,0),Ca=a(n.xaxisminlabelwidth,0),Ta=c.labelDisplay,N=c.rotateLabels,I=c.horizontalLabelPadding,ma=r.marginBottomExtraSpace,Ka=d.chart.marginLeft,Ja=d.chart.marginRight,
T=r.smartLabel,ob=r.plotBorderThickness,ab=c.catCount,W=c.slantLabels,Q=f/(b.max-b.min),bb=0,$=0,Fb=0,X=0,Z=e&&e.chart||{},Eb=1E3*a(Z.updateinterval,Z.refreshinterval),Bb=Z.datastreamurl,ic=Boolean(this.realtimeEnabled&&Eb&&void 0!==Bb),mb,Xb,Y,fa,ca,ga,vb,aa,ba,Gb,ib,oa,Ea,za,ta,la,ia,na,Fa,Pa,Ab,Aa,Ha,Oa,fb,xa=null,Ob=null,Qa,La,fc,Pb,Sb,gc,Lb,pc,Vb,wa,Tb,eb,Na=[],Qb=[],Db,Xa=0,yb=0,Ub,hc,nb,lc,cc,qb,db,mc=c.horizontalAxisNamePadding,Jb=0,Ya=c.staggerLines,wb=bb,kb=!1,dc,ec,lb,jb=!1,xb,tb,sb,Ac,
Qc,ad,qc,Lc,Tc,Dc,Uc,Mc,Rc,wc;b.labels.style&&(s=b.labels.style,T.setStyle(s),U=T.getOriSize("W"),pa=T.lineHeight,V=U.width+4,ha=T.getOriSize("WWW").width+4);b.title&&b.title.text!=l&&(s=b.title.style,T.setStyle(s),ka=T.getOriSize("W").height,b.title.rotation=0,E=T.getSmartText(b.title.text,f,g),D=E.height);Ka!=parseInt(n.chartleftmargin,10)&&(Lb=!0);Ja!=parseInt(n.chartrightmargin,10)&&(pc=!0);void 0!==n.canvaspadding&&""!==n.canvaspadding&&(jb=!0);Vb=f-h;switch(Ta){case "none":Ia=K=!0;N&&(C=W?300:
270,U=pa,pa=V,V=U);break;case "rotate":C=W?300:270;U=pa;pa=V;V=U;Ia=!0;break;case "stagger":R=Ia=!0;t=ya((g-ka)/pa);t<Ya&&(Ya=t);break;default:N&&(C=W?300:270,U=pa,pa=V,V=U)}r.isBar&&(Ia=!0);wa=0;Tb=b.plotLines;if(typeof d._FCconf.isXYPlot!==hb||r.isBar){mb={};ga=ca=0;Gb=ba=null;na={};kb=!0;Q=f/(b.max-b.min);xb=function(a,c,f){var e,u,g,h,r,G;G=a.plotObj;r=a.labelTextWidth;r||(k=G.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),r=T.getOriSize(k.text).width+4,a.oriWidth=r,r>Xb&&(r=Xb),a.labelTextWidth=
r,a.leftEdge=G.value*Q-r/2,a.rightEdge=G.value*Q+r/2,f&&(r=H(r,2*(z.value-b.min)*Q+d.chart.marginLeft),a.labelTextWidth=r));if(typeof c!==hb){if(f=c.plotObj,k=f.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),c.oriWidth?g=c.oriWidth:(g=T.getOriSize(k.text).width+4,c.oriWidth=g),g>Xb&&(g=Xb),c.labelTextWidth=g,c.leftEdge=f.value*Q-g/2,c.rightEdge=f.value*Q+g/2,e=G.value*Q,u=e+r/2,h=f.value*Q,g=h-g/2,g<u)if(e+V<h-V)u-=g,e=h-e,a.labelTextWidth=u>e?H(r,e):S(V,r-u/2),c.labelTextWidth=2*(e-a.labelTextWidth/
2),a.leftEdge=G.value*Q-a.labelTextWidth/2,a.rightEdge=G.value*Q+a.labelTextWidth/2,c.leftEdge=f.value*Q-c.labelTextWidth/2,c.rightEdge=f.value*Q+c.labelTextWidth/2;else return c.labelTextWidth=0,f.label.text=l,!1}else f&&(r=H(r,2*(b.max-z.value)*Q+d.chart.marginRight),a.labelTextWidth=r,a.leftEdge=G.value*Q-r/2,a.rightEdge=G.value*Q+r/2);a.nextCat=c;return!0};R?Ya>hc?Ya=hc:2>Ya&&(Ya=2):Ya=1;for(db=Tb.length;wa<db;wa+=1)(z=Tb[wa])&&z.label&&typeof z.label.text!==hb&&(z.isGrid?(fa={plotObj:z},z.isCat&&
(aa=wa%Ya,mb[aa]||(mb[aa]=[]),ba?(Gb=fa,mb[aa].push(Gb)):(Gb=ba=fa,mb[aa].push(ba))),Na.push(fa)):z.isTrend&&Qb.push({plotObj:z}));eb=b.plotBands;wa=0;for(db=eb.length;wa<db;wa+=1)(z=eb[wa])&&z.isTrend&&z.label&&typeof z.label.text!==hb&&Qb.push({plotObj:z});if(Na.length)if(!K&&!C)if(r.distributedColumns)for(wa=0,db=Na.length;wa<db;wa+=1)la=Na[wa],ia=wa%Ya,z=la.plotObj,z.label&&z.isCat&&(0<=wa-Ya?(oa=Na[wa-Ya],Ha=oa.plotObj.value*Q+oa.plotObj._weight*Q/2):(oa=null,Ha=b.min*Q-Ka),wa+Ya<db?(ib=Na[wa+
Ya],Oa=ib.plotObj.value*Q-ib.plotObj._weight*Q/2):(ib=null,Oa=b.max*Q+Ja),k=z.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),Ea=z.value*Q,sb=Ea-z._weight*Q/2,tb=Ea+z._weight*Q/2,1<Ya?(Pa=sb-Ha,Ab=tb+Oa,fb=tb-sb+H(Pa,Ab)):fb=tb-sb,k=z.label,k.style&&k.style!==s&&T.setStyle(k.style),fb<V&&V<T.getOriSize(k.text).width?(z.label.text=l,la.labelTextWidth=0):(la.labelTextWidth=fb,m=T.getSmartText(k.text,fb-4,g,Ia),fb=m.width+4,la.labelTextWidth=fb,X=S(X,m.height)));else{hc=Na.length;Ub=Na.length-
1;(Db=(Na[Ub].plotObj.value-Na[0].plotObj.value)*Q)?(Xb=0.1*Db,Y=S(0.2*Db,Db/hc)):Y=Xb=f;for(p in mb)for(wa=0,za=mb[p].length;wa<za;){for(vb=wa+1;!xb(mb[p][wa],mb[p][vb]);)vb+=1;wa=vb}ba&&(ga=(ba.plotObj.value-b.min)*Q+Ka-ba.labelTextWidth/2);z=Na[0].plotObj;ba&&z===ba.plotObj||(k=z.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),P=T.getOriSize(k.text).width+4,Ea=(z.value-b.min)*Q+Ka,ba&&(Qa=ga-Ea,P=Qa<P&&Qa>V/2?2*Qa:0),Na[0].labelTextWidth=P,0<P&&(U=Ea-P/2),U<ga&&(ga=U));Gb&&(P=Gb.labelTextWidth,
ca=(b.max-Gb.plotObj.value)*Q+Ja-P/2);z=Na[Ub].plotObj;Gb&&z===Gb.plotObj||(k=z.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),P=T.getOriSize(k.text).width+4,Ea=(b.max-z.value)*Q+Ja,Gb&&(Qa=Ea-ca,P=Qa<P&&Qa>V/2?2*Qa:0),Na[Ub].labelTextWidth=P,0<P&&(U=Ea-P/2),U<ca&&(ca=U));Xa=0>ga?-ga:0;yb=0>ca?-ca:0;qb=Xa+yb;if(0<qb)for(p in Vb>qb?(ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,ta=(ta=Xa*f/(Xa+f))?ta+4:0,d.chart.marginLeft+=ta,f-=ta,Q=f/(b.max-b.min)):Xa<yb?Vb>=yb&&pc?(ta=(ta=yb*
f/(yb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,Q=f/(b.max-b.min)):Lb&&(ta=(ta=Xa*f/(Xa+f))?ta+4:0,d.chart.marginLeft+=ta,f-=ta,Q=f/(b.max-b.min)):Vb>=Xa&&Lb?(ta=(ta=Xa*f/(Xa+f))?ta+4:0,d.chart.marginLeft+=ta,f-=ta,Q=f/(b.max-b.min)):pc&&(ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,Q=f/(b.max-b.min)),Ja=d.chart.marginRight,Ka=d.chart.marginLeft,Db=(Na[Ub].plotObj.value-Na[0].plotObj.value)*Q,Xb=0.1*Db,Y=S(0.2*Db,Db/hc),mb){wa=0;for(za=mb[p].length;wa<za;){for(vb=wa+1;!xb(mb[p][wa],mb[p][vb],
!0);)vb+=1;wa=vb}p+=1}wa=0;for(db=Na.length;wa<db;wa+=1)if(la=Na[wa],ia=wa%Ya,z=la.plotObj,z.label)if(z.isCat)la.labelTextWidth&&(na[ia]=la);else{ib=(oa=na[ia])?oa.nextCat:mb[ia]?mb[ia][0]:null;Fa=null;if(wa>=Ya)for(Ob=wa-Ya,Fa=Na[Ob];!Fa.labelTextWidth;)if(Ob>=Ya)Ob-=Ya,Fa=Na[Ob];else{Fa=null;break}Ha=Fa?Fa.rightEdge:b.min*Q-Ka;Oa=ib?ib.leftEdge:b.max*Q+Ja;k=z.label;k.style&&k.style!==s&&(s=k.style,T.setStyle(s));P=T.getOriSize(k.text).width+4;gc=z.value*Q-P/2;if(r.isBar&&wa==db-1&&Fa)Ha>gc&&(Fa.plotObj.label.text=
l,Fa.labelTextWidth=0,Ha=Fa.leftEdge);else if(Ha>gc||Oa<gc+P){z.label.text=l;la.labelTextWidth=0;continue}Ha=S(Ha,gc);Ea=z.value*Q;fb=2*H(Ea-Ha,Oa-Ea);fb.toFixed&&(fb=fb.toFixed(2));k=z.label;k.style&&k.style!==s&&T.setStyle(k.style);fb<V&&V<T.getOriSize(k.text).width?(z.label.text=l,la.labelTextWidth=0):(la.labelTextWidth=fb,m=T.getSmartText(k.text,fb-4,g,Ia),fb=m.width+4,la.labelTextWidth=fb,la.leftEdge=Ea-fb/2,la.rightEdge=Ea+fb/2,X=S(X,m.height))}Fa=Aa=null;wa=0;for(db=Na.length;wa<db;wa+=1)if(la=
Na[wa],z=la.plotObj,ia=wa%Ya,z.isCat&&la.labelTextWidth){Fa=Aa=null;Ea=z.value*Q;if(wa>=Ya)for(Ob=wa-Ya,Fa=Na[Ob];!Fa.labelTextWidth;)if(Ob>Ya)Ob-=Ya,Fa=Na[Ob];else{Fa=null;break}Pa=Fa?Ea-Fa.rightEdge:Ea-b.min*Q+d.chart.marginLeft;if(wa+Ya<db)for(xa=wa+Ya,Aa=Na[xa];!Aa.labelTextWidth;)if(xa+Ya<db-1)xa+=Ya,Aa=Na[xa];else{Aa=null;break}Ab=Aa?Aa.leftEdge-Ea:b.max*Q+d.chart.marginRight-Ea;fb=2*H(Pa,Ab);fb>Y&&(fb=Y);fb>la.oriWidth&&(fb=la.oriWidth);la.labelTextWidth=fb;k=z.label;k.style&&k.style!==s&&
T.setStyle(k.style);m=T.getSmartText(k.text,fb-4,g,Ia);la.labelTextWidth=m.width+4;X=S(X,m.height);la.rightEdge=Ea+la.labelTextWidth/2}}else if(C)for(wa=0,db=Na.length;wa<db;wa+=1)if((z=Na[wa].plotObj)&&z.label&&z.label.text){k=z.label;k.style&&k.style!==s&&(s=k.style,T.setStyle(s));p=1;if(wa+p<db)for(Ac=Na[p+wa].plotObj;Ac&&(Ac.value-z.value)*Q<V;)if(z.isCat){if(Ac.label){Ac.label.text=l;p+=1;if(p+wa>=db-1)break;Ac=Tb[p+wa].plotObj}}else if(Ac.isCat){z.label.text=l;z=Ac;wa+=p-1;k=z.label;k.style&&
k.style!==s&&(s=k.style,T.setStyle(s));break}Fb=S(Fb,T.getOriSize(k.text).width+4)}p=0;for(db=Qb.length;p<db;p+=1)(z=Qb[p].plotObj)&&z.label&&void 0!==J(z.label.text)&&(k=z.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),m=T.getOriSize(k.text),k.verticalAlign===ua?bb=S(bb,m.height):$=S($,m.height))}else{for(db=Tb.length;wa<db;wa+=1)(z=Tb[wa])&&(z.isGrid?Na.push(z):z.isTrend&&Qb.push(z));eb=b.plotBands;wa=0;for(db=eb.length;wa<db;wa+=1)(z=eb[wa])&&Qb.push(z);Ub=Na.length-1;hc=Na.length;R&&(Ya>
hc?Ya=hc:2>Ya&&(Ya=2));if(hc)for(b.scroll&&b.scroll.viewPortMin&&b.scroll.viewPortMax?(Pb=b.scroll.viewPortMin,Sb=b.scroll.viewPortMax,pc=Lb=!1):(Pb=b.min,Sb=b.max),Db=(Na[Ub].value-Na[0].value)*Q,nb=Db/(ab-1),lc=(Na[0].value-Pb)*Q,cc=(Sb-Na[Ub].value)*Q,"auto"===Ta?nb<ha&&(C=W?300:270,U=pa,pa=V,V=U,Ia=!0):"stagger"===Ta&&(nb*=Ya),"line"!==this.defaultSeriesType&&("area"===this.defaultSeriesType?r.drawFullAreaBorder&&(ob>lc&&(Pb=b.min-=ob/(2*Q),lc+=(Na[0].value-Pb)*Q),ob>cc&&(Sb=b.max+=ob/(2*Q),cc+=
(Sb-Na[Ub].value)*Q)):(ob>lc&&(Pb=b.min-=ob/(2*Q),lc+=(Na[0].value-Pb)*Q),ob>cc&&(Sb=b.max+=ob/(2*Q),cc+=(Sb-Na[Ub].value)*Q))),V<Ca&&(V=Ca),ra=R||K?S(1,M):S(1,M,sa(V/nb)),r.x&&(r.x.stepValue=ra),nb*=ra,v=2*(lc+Ka),(k=Tb[0].label)&&k.text&&(k.style&&T.setStyle(k.style),P=270===C?H(nb,T.getOriSize(k.text).height+4):H(nb,T.getOriSize(k.text).width+4),P>v&&(K||(Xa=(P-v)/2),Lb||(jb&&(Xa=0),nb-=Xa/(ab-1),lb=nb*(ab-1),Q=nb,dc=(Db-lb)/Q,Sb=b.max+=dc,Pb=b.min-=dc,Xa=0,Db=lb,lc=(Na[0].value-Pb)*Q,cc=(Sb-Na[Ub].value)*
Q))),v=2*(cc+Ja),(k=Tb[Ub].label)&&k.text&&(k.style&&T.setStyle(k.style),P=270===C?H(nb,T.getOriSize(k.text).height+4):H(nb,T.getOriSize(k.text).width+4),P>v&&(K||(yb=(P-v)/2),pc||(jb&&(yb=0),nb-=yb/(ab-1),lb=nb*(ab-1),Q=nb,dc=(Db-lb)/Q,yb=0,Db=lb,lc=(Na[0].value-Pb)*Q,cc=(Sb-Na[Ub].value)*Q))),qb=Xa+yb,0<qb&&(Vb>qb?(ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,ta=(ta=Xa*f/(Xa+f))?ta+4:0,d.chart.marginLeft+=ta,f-=ta,Q=f/(b.max-b.min)):Xa<yb?Vb>=yb&&pc?(ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginRight+=
ta,f-=ta,Q=f/(b.max-b.min)):Lb&&(ta=(ta=Xa*f/(Xa+f))?ta+4:0,d.chart.marginLeft+=ta,f-=ta,Q=f/(b.max-b.min)):Vb>=Xa&&Lb?(ta=(ta=Xa*f/(Xa+f))?ta+4:0,d.chart.marginLeft+=ta,f-=ta,Q=f/(b.max-b.min)):pc&&(ta=(ta=yb*f/(yb+f))?ta+4:0,d.chart.marginRight+=ta,f-=ta,Q=f/(b.max-b.min)),Db=(Na[Ub].value-Na[0].value)*Q,nb=Db/(ab-1),R&&(nb*=Ya),ra=R||K?S(1,M):C?S(1,M,sa(pa/nb)):S(1,M,sa(V/nb)),r.x&&(r.x.stepValue=ra),nb*=ra),p=0;p<hc;p+=1){z=Na[p];if(p%ra&&z.label){if(z.stepped=!0,z.label.style=b.steppedLabels.style,
!ic)continue}else z.stepped=!1,z.label.style=b.labels.style;z&&z.label&&void 0!==J(z.label.text)&&(k=z.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),C&&K?(m=T.getOriSize(k.text),Fb=S(Fb,m.width+4),X=S(X,m.height)):K||(m=C||R?T.getOriSize(k.text):T.getSmartText(k.text,nb-4,g,Ia),Fb=S(Fb,m.width+4),X=S(X,m.height)))}p=0;for(db=Qb.length;p<db;p+=1)(z=Qb[p])&&z.label&&void 0!==J(z.label.text)&&(k=z.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),m=T.getOriSize(k.text),k.verticalAlign===
ua?bb=S(bb,m.height):$=S($,m.height));b.scroll&&b.scroll.enabled&&!C&&!K&&(dc=Fb/2,d.chart.marginLeft<dc&&(ec=dc-d.chart.marginLeft,Vb>ec&&(f-=ec,Vb-=ec,d.chart.marginLeft+=ec)),d.chart.marginRight<dc&&(ec=dc-d.chart.marginRight,Vb>ec&&(f-=ec,Vb-=ec,d.chart.marginRight+=ec)))}K?(Jb=pa,C&&(Jb=Fb)):Jb=C?Fb:R?Ya*pa:X;0<Jb&&(wb+=I+Jb);0<D&&(wb+=D+mc);La=I-4;fc=$+wb+2;U=0;fc>g&&(Qa=fc-g,mc>Qa?(mc-=Qa,Qa=0):(Qa-=mc,mc=0,La>Qa?(La-=Qa,Qa=0):(Qa-=La,La=0),I=La+4),$>Qa?($-=Qa,Qa=0):(0<$&&(Qa-=$,$=0),0<Qa&&
(bb>Qa?(bb-=Qa,Qa=0):(0<bb&&(Qa-=bb,bb=0),0<Qa&&((U=D-ka)>Qa?(D-=Qa,Qa=0):(Qa-=U,D=ka,0<Qa&&((U=Jb-pa)>Qa?(Jb-=Qa,Qa=0):(Qa-=U,Jb=pa,0<Qa&&(Qa-=D+mc,D=0,0<Qa&&(Qa-=Jb,Jb=0,0<Qa&&(I-=Qa)))))))))));I+=ma;Qc=r.is3d?-d.chart.xDepth:0;ad=Jb+I;Dc=Qc;Uc=0.5*pa;B=pa+I;db=Na.length;ja=0;if(kb)if(C)for(wc=ea,qc=W?I+8:I+4,db=Na.length,p=0;p<db;p+=1)(z=Na[p].plotObj)&&z.label&&void 0!==J(z.label.text)&&(k=z.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),wa=1,m=T.getSmartText(k.text,Jb-4,V,Ia),k.text=m.text,
m.tooltext&&(k.originalText=m.tooltext),Dc=Qc+Uc/2,k.y=qc,k.x=Dc,k.rotation=C,k.textAlign=wc,ja+=1);else for(Lc=Jb,wc=Ga,qc=B,p=0;p<db;p+=ra)(z=Na[p].plotObj)&&z.label&&void 0!==J(z.label.text)&&(k=z.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),K||(m=T.getSmartText(k.text,Na[p].labelTextWidth-4,Lc,Ia),k.text=m.text,m.tooltext&&(k.originalText=m.tooltext),R&&(qc=B+ja%Ya*pa)),k.y=qc,k.x=Dc,k.rotation=C,k.textAlign=wc,ja+=1);else{C?(Lc=nb,Tc=Jb-4,wc=ea,qc=W?I+8:I+4):R?(Lc=pa,Tc=nb-4,wc=Ga):
(Lc=Jb,Tc=nb-4,wc=Ga,qc=B);for(p=0;p<db;p+=ra)(z=Na[p])&&z.label&&void 0!==J(z.label.text)&&(k=z.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),K||(m=T.getSmartText(k.text,Tc,Lc,Ia),k.text=m.text,m.tooltext&&(k.originalText=m.tooltext),R&&(qc=B+ja%Ya*pa)),C&&(Dc=Qc+Uc),k.y=qc,k.x=Dc,k.rotation=C,k.textAlign=wc,ja+=1);c._labelY=B;c._labelX=Qc;c._yShipment=qc;c._isStagger=R;c._rotation=C;c._textAlign=wc;c._adjustedPx=Uc;c._staggerLines=Ya;c._labelHeight=pa}db=Qb.length;for(p=Rc=Mc=0;p<db;p+=
1)(z=Qb[p].plotObj?Qb[p].plotObj:Qb[p])&&z.label&&void 0!==J(z.label.text)&&(k=z.label,k.style&&k.style!==s&&(s=k.style,T.setStyle(s)),k.verticalAlign===ua?(m=T.getSmartText(k.text,f,bb,!0),Rc=S(Rc,m.height),k.text=m.text,m.tooltext&&(k.originalText=m.tooltext),k.y=ad+T.getOriSize(k.text).height,k.x=Dc):(m=T.getSmartText(k.text,f,$,!0),Mc=S(Mc,m.height),k.text=m.text,m.tooltext&&(k.originalText=m.tooltext),k.y=-($-T.getOriSize("W").height+I+2)));0<D&&(T.setStyle(b.title.style),E=T.getSmartText(b.title.text,
f,D),b.title.text=E.text,E.tooltext&&(b.title.originalText=E.tooltext),b.title.margin=ad+Rc+mc);wb=Rc;0<Jb&&(r.horizontalAxisHeight=I+Jb-ma,wb+=r.horizontalAxisHeight);0<D&&(wb+=F=D+mc);wb=wb||I-ma;d.chart.marginBottom+=wb;0<Mc&&(d.chart.marginTop+=Mc,wb+=Mc);if(b.opposite)for(b.title.margin-=Jb-(E&&E.height||0)+I,wb-=F,d.chart.marginTop+=wb,d.chart.marginBottom-=wb,d.xAxis.opposite=1,db=Tb.length,wa=0;wa<db;wa+=1)(z=Tb[wa])&&z.isGrid&&(k=z.label)&&void 0!==k.text&&(k.textAlign=da,k.y-=qc+I+4);return wb},
Ja=k.configureLegendOptions=function(c,d,e,g,f){g=c.legend;var h=c.chart,r=h.is3D?Ka.chart3D:Ka.chart2D,z=h.useRoundEdges,n=a(d.legendiconscale,1),m=(parseInt(g.itemStyle.fontSize,10)||10)+1,p=this.colorManager,k;if(0>=n||5<n)n=1;g.padding=4;0>=m&&(m=1);k=3*n;m=H(m*n,f-8);0>=m&&(k=m=0);g.symbolWidth=m;g.symbolPadding=k;g.textPadding=4;g.legendHeight=f=m+2*k;g.rowHeight=S(parseInt(g.itemStyle.lineHeight,10)||12,f);e?(g.align=ea,g.verticalAlign="middle",g.layout="vertical"):g.x=(h.marginLeft-h.spacingLeft-
h.marginRight+h.spacingRight)/2;e=b(d.legendbordercolor,p.getColor(r.legendBorderColor));f=a(d.legendborderalpha,100);h=a(d.legendbgalpha,100);g.backgroundColor=Z(b(d.legendbgcolor,p.getColor(r.legendBgColor)),h);g.borderColor=Z(e,f);g.borderWidth=a(d.legendborderthickness,!z||d.legendbordercolor?1:0);g.shadow=Boolean(a(d.legendshadow,1));g.symbol3DLighting=Boolean(a(d.use3dlighting,d.useplotgradientcolor,1));g.shadow&&(g.shadow={enabled:g.shadow,opacity:S(f,h)/100});g.reversed=Boolean(a(d.reverselegend,
0)-a(this.reverseLegend,0));g.style={padding:4};Boolean(a(d.interactivelegend,1))?g.symbolStyle={_cursor:"hand",cursor:"pointer"}:(c.legend.interactiveLegend=!1,g.itemStyle.cursor="default",g.itemHoverStyle={cursor:"inherit"});g.borderRadius=a(d.legendborderradius,z?3:0);g.legendAllowDrag=Boolean(a(d.legendallowdrag,0));g.title.text=C(D(d.legendcaption,l));g.legendScrollBgColor=M(b(d.legendscrollbgcolor,d.scrollcolor,p.getColor("altHGridColor")));g.legendScrollBarColor=b(d.legendscrollbarcolor,e);
g.legendScrollBtnColor=b(d.legendscrollbtncolor,e)},Xb=k.placeLegendBlockRight=function(b,c,d,e,f){this.configureLegendOptions(b,c.chart,!0,f,d);var g=this.snapLiterals||(this.snapLiterals={}),h=0,r=b.series,z,n=b[w],m=this.smartLabel||n.smartLabel,p=b.chart.spacingRight,k=b.legend,E,s=k.textPadding,V=k.title.padding,U=k.symbolWidth+2*k.symbolPadding,t=2*e,v=0,P=a(c.chart.legendpadding,7);c=P+k.borderWidth/2+a(c.chart.canvasborderthickness,1);var ha=2*k.padding,C=ha,pa=!1,D=[];d-=ha+P;f&&(r=r&&r[0]&&
r[0].data);if(typeof r===hb||typeof r.length===hb)return 0;f=r.length;for(h=0;h<f;h+=1)(z=r[h])&&!1!==z.showInLegend&&(z.__i=h,D.push(z));D.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=D.length;E=d-U-P-s;0>E&&(E=0);m.setStyle(k.itemStyle);k.reversed&&D.reverse();for(h=0;h<f;h+=1)z=D[h],pa=!0,z._legendX=0,z._legendY=C,0===E?(C+=z._legendH=U,z.name=l):(r=m.getSmartText(z.name,E,t),z.name=r.text,r.tooltext&&(z.originalText=r.tooltext),r.height<U&&(z._legendTestY=(U-r.height)/
2),C+=z._legendH=S(r.height,U),v=S(r.width,v));if(pa)return k.itemWidth=v+U+P+s,k.width=k.itemWidth+ha,k.title.text!==l&&(m.setStyle(k.title.style),r=m.getSmartText(k.title.text,d,t),k.title.text=r.text,r.tooltext&&(k.title.originalText=r.tooltext),h=r.width+ha,k.width<h&&(k.initialItemX=(h-k.width)/2,k.width=h),k.initialItemY=r.height+V,C+=k.initialItemY),k.height=k.totalHeight=C,k.height>e&&(k.height=e,k.scroll.enabled=!0,k.scroll.flatScrollBars=n.flatScrollBars,k.scroll.scrollBar3DLighting=n.scrollBar3DLighting,
k.width+=(k.scroll.scrollBarWidth=10)+(k.scroll.scrollBarPadding=2)),g.legendstartx=n.width-p-k.width,g.legendwidth=k.width,g.legendendx=g.legendstartx+g.legendwidth,g.legendheight=k.height,c=H(k.width+c,d),b.chart.marginRight+=c+P,c;k.enabled=!1;return 0},ma=k.placeLegendBlockBottom=function(b,c,d,e,f){this.configureLegendOptions(b,c.chart,!1,f,d);var g=this.snapLiterals||(this.snapLiterals={}),h=0,r=b.series,z=b[w],k=z.smartLabel||this.smartLabel,n=b.chart,m=n.spacingBottom,p=n.spacingLeft,n=n.spacingRight,
E=b.legend,s,V,U=E.textPadding,t=E.title.padding,v,P=E.symbolPadding,ha=E.legendHeight,C=c.chart;v=0;var pa=2*e,D=E.rowHeight,ra=0.05*D,B=[];V=a(C.minimisewrappinginlegend,0);var C=a(parseInt(C.legendnumcolumns,10),0),ka=0,ja=0,J=0,Ia=h=0,R=2*E.padding;c=a(c.chart.legendpadding,7)+E.borderWidth/2+1;var F=R,T=!1,K=[],I=!1,M=0,Ca=0;0>C&&(C=0);d-=R;k.setStyle(E.itemStyle);h=k.getOriSize(lb).height;c=H(c,e-h-8);e-=c;f&&(r=r&&r[0]&&r[0].data);if(typeof r===hb||typeof r.length===hb)return 0;f=r.length;
for(h=0;h<f;h+=1)(s=r[h])&&!1!==s.showInLegend&&(s.__i=h,K.push(s));K.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});f=K.length;k.setStyle(E.itemStyle);for(h=0;h<f;h+=1)T=!0,s=k.getOriSize(K[h].name),ka=S(ka,s.width),ja+=s.width,J+=1;h=ja/J;r=ha+ra+U+P+R;ja+=r*J;if(T){h+=r;ka+=r;0<C&&J<C&&(C=J);ja<=d&&(0>=C||C===J)?(C=J,Ia=h=ja/J,I=!0):0<C&&(Ia=d/C)>h?Ia>ka&&(Ia=ka):d>ka&&(V||1.5*h>ka)?(C=ya(d/ka),J<C&&(C=J),Ia=ka):d>=2*h?(C=ya(d/h),J<C&&(C=J),Ia=ya(d/C),Ia>ka&&(Ia=ka)):(C=1,
Ia=d);E.itemWidth=Ia;V=Ia-r;0>V&&(P=V=U=0);E.symbolPadding=P;E.textPadding=U;E.width=Ia*C-ra;E.title.text!==l&&(k.setStyle(E.title.style),s=k.getSmartText(E.title.text,d,pa),E.title.text=s.text,s.tooltext&&(E.title.originalText=s.tooltext),v=s.width+R,E.width<v&&(E.initialItemX=(v-E.width)/2,E.width=v),E.initialItemY=v=s.height+t);k.setStyle(E.itemStyle);E.reversed&&K.reverse();for(h=0;h<f;h+=1){d=K[h];0===V&&(B[M]=!0,d.name=l,t=1,U=parseInt(M/C,10),P=M%C,d._legendX=P*Ia,d._legendY=U*D+R,d._legendH=
t*D);if(I)s=k.getOriSize(d.name),s.height<D&&(d._legendTestY=(D-s.height)/2),d._legendX=Ca,d._legendY=R,d._legendH=D,Ca+=s.width+r;else{s=k.getSmartText(d.name,V,pa);d.name=s.text;for(s.tooltext&&(d.originalText=s.tooltext);!0===B[M];)M+=1;U=s.height/D;P=M;for(t=0;t<U;t+=1,P+=C)B[P]=!0;s.height<D&&(d._legendTestY=(D-s.height)/2);U=parseInt(M/C,10);P=M%C;d._legendX=P*Ia;d._legendY=U*D+R;d._legendH=t*D}M+=1}k=I?1:sa(B.length/C);E.height=E.totalHeight=F+(k*D+v);E.rowHeight=D;E.legendNumColumns=C;E.height>
e&&(E.height=e,E.scroll.enabled=!0,E.scroll.flatScrollBars=z.flatScrollBars,E.scroll.scrollBar3DLighting=z.scrollBar3DLighting,E.width+=(E.scroll.scrollBarWidth=10)+(E.scroll.scrollBarPadding=2));g.legendstartx=p+0.5*(z.width-p-n-E.width)+(E.x||0);g.legendwidth=E.width;g.legendendx=g.legendstartx+g.legendwidth;g.legendstarty=z.height-m-E.height;g.legendheight=E.height;g.legendendy=g.legendstarty+g.legendheight;c+=E.height;b.chart.marginBottom+=c;return c}E.enabled=!1;return 0},bb=function(a,b){return a.value-
b.value},ic=function(a,b,c){var d=b._originalText;a=a[w].smartLabel;b.text=b.rotation?a.getSmartText(d,c,b._actualWidth).text:a.getSmartText(d,b._actualWidth,c).text;b.centerYAxisName=!0},Eb=k.adjustVerticalAxisTitle=function(a,b,c){if(b&&b.text){var d=b.text,f=a[w].smartLabel,e=2*H(a.chart.marginTop,a.chart.marginBottom)+c,g=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>e&&(b.y=g/2-(c/
2+a.chart.marginTop),b.centerYAxisName=!1):d.height>e&&(b.y=(g/2-(c/2+a.chart.marginTop))/2,b.centerYAxisName=!1)}},Bb=k.adjustVerticalCanvasMargin=function(b,c,d,e){var f=c.chart,g=c=0,h=0,r=a(f.canvastopmargin,0),f=a(f.canvasbottommargin,0),l=r/(r+f),z=b.chart.marginTop,k=b.chart.marginBottom;f>k&&(c+=f-k);r>z&&(c+=r-z);c>d?r>z&&f>k?(g=d*l,h=d*(1-l)):r>z?g=d:h=d:0<c&&(f>k&&(h=f-k),r>z&&(g=r-z));g&&(b.chart.marginTop+=g);h&&(b.chart.marginBottom+=h,e&&e.title&&(e.title.margin+=h));return g+h},vb=
k.adjustHorizontalCanvasMargin=function(b,c,d,e,f){var g=c.chart;c=a(g.canvasleftmargin,0);var g=a(g.canvasrightmargin,0),h=c/(c+g),r=0,l=b.chart.marginLeft,z=b.chart.marginRight,k=0,n=0;c>l&&(r+=c-l);g>z&&(r+=g-z);r>d?c>l&&g>z?(k=d*h,n=d*(1-h)):g>z?n=d:k=d:0<r&&(c>l&&(k=c-l),g>z&&(n=g-z));k&&(b.chart.marginLeft+=k,e&&e.title&&(e.title.margin+=k));n&&(b.chart.marginRight+=n,f&&f.title&&(f.title.margin+=n));return n+k},Gb=function(a,b){return a-b},ib=k.getDataParser={column:function(c,d,e){var h=c[w],
f=d.borderWidth;return function(r,l,z){var k=d.plotgradientcolor,n=d.is3d,m=d.isRoundEdges,p=d.plotBorderColor,E=b(r.color,d.color),s=b(r.ratio,d.ratio),w=W(d.plotBorderAlpha),V=a(r.dashed,d.dashed),U=b(r.dashlen,d.dashLen),v=b(r.dashgap,d.dashGap),P=d.use3DLighting,C=W(b(r.alpha,d.alpha)).toString(),ha={opacity:C/100},D=d.isBar,pa=d.fillAangle,ra=0>z?D?180-pa:360-pa:pa,pa=t(E+za+k,C,s,ra,m,p,H(C,w).toString(),D,n),B=V?g(U,v,f):"none";l=e.getPointStub(r,z,h.oriCatTmp[l],c,d,d.showValues,d.yAxis);
r=e.pointHoverOptions(r,d,{plotType:"column",is3d:n,isBar:D,use3DLighting:P,isRoundEdged:m,color:E,gradientColor:k,alpha:C,ratio:s,angle:ra,borderWidth:f,borderColor:p,borderAlpha:w,borderDashed:V,borderDashGap:v,borderDashLen:U,shadow:ha});l.y=z;l.shadow=ha;l.color=pa[0];l.borderColor=pa[1];l.borderWidth=f;l.use3DLighting=P;l.dashStyle=B;l.tooltipConstraint=e.tooltipConstraint;l.hoverEffects=r.enabled&&r.options;l.rolloverProperties=r.enabled&&r.rolloverOptions;return l}},line:function(c,d,e){var h=
c[w];return function(f,r,l){var z=a(f.alpha,d.lineAlpha),k={opacity:z/100},n=a(f.anchorsides,d.anchorSides,0),m=a(f.anchorborderthickness,d.anchorBorderThickness,1),p=M(b(f.anchorbordercolor,d.anchorBorderColor)),E=M(b(f.anchorbgcolor,d.anchorBgColor)),s=a(f.anchorstartangle,d.anchorStartAngle,90),w=b(f.anchoralpha,d.anchorAlpha),V=b(f.anchorbgalpha,w),U=a(f.anchorradius,d.anchorRadius),t=Boolean(a(f.anchorshadow,d.anchorShadow,0));r=e.getPointStub(f,l,h.oriCatTmp[r],c,d,d.showValues,d.yAxis);var v=
b(f.anchorimageurl,d.imageUrl),P=b(f.anchorimagescale,d.imageScale),C=b(f.anchorimagealpha,d.imageAlpha);r.y=l;r.shadow=k;r.anchorShadow=d.anchorShadow;r.dashStyle=a(f.dashed,d.lineDashed)?g(d.lineDashLen,d.lineDashGap,d.lineThickness):null;r.color={FCcolor:{color:M(b(f.color,d.lineColor)),alpha:z}};r.valuePosition=b(f.valueposition,d.valuePosition);l=e.pointHoverOptions(f,d,{plotType:"anchor",anchorBgColor:E,anchorAlpha:w,anchorBgAlpha:V,anchorAngle:s,anchorBorderThickness:m,anchorBorderColor:p,
anchorBorderAlpha:w,anchorSides:n,anchorRadius:U,imageUrl:v,imageScale:P,imageAlpha:C,shadow:k});r.marker={enabled:void 0===d.drawAnchors?0!==z:!!d.drawAnchors,shadow:t&&{opacity:w/100},fillColor:{FCcolor:{color:M(b(f.anchorbgcolor,d.anchorBgColor)),alpha:(b(f.anchorbgalpha,d.anchorBgAlpha)*w/100).toString()}},lineColor:{FCcolor:{color:M(b(f.anchorbordercolor,d.anchorBorderColor)),alpha:w}},imageUrl:v,imageScale:P,imageAlpha:C,lineWidth:a(f.anchorborderthickness,d.anchorBorderThickness),radius:a(f.anchorradius,
d.anchorRadius),symbol:ba(a(f.anchorsides,d.anchorSides)),startAngle:b(f.anchorstartangle,d.anchorAngle)};r.hoverEffects=l.enabled&&l.options;r.rolloverProperties=l.enabled&&l.rolloverOptions;return r}},area:function(c,d,e){var g=c[w];return function(f,h,r){var l=b(f.alpha,d.fillAlpha),z={opacity:S(l,d.lineAlpha)/100,inverted:!0},k=a(f.anchorsides,d.anchorSides,0),n=a(f.anchorborderthickness,d.anchorBorderThickness,1),m=M(b(f.anchorbordercolor,d.anchorBorderColor)),p=M(b(f.anchorbgcolor,d.anchorBgColor)),
E=a(f.anchorstartangle,d.anchorStartAngle,90),s=b(f.anchoralpha,d.anchorAlpha),w=b(f.anchorbgalpha,s),V=a(f.anchorradius,d.anchorRadius),U=Boolean(a(f.anchorshadow,d.anchorShadow,0));h=e.getPointStub(f,r,g.oriCatTmp[h],c,d,d.showValues,d.yAxis);var t=b(f.anchorimageurl,d.imageUrl),v=b(f.anchorimagescale,d.imageScale),P=b(f.anchorimagealpha,d.imageAlpha);h.y=r;h.shadow=z;h.anchorShadow=d.anchorShadow;h.color={FCcolor:{color:M(b(f.color,d.fillColor)),alpha:l}};h.valuePosition=b(f.valueposition,d.valuePosition);
r=e.pointHoverOptions(f,d,{plotType:"anchor",anchorBgColor:p,anchorAlpha:s,anchorBgAlpha:w,anchorAngle:E,anchorBorderThickness:n,anchorBorderColor:m,anchorBorderAlpha:s,anchorSides:k,anchorRadius:V,imageUrl:t,imageScale:v,imageAlpha:P,shadow:z});h.marker={enabled:d.drawAnchors,shadow:U&&{opacity:s/100},fillColor:{FCcolor:{color:M(b(f.anchorbgcolor,d.anchorBgColor)),alpha:(b(f.anchorbgalpha,d.anchorBgAlpha)*s/100).toString()}},lineColor:{FCcolor:{color:M(b(f.anchorbordercolor,d.anchorBorderColor)),
alpha:s}},imageUrl:t,imageScale:v,imageAlpha:P,lineWidth:a(f.anchorborderthickness,d.anchorBorderThickness),radius:V,symbol:ba(a(f.anchorsides,d.anchorSides)),startAngle:b(f.anchorstartangle,d.anchorAngle)};h.hoverEffects=r.enabled&&r.options;h.rolloverProperties=r.enabled&&r.rolloverOptions;h.events={click:d.getLink};return h}}};d.core.options.resizeTrackingInterval=300;d.core.options.preventTrackResize=!1;k.createChart=function(a,b,c,e,f,g,h){var r=a.jsVars,l=r.msgStore,z,n,m=aa[c||(c=a.chartType())],
p,E=r.hasNativeMessage,s;s=function(f){var g={renderer:"javascript"},l=r.fcObj,z=l.width,n=l.height,s=m&&m.eiMethods,O=r.overlayButton,w;b.jsVars=a.jsVars;r.container=b;r.hcObj=f;r.type=c;r.width=b.offsetWidth;r.height=b.offsetHeight;r.instanceAPI=p;if(f.hasRendered){d.extend(b,ob);if(s&&"string"!==typeof s)for(w in s)b[w]=s[w];r.overlayButtonActive&&O&&(O.innerHTML="",O.appendChild(v.createTextNode(r.overlayButtonMessage)),f.container.appendChild(O))}(/\%/g.test(z)||/\%/g.test(n))&&b&&b.parentNode&&
!d.core.options.preventTrackResize&&T(l,b);e&&(e({success:f.hasRendered,ref:b,id:a.id}),f.hasRendered&&(k.raiseEvent("loaded",{type:c,renderer:"javascript"},a,[a.id]),E||(l.__state.firstRenderNotified=!0,setTimeout(function(){k.raiseEvent("rendered",{renderer:"javascript"},l,[l.id])},0))));f.hasRendered&&r.previousDrawCount<r.drawCount&&(g.width=r.width,g.height=r.height,g.drawCount=r.drawCount,g.displayingMessage=E,g.renderer=l.options.renderer,k.raiseEvent("drawcomplete",g,l,[l.id]),E||h||setTimeout(function(){l.__state.firstRenderNotified||
k.raiseEvent("rendered",{renderer:"javascript"},l,[l.id]);d.raiseEvent("renderComplete",g,l)},0))};r.instanceAPI&&r.instanceAPI.dispose&&r.instanceAPI.dispose();p=m?new aa(c):new aa("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=r.hasNativeMessage=!0):!m||!m.init||m&&"stub"===m.name?(f=new ha(b,l.ChartNotSupported,a),E=r.hasNativeMessage=!0):r.message?(f=new ha(b,r.message,a),E=r.hasNativeMessage=
!0):r.loadError?(f=new ha(b,l.LoadDataErrorText,a),E=r.hasNativeMessage=!0):r.stallLoad?(f=new ha(b,l.XMLLoadingText,a),E=r.hasNativeMessage=!0):(d.raiseEvent("internal.drawStart",{chartType:c,logicName:p.name,logicBase:p.base&&p.base.name,defaultSeriesType:p.defaultSeriesType},a),z=a.jsVars&&a.jsVars.themeObject&&a.jsVars.themeObject.getThemedJSONData()||a.getChartData(d.dataFormats.JSON,!0),n=z.data,z.error instanceof Error?(f=new ha(b,l.InvalidXMLText,a),E=r.hasNativeMessage=!0,a.__state.dataReady=
!1,h||d.raiseEvent("dataInvalid",{error:z.error},r.fcObj,void 0,function(){k.raiseEvent("dataxmlinvalid",{},a,[a.id])})):(h||k.raiseEvent("dataloaded",{},a,[a.id]),f=p.init(b,n,a,s),p.inited=!0,r.previousDrawCount=r.drawCount,r.drawCount+=1,0===f.series.length?(f=new ha(b,l.ChartNoDataText,a),E=r.hasNativeMessage=!0,a.__state.dataReady=!1,h||k.raiseEvent("nodatatodisplay",{},a,[a.id])):(a.__state.dataReady=!0,E=r.hasNativeMessage=!1,delete r.message)));f||(f=new ha(b,"Error rendering chart {0x01}",
a),E=r.hasNativeMessage=!0);E&&!p.inited&&p.init(b,n,a,s);f.chart=f.chart||{};f.chart.renderTo=b;f.credits=f.credits||{};f.credits.enabled=m&&!0===m.creditLabel?!0:!1;!1===g&&(f.chart.animation=!1,(f.plotOptions||(f.plotOptions={}))&&(f.plotOptions.series||(f.plotOptions.series={})),f.plotOptions.series.animation=!1);b.style&&(f.chart.containerBackgroundColor=k.getContainerBackgroundColor(a));return p.draw(f,s)};aa("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 aa("renderer."+this.rendererId));this.updateDefaultAnnotations();return c.init(this,a,b)},init:function(b,c,d){var g=this.chartInstance||d,f=g.jsVars;d=f._reflowData||(f._reflowData={});var h=f._reflowClean,r,l;this.dataObj=c=e({},c);l=c.chart=c.chart||c.graph||c.map||{};delete c.graph;delete c.map;d&&!this.stateless&&(r=d.hcJSON,delete d.hcJSON,e(this,d,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),
d.hcJSON=r);this.containerElement=b;this.config={};this.smartLabel=f.smartLabel;this.smartLabel.useEllipsesOnOverflow(a(l.useellipseswhenoverflow,l.useellipsewhenoverflow,1));this.colorManager=new k.colorManager(c,this);this.linkClickFN=U(c,g);this.numberFormatter=new V(c.chart,this);if(!this.standaloneInit)return new k.createDialog(b,f.msgStore.ChartNotSupported,g);b=this.chart(b.offsetWidth||parseFloat(b.style.width),b.offsetHeight||parseFloat(b.style.height),g);d&&!this.stateless&&(d.hcJSON&&e(b,
d.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),h&&this.cleanedData&&(this.cleanedData(this,h),this.cleanedData(d,h)));return b},postSpaceManager:function(){var b=this.hcJSON,c=b._FCconf,d=b.chart,e=d.marginLeft,f=d.spacingLeft,g=d.spacingRight,h=c.width-e-d.marginRight,r=b.title,b=b.subtitle,l=c.width,z=r.align,c=r.x,k=r.horizontalPadding,n=r.alignWithCanvas,m=(xa(e)||0)+a(h,l)/2,e=this.snapLiterals||(this.snapLiterals={}),h=r._captionWidth,p=b._subCaptionWidth,E=r._lineHeight,
s=b._lineHeight,w=r.text;if(void 0===c){switch(z){case ea:c=n?l-d.marginRight-k:l-k;break;case da:c=n?d.marginLeft+k:k;break;default:c=n?m:f+0.5*(l-f-g)||l/2}r.align===da?(g=f=0,r.align="start"):r.align===ea?(f=h,g=p,r.align="end"):(f=h/2,g=p/2,r.align="middle");r.x=c;r.y=r.y||d.spacingTop||0;b.y=w?r.y+E+2:r.y||d.spacingTop||0;e.captionstartx=c-f-2;e.captionwidth=h+4;e.captionendx=e.captionstartx+e.captionwidth;e.captionstarty=r.y||0;e.captionheight=E+2;e.captionendy=e.captionstarty+e.captionheight;
e.subcaptionstartx=c-g-2;e.subcaptionwidth=p+4;e.subcaptionendx=e.subcaptionstartx+e.subcaptionwidth;e.subcaptionstarty=b.y||0;e.subcaptionheight=s+2;e.subcaptionendy=e.subcaptionstarty+e.subcaptionheight}},chart:function(c,u){var A=this.name,G=this.dataObj,f=G.chart,z=this.colorManager,k,n,m,s,V,U,t,v=this.defaultSeriesType,P,ha,ra,H,ka,ja,R,K,T,F,I,Ca,Q,ma,Ja,ob,ab,bb,W,X,Fb,mb,Eb,Bb,Xb,ic,Y,ca,vb,ga,ba,Gb,aa,la,ib,sa,Aa,ya,xa,Nb,pb,cb,Yb,ub,hb,zb,lb,rb,Wa,Rb,Zb,Ea,Cb,ta,$b,Wb,jb,Fa,Hb,Ab,rc,sc,
vc,fb,kb,Ob,Qa,tb,fc,Pb,Sb,gc,Lb,pc,Vb,wa,Tb,sb,Na,Qb,Db,Xa,yb,Ub,hc,nb,lc,cc,fd,db,mc,Jb,Ya,wb,Yc,dc,ec,Zc,$c;k=Ta(G,c,u,this);T=k.chart;K=k.xAxis;P=k[w];this.snapLiterals||(this.snapLiterals={});I=this.snapLiterals;I.chartstartx=0;I.chartstarty=0;I.chartwidth=c;I.chartheight=u;I.chartendx=c;I.chartendy=u;I.chartcenterx=c/2;I.chartcentery=u/2;I.chartbottommargin=T.spacingBottom;I.chartleftmargin=T.spacingLeft;I.chartrightmargin=T.spacingRight;I.charttopmargin=T.spacingTop;this.updateSnapPoints&&
this.updateSnapPoints();this.postHCJSONCreation&&this.postHCJSONCreation.call(this,k);d.raiseEvent("internal.postlogic",this,this.chartInstance);k.labels.smartLabel=U=P.smartLabel=this.smartLabel;P.width=c;P.height=u;ra=k.plotOptions;P.isDual=this.isDual;P.numberFormatter=this.numberFormatter;P.axisGridManager=new E(v,f);P.tooltext=f.plottooltext;P.trendLineToolText=f.trendlinetooltext;T.is3D=n=P.is3d=/3d$/.test(v);T.isBar=ha=P.isBar=this.isBar;t=/^pie/.test(v);R=1==f.useroundedges;ja=n?Ka.chart3D:
Ka.chart2D;T.events.click=k.plotOptions.series.point.events.click=this.linkClickFN;T.defaultSeriesType=v;ob=0<f.palette&&6>f.palette?f.palette:a(this.paletteIndex,1);ob-=1;T.paletteIndex=ob;T.usePerPointLabelColor=f.colorlabelsfromplot==La;T.syncLabelWithAnchor=a(f.synclabelwithanchoronhover,1);T.useRoundEdges=R&&!n&&!this.distributedColumns&&"pie"!==this.defaultSeriesType;void 0!==b(f.clickurl)&&(T.link=f.clickurl,T.style.cursor="pointer",k.plotOptions.series.point.events.click=function(){T.events.click.call({link:f.clickurl})});
ab=b(f.basefont,"Verdana,sans");bb=N(f.basefontsize,10);W=b(f.basefontcolor,z.getColor(ja.baseFontColor));X=b(f.outcnvbasefont,ab);Fb=N(f.outcnvbasefontsize,bb);mb=Fb+Pa;Eb=b(f.outcnvbasefontcolor,W).replace(/^#?([a-f0-9]+)/ig,"#$1");ic=bb;bb+=Pa;W=W.replace(/^#?([a-f0-9]+)/ig,"#$1");P.trendStyle=P.outCanvasStyle={fontFamily:X,color:Eb,fontSize:mb};Bb=h(P.trendStyle);P.inCanvasStyle={fontFamily:ab,fontSize:bb,color:W};Xb=h(P.inCanvasStyle);P.divlineStyle={fontFamily:ab,fontSize:bb,color:W,lineHeight:Xb};
K.labels.style={fontFamily:X,fontSize:mb,lineHeight:Bb,color:Eb};K.steppedLabels.style={fontFamily:X,fontSize:mb,lineHeight:Bb,color:Eb,visibility:"hidden"};k.yAxis[0].labels.style={fontFamily:X,fontSize:mb,lineHeight:Bb,color:Eb};k.yAxis[1].labels.style={fontFamily:X,fontSize:mb,lineHeight:Bb,color:Eb};ca=b(f.legenditemfont,X);vb=N(f.legenditemfontsize,Fb);ga=b(f.legenditemfontcolor,Eb).replace(/^#?([a-f0-9]+)/ig,"#$1");ba=Ia[a(f.legenditemfontbold,0)]||"";Y=N(f.legendcaptionfontsize,Fb)+Pa;vb+=
Pa;k.legend.itemStyle={fontFamily:ca,fontSize:vb,color:ga,fontWeight:ba};h(k.legend.itemStyle);k.legend.itemHiddenStyle={fontFamily:ca,fontSize:vb,color:b(f.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/ig,"#$1"),fontWeight:ba};h(k.legend.itemHiddenStyle);k.legend.itemHoverStyle={color:b(f.legenditemhoverfontcolor,ga).replace(/^#?([a-f0-9]+)/ig,"#$1")};k.legend.title.style={fontFamily:b(f.legendcaptionfont,ca),fontSize:Y,color:b(f.legendcaptionfontcolor,Eb).replace(/^#?([a-f0-9]+)/ig,"#$1"),
fontWeight:Ia[a(f.legendcaptionfontbold,1)]||""};h(k.legend.title.style);k.legend.title.align=xb[f.legendcaptionalignment&&f.legendcaptionalignment.toLowerCase()||Ga]||xb.center;F=(F=D(f.valuebordercolor,l))?Z(F,a(f.valueborderalpha,f.valuealpha,100)):l;k.plotOptions.series.dataLabels.style={fontFamily:b(f.valuefont,ab),fontSize:b(f.valuefontsize,parseInt(bb,10))+Pa,lineHeight:Xb,color:Z(b(f.valuefontcolor,W),a(f.valuefontalpha,f.valuealpha,100)),fontWeight:a(f.valuefontbold)?"bold":"normal",fontStyle:a(f.valuefontitalic)?
"italic":"normal",border:F||f.valuebgcolor?a(f.valueborderthickness,1)+"px solid":"",borderColor:F,borderThickness:a(f.valueborderthickness,1),borderPadding:a(f.valueborderpadding,2),borderRadius:a(f.valueborderradius,0),backgroundColor:f.valuebgcolor?Z(f.valuebgcolor,a(f.valuebgalpha,f.valuealpha,100)):l,borderDash:a(f.valueborderdashed,0)?g(a(f.valueborderdashlen,4),a(f.valueborderdashgap,2),a(f.valueborderthickness,1)):"none"};h(k.plotOptions.series.dataLabels.style);k.plotOptions.series.dataLabels.color=
k.plotOptions.series.dataLabels.style.color;k.tooltip.style={fontFamily:ab,fontSize:bb,lineHeight:Xb,color:W};k.title.style={fontFamily:b(f.captionfont,X),color:b(f.captionfontcolor,Eb).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:a(f.captionfontsize,Fb+3)+Pa,fontWeight:0===a(f.captionfontbold)?"normal":"bold"};k.title.align=b(f.captionalignment,Ga);k.title.isOnTop=a(f.captionontop,1);k.title.alignWithCanvas=a(f.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1);k.title.horizontalPadding=a(f.captionhorizontalpadding,
k.title.alignWithCanvas?0:15);h(k.title.style);k.subtitle.style={fontFamily:b(f.subcaptionfont,f.captionfont,X),color:b(f.subcaptionfontcolor,f.captionfontcolor,Eb).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:a(f.subcaptionfontsize,a(S(a(f.captionfontsize)-3,-1),Fb)+a(this.subTitleFontSizeExtender,1))+Pa,fontWeight:0===a(f.subcaptionfontbold,this.subTitleFontWeight,f.captionfontbold)?"normal":"bold"};k.subtitle.align=k.title.align;k.subtitle.isOnTop=k.title.isOnTop;k.subtitle.alignWithCanvas=k.title.alignWithCanvas;
k.subtitle.horizontalPadding=k.title.horizontalPadding;h(k.subtitle.style);F=(F=D(f.xaxisnamebordercolor,l))?Z(F,a(f.xaxisnameborderalpha,f.xaxisnamealpha,100)):l;K.title.style={fontFamily:b(f.xaxisnamefont,X),fontSize:b(f.xaxisnamefontsize,parseInt(mb,10))+Pa,color:Z(b(f.xaxisnamefontcolor,Eb),a(f.xaxisnamefontalpha,f.xaxisnamealpha,100)),fontWeight:a(f.xaxisnamefontbold,1)?"bold":"normal",fontStyle:a(f.xaxisnamefontitalic)?"italic":"normal",border:F||f.xaxisnamebgcolor?a(f.xaxisnameborderthickness,
1)+"px solid":void 0,borderColor:F,borderThickness:a(f.xaxisnameborderthickness,1),borderPadding:a(f.xaxisnameborderpadding,2),borderRadius:a(f.xaxisnameborderradius,0),backgroundColor:f.xaxisnamebgcolor?Z(f.xaxisnamebgcolor,a(f.xaxisnamebgalpha,f.xaxisnamealpha,100)):l,borderDash:a(f.xaxisnameborderdashed,0)?g(a(f.xaxisnameborderdashlen,4),a(f.xaxisnameborderdashgap,2),a(f.xaxisnameborderthickness,1)):"none"};h(K.title.style);F=(F=b(f.pyaxisnamebordercolor,f.yaxisnamebordercolor,l))?Z(F,a(f.pyaxisnameborderalpha,
f.yaxisnameborderalpha,f.pyaxisnamealpha,f.yaxisnamealpha,100)):l;k.yAxis[0].title.style={fontFamily:b(f.pyaxisnamefont,f.yaxisnamefont,X),fontSize:b(f.pyaxisnamefontsize,f.yaxisnamefontsize,parseInt(mb,10))+Pa,color:Z(b(f.pyaxisnamefontcolor,f.yaxisnamefontcolor,Eb),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:F||f.pyaxisnamebgcolor||f.yaxisnamebgcolor?a(f.pyaxisnameborderthickness,f.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:F,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?Z(b(f.pyaxisnamebgcolor,f.yaxisnamebgcolor),a(f.pyaxisnamebgalpha,f.yaxisnamebgalpha,f.pyaxisnamealpha,
f.yaxisnamealpha,100)):l,borderDash:a(f.pyaxisnameborderdashed,f.yaxisnameborderdashed,0)?g(a(f.pyaxisnameborderdashlen,f.yaxisnameborderdashlen,4),a(f.pyaxisnameborderdashgap,f.yaxisnameborderdashgap,2),a(f.pyaxisnameborderthickness,f.yaxisnameborderthickness,1)):"none"};h(k.yAxis[0].title.style);k.yAxis[1].title.style={fontFamily:X,color:Eb,fontSize:mb,lineHeight:void 0,fontWeight:"bold"};F=(F=b(f.syaxisnamebordercolor,f.yaxisnamebordercolor,l))?Z(F,a(f.syaxisnameborderalpha,f.yaxisnameborderalpha,
f.syaxisnamealpha,f.yaxisnamealpha,100)):l;k.yAxis[1].title.style={fontFamily:b(f.syaxisnamefont,f.yaxisnamefont,X),fontSize:b(f.syaxisnamefontsize,f.yaxisnamefontsize,parseInt(mb,10))+Pa,color:Z(b(f.syaxisnamefontcolor,f.yaxisnamefontcolor,Eb),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:F||f.syaxisnamebgcolor||
f.yaxisnamebgcolor?a(f.syaxisnameborderthickness,f.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:F,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?Z(b(f.syaxisnamebgcolor,f.yaxisnamebgcolor),a(f.syaxisnamebgalpha,f.yaxisnamebgalpha,f.syaxisnamealpha,f.yaxisnamealpha,100)):
l,borderDash:a(f.syaxisnameborderdashed,f.yaxisnameborderdashed,0)?g(a(f.syaxisnameborderdashlen,f.yaxisnameborderdashlen,4),a(f.syaxisnameborderdashgap,f.yaxisnameborderdashgap,2),a(f.syaxisnameborderthickness,f.yaxisnameborderthickness,1)):"none"};h(k.yAxis[1].title.style);T.overlapColumns=a(f[ha&&"overlapbars"||"overlapcolumns"],n?0:1);k.orphanStyles={defaultStyle:{style:e({},P.inCanvasStyle)},connectorlabels:{style:e({},k.plotOptions.series.dataLabels)},vyaxisname:{style:e({},k.yAxis[0].title.style)}};
k.plotOptions.series.dataLabels.tlLabelStyle={fontFamily:J(f.tlfont,ab),color:M(J(f.tlfontcolor,W)),fontSize:N(f.tlfontsize,ic)+"px"};h(k.plotOptions.series.dataLabels.tlLabelStyle);k.plotOptions.series.dataLabels.trLabelStyle={fontFamily:J(f.trfont,ab),color:M(J(f.trfontcolor,W)),fontSize:N(f.trfontsize,ic)+"px"};h(k.plotOptions.series.dataLabels.trLabelStyle);k.plotOptions.series.dataLabels.blLabelStyle={fontFamily:J(f.blfont,ab),color:M(J(f.blfontcolor,W)),fontSize:N(f.blfontsize,ic)+"px"};h(k.plotOptions.series.dataLabels.blLabelStyle);
k.plotOptions.series.dataLabels.brLabelStyle={fontFamily:J(f.brfont,ab),color:M(J(f.brfontcolor,W)),fontSize:N(f.brfontsize,ic)+"px"};h(k.plotOptions.series.dataLabels.brLabelStyle);this.parseStyles(k);delete k.xAxis.labels.style.backgroundColor;delete k.xAxis.labels.style.borderColor;delete k.yAxis[0].labels.style.backgroundColor;delete k.yAxis[0].labels.style.borderColor;delete k.yAxis[1].labels.style.backgroundColor;delete k.yAxis[1].labels.style.borderColor;P.showTooltip=a(f.showtooltip,this.showtooltip,
1);P.tooltipSepChar=b(f.tooltipsepchar,this.tooltipsepchar,qb);P.showValues=a(f.showvalues,this.showValues,1);P.seriesNameInToolTip=a(f.seriesnameintooltip,1);P.showVLines=a(f.showvlines,1);P.showVLinesOnTop=a(f.showvlinesontop,0);P.showVLineLabels=a(f.showvlinelabels,this.showVLineLabels,1);P.showVLineLabelBorder=a(f.showvlinelabelborder,1);P.rotateVLineLabels=a(f.rotatevlinelabels,0);P.vLineColor=b(f.vlinecolor,"333333");P.vLineLabelColor=b(f.vlinelabelcolor);P.vLineThickness=b(f.vlinethickness,
1);P.vLineAlpha=a(f.vlinealpha,80);P.vLineLabelBgColor=b(f.vlinelabelbgcolor,"ffffff");P.vLineLabelBgAlpha=a(f.vlinelabelbgalpha,n?50:100);P.trendlineColor=b(f.trendlinecolor,"333333");P.trendlineThickness=b(f.trendlinethickness,1);P.trendlineAlpha=a(f.trendlinealpha);P.showTrendlinesOnTop=b(f.showtrendlinesontop,0);P.trendlineValuesOnOpp=b(f.trendlinevaluesonopp,f.trendlinevaluesonright,0);P.trendlinesAreDashed=a(f.trendlinesaredashed,0);P.trendlinesDashLen=a(f.trendlinedashlen,5);P.trendlinesDashGap=
a(f.trendlinedashgap,2);P.showTrendlines=a(f.showtrendlines,1);P.showTrendlineLabels=a(f.showtrendlinelabels,this.showTrendlineLabels,1);P.flatScrollBars=a(f.flatscrollbars,0);P.scrollBar3DLighting=a(f.scrollbar3dlighting,1);T.anchorTrackingRadius=a(f.anchortrackingradius,pa?$:p);k.plotOptions.series.connectNullData=a(f.connectnulldata,0);T.backgroundColor={FCcolor:{color:b(f.bgcolor,z.getColor(ja.bgColor)),alpha:b(f.bgalpha,z.getColor(ja.bgAlpha)),angle:b(f.bgangle,z.getColor(ja.bgAngle)),ratio:b(f.bgratio,
z.getColor(ja.bgRatio))}};T.rotateValues=a(f.rotatevalues,0);T.placeValuesInside=a(f.placevaluesinside,0);T.valuePosition=b(f.valueposition,"auto");T.valuePadding=a(f.valuepadding,2);T.managePlotOverflow=a(f.manageplotoverflow,1);T.borderColor=Z(b(f.bordercolor,n?"#666666":z.getColor("borderColor")),b(f.borderalpha,n?"100":z.getColor("borderAlpha")));H=a(f.showborder,n?0:1);T.borderWidth=H?a(f.borderthickness,1):0;T.borderRadius=a(f.borderradius,0);T.borderDashStyle=a(f.borderdashed,0)?g(a(f.borderdashlen,
4),a(f.borderdashgap,2),T.borderWidth):void 0;T.plotBorderColor=Z(b(f.canvasbordercolor,z.getColor("canvasBorderColor")),b(f.canvasborderalpha,z.getColor("canvasBorderAlpha")));"0"!==f.showcanvasborder&&(ka=Boolean(b(f.canvasborderthickness,R?0:1)),"1"!==f.showaxislines&&"1"!==f.showxaxisline&&"1"!==f.showyaxisline&&"1"!==f.showsyaxisline||"1"===f.showcanvasborder||(ka=0));T.plotBorderWidth=n||!ka?0:a(f.canvasborderthickness,this.canvasborderthickness,T.useRoundEdges?1:2);T.bgSWF=b(f.bgimage,f.bgswf);
T.bgSWFAlpha=a(f.bgimagealpha,f.bgswfalpha,100);Gb=b(f.bgimagedisplaymode,"none").toLowerCase();aa=J(f.bgimagevalign,l).toLowerCase();la=J(f.bgimagehalign,l).toLowerCase();"tile"==Gb||"fill"==Gb||"fit"==Gb?(aa!=oa&&"middle"!=aa&&aa!=ua&&(aa="middle"),la!=da&&"middle"!=la&&la!=ea&&(la="middle")):(aa!=oa&&"middle"!=aa&&aa!=ua&&(aa=oa),la!=da&&"middle"!=la&&la!=ea&&(la=da));T.bgImageDisplayMode=Gb;T.bgImageVAlign=aa;T.bgImageHAlign=la;T.bgImageScale=a(f.bgimagescale,100);T.logoURL=J(f.logourl);T.logoPosition=
b(f.logoposition,"tl").toLowerCase();T.logoAlpha=a(f.logoalpha,100);T.logoLink=J(f.logolink);T.logoScale=a(f.logoscale,100);T.logoLeftMargin=a(f.logoleftmargin,0);T.logoTopMargin=a(f.logotopmargin,0);ib=T.toolbar={button:{}};sa=ib.button;sa.scale=a(f.toolbarbuttonscale,1.15);sa.width=a(f.toolbarbuttonwidth,15);sa.height=a(f.toolbarbuttonheight,15);sa.radius=a(f.toolbarbuttonradius,2);sa.spacing=a(f.toolbarbuttonspacing,5);sa.fill=Z(b(f.toolbarbuttoncolor,"ffffff"));sa.labelFill=Z(b(f.toolbarlabelcolor,
"cccccc"));sa.symbolFill=Z(b(f.toolbarsymbolcolor,"ffffff"));sa.hoverFill=Z(b(f.toolbarbuttonhovercolor,"ffffff"));sa.stroke=Z(b(f.toolbarbuttonbordercolor,"bbbbbb"));sa.symbolStroke=Z(b(f.toolbarsymbolbordercolor,"9a9a9a"));sa.strokeWidth=a(f.toolbarbuttonborderthickness,1);sa.symbolStrokeWidth=a(f.toolbarsymbolborderthickness,1);Aa=sa.symbolPadding=a(f.toolbarsymbolpadding,5);sa.symbolHPadding=a(f.toolbarsymbolhpadding,Aa);sa.symbolVPadding=a(f.toolbarsymbolvpadding,Aa);ya=ib.position=b(f.toolbarposition,
"tr").toLowerCase();switch(ya){case "tr":case "rt":case "top right":case "right top":ya="tr";break;case "br":case "rb":case "bottom right":case "right bottom":ya="br";break;case "tl":case "lt":case "top left":case "left top":ya="tl";break;case "bl":case "lb":case "bottom left":case "left bottom":ya="bl";break;default:ya="tr"}xa=ib.hAlign="left"===(l+f.toolbarhalign).toLowerCase()?"l":ya.charAt(1);Nb=ib.vAlign="bottom"===(l+f.toolbarvalign).toLowerCase()?"b":ya.charAt(0);ib.hDirection=a(f.toolbarhdirection,
"r"===xa?-1:1);ib.vDirection=a(f.toolbarvdirection,"b"===Nb?-1:1);ib.vMargin=a(f.toolbarvmargin,6);ib.hMargin=a(f.toolbarhmargin,10);ib.x=a(f.toolbarx,"l"===xa?0:c);ib.y=a(f.toolbary,"t"===Nb?0:u);pb=b(f.divlinecolor,z.getColor(ja.divLineColor));cb=b(f.divlinealpha,n?z.getColor("divLineAlpha3D"):z.getColor("divLineAlpha"));Yb=a(f.divlinethickness,1);ub=Boolean(a(f.divlinedashed,f.divlineisdashed,this.divLineIsDashed,0));hb=a(f.divlinedashlen,4);zb=a(f.divlinedashgap,2);k.yAxis[0].gridLineColor=Z(pb,
cb);k.yAxis[0].gridLineWidth=Yb;k.yAxis[0].gridLineDashStyle=ub?g(hb,zb,Yb):"none";k.yAxis[0].alternateGridColor=ha?Z(b(f.alternatevgridcolor,z.getColor("altVGridColor")),1===a(f.showalternatevgridcolor,1)?b(f.alternatevgridalpha,z.getColor("altVGridAlpha")):Ha):Z(b(f.alternatehgridcolor,z.getColor("altHGridColor")),"0"===f.showalternatehgridcolor?0:b(f.alternatehgridalpha,z.getColor("altHGridAlpha")));Ab=a(f.vdivlinethickness,1);rc=Boolean(a(f.vdivlinedashed,f.vdivlineisdashed,0));sc=a(f.vdivlinedashlen,
4);vc=a(f.vdivlinedashgap,2);K.gridLineColor=Z(b(f.vdivlinecolor,z.getColor(ja.divLineColor)),b(f.vdivlinealpha,z.getColor("divLineAlpha")));K.gridLineWidth=Ab;K.gridLineDashStyle=rc?g(sc,vc,Ab):"none";K.alternateGridColor=Z(b(f.alternatevgridcolor,z.getColor("altVGridColor")),"1"===f.showalternatehgridcolor?b(f.alternatevgridalpha,z.getColor("altVGridAlpha")):0);rb=b(f.canvasbgcolor,z.getColor(ja.canvasBgColor));Rb=b(f.canvasbgalpha,z.getColor("canvasBgAlpha"));b(f.showcanvasbg,La)==Ha&&(Rb="0");
k.plotOptions.series.shadow=a(f.showshadow,f.showcolumnshadow,this.defaultPlotShadow,z.getColor("showShadow"));this.inversed&&(k.yAxis[0].reversed=!0,k.yAxis[1].reversed=!0);this.isStacked&&(this.distributedColumns?(P.showStackTotal=Boolean(a(f.showsum,1)),V=a(f.usepercentdistribution,1),lb=a(f.showpercentvalues,0),Wa=a(f.showpercentintooltip,V,0),P.showXAxisPercentValues=a(f.showxaxispercentvalues,1)):(P.showStackTotal=Boolean(a(this.showSum,f.showsum,0)),V=a(this.stack100percent,f.stack100percent,
0),lb=a(f.showpercentvalues,V,0),Wa=a(f.showpercentintooltip,lb)),P.showPercentValues=lb,P.showPercentInToolTip=Wa,V?(P.isValueAbs=!0,ra[v].stacking="percent",P[0].stacking100Percent=!0):ra[v].stacking="normal");this.isDual&&("0"===f.primaryaxisonleft&&(k.yAxis[0].opposite=!0,k.yAxis[1].opposite=!1),k.yAxis[0].showAlways=!0,k.yAxis[1].showAlways=!0);T.useRoundEdges&&(k.plotOptions.series.shadow=a(f.showshadow,f.showcolumnshadow,1),k.plotOptions.series.borderRadius=1,k.tooltip.style.borderRadius="2px",
T.plotBorderRadius=3,ka||(T.plotBorderWidth=0),T.plotShadow=k.plotOptions.series.shadow?{enabled:!0,opacity:Rb/100}:0);1===a(f.use3dlighting,1)&&(k.legend.lighting3d=!0);k.plotOptions.series.userMaxColWidth=ha?f.maxbarheight:a(f.maxcolwidth,this.maxColWidth);k.plotOptions.series.maxColWidth=fa(a(k.plotOptions.series.userMaxColWidth,50))||1;k.title.text=C(f.caption);k.subtitle.text=C(f.subcaption);0===a(f.showtooltip,this.showtooltip)&&(k.tooltip.enabled=!1);Zb=k.tooltip.style;Zb.backgroundColor=Z(b(Zb.backgroundColor,
f.tooltipbgcolor,z.getColor("toolTipBgColor")),b(f.tooltipbgalpha,100));Zb.borderColor=Z(b(Zb.borderColor,f.tooltipbordercolor,z.getColor("toolTipBorderColor")),b(f.tooltipborderalpha,100));k.tooltip.shadow=a(f.showtooltipshadow,f.showshadow,1)?{enabled:!0,opacity:S(a(f.tooltipbgalpha,100),a(f.tooltipborderalpha,100))/100}:!1;k.tooltip.constrain=a(f.constraintooltip,1);Zb.borderWidth=a(f.tooltipborderthickness,1)+"px";f.tooltipborderradius&&(Zb.borderRadius=a(f.tooltipborderradius,1)+"px");Zb.padding=
a(f.tooltippadding,this.tooltippadding,3)+"px";f.tooltipcolor&&(Zb.color=M(f.tooltipcolor));P.userPlotSpacePercent=k.plotOptions.series.userPlotSpacePercent=f.plotspacepercent;Ea=a(f.plotspacepercent,20)%100;P.plotSpacePercent=k.plotOptions.series.groupPadding=Ea/200;n&&!t?(T.series2D3Dshift="mscombi3d"===A?!0:Boolean(a(f.use3dlineshift,0)),T.canvasBaseColor3D=b(f.canvasbasecolor,z.getColor("canvasBaseColor3D")),T.canvasBaseDepth=a(f.canvasbasedepth,10),T.canvasBgDepth=a(f.canvasbgdepth,3),T.showCanvasBg=
Boolean(a(f.showcanvasbg,1)),T.showCanvasBase=Boolean(a(f.showcanvasbase,1)),ha?(T.xDepth=5,T.yDepth=5,T.showCanvasBg&&(P.marginTopExtraSpace+=T.canvasBgDepth),P.marginLeftExtraSpace+=T.yDepth+(T.showCanvasBase?T.canvasBaseDepth:0),P.marginBottomExtraSpace+=5):(T.xDepth=10,T.yDepth=10,T.showCanvasBg&&(P.marginRightExtraSpace+=T.canvasBgDepth),P.marginBottomExtraSpace+=T.yDepth+(T.showCanvasBase?T.canvasBaseDepth:0)),rb=rb.split(za)[0],Rb=Rb.split(za)[0],T.use3DLighting=Boolean(a(f.use3dlighting,1)),
T.plotBackgroundColor=T.use3DLighting?{FCcolor:{color:na(rb,85)+za+ia(rb,55),alpha:Rb+za+Rb,ratio:eb,angle:r(c-(T.marginLeft+T.marginRight),u-(T.marginTop+T.marginBottom),1)}}:Z(rb,Rb),T.canvasBgColor=Z(na(rb,80),Rb),m=b(f.zeroplanecolor,f.divlinecolor,z.getColor(ja.divLineColor)),s=b(f.zeroplanealpha,f.divlinealpha,z.getColor("divLineAlpha")),T.zeroPlaneColor=Z(m,s),T.zeroPlaneBorderColor=Z(b(f.zeroplanebordercolor,m),a(f.zeroplaneshowborder,1)?s:0),T.zeroPlaneShowBorder=a(f.zeroplaneshowborder,
1)):(T.is3D=!1,T.plotBackgroundColor={FCcolor:{color:rb,alpha:Rb,angle:b(f.canvasbgangle,z.getColor("canvasBgAngle")),ratio:b(f.canvasbgratio,z.getColor("canvasBgRatio"))}});this.parseExportOptions(k);this.parseHoverEffectOptions(T);this.preSeriesAddition&&this.preSeriesAddition(k,G,c,u);this.series&&this.series(G,k,A,c,u);this.postSeriesAddition(k,G,c,u);this.spaceManager(k,G,c,u);this.postSpaceManager&&this.postSpaceManager(k,G,c,u);Cb=a(f.drawquadrant,0);P.isXYPlot&&Cb&&(ta=K.min,$b=K.max,Wb=k.yAxis[0].min,
jb=k.yAxis[0].max,Fa=a(f.quadrantxval,(ta+$b)/2),Hb=a(f.quadrantyval,(Wb+jb)/2),Hb>=Wb&&Hb<=jb&&Fa>=ta&&Fa<=$b&&(fb=Z(b(f.quadrantlinecolor,T.plotBorderColor),b(f.quadrantlinealpha,Oa)),kb=a(f.quadrantlinethickness,T.plotBorderWidth),Ob=a(f.quadrantlinedashed,f.quadrantlineisdashed,0),Qa=a(f.quadrantlinedashLen,4),tb=a(f.quadrantlinedashgap,2),fc=J(f.quadrantlabeltl,l),Pb=J(f.quadrantlabeltr,l),Sb=J(f.quadrantlabelbl,l),gc=J(f.quadrantlabelbr,l),Lb=a(f.quadrantlabelpadding,3),pc=Ob?g(Qa,tb,kb):"none",
K.plotLines.push({color:fb,value:Fa,width:kb,dashStyle:pc,zIndex:3}),k.yAxis[0].plotLines.push({color:fb,value:Hb,width:kb,dashStyle:pc,zIndex:3}),Vb=c-T.marginRight-T.marginLeft,wa=u-T.marginTop-T.marginBottom,Xa=P.inCanvasStyle,Tb=Vb/($b-ta)*(Fa-ta),sb=Vb-Tb,Qb=wa/(jb-Wb)*(Hb-Wb),Na=wa-Qb,Tb-=Lb,sb-=Lb,Na-=Lb,Qb-=Lb,yb=Lb+Pa,Ub=wa-Lb+Pa,hc=Lb+Pa,nb=Vb-Lb+Pa,U.setStyle(Xa),0<Na&&(fc!==l&&0<Tb&&(Db=U.getSmartText(fc,Tb,Na),k.labels.items.push({html:Db.text,zIndex:3,vAlign:oa,style:{left:hc,top:yb,
fontSize:Xa.fontSize,lineHeight:Xa.lineHeight,fontFamily:Xa.fontFamily,color:Xa.color}})),Pb!==l&&0<sb&&(Db=U.getSmartText(Pb,sb,Na),k.labels.items.push({html:Db.text,textAlign:ea,vAlign:oa,zIndex:3,style:{left:nb,top:yb,fontSize:Xa.fontSize,lineHeight:Xa.lineHeight,fontFamily:Xa.fontFamily,color:Xa.color}}))),0<Qb&&(Sb!==l&&0<Tb&&(Db=U.getSmartText(Sb,Tb,Qb),k.labels.items.push({html:Db.text,vAlign:ua,zIndex:3,style:{left:hc,top:Ub,fontSize:Xa.fontSize,lineHeight:Xa.lineHeight,fontFamily:Xa.fontFamily,
color:Xa.color}})),gc!==l&&0<sb&&(Db=U.getSmartText(gc,sb,Qb),k.labels.items.push({html:Db.text,textAlign:ea,vAlign:ua,zIndex:3,style:{left:nb,top:Ub,fontSize:Xa.fontSize,lineHeight:Xa.lineHeight,fontFamily:Xa.fontFamily,color:Xa.color}})))));if(this.hasVDivLine&&(lc=a(f.showvdivlines,0),cc=a(f.numvdivlines,0)+1,lc&&(cc=P.x.catCount-1),1<cc)){mc=K.min;Jb=P.x.catCount-1;Ya=K.max;Yc=Jb/cc;dc=!0;ec=mc;K.scroll&&!isNaN(K.scroll.viewPortMax)&&(Ya=K.scroll.viewPortMax);fd=b(f.vdivlinecolor,pb);db=a(f.vdivlinealpha,
cb);Ab=a(f.vdivlinethickness,Yb);rc=a(f.vdivlinedashed,f.vdivlineisdashed,ub);sc=a(f.vdivlinedashlen,hb);vc=a(f.vdivlinedashgap,zb);($c=a(f.showalternatevgridcolor,0))&&(Zc=Z(b(f.alternatevgridcolor,z.getColor("altVGridColor")),b(f.alternatevgridalpha,z.getColor("altVGridAlpha"))));for(wb=Yc;wb<Jb;wb+=Yc,dc=!dc)dc&&$c&&K.plotBands.push({isNumVDIV:!0,color:Zc,from:ec,to:wb,zIndex:1}),K.plotLines.push({isNumVDIV:!0,width:Ab,color:Z(fd,db),dashStyle:rc?g(sc,vc,Ab):"none",value:wb,zIndex:1}),ec=wb;dc&&
$c&&K.plotBands.push({isNumVDIV:!0,color:Zc,from:ec,to:Ya,zIndex:1})}Ca=T.marginTop;Q=T.marginBottom;ma=T.marginLeft;Ja=T.marginRight;I.canvasstartx=ma;I.canvasstarty=Ca;I.canvasendx=c-Ja;I.canvasendy=u-Q;I.canvaswidth=I.canvasendx-I.canvasstartx;I.canvasheight=I.canvasendy-I.canvasstarty;k.legend&&k.legend.enabled&&"vertical"===k.legend.layout&&(I.legendstarty=Ca+0.5*(P.height-Q-Ca-I.legendheight)+(k.legend.y||0),I.legendendy=I.legendstarty+I.legendheight);n&&T.xDepth>T.marginLeft&&(T.marginLeft=
T.xDepth);B.console&&B.console.log&&B.FC_DEV_ENVIRONMENT&&console.log(k);return k},parseHoverEffectOptions:function(c){var d=this.dataObj.chart,e;c.showHoverEffect=d.showhovereffect;c.plotHoverEffect=a(d.plothovereffect,d.anchorhovereffect,c.showHoverEffect);e=c.plotHoverEffects={enabled:c.plotHoverEffect};e.highlight=a(d.highlightonhover,d.highlightplotonhover,c.plotHoverEffect);e.columnHighlight=a(e.highlight,d.highlightcolumnonhover,d.highlightbaronhover);e.anchorHighlight=a(e.highlight,d.highlightanchoronhover);
e.imageHighlight=a(e.highlight,d.highlightanchorimageonhover);e.anchorImageHoverAlpha=b(d.anchorimagehoveralpha);e.anchorImageHoverScale=b(d.anchorimagehoverscale);e.bubbleHighlight=a(e.highlight,d.highlightbubbleonhover);e.color=b(d.plotfillhovercolor,d.columnhovercolor,d.barhovercolor,d.bubblehovercolor);e.alpha=b(d.plotfillhoveralpha,d.columnhoveralpha,d.barhoveralpha,d.bubblehoveralpha);e.scale=b(d.plothoverscale,d.columnhoverscale,d.barhoverscale,d.bubblehoverscale);e.gradientColor=d.plothovergradientcolor;
e.ratio=d.plothoverratio;e.angle=d.plothoverangle;e.borderColor=d.plotborderhovercolor;e.borderAlpha=d.plotborderhoveralpha;e.borderThickness=d.plotborderhoverthickness;e.borderDashed=d.plotborderhoverdashed;e.borderDashGap=d.plotborderhoverdashgap;e.borderDashLen=d.plotborderhoverdashlen;e.shadow=d.plothovershadow;e.anchorScale=d.anchorhoverscale;e.anchorSides=d.anchorhoversides;e.anchorRadius=d.anchorhoverradius;e.anchorAlpha=d.anchorhoveralpha;e.anchorBgColor=b(d.anchorbghovercolor,d.anchorhovercolor);
e.anchorBgAlpha=d.anchorbghoveralpha;e.anchorBorderColor=d.anchorborderhovercolor;e.anchorBorderAlpha=d.anchorborderhoveralpha;e.anchorBorderThickness=d.anchorborderhoverthickness;e.anchorStartAngle=d.anchorhoverstartangle;e.anchorDip=a(d.anchorhoverdip);e.anchorAnimation=a(d.anchorhoveranimation,1);e.negativeColor=b(d.negativehovercolor,d.negativecolor);e.is3DBubble=a(d.is3donhover)},parseExportOptions:function(c){var d=this.chartInstance,g=this.dataObj.chart;e(c.exporting,{enabled:a(g.exportenabled,
0),bgcolor:d.jsVars.transparent||0===a(d.options.containerBackgroundOpacity,1)?l:d.options.containerBackgroundColor||"#ffffff",bgalpha:(d.jsVars.transparent?0:a(d.options.containerBackgroundOpacity,1))+l,exporttargetwindow:b(g.exporttargetwindow,sb?"_blank":"_self"),exportaction:g.exportaction&&"save"===g.exportaction.toString().toLowerCase()&&"save"||"download",exportfilename:b(g.exportfilename,"FusionCharts"),exporthandler:b(g.html5exporthandler,g.exporthandler,K),exportparameters:b(g.exportparameters,
l),exportformat:b(g.exportformat,"PNG"),buttons:{printButton:{enabled:!!a(g.printshowbutton,g.showprintmenuitem,0)},exportButton:{enabled:!(!a(g.exportenabled,0)||!a(g.exportshowbutton,g.exportshowmenuitem,1))}}});var d=c.exporting,h;g=g.exportformats;c=I(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,r,k;if(g){g=g.split(/\s*?\|\s*?/);for(k=0;k<g.length;k++)r=(f=g[k].split(/\s*?=\s*?/))&&f[0].toUpperCase()||l,
f=f&&f[1]||l,c[r]&&(h||(h={}))&&(h[r]=f||c[r]);h=h||c}else h=c;d.exportformats=h},defaultSeriesType:l,paletteIndex:1,creditLabel:tb,titleSpaceManager:la,placeLegendBlockBottom:ma,configureLegendOptions:Ja,placeLegendBlockRight:Xb,placeHorizontalAxis:Fb,placeVerticalAxis:ab,placeHorizontalCanvasMarginAdjustment:vb,placeVerticalCanvasMarginAdjustment:Bb,placeHorizontalXYSpaceManager:function(c,d,e,g){var f=c[w],h,r,l,k,z=d.chart,n,m,p,E,s,V,U,P=c.chart,t=f.marginLeftExtraSpace,v=f.marginTopExtraSpace,
C=f.marginBottomExtraSpace,ha=f.marginRightExtraSpace;k=e-(t+ha+P.marginRight+P.marginLeft);var D=g-(C+P.marginBottom+P.marginTop),pa=0.3*k;e=0.3*D;var T=c.xAxis.showLine?c.xAxis.lineThickness:0;l=c.yAxis[0].showLine?c.yAxis[0].lineThickness:0;h=k-pa;g=D-e;n=b(z.legendposition,ua).toLowerCase();c.legend.enabled&&n===ea&&(h-=this.placeLegendBlockRight(c,d,h/2,D));s=a(z.xaxisnamepadding,5);V=a(z.labelpadding,4);U=b(z.rotatexaxisname,"ccw");U=U===Ha?"none":U;m=b(z.showplotborder,f.is3d?Ha:La)===La;m=
f.plotBorderThickness=m?f.is3d?1:a(z.plotborderthickness,1):0;p=S(a(P.plotBorderWidth,1),0);!f.isDual&&P.marginRight<p&&void 0===z.chartrightmargin&&(r=p-P.marginRight,k>pa+r&&(P.marginRight=p,k-=r,pa=0.3*k,h=k-pa));r=f.x;E=S(p,m/2);V<E&&(V=E);r.verticalAxisNamePadding=s;r.verticalAxisValuesPadding=V+T;r.rotateVerticalAxisName=U;r.verticalAxisNameWidth=a(z.xaxisnamewidth);h-=ab(c.xAxis,r,c,d,D,h,!1,!1,k);c.xAxis.lineEndExtension=l;h-=vb(c,d,h,c.xAxis);k=h+pa;c.legend.enabled&&n!==ea&&(g-=this.placeLegendBlockBottom(c,
d,k,g/2));g-=this.titleSpaceManager(c,d,k,g/2);r=f[0];r.horizontalAxisNamePadding=a(z.yaxisnamepadding,5);r.horizontalLabelPadding=S(a(z.yaxisvaluespadding,4))+l;r.labelDisplay="auto";r.staggerLines=a(z.staggerlines,2);r.slantLabels=a(z.slantlabels,0);r.horizontalLabelPadding=r.horizontalLabelPadding<p?p:r.horizontalLabelPadding;this.xAxisMinMaxSetter(c,d,k);l=c.xAxis;s=l.plotLines;h=g/(l.max-l.min);s&&s.length&&(p=(s[0].value-l.min)*h,s=(l.max-s[s.length-1].value)*h,f.isBar&&(m>p&&(l.min-=(m-p)/
(2*h)),m>s&&(l.max+=(m-s)/(2*h))));g-=this.placeHorizontalAxis(c.yAxis[0],r,c,d,k,g,pa);g-=Bb(c,d,g,c.yAxis[0]);mb(e+g,c,z,c.xAxis,f.x.lYLblIdx,!0);Eb(c,c.xAxis.title,g);c.legend.enabled&&n===ea&&(c=c.legend,d=e+g,c.height>d&&(c.height=d,c.scroll.enabled=!0,d=(c.scroll.scrollBarWidth=10)+(c.scroll.scrollBarPadding=2),c.width+=d,P.marginRight+=d),c.y=20);P.marginLeft+=t;P.marginTop+=v;P.marginBottom+=C;P.marginRight+=ha},placeVerticalXYSpaceManager:function(c,d,e,g){var f=c[w],h,r,l=!0,k=0,z=d.chart,
n=!1,m,p,E,s,V=c.chart,U,P,t=f.marginLeftExtraSpace,v=f.marginTopExtraSpace,C=f.marginBottomExtraSpace,ha=f.marginRightExtraSpace;h=e-(t+ha+V.marginRight+V.marginLeft);var D=g-(C+V.marginBottom+V.marginTop),pa=0.3*h;g=0.3*D;var T=h-pa;e=D-g;var k=f.drawFullAreaBorder=a(z.drawfullareaborder,1),ra=b(z.legendposition,ua).toLowerCase();s=c.xAxis.showLine?c.xAxis.lineThickness:0;U=c.yAxis[0].showLine?c.yAxis[0].lineThickness:0;P=f.isDual&&c.yAxis[1].showLine?c.yAxis[1].lineThickness:0;m=a(z.yaxisnamepadding,
5);p=a(z.yaxisvaluespadding,z.labelypadding,4);r=b(z.showplotborder,f.is3d?Ha:La)===La;r=f.plotBorderThickness=r?f.is3d?1:a(z.plotborderthickness,1):0;E=S(a(V.plotBorderWidth,1),0);r=S(E,r/2);"area"!==this.defaultSeriesType||k||(r=E);p<E&&(p=E);!f.isDual&&V.marginRight<E&&void 0===z.chartrightmargin&&(k=E-c.chart.marginRight,h>pa+k&&(h-=k,pa=0.3*h,T=h-pa));c.legend.enabled&&ra===ea&&(T-=this.placeLegendBlockRight(c,d,T/2,D));f.isDual&&(n=!0,h=f[1],l=c.yAxis[1].opposite,k=b(z.rotateyaxisname,l?"cw":
"ccw"),k=k===Ha?"none":k,h.verticalAxisNamePadding=m,h.verticalAxisValuesPadding=p+P,h.rotateVerticalAxisName=k,h.verticalAxisNameWidth=a(z.syaxisnamewidth),T-=ab(c.yAxis[1],h,c,d,D,T/2,l,n));h=f[0];l=!l;k=b(z.rotateyaxisname,l?"cw":"ccw");k=k===Ha?"none":k;h.verticalAxisNamePadding=m;h.verticalAxisValuesPadding=p+U;h.rotateVerticalAxisName=k;h.verticalAxisNameWidth=a(n?z.pyaxisnamewidth:z.yaxisnamewidth);T-=ab(c.yAxis[0],h,c,d,D,T,l,n);T-=vb(c,d,T,c.yAxis[0],c.yAxis[1]);l=T+pa;c.legend.enabled&&
ra!==ea&&(e-=this.placeLegendBlockBottom(c,d,l,e/2));e-=this.titleSpaceManager(c,d,l,e/2);h=f.x;h.horizontalAxisNamePadding=a(z.xaxisnamepadding,5);h.horizontalLabelPadding=a(z.labelpadding,z.labelxpadding,4)+s;h.labelDisplay=b(z.labeldisplay,"auto").toLowerCase();h.rotateLabels=a(z.rotatelabels,z.rotatexaxislabels,0);h.staggerLines=a(z.staggerlines,2);h.slantLabels=a(z.slantlabels,z.slantlabel,0);c.yAxis[0].opposite?(c.xAxis.lineEndExtension=U,c.xAxis.lineStartExtension=P):(c.xAxis.lineEndExtension=
P,c.xAxis.lineStartExtension=U);h.horizontalLabelPadding<r&&(h.horizontalLabelPadding=r);s={left:0,right:0};s=V.managePlotOverflow&&this.canvasPaddingModifiers&&this.calculateCanvasOverflow(c,!0)||s;U=s.left+s.right;P=0.6*l;U>P&&(m=s.left/U,s.left-=m*(U-P),s.right-=(1-m)*(U-P));this.xAxisMinMaxSetter(c,d,l,s.left,s.right);e-=this.placeHorizontalAxis(c.xAxis,h,c,d,l,e,pa);e-=Bb(c,d,e,c.xAxis);c.title.alignWithCanvas||("left"===c.title.align&&c.yAxis[0].title.text&&ic(c,c.yAxis[0].title,g+e),"right"===
c.title.align&&n&&c.yAxis[1].title.text&&ic(c,c.yAxis[1].title,g+e));n&&(mb(g+e,c,z,c.yAxis[1],f[1].lYLblIdx),Eb(c,c.yAxis[1].title,g+e));mb(g+e,c,z,c.yAxis[0],f[0].lYLblIdx);Eb(c,c.yAxis[0].title,g+e);c.legend.enabled&&ra===ea&&(c=c.legend,d=g+e,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,V.marginRight+=d));V.marginLeft+=t;V.marginTop+=v;V.marginBottom+=C;V.marginRight+=ha},placeVerticalAxisTitle:Eb,calculateCanvasOverflow:function(a,
b){for(var c=this.canvasPaddingModifiers,d=a.chart,f=this.smartLabel,e=0,g=0,h=0,r=0,k=e=!1,z=!1,n=c&&c.length||0,m,p,E,s,V;n--;)switch(g=c[n],g){case "anchor":k=p=e=!0;break;case "anchorlabel":E=p=e=!0;break;case "errorbar":z=e=!0}if(e&&(n=(c=a.series)&&c.length||0,b))for(;n--;)m=c[n],p&&(e=m&&m.data||[],1<e.length&&(s=e[0],V=e[e.length-1],k&&(e=s&&s.marker&&s.marker.enabled&&(s.marker.radius||0)+(s.marker.lineWidth||0)||0,g=V&&V.marker&&V.marker.enabled&&(V.marker.radius||0)+(V.marker.lineWidth||
0)||0,h=S(e+2,h),r=S(g+2,r)),E&&(f.setStyle(a.plotOptions.series.dataLabels.style),d.rotateValues?(g=f.getOriSize(s&&s.displayValue||l),e=g.height/2,g=f.getOriSize(V&&V.displayValue||l),g=g.height/2):(g=f.getOriSize(s&&s.displayValue||l),e=g.width/2,g=f.getOriSize(V&&V.displayValue||l),g=g.width/2),h=S(e+2,h),r=S(g+2,r)))),z&&(g=e=m.errorBarWidth/2+m.errorBarThickness||0,h=S(e+2,h),r=S(g+2,r));return{left:h,right:r}},spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)},
axisMinMaxSetter:function(b,c,d,e,f,g,h,r){d=c.stacking100Percent?P(99,1,100,0,f,g,h,r):P(a(c.max,d),a(c.min,e),d,e,f,g,h,r);b.min=Number(s(d.Min,10));b.max=Number(s(d.Max,10));b.tickInterval=Number(s(d.divGap,10));c.numdivlines=X.round((b.max-b.min)/b.tickInterval)-1;2>=d.Range/d.divGap&&(b.alternateGridColor=Aa);this.highValue=c.max;this.lowValue=c.min;delete c.max;delete c.min},configurePlotLines:function(c,d,e,g,f,h,r,k,z,n,m){var p=e.min,E=e.max,V=e.tickInterval,U=n?"xAxis":g.stacking100Percent?
"percentValue":"yAxis",P=p,t=1,v=e.gridLineColor,C=e.gridLineWidth,ha=e.gridLineDashStyle,T=0>p&&0<E?!0:!1,D=0===p,pa=0===E,ra=0===a(g.showzeroplanevalue,c.showzeroplanevalue),B=!0,ka,ja=1,K=0<a(c.numdivlines,0),I=d[w].axisGridManager,F=this.colorManager,J=this.is3D,Ia=a(c.showaxislimitgridlines,this.showAxisLimitGridLines),J=a(Ia,J||d.chart.plotBorderWidth?0:1),R=this.inversed;d=d.xAxis;m=a(m,z?1:0);delete e._altGrid;delete e._lastValue;n&&!g.catOccupied&&(g.catOccupied={});!T||n&&g.catOccupied[0]||
(n?(B=a(c.showvzeroplane,1),ka=a(c.showvzeroplanevalue,h),K=a(c.vzeroplanethickness,1),F=b(c.vzeroplanealpha,c.vdivlinealpha,F.getColor("divLineAlpha")),c=0<K?Z(b(c.vzeroplanecolor,v),F):Aa):(F=a(c.divlinealpha,F.getColor("divLineAlpha")),ka=a(g.showzeroplanevalue,c.showzeroplanevalue,h),!1===this.defaultZeroPlaneHighlighted?(B=a(g.showzeroplane,c.showzeroplane,!(this.defaultZeroPlaneHidden&&!K)),K=C):(K=1===C?2:C,ja=5,F=H(2*F,100)),K=a(g.zeroplanethickness,c.zeroplanethickness,K),F=b(g.zeroplanealpha,
c.zeroplanealpha,F),c=0<K?Z(b(g.zeroplanecolor,c.zeroplanecolor,v),F):Aa),B&&(ka=ka?k[U](0,m):l,(ja=I.addAxisGridLine(e,0,ka,K,ha,c,ja,n))&&(ja.isZeroPlane=!0)),e.effectiveZeroPlaneThickness=B&&parseInt(F,10)&&K);n&&g.catOccupied[p]||(ka=!f||D&&ra?l:k[U](p,m),(ja=Ia||J&&(R||!d.showLine)?I.addAxisGridLine(e,p,ka,C,ha,v||Aa,2,n):I.addAxisGridLine(e,p,ka,0.1,void 0,Aa,2,n))&&(ja.isMinLabel=!0));0>=C&&(C=0.1,v=Aa);for(p=Number(s(P+V,10));p<E;p=Number(s(p+V,10)),t+=1)T&&0>P&&0<p&&!z&&(I.addAxisAltGrid(e,
0),t+=1),0===p||n&&g.catOccupied[p]||(ka=1===h&&0===t%r?k[U](p,m):l,I.addAxisGridLine(e,p,ka,C,ha,v,2,n)),P=p,z||I.addAxisAltGrid(e,p);z||I.addAxisAltGrid(e,E);0!==t%r||n&&g.catOccupied[E]||(ka=!f||pa&&ra?l:k[U](E,m),(ja=Ia||J&&(!R||!d.showLine)?I.addAxisGridLine(e,E,ka,C,ha,v||Aa,2,n):I.addAxisGridLine(e,E,ka,0.1,ha,Aa,2,n))&&(ja.isMaxLabel=!0));this.realtimeEnabled&&(e.labels._enabled=e.labels.enabled,e._gridLineWidth=e.gridLineWidth,e._alternateGridColor=e.alternateGridColor);e.labels.enabled=
!1;e.gridLineWidth=0;e.alternateGridColor=Aa;e.plotLines.sort(bb)},xAxisMinMaxSetter:function(b,d,e,g,f){var h=b[w],r=h.x,k=d.chart,l=r.min=a(r.min,0),z=r.max=a(r.max,r.catCount-1),n=0,m=0,p=b.chart.defaultSeriesType,E=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(p),s=/^(line|area|spline|areaspline)$/.test(p),p=/^(scatter|bubble|candlestick|dragnode)$/.test(p),V=b.xAxis,U=V.scroll,P=a(k.canvaspadding),t=void 0!==P&&null!==P,v=sa(H(a(P,g,0),e/2-10)),P=
sa(H(a(P,f,0),e/2-10)),C,ha,T,D;r.adjustMinMax&&(C=a(k.setadaptivexmin,1),z=l=!C,ha=a(this.numVDivLines,k.numvdivlines,4),T=k.adjustvdiv!==Ha,D=a(k.showxaxisvalues,k.showxaxisvalue,1),C=a(k.showvlimits,D),D=a(k.showvdivlinevalue,k.showvdivlinevalues,D),this.axisMinMaxSetter(V,r,k.xaxismaxvalue,k.xaxisminvalue,l,z,ha,T),l=V.min,z=V.max,r.requiredAutoNumericLabels&&(ha=a(parseInt(k.xaxisvaluesstep,10),1),this.configurePlotLines(k,b,V,r,C,D,1>ha?1:ha,h.numberFormatter,!1,!0)),V.plotLines.sort(bb));V.labels.enabled=
!1;V.gridLineWidth=0;V.alternateGridColor=Aa;!E&&!h.isScroll||h.hasNoColumn||(t||void 0===g||null===g||void 0===f||null===f?m=n=0.5:(m=e/(z-l+1)*0.5,v=0<m-g?0:v,P=0<m-f?0:P,n=0<m-g?0.5:0,m=0<m-f?0.5:0));h.is3d&&(v+=a(b.chart.xDepth,0));b=(e-(v+P))/(z-l+(n+m));V.min=l-(n+v/b);V.max=z+(m+P/b);U&&U.enabled&&(n=U.vxLength,b=V.max-V.min,U.viewPortMin=V.min,U.viewPortMax=V.max,U.scrollRatio=n/b,U.flatScrollBars=h.flatScrollBars,U.scrollBar3DLighting=h.scrollBar3DLighting,V.max=V.min+n);s&&V.min===V.max&&
(V.min-=0.65,V.max+=0.65);p&&d.vtrendlines&&c(d.vtrendlines,V,h,!1,!0,!0)},postSeriesAddition:function(c){var d=c[w],g=d.isBar,h=d.is3d,f=c.chart.rotateValues&&!g?270:0,r=d[0],k=r&&r.stacking100Percent,l,z,m,p,E,s,V,U,P,t,v,C,ha,D,T,pa,ra,B,ka,H,ja,K,I;if(this.isStacked)for(m in l=d.plotSpacePercent,z=c.chart.defaultSeriesType,l=1-2*l,pa=c.series,ra=this.numberFormatter,ja=e({},c.plotOptions.series.dataLabels.style),K=parseFloat(ja.fontSize),I=!r.stacking100Percent,ja.color=c.plotOptions.series.dataLabels.color,
p=r.stack,p){r=p[m].length;E=l/r;V=-(l-E)/2;D=[];C=0;for(U=pa.length;C<U;C+=1)P=pa[C],P.yAxis||b(P.type,z)!==m||D.push(P);for(s=0;s<r;s+=1,V+=E){v=p[m][s];T=[];C=0;for(U=D.length;C<U;C+=1)P=D[C],a(P.columnPosition,0)===s&&T.push(P.data);if(v&&v.length)for(t=0,P=v.length;t<P;t+=1)if(C=v[t])for(ha=(C.n||0)+(C.p||0),d.showStackTotal&&(U=t,U+=V,C=0>ha?C.n:C.p,c.xAxis.plotLines.push({value:U,width:0,isVline:I,isTrend:!I,zIndex:4,_isStackSum:1,_catPosition:t,_stackIndex:s,label:{align:Ga,textAlign:h||270!==
f?g?0>ha?ea:da:Ga:0>ha?ea:da,offsetScale:I?C:void 0,offsetScaleIndex:0,rotation:f,style:ja,verticalAlign:oa,y:g?0:0>ha?270===f?4:K:-4,x:0,text:d.numberFormatter.yAxis(ha)}})),C=0,U=T.length;C<U;C+=1)if(ka=T[C][t])if(H=ha&&(ka.y||0)/ha*100,B=ra.percentValue(H),ka.toolText=n(ka.toolText,[14,24,25,112],{percentValue:B,sum:ra.dataLabels(ha),unformattedSum:ha}),ka.y||0===ka.y)k&&(ka.y=H,ka.previousY||0===ka.previousY)&&(ka.previousY=ka.previousY/ha*100),ka.showPercentValues&&(ka.displayValue=B)}}},styleMapForFont:ga,
styleApplicationDefinition_font:function(a,b,c){var d,f,e=!1,g,r,k=this.styleMapForFont;switch(b){case "caption":d=a.title;break;case "datalabels":d=a.xAxis.labels;break;case "datavalues":d=a.plotOptions.series.dataLabels;e=!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[w].trendStyle};break;case "xaxisname":d=a.xAxis.title;break;case "yaxisname":case "pyaxisname":case "axistitle":d=[];b=0;for(g=a.yAxis.length;b<g;b+=1)d.push(a.yAxis[b].title);break;case "yaxisvalues":d=[];b=0;for(g=a.yAxis.length;b<g;b+=1)d.push(a.yAxis[b].labels);break;case "vlinelabels":d={style:a[w].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,g=d.length;b<g;b+=1){r=d[b];for(f in c)if(a=f.toLowerCase(),"function"===typeof k[a])k[a](c[f],r,e);h(r.style)}else{for(f in c)if(a=f.toLowerCase(),"function"===typeof k[a])k[a](c[f],d,e);h(d.style)}},parseStyles:function(a){var b,c,d,f={},e,g=this.dataObj;if(g.styles&&g.styles.definition instanceof Array&&g.styles.application instanceof Array){for(b=0;b<g.styles.definition.length;b+=1)c=g.styles.definition[b],
c.type&&c.name&&this["styleApplicationDefinition_"+c.type.toLowerCase()]&&(f[c.name.toLowerCase()]=c);for(b=0;b<g.styles.application.length;b+=1)for(c=g.styles.application[b].styles&&g.styles.application[b].styles.split(za)||[],e=0;e<c.length;e+=1)if(d=c[e].toLowerCase(),f[d]&&g.styles.application[b].toobject)this["styleApplicationDefinition_"+f[d].type.toLowerCase()](a,g.styles.application[b].toobject.toLowerCase(),f[d])}},updateDefaultAnnotations:function(){var c=this.renderer,d=this.dataObj,e=
this.chartInstance,g=d&&d.annotations||{},f={},h;if(this.drawAnnotations&&e.dataReady()&&d&&d.chart&&a(d.chart.showannotations,1)){h=a(g.scaleonresize,d.chart.scaleonresize,1);var c={interactionevents:b(this.annotationInteractionEvents,!0),showbelow:b(g.showbelow,g.showbelowchart),autoscale:g.autoscale,scaletext:g.scaletext,scaleimages:g.scaleimages,constrainedscale:g.constrainedscale,scaleonresize:h,origw:b(g.origw,d.chart.origw,h?this.origRenderWidth:c.chartWidth),origh:b(g.origh,d.chart.origh,
h?this.origRenderHeight:c.chartHeight),xshift:g.xshift,yshift:g.yshift,grpxshift:g.grpxshift,grpyshift:g.grpyshift,xscale:g.xscale,yscale:g.yscale,rootxscale:a(g.xscale,100)/100,rootyscale:a(g.yscale,100)/100},r;c||(c={});for(r in f)c[r]=f[r];e.annotations.reset(g,c,this.snapLiterals)}else e.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}});aa("stub",{init:function(a,b,c){this.containerElement=a;this.smartLabel=c.jsVars.smartLabel},standaloneInit:!0},aa.base);aa("barbase",{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},aa.base);aa("singleseries",{series:function(a,b,d){var e=a.data||a.dataset&&a.dataset[0]&&a.dataset[0].data,f;e&&0<e.length&&e instanceof Array&&(f={data:[],hoverEffects:this.parseSeriesHoverOptions(a,
b,{},d),colorByPoint:!0},b.legend.enabled=!1,d=this.point(d,f,e,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[w],!1,this.isBar))},defaultSeriesType:l,configureAxis:function(c,d){var e=c[w],g=c.xAxis,f=d.chart,h=c.chart.is3D,r,k,l,z,n,m,p,E,s,V,U,P,t=0,v,ha,D,T,pa,ra,ka,B=this.numberFormatter,ja=a(f.syncaxislimits,0),I;g.title.text=C(f.xaxisname);I=a(parseInt(f.yaxisvaluesstep,10),parseInt(f.yaxisvaluestep,
10),1);I=1>I?1:I;r=c.yAxis[0];k=e[0];e.isDual?(l=B.getCleanValue(f.pyaxismaxvalue),z=B.getCleanValue(f.pyaxisminvalue),r.title.text=C(f.pyaxisname),ja&&!k.stacking100Percent?(P=e[1],U=a(P.max),P=a(P.min),void 0!==U&&void 0!==P&&(k.min=H(k.min,P),k.max=S(k.max,U)),U=B.getCleanValue(f.syaxismaxvalue),P=B.getCleanValue(f.syaxisminvalue),null!==P&&(z=null!==z?H(z,P):P),null!==U&&(l=null!==l?S(l,U):U)):ja=0):(l=B.getCleanValue(f.yaxismaxvalue),z=B.getCleanValue(f.yaxisminvalue),r.title.text=C(f.yaxisname));
p=a(this.isStacked?0:this.setAdaptiveYMin,f.setadaptiveymin,this.defSetAdaptiveYMin,0);m=n=!p;E=a(e.numdivlines,f.numdivlines,this.numdivlines,4);s=f.adjustdiv!==Ha;V=a(this.showYAxisValues,f.showyaxisvalues,f.showyaxisvalue,1);U=a(f.showyaxislimits,f.showlimits,V);P=a(f.showdivlinevalue,f.showdivlinevalues,V);h||(t=a(f.showaxislines,f.drawAxisLines,0),D=a(f.axislinethickness,1),pa=a(f.axislinealpha,100),100<pa&&(pa=100),ha=Z(b(f.axislinecolor,"#000000"),pa),r.showLine=a(f.showyaxisline,t),v=g.showLine=
a(f.showxaxisline,t),T=g.lineThickness=a(f.xaxislinethickness,D),r.lineThickness=a(f.yaxislinethickness,D),ra=g.lineAlpha=a(f.xaxislinealpha,pa),100<ra&&(ra=g.lineAlpha=100),ka=r.lineAlpha=a(f.yaxislinealpha,pa),100<ka&&(ka=r.lineAlpha=100),g.lineColor=Z(b(f.xaxislinecolor,ha),ra),r.lineColor=Z(b(f.yaxislinecolor,ha),ka),c.chart.xAxisLineVisible=v&&!!T&&0<ra);this.axisMinMaxSetter(r,k,l,z,n,m,E,s);this.configurePlotLines(f,c,r,k,U,P,I,e.numberFormatter,!1);r.reversed&&0<=r.min&&(c.plotOptions.series.threshold=
r.max);e.isDual&&(r=c.yAxis[1],k=e[1],U=a(f.showsecondarylimits,U),P=a(f.showdivlinesecondaryvalue,V),ja?(g=c.yAxis[0],r.min=g.min,r.max=g.max,r.tickInterval=g.tickInterval,delete k.max,delete k.min):(l=B.getCleanValue(f.syaxismaxvalue),z=B.getCleanValue(f.syaxisminvalue),p=a(f.setadaptivesymin,p),m=n=!p,this.axisMinMaxSetter(r,k,l,z,n,m,E,s)),h||(r.showLine=a(f.showsyaxisline,t),r.lineThickness=a(f.syaxislinethickness,D),h=r.lineAlpha=a(f.syaxislinealpha,pa),100<h&&(h=100),r.lineColor=Z(b(f.syaxislinecolor,
ha),h)),this.configurePlotLines(f,c,r,k,U,P,I,e.numberFormatter,!0),r.title.text=C(f.syaxisname))},pointValueWatcher:function(c,d,e,g,f,h,r){c=c[w];var k;if(null!==d)return e=a(e,0),c[e]||(c[e]={}),e=c[e],g&&(this.distributedColumns&&(c.marimekkoTotal+=d),g=e.stack,f=a(f,0),h=a(h,0),r=b(r,hb),g[r]||(g[r]=[]),r=g[r],r[h]||(r[h]=[]),h=r[h],h[f]||(h[f]={}),f=h[f],0<=d?f.p?(k=f.p,d=f.p+=d):f.p=d:f.n?(k=f.n,d=f.n+=d):f.n=d),e.max=e.max>d?e.max:d,e.min=e.min<d?e.min:d,k},parseSeriesHoverOptions:function(c,
d,e){c=d.chart.plotHoverEffects;d={enabled:b(e.showhovereffect,e.hovereffect,c.enabled)};d.highlight=a(e.highlightonhover,e.highlightplotonhover,c.highlight);d.columnHighlight=a(d.highlight,e.highlightcolumnonhover,e.highlightbaronhover,c.columnHighlight);d.anchorHighlight=a(d.highlight,e.highlightanchoronhover,c.anchorHighlight);d.anchorHighlight=a(d.highlight,e.highlightimageonhover,c.imageHighlight);d.bubbleHighlight=a(d.highlight,e.highlightbubbleonhover,e.highlightbaronhover,c.bubbleHighlight);
d.imageHoverAlpha=b(e.anchorimagehoveralpha,c.anchorImageHoverAlpha);d.imageHoverScale=b(e.anchorimagehoverscale,c.anchorImageHoverScale);d.color=b(e.hovercolor,e.bubblehovercolor,c.color);d.alpha=b(e.hoveralpha,c.alpha);d.scale=b(e.hoverscale,e.bubblehoverscale,c.scale);d.gradientColor=void 0!==e.hovergradientcolor?e.hovergradientcolor:c.gradientColor;d.ratio=b(e.hoverratio,c.ratio);d.angle=b(e.hoverangle,c.angle);d.borderColor=b(e.borderhovercolor,c.borderColor);d.borderAlpha=b(e.borderhoveralpha,
c.borderAlpha);d.borderThickness=a(e.borderhoverthickness,c.borderThickness);d.borderDashed=a(e.borderhoverdashed,c.borderDashed);d.borderDashGap=a(e.borderhoverdashgap,c.borderDashGap);d.borderDashLen=a(e.borderhoverdashlen,c.borderDashLen);d.shadow=b(e.hovershadow,c.shadow);d.anchorSides=b(e.anchorhoversides,c.anchorSides);d.anchorRadius=b(e.anchorhoverradius,c.anchorRadius);d.anchorScale=b(e.anchorhoverscale,c.anchorScale);d.anchorAlpha=b(e.anchorhoveralpha,e.hoveralpha,c.anchorAlpha);d.anchorBgColor=
b(e.anchorbghovercolor,e.anchorhovercolor,c.anchorBgColor);d.anchorBgAlpha=b(e.anchorbghoveralpha,c.anchorBgAlpha);d.anchorBorderColor=b(e.anchorborderhovercolor,c.anchorBorderColor);d.anchorBorderAlpha=b(e.anchorborderhoveralpha,c.anchorBorderAlpha);d.anchorBorderThickness=a(e.anchorborderhoverthickness,c.anchorBorderThickness);d.anchorStartAngle=b(e.anchorhoverstartangle,c.anchorStartAngle);d.anchorDip=b(e.anchorhoverdip,c.anchorDip);d.anchorAnimation=a(e.anchorhoveranimation,c.anchorAnimation,
1);d.negativeColor=b(e.negativehovercolor,c.negativeColor);d.is3DBubble=a(e.is3donhover,c.is3DBubble);return d},pointHoverOptions:function(c,d,e){var h,f,r,k={};h=d.hoverEffects;d=a(c.hovereffect,h&&h.enabled);f=!1;var z={enabled:d},n=e&&l+e.plotType.toLowerCase();if(void 0===d)if(this.forceHoverEnable)f=d=z.enabled=!0;else{"anchor"==n&&(f=e.imageUrl?d=z.enabled=void 0!==b(c.anchorimagehoveralpha,h.imageHoverAlpha,c.anchorimagehoverscale,h.imageHoverScale,void 0):d=z.enabled=void 0!==b(c.hovercolor,
c.anchorhovercolor,c.anchorbghovercolor,h.anchorBgColor,h.color,c.hoveralpha,c.anchorhoveralpha,h.anchorAlpha,c.bghoveralpha,c.anchorbghoveralpha,h.anchorBgAlpha,c.anchorborderhovercolor,c.borderhovercolor,h.anchorBorderColor,c.anchorborderhoverthickness,c.borderhoverthickness,h.anchorBorderThickness,c.anchorborderhoveralpha,c.borderhoveralpha,h.anchorBorderAlpha,c.hoverdip,c.anchorhoverdip,h.anchorDip,c.anchorhoverstartangle,h.anchorStartAngle,c.hoversides,c.anchorhoversides,h.anchorSides,c.hoverradius,
c.anchorhoverradius,h.anchorRadius,void 0));if("column"==n||"bubble"==n)f=d=z.enabled=void 0!==b(c.hoveralpha,h.alpha,c.hovergradientcolor,h.gradientColor,c.borderhovercolor,h.borderColor,c.borderhoverthickness,h.borderThickness,c.hoverratio,h.ratio,c.hoverangle,h.angle,c.borderhoveralpha,h.borderAlpha,c.borderhoverdashed,h.borderDashed,c.borderhoverdashgap,h.borderDashGap,c.borderhoverdashlen,h.borderDashLen,c.hovercolor,h.color,void 0);f||"bubble"!=n||(f=d=z.enabled=void 0!==b(c.negativehovercolor,
h.negativeColor,c.is3donhover,h.is3DBubble,c.hoverscale,h.scale,void 0));"pie"==n&&(f=d=z.enabled=void 0!==b(c.hovercolor,h.color,c.hoveralpha,h.alpha,c.borderhovercolor,h.borderColor,c.borderhoverthickness,h.borderThickness,c.borderhoveralpha,h.borderAlpha,void 0))}if(d){z.highlight=a(c.highlightonhover,h.highlight);z.columnHighlight=a(z.highlight,c.highlightcolumnonhover,c.highlightbaronhover);z.anchorHighlight=a(z.highlight,c.highlightanchoronhover);z.bubbleHighlight=a(z.highlight,c.highlightbubbleonhover);
z.alpha=b(c.hoveralpha,h.alpha,e.alpha);z.scale=b(c.hoverscale,h.scale,1);z.gradientColor=void 0===c.hovergradientcolor?h.gradientColor:c.hovergradientcolor;z.borderColor=b(c.borderhovercolor,h.borderColor,e.borderColor);z.borderThickness=a(c.borderhoverthickness,h.borderThickness,e.borderWidth);z.ratio=b(c.hoverratio,h.ratio,e.ratio);z.angle=b(c.hoverangle,h.angle,e.angle);z.borderAlpha=b(c.borderhoveralpha,h.borderAlpha,e.borderAlpha);z.borderDashed=a(c.borderhoverdashed,h.borderDashed,e.borderDashed,
0);z.borderDashGap=a(c.borderhoverdashgap,h.borderDashGap,e.borderDashGap);z.borderDashLen=a(c.borderhoverdashlen,h.borderDashLen,e.borderDashLen);z.shadow=b(c.hovershadow,h.shadow,0);z.color=b(c.hovercolor,h.color);"anchor"==n&&(e.imageUrl?(z.imageHoverAlpha=a(c.anchorimagehoveralpha,h.imageHoverAlpha,100),z.imageHoverScale=e.imageScale*fa(a(c.anchorimagehoverscale,h.imageHoverScale,110))*0.01,z.anchorAnimation=a(c.anchorhoveranimation,h.anchorAnimation,1)):(z.anchorColor=M(b(c.hovercolor,c.anchorhovercolor,
c.anchorbghovercolor,h.anchorBgColor,h.color,e.anchorBgColor)),z.anchorAlpha=b(c.hoveralpha,c.anchorhoveralpha,h.anchorAlpha,e.anchorAlpha),z.anchorBgAlpha=b(c.bghoveralpha,c.anchorbghoveralpha,h.anchorBgAlpha,z.anchorAlpha,e.anchorBgAlpha),z.anchorBorderColor=b(c.anchorborderhovercolor,c.borderhovercolor,h.anchorBorderColor,e.anchorBorderColor),z.anchorBorderThickness=b(c.anchorborderhoverthickness,c.borderhoverthickness,h.anchorBorderThickness,e.anchorBorderThickness),z.anchorBorderAlpha=a(c.anchorborderhoveralpha,
c.borderhoveralpha,h.anchorBorderAlpha,z.anchorAlpha,e.anchorBorderAlpha),z.anchorDip=a(c.hoverdip,c.anchorhoverdip,h.anchorDip),z.startAngle=b(c.anchorhoverstartangle,h.anchorStartAngle,e.anchorAngle),z.anchorSides=a(c.hoversides,c.anchorhoversides,h.anchorSides,e.anchorSides),z.anchorRadius=a(c.hoverradius,c.anchorhoverradius,h.anchorRadius),z.anchorScale=a(c.hoverscale,c.anchorhoverscale,h.anchorScale),z.anchorAnimation=a(c.anchorhoveranimation,h.anchorAnimation,1),void 0===z.anchorRadius&&(z.anchorRadius=
!f||z.anchorHighlight?e.anchorRadius&&e.anchorRadius+1:e.anchorRadius)));if(f||(z.columnHighlight||z.bubbleHighlight)&&z.color&&1==z.highlight)z.highlight=0;"column"==n&&(z.color=(b(z.color,e.color)+za+(void 0===z.gradientColor?e.gradientColor:z.gradientColor)).replace(/,+?$/,""));"pie"===n&&(z.color=b(z.color,e.color).replace(/,+?$/,""));"bubble"==n&&(z.negativeColor=b(c.negativehovercolor,h.negativeColor,e.negativeColor),z.is3d=a(c.is3donhover,h.is3DBubble,e.is3d),z.color=z.negativeColor&&0>c.z?
z.negativeColor:z.color||e.color,r="string"==typeof z.color,z.color=M(r?z.color:z.color.FCcolor.color),z.color=z.is3d?aa.bubble.getPointColor(z.color,z.alpha):z.color);if(1==z.highlight&&"anchor"!==n){c=(r="string"==typeof z.color)?z.color.split(/\s{0,},\s{0,}/):z.color.FCcolor.color.split(/\s{0,},\s{0,}/);h=c.length;for(f=0;f<h;f++)c[f]=ia(c[f],70);r?z.color=c.join(","):z.color.FCcolor.color=c.join(",")}"pie"===n&&(k={color:this.getPointColor(z.color,z.alpha,e.radius3D),alpha:z.alpha,borderColor:Z(z.borderColor,
z.borderAlpha),borderWidth:z.borderThickness});"column"==n&&(z.colorArr=t(z.color,z.alpha,z.ratio,z.angle,e.isRoundEdged,z.borderColor,H(z.alpha,z.borderAlpha).toString(),e.isBar,e.is3d),z.dashStyle=z.borderDashed?g(z.borderDashLen,z.borderDashGap,z.borderThickness):"none",k={shadow:z.shadow,color:z.colorArr[0],borderColor:z.colorArr[1],borderWidth:z.borderThickness,use3DLighting:e.use3DLighting,dashStyle:z.dashStyle});"anchor"==n&&(k=e.imageUrl?{animation:z.anchorAnimation,imageHoverAlpha:z.imageHoverAlpha,
imageHoverScale:z.imageHoverScale}:{animation:z.anchorAnimation,shadow:z.shadow,fillColor:{FCcolor:{color:z.anchorColor,alpha:z.anchorBgAlpha*z.anchorAlpha/100+l}},lineColor:{FCcolor:{color:z.anchorBorderColor,alpha:z.anchorBorderAlpha}},lineWidth:z.anchorBorderThickness,radius:z.anchorRadius,symbol:ba(z.anchorSides),startAngle:z.startAngle,sides:z.anchorSides,scale:z.anchorScale,dip:z.anchorDip});"bubble"==n&&(k={symbol:z.seriesAnchorSymbol,shadow:z.shadow,scale:z.scale,fillColor:z.color,lineColor:{FCcolor:{color:z.borderColor,
alpha:z.alpha}},lineWidth:z.borderThickness})}return{enabled:d,options:z,rolloverOptions:k}},getPointStub:function(c,d,e,g){var f=this.dataObj.chart;g=g[w];d=null===d?d:g.numberFormatter.dataLabels(d);var h=J(C(b(c.tooltext,g.tooltext))),r=J(C(c.displayvalue)),f=g.showTooltip?void 0!==h?n(h,[1,2,3,5,6,7],{formattedValue:d,label:e,yaxisName:C(f.yaxisname),xaxisName:C(f.xaxisname)},c,f):null===d?!1:e!==l?e+g.tooltipSepChar+d:d:l;g=a(c.showvalue,g.showValues)?void 0!==r?r:d:l;c=b(c.link);return{displayValue:g,
categoryLabel:e,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 e=a.renderer&&a.renderer.plots,g,h,r,z;r=a.is3D;if(!e||!e.length)return 0;isNaN(b[0])?
g=0:(g=Number(b[0]),b=b.slice(1));h=b[0];if("set"===h){isNaN(b[1])?(z=0,b=b.slice(1)):(z=Number(b[1]),b=b.slice(2));h=b[0];e=(e=e[g]&&e[g].items[z])&&e.graphic;if(!e)return 0;r=d&&r?e._getBBox2():e.getBBox();z=c(h,r)}return z};b.xaxis=function(b){var d=a.renderer&&a.renderer.xAxis&&a.renderer.xAxis[0]&&a.renderer.xAxis[0].labels,e,g;if(!d||!d.length)return 0;g=b[0];if("label"===g){isNaN(b[1])?(e=0,b=b.slice(1)):(e=Number(b[1]),b=b.slice(2));g=b[0];b=d[e];if(!b)return 0;b=b.getBBox();e=c(g,b)}return e};
b.yaxis=function(b){var d=a.renderer&&a.renderer.yAxis,e,g;if(!d||!d.length)return 0;isNaN(b[0])?e=0:(e=Number(b[0]),b=b.slice(1));e=d[e];if(!e)return 0;d=b[0];if("label"===d){g=e.labels;isNaN(b[1])?(e=0,b=b.slice(1)):(e=Number(b[1]),b=b.slice(2));d=b[0];b=g[e];if(!b)return 0;b=b.getBBox();g=c(d,b)}return g}}},aa.base);aa("multiseries",{series:function(b,d,e){var g,f,h=d[w],r,z;d.legend.enabled=Boolean(a(b.chart.showlegend,1));if(b.dataset&&0<b.dataset.length){this.categoryAdder(b,d);g=0;for(f=b.dataset.length;g<
f;g+=1)r=b.dataset[g],z={hoverEffects:this.parseSeriesHoverOptions(b,d,r,e),visible:!a(r.initiallyhidden,0),data:[]},this.isStacked||(z.numColumns=f),r=this.point(e,z,r,b.chart,d,h.oriCatTmp.length,g),r instanceof Array?d.series=d.series.concat(r):d.series.push(r);this.configureAxis(d,b);b.trendlines&&!this.isLog&&c(b.trendlines,d.yAxis,h,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(b,c){var d,e=0,f=c[w],g=f.axisGridManager,r=b.chart,z=c.xAxis,k,f=f.x,n,m,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+Pa,h(c.xAxis.labels.style)),b.categories[0].fontcolor&&(c.xAxis.labels.style.color=b.categories[0].fontcolor.split(za)[0].replace(/^\#?/,"#")),m=c[w].oriCatTmp,p=b.categories[0].category,d=0;d<p.length;d+=1)p[d].vline?g.addVline(z,p[d],e,c):(n=a(p[d].showlabel,r.showlabels,1),k=C(D(b.categories[0].category[d].label,
b.categories[0].category[d].name)),g.addXaxisCat(z,e,e,n?k:l),m[e]=D(C(b.categories[0].category[d].tooltext),k),e+=1);f.catCount=e},getPointStub:function(c,d,e,g,f,h,r,z,k,m){var p=this.dataObj.chart,E=this.isDual,s=this.isXY,V=this.isMLAxis,U=this.isStacked,P=this.isErrorChart,t;g=g[w];var v,ha,T=null===d?d:this.numberFormatter.dataLabels(d,r),pa,ra=J(C(b(c.tooltext,f.plottooltext,g.tooltext))),ka=g.tooltipSepChar,B,H={},I,ja,K,F,Ia,R,M,Ca,Ta;P&&(ja=null===z?z:this.numberFormatter.dataLabels(z,r),
R=null===d?l:this.numberFormatter.percentValue(z/d*100),B=[1,2,3,4,5,6,7,99,100,101,102],d={yaxisName:F=C(E?r?p.syaxisname:p.pyaxisname:p.yaxisname),xaxisName:Ia=C(p.xaxisname),formattedValue:T,label:e,errorDataValue:ja,errorPercentValue:R},s?(K=null===k?k:this.numberFormatter.xAxis(k),M=null===m?l:this.numberFormatter.percentValue(k/m*100),B.push(103,104,105,106,107,108,109,110),Ta=b(c.horizontalerrorvalue,c.errorvalue),d.errorValue=Ca=b(c.verticalerrorvalue,c.errorvalue),m=J(C(b(c.verticalerrorplottooltext,
c.errorplottooltext,f.verticalerrorplottooltext,f.errorplottooltext,p.verticalerrorplottooltext,p.errorplottooltext))),null!==z&&(d.verticalErrorDataValue=ja,d.verticalErrorPercentValue=R,d.verticalErrorValue=Ca),null!==k&&(d.horizontalErrorDataValue=K,d.horizontalErrorPercentValue=M,d.horizontalErrorValue=Ta),I=J(C(b(c.horizontalerrorplottooltext,c.errorplottooltext,f.horizontalerrorplottooltext,f.errorplottooltext,p.horizontalerrorplottooltext,p.errorplottooltext))),H._hErrortoolText=g.showTooltip?
void 0!==I?n(I,B,{yaxisName:F=C(E?r?p.syaxisname:p.pyaxisname:p.yaxisname),xaxisName:Ia=C(p.xaxisname),formattedValue:T,label:e,errorDataValue:K,errorPercentValue:M,errorValue:Ta,verticalErrorDataValue:ja,verticalErrorPercentValue:R,verticalErrorValue:Ca,horizontalErrorDataValue:K,horizontalErrorPercentValue:M,horizontalErrorValue:Ta},c,p,f):null===z?!1:K:!1):(m=J(C(b(c.errorplottooltext,f.errorplottooltext,p.errorplottooltext))),d.errorValue=Ca=b(c.errorvalue)),H._errortoolText=g.showTooltip?void 0!==
m?n(m,B,d,c,p,f):null===z?!1:ja:!1);g.showTooltip?void 0!==ra?(U=[4,5,6,7],r={yaxisName:F||C(E?r?p.syaxisname:p.pyaxisname:V?f._yAxisName:p.yaxisname),xaxisName:Ia||C(p.xaxisname)},s?(U.push(8,9,10,11),r.yDataValue=T,r.xDataValue=e,P&&(U.push(103,104,105,106,107,108,109,110),null!==z&&(r.verticalErrorDataValue=ja,r.verticalErrorPercentValue=R,r.verticalErrorValue=Ca),null!==k&&(r.horizontalErrorDataValue=K,r.horizontalErrorPercentValue=M,r.horizontalErrorValue=Ta))):(U.push(1,2,3),r.formattedValue=
T,r.label=e,P&&(U.push(99,100,101,102),r.errorValue=Ca,null!==z&&(r.errorDataValue=ja,r.errorPercentValue=R))),f=n(ra,U,r,c,p,f)):null===T?f=!1:(g.seriesNameInToolTip&&(pa=D(f&&f.seriesname)),f=pa?pa+ka:l,f+=e?e+ka:l,g.showPercentInToolTip&&U?(ha=!0,f+="$percentValue"):f+=T):f=!1;a(c.showvalue,h)?void 0!==J(c.displayvalue)?t=C(c.displayvalue):g.showPercentValues?v=!0:t=T:t=l;H.link=b(c.link);H.displayValue=t;H.categoryLabel=e;H.toolText=f;H.showPercentValues=v;H.showPercentInToolTip=ha;return H}},
aa.singleseries);aa("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,e,g;g=a.sumXY;var h=a.sumX,r=a.sumY;f=a.xValues;e=a.sumXsqure;d=a.yValues;a=a.sumYsqure;b?(f.sort(Gb),d=f[0],f=f[f.length-1],g=(c*g-h*r)/(c*e-Y(h,2)),e=isNaN(g)?r/c:g*(d-h/c)+r/c,c=isNaN(g)?r/c:g*(f-h/c)+r/c,c=[{x:d,y:e},{x:f,y:c}]):(d.sort(Gb),e=d[0],d=d[d.length-
1],g=(c*g-h*r)/(c*a-Y(r,2)),f=isNaN(g)?h/c:g*(e-r/c)+h/c,c=isNaN(g)?h/c:g*(d-r/c)+h/c,c=[{x:f,y:e},{x:c,y:d}]);return c},pointValueWatcher:function(a,b,c,d){var f=a[w];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+=Y(c,2),d.xValues.push(c),d.sumYsqure+=Y(b,2),d.yValues.push(b))}},aa.multiseries);aa("scrollbase",{postSeriesAddition:function(){var c=this.hcJSON,
d=c.xAxis.scroll,e=c[w],g=e.width,f=e.x.catCount,h=this.dataObj.chart,r=this.colorManager,z,k,l,n,p,m;e.isScroll=!0;c.chart.hasScroll=!0;if(this.isStacked)z=1;else{k=z=0;n=c.series;m=c.chart.defaultSeriesType;for(l=n.length;k<l;k++)p=b(n[k].type,m),"column"===p&&(z+=1);1>z&&(z=1)}f*=z;g=a(h.numvisibleplot,ya(g/this.avgScrollPointWidth));d&&2<=g&&g<f&&(d.enabled=!0,d.vxLength=g/z,d.startPercent=H(1,S(0,parseFloat(h.scrolltoend)||0)),d.padding=a(h.scrollpadding,0),d.height=a(h.scrollheight,16),d.showButtons=
!!a(h.scrollshowbuttons,1),d.buttonPadding=a(h.scrollbtnpadding,0),d.color=M(b(h.scrollcolor,r.getColor("altHGridColor"))),e.marginBottomExtraSpace+=d.padding+d.height);if(pa||a(h.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){Q(a,"selectionstart selectiondrag",aa.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&&ja(b.elements.anchor.element,"selectionstart"===a.type?"dragstart":"drag",{pageX:-c,pageY:-a.chartY})}},aa.multiseries);aa("logbase",{isLog:!0,isValueAbs:!0,configureAxis:function(d,g){var h=d[w],r=h.axisGridManager,f=this.numberFormatter,z=d.series,k=d.xAxis,n=d.yAxis[0],p=h[0],m=g.chart,E=!a(m.showyaxislimits,m.showlimits,m.showyaxisvalues,1),s=!a(m.showdivlinevalues,m.showyaxisvalues,1),V=a(m.base,m.logbase,10),U=a(m.yaxismaxvalue),P=
a(m.yaxisminvalue),t=this.colorManager,v=1===a(m.showminordivlinevalues),ha=b(m.minordivlinecolor,n.gridLineColor,t.getColor("divLineColor")),T=a(m.minordivlinealpha,m.divlinealpha,t.getColor("divLineAlpha")),t=[n,void 0,void 0,a(m.divlinethickness,2),n.gridLineDashStyle,n.gridLineColor,2],ha=[n,void 0,void 0,a(m.minordivlinethickness,1),n.gridLineDashStyle,Z(b(m.minordivlinecolor,ha),a(m.minordivlinealpha,T/2)),2],T=v||T&&ha[3],D=a(m.showaxislimitgridlines,this.showAxisLimitGridLines),pa=a(D,this.is3D||
d.chart.plotBorderWidth?0:1),B,ka;0>=V&&(V=10);0>=U&&(U=void 0);0>=P&&(P=void 0);U=this.getLogAxisLimits(p.max||V,p.min||1,U,P,V,T?m.numminordivlines:0);k.title.text=C(m.xaxisname);k.showLine=a(m.showxaxisline,m.showaxislines,0);k.lineThickness=a(m.xaxislinethickness,m.axislinethickness,1);k.lineAlpha=a(m.xaxislinealpha,m.axislinealpha,100);k.lineColor=Z(b(m.xaxislinecolor,m.axislinecolor,"000"));e(n,{title:{text:C(m.yaxisname)},labels:{enabled:!1},gridLineWidth:0,alternateGridColor:Aa,reversed:"1"===
m.invertyaxis,max:ra(U.Max,V),min:ra(U.Min,V),showLine:a(m.showyaxisline,m.showaxislines,0),lineThickness:a(m.yaxislinethickness,m.axislinethickness,1),lineAlpha:a(m.yaxislinealpha,m.axislinealpha,100),lineColor:Z(b(m.yaxislinecolor,m.axislinecolor,"000"))});for(m=z.length;m--;)if(P=z[m])for(P.threshold=n.min,ka=(P=P.data)&&P.length||0;ka--;)B=P[ka],B.y=ra(B.y,V);delete p.max;delete p.min;p.isLog=!0;n.reversed&&0<=n.min&&(d.plotOptions.series.threshold=n.max);g.trendlines&&c(g.trendlines,[{max:U.Max,
min:U.Min,plotLines:n.plotLines,plotBands:n.plotBands,title:n.title}],h);for(m=n.plotLines.length;m--;)B=n.plotLines[m],B.value&&(B.value=ra(B.value,V)),B.from&&(B.from=ra(B.from,V)),B.to&&(B.to=ra(B.to,V));for(m=n.plotBands.length;m--;)B=n.plotBands[m],B.from&&(B.from=ra(B.from,V)),B.to&&(B.to=ra(B.to,V));for(m=U.divArr.length;m--;){B=U.divArr[m];if(B.ismajor)t[1]=ra(B.value,V),t[2]=f.yAxis(B.value),r.addAxisGridLine.apply(r,t);else if(T||B.isextreme)ha[1]=ra(B.value,V),ha[2]=v||B.isextreme?f.yAxis(B.value):
l,r.addAxisGridLine.apply(r,ha);P=n.plotLines[n.plotLines.length-1];B.isextreme?(P.width=D||pa&&(!B.isMin||!k.showLine)?P.width:0.1,E&&(P.label.text=l)):s&&P.label&&(P.label.text=l)}},getLogAxisLimits:function(a,b,c,d,f,e){var g=function(a){return null===a||void 0===a||""===a||isNaN(a)?!1:!0},h=0,r=[],z,k,l,m,n,p,E,s;g(c)&&Number(c)>=a?a=Number(c):(c=1<f?sa(ca(a)/ca(f)):ya(ca(a)/ca(f)),a=Y(f,c),k=c);k||(k=1<f?sa(ca(a)/ca(f)):ya(ca(a)/ca(f)));g(d)&&Number(d)<=b?b=Number(d):(c=1<f?ya(ca(b)/ca(f)):sa(ca(b)/
ca(f)),b=Y(f,c),z=c);z||(z=1<f?ya(ca(b)/ca(f)):sa(ca(b)/ca(f)));d=Number(String(ca(f)/ca(10)));e=Number(e)||(ya(d)==d?8:4);1<f?(l=k,m=z):0<f&&1>f&&(l=z,m=k);d=k;for(z=l;z>=m;--z)if(l=Y(f,d),b<=l&&a>=l&&(r[h++]={value:l,ismajor:!0}),z!=m){k=1<f?-1:1;l=Y(f,d)-Y(f,d+k);c=l/(e+1);for(g=1;g<=e;++g)l=Y(f,d+k)+c*g,b<=l&&a>=l&&(r[h++]={value:l,ismajor:!1});1<f?d--:d++}for(E in r)for(s in r[E])"value"==s&&(n||(n=r[E][s]==b&&(r[E].isextreme=r[E].isMin=!0)),p||(p=r[E][s]==a&&(r[E].isextreme=r[E].isMax=!0)));
n||(r[h++]={value:b,ismajor:!0,isMin:!0,isextreme:!0});p||(r[h]={value:a,ismajor:!0,isMax:!0,isextreme:!0});return{Max:a,Min:b,divArr:r}},pointValueWatcher:function(b,c,d){b=b[w];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)}},aa.mslinebase);ga=aa.singleseries;la=aa.multiseries;aa("column2dbase",{point:function(c,d,h,r,f){var z=h.length,k=f[w],m=k.axisGridManager,n=f.xAxis,k=k.x,p=this.colorManager,E=/3d$/.test(f.chart.defaultSeriesType),s=this.isBar,V=/^spark/i.test(c);
c=b(r.showplotborder,V||E?Ha:La)===La?E?1:a(r.plotborderthickness,1):0;var U=f.chart.useRoundEdges,P=a(r.plotborderalpha,r.plotfillalpha,100),v=b(r.plotbordercolor,p.getColor("plotBorderColor")).split(za)[0],V=V?"":a(r.useplotgradientcolor,1)?F(r.plotgradientcolor,p.getColor("plotGradientColor")):l,ha=0,T=Boolean(a(r.use3dlighting,1)),pa=f[w].numberFormatter,B,ra=a(r.plotborderdashed,0),ka=a(r.plotborderdashlen,5),H=a(r.plotborderdashgap,4),ja,I,K,Ia,J,R,M,Ca,Ta,Q,N,ma,Ja,Ka;for(K=0;K<z;K+=1)Ja=h[K],
Ja.vline?m.addVline(n,Ja,ha,f):(I=pa.getCleanValue(Ja.value),B=a(Ja.showlabel,r.showlabels,1),Ia=C(D(Ja.label,Ja.name)),m.addXaxisCat(n,ha,ha,B?Ia:l),ha+=1,ja=b(Ja.color,p.getPlotColor()),J=b(Ja.alpha,r.plotfillalpha,Oa),R=b(Ja.ratio,r.plotfillratio),M=b(360-r.plotfillangle,s?180:90),Ca=b(Ja.alpha,P),Ta=a(Ja.dashed,ra),Q=b(Ja.dashgap,H),N=b(Ja.dashlen,ka),0>I&&(M=s?180-M:360-M),Ka={opacity:J/100},ma=t(ja+za+V.replace(/,+?$/,""),J,R,M,U,v,Ca+l,s,E),B=Ta?g(N,Q,c):"none",ja=this.pointHoverOptions(Ja,
d,{plotType:"column",is3d:E,isBar:s,use3DLighting:T,isRoundEdged:U,color:ja,gradientColor:V,alpha:J,ratio:R,angle:M,borderWidth:c,borderColor:v,borderAlpha:Ca,borderDashed:Ta,borderDashGap:Q,borderDashLen:N,shadow:Ka}),d.data.push(e(this.getPointStub(Ja,I,Ia,f),{y:I,shadow:Ka,color:ma[0],borderColor:ma[1],borderWidth:c,use3DLighting:T,dashStyle:B,tooltipConstraint:this.tooltipConstraint,hoverEffects:ja.enabled&&ja.options,rolloverProperties:ja.enabled&&ja.rolloverOptions})),this.pointValueWatcher(f,
I));k.catCount=ha;return d},defaultSeriesType:"column"},ga);aa("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(c,d,h,r,f){var z,k,m,n,p,E,s,V,U,P,t,v,ha,T,pa,B,ra,ka,H,ja,I,K,F,Ia,J,R;c=f.chart;var Ca=h.length,Ta=f.xAxis;z=f[w];var Q=this.colorManager,N,Ja=z.axisGridManager,ma=0,Ka=z.x,S=f[w].numberFormatter,ob,ab,bb;T=M(b(r.linecolor,r.palettecolors,Q.getColor("plotFillColor")));pa=b(r.linealpha,Oa);t=a(r.linethickness,this.lineThickness,4);v=Boolean(a(r.linedashed,
0));s=a(r.linedashlen,5);V=a(r.linedashgap,4);J=a(r.anchorshadow,0);d.color={FCcolor:{color:T,alpha:pa}};d.lineWidth=t;d.anchorShadow=J;d.step=b(this.stepLine,d.step);d.drawVerticalJoins=Boolean(a(d.drawVerticalJoins,r.drawverticaljoins,1));d.useForwardSteps=Boolean(a(d.useForwardSteps,r.useforwardsteps,1));ha=a(r.drawanchors,r.showanchors);for(k=0;k<Ca;k+=1)n=h[k],n.vline?Ja.addVline(Ta,n,ma,f):(z=S.getCleanValue(n.value),p=a(n.showlabel,r.showlabels,1),m=C(D(n.label,n.name)),Ja.addXaxisCat(Ta,ma,
ma,p?m:l),ma+=1,U=M(b(n.color,T)),P=a(n.alpha,pa),p=a(n.dashed,v)?g(s,V,t):"none",E={opacity:P/100},ra=a(n.anchorsides,r.anchorsides,0),Ia=a(n.anchorstartangle,r.anchorstartangle,90),ja=a(n.anchorradius,r.anchorradius,this.anchorRadius,3),H=M(b(n.anchorbordercolor,r.anchorbordercolor,T)),ka=a(n.anchorborderthickness,r.anchorborderthickness,this.anchorBorderThickness,1),I=M(b(n.anchorbgcolor,r.anchorbgcolor,Q.getColor("anchorBgColor"))),K=b(n.anchoralpha,r.anchoralpha,Oa),F=b(n.anchorbgalpha,r.anchorbgalpha,
K),ob=b(n.anchorimageurl,r.anchorimageurl),ab=b(n.anchorimagescale,r.anchorimagescale,100),bb=b(n.anchorimagealpha,r.anchorimagealpha,100),B=void 0===ha?0!==P:!!ha,R=Boolean(a(n.anchorshadow,J,0)),N=this.pointHoverOptions(n,d,{plotType:"anchor",anchorBgColor:I,anchorAlpha:K,anchorBgAlpha:F,anchorAngle:Ia,anchorBorderThickness:ka,anchorBorderColor:H,anchorBorderAlpha:K,anchorSides:ra,anchorRadius:ja,imageUrl:ob,imageScale:ab,imageAlpha:bb,shadow:E}),d.data.push(e(this.getPointStub(n,z,m,f),{y:z,color:{FCcolor:{color:U,
alpha:P}},shadow:E,dashStyle:p,valuePosition:b(n.valueposition,c.valuePosition),marker:{enabled:!!B,shadow:R&&{opacity:K/100},fillColor:{FCcolor:{color:I,alpha:F*K/100+l}},lineColor:{FCcolor:{color:H,alpha:K}},lineWidth:ka,radius:ja,startAngle:Ia,symbol:ba(ra),imageUrl:ob,imageScale:ab,imageAlpha:bb},tooltipConstraint:this.tooltipConstraint,hoverEffects:N.enabled&&N.options,rolloverProperties:N.enabled&&N.rolloverOptions})),this.pointValueWatcher(f,z));Ka.catCount=ma;return d},defaultZeroPlaneHighlighted:!1},
ga);aa("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,point:function(c,d,h,r,f){c=f.chart;var z=h.length,k=f.xAxis,n=f[w],m=n.axisGridManager,n=n.x,p=f[w].numberFormatter,E=this.colorManager,s=0,V,U,P,t,v,ha,T,pa,B,ra,ka,H,ja,I,K,Ia,R,Ca,Ta,N,Q,Ja,ma,Ka,ob,ab,bb,X;v=b(r.plotfillcolor,r.areabgcolor,J(r.palettecolors)?E.getPlotColor(0):E.getColor("plotFillColor")).split(/\s*\,\s*/)[0];Q=za+(a(r.useplotgradientcolor,1)?F(r.plotgradientcolor,E.getColor("plotGradientColor")):l);ha=b(r.plotfillalpha,
r.areaalpha,this.isStacked?Oa:"90");T=a(r.plotfillangle,270);pa=b(r.plotbordercolor,r.areabordercolor,J(r.palettecolors)?E.getPlotColor(0):E.getColor("plotBorderColor")).split(/\s*\,\s*/)[0];B=r.showplotborder==Ha?Ha:b(r.plotborderalpha,r.plotfillalpha,r.areaalpha,Oa);V=a(r.plotborderangle,270);U=Boolean(a(r.plotborderdashed,0));P=a(r.plotborderdashlen,5);ja=a(r.plotborderdashgap,4);R=a(r.plotborderthickness,r.areaborderthickness,1);Ja=d.fillColor={FCcolor:{color:v+Q.replace(/,+?$/,""),alpha:ha,ratio:eb,
angle:T}};d.lineWidth=R;d.dashStyle=U?g(P,ja,R):"none";d.lineColor={FCcolor:{color:pa,alpha:B,ratio:Oa,angle:V}};d.step=b(this.stepLine,d.step);d.drawVerticalJoins=Boolean(a(d.drawVerticalJoins,r.drawverticaljoins,1));d.useForwardSteps=Boolean(a(d.useForwardSteps,r.useforwardsteps,1));R=Boolean(a(r.drawanchors,r.showanchors,1));d.anchorShadow=ma=a(r.anchorshadow,0);for(U=0;U<z;U+=1)ja=h[U],ja.vline?m.addVline(k,ja,s,f):(V=p.getCleanValue(ja.value),t=a(ja.showlabel,r.showlabels,1),P=C(D(ja.label,ja.name)),
m.addXaxisCat(k,s,s,t?P:l),s+=1,t=a(ja.anchorsides,r.anchorsides,0),H=a(ja.anchorstartangle,r.anchorstartangle,90),ra=a(ja.anchorradius,r.anchorradius,3),ka=M(b(ja.anchorbordercolor,r.anchorbordercolor,pa)),Ca=a(ja.anchorborderthickness,r.anchorborderthickness,1),I=M(b(ja.anchorbgcolor,r.anchorbgcolor,E.getColor("anchorBgColor"))),K=b(ja.anchoralpha,r.anchoralpha,this.anchorAlpha,Ha),Ia=b(ja.anchorbgalpha,r.anchorbgalpha,K),Ka=Boolean(a(ja.anchorshadow,ma,0)),Ta=J(ja.color),N=a(ja.alpha),Ta=void 0!==
Ta||void 0!==N?{FCcolor:{color:Ta?M(Ta)+Q:v,alpha:void 0===N?W(N)+l:ha,ratio:eb,angle:T}}:Ja,ob=b(ja.anchorimageurl,r.anchorimageurl),ab=b(ja.anchorimagescale,r.anchorimagescale,100),bb=b(ja.anchorimagealpha,r.anchorimagealpha,100),N={opacity:S(N,B)/100,inverted:!0},X=this.pointHoverOptions(ja,d,{plotType:"anchor",anchorBgColor:I,anchorAlpha:K,anchorBgAlpha:Ia,anchorAngle:H,anchorBorderThickness:Ca,anchorBorderColor:ka,anchorBorderAlpha:K,anchorSides:t,anchorRadius:ra,imageUrl:ob,imageScale:ab,imageAlpha:bb,
shadow:N}),d.data.push(e(this.getPointStub(ja,V,P,f),{y:V,shadow:N,color:Ta,valuePosition:b(ja.valueposition,c.valuePosition),marker:{enabled:R,shadow:Ka&&{opacity:K/100},fillColor:{FCcolor:{color:I,alpha:Ia*K/100+l}},lineColor:{FCcolor:{color:ka,alpha:K}},lineWidth:Ca,radius:ra,symbol:ba(t),startAngle:H,imageUrl:ob,imageScale:ab,imageAlpha:bb},tooltipConstraint:this.tooltipConstraint,previousY:this.pointValueWatcher(f,V),hoverEffects:X.enabled&&X.options,rolloverProperties:X.enabled&&X.rolloverOptions})));
n.catCount=s;return d}},ga);aa("mscolumn2dbase",{point:function(c,d,e,g,f,h,r,z,k){c=a(g.ignoreemptydatasets,0);var n=!1,m=e.data||[],p=f[w],E=b(d.type,this.defaultSeriesType),s=b(d.isStacked,f.plotOptions[E]&&f.plotOptions[E].stacking),V=b(this.isValueAbs,p.isValueAbs,!1),U=a(d.yAxis,0),P=f[w].numberFormatter,t=this.colorManager,v=t.getPlotColor(),C,ha=f._FCconf.isBar,T=d.hoverEffects;s||(d.columnPosition=a(k,z,r));d.name=J(e.seriesname);if(0===a(e.includeinlegend)||void 0===d.name)d.showInLegend=
!1;d.color=b(e.color,v).split(za)[0].replace(/^#?/g,"#");r=/3d$/.test(f.chart.defaultSeriesType);k=b(360-g.plotfillangle,ha?180:90);0>C&&(k=360-k);e=d._dataParser=ib.column(f,{seriesname:d.name,plottooltext:e.plottooltext,color:b(e.color,v),alpha:b(e.alpha,g.plotfillalpha,Oa),plotgradientcolor:a(g.useplotgradientcolor,1)?F(g.plotgradientcolor,t.getColor("plotGradientColor")):l,ratio:b(e.ratio,g.plotfillratio),fillAangle:k,isRoundEdges:f.chart.useRoundEdges,plotBorderColor:b(g.plotbordercolor,r?jb:
t.getColor("plotBorderColor")).split(za)[0],plotBorderAlpha:g.showplotborder==Ha||r&&g.showplotborder!=La?Ha:b(g.plotborderalpha,Oa),isBar:this.isBar,is3d:r,dashed:a(e.dashed,g.plotborderdashed,0),dashLen:a(e.dashlen,g.plotborderdashlen,5),dashGap:a(e.dashgap,g.plotborderdashgap,4),borderWidth:a(g.plotborderthickness,La),showValues:a(e.showvalues,p.showValues),yAxis:U,use3DLighting:a(g.use3dlighting,1),_sourceDataset:e,hoverEffects:T},this);for(g=0;g<h;g+=1)(p=m[g])?(C=P.getCleanValue(p.value,V),
null===C?d.data.push({y:null}):(n=!0,p=e(p,g,C),d.data.push(p),p.previousY=this.pointValueWatcher(f,C,U,s,g,z,E))):d.data.push({y:null});!c||n||this.realtimeEnabled||(d.showInLegend=!1);return d},defaultSeriesType:"column"},la);aa("mslinebase",{hasVDivLine:!0,point:function(c,d,e,g,f,h){c=a(g.ignoreemptydatasets,0);var r=!1,z=this.colorManager,k,n;k=f.chart;var m=e.data||[];n=f[w];var p=b(d.type,this.defaultSeriesType),E=b(d.isStacked,f.plotOptions[p]&&f.plotOptions[p].stacking),s=b(this.isValueAbs,
n.isValueAbs,!1),V=a(d.yAxis,0),U=this.numberFormatter,P=M(b(e.color,g.linecolor,z.getPlotColor())),t=a(e.alpha,g.linealpha,Oa),v=a(g.showshadow,this.defaultPlotShadow,1),C=a(e.drawanchors,e.showanchors,g.drawanchors,g.showanchors),ha=a(e.anchorsides,g.anchorsides,0),T=a(e.anchorstartangle,g.anchorstartangle,90),pa=a(e.anchorradius,g.anchorradius,3),B=M(b(e.anchorbordercolor,g.anchorbordercolor,P)),D=a(e.anchorborderthickness,g.anchorborderthickness,1),z=M(b(e.anchorbgcolor,g.anchorbgcolor,z.getColor("anchorBgColor"))),
ra=b(e.anchoralpha,g.anchoralpha,Oa),ka=b(e.anchorbgalpha,g.anchorbgalpha,ra),ja=ra&&b(e.anchorshadow,g.anchorshadow,0),H=d.hoverEffects;d.name=J(e.seriesname);if(0===a(e.includeinlegend)||void 0===d.name||0===t&&1!==C)d.showInLegend=!1;d.marker={fillColor:{FCcolor:{color:z,alpha:ka*ra/100+l}},lineColor:{FCcolor:{color:B,alpha:ra+l}},lineWidth:D,radius:pa,symbol:ba(ha),startAngle:T};d.color={FCcolor:{color:P,alpha:t}};d.shadow=v?{opacity:v?t/100:0}:!1;d.anchorShadow=ja;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.lineWidth=a(e.linethickness,g.linethickness,2);k=d._dataParser=ib.line(f,{seriesname:d.name,plottooltext:e.plottooltext,lineAlpha:t,anchorAlpha:ra,showValues:a(e.showvalues,n.showValues),yAxis:V,lineDashed:Boolean(a(e.dashed,g.linedashed,0)),lineDashLen:a(e.linedashlen,g.linedashlen,5),lineDashGap:a(e.linedashgap,g.linedashgap,4),lineThickness:d.lineWidth,
lineColor:P,valuePosition:b(e.valueposition,k.valuePosition),drawAnchors:C,anchorBgColor:z,anchorBgAlpha:ka,anchorBorderColor:B,anchorBorderThickness:D,anchorRadius:pa,anchorSides:ha,anchorAngle:T,anchorShadow:d.anchorShadow,anchorStartAngle:a(e.anchorstartangle,g.anchorstartangle),_sourceDataset:e,hoverEffects:H,imageUrl:b(e.anchorimageurl,g.anchorimageurl),imageScale:b(e.anchorimagescale,g.anchorimagescale,100),imageAlpha:b(e.anchorimagealpha,g.anchorimagealpha,100)},this);for(g=0;g<h;g+=1)(n=m[g])?
(e=U.getCleanValue(n.value,s),null===e?d.data.push({y:null}):(r=!0,n=k(n,g,e),d.data.push(n),n.previousY=this.pointValueWatcher(f,e,V,E,g,0,p))):d.data.push({y:null});!c||r||this.realtimeEnabled||(d.showInLegend=!1);return d},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},la);aa("msareabase",{hasVDivLine:!0,point:function(c,d,e,h,f,r){c=a(h.ignoreemptydatasets,0);var z=!1,k=f.chart,n=e.data||[],m=f[w],p=b(d.type,this.defaultSeriesType),E=b(d.isStacked,f.plotOptions[p]&&
f.plotOptions[p].stacking),s=b(this.isValueAbs,m.isValueAbs,!1),V=a(d.yAxis,0),U=f[w].numberFormatter,P=this.colorManager,t=P.getPlotColor(),v=b(e.color,h.plotfillcolor,t).split(za)[0].replace(/^#?/g,"#").split(za)[0],C=b(e.alpha,h.plotfillalpha,h.areaalpha,this.areaAlpha,70),ha=a(h.plotfillangle,270),t=b(e.plotbordercolor,h.plotbordercolor,h.areabordercolor,this.isRadar?t:"666666").split(za)[0],T=b(e.showplotborder,h.showplotborder)==Ha?Ha:b(e.plotborderalpha,h.plotborderalpha,e.alpha,h.plotfillalpha,
h.areaalpha,"95"),pa=a(h.plotborderangle,270),B=a(e.anchorsides,h.anchorsides,0),D=a(e.anchorstartangle,h.anchorstartangle,90),ra=a(e.anchorradius,h.anchorradius,3),ka=M(b(e.anchorbordercolor,h.anchorbordercolor,v)),ja=a(e.anchorborderthickness,h.anchorborderthickness,1),H=M(b(e.anchorbgcolor,h.anchorbgcolor,P.getColor("anchorBgColor"))),K=a(e.anchoralpha,h.anchoralpha,this.anchorAlpha,0),I=a(e.anchorbgalpha,h.anchorbgalpha,K),Ia=K&&b(e.anchorshadow,h.anchorshadow,0),R=d.hoverEffects;this.isRadar||
(v+=za+(a(h.useplotgradientcolor,1)?F(h.plotgradientcolor,P.getColor("plotGradientColor")):l),v=v.replace(/,+?$/,""));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));d.name=b(e.seriesname);if(0===a(e.includeinlegend)||void 0===d.name)d.showInLegend=!1;d.fillColor={FCcolor:{color:v,alpha:C,ratio:eb,angle:ha}};d.color=v;d.shadow={opacity:a(h.showshadow,1)?T/100:0};d.anchorShadow=
Ia;d.lineColor={FCcolor:{color:t,alpha:T,ratio:Oa,angle:pa}};d.lineWidth=b(e.plotborderthickness,h.plotborderthickness,1);d.dashStyle=Boolean(a(e.dashed,h.plotborderdashed,0))?g(a(e.dashlen,h.plotborderdashlen,5),a(e.dashgap,h.plotborderdashgap,4),d.lineWidth):void 0;d.marker={fillColor:{FCcolor:{color:H,alpha:I*K/100+l}},lineColor:{FCcolor:{color:ka,alpha:K+l}},lineWidth:ja,radius:ra,symbol:ba(B),startAngle:D};e=d._dataParser=ib.area(f,{seriesname:d.name,plottooltext:e.plottooltext,lineAlpha:T,anchorAlpha:K,
showValues:a(e.showvalues,m.showValues),yAxis:V,fillColor:v,fillAlpha:C,valuePosition:b(e.valueposition,k.valuePosition),drawAnchors:Boolean(a(e.drawanchors,h.drawanchors,h.showanchors,1)),anchorBgColor:H,anchorBgAlpha:I,anchorBorderColor:ka,anchorBorderThickness:ja,anchorRadius:ra,anchorSides:B,anchorAngle:D,anchorShadow:d.anchorShadow,getLink:this.linkClickFN,anchorStartAngle:a(e.anchorstartangle,h.anchorstartangle),_sourceDataset:e,hoverEffects:R,imageUrl:b(e.anchorimageurl,h.anchorimageurl),imageScale:b(e.anchorimagescale,
h.anchorimagescale,100),imageAlpha:b(e.anchorimagealpha,h.anchorimagealpha,100)},this);for(k=0;k<r;k+=1)(m=n[k])?(h=m?U.getCleanValue(m.value,s):null,null===h?d.data.push({y:null}):(z=!0,m=e(m,k,h),d.data.push(m),m.previousY=this.pointValueWatcher(f,h,V,E,k,0,p))):d.data.push({y:null});!c||z||this.realtimeEnabled||(d.showInLegend=!1);return d},defaultSeriesType:"area",defaultPlotShadow:0},la);aa("scatterbase",{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",canvasPaddingModifiers:["anchorlabel"],
point:function(c,d,e,h,f,r,z){c=a(h.ignoreemptydatasets,0);var k=this.colorManager,n=k.getPlotColor(),m,p,E,s,V,U,P,t,v,C,ha,T,pa,B,D,ra,ka,ja,H;r=!1;var K,I;V=a(e.drawline,h.drawlines,0);U=a(e.drawprogressioncurve,0);s=e.data||[];var F,Ia,R,Ca,Ta,N=a(e.showvalues,f[w].showValues),Q=this.numberFormatter,Ja,ma=d._showRegression=a(e.showregressionline,h.showregressionline,0);d.zIndex=1;d.name=J(e.seriesname);if(0===a(e.includeinlegend)||void 0===d.name)d.showInLegend=!1;if(V||U)E=M(b(e.color,n)),s=
b(e.alpha,Oa),V=a(e.linethickness,h.linethickness,2),U=Boolean(a(e.linedashed,e.dashed,h.linedashed,0)),P=a(e.linedashlen,h.linedashlen,5),t=a(e.linedashgap,h.linedashgap,4),d.color=Z(b(e.linecolor,h.linecolor,E),a(e.linealpha,h.linealpha,s)),d.lineWidth=V,d.dashStyle=U?g(P,t,V):"none";V=Boolean(a(e.drawanchors,e.showanchors,h.drawanchors,h.showanchors,1));z=a(e.anchorsides,h.anchorsides,z+3);U=a(e.anchorradius,h.anchorradius,3);E=M(b(e.anchorbordercolor,e.color,h.anchorbordercolor,E,n));n=a(e.anchorborderthickness,
h.anchorborderthickness,1);P=M(b(e.anchorbgcolor,h.anchorbgcolor,k.getColor("anchorBgColor")));t=b(e.anchoralpha,e.alpha,h.anchoralpha,Oa);ha=b(e.anchorbgalpha,e.alpha,h.anchorbgalpha,t);K=b(e.anchorstartangle,h.anchorstartangle,90);d.anchorShadow=k=a(h.anchorshadow,0);d.marker={fillColor:this.getPointColor(P,Oa),lineColor:{FCcolor:{color:E,alpha:t+l}},lineWidth:n,radius:U,symbol:ba(z)};s=e.data||[];Ta=s.length;ma&&(d.events={hide:this.hideRLine,show:this.showRLine},F={sumX:0,sumY:0,sumXY:0,sumXsqure:0,
sumYsqure:0,xValues:[],yValues:[]},Ca=a(e.showyonx,h.showyonx,1),Ia=M(b(e.regressionlinecolor,h.regressionlinecolor,E)),R=a(e.regressionlinethickness,h.regressionlinethickness,n),m=W(a(e.regressionlinealpha,h.regressionlinealpha,t)),Ia=Z(Ia,m));for(p=0;p<Ta;p+=1)(v=s[p])?(m=Q.getCleanValue(v.y),H=Q.getCleanValue(v.x),null===m?d.data.push({y:null,x:H}):(r=!0,I=this.getPointStub(v,m,Q.xAxis(H),f,e,N),T=a(v.anchorsides,z),pa=a(v.anchorradius,U),B=M(b(v.anchorbordercolor,E)),D=a(v.anchorborderthickness,
n),ra=M(b(v.anchorbgcolor,P)),ka=b(v.anchoralpha,v.alpha,t),ja=b(v.anchorbgalpha,ha),C=Boolean(a(v.anchorshadow,k,0)),Ja=this.pointHoverOptions(v,d,{plotType:"anchor",anchorBgColor:ra,anchorAlpha:ka,anchorBgAlpha:ja,anchorAngle:K,anchorBorderThickness:D,anchorBorderColor:B,anchorBorderAlpha:ka,anchorSides:T,anchorRadius:pa,shadow:void 0}),d.data.push({y:m,x:H,displayValue:I.displayValue,toolText:I.toolText,link:I.link,marker:{enabled:V,shadow:C&&{opacity:ka/100},fillColor:{FCcolor:{color:ra,alpha:ja*
ka/100+l}},lineColor:{FCcolor:{color:B,alpha:ka}},lineWidth:D,radius:pa,symbol:ba(T),startAngle:b(v.anchorstartangle,e.anchorstartangle,h.anchorstartangle,90)},hoverEffects:Ja.enabled&&Ja.options,rolloverProperties:Ja.enabled&&Ja.rolloverOptions}),this.pointValueWatcher(f,m,H,ma&&F))):d.data.push({y:null});ma&&(e=this.getRegressionLineSeries(F,Ca,Ta),this.pointValueWatcher(f,e[0].y,e[0].x),this.pointValueWatcher(f,e[1].y,e[1].x),f={type:"line",color:Ia,showInLegend:!1,lineWidth:R,enableMouseTracking:!1,
marker:{enabled:!1},data:e,zIndex:0},d=[d,f]);c&&!r&&(d.showInLegend=!1);return d},postSeriesAddition:function(b,c){for(var d=b.chart,e=c.chart,f=b.series,g=0,h=f.length;g<h;g+=1)f[g]._showRegression&&(f[g].relatedSeries=[g+1]);d.clipBubbles=a(e.clipbubbles,1)},categoryAdder:function(c,d){var e,r=0,f,z=d[w].x,k,n=d.xAxis,m,p;p=c.chart;var E=parseInt(p.labelstep,10),s=a(p.showlabels,1),V=b(p.xaxislabelmode,"categories").toLowerCase(),U=this.colorManager,P=d[w].numberFormatter,t,v,ha,T,pa,B;d._FCconf.isXYPlot=
!0;E=1<E?E:1;z.catOccupied={};if("auto"!==V&&c.categories&&c.categories[0]&&c.categories[0].category){p=c.categories[0];p.font&&(d.xAxis.labels.style.fontFamily=p.font);void 0!==(f=a(p.fontsize))&&(1>f&&(f=1),d.xAxis.labels.style.fontSize=f+Pa,h(d.xAxis.labels.style));p.fontcolor&&(d.xAxis.labels.style.color=p.fontcolor.split(za)[0].replace(/^\#?/,"#"));e=b(p.verticallinecolor,U.getColor("divLineColor"));f=a(p.verticallinethickness,1);k=a(p.verticallinealpha,U.getColor("divLineAlpha"));U=a(p.verticallinedashed,
0);t=a(p.verticallinedashlen,4);v=a(p.verticallinedashgap,2);ha=Z(e,k);for(e=0;e<p.category.length;e+=1)m=p.category[e],k=P.getCleanValue(m.x),null===k||m.vline||(z.catOccupied[k]=!0,B=a(m.showlabel,m.showname,s),T=a(m.showverticalline,m.showline,m.sl,0),pa=a(m.linedashed,U),m=0===B||0!==r%E?l:C(D(m.label,m.name)),n.plotLines.push({isGrid:!0,isCat:!0,width:T?f:0,color:ha,dashStyle:g(t,v,f,pa),value:k,label:{text:m,style:n.labels.style,align:Ga,verticalAlign:ua,textAlign:Ga,rotation:0,x:0,y:0}}),this.pointValueWatcher(d,
null,k),r+=1);"mixed"===V&&(z.requiredAutoNumericLabels=a(this.requiredAutoNumericLabels,1))}else z.requiredAutoNumericLabels=a(this.requiredAutoNumericLabels,1);z.adjustMinMax=!0},getPointColor:function(a,b){var c,d;a=M(a);b=W(b);c=ia(a,70);d=na(a,50);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:0.4,cy:0.4,r:"100%",color:c+za+d,alpha:b+za+b,ratio:eb,radialGradient:!0}}}},aa.xybase);aa("mscombibase",{canvasPaddingModifiers:["anchor","anchorlabel"],series:function(d,e,g){var h,f,r,z,k=d.chart,
l,n=[],m=[],p=[],E,s,V=e[w],U=this.isDual,P=0,t;e.legend.enabled=Boolean(a(d.chart.showlegend,1));if(d.dataset&&0<d.dataset.length){this.categoryAdder(d,e);z=V.oriCatTmp.length;h=0;for(f=d.dataset.length;h<f;h+=1)switch(r=d.dataset[h],E=U&&"s"===b(r.parentyaxis,"p").toLowerCase()?!0:!1,l={hoverEffects:this.parseSeriesHoverOptions(d,e,r,g),visible:!a(r.initiallyhidden,0),legendIndex:h,data:[]},E?(l.yAxis=1,s=D(r.renderas,this.secondarySeriesType),this.secondarySeriesFilter&&(t=this.secondarySeriesFilter[s])):
(s=D(r.renderas,this.defaultSeriesType),this.defaultSeriesFilter&&(t=this.defaultSeriesFilter[s])),s=s.toLowerCase(),s){case "line":case "spline":l.type=!0===t?s:"line";n.push(aa.mslinebase.point.call(this,g,l,r,k,e,z,h));break;case "area":case "splinearea":l.type=!0===t?s:"area";e.chart.series2D3Dshift=!0;p.push(aa.msareabase.point.call(this,g,l,r,k,e,z,h));break;case "column":case "column3d":m.push(aa.mscolumn2dbase.point.call(this,g,l,d.dataset[h],k,e,z,h,void 0,P));P+=1;break;default:E?(l.type=
"line",n.push(aa.mslinebase.point.call(this,g,l,r,k,e,z,h))):(m.push(aa.mscolumn2dbase.point.call(this,g,l,d.dataset[h],k,e,z,h,void 0,P)),P+=1)}"0"!==k.areaovercolumns?(e.chart.areaOverColumns=!0,e.series=e.series.concat(m,p,n)):(e.chart.areaOverColumns=!1,e.series=e.series.concat(p,m,n));if(0===m.length&&1!==z)V.hasNoColumn=!0;else if(!this.isStacked)for(g=0,h=m.length;g<h;g+=1)m[g].numColumns=h;this.configureAxis(e,d);d.trendlines&&c(d.trendlines,e.yAxis,e[w],U,this.isBar)}}},aa.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",k=this.layerAboveDataset=g.layerAboveDataset,l=this.layerBelowDataset=g.layerBelowDataset,g=k.bands||(k.bands=[]),n=g.length,m=l.bands||(l.bands=[]),p=m.length,s=k.lines||(k.lines=[]),w=s.length,t=l.lines||(l.lines=[]),v=t.length,k=k.labels||(k.labels=[]),C=k.length,l=l.labels||(l.labels=[]),B=l.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]);m.push(this.belowBandGroup);p&&m[p].insertAfter(m[p-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);s.push(this.topLineGroup);w&&s[w].insertAfter(s[w-1]);t.push(this.belowLineGroup);v&&t[v].insertAfter(t[v-1]);k.push(this.topLabelGroup);C&&k[C].insertAfter(k[C-1]);l.push(this.belowLabelGroup);B&&l[B].insertAfter(l[B-1]);this.isReverse=d;this.configure()}function k(a,b,c,d){return aa(b-c[1]-d.top,a-c[0]-d.left)}function B(a,b){var c=b?360:qb;a=(a||0)%c;return 0>a?c+a:
a}var v=this,l=v.window,c=v.hcLib,K=c.Raphael,b=c.chartAPI,J=/msie/i.test(l.navigator.userAgent)&&!l.opera,a=l.document,D=l.Image,F="VML"===K.type,C=c.BLANKSTRING,w="rgba(192,192,192,"+(J?0.002:1E-6)+")",J=c.TOUCH_THRESHOLD_PIXELS,e=c.CLICK_THRESHOLD_PIXELS,g=c.stubFN,n={pageX:0,pageY:0},s=parseFloat,R=parseInt,m=c.extend2,I=c.addEvent,Q=c.getMouseCoordinate,X=c.removeEvent,$=c.pluck,p=c.pluckNumber,H=c.toRaphaelColor,S=c.setImageDisplayMode,fa=c.FC_CONFIG_STRING,sa=c.plotEventHandler,ya=c.isArray,
ca=c.each=function(a,b,c,d){var e;c||(c=a);d||(d={});if(ya(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},Y=c.createElement,xa=c.createContextMenu,t=c.hasTouch,M=t?J:e,h=c.getSentenceCase,N=c.getCrispValues,W=c.getValidValue,na=c.getFirstValue,ia=c.regex.dropHash,Z=c.HASHSTRING,Aa=function(a){return a!==Ga&&null!==a},Ga,oa=8===a.documentMode?"visible":"",ua=l.Math,ea=ua.sin,da=ua.cos,aa=ua.atan2,ba=ua.round,
ga=ua.min,la=ua.max,za=ua.abs,hb=ua.ceil,Ha=ua.floor,La=180/ua.PI,Oa=ua.PI,Pa=Oa/2,qb=2*Oa,sb=Oa+Pa,tb=c.getFirstColor,xb=c.graphics.getLightColor,kb=c.POSITION_TOP,eb=c.POSITION_BOTTOM,jb=c.POSITION_RIGHT,lb=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=0.75*c,e=0.5*c,g=0.33*c,h=ba(a-c)+0.5,k=ba(b-c)+0.5,l=ba(a+c)+0.5;c=ba(b+c)+0.5;var n=ba(a-d)+0.5,m=ba(b-d)+0.5,d=ba(a+d)+0.5,p=ba(b+e)+0.5,s=ba(a+e)+0.5,w=ba(b+g)+0.5;a=ba(a-e)+0.5;g=ba(b+g+g)+0.5;return["M",n,k,"L",d,k,d,m,n,m,"Z","M",h,m,"L",h,p,n,p,n,b,d,b,d,p,l,p,l,m,"Z","M",n,b,"L",n,c,d,c,d,b,"Z","M",s,w,"L",a,w,"M",s,g,"L",a,g]},exportIcon:function(a,b,c){var d=0.66*c,e=0.5*d,g=ba(a-c)+0.5,h=ba(b-c)+0.5,k=ba(a+c)+0.5;c=ba(b+c)-0.5;var l=ba(a-e)+0.5,n=b<c-3?c-3:ba(b)+0.5,e=ba(a+
e)-0.5,m=ba(a+d)-0.5,d=ba(a-d)+0.5;return["M",g,n,"L",g,c,k,c,k,n,k,c,g,c,"Z","M",a,c-1,"L",d,b,l,b,l,h,e,h,e,b,m,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=b.chart.renderTo,g=b.tooltip,h=d.layer,k,l;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;l=(k=b.chart)&&k.animation&&k.animation.duration;
d.animationCompleteQueue=[];e.innerHTML=C;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&&(k=a.friendlyName||"Vector image",d.definition&&d.definition.chart&&d.definition.chart.caption&&(k+=' with caption "'+d.definition.chart.caption+'"'),e._desc(k));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();ca(b.callbacks,function(a){a.apply(d,this)},[a]);ca(d.callbacks,function(a){a.apply(d,
this)},[a]);d.fusionCharts.annotations&&d.fusionCharts.annotations.draw(d);d.createChartStyleSheet();d.options.nativeMessage||l||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.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=m({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=m({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=m({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=m({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))},chartHoverManager:function(){var b=!1,c=function(c){var d=function(e){var g=e.target||e.originalTarget||e.srcElement||e.relatedTarget||e.fromElement,h=c.paper;e={chart:c,event:e};F?h.getById(g.parentNode.raphaelid)||(c.onContainerRollOut(e),b=!1,a.detachEvent("onmouseover",d)):g.viewportElement||(b=!1,c.onContainerRollOut(e),l.removeEventListener("mouseover",d))};return d};return function(d){var e=d.type,g=d.data;"mouseover"!==e&&"touchstart"!==
e||!1!==b||(b=!0,g.onContainerRollOver(d),F?a.attachEvent("onmouseover",c(g)):l.addEventListener("mouseover",c(g)))}}(),setChartEvents:function(){var a=this.options,b=this.eventListeners||(this.eventListeners=[]),a=this.link=a.chart.link,c=this.container,d=p(this.definition&&this.definition.chart.enablechartmousemoveevent,0);X(c,"click",this.onContainerClick);b.push(I(c,"click",this.onContainerClick,this));X(this.paper.canvas,"mouseover",this.chartHoverManager,this);X(this.paper.canvas,"touchstart",
this.chartHoverManager,this);X(this.paper.canvas,"mouseout",this.chartHoverManager,this);X(this.paper.canvas,"touchend",this.chartHoverManager,this);b.push(I(this.paper.canvas,"mouseover touchstart mouseout touchend",this.chartHoverManager,this));X(c,"mousemove",this.onContainerMouseMove,this);X(c,"touchmove",this.onContainerMouseMove,this);d&&b.push(I(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,k=c.width,l=c.height;h||(h=e.messageVeil=c.rect(0,0,k,l).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(k/2,l/2,C).attr({fill:"rgba(255,255,255,1)",
"font-family":"Verdana,sans","font-size":10,"line-height":14,ishot:!0}));a=a||C;this.smartLabel.setStyle({"line-height":"14px","font-family":"Verdana,sans","font-size":"10px"});c=this.smartLabel.getSmartText(a,k-(d.spacingRight||0)-(d.spacingLeft||0),l-(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=[]),k=a.layers,l=a.options,n=l[fa],b=n&&n.outCanvasStyle||b.outCanvasStyle||{},n=l.chart.toolbar||{},m=n.hDirection,p=c?1:n.vDirection,s=n.button||{},w=s.scale,t=s.width*s.scale,v=s.height*s.scale,C=m*(s.spacing*s.scale+t),B=s.radius,D=(l=l.exporting)&&l.buttons||{},H=D.exportButton&&!1!==D.exportButton.enabled,D=D.printButton&&!1!==D.printButton.enabled,K,I=k.buttons||(k.buttons=d.group("buttons").trackTooltip(!0));g.y||(g.y=(c?0:n.y)+
n.vMargin*p+ga(0,v*p));g.x||(g.x=n.x+n.hMargin*m-la(0,t*m));g.count=0;g.add=function(a,b,c){c="string"===typeof c?{tooltip:c}:c||{};var e=0===g.count?C-m*s.spacing*s.scale:C,e=c.x||(g.x+=e),h=c.tooltip||"";g.push(a=d.button(e,c.y||g.y,Ga,a,{width:t,height:v,r:B,id:g.count++,verticalPadding:s.symbolHPadding*w,horizontalPadding:s.symbolHPadding},I).attr({ishot:!0,fill:[s.fill,s.labelFill,s.symbolFill,s.hoverFill],stroke:[s.stroke,s.symbolStroke],"stroke-width":[s.strokeWidth,s.symbolStrokeWidth]}).tooltip(h).buttonclick(b));
return a};H&&(h.push(K=e.exportMenu=xa({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}(l.exportformats)})),e.exportButton=g.add("exportIcon",function(a,b){return function(){K.visible?K.hide():K.show({x:a,y:b+1})}}(g.x+t,g.y+v),{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||{};this.canvasBorderWidth=b.plotBorderWidth||0;this.canvasTop=ba(b.marginTop)||0;this.canvasLeft=ba(b.marginLeft)||0;this.canvasWidth=ba(a.width-(b.marginLeft||0)-(b.marginRight||0));this.canvasHeight=ba(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,
k=a.options.chart||{},l=s(k.borderWidth)||0,n=0.5*l,m=2*l,p=k.borderWidth||0,w=a.chartHeight,t=a.chartWidth,C=d.backgroundImage,B=k.bgSWF,K=k.bgSWFAlpha/100,I=k.bgImageDisplayMode,F=k.bgImageVAlign,R=k.bgImageHAlign,J=k.bgImageScale,M=p+","+p+","+(t-2*p)+","+(w-2*p),N,Q,W,X,$,Z,Y;b.canvas.style.backgroundColor=k.containerBackgroundColor;!e&&(e=c.background=b.group("background"));c={x:l,y:l,width:b.width-m,height:b.height-m,stroke:"none",fill:H(k.backgroundColor)};g?g.attr(c):g=d.background=b.rect(c,
e);c={x:n,y:n,width:b.width-l,height:b.height-l,stroke:k.borderColor,"stroke-width":l,"stroke-dasharray":k.borderDashStyle,fill:"none",r:k.borderRadius||0};h?h.attr(c):h=d.chartborder=b.rect(c,e);B&&(N=new D,$=W=1,C=[],N.onload=function(){Q=S(I,F,R,J,p,t,w,N);Q["clip-rect"]=M;if(Q.tileInfo)for(W=Q.tileInfo.xCount,$=Z=Q.tileInfo.yCount,Y=Q.y,delete Q.tileInfo;W&&Q.width&&Q.height;)Z-=1,X?(C[void 0]=X.clone().attr({x:Q.x,y:Q.y}),e.appendChild(C[void 0])):C[void 0]=X=b.image(B,e).attr(Q).css({opacity:K}),
Q.y+=Q.height,0===Z&&(Z=$,W-=1,Q.x+=Q.width,Q.y=Y);else C[0]=b.image(B,e),C[0].attr(Q).css({opacity:K}).attr({visibility:oa,"clip-rect":M});v.raiseEvent("BackgroundLoaded",{url:B,bgImageAlpha:100*K,bgImageDisplayMode:I,bgImageVAlign:F,bgImageHAlign:R,bgImageScale:J,imageWidth:N.width,imageHeight:N.height},a.logic.chartInstance)},N.onerror=function(b){v.raiseEvent("BackgroundLoadError",{url:B,bgImageAlpha:100*K,error:b,bgImageDisplayMode:I,bgImageVAlign:F,bgImageHAlign:R,bgImageScale:J},a.logic.chartInstance)},
N.src=B,d.backgroundImage=C)},drawGraph:function(){var a=this,b=a.paper,c=a.plots=a.elements.plots,d=a.logic,e=a.layers,g=a.options,k=a.elements,l=g.chart,g=a.datasets=g.series,n=na(l.rendererId,l.defaultSeriesType),p=e.background,s=e.dataset=e.dataset||b.group("dataset").insertAfter(p),w,t,p=function(a,b){return function(e){var g=c[a],h,r={hcJSON:{series:[]}},k=r.hcJSON.series[a]||(r.hcJSON.series[a]={}),l=d.chartInstance.jsVars._reflowData;h=(e=na(e,!g.visible))?"visible":"hidden";ca(g.graphics,
function(a){!0!==a.data("alwaysInvisible")&&a.attr("visibility",h)});g.visible=e;b.visible=e;k.visible=e;m(l,r,!0)}},v=function(b){return function(d,e){a["legendClick"+n]&&a["legendClick"+n](c[b],d,e)||a.legendClick&&a.legendClick(c[b],d,e)}},C=function(b){return function(){return a.getEventArgs&&a.getEventArgs(c[b])}},B=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(s);a.drawCanvas();a.drawAxes();c||(c=a.plots=
a.plots||[],k.plots=c);e=0;for(k=g.length;e<k;e++)b=g[e]||{},s=b.updatePlot="updatePlot"+h($(b.type,b.plotType,n)),s=a[s],w=b.drawPlot="drawPlot"+h($(b.type,b.plotType,n)),w=a[w]||a.drawPlot,(t=c[e])||(c.push(t={index:e,items:[],data:b.data||[],name:b.name,userID:b.userID,setVisible:p(e,b),legendClick:v(e),getEventArgs:C(e),realtimeUpdate:B(e,s||w,b)}),b.plot=t,b.legendClick=t.legendClick,b.getEventArgs=t.getEventArgs,b.setVisible=t.setVisible),w.call(a,t,b);l.hasScroll&&(a.drawScroller(),a.finalizeScrollPlots())},
drawPlot:g,drawCanvas:g,drawAxes:g,drawScroller:function(){},drawLegend:function(){var a=this,b=a.options,c=a.paper,d=b.chart||{},e=b.legend,g=e.scroll,b={elements:{}},k=b.elements,l=a.layers.legend,n=k.box,s=k.caption,w=k.elementGroup,t="vertical"===e.layout,v=d.marginBottom,B=d.spacingBottom,D=d.spacingLeft,H=d.spacingRight,I=c.width,F=c.height,R=a.canvasTop,J=e.width,M=e.height,Q=e.borderRadius,N=e.backgroundColor,S=e.borderColor,W=e.borderWidth||0,X=0.5*W,$=0.5*W+2,d=p(e.padding,4),Z=0.5*d,Y,
ca,q,u,A,G,f,O=g&&g.enabled;t?(t=I-H-J,v=R+0.5*(F-v-R-M)+(e.y||0)):(t=D+0.5*(I-D-H-J)+(e.x||0),v=F-B-M);B=K.crispBound(t,v,J,M,W);t=B.x;v=B.y;J=B.width;M=B.height;l||(l=a.layers.legend=c.group("legend").insertBefore(a.layers.tracker).translate(t,v).attr("class","fusioncharts-legend"));a.addCSSDefinition(".fusioncharts-legend .fusioncharts-caption",m({"text-anchor":e.title.align},e.title.style));e.legendAllowDrag&&(a.addCSSDefinition(".fusioncharts-legend",{cursor:"move"}),ca=t,q=v,l.drag(function(a,
b){u=G+a;A=f+b;u+J+$>I&&(u=I-J-$);A+M+$>F&&(A=F-M-$);u<$&&(u=$);A<$&&(A=$);l.translate(u-ca,A-q);ca=u;q=A},function(){G=ca;f=q}));Q={x:0,y:0,width:J,height:M,r:Q,stroke:S,"stroke-width":W,fill:N||"none",ishot:e.legendAllowDrag};n?n.attr(Q):n=k.box=c.rect(Q,l);n.shadow(e&&e.shadow);O?(Y=M-d,n=","+J+","+Y,w=k.elementGroup=c.group("legenditems",l).attr({"clip-rect":"0,"+Z+n}),g=k.scroller||(k.scroller=c.scroller(J-10+Z-W,X,10,M-W,!1,{scrollPosition:g.scrollPosition||0,scrollRatio:(Y+d)/e.totalHeight,
showButtons:!1,displayStyleFlat:g.flatScrollBars},l)),g.attr("fill",e.legendScrollBgColor).scroll(function(b){w.transform(["T",0,(Y-e.totalHeight)*b]);m(a.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:b}}}},!0)})):w=k.elementGroup=l;if(e.title&&e.title.text!==C){switch(e.title.align){case "start":g=d;break;case "end":g=J-d-(O?10:0);break;default:g=0.5*J}Q={"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};s?s.attr(Q):s=k.caption=c.text(Q,w).attr("class","fusioncharts-caption")}this["draw"+h(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,k=d.symbolPadding,l=d.textPadding||2,n=p(d.padding,4),s=d.itemHoverStyle,t=d.itemHiddenStyle,C=d.itemStyle,B=C.color,t=t&&t.color||"#CCCCCC",D=s&&s.color||B,s=d.symbol3DLighting,K=d.symbolWidth,
I=d.itemWidth,F=!1!==d.interactiveLegend,J=a.elements,R=J.elementGroup;a=a.item=[];var J=J.item=[],M=[],N={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0},ma,S,W,X,Z,Y,ca,fa,q,u,A,G,f,O,L,va,aa,Ib,ga,Va,ba;G=0;for(f=e.length;G<f;G+=1)if((ma=e[G])&&!1!==ma.showInLegend)if(fa=ma.type||g,"point"===ma.legendType)for(ma=ma.data||[],Z=0,Y=ma.length;Z<Y;Z+=1)W=ma[Z]||{},!1!==W.showInLegend&&(W._legendType=fa,M.push(W));else switch(ma._legendType=fa,fa){case "pie":case "pie3d":case "funnel":case "pyramid":M=
ma.data;break;default:M.push(ma)}M.sort(function(a,b){return(a.legendIndex||0)-(b.legendIndex||0)||a.__i-b.__i});d.reversed&&M.reverse();e=d.initialItemX||0;g=d.initialItemY||0;Z=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{},e;a=Q(b.logic.chartInstance.ref,a);d.chartX=a.chartX;d.chartY=a.chartY;d.pageX=a.pageX;d.pageY=a.pageY;d.preventDefaults=function(){e=!0};v.raiseEvent("LegendItemClicked",d,b.logic.chartInstance);F&&!e&&c.legendClick()};Y=function(a){var c=this.data("legendItem"),
d=c.getEventArgs?c.getEventArgs():{};a=Q(b.logic.chartInstance.ref,a);var e=!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;e&&c&&c.attr({fill:D});v.raiseEvent("LegendItemRollover",d,b.logic.chartInstance)};ca=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{};a=Q(b.logic.chartInstance.ref,a);var e=!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;e&&c&&c.attr({fill:B});v.raiseEvent("LegendItemRollout",d,b.logic.chartInstance)};b.addCSSDefinition(".fusioncharts-legend .fusioncharts-legenditem",d.itemStyle);G=0;for(f=M.length;G<f;G+=1)!1!==M[G].showInLegend&&(ba={elements:{},hiddenColor:t,itemTextColor:B,hoverColor:D},a.push(ba),J.push(ba.elements),ma=M[G],q=e+ma._legendX+n,u=g+ma._legendY-n,A=ma._legendH,S=ma._legendType||fa,W=!1!==ma.visible,X=ba.itemLineColor=H(ma.color||{}),ma.plot.legend=ba,ba.elements.legendItemText=
c.text({"class":"fusioncharts-legenditem",x:q+h+l-2,y:u+(ma._legendTestY||0),text:ma.name,fill:W?B:t,"vertical-align":"top","text-anchor":"start",cursor:C.cursor||"pointer",ishot:F,"line-height":C.lineHeight,"font-size":C.fontSize},R).data("legendItem",ma),N[S]?(S=u+k+0.5*K,ma.lineWidth&&(Va=ba.elements.legendItemLine=c.path({"stroke-width":ma.lineWidth,stroke:W?X:t,cursor:C.cursor||"pointer",ishot:F,path:["M",q+k,S,"L",q+k+K,S]},R).data("legendItem",ma)),ma&&(aa=ma.marker)&&!1!==aa.enabled&&(ba.symbolStroke=
H($((Ib=aa.lineColor)&&(Ib.FCcolor&&Ib.FCcolor.color.split(",")[0]||Ib),X)),s?aa.fillColor&&aa.fillColor.FCcolor?(S=m({},aa.fillColor),S.FCcolor.alpha="100"):S=$(aa.fillColor,X):S={FCcolor:{color:$((ga=aa.fillColor)&&(ga.FCcolor&&ga.FCcolor.color.split(",")[0]||ga),X),angle:0,ratio:"0",alpha:"100"}},ba.symbolColor=H(S),O=0.5*K,X=q+k+O,S=u+k+O,Va&&(O*=0.6),L=aa.symbol.split("_"),va="spoke"===L[0]?1:0,S=L[1]?ba.elements.legendItemSymbol=c.polypath(L[1],X,S,O,aa.startAngle,va,R):ba.elements.legendItemSymbol=
c.circle(X,S,O,R),S.data("legendItem",ma).attr({cursor:C.cursor||"pointer",stroke:W?ba.symbolStroke:t,fill:W?ba.symbolColor:t,"stroke-width":1,ishot:F}))):(S=b.getSymbolPath(q+k,u+k,K,K,S,ma,!s),ba.symbolColor=H(S.color),ba.symbolStroke=H(S.strokeColor),S=ba.elements.legendItemSymbol=c.path({path:S.path,"stroke-width":S.strokeWidth,stroke:W?ba.symbolStroke:t,fill:W?ba.symbolColor:t,cursor:C.cursor||"pointer",ishot:F},R).data("legendItem",ma)),ba.elements.legendItemBackground=c.rect({x:q,y:u,width:I,
height:A,r:0,fill:H(ma.legendFillColor||w),"stroke-width":1,stroke:H(ma.legendBorderColor||"none"),cursor:C.cursor||"pointer",ishot:F},R).click(Z).mouseover(Y).mouseout(ca).data("legendItem",ma));d.reversed&&M.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,k=h.caption,l=g.caption,n=g.subcaption,m=b.text,p=c&&c.text,s=b.x,t;!m&&!p||k||(k=h.caption=d.group("caption"),h.tracker?k.insertBefore(h.tracker):
k.insertAfter(h.dataset));m?(this.addCSSDefinition(".fusioncharts-caption",b.style),t={"class":"fusioncharts-caption",text:b.text,fill:b.style.color,x:s,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":b.verticalAlign||"top",visibility:"visible",title:b.originalText||""},l?l.attr(t):l=g.caption=d.text(t,k).attr("class","fusioncharts-caption"),l.css(b.style),e?(e.setStyle(b.style),t=e.getOriSize(b.text).height):t=10):l&&(l=g.caption=l.remove());p?(this.addCSSDefinition(".fusioncharts-subcaption",
c.style),t={"class":"fusioncharts-subcaption",text:c.text,title:c.originalText||"",fill:c.style.color,x:s,y:m?l.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,k).attr("class","fusioncharts-subcaption"),n.css(c.style)):n&&(g.subcaption=n.remove());m||p||!k||(h.caption=k.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,k=a.chartHeight,
n=a.chartWidth,m=c.logoImage,p=g.logoURL,s=g.logoAlpha/100,t=g.logoPosition,w=g.logoLink,C=g.logoScale,B=g.logoLeftMargin,H=g.logoTopMargin,d={tr:{vAlign:kb,hAlign:jb},bl:{vAlign:eb,hAlign:lb},br:{vAlign:eb,hAlign:jb},cc:{vAlign:"middle",hAlign:"middle"}},K,I,F;a.logic&&e.enabled&&b.text().attr({text:e.text,x:6,y:k-4,"vertical-align":eb,"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{l.open(e.href)}catch(a){(l.top||
l).location.href=e.href}});p&&(K=new D,(F=d[t])||(F={vAlign:kb,hAlign:lb}),K.onload=function(){a.disposed||b.disposed||(I=S("none",F.vAlign,F.hAlign,C,h,n,k,K),I.src=p,m=a.paper.image(I).translate(B,H).css("opacity",s),w&&m.css({cursor:"pointer",_cursor:"hand"}),m.mouseover(function(b){b=Q(a.logic.chartInstance.ref,b);v.raiseEvent("LogoRollover",{logoURL:p,logoAlpha:100*s,logoPosition:t||"tl",logoScale:C,logoLink:w,chartX:b.chartX,chartY:b.chartY,pageX:b.pageX,pageY:b.pageY},a.logic.chartInstance)}),
m.mouseout(function(b){b=Q(a.logic.chartInstance.ref,b);v.raiseEvent("LogoRollout",{logoURL:p,logoAlpha:100*s,logoPosition:t||"tl",logoScale:C,logoLink:w,chartX:b.chartX,chartY:b.chartY,pageX:b.pageX,pageY:b.pageY},a.logic.chartInstance)}),m.click(function(b){b=Q(a.logic.chartInstance.ref,b);v.raiseEvent("LogoClick",{logoURL:p,logoAlpha:100*s,logoPosition:t||"tl",logoScale:C,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:p,logoAlpha:100*s,logoPosition:t||"tl",logoScale:C,logoLink:w},a.logic.chartInstance))},K.onerror=function(b){v.raiseEvent("LogoLoadError",{logoURL:p,logoAlpha:100*s,logoPosition:t||"tl",logoScale:C,logoLink:w,error:b},a.logic.chartInstance)},K.src=p,c.logoImage=m)},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,k=c&&c.itemLineColor,l=c&&c.itemTextColor,n=c&&c.symbolColor,m=c&&c.symbolStroke,c=$(b,!a.visible);a.setVisible(b);c?(g&&g.attr({fill:n||k,stroke:m}),e&&e.attr({fill:l}),d&&d.attr({stroke:k})):(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=m(m({},g.exporting),b),k=(h.exportformat||"png").toLowerCase(),n=h.exporthandler,p=(h.exportaction||C).toLowerCase(),s=h.exporttargetwindow||C,t=h.exportfilename,w=h.exportparameters;if(!g.exporting||!g.exporting.enabled||!n)return!1;v.raiseEvent("beforeExport",h,e,void 0,function(){var b=d.layers.buttons,g=e.id,r=d.paper,m,V;b&&b.attr("visibility",
"hidden");m=r.toSVG();b&&b.attr("visibility","visible");m=m.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,"$1M 0 0 L 0 0$2");b={charttype:e.chartType(),stream:m,stream_type:"svg",meta_bgColor:h.bgcolor||"",meta_bgAlpha:h.bgalpha||"1",meta_DOMId:e.id,meta_width:r.width,meta_height:r.height,parameters:["exportfilename="+t,"exportformat="+k,"exportaction="+p,"exportparameters="+w].join("|")};v.raiseEvent("exportDataReady",b,e);if("download"===p){/webkit/ig.test(l.navigator.userAgent)&&"_self"===s&&(s=
m=g+"export_iframe",d.exportIframe||(d.exportIframe=m=Y("IFRAME",{name:m,width:"1px",height:"1px"},a.body),m.style.cssText="position:absolute;left:-10px;top:-10px;"));m=Y("form",{method:"POST",action:n,target:s,style:"display:none;"},a.body);for(V in b)Y("input",{type:"hidden",name:V,value:b[V]},m);m.submit();a.body.removeChild(m);m=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:g,width:r.width,height:r.height};c.raiseEvent("exported",a,e,[a])})).post(n,b)},function(){v.raiseEvent("exportCancelled",h,e)})},print:function(b){var c=this,d=m({},b);if(c.isPrinting)return!1;v.raiseEvent("BeforePrint",d,c.logic.chartInstance,void 0,function(){var b=c.container,e=c.elements,g=e.printButton,h=e.exportButton,r=[],k=b.parentNode,e=a.body||a.getElementsByTagName("body")[0],n=e.childNodes;c.isPrinting=!0;ca(n,function(a,b){1==a.nodeType&&(r[b]=a.style.display,
a.style.display="none")});!1!==d.hideButtons&&(g&&"hidden"!=g.attrs.visibility&&g.attr({visibility:"hidden"}),h&&"hidden"!=h.attrs.visibility&&h.attr({visibility:"hidden"}));e.appendChild(b);l.print();setTimeout(function(){g&&g.attr({visibility:"visible"});h&&h.attr({visibility:"visible"});k.appendChild(b);ca(n,function(a,b){1==a.nodeType&&(a.style.display=r[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 k=["M"],l,n,m;l=(g.color&&tb("string"===typeof g.color?g.color:g.color.FCcolor.color)||C).replace(ia,"");m=xb(l,60).replace(ia,Z);h?l={FCcolor:{color:l,angle:0,ratio:"0",alpha:"100"}}:(h=xb(l,40),l={FCcolor:{color:l+","+l+","+h+","+l+","+l,ratio:"0,30,30,30,10",angle:0,alpha:"100,100,100,100,100"}});switch(e){case "column":case "dragcolumn":case "column3d":g=0.25*c;e=0.5*g;h=0.7*d;n=0.4*d;k=k.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"]);l.FCcolor.angle=270;break;case "bar":case "bar3d":g=0.3*c;e=0.6*c;h=d/4;n=h/2;k=k.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=0.6*d;n=0.2*d;d*=0.8;k=k.concat([a,b+d,"L",a,b+h,a+0.3*c,b+n,a+0.6*c,b+h,a+c,b+n,a+c,b+d,"Z"]);l.FCcolor.angle=270;break;case "pie":case "pie3d":g=0.5*c;e=0.9*g;c=a+g+1;d=b+
g-1;a=a+g-1;b=b+g+1;k=k.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"]);l.FCcolor.radialGradient="1";l.FCcolor.ratio="0,0,0,100,0";break;case "boxandwhisker2d":k=k.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]);l=g.color;m="#000000";break;default:k=k.concat([a,b,"L",a+c,b,a+c,b+d,a,b+d,"Z"]),l.FCcolor.angle=270,l.FCcolor.ratio="0,70,30"}return{path:k,color:l,strokeWidth:0.5,strokeColor:m}}});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,k=b.canvasTop,l=b.canvasLeft,n=this.min=a.min,n=this.span=(this.max=a.max)-n,l=this.startX=p(a.startX,l),k=this.startY=p(a.startY,k),m=this.endX=p(a.endX,b.canvasRight),a=this.endY=p(a.endY,b.canvasBottom),n=this.pixelRatio=c?(a-k)/n:(m-l)/n,s=this.relatedObj={};s.marginObj={top:k,right:g,bottom:h,left:l};s.canvasObj={x:l,y:k,w:m-l,h:a-k,toX:m,toY:a};this.startPixel=d?c?a:m:c?k:l;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,k,l=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,this.belowLineGroup,this.topBandGroup,this.belowBandGroup],n,m;n=0;for(m=l.length;n<m;n+=1)if(k=l[n])g=e?d:c,h=e?c:d,k.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,
k=a.offset,l=a.opposite,n=a.showAxis,m=a.tickInterval,p=a.tickLength,s=a.tickWidth,a=a.tickColor,t=c;if(e&&n)for(c=this.getAxisPosition(c),e=this.getAxisPosition(d),h=l?h.toX+k:h.x-k,b.path(["M",h,c,"L",h,e],g).attr({stroke:a,"stroke-width":s});Ha(t)<=d;)k=this.getAxisPosition(t),c=l?h+p:h-p,b.path(["M",h,k,"L",c,k],g).attr({stroke:a,"stroke-width":s}),t+=m},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,k=this.globalOptions||{},l=this.elements||{},n=this.axisData.plotLines||[],m=this.primaryOffset,s=c?this.startY:this.startX,t=c?this.endY:this.endX,v=parseFloat(a.canvasBorderWidth)||0,B=la(n.length,la(e.length,g.length)),D=a.layers.datalabels,K,I,F=this.belowLineGroup,R=this.topLineGroup,
J=this.belowLabelGroup,Q=this.topLabelGroup,N,S,W=!1!==(a.tooltip||{}).enabled,X,$,Z,Y,ca,q,u,A,G,f,O,L,va,aa,fa,ga,Va,ea,qa,sa,da,oa,za,Ba,ua,Da,ia,Sa,ya=k.chart.xDepth||0,na,Aa,Ha,$a,Za,xa,Ga,Pa,Oa,Ma,Ra=[];for(Ma=0;Ma<B;Ma+=1){S=null;k=e[Ma];N=g[Ma];if(X=n[Ma])if($=X.width,Z=X.isVline,Y=X.isTrend,ca=X.isGrid,q=X.tooltext,u=X.value,A=X.color,G=X.dashStyle,f=Y?X.to:null,O=X._isStackSum,K=3<X.zIndex?R:F,L=X.label){va=L.style;aa=L.text;fa=va&&va.color;ga=L.offsetScaleIndex||0;Va=L.offsetScale;if(ea=
va&&va.fontSize)qa=ea,-1!==qa.indexOf("px")&&(qa=qa.replace("px",""),qa=parseFloat(qa));I=va&&va.lineHeight;ea=va?{fontFamily:va.fontFamily,fontSize:va.fontSize,lineHeight:va.lineHeight,fontWeight:va.fontWeight,fontStyle:va.fontStyle}:null;I&&(sa=I,-1!==sa.indexOf("px")&&(sa=sa.replace("px",""),sa=parseFloat(sa)));da=L.rotation;oa=L.x||0;za=L.y||0;Ba=L.align;ua=L.verticalAlign;Da=L.textAlign;ia=(ia=L.borderWidth)?-1!==ia.indexOf("px")?ia.replace("px",""):1:1;I=O?D:3<=X.zIndex?Q:J;L.backgroundColor&&
(L.labelBgClr=H({color:L.backgroundColor,alpha:100*L.backgroundOpacity}));L.borderColor&&(L.labelBorderClr=H({color:L.borderColor,alpha:"100"}));Sa=qa?0.2*qa:2;Da="left"===Da?"start":"right"===Da?"end":"middle"}Pa=Ga="visible";Oa=0>p(Va,u,0);c?(na=this.getAxisPosition(u),Ha=Y?this.getAxisPosition(f)||na:na,xa=na!==Ha?!0:!1,$a=["M",h.x,na,"L",h.toX,Ha],Z?a.logic.isBar&&(Za=a.yAxis[ga],!O&&!isNaN(Va)&&0<=Va&&1>=Va&&(Va=Za.min+(Za.max-Za.min)*Va),Aa=Za.getAxisPosition(p(Va,u))+oa+Sa*(Oa?-1:1)):Aa=L?
this.axisData.isOpposite||"right"===Ba?h.toX+oa:h.x+oa:this.axisData.isOpposite?h.toX:h.x):(na=this.getAxisPosition(u)||0,Aa=Y?this.getAxisPosition(f)||na:na,!Y&&!Z&&0<ya&&(na+=ya,Aa+=ya,t+=ya),xa=na!==Aa?!0:!1,$a=["M"+na,h.y,"L",Aa,h.toY],Ga=na+m<s||na+m>t?"hidden":Ga,Z?(Za=a.yAxis[ga],!O&&!isNaN(Va)&&0<=Va&&1>=Va&&(Va=Za.min+(Za.max-Za.min)*(1-Va)),na=Za.getAxisPosition(p(Va,u))+za,na-=(v+parseFloat(ia))*(za&&(0<za?-1:1))):na=this.axisData.opposite||"top"===ua&&!ca?h.y+za:h.toY+za,Ha=na);Pa=c?Pa:
Aa+m<s||Aa+m>t?"hidden":Pa;if(X&&"visible"===Ga&&0.1<$){Za=$a;var La=$;Za[1]===Za[4]&&(Za[1]=Za[4]=ba(Za[1])+La%2/2);Za[2]===Za[5]&&(Za[2]=Za[5]=ba(Za[2])+La%2/2);xa={path:Za,stroke:A,"stroke-width":$,"shape-rendering":!xa&&1<=$?"crisp":void 0,"stroke-dasharray":G?G:void 0,visibility:Ga};k?k.attr(xa):(k=e[Ma]=b.path(xa,K).css(X.style),l.lines=l.lines||[],l.lines.push(k));W&&q&&$<M&&Ga&&(S=b.path({stroke:w,"stroke-width":M,ishot:!0,path:$a,fill:w},a.layers.tracker));S=S||k;W&&q&&S.tooltip(q)}else if(k||
N)k&&k.remove(),k=null,e&&(e[Ma]=null),l&&l.lines&&(l.lines[Ma]=null);L&&X&&!X.stepped&&"visible"===Pa&&L.text!=C&&" "!=L.text?($a=Y?"left"===Ba?na:Ha:Ha,S=Aa-+!Z*d*ya+d*(oa||0),O?(Ga=c||da?"middle":"bottom",$a+=c?0:qa*(Oa?-0.4:0.4),da&&($a+=Oa?4:-2,Da=Oa?"end":"start")):d&&this.axisData.opposite?(Ga=eb,Da=da?"start":"middle"):Ga=ua,/\n|<br\s*?\/?>/ig.test(aa)&&ca&&(da?(Ga="middle",S-=d*(oa||0)):(Ga=d&&this.axisData.opposite&&!da?"middle":kb,$a-=sa)),xa={"class":"fusioncharts-label",text:aa,fill:ea?
fa||A:null,title:L&&(L.originalText||""),x:S,y:$a,"text-anchor":Da,"vertical-align":Ga,transform:" ","text-bound":O?[va.backgroundColor,va.borderColor,va.borderThickness,va.borderPadding,va.borderRadius,va.borderDash]:L&&[L.labelBgClr,L.labelBorderClr,ia,Sa],visibility:Pa,"line-height":va.lineHeight},N?N.attr(xa):(N=g[Ma]=b.text(xa,I).attr("class","fusioncharts-label"),k&&(k.label=N),l.labels=l.labels||[],l.labels.push(N)),!ca&&ea&&N.css(ea),da&&N.attr("transform",["r",da,S,$a]),O&&N&&Ra.push(N)):
N&&(N.isRotationSet=!1,N.remove(),g&&(g[Ma]=null),l&&l.labels&&(l.labels[Ma]=null));!k&&!N||X&&null===X.value||(X&&X.isMinLabel?this.poi.min={label:N,index:Ma,line:k}:X&&X.isMaxLabel?this.poi.max={label:N,index:Ma,line:k}:X&&X.isZeroPlane&&(this.poi.zero={label:N,index:Ma,line:k}))}p(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,k=this.primaryOffset,l=c?this.startY:this.startX,n=c?this.endY:this.endX,m=a.options.chart.hasScroll,s=this.belowBandGroup,t=this.topBandGroup,w=this.belowLabelGroup,v=this.topLabelGroup,C=this.elements||{},a=!1!==(a.tooltip||{}).enabled,B,D,K,I,F,R,J,M,N,Q,S,X,W,$,q,u,A,G,f,O,L,Z,Y,ca,ba,aa,fa,qa,ga,ea,sa,da,Ba,oa,Da,na=la(d.length,e.length);for(Da=0;Da<na;Da+=1){oa="visible";da=e[Da];Ba=g[Da];if(B=d[Da])if(D=B.tooltext,K=B.to,I=B.from,F=B.value,R=B.width,J=B.color,
ea=3<B.zIndex?t:s,M=B.label){if(N=M.style){if($=N.fontSize)Q=$,-1!==Q.indexOf("px")&&(Q=Q.replace("px",""),parseFloat(Q));(Q=N.lineHeight)&&-1!==Q.indexOf("px")&&(Q=Q.replace("px",""),parseFloat(Q));f=N.color}(Q=M.borderWidth)&&-1!==Q.indexOf("px")&&Q.replace("px","");S=M.align;X=M.x;W=M.y;A=M.text;G=M.originalText;q=M.backgroundColor;u=M.backgroundOpacity;q&&(L=M.labelBgClr=H({color:q,alpha:100*u}));if(q=M.borderColor)Z=M.labelBorderClr=H({color:q,alpha:"100"});q=M.textAlign;q="left"===q?"start":
"right"===q?"end":"middle";u=M.verticalAlign;O=M.borderType;sa=3<B.zIndex?v:w}Y=this.getAxisPosition(p(K,F));ca=this.getAxisPosition(p(I,F));ba=c?h.x:ca;aa=c?Y:h.y;fa=c?h.w:(this.axisData.reversed?ca-Y:Y-ca)||R||1;ca=c?ca-Y||1:h.h;Y=ba+fa;fa=za(fa);0>ca&&(ca=za(ca),aa-=ca);c||(oa=m?"hidden":ba+k>n||Y+k<l?"hidden":oa);M&&(qa=c?"right"===S?h.toX+X:h.x+X:ba+fa/2,ga=c?aa+ca/2:h.toY+W);if(!da&&B&&"visible"===oa)B={x:ba,y:aa,width:fa,height:ca,fill:H(J),"stroke-width":0},da?da.attr(B):(da=e[Da]=b.rect(B,
ea),C.bands=C.bands||[],C.bands[Da]=da),a&&D&&da.tooltip(D);else if(da&&(!B||"hidden"===oa)){C.labels&&(g[Da]=C.labels[Da]=null);da.label&&da.label.remove();e[Da]=C.bands[Da]=null;da.remove();continue}da&&M&&M.text&&(B={"class":"fusioncharts-label",text:A,title:G||"",fill:f,"text-bound":[L,Z,Q,0.2*$,"solid"===O?!1:!0],x:qa,y:ga,"text-anchor":q,"vertical-align":u,"line-height":N.lineHeight},Ba?Ba.attr(B):(Ba=g[Da]=da.label=b.text(B,sa).attr("class","fusioncharts-label"),N&&Ba.css(N),C.labels=C.labels||
[],C.labels[Da]=Ba))}},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,k=this.isVertical,l=this.relatedObj.canvasObj,n=p(a.offset,0)+p(b.margin,0),m=b.text||"",s=this.name||void 0,a=a.opposite,t=this.layerBelowDataset,t=t.nameGroup=t.nameGroup||h.group("axis-name",t),w=p(b.rotation,a?90:270),v=k?a?l.toX+n:l.x-n:(l.x+l.toX)/2,C={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,
fontStyle:c.fontStyle},B,g=k?"low"===e?l.toY:g?(l.y+l.toY)/2:this.renderer.chartHeight/2:l.toY+n;m?(!isNaN(w)&&w&&k&&(B=c.fontSize,B=-1!=B.indexOf("px")?B.replace("px",""):B,a?(v+=parseFloat(B),B=270===w?"bottom":"top"):(v-=parseFloat(B),B=270===w?"top":"bottom")),this.renderer.addCSSDefinition("."+d,C),d={"class":d,x:0,y:0,text:m,fill:c.color,"text-anchor":"low"===e?90==w?"end":"start":"middle","vertical-align":k?w?B:"middle":a?eb:"top",transform:k?"t"+v+","+g+"r"+w:"t"+v+","+g,"font-size":c.fontSize},
b.originalText&&(d.title=b.originalText),s?s.attr(d):s=this.name=h.text(d,t),s.attr({"line-height":c.lineHeight,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]})):s&&s.remove();this.elements.name=s},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),k=a.lineColor,l=a.lineThickness,n=a.lineEndExtension||
0,m=a.lineStartExtension||0,a=this.relatedObj.canvasObj;e?(c=this.getAxisPosition(c)-m,n=this.getAxisPosition(d)+n,d=e=g?a.toX+l/2:a.x-l/2):(d=a.x-m,e=a.toX+n,c=n=g?a.y-l/2:a.toY+l/2);b=b.path({path:["M",d,c,"L",e,n],stroke:k,"stroke-width":l},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,k=d.canvasBg,l=this.canvasTop,n=this.canvasLeft,m=this.canvasWidth,s=this.canvasHeight,t=p(a.plotBorderRadius,0),k=a.plotBorderWidth,w=0.5*k,v=a.plotBorderColor,C=a.isBar,B=a.is3D,D=a.use3DLighting,I=a.showCanvasBg,R=a.canvasBgDepth,J=a.showCanvasBase,M=a.canvasBaseColor3D,Q=a.canvasBaseDepth,N=a.plotShadow,S=F&&0===k&&N&&N.enabled,X=a.xDepth||0,a=a.yDepth||0,W=this.layers,$=W.background,Y=W.dataset;W.tracker=W.tracker||c.group("hot").insertAfter(Y);
W.datalabels=W.datalabels||c.group("datalabels").insertAfter(Y);W=W.canvas=W.canvas||c.group("canvas").insertAfter($);g||(d.canvasBorder=c.rect({x:n-w,y:l-w,width:m+k,height:s+k,r:t,"stroke-width":k,stroke:v,"stroke-linejoin":2<k?"round":"miter"},W).shadow(N));d["clip-canvas"]=[la(0,n-X),la(0,l-a),la(1,m+2*X),la(1,s+2*a)];d["clip-canvas-init"]=[la(0,n-X),la(0,l-a),1,la(1,s+2*a)];B&&(I&&(k=C?d.canvasBg=c.path(["M",n,",",l,"L",n+1.2*R,",",l-R,",",n+m-R,",",l-R,",",n+m,",",l,"Z"],W):d.canvasBg=c.path(["M",
n+m,",",l,"L",n+m+R,",",l+1.2*R,",",n+m+R,",",l+s-R,",",n+m,",",l+s,"Z"],W),k.attr({"stroke-width":0,stroke:"none",fill:H(b)})),J&&(g=C?d.canvas3DBase=c.cubepath(n-X-Q-1,l+a+1,Q,s,X+1,a+1,W):d.canvas3DBase=c.cubepath(n-X-1,l+s+a+1,m,Q,X+1,a+1,W),g.attr({stroke:"none","stroke-width":0,fill:[M.replace(ia,Z),!D]}),h||(h=d.canvas3dbaseline=c.path(void 0,W)),h.attr({path:C?["M",n,l,"V",s+l]:["M",n,l+s,"H",m+n],stroke:K.tintshade(M.replace(ia,Z),0.05).rgba})));!e&&b&&(d.canvas=c.rect({x:n,y:l,width:m,height:s,
r:t,"stroke-width":0,stroke:"none",fill:H(b)},W).shadow(S))},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),k=e.layerAboveDataset=e.layerAboveDataset||c.group("axistop").trackTooltip(!0),c=this.xAxis=[],e=this.yAxis=[];h.insertBefore(g);k.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||{},k=a.canvasTop,l=a.canvasLeft,n=a.canvasWidth,s=a.canvasHeight,t=a.canvasBorderWidth,w=t||(g.showLine?g.lineThickness:0),C=t||g.lineStartExtension,g=t||g.lineEndExtension,t=b.chart.useRoundEdges,B,D,H,I,F,R,J,M,Q,N,S,X,W,$,Z,Y=d.dataset,q=d.datalabels,u=d.tracker;
I=d.layerAboveDataset;var A,G;h.enabled&&(A=d.scroll=d.scroll||c.group("scroll").insertAfter(I),I=h.scrollRatio,b=p(b[fa].xAxisScrollPos,h.startPercent),F=h.viewPortMax,R=h.viewPortMin,D=h.vxLength,J=hb(D),M=h.showButtons,Q=h.height,N=h.padding,S=h.color,X=h.flatScrollBars,D=h.windowedCanvasWidth=e.getAxisPosition(D),B=h.fullCanvasWidth=e.getAxisPosition(F-R)-D,H=ba(b*B),W=a.fusionCharts.jsVars._reflowData,$={hcJSON:{_FCconf:{xAxisScrollPos:0}}},Z=$.hcJSON._FCconf,d.scroller=c.scroller(l-C,k+s+w+
N-!!w,n+C+g,Q,!0,{showButtons:M,displayStyleFlat:X,scrollRatio:I,scrollPosition:b},A).data("fullCanvasWidth",B).data("windowedCanvasWidth",D).attr({"scroll-display-style":X,fill:S,r:t&&2||0}).scroll(function(b){var c;H=-ba(b*B);Y&&Y.transform(["T",H,0]);q&&q.transform(["T",H,0]);u&&u.transform(["T",H,0]);e.setOffset&&e.setOffset(H);c={position:b,direction:b-h.lastPos||0,vxLength:J};Z.xAxisScrollPos=h.lastPos=b;m(W,$,!0);if(0!==c.direction)for(G=0;G<a.datasets.length;G++)a[a.datasets[G].drawPlot+"Scroll"]&&
a[a.datasets[G].drawPlot+"Scroll"].call(a,a.plots[G],a.datasets[G],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,h=e.dataset,k=e.datalabels,
e=e.tracker,l,m={},s,w=a.xAxis["0"]||{},C=(w.axisData||{}).scroll||{},B=p(a.options[fa].xAxisScrollPos,C.startPercent),D=C.fullCanvasWidth;C.enabled&&(h.attr({"clip-rect":d["clip-canvas"]}),k.attr({"clip-rect":d["clip-canvas"]}),e.attr({"clip-rect":d["clip-canvas"]}),d=function(b){var d=a.elements.canvas,e=l.left,h=l.top,k=b.state,p=t&&c.getTouchEvent(b)||n;b=b.originalEvent;e=(b.clientX||b.pageX||p.pageX)-e;h=(b.clientY||b.pageY||p.pageY)-h;switch(k){case "start":s=d.isPointInside(e,h);m.ox=s&&e||
null;if(!s)return!1;m.prevScrollPosition=g.attrs["scroll-position"];v.raiseEvent("scrollstart",{scrollPosition:m.prevScrollPosition},a.logic.chartInstance);break;case "end":v.raiseEvent("scrollend",{prevScrollPosition:m.prevScrollPosition,scrollPosition:m.scrollPosition},a.logic.chartInstance);s=!1;m={};break;default:if(!s)break;d=e-m.ox;m.ox=e;m.scrollPosition=g.attrs["scroll-position"]-d/D;g.attr({"scroll-position":m.scrollPosition})}},t&&(l=c.getPosition(b),b&&(X(b,"pointerdrag",d),I(b,"pointerdrag",
d))),0<B&&(b=-ba(B*D),h&&h.transform(["T",b,0]),k&&k.transform(["T",b,0]),e&&e.transform(["T",b,0]),w.setOffset&&w.setOffset(b)))},drawPlotColumn:function(a,b,c){var d=this,e=a.data,g=e.length,h=a.items,k=a.graphics||(a.graphics=[]),l=d.paper,n=d.smartLabel,m=d.logic,t=d.layers,v=d.options,C=d.elements,B=v.chart,D=!1!==(v.tooltip||{}).enabled,I,F=d.definition.chart,J=v.plotOptions.series,Q=J.dataLabels.style,N=d.xAxis[b.xAxis||0],S=d.yAxis[b.yAxis||0],X=d.chartWidth,W=d.chartHeight,Z=S.axisData.reversed,
Y=m.isLog,ca=m.is3D,aa=m.isStacked,ea=m.isWaterfall,da=m.isCandleStick,q=$(N.axisData.scroll,{}),u=c||{},A=q.enabled,G=p(u.position,v[fa].xAxisScrollPos,q.startPercent),f=u.vxLength||hb(q.vxLength),O=u.scrollStart||la(0,ba((g-f)*G)-1)||0,L=u.scrollEnd||ga(g,O+f+2)||g,va=B.canvasBorderOpacity=K.color(B.plotBorderColor).opacity,oa=d.canvasBorderWidth,Ib=B.isCanvasBorder=0!==va&&0<oa,na,Va=c!==Ga?0:isNaN(+J.animation)&&J.animation.duration||1E3*J.animation,ia=b.numColumns||1,qa=b.columnPosition||0,ua=
B.use3DLighting,ya=!1===b.visible?"hidden":"visible",xa=B.overlapColumns,Ha=N.getAxisPosition(0),Ba=N.getAxisPosition(1)-Ha,Pa=F&&F.plotspacepercent,Da=p(F&&F.plotpaddingpercent),Oa=J.groupPadding,Sa=J.maxColWidth,La=(1-0.01*Pa)*Ba||ga(Ba*(1-2*Oa),Sa*ia),lb=La/2,yc=La/ia,Sc=ga(yc-1,1<ia?xa||Da!==Ga?0<Da?yc*Da/100:0:4:0),$a=qa*yc-lb+Sc/2,Za=S.max,eb=S.min,sb=0<Za&&0<=eb,qb=0>=Za&&0>eb,jb=0<Za&&0>eb,Ma=qb||Z&&sb?Za:Y||sb?eb:0,Ra=S.yBasePos=S.getAxisPosition(Ma),kb,Jc=p(B.useRoundEdges,0),oc=t.dataset=
t.dataset||l.group("dataset-orphan"),Ua=t.datalabels=t.datalabels||l.group("datalabels").insertAfter(oc),gb=t.tracker,zc=d.canvasTop,tb=d.canvasLeft,Mb=d.canvasWidth,xb=d.canvasBottom,Fc=d.canvasRight,uc,Gc,Bc,Hc,ac,bc,Nc,Kb,Nb,pb,cb,Yb,ub,xc,zb,jc,rb,Wa,Rb,Zb,Ea,Cb,ta,$b,Wb,Oc,Fa,Hb,Ab,rc,sc,vc,fb,Pc,Ob,Qa,Ic,fc,Pb,Sb=function(a){sa.call(this,d,a)},gc=function(a,b){return function(c){a.attr(b);sa.call(this,d,c,"DataPlotRollOver")}},Lb=function(a,b){return function(c){a.attr(b);sa.call(this,d,c,"DataPlotRollOut")}};
d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",{fontFamily:Q.fontFamily,fontSize:Q.fontSize,lineHeight:Q.lineHeight,fontWeight:Q.fontWeight,fontStyle:Q.fontStyle,color:Q.color});Ua.attr("class","fusioncharts-datalabels");Va&&(!c&&Ua.attr({transform:"...t"+X+","+W}),d.animationCompleteQueue.push({fn:function(){Ua.attr({transform:"...t"+-X+","+-W})},scope:d}));yc-=Sc;A&&O>L-f-2&&(O=la(0,L-f-2));aa&&(Qa=oc.shadows||(oc.shadows=l.group("shadows",oc).toBack()));Ab=oc.column||(oc.column=
l.group("columns",oc));da||ca||A||Ab.attrs["clip-rect"]||Ab.attr({"clip-rect":C["clip-canvas"]});ea&&Ab.toBack();if(ca)for(ac=B.xDepth||0,bc=B.yDepth||0,rc=Ab.negative=Ab.negative||l.group("negative-values",Ab),fb=Ab.column=Ab.column||l.group("positive-values",Ab),vc=Ab.zeroPlane,!vc&&0>eb&&0<=Za&&(vc=Ab.zeroPlane=l.group("zero-plane",Ab).insertBefore(fb),Gc=B.zeroPlaneColor,Bc=B.zeroPlaneBorderColor,Hc=B.zeroPlaneShowBorder,C.zeroplane=l.cubepath(tb-ac,Ra+bc,Mb,1,ac,bc,vc).attr({fill:[Gc,!ua],stroke:Bc||
"none","stroke-width":Hc?1:0})),(sc=rc.data("categoryplots"))||(rc.data("categoryplots",Array(g)),sc=rc.data("categoryplots")),(Pc=fb.data("categoryplots"))||(fb.data("categoryplots",Array(g)),Pc=fb.data("categoryplots")),pb=0;pb<g;pb+=1)sc[pb]=sc[pb]||l.group(rc),Pc[pb]=Pc[pb]||l.group(fb);else Ob=Ab;n.setStyle({fontFamily:Q.fontFamily,fontSize:Q.fontSize,lineHeight:Q.lineHeight,fontWeight:Q.fontWeight,fontStyle:Q.fontStyle});for(pb=O;pb<L;pb+=1){cb=e[pb];zb=cb.y;I=cb.toolText;uc=a.index+"_"+pb;
Fa=Hb=null;if(null===zb){if(Nb=h[pb])Fa=Nb.graphic,ca||Fa.attr({height:0})}else{Nc=!1;xc=p(cb.x,pb);Yb=cb.link;ub=s(cb.borderWidth)||0;Oc=cb._FCW*Ba;rb=N.getAxisPosition(cb._FCX)||N.getAxisPosition(xc)+$a;jc=cb.previousY;Rb=S.getAxisPosition(jc||Ma);Wa=S.getAxisPosition(zb+(jc||0));Ea=za(Wa-Rb);Cb=Oc||yc;Pb={index:pb,link:Yb,value:cb.y,displayValue:cb.displayValue,categoryLabel:cb.categoryLabel,toolText:cb.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};if(ca){0>zb&&
(Wa=Rb,Nc=!0);Ob=0>zb?sc:Pc;(Nb=h[pb])||(Nb=h[pb]={index:pb,value:zb,graphic:l.cubepath(Ob[pb]),dataLabel:null,tracker:null,hot:null});Fa=Nb.graphic;$b=Wb={};cb.hoverEffects&&($b={fill:[H(cb.color),!ua],stroke:ub&&H(cb.borderColor)||"NONE","stroke-width":ub},ta=cb.rolloverProperties,Wb={fill:[H(ta.color),!ua],stroke:ta.borderWidth&&H(ta.borderColor)||"NONE","stroke-width":ta.borderWidth});Fa.attr({cubepath:[rb-ac,Va?Ra+bc:Wa+bc,Cb,Va?0:Ea,ac,bc],fill:[H(cb.color),!ua],stroke:ub&&H(cb.borderColor)||
"NONE","stroke-width":ub,visibility:ya}).shadow(J.shadow&&cb.shadow,Qa).data("BBox",{height:Ea,width:Cb,x:rb,y:Wa});Va&&Fa.animate({cubepath:[rb-ac,Wa+bc,Cb,Ea,ac,bc]},Va,"normal",d.getAnimationCompleteFn());if(Yb||D)!aa&&Ea<M&&(Wa-=(M-Ea)/2,Ea=M),Nb.tracker||(Nb.tracker=l.cubepath(gb)),Hb=Nb.tracker,Hb.attr({cubepath:[rb-ac,Wa+bc,Cb,Ea,ac,bc],cursor:Yb?"pointer":"",stroke:ub&&w||"NONE","stroke-width":ub,fill:w,ishot:!0,visibility:ya});(Hb||Fa).data("eventArgs",Pb).data("groupId",uc).click(Sb).hover(gc(Fa,
Wb),Lb(Fa,$b)).tooltip(I);(Hb||Fa)._.cubetop.data("eventArgs",Pb).data("groupId",uc).click(Sb).hover(gc(Fa,Wb),Lb(Fa,$b)).tooltip(I);(Hb||Fa)._.cubeside.data("eventArgs",Pb).data("groupId",uc).click(Sb).hover(gc(Fa,Wb),Lb(Fa,$b)).tooltip(I);aa&&Nc&&(Fa.toBack(),Hb&&Hb.toBack())}else{Kb=!1;if(!Y&&!Z&&0>zb||!Y&&Z&&0<zb)Wa=Rb,Kb=!0;Z&&!jb&&0<zb&&(Wa=Rb-Ea,Kb=!1);ea&&0>zb&&Aa(jc)&&(Wa-=Ea,Kb=!0);da||A||(R(Wa)<=zc&&(Ea-=zc-Wa-+Ib,Wa=zc-+Ib),ba(Wa+Ea)>=xb&&(Ea-=ba(Wa+Ea)-xb+ +!!ub+ +Ib,B.xAxisLineVisible&&
!Ib&&(Ea+=1)),1>=ub&&(ba(rb)<=tb&&(Cb+=rb,rb=tb-ub/2+ +!!ub-+Ib,Cb-=rb),ba(rb+Cb)>=Fc&&(Cb=Fc-rb+ub/2-+!!ub+ +Ib)));Ic=K.crispBound(rb,Wa,Cb,Ea,ub);rb=Ic.x;Wa=Ic.y;Cb=Ic.width;Ea=Ic.height;if(!da&&Ib&&(!Aa(jc)||ea&&jc===zb&&zb===cb._FCY))if(qb&&!Z)na=Wa-(zc-ub/2),Ea+=na,Ra=Wa-=na;else if(Y||sb||Z&&qb)Ea=xb-Wa+ub/2,Ra=Wa+Ea;ea&&jc&&0<ub&&0!==J.connectorOpacity&&1===J.connectorWidth&&J.connectorDashStyle&&(Ea-=1,0>zb&&(Wa+=1));1>=Ea&&(Ea=1,Wa+=0>zb?1:0===zb?0:-Ea);b._columnWidth=Cb;if(!(Nb=h[pb])){Nb=
h[pb]={index:pb,value:zb,width:Cb,graphic:null,valueBelowPlot:Kb,dataLabel:null,tracker:null};kb=0;Va||(Ra=Wa,kb=Ea||1);$b=Wb={};cb.hoverEffects&&($b={fill:H(cb.color),stroke:H(cb.borderColor),"stroke-width":ub,"stroke-dasharray":cb.dashStyle},ta=cb.rolloverProperties,Wb={fill:H(ta.color),stroke:H(ta.borderColor),"stroke-width":ta.borderWidth,"stroke-dasharray":ta.dashStyle});fc={x:rb,y:Ra,width:Cb,height:kb,r:Jc,fill:H(cb.color),stroke:H(cb.borderColor),"stroke-width":ub,"stroke-dasharray":cb.dashStyle,
"stroke-linejoin":"miter",visibility:ya};Fa?Fa.attr(fc):Fa=Nb.graphic=l.rect(fc,Ob);Fa.shadow(J.shadow&&cb.shadow,Qa).data("BBox",Ic);Va&&Fa.animate({y:Wa,height:Ea||1},Va,"normal",d.getAnimationCompleteFn());if(Yb||D)!aa&&Ea<M&&(Wa-=(M-Ea)/2,Ea=M),fc={x:rb,y:Wa,width:Cb,height:Ea,r:Jc,cursor:Yb?"pointer":"",stroke:w,"stroke-width":ub,fill:w,ishot:!0,visibility:ya},(Hb=Nb.tracker)?Hb.attr(fc):Hb=Nb.tracker=l.rect(fc,gb);Hb=Nb.tracker;(Hb||Fa).data("eventArgs",Pb).data("groupId",uc).click(Sb).hover(gc(Fa,
Wb),Lb(Fa,$b)).tooltip(I)}}Zb=d.drawPlotColumnLabel(a,b,pb,rb,Wa)}Zb&&k.push(Zb);Fa&&k.push(Fa);Hb&&k.push(Hb);d.drawTracker&&d.drawTracker.call(d,a,b,pb)}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=la(0,ba((d-g)*c.position)-1)||0,d=ga(d,h+g+2)||d;h>d-g-2&&(h=la(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,
k=this.logic,l=h.chart;d=this.paper;var n=this.smartLabel,m=this.layers,h=h.plotOptions.series.dataLabels.style,p=1===l.rotateValues?270:0,s=this.canvasHeight,t=this.canvasTop,w=a.data[c];a=a.items[c];var v=l.valuePadding+2,B=a.graphic;c=a.dataLabel;var D=$(a.valueBelowPlot,0>w.y),H=k.isStacked,k=k.is3D,I=l.xDepth||0,K=l.yDepth||0,F=w.displayValue;b=!1===b.visible?"hidden":"visible";var l=l.placeValuesInside,J;g=g||m.datalabels;Aa(F)&&F!==C&&null!==w.y?(a._state&&a._state.labelWidth||(n=n.getOriSize(F),
a._state=p?{labelWidth:n.height,labelHeight:n.width}:{labelWidth:n.width,labelHeight:n.height}),B=B.data("BBox"),n=B.height,m=J=a._state.labelHeight+v,v=0.5*J+v,B=B.x+0.5*B.width,s=D?t+s-(e+n):e-t,H?(e=e+0.5*n+(K||0),B-=I):l?n>=m?(e+=D?n-v:v,w._valueBelowPoint=1,k&&(B-=I,e+=K)):s>=m?(e+=D?n+v:-v,k&&D&&(B-=I,e+=K)):(e+=D?n-v:v,w._valueBelowPoint=1,k&&(B-=I,e+=K)):s>=m?(e+=D?n+v:-v,k&&(D?(B-=I,e+=K):B-=I/2)):(e+=D?n-v:v,w._valueBelowPoint=1,k&&(B-=I,e+=K)),c?c.attr({x:B,y:e,visibility:b}):c=a.dataLabel=
d.text({text:F,"class":"fusioncharts-label",x:B,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]}),p&&c.attr("transform","T0,0,R"+p)):c&&c.attr({text:C});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=[],k=c.paper,l=c.logic,n=c.layers,m=c.options,t=c.elements,v=m.chart,C=!1!==(m.tooltip||{}).enabled,B,D=c.definition.chart,m=m.plotOptions.series,I=m.dataLabels.style,F={fontFamily:I.fontFamily,fontSize:I.fontSize,lineHeight:I.lineHeight,fontWeight:I.fontWeight,fontStyle:I.fontStyle},I=c.xAxis[b.xAxis||0],J=c.yAxis[b.yAxis||0],Q=l.is3D,l=l.isStacked,N=v.canvasBorderOpacity=K.color(v.plotBorderColor).opacity,S=c.canvasBorderWidth,N=v.isCanvasBorder=0!==N&&0<S,S=isNaN(+m.animation)&&
m.animation.duration||1E3*m.animation,X=b.numColumns||1,W=b.columnPosition||0,$=v.use3DLighting,Z=!1===b.visible?"hidden":"visible",Y=v.overlapColumns,ca=I.getAxisPosition(0),ca=I.getAxisPosition(1)-ca,aa=D&&D.plotspacepercent,D=p(D&&D.plotpaddingpercent),fa=m.groupPadding,q=m.maxColWidth,aa=(1-0.01*aa)*ca||ga(ca*(1-2*fa),q*X),ca=aa/2,aa=aa/X,Y=ga(aa-1,1<X?Y||D!==Ga?0<D?aa*D/100:0:4:0),X=aa-Y,W=W*aa-ca+Y/2,u=J.max,A=J.min,Y=J.getAxisPosition(0>u&&0>A?u:0<u&&0<A?A:0),D=p(v.useRoundEdges,0),G=c.canvasTop,
ca=c.canvasLeft,f=c.canvasHeight,aa=c.canvasRight,O=c.chartWidth,L=c.chartHeight,va,ea,da,la,Va,oa,qa,na,ia,ua,fa=J.axisData.effectiveZeroPlaneThickness;qa=n.dataset=n.dataset||k.group("dataset-orphan");var ya=n.datalabels=n.datalabels||k.group("datalabels").insertAfter(qa),n=n.tracker,Ba,Aa,Da,xa,Sa,Ha,q=function(a){sa.call(this,c,a)},Pa=function(a,b){return function(d){a.attr(b);sa.call(this,c,d,"DataPlotRollOver")}},Oa=function(a,b){return function(d){a.attr(b);sa.call(this,c,d,"DataPlotRollOut")}};
c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",F);ya.attr("class","fusioncharts-datalabels");S&&(c.animationCompleteQueue.push({fn:function(){ya.attr({transform:"...t"+-O+","+-L})},scope:c}),ya.attr({transform:"...t"+O+","+L}));l&&(Sa=qa.shadows||(qa.shadows=k.group("shadows",qa).toBack()));na=qa.column=qa.column||k.group("bars",qa);if(Q)for(va=v.xDepth||0,ea=v.yDepth||0,F=na.negative=na.negative||k.group("negative-values",na),qa=na.column=na.column||k.group("positive-values",na),
Da=na.zeroPlane,!Da&&0>A&&0<=u&&(Da=na.zeroPlane=k.group("zero-plane",na).insertBefore(qa),ua=v.zeroPlaneColor,u=v.zeroPlaneBorderColor,A=v.zeroPlaneShowBorder,t.zeroplane=k.cubepath(Y-va,G+ea,1,f,va,ea,Da).attr({fill:[ua,!$],stroke:u||"none","stroke-width":A?1:0})),(Da=F.data("categoryplots"))||(F.data("categoryplots",Array(e)),Da=F.data("categoryplots")),(ua=qa.data("categoryplots"))||(qa.data("categoryplots",Array(e)),ua=qa.data("categoryplots")),t=0;t<e;t+=1)Da[t]=Da[t]||k.group(F),ua[t]=ua[t]||
k.group(qa);else na.attrs["clip-rect"]||na.attr({"clip-rect":t["clip-canvas"]}),xa=na;t=0;for(F=e-1;t<e;t+=1,F-=1){G=d[t];A=G.y;Ba=f=null;if(null===A){if(oa=g[t])Ba=oa.graphic,Q||Ba.attr({width:0})}else{na=p(G.x,t);qa=G.link;B=G.toolText;u=s(G.borderWidth)||0;na=I.getAxisPosition(na)+W;oa=(da=G.previousY)?J.getAxisPosition(da):Y;ia=J.getAxisPosition(A+(da||0));da=za(ia-oa);0<A&&(ia=oa);Aa={index:t,link:qa,value:G.y,displayValue:G.displayValue,categoryLabel:G.categoryLabel,toolText:G.toolText,id:a.userID,
datasetIndex:a.index,datasetName:a.name,visible:a.visible};if(Q){xa=0>A?Da:ua;(oa=g[t])||(oa=g[t]={index:t,value:A,graphic:k.cubepath(xa[F]),dataLabel:null,tracker:null});Ba=oa.graphic;Va=la={};G.hoverEffects&&(Va={fill:[H(G.color),!$],stroke:u&&H(G.borderColor)||"NONE","stroke-width":u},la=G.rolloverProperties,la={fill:[H(la.color),!$],stroke:la.borderWidth&&H(la.borderColor)||"NONE","stroke-width":la.borderWidth});Ba.attr({cubepath:[S?Y-va:ia-va,na+ea,S?0:da,X,va,ea],fill:[H(G.color),!$],stroke:u&&
H(G.borderColor)||"NONE","stroke-width":u,"stroke-dasharray":G.dashStyle,cursor:qa?"pointer":"",visibility:Z}).shadow(m.shadow&&G.shadow,Sa).data("BBox",{height:X,width:da,x:ia,y:na});S&&Ba.animate({cubepath:[ia-va,na+ea,da,X,va,ea]},S,"normal",c.getAnimationCompleteFn());if(qa||C)!l&&da<M&&(ia-=(M-da)/2,da=M),oa.tracker||(oa.tracker=k.cubepath(n)),f=oa.tracker,f.attr({cubepath:[ia-va,na+ea,da,X,va,ea],cursor:qa?"pointer":"",stroke:u&&w||"NONE","stroke-width":u,fill:w,ishot:!0});(f||Ba).data("eventArgs",
Aa).click(q).hover(Pa(Ba,la),Oa(Ba,Va)).tooltip(B);(f||Ba)._.cubetop.data("eventArgs",Aa).click(q).hover(Pa(Ba,la),Oa(Ba,Va));(f||Ba)._.cubeside.data("eventArgs",Aa).click(q).hover(Pa(Ba,la),Oa(Ba,Va));if(!l||l&&0>A)Ba.toBack(),f&&f.toBack()}else{R(ia)<=ca&&(da+=ia,ia=ca+u/2+0.2,v.xAxisLineVisible&&!N&&(ia-=1),da-=ia);ba(ia+da)>=aa&&(da=aa-ia-u/2-0.2);Ha=K.crispBound(ia,na,da,X,u);ia=Ha.x;na=Ha.y;da=Ha.width;X=Ha.height;1>=da&&(da=1,ia+=0>A?-da:0===A?0:1<fa?da:0);(oa=g[t])||(oa=g[t]={index:t,value:A,
height:X,graphic:null,dataLabel:null,tracker:null});Ba=oa.graphic;Va=la={};G.hoverEffects&&(Va={fill:H(G.color),stroke:H(G.borderColor),"stroke-width":u,"stroke-dasharray":G.dashStyle},la=G.rolloverProperties,la={fill:H(la.color),stroke:H(la.borderColor),"stroke-width":la.borderWidth,"stroke-dasharray":la.dashStyle});A={x:S?Y:ia,y:na,width:S?0:da||1,height:X,r:D,fill:H(G.color),stroke:H(G.borderColor),"stroke-width":u,"stroke-dasharray":G.dashStyle,"stroke-linejoin":"miter",cursor:qa?"pointer":"",
visibility:Z};Ba?Ba.attr(A):Ba=oa.graphic=k.rect(A,xa);Ba.shadow(m.shadow&&G.shadow,Sa).data("BBox",Ha);S&&Ba.animate({x:ia,width:da||1},S,"normal",c.getAnimationCompleteFn());if(qa||C)!l&&da<M&&(ia-=(M-da)/2,da=M),f=oa.tracker,A={x:ia,y:na,width:da,height:X,r:D,cursor:qa?"pointer":"",stroke:w,"stroke-width":u,fill:w,ishot:!0},f?f.attr(A):f=oa.tracker=k.rect(A,n),f.data("eventArgs",Aa);(f||Ba).data("eventArgs",Aa).click(q).hover(Pa(Ba,la),Oa(Ba,Va)).tooltip(B)}B=c.drawPlotBarLabel(a,b,t,ia,na)}B&&
h.push(B);Ba&&h.push(Ba);f&&h.push(f);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,k=this.logic,l=h.chart,n=this.paper,m=this.layers,p=h.plotOptions.series.dataLabels.style,h=this.canvasLeft,s=this.canvasWidth,t=a.data[c],w=a.items[c];a=l.valuePadding+2;var v=w.graphic;c=w.dataLabel;var B=0>t.y,D=k.isStacked,k=k.is3D,I=l.xDepth||0,H=l.yDepth||0,K=t.displayValue;b=!1===b.visible?"hidden":"visible";l=l.placeValuesInside;
g=g||m.datalabels;Aa(K)&&K!==C&&null!==t.y?(c||(c=w.dataLabel=n.text({"class":"fusioncharts-label",text:K,"font-size":p.fontSize,"text-anchor":D?"middle":B?l?"start":"end":l?"end":"start",title:t.originalText||"",fill:p.color,x:0,y:0,"line-height":p.lineHeight},g).attr("text-bound",[p.backgroundColor,p.borderColor,p.borderThickness,p.borderPadding,p.borderRadius,p.borderDash])),g=c.getBBox(),n=v.data("BBox"),p=n.height,m=n.width,n=g.width,n+=a,e+=0.5*p,p=d+(B?0:m),d=B?d-h:h+s-(d+m),D?(p=p+0.5*(B?
m:-m)-(k?I:0),e+=k?H:0):(l?m>=n?(p+=B?a:-a,k&&(p-=I,e+=H)):(p+=B?-a:a,k&&B&&(p-=I)):d>=n?(p+=B?-a:a,k&&B&&(p-=I,e+=I)):(p+=B?a:-a,k&&(p-=I,e+=H)),p>h+s&&(p=h+s-0.5*g.width-4),p<h&&(p=h+0.5*g.width+4)),c.attr({x:p,y:e,visibility:b})):c&&c.attr({text:C});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,k=c.logic,l=g.plotOptions.series,n=a.items,m=a.graphics=a.graphics||[],t,v=c.xAxis[b.xAxis||0],
B=c.yAxis[b.yAxis||0],C=k.multisetRealtime||k.dragExtended,I=k.isWaterfall,F,J,R,Q,M,S=0,X=!1!==(g.tooltip||{}).enabled,W,$=isNaN(+l.animation)&&l.animation.duration||1E3*l.animation,Z,Y=l.dataLabels.style,ca={fontFamily:Y.fontFamily,fontSize:Y.fontSize,lineHeight:Y.lineHeight,fontWeight:Y.fontWeight,fontStyle:Y.fontStyle},aa=h.xDepth||0,da=h.yDepth||0,q=h.series2D3Dshift,u=b.step,A=b.drawVerticalJoins,G=b.useForwardSteps,f=a.data,O=!1===b.visible?"hidden":"visible",L,fa=f.length,ba=v.getAxisPosition(0),
ea=v.getAxisPosition(1)-ba,na=ea*fa,oa=v.axisData.scroll||{},ia=h.hasScroll||!1,qa,ua=l.connectNullData,za=c.chartWidth,ya=c.chartHeight,Aa=function(){jc.attr({"clip-rect":null});zb.show();xc.show();rb.show();Fc.attr({transform:"...t"+-za+","+-ya})},Ba,xa,Da,Ha,Sa,Pa,Ga,Oa=null,La,$a,Za=l.connectorWidth=s(b.lineWidth),eb=b.color,lb,hb,sb=l.connectorDashStyle=b.dashStyle,Ma,Ra,qb,kb,jb,Ua,gb,tb,xb,Mb=c.layers,Ec=Mb.dataset=Mb.dataset||d.group("dataset-orphan"),Fc=Mb.datalabels=Mb.datalabels||d.group("datalabels").insertAfter(Ec),
uc=Mb.tracker,Gc=e["clip-canvas-init"].slice(0),Bc=e["clip-canvas"].slice(0),Hc=B.axisData.reversed,ac=B.max,bc=B.min,Nc=B.getAxisPosition(0<ac&&0<bc?Hc?ac:bc:0>ac&&0>bc?Hc?bc:ac:Hc?ac:0)+(q?da:0),Kb=[],Nb=h.anchorTrackingRadius,pb=/drag/ig.test(c.logic.rendererId),cb,Yb,ub,xc,zb,jc,rb,Wa,Rb,Zb,Ea,Cb,ta=[],$b=function(a){sa.call(this,c,a)},Wb=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOver",a,c)}},Oc=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOut",
a,c)}},Fa=function(e,f,g,h,k,l,n,p){return function(){var q=g.imageUrl,s=g.imageScale,u=g.imageAlpha,t=n.imageHoverAlpha,A=n.imageHoverScale,v=this.height*s*0.01,B=this.width*s*0.01,C=this.width*A*0.01;gb={x:e-this.width*s*0.005,y:f-this.height*s*0.005,width:B,height:v,alpha:u};tb={x:e-this.width*A*0.005,y:f-this.height*A*0.005,width:C,height:this.height*A*0.01,alpha:t};t=C>B?tb:gb;pb&&(t={cx:e,cy:f,r:0.5*la(v,B)});(h.graphic=kb=d.image(q,rb).attr(gb).css({opacity:0.01*u}).data("alwaysInvisible",
!s).data("setRolloverProperties",n).data("setRolloverAttr",tb).data("setRolloutAttr",gb).data("anchorRadius",s).data("anchorHoverRadius",A))&&m.push(kb);if(xa||X||n)jb=h.tracker=(pb?d.circle(uc):d.rect(uc)).attr(t).attr({cursor:xa?"pointer":"",stroke:w,"stroke-width":g.lineWidth,fill:w,ishot:!0,visibility:O}).data("eventArgs",k).data("groupId",cb).click($b).hover(Wb(h),Oc(h)).tooltip(l);c.drawTracker&&c.drawTracker.call(c,a,b,p);(Ea=h.dataLabel=c.drawPlotLineLabel(a,b,p,e,f))&&m.push(Ea)}},Hb=function(d,
e,f,g,h,k,l,n){return function(){(Ea=g.dataLabel=c.drawPlotLineLabel(a,b,n,d,e))&&m.push(Ea)}};c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",ca);Fc.attr("class","fusioncharts-datalabels");l.connectorOpacity=K.color(eb).opacity;B.yBasePos=Nc;I&&(F=(J=c.definition.chart)&&J.plotspacepercent,R=l.groupPadding,Q=l.maxColWidth,M=(1-0.01*F)*ea||ga(ea*(1-2*R),1*Q),S=M/2);Fc.attr({transform:"...t"+za+","+ya});$&&c.animationCompleteQueue.push({fn:Aa,scope:c});ub=Ec.line||(Ec.line=d.group("line-connector",
Ec));xc=a.lineShadowLayer||(a.lineShadowLayer=d.group("connector-shadow",ub));zb=a.anchorShadowLayer||(a.anchorShadowLayer=d.group("anchor-shadow",ub));jc=a.lineLayer||(a.lineLayer=d.group("connector",ub));rb=a.anchorLayer||(a.anchorLayer=d.group("anchors",ub));rb.hide();xc.hide();zb.hide();for(L=0;L<fa;L+=1){Ba=f[L];Sa=Ba.y;Pa=Ba.previousY||0;W=Ba.toolText;cb=a.index+"_"+L;xb=Ea=kb=jb=null;t=n[L]={index:L,value:null,graphic:null,connector:null,dataLabel:null,shadowGroup:zb,tracker:null};if(null===
Sa)ta.length=0,0===ua&&(Oa=null);else{Ha=p(Ba.x,L);xa=Ba.link;"boxandwhisker"===b.relatedSeries&&b.pointStart&&(Ha+=b.pointStart);$a=B.getAxisPosition(Sa+Pa)+(q?da:0);La=v.getAxisPosition(Ha)-aa;La=N(La,Za,Za).position;$a=N($a,Za,Za).position;if((Ma=Ba.marker)&&Ma.enabled)if(Ra=Ma.symbol.split("_"),qb="spoke"===Ra[0]?1:0,Da=Ma.radius,Wa=Ma.shadow,Yb={index:L,link:xa,value:Ba.y,displayValue:Ba.displayValue,categoryLabel:Ba.categoryLabel,toolText:Ba.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,
visible:a.visible},gb=tb={},Ua=Ba.rolloverProperties,Ma.imageUrl)Cb=new D,Cb.onload=Fa(La,$a,Ma,t,Yb,W,Ua,L),Cb.onerror=Hb(La,$a,Ma,t,Yb,W,Ua,L),Cb.src=Ma.imageUrl;else{Ua&&(gb={polypath:[Ra[1]||2,La,$a,Da,Ma.startAngle,qb],fill:H(Ma.fillColor),"stroke-width":Ma.lineWidth,stroke:H(Ma.lineColor)},tb={polypath:[Ua.sides||2,La,$a,Ua.radius,Ua.startAngle,Ua.dip],fill:H(Ua.fillColor),"stroke-width":Ua.lineWidth,stroke:H(Ua.lineColor)});kb=t.graphic=d.polypath(Ra[1]||2,La,$a,Da,Ma.startAngle,qb,rb).attr({fill:H(Ma.fillColor),
"stroke-width":Ma.lineWidth,stroke:H(Ma.lineColor),cursor:xa?"pointer":"",visibility:Da?O:"hidden"}).data("alwaysInvisible",!Da).data("setRolloverProperties",Ua).data("setRolloverAttr",tb).data("setRolloutAttr",gb).data("anchorRadius",Da).data("anchorHoverRadius",Ua&&Ua.radius).shadow(Wa||!1,zb);if(xa||X||Ua)Da=la(Da,Ua&&Ua.radius||0,Nb),jb=t.tracker=d.circle({cx:La,cy:$a,r:Da,cursor:xa?"pointer":"",stroke:w,"stroke-width":Ma.lineWidth,fill:w,ishot:!0,visibility:O},uc);(jb||kb).data("eventArgs",Yb).data("groupId",
cb).click($b).hover(Wb(t),Oc(t)).tooltip(W);c.drawTracker&&c.drawTracker.call(c,a,b,L)}Rb=Zb!==[H(Ba.color||eb),Ba.dashStyle||sb].join(":");if(null!==Oa){if(ta.length&&(Kb=Kb.concat(ta),ta.length=0),(C||I||!Kb.join(""))&&Kb.push("M",Ga,Oa),I&&Kb.push("m",-S,0),u?G?(Kb.push("H",La),I&&Kb.push("h",S),A?Kb.push("V",$a):Kb.push("m",0,$a-Oa)):(A&&Kb.push("V",$a),Kb.push("M",Ga,$a,"H",La)):Kb.push("L",La,$a),C||Rb)xb=t.connector=d.path(Kb,jc).attr({"stroke-dasharray":hb,"stroke-width":Za,stroke:lb,"stroke-linecap":"round",
"stroke-linejoin":2<Za?"round":"miter",visibility:O}).shadow(l.shadow&&Ba.shadow,xc),Kb=[]}else!C&&ta.push("M",La,$a);Ma&&Ma.imageUrl||(Ea=t.dataLabel=c.drawPlotLineLabel(a,b,L,La,$a));Ga=La;Oa=$a;lb=H(Ba.color||eb);hb=Ba.dashStyle||sb;Zb=[lb,hb].join(":")}Ea&&m.push(Ea);kb&&m.push(kb);xb&&m.push(xb);jb&&m.push(jb)}!C&&Kb.join("")&&(xb=d.path(Kb,jc).attr({"stroke-dasharray":hb,"stroke-width":Za,stroke:lb,"stroke-linecap":"round","stroke-linejoin":2<Za?"round":"miter",visibility:O}).shadow(l.shadow&&
Ba.shadow,xc))&&m.push(xb);ia&&(qa=oa.startPercent,Bc[2]=na+Gc[0],1===qa&&(Gc[0]=Bc[2],Bc[0]=0));$?(Z=K.animation({"clip-rect":Bc},$,ia?"easeIn":"normal",c.getAnimationCompleteFn()),jc.attr({"clip-rect":Gc}).animate(I?Z.delay($):Z)):(Aa&&Aa(),Aa=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,k=1===h.rotateValues?270:0,l=g.data("setRolloverProperties"),n=g.data("isRealtime"),m=n&&g.attr("polypath"),p=g.data("setRolloverAttr"),
s="image"===g.type,t=g.data("setRolloutAttr"),w=d&&(d.data("isBelow")?1:-1)*(s?0.5*(p.height-t.height):g.data("anchorHoverRadius")-g.data("anchorRadius")),v="DataPlotRollOver"==c?p:t,B={transform:"T0,"+("DataPlotRollOver"===c?w:0)+"R"+k},C={fill:v.fill,"stroke-width":v["stroke-width"],stroke:v.stroke},v=s?v:{polypath:v.polypath},h=h.syncLabelWithAnchor,D=g.data("anchorRadius"),I=g.data("anchorHoverRadius"),p=!(/,0\)$/.test(p.fill)&&/,0\)$/.test(t.fill))&&g.data("anchorHoverRadius")-g.data("anchorRadius")&&
l.animation&&50;d&&d.data("isMiddle")&&(B={transform:"T,"+("DataPlotRollOver"===c?w:0)+",0R"+k});l&&(("DataPlotRollOver"==c&&0!==I||"DataPlotRollOut"==c&&0!==D)&&g.attr({visibility:"visible"}),s?g.css({opacity:0.01*v.alpha}):g.attr(C),n&&!s&&(v.polypath[1]=m[1],v.polypath[2]=m[2]),g.stop(),g.animate(v,p,"easeOut",function(){("DataPlotRollOver"==c&&!I||"DataPlotRollOut"==c&&!D)&&g.attr({visibility:"hidden"})}),d&&d.stop(),p&&h&&d&&d.animate(B,p,"easeOut"));sa.call(a,e,b,c)},drawPlotArea:function(a,
b){var c=this,d=c.paper,e=c.options,g=e.chart,h=c.logic,k=e.plotOptions.series,l=c.elements,n=a.items,s=a.graphics=a.graphics||[],t,v=c.xAxis[b.xAxis||0],B=c.yAxis[b.yAxis||0],C=B.axisData.reversed,I=g.xDepth||0,K=g.yDepth||0,h=h.isStacked,F=!1!==(e.tooltip||{}).enabled,J,R,e=k.dataLabels.style,Q={fontFamily:e.fontFamily,fontSize:e.fontSize,lineHeight:e.lineHeight,fontWeight:e.fontWeight,fontStyle:e.fontStyle,color:e.color},e=isNaN(+k.animation)&&k.animation.duration||1E3*k.animation,M=g.series2D3Dshift,
N="0"===c.definition.chart.drawfullareaborder,S=a.data,X=!1===b.visible?"hidden":"visible",W=S.length,$=v.getAxisPosition(0),Z=(v.getAxisPosition(1)-$)*W,Y=v.axisData.scroll||{},$=g.hasScroll||!1,ca=k.connectNullData,q,u,A,G,f,O=B.max,L=B.min,aa=B.getAxisPosition(0<O&&0>L?0:!C&&0<O&&0<=L?L:O)+(M?K:0),da=c.chartWidth,fa=c.chartHeight,C=function(){Ra.attr({"clip-rect":null});Ma.show();lb.show();Pa.attr({transform:"...t"+-da+","+-fa})},ba=null,ea,ga,O=b.lineWidth,L=b.dashStyle,qa=H(b.fillColor),na=H(b.lineColor),
ia=0,oa=/drag/ig.test(c.logic.rendererId),ua,Ba,za,Da,ya,Aa,xa=[],Ha=[],La=null,Oa=[],Ga=c.layers;G=Ga.dataset=Ga.dataset||d.group("dataset-orphan");var Pa=Ga.datalabels=Ga.datalabels||d.group("datalabels").insertAfter(G),eb=Ga.tracker,Ga=l["clip-canvas-init"].slice(0),l=l["clip-canvas"].slice(0),g=g.anchorTrackingRadius,kb,lb,hb,Ma,Ra,jb,qb,sb,Ua,gb,tb=function(a){sa.call(this,c,a)},xb=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOver",a,c)}},Mb=function(a){return function(b){c.hoverPlotAnchor(this,
b,"DataPlotRollOut",a,c)}},La=function(e,f,g,h,k,l,n,p){return function(){var q=g.imageUrl,t=g.imageScale,v=g.imageAlpha,A=n.imageHoverAlpha,B=n.imageHoverScale,C=this.width*t*0.01,D=this.width*B*0.01;ya={x:e-this.width*t*0.005,y:f-this.height*t*0.005,width:C,height:this.height*t*0.01,alpha:v};Aa={x:e-this.width*B*0.005,y:f-this.height*B*0.005,width:D,height:this.height*B*0.01,alpha:A};A=D>C?Aa:ya;oa&&(A={cx:e,cy:f,r:0.5*la(D,C)});(h.graphic=Ba=d.image(q,Ma).attr(ya).css({opacity:0.01*v}).data("alwaysInvisible",
!t).data("setRolloverProperties",n).data("setRolloverAttr",Aa).data("setRolloutAttr",ya).data("anchorRadius",t).data("anchorHoverRadius",B))&&s.push(Ba);if(u||F||n)kb=m({cursor:u?"pointer":"",stroke:w,"stroke-width":g.lineWidth,fill:w,ishot:!0,visibility:X},A),za=h.tracker=(oa?d.circle(kb,eb):d.rect(kb,eb)).data("eventArgs",k).click(tb).hover(xb(h),Mb(h)).tooltip(l),c.drawTracker&&c.drawTracker.call(c,a,b,p);(gb=h.dataLabel=c.drawPlotLineLabel(a,b,p,e,f))&&s.push(gb)}},Ec=function(d,e,f,g,h,k,l,n){return function(){(gb=
g.dataLabel=c.drawPlotLineLabel(a,b,n,d,e))&&s.push(gb)}};c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",Q);Pa.attr("class","fusioncharts-datalabels");B.yBasePos=aa;Pa.attr({transform:"...t"+da+","+fa});e&&c.animationCompleteQueue.push({fn:C,scope:c});Q=G;h&&(jb=Q.shadows||(Q.shadows=d.group("shadows",Q).toBack()));Ra=Q.area=Q.area||d.group("area",Q);Q=Q.line||(Q.line=d.group("line-connector",Q));a.lineShadowLayer||(a.lineShadowLayer=d.group("connector-shadow",Q));lb=a.anchorShadowLayer||
(a.anchorShadowLayer=d.group("anchor-shadow",Q));hb=a.lineLayer||(a.lineLayer=d.group("connector",Q));Ma=a.anchorLayer||(a.anchorLayer=d.group("anchors",Q));Ma.hide();lb.hide();Q=G;for(Q=0;Q<W;Q+=1){q=S[Q];G=q.y;t=p(q.x,Q);ea=v.getAxisPosition(t)-I;Ba=gb=za=null;t=n[Q]={};if(null===G)0===ca&&(ba=null,0<ia&&(1===ia?xa.splice(-8,8):(xa=xa.concat(Ha),xa.push("Z")),Ha=[])),t.chart=c,t.index=Q,t.value=G;else{u=q.link;J=q.toolText;R=q.previousY;f=(f=B.getAxisPosition(R)||null)||aa;ga=B.getAxisPosition(G+
(R||0))+(M?K:0);if((Ua=q.marker)&&Ua.enabled)if(R={index:Q,link:u,value:q.y,displayValue:q.displayValue,categoryLabel:q.categoryLabel,toolText:q.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},ya=Aa={},Da=q.rolloverProperties,Ua.imageUrl)A=new D,A.onload=La(ea,ga,Ua,t,R,J,Da,Q),A.onerror=Ec(ea,ga,Ua,t,R,J,Da,Q),A.src=Ua.imageUrl;else{ua=Ua.symbol.split("_");A=Ua.radius;sb=Ua.shadow;Da&&(ya={polypath:[ua[1]||2,ea,ga,A,Ua.startAngle,0],fill:H(Ua.fillColor),"stroke-width":Ua.lineWidth,
stroke:H(Ua.lineColor)},Da=q.rolloverProperties,Aa={polypath:[Da.sides||2,ea,ga,Da.radius,Da.startAngle,Da.dip],fill:H(Da.fillColor),"stroke-width":Da.lineWidth,stroke:H(Da.lineColor)});Ba=t.graphic=d.polypath(ua[1]||2,ea,ga,A,Ua.startAngle,0,Ma).attr({fill:H(Ua.fillColor),"stroke-width":Ua.lineWidth,stroke:H(Ua.lineColor),cursor:u?"pointer":"",visibility:A?X:"hidden"}).data("alwaysInvisible",!A).data("setRolloverProperties",Da).data("setRolloverAttr",Aa).data("setRolloutAttr",ya).data("anchorRadius",
A).data("anchorHoverRadius",Da&&Da.radius).shadow(sb||!1,lb);if(u||F||Da)h||(A=la(A,Da&&Da.radius||0,g)),za=t.tracker=d.circle({cx:ea,cy:ga,r:A,cursor:u?"pointer":"",stroke:w,"stroke-width":Ua.lineWidth,fill:w,ishot:!0,visibility:X},eb);(za||Ba).data("eventArgs",R).click(tb).hover(xb(t),Mb(t)).tooltip(J);c.drawTracker&&c.drawTracker.call(c,a,b,Q)}null===ba?(Oa.push("M",ea,",",ga),xa.push("M",ea,",",f),ia=0):Oa.push("L",ea,",",ga);xa.push("L",ea,",",ga);Ha.unshift("L",ea,",",f);ia++;ba=ga;Ua&&Ua.imageUrl||
(gb=t.dataLabel=c.drawPlotLineLabel(a,b,Q,ea,ga));t.chart=c;t.index=Q;t.value=G;t.dataLabel=gb}gb&&s.push(gb);Ba&&s.push(Ba);za&&s.push(za)}0<ia&&(1===ia?xa.splice(-8,8):(xa=xa.concat(Ha),xa.push("Z")));(La=a.graphic=d.path(xa,Ra).attr({fill:qa,"stroke-dasharray":L,"stroke-width":N?0:O,stroke:na,"stroke-linecap":"round","stroke-linejoin":2<O?"round":"miter",visibility:X}).shadow(k.shadow&&q.shadow,jb))&&s.push(La);$&&(k=Y.startPercent,l[2]=Z+Ga[0],1===k&&(Ga[0]=l[2],l[0]=0));e?qb=Ra.attr({"clip-rect":Ga}).animate({"clip-rect":l},
e,$?"easeIn":"normal",c.getAnimationCompleteFn()):(C&&C(),C=void 0);jb&&(e?jb.attr({"clip-rect":Ga}).animateWith(Ra,qb,{"clip-rect":l},e,$?"easeIn":"normal",function(){jb.attr({"clip-rect":null})}):jb.attr({"clip-rect":null}));N&&(k=a.connector=d.path(Oa,hb).attr({"stroke-dasharray":L,"stroke-width":O,stroke:na,"stroke-linecap":"round","stroke-linejoin":2<O?"round":"miter",visibility:X}),e?hb.attr({"clip-rect":Ga}).animateWith(Ra,qb,{"clip-rect":l},e,$?"easeIn":"normal",function(){hb.attr({"clip-rect":null})}):
hb.attr({"clip-rect":null}),k&&s.push(k));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,k=c.elements,l=a.items,n,m=a.graphics=a.graphics||[],p=c.xAxis[b.xAxis||0],s=c.yAxis[b.yAxis||0],t=a.data,v=!1===b.visible?"hidden":"visible",d=!1!==(d.tooltip||{}).enabled,B,C=g.dataLabels.style,D={fontFamily:C.fontFamily,fontSize:C.fontSize,lineHeight:C.lineHeight,fontWeight:C.fontWeight,fontStyle:C.fontStyle,color:C.color},
C=isNaN(+g.animation)&&g.animation.duration||1E3*g.animation,I=c.chartWidth,K=c.chartHeight,F,Q,J,R,M,N,S,X,W,$=b.lineWidth,q=0<$,u=b.color,A=b.dashStyle,G=g.connectNullData,f=[],O,L,Z,Y,ca,aa,da=c.layers,ea=da.dataset||(da.dataset=h.group("dataset-orphan")),fa=da.datalabels||(da.datalabels=h.group("datalabels").insertAfter(ea)),da=da.tracker,e=e.anchorTrackingRadius,ba,ga,ia,na=function(a){sa.call(this,c,a)},oa=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOver",a,c)}},ua=
function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOut",a,c)}};c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",D);fa.attr("class","fusioncharts-datalabels");C&&(c.animationCompleteQueue.push({fn:function(){fa.attr({transform:"...t"+-I+","+-K})},scope:c}),fa.attr({transform:"...t"+I+","+K}));ba=ea.line||(ea.line=h.group("line-connector",ea));a.lineShadowLayer=h.group("connector-shadow",ba);ea=a.anchorShadowLayer=h.group("anchor-shadow",ba);D=a.lineLayer=h.group("connector",
ba);ba=a.anchorLayer=h.group("anchors",ba);F=0;for(Q=t.length;F<Q;F+=1){J=t[F];O=J.marker;X=W=Y=B=ca=null;ia=a.index+"_"+F;N=J.y;M=J.x;if(null!==N&&null!==M){if(O&&O.enabled){R=J.link;B=J.toolText;Z=O.radius;ga=O.shadow;W=s.getAxisPosition(N);X=p.getAxisPosition(M);L={index:F,link:R,y:J.y,x:J.x,displayValue:J.displayValue,categoryLabel:J.categoryLabel,toolText:J.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};Y=O.symbol.split("_");n=l[F]={index:F,x:M,y:N,value:N};M=
N={};J.hoverEffects&&(M={polypath:[Y[1]||2,X,W,Z,O.startAngle,0],fill:H(O.fillColor),"stroke-width":O.lineWidth,stroke:H(O.lineColor)},aa=J.rolloverProperties,N={polypath:[aa.sides||2,X,W,aa.radius,aa.startAngle,aa.dip],fill:H(aa.fillColor),"stroke-width":aa.lineWidth,stroke:H(aa.lineColor)});Y=n.graphic=h.polypath(Y[1]||2,X,W,Z,O.startAngle,0,ba).attr({fill:H(O.fillColor),"stroke-width":O.lineWidth,stroke:H(O.lineColor),cursor:R?"pointer":"",visibility:Z?v:"hidden"}).data("alwaysInvisible",!Z).data("setRolloverProperties",
aa).data("setRolloverAttr",N).data("setRolloutAttr",M).data("anchorRadius",Z).data("anchorHoverRadius",aa&&aa.radius).shadow(ga||!1,ea);if(R||d||aa)Z=la(Z,aa&&aa.radius||0,e),ca=n.tracker=h.circle({cx:X,cy:W,r:Z,cursor:R?"pointer":"",stroke:w,"stroke-width":O.lineWidth,fill:w,ishot:!0,visibility:v},da);(ca||Y).data("eventArgs",L).data("groupId",ia).click(na).hover(oa(n),ua(n)).tooltip(B)}q&&((void 0===S||null===S&&0===G)&&X&&W&&f.push("M",X,",",W),X&&W&&f.push("L",X,",",W),S=W);B=n.dataLabel=c.drawPlotLineLabel(a,
b,F,X,W)}else q&&0===G&&(S=null),l[F]={chart:c,index:F,x:M,y:N};B&&m.push(B);Y&&m.push(Y);ca&&m.push(ca);c.drawTracker&&c.drawTracker.call(c,a,b,F)}f.length&&(g=a.graphic=h.path(f,D).attr({"stroke-dasharray":A,"stroke-width":$,stroke:u,"stroke-linecap":"round","stroke-linejoin":2<$?"round":"miter",visibility:v}).shadow(g.shadow&&J.shadow),D.attr({"clip-rect":k[C?"clip-canvas-init":"clip-canvas"]}),C&&D.animate({"clip-rect":k["clip-canvas"]},C,"normal"),m.push(g));C&&ba.attr({opacity:0}).animate({opacity:1},
C,"normal",c.getAnimationCompleteFn());a.visible=!1!==b.visible;return a},drawPlotLineLabel:function(a,b,c,d,e,g){var h=this.options,k=h.chart,l=this.paper,n=this.layers,m=h.plotOptions.series.dataLabels.style,h=1===k.rotateValues?270:0,p=this.canvasHeight,s=this.canvasTop,t=a.data,w=t[c],v=a.items[c],B=W(w.valuePosition,"auto").toLowerCase();a=this.logic.defaultSeriesType;var D=v.graphic,I=w.marker,D=I&&I.enabled?D&&"image"==D.type&&0.5*D.attr("height")||I&&I.radius-3:0,k=k.valuePadding+2+D;b=!1===
b.visible?"hidden":"visible";D=v.dataLabel;g=g||n.datalabels;switch(B){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;Aa(n)&&n!==C?(D?h&&D.attr("transform",["r",360-h]):D=v.dataLabel=l.text(g).attr({"class":"fusioncharts-label",text:n,fill:m.color,"text-bound":[m.backgroundColor,m.borderColor,m.borderThickness,m.borderPadding,m.borderRadius,m.borderDash],"font-weight":m.fontWeight,"font-style":m.fontStyle,"font-family":m.fontFamily,
"font-size":m.fontSize,"line-height":m.lineHeight}),D.attr({title:w.originalText||"",fill:m.color}),v._state&&v._state.labelWidth||(g=D.getBBox(),v._state={labelWidth:g.width,labelHeight:g.height}),l=m=h?v._state.labelWidth:v._state.labelHeight,g=e-s,p=s+p-e,l=l+k+4,s=0.5*m+k,/bubble/i.test(a)||(c?p>l?(e+=s,w._valueBelowPoint=1):g>l&&(e-=s,w._valueBelowPoint=0):g>l?(e-=s,w._valueBelowPoint=0):p>l&&(e+=s,w._valueBelowPoint=1)),D.attr({x:d,y:e,visibility:b}).data("isBelow",w._valueBelowPoint),h&&D.attr("transform",
"T0,0,R"+h)):D&&D.attr({text:C});return D},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,k={right:"end",left:"start",undefined:"start"},l,n,m;c--;)m=b[c],l=m.style,n={fontFamily:l.fontFamily,fontSize:l.fontSize,lineHeight:l.lineHeight,fontWeight:l.fontWeight,fontStyle:l.fontStyle,fill:l.color},Aa(m.html)&&m.html!==
C&&(e[c]=a.text(d).attr({text:m.html,x:parseInt(l.left,10)+h,y:parseInt(l.top,10)+g,"text-anchor":k[m.textAlign],"vertical-align":m.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,k=e.options.series[0].enableMultiSlicing,l=d.data[c.index].doNotSlice,n=c.slicedTranslation,p,s;!d.isRotating&&sa.call(b,e,a);if(!(d.isRotating||d.singletonCase||l||(b=!k&&e.sliceInOtherPies(h),(a=c.sliced)&&b)))return b=c.graphic,d=c.connector,k=c.dataLabel,n="object"===typeof n?"t"+n:n,l=c.connectorPath,p=(a?-1:1)*c.transX,s=(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)}),k&&k.x&&k.animate({x:k.x+(a?0:p)},200,"easeIn"),l&&(l[1]+=p,l[2]+=s,l[4]+=p,l[6]+=p,d.animate({path:l},200,"easeIn")),a=c.sliced=!a,b={hcJSON:{series:[]}},b.hcJSON.series[0]={data:n=[]},n[h]={sliced:a},m(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*La;e.options.series[0].enableRotation&&(a=k.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*La,d={hcJSON:{series:[{startAngle:a}]}};b.disposed||(m(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:B(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:B(h.startingAngleOnDragStart,!0)},g.logic.chartInstance)),c=k.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(){var a=this.plotItem||this.data("plotItem"),b=a.chart,c=a.seriesData;K.supportsTouch&&!c.isRotating&&b.plotGraphicClick.call(a)},plotRollOver:function(a){var b=this.plotItem||this.data("plotItem"),c=b.chart,d,e;b.seriesData.isRotating||(sa.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||(sa.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:H(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,k,l){var n=this.options.plotOptions,m=n.pie,s=this.canvasLeft+0.5*this.canvasWidth,t=this.canvasTop+0.5*this.canvasHeight,w=this.smartLabel,v=n.series.dataLabels,B=v.style,n=p(hb(parseFloat(B.lineHeight)),12),C=na(v.placeLabelsInside,1===h.length?!0:!1),D=v.skipOverlapLabels,I=v.manageLabelOverflow,K=v.connectorPadding,H=v.distance,F=l&&l.metrics||[s,t,m.size,m.innerSize||0],J=F[1],Q=F[0];l=0.5*F[2];var R=[[],[],[],[]],M=this.canvasLeft,N=this.canvasTop,
m=this.canvasWidth,H=k.labelsRadius||(k.labelsRadius=l+H),t=s=parseInt(B.fontSize,10),S=t/2,K=[K,K,-K,-K];k=k.labelsMaxInQuadrant||(k.labelsMaxInQuadrant=Ha(H/t));var v=v.isSmartLineSlanted,F=F[3]/2,X,W,q,u,A,G,f,O,L,$,Z,Y,aa,ba,fa,ia,sa,xa,ya;g||w.setStyle(B);if(1==h.length&&!F&&C)F=h[0],(ba=F.dataLabel)&&ba.show(),F.slicedTranslation=[M,N],ba&&(ba.attr({visibility:oa,align:"middle",transform:["t",Q,J+S-2]}),ba.x=Q);else if(C)ya=F+(l-F)/2,ca(h,function(a){(ba=a.dataLabel)&&ba.show();ba&&(Y=a.angle,
Z=J+ya*ea(Y)+S-2,f=Q+ya*da(Y),ba.x=f,ba._x=f,ba.y=Z,a.sliced&&(xa=a.slicedTranslation,ia=xa[0]-M,sa=xa[1]-N,f+=ia,Z+=sa),ba.attr({visibility:oa,align:"middle",transform:["t",f,Z]}))});else{ca(h,function(a){(ba=a.dataLabel)&&ba.show();ba&&(Y=a.angle%qb,0>Y&&(Y=qb+Y),fa=0<=Y&&Y<Pa?1:Y<Oa?2:Y<sb?3:0,R[fa].push({point:a,angle:Y}))});for(h=g=4;h--;){if(D&&(B=R[h].length-k,0<B))for(R[h].sort(a),C=R[h].splice(0,B),B=0,u=C.length;B<u;B+=1)F=C[B].point,F.dataLabel.attr({visibility:"hidden"}),F.connector&&
F.connector.attr({visibility:"hidden"});R[h].sort(b)}h=la(R[0].length,R[1].length,R[2].length,R[3].length);aa=la(ga(h,k)*t,H+t);R[1].reverse();for(R[3].reverse();g--;){C=R[g];u=C.length;D||(t=u>k?aa/u:s,S=t/2);F=u*t;B=aa;for(h=0;h<u;h+=1,F-=t)q=za(aa*ea(C[h].angle)),B<q?q=B:q<F&&(q=F),B=(C[h].oriY=q)-t;X=c[g];u=aa-(u-1)*t;B=0;for(h=C.length-1;0<=h;h-=1,u+=t)if(F=C[h].point,Y=C[h].angle,A=F.sliced,ba=F.dataLabel,q=za(aa*ea(Y)),q<B?q=B:q>u&&(q=u),B=q+t,L=(q+C[h].oriY)/2,q=Q+e[g]*H*da(ua.asin(L/aa)),
L*=d[g],L+=J,$=J+l*ea(Y),G=Q+l*da(Y),(2>g&&q<G||1<g&&q>G)&&(q=G),f=q+K[g],Z=L-S-2,O=f+K[g],ba.x=O,ba._x=O,I&&(W=1<g?O-this.canvasLeft:this.canvasLeft+m-O,W=w.getSmartText(F.labelText,W,n),ba.attr({text:W.text,title:W.tooltext||""})),ba.y=Z,A&&(ia=F.transX,sa=F.transY,f+=ia,q+=ia,G+=ia,$+=sa,O+=ia),ba.attr({visibility:oa,"text-anchor":X,vAlign:"middle",x:O,y:L}),A=F.connector)F.connectorPath=F=["M",G,$,"L",v?q:G,L,f,L],A.attr({path:F,visibility:oa})}}}}()},b["renderer.root"])}]);
FusionCharts.register("module",["private","modules.renderer.js-interface",function(){var d=this,k=d.hcLib,B=d.renderer.getRenderer("javascript"),v=k.hasModule,l=k.loadModule,c=k.getMetaSentence,K=k.moduleCmdQueue,b=k.executeWaitingCommands,J=k.injectModuleDependency,a=k.moduleDependencies,D=k.getDependentModuleName,F,C;F=function(a){var e,g,l,s={},v;a=c(a);for(e in d.core.items)e=d.core.items[e],g=e.chartType(),l=e.options.chartTypeSourcePath+g,(g=e.jsVars)&&g.waitingModule&&e.__state.rendering&&
k.needsModule(a.predicate,l)&&(g.waitingModuleError=!0,g=D(l).concat(g.userModules),g.length&&(g=g[g.length-1],s[g]=k.moduleCmdQueue[g]));for(v in s)b(s[v]);d.raiseError(d.core,"11171116151","run","HC-interface~renderer.load","Unable to load required modules and resources: "+a.key)};C=function(a,b,c){d.hcLib.createChart(a,b,"stub",c,a.jsVars.msgStore.ChartNotSupported)};k.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"});k.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(B,{render:function(a,b){var c=this.chartType(),l=this.options.chartTypeSourcePath+c,s=this.jsVars,F=this.__state,m=k.chartAPI,I,Q;I=D(l).concat(s.userModules);s.isResizing&&(s.isResizing=clearTimeout(s.isResizing));s.hcObj&&s.hcObj.destroy&&s.hcObj.destroy();if(m[c]){if(m[F.lastRenderedType]&&F.lastRenderedType!==c)for(Q in d.raiseEvent("chartTypeChanged",{previousType:F.lastRenderedType,newType:c},this),m[F.lastRenderedType].eiMethods)delete this[Q];
F.lastRenderedType=c;F.lastRenderedSrc=this.src;!s.waitingModuleError&&k.raiseEvent("internal.loaded",{type:c,triggeredModuleLoad:s.drLoadAttempted||s.waitingModule},this,[this.id]);delete s.waitingModule;delete s.waitingModuleError;delete s.drLoadAttempted;d.hcLib.createChart(this,a,c,b)}else{if(c&&v(I)){if(s.drLoadAttempted){d.raiseError(this,11112822001,"run","HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");C(this,a,b);return}J(l)&&(I=D(l).concat(s.userModules));
s.drLoadAttempted=!0}else{if(!I.length){C(this,a,b);return}if(s.waitingModuleError){C(this,a,b);delete s.waitingModule;delete s.waitingModuleError;return}}(c=K[I[I.length-1]])?(c.push({cmd:"render",obj:this,args:arguments}),s.waitingModule||(d.hcLib.createChart(this,a,"stub",void 0,s.msgStore.PBarLoadingText||s.msgStore.LoadingText),B.load.call(this,a,b))):(d.raiseError(this,12080515551,"run","HC-interface~renderer.render","Unregistered module in dependentModule definition."),d.hcLib.createChart(this,
a,"stub",void 0,s.msgStore.RenderChartErrorText))}},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,k=this.jsVars;b&&b.resize&&(k.isResizing&&(k.isResizing=clearTimeout(k.isResizing)),k.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 k.isResizing},0))},dispose:function(){var a;a=this.jsVars;a.isResizing&&(a.isResizing=clearTimeout(a.isResizing));a.instanceAPI&&a.instanceAPI.dispose&&
(a.instanceAPI.dispose(),delete a.instanceAPI);if(a=this.ref)d.purgeDOM(a),a.parentNode&&a.parentNode.removeChild(a);k.cleanupWaitingCommands(this)},load:function(a,c){var g=this.jsVars,n=this.chartType(),s=d.hcLib.chartAPI[n],n=D(n).concat(g.userModules),v=n[n.length-1];s||!n||n&&0===n.length?(delete g.waitingModule,a&&C(this,a||this.ref,c)):g.waitingModule||(g.waitingModule=!0,delete g.waitingModuleError,l(n,function(){delete g.waitingModule;b(k.moduleCmdQueue[v])},F,this))}})}]);
FusionCharts.register("module",["private","modules.api.dynamicchartattributes",function(){var d=this;d.extend(d.core,{setChartAttribute:function(k,B){var v,l,c,K;if("string"===typeof k)v=k,k={},k[v]=B;else if(null===k||"object"!==typeof k)return;K=0;if(c=(v=this.getChartData(d.dataFormats.JSON))&&(v.chart||v.graph||v.map)){for(l in k)K+=1,null===k[l]?delete c[l.toLowerCase()]:c[l.toLowerCase()]=k[l];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(k){var B=this.getChartData(d.dataFormats.JSON),B=B&&(B.chart||B.graph||B.map),v,l;if(0===arguments.length||void 0===k||void 0===B)return B;if("string"===typeof k)v=B[k.toString().toLowerCase()];else if(k instanceof Array)for(v={},l=0;l<k.length;l+=1)v[k[l]]=B[k[l].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,k=d.FusionChartsDOMInsertModes,B={},v=function(c,k){this.items={};this.root=c;this.parent=k;k instanceof d.core?this.level=this.parent.link.level+1:(B[c.id]=[{}],this.level=0)},l=function(c,d){return(c.options.containerElement===d.options.containerElement||c.options.containerElementId===d.options.containerElementId)&&c.options.insertMode===k.REPLACE};d.policies.link=["link",void 0];v.prototype.configuration=function(){return B[this.root.id][this.level]||
(B[this.root.id][this.level]={})};d.extend(d.core,{configureLink:function(c,k){var b;if(c instanceof Array){for(b=0;b<c.length;b+=1)"object"!==typeof B[this.link.root.id][b]&&(B[this.link.root.id][b]={}),d.extend(B[this.link.root.id][b],c[b]);B[this.link.root.id].splice(c.length)}else"object"===typeof c?("number"!==typeof k&&(k=this.link.level),void 0===B[this.link.root.id][k]&&(B[this.link.root.id][k]={}),d.extend(B[this.link.root.id][k],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,k){var b=c.sender,B=b.clone({dataSource:k.data,dataFormat:k.linkType,link:new v(b.link.root,b)},!0),a=k.alias,D;a&&(!B.typeSource&&B.swfUrl&&(B.typeSource=B.swfUrl.replace(/(.*?)?[^\/]*\.swf.*?/ig,
"$1")),B.type=a);b.args&&0!==parseInt(b.args.animate,10)&&delete B.animate;d.extend(B,b.link.configuration());d.raiseEvent("beforeLinkedItemOpen",{level:b.link.level},b.link.root,void 0,function(){d.core.items[B.id]instanceof d.core&&d.core.items[B.id].dispose();D=new d.core(B);l(D,b)||b.options.overlayButton&&b.options.overlayButton.message||("object"!==typeof b.options.overlayButton&&(b.options.overlayButton={}),b.options.overlayButton.message="Close");D.render();d.raiseEvent("linkedItemOpened",
{level:b.link.level,item:D},b.link.root)})});d.addEventListener("overlayButtonClick",function(c,k){if("LinkManager"===k.id){var b=c.sender,v=b.link.level-1,a=b.link.parent,B=b.link.root;d.raiseEvent("beforeLinkedItemClose",{level:v,item:b},B,b,function(){setTimeout(function(){d.core.items[b.id]&&b.dispose();d.raiseEvent("linkedItemClosed",{level:v},B)},0);a.disposed||a.isActive()||!l(b,a)||a.render()})}});d.addEventListener("Loaded",function(c){c=c.sender;var k;c&&void 0!==c.link&&c.link.root!==c&&
c.link.parent instanceof d.core&&(c.ref&&"function"===typeof c.ref.drawOverlayButton?(k=d.extend({show:!0,id:"LinkManager"},c.link.parent.options.overlayButton),d.extend(k,c.link.parent.link.configuration().overlayButton||{}),c.ref.drawOverlayButton(k)):d.raiseWarning(c,"04091602","run","::LinkManager^Loaded","Unable to draw overlay button on object. -"+c.id))});d.addEventListener("beforeDispose",function(c){var k=c.sender;k&&k.link instanceof v&&(k&&k.link&&k.link.parent instanceof d.core&&k.link.parent.link&&
k.link.parent.link.items&&delete k.link.parent.link.items[c.sender.id],delete B[k.id])})}]);
FusionCharts.register("module",["private","modules.renderer.js-thememanager",function(){var d=this,k,B,v,l=/\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,k,l){var m,v,w,B;l?(k.push(a),l.push(c)):(k=[a],l=[c]);if(c instanceof Array)for(m=0;m<c.length;m+=1){try{v=a[m],w=c[m]}catch(C){continue}if("object"!==typeof w)d&&void 0===w||(a[m]=w);else{if(null===v||"object"!==typeof v)v=a[m]=w instanceof Array?[]:{};B=K(w,l);
-1!==B?v=a[m]=k[B]:b(v,w,d,k,l)}}else for(m in c){try{v=a[m],w=c[m]}catch(p){continue}if(null!==w&&"object"===typeof w)if(B=Object.prototype.toString.call(w),"[object Object]"===B){if(null===v||"object"!==typeof v)v=a[m]={};B=K(w,l);-1!==B?v=a[m]=k[B]:b(v,w,d,k,l)}else"[object Array]"===B?(null!==v&&v instanceof Array||(v=a[m]=[]),B=K(w,l),-1!==B?v=a[m]=k[B]:b(v,w,d,k,l)):a[m]=w;else a[m]=w}return a},J=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();l.test(a)?(a=a.replace(l,""),b.important=!0):(a=a.replace(c,"!imporant"),b.important=!1);b.str=a;return b},D=function(a,b){var c,d,k,l,v,w,B=0,C=0;for(c in a)if(d=a[c],d instanceof Array)for(w=d.length,v=0;v<w;v+=1){if(l=d[v],"object"===typeof l)if("category"===c)if("true"===l.vline){if(k=b.component("vline",B,l))F(l,k),B+=1}else{if(k=b.component("category",
C,l,w))F(l,k),C+=1}else if(k=b.component(c,v,l,w))F(l,k),D(l,k)}else"object"===typeof d&&(k=b.component(c,null,d))&&(F(d,k),D(d,k))},F=function(b,c){var d=c.getAll(),k,l;for(k in d)l=d[k].toString(),l=a(l),l.important?b[k.toLowerCase()]=l.str:void 0===b[k.toLowerCase()]&&(b[k.toLowerCase()]=l.str)},C=function(a,b){"geo"===b.defaultSeriesType&&w.call(this,a,b)},w=function(a,b){var c=a.sender,k=c.getChartData(d.dataFormats.JSON,!0),l;k.error||((l=k.data.chart.theme)?v.themify(l,c,c.chartType(),k.data,
"geo"===b.defaultSeriesType&&"geo"):c.jsVars.themeObject&&c.jsVars.themeObject.dispose())};k=function(){this.themeStore={}};k.prototype={constructor:k,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,k,l){var m=b.jsVars,v=a.split(","),D=[],F=v.length,J,p;if(F){for(p=0;p<F;p+=1){J=this.themeStore;var H;H=v[p];H=H.replace(/^\s\s*/,"");for(var K=/\s/,fa=H.length;K.test(H.charAt(fa-=1)););H=H.slice(0,fa+1);(J=J[H])&&D.push(this.evaluateThemeJSON(J.theme,
b,c,l))}D.length?(m.themeObject=new B(D,b,!1,k),this.applyTheme(b),b.addEventListener("chartTypeChanged",w),b.addEventListener("internal.drawstart",C)):d.raiseWarning(b,"14051100501","run","api.themes~themify()",'The theme "'+a+'" requested has not been registered.')}},evaluateThemeJSON:function(a,b,c,d){var k={},l=b.jsVars,v=function(a){var b,c;for(b in a)c=a[b],k[b]=c instanceof Array?J(k[b]||[],c):"object"===typeof c?J(k[b]||{},c):c};c=c||b.chartType();l.themeObject&&a!==l.themeObject&&(l.themeObject.dispose(),
delete l.themeObject);v(a.base);d&&a[d]&&v(a[d]);c&&a[c]&&v(a[c]);return k},applyTheme:function(a){a=a.jsVars.themeObject;var b=a.getThemedJSONData().data;b&&D(b,a)}};B=function(a,b,c,d){this.themeArray=a;this.themeComponents={};this.base={};this.chartInstance=b;this.isChildInstance=Boolean(c);this.themedData=c?null:J({},d);this.length=a.length;b=0;for(c=a.length;b<c;b+=1)this.parse(a[b])};B.prototype={constructor:B,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,k=this.base,l,m,v;for(m in b)if("string"===typeof b[m]||"number"===typeof b[m])if(k[m]){if(l=a(b[m]),v=a(k[m]),l.important||!v.important)k[m]=b[m]}else k[m]=b[m];else c[m]||(c[m]=[]),l=c[m],b[m]instanceof Array?l.push(J([],b[m])):"object"===typeof b[m]?l.push(new B([b[m]],d,!0)):"function"===typeof b[m]&&l.push(b[m])},merge:function(b){var c=this.base,d=b.base,k=this.themeComponents,l=b.themeComponents,m,v,w;for(w in d)if(m=
a(c[w]),v=a(d[w]),!m.important||v.important)c[w]=d[w];for(w in l)k[w]=k[w]?k[w].concat(l[w]):[].concat(l[w]);this.length+=b.length},get:function(a){return this.base[a]},getAll:function(){return J({},this.base)},component:function(a,b,c,d){var k=this.themeComponents,l=this.chartInstance,v=new B([],l,!0),w,C,D;C=k[a];if(!C)return null;a=0;for(k=C.length;a<k;a+=1)D=C[a],"function"===typeof D?(b=b||0,v.pushTheme(D.call(l,b,c,d))):D instanceof Array?(b=b||0,w=D.length,b%=w,w=D[b],w instanceof B?v.merge(w):
"function"===typeof w?v.pushTheme(w.call(l,b,c,d)):v.pushTheme(w)):D instanceof B?v.merge(D):v.pushTheme(D);return v},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",w),b.removeEventListener("internal.drawstart",C));this.dataWithoutTheme=this.isChildInstance=this.themeArray=
this.base=this.chartInstance=this.themeComponents=null}};v=new k;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,k=d.core.transcodeData(b.data,b.format,d.dataFormats.JSON),l=k.chart&&k.chart.theme;l?v.themify(l,c,c.args.type,k):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,k){8==d&&(k.value="");return{color:32E3>Number(k.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"}}}});
