/*
 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.9.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 f=window,t=f.document,C=f.navigator,q={window:f},d=q.modules={},a=q.interpreters={},m=Object.prototype.toString,F=/msie/i.test(C.userAgent)&&!f.opera,c=/loaded|complete/,l=!1,b=function(){var a=q.ready;q.ready=!0;q.raiseEvent&&(q.readyNotified=!0,q.raiseEvent("ready",{version:q.core.version,now:!a},q.core));q.readyNow=!a},p=function(a,b){var e,h;if(b instanceof Array)for(e=0;e<b.length;e+=1)"object"!==typeof b[e]?a[e]=b[e]:("object"!==
typeof a[e]&&(a[e]=b[e]instanceof Array?[]:{}),p(a[e],b[e]));else for(e in b)"object"===typeof b[e]?(h=m.call(b[e]),"[object Object]"===h?("object"!==typeof a[e]&&(a[e]={}),p(a[e],b[e])):"[object Array]"===h?(a[e]instanceof Array||(a[e]=[]),p(a[e],b[e])):a[e]=b[e]):a[e]=b[e];return a};q.extend=function(a,b,e,h){var k;e&&a.prototype&&(a=a.prototype);if(!0===h)p(a,b);else for(k in b)a[k]=b[k];return a};q.uniqueId=function(){return"chartobject-"+(q.uniqueId.lastId+=1)};q.uniqueId.lastId=0;q.policies=
{options:{chartTypeSourcePath:["typeSourcePath",""],product:["product","v3"],insertMode:["insertMode","replace"],safeMode:["safeMode",!0],overlayButton:["overlayButton",void 0],containerBackgroundColor:["containerBackgroundColor","#ffffff"],containerBackgroundOpacity:["containerBackgroundOpacity",1],containerClassName:["containerClassName","fusioncharts-container"],chartType:["type",void 0],baseChartMessageFont:["baseChartMessageFont","Verdana,sans"],baseChartMessageFontSize:["baseChartMessageFontSize",
"10"],baseChartMessageColor:["baseChartMessageColor","#666666"],baseChartMessageImageHAlign:["baseChartMessageImageHAlign","middle"],baseChartMessageImageVAlign:["baseChartMessageImageVAlign","middle"],baseChartMessageImageAlpha:["baseChartMessageImageAlpha",100],baseChartMessageImageScale:["baseChartMessageImageScale",100],dataLoadStartMessage:["dataLoadStartMessage","Retrieving data. Please wait."],dataLoadErrorMessage:["dataLoadErrorMessage","Error in loading data."],dataInvalidMessage:["dataInvalidMessage",
"Invalid data."],dataEmptyMessage:["dataEmptyMessage","No data to display."],typeNotSupportedMessage:["typeNotSupportedMessage","Chart type not supported."],loadMessage:["loadMessage","Loading chart. Please wait."],renderErrorMessage:["renderErrorMessage","Unable to render chart."]},attributes:{lang:["lang","EN"],id:["id",void 0]},width:["width","400"],height:["height","300"],src:["swfUrl",""]};a.stat="swfUrl id width height debugMode registerWithJS backgroundColor scaleMode lang detectFlashVersion autoInstallRedirect".split(" ");
q.parsePolicies=function(a,b,e){var h,k,c;for(k in b)if(q.policies[k]instanceof Array)c=e[b[k][0]],a[k]=void 0===c?b[k][1]:c;else for(h in"object"!==typeof a[k]&&(a[k]={}),b[k])c=e[b[k][h][0]],a[k][h]=void 0===c?b[k][h][1]:c};q.parseCommands=function(b,c,e){var h,k;"string"===typeof c&&(c=a[c]||[]);h=0;for(k=c.length;h<k;h++)b[c[h]]=e[h];return b};q.registrars={module:function(){return q.core.apply(q.core,arguments)}};q.core=function(b){if(!(this instanceof q.core)){if(1===arguments.length&&b instanceof
Array&&"private"===b[0]){if(d[b[1]])return;d[b[1]]={};b[3]instanceof Array&&(q.core.version[b[1]]=b[3]);return"function"===typeof b[2]?b[2].call(q,d[b[1]]):q}if(1===arguments.length&&"string"===typeof b)return q.core.items[b];q.raiseError&&q.raiseError(this,"25081840","run","",new SyntaxError('Use the "new" keyword while creating a new FusionCharts object'))}var c={};this.__state={};1===arguments.length&&"object"===typeof arguments[0]?c=arguments[0]:q.parseCommands(c,a.stat,arguments);1<arguments.length&&
"object"===typeof arguments[arguments.length-1]&&(delete c[a.stat[arguments.length-1]],q.extend(c,arguments[arguments.length-1]));this.id="undefined"===typeof c.id?this.id=q.uniqueId():c.id;this.args=c;q.core.items[this.id]instanceof q.core&&q.raiseWarning(this,"06091847","param","",Error('A FusionChart oject with the specified id "'+this.id+'" already exists. Renaming it to '+(this.id=q.uniqueId())));q.parsePolicies(this,q.policies,c);this.attributes.id=this.id;this.resizeTo&&this.resizeTo(c.width,
c.height,!0);this.chartType&&this.chartType(c.type||c.swfUrl,!0);q.raiseEvent("beforeInitialize",c,this);q.core.items[this.id]=this;q.core.defaultOptions=q.core.options;q.raiseEvent("initialized",c,this);return this};q.core.prototype={};q.core.prototype.constructor=q.core;q.extend(q.core,{id:"FusionCharts",version:["3","9","0"],items:{},options:{},getObjectReference:function(a){return q.core.items[a].ref},register:function(a){return q.registrars[a=a&&a.toString&&a.toString().toLowerCase()]&&q.registrars[a].apply(q.core,
Array.prototype.slice.call(arguments,1))}});f.FusionCharts=q.core;f.FusionMaps&&f.FusionMaps.legacy&&(q.core(["private","modules.core.geo",f.FusionMaps.legacy,f.FusionMaps.version]),l=!0);c.test(t.readyState)||t.loaded?(q.ready=!0,setTimeout(b,1)):function(){function a(){arguments.callee.done||(arguments.callee.done=!0,e&&clearTimeout(e),l||(f.FusionMaps&&f.FusionMaps.legacy&&q.core(["private","modules.core.geo",f.FusionMaps.legacy,f.FusionMaps.version]),f.FusionMaps=q.core),setTimeout(b,1))}function d(){c.test(t.readyState)?
a():e=setTimeout(d,10)}var e,h;t.addEventListener?t.addEventListener("DOMContentLoaded",a,!1):t.attachEvent&&f.attachEvent("onLoad",a);if(F)try{"https:"===f.location.protocol?t.write('<script id="__ie_onload_fusioncharts" defer="defer" src="//:">\x3c/script>'):t.write('<script id="__ie_onload_fusioncharts" defer="defer" src="javascript:void(0)">\x3c/script>'),h=t.getElementById("__ie_onload_fusioncharts"),h.onreadystatechange=function(){"complete"==this.readyState&&a()}}catch(k){}/WebKit/i.test(C.userAgent)&&
(e=setTimeout(d,10));f.onload=function(b){return function(){a();b&&b.call&&b.call(f)}}(f.onload)}();f.FusionMaps=q.core}})();
FusionCharts.register("module",["private","modules.mantle.errormanager",function(){var f=this,t=f.window,C={type:"TypeException",range:"ValueRangeException",impl:"NotImplementedException",param:"ParameterException",run:"RuntimeException",comp:"DesignTimeError",undefined:"UnspecifiedException"},q=function(a,d,F,c,l,b){var p="#"+d+" "+(a?a.id:"unknown-source")+c+" "+b+" >> ";l instanceof Error?(l.name=C[F],l.module="FusionCharts"+c,l.level=b,l.message=p+l.message,p=l.message,t.setTimeout(function(){throw l;
},0)):p+=l;d={id:d,nature:C[F],source:"FusionCharts"+c,message:p};f.raiseEvent(b,d,a);if("function"===typeof t["FC_"+b])t["FC_"+b](d)},d;f.raiseError=function(a,d,f,c,l){q(a,d,f,c,l,"Error")};f.raiseWarning=function(a,d,f,c,l){q(a,d,f,c,l,"Warning")};d={outputHelpers:{text:function(a,f){d.outputTo("#"+a.eventId+" ["+(a.sender.id||a.sender).toString()+'] fired "'+a.eventType+'" event. '+("error"===a.eventType||"warning"===a.eventType?f.message:""))},event:function(a,d){this.outputTo(a,d)},verbose:function(a,
f){d.outputTo(a.eventId,a.sender.id,a.eventType,f)}},outputHandler:function(a,m){"function"!==typeof d.outputTo?f.core["debugger"].outputFailed=!0:(f.core["debugger"].outputFailed=!1,d.currentOutputHelper(a,m))},currentOutputHelper:void 0,outputTo:void 0,enabled:!1};d.currentOutputHelper=d.outputHelpers.text;f.extend(f.core,{"debugger":{syncStateWithCharts:!0,outputFormat:function(a){return a&&"function"===typeof a.toLowerCase&&"function"===typeof d.outputHelpers[a=a.toLowerCase()]?(d.currentOutputHelper=
d.outputHelpers[a],!0):!1},outputTo:function(a){"function"===typeof a?d.outputTo=a:null===a&&(f.core["debugger"].enable(!1),delete d.outputTo)},enable:function(a,m,F){var c;"object"===typeof a&&1===arguments.length&&(c=a,a=c.state,m=c.outputTo,F=c.outputFormat);"function"===typeof a&&("string"!==typeof m||2!==arguments.length&&!c||(F=m),m=a,a=!0);if("boolean"===typeof a&&a!==d.enabled)f.core[(d.enabled=a)?"addEventListener":"removeEventListener"]("*",d.outputHandler);"function"===typeof m&&(d.outputTo=
m);f.core["debugger"].outputFormat(F);return d.enabled},enableFirebugLite:function(){var a;t.console&&t.console.firebug?f.core["debugger"].enable(t.console.log,"verbose"):((a=t.document.getElementsByTagName("html"))&&a[0].setAttribute("debug","true"),f.loadScript("https://getfirebug.com/firebug-lite.js#overrideConsole=false,startOpened=true",function(){f.core["debugger"].enable(t.console.log,"verbose")},"{ startOpened: true }",!0,!0))}},debugMode:{enabled:function(){t.setTimeout(function(){throw Error("Deprecated! Please use FusionCharts.debugger.enable instead.");
},0);return f.core["debugger"].enable.apply(f.core["debugger"],arguments)}}},!1)}]);
FusionCharts.register("module",["private","modules.mantle.eventmanager",function(){var f=this,t=f.window,C=f.core,q=t.Object.prototype.toString,d=q.call([]),a=function(a,b,c,e){try{a[0].call(b,c,e||{})}catch(h){setTimeout(function(){throw h;},0)}},m=function(b,c,d){if(b instanceof Array)for(var e=0,h;e<b.length;e+=1){if(b[e][1]===c.sender||void 0===b[e][1])h=b[e][1]===c.sender?c.sender:f.core,a(b[e],h,c,d),!0===c.detached&&(b.splice(e,1),--e,c.detached=!1);if(!0===c.cancelled)break}},F={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,b,c){var e,h;if(q.call(a)===d){e=[];for(h=0;h<a.length;h+=1)e.push(F.addListener(a[h],b,c));return e}if("string"!==typeof a)f.raiseError(c||f.core,"03091549","param","::EventTarget.addListener",Error("Unspecified Event Type"));else if("function"!==typeof b)f.raiseError(c||f.core,"03091550","param","::EventTarget.addListener",
Error("Invalid Event Listener"));else return a=a.toLowerCase(),F.listeners[a]instanceof Array||(F.listeners[a]=[]),F.listeners[a].push([b,c]),b},removeListener:function(a,b,c){var e;if("function"!==typeof b)f.raiseError(c||f.core,"03091560","param","::EventTarget.removeListener",Error("Invalid Event Listener"));else if(a instanceof Array)for(e=0;e<a.length;e+=1)F.removeListener(a[e],b,c);else if("string"!==typeof a)f.raiseError(c||f.core,"03091559","param","::EventTarget.removeListener",Error("Unspecified Event Type"));
else if(a=a.toLowerCase(),a=F.listeners[a],a instanceof Array)for(e=0;e<a.length;e+=1)a[e][0]===b&&a[e][1]===c&&(a.splice(e,1),--e)},triggerEvent:function(a,b,c,e,h,k){if("string"!==typeof a)f.raiseError(b,"03091602","param","::EventTarget.dispatchEvent",Error("Invalid Event Type"));else{a=a.toLowerCase();var d={eventType:a,eventId:F.lastEventId+=1,sender:b||Error("Orphan Event"),cancelled:!1,stopPropagation:this.unpropagator,prevented:!1,preventDefault:this.undefaulter,detached:!1,detachHandler:this.detacher};
m(F.listeners[a],d,c);m(F.listeners["*"],d,c);switch(d.prevented){case !0:if("function"===typeof k)try{k.call(e||b||t,d,c||{})}catch(l){setTimeout(function(){throw l;},0)}break;default:if("function"===typeof h)try{h.call(e||b||t,d,c||{})}catch(J){setTimeout(function(){throw J;},0)}}return!0}}},c=f.raiseEvent=function(a,b,c,e,h,k){return F.triggerEvent(a,c,b,e,h,k)},l=f.legacyEventList={},b={};f.disposeEvents=function(a){var b,c;for(b in F.listeners)for(c=0;c<F.listeners[b].length;c+=1)F.listeners[b][c][1]===
a&&F.listeners[b].splice(c,1)};f.raiseEventWithLegacy=function(a,b,d,e,h,k,v){var f=l[a];c(a,b,d,h,k,v);f&&"function"===typeof t[f]&&setTimeout(function(){t[f].apply(h||t,e)},0)};f.raiseEventGroup=function(a,d,l,e,h,k,v){var f=e.id,m=a+f;b[m]?(clearTimeout(b[m]),delete b[m]):f&&m?b[m]=setTimeout(function(){c(d,l,e,h,k,v);delete b[m]},0):c(d,l,e,h,k,v)};f.addEventListener=function(a,b){return F.addListener(a,b)};f.removeEventListener=function(a,b){return F.removeListener(a,b)};f.extend(C,{addEventListener:function(a,
b){return F.addListener(a,b)},removeEventListener:function(a,b){return F.removeListener(a,b)},ready:function(a,b,c){f.ready?(C.ready=function(a,h){"function"===typeof a&&setTimeout(function(){a.call(h||C,b||C)},0)},C.ready(a,c)):"function"===typeof a&&C.addEventListener("ready",function(){C.ready(a,b,c)});return this}});C.on=C.addEventListener;f.extend(C.prototype,{addEventListener:function(a,b){return F.addListener(a,b,this)},removeEventListener:function(a,b){return F.removeListener(a,b,this)}});
C.prototype.on=C.prototype.addEventListener;f.policies.options.events=["events",{}];f.addEventListener("beforeInitialize",function(a){a=a.sender;var b=a.options.events,c;if(b)for(c in b)"function"===typeof b[c]&&a.addEventListener(c,b[c])});f.ready&&!f.readyNotified&&(f.readyNotified=!0,f.raiseEvent("ready",{version:f.core.version,now:f.readyNow},f.core))}]);
FusionCharts.register("module",["private","modules.mantle.ajax",function(){var f=this,t=f.window,C=parseFloat(t.navigator.appVersion.split("MSIE")[1]),q=5.5<=C&&7>=C?!0:!1,d="file:"===t.location.protocol,a=t.ActiveXObject,m=(!a||!d)&&t.XMLHttpRequest,F={objects:0,xhr:0,requests:0,success:0,failure:0,idle:0},c=function(){var d;if(m)return c=function(){F.xhr++;return new m},c();try{d=new a("Msxml2.XMLHTTP"),c=function(){F.xhr++;return new a("Msxml2.XMLHTTP")}}catch(b){try{d=new a("Microsoft.XMLHTTP"),
c=function(){F.xhr++;return new a("Microsoft.XMLHTTP")}}catch(f){d=!1}}return d};f.core.ajax={stats:function(a){return a?F[a]:f.extend({},F)},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"}};C=f.ajax=function(a,b){this.onSuccess=a;this.onError=b;this.open=!1;F.objects++;F.idle++};f.extend(C.prototype,{headers:f.core.ajax.headers,
transact:function(a,b,m,H){var s=this,e=s.xmlhttp,h=s.headers,k=s.onError,v=s.onSuccess;a="POST"===a;var K,J;if(!e||q)e=c(),s.xmlhttp=e;e.onreadystatechange=function(){try{4===e.readyState&&(!e.status&&d||200<=e.status&&300>e.status||304===e.status||1223===e.status||0===e.status?(v&&v(e.responseText,s,H,b),F.success++):k&&(k(Error("XmlHttprequest Error"),s,H,b),F.failure++),F.idle--,s.open=!1)}catch(a){k&&k(a,s,H,b),t.FC_DEV_ENVIRONMENT&&setTimeout(function(){throw a;},0),F.failure++}};try{e.open(a?
"POST":"GET",b,!0);e.overrideMimeType&&e.overrideMimeType("text/plain");if(a)if("string"===typeof m)K=m;else{K=[];for(J in m)K.push(J+"="+(m[J]+"").replace(/\=/g,"%3D").replace(/\&/g,"%26"));K=K.join("&")}else K=null;for(J in h)e.setRequestHeader(J,h[J]);e.send(K);F.requests++;F.idle++;s.open=!0}catch(n){f.raiseError(f.core,"1110111515A","run","XmlHttprequest Error",n.message)}return e},get:function(a,b){return this.transact("GET",a,void 0,b)},post:function(a,b,c){return this.transact("POST",a,b,
c)},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;F.objects--;return null}})}]);
FusionCharts.register("module",["private","modules.mantle.runtime;1.1",function(){var f=this,t=f.window,C=/(^|[\/\\])(fusioncharts\.js)([\?#].*)?$/ig,q=/[\\\"<>;&]/,d=/^[^\S]*?(sf|f|ht)(tp|tps):\/\//i,a={},m={},F={},c={},l=f.purgeDOM=function(a){var b=a.attributes,e,h;if(b)for(e=b.length-1;0<=e;--e)h=b[e].name,"function"===typeof a[h]&&(a[h]=null);if(b=a.childNodes)for(b=b.length,e=0;e<b;e+=1)l(a.childNodes[e])},b=function(a,b,e){var h,k;for(h in a)if(a[h]instanceof Array)b[a[h][0]]=e[h];else for(k in a[h])b[a[h][k][0]]=
e[h][k]},p=/^(FusionCharts|FusionWidgets|FusionMaps)/;f.getScriptBaseUri=function(a){var b=t.document.getElementsByTagName("script"),e=b.length,h,k;for(k=0;k<e;k+=1)if(h=b[k].getAttribute("src"),void 0!==h&&null!==h&&null!==h.match(a))return h.replace(a,"$1")};f.core.options.scriptBaseUri=function(){var a=f.getScriptBaseUri(C);return void 0===a?(f.raiseError(FusionCharts,"1603111624","run",">GenericRuntime~scriptBaseUri","Unable to locate FusionCharts script source location (URL)."),""):a}();f.isXSSSafe=
function(a,b){return b&&null!==d.exec(a)?!1:null===q.exec(a)};f.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;")};f.loadScript=function(b,d,e,h,k){if(!b)return!1;var v=d&&d.success||d,l=d&&d.failure,p,n={type:"script",success:!1},N=function(){c[p]=clearTimeout(c[p]);n.success?v&&v(b,p):l&&l(b,p);f.raiseEvent("externalresourceload",n,f.core)};
k=k?"":f.core.options.scriptBaseUri;p=k+b;f.isXSSSafe(p,!1)||(p="function"===typeof t.encodeURIComponent?t.encodeURIComponent(p):t.escape(p));n.path=k;n.src=p;n.file=b;if(!0===F[p]&&h)return n.success=!0,n.notReloaded=!0,"function"===typeof d&&(d(),f.raiseEvent("externalresourceload",n,f.core)),!0;if(a[p]&&h)return!1;a[p]=!0;m[p]&&m[p].parentNode&&m[p].parentNode.removeChild(m[p]);d=m[p]=t.document.createElement("script");d.type="text/javascript";d.src=p;e&&(d["\v"==="v"?"text":"innerHTML"]=e);"function"===
typeof v&&(F[p]=!1,c[p]=clearTimeout(c[p]),d.onload=function(){F[p]=!0;n.success=!0;N()},d.onerror=function(){F[p]=!1;a[p]=!1;N()},d.onreadystatechange=function(){if("complete"===this.readyState||"loaded"===this.readyState)F[p]=!0,n.success=!0,N()});t.document.getElementsByTagName("head")[0].appendChild(d);"function"===typeof l&&(c[p]=setTimeout(function(){F[p]||N()},f.core.options.html5ResourceLoadTimeout||15E3));return!0};f.capitalizeString=function(a,b){return a?a.replace(b?/(^|\s)([a-z])/g:/(^|\s)([a-z])/,
function(a,b,k){return b+k.toUpperCase()}):a};f.extend(f.core,{clone:function(a,c){var e=typeof a,h,k=f.extend({},this.args,!1,!1);b(f.policies,k,this);b(f.renderer.getRendererPolicy(this.options.renderer),k,this);delete k.id;delete k.animate;delete k.stallLoad;h=k.link;k=f.extend({},k,!1,!1);k.link=h;switch(e){case "object":f.extend(k,a);break;case "boolean":c=a}return c?k:new f.core(k)},isActive:function(){if(!this.ref||t.document.getElementById(this.id)!==this.ref)return!1;try{return p.test(this.ref.signature())}catch(a){return!1}},
chartType:function(a,b){var e=this.src,h=!0===b,k=this.options,c;"string"===typeof a&&(b="object"===typeof b?b:{},e=a.replace(/[\?\#][\s\S]*$/g,""),c=null!==e.match(/\.swf\s*?$/ig),e=e.replace(/\.swf\s*?$/ig,""),k.chartType=e.replace(/^[\s\S]*\//ig,"").replace(/^fcmap_/i,""),k.chartTypeSourcePath=-1===e.indexOf("/")?b.chartTypeSourcePath||this.options.chartTypeSourcePath||f.core.options.chartTypeSourcePath||"":e.replace(/[^\/]*?$/ig,""),this.src=((f.core.options.scriptBaseUri||"")+(k.chartTypeSourcePath||
f.core.options.chartTypeSourcePath||"")).replace(/\/\s*$/g,"")+"/"+k.chartType.replace(/\.swf\s*?$/ig,"")+".swf",c&&(f.raiseWarning(this,"08101320181","comp","FusionCharts#chartType",'Chart type has ".swf" in alias and as such has been deprecated. Please use chart type alias.'),k.chartTypeSourcePath=f.core.options.chartTypeSourcePath||""),void 0!==b.dataSource&&null!==b.dataSource?this.setChartData(b.dataSource,b.dataFormat,b.dataConfiguration):this.isActive()&&!h&&this.render());return(k.chartType||
"").toLowerCase()}},!0);t.getChartFromId=function(a){f.raiseWarning(this,"11133001041","comp","GenericRuntime~getObjectFromId()",'Use of deprecated getChartFromId() or getMapFromId(). Replace with "FusionCharts()" or FusionCharts.items[].');return f.core.items[a]instanceof f.core?f.core.items[a].ref:t.swfobject&&t.swfobject.getObjectById(a)};t.getMapFromId=t.getChartFromId}]);
FusionCharts.register("module",["private","api.printmanager",function(){var f=this;f.extend(f.core,{printManager:{configure:function(){f.raiseWarning(f.core,"28141714","impl",".printManager.configure","PrintManager is deprecated")},isReady:function(){f.raiseWarning(f.core,"28141714","impl",".printManager.isReady","PrintManager is deprecated");return!1},enabled:function(){f.raiseWarning(f.core,"28141714","impl",".printManager.enabled","PrintManager is deprecated");return!1},managedPrint:function(){f.raiseWarning(f.core,
"28141714","impl",".printManager.managedPrint","PrintManager is deprecated")}}},!1)}]);
FusionCharts.register("module",["private","modules.interface.renderer",function(){var f=this,t=f.window,C=t.document,q=function(){f.raiseError(this,"25081845","run","::RendererManager",Error("No active renderer"))},d=f.FusionChartsDOMInsertModes={REPLACE:"replace",APPEND:"append",PREPEND:"prepend"},a={undefined:{render:q,remove:q,update:q,resize:q,config:q,policies:{}}},m={},F=function(a){return function(){var b=this.ref;if(void 0===b||null===b||"function"!==typeof b[a])f.raiseError(this,"25081617",
"run","#"+a+"()","ExternalInterface call failed. Check whether chart has been rendered.");else return b[a].apply(b,arguments)}},c=function(a,b){return"function"===typeof a[b]?function(){return a[b].apply(a,arguments)}:a[b]},l=function(a,b){var k=C.getElementById(a),c=b.id||b.getAttribute("id"),d,f;if(null===k)return!1;if(a===c)return!0;c=b.getElementsByTagName("*");d=0;for(f=c.length;d<f;d++)if(c[d]===k)return!1;return!0},b=/[^\%\d]*$/ig,p=function(){var a=function(b){var c=b.parentNode;if(9===c.nodeType)return!1;
var d="display";t.getComputedStyle?d=t.getComputedStyle(b)[d]:b.currentStyle&&(d=b.currentStyle[d]);return"none"===d?!0:c?a(c):!1};return a}(),H=function(){var a={},b,c=function(){var d=0,l=parseInt(f.core.options.visibilityTrackingInterval,10)||300,m,n,N,B,s;for(m in a)if(d+=1,n=a[m].chart,N=a[m].container,B=a[m].insertMode,s=a[m].callback,n.disposed||!p(N))delete a[m],--d,!n.disposed&&n.renderChart.call(n,N,B,s);b=d?setTimeout(c,l):clearTimeout(b)};return function(d,l,m,n){a[d.id]={chart:d,container:l,
insertMode:m,callback:n};b||(b=setTimeout(c,parseInt(f.core.options.visibilityTrackingInterval,10)||300))}}(),s;f.policies.options.containerElementId=["renderAt",void 0];f.policies.options.renderer=["renderer",void 0];f.policies.options.containerElementType=["containerElementType",void 0];f.policies.options.visibilityTrackingInterval=300;f.normalizeCSSDimension=function(a,b,c){a=void 0===a?c.offsetWidth||parseFloat(c.style.width):a;b=void 0===b?c.offsetHeight||parseFloat(c.style.height):b;var d={},
f=c.style,l;f.width=a=a.toString?a.toString():"0";f.height=b=b.toString?b.toString():"0";if((d.widthIsRelative=a.match(/^\s*\d*\.?\d*\%\s*$/)&&!a.match(/^\s*0\%\s*$/))&&0===c.offsetWidth)for(l=c;l=l.offsetParent;)if(0<l.offsetWidth){a=(l.offsetWidth*parseFloat(a.match(/\d*/)[0])/100).toString();break}if((d.heightIsRelative=b.match(/^\s*\d*\.?\d*\%\s*$/)&&!b.match(/^\s*0\%\s*$/))&&20>=c.offsetHeight)for(l=c;l=l.offsetParent;)if(0<l.offsetHeight){b=(l.offsetHeight*parseFloat(b.match(/\d*/)[0])/100).toString();
break}d.width=a.replace?a.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):a;d.height=b.replace?b.replace(/^\s*(\d*\.?\d*)\s*$/ig,"$1px"):b;f.width=d.width;f.height=d.height;d.pixelWidth=d.widthIsRelative?c.offsetWidth:parseInt(d.width,10)||0;d.pixelHeight=d.heightIsRelative?c.offsetHeight:parseInt(d.height,10)||0;return d};s=f.renderer={register:function(b,h){if(!b||"function"!==typeof b.toString)throw Error("#03091436 ~renderer.register() Invalid value for renderer name.");b=b.toString().toLowerCase();if(void 0!==
a[b])return f.raiseError(f.core,"03091438","param","::RendererManager>register",'Duplicate renderer name specified in "name"'),!1;a[b]=h;return!0},userSetDefault:!1,setDefault:function(b){if(!b||"function"!==typeof b.toString)return f.raiseError(f.core,"25081731","param","::RendererManager>setDefault",'Invalid renderer name specified in "name"'),!1;if(void 0===a[b=b.toString().toLowerCase()])return f.raiseError(f.core,"25081733","range","::RendererManager>setDefault","The specified renderer does not exist."),
!1;this.userSetDefault=!1;f.policies.options.renderer=["renderer",b];return!0},notifyRender:function(a){var b=f.core.items[a&&a.id];b&&(!1!==a.success||a.silent)||f.raiseError(f.core.items[a.id],"25081850","run","::RendererManager",Error("There was an error rendering the chart. Enable FusionCharts JS debugger for more information."));if(b.ref=a.ref)a.ref.FusionCharts=f.core.items[a.id];f.raiseEvent("internal.DOMElementCreated",{},b)},protectedMethods:{options:!0,attributes:!0,src:!0,ref:!0,constructor:!0,
signature:!0,link:!0,addEventListener:!0,removeEventListener:!0},getRenderer:function(b){return a[b]},getRendererPolicy:function(b){b=a[b].policies;return"object"===typeof b?b:{}},currentRendererName:function(){return f.policies.options.renderer[1]},update:function(a){m[a.id].update.apply(a,Array.prototype.slice.call(arguments,1))},render:function(a){m[a.id].render.apply(a,Array.prototype.slice.call(arguments,1))},remove:function(a){m[a.id].remove.apply(a,Array.prototype.slice.call(arguments,1))},
resize:function(a){m[a.id].resize.apply(a,Array.prototype.slice.call(arguments,1))},config:function(a){m[a.id].config.apply(a,Array.prototype.slice.call(arguments,1))},dispose:function(a){m[a.id].dispose.apply(a,Array.prototype.slice.call(arguments,1))}};f.addEventListener("beforeInitialize",function(b){b=b.sender;var c=b.options.renderer.toLowerCase(),k;"string"===typeof b.options.renderer&&void 0===a[c]&&(b.options.renderer=f.policies.options.renderer[1]);b.options.renderer=c;m[b.id]=a[b.options.renderer];
!0!==m[b.id].initialized&&"function"===typeof m[b.id].init&&(m[b.id].init(),m[b.id].initialized=!0);f.parsePolicies(b,m[b.id].policies||{},b.args);for(k in m[b.id].prototype)b[k]=m[b.id].prototype[k];for(k in m[b.id].events)b.addEventListener(k,m[b.id].events[k])});f.addEventListener(["rendered","dataloaderror","nodatatodisplay","rendercancelled"],function(a,b){var c=a.sender;c instanceof f.core&&c.__state.rendering&&(f.raiseEvent("internal.rendered",b,c),delete c.__state.rendering)});f.addEventListener("loaded",
function(a){var b=a.sender;a=a.sender.ref;var k,d;if(void 0!==a&&null!==a&&"function"===typeof a.getExternalInterfaceMethods){try{k=a.getExternalInterfaceMethods(),k="string"===typeof k?k.split(","):[]}catch(l){k=[],f.raiseError(b,"13111126041","run","RendererManager^Loaded",Error("Error while retrieving data from the chart-object."+(l.message&&0<=l.message.indexOf("NPObject")?" Possible cross-domain security restriction.":"")))}for(a=0;a<k.length;a+=1)d=k[a],void 0===b[d]&&(b[d]=F(d));if(b.ref)for(d in k=
s.protectedMethods,a=s.getRenderer(b.options.renderer).protectedMethods,b)if(a&&!k[d]&&!a[d]&&void 0===b.ref[d])try{b.ref[d]=c(b,d)}catch(m){}}});f.legacyEventList.resized="FC_Resized";f.extend(f.core.prototype,{render:function(a,b,c){c?"function"!==typeof c&&(c=void 0):"function"===typeof b?(c=b,b=void 0):b||"function"!==typeof a||(c=a,a=void 0);void 0===a&&(a=this.options.containerElementId);"string"===typeof a&&(a=C.getElementById(a));if(void 0===a||null===a)return f.raiseError(this,"03091456",
"run",".render()",Error("Unable to find the container DOM element.")),this;p(a)?H(this,a,b,c):this.renderChart.call(this,a,b,c);return this},renderChart:function(a,b,c){var v=this,m,p,n;if((n=t[this.id])&&n.FusionCharts&&n.FusionCharts===this||(n=this.ref)&&n.FusionCharts&&n.FusionCharts===this)f.renderer.dispose(this),n===t[this.id]&&(t[this.id]=void 0);void 0!==t[this.id]&&f.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."));
c?"function"!==typeof c&&(c=void 0):"function"===typeof b?(c=b,b=void 0):b||"function"!==typeof a||(c=a,a=void 0);b=(b||this.options.insertMode).toLowerCase()||d.REPLACE;void 0===a&&(a=this.options.containerElementId);"string"===typeof a&&(a=C.getElementById(a));if(void 0===a||null===a)return f.raiseError(this,"03091456","run",".render()",Error("Unable to find the container DOM element.")),this;if(l(this.id,a))return f.raiseError(this,"05102109","run",".render()",Error("A duplicate object already exists with the specific Id: "+
this.id)),this;m=C.createElement(this.options.containerElementType||"span");m.setAttribute("id",this.id);if("append"!==b&&"prepend"!==b)for(;a.hasChildNodes();)a.removeChild(a.firstChild);"prepend"===b&&a.firstChild?a.insertBefore(m,a.firstChild):a.appendChild(m);this.options.containerElement=a;this.options.containerElementId=a.id;if(b=m.style)b.position="relative",b.textAlign="left",b.lineHeight="normal",b.display="inline-block",b.zoom="1",b.fontWeight="normal",b.fontVariant="normal",b.fontStyle=
"normal",b.textDecoration="none",b["*DISPLAY"]="inline",b.padding="0",b.margin="0",b.border="none",b.direction="ltr";this.options.containerClassName&&(m.className=this.options.containerClassName);b=f.normalizeCSSDimension(this.width,this.height,m);this.__state.renderedWidth=b.pixelWidth;this.__state.renderedHeight=b.pixelHeight;this.__state.rendering=!0;f.raiseEvent("beforeRender",p={container:a,width:this.width,height:this.height,renderer:this.options.renderer},this,void 0,function(a,b){!0!==this.disposed&&
f.renderer.render(v,m,function(){f.renderer.notifyRender.apply(this,arguments);if(c)try{c.call(a.sender,b.container)}catch(h){setTimeout(function(){throw h;})}})},function(){f.raiseEvent("renderCancelled",p,v)});return this},remove:function(){f.renderer.remove(this);return this},resizeTo:function(a,c,k){var d=this,l=d.width,m=d.height,n=d.__state;"object"===typeof a&&(k=c,c=a.h,a=a.w);a=null===a||void 0===a?l:a.toString().replace(b,"");c=null===c||void 0===c?m:c.toString().replace(b,"");!0!==k?f.raiseEvent("beforeresize",
{currentWidth:l,currentHeight:m,newWidth:a,newHeight:c},d,void 0,function(){d.width=a;d.height=c;f.renderer.resize(d,{width:a,height:c});f.raiseEventWithLegacy("resized",{width:d.width,height:d.height,prevWidth:l,prevHeight:m,pixelWidth:d.ref&&d.ref.offsetWidth||0,pixelHeight:d.ref&&d.ref.offsetHeight||0,originalWidth:n.renderedWidth,originalHeight:n.renderedHeight},d,[d.id,d.width,d.height])},function(){f.raiseEvent("resizecancelled",{currentWidth:l,currentHeight:m,cancelledTargetWidth:a,cancelledTargetHeight:c},
d)}):(d.width=a,d.height=c);return this},dispose:function(){var a=this,b={};f.raiseEvent("beforeDispose",b,a,void 0,function(){f.renderer.dispose(a);f.raiseEvent("disposed",b,a);f.disposeEvents(a);delete f.core.items[a.id];for(var c in a)a.hasOwnProperty(c)&&delete a[c];a.disposed=!0},function(){f.raiseEvent("disposeCancelled",b,a)})},configure:function(a,b){var c;a&&("string"===typeof a?(c={},c[a]=b):c=a,f.renderer.config(this,c))}});f.extend(f.core,{setCurrentRenderer:function(){var a=s.setDefault.apply(s,
arguments);s.userSetDefault=!0;return a},getCurrentRenderer:function(){return s.currentRendererName.apply(s,arguments)},render:function(a,b){return a instanceof f.core?(a.render(b),a):(new f.core(a)).render(b)}},!1)}]);
FusionCharts.register("module",["private","modules.interface.transcoder",function(){var f=this,t=f.window,C=f.transcoders={},q={},d={},a=/url$/i,m=f._interactiveCharts={selectscatter:[!0,!1],dragcolumn2d:[!0,!0],dragarea:[!0,!0],dragline:[!0,!0],dragnode:[!0,!0]},F=function(a,c,d,e){var m=d.obj;d=d.args;d.dataSource=a;d.xmlHttpRequestObject=c;d.source="XmlHttpRequest";d.url=e;f.raiseEvent("dataLoadRequestCompleted",d,m,void 0,l,b)},c=function(a,b,c){var d=c.obj;c=c.args;c.error=a;c.httpStatus=b.xhr&&
b.xhr.status?b.xhr.status:-1;c.xmlHttpRequestObject=b;f.raiseEvent("dataLoadError",c,d);"function"===typeof t.FC_DataLoadError&&t.FC_DataLoadError(d.id,c)},l=function(a,b){a.sender.setChartData(b.dataSource,b.dataFormat,b.config,b.successcallback,b.silent)},b=function(a,b){f.raiseEvent("dataLoadCancelled",b,a.sender);b.xmlHttpRequestObject.abort()},p=function(a,b){var d=a.sender,e=d.__state,l=b.url;d.options.dataSource=b.url;e.dhmXhrObj||(e.dhmXhrObj=new f.ajax(F,c));e.dhmXhrObj.get("function"===
typeof t.decodeURIComponent?t.decodeURIComponent(l):t.unescape(l),{obj:d,args:b})},H=function(a,b){var c=a.sender,d=c.__state;f.raiseEvent("dataLoadRequestCancelled",b,c);d&&d.dhmXhrObj&&d.dhmXhrObj.abort()},s=function(a,b){var c=a.sender,e=c.__state,l=c.id;q[l]=b;d[l]&&delete d[l];d[l]={};e.dataReady=void 0;e.dataAvailable=!0;!0!==b.silent&&(!0!==c.options.safeMode||!0!==e.rendering||c.isActive()?(delete e.args,f.renderer.update(c,b)):(e.updatePending=b,f.raiseWarning(c,"23091255","run","::DataHandler~update",
"Renderer update was postponed due to async loading.")));f.raiseEvent("dataUpdated",b,c,void 0,b.successcallback)},e=function(a,b){f.raiseEvent("dataUpdateCancelled",b,a.sender,void 0,b.failurecallback)};f.dataFormats={};f.policies.options.dataSource=["dataSource",void 0];f.policies.options.dataFormat=["dataFormat",void 0];f.policies.options.dataConfiguration=["dataConfiguration",void 0];f.policies.options.showDataLoadingMessage=["showDataLoadingMessage",!1];f.addDataHandler=function(a,b){if("string"!==
typeof a||void 0!==C[a.toLowerCase()])f.raiseError(f.core,"03091606","param","::DataManager.addDataHandler",Error("Invalid Data Handler Name"));else{var c={},d=a.toLowerCase();C[d]=b;b.name=a;c["set"+a+"Data"]=function(b,c,d){return this.setChartData(b,a,c,d)};b.transportable&&(c["set"+a+"Url"]=function(b,c,d){return this.setChartDataUrl(b,a,c,d)},f.dataFormats[a+"URL"]=d+"Url");c["get"+a+"Data"]=function(){return this.getChartData(a)};f.dataFormats[a]=d;f.extend(f.core,c,!0)}};f.extend(f.core.prototype,
{setChartDataUrl:function(b,c,d,e,l){if(void 0===c||null===c||"function"!==typeof c.toString)c=this.options.dataFormat,f.raiseWarning(this,"03091609","param","FusionCharts#setChartDataUrl","Invalid Data Format. Reverting to current data format - "+c);c=c.toString().toLowerCase();c=a.test(c)?c.slice(0,-3):c;f.raiseEvent("dataLoadRequested",{source:"XmlHttpRequest",url:b,dataFormat:c,silent:!!l,config:d,successcallback:e},this,void 0,p,H)},setChartData:function(b,c,d,l,m){var n=this.options,p,B;if(void 0===
c||null===c||"function"!==typeof c.toString)c=n.dataFormat,f.raiseWarning(this,"03091610","param","FusionCharts#setChartData","Invalid Data Format. Reverting to current data format - "+c);c=c.toString().toLowerCase();a.test(c)?this.setChartDataUrl(b,c,d,l,m):(n.dataSource=b,p=c,n.dataFormat=c,B=C[p],"undefined"===typeof B?f.raiseError(f.core,"03091611","param","FusionCharts#setChartData",Error("Data Format not recognized")):(c=(c=f.renderer&&f.renderer.getRenderer(n.renderer||f.renderer.currentRendererName()))&&
c.dataFormat,d=c===p?B.passthrough?B.passthrough(b,d):{data:b}:B.encode(b,this,d||n.dataConfiguration)||{},d["native"]=c===p,d.format=d["native"]?c:"xml",d.dataFormat=p,d.dataSource=b,d.silent=!!m,"function"===typeof l&&(d.successcallback=l),f.raiseEvent("beforeDataUpdate",d,this,void 0,s,e)))},getChartData:function(a,b){var c=this.options,e=this.id,l;if(void 0===a||"function"!==typeof a.toString||void 0===(l=C[a=a.toString().toLowerCase()]))f.raiseError(this,"25081543","param","::transcoder~getChartData()",
Error('Unrecognized data-format specified in "format"'));else return d[e][a]?c=d[e][a]:q[e]?(a===q[e].format?d[e][a]=q[e]:(d[e].xml||(d[e].xml="xml"===q[e].format?q[e]:C[q[e].format].encode(q[e].data,this,c.dataConfiguration)),d[e][a]||(d[e][a]=l.decode(d[e].xml.data,this,c.dataConfiguration))),c=d[e][a]):c={error:Error("Data not defined")},!0===Boolean(b)?c:c.data},dataReady:function(a){return a?this.__state.dataAvailable:this.__state.dataReady}});f.extend(f.core,{transcodeData:function(a,b,c,d,
e){if(b&&"function"===typeof b.toString&&c&&"function"===typeof c.toString&&void 0!==C[c=c.toString().toLowerCase()]&&void 0!==C[b=b.toString().toLowerCase()])return a=C[b].encode(a,this,e),c=C[c].decode(a.data,this,e),c.error instanceof Error||(c.error=a.error),d?c:c.data;f.raiseError(this,"14090217","param",".transcodeData()",Error("Unrecognized data-format specified during transcoding."))}},!1);f.getRenderer&&!f.getRenderer("flash")||f.addEventListener("DataLoadRequested",function(a){var b=a.sender;
b.options&&"flash"===b.options.renderer&&b.options.useLegacyXMLTransport&&a.preventDefault()});f.addEventListener("beforeInitialize",function(b){b=b.sender;var c=b.options,e=c.dataSource,l=f.renderer&&f.renderer.getRenderer(c.renderer);delete q[b.id];d[b.id]={};if(void 0!==e&&null!==e){b.__state.dataSetDuringConstruction=!0;if("string"!==typeof c.dataFormat)switch(typeof e){case "function":e=c.dataSource=e.call(b,c.dataConfiguration);c.dataFormat="JSON";break;case "string":c.dataFormat=/^\s*?\{[\s\S]*\}\s*?$/g.test(b.options.dataFormat)?
"JSON":"XML";break;case "object":c.dataFormat="JSON"}c.dataFormat&&c.dataFormat.toString&&(b.__state.dataFetchDuringConstruction=a.test(c.dataFormat.toString()));b.setChartData(e,c.dataFormat,void 0,void 0,!0)}else l&&(b.__state.dataSetDuringConstruction=!1,f.raiseWarning(b,"1810131922A","param",":dataHandler~event:beforeInitialize","Data source was not defined during construction, hence set to blank renderer default - "+l.dataFormat),b.setChartData("",l.dataFormat,void 0,void 0,!0),b.__state.dataAvailable=
!1)});f.addEventListener("beforeDispose",function(a){var b=a.sender;delete q[a.sender.id];delete d[a.sender.id];b&&b.__state&&b.__state.dhmXhrObj&&b.__state.dhmXhrObj.abort()});f.addEventListener("disposed",function(a){delete d[a.sender.id]});f.addEventListener("loaded",function(a){a=a.sender;var b=a.__state.updatePending;a instanceof f.core&&void 0!==b&&(delete a.__state.updatePending,f.renderer.update(a,b))});f.addEventListener("dataUpdated",function(a,b){var c=a.sender,d=c.__state;d.rendering&&
(d.dataFetchDuringConstruction||d.updatePending)&&(delete d.dataFetchDuringConstruction,delete d.updatePending,f.renderer.update(c,b))});f.addEventListener(["dataLoadError","dataInvalid"],function(a){a.sender.__state.dataAvailable=!1});f.addEventListener("loaded",function(a){a=a.sender;var b=a.__state,c,d,e;e=function(a,b){return function(c){return!1===c?b.apply(this):this.ref.getUpdatedXMLData?f.core.transcodeData(this.ref.getUpdatedXMLData(),"xml",a):this.getData?this.getData(a):b.apply(this)}};
if(a.chartType&&m[a.chartType()]&&m[a.chartType()][0]){for(c in f.transcoders)d=f.transcoders[c].name,d="get"+d+"Data",a[d]=e(c,a.constructor.prototype[d]),a[d]._dynamicdatarouter=!0;b.dynamicDataRoutingEnabled=!0}else if(b.dynamicDataRoutingEnabled){for(c in f.transcoders)d=f.transcoders[c].name,d="get"+d+"Data",a.hasOwnProperty(d)&&a[d]._dynamicdatarouter&&delete a[d];b.dynamicDataRoutingEnabled=!1}})}]);"object"!==typeof JSON&&(JSON={});
(function(){function f(a){return 10>a?"0"+a:a}function t(a){d.lastIndex=0;return d.test(a)?'"'+a.replace(d,function(a){var c=F[a];return"string"===typeof c?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function C(d,b){var f,F,s,e,h=a,k,v=b[d];v&&"object"===typeof v&&"function"===typeof v.toJSON&&(v=v.toJSON(d));"function"===typeof c&&(v=c.call(b,d,v));switch(typeof v){case "string":return t(v);case "number":return isFinite(v)?String(v):"null";case "boolean":case "null":return String(v);
case "object":if(!v)return"null";a+=m;k=[];if("[object Array]"===Object.prototype.toString.apply(v)){e=v.length;for(f=0;f<e;f+=1)k[f]=C(f,v)||"null";s=0===k.length?"[]":a?"[\n"+a+k.join(",\n"+a)+"\n"+h+"]":"["+k.join(",")+"]";a=h;return s}if(c&&"object"===typeof c)for(e=c.length,f=0;f<e;f+=1)"string"===typeof c[f]&&(F=c[f],(s=C(F,v))&&k.push(t(F)+(a?": ":":")+s));else for(F in v)Object.prototype.hasOwnProperty.call(v,F)&&(s=C(F,v))&&k.push(t(F)+(a?": ":":")+s);s=0===k.length?"{}":a?"{\n"+a+k.join(",\n"+
a)+"\n"+h+"}":"{"+k.join(",")+"}";a=h;return s}}"function"!==typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var q=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
d=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a,m,F={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},c;"function"!==typeof JSON.stringify&&(JSON.stringify=function(d,b,f){var F;m=a="";if("number"===typeof f)for(F=0;F<f;F+=1)m+=" ";else"string"===typeof f&&(m=f);if((c=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return C("",{"":d})});
"function"!==typeof JSON.parse&&(JSON.parse=function(a,b){function c(a,d){var h,k,f=a[d];if(f&&"object"===typeof f)for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&(k=c(f,h),void 0!==k?f[h]=k:delete f[h]);return b.call(a,d,f)}var d;a=String(a);q.lastIndex=0;q.test(a)&&(a=a.replace(q,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 b?c({"":d},""):d;throw new SyntaxError("JSON.parse");})})();
FusionCharts.register("module",["private","modules.data.json",function(){var f=this,t=f.window,C=t.document,q=f.xssEncode,d,a;void 0===t.JSON&&f.raiseError(this,"1113062012","run","JSONDataHandler",Error("Could not find library support for JSON parsing."));f.policies.options.allowIESafeXMLParsing=["_allowIESafeXMLParsing",!0];d=function(){var a={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}},d={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"}},c={vline:{vline:"true"}},
l={chart:!0,map:!0,graph:!0},b={dataset:"data",categories:"category"},p={target:"target",value:"value"},q={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}},s,e;s={append:function(b,c,d,e){!a[d]||!0!==a[d]&&!0!==a[d][e]?c[d]=b:(c[d]instanceof Array||(c[d]=[]),c[d].push(b))},child:function(a,e,
m,K){var t,n,N,B,U,r;for(t=0;t<e.length;t+=1)switch(N=e[t],n=N.nodeName.toLowerCase(),N.nodeType){case 1:B=s.attr(N.attributes);r=l[n];!0===r&&(U=B,B={},B[n]=U);r=c[n];"object"===typeof r&&f.extend(B,r);if(r=d[n])if("object"===typeof r&&"object"===typeof r[m])for(U in U=void 0,r[m]){if(K[U]){n=r[m][U];break}}else"object"===typeof r&&"string"===typeof r[m]?n=r[m]:"string"===typeof r&&(n=r);N.childNodes.length&&((r=q[m])&&r[n]?s.child(a,N.childNodes,n,K):s.child(B,N.childNodes,n,K));(r=q[m])&&r[n]||
s.append(B,a,n,m);break;case 3:if(r=p[m])n=r,B=N.data,s.append(B,a,n,m);r=b[m];"string"===typeof r&&K.chart&&parseInt(K.chart.compactdatamode,10)&&(n=r,B=N.data,a[n]=a[n]?a[n]+B:B)}},attr:function(a){var b,c={};if(!a||!a.length)return c;for(b=0;b<a.length;b+=1)c[a[b].nodeName.toLowerCase()]=a[b].value||a[b].nodeValue;return c}};e=function(a){var b={},c,d,l,n,m,B,p,r,F;if("object"!==typeof a&&a&&"function"!==typeof a.toString)return e.errorObject=new TypeError("xml2json.parse()"),b;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 q=/\s/,H=a.length;q.test(a.charAt(--H)););a=a.slice(0,H+1);if(!a)return b;try{t.DOMParser?c=(new t.DOMParser).parseFromString(a,"text/xml"):C.body&&f.core.options.allowIESafeXMLParsing?(d=C.createElement("xml"),d.innerHTML=a,C.body.appendChild(d),c=d.XMLDocument,C.body.removeChild(d)):(c=new t.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(a));if(!(c&&c.childNodes&&1===c.childNodes.length&&
(l=c.childNodes[0])&&l.nodeName&&(n=l.nodeName.toLowerCase()))||"chart"!==n&&"map"!==n&&"graph"!==n)return e.errorObject=new TypeError("xml2json.parse()"),b;if("graph"===n){m=c.createElement("chart");for(F=(p=l.attributes)&&p.length||0;F--;)m.setAttribute(p[F].name,p[F].value),p.removeNamedItem(p[F].name);if(F=(r=l.childNodes)&&r.length||0)--F,B=l.removeChild(r[F]),m.appendChild(B);for(;F--;)B=l.removeChild(r[F]),m.insertBefore(B,m.firstChild);c.replaceChild(m,l);l=m}}catch(W){e.errorObject=W}l?(l.attributes&&
(b[n]=s.attr(l.attributes)),l.childNodes&&s.child(b,l.childNodes,n,b),delete e.errorObject):e.errorObject=new TypeError("xml2json.parse()");return b};return function(a){delete e.errorObject;return{data:e(a),error:e.errorObject}}}();a=function(){var a,d;a={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(a,d,b){return"object"===typeof this.items[a][b]?this.items[a][b][d]:this.items[a][b]}};d=function(c,f,b,p){var t="",s="",e="",h="",k,v,K;f&&"function"===typeof f.toLowerCase&&
(f=f.toLowerCase());if(void 0===b&&c[f])for(k in c[f])v=k.toLowerCase(),"compactdatamode"===v&&(p.applyDSV=1==c[f][k]);if(c instanceof Array)for(k=0;k<c.length;k+=1)e="string"===typeof c[k]?e+q(c[k]):e+d(c[k],f,b,p);else{for(k in c)v=k.toLowerCase(),c[k]instanceof Array&&(K=a.qualify("group",v,f))?(e=a.qualify("tag",v,f)||v,s+="<"+e+">"+d(c[k],K,f,p)+"</"+e+">"):"object"===typeof c[k]?(K=a.qualify("attr",v,f))?(h=d(c[k],K,f,p).replace(/\s*\/\>/ig,""),f=v):s+=d(c[k],v,f,p):p.applyDSV&&(K=a.qualify("dsv",
v,f))?s+=c[k]:(K=a.qualify("text",v,f))?(e=a.qualify("tag",v,f)||K,s+="<"+e+">"+c[k]+"</"+e+">"):"vline"===v&&Boolean(c[k])?f="vline":t+=" "+v+'="'+q(c[k]).toString().replace(/\"/ig,"&quot;")+'"';if(K=a.qualify("explode",b,f))f=K;e=f;e=(""!==h?h:"<"+e)+t+(""!==s?">"+s+"</"+e+">":" />")}return e};return function(a){delete d.errorObject;if(a&&"string"===typeof a)try{a=JSON.parse(a)}catch(f){d.errorObject=f}return{data:d(a,a&&a.graph?"graph":a&&a.map?"map":"chart",void 0,{}),error:d.errorObject}}}();
f.addDataHandler("JSON",{encode:a,decode:d,passthrough:function(a){var d={data:{}};if(!a)return d;if("string"!==typeof a)try{a=JSON.stringify(a)}catch(c){return d.error=c,d}try{d.data=JSON.parse(a.replace(/"([^"]+)":/g,function(a,c){return'"'+c.toLowerCase()+'":'}))}catch(f){d.error=f}return d},transportable:!0})}]);FusionCharts.register("module",["private","modules.data.xml",function(){var f=function(f){return{data:f,error:void 0}};this.addDataHandler("XML",{encode:f,decode:f,transportable:!0})}]);
FusionCharts.register("module",["private","modules.data.csv",function(){var f=this,t=f.window,C=f.core,q=t.parseInt,d=t.parseFloat,a=function(a){return a},m;m=function(a){this.data=[];this.columnCount=this.rowCount=0;this.configure(a)};m.decodeLiterals=function(a,c){return void 0!==a&&null!==a&&a.toString?a.replace("{tab}","\t").replace("{quot}",'"').replace("{apos}","'"):c};m.prototype.set=function(a,c,d){var b;if(this.rowCount<=a){for(b=this.rowCount;b<=a;b+=1)this.data[b]=[];this.rowCount=a+1}this.columnCount<=
c&&(this.columnCount=c+1);this.data[a][c]=d};m.prototype.setRow=function(a,c){var d;if(this.rowCount<=a){for(d=this.rowCount;d<=a;d+=1)this.data[d]=[];this.rowCount=a+1}this.columnCount<c.length&&(this.columnCount=c.length);this.data[a]=c};m.prototype.get=function(a,c){var d=this.data;return d[a]&&d[a][c]};m.prototype.configure=function(a){var c=m.decodeLiterals;this.delimiter=c(a.delimiter,",");this.qualifier=c(a.qualifier,'"');this.eolCharacter=c(a.eolCharacter,"\r\n");this.numberFormatted=!!q(a.numberFormatted,
0)};m.prototype.clear=function(){this.data=[];this.columnCount=this.rowCount=0};m.prototype.toString=function(){var a,c,d="";for(a=0;a<this.rowCount;a+=1)c=this.qualifier+this.data[a].join(this.qualifier+this.delimiter+this.qualifier)+this.qualifier,d+='""'===c?this.eolCharacter:c+this.eolCharacter;0<this.rowCount&&(d=d.slice(0,d.length-2));return d};f.addDataHandler("CSV",{encode:function(a,c){f.raiseError(c,"0604111215","run","::CSVDataHandler.encode()","FusionCharts CSV data-handler only supports encoding of data.");
throw Error("FeatureNotSupportedException()");},decode:function(f,c){var l=C.transcodeData(f,"xml","json")||{},b=c.jsVars,p,q,s,e,h,k,v,K=l.chart||l.map||l.graph||{};v=Boolean(K.exporterrorcolumns||0);var t=l.categories&&l.categories[0]&&l.categories[0].category||[],n=l.map&&!l.chart||b&&b.instanceAPI&&"geo"===b.instanceAPI.defaultSeriesType,N=!1,B=!1,U=!1,r=!1;q=!1;var ga=a,X={},aa,W,ya,va,za,ja,O,na,ma,M,T;h=0;p=new m({separator:K.exportdataseparator,qualifier:K.exportdataqualifier,numberFormatted:K.exportdataformattedval});
C.formatNumber&&p.numberFormatted&&(ga=function(a){return C.formatNumber(a,K)});if(n)for(M in X.geo=!0,t=b.hcObj&&b.hcObj.entities&&b.hcObj.entities.items||[],p.setRow(0,["Id"," Short Name","Long Name","Value","Formatted Value"]),b=0,t)B=t[M],T=B.eJSON,q=B.value,p.setRow(++b,[M,T.shortLabel,T.label,void 0===q?"":q,B.formattedValue]);else if(void 0!==(aa=l.dials&&l.dials.dial||l.pointers&&l.pointers.pointer||l.value))if(X.gauge=!0,"string"===typeof aa)p.set(0,0,ga(aa)),X.singlevalue=!0,"string"===
typeof l.target&&(p.set(0,1,ga(l.target)),X.bullet=!0);else for(p.setRow(0,["Id","Value"]),X.multivalue=!0,b=0,k=1,h=aa.length;b<h;b+=1,k+=1)p.setRow(k,[k,ga(aa[b].value)]);else if(aa=l.dataset||!(l.data instanceof Array)&&[]){X.multiseries=!0;s=1;if(W=l.lineset)aa=aa.concat(W),X.lineset=!0;if(ya=l.axis)aa=aa.concat(ya),X.multiaxis=!0;ja=aa.length;za=t.length;if(!(ja=aa.length)){for(b=0;b<za;b+=1)O=t[b],p.set(b+1,0,O.label||O.name);X.multilevel=!0}for(b=0;b<ja;b+=1)for(na=aa,na[b].dataset?(na=na[b].dataset,
e=0,va=na.length):(na=aa,e=b,va=e+1);e<va&&!N&&!U;e+=1,s+=1){n=na[e];p.set(0,s,n.seriesname);"string"===typeof n.data&&(X.compactdata=!0,n.data=n.data.split(K.dataseparator||"|"));k=h=0;for(ma=n.data&&n.data.length||0;h<ma||h<za;h+=1){O=t[h];q=k+1;M=n.data&&n.data[k]||{};if(void 0!==M.x&&void 0!==M.y){N=X.xy=!0;break}if(void 0!==M.open||void 0!==M.high||void 0!==M.close||void 0!==M.low){r=X.ohlc=!0;break}if(void 0!==M.rowid&&void 0!==M.columnid){U=X.heatmap=!0;break}if(h<za&&!O.vline){p.set(q,0,O.label||
O.name);O=d(M?M.value:"");O=isNaN(O)?"":ga(O);p.set(q,s,O);if(B||v||M.errorvalue)B||p.set(0,s+1,"Error"),T=1,p.set(q,s+1,ga(M.errorvalue));k+=1}}T&&(s+=T,T=0)}W&&(aa=aa.slice(0,-W.length));ya&&(aa=aa.slice(0,-ya.length))}else if(aa=l.data){p.set(0,1,K.yaxisname||"Value");X.singleseries=!0;q="1"==K.showsumatend;b=0;for(za=aa.length;b<za;b+=1)M=aa[b],M.vline||(O=d(M.value?M.value:""),p.setRow(b+1,[M.label||M.name,isNaN(O)?"":(h+=O,ga(O))]));q&&(X.summation=!0,p.setRow(b+1,[K.sumlabel||"Total",ga(h)]))}if(r)for(p.clear(),
p.setRow(0,["Open","Close","High","Low"]),b=0,q=1,aa=l.dataset,va=aa.length;b<va;b+=1)for(h=0,n=aa[b]&&aa[b].data||[],ja=n.length;h<ja;h+=1,q+=1)M=n[h]||{},p.setRow(h+1,[ga(M.open),ga(M.close),ga(M.high),ga(M.low)]);else if(N)for(p.clear(),B=!1,T=0,p.setRow(0,["Series","x","y"]),b=0,q=1,aa=l.dataset,va=aa.length;b<va;b+=1)for(h=0,n=aa[b]&&aa[b].data||[],ja=n.length;h<ja;h+=1,q+=1){M=n[h]||{};O=[aa[b].seriesname,ga(M.x),ga(M.y)];void 0!==M.z&&(O.push(ga(M.z)),T||(p.set(0,3,"z"),T=1));if(B||v||void 0!==
M.errorvalue||void 0!==M.horizontalerrorvalue||void 0!==M.verticalerrorvalue)l=ga(M.errorvalue),O.push(M.errorvalue,void 0===M.horizontalerrorvalue?l:ga(M.horizontalerrorvalue),void 0===M.verticalerrorvalue?l:ga(M.verticalerrorvalue)),B||(p.set(0,T+3,"Error"),p.set(0,T+4,"Horizontal Error"),p.set(0,T+5,"Vertical Error")),B=X.error=!0;p.setRow(q,O)}else if(U){p.clear();N={};U={};b=0;h=1;t=l.rows&&l.rows.row||[];for(v=t.length;b<v;b+=1,h+=1)O=t[b],O.id&&(N[O.id.toLowerCase()]=h,p.set(h,0,O.label||O.id));
b=0;h=1;t=l.columns&&l.columns.column||[];for(v=t.length;b<v;b+=1,h+=1)O=t[b],O.id&&(U[O.id.toLowerCase()]=h,p.set(0,h,O.label||O.id));n=l.dataset&&l.dataset[0]&&l.dataset[0].data||[];b=0;for(v=n.length;b<v;b+=1)M=n[b],q=M.rowid.toLowerCase(),s=M.columnid.toLowerCase(),N[q]||(N[q]=p.rowCount,p.set(p.rowCount,0,M.rowid)),U[s]||(U[s]=p.columnCount,p.set(0,p.columnCount,M.columnid)),p.set(N[q],U[s],ga(M.value))}aa=t=W=ya=null;0<p.rowCount&&void 0===p.get(0,0)&&p.set(0,0,K.xaxisname||"Label");return{data:p.toString(),
error:void 0,predictedFormat:X}},transportable:!1});C.addEventListener("Loaded",function(a){a=a.sender;"javascript"!==a.options.renderer||a.getDataAsCSV||(a.getDataAsCSV=a.ref.getDataAsCSV=a.getCSVData)})}]);
FusionCharts.register("module",["private","modules.renderer.js",function(){var f=this,t=f.window,C=t.document,q=f.core.options,d=/msie/i.test(t.navigator.userAgent)&&!t.opera,a=Boolean(t.SVGAngle||C.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),m=function(){},F=f.hcLib={cmdQueue:[]},c=F.moduleCmdQueue={base:[],charts:[],powercharts:[],widgets:[],maps:[]},l=F.moduleDependencies={},b=F.moduleMeta={base:"fusioncharts.js",charts:"fusioncharts.charts.js",powercharts:"fusioncharts.powercharts.js",
widgets:"fusioncharts.widgets.js",maps:"fusioncharts.maps.js"},p={},H=F.getMetaSentence=function(){var a={};return function(b){b=b&&b.replace(/(^\s*)|(\s*$)/g,"")||"";return a[b]||(a[b]={key:b,subject:b.replace(/[^\/]*?$/ig,""),predicate:b.replace(/^.*\//ig,"")})}}(),s=F.getDependentModuleName=function(a){var b=[],c,d;a=H(a).predicate;for(c in l)void 0!==(d=l[c][a])&&(b[d]=c);return b},e=F.hasModule=function(a){var b,c;if(a instanceof Array){b=0;for(c=a.length;b<c;b+=1)if(!Boolean(f.modules["modules.renderer.js-"+
H(a[b]).predicate]))return!1;return!0}return Boolean(f.modules["modules.renderer.js-"+H(a).predicate])},h=F.loadModule=function(a,c,d,k){a instanceof Array||(a=[a]);var h=a.length,l=0,m;m=function(){if(l>=h)c&&c();else{var s=a[l],v=s&&s.match(/[^\/]*$/i)[0],q=b[s];l+=1;if(s){if(e(v)){m();return}if(p[v]){f.raiseError(k||f.core,"1112201445A","run","JavaScriptRenderer~loadModule() ","required resources are absent or blocked from loading.");d&&d(v);return}}else d&&d(v);s=f.core.options["html5"+f.capitalizeString(v)+
"Src"];f.loadScript(void 0===s?q:s,{success:function(){e(v)?m():d&&d(v)},failure:d&&function(){d(v)}},void 0,!0)}};m()},k=F.executeWaitingCommands=function(a){for(var b;b=a.shift();)"object"===typeof b&&m[b.cmd].apply(b.obj,b.args)},v=function(a){delete a.sender.jsVars._reflowData;a.sender.jsVars._reflowData={};delete a.sender.jsVars._reflowClean},K=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}(),J=F.getContainerBackgroundColor=function(b){var c=b.options.containerBackgroundColor,e=b.options.containerBackgroundOpacity,k=b.jsVars.transparent;void 0!==k&&null!==k?e=b.jsVars.transparent?0:1:(e=parseFloat(e),0>e?e=0:1<e&&(e=1));
c||(c="#ffffff");if(d&&!a)return e?c:"transparent";c=c.replace(/^#?([a-f0-9]+)/ig,"$1");c=F.graphics.HEXtoRGB(c);c[3]=e.toString();return"rgba("+c.join(",")+")"};F.injectModuleDependency=function(a,b,d){var e=!1,k=H(a).subject;a=H(a).predicate;b=void 0===b?a:H(b).predicate;l[a]||(l[a]={},c[a]||(c[a]=[],F.moduleMeta[a]=k+q.html5ScriptNamePrefix+(b&&b.replace&&b.replace(/^[\s\S]*\//ig,"").replace(/\?/g,"%3F").replace(/\#/g,"%23").replace(/\:/g,"%3A")||"")+q.html5ScriptNameSuffix),e=!0);l[a][b]=d||0;
return e};F.needsModule=function(a,b){a=H(a).predicate;b=H(b).predicate;return void 0!==(F.moduleDependencies[a]&&F.moduleDependencies[a][b])};F.cleanupWaitingCommands=function(a){for(var b=a.chartType(),b=s(b),d,e=[],k;d=b.shift();){for(d=c[d]||[];k=d.shift();)"object"===typeof k&&k.obj!==a&&e.push(k);d.concat(e);e=[]}};f.extend(f.core.options,{html5ScriptNameSuffix:".js",html5ScriptNamePrefix:"fusioncharts."});f.extend(m,{dataFormat:"json",ready:!1,policies:{jsVars:{},options:{showChartLoadingMessage:["showChartLoadingMessage",
!0]}},init:function(){e("base")?m.ready=!0:h("base",function(){m.ready=!0;k(F.cmdQueue)},void 0,f.core)},render:function(a){var b=a,c=this.jsVars.msgStore;b&&this.options.showChartLoadingMessage&&(b.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(b.style.height,10)/2-5)+'px">'+(c.PBarLoadingText||c.LoadingText)+"</small>",b.style.backgroundColor=J(this));
F.cmdQueue.push({cmd:"render",obj:this,args:arguments})},update:function(){F.cmdQueue.push({cmd:"update",obj:this,args:arguments})},resize:function(){F.cmdQueue.push({cmd:"resize",obj:this,args:arguments})},dispose:function(){var a=F.cmdQueue,b,c;b=0;for(c=a.length;b<c;b+=1)a[b].obj===this&&(a.splice(b,1),--c,--b)},load:function(){F.cmdQueue.push({cmd:"load",obj:this,args:arguments})},config:function(a,b){var c,d=this.jsVars,e=d.msgStore,d=d.cfgStore,k=this.options,h;h={LoadingText:"loadMessage",
ChartNotSupported:"typeNotSupportedMessage",RenderChartErrorText:"renderErrorMessage",XMLLoadingText:"dataLoadStartMessage",ChartNoDataText:"dataEmptyMessage",LoadDataErrorText:"dataLoadErrorMessage",InvalidXMLText:"dataInvalidMessage"};"string"===typeof a&&1<arguments.length&&(c=a,a={},a[c]=b);for(c in a)void 0!==e[c]?e[c]=a[c]:d[c.toLowerCase()]=a[c],h[c]?k[h[c]]=a[c]:k[c]=a[c]},protectedMethods:{},events:{beforeInitialize:function(a){var b=a.sender;a=b.jsVars;var c;a.fcObj=b;a.msgStore=a.msgStore||
new K;a.cfgStore=a.cfgStore||{};a.previousDrawCount=-1;a.drawCount=0;a._reflowData={};b.addEventListener("beforeRender",function(a){a.sender.jsVars.smartLabel=new F.SmartLabelManager(b.id,C.body||C.getElementsByTagName("body")[0]);a.detachHandler()});a.userModules instanceof Array||(c=a.userModules,a.userModules=[],"string"===typeof c&&(a.userModules=a.userModules.concat(c.split(","))));F.chartAPI&&F.chartAPI[void 0]||(a.needsLoaderCall=!0)},initialized:function(a){a=a.sender;var b=a.jsVars;b.needsLoaderCall&&
(delete b.needsLoaderCall,m.load.call(a))},beforeDataUpdate:v,beforeDispose:function(a){var b=a.sender.jsVars;b.smartLabel&&!b.smartLabel.disposed&&b.smartLabel.dispose();v.apply(this,arguments)},beforeRender:function(a){var b=a.sender.jsVars;delete b.drLoadAttempted;delete b.waitingModule;delete b.waitingModuleError;v.apply(this,arguments)},dataLoadRequested:function(a){a=a.sender;var b=a.jsVars;delete b.loadError;a.ref&&a.options.showDataLoadingMessage?b.hcObj&&!b.hasNativeMessage&&b.hcObj.showLoading?
b.hcObj.showMessage(b.msgStore.XMLLoadingText):a.ref.showChartMessage?a.ref.showChartMessage("XMLLoadingText"):b.stallLoad=!0:b.stallLoad=!0},dataLoadRequestCompleted:function(a){delete a.sender.jsVars.stallLoad},dataLoadError:function(a){var b=a.sender,c=b.jsVars;delete c.stallLoad;c.loadError=!0;b.ref&&"function"===typeof b.ref.showChartMessage&&b.ref.showChartMessage("LoadDataErrorText");b.__state.dataFetchDuringConstruction&&delete b.__state.dataFetchDuringConstruction;v.apply(this,arguments)}},
_call:function(a,b,c){a.apply(c||t,b||[])}});f.extend(m.prototype,{getSWFHTML:function(){f.raiseWarning(this,"11090611381","run","JavaScriptRenderer~getSWFHTML()","getSWFHTML() is not supported for JavaScript charts.")},addVariable:function(){f.raiseWarning(this,"11090611381","run","JavaScriptRenderer~addVariable()",'Use of deprecated "addVariable()". Replace with "configure()".');f.core.prototype.configure.apply(this,arguments)},getXML:function(){f.raiseWarning(this,"11171116291","run","JavaScriptRenderer~getXML()",
'Use of deprecated "getXML()". Replace with "getXMLData()".');return this.getXMLData.apply(this,arguments)},setDataXML:function(){f.raiseWarning(this,"11171116292","run","JavaScriptRenderer~setDataXML()",'Use of deprecated "setDataXML()". Replace with "setXMLData()".');return this.setXMLData.apply(this,arguments)},setDataURL:function(){f.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 b;if(b=this.jsVars)"boolean"!==typeof a&&null!==a&&(a=!0),b.transparent=null===a?!1:!0===a?!0:!1}});f.extend(f.core,{_fallbackJSChartWhenNoFlash:function(){t.swfobject.hasFlashPlayerVersion(f.core.options.requiredFlashPlayerVersion)||f.renderer.setDefault("javascript")},_enableJSChartsForSelectedBrowsers:function(a){void 0!==a&&null!==a&&f.renderer.setDefault((new RegExp(a)).test(t.navigator.userAgent)?
"javascript":"flash")},_doNotLoadExternalScript:function(a){var c,d;for(c in a)d=c.toLowerCase(),b[d]&&(p[d]=Boolean(a[c]))},_preloadJSChartModule:function(){throw"NotImplemented()";}});f.renderer.register("javascript",m);a||d?f.renderer.setDefault("javascript"):t.swfobject&&t.swfobject.hasFlashPlayerVersion&&!t.swfobject.hasFlashPlayerVersion(f.core.options.requiredFlashPlayerVersion)&&(f.raiseWarning(f.core,"1204111846","run","JSRenderer","Switched to JavaScript as default rendering due to absence of required Flash Player."),
f.renderer.setDefault("javascript"))}]);
FusionCharts.register("module",["private","modules.renderer.js-lib",function(){var f=this,t=f.window,C=t.document,q=t.navigator,d=Boolean(t.SVGAngle||C.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")),a=/msie/i.test(q.userAgent)&&!t.opera,m=t.parseFloat,F=/\s+/g,c=/^#?/,l=/^rgba/i,b=/[#\s]/ig,p=/\{br\}/ig,H=/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i,s=Math.abs,e=Math.pow,h=Math.round,k=e(2,-24),v=Object.prototype.toString,K="ontouchstart"in C,q=K&&!(q.maxTouchPoints||
q.msMaxTouchPoints),J="http://www.fusioncharts.com?BS=FCHSEvalMark&utm_source=FCS_trial&pver="+t.escape(f.core.version),n=Math,N=n.max,B=n.min,U={pageX:0,pageY:0},r="createTouch"in C,ga=r&&!(t.navigator.maxTouchPoints||t.navigator.msMaxTouchPoints),X=f.hcLib||(f.hcLib={}),aa=function(a){var b=a.data,c=b.chart,d=c.paper,e=a.state,A=T(M(a.originalEvent)),u=A.target||A.originalTarget||A.srcElement||A.relatedTarget||A.fromElement,D=c.elements.resizeBox,k=b.layerX=A.pageX-b.chartPosLeft,h=b.layerY=A.pageY-
b.chartPosTop,f=k-b.ox,n=h-b.oy,l=b.bBox,m=b.ox,L=b.oy,p=b.zoomX,v=b.zoomY,l=b.canvasY,r=b.canvasX,da=b.canvasW,q=b.canvasH,F=b.canvasX2,sa=b.canvasY2,K=b.strokeWidth,f=b.attr;switch(e){case "start":a=ya(this);b.chartPosLeft=a.left;b.chartPosTop=a.top;k=A.pageX-b.chartPosLeft;h=A.pageY-b.chartPosTop;b.oy=h;b.ox=k;b.allowMove=!1;D||(D=c.elements.resizeBox=d.rect(c.layers.tracker).attr(f));k>r&&k<F&&h>l&&h<sa&&(b.allowMove=!0);u&&u.ishot&&(b.allowMove=!1);D.attr({x:0,y:0,width:0,height:0}).show();break;
case "end":l=D.getBBox();c={chart:c,selectionLeft:l.x,selectionTop:l.y,selectionHeight:l.height,selectionWidth:l.width,originalEvent:a.originalEvent};b.isDragged&&(b.selectionEnd&&b.selectionEnd(c),b.isDragged=0);D.hide();delete b.oy;delete b.ox;break;default:if(!b.allowMove)break;f=k-b.ox;n=h-b.oy;m=b.ox;L=b.oy;b.isDragged||(c={chart:c,selectionLeft:(p?B(m,m+f):r)+.5*K,selectionTop:(v?B(L,L+n):l)+.5*K,selectionHeight:0,selectionWidth:0,originalEvent:a.originalEvent},b.selectionStart&&b.selectionStart(c),
b.isDragged=1);f=-(m-B(m-(m-N(m+f,r)),F));n=-(L-B(L-(L-N(L+n,l)),sa));D.attr({x:(p?B(m,m+f):r)+.5*K,y:(v?B(L,L+n):l)+.5*K,width:p?s(f):da,height:v?s(n):q})}},W=function(a){var b=a.data;a=a.originalEvent;var c=a.target||a.originalTarget||a.srcElement||a.relatedTarget||a.fromElement,d=a.type,e=a.layerX,A=a.layerY;void 0===e&&(e=a.pageX-b.chartPosLeft,A=a.pageY-b.chartPosTop);"mousedown"===d&&(c.ishot=e>b.canvasX&&e<b.canvasX2&&A>b.canvasY&&A<b.canvasY2);"mouseup"===d&&setTimeout(function(){c.ishot=
!1},1)},n=function(){var a="innerWidth",b="innerHeight",c=C.documentElement||C.body,d=c;"innerWidth"in t?d=t:(a="clientWidth",b="clientHeight");return function(){return{width:d[a],height:d[b],scrollTop:c.scrollTop,scrollLeft:c.scrollLeft}}}(),ya=function(a,b){var c={left:a.offsetLeft||0,top:a.offsetTop||0};for(a=a.offsetParent;a;)c.left+=a.offsetLeft||0,c.top+=a.offsetTop||0,a===C.body||a===C.documentElement||b||(c.left-=a.scrollLeft,c.top-=a.scrollTop),a=a.offsetParent;return c},va=function(a){return a&&
a.replace(/\$/g,"$$$$")},za=function(a,b){return a||!1===a||0===a?a:b},ja=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a)return a;return""},O=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a)return a},na=function(a,b,c,d){return X.dem.listen(a,b,c,d)},ma=function(a,b,c){return X.dem.unlisten(a,b,c)},M=function(a){a=a.sourceEvent||a.originalEvent||a;return K&&a&&a.touches&&a.touches[0]||a||U},T=function(){var a;
return function(b){void 0===b.pageX&&(b.pageX=b.clientX+(a||(a=t.document.body||t.document.documentElement)).scrollLeft,b.pageY=b.clientY+a.scrollTop);return b}}(),u=function(a,b){b=T(M(b));var c=b.pageX,d=b.pageY,e=ya(a);return{chartX:c-e.left,chartY:d-e.top,pageX:c,pageY:d}},L=function(a){return a&&a.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none"},da=function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if(((a=arguments[b])||!1===a||0===a)&&!isNaN(a=Number(a)))return a},sa=function(a,b){a=a||!1===
a||0===a?Number(a):NaN;return isNaN(a)?null:b?s(a):a},ta=function(a){return"string"===typeof a?a.replace(p,"<br />"):""},S=function(a,b){for(var c=b.length,d=-1;c--;)if(a===b[c]){d=c;break}return d},$=function(){if(Array.isArray)return Array.isArray;var a=Object.prototype.toString,b=a.call([]);return function(c){return a.call(c)===b}}(),oa=function(a,b,c,d,e){var A,u,D,k;e?(d.push(a),e.push(b)):(d=[a],e=[b]);if(b instanceof Array)for(A=0;A<b.length;A+=1){try{u=a[A],D=b[A]}catch(h){continue}if("object"!==
typeof D)c&&void 0===D||(a[A]=D);else{if(null===u||"object"!==typeof u)u=a[A]=D instanceof Array?[]:{};k=S(D,e);-1!==k?u=a[A]=d[k]:oa(u,D,c,d,e)}}else for(A in b){try{u=a[A],D=b[A]}catch(f){continue}if(null!==D&&"object"===typeof D)if(k=v.call(D),"[object Object]"===k){if(null===u||"object"!==typeof u)u=a[A]={};k=S(D,e);-1!==k?u=a[A]=d[k]:oa(u,D,c,d,e)}else"[object Array]"===k?(null!==u&&u instanceof Array||(u=a[A]=[]),k=S(D,e),-1!==k?u=a[A]=d[k]:oa(u,D,c,d,e)):a[A]=D;else a[A]=D}return a},ia=function(a,
b,c){if("object"!==typeof a&&"object"!==typeof b)return null;if("object"!==typeof b||null===b)return a;"object"!==typeof a&&(a=b instanceof Array?[]:{});oa(a,b,c);return a},Ea=function(a,b){var c;if(b instanceof Array)for(c=b.length-1;0<=c;--c)"object"!==typeof b[c]?!0===b[c]&&a&&a.splice&&a.splice(c,1):v.call(b[c])===v.call(a[c])&&Ea(a[c],b[c]);else for(c in b)"object"!==typeof b[c]?!0===b[c]&&a&&a.splice&&a.splice(c,1):v.call(b[c])===v.call(a[c])&&Ea(a[c],b[c]);return a},fa=function(){var a=/^@window_/g;
return function(b,c){var d=b.replace(/\[[\'\"]/g,".").replace(/[\'\"]\]/g,"").replace(/\[/g,".@window_").replace(/\]/g,"").split("."),e=t,A,u;u="";var D,k,h;k=d.length;for(h=0;h<k;h+=1){D=d[h];A=e;if(D.match(a))u=t[D.replace(a,"")],e=e[u];else{if(void 0===e||null===e)throw(u||D).replace(a,"")+" is not defined";e=e[D]}u=D}!e||"function"!==typeof e.call&&e!==t.alert?setTimeout(function(){throw D.replace(a,"")+"() is not a function";},0):e===t.alert?e(c):e.call(A,c)}}(),La=function(){var a="FusionChartslinkEval"+
parseInt(+new Date,10);return function(b){try{t[a]=new Function(b),eval('window["'+a+'"]();')}catch(c){setTimeout(function(){throw c;},0)}d?delete t[a]:t[a]=null}}(),Ba=function(a,b){a=Number(a);a=isNaN(a)?100:a;void 0!==b&&(a=a*b/100);return a%101},ha=function(a,b,c){a=a.split(",");var d;void 0!==c&&(c=da(c.split(",")[0]));a[0]=Ba(a[0],c);for(d=1;d<b;d+=1)a[d]=a[0]*Ba(a[d],c)/100;return a.join(",")},Fa=function(a,c,d){var e=0,u=0,A=0;d&&d.match(l)&&(d=d.split(","),e=d[0].slice(d[0].indexOf("(")+
1),u=d[1],A=d[2],c||0===c||(c=parseInt(100*d[3].slice(0,d[3].indexOf(")")),10)));if(a)if(a.match(l))d=a.split(","),e=d[0].slice(d[0].indexOf("(")+1),u=d[1],A=d[2];else{a=a.replace(b,"").split(",")[0];switch(a.length){case 3:a=a.charAt(0)+a.charAt(0)+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2);break;case 6:break;default:a=(a+"FFFFFF").slice(0,6)}e=parseInt(a.slice(0,2),16);u=parseInt(a.slice(2,4),16);A=parseInt(a.slice(4,6),16)}c||0===c||(c=100);"string"===typeof c&&(c=c.split(",")[0]);c=parseInt(c,
10)/100;return"rgba("+e+","+u+","+A+","+c+")"},fb=function(){var a={};return function(b){var c=(b=b||this)&&b.FCcolor||b,d=c.color,e=c.ratio,A=c.angle,u=c.alpha,D=c.r,k=c.cx,h=c.cy,f=c.fx,n=c.fy,l=c.gradientUnits,L=c.x1,p=c.y1,v=c.x2,s=c.y2,B=1,r,da,M,q;if("string"===typeof b)return a[q="~"+b]||(a[q]=b.replace(/^#?([a-f0-9]{3,6})/ig,"#$1"));d=d||"";if(!d)return r;q=[d,u,e,A,D,k,h,l,f,n,L,v,p,s].join("_").replace(/[\(\)\s,\xb0#]/g,"_");if(a[q])return a[q];e=e&&(e+"").split(",")||[];u=(u||0===u)&&(u+
"").split(",")||[];if(d=d.split(","))if(r="",1===d.length)M=d[0].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),r=u.length?"rgba("+Ia(M).join(",")+","+.01*m(u[0])+")":M.replace(/^#?([a-f0-9]{3,6})/ig,"#$1");else{b=0;for(da=d.length;b<da;b++)M=d[b].replace(/^#?([a-f0-9]{3,6})/ig,"$1"),isNaN(e[b])||(e[b]=m(e[b]),M+=":"+e[b],isNaN(e[b+1])||(e[b+1]=m(e[b+1])+e[b])),isNaN(u[b])||""===u[b]||(B=.01*u[b]),d[b]="rgba("+Ia(M).join(",")+","+B+")",isNaN(e[b])||(d[b]=d[b]+":"+e[b]);r+=d.join("-");if(void 0!==D||void 0!==
f||void 0!==k||c.radialGradient)r="xr("+[f,n,D,k,h,l].join()+")"+r;else{r="-"+r;if(void 0!==L||void 0!==p||void 0!==v||void 0!==s)r="("+[L,p,v,s,l].join()+")"+r;void 0===A&&(A=0);r=360-m(A)%360+r}}return a[q]=r}}(),Xa=function(){return function(){return""}}(),xa=function(a){return a.replace(b,"").replace(c,"#")},gb=function(a,c){c=(0>c||100<c?100:c)/100;a=a.replace(b,"");var d=parseInt(a,16),e=Math.floor(d/65536),u=Math.floor((d-65536*e)/256);return("000000"+(e*c<<16|u*c<<8|(d-65536*e-256*u)*c).toString(16)).slice(-6)},
Sa=function(a,c){c=(0>c||100<c?100:c)/100;a=a.replace(b,"");var d=parseInt(a,16),e=Math.floor(d/65536),u=Math.floor((d-65536*e)/256);return("000000"+(256-(256-e)*c<<16|256-(256-u)*c<<8|256-(256-(d-65536*e-256*u))*c).toString(16)).slice(-6)},Ia=function(a){a=parseInt(a,16);var b=Math.floor(a/65536),c=Math.floor((a-65536*b)/256);return[b,c,Math.floor(a-65536*b-256*c)]},Ra=function(a,b){if("object"!==typeof a)return"";if(a.fontSize||a["font-size"])!a.fontSize&&a["font-size"]&&(a.fontSize=a["font-size"],
delete a["font-size"]),a.lineHeight=(parseFloat(a.fontSize)||b||10)*X.lineHeightFactor+"px",delete a["line-height"];!a.lineHeight&&a["line-height"]&&(a.lineHeight=a["line-height"],delete a["line-height"]);return a.lineHeight},Da=function(a,b,c,d,e){var A=ja(a.labelbordercolor,b.bordercolor,c.labelbordercolor,""),u=O(a.labelbgcolor,b.bgcolor,c.labelbgcolor),D=da(a.labelborderthickness,b.borderthickness,c.labelborderthickness,1);e=da(c.usedataplotcolorforlabels,0)?e||d.color:d.color;A=A?Fa(A,da(a.labelborderalpha,
b.borderalpha,c.labelborderalpha,a.labelalpha,b.alpha,c.labelalpha,100)):"";a={fontFamily:O(a.labelfont,b.font,c.labelfont,d.fontFamily),fontSize:O(a.labelfontsize,b.fontsize,c.labelfontsize,parseInt(d.fontSize,10))+"px",color:Fa(O(a.labelfontcolor,b.fontcolor,c.labelfontcolor,e),da(a.labelfontalpha,b.fontalpha,c.labelfontalpha,a.labelalpha,b.alpha,c.labelalpha,100)),fontWeight:da(a.labelfontbold,b.fontbold,c.labelfontbold)?"bold":"normal",fontStyle:da(a.labelfontitalic,b.fontitalic,c.labelfontitalic)?
"italic":"normal",border:A||u?D+"px solid":"",borderColor:A,borderThickness:D,borderPadding:da(a.labelborderpadding,b.borderpadding,c.labelborderpadding,2),borderRadius:da(a.labelborderradius,b.borderradius,c.labelborderradius,0),backgroundColor:u?Fa(u,da(a.labelbgalpha,b.bgalpha,c.labelbgalpha,a.labelalpha,b.alpha,c.labelalpha,100)):"",borderDash:da(a.labelborderdashed,b.borderdashed,c.labelborderdashed,0)?Eb(da(a.labelborderdashlen,b.borderdashlen,c.labelborderdashlen,4),da(a.labelborderdashgap,
b.borderdashgap,c.labelborderdashgap,2),D):"none"};a.lineHeight=Ra(a);return a},pb=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"}},b=/([^\,^\s]+)\)$/g,c=function(a,b){var c;/^(bar|bar3d)$/.test(a)&&(this.isBar=!0,this.yPos="bottom",this.yOppPos="top",this.xPos="left",this.xOppPos=
"right");c=parseInt(b.labelstep,10);this.labelStep=1<c?c:1;this.showLabel=da(b.showlabels,b.shownames,1);this.is3D=/3d$/.test(a)};c.prototype={isBar:!1,yPos:"left",yOppPos:"right",xPos:"bottom",xOppPos:"top",addAxisGridLine:function(c,d,A,e,u,k,h,f){var n=""===A?!1:!0,l=0<e||0<k.match(b)[1]?!0:!1,m;if(n||l)l||(k="rgba(0,0,0,0)",e=.1),m={isGrid:!0,width:e,dashStyle:u,color:k,value:d,zIndex:void 0===h?2:h},n&&(d=c.opposite?f?this.xOppPos:this.yOppPos:f?this.xPos:this.yPos,d=a[d],m.label={text:A,style:c.labels.style,
textAlign:d.textAlign,align:d.align,verticalAlign:d.verticalAlign,rotation:0,x:0,y:0}),c.plotLines.push(m);return m},addAxisAltGrid:function(a,b){if(!this.is3D){var c=da(a._lastValue,a.min),d=O(a._altGrid,!1);d&&a.plotBands.push({isGrid:!0,color:a.alternateGridColor,to:b,from:c,zIndex:1});a._lastValue=b;a._altGrid=!d}},addXaxisCat:function(b,c,d,e,u,k,h,f){var n=a[b.opposite?this.xOppPos:this.xPos];c={isGrid:!0,isDataLabel:!0,width:.1,color:"rgba(0,0,0,0)",value:c,label:{text:e,link:O(u.labellink,
k.link,h.labellink),style:Da(u,k,h,b.labels.style,f),textAlign:n.textAlign,align:n.align,verticalAlign:n.verticalAlign,rotation:0,x:0,y:0}};0!==d%this.labelStep&&(c.stepped=!0,c.label.style=b.steppedLabels.style);b.plotLines.push(c)},addVline:function(a,b,c,d){d=d._FCconf;var e=d.isBar,u=d.divlineStyle,k=ta(b.label),h=Boolean(da(b.showlabelborder,d.showVLineLabelBorder,1)),f=Boolean(da(b.showlabelbackground,1)),n=O(b.labelhalign,e?"left":"center"),l=O(b.labelvalign,e?"middle":"bottom").toLowerCase(),
m=da(b.labelposition,0),L=da(b.lineposition,.5),p=da(b.showvlines,d.showVLines,1),v=da(b.alpha,d.vLineAlpha,80),s=O(b.color,d.vLineColor).replace(/^#?/,"#"),r=f?O(b.labelbgcolor,d.vLineLabelBgColor,"333333").replace(/^#?/,"#"):"",B=O(b.labelcolor,d.vLineLabelColor,b.color,d.vLineColor).replace(/^#?/,"#"),M=da(b.thickness,d.vLineThickness,1),q=.5*M,F=Boolean(Number(O(b.dashed,0))),sa=da(b.dashlen,5),K=da(b.dashgap,2),N=d.smartLabel,t=parseInt(u.fontSize,10)+2,T=0,S=da(b.rotatelabel,d.rotateVLineLabels)?
270:0,L=0>L||1<L?.5:L,m=0>m||1<m?0:m;N.setStyle(u);N=N.getOriSize(k);s=Fa(s,p?v:"0");if(e){switch(l){case "top":t-=N.height+q+2;break;case "middle":t-=.5*N.height+1;break;default:t+=q}b.labelhalign||(T-=N.width*m)}else{switch(l){case "top":t=.5*-N.height+1;break;case "middle":t=0;break;default:t=.5*N.height}switch(n){case "left":T+=M;break;case "right":T-=M+1}}a.plotLines.push({isVline:!0,color:s,width:M,value:c-1+L,zIndex:da(b.showontop,d.showVLinesOnTop)?5:3,dashStyle:F?Eb(sa,K,M):"none",label:{text:k,
align:e?"left":"center",offsetScale:m,rotation:S,y:t,x:T,textAlign:n,backgroundColor:r,borderWidth:p&&h?1:0,borderType:p&&h?"solid":"",borderColor:p&&h?B:"",backgroundOpacity:p&&f?O(b.labelbgalpha,d.vLineLabelBgAlpha)/100:0,style:{color:p?B:s,fontSize:u.fontSize,fontFamily:u.fontFamily,lineHeight:u.lineHeight,backgroundColor:r}}})}};return c.prototype.constructor=c}(),Lb=function(){var a=function(a,c,d,e,u){a=Math.abs(c-a);c=a/(d+1);b(a,d,e)||(u&&Number(c)/Number(e)<(1<e?2:.5)&&(e/=10),c=(Math.floor(c/
e)+1)*e,a=c*(d+1));return a},b=function(a,b,d){return c(a/(b+1))>c(d)?!1:!0},c=function(a){a=Math.abs(a);a=String(a);var b=0,c=a.indexOf(".");-1!=c&&(b=a.length-c-1);return b};return function(c,d,e,u,D,h,f,n){var l,m,L,p,v,s,r,B=0;c=!0===isNaN(c)||void 0===c?.1:c;d=!0===isNaN(d)||void 0===d?0:d;c===d&&0===c&&(c=.1);D=void 0===typeof D?!0:D;h=void 0===typeof h?!0:h;l=Math.floor(Math.log(Math.abs(c))/Math.LN10);m=Math.floor(Math.log(Math.abs(d))/Math.LN10);m=Math.max(m,l);l=Math.pow(10,m);2>Math.abs(c)/
l&&2>Math.abs(d)/l&&(m--,l=Math.pow(10,m));m=Math.floor(Math.log(c-d)/Math.LN10);L=Math.pow(10,m);0<c-d&&10<=l/L&&(l=L);m=(Math.floor(c/l)+1)*l;0>d?L=-1*(Math.floor(Math.abs(d/l))+1)*l:h?L=0:(L=Math.floor(Math.abs(d/l)-1)*l,L=0>L?0:L);D&&0>=c&&(m=0);D=e||0===e?!0:!1;h=u||0===u?!0:!1;c=!1===D||!0===D&&Number(e)<c&&c-Number(e)>k?m:Number(e);d=!1===h||!0===h&&Number(u)>d&&Number(u)-d>k?L:Number(u);u=Math.abs(c-d);if(!1===h&&!1===D&&n)if(0<c&&0>d)for(e=!1,D=10<l?l/10:l,n=a(d,c,f,D,!1),h=n-(f+1)*D;!1===
e;){if(h+=(f+1)*D,b(h,f,D))if(n=h-u,m=h/(f+1),p=Math.min(Math.abs(d),c),L=p==Math.abs(d)?-1:1,0===f)e=!0;else for(s=1;s<=Math.floor((f+1)/2);s++)v=m*s,!(v-p>n)&&v>p&&(r=h-v,r/m==Math.floor(r/m)&&v/m==Math.floor(v/m)&&(u=h,c=-1==L?r:v,d=-1==L?-v:-r,e=!0))}else e=a(d,c,f,l,!0),n=e-u,u=e,0<c?c+=n:d-=n;else n&&(e=function(a,c,d){for(var e=0,A=1,u;;){u=a+e*A;u=0===u?1:u;if(b(c,u,d))break;e=-1==A||e>a?++e:e;if(25<e){u=0;break}A=e<=a?-1*A:1}return u},0<f&&(n=e(f,u,l),0===n&&(n=e(f,u+1,l),B=1),f=n));return{Max:c,
Min:d,Range:u,interval:l,divGap:(c-d+B)/(f+1)}}}(),Ub=function(){var a=function(a,b,c){var d=c.jsVars&&c.jsVars.smartLabel,e=a.offsetWidth,u=a.offsetHeight,D=this.chart;a=this.title;var k=c._chartMessageImageStyle,h=!1,f;void 0!==b&&(b=b.replace(/^\s+/,"").replace(/\s+$/,""),/^i\s*[\-]\s*/i.test(b)?(h=!0,f=b.replace(/^i\s*[\-]\s*/i,"")):f=b.replace(/^\\/,""));a.y=u/2;a.x=e/2;D.bgSWF=a.text=void 0;b=f;h?(D.bgSWF=b,D.bgImageHAlign=k.imageHAlign,D.bgImageVAlign=k.imageVAlign,D.bgImageScale=k.imageScale,
D.bgSWFAlpha=k.imageAlpha):void 0!==b&&(d?(Ra(a.style),d.setStyle(a.style),d=d.getSmartText(ta(b),e,u),a.text=d.text):a.text=ta(b),a.verticalAlign="middle");a.style=c._chartMessageStyle;delete c._chartMessageImageStyle;delete c._chartMessageStyle};a.prototype={chart:{events:{},margin:[0,0,0,0],backgroundColor:{FCcolor:{alpha:0}}},credits:{href:J,text:"FusionCharts XT Trial",enabled:!1},legend:{enabled:!1},title:{text:"",style:{fontFamily:"Verdana,sans",fontSize:"10px",color:"#666666"}},plotOptions:{series:{}},
series:[{}],exporting:{enabled:!1},nativeMessage:!0};return a.prototype.constructor=a}(),Mb={"true":{"true":{"true":"center","false":"center"},"false":{"true":"center","false":"center"}},"false":{"true":{"true":"right","false":"left"},"false":{"true":"left","false":"right"}}},vb=function(){return function(a,b,c,d,e,A,u){var D,k=c.trendStyle,h,f,n,l,m,L,p,v,s,r,B,M,q,F=A?"xAxis":"dataLabels";if(A?c.showVLines:c.showTrendlines)for(D=0,f=a.length;D<f;D+=1)if((q=a[D])&&q.line)for(h=0,n=q.line.length;h<
n;h+=1)l=q.line[h],r=c.numberFormatter.getCleanValue(O(l.startvalue,l.value,0)),B=c.numberFormatter.getCleanValue(O(l.endvalue,O(l.startvalue,l.value,0))),A?v=b:d&&l.parentyaxis&&/^s$/i.test(l.parentyaxis)?(v=b[1],M=1):v=b[0],L=v.max,p=v.min,m=!1,L>=r&&L>=B&&p<=r&&p<=B&&(d&&l.parentyaxis&&/^s$/i.test(l.parentyaxis)?m="1"!==O(l.valueonleft,c.trendlineValuesOnOpp):d||(m="1"===O(l.valueonright,c.trendlineValuesOnOpp)),L=Boolean(da(l.istrendzone,A?1:0)),(p=(A?c.showVLineLabels:c.showTrendlineLabels)?
ta(O(l.displayvalue,c.numberFormatter[F](m?B:r,M))):"")?(s=r<B,m={text:p,textAlign:e?"center":m?"left":"right",align:e?Mb[L][!u][s]:m?"right":"left",verticalAlign:e?"bottom":"middle",rotation:0,x:0,y:0,style:k},p=O(l.color,c.trendlineColor),l.alwaysVisible=L,p&&(m.style=ia({},k),m.style.color=Fa(p,da(l.alpha,100)))):m=void 0,p=za(ta(O(l.tooltext,q.tooltext,c.trendLineToolText))),p=tb(p,[7,15,16,17,18,19],{startValue:r,startDataValue:c.numberFormatter[F](r,M),endValue:B,endDataValue:c.numberFormatter[F](B,
M),axisName:v.title&&v.title.text},l),s=da(l.thickness,c.trendlineThickness,1),L?v.plotBands.push({isTrend:!0,color:Fa(O(l.color,c.trendlineColor),O(l.alpha,c.trendlineAlpha,40)),from:r,to:B,label:m,zIndex:c.is3d||"1"!==O(l.showontop,c.showTrendlinesOnTop)?3:5,tooltext:p,alwaysVisible:l.alwaysVisible}):v.plotLines.push({isTrend:!0,color:Fa(O(l.color,c.trendlineColor,c.trendlineColor),O(l.alpha,c.trendlineAlpha,99)),value:r,to:B,width:s,dashStyle:"1"==O(l.dashed,c.trendlinesAreDashed)?Eb(da(l.dashlen,
c.trendlinesDashLen),da(l.dashgap,c.trendlinesDashGap),s):"none",label:m,zIndex:c.is3d||"1"!==O(l.showontop,c.showTrendlinesOnTop)?3:5,tooltext:p}))}}(),Eb=function(a,b,c,d){return d||void 0===d?[a,b]:"none"},rb=function(){},Ib=function(a,b,c){var d,e=Ib[a];e||(e=function(){},e.prototype=c instanceof rb?c:new rb,e.prototype.constructor=e,e=Ib[a]=new e);c&&(e.base=c);e.name=a;for(d in b)switch(typeof b[d]){case "object":if(b[d]instanceof rb){e[d]=b[d][d];break}default:e[d]=b[d];break;case "undefined":delete e[d]}return this instanceof
Ib?(a=function(){},a.prototype=e,a.prototype.constructor=a,new a):e},tb=function(){var a=[{regex:/((^|[^\\])((\\)\\)*\$cleanvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cleanvalue))/ig,argIndex:2,argKey:"cleanvalue"},{regex:/((^|[^\\])((\\)\\)*\$datavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$datavalue))/ig,argIndex:2,argKey:"formattedValue"},{regex:/((^|[^\\])((\\)\\)*\$value)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$value))/ig,argIndex:3,argKey:"value"},{regex:/((^|[^\\])((\\)\\)*\$label)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$label))/ig,argIndex:2,argKey:"label"},{regex:/((^|[^\\])((\\)\\)*\$seriesname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$seriesname))/ig,argIndex:5,argKey:"seriesname"},{regex:/((^|[^\\])((\\)\\)*\$yaxisname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yaxisname))/ig,argIndex:2,argKey:"yaxisName"},{regex:/((^|[^\\])((\\)\\)*\$xaxisname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxisname))/ig,argIndex:2,argKey:"xaxisName"},{regex:/((^|[^\\])((\\)\\)*\$displayvalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$displayvalue))/ig,argIndex:3,argKey:"displayvalue"},{regex:/((^|[^\\])((\\)\\)*\$xdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xdatavalue))/ig,argIndex:2,argKey:"xDataValue"},{regex:/((^|[^\\])((\\)\\)*\$ydatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$ydatavalue))/ig,argIndex:2,argKey:"yDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xvalue))/ig,argIndex:3,argKey:"x"},{regex:/((^|[^\\])((\\)\\)*\$yvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$yvalue))/ig,
argIndex:3,argKey:"y"},{regex:/((^|[^\\])((\\)\\)*\$zvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zvalue))/ig,argIndex:3,argKey:"z"},{regex:/((^|[^\\])((\\)\\)*\$name)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$name))/ig,argIndex:3,argKey:"name"},{regex:/((^|[^\\])((\\)\\)*\$percentValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentValue))/ig,argIndex:2,argKey:"percentValue"},{regex:/((^|[^\\])((\\)\\)*\$startValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startValue))/ig,argIndex:2,argKey:"startValue"},
{regex:/((^|[^\\])((\\)\\)*\$startDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$startDataValue))/ig,argIndex:2,argKey:"startDataValue"},{regex:/((^|[^\\])((\\)\\)*\$endValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endValue))/ig,argIndex:2,argKey:"endValue"},{regex:/((^|[^\\])((\\)\\)*\$endDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$endDataValue))/ig,argIndex:2,argKey:"endDataValue"},{regex:/((^|[^\\])((\\)\\)*\$axisName)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$axisName))/ig,argIndex:2,
argKey:"axisName"},{regex:/((^|[^\\])((\\)\\)*\$cumulativevalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativevalue))/ig,argIndex:2,argKey:"cumulativeValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativedatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativedatavalue))/ig,argIndex:2,argKey:"cumulativeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativePercentValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativePercentValue))/ig,argIndex:2,argKey:"cumulativePercentValue"},{regex:/((^|[^\\])((\\)\\)*\$cumulativepercentdatavalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$cumulativepercentdatavalue))/ig,argIndex:2,argKey:"cumulativePercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$sum)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sum))/ig,argIndex:2,argKey:"sum"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsum)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsum))/ig,argIndex:2,argKey:"unformattedSum"},{regex:/((^|[^\\])((\\)\\)*\$targetvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetvalue))/ig,argIndex:2,argKey:"targetValue"},{regex:/((^|[^\\])((\\)\\)*\$targetdatavalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$targetdatavalue))/ig,argIndex:2,argKey:"targetDataValue"},{regex:/((^|[^\\])((\\)\\)*\$processname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$processname))/ig,argIndex:2,argKey:"processName"},{regex:/((^|[^\\])((\\)\\)*\$start)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$start))/ig,argIndex:2,argKey:"start"},{regex:/((^|[^\\])((\\)\\)*\$end)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$end))/ig,argIndex:2,argKey:"end"},{regex:/((^|[^\\])((\\)\\)*\$percentcomplete)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentcomplete))/ig,
argIndex:2,argKey:"percentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskpercentcomplete)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskpercentcomplete))/ig,argIndex:2,argKey:"taskPercentComplete"},{regex:/((^|[^\\])((\\)\\)*\$taskstartdate)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskstartdate))/ig,argIndex:2,argKey:"taskStartDate"},{regex:/((^|[^\\])((\\)\\)*\$taskenddate)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$taskenddate))/ig,argIndex:2,argKey:"taskEndDate"},{regex:/((^|[^\\])((\\)\\)*\$tasklabel)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tasklabel))/ig,argIndex:2,argKey:"taskLabel"},{regex:/((^|[^\\])((\\)\\)*\$date)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$date))/ig,argIndex:2,argKey:"date"},{regex:/((^|[^\\])((\\)\\)*\$percentofprevvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentofprevvalue))/ig,argIndex:2,argKey:"percentOfPrevValue"},{regex:/((^|[^\\])((\\)\\)*\$sname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$sname))/ig,argIndex:2,argKey:"sName"},{regex:/((^|[^\\])((\\)\\)*\$lname)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lname))/ig,
argIndex:2,argKey:"lName"},{regex:/((^|[^\\])((\\)\\)*\$fromid)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromid))/ig,argIndex:2,argKey:"fromId"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toid)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toid))/ig,argIndex:2,argKey:"toId"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},
{regex:/((^|[^\\])((\\)\\)*\$fromxvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxvalue))/ig,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromyvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromyvalue))/ig,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromxdatavalue))/ig,argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromydatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromydatavalue))/ig,
argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromlabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toxvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxvalue))/ig,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toyvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toyvalue))/ig,argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toxdatavalue))/ig,
argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toydatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toydatavalue))/ig,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$openvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$openvalue))/ig,argIndex:2,argKey:"openValue"},{regex:/((^|[^\\])((\\)\\)*\$closevalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closevalue))/ig,
argIndex:2,argKey:"closeValue"},{regex:/((^|[^\\])((\\)\\)*\$highvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highvalue))/ig,argIndex:2,argKey:"highValue"},{regex:/((^|[^\\])((\\)\\)*\$lowvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowvalue))/ig,argIndex:2,argKey:"lowValue"},{regex:/((^|[^\\])((\\)\\)*\$opendatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$opendatavalue))/ig,argIndex:2,argKey:"openDataValue"},{regex:/((^|[^\\])((\\)\\)*\$closedatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$closedatavalue))/ig,
argIndex:2,argKey:"closeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$highdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$highdatavalue))/ig,argIndex:2,argKey:"highDataValue"},{regex:/((^|[^\\])((\\)\\)*\$lowdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$lowdatavalue))/ig,argIndex:2,argKey:"lowDataValue"},{regex:/((^|[^\\])((\\)\\)*\$maxvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxvalue))/ig,argIndex:2,argKey:"maxValue"},{regex:/((^|[^\\])((\\)\\)*\$maxdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$maxdatavalue))/ig,
argIndex:2,argKey:"maxDataValue"},{regex:/((^|[^\\])((\\)\\)*\$minvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$minvalue))/ig,argIndex:2,argKey:"minValue"},{regex:/((^|[^\\])((\\)\\)*\$mindatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mindatavalue))/ig,argIndex:2,argKey:"minDataValue"},{regex:/((^|[^\\])((\\)\\)*\$q1)/ig,argIndex:2,argKey:"Q1"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ1)/ig,argIndex:2,argKey:"unformattedQ1"},{regex:/((^|[^\\])((\\)\\)*\$q3)/ig,argIndex:2,argKey:"Q3"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQ3)/ig,
argIndex:2,argKey:"unformattedQ3"},{regex:/((^|[^\\])((\\)\\)*\$median)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$median))/ig,argIndex:2,argKey:"median"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMedian)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMedian))/ig,argIndex:2,argKey:"unformattedMedian"},{regex:/((^|[^\\])((\\)\\)*\$SD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$SD))/ig,argIndex:2,argKey:"SD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedsd)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedsd))/ig,
argIndex:2,argKey:"unformattedsd"},{regex:/((^|[^\\])((\\)\\)*\$QD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$QD))/ig,argIndex:2,argKey:"QD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedQD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedQD))/ig,argIndex:2,argKey:"unformattedQD"},{regex:/((^|[^\\])((\\)\\)*\$MD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$MD))/ig,argIndex:2,argKey:"MD"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMD)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMD))/ig,argIndex:2,argKey:"unformattedMD"},
{regex:/((^|[^\\])((\\)\\)*\$mean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$mean))/ig,argIndex:2,argKey:"mean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/ig,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$unformattedMean)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$unformattedMean))/ig,argIndex:2,argKey:"unformattedMean"},{regex:/((^|[^\\])((\\)\\)*\$volumeValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeValue))/ig,argIndex:2,
argKey:"volumeValue"},{regex:/((^|[^\\])((\\)\\)*\$volumeDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$volumeDataValue))/ig,argIndex:2,argKey:"volumeDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXValue))/ig,argIndex:2,argKey:"fromXValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYValue))/ig,argIndex:2,argKey:"fromYValue"},{regex:/((^|[^\\])((\\)\\)*\$fromXDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromXDataValue))/ig,
argIndex:2,argKey:"fromXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromYDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromYDataValue))/ig,argIndex:2,argKey:"fromYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$fromLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$fromLabel))/ig,argIndex:2,argKey:"fromLabel"},{regex:/((^|[^\\])((\\)\\)*\$toXValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXValue))/ig,argIndex:2,argKey:"toXValue"},{regex:/((^|[^\\])((\\)\\)*\$toYValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYValue))/ig,
argIndex:2,argKey:"toYValue"},{regex:/((^|[^\\])((\\)\\)*\$toXDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toXDataValue))/ig,argIndex:2,argKey:"toXDataValue"},{regex:/((^|[^\\])((\\)\\)*\$toYDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$toYDataValue))/ig,argIndex:2,argKey:"toYDataValue"},{regex:/((^|[^\\])((\\)\\)*\$tolabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tolabel))/ig,argIndex:2,argKey:"toLabel"},{regex:/((^|[^\\])((\\)\\)*\$tlLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlLabel))/ig,
argIndex:5,argKey:"tlLabel"},{regex:/((^|[^\\])((\\)\\)*\$trlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trlabel))/ig,argIndex:5,argKey:"trLabel"},{regex:/((^|[^\\])((\\)\\)*\$bllabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$bllabel))/ig,argIndex:5,argKey:"blLabel"},{regex:/((^|[^\\])((\\)\\)*\$brlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brlabel))/ig,argIndex:5,argKey:"brLabel"},{regex:/((^|[^\\])((\\)\\)*\$rowlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$rowlabel))/ig,argIndex:5,argKey:"rowLabel"},
{regex:/((^|[^\\])((\\)\\)*\$columnlabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$columnlabel))/ig,argIndex:5,argKey:"columnLabel"},{regex:/((^|[^\\])((\\)\\)*\$errorvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorvalue))/ig,argIndex:2,argKey:"errorValue"},{regex:/((^|[^\\])((\\)\\)*\$errordatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errordatavalue))/ig,argIndex:2,argKey:"errorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentvalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentvalue))/ig,
argIndex:2,argKey:"errorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$errorpercentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$errorpercentdatavalue))/ig,argIndex:2,argKey:"errorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorValue))/ig,argIndex:2,argKey:"horizontalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorDataValue))/ig,argIndex:2,argKey:"horizontalErrorDataValue"},
{regex:/((^|[^\\])((\\)\\)*\$verticalErrorValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorValue))/ig,argIndex:2,argKey:"verticalErrorValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorDataValue))/ig,argIndex:2,argKey:"verticalErrorDataValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercent)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentValue))/ig,argIndex:2,argKey:"horizontalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$horizontalErrorPercentDataValue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$horizontalErrorPercentDataValue))/ig,argIndex:2,argKey:"horizontalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercent)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentValue))/ig,argIndex:2,argKey:"verticalErrorPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$verticalErrorPercentDataValue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$verticalErrorPercentDataValue))/ig,argIndex:2,argKey:"verticalErrorPercentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$xaxispercentvalue)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$xaxispercentvalue))/ig,argIndex:2,argKey:"xAxisPercentValue"},{regex:/((^|[^\\])((\\)\\)*\$percentdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$percentdatavalue))/ig,argIndex:2,argKey:"percentDataValue"},{regex:/((^|[^\\])((\\)\\)*\$trType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$trType))/ig,argIndex:4,argKey:"trtype"},{regex:/((^|[^\\])((\\)\\)*\$tlType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$tlType))/ig,argIndex:4,argKey:"tltype"},{regex:/((^|[^\\])((\\)\\)*\$brType)/ig,
escapeRegex:/((^|[^\\])((\\)\\)*\\(\$brType))/ig,argIndex:4,argKey:"brtype"},{regex:/((^|[^\\])((\\)\\)*\$blType)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$blType))/ig,argIndex:4,argKey:"bltype"},{regex:/((^|[^\\])((\\)\\)*\$colorRangeLabel)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$colorRangeLabel))/ig,argIndex:5,argKey:"colorRangeLabel"},{regex:/((^|[^\\])((\\)\\)*\$zdatavalue)/ig,escapeRegex:/((^|[^\\])((\\)\\)*\\(\$zdatavalue))/ig,argIndex:2,argKey:"zDataValue"}],b=[],c,d=a.length;for(c=0;c<d;c+=
1)b.push(c);return function(){var c=arguments[0],d=arguments[1],e,u,k,h,f;$(d)||(d=b);if(c)for(f=d.length,h=0;h<f;h+=1)if(k=a[d[h]])e=va(za((u=arguments[k.argIndex])&&u[k.argKey],"")+""),c=c.replace(k.regex,"$2$4"+(k.parsingMethod?k.parsingMethod(e):e)),c=c.replace(k.escapeRegex,"$2$4$5");return c}}();f.core._setLineHeightFactor=function(a){!(a=m(a))||0>a||(X.lineHeightFactor=a)};f.extend(X,{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:F,dropHash:c,startsRGBA:l,cleanColorCode:b,breakPlaceholder:p,hexcode:/^#?[0-9a-f]{6}/i},fireEvent:function(a,b,c,d){X.dem.fire(a,b,c,d)},plotEventHandler:function(b,c,d){c=c||{};var e=c.type,k=u(b.container,c),k=ia(k,this.data("eventArgs")),A=b.logic.fireGroupEvent,h=this.data("groupId"),D=function(b,d){c.FusionChartsPreventEvent=!0;a&&d.toolText&&X.toolTip&&X.toolTip.preventTooltip()};
"index"in k&&!("dataIndex"in k)&&(k.dataIndex=k.index);"value"in k&&!("dataValue"in k)&&(k.dataValue=k.value);d=O(d,"dataplotclick").toLowerCase();"dataplotrollover"===d?(c.FusionChartsPreventEvent=!1,A?f.raiseEventGroup(h,d,k,b.fusionCharts,void 0,void 0,D):f.raiseEvent(d,k,b.logic.chartInstance,void 0,void 0,D)):A&&"dataplotclick"!==d?f.raiseEventGroup(h,d,k,b.fusionCharts):f.raiseEvent(d,k,b.logic.chartInstance);if(("click"===e||"mouseup"===e||"touchend"===e)&&/click/i.test(d)){if(r&&!ga){d=(new Date).getTime();
if(this.lastClickTimeStamp&&400>d-this.lastClickTimeStamp){c&&(c.originalEvent||c).preventDefault();return}this.lastClickTimeStamp=d}b.linkClickFN.call({link:k.link},b)}},getEventCoordinate:T,getMouseCoordinate:u,addEvent:na,removeEvent:ma,getTouchEvent:M,extend2:ia,deltend:function(a,b){if("object"!==typeof a||"object"!==typeof b)return null;Ea(a,b);return a},imprint:function(a,b,c){var d;if("object"!==typeof a||null===a)return b;if("object"!==typeof b||null===b)return a;for(d in b)if(void 0===a[d]||
!c&&null===a[d])a[d]=b[d];return a},pluck:O,pluckNumber:da,getFirstDefinedValue:function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a||""==a)return a},createElement:function(a,b,c){a=C.createElement(a);for(var d in b)a.setAttribute(d,b[d]);c&&c.appendChild&&c.appendChild(a);return a},hashify:L,pluckFontSize:function(){var a,b,c;b=0;for(c=arguments.length;b<c;b+=1)if(((a=arguments[b])||!1===a||0===a)&&!isNaN(a=Number(a)))return 1>a?1:a;return 1},getValidValue:za,
getPosition:ya,getViewPortDimension:n,bindSelectionEvent:function(a,b){b=b||{};var c=a.options.chart,d=a.container,e=c.zoomType,u=ia({},b.attr||{}),k=u["stroke-width"]=da(u.strokeWidth,u["stroke-width"],1),D=ya(d),h=a.eventListeners||(a.eventListeners=[]);b=ia({chart:a,zoomX:/x/.test(e),zoomY:/y/.test(e),canvasY:a.canvasTop,canvasX:a.canvasLeft,canvasW:a.canvasWidth,canvasH:a.canvasHeight,canvasX2:a.canvasLeft+a.canvasWidth,canvasY2:a.canvasTop+a.canvasHeight,strokeWidth:k,chartPosLeft:D.left,chartPosTop:D.top,
attr:u},b);u.stroke=ja(u.stroke,"rgba(51,153,255,0.8)");u.fill=ja(u.fill,"rgba(185,213,241,0.3)");u.ishot=!0;d&&(ma(d,"pointerdrag",aa),h.push(na(d,"pointerdrag",aa,b)));c.link&&(ma(a.container,"mouseup mousedown",W),h.push(na(a.container,"mouseup mousedown",W,b)))},createContextMenu:function(b){var c=b.chart,e=c.smartLabel,u=c.logic.hcJSON&&c.logic.hcJSON.chart.useRoundEdges,k=X.Raphael,A=function(a){var b=a.menufillcolor&&L(a.menufillcolor),c=a.menulabelcolor&&L(a.menulabelcolor),d=a.menufillhovercolor&&
L(a.menufillhovercolor);a=a.menulabelhovercolor&&L(a.menulabelhovercolor);return{attrs:{backgroundColor:b,color:c},hover:{backgroundColor:d,color:a}}}(c.definition.chart),h=function(a,b,c){b=b||{};a=(a=(a=a&&k.tintshade(a.color,.7))&&k.getRGB(a))&&"rgb("+[a.r,a.g,a.b].join()+")";return{backgroundColor:b.backgroundHoverColor||c.backgroundColor||a||"rgb(64, 64, 64)",color:b.hoverColor||c.color||"#FFFFFF"}}(b.basicStyle,b.hover,A.hover),D=function(a,b,c){b=ia({},b||{});b=ia(b,a);return{fontFamily:b.fontFamily||
"Verdana,sans",fontSize:b.fontSize||"10px",color:b.color||c.color||"#000000",backgroundColor:b.backgroundColor||c.backgroundColor||"rgb(255, 255, 255)"}}(b.basicStyle,b.attrs,A.attrs),f={textAlign:"left",align:"left",paddingLeft:"5px",paddingRight:"5px",paddingTop:"5px",cursor:"pointer",borderWidth:"0px"},n=b.items,l=b.position,m=b.verticalPadding||3,p=b.horizontalPadding||6,v={},s,r,B,da,M,q,F,sa,t,K,ta,T,S;if(c)s=ya(c.container);else return!1;da=function(){var b=v.items,c=b.length,A=0,k=0,z=0,w,
E;v.menuItems||(v.menuItems=[]);for(e.setStyle(D);c--;)w=b[c],w=e.getOriSize(w.text),z||(z=w.height+2*m),A+=z,k=N(k,w.width+2*p);v.height=A;v.width=k;v.itemH=z;this.style.width=k+"px";v.menuRect||(A=v.menuRect=C.createElement("div"),A.style.border="1px solid rgb(100, 100, 100)",u&&(A.style.mozBorderRadius="4px",A.style.webkitBorderRadius="4px",A.style.borderRadius="4px",A.style.overflow="hidden"),a&&!d?A.style.filter="progid:DXImageTransform.Microsoft.Shadow(Color=#999999,direction=135,strength=3)":
(A.style.mozBoxShadow="3px 3px 3px #999",A.style.webkitBoxShadow="3px 3px 3px #999",A.style.boxShadow="3px 3px 3px #999"),this.appendChild(A));k=b.length;for(c=0;c<k;c+=1)if(w=b[c],v.menuItems[c])v.menuItems[c].label.innerHTML=w.text;else{v.menuItems[c]={};A=v.menuItems[c].box=C.createElement("div");A.style.height=z+"px";A.style.lineHeight=z+"px";for(E in f)A.style[E]=f[E];for(E in D)A.style[E]=D[E];v.menuRect.appendChild(A);A.innerHTML=w.text;X.dem.listen(A,"click",S);X.dem.listen(A,"pointerhover",
K);v.menuItems[c].box._itemIdx=c}for(;v.menuItems[c];)v.menuItems[c].box.parentNode.removeChild(v.menuItems[c].box),v.menuItems.splice(c,1)};M=function(){B||(B=C.createElement("div"),B.style.position="absolute",B.style.zIndex="50",B.style.display="none",c.container.appendChild&&c.container.appendChild(B));return B};q=function(){r=setTimeout(v.hide,800)};F=function(){r&&clearTimeout(r)};sa=function(a){var b=a.x;a=a.y;var d={x:b,y:a},e=v.width,z=v.height,w=c.chartHeight,E=c.chartWidth;b+e>E&&0<b-e?
d.x-=e:b+e>E&&(d.x=0);a+z>w&&0<a-z&&(d.y-=z);return d};t=function(){v.hide()};K=function(a){a.target&&a.target.parentNode&&("start"===a.state?ta:T).call(a.target)};ta=function(){var a=v.menuItems[this._itemIdx],b;F();for(b in h)a.box.style[b]=h[b]};T=function(){var a=v.menuItems[this._itemIdx],b;for(b in D)a.box.style[b]=D[b];q()};S=function(a){var b=v.items[this._itemIdx];b.onclick&&b.onclick.call(b,a);a.originalEvent.stopPropagation?a.originalEvent.stopPropagation():a.originalEvent.cancelBubble=
!0;v.hide()};v.showItem=function(a){a=this.menuItems[a];var b=this.height,c=this.itemH;a&&a._isHidden&&(a.box.style.display="",this.height=b+c,a._isHidden=!1,a=sa(l),this.left=a.x,this.top=a.y)};v.hideItem=function(a){a=this.menuItems[a];var b=this.height,c=this.itemH;a&&!a._isHidden&&(a.box.style.display="none",this.height=b-c,a._isHidden=!0,a=sa(l),this.left=a.x,this.top=a.y)};v.redraw=function(){var a=this.menuContainer;this.items=n;a?da.call(this.menuContainer):l&&void 0!==l.x&&void 0!==l.y?(this.menuContainer=
M(),da.call(this.menuContainer),a=sa(l),this.left=a.x,this.top=a.y,this.menuContainer.style.left=this.left+"px",this.menuContainer.style.top=this.top+"px"):(this.menuContainer=M(),da.call(this.menuContainer))};v.show=function(a){var b=this;a&&void 0!==a.x&&void 0!==a.y?(a=sa(a),b.menuContainer.style.left=a.x+"px",b.menuContainer.style.top=a.y+"px"):(b.menuContainer.style.left=b.left+"px",b.menuContainer.style.top=b.top+"px");b.menuContainer.style.display="";setTimeout(function(){b.visible=!0;k.click(t)},
400)};v.hide=function(){this.visible&&(this.visible=!1,v.menuContainer.style.display="none",v.menuContainer.style.left=-v.width+"px",v.menuContainer.style.top=-v.height+"px",k.unclick(t))};v.update=function(a){a&&a.length&&(this.items=a,this.redraw())};v.updatePosition=function(a){var b=s.left,d=s.top;s=ya(c.container);a?(l=a,a=sa(a),this.left=a.x,this.top=a.y):(this.left-=b-s.left,this.top-=d-s.top)};v.add=function(a){var b=this.menuItems,c=b.length,d;e.setStyle(D);this.width=N(this.width,e.getOriSize(a.text).width);
b[c]={};b=b[c].box=C.createElement("div");b.style.height=this.itemH+"px";b.style.lineHeight=this.itemH+"px";for(d in f)b.style[d]=f[d];for(d in D)b.style[d]=D[d];v.menuRect.appendChild(b);b.innerHTML=a.text;X.dem.listen(b,"click",S);X.dem.listen(b,"pointerhover",K);v.menuItems[c].box._itemIdx=c;this.height+=this.itemH};v.removeItems=function(){for(var a=this.menuItems,b=a&&a.length,c;b--;)c=a[b],X.dem.unlisten(c.box,"click",S),X.dem.unlisten(c.box,"pointerhover",K),c.box&&c.box.parentNode&&c.box.parentNode.removeChild(c.box);
delete this.menuItems;delete this.items};v.setPosition=function(a){void 0!==a.x&&void 0!==a.y&&(this.menuContainer.style.x=a.x,this.menuContainer.style.y=a.y)};v.destroy=function(){this.removeItems();this.menuContainer.parentNode.removeChild(this.menuContainer)};n&&n.length&&(v.redraw(),v.hide());return v},getDefinedColor:function(a,b){return a||0===a||""===a?a:b},getFirstValue:ja,getFirstColor:function(a){a=a.split(",")[0];a=a.replace(F,"");""==a&&(a="000000");return a.replace(c,"#")},getColorCodeString:function(a,
b){var c="",d,e,u=0,k=b.split(",");for(e=k.length;u<e;u+=1)d=k[u].split("-"),c=2===d.length?"-1"!==d[0].indexOf("dark")?c+(Sa(a,100-parseInt(d[1],10))+","):c+(gb(a,100-parseInt(d[1],10))+","):c+(k[u]+",");return c.substring(0,c.length-1)},pluckColor:function(a){if(za(a))return a=a.split(",")[0],a=a.replace(F,""),""==a&&(a="000000"),a.replace(c,"#")},toRaphaelColor:fb,gradientify:Xa,trimString:function(a){a=a.replace(/^\s\s*/,"");for(var b=/\s/,c=a.length;b.test(a.charAt(--c)););return a.slice(0,c+
1)},getFirstAlpha:function(a){a=parseInt(a,10);if(isNaN(a)||100<a||0>a)a=100;return a},parsePointValue:sa,parseUnsafeString:ta,parseTooltext:tb,toPrecision:function(a,b){var c=e(10,b);return h(a*c)/c},hasTouch:q,CREDIT_HREF:J,CREDIT_STRING:"FusionCharts XT Trial",getSentenceCase:function(a){a=a||"";return a.charAt(0).toUpperCase()+a.substr(1)},getCrispValues:function(a,b,c){var d=c%2/2;c=h(a+d)-d;a=h(a+b+d)-d-c;return{position:c,distance:a}},regescape:function(a){return a&&a.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,
"\\$&")},regReplaceEscape:va,isArray:$,stubFN:function(){},falseFN:function(){return!1},stableSort:function(a,b){var c=a.length,d;for(d=0;d<c;d++)a[d].ssI=d;a.sort(function(a,c){var d=b(a,c);return 0===d?a.ssI-c.ssI:d});for(d=0;d<c;d++)delete a[d].ssI},hasSVG:d,isIE:a,lineHeightFactor:1.2,getLinkAction:function(a,b){var c=function(a){return a};return function(d){d=d||this.series&&this.series.chart;var e=a.chart||a.map||{},u=da(e.unescapelinks,1),e=da(e.clickurloverridesplotlinks,0),k=ja(this.link,
"");d=d&&d.options&&d.options.chart&&d.options.chart.link||"";var D=this.options&&this.options.chart&&this.options.chart.link||"",h=e?O(d,D,k):O(k,D,d),n=h,l,m,v,L,p,s,r,B,M,q;void 0!==h&&(u&&(h=t.decodeURIComponent?t.decodeURIComponent(h):t.unescape(h)),h=h.replace(/^\s+/,"").replace(/\s+$/,""),-1!==h.search(/^[a-z]*\s*[\-\:]\s*/i)&&(p=h.split(/\s*[\-\:]\s*/)[0].toLowerCase(),q=p.length),setTimeout(function(){switch(p){case "j":h=h.replace(/^j\s*\-/i,"j-");l=h.indexOf("-",2);-1===l?fa(h.slice(2)):
fa(h.substr(2,l-2).replace(/\s/g,""),h.slice(l+1));break;case "javascript":La(h.replace(/^javascript\s*\:/i,""));break;case "n":h.replace(/^n\s*\-/i,"n-");t.open(c(h.slice(2),u));break;case "f":h=h.replace(/^f\s*\-/i,"f-");l=h.indexOf("-",2);-1!==l?(m=h.substr(2,l-2))&&t.frames[m]?t.frames[m].location=c(h.slice(l+1),u):t.open(c(h.slice(l+1),u),m):t.open(c(h.slice(2),u));break;case "p":h=h.replace(/p\s*\-/i,"p-");l=h.indexOf("-",2);v=h.indexOf(",",2);-1===l&&(l=1);L=c(h.slice(l+1),u);t.open(L,h.substr(2,
v-2),h.substr(v+1,l-v-1)).focus();break;case "newchart":case "newmap":":"===h.charAt(q)&&(l=h.indexOf("-",q+1),M=h.substring(q+1,l),q=l);l=h.indexOf("-",q+1);s=h.substring(q+1,l).toLowerCase();switch(s){case "xmlurl":case "jsonurl":B=h.substring(l+1,h.length);break;case "xml":case "json":var d=r=h.substring(l+1,h.length),e={chart:{}},k,d=d.toLowerCase();if(a.linkeddata)for(k=0;k<a.linkeddata.length;k+=1)a.linkeddata[k].id.toLowerCase()===d&&(e=a.linkeddata[k].linkedchart||a.linkeddata[k].linkedmap);
B=e;s="json"}f.raiseEvent("linkedChartInvoked",{alias:M,linkType:s.toUpperCase(),data:B},b);break;default:t.location.href=h}f.raiseEvent("linkClicked",{linkProvided:n,linkInvoked:h,linkAction:p&&p.toLowerCase()},b)},0))}},graphics:{parseAlpha:ha,convertColor:Fa,getDarkColor:gb,getLightColor:Sa,mapSymbolName:function(a,b){var c="circle";a=sa(a);3<=a&&(c=(b?"spoke_":"poly_")+a);return c},getColumnColor:function(a,b,c,d,e,u,k,h,f){var n,l;n=a.split(",");l=b.split(",");u=u.split(",");k=k.split(",");a=
a.replace(/\s/g,"").replace(/\,$/,"");f?h={FCcolor:{color:n[0],alpha:l[0]}}:e?(a=n[0],l=l[0],h={FCcolor:{color:gb(a,75)+","+Sa(a,10)+","+gb(a,90)+","+Sa(a,55)+","+gb(a,80),alpha:l+","+l+","+l+","+l+","+l,ratio:"0,11,14,57,18",angle:h?"90":"0"}},u=[gb(a,70)]):(b=ha(b,n.length),h={FCcolor:{color:a,alpha:b,ratio:c,angle:h?-d:d}});return[h,{FCcolor:{color:u[0],alpha:k[0]}}]},getAngle:function(a,b,c){a=180*Math.atan(b/a)/Math.PI;2==c?a=180-a:3==c?a+=180:4==c&&(a=360-a);return a},parseColor:xa,getValidColor:function(a){return H.test(xa(a))&&
a},HSBtoRGB:function(a){var b=a[0],c=0,d=0,e=0,u=[],u=a[1]/100;a=a[2]/100;var k=b/60-Math.floor(b/60),D=a*(1-u),f=a*(1-k*u),u=a*(1-(1-k)*u);switch(Math.floor(b/60)%6){case 0:c=a;d=u;e=D;break;case 1:c=f;d=a;e=D;break;case 2:c=D;d=a;e=u;break;case 3:c=D;d=f;e=a;break;case 4:c=u;d=D;e=a;break;case 5:c=a,d=D,e=f}return u=[h(255*c),h(255*d),h(255*e)]},RGBtoHSB:function(a){var b=a[0],c=a[1];a=a[2];var d=Math.max(Math.max(b,c),a),e=Math.min(Math.min(b,c),a),u=0,k=0;d==e?u=0:d==b?u=(60*(c-a)/(d-e)+360)%
360:d==c?u=60*(a-b)/(d-e)+120:d==a&&(u=60*(b-c)/(d-e)+240);k=0===d?0:(d-e)/d;return[h(u),h(100*k),h(d/255*100)]},RGBtoHex:function(a){return("000000"+(a[0]<<16|a[1]<<8|a[2]).toString(16)).slice(-6)},HEXtoRGB:Ia},setImageDisplayMode:function(a,b,c,d,e,u,k,h){var f=d/100*h.width;d=d/100*h.height;h={};var n,l=u-2*e;n=k-2*e;var m=function(a,b,c,d,u,h){var k={};switch(a){case "top":k.y=e;break;case "bottom":k.y=h-d-e;break;case "middle":k.y=(h-d)/2}switch(b){case "left":k.x=e;break;case "right":k.x=u-
c-e;break;case "middle":k.x=(u-c)/2}return k};switch(a){case "center":h.width=f;h.height=d;h.y=k/2-d/2;h.x=u/2-f/2;break;case "stretch":h.width=u-2*e;h.height=k-2*e;h.y=e;h.x=e;break;case "tile":h.width=f;h.height=d;h.tileInfo={};h.tileInfo.xCount=a=Math.ceil(l/f);h.tileInfo.yCount=n=Math.ceil(n/d);b=m(b,c,f*a,d*n,u,k);h.y=b.y;h.x=b.x;break;case "fit":a=f/d>l/n?l/f:n/d;h.width=f*a;h.height=d*a;b=m(b,c,h.width,h.height,u,k);h.y=b.y;h.x=b.x;break;case "fill":a=f/d>l/n?n/d:l/f;h.width=f*a;h.height=d*
a;b=m(b,c,h.width,h.height,u,k);h.y=b.y;h.x=b.x;break;default:b=m(b,c,f,d,u,k),h.width=f,h.height=d,h.y=b.y,h.x=b.x}return h},setLineHeight:Ra,parsexAxisStyles:Da,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:Lb,createTrendLine:vb,
getDashStyle:Eb,axisLabelAdder:pb,chartAPI:Ib,createDialog:Ub,isCanvasElemSupported:function(){var a=C.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))}})}]);
window.FusionCharts&&window.FusionCharts.register("module",["private","vendor.redraphael",function(){var f=this.hcLib,t=window.Raphael,C;(function(){(function(f,d){var a=/[\.\/]/,m=function(){},F=function(a,b){return a-b},c,l,b={n:{}},p=function(a,b){a=String(a);var d=l,h=Array.prototype.slice.call(arguments,2),k=p.listeners(a),f=0,m,q=[],n={},t=[],B=c;c=a;for(var U=l=0,r=k.length;U<r;U++)"zIndex"in k[U]&&(q.push(k[U].zIndex),0>k[U].zIndex&&(n[k[U].zIndex]=k[U]));for(q.sort(F);0>q[f];)if(m=n[q[f++]],
t.push(m.apply(b,h)),l)return l=d,t;for(U=0;U<r;U++)if(m=k[U],"zIndex"in m)if(m.zIndex==q[f]){t.push(m.apply(b,h));if(l)break;do if(f++,(m=n[q[f]])&&t.push(m.apply(b,h)),l)break;while(m)}else n[m.zIndex]=m;else if(t.push(m.apply(b,h)),l)break;l=d;c=B;return t.length?t:null};p._events=b;p.listeners=function(c){c=c.split(a);var d=b,e,h,k,f,l,m,n,p=[d],B=[];k=0;for(f=c.length;k<f;k++){n=[];l=0;for(m=p.length;l<m;l++)for(d=p[l].n,e=[d[c[k]],d["*"]],h=2;h--;)if(d=e[h])n.push(d),B=B.concat(d.f||[]);p=n}return B};
p.on=function(c,d){c=String(c);if("function"!=typeof d)return function(){};for(var e=c.split(a),h=b,k=0,f=e.length;k<f;k++)h=h.n,h=h.hasOwnProperty(e[k])&&h[e[k]]||(h[e[k]]={n:{}});h.f=h.f||[];k=0;for(f=h.f.length;k<f;k++)if(h.f[k]==d)return m;h.f.push(d);return function(a){+a==+a&&(d.zIndex=+a)}};p.f=function(a){var b=[].slice.call(arguments,1);return function(){p.apply(null,[a,null].concat(b).concat([].slice.call(arguments,0)))}};p.stop=function(){l=1};p.nt=function(a){return a?(new RegExp("(?:\\.|\\/|^)"+
a+"(?:\\.|\\/|$)")).test(c):c};p.nts=function(){return c.split(a)};p.off=p.unbind=function(c,d){if(c){var e=c.split(a),h,k,f,l,m,n,q=[b];l=0;for(m=e.length;l<m;l++)for(n=0;n<q.length;n+=f.length-2){f=[n,1];h=q[n].n;if("*"!=e[l])h[e[l]]&&f.push(h[e[l]]);else for(k in h)h.hasOwnProperty(k)&&f.push(h[k]);q.splice.apply(q,f)}l=0;for(m=q.length;l<m;l++)for(h=q[l];h.n;){if(d){if(h.f){n=0;for(e=h.f.length;n<e;n++)if(h.f[n]==d){h.f.splice(n,1);break}!h.f.length&&delete h.f}for(k in h.n)if(h.n.hasOwnProperty(k)&&
h.n[k].f){f=h.n[k].f;n=0;for(e=f.length;n<e;n++)if(f[n]==d){f.splice(n,1);break}!f.length&&delete h.n[k].f}}else for(k in delete h.f,h.n)h.n.hasOwnProperty(k)&&h.n[k].f&&delete h.n[k].f;h=h.n}}else p._events=b={n:{}}};p.once=function(a,b){var c=function(){p.unbind(a,c);return b.apply(this,arguments)};return p.on(a,c)};p.version="0.4.2";p.toString=function(){return"You are running Eve 0.4.2"};"undefined"!=typeof module&&module.exports?module.exports=p:d||"undefined"==typeof define?f.eve=p:define("eve",
[],function(){return p})})(this,!0);(function(f,d,a){!a&&"function"===typeof define&&define.amd?define(["eve"],function(a){return d(f,a)}):d(f,f.eve)})(this,function(f,d){function a(b){var c,g;void 0===a._url&&(a._url="");if(a.is(b,"function"))return v?b():d.on("raphael.DOMload",b);if(a.is(b,n))return a._engine.create[K](a,b.splice(0,3+a.is(b[0],J))).add(b);c=Array.prototype.slice.call(arguments,0);return a.is(c[c.length-1],"function")?(g=c.pop(),v?g.call(a._engine.create[K](a,c)):d.on("raphael.DOMload",
function(){g.call(a._engine.create[K](a,c))})):a._engine.create[K](a,arguments)}function m(){return this.hex}function F(a,b){for(var c=[],g=0,d=a.length;d-2*!b>g;g+=2){var z=[{x:+a[g-2],y:+a[g-1]},{x:+a[g],y:+a[g+1]},{x:+a[g+2],y:+a[g+3]},{x:+a[g+4],y:+a[g+5]}];b?g?d-4==g?z[3]={x:+a[0],y:+a[1]}:d-2==g&&(z[2]={x:+a[0],y:+a[1]},z[3]={x:+a[2],y:+a[3]}):z[0]={x:+a[d-2],y:+a[d-1]}:d-4==g?z[3]=z[2]:g||(z[0]={x:+a[g],y:+a[g+1]});c.push(["C",(-z[0].x+6*z[1].x+z[2].x)/6,(-z[0].y+6*z[1].y+z[2].y)/6,(z[1].x+
6*z[2].x-z[3].x)/6,(z[1].y+6*z[2].y-z[3].y)/6,z[2].x,z[2].y])}return c}function c(a,b,c,g,d,z,w,E,e){null==e&&(e=1);e=(1<e?1:0>e?0:e)/2;for(var I=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],u=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,k=0;12>k;k++)var A=e*I[k]+e,f=A*(A*(-3*a+9*c-9*d+3*w)+6*a-12*c+6*d)-3*a+3*c,A=A*(A*(-3*b+9*g-9*z+3*E)+6*b-12*g+6*z)-3*b+3*g,h=h+u[k]*fa(f*f+A*A);return e*h}function l(a,b,g,d,z,w,E,e,I){if(!(0>I||
c(a,b,g,d,z,w,E,e)<I)){var u=.5,h=1-u,k;for(k=c(a,b,g,d,z,w,E,e,h);.01<$(k-I);)u/=2,h+=(k<I?1:-1)*u,k=c(a,b,g,d,z,w,E,e,h);return h}}function b(b,g,d){b=a._path2curve(b);g=a._path2curve(g);for(var z,w,E,e,I,u,h,k,A,f,D=d?0:[],l=0,n=b.length;l<n;l++)if(A=b[l],"M"==A[0])z=I=A[1],w=u=A[2];else{"C"==A[0]?(A=[z,w].concat(A.slice(1)),z=A[6],w=A[7]):(A=[z,w,z,w,I,u,I,u],z=I,w=u);for(var P=0,ib=g.length;P<ib;P++)if(f=g[P],"M"==f[0])E=h=f[1],e=k=f[2];else{"C"==f[0]?(f=[E,e].concat(f.slice(1)),E=f[6],e=f[7]):
(f=[E,e,E,e,h,k,h,k],E=h,e=k);var ka;var m=A,L=f;ka=d;var R=a.bezierBBox(m),v=a.bezierBBox(L);if(a.isBBoxIntersect(R,v)){for(var R=c.apply(0,m),v=c.apply(0,L),R=ta(~~(R/5),1),v=ta(~~(v/5),1),p=[],G=[],r={},B=ka?0:[],s=0;s<R+1;s++){var V=a.findDotsAtSegment.apply(a,m.concat(s/R));p.push({x:V.x,y:V.y,t:s/R})}for(s=0;s<v+1;s++)V=a.findDotsAtSegment.apply(a,L.concat(s/v)),G.push({x:V.x,y:V.y,t:s/v});for(s=0;s<R;s++)for(m=0;m<v;m++){var Ua=p[s],cc=p[s+1],L=G[m],V=G[m+1],Dc=.001>$(cc.x-Ua.x)?"y":"x",da=
.001>$(V.x-L.x)?"y":"x",M;M=Ua.x;var Na=Ua.y,Z=cc.x,q=cc.y,Kb=L.x,F=L.y,sa=V.x,t=V.y;if(ta(M,Z)<S(Kb,sa)||S(M,Z)>ta(Kb,sa)||ta(Na,q)<S(F,t)||S(Na,q)>ta(F,t))M=void 0;else{var wc=(M*q-Na*Z)*(Kb-sa)-(M-Z)*(Kb*t-F*sa),ba=(M*q-Na*Z)*(F-t)-(Na-q)*(Kb*t-F*sa),ea=(M-Z)*(F-t)-(Na-q)*(Kb-sa);if(ea){var wc=wc/ea,ba=ba/ea,ea=+wc.toFixed(2),N=+ba.toFixed(2);M=ea<+S(M,Z).toFixed(2)||ea>+ta(M,Z).toFixed(2)||ea<+S(Kb,sa).toFixed(2)||ea>+ta(Kb,sa).toFixed(2)||N<+S(Na,q).toFixed(2)||N>+ta(Na,q).toFixed(2)||N<+S(F,
t).toFixed(2)||N>+ta(F,t).toFixed(2)?void 0:{x:wc,y:ba}}else M=void 0}M&&r[M.x.toFixed(4)]!=M.y.toFixed(4)&&(r[M.x.toFixed(4)]=M.y.toFixed(4),Ua=Ua.t+$((M[Dc]-Ua[Dc])/(cc[Dc]-Ua[Dc]))*(cc.t-Ua.t),L=L.t+$((M[da]-L[da])/(V[da]-L[da]))*(V.t-L.t),0<=Ua&&1.001>=Ua&&0<=L&&1.001>=L&&(ka?B++:B.push({x:M.x,y:M.y,t1:S(Ua,1),t2:S(L,1)})))}ka=B}else ka=ka?0:[];if(d)D+=ka;else{R=0;for(v=ka.length;R<v;R++)ka[R].segment1=l,ka[R].segment2=P,ka[R].bez1=A,ka[R].bez2=f;D=D.concat(ka)}}}return D}function p(a,b,c,g,d,
z){null!=a?(this.a=+a,this.b=+b,this.c=+c,this.d=+g,this.e=+d,this.f=+z):(this.a=1,this.c=this.b=0,this.d=1,this.f=this.e=0)}function t(){return this.x+" "+this.y+" "+this.width+" × "+this.height}function s(a,b,c,g,d,z){function w(a,b){var c,g,d,Bc;d=a;for(g=0;8>g;g++){Bc=((I*d+e)*d+E)*d-a;if($(Bc)<b)return d;c=(3*I*d+2*e)*d+E;if(1E-6>$(c))break;d-=Bc/c}c=0;g=1;d=a;if(d<c)return c;if(d>g)return g;for(;c<g;){Bc=((I*d+e)*d+E)*d;if($(Bc-a)<b)break;a>Bc?c=d:g=d;d=(g-c)/2+c}return d}var E=3*b,e=3*(g-b)-
E,I=1-E-e,u=3*c,h=3*(d-c)-u,k=1-u-h;return function(a,b){var c=w(a,b);return((k*c+h)*c+u)*c}(a,1/(200*z))}function e(a,b){var c=[],g={};this.ms=b;this.times=1;if(a){for(var d in a)a.hasOwnProperty(d)&&(g[L(d)]=a[d],c.push(L(d)));c.sort(eb)}this.anim=g;this.top=c[c.length-1];this.percents=c}function h(b,c,g,w,E,e){g=L(g);var h,k,A,f,D,l,n=b.ms,P={},ib={},m={};if(w)for(l=0,v=bb.length;l<v;l++){var R=bb[l];if(R.el.id==c.id&&R.anim==b){R.percent!=g?(bb.splice(l,1),A=1):k=R;c.attr(R.totalOrigin);break}}else w=
+ib;l=0;for(var v=b.percents.length;l<v;l++)if(b.percents[l]==g||b.percents[l]>w*b.top){g=b.percents[l];D=b.percents[l-1]||0;n=n/b.top*(g-D);f=b.percents[l+1];h=b.anim[g];break}else w&&c.attr(b.anim[b.percents[l]]);if(h){if(k)k.initstatus=w,k.start=new Date-k.ms*w;else{for(var G in h)if(h.hasOwnProperty(G)&&(Ib.hasOwnProperty(G)||c.ca[G]))switch(P[G]=c.attr(G),null==P[G]&&(P[G]=rb[G]),ib[G]=h[G],Ib[G]){case J:m[G]=(ib[G]-P[G])/n;break;case "colour":P[G]=a.getRGB(P[G]);l=a.getRGB(ib[G]);m[G]={r:(l.r-
P[G].r)/n,g:(l.g-P[G].g)/n,b:(l.b-P[G].b)/n};break;case "path":l=z(P[G],ib[G]);R=l[1];P[G]=l[0];m[G]=[];l=0;for(v=P[G].length;l<v;l++){m[G][l]=[0];for(var r=1,B=P[G][l].length;r<B;r++)m[G][l][r]=(R[l][r]-P[G][l][r])/n}break;case "transform":l=c._;if(v=ka(l[G],ib[G]))for(P[G]=v.from,ib[G]=v.to,m[G]=[],m[G].real=!0,l=0,v=P[G].length;l<v;l++)for(m[G][l]=[P[G][l][0]],r=1,B=P[G][l].length;r<B;r++)m[G][l][r]=(ib[G][l][r]-P[G][l][r])/n;else v=c.matrix||new p,l={_:{transform:l.transform},getBBox:function(){return c.getBBox(1)}},
P[G]=[v.a,v.b,v.c,v.d,v.e,v.f],I(l,ib[G]),ib[G]=l._.transform,m[G]=[(l.matrix.a-v.a)/n,(l.matrix.b-v.b)/n,(l.matrix.c-v.c)/n,(l.matrix.d-v.d)/n,(l.matrix.e-v.e)/n,(l.matrix.f-v.f)/n];break;case "csv":v=u(h[G]).split(gb);R=u(P[G]).split(gb);if("clip-rect"==G)for(P[G]=R,m[G]=[],l=R.length;l--;)m[G][l]=(v[l]-P[G][l])/n;ib[G]=v;break;default:for(v=[].concat(h[G]),R=[].concat(P[G]),m[G]=[],l=c.ca[G].length;l--;)m[G][l]=((v[l]||0)-(R[l]||0))/n}l=h.easing;G=a.easing_formulas[l];if(!G)if((G=u(l).match(Ra))&&
5==G.length){var V=G;G=function(a){return s(a,+V[1],+V[2],+V[3],+V[4],n)}}else G=sb;l=h.start||b.start||+new Date;R={anim:b,percent:g,timestamp:l,start:l+(b.del||0),status:0,initstatus:w||0,stop:!1,ms:n,easing:G,from:P,diff:m,to:ib,el:c,callback:h.callback,prev:D,next:f,repeat:e||b.times,origin:c.attr(),totalOrigin:E};bb.push(R);if(w&&!k&&!A&&(R.stop=!0,R.start=new Date-n*w,1==bb.length))return Tc();A&&(R.start=new Date-R.ms*w);1==bb.length&&Zc(Tc)}d("raphael.anim.start."+c.id,c,b)}}function k(a){for(var b=
0;b<bb.length;b++)bb[b].el.paper==a&&bb.splice(b--,1)}a.upgrade="1.0.0";a.version="2.1.0";a.eve=d;C=a;var v,K="apply",J="number",n="array",N=Array.prototype.slice,B=Array.prototype.splice,U=function(){return function(){}.hasOwnProperty("prototype")}(),r={doc:document,win:f},ga=Object.prototype.hasOwnProperty.call(r.win,"Raphael"),X=r.win.Raphael,aa=r.doc,W=r.win,ya=a.supportsTouch="createTouch"in aa,va=a.supportsOnlyTouch=ya&&!(W.navigator.maxTouchPoints||W.navigator.msMaxTouchPoints),za=function(){};
a.ca=a.customAttributes=za.prototype;var ja=function(){this.ca=this.customAttributes=new za;this._CustomAttributes=function(){};this._CustomAttributes.prototype=this.ca;this._elementsById={};this.id=a._oid++;d("raphael.new",this)},O=a.fn=ja.prototype=a.prototype,na={circle:1,rect:1,path:1,ellipse:1,text:1,image:1,group:1},ma="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel dragstart dragmove dragend".split(" "),M=a._touchMap={mousedown:"touchstart",
mousemove:"touchmove",mouseup:"touchend"},T=a._dragEventMap={dragstart:"mousedown",dragmove:"mousemove",dragend:"mouseup"},u=W.String,L=W.parseFloat,da=W.parseInt,sa=W.Math,ta=sa.max,S=sa.min,$=sa.abs,oa=sa.pow,ia=sa.cos,Ea=sa.sin,fa=sa.sqrt,La=sa.round,Ba=sa.PI,ha=Ba/180,Fa=180/Ba,fb=u.prototype.toLowerCase,Xa=u.prototype.toUpperCase,xa=W.Object.prototype.toString,gb=/[, ]+/,Sa=/\{(\d+)\}/g;a._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var Ia=/^\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,
Ra=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Da=/[\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]*/,pb=/,?([achlmqrstvxz]),?/gi,Lb=/([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,
Ub=/([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,Mb=/(-?\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;
a._radial_gradient=/^x?r(?:\(([^\)]*?)\))?/;var vb={NaN:1,Infinity:1,"-Infinity":1},Eb={hs:1,rg:1},rb=a._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},Ib=a._availableAnimAttrs={blur:J,"clip-rect":"csv","clip-path":"path",cx:J,cy:J,fill:"colour","fill-opacity":J,"font-size":J,height:J,opacity:J,path:"path",r:J,rx:J,ry:J,stroke:"colour","stroke-opacity":J,"stroke-width":J,transform:"transform",width:J,
x:J,y:J},tb={},eb=function(a,b){return L(a)-L(b)},Tb=function(){},sb=function(a){return a},Qb=a._rectPath=function(a,b,c,g,d){return d?[["M",a+d,b],["l",c-2*d,0],["a",d,d,0,0,1,d,d],["l",0,g-2*d],["a",d,d,0,0,1,-d,d],["l",2*d-c,0],["a",d,d,0,0,1,-d,-d],["l",0,2*d-g],["a",d,d,0,0,1,d,-d],["z"]]:[["M",a,b],["l",c,0],["l",0,g],["l",-c,0],["z"]]},cb=function(a,b,c,d){null==d&&(d=c);return[["M",a,b],["m",0,-d],["a",c,d,0,1,1,0,2*d],["a",c,d,0,1,1,0,-2*d],["z"]]},A=a._getPath={group:function(){return!1},
path:function(a){return a.attr("path")},circle:function(a){a=a.attrs;return cb(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return cb(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return Qb(a.x,a.y,a.width,a.height,a.r)},image:function(a){a=a.attrs;return Qb(a.x,a.y,a.width,a.height)},text:function(a){a=a._getBBox();return Qb(a.x,a.y,a.width,a.height)}},G=a.mapPath=function(a,b){if(!b)return a;var c,d,g,w,E,e,I;a=z(a);g=0;for(E=a.length;g<E;g++)for(I=a[g],w=1,e=I.length;w<e;w+=2)c=b.x(I[w],I[w+
1]),d=b.y(I[w],I[w+1]),I[w]=c,I[w+1]=d;return a};a.pick=function(){for(var a,b=0,c=arguments.length;b<c;b+=1)if((a=arguments[b])||!1===a||0===a)return a};var D=a._lastArgIfGroup=function(b,c){var d=b.length-1,g=b[d];if(g&&g.constructor===a.el.constructor&&"group"===g.type)return c&&(b[d]=void 0,delete b[d],B.call(b,d,1)),g},V=a._serializeArgs=function(b){var c=b[0],d,g;if(a.is(c,"object")&&!a.is(c,"array")&&"group"!==c.type)for(d=c,c.path&&(c=c.path)&&!a.is(c,"string")&&a.is(c[0],n),c=1,g=arguments.length;c<
g;c+=2)d[arguments[c]]||(d[arguments[c]]=arguments[c+1]);else for(d={},c=1,g=arguments.length;c<g;c+=2)d[arguments[c]]=b[(c-1)/2]||arguments[c+1];return d},Z=a.merge=function(a,b,c,d,g){var z,w,E,e;g?(d.push(a),g.push(b)):(d=[a],g=[b]);if(b instanceof Array)for(z=0;z<b.length;z+=1){try{w=a[z],E=b[z]}catch(I){continue}if("object"!==typeof E)c&&void 0===E||(a[z]=E);else{if(null===w||"object"!==typeof w)w=a[z]=E instanceof Array?[]:{};e=checkCyclicRef(E,g);-1!==e?w=a[z]=d[e]:Z(w,E,c,d,g)}}else for(z in b){try{w=
a[z],E=b[z]}catch(u){continue}if(null!==E&&"object"===typeof E)if(e=xa.call(E),"[object Object]"===e){if(null===w||"object"!==typeof w)w=a[z]={};e=checkCyclicRef(E,g);-1!==e?w=a[z]=d[e]:Z(w,E,c,d,g)}else"[object Array]"===e?(null!==w&&w instanceof Array||(w=a[z]=[]),e=checkCyclicRef(E,g),-1!==e?w=a[z]=d[e]:Z(w,E,c,d,g)):a[z]=E;else a[z]=E}return a};a.extend=function(a,b,c){if("object"!==typeof a&&"object"!==typeof b)return null;if("object"!==typeof b||null===b)return a;"object"!==typeof a&&(a=b instanceof
Array?[]:{});Z(a,b,c);return a};var ba=a.is=function(a,b){b=fb.call(b);return"finite"==b?!vb.hasOwnProperty(+a):b==n?a instanceof Array:"object"!==b||void 0!==a&&null!==a?"null"==b&&null===a||b==typeof a&&null!==a||"object"==b&&a===Object(a)||"array"==b&&Array.isArray&&Array.isArray(a)||xa.call(a).slice(8,-1).toLowerCase()==b:!1};a.createUUID=function(a,b){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,b).toUpperCase()}}(/[xy]/g,function(a){var b=16*sa.random()|0;return("x"==
a?b:b&3|8).toString(16)});var Q=a.clone=U?function(a){if(Object(a)!==a)return a;var b=new a.constructor,c;for(c in a)"prototype"!==c&&a.hasOwnProperty(c)&&(b[c]=Q(a[c]));return b}:function(a){if(Object(a)!==a)return a;var b=new a.constructor,c;for(c in a)a.hasOwnProperty(c)&&(b[c]=Q(a[c]));return b};a._g=r;a.type=W.ENABLE_RED_CANVAS&&(W.CanvasRenderingContext2D||aa.createElement("canvas").getContext)?"CANVAS":W.SVGAngle||aa.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure",
"1.1")?"SVG":"VML";if("VML"==a.type){var pa=aa.createElement("div"),ua;pa.innerHTML='<v:shape adj="1"/>';ua=pa.firstChild;ua.style.behavior="url(#default#VML)";if(!ua||"object"!=typeof ua.adj)return a.type="";pa=null}a.svg=!((a.vml="VML"==a.type)||(a.canvas="CANVAS"==a.type));a._Paper=ja;a._id=0;a._oid=0;a.angle=function(b,c,d,g,z,w){return null==z?(b-=d,c-=g,b||c?(sa.atan2(-c,-b)*Fa+540)%360:0):a.angle(b,c,z,w)-a.angle(d,g,z,w)};a.rad=function(a){return a%360*ha};a.deg=function(a){return a*Fa%360};
a.snapTo=function(a,b,c){var d;ba(c,"finite")||(c=10);if(ba(a,n))for(d=a.length;d--;){if($(a[d]-b)<=c)return a[d]}else{a=+a;d=b%a;if(d<c)return b-d;if(d>a-c)return b-d+a}return b};a.setWindow=function(b){d("raphael.setWindow",a,r.win,b);W=r.win=b;aa=r.doc=r.win.document;a._engine.initWin&&a._engine.initWin(r.win)};var Ta=function(b){if(a.vml){var c=/^\s+|\s+$/g,d;try{var g=new ActiveXObject("htmlfile");g.write("<body>");g.close();d=g.body}catch(z){d=createPopup().document.body}var w=d.createTextRange();
Ta=ca(function(a){try{d.style.color=u(a).replace(c,"");var b=w.queryCommandValue("ForeColor");return"#"+("000000"+((b&255)<<16|b&65280|(b&16711680)>>>16).toString(16)).slice(-6)}catch(g){return"none"}})}else{var E=r.doc.createElement("i");E.title="Raphaël Colour Picker";E.style.display="none";r.doc.body.appendChild(E);Ta=ca(function(a){E.style.color=a;return r.doc.defaultView.getComputedStyle(E,"").getPropertyValue("color")})}return Ta(b)},db=function(){return"hsb("+[this.h,this.s,this.b]+")"},wa=
function(){return"hsl("+[this.h,this.s,this.l]+")"},ab=function(){return this.hex},Aa=function(b,c,d){null==c&&ba(b,"object")&&"r"in b&&"g"in b&&"b"in b&&(d=b.b,c=b.g,b=b.r);null==c&&ba(b,"string")&&(d=a.getRGB(b),b=d.r,c=d.g,d=d.b);if(1<b||1<c||1<d)b/=255,c/=255,d/=255;return[b,c,d]},la=function(b,c,d,g){var z={r:b*=255,g:c*=255,b:d*=255,hex:a.rgb(b,c,d),toString:ab};ba(g,"finite")&&(z.opacity=g);return z};a.color=function(b){var c;a.is(b,"object")&&"h"in b&&"s"in b&&"b"in b?(c=a.hsb2rgb(b),b.r=
c.r,b.g=c.g,b.b=c.b,b.hex=c.hex):a.is(b,"object")&&"h"in b&&"s"in b&&"l"in b?(c=a.hsl2rgb(b),b.r=c.r,b.g=c.g,b.b=c.b,b.hex=c.hex):(a.is(b,"string")&&(b=a.getRGB(b)),a.is(b,"object")&&"r"in b&&"g"in b&&"b"in b?(c=a.rgb2hsl(b),b.h=c.h,b.s=c.s,b.l=c.l,c=a.rgb2hsb(b),b.v=c.b):(b={hex:"none"},b.r=b.g=b.b=b.h=b.s=b.v=b.l=-1));b.toString=ab;return b};a.hsb2rgb=function(a,b,c,d){this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(c=a.b,b=a.s,a=a.h,d=a.o);var g,z,w;a=360*a%360/60;w=c*b;b=w*(1-$(a%2-1));c=g=z=
c-w;a=~~a;c+=[w,b,0,0,b,w][a];g+=[b,w,w,b,0,0][a];z+=[0,0,b,w,w,b][a];return la(c,g,z,d)};a.hsl2rgb=function(a,b,c,d){this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(c=a.l,b=a.s,a=a.h);if(1<a||1<b||1<c)a/=360,b/=100,c/=100;var g,z,w;a=360*a%360/60;w=2*b*(.5>c?c:1-c);b=w*(1-$(a%2-1));c=g=z=c-w/2;a=~~a;c+=[w,b,0,0,b,w][a];g+=[b,w,w,b,0,0][a];z+=[0,0,b,w,w,b][a];return la(c,g,z,d)};a.rgb2hsb=function(a,b,c){c=Aa(a,b,c);a=c[0];b=c[1];c=c[2];var d,g;d=ta(a,b,c);g=d-S(a,b,c);a=((0==g?null:d==a?(b-c)/g:
d==b?(c-a)/g+2:(a-b)/g+4)+360)%6*60/360;return{h:a,s:0==g?0:g/d,b:d,toString:db}};a.rgb2hsl=function(a,b,c){c=Aa(a,b,c);a=c[0];b=c[1];c=c[2];var d,g,z;d=ta(a,b,c);g=S(a,b,c);z=d-g;a=((0==z?null:d==a?(b-c)/z:d==b?(c-a)/z+2:(a-b)/z+4)+360)%6*60/360;d=(d+g)/2;return{h:a,s:0==z?0:.5>d?z/(2*d):z/(2-2*d),l:d,toString:wa}};a._path2string=function(){return this.join(",").replace(pb,"$1")};var ca=a._cacher=function(a,b,c){function d(){var g=N.call(arguments,0),z=g.join("␀"),w=d.cache=d.cache||{},E=d.count=
d.count||[];if(w.hasOwnProperty(z)){a:for(var g=E,E=z,e=0,I=g.length;e<I;e++)if(g[e]===E){g.push(g.splice(e,1)[0]);break a}return c?c(w[z]):w[z]}1E3<=E.length&&delete w[E.shift()];E.push(z);w[z]=a[K](b,g);return c?c(w[z]):w[z]}return d};a._preload=function(a,b){var c=aa.createElement("img");c.style.cssText="position:absolute;left:-9999em;top:-9999em";c.onload=function(){b.call(this);this.onload=null;aa.body.removeChild(this)};c.onerror=function(){aa.body.removeChild(this)};aa.body.appendChild(c);
c.src=a};a.getRGB=ca(function(b){var c,d,g,z,w;b&&ba(b,"object")&&"opacity"in b&&(c=b.opacity);if(!b||(b=u(b)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:m};if("none"==b)return{r:-1,g:-1,b:-1,hex:"none",toString:m};!Eb.hasOwnProperty(b.toLowerCase().substring(0,2))&&"#"!==b.charAt()&&(b=Ta(b));if(b=b.match(Ia)){b[2]&&(z=da(b[2].substring(5),16),g=da(b[2].substring(3,5),16),d=da(b[2].substring(1,3),16));b[3]&&(z=da((w=b[3].charAt(3))+w,16),g=da((w=b[3].charAt(2))+w,16),d=da((w=
b[3].charAt(1))+w,16));b[4]&&(w=b[4].split(Da),d=L(w[0]),"%"==w[0].slice(-1)&&(d*=2.55),g=L(w[1]),"%"==w[1].slice(-1)&&(g*=2.55),z=L(w[2]),"%"==w[2].slice(-1)&&(z*=2.55),"rgba"==b[1].toLowerCase().slice(0,4)&&(c=L(w[3])),w[3]&&"%"==w[3].slice(-1)&&(c/=100));if(b[5])return w=b[5].split(Da),d=L(w[0]),"%"==w[0].slice(-1)&&(d*=2.55),g=L(w[1]),"%"==w[1].slice(-1)&&(g*=2.55),z=L(w[2]),"%"==w[2].slice(-1)&&(z*=2.55),"deg"!=w[0].slice(-3)&&"°"!=w[0].slice(-1)||(d/=360),"hsba"==b[1].toLowerCase().slice(0,
4)&&(c=L(w[3])),w[3]&&"%"==w[3].slice(-1)&&(c/=100),a.hsb2rgb(d,g,z,c);if(b[6])return w=b[6].split(Da),d=L(w[0]),"%"==w[0].slice(-1)&&(d*=2.55),g=L(w[1]),"%"==w[1].slice(-1)&&(g*=2.55),z=L(w[2]),"%"==w[2].slice(-1)&&(z*=2.55),"deg"!=w[0].slice(-3)&&"°"!=w[0].slice(-1)||(d/=360),"hsla"==b[1].toLowerCase().slice(0,4)&&(c=L(w[3])),w[3]&&"%"==w[3].slice(-1)&&(c/=100),a.hsl2rgb(d,g,z,c);b={r:d,g:g,b:z,toString:m};b.hex="#"+(16777216|z|g<<8|d<<16).toString(16).slice(1);a.is(c,"finite")&&(b.opacity=c);return b}return{r:-1,
g:-1,b:-1,hex:"none",error:1,toString:m}},a);a.tintshade=ca(function(b,c){var d=a.getRGB(b),g;g=255;0>c&&(c*=-1,g=0);1<c&&(c=1);g=0===c?d:{r:g-(g-d.r)*c,g:g-(g-d.g)*c,b:g-(g-d.b)*c,toString:m};g.hex=a.rgb(g.r,g.g,g.b);d.error&&(g.error=d.error);"opacity"in d?(g.rgba="rgba("+[g.r,g.g,g.b,d.opacity].join()+")",g.opacity=d.opacity):g.rgba="rgb("+[g.r,g.g,g.b].join()+")";return g},a);a.hsb=ca(function(b,c,d){return a.hsb2rgb(b,c,d).hex});a.hsl=ca(function(b,c,d){return a.hsl2rgb(b,c,d).hex});a.rgb=ca(function(a,
b,c){return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)});a.getColor=function(a){a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||.75};var b=this.hsb2rgb(a.h,a.s,a.b);a.h+=.075;1<a.h&&(a.h=0,a.s-=.2,0>=a.s&&(this.getColor.start={h:0,s:1,b:a.b}));return b.hex};a.getColor.reset=function(){delete this.start};a.parsePathString=function(b){if(!b)return null;var c=Ha(b);if(c.arr)return Va(c.arr);var d={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},g=[];a.is(b,n)&&a.is(b[0],n)&&(g=Va(b));g.length||
u(b).replace(Lb,function(a,b,c){var z=[];a=b.toLowerCase();c.replace(Mb,function(a,b){b&&z.push(+b)});"m"==a&&2<z.length&&(g.push([b].concat(z.splice(0,2))),a="l",b="m"==b?"l":"L");if("r"==a)g.push([b].concat(z));else for(;z.length>=d[a]&&(g.push([b].concat(z.splice(0,d[a]))),d[a]););});g.toString=a._path2string;c.arr=Va(g);return g};a.parseTransformString=ca(function(b){if(!b)return null;var c=[];a.is(b,n)&&a.is(b[0],n)&&(c=Va(b));c.length||u(b).replace(Ub,function(a,b,d){var g=[];fb.call(b);d.replace(Mb,
function(a,b){b&&g.push(+b)});c.push([b].concat(g))});c.toString=a._path2string;return c});var Ha=function(a){var b=Ha.ps=Ha.ps||{};b[a]?b[a].sleep=100:b[a]={sleep:100};setTimeout(function(){for(var c in b)b.hasOwnProperty(c)&&c!=a&&(b[c].sleep--,!b[c].sleep&&delete b[c])});return b[a]};a.findDotsAtSegment=function(a,b,c,d,g,z,w,E,e){var I=1-e,u=oa(I,3),h=oa(I,2),k=e*e,A=k*e,l=u*a+3*h*e*c+3*I*e*e*g+A*w,u=u*b+3*h*e*d+3*I*e*e*z+A*E,h=a+2*e*(c-a)+k*(g-2*c+a),A=b+2*e*(d-b)+k*(z-2*d+b),f=c+2*e*(g-c)+k*
(w-2*g+c),k=d+2*e*(z-d)+k*(E-2*z+d);a=I*a+e*c;b=I*b+e*d;g=I*g+e*w;z=I*z+e*E;E=90-180*sa.atan2(h-f,A-k)/Ba;(h>f||A<k)&&(E+=180);return{x:l,y:u,m:{x:h,y:A},n:{x:f,y:k},start:{x:a,y:b},end:{x:g,y:z},alpha:E}};a.bezierBBox=function(b,c,d,g,z,w,E,e){a.is(b,"array")||(b=[b,c,d,g,z,w,E,e]);b=Bb.apply(null,b);return{x:b.min.x,y:b.min.y,x2:b.max.x,y2:b.max.y,width:b.max.x-b.min.x,height:b.max.y-b.min.y}};a.isPointInsideBBox=function(a,b,c){return b>=a.x&&b<=a.x2&&c>=a.y&&c<=a.y2};a.isBBoxIntersect=function(b,
c){var d=a.isPointInsideBBox;return d(c,b.x,b.y)||d(c,b.x2,b.y)||d(c,b.x,b.y2)||d(c,b.x2,b.y2)||d(b,c.x,c.y)||d(b,c.x2,c.y)||d(b,c.x,c.y2)||d(b,c.x2,c.y2)||(b.x<c.x2&&b.x>c.x||c.x<b.x2&&c.x>b.x)&&(b.y<c.y2&&b.y>c.y||c.y<b.y2&&c.y>b.y)};a.pathIntersection=function(a,c){return b(a,c)};a.pathIntersectionNumber=function(a,c){return b(a,c,1)};a.isPointInsidePath=function(c,d,g){var z=a.pathBBox(c);return a.isPointInsideBBox(z,d,g)&&(1==b(c,[["M",d,g],["H",z.x2+10]],1)%2||1==b(c,[["M",d,g],["V",z.y2+10]],
1)%2)};a._removedFactory=function(a){return function(){d("raphael.log",null,"Raphaël: you are calling to method “"+a+"” of removed object",a)}};var Ga=a.pathBBox=function(a){var b=Ha(a);if(b.bbox)return b.bbox;if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};a=z(a);for(var c=0,d=0,g=[],w=[],E,e=0,I=a.length;e<I;e++)E=a[e],"M"==E[0]?(c=E[1],d=E[2],g.push(c),w.push(d)):(c=Bb(c,d,E[1],E[2],E[3],E[4],E[5],E[6]),g=g.concat(c.min.x,c.max.x),w=w.concat(c.min.y,c.max.y),c=E[5],d=E[6]);a=S[K](0,g);E=S[K](0,
w);g=ta[K](0,g);w=ta[K](0,w);w={x:a,y:E,x2:g,y2:w,width:g-a,height:w-E};b.bbox=Q(w);return w},Va=function(b){b=Q(b);b.toString=a._path2string;return b},Rb=a._pathToRelative=function(b){var c=Ha(b);if(c.rel)return Va(c.rel);a.is(b,n)&&a.is(b&&b[0],n)||(b=a.parsePathString(b));var d=[],g=0,z=0,w=0,E=0,e=0;"M"==b[0][0]&&(g=b[0][1],z=b[0][2],w=g,E=z,e++,d.push(["M",g,z]));for(var I=b.length;e<I;e++){var u=d[e]=[],h=b[e];if(h[0]!=fb.call(h[0]))switch(u[0]=fb.call(h[0]),u[0]){case "a":u[1]=h[1];u[2]=h[2];
u[3]=h[3];u[4]=h[4];u[5]=h[5];u[6]=+(h[6]-g).toFixed(3);u[7]=+(h[7]-z).toFixed(3);break;case "v":u[1]=+(h[1]-z).toFixed(3);break;case "m":w=h[1],E=h[2];default:for(var k=1,A=h.length;k<A;k++)u[k]=+(h[k]-(k%2?g:z)).toFixed(3)}else for(d[e]=[],"m"==h[0]&&(w=h[1]+g,E=h[2]+z),u=0,k=h.length;u<k;u++)d[e][u]=h[u];h=d[e].length;switch(d[e][0]){case "z":g=w;z=E;break;case "h":g+=+d[e][h-1];break;case "v":z+=+d[e][h-1];break;default:g+=+d[e][h-2],z+=+d[e][h-1]}}d.toString=a._path2string;c.rel=Va(d);return d},
jb=a._pathToAbsolute=function(b){var c=Ha(b),d;if(c.abs)return Va(c.abs);a.is(b,n)&&a.is(b&&b[0],n)||(b=a.parsePathString(b));if(!b||!b.length)return d=["M",0,0],d.toString=a._path2string,d;var g=0,z=0,w=0,E=0,e=0;d=[];"M"==b[0][0]&&(g=+b[0][1],z=+b[0][2],w=g,E=z,e++,d[0]=["M",g,z]);for(var I=3==b.length&&"M"==b[0][0]&&"R"==b[1][0].toUpperCase()&&"Z"==b[2][0].toUpperCase(),u,h=e,k=b.length;h<k;h++){d.push(e=[]);u=b[h];if(u[0]!=Xa.call(u[0]))switch(e[0]=Xa.call(u[0]),e[0]){case "A":e[1]=u[1];e[2]=
u[2];e[3]=u[3];e[4]=u[4];e[5]=u[5];e[6]=+(u[6]+g);e[7]=+(u[7]+z);break;case "V":e[1]=+u[1]+z;break;case "H":e[1]=+u[1]+g;break;case "R":for(var A=[g,z].concat(u.slice(1)),l=2,f=A.length;l<f;l++)A[l]=+A[l]+g,A[++l]=+A[l]+z;d.pop();d=d.concat(F(A,I));break;case "M":w=+u[1]+g,E=+u[2]+z;default:for(l=1,f=u.length;l<f;l++)e[l]=+u[l]+(l%2?g:z)}else if("R"==u[0])A=[g,z].concat(u.slice(1)),d.pop(),d=d.concat(F(A,I)),e=["R"].concat(u.slice(-2));else for(A=0,l=u.length;A<l;A++)e[A]=u[A];switch(e[0]){case "Z":g=
w;z=E;break;case "H":g=e[1];break;case "V":z=e[1];break;case "M":w=e[e.length-2],E=e[e.length-1];default:g=e[e.length-2],z=e[e.length-1]}}d.toString=a._path2string;c.abs=Va(d);return d},pc=function(a,b,c,d){return[a,b,c,d,c,d]},ub=function(a,b,c,d,g,z){var w=1/3,e=2/3;return[w*a+e*c,w*b+e*d,w*g+e*c,w*z+e*d,g,z]},qc=function(a,b,c,d,g,z,w,e,E,I){var u=120*Ba/180,h=ha*(+g||0),k=[],A,l=ca(function(a,b,c){var d=a*ia(c)-b*Ea(c);a=a*Ea(c)+b*ia(c);return{x:d,y:a}});if(I)P=I[0],A=I[1],z=I[2],f=I[3];else{A=
l(a,b,-h);a=A.x;b=A.y;A=l(e,E,-h);e=A.x;E=A.y;ia(ha*g);Ea(ha*g);A=(a-e)/2;P=(b-E)/2;f=A*A/(c*c)+P*P/(d*d);1<f&&(f=fa(f),c*=f,d*=f);var f=c*c,D=d*d,f=(z==w?-1:1)*fa($((f*D-f*P*P-D*A*A)/(f*P*P+D*A*A)));z=f*c*P/d+(a+e)/2;var f=f*-d*A/c+(b+E)/2,P=sa.asin(((b-f)/d).toFixed(9));A=sa.asin(((E-f)/d).toFixed(9));P=a<z?Ba-P:P;A=e<z?Ba-A:A;0>P&&(P=2*Ba+P);0>A&&(A=2*Ba+A);w&&P>A&&(P-=2*Ba);!w&&A>P&&(A-=2*Ba)}if($(A-P)>u){var k=A,D=e,n=E;A=P+u*(w&&A>P?1:-1);e=z+c*ia(A);E=f+d*Ea(A);k=qc(e,E,c,d,g,0,w,D,n,[A,k,
z,f])}z=A-P;g=ia(P);u=Ea(P);w=ia(A);A=Ea(A);z=sa.tan(z/4);c=4/3*c*z;z*=4/3*d;d=[a,b];a=[a+c*u,b-z*g];b=[e+c*A,E-z*w];e=[e,E];a[0]=2*d[0]-a[0];a[1]=2*d[1]-a[1];if(I)return[a,b,e].concat(k);k=[a,b,e].concat(k).join().split(",");I=[];e=0;for(E=k.length;e<E;e++)I[e]=e%2?l(k[e-1],k[e],h).y:l(k[e],k[e+1],h).x;return I},Pa=function(a,b,c,d,g,z,w,e,E){var I=1-E;return{x:oa(I,3)*a+3*oa(I,2)*E*c+3*I*E*E*g+oa(E,3)*w,y:oa(I,3)*b+3*oa(I,2)*E*d+3*I*E*E*z+oa(E,3)*e}},Bb=ca(function(a,b,c,d,g,z,w,e){var E=g-2*c+
a-(w-2*g+c),I=2*(c-a)-2*(g-c),u=a-c,h=(-I+fa(I*I-4*E*u))/2/E,E=(-I-fa(I*I-4*E*u))/2/E,k=[b,e],A=[a,w];"1e12"<$(h)&&(h=.5);"1e12"<$(E)&&(E=.5);0<h&&1>h&&(h=Pa(a,b,c,d,g,z,w,e,h),A.push(h.x),k.push(h.y));0<E&&1>E&&(h=Pa(a,b,c,d,g,z,w,e,E),A.push(h.x),k.push(h.y));E=z-2*d+b-(e-2*z+d);I=2*(d-b)-2*(z-d);u=b-d;h=(-I+fa(I*I-4*E*u))/2/E;E=(-I-fa(I*I-4*E*u))/2/E;"1e12"<$(h)&&(h=.5);"1e12"<$(E)&&(E=.5);0<h&&1>h&&(h=Pa(a,b,c,d,g,z,w,e,h),A.push(h.x),k.push(h.y));0<E&&1>E&&(h=Pa(a,b,c,d,g,z,w,e,E),A.push(h.x),
k.push(h.y));return{min:{x:S[K](0,A),y:S[K](0,k)},max:{x:ta[K](0,A),y:ta[K](0,k)}}}),z=a._path2curve=ca(function(a,b){var c=!b&&Ha(a);if(!b&&c.curve)return Va(c.curve);var d=jb(a),g=b&&jb(b),z={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},w={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},e=function(a,b){var c,d;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];a[0]in{T:1,Q:1}||(b.qx=b.qy=null);switch(a[0]){case "M":b.X=a[1];b.Y=a[2];break;case "A":a=["C"].concat(qc[K](0,[b.x,b.y].concat(a.slice(1))));break;case "S":c=
b.x+(b.x-(b.bx||b.x));d=b.y+(b.y-(b.by||b.y));a=["C",c,d].concat(a.slice(1));break;case "T":b.qx=b.x+(b.x-(b.qx||b.x));b.qy=b.y+(b.y-(b.qy||b.y));a=["C"].concat(ub(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case "Q":b.qx=a[1];b.qy=a[2];a=["C"].concat(ub(b.x,b.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"].concat(pc(b.x,b.y,a[1],a[2]));break;case "H":a=["C"].concat(pc(b.x,b.y,a[1],b.y));break;case "V":a=["C"].concat(pc(b.x,b.y,b.x,a[1]));break;case "Z":a=["C"].concat(pc(b.x,b.y,b.X,b.Y))}return a},E=function(a,
b){if(7<a[b].length){a[b].shift();for(var c=a[b];c.length;)a.splice(b++,0,["C"].concat(c.splice(0,6)));a.splice(b,1);h=ta(d.length,g&&g.length||0)}},I=function(a,b,c,z,w){a&&b&&"M"==a[w][0]&&"M"!=b[w][0]&&(b.splice(w,0,["M",z.x,z.y]),c.bx=0,c.by=0,c.x=a[w][1],c.y=a[w][2],h=ta(d.length,g&&g.length||0))},u=0,h=ta(d.length,g&&g.length||0);for(;u<h;u++){d[u]=e(d[u],z);E(d,u);g&&(g[u]=e(g[u],w));g&&E(g,u);I(d,g,z,w,u);I(g,d,w,z,u);var k=d[u],A=g&&g[u],l=k.length,f=g&&A.length;z.x=k[l-2];z.y=k[l-1];z.bx=
L(k[l-4])||z.x;z.by=L(k[l-3])||z.y;w.bx=g&&(L(A[f-4])||w.x);w.by=g&&(L(A[f-3])||w.y);w.x=g&&A[f-2];w.y=g&&A[f-1]}g||(c.curve=Va(d));return g?[d,g]:d},null,Va);a._parseDots=ca(function(b){for(var c=[],d=0,g=b.length;d<g;d++){var z={},w=b[d].match(/^([^:]*):?([\d\.]*)/);z.color=a.getRGB(w[1]);if(z.color.error)return null;z.opacity=z.color.opacity;z.color=z.color.hex;w[2]&&(z.offset=w[2]+"%");c.push(z)}d=1;for(g=c.length-1;d<g;d++)if(!c[d].offset){b=L(c[d-1].offset||0);w=0;for(z=d+1;z<g;z++)if(c[z].offset){w=
c[z].offset;break}w||(w=100,z=g);w=L(w);for(w=(w-b)/(z-d+1);d<z;d++)b+=w,c[d].offset=b+"%"}return c});var w=a._tear=function(a,b){a==b.top&&(b.top=a.prev);a==b.bottom&&(b.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)};a._tofront=function(a,b){if(b.top===a)return!1;w(a,b);a.next=null;a.prev=b.top;b.top.next=a;b.top=a;return!0};a._toback=function(a,b){if(b.bottom===a)return!1;w(a,b);a.next=b.bottom;a.prev=null;b.bottom.prev=a;b.bottom=a;return!0};a._insertafter=function(a,
b,c,d){w(a,c);a.parent=d;b===d.top&&(d.top=a);b.next&&(b.next.prev=a);a.next=b.next;a.prev=b;b.next=a};a._insertbefore=function(a,b,c,d){w(a,c);a.parent=d;b===d.bottom&&(d.bottom=a);b.prev&&(b.prev.next=a);a.prev=b.prev;b.prev=a;a.next=b};var E=a.toMatrix=function(a,b){var c=Ga(a),d={_:{transform:""},getBBox:function(){return c}};I(d,b);return d.matrix};a.transformPath=function(a,b){return G(a,E(a,b))};var I=a._extractTransform=function(b,c){if(null==c)return b._.transform;c=u(c).replace(/\.{3}|\u2026/g,
b._.transform||"");var d=a.parseTransformString(c),g=0,z=0,w=0,e=1,E=1,I=b._,w=new p;I.transform=d||[];if(d)for(var z=0,h=d.length;z<h;z++){var k=d[z],A=k.length,l=u(k[0]).toLowerCase(),f=k[0]!=l,P=f?w.invert():0,D;"t"==l&&3==A?f?(A=P.x(0,0),l=P.y(0,0),f=P.x(k[1],k[2]),P=P.y(k[1],k[2]),w.translate(f-A,P-l)):w.translate(k[1],k[2]):"r"==l?2==A?(D=D||b.getBBox(1),w.rotate(k[1],D.x+D.width/2,D.y+D.height/2),g+=k[1]):4==A&&(f?(f=P.x(k[2],k[3]),P=P.y(k[2],k[3]),w.rotate(k[1],f,P)):w.rotate(k[1],k[2],k[3]),
g+=k[1]):"s"==l?2==A||3==A?(D=D||b.getBBox(1),w.scale(k[1],k[A-1],D.x+D.width/2,D.y+D.height/2),e*=k[1],E*=k[A-1]):5==A&&(f?(f=P.x(k[3],k[4]),P=P.y(k[3],k[4]),w.scale(k[1],k[2],f,P)):w.scale(k[1],k[2],k[3],k[4]),e*=k[1],E*=k[2]):"m"==l&&7==A&&w.add(k[1],k[2],k[3],k[4],k[5],k[6]);I.dirtyT=1;b.matrix=w}b.matrix=w;I.sx=e;I.sy=E;I.deg=g;I.dx=z=w.e;I.dy=w=w.f;1==e&&1==E&&!g&&I.bbox?(I.bbox.x+=+z,I.bbox.y+=+w):I.dirtyT=1},g=function(a){var b=a[0];switch(b.toLowerCase()){case "t":return[b,0,0];case "m":return[b,
1,0,0,1,0,0];case "r":return 4==a.length?[b,0,a[2],a[3]]:[b,0];case "s":return 5==a.length?[b,1,1,a[3],a[4]]:3==a.length?[b,1,1]:[b,1]}},ka=a._equaliseTransform=function(b,c){c=u(c).replace(/\.{3}|\u2026/g,b);b=a.parseTransformString(b)||[];c=a.parseTransformString(c)||[];for(var d=ta(b.length,c.length),z=[],w=[],e=0,E,I,h,k;e<d;e++){h=b[e]||g(c[e]);k=c[e]||g(h);if(h[0]!=k[0]||"r"==h[0].toLowerCase()&&(h[2]!=k[2]||h[3]!=k[3])||"s"==h[0].toLowerCase()&&(h[3]!=k[3]||h[4]!=k[4]))return;z[e]=[];w[e]=
[];E=0;for(I=ta(h.length,k.length);E<I;E++)E in h&&(z[e][E]=h[E]),E in k&&(w[e][E]=k[E])}return{from:z,to:w}};a._getContainer=function(b,c,d,g){var z;z=null!=g||a.is(b,"object")?b:r.doc.getElementById(b);if(null!=z)return z.tagName?null==c?{container:z,width:z.style.pixelWidth||z.offsetWidth,height:z.style.pixelHeight||z.offsetHeight}:{container:z,width:c,height:d}:{container:1,x:b,y:c,width:d,height:g}};a.pathToRelative=Rb;a._engine={};a.path2curve=z;a.matrix=function(a,b,c,d,g,z){return new p(a,
b,c,d,g,z)};(function(b){function c(a){return a[0]*a[0]+a[1]*a[1]}function d(a){var b=fa(c(a));a[0]&&(a[0]/=b);a[1]&&(a[1]/=b)}b.add=function(a,b,c,d,g,z){var w=[[],[],[]],e=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]];b=[[a,c,g],[b,d,z],[0,0,1]];a&&a instanceof p&&(b=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;3>a;a++)for(c=0;3>c;c++){for(d=g=0;3>d;d++)g+=e[a][d]*b[d][c];w[a][c]=g}this.a=w[0][0];this.b=w[1][0];this.c=w[0][1];this.d=w[1][1];this.e=w[0][2];this.f=w[1][2]};b.invert=function(){var a=
this.a*this.d-this.b*this.c;return new p(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)};b.clone=function(){return new p(this.a,this.b,this.c,this.d,this.e,this.f)};b.translate=function(a,b){this.add(1,0,0,1,a,b)};b.scale=function(a,b,c,d){null==b&&(b=a);(c||d)&&this.add(1,0,0,1,c,d);this.add(a,0,0,b,0,0);(c||d)&&this.add(1,0,0,1,-c,-d)};b.rotate=function(b,c,d){b=a.rad(b);c=c||0;d=d||0;var g=+ia(b).toFixed(9);b=+Ea(b).toFixed(9);this.add(g,
b,-b,g,c,d);this.add(1,0,0,1,-c,-d)};b.x=function(a,b){return a*this.a+b*this.c+this.e};b.y=function(a,b){return a*this.b+b*this.d+this.f};b.get=function(a){return+this[u.fromCharCode(97+a)].toFixed(4)};b.toString=function(){return a.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()};b.toMatrixString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+
")"};b.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')"};b.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};b.split=function(){var b={};b.dx=this.e;b.dy=this.f;var g=[[this.a,this.c],[this.b,this.d]];b.scalex=fa(c(g[0]));d(g[0]);b.shear=g[0][0]*g[1][0]+g[0][1]*g[1][1];g[1]=[g[1][0]-g[0][0]*b.shear,g[1][1]-g[0][1]*
b.shear];b.scaley=fa(c(g[1]));d(g[1]);b.shear/=b.scaley;var z=-g[0][1],g=g[1][1];0>g?(b.rotate=a.deg(sa.acos(g)),0>z&&(b.rotate=360-b.rotate)):b.rotate=a.deg(sa.asin(z));b.isSimple=!+b.shear.toFixed(9)&&(b.scalex.toFixed(9)==b.scaley.toFixed(9)||!b.rotate);b.isSuperSimple=!+b.shear.toFixed(9)&&b.scalex.toFixed(9)==b.scaley.toFixed(9)&&!b.rotate;b.noRotation=!+b.shear.toFixed(9)&&!b.rotate;return b};b.toTransformString=function(a){a=a||this.split();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),
a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,a.dy]:"")+(1!=a.scalex||1!=a.scaley?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[a.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}})(p.prototype);var P=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);"Apple Computer, Inc."==navigator.vendor&&(P&&4>P[1]||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&P&&
8>P[1]?O.safari=function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){a.remove()});return!0}:O.safari=Tb;for(var ib=function(){this.returnValue=!1},cc=function(){return this.originalEvent.preventDefault()},Dc=function(){this.cancelBubble=!0},Kb=function(){return this.originalEvent.stopPropagation()},wc=a.addEvent=function(){if(r.doc.addEventListener)return function(a,b,c,d){var g=va&&M[b]||b,z;M[T[b]]&&(g=M[T[b]]);z=function(g){var z=r.doc.documentElement.scrollTop||
r.doc.body.scrollTop,w=r.doc.documentElement.scrollLeft||r.doc.body.scrollLeft,e;if(ya&&M.hasOwnProperty(va?b:T[b]))for(var E=0,I=g.targetTouches&&g.targetTouches.length;E<I;E++)if(e=g.targetTouches[E].target,e==a||"tspan"==e.nodeName&&e.parentNode==a){e=g;g=g.targetTouches[E];g.originalEvent=e;g.preventDefault=cc;g.stopPropagation=Kb;break}return c.call(d,g,g.clientX+w,g.clientY+z)};a.addEventListener(g,z,!1);return function(){a.removeEventListener(g,z,!1);return!0}};if(r.doc.attachEvent)return function(a,
b,c,d){var g=function(a){a=a||r.win.event;var b=a.clientX+(r.doc.documentElement.scrollLeft||r.doc.body.scrollLeft),g=a.clientY+(r.doc.documentElement.scrollTop||r.doc.body.scrollTop);a.preventDefault=a.preventDefault||ib;a.stopPropagation=a.stopPropagation||Dc;return c.call(d,a,b,g)};a.attachEvent("on"+b,g);return function(){a.detachEvent("on"+b,g);return!0}}}(),xc=[],R=function(b){for(var c=b.clientX,g=b.clientY,z=r.doc.documentElement.scrollTop||r.doc.body.scrollTop,w=r.doc.documentElement.scrollLeft||
r.doc.body.scrollLeft,e,E=xc.length;E--;){e=xc[E];if(ya&&"touchmove"===b.type)for(var I=b.touches.length,u;I--;){if(u=b.touches[I],u.identifier==e.el._drag.id){c=u.clientX;g=u.clientY;(b.originalEvent?b.originalEvent:b).preventDefault();break}}else b.preventDefault();if(!e.el.removed){var I=a._engine.getNode(e.el),h=I.nextSibling,k=I.parentNode,A=I.style.display;r.win.opera&&k.removeChild(I);I.style.display="none";u=e.el.paper.getElementByPoint(c,g);I.style.display=A;r.win.opera&&(h?k.insertBefore(I,
h):k.appendChild(I));u&&d("raphael.drag.over."+e.el.id,e.el,u);c+=w;g+=z;d("raphael.drag.move."+e.el.id,e.move_scope||e.el,c-e.el._drag.x,g-e.el._drag.y,c,g,b)}}},Na=function(b){a.undragmove(R).undragend(Na);a.unmousemove(R).unmouseup(Na);for(var c=xc.length,g;c--;)g=xc[c],g.el._drag={},d("raphael.drag.end."+g.el.id,g.end_scope||g.start_scope||g.move_scope||g.el,b);xc=[]},ea=a.el={},Oa=ma.length;Oa--;)(function(b){a[b]=ea[b]=function(c,d){a.is(c,"function")&&(this.events=this.events||[],this.events.push({name:b,
f:c,unbind:wc(this.shape||this.node||r.doc,b,c,d||this)}));return this};a["un"+b]=ea["un"+b]=function(a){for(var c=this.events||[],d=c.length;d--;)if(c[d].name==b&&c[d].f==a){c[d].unbind();c.splice(d,1);!c.length&&delete this.events;break}return this}})(ma[Oa]);ea.data=function(b,c){var g=tb[this.id]=tb[this.id]||{};if(1==arguments.length){if(a.is(b,"object")){for(var z in b)b.hasOwnProperty(z)&&this.data(z,b[z]);return this}d("raphael.data.get."+this.id,this,g[b],b);return g[b]}g[b]=c;d("raphael.data.set."+
this.id,this,c,b);return this};ea.removeData=function(a){null==a?delete tb[this.id]:tb[this.id]&&delete tb[this.id][a];return this};ea.getData=function(){return Q(tb[this.id]||{})};var ra=[],dd=function(){this.untrack=wc(r.doc,"mouseup",cd,this)},cd=function(){this.untrack();this.untrack=null;return this.fn&&this.fn.apply(this.scope||this.el,arguments)};ea.mouseup=function(b,c,d){if(!d)return a.mouseup.apply(this,arguments);ra.push(d={el:this,fn:b,scope:c});d.unbind=wc(this.shape||this.node||r.doc,
"mousedown",dd,d);return this};ea.unmouseup=function(b){for(var c=ra.length,d;c--;)ra[c].el===this&&ra[c].fn===b&&(d=ra[c],d.unbind(),d.untrack&&d.untrack(),ra.splice(c,1));return d?this:a.unmouseup.apply(this,arguments)};ea.hover=function(a,b,c,d){return this.mouseover(a,c).mouseout(b,d||c)};ea.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var Ec=[];ea.drag=function(b,c,g,z,w,e){function E(I){var u=r.doc.documentElement.scrollTop||r.doc.body.scrollTop,h=r.doc.documentElement.scrollLeft||
r.doc.body.scrollLeft;this._drag.x=I.clientX+h;this._drag.y=I.clientY+u;this._drag.id=I.identifier;ya&&!va&&!xc.length&&a.dragmove(R).dragend(Na);!xc.length&&a.mousemove(R).mouseup(Na);xc.push({el:this,move_scope:z,start_scope:w,end_scope:e});c&&d.on("raphael.drag.start."+this.id,c);b&&d.on("raphael.drag.move."+this.id,b);g&&d.on("raphael.drag.end."+this.id,g);d("raphael.drag.start."+this.id,w||z||this,I.clientX+h,I.clientY+u,I)}this._drag={};Ec.push({el:this,start:E});ya&&!va&&this.dragstart(E);
this.mousedown(E);return this};ea.onDragOver=function(a){a?d.on("raphael.drag.over."+this.id,a):d.unbind("raphael.drag.over."+this.id)};ea.undrag=function(){for(var b=Ec.length;b--;)Ec[b].el==this&&(this.unmousedown(Ec[b].start),Ec.splice(b,1),d.unbind("raphael.drag.*."+this.id));!Ec.length&&a.unmousemove(R).unmouseup(Na);delete this._drag};ea.follow=function(b,c,d){if(b.removed||b.constructor!==a.el.constructor)return this;b.followers.push({el:this,stalk:d={before:"insertBefore",after:"insertAfter"}[d],
cb:c});d&&this[d](b);return this};ea.unfollow=function(b){if(b.removed||b.constructor!==a.el.constructor)return this;for(var c=0,d=b.followers.length;c<d;c++)if(b.followers[c].el===this){b.followers.splice(c,1);break}return this};O.hide=function(){this.canvas.style.visibility="hidden";return this};O.show=function(){this.canvas.style.visibility="";return this};O.group=function(){var b=arguments,c=D(b,!0),b=a._engine.group(this,b[0],c);return this.__set__&&this.__set__.push(b),this._elementsById[b.id]=
b};O.circle=function(){var b=arguments,c=D(b,!0),b=V(b,"cx",0,"cy",0,"r",0,"fill","none","stroke","#000"),c=a._engine.circle(this,b,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};O.rect=function(){var b=arguments,c=D(b,!0),b=V(b,"x",0,"y",0,"width",0,"height",0,"r",0,"fill","none","stroke","#000"),c=a._engine.rect(this,b,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};O.ellipse=function(){var b=arguments,c=D(b,!0),b=V(b,"x",0,"y",0,"rx",0,"ry",0,
"fill","none","stroke","#000"),c=a._engine.ellipse(this,b,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};O.path=function(){var b=arguments,c=D(b,!0),b=V(b,"path","","fill","none","stroke","#000"),c=a._engine.path(this,b,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};O.image=function(){var b=arguments,c=D(b,!0),b=V(b,"src","about:blank","x",0,"y",0,"width",0,"height",0);out=a._engine.image(this,b,c);return this.__set__&&this.__set__.push(out),this._elementsById[out.id]=
out};O.text=function(){var b=arguments,c=D(b,!0),b=V(b,"x",0,"y",0,"text","","stroke","none","fill","#000","text-anchor","middle","vertical-align","middle"),c=a._engine.text(this,b,c);return this.__set__&&this.__set__.push(c),this._elementsById[c.id]=c};O.set=function(b){!a.is(b,"array")&&(b=B.call(arguments,0,arguments.length));var c=new yc(b);this.__set__&&this.__set__.push(c);return c};O.setStart=function(a){this.__set__=a||this.set()};O.setFinish=function(a){a=this.__set__;delete this.__set__;
return a};O.setSize=function(b,c){return a._engine.setSize.call(this,b,c)};O.setViewBox=function(b,c,d,g,z){return a._engine.setViewBox.call(this,b,c,d,g,z)};O.top=O.bottom=null;O.raphael=a;O.getElementByPoint=function(a,b){var c,d,g=this.canvas,z=r.doc.elementFromPoint(a,b);if(r.win.opera&&"svg"==z.tagName){d=g.getBoundingClientRect();c=g.ownerDocument;var w=c.body,e=c.documentElement;c=d.top+(r.win.pageYOffset||e.scrollTop||w.scrollTop)-(e.clientTop||w.clientTop||0);d=d.left+(r.win.pageXOffset||
e.scrollLeft||w.scrollLeft)-(e.clientLeft||w.clientLeft||0);w=g.createSVGRect();w.x=a-d;w.y=b-c;w.width=w.height=1;c=g.getIntersectionList(w,null);c.length&&(z=c[c.length-1])}if(!z)return null;for(;z.parentNode&&z!=g.parentNode&&!z.raphael;)z=z.parentNode;z==this.canvas.parentNode&&(z=g);return z=z&&z.raphael?this.getById(z.raphaelid):null};O.getElementsByBBox=function(b){var c=this.set();this.forEach(function(d){a.isBBoxIntersect(d.getBBox(),b)&&c.push(d)});return c};O.getById=function(a){return this._elementsById[a]||
null};O.forEach=function(a,b){for(var c=this.bottom;c&&!1!==a.call(b,c);)c=c.next;return this};O.getElementsByPoint=function(a,b){var c=this.set();this.forEach(function(d){d.isPointInside(a,b)&&c.push(d)});return c};ea.isPointInside=function(b,c){var d=this.realPath=this.realPath||A[this.type](this),g;return a.isPointInsidePath((g=this.attr("transform"))&&g.length&&a.transformPath(d,g)||d,b,c)};ea.getBBox=function(a){if(this.removed)return{};var b=this._;if(a){if(b.dirty||!b.bboxwt)this.realPath=
A[this.type](this),b.bboxwt=Ga(this.realPath),b.bboxwt.toString=t,b.dirty=0;return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=A[this.type](this);b.bbox=Ga(G(this.realPath,this.matrix));b.bbox.toString=t;b.dirty=b.dirtyT=0}return b.bbox};ea.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(a);return a};ea.glow=function(a){if("text"==this.type)return null;a=a||{};var b=(a.width||
10)+(+this.attr("stroke-width")||1),c=a.fill||!1,d=a.opacity||.5,g=a.offsetx||0,z=a.offsety||0;a=a.color||"#000";for(var w=b/2,e=this.paper,E=e.set(),I=this.realPath||A[this.type](this),I=this.matrix?G(I,this.matrix):I,u=1;u<w+1;u++)E.push(e.path(I).attr({stroke:a,fill:c?a:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(b/w*u).toFixed(3),opacity:+(d/w).toFixed(3)}));return E.insertBefore(this).translate(g,z)};var Ja=function(b,d,g,z,w,e,E,I,u){return null==u?c(b,d,g,z,w,
e,E,I):a.findDotsAtSegment(b,d,g,z,w,e,E,I,l(b,d,g,z,w,e,E,I,u))},Y=function(b,c){return function(d,g,w){d=z(d);for(var e,E,I,u,h="",k={},A=0,f=0,l=d.length;f<l;f++){I=d[f];if("M"==I[0])e=+I[1],E=+I[2];else{u=Ja(e,E,I[1],I[2],I[3],I[4],I[5],I[6]);if(A+u>g){if(c&&!k.start){e=Ja(e,E,I[1],I[2],I[3],I[4],I[5],I[6],g-A);h+=["C"+e.start.x,e.start.y,e.m.x,e.m.y,e.x,e.y];if(w)return h;k.start=h;h=["M"+e.x,e.y+"C"+e.n.x,e.n.y,e.end.x,e.end.y,I[5],I[6]].join();A+=u;e=+I[5];E=+I[6];continue}if(!b&&!c)return e=
Ja(e,E,I[1],I[2],I[3],I[4],I[5],I[6],g-A),{x:e.x,y:e.y,alpha:e.alpha}}A+=u;e=+I[5];E=+I[6]}h+=I.shift()+I}k.end=h;e=b?A:c?k:a.findDotsAtSegment(e,E,I[0],I[1],I[2],I[3],I[4],I[5],1);e.alpha&&(e={x:e.x,y:e.y,alpha:e.alpha});return e}},$c=Y(1),ad=Y(),Uc=Y(0,1);a.getTotalLength=$c;a.getPointAtLength=ad;a.getSubpath=function(a,b,c){if(1E-6>this.getTotalLength(a)-c)return Uc(a,b).end;a=Uc(a,c,1);return b?Uc(a,b).end:a};ea.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():
$c(this.attrs.path)};ea.getPointAtLength=function(a){if("path"==this.type)return ad(this.attrs.path,a)};ea.getSubpath=function(b,c){if("path"==this.type)return a.getSubpath(this.attrs.path,b,c)};var sc=a.easing_formulas={linear:function(a){return a},"<":function(a){return oa(a,1.7)},">":function(a){return oa(a,.48)},"<>":function(a){var b=.48-a/1.04,c=fa(.1734+b*b);a=c-b;a=oa($(a),1/3)*(0>a?-1:1);b=-c-b;b=oa($(b),1/3)*(0>b?-1:1);a=a+b+.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;return a*a*(2.70158*a+1.70158)+1},elastic:function(a){return a==!!a?a:oa(2,-10*a)*Ea(2*(a-.075)*Ba/.3)+1},bounce:function(a){a<1/2.75?a*=7.5625*a:a<2/2.75?(a-=1.5/2.75,a=7.5625*a*a+.75):a<2.5/2.75?(a-=2.25/2.75,a=7.5625*a*a+.9375):(a-=2.625/2.75,a=7.5625*a*a+.984375);return a}};sc.easeIn=sc["ease-in"]=sc["<"];sc.easeOut=sc["ease-out"]=sc[">"];sc.easeInOut=sc["ease-in-out"]=sc["<>"];sc["back-in"]=sc.backIn;sc["back-out"]=sc.backOut;var bb=[],Zc=f.requestAnimationFrame||
f.webkitRequestAnimationFrame||f.mozRequestAnimationFrame||f.oRequestAnimationFrame||f.msRequestAnimationFrame||function(a){setTimeout(a,16)},Tc=function(){for(var b=+new Date,c=0;c<bb.length;c++){var g=bb[c];if(!g.el.removed&&!g.paused){var z=b-g.start,w=g.ms,e=g.easing,E=g.from,I=g.diff,u=g.to,k=g.el,A={},f,l={},P;g.initstatus?(z=(g.initstatus*g.anim.top-g.prev)/(g.percent-g.prev)*w,g.status=g.initstatus,delete g.initstatus,g.stop&&bb.splice(c--,1)):g.status=(g.prev+z/w*(g.percent-g.prev))/g.anim.top;
if(!(0>z))if(z<w){var D=e(z/w),n;for(n in E)if(E.hasOwnProperty(n)){switch(Ib[n]){case J:f=+E[n]+D*w*I[n];break;case "colour":f="rgb("+[Vc(La(E[n].r+D*w*I[n].r)),Vc(La(E[n].g+D*w*I[n].g)),Vc(La(E[n].b+D*w*I[n].b))].join()+")";break;case "path":f=[];z=0;for(e=E[n].length;z<e;z++){f[z]=[E[n][z][0]];u=1;for(l=E[n][z].length;u<l;u++)f[z][u]=(+E[n][z][u]+D*w*I[n][z][u]).toFixed(4);f[z]=f[z].join(" ")}f=f.join(" ");break;case "transform":if(I[n].real)for(f=[],z=0,e=E[n].length;z<e;z++)for(f[z]=[E[n][z][0]],
u=1,l=E[n][z].length;u<l;u++)f[z][u]=E[n][z][u]+D*w*I[n][z][u];else f=function(a){return+E[n][a]+D*w*I[n][a]},f=[["m",f(0),f(1),f(2),f(3),f(4),f(5)]];break;case "csv":if("clip-rect"==n)for(f=[],z=4;z--;)f[z]=+E[n][z]+D*w*I[n][z];break;default:for(e=[].concat(E[n]),f=[],z=k.ca[n].length;z--;)f[z]=+e[z]+D*w*I[n][z]}A[n]=f}k.attr(A);(function(a,b,c){setTimeout(function(){d("raphael.anim.frame."+a,b,c)})})(k.id,k,g.anim)}else{(function(b,c,g){setTimeout(function(){d("raphael.anim.frame."+c.id,c,g);d("raphael.anim.finish."+
c.id,c,g);a.is(b,"function")&&b.call(c)})})(g.callback,k,g.anim);k.attr(u);bb.splice(c--,1);if(1<g.repeat&&!g.next){for(P in u)u.hasOwnProperty(P)&&(l[P]=g.totalOrigin[P]);g.el.attr(l);h(g.anim,g.el,g.anim.percents[0],null,g.totalOrigin,g.repeat-1)}g.next&&!g.stop&&h(g.anim,g.el,g.next,null,g.totalOrigin,g.repeat)}}}a.svg&&k&&k.paper&&k.paper.safari();bb.length&&Zc(Tc)},Vc=function(a){return 255<a?255:0>a?0:a};ea.animateWith=function(b,c,g,d,z,w){if(this.removed)return w&&w.call(this),this;g=g instanceof
e?g:a.animation(g,d,z,w);h(g,this,g.percents[0],null,this.attr());g=0;for(d=bb.length;g<d;g++)if(bb[g].anim==c&&bb[g].el==b){bb[d-1].start=bb[g].start;break}return this};ea.onAnimation=function(a){a?d.on("raphael.anim.frame."+this.id,a):d.unbind("raphael.anim.frame."+this.id);return this};e.prototype.delay=function(a){var b=new e(this.anim,this.ms);b.times=this.times;b.del=+a||0;return b};e.prototype.repeat=function(a){var b=new e(this.anim,this.ms);b.del=this.del;b.times=sa.floor(ta(a,0))||1;return b};
a.animation=function(b,c,g,d){if(b instanceof e)return b;if(a.is(g,"function")||!g)d=d||g||null,g=null;b=Object(b);c=+c||0;var z={},w,E;for(E in b)b.hasOwnProperty(E)&&L(E)!=E&&L(E)+"%"!=E&&(w=!0,z[E]=b[E]);return w?(g&&(z.easing=g),d&&(z.callback=d),new e({100:z},c)):new e(b,c)};ea.animate=function(b,c,g,d){if(this.removed)return d&&d.call(this),this;b=b instanceof e?b:a.animation(b,c,g,d);h(b,this,b.percents[0],null,this.attr());return this};ea.setTime=function(a,b){a&&null!=b&&this.status(a,S(b,
a.ms)/a.ms);return this};ea.status=function(a,b){var c=[],g=0,d,z;if(null!=b)return h(a,this,-1,S(b,1)),this;for(d=bb.length;g<d;g++)if(z=bb[g],z.el.id==this.id&&(!a||z.anim==a)){if(a)return z.status;c.push({anim:z.anim,status:z.status})}return a?0:c};ea.pause=function(a){for(var b=0;b<bb.length;b++)bb[b].el.id!=this.id||a&&bb[b].anim!=a||!1===d("raphael.anim.pause."+this.id,this,bb[b].anim)||(bb[b].paused=!0);return this};ea.resume=function(a){for(var b=0;b<bb.length;b++)if(bb[b].el.id==this.id&&
(!a||bb[b].anim==a)){var c=bb[b];!1!==d("raphael.anim.resume."+this.id,this,c.anim)&&(delete c.paused,this.status(c.anim,c.status))}return this};ea.stop=function(a){for(var b=0;b<bb.length;b++)bb[b].el.id!=this.id||a&&bb[b].anim!=a||!1!==d("raphael.anim.stop."+this.id,this,bb[b].anim)&&bb.splice(b--,1);return this};d.on("raphael.remove",k);d.on("raphael.clear",k);ea.toString=function(){return"Raphaël’s object"};ea.toFront=function(){if(this.removed)return this;var b=a._engine.getNode(this),c=this.parent,
g=this.followers,d;a._tofront(this,c)&&c.canvas.appendChild(b);b=0;for(c=g.length;b<c;b++)(d=g[b]).stalk&&d.el[d.stalk](this);return this};ea.toBack=function(){if(this.removed)return this;var b=a._engine.getNode(this),c=this.parent,g=this.followers,d;a._toback(this,c)&&c.canvas.insertBefore(b,c.canvas.firstChild);b=0;for(c=g.length;b<c;b++)(d=g[b]).stalk&&d.el[d.stalk](this);return this};ea.insertAfter=function(b){if(this.removed)return this;var c=a._engine.getNode(this),g=a._engine.getLastNode(b),
d=b.parent.canvas,z=this.followers,w;g.nextSibling?d.insertBefore(c,g.nextSibling):d.appendChild(c);a._insertafter(this,b,this.parent,b.parent);c=0;for(g=z.length;c<g;c++)(w=z[c]).stalk&&w.el[w.stalk](b);return this};ea.insertBefore=function(b){if(this.removed)return this;var c=a._engine.getNode(this),g=a._engine.getNode(b),d=this.followers,z;b.parent.canvas.insertBefore(c,g);a._insertbefore(this,b,this.parent,b.parent);this.parent=b.parent;c=0;for(g=d.length;c<g;c++)(z=d[c]).stalk&&z.el[z.stalk](b);
return this};ea.appendChild=function(b){if(this.removed||"group"!==this.type)return this;var c=this.followers,g,d,z;if(b.parent===this)return b.toFront(),this;d=a._engine.getNode(b);a._tear(b,b.parent);this.canvas.appendChild(d);b.parent=this;!this.bottom&&(this.bottom=b);b.prev=this.top;b.next=null;this.top&&(this.top.next=b);this.top=b;d=0;for(z=c.length;d<z;d++)(g=c[d]).stalk&&g.el[g.stalk](b);return this};ea.removeChild=function(b){if(this.removed||"group"!==this.type||b.parent!==this)return this;
var c=a._engine.getNode(b),g=this.paper;a._tear(b,this);g.canvas.appendChild(c);this.parent=g;!g.bottom&&(g.bottom=this);(this.prev=g.top)&&(g.top.next=this);g.top=this;this.next=null;return this};var yc=function(a){this.items=[];this.length=0;this.type="set";if(a)for(var b=0,c=a.length;b<c;b++)!a[b]||a[b].constructor!=ea.constructor&&a[b].constructor!=yc||(this[this.items.length]=this.items[this.items.length]=a[b],this.length++)},nc=yc.prototype;nc.push=function(){for(var a,b,c=0,g=arguments.length;c<
g;c++)!(a=arguments[c])||a.constructor!=ea.constructor&&a.constructor!=yc||(b=this.items.length,this[b]=this.items[b]=a,this.length++);return this};nc.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};nc.forEach=function(a,b){for(var c=0,g=this.items.length;c<g&&!1!==a.call(b,this.items[c],c);c++);return this};for(var yb in ea)ea.hasOwnProperty(yb)&&(nc[yb]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a][K](c,b)})}}(yb));nc.attr=function(b,
c){if(b&&a.is(b,n)&&a.is(b[0],"object"))for(var g=0,d=b.length;g<d;g++)this.items[g].attr(b[g]);else for(g=0,d=this.items.length;g<d;g++)this.items[g].attr(b,c);return this};nc.clear=function(){for(;this.length;)this.pop()};nc.splice=function(a,b,c){a=0>a?ta(this.length+a,0):a;b=ta(0,S(this.length-a,isNaN(b)&&this.length||b));var g=[],d=[],z=[],w;for(w=2;w<arguments.length;w++)z.push(arguments[w]);for(w=0;w<b;w++)d.push(this[a+w]);for(;w<this.length-a;w++)g.push(this[a+w]);var e=z.length;for(w=0;w<
e+g.length;w++)this.items[a+w]=this[a+w]=w<e?z[w]:g[w-e];for(w=this.items.length=this.length-=b-e;this[w];)delete this[w++];return new yc(d)};nc.exclude=function(a){for(var b=0,c=this.length;b<c;b++)if(this[b]==a)return this.splice(b,1),!0};nc.animate=function(b,c,g,d){!a.is(g,"function")&&g||(d=g||null);var z=this.items.length,w=z,e=this,E;if(!z)return this;d&&(E=function(){!--z&&d.call(e)});g=a.is(g,"string")?g:E;c=a.animation(b,c,g,E);for(b=this.items[--w].animate(c);w--;)this.items[w]&&!this.items[w].removed&&
this.items[w].animateWith(b,c,c);return this};nc.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};nc.getBBox=function(){for(var a=[],b=[],c=[],g=[],d=this.items.length;d--;)if(!this.items[d].removed){var z=this.items[d].getBBox();a.push(z.x);b.push(z.y);c.push(z.x+z.width);g.push(z.y+z.height)}a=S[K](0,a);b=S[K](0,b);c=ta[K](0,c);g=ta[K](0,g);return{x:a,y:b,x2:c,y2:g,width:c-a,height:g-b}};nc.clone=function(a){a=new yc;for(var b=0,c=this.items.length;b<
c;b++)a.push(this.items[b].clone());return a};nc.toString=function(){return"Raphaël‘s set"};nc.glow=function(a){var b=this.paper.set();this.forEach(function(c,g){var d=c.glow(a);null!=d&&d.forEach(function(a,c){b.push(a)})});return b};a.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,face:{},glyphs:{}},c=a.face["font-family"],g;for(g in a.face)a.face.hasOwnProperty(g)&&(b.face[g]=a.face[g]);this.fonts[c]?this.fonts[c].push(b):this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=
da(a.face["units-per-em"],10);for(var d in a.glyphs)if(a.glyphs.hasOwnProperty(d)&&(c=a.glyphs[d],b.glyphs[d]={w:c.w,k:{},d:c.d&&"M"+c.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},c.k))for(var z in c.k)c.hasOwnProperty(z)&&(b.glyphs[d].k[z]=c.k[z])}return a};O.getFont=function(b,c,g,d){d=d||"normal";g=g||"normal";c=+c||{normal:400,bold:700,lighter:300,bolder:800}[c]||400;if(a.fonts){var z=a.fonts[b];if(!z){b=new RegExp("(^|\\s)"+b.replace(/[^\w\d\s+!~.:_-]/g,
"")+"(\\s|$)","i");for(var w in a.fonts)if(a.fonts.hasOwnProperty(w)&&b.test(w)){z=a.fonts[w];break}}var e;if(z)for(w=0,b=z.length;w<b&&(e=z[w],e.face["font-weight"]!=c||e.face["font-style"]!=g&&e.face["font-style"]||e.face["font-stretch"]!=d);w++);return e}};O.print=function(b,c,g,d,z,w,e){w=w||"middle";e=ta(S(e||0,1),-1);var E=u(g).split(""),I=0,h=0,k="";a.is(d,g)&&(d=this.getFont(d));if(d){g=(z||16)/d.face["units-per-em"];var A=d.face.bbox.split(gb);z=+A[0];var f=A[3]-A[1],l=0;w=+A[1]+("baseline"==
w?f+ +d.face.descent:f/2);for(var A=0,P=E.length;A<P;A++){if("\n"==E[A])h=n=I=0,l+=f;else var D=h&&d.glyphs[E[A-1]]||{},n=d.glyphs[E[A]],I=I+(h?(D.w||d.w)+(D.k&&D.k[E[A]]||0)+d.w*e:0),h=1;n&&n.d&&(k+=a.transformPath(n.d,["t",I*g,l*g,"s",g,g,z,w,"t",(b-z)/g,(c-w)/g]))}}return this.path(k).attr({fill:"#000",stroke:"none"})};O.add=function(b){if(a.is(b,"array"))for(var c=this.set(),g=0,d=b.length,z;g<d;g++)z=b[g]||{},na.hasOwnProperty(z.type)&&c.push(this[z.type]().attr(z));return c};a.format=function(b,
c){var g=a.is(c,n)?[0].concat(c):arguments;b&&a.is(b,"string")&&g.length-1&&(b=b.replace(Sa,function(a,b){return null==g[++b]?"":g[b]}));return b||""};a.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,g){var d=g;c.replace(b,function(a,b,c,g,z){b=b||g;d&&(b in d&&(d=d[b]),"function"==typeof d&&z&&(d=d()))});return d=(null==d||d==g?a:d)+""};return function(b,g){return String(b).replace(a,function(a,b){return c(a,b,g)})}}();a.ninja=
function(){ga?r.win.Raphael=X:delete Raphael;return a};var ed=a.vml&&.5||0;a.crispBound=ca(function(a,b,c,g,d){var z={},w;a=a||0;b=b||0;c=c||0;g=g||0;d=d||0;w=d%2/2+ed;z.x=La(a+w)-w;z.y=La(b+w)-w;z.width=La(a+c+w)-w-z.x;z.height=La(b+g+w)-w-z.y;z["stroke-width"]=d;0===z.width&&0!==c&&(z.width=1);0===z.height&&0!==g&&(z.height=1);return z},a);ea.crisp=function(){var b=this.attrs,c,g=this.attr(["x","y","width","height","stroke-width"]),g=a.crispBound(g.x,g.y,g.width,g.height,g["stroke-width"]);for(c in g)b[c]===
g[c]&&delete g[c];return this.attr(g)};a.st=nc;a.define=function(b,c,g,d,z,w){var e;if(a.is(b,n))for(w=0,e=b.length;w<e;w++)a.define(b[w]);else if(a.is(b,"object"))a.define(b.name,b[b.name],b.ca,b.fn,b.e,b.data);else if(b&&!a.fn[b])return a.fn[b]=function(){var w=arguments,e=c.apply(this,w),E;if(d&&a.is(d,"object"))for(E in d)e[E]=d[E];if(z&&a.is(z,"object"))for(E in z)e[E]&&e[E](z[E]);if(g){if(a.is(g,"function"))e.ca[b]=g;else for(E in g)e.ca[E]=g[E];e.ca[b]&&(a._lastArgIfGroup(w,!0),e.attr(b,N.call(w)))}return e},
g&&(a.fn[b].ca=g),d&&(a.fn[b].fn=d),z&&(a.fn[b].e=z),w&&(a.fn[b].data=w),a.fn[b]};(function(b,c,g){function d(){/in/.test(b.readyState)?setTimeout(d,9):a.eve("raphael.DOMload")}null==b.readyState&&b.addEventListener&&(b.addEventListener(c,g=function(){b.removeEventListener(c,g,!1);b.readyState="complete"},!1),b.readyState="loading");d()})(document,"DOMContentLoaded");d.on("raphael.DOMload",function(){v=!0});(function(){if(a.svg){var b=String,c=parseFloat,g=parseInt,d=Math,z=d.max,w=d.abs,e=d.pow,
E=d.sqrt,I=/[, ]+/,u=!(!/AppleWebKit/.test(a._g.win.navigator.userAgent)||/Chrome/.test(a._g.win.navigator.userAgent)&&!(29>a._g.win.navigator.appVersion.match(/Chrome\/(\d+)\./)[1])),h=a.eve,k={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"},A={};a.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};a._url="";var f=function(a,b){var c=
a.gradient;if(c){if(c===b)return;c.refCount--;c.refCount||c.parentNode.removeChild(c);delete a.gradient}b&&(a.gradient=b,b.refCount++)},l=a._createNode=function(c,g){if(g){"string"==typeof c&&(c=l(c));for(var d in g)g.hasOwnProperty(d)&&("xlink:"==d.substring(0,6)?c.setAttributeNS("http://www.w3.org/1999/xlink",d.substring(6),b(g[d])):c.setAttribute(d,b(g[d])))}else c=a._g.doc.createElementNS("http://www.w3.org/2000/svg",c);return c},P={userSpaceOnUse:"userSpaceOnUse",objectBoundingBox:"objectBoundingBox"},
D={pad:"pad",redlect:"reflect",repeat:"repeat"},n=function(g,I){if(!g.paper||!g.paper.defs)return 0;var u="linear",h=g.paper,k=(h.id+"-"+I).replace(/[\(\)\s%:,\xb0#]/g,"_"),A=.5,n=.5,ib,ka,m,G,v,R=g.node,L=R.style,p=a._g.doc.getElementById(k);if(!p){I=b(I).replace(a._radial_gradient,function(a,b){u="radial";b=b&&b.split(",")||[];G=b[5];v=b[6];var g=b[0],d=b[1],z=b[2],w=b[3],I=b[4],h=g&&d,k;z&&(ib=/\%/.test(z)?z:c(z));if(G===P.userSpaceOnUse)return h&&(A=g,n=d),w&&I&&(ka=w,m=I,h||(A=ka,n=m)),"";h&&
(A=c(g),n=c(d),g=2*(.5<n)-1,.25<(k=e(A-.5,2))+e(n-.5,2)&&.25>k&&(n=E(.25-k)*g+.5)&&.5!==n&&(n=n.toFixed(5)-1E-5*g));w&&I&&(ka=c(w),m=c(I),g=2*(.5<m)-1,.25<(k=e(ka-.5,2))+e(m-.5,2)&&.25>k&&(m=E(.25-k)*g+.5)&&.5!==m&&(m=m.toFixed(5)-1E-5*g),h||(A=ka,n=m));return""});I=I.split(/\s*\-\s*/);if("linear"==u){var p=I.shift(),r=p.match(/\((.*)\)/),B,r=r&&r[1]&&r[1].split(/\s*\,\s*/),p=-c(p);if(isNaN(p))return null;r&&r.length?(r[0]in P?(G=r.shift(),r[0]in D&&(v=r.shift())):(r[4]&&(G=r[4]),r[5]&&(v=r[5])),
B=[r[0]||"0%",r[1]||"0%",r[2]||"100%",r[3]||"0%"]):(B=[0,0,d.cos(a.rad(p)),d.sin(a.rad(p))],p=1/(z(w(B[2]),w(B[3]))||1),B[2]*=p,B[3]*=p,0>B[2]&&(B[0]=-B[2],B[2]=0),0>B[3]&&(B[1]=-B[3],B[3]=0))}r=a._parseDots(I);if(!r)return null;p=l(u+"Gradient",{id:k});p.refCount=0;G in P&&p.setAttribute("gradientUnits",b(G));v in D&&p.setAttribute("spreadMethod",b(v));"radial"===u?(void 0!==ib&&p.setAttribute("r",b(ib)),void 0!==ka&&void 0!==m&&(p.setAttribute("cx",b(ka)),p.setAttribute("cy",b(m))),p.setAttribute("fx",
b(A)),p.setAttribute("fy",b(n))):l(p,{x1:B[0],y1:B[1],x2:B[2],y2:B[3]});B=0;for(var s=r.length;B<s;B++)p.appendChild(l("stop",{offset:r[B].offset?r[B].offset:B?"100%":"0%","stop-color":r[B].color||"#fff","stop-opacity":void 0===r[B].opacity?1:r[B].opacity}));h.defs.appendChild(p)}f(g,p);l(R,{fill:"url('"+a._url+"#"+k+"')",opacity:1,"fill-opacity":1});L.fill="";L.opacity=1;return L.fillOpacity=1},ib=function(a){var b=a.getBBox(1);l(a.pattern,{patternTransform:a.matrix.invert()+" translate("+b.x+","+
b.y+")"})},ka=function(c,g,d){if("path"==c.type){for(var z=b(g).toLowerCase().split("-"),w=c.paper,e=d?"end":"start",E=c.node,I=c.attrs,u=I["stroke-width"],h=z.length,f="classic",P,n,D=3,ib=3,ka=5;h--;)switch(z[h]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":f=z[h];break;case "wide":ib=5;break;case "narrow":ib=2;break;case "long":D=5;break;case "short":D=2}"open"==f?(D+=2,ib+=2,ka+=2,P=1,n=d?4:1,z={fill:"none",stroke:I.stroke}):(n=P=D/2,z={fill:I.stroke,stroke:"none"});
c._.arrows?d?(c._.arrows.endPath&&A[c._.arrows.endPath]--,c._.arrows.endMarker&&A[c._.arrows.endMarker]--):(c._.arrows.startPath&&A[c._.arrows.startPath]--,c._.arrows.startMarker&&A[c._.arrows.startMarker]--):c._.arrows={};if("none"!=f){var h="raphael-marker-"+f,m="raphael-marker-"+e+f+D+ib+"-obj"+c.id;a._g.doc.getElementById(h)?A[h]++:(w.defs.appendChild(l(l("path"),{"stroke-linecap":"round",d:k[f],id:h})),A[h]=1);var G=a._g.doc.getElementById(m);G?(A[m]++,D=G.getElementsByTagName("use")[0]):(G=
l(l("marker"),{id:m,markerHeight:ib,markerWidth:D,orient:"auto",refX:n,refY:ib/2}),D=l(l("use"),{"xlink:href":"#"+h,transform:(d?"rotate(180 "+D/2+" "+ib/2+") ":"")+"scale("+D/ka+","+ib/ka+")","stroke-width":(1/((D/ka+ib/ka)/2)).toFixed(4)}),G.appendChild(D),w.defs.appendChild(G),A[m]=1);l(D,z);w=P*("diamond"!=f&&"oval"!=f);d?(d=c._.arrows.startdx*u||0,u=a.getTotalLength(I.path)-w*u):(d=w*u,u=a.getTotalLength(I.path)-(c._.arrows.enddx*u||0));z={};z["marker-"+e]="url('"+a._url+"#"+m+"')";if(u||d)z.d=
a.getSubpath(I.path,d,u);l(E,z);c._.arrows[e+"Path"]=h;c._.arrows[e+"Marker"]=m;c._.arrows[e+"dx"]=w;c._.arrows[e+"Type"]=f;c._.arrows[e+"String"]=g}else d?(d=c._.arrows.startdx*u||0,u=a.getTotalLength(I.path)-d):(d=0,u=a.getTotalLength(I.path)-(c._.arrows.enddx*u||0)),c._.arrows[e+"Path"]&&l(E,{d:a.getSubpath(I.path,d,u)}),delete c._.arrows[e+"Path"],delete c._.arrows[e+"Marker"],delete c._.arrows[e+"dx"],delete c._.arrows[e+"Type"],delete c._.arrows[e+"String"];for(z in A)A.hasOwnProperty(z)&&!A[z]&&
(c=a._g.doc.getElementById(z))&&c.parentNode.removeChild(c)}},m={"":["none"],none:["none"],"-":[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]},G=function(c,g,d){var z=m[b(g).toLowerCase()],e,E;if(g=z||void 0!==g&&[].concat(g)){e=c.attrs["stroke-width"]||1;d={round:e,square:e,butt:0}[c.attrs["stroke-linecap"]||d["stroke-linecap"]]||0;E=g.length;e=z?e:1;for(z=[];E--;)z[E]=g[E]*e+(E%2?1:-1)*d||g[E],0>z[E]&&(z[E]=
w(z[E]));a.is(g,"array")&&l(c.node,{"stroke-dasharray":z.join(",")})}},v=function(a,b){for(var c in b)h("raphael.attr."+c+"."+a.id,a,b[c],c),a.ca[c]&&a.attr(c,b[c])},R=a._setFillAndStroke=function(c,d){if(c.paper.canvas){var e=c.node,E=c.attrs,h=c.paper,k=e.style,A=k.visibility;k.visibility="hidden";for(var D in d)if(d.hasOwnProperty(D)&&a._availableAttrs.hasOwnProperty(D)){var P=d[D];E[D]=P;switch(D){case "blur":c.blur(P);break;case "href":case "title":case "target":var m=e.parentNode;if("a"!=m.tagName.toLowerCase()){if(""==
P)break;var v=l("a");v.raphael=!0;v.raphaelid=e.raphaelid;m.insertBefore(v,e);v.appendChild(e);m=v}"target"==D?m.setAttributeNS("http://www.w3.org/1999/xlink","show","blank"==P?"new":P):m.setAttributeNS("http://www.w3.org/1999/xlink",D,P);e.titleNode=m;break;case "cursor":k.cursor=P;break;case "transform":c.transform(P);break;case "rotation":a.is(P,"array")?c.rotate.apply(c,P):c.rotate(P);break;case "arrow-start":ka(c,P);break;case "arrow-end":ka(c,P,1);break;case "clip-path":var R=!0;case "clip-rect":m=
!R&&b(P).split(I);c._.clipispath=!!R;if(R||4==m.length){c.clip&&c.clip.parentNode.parentNode.removeChild(c.clip.parentNode);var v=l("clipPath"),p=l(R?"path":"rect");v.id=a.createUUID();l(p,R?{d:P?E["clip-path"]=a._pathToAbsolute(P):a._availableAttrs.path,fill:"none"}:{x:m[0],y:m[1],width:m[2],height:m[3],transform:c.matrix.invert()});v.appendChild(p);h.defs.appendChild(v);l(e,{"clip-path":"url('"+a._url+"#"+v.id+"')"});c.clip=p}!P&&(P=e.getAttribute("clip-path"))&&((P=a._g.doc.getElementById(P.replace(/(^url\(#|\)$)/g,
"")))&&P.parentNode.removeChild(P),l(e,{"clip-path":""}),delete c.clip);break;case "path":"path"==c.type&&(l(e,{d:P?E.path=a._pathToAbsolute(P):a._availableAttrs.path}),c._.dirty=1,c._.arrows&&("startString"in c._.arrows&&ka(c,c._.arrows.startString),"endString"in c._.arrows&&ka(c,c._.arrows.endString,1)));break;case "width":if(e.setAttribute(D,P),c._.dirty=1,E.fx)D="x",P=E.x;else break;case "x":E.fx&&(P=-E.x-(E.width||0));case "rx":if("rx"==D&&"rect"==c.type)break;case "cx":e.setAttribute(D,P);c.pattern&&
ib(c);c._.dirty=1;break;case "height":if(e.setAttribute(D,P),c._.dirty=1,E.fy)D="y",P=E.y;else break;case "y":E.fy&&(P=-E.y-(E.height||0));case "ry":if("ry"==D&&"rect"==c.type)break;case "cy":e.setAttribute(D,P);c.pattern&&ib(c);c._.dirty=1;break;case "r":"rect"==c.type?l(e,{rx:P,ry:P}):e.setAttribute(D,P);c._.dirty=1;break;case "src":"image"==c.type&&e.setAttributeNS("http://www.w3.org/1999/xlink","href",P);break;case "stroke-width":if(1!=c._.sx||1!=c._.sy)P/=z(w(c._.sx),w(c._.sy))||1;h._vbSize&&
(P*=h._vbSize);u&&0===P&&(P=1E-6);e.setAttribute(D,P);E["stroke-dasharray"]&&G(c,E["stroke-dasharray"],d);c._.arrows&&("startString"in c._.arrows&&ka(c,c._.arrows.startString),"endString"in c._.arrows&&ka(c,c._.arrows.endString,1));break;case "stroke-dasharray":G(c,P,d);break;case "fill":var r=b(P).match(a._ISURL);if(r){var v=l("pattern"),B=l("image");v.id=a.createUUID();l(v,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});l(B,{x:0,y:0,"xlink:href":r[1]});v.appendChild(B);(function(b){a._preload(r[1],
function(){var a=this.offsetWidth,c=this.offsetHeight;l(b,{width:a,height:c});l(B,{width:a,height:c});h.safari()})})(v);h.defs.appendChild(v);k.fill="url('"+a._url+"#"+v.id+"')";l(e,{fill:k.fill});c.pattern=v;c.pattern&&ib(c);break}m=a.getRGB(P);if(!m.error)delete d.gradient,delete E.gradient,!a.is(E.opacity,"undefined")&&a.is(d.opacity,"undefined")&&l(e,{opacity:E.opacity}),!a.is(E["fill-opacity"],"undefined")&&a.is(d["fill-opacity"],"undefined")&&l(e,{"fill-opacity":E["fill-opacity"]}),c.gradient&&
f(c);else if(("circle"==c.type||"ellipse"==c.type||"r"!=b(P).charAt())&&n(c,P)){if("opacity"in E||"fill-opacity"in E)if(m=a._g.doc.getElementById(e.getAttribute("fill").replace(/^url\(#|\)$/g,"")))m=m.getElementsByTagName("stop"),l(m[m.length-1],{"stop-opacity":("opacity"in E?E.opacity:1)*("fill-opacity"in E?E["fill-opacity"]:1)});E.gradient=P;E.fill="none";k.fill="";break}m.hasOwnProperty("opacity")?(l(e,{"fill-opacity":k.fillOpacity=1<m.opacity?m.opacity/100:m.opacity}),c._.fillOpacityDirty=!0):
c._.fillOpacityDirty&&a.is(E["fill-opacity"],"undefined")&&a.is(d["fill-opacity"],"undefined")&&(e.removeAttribute("fill-opacity"),k.fillOpacity="",delete c._.fillOpacityDirty);case "stroke":m=a.getRGB(P);e.setAttribute(D,m.hex);k[D]=m.hex;"stroke"==D&&(m.hasOwnProperty("opacity")?(l(e,{"stroke-opacity":k.strokeOpacity=1<m.opacity?m.opacity/100:m.opacity}),c._.strokeOpacityDirty=!0):c._.strokeOpacityDirty&&a.is(E["stroke-opacity"],"undefined")&&a.is(d["stroke-opacity"],"undefined")&&(e.removeAttribute("stroke-opacity"),
k.strokeOpacity="",delete c._.strokeOpacityDirty),c._.arrows&&("startString"in c._.arrows&&ka(c,c._.arrows.startString),"endString"in c._.arrows&&ka(c,c._.arrows.endString,1)));break;case "gradient":"circle"!=c.type&&"ellipse"!=c.type&&"r"==b(P).charAt()||n(c,P);break;case "line-height":case "vertical-align":break;case "visibility":"hidden"===P?c.hide():c.show();break;case "opacity":E.gradient&&!E.hasOwnProperty("stroke-opacity")&&l(e,{"stroke-opacity":1<P?P/100:P});case "fill-opacity":if(E.gradient){if(m=
a._g.doc.getElementById(e.getAttribute("fill").replace(/^url\(#|\)$/g,"")))m=m.getElementsByTagName("stop"),l(m[m.length-1],{"stop-opacity":P});break}default:"font-size"==D&&(P=g(P,10)+"px"),m=D.replace(/(\-.)/g,function(a){return a.substring(1).toUpperCase()}),k[m]=P,c._.dirty=1,e.setAttribute(D,P)}}"text"===c.type&&L(c,d);k.visibility=A}},L=function(g,z){if("text"==g.type&&(z.hasOwnProperty("text")||z.hasOwnProperty("font")||z.hasOwnProperty("font-size")||z.hasOwnProperty("x")||z.hasOwnProperty("y")||
z.hasOwnProperty("line-height")||z.hasOwnProperty("vertical-align"))){var w=g.attrs,e=g.node,E=e.firstChild&&a._g.doc.defaultView.getComputedStyle(e.firstChild,""),I=E?c(a._g.doc.defaultView.getComputedStyle(e.firstChild,"").getPropertyValue("font-size")):10,u=c(z["line-height"]||w["line-height"])||1.2*I,h=w.hasOwnProperty("vertical-align")?w["vertical-align"]:"middle",k=(z.direction||(E?E.getPropertyValue("direction"):"initial")).toLowerCase(),A=!!document.documentMode;isNaN(u)&&(u=1.2*I);a.is(z.text,
"array")&&(z.text=z.text.join("<br>"));h="top"===h?-.5:"bottom"===h?.5:0;if(z.hasOwnProperty("text")&&(z.text!==w.text||g._textdirty)){for(w.text=z.text;e.firstChild;)e.removeChild(e.firstChild);for(var f=b(z.text).split(/\n|<br\s*?\/?>/ig),I=[],P=0,D=f.length;P<D;P++)E=l("tspan"),P?l(E,{dy:u,x:w.x}):l(E,{dy:u*f.length*h,x:w.x}),f[P]||(E.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),f[P]=" "),E.appendChild(a._g.doc.createTextNode(f[P])),e.appendChild(E),I[P]=E,!A&&
"rtl"===k&&P<D-1&&(E=l("tspan"),l(E,{visibility:"hidden","font-size":"0px"}),E.appendChild(a._g.doc.createTextNode("i")),e.appendChild(E));g._textdirty=!1}else for(I=e.getElementsByTagName("tspan"),P=A=0,D=I.length;P<D;P++)if(E=I[P],k=E.attributes[0],!k||"visibility"!==k.name&&"visibility"!==k.nodeName||"hidden"!==k.value&&"hidden"!==k.nodeValue)P?l(E,{dy:u,x:w.x}):(k=I[1]&&I[1].attributes[0],!k||"visibility"!==k.name&&"visibility"!==k.nodeName||"hidden"!==k.value&&"hidden"!==k.nodeValue||(A=d.floor(.5*
I.length)),l(I[0],{dy:u*(I.length-A)*h,x:w.x}));l(e,{x:w.x,y:w.y});g._.dirty=1;e=g._getBBox();u=w.y-(e.y+e.height/2);if(e.isCalculated)switch(w["vertical-align"]){case "top":u=.75*e.height;break;case "bottom":u=-(.25*e.height);break;default:u=w.y-(e.y+.25*e.height)}u&&a.is(u,"finite")&&I[0]&&l(I[0],{dy:u})}},p=function(b,c,g){g=g||c;g.canvas&&g.canvas.appendChild(b);this.node=this[0]=b;b.raphael=!0;b.raphaelid=this.id=a._oid++;this.matrix=a.matrix();this.realPath=null;this.attrs=this.attrs||{};this.followers=
this.followers||[];this.paper=c;this.ca=this.customAttributes=this.customAttributes||new c._CustomAttributes;this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};this.parent=g;!g.bottom&&(g.bottom=this);(this.prev=g.top)&&(g.top.next=this);g.top=this;this.next=null},r=a.el;p.prototype=r;r.constructor=p;a._engine.getNode=function(a){a=a.node||a[0].node;return a.titleNode||a};a._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.titleNode||a};r.rotate=function(a,g,d){if(this.removed)return this;
a=b(a).split(I);a.length-1&&(g=c(a[1]),d=c(a[2]));a=c(a[0]);null==d&&(g=d);if(null==g||null==d)d=this.getBBox(1),g=d.x+d.width/2,d=d.y+d.height/2;this.transform(this._.transform.concat([["r",a,g,d]]));return this};r.scale=function(a,g,d,z){var w;if(this.removed)return this;a=b(a).split(I);a.length-1&&(g=c(a[1]),d=c(a[2]),z=c(a[3]));a=c(a[0]);null==g&&(g=a);null==z&&(d=z);if(null==d||null==z)w=this.getBBox(1);d=null==d?w.x+w.width/2:d;z=null==z?w.y+w.height/2:z;this.transform(this._.transform.concat([["s",
a,g,d,z]]));return this};r.translate=function(a,g){if(this.removed)return this;a=b(a).split(I);a.length-1&&(g=c(a[1]));a=c(a[0])||0;this.transform(this._.transform.concat([["t",a,+g||0]]));return this};r.transform=function(b){var c=this._;if(null==b)return c.transform;a._extractTransform(this,b);this.clip&&!c.clipispath&&l(this.clip,{transform:this.matrix.invert()});this.pattern&&ib(this);this.node&&l(this.node,{transform:this.matrix});if(1!=c.sx||1!=c.sy)b=this.attrs.hasOwnProperty("stroke-width")?
this.attrs["stroke-width"]:1,this.attr({"stroke-width":b});return this};r.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};r.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};r.remove=function(){if(!this.removed&&this.parent.canvas){var b=a._engine.getNode(this),c=this.paper,g=c.defs;c.__set__&&c.__set__.exclude(this);h.unbind("raphael.*.*."+this.id);for(this.gradient&&g&&f(this);g=this.followers.pop();)g.el.remove();
for(;g=this.bottom;)g.remove();this._drag&&this.undrag();if(this.events)for(;g=this.events.pop();)g.unbind();this.parent.canvas.removeChild(b);this.removeData();delete c._elementsById[this.id];a._tear(this,this.parent);for(g in this)this[g]="function"===typeof this[g]?a._removedFactory(g):null;this.removed=!0}};r._getBBox=function(){var a=this.node,b={},c=this.attrs,g,d;"none"===a.style.display&&(this.show(),d=!0);try{b=a.getBBox(),"text"==this.type&&(void 0===b.x&&(b.isCalculated=!0,g=c["text-anchor"],
b.x=(c.x||0)-b.width*("start"===g?0:"middle"===g?.5:1)),void 0===b.y&&(b.isCalculated=!0,g=c["vertical-align"],b.y=(c.y||0)-b.height*("bottom"===g?1:"middle"===g?.5:0)))}catch(z){}finally{b=b||{}}d&&this.hide();return b};r.attr=function(b,c){if(this.removed)return this;if(null==b){var g={},d;for(d in this.attrs)this.attrs.hasOwnProperty(d)&&(g[d]=this.attrs[d]);g.gradient&&"none"==g.fill&&(g.fill=g.gradient)&&delete g.gradient;g.transform=this._.transform;g.visibility="none"===this.node.style.display?
"hidden":"visible";return g}if(null==c&&a.is(b,"string")){if("fill"==b&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==b)return this._.transform;if("visibility"==b)return"none"===this.node.style.display?"hidden":"visible";var g=b.split(I),z={},w=0;for(d=g.length;w<d;w++)b=g[w],b in this.attrs?z[b]=this.attrs[b]:a.is(this.ca[b],"function")?z[b]=this.ca[b].def:z[b]=a._availableAttrs[b];return d-1?z:z[g[0]]}if(null==c&&a.is(b,"array")){z={};w=0;for(d=b.length;w<
d;w++)z[b[w]]=this.attr(b[w]);return z}null!=c?(g={},g[b]=c):null!=b&&a.is(b,"object")&&(g=b);for(w in g)h("raphael.attr."+w+"."+this.id,this,g[w],w);var e={};for(w in this.ca)if(this.ca[w]&&g.hasOwnProperty(w)&&a.is(this.ca[w],"function")&&!this.ca["_invoked"+w]){this.ca["_invoked"+w]=!0;d=this.ca[w].apply(this,[].concat(g[w]));delete this.ca["_invoked"+w];for(z in d)d.hasOwnProperty(z)&&(g[z]=d[z]);this.attrs[w]=g[w];!1===d&&(e[w]=g[w],delete g[w])}R(this,g);var E,w=0;for(d=this.followers.length;w<
d;w++)E=this.followers[w],E.cb&&!E.cb.call(E.el,g,this)||E.el.attr(g);for(z in e)g[z]=e[z];return this};r.blur=function(b){if(0!==+b){var c=l("filter"),g=l("feGaussianBlur");this.attrs.blur=b;c.id=a.createUUID();l(g,{stdDeviation:+b||1.5});c.appendChild(g);this.paper.defs.appendChild(c);this._blur=c;l(this.node,{filter:"url('"+a._url+"#"+c.id+"')"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")};r.on=function(b,
c){if(this.removed)return this;var g=c;a.supportsTouch&&(b=a._touchMap[b]||"click"===b&&"touchstart"||b,g=function(a){a.preventDefault();c()});this.node["on"+b]=g;return this};a._engine.path=function(a,b,c){var g=l("path");a=new p(g,a,c);a.type="path";R(a,b);v(a,b);return a};a._engine.group=function(a,b,c){var g=l("g");a=new p(g,a,c);a.type="group";a.canvas=a.node;a.top=a.bottom=null;a._id=b||"";b&&g.setAttribute("class","raphael-group-"+a.id+"-"+b);return a};a._engine.circle=function(a,b,c){var g=
l("circle");a=new p(g,a,c);a.type="circle";R(a,b);v(a,b);return a};a._engine.rect=function(a,b,c){var g=l("rect");a=new p(g,a,c);a.type="rect";b.rx=b.ry=b.r;R(a,b);v(a,b);return a};a._engine.ellipse=function(a,b,c){var g=l("ellipse");a=new p(g,a,c);a.type="ellipse";R(a,b);v(a,b);return a};a._engine.image=function(a,b,c){var g=l("image");a=new p(g,a,c);a.type="image";g.setAttribute("preserveAspectRatio","none");R(a,b);v(a,b);return a};a._engine.text=function(a,b,c){var g=l("text");a=new p(g,a,c);a.type=
"text";a._textdirty=!0;R(a,b);v(a,b);return a};a._engine.setSize=function(a,b){this.width=a||this.width;this.height=b||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};a._engine.create=function(){var b=a._getContainer.apply(0,arguments),c=b&&b.container,g=b.x,d=b.y,z=b.width,b=b.height;if(!c)throw Error("SVG container not found.");var w=l("svg"),e,g=g||0,d=d||0,z=z||512,b=b||
342;l(w,{height:b,version:1.1,width:z,xmlns:"http://www.w3.org/2000/svg"});1==c?(w.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:"+g+"px;top:"+d+"px",a._g.doc.body.appendChild(w),e=1):(w.style.cssText="overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:-moz-none;-khtml-user-select:none;-ms-user-select:none;user-select:none;-o-user-select:none;cursor:default;position:relative",
c.firstChild?c.insertBefore(w,c.firstChild):c.appendChild(w));c=new a._Paper;c.width=z;c.height=b;c.canvas=w;l(w,{id:"raphael-paper-"+c.id});c.clear();c._left=c._top=0;e&&(c.renderfix=function(){});c.renderfix();return c};a._engine.setViewBox=function(a,b,c,g,d){h("raphael.setViewBox",this,this._viewBox,[a,b,c,g,d]);var w=z(c/this.width,g/this.height),e=this.top,E=d?"meet":"xMinYMin",I;null==a?(this._vbSize&&(w=1),delete this._vbSize,I="0 0 "+this.width+" "+this.height):(this._vbSize=w,I=a+" "+b+
" "+c+" "+g);for(l(this.canvas,{viewBox:I,preserveAspectRatio:E});w&&e;)E="stroke-width"in e.attrs?e.attrs["stroke-width"]:1,e.attr({"stroke-width":E}),e._.dirty=1,e._.dirtyT=1,e=e.prev;this._viewBox=[a,b,c,g,!!d];return this};a.prototype.renderfix=function(){var a=this.canvas,b=a.style,c;try{c=a.getScreenCTM()||a.createSVGMatrix()}catch(g){c=a.createSVGMatrix()}a=-c.e%1;c=-c.f%1;if(a||c)a&&(this._left=(this._left+a)%1,b.left=this._left+"px"),c&&(this._top=(this._top+c)%1,b.top=this._top+"px")};a.prototype._desc=
function(b){var c=this.desc;if(c)for(;c.firstChild;)c.removeChild(c.firstChild);else this.desc=c=l("desc"),this.canvas.appendChild(c);c.appendChild(a._g.doc.createTextNode(a.is(b,"string")?b:"Created with Red Raphaël "+a.version))};a.prototype.clear=function(){var a;for(h("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"))};a.prototype.remove=function(){var b;
for(h("raphael.remove",this);b=this.bottom;)b.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(b in this)this[b]="function"==typeof this[b]?a._removedFactory(b):null;this.removed=!0};var B=a.st,s;for(s in r)r.hasOwnProperty(s)&&!B.hasOwnProperty(s)&&(B[s]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(s))}})();
(function(){if(a.vml){var b=String,c=parseFloat,g=Math,d=g.round,z=g.max,w=g.min,e=g.sqrt,E=g.abs,I=/[, ]+/,u=a.eve,k={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},h=/([clmz]),?([^clmz]*)/gi,A=/ progid:\S+Blur\([^\)]+\)/g,l=/-?[^,\s-]+/g,f={path:1,rect:1,image:1},P={circle:1,ellipse:1},D=function(c){var g=/[ahqstv]/ig,z=a._pathToAbsolute;b(c).match(g)&&(z=a._path2curve);g=/[clmz]/g;if(z==a._pathToAbsolute&&!b(c).match(g))return(c=b(c).replace(h,function(a,b,c){var g=[],z="m"==b.toLowerCase(),
w=k[b];c.replace(l,function(a){z&&2==g.length&&(w+=g+k["m"==b?"l":"L"],g=[]);g.push(d(21600*a))});return w+g}))||"m0,0";var g=z(c),w;c=[];for(var e=0,E=g.length;e<E;e++){z=g[e];w=g[e][0].toLowerCase();"z"==w&&(w="x");for(var I=1,u=z.length;I<u;I++)w+=d(21600*z[I])+(I!=u-1?",":"");c.push(w)}return c.length?c.join(" "):"m0,0"},n=function(b,c,g){var d=a.matrix();d.rotate(-b,.5,.5);return{dx:d.x(c,g),dy:d.y(c,g)}},m=function(a,b,c,g,d,z){var w=a._,e=a.matrix,I=w.fillpos;a=a.node;var u=a.style,k=1,h="",
A=21600/b,l=21600/c;u.visibility="hidden";if(b&&c){a.coordsize=E(A)+" "+E(l);u.rotation=z*(0>b*c?-1:1);z&&(d=n(z,g,d),g=d.dx,d=d.dy);0>b&&(h+="x");0>c&&(h+=" y")&&(k=-1);u.flip=h;a.coordorigin=g*-A+" "+d*-l;if(I||w.fillsize)if(g=(g=a.getElementsByTagName("fill"))&&g[0])a.removeChild(g),I&&(d=n(z,e.x(I[0],I[1]),e.y(I[0],I[1])),g.position=d.dx*k+" "+d.dy*k),w.fillsize&&(g.size=w.fillsize[0]*E(b)+" "+w.fillsize[1]*E(c)),a.appendChild(g);u.visibility="visible"}};a._url="";a.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+
this.version};var ib=function(a,c,g){c=b(c).toLowerCase().split("-");g=g?"end":"start";for(var d=c.length,z="classic",w="medium",e="medium";d--;)switch(c[d]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":z=c[d];break;case "wide":case "narrow":e=c[d];break;case "long":case "short":w=c[d]}a=a.node.getElementsByTagName("stroke")[0];a[g+"arrow"]=z;a[g+"arrowlength"]=w;a[g+"arrowwidth"]=e},ka=function(a,b){for(var c in b)u("raphael.attr."+c+"."+a.id,a,b[c],c),a.ca[c]&&
a.attr(c,b[c])},G=a._setFillAndStroke=function(g,e){if(g.paper.canvas){g.attrs=g.attrs||{};var E=g.node,u=g.attrs,h=E.style,k=f[g.type]&&(e.x!=u.x||e.y!=u.y||e.width!=u.width||e.height!=u.height||e.cx!=u.cx||e.cy!=u.cy||e.rx!=u.rx||e.ry!=u.ry||e.r!=u.r),A=P[g.type]&&(u.cx!=e.cx||u.cy!=e.cy||u.r!=e.r||u.rx!=e.rx||u.ry!=e.ry),l="group"===g.type,n;for(n in e)e.hasOwnProperty(n)&&(u[n]=e[n]);k&&(u.path=a._getPath[g.type](g),g._.dirty=1);e.href&&(E.href=e.href);e.title&&(E.title=e.title);e.target&&(E.target=
e.target);e.cursor&&(h.cursor=e.cursor);"blur"in e&&g.blur(e.blur);if(e.path&&"path"==g.type||k)E.path=D(~b(u.path).toLowerCase().indexOf("r")?a._pathToAbsolute(u.path):u.path),"image"==g.type&&(g._.fillpos=[u.x,u.y],g._.fillsize=[u.width,u.height],m(g,1,1,0,0,0));"transform"in e&&g.transform(e.transform);"rotation"in e&&(h=e.rotation,a.is(h,"array")?g.rotate.apply(g,h):g.rotate(h));"visibility"in e&&("hidden"===e.visibility?g.hide():g.show());A&&(h=+u.cx,A=+u.cy,k=+u.rx||+u.r||0,n=+u.ry||+u.r||0,
E.path=a.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",d(21600*(h-k)),d(21600*(A-n)),d(21600*(h+k)),d(21600*(A+n)),d(21600*h)));"clip-rect"in e&&(h=b(e["clip-rect"]).split(I),4==h.length&&(h[0]=+h[0],h[1]=+h[1],h[2]=+h[2]+h[0],h[3]=+h[3]+h[1],k=l?E:E.clipRect||a._g.doc.createElement("div"),A=k.style,l?(g.clip=h.slice(),k=g.matrix.offset(),k=[c(k[0]),c(k[1])],h[0]-=k[0],h[1]-=k[1],h[2]-=k[0],h[3]-=k[1],A.width="1px",A.height="1px"):E.clipRect||(A.top="0",A.left="0",A.width=g.paper.width+"px",A.height=
g.paper.height+"px",E.parentNode.insertBefore(k,E),k.appendChild(E),k.raphael=!0,k.raphaelid=E.raphaelid,E.clipRect=k),A.position="absolute",A.clip=a.format("rect({1}px {2}px {3}px {0}px)",h)),e["clip-rect"]||(l&&g.clip?(E.style.clip="rect(0px 10800px 10800px 0px)",delete g.clip):E.clipRect&&(E.clipRect.style.clip="rect(0px 10800px 10800px 0px)")));g.textpath&&(l=g.textpath.style,e.font&&(l.font=e.font),e["font-family"]&&(l.fontFamily='"'+e["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+
'"'),e["font-size"]&&(l.fontSize=e["font-size"]),e["font-weight"]&&(l.fontWeight=e["font-weight"]),e["font-style"]&&(l.fontStyle=e["font-style"]));"arrow-start"in e&&ib(g,e["arrow-start"]);"arrow-end"in e&&ib(g,e["arrow-end"],1);if(null!=e.opacity||null!=e["stroke-width"]||null!=e.fill||null!=e.src||null!=e.stroke||null!=e["stroke-width"]||null!=e["stroke-opacity"]||null!=e["fill-opacity"]||null!=e["stroke-dasharray"]||null!=e["stroke-miterlimit"]||null!=e["stroke-linejoin"]||null!=e["stroke-linecap"]){l=
E.getElementsByTagName("fill");h=-1;l=l&&l[0];!l&&(l=p("fill"));"image"==g.type&&e.src&&(l.src=e.src);e.fill&&(l.on=!0);if(null==l.on||"none"==e.fill||null===e.fill)l.on=!1;l.on&&e.fill&&((A=b(e.fill).match(a._ISURL))?(l.parentNode==E&&E.removeChild(l),l.rotate=!0,l.src=A[1],l.type="tile",k=g.getBBox(1),l.position=k.x+" "+k.y,g._.fillpos=[k.x,k.y],a._preload(A[1],function(){g._.fillsize=[this.offsetWidth,this.offsetHeight]})):(A=a.getRGB(e.fill),l.color=A.hex,l.src="",l.type="solid",A.error&&(g.type in
{circle:1,ellipse:1}||"r"!=b(e.fill).charAt())&&v(g,e.fill,l)?(u.fill="none",u.gradient=e.fill,l.rotate=!1):"opacity"in A&&!("fill-opacity"in e)&&(h=A.opacity)));if(-1!==h||"fill-opacity"in e||"opacity"in e)A=((+u["fill-opacity"]+1||2)-1)*((+u.opacity+1||2)-1)*((+h+1||2)-1),A=w(z(A,0),1),l.opacity=A,l.src&&(l.color="none");E.appendChild(l);l=E.getElementsByTagName("stroke")&&E.getElementsByTagName("stroke")[0];h=!1;!l&&(h=l=p("stroke"));if(e.stroke&&"none"!=e.stroke||e["stroke-width"]||null!=e["stroke-opacity"]||
e["stroke-dasharray"]||e["stroke-miterlimit"]||e["stroke-linejoin"]||e["stroke-linecap"])l.on=!0;"none"!=e.stroke&&null!==e.stroke&&null!=l.on&&0!=e.stroke&&0!=e["stroke-width"]||(l.on=!1);A=a.getRGB("stroke"in e?e.stroke:u.stroke);l.on&&e.stroke&&(l.color=A.hex);A=((+u["stroke-opacity"]+1||2)-1)*((+u.opacity+1||2)-1)*((+A.opacity+1||2)-1);k=.75*(c(e["stroke-width"])||1);A=w(z(A,0),1);null==e["stroke-width"]&&(k=u["stroke-width"]);e["stroke-width"]&&(l.weight=k);k&&1>k&&(A*=k)&&(l.weight=1);l.opacity=
A;e["stroke-linejoin"]&&(l.joinstyle=e["stroke-linejoin"])||h&&(h.joinstyle="miter");l.miterlimit=e["stroke-miterlimit"]||8;e["stroke-linecap"]&&(l.endcap="butt"==e["stroke-linecap"]?"flat":"square"==e["stroke-linecap"]?"square":"round");e["stroke-dasharray"]&&(A={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},l.dashstyle=A.hasOwnProperty(e["stroke-dasharray"])?A[e["stroke-dasharray"]]:
e["stroke-dasharray"].join&&e["stroke-dasharray"].join(" ")||"");h&&E.appendChild(l)}if("text"==g.type){g.paper.canvas.style.display="";E=g.paper.span;l=u.font&&u.font.match(/\d+(?:\.\d*)?(?=px)/);A=u["line-height"]&&(u["line-height"]+"").match(/\d+(?:\.\d*)?(?=px)/);h=E.style;u.font&&(h.font=u.font);u["font-family"]&&(h.fontFamily=u["font-family"]);u["font-weight"]&&(h.fontWeight=u["font-weight"]);u["font-style"]&&(h.fontStyle=u["font-style"]);l=c(u["font-size"]||l&&l[0])||10;h.fontSize=100*l+"px";
A=c(u["line-height"]||A&&A[0])||12;u["line-height"]&&(h.lineHeight=100*A+"px");a.is(e.text,"array")&&(e.text=g.textpath.string=e.text.join("\n").replace(/<br\s*?\/?>/ig,"\n"));g.textpath.string&&(E.innerHTML=b(g.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));E=E.getBoundingClientRect();g.W=u.w=(E.right-E.left)/100;g.H=u.h=(E.bottom-E.top)/100;g.X=u.x;g.Y=u.y;switch(u["vertical-align"]){case "top":g.bby=g.H/2;break;case "bottom":g.bby=-g.H/2;break;default:g.bby=
0}("x"in e||"y"in e||void 0!==g.bby)&&(g.path.v=a.format("m{0},{1}l{2},{1}",d(21600*u.x),d(21600*(u.y+(g.bby||0))),d(21600*u.x)+1));E="x y text font font-family font-weight font-style font-size line-height".split(" ");l=0;for(h=E.length;l<h;l++)if(E[l]in e){g._.dirty=1;break}switch(u["text-anchor"]){case "start":g.textpath.style["v-text-align"]="left";g.bbx=g.W/2;break;case "end":g.textpath.style["v-text-align"]="right";g.bbx=-g.W/2;break;default:g.textpath.style["v-text-align"]="center",g.bbx=0}g.textpath.style["v-text-kern"]=
!0}}},v=function(g,d,z){g.attrs=g.attrs||{};var w=Math.pow,E="linear",I=".5 .5";g.attrs.gradient=d;d=b(d).replace(a._radial_gradient,function(a,b){E="radial";b=b&&b.split(",")||[];var g=b[3],d=b[4];g&&d&&(g=c(g),d=c(d),.25<w(g-.5,2)+w(d-.5,2)&&(d=e(.25-w(g-.5,2))*(2*(.5<d)-1)+.5),I=g+" "+d);return""});d=d.split(/\s*\-\s*/);if("linear"==E){var u=d.shift(),u=-c(u);if(isNaN(u))return null}d=a._parseDots(d);if(!d)return null;g=g.shape||g.node;if(d.length){z.parentNode==g&&g.removeChild(z);z.on=!0;z.method=
"none";z.color=d[0].color;z.color2=d[d.length-1].color;for(var h=[],k=1,A=void 0===d[0].opacity?1:d[0].opacity,l=0,f=d.length;l<f;l++)d[l].offset&&h.push(d[l].offset+" "+d[l].color),void 0!==d[l].opacity&&(k=d[l].opacity);z.colors=h.length?h.join():"0% "+z.color;z.opacity=k;z["o:opacity2"]=A;"radial"==E?(z.type="gradientTitle",z.focus="100%",z.focussize="0 0",z.focusposition=I,z.angle=0):(z.type="gradient",z.angle=(270-u)%360);g.appendChild(z)}return 1},R=function(b,c,g){g=g||c;var d;g.canvas&&g.canvas.appendChild(b);
d=p("skew");d.on=!0;b.appendChild(d);this.skew=d;this.node=this[0]=b;b.raphael=!0;b.raphaelid=this.id=a._oid++;this.Y=this.X=0;this.attrs=this.attrs||{};this.followers=this.followers||[];this.paper=c;this.ca=this.customAttributes=this.customAttributes||new c._CustomAttributes;this.matrix=a.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};this.parent=g;!g.bottom&&(g.bottom=this);(this.prev=g.top)&&(g.top.next=this);g.top=this;this.next=null},g=a.el;R.prototype=g;g.constructor=
R;g.transform=function(c){if(null==c)return this._.transform;var g=this.paper._viewBoxShift,d=g?"s"+[g.scale,g.scale]+"-1-1t"+[g.dx,g.dy]:"",z;g&&(z=c=b(c).replace(/\.{3}|\u2026/g,this._.transform||""));a._extractTransform(this,d+c);var g=this.matrix.clone(),w=this.skew;c=this.node;var d=~b(this.attrs.fill).indexOf("-"),e=!b(this.attrs.fill).indexOf("url(");g.translate(-.5,-.5);e||d||"image"==this.type?(w.matrix="1 0 0 1",w.offset="0 0",w=g.split(),d&&w.noRotation||!w.isSimple?(c.style.filter=g.toFilter(),
g=this.getBBox(),d=this.getBBox(1),e=g.x2&&d.x2&&"x2"||"x",w=g.y2&&d.y2&&"y2"||"y",e=g[e]-d[e],g=g[w]-d[w],c.coordorigin=-21600*e+" "+-21600*g,m(this,1,1,e,g,0)):(c.style.filter="",m(this,w.scalex,w.scaley,w.dx,w.dy,w.rotate))):(c.style.filter="",w.matrix=b(g),w.offset=g.offset());z&&(this._.transform=z);return this};g.rotate=function(a,g,d){if(this.removed)return this;if(null!=a){a=b(a).split(I);a.length-1&&(g=c(a[1]),d=c(a[2]));a=c(a[0]);null==d&&(g=d);if(null==g||null==d)d=this.getBBox(1),g=d.x+
d.width/2,d=d.y+d.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",a,g,d]]));return this}};g.translate=function(a,g){if(this.removed)return this;a=b(a).split(I);a.length-1&&(g=c(a[1]));a=c(a[0])||0;g=+g||0;this._.bbox&&(this._.bbox.x+=a,this._.bbox.y+=g);this.transform(this._.transform.concat([["t",a,g]]));return this};g.scale=function(a,g,d,z){if(this.removed)return this;a=b(a).split(I);a.length-1&&(g=c(a[1]),d=c(a[2]),z=c(a[3]),isNaN(d)&&(d=null),isNaN(z)&&(z=null));a=c(a[0]);
null==g&&(g=a);null==z&&(d=z);if(null==d||null==z)var w=this.getBBox(1);d=null==d?w.x+w.width/2:d;z=null==z?w.y+w.height/2:z;this.transform(this._.transform.concat([["s",a,g,d,z]]));this._.dirtyT=1;return this};g.hide=function(a){!this.removed&&(this.node.style.display="none");return this};g.show=function(a){!this.removed&&(this.node.style.display="");return this};g._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}};
g.remove=function(){if(!this.removed&&this.parent.canvas){var b=a._engine.getNode(this),c=this.paper,g=this.shape;c.__set__&&c.__set__.exclude(this);u.unbind("raphael.*.*."+this.id);g&&g.parentNode.removeChild(g);for(b.parentNode&&b.parentNode.removeChild(b);b=this.followers.pop();)b.el.remove();for(;b=this.bottom;)b.remove();this._drag&&this.undrag();if(this.events)for(;b=this.events.pop();)b.unbind();this.removeData();delete c._elementsById[this.id];a._tear(this,this.parent);for(b in this)this[b]=
"function"===typeof this[b]?a._removedFactory(b):null;this.removed=!0}};g.attr=function(b,c){if(this.removed)return this;if(null==b){var g={},d;for(d in this.attrs)this.attrs.hasOwnProperty(d)&&(g[d]=this.attrs[d]);g.gradient&&"none"==g.fill&&(g.fill=g.gradient)&&delete g.gradient;g.transform=this._.transform;g.visibility="none"===this.node.style.display?"hidden":"visible";return g}if(null==c&&a.is(b,"string")){if("fill"==b&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;
if("visibility"==b)return"none"===this.node.style.display?"hidden":"visible";var g=b.split(I),z={},w=0;for(d=g.length;w<d;w++)b=g[w],b in this.attrs?z[b]=this.attrs[b]:a.is(this.ca[b],"function")?z[b]=this.ca[b].def:z[b]=a._availableAttrs[b];return d-1?z:z[g[0]]}if(this.attrs&&null==c&&a.is(b,"array")){z={};w=0;for(d=b.length;w<d;w++)z[b[w]]=this.attr(b[w]);return z}null!=c&&(g={},g[b]=c);null==c&&a.is(b,"object")&&(g=b);for(w in g)u("raphael.attr."+w+"."+this.id,this,g[w],w);if(g){var e={};for(w in this.ca)if(this.ca[w]&&
g.hasOwnProperty(w)&&a.is(this.ca[w],"function")&&!this.ca["_invoked"+w]){this.ca["_invoked"+w]=!0;d=this.ca[w].apply(this,[].concat(g[w]));delete this.ca["_invoked"+w];for(z in d)d.hasOwnProperty(z)&&(g[z]=d[z]);this.attrs[w]=g[w];!1===d&&(e[w]=g[w],delete g[w])}"text"in g&&"text"==this.type&&(a.is(g.text,"array")&&(g.text=g.text.join("\n")),this.textpath.string=g.text.replace(/<br\s*?\/?>/ig,"\n"));G(this,g);var E,w=0;for(d=this.followers.length;w<d;w++)E=this.followers[w],E.cb&&!E.cb.call(E.el,
g,this)||E.el.attr(g);for(z in e)g[z]=e[z]}return this};g.blur=function(b){var c=this.node.runtimeStyle,g=c.filter,g=g.replace(A,"");0!==+b?(this.attrs.blur=b,c.filter=g+"  progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+b||1.5)+")",c.margin=a.format("-{0}px 0 0 -{0}px",d(+b||1.5))):(c.filter=g,c.margin=0,delete this.attrs.blur);return this};g.on=function(b,c){if(this.removed)return this;this.node["on"+b]=function(){var b=a._g.win.event;b.target=b.srcElement;c(b)};return this};a._engine.getNode=
function(a){a=a.node||a[0].node;return a.clipRect||a};a._engine.getLastNode=function(a){a=a.node||a[a.length-1].node;return a.clipRect||a};a._engine.group=function(b,c,g){var d=a._g.doc.createElement("div"),z=new R(d,b,g);d.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";z._id=c||"";c&&(d.className="raphael-group-"+z.id+"-"+c);(g||b).canvas.appendChild(d);z.type="group";z.canvas=z.node;z.transform=a._engine.group.transform;z.top=null;z.bottom=null;return z};a._engine.group.transform=
function(g){if(null==g)return this._.transform;var d=this.node.style,z=this.clip,w=this.paper._viewBoxShift,e=w?"s"+[w.scale,w.scale]+"-1-1t"+[w.dx,w.dy]:"";w&&(g=b(g).replace(/\.{3}|\u2026/g,this._.transform||""));a._extractTransform(this,e+g);g=this.matrix;e=g.offset();w=c(e[0])||0;e=c(e[1])||0;d.left=w+"px";d.top=e+"px";d.zoom=(this._.tzoom=g.get(0))+"";z&&(d.clip=a.format("rect({1}px {2}px {3}px {0}px)",[z[0]-w,z[1]-e,z[2]-w,z[3]-e]));return this};a._engine.path=function(a,b,c){var g=p("shape");
g.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";g.coordsize="21600 21600";g.coordorigin=a.coordorigin;a=new R(g,a,c);a.type=b.type||"path";a.path=[];a.Path="";b.type&&delete b.type;G(a,b);ka(a,b);return a};a._engine.rect=function(b,c,g){var d=a._rectPath(c.x,c.y,c.w,c.h,c.r);c.path=d;c.type="rect";b=b.path(c,g);c=b.attrs;b.X=c.x;b.Y=c.y;b.W=c.width;b.H=c.height;c.path=d;return b};a._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};a._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};a._engine.image=function(b,c,g){var d=a._rectPath(c.x,c.y,c.w,c.h);c.path=d;c.type="image";c.stroke="none";b=b.path(c,g);g=b.attrs;var d=b.node,z=d.getElementsByTagName("fill")[0];g.src=c.src;b.X=g.x=c.x;b.Y=g.y=c.y;b.W=g.width=c.w;b.H=g.height=c.h;z.parentNode==d&&d.removeChild(z);z.rotate=!0;z.src=g.src;z.type="tile";b._.fillpos=[g.x,g.y];
b._.fillsize=[g.w,g.h];d.appendChild(z);m(b,1,1,0,0,0);return b};a._engine.text=function(c,g,z){var w=p("shape"),e=p("path"),E=p("textpath");x=g.x||0;y=g.y||0;text=g.text;e.v=a.format("m{0},{1}l{2},{1}",d(21600*g.x),d(21600*g.y),d(21600*g.x)+1);e.textpathok=!0;E.string=b(g.text).replace(/<br\s*?\/?>/ig,"\n");E.on=!0;w.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";w.coordsize="21600 21600";w.coordorigin="0 0";c=new R(w,c,z);c.shape=w;c.path=e;c.textpath=E;c.type="text";c.attrs.text=
b(g.text||"");c.attrs.x=g.x;c.attrs.y=g.y;c.attrs.w=1;c.attrs.h=1;G(c,g);ka(c,g);w.appendChild(E);w.appendChild(e);return c};a._engine.setSize=function(b,c){var g=this.canvas.style;this.width=b;this.height=c;b==+b&&(b+="px");c==+c&&(c+="px");g.width=b;g.height=c;g.clip="rect(0 "+b+" "+c+" 0)";this._viewBox&&a._engine.setViewBox.apply(this,this._viewBox);return this};a._engine.setViewBox=function(a,b,c,g,d){u("raphael.setViewBox",this,this._viewBox,[a,b,c,g,d]);var w=this.width,e=this.height,E=1/z(c/
w,g/e),I,h;d&&(I=e/g,h=w/c,c*I<w&&(a-=(w-c*I)/2/I),g*h<e&&(b-=(e-g*h)/2/h));this._viewBox=[a,b,c,g,!!d];this._viewBoxShift={dx:-a,dy:-b,scale:E};this.forEach(function(a){a.transform("...")});return this};var p;a._engine.initWin=function(c){var g=c.document;g.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!g.namespaces.rvml&&g.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),p=a._createNode=function(a,c){var d=g.createElement("<rvml:"+a+' class="rvml">'),z;for(z in c)d[z]=
b(c[z]);return d}}catch(d){p=a._createNode=function(a,c){var d=g.createElement("<"+a+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">'),z;for(z in c)d[z]=b(c[z]);return d}}};a._engine.initWin(a._g.win);a._engine.create=function(){var b=a._getContainer.apply(0,arguments),c=b.container,g=b.height,d=b.width,z=b.x,b=b.y;if(!c)throw Error("VML container not found.");var w=new a._Paper,e=w.canvas=a._g.doc.createElement("div"),E=e.style,z=z||0,b=b||0,d=d||512,g=g||342;w.width=d;w.height=g;d==+d&&(d+=
"px");g==+g&&(g+="px");w.coordsize="21600000 21600000";w.coordorigin="0 0";e.id="raphael-paper-"+w.id;w.span=a._g.doc.createElement("span");w.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";e.appendChild(w.span);E.cssText=a.format("top:0;left:0;width:{0};height:{1};display:inline-block;cursor:default;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",d,g);1==c?(a._g.doc.body.appendChild(e),E.left=z+"px",E.top=b+"px",E.position="absolute"):c.firstChild?
c.insertBefore(e,c.firstChild):c.appendChild(e);w.renderfix=function(){};return w};a.prototype.clear=function(){var b;for(u("raphael.clear",this);b=this.bottom;)b.remove();this.canvas.innerHTML="";this.span=a._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};a.prototype.remove=function(){var b;for(u("raphael.remove",this);b=this.bottom;)b.remove();
this.canvas.parentNode.removeChild(this.canvas);for(b in this)this[b]="function"==typeof this[b]?a._removedFactory(b):null;return!0};var L=a.st,r;for(r in g)g.hasOwnProperty(r)&&!L.hasOwnProperty(r)&&(L[r]=function(a){return function(){var b=arguments;return this.forEach(function(c){c[a].apply(c,b)})}}(r))}})();ga?r.win.Raphael=a:Raphael=a;return a},!0)})();f.Raphael=C;f.Raphael.desc="";t&&t!==C?window.Raphael=t:window.Raphael===C&&(window.Raphael=void 0)}]);
FusionCharts.register("module",["private","fusioncharts.redraphael.helper",function(){var f={};this.hcLib.Raphael.fn._elementFromEvent=function(t){if(!t||this.removed)return null;var C=t.srcElement||t.target||(t=t.originalEvent)&&(t.srcElement||t.target)||f;"tspan"===C.nodeName&&(C=C.parentNode);return this.getById(C.raphaelid)}}]);
FusionCharts.register("module",["private","fusioncharts.redraphael.css",function(){var f=this.hcLib.Raphael,t=f.eve,C=f._g,q=f.fn,d=f.el,a=/[, ]+/,m=/\B([A-Z]{1})/g,F,c;F=function(a){this.styleSheet="";this.rules={};this.ns=a||""};c=F.prototype;c.getSheet=function(){var a=this.node;this.styleSheet=c.getStyleSheet("fusioncharts-raphael-stylesheet");this.styleSheet||(a=this.node=C.doc.createElement("style"),a.setAttribute("id",f.format("raphael-stylesheet-{0}",f._oid++)),a.setAttribute("type","text/css"),
a.setAttribute("title","fusioncharts-raphael-stylesheet"),(C.doc.head||C.doc.getElementsByTagName("head")[0]).appendChild(this.node),this.styleSheet=c.getStyleSheet("fusioncharts-raphael-stylesheet"));return this.styleSheet};c.getStyleSheet=function(a){for(var b=C.doc.styleSheets,c=b.length,d;c--;)if(d=b[c],d.title===a)return d};c.applyCSSRule=function(a,b){var c=this.styleSheet,d;if(!c)if(a&&b)c=this.getSheet();else return;d=(c.rules||c.cssRules||{}).length||0;c.insertRule?c.insertRule(a+"{"+b+"}",
d):c.addRule&&c.addRule(a,b,d)};c.removeCSS=function(a){var b=this.styleSheet,c=b.rules||b.cssRules||{},d=c.length||0,f;for(a=a||this.ns;d--;)f=c[d],(new RegExp(a)).test(f.selectorText)&&(b.removeRule?b.removeRule(d):b.deleteRule(d))};c.destroy=function(){this.removeCSS();delete this.node;delete this.styleSheet;delete this.ns;delete this.rules};c.clear=function(){this.removeCSS();this.rules={}};c.add=function(a,b){var c=this.rules[a]||(this.rules[a]={}),d;for(d in b)c[d]=b[d]};c.render=function(){this.setCssText()};
c.setCssText=function(a){var b=a?"":"\t";a=a?":":": ";var c="",d="",f,e;for(f in this.rules){c="";d=f.replace(/(^|\,)/g,"$1"+this.ns+" ");f=this.rules[f];for(e in f)f[e]&&(c+=b+e.replace(m,"-$1").toLowerCase()+a+f[e]+";");this.applyCSSRule(d,c)}};t.on("raphael.new",function(){this._stylesheet=this._stylesheet||new F;this.cssNamespace("")});t.on("raphael.remove",function(){this._stylesheet&&this._stylesheet.destroy();delete this._stylesheet});q.cssNamespace=function(a){arguments.length&&(this._stylesheet.ns=
f.format("{0}#raphael-paper-{1}",a&&a+" "||"",this.id));return this._stylesheet.ns};q.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};q.cssRender=function(){return f.svg&&this._stylesheet.render(),this};q.cssClear=function(){return this._stylesheet.clear(),this};f._availableAttrs["class"]="";f.svg&&t.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)});f.vml&&t.on("raphael.attr.class",function(a){var b=this.paper,c="."+a,b=b._stylesheet&&b._stylesheet.rules,d=this.parent,f=this.attrs,e={},h;this.node.className="group"===this.type?a&&this._id+" "+a||this._id:"rvml "+a;if(c&&b){a=b[c];for(h in a)"color"===h&&"text"===this.type&&(h="fill"),!f[h]&&(e[h]=a[h]);for(;d&&d.attr;){if(a=d.attr("class"))for(h in c="."+a+" "+c,a=b[c],a)"color"===h&&"text"===this.type&&(h="fill"),f[h]||e[h]||
(e[h]=a[h]);d=d.parent}this.css(e)}});d.css=function(c,b){var d,m,s,e;if(this.removed)return this;this.styles||(this.styles={});if(null==b&&f.is(c,"string")){d=c.split(a);m={};e=0;for(s=d.length;e<s;e++)c=d[e],c in this.styles&&(m[c]=this.styles[c]);return s-1?m:m[d[0]]}if(null==b&&f.is(c,"array")){m={};e=0;for(s=c.length;e<s;e++)m[c[e]]=this.styles(c[e]);return m}null!=b?(d={},d[c]=b):null!=c&&f.is(c,"object")&&(d=c);m={};for(e in d)s=e.replace(/\B([A-Z]{1})/g,"-$1").toLowerCase(),f._availableAttrs.hasOwnProperty(s)||
"color"===s?("color"===s&&"text"===this.type&&(s="fill"),m[s]=d[e],m.dirty=!0):(t("raphael.css."+s+"."+this.id,this,d[e],s),this.node.style[s]=d[e],this.styles[s]=d[e]);e=0;for(s=this.followers.length;e<s;e++)this.followers[e].el.attr(d);m.hasOwnProperty("dirty")&&(delete m.dirty,this.attr(m));return this}}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelexport",function(){var f=this.hcLib,t=f.Raphael,C=f.pluckNumber,q=f.pluck,d=t._availableAttrs,a=/^matrix\(|\)$/g,m=/\,/g,F=/\n|<br\s*?\/?>/ig,c=/[^\d\.]/ig,l=/[\%\(\)\s,\xb0#]/g,b=/group/ig,p=/&/g,H=/"/g,s=/'/g,e=/</g,h=/>/g,k=0;(function(f){var t=Math,J=parseFloat,n=t.max,N=t.abs,B=t.pow,U=String,r=/[, ]+/,ga=[{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()}}],X={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=f._pathToAbsolute(c||"");b.attrSTR+=' d="'+(c.toString&&c.toString()||"").replace(m," ")+'"'},gradient:function(a,b,c){var d=a.attrs.gradient,e="linear",h,k,m,r=.5,u=.5,L=k="",p="",s,q,F,X;h=d.replace(l,"_");if(!c[h]){d=U(d).replace(f._radial_gradient,function(a,b){var c,d,h,k,l,f,n;b=b&&b.split(",")||[];e="radial";c=b[0];d=b[1];h=b[2];k=b[3];l=b[4];X=b[5];n=c&&d;h&&(F=/\%/.test(h)?h:J(h));if("userSpaceOnUse"===
X)return n&&(r=c,u=d),k&&l&&(s=k,q=l,n||(r=s,u=q)),"";n&&(r=J(c),u=J(d),c=2*(.5<u)-1,.25<(f=B(r-.5,2))+B(u-.5,2)&&.25>f&&(u=t.sqrt(.25-f)*c+.5)&&.5!==u&&(u=u.toFixed(5)-1E-5*c));k&&l&&(s=J(k),q=J(l),c=2*(.5<q)-1,.25<(f=B(s-.5,2))+B(q-.5,2)&&.25>f&&(q=t.sqrt(.25-f)*c+.5)&&.5!==q&&(q=q.toFixed(5)-1E-5*c),n||(r=s,u=q));return""});d=d.split(/\s*\-\s*/);if("linear"===e){k=d.shift();k=-J(k);if(isNaN(k))return null;m=[0,0,t.cos(f.rad(k)),t.sin(f.rad(k))];k=1/(n(N(m[2]),N(m[3]))||1);m[2]*=k;m[3]*=k;0>m[2]&&
(m[0]=-m[2],m[2]=0);0>m[3]&&(m[1]=-m[3],m[3]=0)}d=f._parseDots(d);if(!d)return null;"radial"===e?(k='<radialGradient fx = "'+r+'" fy = "'+u+'" cy = "'+q+'" cx = "'+s+'" r = "'+F+'" gradientUnits = "'+X+'" id = "'+h+'">',L="</radialGradient>"):(k='<linearGradient x1 = "'+m[0]+'" y1 = "'+m[1]+'" x2 = "'+m[2]+'" y2 = "'+m[3]+'" gradientTransform ="matrix('+a.matrix.invert()+')" id = "'+h+'">',L="</linearGradient>");a=0;for(m=d.length;a<m;a++)p+='<stop offset="'+(d[a].offset?d[a].offset:a?"100%":"0%")+
'" stop-color="'+(d[a].color||"#fff")+'" stop-opacity="'+(void 0===d[a].opacity?1:d[a].opacity)+'" />';c[h]=!0;c.str+=k+p+L}b.attrSTR+=" fill=\"url('#"+h+"')\""},fill:function(a,b){var c=b.attrs,d=c.fill,e;a.attrs.gradient||(d=f.color(d),e=d.opacity,"text"===a.type?b.styleSTR+="fill:"+d+"; stroke-opacity:0; ":(b.attrSTR+=' fill="'+d+'"',c["fill-opacity"]||!e&&0!==e||(b.attrSTR+=' fill-opacity="'+e+'"')))},stroke:function(a,b){var c=b.attrs,d,e;d=f.color(c.stroke);e=d.opacity;"text"!==a.type&&(b.attrSTR+=
' stroke="'+d+'"',c["stroke-opacity"]||!e&&0!==e||(b.attrSTR+=' stroke-opacity="'+e+'"'))},"clip-rect":function(b,c,d){var e=U(c.attrs["clip-rect"]),h=e.split(r),e=e.replace(l,"_")+"__"+k++;4===h.length&&(d[e]||(d[e]=!0,d.str+='<clipPath id="'+e+'"><rect x="'+h[0]+'" y="'+h[1]+'" width="'+h[2]+'" height="'+h[3]+'" transform="matrix('+b.matrix.invert().toMatrixString().replace(a,"")+')"/></clipPath>'),c.attrSTR+=' clip-path="url(#'+e+')"')},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 d=q(b.attrs["font-size"],"10");d&&d.replace&&(d=d.replace(c,""));b.styleSTR+="font-size:"+d+"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,b){var d=b.attrs,k=d.text,l=q(d["font-size"],d.font,"10"),f=q(d["line-height"]),n,m,v;l&&l.replace&&(l=l.replace(c,""));l=C(l);f&&f.replace&&(f=f.replace(c,""));f=C(f,l&&1.2*l);n=l?.85*l:.75*f;l=d.x;m=q(d["vertical-align"],"middle").toLowerCase();k=U(k).split(F);v=k.length;d=0;for(n="top"===m?n:"bottom"===m?n-f*v:n-f*v*.5;d<v;d++)b.textSTR+="<tspan ",
m=(k[d]||"").replace(p,"&amp;").replace(H,"&quot;").replace(s,"&#39;").replace(e,"&lt;").replace(h,"&gt;"),b.textSTR=d?b.textSTR+('dy="'+f+'" x="'+l+'" '):b.textSTR+('dy="'+n+'"'),b.textSTR+=">"+m+"</tspan>"}},aa=function(c,e){var h="",k={attrSTR:"",styleSTR:"",textSTR:"",attrs:c.attr()},l=c.isShadow,f="",n="",m,v,u=k.attrs;if("none"===c.node.style.display||l)c.next&&(h+=aa(c.next,e));else{for(m in u)if("gradient"!==m&&(void 0!==d[m]||X[m])&&void 0!==u[m])if(X[m])X[m](c,k,e);else k.attrSTR+=" "+m+
'="'+u[m]+'"';c.attrs.gradient&&X.gradient(c,k,e);"rect"===c.type&&u.r&&(k.attrSTR+=' rx="'+u.r+'" ry="'+u.r+'"');for(v in c.styles)k.styleSTR+=v+":"+c.styles[v]+"; ";"image"===c.type&&(k.attrSTR+=' preserveAspectRatio="none"');if("text"===c.type&&!u["text-anchor"])X["text-anchor"](c,k);c.bottom&&(f=aa(c.bottom,e));c.next&&(n=aa(c.next,e));l=c.type;l.match(b)&&(l="g");h+="<"+l+' transform="matrix('+c.matrix.toMatrixString().replace(a,"")+')" style="'+k.styleSTR+'"'+k.attrSTR+">"+k.textSTR+f+"</"+
l+">"+n}return h},W=function(a,b){var c="",d;for(d in a)a.hasOwnProperty(d)&&("init"===b?c+=d+" { "+W(a[d],"attr")+" };":"attr"===b&&"object"!=typeof a[d]&&(c+=d+": "+a[d]+";"));return"init"===b?c.slice(0,-1):c};f.fn.toSVG=function(a){var b="",c={str:""},d=0,e=ga.length,h="";if(f.svg){if(this.canvas&&this.canvas.parentNode){for(b=this.canvas.parentNode.innerHTML;d<e;d+=1)c=ga[d],b=b.replace(c.reg,c.repStr);this._stylesheet&&this._stylesheet.rules&&(b=b.replace(/^(<svg\s[\s\S]*?>)/ig,'$1<style type="text/css">'+
W(this._stylesheet.rules,"init")+"</style>"))}}else b='<svg style="overflow: hidden; position: relative;" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="'+this.width+'" version="1.1" height="'+this.height+'">',this.bottom&&(h=aa(this.bottom,c)),b+="<defs>"+c.str+"</defs>"+h+"</svg>";a||(b=b.replace(/<image [^\>]*\>/gi,""));return b}})(t)}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelshadow",function(){var f=this.window,t=f.Math.sqrt,C=f.parseFloat,q=f.parseInt,f=f.SVGFilterElement||f.SVGFEColorMatrixElement&&2===f.SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE,d=this.hcLib.Raphael,a={"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"},m=d._createNode,F;d.svg?(f&&(d.el.dropshadow=function(a,l,b,f){var q=this.node,s=this._.shadowFilter,e=this.paper.cacheShadows||(this.paper.cacheShadows={}),h="drop-shadow"+[a,l,b,f].join(" "),k;if("none"===a){if(s){--s.use;this.node.removeAttribute("filter");if(!s.use){h=s.hash;for(k in s)a=s[k],a.parentNode&&a.parentNode.removeChild(a),delete s[k];delete e[h]}delete this._.shadowFilter}}else s&&e[h]===s||(s=this.paper.defs.appendChild(m("filter",{id:d.createUUID(),width:"200%",
height:"200%"})),f=d.color(f),f.error&&(f=d.color("rgba(0,0,0,1)")),k=d.pick(f.opacity,1),this._.shadowFilter=e[h]={use:1,filter:s,hash:h,offset:s.appendChild(m("feOffset",{result:"offOut","in":"SourceGraphic",dx:C(a),dy:C(l)})),matrix:s.appendChild(m("feColorMatrix",{result:"matrixOut","in":"offOut",type:"matrix",values:"0 0 0 0 "+f.r/255+" 0 0 0 0 "+f.g/255+" 0 0 0 0 "+f.b/255+" 0 0 0 "+k+" 0"})),blur:s.appendChild(m("feGaussianBlur",{result:"blurOut","in":"matrixOut",stdDeviation:t(C(b))})),blend:s.appendChild(m("feComposite",
{"in":"SourceGraphic",in2:"blurOut",operator:"over"}))},q.setAttribute("filter",'url("'+d._url+"#"+s.id+'")'));return this}),F=function(c,d){var b=this.__shadowscale,f={},m,s;for(s in c)switch(a[s]&&(f[s]=c[s],delete c[s]),s){case "transform":m=d.matrix.clone();m.translate(this.__shadowx,this.__shadowy);this.transform(m.toTransformString());break;case "stroke-width":c[s]=((f[s]||1)+6-2*this.__shadowlevel)*b}this.attr(c);for(s in f)c[s]=f[s]},d.ca["drop-shadow"]=function(a,f,b,m,t,s){b=this._.shadows||
(this._.shadows=[]);var e,h,k,v,K;if(!this.__shadowblocked)if("none"===a)for(;h=b.pop();)h.remove();else for(m=d.color(m),m.error&&(m=d.color("rgba(0,0,0,1)")),t instanceof Array?(e=t[0],t=t[1]):e=t,e=1/d.pick(e,1),t=1/d.pick(t,1),a=d.pick(a,1)*e,f=d.pick(f,1)*e,e=.05*d.pick(m.opacity,1),k=q(this.attr("stroke-width")||1,10)+6,v=this.matrix.clone(),v.translate(a,f),K=1;3>=K;K++)h=(b[K-1]||this.clone().follow(this,F,!s&&"before")).attr({stroke:m.hex,"stroke-opacity":e*K,"stroke-width":(k-2*K)*t,transform:v.toTransformString(),
"stroke-linecap":"round","stroke-linejoin":"round",fill:"none"}),h.__shadowlevel=K,h.__shadowscale=t,h.__shadowx=a,h.__shadowy=f,s&&s.appendChild(h),b.push(h);return!1},d.el.shadow=function(a,f,b,m){var q;b&&b.constructor===d.el.constructor&&(m=b,b=void 0);"object"===typeof a&&(f&&f.constructor===d.el.constructor&&(m=f),f=a.opacity,b=a.scalefactor,q=!!a.useFilter,a=void 0===a.apply?!!f:a.apply);void 0===f&&(f=1);if(this.dropshadow){if(q)return a&&this.dropshadow(1,1,3,"rgb(64,64,64)")||this.dropshadow("none"),
this;this._.shadowFilter&&this.dropshadow("none")}return this.attr("drop-shadow",a?[1,1,3,"rgba(64,64,64,"+f+")",b,m]:"none")}):d.vml?(d.ca["drop-shadow"]=function(a,f,b,m,q,s){var e=this._.shadow,h,k;if(this.isShadow)return!1;"none"===a?e&&(this._.shadow=e.remove()):(e||(e=this._.shadow=this.clone(),s&&s.appendChild(e.follow(this))||e.follow(this,void 0,"before"),e.attr({fill:"none","fill-opacity":.5,"stroke-opacity":1}).isShadow=!0,0>=e.attr("stroke-width")&&e.attr("stroke-width",1)),s=e.node.runtimeStyle,
h=s.filter.replace(/ progid:\S+Blur\([^\)]+\)/g,""),m=d.color(m),m.error&&(m=d.color("rgba(0,0,0,1)")),k=d.pick(m.opacity,1)/5,q=1/d.pick(q,1),a=d.pick(a,1)*q,f=d.pick(f,1)*q,e.translate(a,f),s.filter=h+" progid:DXImageTransform.Microsoft.Blur(pixelRadius="+C(.4*b)+" makeShadow=True Color="+m.hex+' shadowOpacity="'+k+'");');return!1},d.el.shadow=function(a,f,b,m){b&&b.constructor===d.el.constructor&&(m=b,b=void 0);"object"===typeof a&&(f&&"group"===f.type&&(m=f),f=a.opacity,b=a.scalefactor,a=void 0===
a.apply?!!f:a.apply);void 0===f&&(f=1);return this.attr("drop-shadow",a||!f?[1,1,5,"rgba(64,64,64,"+f+")",b,m]:"none")}):d.canvas&&(d.el.shadow=function(){return this})}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaelshapes",function(){var f=this.window,t="createTouch"in f.document,C=/msie/i.test(f.navigator.userAgent)&&!f.opera,q=f.Math,d=q.cos,a=q.sin,m=q.abs,F=q.pow,c=q.atan2,l=q.tan,b=q.acos,p=q.min,H=q.round,s=q.PI,e=q.sqrt,h=2*s,k=f.parseInt,v=f.parseFloat,K=String,J=Array.prototype.slice,n=F(2,-24),N="rgba(192,192,192,"+(C?.002:1E-6)+")",B=this.hcLib.Raphael,U=B.eve,r=B._createNode,ga=B._setFillAndStroke,X=B.el.constructor,aa={speed:"optimizeSpeed",
crisp:"crispEdges",precision:"geometricPrecision"},W={enabled:!1,"false":!1,0:!1,disabled:!0,"true":!0,1:!0},ya={Q:"L",Z:"X",q:"l",z:"x",",":" "},va=/,?([achlmqrstvxz]),?/gi,za=/\s*\,\s*/g,ja,O=function(){return this.join(",").replace(va,ja)},na,ma,M=B._cacher(function(a,b,c,d){return e(F(c-a,2)+F(d-b,2))}),T=B._cacher(function(a,b,c,d,e){var h=c-a,k=d-b;c=M(a,b,c,d);return{x:a+h/c*e,y:b+k/c*e}});if(B.svg)U.on("raphael.attr.shape-rendering",function(a,b){var c=this.node;this.attrs[b]=a=aa[a]||a||
"auto";c.setAttribute(b,a);c.style.shapeRendering=a});else if(B.vml)U.on("raphael.attr.shape-rendering",function(a){this.node.style.antialias="crisp"!==a});B.define&&B.define([{name:"polypath",polypath:function(){return this.path(void 0,B._lastArgIfGroup(arguments))},ca:{polypath:function(b,c,e,h,f,l){var n,m,r;n=[];b=k(b,10)||0;c=v(c)||0;e=v(e)||0;h=v(h)||0;f=null===f||isNaN(f)?.5*s:B.rad(f);l=null===l||isNaN(l)?0:v(l);m=f;if(2<b)switch(f=2*s/b,l){case 0:for(l=0;l<b;l++)n.push("L",c+h*d(-m),e+h*
a(-m)),m+=f;n[0]="M";n.push("Z");break;case 1:for(l=0;l<b;l++)n.push("M",c,e,"L",c+h*d(-m),e+h*a(-m)),m+=f;break;default:f*=.5;r=h*d(f)*(1-l);for(l=0;l<b;l++)n.push("L",c+h*d(-m),e+h*a(-m)),m+=f,n.push("L",c+r*d(-m),e+r*a(-m)),m+=f;n[0]="M";n.push("Z")}else 0===h?n.push("M",c,e,"L",c,e,"Z"):n.push("M",c-h,e,"A",h,h,0,0,0,c+h,e,"A",h,h,0,0,0,c-h,e,"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,
B._lastArgIfGroup(arguments))},ca:function(b,c,e,k,f,l){var v=l%h-f%h,r=l-f,B,p,q,M,t;this._.ringangle=.5*(f+l);m(r)<n?(r=d(f),f=a(f),e=["M",b+e*r,c+e*f,"L",b+k*r,c+k*f,"Z"]):(m(r)>n&&m(r)%h<n?(e=["M",b-e,c,"A",e,e,0,0,0,b+e,c,"A",e,e,0,0,0,b-e,c],0!==k&&(e=e.concat(["M",b-k,c,"A",k,k,0,0,1,b+k,c,"A",k,k,0,0,1,b-k,c]))):(r=d(f),f=a(f),B=d(l),l=a(l),v%=h,0>v&&(v+=h),v=v<s?0:1,p=b+e*r,M=c+e*f,q=b+e*B,t=c+e*l,B=b+k*B,l=c+k*l,.01>m(p-q)&&.01>m(M-t)&&(M=t+.01),e=["M",p,M,"A",e,e,0,v,1,q,t,"L",B,l],0!==
k&&(b+=k*r,c+=k*f,.01>m(B-b)&&.01>m(l-c)&&(c=l+.01),e.push("A",k,k,0,v,0,b,c))),e.push("Z"));return{path:e}}},{name:"cubepath",cubepath:function(){var a={"stroke-linejoin":"round","shape-rendering":"precision",stroke:"none"},b=arguments,c=b.length-1,d=b[c],e,h;d&&d.constructor===B.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(h in B.fn.cubepath.ca)a.ca[h]=B.fn.cubepath.ca[h];
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,h){var k=this._.cubetop,f=this._.cubeside;a=a||0;b=b||0;c=c||0;d=d||0;e=e||0;h=h||0;this.attr("path",["M",a+c,b,"l",0,d,-c,0,0,-d,"z"]);k.attr("path",["M",a,b,"l",1,1,c-1,0,0,-1,e,-h,-c,0,"z"]);f.attr("path",["M",a+c-1,b+1,"l",0,d-1,1,0,e,-h,
0,-d,-e,h]);return!1},"stroke-linejoin":function(){return{"stroke-linejoin":"round"}},"drop-shadow":function(a,b,c,d){var e=this._.cubetop,h=this._.cubeside;this.dropshadow&&(e.dropshadow(a,-b,c,d),h.dropshadow(a,-b,c,d));return!1},fill:function(a,b){var d=this._.cubetop,e=this._.cubeside,h=this.attr("cubepath")||[0,0,0,0,0,0],k=h[2],f=h[4],h=h[5],l;a=B.color(a);b?(this.attr("fill",a),d.attr("fill",B.tintshade(a,-.78).rgba),e.attr("fill",B.tintshade(a,-.65).rgba)):(l="opacity"in a?"rgba("+[a.r,a.g,
a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")",this.attr("fill",[270,B.tintshade(l,.55).rgba,B.tintshade(l,-.65).rgba].join("-")),e.attr("fill",[270,B.tintshade(l,-.75).rgba,B.tintshade(l,-.35).rgba].join("-")),d.attr("fill",[45+B.deg(c(h,f+k)),B.tintshade(l,-.78).rgba,B.tintshade(l,.22).rgba].join("-")));return!1}}},{name:"scroller",scroller:function(a,b,c,d,e,h,k){var f=this.group("scroller",k),l=f.attrs,n=f._.scroller={};e=e&&"horizontal"||"vertical";var r,p={},s,q,M;n.track=this.rect(f).mousedown(function(a){var b=
l["scroll-position"];a="horizontal"===l["scroll-orientation"]?a.layerX||a.x:a.layerY||a.y;a=(a-n.anchorOffset)/n.trackLength;r=B.animation({"scroll-position":a},2E3*m(b-a),"easeIn");f.animate(r);U("raphael.scroll.start."+f.id,f,b)}).mouseup(n._mouseupTrack=function(){this.stop(r);U("raphael.scroll.end."+this.id,this,l["scroll-position"])},f,!0);n.anchor=this.rect(f).drag(function(){p["scroll-position"]=s+arguments[q]/n.trackLength;f.animate(p,0)},function(a,b,c){q="horizontal"===l["scroll-orientation"]?
0:1;U("raphael.scroll.start."+f.id,f,s=l["scroll-position"]);c.stopPropagation()},function(){U("raphael.scroll.end."+f.id,f,s=l["scroll-position"])});for(M in B.fn.scroller.fn)f[M]=B.fn.scroller.fn[M];for(M in B.fn.scroller.ca)f.ca[M]=B.fn.scroller.ca[M];l["scroll-orientation"]=e;l["stroke-width"]=1;f.ca["scroll-repaint"]=f.ca["scroll-repaint-"+e];!B.is(h,"object")&&(h={});return f.attr({ishot:!0,"scroll-display-buttons":h.showButtons&&"arrow"||"none","scroll-display-style":h.displayStyleFlat&&"flat"||
"3d","scroll-ratio":v(h.scrollRatio)||1,"scroll-position":v(h.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;B.el.remove.apply(this,arguments)}},ca:{"stroke-width":function(){return!1},
"drop-shadow":function(a,b,c,d,e,h){this._.scroller.track.attr("drop-shadow",[a,b,c,d,e,h]);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,h=e["scroll-display-buttons"],k=e["scroll-repaint"],f,l;void 0===h&&(h="none");
a={none:"none",arrow:"arrow"}[a]||h;a!==h&&(e["scroll-display-buttons"]=a,"none"===a&&d.start?(d.arrowstart.remove(),delete d.arrowstart,d.arrowend.remove(),delete d.arrowend,d.start.unmouseup(d._mouseupStart),d.start.remove(),delete d.start,d.end.unmouseup(d._mouseupEnd),d.end.remove(),delete d.end):(d.arrowstart=c.polypath(b),d.arrowend=c.polypath(b),d.start=c.rect(b).mousedown(function(){var a;0!==(a=e["scroll-position"])&&(b.animate({"scroll-position":a-.1},100).animate(f=B.animation({"scroll-position":0},
4500*a,"easeIn")),U("raphael.scroll.start."+b.id,b,a))}).mouseup(d._mouseupStart=function(){b.stop(f);U("raphael.scroll.end."+b.id,b,e["scroll-position"])},b,!0),d.end=c.rect(b).mousedown(function(){var a;1!==(a=e["scroll-position"])&&(b.animate({"scroll-position":a+.1},100).animate(l=B.animation({"scroll-position":1},4500*(1-a),"easeIn")),U("raphael.scroll.start."+b.id,b,a))}).mouseup(d._mouseupEnd=function(){b.stop(l);U("raphael.scroll.end."+b.id,b,e["scroll-position"])},b,!0),e.fill&&b.attr("fill",
e.fill)),k&&b.attr("scroll-repaint",k));return{"scroll-display-buttons":a}},"scroll-orientation":function(a){var b=this.attrs,c=b["scroll-repaint"],d=b["scroll-orientation"];a={horizontal:"horizontal",vertical:"vertical"}[a]||d;d!==a&&(this.ca["scroll-repaint"]=this.ca["scroll-repaint-"+a],c&&(c[2]+=c[3],c[3]=c[2]-c[3],c[2]-=c[3],this.attr("scroll-repaint",c)),b.fill&&this.attr("fill",b.fill));return{"scroll-orientation":a}},"scroll-ratio":function(a){var b=this.attrs,c=b["scroll-ratio"],d=b["scroll-repaint"];
a=1<a?1:.01>a?.01:v(a);d&&a!==c&&(b["scroll-ratio"]=a,this.attr("scroll-repaint",d));return{"scroll-ratio":a}},"scroll-position":function(a,b){var c=this.attrs,d="horizontal"===c["scroll-orientation"],e=c["scroll-repaint"],h=c["scroll-position"],k=this._.scroller,f=k.anchor;a=1<a?1:0>a?0:v(a);isNaN(a)&&(a=h);e&&(h!==a||b)&&(h=k.start&&k.start.attr(d&&"width"||"height")||0,d&&f.attr("x",e[0]+h+(e[2]-2*h-f.attr("width"))*a+.5)||f.attr("y",e[1]+h+(e[3]-2*h-f.attr("height"))*a+.5),!b&&1>c["scroll-ratio"]&&
(U("raphael.scroll.change."+this.id,this,a),k.callback&&k.callback(a)));return{"scroll-position":a}},r:function(a){var b=this._.scroller;b.track.attr("r",a);b.anchor.attr("r","none"===this.attrs["scroll-display-buttons"]&&a||0);return!1},"scroll-repaint-horizontal":function(a,b,c,d){var e=this.attrs,h=this._.scroller,k=e["scroll-ratio"],f=e["scroll-position"],l=0,n=c*k,e="none"===e["scroll-display-buttons"];c&&--c;a&&(a+=.5);d&&--d;b&&(b+=.5);h.track.attr({width:c,height:d,y:b,x:a}).crisp();e||(l=
p(d,.5*c),n-=2*l*k,h.start.attr({width:l,height:d,x:a,y:b}),h.arrowstart.attr("polypath",[3,a+.5*l,b+.5*d,.25*l,180]),h.end.attr({width:l,height:d,x:a+c-l,y:b}),h.arrowend.attr("polypath",[3,a+c-.5*l,b+.5*l,.25*l,0]));h.trackLength=c-2*l-n;h.trackOffset=a+l+.5;h.anchorOffset=h.trackOffset+.5*(n-1);h.anchor.attr({height:d,width:n-1,y:b,x:h.trackOffset+h.trackLength*f}).crisp()},"scroll-repaint-vertical":function(a,b,c,d){var e=this.attrs,h=this._.scroller,k=e["scroll-ratio"],f=e["scroll-position"],
l=0,n=d*k,e="none"===e["scroll-display-buttons"];c&&--c;a&&(a+=.5);d&&--d;b&&(b+=.5);h.track.attr({width:c,height:d,y:b,x:a}).crisp();e||(l=p(c,.5*d),n-=2*l*k,h.start.attr({width:c,height:l,x:a,y:b}),h.arrowstart.attr("polypath",[3,a+.5*c,b+.5*l,.25*l,90]),h.end.attr({width:c,height:l,x:a,y:b+d-l}),h.arrowend.attr("polypath",[3,a+.5*c,b+d-.5*l,.25*l,-90]));h.trackLength=d-2*l-n;h.trackOffset=b+l+.5;h.anchorOffset=h.trackOffset+.5*(n-1);h.anchor.attr({height:n-1,width:c,y:h.trackOffset+h.trackLength*
f,x:a}).crisp()},fill:function(a){var b=this.attrs,c=this._.scroller,d=b["scroll-repaint"],e="flat"===b["scroll-display-style"],h="horizontal"===b["scroll-orientation"],k={stroke:"none"},f;t&&d&&3<(f=16-d[h&&3||2])&&(k.stroke=N,k["stroke-width"]=f);a=B.color(a);a.error&&(a=B.color("#000000"));a="opacity"in a?"rgba("+[a.r,a.g,a.b,a.opacity]+")":"rgb("+[a.r,a.g,a.b]+")";k.fill=e&&a||[90*h,B.tintshade(a,.15).rgba,a].join("-");k.stroke=B.tintshade(a,-.75).rgba;c.track.attr(k);k.fill=e&&B.tintshade(a,
-.6).rgba||[270*h,B.tintshade(a,.3).rgba+":40",B.tintshade(a,-.7).rgba].join("-");k.stroke=B.tintshade(a,-.6).rgba;c.anchor.attr(k);k.stroke="none";"none"!==b["scroll-display-buttons"]&&(k.fill=N,c.start.attr(k),c.end.attr(k),k.fill=B.tintshade(a,-.4).rgba,c.arrowstart.attr(k),c.arrowend.attr(k));return!1}}},{name:"button",button:function(a,b,c,d,e,h){h=this.group("button",h);var k;h._.button={bound:this.rect(h),tracker:this.rect(h).attr({fill:N,stroke:N,cursor:"pointer"}).data("compositeButton",
h)};!B.is(e,"object")&&(e={});for(k in B.fn.button.fn)h[k]=B.fn.button.fn[k];for(k in B.fn.button.ca)h.ca[k]=B.fn.button.ca[k];return h.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(){B.el.tooltip&&B.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;B.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=W[a];c=W[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",N).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,h=this.attrs["button-repaint"];a=K(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));h&&c["button-label"]!==a&&this.attr("button-repaint",h)},
"button-symbol":function(a){var b=this.attrs,c=this._.button,d=c.symbol,e=this.attrs["button-repaint"];a=K(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"}[K(a).toLowerCase()]||"none"}},"button-symbol-padding":function(a){return{"button-symbol-padding":v(a)}},
"button-padding":function(a,b){return{"button-padding":[null==a&&(a=5)||v(a),null==b&&a||v(b)]}},"button-repaint":function(a,b,c,d,e){var h=this._.button,k=h.bound,f=h.label,l=h.symbol,n=this.attrs,m=n["button-padding"],v=m[0],r=m[1],s,q;void 0===a&&(a=0);void 0===b&&(b=0);if(void 0===c||void 0===d)s=f&&f.getBBox()||{width:0,height:0},void 0===c&&(c=2*v+s.width),void 0===d&&(d=2*r+s.height);k=B.crispBound(a,b,c,d,k.attr("stroke-width"));k.r=B.pick(e,H(.1*p(d,c)));a=k.x;b=k.y;c=k.width;d=k.height;
f&&f.attr({x:a+c/2,y:b+d/2});if(l){!B.is(q=n["button-symbol-padding"],"finite")&&(q=.2*d);e=d-r;s=.5*e;switch(n["button-symbol-position"]+(f&&"+"||"-")){case "right+":a=a+(c+(2*s+r))-s-v;b+=.5*d;f.attr("transform",["t",-(e+q),0]);break;case "left+":a=a+v+s;b+=.5*d;f.attr("transform",["t",e+q,0]);break;case "top+":a+=.5*c;b=b+m[1]+s;f.attr("transform",["t",0,e+q]);break;case "bottom+":a+=.5*c;b=b+(d+(2*s+q))-r-s;f.attr("transform",["t",0,-(e+q)]);break;default:a+=.5*c,b+=.5*d}l.attr("symbol",[n["button-symbol"],
a,b,s])}h.bound.attr(k);h.tracker.attr(k)},fill:function(a,b,c,d){var e=this._.button,h=e.bound,k=e.symbol,f=e.label,l={normal:e.gradient,active:e.gradientActive,hover:e.gradientHover}[a];l||(a=B.getRGB(a),a.error&&(a=B.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,B.tintshade(a,-.8).rgba+":0",B.tintshade(a,.8).rgba+":100"].join("-"),e.gradientActive=[270,B.tintshade(a,-.8).rgba+":0",B.tintshade(a,.8).rgba+":100"].join("-"),d=B.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,B.tintshade(d,-.9).rgba+":0",B.tintshade(d,.7).rgba+":100"].join("-"),c=c||B.tintshade(a,.2).rgba,b=b||B.tintshade(a,-.2).rgba,e.symbolFill=c,e.labelFill=b,l=(this.pressed||this.active)&&e.gradientActive||this.hovered&&e.gradienthover||e.gradient);h.attr("fill",l);k&&k.attr("fill",e.symbolFill);f&&f.attr("fill",e.labelFill);return!1},stroke:function(a,b){var c=this._.button,d=c.symbol;
a=B.color(a);a.error&&(a=B.color("#999999"));c.bound.attr("stroke",a);d&&d.attr("stroke",b||a);return!1},"stroke-width":function(a,b){var c=this._.button,d=c.symbol;c.bound.attr("stroke-width",a);c.tracker.attr("stroke-width",a);d&&d.attr("stroke-width",b);return!1}}},{name:"trianglepath",trianglepath:function(){var a=arguments,b=B._lastArgIfGroup(a);return this.path(b).attr("trianglepath",[a[0],a[1],a[2],a[3],a[4],a[5],a[6]||0,a[7]||0,a[8]||0])},fn:{sides:function(){var a=this._args;return[M(a[0],
a[1],a[2],a[3]),M(a[2],a[3],a[4],a[5]),M(a[4],a[5],a[0],a[1])]},enclosedAngles:function(){var a=this._sides;return[b((F(a[0],2)+F(a[2],2)-F(a[1],2))/(2*a[0]*a[2])),b((F(a[0],2)+F(a[1],2)-F(a[2],2))/(2*a[0]*a[1])),b((F(a[2],2)+F(a[1],2)-F(a[0],2))/(2*a[2]*a[1]))]},semiperimeter:function(){var a=this._sides||this.sides();return(a[0]+a[1]+a[2])/2}},ca:{trianglepath:function(a,b,c,d,h,k,f,n,m){if(f||n||m){this._args=arguments;this._sides=this.sides();var v=this.enclosedAngles(),r;r=this.semiperimeter();
r=e(r*(r-this._sides[0])*(r-this._sides[1])*(r-this._sides[2]))/r;v=[p(f,r)/l(v[0]/2),p(n,r)/l(v[1]/2),p(m,r)/l(v[2]/2)];v=[T(a,b,h,k,v[0]),T(a,b,c,d,v[0]),T(c,d,a,b,v[1]),T(c,d,h,k,v[1]),T(h,k,c,d,v[2]),T(h,k,a,b,v[2])];this.attr({path:["M",v[0].x,v[0].y,"Q",a,b,v[1].x,v[1].y,"L",v[2].x,v[2].y,"Q",c,d,v[3].x,v[3].y,"L",v[4].x,v[4].y,"Q",h,k,v[5].x,v[5].y,"L",v[0].x,v[0].y]})}else this.attr({path:["M",a,b,"L",c,d,h,k,"Z"]})}}}]);B.ca["text-bound"]=function(a,b,c,d,e,h){d=this.paper;var k=this._.textbound;
if("text"===this.type){if(!(b&&"none"!==b||a&&"none"!==a))return this._.textbound=k&&k.unfollow(this).remove(),!1;c&&B.is(c,"finite")||(c=0);e&&B.is(e,"finite")||(e=0);!k&&(k=this._.textbound=d.rect(0,0,0,0,this.group).follow(this,B.ca["text-bound"].reposition,"before"));k.attr({stroke:b,"stroke-width":c,fill:a,"shape-rendering":1===c&&"crisp"||"",r:e});h&&k.attr("stroke-dasharray",h);B.ca["text-bound"].reposition.call(k,this.attr(),this);return!1}};B.ca["text-bound"].reposition=function(a,b){var c=
{},d,e,h,k,f;a.hasOwnProperty("visibility")&&this.attr("visibility",a.visibility);if(a.hasOwnProperty("text-bound")||a.hasOwnProperty("x")||a.hasOwnProperty("y")||a.hasOwnProperty("text")||a.hasOwnProperty("text-anchor")||a.hasOwnProperty("text-align")||a.hasOwnProperty("font-size")||a.hasOwnProperty("line-height")||a.hasOwnProperty("vertical-align")||a.hasOwnProperty("transform")||a.hasOwnProperty("rotation"))d=b.attrs["text-bound"],e=K(d&&d[3]||"0").split(za),d=v(e[0])||0,e=B.pick(v(e[1]),d),h=
b.getBBox(),k=h.width,f=h.height,isNaN(k)||(c.x=h.x-d,c.y=h.y-e,c.width=k+2*d,c.height=f+2*e),this.attr(c)};B.fn.symbol=function(){var a=arguments,b=a.length-1,c=a[b];c&&c.constructor===B.el.constructor?a[b]=void 0:c=void 0;b=this.path(void 0,c);b.ca.symbol=B.fn.symbol.ca.symbol;return a.length===!!c+0?b:b.attr("symbol",a)};B.fn.symbol.cache={"":B._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"]})};B.fn.symbol.ca=
{symbol:function(a){var b=B.is(a,"object")&&1===arguments.length&&!B.is(a,"function")?a:arguments,c;b===a&&(a=b[0]);b=(c=B.is(a,"function")&&a||B.fn.symbol.cache[a]||B.fn.symbol.cache[""])&&c.apply(B,J.call(b,1));B.is(b,"array")||B.is(b,"string")?this.attr("path",b):b&&this.attr(b)}};B.addSymbol=function(a,b){var c=B.is(b,"function")&&(c={},c[a]=b,c)||a,d=B.fn.symbol.cache,e=[],h;for(h in c)b=c[h],d[h]=B.is(b,"function")&&B._cacher(b,B)||(e.push(h),b);for(;h=e.pop();)d[h]=d[d[h]]};B.svg?(ja="$1",
na=function(a){a?"string"===typeof a?a=a.replace(va,ja):a.toString=O:a="M0,0";this.node.setAttribute("d",a.toString());return this},B._engine.litepath=function(a,b,c,d){a=r("path");(d||b).canvas.appendChild(a);b=new X(a,b,d);b.type="litepath";b.id=a.raphaelid=B._oid++;a.raphael=!0;ga(b,{fill:"none",stroke:"#000"});return b},B._getPath.litepath=function(a){return B.parsePathString(a.node.getAttribute("d"))}):B.vml&&(ja=function(a,b){return ya[b]||b},ma=function(){this._transform.apply(this,arguments);
this._.bcoord&&(this.node.coordsize=this._.bcoord);return this},na=function(a){a?"string"===typeof a?a=a.replace(va,ja):a.toString=O:a="M0,0";this.node.path=a;return this},B._engine.litepath=function(a,b,c,d){a=r("shape");var e=a.style,h=new X(a,b,d);e.cssText="position:absolute;left:0;top:0;width:21600px;height:21600px;";c=v(c);isNaN(c)?a.coordsize="21600 21600":(h._.bzoom=c,e.width="1px",e.height="1px",a.coordsize=h._.bcoord=c+" "+c);a.coordorigin=b.coordorigin;h.type="litepath";h.id=a.raphaelid=
B._oid++;a.raphael=!0;h._transform=h.transform;h.transform=ma;B._setFillAndStroke(h,{fill:"none",stroke:"#000"});(d||b).canvas.appendChild(a);b=r("skew");b.on=!0;a.appendChild(b);h.skew=b;return h},B._getPath.litepath=function(a){return B.parsePathString(a.node.path||"")});B.fn.litepath=function(a,b,c){b&&b.constructor===X&&(c=b,b=void 0);a&&a.constructor===X&&(c=a,a="");b=B._engine.litepath(a,this,b,c);b.ca.litepath=na;a&&b.attr("litepath",B.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 f=this.hcLib,t=f.Raphael,C=f.dem,q=this.window,d=q.document,a=/msie/i.test(q.navigator.userAgent)&&!q.opera,m="VML"===t.type,F=f.hasTouch,c={cursor:"cursor"},l={x:"left",y:"top",strokeWidth:"borderThickness","stroke-width":"borderThickness",width:"width",height:"height"},b={fill:"backgroundColor",stroke:"borderColor",color:"color"},p={left:0,top:0,padding:0,border:"none",margin:0,outline:"none","-webkit-apperance":"none",
position:"absolute",zIndex:20},H,s=function(a,b,c,e){a=d.createElement(a);for(var f in b)l[f]?a.style[f]=b[f]:a.setAttribute(f,b[f]);for(f in c)a.style[f]=c[f];e&&e.appendChild&&e.appendChild(a);return a},e;e=function(a,b,c){b&&b instanceof e&&(b=b.element);(this.element=s(a,c,p,b)).ishot="true";this.nodeName=a.toLowerCase();this.added=Boolean(b)};e.prototype={attr:function(e){var k=this.element,f={},p,s,n,q,B,t,r;if("object"!==typeof e){if(!(f=this[e])){if("string"===typeof e)k&&k.getAttribute&&
(q=k.getAttribute(e));else if(void 0!==e&&null!==e&&"object"===typeof e)for(n in e)k.setAttribute(n,e[n]);f=q}return f}for(p in e){n=e[p];if(c[p]){switch(p){case "cursor":"pointer"===n&&m&&(n="hand")}k.style[c[p]]=n;s=!0}else if(l[p])k.style[l[p]]=n+"px",s=!0;else if(b[p])k.style[b[p]]=n&&n.replace(/^#?([a-f0-9]+)/ig,"#$1")||"none",s=!0;else if(/^visibility$/i.test(p))s="hidden"===n,k.style.display=s?"none":"",this.hidden=s,s=!0;else if(/^opacity$/i.test(p))k.style.opacity=n,a&&(s=100*Number(n),k.style.filter=
"progid:DXImageTransform.Microsoft.Alpha(Opacity="+s+")"),s=!0;else if(/^innerhtml$/i.test(p)){if(m&&"select"==k.nodeName.toLowerCase()){for(s=n.match(/<option\s?[\s\S]*?(\/>|><\/option>|>[\s\S]*?<\/option>)/ig);k.firstChild;)k.removeChild(k.firstChild);B=0;for(t=s.length;B<t;B+=1)q=s[B],r=d.createElement("option"),/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig.test(q)&&(r.value=q.replace(/<option\s([\s\S]*[\'\"])\s*?(\/>|>[\s\S]*<\/option>)/ig,"$1").replace(/[\s\S]*value\s*\=\s*[\'\"]([\s\S]*)[\'\"]/,
"$1")),r.text=q.replace(/<option\s*[\s\S]*[\'\"]?\s*?[\/>|\>]([\s\S]*)<\/option>/ig,"$1 "),k.options.add(r)}else"input"!==k.nodeName.toLowerCase()&&void 0!==n&&(k.innerHTML=n||"");s=!0}else/^text$/i.test(p)?("input"!==k.nodeName.toLowerCase()&&(k.innerHTML="",void 0!==n&&k.appendChild(d.createTextNode(n))),s=!0):/^type$/i.test(p)&&a&&this.added&&(s=!0);s&&(f[p]=n,delete e[p],s=!1)}for(p in e)k.setAttribute(p,e[p]);for(p in f)this[p]=e[p]=f[p],delete f[p];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():f.dem.fire(this.element,"focus")},destroy:function(){var a=this.element||{};a.onclick=a.onmouseout=a.onmouseover=a.onmousemove=a.onblur=a.onfocus=
null;H||(H=s("div"));a&&H.appendChild(a);H.innerHTML="";delete this.element;return null},on:m?function(a,b){this.element["on"+a]=function(){var a=q.event;a.target=a.srcElement;b(a)};return this}:function(a,b){var c=b;F&&"click"===a&&(a="touchstart",c=function(a){a.preventDefault();b()});this.element["on"+a]=c;return this},bind:function(a,b,c){C.listen(this.element,a,b,c);return this},unbind:function(a,b){C.unlisten(this.element,a,b);return this},trigger:function(a,b){C.fire(this.element,a,b);return this},
fadeIn:function(a,b){var c="fast"===a?400:1E3;this.show();this.attr({opacity:0});f.danimate.animate(this.element,{opacity:1},c,"linear",b)}};e.prototype.constructor=e;t.fn.html=function(a,b,c,d){var f={},l;b&&"type"in b&&(f.type=b.type,delete b.type);a=(new e(a,d,f)).css(c).attr(b);for(l in f)b[l]=f[l];return a}}]);
FusionCharts.register("module",["private","modules.renderer.js-raphaeltooltip",function(){var f=this,t=f.window,C=t.document,q=C.body||C.getElementsByTagName("body")[0],d=f.hcLib,a=d.Raphael,m=a.eve,F=d.createElement,c=d.addEvent,l=d.removeEvent,b=d.getPosition,p=d.hasTouch,H=d.getTouchEvent,s=t.Math,e=s.ceil,h=s.floor,k={},v=t.screen.availHeight,K=t.screen.availWidth,J={"":1,moz:1,webkit:1,o:1,ms:1},n={borderRadius:"borderRadius",boxShadow:"boxShadow"},N=/\-([a-z])/ig,B=function(a,b){return b.toUpperCase()},
U=function(b){var c=r.forbiddenStyle,d,e,h;for(d in b)e=N.test(d)?d.replace(N,B):d,void 0!==b[d]&&!c[e]&&(this[e]=b[d]),a.vml&&/color/ig.test(e)&&(this[e]=a.getRGB(this[e]).toString());for(d in n)if(this[d])for(h in J)this[h+d]=this[d]},r=d.toolTip={elementId:"fusioncharts-tooltip-element",element:null,lastTarget:null,currentTarget:null,currentPaper:null,pointeroffset:12,prevented:!1,defaultStyle:d.extend2(U.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:{}},ga=function(a){!0===r._oobready?r._oobready=!1:(l(q,"touchstart",ga),!r.hidden&&r.currentTarget&&(a=a.srcElement||a.target||k,a.raphael&&r.currentTarget.paper.getById(a.raphaelid)===r.currentTarget||r.hide()))};a.svg&&(r.defaultContainerStyle.pointerEvents="none",r.defaultStyle.borderRadius=
"0",r.defaultStyle.boxShadow="none");a.vml&&(r.forbiddenStyle.borderRadius=!0,r.forbiddenStyle.boxShadow=!0,r.defaultStyle.filter="");r.setup=function(){var b=r.container,c=r.textElement,d=r.style,e=r.defaultContainerStyle,h=r.forbiddenStyle,k;b||(b=r.element=F("span"),(C.body||C.getElementsByTagName("body")[0]).appendChild(b),b.setAttribute("id",r.elementId),d=r.containerStyle=b.style,c=r.textElement=F("span"),b.appendChild(c),r.style=a.vml?c.runtimeStyle:c.style,r.style.overflow="hidden",r.style.display=
"block",r.hidden=!1,r.hide());for(k in e)!h[k]&&(d[k]=e[k]);r.scatted=!0;m.on("raphael.drag.start.*",function(){r.scatted&&(r.waitingScat=!0)});m.on("raphael.drag.move.*",function(){r.waitingScat&&(r.block(),r.waitingScat=!1)});m.on("raphael.drag.end.*",function(){r.waitingScat=!1;r.scatted&&r.unblock(!0)});m.on("raphael.remove",function(){if(r.currentPaper===this||r.currentTarget&&r.currentTarget.paper===this)r.hide(),r.currentTarget=r.currentPaper=null});f.addEventListener("LinkedChartInvoked",
function(a){r.currentPaper===a.sender.jsVars.hcObj.paper&&r.hide()});f.addEventListener("realTimeUpdateComplete",function(a){r.currentPaper===a.sender.jsVars.hcObj.paper&&r.hide()})};r.restyle=function(a){var b=r.style,c;for(c in a)b[c]=a[c]};r.onelement=function(a){if(!a.__tipProcessed){var d=this.paper,e="group"===this.type?d&&d._elementFromEvent(a):this,h=d.__tipStyle;e&&h&&e.__tipNeeded&&((a.originalEvent||a).FusionChartsPreventEvent&&r.preventTooltip(),r.hiding&&(r.hiding=clearTimeout(r.hiding)),
r.currentPaper!==d&&(d.__tipCp=d.canvas&&b(d.canvas.parentNode,!0)||{},r.restyle(d.__tipStyle),r.currentPaper=d),r.lastTarget=r.currentTarget,r.currentTarget=e,(r.scatted=e.__tipScatted)&&r.unblock(!0),r.onredraw.call(this,a),a.__tipProcessed=!0,p&&(r._oobready=!0,c(q||(q=C.body||C.getElementsByTagName("body")[0]),"touchstart",ga)))}};r.onredraw=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===r.currentTarget&&(a=H(a),r.x=h(a.pageX||a.clientX+C.body.scrollLeft+
C.documentElement.scrollLeft||0),r.y=h(a.pageY||a.clientY+C.body.scrollTop+C.documentElement.scrollTop||0),r.redraw()))};r.onhide=function(a){a.__tipProcessed||(a.__tipProcessed=!0,(this.paper&&this.paper._elementFromEvent(a))===r.currentTarget&&(r.hiding=setTimeout(r.hide,200)))};r.redraw=function(){if(!r.prevented&&!r.blocked&&r.currentTarget&&r.currentTarget.__tipNeeded){var a=r.currentTarget,b=a.paper,c=r.textElement,d=r.containerStyle,h=r.style,k=a.__tipText,a=r.pointeroffset,f=b.__tipCp,l=C.documentElement||
C.body,n=l.scrollLeft,l=l.scrollTop,m=r.x,B=r.y,p,u=b.width,s=b.height,b=b.__tipConstrain;if(100>u||100>s)b=!1;r.hidden&&(r.containerStyle.top="-999em",r.show());k!==r.text&&(r.text=k,d.width=d.height="",c.innerHTML=k,h.whiteSpace="nowrap",k=e(h.pixelWidth||c.offsetWidth||0),p=e(h.pixelHeight||c.offsetHeight||0),(r.textWidthOverflow=m+k>f.left+u)?(d.width=(u>k?k+2*a:u-2*a||0)+"px",h.whiteSpace="normal"):d.width="",(r.textHeightOverflow=p>s)?(d.height=(s||0)-2*a+"px",h.whiteSpace="normal"):d.height=
"");k=e(h.pixelWidth||c.offsetWidth||0);p=e(h.pixelHeight||c.offsetHeight||0);b?(r.textWidthOverflow?m=(m-k<f.left?f.left:m-k)-n:m+a+k>f.left-n+u-a&&(m=m-k-a),r.textHeightOverflow?B=f.top-l:B+a+p>f.top-l+s-a&&(B=B-p-1.5*a)):(n+K<m+a+k&&(m=m-k-a),l+v<B+a+p&&(B=B-p-1.5*a));d.left=(m+a||0)+"px";d.top=(B+a||0)+"px";r.hidden&&r.show()}};r.hide=function(){r.hiding&&(r.hiding=clearTimeout(r.hiding));r.containerStyle.display="none";r.hidden=!0;r.prevented=!1};r.show=function(){r.blocked||(r.hiding&&(r.hiding=
clearTimeout(r.hiding)),r.containerStyle.display="inline",r.hidden=!1)};r.preventTooltip=function(){r.prevented=!0};r.block=function(){r.blocked=!0;r.containerStyle.display="none"};r.unblock=function(a){r.blocked=!1;a&&(r.containerStyle.display=r.hidden&&"none"||"inline")};a.fn.tooltip=function(c,d,e){d&&(d=.4*(void 0===d.opacity?1:d.opacity),a.svg?c.boxShadow="1px 1px 3px rgba(64,64,64,"+d+")":c.filter='progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color="#404040", shadowOpacity="'+
d/2+'")');this.__tipStyle=new U(c);this.__tipCp=this.canvas&&b(this.canvas.parentNode,!0)||{};this.__tipConstrain=Boolean(e);return this};a.el.trackTooltip=function(a){var b=!!this.__tiptracking;if(void 0===a||(a=!!a)===b)return this;a?p?this.touchstart(r.onelement):(this.mouseover(r.onelement),this.mousemove(r.onredraw),this.mouseout(r.onhide)):p?this.untouchstart(r.onelement):(this.unmouseover(r.onelement),this.unmousemove(r.onredraw),this.unmouseout(r.onhide));this.__tiptracking=a;return this};
a.el.tooltip=function(b,c,d,e,h){r.setup();a.el.tooltip=function(a,b,c,d,e){b=!1===a||void 0===a||""===a;this.__tipScatted=void 0===d?this.__tipScatted:!d;void 0===this.__tipScatted&&(this.__tipScatted=!0);null!==e&&(this.__tip_blocked=e);b^!this.__tipText&&(this.__tipNeeded=!b);this.__tipText=a;if(r.currentTarget===this&&a!==r.text&&!r.hidden)r[b?"hide":"redraw"]();return this};return a.el.tooltip.call(this,b,c,d,e,h)};f.core._setTooltipZIndex=function(a){a=parseInt(a,10);r&&!isNaN(a)&&(r.defaultContainerStyle.zIndex=
a,r.containerStyle&&(r.containerStyle.zIndex=a))}}]);
FusionCharts.register("module",["private","modules.renderer.js-smartlabel",function(){var f=this.hcLib,t=f.isIE,C=f.hasSVG,q=Math.max,d=this.window,a=/ HtmlUnit/.test(d.navigator.userAgent),m=d.document,F=/ AppleWebKit\//.test(d.navigator.userAgent),c=!!m.createElement("canvas").getContext,l=!(!c||!m.createElement("canvas").getContext("2d").measureText),d=function(){function b(a,b,c){if(!a||!a.length)return 0;var d=c.getWidthFunction(),e=0,h=0,h=d(a),k=h/a.length;c=b;e=Math.ceil(b/k);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/k))e+=h;else return e;for(;0>c;)if(c=b-d(a.substr(0,e)),h=Math.floor(c/k))e+=h;else break;return e}function d(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(U){var c=m.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 H(b,c,e){if("undefined"!==typeof b&&"object"!==typeof b){this.id=b;var k;"string"===typeof c&&(c=m.getElementById(c));a:{if(c&&(c.offsetWidth||c.offsetHeight)){if(c.appendChild){c.appendChild(c=m.createElement("div"));c.className="fusioncharts-smartlabel-container";c.setAttribute("aria-hidden","true");c.setAttribute("role","presentation");b=c;break a}}else if((b=m.getElementsByTagName("body")[0])&&
b.appendChild){c=m.createElement("div");c.className="fusioncharts-smartlabel-container";c.setAttribute("aria-hidden","true");c.setAttribute("role","presentation");b.appendChild(c);b=c;break a}b=void 0}b=this.parentContainer=b;b.innerHTML="WgI";if(a||!b.offsetHeight&&!b.offsetWidth)U=!0;b.innerHTML="";for(k in h)b.style[k]=h[k];this.containerManager=new d(b,10);this.showNoEllipses=!e;this.init=!0;this.style={};this.setStyle()}}var s=f.supportedStyle,e={fontWeight:1,"font-weight":1,fontStyle:1,"font-style":1,
fontSize:1,"font-size":1,fontFamily:1,"font-family":1},h={position:"absolute",top:"-9999em",left:"-9999em",whiteSpace:"nowrap",padding:"0px",width:"1px",height:"1px",overflow:"hidden"},k=F?0:4.5,v=0,K=/\b_SmartLabel\b/,J=/\b_SmartLabelBR\b/,n=/(<[^<\>]+?\>)|(&(?:[a-z]+|#[0-9]+);|.)/ig,N=RegExp("\\<span[^\\>]+?_SmartLabel[^\\>]{0,}\\>(.*?)\\<\\/span\\>","ig"),B=/<[^>][^<]*[^>]+>/i,U=!1,r=0,ga=0,X,aa,W;m.getElementsByClassName?(X="getElementsByClassName",aa="_SmartLabel",W=!0):(X="getElementsByTagName",
aa="span",W=!1);d.prototype={get:function(a){var b=this.containers,c=this.length,d=this.maxContainers,e,h="",k="",k=this.getCanvasFont(a);for(e in s)void 0!==a[e]&&(h+=s[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,k)}return h},getCanvasFont:function(a){var b,
d=[];if(!c||!l)return!1;for(b in e)void 0!==a[b]&&d.push(a[b]);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=m.createElement("div");this.rootNode.appendChild(c);t&&!C?c.style.setAttribute("cssText",a):c.setAttribute("style",a);c.setAttribute("aria-hidden","true");c.setAttribute("role","presentation");c.style.display="inline-block";c.innerHTML="WgI";d.lineHeight=c.offsetHeight;d.avgCharWidth=c.offsetWidth/3;U?(c=d.svgText=m.createElementNS("http://www.w3.org/2000/svg","text"),c.setAttribute("style",a),this.svgRoot.appendChild(c),c.textContent="WgI",d.lineHeight=c.getBBox().height,d.avgCharWidth=
(c.getBBox().width-k)/3,c.textContent="...",d.ellipsesWidth=c.getBBox().width-k,c.textContent=".",d.dotWidth=c.getBBox().width-k):b?(c=d.canvas=m.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,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}};d.prototype.constructor=
d;H.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-k;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,c,d,e){if(!this.init)return!1;if(void 0===a||null===a)a="";var h={text:a,maxWidth:c,maxHeight:d,width:null,height:null,oriTextWidth:null,oriTextHeight:null,oriText:a,isTruncated:!1},k=!1,f,l,p=0,u,s,t,F=-1,C=k=-1;l=this.container;var H=this.context,$=0;t=0;var oa,ia,Ea;Ea=[];var fa=0,La=this.showNoEllipses?"":"...";s=this.lineHeight;var Ba,$=
[],F=f=-1;Ba=function(a){a=a.replace(/^\s\s*/,"");for(var b=/\s/,c=a.length;b.test(a.charAt(--c)););return a.slice(0,c+1)};k=-1;ia=this.getWidthFunction();if(l){if(!U){l.innerHTML=a;h.oriTextWidth=k=l.offsetWidth;h.oriTextHeight=t=l.offsetHeight;if(t<=d&&k<=c)return h.width=h.oriTextWidth=k,h.height=h.oriTextHeight=t,h;if(s>d)return h.text="",h.width=h.oriTextWidth=0,h.height=h.oriTextHeight=0,h}a=Ba(a).replace(/(\s+)/g," ");k=B.test(a);s=this.showNoEllipses?c:c-v;if(k){p=a.replace(n,"$2");a=a.replace(n,
'$1<span class="_SmartLabel">$2</span>');a=a.replace(/(<br\s*\/*\>)/g,'<span class="_SmartLabel _SmartLabelBR">$1</span>');l.innerHTML=a;fa=l[X](aa);H=0;for(ia=fa.length;H<ia;H+=1)if(a=fa[H],W||K.test(a.className))Ba=a.innerHTML,""!==Ba&&(" "===Ba?F=$.length:"-"===Ba&&(f=$.length),$.push({spaceIdx:F,dashIdx:f,elem:a}),Ea.push(Ba));fa=0;f=$.length;r=$[0].elem.offsetWidth;if(r>c)return h.text="",h.width=h.oriTextWidth=h.height=h.oriTextHeight=0,h;r>s&&!this.showNoEllipses&&(s=c-2*ga,s>r?La="..":(s=
c-ga,s>r?La=".":(s=0,La="")));Ea=$[0].elem.offsetLeft;H=$[0].elem.offsetTop;if(e)for(;fa<f;fa+=1)a=$[fa].elem,ia=a.offsetLeft-Ea+a.offsetWidth,ia>s&&(oa||(oa=fa),l.offsetWidth>c&&(u=fa,fa=f));else for(;fa<f;fa+=1)a=$[fa].elem,Ba=a.offsetHeight+(a.offsetTop-H),ia=a.offsetLeft-Ea+a.offsetWidth,e=null,ia>s?(oa||(oa=fa),ia>c&&(k=$[fa].spaceIdx,F=$[fa].dashIdx,k>C?($[k].elem.innerHTML="<br/>",C=k):F>C?($[F].elem.innerHTML=F===fa?"<br/>-":"-<br/>",C=F):a.parentNode.insertBefore(e=m.createElement("br"),
a),a.offsetHeight+a.offsetTop>d?(e?e.parentNode.removeChild(e):C===F?$[F].elem.innerHTML="-":$[k].elem.innerHTML=" ",u=fa,fa=f):oa=null)):Ba>d&&(u=fa,fa=f);if(u<f){h.isTruncated=!0;oa=oa?oa:u;for(fa=f-1;fa>=oa;--fa)a=$[fa].elem,a.parentNode.removeChild(a);for(;0<=fa;--fa)a=$[fa].elem,J.test(a.className)?a.parentNode.removeChild(a):fa=0}h.text=l.innerHTML.replace(N,"$1");h.isTruncated&&(h.text+=La,h.tooltext=p)}else{Ea=a.split("");f=Ea.length;l="";u=[];oa=Ea[0];this.cache[oa]?r=this.cache[oa].width:
(r=ia(oa),this.cache[oa]={width:r});if(s>r)u=a.substr(0,b(a,s,this)).split(""),fa=u.length;else{if(r>c)return h.text="",h.width=h.oriTextWidth=h.height=h.oriTextHeight=0,h;La&&(s=c-2*ga,s>r?La="..":(s=c-ga,s>r?La=".":(s=0,La="")))}$=ia(u.join(""));t=this.lineHeight;if(e){for(;fa<f;fa+=1)if(oa=u[fa]=Ea[fa],this.cache[oa]?r=this.cache[oa].width:(r=ia(oa),this.cache[oa]={width:r}),$+=r,$>s&&(l||(l=u.slice(0,-1).join("")),$>c))return h.text=Ba(l)+La,h.tooltext=h.oriText,h.width=ia(h.text),h.height=this.lineHeight,
h;h.text=u.join("");h.width=$;h.height=this.lineHeight}else{for(;fa<f;fa+=1)if(oa=u[fa]=Ea[fa]," "!==oa||H||(oa="&nbsp;"),this.cache[oa]?r=this.cache[oa].width:(r=ia(oa),this.cache[oa]={width:r}),$+=r,$>s&&(l||(l=u.slice(0,-1).join("")),$>c)){k=a.substr(0,u.length).lastIndexOf(" ");F=a.substr(0,u.length).lastIndexOf("-");k>C?($=ia(u.slice(C+1,k).join("")),u.splice(k,1,"<br/>"),C=k,e=k+1):F>C?(F===u.length-1?($=ia(u.slice(C+1,k).join("")),u.splice(F,1,"<br/>-")):($=ia(u.slice(C+1,k).join("")),u.splice(F,
1,"-<br/>")),C=F,e=F+1):(u.splice(u.length-1,1,"<br/>"+Ea[fa]),k=u.length-2,$=ia(u.slice(C+1,k+1).join("")),C=k,e=fa);t+=this.lineHeight;if(t>d)return h.text=Ba(l)+La,h.tooltext=h.oriText,h.width=c,h.height=t-this.lineHeight,h;p=q(p,$);l=null;oa=b(a.substr(e),s,this);$=ia(a.substr(e,oa||1));u.length<e+oa&&(u=u.concat(a.substr(u.length,e+oa-u.length).split("")),fa=u.length-1)}p=q(p,$);h.text=u.join("");h.width=p;h.height=t}return h}h.height=l.offsetHeight;h.width=l.offsetWidth}else h.error=Error("Body Tag Missing!");
return h},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,v=a.ellipsesWidth,ga=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(U){a=a.split(/(<br\s*\/*\>)/g);
c=a.length;for(b.height=this.lineHeight*c;c--;)e=q(e,d(a[c]));b.width=e}else c&&(c.innerHTML=a,b.width=c.offsetWidth,b.height=c.offsetHeight);return b}};return H.prototype.constructor=H}();f.SmartLabelManager=d}]);
FusionCharts.register("module",["private","modules.renderer.js-numberformatter",function(){var f=this,t=f.hcLib,C=t.pluckNumber,q=t.extend2,d=t.getValidValue,a=t.pluck,m=t.getFirstValue,F=Math.abs,c=Math.pow,l=Math.round,b=function(a){return a&&a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},p={},H=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};t.NumberFormatter=function(){function e(a,b,d){var e;
if(0>=b)return l(a)+"";if(isNaN(b))return a+="",12<a.length&&-1!=a.indexOf(".")&&(b=12-a.split(".")[0].length,e=c(10,b),a=l(a*e)/e+""),a;e=c(10,b);a=l(a*e)/e+"";if(1==d)for(-1==a.indexOf(".")&&(a+=".0"),d=a.split("."),b-=d[1].length,d=1;d<=b;d++)a+="0";return a}function h(a,b,c,d,e){var h=Number(a),k="",f=!1,l="",m="",v=l=0;if(isNaN(h))return"";if(1E15<h)return h.toExponential(e?1:14);l=0;v=a.length;-1!=a.indexOf(".")&&(k=a.substring(a.indexOf(".")+1,a.length),v=a.indexOf("."));0>h&&(f=!0,l=1);l=
a.substring(l,v);a=l.length;e=d.length-1;h=d[e];if(a<h)m=l;else for(;a>=h;)m=(a-h?c:"")+l.substr(a-h,h)+m,a-=h,h=0>=--e?d[0]:d[e],a<h&&(m=l.substring(a,0)+m);""!=k&&(m=m+b+k);!0===f&&(m="-"+m);return m}var k,f={formatnumber:"1",formatnumberscale:"1",forcenumberscale:"0",defaultnumberscale:"",numberscaleunit:["K","M"],numberscalevalue:[1E3,1E3],numberprefix:"",numbersuffix:"",decimals:"",forcedecimals:"0",yaxisvaluedecimals:"2",decimalseparator:".",thousandseparator:",",thousandseparatorposition:[3],
indecimalseparator:"",inthousandseparator:"",sformatnumber:"1",sformatnumberscale:"0",sforcenumberscale:"0",sdefaultnumberscale:"",snumberscaleunit:["K","M"],snumberscalevalue:[1E3,1E3],snumberprefix:"",snumbersuffix:"",sdecimals:"2",sforcedecimals:"0",syaxisvaluedecimals:"2",xFormatNumber:"0",xFormatNumberScale:"0",xforcenumberscale:"0",xDefaultNumberScale:"",xNumberScaleUnit:["K","M"],xNumberScaleValue:[1E3,1E3],xNumberPrefix:"",xNumberSuffix:""},s={mscombidy2d:{formatnumberscale:"1"}},p=function(c,
e,h){var k,l,p,t,F,J,H,va,za,ja=e.name,O=q({},f),na,ma,M,T,u,L,da,sa,ta,S,$;(p=s[ja])&&(O=q(O,p));this.csConf=O;this.chartAPI=e;d(c.numberscaleunit)&&(k=c.numberscaleunit.split(","));if(l=d(c.snumberscaleunit,c.numberscaleunit))l=l.split(",");if(p=d(c.xnumberscaleunit,c.numberscaleunit))p=p.split(",");if(t=d(c.ticknumberscaleunit,c.numberscaleunit))t=t.split(",");if(F=d(c.ynumberscaleunit,c.numberscaleunit))F=F.split(",");d(c.numberscalevalue)&&(J=c.numberscalevalue.split(","));if(ma=d(c.snumberscalevalue,
c.numberscalevalue))ma=ma.split(",");if(H=d(c.xnumberscalevalue,c.numberscalevalue))H=H.split(",");if(va=d(c.ticknumberscalevalue,c.numberscalevalue))va=va.split(",");if(za=d(c.ynumberscalevalue,c.numberscalevalue))za=za.split(",");if(d(c.thousandseparatorposition))for(na=c.thousandseparatorposition.split(","),M=na.length,u=f.thousandseparatorposition[0];M--;)T=parseInt(na[M],10),0>=T&&(T=u),u=na[M]=T;e||(e={});M=C(c.scalerecursively,0);T=C(c.sscalerecursively,M);u=C(c.xscalerecursively,M);L=C(c.maxscalerecursion,
-1);da=C(c.smaxscalerecursion,L);sa=C(c.xmaxscalerecursion,L);ta=d(c.scaleseparator," ");S=d(c.sscaleseparator,ta);$=d(c.xscaleseparator,ta);L||(L=-1);this.baseConf=k={cacheStore:[],formatnumber:a(c.formatnumber,e.formatnumber,O.formatnumber),formatnumberscale:a(c.formatnumberscale,e.formatnumberscale,O.formatnumberscale),forcenumberscale:a(c.forcenumberscale,e.forcenumberscale,O.forcenumberscale),defaultnumberscale:m(c.defaultnumberscale,e.defaultnumberscale,O.defaultnumberscale),numberscaleunit:a(k,
e.numberscaleunit,O.numberscaleunit).concat(),numberscalevalue:a(J,e.numberscalevalue,O.numberscalevalue).concat(),numberprefix:m(c.numberprefix,e.numberprefix,O.numberprefix),numbersuffix:m(c.numbersuffix,e.numbersuffix,O.numbersuffix),decimalprecision:parseInt("auto"===c.decimals?O.decimalprecision:a(c.decimals,c.decimalprecision,e.decimals,O.decimals,e.decimalprecision,O.decimalprecision),10),forcedecimals:a(c.forcedecimals,e.forcedecimals,O.forcedecimals),decimalseparator:a(c.decimalseparator,
e.decimalseparator,O.decimalseparator),thousandseparator:a(c.thousandseparator,e.thousandseparator,O.thousandseparator),thousandseparatorposition:a(na,e.thousandseparatorposition,O.thousandseparatorposition),indecimalseparator:m(c.indecimalseparator,e.indecimalseparator,O.indecimalseparator),inthousandseparator:m(c.inthousandseparator,e.inthousandseparator,O.inthousandseparator),scalerecursively:M,maxscalerecursion:L,scaleseparator:ta};d(k.inthousandseparator)&&(this.baseConf._REGinthousandseparator=
new RegExp(b(k.inthousandseparator),"g"));d(k.indecimalseparator)&&(this.baseConf._REGindecimalseparator=new RegExp(b(k.indecimalseparator)));this.Y=[];h||(h={cacheStore:[],formatnumber:k.formatnumber,formatnumberscale:k.formatnumberscale,forcenumberscale:k.forcenumberscale,defaultnumberscale:k.defaultnumberscale,numberscaleunit:k.numberscaleunit.concat(),numberscalevalue:k.numberscalevalue.concat(),numberprefix:k.numberprefix,numbersuffix:k.numbersuffix,decimalprecision:k.decimalprecision,forcedecimals:k.forcedecimals,
decimalseparator:k.decimalseparator,thousandseparator:k.thousandseparator,thousandseparatorposition:k.thousandseparatorposition,indecimalseparator:k.indecimalseparator,inthousandseparator:k.inthousandseparator,scalerecursively:M,maxscalerecursion:L,scaleseparator:ta},e.useScaleRecursively&&(h.numberscalevalue&&h.numberscalevalue.length)==(h.numberscaleunit&&h.numberscaleunit.length)||(h.scalerecursively=M=0),J={cacheStore:[],formatnumber:h.formatnumber,formatnumberscale:h.formatnumberscale,forcenumberscale:h.forcenumberscale,
defaultnumberscale:h.defaultnumberscale,numberscaleunit:h.numberscaleunit.concat(),numberscalevalue:h.numberscalevalue.concat(),numberprefix:h.numberprefix,numbersuffix:h.numbersuffix,decimalprecision:parseInt(a(c.yaxisvaluedecimals,h.decimalprecision,2),10),forcedecimals:a(c.forceyaxisvaluedecimals,h.forcedecimals),decimalseparator:h.decimalseparator,thousandseparator:h.thousandseparator,thousandseparatorposition:h.thousandseparatorposition.concat(),indecimalseparator:h.indecimalseparator,inthousandseparator:h.inthousandseparator,
scalerecursively:M,maxscalerecursion:L,scaleseparator:ta},ma={cacheStore:[],formatnumber:a(c.sformatnumber,e.sformatnumber,f.sformatnumber),formatnumberscale:a(c.sformatnumberscale,e.sformatnumberscale,f.sformatnumberscale),forcenumberscale:a(c.sforcenumberscale,e.sforcenumberscale,f.sforcenumberscale),defaultnumberscale:m(c.sdefaultnumberscale,e.sdefaultnumberscale,h.defaultnumberscale),numberscaleunit:a(l,e.snumberscaleunit,f.snumberscaleunit).concat(),numberscalevalue:a(ma,e.snumberscalevalue,
f.snumberscalevalue).concat(),numberprefix:m(c.snumberprefix,e.snumberprefix,f.snumberprefix),numbersuffix:m(c.snumbersuffix,e.snumbersuffix,f.snumbersuffix),decimalprecision:parseInt(a(c.syaxisvaluedecimals,c.sdecimals,c.decimals,e.sdecimals,f.sdecimals),10),forcedecimals:a(c.forcesyaxisvaluedecimals,c.sforcedecimals,c.forcedecimals,e.sforcedecimals,f.sforcedecimals),decimalseparator:a(c.decimalseparator,e.decimalseparator,f.decimalseparator),thousandseparator:a(c.thousandseparator,e.thousandseparator,
f.thousandseparator),thousandseparatorposition:h.thousandseparatorposition.concat(),indecimalseparator:a(c.indecimalseparator,e.indecimalseparator,f.indecimalseparator),inthousandseparator:a(c.inthousandseparator,e.inthousandseparator,f.inthousandseparator),scalerecursively:T,maxscalerecursion:da,scaleseparator:S},l=q({},ma),l.decimalprecision=parseInt(a(c.sdecimals,c.decimals,c.syaxisvaluedecimals,e.sdecimals,f.sdecimals),10),l.forcedecimals=a(c.sforcedecimals,c.forcedecimals,c.forcesyaxisvaluedecimals,
e.sforcedecimals,f.sforcedecimals),l.cacheStore=[],e.useScaleRecursively&&(ma.numberscalevalue&&ma.numberscalevalue.length)==(ma.numberscaleunit&&ma.numberscaleunit.length)||(ma.scalerecursively=T=0),/^(bubble|scatter|selectscatter)$/.test(ja)&&(J.formatnumber=a(c.yformatnumber,J.formatnumber),J.formatnumberscale=a(c.yformatnumberscale,J.formatnumberscale),J.forcenumberscale=a(c.yforcenumberscale,J.forcenumberscale),J.defaultnumberscale=m(c.ydefaultnumberscale,J.defaultnumberscale),J.numberscaleunit=
a(F,J.numberscaleunit),J.numberscalevalue=a(za,J.numberscalevalue),J.numberprefix=a(c.ynumberprefix,J.numberprefix),J.numbersuffix=a(c.ynumbersuffix,J.numbersuffix),h.formatnumber=a(c.yformatnumber,h.formatnumber),h.formatnumberscale=a(c.yformatnumberscale,h.formatnumberscale),h.forcenumberscale=a(c.yforcenumberscale,h.forcenumberscale),h.defaultnumberscale=m(c.ydefaultnumberscale,h.defaultnumberscale),h.numberscaleunit=a(c.ynumberscaleunit,h.numberscaleunit.concat()),h.numberscalevalue=a(c.ynumberscalevalue,
h.numberscalevalue.concat()),h.numberprefix=a(c.ynumberprefix,h.numberprefix),h.numbersuffix=a(c.ynumbersuffix,h.numbersuffix)),/^(pie2d|pie3d|doughnut2d|doughnut3d|marimekko|pareto2d|pareto3d)$/.test(ja)&&(h.decimalprecision=a(c.decimals,"2")),M&&(h.numberscalevalue.push(1),h.numberscaleunit.unshift(h.defaultnumberscale),J.numberscalevalue.push(1),J.numberscaleunit.unshift(J.defaultnumberscale)),T&&(ma.numberscalevalue.push(1),ma.numberscaleunit.unshift(ma.defaultnumberscale),l.numberscalevalue.push(1),
l.numberscaleunit.unshift(l.defaultnumberscale)),this.Y[0]={yAxisLabelConf:J,dataLabelConf:h},this.Y[1]={yAxisLabelConf:ma,dataLabelConf:l},this.paramLabels=h,this.param1=J,this.param2=ma,this.paramLabels2=l);this.paramX={cacheStore:[],formatnumber:a(c.xformatnumber,k.formatnumber),formatnumberscale:a(c.xformatnumberscale,k.formatnumberscale),forcenumberscale:a(c.xforcenumberscale,k.forcenumberscale),defaultnumberscale:m(c.xdefaultnumberscale,k.defaultnumberscale),numberscaleunit:a(p,k.numberscaleunit.concat()),
numberscalevalue:a(H,k.numberscalevalue.concat()),numberprefix:a(c.xnumberprefix,k.numberprefix),numbersuffix:a(c.xnumbersuffix,k.numbersuffix),decimalprecision:parseInt(a(c.xaxisvaluedecimals,c.xaxisvaluesdecimals,k.decimalprecision,2),10),forcedecimals:a(c.forcexaxisvaluedecimals,0),decimalseparator:k.decimalseparator,thousandseparator:k.thousandseparator,thousandseparatorposition:k.thousandseparatorposition.concat(),indecimalseparator:k.indecimalseparator,inthousandseparator:k.inthousandseparator,
scalerecursively:u,maxscalerecursion:sa,scaleseparator:$};this.paramLegend=q(q({},k),{cacheStore:[],decimalprecision:parseInt(C(c.legendvaluedecimals,k.decimalprecision,2),10),forcedecimals:C(c.legendvalueforcedecimals,k.forcedecimals,0),formatnumberscale:a(c.legendvalueformatnumberscale,k.formatnumberscale),forcenumberscale:a(c.legendvalueforcenumberscale,k.forcenumberscale),formatnumber:a(c.legendvalueformatnumber,k.formatnumber)});e.useScaleRecursively&&(this.paramX.numberscalevalue&&this.paramX.numberscalevalue.length)==
(this.paramX.numberscaleunit&&this.paramX.numberscaleunit.length)||(this.paramX.scalerecursively=u=0);u&&(this.paramX.numberscalevalue.push(1),this.paramX.numberscaleunit.unshift(this.paramX.defaultnumberscale));this.paramScale={cacheStore:[],formatnumber:a(c.tickformatnumber,k.formatnumber),formatnumberscale:a(c.tickformatnumberscale,k.formatnumberscale),forcenumberscale:a(c.tickforcenumberscale,k.forcenumberscale),defaultnumberscale:m(c.tickdefaultnumberscale,k.defaultnumberscale),numberscaleunit:a(t,
k.numberscaleunit.concat()),numberscalevalue:a(va,k.numberscalevalue.concat()),numberprefix:a(c.ticknumberprefix,k.numberprefix),numbersuffix:a(c.ticknumbersuffix,k.numbersuffix),decimalprecision:parseInt(a(c.tickvaluedecimals,k.decimalprecision,"2"),10),forcedecimals:a(c.forcetickvaluedecimals,k.forcedecimals,0),decimalseparator:k.decimalseparator,thousandseparator:k.thousandseparator,thousandseparatorposition:k.thousandseparatorposition.concat(),indecimalseparator:k.indecimalseparator,inthousandseparator:k.inthousandseparator,
scalerecursively:M,maxscalerecursion:L,scaleseparator:ta};M&&(this.paramScale.numberscalevalue.push(1),this.paramScale.numberscaleunit.unshift(this.paramScale.defaultnumberscale));this.timeConf={inputDateFormat:a(c.inputdateformat,c.dateformat,"mm/dd/yyyy"),outputDateFormat:a(c.outputdateformat,c.inputdateformat,c.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={}};p.prototype={cleaneValueCacheStore:{},percentStrCacheStore:{},dispose:function(){this.Y&&delete this.Y;this.cleaneValueCacheStore&&delete this.cleaneValueCacheStore;this.percentStrCacheStore&&delete this.percentStrCacheStore;this.paramLabels&&delete this.paramLabels;this.param1&&delete this.param1;this.param2&&delete this.param2;
this.paramLabels2&&delete this.paramLabels2;this.csConf&&delete this.csConf;this.chartAPI&&delete this.chartAPI;this.baseConf&&delete this.baseConf;this.timeConf&&delete this.timeConf;this.paramX&&delete this.paramX;this.paramScale&&delete this.paramScale},parseMLAxisConf:function(b,c){var e=this.baseConf,h=this.csConf,k=this.chartAPI,l=C(b.scalerecursively,e.scalerecursively),p=C(b.maxscalerecursion,e.maxscalerecursion),s=d(b.scaleseparator,e.scaleseparator),q,t,K,J,H,O;c=C(c,this.Y.length);d(b.numberscaleunit)&&
(q=b.numberscaleunit.split(","));d(b.numberscalevalue)&&(t=b.numberscalevalue.split(","));p||(p=-1);if(d(b.thousandseparatorposition))for(K=b.thousandseparatorposition.split(","),J=K.length,O=f.thousandseparatorposition[0];J--;)(H=C(F(K[J])))?O=H:H=O,K[J]=H;e={cacheStore:[],formatnumber:a(b.formatnumber,e.formatnumber),formatnumberscale:a(b.formatnumberscale,e.formatnumberscale),forcenumberscale:a(b.forcenumberscale,e.forcenumberscale),defaultnumberscale:m(b.defaultnumberscale,e.defaultnumberscale),
numberscaleunit:a(q,e.numberscaleunit).concat(),numberscalevalue:a(t,e.numberscalevalue).concat(),numberprefix:m(b.numberprefix,e.numberprefix),numbersuffix:m(b.numbersuffix,e.numbersuffix),forcedecimals:a(b.forcedecimals,e.forcedecimals),decimalprecision:parseInt("auto"===b.decimals?h.decimalprecision:a(b.decimals,e.decimalprecision),10),decimalseparator:a(b.decimalseparator,e.decimalseparator),thousandseparator:a(b.thousandseparator,e.thousandseparator),thousandseparatorposition:a(K,e.thousandseparatorposition),
indecimalseparator:m(b.indecimalseparator,e.indecimalseparator),inthousandseparator:m(b.inthousandseparator,e.inthousandseparator),scalerecursively:l,maxscalerecursion:p,scaleseparator:s};k.useScaleRecursively&&(e.numberscalevalue&&e.numberscalevalue.length)==(e.numberscaleunit&&e.numberscaleunit.length)||(e.scalerecursively=l=0);k={cacheStore:[],formatnumber:e.formatnumber,formatnumberscale:e.formatnumberscale,forcenumberscale:e.forcenumberscale,defaultnumberscale:e.defaultnumberscale,numberscaleunit:e.numberscaleunit.concat(),
numberscalevalue:e.numberscalevalue.concat(),numberprefix:e.numberprefix,numbersuffix:e.numbersuffix,decimalprecision:parseInt(a(b.yaxisvaluedecimals,e.decimalprecision,2),10),forcedecimals:a(b.forceyaxisvaluedecimals,e.forcedecimals),decimalseparator:e.decimalseparator,thousandseparator:e.thousandseparator,thousandseparatorposition:e.thousandseparatorposition.concat(),indecimalseparator:e.indecimalseparator,inthousandseparator:e.inthousandseparator,scalerecursively:l,maxscalerecursion:p,scaleseparator:s};
l&&(e.numberscalevalue.push(1),e.numberscaleunit.unshift(e.defaultnumberscale),k.numberscalevalue.push(1),k.numberscaleunit.unshift(k.defaultnumberscale));this.Y[c]={dataLabelConf:e,yAxisLabelConf:k}},percentValue:function(a){var b=this.percentStrCacheStore[a];void 0===b&&(b=isNaN(this.paramLabels.decimalprecision)?"2":this.paramLabels.decimalprecision,b=this.percentStrCacheStore[a]=h(e(a,b,this.paramLabels.forcedecimals),this.paramLabels.decimalseparator,this.paramLabels.thousandseparator,this.paramLabels.thousandseparatorposition)+
"%");return b},getCleanValue:function(a,b){var c=this.cleaneValueCacheStore[a];if(void 0===c){var d=this.baseConf,c=a+"";d._REGinthousandseparator&&(c=c.replace(d._REGinthousandseparator,""));d._REGindecimalseparator&&(c=c.replace(d._REGindecimalseparator,"."));c=parseFloat(c);c=isFinite(c)?c:NaN;this.cleaneValueCacheStore[a]=c=isNaN(c)?null:b?F(c):c}return c},dataLabels:function(a,b){var c=this.Y[b]||(b?this.Y[1]:this.Y[0]),d,c=c&&c.dataLabelConf||this.baseConf;d=c.cacheStore[a];void 0===d&&(d=c.cacheStore[a]=
k(a,c));return d},yAxis:function(a,b){var c=this.Y[b]||(b?this.Y[1]:this.Y[0]),d,c=c&&c.yAxisLabelConf||this.baseConf;d=c.cacheStore[a];void 0===d&&(d=c.cacheStore[a]=k(a,c,!0));return d},xAxis:function(a){var b=this.paramX.cacheStore[a];void 0===b&&(b=this.paramX.cacheStore[a]=k(a,this.paramX,!0));return b},sYAxis:function(a){var b=this.Y[1],c,b=b&&b.yAxisLabelConf||this.baseConf;c=b.cacheStore[a];void 0===c&&(c=b.cacheStore[a]=k(a,b));return c},scale:function(a){var b=this.paramScale.cacheStore[a];
void 0===b&&(b=this.paramScale.cacheStore[a]=k(a,this.paramScale));return b},getCleanTime:function(a){var b;this.timeConf.inputDateFormat&&Date.parseExact&&(b=Date.parseExact(a,this.timeConf.inputDateFormat));return b&&b.getTime()},legendValue:function(a){var b=this.paramLegend.cacheStore[a];void 0===b&&(b=this.paramLegend.cacheStore[a]=k(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]=h(e(a,b,c.forcedecimals),c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)+"%");return b},getDateValue:function(a){var b,c,d;a&&!/\//.test(this.timeConf.inputDateFormat)&&(a=a.replace(new RegExp(this.timeConf.inputDateFormat.replace(/[a-z]/ig,"").slice(0,1),"g"),"/"));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=C(a[0],0),d=C(a[1],0),a=C(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(b,c){var d="object"===typeof b&&b||new Date(b),e=this.timeConf,h=a(c,e.outputDateFormat),k=d.getFullYear(),f=d.getMonth(),l=d.getDate(),m=d.getDay(),v=d.getMinutes(),p=d.getSeconds(),d=d.getHours(),v=9<v?""+v:"0"+v,p=9<p?""+p:"0"+p,d=9<d?""+d:"0"+d;h.match(/dnl/)&&(h=h.replace(/dnl/ig,e.days[m]));
h.match(/dns/)&&(h=h.replace(/dns/ig,e.days[m]&&e.days[m].substr(0,3)));h.match(/dd/)&&(h=h.replace(/dd/ig,l));h.match(/mnl/)&&(h=h.replace(/mnl/ig,e.months[f]));h.match(/mns/)&&(h=h.replace(/mns/ig,e.months[f]&&e.months[f].substr(0,3)));h.match(/mm/)&&(h=h.replace(/mm/ig,f+1));h.match(/yyyy/)&&(h=h.replace(/yyyy/ig,k));h.match(/yy/)&&(h=h.replace(/yy/ig,(k%1E3%100+"").replace(/^(\d)$/,"0$1")));h.match(/hh12/)&&(h=h.replace(/hh12/ig,d%12||12));h.match(/hh/)&&(h=h.replace(/hh/ig,d));h.match(/mn/)&&
(h=h.replace(/mn/ig,v));h.match(/ss/)&&(h=h.replace(/ss/ig,p));h.match(/ampm/)&&(h=h.replace(/ampm/ig,12>d?"AM":"PM"));h.match(/ds/)&&(h=h.replace(/ds/ig,e.daySuffix[l]));return h}};p.prototype.constructor=p;k=function(b,c,d){if(null!==b){b=Number(b);var k=b+"",f,l,m,v,p;f=1==c.formatnumberscale?c.defaultnumberscale:"";p=(p=k.split(".")[1])?p.length:c.forcedecimals?"2":"";if(1==c.formatnumberscale){k=b;l=c.defaultnumberscale;b=c.numberscalevalue;f=c.numberscaleunit;var s=c.scalerecursively;m=c.forcenumberscale;
v={};var q=l,t=0,F=[],K=[],J;m=C(m)||0;if(s){q=C(b[0])||1E3;for(t=0;t<b.length;t++)if(s=C(b[t])||1E3,Math.abs(Number(k))>=s&&t<b.length-1)J=k%s,k=(k-J)/s,0===t&&0!==J&&""===f[t]&&m?(F.push(J/q),K.push(f[1]||"")):0!==J&&(1===t&&""===l&&m?(s=J+(F.length?F.pop():0),K.pop(),F.push(s)):F.push(J),K.push(f[t]));else{0===t&&""===l&&m?(k=Number(k)/q,F.push(k),K.push(f[1]||"")):(1===t&&""===l&&m?(s=k+(F.length?F.pop():0),K.pop(),F.push(s)):F.push(k),K.push(f[t]));break}F.reverse();K.reverse();v.value=F;v.scale=
K}else{if(b.length===f.length)for(t=0;t<b.length;t++)if(s=C(b[t])||1E3,Math.abs(Number(k))>=s)q=f[t]||"",k=Number(k)/s;else{0===t&&""===l&&m&&(q=f[0]||"",k=Number(k)/s);break}v.value=k;v.scale=q}l=v;b=k=l.value;f=l.scale}if(c.scalerecursively&&0!==c.formatnumberscale&&"0"!==c.formatnumberscale){d=l.value;l=l.scale;b=-1==c.maxscalerecursion?d.length:Math.min(d.length,c.maxscalerecursion);if(1==c.formatnumber)for(k="",v=0;v<b;v++)f=0===v?d[v]:Math.abs(d[v]),m=f+"",v==b-1&&(m=e(f,a(c.decimalprecision,
p),c.forcedecimals)),k=k+h(m,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition)+l[v]+(v<b-1?c.scaleseparator:"");else for(k="",v=0;v<b;v++)k=k+(0===v?d[v]:Math.abs(d[v])+"")+l[v]+(v<b-1?c.scaleseparator:"");k=(c.numberprefix||"")+k+(c.numbersuffix||"")}else 1==c.formatnumber&&(k=e(b,a(c.decimalprecision,p),c.forcedecimals),k=h(k,c.decimalseparator,c.thousandseparator,c.thousandseparatorposition,d)),k=(c.numberprefix||"")+k+f+(c.numbersuffix||"");return k}};return p}();f.extend(f.core,
{formatNumber:function(a,b){b=b&&s(b)||{};var c=H(b),d;p[c]?d=p[c]:p[c]=d=new t.NumberFormatter(b,{useScaleRecursively:!0});return d.dataLabels(a)}},!1);f.extend(f.core,{formatNumber:function(a,b,c,d){c=c&&s(c)||{};var l=this.jsVars.instanceAPI||{},m=l.numberFormatter,n;""===H(c)?m?n=m:(m=this.getChartData(f.dataFormats.JSON,!0),m=m.data||{},m=m.chart||{},c=H(m),p[c]?n=p[c]:p[c]=n=new t.NumberFormatter(m,l)):(m=this.getChartData(f.dataFormats.JSON,!0),m=m.data||{},m=m.chart||{},m=q(q({},m),c),c=H(m),
p[c]?n=p[c]:p[c]=n=new t.NumberFormatter(m,l));switch((b&&b.toLowerCase?b:"").toLowerCase()){case "yaxisvalues":a=n.yAxis(a,d);break;case "xaxisvalues":a=n.xAxis(a);break;case "scale":a=n.scale(a);break;default:a=n.dataLabels(a,d)}return a}},!0)}]);
FusionCharts.register("module",["private","modules.renderer.js-dom",function(){var f=this.hcLib,t=this.window,C=t.document,q=f.extend2,d="ontouchstart"in t;(function(a){var f=function(){var a={},f;a.pointerdrag={start:["mousedown"],end:["mouseup"],onStart:["mousemove"],postHandlers:{},preHandlers:{}};a.pointerhover={start:["mouseover"],end:["mouseout"]};a.click={start:["click"]};a.escape={start:["keydown"],preHandlers:{start:function(a){a=a||t.event;return a.keyCode&&27===a.keyCode?!0:!1}}};d&&(f=
a.pointerdrag,f.start.push("touchstart"),f.end.push("touchend"),f.onStart.push("touchmove"),f.postHandlers.onStart=function(a){a.preventDefault?a.preventDefault():a.returnValue=!1});return a}(),F;F=q({},f);a.dem=new function(){var a={},d={},b=C.addEventListener?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},f=C.removeEventListener?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent("on"+b,c)},m=function(a,b,c){var d=[],e,f,l;l=F[b];c.start=
function(b){b=b||t.event;for(var d=l.onStart,e=l.end,k=[],f=[],m=d&&d.length||0;m--;)k.push(s(a,d[m],c,"onStart"));for(m=e&&e.length||0;m--;)f.push(s(a,e[m],c,"end"));c.startUn=c.startUn?c.startUn.concat(k):k;c.endUn=c.endUn?c.endUn.concat(f):f;c.state="start";c.closure(b)};c.onStart=function(a){a=a||t.event;c.state="on";if(c.gDef&&c.gDef.preHandlers&&"function"===typeof c.gDef.preHandlers.onStart)c.gDef.preHandlers.onStart(a);c.closure(a);if(c.gDef&&c.gDef.postHandlers&&"function"===typeof c.gDef.postHandlers.onStart)c.gDef.postHandlers.onStart(a)};
c.end=function(a){a=a||t.event;for(var b=c.startUn,d=c.endUn,e=b&&b.length||0;e--;)b[e]();delete c.startUn;c.startUn=[];for(e=d&&d.length||0;e--;)d[e]();delete c.endUn;c.endUn=[];c.state="end";c.closure(a)};if(l)for(b=l.start,f=b.length;f--;)(e=b[f])&&d.push(s(a,e,c,"start"));return d},s=function(a,c,d,e){e=e||"closure";b(a,c,d[e]);return function(){f(a,c,d[e])}},e=function(a){return function(b){b=b||t.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(b,k,f,p,q){var n=this;k="string"===typeof k?k.split(" "):k;var t=k.length,B=[],U=function(a,b,c){B.push(function(){n.unlisten(a,b,c)})},r,ga,X,aa,W;if(b.ownerDocument&&b.ownerDocument===C)for(;t--;)ga=k[t],aa=Boolean(F[ga]),W="function"===typeof f?f:f[t],X={handler:W,elem:b,type:ga,isGesture:aa,gDef:aa?F[ga]:null,data:p,context:q,start:[],end:[],links:{prev:null,next:null}},X.closure=e(X),aa?((r=d[ga])||(r=d[ga]=[]),r.push(X),
m(b,ga,X)):((r=a[ga])||(r=a[ga]=[]),r.push(X),s(b,ga,X)),U(b,ga,W);else for(;t--;)ga=k[t],W="function"===typeof f?f:f[t],X={handler:W,elem:b,type:ga,isGesture:aa,data:p,context:q,start:[],end:[],links:{prev:null,next:null}},X.closure=e(X),(r=a[ga])||(r=a[ga]=[]),r.push(X),s(b,ga,X),U(b,ga,W);return{unlisten:function(){for(var a=B.length;a--;)B[a]();B.length=0;B=null}}},unlisten:function(b,e,m){var s,q=!1,n,t;if(Boolean(F[e]))for(n=(s=d[e])&&s.length||0;n--;){if(t=s[n],t.handler===m&&t.elem===b){var q=
b,B=void 0,C=void 0,r=void 0,B=void 0;if(B=F[e])for(B=B.start,r=B.length;r--;)(C=B[r])&&f(q,C,t.start);s.splice(n,1);q=!0}}else for(n=(s=a[e])&&s.length||0;n--;)t=s[n],t.handler===m&&t.elem===b&&(f(b,e,t.closure),s.splice(n,1),q=!0);return q},fire:function(b,d,e,f){var l;if(b.ownerDocument&&b.ownerDocument===C)C.createEvent?(l=C.createEvent("HTMLEvents"),l.initEvent(d,!0,!0),e&&(e.originalEvent?e.originalEvent=l:q(l,e)),"function"===typeof b[d]&&b[d].call(b),b.dispatchEvent(l)):(l=C.createEventObject(),
l.eventType=d,e&&(e.originalEvent?e.originalEvent=l:q(l,e)),"function"===typeof b[d]&&b[d].call(b),b.fireEvent("on"+d,l)),f&&!l.returnValue&&f(l);else for(f=(d=a[d])&&d.length||0;f--;)l=d[f],l.elem===b&&l.closure(e)}}}})(f||t);(function(a){function d(a,b){var c="";C.defaultView&&C.defaultView.getComputedStyle?c=C.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 f(a,c,d,e,h,k,m,q){var t=c/40,n=l[k||"linear"](e-d,t),F=0,B=function(){var c;F<t?(c=n[F],a.style[h]=d+c+q,b&&"opacity"===h&&(c=100*Number(c),a.style.filter="progid:DXImageTransform.Microsoft.Alpha(Opacity="+c+")"),F+=1,setTimeout(B,40)):m&&m()};q=q||"";setTimeout(B,40)}var c={width:{suffix:"px"},height:{suffix:"px"},opacity:!0,top:{suffix:"px"},left:{suffix:"px"}},l={linear:function(a,b){for(var c=[],d=a/b,h=0;h<b;h+=1)c[h]=d*(h+1);return c}},b=/msie/i.test(t.navigator.userAgent)&&!t.opera;
a.danimate=q({animate:function(a,b,l,e,h){e={};var k={},v=function(){t+=1;t===q&&"function"===typeof h&&h()},q=0,t=0,n,C;if(40>l){for(C in b)a.style[C]=b[C];h&&h()}else for(C in b)c[C]&&(q+=1,e[C]=b[C],k[C]=d(a,C),n="object"===typeof c[C]&&c[C].suffix,f(a,l,k[C],e[C],C,"linear",v,n))}},{})})(f||t)}]);
FusionCharts.register("module",["private","modules.renderer.js-colormanager",function(){var f=this.hcLib,t=f.pluckNumber,C=f.graphics.getDarkColor,q=f.graphics.getLightColor,d="AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),a="8BBA00 F6BD0F FF654F AFD8F8 FDB398 CDC309 B1D0D2 FAD1B9 B8A79E D7CEA5 C4B3CE E9D3BE EFE9AD CEA7A2 B2D9BA".split(" "),m=f.defaultPaletteOptions={paletteColors:[d,
d,d,d,d],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"]},d=f.colorManager=function(a,c){var d=a.chart,b=f.extend2({},m),p=c.defaultPaletteOptions||{},H;b||(b={});for(H in p)b[H]=p[H];b=this.paletteOptions=b;p=this.themeEnabled=d.palettethemecolor;this.paletteIndex=(0<d.palette&&6>d.palette?d.palette:t(c.paletteIndex,1))-1;this.iterator=0;this.paletteColors=b.paletteColors[this.themeEnabled?0:
this.paletteIndex];H=d.palettecolors;void 0!==H&&null!==H&&""!==d.palettecolors&&(this.paletteColors=d.palettecolors.split(/\s*\,\s*/));this.paletteLen=this.paletteColors.length;this.useFlatColors=t(d.useflatdataplotcolor,c.useFlatColor,0);p&&(this.paletteIndex=5,b.bgColor.push(q(p,35)+","+q(p,10)),b.bgAngle.push(270),b.bgRatio.push("0,100"),b.bgAlpha.push("50,50"),b.canvasBgColor.push("FFFFFF"),b.canvasBgAngle.push(0),b.canvasBgAlpha.push("100"),b.canvasBgRatio.push(""),b.canvasBorderColor.push(C(p,
80)),b.canvasBorderAlpha.push(100),b.showShadow.push(1),b.divLineColor.push(C(p,20)),b.divLineAlpha.push(40),b.altHGridColor.push(q(p,20)),b.altHGridAlpha.push(15),b.altVGridColor.push(q(p,80)),b.altVGridAlpha.push(10),b.anchorBgColor.push("FFFFFF"),b.toolTipBgColor.push("FFFFFF"),b.toolTipBorderColor.push(C(p,80)),b.baseFontColor.push(p.split&&p.split(",")[0]),b.borderColor.push(C(p,60)),b.borderAlpha.push(50),b.legendBgColor.push("FFFFFF"),b.legendBorderColor.push(C(p,80)),b.plotGradientColor.push("FFFFFF"),
b.plotBorderColor.push(C(p,85)),b.plotFillColor.push(C(p,85)),b.bgColor3D.push("FFFFFF"),b.bgAlpha3D.push("100"),b.bgAngle3D.push(90),b.bgRatio3D.push(""),b.canvasBgColor3D.push(q(p,20)),b.canvasBaseColor3D.push(q(p,40)),b.divLineColor3D.push(C(p,20)),b.divLineAlpha3D.push(40),b.legendBgColor3D.push("FFFFFF"),b.legendBorderColor3D.push(C(p,80)),b.toolTipbgColor3D.push("FFFFFF"),b.toolTipBorderColor3D.push(C(p,80)),b.baseFontColor3D.push(p.split&&p.split(",")[0]),b.anchorBgColor3D.push("FFFFFF"),b.tickColor&&
b.tickColor.push(C(p,90)),b.trendDarkColor&&b.trendDarkColor.push(C(p,90)),b.trendLightColor&&b.trendLightColor.push(q(p,b.TrendLightShadeOffset)),b.msgLogColor&&b.msgLogColor.push(q(p,80)),b.dialColor&&b.dialColor.push(C(p,95)+",FFFFFF,"+C(p,95)),b.dialBorderColor&&b.dialBorderColor.push(C(p,95)+",FFFFFF,"+C(p,95)),b.pivotColor&&b.pivotColor.push(q(p,95)+",FFFFFF,"+q(p,95)),b.pivotBorderColor&&b.pivotBorderColor.push(C(p,95)+",FFFFFF,"+C(p,95)),b.pointerBorderColor&&b.pointerBorderColor.push(C(p,
75)),b.pointerBgColor&&b.pointerBgColor.push(C(p,75)),b.thmBorderColor&&b.thmBorderColor.push(C(p,90)),b.thmFillColor&&b.thmFillColor.push(q(p,55)),b.cylFillColor&&b.cylFillColor.push(q(p,55)),b.periodColor&&b.periodColor.push(q(p,10)),b.winColor&&b.winColor.push("666666"),b.lossColor&&b.lossColor.push("CC0000"),b.drawColor&&b.drawColor.push("666666"),b.scorelessColor&&b.scorelessColor.push("FF0000"),b.gridColor&&b.gridColor.push(q(p,30)),b.categoryBgColor&&b.categoryBgColor.push(q(p,10)),b.dataTableBgColor&&
b.dataTableBgColor.push(q(p,10)),b.gridResizeBarColor&&b.gridResizeBarColor.push(C(p,90)),b.scrollBarColor&&b.scrollBarColor.push(q(p,50)))};d.prototype={getColor:function(a){return this.paletteOptions[a][this.paletteIndex]},getPlotColor:function(a){var c=this.paletteColors;a=this.useFlatColors?this.getColor("plotFillColor"):c[a%this.paletteLen];a||(this.iterator===this.paletteLen&&(this.iterator=0),a=c[this.iterator],this.iterator+=1);return a},parseColorMix:function(a,c){var d=[],b,f,m,s,e,h,k,
v,t,J;c=c.replace(/\s/g,"");c=c.toLowerCase();if(""===c||null===c||void 0===c)d=[a];else for(f=c.split(","),m=a.split(","),s=Math.max(f.length,m.length,1),e=f[0],h=m[0],t=/[\{\}]/ig,J=0;J<s;J++)k=(f[J]||e).replace(t,""),v=m[J]||h,"color"==k?d.push(v):"light"==k.substr(0,5)?(b=k.indexOf("-"),b=-1==b?1:k.substr(b+1,k.length-b),b=100-b,d.push(q(v,b))):"dark"==k.substr(0,4)?(b=k.indexOf("-"),b=-1==b?1:k.substr(b+1,k.length-b),b=100-b,d.push(C(v,b))):d.push(k);return d},parseAlphaList:function(a,c){var d=
a.split(","),b=[],f,m=100,s;for(s=0;s<c;s++)f=t(d[s]),void 0!==f&&null!==f&&(m=f),b[s]=m;return b.join()},parseRatioList:function(a,c){var d=a.split(","),b=[],f=0,m,s;for(s=0;s<c;s++)m=d[s],m=isNaN(m)||void 0===m?0:Math.abs(Number(m)),m=100<m?100:m,b[s]=m,f+=m;f=100<f?100:f;if(d.length<c)for(s=d.length;s<c;s++)b[s]=(100-f)/(c-d.length);b[-1]=0;return b.join()}};d.prototype.constructor=d;f.defaultGaugePaletteOptions={paletteColors:[a,a,a,a,a],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 f=this,t=f.core,C=f.hcLib,q=f.window,d=/msie/i.test(q.navigator.userAgent)&&!q.opera,a=C.addEvent,m=C.removeEvent,F=C.hasTouch,c=q.Number,l=F?6:5,b="rgba(192,192,192,"+(d?.002:1E-6)+")",d=q.Math,p=d.min,H=d.max,s=d.sin,e=d.cos,h=d.PI,k=h/180,v=d.abs,K=f.extend,J=C.pluck,n=C.pluckNumber,N=C.graphics.convertColor,B=C.getValidValue,U=C.parseUnsafeString,r=C.setImageDisplayMode,ga=C.graphics.parseColor,X=C.setLineHeight,
aa=C.getMouseCoordinate,W={style:{}},ya=C.toRaphaelColor,va=function(a,b){return{start:-a,end:-b,angle:a-b}},za=function(a,b,d,e,h){var k,f,l=0,m=0;f=void 0===b||null===b?1:b;var s;if(!a||!a.toString)return{value:d,hasDynamicMacros:!1};a=a.toString();a=a.toLowerCase().replace(/\s/g,"");if(d=a.match(/^[\+\-]?\d+(\.\d+)?|[\+\-]\d+(\.\d+)?/g)){for(b=0;b<d.length;b+=1)l+=Number(d[b])||0;l*=f}if(d=a.match(/^[\+\-]?(\$[a-z0-9\.]+)|[\+\-](\$[a-z0-9\.]+)/g))for(b=0;b<d.length;b+=1){k=d[b];var n=e,v=h,p=k.split("."),
q=void 0,r=void 0,t=0;for(f=void 0;q=p.shift();)switch(typeof(r=n[q])){case "object":n=r[q];break;case "function":r=r(p,v),"-"===k.charAt()&&(r*=-1),f=!0;default:t+=c(r)||0,p.length=0}k=t;f&&(s=!0);m+=k}if(d=a.match(/^[\+\-]?\$\d+(\.\d+)?|[\+\-]\$\d+(\.\d+)?/g))for(b=0;b<d.length;b+=1)m=m+Number(d[b].replace("$",""))||0;return{value:l+m,hasDynamicMacros:s}},ja=function(a,b,c){if(!b.removed){b=b.data("annotation");var d=b.getRenderer(),e=aa(d.container,c),h=e.annotationOptions=b.options,k=e.groupOptions=
b.group.options;e._shape=b;"id"in h&&(e.annotationId=h.id);"id"in k&&(e.groupId=k.id);f.raiseEvent(a,e,d.fusionCharts,c)}},O,na,ma;na=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 ma(a[d],this))};K(na.prototype,{scaleImageX:1,scaleImageY:1,scaleText:1,scaleValue:1,scaleValueComplement:1,scaleX:1,scaleY:1});
na.prototype.setup=function(){var a=this.options,b=this.shared,c=this.getRenderer();c&&(this.isBelow=0!==n(a.showbelow,a.showbelowchart,b.showbelow),this.useTracker=!this.isBelow&&c.layers.tracker&&this.shared.useTracker,this.raiseOwnEvents=b.interactionevents)};na.prototype.scale=function(){var a=this.options,b=this.shared,c=this.bounds,d=this.snaps,e=this.getRenderer(),h=b.rootxscale,k=b.rootyscale,f=c.xs=n(a.xscale,b.xscale,100)/100,l=c.ys=n(a.yscale,b.yscale,100)/100,m,s,v;e&&(this.scaleText*=
l,this.scaleImageX*=f,this.scaleImageY*=l,0!==n(a.autoscale,b.autoscale)&&(f=n(a.origw,b.origw),l=n(a.origh,b.origh),f=e.chartWidth/f,l=e.chartHeight/l,e=0!==n(a.constrainedscale,b.constrainedscale),m=f<l?f:l,s=e?m:f,v=e?m:l,this.scaleValue=na.prototype.scaleValue*m,this.scaleValueComplement=na.prototype.scaleValueComplement*(e?m:f<l?l:f),this.scaleX=na.prototype.scaleX*s,this.scaleY=na.prototype.scaleX*v,c.xs*=s,c.ys*=v,h*=s,k*=v,"1"==J(a.scaletext,b.scaletext)&&(this.scaleText=na.prototype.scaleText*
v),"1"==J(a.scaleimages,b.scaleimages)&&(this.scaleImageX=na.prototype.scaleImageX*s,this.scaleImageY=na.prototype.scaleImageY*v)),c.x=za(J(a.x,a.xpos),h,0,d,this.isBelow).value+n(a.grpxshift,b.grpxshift,0),c.y=za(J(a.y,a.ypos),k,0,d,this.isBelow).value+n(a.grpyshift,b.grpyshift,0),this.xshift=n(a.xshift,b.xshift,0),this.yshift=n(a.yshift,b.yshift,0))};na.prototype.draw=function(){var a=this.getRenderer(),b=this.options,c=this.bounds,d=this.items,e=a&&a.layers.dataset,h=this.wrapper;if(a){h||(this.wrapper=
h=a.paper.group("annotations"),e&&(this.isBelow?h.insertBefore(e):h.insertAfter(a.layers.datalabels||e)));this.wrapper.attr({x:0,y:0,visibility:n(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}};na.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]};na.prototype.addItem=
function(a,b){var c;this.items.push(c=new ma(a,this,this._idstore));b&&null!==this.getRenderer()&&(c.scale(),c.setup(),c.draw());return c};na.prototype.removeItem=function(a){for(var b=this.items,c=b.length;c--;)if(a===b[c]._id)return b.splice(c,1)};na.prototype.getRenderer=function(){return this.annotations&&this.annotations.getRenderer()||null};ma=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 ma.eventNames)"function"===typeof a[d]&&(this[d]=a[d],c=!0);this.hasEvents=c;"function"===typeof a.onload&&(this.onload=a.onload)};f.extend(ma.prototype,{getAbsoluteBounds:function(){var a=this.bounds,b=a.x1,c=a.y1,d=a.x2,e=a.y2,h=p(b,d),k=p(c,e),b=H(b,d)-h,c=H(c,e)-k;return{x:h,width:b,y:k,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,h=b.options,k=c.snaps,f=J(h.x,h.xpos),l=J(h.y,h.ypos),m=J(h.tox,h.toxpos),s=J(h.toy,h.toypos),v=e.xs=d.xs,d=e.ys=d.ys,p=n(h.xshift,c.xshift,0),q=n(h.yshift,c.yshift,0),r;r=function(d,e,h,k){d=za(d,e,h,k,c.isBelow);d.hasDynamicMacros&&a&&(b.queueDraw=!0);return d.value};b.hasDimension=!0;b.hasDimensionX=!0;b.hasDimensionY=!0;e.x1=r(f,v,0,k)+p;void 0===m?(b.hasDimension=!1,b.hasDimensionX=!1,e.x2=e.x1):e.x2=r(m,v,0,k)+p;e.y1=r(l,d,0,k)+q;
void 0===s?(b.hasDimension=!1,b.hasDimensionY=!1,e.y2=e.y1):e.y2=r(s,d,0,k)+q;ma.angularShapeTypes[b.type]&&(e.angles=va(r(h.startangle,1,0,k),r(h.endangle,1,360,k)));e.r=r(h.radius,c.scaleValue,0,k)},setup:function(){var a=this.options,c=this.group,d=c.options,e=this.attrs,h=this.style,k=c.scaleValue,f=n(d.fillalpha,d.alpha,100),l=this.fillAlpha=J(a.fillalpha,a.alpha,f),m=this.fillColor=J(a.fillcolor,a.color,d.color),s=this.fillPattern=J(a.fillpattern&&a.fillpattern.toLowerCase&&a.fillpattern.toLowerCase(),
d.fillpattern&&d.fillpattern.toLowerCase&&d.fillpattern.toLowerCase()),v=this.bordered=n(a.showborder,ma.borderedShapeTypes[this.type],!!B(a.bordercolor)),p=this.borderColor=J(a.bordercolor,d.bordercolor,m),f=this.borderAlpha=n(a.borderalpha,a.alpha,d.borderalpha,f),q=this.dashed=!!n(a.dashed,0),r=n(a.borderthickness,a.thickness,2)*k;this.link=J(a.link,d.link);this.shadow="1"==J(a.showshadow,d.showshadow);void 0===m&&(m=ma.borderedShapeTypes[this.type]&&"none"||"#ff0000",void 0===p&&(p="#ff0000"));
v&&r?(e.stroke=N(p,f),e["stroke-linecap"]="round",e["stroke-width"]=r,q&&(e["stroke-dasharray"]=[n(a.dashlen,5)*k,n(a.dashgap,3)*k])):e.stroke="none";this.fillOptions={gradientUnits:"objectBoundingBox",color:m,alpha:l,ratio:J(a.fillratio,d.fillratio),angle:360-n(a.fillangle,0),radialGradient:"radial"===s};this.link&&(h.cursor="pointer",h._cursor="hand");e.visibility=n(a.visible,1)?"":"hidden";this.useTracker=c.useTracker;this.toolText=U(J(a.tooltext,d.tooltext));if(this.useTracker||this.link||this.toolText)K(this.attrsTracker,
{stroke:b,fill:b}),this.link&&(this.attrsTracker.ishot=+new Date);this.raiseOwnEvents=c.raiseOwnEvents},draw:function(){var b=this.getRenderer(),c=this.type,d=this.attrs,e=this.style,h=b&&b.paper,k=ma.types[c]&&ma.types[c].call&&ma.types[c].call(this,b),f=ma.imageShapeTypes[k],l=ma.textShapeTypes[k],s=f||l||ma.trackerShapeTypes[k],v=this.link||this.toolText,n=this.wrapper,c=this.tracker,p=b&&b.layers.tracker||this.group.wrapper,q=!1,r=c||n,t=ma.eventNames,F=ma.ownEvents,B,C;if(b){if(k){if(n)if(n.elemType!==
k){if(this.ownEventsAttached){for(C in F)r["un"+C].apply(n,F[C]);this.ownEventsAttached=!1}n=n.remove()}else if(this.hasEvents)for(B in t)(C=this[B])&&C.eventAttached&&(m(r.node,t[B],C),C.eventAttached=!1);f||(d.fill=ya(this.fillOptions));n?n.attr(d).css(e):(this.args.push(this.group.wrapper),n=this.wrapper=h[k].apply(h,this.args).attr(d).css(e),n.elemType=k,n.data("annotation",this),q=!0,this.args.pop());!this.shadow||this.shadowAdded||f||l?n.shadow(this.shadowAdded=!1):n.shadow(this.shadowAdded=
!0,H(this.borderAlpha,this.fillOptions.alpha)/100);v?this.useTracker&&(c||(this.args.push(p),c=this.tracker=s?h.rect(0,0,0,0,0,p):h[k].apply(h,this.args),this.args.pop()),c.attr(d).attr(this.attrsTracker)):c&&(c=c.remove());r=c||n;if(this.raiseOwnEvents&&!this.ownEventsAttached){for(C in F)r[C].apply(n,F[C]);this.ownEventsAttached=!0}this.link&&r.click(b.linkClickFN,this);this.toolText&&(r.tooltip(this.toolText||""),this.group.wrapper.trackTooltip(!0));if(this.hasEvents)for(B in t)(C=this[B])&&!C.eventAttached&&
(a(r.node,t[B],C,this),C.eventAttached=!0);f||(c&&s&&(b=n.getBBox(),c.attr({x:b.x,y:b.y,width:b.width,height:b.height})),q&&this.onload&&this.onload(d))}return this}},destroy:function(){var a=this.wrapper,b=this.tracker,c=b||a,d=ma.eventNames,e=ma.ownEvents,h,k;if(a){if(this.ownEventsAttached){for(k in e)c["un"+k].apply(a,e[k]);this.ownEventsAttached=!1}if(this.hasEvents)for(h in d)(k=this[h])&&k.eventAttached&&(m(c.node,d[h],k),k.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}});f.extend(ma,{imageShapeTypes:{image:!0},angularShapeTypes:{circle:!0,arc:!0},textShapeTypes:{text:!0},trackerShapeTypes:{image:!0,text:!0},borderedShapeTypes:{path:!0,line:!0},eventNames:{onmouseover:F?"touchstart":"mouseover",onmouseout:"mouseout",onmousemove:F?"touchmove":"mousemove",onclick:"click"},ownEvents:{click:[function(a){ja("annotationClick",this,a)}],hover:[function(a){ja("annotationRollOver",
this,a)},function(a){ja("annotationRollOut",this,a)}]},textAlignOptions:{left:"start",right:"end",center:"middle"},textVerticalAlignOptions:{top:"bottom",middle:"middle",bottom:"top"},textRotationOptions:{0:"0",1:"270",right:"90",cw:"90",left:"270",ccw:"270"},types:{rectangle:function(){var a=this.args,b=this.attrs,c=this.getAbsoluteBounds(),d=.5*c.width;c.r>d&&(c.r=d);a[0]=b.x=c.x;a[1]=b.y=c.y;a[2]=b.width=c.width;a[3]=b.height=c.height;a[4]=b.r=c.r;return"rect"},line:function(){var a=this.attrs,
b=this.bounds;this.args[0]=a.path=["M",b.x1,b.y1,"L",b.x2,b.y2];1===a["stroke-width"]&&(a["shape-rendering"]="crisp");a["stroke-width"]<l&&(this.attrsTracker["stroke-width"]=l);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,h=e.snaps;a[0]=za(c.sides,1,5,h,e.isBelow).value;a[1]=d.x1;a[2]=d.y1;a[3]=d.r;a[4]=za(c.startangle,1,0,h,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,f=this.bounds,l=a.chartWidth,m=a.chartHeight,n=this.group.scaleValueComplement,p=this.group.snaps,r=f.angles,q=this.group;a=f.r;J(d.radius)||(f.r=l<m?l*f.xs:m*f.ys,f.r=a=.3*f.r);d=za(d.yradius,n,a,p,q.isBelow).value;
this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial");"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=.5);m=r.angle%360;if(!m&&a===d)return b[0]=c.cx=f.x1,b[1]=c.cy=f.y1,b[2]=c.r=f.r,"circle";m||(r.angle=0<r.angle?r.angle-.001:r.angle+.001,r.start=r.end-r.angle);m||m==r.angle||(m=360);l=r.start*k;r=r.end*k;m*=k;p=f.x1;q=f.y1;f=p+e(l)*a;n=q+s(l)*d;p+=e(r)*a;q+=s(r)*d;a=["M",f,n,"A",a,d,0,v(m)>=h?1:0,l<r?1:0,p,q,"Z"];b[0]=c.path=a;return"path"},arc:function(a){var b=
this.options,c=this.args,d=this.attrs,e=this.bounds,h=a.chartWidth;a=a.chartHeight;var f=this.group,l=f.scaleValue,m=e.angles;J(b.radius)||(e.r=h<a?h*e.xs:a*e.ys,e.r*=.3);e.innerR=za(b.innerradius,l,.8*e.r,this.group.snaps,f.isBelow).value;e.innerR>e.r&&(e.innerR+=e.r,e.r=e.innerR-e.r,e.innerR-=e.r);this.fillPattern||(this.fillOptions.radialGradient=!0,this.fillPattern="radial");"radial"===this.fillPattern&&(this.fillOptions.cx=this.fillOptions.cy=.5);c[0]=e.x1;c[1]=e.y1;c[2]=e.r;c[3]=e.innerR;c[4]=
m.end*k;c[5]=m.start*k;d.ringpath=c.slice(0);return"ringpath"},text:function(a){var b=this.args,c=this.style,d=this.attrs,e=this.group,h=this.bounds,k=this.options,f=this.getAbsoluteBounds(),l=J(k.align,e.options.textalign,"center").toLowerCase(),m=J(k.valign,e.options.textvalign,"middle").toLowerCase(),s=U(J(k.text,k.label)),p=a.logic.smartLabel,v=n(k.wrap,e.options.wraptext,1),r,q,t=J(k.rotatetext,e.options.rotatetext,"0").toLowerCase(),t=ma.textRotationOptions[t],F="0"!==t?"y":"x",B=a.options.orphanStyles;
a=K({},B.defaultStyle.style||{});B=e.id&&B[e.id.toLowerCase()]||W;a=K(a,B.style);var B=parseFloat(a.fontSize),C=J(k.font,e.options.font,a.fontFamily),e=n(k.fontsize,e.options.fontsize,B)*e.scaleText;v&&(r=n(k.wrapwidth,this.hasDimensionX?f.width/h.xs:void 0),q=n(k.wrapheight,this.hasDimensionY?f.height/h.ys:void 0),r&&(r*=h.xs),q&&(q*=h.ys));c.fontFamily=C;c.fontWeight=n(k.bold,k.isbold,0)?"bold":"normal";n(k.italic,k.isitalic,0)&&(c.fontStyle="italic");k.bgcolor&&(!d["text-bound"]&&(d["text-bound"]=
[]),d["text-bound"][0]=ga(k.bgcolor));k.bordercolor&&(!d["text-bound"]&&(d["text-bound"]=[]),d["text-bound"][1]=ga(k.bordercolor),d["text-bound"][2]=n(k.borderthickness,1),d["text-bound"][3]=n(k.padding,1));k.fontcolor&&(d.fill=ga(k.fontcolor),this.fillOptions&&(this.fillOptions.color=d.fill));c.fontSize=e+"px";e===B?c.lineHeight=a.lineHeight:X(c);d["text-anchor"]=ma.textAlignOptions[l]||ma.textAlignOptions.center;p.setStyle(c);c=p.getSmartText(s,r,q,!1);d["vertical-align"]=ma.textVerticalAlignOptions[m]||
ma.textVerticalAlignOptions.middle;d["text-anchor"]===ma.textAlignOptions.left?f[F]+=n(k.leftmargin,0):d["text-anchor"]===ma.textAlignOptions.center&&(f[F]+=.5*n(k.leftmargin,0));"0"!==t&&(d.rotation=[parseFloat(t),f.x,f.y]);b[0]=d.x=f.x;b[1]=d.y=f.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 h=b.attrs,k=b.args,f=B(a.url),l=b.group.scaleImageX*J(Number(a.xscale),
100)/100,m=b.group.scaleImageY*J(Number(a.yscale),100)/100,s=b.getAbsoluteBounds(),p={width:1,height:1},v;if(!f)return k[0]=h.x=s.x,k[1]=h.y=s.y,k[2]=h.width=s.width,k[3]=h.height=s.height,k[4]=h.r=s.r,"rect";v=new q.Image;v.onload=function(){p=r("none","top","left",100,0,d,e,v);delete p.x;delete p.y;p=K(p,{width:(b.hasDimensionX?s.unscaled.width:p.width)*l,height:(b.hasDimensionY?s.unscaled.height:p.height)*m});setTimeout(function(){var a,d,e;if(a=b.wrapper){a.attr(p);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=H(n(b.fillAlpha,b.borderAlpha),b.borderAlpha)/100})}b.onload&&b.onload(p)},0)};v.src=f;k[0]=h.src=f;k[1]=h.x=s.x;k[2]=h.y=s.y;k[3]=h.width=(b.hasDimensionX?s.unscaled.width:p.width)*l;k[4]=h.height=(b.hasDimensionY?s.unscaled.height:p.height)*m;c.opacity=H(n(b.fillAlpha,b.borderAlpha),b.borderAlpha)/100;delete h.stroke;delete h.fill;delete h["stroke-linecap"];return"image"}}});O=function(){this.groups=[];this._idstore={};
this._options={}};C.Annotations=O;f.extend(O.prototype,{reset:function(a,b,c){var d=this.groups,e;this.clear();if(c){e={};for(var h in c)switch(typeof c[h]){case "object":case "function":e["-$"+h]=e["$"+h]=e["+$"+h]=c[h];break;default:e["$"+h]=e["+$"+h]=c[h],e["-$"+h]=-1*c[h]}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 na(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 na(a,this._options,this._literals,this._idstore,this));b&&(a.setup(),a.scale(),a.draw());return a},addItem:function(a,b,c){var d,e=this.getRenderer();"string"===typeof a?d=this._idstore[a]:(c=b,b=a);if(d&&d.addItem){if(!e&&c){f.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=d.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:[]});f.core.addEventListener("beforeinitialize",function(a){"javascript"===
a.sender.options.renderer&&(a.sender.annotations=new O)});f.core.addEventListener("disposed",function(a){a.sender.annotations&&a.sender.annotations.dispose()});f.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=[]}});t.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 f=this,t=f.hcLib,C=t.Raphael,q=f.window,d=q.document,a=t.BLANKSTRING,m=t.createTrendLine,F="https:"===q.location.protocol?"https://export.api3.fusioncharts.com/":"http://export.api3.fusioncharts.com/",c=t.pluck,l=t.getValidValue,b=t.pluckNumber,p=t.getFirstValue,H=t.getDefinedColor,s=t.parseUnsafeString,e=t.FC_CONFIG_STRING,h=t.extend2,k=t.getDashStyle,v=t.parseTooltext,K=t.toPrecision,J=t.regex.dropHash,n=t.HASHSTRING,
N=t.getSentenceCase,B=t.addEvent,U=function(a){return void 0!==a&&null!==a},r=q.Math,ga=t.TOUCH_THRESHOLD_PIXELS,X=t.CLICK_THRESHOLD_PIXELS,aa=r.min,W=r.max,ya=r.abs,va=r.ceil,za=r.floor,ja=r.log,O=r.pow,na=r.sqrt,ma=r.round,M=t.graphics.getColumnColor,T=t.getFirstColor,u=t.setLineHeight,L=t.pluckFontSize,da=t.getFirstAlpha,sa=t.graphics.getDarkColor,ta=t.graphics.getLightColor,S=t.graphics.convertColor,$=t.COLOR_TRANSPARENT,oa=t.POSITION_CENTER,ia=t.POSITION_TOP,Ea=t.POSITION_BOTTOM,fa=t.POSITION_RIGHT,
La=t.POSITION_LEFT,Ba=t.parsexAxisStyles,ha=t.chartAPI,Fa=t.graphics.mapSymbolName,fb=ha.singleseries,Xa=ha.multiseries,xa=t.COMMASTRING,gb=t.STRINGUNDEFINED,Sa=t.ZEROSTRING,Ia=t.ONESTRING,Ra=t.HUNDREDSTRING,Da=t.PXSTRING,pb=t.COMMASPACE,Lb=q.navigator.userAgent.match(/(iPad|iPhone|iPod)/g),Ub={left:"start",right:"end",center:"middle"},Mb=t.BLANKSTRINGPLACEHOLDER,vb=t.BGRATIOSTRING,Eb=t.COLOR_WHITE,rb=t.TESTSTR,Ib=t.graphics.getAngle,tb=t.axisLabelAdder,eb=t.falseFN,Tb=t.NumberFormatter,sb=t.getLinkAction,
Qb=t.getAxisLimits,cb=t.createDialog,A=function(a,b){return 0<a?ja(a)/ja(b||10):null},G=t.hasTouch=void 0!==d.documentElement.ontouchstart,D=t.fireEvent=function(a,b,c,d){t.dem.fire(a,b,c,d)},V={1:"bold",0:"normal"},Z={1:"italic",0:"normal"},ba={1:"underline",0:"none"},Q={font:function(a,b){b.style.fontFamily=a},size:function(a,b){a&&(b.style.fontSize=L(a)+Da)},color:function(b,c,d){c.style.color=b&&b.replace&&b.replace(J,n)||a;d&&(c.color=c.style.color)},bgcolor:function(b,c){c.style.backgroundColor=
b&&b.replace&&b.replace(J,n)||a},bordercolor:function(b,c){c.style.border="1px solid";c.style.borderColor=b&&b.replace&&b.replace(J,n)||a},ishtml:a,leftmargin:function(a,c){c.style.marginLeft=b(a,0)+Da},letterspacing:function(a,c){c.style.letterSpacing=b(a,0)+Da},bold:function(a,b){b.style.fontWeight=V[a]||""},italic:function(a,b){b.style.fontStyle=Z[a]||""},underline:function(a,b){b.style.textDecoration=ba[a]||""}},pa=t.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"}},ua=function(){var a={},b,c=function(){var d,g,e,h,k=0,l,A,m=parseInt(f.core.options.resizeTrackingInterval,10)||300,D;for(d in a)k+=1,g=a[d],e=g.jsVars,l=g.ref,!g.disposed&&(h=l&&l.parentNode)&&(A=l.style)&&(/\%/g.test(A.width)||/\%/g.test(A.height))?(l=h.offsetWidth,D=h.offsetHeight,!e.resizeLocked&&
(l&&e._containerOffsetW!==l||D&&e._containerOffsetH!==D)&&(g.resizeTo&&g.resizeTo(),e._containerOffsetW=l,e._containerOffsetH=D)):(delete a[d],--k);b=k?setTimeout(c,m):clearTimeout(b)};return function(d,g){var e=d.jsVars,h=g||d.ref&&d.ref.parentNode||{};e._containerOffsetW=h.parentNode.offsetWidth;e._containerOffsetH=h.parentNode.offsetHeight;a[d.id]=d;b||(b=setTimeout(c,parseInt(f.core.options.resizeTrackingInterval,10)||300))}}(),Ta={getExternalInterfaceMethods:function(){var a=ha[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+xa;else if(void 0!==a||null!==a)for(c in a)b+=c+xa;return b.substr(0,b.length-1)},drawOverlayButton:function(a){var b=this.jsVars,c=b.overlayButton,e,g;if(a&&a.show){c||(c=b.overlayButton=d.createElement("span"),t.dem.listen(c,"click",function(){f.raiseEvent("OverlayButtonClick",a,b.fcObj)}));for(e=a.message?a.message:"Back";c.firstChild;)c.removeChild(c.firstChild);
c.appendChild(d.createTextNode(e));b.overlayButtonMessage=e;e={border:"1px solid "+(a.borderColor?a.borderColor.replace(J,n):"#7f8975"),backgroundColor:a.bgColor?a.bgColor.replace(J,n):"#edefec",fontFamily:a.font?a.font:"Verdana,sans",color:"#"+a.fontColor?a.fontColor:"49563a",fontSize:(a.fontSize?a.fontSize:"10")+Da,padding:(a.padding?a.padding:"3")+Da,fontWeight:0===parseInt(a.bold,10)?"normal":"bold",position:"absolute",top:"0",right:"0",_cursor:"hand",cursor:"pointer"};for(g in e)c.style[g]=e[g];
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(),t.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,g=d.hcObj,e=d.fcObj,h=e.options;d.msgStore[a]&&(a=d.msgStore[a]);b&&g&&g.hasRendered?a?g.showMessage(a,c):g.hideLoading():(g&&g.destroy&&g.destroy(),e._chartMessageImageStyle={imageHAlign:h.baseChartMessageImageHAlign,
imageVAlign:h.baseChartMessageImageVAlign,imageAlpha:h.baseChartMessageImageAlpha,imageScale:h.baseChartMessageImageScale},e._chartMessageStyle={color:h.baseChartMessageColor,fontFamily:h.baseChartMessageFont,fontSize:h.baseChartMessageFontSize},t.createChart(d.fcObj,d.container,d.type,void 0,a));return a},signature:function(){return"FusionCharts/3.4.0 (XT)"}},db=t.HCstub=function(c,d,e,h){c=c.chart;var g=b(c.showborder,1)?b(c.borderthickness,1):0,k=b(c.charttopmargin,h.charttopmargin,15)+g,f=b(c.chartrightmargin,
h.chartrightmargin,15)+g,l=b(c.chartbottommargin,h.chartbottommargin,15)+g,g=b(c.chartleftmargin,h.chartleftmargin,15)+g,A=k+l,m=g+f;e*=.7;d*=.7;A>e&&(k-=(A-e)*k/A,l-=(A-e)*l/A);m>d&&(g-=(m-d)*g/m,f-=(m-d)*f/m);d={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},oriCatTmp:[],isSpline:-1!==h.chartInstance.options.chartType.search(/spline/i),noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{alignTicks:!1,ignoreHiddenSeries:!1,
events:{},reflow:!1,spacingTop:k,spacingRight:f,spacingBottom:l,spacingLeft:g,marginTop:k,marginRight:f,marginBottom:l,marginLeft:g,borderRadius:0,plotBackgroundColor:"#FFFFFF",textDirection:"1"===c.hasrtltext?"rtl":"",style:{},animation:b(c.defaultanimation,c.animation,1)?{duration:500*b(c.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:t.CREDIT_HREF,
text:t.CREDIT_STRING,enabled:!1},global:{},labels:{items:[]},lang:{},legend:{enabled:!0,symbolWidth:12,borderRadius:1,backgroundColor:"#FFFFFF",initialItemX:0,title:{text:a,x:0,y:0,padding:2},scroll:{},itemStyle:{}},loading:{},plotOptions:{series:{pointPadding:0,borderColor:"#333333",events:{},animation:b(c.animation,c.defaultanimation,1)?{duration:1E3*b(c.animationduration,1)}:!1,states:{hover:{enabled:!1},select:{enabled:!1}},dataLabels:{enabled:!0,color:"#555555",style:{},formatter:function(){return this.point.showPercentValues?
h.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:c.interactivelegend===
Sa?eb:function(){this.slice()}}}},pie3d:{size:"80%",allowPointSelect:!0,cursor:"pointer",point:{events:{legendItemClick:c.interactivelegend===Sa?eb:function(){this.slice()}}}},column:{},floatedcolumn:{},column3d:{},bar:{},bar3d:{}},point:{},series:[],subtitle:{text:a,style:{}},symbols:[],title:{text:a,style:{}},toolbar:{},tooltip:{style:{}},xAxis:{steppedLabels:{style:{}},labels:{x:0,style:{},enabled:!1},lineWidth:0,plotLines:[],plotBands:[],title:{style:{},text:a},tickWidth:0,scroll:{enabled:!1}},
yAxis:[{startOnTick:!1,endOnTick:!1,title:{style:{},text:a},tickLength:0,labels:{x:0,style:{}},plotBands:[],plotLines:[]},{tickLength:0,gridLineWidth:0,startOnTick:!1,endOnTick:!1,title:{style:{},text:a},labels:{x:0,style:{},enabled:!1,formatter:function(){return this.value!==Mb?this.value:a}},opposite:!0,plotBands:[],plotLines:[]}],exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}};c.palettecolors&&"string"===typeof c.palettecolors&&(d.colors=c.palettecolors.split(/\s*\,\s*/));return h.hcJSON=
d},wa=function(a,b,c,d,g){var e=[],h=!1;d=d||0;for(g=g||{max:Number.MIN_VALUE,min:Number.MAX_VALUE};d<a.length;++d)if(h)if(isNaN(a[d].y)||null===a[d].y){if(!c)break}else e.push({index:d,y:a[d].y});else isNaN(a[d].y)||null===a[d].y||(h=!0,e.push({index:d,y:a[d].y}));if(2<e.length){var h=g,k={},f,l,A;for(l=0;l<e.length;++l)f=e[l].index,k["D"+f]=0;for(f=0;10>f;++f)for(l=0;l<e.length;++l)A=0===l?(3*(e[l+1].y-e[l].y)-k["D"+e[l+1].index])/2:l===e.length-1?(3*(e[l].y-e[l-1].y)-k["D"+e[l-1].index])/2:(3*
(e[l+1].y-e[l-1].y)-k["D"+e[l+1].index]-k["D"+e[l-1].index])/4,k["D"+e[l].index]=A;f=ma(b/(e.length-1));for(l=1;l<e.length;++l){A=h;for(var m=void 0,D=void 0,G=void 0,s=void 0,p=D=void 0,n=void 0,v=void 0,r=void 0,r=void 0,m=k["D"+e[0].index],D=k["D"+e[l].index],G=e[0].y,s=3*(e[l].y-e[0].y)-2*m-D,D=2*(e[0].y-e[l].y)+m+D,p=A.max,n=A.min,v=0;v<=f;v++)r=v/f,r=G+m*r+s*r*r+D*r*r*r,r<n&&(n=r),r>p&&(p=r);A.max=p;A.min=n}}d<a.length&&!c&&wa(a,b,c,d,g);return g},ab=t.placeVerticalAxis=function(c,d,h,k,g,f,
A,m,D,G){var s=h[e],p=s.smartLabel,n,R,v,r,q=0,u=s.marginRightExtraSpace,t=s.marginLeftExtraSpace,V={},Z={},F={},ba=c.plotLines,B=c.plotBands,s=d.verticalAxisValuesPadding,Q=isNaN(d.fixedValuesPadding)?0:d.fixedValuesPadding,C=s-Q,ua=d.verticalAxisValuesPadding,pa=d.verticalAxisNamePadding,K=d.verticalAxisNameWidth,Ta=d.rotateVerticalAxisName&&String(d.rotateVerticalAxisName).toLowerCase(),wa="none"!==Ta,db=c.offset?c.offset:0,J=0,ab=0,H=0,Ha=0,Ga=0,Aa=0,jb=0,ca,O,N,la,s=2,jb=A?u+5:t+4,X=W(b(h.chart.plotBorderWidth,
1),0),M=c.showLine?c.lineThickness:X,ub=function(a,b){var c,g;a&&a.label&&void 0!==l(a.label.text)&&(N=a.label,N.style&&N.style!==O&&(O=N.style,p.setStyle(O)),n=p.getOriSize(a.label.text),g=(c=n.width)?c+2:0,a.isGrid?(V[b]={width:c,height:n.height,label:N},Ha<=g&&(Ha=g,d.lYLblIdx=b)):a.isTrend&&(A&&N.textAlign===La||N.textAlign===fa?(Z[b]={width:c,height:n.height,label:N},Ga=W(Ga,g)):(F[b]={width:c,height:n.height,label:N},Aa=W(Aa,g))))},L=function(b,d){var e,w=d?q:q+b;e=c.title.style;R=R||{};if(0<
w)return wa?(w<R.height&&(p.setStyle(e),R=p.getSmartText(c.title.text,g,w)),e=R.height):(w<R.width&&(p.setStyle(e),R=p.getSmartText(c.title.text,w,g)),e=R.width),c.title._actualWidth=e,c.title.text=R.text,R.tooltext&&(c.title.originalText=R.tooltext),d?w-e+b:w-e;c.title.text=a;return 0},Va=function(a,b,c){for(var d in a)a[d].label.x=b,a[d].label.y=c},H=0;for(ca=B.length;H<ca;H+=1)ub(B[H],H);H=0;for(ca=ba.length;H<ca;H+=1)ub(ba[H],H);c.title&&c.title.text!=a&&(O=c.title.style,p.setStyle(O),v=p.getOriSize(rb).height,
c.title._originalText=c.title.text,wa?(c.title.rotation="cw"===Ta?90:270,R=p.getSmartText(c.title.text,g,f),q=R.height,r=v):(c.title.rotation=0,R=p.getSmartText(c.title.text,void 0!==K?K:f,g),q=R.width,r=20));0<Aa&&(ab=Aa+ua);D&&(k=b(k.chart.maxlabelwidthpercent,0),1<=k&&100>=k&&(D=k*D/100,Ha>D&&(Ha=D)));J=W(Ga,Ha);J+=J?C+Q:0;0<q&&(J+=q+pa+jb);(function(){if(ab+J>f){la=ab+J-f;if(ab){if(ua>=la){ua-=la;return}la-=ua;ua=0}if(C+pa>=la)pa>=la?pa-=la:(C-=la-pa,pa=0);else{la-=C+pa;pa=C=0;if(20<Aa)if(Ga>
Ha){if(Aa-Ga>=la){Aa-=la;return}if(Ga-Aa>=la){Ga-=la;return}Ga>Aa?(la-=Ga-Aa,Ga=Aa):(la-=Aa-Ga,Aa=Ga);if(2*(Ga-Ha)>=la){Aa-=la/2;Ga-=la/2;return}la-=2*(Ga-Ha);Aa=Ga=Ha}else{if(Aa-20>=la){Aa-=la;return}la-=Aa-20;Aa=20}if(Ga>Ha){if(Ga-Ha>=la){Ga-=la;return}la-=Ga-Ha;Ga=Ha}q-r>=la?q-=la:(la-=q-r,q=r,Aa>=la?Aa=0:(la-=Aa,Aa=0,q>=la?q=0:(la-=q,q=0,Ha>=la&&(Ga=Ha-=la))))}}})();H=function(b,c){var d,e=0,z=c?Aa-2:Aa+b-2,w;if(0<Aa){for(w in F)N=F[w].label,F[w].width>z?(N.style&&N.style!==O&&(O=N.style,p.setStyle(O)),
d=p.getSmartText(N.text,z,g,!0),N.text=d.text,d.tooltext&&(N.originalText=d.tooltext),F[w].height=d.height,e=W(e,d.width)):e=W(e,F[w].width);return c?z-e+b:z-e}for(w in F)F[w].label.text=a;return 0}(0,!0);H=L(H,!0);H=function(b){var c=0,d=W(Ha,Ga)+b-2,e;if(0<d){for(e in V)N=V[e].label,V[e].width>d?(N.style&&N.style!==O&&(O=N.style,p.setStyle(O)),b=p.getSmartText(N.text,d,g,!0),N.text=b.text,b.tooltext&&(N.originalText=b.tooltext),V[e].height=b.height,c=W(c,b.width)):c=W(c,V[e].width);for(e in Z)N=
Z[e].label,Z[e].width>d?(N.style&&N.style!==O&&(O=N.style,p.setStyle(O)),b=p.getSmartText(N.text,d,g,!0),N.text=b.text,b.tooltext&&(N.originalText=b.tooltext),Z[e].height=b.height,c=W(c,b.width)):c=W(c,Z[e].width);return d-c}for(e in V)V[e].label.text=a;for(e in Z)Z[e].label.text=a;return 0}(H);H=L(H);D=d.verticalAxisNamePadding-pa;H&&D&&(H>D?(pa+=D,H-=D):(pa+=H,H=0));D=d.verticalAxisValuesPadding-(C+Q);H&&D&&(H>D?(C+=D,H-=D):(C+=H,H=0));D=d.verticalAxisValuesPadding-ua;H&&D&&(H>D?(ua+=D,H-=D):(ua+=
H,H=0));0<Aa&&(ab=Aa+ua);J=W(Ga,Ha);J+=J?C+Q:0;0<q&&(J+=q+pa+jb);D=W(Ga,Ha);D+=0<D?C+Q:0;0<q?(wa?q<R.height&&(R=p.getSmartText(c.title.text,g,q)):(q<R.width&&(R=p.getSmartText(c.title.text,q,g)),c.title.y=-((R.height-v)/2)),c.title.text=R.text,R.tooltext&&(c.title.originalText=R.tooltext),c.title.margin=D+pa+jb+(wa?q-v:q/2)):c.title.text=a;v=-(C+Q+db+t+2);u=u+ua+db+2;jb=W(Ga,Ha);c.labels.style&&(s=.35*parseInt(c.labels.style.fontSize,10));A?(0<Aa&&Va(F,v,s),0<jb&&(Va(V,u,s),Va(Z,u,s))):(0<Aa&&Va(F,
u,s),0<jb&&(Va(V,v,s),Va(Z,v,s)));c.labels._textY=s;c.labels._righttX=u;c.labels._leftX=v;J=J||M;ab=ab||(m?0:X);G?(h.chart.marginLeft+=A?ab:J-G,h.chart.marginRight+=A?J-G:ab):(h.chart.marginLeft+=A?ab:J,h.chart.marginRight+=A?J:ab);return ab+J},Aa=t.titleSpaceManager=function(c,d,h,k){var g=this.snapLiterals||(this.snapLiterals={}),f=d.chart,l=s(f.caption);d=s(f.subcaption);var A=f=b(f.captionpadding,10),m=c[e],D=this.smartLabel||m.smartLabel,G=!1,p=0,n,R,v=0,r=0,q=0,u=0,t=c.title,V=c.subtitle,Z=
W(b(c.chart.plotBorderWidth,1),0),F=0,ba=0;if(3<k){f<Z&&(f=Z+2);l!==a&&(n=t.style,q=va(b(parseFloat(n.fontHeight,10),parseFloat(n.lineHeight,10),12)));d!==a&&(R=V.style,u=b(parseInt(R.fontHeight,10),parseInt(R.lineHeight,10),12));if(0<q||0<u)k=W(k,0),p=q+u+f,p>k?(v=k-p,G=!0,v<f?f=W(v,5):(v-=f,f=0,u>v?(r=u-v+10,u=0,V._originalText=V.text,V.text=""):(v-=u,u=0,q>v&&(r=q-v)))):r=k-p,0<q&&(D.setStyle(n),q+=r,k=D.getSmartText(l,h,q),r=q-k.height,t.height=q=k.height,t.text=k.text,k.tooltext&&(t.originalText=
k.tooltext),F=k.width),0<u&&(D.setStyle(R),u+=r,h=D.getSmartText(d,h,u),r=u-h.height,u=h.height,V.text=h.text,V.height=h.height,h.tooltext&&(V.originalText=h.tooltext),ba=h.width),G&&0<r&&(f+=aa(A-f,r)),p=q+u+f;p=p||Z;t.isOnTop?(g.captionstarty=c.chart.marginTop,c.chart.marginTop+=p):(c.chart.marginBottom+=p,g.captionstarty=t.y=m.height-c.chart.marginBottom+f,c.chart.marginTop+=5,p+=5);t._captionWidth=F;V._subCaptionWidth=ba;t._lineHeight=q;V._lineHeight=u}else V&&(V.text=""),t&&(t.text="");return p},
la=t.stepYAxisValues=function(b,c,d,h,g,k){var f=0,l=h.plotLines,A=[],m=0,D=h.plotLines.length,G="W";c=c[e].smartLabel;for(var p=parseFloat(L(d.basefontsize,10)),s,v,n=0;f<D;f+=1)d=l[f],d.isGrid&&d.label&&d.label.text&&(k&&(v=d.label.text.match(/<br \/>/gi))&&(n=W(n,v.length),v=null),A.push(d),0===d.value&&(m=A.length-1));k&&0<n&&(G+=Array(n+1).join("<br />W"));if(D=A.length)if(h.labels.style?c.setStyle(h.labels.style):A[0].label&&A[0].label.style&&c.setStyle(h.labels.style),f=c.getOriSize(G).height,
k||(f+=.4*p),b/=D-1,b<f){k=W(1,va(f/b));for(f=b=m;f<D;f+=1)d=A[f],f===g&&((f-b)%k&&s&&(s.label.text=""),b=g),d&&d.label&&((f-b)%k?d.label.text=a:s=d);for(f=b=m;0<=f;--f)d=A[f],f===g&&((b-f)%k&&s&&(s.label.text=""),b=g),d&&d.label&&((b-f)%k?d.label.text=a:s=d)}},ca=t.placeHorizontalAxis=function(c,d,h,k,g,f,A){var m=h[e],D=k&&k.chart||{},G,s,p,v,n,r,q,u,t,V,Z,F,ba=0,B=0,Q=10,C=1,ua=0,pa=0,K=0,Ta=0,wa=!1,J=!1,H=!1,db=b(D.labelstep,0),Ga=b(D.xaxisminlabelwidth,0),ab=b(D.maxlabelheight,f),Aa=d.labelDisplay,
Ha=d.rotateLabels,la=d.horizontalLabelPadding,N=m.marginBottomExtraSpace,jb=h.chart.marginLeft,O=h.chart.marginRight,ca=m.smartLabel,X=m.plotBorderThickness,M=d.catCount,ub=d.slantLabels,L=g/(c.max-c.min),Va=0,Pa=0,U=0,Rb=0,ga=k&&k.chart||{},S=1E3*b(ga.updateinterval,ga.refreshinterval),pc=ga.datastreamurl,qc=Boolean(this.realtimeEnabled&&S&&void 0!==pc),Bb,T,$,da,ma,Da,ja,ta,ha,sa,Ua,Ia,Za,Wa,Ca,ia,Qa,Ba,xa,Ra,ya,Fa,Sa,ob,$a,Nb=null,Wb=null,Ma,Xa,fb,Vb,dc,ec,hc,fc,Ob,qa,Xb,gc,Ka=[],Ab=[],kb,Fb=0,
Gb=0,ic,pb,wb,oc,cb,vb,lb,tb=d.horizontalAxisNamePadding,Db=0,Ya=d.staggerLines,Pb=Va,Lb=!1,rb=!1,Ib=0,tc,Hb,Sb,ac,Eb,sb,Qb,Ub,Mb,eb,Tb,Qc,uc,Gc,Lc,Ac,Rc,Hc,Mc,vc;Xb=c.plotLines;Q=qa=0;for(lb=Xb.length;qa<lb;qa+=1)(s=Xb[qa])&&s.label&&!s.isTrend&&Q<parseFloat(s.label.style.lineHeight,10)&&(Q=parseInt(s.label.style.lineHeight,10),r=s.label.style);if(r||c.labels.style)r=r||c.labels.style,ca.setStyle(r),u=ca.getOriSize("W"),Q=ca.lineHeight,q=u.width+4,F=ca.getOriSize("WWW").width+4;c.title&&c.title.text!=
a&&(r=c.title.style,ca.setStyle(r),pa=ca.getOriSize("W").height,c.title.rotation=0,v=ca.getSmartText(c.title.text,g,f),B=v.height);jb!=parseInt(D.chartleftmargin,10)&&(hc=!0);O!=parseInt(D.chartrightmargin,10)&&(fc=!0);void 0!==D.canvaspadding&&""!==D.canvaspadding&&(rb=!0);Ob=g-A;switch(Aa){case "none":wa=H=!0;Ha&&(ba=ub?300:270,u=Q,Q=q,q=u);break;case "rotate":ba=ub?300:270;u=Q;Q=q;q=u;wa=!0;break;case "stagger":J=wa=!0;t=za((f-pa)/Q);t<Ya&&(Ya=t);break;default:Ha&&(ba=ub?300:270,u=Q,Q=q,q=u)}m.isBar&&
(wa=!0);qa=0;Xb=c.plotLines;if(typeof h._FCconf.isXYPlot!==gb||m.isBar){Bb={};Da=ma=0;sa=ha=null;Ba={};Lb=!0;L=g/(c.max-c.min);ac=function(b,d,g){var e,w,k,f,l,I;I=b.plotObj;l=b.labelTextWidth;l||(n=I.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),l=ca.getOriSize(n.text).width+4,b.oriWidth=l,l>T&&(l=T),b.labelTextWidth=l,b.leftEdge=I.value*L-l/2,b.rightEdge=I.value*L+l/2,g&&(l=aa(l,2*(s.value-c.min)*L+h.chart.marginLeft),b.labelTextWidth=l));if(typeof d!==gb){if(g=d.plotObj,n=g.label,n.style&&
n.style!==r&&(r=n.style,ca.setStyle(r)),d.oriWidth?k=d.oriWidth:(k=ca.getOriSize(n.text).width+4,d.oriWidth=k),k>T&&(k=T),d.labelTextWidth=k,d.leftEdge=g.value*L-k/2,d.rightEdge=g.value*L+k/2,e=I.value*L,w=e+l/2,f=g.value*L,k=f-k/2,k<w)if(e+q<f-q)w-=k,e=f-e,b.labelTextWidth=w>e?aa(l,e):W(q,l-w/2),d.labelTextWidth=2*(e-b.labelTextWidth/2),b.leftEdge=I.value*L-b.labelTextWidth/2,b.rightEdge=I.value*L+b.labelTextWidth/2,d.leftEdge=g.value*L-d.labelTextWidth/2,d.rightEdge=g.value*L+d.labelTextWidth/2;
else return d.labelTextWidth=0,g.label.text=a,!1}else g&&(l=aa(l,2*(c.max-s.value)*L+h.chart.marginRight),b.labelTextWidth=l,b.leftEdge=I.value*L-l/2,b.rightEdge=I.value*L+l/2);b.nextCat=d;return!0};J?Ya>pb?Ya=pb:2>Ya&&(Ya=2):Ya=1;for(lb=Xb.length;qa<lb;qa+=1)(s=Xb[qa])&&s.label&&typeof s.label.text!==gb&&(s.isGrid?(da={plotObj:s},s.isCat&&(ta=qa%Ya,Bb[ta]||(Bb[ta]=[]),ha?(sa=da,Bb[ta].push(sa)):(sa=ha=da,Bb[ta].push(ha))),Ka.push(da)):s.isTrend&&Ab.push({plotObj:s}));gc=c.plotBands;qa=0;for(lb=gc.length;qa<
lb;qa+=1)(s=gc[qa])&&s.isTrend&&s.label&&typeof s.label.text!==gb&&Ab.push({plotObj:s});if(Ka.length)if(!H&&!ba)if(m.distributedColumns)for(qa=0,lb=Ka.length;qa<lb;qa+=1)ia=Ka[qa],Qa=qa%Ya,s=ia.plotObj,s.label&&s.isCat&&(0<=qa-Ya?(Ia=Ka[qa-Ya],Sa=Ia.plotObj.value*L+Ia.plotObj._weight*L/2):(Ia=null,Sa=c.min*L-jb),qa+Ya<lb?(Ua=Ka[qa+Ya],ob=Ua.plotObj.value*L-Ua.plotObj._weight*L/2):(Ua=null,ob=c.max*L+O),n=s.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),Za=s.value*L,Mb=Za-s._weight*L/2,Ub=
Za+s._weight*L/2,1<Ya?(Ra=Mb-Sa,ya=Ub+ob,$a=Ub-Mb+aa(Ra,ya)):$a=Ub-Mb,n=s.label,n.style&&n.style!==r&&ca.setStyle(n.style),$a<q&&q<ca.getOriSize(n.text).width?(s.label.text=a,ia.labelTextWidth=0):(ia.labelTextWidth=$a,G=ca.getSmartText(n.text,$a-4,f,wa),$a=G.width+4,ia.labelTextWidth=$a,Rb=W(Rb,G.height)));else{pb=Ka.length;ic=Ka.length-1;(kb=(Ka[ic].plotObj.value-Ka[0].plotObj.value)*L)?(T=.1*kb,$=W(.2*kb,kb/pb)):$=T=g;for(p in Bb)for(qa=0,Wa=Bb[p].length;qa<Wa;){for(ja=qa+1;!ac(Bb[p][qa],Bb[p][ja]);)ja+=
1;qa=ja}ha&&(Da=(ha.plotObj.value-c.min)*L+jb-ha.labelTextWidth/2);s=Ka[0].plotObj;ha&&s===ha.plotObj||(n=s.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),Z=ca.getOriSize(n.text).width+4,Za=(s.value-c.min)*L+jb,ha&&(Ma=Da-Za,Z=Ma<Z&&Ma>q/2?2*Ma:0),Ka[0].labelTextWidth=Z,0<Z&&(u=Za-Z/2),u<Da&&(Da=u));sa&&(Z=sa.labelTextWidth,ma=(c.max-sa.plotObj.value)*L+O-Z/2);s=Ka[ic].plotObj;sa&&s===sa.plotObj||(n=s.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),Z=ca.getOriSize(n.text).width+4,Za=
(c.max-s.value)*L+O,sa&&(Ma=Za-ma,Z=Ma<Z&&Ma>q/2?2*Ma:0),Ka[ic].labelTextWidth=Z,0<Z&&(u=Za-Z/2),u<ma&&(ma=u));Fb=0>Da?-Da:0;Gb=0>ma?-ma:0;vb=Fb+Gb;if(0<vb)for(p in Ob>vb?(Ca=(Ca=Gb*g/(Gb+g))?Ca+4:0,h.chart.marginRight+=Ca,g-=Ca,Ca=(Ca=Fb*g/(Fb+g))?Ca+4:0,h.chart.marginLeft+=Ca,g-=Ca,L=g/(c.max-c.min)):Fb<Gb?Ob>=Gb&&fc?(Ca=(Ca=Gb*g/(Gb+g))?Ca+4:0,h.chart.marginRight+=Ca,g-=Ca,L=g/(c.max-c.min)):hc&&(Ca=(Ca=Fb*g/(Fb+g))?Ca+4:0,h.chart.marginLeft+=Ca,g-=Ca,L=g/(c.max-c.min)):Ob>=Fb&&hc?(Ca=(Ca=Fb*g/
(Fb+g))?Ca+4:0,h.chart.marginLeft+=Ca,g-=Ca,L=g/(c.max-c.min)):fc&&(Ca=(Ca=Gb*g/(Gb+g))?Ca+4:0,h.chart.marginRight+=Ca,g-=Ca,L=g/(c.max-c.min)),O=h.chart.marginRight,jb=h.chart.marginLeft,kb=(Ka[ic].plotObj.value-Ka[0].plotObj.value)*L,T=.1*kb,$=W(.2*kb,kb/pb),Bb){qa=0;for(Wa=Bb[p].length;qa<Wa;){for(ja=qa+1;!ac(Bb[p][qa],Bb[p][ja],!0);)ja+=1;qa=ja}p+=1}qa=0;for(lb=Ka.length;qa<lb;qa+=1)if(ia=Ka[qa],Qa=qa%Ya,s=ia.plotObj,s.label)if(s.isCat)ia.labelTextWidth&&(Ba[Qa]=ia);else{Ua=(Ia=Ba[Qa])?Ia.nextCat:
Bb[Qa]?Bb[Qa][0]:null;xa=null;if(qa>=Ya)for(Wb=qa-Ya,xa=Ka[Wb];!xa.labelTextWidth;)if(Wb>=Ya)Wb-=Ya,xa=Ka[Wb];else{xa=null;break}Sa=xa?xa.rightEdge:c.min*L-jb;ob=Ua?Ua.leftEdge:c.max*L+O;n=s.label;n.style&&n.style!==r&&(r=n.style,ca.setStyle(r));Z=ca.getOriSize(n.text).width+4;ec=s.value*L-Z/2;if(m.isBar&&qa==lb-1&&xa)Sa>ec&&(xa.plotObj.label.text=a,xa.labelTextWidth=0,Sa=xa.leftEdge);else if(Sa>ec||ob<ec+Z){s.label.text=a;ia.labelTextWidth=0;continue}Sa=W(Sa,ec);Za=s.value*L;$a=2*aa(Za-Sa,ob-Za);
$a.toFixed&&($a=$a.toFixed(2));n=s.label;n.style&&n.style!==r&&ca.setStyle(n.style);$a<q&&q<ca.getOriSize(n.text).width?(s.label.text=a,ia.labelTextWidth=0):(ia.labelTextWidth=$a,G=ca.getSmartText(n.text,$a-4,f,wa),$a=G.width+4,ia.labelTextWidth=$a,ia.leftEdge=Za-$a/2,ia.rightEdge=Za+$a/2,Rb=W(Rb,G.height))}xa=Fa=null;qa=0;for(lb=Ka.length;qa<lb;qa+=1)if(ia=Ka[qa],s=ia.plotObj,Qa=qa%Ya,s.isCat&&ia.labelTextWidth){xa=Fa=null;Za=s.value*L;if(qa>=Ya)for(Wb=qa-Ya,xa=Ka[Wb];!xa.labelTextWidth;)if(Wb>Ya)Wb-=
Ya,xa=Ka[Wb];else{xa=null;break}Ra=xa?Za-xa.rightEdge:Za-c.min*L+h.chart.marginLeft;if(qa+Ya<lb)for(Nb=qa+Ya,Fa=Ka[Nb];!Fa.labelTextWidth;)if(Nb+Ya<lb-1)Nb+=Ya,Fa=Ka[Nb];else{Fa=null;break}ya=Fa?Fa.leftEdge-Za:c.max*L+h.chart.marginRight-Za;$a=2*aa(Ra,ya);$a>$&&($a=$);$a>ia.oriWidth&&($a=ia.oriWidth);ia.labelTextWidth=$a;n=s.label;n.style&&n.style!==r&&ca.setStyle(n.style);G=ca.getSmartText(n.text,$a-4,f,wa);ia.labelTextWidth=G.width+4;Rb=W(Rb,G.height);ia.rightEdge=Za+ia.labelTextWidth/2}}else if(ba)for(qa=
0,lb=Ka.length;qa<lb;qa+=1)if((s=Ka[qa].plotObj)&&s.label&&s.label.text){n=s.label;n.style&&n.style!==r&&(r=n.style,ca.setStyle(r));p=1;if(qa+p<lb)for(eb=Ka[p+qa].plotObj;eb&&(eb.value-s.value)*L<q;)if(s.isCat){if(eb.label){eb.label.text=a;p+=1;if(p+qa>=lb-1)break;eb=Xb[p+qa].plotObj}}else if(eb.isCat){s.label.text=a;s=eb;qa+=p-1;n=s.label;n.style&&n.style!==r&&(r=n.style,ca.setStyle(r));break}U=W(U,ca.getOriSize(n.text).width+4)}p=0;for(lb=Ab.length;p<lb;p+=1)(s=Ab[p].plotObj)&&s.label&&void 0!==
l(s.label.text)&&(n=s.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),G=ca.getOriSize(n.text),n.verticalAlign===Ea?Va=W(Va,G.height):Pa=W(Pa,G.height))}else{for(lb=Xb.length;qa<lb;qa+=1)(s=Xb[qa])&&(s.isGrid?Ka.push(s):s.isTrend&&Ab.push(s));gc=c.plotBands;qa=0;for(lb=gc.length;qa<lb;qa+=1)(s=gc[qa])&&Ab.push(s);ic=Ka.length-1;pb=Ka.length;J&&(Ya>pb?Ya=pb:2>Ya&&(Ya=2));if(pb)for(c.scroll&&c.scroll.viewPortMin&&c.scroll.viewPortMax?(Vb=c.scroll.viewPortMin,dc=c.scroll.viewPortMax,fc=hc=!1):
(Vb=c.min,dc=c.max),kb=(Ka[ic].value-Ka[0].value)*L,wb=Eb=kb/(M-1),oc=(Ka[0].value-Vb)*L,cb=(dc-Ka[ic].value)*L,"auto"===Aa?wb<F&&(ba=ub?300:270,u=Q,Q=q,q=u,wa=!0):"stagger"===Aa&&(wb*=Ya),"line"!==this.defaultSeriesType&&("area"===this.defaultSeriesType?m.drawFullAreaBorder&&(X>oc&&(Vb=c.min-=X/(2*L),oc+=(Ka[0].value-Vb)*L),X>cb&&(dc=c.max+=X/(2*L),cb+=(dc-Ka[ic].value)*L)):(X>oc&&(Vb=c.min-=X/(2*L),oc+=(Ka[0].value-Vb)*L),X>cb&&(dc=c.max+=X/(2*L),cb+=(dc-Ka[ic].value)*L))),q<Ga&&(q=Ga),C=J||H?W(1,
db):W(1,db,va(q/wb)),m.x&&(m.x.stepValue=C),wb*=C,V=2*(oc+jb),(n=Xb[0].label)&&n.text&&(n.style&&ca.setStyle(n.style),Z=270===ba?aa(wb,ca.getOriSize(n.text).height+4):aa(wb,ca.getOriSize(n.text).width+4),Z>V&&(H||(Fb=(Z-V)/2),hc||(rb&&(Fb=0),wb-=Fb/(M-1),Sb=wb*(M-1),L=wb,tc=(kb-Sb)/L,dc=c.max+=tc,Vb=c.min-=tc,Fb=0,kb=Sb,oc=(Ka[0].value-Vb)*L,cb=(dc-Ka[ic].value)*L))),V=2*(cb+O),(n=Xb[ic].label)&&n.text&&(n.style&&ca.setStyle(n.style),Z=270===ba?aa(wb,ca.getOriSize(n.text).height+4):aa(wb,ca.getOriSize(n.text).width+
4),Z>V&&(H||(Gb=(Z-V)/2),fc||(rb&&(Gb=0),wb-=Gb/(M-1),Sb=wb*(M-1),L=wb,tc=(kb-Sb)/L,Gb=0,kb=Sb,oc=(Ka[0].value-Vb)*L,cb=(dc-Ka[ic].value)*L))),vb=Fb+Gb,0<vb&&(Ob>vb?(Ca=(Ca=Gb*g/(Gb+g))?Ca+4:0,h.chart.marginRight+=Ca,g-=Ca,Ca=(Ca=Fb*g/(Fb+g))?Ca+4:0,h.chart.marginLeft+=Ca,g-=Ca,L=g/(c.max-c.min)):Fb<Gb?Ob>=Gb&&fc?(Ca=(Ca=Gb*g/(Gb+g))?Ca+4:0,h.chart.marginRight+=Ca,g-=Ca,L=g/(c.max-c.min)):hc&&(Ca=(Ca=Fb*g/(Fb+g))?Ca+4:0,h.chart.marginLeft+=Ca,g-=Ca,L=g/(c.max-c.min)):Ob>=Fb&&hc?(Ca=(Ca=Fb*g/(Fb+g))?
Ca+4:0,h.chart.marginLeft+=Ca,g-=Ca,L=g/(c.max-c.min)):fc&&(Ca=(Ca=Gb*g/(Gb+g))?Ca+4:0,h.chart.marginRight+=Ca,g-=Ca,L=g/(c.max-c.min)),kb=(Ka[ic].value-Ka[0].value)*L,wb=kb/(M-1),J&&(wb*=Ya),C=J||H?W(1,db):ba?W(1,db,va(Q/wb)):W(1,db,va(q/wb)),m.x&&(m.x.stepValue=C),wb*=C),p=0;p<pb;p+=1){s=Ka[p];if(p%C&&s.label){if(s.stepped=!0,s.label.style=c.steppedLabels.style,!qc)continue}else s.stepped=!1;s&&s.label&&void 0!==l(s.label.text)&&(n=s.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),ba&&H?
(G=ca.getOriSize(n.text),U=W(U,G.width+4),Rb=W(Rb,G.height)):H||(G=ba||J?ca.getOriSize(n.text):ca.getSmartText(n.text,wb-4,f,wa),U=W(U,G.width+4),Rb=W(Rb,G.height)))}p=0;for(lb=Ab.length;p<lb;p+=1)(s=Ab[p])&&s.label&&void 0!==l(s.label.text)&&(n=s.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),G=ca.getOriSize(n.text),n.verticalAlign===Ea?Va=W(Va,G.height):Pa=W(Pa,G.height));c.scroll&&c.scroll.enabled&&!ba&&!H&&(tc=U/2,h.chart.marginLeft<tc&&(Hb=tc-h.chart.marginLeft,Ob>Hb&&(g-=Hb,Ob-=Hb,h.chart.marginLeft+=
Hb)),h.chart.marginRight<tc&&(Hb=tc-h.chart.marginRight,Ob>Hb&&(g-=Hb,Ob-=Hb,h.chart.marginRight+=Hb)))}H?(Db=Q,ba&&(Db=U)):Db=ba?U:J?Ya*Rb:Rb;0<Db&&(Db+la>ab&&(Db=ab-la,Ya=Math.floor(Db/Rb)),Pb+=la+Db);0<B&&(Pb+=B+tb);Xa=la-4;fb=Pa+Pb+2;u=0;fb>f&&(Ma=fb-f,tb>Ma?(tb-=Ma,Ma=0):(Ma-=tb,tb=0,Xa>Ma?(Xa-=Ma,Ma=0):(Ma-=Xa,Xa=0),la=Xa+4),Pa>Ma?(Pa-=Ma,Ma=0):(0<Pa&&(Ma-=Pa,Pa=0),0<Ma&&(Va>Ma?(Va-=Ma,Ma=0):(0<Va&&(Ma-=Va,Va=0),0<Ma&&((u=B-pa)>Ma?(B-=Ma,Ma=0):(Ma-=u,B=pa,0<Ma&&((u=Db-Q)>Ma?(Db-=Ma,Ma=0):(Ma-=
u,Db=Q,0<Ma&&(Ma-=B+tb,B=0,0<Ma&&(Ma-=Db,Db=0,0<Ma&&(la-=Ma)))))))))));la+=N;Tb=m.is3d?-h.chart.xDepth:0;Qc=Db+la;Ac=Tb;Rc=.5*Q;ua=Q+la;lb=Ka.length;K=0;if(Lb)if(ba)for(vc=fa,uc=ub?la+8:la+4,lb=Ka.length,p=0;p<lb;p+=1)(s=Ka[p].plotObj)&&s.label&&void 0!==l(s.label.text)&&(n=s.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),qa=1,G=ca.getSmartText(n.text,Db-4,q,wa),n.text=G.text,G.tooltext&&(n.originalText=G.tooltext),Ac=Tb+Rc/2,n.y=uc,n.x=Ac,n.rotation=ba,n.textAlign=vc,K+=1);else for(Gc=Db,
vc=oa,uc=ua,p=0;p<lb;p+=C)s=Ka[p].plotObj,Q=parseInt(s.label.style.lineHeight,10),s&&s.label&&void 0!==l(s.label.text)&&(n=s.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),H||(G=ca.getSmartText(n.text,Ka[p].labelTextWidth-4,Gc,wa),n.text=G.text,G.tooltext&&(n.originalText=G.tooltext),J&&(uc=ua+K%Ya*Q)),n.y=uc,n.x=Ac,n.rotation=ba,n.textAlign=vc,K+=1);else{ba?(Gc=wb,Lc=Db-4,vc=fa,uc=ub?la+8:la+4):J?(Lc=wb-4,vc=oa):(Gc=Db,Lc=wb-4,vc=oa,uc=ua);for(p=0;p<lb;p+=C)s=Ka[p],Q=va(parseFloat(s.label.style.lineHeight)),
Rc=.5*Q,ua=Q+la,s&&s.label&&void 0!==l(s.label.text)&&(n=s.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),H||(J&&(Gc=Q),sb=jb+(p-Vb)*Eb-h.chart.spacingLeft,Qb=300===ba?aa(na(2.999*sb*sb+sb*sb)-la,Lc):Lc,G=ca.getSmartText(n.text,Qb,Gc,wa),Ib=W(Ib,ba?G.width:G.height),n.text=G.text,G.tooltext&&(n.originalText=G.tooltext),J&&(uc=ua+K%Ya*Q)),ba?Ac=Tb+.5*Q:J||(uc=Q+la),n.y=uc,n.x=Ac,n.rotation=ba,n.textAlign=vc,K+=1);300===ba&&(Db=Ib,Qc=Db+la);d._labelY=ua;d._labelX=Tb;d._yShipment=uc;d._isStagger=
J;d._rotation=ba;d._textAlign=vc;d._adjustedPx=Rc;d._staggerLines=Ya;d._labelHeight=Q;d._canvasWidth=g;d._minCanvasWidth=A;d._availableHeight=f}lb=Ab.length;for(p=Mc=Hc=0;p<lb;p+=1)(s=Ab[p].plotObj?Ab[p].plotObj:Ab[p])&&s.label&&void 0!==l(s.label.text)&&(n=s.label,n.style&&n.style!==r&&(r=n.style,ca.setStyle(r)),n.verticalAlign===Ea?(G=ca.getSmartText(n.text,g,Va,!0),Mc=W(Mc,G.height),n.text=G.text,G.tooltext&&(n.originalText=G.tooltext),n.y=Qc+ca.getOriSize(n.text).height,n.x=Ac):(G=ca.getSmartText(n.text,
g,Pa,!0),Hc=W(Hc,G.height),n.text=G.text,G.tooltext&&(n.originalText=G.tooltext),n.y=-(Pa-ca.getOriSize("W").height+la+2)));0<B&&(ca.setStyle(c.title.style),v=ca.getSmartText(c.title.text,g,B),c.title.text=v.text,v.tooltext&&(c.title.originalText=v.tooltext),c.title.margin=Qc+Mc+tb);Pb=Mc;0<Db&&(m.horizontalAxisHeight=la+Db-N,Pb+=m.horizontalAxisHeight);0<B&&(Pb+=Ta=B+tb);Pb=Pb||la-N;h.chart.marginBottom+=Pb;0<Hc&&(h.chart.marginTop+=Hc,Pb+=Hc);if(c.opposite)for(c.title.margin-=Db-(v&&v.height||0)+
la,Pb-=Ta,h.chart.marginTop+=Pb,h.chart.marginBottom-=Pb,h.xAxis.opposite=1,lb=Xb.length,qa=0;qa<lb;qa+=1)(s=Xb[qa])&&s.isGrid&&(n=s.label)&&void 0!==n.text&&(n.textAlign=La,n.y-=uc+la+4);return Pb},Ha=t.configureLegendOptions=function(d,e,h,k,g){k=d.legend;var f=d.chart,l=f.is3D?pa.chart3D:pa.chart2D,A=f.useRoundEdges,m=b(e.legendiconscale,1),D=(parseInt(k.itemStyle.fontSize,10)||10)+1,n=this.colorManager,G;if(0>=m||5<m)m=1;k.padding=4;0>=D&&(D=1);G=3*m;D=aa(D*m,g-8);0>=D&&(G=D=0);k.symbolWidth=
D;k.symbolPadding=G;k.textPadding=4;k.legendHeight=g=D+2*G;k.rowHeight=W(parseInt(k.itemStyle.lineHeight,10)||12,g);h?(k.align=fa,k.verticalAlign="middle",k.layout="vertical"):k.x=(f.marginLeft-f.spacingLeft-f.marginRight+f.spacingRight)/2;h=c(e.legendbordercolor,n.getColor(l.legendBorderColor));g=b(e.legendborderalpha,100);f=b(e.legendbgalpha,100);k.backgroundColor=S(c(e.legendbgcolor,n.getColor(l.legendBgColor)),f);k.borderColor=S(h,g);k.borderWidth=b(e.legendborderthickness,!A||e.legendbordercolor?
1:0);k.shadow=Boolean(b(e.legendshadow,1));k.symbol3DLighting=Boolean(b(e.use3dlighting,e.useplotgradientcolor,1));k.shadow&&(k.shadow={enabled:k.shadow,opacity:W(g,f)/100});k.reversed=Boolean(b(e.reverselegend,0)-b(this.reverseLegend,0));k.style={padding:4};Boolean(b(e.interactivelegend,1))?k.symbolStyle={_cursor:"hand",cursor:"pointer"}:(d.legend.interactiveLegend=!1,k.itemStyle.cursor="default",k.itemHoverStyle={cursor:"inherit"});k.borderRadius=b(e.legendborderradius,A?3:0);k.legendAllowDrag=
Boolean(b(e.legendallowdrag,0));k.title.text=s(p(e.legendcaption,a));k.legendScrollBgColor=T(c(e.legendscrollbgcolor,e.scrollcolor,n.getColor("altHGridColor")));k.legendScrollBarColor=c(e.legendscrollbarcolor,h);k.legendScrollBtnColor=c(e.legendscrollbtncolor,h)},Ga=t.placeLegendBlockRight=function(c,d,h,k,g){this.configureLegendOptions(c,d.chart,!0,g,h);var f=this.snapLiterals||(this.snapLiterals={}),l=0,A=c.series,m,D=c[e],n=this.smartLabel||D.smartLabel,s=c.chart.spacingRight,G=c.legend,p,r=G.textPadding,
q=G.title.padding,v=G.symbolWidth,u=G.symbolPadding,V=v+2*u,t=2*k,Z=0,F=b(d.chart.legendpadding,7);d=F+G.borderWidth/2+b(d.chart.canvasborderthickness,1);var ba=2*G.padding,B=ba,Q=!1,C=[];h-=ba+F;g&&(A=A&&A[0]&&A[0].data);if(typeof A===gb||typeof A.length===gb)return 0;g=A.length;for(l=0;l<g;l+=1)(m=A[l])&&!1!==m.showInLegend&&(m.__i=l,C.push(m));C.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});g=C.length;p=h-V-F-r;0>p&&(p=0);n.setStyle(G.itemStyle);G.reversed&&C.reverse();for(l=
0;l<g;l+=1)m=C[l],Q=!0,m._legendX=0,m._legendY=B,0===p?(B+=m._legendH=V,m.name=a,m._totalWidth=v+u):(A=n.getSmartText(m.name,p,t),m.name=A.text,A.tooltext&&(m.originalText=A.tooltext),A.height<V&&(m._legendTestY=(V-A.height)/2),m._totalWidth=v+u+r+A.width+F,B+=m._legendH=W(A.height,V),Z=W(A.width,Z));if(Q)return G.itemWidth=Z+V+F+r,G.width=G.itemWidth+ba,G.title.text!==a&&(n.setStyle(G.title.style),A=n.getSmartText(G.title.text,h,t),G.title.text=A.text,A.tooltext&&(G.title.originalText=A.tooltext),
l=A.width+ba,G.width<l&&(G.initialItemX=(l-G.width)/2,G.width=l),G.initialItemY=A.height+q,B+=G.initialItemY),G.height=G.totalHeight=B,G.height>k&&(G.height=k,G.scroll.enabled=!0,G.scroll.flatScrollBars=D.flatScrollBars,G.scroll.scrollBar3DLighting=D.scrollBar3DLighting,G.width+=(G.scroll.scrollBarWidth=10)+(G.scroll.scrollBarPadding=2)),f.legendstartx=D.width-s-G.width,f.legendwidth=G.width,f.legendendx=f.legendstartx+f.legendwidth,f.legendheight=G.height,d=aa(G.width+d,h),c.chart.marginRight+=d+
F,d;G.enabled=!1;return 0},Va=t.placeLegendBlockBottom=function(c,d,h,k,g){this.configureLegendOptions(c,d.chart,!1,g,h);var f=this.snapLiterals||(this.snapLiterals={}),l=0,A=c.series,m=c[e],D=m.smartLabel||this.smartLabel,n=c.chart,G=n.spacingBottom,p=n.spacingLeft,n=n.spacingRight,r=c.legend,v,q=r.textPadding,u=r.title.padding,V,t=r.symbolWidth,Z=r.symbolPadding,F=r.legendHeight,ba=d.chart;V=0;var B=2*k,Q=r.rowHeight,C=.05*Q,ua=[];v=b(ba.minimisewrappinginlegend,0);var ba=b(parseInt(ba.legendnumcolumns,
10),0),pa=0,K=0,wa=0,J=l=0,Ta=0,H=0,db=r.padding,ca=2*db,db=q+Z+db;d=b(d.chart.legendpadding,7)+r.borderWidth/2+1;var la=ca,L=!1,Ga,Aa=[],ab=!1,Ha=0,N=0;0>ba&&(ba=0);h-=ca;D.setStyle(r.itemStyle);l=D.getOriSize(rb).height;d=aa(d,k-l-8);k-=d;g&&(A=A&&A[0]&&A[0].data);if(typeof A===gb||typeof A.length===gb)return 0;g=A.length;for(l=0;l<g;l+=1)(Ga=A[l])&&!1!==Ga.showInLegend&&(Ga.__i=l,Aa.push(Ga));Aa.sort(function(a,b){return a.legendIndex-b.legendIndex||a.__i-b.__i});g=Aa.length;D.setStyle(r.itemStyle);
for(l=0;l<g;l+=1)L=!0,Aa[l].name=s(Aa[l].name),A=D.getOriSize(Aa[l].name),pa=W(pa,A.width),Ta=W(Ta,aa(A.height,B)),K+=A.width,wa+=1;l=K/wa;F=F+C+q+Z+ca;K+=F*wa;if(L){l+=F;pa+=F;0<ba&&wa<ba&&(ba=wa);K<=h&&(0>=ba||ba===wa)?(ba=wa,J=l=K/wa,ab=!0,Ta>Q&&(H=(Ta-Q)/2,Q=Ta)):0<ba&&(J=h/ba)>l?J>pa&&(J=pa):h>pa&&(v||1.5*l>pa)?(ba=za(h/pa),wa<ba&&(ba=wa),J=pa):h>=2*l?(ba=za(h/l),wa<ba&&(ba=wa),J=za(h/ba),J>pa&&(J=pa)):(ba=1,J=h);r.itemWidth=J;v=va(J-F);0>v&&(Z=v=q=0);r.symbolPadding=Z;r.textPadding=q;r.width=
J*ba-C;r.title.text!==a&&(D.setStyle(r.title.style),A=D.getSmartText(r.title.text,h,B),r.title.text=A.text,A.tooltext&&(r.title.originalText=A.tooltext),V=A.width+ca,r.width<V&&(r.initialItemX=(V-r.width)/2,r.width=V),r.initialItemY=V=A.height+u);D.setStyle(r.itemStyle);r.reversed&&Aa.reverse();for(l=0;l<g;l+=1){h=Aa[l];0===v&&(ua[Ha]=!0,h.name=a,u=1,q=parseInt(Ha/ba,10),C=Ha%ba,h._legendX=C*J,h._legendY=q*Q+ca,h._legendH=u*Q,h._totalWidth=t+Z);if(ab)A=D.getOriSize(h.name),A.height<Q&&(h._legendTestY=
(Q-A.height)/2),h._markerYGutter=H,h._legendX=N,h._legendY=ca,h._legendH=Q,h._totalWidth=t+db+A.width,N+=A.width+F;else{A=D.getSmartText(h.name,v,B);h.name=A.text;for(A.tooltext&&(h.originalText=A.tooltext);!0===ua[Ha];)Ha+=1;q=A.height/Q;C=Ha;for(u=0;u<q;u+=1,C+=ba)ua[C]=!0;A.height<Q&&(h._legendTestY=(Q-A.height)/2);q=parseInt(Ha/ba,10);C=Ha%ba;h._legendX=C*J;h._legendY=q*Q+ca;h._legendH=u*Q;h._totalWidth=t+db+A.width}Ha+=1}D=ab?1:va(ua.length/ba);r.height=r.totalHeight=la+(D*Q+V);r.rowHeight=Q;
r.legendNumColumns=ba;r.height>k&&(r.height=k,r.scroll.enabled=!0,r.scroll.flatScrollBars=m.flatScrollBars,r.scroll.scrollBar3DLighting=m.scrollBar3DLighting,r.width+=(r.scroll.scrollBarWidth=10)+(r.scroll.scrollBarPadding=2));f.legendstartx=p+.5*(m.width-p-n-r.width)+(r.x||0);f.legendwidth=r.width;f.legendendx=f.legendstartx+f.legendwidth;f.legendstarty=m.height-G-r.height;f.legendheight=r.height;f.legendendy=f.legendstarty+f.legendheight;d+=r.height;c.chart.marginBottom+=d;return d}r.enabled=!1;
return 0},Rb=function(a,b){return a.value-b.value},jb=function(a,b,c){var d=b._originalText;a=a[e].smartLabel;b.text=b.rotation?a.getSmartText(d,c,b._actualWidth).text:a.getSmartText(d,b._actualWidth,c).text;b.centerYAxisName=!0},pc=t.adjustVerticalAxisTitle=function(a,b,c){if(b&&b.text){var d=b.text,g=a[e].smartLabel,h=2*aa(a.chart.marginTop,a.chart.marginBottom)+c,k=c+a.chart.marginTop+a.chart.marginBottom;b.style&&g.setStyle(b.style);d=g.getOriSize(d);void 0===b.centerYAxisName&&(b.centerYAxisName=
!0);b.rotation?d.width>h&&(b.y=k/2-(c/2+a.chart.marginTop),b.centerYAxisName=!1):d.height>h&&(b.y=(k/2-(c/2+a.chart.marginTop))/2,b.centerYAxisName=!1)}},ub=t.adjustVerticalCanvasMargin=function(a,c,d,e){var g=c.chart,h=c=0,k=0,f=b(g.canvastopmargin,0),g=b(g.canvasbottommargin,0),l=f/(f+g),A=a.chart.marginTop,m=a.chart.marginBottom;g>m&&(c+=g-m);f>A&&(c+=f-A);c>d?f>A&&g>m?(h=d*l,k=d*(1-l)):f>A?h=d:k=d:0<c&&(g>m&&(k=g-m),f>A&&(h=f-A));h&&(a.chart.marginTop+=h);k&&(a.chart.marginBottom+=k,e&&e.title&&
(e.title.margin+=k));return h+k},qc=t.adjustHorizontalCanvasMargin=function(a,c,d,e,g){var h=c.chart;c=b(h.canvasleftmargin,0);var h=b(h.canvasrightmargin,0),k=c/(c+h),f=0,l=a.chart.marginLeft,A=a.chart.marginRight,m=0,D=0;c>l&&(f+=c-l);h>A&&(f+=h-A);f>d?c>l&&h>A?(m=d*k,D=d*(1-k)):h>A?D=d:m=d:0<f&&(c>l&&(m=c-l),h>A&&(D=h-A));m&&(a.chart.marginLeft+=m,e&&e.title&&(e.title.margin+=m));D&&(a.chart.marginRight+=D,g&&g.title&&(g.title.margin+=D));return D+m},Pa=function(a,b){return a-b},Bb=t.getDataParser=
{column:function(a,d,h){var f=a[e],g=d.borderWidth;return function(e,l,A){var m=d.plotgradientcolor,D=d.is3d,n=d.isRoundEdges,s=d.plotBorderColor,G=c(e.color,d.color),r=c(e.ratio,d.ratio),p=da(d.plotBorderAlpha),q=b(e.dashed,d.dashed),v=c(e.dashlen,d.dashLen),u=c(e.dashgap,d.dashGap),V=d.use3DLighting,t=da(c(e.alpha,d.alpha)).toString(),Z={opacity:t/100},F=d.isBar,ba=d.fillAangle,B=0>A?F?180-ba:360-ba:ba,ba=M(G+xa+m,t,r,B,n,s,c(e.alpha,p).toString(),F,D),Q=q?k(v,u,g):"none";l=h.getPointStub(e,A,f.oriCatTmp[l],
a,d,d.showValues,d.yAxis);e=h.pointHoverOptions(e,d,{plotType:"column",is3d:D,isBar:F,use3DLighting:V,isRoundEdged:n,color:G,gradientColor:m,alpha:t,ratio:r,angle:B,borderWidth:g,borderColor:s,borderAlpha:p,borderDashed:q,borderDashGap:u,borderDashLen:v,shadow:Z});l.y=A;l.shadow=Z;l.color=ba[0];l.borderColor=ba[1];l.borderWidth=g;l.use3DLighting=V;l.dashStyle=Q;l.tooltipConstraint=h.tooltipConstraint;l.hoverEffects=e.enabled&&e.options;l.rolloverProperties=e.enabled&&e.rolloverOptions;return l}},
line:function(a,d,h){var f=a[e];return function(g,e,l){var A=b(g.alpha,d.lineAlpha),m={opacity:A/100},D=b(g.anchorsides,d.anchorSides,0),n=b(g.anchorborderthickness,d.anchorBorderThickness,1),s=T(c(g.anchorbordercolor,d.anchorBorderColor)),G=T(c(g.anchorbgcolor,d.anchorBgColor)),r=b(g.anchorstartangle,d.anchorStartAngle,90),p=c(g.anchoralpha,d.anchorAlpha),q=c(g.anchorbgalpha,p),v=b(g.anchorradius,d.anchorRadius),u=Boolean(b(g.anchorshadow,d.anchorShadow,0));e=h.getPointStub(g,l,f.oriCatTmp[e],a,
d,d.showValues,d.yAxis);var V=c(g.anchorimageurl,d.imageUrl),t=c(g.anchorimagescale,d.imageScale),Z=c(g.anchorimagealpha,d.imageAlpha);e.y=l;e.shadow=m;e.anchorShadow=d.anchorShadow;e.dashStyle=b(g.dashed,d.lineDashed)?k(d.lineDashLen,d.lineDashGap,d.lineThickness):"none";e.color={FCcolor:{color:T(c(g.color,d.lineColor)),alpha:A}};e.valuePosition=c(g.valueposition,d.valuePosition);l=h.pointHoverOptions(g,d,{plotType:"anchor",anchorBgColor:G,anchorAlpha:p,anchorBgAlpha:q,anchorAngle:r,anchorBorderThickness:n,
anchorBorderColor:s,anchorBorderAlpha:p,anchorSides:D,anchorRadius:v,imageUrl:V,imageScale:t,imageAlpha:Z,shadow:m});e.marker={enabled:void 0===d.drawAnchors?0!==A:!!d.drawAnchors,shadow:u&&{opacity:p/100},fillColor:{FCcolor:{color:T(c(g.anchorbgcolor,d.anchorBgColor)),alpha:(c(g.anchorbgalpha,d.anchorBgAlpha)*p/100).toString()}},lineColor:{FCcolor:{color:T(c(g.anchorbordercolor,d.anchorBorderColor)),alpha:p}},imageUrl:V,imageScale:t,imageAlpha:Z,lineWidth:b(g.anchorborderthickness,d.anchorBorderThickness),
radius:b(g.anchorradius,d.anchorRadius),symbol:Fa(b(g.anchorsides,d.anchorSides)),startAngle:c(g.anchorstartangle,d.anchorAngle)};e.hoverEffects=l.enabled&&l.options;e.rolloverProperties=l.enabled&&l.rolloverOptions;return e}},area:function(a,d,h){var k=a[e];return function(g,e,f){var l=c(g.alpha,d.fillAlpha),A={opacity:W(l,d.lineAlpha)/100,inverted:!0},m=b(g.anchorsides,d.anchorSides,0),D=b(g.anchorborderthickness,d.anchorBorderThickness,1),n=T(c(g.anchorbordercolor,d.anchorBorderColor)),s=T(c(g.anchorbgcolor,
d.anchorBgColor)),G=b(g.anchorstartangle,d.anchorStartAngle,90),r=c(g.anchoralpha,d.anchorAlpha),p=c(g.anchorbgalpha,r),q=b(g.anchorradius,d.anchorRadius),v=Boolean(b(g.anchorshadow,d.anchorShadow,0));e=h.getPointStub(g,f,k.oriCatTmp[e],a,d,d.showValues,d.yAxis);var u=c(g.anchorimageurl,d.imageUrl),V=c(g.anchorimagescale,d.imageScale),t=c(g.anchorimagealpha,d.imageAlpha);e.y=f;e.shadow=A;e.anchorShadow=d.anchorShadow;e.color={FCcolor:{color:T(c(g.color,d.fillColor)),alpha:l}};e.valuePosition=c(g.valueposition,
d.valuePosition);f=h.pointHoverOptions(g,d,{plotType:"anchor",anchorBgColor:s,anchorAlpha:r,anchorBgAlpha:p,anchorAngle:G,anchorBorderThickness:D,anchorBorderColor:n,anchorBorderAlpha:r,anchorSides:m,anchorRadius:q,imageUrl:u,imageScale:V,imageAlpha:t,shadow:A});e.marker={enabled:d.drawAnchors,shadow:v&&{opacity:r/100},fillColor:{FCcolor:{color:T(c(g.anchorbgcolor,d.anchorBgColor)),alpha:(c(g.anchorbgalpha,d.anchorBgAlpha)*r/100).toString()}},lineColor:{FCcolor:{color:T(c(g.anchorbordercolor,d.anchorBorderColor)),
alpha:r}},imageUrl:u,imageScale:V,imageAlpha:t,lineWidth:b(g.anchorborderthickness,d.anchorBorderThickness),radius:q,symbol:Fa(b(g.anchorsides,d.anchorSides)),startAngle:c(g.anchorstartangle,d.anchorAngle)};e.hoverEffects=f.enabled&&f.options;e.rolloverProperties=f.enabled&&f.rolloverOptions;e.events={click:d.getLink};return e}}};f.core.options.resizeTrackingInterval=300;f.core.options.preventTrackResize=!1;f.core.options.SVGDefinitionURL="relative";t.createChart=function(a,e,h,k,g,l,A){var m=a.jsVars,
D,n,s=ha[h||(h=a.chartType())],G,r=m.hasNativeMessage,p=a.options,q=a.args,v;v=function(b){var c={renderer:"javascript"},g=m.fcObj,l=g.width,D=g.height,n=s&&s.eiMethods,p=m.overlayButton,q;e.jsVars=a.jsVars;m.container=e;m.hcObj=b;m.type=h;m.width=e.offsetWidth;m.height=e.offsetHeight;m.instanceAPI=G;if(b.hasRendered){f.extend(e,Ta);if(n&&"string"!==typeof n)for(q in n)e[q]=n[q];m.overlayButtonActive&&p&&(p.innerHTML="",p.appendChild(d.createTextNode(m.overlayButtonMessage)),b.container.appendChild(p))}(/\%/g.test(l)||
/\%/g.test(D))&&e&&e.parentNode&&!f.core.options.preventTrackResize&&ua(g,e);if(k&&(k({success:b.hasRendered,ref:e,id:a.id}),b.hasRendered)){t.raiseEvent("loaded",{type:h,renderer:"javascript"},a,[a.id]);if(!0===a.disposed)return;r||(g.__state.firstRenderNotified=!0,setTimeout(function(){t.raiseEvent("rendered",{renderer:"javascript"},g,[g.id])},0))}b.hasRendered&&m.previousDrawCount<m.drawCount&&(c.width=m.width,c.height=m.height,c.drawCount=m.drawCount,c.displayingMessage=r,c.renderer=g.options.renderer,
t.raiseEvent("drawcomplete",c,g,[g.id]),r||A||setTimeout(function(){g.__state&&!g.__state.firstRenderNotified&&t.raiseEvent("rendered",{renderer:"javascript"},g,[g.id]);f.raiseEvent("renderComplete",c,g)},0))};m.instanceAPI&&m.instanceAPI.dispose&&m.instanceAPI.dispose();G=s?new ha(h):new ha("stub");G.chartInstance=a;G.origRenderWidth=a.__state.renderedWidth;G.origRenderHeight=a.__state.renderedHeight;if(void 0!==g)"string"===typeof g&&(g=new cb(e,g,a),r=m.hasNativeMessage=!0);else if(!s||!s.init||
s&&"stub"===s.name)a._chartMessageImageStyle={imageHAlign:c(q.typeNotSupportedMessageImageHAlign,p.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(q.typeNotSupportedMessageImageVAlign,p.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:b(q.typeNotSupportedMessageImageAlpha,p.baseChartMessageImageAlpha),imageScale:b(q.typeNotSupportedMessageImageScale,p.baseChartMessageImageScale)},a._chartMessageStyle={color:q.typeNotSupportedMessageColor||p.baseChartMessageColor,fontFamily:q.typeNotSupportedMessageFont||
p.baseChartMessageFont,fontSize:q.typeNotSupportedMessageFontSize||p.baseChartMessageFontSize},g=new cb(e,p.typeNotSupportedMessage,a),r=m.hasNativeMessage=!0;else if(m.message)g=new cb(e,m.message,a),r=m.hasNativeMessage=!0;else if(m.loadError)a._chartMessageImageStyle={imageHAlign:c(q.dataLoadErrorMessageImageHAlign,p.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(q.dataLoadErrorMessageImageVAlign,p.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:b(q.dataLoadErrorMessageImageAlpha,
p.baseChartMessageImageAlpha),imageScale:b(q.dataLoadErrorMessageImageScale,p.baseChartMessageImageScale)},a._chartMessageStyle={color:q.dataLoadErrorMessageColor||p.baseChartMessageColor,fontFamily:q.dataLoadErrorMessageFont||p.baseChartMessageFont,fontSize:q.dataLoadErrorMessageFontSize||p.baseChartMessageFontSize},g=new cb(e,p.dataLoadErrorMessage,a),r=m.hasNativeMessage=!0;else if(m.stallLoad)a._chartMessageImageStyle={imageHAlign:c(q.dataLoadStartMessageImageHAlign,p.baseChartMessageImageHAlign).toLowerCase(),
imageVAlign:c(q.dataLoadStartMessageImageVAlign,p.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:b(q.dataLoadStartMessageImageAlpha,p.baseChartMessageImageAlpha),imageScale:b(q.dataLoadStartMessageImageScale,p.baseChartMessageImageScale)},a._chartMessageStyle={fontFamily:q.dataLoadStartMessageFont||p.baseChartMessageFont,fontSize:q.dataLoadStartMessageFontSize||p.baseChartMessageFontSize,color:q.dataLoadStartMessageColor||p.baseChartMessageColor},g=new cb(e,p.dataLoadStartMessage,a),r=m.hasNativeMessage=
!0;else if(f.raiseEvent("internal.drawStart",{chartType:h,logicName:G.name,logicBase:G.base&&G.base.name,defaultSeriesType:G.defaultSeriesType},a),D=a.jsVars&&a.jsVars.themeObject&&a.jsVars.themeObject.getThemedJSONData()||a.getChartData(f.dataFormats.JSON,!0),n=D.data,D.error instanceof Error)a._chartMessageImageStyle={imageHAlign:c(q.dataInvalidMessageImageHAlign,p.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(q.dataInvalidMessageImageVAlign,p.baseChartMessageImageVAlign).toLowerCase(),
imageAlpha:b(q.dataInvalidMessageImageAlpha,p.baseChartMessageImageAlpha),imageScale:b(q.dataInvalidMessageImageScale,p.baseChartMessageImageScale)},a._chartMessageStyle={fontFamily:q.dataInvalidMessageFont||p.baseChartMessageFont,fontSize:q.dataInvalidMessageFontSize||p.baseChartMessageFontSize,color:q.dataInvalidMessageColor||p.baseChartMessageColor},g=new cb(e,p.dataInvalidMessage,a),r=m.hasNativeMessage=!0,a.__state.dataReady=!1,A||f.raiseEvent("dataInvalid",{error:D.error},m.fcObj,void 0,function(){t.raiseEvent("dataxmlinvalid",
{},a,[a.id])});else{A||t.raiseEvent("dataloaded",{},a,[a.id]);if(!0===G.chartInstance.disposed)return;g=G.init(e,n,a,v);G.inited=!0;m.previousDrawCount=m.drawCount;m.drawCount+=1;0===g.series.length?(a._chartMessageImageStyle={imageHAlign:c(q.dataEmptyMessageImageHAlign,p.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(q.dataEmptyMessageImageVAlign,p.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:b(q.dataEmptyMessageImageAlpha,p.baseChartMessageImageAlpha),imageScale:b(q.dataEmptyMessageImageScale,
p.baseChartMessageImageScale)},a._chartMessageStyle={fontFamily:q.dataEmptyMessageFont||p.baseChartMessageFont,fontSize:q.dataEmptyMessageFontSize||p.baseChartMessageFontSize,color:q.dataEmptyMessageColor||p.baseChartMessageColor},g=new cb(e,p.dataEmptyMessage,a),r=m.hasNativeMessage=!0,a.__state.dataReady=!1,A||t.raiseEvent("nodatatodisplay",{},a,[a.id])):(a.__state.dataReady=!0,r=m.hasNativeMessage=!1,delete m.message)}g||(a._chartMessageImageStyle={imageHAlign:p.baseChartMessageImageHAlign,imageVAlign:p.baseChartMessageImageVAlign,
imageAlpha:p.baseChartMessageImageAlpha,imageScale:p.baseChartMessageImageScale},a._chartMessageStyle={fontFamily:p.baseChartMessageFont,fontSize:p.baseChartMessageFontSize,color:p.baseChartMessageColor},g=new cb(e,"Error rendering chart {0x01}",a),r=m.hasNativeMessage=!0);r&&!G.inited&&G.init(e,n,a,v);g.chart=g.chart||{};g.credits=g.credits||{};g.credits.enabled=s&&!0===s.creditLabel?!0:!1;!1===l&&(g.chart.animation=!1,g.plotOptions||(g.plotOptions={}),g.plotOptions.series||(g.plotOptions.series=
{}),g.plotOptions.series.animation=!1);e.style&&(g.chart.containerBackgroundColor=t.getContainerBackgroundColor(a));return G.draw(g,v)};ha("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 ha("renderer."+this.rendererId));this.updateDefaultAnnotations();return c.init(this,a,b)},init:function(d,e,k){var l=this.chartInstance||k,g=l.jsVars;k=g._reflowData||
(g._reflowData={});var A=g._reflowClean,m=l.options,D=m.args,n,p;/^\s*absolute\s*$/i.test(f.core.options.SVGDefinitionURL)&&(C._url=(C._g&&C._g.win||q).location.href.replace(/#.*?$/,a));this.dataObj=e=h({},e);p=e.chart=e.chart||e.graph||e.map||{};delete e.graph;delete e.map;k&&!this.stateless&&(n=k.hcJSON,delete k.hcJSON,h(this,k,!0),this.preReflowAdjustments&&this.preReflowAdjustments.call(this),k.hcJSON=n);this.containerElement=d;this.config={};this.smartLabel=g.smartLabel;this.smartLabel.useEllipsesOnOverflow(b(p.useellipseswhenoverflow,
p.useellipsewhenoverflow,1));this.colorManager=new t.colorManager(e,this);this.linkClickFN=sb(e,l);this.numberFormatter=new Tb(e.chart,this);if(!this.standaloneInit)return l._chartMessageImageStyle={imageHAlign:c(D.typeNotSupportedMessageImageHAlign,m.baseChartMessageImageHAlign).toLowerCase(),imageVAlign:c(D.typeNotSupportedMessageImageVAlign,m.baseChartMessageImageVAlign).toLowerCase(),imageAlpha:b(D.typeNotSupportedMessageImageAlpha,m.baseChartMessageImageAlpha),imageScale:b(D.typeNotSupportedMessageImageScale,
m.baseChartMessageImageScale)},l._chartMessageStyle={fontFamily:D.typeNotSupportedMessageFont||m.baseChartMessageFont,fontSize:D.typeNotSupportedMessageFontSize||m.baseChartMessageFontSize,color:D.typeNotSupportedMessageColor||m.baseChartMessageColor},new t.createDialog(d,m.typeNotSupportedMessage,l);d=this.chart(d.offsetWidth||parseFloat(d.style.width),d.offsetHeight||parseFloat(d.style.height),l);k&&!this.stateless&&(k.hcJSON&&h(d,k.hcJSON,!0),this.postReflowAdjustments&&this.postReflowAdjustments.call(this),
A&&this.cleanedData&&(this.cleanedData(this,A),this.cleanedData(k,A)));return d},postSpaceManager:function(){var a=this.hcJSON,c=a._FCconf,d=a.chart,e=d.marginLeft,g=d.spacingLeft,h=d.spacingRight,k=c.width-e-d.marginRight,f=a.title,a=a.subtitle,l=c.width,A=f.align,c=f.x,m=f.horizontalPadding,D=f.alignWithCanvas,n=(ma(e)||0)+b(k,l)/2,e=this.snapLiterals||(this.snapLiterals={}),k=f._captionWidth,p=a._subCaptionWidth,s=f._lineHeight,G=a._lineHeight,r=f.text;if(void 0===c){switch(A){case fa:c=D?l-d.marginRight-
m:l-m;break;case La:c=D?d.marginLeft+m:m;break;default:c=D?n:g+.5*(l-g-h)||l/2}f.align===La?(h=g=0,f.align="start"):f.align===fa?(g=k,h=p,f.align="end"):(g=k/2,h=p/2,f.align="middle");f.x=c;f.y=f.y||d.spacingTop||0;a.y=r?f.y+s+2:f.y||d.spacingTop||0;e.captionstartx=c-g-2;e.captionwidth=k+4;e.captionendx=e.captionstartx+e.captionwidth;e.captionstarty=f.y||0;e.captionheight=s+2;e.captionendy=e.captionstarty+e.captionheight;e.subcaptionstartx=c-h-2;e.subcaptionwidth=p+4;e.subcaptionendx=e.subcaptionstartx+
e.subcaptionwidth;e.subcaptionstarty=a.y||0;e.subcaptionheight=G+2;e.subcaptionendy=e.subcaptionstarty+e.subcaptionheight}},chart:function(d,w){var A=this.name,m=this.dataObj,g=m.chart,D=this.colorManager,n,r,v,t,Z,F,ba,B=this.defaultSeriesType,Q,C,ua,wa,K,J,Ta,Ja,Y,H,ca,la,Ha,Aa,Ga,ab,N,jb,O,M,Va,ub,Pa,U,Rb,Bb,pc,qc,aa,$,da,ma,ja,ha,va,na,za,Ba,Fa,Xa,cb,gb,fb,Jb,Yb,xb,nb,Zb,zb,bc,Ua,eb,Za,Wa,Ca,rb,Qa,Cb,sb,$b,jc,kc,Lb,ob,$a,Nb,Wb,Ma,Eb,Mb,Vb,dc,ec,hc,fc,Ob,qa,Xb,gc,Ka,Ab,kb,Fb,Gb,ic,Tb,wb,oc,Qb,
bd,lb,Wc,Db,Ya,Pb,Jc,Pc,Xc,tc,Hb,Sb,ac,Kc;n=db(m,d,w,this);Y=n.chart;Ja=n.xAxis;Q=n[e];this.snapLiterals||(this.snapLiterals={});ca=this.snapLiterals;ca.chartstartx=0;ca.chartstarty=0;ca.chartwidth=d;ca.chartheight=w;ca.chartendx=d;ca.chartendy=w;ca.chartcenterx=d/2;ca.chartcentery=w/2;ca.chartbottommargin=Y.spacingBottom;ca.chartleftmargin=Y.spacingLeft;ca.chartrightmargin=Y.spacingRight;ca.charttopmargin=Y.spacingTop;this.updateSnapPoints&&this.updateSnapPoints();this.postHCJSONCreation&&this.postHCJSONCreation.call(this,
n);f.raiseEvent("internal.postlogic",this,this.chartInstance);n.labels.smartLabel=F=Q.smartLabel=this.smartLabel;Q.width=d;Q.height=w;ua=n.plotOptions;Q.isDual=this.isDual;Q.numberFormatter=this.numberFormatter;Q.axisGridManager=new tb(B,g);Q.tooltext=g.plottooltext;Q.trendLineToolText=g.trendlinetooltext;Y.is3D=r=Q.is3d=/3d$/.test(B);Y.isBar=C=Q.isBar=this.isBar;ba=/^pie/.test(B);Ta=1==g.useroundedges;J=r?pa.chart3D:pa.chart2D;Y.events.click=n.plotOptions.series.point.events.click=this.linkClickFN;
Y.defaultSeriesType=B;ab=0<g.palette&&6>g.palette?g.palette:b(this.paletteIndex,1);--ab;Y.paletteIndex=ab;Y.usePerPointLabelColor=g.colorlabelsfromplot==Ia;Y.syncLabelWithAnchor=b(g.synclabelwithanchoronhover,1);Y.minimizeTendency=b(g.minimizetendency,g.minimisetendency,0);Y.useRoundEdges=Ta&&!r&&!this.distributedColumns&&"pie"!==this.defaultSeriesType;void 0!==c(g.clickurl)&&(Y.link=g.clickurl,Y.style.cursor="pointer",n.plotOptions.series.point.events.click=function(){Y.events.click.call({link:g.clickurl})});
N=c(g.basefont,"Verdana,sans");jb=L(g.basefontsize,10);O=c(g.basefontcolor,D.getColor(J.baseFontColor));M=c(g.outcnvbasefont,N);Va=L(g.outcnvbasefontsize,jb);ub=Va+Da;Pa=c(g.outcnvbasefontcolor,O).replace(/^#?([a-f0-9]+)/ig,"#$1");Bb=jb;jb+=Da;O=O.replace(/^#?([a-f0-9]+)/ig,"#$1");Kc=(Kc=p(g.trendvaluebordercolor,a))?S(Kc,b(g.trendvalueborderalpha,g.trendvaluealpha,100)):a;Q.trendStyle=Q.outCanvasStyle={fontFamily:c(g.trendvaluefont,M),color:c(g.trendvaluefontcolor,Pa),fontSize:L(g.trendvaluefontsize,
Va)+Da,fontWeight:b(g.trendvaluefontbold)?"bold":"normal",fontStyle:b(g.trendvaluefontitalic)?"italic":"normal",border:Kc||g.trendvaluebgcolor?b(g.trendvalueborderthickness,1)+"px solid":"",borderColor:Kc,borderThickness:b(g.trendvalueborderthickness,1),borderPadding:b(g.trendvalueborderpadding,2),borderRadius:b(g.trendvalueborderradius,0),backgroundColor:g.trendvaluebgcolor?S(g.trendvaluebgcolor,b(g.trendvaluebgalpha,g.trendvaluealpha,100)):a,borderDash:b(g.trendvalueborderdashed,0)?k(b(g.trendvalueborderdashlen,
4),b(g.trendvalueborderdashgap,2),b(g.trendvalueborderthickness,1)):"none"};U=u(Q.trendStyle);Q.inCanvasStyle={fontFamily:N,fontSize:jb,color:O};Rb=u(Q.inCanvasStyle);Q.divlineStyle={fontFamily:N,fontSize:jb,color:O,lineHeight:Rb};Ja.labels.style={fontFamily:c(g.labelfont,M),fontSize:b(g.labelfontsize,Va)+Da,color:c(g.labelfontcolor,Pa)};Ja.labels.style.lineHeight=u(Ja.labels.style);Ja.steppedLabels.style={fontFamily:M,fontSize:ub,lineHeight:U,color:Pa,visibility:"hidden"};n.yAxis[0].labels.style=
{fontFamily:M,fontSize:ub,lineHeight:U,color:Pa};n.yAxis[1].labels.style={fontFamily:M,fontSize:ub,lineHeight:U,color:Pa};qc=c(g.legenditemfont,M);aa=L(g.legenditemfontsize,Va);$=c(g.legenditemfontcolor,Pa).replace(/^#?([a-f0-9]+)/ig,"#$1");da=V[b(g.legenditemfontbold,0)]||"";pc=L(g.legendcaptionfontsize,Va)+Da;aa+=Da;n.legend.itemStyle={fontFamily:qc,fontSize:aa,color:$,fontWeight:da};u(n.legend.itemStyle);n.legend.itemHiddenStyle={fontFamily:qc,fontSize:aa,color:c(g.legenditemhiddencolor,"cccccc").replace(/^#?([a-f0-9]+)/ig,
"#$1"),fontWeight:da};u(n.legend.itemHiddenStyle);n.legend.itemHoverStyle={color:c(g.legenditemhoverfontcolor,$).replace(/^#?([a-f0-9]+)/ig,"#$1")};n.legend.title.style={fontFamily:c(g.legendcaptionfont,qc),fontSize:pc,color:c(g.legendcaptionfontcolor,Pa).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontWeight:V[b(g.legendcaptionfontbold,1)]||""};u(n.legend.title.style);n.legend.title.align=Ub[g.legendcaptionalignment&&g.legendcaptionalignment.toLowerCase()||oa]||Ub.center;H=(H=p(g.valuebordercolor,a))?S(H,
b(g.valueborderalpha,g.valuealpha,100)):a;n.plotOptions.series.dataLabels.style={fontFamily:c(g.valuefont,N),fontSize:c(g.valuefontsize,parseInt(jb,10))+Da,lineHeight:Rb,color:S(c(g.valuefontcolor,O),b(g.valuefontalpha,g.valuealpha,100)),fontWeight:b(g.valuefontbold)?"bold":"normal",fontStyle:b(g.valuefontitalic)?"italic":"normal",border:H||g.valuebgcolor?b(g.valueborderthickness,1)+"px solid":"",borderColor:H,borderThickness:b(g.valueborderthickness,1),borderPadding:b(g.valueborderpadding,2),borderRadius:b(g.valueborderradius,
0),backgroundColor:g.valuebgcolor?S(g.valuebgcolor,b(g.valuebgalpha,g.valuealpha,100)):a,borderDash:b(g.valueborderdashed,0)?k(b(g.valueborderdashlen,4),b(g.valueborderdashgap,2),b(g.valueborderthickness,1)):"none"};u(n.plotOptions.series.dataLabels.style);n.plotOptions.series.dataLabels.color=n.plotOptions.series.dataLabels.style.color;n.tooltip.style={fontFamily:N,fontSize:jb,lineHeight:Rb,color:O};n.title.style={fontFamily:c(g.captionfont,M),color:c(g.captionfontcolor,Pa).replace(/^#?([a-f0-9]+)/ig,
"#$1"),fontSize:b(g.captionfontsize,Va+3)+Da,fontWeight:0===b(g.captionfontbold)?"normal":"bold"};n.title.align=c(g.captionalignment,oa);n.title.isOnTop=b(g.captionontop,1);n.title.alignWithCanvas=b(g.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1);n.title.horizontalPadding=b(g.captionhorizontalpadding,n.title.alignWithCanvas?0:15);u(n.title.style);n.subtitle.style={fontFamily:c(g.subcaptionfont,g.captionfont,M),color:c(g.subcaptionfontcolor,g.captionfontcolor,Pa).replace(/^#?([a-f0-9]+)/ig,
"#$1"),fontSize:b(g.subcaptionfontsize,b(W(b(g.captionfontsize)-3,-1),Va)+b(this.subTitleFontSizeExtender,1))+Da,fontWeight:0===b(g.subcaptionfontbold,this.subTitleFontWeight,g.captionfontbold)?"normal":"bold"};n.subtitle.align=n.title.align;n.subtitle.isOnTop=n.title.isOnTop;n.subtitle.alignWithCanvas=n.title.alignWithCanvas;n.subtitle.horizontalPadding=n.title.horizontalPadding;u(n.subtitle.style);H=(H=p(g.xaxisnamebordercolor,a))?S(H,b(g.xaxisnameborderalpha,g.xaxisnamealpha,100)):a;Ja.title.style=
{fontFamily:c(g.xaxisnamefont,M),fontSize:c(g.xaxisnamefontsize,parseInt(ub,10))+Da,color:S(c(g.xaxisnamefontcolor,Pa),b(g.xaxisnamefontalpha,g.xaxisnamealpha,100)),fontWeight:b(g.xaxisnamefontbold,1)?"bold":"normal",fontStyle:b(g.xaxisnamefontitalic)?"italic":"normal",border:H||g.xaxisnamebgcolor?b(g.xaxisnameborderthickness,1)+"px solid":void 0,borderColor:H,borderThickness:b(g.xaxisnameborderthickness,1),borderPadding:b(g.xaxisnameborderpadding,2),borderRadius:b(g.xaxisnameborderradius,0),backgroundColor:g.xaxisnamebgcolor?
S(g.xaxisnamebgcolor,b(g.xaxisnamebgalpha,g.xaxisnamealpha,100)):a,borderDash:b(g.xaxisnameborderdashed,0)?k(b(g.xaxisnameborderdashlen,4),b(g.xaxisnameborderdashgap,2),b(g.xaxisnameborderthickness,1)):"none"};u(Ja.title.style);H=(H=c(g.pyaxisnamebordercolor,g.yaxisnamebordercolor,a))?S(H,b(g.pyaxisnameborderalpha,g.yaxisnameborderalpha,g.pyaxisnamealpha,g.yaxisnamealpha,100)):a;n.yAxis[0].title.style={fontFamily:c(g.pyaxisnamefont,g.yaxisnamefont,M),fontSize:c(g.pyaxisnamefontsize,g.yaxisnamefontsize,
parseInt(ub,10))+Da,color:S(c(g.pyaxisnamefontcolor,g.yaxisnamefontcolor,Pa),b(g.pyaxisnamefontalpha,g.yaxisnamefontalpha,g.pyaxisnamealpha,g.yaxisnamealpha,100)),fontWeight:b(g.pyaxisnamefontbold,g.yaxisnamefontbold,1)?"bold":"normal",fontStyle:b(g.pyaxisnamefontitalic,g.yaxisnamefontitalic)?"italic":"normal",border:H||g.pyaxisnamebgcolor||g.yaxisnamebgcolor?b(g.pyaxisnameborderthickness,g.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:H,borderThickness:b(g.pyaxisnameborderthickness,g.yaxisnameborderthickness,
1),borderPadding:b(g.pyaxisnameborderpadding,g.yaxisnameborderpadding,2),borderRadius:b(g.pyaxisnameborderradius,g.yaxisnameborderradius,0),backgroundColor:g.pyaxisnamebgcolor||g.yaxisnamebgcolor?S(c(g.pyaxisnamebgcolor,g.yaxisnamebgcolor),b(g.pyaxisnamebgalpha,g.yaxisnamebgalpha,g.pyaxisnamealpha,g.yaxisnamealpha,100)):a,borderDash:b(g.pyaxisnameborderdashed,g.yaxisnameborderdashed,0)?k(b(g.pyaxisnameborderdashlen,g.yaxisnameborderdashlen,4),b(g.pyaxisnameborderdashgap,g.yaxisnameborderdashgap,2),
b(g.pyaxisnameborderthickness,g.yaxisnameborderthickness,1)):"none"};u(n.yAxis[0].title.style);n.yAxis[1].title.style={fontFamily:M,color:Pa,fontSize:ub,lineHeight:void 0,fontWeight:"bold"};H=(H=c(g.syaxisnamebordercolor,g.yaxisnamebordercolor,a))?S(H,b(g.syaxisnameborderalpha,g.yaxisnameborderalpha,g.syaxisnamealpha,g.yaxisnamealpha,100)):a;n.yAxis[1].title.style={fontFamily:c(g.syaxisnamefont,g.yaxisnamefont,M),fontSize:c(g.syaxisnamefontsize,g.yaxisnamefontsize,parseInt(ub,10))+Da,color:S(c(g.syaxisnamefontcolor,
g.yaxisnamefontcolor,Pa),b(g.syaxisnamefontalpha,g.yaxisnamefontalpha,g.syaxisnamealpha,g.yaxisnamealpha,100)),fontWeight:b(g.syaxisnamefontbold,g.yaxisnamefontbold,1)?"bold":"normal",fontStyle:b(g.syaxisnamefontitalic,g.yaxisnamefontitalic)?"italic":"normal",border:H||g.syaxisnamebgcolor||g.yaxisnamebgcolor?b(g.syaxisnameborderthickness,g.yaxisnameborderthickness,1)+"px solid":void 0,borderColor:H,borderThickness:b(g.syaxisnameborderthickness,g.yaxisnameborderthickness,1),borderPadding:b(g.syaxisnameborderpadding,
g.yaxisnameborderpadding,2),borderRadius:b(g.syaxisnameborderradius,g.yaxisnameborderradius,0),backgroundColor:g.syaxisnamebgcolor||g.yaxisnamebgcolor?S(c(g.syaxisnamebgcolor,g.yaxisnamebgcolor),b(g.syaxisnamebgalpha,g.yaxisnamebgalpha,g.syaxisnamealpha,g.yaxisnamealpha,100)):a,borderDash:b(g.syaxisnameborderdashed,g.yaxisnameborderdashed,0)?k(b(g.syaxisnameborderdashlen,g.yaxisnameborderdashlen,4),b(g.syaxisnameborderdashgap,g.yaxisnameborderdashgap,2),b(g.syaxisnameborderthickness,g.yaxisnameborderthickness,
1)):"none"};u(n.yAxis[1].title.style);Y.overlapColumns=b(g[C&&"overlapbars"||"overlapcolumns"],r?0:1);n.orphanStyles={defaultStyle:{style:h({},Q.inCanvasStyle)},connectorlabels:{style:h({},n.plotOptions.series.dataLabels)},vyaxisname:{style:h({},n.yAxis[0].title.style)}};n.plotOptions.series.dataLabels.tlLabelStyle={fontFamily:l(g.tlfont,N),color:T(l(g.tlfontcolor,O)),fontSize:L(g.tlfontsize,Bb)+"px"};u(n.plotOptions.series.dataLabels.tlLabelStyle);n.plotOptions.series.dataLabels.trLabelStyle={fontFamily:l(g.trfont,
N),color:T(l(g.trfontcolor,O)),fontSize:L(g.trfontsize,Bb)+"px"};u(n.plotOptions.series.dataLabels.trLabelStyle);n.plotOptions.series.dataLabels.blLabelStyle={fontFamily:l(g.blfont,N),color:T(l(g.blfontcolor,O)),fontSize:L(g.blfontsize,Bb)+"px"};u(n.plotOptions.series.dataLabels.blLabelStyle);n.plotOptions.series.dataLabels.brLabelStyle={fontFamily:l(g.brfont,N),color:T(l(g.brfontcolor,O)),fontSize:L(g.brfontsize,Bb)+"px"};u(n.plotOptions.series.dataLabels.brLabelStyle);this.parseStyles(n);delete n.xAxis.labels.style.backgroundColor;
delete n.xAxis.labels.style.borderColor;delete n.yAxis[0].labels.style.backgroundColor;delete n.yAxis[0].labels.style.borderColor;delete n.yAxis[1].labels.style.backgroundColor;delete n.yAxis[1].labels.style.borderColor;Q.showTooltip=b(g.showtooltip,this.showtooltip,1);Q.tooltipSepChar=c(g.tooltipsepchar,this.tooltipsepchar,pb);Q.showValues=b(g.showvalues,this.showValues,1);Q.seriesNameInToolTip=b(g.seriesnameintooltip,1);Q.showVLines=b(g.showvlines,1);Q.showVLinesOnTop=b(g.showvlinesontop,0);Q.showVLineLabels=
b(g.showvlinelabels,this.showVLineLabels,1);Q.showVLineLabelBorder=b(g.showvlinelabelborder,1);Q.rotateVLineLabels=b(g.rotatevlinelabels,0);Q.vLineColor=c(g.vlinecolor,"333333");Q.vLineLabelColor=c(g.vlinelabelcolor);Q.vLineThickness=c(g.vlinethickness,1);Q.vLineAlpha=b(g.vlinealpha,80);Q.vLineLabelBgColor=c(g.vlinelabelbgcolor,"ffffff");Q.vLineLabelBgAlpha=b(g.vlinelabelbgalpha,r?50:100);Q.trendlineColor=c(g.trendlinecolor,"333333");Q.trendlineThickness=c(g.trendlinethickness,1);Q.trendlineAlpha=
b(g.trendlinealpha);Q.showTrendlinesOnTop=c(g.showtrendlinesontop,0);Q.trendlineValuesOnOpp=c(g.trendlinevaluesonopp,g.trendlinevaluesonright,0);Q.trendlinesAreDashed=b(g.trendlinesaredashed,0);Q.trendlinesDashLen=b(g.trendlinedashlen,5);Q.trendlinesDashGap=b(g.trendlinedashgap,2);Q.showTrendlines=b(g.showtrendlines,1);Q.showTrendlineLabels=b(g.showtrendlinelabels,this.showTrendlineLabels,1);Q.flatScrollBars=b(g.flatscrollbars,0);Q.scrollBar3DLighting=b(g.scrollbar3dlighting,1);Y.anchorTrackingRadius=
b(g.anchortrackingradius,G?ga:X);n.plotOptions.series.connectNullData=b(g.connectnulldata,0);Y.backgroundColor={FCcolor:{color:c(g.bgcolor,D.getColor(J.bgColor)),alpha:c(g.bgalpha,D.getColor(J.bgAlpha)),angle:c(g.bgangle,D.getColor(J.bgAngle)),ratio:c(g.bgratio,D.getColor(J.bgRatio))}};Y.rotateValues=b(g.rotatevalues,0);Y.placeValuesInside=b(g.placevaluesinside,0);Y.valuePosition=c(g.valueposition,"auto");Y.valuePadding=b(g.valuepadding,2);Y.managePlotOverflow=b(g.manageplotoverflow,1);Y.borderColor=
S(c(g.bordercolor,r?"#666666":D.getColor("borderColor")),c(g.borderalpha,r?"100":D.getColor("borderAlpha")));wa=b(g.showborder,r?0:1);Y.borderWidth=wa?b(g.borderthickness,1):0;Y.borderRadius=b(g.borderradius,0);Y.borderDashStyle=b(g.borderdashed,0)?k(b(g.borderdashlen,4),b(g.borderdashgap,2),Y.borderWidth):"none";Y.plotBorderColor=S(c(g.canvasbordercolor,D.getColor("canvasBorderColor")),c(g.canvasborderalpha,D.getColor("canvasBorderAlpha")));"0"!==g.showcanvasborder&&(K=Boolean(c(g.canvasborderthickness,
Ta?0:1)),"1"!==g.showaxislines&&"1"!==g.showxaxisline&&"1"!==g.showyaxisline&&"1"!==g.showsyaxisline||"1"===g.showcanvasborder||(K=0));Y.plotBorderWidth=r||!K?0:b(g.canvasborderthickness,this.canvasborderthickness,Y.useRoundEdges?1:2);Y.bgSWF=c(g.bgimage,g.bgswf);Y.bgSWFAlpha=b(g.bgimagealpha,g.bgswfalpha,100);ma=c(g.bgimagedisplaymode,"none").toLowerCase();ja=l(g.bgimagevalign,a).toLowerCase();ha=l(g.bgimagehalign,a).toLowerCase();"tile"==ma||"fill"==ma||"fit"==ma?(ja!=ia&&"middle"!=ja&&ja!=Ea&&
(ja="middle"),ha!=La&&"middle"!=ha&&ha!=fa&&(ha="middle")):(ja!=ia&&"middle"!=ja&&ja!=Ea&&(ja=ia),ha!=La&&"middle"!=ha&&ha!=fa&&(ha=La));Y.bgImageDisplayMode=ma;Y.bgImageVAlign=ja;Y.bgImageHAlign=ha;Y.bgImageScale=b(g.bgimagescale,100);Y.logoURL=l(g.logourl);Y.logoPosition=c(g.logoposition,"tl").toLowerCase();Y.logoAlpha=b(g.logoalpha,100);Y.logoLink=l(g.logolink);Y.logoScale=b(g.logoscale,100);Y.logoLeftMargin=b(g.logoleftmargin,0);Y.logoTopMargin=b(g.logotopmargin,0);va=Y.toolbar={button:{}};na=
va.button;na.scale=b(g.toolbarbuttonscale,1.15);na.width=b(g.toolbarbuttonwidth,15);na.height=b(g.toolbarbuttonheight,15);na.radius=b(g.toolbarbuttonradius,2);na.spacing=b(g.toolbarbuttonspacing,5);na.fill=S(c(g.toolbarbuttoncolor,"ffffff"));na.labelFill=S(c(g.toolbarlabelcolor,"cccccc"));na.symbolFill=S(c(g.toolbarsymbolcolor,"ffffff"));na.hoverFill=S(c(g.toolbarbuttonhovercolor,"ffffff"));na.stroke=S(c(g.toolbarbuttonbordercolor,"bbbbbb"));na.symbolStroke=S(c(g.toolbarsymbolbordercolor,"9a9a9a"));
na.strokeWidth=b(g.toolbarbuttonborderthickness,1);na.symbolStrokeWidth=b(g.toolbarsymbolborderthickness,1);za=na.symbolPadding=b(g.toolbarsymbolpadding,5);na.symbolHPadding=b(g.toolbarsymbolhpadding,za);na.symbolVPadding=b(g.toolbarsymbolvpadding,za);Ba=va.position=c(g.toolbarposition,"tr").toLowerCase();switch(Ba){case "tr":case "rt":case "top right":case "right top":Ba="tr";break;case "br":case "rb":case "bottom right":case "right bottom":Ba="br";break;case "tl":case "lt":case "top left":case "left top":Ba=
"tl";break;case "bl":case "lb":case "bottom left":case "left bottom":Ba="bl";break;default:Ba="tr"}Fa=va.hAlign="left"===(a+g.toolbarhalign).toLowerCase()?"l":Ba.charAt(1);Xa=va.vAlign="bottom"===(a+g.toolbarvalign).toLowerCase()?"b":Ba.charAt(0);va.hDirection=b(g.toolbarhdirection,"r"===Fa?-1:1);va.vDirection=b(g.toolbarvdirection,"b"===Xa?-1:1);va.vMargin=b(g.toolbarvmargin,6);va.hMargin=b(g.toolbarhmargin,10);va.x=b(g.toolbarx,"l"===Fa?0:d);va.y=b(g.toolbary,"t"===Xa?0:w);cb=c(g.divlinecolor,D.getColor(J.divLineColor));
gb=c(g.divlinealpha,r?D.getColor("divLineAlpha3D"):D.getColor("divLineAlpha"));fb=b(g.divlinethickness,1);Jb=Boolean(b(g.divlinedashed,g.divlineisdashed,this.divLineIsDashed,0));Yb=b(g.divlinedashlen,4);xb=b(g.divlinedashgap,2);n.yAxis[0].gridLineColor=S(cb,gb);n.yAxis[0].gridLineWidth=fb;n.yAxis[0].gridLineDashStyle=Jb?k(Yb,xb,fb):"none";n.yAxis[0].alternateGridColor=C?S(c(g.alternatevgridcolor,D.getColor("altVGridColor")),1===b(g.showalternatevgridcolor,1)?c(g.alternatevgridalpha,D.getColor("altVGridAlpha")):
Sa):S(c(g.alternatehgridcolor,D.getColor("altHGridColor")),"0"===g.showalternatehgridcolor?0:c(g.alternatehgridalpha,D.getColor("altHGridAlpha")));$b=b(g.vdivlinethickness,1);jc=Boolean(b(g.vdivlinedashed,g.vdivlineisdashed,0));kc=b(g.vdivlinedashlen,4);Lb=b(g.vdivlinedashgap,2);Ja.gridLineColor=S(c(g.vdivlinecolor,D.getColor(J.divLineColor)),c(g.vdivlinealpha,D.getColor("divLineAlpha")));Ja.gridLineWidth=$b;Ja.gridLineDashStyle=jc?k(kc,Lb,$b):"none";Ja.alternateGridColor=S(c(g.alternatevgridcolor,
D.getColor("altVGridColor")),"1"===g.showalternatehgridcolor?c(g.alternatevgridalpha,D.getColor("altVGridAlpha")):0);Zb=c(g.canvasbgcolor,D.getColor(J.canvasBgColor));bc=c(g.canvasbgalpha,D.getColor("canvasBgAlpha"));c(g.showcanvasbg,Ia)==Sa&&(bc="0");n.plotOptions.series.shadow=b(g.showshadow,g.showcolumnshadow,this.defaultPlotShadow,D.getColor("showShadow"));this.inversed&&(n.yAxis[0].reversed=!0,n.yAxis[1].reversed=!0);this.isStacked&&(this.distributedColumns?(Q.showStackTotal=Boolean(b(g.showsum,
1)),Z=b(g.usepercentdistribution,1),nb=b(g.showpercentvalues,0),zb=b(g.showpercentintooltip,Z,0),Q.showXAxisPercentValues=b(g.showxaxispercentvalues,1)):(Q.showStackTotal=Boolean(b(this.showSum,g.showsum,0)),Z=b(this.stack100percent,g.stack100percent,0),nb=b(g.showpercentvalues,Z,0),zb=b(g.showpercentintooltip,nb)),Q.showPercentValues=nb,Q.showPercentInToolTip=zb,Z?(Q.isValueAbs=!0,ua[B].stacking="percent",Q[0].stacking100Percent=!0):ua[B].stacking="normal");this.isDual&&("0"===g.primaryaxisonleft&&
(n.yAxis[0].opposite=!0,n.yAxis[1].opposite=!1),n.yAxis[0].showAlways=!0,n.yAxis[1].showAlways=!0);Y.useRoundEdges&&(n.plotOptions.series.shadow=b(g.showshadow,g.showcolumnshadow,1),n.plotOptions.series.borderRadius=1,n.tooltip.style.borderRadius="2px",Y.plotBorderRadius=3,K||(Y.plotBorderWidth=0),Y.plotShadow=n.plotOptions.series.shadow?{enabled:!0,opacity:bc/100}:0);1===b(g.use3dlighting,1)&&(n.legend.lighting3d=!0);n.plotOptions.series.userMaxColWidth=C?g.maxbarheight:b(g.maxcolwidth,this.maxColWidth);
n.plotOptions.series.maxColWidth=ya(b(n.plotOptions.series.userMaxColWidth,50))||1;n.title.text=s(g.caption);n.subtitle.text=s(g.subcaption);0===b(g.showtooltip,this.showtooltip)&&(n.tooltip.enabled=!1);Ua=n.tooltip.style;Ua.backgroundColor=S(c(Ua.backgroundColor,g.tooltipbgcolor,D.getColor("toolTipBgColor")),c(g.tooltipbgalpha,100));Ua.borderColor=S(c(Ua.borderColor,g.tooltipbordercolor,D.getColor("toolTipBorderColor")),c(g.tooltipborderalpha,100));n.tooltip.shadow=b(g.showtooltipshadow,g.showshadow,
1)?{enabled:!0,opacity:W(b(g.tooltipbgalpha,100),b(g.tooltipborderalpha,100))/100}:!1;n.tooltip.constrain=b(g.constraintooltip,1);Ua.borderWidth=b(g.tooltipborderthickness,1)+"px";g.tooltipborderradius&&(Ua.borderRadius=b(g.tooltipborderradius,1)+"px");Ua.padding=b(g.tooltippadding,this.tooltippadding,3)+"px";g.tooltipcolor&&(Ua.color=T(g.tooltipcolor));Q.userPlotSpacePercent=n.plotOptions.series.userPlotSpacePercent=g.plotspacepercent;eb=b(g.plotspacepercent,20)%100;Q.plotSpacePercent=n.plotOptions.series.groupPadding=
eb/200;r&&!ba?(Y.series2D3Dshift="mscombi3d"===A?!0:Boolean(b(g.use3dlineshift,0)),Y.canvasBaseColor3D=c(g.canvasbasecolor,D.getColor("canvasBaseColor3D")),Y.canvasBaseDepth=b(g.canvasbasedepth,10),Y.canvasBgDepth=b(g.canvasbgdepth,3),Y.showCanvasBg=Boolean(b(g.showcanvasbg,1)),Y.showCanvasBase=Boolean(b(g.showcanvasbase,1)),C?(Y.xDepth=5,Y.yDepth=5,Y.showCanvasBg&&(Q.marginTopExtraSpace+=Y.canvasBgDepth),Q.marginLeftExtraSpace+=Y.yDepth+(Y.showCanvasBase?Y.canvasBaseDepth:0),Q.marginBottomExtraSpace+=
5):(Y.xDepth=10,Y.yDepth=10,Y.showCanvasBg&&(Q.marginRightExtraSpace+=Y.canvasBgDepth),Q.marginBottomExtraSpace+=Y.yDepth+(Y.showCanvasBase?Y.canvasBaseDepth:0)),Zb=Zb.split(xa)[0],bc=bc.split(xa)[0],Y.use3DLighting=Boolean(b(g.use3dlighting,1)),Y.plotBackgroundColor=Y.use3DLighting?{FCcolor:{color:sa(Zb,85)+xa+ta(Zb,55),alpha:bc+xa+bc,ratio:vb,angle:Ib(d-(Y.marginLeft+Y.marginRight),w-(Y.marginTop+Y.marginBottom),1)}}:S(Zb,bc),Y.canvasBgColor=S(sa(Zb,80),bc),v=c(g.zeroplanecolor,g.divlinecolor,D.getColor(J.divLineColor)),
t=c(g.zeroplanealpha,g.divlinealpha,D.getColor("divLineAlpha")),Y.zeroPlaneColor=S(v,t),Y.zeroPlaneBorderColor=S(c(g.zeroplanebordercolor,v),b(g.zeroplaneshowborder,1)?t:0),Y.zeroPlaneShowBorder=b(g.zeroplaneshowborder,1)):(Y.is3D=!1,Y.plotBackgroundColor={FCcolor:{color:Zb,alpha:bc,angle:c(g.canvasbgangle,D.getColor("canvasBgAngle")),ratio:c(g.canvasbgratio,D.getColor("canvasBgRatio"))}});this.parseExportOptions(n);this.parseHoverEffectOptions(Y);this.preSeriesAddition&&this.preSeriesAddition(n,
m,d,w);this.series&&this.series(m,n,A,d,w);this.postSeriesAddition(n,m,d,w);this.spaceManager(n,m,d,w);this.postSpaceManager&&this.postSpaceManager(n,m,d,w);Za=b(g.drawquadrant,0);Q.isXYPlot&&Za&&(Wa=Ja.min,Ca=Ja.max,rb=n.yAxis[0].min,Qa=n.yAxis[0].max,Cb=b(g.quadrantxval,(Wa+Ca)/2),sb=b(g.quadrantyval,(rb+Qa)/2),sb>=rb&&sb<=Qa&&Cb>=Wa&&Cb<=Ca&&(ob=S(c(g.quadrantlinecolor,Y.plotBorderColor),c(g.quadrantlinealpha,Ra)),$a=b(g.quadrantlinethickness,Y.plotBorderWidth),Nb=b(g.quadrantlinedashed,g.quadrantlineisdashed,
0),Wb=b(g.quadrantlinedashLen,4),Ma=b(g.quadrantlinedashgap,2),Eb=l(g.quadrantlabeltl,a),Mb=l(g.quadrantlabeltr,a),Vb=l(g.quadrantlabelbl,a),dc=l(g.quadrantlabelbr,a),ec=b(g.quadrantlabelpadding,3),hc=Nb?k(Wb,Ma,$a):"none",Ja.plotLines.push({color:ob,value:Cb,width:$a,dashStyle:hc,zIndex:3}),n.yAxis[0].plotLines.push({color:ob,value:sb,width:$a,dashStyle:hc,zIndex:3}),fc=d-Y.marginRight-Y.marginLeft,Ob=w-Y.marginTop-Y.marginBottom,kb=Q.inCanvasStyle,qa=fc/(Ca-Wa)*(Cb-Wa),Xb=fc-qa,Ka=Ob/(Qa-rb)*(sb-
rb),gc=Ob-Ka,qa-=ec,Xb-=ec,gc-=ec,Ka-=ec,Fb=ec+Da,Gb=Ob-ec+Da,ic=ec+Da,Tb=fc-ec+Da,F.setStyle(kb),0<gc&&(Eb!==a&&0<qa&&(H=p(g.quadrantlabeltlbordercolor,g.quadrantlabelbordercolor,a),Hb=c(g.quadrantlabeltlbgcolor,g.quadrantlabelbgcolor),Sb=b(g.quadrantlabeltlborderthickness,g.quadrantlabelborderthickness,1),H=H?S(H,b(g.quadrantlabeltlborderalpha,g.quadrantlabelborderalpha,g.quadrantlabeltlalpha,g.quadrantlabelalpha,100)):a,ac={left:ic,top:Fb,fontSize:c(b(g.quadrantlabeltlfontsize,g.quadrantlabelfontsize),
parseInt(kb.fontSize,10))+Da,lineHeight:kb.lineHeight,fontFamily:c(g.quadrantlabeltlfont,g.quadrantlabelfont,kb.fontFamily),color:S(c(g.quadrantlabeltlfontcolor,g.quadrantlabelfontcolor,kb.color),b(g.quadrantlabeltlfontalpha,g.quadrantlabelfontalpha,100)),fontWeight:b(g.quadrantlabeltlfontbold,g.quadrantlabelfontbold)?"bold":"normal",fontStyle:b(g.quadrantlabeltlfontitalic,g.quadrantlabelfontitalic)?"italic":"normal",border:H||Hb?Sb+"px solid":a,borderColor:H,borderThickness:Sb,borderPadding:b(g.quadrantlabeltlborderpadding,
g.quadrantlabelborderpadding,2),borderRadius:b(g.quadrantlabeltlborderradius,g.quadrantlabelborderradius,0),backgroundColor:Hb?S(Hb,b(g.quadrantlabeltlbgalpha,g.quadrantlabelbgalpha,g.quadrantlabeltlalpha,g.quadrantlabelalpha,100)):a,borderDash:b(g.quadrantlabeltlborderdashed,g.quadrantlabelborderdashed,0)?k(b(g.quadrantlabeltlborderdashlen,g.quadrantlabelborderdashlen,4),b(g.quadrantlabeltlborderdashgap,g.quadrantlabelborderdashgap,2),Sb):"none"},u(ac),F.setStyle(ac),Ab=F.getSmartText(Eb,qa,gc),
n.labels.items.push({html:Ab.text,title:Ab.title,zIndex:3,vAlign:ia,style:ac})),Mb!==a&&0<Xb&&(H=p(g.quadrantlabeltrbordercolor,g.quadrantlabelbordercolor,a),Hb=c(g.quadrantlabeltrbgcolor,g.quadrantlabelbgcolor),Sb=b(g.quadrantlabeltrborderthickness,g.quadrantlabelborderthickness,1),H=H?S(H,b(g.quadrantlabeltrborderalpha,g.quadrantlabelborderalpha,g.quadrantlabeltralpha,g.quadrantlabelalpha,100)):a,ac={left:Tb,top:Fb,fontSize:c(b(g.quadrantlabeltrfontsize,g.quadrantlabelfontsize),parseInt(kb.fontSize,
10))+Da,lineHeight:kb.lineHeight,fontFamily:c(g.quadrantlabeltrfont,g.quadrantlabelfont,kb.fontFamily),color:S(c(g.quadrantlabeltrfontcolor,g.quadrantlabelfontcolor,kb.color),b(g.quadrantlabeltrfontalpha,g.quadrantlabelfontalpha,100)),fontWeight:b(g.quadrantlabeltrfontbold,g.quadrantlabelfontbold)?"bold":"normal",fontStyle:b(g.quadrantlabeltrfontitalic,g.quadrantlabelfontitalic)?"italic":"normal",border:H||Hb?Sb+"px solid":a,borderColor:H,borderThickness:Sb,borderPadding:b(g.quadrantlabeltrborderpadding,
g.quadrantlabelborderpadding,2),borderRadius:b(g.quadrantlabeltrborderradius,g.quadrantlabelborderradius,0),backgroundColor:Hb?S(Hb,b(g.quadrantlabeltrbgalpha,g.quadrantlabelbgalpha,g.quadrantlabeltralpha,g.quadrantlabelalpha,100)):a,borderDash:b(g.quadrantlabeltrborderdashed,g.quadrantlabelborderdashed,0)?k(b(g.quadrantlabeltrborderdashlen,g.quadrantlabelborderdashlen,4),b(g.quadrantlabeltrborderdashgap,g.quadrantlabelborderdashgap,2),Sb):"none"},u(ac),F.setStyle(ac),Ab=F.getSmartText(Mb,qa,gc),
n.labels.items.push({html:Ab.text,textAlign:fa,title:Ab.title,zIndex:3,vAlign:ia,style:ac}))),0<Ka&&(Vb!==a&&0<qa&&(H=p(g.quadrantlabelblbordercolor,g.quadrantlabelbordercolor,a),Hb=c(g.quadrantlabelblbgcolor,g.quadrantlabelbgcolor),Sb=b(g.quadrantlabelblborderthickness,g.quadrantlabelborderthickness,1),H=H?S(H,b(g.quadrantlabelblborderalpha,g.quadrantlabelborderalpha,g.quadrantlabelblalpha,g.quadrantlabelalpha,100)):a,ac={left:ic,top:Gb,fontSize:c(b(g.quadrantlabelblfontsize,g.quadrantlabelfontsize),
parseInt(kb.fontSize,10))+Da,lineHeight:kb.lineHeight,fontFamily:c(g.quadrantlabelblfont,g.quadrantlabelfont,kb.fontFamily),color:S(c(g.quadrantlabelblfontcolor,g.quadrantlabelfontcolor,kb.color),b(g.quadrantlabelblfontalpha,g.quadrantlabelfontalpha,100)),fontWeight:b(g.quadrantlabelblfontbold,g.quadrantlabelfontbold)?"bold":"normal",fontStyle:b(g.quadrantlabelblfontitalic,g.quadrantlabelfontitalic)?"italic":"normal",border:H||Hb?Sb+"px solid":a,borderColor:H,borderThickness:Sb,borderPadding:b(g.quadrantlabelblborderpadding,
g.quadrantlabelborderpadding,2),borderRadius:b(g.quadrantlabelblborderradius,g.quadrantlabelborderradius,0),backgroundColor:Hb?S(Hb,b(g.quadrantlabelblbgalpha,g.quadrantlabelbgalpha,g.quadrantlabelblalpha,g.quadrantlabelalpha,100)):a,borderDash:b(g.quadrantlabelblborderdashed,g.quadrantlabelborderdashed,0)?k(b(g.quadrantlabelblborderdashlen,g.quadrantlabelborderdashlen,4),b(g.quadrantlabelblborderdashgap,g.quadrantlabelborderdashgap,2),Sb):"none"},u(ac),F.setStyle(ac),Ab=F.getSmartText(Vb,qa,gc),
n.labels.items.push({html:Ab.text,textAlign:La,title:Ab.title,zIndex:3,vAlign:Ea,style:ac})),dc!==a&&0<Xb&&(H=p(g.quadrantlabelbrbordercolor,g.quadrantlabelbordercolor,a),Hb=c(g.quadrantlabelbrbgcolor,g.quadrantlabelbgcolor),Sb=b(g.quadrantlabelbrborderthickness,g.quadrantlabelborderthickness,1),H=H?S(H,b(g.quadrantlabelbrborderalpha,g.quadrantlabelborderalpha,g.quadrantlabelbralpha,g.quadrantlabelalpha,100)):a,ac={left:Tb,top:Gb,fontSize:c(b(g.quadrantlabelbrfontsize,g.quadrantlabelfontsize),parseInt(kb.fontSize,
10))+Da,lineHeight:kb.lineHeight,fontFamily:c(g.quadrantlabelbrfont,g.quadrantlabelfont,kb.fontFamily),color:S(c(g.quadrantlabelbrfontcolor,g.quadrantlabelfontcolor,kb.color),b(g.quadrantlabelbrfontalpha,g.quadrantlabelfontalpha,100)),fontWeight:b(g.quadrantlabelbrfontbold,g.quadrantlabelfontbold)?"bold":"normal",fontStyle:b(g.quadrantlabelbrfontitalic,g.quadrantlabelfontitalic)?"italic":"normal",border:H||Hb?Sb+"px solid":a,borderColor:H,borderThickness:Sb,borderPadding:b(g.quadrantlabelbrborderpadding,
g.quadrantlabelborderpadding,2),borderRadius:b(g.quadrantlabelbrborderradius,g.quadrantlabelborderradius,0),backgroundColor:Hb?S(Hb,b(g.quadrantlabelbrbgalpha,g.quadrantlabelbgalpha,g.quadrantlabelbralpha,g.quadrantlabelalpha,100)):a,borderDash:b(g.quadrantlabelbrborderdashed,g.quadrantlabelborderdashed,0)?k(b(g.quadrantlabelbrborderdashlen,g.quadrantlabelborderdashlen,4),b(g.quadrantlabelbrborderdashgap,g.quadrantlabelborderdashgap,2),Sb):"none"},u(ac),F.setStyle(ac),Ab=F.getSmartText(dc,qa,gc),
n.labels.items.push({html:Ab.text,textAlign:fa,vAlign:Ea,title:Ab.title,zIndex:3,style:ac})))));if(this.hasVDivLine&&(wb=b(g.showvdivlines,0),oc=b(g.numvdivlines,0)+1,wb&&(oc=Q.x.catCount-1),1<oc)){lb=Ja.min;Wc=Q.x.catCount-1;Db=Ja.max;Pb=Wc/oc;Jc=!0;Pc=lb;Ja.scroll&&!isNaN(Ja.scroll.viewPortMax)&&(Db=Ja.scroll.viewPortMax);Qb=c(g.vdivlinecolor,cb);bd=b(g.vdivlinealpha,gb);$b=b(g.vdivlinethickness,fb);jc=b(g.vdivlinedashed,g.vdivlineisdashed,Jb);kc=b(g.vdivlinedashlen,Yb);Lb=b(g.vdivlinedashgap,xb);
(tc=b(g.showalternatevgridcolor,0))&&(Xc=S(c(g.alternatevgridcolor,D.getColor("altVGridColor")),c(g.alternatevgridalpha,D.getColor("altVGridAlpha"))));for(Ya=Pb;Ya<Wc;Ya+=Pb,Jc=!Jc)Jc&&tc&&Ja.plotBands.push({isNumVDIV:!0,color:Xc,from:Pc,to:Ya,zIndex:1}),Ja.plotLines.push({isNumVDIV:!0,width:$b,color:S(Qb,bd),dashStyle:jc?k(kc,Lb,$b):"none",value:Ya,zIndex:1}),Pc=Ya;Jc&&tc&&Ja.plotBands.push({isNumVDIV:!0,color:Xc,from:Pc,to:Db,zIndex:1})}la=Y.marginTop;Ha=Y.marginBottom;Aa=Y.marginLeft;Ga=Y.marginRight;
ca.canvasstartx=Aa;ca.canvasstarty=la;ca.canvasendx=d-Ga;ca.canvasendy=w-Ha;ca.canvaswidth=ca.canvasendx-ca.canvasstartx;ca.canvasheight=ca.canvasendy-ca.canvasstarty;n.legend&&n.legend.enabled&&"vertical"===n.legend.layout&&(ca.legendstarty=la+.5*(Q.height-Ha-la-ca.legendheight)+(n.legend.y||0),ca.legendendy=ca.legendstarty+ca.legendheight);r&&Y.xDepth>Y.marginLeft&&(Y.marginLeft=Y.xDepth);q.console&&q.console.log&&q.FC_DEV_ENVIRONMENT&&console.log(n);return n},parseHoverEffectOptions:function(a){var d=
this.dataObj.chart,e;a.showHoverEffect=d.showhovereffect;a.plotHoverEffect=b(d.plothovereffect,d.anchorhovereffect,a.showHoverEffect);e=a.plotHoverEffects={enabled:a.plotHoverEffect};e.highlight=b(d.highlightonhover,d.highlightplotonhover,a.plotHoverEffect);e.columnHighlight=b(e.highlight,d.highlightcolumnonhover,d.highlightbaronhover);e.anchorHighlight=b(e.highlight,d.highlightanchoronhover);e.imageHighlight=b(e.highlight,d.highlightanchorimageonhover);e.anchorImageHoverAlpha=c(d.anchorimagehoveralpha);
e.anchorImageHoverScale=c(d.anchorimagehoverscale);e.bubbleHighlight=b(e.highlight,d.highlightbubbleonhover);e.color=c(d.plotfillhovercolor,d.columnhovercolor,d.barhovercolor,d.bubblehovercolor);e.alpha=c(d.plotfillhoveralpha,d.columnhoveralpha,d.barhoveralpha,d.bubblehoveralpha);e.scale=c(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=c(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=b(d.anchorhoverdip);e.anchorAnimation=b(d.anchorhoveranimation,1);e.negativeColor=c(d.negativehovercolor,d.negativecolor);e.is3DBubble=b(d.is3donhover)},parseExportOptions:function(d){var e=this.chartInstance,k=this.dataObj.chart;h(d.exporting,{enabled:b(k.exportenabled,0),bgcolor:e.jsVars.transparent||0===b(e.options.containerBackgroundOpacity,1)?a:e.options.containerBackgroundColor||
"#ffffff",bgalpha:(e.jsVars.transparent?0:b(e.options.containerBackgroundOpacity,1))+a,exporttargetwindow:c(k.exporttargetwindow,Lb?"_blank":"_self"),exportaction:k.exportaction&&"save"===k.exportaction.toString().toLowerCase()&&"save"||"download",exportfilename:c(k.exportfilename,"FusionCharts"),exporthandler:c(k.html5exporthandler,k.exporthandler,F),exportparameters:c(k.exportparameters,a),exportformat:c(k.exportformat,"PNG"),exportcallback:c(k.exportcallback,a),exportwithimages:b(k.exportwithimages,
0),exportatclientside:b(k.exportatclientside,0),buttons:{printButton:{enabled:!!b(k.printshowbutton,k.showprintmenuitem,0)},exportButton:{enabled:!(!b(k.exportenabled,0)||!b(k.exportshowbutton,k.exportshowmenuitem,1))}}});var e=d.exporting,f;k=k.exportformats;d=N(d.exporting.exportaction);d={JPG:d+" as JPEG image",PNG:d+" as PNG image",PDF:d+" as PDF document",SVG:d+" as SVG vector image"};var g,l,A;if(k){k=k.split(/\s*?\|\s*?/);for(A=0;A<k.length;A++)l=(g=k[A].split(/\s*?=\s*?/))&&g[0].toUpperCase()||
a,g=g&&g[1]||a,d[l]&&(f||(f={}))&&(f[l]=g||d[l]);f=f||d}else f=d;e.exportformats=f},defaultSeriesType:a,paletteIndex:1,creditLabel:!1,titleSpaceManager:Aa,placeLegendBlockBottom:Va,configureLegendOptions:Ha,placeLegendBlockRight:Ga,placeHorizontalAxis:ca,placeVerticalAxis:ab,placeHorizontalCanvasMarginAdjustment:qc,placeVerticalCanvasMarginAdjustment:ub,placeHorizontalXYSpaceManager:function(a,d,h,k){var g=a[e],f,l,A,m,D=d.chart,n,p,s,G,r,q,v,u=a.chart,V=g.marginLeftExtraSpace,t=g.marginTopExtraSpace,
Z=g.marginBottomExtraSpace,F=g.marginRightExtraSpace;m=h-(V+F+u.marginRight+u.marginLeft);var Q=k-(Z+u.marginBottom+u.marginTop),ba=.3*m;h=.3*Q;var B=a.xAxis.showLine?a.xAxis.lineThickness:0;A=a.yAxis[0].showLine?a.yAxis[0].lineThickness:0;f=m-ba;k=Q-h;n=c(D.legendposition,Ea).toLowerCase();a.legend.enabled&&n===fa&&(f-=this.placeLegendBlockRight(a,d,f/2,Q));r=b(D.xaxisnamepadding,5);q=b(D.labelpadding,4);v=c(D.rotatexaxisname,"ccw");v=v===Sa?"none":v;p=c(D.showplotborder,g.is3d?Sa:Ia)===Ia;p=g.plotBorderThickness=
p?g.is3d?1:b(D.plotborderthickness,1):0;s=W(b(u.plotBorderWidth,1),0);!g.isDual&&u.marginRight<s&&void 0===D.chartrightmargin&&(l=s-u.marginRight,m>ba+l&&(u.marginRight=s,m-=l,ba=.3*m,f=m-ba));l=g.x;G=W(s,p/2);q<G&&(q=G);l.verticalAxisNamePadding=r;l.verticalAxisValuesPadding=q+B;l.rotateVerticalAxisName=v;l.verticalAxisNameWidth=b(D.xaxisnamewidth);f-=ab(a.xAxis,l,a,d,Q,f,!1,!1,m);a.xAxis.lineEndExtension=A;f-=qc(a,d,f,a.xAxis);m=f+ba;a.legend.enabled&&n!==fa&&(k-=this.placeLegendBlockBottom(a,d,
m,k/2));k-=this.titleSpaceManager(a,d,m,k/2);l=g[0];l.horizontalAxisNamePadding=b(D.yaxisnamepadding,5);l.horizontalLabelPadding=W(b(D.yaxisvaluespadding,4))+A;l.labelDisplay="auto";l.staggerLines=b(D.staggerlines,2);l.slantLabels=b(D.slantlabels,0);l.horizontalLabelPadding=l.horizontalLabelPadding<s?s:l.horizontalLabelPadding;this.xAxisMinMaxSetter(a,d,m);A=a.xAxis;r=A.plotLines;f=k/(A.max-A.min);r&&r.length&&(s=(r[0].value-A.min)*f,r=(A.max-r[r.length-1].value)*f,g.isBar&&(p>s&&(A.min-=(p-s)/(2*
f)),p>r&&(A.max+=(p-r)/(2*f))));k-=this.placeHorizontalAxis(a.yAxis[0],l,a,d,m,k,ba);k-=ub(a,d,k,a.yAxis[0]);la(h+k,a,D,a.xAxis,g.x.lYLblIdx,!0);pc(a,a.xAxis.title,k);a.legend.enabled&&n===fa&&(a=a.legend,d=h+k,a.height>d&&(a.height=d,a.scroll.enabled=!0,d=(a.scroll.scrollBarWidth=10)+(a.scroll.scrollBarPadding=2),a.width+=d,u.marginRight+=d),a.y=20);u.marginLeft+=V;u.marginTop+=t;u.marginBottom+=Z;u.marginRight+=F},placeVerticalXYSpaceManager:function(a,d,h,k){var g=a[e],f,l,A=!0;f=0;var m=d.chart,
D=!1,n,p,s,G,r=a.chart,q,v,u,V=g.marginLeftExtraSpace,t=g.marginTopExtraSpace,Z=g.marginBottomExtraSpace,F=g.marginRightExtraSpace;G=h-(V+F+r.marginRight+r.marginLeft);var Q=k-(Z+r.marginBottom+r.marginTop),ba=.3*G;k=.3*Q;var B=G-ba;h=Q-k;f=g.drawFullAreaBorder=b(m.drawfullareaborder,1);var C=c(m.legendposition,Ea).toLowerCase();q=a.xAxis.showLine?a.xAxis.lineThickness:0;v=a.yAxis[0].showLine?a.yAxis[0].lineThickness:0;u=g.isDual&&a.yAxis[1].showLine?a.yAxis[1].lineThickness:0;n=b(m.yaxisnamepadding,
5);p=b(m.yaxisvaluespadding,m.labelypadding,4);l=c(m.showplotborder,g.is3d?Sa:Ia)===Ia;l=g.plotBorderThickness=l?g.is3d?1:b(m.plotborderthickness,1):0;s=W(b(r.plotBorderWidth,1),0);l=W(s,l/2);"area"!==this.defaultSeriesType||f||(l=s);p<s&&(p=s);!g.isDual&&r.marginRight<s&&void 0===m.chartrightmargin&&(f=s-a.chart.marginRight,G>ba+f&&(G-=f,ba=.3*G,B=G-ba));a.legend.enabled&&C===fa&&(B-=this.placeLegendBlockRight(a,d,B/2,Q));g.isDual&&(D=!0,f=g[1],A=a.yAxis[1].opposite,s=c(m.rotateyaxisname,A?"cw":
"ccw"),s=s===Sa?"none":s,f.verticalAxisNamePadding=n,f.verticalAxisValuesPadding=p+u,f.rotateVerticalAxisName=s,f.verticalAxisNameWidth=b(m.syaxisnamewidth),B-=ab(a.yAxis[1],f,a,d,Q,B/2,A,D));f=g[0];A=!A;s=c(m.rotateyaxisname,A?"cw":"ccw");s=s===Sa?"none":s;f.verticalAxisNamePadding=n;f.verticalAxisValuesPadding=p+v;f.rotateVerticalAxisName=s;f.verticalAxisNameWidth=b(D?m.pyaxisnamewidth:m.yaxisnamewidth);B-=ab(a.yAxis[0],f,a,d,Q,B,A,D,G);B-=qc(a,d,B,a.yAxis[0],a.yAxis[1]);A=B+ba;a.legend.enabled&&
C!==fa&&(h-=this.placeLegendBlockBottom(a,d,A,h/2));h-=this.titleSpaceManager(a,d,A,h/2);f=g.x;f.horizontalAxisNamePadding=b(m.xaxisnamepadding,5);f.horizontalLabelPadding=b(m.labelpadding,m.labelxpadding,4)+q;f.labelDisplay=c(m.labeldisplay,"auto").toLowerCase();f.rotateLabels=b(m.rotatelabels,m.rotatexaxislabels,0);f.staggerLines=b(m.staggerlines,2);f.slantLabels=b(m.slantlabels,m.slantlabel,0);a.yAxis[0].opposite?(a.xAxis.lineEndExtension=v,a.xAxis.lineStartExtension=u):(a.xAxis.lineEndExtension=
u,a.xAxis.lineStartExtension=v);f.horizontalLabelPadding<l&&(f.horizontalLabelPadding=l);G={left:0,right:0};G=r.managePlotOverflow&&this.canvasPaddingModifiers&&this.calculateCanvasOverflow(a,!0)||G;q=G.left+G.right;v=.6*A;q>v&&(u=G.left/q,G.left-=u*(q-v),G.right-=(1-u)*(q-v));this.xAxisMinMaxSetter(a,d,A,G.left,G.right);h-=this.placeHorizontalAxis(a.xAxis,f,a,d,A,h,ba);h-=ub(a,d,h,a.xAxis);a.title.alignWithCanvas||("left"===a.title.align&&a.yAxis[0].title.text&&jb(a,a.yAxis[0].title,k+h),"right"===
a.title.align&&D&&a.yAxis[1].title.text&&jb(a,a.yAxis[1].title,k+h));D&&(la(k+h,a,m,a.yAxis[1],g[1].lYLblIdx),pc(a,a.yAxis[1].title,k+h));la(k+h,a,m,a.yAxis[0],g[0].lYLblIdx);pc(a,a.yAxis[0].title,k+h);a.legend.enabled&&C===fa&&(a=a.legend,d=k+h,a.height>d&&"gradient"!==a.type&&(a.height=d,a.scroll.enabled=!0,d=(a.scroll.scrollBarWidth=10)+(a.scroll.scrollBarPadding=2),a.width+=d,r.marginRight+=d));r.marginLeft+=V;r.marginTop+=t;r.marginBottom+=Z;r.marginRight+=F},placeVerticalAxisTitle:pc,calculateCanvasOverflow:function(b,
c){for(var d=this.canvasPaddingModifiers,e=b.chart,g=this.smartLabel,h=0,k=0,f=0,l=0,A=h=!1,m=!1,D=d&&d.length||0,n,s,p,G,r;D--;)switch(k=d[D],k){case "anchor":A=s=h=!0;break;case "anchorlabel":p=s=h=!0;break;case "errorbar":m=h=!0}if(h&&(D=(d=b.series)&&d.length||0,c))for(;D--;)n=d[D],s&&(h=n&&n.data||[],1<h.length&&(G=h[0],r=h[h.length-1],A&&(h=G&&G.marker&&G.marker.enabled&&(G.marker.radius||0)+(G.marker.lineWidth||0)||0,k=r&&r.marker&&r.marker.enabled&&(r.marker.radius||0)+(r.marker.lineWidth||
0)||0,f=W(h+2,f),l=W(k+2,l)),p&&(g.setStyle(b.plotOptions.series.dataLabels.style),e.rotateValues?(k=g.getOriSize(G&&G.displayValue||a),h=k.height/2,k=g.getOriSize(r&&r.displayValue||a),k=k.height/2):(k=g.getOriSize(G&&G.displayValue||a),h=k.width/2,k=g.getOriSize(r&&r.displayValue||a),k=k.width/2),f=W(h+2,f),l=W(k+2,l)))),m&&(k=h=n.errorBarWidth/2+n.errorBarThickness||0,f=W(h+2,f),l=W(k+2,l));return{left:f,right:l}},spaceManager:function(){return this.placeVerticalXYSpaceManager.apply(this,arguments)},
axisMinMaxSetter:function(a,c,d,e,g,h,k,f){d=c.stacking100Percent?Qb(99,1,100,0,g,h,k,f):Qb(b(c.max,d),b(c.min,e),d,e,g,h,k,f);a.min=Number(K(d.Min,10));a.max=Number(K(d.Max,10));a.tickInterval=Number(K(d.divGap,10));c.numdivlines=r.round((a.max-a.min)/a.tickInterval)-1;2>=d.Range/d.divGap&&(a.alternateGridColor=$);this.highValue=c.max;this.lowValue=c.min;delete c.max;delete c.min},configurePlotLines:function(d,h,k,f,g,l,A,m,D,n,s){var G=k.min,r=k.max,p=k.tickInterval,q=n?"xAxis":f.stacking100Percent?
"percentValue":"yAxis",v=G,u=1,V=k.gridLineColor,t=k.gridLineWidth,Z=k.gridLineDashStyle,F=0>G&&0<r?!0:!1,Q=0===G,ba=0===r,B=0===b(f.showzeroplanevalue,d.showzeroplanevalue),C=!0,ua,H=1,pa=0<b(d.numdivlines,0),J=h[e].axisGridManager,wa=this.colorManager,ca=this.is3D,Ta=b(d.showaxislimitgridlines,this.showAxisLimitGridLines),ca=b(Ta,ca||h.chart.plotBorderWidth?0:1),db=this.inversed;h=h.xAxis;s=b(s,D?1:0);delete k._altGrid;delete k._lastValue;n&&!f.catOccupied&&(f.catOccupied={});!F||n&&f.catOccupied[0]||
(n?(C=b(d.showvzeroplane,1),ua=b(d.showvzeroplanevalue,l),pa=b(d.vzeroplanethickness,1),wa=c(d.vzeroplanealpha,d.vdivlinealpha,wa.getColor("divLineAlpha")),d=0<pa?S(c(d.vzeroplanecolor,V),wa):$):(wa=b(d.divlinealpha,wa.getColor("divLineAlpha")),ua=b(f.showzeroplanevalue,d.showzeroplanevalue,l),!1===this.defaultZeroPlaneHighlighted?(C=b(f.showzeroplane,d.showzeroplane,!(this.defaultZeroPlaneHidden&&!pa)),pa=t):(pa=1===t?2:t,H=5,wa=aa(2*wa,100)),pa=b(f.zeroplanethickness,d.zeroplanethickness,pa),wa=
c(f.zeroplanealpha,d.zeroplanealpha,wa),d=0<pa?S(c(f.zeroplanecolor,d.zeroplanecolor,V),wa):$),C&&(ua=ua?m[q](0,s):a,(H=J.addAxisGridLine(k,0,ua,pa,Z,d,H,n))&&(H.isZeroPlane=!0)),k.effectiveZeroPlaneThickness=C&&parseInt(wa,10)&&pa);n&&f.catOccupied[G]||(ua=!g||Q&&B?a:m[q](G,s),(H=Ta||ca&&(db||!h.showLine)?J.addAxisGridLine(k,G,ua,t,Z,V||$,2,n):J.addAxisGridLine(k,G,ua,.1,void 0,$,2,n))&&(H.isMinLabel=!0));0>=t&&(t=.1,V=$);for(G=Number(K(v+p,10));G<r;G=Number(K(G+p,10)),u+=1)F&&0>v&&0<G&&!D&&(J.addAxisAltGrid(k,
0),u+=1),0===G||n&&f.catOccupied[G]||(ua=1===l&&0===u%A?m[q](G,s):a,J.addAxisGridLine(k,G,ua,t,Z,V,2,n)),v=G,D||J.addAxisAltGrid(k,G);D||J.addAxisAltGrid(k,r);0!==u%A||n&&f.catOccupied[r]||(ua=!g||ba&&B?a:m[q](r,s),(H=Ta||ca&&(!db||!h.showLine)?J.addAxisGridLine(k,r,ua,t,Z,V||$,2,n):J.addAxisGridLine(k,r,ua,.1,Z,$,2,n))&&(H.isMaxLabel=!0));this.realtimeEnabled&&(k.labels._enabled=k.labels.enabled,k._gridLineWidth=k.gridLineWidth,k._alternateGridColor=k.alternateGridColor);k.labels.enabled=!1;k.gridLineWidth=
0;k.alternateGridColor=$;k.plotLines.sort(Rb)},xAxisMinMaxSetter:function(a,c,d,h,g){var k=a[e],f=k.x,l=c.chart,A=f.min=b(f.min,0),D=f.max=b(f.max,f.catCount-1),n=0,G=0,s=a.chart.defaultSeriesType,r=/^(column|column3d|bar|bar3d|floatedcolumn|sparkwinloss|boxandwhisker2d|dragcolumn)$/.test(s),p=/^(line|area|spline|areaspline)$/.test(s),s=/^(scatter|bubble|candlestick|dragnode)$/.test(s),q=a.xAxis,v=q.scroll,u=v&&v.enabled,V=b(l.canvaspadding),t=U(V),Z=va(aa(b(V,h,0),d/2-10)),V=va(aa(b(V,g,0),d/2-10)),
F,Q,ba,B;f.adjustMinMax&&(F=b(l.setadaptivexmin,1),D=A=!F,Q=b(this.numVDivLines,l.numvdivlines,4),ba=l.adjustvdiv!==Sa,B=b(l.showxaxisvalues,l.showxaxisvalue,1),F=b(l.showvlimits,B),B=b(l.showvdivlinevalue,l.showvdivlinevalues,B),this.axisMinMaxSetter(q,f,l.xaxismaxvalue,l.xaxisminvalue,A,D,Q,ba),A=q.min,D=q.max,f.requiredAutoNumericLabels&&(Q=b(parseInt(l.xaxisvaluesstep,10),1),this.configurePlotLines(l,a,q,f,F,B,1>Q?1:Q,k.numberFormatter,!1,!0)),q.plotLines.sort(Rb));q.labels.enabled=!1;q.gridLineWidth=
0;q.alternateGridColor=$;(r||k.isScroll)&&!k.hasNoColumn&&!t&&U(h)&&U(g)&&(G=d/(D-A+1)*.5,Z=0<G-h?0:Z,V=0<G-g?0:V,n=0<G-h?.5:0,G=0<G-g?.5:0);r&&!k.hasNoColumn&&(G=n=.5);k.is3d&&(Z+=b(a.chart.xDepth,0));a=(d-(Z+V))/((u?v.vxLength:D)-A+(n+G));q.min=A-(n+Z/a);q.max=D+(G+V/a);u&&(n=v.vxLength,a=q.max-q.min,v.viewPortMin=q.min,v.viewPortMax=q.max,v.scrollRatio=n/a,v.flatScrollBars=k.flatScrollBars,v.scrollBar3DLighting=k.scrollBar3DLighting,q.max=q.min+n);p&&q.min===q.max&&(q.min-=.65,q.max+=.65);s&&c.vtrendlines&&
m(c.vtrendlines,q,k,!1,!0,!0)},postSeriesAddition:function(a){var d=a[e],k=d.isBar,f=d.is3d,g=a.chart.rotateValues&&!k?270:0,l=d[0],A=l&&l.stacking100Percent,m,D,n,G,s,r,p,q,u,V,t,Z,F,Q,ba,B,C,ua,H,pa,J,wa,K;if(this.isStacked)for(n in m=d.plotSpacePercent,D=a.chart.defaultSeriesType,m=1-2*m,B=a.series,C=this.numberFormatter,J=h({},a.plotOptions.series.dataLabels.style),wa=parseFloat(J.fontSize),K=!l.stacking100Percent,J.color=a.plotOptions.series.dataLabels.color,G=l.stack,G){l=G[n].length;s=m/l;
p=-(m-s)/2;Q=[];Z=0;for(q=B.length;Z<q;Z+=1)u=B[Z],u.yAxis||c(u.type,D)!==n||Q.push(u);for(r=0;r<l;r+=1,p+=s){t=G[n][r];ba=[];Z=0;for(q=Q.length;Z<q;Z+=1)u=Q[Z],b(u.columnPosition,0)===r&&ba.push(u.data);if(t&&t.length)for(V=0,u=t.length;V<u;V+=1)if(Z=t[V])for(F=(Z.n||0)+(Z.p||0),d.showStackTotal&&(q=V,q+=p,Z=0>F?Z.n:Z.p,a.xAxis.plotLines.push({value:q,width:0,isVline:K,isTrend:!K,zIndex:4,_isStackSum:1,_catPosition:V,_stackIndex:r,label:{align:oa,textAlign:f||270!==g?k?0>F?fa:La:oa:0>F?fa:La,offsetScale:K?
Z:void 0,offsetScaleIndex:0,rotation:g,style:J,verticalAlign:ia,y:k?0:0>F?270===g?4:wa:-4,x:0,text:d.numberFormatter.yAxis(F)}})),Z=0,q=ba.length;Z<q;Z+=1)if(H=ba[Z][V])if(pa=F&&(H.y||0)/F*100,ua=C.percentValue(pa),H.toolText=v(H.toolText,[14,24,25,112],{percentValue:ua,sum:C.dataLabels(F),unformattedSum:F}),H.y||0===H.y)A&&(H.y=pa,H.previousY||0===H.previousY)&&(H.previousY=H.previousY/F*100),H.showPercentValues&&(H.displayValue=ua)}}},styleMapForFont:Q,styleApplicationDefinition_font:function(a,
b,c){var d,g,h=!1,k,f,l=this.styleMapForFont;switch(b){case "caption":d=a.title;break;case "datalabels":d=a.xAxis.labels;break;case "datavalues":d=a.plotOptions.series.dataLabels;h=!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[e].trendStyle};break;case "xaxisname":d=a.xAxis.title;break;case "yaxisname":case "pyaxisname":case "axistitle":d=[];b=0;for(k=a.yAxis.length;b<k;b+=1)d.push(a.yAxis[b].title);break;case "yaxisvalues":d=[];b=0;for(k=a.yAxis.length;b<k;b+=1)d.push(a.yAxis[b].labels);break;case "vlinelabels":d={style:a[e].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,k=d.length;b<k;b+=1){f=d[b];for(g in c)if(a=g.toLowerCase(),"function"===typeof l[a])l[a](c[g],f,h);u(f.style)}else{for(g in c)if(a=g.toLowerCase(),"function"===typeof l[a])l[a](c[g],d,h);u(d.style)}},parseStyles:function(a){var b,c,d,g={},e,h=this.dataObj;if(h.styles&&h.styles.definition instanceof Array&&h.styles.application instanceof Array){for(b=0;b<h.styles.definition.length;b+=1)c=h.styles.definition[b],
c.type&&c.name&&this["styleApplicationDefinition_"+c.type.toLowerCase()]&&(g[c.name.toLowerCase()]=c);for(b=0;b<h.styles.application.length;b+=1)for(c=h.styles.application[b].styles&&h.styles.application[b].styles.split(xa)||[],e=0;e<c.length;e+=1)if(d=c[e].toLowerCase(),g[d]&&h.styles.application[b].toobject)this["styleApplicationDefinition_"+g[d].type.toLowerCase()](a,h.styles.application[b].toobject.toLowerCase(),g[d])}},updateDefaultAnnotations:function(){var a=this.renderer,d=this.dataObj,e=
this.chartInstance,h=d&&d.annotations||{},g={},k;if(this.drawAnnotations&&e.dataReady()&&d&&d.chart&&b(d.chart.showannotations,1)){k=b(h.scaleonresize,d.chart.scaleonresize,1);var a={interactionevents:c(this.annotationInteractionEvents,!0),showbelow:c(h.showbelow,h.showbelowchart),autoscale:h.autoscale,scaletext:h.scaletext,scaleimages:h.scaleimages,constrainedscale:h.constrainedscale,scaleonresize:k,origw:c(h.origw,d.chart.origw,k?this.origRenderWidth:a.chartWidth),origh:c(h.origh,d.chart.origh,
k?this.origRenderHeight:a.chartHeight),xshift:h.xshift,yshift:h.yshift,grpxshift:h.grpxshift,grpyshift:h.grpyshift,xscale:h.xscale,yscale:h.yscale,rootxscale:b(h.xscale,100)/100,rootyscale:b(h.yscale,100)/100},f;a||(a={});for(f in g)a[f]=g[f];e.annotations.reset(h,a,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}});ha("stub",{init:function(a,b,c){this.containerElement=a;this.smartLabel=c.jsVars.smartLabel},standaloneInit:!0},ha.base);ha("barbase",{spaceManager:function(){return this.placeHorizontalXYSpaceManager.apply(this,arguments)}},ha.base);ha("singleseries",{series:function(a,b,c){var d=a.data||a.dataset&&a.dataset[0]&&a.dataset[0].data,g;d&&0<d.length&&d instanceof Array&&(g={data:[],hoverEffects:this.parseSeriesHoverOptions(a,
b,{},c),colorByPoint:!0},b.legend.enabled=!1,c=this.point(c,g,d,a.chart,b),c instanceof Array?b.series=b.series.concat(c):b.series.push(c),this.configureAxis(b,a),a.trendlines&&m(a.trendlines,b.yAxis,b[e],!1,this.isBar))},defaultSeriesType:a,configureAxis:function(a,d){var h=a[e],k=a.xAxis,g=d.chart,f=a.chart.is3D,l,A,m,D,n,G,r,p,q,v,u,V,t=0,Z,F,Q,ba,B,C,ua,H=this.numberFormatter,pa=b(g.syncaxislimits,0),J;k.title.text=s(g.xaxisname);J=b(parseInt(g.yaxisvaluesstep,10),parseInt(g.yaxisvaluestep,10),
1);J=1>J?1:J;l=a.yAxis[0];A=h[0];if(h.isDual)m=H.getCleanValue(g.pyaxismaxvalue),D=H.getCleanValue(g.pyaxisminvalue),l.title.text=s(g.pyaxisname),pa&&!A.stacking100Percent?(V=h[1],u=b(V.max),V=b(V.min),void 0!==u&&void 0!==V&&(A.min=aa(A.min,V),A.max=W(A.max,u)),u=H.getCleanValue(g.syaxismaxvalue),V=H.getCleanValue(g.syaxisminvalue),null!==V&&(D=null!==D?aa(D,V):V),null!==u&&(m=null!==m?W(m,u):u)):pa=0;else{m=H.getCleanValue(g.yaxismaxvalue);D=H.getCleanValue(g.yaxisminvalue);if(h.isSpline)for(V=
0;V<a.series.length;V++)u=wa(a.series[V].data,h.width,a.plotOptions.series.connectNullData),A.min=aa(A.min,u.min),A.max=W(A.max,u.max);l.title.text=s(g.yaxisname)}r=b(this.isStacked?0:this.setAdaptiveYMin,g.setadaptiveymin,this.defSetAdaptiveYMin,0);G=n=!r;p=b(h.numdivlines,g.numdivlines,this.numdivlines,4);q=g.adjustdiv!==Sa;v=b(this.showYAxisValues,g.showyaxisvalues,g.showyaxisvalue,1);u=b(g.showyaxislimits,g.showlimits,v);V=b(g.showdivlinevalue,g.showdivlinevalues,v);f||(t=b(g.showaxislines,g.drawAxisLines,
0),Q=b(g.axislinethickness,1),B=b(g.axislinealpha,100),100<B&&(B=100),F=S(c(g.axislinecolor,"#000000"),B),l.showLine=b(g.showyaxisline,t),Z=k.showLine=b(g.showxaxisline,t),ba=k.lineThickness=b(g.xaxislinethickness,Q),l.lineThickness=b(g.yaxislinethickness,Q),C=k.lineAlpha=b(g.xaxislinealpha,B),100<C&&(C=k.lineAlpha=100),ua=l.lineAlpha=b(g.yaxislinealpha,B),100<ua&&(ua=l.lineAlpha=100),k.lineColor=S(c(g.xaxislinecolor,F),C),l.lineColor=S(c(g.yaxislinecolor,F),ua),a.chart.xAxisLineVisible=Z&&!!ba&&
0<C);this.axisMinMaxSetter(l,A,m,D,n,G,p,q);this.configurePlotLines(g,a,l,A,u,V,J,h.numberFormatter,!1);l.reversed&&0<=l.min&&(a.plotOptions.series.threshold=l.max);h.isDual&&(l=a.yAxis[1],A=h[1],u=b(g.showsecondarylimits,u),V=b(g.showdivlinesecondaryvalue,v),pa?(k=a.yAxis[0],l.min=k.min,l.max=k.max,l.tickInterval=k.tickInterval,delete A.max,delete A.min):(m=H.getCleanValue(g.syaxismaxvalue),D=H.getCleanValue(g.syaxisminvalue),r=b(g.setadaptivesymin,r),G=n=!r,this.axisMinMaxSetter(l,A,m,D,n,G,p,q)),
f||(l.showLine=b(g.showsyaxisline,t),l.lineThickness=b(g.syaxislinethickness,Q),f=l.lineAlpha=b(g.syaxislinealpha,B),100<f&&(f=100),l.lineColor=S(c(g.syaxislinecolor,F),f)),this.configurePlotLines(g,a,l,A,u,V,J,h.numberFormatter,!0),l.title.text=s(g.syaxisname))},pointValueWatcher:function(a,d,h,k,g,f,l){a=a[e];var A;if(null!==d)return h=b(h,0),a[h]||(a[h]={}),h=a[h],k&&(this.distributedColumns&&(a.marimekkoTotal+=d),k=h.stack,g=b(g,0),f=b(f,0),l=c(l,gb),k[l]||(k[l]=[]),l=k[l],l[f]||(l[f]=[]),f=l[f],
f[g]||(f[g]={}),g=f[g],0<=d?void 0!==g.p?(A=g.p,d=g.p+=d):g.p=d:g.n?(A=g.n,d=g.n+=d):g.n=d),h.max=h.max>d?h.max:d,h.min=h.min<d?h.min:d,A},parseSeriesHoverOptions:function(a,d,e){a=d.chart.plotHoverEffects;d={enabled:c(e.showhovereffect,e.hovereffect,a.enabled)};d.highlight=b(e.highlightonhover,e.highlightplotonhover,a.highlight);d.columnHighlight=b(d.highlight,e.highlightcolumnonhover,e.highlightbaronhover,a.columnHighlight);d.anchorHighlight=b(d.highlight,e.highlightanchoronhover,a.anchorHighlight);
d.anchorHighlight=b(d.highlight,e.highlightimageonhover,a.imageHighlight);d.bubbleHighlight=b(d.highlight,e.highlightbubbleonhover,e.highlightbaronhover,a.bubbleHighlight);d.imageHoverAlpha=c(e.anchorimagehoveralpha,a.anchorImageHoverAlpha);d.imageHoverScale=c(e.anchorimagehoverscale,a.anchorImageHoverScale);d.color=c(e.hovercolor,e.bubblehovercolor,a.color);d.alpha=c(e.hoveralpha,a.alpha);d.scale=c(e.hoverscale,e.bubblehoverscale,a.scale);d.gradientColor=void 0!==e.hovergradientcolor?e.hovergradientcolor:
a.gradientColor;d.ratio=c(e.hoverratio,a.ratio);d.angle=c(e.hoverangle,a.angle);d.borderColor=c(e.borderhovercolor,a.borderColor);d.borderAlpha=c(e.borderhoveralpha,a.borderAlpha);d.borderThickness=b(e.borderhoverthickness,a.borderThickness);d.borderDashed=b(e.borderhoverdashed,a.borderDashed);d.borderDashGap=b(e.borderhoverdashgap,a.borderDashGap);d.borderDashLen=b(e.borderhoverdashlen,a.borderDashLen);d.shadow=c(e.hovershadow,a.shadow);d.anchorSides=c(e.anchorhoversides,a.anchorSides);d.anchorRadius=
c(e.anchorhoverradius,a.anchorRadius);d.anchorScale=c(e.anchorhoverscale,a.anchorScale);d.anchorAlpha=c(e.anchorhoveralpha,e.hoveralpha,a.anchorAlpha);d.anchorBgColor=c(e.anchorbghovercolor,e.anchorhovercolor,a.anchorBgColor);d.anchorBgAlpha=c(e.anchorbghoveralpha,a.anchorBgAlpha);d.anchorBorderColor=c(e.anchorborderhovercolor,a.anchorBorderColor);d.anchorBorderAlpha=c(e.anchorborderhoveralpha,a.anchorBorderAlpha);d.anchorBorderThickness=b(e.anchorborderhoverthickness,a.anchorBorderThickness);d.anchorStartAngle=
c(e.anchorhoverstartangle,a.anchorStartAngle);d.anchorDip=c(e.anchorhoverdip,a.anchorDip);d.anchorAnimation=b(e.anchorhoveranimation,a.anchorAnimation,1);d.negativeColor=c(e.negativehovercolor,a.negativeColor);d.is3DBubble=b(e.is3donhover,a.is3DBubble);return d},parseLegendOptions:function(a,d){var e={borderColor:c(d.legendiconbordercolor,a.legendiconbordercolor),bgColor:c(d.legendiconbgcolor,a.legendiconbgcolor),alpha:c(d.legendiconalpha,a.legendiconalpha),bgAlpha:c(d.legendiconbgalpha,a.legendiconbgalpha),
sides:b(d.legendiconsides,a.legendiconsides),borderThickness:b(d.legendiconborderthickness,a.legendiconborderthickness),startAngle:b(d.legendiconstartangle,a.legendiconstartangle)};if(e.customLegendIcon=b(a.drawcustomlegendicon,d.drawcustomlegendicon))e.startAngle=b(e.startAngle,45),e.symbol=Fa(e.sides||4);return e},pointHoverOptions:function(d,e,h){var f,g,l,A={};f=e.hoverEffects;e=b(d.hovereffect,f&&f.enabled);g=!1;var m={enabled:e},D=h&&a+h.plotType.toLowerCase();if(void 0===e)if(this.forceHoverEnable)g=
e=m.enabled=!0;else{"anchor"==D&&(g=h.imageUrl?e=m.enabled=void 0!==c(d.anchorimagehoveralpha,f.imageHoverAlpha,d.anchorimagehoverscale,f.imageHoverScale,void 0):e=m.enabled=void 0!==c(d.hovercolor,d.anchorhovercolor,d.anchorbghovercolor,f.anchorBgColor,f.color,d.hoveralpha,d.anchorhoveralpha,f.anchorAlpha,d.bghoveralpha,d.anchorbghoveralpha,f.anchorBgAlpha,d.anchorborderhovercolor,d.borderhovercolor,f.anchorBorderColor,d.anchorborderhoverthickness,d.borderhoverthickness,f.anchorBorderThickness,d.anchorborderhoveralpha,
d.borderhoveralpha,f.anchorBorderAlpha,d.hoverdip,d.anchorhoverdip,f.anchorDip,d.anchorhoverstartangle,f.anchorStartAngle,d.hoversides,d.anchorhoversides,f.anchorSides,d.hoverradius,d.anchorhoverradius,f.anchorRadius,void 0));if("column"==D||"bubble"==D)g=e=m.enabled=void 0!==c(d.hoveralpha,f.alpha,d.hovergradientcolor,f.gradientColor,d.borderhovercolor,f.borderColor,d.borderhoverthickness,f.borderThickness,d.hoverratio,f.ratio,d.hoverangle,f.angle,d.borderhoveralpha,f.borderAlpha,d.borderhoverdashed,
f.borderDashed,d.borderhoverdashgap,f.borderDashGap,d.borderhoverdashlen,f.borderDashLen,d.hovercolor,f.color,void 0);g||"bubble"!=D||(g=e=m.enabled=void 0!==c(d.negativehovercolor,f.negativeColor,d.is3donhover,f.is3DBubble,d.hoverscale,f.scale,void 0));"pie"==D&&(g=e=m.enabled=void 0!==c(d.hovercolor,f.color,d.hoveralpha,f.alpha,d.borderhovercolor,f.borderColor,d.borderhoverthickness,f.borderThickness,d.borderhoveralpha,f.borderAlpha,void 0))}if(e){m.highlight=b(d.highlightonhover,f.highlight);m.columnHighlight=
b(m.highlight,d.highlightcolumnonhover,d.highlightbaronhover);m.anchorHighlight=b(m.highlight,d.highlightanchoronhover);m.bubbleHighlight=b(m.highlight,d.highlightbubbleonhover);m.alpha=c(d.hoveralpha,f.alpha,h.alpha);m.scale=c(d.hoverscale,f.scale,1);m.gradientColor=void 0===d.hovergradientcolor?f.gradientColor:d.hovergradientcolor;m.borderColor=c(d.borderhovercolor,f.borderColor,h.borderColor);m.borderThickness=b(d.borderhoverthickness,f.borderThickness,h.borderWidth);m.ratio=c(d.hoverratio,f.ratio,
h.ratio);m.angle=c(d.hoverangle,f.angle,h.angle);m.borderAlpha=c(d.borderhoveralpha,f.borderAlpha,h.borderAlpha);m.borderDashed=b(d.borderhoverdashed,f.borderDashed,h.borderDashed,0);m.borderDashGap=b(d.borderhoverdashgap,f.borderDashGap,h.borderDashGap);m.borderDashLen=b(d.borderhoverdashlen,f.borderDashLen,h.borderDashLen);m.shadow=c(d.hovershadow,f.shadow,0);m.color=c(d.hovercolor,f.color);"anchor"==D&&(h.imageUrl?(m.imageHoverAlpha=b(d.anchorimagehoveralpha,f.imageHoverAlpha,100),m.imageHoverScale=
h.imageScale*ya(b(d.anchorimagehoverscale,f.imageHoverScale,110))*.01,m.anchorAnimation=b(d.anchorhoveranimation,f.anchorAnimation,1)):(m.anchorColor=T(c(d.hovercolor,d.anchorhovercolor,d.anchorbghovercolor,f.anchorBgColor,f.color,h.anchorBgColor)),m.anchorAlpha=c(d.hoveralpha,d.anchorhoveralpha,f.anchorAlpha,h.anchorAlpha),m.anchorBgAlpha=c(d.bghoveralpha,d.anchorbghoveralpha,f.anchorBgAlpha,m.anchorAlpha,h.anchorBgAlpha),m.anchorBorderColor=c(d.anchorborderhovercolor,d.borderhovercolor,f.anchorBorderColor,
h.anchorBorderColor),m.anchorBorderThickness=c(d.anchorborderhoverthickness,d.borderhoverthickness,f.anchorBorderThickness,h.anchorBorderThickness),m.anchorBorderAlpha=b(d.anchorborderhoveralpha,d.borderhoveralpha,f.anchorBorderAlpha,m.anchorAlpha,h.anchorBorderAlpha),m.anchorDip=b(d.hoverdip,d.anchorhoverdip,f.anchorDip),m.startAngle=c(d.anchorhoverstartangle,f.anchorStartAngle,h.anchorAngle),m.anchorSides=b(d.hoversides,d.anchorhoversides,f.anchorSides,h.anchorSides),m.anchorRadius=b(d.hoverradius,
d.anchorhoverradius,f.anchorRadius),m.anchorScale=b(d.hoverscale,d.anchorhoverscale,f.anchorScale),m.anchorAnimation=b(d.anchorhoveranimation,f.anchorAnimation,1),void 0===m.anchorRadius&&(m.anchorRadius=!g||m.anchorHighlight?h.anchorRadius&&h.anchorRadius+1:h.anchorRadius)));if(g||(m.columnHighlight||m.bubbleHighlight)&&m.color&&1==m.highlight)m.highlight=0;"column"==D&&(m.color=(c(m.color,h.color)+xa+(void 0===m.gradientColor?h.gradientColor:m.gradientColor)).replace(/,+?$/,""));"pie"===D&&(m.color=
c(m.color,h.color).replace(/,+?$/,""));"bubble"==D&&(m.negativeColor=c(d.negativehovercolor,f.negativeColor,h.negativeColor),m.is3d=b(d.is3donhover,f.is3DBubble,h.is3d),m.color=m.negativeColor&&0>d.z?m.negativeColor:m.color||h.color,l="string"==typeof m.color,m.color=T(l?m.color:m.color.FCcolor.color),m.color=m.is3d?ha.bubble.getPointColor(m.color,m.alpha):{FCcolor:{color:m.color,alpha:m.alpha}});if(1==m.highlight&&"anchor"!==D){d=(l="string"==typeof m.color)?m.color.split(/\s{0,},\s{0,}/):m.color.FCcolor.color.split(/\s{0,},\s{0,}/);
f=d.length;for(g=0;g<f;g++)d[g]=ta(d[g],70);l?m.color=d.join(","):m.color.FCcolor.color=d.join(",")}"pie"===D&&(A={color:this.getPointColor(m.color,m.alpha,h.radius3D),alpha:m.alpha,borderColor:S(m.borderColor,m.borderAlpha),borderWidth:m.borderThickness});"column"==D&&(m.colorArr=M(m.color,m.alpha,m.ratio,m.angle,h.isRoundEdged,m.borderColor,aa(m.alpha,m.borderAlpha).toString(),h.isBar,h.is3d),m.dashStyle=m.borderDashed?k(m.borderDashLen,m.borderDashGap,m.borderThickness):"none",A={shadow:m.shadow,
color:m.colorArr[0],borderColor:m.colorArr[1],borderWidth:m.borderThickness,use3DLighting:h.use3DLighting,dashStyle:m.dashStyle});"anchor"==D&&(A=h.imageUrl?{animation:m.anchorAnimation,imageHoverAlpha:m.imageHoverAlpha,imageHoverScale:m.imageHoverScale}:{animation:m.anchorAnimation,shadow:m.shadow,fillColor:{FCcolor:{color:m.anchorColor,alpha:m.anchorBgAlpha*m.anchorAlpha/100+a}},lineColor:{FCcolor:{color:m.anchorBorderColor,alpha:m.anchorBorderAlpha}},lineWidth:m.anchorBorderThickness,radius:m.anchorRadius,
symbol:Fa(m.anchorSides),startAngle:m.startAngle,sides:m.anchorSides,scale:m.anchorScale,dip:m.anchorDip});"bubble"==D&&(A={symbol:m.seriesAnchorSymbol,shadow:m.shadow,scale:m.scale,fillColor:m.color,lineColor:{FCcolor:{color:m.borderColor,alpha:m.alpha}},lineWidth:m.borderThickness})}return{enabled:e,options:m,rolloverOptions:A}},getPointStub:function(d,h,k,f){var g=this.dataObj.chart;f=f[e];h=null===h?h:f.numberFormatter.dataLabels(h);var m=l(s(c(d.tooltext,f.tooltext))),A=l(s(d.displayvalue)),
g=f.showTooltip?void 0!==m?v(m,[1,2,3,5,6,7],{formattedValue:h,label:k,yaxisName:s(g.yaxisname),xaxisName:s(g.xaxisname)},d,g):null===h?!1:k!==a?k+f.tooltipSepChar+h:h:a;f=b(d.showvalue,f.showValues)?void 0!==A?A:h:a;d=c(d.link);return{displayValue:f,categoryLabel:k,toolText:g,link:d}},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,h,k,f,l;f=a.is3D;if(!e||!e.length)return 0;isNaN(b[0])?h=0:(h=Number(b[0]),b=b.slice(1));k=b[0];if("set"===k){isNaN(b[1])?(l=0,b=b.slice(1)):(l=Number(b[1]),b=b.slice(2));k=b[0];e=(e=e[h]&&e[h].items[l])&&e.graphic;if(!e)return 0;f=d&&f?e._getBBox2():e.getBBox();l=c(k,f)}return l};b.xaxis=function(b){var d=a.renderer&&a.renderer.xAxis&&
a.renderer.xAxis[0]&&a.renderer.xAxis[0].labels,e,h;if(!d||!d.length)return 0;h=b[0];if("label"===h){isNaN(b[1])?(e=0,b=b.slice(1)):(e=Number(b[1]),b=b.slice(2));h=b[0];b=d[e];if(!b)return 0;b=b.getBBox();e=c(h,b)}return e};b.yaxis=function(b){var d=a.renderer&&a.renderer.yAxis,e,h;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){h=e.labels;isNaN(b[1])?(e=0,b=b.slice(1)):(e=Number(b[1]),b=b.slice(2));d=b[0];b=h[e];if(!b)return 0;
b=b.getBBox();h=c(d,b)}return h}}},ha.base);ha("multiseries",{series:function(a,c,d){var h,g,k=c[e],f,l;c.legend.enabled=Boolean(b(a.chart.showlegend,1));if(a.dataset&&0<a.dataset.length){this.categoryAdder(a,c);h=0;for(g=a.dataset.length;h<g;h+=1)f=a.dataset[h],l={hoverEffects:this.parseSeriesHoverOptions(a,c,f,d),visible:!b(f.initiallyhidden,0),legendCosmetics:this.parseLegendOptions(a.chart,f),data:[]},this.isStacked||(l.numColumns=g),f=this.point(d,l,f,a.chart,c,k.oriCatTmp.length,h),f instanceof
Array?c.series=c.series.concat(f):c.series.push(f);this.configureAxis(c,a);a.trendlines&&!this.isLog&&m(a.trendlines,c.yAxis,k,!1,this.isBar,void 0,this.inversed)}},categoryAdder:function(c,d){var h,k=0,g=d[e],f=g.axisGridManager,l=c.chart,m=d.xAxis,A,g=g.x,D,n,G,r;if(c.categories&&c.categories[0]&&c.categories[0].category)for(c.categories[0].font&&(d.xAxis.labels.style.fontFamily=c.categories[0].font),void 0!==(h=b(c.categories[0].fontsize))&&(1>h&&(h=1),d.xAxis.labels.style.fontSize=h+Da,u(d.xAxis.labels.style)),
c.categories[0].fontcolor&&(d.xAxis.labels.style.color=c.categories[0].fontcolor.split(xa)[0].replace(/^\#?/,"#")),n=d[e].oriCatTmp,G=c.categories[0].category,h=0;h<G.length;h+=1)G[h].vline?f.addVline(m,G[h],k,d):(D=b(G[h].showlabel,l.showlabels,1),r=c.categories[0].category[h],A=s(p(r.label,r.name)),f.addXaxisCat(m,k,k,D?A:a,{},r,l),n[k]=p(s(r.tooltext),A),k+=1);g.catCount=k},getPointStub:function(d,h,k,f,g,m,A,D,n,G){var r=this.dataObj.chart,q=this.isDual,u=this.isXY,V=this.isMLAxis,t=this.isStacked,
Z=this.isErrorChart,F;f=f[e];var Q,ba,B=null===h?h:this.numberFormatter.dataLabels(h,A),C,H=l(s(c(d.tooltext,g.plottooltext,f.tooltext))),ua=f.tooltipSepChar,pa,J={},wa,K,ca,Ta,db,la,Ha,Aa,Ga;Z&&(K=null===D?D:this.numberFormatter.dataLabels(D,A),la=null===h?a:this.numberFormatter.percentValue(D/h*100),pa=[1,2,3,4,5,6,7,99,100,101,102],h={yaxisName:Ta=s(q?A?r.syaxisname:r.pyaxisname:r.yaxisname),xaxisName:db=s(r.xaxisname),formattedValue:B,label:k,errorDataValue:K,errorPercentValue:la},u?(ca=null===
n?n:this.numberFormatter.xAxis(n),Ha=null===G?a:this.numberFormatter.percentValue(n/G*100),pa.push(103,104,105,106,107,108,109,110),Ga=c(d.horizontalerrorvalue,d.errorvalue),h.errorValue=Aa=c(d.verticalerrorvalue,d.errorvalue),G=l(s(c(d.verticalerrorplottooltext,d.errorplottooltext,g.verticalerrorplottooltext,g.errorplottooltext,r.verticalerrorplottooltext,r.errorplottooltext))),null!==D&&(h.verticalErrorDataValue=K,h.verticalErrorPercentValue=la,h.verticalErrorValue=Aa),null!==n&&(h.horizontalErrorDataValue=
ca,h.horizontalErrorPercentValue=Ha,h.horizontalErrorValue=Ga),wa=l(s(c(d.horizontalerrorplottooltext,d.errorplottooltext,g.horizontalerrorplottooltext,g.errorplottooltext,r.horizontalerrorplottooltext,r.errorplottooltext))),J._hErrortoolText=f.showTooltip?void 0!==wa?v(wa,pa,{yaxisName:Ta=s(q?A?r.syaxisname:r.pyaxisname:r.yaxisname),xaxisName:db=s(r.xaxisname),formattedValue:B,label:k,errorDataValue:ca,errorPercentValue:Ha,errorValue:Ga,verticalErrorDataValue:K,verticalErrorPercentValue:la,verticalErrorValue:Aa,
horizontalErrorDataValue:ca,horizontalErrorPercentValue:Ha,horizontalErrorValue:Ga},d,r,g):null===D?!1:ca:!1):(G=l(s(c(d.errorplottooltext,g.errorplottooltext,r.errorplottooltext))),h.errorValue=Aa=c(d.errorvalue)),J._errortoolText=f.showTooltip?void 0!==G?v(G,pa,h,d,r,g):null===D?!1:K:!1);f.showTooltip?void 0!==H?(t=[4,5,6,7],A={yaxisName:Ta||s(q?A?r.syaxisname:r.pyaxisname:V?g._yAxisName:r.yaxisname),xaxisName:db||s(r.xaxisname)},u?(t.push(8,9,10,11),A.yDataValue=B,A.xDataValue=k,Z&&(t.push(103,
104,105,106,107,108,109,110),null!==D&&(A.verticalErrorDataValue=K,A.verticalErrorPercentValue=la,A.verticalErrorValue=Aa),null!==n&&(A.horizontalErrorDataValue=ca,A.horizontalErrorPercentValue=Ha,A.horizontalErrorValue=Ga))):(t.push(1,2,3),A.formattedValue=B,A.label=k,Z&&(t.push(99,100,101,102),A.errorValue=Aa,null!==D&&(A.errorDataValue=K,A.errorPercentValue=la))),g=v(H,t,A,d,r,g)):null===B?g=!1:(f.seriesNameInToolTip&&(C=p(g&&g.seriesname)),g=C?C+ua:a,g+=k?k+ua:a,f.showPercentInToolTip&&t?(ba=
!0,g+="$percentValue"):g+=B):g=!1;b(d.showvalue,m)?void 0!==l(d.displayvalue)?F=s(d.displayvalue):f.showPercentValues?Q=!0:F=B:F=a;J.link=c(d.link);J.displayValue=F;J.categoryLabel=k;J.toolText=g;J.showPercentValues=Q;J.showPercentInToolTip=ba;return J}},ha.singleseries);ha("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,e,h,k;k=a.sumXY;
var f=a.sumX,l=a.sumY;e=a.xValues;h=a.sumXsqure;d=a.yValues;a=a.sumYsqure;b?(e.sort(Pa),d=e[0],e=e[e.length-1],k=(c*k-f*l)/(c*h-O(f,2)),h=!isNaN(k)&&isFinite(k)?k*(d-f/c)+l/c:l/c,c=!isNaN(k)&&isFinite(k)?k*(e-f/c)+l/c:l/c,c=[{x:d,y:h},{x:e,y:c}]):(d.sort(Pa),h=d[0],d=d[d.length-1],k=(c*k-f*l)/(c*a-O(l,2)),e=isNaN(k)?f/c:k*(h-l/c)+f/c,c=isNaN(k)?f/c:k*(d-l/c)+f/c,c=[{x:e,y:h},{x:c,y:d}]);return c},pointValueWatcher:function(a,b,c,d){var g=a[e];null!==b&&(a=g[0],a.max=a.max>b?a.max:b,a.min=a.min<b?
a.min:b);null!==c&&(a=g.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+=O(c,2),d.xValues.push(c),d.sumYsqure+=O(b,2),d.yValues.push(b))}},ha.multiseries);ha("scrollbase",{postSeriesAddition:function(){var a=this.hcJSON,d=a.xAxis.scroll,h=a[e],k=h.width,g=h.x.catCount,f=this.dataObj.chart,l=this.colorManager,m,A,D,n,r,s;h.isScroll=!0;a.chart.hasScroll=!0;if(this.isStacked)m=1;else{A=m=0;n=a.series;s=a.chart.defaultSeriesType;for(D=n.length;A<
D;A++)r=c(n[A].type,s),"column"===r&&(m+=1);1>m&&(m=1)}g*=m;k=b(f.numvisibleplot,za(k/this.avgScrollPointWidth));d&&2<=k&&k<g&&(d.enabled=!0,d.vxLength=k/m,d.startPercent=aa(1,W(0,parseFloat(f.scrolltoend)||0)),d.padding=b(f.scrollpadding,0),d.height=b(f.scrollheight,16),d.showButtons=!!b(f.scrollshowbuttons,1),d.buttonPadding=b(f.scrollbtnpadding,0),d.color=T(c(f.scrollcolor,l.getColor("altHGridColor"))),h.marginBottomExtraSpace+=d.padding+d.height);if(G||b(f.enabletouchscroll,0))a.chart.zoomType=
"x",a.chart.nativeZoom=!1,a.chart.selectionMarkerFill="rgba(255,255,255,0)",(a.callbacks||(a.callbacks=[])).push(function(a){B(a.containerElement,"selectionstart selectiondrag",ha.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&&D(b.elements.anchor.element,"selectionstart"===a.type?"dragstart":"drag",{pageX:-c,pageY:-a.chartY})}},ha.multiseries);ha("logbase",{isLog:!0,
isValueAbs:!0,configureAxis:function(d,k){var f=d[e],l=f.axisGridManager,g=this.numberFormatter,D=d.series,n=d.xAxis,G=d.yAxis[0],r=f[0],p=k.chart,q=!b(p.showyaxislimits,p.showlimits,p.showyaxisvalues,1),v=!b(p.showdivlinevalues,p.showyaxisvalues,1),u=b(p.base,p.logbase,10),V=b(p.yaxismaxvalue),t=b(p.yaxisminvalue),Z=this.colorManager,F=1===b(p.showminordivlinevalues),Q=c(p.minordivlinecolor,G.gridLineColor,Z.getColor("divLineColor")),ba=b(p.minordivlinealpha,p.divlinealpha,Z.getColor("divLineAlpha")),
Z=[G,void 0,void 0,b(p.divlinethickness,2),G.gridLineDashStyle,G.gridLineColor,2],Q=[G,void 0,void 0,b(p.minordivlinethickness,1),G.gridLineDashStyle,S(c(p.minordivlinecolor,Q),b(p.minordivlinealpha,ba/2)),2],ba=F||ba&&Q[3],B=b(p.showaxislimitgridlines,this.showAxisLimitGridLines),C=b(B,this.is3D||d.chart.plotBorderWidth?0:1),H,ua;0>=u&&(u=10);0>=V&&(V=void 0);0>=t&&(t=void 0);V=this.getLogAxisLimits(r.max||u,r.min||1,V,t,u,ba?p.numminordivlines:0);n.title.text=s(p.xaxisname);n.showLine=b(p.showxaxisline,
p.showaxislines,0);n.lineThickness=b(p.xaxislinethickness,p.axislinethickness,1);n.lineAlpha=b(p.xaxislinealpha,p.axislinealpha,100);n.lineColor=S(c(p.xaxislinecolor,p.axislinecolor,"000"));h(G,{title:{text:s(p.yaxisname)},labels:{enabled:!1},gridLineWidth:0,alternateGridColor:$,reversed:"1"===p.invertyaxis,max:A(V.Max,u),min:A(V.Min,u),showLine:b(p.showyaxisline,p.showaxislines,0),lineThickness:b(p.yaxislinethickness,p.axislinethickness,1),lineAlpha:b(p.yaxislinealpha,p.axislinealpha,100),lineColor:S(c(p.yaxislinecolor,
p.axislinecolor,"000"))});for(p=D.length;p--;)if(t=D[p])for(t.threshold=G.min,ua=(t=t.data)&&t.length||0;ua--;)H=t[ua],H.y=A(H.y,u);delete r.max;delete r.min;r.isLog=!0;G.reversed&&0<=G.min&&(d.plotOptions.series.threshold=G.max);k.trendlines&&m(k.trendlines,[{max:V.Max,min:V.Min,plotLines:G.plotLines,plotBands:G.plotBands,title:G.title}],f);for(p=G.plotLines.length;p--;)H=G.plotLines[p],H.value&&(H.value=A(H.value,u)),H.from&&(H.from=A(H.from,u)),H.to&&(H.to=A(H.to,u));for(p=G.plotBands.length;p--;)H=
G.plotBands[p],H.from&&(H.from=A(H.from,u)),H.to&&(H.to=A(H.to,u));for(p=V.divArr.length;p--;){H=V.divArr[p];if(H.ismajor)Z[1]=A(H.value,u),Z[2]=g.yAxis(H.value),l.addAxisGridLine.apply(l,Z);else if(ba||H.isextreme)Q[1]=A(H.value,u),Q[2]=F||H.isextreme?g.yAxis(H.value):a,l.addAxisGridLine.apply(l,Q);t=G.plotLines[G.plotLines.length-1];H.isextreme?(t.width=B||C&&(!H.isMin||!n.showLine)?t.width:.1,q&&(t.label.text=a)):v&&t.label&&(t.label.text=a)}},getLogAxisLimits:function(a,b,c,d,e,h){var k=function(a){return null===
a||void 0===a||""===a||isNaN(a)?!1:!0},f=0,l=[],m,A,D,n,G,p,r,s;a==b&&(b=10>=b?1:parseInt(b/10,10));k(c)&&Number(c)>=a?a=Number(c):(c=1<e?va(ja(a)/ja(e)):za(ja(a)/ja(e)),a=O(e,c),A=c);A||(A=1<e?va(ja(a)/ja(e)):za(ja(a)/ja(e)));k(d)&&Number(d)<=b?b=Number(d):(c=1<e?za(ja(b)/ja(e)):va(ja(b)/ja(e)),b=O(e,c),m=c);m||(m=1<e?za(ja(b)/ja(e)):va(ja(b)/ja(e)));d=Number(String(ja(e)/ja(10)));h=Number(h)||(za(d)==d?8:4);1<e?(D=A,n=m):0<e&&1>e&&(D=m,n=A);d=A;for(m=D;m>=n;--m)if(D=O(e,d),b<=D&&a>=D&&(l[f++]={value:D,
ismajor:!0}),m!=n){A=1<e?-1:1;D=O(e,d)-O(e,d+A);c=D/(h+1);for(k=1;k<=h;++k)D=O(e,d+A)+c*k,b<=D&&a>=D&&(l[f++]={value:D,ismajor:!1});1<e?d--:d++}for(r in l)for(s in l[r])"value"==s&&(G||(G=l[r][s]==b&&(l[r].isextreme=l[r].isMin=!0)),p||(p=l[r][s]==a&&(l[r].isextreme=l[r].isMax=!0)));G||(l[f++]={value:b,ismajor:!0,isMin:!0,isextreme:!0});p||(l[f]={value:a,ismajor:!0,isMax:!0,isextreme:!0});return{Max:a,Min:b,divArr:l}},pointValueWatcher:function(a,c,d){a=a[e];d=b(d,0);0<c&&(a[d]||(a[d]={}),d=a[d],d.max=
d.max>c?d.max:c,d.min=d.min<c?d.min:c)}},ha.mslinebase);fb=ha.singleseries;Xa=ha.multiseries;ha("column2dbase",{point:function(d,f,l,m,g){var A=l.length,D=g[e],n=D.axisGridManager,G=g.xAxis,D=D.x,r=this.colorManager,q=/3d$/.test(g.chart.defaultSeriesType),u=this.isBar,v=/^spark/i.test(d);d=c(m.showplotborder,v||q?Sa:Ia)===Ia?q?1:b(m.plotborderthickness,1):0;var V=g.chart.useRoundEdges,t=b(m.plotborderalpha,m.plotfillalpha,100),Z=c(m.plotbordercolor,r.getColor("plotBorderColor")).split(xa)[0],v=v?
"":b(m.useplotgradientcolor,1)?H(m.plotgradientcolor,r.getColor("plotGradientColor")):a,F=0,Q=Boolean(b(m.use3dlighting,1)),ba=g[e].numberFormatter,B,C=b(m.plotborderdashed,0),ua=b(m.plotborderdashlen,5),J=b(m.plotborderdashgap,4),pa,wa,K,ca,Ta,db,la,Ha,Aa,Ga,ab,L,N,jb;for(K=0;K<A;K+=1)N=l[K],N.vline?n.addVline(G,N,F,g):(wa=ba.getCleanValue(N.value),B=b(N.showlabel,m.showlabels,1),ca=s(p(N.label,N.name)),pa=c(N.color,r.getPlotColor()),Ta=c(N.alpha,m.plotfillalpha,Ra),db=c(N.ratio,m.plotfillratio),
la=c(360-m.plotfillangle,u?180:90),Ha=c(N.alpha,t),Aa=b(N.dashed,C),Ga=c(N.dashgap,J),ab=c(N.dashlen,ua),n.addXaxisCat(G,F,F,B?ca:a,N,{},m,pa),F+=1,0>wa&&(la=u?180-la:360-la),jb={opacity:Ta/100},L=M(pa+xa+v.replace(/,+?$/,""),Ta,db,la,V,Z,Ha+a,u,q),B=Aa?k(ab,Ga,d):"none",pa=this.pointHoverOptions(N,f,{plotType:"column",is3d:q,isBar:u,use3DLighting:Q,isRoundEdged:V,color:pa,gradientColor:v,alpha:Ta,ratio:db,angle:la,borderWidth:d,borderColor:Z,borderAlpha:Ha,borderDashed:Aa,borderDashGap:Ga,borderDashLen:ab,
shadow:jb}),f.data.push(h(this.getPointStub(N,wa,ca,g),{y:wa,shadow:jb,color:L[0],borderColor:L[1],borderWidth:d,use3DLighting:Q,dashStyle:B,tooltipConstraint:this.tooltipConstraint,hoverEffects:pa.enabled&&pa.options,rolloverProperties:pa.enabled&&pa.rolloverOptions})),this.pointValueWatcher(g,wa));D.catCount=F;return f},defaultSeriesType:"column"},fb);ha("linebase",{defaultSeriesType:"line",hasVDivLine:!0,defaultPlotShadow:1,point:function(d,f,l,m,g){var A,D,n,G,r,q,u,v,V,t,Z,F,Q,ba,B,C,H,ua,pa,
J,wa,K,ca,Ta,db,la;d=g.chart;var Ha=l.length,Aa=g.xAxis;A=g[e];var Ga=this.colorManager,N,ab=A.axisGridManager,L=0,jb=A.x,O=g[e].numberFormatter,M,Va,ub;ba=T(c(m.linecolor,m.palettecolors,Ga.getColor("plotFillColor")));B=c(m.linealpha,Ra);Z=b(m.linethickness,this.lineThickness,4);F=Boolean(b(m.linedashed,0));u=b(m.linedashlen,5);v=b(m.linedashgap,4);db=b(m.anchorshadow,0);f.color={FCcolor:{color:ba,alpha:B}};f.lineWidth=Z;f.anchorShadow=db;f.step=c(this.stepLine,f.step);f.drawVerticalJoins=Boolean(b(f.drawVerticalJoins,
m.drawverticaljoins,1));f.useForwardSteps=Boolean(b(f.useForwardSteps,m.useforwardsteps,1));Q=b(m.drawanchors,m.showanchors);for(D=0;D<Ha;D+=1)G=l[D],G.vline?ab.addVline(Aa,G,L,g):(A=O.getCleanValue(G.value),r=b(G.showlabel,m.showlabels,1),n=s(p(G.label,G.name)),ab.addXaxisCat(Aa,L,L,r?n:a,G,{},m),L+=1,V=T(c(G.color,ba)),t=b(G.alpha,B),r=b(G.dashed,F)?k(u,v,Z):"none",q={opacity:t/100},H=b(G.anchorsides,m.anchorsides,0),Ta=b(G.anchorstartangle,m.anchorstartangle,90),J=b(G.anchorradius,m.anchorradius,
this.anchorRadius,3),pa=T(c(G.anchorbordercolor,m.anchorbordercolor,ba)),ua=b(G.anchorborderthickness,m.anchorborderthickness,this.anchorBorderThickness,1),wa=T(c(G.anchorbgcolor,m.anchorbgcolor,Ga.getColor("anchorBgColor"))),K=c(G.anchoralpha,m.anchoralpha,Ra),ca=c(G.anchorbgalpha,m.anchorbgalpha,K),M=c(G.anchorimageurl,m.anchorimageurl),Va=c(G.anchorimagescale,m.anchorimagescale,100),ub=c(G.anchorimagealpha,m.anchorimagealpha,100),C=void 0===Q?0!==t:!!Q,la=Boolean(b(G.anchorshadow,db,0)),N=this.pointHoverOptions(G,
f,{plotType:"anchor",anchorBgColor:wa,anchorAlpha:K,anchorBgAlpha:ca,anchorAngle:Ta,anchorBorderThickness:ua,anchorBorderColor:pa,anchorBorderAlpha:K,anchorSides:H,anchorRadius:J,imageUrl:M,imageScale:Va,imageAlpha:ub,shadow:q}),f.data.push(h(this.getPointStub(G,A,n,g),{y:A,color:{FCcolor:{color:V,alpha:t}},shadow:q,dashStyle:r,valuePosition:c(G.valueposition,d.valuePosition),marker:{enabled:!!C,shadow:la&&{opacity:K/100},fillColor:{FCcolor:{color:wa,alpha:ca*K/100+a}},lineColor:{FCcolor:{color:pa,
alpha:K}},lineWidth:ua,radius:J,startAngle:Ta,symbol:Fa(H),imageUrl:M,imageScale:Va,imageAlpha:ub},tooltipConstraint:this.tooltipConstraint,hoverEffects:N.enabled&&N.options,rolloverProperties:N.enabled&&N.rolloverOptions})),this.pointValueWatcher(g,A));jb.catCount=L;return f},defaultZeroPlaneHighlighted:!1},fb);ha("area2dbase",{defaultSeriesType:"area",hasVDivLine:!0,parseAnchorVisibility:function(a,d,e){var h=b(a.drawanchors,d.drawanchors,d.showanchors);return U(h)?h:U(c(a.anchorsides,d.anchorsides,
a.anchorstartangle,d.anchorstartangle,a.anchorradius,d.anchorradius,a.anchorbordercolor,d.anchorbordercolor,a.anchorborderthickness,d.anchorborderthickness,a.anchorbgcolor,d.anchorbgcolor,a.anchoralpha,d.anchoralpha,a.anchorbgalpha,d.anchorbgalpha,a.anchorshadow,d.anchorshadow))||e},point:function(d,f,m,A,g){d=g.chart;var D=m.length,n=g.xAxis,G=g[e],r=G.axisGridManager,G=G.x,q=g[e].numberFormatter,u=this.colorManager,v=0,V,t,Z,F,Q,ba,B,C,ua,pa,J,wa,K,ca,Ta,db,la,Ha,Aa,Ga,N,L,ab,jb,O,M,Va,ub,Pa;Q=
c(A.plotfillcolor,A.areabgcolor,l(A.palettecolors)?u.getPlotColor(0):u.getColor("plotFillColor")).split(/\s*\,\s*/)[0];N=xa+(b(A.useplotgradientcolor,1)?H(A.plotgradientcolor,u.getColor("plotGradientColor")):a);ba=c(A.plotfillalpha,A.areaalpha,this.isStacked?Ra:"90");B=b(A.plotfillangle,270);C=c(A.plotbordercolor,A.areabordercolor,l(A.palettecolors)?u.getPlotColor(0):u.getColor("plotBorderColor")).split(/\s*\,\s*/)[0];ua=A.showplotborder==Sa?Sa:c(A.plotborderalpha,A.plotfillalpha,A.areaalpha,Ra);
V=b(A.plotborderangle,270);t=Boolean(b(A.plotborderdashed,0));Z=b(A.plotborderdashlen,5);K=b(A.plotborderdashgap,4);la=b(A.plotborderthickness,A.areaborderthickness,1);L=f.fillColor={FCcolor:{color:Q+N.replace(/,+?$/,""),alpha:ba,ratio:vb,angle:B}};f.lineWidth=la;f.dashStyle=t?k(Z,K,la):"none";f.lineColor={FCcolor:{color:C,alpha:ua,ratio:Ra,angle:V}};f.step=c(this.stepLine,f.step);f.drawVerticalJoins=Boolean(b(f.drawVerticalJoins,A.drawverticaljoins,1));f.useForwardSteps=Boolean(b(f.useForwardSteps,
A.useforwardsteps,1));la=Boolean(b(A.drawanchors,A.showanchors,1));O=Boolean(this.parseAnchorVisibility({},A,0));f.anchorShadow=ab=b(A.anchorshadow,0);for(t=0;t<D;t+=1)K=m[t],K.vline?r.addVline(n,K,v,g):(V=q.getCleanValue(K.value),F=b(K.showlabel,A.showlabels,1),Z=s(p(K.label,K.name)),r.addXaxisCat(n,v,v,F?Z:a,K,{},A),v+=1,F=b(K.anchorsides,A.anchorsides,0),wa=b(K.anchorstartangle,A.anchorstartangle,90),pa=b(K.anchorradius,A.anchorradius,3),J=T(c(K.anchorbordercolor,A.anchorbordercolor,C)),Ha=b(K.anchorborderthickness,
A.anchorborderthickness,1),ca=T(c(K.anchorbgcolor,A.anchorbgcolor,u.getColor("anchorBgColor"))),Ta=c(K.anchoralpha,A.anchoralpha,this.anchorAlpha,O?Ra:0),db=c(K.anchorbgalpha,A.anchorbgalpha,Ta),jb=Boolean(b(K.anchorshadow,ab,0)),Aa=l(K.color),Ga=b(K.alpha),Aa=void 0!==Aa||void 0!==Ga?{FCcolor:{color:Aa?T(Aa)+N:Q,alpha:void 0===Ga?da(Ga)+a:ba,ratio:vb,angle:B}}:L,M=c(K.anchorimageurl,A.anchorimageurl),Va=c(K.anchorimagescale,A.anchorimagescale,100),ub=c(K.anchorimagealpha,A.anchorimagealpha,100),
Ga={opacity:W(Ga,ua)/100,inverted:!0},Pa=this.pointHoverOptions(K,f,{plotType:"anchor",anchorBgColor:ca,anchorAlpha:Ta,anchorBgAlpha:db,anchorAngle:wa,anchorBorderThickness:Ha,anchorBorderColor:J,anchorBorderAlpha:Ta,anchorSides:F,anchorRadius:pa,imageUrl:M,imageScale:Va,imageAlpha:ub,shadow:Ga}),f.data.push(h(this.getPointStub(K,V,Z,g),{y:V,shadow:Ga,color:Aa,valuePosition:c(K.valueposition,d.valuePosition),marker:{enabled:la,shadow:jb&&{opacity:Ta/100},fillColor:{FCcolor:{color:ca,alpha:db*Ta/100+
a}},lineColor:{FCcolor:{color:J,alpha:Ta}},lineWidth:Ha,radius:pa,symbol:Fa(F),startAngle:wa,imageUrl:M,imageScale:Va,imageAlpha:ub},tooltipConstraint:this.tooltipConstraint,previousY:this.pointValueWatcher(g,V),hoverEffects:Pa.enabled&&Pa.options,rolloverProperties:Pa.enabled&&Pa.rolloverOptions})));G.catCount=v;return f}},fb);ha("mscolumn2dbase",{point:function(d,h,k,f,g,m,A,D,n){d=b(f.ignoreemptydatasets,0);var G=!1,r=k.data||[],p=g[e],s=c(h.type,this.defaultSeriesType),q=c(h.isStacked,g.plotOptions[s]&&
g.plotOptions[s].stacking),u=c(this.isValueAbs,p.isValueAbs,!1),v=b(h.yAxis,0),V=g[e].numberFormatter,t=this.colorManager,Z=t.getPlotColor(),F,Q=g._FCconf.isBar,ba=h.hoverEffects;q||(h.columnPosition=b(n,D,A));h.name=l(k.seriesname);if(0===b(k.includeinlegend)||void 0===h.name)h.showInLegend=!1;h.color=c(k.color,Z).split(xa)[0].replace(/^#?/g,"#");A=/3d$/.test(g.chart.defaultSeriesType);n=c(360-f.plotfillangle,Q?180:90);0>F&&(n=360-n);k=h._dataParser=Bb.column(g,{seriesname:h.name,plottooltext:k.plottooltext,
color:c(k.color,Z),alpha:c(k.alpha,f.plotfillalpha,Ra),plotgradientcolor:b(f.useplotgradientcolor,1)?H(f.plotgradientcolor,t.getColor("plotGradientColor")):a,ratio:c(k.ratio,f.plotfillratio),fillAangle:n,isRoundEdges:g.chart.useRoundEdges,plotBorderColor:c(f.plotbordercolor,A?Eb:t.getColor("plotBorderColor")).split(xa)[0],plotBorderAlpha:f.showplotborder==Sa||A&&f.showplotborder!=Ia?Sa:c(f.plotborderalpha,k.alpha,f.plotfillalpha,Ra),isBar:this.isBar,is3d:A,dashed:b(k.dashed,f.plotborderdashed,0),
dashLen:b(k.dashlen,f.plotborderdashlen,5),dashGap:b(k.dashgap,f.plotborderdashgap,4),borderWidth:b(f.plotborderthickness,Ia),showValues:b(k.showvalues,p.showValues),yAxis:v,use3DLighting:b(f.use3dlighting,1),_sourceDataset:k,hoverEffects:ba},this);for(f=0;f<m;f+=1)(p=r[f])?(F=V.getCleanValue(p.value,u),null===F?h.data.push({y:null}):(G=!0,p=k(p,f,F),h.data.push(p),p.previousY=this.pointValueWatcher(g,F,v,q,f,D,s))):h.data.push({y:null});!d||G||this.realtimeEnabled||(h.showInLegend=!1);return h},
defaultSeriesType:"column"},Xa);ha("mslinebase",{hasVDivLine:!0,point:function(d,h,k,f,g,m){d=b(f.ignoreemptydatasets,0);var A=!1,D=this.colorManager,n,G;n=g.chart;var r=k.data||[];G=g[e];var p=c(h.type,this.defaultSeriesType),s=c(h.isStacked,g.plotOptions[p]&&g.plotOptions[p].stacking),q=c(this.isValueAbs,G.isValueAbs,!1),u=b(h.yAxis,0),v=this.numberFormatter,V=T(c(k.color,f.linecolor,D.getPlotColor())),t=b(k.alpha,f.linealpha,Ra),Z=b(f.showshadow,this.defaultPlotShadow,1),F=b(k.drawanchors,k.showanchors,
f.drawanchors,f.showanchors),Q=b(k.anchorsides,f.anchorsides,0),ba=b(k.anchorstartangle,f.anchorstartangle,90),B=b(k.anchorradius,f.anchorradius,3),C=T(c(k.anchorbordercolor,f.anchorbordercolor,V)),H=b(k.anchorborderthickness,f.anchorborderthickness,1),D=T(c(k.anchorbgcolor,f.anchorbgcolor,D.getColor("anchorBgColor"))),ua=c(k.anchoralpha,f.anchoralpha,Ra),K=c(k.anchorbgalpha,f.anchorbgalpha,ua),pa=ua&&c(k.anchorshadow,f.anchorshadow,0),J=h.hoverEffects;h.name=l(k.seriesname);if(0===b(k.includeinlegend)||
void 0===h.name||0===t&&1!==F)h.showInLegend=!1;h.marker={enabled:Boolean(b(F,1)),fillColor:{FCcolor:{color:D,alpha:K*ua/100+a}},lineColor:{FCcolor:{color:C,alpha:ua+a}},lineWidth:H,radius:B,symbol:Fa(Q),startAngle:ba};h.color={FCcolor:{color:V,alpha:t}};h.shadow=Z?{opacity:Z?t/100:0}:!1;h.anchorShadow=pa;h.step=c(this.stepLine,h.step);h.drawVerticalJoins=Boolean(b(h.drawVerticalJoins,f.drawverticaljoins,1));h.useForwardSteps=Boolean(b(h.useForwardSteps,f.useforwardsteps,1));h.lineWidth=b(k.linethickness,
f.linethickness,2);n=h._dataParser=Bb.line(g,{seriesname:h.name,plottooltext:k.plottooltext,lineAlpha:t,anchorAlpha:ua,showValues:b(k.showvalues,G.showValues),yAxis:u,lineDashed:Boolean(b(k.dashed,f.linedashed,0)),lineDashLen:b(k.linedashlen,f.linedashlen,5),lineDashGap:b(k.linedashgap,f.linedashgap,4),lineThickness:h.lineWidth,lineColor:V,valuePosition:c(k.valueposition,n.valuePosition),drawAnchors:F,anchorBgColor:D,anchorBgAlpha:K,anchorBorderColor:C,anchorBorderThickness:H,anchorRadius:B,anchorSides:Q,
anchorAngle:ba,anchorShadow:h.anchorShadow,anchorStartAngle:b(k.anchorstartangle,f.anchorstartangle),_sourceDataset:k,hoverEffects:J,imageUrl:c(k.anchorimageurl,f.anchorimageurl),imageScale:c(k.anchorimagescale,f.anchorimagescale,100),imageAlpha:c(k.anchorimagealpha,f.anchorimagealpha,100)},this);for(f=0;f<m;f+=1)(G=r[f])?(k=v.getCleanValue(G.value,q),null===k?h.data.push({y:null}):(A=!0,G=n(G,f,k),h.data.push(G),G.previousY=this.pointValueWatcher(g,k,u,s,f,0,p))):h.data.push({y:null});!d||A||this.realtimeEnabled||
(h.showInLegend=!1);return h},defaultSeriesType:"line",defaultPlotShadow:1,defaultZeroPlaneHighlighted:!1},Xa);ha("msareabase",{hasVDivLine:!0,point:function(d,h,f,l,g,m){d=b(l.ignoreemptydatasets,0);var A=!1,D=g.chart,n=f.data||[],G=g[e],r=c(h.type,this.defaultSeriesType),p=c(h.isStacked,g.plotOptions[r]&&g.plotOptions[r].stacking),s=c(this.isValueAbs,G.isValueAbs,!1),q=b(h.yAxis,0),u=g[e].numberFormatter,v=this.colorManager,V=v.getPlotColor(),t=c(f.color,l.plotfillcolor,V).split(xa)[0].replace(/^#?/g,
"#").split(xa)[0],Z=c(f.alpha,l.plotfillalpha,l.areaalpha,this.areaAlpha,70),F=b(l.plotfillangle,270),V=c(f.plotbordercolor,l.plotbordercolor,l.areabordercolor,this.isRadar?V:"666666").split(xa)[0],Q=c(f.showplotborder,l.showplotborder)==Sa?Sa:c(f.plotborderalpha,l.plotborderalpha,f.alpha,l.plotfillalpha,l.areaalpha,"95"),ba=b(l.plotborderangle,270),B=b(f.anchorsides,l.anchorsides,0),C=b(f.anchorstartangle,l.anchorstartangle,90),ua=b(f.anchorradius,l.anchorradius,3),K=T(c(f.anchorbordercolor,l.anchorbordercolor,
t)),pa=b(f.anchorborderthickness,l.anchorborderthickness,1),J=T(c(f.anchorbgcolor,l.anchorbgcolor,v.getColor("anchorBgColor"))),wa=Boolean(ha.area2dbase.parseAnchorVisibility(f,l,0)),wa=b(f.anchoralpha,l.anchoralpha,this.anchorAlpha,wa?Ra:0),ca=b(f.anchorbgalpha,l.anchorbgalpha,wa),Ta=wa&&c(f.anchorshadow,l.anchorshadow,0),db=h.hoverEffects;this.isRadar||(t+=xa+(b(l.useplotgradientcolor,1)?H(l.plotgradientcolor,v.getColor("plotGradientColor")):a),t=t.replace(/,+?$/,""));h.step=c(this.stepLine,h.step);
h.drawVerticalJoins=Boolean(b(h.drawVerticalJoins,l.drawverticaljoins,1));h.useForwardSteps=Boolean(b(h.useForwardSteps,l.useforwardsteps,1));h.name=c(f.seriesname);if(0===b(f.includeinlegend)||void 0===h.name)h.showInLegend=!1;h.fillColor={FCcolor:{color:t,alpha:Z,ratio:vb,angle:F}};h.color=t;h.shadow={opacity:b(l.showshadow,1)?Q/100:0};h.anchorShadow=Ta;h.lineColor={FCcolor:{color:V,alpha:Q,ratio:Ra,angle:ba}};h.lineWidth=c(f.plotborderthickness,l.plotborderthickness,1);h.dashStyle=Boolean(b(f.dashed,
l.plotborderdashed,0))?k(b(f.dashlen,l.plotborderdashlen,5),b(f.dashgap,l.plotborderdashgap,4),h.lineWidth):"none";h.marker={fillColor:{FCcolor:{color:J,alpha:ca*wa/100+a}},lineColor:{FCcolor:{color:K,alpha:wa+a}},lineWidth:pa,radius:ua,symbol:Fa(B),startAngle:C};f=h._dataParser=Bb.area(g,{seriesname:h.name,plottooltext:f.plottooltext,lineAlpha:Q,anchorAlpha:wa,showValues:b(f.showvalues,G.showValues),yAxis:q,fillColor:t,fillAlpha:Z,valuePosition:c(f.valueposition,D.valuePosition),drawAnchors:Boolean(b(f.drawanchors,
l.drawanchors,l.showanchors,1)),anchorBgColor:J,anchorBgAlpha:ca,anchorBorderColor:K,anchorBorderThickness:pa,anchorRadius:ua,anchorSides:B,anchorAngle:C,anchorShadow:h.anchorShadow,getLink:this.linkClickFN,anchorStartAngle:b(f.anchorstartangle,l.anchorstartangle),_sourceDataset:f,hoverEffects:db,imageUrl:c(f.anchorimageurl,l.anchorimageurl),imageScale:c(f.anchorimagescale,l.anchorimagescale,100),imageAlpha:c(f.anchorimagealpha,l.anchorimagealpha,100)},this);for(D=0;D<m;D+=1)(G=n[D])?(l=G?u.getCleanValue(G.value,
s):null,null===l?h.data.push({y:null}):(A=!0,G=f(G,D,l),h.data.push(G),G.previousY=this.pointValueWatcher(g,l,q,p,D,0,r))):h.data.push({y:null});!d||A||this.realtimeEnabled||(h.showInLegend=!1);return h},defaultSeriesType:"area",defaultPlotShadow:0},Xa);ha("scatterbase",{showValues:0,defaultPlotShadow:0,rendererId:"cartesian",defaultSeriesType:"scatter",canvasPaddingModifiers:["anchorlabel"],point:function(d,h,f,m,g,A,D){d=b(m.ignoreemptydatasets,0);var n=this.colorManager,G=n.getPlotColor(),r,p,
s,q,u,v,V,t,Z,F,Q,ba,B,C,H,ua,K,pa,J;A=!1;var wa,ca;u=b(f.drawline,m.drawlines,0);v=b(f.drawprogressioncurve,0);q=f.data||[];var Ta,db,la,Aa,Ha,Ga=b(f.showvalues,g[e].showValues),N=this.numberFormatter,L,ab=h._showRegression=b(f.showregressionline,m.showregressionline,0);h.zIndex=1;h.name=l(f.seriesname);if(0===b(f.includeinlegend)||void 0===h.name)h.showInLegend=!1;if(u||v)s=T(c(f.color,G)),q=c(f.alpha,Ra),u=b(f.linethickness,m.linethickness,2),v=Boolean(b(f.linedashed,f.dashed,m.linedashed,0)),
V=b(f.linedashlen,m.linedashlen,5),t=b(f.linedashgap,m.linedashgap,4),h.color=S(c(f.linecolor,m.linecolor,s),b(f.linealpha,m.linealpha,q)),h.lineWidth=u,h.dashStyle=v?k(V,t,u):"none";u=Boolean(b(f.drawanchors,f.showanchors,m.drawanchors,m.showanchors,1));D=b(f.anchorsides,m.anchorsides,D+3);v=b(f.anchorradius,m.anchorradius,3);s=T(c(f.anchorbordercolor,f.color,m.anchorbordercolor,s,G));G=b(f.anchorborderthickness,m.anchorborderthickness,1);V=T(c(f.anchorbgcolor,m.anchorbgcolor,n.getColor("anchorBgColor")));
t=c(f.anchoralpha,f.alpha,m.anchoralpha,Ra);Q=c(f.anchorbgalpha,f.alpha,m.anchorbgalpha,t);wa=c(f.anchorstartangle,m.anchorstartangle,90);h.anchorShadow=n=b(m.anchorshadow,0);h.marker={fillColor:this.getPointColor(V,Ra),lineColor:{FCcolor:{color:s,alpha:t+a}},lineWidth:G,radius:v,symbol:Fa(D)};q=f.data||[];Ha=q.length;ab&&(h.events={hide:this.hideRLine,show:this.showRLine},Ta={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},Aa=b(f.showyonx,m.showyonx,1),db=T(c(f.regressionlinecolor,
m.regressionlinecolor,s)),la=b(f.regressionlinethickness,m.regressionlinethickness,G),r=da(b(f.regressionlinealpha,m.regressionlinealpha,t)),db=S(db,r));for(p=0;p<Ha;p+=1)(Z=q[p])?(r=N.getCleanValue(Z.y),J=N.getCleanValue(Z.x),null===r?h.data.push({y:null,x:J}):(A=!0,ca=this.getPointStub(Z,r,N.xAxis(J),g,f,Ga),ba=b(Z.anchorsides,D),B=b(Z.anchorradius,v),C=T(c(Z.anchorbordercolor,s)),H=b(Z.anchorborderthickness,G),ua=T(c(Z.anchorbgcolor,V)),K=c(Z.anchoralpha,Z.alpha,t),pa=c(Z.anchorbgalpha,Q),F=Boolean(b(Z.anchorshadow,
n,0)),L=this.pointHoverOptions(Z,h,{plotType:"anchor",anchorBgColor:ua,anchorAlpha:K,anchorBgAlpha:pa,anchorAngle:wa,anchorBorderThickness:H,anchorBorderColor:C,anchorBorderAlpha:K,anchorSides:ba,anchorRadius:B,shadow:void 0}),h.data.push({y:r,x:J,displayValue:ca.displayValue,toolText:ca.toolText,link:ca.link,marker:{enabled:u,shadow:F&&{opacity:K/100},fillColor:{FCcolor:{color:ua,alpha:pa*K/100+a}},lineColor:{FCcolor:{color:C,alpha:K}},lineWidth:H,radius:B,symbol:Fa(ba),startAngle:c(Z.anchorstartangle,
f.anchorstartangle,m.anchorstartangle,90)},hoverEffects:L.enabled&&L.options,rolloverProperties:L.enabled&&L.rolloverOptions}),this.pointValueWatcher(g,r,J,ab&&Ta))):h.data.push({y:null});ab&&(f=this.getRegressionLineSeries(Ta,Aa,Ha),this.pointValueWatcher(g,f[0].y,f[0].x),this.pointValueWatcher(g,f[1].y,f[1].x),g={type:"line",color:db,showInLegend:!1,lineWidth:la,enableMouseTracking:!1,marker:{enabled:!1},data:f,zIndex:0},h=[h,g]);d&&!A&&(h.showInLegend=!1);return h},postSeriesAddition:function(a,
c){for(var d=a.chart,e=c.chart,g=a.series,h=0,f=g.length;h<f;h+=1)g[h]._showRegression&&(g[h].relatedSeries=[h+1]);d.clipBubbles=b(e.clipbubbles,1)},categoryAdder:function(d,h){var f,l=0,g,m=h[e].x,A,D=h.xAxis,n,G,r=d.chart,q=parseInt(r.labelstep,10),v=b(r.showlabels,1),V=c(r.xaxislabelmode,"categories").toLowerCase(),t=this.colorManager,Z=h[e].numberFormatter,F,Q,ba,B,C,H;h._FCconf.isXYPlot=!0;q=1<q?q:1;m.catOccupied={};if("auto"!==V&&d.categories&&d.categories[0]&&d.categories[0].category){G=d.categories[0];
G.font&&(h.xAxis.labels.style.fontFamily=G.font);void 0!==(g=b(G.fontsize))&&(1>g&&(g=1),h.xAxis.labels.style.fontSize=g+Da,u(h.xAxis.labels.style));G.fontcolor&&(h.xAxis.labels.style.color=G.fontcolor.split(xa)[0].replace(/^\#?/,"#"));f=c(G.verticallinecolor,t.getColor("divLineColor"));g=b(G.verticallinethickness,1);A=b(G.verticallinealpha,t.getColor("divLineAlpha"));t=b(G.verticallinedashed,0);F=b(G.verticallinedashlen,4);Q=b(G.verticallinedashgap,2);ba=S(f,A);for(f=0;f<G.category.length;f+=1)B=
G.category[f],A=Z.getCleanValue(B.x),null===A||B.vline||(m.catOccupied[A]=!0,n=b(B.showlabel,B.showname,v),C=b(B.showverticalline,B.showline,B.sl,0),H=b(B.linedashed,t),n=0===n||0!==l%q?a:s(p(B.label,B.name)),D.plotLines.push({isGrid:!0,isCat:!0,isDataLabel:!0,width:C?g:0,color:ba,dashStyle:k(F,Q,g,H),value:A,label:{text:n,link:c(B.link,r.labellink),style:Ba({},B,r,D.labels.style),align:oa,verticalAlign:Ea,textAlign:oa,rotation:0,x:0,y:0}}),this.pointValueWatcher(h,null,A),l+=1);"mixed"===V&&(m.requiredAutoNumericLabels=
b(this.requiredAutoNumericLabels,1))}else m.requiredAutoNumericLabels=b(this.requiredAutoNumericLabels,1);m.adjustMinMax=!0},getPointColor:function(a,b){var c,d;a=T(a);b=da(b);c=ta(a,70);d=sa(a,50);return{FCcolor:{gradientUnits:"objectBoundingBox",cx:.4,cy:.4,r:"100%",color:c+xa+d,alpha:b+xa+b,ratio:vb,radialGradient:!0}}}},ha.xybase);ha("mscombibase",{canvasPaddingModifiers:["anchor","anchorlabel"],series:function(a,d,h){var f,g,k,l,A=a.chart,D,n=[],G=[],r=[],s,q,v=d[e],u=this.isDual,V=0,t;d.legend.enabled=
Boolean(b(a.chart.showlegend,1));if(a.dataset&&0<a.dataset.length){this.categoryAdder(a,d);l=v.oriCatTmp.length;f=0;for(g=a.dataset.length;f<g;f+=1)switch(k=a.dataset[f],s=u&&"s"===c(k.parentyaxis,"p").toLowerCase()?!0:!1,D={hoverEffects:this.parseSeriesHoverOptions(a,d,k,h),visible:!b(k.initiallyhidden,0),legendIndex:f,data:[]},s?(D.yAxis=1,q=p(k.renderas,this.secondarySeriesType),this.secondarySeriesFilter&&(t=this.secondarySeriesFilter[q])):(q=p(k.renderas,this.defaultSeriesType),this.defaultSeriesFilter&&
(t=this.defaultSeriesFilter[q])),q=q.toLowerCase(),q){case "line":case "spline":D.type=!0===t?q:"line";n.push(ha.mslinebase.point.call(this,h,D,k,A,d,l,f));break;case "area":case "splinearea":D.type=!0===t?q:"area";d.chart.series2D3Dshift=!0;r.push(ha.msareabase.point.call(this,h,D,k,A,d,l,f));break;case "column":case "column3d":G.push(ha.mscolumn2dbase.point.call(this,h,D,a.dataset[f],A,d,l,f,void 0,V));V+=1;break;default:s?(D.type="line",n.push(ha.mslinebase.point.call(this,h,D,k,A,d,l,f))):(G.push(ha.mscolumn2dbase.point.call(this,
h,D,a.dataset[f],A,d,l,f,void 0,V)),V+=1)}"0"!==A.areaovercolumns?(d.chart.areaOverColumns=!0,d.series=d.series.concat(G,r,n)):(d.chart.areaOverColumns=!1,d.series=d.series.concat(r,G,n));if(0===G.length&&1!==l)v.hasNoColumn=!0;else if(!this.isStacked)for(h=0,f=G.length;h<f;h+=1)G[h].numColumns=f;this.configureAxis(d,a);a.trendlines&&m(a.trendlines,d.yAxis,d[e],u,this.isBar)}}},ha.mscolumn2dbase)}]);
FusionCharts.register("module",["private","modules.renderer.jpegtopdf",function(){var f=this.window,t=f.btoa,C=f.atob;this.hcLib.JpegToPdf=function(f,d){var a=[],m=0,F=f||500,c=d||500,l,b,p;l=function(b){m+=b.length+1;a.push(b)};this.addImage=function(a){a=/base64,(.+?)$/g.exec(a);p=C(a[1])};b=function(){var b=[],d,e;l("%PDF-1.7");b[1]=m;l("1 0 obj");l("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]");l("endobj");b[4]=m;l("4 0 obj");l("<< /Length 36>>");l("stream");l("q "+c+" 0 0 "+F+" 0 0 cm /Im3 Do Q");
l("endstream");l("endobj");b[5]=m;l("5 0 obj");l("<</Type /Page /Parent 2 0 R /MediaBox [0 0 "+c+" "+F+"] /Contents [4 0 R ] /Resources <</ProcSet 1 0 R /Font <<>> /XObject <</Im3 3 0 R >> >> >>");l("endobj");b[3]=m;l("3 0 obj");l("<</Type /XObject /Subtype /Image /Width "+c+" /Height "+F+" /ColorSpace /DeviceRGB /BitsPerComponent 8 /Filter /DCTDecode /Length "+p.length+">>");l("stream");l(p);l("endstream");l("endobj");b[2]=m;l("2 0 obj");l("<</Type /Pages /Kids [5 0 R ] /Count 1>>");l("endobj");
b[6]=m;l("6 0 obj");l("<</Type /Catalog /Pages 2 0 R >>");l("endobj");d=m;l("xref");l("0 7");l("0000000000 65535 f ");for(e=1;6>=e;e++)l(("0000000000"+b[e]).slice(-10)+" 00000 n ");l("trailer");l("<</Size 7 /Root 6 0 R >>");l("startxref");l(d);l("%%EOF");return a.join("\n")};this.getDataUrl=function(){return"data:application/pdf;base64,"+t(b())}}}]);
(function(){var f=window,t=f.document,C={},q={};f.SvgDeCanvo=function(d,a,f){var q={svg:"",context:"",callBack:"",imageArr:[]};if(!(this instanceof SvgDeCanvo))throw"This function should be used as class";this._getStore=function(a){return"undefined"!=typeof q[a]?q[a]:!1};this._setStore=function(a,d){"undefined"!=typeof q[a]&&(q[a]=d)};d&&this.setSVG(d);a&&this.setContext(a);f&&this.setCallback(f);this.drawOnCanvas()};SvgDeCanvo.prototype.setContext=function(d){var a;if(d.getContext&&d.getContext("2d"))a=
d.getContext("2d"),a.save(),a.fillStyle="#ffffff",a.fillRect(0,0,d.width,d.height),a.restore(),this._setStore("context",a);else throw"Please provide valid canvas";};SvgDeCanvo.prototype.getContext=function(){return this._getStore("context")};SvgDeCanvo.prototype.setSVG=function(d){if("undefined"!=typeof d.documentElement)this._setStore("svg",d);else if("<"==d.substr(0,1))d=q.StrToDom(d),this._setStore("svg",d);else throw"Please provide valid SVG";};SvgDeCanvo.prototype.getSVG=function(){return this._getStore("svg")};
SvgDeCanvo.prototype.setCallback=function(d){"function"===typeof d&&this._setStore("callBack",d)};SvgDeCanvo.prototype.getCallback=function(){return this._getStore("callBack")};SvgDeCanvo.prototype.drawOnCanvas=function(d,a,f){d&&this.setSVG(d);a&&this.setContext(a);f&&this.setCallback(f);f=this.getCallback();d=this.getContext();(a=this.getSVG())&&d&&(q.storeImagesInArr(this),q.drawNodes([a],[],this,d,f))};C.common=function(d,a,f,t,c){var l=d.childNodes,b=function(){d.attributes&&t.restore();c&&c()};
for(i in a)a.hasOwnProperty(i)&&"class"!=a[i].name&&"id"!=a[i].name&&"transform"!=a[i].name&&"clip-path"!=a[i].name&&"object"==typeof a[i]&&d.attributes&&!d.attributes[a[i].name]&&d.setAttribute([a[i].name],a[i].value);if(d.attributes&&d.attributes.style)for(i in styleArr=d.attributes.style.value.replace(/;$/,"").split(";"),styleArr)if(styleArr.hasOwnProperty(i)&&(styleName=styleArr[i].split(":")[0].trim(),!d.attributes[styleName]||"undefined"==d.attributes[styleName].value))try{d.setAttribute(styleName,
styleArr[i].split(":")[1].trim())}catch(p){}d.attributes&&(t.save(),d.attributes.transform&&q.startTransform(d.attributes.transform.value,t),d.attributes["clip-path"]&&q.applyClip(d.attributes["clip-path"].value,t,f));if(0==l.length||1==l.length&&!l[0].tagName)if("undefined"!==typeof d.tagName)if(a="draw"+d.tagName,C[a])if(d.attributes.display&&"none"==d.attributes.display.value)b();else C[a](d,t,f,"draw",b);else b();else b();else q.drawNodes(l,"svg"==d.tagName?[]:d.attributes,f,t,b)};C.drawtext=
function(d,a,f,q,c){this.drawtspan(d,a,f,q,c)};C.drawtspan=function(d,a,m,F,c){var l=d.innerHTML||d.textContent,b=d.attributes.x?d.attributes.x.value:0,p=d.attributes.y?d.attributes.y.value:0,C=d.attributes.dx?d.attributes.dx.value:0,s=d.attributes.dy?d.attributes.dy.value:0,e="serief",h="normal",k="16px",v=[],K;t.getElementsByTagName("body")[0]&&(K=f.getComputedStyle(t.getElementsByTagName("body")[0],null),K.getPropertyValue("font-family")&&(e=K.getPropertyValue("font-family")),K.getPropertyValue("font-weight")&&
(h=K.getPropertyValue("font-weight")),K.getPropertyValue("font-size")&&(k=K.getPropertyValue("font-size")));e=d.attributes["font-family"]?d.attributes["font-family"].value:e;h=d.attributes["font-weight"]?d.attributes["font-weight"].value:h;K=d.attributes["text-anchor"]?d.attributes["text-anchor"].value:"start";k=d.attributes["font-size"]?d.attributes["font-size"].value:k;b=Number(b)+Number(C);p=Number(p)+Number(s);l=l.trim();K="middle"==K?"center":K;a.save();a.font=h+" "+k+" "+e;a.textAlign=K;if("draw"===
F){if(!d.attributes.fill||d.attributes.fill&&"none"!=d.attributes.fill.value)q.applyFillEffect(d,a,m,v),a.fillText(l,b,p),q.endFillEffect(d,a);if(!d.attributes.stroke||d.attributes.stroke&&"none"!=d.attributes.stroke.value)q.applyStrokeEffect(d,a,m,v),a.strokeText(l,b,p),q.endStrokeEffect(d,a)}a.restore();"function"===typeof c&&c()};C.drawcircle=function(d,a,f,t,c){var l=Number(d.attributes.cx.value),b=Number(d.attributes.cy.value),p=Number(d.attributes.r.value),C=[];a.beginPath();a.arc(l,b,p,0,2*
Math.PI);q.bBoxFromPoint([l,1*l+1*p,1*l-1*p],[b,1*b+1*p,1*b-1*p],C);if("draw"===t){if(!d.attributes.fill||d.attributes.fill&&"none"!=d.attributes.fill.value)q.applyFillEffect(d,a,f,C),a.fill(),q.endFillEffect(d,a);if(!d.attributes.stroke||d.attributes.stroke&&"none"!=d.attributes.stroke.value)q.applyStrokeEffect(d,a,f,C),a.stroke(),q.endStrokeEffect(d,a)}a.closePath();"function"===typeof c&&c()};C.drawrect=function(d,a,f,t,c){var l=Number(d.attributes.x.value),b=Number(d.attributes.y.value),p=d.attributes.rx?
Number(d.attributes.rx.value):0,C=d.attributes.ry?Number(d.attributes.ry.value):0,s=Number(d.attributes.height.value),e=Number(d.attributes.width.value),h=[];q.bBoxFromPoint([l,l+e],[b,b+s],h);a.beginPath();a.moveTo(l+p,b);a.lineTo(l+e-p,b);a.quadraticCurveTo(l+e,b,l+e,b+C);a.lineTo(l+e,b+s-C);a.quadraticCurveTo(l+e,b+s,l+e-p,b+s);a.lineTo(l+p,b+s);a.quadraticCurveTo(l,b+s,l,b+s-C);a.lineTo(l,b+C);a.quadraticCurveTo(l,b,l+p,b);if("draw"===t){if(!d.attributes.fill||d.attributes.fill&&"none"!=d.attributes.fill.value)q.applyFillEffect(d,
a,f,h),a.fill(),q.endFillEffect(d,a);if(!d.attributes.stroke||d.attributes.stroke&&"none"!=d.attributes.stroke.value)q.applyStrokeEffect(d,a,f,h),a.stroke(),q.endStrokeEffect(d,a)}a.closePath();"function"===typeof c&&c()};C.drawellipse=function(d,a,f,t,c){var l=Number(d.attributes.cx.value),b=Number(d.attributes.cy.value),p=Number(d.attributes.rx.value),C=Number(d.attributes.ry.value),s=.5522848*p,e=.5522848*C,h=l+p,k=b+C,v=[];a.beginPath();a.moveTo(l-p,b);a.bezierCurveTo(l-p,b-e,l-s,b-C,l,b-C);a.bezierCurveTo(l+
s,b-C,h,b-e,h,b);a.bezierCurveTo(h,b+e,l+s,k,l,k);a.bezierCurveTo(l-s,k,l-p,b+e,l-p,b);q.bBoxFromPoint([l+p,l-p],[b+C,b-C],v);if("draw"===t){if(!d.attributes.fill||d.attributes.fill&&"none"!=d.attributes.fill.value)q.applyFillEffect(d,a,f,v),a.fill(),q.endFillEffect(d,a);if(!d.attributes.stroke||d.attributes.stroke&&"none"!=d.attributes.stroke.value)q.applyStrokeEffect(d,a,f,v),a.stroke(),q.endStrokeEffect(d,a)}a.closePath();"function"===typeof c&&c()};C.drawimage=function(d,a,f,q,c){var l=d.attributes.x?
Number(d.attributes.x.value):0,b=d.attributes.y?Number(d.attributes.y.value):0,p=d.attributes.height?Number(d.attributes.height.value):0,t=d.attributes.width?Number(d.attributes.width.value):0,s,e=f._getStore("imageArr");a.save();d.attributes.opacity&&(a.globalAlpha=d.attributes.opacity.value);d.attributes["xlink:href"]?(s=d.attributes["xlink:href"].value,"complete"===e[s].status?(a.drawImage(e[s].obj,l,b,t,p),a.globalAlpha=1,a.restore(),"function"===typeof c&&c()):"error"===e[s].status?(a.globalAlpha=
1,a.restore(),"function"===typeof c&&c()):"progress"===e[s].status?(e[s].callback=function(){a.drawImage(e[s].obj,l,b,t,p);a.globalAlpha=1;a.restore();"function"===typeof c&&c()},e[s].errCallback=function(){a.globalAlpha=1;a.restore();"function"===typeof c&&c()}):(a.globalAlpha=1,a.restore(),"function"===typeof c&&c())):(a.globalAlpha=1,a.restore(),"function"===typeof c&&c())};C.drawpath=function(d,a,f,t,c){var l=d.attributes.d.value.match(/[a-z][^a-z"]*/ig),b=[],p,C,s,e=0,h=0,k;a.beginPath();for(p in l)if(l.hasOwnProperty(p))switch(C=
l[p].substring(0,1),s=q.getArgsAsArray(l[p].substring(1,l[p].length)),C){case "M":e=Number(s[0]);h=Number(s[1]);a.moveTo(e,h);break;case "m":e+=Number(s[0]);h+=Number(s[1]);a.moveTo(e,h);break;case "L":for(k=0;s[k];k+=2)q.bBoxFromPoint([e,s[k]],[h,s[k+1]],b),e=Number(s[k]),h=Number(s[k+1]),a.lineTo(e,h);break;case "l":for(k=0;s[k];k+=2)q.bBoxFromPoint([e,1*e+1*s[k]],[h,1*h+1*s[k+1]],b),e+=Number(s[k]),h+=Number(s[k+1]),a.lineTo(e,h);break;case "V":for(k=0;s[k];k+=1)q.bBoxFromPoint([e],[h,s[k]],b),
h=Number(s[k]),a.lineTo(e,h);break;case "v":for(k=0;s[k];k+=1)q.bBoxFromPoint([e],[h,1*h+1*s[k]],b),h+=Number(s[k]),a.lineTo(e,h);break;case "H":for(k=0;s[k];k+=1)q.bBoxFromPoint([e,s[k]],[h],b),e=Number(s[k]),a.lineTo(e,h);break;case "h":for(k=0;s[k];k+=1)q.bBoxFromPoint([e,1*e+1*s[k]],[h],b),e+=Number(s[k]),a.lineTo(e,h);break;case "Q":for(k=0;s[k];k+=4)q.qBezierBBox(e,h,s[k],s[k+1],s[k+2],s[k+3],b),a.quadraticCurveTo(Number(s[k]),Number(s[k+1]),Number(s[k+2]),Number(s[k+3])),e=Number(s[k+2]),h=
Number(s[k+3]);break;case "q":for(k=0;s[k];k+=4)q.qBezierBBox(e,h,e+1*s[k],h+1*s[k+1],1*e+1*s[k+2],1*h+1*s[k+3],b),a.quadraticCurveTo(e+1*s[k],h+1*s[k+1],e+=Number(s[k+2]),h+=Number(s[k+3]));break;case "C":for(k=0;s[k];k+=6)q.cBezierBBox(e,h,s[k],s[k+1],s[k+2],s[k+3],s[k+4],s[k+5],b),a.bezierCurveTo(s[k],s[k+1],s[k+2],s[k+3],s[k+4],s[k+5]),e=Number(s[k+4]),h=Number(s[k+5]);break;case "c":for(k=0;s[k];k+=6)q.cBezierBBox(e,h,e+1*s[k],1*h+1*s[k+1],e+1*s[k+2],1*h+1*s[k+3],e+1*s[k+4],1*h+1*s[k+5],b),a.bezierCurveTo(e+
Number(s[k]),h+Number(s[k+1]),e+Number(s[k+2]),h+Number(s[k+3]),e+=Number(s[k+4]),h+=Number(s[k+5]));break;case "a":case "A":for(k=0;s[k];k+=7){var v=Number(s[k]),K=Number(s[k+1]),J,n,N,B,U,r,ga,X,aa,W,ya,va,za,ja;J=Math.PI/180*Number(s[k+2]);n=Number(s[k+3]);N=Number(s[k+4]);B=Number(s[k+5]);U=Number(s[k+6]);r=Math.cos(J)*(e-B)/2+Math.sin(J)*(h-U)/2;ga=-Math.sin(J)*(e-B)/2+Math.cos(J)*(h-U)/2;v=0>v?-v:v;K=0>K?-K:K;va=Math.pow(r,2)/Math.pow(v,2)+Math.pow(ga,2)/Math.pow(K,2);1<va&&(v*=Math.sqrt(va),
K*=Math.sqrt(va));va=v>K?v:K;za=v>K?1:v/K;ja=v>K?K/v:1;n=(n==N?-1:1)*Math.sqrt((Math.pow(v,2)*Math.pow(K,2)-Math.pow(v,2)*Math.pow(ga,2)-Math.pow(K,2)*Math.pow(r,2))/(Math.pow(v,2)*Math.pow(ga,2)+Math.pow(K,2)*Math.pow(r,2)));isNaN(n)&&(n=0);X=n*v*ga/K;aa=-n*K*r/v;W=X*Math.cos(J)-aa*Math.sin(J)+(e+B)/2;ya=X*Math.sin(J)+aa*Math.cos(J)+(h+U)/2;n=q.angleBetweenVectors(1,0,(r-X)/v,(ga-aa)/K);r=q.angleBetweenVectors((r-X)/v,(ga-aa)/K,(-r-X)/v,(-ga-aa)/K);0==N&&0<r&&(r-=Math.PI/180*360);1==N&&0>r&&(r+=
Math.PI/180*360);if(0==v&&0==K){a.lineTo(B,U);break}a.save();v=q.combineTransformMatrix([[1,0,W,0,1,ya],[Math.cos(J),Math.sin(J),0,Math.sin(J),Math.cos(J),0],[za,0,0,0,ja,0]]);a.transform(v[0],v[3],v[1],v[4],v[2],v[5]);a.arc(0,0,va,n,n+r,1-N);a.restore();q.arcBBox(0,0,va,n,n+r,1-N,[v[0],v[3],v[1],v[4],v[2],v[5]],b);"A"==C?(e=Number(s[k+5]),h=Number(s[k+6])):(e+=Number(s[k+5]),h+=Number(s[k+6]))}break;case "Z":case "z":a.closePath()}if("draw"===t){if(!d.attributes.fill||d.attributes.fill&&"none"!=
d.attributes.fill.value)q.applyFillEffect(d,a,f,b),a.fill(),q.endFillEffect(d,a);if(!d.attributes.stroke||d.attributes.stroke&&"none"!=d.attributes.stroke.value)q.applyStrokeEffect(d,a,f,b),a.stroke(),q.endStrokeEffect(d,a);c()}};q.drawNodes=function(d,a,f,q,c){var l=d.length,b=-1,p=0,t=0,s=function(){var e;b+=1;b<l?(e=d[b],e.tagName&&"defs"===e.tagName&&(b+=1,e=d[b]),e.attributes&&(e.attributes.dy&&(t=e.attributes.dy.value=1*e.attributes.dy.value+1*t),e.attributes.dx&&(p=e.attributes.dx.value=1*
e.attributes.dx.value+1*p)),C.common(e,a,f,q,s)):c&&c()};s()};q.storeImagesInArr=function(d){var a=d.getSVG(),f,q;f=d._getStore("imageArr");d=a.getElementsByTagName("image");for(q in d)d.hasOwnProperty(q)&&d[q].attributes&&d[q].attributes["xlink:href"]&&(a=d[q].attributes["xlink:href"].value,f[a]||(f[a]=[],f[a].status="progress",f[a].callback=null,f[a].obj=new Image,f[a].obj.onload=function(a){return function(){var d=f[a].callback;d?(f[a].status="complete",d()):f[a].status="complete"}}(a),f[a].obj.onerror=
function(a){return function(){var d=f[a].errCallback;d?(f[a].status="error",d()):f[a].status="error"}}(a),f[a].obj.src=a))};q.startTransform=function(d,a){var f=d.match(/[^\s][a-z,0-9.\-(\s]+\)/gi),t,c;for(c in f)f.hasOwnProperty(c)&&(-1<f[c].indexOf("matrix")&&(t=q.stringToArgs(f[c]),a.transform(t[0],t[1],t[2],t[3],t[4],t[5])),-1<f[c].indexOf("translate")&&(t=q.stringToArgs(f[c]),a.translate(t[0]||0,t[1]||0)),-1<f[c].indexOf("rotate")&&(t=q.stringToArgs(f[c]),3==t.length?(a.translate(t[1],t[2]),
a.rotate(Math.PI/180*t[0]),a.translate(-t[1],-t[2])):a.rotate(Math.PI/180*t[0])),-1<f[c].indexOf("scale")&&(t=q.stringToArgs(f[c]),1==t.length?a.scale(t[0]||1,t[0]||1):a.scale(t[0]||1,t[1]||1)),-1<f[c].indexOf("skewX")&&(t=q.stringToArgs(f[c]),a.transform(1,0,Math.tan(Math.PI/180*t[0]),1,0,0)),-1<f[c].indexOf("skewY")&&(t=q.stringToArgs(f[c]),a.transform(1,Math.tan(Math.PI/180*t[0]),0,1,0,0)))};q.resetTransform=function(d){d.setTransform(1,0,0,1,0,0)};q.stringToArgs=function(d){d=/\(([^\)]+)/.exec(d)[1];
return q.getArgsAsArray(d)};q.getArgsAsArray=function(d){var a;d=d.trim().split(/[\s,]+/);for(a=0;a<d.length;a++)d[a].trim(),0==d[a].length&&d.splice(a,1);return d};q.applyFillEffect=function(d,a,f,t){a.globalAlpha=d.attributes["fill-opacity"]&&"none"!=d.attributes["fill-opacity"].value?d.attributes["fill-opacity"].value:1;d.attributes.fill&&-1<d.attributes.fill.value.indexOf("url(")?(d=q.getFillStyleById(/url\(.*#([^\)'"]+)/.exec(d.attributes.fill.value)[1],a,f,t),a.fillStyle=d):a.fillStyle=d.attributes.fill?
d.attributes.fill.value:"#000000"};q.endFillEffect=function(d,a){a.globalAlpha=1};q.applyStrokeEffect=function(d,a,f,t){d.attributes["stroke-opacity"]&&"none"!=d.attributes["stroke-opacity"].value&&(a.globalAlpha=d.attributes["stroke-opacity"].value);d.attributes["stroke-width"]&&(a.lineWidth=d.attributes["stroke-width"].value,0==d.attributes["stroke-width"].value&&(a.globalAlpha=0));d.attributes["stroke-linecap"]&&"none"!=d.attributes["stroke-linecap"].value&&(a.lineCap=d.attributes["stroke-linecap"].value);
d.attributes["stroke-linejoin"]&&"none"!=d.attributes["stroke-linejoin"].value&&(a.lineJoin=d.attributes["stroke-linejoin"].value);d.attributes["stroke-dasharray"]&&"none"!=d.attributes["stroke-dasharray"].value&&a.setLineDash&&a.setLineDash(q.getArgsAsArray(d.attributes["stroke-dasharray"].value));a.strokeStyle=d.attributes.stroke?d.attributes.stroke.value:"#000000"};q.endStrokeEffect=function(d,a){d.attributes["stroke-opacity"]&&"none"!=d.attributes["stroke-opacity"].value&&(a.globalAlpha=1,a.setLineDash&&
a.setLineDash([]),a.lineWidth=1);a.globalAlpha=1};q.applyClip=function(d,a,f){var q=f.getSVG(),c;if(-1!==d.indexOf("url(")){d=/url\(.*#([^\)'"]+)/.exec(d)[1];q=q.getElementById(d);q=q.childNodes;for(c in q)q.hasOwnProperty(c)&&q[c].tagName&&q[c].constructor!==Array&&(d="draw"+q[c].tagName,C[d]&&(C[d](q[c],a,f,"clip"),a.closePath()));a.clip()}};q.getFillStyleById=function(d,a,f,t){d=f.getSVG().getElementById(d);return"linearGradient"==d.tagName?q.getLinearGradient(d,a,t):"radialGradient"==d.tagName?
q.getRadialGradient(d,a,t):"#FFFFFF"};q.getLinearGradient=function(d,a,f){var t=d.attributes.x1?q.getPercentValue(d.attributes.x1.value,f.xMax-f.xMin,f.xMin):0,c=d.attributes.y1?q.getPercentValue(d.attributes.y1.value,f.yMax-f.yMin,f.yMin):0,l=d.attributes.x2?q.getPercentValue(d.attributes.x2.value,f.xMax-f.xMin,f.xMin):0;f=d.attributes.y2?q.getPercentValue(d.attributes.y2.value,f.yMax-f.yMin,f.yMin):0;var b;linGrad=a.createLinearGradient(t,c,l,f);d=d.childNodes;for(b in d)d.hasOwnProperty(b)&&d[b].attributes&&
d[b].attributes["stop-color"]&&(a=q.toRGB(d[b].attributes["stop-color"].value),t=d[b].attributes["stop-opacity"]?d[b].attributes["stop-opacity"].value:1,a.status?linGrad.addColorStop(q.getPercentValue(d[b].attributes.offset.value,1,0),"rgba("+a.r+","+a.g+","+a.b+","+Number(t)+")"):linGrad.addColorStop(q.getPercentValue(d[b].attributes.offset.value,1,0),d[b].attributes["stop-color"].value));return linGrad};q.getRadialGradient=function(d,a,f){var t=d.attributes.cx?q.getPercentValue(d.attributes.cx.value,
f.xMax-f.xMin,f.xMin):f.xMin+.5*(f.xMax-f.xMin),c=d.attributes.cy?q.getPercentValue(d.attributes.cy.value,f.yMax-f.yMin,f.yMin):f.yMin+.5*(f.yMax-f.yMin),l=d.attributes.fx?q.getPercentValue(d.attributes.fx.value,f.xMax-f.xMin,f.xMin):f.xMin+.5*(f.xMax-f.xMin),b=d.attributes.fy?q.getPercentValue(d.attributes.fy.value,f.yMax-f.yMin,f.yMin):f.yMin+.5*(f.yMax-f.yMin);f=d.attributes.r?q.getPercentValue(d.attributes.r.value,(f.yMax-f.yMin+f.xMax-f.xMin)/2,0):q.getPercentValue("50%",(f.yMax-f.yMin+f.xMax-
f.xMin)/2,0);var p;a=a.createRadialGradient(l,b,0,t,c,f);d=d.childNodes;for(p in d)d.hasOwnProperty(p)&&d[p].attributes&&d[p].attributes["stop-color"]&&(t=q.toRGB(d[p].attributes["stop-color"].value),c=d[p].attributes["stop-opacity"]?d[p].attributes["stop-opacity"].value:1,t.status?a.addColorStop(q.getPercentValue(d[p].attributes.offset.value,1,0),"rgba("+t.r+","+t.g+","+t.b+","+Number(c)+")"):a.addColorStop(q.getPercentValue(d[p].attributes.offset.value,1,0),d[p].attributes["stop-color"].value));
return a};q.getPercentValue=function(d,a,f){return-1!=d.indexOf("%")?(d=/(\d.*)%/.exec(d)[1],100<d&&(d=100),d*a/100+1*f):1<d?d:d*a+1*f};q.bBoxFromPoint=function(d,a,f){"undefined"!==typeof f.xMin&&(d.push(f.xMin,f.xMax),a.push(f.yMin,f.yMax));f.xMin=Math.min.apply(this,d);f.xMax=Math.max.apply(this,d);f.yMin=Math.min.apply(this,a);f.yMax=Math.max.apply(this,a)};q.arcBBox=function(d,a,f,q,c,l,b,p){var t,s,e;b instanceof Array&&(d=d*b[0]+d*b[2]+b[4],a=a*b[1]+a*b[3]+b[5]);e=function(a,b,c){a=(a+2*Math.PI)%
(2*Math.PI);b=(b+2*Math.PI)%(2*Math.PI);if(a<=b)return a<=c&&c<=b?!0:!1;if(a>=b)return a>=c&&c>=b?!1:!0};b=q%(2*Math.PI);t=c%(2*Math.PI);l&&(b=c%(2*Math.PI),t=q%(2*Math.PI));l=d+f*Math.cos(b);q=a+f*Math.sin(b);s=d+f*Math.cos(t);c=a+f*Math.sin(t);l=[l,s];q=[q,c];e(b,t,0)&&(l.push(1*d+1*f),q.push(a));e(b,t,.5*Math.PI)&&(l.push(d),q.push(1*a+1*f));e(b,t,Math.PI)&&(l.push(d-1*f),q.push(a));e(b,t,1.5*Math.PI)&&(l.push(d),q.push(a-1*f));d=Math.max.apply(this,l);a=Math.min.apply(this,l);f=Math.max.apply(this,
q);b=Math.min.apply(this,q);"undefined"!==typeof p.xMin?(p.xMin=Math.min(a,p.xMin),p.xMax=Math.max(d,p.xMax),p.yMin=Math.min(b,p.yMin),p.yMax=Math.max(f,p.yMax)):(p.xMin=a,p.xMax=d,p.yMin=b,p.yMax=f)};q.qBezierBBox=function(d,a,f,q,c,l,b){var p=1*d-2*f+1*c,t=1*a-2*q+1*l;0==p||0==t?(q=Math.max(d,c),d=Math.min(d,c),l=Math.max(a,l),a=Math.min(a,c)):(p=(d-f)/p,t=(a-q)/t,f=d*Math.pow(1-p,2)+2*f*(1-p)*p+c*Math.pow(p,2),t=a*Math.pow(1-t,2)+2*q*(1-t)*t+l*Math.pow(t,2),q=Math.max(d,c,f),d=Math.min(d,c,f),
l=Math.max(a,l,t),a=Math.min(a,c,t));"undefined"!==typeof b.xMin?(b.xMin=Math.min(d,b.xMin),b.xMax=Math.max(q,b.xMax),b.yMin=Math.min(a,b.yMin),b.yMax=Math.max(l,b.yMax)):(b.xMin=d,b.xMax=q,b.yMin=a,b.yMax=l)};q.cBezierBBox=function(d,a,f,q,c,l,b,p,t){var s,e,h,k,v,C,J;null==c&&null==l&&(f=d+2/3*(f-d),c=a+2/3*(q-a),q=f+1/3*(b-d),l=c+1/3*(p-a));J=function(a,b,c,d,e){return a*Math.pow(1-e,3)+3*b*e*Math.pow(1-e,2)+3*c*e*e*(1-e)+d*e*e*e};h=3*b-9*c+9*f-3*d;k=6*d-12*f+6*c;v=3*f-3*d;v=Math.pow(k,2)-4*h*
v;e=s=d;b<s&&(s=b);b>e&&(e=b);0<=v&&(C=(-k+Math.sqrt(v))/(2*h),0<C&&1>C&&(C=J(d,f,c,b,C),C<s&&(s=C),C>e&&(e=C)),h=(-k-Math.sqrt(v))/(2*h),0<h&&1>h&&(C=J(d,f,c,b,h),C<s&&(s=C),C>e&&(e=C)));h=3*p-9*l+9*q-3*a;k=6*a-12*q+6*l;v=3*q-3*a;v=Math.pow(k,2)-4*h*v;f=d=a;p<d&&(d=p);p>f&&(f=p);0<=v&&(C=(-k+Math.sqrt(v))/(2*h),0<C&&1>C&&(c=J(a,q,l,p,C),c<d&&(d=c),c>f&&(f=c)),h=(-k-Math.sqrt(v))/(2*h),0<h&&1>h&&(c=J(a,q,l,p,h),c<d&&(d=c),c>f&&(f=c)));"undefined"!==typeof t.xMin?(t.xMin=Math.min(s,t.xMin),t.xMax=
Math.max(e,t.xMax),t.yMin=Math.min(d,t.yMin),t.yMax=Math.max(f,t.yMax)):(t.xMin=s,t.xMax=e,t.yMin=d,t.yMax=f)};q.combineTransformMatrix=function(d){var a=d.length-1,f;if(0>=a)return d[0];f=d[0];for(i=1;i<=a;i++)f[0]=f[0]*d[i][0]+f[1]*d[i][3],f[1]=f[0]*d[i][1]+f[1]*d[i][4],f[2]=f[0]*d[i][2]+f[1]*d[i][5]+1*f[2],f[3]=f[3]*d[i][0]+f[4]*d[i][3],f[4]=f[3]*d[i][1]+f[4]*d[i][4],f[5]=f[3]*d[i][2]+f[4]*d[i][5]+1*f[5];return f};q.angleBetweenVectors=function(d,a,f,q){var c=d*q<a*f?-1:1,l=d*f+a*q;d=Math.sqrt(Math.pow(d,
2)+Math.pow(a,2));f=Math.sqrt(Math.pow(f,2)+Math.pow(q,2));return c*Math.acos(l/(d*f))};q.toRGB=function(d){var a={r:0,g:0,b:0,status:0},f,q;f=function(c){for(q in c)c.hasOwnProperty(q)&&(0>c[q]||isNaN(c[q])?c[q]=0:255<c[q]&&(c[q]=255));return a={r:c[0],g:c[1],b:c[2],status:1}};d=d.trim();d.match(/^rgb\(|^rgba\(/i)?(d=/\(\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})/.exec(d),f([parseInt(d[1]),parseInt(d[2]),parseInt(d[3])])):d.match(/^#/)&&(d=/(\w{2})(\w{2})(\w{2})/.exec(d),f([parseInt(d[1],16),parseInt(d[2],
16),parseInt(d[3],16)]));return a};q.StrToDom=function(d){var a;f.DOMParser?(a=new DOMParser,a=a.parseFromString(d,"text/xml")):(a=new ActiveXObject("Microsoft.XMLDOM"),a.async=!1,a.loadXML(d));return a}})();
FusionCharts.register("module",["private","modules.renderer.js-renderer",function(){function f(a,b,c,d){var e=b.paper,f=b.layers,h=c?"y-axis":"x-axis",k=this.layerAboveDataset=f.layerAboveDataset,l=this.layerBelowDataset=f.layerBelowDataset,f=k.bands||(k.bands=[]),m=f.length,n=l.bands||(l.bands=[]),r=n.length,p=k.lines||(k.lines=[]),q=p.length,s=l.lines||(l.lines=[]),t=s.length,k=k.labels||(k.labels=[]),u=k.length,l=l.labels||(l.labels=[]),v=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);f.push(this.topBandGroup);m&&f[m].insertAfter(f[m-1]);n.push(this.belowBandGroup);r&&n[r].insertAfter(n[r-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);p.push(this.topLineGroup);q&&p[q].insertAfter(p[q-1]);s.push(this.belowLineGroup);t&&s[t].insertAfter(s[t-1]);k.push(this.topLabelGroup);u&&k[u].insertAfter(k[u-1]);l.push(this.belowLabelGroup);v&&l[v].insertAfter(l[v-1]);this.isReverse=d;this.configure()}function t(a,b,c,d){return Sa(b-c[1]-d.top,a-c[0]-d.left)}function C(a,b){var c=b?360:rb;a=(a||0)%c;return 0>a?c+a:
a}var q=this,d=q.window,a=q.hcLib,m=a.Raphael,F=a.chartAPI,c=/msie/i.test(d.navigator.userAgent)&&!d.opera,l=d.document,b=d.Image,p="VML"===m.type,H=a.BLANKSTRING,s=a.getPosition,e="rgba(192,192,192,"+(c?.002:1E-6)+")",c=a.TOUCH_THRESHOLD_PIXELS,h=a.CLICK_THRESHOLD_PIXELS,k=a.stubFN,v={pageX:0,pageY:0},K=parseFloat,J=parseInt,n=a.extend2,N=a.addEvent,B=a.getMouseCoordinate,U=a.removeEvent,r=a.pluck,ga=a.pluckNumber,X=a.toRaphaelColor,aa=a.graphics.convertColor,W=a.HUNDREDSTRING,ya=a.setImageDisplayMode,
va=a.FC_CONFIG_STRING,za=/\s\bx\b=['"][^'"]+?['"]/ig,ja=/\s\by\b=['"][^'"]+?['"]/ig,O=a.plotEventHandler,na=a.isArray,ma=a.JpegToPdf,M=d.SvgDeCanvo,T="createTouch"in l,u=T&&!(d.navigator.maxTouchPoints||d.navigator.msMaxTouchPoints),L=a.each=function(a,b,c,d){var e;c||(c=a);d||(d={});if(na(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},da=a.createElement,sa=a.createContextMenu,ta=a.hasTouch,S=ta?c:h,
$=a.getSentenceCase,oa=a.getCrispValues,ia=a.getValidValue,Ea=a.getFirstValue,fa=a.regex.dropHash,La=a.HASHSTRING,Ba=function(a){return a!==Fa&&null!==a},ha=function(a,b){a[1]===a[4]&&(a[1]=a[4]=Ia(a[1])+b%2/2);a[2]===a[5]&&(a[2]=a[5]=Ia(a[2])+b%2/2);return a},Fa,fb=8===l.documentMode?"visible":"",Xa=d.Math,xa=Xa.sin,gb=Xa.cos,Sa=Xa.atan2,Ia=Xa.round,Ra=Xa.min,Da=Xa.max,pb=Xa.abs,Lb=Xa.ceil,Ub=Xa.floor,Mb=180/Xa.PI,vb=Xa.PI,Eb=vb/2,rb=2*vb,Ib=vb+Eb,tb=a.getFirstColor,eb=a.graphics.getLightColor,Tb=
a.POSITION_TOP,sb=a.POSITION_BOTTOM,Qb=a.POSITION_RIGHT,cb=a.POSITION_LEFT;m.ca.ishot=function(a){if(this.removed)return!1;var b=this.node;a=a||"";b.ishot=a;switch(this.type){case "group":for(b=this.bottom;b;)b.attr("ishot",a),b=b.next;break;case "text":if(m.svg)for(b=b.getElementsByTagName("tspan")[0];b;)b.ishot=a,b=b.nextSibling}return!1};m.addSymbol({printIcon:function(a,b,c){var d=.75*c,e=.5*c,f=.33*c,h=Ia(a-c)+.5,k=Ia(b-c)+.5,l=Ia(a+c)+.5;c=Ia(b+c)+.5;var m=Ia(a-d)+.5,n=Ia(b-d)+.5,d=Ia(a+d)+
.5,r=Ia(b+e)+.5,p=Ia(a+e)+.5,q=Ia(b+f)+.5;a=Ia(a-e)+.5;f=Ia(b+f+f)+.5;return["M",m,k,"L",d,k,d,n,m,n,"Z","M",h,n,"L",h,r,m,r,m,b,d,b,d,r,l,r,l,n,"Z","M",m,b,"L",m,c,d,c,d,b,"Z","M",p,q,"L",a,q,"M",p,f,"L",a,f]},exportIcon:function(a,b,c){var d=.66*c,e=.5*d,f=Ia(a-c)+.5,h=Ia(b-c)+.5,k=Ia(a+c)+.5;c=Ia(b+c)-.5;var l=Ia(a-e)+.5,m=b<c-3?c-3:Ia(b)+.5,e=Ia(a+e)-.5,n=Ia(a+d)-.5,d=Ia(a-d)+.5;return["M",f,m,"L",f,c,k,c,k,m,k,c,f,c,"Z","M",a,c-1,"L",d,b,l,b,l,h,e,h,e,b,n,b,"Z"]}});a.rendererRoot=F("renderer.root",
{standaloneInit:!1,isRenderer:!0,inited:!1,callbacks:[],init:function(a,b,c){var d=this,e=d.container=a&&a.containerElement||b.chart.renderTo,f=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=H;e=d.paper=d.fusionCharts.jsVars.paper=new m(e,e.offsetWidth||a.width,e.offsetHeight||
a.height);!1!==q.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));f&&!1!==f.enabled&&
(e.tooltip(f.style,f.shadow,f.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();L(b.callbacks,function(a){a.apply(d,this)},[a]);L(d.callbacks,function(a){a.apply(d,this)},[a]);d.fusionCharts.annotations&&d.fusionCharts.annotations.draw(d);d.createChartStyleSheet();d.options.nativeMessage||
l||q.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=[];q.raiseEvent("internal.animationComplete",{},this.fusionCharts)}},getAnimationCompleteFn:function(){var a=this;a.animatingElementsCount=a.animatingElementsCount?++a.animatingElementsCount:1;return function(){a.animationComplete()}},reinit:function(a,b,c){this.hasRendered||this.init(b,c)},dispose:function(){var a=this.eventListeners,b=a&&a.length;this.disposing=!0;if(b)for(;b--;)a[b].unlisten();if(this.toolbar&&
this.toolbar.length){for(;this.toolbar.length;)a=this.toolbar.pop(),a.remove();this.toolbar.add=null}if(this.menus&&this.menus.length)for(;this.menus.length;)a=this.menus.pop(),a.destroy();this.paper&&(this.paper.clear(),this.paper.remove(),delete this.paper);this.exportIframe&&(this.exportIframe.parentNode.removeChild(this.exportIframe),delete this.exportIframe);delete this.disposing;this.container=null;this.disposed=!0},onContainerClick:function(b){var c=b.target||b.originalTarget||b.srcElement||
b.relatedTarget||b.fromElement,d=c&&c.parentElement,e=c&&c.nodeName.toLowerCase(),f=b.data,h=f.fusionCharts;b=a.getMouseCoordinate(f.container,b.originalEvent);h.ref&&(h=n({height:h.args.height,width:h.args.width,pixelHeight:h.ref.offsetHeight,pixelWidth:h.ref.offsetWidth,id:h.args.id,renderer:h.args.renderer,container:h.options.containerElement},b),q.raiseEvent("chartclick",h,f.logic.chartInstance),c&&c.ishot&&f||"tspan"===e&&d&&d.ishot&&f||f.options.chart.link&&f.linkClickFN.call(f,f))},onContainerMouseMove:function(b){var c=
b.data,d=c.fusionCharts;b=a.getMouseCoordinate(c.container,b.originalEvent);d.ref&&(d=n({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},b),q.raiseEvent("chartMouseMove",d,c.logic.chartInstance))},onContainerRollOver:function(b){var c=b.data,d=c.fusionCharts;b=a.getMouseCoordinate(c.container,b.originalEvent);d.ref&&(d=n({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},b),q.raiseEvent("chartRollOver",d,c.logic.chartInstance))},onContainerRollOut:function(b){var c=b.chart,d=c.fusionCharts;b=a.getMouseCoordinate(c.container,b.event);d.ref&&(d=n({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},b),q.raiseEvent("chartRollOut",d,c.logic.chartInstance))},
mouseStateIn:!1,winMouseHover:function(a){var b=a.originalEvent,b=b.target||b.originalTarget||b.srcElement||b.relatedTarget||b.fromElement,c=a.data,e=c.paper;a={chart:c,event:a.originalEvent};p?e.getById(b.parentNode.raphaelid)||(c.onContainerRollOut(a),c.mouseStateIn=!1,U(l,"mouseover",c.winMouseHover)):b.viewportElement||(c.mouseStateIn=!1,c.onContainerRollOut(a),U(d,"mouseover",c.winMouseHover))},chartHoverManager:function(){return function(a){var b=a.type,c=a.data,e=c.eventListeners||(c.eventListeners=
[]);"mouseover"!==b&&"touchstart"!==b||!1!==c.mouseStateIn||(c.mouseStateIn=!0,c.onContainerRollOver(a),e.push(N(p?l:d,"mouseover",c.winMouseHover,c)))}}(),setChartEvents:function(){var a=this.options,b=this.eventListeners||(this.eventListeners=[]),a=this.link=a.chart.link,c=this.container,d=ga(this.definition&&this.definition.chart.enablechartmousemoveevent,0);U(c,"click",this.onContainerClick);b.push(N(c,"click",this.onContainerClick,this));U(this.paper.canvas,"mouseover",this.chartHoverManager,
this);U(this.paper.canvas,"touchstart",this.chartHoverManager,this);U(this.paper.canvas,"mouseout",this.chartHoverManager,this);U(this.paper.canvas,"touchend",this.chartHoverManager,this);b.push(N(this.paper.canvas,"mouseover touchstart mouseout touchend",this.chartHoverManager,this));U(c,"mousemove",this.onContainerMouseMove,this);U(c,"touchmove",this.onContainerMouseMove,this);d&&b.push(N(c,"mousemove touchmove",this.onContainerMouseMove,this));this.paper.canvas.style.cursor=m.svg?a&&"pointer"||
"default":a&&"hand"||"default"},onOverlayMessageClick:function(){var a=this.elements;m.animation({opacity:0},1E3);a.messageText&&a.messageText.hide();a.messageVeil&&a.messageVeil.hide()},showMessage:function(a,b){var c=this.paper,d=this.options.chart,e=this.elements,f=e.messageText,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);f||(f=e.messageText=c.text(k/2,l/2,H).attr({fill:"rgba(255,255,255,1)","font-family":"Verdana,sans","font-size":10,"line-height":14,direction:d.textDirection,ishot:!0}));a=a||H;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));f.attr({text:c.text,ishot:!0,cursor:b?"pointer":"default"})[b?"click":"unclick"](this.onOverlayMessageClick,
this).show().toFront()},drawButtons:function(){var a=this,b=a.logic,c="zoomline"===b.rendererId,d=a.paper,e=a.elements,f=a.toolbar||(a.toolbar=[]),h=a.menus||(a.menus=[]),k=a.layers,l=a.options,m=l[va],b=m&&m.outCanvasStyle||b.outCanvasStyle||{},m=l.chart.toolbar||{},n=m.hDirection,r=c?1:m.vDirection,p=m.button||{},q=p.scale,s=p.width*p.scale,t=p.height*p.scale,u=n*(p.spacing*p.scale+s),v=p.radius,B=(l=l.exporting)&&l.buttons||{},C=B.exportButton&&!1!==B.exportButton.enabled,B=B.printButton&&!1!==
B.printButton.enabled,F,J=k.buttons||(k.buttons=d.group("buttons").trackTooltip(!0));f.y||(f.y=(c?0:m.y)+m.vMargin*r+Ra(0,t*r));f.x||(f.x=m.x+m.hMargin*n-Da(0,s*n));f.count=0;f.add=function(a,b,c){c="string"===typeof c?{tooltip:c}:c||{};var e=0===f.count?u-n*p.spacing*p.scale:u,e=c.x||(f.x+=e),h=c.tooltip||"";f.push(a=d.button(e,c.y||f.y,Fa,a,{width:s,height:t,r:v,id:f.count++,verticalPadding:p.symbolHPadding*q,horizontalPadding:p.symbolHPadding},J).attr({ishot:!0,fill:[p.fill,p.labelFill,p.symbolFill,
p.hoverFill],stroke:[p.stroke,p.symbolStroke],"stroke-width":[p.strokeWidth,p.symbolStrokeWidth]}).tooltip(h).buttonclick(b));return a};C&&(h.push(F=e.exportMenu=sa({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=f.add("exportIcon",function(a,b){return function(){F.visible?F.hide():F.show({x:a,y:b+1})}}(f.x+s,f.y+t),{tooltip:"Export chart"}));
B&&(e.printButton=f.add("printIcon",function(){a.print()},{tooltip:"Print chart"}))},setMargins:function(){var a=this.paper,b=this.options.chart||{},c=Ia;this.canvasBorderWidth=b.plotBorderWidth||0;this.canvasTop=c(b.marginTop)||0;this.canvasLeft=c(b.marginLeft)||0;this.canvasWidth=c(a.width-(b.marginLeft||0)-(b.marginRight||0));this.canvasHeight=c(a.height-(b.marginTop||0)-(b.marginBottom||0));this.canvasRight=this.canvasLeft+this.canvasWidth;this.canvasBottom=this.canvasTop+this.canvasHeight},drawBackground:function(){var a=
this,c=a.paper,d=a.layers,e=a.elements,f=d.background,h=e.background,k=e.chartborder,l=a.options.chart||{},m=K(l.borderWidth)||0,n=.5*m,p=2*m,r=l.borderWidth||0,s=a.chartHeight,t=a.chartWidth,u=e.backgroundImage,v=l.bgSWF,B=l.bgSWFAlpha/100,C=l.bgImageDisplayMode,F=l.bgImageVAlign,J=l.bgImageHAlign,H=l.bgImageScale,L=r+","+r+","+(t-2*r)+","+(s-2*r),N,O,M,U,z,w,E;c.canvas.style.backgroundColor=l.containerBackgroundColor;!f&&(f=d.background=c.group("background"));d={x:m,y:m,width:c.width-p,height:c.height-
p,stroke:"none",fill:X(l.backgroundColor)};h?h.attr(d):h=e.background=c.rect(d,f);d={x:n,y:n,width:c.width-m,height:c.height-m,stroke:l.borderColor,"stroke-width":m,"stroke-dasharray":l.borderDashStyle,fill:"none",r:l.borderRadius||0};k?k.attr(d):k=e.chartborder=c.rect(d,f);v&&(N=new b,z=M=1,u=[],N.onload=function(){O=ya(C,F,J,H,r,t,s,N);O["clip-rect"]=L;if(O.tileInfo)for(M=O.tileInfo.xCount,z=w=O.tileInfo.yCount,E=O.y,delete O.tileInfo;M&&O.width&&O.height;)--w,U?(u[void 0]=U.clone().attr({x:O.x,
y:O.y}),f.appendChild(u[void 0])):u[void 0]=U=c.image(v,f).attr(O).css({opacity:B}),O.y+=O.height,0===w&&(w=z,--M,O.x+=O.width,O.y=E);else{if(a.disposed||c.disposed)return;u[0]=c.image(v,f);u[0].attr(O).css({opacity:B}).attr({visibility:fb,"clip-rect":L})}q.raiseEvent("BackgroundLoaded",{url:v,bgImageAlpha:100*B,bgImageDisplayMode:C,bgImageVAlign:F,bgImageHAlign:J,bgImageScale:H,imageWidth:N.width,imageHeight:N.height},a.logic.chartInstance)},N.onerror=function(b){q.raiseEvent("BackgroundLoadError",
{url:v,bgImageAlpha:100*B,error:b,bgImageDisplayMode:C,bgImageVAlign:F,bgImageHAlign:J,bgImageScale:H},a.logic.chartInstance)},N.src=v,e.backgroundImage=u)},drawGraph:function(){var a=this,b=a.paper,c=a.plots=a.elements.plots,d=a.logic,e=a.layers,f=a.options,h=a.elements,k=f.chart,f=a.datasets=f.series,l=Ea(k.rendererId,k.defaultSeriesType),m=e.background,p=e.dataset=e.dataset||b.group("dataset").insertAfter(m),q,s,m=function(a,b){return function(e){var f=c[a],h,k={hcJSON:{series:[]}},l=k.hcJSON.series[a]||
(k.hcJSON.series[a]={}),m=d.chartInstance.jsVars._reflowData;h=(e=Ea(e,!f.visible))?"visible":"hidden";L(f.graphics,function(a){!0!==a.data("alwaysInvisible")&&a.attr("visibility",h)});f.visible=e;b.visible=e;l.visible=e;n(m,k,!0)}},t=function(b){return function(d,e){a["legendClick"+l]&&a["legendClick"+l](c[b],d,e)||a.legendClick&&a.legendClick(c[b],d,e)}},u=function(b){return function(){return a.getEventArgs&&a.getEventArgs(c[b])}},v=function(b,d,e){return function(f,h){d.call(a,c[b],e,{numUpdate:f,
hasAxisChanged:h})}};e.tracker=e.tracker||b.group("hot").insertAfter(p);a.drawCanvas();a.drawAxes();c||(c=a.plots=a.plots||[],h.plots=c);e=0;for(h=f.length;e<h;e++)b=f[e]||{},p=b.updatePlot="updatePlot"+$(r(b.type,b.plotType,l)),p=a[p],q=b.drawPlot="drawPlot"+$(r(b.type,b.plotType,l)),q=a[q]||a.drawPlot,(s=c[e])||(c.push(s={index:e,items:[],data:b.data||[],name:b.name,userID:b.userID,setVisible:m(e,b),legendClick:t(e),getEventArgs:u(e),realtimeUpdate:v(e,p||q,b)}),b.plot=s,b.legendClick=s.legendClick,
b.getEventArgs=s.getEventArgs,b.setVisible=s.setVisible),e&&f[e-1]&&(b.previousData=f[e-1].data),q.call(a,s,b);k.hasScroll&&(a.drawScroller(),a.finalizeScrollPlots())},drawPlot:k,drawCanvas:k,drawAxes:k,drawScroller:function(){},drawLegend:function(){var a=this,b=a.options,c=a.paper,d=b.chart||{},e=b.legend,f=e.scroll,b={elements:{}},h=b.elements,k=a.layers.legend,l=h.box,p=h.caption,r=h.elementGroup,q="vertical"===e.layout,s=d.marginBottom,t=d.spacingBottom,u=d.spacingLeft,v=d.spacingRight,B=c.width,
C=c.height,F=a.canvasTop,J=e.width,K=e.height,N=e.borderRadius,L=e.backgroundColor,O=e.borderColor,M=e.borderWidth||0,X=.5*M,z=.5*M+2,w=ga(e.padding,4),E=.5*w,I,g,ka,P,U,W,S,aa;aa=f&&f.enabled;q?(q=B-v-J,s=F+.5*(C-s-F-K)+(e.y||0)):(q=u+.5*(B-u-v-J)+(e.x||0),s=C-t-K);t=m.crispBound(q,s,J,K,M);q=t.x;s=t.y;J=t.width;K=t.height;k||(k=a.layers.legend=c.group("legend").insertBefore(a.layers.tracker).translate(q,s).attr("class","fusioncharts-legend"));a.addCSSDefinition(".fusioncharts-legend .fusioncharts-caption",
n({"text-anchor":e.title.align},e.title.style));e.legendAllowDrag&&(a.addCSSDefinition(".fusioncharts-legend",{cursor:"move"}),g=q,ka=s,k.drag(function(a,b){P=W+a;U=S+b;P+J+z>B&&(P=B-J-z);U+K+z>C&&(U=C-K-z);P<z&&(P=z);U<z&&(U=z);k.translate(P-g,U-ka);g=P;ka=U},function(){W=g;S=ka}));N={x:0,y:0,width:J,height:K,r:N,stroke:O,"stroke-width":M,fill:L||"none",ishot:e.legendAllowDrag};l?l.attr(N):l=h.box=c.rect(N,k);l.shadow(e&&e.shadow);aa?(I=K-w,l=","+J+","+I,r=h.elementGroup=c.group("legenditems",k).attr({"clip-rect":"0,"+
E+l}),f=h.scroller||(h.scroller=c.scroller(J-10+E-M,X,10,K-M,!1,{scrollPosition:f.scrollPosition||0,scrollRatio:(I+w)/e.totalHeight,showButtons:!1,displayStyleFlat:f.flatScrollBars},k)),f.attr("fill",e.legendScrollBgColor).scroll(function(b){r.transform(["T",0,(I-e.totalHeight)*b]);n(a.fusionCharts.jsVars._reflowData,{hcJSON:{legend:{scroll:{position:b}}}},!0)})):r=h.elementGroup=k;if(e.title&&e.title.text!==H){switch(e.title.align){case "start":aa=w;break;case "end":aa=J-w-(aa?10:0);break;default:aa=
.5*J}N={"class":"fusioncharts-caption","text-anchor":e.title.align,text:e.title.text,title:e.title.originalText||"",x:aa,y:w,fill:e.title.style.color,"vertical-align":"top",direction:d.textDirection,"line-height":e.title.style.lineHeight};p?p.attr(N):p=h.caption=c.text(N,r).attr("class","fusioncharts-caption")}this["draw"+$(e.type||"point")+"LegendItem"](b)},drawPointLegendItem:function(a){var b=this,c=b.paper,d=b.options,f=d.series,h=d.chart,k=h.defaultSeriesType,d=d.legend,l=d.legendHeight,m=d.symbolPadding,
p=d.textPadding||2,s=ga(d.padding,4),h=h.textDirection,t=d.itemHoverStyle,u=d.itemHiddenStyle,v=d.itemStyle,C=v.color,u=u&&u.color||"#CCCCCC",F=t&&t.color||C,t=d.symbol3DLighting,J=d.symbolWidth,K=!1!==d.interactiveLegend,H=a.elements,N=H.elementGroup;a=a.item=[];var H=H.item=[],L=[],O={line:!0,spline:!0,scatter:!0,bubble:!0,dragnode:!0,zoomline:!0},M,U,Pa,S,z,w,E,I,g,ka,P,ib,cc,T,Kb,$,da,R,Na,ea,Oa,ra;cc=0;for(T=f.length;cc<T;cc+=1)if(M=f[cc],I=M.legendCosmetics||{},M&&!1!==M.showInLegend)if(g=M.type||
k,"point"===M.legendType)for(I=M.data||[],Pa=0,z=I.length;Pa<z;Pa+=1)M=I[Pa]||{},!1!==M.showInLegend&&(M._legendType=g,L.push(M));else switch(M._legendType=g,g){case "pie":case "pie3d":case "funnel":case "pyramid":L=M.data;break;default:L.push(M)}L.sort(function(a,b){return(a.legendIndex||0)-(b.legendIndex||0)||a.__i-b.__i});d.reversed&&L.reverse();f=d.initialItemX||0;k=d.initialItemY||0;z=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{},e;a=B(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};q.raiseEvent("LegendItemClicked",d,b.logic.chartInstance);K&&!e&&c.legendClick()};w=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{};a=B(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:F});q.raiseEvent("LegendItemRollover",d,b.logic.chartInstance)};
E=function(a){var c=this.data("legendItem"),d=c.getEventArgs?c.getEventArgs():{};a=B(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:C});q.raiseEvent("LegendItemRollout",d,b.logic.chartInstance)};b.addCSSDefinition(".fusioncharts-legend .fusioncharts-legenditem",d.itemStyle);cc=0;for(T=L.length;cc<T;cc+=1)!1!==L[cc].showInLegend&&(ra={elements:{},hiddenColor:u,itemTextColor:C,
hoverColor:F},a.push(ra),H.push(ra.elements),M=L[cc],I=M.legendCosmetics||{},ka=f+M._legendX+s,P=k+M._legendY-s,ib=M._legendH,U=M._legendType||g,Pa=!1!==M.visible,S=ra.itemLineColor=X(M.color||{}),M.plot.legend=ra,ra.elements.legendItemText=c.text({"class":"fusioncharts-legenditem",x:ka+l+p-2,y:P+(M._legendTestY||0),text:M.name,fill:Pa?C:u,"vertical-align":"top",direction:h,"text-anchor":"start",cursor:v.cursor||"pointer",ishot:K,"line-height":v.lineHeight,"font-size":v.fontSize},N).data("legendItem",
M),I.customLegendIcon?(M&&(R=M.marker)&&!1!==R.enabled?(Na=R.lineColor,Na=aa(r(I.borderColor,Na.FCcolor&&Na.FCcolor.color.split(",")[0]||Na,S),r(I.alpha,W)),ea=R.fillColor,ea=aa(r(I.bgColor,ea&&ea.FCcolor&&ea.FCcolor.color.split(",")[0],ea,S),r(I.bgAlpha,I.alpha,W))):(ea=r(I.bgColor,M.color&&M.color.FCcolor&&M.color.FCcolor.color||M.color),Na=eb(ea,60).replace(fa,La),Na=aa(r(I.borderColor,Na),r(I.alpha,W)),ea=aa(ea,r(I.bgAlpha,I.alpha,W))),ra.symbolColor=X(ea),ra.symbolStroke=X(Na),Kb=.5*J,S=ka+m+
Kb,U=P+(M._markerYGutter||0)+m+Kb,Oa&&(Kb*=.6),$=I.symbol.split("_"),da="spoke"===$[0]?1:0,U=$[1]?ra.elements.legendItemSymbol=c.polypath($[1],S,U,Kb,I.startAngle,da,N):ra.elements.legendItemSymbol=c.circle(S,U,Kb,N),U.data("legendItem",M).attr({cursor:v.cursor||"pointer",stroke:Pa?ra.symbolStroke:u,fill:Pa?ra.symbolColor:u,"stroke-width":ga(I.borderThickness,1),ishot:K})):O[U]?(U=P+(M._markerYGutter||0)+m+.5*J,M.lineWidth&&(Oa=ra.elements.legendItemLine=c.path({"stroke-width":M.lineWidth,stroke:Pa?
S:u,cursor:v.cursor||"pointer",ishot:K,path:["M",ka+m,U,"L",ka+m+J,U]},N).data("legendItem",M)),M&&(R=M.marker)&&!1!==R.enabled&&(ra.symbolStroke=X(r((Na=R.lineColor)&&(Na.FCcolor&&Na.FCcolor.color.split(",")[0]||Na),S)),t?R.fillColor&&R.fillColor.FCcolor?(I=n({},R.fillColor),I.FCcolor.alpha="100"):I=r(R.fillColor,S):I={FCcolor:{color:r((ea=R.fillColor)&&(ea.FCcolor&&ea.FCcolor.color.split(",")[0]||ea),S),angle:0,ratio:"0",alpha:"100"}},ra.symbolColor=X(I),Kb=.5*J,S=ka+m+Kb,U=P+(M._markerYGutter||
0)+m+Kb,Oa&&(Kb*=.6),$=R.symbol.split("_"),da="spoke"===$[0]?1:0,U=$[1]?ra.elements.legendItemSymbol=c.polypath($[1],S,U,Kb,R.startAngle,da,N):ra.elements.legendItemSymbol=c.circle(S,U,Kb,N),U.data("legendItem",M).attr({cursor:v.cursor||"pointer",stroke:Pa?ra.symbolStroke:u,fill:Pa?ra.symbolColor:u,"stroke-width":1,ishot:K}))):(I=b.getSymbolPath(ka+m,P+(M._markerYGutter||0)+m,J,J,U,M,!t),ra.symbolColor=X(I.color),ra.symbolStroke=X(I.strokeColor),U=ra.elements.legendItemSymbol=c.path({path:I.path,
"stroke-width":I.strokeWidth,stroke:Pa?ra.symbolStroke:u,fill:Pa?ra.symbolColor:u,cursor:v.cursor||"pointer",ishot:K},N).data("legendItem",M)),ra.elements.legendItemBackground=c.rect({x:ka,y:P,width:M._totalWidth,height:ib,r:0,fill:X(M.legendFillColor||e),"stroke-width":1,stroke:X(M.legendBorderColor||"none"),cursor:v.cursor||"pointer",ishot:K},N).click(z).mouseover(w).mouseout(E).data("legendItem",M));d.reversed&&L.reverse()},drawCaption:function(){var a=this.options.chart,b=this.options.title,c=
this.options.subtitle,d=this.paper,e=this.smartLabel,f=this.elements,h=this.layers,k=h.caption,l=f.caption,m=f.subcaption,n=b.text,p=c&&c.text,r=b.x,q;!n&&!p||k||(k=h.caption=d.group("caption"),h.tracker?k.insertBefore(h.tracker):k.insertAfter(h.dataset));n?(this.addCSSDefinition(".fusioncharts-caption",b.style),q={"class":"fusioncharts-caption",text:b.text,fill:b.style.color,x:r,y:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":b.verticalAlign||"top",visibility:"visible",direction:a.textDirection,
title:b.originalText||""},l?l.attr(q):l=f.caption=d.text(q,k).attr("class","fusioncharts-caption"),l.css(b.style),e?(e.setStyle(b.style),q=e.getOriSize(b.text).height):q=10):l&&(l=f.caption=l.remove());p?(this.addCSSDefinition(".fusioncharts-subcaption",c.style),q={"class":"fusioncharts-subcaption",text:c.text,title:c.originalText||"",fill:c.style.color,x:r,y:n?l.attrs.y+q+2:b.y||a.spacingTop||0,"text-anchor":b.align||"middle","vertical-align":"top",direction:a.textDirection,visibility:"visible"},
m?m.attr(q):m=f.subcaption=d.text(q,k).attr("class","fusioncharts-subcaption"),m.css(c.style)):m&&(f.subcaption=m.remove());n||p||!k||(h.caption=k.remove())},drawLogo:function(){var a=this,c=a.paper,e=a.elements,f=a.options,h=f.credits,k=f.chart||{},l=k.borderWidth||0,m=a.chartHeight,n=a.chartWidth,r=e.logoImage,s=k.logoURL,t=k.logoAlpha/100,u=k.logoPosition,v=k.logoLink,C=k.logoScale,F=k.logoLeftMargin,J=k.logoTopMargin,f={tr:{vAlign:Tb,hAlign:Qb},bl:{vAlign:sb,hAlign:cb},br:{vAlign:sb,hAlign:Qb},
cc:{vAlign:"middle",hAlign:"middle"}},K,H,N;a.logic&&h.enabled&&c.text().attr({text:h.text,x:6,y:m-4,"vertical-align":sb,direction:k.textDirection,"text-anchor":"start",fill:"rgba(0,0,0,0.5)",title:h.title||""}).css({fontSize:9,fontFamily:"Verdana,sans",cursor:"pointer",_cursor:"hand"}).click(function(){try{d.open(h.href)}catch(a){(d.top||d).location.href=h.href}});s&&(K=new b,(N=f[u])||(N={vAlign:Tb,hAlign:cb}),K.onload=function(){a.disposed||c.disposed||(H=ya("none",N.vAlign,N.hAlign,C,l,n,m,K),
p&&(H.w=H.width||0,H.h=H.height||0),H.src=s,r=a.paper.image(H).translate(F,J).css("opacity",t),v&&r.css({cursor:"pointer",_cursor:"hand"}),r.mouseover(function(b){b=B(a.logic.chartInstance.ref,b);q.raiseEvent("LogoRollover",{logoURL:s,logoAlpha:100*t,logoPosition:u||"tl",logoScale:C,logoLink:v,chartX:b.chartX,chartY:b.chartY,pageX:b.pageX,pageY:b.pageY},a.logic.chartInstance)}),r.mouseout(function(b){b=B(a.logic.chartInstance.ref,b);q.raiseEvent("LogoRollout",{logoURL:s,logoAlpha:100*t,logoPosition:u||
"tl",logoScale:C,logoLink:v,chartX:b.chartX,chartY:b.chartY,pageX:b.pageX,pageY:b.pageY},a.logic.chartInstance)}),r.click(function(b){b=B(a.logic.chartInstance.ref,b);q.raiseEvent("LogoClick",{logoURL:s,logoAlpha:100*t,logoPosition:u||"tl",logoScale:C,logoLink:v,chartX:b.chartX,chartY:b.chartY,pageX:b.pageX,pageY:b.pageY},a.logic.chartInstance,void 0,function(){v&&k.events.click.call({link:v})})}),q.raiseEvent("LogoLoaded",{logoURL:s,logoAlpha:100*t,logoPosition:u||"tl",logoScale:C,logoLink:v},a.logic.chartInstance))},
K.onerror=function(b){q.raiseEvent("LogoLoadError",{logoURL:s,logoAlpha:100*t,logoPosition:u||"tl",logoScale:C,logoLink:v,error:b},a.logic.chartInstance)},K.src=s,e.logoImage=r)},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,f=d&&d.legendItemSymbol,d=d&&d.legendItemLine,h=c&&c.hiddenColor,k=c&&c.itemLineColor,l=c&&c.itemTextColor,m=c&&c.symbolColor,n=c&&
c.symbolStroke,c=r(b,!a.visible);a.setVisible(b);c?(f&&f.attr({fill:m||k,stroke:n}),e&&e.attr({fill:l}),d&&d.attr({stroke:k})):(f&&f.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(f=e.length;f--;)d=parseFloat(e[f]),d=this.plots[d],d.legendClick.call(d,c,!1)},exportChart:function(c){var e=this,f=e.fusionCharts,h=e.options;c="object"===typeof c&&function(a){var b=
{},c;for(c in a)b[c.toLowerCase()]=a[c];return b}(c)||{};var k=n(n({},h.exporting),c),m=(k.exportformat||"png").toLowerCase(),p=k.exporthandler,r=(k.exportaction||H).toLowerCase(),s=k.exporttargetwindow||H,t=k.exportfilename,u=k.exportparameters,v=k.exportcallback,B=k.exportwithimages,C=k.exportatclientside;if(!h.exporting||!h.exporting.enabled||!p)return!1;q.raiseEvent("beforeExport",k,f,void 0,function(){function c(){var b;if("download"===r){/webkit/ig.test(d.navigator.userAgent)&&"_self"===s&&
(s=g=z+"export_iframe",e.exportIframe||(e.exportIframe=ka=da("IFRAME",{name:g,width:"1px",height:"1px"},l.body),ka.style.cssText="position:absolute;left:-10px;top:-10px;"));P=da("form",{method:"POST",action:p,target:s,style:"display:none;"},l.body);for(b in I)da("input",{type:"hidden",name:b,value:I[b]},P);P.submit();l.body.removeChild(P);P=void 0;return!0}X=new q.ajax(function(b){var c={};b.replace(RegExp("([^?=&]+)(=([^&]*))?","g"),function(a,b,d,e){c[b]=e});v&&d[v]&&"function"===typeof d[v]&&d[v].call(d,
c);a.raiseEvent("exported",c,f)},function(b){b={statusCode:0,statusMessage:"failure",error:b,DOMId:z,width:w.width,height:w.height};v&&d[v]&&"function"===typeof d[v]&&d[v].call(d,b);a.raiseEvent("exported",b,f,[b])});for(b in I)I.hasOwnProperty(b)&&(I[b]=encodeURIComponent(I[b]));X.post(p,I)}function h(){-1!==S.indexOf("<image ")?ga?(T=(aa=S.match(/<image [^\>]*\>/gi))&&aa.length,ea=function(a){a=a&&a.split("/");a=a[a.length-1].split(".");return{name:a[0],type:a[1]||"png"}},$=function(a,c,d,e,g){var f=
new b;f.onload=function(){var b="image/"+d,h=l.createElement("canvas"),k=h.getContext("2d"),m="";h.width=f.width;h.height=f.height;k.drawImage(f,0,0);m=h.toDataURL(b);ha[a]=m;fa(m,c,d,e,g)};f.onerror=function(){ra()};f.src=a},fa=function(a,b,c,d,e){Na["image_"+R]={name:b,type:c,encodedData:a,width:d,height:e};ra()},ra=function(){var a={},b,d,e,g,f,h=!1;R<T?(b=aa[R].replace(/\"/g,""),b.split(" ").forEach(function(b){b=b.split("=");a[b[0]]=b[1]}),a["xlink:href"]&&(b=(d=ea(a["xlink:href"]))&&d.name||
"temp_image_"+R,e=d&&d.type||"png",g=parseInt(a.width,10),f=parseInt(a.height,10),d=b+"."+e,ha[a["xlink:href"]]?h=!0:$(a["xlink:href"],b,e,g,f)),b='xlink:href="'+a["xlink:href"],S=S.replace(b,'xlink:href="temp/'+d),R+=1,h&&ra()):(I.encodedImgData=JSON.stringify(Na),I.stream=S,c())},ra()):c():c()}function A(){var a=t+"."+m;"svg"===m?K(function(b){F("url",b,a)}):J(m,V)}function n(){var a=d.navigator.userAgent,b;return-1!==(b=a.indexOf("Edge"))?{name:"Edge",version:a.substring(b+5,b+11)}:-1!==(b=a.indexOf("Chrome"))?
{name:"Chrome",version:a.substring(b+7,b+11)}:-1!==(b=a.indexOf("MSIE"))||-1!==(b=a.indexOf("rv"))&&-1!==a.indexOf("Trident")?{name:"ie",version:a.substring(b+5,b+9)}:-1!==(b=a.indexOf("Firefox"))?{name:"Firefox",version:a.substring(b+8,b+12)}:-1!==(b=a.indexOf("Safari"))?{name:"Safari",version:a.substring(b+7,b+11)}:{name:"default",version:"Not Known"}}function V(a,b){var c=t+"."+m,d;switch(a){case "pdf":d=new ma(w.height,w.width);d.addImage(b);d=d.getDataUrl();F("url",d,c);break;default:F("url",
b,c)}}function F(a,b,c){var e=n(),g;"Chrome"===e.name||"Firefox"===e.name?("blob"===a&&(b=d.URL.createObjectURL(b)),g=l.createElement("a"),g.download=c,g.href=b,l.body.appendChild(g),g.onclick=function(){g.parentNode.removeChild(g)},g.click()):"ie"!==e.name&&"Edge"!==e.name||!d.navigator.msSaveBlob||(a="url"===a?O(b):b,d.navigator.msSaveBlob(a,c))}function J(a,c){var d=n(),e;e=l.createElement("canvas");e.width=w.width;e.height=w.height;"ie"==d.name?(d=N(W),new M(d,e,function(){switch(a){case "png":c(a,
e.toDataURL("image/png"));break;case "jpeg":c(a,e.toDataURL("image/jpeg"));break;default:c(a,e.toDataURL("image/jpeg"))}})):"Chrome"!==d.name&&"Firefox"!==d.name&&"Edge"!==d.name||K(function(d){var e,g,f;e=l.createElement("canvas");g=e.getContext("2d");f=new b;f.src=d;f.onload=function(){e.width=f.width;e.height=f.height;g.drawImage(f,0,0);switch(a){case "png":c(a,e.toDataURL("image/png"));break;case "jpeg":c(a,e.toDataURL("image/jpeg"));break;default:c(a,e.toDataURL("image/jpeg"))}}})}function K(a){L(W,
function(b){a("data:image/svg+xml;base64,"+d.btoa(d.unescape(encodeURIComponent('<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+b))))})}function N(a){return a.replace(/<image [^\>]*\>/gi,function(a){return a.match(/href="http:\/\/|href="https:\/\//)&&/(href="http:\/\/|href="https:\/\/)([^\/]*)/.exec(a)[2]&&d.location.hostname!==/(href="http:\/\/|href="https:\/\/)([^\/]*)/.exec(a)[2]?"":a})}function L(a,c){if(-1===
a.indexOf("<image "))c(a);else{var e=0,g,f=0,h;g=a.match(/<image [^\>]*\>/gi).length;a=a.replace(/NS\d+:/gi,"xlink:");a=a.replace(/<image [^\>]*\>/gi,function(k){if(k.match(/href="http:\/\/|href="https:\/\//)&&/(href="http:\/\/|href="https:\/\/)([^\/]*)/.exec(k)[2]&&d.location.hostname!==/(href="http:\/\/|href="https:\/\/)([^\/]*)/.exec(k)[2])return f++,e++,g===f&&c(a),"";k=k.replace(/(:href=")([^"]*)(")/gi,function(a,b,c,d){h=c;return b+"{{{"+e+"}}}"+d});var m=l.createElement("canvas"),A,n;A=m.getContext("2d");
n=new b;n.src=h;n.ind=e;n.onload=function(){m.width=this.width;m.height=this.height;A.drawImage(this,0,0);var d=m.toDataURL("image/png");(new b).src=d;a=a.replace(new RegExp("\\{\\{\\{"+n.ind+"\\}\\}\\}","g"),d);f++;g===f&&c(a)};e++;return k})}}function O(a){var b,c,e;b=0<=a.split(",")[0].indexOf("base64")?d.atob(a.split(",")[1]):d.unescape(a.split(",")[1]);a=a.split(",")[0].split(":")[1].split(";")[0];c=new Uint8Array(b.length);for(e=0;e<b.length;e++)c[e]=b.charCodeAt(e);return new d.Blob([c],{type:a})}
var U=e.layers.buttons,z=f.id,w=e.paper,E=q&&q.hcLib,I,g,ka,P,X,S,W,ga=E&&E.isCanvasElemSupported(),aa,T,R=0,Na={},ea,$,ra,fa,ha={};U&&U.attr("visibility","hidden");S=w.toSVG(B&&ga&&"svg"!==m);W=w.toSVG(B&&ga);U&&U.attr("visibility","visible");S=S.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,"$1M 0 0 L 0 0$2");S=S.replace(/NS\d+:/gi,"xlink:");W=W.replace(/(\sd\s*=\s*["'])[M\s\d\.]*(["'])/ig,"$1M 0 0 L 0 0$2");S=S.replace(/[\w\-]+\=\"undefined\"/ig,"");S=S.replace(/rgba\(([^\)]+)\)/ig,function(a,b){return"#"+
E.graphics.RGBtoHex(b.split(","))});S=S.replace(/(([\w]+\-)?opacity\s*=\s*)['"][\d\.]+e[\-\+][\d]+["']/ig,'$1"0.001"');S=S.replace(/(([\w]+\-)?opacity\s*:\s*)[\d\.]+e[\-\+][\d]+/ig,"$10.001");S=S.replace(/<text[^\>]+/ig,function(a){a=a.replace(/stroke\=[\"\']([a-z0-9\#]+)?[\"\']/ig,"");a=a.replace(/stroke\s*\:\s*([a-z0-9\#]+)?;?/ig,"");a=a.replace(/stroke-opacity\=[\"\']([a-z0-9\#]+)?[\"\']/ig,"");a=a.replace(/stroke-opacity\s*\:\s*([a-z0-9\#]+)?;?/ig,"");a=a.replace(/(<text[^\>]+fill\=)([\"\'][^\"\']+[\"\'])([^\>]+)/ig,
'$1$2 stroke=$2 stroke-width="0.2"$3');return a=a.replace(/(<text[^\>]+fill-opacity\=)([\"\'][^\"\']+[\"\'])([^\>]+)/ig,"$1$2 stroke-opacity=$2 $3")});S=S.replace(/<(\b[^<>s\s]+\b)[^\>]+?opacity\s*=\s*['"][^1][^\>]+?(\/>|>[\s\r\n]*?<\/\1>)/ig,function(a,b){var c=za.exec(a)||H,d=ja.exec(a)||H;return a+"<"+b+c+d+' opacity="1" stroke-opacity="1" fill="#cccccc" stroke-width="0" r="0" height="0.5" width="0.5" d="M 0 0 L 1 1" />'});I={charttype:f.chartType(),stream:S,stream_type:"svg",meta_bgColor:k.bgcolor||
"",meta_bgAlpha:k.bgalpha||"1",meta_DOMId:f.id,meta_width:w.width,meta_height:w.height,parameters:["exportfilename="+t,"exportformat="+m,"exportaction="+r,"exportparameters="+u].join("|")};C&&"download"===r?(U=n(),"undefined"===typeof d.btoa||"Chrome"!==U.name&&"Firefox"!==U.name&&"Edge"!==U.name&&"ie"!==U.name?(q.raiseWarning(this,"14038823867","run","Export Feature","Client side export requirement not fulfiled so exporting through server side"),h()):A()):h();q.raiseEvent("exportDataReady",I,f)},
function(){q.raiseEvent("exportCancelled",k,f)})},print:function(a){var b=this,c=n({},a);if(b.isPrinting)return!1;q.raiseEvent("BeforePrint",c,b.logic.chartInstance,void 0,function(){var a=b.container,e=b.elements,f=e.printButton,h=e.exportButton,k=[],m=a.parentNode,e=l.body||l.getElementsByTagName("body")[0],A=e.childNodes;b.isPrinting=!0;L(A,function(a,b){1==a.nodeType&&(k[b]=a.style.display,a.style.display="none")});!1!==c.hideButtons&&(f&&"hidden"!=f.attrs.visibility&&f.attr({visibility:"hidden"}),
h&&"hidden"!=h.attrs.visibility&&h.attr({visibility:"hidden"}));e.appendChild(a);d.print();setTimeout(function(){f&&f.attr({visibility:"visible"});h&&h.attr({visibility:"visible"});m.appendChild(a);L(A,function(a,b){1==a.nodeType&&(a.style.display=k[b])});b.isPrinting=!1;q.raiseEvent("PrintComplete",c,b.logic.chartInstance)},1E3)},function(){q.raiseEvent("PrintCancelled",c,b.logic.chartInstance)})},getSymbolPath:function(a,b,c,d,e,f,h){var k=["M"],l,m,n;l=(f.color&&tb("string"===typeof f.color?f.color:
f.color.FCcolor.color)||H).replace(fa,"");n=eb(l,60).replace(fa,La);h?l={FCcolor:{color:l,angle:0,ratio:"0",alpha:"100"}}:(h=eb(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":f=.25*c;e=.5*f;h=.7*d;m=.4*d;k=k.concat([a,b+d,"l",0,-h,f,0,0,h,"z","m",f+e,0,"l",0,-d,f,0,0,d,"z","m",f+e,0,"l",0,-m,f,0,0,m,"z"]);l.FCcolor.angle=270;break;case "bar":case "bar3d":f=.3*c;e=.6*c;h=d/4;m=
h/2;k=k.concat([a,b,"L",a+e,b,a+e,b+h,a,b+h,"Z","M",a,b+h+m,"L",a+c,b+h+m,a+c,b+h+m+h,a,b+2*h+m,"Z","M",a,b+2*(h+m),"L",a+f,b+2*(h+m),a+f,b+d,a,b+d,"Z"]);break;case "area":case "area3d":case "areaspline":case "dragarea":h=.6*d;m=.2*d;d*=.8;k=k.concat([a,b+d,"L",a,b+h,a+.3*c,b+m,a+.6*c,b+h,a+c,b+m,a+c,b+d,"Z"]);l.FCcolor.angle=270;break;case "pie":case "pie3d":f=.5*c;e=.9*f;c=a+f+1;d=b+f-1;a=a+f-1;b=b+f+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=f.color;n="#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:.5,strokeColor:n}}});f.prototype={configure:function(){var a=this.axisData,b=this.renderer,c=this.isVertical,d=this.isReverse,e=b.options,f=e.chart,h=f.marginBottom,f=f.marginRight,k=b.canvasTop,
l=b.canvasLeft,m=this.min=a.min,m=this.span=(this.max=a.max)-m,l=this.startX=ga(a.startX,l),k=this.startY=ga(a.startY,k),n=this.endX=ga(a.endX,b.canvasRight),a=this.endY=ga(a.endY,b.canvasBottom),m=this.pixelRatio=c?(a-k)/m:(n-l)/m,p=this.relatedObj={};p.marginObj={top:k,right:f,bottom:h,left:l};p.canvasObj={x:l,y:k,w:n-l,h:a-k,toX:n,toY:a};this.startPixel=d?c?a:n:c?k:l;this.pixelValueRatio=d?-m:m;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,f=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(f)||0===f||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,f,h,k,l=[this.topLabelGroup,this.belowLabelGroup,this.topLineGroup,
this.belowLineGroup,this.topBandGroup,this.belowBandGroup],m,n;m=0;for(n=l.length;m<n;m+=1)if(k=l[m])f=e?d:c,h=e?c:d,k.attr({transform:"t"+f+","+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,f=this.layerBelowDataset,f=this.tickGroup=this.tickGroup||b.group("axis-ticks",f),h=this.relatedObj.canvasObj,k=a.offset,l=a.opposite,m=a.showAxis,n=a.tickInterval,p=a.tickLength,r=a.tickWidth,
a=a.tickColor,q=c;if(e&&m)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],f).attr({stroke:a,"stroke-width":r});Ub(q)<=d;)k=this.getAxisPosition(q),c=l?h+p:h-p,b.path(["M",h,k,"L",c,k],f).attr({stroke:a,"stroke-width":r}),q+=n},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,f=this.lines=this.lines||[],h=this.labels=this.labels||[],k=this.relatedObj.canvasObj,l=this.globalOptions||{},m=this.elements||{},n=this.axisData.plotLines||[],p=this.primaryOffset,r=c?this.startY:this.startX,q=c?this.endY:this.endX,s=parseFloat(a.canvasBorderWidth)||0,t=Da(n.length,Da(f.length,h.length)),u=a.layers.datalabels,v=this.belowLineGroup,B=this.topLineGroup,C=this.belowLabelGroup,F=this.topLabelGroup,J=!1!==(a.tooltip||{}).enabled,K=function(b){return function(c){O.call(this,
a,c,b)}},N=l.chart.xDepth||0,l=l.chart.textDirection,L=[],M=0,U,z,w,E,I,g,ka,P,W,aa,T,$,fa,da,R,Na,ea,Oa,ra,ja,ma,va,Ja,Y,ia,na,sa,oa,bb,ta,Ia,xa,Ba,za,yb,Fa,Ra,Ea,mb,Sa,ya,La,qb;for(qb=0;qb<t;qb+=1){w=E=I=null;w=f[qb];E=h[qb];if(ka=n[qb])if(P=ka.width,W=ka.isVline,aa=ka.isTrend,T=ka.isGrid,$=ka.tooltext,fa=ka.value,da=ka.color,R=ka.dashStyle,Na=aa?ka.to:null,ea=ka._isStackSum,U=3<ka.zIndex?B:v,Oa=ka.label){ra=Oa.style;ja=Oa.text;ma=ra&&ra.color;va=Oa.offsetScaleIndex||0;Ja=Oa.offsetScale;if(Y=ra&&
ra.fontSize)ia=Y,-1!==ia.indexOf("px")&&(ia=ia.replace("px",""),ia=parseFloat(ia));z=ra&&ra.lineHeight;Y=ra?{fontFamily:ra.fontFamily,fontSize:ra.fontSize,lineHeight:ra.lineHeight,fontWeight:ra.fontWeight,fontStyle:ra.fontStyle}:null;z&&(na=z,-1!==na.indexOf("px")&&(na=na.replace("px",""),na=parseFloat(na)));sa=Oa.rotation;oa=Oa.x||0;bb=Oa.y||0;ta=Oa.align;Ia=Oa.verticalAlign;xa=Oa.textAlign;Ba=ga(parseInt(Oa.borderWidth,10),1);z=ea?u:3<=ka.zIndex?F:C;Oa.backgroundColor&&(Oa.labelBgClr=X({color:Oa.backgroundColor,
alpha:100*Oa.backgroundOpacity}));Oa.borderColor&&(Oa.labelBorderClr=X({color:Oa.borderColor,alpha:"100"}));za=ia?.2*ia:2;xa="left"===xa?"start":"right"===xa?"end":"middle"}g=ya="visible";La=0>ga(Ja,fa,0);c?(Fa=this.getAxisPosition(fa),Ea=aa?this.getAxisPosition(Na)||Fa:Fa,mb=Fa!==Ea?!0:!1,Sa=["M",k.x,Fa,"L",k.toX,Ea],W?a.logic.isBar&&(yb=a.yAxis[va],!ea&&!isNaN(Ja)&&0<=Ja&&1>=Ja&&(Ja=yb.min+(yb.max-yb.min)*Ja),Ra=yb.getAxisPosition(ga(Ja,fa))+oa+za*(La?-1:1)):Ra=Oa?yb=this.axisData.isOpposite||"right"===
ta?k.toX+oa:k.x+oa:yb=this.axisData.isOpposite?k.toX:k.x):(yb=this.getAxisPosition(fa)||0,Ra=aa?this.getAxisPosition(Na)||yb:yb,!aa&&!W&&0<N&&!a.logic.isBar&&(yb+=N,Ra+=N,q+=N),mb=yb!==Ra?!0:!1,Sa=["M"+yb,k.y,"L",Ra,k.toY],ya=yb+p<r||yb+p>q?"hidden":ya,W?(yb=a.yAxis[va],!ea&&!isNaN(Ja)&&0<=Ja&&1>=Ja&&(Ja=yb.min+(yb.max-yb.min)*(1-Ja)),Fa=yb.getAxisPosition(ga(Ja,fa))+bb,Fa-=(s+parseFloat(Ba))*(bb&&(0<bb?-1:1))):this.axisData.opposite||"top"===Ia&&!T?(Fa=k.y+bb,Ea="bottom"):Fa=k.toY+bb,Ea=Fa);g=c?
g:Ra+p<r||Ra+p>q?"hidden":g;if(ka&&"visible"===ya&&.1<P)mb={path:ha(Sa,P),stroke:da,"stroke-width":P,"shape-rendering":!mb&&1<=P?"crisp":void 0,"stroke-dasharray":R?R:void 0,visibility:ya},w?w.attr(mb):(w=f[qb]=b.path(mb,U).css(ka.style),m.lines=m.lines||[],m.lines[qb]=w),J&&$&&P<S&&ya&&(I=b.path({stroke:e,"stroke-width":S,ishot:!0,path:Sa,fill:e},a.layers.tracker)),I=I||w,J&&$&&I.tooltip($);else if(w||E)w&&w.remove(),w=null,f&&(f[qb]=null),m&&m.lines&&(m.lines[qb]=null);Oa&&ka&&!ka.stepped&&"visible"===
g&&Oa.text!=H&&" "!=Oa.text?(Fa=aa?"left"===ta?Fa:Ea:Ea,I=Ra-+!W*d*N+d*(oa||0),ea?(Ea=c||sa?"middle":"bottom",Fa+=c?0:ia*(La?-.4:.4),sa&&(Fa+=La?4:-2,xa=La?"end":"start")):d&&this.axisData.opposite?(Ea=sb,xa=sa?"start":"middle"):Ea=Ia,/\n|<br\s*?\/?>/ig.test(ja)&&T&&(sa?(Ea="middle",I-=d*(oa||0)):(Ea=d&&this.axisData.opposite&&!sa?"middle":Tb,Fa-=na)),mb={"class":"fusioncharts-label",text:ja,fill:Y?ma||da:null,ishot:!0,title:Oa&&(Oa.originalText||H),cursor:Oa.link?"pointer":H,x:I,y:Fa,"text-anchor":xa,
"vertical-align":Ea,direction:l,transform:" ","text-bound":[ra.backgroundColor||Oa.labelBgClr,ra.borderColor||Oa.labelBorderClr,ra.borderThickness||Ba,ra.borderPadding||za,ra.borderRadius,ra.borderDash],visibility:g,"line-height":ra.lineHeight},E?E.attr(mb):(E=h[qb]=b.text(mb,z).attr("class","fusioncharts-label"),w&&(w.label=E),m.labels=m.labels||[],m.labels[qb]=E,ka.isDataLabel&&E.click(K("dataLabelClick")).hover(K("dataLabelRollOver"),K("dataLabelRollOut"))),Y&&E.css(Y),ka.isDataLabel&&(g={text:ja,
index:M,link:Oa.link},M+=1,E.data("eventArgs",g)),sa&&E.attr("transform",["r",sa,I,Fa]),ea&&E&&L.push(E)):E&&(E.isRotationSet=!1,E.remove(),h&&(h[qb]=null),m&&m.labels&&(m.labels[qb]=null));!w&&!E||ka&&null===ka.value||(ka&&ka.isMinLabel?this.poi.min={label:E,index:qb,line:w}:ka&&ka.isMaxLabel?this.poi.max={label:E,index:qb,line:w}:ka&&ka.isZeroPlane&&(this.poi.zero={label:E,index:qb,line:w}));w=E=null}ga(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||[],f=this.bandLabels=this.bandLabels||[],h=this.relatedObj.canvasObj,k=this.primaryOffset,l=c?this.startY:this.startX,m=c?this.endY:this.endX,n=a.options.chart.hasScroll,p=this.belowBandGroup,r=this.topBandGroup,q=this.belowLabelGroup,s=this.topLabelGroup,t=this.elements||{},u=a.options.chart.textDirection,a=!1!==(a.tooltip||{}).enabled,v,B,C,F,J,K,H,N,L,z,w,E,I,g,M,P,O,U,S,W,aa,T,R,$,ea,fa,ra,da,ja,ma,Ja,Y=Da(d.length,
e.length);for(Ja=0;Ja<Y;Ja+=1){ma="visible";da=e[Ja];ja=f[Ja];if(v=d[Ja])if(B=v.tooltext,C=v.to,F=v.from,J=v.value,K=v.width,H=v.color,fa=3<v.zIndex?r:p,N=v.label){if(L=N.style)(I=L.fontSize)&&-1!==I.indexOf("px")&&(I=I.replace("px",""),parseFloat(I)),(I=L.lineHeight)&&-1!==I.indexOf("px")&&(I=I.replace("px",""),parseFloat(I)),I=L.color;U=(z=N.borderWidth)?-1!==z.indexOf("px")?z.replace("px",""):1:1;z=N.align;w=N.x;E=N.y;P=N.text;O=N.originalText;g=N.backgroundColor;M=N.backgroundOpacity;g&&(N.labelBgClr=
X({color:g,alpha:100*M}));if(g=N.borderColor)N.labelBorderClr=X({color:g,alpha:"100"});g=N.textAlign;g="left"===g?"start":"right"===g?"end":"middle";M=N.verticalAlign;ra=3<v.zIndex?s:q}S=this.getAxisPosition(ga(C,J));W=this.getAxisPosition(ga(F,J));aa=c?h.x:W;T=c?S:h.y;R=c?h.w:(this.axisData.reversed?W-S:S-W)||K||1;W=c?W-S||1:h.h;S=aa+R;R=pb(R);0>W&&(W=pb(W),T-=W);c||(ma=n?"hidden":aa+k>m||S+k<l?"hidden":ma);N&&($=c?"right"===z?h.toX+w:h.x+w:aa+R/2,ea=c?T+W/2:h.toY+E);if(!da&&v&&"visible"===ma)v=
{x:aa,y:T,width:R,height:W,fill:X(H),"stroke-width":0},da?da.attr(v):(da=e[Ja]=b.rect(v,fa),t.bands=t.bands||[],t.bands[Ja]=da),a&&B&&da.tooltip(B);else if(da&&(!v||"hidden"===ma)){t.bandLabels&&(f[Ja]=t.bandLabels[Ja]=null);da.label&&da.label.remove();e[Ja]=t.bands[Ja]=null;da.remove();continue}da&&N&&N.text&&(v={"class":"fusioncharts-label",text:P,title:O||"",fill:I,"text-bound":[L.backgroundColor||N.labelBgClr,L.borderColor||N.labelBorderClr,L.borderThickness||U,L.borderPadding||2,L.borderRadius,
L.borderDash],x:$,y:ea,"text-anchor":g,direction:u,"vertical-align":M,"line-height":L.lineHeight},ja?ja.attr(v):(ja=f[Ja]=da.label=b.text(v,ra).attr("class","fusioncharts-label"),L&&ja.css(L),t.bandLabels=t.bandLabels||[],t.bandLabels[Ja]=ja))}},drawAxisName:function(){var a=this.axisData,b=a.title||{},c=b&&b.style,d=b&&b.className,e=b.align,f=b.centerYAxisName||!1,h=this.renderer.paper,k=this.isVertical,l=this.relatedObj.canvasObj,m=ga(a.offset,0)+ga(b.margin,0),n=b.text||"",p=this.name||void 0,
a=a.opposite,r=this.layerBelowDataset,r=r.nameGroup=r.nameGroup||h.group("axis-name",r),q=ga(b.rotation,a?90:270),s=k?a?l.toX+m:l.x-m:(l.x+l.toX)/2,t={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},v,f=k?"low"===e?l.toY:f?(l.y+l.toY)/2:this.renderer.chartHeight/2:l.toY+m;n?(!isNaN(q)&&q&&k&&(v=c.fontSize,v=-1!=v.indexOf("px")?v.replace("px",""):v,a?(s+=parseFloat(v),v=270===q?"bottom":"top"):(s-=parseFloat(v),v=270===q?"top":"bottom")),
this.renderer.addCSSDefinition("."+d,t),d={"class":d,x:0,y:0,text:n,fill:c.color,direction:this.renderer.options.chart.textDirection,"text-anchor":"low"===e?90==q?"end":"start":"middle","vertical-align":k?q?v:"middle":a?sb:"top",transform:k?"t"+s+","+f+"r"+q:"t"+s+","+f,"font-size":c.fontSize},b.originalText&&(d.title=b.originalText),p?p.attr(d):p=this.name=h.text(d,r),setTimeout(function(){p.attr({"line-height":c.lineHeight,"text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,
c.borderRadius,c.borderDash]})},0)):p&&p.remove();this.elements.name=p},drawLine:function(){var a=this.axisData,b=this.renderer.paper,c=this.min,d=this.max,e=this.isVertical,f=a.opposite,h=this.layerBelowDataset,h=this.lineGroup=this.lineGroup||b.group("axis-lines",h),k=a.lineColor,l=a.lineThickness,m=a.lineEndExtension||0,n=a.lineStartExtension||0,a=this.relatedObj.canvasObj;e?(c=this.getAxisPosition(c)-n,m=this.getAxisPosition(d)+m,d=e=f?a.toX+l/2:a.x-l/2):(d=a.x-n,e=a.toX+m,c=m=f?a.y-l/2:a.toY+
l/2);b=b.path({path:["M",d,c,"L",e,m],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()}};f.prototype.constructor=f;F("renderer.cartesian",{drawCanvas:function(){var a=this.options,b=a.chart||{},c=b.plotBackgroundColor,d=this.paper,e=this.elements,f=e.canvas,h=e.canvas3DBase,k=e.canvas3dbaseline,h=e.canvasBorder,l=e.canvasBg,n=this.canvasTop,r=this.canvasLeft,q=this.canvasWidth,s=this.canvasHeight,t=ga(b.plotBorderRadius,0),l=b.plotBorderWidth,
v=.5*l,u=b.plotBorderColor,B=b.isBar,C=b.is3D,F=b.use3DLighting,J=b.showCanvasBg,K=b.canvasBgDepth,H=b.showCanvasBase,N=b.canvasBaseColor3D,L=b.canvasBaseDepth,M=b.plotShadow,O=p&&0===l&&M&&M.enabled,z=b.xDepth||0,a=b.yDepth||(a[va]&&a[va].isScroll?n:0),b=this.layers,w=b.background,E=b.dataset;b.tracker=b.tracker||d.group("hot").insertAfter(E);b.datalabels=b.datalabels||d.group("datalabels").insertAfter(E);b=b.canvas=b.canvas||d.group("canvas").insertAfter(w);h||(e.canvasBorder=d.rect({x:r-v,y:n-
v,width:q+l,height:s+l,r:t,"stroke-width":l,stroke:u,"stroke-linejoin":2<l?"round":"miter"},b).shadow(M));e["clip-canvas"]=[Da(0,r-z),Da(0,n-a),Da(1,q+2*z),Da(1,s+a)];e["clip-canvas-init"]=[Da(0,r-z),Da(0,n-a),1,Da(1,s+2*a)];C&&(J&&(l=B?e.canvasBg=d.path(["M",r,",",n,"L",r+1.2*K,",",n-K,",",r+q-K,",",n-K,",",r+q,",",n,"Z"],b):e.canvasBg=d.path(["M",r+q,",",n,"L",r+q+K,",",n+1.2*K,",",r+q+K,",",n+s-K,",",r+q,",",n+s,"Z"],b),l.attr({"stroke-width":0,stroke:"none",fill:X(c)})),H&&(h=B?e.canvas3DBase=
d.cubepath(r-z-L-1,n+a+1,L,s,z+1,a+1,b):e.canvas3DBase=d.cubepath(r-z-1,n+s+a+1,q,L,z+1,a+1,b),h.attr({stroke:"none","stroke-width":0,fill:[N.replace(fa,La),!F]}),k||(k=e.canvas3dbaseline=d.path(void 0,b)),k.attr({path:B?["M",r,n,"V",s+n]:["M",r,n+s,"H",q+r],stroke:m.tintshade(N.replace(fa,La),.05).rgba})));!f&&c&&(e.canvas=d.rect({x:r,y:n,width:q,height:s,r:t,"stroke-width":0,stroke:"none",fill:X(c)},b).shadow(O))},drawAxes:function(){var a=this.logic,b=this.options,c=this.paper,d=this.layers,e=
d.dataset,h=d.layerBelowDataset=d.layerBelowDataset||c.group("axisbottom").trackTooltip(!0),k=d.layerAboveDataset=d.layerAboveDataset||c.group("axistop").trackTooltip(!0),c=this.xAxis=[],d=this.yAxis=[];h.insertBefore(e);k.insertAfter(e);if(b.xAxis&&b.xAxis.length)for(e=0,h=b.xAxis.length;e<h;e+=1)c[e]=this.xAxis[e]=new f(b.xAxis[e],this,a.isBar);else c[0]=this.xAxis[0]=new f(b.xAxis,this,a.isBar);if(b.yAxis)for(e=0,h=b.yAxis.length;e<h;e+=1)d[e]=this.yAxis[e]=new f(b.yAxis[e],this,!a.isBar,!a.isBar);
e=0;for(h=d.length;e<h;e+=1)d[e].axisData&&(d[e].axisData.title&&(d[e].axisData.title.className="fusioncharts-yaxis-"+e+"-title"),d[e].axisData.labels&&(d[e].axisData.labels.className="fusioncharts-yaxis-"+e+"-gridlabels")),d[e].draw();e=0;for(h=c.length;e<h;e+=1)c[e].axisData&&(c[e].axisData.title&&(c[e].axisData.title.className="fusioncharts-xaxis-"+e+"-title"),c[e].axisData.labels&&(c[e].axisData.labels.className="fusioncharts-xaxis-"+e+"-gridlabels")),c[e].draw()},drawScroller:function(){var a=
this,b=a.options,c=a.paper,d=a.layers,e=a.xAxis["0"]||{},f=e.axisData||{},h=f.scroll||{},k=a.canvasTop,l=a.canvasLeft,r=a.canvasWidth,p=a.canvasHeight,s=a.canvasBorderWidth,t=s||(f.showLine?f.lineThickness:0),v=s||f.lineStartExtension,f=s||f.lineEndExtension,s=b.chart.useRoundEdges,u,B,C,F,J,K,H,N,L,M,O,U,z,w,E,I=d.dataset,g=d.datalabels,S=d.tracker;F=d.layerAboveDataset;var P,X;h.enabled&&(P=d.scroll=d.scroll||c.group("scroll").insertAfter(F),F=h.scrollRatio,b=ga(b[va].xAxisScrollPos,h.startPercent),
J=h.viewPortMax,K=h.viewPortMin,B=h.vxLength,H=Lb(B),N=h.showButtons,L=h.height,M=h.padding,O=h.color,U=h.flatScrollBars,B=h.windowedCanvasWidth=e.getAxisPosition(B),u=h.fullCanvasWidth=e.getAxisPosition(J-K)-B,C=Ia(b*u),z=a.fusionCharts.jsVars._reflowData,w={hcJSON:{_FCconf:{xAxisScrollPos:0}}},E=w.hcJSON._FCconf,d.scroller=c.scroller(l-v,k+p+t+M-!!t,r+v+f,L,!0,{showButtons:N,displayStyleFlat:U,scrollRatio:F,scrollPosition:b},P).data("fullCanvasWidth",u).data("windowedCanvasWidth",B).attr({"scroll-display-style":U,
fill:O,r:s&&2||0}).scroll(function(b){var c;C=-Ia(b*u);I&&I.transform(["T",C,0]);g&&g.transform(["T",C,0]);S&&S.transform(["T",C,0]);e.setOffset&&e.setOffset(C);c={position:b,direction:b-h.lastPos||0,vxLength:H};E.xAxisScrollPos=h.lastPos=b;n(z,w,!0);if(0!==c.direction)for(X=0;X<a.datasets.length;X++)a[a.datasets[X].drawPlot+"Scroll"]&&a[a.datasets[X].drawPlot+"Scroll"].call(a,a.plots[X],a.datasets[X],c)}),function(){var b;m.eve.on("raphael.scroll.start."+d.scroller.id,function(c){b=c;q.raiseEvent("scrollstart",
{scrollPosition:c},a.logic.chartInstance)});m.eve.on("raphael.scroll.end."+d.scroller.id,function(c){q.raiseEvent("scrollend",{prevScrollPosition:b,scrollPosition:c},a.logic.chartInstance)})}());return h.enabled},finalizeScrollPlots:function(){var b=this,c=b.container,d=b.elements,e=b.layers,f=e.scroller,h=e.dataset,k=e.datalabels,e=e.tracker,l,m={},n,r=b.xAxis["0"]||{},p=(r.axisData||{}).scroll||{},t=ga(b.options[va].xAxisScrollPos,p.startPercent),u=p.fullCanvasWidth,B,C=b.logic.hcJSON.chart.animation,
F=b.logic.hcJSON.xAxis.scroll.startPercent;p.enabled&&(h.attr({"clip-rect":d["clip-canvas"]}),k.attr({"clip-rect":d["clip-canvas"]}),e.attr({"clip-rect":d["clip-canvas"]}),d=function(c){var d=b.elements.canvas,e=l.left,h=l.top,k=c.state,r=ta&&a.getTouchEvent(c)||v;c=c.originalEvent;e=(c.clientX||c.pageX||r.pageX)-e;h=(c.clientY||c.pageY||r.pageY)-h;switch(k){case "start":n=d.isPointInside(e,h);m.ox=n&&e||null;if(!n)return!1;m.prevScrollPosition=f.attrs["scroll-position"];q.raiseEvent("scrollstart",
{scrollPosition:m.prevScrollPosition},b.logic.chartInstance);break;case "end":q.raiseEvent("scrollend",{prevScrollPosition:m.prevScrollPosition,scrollPosition:m.scrollPosition},b.logic.chartInstance);n=!1;m={};break;default:if(!n)break;d=e-m.ox;m.ox=e;m.scrollPosition=f.attrs["scroll-position"]-d/u;f.attr({"scroll-position":m.scrollPosition})}},ta&&(l=s(c),c&&(U(c,"pointerdrag",d),N(c,"pointerdrag",d))),0<t&&(B=-Ia(t*u),h&&h.transform(["T",B,0]),e&&e.transform(["T",B,0]),r.setOffset&&r.setOffset(B),
C&&F?b.animationCompleteQueue.push({fn:function(){k&&k.transform(["T",B,0])},scope:b}):k&&k.transform(["T",B,0])))},drawPlotColumn:function(a,b,c){var d=this,f=a.data,h=f.length,k=a.items,l=a.graphics||(a.graphics=[]),n=d.paper,p=d.smartLabel,q=d.logic,s=d.layers,t=d.options,v=d.elements,u=t.chart,B=!1!==(t.tooltip||{}).enabled,C,F=d.definition.chart,H=t.plotOptions.series,N=H.dataLabels.style,L=d.xAxis[b.xAxis||0],M=d.yAxis[b.yAxis||0],U=d.chartWidth,W=d.chartHeight,aa=M.axisData.reversed,T=q.isLog,
z=q.is3D,w=q.isStacked,E=q.isWaterfall,I=q.isCandleStick,g=r(L.axisData.scroll,{}),ka=c||{},P=g.enabled,$=ga(ka.position,t[va].xAxisScrollPos,g.startPercent),da=ka.vxLength||Lb(g.vxLength),fa=ka.scrollStart||Da(0,Ia((h-da)*$)-1)||0,ja=ka.scrollEnd||Ra(h,fa+da+2)||h,ma=u.canvasBorderOpacity=m.color(u.plotBorderColor).opacity,ia=d.canvasBorderWidth,R=u.isCanvasBorder=0!==ma&&0<ia,Na,ea=c!==Fa?0:isNaN(+H.animation)&&H.animation.duration||1E3*H.animation,Oa=b.numColumns||1,ra=b.columnPosition||0,ha=u.use3DLighting,
na=!1===b.visible?"hidden":"visible",sa=u.overlapColumns,Ja=L.getAxisPosition(0),Y=L.getAxisPosition(1)-Ja,oa=F&&F.plotspacepercent,ta=ga(F&&F.plotpaddingpercent),xa=H.groupPadding,za=H.maxColWidth,bb=(1-.01*oa)*Y||Ra(Y*(1-2*xa),za*Oa),Ea=bb/2,ya=bb/Oa,Sa=Ra(ya-1,1<Oa?sa||ta!==Fa?0<ta?ya*ta/100:0:4:0),yc=ra*ya-Ea+Sa/2,La=M.max,yb=M.min,Xa=0<La&&0<=yb,cb=0>=La&&0>yb,gb=0<La&&0>yb,mb=cb||aa&&Xa?La:T||Xa?yb:0,fb=M.yBasePos=M.getAxisPosition(mb),tb,rb=ga(u.useRoundEdges,0),qb=s.dataset=s.dataset||n.group("dataset-orphan"),
hb=s.datalabels=s.datalabels||n.group("datalabels").insertAfter(qb),sb=s.tracker,vb=s.rectHot=s.rectHot||n.group("col-hot",sb),eb=d.canvasTop,Eb=d.canvasLeft,Mb=d.canvasWidth,Sc=d.canvasBottom,Tb=d.canvasRight,Ib,Qb,Ub,Yc,lc,mc,Ic,Jb,Yb,xb,nb,Zb,zb,bc,Ua,rc,Za,Wa,Ca,Cc,Qa,Cb,zc={fontFamily:N.fontFamily,fontSize:N.fontSize,lineHeight:N.lineHeight,fontWeight:N.fontWeight,fontStyle:N.fontStyle,color:N.color},$b,jc,kc,Nc,ob,$a,Nb,Wb,Ma,Oc,Fc,Vb,dc,ec,hc,fc,Ob,qa=ga(F.variableindex,1),Xb=0,gc=0,Ka=function(a){O.call(this,
d,a)},Ab=function(a,b){return function(c){a.attr(b);O.call(this,d,c,"DataPlotRollOver")}},kb=function(a,b){return function(c){a.attr(b);O.call(this,d,c,"DataPlotRollOut")}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",zc);hb.attr("class","fusioncharts-datalabels");ea&&(!c&&hb.attr({transform:"...t"+U+","+W}),d.animationCompleteQueue.push({fn:function(){hb.attr({transform:"...t"+-U+","+-W})},scope:d}));ya-=Sa;P&&fa>ja-da-2&&(fa=Da(0,ja-da-2));w&&(ec=qb.shadows||(qb.shadows=n.group("shadows",
qb).toBack()));Nb=qb.column||(qb.column=n.group("columns",qb));I||z||P||Nb.attrs["clip-rect"]||Nb.attr({"clip-rect":v["clip-canvas"]});E&&Nb.toBack();if(z)for(lc=u.xDepth||0,mc=u.yDepth||0,Wb=Nb.negative=Nb.negative||n.group("negative-values",Nb),Fc=Nb.column=Nb.column||n.group("positive-values",Nb),Oc=Nb.zeroPlane,!Oc&&0>yb&&0<=La&&(Oc=Nb.zeroPlane=n.group("zero-plane",Nb).insertBefore(Fc),Qb=u.zeroPlaneColor,Ub=u.zeroPlaneBorderColor,Yc=u.zeroPlaneShowBorder,v.zeroplane=n.cubepath(Eb-lc,fb+mc,Mb,
1,lc,mc,Oc).attr({fill:[Qb,!ha],stroke:Ub||"none","stroke-width":Yc?1:0})),(Ma=Wb.data("categoryplots"))||(Wb.data("categoryplots",Array(h)),Ma=Wb.data("categoryplots")),(Vb=Fc.data("categoryplots"))||(Fc.data("categoryplots",Array(h)),Vb=Fc.data("categoryplots")),xb=0;xb<h;xb+=1)Ma[xb]=Ma[xb]||n.group(Wb),Vb[xb]=Vb[xb]||n.group(Fc);else dc=Nb;p.setStyle({fontFamily:N.fontFamily,fontSize:N.fontSize,lineHeight:N.lineHeight,fontWeight:N.fontWeight,fontStyle:N.fontStyle});for(xb=fa;xb<ja;xb+=1){nb=f[xb];
Ua=nb.y;C=nb.toolText;Ib=a.index+"_"+xb;ob=$a=null;if(null===Ua){if(Yb=k[xb])ob=Yb.graphic,z||ob.attr({height:0})}else{Ic=!1;bc=ga(nb.x,xb);Zb=nb.link;zb=K(nb.borderWidth)||0;Nc=nb._FCW*Y;Za=L.getAxisPosition(nb._FCX)||L.getAxisPosition(bc)+yc;rc=nb.previousY;Ca=M.getAxisPosition(rc||mb);Wa=M.getAxisPosition(Ua+(rc||0));Qa=pb(Wa-Ca);Cb=Nc||ya;gc=parseInt(qa)?Xb++:xb;Ob={index:gc,link:Zb,value:nb.y,displayValue:nb.displayValue,categoryLabel:nb.categoryLabel,toolText:nb.toolText,id:a.userID,datasetIndex:a.index,
datasetName:a.name,visible:a.visible};if(z){0>Ua&&(Wa=Ca,Ic=!0);dc=0>Ua?Ma:Vb;(Yb=k[xb])||(Yb=k[xb]={index:xb,value:Ua,graphic:n.cubepath(dc[xb]),dataLabel:null,tracker:null,hot:null});ob=Yb.graphic;jc=kc={};nb.hoverEffects&&(jc={fill:[X(nb.color),!ha],stroke:zb&&X(nb.borderColor)||"NONE","stroke-width":zb},$b=nb.rolloverProperties,kc={fill:[X($b.color),!ha],stroke:$b.borderWidth&&X($b.borderColor)||"NONE","stroke-width":$b.borderWidth});ob.attr({cubepath:[Za-lc,ea?fb+mc:Wa+mc,Cb,ea?0:Qa,lc,mc],fill:[X(nb.color),
!ha],ishot:!B,stroke:zb&&X(nb.borderColor)||"NONE","stroke-width":zb,visibility:na}).shadow(H.shadow&&nb.shadow,ec).data("BBox",{height:Qa,width:Cb,x:Za,y:Wa});ea&&ob.animate({cubepath:[Za-lc,Wa+mc,Cb,Qa,lc,mc]},ea,"normal",d.getAnimationCompleteFn());if(Zb||B)!w&&Qa<S&&(Wa-=(S-Qa)/2,Qa=S),Yb.tracker||(Yb.tracker=n.cubepath(vb)),$a=Yb.tracker,$a.attr({cubepath:[Za-lc,Wa+mc,Cb,Qa,lc,mc],cursor:Zb?"pointer":"",stroke:zb&&e||"NONE","stroke-width":zb,fill:e,ishot:!0,visibility:na});($a||ob).data("eventArgs",
Ob).data("groupId",Ib).click(Ka).hover(Ab(ob,kc),kb(ob,jc)).tooltip(C);($a||ob)._.cubetop.data("eventArgs",Ob).data("groupId",Ib).click(Ka).hover(Ab(ob,kc),kb(ob,jc)).tooltip(C);($a||ob)._.cubeside.data("eventArgs",Ob).data("groupId",Ib).click(Ka).hover(Ab(ob,kc),kb(ob,jc)).tooltip(C);w&&Ic&&(ob.toBack(),$a&&$a.toBack())}else{Jb=!1;if(!T&&!aa&&0>Ua||!T&&aa&&0<Ua)Wa=Ca,Jb=!0;aa&&!gb&&0<Ua&&(Wa=Ca-Qa,Jb=!1);E&&0>Ua&&Ba(rc)&&(Wa-=Qa,Jb=!0);I||P||(J(Wa)<=eb&&(Qa-=eb-Wa-+R,Wa=eb-+R),Ia(Wa+Qa)>=Sc&&(Qa-=
Ia(Wa+Qa)-Sc+ +!!zb+ +R,u.xAxisLineVisible&&!R&&(Qa+=1)),1>=zb&&(Ia(Za)<=Eb&&(Cb+=Za,Za=Eb-zb/2+ +!!zb-+R,Cb-=Za),Ia(Za+Cb)>=Tb&&(Cb=Tb-Za+zb/2-+!!zb+ +R)));hc=m.crispBound(Za,Wa,Cb,Qa,zb);Za=hc.x;Wa=hc.y;Cb=hc.width;Qa=hc.height;if(!I&&R&&(!Ba(rc)||E&&rc===Ua&&Ua===nb._FCY))if(cb&&!aa)Na=Wa-(eb-zb/2),Qa+=Na,fb=Wa-=Na;else if(T||Xa||aa&&cb)Qa=Sc-Wa+zb/2,fb=Wa+Qa;E&&rc&&0<zb&&0!==H.connectorOpacity&&1===H.connectorWidth&&H.connectorDashStyle&&(--Qa,0>Ua&&(Wa+=1));1>Qa&&(Wa+=0>Ua?1:0===Ua?0:-(1-Qa),
Qa=1);b._columnWidth=Cb;if(!(Yb=k[xb])){Yb=k[xb]={index:gc,value:Ua,width:Cb,graphic:null,valueBelowPlot:Jb,dataLabel:null,tracker:null};tb=0;ea||(fb=Wa,tb=Qa||1);jc=kc={};nb.hoverEffects&&(jc={fill:X(nb.color),stroke:X(nb.borderColor),"stroke-width":zb,"stroke-dasharray":nb.dashStyle},$b=nb.rolloverProperties,kc={fill:X($b.color),stroke:X($b.borderColor),"stroke-width":$b.borderWidth,"stroke-dasharray":$b.dashStyle});fc={x:Za,y:fb,width:Cb,height:tb,r:rb,ishot:!B,fill:X(nb.color),stroke:X(nb.borderColor),
"stroke-width":zb,"stroke-dasharray":nb.dashStyle,"stroke-linejoin":"miter",visibility:na};ob?ob.attr(fc):ob=Yb.graphic=n.rect(fc,dc);ob.shadow(H.shadow&&nb.shadow,ec).data("BBox",hc);ea&&ob.animate({y:Wa,height:Qa||1},ea,"normal",d.getAnimationCompleteFn());if(Zb||B)!w&&Qa<S&&(Wa-=(S-Qa)/2,Qa=S),fc={x:Za,y:Wa,width:Cb,height:Qa,r:rb,cursor:Zb?"pointer":"",stroke:e,"stroke-width":zb,fill:e,ishot:!0,visibility:na},($a=Yb.tracker)?$a.attr(fc):$a=Yb.tracker=n.rect(fc,vb);$a=Yb.tracker;($a||ob).data("eventArgs",
Ob).data("groupId",Ib).click(Ka).hover(Ab(ob,kc),kb(ob,jc)).tooltip(C)}}Cc=d.drawPlotColumnLabel(a,b,xb,Za,Wa)}Cc&&l.push(Cc);ob&&l.push(ob);$a&&l.push($a);d.drawTracker&&d.drawTracker.call(d,a,b,xb)}a.visible=!1!==b.visible;return a},drawPlotColumnScroll:function(a,b,c){var d=a.data.length,e=a.items,f;f=c.vxLength;var h=Da(0,Ia((d-f)*c.position)-1)||0,d=Ra(d,h+f+2)||d;h>d-f-2&&(h=Da(0,d-f-2));c.scrollEnd=d;for(f=h;f<d;f++)if(!e[f]){c.scrollStart=f;this.drawPlotColumn(a,b,c);break}},drawPlotColumnLabel:function(a,
b,c,d,e,f){var h=this.options,k=this.logic;d=h.chart;var l=this.paper,m=this.smartLabel,n=this.layers,h=h.plotOptions.series.dataLabels.style,p=1===d.rotateValues?270:0,q=this.canvasHeight,s=this.canvasTop,t=a.data[c];a=a.items[c];var v=d.valuePadding+2,u=a.graphic;c=a.dataLabel;var B=r(a.valueBelowPlot,0>t.y),C=k.isStacked,k=k.is3D,F=d.xDepth||0,J=d.yDepth||0,K=t.displayValue;b=!1===b.visible?"hidden":"visible";var N=d.placeValuesInside,L;f=f||n.datalabels;Ba(K)&&K!==H&&null!==t.y?(a._state&&a._state.labelWidth||
(m=m.getOriSize(K),a._state=p?{labelWidth:m.height,labelHeight:m.width}:{labelWidth:m.width,labelHeight:m.height}),u=u.data("BBox"),n=u.height,m=L=a._state.labelHeight+v,v=.5*L+v,u=u.x+.5*u.width,L=B?s+q-(e+n):e-s,C?(e=Ra(s+q-.5*m,e+.5*n+(J||0)),e=Da(s+.5*m,e),u-=F):N?n>=m?(e+=B?n-v:v,t._valueBelowPoint=1,k&&(u-=F,e+=J)):L>=m?(e+=B?n+v:-v,k&&B&&(u-=F,e+=J)):(e+=B?n-v:v,t._valueBelowPoint=1,k&&(u-=F,e+=J)):L>=m?(e+=B?n+v:-v,k&&(B?(u-=F,e+=J):u-=F/2)):(e+=B?n-v:v,t._valueBelowPoint=1,k&&(u-=F,e+=J)),
c?c.attr({x:u,y:e,visibility:b}):c=a.dataLabel=l.text({text:K,"class":"fusioncharts-label",x:u,y:e,fill:h.color,"font-size":h.fontSize,direction:d.textDirection,visibility:b},f).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:H});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,f=d.length,h=a.items,k=a.graphics=[],l=c.paper,n=c.logic,r=c.layers,p=c.options,q=c.elements,s=p.chart,t=!1!==(p.tooltip||{}).enabled,v,u=c.definition.chart,p=p.plotOptions.series,B=p.dataLabels.style,C={fontFamily:B.fontFamily,fontSize:B.fontSize,lineHeight:B.lineHeight,fontWeight:B.fontWeight,fontStyle:B.fontStyle},B=c.xAxis[b.xAxis||0],F=c.yAxis[b.yAxis||0],H=n.is3D,n=n.isStacked,N=s.canvasBorderOpacity=m.color(s.plotBorderColor).opacity,L=c.canvasBorderWidth,
N=s.isCanvasBorder=0!==N&&0<L,L=isNaN(+p.animation)&&p.animation.duration||1E3*p.animation,M=b.numColumns||1,U=b.columnPosition||0,W=s.use3DLighting,aa=!1===b.visible?"hidden":"visible",z=s.overlapColumns,w=B.getAxisPosition(0),w=B.getAxisPosition(1)-w,E=u&&u.plotspacepercent,u=ga(u&&u.plotpaddingpercent),I=p.groupPadding,g=p.maxColWidth,E=(1-.01*E)*w||Ra(w*(1-2*I),g*M),w=E/2,E=E/M,z=Ra(E-1,1<M?z||u!==Fa?0<u?E*u/100:0:4:0),M=E-z,U=U*E-w+z/2,ka=F.max,P=F.min,z=F.getAxisPosition(0>ka&&0>P?ka:0<ka&&
0<P?P:0),u=ga(s.useRoundEdges,0),T=c.canvasTop,w=c.canvasLeft,$=c.canvasHeight,E=c.canvasRight,da=c.chartWidth,fa=c.chartHeight,ja,ma,R,Na,ea,Oa,ra,ha,ia,na,I=F.axisData.effectiveZeroPlaneThickness;ra=r.dataset=r.dataset||l.group("dataset-orphan");var Ja=r.datalabels=r.datalabels||l.group("datalabels").insertAfter(ra),r=r.tracker,Y,sa,va,oa,Da,ta,g=function(a){O.call(this,c,a)},xa=function(a,b){return function(d){a.attr(b);O.call(this,c,d,"DataPlotRollOver")}},za=function(a,b){return function(d){a.attr(b);
O.call(this,c,d,"DataPlotRollOut")}},Ea;c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",C);Ja.attr("class","fusioncharts-datalabels");L&&(c.animationCompleteQueue.push({fn:function(){Ja.attr({transform:"...t"+-da+","+-fa})},scope:c}),Ja.attr({transform:"...t"+da+","+fa}));n&&(Da=ra.shadows||(ra.shadows=l.group("shadows",ra).toBack()));ha=ra.column=ra.column||l.group("bars",ra);if(H)for(ja=s.xDepth||0,ma=s.yDepth||0,C=ha.negative=ha.negative||l.group("negative-values",ha),ra=ha.column=
ha.column||l.group("positive-values",ha),va=ha.zeroPlane,!va&&0>P&&0<=ka&&(va=ha.zeroPlane=l.group("zero-plane",ha).insertBefore(ra),na=s.zeroPlaneColor,ka=s.zeroPlaneBorderColor,P=s.zeroPlaneShowBorder,q.zeroplane=l.cubepath(z-ja,T+ma,1,$,ja,ma,va).attr({fill:[na,!W],stroke:ka||"none","stroke-width":P?1:0})),(va=C.data("categoryplots"))||(C.data("categoryplots",Array(f)),va=C.data("categoryplots")),(na=ra.data("categoryplots"))||(ra.data("categoryplots",Array(f)),na=ra.data("categoryplots")),q=0;q<
f;q+=1)va[q]=va[q]||l.group(C),na[q]=na[q]||l.group(ra);else ha.attrs["clip-rect"]||ha.attr({"clip-rect":q["clip-canvas"]}),oa=ha;q=0;for(C=f-1;q<f;q+=1,--C){T=d[q];P=T.y;Y=$=null;if(null===P){if(Oa=h[q])Y=Oa.graphic,H||Y.attr({width:0})}else{ha=ga(T.x,q);ra=T.link;v=T.toolText;ka=K(T.borderWidth)||0;ha=B.getAxisPosition(ha)+U;Oa=(R=T.previousY)?F.getAxisPosition(R):z;ia=F.getAxisPosition(P+(R||0));R=pb(ia-Oa);0<P&&(ia=Oa);Ba(b.previousData)&&Ba(b.previousData[q].y)&&n&&1>pb(b.previousData[q].y)*
F.pixelValueRatio&&(0<=P?ia+=1:--ia);sa={index:q,link:ra,value:T.y,displayValue:T.displayValue,categoryLabel:T.categoryLabel,toolText:T.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};if(H){oa=0>P?va:na;(Oa=h[q])||(Oa=h[q]={index:q,value:P,graphic:l.cubepath(oa[C]),dataLabel:null,tracker:null});Y=Oa.graphic;ea=Na={};T.hoverEffects&&(ea={fill:[X(T.color),!W],stroke:ka&&X(T.borderColor)||"NONE","stroke-width":ka},Na=T.rolloverProperties,Na={fill:[X(Na.color),!W],stroke:Na.borderWidth&&
X(Na.borderColor)||"NONE","stroke-width":Na.borderWidth});Y.attr({cubepath:[L?z-ja:ia-ja,ha+ma,L?0:R,M,ja,ma],fill:[X(T.color),!W],ishot:!t,stroke:ka&&X(T.borderColor)||"NONE","stroke-width":ka,"stroke-dasharray":T.dashStyle,cursor:ra?"pointer":"",visibility:aa}).shadow(p.shadow&&T.shadow,Da).data("BBox",{height:M,width:R,x:ia,y:ha});L&&Y.animate({cubepath:[ia-ja,ha+ma,R,M,ja,ma]},L,"normal",c.getAnimationCompleteFn());if(ra||t)!n&&R<S&&(ia-=(S-R)/2,R=S),Oa.tracker||(Oa.tracker=l.cubepath(r)),$=Oa.tracker,
$.attr({cubepath:[ia-ja,ha+ma,R,M,ja,ma],cursor:ra?"pointer":"",stroke:ka&&e||"NONE","stroke-width":ka,fill:e,ishot:!0});($||Y).data("eventArgs",sa).click(g).hover(xa(Y,Na),za(Y,ea)).tooltip(v);($||Y)._.cubetop.data("eventArgs",sa).click(g).hover(xa(Y,Na),za(Y,ea)).tooltip(v);($||Y)._.cubeside.data("eventArgs",sa).click(g).hover(xa(Y,Na),za(Y,ea)).tooltip(v);if(!n||n&&0>P)Y.toBack(),$&&$.toBack()}else{J(ia)<=w&&(R+=ia,ia=w+ka/2+.2,s.xAxisLineVisible&&!N&&--ia,R-=ia);Ia(ia+R)>=E&&(R=E-ia-ka/2-.2);
ta=m.crispBound(ia,ha,R,M,ka);ia=ta.x;ha=ta.y;R=ta.width;Ea=ta.height;1>=R&&(R=1,ia+=0>P?-R:0===P?0:1<I?R:0);(Oa=h[q])||(Oa=h[q]={index:q,value:P,height:Ea,graphic:null,dataLabel:null,tracker:null});Y=Oa.graphic;ea=Na={};T.hoverEffects&&(ea={fill:X(T.color),stroke:X(T.borderColor),"stroke-width":ka,"stroke-dasharray":T.dashStyle},Na=T.rolloverProperties,Na={fill:X(Na.color),stroke:X(Na.borderColor),"stroke-width":Na.borderWidth,"stroke-dasharray":Na.dashStyle});P={x:L?z:ia,y:ha,width:L?0:R||1,height:Ea,
r:u,fill:X(T.color),ishot:!t,stroke:X(T.borderColor),"stroke-width":ka,"stroke-dasharray":T.dashStyle,"stroke-linejoin":"miter",cursor:ra?"pointer":"",visibility:aa};Y?Y.attr(P):Y=Oa.graphic=l.rect(P,oa);Y.shadow(p.shadow&&T.shadow,Da).data("BBox",ta);L&&Y.animate({x:ia,width:R||1},L,"normal",c.getAnimationCompleteFn());if(ra||t)!n&&R<S&&(ia-=(S-R)/2,R=S),$=Oa.tracker,P={x:ia,y:ha,width:R,height:M,r:u,cursor:ra?"pointer":"",stroke:e,"stroke-width":ka,fill:e,ishot:!0},$?$.attr(P):$=Oa.tracker=l.rect(P,
r),$.data("eventArgs",sa);($||Y).data("eventArgs",sa).click(g).hover(xa(Y,Na),za(Y,ea)).tooltip(v)}v=c.drawPlotBarLabel(a,b,q,ia,ha)}v&&k.push(v);Y&&k.push(Y);$&&k.push($);c.drawTracker&&c.drawTracker.call(c,a,b,q)}a.visible=!1!==b.visible;return a},drawPlotBarLabel:function(a,b,c,d,e,f){var h=this.options,k=this.logic,l=h.chart,m=this.paper,n=this.layers,p=h.plotOptions.series.dataLabels.style,h=this.canvasLeft,r=this.canvasWidth,q=a.data[c],s=a.items[c];a=l.valuePadding+2;var t=s.graphic;c=s.dataLabel;
var v=0>q.y,u=k.isStacked,k=k.is3D,B=l.xDepth||0,C=l.yDepth||0,F=q.displayValue;b=!1===b.visible?"hidden":"visible";var J=l.placeValuesInside;f=f||n.datalabels;if(Ba(F)&&F!==H&&null!==q.y){c||(c=s.dataLabel=m.text({"class":"fusioncharts-label",text:F,"font-size":p.fontSize,title:q.originalText||"",fill:p.color,direction:l.textDirection,x:0,y:0,"line-height":p.lineHeight},f).attr("text-bound",[p.backgroundColor,p.borderColor,p.borderThickness,p.borderPadding,p.borderRadius,p.borderDash]));n=c.getBBox();
f=t.data("BBox");p=f.height;m=f.width;f=u?"middle":v?J?"start":"end":J?"end":"start";l=v?d-h:h+r-(d+m);n=n.width;n+=a;p=e+.5*p;q=d+(v?0:m);e=v?d-h:h+r-(d+m);if(u)q=Da(h+.5*n,q+.5*(v?m:-m)),q=Ra(h+r-.5*n,q),q-=k?B:0,p+=k?C:0;else if(J?m>=n?(q+=v?a:-a,k&&(p+=C,q-=B)):n<l?(q+=v?-a:a,f=v?"end":"start",k&&v&&(q-=B)):(v?(q=d+m+Da(n-d-m+h,0)-a,f="end",q-=k?B:0):(q=d-Da(n-(h+r-d),0)+a,f="start"),k&&(q-=B,p+=C)):e>=n?(q+=v?-a:a,k&&v&&(q-=B,p+=B)):(q+=v?a+n:-(a+n),k&&(q-=B,p+=C)),q>h+r||q<h)q=h+4,f="start";
c.attr({x:q,y:p,"text-anchor":f,visibility:b})}else c&&c.attr({text:H});return c},drawPlotBar3d:function(a,b){this.drawPlotBar.call(this,a,b)},drawPlotLine:function(a,c){var d=this,f=d.paper,h=d.elements,k=d.options,l=k.chart,n=d.logic,p=k.plotOptions.series,q=a.items,r=a.graphics=a.graphics||[],s,v=d.xAxis[c.xAxis||0],t=d.yAxis[c.yAxis||0],u=n.multisetRealtime||n.dragExtended,B=n.isWaterfall,C,F,J,H,N,L=0,M=!1!==(k.tooltip||{}).enabled,U,S=isNaN(+p.animation)&&p.animation.duration||1E3*p.animation,
W,z=p.dataLabels.style,w={fontFamily:z.fontFamily,fontSize:z.fontSize,lineHeight:z.lineHeight,fontWeight:z.fontWeight,fontStyle:z.fontStyle},E=l.xDepth||0,I=l.yDepth||0,g=l.series2D3Dshift,ka=c.step,P=c.drawVerticalJoins,T=c.useForwardSteps,aa=a.data,$=!1===c.visible?"hidden":"visible",da,ia=aa.length,ha=v.getAxisPosition(0),R=v.getAxisPosition(1)-ha,fa=R*ia,ea=v.axisData.scroll||{},ja=l.hasScroll||!1,ra,ma=p.connectNullData,na=d.chartWidth,va=d.chartHeight,Ja=function(){rc.attr({"clip-rect":null});
Ua.show();bc.show();Za.show();Ib.attr({transform:"...t"+-na+","+-va})},Y,sa,ta,xa,Fa,Ia,za,Ea=null,Ba,ya,La=p.connectorWidth=K(c.lineWidth),Sa=c.color,Xa,cb,fb=p.connectorDashStyle=c.dashStyle,mb,gb,tb,pb,qb,hb,eb,rb,vb,sb=d.layers,Eb=sb.dataset=sb.dataset||f.group("dataset-orphan"),Ib=sb.datalabels=sb.datalabels||f.group("datalabels").insertAfter(Eb),Tb=sb.tracker,Lb=sb.lineHot=sb.lineHot||f.group("line-hot",Tb),Mb=h["clip-canvas-init"].slice(0),Qb=h["clip-canvas"].slice(0),Ub=t.axisData.reversed,
lc=t.max,mc=t.min,Ic=t.getAxisPosition(0<lc&&0<mc?Ub?lc:mc:0>lc&&0>mc?Ub?mc:lc:Ub?lc:0)+(g?I:0),Jb=[],Yb=l.anchorTrackingRadius,xb=/drag/ig.test(d.logic.rendererId),nb,Zb,zb,bc,Ua,rc,Za,Wa,Ca,Cc,Qa,Cb,zc=[],$b=function(a){O.call(this,d,a)},jc=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}},kc=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}},Nc=function(b,g,h,k,l,m,n,p){return function(){var q=h.imageUrl,s=h.imageScale,v=h.imageAlpha,
t=n.imageHoverAlpha,u=n.imageHoverScale,w=this.height*s*.01,z=this.width*s*.01,B=this.width*u*.01;eb={x:b-this.width*s*.005,y:g-this.height*s*.005,width:z,height:w,alpha:v};rb={x:b-this.width*u*.005,y:g-this.height*u*.005,width:B,height:this.height*u*.01,alpha:t};t=B>z?rb:eb;xb&&(t={cx:b,cy:g,r:.5*Da(w,z)});(k.graphic=pb=f.image(q,Za).attr(eb).css({opacity:.01*v}).data("alwaysInvisible",!s).data("setRolloverProperties",n).data("setRolloverAttr",rb).data("setRolloutAttr",eb).data("anchorRadius",s).data("anchorHoverRadius",
u))&&r.push(pb);if(sa||M||n)qb=k.tracker=(xb?f.circle(Lb):f.rect(Lb)).attr(t).attr({cursor:sa?"pointer":"",stroke:e,"stroke-width":h.lineWidth,fill:e,ishot:!0,visibility:$}).data("eventArgs",l).data("groupId",nb).click($b).hover(jc(k),kc(k)).tooltip(m);d.drawTracker&&d.drawTracker.call(d,a,c,p);(Qa=k.dataLabel=d.drawPlotLineLabel(a,c,p,b,g))&&r.push(Qa)}},ob=function(b,e,g,f,h,k,l,m){return function(){(Qa=f.dataLabel=d.drawPlotLineLabel(a,c,m,b,e))&&r.push(Qa)}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",
w);Ib.attr("class","fusioncharts-datalabels");p.connectorOpacity=m.color(Sa).opacity;t.yBasePos=Ic;B&&(C=(F=d.definition.chart)&&F.plotspacepercent,J=p.groupPadding,H=p.maxColWidth,N=(1-.01*C)*R||Ra(R*(1-2*J),1*H),L=N/2);Ib.attr({transform:"...t"+na+","+va});S&&d.animationCompleteQueue.push({fn:Ja,scope:d});zb=Eb.line||(Eb.line=f.group("line-connector",Eb));bc=a.lineShadowLayer||(a.lineShadowLayer=f.group("connector-shadow",zb));Ua=a.anchorShadowLayer||(a.anchorShadowLayer=f.group("anchor-shadow",
zb));rc=a.lineLayer||(a.lineLayer=f.group("connector",zb));Za=a.anchorLayer||(a.anchorLayer=f.group("anchors",zb));Za.hide();bc.hide();Ua.hide();for(da=0;da<ia;da+=1){Y=aa[da];Fa=Y.y;Ia=Y.previousY||0;U=Y.toolText;nb=a.index+"_"+da;vb=Qa=pb=qb=null;s=q[da]={index:da,value:null,graphic:null,connector:null,dataLabel:null,shadowGroup:Ua,tracker:null};if(null===Fa)zc.length=0,0===ma&&(Ea=null);else{xa=ga(Y.x,da);sa=Y.link;"boxandwhisker"===c.relatedSeries&&c.pointStart&&(xa+=c.pointStart);ya=t.getAxisPosition(Fa+
Ia)+(g?I:0);Ba=v.getAxisPosition(xa)-E;Ba=oa(Ba,La,La).position;ya=oa(ya,La,La).position;if((mb=Y.marker)&&mb.enabled)if(gb=mb.symbol.split("_"),tb="spoke"===gb[0]?1:0,ta=mb.radius,Wa=mb.shadow,Zb={index:da,link:sa,value:Y.y,displayValue:Y.displayValue,categoryLabel:Y.categoryLabel,toolText:Y.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},eb=rb={},hb=Y.rolloverProperties,mb.imageUrl)Cb=new b,Cb.onload=Nc(Ba,ya,mb,s,Zb,U,hb,da),Cb.onerror=ob(Ba,ya,mb,s,Zb,U,hb,da),
Cb.src=mb.imageUrl;else{hb&&(eb={polypath:[gb[1]||2,Ba,ya,ta,mb.startAngle,tb],fill:X(mb.fillColor),"stroke-width":mb.lineWidth,stroke:X(mb.lineColor)},rb={polypath:[hb.sides||2,Ba,ya,hb.radius,hb.startAngle,hb.dip],fill:X(hb.fillColor),"stroke-width":hb.lineWidth,stroke:X(hb.lineColor)});pb=s.graphic=f.polypath(gb[1]||2,Ba,ya,ta,mb.startAngle,tb,Za).attr({fill:X(mb.fillColor),ishot:!M,"stroke-width":mb.lineWidth,stroke:X(mb.lineColor),cursor:sa?"pointer":"",visibility:ta?$:"hidden"}).data("alwaysInvisible",
!ta).data("setRolloverProperties",hb).data("setRolloverAttr",rb).data("setRolloutAttr",eb).data("anchorRadius",ta).data("anchorHoverRadius",hb&&hb.radius).shadow(Wa||!1,Ua);if(sa||M||hb)ta=Da(ta,hb&&hb.radius||0,Yb),qb=s.tracker=f.circle({cx:Ba,cy:ya,r:ta,cursor:sa?"pointer":"",stroke:e,"stroke-width":mb.lineWidth,fill:e,ishot:!0,visibility:$},Lb);(qb||pb).data("eventArgs",Zb).data("groupId",nb).click($b).hover(jc(s),kc(s)).tooltip(U);d.drawTracker&&d.drawTracker.call(d,a,c,da)}Ca=Cc!==[X(Y.color||
Sa),Y.dashStyle||fb].join(":");if(null!==Ea){if(zc.length&&(Jb=Jb.concat(zc),zc.length=0),(u||B||!Jb.join(""))&&Jb.push("M",za,Ea),B&&Jb.push("m",-L,0),ka?T?(Jb.push("H",Ba),B&&Jb.push("h",L),P?Jb.push("V",ya):Jb.push("m",0,ya-Ea)):(P&&Jb.push("V",ya),Jb.push("M",za,ya,"H",Ba)):Jb.push("L",Ba,ya),u||Ca)vb=s.connector=f.path(Jb,rc).attr({"stroke-dasharray":cb,"stroke-width":La,stroke:Xa,"stroke-linecap":"round","stroke-linejoin":2<La?"round":"miter",visibility:$}).shadow(p.shadow&&Y.shadow,bc),Jb=
[]}else!u&&zc.push("M",Ba,ya);mb&&mb.imageUrl||(Qa=s.dataLabel=d.drawPlotLineLabel(a,c,da,Ba,ya));za=Ba;Ea=ya;Xa=X(Y.color||Sa);cb=Y.dashStyle||fb;Cc=[Xa,cb].join(":")}Qa&&r.push(Qa);pb&&r.push(pb);vb&&r.push(vb);qb&&r.push(qb)}!u&&Jb.join("")&&(vb=f.path(Jb,rc).attr({"stroke-dasharray":cb,"stroke-width":La,stroke:Xa,"stroke-linecap":"round","stroke-linejoin":2<=La?"round":"miter",visibility:$}).shadow(p.shadow&&Y.shadow,bc))&&r.push(vb);ja&&(ra=ea.startPercent,Qb[2]=fa+Mb[0],1===ra&&(Mb[0]=Qb[2],
Qb[0]=0));S?(W=m.animation({"clip-rect":Qb},S,ja?"easeIn":"normal",d.getAnimationCompleteFn()),rc.attr({"clip-rect":Mb}).animate(B?W.delay(S):W)):(Ja&&Ja(),Ja=void 0);a.visible=!1!==c.visible;return a},hoverPlotAnchor:function(a,b,c,d,e){var f=d.graphic;d=d.dataLabel;var h=e.options.chart,k=1===h.rotateValues?270:0,l=f.data("setRolloverProperties"),m=f.data("isRealtime"),n=m&&f.attr("polypath"),p=f.data("setRolloverAttr"),q="image"===f.type,r=f.data("setRolloutAttr"),s=d&&(d.data("isBelow")?1:-1)*
(q?.5*(p.height-r.height):f.data("anchorHoverRadius")-f.data("anchorRadius")),v="DataPlotRollOver"==c?p:r,t={transform:"T0,"+("DataPlotRollOver"===c?s:0)+"R"+k},u={fill:v.fill,"stroke-width":v["stroke-width"],stroke:v.stroke},v=q?v:{polypath:v.polypath},h=h.syncLabelWithAnchor,B=f.data("anchorRadius"),C=f.data("anchorHoverRadius"),p=!(/,0\)$/.test(p.fill)&&/,0\)$/.test(r.fill))&&f.data("anchorHoverRadius")-f.data("anchorRadius")&&l.animation&&50;d&&d.data("isMiddle")&&(t={transform:"T,"+("DataPlotRollOver"===
c?s:0)+",0R"+k});l&&(("DataPlotRollOver"==c&&0!==C||"DataPlotRollOut"==c&&0!==B)&&f.attr({visibility:"visible"}),q?f.css({opacity:.01*v.alpha}):f.attr(u),m&&!q&&(v.polypath[1]=n[1],v.polypath[2]=n[2]),f.stop(),f.animate(v,p,"easeOut",function(){("DataPlotRollOver"==c&&!C||"DataPlotRollOut"==c&&!B)&&f.attr({visibility:"hidden"})}),d&&d.stop(),p&&h&&d&&d.animate(t,p,"easeOut"));O.call(a,e,b,c)},drawPlotArea:function(a,c){var d=this,f=d.paper,h=d.options,k=h.chart,l=d.logic,m=h.plotOptions.series,p=
d.elements,q=a.items,r=a.graphics=a.graphics||[],s,v=d.xAxis[c.xAxis||0],t=d.yAxis[c.yAxis||0],u=t.axisData.reversed,B=k.xDepth||0,C=k.yDepth||0,l=l.isStacked,F=!1!==(h.tooltip||{}).enabled,J,K,h=m.dataLabels.style,H={fontFamily:h.fontFamily,fontSize:h.fontSize,lineHeight:h.lineHeight,fontWeight:h.fontWeight,fontStyle:h.fontStyle,color:h.color},h=isNaN(+m.animation)&&m.animation.duration||1E3*m.animation,N=k.series2D3Dshift,L="0"===d.definition.chart.drawfullareaborder,M=a.data,U=!1===c.visible?"hidden":
"visible",S=M.length,z=v.getAxisPosition(0),w=(v.getAxisPosition(1)-z)*S,E=v.axisData.scroll||{},z=k.hasScroll||!1,I=m.connectNullData,g,W,P,T,aa,$=t.max,da=t.min,ia=t.getAxisPosition(0<$&&0>da?0:!u&&0<$&&0<=da?da:$)+(N?C:0),ha=d.chartWidth,R=d.chartHeight,u=function(){fb.attr({"clip-rect":null});mb.show();Xa.show();La.attr({transform:"...t"+-ha+","+-R})},ja=null,ea,fa,$=c.lineWidth,da=c.dashStyle,ra=X(c.fillColor),ma=X(c.lineColor),na=0,sa=/drag/ig.test(d.logic.rendererId),va,Y,ta,oa,xa,Ba,ya=[],
Fa=[],Ea=null,Ia=[],za=d.layers;T=za.dataset=za.dataset||f.group("dataset-orphan");var La=za.datalabels=za.datalabels||f.group("datalabels").insertAfter(T),Ea=za.tracker,Ra=za.areaHot=za.areaHot||f.group("area-hot",Ea),za=p["clip-canvas-init"].slice(0),p=p["clip-canvas"].slice(0),k=k.anchorTrackingRadius,Sa,Xa,cb,mb,fb,gb,pb,qb,hb,eb,rb=function(a){O.call(this,d,a)},sb=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}},tb=function(a){return function(b){d.hoverPlotAnchor(this,
b,"DataPlotRollOut",a,d)}},Ea=function(b,g,h,k,l,m,p,q){return function(){var s=h.imageUrl,v=h.imageScale,t=h.imageAlpha,u=p.imageHoverAlpha,w=p.imageHoverScale,z=this.width*v*.01,B=this.width*w*.01;xa={x:b-this.width*v*.005,y:g-this.height*v*.005,width:z,height:this.height*v*.01,alpha:t};Ba={x:b-this.width*w*.005,y:g-this.height*w*.005,width:B,height:this.height*w*.01,alpha:u};u=B>z?Ba:xa;sa&&(u={cx:b,cy:g,r:.5*Da(B,z)});(k.graphic=Y=f.image(s,mb).attr(xa).css({opacity:.01*t}).data("alwaysInvisible",
!v).data("setRolloverProperties",p).data("setRolloverAttr",Ba).data("setRolloutAttr",xa).data("anchorRadius",v).data("anchorHoverRadius",w))&&r.push(Y);if(W||F||p)Sa=n({cursor:W?"pointer":"",stroke:e,"stroke-width":h.lineWidth,fill:e,ishot:!0,visibility:U},u),ta=k.tracker=(sa?f.circle(Sa,Ra):f.rect(Sa,Ra)).data("eventArgs",l).click(rb).hover(sb(k),tb(k)).tooltip(m),d.drawTracker&&d.drawTracker.call(d,a,c,q);(eb=k.dataLabel=d.drawPlotLineLabel(a,c,q,b,g))&&r.push(eb)}},vb=function(b,e,f,g,h,k,l,m){return function(){(eb=
g.dataLabel=d.drawPlotLineLabel(a,c,m,b,e))&&r.push(eb)}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",H);La.attr("class","fusioncharts-datalabels");t.yBasePos=ia;La.attr({transform:"...t"+ha+","+R});h&&d.animationCompleteQueue.push({fn:u,scope:d});H=T;l&&(gb=H.shadows||(H.shadows=f.group("shadows",H).toBack()));fb=H.area=H.area||f.group("area",H);H=H.areaConnector||(H.areaConnector=f.group("area-connector",H));a.lineShadowLayer||(a.lineShadowLayer=f.group("connector-shadow",
H));Xa=a.anchorShadowLayer||(a.anchorShadowLayer=f.group("anchor-shadow",H));cb=a.lineLayer||(a.lineLayer=f.group("connector",H));mb=a.anchorLayer||(a.anchorLayer=f.group("anchors",H));mb.hide();Xa.hide();H=T;for(H=0;H<S;H+=1){g=M[H];T=g.y;s=ga(g.x,H);ea=v.getAxisPosition(s)-B;Y=eb=ta=null;s=q[H]={};if(null===T)0===I&&(ja=null,0<na&&(1===na?ya.splice(-8,8):(ya=ya.concat(Fa),ya.push("Z")),Fa=[])),s.chart=d,s.index=H,s.value=T;else{W=g.link;J=g.toolText;K=g.previousY;aa=(aa=t.getAxisPosition(K)||null)||
ia;fa=t.getAxisPosition(T+(K||0))+(N?C:0);if((hb=g.marker)&&hb.enabled)if(K={index:H,link:W,value:g.y,displayValue:g.displayValue,categoryLabel:g.categoryLabel,toolText:g.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},xa=Ba={},oa=g.rolloverProperties,hb.imageUrl)P=new b,P.onload=Ea(ea,fa,hb,s,K,J,oa,H),P.onerror=vb(ea,fa,hb,s,K,J,oa,H),P.src=hb.imageUrl;else{va=hb.symbol.split("_");P=hb.radius;qb=hb.shadow;oa&&(xa={polypath:[va[1]||2,ea,fa,P,hb.startAngle,0],fill:X(hb.fillColor),
"stroke-width":hb.lineWidth,stroke:X(hb.lineColor)},oa=g.rolloverProperties,Ba={polypath:[oa.sides||2,ea,fa,oa.radius,oa.startAngle,oa.dip],fill:X(oa.fillColor),"stroke-width":oa.lineWidth,stroke:X(oa.lineColor)});Y=s.graphic=f.polypath(va[1]||2,ea,fa,P,hb.startAngle,0,mb).attr({fill:X(hb.fillColor),ishot:!F,"stroke-width":hb.lineWidth,stroke:X(hb.lineColor),cursor:W?"pointer":"",visibility:P?U:"hidden"}).data("alwaysInvisible",!P).data("setRolloverProperties",oa).data("setRolloverAttr",Ba).data("setRolloutAttr",
xa).data("anchorRadius",P).data("anchorHoverRadius",oa&&oa.radius).shadow(qb||!1,Xa);if(W||F||oa)l||(P=Da(P,oa&&oa.radius||0,k)),ta=s.tracker=f.circle({cx:ea,cy:fa,r:P,cursor:W?"pointer":"",stroke:e,"stroke-width":hb.lineWidth,fill:e,ishot:!0,visibility:U},Ra);(ta||Y).data("eventArgs",K).click(rb).hover(sb(s),tb(s)).tooltip(J);d.drawTracker&&d.drawTracker.call(d,a,c,H)}null===ja?(Ia.push("M",ea,",",fa),ya.push("M",ea,",",aa),na=0):Ia.push("L",ea,",",fa);ya.push("L",ea,",",fa);Fa.unshift("L",ea,",",
aa);na++;ja=fa;hb&&hb.imageUrl||(eb=s.dataLabel=d.drawPlotLineLabel(a,c,H,ea,fa));s.chart=d;s.index=H;s.value=T;s.dataLabel=eb}eb&&r.push(eb);Y&&r.push(Y);ta&&r.push(ta)}0<na&&(1===na?ya.splice(-8,8):(ya=ya.concat(Fa),ya.push("Z")));(Ea=a.graphic=f.path(ya,fb).attr({fill:ra,"stroke-dasharray":da,"stroke-width":L?0:$,stroke:ma,"stroke-linecap":"round","stroke-linejoin":2<$?"round":"miter",visibility:U}).shadow(m.shadow&&g.shadow,gb))&&r.push(Ea);z&&(m=E.startPercent,p[2]=w+za[0],1===m&&(za[0]=p[2],
p[0]=0));h?pb=fb.attr({"clip-rect":za}).animate({"clip-rect":p},h,z?"easeIn":"normal",d.getAnimationCompleteFn()):(u&&u(),u=void 0);gb&&(h?gb.attr({"clip-rect":za}).animateWith(fb,pb,{"clip-rect":p},h,z?"easeIn":"normal",function(){gb.attr({"clip-rect":null})}):gb.attr({"clip-rect":null}));L&&(m=a.connector=f.path(Ia,cb).attr({"stroke-dasharray":da,"stroke-width":$,stroke:ma,"stroke-linecap":"round","stroke-linejoin":2<$?"round":"miter",visibility:U}),h?cb.attr({"clip-rect":za}).animateWith(fb,pb,
{"clip-rect":p},h,z?"easeIn":"normal",function(){cb.attr({"clip-rect":null})}):cb.attr({"clip-rect":null}),m&&r.push(m));a.visible=!1!==c.visible;return a},drawPlotScatter:function(a,b){var c=this,d=c.options,f=d.chart,h=d.plotOptions.series,k=c.paper,l=c.elements,m=a.items,n,p=a.graphics=a.graphics||[],q=c.xAxis[b.xAxis||0],r=c.yAxis[b.yAxis||0],s=a.data,v=!1===b.visible?"hidden":"visible",d=!1!==(d.tooltip||{}).enabled,t,u=h.dataLabels.style,B={fontFamily:u.fontFamily,fontSize:u.fontSize,lineHeight:u.lineHeight,
fontWeight:u.fontWeight,fontStyle:u.fontStyle,color:u.color},u=isNaN(+h.animation)&&h.animation.duration||1E3*h.animation,C=c.chartWidth,F=c.chartHeight,J,K,H,N,L,M,z,w,E,I=b.lineWidth,g=0<I,U=b.color,P=b.dashStyle,S=h.connectNullData,W=[],T,aa,$,da,R,ga,ea=c.layers,fa=ea.dataset||(ea.dataset=k.group("dataset-orphan")),ia=ea.datalabels||(ea.datalabels=k.group("datalabels").insertAfter(fa)),ea=ea.tracker,f=f.anchorTrackingRadius,ha,ja,ma,na=function(a){O.call(this,c,a)},Y=function(a){return function(b){c.hoverPlotAnchor(this,
b,"DataPlotRollOver",a,c)}},oa=function(a){return function(b){c.hoverPlotAnchor(this,b,"DataPlotRollOut",a,c)}};c.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",B);ia.attr("class","fusioncharts-datalabels");u&&(c.animationCompleteQueue.push({fn:function(){ia.attr({transform:"...t"+-C+","+-F})},scope:c}),ia.attr({transform:"...t"+C+","+F}));ha=fa.line||(fa.line=k.group("line-connector",fa));a.lineShadowLayer=k.group("connector-shadow",ha);fa=a.anchorShadowLayer=k.group("anchor-shadow",
ha);B=a.lineLayer=k.group("connector",ha);ha=a.anchorLayer=k.group("anchors",ha);J=0;for(K=s.length;J<K;J+=1){H=s[J];T=H.marker;w=E=da=t=R=null;ma=a.index+"_"+J;M=H.y;L=H.x;if(null!==M&&null!==L){if(T&&T.enabled){N=H.link;t=H.toolText;$=T.radius;ja=T.shadow;E=r.getAxisPosition(M);w=q.getAxisPosition(L);aa={index:J,link:N,y:H.y,x:H.x,displayValue:H.displayValue,categoryLabel:H.categoryLabel,toolText:H.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};da=T.symbol.split("_");
n=m[J]={index:J,x:L,y:M,value:M};L=M={};H.hoverEffects&&(L={polypath:[da[1]||2,w,E,$,T.startAngle,0],fill:X(T.fillColor),"stroke-width":T.lineWidth,stroke:X(T.lineColor)},ga=H.rolloverProperties,M={polypath:[ga.sides||2,w,E,ga.radius,ga.startAngle,ga.dip],fill:X(ga.fillColor),"stroke-width":ga.lineWidth,stroke:X(ga.lineColor)});da=n.graphic=k.polypath(da[1]||2,w,E,$,T.startAngle,0,ha).attr({fill:X(T.fillColor),ishot:!d,"stroke-width":T.lineWidth,stroke:X(T.lineColor),cursor:N?"pointer":"",visibility:$?
v:"hidden"}).data("alwaysInvisible",!$).data("setRolloverProperties",ga).data("setRolloverAttr",M).data("setRolloutAttr",L).data("anchorRadius",$).data("anchorHoverRadius",ga&&ga.radius).shadow(ja||!1,fa);if(N||d||ga)$=Da($,ga&&ga.radius||0,f),R=n.tracker=k.circle({cx:w,cy:E,r:$,cursor:N?"pointer":"",stroke:e,"stroke-width":T.lineWidth,fill:e,ishot:!0,visibility:v},ea);(R||da).data("eventArgs",aa).data("groupId",ma).click(na).hover(Y(n),oa(n)).tooltip(t)}g&&((void 0===z||null===z&&0===S)&&w&&E&&W.push("M",
w,",",E),w&&E&&W.push("L",w,",",E),z=E);t=n.dataLabel=c.drawPlotLineLabel(a,b,J,w,E)}else g&&0===S&&(z=null),m[J]={chart:c,index:J,x:L,y:M};t&&p.push(t);da&&p.push(da);R&&p.push(R);c.drawTracker&&c.drawTracker.call(c,a,b,J)}W.length&&(h=a.graphic=k.path(W,B).attr({"stroke-dasharray":P,"stroke-width":I,stroke:U,"stroke-linecap":"round","stroke-linejoin":2<I?"round":"miter",visibility:v}).shadow(h.shadow&&H.shadow),B.attr({"clip-rect":l[u?"clip-canvas-init":"clip-canvas"]}),u&&B.animate({"clip-rect":l["clip-canvas"]},
u,"normal"),p.push(h));u&&ha.attr({opacity:0}).animate({opacity:1},u,"normal",c.getAnimationCompleteFn());a.visible=!1!==b.visible;return a},drawPlotLineLabel:function(a,b,c,d,e,f){var h=this.options,k=h.chart,l=this.paper,m=this.layers,n=h.plotOptions.series.dataLabels.style,h=1===k.rotateValues?270:0,p=this.canvasHeight,q=this.canvasTop,r=a.data,s=r[c],v=a.items[c],u=ia(s.valuePosition,"auto").toLowerCase();a=this.logic.defaultSeriesType;var t=v.graphic,B=s.marker,t=B&&B.enabled?t&&"image"==t.type&&
.5*t.attr("height")||B&&B.radius-3:0,t=k.valuePadding+2+t;b=!1===b.visible?"hidden":"visible";B=v.dataLabel;f=f||m.datalabels;switch(u){case "above":c=0;break;case "below":c=1;break;default:m=r[c-1]||{},r=r[c+1]||{},c=c?m.y>s.y?1:(null==m.y&&r.y)>s.y?1:0:0}m=s.displayValue;Ba(m)&&m!==H?(B?h&&B.attr("transform",["r",360-h]):B=v.dataLabel=l.text(f).attr({"class":"fusioncharts-label",text:m,fill:n.color,"text-bound":[n.backgroundColor,n.borderColor,n.borderThickness,n.borderPadding,n.borderRadius,n.borderDash],
direction:k.textDirection,"font-weight":n.fontWeight,"font-style":n.fontStyle,"font-family":n.fontFamily,"font-size":n.fontSize,"line-height":n.lineHeight}),B.attr({title:s.originalText||"",fill:n.color}),v._state&&v._state.labelWidth||(f=B.getBBox(),v._state={labelWidth:f.width,labelHeight:f.height}),k=l=h?v._state.labelWidth:v._state.labelHeight,f=e-q,p=q+p-e,k=k+t+4,q=.5*l+t,/bubble/i.test(a)||(c?p>k?(e+=q,s._valueBelowPoint=1):f>k&&(e-=q,s._valueBelowPoint=0):f>k?(e-=q,s._valueBelowPoint=0):p>
k&&(e+=q,s._valueBelowPoint=1)),B.attr({x:d,y:e,visibility:b}).data("isBelow",s._valueBelowPoint),h&&B.attr("transform","T0,0,R"+h)):B&&B.attr({text:H});return B},drawLabels:function(){for(var a=this.paper,b=this.options,c=b.labels&&b.labels.items&&b.labels.items,d=c&&c.length,e=this.layers.layerAboveDataset,f=this.elements.quadran||(this.elements.quadran=[]),h=this.canvasTop,k=this.canvasLeft,b=b.chart.textDirection,l={right:"end",left:"start",undefined:"start"},m,n,p;d--;)p=c[d],m=p.style,n={fontFamily:m.fontFamily,
fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle,fill:m.color},Ba(p.html)&&p.html!==H&&(f[d]=a.text({text:p.html},e).css(n).attr({x:parseInt(m.left,10)+k,y:parseInt(m.top,10)+h,"text-anchor":l[p.textAlign],"vertical-align":p.vAlign,direction:b,"text-bound":[m.backgroundColor,m.borderColor,m.borderThickness,m.borderPadding,m.borderRadius,m.borderDash]}))}},F["renderer.root"]);F("renderer.piebase",{isHovered:!1,getPlotData:function(a,b){var c=this.datasets[0],
d=c.data[a],c=c.userData||(c.userData=[]),e,f;if(c[a])c=c[a];else{c=c[a]={};for(f in d)"object"!==typeof(e=d[f])&&"function"!==typeof e&&0!==f.indexOf("_")&&(c[f]=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,
f;for(b.enableMultiSlicing=!0;d--;)d!==a&&(f=c[d]).sliced&&++e&&this.plotGraphicClick.call(f);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,f=e.logic.chartInstance,h=c.index,k=b.data("eventArgs")||{},l=e.options.series[0].enableMultiSlicing,m=d.data[c.index].doNotSlice,p=c.slicedTranslation,r,s;!d.isRotating&&O.call(b,e,a);if(!(d.isRotating||d.singletonCase||m||(b=!l&&e.sliceInOtherPies(h),(a=c.sliced)&&
b))){if(T&&!u){b=(new Date).getTime();if(c.lastSliceTimeStamp&&400>b-c.lastSliceTimeStamp)return;c.lastSliceTimeStamp=b}b=c.graphic;d=c.connector;l=c.dataLabel;p="object"===typeof p?"t"+p:p;m=c.connectorPath;r=(a?-1:1)*c.transX;s=(a?-1:1)*c.transY;q.raiseEvent("slicingStart",{slicedState:a,dataIndex:"index"in k&&k.index,data:e.getPlotData(h,a)},f);b.animate({transform:a?"t0,0":p},200,"easeIn",function(){q.raiseEvent("slicingEnd",{slicedState:c.sliced,dataIndex:"index"in k&&k.index,data:e.getPlotData(h,
c.sliced)},f)});l&&l.x&&l.animate({x:l.x+(a?0:r)},200,"easeIn");m&&(m[1]+=r,m[2]+=s,m[4]+=r,m[6]+=r,d.animate({path:m},200,"easeIn"));a=c.sliced=!a;b={hcJSON:{series:[]}};b.hcJSON.series[0]={data:p=[]};p[h]={sliced:a};n(f.jsVars._reflowData,b,!0);return a}},plotDragStart:function(a,b,c){var e=this.data("plotItem"),f=e.chart,e=e.seriesData,h=f.options.series,k=-f.datasets[0].startAngle*Mb;e.isRotating=!1;if(h[0].enableRotation){h=f.container;f={left:0,top:0};if(h.getBoundingClientRect)h=h.getBoundingClientRect(),
f.top=h.top+(d.pageYOffset||l.scrollTop||0)-(l.clientTop||0),f.left=h.left+(d.pageXOffset||l.scrollLeft||0)-(l.clientLeft||0);else for(;h;)f.left+=h.offsetLeft||0,f.top+=h.offsetTop||0,h!==l.body&&h!==l.documentElement&&(f.left-=h.scrollLeft||0,f.top-=h.scrollTop||0),h=h.offsetParent;e.chartPosition=f;a=t.call(c,a,b,e.pieCenter,e.chartPosition);e.dragStartAngle=a;e.startingAngleOnDragStart=k}},plotDragEnd:function(a){var b=this.data("plotItem"),c=b.chart,d=b.seriesData,e=-c.datasets[0].startAngle*
Mb,f={hcJSON:{series:[{startAngle:e}]}};c.disposed||(n(c.logic.chartInstance.jsVars._reflowData,f,!0),c.rotate(d,c.options.series[0]));!d.isRotating&&c.plotGraphicClick.call(b,a);d.isRotating&&(setTimeout(function(){d.isRotating=!1},0),q.raiseEvent("RotationEnd",{startingAngle:C(e,!0),changeInAngle:e-d.startingAngleOnDragStart},c.logic.chartInstance));!c.isHovered&&c.onPlotHover(this,!1)},plotDragMove:function(a,b,c,d,e){a=this.data("plotItem");var f=a.chart,h=a.seriesData,k=f.options.series;k[0].enableRotation&&
!h.singletonCase&&(c=t.call(e,c,d,h.pieCenter,h.chartPosition),h.isRotating||(h.dragStartAngle!==c&&(h.isRotating=!0),q.raiseEvent("RotationStart",{startingAngle:C(h.startingAngleOnDragStart,!0)},f.logic.chartInstance)),k[0].startAngle+=c-h.dragStartAngle,h.dragStartAngle=c,h.moveDuration=0,c=(new Date).getTime(),!h._lastTime||h._lastTime+h.timerThreshold<c)&&(setTimeout(function(){f.rotate(h,k[0])},0),h._lastTime=c)},plotRollOver:function(a){var b=this.plotItem||this.data("plotItem"),c=b.chart,d,
e;b.seriesData.isRotating||(O.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,f;b.seriesData.isRotating||(O.call(this,c,a,"DataPlotRollOut"),c.onPlotHover(this,!1));c.isHovered=!1;(a=b.innerDiameter)&&(e=d.centerLabelConfig)&&((f=e.label)||!f)&&c.drawDoughnutCenterLabel(f,
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,f=b?d.borderWidth:c.borderWidth,h=b?d.borderColor:c.borderColor;d&&c.graphic.attr({fill:X(e),"stroke-width":f,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(f,h,k,l){var m=this.options.plotOptions,n=m.pie,p=this.canvasLeft+.5*this.canvasWidth,q=this.canvasTop+.5*this.canvasHeight,r=this.smartLabel,s=m.series.dataLabels,v=s.style,t=ga(Lb(parseFloat(v.lineHeight)),12),u=Ea(s.placeLabelsInside,1===
h.length?!0:!1),m=s.skipOverlapLabels,B=s.manageLabelOverflow,C=s.connectorPadding,F=s.distance,J;J=l&&l.metrics||[p,q,n.size,n.innerSize||0];var K=J[1],H=J[0];l=.5*J[2];var N=[[],[],[],[]],M=this.canvasLeft,z=this.canvasTop,n=this.canvasWidth,F=k.labelsRadius||(k.labelsRadius=l+F),q=p=parseInt(v.fontSize,10),w=q/2,C=[C,C,-C,-C];k=k.labelsMaxInQuadrant||(k.labelsMaxInQuadrant=Ub(F/q));var s=s.isSmartLineSlanted,E=J[3]/2,I,g,O,P,U,S,T,W,X,aa,R,$,ea,da,fa,ha,ia,ja;J=Number.POSITIVE_INFINITY;R=[];I=
[];f||r.setStyle(v);if(1==h.length&&!E&&u)u=h[0],(ea=u.dataLabel)&&ea.show(),u.slicedTranslation=[M,z],ea&&(ea.attr({visibility:fb,align:"middle",transform:["t",H,K]}),ea.x=H);else if(u)ja=E+(l-E)/2,L(h,function(a){(ea=a.dataLabel)&&ea.show();ea&&($=a.angle,aa=K+ja*xa($),S=H+ja*gb($),ea.x=S,ea._x=S,ea.y=aa,a.sliced&&(ia=a.slicedTranslation,fa=ia[0]-M,ha=ia[1]-z,S+=fa,aa+=ha),ea.attr({visibility:fb,align:"middle",transform:["t",S,aa]}))});else{L(h,function(a){(ea=a.dataLabel)&&ea.show();ea&&($=a.angle%
rb,0>$&&($=rb+$),da=0<=$&&$<Eb?1:$<vb?2:$<Ib?3:0,N[da].push({point:a,angle:$}))});for(h=f=4;h--;){if(m&&(v=N[h].length-k,0<v))for(N[h].sort(a),R=N[h].splice(0,v),v=0,E=R.length;v<E;v+=1)u=R[v].point,u.dataLabel.attr({visibility:"hidden"}),u.connector&&u.connector.attr({visibility:"hidden"});N[h].sort(b)}h=Da(N[0].length,N[1].length,N[2].length,N[3].length);v=Da(Ra(h,k)*q,F+q);I=N[0].concat(N[1]);R=N[2].concat(N[3]);for(h=I.length-1;0<=h;h--)u=I[h].point,delete u.clearance,delete u.clearanceShift,
O=pb(v*xa(u.angle)),Math.abs(J-O)<2*t&&(u.clearance=0,I[h+1].point.clearanceShift=t/2),J=O;J=Number.POSITIVE_INFINITY;h=0;for(E=R.length;h<E;h++)u=R[h].point,delete u.clearance,delete u.clearanceShift,O=pb(v*xa(u.angle)),Math.abs(J-O)<2*t&&(u.clearance=0,R[h-1].point.clearanceShift=t/2),J=O;N[1].reverse();for(N[3].reverse();f--;){R=N[f];E=R.length;m||(q=E>k?v/E:p,w=q/2);t=E*q;J=v;for(h=0;h<E;h+=1,t-=q)O=pb(v*xa(R[h].angle)),J<O?O=J:O<t&&(O=t),J=(R[h].oriY=O)-q;I=c[f];E=v-(E-1)*q;J=0;for(h=R.length-
1;0<=h;--h,E+=q)if(u=R[h].point,$=R[h].angle,P=u.sliced,ea=u.dataLabel,O=pb(v*xa($)),O<J?O=J:O>E&&(O=E),J=O+q,t=void 0===u.clearance?2*Lb(ga(parseFloat(u.style.border),12),12):2*Lb(ga(parseFloat(u.style.border),u.clearance)),W=(O+R[h].oriY)/2,O=H+e[f]*F*gb(Xa.asin(W/v)),W*=d[f],W+=K,X=K+l*xa($),U=H+l*gb($),(2>f&&O<U||1<f&&O>U)&&(O=U),S=O+C[f],aa=W-w-2,T=S+C[f],ea.x=T,ea._x=T,B&&(g=1<f?T-this.canvasLeft:this.canvasLeft+n-T,r.setStyle(u.style),t=ga(Lb(parseFloat(u.style.lineHeight)),12)+t,t=r.getSmartText(u.labelText,
g,t),void 0===u.clearance&&t.height>q&&(W+=q),ea.attr({text:t.text,title:t.tooltext||""})),ea.y=aa,P&&(fa=u.transX,ha=u.transY,S+=fa,O+=fa,U+=fa,X+=ha,T+=fa),ea.attr({visibility:fb,"text-anchor":I,vAlign:"middle",x:T,y:W}),t=u.connector)u.connectorPath=u=["M",U,X,"L",s?O:U,W,S,W],t.attr({path:u,visibility:fb})}}}}()},F["renderer.root"])}]);
FusionCharts.register("module",["private","modules.renderer.js-interface",function(){var f=this,t=f.hcLib,C=f.renderer.getRenderer("javascript"),q=t.hasModule,d=t.loadModule,a=t.getMetaSentence,m=t.moduleCmdQueue,F=t.executeWaitingCommands,c=t.injectModuleDependency,l=t.moduleDependencies,b=t.getDependentModuleName,p,H;p=function(c){var d,h,k,l={},m;c=a(c);for(d in f.core.items)d=f.core.items[d],h=d.chartType(),k=d.options.chartTypeSourcePath+h,(h=d.jsVars)&&h.waitingModule&&d.__state.rendering&&
t.needsModule(c.predicate,k)&&(h.waitingModuleError=!0,h=b(k).concat(h.userModules),h.length&&(h=h[h.length-1],l[h]=t.moduleCmdQueue[h]));for(m in l)F(l[m]);f.raiseError(f.core,"11171116151","run","HC-interface~renderer.load","Unable to load required modules and resources: "+c.key)};H=function(a,b,c){var d=a.args,l=a.options;a._chartMessageImageStyle={imageHAlign:d.typeNotSupportedMessageImageHAlign||l.baseChartMessageImageHAlign,imageVAlign:d.typeNotSupportedMessageImageVAlign||l.baseChartMessageImageVAlign,
imageAlpha:d.typeNotSupportedMessageImageAlpha||l.baseChartMessageImageAlpha,imageScale:d.typeNotSupportedMessageImageScale||l.baseChartMessageImageScale};a._chartMessageStyle={color:d.typeNotSupportedMessageColor||l.baseChartMessageColor,fontFamily:d.typeNotSupportedMessageFont||l.baseChartMessageFont,fontSize:d.typeNotSupportedMessageFontSize||l.baseChartMessageFontSize};f.hcLib.createChart(a,b,"stub",c,l.typeNotSupportedMessage)};t.eventList=f.extend(f.legacyEventList,{loaded:"FC_Loaded",dataloaded:"FC_DataLoaded",
rendered:"FC_Rendered",drawcomplete:"FC_DrawComplete",dataxmlinvalid:"FC_DataXMLInvalid",nodatatodisplay:"FC_NoDataToDisplay",exported:"FC_Exported"});t.raiseEvent=f.raiseEventWithLegacy;l.charts=f.extend(l.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});l.powercharts=f.extend(l.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});l.widgets=f.extend(l.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});l.maps=f.extend(l.maps||{},{});f.extend(C,{render:function(a,d){var h=this.chartType(),k=this.options.chartTypeSourcePath+h,l=this.jsVars,p=this.__state,F=t.chartAPI,n=this.options,N=this.args,B=this.options.showChartLoadingMessage,U,r;U=b(k).concat(l.userModules);l.isResizing&&(l.isResizing=clearTimeout(l.isResizing));l.hcObj&&l.hcObj.destroy&&l.hcObj.destroy();if(F[h]){if(F[p.lastRenderedType]&&p.lastRenderedType!==
h)for(r in f.raiseEvent("chartTypeChanged",{previousType:p.lastRenderedType,newType:h},this),F[p.lastRenderedType].eiMethods)delete this[r];p.lastRenderedType=h;p.lastRenderedSrc=this.src;!l.waitingModuleError&&t.raiseEvent("internal.loaded",{type:h,triggeredModuleLoad:l.drLoadAttempted||l.waitingModule},this,[this.id]);delete l.waitingModule;delete l.waitingModuleError;delete l.drLoadAttempted;f.hcLib.createChart(this,a,h,d)}else{if(h&&q(U)){if(l.drLoadAttempted){f.raiseError(this,11112822001,"run",
"HC-interface~renderer.render","Chart runtimes not loaded even when resource is present");H(this,a,d);return}c(k)&&(U=b(k).concat(l.userModules));l.drLoadAttempted=!0}else{if(!U.length){H(this,a,d);return}if(l.waitingModuleError){H(this,a,d);delete l.waitingModule;delete l.waitingModuleError;return}}(h=m[U[U.length-1]])?(h.push({cmd:"render",obj:this,args:arguments}),l.waitingModule||(l=B?n.PBarLoadingText||n.loadMessage:"",this._chartMessageImageStyle={imageHAlign:N.loadMessageImageHAlign||n.baseChartMessageImageHAlign,
imageVAlign:N.loadMessageImageVAlign||n.baseChartMessageImageVAlign,imageAlpha:N.loadMessageImageAlpha||n.baseChartMessageImageAlpha,imageScale:N.loadMessageImageScale||n.baseChartMessageImageScale},this._chartMessageStyle={color:N.loadMessageColor||n.baseChartMessageColor,fontFamily:N.loadMessageFont||n.baseChartMessageFont,fontSize:N.loadMessageFontSize||n.baseChartMessageFontSize},f.hcLib.createChart(this,a,"stub",void 0,l),C.load.call(this,a,d))):(f.raiseError(this,12080515551,"run","HC-interface~renderer.render",
"Unregistered module in dependentModule definition."),this._chartMessageImageStyle={imageHAlign:N.renderErrorMessageImageHAlign||n.baseChartMessageImageHAlign,imageVAlign:N.renderErrorMessageImageVAlign||n.baseChartMessageImageVAlign,imageAlpha:N.renderErrorMessageImageAlpha||n.baseChartMessageImageAlpha,imageScale:N.renderErrorMessageImageScale||n.baseChartMessageImageScale},this._chartMessageStyle={color:N.renderErrorMessageColor||n.baseChartMessageColor,fontFamily:N.renderErrorMessageFont||n.baseChartMessageFont,
fontSize:N.renderErrorMessageFontSize||n.baseChartMessageFontSize},f.hcLib.createChart(this,a,"stub",void 0,n.renderErrorMessage))}},update:function(a){var b=this.ref,c=this.jsVars,d=c&&c.fcObj,d=c.container||d&&d.options&&d.options.containerElement&&d.options.containerElement.childNodes[0];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():f.hcLib.createChart(this,d):this.__state.rendering&&!c.waitingModule&&f.hcLib.createChart(this,d)):(this.isActive()&&"function"===typeof b.showChartMessage&&b.showChartMessage("InvalidXMLText"),delete c.loadError)},resize:function(a){var b=this.ref,c,d=this.jsVars;b&&b.resize&&(d.isResizing&&(d.isResizing=clearTimeout(d.isResizing)),d.isResizing=setTimeout(function(){c=f.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 d.isResizing},0))},dispose:function(){var a,b=this.jsVars;b.isResizing&&(b.isResizing=clearTimeout(b.isResizing));b.instanceAPI&&b.instanceAPI.dispose&&(b.instanceAPI.dispose(),delete b.instanceAPI);if(a=this.ref)f.purgeDOM(a),a.parentNode&&a.parentNode.removeChild(a);b.container=null;t.cleanupWaitingCommands(this)},load:function(a,c){var h=this.jsVars,k=this.chartType(),l=f.hcLib.chartAPI[k],k=b(k).concat(h.userModules),m=k[k.length-1];l||!k||k&&0===k.length?(delete h.waitingModule,
a&&H(this,a||this.ref,c)):h.waitingModule||(h.waitingModule=!0,delete h.waitingModuleError,d(k,function(){delete h.waitingModule;F(t.moduleCmdQueue[m])},p,this))}})}]);
FusionCharts.register("module",["private","modules.api.dynamicchartattributes",function(){var f=this;f.extend(f.core,{setChartAttribute:function(t,C){var q,d,a,m;if("string"===typeof t)q=t,t={},t[q]=C;else if(null===t||"object"!==typeof t)return;m=0;if(a=(q=this.getChartData(f.dataFormats.JSON))&&(q.chart||q.graph||q.map)){for(d in t)m+=1,null===t[d]?delete a[d.toLowerCase()]:a[d.toLowerCase()]=t[d];0<m&&("undefined"===typeof a.animation&&(a.animation="0"),this.setChartData(q,f.dataFormats.JSON))}else f.raiseError(this,
"2105141421","run","#setChartAttribute()","Could not retrieve attribute list. Is data ready?")},getChartAttribute:function(t){var C=this.getChartData(f.dataFormats.JSON),C=C&&(C.chart||C.graph||C.map),q,d;if(0===arguments.length||void 0===t||void 0===C)return C;if("string"===typeof t)q=C[t.toString().toLowerCase()];else if(t instanceof Array)for(q={},d=0;d<t.length;d+=1)q[t[d]]=C[t[d].toString().toLowerCase()];else f.raiseError(this,"25081429","param","~getChartAttribute()",'Unexpected value of "attribute"');
return q}},!0)}]);
FusionCharts.register("module",["private","api.linkmanager",function(){var f=this,t=f.FusionChartsDOMInsertModes,C={},q=function(a,d){this.items={};this.root=a;this.parent=d;d instanceof f.core?this.level=this.parent.link.level+1:(C[a.id]=[{}],this.level=0)},d=function(a,d){return(a.options.containerElement===d.options.containerElement||a.options.containerElementId===d.options.containerElementId)&&a.options.insertMode===t.REPLACE};f.policies.link=["link",void 0];q.prototype.configuration=function(){return C[this.root.id][this.level]||
(C[this.root.id][this.level]={})};f.extend(f.core,{configureLink:function(a,d){var q;if(a instanceof Array){for(q=0;q<a.length;q+=1)"object"!==typeof C[this.link.root.id][q]&&(C[this.link.root.id][q]={}),f.extend(C[this.link.root.id][q],a[q]);C[this.link.root.id].splice(a.length)}else"object"===typeof a?("number"!==typeof d&&(d=this.link.level),void 0===C[this.link.root.id][d]&&(C[this.link.root.id][d]={}),f.extend(C[this.link.root.id][d],a)):f.raiseError(this,"25081731","param","~configureLink()",
"Unable to update link configuration from set parameters")}},!0);f.addEventListener("beforeInitialize",function(a){a.sender.link instanceof q?a.sender.link.parent instanceof f.core&&(a.sender.link.parent.link.items[a.sender.id]=a.sender):a.sender.link=new q(a.sender)});f.addEventListener("linkedChartInvoked",function(a,m){var t=a.sender,c=t.clone({dataSource:m.data,dataFormat:m.linkType,link:new q(t.link.root,t)},!0),l=m.alias,b;l&&(!c.typeSource&&c.swfUrl&&(c.typeSource=c.swfUrl.replace(/(.*?)?[^\/]*\.swf.*?/ig,
"$1")),c.type=l);t.args&&0!==parseInt(t.args.animate,10)&&delete c.animate;f.extend(c,t.link.configuration());f.raiseEvent("beforeLinkedItemOpen",{level:t.link.level},t.link.root,void 0,function(){f.core.items[c.id]instanceof f.core&&f.core.items[c.id].dispose();b=new f.core(c);d(b,t)||t.options.overlayButton&&t.options.overlayButton.message||("object"!==typeof t.options.overlayButton&&(t.options.overlayButton={}),t.options.overlayButton.message="Close");b.render();f.raiseEvent("linkedItemOpened",
{level:t.link.level,item:b},t.link.root)})});f.addEventListener("overlayButtonClick",function(a,m){if("LinkManager"===m.id){var q=a.sender,c=q.link.level-1,l=q.link.parent,b=q.link.root;f.raiseEvent("beforeLinkedItemClose",{level:c,item:q},b,q,function(){setTimeout(function(){f.core.items[q.id]&&q.dispose();f.raiseEvent("linkedItemClosed",{level:c},b)},0);l.disposed||l.isActive()||!d(q,l)||l.render()})}});f.addEventListener("Loaded",function(a){a=a.sender;var d;a&&void 0!==a.link&&a.link.root!==a&&
a.link.parent instanceof f.core&&(a.ref&&"function"===typeof a.ref.drawOverlayButton?(d=f.extend({show:!0,id:"LinkManager"},a.link.parent.options.overlayButton),f.extend(d,a.link.parent.link.configuration().overlayButton||{}),a.ref.drawOverlayButton(d)):f.raiseWarning(a,"04091602","run","::LinkManager^Loaded","Unable to draw overlay button on object. -"+a.id))});f.addEventListener("beforeDispose",function(a){var d=a.sender;d&&d.link instanceof q&&(d&&d.link&&d.link.parent instanceof f.core&&d.link.parent.link&&
d.link.parent.link.items&&delete d.link.parent.link.items[a.sender.id],delete C[d.id])})}]);
FusionCharts.register("module",["private","modules.renderer.js-thememanager",function(){var f=this,t,C,q,d=/\s+!important$/,a=/\\!important$/,m=function(a,b){for(var c=b.length,d=-1;c--;)if(a===b[c]){d=c;break}return d},F=function(a,b,c,d,f){var l,n,p,q;f?(d.push(a),f.push(b)):(d=[a],f=[b]);if(b instanceof Array)for(l=0;l<b.length;l+=1){try{n=a[l],p=b[l]}catch(s){continue}if("object"!==typeof p)c&&void 0===p||(a[l]=p);else{if(null===n||"object"!==typeof n)n=a[l]=p instanceof Array?[]:{};q=m(p,f);
-1!==q?n=a[l]=d[q]:F(n,p,c,d,f)}}else for(l in b){try{n=a[l],p=b[l]}catch(r){continue}if(null!==p&&"object"===typeof p)if(q=Object.prototype.toString.call(p),"[object Object]"===q){if(null===n||"object"!==typeof n)n=a[l]={};q=m(p,f);-1!==q?n=a[l]=d[q]:F(n,p,c,d,f)}else"[object Array]"===q?(null!==n&&n instanceof Array||(n=a[l]=[]),q=m(p,f),-1!==q?n=a[l]=d[q]:F(n,p,c,d,f)):a[l]=p;else a[l]=p}return a},c=function(a,b,c){if("object"!==typeof a&&"object"!==typeof b)return null;if("object"!==typeof b||
null===b)return a;"object"!==typeof a&&(a=b instanceof Array?[]:{});F(a,b,c);return a},l=function(b){var c={important:!1,str:""};if(!b)return c;b=b.toString();d.test(b)?(b=b.replace(d,""),c.important=!0):(b=b.replace(a,"!imporant"),c.important=!1);c.str=b;return c},b=function(a,c){var d,f,l,m,n,q,s=0,t=0;for(d in a)if(f=a[d],f instanceof Array)for(q=f.length,n=0;n<q;n+=1){if(m=f[n],"object"===typeof m)if("category"===d)if("true"===m.vline){if(l=c.component("vline",s,m))p(m,l),s+=1}else{if(l=c.component("category",
t,m,q))p(m,l),t+=1}else if(l=c.component(d,n,m,q))p(m,l),b(m,l)}else"object"===typeof f&&(l=c.component(d,null,f))&&(p(f,l),b(f,l))},p=function(a,b){var c=b.getAll(),d,f;for(d in c)f=c[d].toString(),f=l(f),f.important?a[d.toLowerCase()]=f.str:void 0===a[d.toLowerCase()]&&(a[d.toLowerCase()]=f.str)},H=function(a,b){"geo"===b.defaultSeriesType&&s.call(this,a,b)},s=function(a,b){var c=a.sender,d=c.getChartData(f.dataFormats.JSON,!0),l;d.error||((l=d.data.chart.theme)?q.themify(l,c,c.chartType(),d.data,
"geo"===b.defaultSeriesType&&"geo"):c.jsVars.themeObject&&c.jsVars.themeObject.dispose())};t=function(){this.themeStore={}};t.prototype={constructor:t,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,d,l){var m=b.jsVars,n=a.split(","),p=[],q=n.length,t,r;if(q){for(r=0;r<q;r+=1){t=this.themeStore;var F;F=n[r];F=F.replace(/^\s\s*/,"");for(var X=/\s/,aa=F.length;X.test(F.charAt(--aa)););F=F.slice(0,aa+1);(t=t[F])&&p.push(this.evaluateThemeJSON(t.theme,
b,c,l))}p.length?(m.themeObject=new C(p,b,!1,d),this.applyTheme(b),b.addEventListener("chartTypeChanged",s),b.addEventListener("internal.drawstart",H)):f.raiseWarning(b,"14051100501","run","api.themes~themify()",'The theme "'+a+'" requested has not been registered.')}},evaluateThemeJSON:function(a,b,d,f){var l={},m=b.jsVars,n=function(a){var b,d;for(b in a)d=a[b],l[b]=d instanceof Array?c(l[b]||[],d):"object"===typeof d?c(l[b]||{},d):d};d=d||b.chartType();m.themeObject&&a!==m.themeObject&&(m.themeObject.dispose(),
delete m.themeObject);n(a.base);f&&a[f]&&n(a[f]);d&&a[d]&&n(a[d]);return l},applyTheme:function(a){a=a.jsVars.themeObject;var c=a.getThemedJSONData().data;c&&b(c,a)}};C=function(a,b,d,f){this.themeArray=a;this.themeComponents={};this.base={};this.chartInstance=b;this.isChildInstance=Boolean(d);this.themedData=d?null:c({},f);this.length=a.length;b=0;for(d=a.length;b<d;b+=1)this.parse(a[b])};C.prototype={constructor:C,pushTheme:function(a){a&&(this.themeArray.push(a),this.parse(a),this.length+=1)},
popTheme:function(){},parse:function(a){var b=this.themeComponents,d=this.chartInstance,f=this.base,m,p,n;for(p in a)if("string"===typeof a[p]||"number"===typeof a[p])if(f[p]){if(m=l(a[p]),n=l(f[p]),m.important||!n.important)f[p]=a[p]}else f[p]=a[p];else b[p]||(b[p]=[]),m=b[p],a[p]instanceof Array?m.push(c([],a[p])):"object"===typeof a[p]?m.push(new C([a[p]],d,!0)):"function"===typeof a[p]&&m.push(a[p])},merge:function(a){var b=this.base,c=a.base,d=this.themeComponents,f=a.themeComponents,m,n,p;for(p in c)if(m=
l(b[p]),n=l(c[p]),!m.important||n.important)b[p]=c[p];for(p in f)d[p]=d[p]?d[p].concat(f[p]):[].concat(f[p]);this.length+=a.length},get:function(a){return this.base[a]},getAll:function(){return c({},this.base)},component:function(a,b,c,d){var f=this.themeComponents,l=this.chartInstance,m=new C([],l,!0),p,q,s;q=f[a];if(!q)return null;a=0;for(f=q.length;a<f;a+=1)s=q[a],"function"===typeof s?(b=b||0,m.pushTheme(s.call(l,b,c,d))):s instanceof Array?(b=b||0,p=s.length,b%=p,p=s[b],p instanceof C?m.merge(p):
"function"===typeof p?m.pushTheme(p.call(l,b,c,d)):m.pushTheme(p)):s instanceof C?m.merge(s):m.pushTheme(s);return m},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",s),b.removeEventListener("internal.drawstart",H));this.dataWithoutTheme=this.isChildInstance=this.themeArray=
this.base=this.chartInstance=this.themeComponents=null}};q=new t;f.registrars.theme=f.registerTheme=function(a){a&&("[object Array]"!==Object.prototype.toString.call(a)&&(a=[a]),q.add(a))};f.addEventListener("beforeDataUpdate",function(a,b){var c=a.sender,d=f.core.transcodeData(b.data,b.format,f.dataFormats.JSON),l=d.chart&&d.chart.theme;l?q.themify(l,c,c.args.type,d):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(f){return{showLabel:f%2?0:1}},vline:{color:"#000000",thickness:2}}],dataset:[{color:"#8C3146",data:function(f,t){8==f&&(t.value="");return{color:32E3>Number(t.value)?"#8C3146":"#FF0000",alpha:"100"}}}],
trendlines:[{line:function(f){return f?{color:"#ff0000",thickness:3}:{color:"#ffff00",thickness:3}}}]},pie2d:{chart:{bgColor:"#FF0000"}},msline:{chart:{canvasBgColor:"#ff0000"}},geo:{chart:{canvasBgColor:"#0000ff"}},world:{chart:{canvasBgColor:"#00ff00"}}}});
/*
 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.9.0
*/
FusionCharts.register("module",["private","modules.renderer.js-charts",function(){function Da(a){var m={left:a.offsetLeft,top:a.offsetTop};for(a=a.offsetParent;a;)m.left+=a.offsetLeft,m.top+=a.offsetTop,a!==Ka.body&&a!==Ka.documentElement&&(m.left-=a.scrollLeft,m.top-=a.scrollTop),a=a.offsetParent;return m}function sa(a,m){for(var d=[],e=0,p=a.length;e<p;e++)d[e]=m.call(a[e],a[e],e,a);return d}function da(a,m){var d=m?360:ia;a=(a||0)%d;return 0>a?d+a:a}function Na(a,m){return a<=x?a:m<=x?m:m>a?0:
m}function Ra(a,m,d,e,p){return ba((m-d[1]-e.top)/p,a-d[0]-e.left)}function Oa(a,m,d,e,p,b,s,aa,c,q){"object"===typeof a&&(m=a.y,d=a.r,e=a.innerR,p=a.radiusYFactor,b=a.depth,s=a.seriesGroup,aa=a.renderer,a=a.x);if(0>p||1<=p)p=.6;a=a||0;m=m||0;d=d||1;e=e||0;b=b||0;this.renderer=aa;this.hasOnePoint=c;this.use3DLighting=q;this.cx=a;this.cy=m;this.rx=d;this.ry=d*p;this.radiusYFactor=p;this.isDoughnut=0<e;this.innerRx=e;this.innerRy=e*p;this.depth=b;this.leftX=a-d;this.rightX=a+d;this.leftInnerX=a-e;this.rightInnerX=
a+e;this.depthY=m+b;this.topY=m-this.ry;this.bottomY=this.depthY+this.ry;this.bottomBorderGroup=aa.group("bottom-border",s).attr({transform:"t0,"+b});this.outerBackGroup=aa.group("outer-back-Side",s);this.slicingWallsBackGroup=aa.group("slicingWalls-back-Side",s);this.innerBackGroup=aa.group("inner-back-Side",s);this.innerFrontGroup=aa.group("inner-front-Side",s);this.slicingWallsFrontGroup=aa.group("slicingWalls-front-Side",s);this.topGroup=aa.group("top-Side",s);this.moveCmdArr=["M"];this.lineCmdArr=
["L"];this.closeCmdArr=["Z"];this.centerPoint=[a,m];this.leftPoint=[this.leftX,m];this.topPoint=[a,this.topY];this.rightPoint=[this.rightX,m];this.bottomPoint=[a,m+this.ry];this.leftDepthPoint=[this.leftX,this.depthY];this.rightDepthPoint=[this.rightX,this.depthY];this.leftInnerPoint=[this.leftInnerX,m];this.rightInnerPoint=[this.rightInnerX,m];this.leftInnerDepthPoint=[this.leftInnerX,this.depthY];this.rightInnerDepthPoint=[this.rightInnerX,this.depthY];this.pointElemStore=[];this.slicingWallsArr=
[];a=["A",this.rx,this.ry,0,0,1,this.rightX,m];d=["A",this.rx,this.ry,0,0,1,this.leftX,m];e=["A",this.rx,this.ry,0,0,0,this.rightX,this.depthY];p=["A",this.rx,this.ry,0,0,0,this.leftX,this.depthY];b=["A",this.innerRx,this.innerRy,0,0,0,this.rightInnerX,m];m=["A",this.innerRx,this.innerRy,0,0,0,this.leftInnerX,m];s=["A",this.innerRx,this.innerRy,0,0,1,this.rightInnerX,this.depthY];aa=["A",this.innerRx,this.innerRy,0,0,1,this.leftInnerX,this.depthY];this.isDoughnut?(this.topBorderPath=this.moveCmdArr.concat(this.leftPoint,
a,d,this.moveCmdArr,this.leftInnerPoint,b,m),this.topPath=this.moveCmdArr.concat(this.leftPoint,a,d,this.lineCmdArr,this.leftInnerPoint,b,m,this.closeCmdArr),this.innerFrontPath=this.moveCmdArr.concat(this.leftInnerPoint,b,this.lineCmdArr,this.rightInnerDepthPoint,aa,this.closeCmdArr),this.innerBackPath=this.moveCmdArr.concat(this.rightInnerPoint,m,this.lineCmdArr,this.leftInnerDepthPoint,s,this.closeCmdArr)):this.topBorderPath=this.topPath=this.moveCmdArr.concat(this.leftPoint,a,d,this.closeCmdArr);
this.outerBackPath=this.moveCmdArr.concat(this.leftPoint,a,this.lineCmdArr,this.rightDepthPoint,p,this.closeCmdArr);this.outerFrontPath=this.moveCmdArr.concat(this.rightPoint,d,this.lineCmdArr,this.leftDepthPoint,e,this.closeCmdArr);this.clipPathforOuter=["M",this.leftX,this.topY,"L",this.rightX,this.topY,this.rightX,this.bottomY,this.leftX,this.bottomY,"Z"];this.clipPathforInner=["M",this.leftInnerX,this.topY,"L",this.rightInnerX,this.topY,this.rightInnerX,this.bottomY,this.leftInnerX,this.bottomY,
"Z"];this.clipPathforNoClip=["M",this.leftInnerX,this.topY,"L",this.leftInnerX,this.bottomY,"Z"];this.colorObjs=[]}var ta=this,z=ta.hcLib,na=z.Raphael,t=ta.window,Ka=t.document,S=z.BLANKSTRING,Wa=z.createTrendLine,g=z.pluck,Ba=z.getValidValue,Ha=z.parseTooltext,f=z.pluckNumber,Ia=z.getFirstValue,Ua=z.getDefinedColor,pa=z.parseUnsafeString,va=z.FC_CONFIG_STRING,Ca=z.extend2,Fa=z.getDashStyle,L=z.toRaphaelColor,Pa=z.toPrecision,Qa=z.stubFN,qa=z.hasSVG,za=z.each,Ga=z.TOUCH_THRESHOLD_PIXELS,Sa=z.CLICK_THRESHOLD_PIXELS,
ua=z.plotEventHandler,b=z.hasTouch?Ga:Sa,c="rgba(192,192,192,"+(z.isIE?.002:1E-6)+")",h=8===t.document.documentMode?"visible":"",P=Math,w=P.sin,D=P.cos,ba=P.atan2,u=P.round,r=P.min,B=P.max,X=P.abs,oa=P.PI,y=P.ceil,n=P.floor,G=P.sqrt,O=oa/180,Y=180/oa,x=Math.PI,Z=x/2,ia=2*x,Va=x+Z,La=z.graphics.getColumnColor,ja=z.getFirstColor,ma=z.setLineHeight,ka=z.pluckFontSize,ra=z.getFirstAlpha,ga=z.graphics.getDarkColor,$=z.graphics.getLightColor,fa=z.graphics.convertColor,la=z.COLOR_TRANSPARENT,ha=z.POSITION_CENTER,
wa=z.POSITION_TOP,Xa=z.POSITION_BOTTOM,Za=z.POSITION_RIGHT,$a=z.POSITION_LEFT,ab=z.parsexAxisStyles,Ya=z.hashify,k=z.chartAPI,bb=z.graphics.mapSymbolName,t=k.singleseries,T=z.COMMASTRING,xa=z.ZEROSTRING,Ma=z.ONESTRING,Aa=z.HUNDREDSTRING,Ta=z.PXSTRING,cb=z.COMMASPACE;k("column2d",{standaloneInit:!0,friendlyName:"Column Chart",creditLabel:!1,rendererId:"cartesian"},k.column2dbase);k("column3d",{friendlyName:"3D Column Chart",defaultSeriesType:"column3d",defaultPlotShadow:1,is3D:!0,fireGroupEvent:!0,
defaultZeroPlaneHighlighted:!1},k.column2d);k("bar2d",{friendlyName:"Bar Chart",isBar:!0,defaultSeriesType:"bar",spaceManager:k.barbase},k.column2d);k("bar3d",{friendlyName:"3D Bar Chart",defaultSeriesType:"bar3d",defaultPlotShadow:1,fireGroupEvent:!0,is3D:!0,defaultZeroPlaneHighlighted:!1},k.bar2d);k("line",{friendlyName:"Line Chart",standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},k.linebase);k("area2d",{friendlyName:"Area Chart",standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},
k.area2dbase);k("pie2d",{friendlyName:"Pie Chart",standaloneInit:!0,defaultSeriesType:"pie",defaultPlotShadow:1,reverseLegend:1,alignCaptionWithCanvas:0,sliceOnLegendClick:!0,rendererId:"pie",point:function(a,m,d,e,p){a=p[va];var b=this.colorManager,s=a.is3d,aa=f(e.plotborderthickness),c=f(aa,s?.1:1),q=f(e.enablemultislicing,1),K=f(e.use3dlighting,1),l=K?f(e.radius3d,e["3dradius"],90):100,F=f(e.showzeropies,1),h=f(e.showpercentintooltip,1),P=f(e.showlabels,1),A=f(e.showvalues,1),k=f(e.showpercentvalues,
e.showpercentagevalues,0),E=g(e.tooltipsepchar,e.hovercapsepchar,cb),Ja=g(e.labelsepchar,E),ea=g(e.plotbordercolor,e.piebordercolor),M=p[va].numberFormatter,ya=d.length,D=f(e.plotborderdashed,0),I=f(e.plotborderdashlen,5),C=f(e.plotborderdashgap,4),H=f(e.showvalueinlegend,0),N=f(e.showlabelinlegend,1),w=f(e.valuebeforelabelinlegend,0),u=f(e.showvalueaspercentinlegend,1),J=f(e.reverseplotorder,0),W=g(e.legendsepchar,", "),U=p.plotOptions.series.dataLabels.style,Ea=0,y=[],Q,v,R,ca,x,V,B,r,la,t,ba,G,
O,Y,z,n,X,ia,L,oa=-1;X=m.centerLabelConfig={label:pa(g(e.defaultcenterlabel,"")),font:g(e.centerlabelfont,U.fontFamily),fontSize:f(e.centerlabelfontsize,parseInt(U.fontSize,10)),color:ja(g(e.centerlabelcolor,e.valuefontcolor,a.inCanvasStyle.color,"555555")),alpha:f(e.centerlabelalpha,100),bold:f(e.centerlabelbold,U.fontWeight),italic:f(e.centerlabelitalic,U.style),bgColor:g(e.centerlabelbgcolor,""),bgAlpha:f(e.centerlabelbgalpha,100),borderColor:g(e.centerlabelbordercolor,U.borderColor),borderAlpha:f(e.centerlabelborderalpha,
100),borderThickness:f(e.centerlabelborderthickness,U.borderThickness),borderRadius:f(e.centerlabelborderradius,U.borderRadius),textPadding:f(e.centerlabeltextpadding,U.borderPadding),padding:f(e.centerlabelpadding,2),bgOval:f(e.centerlabelbgoval,0),shadow:f(e.showcenterlabelshadow,0),hoverColor:e.centerlabelhovercolor&&ja(g(e.centerlabelhovercolor)),hoverAlpha:f(e.centerlabelhoveralpha),toolText:pa(g(e.centerlabeltooltext,""))};100<l&&(l=100);0>l&&(l=0);f(e.showlegend,0)&&(p.legend.enabled=!0,p.legend.reversed=
!Boolean(f(e.reverselegend,0)),m.showInLegend=!0);for(v=0;v<ya;v+=1)ca=d[v],R=M.getCleanValue(ca.value,!0),null===R||!F&&0===R||(y.push(ca),Ea+=R);0===Ea&&(y=[]);m.enableRotation=1<y.length?f(e.enablerotation,1):0;m.alphaAnimation=f(e.alphaanimation,1);m.is3D=s;m.placeLabelsInside=e.placevaluesinside;m.use3DLighting=K;m.pieYScale=f(e.pieyscale,40);1>m.pieYScale&&(m.pieYScale=1);100<=m.pieYScale&&(m.pieYScale=80);m.pieYScale/=100;m.pieSliceDepth=f(e.pieslicedepth,15);1>m.pieSliceDepth&&(m.pieSliceDepth=
1);m.managedPieSliceDepth=m.pieSliceDepth;m.enableMultiSlicing=!!q;s&&e.showplotborder!=Ma&&!aa&&(m.showBorderEffect=1);for(v=y.length-1;0<=v;--v){ca=y[v];R=M.getCleanValue(ca.value,!0);Q=pa(g(ca.label,ca.name,S));ya=g(ca.color,b.getPlotColor(v));V=g(ca.alpha,e.plotfillalpha);B=g(ca.bordercolor,ea);r=g(ca.borderalpha,e.plotborderalpha,e.pieborderalpha);s&&(B||void 0!==r)&&(m.showBorderEffect=0);B=g(B,$(ya,s?90:25)).split(T)[0];r=e.showplotborder==xa?xa:g(r,V,"80");V=g(V,Aa);F={opacity:Math.max(V,
r)/100};if(d=Boolean(f(ca.issliced,e.issliced,0)))q||(-1!==oa&&(m.data[y.length-oa-1].sliced=!1),oa=v),a.preSliced=d;aa=(z=f(ca.dashed,D))?Fa(g(ca.dashlen,I),g(ca.dashgap,C),c):"none";x=Ba(pa(g(ca.tooltext,a.tooltext)));ba=M.percentValue(R/Ea*100);G=M.dataLabels(R)||S;t=1===f(ca.showlabel,P)?Q:S;la=1===(O=f(ca.showvalue,A))?1===k?ba:G:S;Y=Ba(pa(ca.displayvalue));la=void 0!==Y&&O?Y:la!==S&&t!==S?t+Ja+la:g(t,la);void 0!==x?x=Ha(x,[1,2,3,5,6,7,14,24,25],{formattedValue:G,label:Q,yaxisName:pa(e.yaxisname),
xaxisName:pa(e.xaxisname),percentValue:ba,sum:M.dataLabels(Ea),unformattedSum:Ea},ca,e):(x=Q,O=h?ba:G,x=x!=S?x+E+O:O);O=N?Q:S;H&&(n=u?M.legendPercentValue(R/Ea*100):M.legendValue(R),O=w?n+(O&&W+O):(O&&O+W)+n);z=this.pointHoverOptions(ca,m,{plotType:"pie",use3DLighting:K,color:ya,alpha:V,borderWidth:c,borderColor:B,borderAlpha:r,borderDashed:z,borderDashGap:g(ca.dashgap,C),borderDashLen:f(ca.dashlen,I),radius3D:l,shadow:F});Q={label:g((ia=ca.centerlabel||e.centerlabel)&&this.replaceMacros(ia,["\\$value",
"\\$percentValue","\\$displayValue","\\$label"],[G,ba,void 0===Y?"":Y,Q]),""),font:X.font,fontSize:f(ca.centerlabelfontsize,X.fontSize),color:ja(g(ca.centerlabelcolor,X.color)),alpha:f(ca.centerlabelalpha,X.alpha),bold:f(ca.centerlabelbold,X.bold),italic:f(ca.centerlabelitalic,X.italic),bgColor:g(ca.centerlabelbgcolor,X.bgColor),bgAlpha:f(ca.centerlabelbgalpha,X.bgAlpha),borderColor:g(ca.centerlabelbordercolor,X.borderColor),borderAlpha:f(ca.centerlabelborderalpha,X.borderAlpha),borderThickness:X.borderThickness,
borderRadius:X.borderRadius,textPadding:X.textPadding,padding:X.padding,bgOval:X.bgOval,shadow:X.shadow,hoverColor:(L=g(ca.centerlabelhovercolor,X.hoverColor))&&ja(L),hoverAlpha:f(ca.centerlabelhoveralpha,X.hoverAlpha),toolText:g(ca.centerlabeltooltext,"")};m.data.push({displayValue:la,style:ab(ca,{},e,U,ya),categoryLabel:t,showInLegend:O!==S,y:R,name:O,legendCosmetics:this.parseLegendOptions(e,ca),shadow:F,toolText:x,color:this.getPointColor(ya,V,l),_3dAlpha:V,borderColor:fa(B,r),borderWidth:c,link:Ba(ca.link),
sliced:d,dashStyle:aa,doNotSlice:g(e.enableslicing,Ma)!=Ma,hoverEffects:z.enabled&&z.options,rolloverProperties:z.enabled&&z.rolloverOptions,centerLabelConfig:Q})}J&&(m.reversePlotOrder=!0,m.data&&m.data.reverse());m.valueTotal=Ea;p.legend.enabled=e.showlegend===Ma?!0:!1;m.startAngle=f(e.startingangle,0);p.chart.startingAngle=g(1<y.length?e.startingangle:0,0);return m},replaceMacros:function(a,m,d){for(var e=m.length||0,p;e--;)p=new RegExp(m[e],"gi"),a=a.replace(p,d[e]);return a},containsMacro:function(a,
m){for(var d=m.length||0,e;d--;)if(e=new RegExp(m[d],"gi"),e=a.match(e))return!0;return!1},getPointColor:function(a,m,d){var e,p;a=ja(a);m=ra(m);100>d&&qa?(e=Math.floor(85*(100-.35*d))/100,e=ga(a,e),p=Math.floor(50*(100+d))/100,a=$(a,p),m={FCcolor:{color:a+T+e,alpha:m+T+m,ratio:d+","+(100-d),radialGradient:!0,gradientUnits:"userSpaceOnUse"}}):m={FCcolor:{color:a+T+a,alpha:m+T+m,ratio:"0,100"}};return m},configureAxis:function(a,m){var d=0,e=a[va],p=m.chart,b=a.xAxis.labels.style,s,aa;s=(s=Ia(p.valuebordercolor,
S))?fa(s,f(p.valueborderalpha,p.valuealpha,100)):S;b={fontFamily:g(p.valuefont,b.fontFamily),fontSize:g(p.valuefontsize,parseInt(b.fontSize,10))+Ta,lineHeight:b.lineHeight,color:fa(g(p.valuefontcolor,b.color),f(p.valuefontalpha,p.valuealpha,100)),fontWeight:f(p.valuefontbold)?"bold":"normal",fontStyle:f(p.valuefontitalic)?"italic":"normal",border:s||p.valuebgcolor?f(p.valueborderthickness,1)+"px solid":void 0,borderColor:s,borderThickness:f(p.valueborderthickness,1),borderPadding:f(p.valueborderpadding,
2),borderRadius:f(p.valueborderradius,0),backgroundColor:p.valuebgcolor?fa(p.valuebgcolor,f(p.valuebgalpha,p.valuealpha,100)):S,borderDash:f(p.valueborderdashed,0)?Fa(f(p.valueborderdashlen,4),f(p.valueborderdashgap,2),f(p.valueborderthickness,1)):"none"};a.plotOptions.series.dataLabels.style=b;delete e.x;delete e[0];delete e[1];a.chart.plotBorderColor=a.chart.plotBackgroundColor=la;e=e.pieDATALabels=[];if(1===a.series.length&&(aa=a.series[0].data)&&0<(d=a.series[0].data.length)&&a.plotOptions.series.dataLabels.enabled)for(;d--;)aa[d]&&
void 0!==Ba(aa[d].displayValue)&&e.push({text:aa[d].displayValue,style:aa[d].style})},spaceManager:function(a,m,d,e){var p=a[va],b=p.is3d,s=this.name,aa=this.colorManager,c=this.smartLabel||p.smartLabel,q=f(p.pieDATALabels&&p.pieDATALabels.length,0),K=0,l=m.chart,F=f(l.managelabeloverflow,0),h=f(l.slicingdistance),P=p.preSliced||l.enableslicing!==xa||l.showlegend===Ma&&l.interactivelegend!==xa?X(f(h,20)):0,A=f(l.pieradius,0),k=f(l.enablesmartlabels,l.enablesmartlabel,1),E=k?f(l.skipoverlaplabels,
l.skipoverlaplabel,1):0,Ja=f(l.issmartlineslanted,1),ea=q?f(l.labeldistance,l.nametbdistance,5):P,M=f(l.smartlabelclearance,5);d-=a.chart.marginRight+a.chart.marginLeft;var ya=e-(a.chart.marginTop+a.chart.marginBottom);e=r(ya,d);var D=g(l.smartlinecolor,aa.getColor("plotFillColor")),I=f(l.smartlinealpha,100),C=f(l.smartlinethickness,.7),aa=a.plotOptions.series.dataLabels,H=aa.style,N=q?f(parseInt(H.lineHeight,10),12):0,H=a.series[0]||{},w=H.pieYScale,u=H.pieSliceDepth;e=0===A?.15*e:A;var J=0,J=2*
e;aa.placeLabelsInside=/doughnut2d/.test(s)?0:1===q&&1;aa.connectorWidth=C;aa.connectorPadding=f(l.connectorpadding,5);aa.connectorColor=fa(D,I);q&&(k&&(ea=M),ea+=P);M=J+2*(N+ea);ya-=this.titleSpaceManager(a,m,d,B(M<ya?ya-M:ya/2,parseFloat(a.title.style.lineHeight,10)));l.showlegend===Ma&&(g(l.legendposition,Xa).toLowerCase()!==Za?ya-=this.placeLegendBlockBottom(a,m,d,ya/2,!0):d-=this.placeLegendBlockRight(a,m,d/3,ya,!0));if(1!==q)for(;q--;)c.setStyle(p.pieDATALabels[q].style),m=c.getOriSize(p.pieDATALabels[q].text),
K=B(K,m.width);0===A&&(b?(ya-=u,J=r(d/2-K-P,(ya/2-N)/w)-ea):J=r(d/2-K-P,ya/2-N)-ea,J>=e?e=J:h||(P=ea=B(r(ea-(e-J),P),10)));b&&(q=ya-2*(e*w+N),u>q&&(H.managedPieSliceDepth=u-q));a.plotOptions.pie3d.slicedOffset=a.plotOptions.pie.slicedOffset=P;a.plotOptions.pie3d.size=a.plotOptions.pie.size=2*e;aa.distance=ea;aa.isSmartLineSlanted=Ja;aa.enableSmartLabels=k;aa.skipOverlapLabels=E;aa.manageLabelOverflow=F;if("doughnut2d"===s||"doughnut3d"===s)if(s=f(l.doughnutradius,0),q=(q=f(l.use3dlighting,1))?f(l.radius3d,
l["3dradius"],50):100,100<q&&(q=100),0>q&&(q=0),l=0===s||s>=e?e/2:s,a.plotOptions.pie3d.innerSize=a.plotOptions.pie.innerSize=2*l,0<q&&qa&&(l=parseInt(l/e*100,10),s=(100-l)/2,q=parseInt(s*q/100,10),l=l+T+q+T+2*(s-q)+T+q,a.series[0]&&a.series[0].data))for(F=a.series[0].data,a=0,q=F.length;a<q;a+=1)s=F[a],s.color.FCcolor&&(s.color.FCcolor.ratio=l,s.rolloverProperties.color&&(s.rolloverProperties.color.FCcolor.ratio=l))},creditLabel:!1,eiMethods:{isPlotItemSliced:function(a){var m=this.jsVars.hcObj,
d,e,p;return m&&m.datasets&&m.datasets[0]&&(d=m.datasets[0].data)&&(p=d.length)&&d[a=p-a-1]&&(e=d[a].plot)&&e.sliced},slicePlotItem:function(a,m){var d=this.jsVars.hcObj,e,p,b,s;return d&&d.datasets&&(e=d.datasets[0])&&(p=e.data)&&(s=p.length)&&p[a=e.reversePlotOrder?a:s-a-1]&&(b=p[a].plot)&&((!!m!==b.sliced||void 0===m)&&d.plotGraphicClick.call(b)||b.sliced)},centerLabel:function(a,m){var d=this.jsVars.hcObj,e=d.options,p=e.series[0],e=e.plotOptions.pie.innerSize,b=d.canvasLeft+.5*d.canvasWidth,
s=d.canvasTop+.5*d.canvasHeight,aa=p.centerLabelConfig,c;if("object"!==typeof m)m=aa;else for(c in aa)void 0===m[c]&&(m[c]=aa[c]);m.label=a;p.centerLabelConfig=m;e&&d.drawDoughnutCenterLabel(a||"",b,s,e,e,m,!0)},startingAngle:function(a,m){var d=this.jsVars.hcObj,e=d.datasets[0].plot,p="pie"===d.options.chart.defaultSeriesType,b,s=(b=d.datasets[0].startAngle)*(p?-Y:1)+(0>(p?-1:1)*b?360:0);if(!isNaN(a)){if(e.singletonCase||e.isRotating)return;a+=m?s:0;p?((p=d.options.series[0]).startAngle=-a*O,d.rotate(e,
p)):d.rotate(a);s=a}return u(100*((s%=360)+(0>s?360:0)))/100}}},t);k.pie2d.eiMethods.togglePieSlice=k.pie2d.eiMethods.sliceDataItem=k.pie2d.eiMethods.slicePlotItem;k.pie2d.eiMethods.enableSlicingMovement=k.pie2d.eiMethods.enablelink=function(){ta.raiseWarning(this,"1301081430","run","JSRenderer~enablelink()","Method deprecated.")};k("pie3d",{friendlyName:"3D Pie Chart",defaultSeriesType:"pie3d",rendererId:"pie3d",creditLabel:!1,fireGroupEvent:!0,getPointColor:function(a){return a},defaultPlotShadow:0},
k.pie2d);k("doughnut2d",{friendlyName:"Doughnut Chart",getPointColor:function(a,m,d){var e;a=ja(a);m=ra(m);100>d&&qa?(e=ga(a,n(100*(85-.2*(100-d)))/100),a=$(a,n(100*(100-.5*d))/100),m={FCcolor:{color:e+","+a+","+a+","+e,alpha:m+","+m+","+m+","+m,radialGradient:!0,gradientUnits:"userSpaceOnUse",r:d}}):m={FCcolor:{color:a+","+a,alpha:m+","+m,ratio:"0,100"}};return m}},k.pie2d);k("doughnut3d",{friendlyName:"3D Doughnut Chart",defaultSeriesType:"pie3d",rendererId:"pie3d",fireGroupEvent:!0,getPointColor:k.pie3d,
defaultPlotShadow:0},k.doughnut2d);k("pareto2d",{standaloneInit:!0,friendlyName:"Pareto Chart",point:function(a,m,d,e,p){a=d.length;var b=0,s=0,c={},h=this.colorManager,q=/3d$/.test(p.chart.defaultSeriesType),K=this.isBar,l=g(360-e.plotfillangle,90),F=g(e.showplotborder,q?xa:Ma)===Ma?q?1:f(e.plotborderthickness,1):0,P=p.chart.useRoundEdges,k=g(e.tooltipsepchar,", "),A=g(e.plotbordercolor,h.getColor("plotBorderColor")).split(T)[0],D=e.showplotborder==xa?xa:g(e.plotborderalpha,e.plotfillalpha,Aa),E=
p.xAxis,Ja=f(e.showcumulativeline,1),ea=p[va],M=ea.axisGridManager,u=ea.x,w=e.showtooltip!=xa,I=[],C=f(e.use3dlighting,1),H=p[va].numberFormatter,N=f(e.showlinevalues,e.showvalues),y=f(e.plotborderdashed,0),x,J=f(e.plotborderdashlen,5),W=f(e.plotborderdashgap,4),U=pa(e.xaxisname),Ea=pa(e.yaxisname),B=ea.numberFormatter,Q=m,v,R,ca,r,V,$,O,la,X,t,ba,G,Y,z,n,fa,ia,L,oa,Z,ha,wa,ga,ma,D=q?e.showplotborder?D:xa:D,A=q?g(e.plotbordercolor,"#FFFFFF"):A;ca=f(e.useplotgradientcolor,1)?Ua(e.plotgradientcolor,
h.getColor("plotGradientColor")):S;for(n=R=0;R<a;R+=1)Z=d[R],d[R].vline?M.addVline(E,Z,n,p):(v=H.getCleanValue(Z.value,!0),null!==v&&(s+=Z.value=v,I.push(Z),n+=1));a=I.length;I.sort(function(a,d){return d.value-a.value});Ja&&0<s?(t=f(e.linedashed,0),ha=ja(g(e.linecolor,h.getColor("plotBorderColor"))),c=g(e.linealpha,100),ba=f(e.linedashlen,5),r=f(e.linedashgap,4),R=f(e.linethickness,2),Y={opacity:c/100},oa=g(e.valueposition,"auto"),z=f(e.drawanchors,e.showanchors),void 0===z&&(z=c!=xa),ia=f(e.anchorborderthickness,
1),L=f(e.anchorsides,0),x=f(e.anchorradius,3),fa=ja(g(e.anchorbordercolor,ha)),v=ja(g(e.anchorbgcolor,h.getColor("anchorBgColor"))),n=ra(g(e.anchoralpha,Aa)),d=ra(g(e.anchorbgalpha,n))*n/100,t=t?Fa(ba,r,R):"none",r=Boolean(f(Z.anchorshadow,e.anchorshadow,0)),ba=this.pointHoverOptions(Z,m,{plotType:"anchor",anchorBgColor:v,anchorAlpha:n,anchorBgAlpha:d,anchorAngle:g(e.anchorstartangle,90),anchorBorderThickness:ia,anchorBorderColor:fa,anchorBorderAlpha:n,anchorSides:L,anchorRadius:x,shadow:G}),c={yAxis:1,
data:[],type:"line",color:{FCcolor:{color:ha,alpha:c}},lineWidth:R,marker:{enabled:z,shadow:r&&1<=x?{opacity:n/100}:!1,fillColor:{FCcolor:{color:v,alpha:d}},lineColor:{FCcolor:{color:fa,alpha:n}},lineWidth:ia,radius:x,symbol:bb(L),startAngle:g(e.anchorstartangle,90)}},Q=[Q,c],ea[1]||(ea[1]={}),ea[1].stacking100Percent=!0):("1"!==e.showsecondarylimits&&(e.showsecondarylimits="0"),"1"!==e.showdivlinesecondaryvalue&&(e.showdivlinesecondaryvalue="0"));ea[1]||(ea[1]={});ea[1].stacking100Percent=!0;for(R=
0;R<a;R+=1)Z=I[R],G=f(Z.showlabel,e.showlabels,1),d=pa(G?Ia(Z.label,Z.name):S),O=g(Z.color,h.getPlotColor()),M.addXaxisCat(E,R,R,d,Z,{},e,O),b+=v=Z.value,r=f(Z.dashed,y),V=g(Z.dashgap,W),$=g(Z.dashlen,J),la=g(Z.alpha,e.plotfillalpha,Aa),X=g(Z.ratio,e.plotfillratio),G={opacity:la/100},wa=g(Z.alpha,D)+S,ha=La(O+T+ca.replace(/,+?$/,""),la,X,l,P,A+S,wa+S,K,q),x=r?Fa($,V,F):"none",n=b/s*100,ia=H.percentValue(n),fa=null===v?v:B.dataLabels(v),L=Ba(pa(Z.displayvalue)),L=f(Z.showvalue,ea.showValues)?void 0!==
L?L:fa:S,ea.showTooltip?void 0!==(z=Ba(pa(g(Z.tooltext,ea.tooltext))))?(ga={formattedValue:fa,label:d,yaxisName:Ea,xaxisName:U,cumulativeValue:b,cumulativeDataValue:B.dataLabels(b),cumulativePercentValue:ia,sum:B.dataLabels(s),unformattedSum:s},ma=[1,2,3,5,6,7,20,21,22,23,24,25],z=Ha(z,ma,ga,Z,e)):z=null===fa?!1:d!==S?d+ea.tooltipSepChar+fa:fa:z=S,V=this.pointHoverOptions(Z,m,{plotType:"column",is3d:q,isBar:K,use3DLighting:C,isRoundEdged:P,color:O,gradientColor:ca,alpha:la,ratio:X,angle:l,borderWidth:F,
borderColor:A,borderAlpha:wa,borderDashed:r,borderDashGap:V,borderDashLen:$,shadow:G}),r=g(Z.link),m.data.push({link:r,toolText:z,displayValue:L,categoryLabel:d,y:v,shadow:G,color:ha[0],borderColor:ha[1],borderWidth:F,use3DLighting:C,dashStyle:x,tooltipConstraint:this.tooltipConstraint,hoverEffects:V.enabled&&V.options,rolloverProperties:V.enabled&&V.rolloverOptions}),this.pointValueWatcher(p,v),Ja&&(v=Ba(pa(g(Z.cumulativeplottooltext,e.cumulativeplottooltext))),G=1==N?ia:0===N||L===S?S:ia,z=w?void 0!==
v?Ha(v,ma||[1,2,3,5,6,7,20,21,22,23,24,25],ga||{formattedValue:fa,label:d,yaxisName:Ea,xaxisName:U,cumulativeValue:b,cumulativeDataValue:B.dataLabels(b),cumulativePercentValue:ia,sum:B.dataLabels(s),unformattedSum:s},Z,e):(d!==S?d+k:S)+ia:S,c.data.push({shadow:Y,color:c.color,marker:c.marker,y:n,toolText:z,displayValue:G,valuePosition:oa,categoryLabel:d,link:r,dashStyle:t,hoverEffects:ba.enabled&&ba.options,rolloverProperties:ba.enabled&&ba.rolloverOptions}));u.catCount=a;return Q},defaultSeriesType:"column",
isDual:!0,creditLabel:!1,rendererId:"cartesian"},t);k("pareto3d",{friendlyName:"3D Pareto Chart",defaultSeriesType:"column3d",fireGroupEvent:!0,defaultPlotShadow:1,is3D:!0},k.pareto2d);k("mscolumn2d",{standaloneInit:!0,friendlyName:"Multi-series Column Chart",creditLabel:!1,rendererId:"cartesian"},k.mscolumn2dbase);k("mscolumn3d",{defaultSeriesType:"column3d",friendlyName:"Multi-series 3D Column Chart",defaultPlotShadow:1,fireGroupEvent:!0,is3D:!0,defaultZeroPlaneHighlighted:!1},k.mscolumn2d);k("msbar2d",
{friendlyName:"Multi-series Bar Chart",isBar:!0,defaultSeriesType:"bar",spaceManager:k.barbase},k.mscolumn2d);k("msbar3d",{defaultSeriesType:"bar3d",friendlyName:"Multi-series 3D Bar Chart",fireGroupEvent:!0,defaultPlotShadow:1,is3D:!0,defaultZeroPlaneHighlighted:!1},k.msbar2d);k("msline",{standaloneInit:!0,friendlyName:"Multi-series Line Chart",creditLabel:!1,rendererId:"cartesian"},k.mslinebase);k("msarea",{standaloneInit:!0,friendlyName:"Multi-series Area Chart",creditLabel:!1,rendererId:"cartesian"},
k.msareabase);k("stackedcolumn2d",{friendlyName:"Stacked Column Chart",isStacked:!0},k.mscolumn2d);k("stackedcolumn3d",{friendlyName:"3D Stacked Column Chart",isStacked:!0},k.mscolumn3d);k("stackedbar2d",{friendlyName:"Stacked Bar Chart",isStacked:!0},k.msbar2d);k("stackedbar3d",{friendlyName:"3D Stacked Bar Chart",isStacked:!0},k.msbar3d);k("stackedarea2d",{friendlyName:"Stacked Area Chart",isStacked:!0,areaAlpha:100,showSum:0},k.msarea);k("marimekko",{friendlyName:"Marimekko Chart",isValueAbs:!0,
distributedColumns:!0,isStacked:!0,xAxisMinMaxSetter:Qa,postSeriesAddition:function(a,m){var d=a[va],e=0,b=a.xAxis,c=100/d.marimekkoTotal,s=[],aa=a.series,h=0,q=Ca({},a.plotOptions.series.dataLabels.style),K=parseInt(q.fontSize,10),l=f(m.chart.plotborderthickness,1),F=a.chart.rotateValues,P=f(m.chart.rotatexaxispercentvalues,0),k=-.5*l-(l%2+(P?1:0)+!a.chart.plotBorderWidth),A=P?K/2*1.2:0,D=F?270:0,E=d[0],Ja=E.stacking100Percent,ea=!Ja,M=d.inCanvasStyle,g=this.numberFormatter,w=m.categories&&m.categories[0]&&
m.categories[0].category||[],I=0,C=[],H,N,x,r,J,W,U,B,O,Q,l=[];d.isXYPlot=!0;d.distributedColumns=!0;b.min=0;b.max=100;b.labels.enabled=!1;b.gridLineWidth=0;b.alternateGridColor=la;H=E.stack;m.chart.interactivelegend="0";E=0;for(N=a.xAxis.plotLines.length;E<N;E+=1)x=b.plotLines[E],x.isGrid&&(x.isCat=!0,s[x.value]=x,x._hideLabel=!0);for(E=N=0;E<w.length;E+=1)w[E].vline||(I+=C[N]=g.getCleanValue(w[E].widthpercent||0),N+=1);x=H.floatedcolumn&&H.floatedcolumn[0]||[];if(100===I&&(x&&x.length)!==N)for(;N--;)x[N]||
(x[N]={p:null});I=u(I);if(x)for(J=0,N=x.length;J<N;){Q=x[J];e+=r=Q&&Q.p||0;U=100===I?C[J]:r*c;W=h+U/2;B=h+U;l.push(B);for(E=0;E<aa.length;E+=1)if(a.series[E].visible=!0,w=a.series[E].data[J],w._FCX=h,w._FCW=U,O=g.percentValue(w.y/r*100),w.toolText=Ha(w.toolText,[14,24,25,111,112],{xAxisPercentValue:g.percentValue(U),percentValue:O,sum:g.dataLabels(r),unformattedSum:r}),Ja){if(w.y||0===w.y)H=w.y/r*100,w.y=H,w.showPercentValues&&(w.displayValue=O);if(w.previousY||0===w.previousY)w.previousY=w.previousY/
r*100}d.showStackTotal&&a.xAxis.plotLines.push({value:W,width:0,isVline:ea,isTrend:!ea,_isStackSum:1,zIndex:4,label:{align:ha,textAlign:ha,rotation:D,style:q,verticalAlign:wa,offsetScale:ea?0>r?Q.n:Q.p:void 0,offsetScaleIndex:0,y:0>r?270===F?4:K:-4,x:0,text:g.yAxis(Pa(r,10))}});s[J]&&(s[J].value=W,s[J]._weight=U,s[J]._hideLabel=!1);J+=1;d.showXAxisPercentValues&&J<N&&a.xAxis.plotLines.push({value:B,width:0,isVine:!0,label:{align:ha,textAlign:P?$a:ha,rotation:P?270:0,backgroundColor:"#ffffff",backgroundOpacity:1,
borderWidth:"1px",borderType:"solid",borderColor:M.color,style:{color:M.color,fontSize:M.fontSize,fontFamily:M.fontFamily,lineHeight:M.lineHeight},verticalAlign:Xa,y:k,x:A,text:this.numberFormatter.percentValue(B)},zIndex:5});h=B}J=0;for(N=s.length;J<N;J+=1)s[J]&&s[J]._hideLabel&&(s[J].value=null);E=0;for(N=a.xAxis.plotLines.length;E<N;E+=1)if(x=b.plotLines[E],x.isVline&&!x._isStackSum&&(d=x.value))d-=.5,e=l[n(d)],c=l[y(d)],x.value=e+(c-e)*(d-n(d))},defaultSeriesType:"floatedcolumn"},k.stackedcolumn2d);
k("msstackedcolumn2d",{friendlyName:"Multi-series Stacked Column Chart",series:function(a,m,d){var e,b,c,s,aa=m[va],h=0,q,K;q=[];var l;m.legend.enabled=Boolean(f(a.chart.showlegend,1));if(a.dataset&&0<a.dataset.length){this.categoryAdder(a,m);e=0;for(b=a.dataset.length;e<b;e+=1)if(l=a.dataset[e].dataset)for(c=0,s=l.length;c<s;c+=1,h+=1)q={hoverEffects:this.parseSeriesHoverOptions(a,m,l[c],d),visible:!f(l[c].initiallyhidden,0),data:[],numColumns:b,columnPosition:e},K=Math.min(aa.oriCatTmp.length,l[c].data&&
l[c].data.length),q=this.point(d,q,l[c],a.chart,m,K,h,e),m.series.push(q);if(this.isDual&&a.lineset&&0<a.lineset.length)for(c=0,s=a.lineset.length;c<s;c+=1,h+=1)e=a.lineset[c],q={hoverEffects:this.parseSeriesHoverOptions(a,m,e,d),visible:!f(e.initiallyhidden,0),data:[],yAxis:1,type:"line"},K=Math.min(aa.oriCatTmp.length,e.data&&e.data.length),m.series.push(k.msline.point.call(this,"msline",q,e,a.chart,m,K,h));this.configureAxis(m,a);a.trendlines&&Wa(a.trendlines,m.yAxis,m[va],this.isDual,this.isBar)}},
postSpaceManager:function(a,m,d){var e=a[va],b,c,s;k.base.postSpaceManager.call(this);if(this.isStacked&&e.showStackTotal&&(b=a.chart,a=(m=a.xAxis)&&m.plotLines,b=d-b.marginLeft-b.marginRight,d=e.plotSpacePercent,e=e[0].stack,e=e.column&&e.column.length,c=(1-2*d)/e,m=b/(m.max-m.min),50<m*c&&.1==d))for(m=50/m,d=a&&a.length,e=-((e-1)/2)*m,s=0;s<d;s+=1)c=a[s],c._isStackSum&&(b=c._catPosition+(e+m*c._stackIndex),c.value=b)}},k.stackedcolumn2d);k("mscombi2d",{friendlyName:"Multi-series Combination Chart",
standaloneInit:!0,creditLabel:!1,rendererId:"cartesian"},k.mscombibase);k("mscombi3d",{friendlyName:"Multi-series 3D Combination Chart",series:k.mscombi2d.series,eiMethods:function(a){var m={};za(a.split(","),function(a){m[a]=function(){ta.raiseWarning(this,"1301081430","run","JSRenderer~"+a+"()","Method not applicable.")}});return m}("view2D,view3D,resetView,rotateView,getViewAngles,fitToStage")},k.mscolumn3d);k("mscolumnline3d",{friendlyName:"Multi-series Column and Line Chart"},k.mscombi3d);k("stackedcolumn2dline",
{friendlyName:"Stacked Column and Line Chart",isStacked:!0,stack100percent:0},k.mscombi2d);k("stackedcolumn3dline",{friendlyName:"Stacked 3D Column and Line Chart",isStacked:!0,stack100percent:0},k.mscombi3d);k("mscombidy2d",{friendlyName:"Multi-series Dual Y-Axis Combination Chart",isDual:!0,secondarySeriesType:void 0},k.mscombi2d);k("mscolumn3dlinedy",{friendlyName:"Multi-series 3D Column and Line Chart",isDual:!0,secondarySeriesType:"line"},k.mscolumnline3d);k("stackedcolumn3dlinedy",{friendlyName:"Stacked 3D Column and Line Chart",
isDual:!0,secondarySeriesType:"line"},k.stackedcolumn3dline);k("msstackedcolumn2dlinedy",{friendlyName:"Multi-series Dual Y-Axis Stacked Column and Line Chart",isDual:!0,stack100percent:0,secondarySeriesType:"line"},k.msstackedcolumn2d);k("scrollcolumn2d",{friendlyName:"Scrollable Multi-series Column Chart",postSeriesAddition:k.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},k.mscolumn2d);k("scrollline2d",{friendlyName:"Scrollable Multi-series Line Chart",
postSeriesAddition:k.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:75},k.msline);k("scrollarea2d",{friendlyName:"Scrollable Multi-series Area Chart",postSeriesAddition:k.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:75},k.msarea);k("scrollstackedcolumn2d",{friendlyName:"Scrollable Stacked Column Chart",postSeriesAddition:function(a,m,d,e){k.base.postSeriesAddition.call(this,a,m,d,e);k.scrollbase.postSeriesAddition.call(this,
a,m,d,e)},canvasborderthickness:1,tooltipConstraint:"plot",avgScrollPointWidth:75},k.stackedcolumn2d);k("scrollcombi2d",{friendlyName:"Scrollable Combination Chart",postSeriesAddition:k.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},k.mscombi2d);k("scrollcombidy2d",{friendlyName:"Scrollable Dual Y-Axis Combination Chart",postSeriesAddition:k.scrollbase.postSeriesAddition,tooltipConstraint:"plot",canvasborderthickness:1,avgScrollPointWidth:40},
k.mscombidy2d);k("scatter",{friendlyName:"Scatter Chart",isXY:!0,standaloneInit:!0,defaultSeriesType:"scatter",defaultZeroPlaneHighlighted:!1,creditLabel:!1},k.scatterbase);k("bubble",{friendlyName:"Bubble Chart",standaloneInit:!0,standaloneInut:!0,defaultSeriesType:"bubble",rendererId:"bubble",point:function(a,m,d,e,b){a=f(e.ignoreemptydatasets,0);var c=!1,s=this.colorManager,aa,h,q,K,l,F,P,k,A,w,E,x,ea,M,D,u,I=f(d.showvalues,b[va].showValues);aa=f(e.bubblescale,1);var C=g(e.negativecolor,"FF0000");
h=f(e.minbubbleradius);var H=b.plotOptions.bubble,N=this.numberFormatter,r=m._showRegression=f(d.showregressionline,e.showregressionline,0),B,J,y,U;m.name=Ba(d.seriesname);q=Boolean(f(d.drawanchors,d.showanchors,e.drawanchors,1));k=g(d.plotfillalpha,d.bubblefillalpha,e.plotfillalpha,Aa);A=f(d.showplotborder,e.showplotborder,1);w=ja(g(d.plotbordercolor,e.plotbordercolor,"666666"));E=g(d.plotborderthickness,e.plotborderthickness,1);x=g(d.plotborderalpha,e.plotborderalpha,"95");A=1===A?E:0;s=g(d.color,
d.plotfillcolor,e.plotfillcolor,s.getPlotColor());m.marker={enabled:q,fillColor:this.getPointColor(s,Aa),lineColor:fa(w,A?x:0),lineWidth:A,symbol:"circle"};if(E=d.data){u=E.length;H.bubbleScale=aa;H.minBubbleRadius=h;if(0===f(d.includeinlegend)||void 0===m.name)m.showInLegend=!1;r&&(m.events={hide:this.hideRLine,show:this.showRLine},B={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]},J=f(d.showyonx,e.showyonx,1),y=ja(g(d.regressionlinecolor,e.regressionlinecolor,s)),U=f(d.regressionlinethickness,
e.regressionlinethickness,1),aa=ra(f(d.regressionlinealpha,e.regressionlinealpha,100)),y=fa(y,aa));for(h=0;h<u;h+=1)(K=E[h])?(aa=N.getCleanValue(K.y),ea=N.getCleanValue(K.x),M=N.getCleanValue(K.z,!0),null===aa?m.data.push({y:null,x:ea}):(c=!0,P=0!==f(e.use3dlighting,K.is3d,d.is3d,e.is3d),l=ja(g(K.color,0>K.z?C:s)),F=g(K.alpha,k),D=this.getPointStub(K,aa,ea,b,d,I),l=P?this.getPointColor(l,F):{FCcolor:{color:l,alpha:F}},null!==M&&(H.zMax=H.zMax>M?H.zMax:M,H.zMin=H.zMin<M?H.zMin:M),K=this.pointHoverOptions(K,
m,{plotType:"bubble",is3d:P,seriesAnchorSymbol:"circle",color:l,negativeColor:C,alpha:F,borderWidth:A,borderColor:w,borderAlpha:x,shadow:!1}),m.data.push({y:aa,x:ea,z:M,displayValue:D.displayValue,toolText:D.toolText,link:D.link,hoverEffects:K.enabled&&K.options,rolloverProperties:K.enabled&&K.rolloverOptions,marker:{enabled:q,fillColor:l,lineColor:{FCcolor:{color:w,alpha:x}},lineWidth:A,symbol:"circle"}}),this.pointValueWatcher(b,aa,ea,r&&B))):m.data.push({y:null});r&&(d={type:"line",color:y,showInLegend:!1,
lineWidth:U,enableMouseTracking:!1,marker:{enabled:!1},data:this.getRegressionLineSeries(B,J,u),zIndex:0},m=[m,d])}a&&!c&&(m.showInLegend=!1);return m},getPointStub:function(a,m,d,e,b,c){var s=this.dataObj.chart;e=e[va];m=null===m?m:e.numberFormatter.dataLabels(m);var aa,h=e.tooltipSepChar,q=Ba(pa(g(a.tooltext,b.plottooltext,e.tooltext)));e.showTooltip?void 0!==q?b=Ha(q,[4,5,6,7,8,9,10,11,12,13,118],{yDataValue:m,xDataValue:e.numberFormatter.xAxis(d),yaxisName:pa(s.yaxisname),xaxisName:pa(s.xaxisname),
zDataValue:e.numberFormatter.dataLabels(a.z)},a,s,b):null===m?b=!1:(e.seriesNameInToolTip&&(aa=g(b&&b.seriesname)),b=aa?aa+h:S,b+=d?e.numberFormatter.xAxis(d)+h:S,b=b+m+(a.z?h+e.numberFormatter.dataLabels(a.z):S)):b=S;d=f(a.showvalue,c,e.showValues)?void 0!==g(a.displayvalue,a.name,a.label)?pa(g(a.displayvalue,a.name,a.label)):m:S;a=Ba(a.link);return{displayValue:d,toolText:b,link:a}}},k.scatter);k("ssgrid",{friendlyName:"Grid Component",standaloneInit:!0,defaultSeriesType:"ssgrid",rendererId:"ssgrid",
chart:function(a,b){var d=this.containerElement,e=Ca({},this.dataObj),p=e.chart||(e.chart=e.graph||{}),c=this.chartInstance,s=0,aa=[],h=e.data,q=h&&h.length,K=this.smartLabel,l=this.numberFormatter,F=d.offsetHeight,P=d.offsetWidth,w=this.colorManager,A,x,E,D,ea,M,u,r,I,C,H,N,B,y,J,W,U,O,$,Q,v,R,ca,X,V,G=0;x=0;var d={_FCconf:{0:{stack:{}},1:{stack:{}},x:{stack:{}},noWrap:!1,marginLeftExtraSpace:0,marginRightExtraSpace:0,marginBottomExtraSpace:0,marginTopExtraSpace:0,marimekkoTotal:0},chart:{ignoreHiddenSeries:!1,
events:{},spacingTop:0,spacingRight:0,spacingBottom:0,spacingLeft:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0,borderRadius:0,borderColor:"#000000",borderWidth:1,defaultSeriesType:"ssgrid",textDirection:"1"===p.hasrtltext?"rtl":"",style:{fontFamily:g(p.basefont,"Verdana,sans"),fontSize:ka(p.basefontsize,20)+Ta,color:g(p.basefontcolor,w.getColor("baseFontColor")).replace(/^#?([a-f0-9]+)/ig,"#$1")},plotBackgroundColor:la},labels:{smartLabel:K},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:z.CREDIT_HREF,text:z.CREDIT_STRING,enabled:!1},legend:{enabled:!1},series:[],subtitle:{text:S},title:{text:S},tooltip:{enabled:!1},exporting:{buttons:{exportButton:{},printButton:{enabled:!1}}}},ba=d[va],n=A=x=G=0,t=s=y=0;V=c.jsVars.cfgStore;c=d.chart;ea=c.toolbar={button:{}};M=ea.button;delete e.graph;ma(d.chart.style);c.events.click=this.linkClickFN;M.scale=f(p.toolbarbuttonscale,1.15);M.width=f(p.toolbarbuttonwidth,15);M.height=f(p.toolbarbuttonheight,15);M.radius=f(p.toolbarbuttonradius,
2);M.spacing=f(p.toolbarbuttonspacing,5);M.fill=fa(g(p.toolbarbuttoncolor,"ffffff"));M.labelFill=fa(g(p.toolbarlabelcolor,"cccccc"));M.symbolFill=fa(g(p.toolbarsymbolcolor,"ffffff"));M.hoverFill=fa(g(p.toolbarbuttonhovercolor,"ffffff"));M.stroke=fa(g(p.toolbarbuttonbordercolor,"bbbbbb"));M.symbolStroke=fa(g(p.toolbarsymbolbordercolor,"9a9a9a"));M.strokeWidth=f(p.toolbarbuttonborderthickness,1);M.symbolStrokeWidth=f(p.toolbarsymbolborderthickness,1);e=M.symbolPadding=f(p.toolbarsymbolpadding,5);M.symbolHPadding=
f(p.toolbarsymbolhpadding,e);M.symbolVPadding=f(p.toolbarsymbolvpadding,e);M=ea.position=g(p.toolbarposition,"tr").toLowerCase();switch(M){case "tr":case "tl":case "br":case "bl":break;default:M="tr"}e=ea.hAlign="left"===(S+p.toolbarhalign).toLowerCase()?"l":M.charAt(1);M=ea.vAlign="bottom"===(S+p.toolbarvalign).toLowerCase()?"b":M.charAt(0);ea.hDirection=f(p.toolbarhdirection,"r"===e?-1:1);ea.vDirection=f(p.toolbarvdirection,"b"===M?-1:1);ea.vMargin=f(p.toolbarvmargin,6);ea.hMargin=f(p.toolbarhmargin,
10);ea.x=f(p.toolbarx,"l"===e?0:a);ea.y=f(p.toolbary,"t"===M?0:b);void 0!==g(p.clickurl)&&(c.link=p.clickurl,c.style.cursor="pointer");A=f(V.showpercentvalues,p.showpercentvalues,0);x=g(V.numberitemsperpage,p.numberitemsperpage);f(V.showshadow,p.showshadow,0);s=g(V.basefont,p.basefont,"Verdana,sans");E=ka(V.basefontsize,p.basefontsize,10);E+=Ta;D=ja(g(V.basefontcolor,p.basefontcolor,w.getColor("baseFontColor")));e=ja(g(V.alternaterowbgcolor,p.alternaterowbgcolor,w.getColor("altHGridColor")));ea=g(V.alternaterowbgalpha,
p.alternaterowbgalpha,w.getColor("altHGridAlpha"))+S;M=f(V.listrowdividerthickness,p.listrowdividerthickness,1);u=ja(g(V.listrowdividercolor,p.listrowdividercolor,w.getColor("borderColor")));r=f(V.listrowdivideralpha,p.listrowdivideralpha,w.getColor("altHGridAlpha"))+15+S;I=f(V.colorboxwidth,p.colorboxwidth,8);C=f(V.colorboxheight,p.colorboxheight,8);H=f(V.navbuttonradius,p.navbuttonradius,7);N=ja(g(V.navbuttoncolor,p.navbuttoncolor,w.getColor("canvasBorderColor")));B=ja(g(V.navbuttonhovercolor,p.navbuttonhovercolor,
w.getColor("altHGridColor")));y=f(V.textverticalpadding,p.textverticalpadding,3);J=f(V.navbuttonpadding,p.navbuttonpadding,5);W=f(V.colorboxpadding,p.colorboxpadding,10);U=f(V.valuecolumnpadding,p.valuecolumnpadding,10);O=f(V.namecolumnpadding,p.namecolumnpadding,5);$=f(V.borderthickness,p.borderthickness,1);Q=ja(g(V.bordercolor,p.bordercolor,w.getColor("borderColor")));v=g(V.borderalpha,p.borderalpha,w.getColor("borderAlpha"))+S;R=g(V.bgcolor,p.bgcolor,"FFFFFF");ca=g(V.bgalpha,p.bgalpha,Aa);X=g(V.bgratio,
p.bgratio,Aa);V=g(V.bgangle,p.bgangle,xa);c.borderRadius=$/16;c.borderWidth=$;c.borderColor=L({FCcolor:{color:Q,alpha:v}});c.backgroundColor={FCcolor:{color:R,alpha:ca,ratio:X,angle:V}};c.borderRadius=f(p.borderradius,0);V={fontFamily:s,fontSize:E,color:D};ma(V);K.setStyle(V);for(s=0;s<q;s+=1)if(E=h[s],$=l.getCleanValue(E.value),Q=pa(Ia(E.label,E.name)),D=ja(g(E.color,w.getPlotColor())),g(E.alpha,p.plotfillalpha,Aa),Q!=S||null!=$)aa.push({value:$,label:Q,color:D}),G+=$,t+=1;for(s=0;s<t;s+=1)E=aa[s],
$=E.value,E.dataLabel=E.label,E.displayValue=A?l.percentValue($/G*100):l.dataLabels($),h=K.getOriSize(E.displayValue),n=Math.max(n,h.width+U);x?x>=t?(A=F/t,x=t):(l=F-2*(J+H),A=l/x):(G=parseInt(V.lineHeight,10),G=Math.max(G+2*y,C),x=F/G,x>=t?(A=F/t,x=t):(l=F-2*(J+H),x=Math.floor(l/G),A=l/x));y=P-W-I-O-n-U;s=W+I+O;l=g(p.basefont,"Verdana,sans");n=ka(p.basefontsize,10);w=g(p.basefontcolor,w.getColor("baseFontColor"));h=g(p.outcnvbasefont,l);E=ka(p.outcnvbasefontsize,n);q=E+Ta;p=g(p.outcnvbasefontcolor,
w).replace(/^#?([a-f0-9]+)/ig,"#$1");n+=Ta;w=w.replace(/^#?([a-f0-9]+)/ig,"#$1");ba.trendStyle=ba.outCanvasStyle={fontFamily:h,color:p,fontSize:q};ma(ba.trendStyle);ba.inCanvasStyle={fontFamily:l,fontSize:n,color:w};d.tooltip.style={fontFamily:l,fontSize:n,lineHeight:void 0,color:w};d.tooltip.shadow=!1;c.height=F;c.width=P;c.rowHeight=A;c.labelX=s;c.colorBoxWidth=I;c.colorBoxHeight=C;c.colorBoxX=W;c.valueX=W+I+O+y+U;c.valueColumnPadding=U;c.textStyle=V;c.listRowDividerAttr={"stroke-width":M,stroke:{FCcolor:{color:u,
alpha:r}}};c.alternateRowColor={FCcolor:{color:e,alpha:ea}};c.navButtonRadius=H;c.navButtonPadding=J;c.navButtonColor=N;c.navButtonHoverColor=B;c.lineHeight=parseInt(V.lineHeight,10);F=[];p=0;ba=!0;for(s=0;s<t&0!==x;s+=1)0===s%x&&(F.push({data:[],visible:ba}),ba=!1,p+=1),E=aa[s],P=K.getSmartText(E.dataLabel,y,A),F[p-1].data.push({label:P.text,originalText:P.tooltext,displayValue:E.displayValue,y:E.value,color:E.color});d.series=F;k.base.parseExportOptions.call(this,d);d.tooltip.enabled=!!d.exporting.enabled;
return d},creditLabel:!1},k.base);k("renderer.bubble",{drawPlotBubble:function(a,m){var d=this,e=d.options,p=e.chart,h=e.plotOptions.series,s=h.dataLabels&&h.dataLabels.style||{},aa={fontFamily:s.fontFamily,fontSize:s.fontSize,lineHeight:s.lineHeight,fontWeight:s.fontWeight,fontStyle:s.fontStyle},s=d.paper,P=d.elements,q=a.items,K=a.graphics=a.graphics||[],l=d.xAxis[m.xAxis||0],F=d.yAxis[m.yAxis||0],w=a.data,x=!1!==(e.tooltip||{}).enabled,A,k,h=isNaN(+h.animation)&&h.animation.duration||1E3*h.animation,
E=!1===m.visible?"hidden":"visible",D=e.plotOptions.bubble,ea=D.zMax,e=D.bubbleScale,D=D.minBubbleRadius,M=r(d.canvasHeight,d.canvasWidth)/8,ea=G(ea),g,y,I,C,H,N,$,O,J,W,U;g=d.layers;y=g.dataset=g.dataset||s.group("dataset-orphan");var n=g.tracker,t,Q,v=function(a){ua.call(this,d,a)},R=function(a,e,b){return function(m){a.attr(e);ua.call(this,d,m,b)}};d.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",aa);g.datalabels?g.datalabels.attr("class","fusioncharts-datalabels"):g.datalabels=
s.group({"class":"fusioncharts-datalabels"},"datalables").insertAfter(y);aa=y.bubble=y.bubble||s.group("bubble",y);p.clipBubbles&&!aa.attrs["clip-rect"]&&aa.attr({"clip-rect":P["clip-canvas"]});g=0;for(y=w.length;g<y;g+=1){I=w[g];W=U=Q=null;J=I.marker;if(null!==I.y&&J&&J.enabled){C=I.link;p=I.toolText;H=f(I.x,g);N=I.y;P={index:g,link:C,value:N,y:N,x:H,z:I.z,displayValue:I.displayValue,toolText:I.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};O=F.getAxisPosition(N);
$=l.getAxisPosition(H);k=G(I.z);t=u(k*M/ea)*e||0;D&&(t=B(t,D));k=A={};I.hoverEffects&&(k={fill:L(J.fillColor),"stroke-width":J.lineWidth,stroke:L(J.lineColor),r:t},A=I.rolloverProperties,A={fill:L(A.fillColor),"stroke-width":A.lineWidth,stroke:L(A.lineColor),r:t*A.scale});W=s.circle($,O,0,aa).attr({fill:L(J.fillColor),ishot:!x,"stroke-width":J.lineWidth,stroke:L(J.lineColor),visibility:E}).animate({r:t||0},h,"easeOut",d.getAnimationCompleteFn());if(C||x)t<b&&(t=b),U=s.circle($,O,t,n).attr({cursor:C?
"pointer":"",stroke:c,"stroke-width":J.lineWidth,fill:c,ishot:!!C,visibility:E});(U||W).data("eventArgs",P).click(v).hover(R(W,A,"DataPlotRollOver"),R(W,k,"DataPlotRollOut")).tooltip(p);q[g]={index:g,x:H,y:N,z:I.z,value:N,graphic:W,dataLabel:Q,tracker:U};Q=d.drawPlotLineLabel(a,m,g,$,O)}else q[g]={index:g,x:H,y:N};Q&&K.push(Q);W&&K.push(W);U&&K.push(U)}a.visible=!1!==m.visible;return a}},k["renderer.cartesian"]);k("renderer.ssgrid",{drawGraph:function(){var a=this.options.series,b=this.elements,d=
b.plots,e=a.length,p;d||(d=this.plots=this.plots||[],b.plots=d);this.drawSSGridNavButton();for(p=0;p<e;p++)(b=d[p])||d.push(b={items:[],data:a[p].data}),a[p].data&&a[p].data.length&&this.drawPlot(b,a[p]);1<e&&this.nenagitePage(0)},drawPlot:function(a){var b=a.data,d=this.paper,e=this.options.chart,p=e.colorBoxHeight,c=e.colorBoxWidth,s=e.colorBoxX,h=e.labelX,f=e.valueX,q=e.rowHeight,K=e.width,l=e.listRowDividerAttr,F=l["stroke-width"],l=L(l.stroke),P=F%2/2,w=e.textStyle,A=this.layers,A=A.dataset=
A.dataset||d.group("dataset-orphan"),x=L(e.alternateRowColor);a=a.items;var E=0,k,g,D,y;b&&b.length||(b=[]);l={stroke:l,"stroke-width":F};y=0;for(F=b.length;y<F;y+=1)D=b[y],g=D.y,k=a[y]={index:y,value:g,graphic:null,dataLabel:null,dataValue:null,alternateRow:null,listRowDivider:null,hot:null},null!==g&&void 0!==g&&(0===y%2&&(k.alternateRow=d.rect(0,E,K,q,0,A).attr({fill:x,"stroke-width":0})),g=u(E)+P,k.listRowDivider=d.path(["M",0,g,"L",K,g],A).attr(l),k.graphic=d.rect(s,E+q/2-p/2,c,p,0,A).attr({fill:D.color,
"stroke-width":0,stroke:"#000000"}),g=k.dataLabel=d.text().attr({text:D.label,title:D.originalText||"",x:h,y:E+q/2,fill:w.color,direction:e.textDirection,"text-anchor":"start"}).css(w),A.appendChild(g),k=k.dataValue=d.text().attr({text:D.displayValue,title:D.originalText||"",x:f,y:E+q/2,fill:w.color,direction:e.textDirection,"text-anchor":"start"}).css(w),A.appendChild(k),E+=q);g=u(E)+P;d.path(["M",0,g,"L",K,g],A).attr(l)},drawSSGridNavButton:function(){var a=this,b=a.paper,d=a.options,e=d.chart,
p=d.series,c=e.navButtonColor,s=e.navButtonHoverColor,d=e.navButtonRadius,h=.67*d,f=e.navButtonPadding+h+(p&&p[0].data&&p[0].data.length*e.rowHeight)+.5*d,e=e.width-20,q,K,l,F;1<p.length&&(F=a.naviigator=b.group("navigation"),a.navElePrv=p=b.group(F),q=b.path(["M",20,f,"L",20+d+h,f-h,20+d,f,20+d+h,f+h,"Z"]).attr({fill:c,"stroke-width":0,cursor:"pointer"}),p.appendChild(q),l=b.circle(20+d,f,d).attr({fill:la,"stroke-width":0,cursor:"pointer"}).mouseover(function(){q.attr({fill:s,cursor:"pointer"})}).mouseout(function(){q.attr({fill:c})}).click(function(){a.nenagitePage(-1)}),
p.appendChild(l),a.navEleNxt=p=b.group(F),K=b.path(["M",e,f,"L",e-d-h,f-h,e-d,f,e-d-h,f+h,"Z"]).attr({fill:c,"stroke-width":0,cursor:"pointer"}),p.appendChild(K),b=b.circle(e-d,f,d).attr({fill:la,"stroke-width":0,cursor:"pointer"}).mouseover(function(){K.attr({fill:s})}).mouseout(function(){K.attr({fill:c})}).click(function(){a.nenagitePage(1)}),p.appendChild(b))},nenagitePage:function(a){var b=this.plots,d=b.length;a=(this.currentSeriesIndex||0)+(a||0);var e,p=function(a){a.graphic&&a.graphic.hide();
a.dataLabel&&a.dataLabel.hide();a.dataValue&&a.dataValue.hide();a.alternateRow&&a.alternateRow.hide();a.listRowDivider&&a.listRowDivider.hide()};if(b[a]){for(e=d;e--;)za(b[e].items,p);za(b[a].items,function(a){a.graphic&&a.graphic.show();a.dataLabel&&a.dataLabel.show();a.dataValue&&a.dataValue.show();a.alternateRow&&a.alternateRow.show();a.listRowDivider&&a.listRowDivider.show()});this.currentSeriesIndex=a;ta.raiseEvent("pageNavigated",{pageId:a,data:this.options.series[a].data},this.logic.chartInstance);
0===a?this.navElePrv.hide():this.navElePrv.show();a===d-1?this.navEleNxt.hide():this.navEleNxt.show()}}},k["renderer.root"]);Oa.prototype={getArcPath:function(a,b,d,e,p,c,s,h,f,q){return d==p&&e==c?[]:["A",s,h,0,q,f,p,c]},parseColor:function(a,b){var d,e,p,c,s,h,f,q,K,l,F=b/2,P,w,A,g,k;k=3;this.use3DLighting?(d=ga(a,80),e=ga(a,75),h=$(a,85),f=$(a,70),q=$(a,40),K=$(a,50),$(a,30),l=$(a,65),ga(a,85),p=ga(a,69),c=ga(a,75),s=ga(a,95)):(k=10,d=ga(a,90),e=ga(a,87),h=$(a,93),f=$(a,87),q=$(a,80),l=K=$(a,85),
$(a,80),s=ga(a,85),p=ga(a,75),c=ga(a,80));P=e+T+h+T+f+T+h+T+e;A=b+T+b+T+b+T+b+T+b;w=e+T+a+T+h+T+a+T+e;g=F+T+F+T+F+T+F+T+F;q=e+T+a+T+q+T+a+T+e;p=c+T+h+T+K+T+h+T+p;c="FFFFFF"+T+"FFFFFF"+T+"FFFFFF"+T+"FFFFFF"+T+"FFFFFF";k=0+T+F/k+T+b/k+T+F/k+T+0;return{frontOuter:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:p,alpha:A,angle:0,ratio:"0,20,15,15,50"}},backOuter:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:q,alpha:g,angle:0,
ratio:"0,62,8,8,22"}},frontInner:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:w,alpha:g,angle:0,ratio:"0,25,5,5,65"}},backInner:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:P,alpha:A,angle:0,ratio:"0,62,8,8,22"}},topBorder:{FCcolor:{gradientUnits:"userSpaceOnUse",x1:this.leftX,y1:0,x2:this.rightX,y2:0,color:c,alpha:k,angle:0,ratio:"0,20,15,15,50"}},topInnerBorder:{FCcolor:{gradientUnits:"userSpaceOnUse",
x1:this.leftInnerX,y1:0,x2:this.rightInnerX,y2:0,color:c,alpha:k,angle:0,ratio:"0,50,15,15,20"}},top:qa?{FCcolor:{gradientUnits:"userSpaceOnUse",radialGradient:!0,cx:this.cx,cy:this.cy,r:this.rx,fx:this.cx-.3*this.rx,fy:this.cy+1.2*this.ry,color:l+T+s,alpha:b+T+b,ratio:"0,100"}}:{FCcolor:{gradientUnits:"objectBoundingBox",color:f+T+f+T+h+T+e,alpha:b+T+b+T+b+T+b,angle:-72,ratio:"0,8,15,77"}},bottom:L(fa(a,F)),startSlice:L(fa(d,b)),endSlice:L(fa(d,b))}},rotate:function(a){if(!this.hasOnePoint){for(var b=
this.pointElemStore,d=0,e=b.length,c;d<e;d+=1)c=b[d],c=c._confObject,c.start+=a,c.end+=a,this.updateSliceConf(c);this.refreshDrawing()}},refreshDrawing:function(){return function(){var a=this.slicingWallsArr,b=0,d,e=a.length,c,h,s,f,P=this.slicingWallsFrontGroup,q=this.slicingWallsBackGroup;a:{var K=a[0]&&a[0]._conf.index,l,F;f=K<=x;c=1;for(d=a.length;c<d;c+=1)if(F=a[c]._conf.index,l=F<=x,l!=f||F<K)break a;c=0}for(;b<e;b+=1,c+=1)c===e&&(c=0),d=a[c],f=d._conf.index,f<Z?P.appendChild(d):f<=x?(h?d.insertBefore(h):
P.appendChild(d),h=d):f<Va?(s?d.insertBefore(s):q.appendChild(d),s=d):q.appendChild(d)}}(),updateSliceConf:function(a,b){var d=this.getArcPath,e=a.start,c=a.end,h=da(e),s=da(c),f,P,q,K,l,F,k,g,A,y,E,u,r,M,B,$,I=this.cx,C=this.cy,H=this.rx,N=this.ry,t=H+(qa?-1:2),O=N+(qa?-1:2),J=this.innerRx,W=this.innerRy,U=this.depth,n=this.depthY,G=a.elements,Q,v,R,ba,X,V,la;f=D(h);P=w(h);q=D(s);K=w(s);l=I+H*f;F=C+N*P;k=I+t*f;g=C+O*P;Q=F+U;v=I+H*q;R=C+N*K;A=I+t*q;y=C+O*K;ba=R+U;this.isDoughnut?(E=I+J*f,u=C+W*P,
B=u+U,r=I+J*q,M=C+W*K,$=M+U,a.startSlice=["M",l,F,"L",l,Q,E,B,E,u,"Z"],a.endSlice=["M",v,R,"L",v,ba,r,$,r,M,"Z"]):(a.startSlice=["M",l,F,"L",l,Q,I,n,I,C,"Z"],a.endSlice=["M",v,R,"L",v,ba,I,n,I,C,"Z"]);qa?(d=(h>s?ia:0)+s-h,a.clipTopPath=this.isDoughnut?["M",l,F,"A",H,N,0,d>x?1:0,1,v,R,"L",r,M,"A",J,W,0,d>x?1:0,0,E,u,"Z"]:["M",l,F,"A",H,N,0,d>x?1:0,1,v,R,"L",this.cx,this.cy,"Z"],a.clipOuterFrontPath1=this.clipPathforNoClip,a.clipTopBorderPath=["M",k,g,"A",t,O,0,d>x?1:0,1,A,y,"L",v,R,v,R+1,"A",H,N,0,
d>x?1:0,0,l,F+1,"L",l,F,"Z"],e!=c?h>s?h<x?(a.clipOuterFrontPath=["M",this.rightX,C,"A",H,N,0,0,1,v,R,"v",U,"A",H,N,0,0,0,this.rightX,C+U,"Z"],a.clipOuterFrontPath1=["M",this.leftX,C,"A",H,N,0,0,0,l,F,"v",U,"A",H,N,0,0,1,this.leftX,C+U,"Z"],a.clipOuterBackPath=["M",this.rightX,C,"A",H,N,0,1,0,this.leftX,C,"v",U,"A",H,N,0,1,1,this.rightX,C+U,"Z"],this.isDoughnut&&(a.clipInnerBackPath=["M",this.rightInnerX,C,"A",J,W,0,1,0,this.leftInnerX,C,"v",U,"A",J,W,0,1,1,this.rightInnerX,C+U,"Z"],a.clipInnerFrontPath=
["M",this.rightInnerX,C,"A",J,W,0,0,1,r,M,"v",U,"A",J,W,0,0,0,this.rightInnerX,C+U,"Z","M",this.leftInnerX,C,"A",J,W,0,0,0,E,u,"v",U,"A",J,W,0,0,1,this.leftInnerX,C+U,"Z"])):s>x?(a.clipOuterFrontPath=["M",this.rightX,C,"A",H,N,0,1,1,this.leftX,C,"v",U,"A",H,N,0,1,0,this.rightX,C+U,"Z"],a.clipOuterBackPath=["M",this.leftX,C,"A",H,N,0,0,1,v,R,"v",U,"A",H,N,0,0,0,this.leftX,C+U,"Z","M",this.rightX,C,"A",H,N,0,0,0,l,F,"v",U,"A",H,N,0,0,1,this.rightX,C+U,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=["M",
this.rightInnerX,C,"A",J,W,0,1,1,this.leftInnerX,C,"v",U,"A",J,W,0,1,0,this.rightInnerX,C+U,"Z"],a.clipInnerBackPath=["M",this.leftInnerX,C,"A",J,W,0,0,1,r,M,"v",U,"A",J,W,0,0,0,this.leftInnerX,C+U,"Z","M",this.rightInnerX,C,"A",J,W,0,0,0,E,u,"v",U,"A",J,W,0,0,1,this.rightInnerX,C+U,"Z"])):(a.clipOuterFrontPath=["M",this.rightX,C,"A",H,N,0,0,1,v,R,"v",U,"A",H,N,0,0,0,this.rightX,C+U,"Z"],a.clipOuterBackPath=["M",l,F,"A",H,N,0,0,1,this.rightX,C,"v",U,"A",H,N,0,0,0,l,Q,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=
["M",this.rightInnerX,C,"A",J,W,0,0,1,r,M,"v",U,"A",J,W,0,0,0,this.rightInnerX,C+U,"Z"],a.clipInnerBackPath=["M",E,u,"A",J,W,0,0,1,this.rightInnerX,C,"v",U,"A",J,W,0,0,0,E,B,"Z"])):h<x?s>x?(a.clipOuterFrontPath=["M",l,F,"A",H,N,0,0,1,this.leftX,C,"v",U,"A",H,N,0,0,0,l,Q,"Z"],a.clipOuterBackPath=["M",this.leftX,C,"A",H,N,0,0,1,v,R,"v",U,"A",H,N,0,0,0,this.leftX,C+U,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=["M",E,u,"A",J,W,0,0,1,this.leftInnerX,C,"v",U,"A",J,W,0,0,0,E,B,"Z"],a.clipInnerBackPath=
["M",this.leftInnerX,C,"A",J,W,0,0,1,r,M,"v",U,"A",J,W,0,0,0,this.leftInnerX,C+U,"Z"])):(a.clipOuterFrontPath=["M",l,F,"A",H,N,0,0,1,v,R,"v",U,"A",H,N,0,0,0,l,Q,"Z"],a.clipOuterBackPath=this.clipPathforNoClip,this.isDoughnut&&(a.clipInnerFrontPath=["M",E,u,"A",J,W,0,0,1,r,M,"v",U,"A",J,W,0,0,0,E,B,"Z"],a.clipInnerBackPath=this.clipPathforNoClip)):(a.clipOuterFrontPath=this.clipPathforNoClip,a.clipOuterBackPath=["M",l,F,"A",H,N,0,0,1,v,R,"v",U,"A",H,N,0,0,0,l,Q,"Z"],this.isDoughnut&&(a.clipInnerFrontPath=
this.clipPathforNoClip,a.clipInnerBackPath=["M",E,u,"A",J,W,0,0,1,r,M,"v",U,"A",J,W,0,0,0,E,B,"Z"])):a.clipOuterFrontPath=a.clipOuterBackPath=a.clipInnerBackPath=a.clipInnerFrontPath=this.clipPathforNoClip,b||(a.elements.startSlice._conf.index=h,a.elements.endSlice._conf.index=s,a.elements.frontOuter._conf.index=Na(s,h),a.elements.frontOuter1&&(a.elements.frontOuter1._conf.index=h,a.elements.frontOuter1.attr("litepath",[a.clipOuterFrontPath1])),a.thisElement.attr("litepath",[a.clipTopPath]),a.elements.bottom.attr("litepath",
[a.clipTopPath]),a.elements.bottomBorder.attr("litepath",[a.clipTopPath]),a.elements.topBorder&&a.elements.topBorder.attr("litepath",[a.clipTopBorderPath]),a.elements.frontOuter.attr("litepath",[a.clipOuterFrontPath]),a.elements.backOuter.attr("litepath",[a.clipOuterBackPath]),this.isDoughnut&&(a.elements.backInner.attr("litepath",[a.clipInnerBackPath]),a.elements.frontInner.attr("litepath",[a.clipInnerFrontPath]),a.elements.backInner._conf.index=Na(s,h)),this.hasOnePoint?(a.elements.startSlice.hide(),
a.elements.endSlice.hide()):(a.elements.startSlice.attr("litepath",[a.startSlice]).show(),a.elements.endSlice.attr("litepath",[a.endSlice]).show()))):(k=this.moveCmdArr,g=this.lineCmdArr,A=this.closeCmdArr,X=this.centerPoint,y=this.leftPoint,t=this.topPoint,O=this.rightPoint,U=this.bottomPoint,V=this.leftDepthPoint,la=this.rightDepthPoint,f=this.leftInnerPoint,P=this.rightInnerPoint,q=this.leftInnerDepthPoint,K=this.rightInnerDepthPoint,a.clipOuterFrontPath1=[],e!=c?(h>s?h<x?(e=d(I,C,l,F,this.leftX,
C,H,N,1,0),c=d(I,C,this.leftX,C,this.rightX,C,H,N,1,0),R=d(I,C,this.rightX,C,v,R,H,N,1,0),a.clipOuterBackPath=k.concat(y,c,g,la,d(I,n,this.rightX,n,this.leftX,n,H,N,0,0),A),a.clipOuterFrontPath1=k.concat([l,F],e,g,V,d(I,n,this.leftX,n,l,Q,H,N,0,0),A),a.clipOuterFrontPath=k.concat(O,R,g,[v,ba],d(I,n,v,ba,this.rightX,n,H,N,0,0),A),a.clipTopBorderPath=k.concat([l,F],e,c,R),this.isDoughnut?(l=d(I,C,r,M,this.rightInnerX,C,J,W,0,0),F=d(I,C,this.rightInnerX,C,this.leftInnerX,C,J,W,0,0),u=d(I,C,this.leftInnerX,
C,E,u,J,W,0,0),a.clipInnerBackPath=k.concat(P,F,g,q,d(I,n,this.leftInnerX,n,this.rightInnerX,n,J,W,1,0),A),a.clipInnerFrontPath=k.concat(f,u,g,[E,B],d(I,n,E,B,this.leftInnerX,n,J,W,1,0),A,k,[r,M],l,g,K,d(I,n,this.rightInnerX,n,r,$,J,W,1,0),A),a.clipTopPath=a.clipTopBorderPath.concat(g,[r,M],l,F,u,A),a.clipTopBorderPath=a.clipTopBorderPath.concat(k,[r,M],l,F,u)):a.clipTopPath=a.clipTopBorderPath.concat(g,X,A)):s>x?(e=d(I,C,l,F,this.rightX,C,H,N,1,0),c=d(I,C,this.rightX,C,this.leftX,C,H,N,1,0),R=d(I,
C,this.leftX,C,v,R,H,N,1,0),a.clipOuterFrontPath=k.concat(O,c,g,V,d(I,n,this.leftX,n,this.rightX,n,H,N,0,0),A),a.clipOuterBackPath=k.concat([l,F],e,g,la,d(I,n,this.rightX,n,l,Q,H,N,0,0),A,k,y,R,g,[v,ba],d(I,n,v,ba,this.leftX,n,H,N,0,0),A),a.clipTopBorderPath=k.concat([l,F],e,c,R),this.isDoughnut?(l=d(I,C,r,M,this.leftInnerX,C,J,W,0,0),F=d(I,C,this.leftInnerX,C,this.rightInnerX,C,J,W,0,0),u=d(I,C,this.rightInnerX,C,E,u,J,W,0,0),a.clipInnerFrontPath=k.concat(f,F,g,K,d(I,n,this.rightInnerX,n,this.leftInnerX,
n,J,W,1,0),A),a.clipInnerBackPath=k.concat(P,u,g,[E,B],d(I,n,E,B,this.rightInnerX,n,J,W,1,0),A,k,[r,M],l,g,q,d(I,n,this.leftInnerX,n,r,$,J,W,1,0),A),a.clipTopPath=a.clipTopBorderPath.concat(g,[r,M],l,F,u,A),a.clipTopBorderPath=a.clipTopBorderPath.concat(k,[r,M],l,F,u)):a.clipTopPath=a.clipTopBorderPath.concat(g,X,A)):(e=d(I,C,l,F,this.rightX,C,H,N,1,0),c=d(I,C,this.rightX,C,v,R,H,N,1,0),a.clipOuterFrontPath=k.concat(O,c,g,[v,ba],d(I,n,v,ba,this.rightX,n,H,N,0,0),A),a.clipOuterBackPath=k.concat([l,
F],e,g,la,d(I,n,this.rightX,n,l,Q,H,N,0,0),A),a.clipTopBorderPath=k.concat([l,F],e,c),this.isDoughnut?(l=d(I,C,r,M,this.rightInnerX,C,J,W,0,0),F=d(I,C,this.rightInnerX,C,E,u,J,W,0,0),a.clipInnerFrontPath=k.concat([r,M],l,g,K,d(I,n,this.rightInnerX,n,r,$,J,W,1,0),A),a.clipInnerBackPath=k.concat(P,F,g,[E,B],d(I,n,E,B,this.rightInnerX,n,J,W,1,0),A),a.clipTopPath=a.clipTopBorderPath.concat(g,[r,M],l,F,A),a.clipTopBorderPath=a.clipTopBorderPath.concat(k,[r,M],l,F)):a.clipTopPath=a.clipTopBorderPath.concat(g,
X,A)):h<x?s>x?(e=d(I,C,l,F,this.leftX,C,H,N,1,0),c=d(I,C,this.leftX,C,v,R,H,N,1,0),a.clipOuterBackPath=k.concat(y,c,g,[v,ba],d(I,n,v,ba,this.leftX,n,H,N,0,0),A),a.clipOuterFrontPath=k.concat([l,F],e,g,V,d(I,n,this.leftX,n,l,Q,H,N,0,0),A),a.clipTopBorderPath=k.concat([l,F],e,c),this.isDoughnut?(l=d(I,C,r,M,this.leftInnerX,C,J,W,0,0),F=d(I,C,this.leftInnerX,C,E,u,J,W,0,0),a.clipInnerBackPath=k.concat([r,M],l,g,q,d(I,n,this.leftInnerX,n,r,$,J,W,1,0),A),a.clipInnerFrontPath=k.concat(f,F,g,[E,B],d(I,n,
E,B,this.leftInnerX,n,J,W,1,0),A),a.clipTopPath=a.clipTopBorderPath.concat(g,[r,M],l,F,A),a.clipTopBorderPath=a.clipTopBorderPath.concat(k,[r,M],l,F)):a.clipTopPath=a.clipTopBorderPath.concat(g,X,A)):(e=d(I,C,l,F,v,R,H,N,1,0),a.clipOuterBackPath=k.concat([l,F]),a.clipTopBorderPath=a.clipOuterBackPath.concat(e),a.clipOuterFrontPath=a.clipTopBorderPath.concat(g,[v,ba],d(I,n,v,ba,l,Q,H,N,0,0),A),this.isDoughnut?(l=d(I,C,r,M,E,u,J,W,0,0),a.clipInnerBackPath=k.concat([r,M]),a.clipTopPath=a.clipTopBorderPath.concat(g,
[r,M],l,A),a.clipTopBorderPath=a.clipTopBorderPath.concat(k,[r,M],l),a.clipInnerFrontPath=a.clipInnerBackPath.concat(l,g,[E,B],d(I,n,E,B,r,$,J,W,1,0),A)):a.clipTopPath=a.clipTopBorderPath.concat(g,X,A)):(e=d(I,C,l,F,v,R,H,N,1,0),a.clipOuterFrontPath=k.concat([l,F]),a.clipTopBorderPath=a.clipOuterFrontPath.concat(e),a.clipOuterBackPath=a.clipTopBorderPath.concat(g,[v,ba],d(I,n,v,ba,l,Q,H,N,0,0),A),this.isDoughnut?(l=d(I,C,r,M,E,u,J,W,0,0),a.clipInnerFrontPath=k.concat([r,M]),a.clipTopPath=a.clipTopBorderPath.concat(g,
[r,M],l,A),a.clipTopBorderPath=a.clipTopBorderPath.concat(a.clipInnerFrontPath,l),a.clipInnerBackPath=a.clipInnerFrontPath.concat(l,g,[E,B],d(I,n,E,B,r,$,J,W,1,0),A)):a.clipTopPath=a.clipTopBorderPath.concat(g,X,A)),e=k.concat(y,g,O),l=k.concat(t,g,U),a.clipTopPath=a.clipTopPath.concat(e,l),a.clipOuterFrontPath=a.clipOuterFrontPath.concat(e),a.clipOuterFrontPath1=a.clipOuterFrontPath1.concat(e),a.clipOuterBackPath=a.clipOuterBackPath.concat(e),this.isDoughnut&&(l=k.concat(f,g,P),a.clipInnerFrontPath=
a.clipInnerFrontPath.concat(l),a.clipInnerBackPath=a.clipInnerBackPath.concat(l))):(a.clipTopPath=a.clipOuterFrontPath=a.clipOuterBackPath=[],this.isDoughnut&&(a.clipInnerFrontPath=a.clipInnerBackPath=[])),b||(a.elements.startSlice._conf.index=h,a.elements.endSlice._conf.index=s,a.elements.frontOuter._conf.index=Na(s,h),a.elements.frontOuter1&&(a.elements.frontOuter1._conf.index=h,G.frontOuter1.attr({path:a.clipOuterFrontPath1})),a.thisElement.attr({path:a.clipTopPath}),G.topBorder.attr({path:a.clipTopBorderPath}),
G.bottom.attr({path:a.clipTopPath}),G.bottomBorder.attr({path:a.clipTopBorderPath}),G.frontOuter.attr({path:a.clipOuterFrontPath}),G.backOuter.attr({path:a.clipOuterBackPath}),this.isDoughnut&&(G.frontInner.attr({path:a.clipInnerFrontPath}),G.backInner.attr({path:a.clipInnerBackPath})),this.hasOnePoint?(a.elements.startSlice.hide(),a.elements.endSlice.hide()):(a.elements.startSlice.attr({path:a.startSlice}).show(),a.elements.endSlice.attr({path:a.endSlice}).show())))},onPlotHover:function(a,b){var d=
this.pointElemStore[a]._confObject,e=d.thisElement,c=d.elements,h=this.colorObjs[a],s=h.hoverProps,f=b?s.hoverColorObj:h.color,k=h.showBorderEffect,q=b?s.borderColor:h.borderColor,h=b?s.borderWidth:h.borderWidth;qa?(s={fill:L(f.top),"stroke-width":0},1!==k&&(s.stroke=q,s["stroke-width"]=h),e._attr(s),k&&c.topBorder.attr({fill:L(f.topBorder),"stroke-width":0})):(e._attr({fill:L(f.top),"stroke-width":0}),c.topBorder.attr({stroke:q,"stroke-width":h}));c.bottom.attr({fill:L(f.bottom),"stroke-width":0});
c.bottomBorder.attr({stroke:q,"stroke-width":h});c.frontOuter.attr({fill:L(f.frontOuter),"stroke-width":0});c.backOuter.attr({fill:L(f.backOuter),"stroke-width":0});c.startSlice.attr({fill:L(f.startSlice),stroke:q,"stroke-width":h});c.endSlice.attr({fill:L(f.endSlice),stroke:q,"stroke-width":h});e=da(d.start);d=da(d.end);(e>d?ia:0)+d-e>x&&c.frontOuter1.attr({fill:L(f.frontOuter),"stroke-width":0});this.isDoughnut&&(c.frontInner.attr({fill:L(f.frontInner),"stroke-width":0}),c.backInner.attr({fill:L(f.backInner),
"stroke-width":0}))},createSlice:function(){var a={stroke:!0,strokeWidth:!0,"stroke-width":!0,dashstyle:!0,"stroke-dasharray":!0,translateX:!0,translateY:!0,"stroke-opacity":!0,transform:!0,fill:!0,opacity:!0,ishot:!0,start:!0,end:!0,cursor:!0},b=function(b,d){var e,c,m=this,h=m._confObject,p,f=h.elements,k,g,P=h.Pie3DManager;"string"===typeof b&&void 0!==d&&null!==d&&(e=b,b={},b[e]=d);if(b&&"string"!==typeof b){void 0!==b.cx&&(b.start=b.cx);void 0!==b.cy&&(b.end=b.cy);for(e in b)if(c=b[e],a[e])if(h[e]=
c,"ishot"===e||"cursor"===e){p={};p[e]=c;for(k in f)f[k].attr(p);m._attr(p)}else if("transform"===e){for(k in f)f[k].attr({transform:b[e]});m._attr({transform:b[e]})}else"stroke"===e||"strokeWidth"===e||"stroke-width"===e||"dashstyle"===e||"stroke-dasharray"===e?(p={},p[e]=c,f.topBorder&&f.topBorder.attr(p),f.startSlice.attr(p),f.endSlice.attr(p),f.bottomBorder.attr(p)):"fill"===e||"start"!==e&&"end"!==e||(g=!0);else m._attr(e,c);g&&(P.updateSliceConf(h),P.refreshDrawing())}else m=m._attr(b);return m},
d=function(a,b,e,d){var c=this._confObject.elements,m;for(m in c)if(e)c[m].drag(b,e,d);else c[m].on(a,b);return e?this.drag(b,e,d):this._on(a,b)},e=function(){var a=this._confObject.elements,b;for(b in a)a[b].hide();return this._hide()},c=function(){var a=this._confObject.elements,b;for(b in a)a[b].show();return this._show()},h=function(){var a=this._confObject,b=a.elements,e;for(e in b)b[e].destroy();qa&&(a.clipTop.destroy(),a.clipOuterFront.destroy(),a.clipOuterBack.destroy(),a.clipOuterFront1&&
a.clipOuterFront1.destroy(),a.clipInnerFront&&a.clipInnerFront.destroy(),a.clipInnerBack&&a.clipInnerBack.destroy());return this._destroy()};return function(a,f,k,q,g,l,P,w,r,A){var u=this.renderer;k=this.parseColor(k,q);a={start:a,end:f,elements:{},Pie3DManager:this};f=this.slicingWallsArr;q=a.elements;var D,n=qa?"litepath":"path";A&&(this.colorObjs[P]={color:k,borderColor:g,borderWidth:l,showBorderEffect:!1},A.hoverColorObj=this.parseColor(A.color,A.alpha),this.colorObjs[P].hoverProps=A);this.updateSliceConf(a,
!0);qa?(A={fill:L(k.top),"stroke-width":0},1!==r&&(A.stroke=g,A["stroke-width"]=l),A=u[n](a.clipTopPath,this.topGroup).attr(A),r&&(q.topBorder=u[n](a.clipTopBorderPath,this.topGroup).attr({fill:L(k.topBorder),"stroke-width":0}))):(A=u[n](a.clipTopPath,this.topGroup).attr({fill:L(k.top),"stroke-width":0}),q.topBorder=u[n](a.clipTopBorderPath,this.topGroup).attr({stroke:g,"stroke-width":l}));q.bottom=u[n](a.clipTopPath,this.bottomBorderGroup).attr({fill:L(k.bottom),"stroke-width":0});q.bottomBorder=
u[n](qa?a.clipTopPath:a.clipTopBorderPath,this.bottomBorderGroup).attr({stroke:g,"stroke-width":l});q.frontOuter=u[n](a.clipOuterFrontPath,this.slicingWallsFrontGroup).attr({fill:L(k.frontOuter),"stroke-width":0});q.backOuter=u[n](a.clipOuterBackPath,this.outerBackGroup).attr({fill:L(k.backOuter),"stroke-width":0});q.startSlice=u[n](a.startSlice,this.slicingWallsFrontGroup).attr({fill:L(k.startSlice),stroke:g,"stroke-width":l});q.endSlice=u[n](a.endSlice,this.slicingWallsFrontGroup).attr({fill:L(k.endSlice),
stroke:g,"stroke-width":l});g=da(a.start);l=da(a.end);r=(g>l?ia:0)+l-g;r>x&&(q.frontOuter1=u[n](a.clipOuterFrontPath1,this.slicingWallsFrontGroup).attr({fill:L(k.frontOuter),"stroke-width":0}),q.frontOuter1._conf={index:g,isStart:.5,pIndex:P},qa&&(a.clipOuterFront1=a.clipOuterFrontPath1));q.frontOuter._conf={index:Na(l,g),isStart:.5,pIndex:P};q.startSlice._conf={index:g,isStart:0,pIndex:P};q.endSlice._conf={index:l,isStart:1,pIndex:P};this.hasOnePoint&&(q.startSlice.hide(),q.endSlice.hide());this.isDoughnut?
(q.frontInner=u[n](a.clipInnerFrontPath,this.innerFrontGroup).attr({fill:L(k.frontInner),"stroke-width":0}),q.backInner=u[n](a.clipInnerBackPath,this.innerBackGroup).attr({fill:L(k.backInner),"stroke-width":0}),q.backInner._conf={index:Na(l,g),isStart:.5,pIndex:P},r>x?qa?f.push(q.startSlice,q.frontOuter1,q.frontOuter,q.backInner,q.endSlice):f.push(q.startSlice,q.frontOuter1,q.frontOuter,q.endSlice):qa?f.push(q.startSlice,q.frontOuter,q.backInner,q.endSlice):f.push(q.startSlice,q.frontOuter,q.endSlice)):
r>x?f.push(q.startSlice,q.frontOuter1,q.frontOuter,q.endSlice):f.push(q.startSlice,q.frontOuter,q.endSlice);if(void 0!==w){for(D in q)q[D].tooltip(w);A.tooltip(w)}qa&&(a.clipTop=a.clipTopPath,a.clipOuterFront=a.clipOuterFrontPath,a.clipOuterBack=a.clipOuterBackPath,this.isDoughnut&&(a.clipInnerFront=a.clipInnerFrontPath,a.clipInnerBack=a.clipInnerBackPath));A._confObject=a;a.thisElement=A;A._destroy=A.destroy;A.destroy=h;A._show=A.show;A.show=c;A._hide=A.hide;A.hide=e;A._on=A.on;A.on=d;A._attr=A.attr;
A.attr=b;this.pointElemStore.push(A);return A}}()};Oa.prototype.constructor=Oa;k("renderer.pie3d",{type:"pie3d",isHovered:!1,translate:function(){var a=0,b=this.options,d=b.series[0],e=b.plotOptions.series.dataLabels,c=b.plotOptions.pie3d,h=g(d.startAngle,0)%360,s=d.managedPieSliceDepth,k=d.slicedOffset=c.slicedOffset,x=this.canvasWidth,q=this.canvasHeight,K=[this.canvasLeft+.5*x,this.canvasTop+.5*q-.5*s],l,F,y,B,A,b=d.data,$,E=r(x,q),t,ba,M,G=e.distance,X=d.pieYScale,I=d.pieSliceDepth,C=d.slicedOffsetY=
k*X;K.push(c.size,c.innerSize||0);K=sa(K,function(a,b){return(t=/%$/.test(a))?[x,q-s,E,E][b]*parseInt(a,10)/100:a});K[2]/=2;K[3]/=2;K.push(K[2]*X);K.push((K[2]+K[3])/2);K.push(K[5]*X);d.getX=function(a,b){y=P.asin((a-K[1])/(K[2]+G));return K[0]+(b?-1:1)*D(y)*(K[2]+G)};d.center=K;za(b,function(b){a+=b.y});d.labelsRadius=K[2]+G;d.labelsRadiusY=d.labelsRadius*X;d.quadrantHeight=(q-s)/2;d.quadrantWidth=x/2;B=-h*O;B=u(1E3*B)/1E3;A=B+ia;c=f(parseInt(e.style.fontSize,10),10)+4;d.maxLabels=n(d.quadrantHeight/
c);d.labelFontSize=c;d.connectorPadding=f(e.connectorPadding,5);d.isSmartLineSlanted=g(e.isSmartLineSlanted,!0);d.connectorWidth=f(e.connectorWidth,1);d.enableSmartLabels=e.enableSmartLabels;d.Pie3DManager||(d.Pie3DManager=new Oa(K[0],K[1],K[2],K[3],X,I,this.layers.dataset,this.paper,1===d.data.length,d.use3DLighting));za(b,function(b){l=B;$=a?b.y/a:0;B=u(1E3*(B+$*ia))/1E3;B>A&&(B=A);F=B;b.shapeArgs={start:u(1E3*l)/1E3,end:u(1E3*F)/1E3};b.centerAngle=y=(F+l)/2%ia;b.slicedTranslation=[u(D(y)*k),u(w(y)*
C)];ba=D(y)*K[2];d.radiusY=M=w(y)*K[4];b.tooltipPos=[K[0]+.7*ba,K[1]+M];b.percentage=100*$;b.total=a})},drawPlotPie3d:function(a,b){this.translate();var d=this,e=a.items,c=a.data,h=d.options,s=h.plotOptions,k=s.series,g=d.layers,q=d.elements.plots[0],P=d.datasets[0],s=s.series.dataLabels,l=k.dataLabels.style,k=f(a.moveDuration,k.animation.duration),r=d.paper,u=h.tooltip||{},u=u&&!1!==u.enabled,n=P.slicedOffset,A=P.slicedOffsetY,x=d.plotDragMove,y=d.plotDragStart,B=d.plotDragEnd,$=d.plotRollOver,M=
d.plotRollOut,ba=!!d.datasets[0].enableRotation,t=b.showBorderEffect,I=c.length,C=h.chart,h=C.usePerPointLabelColor,C=C.textDirection,H={fontFamily:l.fontFamily,fontSize:l.fontSize,lineHeight:l.lineHeight,fontWeight:l.fontWeight,fontStyle:l.fontStyle},N=function(a){return function(){d.legendClick(a,!0,!1)}},O=function(a){return function(){return d.getEventArgs(a)}},G=function(a){return function(b,e,d,c,m){x.call(a,b,e,d,c,m)}},J=function(a){return function(b,e,d){y.call(a,b,e,d)}},X=function(a){return function(b){B.call(a,
b)}},U=function(a){return function(b){M.call(a,b)}},la=function(a){return function(b){$.call(a,b)}},z,Q,v,R,fa,Z,V,Y,ia,T;c&&I||(c=[]);q.singletonCase=1===I;q.chartPosition=Da(d.container);q.pieCenter=P.center;q.timerThreshold=30;for(T=-1;++T<I;)v=c[T],l=v.y,R=v.displayValue,H=v.sliced,Y=v.shapeArgs,z=v.centerAngle,ia=v.toolText,Z=(fa=!!v.link)||ba||!v.doNotSlice,null===l||void 0===l||(Q=e[T])||(b.data[T].plot=Q=e[T]={chart:d,index:T,seriesData:q,value:l,angle:z,link:v.link,shapeArgs:Y,slicedX:H&&
!q.singletonCase?D(z)*n:0,slicedY:H&&!q.singletonCase?w(z)*A:0,sliced:H,labelText:R,name:v.name,label:v.name,percentage:v.percentage,toolText:ia,originalIndex:I-T-1,style:v.style,graphic:P.Pie3DManager.createSlice(Y.start,Y.end,v.color,v._3dAlpha,v.borderColor,v.borderWidth,T,u?ia:"",t,v.rolloverProperties)},b.data[T].legendClick=N(Q),b.data[T].getEventArgs=O(Q),Q.graphic.plotItem=Q,Q.graphic.data("plotItem",Q),Q.transX=D(z)*n,Q.transY=w(z)*A,Q.slicedTranslation="t"+Q.transX+","+Q.transY,z={index:b.reversePlotOrder?
T:I-1-T,link:v.link,value:v.y,displayValue:v.displayValue,categoryLabel:v.categoryLabel,isSliced:v.sliced,toolText:v.toolText},Q.graphic.attr({transform:"t"+Q.slicedX+","+Q.slicedY,ishot:Z,cursor:fa?"pointer":""}).drag(G(Q),J(Q),X(Q)).data("groupId",T).data("eventArgs",z).mouseover(la(Q)).mouseout(U(Q)),void 0!==R&&(l=v.style,H={fontFamily:l.fontFamily,fontSize:l.fontSize,lineHeight:l.lineHeight,fontWeight:l.fontWeight,fontStyle:l.fontStyle},Q.dataLabel=r.text(g.dataset).css(H).attr({text:R,title:v.originalText||
"",fill:(h?L(v.color):l.color)||"#000000","text-bound":[l.backgroundColor,l.borderColor,l.borderThickness,l.borderPadding,l.borderRadius,l.borderDash],visibility:"hidden",direction:C,ishot:Z,cursor:fa?"pointer":""}).data("eventArgs",z).hover(la(Q),U(Q)).drag(G(Q),J(Q),X(Q)).data("plotItem",Q),0<s.distance&&(V=s.connectorWidth)&&s.enableSmartLabels&&(Q.connector=r.path("M 0 0 l 0 0",g.dataset).attr({"stroke-width":V,stroke:s.connectorColor||"#606060",visibility:"hidden",ishot:Z,cursor:fa?"pointer":
""}).data("eventArgs",z).hover(la(Q),U(Q)).drag(G(Q),J(Q),X(Q)).data("plotItem",Q))));P.Pie3DManager.refreshDrawing();0<k?d.animate(e,k):d.placeDataLabels(!1,e)},rotate:function(a){var b=this.datasets[0],d=this.elements.plots[0].items,e=b.slicedOffset,c=b.slicedOffsetY,h=b.startAngle,s;a=isNaN(a)?-b._lastAngle:a;s=(a-h)%360;b.startAngle=f(a,b.startAngle)%360;s=-(s*oa)/180;b.Pie3DManager&&b.Pie3DManager.rotate(s);za(d,function(a){var b=a.graphic,d=a.shapeArgs,m=d.start+=s,d=d.end+=s,h=a.angle=da((m+
d)/2),m=a.sliced,d=D(h),h=w(h);a.slicedTranslation=[u(d*e),u(h*c)];a.transX=a.slicedTranslation[0];a.transY=a.slicedTranslation[1];a.slicedX=m?D(s)*e:0;a.slicedY=m?w(s)*c:0;b&&m&&a.graphic.attr({transform:"t"+a.slicedTranslation[0]+","+a.slicedTranslation[1]})});this.placeDataLabels(!0,d)},plotRollOver:function(a){var b=this.chart,d=b.datasets[0].Pie3DManager;this.seriesData.isRotating||(ua.call(this.graphic,b,a,"DataPlotRollOver"),d.colorObjs[this.index]&&d.onPlotHover(this.index,!0));b.isHovered=
!0},plotRollOut:function(a){var b=this.chart,d=b.datasets[0].Pie3DManager;this.seriesData.isRotating||(ua.call(this.graphic,b,a,"DataPlotRollOut"),d.colorObjs[this.index]&&d.onPlotHover(this.index,!1));b.isHovered=!1},plotDragStart:function(a,b,d){var e=this.seriesData,c=this.chart.datasets[0];e.isRotating=!1;c.enableRotation&&(a=Ra.call(d,a,b,e.pieCenter,e.chartPosition,c.pieYScale),c.dragStartAngle=a,c._lastAngle=-c.startAngle,c.startingAngleOnDragStart=c.startAngle)},plotDragEnd:function(a){var b=
this.chart,d=b.datasets[0],e=d.Pie3DManager,c=d.startAngle,h=this.seriesData,f={hcJSON:{series:[{startAngle:c}]}};b.disposed||Ca(b.logic.chartInstance.jsVars._reflowData,f,!0);!h.isRotating&&b.plotGraphicClick.call(this,a);h.isRotating&&(setTimeout(function(){h.isRotating=!1},0),ta.raiseEvent("rotationEnd",{startingAngle:da(c,!0),changeInAngle:c-d.startingAngleOnDragStart},b.logic.chartInstance),!b.isHovered&&e.colorObjs[this.index]&&e.onPlotHover(this.index,!1))},plotDragMove:function(a,b,d,e,c){var h=
this.chart;a=h.datasets[0];b=this.seriesData;h.options.series[0].enableRotation&&!b.singletonCase&&(d=Ra.call(c,d,e,b.pieCenter,b.chartPosition,a.pieYScale),b.isRotating||(a.dragStartAngle!==d&&(b.isRotating=!0),ta.raiseEvent("rotationStart",{startingAngle:da(a.startAngle,!0)},h.logic.chartInstance)),e=d-a.dragStartAngle,a.dragStartAngle=d,b.moveDuration=0,a._lastAngle+=180*e/oa,d=(new Date).getTime(),!a._lastTime||a._lastTime+b.timerThreshold<d)&&(a._lastTime||h.rotate(),b.timerId=setTimeout(function(){h.disposed&&
h.disposing||h.rotate()},b.timerThreshold),a._lastTime=d)},animate:function(a,b){var d,e,c,h=a.length,f,k,g,q=this,P,l=function(){q.disposed||q.disposing||q.placeDataLabels(!1,a)};if(q.datasets[0].alphaAnimation)q.layers.dataset.attr({opacity:0}),q.layers.dataset.animate({opacity:1},b,"ease-in",function(){q.disposed||q.disposing||q.placeDataLabels(!1,a)});else for(d=0;d<h;d++)f=a[d],k=f.graphic,g=f.shapeArgs,f=2*oa,k&&(k.attr({start:f,end:f}),P=g.start,g=g.end,e?k.animateWith(e,c,{cx:P-f,cy:g-f},
b,"ease-in"):(c=na.animation({cx:P-f,cy:g-f},b,"ease-in",l),e=k.animate(c)))},placeDataLabels:function(){var a=function(a,b){return a.point.value-b.point.value},b=function(a,b){return a.angle-b.angle},d=["start","start","end","end"],e=[-1,1,1,-1],c=[1,1,-1,-1];return function(k,g){var n=this.datasets[0],$=this.smartLabel,q=this.options.plotOptions.series.dataLabels,K=q.style,l=f(y(parseFloat(K.lineHeight)),12),F=Ia(q.placeInside,!1),ba=q.skipOverlapLabels,t=q.manageLabelOverflow,A=q.connectorPadding,
O=q.connectorWidth,E,G,z=0<q.distance,M=n.center,la=M[1],fa=M[0],I=M[2],C=M[4],H=[[],[],[],[]],N,Y,T,J=this.canvasLeft,W=this.canvasTop,U=this.canvasWidth,L,oa,Q,v,R,ca,ha,V,wa,S,ga,ma=n.labelsRadius,ja=u(100*n.labelsRadiusY)/100,La=n.labelFontSize,ra=La,da=ra/2,A=[A,A,-A,-A],na=n.maxLabels,pa=n.isSmartLineSlanted,qa=n.enableSmartLabels,ka,n=n.pieSliceDepth/2;k||$.setStyle(K);if(1==g.length)v=g[0],ka=v.dataLabel,v.slicedTranslation=[J,W],ka&&(ka.attr({visibility:h,"text-anchor":"middle",x:fa,y:la+
da-2}),ka.x=fa);else if(F)za(g,function(a){if(ka=a.dataLabel){ga=a.angle;S=la+M[6]*w(ga)+da-2;ha=fa+M[5]*D(ga);ka.x=ha;ka._x=ha;ka.y=S;if(a.sliced){a=a.slicedTranslation;var b=a[1]-W;ha+=a[0]-J;S+=b}ka.attr({visibility:h,align:"middle",x:ha,y:S})}});else{za(g,function(a){if(ka=a.dataLabel)ga=a.angle,0>ga&&(ga=ia+ga),N=0<=ga&&ga<Z?1:ga<x?2:ga<Va?3:0,H[N].push({point:a,angle:ga})});for(T=F=4;T--;){if(ba&&(v=H[T].length-na,0<v))for(H[T].sort(a),Y=H[T].splice(0,v),oa=0,Q=Y.length;oa<Q;oa+=1)v=Y[oa].point,
v.dataLabel.attr({visibility:"hidden"}),v.connector&&v.connector.attr({visibility:"hidden"});H[T].sort(b)}T=B(H[0].length,H[1].length,H[2].length,H[3].length);ja=B(r(T,na)*ra,ja+ra);H[1].reverse();H[3].reverse();for($.setStyle(K);F--;){oa=H[F];Q=oa.length;ba||(ra=Q>na?ja/Q:La,da=ra/2);v=Q*ra;K=ja;for(T=0;T<Q;T+=1,v-=ra)G=X(ja*w(oa[T].angle)),K<G?G=K:G<v&&(G=v),K=(oa[T].oriY=G)-ra;Y=d[F];Q=ja-(Q-1)*ra;K=0;for(T=oa.length-1;0<=T;--T,Q+=ra)v=oa[T].point,ga=oa[T].angle,R=v.sliced,ka=v.dataLabel,G=X(ja*
w(ga)),G<K?G=K:G>Q&&(G=Q),K=G+ra,V=(G+oa[T].oriY)/2,G=fa+c[F]*ma*D(P.asin(V/ja)),V*=e[F],V+=la,wa=la+C*w(ga),ca=fa+I*D(ga),(2>F&&G<ca||1<F&&G>ca)&&(G=ca),ha=G+A[F],S=V+da-2,E=ha+A[F],ka.x=E,ka._x=E,t&&(L=1<F?E-this.canvasLeft:this.canvasLeft+U-E,$.setStyle(v.style),l=f(y(parseFloat(v.style.lineHeight)),12)+2*y(parseFloat(v.style.border),12),l=$.getSmartText(v.labelText,L,l),ka.attr({text:l.text,title:l.tooltext||""})),ga<x&&(V+=n,wa+=n,S+=n),ka.y=S,R&&(l=v.transX,R=v.transY,ha+=l,G+=l,ca+=l,wa+=R,
E+=l),ka.attr({visibility:h,"text-anchor":Y,x:E,y:V}),z&&O&&qa&&(E=v.connector,v.connectorPath=G=["M",ca,wa,"L",pa?G:ca,V,ha,V],E?(E.attr({path:G}),E.attr("visibility",h)):v.connector=E=this.paper.path(G).attr({"stroke-width":O,stroke:q.connectorColor||"#606060",visibility:h}))}}}}()},k["renderer.piebase"]);k("renderer.pie",{drawDoughnutCenterLabel:function(a,b,d,e,c,f,k){var g=this.options.series[0];f=f||g.lastCenterLabelConfig;var P=this.paper,q=this.smartLabel,w=this.layers.dataset,l=this.elements,
n=f.padding,u=2*f.textPadding,r={fontFamily:f.font,fontSize:f.fontSize+"px",lineHeight:1.2*f.fontSize+"px",fontWeight:f.bold?"bold":"",fontStyle:f.italic?"italic":""},A=1.414*(.5*e-n)-u;c=1.414*(.5*c-n)-u;var x;q.setStyle(r);q=q.getSmartText(a,A,c);(c=l.doughnutCenterLabel)?(c.attr("text")!==a&&this.centerLabelChange(a),x=l.centerLabelOvalBg):(f.bgOval&&(l.centerLabelOvalBg=x=P.circle(b,d,.5*e-n,w)),c=l.doughnutCenterLabel=P.text(w).hover(this.centerLabelRollover,this.centerLabelRollout).click(this.centerLabelClick),
c.chart=this);a?(c.css(r).attr({x:b,y:d,text:q.text,visibility:h,direction:this.options.chart.textDirection,title:f.toolText?"":q.tooltext||"",fill:L({FCcolor:{color:f.color,alpha:f.alpha}}),"text-bound":f.bgOval?"none":[L({FCcolor:{color:f.bgColor,alpha:f.bgAlpha}}),L({FCcolor:{color:f.borderColor,alpha:f.borderAlpha}}),f.borderThickness,f.textPadding,f.borderRadius]}).tooltip(f.toolText),f.bgOval&&x&&x.attr({visibility:h,fill:Ya(f.bgColor),"fill-opacity":f.bgAlpha/100,stroke:Ya(f.borderColor),"stroke-width":f.borderThickness,
"stroke-opacity":f.borderAlpha/100})):(c.attr("visibility","hidden"),x&&x.attr("visibility","hidden"));k&&(g.lastCenterLabelConfig=f)},centerLabelRollover:function(){var a=this.chart,b=a.fusionCharts,d=a.options.series[0].lastCenterLabelConfig,b={height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:d&&d.label};this.attr("text")&&ta.raiseEvent("centerLabelRollover",
b,a.logic.chartInstance,this,a.hoverOnCenterLabel)},centerLabelRollout:function(){var a=this.chart,b=a.fusionCharts,d=a.options.series[0].lastCenterLabelConfig,b={height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:d&&d.label};this.attr("text")&&ta.raiseEvent("centerLabelRollout",b,a.logic.chartInstance,this,a.hoverOffCenterLabel)},centerLabelClick:function(){var a=
this.chart,b=a.fusionCharts,d=a.options.series[0].lastCenterLabelConfig,b={height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:d&&d.label};this.attr("text")&&ta.raiseEvent("centerLabelClick",b,a.logic.chartInstance)},centerLabelChange:function(a){var b=this.fusionCharts;ta.raiseEvent("centerLabelChanged",{height:b.args.height,width:b.args.width,pixelHeight:b.ref.offsetHeight,
pixelWidth:b.ref.offsetWidth,id:b.args.id,renderer:b.args.renderer,container:b.options.containerElement,centerLabelText:a},this.logic.chartInstance)},hoverOnCenterLabel:function(){var a=this.chart.options.series[0].lastCenterLabelConfig;(a.hoverColor||a.hoverAlpha)&&this.attr({fill:L({FCcolor:{color:a.hoverColor||a.color,alpha:a.hoverAlpha||a.alpha}})})},hoverOffCenterLabel:function(){var a=this.chart.options.series[0].lastCenterLabelConfig;(a.hoverColor||a.hoverAlpha)&&this.attr({fill:L({FCcolor:{color:a.color,
alpha:a.alpha}})})},drawPlotPie:function(a,b){var d=this,e=a.items,c=a.data,k=d.options,g=k.series[0],P=k.plotOptions,n=P.pie,q=P.series,u=d.layers,l=u.dataset,r=d.elements.plots[0],P=P.series.dataLabels,y=q.dataLabels.style,B=q.shadow,q=f(a.moveDuration,q.animation.duration),A=d.paper,G=k.tooltip||{},G=G&&!1!==G.enabled,E=((b.startAngle*=-x/180)||0)%ia,$=n.slicedOffset,ba=b.valueTotal,M=ia/ba,O=d.canvasLeft+.5*d.canvasWidth,t=d.canvasTop+.5*d.canvasHeight,I=.5*n.size,n=.5*(n.innerSize||0),C=d.plotDragMove,
H=d.plotDragStart,N=d.plotDragEnd,X=d.plotRollOver,T=d.plotRollOut,J=!!d.datasets[0].enableRotation,la=c.length,U=k.chart,k=U.usePerPointLabelColor,U=U.textDirection,z=g.centerLabelConfig,fa=z.label,Q={fontFamily:y.fontFamily,fontSize:y.fontSize,lineHeight:y.lineHeight,fontWeight:y.fontWeight,fontStyle:y.fontStyle},v,R,Y,Z,V,oa,ha,ga,S,wa,ja=a.shadowGroup,ka,ma,ra,La,da,Va=function(a){return function(){d.legendClick(a,!0,!1)}},pa=function(a){return function(){return d.getEventArgs(a)}},qa=function(){d.disposed||
d.disposing||d.paper.ca.redrawDataLabels||(d.placeDataLabels(!1,e,a),d.paper.ca.redrawDataLabels=d.redrawDataLabels)};c&&la||(c=[]);ja||(ja=a.shadowGroup=A.group(l).toBack());r.singletonCase=1===la;r.chartPosition||(r.chartPosition=Da(d.container));r.pieCenter=[O,t];r.timerThreshold=30;S=ga=E;for(ka=la;ka--;)R=c[ka],Q=R.y,Y=R.displayValue,V=R.sliced,y=R.toolText,oa=(Z=!!R.link)||J||!R.doNotSlice,null!==Q&&void 0!==Q&&(v=R.color.FCcolor,v.r=I,v.cx=O,v.cy=t,R.rolloverProperties&&(v=R.rolloverProperties.color.FCcolor,
v.r=I,v.cx=O,v.cy=t),S=ga,ga-=r.singletonCase?ia:Q*M,ha=.5*(ga+S),q?La=da=E:(La=ga,da=S),(v=e[ka])||(b.data[ka].plot=v=e[ka]={chart:d,index:ka,seriesData:r,value:Q,angle:ha,slicedX:D(ha)*$,slicedY:w(ha)*$,sliced:V,labelText:Y,toolText:y,label:R.name,link:R.link,percentage:ba?Q*ba/100:0,originalIndex:la-ka-1,style:R.style,color:R.color,borderColor:R.borderColor,borderWidth:R.borderWidth,rolloverProperties:R.rolloverProperties,center:[O,t],innerDiameter:2*n,centerLabelConfig:R.centerLabelConfig,graphic:A.ringpath(O,
t,I,n,La,da,u.dataset).attr({"stroke-width":R.borderWidth,"stroke-linejoin":"round",stroke:R.borderColor,fill:L(R.color),"stroke-dasharray":R.dashStyle,redrawDataLabels:E,ishot:oa,cursor:Z?"pointer":""}).shadow(B&&R.shadow,ja).drag(C,H,N).hover(X,T)},G&&v.graphic.tooltip(y),b.data[ka].legendClick=Va(v),b.data[ka].getEventArgs=pa(v),v.graphic.data("plotItem",v),Z={index:b.reversePlotOrder?ka:la-1-ka,link:R.link,value:R.y,displayValue:R.displayValue,categoryLabel:R.categoryLabel,isSliced:R.sliced,toolText:R.toolText},
v.graphic.data("eventArgs",Z),void 0!==Y&&(y=R.style,Q={fontFamily:y.fontFamily,fontSize:y.fontSize,lineHeight:y.lineHeight,fontWeight:y.fontWeight,fontStyle:y.fontStyle},v.dataLabel=A.text(l).css(Q).attr({text:Y,fill:(k?L(R.color):y.color)||"#000000","text-bound":[y.backgroundColor,y.borderColor,y.borderThickness,y.borderPadding,y.borderRadius,y.borderDash],ishot:oa,direction:U,visibility:"hidden"}).drag(C,H,N).hover(X,T).data("eventArgs",Z).hide(),v.dataLabel.data("plotItem",v),0<P.distance&&(wa=
P.connectorWidth)&&P.enableSmartLabels&&(v.connector=A.path("M 0 0 l 0 0",l).attr({"stroke-width":wa,stroke:P.connectorColor||"#606060",visibility:h,ishot:!0}).data("eventArgs",Z).drag(C,H,N).hover(X,T),v.connector.data("plotItem",v)))),v.angle=ha,v.transX=D(ha)*$,v.transY=w(ha)*$,v.slicedTranslation="t"+D(ha)*$+","+w(ha)*$,q?ma?v.graphic.animateWith(ma,ra,{ringpath:[O,t,I,n,ga,S],transform:v.sliced?v.slicedTranslation:""},q,"easeIn"):(ra=na.animation({ringpath:[O,t,I,n,ga,S],redrawDataLabels:d,transform:v.sliced?
v.slicedTranslation:""},q,"easeIn",qa),ma=v.graphic.animate(ra)):v.graphic.attr({transform:v.sliced?v.slicedTranslation:""}));fa&&n&&d.drawDoughnutCenterLabel(fa,O,t,2*n,2*n,z,!0);g.lastCenterLabelConfig=z;q?g.doughnutCenterLabel&&g.doughnutCenterLabel.attr({"fill-opacity":0}).animate(na.animation({"fill-opacity":100},100).delay(100<q?q-100:0)):d.placeDataLabels(!1,e,a)},rotate:function(a,b){var d=a.items,e=a.data,c=this.options.plotOptions.pie,h=c.slicedOffset,f=ia/b.valueTotal,k=this.canvasLeft+
.5*this.canvasWidth,g=this.canvasTop+.5*this.canvasHeight,P=.5*c.size,c=.5*(c.innerSize||0),n,l,r,u,y;r=(b.startAngle||0)%ia;for(y=e.length;y--;)n=e[y],l=n.y,null!==l&&void 0!==l&&(n=d[y],u=r,r-=n.seriesData.singletonCase?ia:l*f,l=.5*(r+u),n.angle=l,n.transX=D(l)*h,n.transY=w(l)*h,n.slicedTranslation="t"+D(l)*h+","+w(l)*h,n.graphic.attr({ringpath:[k,g,P,c,r,u],transform:n.sliced?n.slicedTranslation:""}));this.placeDataLabels(!0,d,a)}},k["renderer.piebase"])},[3,2,2,"sr4"]]);
FusionCharts.register("module",["private","modules.renderer.js-zoomline",function(){var Da=this,sa=Da.hcLib,da=Da.window,Na=/msie/i.test(da.navigator.userAgent)&&!da.opera,Ra=sa.chartAPI,Oa=sa.chartAPI,ta=sa.extend2,z=sa.raiseEvent,na=sa.pluck,t=sa.pluckNumber,Ka=sa.getFirstColor,S=sa.graphics.convertColor,Wa=sa.bindSelectionEvent,g=sa.createTrendLine,Ba=sa.parseUnsafeString,Ha=sa.regescape,f=sa.Raphael,Ia=sa.hasTouch,Ua=sa.getMouseCoordinate,pa=sa.FC_CONFIG_STRING,va="rgba(192,192,192,"+(Na?.002:
1E-6)+")",Ca=da.Math,Fa=Ca.ceil,L=Ca.floor,Pa=Ca.max,Qa=Ca.min,qa=Ca.cos,za=Ca.sin,Ga=da.parseFloat,Sa=da.parseInt,ua;ta(sa.eventList,{zoomed:"FC_Zoomed",pinned:"FC_Pinned",resetzoomchart:"FC_ResetZoomChart"});Ra("zoomline",{friendlyName:"Zoomable and Panable Multi-series Line Chart",rendererId:"zoomline",standaloneInit:!0,hasVDivLine:!0,defaultSeriesType:"stepzoom",canvasborderthickness:1,defaultPlotShadow:1,chart:function(){for(var b=this.base.chart.apply(this,arguments),c=b[pa],h=this.dataObj.chart,
f=this.colorManager.getColor("canvasBorderColor"),g=b.chart,D=0,ba=b.series,u=ba&&ba.length||0,r;u--;)r=ba[u],D=Pa(D,r&&r.showAnchors&&r.attrs&&r.attrs.anchors&&(r.attrs.anchors.r||0)+(r.attrs.anchors["stroke-width"]||0)||0);ta(g,{animation:!1,zoomType:"x",canvasPadding:Pa(D,t(h.canvaspadding,0)),overFlowingMarkerWidth:D,scrollColor:Ka(na(h.scrollcolor,this.colorManager.getColor("altHGridColor"))),scrollShowButtons:!!t(h.scrollshowbuttons,1),scrollHeight:t(h.scrollheight,16)||16,scrollBarFlat:c.flatScrollBars,
allowPinMode:t(h.allowpinmode,1),skipOverlapPoints:t(h.skipoverlappoints,1),showToolBarButtonTooltext:t(h.showtoolbarbuttontooltext,1),btnResetChartTooltext:na(h.btnresetcharttooltext,"Reset Chart"),btnZoomOutTooltext:na(h.btnzoomouttooltext,"Zoom out one level"),btnSwitchToZoomModeTooltext:na(h.btnswitchtozoommodetooltext,"<strong>Switch to Zoom Mode</strong><br/>Select a subset of data to zoom into it for detailed view"),btnSwitchToPinModeTooltext:na(h.btnswitchtopinmodetooltext,"<strong>Switch to Pin Mode</strong><br/>Select a subset of data and compare with the rest of the view"),
pinPaneFill:S(na(h.pinpanebgcolor,f),t(h.pinpanebgalpha,15)),zoomPaneFill:S(na(h.zoompanebgcolor,"#b9d5f1"),t(h.zoompanebgalpha,30)),zoomPaneStroke:S(na(h.zoompanebordercolor,"#3399ff"),t(h.zoompaneborderalpha,80)),showPeakData:t(h.showpeakdata,0),maxPeakDataLimit:t(h.maxpeakdatalimit,h.maxpeaklimit,null),minPeakDataLimit:t(h.minpeakdatalimit,h.minpeaklimit,null),crossline:{enabled:t(h.showcrossline,1),line:{"stroke-width":t(h.crosslinethickness,1),stroke:Ka(na(h.crosslinecolor,"#000000")),"stroke-opacity":t(h.crosslinealpha,
20)/100},labelEnabled:t(h.showcrosslinelabel,h.showcrossline,1),labelstyle:{fontSize:Ga(h.crosslinelabelsize)?Ga(h.crosslinelabelsize)+"px":c.outCanvasStyle.fontSize,fontFamily:na(h.crosslinelabelfont,c.outCanvasStyle.fontFamily)},valueEnabled:t(h.showcrosslinevalues,h.showcrossline,1),valuestyle:{fontSize:Ga(h.crosslinevaluesize)?Ga(h.crosslinevaluesize)+"px":c.inCanvasStyle.fontSize,fontFamily:na(h.crosslinevaluefont,c.inCanvasStyle.fontFamily)}},useCrossline:t(h.usecrossline,1),tooltipSepChar:na(h.tooltipsepchar,
", ")});return b},preSeriesAddition:function(){var b=this.dataObj,c=b.chart,h=this.hcJSON,f=h[pa],g=this.smartLabel,D=t(c.compactdatamode,0),ba=na(c.dataseparator,"|"),u=t(c.showlabels,1),r=c.labeldisplay&&c.labeldisplay.toLowerCase(),B=u&&t(c.labelheight),X="rotate"===r?270:t(c.rotatelabels,1)?270:0,z=h.xAxis.labels.style,y=Ga(z.lineHeight),n=h.chart.labelPadding=t(c.labelpadding,.2*y)+h.chart.plotBorderWidth,G,O,Y,x=0,Z=-1,ia,L,S;0>B&&(B=void 0);0>n&&(n=(h.chart.plotBorderWidth||0)+2);G=(G=b.categories)&&
G[0]||{};b=G.category;delete G.category;h.categories=r=ta({data:O=D&&b&&b.split&&b.split(ba)||b||[],rotate:X,wrap:"none"!==r},G);void 0!==b&&(G.category=b);G=O.length||0;if(ia=!D&&u&&0!==B&&G||0){for(;ia--;)O[ia]=O[ia]&&(Y=O[ia].label||"")&&((L=Y.length)>x&&(x=L,Z=ia,Y)||Y)||"";x&&(Y=O[Z])}else if(D&&G&&!B)if(X){D=da.document.createElement("div");B=da.document.createElement("span");D.setAttribute("class","fusioncharts-zoomline-localsmartlabel");D.style.cssText="display:block;width:1px;position:absolute;";
for(S in z)D.style[S]=z[S];B.innerHTML=b.replace(/\s*/g,"").replace(/\{br\}/ig,"<br />").replace(new RegExp(Ha(ba),"g")," ");D.appendChild(B);da.document.body.appendChild(D);B=B.offsetWidth||void 0;D.parentNode.removeChild(D)}else Y=O[G-1]||O[0];void 0!==B&&0!==B||!u||(Y?(g.setStyle(z),Y=g.getSmartText(Y),B=X?Y.width:Y.height):B=y*(X&&3||1));B>.3*f.height&&(B=.3*f.height);r.labelHeight=B&&B+6||0;r.show=B&&u||0;r.css=ta({},z);X?(r.css.rotation=X,r.css["text-anchor"]="end"):r.css["vertical-align"]=
"top";h.xAxis.min=0;h.xAxis.max=G&&G-1||0;B+=t(c.scrollheight,16)||16;h.chart.marginBottom+=n;f.marginBottomExtraSpace+=B;na(c.caption,c.subcaption)||(f.marginTopExtraSpace+=16)},series:function(){var b=this.dataObj,c=b.chart,h=b.dataset,f=this.hcJSON,w=f[pa],D=w[0],ba=f.series,u=t(c.yaxismaxvalue),r=t(c.yaxisminvalue),B=t(c.forceyaxislimits,0),X=t(c.compactdatamode,0),z=na(c.dataseparator,"|"),y=Ha(c.indecimalseparator),n=Ha(c.inthousandseparator),G=t(c.drawanchors,c.showanchors,1),O=!!t(c.showlegend,
1),Y,x,Z,L,S=Infinity,da=-Infinity,ja,ma;L=f.categories.data.length;if(h&&h.length&&L){y&&(y=new RegExp(y,"g"));n&&(n=new RegExp(n,"g"));!n&&!y&&X&&B&&void 0!==u&&void 0!==r?(B=!0,da=Pa(u,r),S=Qa(r,u)):B=!1;r=0;for(ja=h.length;r<ja;r++){u=h[r];Y=u.data;delete u.data;X?(Z=Y||"",n&&(Z=Z.replace(n,"")),y&&(Z=Z.replace(y,".")),Z=Z.split(z)):Z=Y||[];Z.length>L&&(Z.length=L);ma=Z.length;if(X){if(!B)for(;ma--;)x=Ga(Z[ma]),isNaN(x)&&(x=void 0),x>da&&(da=x),x<=S&&(S=x),Z[ma]=x}else for(;ma--;)x=Z[ma]&&Z[ma].value||
"",n&&(x=x.replace(n,"")),y&&(x=x.replace(y,".")),x=Ga(x),isNaN(x)&&(x=void 0),x>da&&(da=x),x<=S&&(S=x),Z[ma]=x;ba.push(x={index:r,type:"zoomline",data:Z,name:u.seriesname||"",showInLegend:u.seriesname&&t(u.includeinlegend,1)&&O||!1,showAnchors:t(u.drawanchors,u.showanchors,G),visible:!t(u.initiallyhidden,0),lineWidth:2});Z.length=L;void 0!==Y&&(u.data=Y);x.attrs=this.seriesGraphicsAttrs(u);Y=x.attrs.anchors;x.color=x.attrs.graphics.stroke;x.ancorRadius=Y.r+Y["stroke-width"]/2;x.marker={enabled:!!t(u.drawanchors,
u.showanchors,G),fillColor:Y.fill,lineColor:Y.stroke,lineWidth:1,symbol:"circle"}}-Infinity!==da&&Infinity!==S||(da=S=void 0);B=Sa(t(c.displaystartindex,1),10)-1;z=Sa(t(c.displayendindex,L||2),10)-1;1>(h=t(c.pixelsperpoint,15))&&(h=1);(ba=t(c.pixelsperlabel,c.xaxisminlabelwidth,f.categories.rotate?20:60))<h&&(ba=h);(0>B||B>=(L-1||1))&&(B=0);(z<=B||z>(L-1||1))&&(z=L-1||1);f.stepZoom={cnd:t(c.connectnulldata,0),amrd:t(c.anchorminrenderdistance,20),nvl:t(c.numvisiblelabels,0),cdm:X,oppp:h,oppl:ba,dsi:B,
dei:z,vdl:z-B,dmax:D.max=da,dmin:D.min=S,clen:L,offset:0,step:1,llen:0,alen:0,ddsi:B,ddei:z,ppc:0};this.configureAxis(f,b);b.trendlines&&g(b.trendlines,f.yAxis,w,!1,this.isBar)}},seriesGraphicsAttrs:function(b){var c=this.dataObj.chart,h="0"!=(b.dashed||c.linedashed||"0"),g,w,h={"stroke-width":t(b.linethickness,c.linethickness,2),stroke:Ka(na(b.color,c.linecolor,this.colorManager.getPlotColor())),"stroke-opacity":t(b.alpha,c.linealpha,100)/100,"stroke-dasharray":h?[t(b.linedashlen,c.linedashlen,5),
t(b.linedashgap,c.linedashgap,4)]:"none","stroke-linejoin":"round","stroke-linecap":"round"};g=ta({},h);w=h["stroke-width"]+t(c.pinlinethicknessdelta,1);g["stroke-width"]=0<w&&w||0;g["stroke-dasharray"]=[3,2];return{graphics:h,pin:g,shadow:{opacity:h["stroke-opacity"],apply:t(c.showshadow,+!f.vml)},anchors:{"stroke-linejoin":"round","stroke-linecap":"round",r:t(b.anchorradius,c.anchorradius,h["stroke-width"]+2),stroke:Ka(na(b.anchorbordercolor,c.anchorbordercolor,h.stroke)),"stroke-opacity":t(b.anchorborderalpha,
c.anchorborderalpha,100)/100,"stroke-width":t(b.anchorborderthickness,c.anchorborderthickness,h["stroke-width"]),fill:Ka(na(b.anchorbgcolor,c.anchorbgcolor,"#ffffff")),"fill-opacity":t(b.anchorbgalpha,c.anchorbgalpha,100)/100,opacity:t(b.anchoralpha,c.anchoralpha,100)/100},anchorShadow:t(c.anchorshadow,c.showshadow,+!f.vml)&&{apply:!0,opacity:t(b.anchoralpha,c.anchoralpha,100)/100}}},eiMethods:{zoomOut:function(){var b=this.jsVars,c;if(b&&(c=b.hcObj))return c.zoomOut&&b.hcObj.zoomOut()},zoomTo:function(b,
c){var h=this.jsVars,f;if(h&&(f=h.hcObj))return f.zoomRange&&h.hcObj.zoomRange(b,c)},resetChart:function(){var b=this.jsVars,c;b&&(c=b.hcObj)&&(c.pinRangePixels&&b.hcObj.pinRangePixels(),c.resetZoom&&b.hcObj.resetZoom())},setZoomMode:function(b){var c=this.jsVars,h;c&&(h=c.hcObj)&&h.activatePin&&h.activatePin(!b)},getViewStartIndex:function(){var b=this.jsVars,c;if(b&&b.hcObj&&(c=b.hcObj._zoominfo))return c.ddsi},getViewEndIndex:function(){var b=this.jsVars,c;if(b&&b.hcObj&&(c=b.hcObj._zoominfo))return b=
c.ddei-1,(b>=c.clen?c.clen:b)-1}}},Ra.msline);Oa("renderer.zoomline",{resetZoom:function(){var b=this._zoomhistory,c=this.options.stepZoom;if(!b.length)return!1;b.length=0;this.zoomTo(c.dsi,c.dei)&&z("zoomReset",this._zoomargs,this.fusionCharts,[this.fusionCharts.id]);return!0},zoomOut:function(){var b=this._zoomhistory.pop(),c=this.options.stepZoom,h,f,g;b?(h=b.dsi,f=b.dei):this._prezoomed&&(h=0,f=c.clen-1);(g=this.zoomTo(h,f))&&Da.raiseEvent("zoomedout",g,this.fusionCharts);return!0},zoomRangePixels:function(b,
c){var h=this._zoomhistory,f=this._zoominfo,g=f.ppp,f=f.ddsi,D;h.push(this._zoominfo);(D=this.zoomTo(f+L(b/g),f+L(c/g)))?Da.raiseEvent("zoomedin",D,this.fusionCharts):h.pop()},zoomRange:function(b,c){var h=this._zoomhistory,f;h.push(this._zoominfo);(f=this.zoomTo(+b,+c))?Da.raiseEvent("zoomedin",f,this.fusionCharts):h.pop()},zoomTo:function(b,c){var f=this.xlabels.data,g=this._zoominfo,w=this._zoomhistory,D=g.clen;0>b&&(b=0);b>=D-1&&(b=D-1);c<=b&&(c=b+1);c>D-1&&(c=D-1);if(b===c||b===g.dsi&&c===g.dei)return!1;
this.pinRangePixels();g=ta({},g);g.dsi=b;g.dei=c;g=this._zoominfo=g;this.updatePlotZoomline();this.zoomOutButton[g.vdl===g.clen-1?"hide":"show"]();this.resetButton[w.length?"show":"hide"]();this.elements.zoomscroller.attr({"scroll-ratio":g.vdl/(D-!!D),"scroll-position":[g.dsi/(D-g.vdl-1),!0]});f={level:w.length+1,startIndex:b,startLabel:f[b],endIndex:c,endLabel:f[c]};z("zoomed",f,this.fusionCharts,[this.fusionCharts.id,b,c,f.startLabel,f.endLabel,f.level]);return f},activatePin:function(b){var c=
this._zoominfo,f=this.options.chart,g=this.pinButton;if(g&&c.pinned^(b=!!b))return b||this.pinRangePixels(),z("zoomModeChanged",{pinModeActive:b},this.fusionCharts,[]),f.showToolBarButtonTooltext&&g.tooltip(f[b&&"btnSwitchToZoomModeTooltext"||"btnSwitchToPinModeTooltext"]||""),g.attr("button-active",b),c.pinned=b},pinRangePixels:function(b,c){var f=this.paper,g=this.elements,w=this.xlabels.data,D=this._zoominfo,t=this.layers.zoompin,u=g.pinrect,r=g["clip-pinrect"],B=this._pingrouptransform,X=this.plots,
L=c-b,y,n;if(D&&t&&u){if(b===c)return t.hide(),g.pintracker.hide(),this.pinButton.attr("button-active",!1),D.pinned=!1;for(n=X.length;n--;)u=X[n],y=u.pinline,y||(y=u.pinline=f.path(void 0,t).attr(u.attrPin)),y.attr("path",u.graphic.attrs.path);r[0]=b+this.canvasLeft;r[2]=L;t.attr({"clip-rect":r,transform:B}).show();g.pintracker.__pindragdelta=0;g.pintracker.show().attr({transform:B,x:b,width:L});b=this.getValuePixel(b);c=this.getValuePixel(c);z("pinned",{startIndex:b,endIndex:c,startLabel:w[b],endLabel:w[c]},
this.fusionCharts,[this.fusionCharts.id,b,c,w[b],w[c]]);return D.pinned=!0}},getValuePixel:function(b){var c=this._zoominfo;return c.ddsi+L(b/c.ppp)},getParsedLabel:function(b){var c=this.xlabels;return c.parsed[b]||(c.parsed[b]=Ba(c.data[b]||""))},drawGraph:function(){var b=this,c=b.paper,h=b.canvasLeft,g=b.canvasTop,w=b.canvasWidth,D=b.canvasHeight,t=b.options,u=t.chart,r=u.plotBorderWidth,B=u.useRoundEdges,z=u.showToolBarButtonTooltext,L=u.crossline,y=b.layers,n=b.toolbar,G=b.elements,O=u.allowPinMode,
Y=t.categories,x=!1,Z,S,da,na,ja,ma,ka;ma=b._zoominfo=ta({},t.stepZoom);b._zoomhistory=[];ma.clen&&(x=b._prezoomed=ma.dei-ma.dsi<ma.clen-1,ja=b._visw=b.canvasWidth-2*u.canvasPadding,na=b._visx=b.canvasLeft+u.canvasPadding,b._visout=-(b.chartHeight+b.canvasHeight+1E3),b.base.drawGraph.apply(b,arguments),b._ypvr=b.yAxis[0]&&b.yAxis[0].pixelValueRatio||0,ka=b._ymin||(b._ymin=b.yAxis[0].endY),b._yminValue=b.yAxis[0].min,t=y.dataset.attr("clip-rect",[b._visx-u.overFlowingMarkerWidth,b.canvasTop,b._visw+
2*u.overFlowingMarkerWidth,b.canvasHeight]),da=y.scroll||(y.scroll=c.group("scroll").insertAfter(y.layerAboveDataset)),b.xlabels=[],b.xlabels.show=Y.show,b.xlabels.height=Y.labelHeight,b.xlabels.wrap=Y.wrap,b.xlabels.rotate=Y.rotate,b.xlabels.data=Y.data||[],b.xlabels.parsed=[],b.xlabels.css=Y.css,b.xlabels.group=c.group("zoomline-plot-xlabels",y.datalabels),y.datalabels.transform(["T",na,g+D+u.scrollHeight+u.labelPadding]),b._lcmd=Y.rotate?"y":"x",O&&(O=f.crispBound(0,g-ka,0,D,r),Z=G["clip-pinrect"]=
[O.x,g,O.width,O.height],S=y.zoompin=c.group("zoompin").insertBefore(t).transform(b._pingrouptransform=["T",na,ka]).hide(),G.pinrect=c.rect(0,g-ka,b._visw,D,y.zoompin).attr({"stroke-width":0,stroke:"none",fill:u.pinPaneFill,"shape-rendering":"crisp",ishot:!0}),G.pintracker=c.rect(y.tracker).attr({transform:S.transform(),x:0,y:g-ka,width:0,height:D,stroke:"none",fill:va,ishot:!0,cursor:f.svg&&"ew-resize"||"e-resize"}).drag(function(b){var c=na+b+this.__pindragdelta,h=this.__pinboundleft,g=this.__pinboundright,
n=this.data("cliprect").slice(0);c<h?c=h:c>g&&(c=g);S.transform(["T",c,ka]);G.pintracker.transform(S.transform());f.svg||(n[0]=n[0]+c-na-this.__pindragdelta,S.attr("clip-rect",n));this.__pindragoffset=b},function(){this.__pinboundleft=0-Z[0]+na+h;this.__pinboundright=this.__pinboundleft+ja-Z[2];this.data("cliprect",S.attr("clip-rect"));S._.clipispath=!0},function(){S._.clipispath=!1;this.__pindragdelta=this.__pindragoffset;delete this.__pindragoffset;delete this.__pinboundleft;delete this.__pinboundright}),
b.pinButton=n.add("pinModeIcon",function(){b.activatePin(!b._zoominfo.pinned)},{tooltip:z&&u.btnSwitchToPinModeTooltext||""})),r++,O=f.crispBound(h-r,g+D+r,w+r+r,u.scrollHeight,r),r--,G.zoomscroller=c.scroller(O.x+(B&&-1||r%2),O.y-(B&&4||2),O.width-(!B&&2||0),O.height,!0,{showButtons:u.scrollShowButtons,scrollRatio:ma.vdl/(ma.clen-!!ma.clen),scrollPosition:[ma.dsi/(ma.clen-ma.vdl-1),!1],displayStyleFlat:u.scrollBarFlat},da).attr({fill:u.scrollColor,r:B&&2||0}).scroll(b.updatePlotZoomline,b),B&&G.zoomscroller.shadow(!0),
function(){var c;f.eve.on("raphael.scroll.start."+G.zoomscroller.id,function(f){c=f;b.crossline&&b.crossline.disable(!0);Da.raiseEvent("scrollstart",{scrollPosition:f},b.logic.chartInstance)});f.eve.on("raphael.scroll.end."+G.zoomscroller.id,function(f){b.crossline&&b.crossline.disable(!1);Da.raiseEvent("scrollend",{prevScrollPosition:c,scrollPosition:f},b.logic.chartInstance)})}(),Wa(b,{attr:{stroke:u.zoomPaneStroke,fill:u.zoomPaneFill,strokeWidth:0},selectionStart:function(){},selectionEnd:function(c){var f=
c.selectionLeft-h;c=f+c.selectionWidth;b.crossline&&b.crossline.hide();b[b._zoominfo.pinned?"pinRangePixels":"zoomRangePixels"](f,c)}}),b.zoomOutButton=n.add("zoomOutIcon",function(){b.zoomOut()},{tooltip:z&&u.btnZoomOutTooltext||""})[x&&"show"||"hide"](),b.resetButton=n.add("resetIcon",function(){b.resetZoom()},{tooltip:z&&u.btnResetChartTooltext||""}).hide(),O=b.resetButton.attr("fill"),O[2]="rgba(255,255,255,0)",b.resetButton.attr("fill",[O[0],O[1],O[2],O[3]]),L&&0!==L.enabled&&1===u.useCrossline&&
(b.crossline=new ua(b,L)),b.updatePlotZoomline())},drawPlotZoomline:function(b,c){var f=this.paper,g=c.attrs,w=c.visible,D=w?"show":"hide",t=this.layers.dataset,u=b.group||(b.group=f.group("plot-zoomline-dataset",t)),t=b.anchorGroup||(b.anchorGroup=f.group("plot-zoomline-anchors",t)),f=b.graphic||(b.graphic=f.path(void 0,u)),r=["T",this._visx,this._ymin||(this._ymin=this.yAxis[0].endY)];u.transform(r)[D]();t.transform(r)[D]();b.graphic=f.attr(g.graphics).shadow(g.shadow);b.attrPin=g.pin;b.visible=
w;b.anchors=[];b.anchors.show=c.showAnchors;b.anchors.attrs=g.anchors;b.anchors.attrsShadow=g.anchorShadow;b.anchors.left=-(g.anchors.r+.5*g.anchors["stroke-width"]);b.anchors.right=this._visw-b.anchors.right},updatePlotZoomline:function(b,c){var f=this.paper,g=this._ypvr,w=this._visw,D=this.xlabels,t=D.css,u=D.group,r=this.plots,B=this.options.chart.textDirection,z,L,y,n,G,O,Y,x;!c&&(c=this._zoominfo);y=c.oppp;n=c.vdl=c.dei-c.dsi;G=c.ppl=c.nvl?w/c.nvl:c.oppl;w=c.step=(O=c.ppp=w/n)<y?Fa(y/O):1;y=
c.lskip=Fa(Pa(G,Ga(t.lineHeight))/O/w);void 0!==b?(G=(c.clen-n-1)*b,c.offset=(G-(G=Sa(G)))*O,n=G+n):(G=c.dsi,n=c.dei,c.offset=0);Y=c.norm=G%w;c.ddsi=G-=Y;c.ddei=n=n+2*w-Y;c.pvr=g;c._ymin=this._ymin;c._yminValue=this._yminValue;g=D.show?Fa((n-G)/w/y):0;Y=c.llen-1;c.llen=g;x=c.ppc=O*y*w;if(g>Y)for(y=Y,Y=g;y<Y;y++)(z=D[y])&&z.show()||(D[y]=f.text(0,0,"",u).css(t).attr({direction:B}));else for(y=g,Y+=1;y<Y;y++)D[y].hide();g=O*w<c.amrd?0:Fa((n-G)/w);t=g-c.alen;c.alen=g;D.wrap&&(D.rotate?(D._width=D.height,
D._height=x):(D._width=x,D._height=D.height));for(z=r.length;z--;){u=r[z];c.plotName=u.name||"";B=u.anchors;if(B.show&&t){L=B.attrs;y=0;for(Y=g;y<Y;y++)B[y]=B[y]&&B[y].show()||f.circle(L,u.anchorGroup);y=g;for(Y=B.length;y<Y;y++)B[y]&&B[y].hide()}this.drawPlotZoomlineGraphics(c,u.data,u.graphic,B,!z&&D,L,u.anchorGroup)}da.FC_DEV_ENVIRONMENT&&da.jQuery&&(FusionCharts["debugger"].enable()?(this.debug=this.debug||(da.jQuery("#fc-zoominfo").length||da.jQuery("body").append('<pre id="fc-zoominfo">'),da.jQuery("#fc-zoominfo").css({position:"absolute",
left:"10px",top:"0","pointer-events":"none",opacity:.7,width:"250px",zIndex:"999",border:"1px solid #cccccc","box-shadow":"1px 1px 3px #cccccc",background:"#ffffff"})),this.debug.text(JSON.stringify(c,0,2))):(this.debug&&da.jQuery("#fc-zoominfo").remove(),delete this.debug))},drawPlotZoomlineGraphics:function(b,c,f,g,w,D,t){var u=this.smartLabel,r=this.paper,B=this.numberFormatter,z=this.options.chart,L=z.useCrossline,y=z.showPeakData,n=z.maxPeakDataLimit,G=z.minPeakDataLimit,O=[],Y=!b.cnd,x=b.ddei,
S=b.clen,ia=b.step,da=b.lskip,na=b.ppp,ja=b.offset,ma=b.pvr,ka=this._visw,ra=this._visout,ga=this._lcmd,$,fa="M",la,ha,wa=w&&w[0],pa,qa,ta=g[0],sa={},va={},k,ua,T,xa=0,za,Aa,Ba,Ca=-b.norm,a=b.ddsi,m=0,d,e,p=z.tooltipSepChar,Da;wa&&(w.group.transform(["T",-ja,0]),Ba=w.wrap,pa=w._height,qa=w._width,Ba&&u.setStyle(w.css));w=function(a,b){var e=a&&a.length,d=Math.max.apply(Math,a),c=Math.min.apply(Math,a),f=0;if(d>n||c<G)for(;f<e;){c=a[f];if(c>n||c<G)d=b+f,Da(c,d,d,!0);f+=1}};for(Da=function(a,f,h,q){var n=
void 0,l=void 0,u=void 0;L||(e=d+p+B.yAxis(a),e=b.plotName&&b.plotName+p+e||e);za=xa/3+m;ua=h*na;$=ua-ja;if(void 0===(la=c[f])){if(Y)fa="M",k=ra,$=ua-ja,T=ra;else{if(0===za){for(n=f;0<n&&(--n,l=c[n],void 0===l););l&&(ua=n*na*-1,k=ra,O[xa++]=fa,O[xa++]=ua,O[xa++]=T=(l-b._yminValue)*ma,fa="L")}if(f===x){for(n=f;n<S&&(n+=1,u=c[n],void 0===u););u&&(ua=n*na,k=ra,O[xa++]=fa,O[xa++]=ua,O[xa++]=T=(u-b._yminValue)*ma,fa="L")}}m++}else O[xa++]=fa,O[xa++]=k=$=ua-ja,O[xa++]=T=(la-b._yminValue)*ma,fa="L";ta&&
(ta=ta.attr((sa.cx=k,sa.cy=T,sa)).next);q&&g.push(r.circle(D,t))};a<=x;a+=ia,Ca+=ia)d=this.getParsedLabel(a),Da(c[a],a,Ca),!wa||za%da||(Aa=wa.attrs,ha=d,$=0>$||$>ka?ra:ua,wa._prevtext===ha?delete va.text:va.text=wa._prevtext=ha,Aa[ga]===$?delete va[ga]:va[ga]=$,Ba&&ha&&(va.text=u.getSmartText(ha,qa,pa).text),wa=wa.attr(va).next),y&&1<ia&&(ha=Qa(a+1,x),Aa=Qa(ha+ia,x),Aa=Aa===x?c.slice(ha):c.slice(ha,Aa),w(Aa,ha));x>=S&&ta&&ta.attr((sa.cx=ra,sa.cy=ra,sa));f.attr("path",O);L||function(a,b,d){var c=d.plotName;
f.tooltipListenerAttached||(f.tooltipListenerAttached=!0,f.mousemove(function(d){var g=a._zoominfo,k=a._visx,m=g.step,p=g.ppp*m;d=Ua(a.container,d).chartX-k;var n,k=z.tooltipSepChar;d=(d+=p/2+g.offset)-d%p;n=(n=a.getValuePixel(d))+n%m;e=a.getParsedLabel(n)+k+B.yAxis(b[n]);e=c&&c+k+e||e;f.tooltip(e)}))}(this,c,b)},legendClick:function(b){var c=!b.visible,f=c?"show":"hide";b.group[f]();b.anchorGroup[f]();this.base.legendClick.apply(this,arguments);return b.visible=c},dispose:function(){var b;this.crossline&&
(this.crossline.dispose(),delete this.crossline);(b=this.elements.pintracker)&&(b.undrag(),delete this.elements.pintracker);delete this.zoomOutButton;delete this.resetButton;delete this.pinButton;this.xlabels&&(this.xlabels.length=0);delete this.xlabels;this.base.dispose.apply(this)}},Oa["renderer.cartesian"]);ua=function(b,c){var f=b.paper,g=b.options.chart,w=this.left=b._visx,D=this.width=b._visw,t=this.top=b.canvasTop,u=this.height=b.canvasHeight,r=this._visout=b._visout,B=this.plots=b.plots,z=
b.layers.dataset,L,y=c.labelstyle,n=c.valuestyle;L=this.group=f.group("crossline-labels",z).attr({transform:["T",w,b._ymin]});this.tracker=f.rect(w,t,D,u,z).attr({stroke:"none","stroke-width":0,fill:va}).toFront().mousedown(this.onMouseDown,this).mouseup(this.onMouseUp,this,!0).mouseout(this.onMouseOut,this).mousemove(this.onMouseMove,this);Ia&&this.tracker.touchstart(this.onMouseMove,this);this.container=b.container;this.line=f.path(void 0,z).attr(ta({path:["M",w,t,"l",0,u]},c.line)).toBack();w=
this.labels=c.valueEnabled&&f.set();c.labelEnabled&&(this.positionLabel=f.text(r,t+u+(g.scrollHeight||0)+2.5,"").insertAfter(b.xlabels.group.parent).css(y).attr({"vertical-align":"top",direction:g.textDirection,"text-bound":["rgba(255,255,255,1)","rgba(0,0,0,1)",1,2.5]}));this.hide();this.pixelRatio=b._ypvr;this.yminValue=b._yminValue;this.positionLabels=b.xlabels||{data:[],parsed:[]};this.getZoomInfo=function(){return b._zoominfo};this.getDataIndexFromPixel=function(c){return b.getValuePixel(c)};
this.getPositionLabel=function(c){return b.getParsedLabel(c)};if(c.valueEnabled){t=0;for(u=B.length;t<u;t++)y=B[t],y=y.graphic.attrs.stroke,w.push(f.text(0,r,"",L).css(n).attr({fill:y,direction:g.textDirection,"text-bound":["rgba(255,255,255,0.8)","rgba(0,0,0,0.2)",1,2.5]}));this.numberFormatter=b.numberFormatter}};ua.prototype.disable=function(b){void 0!==b&&(this.disabled=!!b)&&this.visible&&this.hide();return this.disabled};ua.prototype.onMouseOut=function(){this.hide()};ua.prototype.onMouseDown=
function(){!Ia&&this.hide();this._mouseIsDown=!0};ua.prototype.onMouseUp=function(){!Ia&&this.hide();delete this._mouseIsDown};ua.prototype.onMouseMove=function(b){if(!(this.disabled||this._mouseIsDown&&!Ia)){var c=this.getZoomInfo(),f=this.line,g=this.left,w=c.step,t=c.ppp*w;b=Ua(this.container,b).chartX-g;var z;b=(b+=t/2+c.offset)-b%t;z=(z=this.getDataIndexFromPixel(Fa(b)))+z%w;b-=c.offset;f.transform(["T",L(b),0]);this.hidden&&this.show();if(z!==this.position||this.hidden)this.position=z,this.lineX=
b,this.updateLabels()}};ua.prototype.updateLabels=function(){var b=this,c=b.labels,f=b.plots,g=b.width,w=b.position,t=b.lineX,z=L(t),u=b.pixelRatio,r=b.yminValue,B=b._visout,S=b.numberFormatter,da=function(){function c(){this.y=0;this.lRef=void 0;this.__index=this.__shift=0}function f(b){for(var c=0;c<b;)this.push(c++);return this}function g(b){var c,f,h,n,r=Number.POSITIVE_INFINITY;for(c=0;c<this.length;c++)f=this[c]-b,0>f?h=X.NEG:h=X.POS,f=L(f),f<=r&&(r=f,n={absValue:f,noScaleSide:h});return n}
function h(b){this.holes=f.call([],b)}var w=-1*b.height,x=r*u,t=0,z,D={},P,L=Math.abs,S=Math.floor,X={};"function"!=typeof Object.create&&(Object.create=function(){function b(){}var c=Object.prototype.hasOwnProperty;return function(f){var g,h,n;if("object"!=typeof f)throw new TypeError("Object prototype may only be an Object or null");b.prototype=f;n=new b;b.prototype=null;if(1<arguments.length)for(h in g=Object(arguments[1]),g)c.call(g,h)&&(n[h]=g[h]);return n}}());Array.prototype.indexOf||(Array.prototype.indexOf=
function(b,c){var f,g,h;if(null==this)throw new TypeError('"this" is null or not defined');g=Object(this);h=g.length>>>0;if(0===h)return-1;f=+c||0;Infinity===Math.abs(f)&&(f=0);if(f>=h)return-1;for(f=Math.max(0<=f?f:h-Math.abs(f),0);f<h;){if(f in g&&g[f]===b)return f;f++}return-1});Array.prototype.forEach||(Array.prototype.forEach=function(b,c){var f,g,h,n,r;if(null==this)throw new TypeError(" this is null or not defined");h=Object(this);n=h.length>>>0;if("function"!==typeof b)throw new TypeError(b+
" is not a function");1<arguments.length&&(f=c);for(g=0;g<n;)g in h&&(r=h[g],b.call(f,r,g,h)),g++});c.prototype.constructor=c;c.prototype.applyShift=function(b){this.__shift=b;this.lRef.calcY=this.y+=b*t};c.prototype.applyDirectIndex=function(b){this.__index=b;this.lRef.calcY=this.y=w-b*t*-1};try{Object.defineProperty(X,"POS",{enumerable:!1,configurable:!1,get:function(){return 1}}),Object.defineProperty(X,"NEG",{enumerable:!1,configurable:!1,get:function(){return-1}})}catch(ba){X.POS=1,X.NEG=-1}h.prototype=
Object.create(Array.prototype);h.prototype.constructor=h;h.prototype.repositionHoles=function(){var b,c=0,f;for(b=this.holes.length=0;b<this.length;b++)f=this[b],!f&&(this.holes[c++]=b)};h.prototype.attachShift=function(b,f,h){var n,r=this.length;if(b===B)h.calcY=B;else if(r=f>r-1?r-1:f,n=this[r],f=new c,f.y=b,f.lRef=h,n){b=g.call(this.holes,r);h=r+b.absValue*b.noScaleSide;if(b.noScaleSide===X.POS)return f.applyDirectIndex(h),this.splice(h,1,f),this.holes.splice(this.holes.indexOf(h),1),h;if(b.noScaleSide===
X.NEG){b=this.splice(h+1,this.length-1);this.pop();b.forEach(function(b){b&&b.applyShift(-1)});for([].push.apply(this,b);this[h];)h++;this.push(0);this.repositionHoles();b=g.call(this.holes,h);h+=b.absValue*b.noScaleSide;f.applyDirectIndex(h);this.splice(h,1,f);this.repositionHoles();return this.length-1}}else f.applyDirectIndex(r),this.splice(r,1,f),this.holes.splice(this.holes.indexOf(r),1)};try{Object.defineProperty(D,"top",{enumerable:!1,configurable:!1,get:function(){return w}}),Object.defineProperty(D,
"bottom",{enumerable:!1,configurable:!1,get:function(){return x}})}catch(da){D.top=w,D.bottom=x}D.init=function(b,c){var f;t=b+2;w+=t/2;P=S(L(w)/t);z=new h(P);for(f=0;f<P;f++)z.push(0)};D.occupy=function(b,c){var f=S(L(w-b)/t);z.attachShift(b,f,c)};return D}();c&&(c[0].attr({text:S.yAxis("0")}),da.init(c[0].getBBox().height,c.length),c.forEach(function(b,c){var g=f[c],t=g.data[w];da.occupy(void 0!==t&&g.visible?(t-r)*u:B,b)}));c&&c.forEach(function(b,c){var r;b.attr({text:S.yAxis(f[c].data[w])});
r=.5*b.getBBox().width+10;b.attr({x:Pa(0,Qa(z,g)),y:b.calcY,"text-anchor":t<=r&&"start"||t+r>=g&&"end"||"middle"})});b.positionLabel&&b.positionLabel.attr({x:t+b.left,text:b.getPositionLabel(w)})};ua.prototype.show=function(){this.disabled||(this.hidden=!1,this.group.attr("visibility","visible"),this.line.attr("visibility","visible"),this.positionLabel&&this.positionLabel.attr("visibility","visible"))};ua.prototype.hide=function(){this.hidden=!0;this.group.attr("visibility","hidden");this.line.attr("visibility",
"hidden");this.positionLabel&&this.positionLabel.attr("visibility","hidden")};ua.prototype.dispose=function(){for(var b in this)this.hasOwnProperty(b)&&delete this[b]};f.addSymbol({pinModeIcon:function(b,c,f){var g=.5*f,w=b-f,t=b+f,z=b-g,u=b+g,r=b+.5,B=r+1,L=r+1.5,S=c-f,y=c+g,n=c-g,g=c+(f-g);return["M",w,S,"L",z,n,z,g,w,y,b-.5,y,b,c+f+.5,r,y,t,y,u,g,u,n,t,S,L,S,L,n,L,g,B,g,B,n,L,n,L,S,"Z"]},zoomOutIcon:function(b,c,g){b-=.2*g;c-=.2*g;var t=.8*g,w=f.rad(43),z=f.rad(48),L=b+t*qa(w),w=c+t*za(w),u=b+
t*qa(z),z=c+t*za(z),r=f.rad(45),B=L+g*qa(r),S=w+g*za(r),da=u+g*qa(r);g=z+g*za(r);return["M",L,w,"A",t,t,0,1,0,u,z,"Z","M",L+1,w+1,"L",B,S,da,g,u+1,z+1,"Z","M",b-2,c,"L",b+2,c,"Z"]},resetIcon:function(b,c,f){var g=b-f,t=(Ca.PI/2+Ca.PI)/2;b+=f*qa(t);var t=c+f*za(t),z=2*f/3;return["M",g,c,"A",f,f,0,1,1,b,t,"L",b+z,t-1,b+2,t+z-.5,b,t]}})}]);
/*
 FusionCharts JavaScript Library - Gantt Chart
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.9.0
*/
FusionCharts.register("module",["private","modules.renderer.js-gantt",function(){var V=this,J=V.hcLib,Oa=V.window,ua=/msie/i.test(Oa.navigator.userAgent)&&!Oa.opera,rb=J.chartAPI,Pa=J.chartAPI,Qa=J.extend2,e=J.pluck,c=J.pluckNumber,pa=J.getFirstColor,Ja=J.graphics,ca=Ja.convertColor,fb=Ja.getDarkColor,hc=Ja.parseColor,Ca=J.parseUnsafeString,Ea=J.getFirstValue,Zb=J.getValidValue,ka=J.Raphael,ic=J.COMMASTRING,Ka=J.setLineHeight,Eb=J.getDashStyle,Fb=J.toRaphaelColor,Ra=J.each,jc=J.FC_CONFIG_STRING,La=
"rgba(192,192,192,"+(ua?.002:1E-6)+")",$b=Ja.mapSymbolName,ua=Math,Ma=ua.ceil,va=ua.round,fa=ua.max,Da=ua.min,ac=ua.abs,Sa=parseInt,Gb=parseFloat,kc={pageX:0,pageY:0},Y=J.plotEventHandler,na,W,sb=J.hasTouch=void 0!==Oa.document.documentElement.ontouchstart,lc=J.addEvent,mc=J.removeEvent,Ta=function(b){return void 0!==b&&null!==b},Ua={left:"start",right:"end",center:"middle"},gb={left:0,right:1,center:.5,undefined:.5},tb={top:1,bottom:0,middle:.5,undefined:.5},Va={left:5,right:-5,center:0,undefined:0},
Fa=function(b,a){this.min=b.min;this.max=c(b.visibleMax,b.max);this.pixelValueRatio=a/(this.max-this.min);this.startPixel=b.chart.marginLeft+b.chart.ganttStartX};Fa.prototype={getPixel:function(b){return this.startPixel+(b-this.min)*this.pixelValueRatio}};Fa.prototype.constructor=Fa;rb("gantt",{friendlyName:"Gantt Chart",rendererId:"gantt",standaloneInit:!0,defaultSeriesType:"gantt",canvasborderthickness:1,defaultPlotShadow:1,creditLabel:!1,fireGroupEvent:!0,defaultPaletteOptions:function(){var b=
arguments;return J.extend2(J.extend2(J.extend2(J.extend2({},b[0]),b[1]),b[2]),b[3])}(Qa({},J.defaultGaugePaletteOptions),{paletteColors:["AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),
"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" "),"AFD8F8 F6BD0F 8BBA00 FF8E46 008E8E D64646 8E468E 588526 B3AA00 008ED6 9D080D A186BE CC6600 FDC689 ABA000 F26D7D FFF200 0054A6 F7941C CC3300 006600 663300 6DCFF6".split(" ")],bgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],bgAngle:[270,270,270,270,270],bgRatio:["100","100","100","100","100"],bgAlpha:["100","100","100",
"100","100"],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],gridColor:["DDDDDD","D8DCC5","99C4CD","DEC49C","FEC1D0"],gridResizeBarColor:["999999","545454","415D6F","845001","D55979"],categoryBgColor:["F1F1F1","EEF0E6","F2F8F9","F7F0E6","FFF4F8"],dataTableBgColor:["F1F1F1","EEF0E6",
"F2F8F9","F7F0E6","FFF4F8"],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:["666666","545454","415D6F","845001","D55979"],plotBorderColor:["999999","8A8A8A","6BA9B6","C1934D","FC819F"],plotFillColor:["EEEEEE",
"D8DCC5","BCD8DE","E9D8BE","FEDAE3"],scrollBarColor:["EEEEEE","D8DCC5","99C4CD","DEC49C","FEC1D0"]}),charttopmargin:10,chartbottommargin:20,series:function(){var b=this.dataObj,a=b.chart,H=(H=b.categories)||[],d=H.length,q=this.hcJSON,k=q.chart,m=q[jc],y=this.smartLabel,f=this.colorManager,g=q.categories={},v=[],p=this.inCanvasStyle,s=this.numberFormatter,C=Infinity,l=-Infinity,t=k.origW-k.marginLeft-k.marginRight,D=k.origH-k.marginTop-k.marginBottom,n=b.processes||{},h=n&&n.process,x=h&&h.length,
w=Sa(p.fontSize,10),O=b.datatable,T=O&&O.datacolumn,F=T&&T.length,ea=b.connectors,L=ea&&ea.length,M=q.connectors=[],N=b.milestones&&b.milestones.milestone,B=N&&N.length,Z=q.milestone=[],G=b.tasks,$=G&&G.task,K=$&&$.length,u=0,r=0,bc=c(a.forceganttwidthpercent,0),aa=0,Y=0,W=!1,ka={top:"top",bottom:"bottom"},A={top:"top",bottom:"bottom",undefined:"middle"},R={right:"right",left:"left"},ba={right:"right",left:"left",undefined:"center"},E=q.dataTable={},hb=Infinity,ib=-Infinity,na=q.processIDMap=[],V,
ua,Ma=c(a.dateintooltip,1),Ja=b.legend&&b.legend.item,Fa=q.tasksMap||(q.tasksMap={}),Oa=0,Pa=0,ub,za,Hb,Ib,jb,vb,Ra,Jb,Kb,qa,wa,Aa,Ua,gb,Va,Qb,wb,rb,xa,oa,kb,Q,Lb,Wa,Xa,Mb,Nb,Ba,la,ma,Ya,Za,$a,lb,ab,bb,Ga,Ha,ga,sb,Rb,ha,ia,da,mb,nb,cb,U,I,Sb,db,xb,Ia,yb,Tb,Ob,ob,Ub,zb,Ab,Bb,Cb,Db,Pb,pb,tb,cc,dc,ec,Na,S,fc,sa,P,ya,ra,qb,ja,Vb,Wb,Xb,Yb,ta,eb,gc,z,X;if(x){q.tasks=[];delete q.yAxis;delete q.xAxis;k.backgroundColor=ca(e(a.bgcolor,"FFFFFF"),e(a.bgalpha,f.getColor("bgAlpha")));c(a.showborder,0)||(k.borderWidth=
0);k.plotBorderColor=ca(e(a.canvasbordercolor,f.getColor("canvasBorderColor")),0===c(a.showcanvasborder,1)?0:e(a.canvasborderalpha,100));k.backgroundColor={FCcolor:{color:e(a.bgcolor,"FFFFFF"),alpha:e(a.bgalpha,f.getColor("bgAlpha")),angle:e(a.bgangle,f.getColor("bgAngle")),ratio:e(a.bgratio,f.getColor("bgRatio"))}};k.plotBackgroundColor={FCcolor:{color:e(a.canvasbgcolor,f.getColor("canvasBgColor")),alpha:e(a.canvasbgalpha,f.getColor("canvasBgAlpha")),angle:e(a.canvasbgangle,f.getColor("canvasBgAngle")),
ratio:e(a.canvasbgratio,f.getColor("canvasBgRatio"))}};k.plotBorderWidth=c(a.canvasborderthickness,1);k.outputDateFormat=e(a.outputdateformat,k.dateFormat);k.extendCategoryBg=c(a.extendcategorybg,0);k.ganttLineColor=ca(e(a.ganttlinecolor,f.getColor("gridColor")),c(a.ganttlinealpha,100));k.ganttLineThickness=c(a.ganttlinethickness,1);k.ganttLineDashStyle=c(a.ganttlinedashed,0)?Eb(c(a.ganttlinedashlen,1),a.ganttlinedashgap,k.ganttLineThickness):"none";k.gridBorderColor=ca(e(a.gridbordercolor,f.getColor("gridColor")),
c(a.gridborderalpha,100));k.gridBorderThickness=c(a.gridborderthickness,1);k.gridBorderDashStyle=c(a.gridborderdashed,0)?Eb(c(a.gridborderdashlen,1),a.gridborderdashgap,k.gridborderThickness):"none";k.showSlackAsFill=c(a.showslackasfill,1);k.slackFillColor=pa(e(a.slackfillcolor,"FF5E5E"));k.gridResizeBarColor=ca(e(a.gridresizebarcolor,f.getColor("gridResizeBarColor")),c(a.gridresizebaralpha,100));k.gridResizeBarThickness=c(a.gridresizebarthickness,1);k.taskBarRoundRadius=c(a.taskbarroundradius,0);
k.taskBarFillMix=a.taskbarfillmix;k.taskBarFillRatio=a.taskbarfillratio;void 0===k.taskBarFillMix&&(k.taskBarFillMix="{light-10},{dark-20},{light-50},{light-85}");void 0===k.taskBarFillRatio&&(k.taskBarFillRatio="0,8,84,8");k.connectorExtension=c(a.connectorextension,10);k.clickURL=e(a.clickurl,"");k.annRenderDelay=a.annrenderdelay;k.taskDatePadding=c(a.taskdatepadding,3);k.taskLabelPadding=c(a.tasklabelspadding,2);k.ganttStartX=c(a.ganttwidthpercent,65);100<k.ganttStartX&&(k.ganttStartX=100);Aa=
k.ganttStartX=.01*(100-k.ganttStartX)*t;k.gridWidth=t-k.ganttStartX;gc=c(a.showfulldatatable,1);cb=n.width;cb=c(k.ganttStartX*(/\%/g.test(cb)&&.01*Gb(cb,10))||cb);Aa-=c(cb,0);V=va(cb);Y+=1;for(z=0;z<F;z+=1)Jb=T[z].width,Kb=c(k.ganttStartX*(/\%/g.test(Jb)&&.01*Gb(Jb,10))||Jb),Aa-=c(Kb,0),Kb=T[z].width=va(Kb),Y+=1;0<=Aa?Aa/=Y:(W=!0,Aa=k.ganttStartX/Y);if(bc||!gc)for((isNaN(V)||W)&&(V=Aa),z=0;z<F;z+=1)(isNaN(T[z].width)||W)&&(T[z].width=Aa);for(z=0;z<d;z+=1){ia=H[z];C=Infinity;l=-Infinity;mb=e(ia.bgcolor,
f.getColor("categoryBgColor"));nb=c(ia.bgalpha,100);Ya=e(ia.font,p.fontFamily);Za=c(ia.fontsize,w+1);$a=e(ia.fontcolor,p.color);lb=c(ia.isbold,1);ab=c(ia.isitalic,0);bb=c(ia.isunderline,0);c(ia.verticalpadding,3);Ga=e(ia.align,"center").toLowerCase();Ha=e(ia.valign,"middle").toLowerCase();sb=(Rb=ia.category)&&Rb.length;Na=0;ja={};for(X=0;X<sb;X+=1)ha=Rb[X],la=s.getDateValue(ha.start).ms,ma=s.getDateValue(ha.end).ms,isNaN(la)&&(la=void 0),la>l&&(l=la),la<=C&&(C=la),isNaN(ma)&&(ma=void 0),ma>l&&(l=
ma),ma<=C&&(C=ma),ga=Ca(e(ha.label,ha.name)),S={color:pa(e(ha.fontcolor,$a)),fontFamily:e(ha.font,Ya),fontSize:c(ha.fontsize,Za)+"px",fontWeight:c(ha.isbold,lb)&&"bold"||"normal",fontStyle:c(ha.isitalic,ab)&&"italic"||"normal",textDecoration:c(ha.isunderline,bb)&&"underline"||"none"},Ka(S),y.setStyle(S),qa=y.getOriSize(ga),Na=fa(Na,qa.height),P="FCCAT_"+z+"_"+X,Hb=e(ha.hoverbandcolor,ia.hoverbandcolor,a.categoryhoverbandcolor,a.hoverbandcolor,f.getColor("gridColor")),Ib=c(ha.hoverbandalpha,ia.hoverbandalpha,
a.categoryhoverbandalpha,a.hoverbandalpha,30),jb=c(ha.showhoverband,ia.showhoverband,a.showcategoryhoverband,a.showhoverband,a.showhovereffect,1),g[P]={text:ga,style:S,start:la,end:ma,index:X,isLast:z===d-1,bgColor:ca(e(ha.bgcolor,mb),c(ha.bgalpha,nb)),dimension:ja,link:ha.link,align:ba[[e(ha.align,Ga).toLowerCase()]],vAlign:A[ka[e(ha.valign,Ha).toLowerCase()]],hoverColor:ca(Hb,Ib),useHover:jb,usePlotHover:c(ha.showganttpanehoverband,ia.showganttpanehoverband,a.showganttpaneverticalhoverband,jb)},
g[ya]&&(g[ya].nextCol=g[P],g[P].prevCol=g[ya]),ya=P;if(xb=g["FCCAT_"+z+"_0"])g[P].first=xb,xb.last=g[P],g[db]&&(g[db].nextRow=xb,xb.prevRow=g[db]);db=P;ja.h=Na+5+2*c(ia.verticalpadding,3);ja.y=r;ja.min=C;ja.max=l;ja.numCat=X;r+=ja.h;ib=fa(ib,l);hb=Da(hb,C)}g.min=hb;g.max=ib;if(x){Na=wa=0;eb="right"===e(n.positioningrid,"left").toLowerCase();S={color:pa(e(n.headerfontcolor,p.color)),fontFamily:e(n.headerfont,p.fontFamily),fontSize:c(n.headerfontsize,w+3)+"px",fontWeight:c(n.headerisbold,1)&&"bold"||
"normal",fontStyle:c(n.headerisitalic,0)&&"italic"||"normal",textDecoration:c(n.headerisunderline,0)&&"underline"||"none"};Ka(S);ga=Ca(n.headertext);y.setStyle(S);qa=y.getOriSize(ga);wa=fa(wa,qa.width);Ga=ba[R[e(n.headeralign,"center").toLowerCase()]];Ha=A[ka[e(n.headervalign,"middle").toLowerCase()]];ja={};P=ra=db="processHeader";E.processHeader={text:ga,style:S,align:Ga,vAlign:Ha,isHeader:!0,link:e(n.headerlink),dimension:{x:0,w:0,h:fa(qa.height,r)},bgColor:ca(e(n.headerbgcolor,f.getColor("dataTableBgColor")),
c(n.headerbgalpha,100)),key:P,isLast:eb,drawResizer:!eb&&F,prevCol:null,nextCol:null,prevRow:null,nextRow:null};mb=e(n.bgcolor,f.getColor("dataTableBgColor"));nb=c(n.bgalpha,100);Ya=e(n.font,p.fontFamily);Za=c(n.fontsize,w);$a=e(n.fontcolor,p.color);lb=c(n.isbold,0);ab=c(n.isitalic,0);bb=c(n.isunderline,0);Ga=e(n.align,"center").toLowerCase();Ha=e(n.valign,"middle").toLowerCase();for(z=0;z<x;z+=1)da=h[z],Hb=e(da.hoverbandcolor,n.hoverbandcolor,a.processhoverbandcolor,a.hoverbandcolor,f.getColor("gridColor")),
Ib=c(da.hoverbandalpha,n.hoverbandalpha,a.processhoverbandalpha,a.hoverbandalpha,30),jb=c(da.showhoverband,n.showhoverband,a.showprocesshoverband,a.showhoverband,a.showhovereffect,1),S={color:pa(e(da.fontcolor,$a)),fontSize:c(da.fontsize,Za)+"px",fontFamily:e(da.font,Ya),fontWeight:c(da.isbold,lb)&&"bold"||"normal",fontStyle:c(da.isitalic,ab)&&"italic"||"normal",textDecoration:c(da.isunderline,bb)&&"underline"||"none"},Ka(S),ga=Ca(e(da.label,da.name)),y.setStyle(S),qa=y.getOriSize(ga),Na=fa(Na,qa.height),
wa=fa(wa,qa.width),ya=P,P=e(da.id,"__FCDPID__"+z).toUpperCase(),E[P]&&(P="__FCDPID__"+z),na[z]=P,Ta(ub=c(da.height,a.rowheight))&&(ub=ac(ub),Oa+=ub||0,Pa+=1),E[P]={text:qa.text,style:S,link:da.link,id:P,processHeight:ub,labelHeight:qa.height,align:ba[[e(da.align,Ga).toLowerCase()]],vAlign:A[ka[e(da.valign,Ha).toLowerCase()]],bgColor:ca(e(da.bgcolor,mb),c(da.bgalpha,nb)),prevCol:E[ya],dimension:{},hoverColor:ca(Hb,Ib),useHover:jb,usePlotHover:c(da.showganttpanehoverband,n.showganttpanehoverband,a.showganttpanehorizontalhoverband,
jb),isLast:eb,nextCol:null,prevRow:null,nextRow:null},E[ya]&&(E[ya].nextCol=E[P]);E[P].first=E[ra];E[ra].last=E[P];E[ra].processCount=x;E[ra].countDefinedHeight=Pa;E[ra].totalHeight=Oa;ua=E[ra].maxProcessHeight=Na+8;isNaN(V)&&(V=wa+10);aa+=V;ja.x=0;E[ra].dimension.w=ja.w=V;ja.h=ua=fa((D-E[ra].dimension.h)/x,ua)}eb&&(aa=0);if(F)for(q.datacolumns=[],z=0;z<F;z+=1){U=T[z];wa=0;mb=pa(e(U.bgcolor,O.bgcolor,f.getColor("dataTableBgColor")));nb=c(U.bgalpha,O.bgalpha,100);Ya=e(U.font,O.font,p.fontFamily);$a=
pa(e(U.fontcolor,O.fontcolor,p.color));Za=c(U.fontsize,O.fontsize,w);lb=c(U.isbold,O.isbold,0);ab=c(U.isitalic,O.isitalic,0);bb=c(U.isunderline,O.isunderline,0);Ga=ba[R[e(U.align,O.align,"center").toLowerCase()]];Ha=A[ka[e(U.valign,O.valign,"middle").toLowerCase()]];S={color:pa(e(U.headerfontcolor,O.headerfontcolor,$a)),fontFamily:e(U.headerfont,O.headerfont,Ya),fontSize:c(U.headerfontsize,O.headerfontsize,Za+3)+"px",fontWeight:c(U.headerisbold,O.headerisbold,1)&&"bold"||"normal",fontStyle:c(U.headerisitalic,
O.headerisitalic,ab)&&"italic"||"normal",textDecoration:c(U.headerisunderline,O.headerisunderline,bb)&&"underline"||"none"};Ka(S);ga=Ca(U.headertext);y.setStyle(S);qa=y.getOriSize(ga);wa=fa(wa,qa.width);P=ra="_FCDtHeader_"+z;kb=E[P]={text:ga,style:S,align:ba[R[e(U.headeralign,O.headeralign,Ga).toLowerCase()]],vAlign:A[ka[e(U.headervalign,O.headervalign,Ha).toLowerCase()]],link:e(U.headerlink),drawResizer:eb||z<F-1,dimension:{x:0+aa,w:U.width,h:E.processHeader&&E.processHeader.dimension.h},isHeader:!0,
key:P,bgColor:ca(e(U.headerbgcolor,O.headerbgcolor,f.getColor("dataTableBgColor")),c(U.headerbgalpha,O.headerbgalpha,100))};kb.data=[];fc=U.text||[];qb=E.processHeader;Ia=E[db];Ia.nextRow=E[P];E[P].prevRow=Ia;qb=qb.nextCol;Ia=Ia.nextCol;ja={};db=ra;for(X=0;qb;qb=qb.nextCol,Ia=Ia.nextCol,X+=1)ya=P,P="_FCDt_"+z+"_"+X,(sa=fc[X])?(S={fontFamily:e(sa.font,Ya),color:pa(e(sa.fontcolor,$a)),fontSize:c(sa.fontsize,Za)+"px",fontWeight:c(sa.isbold,lb)&&"bold"||"normal",fontStyle:c(sa.isitalic,ab)&&"italic"||
"normal",textDecoration:c(sa.isunderline,bb)&&"underline"||"none"},Ka(S),y.setStyle(S),ga=Ca(sa.label),qa=y.getOriSize(ga),wa=fa(wa,qa.width),E[P]={text:ga,style:S,link:e(sa.link,""),bgColor:ca(e(sa.bgcolor,mb),c(sa.bgalpha,nb)),align:ba[R[e(sa.align,Ga).toLowerCase()]],vAlign:A[ka[e(sa.valign,Ha).toLowerCase()]],prevCol:E[ya],dimension:ja,nextCol:null,nextRow:null,prevRow:null}):E[P]={prevCol:E[ya],dimension:ja,isNaN:!0,nextCol:null,nextRow:null,prevRow:null},E[ya].nextCol=E[P],E[P].prevRow=Ia,Ia.nextRow=
E[P],E[P].hoverColor=E[na[X]].hoverColor,E[P].useHover=E[na[X]].useHover,E[P].usePlotHover=E[na[X]].usePlotHover;E[P].first=E[ra];E[ra].last=E[P];isNaN(U.width)?kb.width=wa+10:kb.width=U.width;ja.x=0+aa;aa+=E[ra].dimension.w=ja.w=kb.width;ja.h=ua;q.datacolumns.push(kb)}eb&&(da=E.processHeader,da.dimension.x=da.nextCol.dimension.x=aa,aa+=V);bc||(k.ganttStartX=Da(k.ganttStartX,aa));k.totalGridWidth=aa;Wb=b.trendlines||{};q.trendlines=[];for(z=0;z<Wb.length;z+=1)for(B=(Xb=Wb[z].line)&&Xb.length,X=0;X<
B;X+=1)ta=Xb[X],Yb=c(ta.istrendzone,0),Ba=e(ta.color,f.getColor("legendBorderColor")),S=Qa({},m.trendStyle),S.color=ca(Ba),Ka(S),q.trendlines.push({start:s.getDateValue(ta.start).ms,end:s.getDateValue(ta.end).ms,displayValue:Ca(e(ta.displayvalue,ta.start)),color:ca(Ba,c(ta.alpha,Yb?40:99)),style:S,isTrendZone:Yb,dashedStyle:c(ta.dashed,0)?Eb(c(ta.dashlen,3),c(ta.dashgap,3),c(ta.thickness,1)):"none",thickness:c(ta.thickness,1)});if(K){C=Infinity;l=-Infinity;c(a.taskbarroundradius,0);Xa=a.taskbarfillmix;
Mb=a.taskbarfillratio;void 0===Xa&&(Xa="{light-10},{dark-20},{light-50},{light-85}");void 0===Mb&&(Mb="0,8,84,8");k.shadow=c(a.showshadow,1);Ra=c(a.showslackasfill,1);for(z=0;z<K;z+=1)I=$[z],Sb=u%x,la=s.getDateValue(I.start).ms,ma=s.getDateValue(I.end).ms,P=e(E[Ea(I.processid,"").toUpperCase()],E["__FCDPID__"+Sb],E[na[Sb]]).id.toUpperCase(),yb=c(I.alpha,G.alpha,100),Ba=e(I.color,G.color,f.getColor("plotFillColor")),Ob=c(I.borderalpha,G.borderalpha,100),Tb=e(I.bordercolor,G.bordercolor,f.getColor("plotBorderColor")),
isNaN(la)&&(la=void 0),la>l&&(l=la),la<=C&&(C=la),isNaN(ma)&&(ma=void 0),ma>l&&(l=ma),ma<=C&&(C=ma),S={color:pa(e(I.fontcolor,G.fontcolor,p.color)),fontSize:c(I.fontsize,G.fontsize,w)+"px",fontFamily:e(I.font,G.font,p.fontFamily)},Ka(S),u+=1,ob=f.parseColorMix(Ba,Xa),Ub=f.parseAlphaList(yb.toString(),ob.length),zb=f.parseRatioList(Mb,ob.length),Ab=c(I.angle,G.angle,270),Pb=f.parseColorMix(e(I.slackfillcolor,G.slackfillcolor,a.slackfillcolor,"FF5E5E"),Xa),pb=Da(c(I.percentcomplete,-1),100),ga=Ea(e(I.label,
I.name),""),Db="",c(I.showlabel,I.showname,G.showlabels,G.showname,a.showtasklabels,a.showtasknames,0)&&(Db=ga),c(I.showpercentlabel,G.showpercentlabel,a.showpercentlabel,0)&&-1!==pb&&(Db+=" "+pb+"%"),tb={FCcolor:{color:ob.join(),alpha:Ub,ratio:zb,angle:Ab}},Pb=Ra?{FCcolor:{color:Pb.join(),alpha:Ub,ratio:zb,angle:Ab}}:La,cc={FCcolor:{color:f.parseColorMix(e(I.hoverfillcolor,G.hoverfillcolor,a.taskhoverfillcolor,fb(Ba,80)),Xa).join(),alpha:f.parseAlphaList(e(I.hoverfillalpha,G.hoverfillalpha,a.taskhoverfillalpha,
yb).toString(),ob.length),ratio:zb,angle:Ab}},dc=ca(e(I.hoverbordercolor,G.hoverbordercolor,a.taskhoverbordercolor,fb(Tb,80)),e(I.hoverborderalpha,G.hoverborderalpha,a.taskhoverborderalpha,Ob)),ec=Ra?{FCcolor:{color:f.parseColorMix(fb(e(I.slackhoverfillcolor,G.slackhoverfillcolor,a.slackhoverfillcolor,a.slackfillcolor,"FF5E5E"),80),Xa).join(),alpha:f.parseAlphaList(e(I.slackhoverfillalpha,G.slackhoverfillalpha,a.slackhoverfillalpha,yb).toString(),ob.length),ratio:zb,angle:Ab}}:La,Bb=s.getFormattedDate(la),
Cb=s.getFormattedDate(ma),za=Zb(Ca(e(I.tooltext,I.hovertext,G.plottooltext,m.tooltext))),za=void 0!==za?J.parseTooltext(za,[3,28,29,30,31],{end:Cb,start:Bb,label:ga,percentComplete:-1!==pb?s.percentValue(pb):"",processName:E[P]&&E[P].text},I):(""!==ga?ga+(Ma?", ":""):"")+(Ma?Bb+" - "+Cb:""),Wa=Ea(I.id,"").toUpperCase(),Fa[Ea(Wa,z)]={dataObj:{processId:P,label:Db,labelAlign:ba[[e(I.labelalign,a.tasklabelsalign,"center").toLowerCase()]],link:I.link,start:la,end:ma,id:Ea(I.id,"").toUpperCase(),showAsGroup:c(I.showasgroup,
0),animation:c(I.animation,a.animation,a.defaultanimation,1),style:S,percentComplete:pb,color:Fb(tb),slackColor:Fb(Pb),hoverFillColor:Fb(cc),hoverBorderColor:dc,slackHoverColor:Fb(ec),showHoverEffect:c(I.showhovereffect,G.showhovereffect,a.showtaskhovereffect,a.showhovereffect,1),shadow:{opacity:fa(yb,Ob)/100,inverted:!0},borderColor:ca(Tb,Ob),borderThickness:c(I.showborder,G.showborder,1)?c(I.borderthickness,G.borderthickness,1):0,height:e(I.height,"35%"),topPadding:e(I.toppadding,"35%"),showPercentLabel:c(I.showpercentlabel,
G.showpercentlabel,a.showpercentlabel,0),startDate:c(I.showstartdate,G.showstartdate,a.showtaskstartdate)?Bb:void 0,endDate:c(I.showenddate,G.showenddate,a.showtaskenddate)?Cb:void 0,toolText:za,_start:I.start,_end:I.end,_formatSDate:Bb,_formatEDate:Cb,_label:ga}},v.push(Fa[Ea(Wa,z)].dataObj);ib=fa(ib,l);hb=Da(hb,C)}q.series.push({showInLegend:!1,data:v});B=N&&N.length;for(z=0;z<B;z+=1)Q=N[z],Wa=Ea(Q.taskid,"").toUpperCase(),Nb=e(Q.shape,"polygon").toLowerCase(),Lb=c(Q.numsides,5),Vb=0,"star"===Nb?
Vb=.4:(Nb=$b(Lb),Nb=$b(Lb).split("-")[0]),Ba=e(Q.color,f.getColor("legendBorderColor")),za=Zb(Ca(e(Q.tooltext,Q.hovertext,a.milestonetooltext))),void 0!==za&&Fa[Wa]?(I=Fa[Wa].dataObj,za=J.parseTooltext(za,[28,32,33,34,35,36],{date:s.getFormattedDate(Q.date),taskStartDate:I._formatSDate,taskEndDate:I._formatEDate,taskLabel:I._label,taskPercentComplete:-1!==I.percentComplete?s.percentValue(I.percentComplete):"",processName:E[I.processId]&&E[I.processId].text},Q)):za=s.getFormattedDate(Q.date),S={color:pa(e(Q.fontcolor,
a.milestonefontcolor,p.color)),fontSize:c(Q.fontsize,a.milestonefontsize,w)+"px",fontFamily:e(Q.font,a.milestonefont,p.fontFamily),fontWeight:c(Q.fontbold,a.milestonefontbold,0)&&"bold"||"normal",fontStyle:c(Q.fontitalic,a.milestonefontitalic,0)&&"italic"||"normal"},Ka(S),Z.push({numSides:Lb,startAngle:c(Q.startangle,90),radius:Q.radius,origDate:Q.date,date:s.getDateValue(Q.date),fillColor:pa(Ba),fillAlpha:.01*c(Q.fillalpha,Q.alpha,100),borderColor:pa(e(Q.bordercolor,Ba)),borderAlpha:.01*c(Q.borderalpha,
Q.alpha,100),displayValue:Ca(Q.label),style:S,hoverFillColor:pa(e(Q.hoverfillcolor,a.milestonehoverfillcolor,fb(Ba,80))),hoverFillAlpha:.01*c(Q.hoverfillalpha,a.milestonehoverfillalpha,Q.fillalpha,Q.alpha,100),hoverBorderColor:pa(e(Q.hoverbordercolor,a.milestonehoverbordercolor,fb(e(Q.bordercolor,Ba),80))),hoverBorderAlpha:.01*c(Q.hoverborderalpha,a.milestonehoverborderalpha,Q.borderalpha,Q.alpha,100),showHoverEffect:c(Q.showhovereffect,a.showmilestonehovereffect,a.showhovereffect,1),depth:Vb,taskId:Wa,
borderThickness:c(Q.borderthickness,1),link:Q.link,toolText:za});for(z=0;z<L;z+=1)if(gb=(Ua=(xa=ea[z])&&xa.connector)&&Ua.length)for(X=0;X<gb;X+=1)oa=Ua[X],Va=e(oa.color,xa.color,f.getColor("plotBorderColor")),Qb=c(oa.alpha,xa.alpha,100),wb=c(oa.thickness,xa.thickness,1),rb=c(oa.isdashed,xa.isdashed,1),M.push({fromTaskId:Ea(oa.fromtaskid,"").toUpperCase(),toTaskId:Ea(oa.totaskid,"").toUpperCase(),fromTaskConnectStart:c(oa.fromtaskconnectstart,0),toTaskConnectStart:c(oa.totaskconnectstart,1),color:ca(Va),
alpha:.01*Qb,link:oa.link,showHoverEffect:c(oa.showhovereffect,xa.showhovereffect,a.showconnectorhovereffect,a.showhovereffect,1),hoverColor:ca(e(oa.hovercolor,xa.hovercolor,a.connectorhovercolor,fb(Va,80)),c(oa.hoveralpha,xa.hoveralpha,a.connectorhoveralpha,Qb)),hoverThickness:c(oa.hoverthickness,xa.hoverthickness,a.connectorhoverthickness,wb),thickness:wb,dashedStyle:rb?Eb(c(oa.dashlen,xa.dashlen,5),c(oa.dashgap,xa.dashgap,wb),wb):"none"});q.legend.enabled=Boolean(c(a.showlegend,1));q.legend.interactiveLegend=
!1;q.legend.itemStyle.cursor="default";q.legend.itemHoverStyle={cursor:"inherit"};B=Ja&&Ja.length;for(z=0;z<B;z+=1)vb=Ja[z],Ta(vb.label)&&""!==vb.label&&q.series.push({name:Ca(vb.label),showInLegend:!0,type:!1,color:hc(e(vb.color,f.getPlotColor()))});q.max=ib;q.min=hb;q.chart.hasScroll=!0;return q}},spaceManager:function(b,a,H,d){this.titleSpaceManager(b,a,H,.3*d);var q=this.numberFormatter,k=b.chart,m=a.chart,y=b.dataTable,f=b.categories,g=b.scrollOptions={},v=y.__scrollOptions={},p=y.processHeader;
d=d-k.marginTop-k.marginBottom;H=H-k.marginLeft-k.marginRight;var s=k.totalGridWidth,C=b.verticalScroll={enabled:c(m.useverticalscrolling,1)},l=c(m.ganttpaneduration,-1),t=e(m.ganttpanedurationunit,"s").toLowerCase(),D=q.getDateValue(m.scrolltodate).ms,n=p&&p.maxProcessHeight,h,x,q=0;if(p){h=p.processCount-p.countDefinedHeight;b.legend.enabled&&(d-=this.placeLegendBlockBottom(b,a,H,d/2));d-=p.dimension.h;g.padding=c(m.scrollpadding,b.chart.plotBorderWidth/2);g.height=c(m.scrollheight,16);g.showButtons=
!!c(m.scrollshowbuttons,1);g.buttonPadding=c(m.scrollbtnpadding,0);g.flatScrollBars=c(m.flatscrollbars,0);g.color=pa(e(m.scrollcolor,this.colorManager.getColor("altHGridColor")));a=g.height+g.padding;s>k.ganttStartX&&(v.enabled=!0,v.startPercent=Boolean(c(m.scrolltoend,0)));H-=k.ganttStartX;f.scroll={};g=new Date(f&&f.min);if(-1!==l){switch(t){case "y":g.setYear(g.getFullYear()+l);break;case "m":g.setMonth(g.getMonth()+l);break;case "d":g.setDate(g.getDate()+l);break;case "h":g.setHours(g.getHours()+
l);break;case "mn":g.setMinutes(g.getMinutes()+l);break;default:g.setSeconds(g.getSeconds()+l)}g=g.getTime();g>b.min&&g<b.max&&(b.visibleMax=g,f.scroll.enabled=!0)}if(v.enabled||f.scroll.enabled)d-=a;v=d-p.totalHeight;g=v/(h?h:p.processCount);!c(m.forcerowheight,0)&&!h&&p.totalHeight<d&&(g=d/p.processCount,v=d,x=!0);n>g&&(n=3>n-g?g:v/va(v/n));p.maxProcessHeight=n;C.enabled&&g<n&&h||0>g?(v=n,C.startPercent=Boolean(c(m.scrolltoend,0)),H-=a):(C.enabled=!1,v=g);f.scroll.startPercent=c(m.scrolltoend,0);
if(Infinity===b.min||-Infinity===b.max||b.min===b.max)b.min=f.min=0,b.max=f.max=1;if(Infinity===f.min||-Infinity===f.max)f.min=b.min,f.max=b.max;f.axis=new Fa(b,H);f.startX=f.axis.getPixel(Da(f.min,b.min));f.endX=f.axis.getPixel(fa(f.max,b.max));f.visibleW=H;D&&D>f.min&&D<f.max&&(f.scroll.startPercent=Da((f.axis.getPixel(D)-f.startX)/(f.endX-f.startX-f.visibleW),1));for(p=p.nextCol;p;){q+=p.dimension.h=x?v:p.processHeight||v;if(b=p.nextRow)for(;b;)b.dimension=Qa({},b.dimension),b.dimension.h=p.dimension.h,
b=b.nextRow;p=p.nextCol}y.processHeader.totalPH=y.processHeader.dimension.h+q;k.processHeight=d+y.processHeader.dimension.h}}},rb.gaugebase);Pa("renderer.gantt",{drawProcess:function(b){var a=this,c=a.options,d=c.chart,q=a.paper,k=a.logic,m=k.smartLabel,y=a.canvasTop,f=a.canvasLeft,g=a.layers,v=g.gridLayer,p=g.gridHeaderLayer,s=d.gridBorderThickness,C=.5*s,l=d.gridBorderColor,t=d.gridBorderDashStyle,D=0,n=0,h=[],x=y,w=b.dimension.w||16,O=b.dimension.x||0,T=c.dataTable.processHeader,F=T.nextCol.dimension.h,
ea=T.totalPH,k=ca(e(k.dataObj.chart.rolloverbandcolor,"#FF0000"),e(k.dataObj.chart.rolloverbandalpha,30)),L=T.items||(T.items={}),c=c.categories||{},M,N,B,Z,G,$,K,u,r,J,aa;L.hoverEle||(L.hoverEle=q.rect(c.startX,0,c.endX,F,0,g.dataset).attr({fill:k,visibility:"hidden","stroke-width":0}));r=function(b){Y.call(this,a,b,"ProcessClick")};J=function(b){na=clearTimeout(na);if(!W||W.removed)W=null;W&&a.gridOutHandler.call(W);a.gridHoverHandler.call(this);Y.call(this,a,b,"ProcessRollOver")};for(aa=function(b){W=
this;na=clearTimeout(na);na=setTimeout(function(){a.gridOutHandler.call(W)},500);Y.call(W,a,b,"ProcessRollOut")};b;)u=b.dimension,K=f+O,B=b.text,B=b.align,L=b.items||(b.items={}),F=b.link,N=b.isHeader?p:v,Z=L.background,c=Ma(x+n)-.5,B={x:Ma(K+D)-.5,y:c,width:w+.5,height:u.h+C+.5,radius:0,fill:b.bgColor||La,ishot:!0,"stroke-dasharray":t,stroke:l,cursor:F?"pointer":"","stroke-width":0},Z?Z.attr(B):(L.background=q.rect(N).attr(B).hover(J,aa),M={isHeader:b.isHeader,label:b.text,vAlign:b.vAlign,align:b.align,
link:b.link,id:b.id},L.background.click(r).data("dataObj",b).data("eventArgs",M).data("data",{y:c,gridObj:b,rollOverColor:k,useHover:!0,useNext:!0,height:u.h+C+.5,hoverEle:T.items.hoverEle})),b.isNaN||(u=b.dimension,B=b.text,B=b.align,Z=L.label,B=b.text,Ta(B)&&""!==B&&($=b.style,m.setStyle($),G=m.getSmartText(B,w-8,fa(Sa($.lineHeight,10),u.h)),$.title=G.oriText,B=b.align,B={text:G.text,ishot:!0,x:K+w*gb[B]+Va[B],y:x+u.h-u.h*tb[b.vAlign],"text-anchor":Ua[B],direction:d.textDirection,cursor:F?"pointer":
"","vertical-align":b.vAlign},Z?Z.attr(B):L.label=q.text(N).attr(B).css($).hover(J,aa).click(r).data("eventArgs",M).data("dataObj",b).data("data",{y:c,gridObj:b,rollOverColor:k,useHover:!0,height:u.h+C+.5,useNext:!0,hoverEle:T.items.hoverEle}))),b.xPos=K,b.yPos=Ma(x+u.h)-s%2*.5,h.push("M",K,b.yPos,"h",w),(Z=L.hBorder)?Z.attr("path",h):L.hBorder=q.path(h,N).attr({"stroke-dasharray":t,stroke:l,"stroke-width":s}),x+=u.h,b.nextCol||(D=C,n-=0,Z=b.first.items.vBorder,B=["M",Ma(K+w)-s%2*.5,y,"v",ea],Z?Z.attr("path",
B):b.first.items.vBorder=q.path(B,p).attr({"stroke-dasharray":t,stroke:l,"stroke-width":s}),b.nextRow&&!b.isLast&&(b.first.items.dragEle||(b.first.items.dragEle=q.path(B,g.gridTracker).attr({stroke:d.gridResizeBarColor,"stroke-width":d.gridResizeBarThickness,visibility:"hidden"})),b.first.items.tracker||(b.first.items.tracker=q.path(B,g.gridTracker).attr({stroke:La,ishot:!0,"stroke-width":30}).css("cursor",ka.svg&&"ew-resize"||"e-resize").drag(this.dragMove,this.dragStart,this.dragUp).data("drag-options",
{grid:b.first,xPos:Ma(K+w)-s%2*.5,chart:a})))),b=b.nextCol},dragStart:function(){var b=this.data("drag-options"),a=b.grid,H=a.items,d=a.nextRow,e={style:{lineHeight:16}},k=a.nextCol.style||e,m=d&&d.nextCol&&d.nextCol.style||e,y=b.chart,f=y.canvasLeft,g=a.dimension,k=fa(Sa(a.style.lineHeight,10),Sa(k.lineHeight,10))+2,e=fa(Sa((d||e).style.lineHeight,10),Sa(m.lineHeight,10))+2;b.leftSideLimit=f+c(a.dimension.x,0)+k;b.rightSideLimit=f+c(d&&d.dimension.x+d.dimension.w,g.x+g.w)-e;b.origX=b.lastX||(b.lastX=
0);H.dragEle.show();y.trackerClicked=!0;b.draged=!1},dragMove:function(b){var a=this.data("drag-options"),c=a.grid.items,d=a.xPos+b,e=a.leftSideLimit,k=a.rightSideLimit;d<e&&(b=e-a.xPos);d>k&&(b=k-a.xPos);d={transform:"t"+(a.origX+b)+ic+0};this.attr(d);c.dragEle.attr(d);a.draged=!0;a.lastX=b},dragUp:function(){var b=this.data("drag-options"),a=b.chart,c=b.grid,d=c.nextRow,e=a.canvasLeft,k=c.dimension,m=d&&d.dimension,y=c.items,f={hcJSON:{dataTable:{}}};a.trackerClicked=!1;y.dragEle.hide();b.draged&&
(k.w=b.xPos+b.lastX-e-k.x,c.nextCol&&(c.nextCol.dimension.w=k.w),f.hcJSON.dataTable[c.key]={dimension:k},d&&(m.w+=m.x-k.x-k.w,m.x=k.x+k.w,d.dimension.w=m.w,d.dimension.x=m.x,a.drawProcess(d),f.hcJSON.dataTable[d.key]={dimension:m}),a.drawProcess(c),Qa(a.logic.chartInstance.jsVars._reflowData,f,!0),b.xPos+=b.lastX,b.lastX+=b.origX)},drawCategories:function(){var b=this,a=b.options,e=a.chart,d=b.paper,q=b.layers,k=b.logic.smartLabel,m=b.canvasTop,y=a.categories,f=a.dataTable.processHeader,g=y.FCCAT_0_0,
v=y.axis,p=y.endX,s=y.startX,C=p-s,l=e.ganttLineThickness,t=f.totalPH,D=[],n=[],h=q.dataset,q=q.ganttHeaderLayer,x,w,O,T,F,J,L,M,N,B,Z,G,$,K,u;$=function(a){Y.call(this,b,a,"CategoryClick")};K=function(a){na=clearTimeout(na);if(!W||W.removed)W=null;W&&b.gridOutHandler.call(W);b.gridHoverHandler.call(this);Y.call(this,b,a,"CategoryRollOver")};u=function(a){W=this;na=clearTimeout(na);na=setTimeout(function(){b.gridOutHandler.call(W)},500);Y.call(W,b,a,"CategoryRollOut")};T=y.items||(y.items={});f=a.dataTable.processHeader;
for(T.hoverEle=d.rect(0,m+f.dimension.h,50,f.totalPH-f.dimension.h,0,h).attr({fill:La,visibility:"hidden","stroke-width":0});g;)w=C/g.dimension.numCat,F=s+w*(g.index+1),N=F-w,M=g.dimension.h,B=N,G=m+g.dimension.y,J=g.align,L=g.vAlign,O=g.link,T=g.items||(g.items={}),w=!(!g.nextRow&&g.nextCol),Z=a.verticalScroll.enabled&&w?a.scrollOptions.height:0,x={align:g.align,vAlign:g.vAlign,link:g.link,text:g.text},N=B=c(v.getPixel(g.start),N),F=c(v.getPixel(!w&&g.nextCol.start||(w?fa(g.end||0,a.max):void 0)),
F),w=F-N,B=va(B)+.5,G=va(G)+.5,g.isLast&&(D.push("M",B,G,"v",t-g.dimension.y),G-=.5*l,M-=l,e.extendCategoryBg&&d.rect(B,G,w,t,0,h).attr({fill:g.bgColor,"stroke-width":0,stroke:e.ganttLineColor}).toBack()),T.background=d.rect(B,G,w+Z,M,0,q).attr({fill:g.bgColor,ishot:!0,"stroke-width":0,cursor:O?"pointer":"",stroke:e.ganttLineColor}).click($).data("eventArgs",x).data("dataObj",g).hover(K,u).data("data",{x:B,width:w,gridObj:g,hoverEle:y.items.hoverEle}),n.push("M",B,G,"v",M),g.nextRow&&n.push("M",s,
G+M,"H",p+Z),k.setStyle(g.style),F=k.getSmartText(g.text,w-5,M),g.style.title=F.oriText,T.label=d.text(q).attr({text:F.text,ishot:!0,x:B+w*gb[J]+Va[J],y:G+M-M*tb[L],"text-anchor":Ua[J],cursor:O?"pointer":"",direction:e.textDirection,"vertical-align":L}).css(g.style).hover(K,u).click($).data("eventArgs",x).data("dataObj",g).data("data",{x:B,width:w,gridObj:g,hoverEle:y.items.hoverEle}),g=g.nextCol;for(;f;)D.push("M",y.startX,f.yPos,"H",p),f=f.nextCol;T=y.items||(y.items={});T.headerGrid=d.path(n,q).attr({"stroke-dasharray":e.ganttLineDashStyle,
"stroke-width":l,stroke:e.ganttLineColor});T.processGrid=d.path(D,h).attr({"stroke-dasharray":e.ganttLineDashStyle,"stroke-width":e.ganttLineThickness,stroke:e.ganttLineColor})},drawScroller:function(){var b=this,a=b.options,e=b.paper,d=b.layers,q=b.canvasTop,k=b.canvasHeight,m=a.scrollOptions,y=a.categories,f=y.startX,g=y.endX-f,v=m.flatScrollBars,p={hcJSON:{categories:{scroll:{}}}},s=d.dataset,C=d.datalabels,l=d.ganttTracker,t=d.ganttHeaderLayer,D=b.logic.chartInstance&&b.logic.chartInstance.jsVars._reflowData||
{},n=a.chart,h=d.gridLayer,x=(f=a.dataTable)&&f.processHeader,w=b.canvasLeft,O=b.canvasWidth,J=n.gridBorderThickness,F=n.totalGridWidth,ea=Da(n.ganttStartX,F)+J,L=y.scroll,M=f&&f.__scrollOptions,N=a.verticalScroll,B={hcJSON:{dataTable:{__scrollOptions:{}},verticalScroll:{}}},Z=B.hcJSON.dataTable.__scrollOptions,G=x.totalPH-x.dimension.h,$=d.gridHeaderLayer,K=d.gridTracker,u,r,f=c(y.startX,n.ganttStartX),d=d.scroll=d.scroll||e.group("scroll").insertAfter(l);L.enabled&&(a=y.visibleW/g,L.scroller=e.scroller(f,
q+k-m.height,y.visibleW,m.height,!0,{showButtons:m.showButtons,displayStyleFlat:v,buttonWidth:m.buttonWidth,scrollRatio:a,scrollPosition:L.startPercent},d).attr({"scroll-display-style":v,fill:m.color}).scroll(function(a){r=-va(a*(g-y.visibleW));s&&s.transform(["T",r,s.data("vOffset")]);C&&C.transform(["T",r,C.data("vOffset")]);l&&l.transform(["T",r,l.data("vOffset")]);t&&t.transform(["T",r,0]);s&&s.data("hOffset",r);C&&C.data("hOffset",r);l&&l.data("hOffset",r);p.hcJSON.categories.scroll.startPercent=
a;Qa(D,p,!0)}),function(){var a;ka.eve.on("raphael.scroll.start."+L.scroller.id,function(c){a=c;V.raiseEvent("scrollstart",{scrollPosition:c},b.logic.chartInstance)});ka.eve.on("raphael.scroll.end."+L.scroller.id,function(c){V.raiseEvent("scrollend",{prevScrollPosition:a,scrollPosition:c},b.logic.chartInstance)})}(),L.startPercent&&(r=-va(L.startPercent*(g-y.visibleW)),s&&s.data("hOffset",r),C&&C.data("hOffset",r),l&&l.data("hOffset",r),t&&t.transform(["T",r,0]),s&&s.transform(["T",r,s.data("vOffset")]),
C&&C.transform(["T",r,s.data("vOffset")]),l&&l.transform(["T",r,s.data("vOffset")])));M.enabled&&(M.scroller=e.scroller(w,q+k-m.height,ea,m.height,!0,{showButtons:m.showButtons,displayStyleFlat:v,buttonWidth:m.buttonWidth,scrollRatio:ea/F,scrollPosition:M.startPercent},d).attr({"scroll-display-style":v,fill:m.color}).scroll(function(a){r=-va(a*(F-ea));h&&h.transform(["T",r,h.data("vOffset")]);$&&$.transform(["T",r,0]);K&&K.transform(["T",r,K.data("vOffset")]);h.data("hOffset",r);$.data("hOffset",
r);K.data("hOffset",r);Z.startPercent=a;Qa(D,B,!0)}),function(){var a;ka.eve.on("raphael.scroll.start."+M.scroller.id,function(c){a=c;V.raiseEvent("scrollstart",{scrollPosition:c},b.logic.chartInstance)});ka.eve.on("raphael.scroll.end."+M.scroller.id,function(c){V.raiseEvent("scrollend",{prevScrollPosition:a,scrollPosition:c},b.logic.chartInstance)})}(),M.startPercent&&(r=-va(M.startPercent*(F-ea)),h&&h.transform(["T",r,0]),K&&K.transform(["T",r,0]),$&&$.transform(["T",r,0]),h.data("hOffset",r),K.data("hOffset",
r)));N.enabled&&(u=n.processHeight-x.dimension.h,N.scroller=e.scroller(w+O-m.height,q+x.dimension.h,m.height,n.processHeight-x.dimension.h,!1,{showButtons:m.showButtons,displayStyleFlat:v,buttonWidth:m.buttonWidth,scrollRatio:u/G,scrollPosition:N.startPercent},d).attr({"scroll-display-style":v,fill:m.color}).scroll(function(a){r=-va(a*(G-u));h&&h.transform(["T",h.data("hOffset"),r]);s&&s.transform(["T",s.data("hOffset"),r]);C&&C.transform(["T",C.data("hOffset"),r]);l&&l.transform(["T",l.data("hOffset"),
r]);K&&K.transform(["T",K.data("hOffset"),r]);h.data("vOffset",r);K.data("vOffset",r);s.data("vOffset",r);l.data("vOffset",r);C.data("vOffset",r);B.hcJSON.verticalScroll.startPercent=a;Qa(D,B,!0)}),function(){var a;ka.eve.on("raphael.scroll.start."+N.scroller.id,function(c){a=c;V.raiseEvent("scrollstart",{scrollPosition:c},b.logic.chartInstance)});ka.eve.on("raphael.scroll.end."+N.scroller.id,function(c){V.raiseEvent("scrollend",{prevScrollPosition:a,scrollPosition:c},b.logic.chartInstance)})}(),
N.startPercent&&(r=-va(N.startPercent*(G-u)),h&&h.transform(["T",h.data("hOffset"),r]),s&&s.transform(["T",s.data("hOffset"),r]),C&&C.transform(["T",C.data("hOffset"),r]),l&&l.transform(["T",l.data("hOffset"),r]),K&&K.transform(["T",K.data("hOffset"),r]),h.data("vOffset",r),K.data("vOffset",r),s.data("vOffset",r),C.data("vOffset",r),l.data("vOffset",r)))},finalizeScrollPlots:function(){var b=this,a=b.options,c=b.canvasTop,d=a.categories,e=d.endX,k=d.startX,m=d.scroll,y=a.chart,f=a.dataTable,g=f&&
f.processHeader,v=b.canvasLeft,p=y.gridBorderThickness,s=y.totalGridWidth,C=Da(y.ganttStartX,s)+p,l,t,D,n,h,x=e-k-d.visibleW,e=b.container,w=f&&f.__scrollOptions,O=a.verticalScroll,T=g.totalPH,F=y.processHeight-g.dimension.h,ea,L,M,N,B,m=d.scroll,a=function(a){var e=b.elements.canvas,f=N.left,p=N.top,q=a.type,r=sb&&J.getTouchEvent(a)||kc,f=a.layerX||r.layerX||(a.pageX||r.pageX)-f;a=a.layerY||r.layerY||(a.pageY||r.pageY)-p;switch(q){case "dragstart":B=e.isPointInside(f,a);ea=f>k&&f<k+d.visibleW;M=
f>v&&f<k+d.visibleW&&a>c+g.dimension.h;L=f<k;l=B&&f||null;t=B&&a||null;break;case "dragend":B=!1;h=n=D=t=l=void 0;break;default:if(!B||b.trackerClicked)break;e=f-l;q=a-t;l=f;t=a;ea&&m&&m.scroller&&(D=m.scroller.attrs["scroll-position"]-e/x,m.scroller.attr({"scroll-position":D}));M&&O&&O.scroller&&(n=O.scroller.attrs["scroll-position"]-q/(T-F),O.scroller.attr({"scroll-position":n}));L&&w&&w.scroller&&(h=w.scroller.attrs["scroll-position"]-e/(s-C),w.scroller.attr({"scroll-position":h}))}};sb&&(N=J.getPosition(e),
e&&(mc(e,"dragstart drag dragend",a),lc(e,"dragstart drag dragend",a)))},gridHoverHandler:function(){var b=this.data("data"),a=b.gridObj,c=!!a.prevRow,d={};if(!a.isHeader)if(b.x&&(d.x=b.x),b.y&&(d.y=b.y),b.width&&(d.width=b.width),b.height&&(d.height=b.height),a.hoverColor&&(d.fill=a.hoverColor),a.usePlotHover&&b.hoverEle.attr(d).show(),b.useNext&&a.useHover){for(;a&&c;)a=a.prevRow,c=!!a.prevRow;for(;a;)a.items.background.attr("fill",a.hoverColor),a=a.nextRow}else a.useHover&&a.items.background.attr("fill",
a.hoverColor)},gridOutHandler:function(){var b=this.data("data"),a=b.gridObj,c=!!a.prevRow;if(!a.isHeader)if(a.usePlotHover&&b.hoverEle.hide(),b.useNext&&a.useHover){for(;a&&c;)a=a.prevRow,c=!!a.prevRow;for(;a;)a.items.background.attr("fill",a.bgColor||La),a=a.nextRow}else a.useHover&&a.items.background.attr("fill",a.bgColor)},drawAxes:function(){if(this.options.dataTable){Pa["renderer.cartesian"].drawAxes.call(this,arguments);var b=this.options,a=b.chart,e=this.paper,d=this.layers,q=d.layerBelowDataset,
k=d.layerAboveDataset,m=d.gridLayer,y=d.dataset,f=b.dataTable,g=b.categories,f=f&&f.processHeader,v=this.canvasTop,y=this.canvasLeft,m=a.gridBorderThickness,p=Da(a.ganttStartX,a.totalGridWidth)+m,s=f.dimension,C=s.h,s=a.processHeight-s.h,l=c(g.startX,a.ganttStartX),g=g.visibleW,a=.5*a.ganttLineThickness,m=.5*m,m=d.gridLayer=d.gridLayer||e.group("grid",q).attr({"clip-rect":[y,v+C+m,p,s-m]});d.gridHeaderLayer=d.gridHeaderLayer||e.group("grid-header",q).attr({"clip-rect":[y,v,p,C+s]});q=d.gridTracker=
d.gridTracker||e.group("grid-tracker",q).attr({"clip-rect":[y,v,p,C+s]});m.data("vOffset",0);m.data("hOffset",0);q.data("vOffset",0);q.data("hOffset",0);d.ganttHeaderLayer=d.ganttHeaderLayer||e.group("gantt",k).attr({"clip-rect":[l,v,g+(b.verticalScroll.enabled?b.scrollOptions.height:0),this.chartHeight]});y=d.dataset.attr({"clip-rect":[l,v+C-a,g,s+a]});b=d.datalabels.attr({"clip-rect":[l,v+C-a-10,g,s+a+10]});e=d.ganttTracker=e.group("gantt-hot",d.tracker).attr({"clip-rect":[l,v+C-a,g,s+a]});y.data("vOffset",
0);y.data("hOffset",0);b.data("vOffset",0);b.data("hOffset",0);e.data("vOffset",0);for(e.data("hOffset",0);f;)this.drawProcess(f),f=f.nextRow;this.drawCategories()}},drawPlotGantt:function(b){var a=this,H=a.options,d=H.chart,q=a.paper,k=a.layers,m=b.data,y=b.items,f=m.length,g=k.dataset,v=k.datalabels,p=H.dataTable,s=p.processHeader,C=H.categories,l=C.axis,t=a.canvasTop,D=d.taskBarRoundRadius,f=H.plotOptions.series,n=isNaN(+f.animation)&&f.animation.duration||1E3*f.animation,h=H.tasksMap||(H.tasksMap=
{}),x=H.milestone,w=H.trendlines,O=s.dimension.h,J=d.taskDatePadding,F,ea,L,M,N,B,Z,G,$,K,u,r,W,aa,ca,V,fa,A,R,ba,E;b.graphics=[];ca=g.shadows||(g.shadows=q.group("shadows",g));f=w&&w.length;for(b=0;b<f;b+=1)u=w[b],u.end||(u.end=u.start),u.end&&(R=l.getPixel(u.start),V=l.getPixel(u.end),ba=u.thickness,H=u.items||(u.items={}),F=void 0,u.isTrendZone?(K=["M",R+.5*(V-R),t+O,"v",t+s.totalPH],ba=V-R):(K=["M",R,t+O,"L",V,t+O+s.totalPH],F=u.dashedStyle),H.trendLine=q.path(K,g).attr({stroke:u.color,"stroke-width":ba,
"stroke-dasharray":F}),Ta(u.displayValue)&&""!==u.displayValue&&(H.label=q.text(k.ganttHeaderLayer).attr({text:u.displayValue,direction:d.textDirection,x:K[1],y:0}).css(u.style),F=H.label._getBBox().height,u=t+d.processHeight+(!C.scroll.enabled||d.marginBottom<F?.5*F:-(.5*F)-5),H.label.attr("y",u)));v.hide();k=function(){v.show()};w=s=function(b){Y.call(this,a,b)};C=function(b){Y.call(this,a,b,"DataPlotRollOver")};t=function(b){Y.call(this,a,b,"DataPlotRollOut")};O=function(b){b&&b.click(function(b){Y.call(this,
a,b)}).hover(function(b){var c=this.data("dataObj");Y.call(this,a,b,"DataPlotRollOver");c.showHoverEffect&&a.taskHoverHandler.call(this,a)},function(b){var c=this.data("dataObj");Y.call(this,a,b,"DataPlotRollOut");c.showHoverEffect&&a.taskHoverOutHandler.call(this,a)}).data("dataObj",A).data("eventArgs",ea)};f=m.length;for(b=0;b<f;b+=1)A=m[b],H=A.processId,u=p[H],V=fa=A.color,H=A.items||(A.items={}),K=A.animation?n||1E3:0,u&&(E=A.borderThickness,R=va(l.getPixel(A.start)),ba=ac(M=l.getPixel(A.end)-
R),R&&ba&&(L=u.dimension.h,u=u.yPos-L,F=L*(/%/g.test(A.height)&&.01*Gb(A.height,10))||c(A.height,L),r=L*(/%/g.test(A.topPadding)&&.01*Gb(A.topPadding,10))||c(A.topPadding,L),u+=Da(r,L-F),aa=.5*F,W=A.toolText,r=A.link,(L=y[b])||(L=y[b]={index:b,dataLabel:null,start:A.start,end:A.end,startLabel:null,endLabel:null,tracker:null}),A.index=b,N=e(A.id,b),""!==N&&h[N]&&(h[N].items=L,h[N].x=R,h[N].y=u,h[N].h=F,h[N].w=ba),M=N=B=Z=G=$=null,A.showAsGroup?(K?(M=q.path(["M",R,u],g),M.animate({path:["M",R,u,"v",
F,"L",R+aa,u+aa,"H",R+ba-aa,"L",R+ba,u+F,"v",-F,"H",R]},K,"normal",k)):(M=q.path(["M",R,u,"v",F,"L",R+aa,u+aa,"H",R+ba-aa,"L",R+ba,u+F,"v",-F,"H",R],g),k&&k()),M.attr({fill:V,stroke:A.borderColor,cursor:r?"pointer":"",ishot:!0,"stroke-width":A.borderThickness}).tooltip(W).shadow(d.shadow&&A.shadow,ca)):(-1!==A.percentComplete&&(M=ba*A.percentComplete*.01,V=La,N=H.taskFill=q.rect(R,u,0,F,0,g).attr({fill:fa,cursor:r?"pointer":"",ishot:!0,"stroke-width":0,width:K?0:M||1}).tooltip(W),K&&N.animate({width:M||
1},K,"normal"),B=q.rect(R,u,0,F,0,g).attr({fill:A.slackColor,cursor:r?"pointer":"",ishot:!0,"stroke-width":0,x:K?R:R+M||1,width:K?0:ba-M||1}).tooltip(W),K&&B.animate({x:R+M||1,width:ba-M||1},K,"normal")),H=ka.crispBound(R,u,ba,F,E),M=q.rect(H.x,H.y,0,H.height,D,g).attr({fill:V,stroke:A.borderColor,cursor:r?"pointer":"",ishot:!0,"stroke-width":A.borderThickness,width:K?0:H.width||1}).tooltip(W).shadow(d.shadow&&A.shadow,ca),K?M.animate({width:H.width||1},K,"normal",k):k&&k()),Ta(A.label)&&""!==A.label&&
(H=A.labelAlign,Z=q.text().attr({text:A.label,x:R+ba*gb[H]+Va[H],"text-anchor":Ua[H],direction:d.textDirection,cursor:r?"pointer":"",ishot:!0,y:u-.5*Sa(A.style.lineHeight,10)-d.taskLabelPadding}).css(A.style),v.appendChild(Z)),Ta(A.startDate)&&""!==A.startDate&&(G=q.text().attr({text:A.startDate,x:R-2-J,y:u+.5*F,cursor:r?"pointer":"",ishot:!0,direction:d.textDirection,"text-anchor":"end"}).css(A.style),v.appendChild(G)),Ta(A.endDate)&&""!==A.endDate&&($=q.text().attr({text:A.endDate,x:R+ba+2+J,y:u+
.5*F,cursor:r?"pointer":"",ishot:!0,direction:d.textDirection,"text-anchor":"start"}).css(A.style),v.appendChild($)),L.graphic=M,L.percentCompleteGraphic=N,L.slackGraphic=B,L.dataLabel=Z,L.startLabel=G,L.endLabel=$,ea={processId:A.processId,taskId:A.id,start:A._start,end:A._end,showAsGroup:A.showAsGroup,link:A.link,sourceType:"task",percentComplete:-1!==A.percentComplete&&A.percentComplete},N&&N.click(s).hover(C,t).data("eventArgs",ea),B&&B.click(w).data("eventArgs",ea),Ra([M,Z,G,$],O)));p=function(b){Y.call(this,
a,b,"MilestoneClick")};D=function(b){var c=this.data("dataObj");Y.call(this,a,b,"MilestoneRollOver");c.showHoverEffect&&c.items.graphic.attr({fill:c.hoverFillColor,stroke:c.hoverBorderColor,"fill-opacity":c.hoverFillAlpha,"stroke-opacity":c.hoverBorderAlpha})};J=function(b){var c=this.data("dataObj");Y.call(this,a,b,"MilestoneRollOut");c.showHoverEffect&&c.items.graphic.attr({fill:c.fillColor,stroke:c.borderColor,"fill-opacity":c.fillAlpha,"stroke-opacity":c.borderAlpha})};this.drawConnectors();H=
null;f=x&&x.length;for(b=0;b<f;b+=1)m=x[b],u=h[m.taskId],H=m.items||(m.items={}),u&&(y=ka.animation({"fill-opacity":m.fillAlpha,"stroke-opacity":m.borderAlpha},n,"normal"),ea={sides:m.sides,date:m.origDate,radius:m.radius,taskId:m.taskId,toolText:m.toolText,link:m.link,numSides:m.numSides},H.graphic=q.polypath(m.numSides,l.getPixel(m.date.ms),u.y+.5*u.h,c(m.radius,.6*u.h),m.startAngle,m.depth,g).attr({fill:m.fillColor,"fill-opacity":n?0:m.fillAlpha,stroke:m.borderColor,"stroke-opacity":n?0:m.borderAlpha,
groupId:"gId"+b,ishot:!0,cursor:m.link?"pointer":"","stroke-width":m.borderThickness}).tooltip(m.toolText).click(p).data("eventArgs",ea).data("dataObj",m),H.label=q.text().attr({text:m.displayValue,x:l.getPixel(m.date.ms),y:u.y+.5*u.h,groupId:"gId"+b,cursor:m.link?"pointer":"",ishot:!0,direction:d.textDirection,"text-anchor":"middle"}).css(m.style).tooltip(m.toolText).click(p).data("eventArgs",ea).data("dataObj",m),v.appendChild(H.label),n&&H.graphic.animate(y.delay(n)),H.graphic.hover(D,J),H.label.hover(D,
J))},taskHoverOutHandler:function(b){var a=b.options.tasksMap;b=this.data("dataObj");var a=a[e(b.id,b.index)].items,c={fill:b.color,stroke:b.borderColor,"stroke-width":b.borderThickness,"stroke-dasharray":b.dashedStyle};-1===b.percentComplete||b.showAsGroup||(a.slackGraphic.attr({fill:b.slackColor}),a.percentCompleteGraphic.attr({fill:b.color}),delete c.fill);a.graphic.attr(c)},taskHoverHandler:function(b){var a=b.options.tasksMap;b=this.data("dataObj");var a=a[e(b.id,b.index)].items,c={fill:b.hoverFillColor,
stroke:b.hoverBorderColor};-1===b.percentComplete||b.showAsGroup||(a.slackGraphic.attr({fill:b.slackHoverColor}),a.percentCompleteGraphic.attr({fill:b.hoverFillColor}),delete c.fill);a.graphic.attr(c)},drawConnectors:function(){var b=this,a=b.paper,c=b.options,d=c.chart.connectorExtension,e=c.connectors,k=c.tasksMap,m=e.length,y=b.layers.dataset,f=[],c=c.plotOptions.series,c=isNaN(+c.animation)&&c.animation.duration||1E3*c.animation,g,v,p,s,C,l,t,D,n,h,x,w,J,T,F;J=function(a){Y.call(this,b,a,"ConnectorClick")};
T=function(a){var c=this.data("dataObj"),d=k[c.fromTaskId],e=k[c.toTaskId],f={stroke:c.hoverColor,"stroke-dasharray":c.dashedStyle,"stroke-width":c.hoverThickness};Y.call(this,b,a,"ConnectorRollOver");c.showHoverEffect&&(Ra([d,e],function(a){var b={fill:a.dataObj.hoverFillColor,stroke:a.dataObj.hoverBorderColor};-1===a.dataObj.percentComplete||a.dataObj.showAsGroup||(a.items.slackGraphic.attr({fill:a.dataObj.slackHoverColor}),a.items.percentCompleteGraphic.attr({fill:a.dataObj.hoverFillColor,stroke:a.dataObj.hoverBorderColor}),
delete b.fill);a.items.graphic.attr(b)}),c.items.connector.attr(f))};F=function(a){var c=this.data("dataObj"),d=k[c.fromTaskId],e=k[c.toTaskId],f={stroke:c.color,"stroke-width":c.thickness,"stroke-dasharray":c.dashedStyle};Y.call(this,b,a,"ConnectorRollOut");c.showHoverEffect&&(Ra([d,e],function(a){var b={fill:a.dataObj.color,stroke:a.dataObj.borderColor,"stroke-width":a.dataObj.borderThickness,"stroke-dasharray":a.dataObj.dashedStyle};-1===a.dataObj.percentComplete||a.dataObj.showAsGroup||(a.items.slackGraphic.attr({fill:a.dataObj.slackColor}),
a.items.percentCompleteGraphic.attr({fill:a.dataObj.color}),delete b.fill);a.items.graphic.attr(b)}),c.items.connector.attr(f))};for(g=0;g<=m;g+=1)if(p=e[g]||{},l=p.fromTaskId,s=p.toTaskId,v=k[l],n=k[s],s=p.items||(p.items={}),v&&n){h=v.y+.5*v.h;x=n.y+.5*n.h;C=h==x;l=v.x;t=v.x+v.w;D=n.x;n=n.x+n.w;w=w=0;0===p.fromTaskConnectStart&&1===p.toTaskConnectStart&&(w=1);0===p.fromTaskConnectStart&&0===p.toTaskConnectStart&&(w=2);1===p.fromTaskConnectStart&&1===p.toTaskConnectStart&&(w=3);1===p.fromTaskConnectStart&&
0===p.toTaskConnectStart&&(w=4);if(C)switch(v=v.height,w){case 1:w=(D-t)/10;f=["M",t,h,t+w,h,"L",t+w,h,t+w,h-v,"L",t+w,h-v,D-w,h-v,"L",D-w,h-v,D-w,h,"L",D-w,h,D,x,"L",n+d,x,n,x];break;case 2:f=["M",t,h,t+d,h,"L",t+d,h,t+d,h-v,"L",t+d,h-v,n+d,h-v,"L",n+d,x-v,n+d,x];break;case 3:f=["M",l,h,l-d,h,"L",l-d,h,l-d,h-v,"L",l-d,h-v,D-d,h-v,"L",D-d,h-v,D-d,h,"L",D-d,h,D,h];break;case 4:f=["M",l,h,l-d,h,"L",l-d,h,l-d,h-v,"L",l-d,h-v,n+d,h-v,"L",n+d,h-v,n+d,h,"L",n+d,h,n,h]}else switch(w){case 1:f=["M",t,h,t+
(D-t)/2,h,"L",t+(D-t)/2,h,t+(D-t)/2,x,"L",t+(D-t)/2,x,D,x];f=t<=D?["M",t,h,t+(D-t)/2,h,"L",t+(D-t)/2,h,t+(D-t)/2,x,"L",t+(D-t)/2,x,D,x]:["M",t,h,t+d,h,"L",t+d,h,t+d,h+(x-h)/2,"L",t+d,h+(x-h)/2,D-d,h+(x-h)/2,"L",D-d,h+(x-h)/2,D-d,x,"L",D-d,x,D,x];break;case 2:w=0>n-t?0:n-t;f=["M",t,h,t+d+w,h,"L",t+d+w,h,t+d+w,x,"L",t+d+w,x,n,x];break;case 3:w=0>l-D?0:l-D;f=["M",l,h,l-d-w,h,"L",l-d-w,h,l-d-w,x,"L",l-d-w,x,D,x];break;case 4:f=l>n?["M",l,h,l-(l-n)/2,h,"L",l-(l-n)/2,h,l-(l-n)/2,x,"L",l-(l-n)/2,x,n,x]:
["M",l,h,l-d,h,"L",l-d,h,l-d,h+(x-h)/2,"L",l-d,h+(x-h)/2,n+d,h+(x-h)/2,"L",n+d,h+(x-h)/2,n+d,x,"L",n+d,x,n,x]}s.connector?s.connector.animate({path:f}):(l=ka.animation({"stroke-opacity":p.alpha},c,"normal"),s.connector=a.path(f,y).attr({stroke:p.color,"stroke-opacity":0,"stroke-width":p.thickness,"stroke-dasharray":p.dashedStyle}).animate(l.delay(c)));l={fromTaskId:p.fromTaskId,toTaskId:p.toTaskId,fromTaskConnectStart:p.fromTaskConnectStart,toTaskConnectStart:p.toTaskConnectStart,link:p.link,sourceType:"connector"};
s.tracker=a.path(f,y).attr({stroke:La,"stroke-width":fa(p.thickness,10),ishot:!0,cursor:p.link?"pointer":""}).data("dataObj",p).data("eventArgs",l).click(J);s.tracker.hover(T,F)}}},Pa["renderer.cartesian"])}]);
/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.9.0
*/
FusionCharts.register("module",["private","modules.renderer.js-gradientlegend",function(){function U(c,g,p){var n=c[0],m=c[1];c=c[2];n+=(g[0]-n)*p;m+=(g[1]-m)*p;g=c+(g[2]-c)*p;return{hex:(sa+(n<<16|m<<8|g).toString(16)).slice(-6),rgb:[n,m,g]}}function Z(c,g){return c.maxvalue-g.maxvalue}function F(c){var g,p,n=c.colorRange||{},m=c.dataMin,z=c.dataMax,t=c.sortLegend||!1,k=c.mapByCategory||!1,x=c.defaultColor,b=c.numberFormatter,e=n.color;c=this.colorArr=[];var d,h,a;this.mapByCategory=k;"1"===n.mapbypercent&&
(this.mapbypercent=!0);if("1"===n.gradient&&!k){this.gradient=!0;p=Ba(ba(n.startcolor,n.mincolor,n.code));t=ga(Ba(ba(p,x,"CCCCCC")));k=this.scaleMin=H(n.startvalue,n.minvalue,this.mapbypercent?0:m);c.push({code:p,maxvalue:k,label:ca(n.startlabel),codeRGB:ga(p)});if(e&&(g=e.length))for(m=0;m<g;m+=1)x=e[m],p=Ba(ba(x.color,x.code)),h=H(x.value,x.maxvalue),a=H(x.minvalue),h>k&&c.push({code:p,maxvalue:h,userminvalue:a,label:ca(ba(x.label,x.displayvalue)),codeRGB:ga(p)});c.sort(Z);g=c.length;for(m=1;m<
g;m+=1)x=c[m],p=x.maxvalue-k,0<p?(x.minvalue=k,x.range=p,k=x.maxvalue):(c.splice(m,1),--m,--g);2<=c.length&&(this.scaleMax=k,c[m-1].label=ba(n.endlabel,c[m-1].label,c[m-1].displayvalue));1===c.length&&(h=H(n.maxvalue,this.mapbypercent?100:z),c.push({minvalue:k,maxvalue:h,range:h-k,label:n.endlabel}),this.scaleMax=h,delete c[0].code);n=c[0];z=c[c.length-1];n.code&&z.code||(p=la(t),g=Ea((p[2]=0,p)),p=Ea((p[2]=100,p)),n.code||(n.codeRGB=g,n.code=ta(g)),z.code||(z.codeRGB=p,z.code=ta(p)));g=c.length;
for(m=1;m<g;m+=1)if(x=c[m],x.code){if(d)for(z=x,a=n.maxvalue,e=z.maxvalue-a;d<m;d+=1)t=c[d],p=U(n.codeRGB,z.codeRGB,(t.maxvalue-a)/e),t.code=p.hex,t.codeRGB=p.rgb;d=null;n=x}else d=d||m;if(void 0===this.scaleMin||void 0===this.scaleMax)this.noValidRange=!0}else if(e&&(g=e.length)){for(m=0;m<g;m+=1)x=e[m],p=ba(x.color,x.code),h=H(x.maxvalue),a=H(x.minvalue),d=ba(x.label,x.displayvalue,k?V:b.dataLabels(a)+" - "+b.dataLabels(h)),(p&&h>a||k&&d)&&c.push({code:p,maxvalue:h,minvalue:a,label:ca(d),labelId:d.toLowerCase()});
c.length?t&&c.sort(Z):this.noValidRange=!0}}function W(c,g){return g?I(100*c)/100+"%":P(c,V).toString()}var ha=this,c=ha.hcLib,ua=ha.window,ua=/msie/i.test(ua.navigator.userAgent)&&!ua.opera,H=c.pluckNumber,sa=c.COLOR_BLACK,g=c.COLOR_GLASS,Ca=c.FC_CONFIG_STRING,ya=c.graphics,Ea=ya.HSBtoRGB,la=ya.RGBtoHSB,ta=ya.RGBtoHex,ga=ya.HEXtoRGB,pa=c.COMMASTRING,V=c.BLANKSTRING,ca=c.parseUnsafeString,va=c.graphics.convertColor,Fa=c.POSITION_TOP,ma=c.POSITION_MIDDLE,xa=c.POSITION_START,Ga=c.POSITION_END,wa=c.graphics.getDarkColor,
qa=c.graphics.getLightColor,ba=c.pluck,P=c.getValidValue,ra=c.toRaphaelColor,za=c.hasTouch,I=Math.round,R=Math.max,T=Math.min,Ha=Math.abs,X,Ia,Aa,Ja="rgba(192,192,192,"+(ua?.002:1E-6)+")",Ba=function(c){return c&&c.replace(/^#?([a-f0-9]+)/ig,"$1")};F.prototype={getColorObj:function(c){var g=this.colorArr,p=this.gradient?1:0,n=g[p],m;if(this.mapByCategory){for(c=ca(c).toLowerCase();n;){if(n.labelId===c)return{code:n.code,seriesIndex:p};p+=1;n=g[p]}return{outOfRange:!0}}if(this.gradient){if(this.scaleMin<=
c&&this.scaleMax>=c){for(;n&&n.maxvalue<c;)p+=1,n=g[p];c=(c-n.minvalue)/n.range;return{code:U(g[p-1].codeRGB,n.codeRGB,c).hex}}return{outOfRange:!0}}for(;n;){if(n.maxvalue>c&&n.minvalue<=c)return{code:n.code,seriesIndex:p};n.maxvalue===c&&(m=p);p+=1;n=g[p]}return(n=g[m])&&n.maxvalue===c?{code:n.code,seriesIndex:m}:{outOfRange:!0}}};F.prototype.constructor=F;c.colorRange=F;X=c.configureGradientLegendOptions=function(c,g){var p=c.legend,n=g.chart;p.legendSliderBorderWidth=H(n.legendpointerborderthickness,
1);p.legendSliderBorderColor=va(ba(n.legendpointerbordercolor,sa),H(n.legendpointerborderalpha,100));p.legendSliderWidth=H(n.legendpointerwidth,n.legendpointerswidth,12);p.legendSliderHeight=H(n.legendpointerheight,n.legendpointersheight,12);p.legendColorBoxBorderColor=p.borderColor;p.legendColorBoxBorderWidth=p.borderWidth;p.legendScaleColor=va(ba(n.legendscalelinecolor,sa),H(n.legendscalelinealpha,100));p.legendScalePadding=H(n.legendscalepadding,4);p.legendScaleLineThickness=H(n.legendscalelinethickness,
1);p.legendScaleTickDistance=H(n.legendscaletickdistance,6);p.itemStyle.cursor="default";p.interActivity=H(n.interactivelegend,1)};c.placeGLegendBlockRight=function(c,g,p,n,m){this.configureLegendOptions(c,g.chart,!0,m,p);X(c,g);m=this.snapLiterals||(this.snapLiterals={});var z=c[Ca],t=this.smartLabel||z.smartLabel,k=c.legend,x=c.chart.spacingRight,b,e,d=k.textPadding=2,h=2*d,a=k.title.padding,f=0,fa=0,l=2*k.padding;g=H(g.chart.legendpadding,7)+k.borderWidth/2+1;var y=c.colorRange||{},w=y.colorArr,
ia=y.mapbypercent,O=y.scaleMin,q=y.scaleMax-O,Y=k.legendSliderWidth,M=k.legendSliderHeight/2;e=k.legendScalePadding;var s=k.legendScaleTickDistance,u=k.itemStyle||{};b=H(parseInt(u.lineHeight,10)||12);var v=.75*b,S=p-l,C,D,r=0,E,A,B,K,G,Q,J;n-=l;if(!y.noValidRange&&w&&1<(D=w.length)){--D;k.title.text!==V&&(t.setStyle(k.title.style),b=t.getSmartText(k.title.text,S,R(b,n/4)),k.title.text=b.text,f=b.width+l,n-=fa=b.height+a);t.setStyle(u);b=t.lineHeight;S-=s+e+Y;k.colorBoxX=Y;a=R(b,S/2);S=T(S-a-4,b);
E=R(b,n/2);C=n/4;s=w[0];s.scaleLabel=W(s.maxvalue,ia);b=t.getSmartText(s.label,C,S);s.label=b.text;u=b.height;s.labelY=v-b.height/2;e=t.getSmartText(s.scaleLabel,a,E);s.scaleLabel=e.text;y=e.height/2;A=e.width;s.scaleLabelY=v-e.height/2;k.colorBoxY=R(y,b.width+h,M)+fa;s=J=w[D];s.scaleLabel=W(s.maxvalue,ia);b=t.getSmartText(s.label,C,S);s.label=b.text;u=R(u,b.height);s.labelY=v-b.height/2;e=t.getSmartText(s.scaleLabel,a,E);s.scaleLabel=e.text;A=R(A,e.width);C=e.height/2;b=R(b.width+h,C,M);s.scaleLabelY=
v-e.height/2;k.colorBoxHeight=M=n-k.colorBoxY-b;E=M-C;B=M/q;G=T(M-r,E-y)-4;for(C=1;C<D;C+=1)s=w[C],K=(s.maxvalue-O)*B,b=t.getSmartText(s.label,2*T(K-r,M-K),S),s.label=b.text,u=R(u,b.height),s.labelY=v-b.height/2,b=b.width/2,s.scaleLabel=W(s.maxvalue,ia),e=t.getSmartText(s.scaleLabel,a,2*T(K-y,E-K)),s.scaleLabel=e.text,A=R(A,e.width),Q=e.height/2,s.scaleLabelY=v-e.height/2,G=T(G,(K-R(Q+y,b+r)-4)*q/s.range),r=b+K,y=Q+K;G=R(T(G,(T(E-y,M-r)-4)*q/J.range,.3*n),0);k.colorBoxHeight-=G;k.colorBoxWidth=u&&
u+h||15;k.height=k.totalHeight=n+fa+l-G;k.width=(A&&A+d)+k.colorBoxWidth+Y+k.legendScaleTickDistance+k.legendScalePadding+l;k.width<f&&(k.colorBoxX+=(f-k.width)/2,k.width=f);k.width>p&&(k.width=p);m.legendstartx=z.width-x-k.width;m.legendwidth=k.width;m.legendendx=m.legendstartx+m.legendwidth;m.legendheight=k.height;g+=k.width;c.chart.marginRight+=g;return g}k.enabled=!1;return 0};c.placeGLegendBlockBottom=function(c,g,p,n,m){this.configureLegendOptions(c,g.chart,!1,m,p);X(c,g);m=this.snapLiterals||
(this.snapLiterals={});var z=c[Ca],t=this.smartLabel||z.smartLabel,k=c.legend,x=c.chart,b=x.spacingBottom,e=x.spacingLeft,x=x.spacingRight,d,h,a=k.textPadding=2,f=k.title.padding,fa=0,l=0,y=2*k.padding;g=H(g.chart.legendpadding,7)+k.borderWidth/2+1;var w=c.colorRange||{},ia=w.colorArr,O=w.mapbypercent,q=w.scaleMin,Y=w.scaleMax-q,M=k.legendSliderWidth,s=k.legendSliderHeight,u=k.legendScalePadding,v=k.legendScaleTickDistance,S=k.itemStyle||{};d=H(parseInt(S.lineHeight,10)||12);var C=.75*d,D=n-y,r,E,
A,B,K=0,G,Q,J;p-=y;if(!w.noValidRange&&ia&&1<(E=ia.length)){--E;k.title.text!==V&&(t.setStyle(k.title.style),d=t.getSmartText(k.title.text,p,D/3),k.title.text=d.text,fa=d.width+y,D-=l=d.height+f);t.setStyle(S);d=t.lineHeight;D-=v+u+s;f=R(d,D/2);S=T(D-f-4,d);r=p/4;B=2*r;A=ia[0];A.scaleLabel=W(A.maxvalue,O);d=t.getSmartText(A.label,r,S);A.label=d.text;D=d.height;A.labelY=C-d.height/2;h=t.getSmartText(A.scaleLabel,B,f);A.scaleLabel=h.text;u=h.width/2;v=h.height;A.code||(A.code=ba(k.minColor,"CCCCCC"));
k.colorBoxX=R(u,d.width+a,M);A=w=ia[E];A.scaleLabel=W(A.maxvalue,O);d=t.getSmartText(A.label,r,S);A.label=d.text;D=R(D,d.height);A.labelY=C-d.height/2;h=t.getSmartText(A.scaleLabel,B,f);A.scaleLabel=h.text;v=R(v,h.height);A=h.width/2;d=R(d.width+a,A,M);k.colorBoxWidth=M=p-k.colorBoxX-d;B=M-A;G=M/Y;J=T(M-K,B-u)-4;for(r=1;r<E;r+=1)A=ia[r],Q=(A.maxvalue-q)*G,d=t.getSmartText(A.label,2*T(Q-K,M-Q),S),A.label=d.text,D=R(D,d.height),A.labelY=C-d.height/2,d=d.width/2,A.scaleLabel=W(A.maxvalue,O),h=t.getSmartText(A.scaleLabel,
2*T(Q-u,B-Q),f),A.scaleLabel=h.text,v=R(v,h.height),h=h.width/2,J=T(J,(Q-R(h+u,d+K)-4)*Y/A.range),K=d+Q,u=h+Q;J=R(T(J,(T(B-u,M-K)-4)*Y/w.range,.3*p),0);k.colorBoxWidth-=J;k.width=p+y-J;k.width<fa&&(k.colorBoxX+=(fa-k.width)/2,k.width=fa);k.colorBoxY=l+s;k.colorBoxHeight=D&&D+2*a||15;k.height=k.totalHeight=(v&&v+a)+k.colorBoxHeight+l+s+k.legendScaleTickDistance+k.legendScalePadding+y;k.height>n&&(k.height=n);m.legendstartx=e+.5*(z.width-e-x-k.width)+(k.x||0);m.legendwidth=k.width;m.legendendx=m.legendstartx+
m.legendwidth;m.legendstarty=z.height-b-k.height;m.legendheight=k.height;m.legendendy=m.legendstarty+m.legendheight;g+=k.height;c.chart.marginBottom+=g;return g}k.enabled=!1;return 0};Ia=function(){return{point:this}};Aa=function(c){return I(100*c)/100};c.rendererRoot.drawGradientLegendItem=function(c){var F=this,p=F.paper,n=F.options,m=F.canvasLeft,z=F.canvasTop,t=F.canvasWidth,k=F.canvasHeight,x=n.colorRange,b=n.chart.textDirection,e,d,h,a,f=n.legend,fa=H(f.padding,4),l=f.itemStyle,n=f.symbolStyle,
y=f.interActivity,w=c.elements;c=w.elementGroup.trackTooltip(!0);var ia="vertical"===f.layout,O,q,Y,M,s,u,v=0,S=f.lighting3d,C=f.colorBoxWidth,D=f.colorBoxHeight,r=C,E=D,A={FCcolor:{color:V,alpha:V,angle:0,ratio:V}},B=A.FCcolor,K=f.colorBoxX+fa,G=f.colorBoxY+fa,Q,J,Ma=f.legendColorBoxBorderColor,Na=f.legendColorBoxBorderWidth,Da=["M"],da=f.legendScaleColor;u=f.legendScalePadding;var X=f.legendScaleLineThickness,U=X%2/2;d=f.legendScaleTickDistance;var T=f.legendSliderWidth,W=f.legendSliderHeight;s=
E/2;a=r/2;var P=T/2,$=W/2,ca,aa,na;J=0;var ea=qa("ABABAB",50),fa=wa("ABABAB",70),f=va("ABABAB",100),fa=va(fa,100),ea=va(ea,100),Z,N={isFirst:!0},L={},oa,ja,ka,ga;if(x&&(e=x.colorArr)&&1<(h=e.length)){N.toolText=oa=Y=x.scaleMin;L.toolText=ja=x=x.scaleMax;M=x-Y;N.snapPX=L.snapPX=0;N.tooltipConstraint=L.tooltipConstraint="chart";N.getLabelConfig=L.getLabelConfig=Ia;N.tooltipPos=[0,0];L.tooltipPos=[0,0];L.tooltipOffsetReference=N.tooltipOffsetReference={};L.tooltipOffsetReference.left=N.tooltipOffsetReference.left+=
m-20;L.tooltipOffsetReference.top=N.tooltipOffsetReference.top+=z;ka=w.colorBox=p.group("colorBox",c);if(ia){N.tooltipPos[0]=L.tooltipPos[0]=t+m;J=270;B.angle=90;m=K-T;t=K+r;z=G-$;O=G+$;m=I(K-T)+.5;t=I(K)+.5;z=I(G-$)+.5;O=I(G+$)+.5;ca=I(K+r)+.5;na=I(G-2)+.5;q=I(G+2)+.5;Q=I(G)+.5;k=K-P/2;aa=I(k-$)+.5;k=I(k)+.5;s=G-$/2;$=I(s+$)+.5;s=I(s)+.5;C/=2;P=["M",m,z,"L",t,z,t,na,ca,Q,t,q,t,O,m,O,"Z","M",aa,s,"L",k,s,"M",aa,Q,"L",k,Q,"M",aa,$,"L",k,$];$=["M",m+1,z,"L",m+1,O,"M",aa,s-1,"L",k,s-1,"M",aa,Q-1,"L",
k,Q-1,"M",aa,$-1,"L",k,$-1];s=K+r+u;O=I(s+d)+U;s=I(s)+U;Q=K+a;aa=h-1;for(d=0;d<h;d+=1)a=e[d],t=(a.maxvalue-Y)/M,q=E*t+G,u=I(q)+U,d?(B.ratio+=pa,B.color+=pa,B.alpha+=pa,Da.push("L",s,u,O,u,"M",s,u),d===aa?(k=Ga,u=q+2):(k=ma,u=q)):(Da.push(s,u,"L",O,u,"M",s,u),k=xa,u=q-2),B.ratio+=100*(t-v),B.color+=ba(a.code,sa),B.alpha+=ba(a.alpha,100),v=t,a.legendItem=p.text(c).attr({text:a.label,x:Q,y:u,"text-anchor":k,direction:b,"vertical-align":ma}).rotate(J,Q,u).css(l),a.legendSymbol=p.text(c).attr({text:a.scaleLabel,
x:O,y:q,"text-anchor":xa,direction:b,"vertical-align":ma}).css(l);N.xMin=L.xMin=0;N.xMax=L.xMax=0;N.yMin=L.yMin=0;N.yMax=L.yMax=E;N.x=L.x=0;N.y=0;L.y=E;b=W+r;e=T}else{N.tooltipPos[1]=L.tooltipPos[1]=k+z;m=I(K-P)+.5;t=I(K+P)+.5;z=I(G-W)+.5;O=I(G+E)+.5;ca=I(K-2)+.5;k=I(K+2)+.5;aa=I(K)+.5;na=I(G)+.5;q=G-$/2;Q=I(q-$)+.5;q=I(q)+.5;J=K-P/2;a=I(J+P)+.5;J=I(J)+.5;D/=2;P=["M",m,z,"L",t,z,t,na,k,na,aa,O,ca,na,m,na,"Z","M",J,Q,"L",J,q,"M",aa,Q,"L",aa,q,"M",a,Q,"L",a,q];$=["M",m,z+1,"L",t,z+1,"M",J-1,Q,"L",J-
1,q,"M",aa-1,Q,"L",aa-1,q,"M",a-1,Q,"L",a-1,q];u=G+E+u;J=I(u+d)+U;u=I(u)+U;q=G+s;aa=h-1;for(d=0;d<h;d+=1)a=e[d],t=(a.maxvalue-Y)/M,O=r*t+K,s=I(O)+U,d?(B.ratio+=pa,B.color+=pa,B.alpha+=pa,Da.push("L",s,u,s,J,"M",s,u),d===aa?(k=xa,s=O+2):(k=ma,s=O)):(Da.push(s,u,"L",s,J,"M",s,u),k=Ga,s=O-2),B.ratio+=100*(t-v),B.color+=ba(a.code,sa),B.alpha+=ba(a.alpha,100),v=t,a.legendItem=p.text(c).attr({text:a.label,x:s,y:q,"text-anchor":k,direction:b,"vertical-align":ma}).css(l),a.legendSymbol=p.text(c).attr({text:a.scaleLabel,
x:O,y:J,"text-anchor":ma,direction:b,"vertical-align":Fa}).css(l);N.xMin=L.xMin=0;N.xMax=L.xMax=r;N.yMin=L.yMin=0;N.yMax=L.yMax=0;N.y=L.y=0;N.x=0;L.x=r;b=T;e=W+E}w.colorBox=p.rect(ka).attr({x:K,y:G,width:r,height:E,fill:ra(A),stroke:Ma,strokeWidth:Na});S&&(w.colorBoxEffect=p.rect(ka).attr({x:K,y:G,width:C,height:D,fill:g,"stroke-width":0}));w.scale=p.path(c).attr({path:Da,stroke:da,"stroke-width":X});Z=function(a,b,e,d,c){var f;ia?(f=b*M/E+Y,d=0<b?d:d+b+.01):(f=a*M/r+Y,e=0<a?e:e+a+.01);a=Aa(f);c?
(w.slider1.translate(e,d),w.slider1Effect.translate(e,d),w.slider1Tracker.toFront().translate(e,d).tooltip(a,null,null,!0),oa=f):(w.slider2.translate(e,d),w.slider2Effect.translate(e,d),w.slider2Tracker.toFront().translate(e,d).tooltip(a,null,null,!0),ja=f);y&&(ga=clearTimeout(ga),ga=setTimeout(function(){F.setScaleRange&&F.setScaleRange(oa,ja)},100))};h=function(a,b){var e=0,d=e,c,f=this.isFirst,h=f?L:N;if(ia){d=this._startY+b;0>=d&&(d=0);d>E&&(d=E);if(f?d>h.y:d<h.y)d=h.y;Ha(d-this.y)>=(this.snapPX||
0)&&(c=!0)}else{e=this._startX+a;0>=e&&(e=0);e>r&&(e=r);if(f?e>h.x:e<h.x)e=h.x;Ha(e-this.x)>=(this.snapPX||0)&&(c=!0)}c&&(Z(e,d,e-this.x,d-this.y,f),this.x=e,this.y=d)};S=function(){var a=this.isFirst;this._startX=this.x;this._startY=this.y;this._scaleStart=oa;this._scaleEnd=ja;ha.raiseEvent("LegendPointerDragStart",{pointerIndex:a?0:1,pointers:[{value:oa},{value:ja}],legendPointerHeight:W,legendPointerWidth:T},F.logic.chartInstance)};C=function(){var a=this._scaleStart,b=this._scaleEnd;ha.raiseEvent("LegendPointerDragStop",
{pointerIndex:this.isFirst?0:1,pointers:[{value:oa},{value:ja}],legendPointerHeight:W,legendPointerWidth:T},F.logic.chartInstance);a===oa&&b===ja||ha.raiseEvent("LegendRangeUpdated",{previousMinValue:a,previousMaxValue:b,minValue:oa,maxValue:ja},F.logic.chartInstance);delete this._scaleStart;delete this._scaleEnd};D=Aa(Y);w.slider1=p.path(c).attr({path:P,fill:f,strokeWidth:1,stroke:fa});w.slider1Effect=p.path(c).attr({path:$,fill:"none",strokeWidth:1,stroke:ea});za&&(m-=.5*(R(30,b)-b),z-=.5*(R(40,
e)-e),b=R(30,b),e=R(40,e));w.slider1Tracker=p.rect(c).attr({ishot:!0,width:b,height:e,x:m,y:z,fill:Ja,stroke:"none"}).drag(h,S,C,N,N,N).tooltip(D,null,null,!0).css(n);D=Aa(x);w.slider2=p.path(c).attr({path:P,fill:f,strokeWidth:1,stroke:fa}).translate(L.x,L.y);w.slider2Effect=p.path(c).attr({path:$,fill:"none",strokeWidth:1,stroke:ea}).translate(L.x,L.y);w.slider2Tracker=p.rect(c).attr({ishot:!0,width:b,height:e,x:m,y:z,fill:Ja,stroke:"none"}).translate(L.x,L.y).css(n).drag(h,S,C,L,L,L).tooltip(D,
null,null,!0)}}}]);
FusionCharts.register("module",["private","modules.renderer.js-maps",function(){var U=this,Z=U.window,F=U.hcLib,W=F.chartAPI,ha=Z.document,c=F.pluck,ua=F.imprint,H=F.extend2,sa=F.parseTooltext,g=F.pluckNumber,Ca=F.pluckFontSize,ya=F.HCstub,Ea=H(F.defaultPaletteOptions,{foregroundcolor:"333333",foregroundalpha:"100",foregrounddarkcolor:"111111",foregrounddarkalpha:"100",foregroundlightcolor:"666666",foregroundlightalpha:"100",backgroundlightcolor:"FFFFFF",backgroundlightalpha:"100",backgroundlightangle:90,
backgroundlightratio:"",backgroundcolor:"FFFFCC",backgroundalpha:"100",backgrounddarkcolor:"ffcc66",backgrounddarkalpha:"100",backgrounddarkangle:270,backgrounddarkratio:"",shadow:1}),la=F.setLineHeight,ta=F.getValidValue,ga=F.parseUnsafeString,pa=F.getFirstColor,V=F.graphics.convertColor,ca=F.hashify,va=F.getDashStyle,Fa=Z.navigator.userAgent,ma=/msie/i.test(Fa)&&!Z.opera,xa=/AppleWebKit/.test(Fa),Ga=/stroke/ig,wa=F.hasSVG,qa=F.FC_CONFIG_STRING,ba=Z.Math,P=ba.min,ra=ba.max,za=ba.ceil,I=F.toRaphaelColor,
R={left:"start",right:"end",center:"middle"},T=function(b,e){var d;b||(b={});for(d in e)b[d]=e[d];return b},Ha=function(b){var e=this.parentNode;if(!e)return!1;for(;e&&e!==ha.documentElement;){if(e===b)return!0;e=e.parentNode}return!1},X=function(b,e){var d=e?T(b.FCcolor,e):{FCcolor:b};d.toString=I;return d},Ia=function(b,e){var d,c;this.index=e;for(c in b)d=Ea[b[c]],this[c]=d instanceof Array?d[e]:d},Aa={right:function(b,e){return e},left:function(b,e){return b-e},center:function(b,e){return 2*P(e,
b-e)}},Ja={top:function(b,e){return e},middle:function(b,e){return 2*P(e,b-e)},bottom:function(b,e){return b-e}},Ba=function(b,e,d,c){e=P(b,e);b=.02*e;e*=.07;c=parseFloat(c);d=parseFloat(d);return isNaN(c)||isNaN(d)?isNaN(c)?isNaN(d)?{min:b,max:e}:{min:parseInt(d/10,10),max:d}:{min:c,max:10*c}:c<d?{min:c,max:d}:{min:d,max:c}},La=function(b){for(var e=b&&b.length||0,d={},c;e--;)c=b[e],void 0!==c.id&&(d[c.id.toLowerCase()]=c);return d},Ka=function(b,e){var d,c={};e=e||1;if(!b||"object"!==typeof b)return c;
for(d in b)Ga.test(d)||("stroke-width"===d?(c[d]=Number(b[d])/e,xa&&(c[d]=c[d]&&za(c[d])||0)):c[d]=b[d]);return c},p=function(){this.hoverEntity&&(F.raiseEvent.apply(F,this.hoverEntityEventArgs),delete this.hoverEntityEventArgs,this.hoverEntity&&this.hoverEntityAttr&&this.hoverEntity.attr(this.hoverEntityAttr),delete this.hoverEntityAttr,this.hoverEntity=null)},n=function(b,e){var c=b&&b.length||!1,h=e||"id",a={},f;if(!b)return b;for(;c--;)f=b[c],void 0!==f[h]&&(a[f[h].toLowerCase()]=f);return a},
m=function(b,e,c,h){function a(){var a=this,b=a.entityPathMap,e=a.data,c=a.items,d,e=La(e);u=function(){for(var h,g=b[d];g;)c[d]?a=null:((h=e[d])?h.mapItem=c[d]=new z(d,ua(f(h),g),q,a.group):c[d]=new z(d,g,q,a.group),d=g.nextId&&g.nextId.toLowerCase(),g=void 0!==d&&b[d]||null);k.call(a)};v=function(){var d,h,g=s,l,u=0;for(l in O)if(!c[l]&&(d=b[l],(h=e[l])?h.mapItem=c[l]=new z(l,ua(f(h),d),q,a.group):c[l]=new z(l,d,q,a.group),u+=1,delete O[l],u===g))break;u<n?(n-=u,setTimeout(v,0)):k.call(a)};(d=w&&
w.toLowerCase())?u():v()}function f(a){delete a.outlines;delete a.label;delete a.shortlabel;delete a.labelposition;delete a.labelalignment;delete a.labelconnectors;return a}function g(){var a=this.items,b=[],e,c={id:"entityLabels",items:b};for(e in a)a[e].drawLabel(b);m.addGroup(c)}function l(){var a=this.items,b;for(b in a)a[b].destroy();delete this.entityPathMap;delete this.data;delete this.chartObj;delete this.items;delete this.group}function k(){M.entities.labelsOnTop&&g.call(this);this.ready=
!0;q.checkComplete()}if(c&&c.getEntityPaths()){var w=c.getFirstId(),n=c.entityCount,O=c.getEntityPaths(!0),q=e,m=e.mapAnnotations,M=q.options,s=wa?100:50,u,v,S;this.entityPathMap=O;this.data=b;this.chartObj=q;this.items={};this.ready=!1;this.group=h||e.mapGroup;this.isReady=function(){return this.ready};a.call(this);this.drawLabels=g;this.destroy=l;this.init=a;this.initComplete=k;q.__canvasMouseOutListenerAdded||(q.__canvasMouseOutListenerAdded=!0,S=e.paper.canvas,F.addEvent(S,"mouseout",function(a){a=
a.originalEvent.relatedTarget||a.originalEvent.toElement;!ma||wa?a&&a.ownerSVGElement&&a.ownerSVGElement===S||p.call(q):a===ha.documentElement||a===e.container||a===e.container.parentElement?p.call(q):Ha.call(a,S)||p.call(q)}))}},z=function(b,e,d,h){function a(a){var b=this.featureConfig;return b&&"undefined"!==typeof b[a]?Boolean(b[a]):!1}function f(){var b;if(a.apply(this,["_ds"])){b=e.labels&&e.labels[0];if(!b)return;b=(r.useSNameInTooltip?b.shortText:b.text)+(isNaN(A)?"":r.tooltipSepChar+B)}else b=
(r.useSNameInTooltip?e.shortLabel:e.label)+(isNaN(A)?"":r.tooltipSepChar+B);return b}function k(a,b,d){b?d&&"undefined"!==typeof e.displayvalue?a=e.displayvalue:(a=c(r.includeNameInLabels?r.useShortName?a.shortText:a.text:""),r.includeValueInLabels&&!isNaN(A)&&(a=void 0===a?B:a+K+B)):a=a.text;return a}function l(a){for(var b=a&&a.length||0,e;b--;)e=a[b],this.connectorElem[b]=D.path(e,this.group).attr({transform:ka.transform,stroke:V(R,T),"shape-rendering":"crisp","stroke-width":P})}function y(){var a=
this.chart.paper,b=wa||!ma?"litepath":"path",e=this.eJSON.outlines,c=this.group,f,h,g;f=e&&e.length||0;if(this.hasFeature("_ds")){if(this.hasFeature("isDataEnabled"))if(L)for(;f--;)h=e[f].outline,this.svgElems[f]={},this.svgElems[f].graphic=a[b](h,c).attr(ka).tooltip(t).shadow(ha,d.shadowLayer);else for(;f--;)h=e[f].outline,this.svgElems[f]={},this.svgElems[f].graphic=a[b](h,c).tooltip(t).attr(ka);else if(L)for(;f--;)g=H(H({},ka),Ka(e[f].style,ja)),h=e[f].outline,this.svgElems[f]={},this.svgElems[f].graphic=
a[b](h,c).attr(g).tooltip(t).shadow(ha,d.shadowLayer);else for(;f--;)g=H(H({},ka),Ka(e[f].style,ja)),h=e[f].outline,this.svgElems[f]={},this.svgElems[f].graphic=a[b](h,c).tooltip(t).attr(g);this.hasFeature("isDataEnabled")&&this.addMouseGestures()}else{if(L)for(;f--;)h=e[f],this.svgElems[f]={},this.svgElems[f].graphic=a[b](h,c).attr(ka).tooltip(t).shadow(ha,d.shadowLayer);else for(;f--;)h=e[f],this.svgElems[f]={},this.svgElems[f].graphic=a[b](h,c).tooltip(t).attr(ka);this.addMouseGestures()}return this}
function w(a){var b=this.chart;b.hoverEntityEventArgs=["entityrollout",this.eventArgs,b.fusionCharts,[b.fusionCharts.id,"rollOut",this.legacyEventArgs],a];na&&this.isVisible&&(b.hoverEntity=this,b.hoverEntityAttr=this.revertAttr,this.attr(this.hoverAttr));F.raiseEvent("entityrollover",this.eventArgs,b.fusionCharts,[b.fusionCharts.id,"rollOver",this.legacyEventArgs],a)}function n(a,b,e){var c=this,f=c.chart,h=a.labelPosition,g=a.labelAlignment,l=c.svgElems[0]&&c.svgElems[0].graphic,u=a.style,r,v,q,
s,y;h?(l=h[0],h=h[1]):(h=l.getBBox(),l=h.x+h.width/2,h=h.y+h.height/2);g?(r=g[0],g=g[1],"right"===r?l-=Z:"left"===r&&(l+=Z),"top"===g?h-=Z:"bottom"===g&&(h+=Z)):(r="center",g="middle");v=$;q=parseFloat(ca)/d.sFactor;s=W;y=la;!b&&u&&(u.color&&(v=u.color),u["font-size"]&&(q=parseFloat(u["font-size"])/d.sFactor),u["font-family"]&&(s=u["font-family"]),void 0!==u["font-weight"]&&(y="bold"===u["font-weight"]));return{x:l.toString(),y:h.toString(),wrapwidth:Aa[r](pa,l+ua)-Z,wrapheight:Ja[g](ta,h+va)-Z,wrap:1,
type:"text",align:r,valign:g,text:k(a,b,e),tooltext:t,link:N,bgcolor:"",bordercolor:"",fillcolor:v,fontsize:q,font:s,bold:y,onclick:function(a){U.raiseEvent("entityclick",c.eventArgs,d.fusionCharts,a)},onmouseover:function(a){c!==f.hoverEntity&&(p.call(c.chart),w.call(c,a))},ontouchstart:function(a){c!==f.hoverEntity&&(p.call(c.chart),w.call(c,a))}}}function O(a){var b=this.eJSON,e=this.hasFeature("isDataEnabled"),c,d;if(!I)return null;if(this.hasFeature("_ds"))for(d=(b=b.labels)&&b.length||0;d--;)c=
b[d],a.push(this.getLabelObject(c,e,!d)),c.labelConnectors&&this.drawLabelConnectors(c.labelConnectors);else c={text:b.label,shortText:b.shortLabel,labelAlignment:b.labelAlignment,labelPosition:b.labelPosition},a.push(this.getLabelObject(c,!0,!0)),b.labelConnectors&&this.drawLabelConnectors(b.labelConnectors)}function q(a,b){var e=this.svgElems,c;for(c in e)e[c].graphic&&e[c].graphic.attr(a,b)}function m(){var a=this.svgElems,b;this.isVisible=!0;for(b in a)a[b].graphic&&a[b].graphic.attr(ka)}function M(){var a=
this.svgElems,b=this.chart,e;this.isVisible=!1;b.hoverEntity===this&&p.call(b);for(e in a)a[e].graphic&&a[e].graphic.attr(oa)}function s(a){U.raiseEvent("entityclick",this.node.__entity.eventArgs,d.fusionCharts,a);void 0!==N&&d.logic.linkClickFN.call({link:N})}function u(a){var b=this.node.__entity,e=b.chart;b!==e.hoverEntity&&(p.call(e),w.call(b,a))}function v(){var a=this.eJSON,b=this.svgElems,e;this.eventArgs={value:this.value,label:a.label,shortLabel:a.shortLabel,originalId:this.originalId||this.id,
id:this.id};this.legacyEventArgs={value:this.value,lName:a.label,sName:a.shortLabel,id:this.originalId||this.id};na&&(this.hoverAttr={fill:this.hoverColor.toString()},this.revertAttr={fill:this.fillColor.toString()},ea!==da&&(this.hoverAttr["stroke-width"]=ea,this.revertAttr["stroke-width"]=da));if(!isNaN(A)||aa)for(e in b)void 0!==N&&b[e].graphic.css({cursor:"pointer",_cursor:"hand"}),b[e].graphic.node.__entity=this,b[e].graphic.click(s).hover(u)}function S(){var a=this.svgElems,b=this.connectorElem,
e;for(e in a)a[e].remove&&a[e].remove();for(e in b)b[e].destroy&&b[e].destroy();delete this.value;delete this.formattedValue;delete this.toolText;delete this.fillColor;delete this.hoverColor;delete this.chart;delete this.group;delete this.id;delete this.isVisible;delete this.svgElems;delete this.connectorElem;delete this.renderer;delete this.options}if(e&&d&&void 0!==b){this.chart=d;this.eJSON=e;this.group=h;this.id=b;this.originalId=e.origId;this.isVisible=!0;this.svgElems={};this.connectorElem=
{};this.featureConfig=e.options;"object"===typeof this.featureConfig&&(this.featureConfig._ds=!0);var C=d.options,D=d.paper,r=C.entities,E=r.dataLabels.style;b=e.cleanValue;var A=null===b?void 0:b,B=this.formattedValue=e.formattedValue||"",K=r.labelSepChar,G=g(e.showtooltip,r.showTooltip);b=f.call(this);h={formattedValue:B,sName:e.shortLabel,lName:e.label};var t=G?ga(c(sa(c(e.tooltext,r.tooltext,b),[1,2,7,38,39],h,e))):"",J,x,z,I=g(e.showlabel,r.showLabels);h=c(e.bordercolor,r.borderColor);b=c(e.borderalpha,
r.borderAlpha);var G=1===r.scaleBorder,da=g(e.borderthickness,r.borderThickness),R=c(e.labelconnectorcolor,r.connectorColor),T=c(e.labelconnectoralpha,r.connectorAlpha),P=g(e.labelconnectorthickness,r.connectorThickness),W=c(e.font,E.fontFamily),ca=g(parseInt(e.fontsize,10),parseInt(E.fontSize,10)),$=c(e.fontcolor,E.color),Z=g(e.labelpadding,r.labelPadding),aa=r.hoverOnNull,na=g(e.showhovereffect,e.usehovercolor,aa?r.showHoverEffect:isNaN(A)?0:r.showHoverEffect),ea=g(e.borderhoverthickness,e.hoverborderthickness,
r.hoverBorderThickness),la=g(e.fontbold,0),N=e.link,L=r.shadow;z=!ma||wa;E=d.sFactor/r.baseScaleFactor;J=d.strokeWidth;x=(z?r.baseScaleFactor:1)*J;var oa=r.hiddenEntityFillObject||(r.hiddenEntityFillObject={fill:X({color:r.hiddenEntityColor,alpha:r.hiddenEntityAlpha}).toString()}),ja,ka,ha,C=C[qa],pa=C._labelBaseWidth,ta=C._labelBaseHeight,ua=C._labelXOffset,va=C._labelYOffset;z?(da=G?da*x:da/E,P/=E,ja=G?E:d.sFactor,xa&&(da=da&&za(da)||0,P=P&&za(P)||0)):(da=G?da*J:da,ja=G?d.scaleFactor:r.baseScaleFactor);
r.showHiddenEntityBorder||(oa["stroke-width"]=0);void 0===ea?ea=da:z?(ea=G?da*x:ea/E,xa&&(ea=ea&&za(ea)||0)):ea=G?ea*J:ea;!r.showNullEntityBorder&&isNaN(A)&&(da=0);void 0!==c(e.color,e.alpha,e.angle,e.ratio)?(G=c(e.color,r.fillColor),C=c(e.alpha,r.fillAlpha),J=c(e.angle,r.fillAngle),x=c(e.ratio,r.fillRatio),z=X({color:G,alpha:C,angle:J,ratio:x})):(r.fillColorObject||(r.fillColorObject=X({color:c(r.fillColor),alpha:c(r.fillAlpha),angle:c(r.fillAngle),ratio:c(r.fillRatio)})),r.emptyColorObject||(r.emptyColorObject=
X({color:c(r.nullEntityColor),alpha:c(r.nullEntityAlpha),angle:c(r.nullEntityAngle),ratio:c(r.nullEntityRatio)})),z=isNaN(A)?r.emptyColorObject:r.fillColorObject,G=z.FCcolor.color,C=z.FCcolor.alpha,J=z.FCcolor.angle,x=z.FCcolor.ratio);""===t&&(G=0);ka={transform:wa||!ma?"":d.transformStr,stroke:V(h,b),"stroke-width":da,fill:(this.fillColor=z).toString()};h=C.split(",");da&&h.push(b);ha={scalefactor:[E,d.sFactor],opacity:ra.apply(ba,h)/100};na&&(void 0!==c(e.fillhovercolor,e.fillhoveralpha,e.fillhoverangle,
e.fillhoverratio,e.hoverfillcolor,e.hoverfillalpha,e.hoverfillratio,e.hoverfillangle)?(G=c(e.fillhovercolor,e.hoverfillcolor,r.hoverFillColor),C=c(e.fillhoveralpha,e.hoverfillalpha,r.hoverFillAlpha),J=c(e.fillhoverangle,e.hoverfillangle,r.hoverFillAngle),x=c(e.fillhoverratio,e.hoverfillratio,r.hoverFillRatio),b=X({color:G,alpha:C,angle:J,ratio:x})):(r.hoverColorObject||(r.hoverColorObject=X({color:r.hoverFillColor,alpha:r.hoverFillAlpha,angle:r.hoverFillAngle,ratio:r.hoverFillRatio})),b=r.hoverColorObject),
this.hoverColor=b);this.value=A;this.addMouseGestures=v;this.attr=q;this.draw=y;this.drawLabel=O;this.getLabelObject=n;this.destroy=S;this.show=m;this.hide=M;this.hasFeature=a;this.drawLabelConnectors=l;y.call(this);r.hideNullEntities&&void 0===A&&this.hide()}},t=function(b,e,c,h){this.id=b;this.definition=e;this.application=c;this.rapi=h;this.markerLabel=this.markerShape=this.label=this.options=this.value=this.hasValue=null;this.drawOptions={shape:null,label:null};this.drawComplete=!1;if(b=h.options)this._conf=
b[qa];this.init()},k=function(b,e,c,h){this.options=b;this.from=e;this.to=c;this.api=h;if(b=h.options)this._conf=b[qa]},x=function(b,e){function d(){var b=w.definition,c=n(b)||{},d=n(w.application)||{},h=w.shapes,g,l;if(b&&b.length){if(h&&h.length)for(b=h.length;b;--b)if(g=h[b-1],l=g.id.toLowerCase())a[l]=g;for(l in c){g=c[l];h=new t(l,g,d[l],e);if(b=h.getShapeId())h.shapeObj=a[b];f[l]=h}}}function h(){var b=w.items,c=w.shapes,d,h,g,l;if(b&&b.length){if(c&&c.length)for(d=c.length;d;--d)if(h=c[d-1],
l=h.id.toLowerCase())a[l]=h;for(d=b.length;d--;)if(h=b[d],l=h.id&&h.id.toLowerCase())void 0!==h.value&&""!==h.value&&parseFloat(h.value),h.mapItem=c=new t(l,h,null,e),g=c.getShapeId(),h.__hideMarker&&(c._isHidden=!0),g&&(c.shapeObj=a[g]),f[l]=c}}var a={},f={},g=[],l=e.options.markers,y=e.options.connectors,w=b,p=e.mapAnnotations,m,q,Y,M,s=[];this.items=f;(function(){var a=t.prototype,b=k.prototype,d;d=Boolean(c(l.hoverFillColor,l.hoverFillAlpha,l.hoverFillAngle,l.hoverFillRatio,l.hoverBorderThickness,
l.hoverBorderColor,l.hoverBorderAlpha));a.markerFont=l.dataLabels.style.fontFamily;a.markerFontSize=l.dataLabels.style.fontSize;a.markerFontColor=l.dataLabels.style.fontColor;a.showMarkerTooltip=l.showTooltip;a.showHoverEffect=d;a.tooltext=l.tooltext;a.showMarkerLabels=l.showLabels;a.markerLabelPadding=l.labelPadding;a.labelWrapWidth=l.labelWrapWidth;a.labelWrapHeight=l.labelWrapHeight;a.labelSepChar=l.labelSepChar;a.tooltipSepChar=l.tooltipSepChar;a.fillColor=l.fillColor;a.fillAlpha=l.fillAlpha;
a.fillRatio=l.fillRatio;a.fillAngle=l.fillAngle;a.hoverFillColor=l.hoverFillColor;a.hoverFillAlpha=l.hoverFillAlpha;a.hoverFillRatio=l.hoverFillRatio;a.hoverFillAngle=l.hoverFillAngle;a.startAngle=l.startAngle;a.shapeId=l.shapeId;a.borderThickness=l.borderThickness;a.borderColor=l.borderColor;a.borderAlpha=l.borderAlpha;a.hoverBorderThickness=l.hoverBorderThickness;a.hoverBorderColor=l.hoverBorderColor;a.hoverBorderAlpha=l.hoverBorderAlpha;a.markerRadius=l.radius;a.autoScale=l.autoScale?e.sFactor:
1;a.shadow=l.shadow;a.applyAll=l.applyAll;a.dataEnabled=l.dataEnabled;a.valueToRadius=l.valueToRadius;a=Boolean(c(y.hoverthickness,y.hovercolor,y.hoveralpha));b.showHoverEffect=a;b.showTooltip=y.showTooltip;b.tooltext=y.tooltext;b.thickness=y.thickness;b.color=y.color;b.alpha=y.alpha;b.hoverThickness=y.hoverthickness;b.hoverColor=y.hovercolor;b.hoverAlpha=y.hoveralpha;b.dashed=y.dashed;b.dashlen=y.dashLen;b.dashgap=y.dashGap;b.font=y.font;b.fontsize=y.fontSize;b.fontcolor=y.fontColor;b.bgcolor=y.labelBgColor;
b.bordercolor=y.labelBorderColor;b.shadow=y.shadow;b.hideOpen=y.hideOpen})();l.dataEnabled?h():d();(function(){var b=f,e=[],c,d,h,g;q=p.addGroup({items:[]});m=p.addGroup({fillalpha:"100",items:e});for(g in b)c=null,d=b[g],h=d.getShapeId(),d&&!d._isHidden&&(h&&(d.shapeObj=a[h]),c=d.draw()),c&&(d._annotationIndex=e.length,d.markerShape=c.markerShape&&m.addItem(c.markerShape),d.markerLabel=c.markerLabel&&q.addItem(c.markerLabel))})();(function(){var a=y.showLabels,b=w.connectors,c=b&&b.length,d=[],h=
[],l,q,p;if(c)for(s.push({id:"connectorLabels",fillalpha:"100",items:h}),s.push({id:"connectors",fillalpha:"100",items:d});c--;)if(p=b[c],p.from&&p.to&&(l=f[p.from.toLowerCase()],q=f[p.to.toLowerCase()],l&&q&&(!y.hideOpen||!l._isHidden&&!q._isHidden)&&(g.push(q=new k(p,l,q,e)),q.connectJSON=l=q.computeConnectorJSON())))d.push(l),l.label&&a&&h.push(q.getLabelJSON())})();M=s.length;for(e.internalAnnotations={};M--;)Y=s.shift(),Y.id?e.internalAnnotations[Y.id]=p.addGroup(Y):p.addGroup(Y);this.addMarkerItem=
function(b){var c,d;if((c=b.id.toLowerCase())&&!f[c]){delete b.value;b=new t(c,b,null,e);if(d=b.getShapeId())b.shapeObj=a[d];f[c]=b;c=b.draw();m&&q&&(b.markerShape=c.markerShape&&m.addItem(c.markerShape,!0),b.markerLabel=c.markerLabel&&q.addItem(c.markerLabel,!0))}}};k.prototype={constructor:k,computeConnectorJSON:function(){var b=this.api,e=this.options,d=this.from,h=this.to,a=e.link,f=e.label,k=g(e.showtooltip,this.showTooltip),l=k?c(e.tooltext,this.tooltext):"",y=c(e.thickness,this.thickness),
w=c(e.color,this.color),n=c(e.alpha,this.alpha),m=g(e.showhovereffect,this.showHoverEffect),q=c(e.hovercolor,this.hoverColor,w),t=c(e.hoveralpha,this.hoverAlpha,n),M=c(e.hoverthickness,this.hoverThickness,y),s=c(e.dashed,this.dashed),u=g(e.dashlen,this.dashlen),v=g(e.dashgap,this.dashgap),x;l&&(this.tooltext=l=ga(sa(l,[3,40,41,42,43],{label:f,fromId:d.definition.id,toId:h.definition.id,fromLabel:d.definition.label,toLabel:h.definition.label},e)));return d&&h?(x={fromMarkerId:d.id,toMarkerId:h.id,
label:f},H({type:"line"},{x:d.definition.x,y:d.definition.y,tox:h.definition.x,toy:h.definition.y,dashed:s,dashlen:u,dashgap:v,link:a,tooltext:k?l:"",thickness:y,color:w,alpha:n,label:f,showshadow:this.shadow,_hovereffect:m,_defaultattrs:{stroke:X({color:w,alpha:n}).toString(),"stroke-width":y},_hoverattrs:{stroke:X({color:q,alpha:t}).toString(),"stroke-width":M},onmouseover:function(a){var e=a.data,c=e.wrapper;c&&e.options._hovereffect&&(p.call(b),c.attr(e.options._hoverattrs));U.raiseEvent("connectorrollover",
x,b.fusionCharts,a)},onmouseout:function(a){var e=a.data,c=e.wrapper;c&&e.options._hovereffect&&c.attr(e.options._defaultattrs);U.raiseEvent("connectorrollout",x,b.fusionCharts,a)},onclick:function(a){U.raiseEvent("connectorClick",x,b.fusionCharts,a)}})):null},getLabelJSON:function(){var b=this.connectJSON;return H({type:"text"},{x:((Number(b.x)+Number(b.tox))/2).toString(),y:((Number(b.y)+Number(b.toy))/2).toString(),text:b.label,align:"center",valign:"middle",font:this.font,fontsize:this.fontsize/
this.api.sFactor,fillcolor:this.fontcolor,bgcolor:this.bgcolor,bordercolor:this.bordercolor,tooltext:this.tooltext})}};t.prototype={constructor:t,init:function(){var b;b=this.options=H({},this.definition);this.dataEnabled?isNaN(b.value)||""===b.value||(this.value=parseFloat(b.value),this.hasValue=!0):this.applyAll?this.options=H(b,this.application):this.application&&(this.options=H(b,this.application))},getShapeId:function(){return this.options.shapeid&&this.options.shapeid.toLowerCase()||this.shapeId},
getLabelOptions:function(b,e,c,h,a){var f,g=b&&b.toLowerCase();this.getLabelAlignment[g]||(g="center");b=Number(c.x);f=Number(c.y);c=void 0===h||void 0===a?c.radius||0:/^(top|bottom)$/ig.test(g)&&.5*a||/^(left|right)$/ig.test(g)&&.5*h||0;c=Number(c)+Number(e);return this.getLabelAlignment[g](b,f,c)},draw:function(){if(this.options){var b=this,e=b.rapi,d=b._conf,h=e.translateX,a=e.translateY,f=b.options,k=b.getShapeId(),l=f.scale||1,y=f.label||"",w=(f.labelpos||"top").toLowerCase(),n=void 0===f.formattedValue?
void 0:f.formattedValue,m=f.tooltext||b.tooltext,q=g(f.radius,b.markerRadius)*l*b.autoScale||1E-4,t=c(f.fillcolor,f.color,b.fillColor),M=c(f.fillalpha,f.alpha,b.fillAlpha),s=c(f.fillratio,b.fillRatio),u=c(f.fillangle,b.fillAngle),v=g(f.borderthickness,b.borderThickness),x=c(f.bordercolor,b.borderColor),C=c(f.borderalpha,b.borderAlpha),D=f.labelpadding||b.markerLabelPadding,r,E;if(k){m=m?ga(sa(m,[1,2,3],{formattedValue:n,label:y},f)):n?y+b.tooltipSepChar+n:y;void 0!==n&&null!==n?y=y+b.labelSepChar+
n:isNaN(l)?l=1:0>l?l=0:5<l&&(l=5);r=function(){var c=b.markerShape,d=c.options,f=c.bounds,g=d._markerEventArgs;(c=c.wrapper)&&d.hovereffect&&(p.call(e),c.attr(d._hoverattrs));g||(g=d._markerEventArgs={x:f.x1/f.xs,y:f.y1/f.ys,scaledX:f.x1,scaledY:f.y1,chartX:h+f.x1,chartY:a+f.y1,id:d._markerId,label:d._markerLabel});U.raiseEventGroup(b.id,"markerRollOver",g,e.fusionCharts,b,void 0,void 0,void 0)};E=function(){var a=b.markerShape,c=a.wrapper;c&&a.options.hovereffect&&c.attr(a.options._defaultattrs);
U.raiseEventGroup(b.id,"markerRollOut",a.options._markerEventArgs,e.fusionCharts,void 0,void 0,void 0)};f={x:f.x.toString(),y:f.y.toString(),fillcolor:t,fillalpha:M,fillratio:s,fillangle:u,borderthickness:v,bordercolor:x,borderalpha:C,hovereffect:c(f.showhovereffect,b.showHoverEffect),radius:q.toString(),tooltext:b.showMarkerTooltip?m:"",link:f.link,showshadow:g(f.showshadow,b.shadow),_markerLabel:y,_markerId:f.id,id:(f.id+"").toLowerCase(),onmouseover:function(){r()},onmouseout:function(){E()},onclick:function(a){U.raiseEvent("markerClick",
a.data.options._markerEventArgs,e.fusionCharts,a)}};"triangle"===k?H(f,{type:"polygon",sides:3,startangle:b.startAngle}):"diamond"===k?H(f,{type:"polygon",sides:4,startangle:b.startAngle}):"arc"===k?H(f,{type:"arc",startangle:0,endangle:360,innerradius:.6*q}):"circle"===k?f.type="circle":(D=b.getShapeArgs(),b.dataEnabled&&b.valueToRadius&&void 0!==f.radius?delete D.radius:(!D.radius&&(D.radius=b.markerRadius),D.radius=D.radius*l*b.autoScale),H(f,D));H(f,{hoverfillcolor:c(f.fillhovercolor,b.hoverFillColor,
f.fillcolor),hoverfillalpha:c(f.fillhoveralpha,b.hoverFillAlpha,f.fillalpha),hoverfillratio:c(f.fillhoverratio,b.hoverFillRatio,f.fillratio),hoverfillangle:c(f.fillhoverangle,b.hoverFillAngle,f.fillangle),hoverborderthickness:g(f.borderhoverthickness,b.hoverBorderThickness,f.borderthickness),hoverbordercolor:c(f.borderhovercolor,b.hoverBorderColor,f.bordercolor),hoverborderalpha:c(f.borderhoveralpha,b.hoverBorderAlpha,f.borderalpha)});f._defaultattrs={fill:X({alpha:f.fillalpha,color:f.fillcolor,angle:f.fillangle,
ratio:f.fillratio}).toString(),"stroke-width":"0"!==f.showborder?f.borderthickness:0,stroke:V(f.bordercolor,f.borderalpha)};f._hoverattrs={fill:X({alpha:f.hoverfillalpha,color:f.hoverfillcolor,angle:f.hoverfillangle,ratio:f.hoverfillratio}).toString(),"stroke-width":"0"!==f.showborder?f.hoverborderthickness:0,stroke:V(f.hoverbordercolor,f.hoverborderalpha)};"image"===f.type&&(f.borderthickness=f.borderthickness||0,f.onload=function(a){var b=this.options,c=a.width;a=a.height;var d=(Number(b.x)-c/(2*
e.sFactor))*e.sFactor,b=(Number(b.y)-a/(2*e.sFactor))*e.sFactor,f;if(c&&a)for(f in{wrapper:1,tracker:1})this[f]&&this[f].attr({x:d,y:b,width:c,height:a})});b.drawOptions.shape=f;if(!b.showMarkerLabels)return{markerShape:f};D=f.labelpadding||b.markerLabelPadding;l=b.getLabelOptions(w,D,f);w=l.align;k=l.valign;m=d._labelBaseWidth;n=d._labelBaseHeight;q=d._labelXOffset;d=d._labelYOffset;m=b.labelWrapWidth?b.labelWrapWidth:b.getWrapWidth[w](m,Number(l.x)+q);d=b.labelWrapHeight?b.labelWrapHeight:b.getWrapHeight[k](n,
Number(l.y)+d);m>D&&(m-=D);d>D&&(d-=D);b.drawOptions.label="center"==w&&"middle"==k?H({type:"text"},{text:y,tooltext:f.tooltext,x:l.x,y:l.y,align:w,valign:l.valign,wrap:1,wrapwidth:m,wrapheight:d,fontsize:b.markerFontSize/e.sFactor,font:b.markerFont,fillcolor:b.markerFontColor,onmouseover:function(){r()},onmouseout:function(){E()}}):H({type:"text"},{text:y,tooltext:f.tooltext,x:l.x,y:l.y,align:w,valign:l.valign,wrap:1,wrapwidth:m,wrapheight:d,fontsize:b.markerFontSize/e.sFactor,font:b.markerFont,
fillcolor:b.markerFontColor});return{markerShape:f,markerLabel:b.drawOptions.label}}}},show:function(){this.setMarkerVisibility(!0)},hide:function(){this.setMarkerVisibility(!1)},setMarkerVisibility:function(b){var e=this.rapi&&this.rapi.internalAnnotations;if(e=(e=e&&e.markers)&&e.items)if(e=e[this._annotationIndex])this._origFill||(this._origFill=X({alpha:e.fillAlpha,color:e.fillColor,angle:e.fillAngle,ratio:e.fillRatio}),this._hideFill=X({alpha:"0",color:e.fillColor,angle:e.fillAngle,ratio:e.fillRatio})),
b?e.wrapper.attr({fill:this._origFill}):e.wrapper.attr({fill:this._hideFill})},getShapeArgs:function(){var b=H({},this.shapeObj),e;return b?("polygon"===b.type?3>b.sides?b.type="circle":b.startangle=this.startAngle:"arc"===b.type&&(e=(b.radius||this.markerRadius)*this.autoScale,b.radius=e,b.innerradius=b.innerradius&&b.innerradius*this.autoScale||.6*e),b):null},destroy:function(){var b=this.markerShape,e=this.markerLabel,c;b&&b.destroy();e&&e.destroy();for(c in this)delete this[c]},getLabelAlignment:{top:function(b,
e,c){return{x:b.toString(),y:(e-c).toString(),align:"center",valign:"top"}},left:function(b,e,c){return{x:(b-c).toString(),y:e.toString(),align:"right",valign:"middle"}},right:function(b,e,c){return{x:(b+c).toString(),y:e.toString(),align:"left",valign:"middle"}},bottom:function(b,c,d){return{x:b.toString(),y:(c+d).toString(),align:"center",valign:"bottom"}},center:function(b,c){return{x:b.toString(),y:c.toString(),align:"center",valign:"middle"}}},getWrapWidth:{right:function(b,c){return c},left:function(b,
c){return b-c},center:function(b,c){return 2*P(c,b-c)}},getWrapHeight:{top:function(b,c){return c},middle:function(b,c){return 2*P(c,b-c)},bottom:function(b,c){return b-c}}};T(F.eventList,{entityrollover:"FC_Event",entityrollout:"FC_Event"});W("geo",{name:"geo",friendlyName:"Map",revision:1,creditLabel:!1,standaloneInit:!1,annotationInteractionEvents:!1,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,baseWidth:400,baseHeight:300,baseScaleFactor:1,defaultSeriesType:"geo",
rendererId:"maps",entities:{},draw:function(b,c){var d=this.renderer,h=this.chartInstance;d||(d=this.renderer=new W("renderer."+this.rendererId));this.updateDefaultAnnotations();h.addEventListener("internal.mapdrawingcomplete",function(a,b){c&&c.apply(this,[b.renderer]);a.detachHandler()});return d.init(this,b,function(a){a.checkComplete()})},chart:function(b,e){H(this.dataObj.chart,{charttopmargin:this.dataObj.chart.maptopmargin,chartrightmargin:this.dataObj.chart.maprightmargin,chartbottommargin:this.dataObj.chart.mapbottommargin,
chartleftmargin:this.dataObj.chart.mapleftmargin,animation:this.dataObj.chart.animation||"0"});var d=this.dataObj,h=ya(d,b,e,this),a=d.chart,f=d.markers,k=h.chart,l=h[qa],y=k.useRoundEdges=1===g(a.useroundedges),w=y?1:0,y=y?0:1,p=k.use3DLighting=1===g(a.use3dlighting,1),n=H({},h.tooltip.style),q=new Ia(this.colorPaletteMap,(0<a.palette&&6>a.palette?a.palette:g(this.paletteIndex,1))-1),m=c(a.basefont,"Verdana,sans"),t=Ca(a.basefontsize,10),s=c(a.basefontcolor,q.basefontcolor),u=Ca(a.outcnvbasefontsize,
t),v=c(a.outcnvbasefont,m),x=u+"px",C=ca(c(a.outcnvbasefontcolor,s)),D=c(a.bgcolor,a.canvasbgcolor,q.canvasbgcolor),r=c(a.bgalpha,a.canvasbgalpha,q.canvasbgalpha),E=g(a.usevaluesformarkers,d.markers&&d.markers.items&&d.markers.items.length,!(d.markers&&d.markers.application&&d.markers.application.length&&d.markers.definition&&d.markers.definition.length)),A,B,K,G,z,J,I,t=t+"px",s=ca(s);this.realtimeEnabled&&this.postHCJSONCreation&&this.postHCJSONCreation.call(this,h);k.events.click=this.linkClickFN;
l.numberFormatter=this.numberFormatter;H(l,{width:b,height:e,showTooltip:g(a.showtooltip,this.showtooltip,1),showHoverEffect:g(a.showhovereffect,1),tooltipSepChar:c(a.tooltipsepchar,", "),showValues:g(a.showvalues,this.showValues,1),showCanvasBG:c(a.showcanvasbg,1),useValuesForMarkers:E,adjustViewPortForMarkers:g(a.adjustviewportformarkers,E),flatScrollBars:g(a.flatscrollbars,0),scrollBar3DLighting:g(a.scrollbar3dlighting,1),outCanvasStyle:{fontFamily:v,color:C,fontSize:x},inCanvasStyle:{fontFamily:m,
fontSize:t,color:s}});la(l.outCanvasStyle);A=la(l.inCanvasStyle);l.trendStyle=l.outCanvasStyle;"0"==l.showCanvasBG&&(r="0");B=c(a.entitybordercolor,a.bordercolor,q.plotbordercolor);K=c(a.entityfillcolor,a.fillcolor,q.plotfillcolor);G=c(a.entityfillalpha,a.fillalpha,q.plotfillalpha);z=c(a.entityfillratio,a.fillratio,q.plotfillratio);J=c(a.entityfillangle,a.fillangle,q.plotfillangle);I=c(a.nullentityfillcolor,a.nullentitycolor,K);E=g(a.showcanvasborder,y)?g(a.canvasborderthickness,1):0;H(h,{chart:{emulateFlashGutter:g(a._emulateflashgutter,
1),defaultSeriesType:this.defaultSeriesType,paletteIndex:q.index,borderRadius:g(a.canvasborderradius,0),borderColor:V(c(a.canvasbordercolor,q.canvasbordercolor),c(a.canvasborderalpha,q.canvasborderalpha)),borderWidth:E,borderDashStyle:g(a.canvasborderdashed,0)?va(g(a.canvasborderdashlen,4),g(a.canvasborderdashgap,2),E):"none",backgroundColor:X({color:D,alpha:r,angle:c(a.bgangle,a.canvasbgangle,q.canvasbgangle),ratio:c(a.bgratio,a.canvasbgratio,q.canvasbgratio)}),plotBorderColor:"#ffffff",plotBorderWidth:0,
plotBackgroundColor:X({color:"#ffffff",alpha:0}),bgSWF:c(a.bgimage,a.bgswf),bgSWFAlpha:g(a.bgimagealpha,a.bgswfalpha,100),bgImageScale:g(a.bgimagescale,100),bgImageDisplayMode:c(a.bgimagedisplaymode,"none").toLowerCase(),logoURL:ta(a.logourl),logoPosition:c(a.logoposition,"tl").toLowerCase(),logoAlpha:g(a.logoalpha,100),logoLink:ta(a.logolink),logoScale:g(a.logoscale,100),logoLeftMargin:g(a.logoleftmargin,0),logoTopMargin:g(a.logotopmargin,0),toolbar:function(){var d={button:{}},f=d.button,h;f.scale=
g(a.toolbarbuttonscale,1.15);f.width=g(a.toolbarbuttonwidth,15);f.height=g(a.toolbarbuttonheight,15);f.radius=g(a.toolbarbuttonradius,2);f.spacing=g(a.toolbarbuttonspacing,5);f.fill=V(c(a.toolbarbuttoncolor,"ffffff"));f.labelFill=V(c(a.toolbarlabelcolor,"cccccc"));f.symbolFill=V(c(a.toolbarsymbolcolor,"ffffff"));f.hoverFill=V(c(a.toolbarbuttonhovercolor,"ffffff"));f.stroke=V(c(a.toolbarbuttonbordercolor,"bbbbbb"));f.symbolStroke=V(c(a.toolbarsymbolbordercolor,"9a9a9a"));f.strokeWidth=g(a.toolbarbuttonborderthickness,
1);f.symbolStrokeWidth=g(a.toolbarsymbolborderthickness,1);h=f.symbolPadding=g(a.toolbarsymbolpadding,5);f.symbolHPadding=g(a.toolbarsymbolhpadding,h);f.symbolVPadding=g(a.toolbarsymbolvpadding,h);h=d.position=c(a.toolbarposition,"tr").toLowerCase();switch(h){case "tr":case "tl":case "br":case "bl":break;default:h="tr"}f=d.hAlign="left"===(""+a.toolbarhalign).toLowerCase()?"l":h.charAt(1);h=d.vAlign="bottom"===(""+a.toolbarvalign).toLowerCase()?"b":h.charAt(0);d.hDirection=g(a.toolbarhdirection,"r"===
f?-1:1);d.vDirection=g(a.toolbarvdirection,"b"===h?-1:1);d.vMargin=g(a.toolbarvmargin,6);d.hMargin=g(a.toolbarhmargin,10);d.x=g(a.toolbarx,"l"===f?0:b);d.y=g(a.toolbary,"t"===h?0:e);return d}()},title:{text:ga(a.caption),offsetX:Number(a.captionxshift),offsetY:Number(a.captionyshift),position:c(a.captionposition,void 0!==a.captionxshift||void 0!==a.captionyshift?"top left":"top"),padding:g(a.captionpadding,10),style:{fontFamily:c(a.captionfontfamily,v),color:c(a.captionfontcolor,C).replace(/^#?([a-f0-9]+)/ig,
"#$1"),fontSize:g(a.captionfontsize,u+3)+"px",fontWeight:0===g(a.captionfontbold)?"normal":"bold"}},subtitle:{text:ga(a.subcaption),style:{fontFamily:c(a.subcaptionfontfamily,a.captionfontfamily,v),color:c(a.subcaptionfontcolor,a.captionfontcolor,C).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:g(a.subcaptionfontsize,g(ra(a.captionfontsize-3,1),u))+"px",fontWeight:0===g(a.subcaptionfontbold)?"normal":"bold"}},orphanStyles:{defaultStyle:{style:H({},l.inCanvasStyle)}},tooltip:{enabled:0!==l.showTooltip,
style:{fontFamily:m,fontSize:t,lineHeight:A,color:s,padding:g(a.tooltippadding,this.tooltippadding,3)+"px",backgroundColor:V(c(n.backgroundColor,a.tooltipbgcolor,q.tooltipbgcolor),c(a.tooltipbgalpha,"100")),borderColor:V(c(n.borderColor,a.tooltipbordercolor,q.tooltipbordercolor),c(a.tooltipborderalpha,"100")),borderWidth:g(a.tooltipborderthickness,y)+"px",borderRadius:g(a.tooltipborderradius,w+1)+"px"},constrain:g(a.constraintooltip,1),shadow:g(a.showtooltipshadow,a.showshadow,1)?{enabled:!0,opacity:ra(g(a.tooltipbgalpha,
100),g(a.tooltipborderalpha,100))/100}:!1},legend:{itemStyle:{fontFamily:c(a.legenditemfont,v),fontSize:g(a.legenditemfontsize,u)+"px",color:ca(c(a.legenditemfontcolor,C)),fontWeight:g(a.legenditemfontbold)?"bold":"normal"},itemHiddenStyle:{fontFamily:v,fontSize:x,color:ca(c(a.legenditemhiddencolor,C))},itemHoverStyle:{color:ca(c(a.legenditemhoverfontcolor,a.legenditemfontcolor,C))},enabled:g(a.showlegend,1),title:{text:ga(a.legendcaption),style:{fontFamily:c(a.legendcaptionfont,v),fontSize:g(a.legendcaptionfontsize,
u)+"px",color:ca(c(a.legendcaptionfontcolor,C)),fontWeight:g(a.legendcaptionfontbold,1)?"bold":"normal"},align:R[c(a.legendcaptionalignment)]},position:c(a.legendposition,0===g(d.colorrange&&d.colorrange.gradient,0)?"right":"bottom"),backgroundColor:c(a.legendbgcolor,q.bgcolor),backgroundAlpha:c(a.legendbgalpha,"100"),borderColor:c(a.legendbordercolor,q.legendbordercolor),borderThickness:c(a.legendborderthickness,"1"),borderAlpha:c(a.legendborderalpha,"100"),shadow:g(a.legendshadow,1),allowDrag:g(a.legendallowdrag,
0),scroll:{scrollBgColor:c(a.legendscrollbgcolor,a.scrollcolor,"AAAAAA"),scrollBtnColor:c(a.legendscrollbtncolor,"BBBBBB"),scrollBarColor:c(a.legendscrollbarcolor,"CCCCCC")},reversed:g(a.reverselegend,0),interactive:g(a.interactivelegend,0),minColor:I,lighting3d:p},markers:{dataLabels:{style:{fontFamily:c(a.markerfont,m),fontSize:g(a.markerfontsize,parseInt(t,10)),fontColor:c(a.markerfontcolor,s)}},showTooltip:g(a.showmarkertooltip,l.showTooltip),showLabels:g(a.showmarkerlabels,a.showlabels,1),showHoverEffect:g(a.showmarkerhovereffect,
1),labelPadding:c(a.markerlabelpadding,"5"),labelWrapWidth:g(a.markerlabelwrapwidth,0),labelWrapHeight:g(a.markerlabelwrapheight,0),fillColor:c(a.markerfillcolor,a.markerbgcolor,q.markerfillcolor),fillAlpha:c(a.markerfillalpha,q.markerfillalpha),fillAngle:c(a.markerfillangle,q.markerfillangle),fillRatio:c(a.markerfillratio,q.markerfillratio),fillPattern:c(a.markerfillpattern,q.markerbgpattern),hoverFillColor:a.markerfillhovercolor,hoverFillAlpha:a.markerfillhoveralpha,hoverFillRatio:a.markerfillhoverratio,
hoverFillAngle:a.markerfillhoverangle,borderThickness:c(a.markerborderthickness,1),borderColor:c(a.markerbordercolor,q.markerbordercolor),borderAlpha:g(a.markerborderalpha,q.markerborderalpha),hoverBorderThickness:a.markerborderhoverthickness,hoverBorderColor:a.markerborderhovercolor,hoverBorderAlpha:a.markerborderhoveralpha,radius:g(a.markerradius&&F.trimString(a.markerradius),7),shapeId:c(a.defaultmarkershape,"circle"),labelSepChar:c(a.labelsepchar,", "),tooltipSepChar:l.tooltipSepChar,autoScale:g(a.autoscalemarkers,
0),tooltext:c(f&&f.tooltext,a.markertooltext),dataEnabled:l.useValuesForMarkers,valueToRadius:g(a.markerradiusfromvalue,1),valueMarkerAlpha:c(a.valuemarkeralpha,"75"),hideNull:g(a.hidenullmarkers,0),nullRadius:g(a.nullmarkerradius,a.markerradius,7),adjustViewPort:g(a.adjustviewportformarkers,0),startAngle:g(a.markerstartangle,90),maxRadius:g(a.maxmarkerradius,0),minRadius:g(a.minmarkerradius,0),applyAll:g(a.applyallmarkers,0),shadow:g(a.showmarkershadow,a.showshadow,0)},connectors:{showHoverEffect:g(a.showconnectorhovereffect,
1),thickness:g(a.connectorthickness,a.markerconnthickness,"2"),color:c(a.connectorcolor,a.markerconncolor,q.markerbordercolor),alpha:c(a.connectoralpha,a.markerconnalpha,"100"),hoverthickness:g(a.connectorhoverthickness,a.connectorthickness,a.markerconnthickness,"2"),hovercolor:c(a.connectorhovercolor,a.connectorcolor,a.markerconncolor,q.markerbordercolor),hoveralpha:c(a.connectorhoveralpha,a.connectoralpha,a.markerconnalpha,"100"),dashed:g(a.connectordashed,a.markerconndashed,0),dashLen:g(a.connectordashlen,
a.markerconndashlen,3),dashGap:g(a.connectordashgap,a.markerconndashgap,2),font:c(a.connectorfont,a.markerconnfont,m),fontColor:c(a.connectorfontcolor,a.markerconnfontcolor,s),fontSize:g(a.connectorfontsize,a.markerconnfontsize,parseInt(t,10)),showLabels:g(a.showconnectorlabels,a.showmarkerlabels,a.showlabels,1),labelBgColor:c(a.connectorlabelbgcolor,a.markerconnlabelbgcolor,q.plotfillcolor),labelBorderColor:c(a.connectorlabelbordercolor,a.markerconnlabelbordercolor,q.markerbordercolor),shadow:g(a.showconnectorshadow,
a.showmarkershadow,a.showshadow,0),showTooltip:g(a.showconnectortooltip,a.showmarkertooltip,l.showTooltip),tooltext:c(f&&f.connectortooltext,a.connectortooltext),hideOpen:g(a.hideopenconnectors,1)},entities:{baseScaleFactor:this.baseScaleFactor,dataLabels:{style:{fontFamily:m,fontSize:t,lineHeight:A,color:h.plotOptions.series.dataLabels.color=s}},fillColor:K,fillAlpha:G,fillRatio:z,fillAngle:J,borderColor:B,borderAlpha:c(a.entityborderalpha,a.borderalpha,this.borderAlpha,"100"),borderThickness:g(a.showentityborder,
a.showborder,1)?g(a.entityborderthickness,a.borderthickness,1):0,scaleBorder:g(a.scaleentityborder,a.scaleborder,0),hoverFillColor:c(a.entityfillhovercolor,a.hoverfillcolor,a.hovercolor,q.plothoverfillcolor),hoverFillAlpha:c(a.entityfillhoveralpha,a.hoverfillalpha,a.hoveralpha,q.plothoverfillalpha),hoverFillRatio:c(a.entityfillhoverratio,a.hoverfillratio,a.hoverratio,q.plothoverfillratio),hoverFillAngle:c(a.entityfillhoverangle,a.hoverfillangle,a.hoverangle,q.plothoverfillangle),hoverBorderThickness:c(a.entityborderhoverthickness,
a.hoverborderthickness),hoverBorderColor:c(a.entityborderhovercolor,q.plotbordercolor),hoverBorderAlpha:c(a.entityborderhoveralpha,q.plotborderalpha),nullEntityColor:I,nullEntityAlpha:c(a.nullentityfillalpha,a.nullentityalpha,G),nullEntityRatio:c(a.nullentityfillratio,a.nullentityratio,z),nullEntityAngle:c(a.nullentityfillangle,a.nullentityangle,J),connectorColor:c(a.labelconnectorcolor,a.connectorcolor,s),connectorAlpha:c(a.labelconnectoralpha,a.connectoralpha,"100"),connectorThickness:g(a.labelconnectorthickness,
a.borderthickness,1),showHoverEffect:g(a.showentityhovereffect,a.usehovercolor,l.showHoverEffect),hoverOnNull:g(a.hoveronnull,a.entityhoveronnull,1),labelPadding:g(a.labelpadding,5),showLabels:g(a.showlabels,1),labelsOnTop:g(a.entitylabelsontop,1),includeNameInLabels:g(a.includenameinlabels,1),includeValueInLabels:g(a.includevalueinlabels,0),useSNameInTooltip:g(a.usesnameintooltip,0),useShortName:g(a.usesnameinlabels,1),labelSepChar:c(a.labelsepchar,", "),showTooltip:g(a.showentitytooltip,l.showTooltip),
tooltipSepChar:l.tooltipSepChar,tooltext:a.entitytooltext,hideNullEntities:g(a.hidenullentities,0),showHiddenEntityBorder:g(a.showhiddenentityborder,1),showNullEntityBorder:g(a.shownullentityborder,1),hiddenEntityColor:c(a.hiddenentitycolor,a.hiddenentityfillcolor,a.hiddenentityalpha||a.hiddenentityfillalpha?I:"ffffff"),hiddenEntityAlpha:c(a.hiddenentityalpha,a.hiddenentityfillalpha,.001),shadow:g(a.showshadow,this.defaultPlotShadow,q.shadow)},entitydef:{useSNameAsId:g(a.usesnameasid,0)}});h.legend.title.style.lineHeight=
la(h.legend.title.style);h.legend.itemStyle.lineHeight=la(h.legend.itemStyle);h.legend.itemHiddenStyle.lineHeight=la(h.legend.itemHiddenStyle);f=Ba(b,e,a.markermaxradius,a.markerminradius);h.markers.maxRadius=f.max;h.markers.minRadius=f.min;a.tooltipcolor&&(h.tooltip.style.color=pa(a.tooltipcolor));void 0!==c(a.clickurl)&&(k.link=a.clickurl,k.style.cursor="pointer",ma&&(k.style._cursor="hand"),h.plotOptions.series.point.events.click=function(){k.events.click.call({link:a.clickurl})});f=k.bgImageDisplayMode;
l=ta(a.bgimagevalign,"").toLowerCase();w=ta(a.bgimagehalign,"").toLowerCase();"tile"==f||"fill"==f||"fit"==f?("top"!=l&&"middle"!=l&&"bottom"!=l&&(l="middle"),"left"!=w&&"middle"!=w&&"right"!=w&&(w="middle")):("top"!=l&&"middle"!=l&&"bottom"!=l&&(l="top"),"left"!=w&&"middle"!=w&&"right"!=w&&(w="left"));k.bgImageVAlign=l;k.bgImageHAlign=w;this.parseStyles(h);la(h.title.style);la(h.subtitle.style);la(h.tooltip.style);h.plotOptions.series.allowPointSelect=!0;this.parseExportOptions(h);this.preSeriesAddition&&
this.preSeriesAddition(h,d,b,e);this.series&&this.series(d,h,this.name,b,e);this.postSeriesAddition&&this.postSeriesAddition(h,d,b,e);this.spaceManager(h,d,b,e);Z.console&&Z.FC_DEV_ENVIRONMENT&&Z.console.log(h);return h},series:function(b,e){function d(b){for(B=b&&b.length||0;B--;)v=b[B],r=v.value,v.cleanValue=a.getCleanValue(r),v.formattedValue=null!==v.cleanValue?a.dataLabels(r):void 0,v.origValue=r,null!==v.cleanValue&&(s=P(v.cleanValue,s),u=ra(v.cleanValue,u))}function h(a,b,d){for(B=a&&a.length||
0;B--;){v=a[B];var f;a:{f=g(v.value);for(var h=void 0,k=void 0,h=void 0,m=D&&D.length||0;m--;)if(h=D[m],k=Number(h.maxvalue),h=g(h.minvalue,e.colorRange.scaleMin),f>=h&&f<=k){f=m;break a}f=null}E=f;null!==E&&(z="gradient"===t.type?e.colorRange.getColorObj(v.value).code:q&&q[E]&&c(q[E].color,q[E].code),x[E]||(x[E]=[]),z&&(v.color=v.color?v.color:z,b&&(v.alpha=v.alpha?v.alpha:b),d&&(p||v.fillhoveralpha||(v.fillhoveralpha=v.alpha),l||v.fillhovercolor||(v.fillhovercolor=v.color)),x[E].push(v)))}}var a=
this.numberFormatter,f=this.hcJSON.series,k=e.markers.valueMarkerAlpha,l=e.markers.hasHoverColor,p=e.markers.hasHoverAlpha,w=this.dataObj,m=e[qa],n=w.colorrange,q=n&&n.color,t=e.legend,x={},n={legendClick:function(){var a;if(a=this.chart)!this.legend&&(this.legend=this.plot.legend),a.legendClick(this,!this.visible)},getEventArgs:function(){var a;if(a=this.chart)return!this.legend&&(this.legend=this.plot.legend),a.getEventArgs(this)},setVisible:function(a){var b=this.data,c=this.legendItem,e=this.visible;
this.visible=a=void 0===a?!e:a;c&&t.colorizeItem&&t.colorizeItem(this,a);for(e=b&&b.length;e--;)(c=b[e].mapItem)&&(a?c.show&&c.show():c.hide&&c.hide())}},s=Infinity,u=-Infinity,v,z,C,D,r,E,A,B;d(w.data||[]);m.useValuesForMarkers&&d(w.markers&&w.markers.items||[]);m._doNotShowLegend=!0;t.type=w.colorrange&&"1"===w.colorrange.gradient?"gradient":"point";Infinity===s&&(s=void 0);-Infinity===u&&(u=void 0);m.dataMin=s;m.dataMax=u;e.colorRange=new F.colorRange({colorRange:w.colorrange,dataMin:s,dataMax:u,
defaultColor:t.minColor,numberFormatter:a});B=(D=e.colorRange.colorArr)&&D.length||0;if(0<B){for(;B--;)C=D[B],!m._doNotShowLegend||""===C.label&&void 0===C.label||(m._doNotShowLegend=!1),f.push(H({type:this.defaultSeriesType,showInLegend:!0,data:[],plot:{},name:C.label,color:C.code,rangeMin:C.minvalue,rangeMax:C.maxvalue,visible:!0},n));h(w.data||[]);m.useValuesForMarkers&&h(w.markers&&w.markers.items||[],k,!0);f=f.reverse();for(A in x)f[A]&&(f[A].data=x[A])}else f.push({type:this.defaultSeriesType,
data:[]});m._doNotShowLegend&&(this.hcJSON.legend.enabled=!1)},preliminaryScaling:function(b,c){for(var d=c.markers&&c.markers.items||[],h=d&&d.length||0,a=Infinity,f=Infinity,g=-Infinity,l=-Infinity,k,m;h--;)m=d[h],k=Number(m.x),m=Number(m.y),a=P(a,k),f=P(f,m),g=ra(g,k),l=ra(l,m);return{x:a,y:f,x1:g,y1:l}},getScalingParameters:function(b,c,d,h){var a=b/c,f=d/(b*this.baseScaleFactor),g=h/(c*this.baseScaleFactor),l=0,k=0;f>g?(f=g,l+=(d-h*a)/2,b=200/(c*f)):(k+=(h-d/a)/2,b=200/(b*f));return{scaleFactor:f,
strokeWidth:b,translateX:l,translateY:k}},calculateMarkerBounds:function(b,c,d,h,a){var f=b.markers,g=b[qa];b=g.dataMin;for(var g=g.dataMax,l=f.minRadius,k=f.maxRadius,m=f.hideNull,p=f.nullRadius,f=f.valueToRadius,n=(c=c.markers&&c.markers.items||[],c.length)||0,q=Infinity,t=Infinity,x=-Infinity,s=-Infinity,u,v,z;n--;)v=c[n],null!==v.cleanValue?(f&&void 0===v.radius&&(v.radius=l+(k-l)*(v.cleanValue-b)/(g-b)),z=Number(v.radius),u=(Number(v.x)+h)*d,v=(Number(v.y)+a)*d,q=P(q,u-z),t=P(t,v-z),x=ra(x,u+
z),s=ra(s,v+z)):m?v.__hideMarker=!0:void 0===v.radius&&(v.radius=p);return{x:q,y:t,x1:x,y1:s}},spaceManager:function(b,c,d,h){var a=b.chart,f=b[qa],g=a.spacingLeft,l=a.spacingTop,k=this.baseWidth,m=this.baseHeight;d-=a.spacingRight+g;a=h-(a.spacingBottom+l);h=f._captionBlock=this.manageTitleSpace(b,c,d,a);var p=f._legendBlock=this.placeLegendBlock(b,c,d,a-h.height,h.isBottom?h.height:0);d-=p.width;var a=a-h.height-p.height,n=p=0;f.useValuesForMarkers?(f.adjustViewPortForMarkers?(f=this.preliminaryScaling(b,
c),f.x1>k&&(k=f.x1),0>f.x&&(k+=-f.x,n=-f.x),f.y1>m&&(m=f.y1),0>f.y&&(m+=-f.y,p=-f.y),f=this.getScalingParameters(k,m,d,a),f=this.calculateMarkerBounds(b,c,f.scaleFactor*this.baseScaleFactor,n,p),b=a,c=d,0>f.x&&(g+=-f.x,d+=f.x),0>f.y&&(l+=-f.y,a+=f.y),f.x1>c&&(d-=f.x1-c),f.y1>b&&(a-=f.y1-b)):(f=this.getScalingParameters(k,m,d,a),this.calculateMarkerBounds(b,c,f.scaleFactor*this.baseScaleFactor,n,p)),f=this.getScalingParameters(k,m,d,a),g+=n*f.scaleFactor*this.baseScaleFactor,l+=p*f.scaleFactor*this.baseScaleFactor):
f=this.getScalingParameters(k,m,d,a);/bottom/i.test(h.position)||(l+=h.height);this.scaleFactor=f.scaleFactor;this.strokeWidth=f.strokeWidth;this.translateX=f.translateX+g;this.translateY=f.translateY+l},placeGLegendBlockRight:F.placeGLegendBlockRight,placeGLegendBlockBottom:F.placeGLegendBlockBottom,placeLegendBlock:function(b,c,d,h,a){var f=b.legend,g=b[qa],l=f.position.toLowerCase(),k={position:l};if("0"===c.chart.showlegend||g._doNotShowLegend)return k.height=0,k.width=0,k;"bottom"===l?(k.height=
"gradient"===f.type?this.placeGLegendBlockBottom(b,c,d,h):this.placeLegendBlockBottom(b,c,d,h),k.width=0,a&&(f.y=-a)):(d/=2,k.width="gradient"===f.type?this.placeGLegendBlockRight(b,c,d,h):this.placeLegendBlockRight(b,c,d,h),k.height=0);return k},manageTitleSpace:function(b,c,d,h){var a=this.hcJSON;b=a.title;c=a.chart;var a=a.subtitle,f=this.smartLabel,g=h/2,l=0,k=b.position.toLowerCase(),m=b.padding,p=!1,n=b.offsetX,q=b.offsetY,t=0,x={},s,u;if(""===b.text&&""===a.text)return{height:0,position:k};
isNaN(n)&&isNaN(q)||(p=!0,n=isNaN(n)?0:n,q=isNaN(q)?0:q);s=b.text;if(""!==s){f.setStyle(b.style);u=f.getOriSize(s);if(u.width>d||u.height>g)u=f.getSmartText(s,d,g),b.text=u.text,u.tooltext&&(b.originalText=u.tooltext);b.height=t=u.height;l+=t}g-=l;s=a.text;if(""!==s){f.setStyle(a.style);u=f.getOriSize(s);if(u.width>d||u.height>g)u=f.getSmartText(s,d,g),a.text=u.text,u.tooltext&&(a.originalText=u.tooltext);l+=a.height=u.height}l=l+m>g?g:l+m;k.match(/left/)?(a.align=b.align="start",a.x=b.x=c.marginLeft):
k.match(/right/)?(a.align=b.align="end",a.x=b.x=d):(a.align=b.align="middle",a.x=b.x=d/2);/bottom/.test(k)?(d=h-l+c.marginTop+m,b.y=d,a.y=d+t,p?(b.y+=q,a.y+=q,b.x+=n,a.x+=n):(c.marginBottom+=l,x.isBottom=!0)):p?(b.y+=q,a.y+=q,b.x+=n,a.x+=n):c.marginTop+=l;x.height=p?0:l;x.position=k;return x},getFirstId:function(){return this.firstEntity},getEntityPaths:function(b){var c={},d=this.entities,h;if(b){for(h in d)c[h]=d[h];return c}return d},redefineEntities:function(b,c){var d=this.entities,h={},a={},
f=0,g,l,k,m,n,p,q,t;for(q=b.length;q--;)if(g=b[q],l=g.internalid,n=g.newid?g.newid:l,k=g.sname,g=g.lname,m=d[l],l=F.trimString(l),n=F.trimString(n),m){h[n]=n={origId:l};a[l]=!0;for(p in m)n[p]=m[p];n.shortLabel=k?k:m.shortLabel;n.label=g?g:m.label}this.entities={};for(t in h)h[t].origId=t,this.entities[t.toLowerCase()]=h[t],f+=1;for(t in d)if(n=d[t],t=F.trimString(t),!a[t]){c.useSNameAsId?(this.entities[n.shortLabel.toLowerCase()]=m={},m.origId=n.shortLabel):(this.entities[t.toLowerCase()]=m={},m.origId=
t);for(p in n)m[p]=n[p];f+=1}this.entityCount=f},colorPaletteMap:{basefontcolor:"foregroundcolor",bordercolor:"foregrounddarkcolor",borderalpha:"foregrounddarkalpha",bgcolor:"backgroundlightcolor",bgalpha:"backgroundlightalpha",bgangle:"backgroundlightangle",bgratio:"backgroundlightratio",canvasbordercolor:"foregrounddarkcolor",canvasborderalpha:"foregrounddarkalpha",canvasbgcolor:"backgroundlightcolor",canvasbgalpha:"backgroundlightalpha",canvasbgangle:"backgroundlightangle",canvasbgratio:"backgroundlightratio",
tooltipbordercolor:"foregrounddarkcolor",tooltipborderalpha:"foregrounddarkalpha",tooltipbgcolor:"backgroundlightcolor",tooltipbgalpha:"backgroundlightalpha",tooltipfontcolor:"foregroundcolor",legendbordercolor:"foregrounddarkcolor",legendborderalpha:"foregrounddarkalpha",markerbordercolor:"foregroundlightcolor",markerborderalpha:"foregroundlightalpha",markerfillcolor:"backgrounddarkcolor",markerfillalpha:"backgrounddarkalpha",markerfillangle:"backgrounddarkangle",markerfillratio:"backgrounddarkratio",
plotfillcolor:"backgroundcolor",plotfillalpha:"backgroundalpha",plotfillangle:"backgroundangle",plotfillratio:"backgroundratio",plothoverfillcolor:"backgrounddarkcolor",plothoverfillalpha:"backgrounddarkalpha",plothoverfillangle:"backgrounddarkangle",plothoverfillratio:"backgrounddarkratio",plotbordercolor:"foregroundcolor",plotborderalpha:"foregroundalpha",shadow:"shadow"},eiMethods:{getMapName:function(){return this.jsVars.hcObj.logic.name},getEntityList:function(){var b=this.jsVars.hcObj,b=b.entities&&
b.entities.items,c,d=[],h,a;for(h in b)a=b[h],c=a.eJSON,d.push({id:a.id,originalId:a.originalId||a.id,label:c.label,shortlabel:c.shortLabel,value:a.value,formattedValue:a.formattedValue,toolText:a.toolText});return d},getDataAsCSV:function(){var b=this.jsVars,b=b.hcObj&&b.hcObj.entities&&b.hcObj.entities.items,c='"Id","Short Name","Long Name","Value","Formatted Value"',d,h,a,f;for(d in b)h=b[d],a=h.eJSON,f=h.value,c+='\r\n"'+h.id+'","'+a.shortLabel+'","'+a.label+'","'+(void 0===f?"":f)+'","'+h.formattedValue+
'"';return c},getMapAttribute:function(){var b=this.jsVars.fcObj;U.raiseWarning(this,"12061210581","run","JavaScriptRenderer~getMapAttribute()",'Use of deprecated "getMapAttribute()". Replace with "getChartAttribute()".');return b.getChartAttribute.apply(b,arguments)},exportMap:function(){var b=this.jsVars.fcObj;U.raiseWarning(this,"12061210581","run","JavaScriptRenderer~exportMap()",'Use of deprecated "exportMap()". Replace with "exportChart()".');return b.exportChart&&b.exportChart.apply(b,arguments)},
addMarker:function(b){this.jsVars.hcObj.markers.addMarkerItem(b)||U.raiseWarning(this,"1309264086","run","MapsRenderer~addMarker()","Failed to add marker. Check the options and try again.")},updateMarker:function(b,c){var d=this.jsVars.hcObj,h=d.markers,d=d.mapAnnotations,a;b&&(b=(b+"").toLowerCase(),h=h.items[b])&&(a=h.options,H(a,c),h=h.draw().markerShape,d.update(b,h))},removeMarker:function(b){var c=this.jsVars.hcObj.markers,d;b&&(b=(b+"").toLowerCase(),(d=c.items[b])&&d.destroy(),delete c.items[b])}}},
W.linebase);W("renderer.maps",{drawGraph:function(){var b=this,c=b.logic.chartInstance,d=b.paper,h=b.layers,a,f,g;b.options.nativeMessage||(h.dataset||(h.dataset=d.group("dataset").insertAfter(h.background),h.tracker=d.group("hot").insertAfter(h.dataset)),b.shadowLayer||(b.shadowLayer=h.shadow=d.group("shadow").insertBefore(h.dataset)),h.dataset&&h.dataset.hide(),h.shadow&&h.shadow.hide(),b.strokeWidth=b.logic.strokeWidth,a=b.logic.scaleFactor,b.translateX=f=b.logic.translateX,b.translateY=g=b.logic.translateY,
b.sFactor=a*b.logic.baseScaleFactor,b.transformStr=["t",f,",",g,"s",a,",",a,",0,0"].join(""),b.options.tooltip&&!1!==b.options.tooltip.enabled&&d.tooltip(b.options.tooltip.style,b.options.tooltip.shadow,b.options.tooltip.constrain),b.mapAnnotations=new F.Annotations,b.mapAnnotations.reset(null,{id:"geo",showbelow:0,autoscale:0,grpxshift:b.translateX?b.translateX:0,grpyshift:b.translateY?b.translateY:0,xscale:100*(b.sFactor?b.sFactor:1),yscale:100*(b.sFactor?b.sFactor:1),options:{useTracker:!0}}),
b.processEntityDefs(),b.drawEntities(),c.addEventListener("internal.mapdrawingcomplete",function(a){a.detachHandler();wa&&(h.dataset&&h.dataset.attr({transform:b.transformStr}),h.shadow&&h.shadow.attr({transform:b.transformStr}));h.dataset&&h.dataset.show();h.shadow&&h.shadow.show()}),b.drawMarkers())},setScaleRange:function(b,c){for(var d=this.options.series,g=d.length,a,f,k,l;g--;)if(k=d[g],f=(a=k.data)&&a.length)if(k.rangeMin>=b&&k.rangeMax<=c)k.setVisible(!0);else if(k.rangeMax<b||k.rangeMin>
c)k.setVisible(!1);else for(;f--;)k=(l=a[f].mapItem)&&l.value,isNaN(k)||""===k||(k>=b&&k<=c?l.show():l.hide())},processEntityDefs:function(){var b=this.logic,c=this.options.series,d=c&&c.length;for(b.redefineEntities(b.dataObj.entitydef||[],this.options.entitydef);d--;)c[d].chart=this},drawEntities:function(){this.entities=new m(this.logic&&this.logic.dataObj&&this.logic.dataObj.data,this,this.logic,this.layers.dataset)},drawMarkers:function(){var b=this.logic&&this.logic.dataObj&&this.logic.dataObj.markers||
null;b&&(this.markers=new x(b,this,this.group));this.options.entities.labelsOnTop||this.entities.drawLabels()},checkComplete:function(){var b=this.logic,c=b.chartInstance;this.entities&&this.entities.isReady()&&(this.mapAnnotations.draw(this),b.hasRendered=!0,U.raiseEvent("internal.mapdrawingcomplete",{renderer:this},c))}},W["renderer.root"])},[3,2,0,"release"]]);
/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.9.0
*/
FusionCharts.register("module",["private","modules.renderer.js-gradientlegend",function(){function fb(g,h,ya){var sa=g[0],L=g[1];g=g[2];sa+=(h[0]-sa)*ya;L+=(h[1]-L)*ya;h=g+(h[2]-g)*ya;return{hex:(A+(sa<<16|L<<8|h).toString(16)).slice(-6),rgb:[sa,L,h]}}function hb(g,h){return g.maxvalue-h.maxvalue}function rb(h){var A,ya,sa=h.colorRange||{},L=h.dataMin,u=h.dataMax,Q=h.sortLegend||!1,x=h.mapByCategory||!1,F=h.defaultColor,da=h.numberFormatter,G=sa.color;h=this.colorArr=[];var R,ba,ha;this.mapByCategory=
x;"1"===sa.mapbypercent&&(this.mapbypercent=!0);if("1"===sa.gradient&&!x){this.gradient=!0;ya=Eb(Ra(sa.startcolor,sa.mincolor,sa.code));Q=Lb(Eb(Ra(ya,F,"CCCCCC")));x=this.scaleMin=Va(sa.startvalue,sa.minvalue,this.mapbypercent?0:L);h.push({code:ya,maxvalue:x,label:M(sa.startlabel),codeRGB:Lb(ya)});if(G&&(A=G.length))for(L=0;L<A;L+=1)F=G[L],ya=Eb(Ra(F.color,F.code)),ba=Va(F.value,F.maxvalue),ha=Va(F.minvalue),ba>x&&h.push({code:ya,maxvalue:ba,userminvalue:ha,label:M(Ra(F.label,F.displayvalue)),codeRGB:Lb(ya)});
h.sort(hb);A=h.length;for(L=1;L<A;L+=1)F=h[L],ya=F.maxvalue-x,0<ya?(F.minvalue=x,F.range=ya,x=F.maxvalue):(h.splice(L,1),--L,--A);2<=h.length&&(this.scaleMax=x,h[L-1].label=Ra(sa.endlabel,h[L-1].label,h[L-1].displayvalue));1===h.length&&(ba=Va(sa.maxvalue,this.mapbypercent?100:u),h.push({minvalue:x,maxvalue:ba,range:ba-x,label:sa.endlabel}),this.scaleMax=ba,delete h[0].code);sa=h[0];u=h[h.length-1];sa.code&&u.code||(ya=g(Q),A=C((ya[2]=0,ya)),ya=C((ya[2]=100,ya)),sa.code||(sa.codeRGB=A,sa.code=ea(A)),
u.code||(u.codeRGB=ya,u.code=ea(ya)));A=h.length;for(L=1;L<A;L+=1)if(F=h[L],F.code){if(R)for(u=F,ha=sa.maxvalue,G=u.maxvalue-ha;R<L;R+=1)Q=h[R],ya=fb(sa.codeRGB,u.codeRGB,(Q.maxvalue-ha)/G),Q.code=ya.hex,Q.codeRGB=ya.rgb;R=null;sa=F}else R=R||L;if(void 0===this.scaleMin||void 0===this.scaleMax)this.noValidRange=!0}else if(G&&(A=G.length)){for(L=0;L<A;L+=1)F=G[L],ya=Ra(F.color,F.code),ba=Va(F.maxvalue),ha=Va(F.minvalue),R=Ra(F.label,F.displayvalue,x?oa:da.dataLabels(ha)+" - "+da.dataLabels(ba)),(ya&&
ba>ha||x&&R)&&h.push({code:ya,maxvalue:ba,minvalue:ha,label:M(R),labelId:R.toLowerCase()});h.length?Q&&h.sort(hb):this.noValidRange=!0}}function G(g,h){return h?T(100*g)/100+"%":db(g,oa).toString()}var u=this,ma=u.hcLib,Xa=u.window,Xa=/msie/i.test(Xa.navigator.userAgent)&&!Xa.opera,Va=ma.pluckNumber,A=ma.COLOR_BLACK,Zb=ma.COLOR_GLASS,bb=ma.FC_CONFIG_STRING,h=ma.graphics,C=h.HSBtoRGB,g=h.RGBtoHSB,ea=h.RGBtoHex,Lb=h.HEXtoRGB,F=ma.COMMASTRING,oa=ma.BLANKSTRING,M=ma.parseUnsafeString,Ha=ma.graphics.convertColor,
da=ma.POSITION_TOP,sb=ma.POSITION_MIDDLE,Za=ma.POSITION_START,Ob=ma.POSITION_END,$b=ma.graphics.getDarkColor,mb=ma.graphics.getLightColor,Ra=ma.pluck,db=ma.getValidValue,ib=ma.toRaphaelColor,tb=ma.hasTouch,T=Math.round,Oa=Math.max,ba=Math.min,ua=Math.abs,Ca,Fb,Gb,ac="rgba(192,192,192,"+(Xa?.002:1E-6)+")",Eb=function(g){return g&&g.replace(/^#?([a-f0-9]+)/ig,"$1")};rb.prototype={getColorObj:function(g){var h=this.colorArr,A=this.gradient?1:0,u=h[A],L;if(this.mapByCategory){for(g=M(g).toLowerCase();u;){if(u.labelId===
g)return{code:u.code,seriesIndex:A};A+=1;u=h[A]}return{outOfRange:!0}}if(this.gradient){if(this.scaleMin<=g&&this.scaleMax>=g){for(;u&&u.maxvalue<g;)A+=1,u=h[A];g=(g-u.minvalue)/u.range;return{code:fb(h[A-1].codeRGB,u.codeRGB,g).hex}}return{outOfRange:!0}}for(;u;){if(u.maxvalue>g&&u.minvalue<=g)return{code:u.code,seriesIndex:A};u.maxvalue===g&&(L=A);A+=1;u=h[A]}return(u=h[L])&&u.maxvalue===g?{code:u.code,seriesIndex:L}:{outOfRange:!0}}};rb.prototype.constructor=rb;ma.colorRange=rb;Ca=ma.configureGradientLegendOptions=
function(g,h){var u=g.legend,F=h.chart;u.legendSliderBorderWidth=Va(F.legendpointerborderthickness,1);u.legendSliderBorderColor=Ha(Ra(F.legendpointerbordercolor,A),Va(F.legendpointerborderalpha,100));u.legendSliderWidth=Va(F.legendpointerwidth,F.legendpointerswidth,12);u.legendSliderHeight=Va(F.legendpointerheight,F.legendpointersheight,12);u.legendColorBoxBorderColor=u.borderColor;u.legendColorBoxBorderWidth=u.borderWidth;u.legendScaleColor=Ha(Ra(F.legendscalelinecolor,A),Va(F.legendscalelinealpha,
100));u.legendScalePadding=Va(F.legendscalepadding,4);u.legendScaleLineThickness=Va(F.legendscalelinethickness,1);u.legendScaleTickDistance=Va(F.legendscaletickdistance,6);u.itemStyle.cursor="default";u.interActivity=Va(F.interactivelegend,1)};ma.placeGLegendBlockRight=function(g,h,A,u,L){this.configureLegendOptions(g,h.chart,!0,L,A);Ca(g,h);L=this.snapLiterals||(this.snapLiterals={});var F=g[bb],Q=this.smartLabel||F.smartLabel,x=g.legend,da=g.chart.spacingRight,C,M,R=x.textPadding=2,ua=2*R,ha=x.title.padding,
la=0,T=0,ea=2*x.padding;h=Va(h.chart.legendpadding,7)+x.borderWidth/2+1;var X=g.colorRange||{},Da=X.colorArr,Ha=X.mapbypercent,ma=X.scaleMin,Ka=X.scaleMax-ma,Ra=x.legendSliderWidth,Ma=x.legendSliderHeight/2;M=x.legendScalePadding;var y=x.legendScaleTickDistance,ca=x.itemStyle||{};C=Va(parseInt(ca.lineHeight,10)||12);var Ua=.75*C,Na=A-ea,Ia,Aa,Ja=0,Pa,s,ga,Ba,La,Ea,Qa;u-=ea;if(!X.noValidRange&&Da&&1<(Aa=Da.length)){--Aa;x.title.text!==oa&&(Q.setStyle(x.title.style),C=Q.getSmartText(x.title.text,Na,
Oa(C,u/4)),x.title.text=C.text,la=C.width+ea,u-=T=C.height+ha);Q.setStyle(ca);C=Q.lineHeight;Na-=y+M+Ra;x.colorBoxX=Ra;ha=Oa(C,Na/2);Na=ba(Na-ha-4,C);Pa=Oa(C,u/2);Ia=u/4;y=Da[0];y.scaleLabel=G(y.maxvalue,Ha);C=Q.getSmartText(y.label,Ia,Na);y.label=C.text;ca=C.height;y.labelY=Ua-C.height/2;M=Q.getSmartText(y.scaleLabel,ha,Pa);y.scaleLabel=M.text;X=M.height/2;s=M.width;y.scaleLabelY=Ua-M.height/2;x.colorBoxY=Oa(X,C.width+ua,Ma)+T;y=Qa=Da[Aa];y.scaleLabel=G(y.maxvalue,Ha);C=Q.getSmartText(y.label,Ia,
Na);y.label=C.text;ca=Oa(ca,C.height);y.labelY=Ua-C.height/2;M=Q.getSmartText(y.scaleLabel,ha,Pa);y.scaleLabel=M.text;s=Oa(s,M.width);Ia=M.height/2;C=Oa(C.width+ua,Ia,Ma);y.scaleLabelY=Ua-M.height/2;x.colorBoxHeight=Ma=u-x.colorBoxY-C;Pa=Ma-Ia;ga=Ma/Ka;La=ba(Ma-Ja,Pa-X)-4;for(Ia=1;Ia<Aa;Ia+=1)y=Da[Ia],Ba=(y.maxvalue-ma)*ga,C=Q.getSmartText(y.label,2*ba(Ba-Ja,Ma-Ba),Na),y.label=C.text,ca=Oa(ca,C.height),y.labelY=Ua-C.height/2,C=C.width/2,y.scaleLabel=G(y.maxvalue,Ha),M=Q.getSmartText(y.scaleLabel,
ha,2*ba(Ba-X,Pa-Ba)),y.scaleLabel=M.text,s=Oa(s,M.width),Ea=M.height/2,y.scaleLabelY=Ua-M.height/2,La=ba(La,(Ba-Oa(Ea+X,C+Ja)-4)*Ka/y.range),Ja=C+Ba,X=Ea+Ba;La=Oa(ba(La,(ba(Pa-X,Ma-Ja)-4)*Ka/Qa.range,.3*u),0);x.colorBoxHeight-=La;x.colorBoxWidth=ca&&ca+ua||15;x.height=x.totalHeight=u+T+ea-La;x.width=(s&&s+R)+x.colorBoxWidth+Ra+x.legendScaleTickDistance+x.legendScalePadding+ea;x.width<la&&(x.colorBoxX+=(la-x.width)/2,x.width=la);x.width>A&&(x.width=A);L.legendstartx=F.width-da-x.width;L.legendwidth=
x.width;L.legendendx=L.legendstartx+L.legendwidth;L.legendheight=x.height;h+=x.width;g.chart.marginRight+=h;return h}x.enabled=!1;return 0};ma.placeGLegendBlockBottom=function(g,h,A,u,F){this.configureLegendOptions(g,h.chart,!1,F,A);Ca(g,h);F=this.snapLiterals||(this.snapLiterals={});var C=g[bb],Q=this.smartLabel||C.smartLabel,x=g.legend,M=g.chart,da=M.spacingBottom,ua=M.spacingLeft,M=M.spacingRight,R,T,ha=x.textPadding=2,la=x.title.padding,ea=0,Ha=0,X=2*x.padding;h=Va(h.chart.legendpadding,7)+x.borderWidth/
2+1;var Da=g.colorRange||{},ma=Da.colorArr,Ta=Da.mapbypercent,Ka=Da.scaleMin,Za=Da.scaleMax-Ka,Ma=x.legendSliderWidth,y=x.legendSliderHeight,ca=x.legendScalePadding,Ua=x.legendScaleTickDistance,Na=x.itemStyle||{};R=Va(parseInt(Na.lineHeight,10)||12);var Ia=.75*R,Aa=u-X,Ja,Pa,s,ga,Ba=0,La,Ea,Qa;A-=X;if(!Da.noValidRange&&ma&&1<(Pa=ma.length)){--Pa;x.title.text!==oa&&(Q.setStyle(x.title.style),R=Q.getSmartText(x.title.text,A,Aa/3),x.title.text=R.text,ea=R.width+X,Aa-=Ha=R.height+la);Q.setStyle(Na);R=
Q.lineHeight;Aa-=Ua+ca+y;la=Oa(R,Aa/2);Na=ba(Aa-la-4,R);Ja=A/4;ga=2*Ja;s=ma[0];s.scaleLabel=G(s.maxvalue,Ta);R=Q.getSmartText(s.label,Ja,Na);s.label=R.text;Aa=R.height;s.labelY=Ia-R.height/2;T=Q.getSmartText(s.scaleLabel,ga,la);s.scaleLabel=T.text;ca=T.width/2;Ua=T.height;s.code||(s.code=Ra(x.minColor,"CCCCCC"));x.colorBoxX=Oa(ca,R.width+ha,Ma);s=Da=ma[Pa];s.scaleLabel=G(s.maxvalue,Ta);R=Q.getSmartText(s.label,Ja,Na);s.label=R.text;Aa=Oa(Aa,R.height);s.labelY=Ia-R.height/2;T=Q.getSmartText(s.scaleLabel,
ga,la);s.scaleLabel=T.text;Ua=Oa(Ua,T.height);s=T.width/2;R=Oa(R.width+ha,s,Ma);x.colorBoxWidth=Ma=A-x.colorBoxX-R;ga=Ma-s;La=Ma/Za;Qa=ba(Ma-Ba,ga-ca)-4;for(Ja=1;Ja<Pa;Ja+=1)s=ma[Ja],Ea=(s.maxvalue-Ka)*La,R=Q.getSmartText(s.label,2*ba(Ea-Ba,Ma-Ea),Na),s.label=R.text,Aa=Oa(Aa,R.height),s.labelY=Ia-R.height/2,R=R.width/2,s.scaleLabel=G(s.maxvalue,Ta),T=Q.getSmartText(s.scaleLabel,2*ba(Ea-ca,ga-Ea),la),s.scaleLabel=T.text,Ua=Oa(Ua,T.height),T=T.width/2,Qa=ba(Qa,(Ea-Oa(T+ca,R+Ba)-4)*Za/s.range),Ba=R+
Ea,ca=T+Ea;Qa=Oa(ba(Qa,(ba(ga-ca,Ma-Ba)-4)*Za/Da.range,.3*A),0);x.colorBoxWidth-=Qa;x.width=A+X-Qa;x.width<ea&&(x.colorBoxX+=(ea-x.width)/2,x.width=ea);x.colorBoxY=Ha+y;x.colorBoxHeight=Aa&&Aa+2*ha||15;x.height=x.totalHeight=(Ua&&Ua+ha)+x.colorBoxHeight+Ha+y+x.legendScaleTickDistance+x.legendScalePadding+X;x.height>u&&(x.height=u);F.legendstartx=ua+.5*(C.width-ua-M-x.width)+(x.x||0);F.legendwidth=x.width;F.legendendx=F.legendstartx+F.legendwidth;F.legendstarty=C.height-da-x.height;F.legendheight=
x.height;F.legendendy=F.legendstarty+F.legendheight;h+=x.height;g.chart.marginBottom+=h;return h}x.enabled=!1;return 0};Fb=function(){return{point:this}};Gb=function(g){return T(100*g)/100};ma.rendererRoot.drawGradientLegendItem=function(g){var h=this,C=h.paper,M=h.options,L=h.canvasLeft,G=h.canvasTop,Q=h.canvasWidth,x=h.canvasHeight,ba=M.colorRange,ea=M.chart.textDirection,ma,R,Ca,ha,la=M.legend,Xa=Va(la.padding,4),db=la.itemStyle,M=la.symbolStyle,X=la.interActivity,Da=g.elements;g=Da.elementGroup.trackTooltip(!0);
var fb="vertical"===la.layout,Ta,Ka,bb,Ma,y,ca,Ua=0,Na=la.lighting3d,Ia=la.colorBoxWidth,Aa=la.colorBoxHeight,Ja=Ia,Pa=Aa,s={FCcolor:{color:oa,alpha:oa,angle:0,ratio:oa}},ga=s.FCcolor,Ba=la.colorBoxX+Xa,La=la.colorBoxY+Xa,Ea,Qa,rb=la.legendColorBoxBorderColor,xa=la.legendColorBoxBorderWidth,hb=["M"],Lb=la.legendScaleColor;ca=la.legendScalePadding;var Mb=la.legendScaleLineThickness,Ab=Mb%2/2;R=la.legendScaleTickDistance;var nb=la.legendSliderWidth,Bb=la.legendSliderHeight;y=Pa/2;ha=Ja/2;var jb=nb/
2,$a=Bb/2,Pb,cb,ub;Qa=0;var Cb=mb("ABABAB",50),Xa=$b("ABABAB",70),la=Ha("ABABAB",100),Xa=Ha(Xa,100),Cb=Ha(Cb,100),Db,Fa={isFirst:!0},ra={},eb,ob,b,d;if(ba&&(ma=ba.colorArr)&&1<(Ca=ma.length)){Fa.toolText=eb=bb=ba.scaleMin;ra.toolText=ob=ba=ba.scaleMax;Ma=ba-bb;Fa.snapPX=ra.snapPX=0;Fa.tooltipConstraint=ra.tooltipConstraint="chart";Fa.getLabelConfig=ra.getLabelConfig=Fb;Fa.tooltipPos=[0,0];ra.tooltipPos=[0,0];ra.tooltipOffsetReference=Fa.tooltipOffsetReference={};ra.tooltipOffsetReference.left=Fa.tooltipOffsetReference.left+=
L-20;ra.tooltipOffsetReference.top=Fa.tooltipOffsetReference.top+=G;b=Da.colorBox=C.group("colorBox",g);if(fb){Fa.tooltipPos[0]=ra.tooltipPos[0]=Q+L;Qa=270;ga.angle=90;L=Ba-nb;Q=Ba+Ja;G=La-$a;Ta=La+$a;L=T(Ba-nb)+.5;Q=T(Ba)+.5;G=T(La-$a)+.5;Ta=T(La+$a)+.5;Pb=T(Ba+Ja)+.5;ub=T(La-2)+.5;Ka=T(La+2)+.5;Ea=T(La)+.5;x=Ba-jb/2;cb=T(x-$a)+.5;x=T(x)+.5;y=La-$a/2;$a=T(y+$a)+.5;y=T(y)+.5;Ia/=2;jb=["M",L,G,"L",Q,G,Q,ub,Pb,Ea,Q,Ka,Q,Ta,L,Ta,"Z","M",cb,y,"L",x,y,"M",cb,Ea,"L",x,Ea,"M",cb,$a,"L",x,$a];$a=["M",L+1,
G,"L",L+1,Ta,"M",cb,y-1,"L",x,y-1,"M",cb,Ea-1,"L",x,Ea-1,"M",cb,$a-1,"L",x,$a-1];y=Ba+Ja+ca;Ta=T(y+R)+Ab;y=T(y)+Ab;Ea=Ba+ha;cb=Ca-1;for(R=0;R<Ca;R+=1)ha=ma[R],Q=(ha.maxvalue-bb)/Ma,Ka=Pa*Q+La,ca=T(Ka)+Ab,R?(ga.ratio+=F,ga.color+=F,ga.alpha+=F,hb.push("L",y,ca,Ta,ca,"M",y,ca),R===cb?(x=Ob,ca=Ka+2):(x=sb,ca=Ka)):(hb.push(y,ca,"L",Ta,ca,"M",y,ca),x=Za,ca=Ka-2),ga.ratio+=100*(Q-Ua),ga.color+=Ra(ha.code,A),ga.alpha+=Ra(ha.alpha,100),Ua=Q,ha.legendItem=C.text(g).attr({text:ha.label,x:Ea,y:ca,"text-anchor":x,
direction:ea,"vertical-align":sb}).rotate(Qa,Ea,ca).css(db),ha.legendSymbol=C.text(g).attr({text:ha.scaleLabel,x:Ta,y:Ka,"text-anchor":Za,direction:ea,"vertical-align":sb}).css(db);Fa.xMin=ra.xMin=0;Fa.xMax=ra.xMax=0;Fa.yMin=ra.yMin=0;Fa.yMax=ra.yMax=Pa;Fa.x=ra.x=0;Fa.y=0;ra.y=Pa;ea=Bb+Ja;ma=nb}else{Fa.tooltipPos[1]=ra.tooltipPos[1]=x+G;L=T(Ba-jb)+.5;Q=T(Ba+jb)+.5;G=T(La-Bb)+.5;Ta=T(La+Pa)+.5;Pb=T(Ba-2)+.5;x=T(Ba+2)+.5;cb=T(Ba)+.5;ub=T(La)+.5;Ka=La-$a/2;Ea=T(Ka-$a)+.5;Ka=T(Ka)+.5;Qa=Ba-jb/2;ha=T(Qa+
jb)+.5;Qa=T(Qa)+.5;Aa/=2;jb=["M",L,G,"L",Q,G,Q,ub,x,ub,cb,Ta,Pb,ub,L,ub,"Z","M",Qa,Ea,"L",Qa,Ka,"M",cb,Ea,"L",cb,Ka,"M",ha,Ea,"L",ha,Ka];$a=["M",L,G+1,"L",Q,G+1,"M",Qa-1,Ea,"L",Qa-1,Ka,"M",cb-1,Ea,"L",cb-1,Ka,"M",ha-1,Ea,"L",ha-1,Ka];ca=La+Pa+ca;Qa=T(ca+R)+Ab;ca=T(ca)+Ab;Ka=La+y;cb=Ca-1;for(R=0;R<Ca;R+=1)ha=ma[R],Q=(ha.maxvalue-bb)/Ma,Ta=Ja*Q+Ba,y=T(Ta)+Ab,R?(ga.ratio+=F,ga.color+=F,ga.alpha+=F,hb.push("L",y,ca,y,Qa,"M",y,ca),R===cb?(x=Za,y=Ta+2):(x=sb,y=Ta)):(hb.push(y,ca,"L",y,Qa,"M",y,ca),x=Ob,
y=Ta-2),ga.ratio+=100*(Q-Ua),ga.color+=Ra(ha.code,A),ga.alpha+=Ra(ha.alpha,100),Ua=Q,ha.legendItem=C.text(g).attr({text:ha.label,x:y,y:Ka,"text-anchor":x,direction:ea,"vertical-align":sb}).css(db),ha.legendSymbol=C.text(g).attr({text:ha.scaleLabel,x:Ta,y:Qa,"text-anchor":sb,direction:ea,"vertical-align":da}).css(db);Fa.xMin=ra.xMin=0;Fa.xMax=ra.xMax=Ja;Fa.yMin=ra.yMin=0;Fa.yMax=ra.yMax=0;Fa.y=ra.y=0;Fa.x=0;ra.x=Ja;ea=nb;ma=Bb+Pa}Da.colorBox=C.rect(b).attr({x:Ba,y:La,width:Ja,height:Pa,fill:ib(s),
stroke:rb,strokeWidth:xa});Na&&(Da.colorBoxEffect=C.rect(b).attr({x:Ba,y:La,width:Ia,height:Aa,fill:Zb,"stroke-width":0}));Da.scale=C.path(g).attr({path:hb,stroke:Lb,"stroke-width":Mb});Db=function(a,b,e,f,q){var m;fb?(m=b*Ma/Pa+bb,f=0<b?f:f+b+.01):(m=a*Ma/Ja+bb,e=0<a?e:e+a+.01);a=Gb(m);q?(Da.slider1.translate(e,f),Da.slider1Effect.translate(e,f),Da.slider1Tracker.toFront().translate(e,f).tooltip(a,null,null,!0),eb=m):(Da.slider2.translate(e,f),Da.slider2Effect.translate(e,f),Da.slider2Tracker.toFront().translate(e,
f).tooltip(a,null,null,!0),ob=m);X&&(d=clearTimeout(d),d=setTimeout(function(){h.setScaleRange&&h.setScaleRange(eb,ob)},100))};Ca=function(a,b){var d=0,f=d,q,m=this.isFirst,g=m?ra:Fa;if(fb){f=this._startY+b;0>=f&&(f=0);f>Pa&&(f=Pa);if(m?f>g.y:f<g.y)f=g.y;ua(f-this.y)>=(this.snapPX||0)&&(q=!0)}else{d=this._startX+a;0>=d&&(d=0);d>Ja&&(d=Ja);if(m?d>g.x:d<g.x)d=g.x;ua(d-this.x)>=(this.snapPX||0)&&(q=!0)}q&&(Db(d,f,d-this.x,f-this.y,m),this.x=d,this.y=f)};Na=function(){var a=this.isFirst;this._startX=
this.x;this._startY=this.y;this._scaleStart=eb;this._scaleEnd=ob;u.raiseEvent("LegendPointerDragStart",{pointerIndex:a?0:1,pointers:[{value:eb},{value:ob}],legendPointerHeight:Bb,legendPointerWidth:nb},h.logic.chartInstance)};Ia=function(){var a=this._scaleStart,b=this._scaleEnd;u.raiseEvent("LegendPointerDragStop",{pointerIndex:this.isFirst?0:1,pointers:[{value:eb},{value:ob}],legendPointerHeight:Bb,legendPointerWidth:nb},h.logic.chartInstance);a===eb&&b===ob||u.raiseEvent("LegendRangeUpdated",{previousMinValue:a,
previousMaxValue:b,minValue:eb,maxValue:ob},h.logic.chartInstance);delete this._scaleStart;delete this._scaleEnd};Aa=Gb(bb);Da.slider1=C.path(g).attr({path:jb,fill:la,strokeWidth:1,stroke:Xa});Da.slider1Effect=C.path(g).attr({path:$a,fill:"none",strokeWidth:1,stroke:Cb});tb&&(L-=.5*(Oa(30,ea)-ea),G-=.5*(Oa(40,ma)-ma),ea=Oa(30,ea),ma=Oa(40,ma));Da.slider1Tracker=C.rect(g).attr({ishot:!0,width:ea,height:ma,x:L,y:G,fill:ac,stroke:"none"}).drag(Ca,Na,Ia,Fa,Fa,Fa).tooltip(Aa,null,null,!0).css(M);Aa=Gb(ba);
Da.slider2=C.path(g).attr({path:jb,fill:la,strokeWidth:1,stroke:Xa}).translate(ra.x,ra.y);Da.slider2Effect=C.path(g).attr({path:$a,fill:"none",strokeWidth:1,stroke:Cb}).translate(ra.x,ra.y);Da.slider2Tracker=C.rect(g).attr({ishot:!0,width:ea,height:ma,x:L,y:G,fill:ac,stroke:"none"}).translate(ra.x,ra.y).css(M).drag(Ca,Na,Ia,ra,ra,ra).tooltip(Aa,null,null,!0)}}}]);
FusionCharts.register("module",["private","modules.renderer.js-powercharts",function(){function fb(b,d,a){var c=b.fcObj;G.hcLib.createChart(c,b.container,b.type,void 0,void 0,!1,!0);u.raiseEvent("chartUpdated",M({sourceEvent:a},d),c,[c.id])}function hb(b,d,a,c,e,f){var q=Sa.atan((d-c)/(b-a)),m=[];0>q&&(q=2*Sa.PI+q);if(c>d){if(a>=b&&q>Sa.PI||a<b&&q>Sa.PI)q-=Sa.PI}else if(a>=b&&q<Sa.PI&&0!==q||a<b&&q<Sa.PI)q+=Sa.PI;"undefined"==typeof f?(a=b+e*ya(q),e=d+e*ab(q)):(e=Q(e)/2,f=Q(f)/2,a=b+(e=b<a?e:-e),
e=d+e*Sa.tan(q),Q(d-e)>Q(f)&&(e=d+(f=d<c?f:-f),a=b+f/Sa.tan(q)));m.push("L",a,e,a+10*ya(q+.79),e+10*ab(q+.79),"M",a+10*ya(q-.79),e+10*ab(q-.79),"L",a,e);return m}function rb(b,d){var a;d._origAttr||(d._origAttr={});for(a in b)ac.test(a)||(d._origAttr[a]=b[a]);return d._origAttr}var G=this,u=G.hcLib,ma=u.Raphael,Xa=G.window,Va=Xa.document,A=u.BLANKSTRING,Zb=u.createTrendLine,bb=u.parseTooltext,h=u.pluck,C=u.getValidValue,g=u.pluckNumber,ea=u.getFirstValue,Lb=u.getDefinedColor,F=u.parseUnsafeString,
oa=u.FC_CONFIG_STRING,M=u.extend2,Ha=u.getDashStyle,da=u.toRaphaelColor,sb=u.toPrecision,Za=u.hasSVG,Ob=u.createContextMenu,$b=u.isIE,mb=u.regex.dropHash,Ra=u.HASHSTRING,db=function(b,d){var a;b||(b={});for(a in d)b[a]=d[a];return b},ib=u.each,tb=u.addEvent,T=u.removeEvent,Oa=u.getTouchEvent,ba=function(b){return void 0!==b&&null!==b},ua="rgba(192,192,192,"+($b?.002:1E-6)+")",Ca=u.TOUCH_THRESHOLD_PIXELS,Fb=u.CLICK_THRESHOLD_PIXELS,Gb=8===Xa.document.documentMode?"visible":"",ac=/^_/,Eb=u.BGRATIOSTRING,
Sa=Math,ab=Sa.sin,ya=Sa.cos,sa=Sa.round,L=Sa.min,Ya=Sa.max,Q=Sa.abs,x=Sa.PI,hc=Sa.ceil,Yb=Sa.floor,uc=Sa.sqrt,R=Sa.pow,ic=x/180,ha=2*x,la=u.hasTouch,bc=la?Ca:Fb,cc=u.graphics.getColumnColor,X=u.getFirstColor,Da=u.setLineHeight,Ac=u.pluckFontSize,Ta=u.pluckColor,Ka=u.getFirstAlpha,jc=u.graphics.getDarkColor,Ma=u.graphics.getLightColor,y=u.graphics.convertColor,ca=u.COLOR_TRANSPARENT,Ua=u.POSITION_CENTER,Na=u.POSITION_TOP,Ia=u.POSITION_BOTTOM,Aa=u.POSITION_RIGHT,Ja=u.POSITION_LEFT,Pa=u.bindSelectionEvent,
s=u.chartAPI,ga=u.graphics.mapSymbolName,Ca=s.singleseries,Ba=u.COMMASTRING,La=u.ZEROSTRING,Ea=u.HUNDREDSTRING,Qa=u.COMMASPACE,dc=u.getMouseCoordinate,xa=u.plotEventHandler,Yc=G.xssEncode,kc=u.SHAPE_RECT,Mb=u.deltend,Fb=u.graphics,Ab=Fb.parseColor,nb=Fb.getValidColor,Bb=u.placeHorizontalAxis,jb=u.placeVerticalAxis,$a=u.stepYAxisValues,Pb=u.adjustHorizontalCanvasMargin,cb=u.adjustVerticalCanvasMargin,ub=u.getDataParser,Cb={pageX:0,pageY:0},Db,Fa,ra,eb=function(){this.data("move",!1);clearTimeout(this._longpressactive);
delete this._longpressactive},ob=u.createElement;u.eventList.chartupdated="FC_ChartUpdated";u.eventList.dataposted="FC_DataPosted";u.eventList.dataposterror="FC_DataPostError";u.eventList.datarestored="FC_DataRestored";G.addEventListener("rendered",function(b){b=b.sender;var d=b.__state,a=b.jsVars&&b.jsVars.instanceAPI;!d.listenersAdded&&a&&"function"===typeof a.getCollatedData&&(b.addEventListener(["chartupdated","dataupdated","rendered"],function(a){delete a.sender.__state.hasStaleData}),d.listenersAdded=
!0)});s("spline",{friendlyName:"Spline Chart",standaloneInit:!0,creditLabel:!1,defaultSeriesType:"spline",rendererId:"spline"},s.linebase);s("splinearea",{friendlyName:"Spline Area Chart",standaloneInit:!0,creditLabel:!1,defaultSeriesType:"areaspline",anchorAlpha:"100",rendererId:"spline"},s.area2dbase);s("msspline",{friendlyName:"Multi-series Spline Chart",standaloneInit:!0,creditLabel:!1,defaultSeriesType:"spline",rendererId:"spline"},s.mslinebase);s("mssplinedy",{friendlyName:"Multi-series Dual Y-Axis Spline Chart",
standaloneInit:!0,creditLabel:!1,isDual:!0,series:s.mscombibase.series,secondarySeriesType:"spline",secondarySeriesFilter:{spline:!0},defaultSeriesFilter:{spline:!0}},s.msspline);s("mssplinearea",{friendlyName:"Multi-series Spline Area Chart",standaloneInit:!0,creditLabel:!1,defaultSeriesType:"areaspline",rendererId:"spline"},s.msareabase);s("msstepline",{friendlyName:"Multi-series Step Line Chart",standaloneInit:!0,creditLabel:!1,defaultSeriesType:"line",rendererId:"cartesian",stepLine:!0},s.mslinebase);
s("inversemsline",{friendlyName:"Inverted Y-Axis Multi-series Line Chart",standaloneInit:!0,creditLabel:!1,inversed:!0,rendererId:"cartesian"},s.mslinebase);s("inversemsarea",{friendlyName:"Inverted Y-Axis Multi-series Area Chart",standaloneInit:!0,creditLabel:!1,inversed:!0,rendererId:"cartesian"},s.msareabase);s("inversemscolumn2d",{friendlyName:"Inverted Y-Axis Multi-series Column Chart",standaloneInit:!0,creditLabel:!1,inversed:!0,rendererId:"cartesian"},s.mscolumn2dbase);s("logmsline",{friendlyName:"Multi-series Log Line Chart",
standaloneInit:!0,isValueAbs:!0,isLog:!0,configureAxis:s.logbase.configureAxis,pointValueWatcher:s.logbase.pointValueWatcher,getLogAxisLimits:s.logbase.getLogAxisLimits,creditLabel:!1,rendererId:"cartesian"},s.mslinebase);s("logmscolumn2d",{friendlyName:"Multi-series Log Column Chart",standaloneInit:!0,isLog:!0,isValueAbs:!0,configureAxis:s.logbase.configureAxis,pointValueWatcher:s.logbase.pointValueWatcher,getLogAxisLimits:s.logbase.getLogAxisLimits,creditLabel:!1,rendererId:"cartesian"},s.mscolumn2dbase);
s("logstackedcolumn2d",{friendlyName:"Stacked Log Column Chart",standaloneInit:!0,creditLabel:!1,isStacked:!0},s.logmscolumn2d);s("errorbar2d",{friendlyName:"Error Bar Chart",standaloneInit:!0,creditLabel:!1,showValues:0,rendererId:"cartesian",isErrorChart:!0,fireGroupEvent:!0,chart:function(){var b=this.base.chart.apply(this,arguments),d=this.drawErrorValue;b.callbacks||(b.callbacks=[]);b.callbacks.push(function(){for(var a=this.elements.plots,b=this.dataset||this.options.series,e=a&&a.length;e--;)b[e]&&
d.call(this,a[e],b[e])});return b},point:function(b,d,a,c,e,f,q,m,v){b=g(c.ignoreemptydatasets,0);var l=!1,p=!g(c.halferrorbar,1),k=e[oa],n=h(this.isValueAbs,k.isValueAbs,!1),r=g(a.showvalues,k.showValues),t=g(d.yAxis,0),z=g(c.use3dlighting,1),D=e[oa].numberFormatter,w=this.colorManager,B=g(c.useplotgradientcolor,1)?Lb(c.plotgradientcolor,w.getColor("plotGradientColor")):A,H=h(a.alpha,c.plotfillalpha,"100"),$=Ka(h(a.errorbaralpha,c.errorbaralpha,H)),ia=g(a.dashed,c.plotborderdashed,0),Ga=g(a.dashlen,
c.plotborderdashlen,5),E=g(a.dashgap,c.plotborderdashgap,4),va=h(d.type,this.defaultSeriesType),I=e.plotOptions[va]&&e.plotOptions[va].stacking,va=w.getPlotColor(),ka,za,ta,u,O,s,U,K,J,Z,V,N,P,aa,Y,W;this.errorBarShadow=g(c.errorbarshadow);d.errorBar2D=!0;d.name=C(a.seriesname);I||(d.columnPosition=g(v,m,q));if(0===g(a.includeinlegend)||0===H||void 0===d.name)d.showInLegend=!1;d.errorBarWidthPercent=g(a.errorbarwidthpercent,c.errorbarwidthpercent,70);d.errorBarColor=y(X(h(a.errorbarcolor,c.errorbarcolor,
"AAAAAA")),$);d.errorBarThickness=g(a.errorbarthickness,c.errorbarthickness,1);d.color=h(a.color,va).split(",")[0].replace(/^#?/g,"#");if(q=a.data)for(N=h(c.plotborderthickness,"1"),I=e.chart.useRoundEdges,v=this.isBar,m=/3d$/.test(e.chart.defaultSeriesType),aa=h(c.plotbordercolor,w.getColor("plotBorderColor")).split(",")[0],Y="0"==c.showplotborder?"0":h(c.plotborderalpha,"100"),Y=m?c.showplotborder?Y:"0":Y,aa=m?h(c.plotbordercolor,"#FFFFFF"):aa,w=0;w<f;w+=1)(za=q[w])?(K=D.getCleanValue(za.value,
n),J=D.getCleanValue(za.errorvalue,n),null===K?d.data.push({y:null}):(l=!0,U=k.oriCatTmp[w],u=h(za.color,a.color,va),O=Ka(h(za.alpha,H))+A,ka=h(za.ratio,a.ratio,c.plotfillratio),ta=h(360-c.plotfillangle,90),0>K&&(ta=360-ta),Z={opacity:O/100},P=L(O,Ka(Y))+A,s=cc(u+","+B,O,ka,ta,I,aa,P,v,m),V={opacity:$/250},W=this.getPointStub(za,K,U,e,a,r,t,J),U=[],U.push({errorValue:J,toolText:W._errortoolText,shadow:V}),p&&U.push({errorValue:-J,toolText:W._errortoolText,shadow:V}),ka=this.pointHoverOptions(za,d,
{plotType:"column",is3d:m,isBar:v,use3DLighting:z,isRoundEdged:I,color:u,gradientColor:B,alpha:O,ratio:ka,angle:ta,borderWidth:N,borderColor:aa,borderAlpha:P,borderDashed:ia,borderDashGap:E,borderDashLen:Ga,shadow:Z}),d.data.push(M(W,{y:K,shadow:Z,errorValue:U,color:s[0],borderColor:s[1],borderWidth:N,use3DLighting:z,dashStyle:g(za.dashed,ia)?Ha(h(za.dashlen,Ga),h(za.dashgap,E),N):"none",hoverEffects:ka.enabled&&ka.options,rolloverProperties:ka.enabled&&ka.rolloverOptions})),this.pointValueWatcher(e,
K,J))):d.data.push({y:null});b&&!l&&(d.showInLegend=!1);return d},pointValueWatcher:function(b,d,a){var c=b[oa];null!==d&&(a?(b=d+a,d-=a):b=d,c[0]||(c[0]={}),a=c[0],a.max=a.max>b?a.max:b,a.min=a.min<b?a.min:b,a.max=a.max>d?a.max:d,a.min=a.min<d?a.min:d)},drawErrorValue:function(b,d){var a=this,c=a.options,e=c.plotOptions.series,f=c[oa],f=a.smartLabel||f.smartLabel,q=a.paper,m=a.layers,v=a.xAxis[0],l=a.yAxis[0],p=isNaN(+e.animation)&&e.animation.duration||1E3*e.animation,k=m.dataset=m.dataset||q.group("dataset-orphan"),
n=b.errorGroup=q.group("errorBar").insertAfter(b.lineLayer||k.column||k),h=m.errorTracker||(m.errorTracker=q.group("hot-error",m.tracker||k).toBack()),t=k.errorValueGroup||(k.errorValueGroup=q.group("errorValues")),z=d.errorBar2D,D=d.data||[],w=D.length,B=b.items,H=!1!==(c.tooltip||{}).enabled,$,ia,Ga,E,va=b.graphics=b.graphics||[],I=!1===d.visible?"hidden":"visible",ka=c.chart,za=ka.textDirection,ta=ka.valuePadding||0,ka=1==ka.rotateValues?270:void 0,u=d.columnPosition||0,O=a.definition.chart,s=
v.getAxisPosition(0),U=v.getAxisPosition(1)-s,K=e.groupPadding,J=e.maxColWidth,s=d.numColumns||1,U=(1-.01*(O&&O.plotspacepercent))*U||L(U*(1-2*K),J*s),O=U/s,u=u*O-U/2,s=a.logic,U=!s.avoidCrispError,K=a.canvasHeight+a.canvasTop,y=m.shadows||(m.shadows=q.group("shadows",k).toBack()),m={},J=c.plotOptions.series.dataLabels.style,V=a.chartWidth,N=a.chartHeight,P={fontFamily:J.fontFamily,fontSize:J.fontSize,lineHeight:J.lineHeight,fontWeight:J.fontWeight,fontStyle:J.fontStyle},aa,Y,W,F,x,C,fa,M,G,ja,na,
Q,pa,R,wa,da,X,vb,qa,lb,pb=function(b){xa.call(this,a,b)},T=function(b){xa.call(this,a,b,"DataPlotRollOver")},ga=function(b){xa.call(this,a,b,"DataPlotRollOut")},ea=function(b){return function(){void 0!==b&&a.linkClickFN.call({link:b},a)}},ca=function(){n.show();t.attr({transform:"...t"+-V+","+-N});y.show()};if(0<w){for(;w--;)if($=D[w],c=g($.errorStartValue,$.y),Q=$.errorValue,k=$.link,void 0!==c&&Q&&(wa=Q.length)){$=g($.x,w);E=l.getAxisPosition(c);Ga=v.getAxisPosition($);z&&(u&&(Ga+=u),O&&(Ga+=O/
2));ja=B[w]||(B[w]={});ja.errorBars=ja.errorBars||[];ja.errorValues=ja.errorValues||[];ja.trackerBars=ja.trackerBars||[];for(Y=(aa=ja.tracker||ja.graphic)&&aa.data("groupId");wa--;)qa=da=lb=null,pa=Q[wa],G=pa.errorStartValue,ia=pa.tooltext||pa.toolText,x=isNaN(G)?E:l.getAxisPosition(G),W=pa.displayValue,R=pa.errorValue,pa&&ba(R)&&(F=g(pa.isHorizontal,0),vb=g(pa.errorBarThickness,d.errorBarThickness,1),da=g(O*d.errorBarWidthPercent/100,pa.errorWidth,F?d.hErrorBarWidth:d.vErrorBarWidth,d.errorBarWidth),
X=da/2,da=pa.errorBarColor||d.errorBarColor,ba(W)&&W!==A&&(lb=q.text(t).attr({text:W,fill:J.color,direction:za,"text-bound":[J.backgroundColor,J.borderColor,J.borderThickness,J.borderPadding,J.borderRadius,J.borderDash]}).css(P),f.setStyle(P),m=f.getOriSize(W)),F?(W=na=G=v.getAxisPosition($+R),F=Ga,U&&(W=sa(x)+vb%2/2,F=sa(na)+vb%2/2),x=["M",Ga,W,"H",F,"M",F,W-X,"V",W+X]):(W=na=G=l.getAxisPosition((ba(G)?G:c)+R),F=Ga,U&&(W=sa(na)+vb%2/2,F=sa(Ga)+vb%2/2),M=.5*(ka?m.width:m.height),C=na+.5*vb+ta+M,fa=
na-.5*vb-ta-M,x>na?(G=fa,fa-a.canvasTop<M&&(G=C)):(G=C,K-C<M&&(G=fa)),x=["M",F,x,"V",W,"M",F-X,W,"H",F+X]),da=q.path(x,n).attr({stroke:da,ishot:!H,"stroke-width":vb,cursor:k?"pointer":"","stroke-linecap":"round",visibility:I}).shadow(g(s.errorBarShadow,e.shadow)&&0<vb&&pa.shadow,y),(k||H)&&vb<bc&&(qa=q.path(x,h).attr({stroke:ua,"stroke-width":bc,cursor:k?"pointer":"",ishot:!!k,visibility:I})),qa=qa||da,qa.data("eventArgs",aa&&aa.data("eventArgs")||{link:k,toolText:ia,displayValue:pa.displayValue,
value:R}),qa.click(pb).data("groupId",Y).hover(T,ga).tooltip(ia),(k||H)&&qa.click(ea(k)),lb&&(lb.attr({x:Ga,y:G,title:pa.originalText||"",visibility:I}).css(P),ka&&lb.attr("transform","T0,0,R"+ka)),da&&(va.push(da),ja.errorBars.push(da)),lb&&(va.push(lb),ja.errorValues.push(lb)),qa&&qa!==da&&(va.push(qa),ja.trackerBars.push(qa)));p&&(n.hide(),t.attr({transform:"...t"+V+","+N}),y.hide(),setTimeout(ca,p))}b.visible=!1!==d.visible}}},s.mscolumn2dbase);s("errorline",{friendlyName:"Error Line Chart",standaloneInit:!0,
creditLabel:!1,chart:s.errorbar2d.chart,drawErrorValue:s.errorbar2d.drawErrorValue,useErrorGroup:!0,rendererId:"cartesian",isErrorChart:!0,fireGroupEvent:!0,canvasPaddingModifiers:["anchor","errorbar"],point:function(b,d,a,c,e,f){b=g(c.ignoreemptydatasets,0);var q=!1,m=!g(c.halferrorbar,1),v=e[oa],l=h(this.isValueAbs,v.isValueAbs,!1),p=g(a.showvalues,v.showValues),k=g(d.yAxis,0),n=this.numberFormatter,r=this.colorManager,t=X(h(a.color,c.linecolor,r.getPlotColor())),z=e.chart,D=g(a.alpha,c.linealpha,
"100"),w=g(a.errorbaralpha,c.errorbaralpha,D),B=g(a.linethickness,c.linethickness,2),H=Boolean(g(a.dashed,c.linedashed,0)),$=g(a.linedashlen,c.linedashlen,5),ia=g(a.linedashgap,c.linedashgap,4),Ga,E,va,I,ka,za,ta,u,O,F,U,K,J,Z,V,N,P,x,Y,W,G,Q,da,fa,R,ba,ja,na,T,pa;this.errorBarShadow=g(c.errorbarshadow);d.name=C(a.seriesname);d.color={FCcolor:{color:t,alpha:D}};d.lineWidth=B;ta=g(a.drawanchors,a.showanchors,c.drawanchors,c.showanchors);Y=g(a.anchorsides,c.anchorsides,0);W=g(a.anchorradius,c.anchorradius,
3);G=X(h(a.anchorbordercolor,c.anchorbordercolor,t));Q=g(a.anchorborderthickness,c.anchorborderthickness,1);da=X(h(a.anchorbgcolor,c.anchorbgcolor,r.getColor("anchorBgColor")));fa=h(a.anchoralpha,c.anchoralpha,"100");R=h(a.anchorbgalpha,c.anchorbgalpha,fa);ba=g(a.anchorstartangle,c.anchorstartangle,90);r=d.anchorShadow=g(c.anchorshadow,0);d.errorBarWidth=g(c.errorbarwidth,a.errorbarwidth,5);d.errorBarColor=y(X(h(a.errorbarcolor,c.errorbarcolor,"AAAAAA")),w);d.errorBarThickness=L(B,g(a.errorbarthickness,
c.errorbarthickness,1));if(0===g(a.includeinlegend)||void 0===d.name||0===D&&1!==ta)d.showInLegend=!1;d.marker={fillColor:{FCcolor:{color:da,alpha:R*fa/100+A}},lineColor:{FCcolor:{color:G,alpha:fa+A}},lineWidth:Q,radius:W,symbol:ga(Y),startAngle:ba};if(c=a.data)for(I=0;I<f;I+=1)(V=c[I])?(E=n.getCleanValue(V.value,l),va=n.getCleanValue(V.errorvalue,l),null===E?d.data.push({y:null}):(q=!0,Z=g(V.anchorsides,Y),J=g(V.anchorradius,W),U=X(h(V.anchorbordercolor,G)),K=g(V.anchorborderthickness,Q),F=X(h(V.anchorbgcolor,
da)),u=h(V.anchoralpha,fa),O=h(V.anchorbgalpha,R),ka=X(h(V.color,t)),za=h(V.alpha,D),na=g(V.dashed,H)?Ha($,ia,B):"none",N={opacity:za/100},ja=void 0===ta?0!==za:!!ta,Ga=v.oriCatTmp[I],pa=this.getPointStub(V,E,Ga,e,a,p,k,va),T=[],T.push({errorValue:va,toolText:pa._errortoolText,shadow:{opacity:w/250}}),m&&T.push({errorValue:null===va?null:-va,toolText:pa._errortoolText,shadow:{opacity:w/250}}),P=h(V.anchorstartangle,ba),x=Boolean(g(V.anchorshadow,r,0)),Ga=this.pointHoverOptions(V,d,{plotType:"anchor",
anchorBgColor:F,anchorAlpha:u,anchorBgAlpha:O,anchorAngle:P,anchorBorderThickness:K,anchorBorderColor:U,anchorBorderAlpha:u,anchorSides:Z,anchorRadius:J,shadow:N}),d.data.push(M(pa,{y:E,shadow:N,dashStyle:na,errorValue:T,valuePosition:h(V.valueposition,z.valuePosition),color:{FCcolor:{color:ka,alpha:za}},marker:{enabled:ja,shadow:x&&{opacity:u/100},fillColor:{FCcolor:{color:F,alpha:O*u/100+A}},lineColor:{FCcolor:{color:U,alpha:u}},lineWidth:K,radius:J,symbol:ga(Z),startAngle:P},hoverEffects:Ga.enabled&&
Ga.options,rolloverProperties:Ga.enabled&&Ga.rolloverOptions})),s.errorbar2d.pointValueWatcher(e,E,va))):d.data.push({y:null});b&&!q&&(d.showInLegend=!1);return d}},s.mslinebase);s("errorscatter",{friendlyName:"Error Scatter Chart",isXY:!0,standaloneInit:!0,creditLabel:!1,chart:s.errorbar2d.chart,drawErrorValue:s.errorbar2d.drawErrorValue,defaultZeroPlaneHighlighted:!1,useErrorGroup:!0,rendererId:"cartesian",isErrorChart:!0,fireGroupEvent:!0,point:function(b,d,a,c,e,f,q){b=g(c.ignoreemptydatasets,
0);f=!1;var m=g(a.drawline,0),v=g(a.drawprogressioncurve,0),l,p,k=g(a.showvalues,e[oa].showValues),n=this.numberFormatter,r=g(a.showregressionline,c.showregressionline,0),t=h(c.errorbarcolor,"AAAAAA"),z=h(c.errorbaralpha,"100"),D=g(c.errorbarthickness,1);p=g(c.errorbarwidth,5);var w=g(c.halfverticalerrorbar,1),B=g(a.verticalerrorbaralpha,a.errorbaralpha,c.verticalerrorbaralpha,z),H=y(h(a.verticalerrorbarcolor,a.errorbarcolor,c.verticalerrorbarcolor,t),B),$=g(a.verticalerrorbarthickness,a.errorbarthickness,
c.verticalerrorbarthickness,D),ia=g(c.halfhorizontalerrorbar,1),z=h(a.horizontalerrorbaralpha,a.errorbaralpha,c.horizontalerrorbaralpha,z),t=y(h(a.horizontalerrorbarcolor,a.errorbarcolor,c.horizontalerrorbarcolor,t),z),D=g(a.horizontalerrorbarthickness,a.errorbarthickness,c.horizontalerrorbarthickness,D),Ga=g(a.usehorizontalerrorbar,c.usehorizontalerrorbar,0),E=g(a.useverticalerrorbar,c.useverticalerrorbar,1),va={sumX:0,sumY:0,sumXY:0,sumXsqure:0,sumYsqure:0,xValues:[],yValues:[]};l=this.colorManager;
var I=l.getPlotColor(),ka,u,ta,s,O,F,U,K,J,x,V,N,P,aa,Y,W,L,G,M,fa,Q,da,ja,na;this.errorBarShadow=g(c.errorbarshadow);d.zIndex=1;d.name=C(a.seriesname);if(0===g(a.includeinlegend)||void 0===d.name)d.showInLegend=!1;d.vErrorBarWidth=g(a.verticalerrorbarwidth,a.errorbarwidth,c.verticalerrorbarwidth,p);d.hErrorBarWidth=g(a.horizontalerrorbarwidth,a.errorbarwidth,c.horizontalerrorbarwidth,p);if(m||v)v&&(d.type="spline"),u=X(h(a.color,I)),m=h(a.alpha,Ea),v=g(a.linethickness,c.linethickness,2),p=Boolean(g(a.linedashed,
a.dashed,c.linedashed,0)),ta=g(a.linedashlen,c.linedashlen,5),s=g(a.linedashgap,c.linedashgap,4),d.color=y(h(a.linecolor,c.linecolor,u),g(a.linealpha,c.linealpha,m)),d.lineWidth=v,d.dashStyle=p?Ha(ta,s,v):"none";m=Boolean(g(a.drawanchors,a.showanchors,c.drawanchors,c.showanchors,1));q=g(a.anchorsides,c.anchorsides,q+3);v=g(a.anchorradius,c.anchorradius,3);u=X(h(a.anchorbordercolor,a.color,c.anchorbordercolor,u,I));I=g(a.anchorborderthickness,c.anchorborderthickness,1);s=X(h(a.anchorbgcolor,c.anchorbgcolor,
l.getColor("anchorBgColor")));F=h(a.anchoralpha,a.alpha,c.anchoralpha,"100");U=h(a.anchorbgalpha,c.anchorbgalpha,F);ta=h(a.anchorstartangle,c.anchorstartangle);d.anchorShadow=g(c.anchorshadow,0);d.marker={fillColor:this.getPointColor(s,"100"),lineColor:{FCcolor:{color:u,alpha:F+A}},lineWidth:I,radius:v,symbol:ga(q)};if(l=a.data){p=l.length;r&&(d.events={hide:this.hideRLine,show:this.showRLine},Q=g(a.showyonx,c.showyonx,1),da=X(h(a.regressionlinecolor,c.regressionlinecolor,u)),ja=g(a.regressionlinethickness,
c.regressionlinethickness,I),c=Ka(g(a.regressionlinealpha,c.regressionlinealpha,F)),da=y(da,c));for(ka=0;ka<p;ka+=1)(O=l[ka])?(c=n.getCleanValue(O.y),Y=n.getCleanValue(O.x),n.getCleanValue(O.errorvalue),W=n.getCleanValue(h(O.horizontalerrorvalue,O.errorvalue)),L=n.getCleanValue(h(O.verticalerrorvalue,O.errorvalue)),null===c?d.data.push({y:null,x:Y}):(f=!0,G=this.getPointStub(O,c,n.xAxis(Y),e,a,k,void 0,L,W,Y),K=g(O.anchorsides,q),J=g(O.anchorradius,v),x=X(h(O.anchorbordercolor,u)),V=g(O.anchorborderthickness,
I),N=X(h(O.anchorbgcolor,s)),P=h(O.anchoralpha,O.alpha,F),aa=h(O.anchorbgalpha,U),M=Boolean(g(O.usehorizontalerrorbar,Ga)),fa=Boolean(g(O.useverticalerrorbar,E)),na=[],M&&(M=G._hErrortoolText,na.push({errorValue:W,toolText:M,errorBarColor:t,isHorizontal:1,errorBarThickness:D,shadow:{opacity:z/250}}),ia||na.push({errorValue:-W,toolText:M,errorBarColor:t,isHorizontal:1,errorBarThickness:D,shadow:{opacity:z/250}})),fa&&(fa=G._errortoolText,na.push({errorValue:L,toolText:fa,errorBarColor:H,errorBarThickness:$,
shadow:{opacity:B/250}}),w||na.push({errorValue:-L,toolText:fa,errorBarColor:H,errorBarThickness:$,shadow:{opacity:B/250}})),fa=this.pointHoverOptions(O,d,{plotType:"anchor",anchorBgColor:N,anchorAlpha:P,anchorBgAlpha:aa,anchorAngle:ta,anchorBorderThickness:V,anchorBorderColor:x,anchorBorderAlpha:P,anchorSides:K,anchorRadius:J}),d.data.push({y:c,x:Y,errorValue:na,displayValue:G.displayValue,toolText:G.toolText,link:G.link,marker:{enabled:m,shadow:void 0,fillColor:{FCcolor:{color:N,alpha:aa*P/100+
A}},lineColor:{FCcolor:{color:x,alpha:P}},lineWidth:V,radius:J,symbol:ga(K),startAngle:h(O.anchorstartangle,ta)},hoverEffects:fa.enabled&&fa.options,rolloverProperties:fa.enabled&&fa.rolloverOptions}),this.pointValueWatcher(e,w?c:c-L,ia?Y:Y-W,r&&va),this.pointValueWatcher(e,c+L,Y+W,r&&va))):d.data.push({y:null});r&&(a=this.getRegressionLineSeries(va,Q,p),this.pointValueWatcher(e,a[0].y,a[0].x),this.pointValueWatcher(e,a[1].y,a[1].x),e={type:"line",color:da,showInLegend:!1,lineWidth:ja,enableMouseTracking:!1,
marker:{enabled:!1},data:a,zIndex:0},d=[d,e])}b&&!f&&(d.showInLegend=!1);return d}},s.scatterbase);s("waterfall2d",{friendlyName:"Waterfall Chart",standaloneInit:!0,isWaterfall:!0,creditLabel:!1,point:function(b,d,a,c,e){var f,q,m,v,l,p,k,n,r,t,z,D,w,B,H;b=h(c.connectorthickness,1);var $={step:!0,type:"line",enableMouseTracking:!1,data:[],dataLabels:{enabled:!1},marker:{enabled:!1},dashStyle:"1"===c.connectordashed?Ha(g(c.connectordashlen,2),g(c.connectordashgap,2),b):"none",drawVerticalJoins:!1,
useForwardSteps:!0,color:y(h(c.connectorcolor,"000000"),h(c.connectoralpha,100)),lineWidth:b},ia=this.colorManager,Ga=a.length,E=e[oa],va=E.axisGridManager,I=e.xAxis,u=E.x,s=/3d$/.test(e.chart.defaultSeriesType),ta=this.isBar,x="1"===h(c.showplotborder,s?"0":"1")?s?1:g(c.plotborderthickness,1):0,O=e.chart.useRoundEdges,L=g(c.plotborderalpha,c.plotfillalpha,100)+A,U=h(c.plotbordercolor,ia.getColor("plotBorderColor").split(",")[0]),K=g(c.useplotgradientcolor,1)?Lb(c.plotgradientcolor,ia.getColor("plotGradientColor")):
A,J=g(c.plotborderdashed,0),Z=g(c.plotborderdashlen,6),V=g(c.plotborderdashgap,3),N=0,P=Boolean(g(c.use3dlighting,1)),aa=0,Y=0,W=e[oa].numberFormatter,G,M=0,Q,fa=g(c.showsumatend,1);for(f=0;f<Ga;f+=1)n=a[f],b=W.getCleanValue(n.value),m=g(n.issum,0),n.vline||m||(M+=b,n._value=b);G=W.dataLabels(M);fa&&(fa=!0,Ga+=1,Q={label:ea(c.sumlabel,"Total"),_value:M,value:M,issum:1,cumulative:1});for(q=f=0;f<Ga;f+=1)n=a[f],!n&&fa&&(n=Q),n.vline?va.addVline(I,n,N,e):(b=n._value,delete n._value,m=g(n.issum,0),k=
g(n.cumulative,1),m?(b=k?aa:aa===Y?aa:aa-Y,Y=aa,$.data.push({y:null,x:q-.5})):aa+=b,m=g(n.showlabel,c.showlabels,1),m=F(m?ea(n.label,n.name):A),va.addXaxisCat(I,N,N,m,n,{},c),N+=1,0<b?(v=h(n.color,c.positivecolor,ia.getPlotColor()),d.hoverEffects&&(d.hoverEffects.color=h(n.positivehovercolor,c.positivehovercolor,c.plotfillhovercolor))):(v=h(n.color,c.negativecolor,ia.getPlotColor()),d.hoverEffects&&(d.hoverEffects.color=h(n.negativehovercolor,c.negativehovercolor,c.plotfillhovercolor))),l=h(n.alpha,
c.plotfillalpha,"100"),p=h(n.ratio,c.plotfillratio),r=h(360-c.plotfillangle,90),0>b&&(r=360-r),D=h(n.alpha,L),w=g(n.dashed,J),B=h(n.dashgap,V),H=h(n.dashlen,Z),t={opacity:l/100,inverted:ta},k=cc(v+Ba+K.replace(/,+?$/,""),l,p,r,O,U,h(n.alpha,L),ta,s),z=w?Ha(H,B,x):"none",v=this.pointHoverOptions(n,d,{plotType:"column",is3d:s,isBar:ta,use3DLighting:P,isRoundEdged:O,color:v,gradientColor:K,alpha:l,ratio:p,angle:r,borderWidth:x,borderColor:U,borderAlpha:D,borderDashed:w,borderDashGap:B,borderDashLen:H,
shadow:t}),l=C(F(n.displayvalue)),p=null===b?b:W.dataLabels(b),r=C(F(h(n.tooltext,E.tooltext))),r=E.showTooltip?void 0!==r?bb(r,[1,2,3,5,6,7,20,21,24,25],{formattedValue:p,label:m,yaxisName:F(c.yaxisname),xaxisName:F(c.xaxisname),cumulativeValue:aa,cumulativeDataValue:W.dataLabels(aa),sum:G,unformattedSum:M},n,c):null===p?!1:m!==A?m+E.tooltipSepChar+p:p:A,l=g(n.showvalue,E.showValues)?void 0!==l?l:p:A,d.data.push({y:b,_FCY:0>b?aa-b:aa,previousY:0>b?aa:0===aa-b?void 0:aa-b,shadow:t,color:k[0],borderColor:k[1],
borderWidth:x,dashStyle:z,use3DLighting:P,hoverEffects:v.enabled&&v.options,rolloverProperties:v.enabled&&v.rolloverOptions,displayValue:l,categoryLabel:m,toolText:r,link:h(n.link)}),$.data.push({y:b&&aa,x:q}),this.pointValueWatcher(e,aa),q+=1);u.catCount=N;"0"!=c.showconnectors&&(d=[$,d]);return d},defaultSeriesType:"column",rendererId:"cartesian"},Ca);s("multilevelpie",{friendlyName:"Multi-level Pie Chart",standaloneInit:!0,defaultSeriesType:"multilevelpie",rendererId:"multiLevelPie",defaultPlotShadow:0,
series:function(){var b=this.dataObj,d=this.hcJSON,a=b.chart,c=d.series,e={},f=Boolean(g(a.usehovercolor,1)),q=y(h(a.hoverfillcolor,"FF5904"),g(a.hoverfillalpha,100)),m=parseInt(a.pieradius,10),v=0,l=!0;d.chart.plotBorderColor=0;d.chart.plotBackgroundColor=null;d.plotOptions.series.dataLabels.style=d.xAxis.labels.style;d.plotOptions.series.dataLabels.color=d.xAxis.labels.style.color;d.legend.enabled=!1;d.plotOptions.pie.allowPointSelect=!1;d.plotOptions.series.borderColor=y(h(a.plotbordercolor,a.piebordercolor,
"FFFFFF"),"0"!=a.showplotborder?h(a.plotborderalpha,a.pieborderalpha,100):0);d.plotOptions.series.borderWidth=g(a.pieborderthickness,a.plotborderthickness,1);d.plotOptions.pie.startingAngle=0;d.plotOptions.pie.size="100%";e.showLabels=g(a.showlabels,1);e.showValues=g(a.showvalues,0);e.showValuesInTooltip=g(a.showvaluesintooltip,a.showvalues,0);e.showPercentValues=g(a.showpercentvalues,a.showpercentagevalues,0);e.showPercentInTooltip=g(a.showpercentintooltip,0);e.toolTipSepChar=h(a.tooltipsepchar,
a.hovercapsepchar,Qa);e.labelSepChar=h(a.labelsepchar,e.toolTipSepChar);e.tooltext=a.plottooltext;f&&(d.plotOptions.series.point.events={mouseOver:function(){for(var a=this,b=a.chart.plots,c,d;a;)a.graphic.attr({fill:q}),d=a.prevPointIndex,a=a.prevSeriesIndex,a=(c=b[a])&&c.items&&c.items[d]},mouseOut:function(){for(var a=this,b=a.chart.plots,c,d;a;)a.graphic.attr({fill:a.color}),d=a.prevPointIndex,a=a.prevSeriesIndex,a=(c=b[a])&&c.items&&c.items[d]}});d.chart.plotBorderWidth=0;b.category&&this.addMSPieCat(b.category,
0,0,100,h(a.plotfillalpha,a.piefillalpha,100),e,null);m=parseInt(a.pieradius,10);v=0;l=!0;m?(b=2*m/c.length,l=!1):b=parseInt(100/c.length,10);d.plotOptions.series.dataLabels.distance=0;d.plotOptions.series.dataLabels.placeLabelsInside=!0;for(d=0;d<c.length;d+=1)c[d].innerSize=v+(l?"%":""),c[d].size=(v+=b)+(l?"%":""),0===c[d].data[c[d].data.length-1].y&&c[d].data.pop()},spaceManager:function(b,d,a,c){var e=b[oa];this.titleSpaceManager(b,d,a-(e.marginLeftExtraSpace+e.marginRightExtraSpace+b.chart.marginRight+
b.chart.marginLeft),.4*(c-(e.marginBottomExtraSpace+e.marginTopExtraSpace+b.chart.marginBottom+b.chart.marginTop)))},addMSPieCat:function(b,d,a,c,e,f,q){var m=this.numberFormatter,v=this.colorManager,l,p,k=0,n=b.length-1,r,t,z;l=this.hcJSON.series;var D=f.labelSepChar,w,B,H,$,ia,Ga;void 0===this.colorCount&&(this.colorCount=0);0===d&&(this.colorCount=0);l[d]||(l[d]={data:[{toolText:!1,doNotSlice:!0,y:100,visible:!1,color:"rgba(255,255,255,0)"}]});l=l[d];(p=a-100+l.data[l.data.length-1].y)&&l.data.splice(l.data.length-
1,0,{toolText:!1,doNotSlice:!0,y:p,visible:!1,color:"rgba(255,255,255,0)"});l.data[l.data.length-1].y=100-c;for(t=0;t<=n;t+=1)r=b[t],r._userValue=m.getCleanValue(r.value,this.isValueAbs),r._value=g(r._userValue,1),k+=r._value;k=k||1;p=(c-a)/k;for(t=n;0<=t;--t)r=b[t],n=p*r._value,z=F(h(r.label,r.name)),H=null!==r._userValue?m.dataLabels(r._userValue):A,$=m.percentValue(r._value/k*100),w=l.data.length-1,B=g(r.alpha,e),Ga=f.showLabels?z:A,f.showValues&&(f.showPercentValues?Ga+=Ga!==A?D+$:$:void 0!==
H&&H!==A&&(Ga+=Ga!==A?D+H:H)),ia=F(h(r.tooltext,r.hovertext,f.tooltext)),ia===A?(ia=z,f.showValuesInTooltip&&(f.showPercentInTooltip?ia+=ia!==A?D+$:$:void 0!==H&&H!==A&&(ia+=ia!==A?D+H:H))):ia=bb(ia,[1,2,3,14],{percentValue:$,label:z,formattedValue:H},r),l.data.splice(w,0,{prevPointIndex:q,prevSeriesIndex:d-1,displayValue:Ga,toolText:ia,y:n,link:C(r.link),doNotSlice:!0,color:y(r.color||v.getPlotColor(),B),shadow:{opacity:.01*sa(50<B?B*B*B*1E-4:B*B*.01)}}),this.colorCount+=1,r.category&&this.addMSPieCat(r.category,
d+1,a,0===t?c:a+n,e,f,w),a+=n},isValueAbs:!0,creditLabel:!1},Ca);s("radar",{friendlyName:"Radar Chart",standaloneInit:!0,creditLabel:!1,defaultSeriesType:"radar",areaAlpha:50,spaceManager:function(b,d,a,c){b.chart.plotBorderWidth=0;b.chart.plotBackgroundColor=null;var e=b[oa],f=e.x,q=b.xAxis,m=b.yAxis[0],v=d.chart,m=g(v.labelpadding,v.labelxpadding,parseInt(m&&m.labels&&m.labels.style&&m.labels.style.fontSize||10,10));a-=e.marginLeftExtraSpace+e.marginRightExtraSpace+b.chart.marginRight+b.chart.marginLeft;
c-=e.marginBottomExtraSpace+e.marginTopExtraSpace+b.chart.marginBottom+b.chart.marginTop;e=this.colorManager;c-=this.titleSpaceManager(b,d,a,.4*c);q.min=g(f.min,0);q.max=g(f.max,f.catCount-1);q.gridLineColor=y(h(v.radarspikecolor,e.getColor("divLineColor")),g(v.radarspikealpha,v.radarinlinealpha,e.getColor("divLineAlpha")));q.gridLineWidth=g(v.radarspikethickness,1);q.showRadarBorder=g(v.showradarborder,1);q.radarBorderThickness=g(v.radarborderthickness,2);q.radarBorderColor=y(h(v.radarbordercolor,
e.getColor("divLineColor")),g(v.radarborderalpha,100));q.radarFillColor=y(h(v.radarfillcolor,e.getColor("altHGridColor")),g(v.radarfillalpha,e.getColor("altHGridAlpha")));b.legend.enabled&&(h(v.legendposition,Ia).toLowerCase()!=Aa?c-=this.placeLegendBlockBottom(b,d,a,c/2):a-=this.placeLegendBlockRight(b,d,a/3,c));d=g(v.radarradius);f=2*g(parseInt(q.labels.style.lineHeight,10),12);v=2*m;f=L(a-(100+v),c-(f+v));d=d||.5*f;a=L(.3*a,.3*c);d<a&&(d=a);b.chart.axisRadius=d;q.labels.labelPadding=m},anchorAlpha:"100",
showValues:0,isRadar:!0,rendererId:"radar"},s.msareabase);Ca={dragExtended:!0,defaultRestoreButtonVisible:1,spaceManager:function(b,d,a,c){var e=b[oa],f=b.chart,q=d.chart,m=e.outCanvasStyle,v=c-.3*(e.marginBottomExtraSpace+f.marginBottom+f.marginTop),l=0,p=0,e=this.smartLabel||e.smartLabel,k,n;f.formAction=C(q.formaction);f.formDataFormat=h(q.formdataformat,G.dataFormats.XML);f.formTarget=h(q.formtarget,"_self");f.formMethod=h(q.formmethod,"POST");f.submitFormAsAjax=g(q.submitformusingajax,1);f.showFormBtn=
g(q.showformbtn,1)&&f.formAction;f.formBtnTitle=h(q.formbtntitle,"Submit");f.formBtnBorderColor=h(q.formbtnbordercolor,"CBCBCB");f.formBtnBgColor=h(q.formbtnbgcolor,"FFFFFF");f.btnPadding=g(q.btnpadding,7);f.btnSpacing=g(q.btnspacing,5);f.formBtnStyle={fontSize:m.fontSize,fontFamily:m.fontFamily,fontWeight:"bold"};f.formBtnLabelFill=m.color;q.btntextcolor&&(f.formBtnLabelFill=q.btntextcolor.replace(mb,Ra));0<=(m=g(q.btnfontsize))&&(f.formBtnStyle.fontSize=m+"px");Da(f.formBtnStyle);f.showRestoreBtn=
g(q.showrestorebtn,this.defaultRestoreButtonVisible,1);f.showRestoreBtn&&(f.restoreBtnTitle=h(q.restorebtntitle,"Restore"),f.restoreBtnBorderColor=h(q.restorebtnbordercolor,f.formBtnBorderColor),f.restoreBtnBgColor=h(q.restorebtnbgcolor,f.formBtnBgColor),f.restoreBtnStyle={fontSize:f.formBtnStyle.fontSize,fontFamily:f.formBtnStyle.fontFamily,fontWeight:"bold"},f.restoreBtnLabelFill=f.formBtnLabelFill,q.restorebtntextcolor&&(f.restoreBtnLabelFill=q.restorebtntextcolor.replace(mb,Ra)),0<=(m=g(q.restorebtnfontsize))&&
(f.restoreBtnStyle.fontSize=m+"px"),Da(f.restoreBtnStyle));f.showLimitUpdateMenu=g(q.showlimitupdatemenu,1);f.showFormBtn&&(e.setStyle(f.formBtnStyle),k=e.getOriSize(f.formBtnTitle),l=k.height||0);f.showRestoreBtn&&(e.setStyle(f.restoreBtnStyle),n=e.getOriSize(f.restoreBtnTitle),l=Ya(n.height,l)||0);0<l&&(l+=f.btnPadding+4,l>v&&(f.btnPadding=Ya(f.btnPadding-l+v,0)/2,l=v));f.btnHeight=l;f.showFormBtn&&(p=k.width+l,f.formBtnWidth=g(q.formbtnwidth,p),f.formBtnWidth<k.width&&(f.formBtnWidth=p));f.showRestoreBtn&&
(p=n.width+l,f.restoreBtnWidth=g(q.restorebtnwidth,p),f.restoreBtnWidth<n.width&&(f.restoreBtnWidth=p));f.marginBottom+=l+f.btnPadding;f.spacingBottom+=l+f.btnPadding;(b.callbacks||(b.callbacks=[])).push(this.drawButtons);return this.placeVerticalXYSpaceManager.apply(this,arguments)},drawButtons:function(){var b=this.logic,d=this.paper,a=this.options.chart,c=a.btnSpacing,e=this.chartHeight-a.spacingBottom+a.btnPadding,f=this.chartWidth-a.spacingRight,q=this.layers.layerAboveDataset,m=0;a.showFormBtn&&
(this.submitBtn=d.button(f-a.formBtnWidth,e,a.formBtnTitle,void 0,{width:a.formBtnWidth,height:a.btnHeight,verticalPadding:1,horizontalPadding:15},q).labelcss(a.formBtnStyle).attr({fill:[X(a.formBtnBgColor),a.formBtnLabelFill],stroke:X(a.formBtnBorderColor)}).buttonclick(function(){b.chartInstance.submitData()}),m=a.formBtnWidth+c);a.showRestoreBtn&&(this.restoreBtn=d.button(f-a.restoreBtnWidth-m,e,a.restoreBtnTitle,void 0,{width:a.restoreBtnWidth,height:a.btnHeight,verticalPadding:1,horizontalPadding:15},
q).labelcss(a.restoreBtnStyle).attr({fill:[X(a.restoreBtnBgColor),a.restoreBtnLabelFill],stroke:X(a.restoreBtnBorderColor)}).buttonclick(function(){b.chartInstance.restoreData()}))},drawAxisUpdateUI:function(){var b=this,d=b.logic,a=b.elements,c=b.options,e=c.chart,f=c[oa],q=d.chartInstance,d=d.renderer,m=b.yAxis[0],g=m.axisData,l=m.poi,p=g.plotLines,k=b.container,n=c.chart.showRangeError,h=f.inCanvasStyle,c=b.toolbar||(b.toolbar=[]),m=b.menus||(b.menus=[]),t=db({outline:"none","-webkit-appearance":"none",
filter:"alpha(opacity=0)",position:"absolute",background:"transparent",border:"1px solid #cccccc",textAlign:"right",top:0,left:0,width:50,zIndex:20,opacity:0,borderRadius:0},h),z,D;d&&!d.forExport&&(D=function(a,c,d){if(a===c+"")return null;c=d?q.setUpperLimit(a,!0):q.setLowerLimit(a,!0);!c&&n&&b.showMessage("Sorry! Not enough range gap to modify axis limit to "+(Number(a)||"0")+".<br />Please modify the data values to be within range.<br />&nbsp;<br />(click anywhere on the chart to close this message)",
!0);return c},ib(["max","min"],function(a){var c=l[a],d=c.label,f=p[c.index],c=d&&d.getBBox(),q,m,g,n,v,z,s;if(c&&d){m=c.x+c.width-e.spacingLeft;g=e.marginLeft-m-(Za?4:5);q=ob("input",{type:"text",value:f.value,name:a||""},k,!0);db(t,{top:c.y+(Za?-1:0)+"px",left:g+"px",width:m+"px"});for(n in t)q.style[n]=t[n];u.dem.listen(q,["focus","mouseup","blur","keyup"],[function(){var a={opacity:1,filter:"alpha(opacity=100)",color:h.color},b;this.value=f.value;for(b in a)this.style[b]=a[b];v=s=!0;d.hide()},
function(){var a=this;s&&(s=!1,la||setTimeout(function(){a.select()},0))},function(){!0!==D(this.value,f.value,f.isMaxLabel)&&(this.style.opacity=0,this.style.filter="alpha(opacity=0)",d.show());$b&&Va.getElementsByTagName("body")[0].focus&&Va.getElementsByTagName("body")[0].focus();v=s=!1},function(a){var b=a.originalEvent.keyCode,c=this.value;13===b?(a=D(c,f.value,f.isMaxLabel),!1===a&&(this.style.color="#dd0000")):27===b&&(this.value=f.value,u.dem.fire(this,"blur",a))}]);q.setAttribute("isOverlay",
"true");Za?(tb(b.container,"defaultprevented",z=function(a){q.parentNode&&u.dem.fire(q,"blur",a)}),tb(b.container,"destroy",function(){T(b,"defaultprevented",z);q.parentNode.removeChild(q)})):(tb(b.container,"mousedown",z=function(a){a.srcElement!==q&&v&&u.dem.fire(q,"blur",a)}),tb(b.container,"destroy",function(){T(b.container,"mousedown",z);q.parentNode.removeChild(q)}))}}),e.showLimitUpdateMenu&&(m.push(z=Ob({chart:b,basicStyle:f.outCanvasStyle,items:[{text:"Increase Upper Limit",onclick:function(){q.setUpperLimit(g.max+
g.tickInterval,!0)}},{text:"Increase Lower Limit",onclick:function(){q.setLowerLimit(g.min+g.tickInterval,!0)}},{text:"Decrease Upper Limit",onclick:function(){q.setUpperLimit(g.max-g.tickInterval,!0)}},{text:"Decrease Lower Limit",onclick:function(){q.setLowerLimit(g.min-g.tickInterval,!0)}}],position:{x:e.spacingLeft,y:q.height-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}})),a.configureButton=c.add("configureIcon",function(a,b){return function(){z.visible?z.hide():z.show({x:a,y:b+1})}}(),
{x:e.spacingLeft,y:q.height-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Change Y-Axis Limits"})))},getCollatedData:function(){var b=this.chartInstance,d=b.__state,a=b.jsVars,b=this.updatedDataObj||M({},b.getChartData(G.dataFormats.JSON)),c=a._reflowData,a=b.dataset,e=(c=c&&c.hcJSON&&c.hcJSON.series)&&c.length,f,q,m,g;if(void 0!==d.hasStaleData&&!d.hasStaleData&&this.updatedDataObj)return this.updatedDataObj;if(a&&c)for(;e--;)if(q=a[e]&&a[e].data,(f=(m=c[e]&&c[e].data)&&m.length)&&
q)for(;f--;)if(g=m[f])q[f].value=g.y;d.hasStaleData=!1;return this.updatedDataObj=b},eiMethods:{restoreData:function(){var b=this.jsVars,d=b.fcObj;b._reflowData={};delete b._reflowClean;G.hcLib.createChart(d,b.container,b.type,void 0,void 0,!1,!0);u.raiseEvent("dataRestored",{},d,[d.id]);return!0},submitData:function(){var b=this.jsVars,d=b.fcObj,a=d.__state,c=a._submitAjaxObj||(a._submitAjaxObj=new G.ajax),a=G.dataFormats.JSON,e=G.dataFormats.CSV,f=G.dataFormats.XML,b=b.instanceAPI,q=b.hcJSON.chart,
m=q.formAction,g=q.submitFormAsAjax,l,p,k,n,h;q.formDataFormat===a?(l=a,p=JSON.stringify(b.getCollatedData())):q.formDataFormat===e?(l=e,p=b.getCSVString&&b.getCSVString(),void 0===p&&(p=G.core.transcodeData(b.getCollatedData(),a,e))):(l=f,p=G.core.transcodeData(b.getCollatedData(),a,f));G.raiseEvent("beforeDataSubmit",{data:p},d,void 0,function(){g?(c.onError=function(a,b,c,e){u.raiseEvent("dataSubmitError",{xhrObject:b.xhr,url:e,statusText:a,httpStatus:b.xhr&&b.xhr.status?b.xhr.status:-1,data:p},
d,[d.id,a,b.xhr&&b.xhr.status])},c.onSuccess=function(a,b,e,f){u.raiseEvent("dataSubmitted",{xhrObject:c,response:a,url:f,data:p},d,[d.id,a])},k={},k["str"+l.toUpperCase()]=p,c.open&&c.abort(),c.post(m,k)):(n=Xa.document.createElement("span"),n.innerHTML='<form style="display:none" action="'+m+'" method="'+q.formMethod+'" target="'+q.formTarget+'"> <input type="hidden" name="strXML" value="'+Yc(p)+'"><input type="hidden" name="dataFormat" value="'+l.toUpperCase()+'" /></form>',h=n.removeChild(n.firstChild),
Xa.document.body.appendChild(h),h.submit&&h.submit(),h.parentNode.removeChild(h),n=h=null)},function(){G.raiseEvent("dataSubmitCancelled",{data:p},d)})},getDataWithId:function(){for(var b=this.jsVars.instanceAPI.getCollatedData(),d=[[A]],a=b.dataset,b=b.categories&&b.categories[0]&&b.categories[0].category,c=a&&a.length||0,e=0,f,q,m,g,l,p;c--;)if(q=a[c])for(d[0][c+1]=q.id||q.seriesname,g=q.id||c+1,p=(q=q.data)&&q.length||0,l=0;l<p;l+=1){m=l+1;if(!d[m]){for(f=b&&b[l+e]||{};f.vline;)e+=1,f=b[l+e]||
{};f=f.label||f.name||A;d[m]=[f]}f=d[m];m=q[l].id||m+"_"+g;f[c+1]=[m,Number(q[l].value)]}return d},getData:function(b){var d=this.jsVars.instanceAPI.getCollatedData(),a=[[A]],c=d.dataset,e=d.categories&&d.categories[0]&&d.categories[0].category,f=c&&c.length||0,q=0,m,g,l;if(b)a=/^json$/ig.test(b)?d:G.core.transcodeData(d,"json",b);else for(;f--;)if(b=c[f])for(a[0][f+1]=c[f].seriesname,d=(b=c[f]&&c[f].data)&&b.length||0,l=0;l<d;l+=1){g=l+1;if(!a[g]){for(m=e&&e[l+q]||{};m.vline;)q+=1,m=e[l+q]||{};m=
m.label||m.name||A;a[g]=[m]}g=a[g];g[f+1]=Number(b[l].value)}return a},setYAxisLimits:function(b,d){var a=this.jsVars.instanceAPI,c=a.hcJSON,e=a.dataObj,f=e&&e.chart||{},c=c&&c.yAxis&&c.yAxis[0]||!1,q=!1;f.animation=!1;if(!c)return!1;void 0!==b&&b>a.highValue&&b!==c.max?(f.yaxismaxvalue=b,q=!0):(b=a.highValue>c.max?a.highValue:c.max,f.yaxismaxvalue=b);void 0!==d&&d<a.lowValue&&d!==c.min?(f.yaxisminvalue=d,q=!0):(d=a.lowValue<c.min?a.lowValue:c.min,f.yaxisminvalue=d);q&&a.updateChartWithData(e);return q},
getUpperLimit:function(){var b=this.jsVars.instanceAPI.hcJSON;return(b=b.yAxis&&b.yAxis[0])?b.max:void 0},setUpperLimit:function(b){return this.jsVars.fcObj.setYAxisLimits(b,void 0)},getLowerLimit:function(){var b=this.jsVars.instanceAPI.hcJSON;return(b=b.yAxis&&b.yAxis[0])?b.min:void 0},setLowerLimit:function(b){return this.jsVars.fcObj.setYAxisLimits(void 0,b)}},updateChartWithData:function(b){var d=this.chartInstance,a=d.jsVars,c=b&&b.chart;b=a._reflowData||(a._reflowData={});c={dataObj:{chart:{yaxisminvalue:g(c.yaxisminvalue),
yaxismaxvalue:g(c.yaxismaxvalue),animation:c.animation}}};M(b,c,!0);G.hcLib.createChart(d,a.container,a.type)},preSeriesAddition:function(){var b=this,d=b.hcJSON,a=b.dataObj.chart,c=d.chart;b.tooltipSepChar=d[oa].tooltipSepChar;c.allowAxisChange=g(a.allowaxischange,1);c.changeDivWithAxis=1;c.snapToDivOnly=g(a.snaptodivonly,0);c.snapToDiv=c.snapToDivOnly?1:g(a.snaptodiv,1);c.snapToDivRelaxation=g(a.snaptodivrelaxation,10);c.doNotSnap=g(a.donotsnap,0);c.doNotSnap&&(c.snapToDiv=c.snapToDivOnly=0);c.showRangeError=
g(a.showrangeerror,0);g(a.allowaxischange,1)&&(d.callbacks||(d.callbacks=[])).push(function(a){var c=this,d=arguments,m;tb(a.renderer.container,"destroy",function(){m&&(m=clearTimeout(m))});m=setTimeout(function(){b.drawAxisUpdateUI.apply(c,d);m=null},1)})},getTooltextCreator:function(){var b=arguments;return function(){var d=arguments,a=d.length,c,e,f;for(f=0;f<a;f+=1)void 0!==(e=d[f])&&void 0!==(c=b[f])&&(b[f]="object"===typeof c?M(c,e):e);return bb.apply(this,b)}},getPointStub:function(b,d,a,c,
e,f,q){var m=this.isDual,v=this.dataObj.chart;c=c[oa];var l=null===d?d:c.numberFormatter.dataLabels(d,1===q?!0:!1),p=C(F(h(b.tooltext,e.plottooltext,c.tooltext))),k=c.tooltipSepChar,n=e._sourceDataset;d=g(b.allowdrag,n.allowdrag,1);var n=g(b.allownegativedrag,n.allownegativedrag,e.allownegativedrag,1),r,t,z,D,w=0,B=0,H,$;c.showTooltip?void 0!==p?($=this.getTooltextCreator(p,[1,2,3,4,5,6,7],{yaxisName:F(m?q?v.syaxisname:v.pyaxisname:v.yaxisname),xaxisName:F(v.xaxisname),formattedValue:l,label:a},b,
v,e),e=$(),e===p&&($=void 0,w=1)):null===l?e=!1:(c.seriesNameInToolTip&&(D=ea(e&&e.seriesname)),e=D?D+k:A,H=e+=a?a+k:A,c.showPercentInToolTip?r=!0:e+=l):e=!1;g(b.showvalue,f)?void 0!==C(b.displayvalue)?(z=F(b.displayvalue),B=1):c.showPercentValues?t=!0:z=l:z=A;b=h(b.link);return{displayValue:z,categoryLabel:a,toolText:e,link:b,showPercentValues:t,showPercentInToolTip:r,allowDrag:d,allowNegDrag:n,_toolTextStr:H,_isUserValue:B,_isUserTooltip:w,_getTooltext:$}}};s("dragnode",{friendlyName:"Dragable Node Chart",
standaloneInit:!0,decimals:2,numdivlines:0,numVDivLines:0,defaultZeroPlaneHighlighted:!1,defaultZeroPlaneHidden:!0,spaceManager:Ca.spaceManager,drawButtons:Ca.drawButtons,updateChartWithData:Ca.updateChartWithData,creditLabel:!1,canvasPaddingModifiers:null,defaultSeriesType:"dragnode",rendererId:"dragnode",tooltipsepchar:" - ",showAxisLimitGridLines:0,cleanedData:function(b,d){var a=b&&b.hcJSON,c=d&&d.hcJSON,e,f,q,m,g,l,p,k,n;if(a&&c){if(a.series&&c.series&&(g=c.series.length))for(k=0;k<g;k+=1)if(f=
c.series[k],e=a.series[k],f.data&&(l=f.data.length))for(n=0;n<l;n+=1)!0===f.data[n]&&e&&e.data&&e.data[n]&&(delete e.data[n],e.data[n]={y:null});if(a.connectors&&c.connectors&&(q=c.connectors.length))for(k=0;k<q;k+=1)if(f=c.connectors[k],e=a.connectors[k],f.connector&&(p=f.connector.length))for(n=0;n<p;n+=1)!0===f.connector[n]&&e&&e.connector&&e.connector[n]&&(delete e.connector[n],e.connector[n]={});if(a.dragableLabels&&c.dragableLabels&&(m=c.dragableLabels.length))for(k=0;k<m;k+=1)!0===c.dragableLabels[k]&&
a.dragableLabels[k]&&(delete a.dragableLabels[k],a.dragableLabels[k]={})}},eiMethods:M(db(s.scatterbase.eiMethods,Ca.eiMethods),{addNode:function(b){var d=this.jsVars,a=d.instanceAPI,c=d._reflowData||(d._reflowData={}),e=a.hcJSON,f=a.numberFormatter,a=h(b.datasetId),q=f.getCleanValue(b.y),f=f.getCleanValue(b.x),m=!1,g=e.series,l=g.length,p=e.xAxis.min,k=e.xAxis.max,n=e.yAxis[0].min,r=e.yAxis[0].max,e={hcJSON:{series:[]}},t=e.hcJSON.series,z;if(void 0!==a&&null!==q&&q>=n&&q<=r&&null!==f&&f>=p&&f<=
k){for(p=0;p<l&&!m;p+=1)a==g[p].id&&(t[p]={data:[]},m=!0,z=g[p],n=z.data,k=n.length,n.push(n=z._dataParser(b,k,f,q)),t[p].data[k]=n,M(c,e,!0),z={index:k,dataIndex:k,link:b.link,y:b.y,x:b.x,shape:b.shape,width:b.width,height:b.height,radius:b.radius,sides:b.sides,label:b.name,toolText:b.tooltext,id:b.id,datasetIndex:p,datasetName:z.name,sourceType:"dataplot"});if(m)return fb(d,z,"nodeadded"),G.raiseEvent("nodeadded",z,d.fcObj),!0}return!1},getNodeAttribute:function(b){var d=this.jsVars,a=d.instanceAPI,
d=d._reflowData||(d._reflowData={}),d=d.hcJSON&&d.hcJSON.series||[],a=a.hcJSON.series,c=a.length,e,f,q,m;if(void 0!==b)for(e=0;e<c;e+=1)for(f=a[e],m=f.data,q=m.length,f=0;f<q;f+=1)if(m[f].id===b)return d[e]&&d[e].data&&d[e].data[f]?M(m[f]._options,d[e].data[f]._options,!0):m[f]._options;return!1},setNodeAttribute:function(b,d,a){var c=this.jsVars,e=c.instanceAPI,f=c._reflowData||(c._reflowData={}),q=e.hcJSON,m=e.numberFormatter,g=q.series,l=g.length,p=q.xAxis.min,k=q.xAxis.max,n=q.yAxis[0].min,h=
q.yAxis[0].max,q={hcJSON:{series:[]}},e=q.hcJSON.series,t=f.hcJSON&&f.hcJSON.series||[],z,D,w,B;"object"===typeof d&&void 0===a?B=d:(B={},B[d]=a);if(void 0!==b)for(d=0;d<l;d+=1)for(z=g[d],D=z.data,w=D.length,a=0;a<w;a+=1)if(b===D[a].id)return b=D[a],delete B.id,t[d]&&t[d].data&&t[d].data[a]&&t[d].data[a]._options&&(B=M(t[d].data[a]._options,B,!0)),B=M(b._options,B,!0),b=m.getCleanValue(B.y),m=m.getCleanValue(B.x),null!==b&&b>=n&&b<=h&&null!==m&&m>=p&&m<=k?(e[d]={data:[]},p=z._dataParser(B,a,m,b),
k={index:a,dataIndex:a,link:B.link,y:B.y,x:B.x,shape:B.shape,width:B.width,height:B.height,radius:B.radius,sides:B.sides,label:B.name,toolText:B.tooltext,id:B.id,datasetIndex:d,datasetName:z.name,sourceType:"dataplot"},e[d].data[a]=p,M(f,q,!0),fb(c,k,"nodeupdated"),G.raiseEvent("nodeupdated",k,c.fcObj),!0):!1;return!1},deleteNode:function(b){if(void 0!==b){var d=this.jsVars,a=d.instanceAPI,c=d._reflowClean||(d._reflowClean={}),e=a.hcJSON.series,f={hcJSON:{series:[]}},q,m,g,l,p;if(e&&(g=e.length))for(l=
0;l<g;l+=1)if((a=e[l])&&(m=a.data)&&(q=m.length))for(p=0;p<q;p+=1)if(b===m[p].id)return f.hcJSON.series[l]={data:[]},f.hcJSON.series[l].data[p]=!0,M(c,f,!0),b=m[p],b={index:p,dataIndex:p,link:b.link,y:b.y,x:b.x,shape:b._options.shape,width:b._options.width,height:b._options.height,radius:b._options.radius,sides:b._options.sides,label:b.displayValue,toolText:b.toolText,id:b.id,datasetIndex:l,datasetName:a.name,sourceType:"dataplot"},fb(d,b,"nodedeleted"),G.raiseEvent("nodedeleted",b,d.fcObj),!0}return!1},
addConnector:function(b){if("object"===typeof b){var d=this.jsVars,a=d.instanceAPI,c=d._reflowData||(d._reflowData={}),a=a.hcJSON,e=a.connectors&&a.connectors[0]||{connector:[]},a=e.connector.length,f={hcJSON:{connectors:[{connector:[]}]}};b=e._connectorParser&&e._connectorParser(b,a);e={arrowAtEnd:b.arrowAtEnd,arrowAtStart:b.arrowAtStart,fromNodeId:b.from,id:b.id,label:b.label,link:b.connectorLink,sourceType:"connector",toNodeId:b.to};f.hcJSON.connectors[0].connector[a]=b;M(c,f,!0);fb(d,e,"connectoradded");
G.raiseEvent("connectoradded",e,d.fcObj);return!0}return!1},editConnector:function(b,d,a){var c=this.jsVars,e=c.instanceAPI,f=c._reflowData||(c._reflowData={}),e=e.hcJSON,q=e.connectors||(e.connectors=[]),m=q.length,e={hcJSON:{connectors:[]}},g=e.hcJSON.connectors,l,p,k,n;"object"===typeof d&&void 0===a?n=d:(n={},n[d]=a);if(void 0!==b)for(d=0;d<m;d+=1)if((p=q[d])&&(l=p.connector))for(k=l.length,a=0;a<k;a+=1)if(b===l[a].id)return l=l[a],delete n.id,f.hcJSON&&f.hcJSON.connectors&&f.hcJSON.connectors[d]&&
f.hcJSON.connectors[d].connector&&f.hcJSON.connectors[d].connector[a]&&f.hcJSON.connectors[d].connector[a]._options&&(n=M(f.hcJSON.connectors[d].connector[a]._options,n,!0)),n=M(l._options,n,!0),b={arrowAtEnd:Boolean(n.arrowatend),arrowAtStart:Boolean(n.arrowatstart),fromNodeId:n.from,id:b,label:n.label,link:n.link,sourceType:"connector",toNodeId:n.to},g[d]={connector:[]},l=p._connectorParser(n,a),g[d].connector[a]=l,M(f,e,!0),fb(c,b,"connectorupdated"),G.raiseEvent("connectorupdated",b,c.fcObj),
!0;return!1},deleteConnector:function(b){if(void 0!==b){var d=this.jsVars,a=d.instanceAPI,c=d._reflowClean||(d._reflowClean={}),e=a.hcJSON.connectors,a={hcJSON:{connectors:[]}},f,q,m,g,l,p={};if(e&&(g=e.length))for(l=0;l<g;l+=1)if((f=e[l])&&(m=f.connector)&&(q=m.length))for(f=0;f<q;f+=1)if(b===m[f].id)return b=m[f],p={arrowAtEnd:b.arrowAtEnd,arrowAtStart:b.arrowAtStart,fromNodeId:b.from,id:b.id,label:b.label,link:b.connectorLink,sourceType:"connector",toNodeId:b.to},a.hcJSON.connectors[l]={connector:[]},
a.hcJSON.connectors[l].connector[f]=!0,M(c,a,!0),fb(d,p,"connectordeleted"),G.raiseEvent("connectordeleted",p,d.fcObj),!0}return!1},addLabel:function(b){if(b){var d=this.jsVars,a=d.instanceAPI,c=d._reflowData||(d._reflowData={}),e={hcJSON:{dragableLabels:[]}};e.hcJSON.dragableLabels[(a.hcJSON.dragableLabels||[]).length]=b;M(c,e,!0);b={text:b.text,x:b.x,y:b.y,allowdrag:b.allowdrag,sourceType:"labelnode",link:b.link};fb(d,b,"labeladded");G.raiseEvent("labeladded",b,d.fcObj);return!0}return!1},deleteLabel:function(b,
d){var a=this.jsVars,c=a.instanceAPI,e=a._reflowClean||(a._reflowClean={}),f={hcJSON:{dragableLabels:[]}};return b<(c.hcJSON.dragableLabels||[]).length?(f.hcJSON.dragableLabels[b]=!0,M(e,f,!0),fb(a,d,"labeldeleted"),G.raiseEvent("labeldeleted",d,a.fcObj),!0):!1},setThreshold:function(b){var d=this.jsVars.hcObj.connectorsStore||[],a=d.length,c,e;for(e=0;e<a;e+=1)(c=d[e])&&c.options&&(c.options.conStrength<b?(c.graphic&&c.graphic.hide(),c.text&&(c.text.hide(),c.text.textBoundWrapper&&c.text.textBoundWrapper.hide())):
(c.graphic&&c.graphic.show(),c.text&&(c.text.show(),c.text.textBoundWrapper&&c.text.textBoundWrapper.show())))}}),getCollatedData:function(){var b=this.chartInstance,d=b.__state,a=b.jsVars,b=this.updatedDataObj||M({},b.getChartData(G.dataFormats.JSON)),c=a._reflowData,e=a._reflowClean,a=(b.labels||(b.labels={label:[]}),b.labels.label||(b.labels.label=[])),f=c&&c.hcJSON&&c.hcJSON.dragableLabels,q=e&&e.hcJSON&&e.hcJSON.dragableLabels,m=b.connectors,g=c&&c.hcJSON&&c.hcJSON.connectors,l=e&&e.hcJSON&&
e.hcJSON.connectors,p=b.dataset,k=c&&c.hcJSON&&c.hcJSON.series,c=e&&e.hcJSON&&e.hcJSON.series,e=k&&k.length,n,h,t,z;if(void 0!==d.hasStaleData&&!d.hasStaleData&&this.updatedDataObj)return this.updatedDataObj;if(p&&k)for(;e--;)if(h=p[e]&&p[e].data,(n=(t=k[e]&&k[e].data)&&t.length)&&h)for(;n--;)if(z=t[n])h[n]?M(h[n],z._options):h[n]=z._options;if(e=g&&g.length)for(b.connectors||(m=b.connectors=[{connector:[]}]);e--;)if(k=m[e]&&m[e].connector,(n=(h=g[e]&&g[e].connector)&&h.length)&&k)for(;n--;)if(t=
h[n])k[n]?M(k[n],t._options):k[n]=t._options;if((e=f&&f.length)&&f)for(;e--;)f[e]&&(a[e]=f[e]);Mb(p,c);Mb(m,l);Mb(a,q);d.hasStaleData=!1;return this.updatedDataObj=b},createHtmlDialog:function(b,d,a,c,e,f){var q=b.paper,m=this.hcJSON[oa].inCanvasStyle,g=b.chartWidth,l=b.chartHeight,h={color:m.color,textAlign:"center",paddingTop:"1px",border:"1px solid #cccccc",borderRadius:"4px",cursor:"pointer",_cursor:"hand",backgroundColor:"#ffffff",zIndex:21,"-webkit-border-radius":"4px"},k;k=q.html("div",{fill:"transparent",
width:g,height:l},{fontSize:"10px",lineHeight:"15px",fontFamily:m.fontFamily},b.container);k.veil=q.html("div",{fill:"000000",width:g,height:l,opacity:.3},void 0,k);k.dialog=q.html("div",{x:(g-d)/2,y:(l-a)/2,fill:"efefef",strokeWidth:1,stroke:"000000",width:d,height:a},{borderRadius:"5px",boxShadow:"1px 1px 3px #000000","-webkit-border-radius":"5px","-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'},k);k.ok=q.html("div",
{x:d-70-5,y:a-23-5,width:65,height:17,text:"Submit",tabIndex:1},h,k.dialog).on("click",c);k.cancel=q.html("div",{x:d-140-5,y:a-23-5,width:65,height:17,text:"Cancel",tabIndex:2},h,k.dialog).on("click",e);k.remove=q.html("div",{x:d-210-5,y:a-23-5,width:65,height:17,text:"Delete",tabIndex:3,visibility:"hidden"},h,k.dialog).on("click",f);k.handleKeyPress=function(a){13===a.keyCode?k.ok.trigger(la?"touchStart":"click",a):27===a.keyCode&&k.cancel.trigger(la?"touchStart":"click",a)};k.hide();return k},nodeUpdateUIDefinition:[{key:"id",
text:"Id",inputWidth:60,x:10,y:15},{key:"dataset",text:"Dataset",inputType:"select",inputWidth:110,innerHTML:void 0,x:170,y:15},{key:"x",text:"Value",x:10,y:40,inputWidth:21},{key:"y",text:",",x:88,y:40,inputWidth:21,labelWidth:5},{text:"(x, y)",x:125,y:40,labelWidth:33,noInput:!0},{key:"tooltip",text:"Tooltip",inputWidth:105,x:170,y:40},{key:"label",text:"Label",inputWidth:92,x:10,y:65},{key:"labelalign",text:"Align",labelWidth:70,inputWidth:110,inputType:"select",innerHTML:'<option></option><option value="top">Top</option><option value="middle">Middle</option><option value="bottom">Bottom</option>',
x:145,y:63},{key:"color",text:"Color",x:10,y:90,inputWidth:60},{key:"colorOut",innerHTML:"&nbsp;",x:85,y:90,inputWidth:15,inputType:"span"},{key:"alpha",text:"Alpha",x:170,y:90,inputWidth:20},{key:"draggable",text:"Allow Drag",value:!0,inputWidth:20,x:250,y:90,labelWidth:58,inputPaddingTop:3,type:"checkbox"},{key:"shape",text:"Shape",inputType:"select",inputWidth:97,innerHTML:'<option value="rect">Rectangle</option><option value="circ">Circle</option><option value="poly">Polygon</option>',x:10,y:115},
{key:"rectHeight",text:"Height",x:170,y:115,inputWidth:20},{key:"rectWidth",text:"Width",x:255,y:115,inputWidth:20},{key:"circPolyRadius",text:"Radius",x:170,y:115,inputWidth:20},{key:"polySides",text:"Sides",x:255,y:115,inputWidth:20},{key:"link",text:"Link",x:10,y:140,inputWidth:92},{key:"image",text:"Image",type:"checkbox",inputPaddingTop:4,inputWidth:20,x:10,y:170},{key:"imgUrl",text:"URL",inputWidth:105,x:170,y:170},{key:"imgWidth",text:"Width",inputWidth:20,x:10,y:195},{key:"imgHeight",text:"Height",
inputWidth:20,x:82,y:195},{key:"imgAlign",text:"Align",inputType:"select",inputWidth:75,innerHTML:'<option value="top">Top</option><option value="middle">Middle</option><option value="bottom">Bottom</option>',x:170,y:195}],showNodeUpdateUI:function(){var b=function(a){a=a.cacheUpdateUI;for(var b=a.fields.shape,d=["rectWidth","rectHeight","circPolyRadius","polySides"],q=d.length,m;q--;)m=d[q],/rect|poly|circ/ig.test(m)&&(a.labels[m].hide(),a.fields[m].hide()),(new RegExp(h(b.val(),"rect"),"ig")).test(m)&&
(a.labels[m].show(),a.fields[m].show())},d=function(a){a=a.cacheUpdateUI.fields;var b=nb(a.color.val());b&&a.colorOut.css({background:Ab(b)})},a=function(a,b){var d=a.cacheUpdateUI,q=a.chartHeight,m=d.fields.image.val(),g=b?300:0,l=["imgWidth","imgHeight","imgAlign","imgUrl"],h,k,n;h=m?250:215;d.ok.hide();d.cancel.hide();d.remove.hide();d.error.hide();for(k=l.length;!m&&k--;)n=l[k],d.labels[n].hide(),d.fields[n].hide();u.danimate.animate(d.dialog.element,{top:(q-h)/2,height:h},g,"linear",function(){for(k=
l.length;k--&&m;)n=l[k],d.labels[n].show(),d.fields[n].show();d.ok.attr({y:h-23-5}).show();d.cancel.attr({y:h-23-5}).show();d.remove.attr({y:h-23-5});d.error.attr({y:h-23-5+4}).show();d.edit?d.remove.show():d.remove.hide()})};return function(c,e,f){var q=this,m=c.cacheUpdateUI,g=c.paper,l={width:"80px",border:"1px solid #cccccc",fontSize:"10px",lineHeight:"15px",padding:"2px",fontFamily:q.hcJSON[oa].inCanvasStyle.fontFamily},h=0,k={textAlign:"right"},n=m&&m.fields,r=m&&m.labels,t;m||(m=c.cacheUpdateUI=
q.createHtmlDialog(c,350,215,function(){var a=m&&m.fields,b=m.edit,c=q.chartInstance,d=q.hcJSON,e,f,k,g,l,n,v;if(!d)return!1;e=d.xAxis.min;f=d.yAxis[0].min;d=d.series;k=d.length;if(a){switch(a.shape.val()){case "circ":l="circle";break;case "poly":l="polygon";break;default:l="rectangle"}v={x:ea(a.x.val(),e),y:ea(a.y.val(),f),id:e=a.id.val(),datasetId:a.dataset.val(),name:a.label.val(),tooltext:a.tooltip.val(),color:a.color.val(),alpha:a.alpha.val(),labelalign:a.labelalign.val(),allowdrag:a.draggable.val(),
shape:l,width:a.rectWidth.val(),height:a.rectHeight.val(),radius:a.circPolyRadius.val(),numsides:a.polySides.val(),imagenode:a.image.val(),imagewidth:a.imgWidth.val(),imageheight:a.imgHeight.val(),imagealign:a.imgAlign.val(),imageurl:a.imgUrl.val(),link:a.link.val()};if(void 0!==e&&!b)for(h=0;h<k&&!g;h+=1)for(l=d[h].data,n=l.length,f=0;f<n;f+=1)e===l[f].id&&(g=!0);if(g)m.error.attr({text:"ID already exist."}),a.label.focus();else{b?c&&c.setNodeAttribute&&c.setNodeAttribute(v.id,v):c&&c.addNode&&c.addNode(v);
return}}m.enableFields()},function(){m.hide();m.enableFields();m.error.attr({text:A})},function(){q.chartInstance.deleteNode&&q.chartInstance.deleteNode(m.fields.id.val())}),t=m.dialog,r=m.labels={},n=m.fields={});m.config=e;m.edit=f;m.error||(m.error=g.html("span",{color:"ff0000",x:30,y:228},void 0,t));m.enableFields||(m.enableFields=function(){for(var a in e)e[a]&&e[a].disabled&&n[a]&&n[a].element.removeAttribute("disabled")});ib(this.nodeUpdateUIDefinition,function(f){var q,h=f.key,p={},H=e[h]||
{},$,ia;!r[h]&&(r[h]=g.html("label",{x:f.x,y:f.y,width:f.labelWidth||45,text:f.text},k,t));if(!f.noInput){q=n[h];if(!q){l.border="checkbox"==f.type?A:"1px solid #cccccc";q=n[h]=g.html(f.inputType||"input",{x:f.labelWidth&&f.labelWidth+5||50,y:-2+(f.inputPaddingTop||0),width:f.inputWidth||50,name:h||""},l);if("select"!==f.inputType)q.attr({type:f.type||"text"}).on("keyup",m.handleKeyPress);q.add(r[h])}ba($=ea(H.innerHTML,f.innerHTML))&&(p.innerHTML=$);H.disabled&&(p.disabled="disabled");q.attr(p);
ba(ia=ea(H.value,f.value))&&q.val(ia);"shape"==h&&q.on("change",function(){b(c)});"image"==h&&q.on("click",function(){a(c,!0)});"color"==h&&q.on("keyup",function(){d(c)})}});d(c);a(c);b(c);c.options.chart.animation?m.fadeIn("fast"):m.show();m.fields[f?"label":"id"].focus()}}(),labelUpdateUIDefinition:[{key:"label",text:"Label*",x:10,y:15,inputWidth:235},{key:"size",text:"Size",x:10,y:40},{key:"padding",text:"Padding",x:10,y:65},{key:"x",text:"Position",x:120,y:65,labelWidth:70,inputWidth:25},{key:"y",
text:",",x:225,y:65,labelWidth:10,inputWidth:25},{key:"xy",text:"(x, y)",x:260,y:65,noInput:!0},{key:"allowdrag",text:"Allow Drag",x:120,y:40,inputType:"checkbox",inputPaddingTop:3,inputWidth:15,labelWidth:70,val:1},{key:"color",text:"Color",x:10,y:90},{key:"alpha",text:"Alpha",x:145,y:90,inputWidth:30,val:"100"},{key:"bordercolor",text:"Border Color",x:10,y:125,labelWidth:100},{key:"bgcolor",text:"Background Color",x:10,y:150,labelWidth:100}],showLabelUpdateUI:function(b,d){var a=this,c=b.paper,
e=b.cacheLabelUpdateUI,f={border:"1px solid #cccccc",fontSize:"10px",lineHeight:"15px",fontFamily:a.hcJSON[oa].inCanvasStyle.fontFamily,padding:"2px"},q={textAlign:"right"},m=e&&e.fields,g=e&&e.labels,l,p,k;e||(e=b.cacheLabelUpdateUI=a.createHtmlDialog(b,315,205,function(){var b=e&&e.fields,c;b&&(c={text:b.label.val(),x:b.x.val(),y:b.y.val(),color:b.color.val(),alpha:b.alpha.val(),bgcolor:b.bgcolor.val(),bordercolor:b.bordercolor.val(),fontsize:b.size.val(),allowdrag:b.allowdrag.val(),padding:b.padding.val()},
c.text?a.chartInstance&&a.chartInstance.addLabel&&a.chartInstance.addLabel(c):(e.error.attr({text:"Label cannot be blank."}),b.label.focus()))},function(){e.error.attr({text:""});e.hide()}),k=e.dialog,g=e.labels={},m=e.fields={});ib(a.labelUpdateUIDefinition,function(a){var b=a.key;g[b]||(g[b]=c.html("label",{x:a.x,y:a.y,width:a.labelWidth||45,text:a.text},q,k));a.noInput||((l=m[b])||(l=m[b]=c.html("input",{y:-2+(a.inputPaddingTop||0),x:a.labelWidth&&a.labelWidth+5||50,width:a.inputWidth||50,type:a.inputType||
"text",name:b||""},f,g[b]).on("keyup",e.handleKeyPress)),void 0!==(p=h(d[b],a.val))&&l.val(p))});e.error||(e.error=c.html("span",{color:"ff0000",x:10,y:180},void 0,k));b.animation?e.fadeIn("fast"):e.show();e.fields.label.focus()},showLabelDeleteUI:function(b,d){var a=this,c=b.paper,e=b["cache-label-delete-ui"],f=d.data&&d.data("data")||{},q=d.data&&d.data("eventArgs"),f=f&&f.labelNode;e||(e=b["cache-label-delete-ui"]=a.createHtmlDialog(b,250,100,void 0,function(){e.hide()},function(){a.chartInstance.deleteLabel(f.index,
q)}),e.message=c.html("span",{x:10,y:10,width:230,height:80}).add(e.dialog),e.ok.hide(),e.remove.translate(175).show());e.message.attr({text:'Would you really like to delete the label: "'+f.text+'"?'});b.animation?e.fadeIn("fast"):e.show()},connectorUpdateUIDefinition:[{key:"fromid",text:"Connect From",inputType:"select",x:10,y:15,labelWidth:80,inputWidth:100},{key:"toid",text:"Connect To",inputType:"select",x:10,y:40,labelWidth:80,inputWidth:100},{key:"arratstart",text:"Arrow At Start",x:200,y:15,
type:"checkbox",inputPaddingTop:3,labelWidth:80,inputWidth:15},{key:"arratend",text:"Arrow At End",x:200,y:40,type:"checkbox",inputPaddingTop:3,labelWidth:80,inputWidth:15},{key:"label",text:"Label",x:10,y:75,labelWidth:40,inputWidth:120},{key:"id",text:"Node ID",x:190,y:75,inputWidth:55},{key:"color",text:"Color",x:10,y:100,labelWidth:40,inputWidth:35},{key:"alpha",text:"Alpha",x:110,y:100,inputWidth:25,labelWidth:35},{key:"strength",text:"Strength",x:190,y:100,inputWidth:55,val:"0.1"},{key:"url",
text:"Link",x:10,y:125,labelWidth:40,inputWidth:120},{key:"tooltext",text:"Tooltip",x:190,y:125,labelWidth:40,inputWidth:60},{key:"dashed",text:"Dashed",x:10,y:150,type:"checkbox",inputPaddingTop:3,inputWidth:15,labelWidth:40},{key:"dashgap",text:"Dash Gap",x:85,y:150,labelWidth:60,inputWidth:25},{key:"dashlen",text:"Dash Length",x:190,y:150,labelWidth:70,inputWidth:30}],showConnectorUpdateUI:function(b,d,a){var c=this.chartInstance,e=b.paper,f=b.cacheConnectorUpdateUI,q={border:"1px solid #cccccc",
fontSize:"10px",lineHeight:"15px",fontFamily:this.hcJSON[oa].inCanvasStyle.fontFamily,padding:"2px"},m={textAlign:"right"},g=f&&f.fields,l=f&&f.labels,p,k,n,r;f||(f=b.cacheConnectorUpdateUI=this.createHtmlDialog(b,315,215,function(){var b=f&&f.fields,d;b&&(d={from:b.fromid.val(),to:b.toid.val(),id:b.id.val(),label:b.label.val(),color:b.color.val(),alpha:b.alpha.val(),link:b.url.val(),tooltext:b.tooltext.val(),strength:b.strength.val(),arrowatstart:b.arratstart.val(),arrowatend:b.arratend.val(),dashed:b.dashed.val(),
dashlen:b.dashlen.val(),dashgap:b.dashgap.val()},d.from?d.to?d.from!=d.to?(a?c.editConnector(d.id,d):c.addConnector(d),f.enableFields()):(f.error.attr({text:"Connector cannot start and end at the same node!"}),b.fromid.focus()):(f.error.attr({text:"Please select a valid connector end."}),b.toid.focus()):(f.error.attr({text:"Please select a valid connector start."}),b.fromid.focus()))},function(){f.error.attr({text:""});f.enableFields();f.hide()},function(){c.deleteConnector(f.fields.id.val())}),r=
f.dialog,l=f.labels={},g=f.fields={});f.config=d;f.enableFields=function(){for(var a in d)d[a]&&d[a].disabled&&g[a]&&g[a].element.removeAttribute("disabled")};ib(this.connectorUpdateUIDefinition,function(a){var b=a.key,c=d[b]||{};l[b]||(l[b]=e.html("label",{x:a.x,y:a.y,width:a.labelWidth||45,text:a.text},m,r));if(!a.noInput){if(!(k=g[b])){k=g[b]=e.html(a.inputType||"input",{y:-2+(a.inputPaddingTop||0),x:a.labelWidth&&a.labelWidth+5||50,width:a.inputWidth||50,name:b||""},q);if("select"!==a.inputType)k.attr({type:a.type||
"text"}).on("keyup",f.handleKeyPress);k.add(l[b])}(p=h(c.innerHTML,a.innerHTML))&&k.attr({innerHTML:p});void 0!==(n=h(c.val,a.val))&&k.val(n);c.disabled&&k.attr({disabled:"disabled"})}});f.checkDash=function(){var a=g.dashed&&g.dashed.val()?"show":"hide";l.dashgap&&l.dashgap[a]();g.dashgap&&g.dashgap[a]();l.dashlen&&l.dashlen[a]();g.dashlen&&g.dashlen[a]()};f.checkDash();g.dashed.on("click",f.checkDash);f.error||(f.error=e.html("span",{color:"ff0000",x:10,y:170},void 0,r));f.remove[a?"show":"hide"]();
b.animation?f.fadeIn("fast"):f.show()},drawNodeUpdateButtons:function(){var b=this,d=b.logic,a=b.options,c=a.chart,e=a.pointStore||{},f=a.series,a=(a=a[oa])&&a.outCanvasStyle||b.outCanvasStyle||{},q=b.menu||(b.menu=[]),m=b.toolbar,g=f.length,l="",h="",k,n;for(n in e)l+='<option value="'+n+'">'+n+"</option>";for(n=0;n<g;n+=1)e=f[n],h+='<option value="'+e.id+'">'+(e.name!==A&&void 0!==e.name&&e.name+Ba+" "||A)+e.id+"</option>";q.push(k=Ob({chart:b,basicStyle:a,items:[{text:"Add a Node",onclick:function(){d.showNodeUpdateUI(b,
{dataset:{innerHTML:h}})}},{text:"Add a Label",onclick:function(){d.showLabelUpdateUI(b,{})}},{text:"Add a Connector",onclick:function(){d.showConnectorUpdateUI(b,{fromid:{innerHTML:l},toid:{innerHTML:l}})}}],position:{x:c.spacingLeft,y:b.chartHeight-c.spacingBottom+(c.showFormBtn||c.showRestoreBtn?10:-15)}}));b.elements.configureButton=m.add("configureIcon",function(a,b){return function(){k.visible?k.hide():k.show({x:a,y:b+1})}}(),{x:c.spacingLeft,y:b.chartHeight-c.spacingBottom+(c.showFormBtn||
c.showRestoreBtn?10:-15),tooltip:"Add or edit items"})},postSeriesAddition:function(){var b=this.hcJSON,d=this.dataObj.chart,a=this.base.postSeriesAddition&&this.base.postSeriesAddition.apply(this,arguments);b.legend.enabled="1"==d.showlegend?!0:!1;(b.chart.viewMode=g(d.viewmode,0))||(b.callbacks||(b.callbacks=[])).push(this.drawNodeUpdateButtons);return a},pointHoverOptions:function(b,d,a,c){var e=g(b.showhovereffect,d.showhovereffect,a.plothovereffect,a.showhovereffect),f={},q=!!h(b.hovercolor,
d.hovercolor,a.plotfillhovercolor,b.hoveralpha,d.hoveralpha,a.plotfillhoveralpha,b.borderhovercolor,d.borderhovercolor,a.plotborderhovercolor,b.borderhoveralpha,d.borderhoveralpha,a.plotborderhoveralpha,b.borderhoverthickness,d.borderhoverthickness,a.plotborderhoverthickness,b.hoverheight,d.hoverheight,a.plothoverheight,b.hoverwidth,d.hoverwidth,a.plothoverwidth,b.hoverradius,d.hoverradius,a.plothoverradius,e),m=!1;if(void 0===e&&q||e)m=!0,e=h(b.hovercolor,d.hovercolor,a.plotfillhovercolor,Ma(c.color,
70)),q=h(b.hoveralpha,d.hoveralpha,a.plotfillhoveralpha,c.alpha),f={stroke:y(h(b.borderhovercolor,d.borderhovercolor,a.plotborderhovercolor,c.borderColor),g(b.borderhoveralpha,d.borderhoveralpha,a.plotborderhoveralpha,q,c.borderAlpha)),"stroke-width":g(b.borderhoverthickness,d.borderhoverthickness,a.plotborderhoverthickness,c.borderThickness),height:g(b.hoverheight,d.hoverheight,a.plothoverheight,c.height),width:g(b.hoverwidth,d.hoverwidth,a.plothoverwidth,c.width),r:g(b.hoverradius,d.hoverradius,
a.plothoverradius,c.radius)},b=c.use3D?this.getPointColor(X(h(b.hovercolor,d.hovercolor,a.plotfillhovercolor,Ma(c.color,70))),h(b.hoveralpha,d.hoveralpha,a.plotfillhoveralpha,c.alpha),c.shapeType):y(e,q),f.fill=da(b);return{enabled:m,rolloverProperties:f}},point:function(b,d,a,c,e,f,q){var m=this;b=g(c.ignoreemptydatasets,0);var v=m.numberFormatter,l=(f=a.data)&&f.length,p=g(a.showvalues,e[oa].showValues),k=g(c.useroundedges),n=!1,r=m.colorManager,t,z,D,w,B,H,$,ia,u,E,va,s,ka,za;d.zIndex=1;d.name=
C(a.seriesname);H=d.id=h(a.id,q);if(b&&!a.data)return d.showInLegend=!1,d;if(0===g(a.includeinlegend)||void 0===d.name)d.showInLegend=!1;z=h(c.plotfillalpha,"100");D=g(c.showplotborder,1);q=X(h(c.plotbordercolor,"666666"));t=g(c.plotborderthickness,k?2:1);w=h(c.plotborderalpha,c.plotfillalpha,k?"35":"95");B=Boolean(g(c.use3dlighting,c.is3d,k?1:0));$=X(h(a.color,r.getPlotColor()));ia=h(a.plotfillalpha,a.nodeFillAlpha,a.alpha,z);k=Boolean(g(a.showplotborder,D));u=X(h(a.plotbordercolor,a.nodebordercolor,
q));E=g(a.plotborderthickness,a.nodeborderthickness,t);va=k?h(a.plotborderalpha,a.nodeborderalpha,a.alpha,w):"0";s=Boolean(g(a.allowdrag,1));d.marker={enabled:!0,fillColor:y($,ia),lineColor:{FCcolor:{color:u,alpha:va}},lineWidth:E,symbol:"poly_4"};w=d._dataParser=function(b,d,f,q){d=h(b.id,H+"_"+d);var k=Boolean(g(b.allowdrag,s)),l=C(b.shape,"rectangle").toLowerCase(),n=C(b.height,10),r=C(b.width,10),t=C(b.radius,10),z=C(b.numsides,4),w=X(h(b.color,$)),D=h(b.alpha,ia),F=C(b.imageurl),x=Boolean(g(b.imagenode));
switch(l){case "circle":za=0;break;case "polygon":za=2;l=ga(z);break;default:za=1}ka=B?m.getPointColor(w,D,za):y(w,D);z=m.pointHoverOptions(b,a,c,{plotType:"funnel",shapeType:za,use3D:B,height:n,width:r,radius:t,color:w,alpha:D,borderColor:u,borderAlpha:va,borderThickness:E});return M(m.getPointStub(b,q,v.xAxis(f),e,a,p),{hoverEffects:z,_options:b,y:q,x:f,id:d,imageNode:x,imageURL:F,imageAlign:C(b.imagealign,A).toLowerCase(),imageWidth:C(b.imagewidth),imageHeight:C(b.imageheight),labelAlign:h(b.labelalign,
x&&ba(F)?Na:"middle"),allowDrag:k,marker:{enabled:!0,fillColor:ka,lineColor:{FCcolor:{color:u,alpha:va}},lineWidth:E,radius:t,height:n,width:r,symbol:l},tooltipConstraint:m.tooltipConstraint})};for(q=0;q<l;q+=1)if(t=f[q])k=v.getCleanValue(t.y),r=v.getCleanValue(t.x),null===k?d.data.push({_options:t,y:null}):(n=!0,d.data.push(w(t,q,r,k)),this.pointValueWatcher(e,k,r));b&&!n&&(d.showInLegend=!1);return d},getPointColor:function(b,d,a){var c;b=X(b);d=Ka(d);c=Ma(b,80);b=jc(b,65);d={FCcolor:{gradientUnits:"objectBoundingBox",
color:c+","+b,alpha:d+","+d,ratio:Eb}};a?d.FCcolor.angle=1===a?0:180:(d.FCcolor.cx=.4,d.FCcolor.cy=.4,d.FCcolor.r="50%",d.FCcolor.radialGradient=!0);return d},getPointStub:function(b,d,a,c,e){var f=this.dataObj.chart,q=c[oa],m=null===d?d:q.numberFormatter.dataLabels(d),g=C(F(h(b.tooltext,e.plottooltext,q.tooltext))),l=this.tooltipSepChar=q.tooltipSepChar,p=h(b.label,b.name);d=F(p);var k;c=A;var n=!1;q.showTooltip?void 0!==g?(n=!0,e=bb(g,[3,4,5,6,8,9,10,11],{yaxisName:F(f.yaxisname),xaxisName:F(f.xaxisname),
yDataValue:m,xDataValue:a,label:d},b,f,e)):void 0!==p?(e=d,n=!0):null===m?e=!1:(q.seriesNameInToolTip&&(k=ea(e&&e.seriesname)),e=c=k?k+l:A,e+=a?a+l:A,e+=m):e=!1;b=h(b.link);return{displayValue:d,toolText:e,link:b,_toolTextStr:c,_isUserTooltip:n}},connector:function(b,d,a,c,e){var f=e[oa],q=f.smartLabel;e=(b=a.connector)&&b.length;var m,v,l,p,k,n,r,t,z,D,w,B=C(F(h(a.connectortooltext,c.connectortooltext))),H="$fromLabel"+f.tooltipSepChar+"$toLabel";m=g(a.stdthickness,1);v=X(h(a.color,"FF5904"));l=
h(a.alpha,"100");p=g(a.dashgap,5);k=g(a.dashlen,5);n=Boolean(g(a.dashed,0));r=Boolean(g(a.arrowatstart,1));t=Boolean(g(a.arrowatend,1));z=g(a.strength,1);c=d.connector;D=d._connectorParser=function(a,b){var c=F(h(a.label,a.name)),d=h(a.alpha,l),d={FCcolor:{color:X(h(a.color,v)),alpha:d}},e=q.getOriSize(c),D=C(F(h(a.tooltext,B)));w=f.showTooltip?h(D,c?"$label":H):!1;return{_options:a,id:h(a.id,b).toString(),from:h(a.from,A),to:h(a.to,A),label:c,toolText:w,customToolText:D,color:d,dashStyle:Boolean(g(a.dashed,
n))?Ha(g(a.dashlen,k),g(a.dashgap,p),m):"none",arrowAtStart:Boolean(g(a.arrowatstart,r)),arrowAtEnd:Boolean(g(a.arrowatend,t)),conStrength:g(a.strength,z),connectorLink:C(a.link),stdThickness:m,labelWidth:e.widht,labelHeight:e.height}};for(a=0;a<e;a+=1)c.push(D(b[a],a));return d},series:function(b,d,a){var c=d[oa],e=[],f,q,m,v;d.legend.enabled=Boolean(g(b.chart.showlegend,1));if(b.dataset&&0<(q=b.dataset.length)){this.categoryAdder(b,d);c.x.requiredAutoNumericLabels=!1;if(b.connectors&&(f=b.connectors.length))for(v=
0,m=f;v<m;v+=1)f={connector:[]},e.push(this.connector(a,f,b.connectors[v],b.chart,d,c.oriCatTmp.length,v));else f={connector:[]},e.push(this.connector(a,f,{},b.chart,d,c.oriCatTmp.length,v));for(v=0;v<q;v+=1)f={hoverEffects:this.parseSeriesHoverOptions(b,d,b.dataset[v],a),data:[]},f=this.point(a,f,b.dataset[v],b.chart,d,c.oriCatTmp.length,v),f instanceof Array?d.series=d.series.concat(f):d.series.push(f);d.connectors=e;b.labels&&b.labels.label&&0<b.labels.label.length&&(d.dragableLabels=b.labels.label);
b.chart.showyaxisvalue=h(b.chart.showyaxisvalue,0);this.configureAxis(d,b);b.trendlines&&Zb(b.trendlines,d.yAxis,c,!1,this.isBar)}}},s.scatterbase);Fa=function(b,d,a,c,e,f){var q=f.logic,m=f.options.chart,v,l,p=d[b.from],k=d[b.to],n={sourceType:"connector"},r=b&&b._options,t=q.numberFormatter,z,D,w,B,H;this.renderer=c;this.connectorsGroup=e;this.pointStore=d;this.options=b;this.style=a||{};p&&k&&(this.fromPointObj=p,this.toPointObj=k,this.fromX=z=p._xPos,this.fromY=D=p._yPos,this.toX=w=k._xPos,this.toY=
B=k._yPos,this.arrowAtStart=n.arrowAtStart=b.arrowAtStart,this.arrowAtEnd=n.arrowAtEnd=b.arrowAtEnd,this.strokeWidth=d=b.conStrength*b.stdThickness,this.textBgColor=l=(this.color=v=b.color)&&v.FCcolor&&v.FCcolor.color,this.label=n.label=H=b.label,t=bb(b.toolText,[3,83,84,85,86,87,88,89,90,91,92],{label:b.label,fromXValue:t.dataLabels(p.x),fromYValue:t.dataLabels(p.y),fromXDataValue:p.x,fromYDataValue:p.y,fromLabel:h(p.displayValue,p.id),toXValue:t.dataLabels(k.x),toYValue:t.dataLabels(k.y),toXDataValue:k.x,
toYDataValue:k.y,toLabel:h(k.displayValue,k.id)}),this.link=n.link=r&&r.link,n.id=b.id,n.fromNodeId=p.id,n.toNodeId=k.id,p._config&&p._config.startConnectors&&p._config.startConnectors.push(this),k._config&&k._config.endConnectors&&k._config.endConnectors.push(this),p=function(){var a=this,c=b._options||{};a._longpressactive=clearTimeout(a._longpressactive);a.data("fire_click_event",1);a._longpressactive=setTimeout(function(){a.data("fire_click_event",0);a.data("viewMode")||q.showConnectorUpdateUI(f,
{fromid:{val:c.from,innerHTML:"<option>"+c.from+"</option>",disabled:!0},toid:{val:c.to,innerHTML:"<option>"+c.to+"</option>",disabled:!0},arratstart:{val:Boolean(g(c.arrowatstart,1))},arratend:{val:Boolean(g(c.arrowatend,1))},dashed:{val:g(c.dashed)},dashgap:{val:c.dashgap},dashlen:{val:c.dashlen},label:{val:c.label},tooltext:{val:c.tooltext},id:{val:b.id,disabled:!0},strength:{val:c.strength},alpha:{val:c.alpha},color:{val:c.color}},!0)},1E3)},this.graphic=c.path(this.getlinePath(),e).attr({"stroke-width":d,
ishot:!0,"stroke-dasharray":b.dashStyle,cursor:this.link?"pointer":"",stroke:da(v)}).mousedown(p).mousemove(function(){this.data("fire_click_event",0);eb.call(this)}).mouseup(function(a){eb.call(this);xa.call(this,f,a,"ConnectorClick")}).hover(function(a){xa.call(this,f,a,"ConnectorRollover")},function(a){xa.call(this,f,a,"ConnectorRollout")}).tooltip(t).data("eventArgs",n).data("viewMode",m.viewMode),H&&(this.text=c.text(),e.appendChild(this.text),this.text.css(a.style).attr({text:H,x:(z+w)/2,y:(D+
B)/2,fill:a.color,ishot:!0,direction:m.textDirection,cursor:this.link?"pointer":"","text-bound":[h(a.backgroundColor,l),h(a.borderColor,l),1,"2"]}).tooltip(t).mousedown(p).mousemove(function(){this.data("fire_click_event",0);eb.call(this)}).hover(function(a){xa.call(this,f,a,"ConnectorRollover")},function(a){xa.call(this,f,a,"ConnectorRollout")}).mouseup(function(a){eb.call(this);xa.call(this,f,a,"ConnectorClick")}).tooltip(t).data("eventArgs",n).data("viewMode",f.options.chart.viewMode)))};Fa.prototype=
{updateFromPos:function(b,d){this.fromX=b;this.fromY=d;this.graphic&&this.graphic.animate({path:this.getlinePath()});this.text&&this.text.animate({x:(this.fromX+this.toX)/2,y:(this.fromY+this.toY)/2})},updateToPos:function(b,d){this.toX=b;this.toY=d;this.graphic&&this.graphic.animate({path:this.getlinePath()});this.text&&this.text.animate({x:(this.fromX+this.toX)/2,y:(this.fromY+this.toY)/2})},getlinePath:function(){var b=this.fromPointObj,d=this.toPointObj,a=this.fromX,c=this.fromY,e=this.toX,f=
this.toY,q=["M",a,c];this.arrowAtStart&&(b=b._config,q=b.shapeType===kc?q.concat(hb(a,c,e,f,b.shapeArg.width,b.shapeArg.height)):q.concat(hb(a,c,e,f,b.shapeArg.radius)));this.arrowAtEnd&&(b=d._config,q=b.shapeType===kc?q.concat(hb(e,f,a,c,b.shapeArg.width,b.shapeArg.height)):q.concat(hb(e,f,a,c,b.shapeArg.radius)));q.push("L",e,f);return q}};Fa.prototype.constructor=Fa;ra={mouseDown:function(b){delete b.data.point.dragActive},click:function(b){return!b.data.point.dragActive},dragHandler:function(b){var d=
b.data,a=b.type,c=d.point,e=d.series,f=e.chart||e,q=f.tooltip,g=la&&Oa(b)||Cb,f=f.options.instanceAPI;switch(a){case "dragstart":q.block(!0);d.dragStartY=b.pageY||g.pageY||0;d.dragStartX=b.pageX||g.pageX||0;d.startValue=c.y;d.startXValue=c.x;c.dragActive=!0;e.dragStartHandler&&e.dragStartHandler(d);break;case "dragend":q.block(!1);e.repositionItems(d,d.changeX?(b.pageX||g.pageX||0)-d.dragStartX:0,d.changeY?(b.pageY||g.pageY||0)-d.dragStartY:0,!0);a={dataIndex:c.index+1,datasetIndex:e.index+1,startValue:d.startValue,
endValue:c.y,datasetName:e.name};b=[f.chartInstance.id,a.dataIndex,a.datasetIndex,a.datasetName,a.startValue,a.endValue];d.changeX&&(a.startYValue=d.startValue,a.endYValue=c.y,a.startXValue=d.startXValue,a.endXValue=c.x,b.push(d.startXValue,c.x),delete a.startValue,delete a.endValue);u.raiseEvent("chartupdated",a,f.chartInstance,b);delete d.dragStartY;delete d.dragStartX;delete d.startValue;delete d.startXValue;break;default:e.repositionItems(d,d.changeX?(b.pageX||g.pageX||0)-d.dragStartX:0,d.changeY?
(b.pageY||g.pageY||0)-d.dragStartY:0)}},dragLabelHandler:function(b){var d=b.data,a=b.type,c=d.element,e=d.tracker,f=d.toolTip,q=la&&Oa(b)||Cb,g=d.series,h,l,p;"dragstart"===a?(f.block(!0),d.dragStartY=b.pageY||q.pageY||0,d.dragStartX=b.pageX||q.pageX||0):(h=d.x+(b.pageX||q.pageX||0)-d.dragStartX,p=h-d.leftDistance,p+d.width>d.plotWidth&&(p=d.plotWidth-d.width),0>p&&(p=0),h=p+d.leftDistance,l=d.y+(b.pageY||q.pageY||0)-d.dragStartY,b=l-d.topDistance,b+d.height>d.plotHeight&&(b=d.plotHeight-d.height),
0>b&&(b=0),l=b+d.topDistance,"dragend"===a?(f.block(!1),d.x=h,d.y=l,delete d.dragStartY,delete d.dragStartX):(c.attr({x:h,y:l}).textBound(),e.attr({x:p,y:b})));"dragend"==a&&(a={hcJSON:{dragableLabels:[]}},a.hcJSON.dragableLabels[d.index]={y:g.yAxis.translate(g.chart.plotHeight-l+d.yAdjustment,1),x:g.xAxis.translate(h,1)},M(g.chart.options.instanceAPI.chartInstance.jsVars._reflowData,a,!0))},pointUpdate:function(b,d,a){b._isUserTooltip||b.toolText===A||b._getTooltext?b._getTooltext&&(b.toolText=b._getTooltext(void 0,
void 0,{formattedValue:d},{value:a})):b.toolText=b._toolTextStr+d;b._isUserValue||b.displayValue===A||(b.displayValue=d)},snapPoint:function(b,d,a){var c=b.options.chart,e=c.snapToDiv,f=c.snapToDivOnly;b=b._yAxisPlotLines;for(var q=Q(b[1]-b[0]),c=f?.5*q:c.snapToDivRelaxation,q=d.lastSnap,g=1,h=b.length,l;h--;)if(l=Q(b[h]-a),e&&l<c){q!==h&&(d.lastSnap=f?void 0:h,a=b[h]);g=0;break}g&&(d.lastSnap=void 0);return a},setMinMaxValue:function(b){var d=b.options.series;b=b.logic;var a=0,c=Infinity,e=-Infinity,
f=b.chartInstance.jsVars._reflowData,q,g,h,l,p;p=0;for(q=d.length;p<q;p+=1)for(h=d[p]&&d[p].data,a=0,l=h.length;a<l;a+=1)g=h[a].y,null!==g&&(e=e>g?e:g,c=c<g?c:g);b.highValue=e;b.lowValue=c;f.postHCJSONCreation=function(){var a=this.hcJSON[oa][0];a.min=c;a.max=e}},setSelectBoxValues:function(b,d){var a=d.xAxis[0],c=d.yAxis[0],e=d.plotHeight;b.startX=a.translate(b.left,1);b.endX=a.translate(b.left+b.width,1);b.startY=c.translate(e-b.top,1);b.endY=c.translate(e-(b.top+b.height),1)}};s("dragarea",db({friendlyName:"Dragable Area Chart",
standaloneInit:!0,creditLabel:!1,rendererId:"dragarea",defaultSeriesType:"area",decimals:2,anchorAlpha:"100",eiMethods:s.msareabase.eiMethods},Ca),s.msareabase);s("dragline",db({friendlyName:"Dragable Line Chart",standaloneInit:!0,creditLabel:!1,decimals:2,defaultSeriesType:"line",rendererId:"dragline",eiMethods:s.mslinebase.eiMethods},Ca),s.mslinebase);s("dragcolumn2d",db({friendlyName:"Dragable Column Chart",standaloneInit:!0,creditLabel:!1,decimals:2,defaultSeriesType:"column",rendererId:"dragcolumn2d",
eiMethods:s.mscolumn2dbase.eiMethods},Ca),s.mscolumn2dbase);s("selectscatter",{friendlyName:"Dragable Scatter Chart",isXY:!0,standaloneInit:!0,creditLabel:!1,defaultSeriesType:"scatter",defaultZeroPlaneHighlighted:!1,spaceManager:Ca.spaceManager,drawButtons:Ca.drawButtons,updateChartWithData:Ca.updateChartWithData,eiMethods:db(db(db({},s.scatterbase.eiMethods),Ca.eiMethods),{getData:function(b){var d=this.jsVars.instanceAPI,a=d.getCollatedData(),c=[],e=a.dataset,f=e&&e.length||0,q=0,g=0;if(b)c=/^json$/ig.test(b)?
a:/^csv$/ig.test(b)?d.getCSVString():G.core.transcodeData(a,"json",b);else for(;q<f;q+=1)if(d=e[q]){for((a=b=(d=e[q]&&e[q].data)&&d.length||0)&&(c[g]||(c[g]=[C(e[q].id,"null")]));a--;)c[g][a+1]=C(d[a].id,"null");b&&(g+=1)}return c}}),getCSVString:function(){for(var b=this.chartInstance.getData(),d=b.length;d--;)b[d]=b[d].join(",");return b.join("|")},getCollatedData:function(){for(var b=this.chartInstance,d=b.jsVars.hcObj._selectEleArr,a=d&&d.length,b=M({},b.getChartData(G.dataFormats.JSON)),c=b.dataset,
e,f,q,g,h,l,p,k,n,r=[];a--;)if(e=d[a])for(l=e.startX,p=e.endX,k=e.startY,n=e.endY,g=c.length;g--;)for(r[g]||(r[g]={data:[]}),h=(q=c[g].data)&&q.length;h--;)f=q[h],e=f.x,f=f.y,e>l&&e<p&&f<k&&f>n&&(r[g].data[h]=!0);for(g=c.length;g--;)for(h=(q=c[g].data)&&q.length;h--;)r[g]&&r[g].data[h]||q.splice(h,1);return this.updatedDataObj=b},createSelectionBox:function(b){var d=b.chart,a=d.paper,c=d.options.chart,e=d.yAxis&&d.yAxis[0],f=d.xAxis&&d.xAxis[0],g=b.selectionLeft,m=b.selectionTop,h=b.selectionWidth;
b=b.selectionHeight;var l=g+h,p=m+b,k=15<h&&15<b,n={resizeEleRadius:15,canvasTop:d.canvasTop,canvasRight:d.canvasLeft+d.canvasWidth,canvasLeft:d.canvasLeft,canvasBottom:d.canvasTop+d.canvasHeight},r=d.layers.tracker,t=d._selectEleArr||(d._selectEleArr=[]);n.index=t.length;n.id="SELECT_"+n.index;n.selectBoxG=r=a.group("selection-box",r).toFront();n.selectBoxTracker=a.rect(g,m,h,b,r).attr({"stroke-width":1,stroke:da(c.selectBorderColor),ishot:!0,fill:c.selectFillColor}).css({cursor:"move"});n.selectBoxTracker.data("config",
{position:6,selectEleObj:n,xChange:!0,yChange:!0});n.topTracker=a.rect(g,m-6,h,12,r).attr({"stroke-width":0,ishot:!0,fill:ua}).css("cursor",Za&&"ns-resize"||"n-resize");n.topTracker.data("config",{position:1,selectEleObj:n,yChange:!0});n.rightTracker=a.rect(g+h-6,m,12,b,r).attr({"stroke-width":0,ishot:!0,fill:ua}).css("cursor",Za&&"ew-resize"||"w-resize");n.rightTracker.data("config",{position:2,selectEleObj:n,xChange:!0});n.bottomTracker=a.rect(g,m+b-6,h,12,r).attr({"stroke-width":0,ishot:!0,fill:ua}).css("cursor",
Za&&"ns-resize"||"n-resize");n.bottomTracker.data("config",{position:3,selectEleObj:n,yChange:!0});n.leftTracker=a.rect(g-6,m,12,b,r).attr({"stroke-width":0,ishot:!0,fill:ua}).css("cursor",Za&&"ew-resize"||"e-resize");n.leftTracker.data("config",{position:4,selectEleObj:n,xChange:!0});n.cornerInnerSymbol=a.symbol("resizeIcon",0,0,15,r).attr({transform:"t"+l+","+p,"stroke-width":1,visibility:k?Gb:"hidden",ishot:!0,stroke:"#999999"});n.cornerOuterSymbol=a.symbol("resizeIcon",0,0,-12,r).attr({transform:"t"+
l+","+p,strokeWidth:1,visibility:k?"hidden":Gb,ishot:!0,stroke:"#777777"});n.resizeTracker=a.circle(l,p,12,r).attr({"stroke-width":1,stroke:ua,ishot:!0,fill:ua}).css("cursor",Za&&"nwse-resize"||"nw-resize");n.resizeTracker.data("config",{position:5,selectEleObj:n,yChange:!0,xChange:!0});n.closeButton=a.symbol("closeIcon",0,0,6,r).attr({transform:"t"+l+","+m,"stroke-width":2,stroke:c.selectionCancelButtonBorderColor,fill:c.selectionCancelButtonFillColor,"stroke-linecap":"round",ishot:!0,"stroke-linejoin":"round"}).css({cursor:"pointer",
_cursor:"hand"}).click(function(){d.logic.deleteSelection(this,d)});n.closeButton.data("config",{index:n.index});n.chart=d;n.startX=f.getAxisPosition(g,1);n.startY=e.getAxisPosition(m,1);n.endX=f.getAxisPosition(l,1);n.endY=e.getAxisPosition(p,1);n.isVisible=!0;t.push(n);d.logic.bindDragEvent(n)},deleteSelection:function(b,d){var a=b.data("config").index,c=d._selectEleArr,e=c[a],f,g,m;f=e.selectBoxTracker.getBBox();m={selectionLeft:f.x,selectionTop:f.y,selectionWidth:f.width,selectionHeight:f.height,
startXValue:d.xAxis[0].getAxisPosition(f.x,1),startYValue:d.yAxis[0].getAxisPosition(f.y,1),endXValue:d.xAxis[0].getAxisPosition(f.x+f.width,1),endYValue:d.yAxis[0].getAxisPosition(f.y+f.height,1),data:d.logic.getCollatedData(),id:e.id};for(g in e)f=e[g],f.remove&&f.remove(),delete e[g];delete c[a];G.raiseEvent("selectionRemoved",m,d.logic.chartInstance)},bindDragEvent:function(b){for(var d in b)/Tracker/.test(d)&&b[d].drag(this.move,this.start,this.up)},start:function(){var b=this.data("config").selectEleObj,
d=b.topTracker,a=b.rightTracker,c=b.bottomTracker,e=b.leftTracker,f=b.resizeTracker,g=d.data("config"),m=a.data("config"),h=c.data("config"),l=e.data("config"),p=f.data("config"),k=b.selectBoxTracker.data("config"),n=b.selectBoxTracker.getBBox();g.ox=n.x;g.oy=n.y;m.ox=n.x2;m.oy=n.y;h.ox=n.x;h.oy=n.y2;l.ox=n.x;l.oy=n.y;g.ox=n.x;g.oy=n.y;p.ox=n.x2;p.oy=n.y2;k.ox=n.x;k.oy=n.y;k.ow=n.width;k.oh=n.height;k.ox2=n.x2;k.oy2=n.y2;b.selectBoxG.toFront();d.hide();a.hide();c.hide();e.hide();f.hide();this.show()},
move:function(b,d){var a=this.data("config"),c=a.selectEleObj,e=c.chart,f=c.topTracker,g=c.rightTracker,m=c.bottomTracker,h=c.leftTracker,l=c.resizeTracker,p=c.selectBoxTracker,k=c.canvasLeft,n=c.canvasRight,r=c.canvasTop,t=c.canvasBottom,z=p.data("config"),D={},w,B;b=a.xChange?b:0;d=a.yChange?d:0;w=b+a.ox;B=d+a.oy;w=L(n-(a.ow||0),Ya(w,k));B=L(t-(a.oh||0),Ya(B,r));switch(a.position){case 1:D.y=L(z.oy2,B);D.height=Q(z.oy2-B)||1;f.attr({y:B+-6});break;case 2:D.x=L(z.ox,w);D.width=Q(z.ox-w)||1;g.attr({x:w+
-6});break;case 3:D.y=L(z.oy,B);D.height=Q(z.oy-B)||1;m.attr({y:B+-6});break;case 4:D.x=L(z.ox2,w);D.width=Q(z.ox2-w)||1;h.attr({x:w+-6});break;case 5:D.x=L(z.ox,w);D.width=Q(z.ox-w)||1;D.y=L(z.oy,B);D.height=Q(z.oy-B)||1;l.attr({cx:w,cy:B});break;default:D.x=w,D.y=B}this.data("dragStarted")||(a=p.getBBox(),a={selectionLeft:a.x,selectionTop:a.y,selectionWidth:a.width,selectionHeight:a.height,startXValue:e.xAxis[0].getAxisPosition(a.x,1),startYValue:e.yAxis[0].getAxisPosition(a.y,1),endXValue:e.xAxis[0].getAxisPosition(a.x+
a.width,1),endYValue:e.yAxis[0].getAxisPosition(a.y+a.height,1),id:c.id},G.raiseEvent("BeforeSelectionUpdate",a,e.logic.chartInstance),this.data("dragStarted",1));p.animate(D);c.isVisible&&(c.closeButton.hide(),c.cornerInnerSymbol.hide(),c.cornerOuterSymbol.hide(),c.isVisible=!1)},up:function(){var b=this,d=b.data("config").selectEleObj,a=d.chart,c=a.xAxis&&a.xAxis[0],e=a.yAxis&&a.yAxis[0],f=d.topTracker,g=d.rightTracker,m=d.bottomTracker,h=d.leftTracker,l=d.resizeTracker,p=d.selectBoxTracker,k,n;
setTimeout(function(){k=p.getBBox();d.startX=c.getAxisPosition(k.x,1);d.startY=e.getAxisPosition(k.y,1);d.endX=c.getAxisPosition(k.x2,1);d.endY=e.getAxisPosition(k.y2,1);f.attr({x:k.x,y:k.y+-6,width:k.width});g.attr({x:k.x2+-6,y:k.y,height:k.height});m.attr({x:k.x,y:k.y2+-6,width:k.width});h.attr({x:k.x+-6,y:k.y,height:k.height});l.attr({cx:k.x2,cy:k.y2});d.closeButton.transform("t"+k.x2+","+k.y);d.cornerInnerSymbol.transform("t"+k.x2+","+k.y2);d.cornerOuterSymbol.transform("t"+k.x2+","+k.y2);d.closeButton.show();
15>k.width||15>k.height?(d.cornerInnerSymbol.hide(),d.cornerOuterSymbol.show()):(d.cornerInnerSymbol.show(),d.cornerOuterSymbol.hide());d.isVisible=!0;f.show();g.show();m.show();h.show();l.show();b.data("dragStarted")&&(n={selectionLeft:k.x,selectionTop:k.y,selectionWidth:k.width,selectionHeight:k.height,startXValue:a.xAxis[0].getAxisPosition(k.x,1),startYValue:a.yAxis[0].getAxisPosition(k.y,1),endXValue:a.xAxis[0].getAxisPosition(k.x+k.width,1),endYValue:a.yAxis[0].getAxisPosition(k.y+k.height,1),
data:a.logic.getCollatedData(),id:d.id},G.raiseEvent("SelectionUpdated",n,a.logic.chartInstance),b.data("dragStarted",0))},100)},postSeriesAddition:function(b,d){var a=s.scatter&&s.scatter.postSeriesAddition&&s.scatter.postSeriesAddition.apply(this,arguments),c=b.chart,e=d.chart,f=this.colorManager,q=h(e.selectbordercolor,f.getColor("canvasBorderColor")),m=g(e.selectborderalpha,f.getColor("canvasBorderAlpha"));c.selectBorderColor={FCcolor:{color:q,alpha:m}};c.selectFillColor=y(h(e.selectfillcolor,
f.getColor("altHGridColor")),g(e.selectfillalpha,f.getColor("altHGridAlpha")));c.selectionCancelButtonBorderColor=y(h(e.selectioncancelbuttonbordercolor,q),g(e.selectioncancelbuttonborderalpha,m));c.selectionCancelButtonFillColor=y(h(e.selectioncancelbuttonfillcolor,"FFFFFF"),g(e.selectioncancelbuttonfillalpha,100));b.chart.nativeZoom=!1;c.formAction=C(e.formaction);"0"!==e.submitdataasxml||e.formdataformat||(e.formdataformat=G.dataFormats.CSV);c.formDataFormat=h(e.formdataformat,G.dataFormats.XML);
c.formTarget=h(e.formtarget,"_self");c.formMethod=h(e.formmethod,"POST");c.submitFormAsAjax=g(e.submitformusingajax,1);(b.callbacks||(b.callbacks=[])).push(function(){var a=this.logic;Pa(this,{selectionStart:function(a){var b=dc(a.chart.container,a.originalEvent),b=M({selectionLeft:a.selectionLeft,selectionTop:a.selectionTop,selectionWidth:a.selectionWidth,selectionHeight:a.selectionHeight,startXValue:a.chart.xAxis[0].getAxisPosition(a.selectionLeft,1),startYValue:a.chart.yAxis[0].getAxisPosition(a.selectionTop,
1)},b);G.raiseEvent("selectionStart",b,a.chart.logic.chartInstance)},selectionEnd:function(b){var c=dc(b.chart.container,b.originalEvent),d=b.chart.xAxis[0],e=b.chart.yAxis[0],c=M({selectionLeft:b.selectionLeft,selectionTop:b.selectionTop,selectionWidth:b.selectionWidth,selectionHeight:b.selectionHeight,startXValue:d.getAxisPosition(b.selectionLeft,1),startYValue:e.getAxisPosition(b.selectionTop,1),endXValue:d.getAxisPosition(b.selectionLeft+b.selectionWidth,1),endYValue:e.getAxisPosition(b.selectionTop+
b.selectionHeight,1)},c);G.raiseEvent("selectionEnd",c,b.chart.logic.chartInstance);a.createSelectionBox(b)}})});b.chart.zoomType="xy";return a}},s.scatterbase);s("multiaxisline",{friendlyName:"Multi-axis Line Chart",standaloneInit:!0,creditLabel:!1,defaultSeriesType:"line",rendererId:"multiaxisline",isMLAxis:!0,canvasPaddingModifiers:["anchor","anchorlabel"],drawAxisTrackerAndCheckBox:function(){for(var b=this,d=b.canvasLeft,a=b.canvasTop,c=b.canvasWidth,e=b.canvasHeight,f=b.paper,q=b.yAxis,m=q.length,
h=b.logic,l=0,p=0,k={cursor:"col-resize",_cursor:"e-resize","*cursor":"e-resize"},n=h.chartInstance,r=n.jsVars,t=h.dataObj,z=r._reflowData,D=z.hcJSON||{},w=t.axis,B=t.chart,t=g(B.allowaxisshift,1),H=(B=g(B.allowselection,1))&&f.html("div",{fill:"transparent",width:b.chartWidth},{top:"",left:"",fontSize:"10px",lineHeight:"15px",marginTop:-b.chartHeight+"px"},b.container),D=D.yAxis||(D.yAxis=[]),$,ia,u,E,s,I,A=function(a){b.series&&b.series[a]&&b.series[a].setVisible(!1,!1)},za=function(a){var c=a.data;
a=c.axis[c.index].axisData;var d=a._relatedSeries,e=!c.checkBox.checked(),c=w[a._axisposition];d&&ib(d,function(a){b.options.series[a].legendClick(e,!0)});c.hidedataplots=!e;M(z,{preReflowAdjustments:function(){this.dataObj.axis=w}});G.raiseEvent("AxisSelected",{selected:e,AxisId:c._index,AxisConfiguration:a._origAttr||rb(c,a)},b.logic.chartInstance)},F=function(a){var c=a.data;a=c.axis;var c=a[c.index].axisData,d=c.opposite,e=c._axisposition,f=w.length,q,k,m,l={},p=w[e],t={};for(q=0;q<f;q+=1)k=w[q],
k=!g(k.axisonleft,1),k===d&&(m=q,d&&(q=f));m!==e&&(l=a[m],t=w[m],a=w.splice(m,1,w[e]),w.splice(e,1,a[0]));if(m!==e||d!==h.dataObj.chart._lastClickedOpp)M(z,{preReflowAdjustments:function(){this.dataObj.chart._lastClickedOpp=d;this.dataObj.axis=w}}),G.raiseEvent("AxisShifted",{previousDefaultAxisId:t._index,newDefaultAxisId:p._index,previousDefaultAxisConfiguration:l._origAttr||rb(t,l),newDefaultAxisConfiguration:c._origAttr||rb(p,c)},b.logic.chartInstance),G.hcLib.createChart(n,r.container,r.type,
void 0,void 0,!1,!0)};m--;)$=q[m],ia=$.axisData,u=ia._axisWidth,(E=ia.opposite)||(l+=u),D[m]||(D[m]={}),B&&ia.showAxis&&(s=d+(E?c+p+g(ia.title.margin,u-10)+5:-l),I=a+e+10,$.checkBox=f.html("input",{},{left:s+"px",top:I+"px"}).attr({type:"checkbox",name:"axis[]",value:ia.title.text||""}).add(H),$.checkBox.val(ia.hidedataplots),ia.hidedataplots||ia._relatedSeries&&ib(ia._relatedSeries,A),tb($.checkBox.element,la?"touchstart":"mousedown",za,{axis:q,index:m,checkBox:$.checkBox})),t&&($.tracker=f.rect(d+
(E?c+p:-l),a,u,e,0).attr({"stroke-width":0,fill:ua,isTracker:+new Date,zIndex:7}).css(k),E&&(p+=u),tb($.tracker[0],la?"touchstart":"mousedown",F,{axis:q,index:m}))},series:function(b){var d=this,a=d.numberFormatter,c=d.name,e=d.dataObj,f=e.chart,q=e.axis,m=d.hcJSON,v=m[oa],l=m.yAxis[0],p=g(e.chart.allowselection,1),k=[],n=g(f.showaxisnamesinlegend,0),r=g(f.yaxisvaluesstep,f.yaxisvaluestep,1),t=this.colorManager,z,D,w,B,H,$,ia,u,E,s,I,ka,za,ta,x;m.callbacks||(m.callbacks=[]);m.callbacks.push(function(){d.drawAxisTrackerAndCheckBox.call(this)});
m.legend.enabled=Boolean(g(e.chart.showlegend,1));if(q&&0<q.length){this.categoryAdder(e,m);m.yAxis.splice(0,2);$=v.noHiddenAxis=0;for(u=q.length;$<u;$+=1)E=q[$],void 0===E._index&&(E._index=$),E._axisposition=$,(B=!g(E.axisonleft,1))?(E._isSY=!0,k.unshift(E)):(E._isSY=!1,k.push(E));$=0;for(u=k.length;$<u;$+=1)if(E=k[$],H=g(E.showaxis,1),q=E._index||0,a.parseMLAxisConf(E,q),z=t.getPlotColor(q),E.id=q,za=h(E.color,f.axiscolor,z),s=y(za,100),B=!g(E.axisonleft,1),I=g(E.divlinethickness,f.divlinethickness,
1),D=H?g(E.tickwidth,f.axistickwidth,2):0,w=H?g(E.axislinethickness,f.axislinethickness,2):0,ka=v[$]={},ka.showAxis=H,v.noHiddenAxis+=1-H,H&&(B?x=$:ta=$),ia=[],m.yAxis.push({startOnTick:!1,endOnTick:!1,_axisposition:E._axisposition,_isSY:E._isSY,_index:q,hidedataplots:!g(E.hidedataplots,0),title:{enabled:H,style:l.title.style,text:H?F(E.title):A,align:p?"low":"middle",textAlign:p&&B?"right":void 0},labels:{x:0,style:l.labels.style},plotBands:[],plotLines:[],gridLineColor:y(h(E.divlinecolor,za),g(E.divlinealpha,
f.divlinealpha,t.getColor("divLineAlpha"),100)),gridLineWidth:I,gridLineDashStyle:g(E.divlinedashed,E.divlineisdashed,f.divlinedashed,f.divlineisdashed,0)?Ha(g(E.divlinedashlen,f.divlinedashlen,4),g(E.divlinedashgap,f.divlinedashgap,2),I):"none",alternateGridColor:ca,lineColor:s,lineWidth:w,tickLength:D,tickColor:s,tickWidth:w,opposite:B,_relatedSeries:ia,showAxis:H}),ka.yAxisValuesStep=g(E.yaxisvaluesstep,E.yaxisvaluestep,r),ka.maxValue=E.maxvalue,ka.tickWidth=D,ka.minValue=E.minvalue,ka.setadaptiveymin=
g(E.setadaptiveymin,f.setadaptiveymin),ka.numDivLines=g(E.numdivlines,f.numdivlines,4),ka.adjustdiv=g(E.adjustdiv,f.adjustdiv),ka.showYAxisValues=H?g(E.showyaxisvalues,E.showyaxisvalue,f.showyaxisvalues,f.showyaxisvalue,1):0,ka.showLimits=H?g(E.showlimits,f.showyaxislimits,f.showlimits,ka.showYAxisValues):0,ka.showDivLineValues=H?g(E.showdivlinevalue,f.showdivlinevalues,E.showdivlinevalues,ka.showYAxisValues):0,ka.showzeroplane=E.showzeroplane,ka.showzeroplanevalue=g(E.showzeroplanevalue),ka.zeroplanecolor=
E.zeroplanecolor,ka.zeroplanethickness=E.zeroplanethickness,ka.zeroplanealpha=E.zeroplanealpha,ka.linecolor=h(E.linecolor,f.linecolor||E.color,z),ka.linealpha=E.linealpha,ka.linedashed=E.linedashed,ka.linethickness=E.linethickness,ka.linedashlen=E.linedashlen,ka.linedashgap=E.linedashgap,ka.anchorShadow=E.anchorshadow,ka.plottooltext=E.plottooltext,E.dataset&&0<E.dataset.length){I=E.dataset.length;z=g(E.includeinlegend,1);B=!1;H={data:[],relatedSeries:ia,name:F(E.title),type:"line",marker:{symbol:"axisIcon",
fillColor:ua,lineColor:jc(za,80).replace(mb,Ra)},lineWidth:0,legendFillColor:0!==n?y(za,25):void 0,legendFillOpacity:0,legendIndex:E._index,showInLegend:Boolean(g(n,z))};m.series.push(H);for(s=0;s<I;s+=1){w=E.dataset[s];w._yAxisName=E.title;void 0===w.color&&(w.color=h(ka.linecolor,za));D={visible:!g(w.initiallyhidden,0),yAxis:$,data:[],hoverEffects:this.parseSeriesHoverOptions(b,m,w,c)};D=this.point(c,D,w,e.chart,m,v.oriCatTmp.length,$,q);D.legendFillColor=H.legendFillColor;D.legendIndex=E._index;
if(void 0===D.showInLegend||D.showInLegend)B=!0;!1!==D.showInLegend&&(D.showInLegend=Boolean(z));ia.push(m.series.length);m.series.push(D)}0!==ia.length&&B||(H.showInLegend=!1)}b=f._lastClickedOpp?g(x,ta):g(ta,x);$=0;for(u=m.yAxis.length;$<u;$+=1)$!=b&&(m.yAxis[$].gridLineWidth=0,v[$].zeroplanethickness=0);this.configureAxis(m,e)}},point:function(b,d,a,c,e,f,q,m){b=!1;q=g(c.ignoreemptydatasets,0);var v;v=e.chart;var l=a.data||[],p=e[oa],k=p[d.yAxis||0],n=h(d.type,this.defaultSeriesType),r=e.plotOptions[n]&&
e.plotOptions[n].stacking,t=h(this.isValueAbs,p.isValueAbs,!1),z=g(d.yAxis,0),D=this.numberFormatter,w=this.colorManager,B=X(h(a.color,k.linecolor,c.linecolor,w.getPlotColor())),H=g(a.alpha,k.linealpha,c.linealpha,Ea),$=g(c.showshadow,this.defaultPlotShadow,1),ia=g(a.drawanchors,a.showanchors,c.drawanchors,c.showanchors),u=g(a.anchorsides,c.anchorsides,0),E=g(a.anchorstartangle,c.anchorstartangle,90),s=g(a.anchorradius,c.anchorradius,3),I=X(h(a.anchorbordercolor,c.anchorbordercolor,B)),ka=g(a.anchorborderthickness,
c.anchorborderthickness,1),w=X(h(a.anchorbgcolor,c.anchorbgcolor,w.getColor("anchorBgColor"))),F=h(a.anchoralpha,c.anchoralpha,Ea),x=h(a.anchorbgalpha,c.anchorbgalpha,F);d.anchorShadow=F&&h(a.anchorshadow,k.anchorShadow,c.anchorshadow,0);d.name=C(a.seriesname);if(0===g(a.includeinlegend)||void 0===d.name||0===H&&1!==ia)d.showInLegend=!1;d.marker={fillColor:{FCcolor:{color:w,alpha:x*F/100+A}},lineColor:{FCcolor:{color:I,alpha:F+A}},lineWidth:ka,radius:s,symbol:ga(u),startAngle:E};d.color={FCcolor:{color:B,
alpha:H}};d.shadow=$?{opacity:$?H/100:0}:!1;d.step=this.stepLine;d.drawVerticalJoins=Boolean(g(c.drawverticaljoins,1));d.useForwardSteps=Boolean(g(c.useforwardsteps,1));d.lineWidth=g(a.linethickness,k.linethickness,c.linethickness,2);c=d._dataParser=ub.line(e,{plottooltext:h(a.plottooltext,k.plottooltext),seriesname:d.name,lineAlpha:H,anchorAlpha:F,showValues:g(a.showvalues,p.showValues),yAxis:m,lineDashed:Boolean(g(a.dashed,k.linedashed,c.linedashed,0)),lineDashLen:g(a.linedashlen,k.linedashlen,
c.linedashlen,5),lineDashGap:g(a.linedashgap,k.linedashgap,c.linedashgap,4),lineThickness:d.lineWidth,lineColor:B,valuePosition:h(a.valueposition,v.valuePosition),drawAnchors:ia,anchorShadow:d.anchorShadow,anchorBgColor:w,anchorBgAlpha:x,anchorBorderColor:I,anchorBorderThickness:ka,anchorRadius:s,anchorSides:u,anchorAngle:E,_sourceDataset:a,_yAxisName:a._yAxisName,hoverEffects:d.hoverEffects},this);delete a._yAxisName;for(m=0;m<f;m+=1)(v=l[m])?(a=D.getCleanValue(v.value,t),null===a?d.data.push({y:null}):
(b=!0,d.data.push(c(v,m,a)),this.pointValueWatcher(e,a,z,r,m,0,n))):d.data.push({y:null});!q||b||this.realtimeEnabled||(d.showInLegend=!1);return d},configureAxis:function(b,d){var a=b[oa],c=d.chart,e,f,q,m,h,l,p,k,n,r,t,z,D;b.xAxis.title.text=F(c.xaxisname);D=0;for(f=b.yAxis.length;D<f;D+=1)e=b.yAxis[D],q=a[D],z=g(q.yAxisValuesStep,1),z=1>z?1:z,m=q.maxValue,h=q.minValue,l=g(q.setadaptiveymin,0),p=l=!l,k=q.numDivLines,n=0!==q.adjustdiv,r=q.showLimits,t=q.showDivLineValues,this.axisMinMaxSetter(e,
q,m,h,l,p,k,n),this.configurePlotLines(c,b,e,q,r,t,z,this.numberFormatter,e._isSY,void 0,e._index),e.reversed&&0<=e.min&&(b.plotOptions.series.threshold=e.max)},spaceManager:function(b,d,a,c){var e=b[oa],f,q,m=d.chart,v,l,p,k,n,r,t,z,D,w,B,H,$,ia;ia=b.chart.marginLeft;var u=b.chart.marginRight,E=e.marginLeftExtraSpace,s=e.marginTopExtraSpace,I=e.marginBottomExtraSpace,A=e.marginRightExtraSpace;n=a-(E+A+b.chart.marginRight+b.chart.marginLeft);var F=c-(I+b.chart.marginBottom+b.chart.marginTop),x=.3*
n;c=.3*F;var y=n-x,O=F-c,C=h(m.legendposition,Ia).toLowerCase();b.legend.enabled&&C===Aa&&(y-=this.placeLegendBlockRight(b,d,y/2,F));q=b.yAxis;k=q.length;f=k-e.noHiddenAxis;t=0;if(f)for(w=z=0,B=10,$=y/f,r=k-1;0<=r;--r)D=q[r],D.showAxis&&(f=e[r],p=D.opposite,H=(p?w:z)+B,v=f.tickWidth,l=h(m.rotateyaxisname,p?"cw":"ccw"),f.verticalAxisNamePadding=4,f.fixedValuesPadding=v,f.verticalAxisValuesPadding=v,f.rotateVerticalAxisName=p&&"ccw"!==l?"cw":l,f.verticalAxisNameWidth=50,D.offset=H,t=$+t-B,f=jb(D,f,
b,d,F,t,p,0,0),f+=B,p?(w+=f,b.chart.marginRight+=B):(z+=f,b.chart.marginLeft+=B),t-=f,y-=f,y<B&&(B=0),D._axisWidth=f);y-=Pb(b,d,y);q=y+x;b.legend.enabled&&C!==Aa&&(O-=this.placeLegendBlockBottom(b,d,n,O/2),b.legend.width>q&&(b.legend.x=0));O-=this.titleSpaceManager(b,d,q,O/2);f=e.x;f.horizontalAxisNamePadding=g(m.xaxisnamepadding,5);f.horizontalLabelPadding=g(m.labelpadding,2);f.labelDisplay="1"==m.rotatelabels?"rotate":h(m.labeldisplay,"auto").toLowerCase();f.staggerLines=g(m.staggerlines,2);f.slantLabels=
g(m.slantlabels,m.slantlabel,0);n={left:0,right:0};n=b.chart.managePlotOverflow&&this.canvasPaddingModifiers&&this.calculateCanvasOverflow(b,!0)||n;r=n.left+n.right;t=.6*q;r>t&&(z=n.left/r,n.left-=z*(r-t),n.right-=(1-z)*(r-t));this.xAxisMinMaxSetter(b,d,q,n.left,n.right);O-=Bb(b.xAxis,f,b,d,q,O,x);O-=cb(b,d,O,b.xAxis);d=c+O;for(r=0;r<k;r+=1)$a(d,b,m,b.yAxis[r],e[r].lYLblIdx);b.legend.enabled&&C===Aa&&(e=b.legend,m=c+O,e.height>m&&(e.height=m,e.scroll.enabled=!0,t=(e.scroll.scrollBarWidth=10)+(e.scroll.scrollBarPadding=
2),e.width+=t,b.chart.marginRight+=t),e.y=20);m=(e=b.title.alignWithCanvas)?b.chart.marginLeft+q/2:a/2;ia=e?b.chart.marginLeft:ia;a=e?a-b.chart.marginRight:a-u;switch(b.title.align){case Ja:b.title.x=ia;b.title.align="start";break;case Aa:b.title.x=a;b.title.align="end";break;default:b.title.x=m,b.title.align="middle"}switch(b.subtitle.align){case Ja:b.subtitle.x=ia;break;case Aa:b.subtitle.x=a;break;default:b.subtitle.x=m}b.chart.marginLeft+=E;b.chart.marginTop+=s;b.chart.marginBottom+=I;b.chart.marginRight+=
A}},s.mslinebase);s("candlestick",{friendlyName:"Candlestick Chart",standaloneInit:!0,creditLabel:!1,paletteIndex:3,defaultSeriesType:"candlestick",canvasborderthickness:1,rendererId:"candlestick",chart:s.errorbar2d.chart,drawErrorValue:s.errorbar2d.drawErrorValue,series:function(b,d,a){var c,e,f=d[oa],q,m,v,l,p,k;c=b.chart;q=d.chart;var n=g(c.showvolumechart,1);m=this.colorManager;var r;d.legend.enabled=Boolean(g(c.showlegend,1));q.rollOverBandColor=y(h(c.rolloverbandcolor,m.getColor("altHGridColor")),
h(c.rolloverbandalpha,m.getColor("altHGridAlpha")));if(b.dataset&&0<b.dataset.length){this.categoryAdder(b,d);d.yAxis[0].opposite=!0;f.numdivlines=C(b.chart.numpdivlines);n&&(r=d._FCconf.numberFormatter,q=d.labels,d._FCconf.numberFormatter={},d._FCconf.smartLabel&&(e=d._FCconf.smartLabel,d._FCconf.smartLabel=void 0),d.labels={},v=M({},d),d._FCconf.numberFormatter=r,d._FCconf.smartLabel=e,d.labels=q,e&&(v._FCconf.smartLabel=e),v._FCconf.numberFormatter=new u.NumberFormatter(M(M({},c),{forcedecimals:ea(c.forcevdecimals,
c.forcedecimals),forceyaxisvaluedecimals:ea(c.forcevyaxisvaluedecimals,c.forceyaxisvaluedecimals),yaxisvaluedecimals:ea(c.vyaxisvaluedecimals,c.yaxisvaluedecimals),formatnumber:ea(c.vformatnumber,c.formatnumber),formatnumberscale:ea(c.vformatnumberscale,c.formatnumberscale),defaultnumberscale:ea(c.vdefaultnumberscale,c.defaultnumberscale),numberscaleunit:ea(c.vnumberscaleunit,c.numberscaleunit),vnumberscalevalue:ea(c.vnumberscalevalue,c.numberscalevalue),scalerecursively:ea(c.vscalerecursively,c.scalerecursively),
maxscalerecursion:ea(c.vmaxscalerecursion,c.maxscalerecursion),scaleseparator:ea(c.vscaleseparator,c.scaleseparator),numberprefix:ea(c.vnumberprefix,c.numberprefix),numbersuffix:ea(c.vnumbersuffix,c.numbersuffix),decimals:ea(c.vdecimals,c.decimals)}),this),M(v,{chart:{backgroundColor:"rgba(255,255,255,0)",borderColor:"rgba(255,255,255,0)",animation:!1},title:{text:null},subtitle:{text:null},legend:{enabled:!1},credits:{enabled:!1},xAxis:{opposite:!0,labels:{enabled:!1}},yAxis:[{opposite:!0,title:{},
plotBands:[],plotLines:[]},{opposite:!1,title:{text:b.chart.vyaxisname}}]}),r=d.subCharts=[v]);c=0;for(e=b.dataset.length;c<e;c+=1)q={numColumns:e,data:[]},m=b.dataset[c],q=this.point(a,q,m,b.chart,d,f.oriCatTmp.length,c),q instanceof Array?(n&&(v.series.push({type:"column",data:q[1]}),v.showVolume=!0,m=g(b.chart.volumeheightpercent,40),m=20>m?20:80<m?80:m,l=f.height-(d.chart.marginBottom+d.chart.marginTop),p=l*m/100,k=d.chart.marginBottom+p,v[oa].marginTop=k+40,v.yAxis[0].plotBands=[],v.yAxis[0].plotLines=
[],v.exporting.enabled=!1,v.yAxis[0].title.text=F(C(b.chart.vyaxisname)),v.yAxis[0].title.align="low",v.chart.height=p+20,v.chart.width=f.width,v.chart.top=l-p,v.chart.left=0,v.chart.volumeHeightPercent=m),d.series.push(q[0])):(d.series.push(q),r=d.subCharts=void 0);if(b.trendset&&0<b.trendset.length)for(c=0,e=b.trendset.length;c<e;c+=1)q={type:"line",marker:{enabled:!1},connectNullData:1,data:[]},v=b.trendset[c],v.data&&0<v.data.length&&(q=this.getTrendsetPoint(a,q,v,b.chart,d,f.oriCatTmp.length,
c),d.series.push(q));b.chart.showdivlinesecondaryvalue=0;b.chart.showsecondarylimits=0;this.configureAxis(d,b);d.yAxis[1].opposite=!1;d.yAxis[1].min=d.yAxis[0].min;d.yAxis[1].max=d.yAxis[0].max;d.yAxis[1].title.text=d.yAxis[0].title.text;d.yAxis[0].title.text=A;n&&r&&(r=r[0],a=r[oa],a.numdivlines=C(b.chart.numvdivlines),a[0].min=f.volume&&f.volume.min,a[0].max=f.volume&&f.volume.max,r.series&&r.series[0]&&(r.series[0].showInLegend=!1),this.configureAxis(r,b),r.yAxis[0].title.text=F(C(b.chart.vyaxisname)),
r.yAxis[1].min=r.yAxis[0].min,r.yAxis[1].max=r.yAxis[0].max,r.yAxis[1].title.text=r.yAxis[0].title.text,r.yAxis[0].title.text=A);if((a=b.trendlines&&b.trendlines[0]&&b.trendlines[0].line)&&a.length){for(n=0;n<a.length;n+=1)a[n].parentyaxis="s",a[n].valueonleft="1";Zb(b.trendlines,d.yAxis,f,!0,this.isBar)}}},getTrendsetPoint:function(b,d,a,c,e){if(a.data){b=a.data;var f=b.length,q=0,m,v,l,p,k,n=e[oa],r=this.numberFormatter,t=g(d.yAxis,0),n=n.toolTextStore,f=X(h(a.color,c.trendsetcolor,"666666")),q=
h(a.alpha,c.trendsetalpha,"100");m=g(a.thickness,c.trendsetthickness,2);v=Boolean(g(a.dashed,c.trendsetdashed,0));l=g(a.dashlen,c.trendsetdashlen,4);p=g(a.dashgap,c.trendsetdashgap,4);k=h(a.includeinlegend,1);d.color=y(f,q);d.lineWidth=m;d.dashStyle=v?Ha(l,p):"none";d.includeInLegend=k;d.name=C(a.name);d.doNotUseBand=!0;if(0===g(a.includeinlegend)||void 0===d.name)d.showInLegend=!1;d.tooltip={enabled:!1};q=c.interactivelegend=0;for(f=b.length;q<f;q+=1)(c=b[q])&&!c.vline&&(a=r.getCleanValue(c.value),
c=r.getCleanValue(c.x),c=null!==c?c:q+1,m=n&&n[c],d.data.push({x:c,y:a,toolText:m}),this.pointValueWatchers(e,null,a,a,null,t))}return d},point:function(b,d,a,c,e){if(a.data){b=s[b];var f=e[oa],q=C(c.plotpriceas,A).toLowerCase(),m=a.data,v=m&&m.length,l=this.numberFormatter,p=[],k=[],n={},r,t,z,D=!1,w=g(d.yAxis,0),B=X(h(c.bearbordercolor,"B90000")),H=X(h(c.bearfillcolor,"B90000")),$=this.colorManager,ia=X(h(c.bullbordercolor,$.getColor("canvasBorderColor"))),u=X(h(c.bullfillcolor,"FFFFFF")),E=d.lineWidth=
g(c.plotlinethickness,"line"==q||"bar"==q?2:1),va=h(c.plotlinealpha,"100"),I=g(c.plotlinedashlen,5),ka=g(c.plotlinedashgap,4),x=g(c.vplotborderthickness,1),ta=!!g(c.drawanchors,1),G=g(c.anchorsides,0),O=g(c.anchorstartangle,90),M=g(c.anchorradius,this.anchorRadius,3),U=X(h(c.anchorbordercolor,ia)),K=g(c.anchorborderthickness,this.anchorBorderThickness,1),$=X(h(c.anchorbgcolor,$.getColor("anchorBgColor"))),J=h(c.anchoralpha,"0"),Z=h(c.anchorbgalpha,J),V,N,P,aa,Y,W,da,R,ba,fa,T,ea,ja,na,ca,pa=!1;d.name=
C(a.seriesname);d.showInLegend=!1;d.marker={};switch(q){case "line":d.plotType="line";break;case "bar":d.plotType="candlestickbar";break;default:d.plotType="column",d.errorBarWidthPercent=0,pa=!0}for(N=0;N<v;N+=1)(P=m[N])&&!P.vline&&(da=l.getCleanValue(P.open),R=l.getCleanValue(P.close),ba=l.getCleanValue(P.high),fa=l.getCleanValue(P.low),T=l.getCleanValue(P.volume,!0),na=l.getCleanValue(P.x),pa&&Q(R-da),L(da,R),Ya(da,R),null!==T&&(D=!0),ea=L(da,R,ba,fa),ja=Ya(da,R,ba,fa),F(C(P.valuetext,A)),r=X(h(P.bordercolor,
R<da?B:ia)),t=h(P.alpha,"100"),q=y(X(h(P.color,R<da?H:u)),t),z=Boolean(g(P.dashed))?Ha(I,ka):"none",V={opacity:t/100},Y=f.oriCatTmp[N],ca=y(r,va),aa=b.getPointStub(e,c,P,da,R,ba,fa,T,ca,E,d.plotType,Y),na=na?na:N+1,n[na]=aa.toolText,d.data.push({high:Ya(da,R,ba,fa),low:L(da,R,ba,fa),color:pa?q:{FCcolor:{color:r,alpha:t}},displayValue:F(h(P.displayvalue,P.valuetext,A)),borderColor:ca,shadow:V,dashStyle:z,borderWidth:E,x:na,y:aa.y,categoryLabel:Y,errorValue:aa.errorValue,previousY:aa.previousY,toolText:aa.toolText,
link:aa.link,marker:{enabled:ta,fillColor:{FCcolor:{color:$,alpha:Z*J/100+A}},lineColor:{FCcolor:{color:U,alpha:J}},lineWidth:K,radius:M,startAngle:O,symbol:ga(G)}}),W=C(F(h(P.volumetooltext,a.volumetooltext,c.volumetooltext))),W=void 0!==W?b.getPointStub(e,c,P,da,R,ba,fa,T,ca,E,d.plotType,Y,W).toolText:aa.toolText,k.push({y:T,categoryLabel:Y,color:y(q,t),toolText:W,borderWidth:x,borderColor:y(r,h(c.plotlinealpha,P.alpha)),dashStyle:z,shadow:V,x:na,link:P.link}),this.pointValueWatchers(e,na,ea,ja,
T,w));f.toolTextStore=n;(d.drawVolume=D)?p.push(d,k):p=d;return p}return[]},getPointStub:function(b,d,a,c,e,f,g,m,v,l,p,k,n){var r=A,r=b[oa],t=r.numberFormatter,z="line"===p,D=L(c,e),w=Ya(c,e),B={};b=b.subCharts&&b.subCharts[0]&&b.subCharts[0][oa].numberFormatter||t;switch(p){case "line":B.y=e;B.link=h(a.link);break;case "column":B.y=Q(e-c);B.previousY=D;B.link=h(a.link);B.errorValue=[];0<f-w&&B.errorValue.push({errorValue:f-w,errorStartValue:w,errorBarColor:v,errorBarThickness:l,opacity:1});0>g-
D&&B.errorValue.push({errorValue:g-D,errorStartValue:D,errorBarColor:v,errorBarThickness:l,opacity:1});break;default:B.y=c,B.previousY=e,B.link=h(a.link)}r.showTooltip?(r=C(F(h(n,a.tooltext,r.tooltext))),void 0!==r?r=bb(r,[3,5,6,10,54,55,56,57,58,59,60,61,81,82],{label:k,yaxisName:F(d.yaxisname),xaxisName:F(d.xaxisname),openValue:a.open,openDataValue:t.dataLabels(c),closeValue:a.close,closeDataValue:t.dataLabels(e),highValue:a.high,highDataValue:t.dataLabels(f),lowValue:a.low,lowDataValue:t.dataLabels(g),
volumeValue:a.volume,volumeDataValue:t.dataLabels(m)},a,d):(r=null===c||z?A:"<b>Open:</b> "+t.dataLabels(c)+"<br/>",r+=null!==e?"<b>Close:</b> "+t.dataLabels(e)+"<br/>":A,r+=null===f||z?A:"<b>High:</b> "+t.dataLabels(f)+"<br/>",r+=null===g||z?A:"<b>Low:</b> "+t.dataLabels(g)+"<br/>",r+=null!==m?"<b>Volume:</b> "+b.dataLabels(m):A)):r=A;B.toolText=r;return B},pointValueWatchers:function(b,d,a,c,e,f){var q=b[oa];f=g(f,0);null!==e&&(b=q.volume,b||(b=q.volume={}),b.max=b.max>e?b.max:e,b.min=b.min<e?b.min:
e);null!==a&&(b=q[f],!b.max&&0!==b.max&&(b.max=a),!b.min&&0!==b.min&&(b.min=a),b.max=Ya(b.max,a),b.min=L(b.min,a));null!==c&&(b=q[f],!b.max&&0!==b.max&&(b.max=c),!b.min&&0!==b.min&&(b.min=c),b.max=Ya(b.max,c),b.min=L(b.min,c));null!==d&&(a=q.x,a.max=a.max>d?a.max:d,a.min=a.min<d?a.min:d)},spaceManager:function(b,d,a,c){var e=b[oa],f,q=d.chart,m=b.chart,v,l,p=this.smartLabel||e.smartLabel,k=e.x.min,n=e.x.max,r,t,z=c-(e.marginBottomExtraSpace+0+m.marginTop),D=b.yAxis,w;l=D.length;var B,H,$=0,ia=0,u=
8,E,s=Ya(g(m.plotBorderWidth,1),0),I;this.base.spaceManager.apply(this,arguments);b.xAxis.min=k-.5;b.xAxis.max=n+.5;b.yAxis[0].title.centerYAxis=b.yAxis[1].title.centerYAxis=!0;if(b.subCharts){k=b.subCharts[0];$=b.xAxis.showLine?b.xAxis.lineThickness:s;I=c-(m.marginTop+m.marginBottom+$+s);ia=k.chart.volumeHeightPercent;n=(e.horizontalAxisHeight||15)+s;I=I*ia/100;m.marginBottom+=I+$+s;l=M({},b.xAxis);ia=0;for(u=b.xAxis.plotBands.length;ia<u;ia+=1)(f=b.xAxis.plotBands[ia])&&f.label&&f.label.text&&(f.label.text=
" "),(f=l.plotBands[ia])&&f.label&&f.label.y&&(f.label.y=Ac(q.basefontsize,10)+4+$);ia=0;for(u=l.plotLines.length;ia<u;ia+=1)(f=l.plotLines[ia])&&f.label&&f.label.text&&(f.label.text=A);k.yAxis&&k.yAxis[0]&&k.yAxis[0].title&&k.yAxis[0].title.text&&(k.yAxis[0].title.text=A);k.xAxis=l;l=h(d.chart.rotateyaxisname,"ccw");l=l===La?"none":l;p=D[1].title.rotation?p.getSmartText(k.yAxis[1].title.text,"none"===l?m.marginLeft-10:I,void 0,!0).text:p.getSmartText(k.yAxis[1].title.text,p.getOriSize(D[1].title.text).width,
void 0,!0).text;D=k.yAxis;l=D.length;u=ia=$=0;for(B=l-1;0<=B;--B)H=D[B],f=e[B],w=H.opposite,E=(w?ia:$)+u,l=h(d.chart.rotateyaxisname,w?"cw":"ccw"),l=l===La?"none":l,v=g(q.yaxisvaluespadding,q.labelypadding,4),v<s&&(v=s),f.verticalAxisNamePadding=10,f.verticalAxisValuesPadding=v+(H.showLine?H.lineThickness:0),f.rotateVerticalAxisName=l,H.offset=E,w?r=jb(H,f,k,d,z,m.marginRight,!!w,0,0,ia):t=jb(H,f,k,d,z,m.marginLeft,!!w,0,0,$);D=b.yAxis;k.yAxis[1].title=M({},b.yAxis[1].title);k.yAxis[1].title.style=
b.orphanStyles.vyaxisname.style;k.yAxis[1].title.text=p;k.chart.left=0;k.chart.width=a;k.chart.top=c-m.marginBottom+n;k.chart.height=m.marginBottom-n;r=Math.max(m.marginRight,r+m.spacingRight);t=Math.max(m.marginLeft,t+m.spacingLeft);k.chart.marginLeft=m.marginLeft=t;k.chart.marginRight=m.marginRight=r;k.chart.marginTop=5;k.chart.marginBottom=m.marginBottom-(n+I);b.yAxis.push(k.yAxis[0],k.yAxis[1]);k.xAxis.startY=D[2].startY=D[3].startY=k.chart.top+k.chart.marginTop;k.xAxis.endY=D[2].endY=D[3].endY=
k.yAxis[0].startY+k.chart.height-k.chart.marginBottom;k.series[0]&&(k.series[0].yAxis=3,b.series.push(k.series[0]));b.xAxis=[b.xAxis,k.xAxis];b.yAxis[2].title.centerYAxis=b.yAxis[3].title.centerYAxis=!0}},isDual:!0,numVDivLines:0,defSetAdaptiveYMin:!0,divLineIsDashed:1,isCandleStick:!0,defaultPlotShadow:1,requiredAutoNumericLabels:1},s.scatterbase);s("kagi",{friendlyName:"Kagi Chart",standaloneInit:!0,stepLine:!0,creditLabel:!1,defaultSeriesType:"kagi",defaultZeroPlaneHighlighted:!1,setAdaptiveYMin:1,
canvasPadding:15,isKagi:1,rendererId:"kagi",pointValueWatcher:function(b,d,a){null!==d&&(b=b[oa],a=g(a,0),b[a]||(b[a]={}),a=b[a],this.maxValue=a.max=a.max>d?a.max:d,this.minValue=a.min=a.min<d?a.min:d)},point:function(b,d,a,c,e){b=e.chart;var f=a.length,q=0,m=e[oa].x,v=e[oa].numberFormatter,l=this.colorManager,p,k,n,r,t,z,D,w,B,H,$,u,s,E,va,I,ka,x,y,C,O,G,U;w=X(h(c.linecolor,c.palettecolors,l.getColor("plotFillColor")));B=g(c.linealpha,100);p=g(c.linethickness,2);d.color={FCcolor:{color:w,alpha:B}};
y=d.anchorShadow=g(c.anchorshadow,0);d.lineWidth=p;d.step=this.stepLine;d.drawVerticalJoins=Boolean(g(c.drawverticaljoins,1));D=g(c.drawanchors,c.showanchors);for(k=0;k<f;k+=1)r=a[k],r.vline||(p=v.getCleanValue(r.value),null!=p&&(n=g(r.showlabel,c.showlabels,1),n=F(n?ea(r.label,r.name):A),q+=1,z=g(r.linealpha,B),t={opacity:z/100},H=g(r.anchorsides,c.anchorsides,0),x=g(r.anchorstartangle,c.anchorstartangle,90),s=g(r.anchorradius,c.anchorradius,this.anchorRadius,3),u=X(h(r.anchorbordercolor,c.anchorbordercolor,
w)),$=g(r.anchorborderthickness,c.anchorborderthickness,this.anchorBorderThickness,1),E=X(h(r.anchorbgcolor,c.anchorbgcolor,l.getColor("anchorBgColor"))),va=h(r.anchoralpha,c.anchoralpha,"100"),I=h(r.anchorbgalpha,c.anchorbgalpha,va),z=void 0===D?0!==z:!!D,C=Boolean(g(r.anchorshadow,y,0)),O=h(r.anchorimageurl,c.anchorimageurl),G=h(r.anchorimagescale,c.anchorimagescale,100),U=h(r.anchorimagealpha,c.anchorimagealpha,100),ka=this.pointHoverOptions(r,d,{plotType:"anchor",anchorBgColor:E,anchorAlpha:va,
anchorBgAlpha:I,anchorAngle:x,anchorBorderThickness:$,anchorBorderColor:u,anchorBorderAlpha:va,anchorSides:H,anchorRadius:s,imageUrl:O,imageScale:G,imageAlpha:U,shadow:t}),d.data.push(M(this.getPointStub(r,p,n,e),{y:p,color:w,shadow:t,dashStyle:r.dashed,valuePosition:h(r.valueposition,b.valuePosition),isDefined:!0,marker:{enabled:!!z,shadow:C&&{opacity:va/100},fillColor:{FCcolor:{color:E,alpha:I*va/100+A}},lineColor:{FCcolor:{color:u,alpha:va}},lineWidth:$,radius:s,startAngle:x,symbol:ga(H),imageUrl:O,
imageScale:G,imageAlpha:U},hoverEffects:ka.enabled&&ka.options,rolloverProperties:ka.enabled&&ka.rolloverOptions})),this.pointValueWatcher(e,p)));m.catCount=q;return d},postSeriesAddition:function(b,d){var a=b.series[0],c=d.chart,e=d.data,f=a&&a.data,q=f&&f.length,m=b[oa],v=m.x,m=m.axisGridManager,l=b.xAxis,p=!1,k=0,n=.5,r=g(c.reversalvalue,-1),q=g(c.reversalpercentage,5),t=this.maxValue,z=this.minValue,D,w,B,H,$,u,s,E,x,I,ka,y,ta,C,O,G,U={};if(f&&f.length){a.rallyColor=h(c.rallycolor,"FF0000");a.rallyAlpha=
g(c.rallyalpha,c.linealpha,100);a.declineColor=h(c.declinecolor,"0000FF");a.declineAlpha=g(c.declinealpha,c.linealpha,100);a.rallyThickness=g(c.rallythickness,c.linethickness,2);$=g(c.rallydashlen,c.linedashlen,5);y=g(c.rallydashgap,c.linedashgap,4);a.declineThickness=g(c.declinethickness,c.linethickness,2);ta=g(c.declinedashlen,c.linedashlen,5);C=g(c.declinedashgap,c.linedashgap,4);a.lineDashed={"true":g(c.rallydashed,c.linedashed,0),"false":g(c.declinedashed,c.linedashed,0)};a.rallyDashed=g(c.rallydashed,
c.linedashed,0)?Ha($,y,a.rallyThickness):"none";a.declineDashed=g(c.declinedashed,c.linedashed,0)?Ha(ta,C,a.declineThickness):"none";a.canvasPadding=g(c.canvaspadding,this.canvasPadding,15);r=0<r?r:q*(t-z)/100;t=f[0].y;z=function(a,b){for(var c,d=1,e=f[0].y;d<a;)c=f[d].y,b?c<=e&&(f[d].isDefined=!1):c>=e&&(f[d].isDefined=!1),d+=1;f[0].vAlign=b?Ia:Na;f[0].align="center"};q=e&&e.length;for(C=ta=0;C<q;C+=1)if((y=e[C])&&y.vline)ta&&m.addVline(l,y,n,b);else{U=e[C];G&&(G=!1,n+=.5);if(ta&&(x=f[ta])){I=f[ta-
1];x.vAlign="middle";x.align=Aa;x.showLabel=!1;$=null;H=x.y;B=f[ta+1]&&f[ta+1].y;ka=Q(t-H);p?H<u&&D?D=!1:H>s&&!D&&(D=!0):(H>t&&ka>r?(D=!0,u=t,s=null,p=w=!0,z(ta,D)):H<t&&ka>r?(D=!1,u=null,s=t,w=!1,p=!0,z(ta,D)):(w=D=null,p=!1),ba(I)&&(I.isRally=D),null!=D&&(f[0].isRally=D));x.isRally=D;if(w&&H<t||!w&&H>t)$=t;O=$?$:H;ka=Q(O-B);B=null==w?null:w?O>B&&ka>=r:O<B&&ka>=r;if(I&&I.isShift)for(w?(u=t,E=Ia):w||(s=t,E=Na),I=ta;1<I;--I)if(f[I].y==t){f[I].vAlign=E;f[I].align="center";f[I].showLabel=!0;break}B?
(k+=1,n+=.5,G=!0,w=!w,x.isShift=!0,t=O,H=g(y.showlabel,c.showlabels,1),H=F(H?ea(y.label,y.name):A),m.addXaxisCat(l,k-1,k-1,H,y,{},c)):w&&H>t||!w&&H<t?t=H:$=t;x.plotValue=$;x.objParams={isRally:D,lastHigh:s,lastLow:u,isRallyInitialised:p}}ta+=1}H=g(U.showlabel,c.showlabels,1);H=F(H?ea(U.label,U.name):A);m.addXaxisCat(l,k,k,H,U,{},c);a.shiftCount=v.catCount=k+1}},xAxisMinMaxSetter:function(b,d,a){var c=b[oa].x,e=d.chart;d=c.min=g(c.min,0);var c=c.max=g(c.max,c.catCount-1),f=b.xAxis,q=L(g(e.canvaspadding,
0),a/2-10),m=q,h=g(e.maxhshiftpercent,10),l=b.series[0];b=l&&l.shiftCount;var e=g(e.canvaspadding,this.canvasPadding,15),p=a-2*e;l&&(m=l.xShiftLength=L(p/b,(0>=h?10:h)*p/100),q=e+m/2,m=a-(m*Ya(b-1,1)+q),c=Ya(c,1));f.labels.enabled=!1;f.gridLineWidth=0;f.alternateGridColor=ca;a=(a-(q+m))/(c-d+0);f.min=d-(0+q/a);f.max=c+(0+m/a)}},s.linebase);Db=function(b,d,a){this.nf=d;this.dataSeparator=a;this.method=(b||A).toLowerCase().replace(/\s/g,"")};Db.prototype={setArray:function(b){var d=this.nf,a=this.dataSeparator,
c=0;!b&&(b=A);for(b=this.dataLength=(a=b.replace(/\s/g,A).split(a))&&a.length;b--;)c+=a[b]=d.getCleanValue(a[b]);a&&a.sort(function(a,b){return a-b});this.values=a;this.mean=c/this.dataLength;this.getFrequencies()},getQuartiles:function(){var b=this.values,d=this.dataLength,a=d%2,c,e;switch(this.method){case "tukey":a?(a=(d+3)/4,d=(3*d+1)/4):(a=(d+2)/4,d=(3*d+2)/4);break;case "mooremccabe":a?(a=(d+1)/4,d=3*a):(a=(d+2)/4,d=(3*d+2)/4);break;case "freundperles":a=(d+3)/4;d=(3*d+1)/4;break;case "mendenhallsincich":a=
sa((d+1)/4);d=sa(3*a);break;default:a=(d+1)/4,d=3*a}--a;--d;c=Yb(a);e=Yb(d);a=a-c?b[c]+(b[hc(a)]-b[c])*(a-c):b[a];b=d-e?b[e]+(b[hc(d)]-b[e])*(d-e):b[d];return this.quartiles={q1:a,q3:b}},getMinMax:function(){var b=this.values;return{min:b[0],max:b[this.dataLength-1]}},getMean:function(){return this.mean},getMD:function(){for(var b=this.mean,d=this.frequencies,a=d.length,c,e=0;a--;)c=d[a],e+=c.frequency*Q(c.value-b);return e/this.dataLength},getSD:function(){for(var b=this.mean,d=this.values,a=this.dataLength,
c=a,e=0;a--;)e+=R(d[a]-b,2);return uc(e)/c},getQD:function(){return.5*(this.quartiles.q3-this.quartiles.q1)},getFrequencies:function(){var b=[],d=this.dataLength,a=this.values,c=0,e,f,g;for(g=0;g<d;g+=1)c+=e=a[g],ba(b[g])?b[g].frequency+=1:(f={},f.value=e,f.frequency=1,b[g]=f);this.sum=c;this.frequencies=b},getMedian:function(){var b=this.dataLength,d=.5*b,a=this.values;return 0===b%2?(a[d]+a[d-1])/2:a[Yb(d)]}};Db.prototype.constructor=Db;s("boxandwhisker2d",{friendlyName:"Box and Whisker Chart",
standaloneInit:!0,creditLabel:!1,defaultSeriesType:"boxandwhisker2d",chart:s.errorbar2d.chart,drawErrorValue:s.errorbar2d.drawErrorValue,decimals:2,maxColWidth:9E3,useErrorAnimation:1,avoidCrispError:0,tooltipsepchar:": ",rendererId:"boxandwhisker",fireGroupEvent:!0,point:function(b,d,a,c,e,f,q,m,v){var l=e[oa],p=g(c.ignoreemptydatasets,0),k=l.numberFormatter,n=e.chart.useRoundEdges,r=g(c.showshadow,1),t=this.colorManager,z=","+(g(c.useplotgradientcolor,0)?Lb(c.plotgradientcolor,t.getColor("plotGradientColor")):
A),D=2*q,w=g(c.plotborderthickness,1),B=h(c.plotbordercolor,t.getColor("plotBorderColor")).split(",")[0],H=h(c.plotborderalpha,"100"),$="0"==c.showplotborder?"0":H,u=g(a.dashed,c.plotborderdashed,0),s=g(a.dashlen,c.plotborderdashlen,5),E=g(a.dashgap,c.plotborderdashgap,4),x=h(a.upperboxcolor,c.upperboxcolor,t.getPlotColor(D)),I=h(a.lowerboxcolor,c.lowerboxcolor,t.getPlotColor(D+1)),ka=g(a.upperboxalpha,c.upperboxalpha),za=g(a.lowerboxalpha,c.lowerboxalpha),ta=h(a.upperwhiskercolor,c.upperwhiskercolor,
B),G=h(a.lowerwhiskercolor,c.lowerwhiskercolor,B),O=g(a.upperwhiskeralpha,c.upperwhiskeralpha,c.plotborderalpha,"100"),Q=g(a.lowerwhiskeralpha,c.lowerwhiskeralpha,c.plotborderalpha,"100"),U=g(a.upperwhiskerthickness,c.upperwhiskerthickness,w),K=g(a.lowerwhiskerthickness,c.lowerwhiskerthickness,w),J=h(a.upperwhiskerdashed,c.upperwhiskerdashed,0),Z=h(a.lowerwhiskerdashed,c.lowerwhiskerdashed,0),V=h(a.upperwhiskerdashlen,c.upperwhiskerdashlen,5),N=h(a.lowerwhiskerdashlen,c.lowerwhiskerdashlen,5),P=h(a.upperwhiskerdashgap,
c.upperwhiskerdashgap,4),aa=h(a.lowerwhiskerdashgap,c.lowerwhiskerdashgap,4),Y=h(a.upperquartilecolor,c.upperquartilecolor,B),W=h(a.lowerquartilecolor,c.lowerquartilecolor,B),R=h(a.upperboxbordercolor,c.upperboxbordercolor,B),T=h(a.lowerboxbordercolor,c.lowerboxbordercolor,B),X=h(a.mediancolor,c.mediancolor,B),fa=h(a.upperquartilealpha,c.upperquartilealpha,n?0:H),ea=h(a.lowerquartilealpha,c.lowerquartilealpha,n?0:H),Lc=h(a.upperboxborderalpha,c.upperboxborderalpha,n?0:$),ja=h(a.lowerboxborderalpha,
c.lowerboxborderalpha,n?0:$),na=h(a.medianalpha,c.medianalpha,H),sa=h(a.upperquartilethickness,c.upperquartilethickness,w),pa=h(a.lowerquartilethickness,c.lowerquartilethickness,w),ma=h(a.upperboxborderthickness,c.upperboxborderthickness,w),wa=h(a.lowerboxborderthickness,c.lowerboxborderthickness,w),ha=h(a.medianthickness,c.medianthickness,w),la=h(a.upperquartiledashed,c.upperquartiledashed,u),vb=h(a.lowerquartiledashed,c.lowerquartiledashed,u),qa=h(a.upperboxborderdashed,c.upperboxborderdashed,u),
lb=h(a.lowerboxborderdashed,c.lowerboxborderdashed,u),pb=h(a.mediandashed,c.mediandashed,u),ua=h(a.upperquartiledashlen,c.upperquartiledashlen,s),Zc=h(a.lowerquartiledashlen,c.lowerquartiledashlen,s),xa=h(a.upperboxborderdashlen,c.upperboxborderdashlen,s),ra=h(a.lowerboxborderdashlen,c.lowerboxborderdashlen,s),ya=h(a.mediandashlen,c.mediandashlen,s),Aa=h(a.upperquartiledashgap,c.upperquartiledashgap,E),Ba=h(a.lowerquartiledashgap,c.lowerquartiledashgap,E),Da=h(a.upperboxborderdashgap,c.upperboxborderdashgap,
E),Fa=h(a.lowerboxborderdashgap,c.lowerboxborderdashgap,E),Ka=h(a.mediandashgap,c.mediandashgap,E),Ea={},Ia={},Ja={},La={},Ca={},Ma=[],Na=[],Oa=[],Qa=[],Ra=[],Pa={polygon:"polygon",spoke:"spoke"},Sa=Pa[h(a.meaniconshape,c.meaniconshape,"polygon").toLowerCase()]||"polygon",Va=g(a.meaniconradius,c.meaniconradius,5),Ta=g(a.meaniconsides,c.meaniconsides,3),Ua=h(a.meaniconcolor,c.meaniconcolor,"000000"),Xa=h(a.meaniconbordercolor,c.meaniconbordercolor,"000000"),Za=g(a.meaniconalpha,c.meaniconalpha,100),
$a=Pa[h(a.sdiconshape,c.sdiconshape,"polygon").toLowerCase()]||"polygon",bb=g(a.sdiconradius,c.sdiconradius,5),cb=g(a.sdiconsides,c.sdiconsides,3),ab=h(a.sdiconcolor,c.sdiconcolor,"000000"),db=h(a.sdiconbordercolor,c.sdiconbordercolor,"000000"),eb=g(a.sdiconalpha,c.sdiconalpha,100),fb=Pa[h(a.mdiconshape,c.mdiconshape,"polygon").toLowerCase()]||"polygon",hb=g(a.mdiconradius,c.mdiconradius,5),jb=g(a.mdiconsides,c.mdiconsides,3),ib=h(a.mdiconcolor,c.mdiconcolor,"000000"),rb=h(a.mdiconbordercolor,c.mdiconbordercolor,
"000000"),sb=g(a.mdiconalpha,c.mdiconalpha,100),mb=Pa[h(a.qdiconshape,c.qdiconshape,"polygon").toLowerCase()]||"polygon",ob=g(a.qdiconradius,c.qdiconradius,5),tb=g(a.qdiconsides,c.qdiconsides,3),nb=h(a.qdiconcolor,c.qdiconcolor,"000000"),ub=h(a.qdiconbordercolor,c.qdiconbordercolor,"000000"),Gb=g(a.qdiconalpha,c.qdiconalpha,100),Bb=Pa[h(a.outliericonshape,c.outliericonshape,"polygon").toLowerCase()]||"polygon",Cb=g(a.outliericonradius,c.outliericonradius,5),Db=g(a.outliericonsides,c.outliericonsides,
3),Fb=h(a.outliericoncolor,c.outliericoncolor,"000000"),Mb=h(a.outliericonbordercolor,c.outliericonbordercolor,"000000"),Pb=g(a.outliericonalpha,c.outliericonalpha,100),Eb=(1-2*l.plotSpacePercent)/2*(-.5+q),Ob=g(c.reverselegend,0),lc=Ob?-1:1,mc=d.legendIndex=6*q+(Ob?5:0),Zb=g(a.showmean,c.showmean,0),$b=g(a.showmd,c.showmd,0),ac=g(a.showsd,c.showsd,0),dc=g(a.showqd,c.showqd,0),Yb=g(a.showalloutliers,c.showalloutliers,0),vc=g(c.outliersupperrangeratio,0),wc=g(c.outlierslowerrangeratio,0),bc=!1,nc=
Boolean(g(c.showdetailedlegend,1)),oc=l.tooltipSepChar,Sb=!0,kc=l.dataSeparator,Qb=l.bwCalc,hc=h(d.type,this.defaultSeriesType),uc=e.plotOptions[hc]&&e.plotOptions[hc].stacking,qb,Tb,Bc,Cc,ic,jc,Mc,Nc,Oc,Pc,Qc,kb,Hb,Ib,Jb,Kb,xc,Dc,Nb,ec,pc,Rb,fc,Ub,Vb,Wb,Ec,Fc,qc,Gc,S,rc,Xb,sc,gc,Rc,Hc,gb,Wa,Sc,tc,Ic,wb,xb,yc,Jc,yb,zb,Kc,Ac=function(a,b){return a-b},zc,Tc,Uc,Vc,Wc,Xc;d.errorBarWidthPercent=g(a.whiskerslimitswidthratio,c.whiskerslimitswidthratio,40);Ic=a.data;d.name=C(a.seriesname);uc||(d.columnPosition=
g(v,m,q));d.errorBar2D=!0;if(0===g(a.includeinlegend)||void 0===d.name)Sb=d.showInLegend=!1;3>Ta&&(Ta=3);xc=Ab(x.split(",")[0]);Dc=Ab(I.split(",")[0]);d.color={FCcolor:{color:xc+","+xc+","+Dc+","+Dc,alpha:"100,100,100,100",angle:90,ratio:"0,50,0,50"}};sc=this.isBar;$=(gc=/3d$/.test(e.chart.defaultSeriesType))?c.showplotborder?$:"0":$;B=gc?h(c.plotbordercolor,"#FFFFFF"):B;vc=0>vc?0:vc;wc=0>wc?0:wc;for(Wb=0;Wb<f;Wb+=1){if(S=Ic&&Ic[Wb])S.value?(Qb.setArray(S.value),Jc=Qb.getQuartiles(),yb=Jc.q1,zb=Jc.q3,
Kc=Qb.getMinMax(),xb=Vb=Kc.min,wb=Kc.max,yc=Qb.getMedian(),Hb=Qb.getMean(),Jb=Qb.getMD(),Ib=Qb.getSD(),Kb=Qb.getQD(),Ub=fc=wb):(yb=k.getCleanValue(S.q1),zb=k.getCleanValue(S.q3),xb=Vb=k.getCleanValue(S.min),wb=k.getCleanValue(S.max),yc=k.getCleanValue(S.median),Ub=fc=wb,Hb=Cc=k.getCleanValue(S.mean),Jb=k.getCleanValue(S.md),Ib=k.getCleanValue(S.sd),Kb=k.getCleanValue(S.qd));if(S&&null!=yb&&null!=zb&&null!==fc){bc=!0;Cc=g(S.showmean,Zb);ic=g(S.showmd,$b);jc=g(S.showsd,ac);Mc=g(S.showqd,dc);Tb=l.oriCatTmp[Wb];
gb=this.getPointStub(e,c,a,S,wb,zb,yc,yb,xb,Hb,Jb,Ib,Kb,Tb);Wa=gb.toolText;Cc?(Nc=1,kb=g(S.meaniconalpha,Za),Wa=C(F(h(S.meantooltext,a.meantooltext,c.meantooltext))),Wa=void 0!==Wa?this.getTooltext(Wa,e,c,a,S,wb,xb,yb,zb,Ca,Ib,Kb,Jb,Hb,Tb):"<b>Mean"+oc+"</b>"+k.dataLabels(Hb),Ma.push({y:Hb,toolText:Wa,link:gb.link,marker:{enabled:!0,fillColor:y(h(S.meaniconcolor,Ua),kb),lineColor:y(h(S.meaniconbordercolor,Xa),kb),radius:g(S.meaniconradius,Va),symbol:ga(g(S.meaniconsides,Ta),"spoke"==h(S.meaniconshape,
Sa))}})):Ma.push({y:null});ic?(Oc=1,kb=g(S.mdiconalpha,sb),Wa=C(F(h(S.mdtooltext,a.mdtooltext,c.mdtooltext))),Wa=void 0!==Wa?this.getTooltext(Wa,e,c,a,S,wb,xb,yb,zb,Ca,Ib,Kb,Jb,Hb,Tb):"<b>MD"+oc+"</b>"+k.dataLabels(Jb),Na.push({y:Jb,toolText:Wa,link:gb.link,marker:{enabled:!0,fillColor:y(h(S.mdiconcolor,ib),kb),lineColor:y(h(S.mdiconbordercolor,db),kb),radius:g(S.mdiconradius,hb),symbol:ga(g(S.mdiconsides,jb),"spoke"==h(S.mdiconshape,fb))}})):Na.push({y:null});jc?(Pc=1,kb=g(S.sdiconalpha,eb),Wa=C(F(h(S.sdtooltext,
a.sdtooltext,c.sdtooltext))),Wa=void 0!==Wa?this.getTooltext(Wa,e,c,a,S,wb,xb,yb,zb,Ca,Ib,Kb,Jb,Hb,Tb):"<b>SD"+oc+"</b>"+k.dataLabels(Ib),Oa.push({y:Ib,toolText:Wa,link:gb.link,marker:{enabled:!0,fillColor:y(h(S.sdiconcolor,ab),kb),lineColor:y(h(S.sdiconbordercolor,db),kb),radius:g(S.sdiconradius,bb),symbol:ga(g(S.sdiconsides,cb),"spoke"==h(S.sdiconshape,$a))}})):Oa.push({y:null});Mc?(Qc=1,kb=g(S.qdiconalpha,Gb),Wa=C(F(h(S.qdtooltext,a.qdtooltext,c.qdtooltext))),Wa=void 0!==Wa?this.getTooltext(Wa,
e,c,a,S,wb,xb,yb,zb,Ca,Ib,Kb,Jb,Hb,Tb):"<b>QD"+oc+"</b>"+k.dataLabels(Kb),Qa.push({y:Kb,toolText:Wa,link:gb.link,marker:{enabled:!0,fillColor:y(h(S.qdiconcolor,nb),kb),lineColor:y(h(S.qdiconbordercolor,ub),kb),radius:g(S.qdiconradius,ob),symbol:ga(g(S.qdiconsides,tb),"spoke"==h(S.qdiconshape,mb))}})):Qa.push({y:null});if(Nb=S.outliers){Nb=Nb.replace(/\s/g,A).split(kc);for(ec=Nb.length;ec--;)Nb[ec]=k.getCleanValue(Nb[ec]);Nb.sort(Ac);ec=Nb.length;for(pc=0;pc<ec;pc+=1)if(Rb=Nb[pc],Yb&&(Ub=Ya(fc,Rb),
Vb=L(xb,Rb)),kb=g(S.outliericonalpha,Pb),Rb>fc||Rb<xb)Wa=C(F(h(S.outlierstooltext,a.outlierstooltext,c.outlierstooltext))),Wa=void 0!==Wa?this.getTooltext(Wa,e,c,a,S,wb,xb,yb,zb,Ca,Ib,Kb,Jb,Hb,Tb,Rb):"<b>Outlier"+oc+"</b>"+k.dataLabels(Rb),Ra.push({y:Rb,toolText:Wa,x:Wb,link:gb.link,marker:{enabled:!0,fillColor:y(h(S.outliericoncolor,Fb),kb),lineColor:y(h(S.outliericonbordercolor,Mb),kb),radius:g(S.outliericonradius,Cb),symbol:ga(g(S.outliericonsides,Db),"spoke"==h(S.outliericonshape,Bb))}})}Yb||
(Bc=Ub-Vb,Ub+=Bc*vc,Vb-=Bc*wc);Ec=h(S.upperboxcolor,x)+z;Fc=h(S.lowerboxcolor,I)+z;qc=h(S.upperboxalpha,ka,c.upperboxalpha,c.plotfillalpha,"100")+A;Gc=h(S.lowerboxalpha,za,c.lowerboxalpha,c.plotfillalpha,"100")+A;rc=h(S.ratio,a.ratio,c.plotfillratio);Xb=h(360-c.plotfillangle,90);0>fc&&(Xb=360-Xb);Sc={opacity:qc/100};tc=L(qc,$)+A;Rc=cc(Ec,qc,rc,Xb,n,B,tc,sc,gc);Hc=cc(Fc,Gc,rc,Xb,n,B,tc,sc,gc);Ea={value:zb,color:y(h(S.upperquartilecolor,Y),g(S.upperquartilealpha,fa)),borderWidth:g(S.upperquartilethickness,
sa),dashStyle:g(S.upperquartiledashed,la)?Ha(h(S.upperquartiledashlen,ua),h(S.upperquartiledashgap,Aa),g(S.upperquartilethickness,sa)):"none",displayValue:gb.displayValueQ3};Ia={value:yb,color:y(h(S.lowerquartilecolor,W),g(S.lowerquartilealpha,ea)),borderWidth:g(S.lowerquartilethickness,pa),dashStyle:g(S.lowerquartiledashed,vb)?Ha(h(S.lowerquartiledashlen,Zc),h(S.lowerquartiledashgap,Ba),g(S.lowerquartilethickness,pa)):"none",displayValue:gb.displayValueQ1};Ja={color:y(h(S.upperboxbordercolor,R),
g(S.upperboxborderalpha,Lc)),borderWidth:g(S.upperboxborderthickness,ma),dashStyle:g(S.upperboxborderdashed,qa)?Ha(h(S.upperboxborderdashlen,xa),h(S.upperboxborderdashgap,Da),g(S.upperboxborderthickness,ma)):"none"};La={color:y(h(S.lowerboxbordercolor,T),g(S.lowerboxborderalpha,ja)),borderWidth:g(S.lowerboxborderthickness,wa),dashStyle:g(S.lowerboxborderdashed,lb)?Ha(h(S.lowerboxborderdashlen,ra),h(S.lowerboxborderdashgap,Fa),g(S.lowerboxborderthickness,wa)):"none"};Ca={value:yc,color:y(h(S.mediancolor,
X),g(S.medianalpha,na)),borderWidth:g(S.medianthickness,ha),dashStyle:g(S.mediandashed,pb)?Ha(h(S.mediandashlen,ya),h(S.mediandashgap,Ka),g(S.medianthickness,ha)):"none",displayValue:gb.displayValueMid};zc=[];ba(wb)&&zc.push({errorValue:wb-zb,toolText:gb.toolText,link:gb.link,errorBarColor:y(h(S.upperwhiskercolor,ta),g(S.upperwhiskeralpha,O)),errorBarThickness:g(S.upperwhiskerthickness,U),dashStyle:g(S.upperwhiskerdashed,J)?Ha(h(S.upperwhiskerdashlen,V),h(S.upperwhiskerdashgap,P),g(S.upperwhiskerthickness,
U)):"none",displayValue:gb.displayValueMax,shadow:{opacity:r?g(S.upperwhiskeralpha,O)/250:0}});ba(xb)&&zc.push({errorValue:-(yb-xb),errorStartValue:yb,toolText:gb.toolText,link:gb.link,errorBarColor:y(h(S.lowerwhiskercolor,G),g(S.lowerwhiskeralpha,Q)),errorBarThickness:g(S.lowerwhiskerthickness,K),dashStyle:g(S.lowerwhiskerdashed,Z)?Ha(h(S.lowerwhiskerdashlen,N),h(S.lowerwhiskerdashgap,aa),g(S.lowerwhiskerthickness,K)):"none",displayValue:gb.displayValueMin,shadow:{opacity:r?g(S.lowerwhiskeralpha,
Q)/250:0}});qb=this.pointHoverOptions(S,a,c,{upperBoxColor:Ec,upperBoxAlpha:qc,upperBoxBorderColor:h(S.upperboxbordercolor,R),upperBoxBorderAlpha:g(S.upperboxborderalpha,Lc),upperBoxBorderThickness:Ja.borderWidth,lowerBoxColor:Fc,lowerBoxAlpha:Gc,lowerBoxBorderColor:h(S.lowerboxbordercolor,T),lowerBoxBorderAlpha:g(S.lowerboxborderalpha,ja),lowerBoxBorderThickness:La.borderWidth,upperQuartileColor:h(S.upperquartilecolor,Y),upperQuartileAlpha:g(S.upperquartilealpha,fa),upperQuartileThickness:Ea.borderWidth,
lowerQuartileColor:h(S.lowerquartilecolor,W),lowerQuartileAlpha:g(S.lowerquartilealpha,ea),lowerQuartileThickness:Ia.borderWidth,upperWhiskerColor:h(S.upperwhiskercolor,ta),upperWhiskerThickness:g(S.upperwhiskerthickness,U),upperWhiskerAlpha:g(S.upperwhiskeralpha,O),lowerWhiskerColor:h(S.lowerwhiskercolor,G),lowerWhiskerAlpha:g(S.lowerwhiskeralpha,Q),lowerWhiskerThickness:g(S.lowerwhiskerthickness,K),medianColor:h(S.mediancolor,X),medianAlpha:g(S.medianalpha,na),medianThickness:g(S.medianthickness,
ha)});qb.enabled&&(qb.upperBox.fill=da(cc(qb.upperBox.color,qb.upperBox.alpha,rc,Xb,n,B,tc,sc,gc)[0].FCcolor),delete qb.upperBox.color,delete qb.upperBox.alpha,qb.lowerBox.fill=da(cc(qb.lowerBox.color,qb.lowerBox.alpha,rc,Xb,n,B,tc,sc,gc)[0].FCcolor),delete qb.lowerBox.color,delete qb.lowerBox.alpha);d.data.push(M(gb,{y:zb,errorValue:zc,shadow:Sc,color:Rc[0],toolText:gb.toolText,lowerboxColor:Hc[0],lowerboxBorderColor:Hc[1],borderWidth:0,upperQuartile:Ea,lowerQuartile:Ia,upperBoxBorder:Ja,lowerBoxBorder:La,
median:Ca,hoverEffects:qb}));this.pointValueWatcher(e,Ub);this.pointValueWatcher(e,Vb)}else d.data.push({y:null}),Na.push({y:null}),Oa.push({y:null}),Qa.push({y:null}),Ma.push({y:null})}d.showInLegend=Sb&&(bc||!p);d.legendFillColor=y(xc,20);Tc={type:"line",name:"Mean",relatedSeries:"boxandwhisker",data:Ma,legendIndex:mc+lc,showInLegend:!!Nc&&Sb&&nc,marker:{fillColor:y(Ua,100),lineColor:y(Xa,100),radius:Va,symbol:ga(Ta,"spoke"==Sa)},color:g(c.drawmeanconnector,a.drawmeanconnector,0)?y(h(a.meanconnectorcolor,
c.meanconnectorcolor,Ua),g(a.meanconnectoralpha,c.meanconnectoralpha,100)):ca,lineWidth:g(c.drawmeanconnector,a.drawmeanconnector,0)?g(a.meanconnectorthickness,c.meanconnectorthickness,1):0,shadow:0,legendFillColor:d.legendFillColor};Uc={type:"line",name:"SD",relatedSeries:"boxandwhisker",data:Oa,legendIndex:mc+2*lc,showInLegend:!!Pc&&Sb&&nc,marker:{fillColor:y(ab,100),lineColor:y(db,100),radius:bb,symbol:ga(cb,"spoke"==$a)},color:g(c.drawsdconnector,a.drawsdconnector,0)?y(h(a.sdconnectorcolor,c.sdconnectorcolor,
ab),g(a.sdconnectoralpha,c.sdconnectoralpha,100)):ca,lineWidth:g(c.drawsdconnector,a.drawsdconnector,0)?g(a.sdconnectorthickness,c.sdconnectorthickness,1):0,shadow:0,pointStart:Eb,legendFillColor:d.legendFillColor};Vc={type:"line",name:"MD",relatedSeries:"boxandwhisker",data:Na,legendIndex:mc+3*lc,showInLegend:!!Oc&&Sb&&nc,marker:{fillColor:y(ib,100),lineColor:y(rb,100),radius:hb,symbol:ga(jb,"spoke"==fb)},color:g(c.drawmdconnector,a.drawmdconnector,0)?y(h(a.mdconnectorcolor,c.mdconnectorcolor,ib),
g(a.mdconnectoralpha,c.mdconnectoralpha,100)):ca,lineWidth:g(c.drawmdconnector,a.drawmdconnector,0)?g(a.mdconnectorthickness,c.mdconnectorthickness,1):0,shadow:0,pointStart:Eb,legendFillColor:d.legendFillColor};Wc={type:"line",name:"QD",relatedSeries:"boxandwhisker",data:Qa,legendIndex:mc+4*lc,showInLegend:!!Qc&&Sb&&nc,marker:{fillColor:y(nb,100),lineColor:y(ub,100),radius:ob,symbol:ga(tb,"spoke"==mb)},color:g(c.drawqdconnector,a.drawqdconnector,0)?y(h(a.qdconnectorcolor,c.qdconnectorcolor,nb),g(a.qdconnectoralpha,
c.qdconnectoralpha,100)):ca,lineWidth:g(c.drawqdconnector,a.drawqdconnector,0)?g(a.qdconnectorthickness,c.qdconnectorthickness,1):0,shadow:0,pointStart:Eb,legendFillColor:d.legendFillColor};Xc={type:"line",name:"Outlier",relatedSeries:"boxandwhisker",showInLegend:!(!Ra||!Ra.length)&&Sb&&nc,data:Ra,legendIndex:mc+5*lc,marker:{fillColor:y(Fb,100),lineColor:y(Mb,100),radius:Cb,symbol:ga(Db,"spoke"==Bb)},color:ca,lineWidth:0,shadow:0,pointStart:Eb,legendFillColor:d.legendFillColor};e._meanDataArr.push(Tc);
e._sdDataArr.push(Uc);e._mdDataArr.push(Vc);e._qdDataArr.push(Wc);e._outliers.push(Xc);return d},series:function(b,d,a){var c=d.series,e=d._meanDataArr=[],f=d._sdDataArr=[],g=d._mdDataArr=[],m=d._qdDataArr=[],v=d._outliers=[],l=d[oa],p=d.yAxis[0],k=2*l.plotSpacePercent,n,r,t,z,D;l.dataSeparator=h(d.chart.dataseparator,Ba);l.bwCalc=new Db(b.chart.calculationmethod,l.numberFormatter,l.dataSeparator);s.multiseries.series.call(this,b,d,a);a=c&&c.length;b=Ya(e.length,f.length,g.length,m.length,v.length,
a);k=(1-k)/a;l=p.min;D=p.max;d.series=c.concat(e,f,g,m,v);for(p=0;p<a;p+=1)for(r=c[p],n=p,!r.relatedSeries&&(r.relatedSeries=[]),t=0;5>t;t+=1)n+=a,r.relatedSeries.push(n);for(t=p=0;t<b;t+=1,p+=1)if(c=(-.5*(a-1)+p)*k,e[p]&&(e[p].pointStart=c),f[p]&&(f[p].pointStart=c),m[p]&&(m[p].pointStart=c),g[p]&&(g[p].pointStart=c),v[p]&&(v[p].pointStart=c),n=(c=v[p])&&c.data)for(c=0;c<n.length;c+=1)r=n[c],z=r.y,r.y=z>D||z<l?null:z;delete d._meanDataArr;delete d._sdDataArr;delete d._mdDataArr;delete d._qdDataArr;
delete d._outliers},getTooltext:function(b,d,a,c,e,f,g,m,h,l,p,k,n,r,t,z){d=this.numberFormatter;return bb(b,[1,2,3,4,5,6,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],{maxValue:f,maxDataValue:d.dataLabels(f),minValue:g,minDataValue:d.dataLabels(g),Q1:d.dataLabels(m),unformattedQ1:m,Q3:d.dataLabels(h),unformattedQ3:h,median:d.dataLabels(l),unformattedMedian:l,SD:d.dataLabels(p),unformattedSD:p,QD:d.dataLabels(k),unformattedQD:k,MD:d.dataLabels(n),unformattedMD:n,mean:d.dataLabels(r),unformattedMean:r,
label:F(t),yaxisName:F(a.yaxisname),xaxisName:F(a.xaxisname),formattedValue:d.dataLabels(z),value:z},{value:z},a,c)},pointHoverOptions:function(b,d,a,c){var e=g(b.showhovereffect,d.showhovereffect,a.plothovereffect,a.showhovereffect),f=g(b.highlightonhover,d.highlightonhover,d.highlightplotonhover,a.highlightonhover,a.highlightplotonhover,e),q={},m={},v={},l={},p={},k={},n={},r={},t={},z;q.color=h(b.upperboxhovercolor,d.upperboxhovercolor,a.plotfillhovercolor,a.upperboxhovercolor);q.alpha=h(b.upperboxhoveralpha,
d.upperboxhoveralpha,a.upperboxhoveralpha);n.color=h(b.upperboxborderhovercolor,d.upperboxborderhovercolor,a.upperboxborderhovercolor);n.alpha=h(b.upperboxborderhoveralpha,d.upperboxborderhoveralpha,a.upperboxborderhoveralpha);n.thickness=g(b.upperboxborderhoverthickness,d.upperboxborderhoverthickness,a.upperboxborderhoverthickness);m.color=h(b.lowerboxhovercolor,d.lowerboxhovercolor,a.plotfillhovercolor,a.lowerboxhovercolor);m.alpha=h(b.lowerboxhoveralpha,d.lowerboxhoveralpha,a.lowerboxhoveralpha);
r.color=h(b.lowerboxborderhovercolor,d.lowerboxborderhovercolor,a.lowerboxborderhovercolor);r.alpha=h(b.lowerboxborderhoveralpha,d.lowerboxborderhoveralpha,a.lowerboxborderhoveralpha);r.thickness=g(b.lowerboxborderhoverthickness,d.lowerboxborderhoverthickness,a.lowerboxborderhoverthickness);p.color=h(b.upperwhiskerhovercolor,d.upperwhiskerhovercolor,a.upperwhiskerhovercolor);p.alpha=h(b.upperwhiskerhoveralpha,d.upperwhiskerhoveralpha,a.upperwhiskerhoveralpha);p.thickness=h(b.upperwhiskerhoverthickness,
d.upperwhiskerhoverthickness,a.upperwhiskerhoverthickness);k.color=h(b.lowerwhiskerhovercolor,d.lowerwhiskerhovercolor,a.lowerwhiskerhovercolor);k.alpha=h(b.lowerwhiskerhoveralpha,d.lowerwhiskerhoveralpha,a.lowerwhiskerhoveralpha);k.thickness=h(b.lowerwhiskerhoverthickness,d.lowerwhiskerhoverthickness,a.lowerwhiskerhoverthickness);v.color=h(b.upperquartilehovercolor,d.upperquartilehovercolor,a.upperquartilehovercolor);v.alpha=h(b.upperquartilehoveralpha,d.upperquartilehoveralpha,a.upperquartilehoveralpha);
v.thickness=h(b.upperquartilehoverthickness,d.upperquartilehoverthickness,a.upperquartilehoverthickness);l.color=h(b.lowerquartilehovercolor,d.lowerquartilehovercolor,a.lowerquartilehovercolor);l.alpha=h(b.lowerquartilehoveralpha,d.lowerquartilehoveralpha,a.lowerquartilehoveralpha);l.thickness=h(b.lowerquartilehoverthickness,d.lowerquartilehoverthickness,a.lowerquartilehoverthickness);t.color=h(b.medianhovercolor,d.medianhovercolor,a.medianhovercolor);t.alpha=h(b.medianhoveralpha,d.medianhoveralpha,
a.medianhoveralpha);t.thickness=h(b.medianhoverthickness,d.medianhoverthickness,a.medianhoverthickness);b=!!h(q.color,q.alpha,n.color,n.alpha,n.thickness,m.color,m.alpha,r.color,r.thickness,r.alpha,p.color,p.alpha,p.thickness,k.color,k.alpha,k.thickness,v.color,v.alpha,v.thickness,l.color,l.alpha,l.thickness,t.color,t.alpha,t.thickness,f);void 0===e&&void 0===f&&b&&(f=0);if(void 0===e&&b||e)z=!0,q.color=h(q.color,f?Ma(c.upperBoxColor,70):c.upperBoxColor),q.alpha=h(q.alpha,c.upperBoxAlpha),m.color=
h(m.color,f?Ma(c.lowerBoxColor,70):c.lowerBoxColor),m.alpha=h(m.alpha,c.lowerBoxAlpha),n.color=h(n.color,c.upperBoxBorderColor),n.alpha=g(n.alpha,c.upperBoxBorderAlpha),n.stroke=y(n.color,n.alpha),n["stroke-width"]=g(n.thickness,c.upperBoxBorderThickness),delete n.color,delete n.alpha,delete n.thickness,r.color=h(r.color,c.lowerBoxBorderColor),r.alpha=h(r.alpha,c.lowerBoxBorderAlpha),r.stroke=y(r.color,r.alpha),r["stroke-width"]=g(r.thickness,c.lowerBoxBorderThickness),delete r.color,delete r.alpha,
delete r.thickness,p.color=h(p.color,c.upperWhiskerColor,70),p.alpha=h(p.alpha,c.upperWhiskerAlpha),p.stroke=y(p.color,p.alpha),p["stroke-width"]=h(p.thickness,c.upperWhiskerThickness),delete p.color,delete p.alpha,delete p.thickness,k.color=h(k.color,c.lowerWhiskerColor,70),k.alpha=h(k.alpha,c.lowerWhiskerAlpha),k.stroke=y(k.color,k.alpha),k["stroke-width"]=h(k.thickness,c.lowerWhiskerThickness),delete k.color,delete k.alpha,delete k.thickness,v.color=h(v.color,c.upperQuartileColor,70),v.alpha=h(v.alpha,
c.upperQuartileAlpha),v.stroke=y(v.color,v.alpha),v["stroke-width"]=h(v.thickness,c.upperQuartileThickness),delete v.color,delete v.alpha,delete v.thickness,l.color=h(l.color,c.lowerQuartileColor,70),l.alpha=h(l.alpha,c.lowerQuartileAlpha),l.stroke=y(l.color,l.alpha),l["stroke-width"]=h(l.thickness,c.lowerQuartileThickness),delete l.color,delete l.alpha,delete l.thickness,t.color=h(t.color,c.medianColor,70),t.alpha=h(t.alpha,c.medianAlpha),t.stroke=y(t.color,t.alpha),t["stroke-width"]=h(t.thickness,
c.medianThickness),delete t.color,delete t.alpha,delete t.thickness;return{enabled:z,upperBox:q,upperBoxBorder:n,lowerBox:m,lowerBoxBorder:r,upperQuartile:v,lowerQuartile:l,upperWhisker:p,lowerWhisker:k,median:t}},getPointStub:function(b,d,a,c,e,f,q,m,v,l,p,k,n,r){var t=A,t=b[oa],z=t.tooltipSepChar,D=this.numberFormatter,w=g(c.showvalue,a.showvalues,d.showvalues,1),B={"true":D.dataLabels(e),"false":A},H={"true":D.dataLabels(f),"false":A},u={"true":D.dataLabels(q),"false":A},s={"true":D.dataLabels(m),
"false":A},D={"true":D.dataLabels(v),"false":A};t.showTooltip?(t=C(F(h(c.tooltext,a.plottooltext,t.tooltext))),t=void 0!==t?this.getTooltext(t,b,d,a,c,e,v,m,f,q,k,n,p,l,r):"<b>Maximum"+z+"</b>"+B[!0]+"<br/><b>Q3"+z+"</b>"+H[!0]+"<br/><b>Median"+z+"</b>"+u[!0]+"<br/><b>Q1"+z+"</b>"+s[!0]+"<br/><b>Minimum"+z+"</b>"+D[!0]):t=A;return{toolText:t,link:h(c.link),categoryLabel:r,displayValueMax:B[!(!w||!g(c.showmaxvalue,a.showmaxvalues,d.showmaxvalues,1))],displayValueMid:u[!(!w||!g(c.showmedianvalue,a.showmedianvalues,
d.showmedianvalues,1))],displayValueMin:D[!(!w||!g(c.showminvalue,a.showminvalues,d.showminvalues,1))],displayValueQ3:H[!(!w||!g(c.showq3value,a.showq3values,d.showq3values,0))],displayValueQ1:s[!(!w||!g(c.showq1value,a.showq1values,d.showq1values,0))]}}},s.multiseries);s("heatmap",{friendlyName:"Heatmap Chart",standaloneInit:!0,creditLabel:!1,defaultSeriesType:"heatmap",tooltipsepchar:": ",tooltipConstraint:"chart",rendererId:"heatmap",series:function(b,d,a){var c=b.chart,e=d.chart,f=d[oa],q=this.colorManager,
m=d.series,v=this.numberFormatter,l=b.rows&&b.rows.row,p=l&&l.length,k=b.columns&&b.columns.column,n=k&&k.length,r=b.dataset,t=r&&r.data,z=b.colorrange||{},D=f.mapByPercent=g(z.mapbypercent,0),w=f.mapByCategory=g(c.mapbycategory,0),z=!w&&g(z.gradient,0),B=h(c.plotfillalpha,100),H=g(c.showlabels,c.showlabel,1),s=g(c.showplotborder,1),ia=s?g(c.plotborderthickness,1):0,q=h(c.plotbordercolor,q.getColor("plotBorderColor")),s=h(c.plotborderalpha,s?95:0).toString(),q=y(q,s),s=g(c.plotborderdashed,0),x=g(c.plotborderdashlen,
5),t=g(c.plotborderdashgap,4),x=s?Ha(x,t,ia):"none",E=u.colorRange,va=0,I=0,ka=0,za=0,ta=f.rowIdObj={},G=f.columnIdObj={},O=[],s=[],L=0,U=[],K,J,Z,V,N,P,aa,Y,W;e.showHoverEffect=g(c.showhovereffect,1);z&&(d.legend.type="gradient");d.legend.enabled=Boolean(g(c.showlegend,1));for(e=0;e<p;e+=1)J=l[e],K=J.id,ba(K)&&K!==A&&(va+=1,ta[K.toLowerCase()]={index:va,label:g(J.showlabel,c.showyaxislabels,c.showyaxisnames,H)?h(J.label,J.name,K):A});for(e=0;e<n;e+=1)Z=k[e],l=Z.id,ba(l)&&l!==A&&(G[l.toLowerCase()]=
{index:I,label:g(Z.showlabel,c.showxaxislabels,c.showxaxisnames,H)?h(Z.label,Z.name,l):A},I+=1);aa=0;for(Y=r&&r.length;aa<Y;aa+=1)for(t=r[aa]&&r[aa].data,e=0,W=t&&t.length;e<W;e+=1)if(k=t[e],P=v.getCleanValue(k.value),null!==P||w)K=C(k.rowid,k.rowids),J=C(K,A).toLowerCase(),l=C(k.columnid,k.columnids),Z=C(l,A).toLowerCase(),O.push(P),ba(N)||ba(V)||!ba(P)||(V=N=P),N>P&&(N=P),V<P&&(V=P),!ba(J)||ba(ta[J])||p||(ka+=1,ta[J]={index:ka,label:K}),!ba(Z)||ba(G[Z])||n||(G[Z]={index:za,label:l},za+=1),J=ta[J],
Z=G[Z],J&&Z&&(ba(U[J.index])||(U[J.index]=[]),U[J.index][Z.index]?s[U[J.index][Z.index]-1]={rowId:K,columnId:l,categoryId:h(k.colorrangelabel,k.categoryid,k.categoryname,k.category),tlLabel:F(h(k.tllabel,k.ltlabel)),trLabel:F(h(k.trlabel,k.rtlabel)),blLabel:F(h(k.bllabel,k.lblabel)),brLabel:F(h(k.brlabel,k.rblabel)),rowLabel:J.label,columnLabel:Z.label,setColor:k.color,setAlpha:h(k.alpha,B),setShowLabel:g(k.showlabel,k.showname,H),colorRangeLabel:k.colorrangelabel,displayValue:k.displayvalue,tooltext:k.tooltext,
showvalue:k.showvalue,link:k.link,hoverColor:h(k.hovercolor,c.hovercolor,c.plotfillhovercolor),hoverAlpha:g(k.hoveralpha,c.hoveralpha,c.plotfillhoveralpha),index:L,value:P,y:J.index,x:Z.index,_value:k.value,_cleanValue:P}:(L+=1,s.push({rowId:K,columnId:l,categoryId:h(k.colorrangelabel,k.categoryid,k.categoryname,k.category),tlLabel:F(h(k.tllabel,k.ltlabel)),trLabel:F(h(k.trlabel,k.rtlabel)),blLabel:F(h(k.bllabel,k.lblabel)),brLabel:F(h(k.brlabel,k.rblabel)),rowLabel:J.label,columnLabel:Z.label,setColor:k.color&&
k.color.replace(mb,Ra),setAlpha:h(k.alpha,B),setShowLabel:g(k.showlabel,k.showname,H),colorRangeLabel:k.colorrangelabel,displayValue:k.displayvalue,tooltext:k.tooltext,showvalue:k.showvalue,link:k.link,hoverColor:h(k.hovercolor,c.hovercolor,c.plotfillhovercolor),hoverAlpha:g(k.hoveralpha,c.hoveralpha,c.plotfillhoveralpha),index:L,value:P,y:J.index,x:Z.index,_value:k.value,_cleanValue:P}),U[J.index][Z.index]=L));if(s.length){f.rowCount=va=Ya(va,ka);f.columnCount=Ya(I,za);for(e in ta)ta[e].index=va-
ta[e].index+1;f.minHeatValue=N;f.maxHeatValue=V;p=V-N;D=D&&!w;d.colorRange=new E({colorRange:b.colorrange,dataMin:N,dataMax:V,sortLegend:g(c.autoorderlegendicon,c.autoorderlegendicon,0),mapByCategory:w,defaultColor:"cccccc",numberFormatter:v});if(z)m.push({data:[],hoverEffects:this.parseSeriesHoverOptions(b,d,r,a),borderWidth:ia,borderColor:q,dashStyle:x});else for(v=(c=d.colorRange.colorArr)&&c.length,e=0;e<v;e+=1)V=c[e],ba(V.code)&&m.push({data:[],hoverEffects:this.parseSeriesHoverOptions(b,d,r,
a),name:h(V.label,V.name),borderWidth:ia,borderColor:q,color:Ab(V.code),dashStyle:x});m.length||m.push({data:[],showInLegend:!1});for(e=0;e<s.length;e+=1)k=s[e],D&&(k.value=sa((k.value-N)/p*1E4)/100),a=d.colorRange.getColorObj(w?k.categoryId:k.value),a.outOfRange||(k.y=f.rowCount-k.y+1,k.color=y(h(k.setColor,a.code),h(k.setAlpha,B)),k.hoverColor=y(h(k.hoverColor,k.setColor,a.code),g(k.hoverAlpha,25)),k=M(k,this.getPointStub(k,k.value,A,d,b)),z?m[0].data.push(k):m[a.seriesIndex]&&m[a.seriesIndex].data.push(k))}else d.series=
[];this.configureAxis(d,b)},getPointStub:function(b,d,a,c,e){a=c[oa];var f=e.chart,q=a.tooltipSepChar,m=a.mapByCategory;e=a.mapByPercent&&!m;var v=this.numberFormatter,l=b._cleanValue;c=v.percentValue(d);d=null===l?d:v.dataLabels(l);var p=C(F(h(b.tooltext,a.tooltext))),v=C(F(b.displayValue)),k=m?v:h(v,d),n=g(b.showvalue,a.showValues),r=C(f.tltype,A),t=C(f.trtype,A),z=C(f.bltype,A),D=C(f.brtype,A),m=b.tlLabel,l=b.trLabel,w=b.blLabel,B=b.brLabel,H;r!==A&&(r="<b>"+r+q+"</b>");t!==A&&(t="<b>"+t+q+"</b>");
z!==A&&(z="<b>"+z+q+"</b>");D!==A&&(D="<b>"+D+q+"</b>");a=a.showTooltip?void 0!==p?bb(p,[1,2,5,6,7,14,93,94,95,96,97,98,112,113,114,115,116,117],{formattedValue:d,percentValue:e?c:A,yaxisName:F(f.yaxisname),xaxisName:F(f.xaxisname)},{value:b._value,displayvalue:b.displayValue},f,b):k===A?!1:(e?"<b>Value"+q+"</b>"+d+"<br/><b>Percentage"+q+"</b>"+c:k)+(b.tlLabel!==A?"<br/>"+(r+b.tlLabel):A)+(b.trLabel!==A?"<br/>"+t+b.trLabel:A)+(b.blLabel!==A?"<br/>"+z+b.blLabel:A)+(b.brLabel!==A?"<br/>"+D+b.brLabel:
A):A;n?H=void 0!==v?v:e?c:d:m=l=w=B=H=A;b=h(b.link);return{displayValue:H,toolText:a,link:b,tlLabel:m,trLabel:l,blLabel:w,brLabel:B}},configureAxis:function(b,d){var a=b[oa],c=d.chart,e=b.yAxis[0],f=b.xAxis,q=a.rowCount,m=a.columnCount,v=a.axisGridManager,l=a.rowIdObj,p=a.columnIdObj,k=this.colorManager,n=y(h(c.vdivlinecolor,c.divlinecolor,k.getColor("divLineColor")),g(c.vdivlinealpha,c.divlinealpha,k.getColor("divLineAlpha"))),r=g(c.vdivlinethickness,c.divlinethickness,1),t=g(c.vdivlinedashed,c.vdivlineisdashed,
c.divlinedashed,c.divlineisdashed,0)?Ha(g(c.vdivlinedashlen,c.divlinedashlen,4),g(c.vdivlinedashgap,c.divlinedashgap,2),r):"none",z=y(h(c.hdivlinecolor,c.divlinecolor,k.getColor("divLineColor")),g(c.hdivlinealpha,c.divlinealpha,k.getColor("divLineAlpha"))),D=g(c.hdivlinethickness,c.divlinethickness,1),w=g(c.hdivlinedashed,c.hdivlineisdashed,c.divlinedashed,c.divlineisdashed,0)?Ha(g(c.hdivlinedashlen,c.divlinedashlen,4),g(c.hdivlinedashgap,c.divlinedashgap,2),r):"none",B,H;e.min=0;e.max=q;for(H in l)B=
l[H],k=B.index,B=B.label,v.addAxisGridLine(e,k+-.5,B,.1,void 0,ca,1),k<q&&e.plotBands.push({isTrend:!0,color:z,value:k,width:D,dashStyle:w,zIndex:3});e.labels.enabled=!1;e.gridLineWidth=0;e.alternateGridColor=ca;e.title.text=F(c.yaxisname);f.min=-.5;f.max=e=m+-.5;f.opposite=g(c.placexaxislabelsontop,0);a.x.catCount=m;for(H in p)a=p[H],k=a.index,B=a.label,v.addXaxisCat(f,k,1,B,a,{},c),k-=-.5,k<e&&f.plotBands.push({isTrend:!0,color:n,value:k,width:r,dashStyle:t,zIndex:3});f.labels.enabled=!1;f.gridLineWidth=
0;f.alternateGridColor=ca;f.title.text=F(c.xaxisname)},xAxisMinMaxSetter:function(){},placeLegendBlockRight:function(){return"gradient"===arguments[0].legend.type?u.placeGLegendBlockRight?u.placeGLegendBlockRight.apply(this,arguments):0:u.placeLegendBlockRight.apply(this,arguments)},placeLegendBlockBottom:function(){return"gradient"===arguments[0].legend.type?u.placeGLegendBlockBottom?u.placeGLegendBlockBottom.apply(this,arguments):0:u.placeLegendBlockBottom.apply(this,arguments)}},s.column2dbase);
s("renderer.multiaxisline",{legendClick:function(b,d,a){var c=this.options.series,e=this.yAxis[c[b.index].yAxis],f=e.axisData._relatedSeries,g=f.length,m=!1;s["renderer.cartesian"].legendClick.call(this,b,d,a);if(!a){for(;g--&&!(m=c[f[g]].visible););e.checkBox.element.checked=m}}},s["renderer.cartesian"]);s("renderer.candlestick",{drawPlotCandlestickbar:function(b,d){var a=b.data,c=a.length,e=b.items,f=b.graphics=[],q=this.paper,m=this.layers,h=this.definition.chart,l=this.options.plotOptions.series,
p=this.xAxis[d.xAxis||0],k=this.yAxis[d.yAxis||0],n=d.numColumns||1,r=d.columnPosition||0,t=!1===d.visible?"hidden":"visible",z=p.getAxisPosition(0),z=p.getAxisPosition(1)-z,D=l.groupPadding,w=l.maxColWidth,h=(1-.01*(h&&h.plotspacepercent))*z||L(z*(1-2*D),w*n),n=h/n*r-h/2,B,H,s,u,x,D=m.dataset=m.dataset||q.group("dataset-orphan");D.column=D.column||q.group("columns",D);for(m=0;m<c;m+=1){r=a[m];z=r.y;B=null;if(null===z){if(w=e[m])B=w.graphic,B.attr({height:0})}else w=g(r.x,m),h=r.link,w=p.getAxisPosition(w),
B=r.previousY,H=k.getAxisPosition(B),B=k.getAxisPosition(z),s=k.getAxisPosition(r.high),u=k.getAxisPosition(r.low),Q(B-H),x=n,H=["M",w,u,"L",w,s,"M",w,B,"L",w+x,B,"M",w,H,"L",w-x,H],(w=e[m])||(w=e[m]={index:m,value:z,graphic:q.path(H,D),dataLabel:null,tracker:null}),B=w.graphic,B.attr({path:H,fill:da(r.color),stroke:da(r.borderColor),"stroke-width":r.borderWidth,"stroke-dasharray":r.dashStyle,"stroke-linecap":"round","stroke-linejoin":"round","shape-rendering":"crisp",cursor:h?"pointer":"",visibility:t}).shadow(l.shadow||
r.shadow),this.drawTracker&&this.drawTracker.call(this,b,d,m);B&&f.push(B);this.drawTracker&&this.drawTracker.call(this,b,d,m)}b.visible=!1!==d.visible;return b},drawCanvas:function(){s["renderer.cartesian"].drawCanvas.call(this,arguments);if(this.options.subCharts&&this.options.subCharts[0]){var b=this.options,b=(b.subCharts&&b.subCharts[0]).chart||{},d=this.paper,a=this.elements,c=a.volumeCanvas,e=b.marginTop+b.top,f=b.left=b.marginLeft,q=b.width-b.marginLeft-b.marginRight,m=b.height-b.marginBottom,
h=g(b.plotBorderRadius,0),l=b.plotBorderWidth,p=b.plotBackgroundColor,k=.5*l,n=b.plotBorderColor,r=this.layers.canvas;c||(a.volumeCanvas=d.rect(f-k,e-k-1,q+l,m+l,h,r).attr({fill:da(p),"stroke-width":l,stroke:n,"stroke-linejoin":2<l?"round":"miter","shape-rendering":"crisp"}).shadow(b.plotShadow).crisp())}},drawTracker:function(b,d,a){var c=this,e=c.paper,f=c.xAxis[0],q=b.data[a],m=c.yAxis[0].getAxisPosition(q.y),h=f.getAxisPosition(g(q.x,a));b=b.items[a];a=la?40:20;var l=c.layers.tracker,p=c.definition.chart,
k=c.options.plotOptions.series,n=f.getAxisPosition(0),f=f.getAxisPosition(1)-n,n=k.groupPadding,k=k.maxColWidth,r=((1-.01*(p&&p.plotspacepercent))*f||L(f*(1-2*n),1*k))/1,t=.5*-r,p=c.elements,f=p.canvas.getBBox(),k=p.volumeCanvas&&p.volumeCanvas.getBBox(),n=p.rollOverBand,z=b&&b.tracker,r={"stroke-width":r,ishot:!0,stroke:da(c.options.chart.rollOverBandColor),fill:da(c.options.chart.rollOverBandColor),visibility:"hidden"};k&&z&&!d.doNotUseBand&&(z||(z=b.tracker=e.circle(h,m,a,l).attr({"stroke-width":0,
fill:ua})),z.data("x",h),q.toolText&&z.tooltip(q.toolText),n||(n=p.rollOverBand=e.path(["M",0,f.y,"L",0,f.y2,"M",0,k.y,"L",0,k.y2]).attr(r),c.layers.dataset.appendChild(n),n.toBack()),z.mouseover(function(){c.rollOver(c,this,t)}).mouseout(function(){c.rollOut(c)}))},rollOver:function(b,d){b.elements.rollOverBand.transform("t"+d.data("x")+",0").show()},rollOut:function(b){b.elements.rollOverBand.hide()}},s["renderer.cartesian"]);s("renderer.spline",{getSplinePath:function(b,d,a){var c=function(a,b,
c,d){b=(d-b)/uc((c-a)*(c-a)+(d-b)*(d-b));b=Q(.5*b);return a*b+c*(1-b)},e=function(a,b,c,d){var e=a.length,f=a[e-1],g=f.length,k=f[0],f=f[g-2];3>g||("R"!==k&&"C"!==k||3!==g||(a[e-1][0]="L"),b&&a.push(["L",f,d,c,d,"Z"]))},f=/area/ig.test(this.logic.defaultSeriesType),g=this.options.chart.minimizeTendency,m=[null],h=[],l=[],p=d.max,k=d.min;d=d.getAxisPosition(0<p&&0<k?k:0>p&&0>k?p:0);var n,r,t,z,D,w,B,H,s,u,x,E,A,I,y;I=0;for(y=b.length;I<y;I+=1)if(H=b[I],t=b[I-1]||{},z=b[I+1]||{},k=H.x,p=H.y,n=t.x,t=
t.y,D=z.x,z=z.y,w=H.lastYPos,B=H.lastXPos,u=h.length,H=l.length,g)if(null!==w)if(r=E,I===b.length-1){w=m[I-x-1];H=D=(k+n)/2;u=(H-n)*w+t;if(t>p&&u<p||t<p&&u>p)u=p,H=(u-t)/w+n;E.push(H,u,D,(p+t)/2,k,p);h.push(E);l.push(E);f&&e(h,!0,A,d);f&&e(l,!1)}else{w=m[I-x-1];if(t>p&&z>=p||t<p&&z<=p)if(s=0,D=c(n,t,k,p),z=p,1!==I-x){H=D;u=(H-n)*w+t;if(t>p&&u<p||t<p&&u>p)u=p,H=(u-t)/w+n;E.push(H,u,D,z,k,p)}else E.push((k+n)/2,(p+t)/2,D,z,k,p);else if(t===p)s=0,E.push(n,t,k,p,k,p);else if(t>p&&p>z||t<p&&p<z){s=(z-
t)/(D-n);D=c(n,t,k,p);z=(D-k)*s+p;if(t>p&&z>t||t<p&&z<t)z=t,D=(z-p)/s+k;if(1!==I-x){H=D;u=(H-n)*w+t;if(t>p&&u<p||t<p&&u>p)u=p,H=(u-t)/w+n;E.push(H,u,D,z,k,p)}else E.push((k+n)/2,(p+t)/2,D,z,k,p)}m.push(s)}else null===w&&0!==I?(r||(r=[]),"C"===r[0]&&(h.push(E),l.push(E),f&&e(h,!0,A,d),f&&e(l,!1)),h.push(["M",k,p]),l.push(["M",k,p]),A=k,E=["C"],x=I,m=[null]):(h.push(["M",k,p]),l.push(["M",k,p]),A=k,E=["C"],x=I);else null!==w?2<=u?("M"===h[u-1][0]&&h.push(["R"]),"M"===l[H-1][0]&&l.push(["R"]),u=h.length,
H=l.length,r=h[u-1],n=r.length,h[u-1].push(k),h[u-1].push(p),l[H-1].push(k),l[H-1].push(p),I===a-1&&"R"===r[0]&&(e(h,!0,A,d),e(l,!1))):(h.push(["M",B,w]),h.push(["R",k,p]),l.push(["M",B,w]),l.push(["R",k,p]),A=B):null===w&&2<=u&&(r=h[u-1],"R"===r[0]&&(e(h,!0,A,d),e(l,!1)),h.push(["M",k,p]),l.push(["M",k,p]),A=k);r=h[h.length-1];f&&r&&(n=r.length,"Z"===r[n-1]||"R"!==r[0]&&"C"!==r[0]||(e(h,!0,A,d),e(l,!1)));f||(h=g?h:l,2<=h.length&&e(h,!1));return{closedPath:h,openPath:l}},drawPlotSpline:function(b,
d){var a=this,c=[],c=[],e=a.paper,f=a.elements,h=a.options,m=h.chart,v=h.plotOptions.series,l=v.dataLabels&&v.dataLabels.style||{},p={fontFamily:l.fontFamily,fontSize:l.fontSize,lineHeight:l.lineHeight,fontWeight:l.fontWeight,fontStyle:l.fontStyle},k=b.items,n=b.graphics=b.graphics||[],r=a.xAxis[d.xAxis||0],t=a.yAxis[d.yAxis||0],z=b.data,l=[],D=[],w=!1===d.visible,B=w?"hidden":"visible",H=isNaN(+v.animation)&&v.animation.duration||1E3*v.animation,u=!1!==(h.tooltip||{}).enabled,s=a.chartWidth,x=a.chartHeight,
h=function(){ja.attr({"clip-rect":null});na.show();ba.show();T.show();Q.attr({transform:"...t"+-s+","+-x})},E,A,I=v.connectNullData,y,F,C,G,O,L,U=null,K,J=d.lineWidth,Z,V,N,P,aa,Y,W=a.layers,M=W.dataset=W.dataset||e.group("dataset-orphan"),Q=W.datalabels=W.datalabels||e.group("datalables"),R=W.tracker,m=m.anchorTrackingRadius,fa,ba,T,ja,na,X,pa,ea,W=function(c,f,g,k,h,q,m,l){return function(){var p=g.imageUrl,r=g.imageScale,t=g.imageAlpha,v=m.imageHoverAlpha,z=m.imageHoverScale,w=this.width*r*.01,
D=this.width*z*.01;aa={x:c-this.width*r*.005,y:f-this.height*r*.005,width:w,height:this.height*r*.01,alpha:t};Y={x:c-this.width*z*.005,y:f-this.height*z*.005,width:D,height:this.height*z*.01,alpha:v};v=D>w?Y:aa;k.graphic=N=e.image(p,na).attr(aa).css({opacity:.01*t}).data("alwaysInvisible",0===r).data("setRolloverProperties",m).data("setRolloverAttr",Y).data("setRolloutAttr",aa).data("anchorRadius",r).data("anchorHoverRadius",z);n.push(N);if(G||u||m)pa=k.tracker=e.rect(R).attr(v).attr({cursor:G?"pointer":
"",stroke:ua,"stroke-width":g.lineWidth,fill:ua,ishot:!0,visibility:B}).data("eventArgs",h).click(function(b){xa.call(this,a,b)}).hover(function(b){return function(c){a.hoverPlotAnchor(this,c,"DataPlotRollOver",b,a)}}(k),function(b){return function(c){a.hoverPlotAnchor(this,c,"DataPlotRollOut",b,a)}}(k)).tooltip(q);(X=a.drawPlotLineLabel(b,d,l,c,f))&&n.push(X)}},wa=function(c,e,f,g,k,h,q){return function(){(X=f.dataLabel=a.drawPlotLineLabel(b,d,q,c,e))&&n.push(X)}},ca=function(b){xa.call(this,a,b)},
ga=function(b,c){return function(d){a.hoverPlotAnchor(this,d,c,b,a)}};a.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",p);Q.insertAfter(M);Q.attr({"class":"fusioncharts-datalabels",transform:"...t"+s+","+x});H&&a.animationCompleteQueue.push({fn:h,scope:a});p=M.line||(M.line=e.group("line-connector",M));ba=e.group("connector-shadow",p);T=e.group("anchor-shadow",p);ja=e.group("connector",p);na=e.group("anchors",p);na.hide();ba.hide();T.hide();E=0;for(A=z.length;E<A;E+=1)if(y=z[E],C=
y.y,N=pa=X=null,null===C)0===I&&(U=null);else{p=k[E]={chart:a,index:E,value:C};F=g(y.x,E);G=y.link;O=y.tooltext||y.toolText;K=t.getAxisPosition(C);F=r.getAxisPosition(F);c.push({x:F,y:K,lastXPos:L,lastYPos:U});if((V=y.marker)&&V.enabled)if(L=V.radius,U=V.shadow,Z=V.symbol.split("_"),fa={index:E,link:G,value:C,displayValue:y.displayValue,categoryLabel:y.categoryLabel,toolText:y.toolText,id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible},aa=Y={},C=y.rolloverProperties,V.imageUrl)L=
new Xa.Image,L.onload=W(F,K,V,p,fa,O,C,E),L.onerror=wa(F,K,p,E),L.src=V.imageUrl;else{C&&(aa={polypath:[Z[1]||2,F,K,V.radius,V.startAngle,0],fill:da(V.fillColor),"stroke-width":V.lineWidth,stroke:da(V.lineColor)},Y={polypath:[C.sides||2,F,K,C.radius,C.startAngle,C.dip],fill:da(C.fillColor),"stroke-width":C.lineWidth,stroke:da(C.lineColor)});N=p.graphic=e.polypath(Z[1]||2,F,K,V.radius,V.startAngle,0,na).attr({fill:da(V.fillColor),"stroke-width":V.lineWidth,stroke:da(V.lineColor),cursor:G?"pointer":
"","stroke-linecap":"round","stroke-linejoin":"round",ishot:!0,visibility:0===L?"hidden":B}).data("alwaysInvisible",0===L).data("setRolloverProperties",C).data("setRolloverAttr",Y).data("setRolloutAttr",aa).data("anchorRadius",L).data("anchorHoverRadius",C&&C.radius).shadow(U||!1,T);if(G||u||C)L=Ya(L,C&&C.radius||0,m),pa=e.polypath(Z[1]||2,F,K,L,V.startAngle,0,R).attr({cursor:G?"pointer":"",stroke:ua,"stroke-width":0,ishot:!0,fill:ua,visibility:B});ea=pa||N;ea.click(ca);(pa||N).data("eventArgs",fa).hover(ga(p,
"DataPlotRollOver"),ga(p,"DataPlotRollOut")).tooltip(O)}N&&n.push(N);ea&&n.push(ea);L=F;U=K;O=y.color;Z=y.dashStyle;D.push(N);p.dataLabel=X;p.tracker=ea;V&&V.imageUrl||(X=a.drawPlotLineLabel(b,d,E,F,K));X&&n.push(X);a.drawTracker&&a.drawTracker.call(a,b,d,E)}c=a.getSplinePath(c,t).closedPath;2<=c.length&&(P=b.graphic=e.path(c,ja).attr({"stroke-dasharray":Z,"stroke-width":J,stroke:da(O),"stroke-linecap":"round","stroke-linejoin":"round",visibility:B}).shadow(v.shadow&&y.shadow,ba),l.push(P),M.shadow(v.shadow||
y.shadow));H?ja.attr({"clip-rect":f["clip-canvas-init"]}).animate({"clip-rect":f["clip-canvas"]},H,"normal",a.getAnimationCompleteFn()):(h&&h(),h=void 0);P&&n.push(P);b.visible=!w;return b},drawPlotAreaspline:function(b,d){var a=this,c=[],c=[],e=a.paper,f=a.layers,h=a.options,m=h.chart,v=a.elements,l=h.plotOptions.series,p=l.dataLabels&&l.dataLabels.style||{},k={fontFamily:p.fontFamily,fontSize:p.fontSize,lineHeight:p.lineHeight,fontWeight:p.fontWeight,fontStyle:p.fontStyle},n=a.xAxis[d.xAxis||0],
r=a.yAxis[d.yAxis||0],t=b.data,z=(p=!1===d.visible)?"hidden":"visible",D=isNaN(+l.animation)&&l.animation.duration||1E3*l.animation,w="0"===a.definition.chart.drawfullareaborder,B=!1!==(h.tooltip||{}).enabled,u,s,x,A,h=b.items,E=b.graphics=b.graphics||[],y=null,I,F=f.tracker,C=f.dataset=f.dataset||e.group("dataset-orphan"),G=f.datalabels=f.datalabels||e.group("datalabels").insertAfter(C),L=m.anchorTrackingRadius,O=a.chartWidth,M=a.chartHeight,f=function(){Z.attr({"clip-rect":null});J.show();K.show();
G.attr({transform:"...t"+-O+","+-M})},U,K,J,Z,V,N,P=[],aa,Y,W,Q,R,ba,fa,X,T,ja,P=function(c,f,g,k,h,q,m,l){return function(){var n=g.imageUrl,p=g.imageScale,r=g.imageAlpha,t=m.imageHoverAlpha,v=m.imageHoverScale,w=this.width*p*.01,D=this.width*v*.01;ba={x:c-this.width*p*.005,y:f-this.height*p*.005,width:w,height:this.height*p*.01,alpha:r};fa={x:c-this.width*v*.005,y:f-this.height*v*.005,width:D,height:this.height*v*.01,alpha:t};t=D>w?fa:ba;k.graphic=Y=e.image(n,J).attr(ba).css({opacity:.01*r}).data("alwaysInvisible",
0===p).data("setRolloverProperties",m).data("setRolloverAttr",fa).data("setRolloutAttr",ba).data("anchorRadius",p).data("anchorHoverRadius",v);E.push(Y);if(A||B||m)W=k.tracker=e.rect(F).attr(t).attr({cursor:A?"pointer":"",stroke:ua,"stroke-width":g.lineWidth,fill:ua,ishot:!0,visibility:z}).data("eventArgs",h).click(function(b){xa.call(this,a,b)}).hover(function(b){return function(c){a.hoverPlotAnchor(this,c,"DataPlotRollOver",b,a)}}(k),function(b){return function(c){a.hoverPlotAnchor(this,c,"DataPlotRollOut",
b,a)}}(k)).tooltip(q);(Q=k.dataLabel=a.drawPlotLineLabel(b,d,l,c,f))&&E.push(Q)}},na=function(c,e,f,g){return function(){(Q=f.dataLabel=a.drawPlotLineLabel(b,d,g,c,e))&&E.push(Q)}},ea=function(b){xa.call(this,a,b)},pa=function(b,c){return function(d){a.hoverPlotAnchor(this,d,c,b,a)}};Z=C.area=C.area||e.group("area",C);U=C.line||(C.line=e.group("line-connector",C));e.group("connector-shadow",U);K=e.group("anchor-shadow",U);m=e.group("area-connector",U);J=e.group("area-anchors",U);J.hide();K.hide();
a.addCSSDefinition(".fusioncharts-datalabels .fusioncharts-label",k);G.insertAfter(C);G.attr({"class":"fusioncharts-datalabels",transform:"...t"+O+","+M});D&&a.animationCompleteQueue.push({fn:f,scope:a});C=0;for(U=t.length;C<U;C+=1)if(u=t[C],x=u.y,Y=W=Q=null,null===x)0===l.connectNullData&&(y=null);else{T=h[C]={chart:a,index:C,value:x};s=g(u.x,C);A=u.link;k=u.tooltext||u.toolText;s=n.getAxisPosition(s);x=r.getAxisPosition(x);c.push({x:s,y:x,lastXPos:I,lastYPos:y});if((I=u.marker)&&I.enabled)if(ja=
{index:C,link:A,value:u.y,displayValue:u.displayValue,categoryLabel:u.categoryLabel,toolText:k,id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible},N=I.radius,X=I.shadow,aa=I.symbol.split("_"),ba=fa={},y=u.rolloverProperties,I.imageUrl)N=new Xa.Image,N.onload=P(s,x,I,T,ja,k,y,C),N.onerror=na(s,x,T,C),N.src=I.imageUrl;else{if(y=u.rolloverProperties)ba={polypath:[aa[1]||2,s,x,N,I.startAngle,0],fill:da(I.fillColor),"stroke-width":I.lineWidth,stroke:da(I.lineColor)},fa={polypath:[y.sides||
2,s,x,y.radius,y.startAngle,y.dip],fill:da(y.fillColor),"stroke-width":y.lineWidth,stroke:da(y.lineColor)};Y=T.graphic=e.polypath(aa[1]||2,s,x,N,I.startAngle,0,J).attr({fill:da(I.fillColor),"stroke-width":I.lineWidth,stroke:da(I.lineColor),"stroke-linecap":"round",cursor:A?"pointer":"",ishot:!0,visibility:0===N?"hidden":z}).data("alwaysInvisible",0===N).data("setRolloverProperties",y).data("setRolloverAttr",fa).data("setRolloutAttr",ba).data("anchorRadius",N).data("anchorHoverRadius",y&&y.radius).shadow(X||
!1,K);if(A||B||y)N=Ya(N,y&&y.radius||0,L),W=e.polypath(aa[1]||2,s,x,N,I.startAngle,0,F).attr({cursor:A?"pointer":"",stroke:ua,"stroke-width":0,ishot:!0,fill:ua,visibility:z});(W||Y).data("eventArgs",ja).click(ea).hover(pa(T,"DataPlotRollOver"),pa(T,"DataPlotRollOut")).tooltip(k)}Y&&E.push(Y);a.drawTracker&&a.drawTracker.call(a,b,d,C);T.graphic=Y;T.dataLabel=Q;T.tracker=void 0;I&&I.imageUrl||(Q=a.drawPlotLineLabel(b,d,C,s,x));Q&&E.push(Q);a.drawTracker&&a.drawTracker.call(a,b,d,C);I=s;y=x}n=a.getSplinePath(c,
r,U);c=n.closedPath;P=n.openPath;2<=c.length&&(c=e.path(c,Z).attr({fill:da(d.fillColor),"stroke-dasharray":d.dashStyle,"stroke-width":w?0:d.lineWidth,stroke:da(d.lineColor),"stroke-linecap":"round",visibility:z}).shadow(l.shadow&&u.shadow),b.graphic=c,E.push(c));D?R=Z.attr({"clip-rect":v["clip-canvas-init"]}).animate({"clip-rect":v["clip-canvas"]},D,"normal",a.getAnimationCompleteFn()):(f&&f(),f=void 0);w&&(2<=P.length&&(V=e.path(P,m).attr({stroke:da(d.lineColor),"stroke-width":d.lineWidth,"stroke-dasharray":u.dashStyle||
d.dashStyle,"stroke-linecap":"round",visibility:z}).shadow(l.shadow||u.shadow)),E.push(V),D&&m.attr({"clip-rect":v["clip-canvas-init"]}).animateWith(Z,R,{"clip-rect":v["clip-canvas"]},D,"normal"));b.visible=!p;return b}},s["renderer.cartesian"]);s("renderer.kagi",{drawPlotKagi:function(b,d){var a=this,c=a.paper,e=a.options,f=a.elements,g=b.data,m=e.plotOptions.series,v=a.xAxis[d.xAxis||0],l=a.yAxis[d.yAxis||0],p=d.canvasPadding,k=d.xShiftLength,n=b.items,r=a.logic,t=!1===d.visible?"hidden":"visible",
z=!1!==(e.tooltip||{}).enabled,D={stroke:da({color:d.rallyColor,alpha:d.rallyAlpha}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":d.rallyThickness||d.lineWidth,"stroke-dasharray":d.rallyDashed},w={stroke:da({color:d.declineColor,alpha:d.declineAlpha}),"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":d.declineThickness||d.lineWidth,"stroke-dasharray":d.declineDashed},u={"true":D["stroke-width"],"false":w["stroke-width"]},s=a.layers,x=s.dataset=s.dataset||c.group("dataset-orphan"),
y=s.datalabels=s.datalabels||c.group("datalabels").insertAfter(x),A=s.tracker,s=isNaN(+m.animation)&&m.animation.duration||1E3*m.animation,E=f["clip-canvas-init"].slice(0),f=f["clip-canvas"].slice(0),F=0,I=v.getAxisPosition(F),C=a.chartWidth,G=a.chartHeight,L=function(){ga.attr({"clip-rect":null});pa.show();wa.show();y.attr({transform:"...t"+-C+","+-G})},M=[],O=[],Q,U,K,J,Z,V,N,P,aa,Y,W,R,ba,T,fa,X,ea,ja,na=e.chart.anchorTrackingRadius,ca,pa,ga,wa,oa,ha,ma,qa,lb,pb,la;if(g.length){e=x.line||(x.line=
c.group("line-connector",x));c.group("connector-shadow",e);pa=c.group("anchor-shadow",e);ga=c.group("connector",e);wa=c.group("anchors",e);wa.hide();pa.hide();y.attr({transform:"...t"+C+","+G});s&&a.animationCompleteQueue.push({fn:L,scope:this});N=!!g[0].isRally;e=0;for(x=g.length;e<x;e+=1)n[e]={chart:a,index:e,graphic:null,line:[],dataLabel:null,tracker:null},P=g[e],aa=P.y,P.isDefined||(aa=P.plotValue),aa=h(P.plotValue,aa),P.plotY=sb(l.getAxisPosition(P.y),2),P.graphY=sb(l.getAxisPosition(aa),2),
P.plotX=I,P.isShift&&(F+=1,I=v.getAxisPosition(F)),e&&(aa=g[e-1],N=P&&P.objParams&&P.objParams.isRally,ba=P&&P.objParams&&P.objParams.lastHigh,T=P&&P.objParams&&P.objParams.lastLow,fa=P&&P.objParams&&P.objParams.isRallyInitialised,aa&&fa&&aa.isRally!==P.isRally?(P.isChanged=!0,P.ty=sb(l.getAxisPosition(N?ba:T),2)):P.isChanged=!1);v=a.canvasLeft+p;I=v+k/2;Y=g[0].plotY;N=!!g[0].isRally;l=sa(Y)+u[N]%2/2;N?M.push("M",v,l,"H",I):O.push("M",v,l,"H",I);ib(g,function(e,f){if(X=g[f+1])ja=["M",I,Y],N=e.isRally,
e.isShift&&(I+=k,Y=e.graphY,ja.push("H",I),ja[2]=sa(ja[2])+u[N]%2/2,ja=ja.toString(),N?M.push(ja):O.push(ja),ja=["M",I,Y]),X.isChanged&&(Y=X.ty,ja.push("V",Y),ja[1]=sa(ja[1])+u[N]%2/2,ja=ja.toString(),N?M.push(ja):O.push(ja),ja=["M",I,Y]),ea=X.isRally,X.graphY!==ja[2]&&(ja.push("V",X.graphY),ja[1]=sa(ja[1])+u[ea]%2/2,ja=ja.toString(),ea?M.push(ja):O.push(ja)),Y=X.graphY;W=e.plotX;R=e.plotY;J=e.marker;Q=e&&e.link;U=e&&e.toolText;if(void 0!==R&&!isNaN(R)&&e.isDefined)if(Z=J.symbol.split("_"),lb="spoke"===
Z[0]?1:0,pb=J.radius,oa=J.shadow,ca={index:f,link:Q,value:e.y,displayValue:e.displayValue,categoryLabel:e.categoryLabel,toolText:U,id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible},ha=ma={},qa=e.rolloverProperties,J.imageUrl)la=new Xa.Image,la.onload=function(e,f,g,k,h,m,q,l){return function(){var n=g.imageUrl,p=g.imageScale,r=g.imageAlpha,v=q.imageHoverAlpha,w=q.imageHoverScale,D=this.width*p*.01,u=this.width*w*.01;ha={x:e-this.width*p*.005,y:f-this.height*p*.005,width:D,height:this.height*
p*.01,alpha:r};ma={x:e-this.width*w*.005,y:f-this.height*w*.005,width:u,height:this.height*w*.01,alpha:v};v=u>D?ma:ha;k.graphic=V=c.image(n,wa).attr(ha).css({opacity:.01*r}).data("alwaysInvisible",0===p).data("setRolloverProperties",q).data("setRolloverAttr",ma).data("setRolloutAttr",ha).data("anchorRadius",p).data("anchorHoverRadius",w);if(Q||z||q)K=k.tracker=c.rect(A).attr(v).attr({cursor:Q?"pointer":"",stroke:ua,"stroke-width":g.lineWidth,fill:ua,ishot:!0,visibility:t}).data("eventArgs",h).click(function(b){xa.call(this,
a,b)}).hover(function(b){return function(c){a.hoverPlotAnchor(this,c,"DataPlotRollOver",b,a)}}(k),function(b){return function(c){a.hoverPlotAnchor(this,c,"DataPlotRollOut",b,a)}}(k)).tooltip(m);k.dataLabel=a.drawPlotKagiLabel(b,d,l,e,f)}}(W,R,J,n[f],ca,U,qa,f),la.onerror=function(c,e,f,g,k,h,m,q){return function(){g.dataLabel=a.drawPlotKagiLabel(b,d,q,c,e)}}(W,R,J,n[f],ca,U,qa,f),la.src=J.imageUrl;else{!r.multisetRealtime&&qa&&(ha={polypath:[Z[1]||2,W,R,pb,J.startAngle,lb],fill:da(J.fillColor),"stroke-width":J.lineWidth,
stroke:da(J.lineColor)},ma={polypath:[qa.sides||2,W,R,qa.radius,qa.startAngle,qa.dip],fill:da(qa.fillColor),"stroke-width":qa.lineWidth,stroke:da(qa.lineColor)});V=n[f].graphic=c.polypath(Z[1]||2,W,R,pb,J.startAngle,lb,wa).attr({fill:da(J.fillColor),"stroke-width":J.lineWidth,stroke:da(J.lineColor),"stroke-linecap":"round",cursor:Q?"pointer":"",ishot:!0,visibility:0===pb?"hidden":t}).data("alwaysInvisible",0===pb).data("setRolloverProperties",qa).data("setRolloverAttr",ma).data("setRolloutAttr",ha).data("anchorRadius",
pb).data("anchorHoverRadius",qa&&qa.radius).shadow(oa||!1,pa);if(Q||z)pb=Ya(pb,qa&&qa.radius||0,na),K=c.circle(W,R,pb,A).attr({cursor:Q?"pointer":"",stroke:ua,ishot:!0,fill:ua,"stroke-width":J.lineWidth,visibility:t}).data("eventArgs",ca).click(function(b){xa.call(this,a,b)}).hover(function(b){return function(c){a.hoverPlotAnchor(this,c,"DataPlotRollOver",b,a)}}(n[f]),function(b){return function(c){a.hoverPlotAnchor(this,c,"DataPlotRollOut",b,a)}}(n[f])).tooltip(U);n[f].tracker=K||V;J&&J.imageUrl||
(n[f].dataLabel=a.drawPlotKagiLabel(b,d,f,W,R))}});D=c.path(M,ga).attr(D).shadow(m.shadow);n[0].line.push(D);D=c.path(O,ga).attr(w).shadow(m.shadow);n[0].line.push(D);s?ga.attr({"clip-rect":E}).animate({"clip-rect":f},s,"normal",a.getAnimationCompleteFn()):(L&&L(),L=void 0)}},drawPlotKagiLabel:function(b,d,a,c,e,f){var g=this.options,h=g.chart,v=this.paper,l=this.layers,p=g.plotOptions.series.dataLabels.style,g=1===h.rotateValues?270:0,k=this.canvasHeight,n=this.canvasTop,r=this.canvasLeft,t=b.data[a],
z=b.items[a];b=(b=z.graphic)&&"image"==b.type&&.5*b.attr("height")||t.marker&&t.marker.radius-3;b=h.valuePadding+2+b;d=!1===d.visible?"hidden":"visible";a=z.dataLabel;var D={fontFamily:p.fontFamily,fontSize:p.fontSize,lineHeight:p.lineHeight,fontWeight:p.fontWeight,fontStyle:p.fontStyle},w,u,s;f=f||l.datalabels;l=t.displayValue;ba(l)&&l!==A?(a?g&&a.rotate(360-g):a=z.dataLabel=v.text(f).attr({text:l,fill:p.color,direction:h.textDirection,"text-bound":[p.backgroundColor,p.borderColor,p.borderThickness,
p.borderPadding,p.borderRadius,p.borderDash]}).css(D),a.attr({title:t.originalText||"",fill:p.color}),v=a.getBBox(),f=l=g?v.width:v.height,h=e,f=f+b+4,l=.5*l+b,g?(r=!0,t.vAlign===Na?(h-=l,r=e-n<f):t.vAlign===Ia&&(h+=l-2,w=1,r=e+f>n+k),r&&(u=1,c-=b+3+.5*v.height,h=e)):t.vAlign===Na?h-=l:t.vAlign===Ia?(h+=l,w=1):v.width>c-r?h-=l:(u=1,c-=b+3,s="end"),a.attr({x:c,y:h,"text-anchor":s,visibility:d}).data("isBelow",w).data("isMiddle",u),g&&a.attr("transform","T0,0,R"+g)):a&&a.attr({text:A});return a}},s["renderer.cartesian"]);
s("renderer.boxandwhisker",{drawPlotBoxandwhisker2d:function(b,d){var a=this,c=a.paper,e=a.options,f=e.plotOptions.series,h=a.xAxis[d.xAxis||0],m=a.yAxis[d.xAxis||0],v=isNaN(+f.animation)&&f.animation.duration||1E3*f.animation,l=a.layers,p=l.dataset=l.dataset||c.group("dataset-orphan"),k=l.datalabels=l.datalabels||c.group("datalabels"),n=d.data,r=b.items||(b.items=[]),t=!1===d.visible?"hidden":"visible",z=!1!==(e.tooltip||{}).enabled,u=d.columnPosition||0,w=a.definition.chart,s=h.getAxisPosition(0),
H=h.getAxisPosition(1)-s,x=f.groupPadding,y=f.maxColWidth,s=d.numColumns||1,H=(1-.01*(w&&w.plotspacepercent))*H||L(H*(1-2*x),y*s),w=H/s,u=u*w-H/2,s=e.chart,H=1===s.rotateValues?270:void 0,x=g(s.valuePadding,0),y=p.upperBoxGroup=p.upperBoxGroup||c.group("upperBox",p),F=p.lowerBoxGroup=p.lowerBoxGroup||c.group("lowerBox",p),E=p.medianGroup=p.medianGroup||c.group("median",p),C=b.graphics=b.graphics||[],I=r.displayValues={},G=I.upperQuartileValues=[],M=I.lowerQuartileValues=[],I=I.medianValues=[],Q=function(b){xa.call(this,
a,b)},l=l.shadows||(l.shadows=c.group("shadows",p).toBack()),e=e.plotOptions.series.dataLabels.style,R={fontFamily:e.fontFamily,fontSize:e.fontSize,lineHeight:e.lineHeight,fontWeight:e.fontWeight,fontStyle:e.fontStyle},O=function(b,c){return function(d){b.upperBox.attr(c.upperBox);b.lowerBox.attr(c.lowerBox);b.upperBoxBorder.attr(c.upperBoxBorder);b.lowerBoxBorder.attr(c.lowerBoxBorder);b.upperQuartile.attr(c.upperQuartile);b.lowerQuartile.attr(c.lowerQuartile);b.medianBorder.attr(c.median);xa.call(this,
a,d,"DataPlotRollOver")}},X=function(b,c){return function(d){b.upperBox.attr(c.upperBox);b.lowerBox.attr(c.lowerBox);b.upperBoxBorder.attr(c.upperBoxBorder);b.lowerBoxBorder.attr(c.lowerBoxBorder);b.upperQuartile.attr(c.upperQuartile);b.lowerQuartile.attr(c.lowerQuartile);b.medianBorder.attr(c.median);xa.call(this,a,d,"DataPlotRollOut")}},U,K,J,Z,V,N,P,aa,Y,W,T,ea,ca,fa,ga,ha,ja,na,oa,pa,ma,wa,la,ua,ra,qa;na=0;for(oa=n.length;na<oa;na+=1)K=n[na],J=K.y,V=K.link,N=K.tooltext||K.toolText,(U=r[na])||
(U=r[na]={index:na,value:J,upperBox:null,lowerBox:null,upperBoxBorder:null,lowerBoxBorder:null,upperQuartileBorder:null,lowerQuartileBorder:null,medianBorder:null,upperQuartileValues:null,lowerQuartileValues:null,medianValues:null,tracker:null,hot:null}),null!==J&&(m.getAxisPosition(J),J=g(K.x,na),J=h.getAxisPosition(J),u&&(J+=u),Z=f.borderRadius||0,aa=((aa=(ca=K.upperQuartile||{},ca.value))||0===aa)&&m.getAxisPosition(aa),P=((P=(fa=K.lowerQuartile||{},fa.value))||0===P)&&m.getAxisPosition(P),W=((Y=
(ja=K.median)&&ja.value)||0===Y)&&m.getAxisPosition(Y),T=W-aa,ea=P-W,ga=K.upperBoxBorder||{},ha=K.lowerBoxBorder||{},Y={index:na,link:V,maximum:K.displayValueMax,minimum:K.displayValueMin,median:Y,q3:ca.value,q1:fa.value,maxDisplayValue:K.displayValueMax,minDisplayValue:K.displayValueMin,medianDisplayValue:K.displayValueMid,q1DisplayValue:K.displayValueQ1,q3DisplayValue:K.displayValueQ3,categoryLabel:K.categoryLabel,toolText:K.toolText,id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible},
pa=sa(J)+ga.borderWidth%2*.5,ma=sa(J+w)+ga.borderWidth%2*.5,wa=sa(aa)+ca.borderWidth%2*.5,w=ma-pa,qa=K.hoverEffects.rollOut={upperBox:{fill:da(K.color.FCcolor),"stroke-width":0,"stroke-dasharray":ga.dashStyle,cursor:V?"pointer":"",ishot:!0,visibility:t},lowerBox:{fill:da(K.lowerboxColor.FCcolor),"stroke-width":0,"stroke-dasharray":ha.dashStyle,cursor:V?"pointer":A,ishot:!0,visibility:t},upperBoxBorder:{stroke:ga.color,"stroke-width":ga.borderWidth,"stroke-linecap":"round",dashstyle:ga.dashStyle,ishot:!0,
visibility:t},lowerBoxBorder:{stroke:ha.color,"stroke-width":ha.borderWidth,dashstyle:ha.dashStyle,"stroke-linecap":"round",ishot:!0,visibility:t},upperQuartile:{stroke:da(ca.color),"stroke-width":ca.borderWidth,"stroke-dasharray":ca.dashSyle,"stroke-linecap":"round",cursor:V?"pointer":A,ishot:!0,visibility:t},lowerQuartile:{stroke:da(fa.color),"stroke-width":fa.borderWidth,"stroke-dasharray":fa.dashSyle,cursor:V?"pointer":"","stroke-linecap":"round",ishot:!0,visibility:t},median:{stroke:da(ja.color),
"stroke-width":ja.borderWidth,"stroke-dasharray":ja.dashSyle,cursor:V?"pointer":"","stroke-linecap":"round",ishot:!0,visibility:t}},V=U.graphic=U.upperBox=c.rect(pa,wa,w,T,Z,y).attr(qa.upperBox).shadow(f.shadow&&K.shadow,l),T=U.upperBoxBorder=c.path(["M",pa,wa,"V",wa+T,"M",ma,wa,"V",wa+T],y).attr(qa.upperBoxBorder).shadow(f.shadow&&ga.shadow,l),ga=U.upperQuartile=c.path(["M",pa,wa,"H",pa+w],E).attr(qa.upperQuartile).shadow(f.shadow&&ca.shadow,l),pa=sa(J)+ha.borderWidth%2*.5,ma=sa(J+w)+ha.borderWidth%
2*.5,wa=sa(W+ea)+fa.borderWidth%2*.5,Z=U.lowerBox=c.rect(pa,W,w,wa-W,Z,F).attr(qa.lowerBox).shadow(f.shadow&&K.shadow,l),ha=U.lowerBoxBorder=c.path(["M",pa,W,"V",W+ea,"M",ma,W,"V",W+ea],F).attr(qa.lowerBoxBorder).shadow(f.shadow&&ha.shadow,l),wa=sa(W+ea)+fa.borderWidth%2*.5,ea=U.lowerQuartile=c.path(["M",pa,wa,"H",pa+w],E).attr(qa.lowerQuartile).shadow(f.shadow&&ca.shadow,l),wa=sa(W)+ja.borderWidth%2*.5,pa=U.medianBorder=c.path(["M",pa,wa,"H",pa+w],E).attr(qa.median),wa=b.index+"_"+na,V.click(Q).hover(O(U,
K.hoverEffects),X(U,qa)).data("groupId",wa).data("eventArgs",Y),Z.click(Q).hover(O(U,K.hoverEffects),X(U,qa)).data("groupId",wa).data("eventArgs",Y),T.click(Q).hover(O(U,K.hoverEffects),X(U,qa)).data("groupId",wa).data("eventArgs",Y),ha.click(Q).hover(O(U,K.hoverEffects),X(U,qa)).data("groupId",wa).data("eventArgs",Y),ga.click(Q).hover(O(U,K.hoverEffects),X(U,qa)).data("groupId",wa).data("eventArgs",Y),ea.click(Q).hover(O(U,K.hoverEffects),X(U,qa)).data("groupId",wa).data("eventArgs",Y),pa.click(Q).hover(O(U,
K.hoverEffects),X(U,qa)).data("groupId",wa).data("eventArgs",Y),Y=H?Ja:Ua,ba(ca.displayValue)&&ca.displayValue!==A&&(la=G[na]=c.text(k).attr({text:ca.displayValue,x:J+w/2,title:ca.originalText||"",y:aa-x,"text-anchor":H?"start":Y,"vertical-align":H?"middle":"bottom",visibility:t,direction:s.textDirection,fill:e.color,"text-bound":[e.backgroundColor,e.borderColor,e.borderThickness,e.borderPadding,e.borderRadius,e.borderDash]}).hover(O(U,K.hoverEffects),X(U,qa)).data("groupId",wa).css(R),H&&la.rotate(H,
J+w/2,aa-x)),ba(ja.displayValue)&&ja.displayValue!==A&&(ra=I[na]=c.text(k).attr({text:ja.displayValue,x:J+w/2,y:W-x,title:ja.originalText||"","text-anchor":H?"start":Y,"vertical-align":H?"middle":"bottom",visibility:t,direction:s.textDirection,fill:e.color,"text-bound":[e.backgroundColor,e.borderColor,e.borderThickness,e.borderPadding,e.borderRadius,e.borderDash]}).hover(O(U,K.hoverEffects),X(U,qa)).data("groupId",wa).css(R),H&&ra.rotate(H,J+w/2,W-x)),ba(fa.displayValue)&&fa.displayValue!==A&&(ua=
M[na]=c.text(k).attr({text:fa.displayValue,x:J+w/2,y:P+x,title:fa.originalText||"","text-anchor":H?"start":Y,"vertical-align":H?"middle":"top",visibility:t,direction:s.textDirection,fill:e.color,"text-bound":[e.backgroundColor,e.borderColor,e.borderThickness,e.borderPadding,e.borderRadius,e.borderDash]}).hover(O(U,K.hoverEffects),X(U,qa)).data("groupId",wa).css(R),H&&ua.rotate(H,J+w/2,P+x)),z&&(V.tooltip(N),Z.tooltip(N),T.tooltip(N),ha.tooltip(N),ga.tooltip(N),ea.tooltip(N),pa.tooltip(N),la&&la.tooltip(N),
ra&&ra.tooltip(N),ua&&ua.tooltip(N)),V&&C.push(V),Z&&C.push(Z),pa&&C.push(pa),T&&C.push(T),ha&&C.push(ha),ga&&C.push(ga),ea&&C.push(ea),la&&C.push(la),ra&&C.push(ra),ua&&C.push(ua));p.attr({"clip-rect":[a.canvasLeft,a.canvasTop,v?0:a.canvasWidth,a.canvasHeight]});v&&p.animate({"clip-rect":[a.canvasLeft,a.canvasTop,a.canvasWidth,a.canvasHeight]},v,"normal");b.visible=!1!==d.visible}},s["renderer.cartesian"]);s("renderer.dragnode",{drawPlotDragnode:function(b,d){var a=this,c=b.graphics=[],e={},f=a.options,
q=f.tooltip,m=f._FCconf.inCanvasStyle,v=a.paper,l=a.layers,p=b.items,k=l.dataset,n=l.connector,r=e.xAxis=a.xAxis[d.xAxis||0],t=e.yAxis=a.yAxis[d.yAxis||0],z=d.data,s=e.elements={data:[]},w=a.smartLabel,B=f.plotOptions.series.dataLabels.style,H=f.orphanStyles.connectorlabels.style,x=f.connectors,y=f.connectorsStore,C=f.pointStore||(f.pointStore=[]),E=f.invalConnectStore,G={fontFamily:B.fontFamily,fontSize:B.fontSize,lineHeight:B.lineHeight,fontWeight:B.fontWeight,fontStyle:B.fontStyle},I=function(b){C[b.from]&&
C[b.to]?y.push(new Fa(b,C,H,v,n,a)):E.push(b)},ka=function(){var b=this;b.data("fire_click_event",1);clearTimeout(b._longpressactive);b._longpressactive=setTimeout(function(){b.data("fire_click_event",0);b.data("viewMode")||a.logic.showLabelDeleteUI(a,b)},1E3)},L=function(){this.data("fire_click_event")&&(this.data("fire_click_event",0),eb.call(this))},Q=function(b){var c=this.data("fire_click_event");eb.call(this);c&&xa.call(this,a,b,"LabelClick")},R=function(b){xa.call(this,a,b,"LabelRollover")},
O=function(b){xa.call(this,a,b,"LabelRollout")},X=function(b,c,d,e,f){d=this.data("data");e=d.bBox;var g=a.canvasTop+a.canvasHeight,h=a.canvasLeft+a.canvasWidth;this.data("fire_dragend")||(xa.call(this,a,f,"LabelDragStart"),this.data("fire_dragend",1));e.x+b<a.canvasLeft&&(b=a.canvasLeft-e.x);e.x2+b>h&&(b=h-e.x2);e.y+c<a.canvasTop&&(c=a.canvasTop-e.y);e.y2+c>g&&(c=g-e.y2);this.attr({x:e.x+b,y:e.y+c});d.label.attr({x:d.ox+b,y:d.oy+c})},U=function(){var a=this.data("data"),b=this.getBBox();a.ox=a.label.attr("x");
a.oy=a.label.attr("y");a.bBox=b;this.data("fire_dragend",0)},K=function(b){var c=this.data("data"),d=c.label,e={hcJSON:{dragableLabels:[]}},f=this.data("eventArgs"),g=f.x=a.xAxis[0].getAxisPosition(d.attr("x"),1),d=f.y=a.yAxis[0].getAxisPosition(d.attr("y"),1);e.hcJSON.dragableLabels[c.labelNode.index]={y:d,x:g};M(a.logic.chartInstance.jsVars._reflowData,e,!0);this.data("fire_dragend")&&(c=dc(a.container,b),c.sourceEvent="labeldragend",u.raiseEvent("chartupdated",M(c,f),a.logic.chartInstance),xa.call(this,
a,b,"labeldragend"))},J,Z,V,N,P,aa,Y,W,T,ea,ca,fa,ga,ha,ja,na,ma,pa,oa,wa,la,sa,ra,qa;n||(n=l.connector=v.group("connectors").insertBefore(k));q&&!1!==q.enabled&&n.trackTooltip(!0);l=s.group=v.group(k);q=s.dragLabelGroup=v.group(k);w.setStyle(B);k=0;for(s=z.length;k<s;k+=1){J=z[k];N=J.marker;J._yPos=V=t.getAxisPosition(J.y);J._xPos=Z=r.getAxisPosition(J.x);aa=p[k]||(p[k]={});qa=J.hoverEffects&&J.hoverEffects.rolloverProperties;N=aa.graphic;Y=aa.image;W=aa.label;N=J.marker;if(void 0!==V&&!isNaN(V)&&
N){ca=J._config=J._config||{shapeArg:{},startConnectors:[],endConnectors:[]};fa=ca.shapeArg;ga=g(N&&N.height);ha=g(N&&N.width);ja=g(N&&N.radius);P=h(N&&N.symbol);na="rectangle"===P;T=J.id;ma=J.imageNode;pa=J.imageURL;oa=J.imageAlign;wa=J.labelAlign;la=na?ha:1.4*ja;sa=g(J.imageWidth,la);na=na?ga:1.4*ja;ra=g(J.imageHeight,na);ja={fill:da(N.fillColor),"stroke-width":N.lineWidth,r:N.radius,stroke:da(N.lineColor)};P=fa.symbol=h(N&&N.symbol,e.symbol);P=P.split("_");fa.x=Z;fa.y=V;fa.radius=N.radius;fa.width=
ha;fa.height=ga;fa.sides=P[1];"poly"===P[0]||"circle"===P[0]?N=v.polypath(P[1],Z,V,N.radius,N.startAngle,0,l).attr(ja):(ca.shapeType=kc,fa.x=Z-ha/2,fa.y=V-ga/2,fa.r=0,ja.width=ha,ja.height=ga,ja.x=Z-ha/2,ja.y=V-ga/2,qa&&J.hoverEffects.enabled&&(qa.x=Z-qa.width/2,qa.y=V-qa.height/2,delete qa.r),delete ja.r,N=v.rect(fa.x,fa.y,ha,ga,0,l).attr(ja));if(ma&&pa){ra>na&&(ra=na);sa>la&&(sa=la);switch(oa){case "middle":qa=V-ra/2;break;case "bottom":qa=na>ra?V+na/2-ra:V-ra/2;break;default:qa=na>ra?V-.5*na:V-
ra/2}ca.imageX=Z-sa/2;ca.imageY=qa;Y||(Y=v.image(l));Y.attr({src:pa,x:ca.imageX,y:qa,width:sa,height:ra})}ca=J.displayValue;if(ba(ca)||ca!==A){la=w.getSmartText(ca,la,na);ca=.5*na-.5*la.height;switch(wa){case "top":ca=-ca;break;case "bottom":break;default:ca=0}J._yAdjustment=wa=ca;V+=wa;W?W.attr({text:la.text,title:la.tooltext||"",fill:B.color,x:Z,y:V}):(W=v.text(l),W.attr({text:la.text,fill:B.color,x:Z,y:V,direction:f.chart.textDirection,"text-bound":[B.backgroundColor,B.borderColor,B.borderThickness,
B.borderPadding,B.borderRadius,B.borderDash]}).css(G))}C[T]=J;aa.index=k;aa.graphic=N;aa.label=W;aa.image=Y;T=a.drawTracker&&a.drawTracker.call(a,b,d,k,ja);N&&c.push(N);W&&c.push(W);Y&&c.push(Y);T&&c.push(T)}aa.index=k;aa.tracker=T}if(y)for(k=E.length-1;0<=k;--k)c=E[k],C[c.from]&&C[c.to]&&(E.splice(k,1),y.push(new Fa(c,C,H,v,n,a)));else for(y=f.connectorsStore=[],E=f.invalConnectStore=[],k=0;k<x.length;k+=1)ib(x[k].connector,I);if(!a.dragLabelsDrawn&&(ea=f.dragableLabels)&&0<(s=ea.length)){la=a.plotSizeX;
na=a.plotSizeY;c=parseInt(m.fontSize,10);p=m.backgroundColor;z=m.borderColor;for(k=0;k<s;k+=1)if(w=ea[k],w.index=k,G=F(h(w.text,w.label)))G=F(G),I=r.getAxisPosition(w.x||0),V=t.getAxisPosition(w.y||0,0,1,0,1),J=g(w.fontsize,c),Z=Ta(h(w.color,m.color)),l=g(w.alpha,100)/100,B=g(w.allowdrag,1),wa=.8*J,x=g(w.padding,5),Y={fontSize:J+"px",fontFamily:m.fontFamily,fill:Z,color:Z,opacity:l},Da(Y),Z=h(w.bgcolor,p),aa=h(w.bordercolor,z),J={link:w.link,text:G,x:I,y:V,allowdrag:B,sourceType:"labelnode"},Z&&(Y.backgroundColor=
Z.replace(mb,Ra),Y.backgroundOpacity=l),aa&&(Y.borderColor=aa.replace(mb,Ra),Y.borderOpacity=l),G=v.text(q).css(Y).attr({text:G,x:I,y:V,align:Ua,direction:f.chart.textDirection,"text-bound":[(w.bgcolor||"").replace(mb,Ra),(w.bordercolor||"").replace(mb,Ra),g(w.borderthickness,1),x,g(w.radius,0),g(w.dashed,0)?Ha(g(w.dashlen,5),g(w.dashgap,4),g(w.borderthickness,1)):"none"]}),I=G.getBBox(),x=v.rect(I.x-x,I.y-x,I.width+2*x,I.height+2*x,0).attr({fill:ua,ishot:!0,"stroke-width":0}).css({cursor:B?"move":
""}).mousedown(ka).mousemove(L).mouseup(Q).data("viewMode",f.chart.viewMode).hover(R,O),q.appendChild(x),x.data("data",{label:G,labelNode:w,chart:a}).data("eventArgs",J).data("link",w.link),B&&x.drag(X,U,K);a.dragLabelsDrawn=!0}return e},drawTracker:function(b,d,a,c){var e=this,f=e.paper,g=b.data[a],m=b.items[a],v=g._config,l=e.layers.tracker,p=db({},v.pointAttr),k=v.shapeArg,n=k.x,r=k.y,t=k.width,z=k.height,u=k.radius,w=e.dragStart,s=e.dragUp,H=e.dragMove,x=g.link?"pointer":g.allowDrag?"move":"",
y=m.tracker;p.fill=ua;p.stroke=ua;p.cursor=x;p.ishot=!0;y="rect"===v.shapeType?f.rect(n,r,t,z,0).attr(p):f.polypath(k.sides,n,r,u,k.startAngle).attr(p);f={index:a,link:g.link,y:g.y,x:g.x,shape:h(g._options.shape,"rect"),width:t,height:z,radius:u,sides:k.sides,label:g.displayValue,toolText:g.toolText,id:g.id,datasetIndex:b.index,datasetName:b.name,sourceType:"dataplot"};m.tracker=y.hover(function(a,b){return function(c){a.graphic.attr(b);xa.call(this,e,c,"DataPlotRollOver")}}(m,g.hoverEffects.rolloverProperties),
function(a,b){return function(c){a.graphic.attr(b);xa.call(this,e,c,"DataPlotRollOut")}}(m,c)).data("eventArgs",f).data("drag-options",{plotItems:m,dataObj:g,endConnectors:v.endConnectors,startConnectors:v.startConnectors,boundaryTop:e.canvasTop,boundaryBottom:e.canvasTop+e.canvasHeight,boundaryLeft:e.canvasLeft,boundaryRight:e.canvasLeft+e.canvasWidth,cloneGroup:e.layers.dataset,datasetIndex:b.index,pointIndex:a,dataOptions:d,cursor:x,chart:e,link:g.link}).tooltip(g.toolText);l.appendChild(y);y.drag(function(a,
b,c,d,f){H.call(this,a,b,c,d,f,e)},function(a,b,c){w.call(this,a,b,c,e)},function(a){s.call(this,a,e)});return y},dragStart:function(b,d,a,c){var e=this;b=e.paper;d=e.data("drag-options")||{};var f=d.dataObj,g=d.plotItems,h=g.cloneGroup,v=g.cloneGraphic,l=g.cloneImage,p=g.cloneLabel,k=e.getBBox(),n=la&&Oa(a)||Cb,r=a.layerX||n.layerX,t=a.layerY||n.layerY,z=u.getPosition(c.container),s=c.elements,w=s.waitElement,B=d.dataOptions,x=c.layers.tracker,y={opacity:.3};e.data("fire_click_event",1);e.data("mousedown",
1);void 0===r&&(r=(a.pageX||n.pageX)-z.left,t=(a.pageY||n.pageY)-z.top);clearTimeout(e._longpressactive);e.data("move",!0);c.options.chart.viewMode||(w||(w=s.waitElement=b.ringpath(r,t,8,11,0,0,x).attr({fill:da({alpha:"100,100",angle:120,color:"CCCCCC,FFFFFF",ratio:"30,50"}),"stroke-width":0})),r+=11,t-=21,w.attr({ringpath:[r,t,8,11,0,0]}).show().animate({ringpath:[r,t,8,11,0,6.28]},1E3),e._longpressactive=setTimeout(function(){var a=B.name!==A&&void 0!==B.name?B.name+Ba+" ":A,b=B.id,d=f._options,
g={circle:"circ",polygon:"poly",undefined:"rect"}[d.shape];s.waitElement&&s.waitElement.hide();e.data("fire_click_event",0);c.logic.showNodeUpdateUI(c,{x:{value:f.x},y:{value:f.y},draggable:{value:ea(d.allowdrag,1)},color:{value:d.color},alpha:{value:d.alpha},label:{value:ea(d.label,d.name)},tooltip:{value:d.tooltext},shape:{value:g},rectWidth:{value:d.width},rectHeight:{value:d.height},circPolyRadius:{value:d.radius},polySides:{value:d.numsides},image:{value:d.imagenode},imgWidth:{value:d.imagewidth},
imgHeight:{value:d.imageheight},imgAlign:{value:d.imagealign},imgUrl:{value:d.imageurl},id:{value:f.id,disabled:!0},link:{value:d.link},dataset:{innerHTML:'<option value="'+b+'">'+a+b+"</option>",disabled:!0}},!0)},1E3));d.bBoxX=k.x;d.bBoxX2=k.x2||k.x+k.width;d.bBoxY=k.y;d.bBoxY2=k.y2||k.y+k.height;d.origX=d.lastX||(d.lastX=0);d.origY=d.lastY||(d.lastY=0);d.draged=!1;d.startYValue=f.y;d.startXValue=f.x;h||(h=g.cloneGroup=b.group(d.cloneGroup).attr(y));g.graphic&&!v&&(v=g.cloneGraphic=g.graphic.clone(),
h.appendChild(v),v.attr(y));g.image&&!l&&(l=g.cloneImage=g.image.clone(),h.appendChild(l).attr(y));g.label&&!p&&(p=g.cloneLabel=g.label.clone(),h.appendChild(p).attr(y));h.show()},dragMove:function(b,d,a,c,e,f){a=this.data("drag-options");c=a.plotItems;var g=a.bBoxX2+b,h=a.bBoxY+d,v=a.bBoxY2+d,l=f.elements;a.bBoxX+b<a.boundaryLeft&&(b=a.boundaryLeft-a.bBoxX);g>a.boundaryRight&&(b=a.boundaryRight-a.bBoxX2);h<a.boundaryTop&&(d=a.boundaryTop-a.bBoxY);v>a.boundaryBottom&&(d=a.boundaryBottom-a.bBoxY2);
if(b||d)l.waitElement&&l.waitElement.hide(),this.data("fire_click_event",0),eb.call(this);a.dataObj.allowDrag&&(g=a._transformObj={transform:"t"+(a.origX+b)+","+(a.origY+d)},this.attr(g),c.cloneGraphic&&c.cloneGraphic.attr(g),c.cloneImage&&c.cloneImage.attr(g),c.cloneLabel&&c.cloneLabel.attr(g),a.draged||xa.call(this,f,e,"DataplotDragStart"),a.draged=!0,a.lastX=b,a.lastY=d)},dragUp:function(b){var d=this.data("drag-options"),a=d.plotItems,c=d.chart,e=c.xAxis[0],f=c.yAxis[0],g=c.logic,h=g.tooltipSepChar,
v=g.numberFormatter,l=d.dataObj,p=c.elements,k=this.data("fire_click_event"),n,r,t;p.waitElement&&p.waitElement.hide();eb.call(this);this.data("mousedown",0);k&&xa.call(this,c,b);if(d.draged){d.lastX+=d.origX;d.lastY+=d.origY;k=l._xPos+d.lastX;p=l._yPos+d.lastY;n=d.startConnectors;r=n.length;for(t=0;t<r;t+=1)n[t].updateFromPos(k,p);n=d.endConnectors;r=n.length;for(t=0;t<r;t+=1)n[t].updateToPos(k,p);a.label&&a.label.attr(d._transformObj);a.image&&a.image.attr(d._transformObj);a.graphic&&a.graphic.attr(d._transformObj);
e=e.getAxisPosition(k,1);f=f.getAxisPosition(p,1);l._isUserTooltip||l.toolText===A||(l.toolText=l._toolTextStr+v.dataLabels(e)+h+v.dataLabels(f));v=this.data("eventArgs");l.x=v.x=e;l.y=v.y=f;h=dc(c.container,b);h.sourceEvent="dataplotdragend";u.raiseEvent("chartupdated",M(h,v),c.logic.chartInstance);xa.call(this,c,b,"dataplotdragend");b={hcJSON:{series:[]}};b.hcJSON.series[d.datasetIndex]={data:[]};b.hcJSON.series[d.datasetIndex].data[d.pointIndex]={_options:{x:e,y:f},x:e,y:f,toolText:l.toolText,
displayValue:l.displayValue};M(g.chartInstance.jsVars._reflowData,b,!0)}a.cloneGroup&&a.cloneGroup.hide()}},s["renderer.cartesian"]);s("renderer.dragcolumn2d",{drawTracker:function(b,d,a){var c=this.paper,e=this.yAxis[0],f=b.data[a],g=e.getAxisPosition(f.y),h=b.items[a],v=this.layers.tracker,l=h&&h.dragTracker||null,p=this.dragStart,k=this.dragUp,n=this.dragMove,r={stroke:ua,"stroke-width":la?40:10,ishot:!0,cursor:Za&&"ns-resize"||"n-resize"},t=e&&e.axisData&&e.axisData.plotLines,z=this._yAxisPlotLines||
(this._yAxisPlotLines=[]),s=0,w,u;if(!z.length)for(w=t.length;s<w;s+=1)u=t[s],u.isGrid&&z.push(e.getAxisPosition(u.value));null!==f.y&&f.allowDrag&&(e=h.graphic.getBBox(),e=["M",e.x,g,"L",e.x+e.width,g,"Z"],l?l.animate({d:e}).attr(r):l=h.dragTracker=c.path(e,v).attr(r),l.drag(n,p,k).data("drag-options",{items:h,yPos:g,chart:this,datasetIndex:b.index,pointIndex:a,dataOptions:d,dataObj:f}),h.dragTracker=l)},dragStart:function(){var b=this.data("drag-options"),d=b.chart,a=d.yAxis[0],c=a.max,a=a.min,
e=this.getBBox();b.barH=b.items.graphic.getBBox().height;b.isAllPositive=0<c&&0<a;b.isAllPositiveZero=0<c&&0<=a;b.isAllNegative=0>c&&0>a;b.isAllNegativeZero=0>=c&&0>a;b.isPositiveNegative=0<c&&0>a;b.boundaryTop=d.canvasTop;b.boundaryBottom=d.canvasTop+d.canvasHeight;b.bBoxY=e.y;b.bBoxY2=e.y2||e.y+e.height;b.startValue=b.dataObj.y;b.origX=b.lastX||(b.lastX=0);b.origY=b.lastY||(b.lastY=0);b.draged=!1},dragMove:function(b,d){var a=this.data("drag-options"),c=a.items,e=a.dataObj,f=a.chart,g=f.options.chart,
h=f.yAxis[0],v=f.logic.numberFormatter,l=h.yBasePos,p=c.dataLabel,k={},n=a.bBoxY2+d,r=a.bBoxY+d,t=f.canvasBottom,s=e.allowNegDrag?t:l,u=f.canvasTop,w=parseFloat(e.borderWidth)||0,g=g.isCanvasBorder,B=a.isAllNegativeZero,x=a.isPositiveNegative,y=a.dataOptions;r<a.boundaryTop&&(d=a.boundaryTop-a.bBoxY);n>s&&(d=s-a.bBoxY2);r=a._transformObj={transform:"t0,"+(a.origY+d)};a.draged||(n={dataIndex:a.pointIndex+1,datasetIndex:y.__i+1,startValue:a.startValue,datasetName:y.name},G.raiseEvent("dataplotDragStart",
n,f.logic.chartInstance));n=a.yPos+d;n<=l?(k.y=n,k.height=l-n):(k.y=l,k.height=n-l);g&&!x&&(B?k.y-=k.y-(u-w/2):k.height=t-k.y+w/2);this.attr(r);c.graphic.animate(k);a.shapeAttr=k;c=a.value=sa(1E8*h.getAxisPosition(n,1))/1E8;v=v.dataLabels(c);ra.pointUpdate(e,v,c);p&&f.drawPlotColumnLabel(f.plots[a.datasetIndex],a.dataOptions,a.pointIndex,void 0,n).attr("text",a.dataObj.displayValue);a.draged=!0;a.lastX=b;a.lastY=d},dragUp:function(){var b=this.data("drag-options"),d=b.chart,a=d.logic,c=!d.options.chart.doNotSnap,
e=b.dataObj,f=b.dataOptions,g,h;b.draged&&(g=b.yPos+b.lastY,c&&(h=ra.snapPoint(d,e,g),h-g&&d.dragMove.call(this,0,h-b.yPos)),b.yPos=h,b.lastX+=b.origX,b.lastY+=b.origY,c={dataIndex:b.pointIndex+1,datasetIndex:f.__i+1,startValue:b.startValue,endValue:b.dataObj.y=b.value,datasetName:f.name},f=[d.logic.chartInstance.id,c.dataIndex,c.datasetIndex,c.datsetName,c.startValue,c.endValue],G.raiseEvent("dataplotDragEnd",c,d.logic.chartInstance),u.raiseEvent("chartupdated",c,d.logic.chartInstance,f),c={hcJSON:{series:[]}},
c.hcJSON.series[b.datasetIndex]={data:[]},b.items.tracker.attr(b.shapeAttr).tooltip(e.toolText),c.hcJSON.series[b.datasetIndex].data[b.pointIndex]={y:b.value,toolText:e.toolText,displayValue:e.displayValue},ra.setMinMaxValue(d),M(a.chartInstance.jsVars._reflowData,c,!0))}},s["renderer.cartesian"]);s("renderer.dragline",{drawTracker:function(b,d,a){var c=this.paper,e=this.yAxis[0],f=this.xAxis[0],g=b.data[a],h=b.items[a],v=la?20:Ya(g.marker&&g.marker.radius||0,5),l=this.layers.tracker,p=h.tracker||
null,k=this.dragStart,n=this.dragUp,r=this.dragMove,t={fill:ua,"stroke-width":0,cursor:Za&&"ns-resize"||"n-resize"},s=e&&e.axisData&&e.axisData.plotLines,u=this._yAxisPlotLines||(this._yAxisPlotLines=[]),w=0,B,x;if(!u.length)for(B=s.length;w<B;w+=1)x=s[w],x.isGrid&&u.push(e.getAxisPosition(x.value));null!==g.y&&g.allowDrag&&(f=f.getAxisPosition(a),e=e.getAxisPosition(g.y),p||(p=h.tracker=c.circle(f,e,v,l).attr(t)),p.attr({cursor:Za&&"ns-resize"||"n-resize",ishot:!0}).drag(r,k,n).data("drag-options",
{items:b.items,yPos:e,chart:this,datasetIndex:b.index,pointIndex:a,dataOptions:d,dataObj:g}))},dragStart:function(){var b=this.data("drag-options"),d=b.items,a=b.pointIndex,c=d[a+1],d=d[a],c=b.nextGraph=c&&c.connector,d=b.currGraph=d&&d.connector,a=b.chart;b._origY=b._lastY||(b._lastY=0);b.boundaryTop=a.canvasTop;b.boundaryBottom=a.canvasTop+a.canvasHeight;b.currPath=d&&d.attr("path");b.nextPath=c&&c.attr("path");b.startValue=b.dataObj.y;b.origY=this.attr("cy");b.origX=this.attr("cx");b.draged=!1},
dragMove:function(b,d){var a=this.data("drag-options"),c=a.items[a.pointIndex],e=a.nextPath,f=a.currPath,g=a.dataObj,h=a.chart,v=h.elements.plots[a.datasetIndex],l=h.yAxis[0],p=h.logic.numberFormatter,k=l.yBasePos,n=c.dataLabel,r=g.allowNegDrag?a.boundaryBottom:k,t=a.dataOptions,k=a.origY+d;a.draged||(t={dataIndex:a.pointIndex+1,datasetIndex:t.__i+1,startValue:a.startValue,datasetName:t.name},G.raiseEvent("dataplotDragStart",t,h.logic.chartInstance));k<a.boundaryTop&&(d=a.boundaryTop-a.origY);k>r&&
(d=r-a.origY);k=a.origY+d;this.animate({cy:k});c.graphic&&c.graphic.attr("transform","t0,"+(a._origY+d));e&&e[0]&&a.nextGraph&&(Za?e[0][2]=k:e[2]=k,a.nextGraph.animate({path:e}));f&&f[1]&&a.currGraph&&(Za?f[1][2]=k:f[5]=k,a.currGraph.animate({path:f}));c=g.y=a.value=sa(1E8*l.getAxisPosition(k,1))/1E8;p=p.dataLabels(c);ra.pointUpdate(g,p,c);n&&h.drawPlotLineLabel(h.plots[a.datasetIndex],a.dataOptions,a.pointIndex,a.origX,k).attr("text",g.displayValue);a.draged=!0;a.lastY=d;h.getAreaPath&&v.graphic&&
v.graphic.attr({path:h.getAreaPath(v.data)})},dragUp:function(){var b=this.data("drag-options"),d=b.chart,a=d.logic,c=!d.options.chart.doNotSnap,e=b.dataObj,f=b.dataOptions,g,h;b.draged&&(g=b.yPos+b.lastY,c&&(h=ra.snapPoint(d,e,g),h-g&&d.dragMove.call(this,0,h-b.yPos)),b.yPos=h,b._lastY=b.lastY+b._origY,b.lastY+=b.origY,f={dataIndex:b.pointIndex+1,datasetIndex:f.__i+1,startValue:b.startValue,endValue:b.dataObj.y=b.value,datasetName:f.name},c=[d.logic.chartInstance.id,f.dataIndex,f.datasetIndex,f.datasetName,
f.startValue,f.endValue],G.raiseEvent("dataplotDragEnd",f,d.logic.chartInstance),u.raiseEvent("chartupdated",f,d.logic.chartInstance,c),c={hcJSON:{series:[]}},c.hcJSON.series[b.datasetIndex]={data:[]},c.hcJSON.series[b.datasetIndex].data[b.pointIndex]={y:b.value,toolText:e.toolText,displayValue:e.displayValue},b.items[b.pointIndex].tracker.tooltip(e.toolText),ra.setMinMaxValue(d),M(a.chartInstance.jsVars._reflowData,c,!0))}},s["renderer.cartesian"]);s("renderer.dragarea",{getAreaPath:function(b){for(var d=
this.xAxis[0],a=this.yAxis[0],c=a.yBasePos,e=b.length,f=0,g=[],h=[],v=[],l=!0,p,k,n;f<e;f+=1)k=b[f],v[f]=d.getAxisPosition(f),h[f]=null,null!==k.y&&(h[f]=a.getAxisPosition(k.y),n=b[f-1]?b[f-1].y:null,k=b[f+1]?b[f+1].y:null,null!==n?(l?(g.push("M",v[f-1],c,"L",v[f-1],h[f-1],"L",v[f],h[f]),p=f-1):g.push("L",v[f],h[f]),null===k&&g.push("L",v[f],c,"L",v[p],c),l=!1):l=!0);return g}},s["renderer.dragline"]);s("renderer.heatmap",{drawPlotHeatmap:function(b,d){var a=this,c=b.data,e=b.items,f=b.graphics=b.graphics||
[],h=a.paper,m=a.layers,v=a.options,l=v.chart,p=l.showHoverEffect,k=!1!==(v.tooltip||{}).enabled,n=v.plotOptions.series,v=a.xAxis[d.xAxis||0],r=a.yAxis[d.yAxis||0],n=isNaN(+n.animation)&&n.animation.duration||1E3*n.animation,t=!1===d.visible?"hidden":"visible",s,u,w=v.getAxisPosition(0),B=v.getAxisPosition(1),x=r.getAxisPosition(0),y=r.getAxisPosition(1),w=B-w,x=x-y,l=g(l.useRoundEdges,0),y=d.borderColor,B=d.borderWidth,A=d.dashStyle,C=w/2,E=x/2,F=m.dataset=m.dataset||h.group("dataset-orphan"),I=
m.datalabels=m.datalabels||h.group("datalables").insertAfter(F),m=m.tracker,G=a.chartWidth,L=a.chartHeight,Q=function(b){xa.call(this,a,b)},M=function(b){xa.call(this,a,b,"DataPlotRollOver")},O=function(b){xa.call(this,a,b,"DataPlotRollOut")},R=function(a,b){return function(){a.attr({fill:da(b)})}},U,K,J,Z,V,N,P,aa,Y;n&&(I.attr({transform:"t"+G+","+L}),a.animationCompleteQueue.push({fn:function(){I.attr({transform:"t0,0"})},scope:this}));G=0;for(L=c.length;G<L;G++){Z=c[G];K=Z.y;U=null;if(null!==K){V=
Z.link;N=Z.toolText||Z.tooltext;U=da(Z.setColor||Z.color);u=(s=Z.visible)&&!1===s?"hiddden":t;P=g(Z.x,G);P=v.getAxisPosition(P)-C;Y=r.getAxisPosition(K);aa=Y+E;K={link:V,value:Z.value,columnId:Z.columnId,rowId:Z.rowId,displayValue:Z.displayValue,tlLabel:Z.tlLabel,trLabel:Z.trLabel,blLabel:Z.blLabel,brLabel:Z.brLabel,toolText:N,id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible};U=h.rect(P,Y,w,x,l,F).attr({fill:U,stroke:y,"stroke-width":B,"stroke-dasharray":A,"stroke-linejoin":"miter",
"shape-rendering":0===l?"crisp":"",cursor:V?"pointer":"",opacity:n?0:Z.setAlpha&&+Z.setAlpha/100||1}).crisp().attr({visibility:u});n&&U.animate({opacity:Z.setAlpha&&+Z.setAlpha/100||1},n,"normal",a.getAnimationCompleteFn());if(p||k||V)J=h.rect(P,Y,w,x,l,m).attr({cursor:V?"pointer":"",stroke:ua,"stroke-width":B,fill:ua,ishot:!0}).data("eventArgs",K);(J||U).click(Q).hover(M,O).tooltip(N);1===p&&U&&J&&J.hover(R(U,Z.hoverColor),R(U,Z.setColor||Z.color));e[G]={index:G,value:Z.value,graphic:U,tracker:J,
dataLabel:null,dataLabels:[],visible:s||"hidden"!==u};s=a.drawLabelHeatmap.call(a,b,d,G);U&&f.push(U);J&&f.push(J);u=0;for(Z=s.length;u<Z;u++)!e[G].dataLabels&&(e[G].dataLabels=[]),s[u]&&f.push(s[u]),e[G].dataLabels.push(s[u])}a.drawTracker&&a.drawTracker.call(a,b,G,P,aa)}b.visible=!1!==d.visible;return b},drawLabelHeatmap:function(b,d,a){var c=b.items[a],e=b.data[a],f=this.options;b=this.paper;a=this.layers.datalabels;var g=f.plotOptions.series.dataLabels,h=g.style;d=!1===d.visible?"hidden":Gb;var v=
e.displayValue,f=f.chart.textDirection,l=e.tlLabel,p=e.trLabel,k=e.blLabel,e=e.brLabel,n=g.tlLabelStyle,r=g.trLabelStyle,t=g.blLabelStyle,g=g.brLabelStyle,s={fontFamily:n.fontFamily,fontSize:n.fontSize,lineHeight:n.lineHeight,fontWeight:n.fontWeight,fontStyle:n.fontStyle},u={fontFamily:r.fontFamily,fontSize:r.fontSize,lineHeight:r.lineHeight,fontWeight:r.fontWeight,fontStyle:r.fontStyle},w={fontFamily:t.fontFamily,fontSize:t.fontSize,lineHeight:t.lineHeight,fontWeight:t.fontWeight,fontStyle:t.fontStyle},
B={fontFamily:g.fontFamily,fontSize:g.fontSize,lineHeight:g.lineHeight,fontWeight:g.fontWeight,fontStyle:g.fontStyle},x=c.tlLabel,y=c.trLabel,C=c.blLabel,F=c.brLabel,E=this.smartLabel,G=c.dataLabel,I=[],L={fontFamily:h.fontFamily,fontSize:h.fontSize,lineHeight:h.lineHeight,fontWeight:h.fontWeight,fontStyle:h.fontStyle},Q,M,R,O,T,U,K,J;O=c.graphic.getBBox();Q=O.width;M=O.height;R=O.x;O=O.y;E.setStyle(h);ba(v)&&v!==A&&(K=E.getSmartText(v,Q,M,!1),v=K.text,G||(G=c.dataLabel=b.text(a)),G.attr({text:v,
title:K.tooltext||"",visibility:d,fill:h.color,direction:f,x:R+.5*Q,y:O+.5*M,"text-bound":[h.backgroundColor,h.borderColor,h.borderThickness,h.borderPadding,h.borderRadius,h.borderDash]}).css(L),I.push(G));v=ba(l)&&l!==A;L=ba(p)&&p!==A;T=ba(k)&&k!==A;U=ba(e)&&e!==A;h=Q*(v&&L?.5:.9);G=.5*(M-(K&&K.height||0));J=O+4;v&&(E.setStyle(n),K=E.getSmartText(l,h,G,!1),v=K.text,l=R,x||(x=c.tlLabel=b.text(a)),x.attr({text:v,title:K.tooltext||"",visibility:d,fill:n.color,"text-anchor":"start","vertical-align":Na,
direction:f,x:l+4,y:J,"text-bound":[n.backgroundColor,n.borderColor,n.borderThickness,n.borderPadding,n.borderRadius,n.borderDash]}).css(s),a.appendChild(x),I.push(x));L&&(E.setStyle(r),K=E.getSmartText(p,h,G,!1),v=K.text,l=R+Q,y||(y=c.trLabel=b.text(a)),y.attr({text:v,title:K.tooltext||"",visibility:d,fill:r.color,"text-anchor":"end","vertical-align":Na,direction:f,x:l-4,y:J,"text-bound":[r.backgroundColor,r.borderColor,r.borderThickness,r.borderPadding,r.borderRadius,r.borderDash]}).css(u),a.appendChild(y),
I.push(y));J=O+M-4;T&&(E.setStyle(t),K=E.getSmartText(k,h,G,!1),v=K.text,l=R,C||(C=c.blLabel=b.text(a)),C.attr({text:v,title:K.tooltext||"",visibility:d,fill:t.color,"text-anchor":"start","vertical-align":Ia,direction:f,x:l+4,y:J,"text-bound":[t.backgroundColor,t.borderColor,t.borderThickness,t.borderPadding,t.borderRadius,t.borderDash]}).css(w),I.push(C));U&&(E.setStyle(t),K=E.getSmartText(e,h,G,!1),v=K.text,l=R+Q-4,F||(F=c.brLabel=b.text(a)),F.attr({text:v,title:K.tooltext||"",visibility:d,fill:g.color,
"text-anchor":"end","vertical-align":Ia,direction:f,x:l,y:J,"text-bound":[g.backgroundColor,g.borderColor,g.borderThickness,g.borderPadding,g.borderRadius,g.borderDash]}).css(B),a.appendChild(F),I.push(F));return I},setScaleRange:function(b,d){var a=this.logic,c=this.plots[0],e={visibility:"visible"},f={visibility:"hidden"},g={hcJSON:{series:[{}]}},h=g.hcJSON.series[0],v=h.data||(h.data=[]),l=a.chartInstance.jsVars._reflowData,p=c.items,k,n,r,t,s,u,w,x=function(a){a.attr(u)};setTimeout(function(){var a,
c;a=0;for(c=p.length;a<c;a++)k=p[a],n=k.value,r=k.graphic,s=v[a]||(v[a]={}),t=k.dataLabels,u=(w=n>=b&&n<=d)?e:f,r.attr(u),ib(t,x),s.visible=w;M(l,g,!0)},100)}},s["renderer.cartesian"]);s("renderer.radar",{createRadarAxis:function(){var b=this.options,d=this.canvasLeft+this.canvasWidth/2,a=this.canvasTop+this.canvasHeight/2,c=b.xAxis,e=b.yAxis instanceof Array?b.yAxis[0]:b.yAxis,f=c.max-c.min+1,g=Q(e.max-e.min),b=ba(b.chart.axisRadius)?b.chart.axisRadius:L(d,a),h,v=Sa.PI/2,l={};0>b&&(b=L(d,a));h=2*
Sa.PI/f;l.yTrans=b/g;l.xTrans=h;l.yRange=g;l.startAngle=v;l.yMin=e.min;l.centerX=d;l.centerY=a;l.radius=b;l.categories=[];l.catLength=f;l.yAxis=e;l.xAxis=c;return this.radarAxis=l},drawRadarAxis:function(){var b=this.radarAxis,d=b.catLength,a=b.xAxis,c=b.yAxis,e=c.min,f=c.plotLines,q=f.length,m=a.plotLines,v=b.xTrans,l=b.yTrans,p=b.radius,k=b.startAngle,n=this.canvasLeft+this.canvasWidth/2,r=this.canvasTop+this.canvasHeight/2,t=this.paper,s=this.layers,u=s.dataset=s.dataset||t.group("orphan-dataset").trackTooltip(!0),
w=s.layerBelowDataset=s.layerBelowDataset||t.group("axisbottom").trackTooltip(!0),x=s.layerAboveDataset=s.layerAboveDataset||t.group("axistop").trackTooltip(!0),y=s.axisLines=s.axisLines||t.group("axis-lines",w),C=s.axisLabels=s.axisLabels||t.group("axis-labels",w),A=c.labels,c=2*Sa.PI,F=Sa.PI/2,E=Sa.PI+F,G=!1!==(this.options.tooltip||{}).enabled,I=["right","center","left"],L=a.labels,M=g(.9*parseInt(L.style&&L.style.fontSize,10),9)/2,L=p+L.labelPadding,R=[],T=["M"],O=[],X=this.logic.smartLabel,U=
this.options.chart.textDirection,K,J,Z,V,N,P,aa,Y,W,ca,da,ba=function(a){if(1<=a)da=.5;else return da=a||.5,a=(J-K)*da+(K-Z)*da,V>a&&ba.call(this,da+.1),da};w.insertBefore(u);x.insertAfter(u);b.divline=[];for(W=0;W<q;W+=1){O[W]=["M"];w=!0;u=d;N=f[W];ca=N.tooltext;for(P=N.value;u--;)A=Q(P-e)*l,aa=n+A*ya(-(k+u*v)),Y=r+A*ab(-(k+u*v)),O[W].splice(O[W].length,0,aa,Y),w&&(O[W].push("L"),w=!1),0===u&&N.label&&(A=N.label,((x=A.text)||0===x)&&t.text(C).attr({text:x,x:aa,y:Y,"text-anchor":"right"===A.textAlign?
"end":"left"===A.textAlign?"start":"middle","vertical-align":A.verticalAlign,direction:U,rotation:A.rotation}).css(A.style));O[W].push("Z");b.divline[W]=t.path(O[W],y).attr({stroke:N.color,"stroke-width":N.width});G&&ca&&t.path({stroke:ua,"stroke-width":Ya(N.width,bc),ishot:!0,path:O[W]},s.tracker).toBack().tooltip(ca)}w=!0;for(u=m.length;u--;)if(N=m[u],P=N.value,s=k+P*v,d=s%c,aa=n+p*ya(-s),Y=r+p*ab(-s),R.splice(R.length,0,"M",n,r,"L",aa,Y),T.splice(T.length,0,aa,Y),w&&(T.push("L"),w=!1),N.label&&
(A=N.label,(x=A.text)||0===x)){f=d>F&&d<E?0:d==F||d==E?1:2;d=A.style;e={fontFamily:d.fontFamily,fontSize:d.fontSize,lineHeight:d.lineHeight,fontWeight:d.fontWeight,fontStyle:d.fontStyle,color:d.color};X.setStyle(e);f="right"===I[f]?"end":"left"===I[f]?"start":"middle";q=n+L*ya(-s);K=r+L*ab(-s);V=parseInt(e.lineHeight,10);O=A.verticalAlign;switch(f){case "start":l=this.canvasLeft+this.canvasWidth-q;s=m[u-1];s=k+s.value*v;J=r+L*ab(-s)+M*ab(-s)+M;s=m[u+1===m.length?0:u+1];s=k+s.value*v;Z=r+L*ab(-s)+
M*ab(-s)+M;s=ba();G=(J-K)*s+(K-Z)*s;O="middle";break;case "end":l=q-this.canvasLeft;s=m[u+1];s=k+s.value*v;J=r+L*ab(-s)+M*ab(-s)+M;s=m[u-1];s=k+s.value*v;Z=r+L*ab(-s)+M*ab(-s)+M;s=ba();G=(J-K)*s+(K-Z)*s;O="middle";break;default:l=this.canvasWidth,G=V,K+=M*ab(-s)+M}x=X.getSmartText(x,l,G).text;t.text(C).attr({text:x,x:q,y:K,"text-anchor":f,"vertical-align":O,rotation:A.rotation,direction:U,"text-bound":[d.backgroundColor,d.borderColor,d.borderThickness,d.borderPadding,d.borderRadius,d.borderDash]}).css(e)}T.push("Z");
b.spikeGraph=t.path(R,y).attr({stroke:a.gridLineColor,"stroke-width":h(a.gridLineWidth,1)});a.showRadarBorder&&(b.borderGraph=t.path(T,y).toBack().attr({stroke:a.radarBorderColor,"stroke-width":h(a.radarBorderThickness,2),fill:a.radarFillColor}))},drawPlotRadar:function(b,d){var a=this,c=a.paper,e=a.layers,f=e.dataset=e.dataset||c.group("orphan-dataset"),h=e.datalabels=e.datalabels||c.group("datalabels").insertAfter(f),m=e.tracker=e.tracker||c.group("hot").insertAfter(f),v=a.options,l=v.chart.anchorTrackingRadius,
p=v.plotOptions.series,k=[],n=b.items||{},r=b.graphics=b.graphics||[],e=a.radarAxis,t=d.data||[],u=t.length,x,w,y=!1===d.visible,A=y?"hidden":"visible",p=isNaN(+p.animation)&&p.animation.duration||1E3*p.animation,C,F,G=!1!==(v.tooltip||{}).enabled,E,L,I,M,R=f.radarGroup=f.radarGroup||c.group("connectors",f),T=f.marker=f.marker||c.group("anchors",f),X=m.trackers=m.trackers||c.group("trackers",m),O=a.chartWidth,ca=a.chartHeight,f=[],U,K,J,Z,V,N,P,aa,Y,W,ba,ea,ga,fa,ha,la,ja=(v=v.cursor)&&{cursor:v},
na=s["renderer.cartesian"],ma,pa,oa;void 0===a.radarAxis&&(e=a.radarAxis=a.createRadarAxis(d),a.drawRadarAxis(d));C=e.yTrans;E=e.yMin;L=e.startAngle;F=e.xTrans;x=e.centerX;w=e.centerY;1<=u&&(N=[],ib(t,function(e,f){Y=null;f?2>f&&N.push("L"):N.push("M");n[f]=ma=k[f]={chart:a,index:f,value:e.y};if(null===e.y)N.push(x,w);else{P=W=null;ba=e.link;ea=e.tooltext||e.toolText;I=x+C*Q(e.y-E)*ya(-(L+f*F));M=w+C*Q(e.y-E)*ab(-(L+f*F));if(P=e.anchorElem)V=g(P.attr("r"),K.radius),P.attr({x:I,y:M,r:V});else if(K=
e.marker,oa={index:f,link:ba,value:e.y,displayValue:e.displayValue,categoryLabel:e.categoryLabel,toolText:ea,id:b.userID,datasetIndex:b.index,datasetName:b.name,visible:b.visible},K&&K.enabled)if(J=K.radius,ga=K.shadow,U=K.symbol.split("_"),Z="spoke"===U[0]?1:0,ha=la={},fa=e.rolloverProperties,K.imageUrl)pa=new Xa.Image,pa.onload=function(e,f,g,h,k,l,n,q){return function(){var p=g.imageUrl,t=g.imageScale,s=g.imageAlpha,v=n.imageHoverAlpha,u=n.imageHoverScale,w=this.width*t*.01,x=this.width*u*.01;
ha={x:e-this.width*t*.005,y:f-this.height*t*.005,width:w,height:this.height*t*.01,alpha:s};la={x:e-this.width*u*.005,y:f-this.height*u*.005,width:x,height:this.height*u*.01,alpha:v};v=x>w?la:ha;(h.graphic=P=c.image(p,T).attr(ha).css({opacity:.01*s}).data("alwaysInvisible",0===t).data("setRolloverProperties",n).data("setRolloverAttr",la).data("setRolloutAttr",ha).data("anchorRadius",t).data("anchorHoverRadius",u))&&r.push(P);if(ba||G||n)W=h.tracker=c.rect(m).attr(v).attr({cursor:ba?"pointer":"",stroke:ua,
"stroke-width":g.lineWidth,fill:ua,ishot:!0,visibility:A}).data("eventArgs",k).click(function(b){xa.call(this,a,b)}).hover(function(b){return function(c){na.hoverPlotAnchor(this,c,"DataPlotRollOver",b,a)}}(h),function(b){return function(c){na.hoverPlotAnchor(this,c,"DataPlotRollOut",b,a)}}(h)).tooltip(l);(Y=h.dataLabel=na.drawPlotLineLabel.call(a,b,d,q,e,f))&&r.push(Y)}}(I,M,K,ma,oa,ea,fa,f),pa.onerror=function(c,e,f,g,h,k,l,m){return function(){(Y=g.dataLabel=na.drawPlotLineLabel.call(a,b,d,m,c,
e))&&r.push(Y)}}(I,M,K,ma,oa,ea,fa,f),pa.src=K.imageUrl;else{fa&&(ha={polypath:[U[1]||2,I,M,J,K.startAngle,Z],fill:da(K.fillColor),"stroke-width":K.lineWidth,stroke:da(K.lineColor)},la={polypath:[fa.sides||2,I,M,fa.radius,fa.startAngle,fa.dip],fill:da(fa.fillColor),"stroke-width":fa.lineWidth,stroke:da(fa.lineColor)});P=ma.graphic=c.polypath(U[1]||2,I,M,J,K.startAngle,null,T).attr({fill:da(K.fillColor),"stroke-width":K.lineWidth,stroke:da(K.lineColor),cursor:ba?"pointer":"","stroke-linecap":"round",
"stroke-linejoin":"round",ishot:!0,visibility:0===J?"hidden":A}).data("alwaysInvisible",0===J).data("setRolloverProperties",fa).data("setRolloverAttr",la).data("setRolloutAttr",ha).data("anchorRadius",J).data("anchorHoverRadius",fa&&fa.radius).shadow(ga);e.anchorElem=P;if(ba||G||fa)(W=e.trackerElem)?(V=g(W.attr("r"),K.radius+1),W.attr({x:I,y:M,r:V})):(U||(U=K.symbol.split("_")),J=Ya(J,l,fa&&fa.radius||0),W=c.circle(I,M,J,X).attr({cursor:e.link?"pointer":"",stroke:ua,"stroke-width":1,fill:ua,ishot:!0,
visibility:A}).css(ja)),e.trackerElem=W;(W=W||P)&&W.data("eventArgs",oa).click(function(b){xa.call(this,a,b)}).hover(function(b){return function(c){na.hoverPlotAnchor(this,c,"DataPlotRollOver",b,a)}}(ma),function(b){return function(c){na.hoverPlotAnchor(this,c,"DataPlotRollOut",b,a)}}(ma)).tooltip(ea)}N.push(I,M);ma.dataLabel=Y;ma.tracker=W;K&&K.imageUrl||(Y=na.drawPlotLineLabel.call(a,b,d,f,I,M));P&&r.push(P);Y&&r.push(Y);W&&r.push(W)}}),N.push("Z"),f=f.concat(N));f&&0<f.length&&(aa=b.graphic=c.path(f,
R).attr({stroke:da(d.lineColor.FCcolor),fill:da(d.fillColor.FCcolor),"stroke-width":d.lineWidth,visibility:A}));p&&(a.animationCompleteQueue.push({fn:function(){T.show();h.attr({transform:"...t"+-O+","+-ca})},scope:a}),T.hide(),h.attr({transform:"...t"+O+","+ca}),R.scale(.01,.01,x,w).animate({transform:"s1,1"},p,"normal",a.getAnimationCompleteFn()));aa&&r.push(aa);b.visible=!y},legendClick:function(b){s["renderer.cartesian"].legendClick.call(this,b)},getEventArgs:function(b){return s["renderer.cartesian"].getEventArgs.call(this,
b)}},s["renderer.root"]);s("renderer.multiLevelPie",{drawPlotMultilevelpie:function(b,d){var a=this,c=b.items,e=b.data,f=a.options,h=f.plotOptions.series,m=a.layers,s=h.animation,l=h.dataLabels.style,p=h.shadow,k=g(b.moveDuration,s.duration,0),n=h.borderWidth,r=h.borderColor,t=a.paper,u=f.chart.textDirection,f=(f=f.tooltip||{},!1!==f.enabled),x=(d.startAngle||0)%ha,w=ha/(d.valueTotal||100),y=a.canvasLeft+.5*a.canvasWidth,A=a.canvasTop+.5*a.canvasHeight,C,F,G,E,M,I,Q,R,T,X,O;F=L(a.canvasWidth,a.canvasHeight);
var ba,U=m.dataset,K=s.mainItem,J=s.animObj,Z=function(b){xa.call(this.graphic,a,b,"DataPlotRollOver");h.point.events.mouseOver.call(this)},V=function(b){xa.call(this.graphic,a,b,"DataPlotRollOut");h.point.events.mouseOut.call(this)},N=function(b){xa.call(this.graphic,a,b,"DataPlotRollOver");h.point.events.mouseOver.call(this)},P=function(b){xa.call(this.graphic,a,b,"DataPlotRollOut");h.point.events.mouseOut.call(this)},aa=function(){a.placeDataLabels(!1,c,b,d)};C=.5*(/%$/.test(d.size)?F*parseInt(d.size,
10)/100:d.size);F=.5*(/%$/.test(d.innerSize)?F*parseInt(d.innerSize,10)/100:d.innerSize);d.metrics=[y,A,2*C,2*F];e&&e.length||(e=[]);ba=m.datalabels||(m.datalabels=t.group("datalabels").insertAfter(U));X=T=x;for(O=e.length;O--;)E=e[O],M=E.y,I=E.displayValue,m=E.toolText,Q=!!E.link,null!==M&&void 0!==M&&(X=T,T-=M*w,R=.5*(T+X),(G=c[O])||(G=c[O]={chart:a,link:E.link,value:M,angle:R,color:E.color,prevPointIndex:E.prevPointIndex,prevSeriesIndex:E.prevSeriesIndex,labelText:I,graphic:t.ringpath(y,A,C,F,
x,x,U).attr({"stroke-width":E.borderWidth||n,stroke:E.borderColor||r,fill:da(E.color),"stroke-dasharray":E.dashStyle,ishot:!f,cursor:Q?"pointer":""}).shadow(p&&!!E.shadow)},E={link:E.link,label:E.displayValue,toolText:E.toolText},G.graphic.mouseover(Z,G),G.graphic.mouseout(V,G),G.graphic.mouseup(a.plotMouseUp),G.graphic.data("plotItem",G),G.graphic.data("eventArgs",E),f&&G.graphic.tooltip(m),void 0!==I&&(G.dataLabel=t.text(ba).css(l).attr({text:I,fill:l.color||"#000000",visibility:"hidden",direction:u,
ishot:Q,cursor:Q?"pointer":""}).mouseover(N,G).mouseout(P,G).mouseup(a.plotMouseUp).data("plotItem",G).data("eventArgs",E),f&&G.dataLabel.tooltip(m))),k?K?G.graphic.animateWith(K,J,{ringpath:[y,A,C,F,T,X]},k,"easeIn",!O&&aa):(J=s.animObj=ma.animation({ringpath:[y,A,C,F,T,X]},k,"easeIn",!O&&aa),K=s.mainItem=G.graphic.animate(J)):(G.graphic.attr({ringpath:[y,A,C,F,T,X]}),!O&&aa&&aa()))},plotMouseUp:function(b){var d=this.data("plotItem");xa.call(this,d.chart,b)}},s["renderer.piebase"]);ma.addSymbol({resizeIcon:function(b,
d,a){var c=g(a,15)/3,e=[];0>c&&(c=-c,a=-a,b+=a-c/2,d+=a-c/2);for(a=3;0<a;--a)e.push("M",b-c*a,d-3,"L",b-3,d-c*a);return e},closeIcon:function(b,d,a){var c=1.3*a,e=43*ic,f=48*ic,g=b+c*ya(e),e=d+c*ab(e),h=b+c*ya(f),s=d+c*ab(f),f=.71*(a-2);a=.71*(a-2);c=["A",c,c,0,1,0,h,s];g=["M",g,e];g=g.concat(c);return g=g.concat(["M",b+f,d-a,"L",b-f,d+a,"M",b-f,d-a,"L",b+f,d+a])},configureIcon:function(b,d,a){--a;var c=.71*a,e=.71*(a+2),f=b-a,g=d-a,h=b+a;a=d+a;var s=b+.5,l=d+.5,p=b-.5,k=d-.5,n=f-2,r=g-2,t=h+2,u=
a+2,x=b+c,w=d+c,y=b-c,c=d-c,A=b+e,C=d+e;b-=e;d-=e;return["M",f,l,"L",n,l,n,k,f,k,y-.25,c+.25,b-.25,d+.25,b+.25,d-.25,y+.25,c-.25,p,g,p,r,s,r,s,g,x-.25,c-.25,A-.25,d-.25,A+.25,d+.25,x+.25,c+.25,h,k,t,k,t,l,h,l,x+.25,w-.25,A+.25,C-.25,A-.25,C+.25,x-.25,w+.25,s,a,s,u,p,u,p,a,y+.25,w+.25,b+.25,C+.25,b-.25,C-.25,y-.25,w-.25,"Z"]},axisIcon:function(b,d,a){--a;var c=.33*a,e=a/2,f=b-a,g=d-a,h=b+e;a=d+a;b-=e;e=d+c;d-=c;return["M",f,g,"L",h,g,h,a,f,a,"M",b,e,"L",h,e,"M",b,d,"L",h,d]},loggerIcon:function(b,
d,a){--a;b-=a;d-=a;var c=b+2*a,e=b+2,f=c-2,g=d+2;a=g+a;var h=a+2;return["M",b,d,"L",c,d,c,g,f,g,f,a,c,a,c,h,b,h,b,a,e,a,e,g,b,g,b,d]}})},[3,2,1,"release"]]);
/*
 FusionCharts JavaScript Library
 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>

 @version 3.9.0
*/
FusionCharts.register("module",["private","modules.renderer.js-messagelogger",function(){var ga=this.hcLib,mb=ga.Raphael,ya,Wa=ga.isIE,ja=ga.graphics.HEXtoRGB,A=ga.graphics.convertColor,za,O,ab,Ba,q,G,h,Z,ib,P,V,ia,pa,Oa,Fa=this.window,qa=Fa.document,zb=8===qa.documentMode,ha=!0,W=!1,F=ga.pluck,ua=ga.pluckNumber,Ab=ga.FC_CONFIG_STRING,Ga={display:"block",paddingLeft:"10px",paddingRight:"10px","font-family":"Arial","font-size":"11px"},z=function(h,q){var v=this,G;q||(q="");for(G=v.indexOf(h);-1!==
G;)v=v.replace(h,q),G=v.indexOf(h);return v};Oa=function(z,F,v){var O=z.hcJSON,V=O&&O[Ab],P=F&&F.chartWidth,$=F&&F.chartHeight,O=Ba/100*P,pa=q/100*$,na=(P-O)/2,ua=($-pa)/2,qa=O-18-22,ka=pa-18-22,ja=Z,Ga=Z;z=v.html("div",{fill:"transparent",width:P,height:$},{fontSize:"10px",lineHeight:"15px",fontFamily:(V&&V.inCanvasStyle||z.inCanvasStyle).fontFamily},F&&F.container);z.veil=v.html("div",{id:"veil",fill:"000000",width:P,height:$,opacity:.1},void 0,z).on("click",function(){ia&&ga.messageLogger.close()});
h&&G&&(z.title=v.html("p",{id:"Title",innerHTML:h,x:5,y:5},{"font-weight":"bold"},z));z.dialog=v.html("div",{id:"dialog",x:na,y:ua,fill:"ffffff",strokeWidth:1,stroke:ja,width:O,height:pa},{borderRadius:"5px",boxShadow:"1px 1px 3px #000000","-webkit-border-radius":"5px","-webkit-box-shadow":"1px 1px 3px #000000",filter:'progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color="#000000")'},z);z.logBackground=v.html("div",{id:"dialogBackground",x:0,y:0,fill:Ga,width:O,height:pa},void 0,
z.dialog);ia&&(z.closeBtnContainer=v.html("div",{id:"closeBtnContainer",width:18,height:18,x:na+O-21,y:ua+3},{},z),F=new mb("closeBtnContainer",18,18),P=F.group("closeGroup"),z.closeButton=F.symbol("closeIcon",0,0,6,P).attr({transform:"t9,9","stroke-width":2,stroke:A("999999"),ishot:!0,"stroke-linecap":"round","stroke-linejoin":"round"}).css({cursor:"pointer",_cursor:"hand"}).click(function(){ga.messageLogger.close()}));z.logWrapper=v.html("div",{id:"logWrapper",x:(O-qa)/2,y:(pa-ka)/2,width:qa,height:ka},
{overflow:"auto"},z.dialog).on("scroll",function(){var h=this&&this.scrollTop,q=this&&this.scrollHeight,v=this&&this.offsetHeight;W?W=!1:ha=q-h===v?!0:!1});z.log=v.html("div",{id:"log",x:0,y:0},{},z.logWrapper);z.hide();return z};ya=function(h,q,v,z){if(ga.messageLogger)return ga.messageLogger;this.chart=h;this.instanceAPI=q;this.renderer=v;this.paper=z;this.menuCreated=!1;this.log=(h=this.ui=Oa(q,v,z))&&h.log;h&&this.updateStatus("INITIALIZED")};ya.prototype={STATUS:"",updateStatus:function(h){var q=
this.renderer,q=q&&q.menu instanceof Array&&q.menu[0];this.status=h;switch(q&&this.status.toLowerCase()){case "initialized":za?q.hideItem(4):q.hideItem(1);break;case "closed":za?q.showItem(3):q.showItem(0);za?q.hideItem(4):q.hideItem(1);break;case "active":za?q.showItem(4):q.showItem(1),za?q.hideItem(3):q.hideItem(0)}},appendMessage:function(h){var q=this.status,v=F(h.msgid,""),G=F(h.msgtitle,""),A=F(h.msgtext,""),O=h&&F(h.msgtype,"literal"),$=h&&!!ua(h.clearlog,0),pa=h&&!!ua(h.hidelog,0),na=h&&!!ua(h.showlog,
0),Ba=h&&!!ua(h.msggoestolog,ab),ga=h&&!!ua(h.msggoestojs,ib);Ba&&"INITIALIZED"===q&&this.updateStatus("CLOSED");pa&&this.close();$&&this.clear();na&&this.open();Ba&&"ACTIVE"!==this.status&&this.show();if((""!==G&&void 0!==G||""!==A&&void 0!==A)&&this.log&&Ba){var q=this.log,$=h&&h.msgtitle,pa=h&&h.msgtext,na=h&&F(h.msgtype,"literal"),ka,ia;h="";var Z,ja,ra;q&&q.element&&(Z=q.element);Z&&(ja=Z.parentElement);$&&($+=" : ");switch(na.toLowerCase()){case "info":$&&(ka='<span style="color: #005900">$titleVal$</span>');
pa&&(ia="<span>$msgVal$</span>");break;case "literal":$&&(ka='<span style="color: #005900">$titleVal$</span>');pa&&(ia="<span>$msgVal$</span>");break;case "error":$&&(ka='<span style="color: #CC0000">$titleVal$</span>');pa&&(ia='<span style="color: #CC0000">$msgVal$</span>');break;case "link":$&&(ka='<span style="color: #005900">$titleVal$</span>');pa&&(ia='<a href="$msgVal$">$msgVal$</a>');break;default:$&&(ka='<span style="color: #005900">$titleVal$</span>'),pa&&(ia="<span>$msgVal$</span>")}ka&&
(ka=ka.replace("$titleVal$",$),h+=ka);ia&&(ia=z.call(ia,"$msgVal$",pa),h+=ia);if(Z&&h){ka=qa.createElement("span");for(ra in Ga)ka.style[ra]=Ga[ra];ka.innerHTML=h;Z.appendChild&&Z.appendChild(ka);Wa&&zb&&(ra=Z.innerHTML,Z.innerHTML=ra);ha&&(W=!0,Z=ja.scrollHeight,ja.scrollTop=Z)}Wa||(this.ui.element.scrollHeight+=30,this.ui.element.scrollTop=this.ui.element.scrollHeight)}ga&&P&&(ga=Fa[P],"function"===typeof ga&&(V?ga(v,G,A,O):ga(A)))},hide:function(){"ACTIVE"===this.status&&(this.ui.hide(),this.updateStatus("BEFORE CLOSE"))},
close:function(){"ACTIVE"===this.status&&(this.ui.hide(),this.updateStatus("CLOSED"))},open:function(){"ACTIVE"!==this.status&&(this.ui.show(),this.updateStatus("ACTIVE"))},show:function(){"ACTIVE"!==this.status&&"CLOSED"!==this.status&&(this.ui.show(),this.updateStatus("ACTIVE"))},clear:function(){var h=this.log;if(h=h&&h.element)for(;h.hasChildNodes();)h.removeChild(h.lastChild)},destroy:function(){this.hide();this.updateStatus("DESTROYED");ga.messageLogger=null;delete ga.messageLogger;return null}};
ya.prototype.constructor=ya;this.core.addEventListener(["rendered","dataupdated","resized"],function(z){var F=z&&z.sender;z=z&&z.eventType;var v=F&&F.jsVars,A=v&&v.hcObj,W=A&&A.options,ha=v&&v.instanceAPI,$=ha&&ha.renderer,A=$&&$.paper,W=W&&W.chart,qa=F&&F.options,qa=qa&&qa.renderer,na=ga&&ga.messageLogger,Ga=na&&na.status,Oa=v&&v._reflowData,ka=Oa&&Oa._messageLogger||{},v=ka&&ka.appendedMessages,Fa;if(!qa||"javascript"===qa.toLowerCase())if(O=W&&W.useMessageLog){W&&(za=W.showRTMenuItem,ab=W.messageGoesToLog,
ib=W.messageGoesToJS,P=W.messageJSHandler,V=W.messagePassAllToJS,Ba=W.messageLogWPercent,q=W.messageLogHPercent,G=W.messageLogShowTitle,h=W.messageLogTitle,ia=W.messageLogIsCancelable,Z=W.messageLogColor,Z=Z.replace(/^#?([a-f0-9]+)/ig,"$1"),ja(Z),pa=W.alwaysShowMessageLogMenu);na&&(na=ga.messageLogger=na.destroy());Fa=(na=ga.messageLogger=new ya(F,ha,$,A))&&na.ui&&na.ui.log&&na.ui.log.element;if("resized"===z)switch(v&&(Fa.innerHTML=v),Ga.toLowerCase()){case "active":na.ui.show();na.updateStatus(Ga);
break;case "closed":na.updateStatus(Ga)}pa&&(na.menuCreated=!0);F.addEventListener("RealTimeUpdateComplete",function(h,q){var v=q&&q.updateObject,z=v&&v.msgtitle,G=v&&v.msgtext,A=v&&ua(v.showlog,0),W=v&&ua(v.hidelog,0),V=v&&ua(v.clearlog,0);if(z||G||A||W||V)!O||za||!ab||pa||na.menuCreated||(ha.drawMLMenuButtons.call($,F),na.menuCreated=!0),na.appendMessage(v),ka.appendedMessages=Fa&&Fa.innerHTML,Oa._messageLogger=ka});F.addEventListener("beforeDispose",function(){na&&na.destroy()})}})}]);
FusionCharts.register("module",["private","modules.renderer.js-realtime",function(){var ga=this,mb=ga.window,ya=Math,Wa=ya.random,ja=ya.max,A=ga.hcLib.pluckNumber,za=function(A,q,G){clearTimeout(G);return setTimeout(A,q)},O,ab;O=function(A){var q=A.sender,G=q.jsVars;A=q.__state;var h=G.instanceAPI,O=h.hcJSON,ib=h.numberFormatter,P=O&&O.alerts&&O.alerts.alert||[],G=G._rtLastUpdatedData&&G._rtLastUpdatedData.values,V=P.length,ia;if(G&&G.length){h=function(h){var G,A=ib.getCleanValue(h),O,ia=function(h){return function(){eval(h.param)}};
for(O=0;O<V;O+=1)if(h=P[O],G=h.action&&h.action.toLowerCase(),h.minvalue<=A&&h.maxvalue>=A){if("1"!==h.occuronce||!h.hasOccurred){h.hasOccurred=!0;h.state="1";switch(G){case "calljs":setTimeout(ia(h),0);break;case "showannotation":q.showAnnotation&&q.showAnnotation(h.param)}ga.raiseEvent("AlertComplete",{alertValue:A,alertMaxValue:h.maxvalue,alertMinValue:h.minvalue},q)}}else"showannotation"===G&&"1"===h.state&&q.hideAnnotation&&q.hideAnnotation(h.param),h.state="2"};O=ja(G.length,0);for(ia=0;ia<
O;ia+=1)A.lastSetValues&&G[ia]===A.lastSetValues[ia]||h(G[ia]);A.lastSetValues=G}};ab=function(Ba){var q=Ba.sender,G=q.__state,h,Z,ja,P,V,ia,pa,Oa,Fa,qa,ya,ha;G.dataSetDuringConstruction&&!G.rtStateChanged&&void 0===G.rtPreInit&&(q.dataReady()?(G.rtStateChanged=!0,G.rtPreInit=!0):G.rtPreInit=!1);G.rtStateChanged&&(G.rtStateChanged=!1,h=q.jsVars,Z=h.hcObj)&&(ja=Z.logic,V=(P=Z.options)&&P.chart||{},ia=1E3*A(V.updateInterval,V.refreshInterval),pa=1E3*A(V.clearInterval,0),Oa=V.dataStreamURL,Fa=V.dataStamp,
V=Boolean(ja&&ja.realtimeEnabled&&0<ia&&void 0!==Oa&&V),P=P&&P.plotOptions&&P.plotOptions.series.animation&&P.plotOptions.series.animation.duration||0,qa=G._rtAjaxObj,ya=function(){q.clearChart&&q.clearChart();pa&&(G._toClearChart=setTimeout(ya,pa))},ha=function(){var h=Oa,h=h+((-1===Oa.indexOf("?")?"?num=":"&num=")+Wa());Fa&&(h+="&dataStamp="+Fa);qa.open&&qa.abort();qa.get(h);G._rtAjaxLatencyStart=new Date},0>=ia?(G._toRealtime=clearTimeout(G._toRealtime),qa&&qa.abort()):10>ia&&(ia=10),G._toClearChart=
clearTimeout(G._toClearChart),0<pa&&(10>pa?pa=10:G._toClearChart=setTimeout(ya,pa)),G._rtStaticRefreshMS=ia,V&&(void 0===G._rtPaused&&(G._rtPaused=!1),G._rtDataUrl=Oa,G.lastSetValues=null,qa=G._rtAjaxObj||(G._rtAjaxObj=new ga.ajax),qa.onSuccess=function(A,F,O,V){if(!q.disposed){var P=h.hcObj&&h.hcObj.logic;O=P.linearDataParser&&P.linearDataParser(A,P.multisetRealtime);G._rtAjaxLatencyStart&&(G._rtAjaxLatency=new Date-G._rtAjaxLatencyStart);if(q.isActive()&&O&&Z&&(Z.realtimeUpdate||P.realtimeUpdate)){Fa=
O.dataStamp?O.dataStamp:null;O.interval=1E3>ia?ia:1E3;F=q.getDataJSON();Z.realtimeUpdate?Z.realtimeUpdate(O):P.realtimeUpdate(O);h._rtLastUpdatedData=P.multisetRealtime?O:q.getDataJSON();P=(P.realtimeDrawingLatency||0)+(G._rtAjaxLatency||0);ga.raiseEvent("realtimeUpdateComplete",{data:A,updateObject:O,prevData:F.values,source:"XmlHttpRequest",url:V,networkLatency:G._rtAjaxLatency,latency:P},Ba.sender);try{mb.FC_ChartUpdated&&mb.FC_ChartUpdated(Ba.sender.id)}catch(z){setTimeout(function(){throw z;
},1)}G._rtPaused||(P>=G._rtStaticRefreshMS&&(P=G._rtStaticRefreshMS-1),G._toRealtime=setTimeout(ha,G._rtStaticRefreshMS-P))}else G._toRealtime=clearTimeout(G._toRealtime)}},qa.onError=function(h,F,A,O){G._rtAjaxLatencyStart&&(G._rtAjaxLatency=new Date-G._rtAjaxLatencyStart);ga.raiseEvent("realtimeUpdateError",{source:"XmlHttpRequest",url:O,xmlHttpRequestObject:F.xhr,error:h,httpStatus:F.xhr&&F.xhr.status?F.xhr.status:-1,networkLatency:G._rtAjaxLatency},Ba.sender);G._toRealtime=q.isActive()?setTimeout(ha,
ia):clearTimeout(G._toRealtime)},G._rtPaused||(G._toRealtime=za(ha,P>ia?P:ia,G._toRealtime))),q.removeEventListener("realtimeUpdateComplete",O),ja.dataObj&&ja.dataObj.alerts&&ja.dataObj.alerts&&ja.dataObj.alerts.alert&&ja.dataObj.alerts.alert.length&&q.addEventListener("realtimeUpdateComplete",O))};ga.addEventListener(["beforeDataUpdate","beforeRender"],function(A){A=A.sender;var q=A.__state;A.jsVars&&(A.jsVars._rtLastUpdatedData=null);q._toRealtime&&(q._toRealtime=clearTimeout(q._toRealtime));q._toClearChart&&
(q._toClearChart=clearTimeout(q._toClearChart));q._rtAjaxLatencyStart=null;q._rtAjaxLatency=null});ga.addEventListener(["renderComplete","dataUpdated"],function(A){var q=A.sender.__state;q&&(void 0===q.rtPreInit&&(q.rtPreInit=!1),q._rtPaused&&delete q._rtPaused,q.rtStateChanged||(q.rtStateChanged=!0,ab.apply(this,arguments)))});ga.core.addEventListener("beforeDispose",function(A){A=A.sender.__state;A._toRealtime&&(A._toRealtime=clearTimeout(A._toRealtime));A._toClearChart&&(A._toClearChart=clearTimeout(A._toClearChart))});
ga.core.addEventListener("drawComplete",ab)}]);
FusionCharts.register("module",["private","modules.renderer.js-widgets",function(){function ga(){}function mb(a,e,c,d){e=h(e,d);a=h(a,c);return e&&a?a/c==e/d?c/a:Math.min(c/a,d/e):1}function ya(a,e){var c=a.labels,d=c._textY,b=c._righttX,c=c._leftX,f,k,g=e.length;for(f=0;f<g;f+=1)if(k=e[f]&&e[f].label)k.y=d,k.x=k.align===bb?b:c}function Wa(a,e,c,d){var b,f,k,g,p,m;c instanceof Array||(c=this.colorManager.getPlotColor(0));if(a&&0<a.length){for(f=k=a.length-1;0<=f;--f)if(b=a[f])b.minvalue=d.numberFormatter.getCleanValue(b.minvalue),
b.maxvalue=d.numberFormatter.getCleanValue(b.maxvalue),null===b.minvalue&&(null!==b.maxvalue?b.minvalue=b.maxvalue:f!==k&&a.splice(f,1)),void 0!==b.label&&(b.label=$(b.label)),void 0!==b.name&&(b.name=$(b.name)),null!==b.maxvalue&&b.minvalue>b.maxvalue&&(g=b.minvalue,b.minvalue=b.maxvalue,b.maxvalue=g);a.sort(Mb);a[0].code||(a[0].code=c[0]);void 0===G(a[0].alpha)&&(a[0].alpha=Pa);f=0;for(k=a.length-1;f<k;f+=1)if(g=f+1,b=a[f],d=a[g],d.code||(d.code=c[g]),void 0===G(d.alpha)&&(d.alpha=Pa),null===b.maxvalue&&
(b.maxvalue=d.minvalue),b.maxvalue>d.minvalue){if(b.maxvalue>d.maxvalue){g=V(b);g.maxvalue=b.maxvalue;m=g.minvalue=d.maxvalue;for(p=f+2;p<k&&a[p].minvalue<m;p+=1);a.splice(p,0,g);k+=1}b.maxvalue=d.minvalue}b=a[f];null===b.maxvalue&&(b.maxvalue=b.minvalue)}a&&0<a.length||(e||(e={code:"CCCCCC",alpha:"100",bordercolor:"000000",borderalpha:"100"}),a=[e],this.defaultAsigned=!0);this.colorArr=a}var ja=this,A=ja.hcLib,za=A.Raphael,O=A.BLANKSTRING,ab=A.createTrendLine,Ba=A.createContextMenu,q=A.pluck,G=A.getValidValue,
h=A.pluckNumber,Z=A.getFirstDefinedValue,ib=A.getColorCodeString,P=A.FC_CONFIG_STRING,V=A.extend2,ia=A.getDashStyle,pa=A.hashify,Oa=A.hasSVG,Fa=A.falseFN,qa=A.getFirstValue,zb=A.getFirstColor,ha=A.graphics.getDarkColor,W=A.graphics.getLightColor,F=A.graphics.convertColor,ua=A.graphics.parseColor,Ab=A.graphics.parseAlpha,Ga=A.COLOR_TRANSPARENT,z=A.chartAPI,Xa=A.parseTooltext,Tb=z.singleseries,v=A.COMMASTRING,jb=A.ZEROSTRING,Jb=A.ONESTRING,Ub=/\\,/ig,$=A.parseUnsafeString,Vb=A.HCstub,na=ja.window,Ya=
/msie/i.test(na.navigator.userAgent)&&!na.opera,vb=A.regex.hexcode,ka="rgba(192,192,192,"+(Ya?.002:1E-6)+")",Wb=parseFloat,Xb=parseInt,Ta=Math,ra=Ta.round,Kb=Ta.ceil,Ca=Ta.max,Ia=Ta.min,Bb=Ta.abs,Lb=Ta.atan2,la=Ta.pow,pb=Ta.sqrt,db=Ta.PI/180,kb=A.regex.dropHash,Cb=A.toPrecision,Yb=A.isArray,nb=A.HASHSTRING,R=A.toRaphaelColor,Ta=A.TOUCH_THRESHOLD_PIXELS,Zb=A.CLICK_THRESHOLD_PIXELS,Db=void 0!==na.document.documentElement.ontouchstart,Eb=Db?Ta:Zb,$b=A.getPosition,ma=A.plotEventHandler,Mb,Fb,Gb,Hb,lb,
Nb,Ob,Pb,ac={left:"start",right:"end",center:"middle"},wb={"true":void 0,"false":"crisp"},bc=function(a,e,c){var d=0,b=a.length;if(c)for(;d<b;d++){if(!1===e.call(c,a[d],d,a))return d}else for(;d<b;d++)if(!1===e.call(a[d],a[d],d,a))return d},wa=function(a,e){var c;a||(a={});for(c in e)a[c]=e[c];return a},qb=function(a){return"object"===typeof a},Za=function(a){return"string"===typeof a},da=function(a){return void 0!==a&&null!==a},xb=Ya&&!Oa?"visible":"",yb=A.regex.startsRGBA,Ja=A.setLineHeight,Qb=
A.pluckFontSize,Ka=A.POSITION_MIDDLE,La=A.POSITION_TOP,rb=A.POSITION_BOTTOM,bb=A.POSITION_RIGHT,Ha=A.POSITION_LEFT,Da=A.POSITION_MIDDLE,Pa=A.HUNDREDSTRING,ob=A.PXSTRING,Rb=A.COMMASPACE,xa={right:"end",left:"start",middle:"middle",start:"start",end:"end",center:"middle",undefined:"","":""},cc=function(){return function(a,e,c){var d,b=this,f=this._Attr,k=za.vml?-1.5:0,g=za.vml?-1.5:0,p;f||(f=b._Attr={});Za(a)&&da(e)&&(d=a,a={},a[d]=e);if(Za(a)||void 0===a)b="angle"==a?b._Attr[a]:b._attr(a);else for(d in a)e=
a[d],"angle"===d?(f[d]=e,p=e*db,f.tooltipPos[0]=f.cx+f.toolTipRadius*Math.cos(p),f.tooltipPos[1]=f.cy+f.toolTipRadius*Math.sin(p),f.prevValue=e,c&&c.duration?b.animate({transform:"R"+e+","+k+","+g},c.duration,"easeIn"):b.attr({transform:"R"+e+","+k+","+g})):b._attr(d,e);return b}},sb=function(a){var e=[],c;(function(a){(c=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(a))?e=[parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10),parseFloat(c[4])]:
(c=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(a))&&(e=[parseInt(c[1],16),parseInt(c[2],16),parseInt(c[3],16),1])})(a);return{get:function(c){return e&&!isNaN(e[0])?"rgb"===c?"rgb("+e[0]+","+e[1]+","+e[2]+")":"hex"===c?"#"+("000000"+(e[0]<<16|e[1]<<8|e[2]).toString(16)).slice(-6):"a"===c?e[3]:"rgba("+e.join(",")+")":a},brighten:function(a){if(!isNaN(a)&&0!==a){var b;for(b=0;3>b;b++)e[b]+=parseInt(255*a,10),0>e[b]&&(e[b]=0),255<e[b]&&(e[b]=255)}return this},setOpacity:function(a){e[3]=
a;return this}}},Ya=V({},A.defaultGaugePaletteOptions);ga.prototype={numDecimals:function(a){a=Cb(a,10);a=Math.abs(a);a=Cb(a-Math.floor(a),10);a=String(a).length-2;return 0>a?0:a},toRadians:function(a){return a/180*Math.PI},toDegrees:function(a){return a/Math.PI*180},flashToStandardAngle:function(a){return-1*a},standardToFlashAngle:function(a){return-1*a},flash180ToStandardAngle:function(a){var e=360-(0>(a%=360)?a+360:a);return 360==e?0:e},getAngularPoint:function(a,e,c,d){d*=Math.PI/180;a+=c*Math.cos(d);
e-=c*Math.sin(d);return{x:a,y:e}},remainderOf:function(a,e){var c=a%e,d=void 0,d=la(10,void 0===d?2:d),c=ra(Number(String(c*d)));return c/=d},boundAngle:function(a){return 0<=a?ga.prototype.remainderOf(a,360):360-ga.prototype.remainderOf(Math.abs(a),360)},toNearestTwip:function(a){var e=0>a?-1:1;a=Math.abs(a);a=ra(100*a);var c=Math.floor(a/5);return(2<Number(String(a-5*c))?5*c+5:5*c)/100*e},roundUp:function(a,e){var c=la(10,void 0===e?2:e);a=ra(Number(String(a*c)));return a/=c}};ga.prototype.constructor=
ga;A.MathExt=ga;Fb=function(a,e,c,d,b,f,k,g){var p=a[P].smartLabel,m=e.chart,l=a.chart,n,s,r=0;e=a.title;k=a.subtitle;var t=e.text,u=k.text;b=h(m.captionpadding,b,2);var B=0,L=0,r=0,w=h(m.captiononright,0),q=G(m.captionposition,"top").toLowerCase(),m=0,x={left:0,right:0};g=g.snapLiterals||(g.snapLiterals={});var y=0,D=0;t!==O&&(n=e.style,B=h(parseInt(n.fontHeight,10),parseInt(n.lineHeight,10),12),h(parseInt(n.fontSize,10),10));u!==O&&(s=k.style,L=h(parseInt(s.fontHeight,10),parseInt(s.lineHeight,
10),12),r=h(parseInt(s.fontSize,10),10));if(0<B||0<L){p.setStyle(n);n=p.getSmartText(e.text,c,d);0<n.width&&(n.width+=2,m=n.height);p.setStyle(s);s=p.getSmartText(k.text,c,d-m);0<s.width&&(s.width+=2);p=n.height+0+r/2;switch(q){case "middle":e.y=d/2-n.height;k.y=e.y+p;break;case "bottom":k.y=d-l.marginBottom-l.marginTop-s.height;e.y=k.y-(0<n.height?p:0);break;default:e.y=0,k.y=p}r=Math.max(n.width,s.width);a.title.text=n.text;n.tooltext&&(a.title.originalText=n.tooltext);a.subtitle.text=s.text;s.tooltext&&
(a.subtitle.originalText=s.tooltext);0<r&&(r+=b);a=Math.min(r,c);w?(e.align=k.align=xa.start,x.right=a,e.x=f-r+b,k.x=f-r+b):(e.align=k.align=xa.end,x.left=a,e.x=r-b,k.x=r-b,y=a,D=s.width);e._captionWidth=n.width;k._subCaptionWidth=s.width;g.captionstartx=e.x-y;g.captionstarty=e.y;g.captionwidth=n.width;g.captionheight=m||0;g.captionendx=g.captionstartx+g.captionwidth;g.captionendy=g.captionstarty+g.captionheight;g.subcaptionstartx=k.x-D;g.subcaptionstarty=k.y;g.subcaptionwidth=0<s.width?s.width:0;
g.subcaptionheight=0<s.height?s.height:0;g.subcaptionendx=g.subcaptionstartx+g.subcaptionwidth;g.subcaptionendy=g.subcaptionstarty+g.subcaptionheight}return x};Gb=function(a,e,c,d,b,f){var k=a.chart,g=e.chart;e=a.title;var p=h(g.captionpadding,2),g=h(g.captiononright,0);a=a.subtitle;f=f.snapLiterals;var m=0,l=0;k.spacingRight=k.spacingLeft=0;da(d)||(d=0);da(b)||(b=0);g?(c-=k.marginRight,a.align=e.align=xa.start,e.x=a.x=c+p+b+2):(a.align=e.align=xa.end,e.x=a.x=k.marginLeft-k.spacingLeft-p-d-2,m=e._captionWidth,
l=a._subCaptionWidth);f.captionstartx=e.x-m;f.subcaptionstartx=a.x-l;f.captionendx=f.captionstartx+f.captionwidth;f.subcaptionendx=f.subcaptionstartx+f.subcaptionwidth};Hb=function(a,e,c,d,b){this.userMin=a;this.userMax=e;this.numMajorTM=h(d.majorTMNumber,-1);this.numMinorTM=h(d.minorTMNumber,5);this.adjustTM=d.adjustTM;this.tickValueStep=h(d.tickValueStep,1);this.showLimits=h(d.showLimits,1);this.showTickValues=h(d.showTickValues,1);this.nf=b;this.stopMaxAtZero=c;this.setMinAsZero=!d.setAdaptiveMin;
this.upperLimitDisplay=d.upperLimitDisplay;this.lowerLimitDisplay=d.lowerLimitDisplay;this.userMaxGiven=null===this.userMax||void 0===this.userMax||""===this.userMax?!1:!0;this.userMinGiven=null===this.userMin||void 0===this.userMin||""===this.userMin?!1:!0;this.majorTM=[];this.minorTM=[];this.MathExt=new ga};Hb.prototype={setAxisCoords:function(a,e){this.startAxisPos=a;this.endAxisPos=e},calculateLimits:function(a,e){var c=!0,d=!0,b=Number(this.userMax),f=Number(this.userMin),k,g;if(this.userMaxGiven&&
this.userMinGiven)b>a&&(a=b),f<e&&(e=f);else if(isNaN(a)&&(a=.9,d=!1),isNaN(e)&&(e=0,c=!1),a===e&&0===a&&(isNaN(b)||(a=b),isNaN(b)||0===b))a=.9;f=Math.floor(Math.log(Math.abs(a))/Math.LN10);k=Math.floor(Math.log(Math.abs(e))/Math.LN10);k=Math.max(k,f);f=la(10,k);2>Math.abs(a)/f&&2>Math.abs(e)/f&&(k--,f=la(10,k));k=Math.floor(Math.log(a-e)/Math.LN10);k=la(10,k);0<a-e&&10<=f/k&&(f=k);k=(Math.floor(a/f)+1)*f;0>e?g=-1*(Math.floor(Math.abs(e/f))+1)*f:this.setMinAsZero?g=0:(g=Math.floor(Math.abs(e/f)-1)*
f,g=0>g?0:g);this.stopMaxAtZero&&0>=a&&(k=0);this.max=!1===this.userMaxGiven||!0===this.userMaxGiven&&b<a&&d?k:b;this.min=!1===this.userMinGiven||!0===this.userMinGiven&&Number(this.userMin)>e&&c?g:Number(this.userMin);this.min>this.max?this.min==Number(this.userMin)&&this.max==b?(c=this.min,this.min=this.max,this.max=c):this.min==Number(this.userMin)?this.max=this.min+1:this.max==b&&(this.min=this.max-1):this.min==this.max&&(this.max=this.min+1);this.range=Math.abs(this.max-this.min);this.interval=
f;this.calcTickInterval()},calcTickInterval:function(){var a,e,c=0;-1!=this.numMajorTM&&2>this.numMajorTM&&(this.numMajorTM=2);!1===this.userMinGiven&&!1===this.userMaxGiven&&-1!==this.numMajorTM?(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,a=this.getDivisibleRange(this.min,this.max,this.numMajorTM,this.interval,!0),e=a-this.range,this.range=a,0<this.max?this.max+=e:this.min-=e):(this.numMajorTM=-1==this.numMajorTM?5:this.numMajorTM,!0===this.adjustTM&&(a=function(a,b){for(var c=0,e=1,g;;){g=
b.numMajorTM+c*e;g=0===g?1:g;if(b.isRangeDivisible(a,g,b.interval))break;c=-1==e||c>b.numMajorTM?++c:c;if(25<c){g=b.numMajorTM;break}e=c<=b.numMajorTM?-1*e:1}b.numMajorTM=1<g?g:b.numMajorTM},e=this.numMajorTM,a(this.range,this),2===this.numMajorTM&&(this.numMajorTM=e,a(this.range+1,this),c=1)));this.majorTickInt=(this.max-this.min+c)/(this.numMajorTM-1)},isRangeDivisible:function(a,e,c){return this.MathExt.numDecimals(a/(e-1))>this.MathExt.numDecimals(c)?!1:!0},getDivisibleRange:function(a,e,c,d,
b){if(3>c)return this.range;a=Math.abs(e-a);e=a/(c-1);this.isRangeDivisible(a,c,d)||(b&&Number(e)/Number(d)<(1<d?2:.5)&&(d/=10),e=(Math.floor(e/d)+1)*d,a=e*(c-1));return a},calculateTicks:function(){this.majorTM=[];this.minorTM=[];for(var a=0,e,c,d=this.numMajorTM,b=this.numMinorTM,f=this.nf,k=this.tickValueStep,g=$(this.lowerLimitDisplay),p=$(this.upperLimitDisplay),m=this.majorTickInt,l=this.min,n=this.showTickValues,s=!1,r=h(this.showLimits,n);a<d;a+=1)e=a<d-1?Cb(Number(l+m*a),10):this.max,c=f.scale(e),
s=!1,0!==a%k&&a!==d-1?c=O:0===a||a===d-1?r?0===a&&g?(c=g,s=!0):a==d-1&&p&&(c=p,s=!0):c=O:n||(c=O),this.majorTM.push({displayValue:c,isString:s,value:e});c=m/(b+1);for(a=0;a<d-1;a+=1)for(e=1;e<=b;e+=1)this.minorTM.push(this.majorTM[a].value+c*e)},returnDataAsTick:function(a,e){var c={};c.value=a;c.displayValue=this.nf.dataLabels(a);c.showValue=e;return c},getMax:function(){return this.max},getMin:function(){return this.min},getMajorTM:function(){return this.majorTM},getMinorTM:function(){return this.minorTM},
getAxisPosition:function(a){if(void 0===this.startAxisPos||void 0===this.endAxisPos)throw Error("Cannot calculate position, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");return this.startAxisPos+(this.endAxisPos-this.startAxisPos)/(this.max-this.min)*(a-this.min)},getValueFromPosition:function(a){if(void 0===this.startAxisPos||void 0===this.endAxisPos)throw Error("Cannot calculate value, as axis co-ordinates have not been defined. Please use setAxisCoords() method to define the same.");
var e,c;e=this.max-this.min;c=a-this.startAxisPos;return c/(c+(this.endAxisPos-a))*e+this.min}};z("gaugebase",{creditLabel:!1,defaultPaletteOptions:Ya,multiValueGauge:!1,decimals:2,formatnumberscale:0,drawAnnotations:!0,useScaleRecursively:!0,includeColorRangeInLimits:!1,init:function(a,e,c){var d=c.jsVars;this.rtLatestSeriesData=d&&d._rtLastUpdatedData?d._rtLastUpdatedData:null;return z.base.init.apply(this,arguments)},chart:function(a,e){var c=this.name,d=this.dataObj||{},b=d.chart||{},f=this.defaultSeriesType,
k=this.realtimeEnabled,g=this.colorManager,p,m=d.alerts,l,n,s,r,t,u,B,L,w,T,x,y,D;n=Vb(d,a,e,this);t=n.chart;l=n[P];n.labels.smartLabel=l.smartLabel=this.smartLabel;this.width=a;this.height=e;l.width=a;l.height=e;r=n.plotOptions;t.useRoundEdges=1==b.useroundedges;l.tooltext=b.plottooltext;l.targettooltext=b.targettooltext;p=(t.is3D=s=l.is3d=/3d$/.test(f))?A.chartPaletteStr.chart3D:A.chartPaletteStr.chart2D;t.defaultSeriesType=f;u=0<b.palette&&6>b.palette?b.palette:h(this.paletteIndex,1);--u;t.paletteIndex=
u;f=V({},d.colorrange);this.colorRangeGetter=new Wa(f.color,void 0,this.defaultPaletteOptions.paletteColors[u],this);t.events.click=n.plotOptions.series.point.events.click=this.linkClickFN;void 0!==q(b.clickurl)&&(t.link=b.clickurl,t.style.cursor="pointer",n.plotOptions.series.point.events.click=function(){t.events.click.call({link:b.clickurl})});B=q(b.basefont,"Verdana,sans");L=Qb(b.basefontsize,10);w=q(b.basefontcolor,g.getColor("baseFontColor"));f=q(b.outcnvbasefont,B);x=Qb(b.outcnvbasefontsize,
L);u=x+ob;T=q(b.outcnvbasefontcolor,w).replace(/^#?([a-f0-9]+)/ig,"#$1");L+=ob;w=w.replace(/^#?([a-f0-9]+)/ig,"#$1");this.trendStyle=this.outCanvasStyle={fontFamily:f,color:T,fontSize:u};y=Ja(this.trendStyle);this.inCanvasStyle={fontFamily:B,fontSize:L,color:w};D=Ja(this.inCanvasStyle);l.trendStyle=l.outCanvasStyle={fontFamily:f,color:T,fontSize:u};V(n.legend,{title:{style:{fontFamily:q(b.legendcaptionfont,f),fontSize:h(b.legendcaptionfontsize,x)+"px",color:pa(q(b.legendcaptionfontcolor,T)),fontWeight:h(b.legendcaptionfontbold,
1)?"bold":"normal"},align:ac[q(b.legendcaptionalignment)]},itemStyle:{fontFamily:q(b.legenditemfont,f),fontSize:h(b.legenditemfontsize,x)+"px",color:pa(q(b.legenditemfontcolor,T)),fontWeight:h(b.legenditemfontbold)?"bold":"normal"},itemHiddenStyle:{fontFamily:f,fontSize:x+"px",color:pa(q(b.legenditemhiddencolor,T))},itemHoverStyle:{color:pa(q(b.legenditemhoverfontcolor,b.legenditemfontcolor,T))}});n.legend.title.style.lineHeight=Ja(n.legend.title.style);n.legend.itemStyle.lineHeight=Ja(n.legend.itemStyle);
n.legend.itemHiddenStyle.lineHeight=Ja(n.legend.itemHiddenStyle);l=(l=qa(b.valuebordercolor,O))?F(l,h(b.valueborderalpha,b.valuealpha,100)):O;l=r.series.dataLabels.style={fontFamily:q(b.valuefont,B),fontSize:q(b.valuefontsize,parseInt(L,10))+ob,color:F(q(b.valuefontcolor,w),h(b.valuefontalpha,b.valuealpha,100)),fontWeight:h(b.valuefontbold)?"bold":"normal",fontStyle:h(b.valuefontitalic)?"italic":"normal",border:l||b.valuebgcolor?h(b.valueborderthickness,1)+"px solid":void 0,borderColor:l,borderThickness:h(b.valueborderthickness,
1),borderPadding:h(b.valueborderpadding,2),borderRadius:h(b.valueborderradius,0),backgroundColor:b.valuebgcolor?F(b.valuebgcolor,h(b.valuebgalpha,b.valuealpha,100)):O,borderDash:h(b.valueborderdashed,0)?ia(h(b.valueborderdashlen,4),h(b.valueborderdashgap,2),h(b.valueborderthickness,1)):"none"};Ja(l);r.series.dataLabels.color=l.color;this.isDataLabelBold&&(l.fontWeight="bold",delete l.lineHeight,Ja(l));n.tooltip.style={fontFamily:B,fontSize:L,lineHeight:D,color:w};n.title.style={fontFamily:q(b.captionfont,
f),color:q(b.captionfontcolor,T).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.captionfontsize,x+3)+ob,fontWeight:0===h(b.captionfontbold)?"normal":"bold"};n.title.align=q(b.captionalignment,Ka);n.title.isOnTop=h(b.captionontop,1);n.title.alignWithCanvas=h(b.aligncaptionwithcanvas,this.alignCaptionWithCanvas,1);n.title.horizontalPadding=h(b.captionhorizontalpadding,n.title.alignWithCanvas?0:15);Ja(n.title.style);n.subtitle.style={fontFamily:q(b.subcaptionfont,b.captionfont,f),color:q(b.subcaptionfontcolor,
b.captionfontcolor,T).replace(/^#?([a-f0-9]+)/ig,"#$1"),fontSize:h(b.subcaptionfontsize,h(Ca(h(b.captionfontsize)-3,-1),x)+h(this.subTitleFontSizeExtender,1))+ob,fontWeight:0===h(b.subcaptionfontbold,this.subTitleFontWeight,b.captionfontbold)?"normal":"bold"};n.subtitle.align=n.title.align;n.subtitle.isOnTop=n.title.isOnTop;n.subtitle.alignWithCanvas=n.title.alignWithCanvas;n.subtitle.horizontalPadding=n.title.horizontalPadding;Ja(n.subtitle.style);n.chart.trendPointStyle={style:this.trendStyle};
n.orphanStyles={defaultStyle:{style:V({},this.inCanvasStyle)}};n.chart.colorRangeStyle={style:{fontFamily:B,fontSize:L,lineHeight:D,color:w}};Ja(n.chart.colorRangeStyle);l=h(b.scaleonresize,1);t.origW=r=h(b.origw,l?this.origRenderWidth:a);t.origH=l=h(b.origh,l?this.origRenderHeight:e);r=(t.autoScale=B=h(b.autoscale,1))?mb(r,l,a,e):1;this.scaleFactor=t.scaleFactor=r;this.createGaugeAxis&&this.createGaugeAxis(d,n,{fontFamily:f,fontSize:u,lineHeight:y,color:T});this.parseStyles(n);delete n.xAxis.labels.style.backgroundColor;
delete n.xAxis.labels.style.borderColor;delete n.yAxis[0].labels.style.backgroundColor;delete n.yAxis[0].labels.style.borderColor;delete n.yAxis[1].labels.style.backgroundColor;delete n.yAxis[1].labels.style.borderColor;this.showTooltip=h(b.showtooltip,this.showTooltip,1);this.tooltipSepChar=q(b.tooltipsepchar,Rb);this.showValues=h(b.showvalues,b.showvalue,this.showValues,1);this.seriesNameInToolTip=h(b.seriesnameintooltip,1);this.showTooltip||(n.tooltip.enabled=!1);n.plotOptions.series.connectNullData=
h(b.connectnulldata,0);t.backgroundColor={FCcolor:{color:q(b.bgcolor,g.getColor(p.bgColor)),alpha:q(b.bgalpha,g.getColor(p.bgAlpha)),angle:q(b.bgangle,g.getColor(p.bgAngle)),ratio:q(b.bgratio,g.getColor(p.bgRatio))}};p=h(b.showborder,s?0:1);t.borderWidth=p?h(b.borderthickness,1):0;t.borderRadius=h(b.borderradius,0);t.borderDashStyle=h(b.borderdashed,0)?ia(h(b.borderdashlen,4),h(b.borderdashgap,2),t.borderWidth):"none";t.borderColor=F(q(b.bordercolor,s?"#666666":g.getColor("borderColor")),q(b.borderalpha,
s?"100":g.getColor("borderAlpha")));t.plotBackgroundColor=t.plotBorderColor=Ga;t.plotBorderWidth=0;t.plotShadow=0;t.bgSWF=q(b.bgimage,b.bgswf);t.bgSWFAlpha=h(b.bgimagealpha,b.bgswfalpha,100);s=q(b.bgimagedisplaymode,"none").toLowerCase();p=G(b.bgimagevalign,O).toLowerCase();f=G(b.bgimagehalign,O).toLowerCase();"tile"==s||"fill"==s||"fit"==s?(p!=La&&p!=Da&&p!=rb&&(p=Da),"left"!=f&&f!=Da&&"right"!=f&&(f=Da)):(p!=La&&p!=Da&&p!=rb&&(p=La),"left"!=f&&f!=Da&&"right"!=f&&(f="left"));t.bgImageDisplayMode=
s;t.bgImageVAlign=p;t.bgImageHAlign=f;t.bgImageScale=h(b.bgimagescale,100);t.logoURL=G(b.logourl);t.logoPosition=q(b.logoposition,"tl").toLowerCase();t.logoAlpha=h(b.logoalpha,100);t.logoLink=G(b.logolink);t.logoScale=h(b.logoscale,100);t.logoLeftMargin=h(b.logoleftmargin,0);t.logoTopMargin=h(b.logotopmargin,0);t.annRenderDelay=G(b.annrenderdelay);s=n.tooltip.style;s.backgroundColor=F(q(s.backgroundColor,b.tooltipbgcolor,b.hovercapbgcolor,b.hovercapbg,g.getColor("toolTipBgColor")),q(b.tooltipbgalpha,
100));s.borderColor=F(q(s.borderColor,b.tooltipbordercolor,b.hovercapbordercolor,b.hovercapborder,g.getColor("toolTipBorderColor")),q(b.tooltipborderalpha,100));n.tooltip.constrain=h(b.constraintooltip,1);n.tooltip.shadow=h(b.showtooltipshadow,b.showshadow,1)?{enabled:!0,opacity:Ca(h(b.tooltipbgalpha,100),h(b.tooltipborderalpha,100))/100}:!1;s.borderWidth=h(b.tooltipborderthickness,1)+"px";b.tooltipborderradius&&(s.borderRadius=h(b.tooltipborderradius,1)+"px");n.tooltip.style.padding=h(b.tooltippadding,
this.tooltippadding,3)+"px";b.tooltipcolor&&(s.color=zb(b.tooltipcolor));t.rotateValues=h(b.rotatevalues,0);t.placeValuesInside=h(b.placevaluesinside,0);t.valuePosition=b.valueposition;t.valuePadding=h(b.valuepadding,4);n.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,this.defaultPlotShadow,this.colorManager.getColor("showShadow"));t.useRoundEdges&&(n.plotOptions.series.shadow=h(b.showshadow,b.showcolumnshadow,1),n.plotOptions.series.borderRadius=1,n.tooltip.borderRadius=2);n.title.text=
$(b.caption);n.subtitle.text=$(b.subcaption);b.showtooltip==jb&&(n.tooltip.enabled=!1);g=h(b.plotspacepercent,20);if(80<g||0>g)g=20;this.plotSpacePercent=n.plotOptions.series.groupPadding=g/200;this.parseExportOptions(n);t.dataStreamURL=q(b.datastreamurl,"");t.refreshInterval=h(b.refreshinterval,1);t.dataStamp=b.datastamp;t.useMessageLog=h(b.usemessagelog,0);t.messageLogWPercent=Ia(h(b.messagelogwpercent,80),100);t.messageLogHPercent=Ia(h(b.messageloghpercent,70),100);t.messageLogShowTitle=h(b.messagelogshowtitle,
1);t.messageLogTitle=q(b.messagelogtitle,"Message Log");t.messageLogColor=q(b.messagelogcolor,"#fbfbfb");t.messageGoesToJS=h(b.messagegoestojs,0);t.messageGoesToLog=h(b.messagegoestolog,1);t.messageJSHandler=q(b.messagejshandler,"");t.messagePassAllToJS=h(b.messagepassalltojs,0);t.messageLogIsCancelable=h(b.messagelogiscancelable,1);t.alwaysShowMessageLogMenu=h(b.alwaysshowmessagelogmenu,t.useMessageLog);t.showRTMenuItem=h(b.showrtmenuitem,0);g=h(b.showgaugeborder,1);t.gaugeBorderColor=q(b.gaugebordercolor,
this.gaugeBorderColor,"333333");t.gaugeBorderThickness=g?h(b.gaugeborderthickness,this.gaugeBorderThickness,2):0;t.gaugeBorderAlpha=q(b.gaugeborderalpha,Pa);t.gaugeFillColor=q(b.gaugefillcolor,b.ledbgcolor,"000000");t.useSameFillColor=h(b.usesamefillcolor,0);t.useSameFillBgColor=h(b.usesamefillbgcolor,t.useSameFillColor);t.colorRangeFillMix=Z(b.colorrangefillmix,b.gaugefillmix,this.colorRangeFillMix,"{light-10},{dark-10},{light-10},{dark-10}");t.colorRangeFillRatio=Z(b.colorrangefillratio,b.gaugefillratio,
this.colorRangeFillRatio,b.gaugefillratio,"0,10,80,10");t.showColorRangeBorder=h(b.showcolorrangeborder,b.showgaugeborder,this.showColorRangeBorder,0);t.colorRangeBorderColor=q(b.colorrangebordercolor,b.gaugebordercolor,"{dark-20}");t.colorRangeBorderThickness=g?h(b.colorrangeborderthickness,b.gaugeborderthickness,1):0;t.colorRangeBorderAlpha=h(b.colorrangeborderalpha,b.gaugeborderalpha,100);t.roundRadius=h(b.roundradius,b.gaugeroundradius,0);t.showShadow=h(b.showshadow,1);t.gaugeType=h(b.gaugetype,
this.gaugeType,1);this.preSeriesAddition&&this.preSeriesAddition(n,d,a,e);this.series(d,n,c,a,e);this.postSeriesAddition&&this.postSeriesAddition(n,d,a,e);this.configureAxis&&this.configureAxis(n,d);this.spaceManager&&this.spaceManager(n,d,a,e);this.postSpaceManager&&this.postSpaceManager();this.updateSnapPoints&&this.updateSnapPoints(n);this.latestDataUpdater&&this.latestDataUpdater(n,d,a,e);c=t.toolbar={button:{}};g=c.button;g.scale=h(b.toolbarbuttonscale,1.15);g.width=h(b.toolbarbuttonwidth,15);
g.height=h(b.toolbarbuttonheight,15);g.radius=h(b.toolbarbuttonradius,2);g.spacing=h(b.toolbarbuttonspacing,5);g.fill=F(q(b.toolbarbuttoncolor,"ffffff"));g.labelFill=F(q(b.toolbarlabelcolor,"cccccc"));g.symbolFill=F(q(b.toolbarsymbolcolor,"ffffff"));g.hoverFill=F(q(b.toolbarbuttonhovercolor,"ffffff"));g.stroke=F(q(b.toolbarbuttonbordercolor,"bbbbbb"));g.symbolStroke=F(q(b.toolbarsymbolbordercolor,"9a9a9a"));g.strokeWidth=h(b.toolbarbuttonborderthickness,1);g.symbolStrokeWidth=h(b.toolbarsymbolborderthickness,
1);d=g.symbolPadding=h(b.toolbarsymbolpadding,5);g.symbolHPadding=h(b.toolbarsymbolhpadding,d);g.symbolVPadding=h(b.toolbarsymbolvpadding,d);g=c.position=q(b.toolbarposition,"tr").toLowerCase();switch(g){case "tr":case "tl":case "br":case "bl":break;default:g="tr"}d=c.hAlign="left"===(O+b.toolbarhalign).toLowerCase()?"l":g.charAt(1);g=c.vAlign="bottom"===(O+b.toolbarvalign).toLowerCase()?"b":g.charAt(0);c.hDirection=h(b.toolbarhdirection,"r"===d?-1:1);c.vDirection=h(b.toolbarvdirection,"b"===g?-1:
1);c.vMargin=h(b.toolbarvmargin,6);c.hMargin=h(b.toolbarhmargin,10);c.x=h(b.toolbarx,"l"===d?0:a);c.y=h(b.toolbary,"t"===g?0:e);na.console&&na.console.log&&na.FC_DEV_ENVIRONMENT&&console.log(n);h(b.showrtmenuitem,0)?(n.callbacks||(n.callbacks=[])).push(this.drawRTMenuButtons):t.useMessageLog&&t.alwaysShowMessageLogMenu&&t.messageGoesToLog&&(n.callbacks||(n.callbacks=[])).push(this.drawMLMenuButtons);k&&m&&(this.hcJSON.alerts=this.parseAlertObj(m));return n},parseAlertObj:function(){return lb.parseAlertObj.apply(this,
arguments)},drawMLMenuButtons:function(){var a=this.options,e=a.chart,c=this.menu||(this.menu=[]),d=this.toolbar,a=a[P],b;c.push(b=Ba({chart:this,basicStyle:a&&a.outCanvasStyle||this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){A&&A.messageLogger&&A.messageLogger.open();b.showItem(4);b.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){A&&A.messageLogger&&A.messageLogger.close();b.showItem(3);b.hideItem(4)}}],position:{x:e.spacingLeft,y:this.chartHeight-
e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}}));b.hideItem(1);this.elements.configureButton=d.add("loggerIcon",function(a,c){return function(){b.visible?b.hide():b.show({x:a,y:c+1})}}(),{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Show & Hide Message"})},drawRTMenuButtons:function(){var a=this.logic,e=a.chartInstance,c=this.options,d=c.chart,b=d&&d.alwaysShowMessageLogMenu,f=this.menu||(this.menu=[]),k=this.toolbar,c=(c=c[P])&&
c.outCanvasStyle||this.outCanvasStyle||{},g,a=(a=e.isUpdateActive||a.eiMethods.isUpdateActive)&&a.call(e);f.push(g=Ba({chart:this,basicStyle:c,items:[{text:"Stop Update",visibility:a?xb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:a?"hidden":xb,onclick:function(){g.hideItem(1);g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){A&&A.messageLogger&&
A.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){A&&A.messageLogger&&A.messageLogger.close();g.showItem(3);g.hideItem(4)}}],position:{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15)}}));g.hideItem(2);g.hideItem(0);g.hideItem(1);g.showItem(a?0:1);!b&&g.hideItem(3);g.hideItem(4);this.elements.configureButton=k.add("configureIcon",function(a,b){return function(){g.visible?g.hide():g.show({x:a,y:b+
1})}}(),{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15),tooltip:"Manage RealTime Update"})},latestDataUpdater:function(a){var e=this.chartInstance;a=(a=a.series&&a.series)&&a[0]&&a[0].data;var c,d,b;if((e=e&&e.jsVars&&e.jsVars._rtLastUpdatedData)&&a)for(c=0,d=e.values&&e.values.length;c<d;c+=1)if(b=a[c])b.y=e.values[c],b.displayValue=e.labels[c],b.toolText=e.toolTexts[c]},styleApplicationDefinition_font:function(a,e,c){var d,b=!1,f,k,g,p=this.styleMapForFont;
switch(e){case "caption":a=a.title;break;case "datalabels":a=a.plotOptions.series.dataLabels;break;case "value":a=a.plotOptions.series.dataLabels;break;case "datavalues":a=a.plotOptions.series.dataLabels;b=!0;break;case "subcaption":a=a.subtitle;break;case "tooltip":a=a.tooltip;break;case "trendvalues":a=a.chart.trendPointStyle;break;case "xaxisname":a=a.xAxis.title;break;case "vlinelabels":a={style:a[P].divlineStyle};break;case "gaugelabels":a=a.chart.colorRangeStyle;break;case "tickvalues":a=a.scale.tickValues;
break;case "limitvalues":a=a.scale.limitValues;break;case "openvalue":a=a.chart.openValue;break;case "closevalue":a=a.chart.closeValue;break;case "highlowvalue":a=a.chart.highLowValue;break;case "legend":a={style:a.legend.itemStyle};break;default:a.orphanStyles[e]=a={text:"",style:{}}}if("object"===typeof a)if(a instanceof Array)for(f=0,k=a.length;f<k;f+=1){g=a[f];for(d in c)if(e=d.toLowerCase(),"function"===typeof p[e])p[e](c[d],g,b);Ja(g.style)}else{for(d in c)if(e=d.toLowerCase(),"function"===
typeof p[e])p[e](c[d],a,b);Ja(a.style)}},createGaugeAxis:function(a,e,c){a=a.chart;var d=this.colorManager,b=this.numberFormatter,f=this.isHorizontal?h(a.ticksbelowgauge,a.ticksbelowgraph,this.ticksbelowgauge,1)?3:1:h(a.ticksonright,this.ticksOnRight,1)?2:4,d=q(a.majortmcolor,d.getColor("tickColor")),k=h(a.majortmalpha,100),g=h(h(a.majortmheight)*this.scaleFactor,this.majorTMHeight,6),p=h(a.tickvaluestep,a.tickvaluesstep,1),m=h(a.showtickmarks,1),l=m?h(a.connecttickmarks,this.connectTickMarks,1):
0,n=h(a.showtickvalues,m),s=h(a.majortmthickness,1),r=h(b.getCleanValue(a.upperlimit)),b=h(b.getCleanValue(a.lowerlimit)),t=1==h(a.reversescale,0);this.isHorizontal||(t=!t);p=1>p?1:p;e.scale={min:null,max:null,axisPosition:f,showTickMarks:m,showTickValues:n,showLimits:h(a.showlimits,n),adjustTM:Boolean(h(a.adjusttm,1)),majorTMNumber:h(a.majortmnumber,-1),majorTMColor:F(d,k),majorTMHeight:m?g:0,majorTMThickness:s,minorTMNumber:h(a.minortmnumber,this.minorTMNumber,4),minorTMColor:F(q(a.minortmcolor,
d),h(a.minortmalpha,k)),minorTMHeight:m?h(h(a.minortmheight,a.minortmwidth)*this.scaleFactor,ra(g/2)):0,minorTMThickness:h(a.minortmthickness,1),tickMarkDistance:h(h(a.tickmarkdistance,a.tickmarkgap)*this.scaleFactor,this.tickMarkDistance,3),tickValueDistance:h(h(a.tickvaluedistance,a.displayvaluedistance)*this.scaleFactor,2)+2,placeTicksInside:h(a.placeticksinside,0),placeValuesInside:h(a.placevaluesinside,0),tickValueStep:p,setAdaptiveMin:h(a.setadaptivemin,0),upperLimit:r,lowerLimit:b,upperLimitDisplay:G(a.upperlimitdisplay),
lowerLimitDisplay:G(a.lowerlimitdisplay),reverseScale:t,connectorColor:F(q(a.connectorcolor,d),h(a.connectoralpha,k)),connectorThickness:l?h(a.connectorthickness,s):0,majorTM:[],minorTM:[],trendPoint:[],labels:{style:V({},c)},tickValues:{style:V({},c)},limitValues:{style:V({},c)}}},configureAxis:function(a,e){var c=e.chart,d,b,f,k,g=this.colorManager,p,m,l,n,s,r=this.colorRangeGetter,t=(r=r&&r.colorArr)&&r.length;b=r&&r[0];d=r&&r[t-1];k=this.minDataValue;m=this.maxDataValue;r=a.scale;l=r.lowerLimit;
n=r.upperLimit;var t=this.numberFormatter,u;if(a.series[0]&&(da(k)&&da(m)?(l=l<=k?l:b&&b.minvalue,n=n>=m?n:d&&d.maxvalue):(l=h(l,b&&b.minvalue),n=h(n,d&&d.maxvalue)),d=new Hb(l,n,!1,r,this.numberFormatter),d.calculateLimits(this.maxDataValue,this.minDataValue),d.calculateTicks(),r.majorTM=d.getMajorTM(),r.minorTM=d.getMinorTM(),b=r.min=d.min,d=r.max=d.max,e.trendpoints&&(f=e.trendpoints.point)&&0<(p=f.length))){r.trendPoint=[];for(m=0;m<p;m+=1)k=f[m],s=h(k.dashed,0)?ia(q(Math.max(k.dashlen,k.thickness),
4),h(k.dashgap,3),h(k.thickness,1)):"none",l=h(k.startvalue,k.value),n=h(k.endvalue,l),u=l!==n,l<=d&&l>=b&&n<=d&&n>=b&&(r.trendPoint.push({style:V(V(a.chart.trendPointStyle.style),{}),startValue:l,endValue:n,tooltext:G($(k.markertooltext)),displayValue:G($(k.displayvalue),u?O:t.scale(l)),showOnTop:h(k.showontop,c.ticksbelowgauge,c.ticksbelowgraph,1),color:q(k.color,g.getColor("trendLightColor")),alpha:h(k.alpha,99),thickness:h(k.thickness,1),dashStyle:s,useMarker:h(k.usemarker,0),markerColor:F(q(k.markercolor,
k.color,g.getColor("trendLightColor")),100),markerBorderColor:F(q(k.markerbordercolor,k.bordercolor,g.getColor("trendDarkColor")),100),markerRadius:h(h(k.markerradius)*this.scaleFactor,5),markerToolText:qa(k.markertooltext),trendValueDistance:h(h(k.trendvaluedistance,c.trendvaluedistance)*this.scaleFactor,r.tickValueDistance),isZone:u,valueInside:h(k.valueinside,c.placevaluesinside,0),showBorder:h(k.showborder,1),borderColor:F(q(k.bordercolor,k.color,g.getColor("trendDarkColor")),h(k.borderalpha,
k.alpha,100)),radius:h(h(k.radius)*this.scaleFactor),innerRadius:h(h(k.innerradius)*this.scaleFactor)}),ua(q(k.bordercolor,k.color,g.getColor("trendDarkColor"))));"lineargauge"===this.defaultSeriesType&&A.stableSort&&A.stableSort(r.trendPoint,function(a,b){return a.startValue-b.startValue})}},placeTickMark:function(a,e,c){var d=this.smartLabel,b=a.chart,f=this.width-(b.marginRight+b.marginLeft),k=this.height-(b.marginTop+b.marginBottom);a=a.scale;var g=a.min,p=a.max,m=a.axisPosition,l=a.showLimits,
n=a.showTickValues,s=a.tickMarkDistance,r=a.tickValueDistance,t=Math.max(a.majorTMHeight,a.minorTMHeight),u=a.placeTicksInside,B=a.placeValuesInside,L=a.reverseScale,w=0,q=0,x=1,y,D=a.majorTM.length-1,C=2===m||4===m?!1:!0,E=6;e=C?k-c:f-e;c=0;var U=a.tickValues.style,K=a.limitValues.style;a.majorTM[0]&&a.majorTM[1]&&(y=a.majorTM[1].value-a.majorTM[0].value);u||(w+=s+t);if(n||l)for(d.setStyle(K),l=h(parseInt(K.fontSize,10),10),n=h(parseInt(K.lineHeight,10),12),n/=2,B||(w+=r),3===m&&(q=l),C?(k=e-w,f=
f/(p-g)*y/2+6):(f=e-w,k=k/(p-g)*y+n),a.majorTM[0]&&(y=a.majorTM[0],y.isString?y.displayValue&&(g=d.getSmartText(y.displayValue,f,k),y.displayValue=g.text,y._oriText=g.oriText,g.tooltext&&(y.originalText=g.tooltext),C?(c=Math.max(c,g.height),y.labelY=1===m&&!B||3===m&&B?l-g.height:q,E=Math.min(6,g.width/2)):(c=Math.max(c,g.width),y.labelY=l-(L?g.height-n:n),y.labelX=0)):x=0,C&&(L?(y.labelX=E,y.align=bb):(y.labelX=-E,y.align=Ha))),a.majorTM[D]&&(y=a.majorTM[D],y.isString?y.displayValue&&(g=d.getSmartText(y.displayValue,
f,k),y.displayValue=g.text,y._oriText=g.oriText,g.tooltext&&(y.originalText=g.tooltext),C?(c=Math.max(c,g.height),y.labelY=1===m&&!B||3===m&&B?l-g.height:q,E=Math.min(6,g.width/2)):(c=Math.max(c,g.width),y.labelY=l-(L?n:g.height-n),y.labelX=0)):(E=6,D+=1),C&&(L?(y.labelX=-E,y.align=Ha):(y.labelX=E,y.align=bb)));x<D;x++)0===x||x===D-1?(d.setStyle(K),l=h(parseInt(K.fontSize,10),10),n=h(parseInt(K.lineHeight,10),12)):(d.setStyle(U),l=h(parseInt(U.fontSize,10),10),n=h(parseInt(U.lineHeight,10),12)),C&&
(q=1===m&&B||3===m&&!B?l:0),y=a.majorTM[x],y.displayValue&&(y.labelX=h(y.labelX,0),C?(c=Math.max(c,n),y.labelY=q):(g=d.getOriSize(y.displayValue),c=Math.max(c,g.width),y.labelY=l-g.height/2));d=w;B||(w+=c);w=Math.min(e,w);a._labelUsedSpace=B?c:w-d;switch(m){case 1:b.marginTop+=w;break;case 2:b.marginRight+=w;break;case 3:b.marginBottom+=w;break;case 4:b.marginLeft+=w}return w},eiMethods:{feedData:function(a){var e=this.jsVars,c=e.hcObj,d=c.logic,b=c.options&&c.options.series&&c.options.series[0],
f,k;if(this.isActive()&&d&&d.linearDataParser&&(k=d.linearDataParser(a,d.multisetRealtime))){f=this.getDataJSON();c.realtimeUpdate?c.realtimeUpdate(k):c.logic.realtimeUpdate?c.logic.realtimeUpdate(k):b&&b.realtimeUpdate&&b.realtimeUpdate(k);e._rtLastUpdatedData=d.multisetRealtime?k:this.getDataJSON();ja.raiseEvent("realtimeUpdateComplete",{data:a,updateObject:k,prevData:f.values,source:"feedData",url:null},e.fcObj);try{na.FC_ChartUpdated&&na.FC_ChartUpdated(e.fcObj.id)}catch(g){setTimeout(function(){throw g;
},0)}return!0}return!1},getData:function(){var a,e=(a=this.jsVars)&&(a=a.hcObj)&&(a=a.options)&&(a=a.series)&&(a=a[0])&&a.data;return(a=e&&e[0])?h(a.value,a.y):null},setData:function(a,e){var c="";if(a&&a.toString||""===a||0===a)c="value="+a.toString();if(e&&e.toString||""===e)c=c+"&label="+e.toString();c&&this.feedData(c)},stopUpdate:function(a){var e=this.__state;clearTimeout(e._toRealtime);e._rtAjaxObj&&e._rtAjaxObj.abort();e._rtPaused=!0;ja.raiseEvent("realimeUpdateStopped",{source:a},this)},
restartUpdate:function(){var a=this.__state;a._rtDataUrl&&a._rtPaused&&(a._rtPaused=!1,a._rtAjaxObj.get(a._rtDataUrl))},isUpdateActive:function(){return!this.__state._rtPaused},clearChart:function(a){var e=this.jsVars,c;a=a&&a.toString&&a.toString();(c=e.hcObj)&&(c=c.options)&&(c=c.scale)&&(e=c.min,isNaN(e)||(this.jsVars.hcObj.fusionCharts.feedData("&showLabel=0&value="+e),A.raiseEvent("chartCleared",{source:a},this,[this.id,a])))},getDataJSON:function(){var a=0,e,c,d=[],b=[],f=[],k=(e=this.jsVars)&&
(e=e.hcObj)&&(e=e.options)&&(e=e.series)&&(e=e[0])&&e.data;for(e=k&&k.length?k.length:0;a<e;a+=1)c=k[a],d.push(h(c.value,c.y)),b.push(c.displayValue||""),f.push(c.toolText||"");return{values:d,labels:b,toolTexts:f}},showLog:function(){return this.feedData("showLog=1")},hideLog:function(){return this.feedData("hideLog=1")},clearLog:function(){return this.feedData("clearLog=1")}},linearDataParser:function(a,e){var c={values:v,colors:v,toolTexts:v,links:function(a){var b=[],c;a=a.replace(Ub,"_fc_escaped_comma_");
b=a.split(",");a=0;for(c=b.length;a<c;a+=1)b[a]=b[a].replace(/_fc_escaped_comma_/ig,",");return b},valueVisibility:v},d=this.chartInstance,b,f,k,g,p,m={},l=0;a=a&&a.toString&&a.toString()||"";b=a.split("&");g=0;for(p=b.length;g<p;g+=1)if(f=b[g].split("="),k=f[1],f=f[0],f!==O&&void 0!==f&&void 0!==k&&(k!==O||e))switch(f=f.toLowerCase(),f){case "label":m.labels=k.split(",");break;case "vline":m.vlines=k.split(",");break;case "vlinelabel":m.vlineLabels=k.split(",");break;case "vlinecolor":m.vlineColors=
k.split(",");break;case "vlinethickness":m.vlineThickness=k.split(",");break;case "vlinedashed":m.vlineDashed=k.split(",");break;case "value":m.values=k.split("|");l=1;break;case "showlabel":m.showLabels=k.split(",");break;case "showvalue":m.valueVisibility=k.split("|");break;case "tooltext":m.toolTexts=k.split("|");break;case "link":m.links=k.split("|");break;case "color":m.colors=k.split("|");break;case "datastamp":m.dataStamp=k;break;case "stopupdate":m.pause="1"==k;break;case "clear":m.clear=
"1"==k;break;default:m[f]=k}if(e)for(m.values||(m.values=[]),g=m.values.length;g--;){for(f in c)m[f]?"function"===typeof c[f]?m[f][g]&&(m[f][g]=c[f].call(this,m[f][g])):m[f][g]&&(m[f][g]=m[f][g].split(c[f])):m[f]=[];l=Ca(m.values[g].length,l)}m.labels&&(l=Ca(l,m.labels.length));m.dimension=l;m.pause&&d.stopUpdate&&d.stopUpdate("datastream");return m},series:function(){var a=this.dataObj,e=this.hcJSON,c=a.pointers&&a.pointers.pointer||a.value,d=a.chart,b=this.colorRangeGetter,f=(b=b&&b.colorArr)&&
b.length,k={},g=k.data=[],p,m;e.legend.enabled=!1;Yb(c)||(c="object"!==typeof c?[{value:c}]:[c]);p=0;for(m=this.multiValueGauge?c.length:1;p<m;p++)g.push(this.getPointStub(c[p],p,e,a));e.series[0]=k;f&&this.pointValueWatcher&&h(d.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(a=h(b[0].minvalue),da(a)&&this.pointValueWatcher(a),a=h(b[f-1].maxvalue),da(a)&&this.pointValueWatcher(a))},pointValueWatcher:function(a){null!==a&&(this.maxDataValue=this.maxDataValue>a?this.maxDataValue:a,this.minDataValue=
this.minDataValue<a?this.minDataValue:a)},updateSnapPoints:function(a){var e=a.chart,c=this.width,d=this.height,b=e.marginBottom;a=e.marginLeft;var f=e.marginRight,e=e.marginTop,c=wa(this.snapLiterals||(this.snapLiterals={}),{chartstartx:0,chartstarty:0,chartwidth:c,chartheight:d,chartendx:c,chartendy:d,chartcenterx:c/2,chartcentery:d/2,chartbottommargin:b,chartleftmargin:a,chartrightmargin:f,charttopmargin:e,canvasstartx:a,canvasstarty:e,canvaswidth:c-a-f,canvasheight:d-e-b,canvasendx:c-f,canvasendy:d-
b});c.gaugestartx=c.canvasstartx;c.gaugestarty=c.canvasstarty;c.gaugeendx=c.canvasendx;c.gaugeendy=c.canvasendy;c.gaugecenterx=c.canvascenterx=a+c.canvaswidth/2;c.gaugecentery=c.canvascentery=e+c.canvasheight/2}},z.base);z("linearscalegauge",{spaceManager:function(a,e,c,d){var b=a.chart,f=c-(b.marginRight+b.marginLeft),k=d-(b.marginTop+b.marginBottom),g=b.marginRight,p=b.marginLeft,m=b.marginTop,l=b.marginBottom,n=Ia(Ca(.3*f,5),f),h=Ia(Ca(.3*k,5),k),r,t,u=0,B;5>n&&10<c&&(n=f=5,B=g+p,g=b.marginRight=
(c-f)*g/B,p=b.marginLeft=(c-f)*p/B);5>h&&10<d&&(h=k=5,B=m+l,m=b.marginRight=(d-k)*m/B,l=b.marginLeft=(d-k)*l/B);this.manageTitleSpace&&a.title.alignCaptionWithCanvas&&(t=this.manageTitleSpace(a,e,n,h));this.placeTickMark&&(r=this.placeTickMark(a,n,h));this.manageTitleSpace&&!a.title.alignCaptionWithCanvas&&(t=this.manageTitleSpace(a,e,n,h));this.placeDataLabels&&(u=this.placeDataLabels(a,n,h,m,g,l,p,r));this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,n,h);this.fixCaptionAlignment&&this.fixCaptionAlignment(t,
a,e,c,0,u)},manageTitleSpace:function(a,e,c,d){c=a.chart;return this.titleSpaceManager(a,e,this.width-(c.marginRight+c.marginLeft),this.height-(c.marginTop+c.marginBottom)-d)},placeDataLabels:function(a,e,c,d,b,f){var k=this.smartLabel;e=a.chart;var g=this.width-(e.marginRight+e.marginLeft),p=this.height-(e.marginTop+e.marginBottom);d=e.marginBottom;b=a.plotOptions.series.dataLabels;var m=b.style,l=h(parseInt(m.lineHeight,10),12);c=p-c;var p=e.valuePadding,n=0;(a=a.series[0].data[0])&&a.displayValue!==
O&&(k.setStyle(m),a.isLabelString?(k=k.getSmartText(a.displayValue,g,c-p),a.displayValue=k.text,k.tooltext&&(a.originalText=k.tooltext)):k=k.getOriSize(a.displayValue)," "===a.displayValue&&(k={height:l}),0<k.height&&(n=k.height+p),n>c&&(a=n-c,p=a<p?p-a:0,n=c),e.marginBottom+=n,b.align=Ka,e.valuePadding=d-f+p);return n},postDataLabelsPlacement:function(a){var e=this.smartLabel,c=a.chart,d=this.width-(c.marginRight+c.marginLeft),b=this.height-(c.marginTop+c.marginBottom);a=a.scale;var f=a.min,k=a.max,
g=a.axisPosition,p=a.limitValues.style,c=a.reverseScale,m,l=a.majorTM.length-1,g=2===g||4===g?!1:!0,n=h(parseInt(p.fontSize,10),10),s=h(parseInt(p.lineHeight,10),12)/2;a.majorTM[0]&&a.majorTM[1]&&(m=a.majorTM[1].value-a.majorTM[0].value);g?(b=a._labelUsedSpace,d=d/(k-f)*m/2+6):(d=a._labelUsedSpace,b=b/(k-f)*m+s);e.setStyle(p);a.majorTM[0]&&a.majorTM[0].isString&&(m=a.majorTM[0],m.displayValue&&(f=e.getSmartText(m._oriText,d,b),m.displayValue=f.text,f.tooltext&&(m.originalText=f.tooltext),g?(f=Math.min(6,
f.width/2),m.labelX=c?f:-f):m.labelY=n-(c?f.height-s:s)));a.majorTM[l]&&a.majorTM[l].isString&&(m=a.majorTM[l],m.displayValue&&(f=e.getSmartText(m._oriText,d,b),m.displayValue=f.text,f.tooltext&&(m.originalText=f.tooltext),g?(f=Math.min(6,f.width/2),m.labelX=c?-f:f):m.labelY=n-(c?s:f.height-s)))},getPointStub:function(a,e,c,d,b){var f=c[P];e=this.colorManager;var k=this.numberFormatter;c=k.getCleanValue(a.value);var g=G(a.link),p=G($(q(a.tooltext,f.tooltext))),f=G($(a.displayvalue)),m=k.dataLabels(c),
l,k=d.chart;d=h(k.showhovereffect);var n,s,r;this.showTooltip?void 0!==p?(b=Xa(p,[1,2],{formattedValue:m},a,k),r=!0):b=null===m?!1:void 0!==b?b+this.tooltipSepChar+m:m:b=!1;a=h(a.showvalue,this.showValues)?void 0!==f?f:G(m," "):O;this.pointValueWatcher&&this.pointValueWatcher(c);this.getPointColorObj&&(l=this.getPointColorObj(k,c));0!==d&&(d||k.gaugefillhovercolor||k.plotfillhovercolor||k.gaugefillhoveralpha||k.plotfillhoveralpha||0===k.gaugefillhoveralpha)&&(d=!0,f=q(k.gaugefillhovercolor,k.plotfillhovercolor,
"{dark-10}"),k=h(k.gaugefillhoveralpha,k.plotfillhoveralpha),n={},s={},s.fluidColor=l.code,s.fluidAlpha=l.alpha,f=(p=/\{/.test(f))?e.parseColorMix(G(l.code,O),f)[0]:f,n.fluidColor=f,n.fluidAlpha=h(k,l.alpha));return{y:c,displayValue:a,toolText:b,isLabelString:r,color:F(l.code,l.alpha),link:g,colorRange:l,doNotSlice:!0,rolloverProperties:{enabled:d,hoverAttr:n,outAttr:s}}},getPointColorObj:function(a,e){return this.colorRangeGetter.getColorObj(e)}},z.gaugebase);z("led",{singleValued:!0,isDataLabelBold:!0,
preSeriesAddition:function(a,e){var c=e.chart,d=a.chart;d.ledGap=h(c.ledgap,2);d.ledSize=h(c.ledsize,2);d.plotHoverEffect=h(c.showhovereffect,0)}},z.linearscalegauge);z("vled",{friendlyName:"Vertical LED Gauge",defaultSeriesType:"led",defaultPlotShadow:1,standaloneInit:!0,realtimeEnabled:!0,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,showTooltip:0,connectTickMarks:0,rendererId:"led",creditLabel:!1},z.led);z("hled",{friendlyName:"Horizontal LED Gauge",defaultPlotShadow:1,
standaloneInit:!0,creditLabel:!1,isHorizontal:!0,rendererId:"led",connectTickMarks:1,realtimeEnabled:!0},z.vled);z("bullet",{creditLabel:!1,defaultSeriesType:"bullet",defaultPlotShadow:1,drawAnnotations:!0,realtimeEnabled:!1,subTitleFontSizeExtender:0,subTitleFontWeight:0,connectTickMarks:0,minorTMNumber:0,majorTMHeight:4,chartleftmargin:10,chartrightmargin:15,charttopmargin:5,chartbottommargin:5,isDataLabelBold:!0,defaultPaletteOptions:wa(V({},Ya),{paletteColors:[["A6A6A6","CCCCCC","E1E1E1","F0F0F0"],
["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333",
"60634E","025B6A","A15E01","68001B"],tickColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["545454","60634E","415D6F","845001","68001B"],plotFillColor:["545454","60634E","415D6F","845001","68001B"],borderColor:["767575","545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50]}),preSeriesAddition:function(){var a=this.dataObj.chart;this.hcJSON.chart.colorRangeBorderThickness=h(a.showgaugeborder,a.showcolorrangeborder,0)?h(a.colorrangeborderthickness,a.gaugeborderthickness,this.gaugeBorderThickness,
2):0},postSeriesAddition:function(a){var e=this.dataObj,c=this.colorManager,d=a.series[0],b=e.chart,f=h(b.showhovereffect),k={value:e.target},g=h(b.targetthickness,3),p=q(b.targetcolor,c.getColor("plotFillColor")),m=G(b.targetalpha,100),l=F(p,m),n=h(b.targetfillpercent,60),s,r,t,u;0!==f&&(f||b.targethovercolor||b.targethoveralpha||0===b.targethoveralpha||b.targethoverthickness||0===b.targethoverthickness)&&(f=!0,t={},u={},r=h(b.targethoverthickness,g+2),g!==r&&(t["stroke-width"]=r,u["stroke-width"]=
g),s=q(b.targethovercolor,"{dark-10}"),m=h(b.targethoveralpha,m),r&&(u.stroke=l,r=/\{/.test(s),t.stroke=F(r?c.parseColorMix(p,s)[0]:s,m)),s=!!h(b.showhoveranimation,1));a=this.getPointStub(k,1,a,e);delete a.rolloverProperties;d.data.push(V(a,{borderColor:l,borderWidth:g,targetThickness:g,targetFillPercent:n,rolloverProperties:{enabled:f,hoverAttr:t,outAttr:u,showHoverAnimation:s}}))},getPointStub:function(a,e,c,d,b){var f=this.numberFormatter,k=this.colorManager,g=c[P];c=f.getCleanValue(a.value);
var p=G(a.link),m=G($(e?g.targettooltext:g.tooltext)),l=G($(a.displayvalue)),n=f.dataLabels(c),g=this.colorRangeGetter.getColorObj(c),s=d.chart,r=e?f.dataLabels(f.getCleanValue(d.value)):n,t=e?c:f.getCleanValue(d.target),u=e?n:f.dataLabels(t),B=q(s.plotfillcolor,k.getColor("plotFillColor"));e=h(s.plotasdot,0);var f=h(s.showhovereffect),L=h(s.showplotborder,0),w=L?h(s.plotborderthickness,1):0,T=h(s.plotfillpercent,e?25:40),x,y,D,C;d=this.showTooltip?void 0!==m?Xa(m,[1,2,26,27],{formattedValue:r,targetValue:t,
targetDataValue:u},d,s):null===n?!1:void 0!==b?b+this.tooltipSepChar+n:n:O;a=h(a.showvalue,this.showValues)?void 0!==l?l:G(n," "):O;this.pointValueWatcher&&this.pointValueWatcher(c);/\{/.test(b=q(s.plotbordercolor,"{dark-20}"))&&(y=!0,b=k.parseColorMix(B,b).join());r=h(s.plotfillalpha,100);l=F(B,r);m=h(s.plotborderalpha,100);n=F(b,m);0!==f&&(f||s.plotfillhovercolor||s.plotfillhoveralpha||0===s.plotfillhoveralpha||s.showplotborderonhover||0===s.showplotborderonhover||s.plotborderhovercolor||s.plotborderhoverthickness||
0===s.plotborderhoverthickness||s.plotborderhoveralpha||0===s.plotborderhoveralpha)&&(f=!0,D={},C={},x=q(s.plotfillhovercolor,"{dark-10}"),r=h(s.plotfillhoveralpha,r),x=/\{/.test(x)?k.parseColorMix(B,x)[0]:x,D.fill=F(x,r),C.fill=l,B=h(s.showplotborderonhover),void 0===B&&(B=s.plotborderhoverthickness||s.plotborderhovercolor||s.plotborderhoveralpha?1:L),B=B?h(s.plotborderhoverthickness,w||1):0,w!==B&&(D["stroke-width"]=B,C["stroke-width"]=w),L=q(s.plotborderhovercolor,"{dark-10}"),m=h(s.plotborderhoveralpha,
m),B&&(C.stroke=n,B=/\{/.test(L),D.stroke=F(B?k.parseColorMix(y?x:b,L)[0]:L,m)),x=!!h(s.showhoveranimation,1));return{y:c,displayValue:a,toolText:d,plotAsDot:e,plotFillPercent:T,color:l,borderColor:n,borderWidth:w,link:p,colorRange:g,doNotSlice:!0,rolloverProperties:{enabled:f,hoverAttr:D,outAttr:C,showHoverAnimation:x}}}},z.linearscalegauge);z("vbullet",{friendlyName:"Vertical Bullet Gauge",creditLabel:!1,defaultSeriesType:"bullet",gaugeType:4,ticksOnRight:0,rendererId:"bullet",standaloneInit:!0},
z.bullet);z("hbullet",{friendlyName:"Horizontal Bullet Gauge",creditLabel:!1,defaultSeriesType:"hbullet",gaugeType:1,standaloneInit:!0,isHorizontal:!0,defaultCaptionPadding:5,rendererId:"hbullet",placeDataLabels:function(a,e){var c=this.smartLabel,d=a.chart,b=this.width-(d.marginRight+d.marginLeft),f=this.height-(d.marginTop+d.marginBottom),k=a.plotOptions.series.dataLabels,g=k.style,p=h(parseInt(g.fontSize,10),10),b=b-e,m=d.valuePadding,l=0,n=a.series[0].data[0];n&&n.displayValue!==O&&(c.setStyle(g),
n.isLabelString?(c=c.getSmartText(n.displayValue,b-m,f),n.displayValue=c.text,c.tooltext&&(n.originalText=c.tooltext)):c=c.getOriSize(n.displayValue),0<c.height&&(l=c.width+m),l>b&&(l=b),d.marginRight+=l,k.align=Ha,k.x=0,k.y=p-c.height/2);return l},manageTitleSpace:function(a,e,c){var d=a.chart,b=e.chart,f=this.width-(d.marginRight+d.marginLeft),d=this.height-(d.marginTop+d.marginBottom),k=h(b.captionpadding,2),b=h(h(b.captiononright,0)?b.canvasrightmargin:b.canvasleftmargin);da(b)&&(b-=k);c=h(b,
f-c);return Fb(a,e,c,d,this.defaultCaptionPadding,this.width,this.height,this)},fixCaptionAlignment:function(a,e,c,d,b,f){d=e.chart;var k=c.chart,g=h(k.canvasleftmargin),k=h(k.canvasrightmargin);d.marginRight+=a.right;d.marginLeft+=a.left;da(g)&&(d.spacingLeft=d.marginLeft=g,d.spacingLeft-=a.left+0-1);da(k)&&(d.spacingRight=d.marginRight=k,d.spacingRight-=a.right+0-1);Gb(e,c,this.width,b,f,this)}},z.bullet);z("lineargauge",{creditLabel:!1,defaultSeriesType:"lineargauge",multiValueGauge:!0,realtimeEnabled:!0,
gaugeType:1,chartleftmargin:15,chartrightmargin:15,charttopmargin:10,chartbottommargin:10,colorRangeFillMix:"{light-10},{dark-20},{light-50},{light-85}",colorRangeFillRatio:"0,8,84,8",isDataLabelBold:!0,eiMethods:V(V({},z.gaugebase.eiMethods),{getData:function(a){var e,c=(e=this.jsVars)&&(e=e.hcObj)&&(e=e.options)&&(e=e.series)&&(e=e[0])&&e.data;e=c&&c.length?c.length:0;return void 0!==a&&0<a&&a<=e?(a=c[a-1],h(a.value,a.y)):null},getDataForId:function(a){var e,c=(e=this.jsVars)&&(e=e.hcObj)&&e.dataById;
return c[a]&&c[a].point?(a=c[a].point,h(a.value,a.y)):null},setData:function(a,e,c){var d="",b,f=(b=this.jsVars)&&(b=b.hcObj)&&(b=b.options)&&(b=b.series)&&(b=b[0])&&b.data;b=f&&f.length||0;f=0;if(0<a&&a<=b&&(e&&e.toString()||""===e||0===e)){for(f=a;--f;)d+="|";a="value="+(d+e);if(c&&c.toString||""===c)a+="&label="+d+c.toString();this.feedData(a)}},setDataForId:function(a,e,c){var d,b=(d=this.jsVars)&&(d=d.hcObj)&&d.dataById;b[a]&&void 0!==b[a].index&&this.setData(b[a].index+1,e,c)}}),placeDataLabels:function(a,
e,c,d,b,f,k,g){d=a.scale;b=this.smartLabel;f=a.chart;k=this.width-(f.marginRight+f.marginLeft);var p=this.height-(f.marginTop+f.marginBottom),m,l=a.plotOptions.series.dataLabels;m=l.style;var n=a.scale&&a.scale.labels&&a.scale.labels.style,s=h(parseInt(m.lineHeight,10),12);c=p-c;e=k-e;var r=f.valuePadding,t,u=0,B=0,L=0,w=0,q=0,x=0,y=a.series&&a.series[0]&&a.series[0].data||[];a=a.scale&&a.scale.trendPoint||[];var D=0,C=y.length,E;for(b.setStyle(m);D<C;D+=1)(E=y[D])&&E.displayValue!==O&&(t=r+E.radius*
(3>=E.sides?.5:E.sides%2?1.1-1/E.sides:1),f.valuePadding=Math.max(f.valuePadding,t),this.isHorizontal?(E.isLabelString?(m=b.getSmartText(E.displayValue,k,c-r),E.displayValue=m.text,m.tooltext&&(E.originalText=m.tooltext)):m=b.getOriSize(E.displayValue)," "===E.displayValue&&(m={height:s}),0<m.height&&(u=m.height+t),u>c&&(u=c),f.pointerOnOpp?(3===d.axisPosition&&(w=Math.max(g,w),u=Math.max(g,u)),B=Math.max(B,u)):(1===d.axisPosition&&(q=Math.max(g,q),u=Math.max(g,u)),L=Math.max(u,L))):(E.isLabelString?
(m=b.getSmartText(E.displayValue,e-r,p),E.displayValue=m.text,m.tooltext&&(E.originalText=m.tooltext)):m=b.getOriSize(E.displayValue),0<m.width&&(x=m.width+t),x>e&&(x=e),f.pointerOnOpp?2===d.axisPosition?(f.marginRight-=g,f.marginRight+=Math.max(g,x)):f.marginRight+=x:4===d.axisPosition?(f.marginLeft-=g,f.marginLeft+=Math.max(g,x)):f.marginLeft+=x),l.align=Ka);b.setStyle(n);D=0;for(C=a.length;D<C;D+=1)(E=a[D])&&E.displayValue!==O&&(t=r+.5*E.markerRadius,f.valuePadding=Math.max(t,f.valuePadding),this.isHorizontal&&
(m=b.getOriSize(E.displayValue),0<m.height&&(u=m.height+t),u>c&&(u=c),E.showOnTop?(1===d.axisPosition&&(q=Math.max(g,q),u=Math.max(g,u)),L=Math.max(L,u)):(3===d.axisPosition&&(w=Math.max(g,w),u=Math.max(g,u)),B=Math.max(u,B)),l.align=Ka));this.isHorizontal&&(f.marginBottom+=B-w,f.marginTop+=L-q,u=L+B-w-q);return u},preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=a.scale;c.pointerRadius=h(d.pointerradius,10);c.pointerBgColor=q(d.pointerbgcolor,d.pointercolor,b.getColor("pointerBgColor"));
c.pointerBgAlpha=h(d.pointerbgalpha,100);c.pointerBorderColor=q(d.pointerbordercolor,b.getColor("pointerBorderColor"));c.pointerBorderThickness=h(d.pointerborderthickness,1);c.pointerBorderAlpha=h(d.pointerborderalpha,100);c.pointerSides=h(d.pointersides,3);c.showGaugeLabels=h(d.showgaugelabels,1);c.showPointerShadow=h(d.showpointershadow,d.showshadow,1);c.valuePadding=h(d.valuepadding,2);this.isHorizontal?(c.pointerOnOpp=h(d.pointerontop,1==f.axisPosition?0:1)?0:1,c.gaugeType=f.reverseScale?2:1,
c.valueAbovePointer=h(d.valueabovepointer,c.pointerOnOpp?0:1,1),c.valueInsideGauge=c.valueAbovePointer===c.pointerOnOpp?1:0):(c.pointerOnOpp=h(d.pointeronright,2==f.axisPosition?0:1),c.gaugeType=f.reverseScale?4:3)},getPointStub:function(a,e,c,d,b){var f=this.numberFormatter,k=this.colorManager,g=c.chart,p=c[P];c=f.getCleanValue(a.value);var m=G(a.link),l=G($(q(a.tooltext,p.tooltext))),n=G($(a.displayvalue)),s=f.dataLabels(c),f=this.colorRangeGetter.getColorObj(c);d=d.chart;var p=h(a.alpha,a.bgalpha,
g.pointerBgAlpha),r=q(a.color,a.bgcolor,g.pointerBgColor),t=F(r,p),u=h(a.showborder,d.showplotborder,1),B=h(a.borderalpha,g.pointerBorderAlpha),L=q(a.bordercolor,g.pointerBorderColor),w=F(L,B),T=u?h(a.borderthickness,g.pointerBorderThickness):0,x=h(a.radius,g.pointerRadius),y=h(a.showhovereffect,d.showhovereffect),D,C,E,U,K,ca,H,I=!1,J=!1,Qa,v,N;this.showTooltip?void 0!==l?(b=Xa(l,[1,2],{formattedValue:s},a,d),J=!0):b=null===s?!1:void 0!==b?b+this.tooltipSepChar+s:s:b=O;h(a.showvalue,this.showValues)?
void 0!==n?I=!0:n=G(s," "):n=O;l=h(a.sides,g.pointerSides);3>l&&(l=3);this.pointValueWatcher&&this.pointValueWatcher(c);0!==y&&(y||a.bghovercolor||d.pointerbghovercolor||d.plotfillhovercolor||a.bghoveralpha||d.pointerbghoveralpha||d.plotfillhoveralpha||0===a.bghoveralpha||0===d.pointerbghoveralpha||a.showborderonhover||d.showborderonhover||0===a.showborderonhover||0===d.showborderonhover||a.borderhoverthickness||d.pointerborderhoverthickness||0===a.borderhoverthickness||0===d.pointerborderhoverthickness||
a.borderhovercolor||d.pointerborderhovercolor||a.borderhoveralpha||d.pointerborderhoveralpha||0===a.borderhoveralpha||0===d.pointerborderhoveralpha||a.hoverradius||d.pointerhoverradius||0===a.hoverradius||0===d.pointerhoverradius)&&(y=!0,s=q(a.bghovercolor,d.pointerbghovercolor,d.plotfillhovercolor,"{dark-10}"),E=h(a.bghoveralpha,d.pointerbghoveralpha,d.plotfillhoveralpha),D=h(a.showborderonhover,d.showborderonhover),void 0===D&&(D=a.borderhoverthickness||0===a.borderhoverthickness||a.borderhovercolor||
a.borderhoveralpha||0===a.borderhoveralpha?1:u),u=q(a.borderhovercolor,d.pointerborderhovercolor,"{dark-10}"),K=h(a.borderhoveralpha,d.pointerborderhoveralpha),U=D?h(a.borderhoverthickness,d.pointerborderhoverthickness,T||1):0,C=h(a.hoverradius,d.pointerhoverradius,x+2),ca=!!h(a.showhoveranimation,d.showhoveranimation,1),D={},v={},T!==U&&(D["stroke-width"]=U,v["stroke-width"]=T),v.fill=t,s=(H=/\{/.test(s))?k.parseColorMix(r,s)[0]:s,D.fill=F(s,h(E,p)),U&&(v.stroke=w,r=/\{/.test(u),D.stroke=F(r?k.parseColorMix(L,
u)[0]:u,h(K,B))),C&&(ca?(Qa={r:C},N={r:x}):(D.r=C,v.r=x)));return{y:c,displayValue:n,id:q(a.id,"pointer_"+e),editMode:h(a.editmode,d.editmode),isLabelString:I,isTooltextString:J,toolText:b,_tooltext:a.tooltext,plotFillPercent:q(d.plotfillpercent,40),bgalpha:p,color:t,borderAlpha:h(d.showplotborder,1)?g.pointerBorderAlpha:0,borderColor:w,borderWidth:T,radius:x,sides:l,link:m,colorRange:f,doNotSlice:!0,tooltipConstraint:this.tooltipConstraint,rolloverProperties:{enabled:y,hoverAttr:D,hoverAnimAttr:Qa,
outAttr:v,outAnimAttr:N}}}},z.linearscalegauge);z("hlineargauge",{friendlyName:"Horizontal Linear Gauge",creditLabel:!1,defaultSeriesType:"lineargauge",rendererId:"hlinear",standaloneInit:!0,isHorizontal:!0},z.lineargauge);z("vlineargauge",{friendlyName:"Vertical Linear Gauge",creditLabel:!1,defaultSeriesType:"lineargauge",connectTickMarks:0,standaloneInit:!0},z.lineargauge);z("thermometer",{friendlyName:"Thermometer Gauge",creditLabel:!1,defaultSeriesType:"thermometer",rendererId:"thermometer",connectTickMarks:0,
tickMarkDistance:0,standaloneInit:!0,realtimeEnabled:!0,isDataLabelBold:!0,defaultPlotShadow:0,alignCaptionWithCanvas:0,defaultPaletteOptions:wa(V({},Ya),{thmBorderColor:["545454","60634E","415D6F","845001","68001B"],thmFillColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f;f=this.numberFormatter;var k=h(d.showhovereffect);c.thmOriginX=h(d.thmoriginx,d.gaugeoriginx);c.thmOriginY=h(d.thmoriginy,d.gaugeoriginy);c.thmBulbRadius=
h(f.getCleanValue(d.thmbulbradius,!0));c.thmHeight=h(f.getCleanValue(h(d.thmheight,d.gaugeheight),!0));c.gaugeFillColor=q(d.gaugefillcolor,d.thmfillcolor,b.getColor("thmFillColor"));c.gaugeFillAlpha=h(d.gaugefillalpha,d.thmfillalpha,Pa);0!==k&&(k||d.thmfillhovercolor||d.plotfillhovercolor||d.thmfillhoveralpha||d.plotfillhoveralpha||0===d.thmfillhoveralpha)&&(c.plotHoverEffects={},c.plotHoverEffects.enabled=!0,f=q(d.thmfillhovercolor,d.plotfillhovercolor,"{dark-10}"),c.plotHoverEffects.thmFillHoverColor=
/\{/.test(f)?b.parseColorMix(c.gaugeFillColor,f)[0]:f,c.plotHoverEffects.thmFillHoverAlpha=q(d.thmfillhoveralpha,d.plotfillhoveralpha,c.gaugeFillAlpha));f=h(d.gaugeborderalpha,h(d.showgaugeborder,1)?40:0);c.gaugeBorderColor=F(q(d.gaugebordercolor,b.getColor("thmBorderColor")),f);c.gaugeBorderThickness=h(d.gaugeborderthickness,1);c.thmGlassColor=q(d.thmglasscolor,W(c.gaugeFillColor,30));c.use3DLighting=!h(d.use3dlighting,1)},getPointColorObj:function(a){return{code:q(a.gaugefillcolor,a.thmfillcolor,
this.colorManager.getColor("thmFillColor")),alpha:h(a.gaugefillalpha,a.thmfillalpha,100)}},getPointStub:z.linearscalegauge,placeDataLabels:z.linearscalegauge,manageTitleSpace:z.linearscalegauge,spaceManager:function(a,e,c,d){var b=a.chart,f=c-(b.marginRight+b.marginLeft),k=d-(b.marginTop+b.marginBottom),g=b.marginRight,p=b.marginLeft,m=b.marginTop,l=b.marginBottom;d=.3*f;var n=.3*k,s=b.thmOriginX,r=b.thmOriginY,t=b.thmBulbRadius,u=b.thmHeight,B=da(s),q=da(r),w=da(t),T=da(u),x=4===a.scale.axisPosition,
y=0,D=0,C,E,U=0;a.title.alignWithCanvas||(k-=U=this.manageTitleSpace(a,e,0,k/2));this.placeTickMark&&(f-=y=this.placeTickMark(a,2*h(t,4),n));w||(b.thmBulbRadius=t=Math.min(f/2,.13*h(u,k)),w=!0);w&&(E=.643*t,d=C=2*E,w=(2*t-C)/2,B?b.marginLeft=x?b.marginLeft+(D=s-E-y):b.marginLeft+(D=s-E):x?(b.marginLeft+=(c-p-g-w-C)/2-y/2,b.marginRight-=(c-p-g-w-C)/2-y/2,b.marginRight+=D=Math.min(t,f/2)-E):(b.marginLeft+=(c-p-g-w-C)/2-y/2,b.marginRight-=(c-p-g-w-C)/2-y/2,b.marginLeft+=D=Math.min(t,f/2)-E),f-=D);b.marginRight+=
f-C;a.title.alignWithCanvas&&(k-=U=this.manageTitleSpace(a,e,0,k/2));q&&(n=r-U+t);this.placeDataLabels&&(k-=this.placeDataLabels(a,d,n,m,g,l,p));T||(b.thmHeight=q?u=Math.max(r-U+t-E,3*t):u=Math.max(k-E,3*t));b.marginTop=q?b.marginTop+(r-U+t-u):b.marginTop+(k-u);e=1.766*t;b.marginBottom+=e;b.valuePadding+=e;b.thmHeight=b.plotHeight=u-e;this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,d,n)}},z.gaugebase);z("cylinder",{friendlyName:"Cylinder Gauge",creditLabel:!1,defaultSeriesType:"cylinder",
connectTickMarks:0,rendererId:"cylinder",tickMarkDistance:2,standaloneInit:!0,charttopmargin:10,chartbottommargin:10,chartrightmargin:10,chartleftmargin:10,isDataLabelBold:!0,realtimeEnabled:!0,alignCaptionWithCanvas:0,defaultPaletteOptions:wa(V({},Ya),{cylFillColor:["CCCCCC","ADB68F","E1F5FF","FDB548","FF7CA0"],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"]}),preSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=h(d.showhovereffect);c.cylFillColor=q(d.gaugefillcolor,
d.cylfillcolor,b.getColor("cylFillColor"));c.cylFillAlpha=q(d.gaugefillalpha,d.cylfillalpha,100);0!==f&&(f||d.cylfillhovercolor||d.plotfillhovercolor||d.cylfillhoveralpha||d.plotfillhoveralpha||0===d.cylfillhoveralpha)&&(c.plotHoverEffects={},c.plotHoverEffects.enabled=!0,f=q(d.cylfillhovercolor,d.plotfillhovercolor,"{dark-10}"),c.plotHoverEffects.cylFillHoverColor=/\{/.test(f)?b.parseColorMix(c.cylFillColor,f)[0]:f,c.plotHoverEffects.cylFillHoverAlpha=q(d.cylfillhoveralpha,d.plotfillhoveralpha,c.cylFillAlpha));
c.cylGlassColor=q(d.cylglasscolor,"FFFFFF");c.cyl3DLighting=h(d.use3dlighting,"1")},getPointColorObj:function(a){return{code:q(a.gaugefillcolor,a.thmfillcolor,this.colorManager.getColor("cylFillColor")),alpha:h(a.gaugefillalpha,a.thmfillalpha,100)}},getPointStub:z.linearscalegauge,placeDataLabels:z.linearscalegauge,manageTitleSpace:z.linearscalegauge,spaceManager:function(a,e,c,d){var b=a.chart,f=e.chart,k=c-(b.marginRight+b.marginLeft),g=d-(b.marginTop+b.marginBottom),p=b.marginRight,m=b.marginLeft,
l=b.marginTop,n=b.marginBottom,s=.2*k,r=.3*g,t=h(f.cylyscale,30),u=this.scaleFactor,B=this.numberFormatter;a.title.alignWithCanvas||(g-=this.manageTitleSpace(a,e,k/2,g/2));this.placeTickMark&&(k-=this.placeTickMark(a,s,r));this.placeDataLabels&&(g-=this.placeDataLabels(a,s,r,l,p,n,m)+8,b.valuePadding+=8);this.postDataLabelsPlacement&&this.postDataLabelsPlacement(a,s,r);b.cylHeight=G(f.cylheight);if(50<t||0>t)t=30;b.cylYScale=t/=100;p=Math.max(Ia(k,1.2*g)/2,5);p=h(G(B.getCleanValue(f.cylradius,!0))*
u,p);b.marginLeft=h(G(f.cyloriginx)*u,b.marginLeft);b.marginLeft+=k/2-p;b.marginRight=c-(b.marginLeft+2*p);a.title.alignWithCanvas&&(g-=this.manageTitleSpace(a,e,k/2,g/2));a=g-p*t*2;B=h(G(B.getCleanValue(f.cylheight,!0))*u,a);t=b.yScaleRadius=p*t;a=b.cylinderTotalHeight=2*t+B;g=g-a+b.marginTop;b.marginTop=h(G(f.cyloriginy)*u-B,t+g);b.marginBottom=d-(b.marginTop+B);b.cylRadius=p;b.cylHeight=B;b.yScaleRadius=t}},z.gaugebase);z("angulargauge",{friendlyName:"Angular Gauge",standaloneInit:!0,drawAnnotations:!0,
defaultSeriesType:"angulargauge",creditLabel:!1,rendererId:"angular",isAngular:!0,eiMethods:z.lineargauge.eiMethods,multiValueGauge:!0,realtimeEnabled:!0,defaultPaletteOptions:wa(V({},Ya),{dialColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],dialBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"],pivotColor:["999999,ffffff,999999","ADB68F,F3F5DD,ADB68F","A2C4C8,EDFBFE,A2C4C8","FDB548,FFF5E8,FDB548","FF7CA0,FFD1DD,FF7CA0"],
pivotBorderColor:["999999","ADB68F","A2C4C8","FDB548","FF7CA0"]}),subTitleFontSizeExtender:0,charttopmargin:5,chartrightmargin:5,chartbottommargin:5,chartleftmargin:5,defaultPlotShadow:1,gaugeBorderColor:"{dark-20}",gaugeBorderThickness:1,updateSnapPoints:function(a){z.gaugebase.updateSnapPoints.apply(this,arguments);var e=a.series[0],c=this.snapLiterals;c.gaugestartangle=a.chart.gaugeStartAngle/db;c.gaugeendangle=a.chart.gaugeEndAngle/db;c.chartcenterx=a.chart.origW/2;c.chartcentery=a.chart.origH/
2;c.gaugecenterx=e.gaugeOriginX;c.gaugecentery=e.gaugeOriginY;c.gaugeinnerradius=e.gaugeInnerRadius;c.gaugeouterradius=e.gaugeOuterRadius;c.dial=function(c){var b=a.series[0],e=c[1]||c[0],k=(c=b.data[Number(c[0])||0])&&c.graphic;if(k){k=k.matrix;switch(e){case "startx":b=b.gaugeOriginX+k.x(-c.rearExtension,0);break;case "starty":b=b.gaugeOriginY+k.y(-c.rearExtension,0);break;case "endx":b=b.gaugeOriginX+k.x(c.radius,0);break;case "endy":b=b.gaugeOriginY+k.y(c.radius,0);break;default:b=0}return b}return 0}},
preSeriesAddition:function(a,e){var c=e.chart,d=h(c.gaugescaleangle,180),b=h(c.gaugestartangle),c=h(c.gaugeendangle),f=da(b),k=Oa?.001:.01,g=da(c);if(360<d||-360>d)d=0<d?360:-360;if(360<c||-360>c)c%=360;if(360<b||-360>b)b%=360;if(f&&g){if(d=b-c,360<d||-360>d)d%=360,c=b-d}else if(f){if(c=b-d,360<c||-360>c)c%=360,b+=0<c?-360:360}else if(g){if(b=c+d,360<b||-360>b)b%=360,c+=0<b?-360:360}else 360===d?(b=180,c=-180):-360===d?c=b=-180:(b=90+d/2,c=b-d);360===Math.abs(d)&&(d+=0<d?-k:k,c=b-d);c=360-c;b=360-
b;if(360<b||360<c)b-=360,c-=360;a.chart.gaugeStartAngle=b*db;a.chart.gaugeEndAngle=c*db;a.chart.gaugeScaleAngle=-d*db},series:function(a,e){var c={data:[],colorByPoint:!0},d=a.chart,b=this.colorRangeGetter,f=(b=b&&b.colorArr)&&b.length,k=e[P],g=this.numberFormatter,p=this.colorManager,m,l,n,s=c.showValue=h(d.showvalue,d.showrealtimevalue,0),r=this.scaleFactor,t=0,u=a.dials&&a.dials.dial,B,L,w=h(d.showhovereffect),T,x,y,D,C,E,U,K,ca,H,I,J,Qa,v,N=h(d.editmode,0),Q,S,z,M,A,Ib,Y,X,aa,ba,oa;Q=t=h(G(d.pivotradius)*
r,5);c.pivotRadius=Q;S=0;z=u&&u.length;ba=0;z||(S=-1,z=0,u=[]);for(0!==w&&(w||d.dialborderhovercolor||d.dialborderhoveralpha||0===d.dialborderhoveralpha||d.dialborderhoverthickness||0===d.dialborderhoverthickness||d.dialbghovercolor||d.plotfillhovercolor||d.dialbghoveralpha||d.plotfillhoveralpha||0===d.dialbghoveralpha)&&(w=1);S<z;S+=1){M=u[S]||{};m=g.getCleanValue(M.value);this.pointValueWatcher&&this.pointValueWatcher(m);A=h(M.rearextension,0);t=Math.max(t,A*r);n=g.dataLabels(m);Ib=G(n,O);X=h(M.showvalue,
s);aa=h(G(M.valuey)*r);Y=q(M.tooltext,M.hovertext)?!0:!1;X&&!da(aa)&&(ba+=1);l=(l=G($(q(M.tooltext,M.hovertext,k.tooltext))))?Xa(l,[1,2],{formattedValue:n},M,d):Ib;Qa=q(M.color,M.bgcolor,p.getColor("dialColor"));C=h(M.alpha,M.bgalpha,100);v=R({FCcolor:{color:Qa,alpha:C,angle:90}});B=q(M.bordercolor,p.getColor("dialBorderColor"));oa=h(M.borderalpha,100);n=F(B,oa);L=h(M.borderthickness,1);K=h(M.radius);ca=h(M.basewidth);I=h(M.topwidth,0);H=h(M.baseradius,0);T=h(M.showhovereffect,w);if(0!==T&&(T||M.borderhovercolor||
M.borderhoveralpha||0===M.borderhoveralpha||M.borderhoverthickness||0===M.borderhoverthickness||M.bghovercolor||M.bghoveralpha||0===M.bghoveralpha)){T=!0;J={};U={};x=q(M.borderhovercolor,d.dialborderhovercolor,"{dark-10}");D=h(M.borderhoveralpha,d.dialborderhoveralpha,oa);if(y=h(M.borderhoverthickness,d.dialborderhoverthickness,L))J.stroke=n,E=/\{/.test(x),U.stroke=F(E?p.parseColorMix(B,x)[0]:x,D);y!==L&&(U["stroke-width"]=y,J["stroke-width"]=L);B=q(M.bghovercolor,d.dialbghovercolor,d.plotfillhovercolor,
"{dark-10}");C=h(M.bghoveralpha,d.dialbghoveralpha,d.plotfillhoveralpha,C);J.fill=v;B=(x=/\{/.test(B))?p.parseColorMix(Qa,B).join():B;x={FCcolor:{color:B,alpha:C,angle:90}};U.fill=R(x)}c.data.push({rolloverProperties:{enabled:T,hasHoverSizeChange:void 0,hoverRadius:h(NaN*r),baseHoverWidth:h(NaN*r,1.6*Q),topHoverWidth:h(NaN*r),rearHoverExtension:h(NaN*r),hoverFill:x,hoverAttr:U,outAttr:J},_tooltext:q(M.tooltext,M.hovertext),y:m,id:q(M.id,S),color:v,showValue:X,editMode:h(M.editmode,N),borderColor:n,
shadowAlpha:oa,borderThickness:L,baseWidth:h(ca*r,1.6*Q),topWidth:h(I*r),baseRadius:h(H*r),rearExtension:A*r,valueX:h(G(M.valuex)*r),valueY:aa,radius:h(K*r),link:q(M.link,O),isLabelString:Y,toolText:l,displayValue:X?q(Ib," "):O,doNotSlice:!0})}c.displayValueCount=ba;c.compositPivotRadius=t;e.series[0]=c;f&&this.pointValueWatcher&&h(d.includecolorrangeinlimits,this.includeColorRangeInLimits)&&(c=h(b[0].minvalue),da(c)&&this.pointValueWatcher(c),c=h(b[f-1].maxvalue),da(c)&&this.pointValueWatcher(c))},
postSeriesAddition:function(a,e){var c=e.chart,d=a.series[0],b=this.colorManager,f;d.valueBelowPivot=h(c.valuebelowpivot,0);d.gaugeFillMix=c.gaugefillmix;d.gaugeFillRatio=c.gaugefillratio;void 0===d.gaugeFillMix&&(d.gaugeFillMix="{light-10},{light-70},{dark-10}");void 0===d.gaugeFillRatio?d.gaugeFillRatio=",6":""!==d.gaugeFillRatio&&(d.gaugeFillRatio=","+d.gaugeFillRatio);f=b.parseColorMix(q(c.pivotfillcolor,c.pivotcolor,c.pivotbgcolor,b.getColor("pivotColor")),q(c.pivotfillmix,"{light-10},{light-30},{dark-20}"));
d.pivotFillAlpha=b.parseAlphaList(q(c.pivotfillalpha,Pa),f.length);d.pivotFillRatio=b.parseRatioList(q(c.pivotfillratio,jb),f.length);d.pivotFillColor=f.join();d.pivotFillAngle=h(c.pivotfillangle,0);d.isRadialGradient="radial"==q(c.pivotfilltype,"radial").toLowerCase();d.showPivotBorder=h(c.showpivotborder,0);d.pivotBorderThickness=h(c.pivotborderthickness,1);d.pivotBorderColor=F(q(c.pivotbordercolor,b.getColor("pivotBorderColor")),1==d.showPivotBorder?q(c.pivotborderalpha,Pa):jb);this.parseColorMix=
b.parseColorMix;this.parseAlphaList=b.parseAlphaList;this.parseRatioList=b.parseRatioList},spaceManager:function(a,e,c,d){var b=a.chart,f=e.chart,k=a.scale,g=a.series[0],p=g.displayValueCount,m=k.tickValues.style,l=h(parseInt(m.lineHeight,10),12),n=h(parseInt(m.fontSize,10),10),s=.8*n,r=.1*l,t=Oa?0:.1*l,u=h(parseInt(a.plotOptions.series.dataLabels.style.lineHeight,10),12),B=c-(b.marginRight+b.marginLeft),q=d-(b.marginTop+b.marginBottom),w=this.scaleFactor,T=g.compositPivotRadius,x,y,D=b.gaugeStartAngle,
C=b.gaugeEndAngle,E,U=p*u+2+g.pivotRadius,K=0,ca=g.valueBelowPivot,H,I,J,v,z,N,Q,S,A,M,F,O,Y,X,aa,ba,oa,fa,ta,sa,va,Ra,cb,Ma,ub,gb,hb,Ea,R,P,V,fb,W,$,ga,ka,na;E=/^\d+\%$/.test(f.gaugeinnerradius)?parseInt(f.gaugeinnerradius,10)/100:.7;q-=this.titleSpaceManager(a,e,B,q/2);ca||(K=U,U=0);g.gaugeOuterRadius=h(Math.abs(G(f.gaugeouterradius)*w));g.gaugeInnerRadius=h(Math.abs(G(f.gaugeinnerradius)*w),g.gaugeOuterRadius*E);var ia=b.gaugeStartAngle,ja=b.gaugeEndAngle,ha=q,pa=g.gaugeOuterRadius,ma=h(G(f.gaugeoriginx)*
w-b.marginLeft),Z=h(G(f.gaugeoriginy)*w-b.marginTop),la=Math.max(T,n),qa=U,ra=K,ua=da(pa),xa=da(ma),Ca=da(Z),Ba=2*Math.PI,ya=Math.PI,za=Math.PI/2,Fa=ya+za,Na,Ia=ma,Ja=Z,Ga,wa,Ua,Da,$a,Pa=!1,Ta,Xa,Ya,Za,La,Va,Wa,Aa,Sa,ab,eb=ia%Ba;0>eb&&(eb+=Ba);(la=la||0)&&la<B/2&&la<ha/2&&(Pa=!0);qa>ha/2&&(qa=ha/2);ra>ha/2&&(ra=ha/2);Ta=Math.cos(ia);Xa=Math.sin(ia);Ya=Math.cos(ja);Za=Math.sin(ja);wa=Math.min(Ta,Ya,0);Da=Math.max(Ta,Ya,0);Ua=Math.min(Xa,Za,0);$a=Math.max(Xa,Za,0);if(!ua||!xa||!Ca){ab=ja-ia;Va=eb+ab;
if(Va>Ba||0>Va)Da=1;if(0<ab){if(eb<za&&Va>za||Va>Ba+za)$a=1;if(eb<ya&&Va>ya||Va>Ba+ya)wa=-1;if(eb<Fa&&Va>Fa||Va>Ba+Fa)Ua=-1}else{if(eb>za&&Va<za||Va<-Fa)$a=1;if(eb>ya&&Va<ya||Va<-ya)wa=-1;if(eb>Fa&&Va<Fa||Va<-za)Ua=-1}xa?ua||(Aa=B-ma,Sa=-ma,Na=wa?Math.min(Aa/Da,Sa/wa):Aa/Da):(Wa=Da-wa,La=B/Wa,ma=-La*wa,Na=La,Pa&&(B-ma<la?(ma=B-la,Aa=B-ma,Sa=-ma,Na=wa?Math.min(Aa/Da,Sa/wa):Aa/Da):ma<la&&(ma=la,Aa=B-ma,Sa=-ma,Na=wa?Math.min(Aa/Da,Sa/wa):Aa/Da)),Ia=ma);Ca?ua||(Aa=ha-Z,Sa=-Z,Na=Math.min(Na,Ua?Math.min(Aa/
$a,Sa/Ua):Aa/$a)):(Wa=$a-Ua,La=ha/Wa,Z=-La*Ua,Pa&&(ha-Z<la?(Z=ha-la,Aa=ha-Z,Sa=-Z,Na=Math.min(Na,Ua?Math.min(Aa/$a,Sa/Ua):Aa/$a)):Z<la&&(Z=la,Aa=ha-Z,Sa=-Z,Na=Math.min(Na,Ua?Math.min(Aa/$a,Sa/Ua):Aa/$a))),ha-Z<qa?(Z=ha-qa,Aa=ha-Z,Sa=-Z,Na=Math.min(Na,Ua?Math.min(Aa/$a,Sa/Ua):Aa/$a)):Z<ra&&(Z=ra,Aa=ha-Z,Sa=-Z,Na=Math.min(Na,Ua?Math.min(Aa/$a,Sa/Ua):Aa/$a)),Na=Math.min(Na,La),Ja=Z);Ga=Na;0>=Ga&&(Ga=Math.min(B/2,ha/2))}x=g.gaugeOriginX=Ia;y=g.gaugeOriginY=Ja;H=k.majorTM;I=0;J=H.length;z=a.labels.smartLabel;
F=k.min;O=k.max-k.min;oa=B-x;fa=q-y;ta=k.placeValuesInside;sa=Math.cos(89.98*db);va=-sa;Ra=da(g.gaugeOuterRadius);cb=k.tickValueDistance;Ma=k.showTickValues;ub=k.showLimits;gb=h(g.gaugeOuterRadius,Ga);hb=h(g.gaugeInnerRadius,gb*E);Ea=gb;R=.2*gb;ga=1.5*l;na=(C-D)/O;if(Ma||ub)for(ta?hb>cb+l?P=hb-cb:(P=hb,cb=0):(Ea+=cb,Ra||(R+=cb)),z.setStyle(m);I<J;I+=1)if(M=H[I],ka=D+(M.value-F)*na,Y=Math.cos(ka),X=Math.sin(ka),v=M.displayValue,N=z.getOriSize(v),Q=N.width,S=N.height,A=S/2,0<Q&&0<S)if(M.x=0,ta)M.align=
Y>sa?bb:Y<va?Ha:Ka,M.isString&&(aa=P*Y,V=Math.abs(aa),V<Q&&(N=z.getSmartText(v,Math.max(V,l),ga),M.displayValue=N.text,N.tooltext&&(M.originalText=N.tooltext),S=N.height,A=S/2)),Y>sa||Y<va?(M.y=n-A+t,M.y-=.4*S*X):M.y=s-(0>X?0:S-r);else if(M.align=Y>sa?Ha:Y<va?bb:Ka,aa=Ea*Y,ba=Ea*X,Ra||(0<ba?($=A+A*X,fa<ba+$&&(ba=fa-$,Ea=Math.max(ba/X,R))):0>ba&&($=A-A*X,y<-ba+$&&(ba=$-y,Ea=Math.max(ba/X,R)))),Y>sa)aa+Q>oa&&(Ra?M.isString&&(N=z.getSmartText(v,oa-aa,ga),M.displayValue=N.text,N.tooltext&&(M.originalText=
N.tooltext),S=N.height,A=S/2):(aa=oa-Q,Ea=Math.max(aa/Y,R),aa=Ea*Y,M.isString&&aa+Q>oa&&(N=z.getSmartText(v,oa-aa,ga),M.displayValue=N.text,N.tooltext&&(M.originalText=N.tooltext),S=N.height,A=S/2,Q=N.width,aa=oa-Q,Ea=Math.max(aa/Y,R)))),M.y=n-A+t+.4*S*X;else if(Y<va)Q-aa>x&&(Ra?M.isString&&(N=z.getSmartText(v,x+aa,ga),M.displayValue=N.text,N.tooltext&&(M.originalText=N.tooltext),S=N.height,A=S/2):(aa=Q-x,Ea=Math.max(aa/Y,R),aa=Ea*Y,M.isString&&Q-aa>x&&(N=z.getSmartText(v,x+aa,ga),M.displayValue=
N.text,N.tooltext&&(M.originalText=N.tooltext),Q=N.width,S=N.height,A=S/2,aa=Q-x,Ea=Math.max(aa/Y,R)))),M.y=n-A+t+.4*S*X;else{0<X?(fb=fa,W=S+ba):(fb=y,W=S-ba);if(!Ra){if(W>fb&&(Ea=Math.max(fb-S,R),W=S+Ea),M.isString&&W>fb||Q>B)N=z.getSmartText(v,B,Math.max(fb-R,l)),M.displayValue=N.text,N.tooltext&&(M.originalText=N.tooltext),S=N.height,Ea=Math.max(fb-S,R)}else if(M.isString&&W>fb||Q>B)N=z.getSmartText(v,B,Math.max(S-W+fb,l)),M.displayValue=N.text,N.tooltext&&(M.originalText=N.tooltext),S=N.height;
M.y=s-(0<X?0:S-r)}Ra||(g.gaugeOuterRadius=ta?Ea:Ea-cb,0>=g.gaugeOuterRadius&&(g.gaugeOuterRadius=Math.abs(R)));g.gaugeInnerRadius=h(g.gaugeInnerRadius,g.gaugeOuterRadius*E)}},z.gaugebase);z("bulb",{friendlyName:"Bulb Gauge",defaultSeriesType:"bulb",defaultPlotShadow:1,standaloneInit:!0,drawAnnotations:!0,charttopmargin:10,chartrightmargin:10,chartbottommargin:10,chartleftmargin:10,realtimeEnabled:!0,isDataLabelBold:!0,rendererId:"bulb",preSeriesAddition:function(a){a=a.chart;a.colorRangeGetter=this.colorRangeGetter;
a.defaultColors=this.colorManager.getPlotColor(0);a.defaultColLen=a.defaultColors.length},getPointColor:function(a,e,c){return c?{FCcolor:{cx:.4,cy:.4,r:"80%",color:W(a,65)+v+W(a,75)+v+ha(a,65),alpha:e+v+e+v+e,ratio:"0,30,70",radialGradient:!0}}:F(a,e)},getPointStub:function(a,e,c,d,b){var f=c.chart,k=c[P];e=d.chart;c=this.numberFormatter;d=c.getCleanValue(a.value);var g=c.dataLabels(d);c=G(a.link);var p=G($(q(a.tooltext,k.tooltext))),m=G($(a.displayvalue)),k=this.colorRangeGetter.getColorObj(d),
l=f.useColorNameAsValue=h(e.usecolornameasvalue,0),n=k.colorObj||k.prevObj||k.nextObj||{},s=this.colorManager,r=$(q(n.label,n.name)),t=q(e.gaugefillalpha,n.alpha,Pa),u=q(n.bordercolor,e.gaugebordercolor,ha(n.code,70)),B=h(n.borderalpha,e.gaugeborderalpha,"90")*t/100,L=h(e.showgaugeborder,0),w=L?h(e.gaugeborderthickness,1):0,T=f.is3D=h(e.is3d,1),x=this.getPointColor(n.code,t,T),y=h(e.showhovereffect),D,C,E,U,K,ca,H,I,J;k.isOnMeetPoint&&(n=k.nextObj);f.gaugeFillAlpha=t;u=(I=/\{/.test(u))?s.parseColorMix(q(n.bordercolor,
n.code),u)[0]:u;f=F(u,B);0!==y&&(y||e.gaugefillhovercolor||e.plotfillhovercolor||e.gaugefillhoveralpha||e.plotfillhoveralpha||0===e.gaugefillhoveralpha||e.is3donhover||0===e.is3donhover||e.showgaugeborderonhover||0===e.showgaugeborderonhover||e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness)&&(y=!0,D=q(e.gaugefillhovercolor,e.plotfillhovercolor,"{dark-10}"),C=h(e.gaugefillhoveralpha,e.plotfillhoveralpha),E=
h(e.showgaugeborderonhover),void 0===E&&(E=e.gaugeborderhovercolor||e.gaugeborderhoveralpha||0===e.gaugeborderhoveralpha||e.gaugeborderhoverthickness||0===e.gaugeborderhoverthickness?1:L),L=q(e.gaugeborderhovercolor,"{dark-10}"),K=h(e.gaugeborderhoveralpha),U=E?h(e.gaugeborderhoverthickness,w||1):0,T=!!h(e.is3donhover,T),h(e.showhoveranimation,1),E={},J={},w!==U&&(E["stroke-width"]=U,J["stroke-width"]=w),J.fill=R(x),D=(H=/\{/.test(D))?s.parseColorMix(n.code,D)[0]:q(D,n.code),E.fill=R(this.getPointColor(D,
h(C,t),T)),U&&(J.stroke=f,n=/\{/.test(L),E.stroke=F(n?s.parseColorMix(I?D:u,L)[0]:L,h(K,B))));this.showTooltip?void 0!==p?(a=Xa(p,[1,2],{formattedValue:g},a,e),ca=!0):a=l?r:null===g?!1:void 0!==b?b+this.tooltipSepChar+g:g:a=!1;b=void 0!==m?m:l?r:g;this.pointValueWatcher&&this.pointValueWatcher(d);return{y:d,displayValue:b,toolText:a,isLabelString:ca,colorName:r,color:x,borderWidth:w,borderColor:f,colorRange:k,link:c,doNotSlice:!0,rolloverProperties:{enabled:y,hoverAttr:E,hoverAnimAttr:void 0,outAttr:J}}},
spaceManager:function(a,e,c,d){var b=this.smartLabel,f=a.series[0],k=f&&f.data[0],f=a.chart,g=e.chart,p=f.scaleFactor=this.scaleFactor;c-=f.marginRight+f.marginLeft;d-=f.marginTop+f.marginBottom;var m=f.marginLeft,l=f.marginTop,n=h(g.valuepadding,4),s=f.useColorNameAsValue,r,t=0,u;k.y=G(k.y,a.scale.min);k.displayValue=this.showValues?G(k.displayValue,this.numberFormatter.dataLabels(a.scale.min)):O;u=k.displayValue;f.gaugeOriginX=h(g.gaugeoriginx,g.bulboriginx,-1);f.gaugeOriginY=h(g.gaugeoriginy,g.bulboriginy,
-1);f.gaugeRadius=h(g.gaugeradius,g.bulbradius,-1);g=-1!==f.gaugeRadius;d-=e=this.titleSpaceManager(a,e,c,.3*d);l+=e;f.dataLabels={style:a.plotOptions.series.dataLabels.style};e=f.dataLabels.style;b.setStyle(e);1==f.placeValuesInside?(a=g?f.gaugeRadius*p:Math.min(c,d)/2,r=Math.sqrt(la(2*a,2)/2),b=b.getSmartText(u,r,r)):(r=(g?d-2*f.gaugeRadius*p:.7*d)-n,b=b.getSmartText(u,c,r),t=b.height+n,a=Math.min(c,d-t)/2);s&&(k.displayValue=b.text,b.tooltext&&(k.originalText=b.tooltext));f.valuePadding=n;f.valueTextHeight=
b.height;f.labelLineHeight=parseInt(e.lineHeight,10);a=g?f.gaugeRadius*p:a;b=-1===f.gaugeOriginX?m+c/2:f.gaugeOriginX*p;p=-1===f.gaugeOriginY?l+(d-t)/2:f.gaugeOriginY*p;f.marginTop=f.marginLeft=0;f.gaugeRadius=a;f.gaugeOriginX=b;f.gaugeOriginY=p},updateSnapPoints:function(a){z.gaugebase.updateSnapPoints.apply(this,arguments);this.snapLiterals.gaugeradius=a.chart.gaugeRadius}},z.gaugebase);z("drawingpad",{friendlyName:"DrawingPad Component",standaloneInit:!0,defaultSeriesType:"drawingpad",rendererId:"drawingpad",
defaultPlotShadow:1,drawAnnotations:!0,chartleftmargin:0,charttopmargin:0,chartrightmargin:0,chartbottommargin:0,chart:function(){V(this.dataObj.chart,{bgcolor:this.dataObj.chart.bgcolor||"#ffffff",bgalpha:this.dataObj.chart.bgalpha||"100"});return this.base.chart.apply(this,arguments)},series:function(){V(this.hcJSON,{legend:{enabled:!1},chart:{plotBackgroundColor:Ga,plotBorderColor:Ga},series:[{data:[]}]})},spaceManager:function(){},creditLabel:!1},z.bulb);z("funnel",{friendlyName:"Funnel Chart",
standaloneInit:!0,defaultSeriesType:"funnel",sliceOnLegendClick:!0,defaultPlotShadow:1,subTitleFontSizeExtender:0,tooltippadding:3,drawAnnotations:!0,isDataLabelBold:!1,formatnumberscale:1,rendererId:"funnel",alignCaptionWithCanvas:0,defaultPaletteOptions:wa(V({},Ya),{paletteColors:A.defaultPaletteOptions.paletteColors}),preSeriesAddition:function(a,e){var c=e.chart,d=this.colorManager,b=a.plotOptions.series.dataLabels;b.connectorWidth=h(c.smartlinethickness,1);b.connectorColor=F(q(c.smartlinecolor,
d.getColor("baseFontColor")),h(c.smartlinealpha,100));h(c.showlegend,0)?(a.legend.enabled=!0,a.legend.reversed=!Boolean(h(c.reverselegend,0))):a.legend.enabled=!1;a.plotOptions.series.point.events.legendItemClick=c.interactivelegend===jb?Fa:function(){this.slice()}},series:function(a,e,c){a.data&&0<a.data.length&&(a=this.point(c,{data:[],colorByPoint:!0,showInLegend:!0},a.data,a.chart,e))&&e.series.push(a)},pointHoverOptions:function(a,e,c){var d=h(a.showhovereffect,e.showhovereffect),b={enabled:d},
f={};void 0===d&&(d=b.enabled=void 0!==q(a.hovercolor,e.plotfillhovercolor,a.hoveralpha,e.plotfillhoveralpha,a.borderhovercolor,e.plotborderhovercolor,a.borderhoverthickness,e.plotborderhoverthickness,a.borderhoveralpha,e.plotborderhoveralpha));if(d){b.highlight=h(a.highlightonhover,e.highlightonhover);b.color=q(a.hovercolor,e.plotfillhovercolor);b.alpha=q(a.hoveralpha,e.plotfillhoveralpha,c.alpha);b.borderColor=q(a.borderhovercolor,e.plotborderhovercolor,c.borderColor);b.borderThickness=h(a.borderhoverthickness,
e.plotborderhoverthickness,c.borderWidth);b.borderAlpha=q(a.borderhoveralpha,e.plotborderhoveralpha,c.borderAlpha);0!==b.highlight&&void 0===b.color&&(b.highlight=1);b.color=q(b.color,c.color).replace(/,+?$/,O);if(1===b.highlight){a=b.color.split(/\s{0,},\s{0,}/);e=a.length;for(c=0;c<e;c+=1)a[c]=W(a[c],70);b.color=a.join(",")}f={color:b.color,alpha:b.alpha,borderColor:F(b.borderColor,b.borderAlpha),borderWidth:b.borderThickness}}return{enabled:d,options:b,rolloverOptions:f}},point:function(a,e,c,
d,b){a=b[P];var f=0,k=O,g=[],p=q(d.plotborderthickness,Jb),m=!0,l=!1,n=O,s=b.chart,r=this.isPyramid,t=h(d.showpercentintooltip,1),u=h(d.showlabels,1),B=h(d.showvalues,1),L=h(d.showpercentvalues,d.showpercentagevalues,0),w=q(d.tooltipsepchar,d.hovercapsepchar,Rb),T=q(d.labelsepchar,w),x=q(d.plotbordercolor,d.piebordercolor),y=this.smartLabel,D=this.numberFormatter,C=c.length,E,U=this.colorManager,s=s.issliced=h(d.issliced,0),K=0,ca=h(d.showvalueinlegend,0),H=h(d.showlabelinlegend,1),I=h(d.valuebeforelabelinlegend,
0),J=h(d.showvalueaspercentinlegend,1),Qa=q(d.legendsepchar,", "),Sb=b.plotOptions.series.dataLabels.style,N={apply:d.showshadow==Jb,opacity:1},Q,S,tb,M,ea,R,Y,X,aa,ba,oa,fa,ta,sa,va;e.isPyramid=r;ta=e.streamlinedData=h(d.streamlineddata,1);e.is2d=h(d.is2d,0);e.isHollow=h(d.ishollow,ta?1:0);oa=h(d.percentofprevious,0);ba=h(this.isPyramid?d.pyramidyscale:d.funnelyscale);e.labelDistance=Math.abs(h(d.labeldistance,d.nametbdistance,50));e.showLabelsAtCenter=h(d.showlabelsatcenter,0);e.yScale=0<=ba&&40>=
ba?ba/200:.2;u||B||(b.plotOptions.series.dataLabels.enabled=!1,!1===b.tooltip.enabled&&(m=!1));e.useSameSlantAngle=h(d.usesameslantangle,ta?0:1);for(b=0;b<C;b+=1)Q=c[b],c[b].vline||(Q.cleanValue=ba=D.getCleanValue(Q.value,!0),null!==ba&&(l=!0,va=va||ba,g.push(Q),f+=ba,va=Math.max(va,ba)));if(l){e.valueSum=f;c=D.dataLabels(f);C=g.length;!r&&ta&&g.sort(function(a,b){return b.cleanValue-a.cleanValue});r||ta||e.data.push({showInLegend:!1,y:f,name:"",shadow:N,smartTextObj:E,color:S,alpha:tb,borderColor:F(M,
ea),borderWidth:p,link:G(Q.link),style:A.parsexAxisStyles(Q,{},d,Sb,S),displayValue:O,doNotSlice:0===h(d.enableslicing,1)});for(b=0;b<g.length;b+=1){Q=g[b];l=Q.cleanValue;fa=b?g[b-1].value:l;C=$(q(Q.label,Q.name,O));E=y.getOriSize(C);S=b&&!r&&ta?b-1:b;S=q(Q.color,U.getPlotColor(S));tb=q(Q.alpha,d.plotfillalpha,Pa);M=q(Q.bordercolor,x,W(S,25)).split(v)[0];ea=1!=d.showplotborder?jb:q(Q.borderalpha,d.plotborderalpha,d.pieborderalpha,"80");N.opacity=Math.max(tb,ea)/100;if(ba=h(Q.issliced,s))K+=1,a.preSliced=
ba;sa=r||!ta?f:oa?fa:va;m&&(Y=D.percentValue(l/sa*100),X=D.dataLabels(l)||O,R=1===u?C:O,k=1===h(Q.showvalue,B)?1===L?Y:X:O,k=(aa=G($(Q.displayvalue)))?aa:k!==O&&R!==O?R+T+k:q(R,k)||O,ta&&(n=oa?Y:D.percentValue(l/fa*100)),R=G($(q(Q.tooltext,a.tooltext))),void 0!==R?R=Xa(R,[1,2,3,7,14,24,25,37],{formattedValue:X,label:C,percentValue:oa?D.percentValue(l/va*100):Y,sum:c,unformattedSum:f,percentOfPrevValue:n},Q,d):(R=1===t?Y:X,R=C!==O?C+w+R:R));fa=H?C:O;ca&&(sa=J?D.legendPercentValue(l/sa*100):D.legendValue(l),
fa=I?sa+(fa&&Qa+fa):(fa&&fa+Qa)+sa);sa=this.pointHoverOptions(Q,d,{color:S,alpha:tb,borderColor:M,borderAlpha:ea,borderWidth:p});E={displayValue:k,style:A.parsexAxisStyles(Q,{},d,Sb,S),categoryLabel:C,toolText:R,legendCosmetics:z.singleseries.parseLegendOptions(d,Q),showInLegend:fa!==O,y:l,name:fa,shadow:N,smartTextObj:E,color:S,alpha:tb,borderColor:F(M,ea),borderWidth:p,link:G(Q.link),isSliced:ba,doNotSlice:0===h(d.enableslicing,1),tooltipConstraint:this.tooltipConstraint,hoverEffects:sa.enabled&&
sa.options,rolloverProperties:sa.enabled&&sa.rolloverOptions};b||r||!ta||(E.showInLegend=!1);e.data.push(E)}f||(e.data=[]);e.labelMaxWidth=0;e.noOFSlicedElement=K;return e}return null},spaceManager:function(a,e,c,d){var b=this.smartLabel,f=e.chart,k=a.chart,g=q(f.legendposition,rb).toLowerCase(),p=c-(k.marginRight+k.marginLeft);d-=k.marginTop+k.marginBottom;var m=this.isPyramid,l=0,n=0,s,r,t=a.series[0],u,B,L,w,T,x,y,D,C,E,U,K,ca,H,I,J,v,z,N,Q,A,G=k.marginLeft;if(t){u=this._tempSnap={top3DSpace:0,
bottom3DSpace:0,topLabelSpace:0,rightLabelSpace:0};a.legend.enabled&&(g===bb?p-=this.placeLegendBlockRight(a,e,p/2,d,!0):d-=this.placeLegendBlockBottom(a,e,p,d/2,!0));r=.1*d;s=h(f.slicingdistance,r);r=s>2*r?0:s;f=Math.min(2*(d-r),p);k.marginTop+=r/2;k.marginBottom+=r/2;t.SlicingDistance=s;n=t.data;y=n.length;D=m?0:1;r=t.labelDistance+3;s=t.showLabelsAtCenter;K=Math.min(f,.3*p);w=p-K;ca=p-K-r;I=0;J=(B=n[0])&&n[0].y?n[0].y:1;v=t.valueSum?t.valueSum:1;z=m?0:1;N=.8/J;Q=1==t.useSameSlantAngle;U=(A=!m&&
!t.streamlinedData)?n[0].y-n[1].y:0;!m&&B&&n[0].displayValue&&(C=n[0],B=a.plotOptions.series.dataLabels.style,H=h(Kb(parseFloat(B.lineHeight)+B.borderPadding+B.borderThickness),10),b.setStyle(B),L=b.getSmartText(C.displayValue,p,H),C.displayValue=L.text,L.tooltext&&(C.originalText=L.tooltext),C.labelWidht=b.getOriSize(L.text).width,k.marginTop+=u.topLabelSpace=H+4);for(;D<y;D+=1)C=n[D],B=C.style,H=h(Kb(parseFloat(B.lineHeight)+B.borderPadding+B.borderThickness),10),b.setStyle(B),s?b.getSmartText(C.displayValue,
p,H):(x=m?(B=U+C.y/2)?B/v:1:A?.2+N*U:C.y?Q?C.y/J:Math.sqrt(C.y/J):1,B=K*x,E=ca+(K-B)/2,L=b.getSmartText(C.displayValue,E,H),C.displayValue=L.text,L.tooltext&&(C.originalText=L.tooltext),I=Math.max(I,L.width),0<w&&(L=0<L.width?E-L.width:E+r,B=1/(x+1)*(B+2*L+K),w=Math.min(w,B-K)),U+=A?-(n[D+1]&&n[D+1].y||0):C.y);C&&(T=m?1:A?.2:C.y?Q?C.y/J:Math.sqrt(C.y/J):1);w=K+w;w>f&&(w=f);U=A?n[0].y-n[1].y:0;if(!s)for(D=m?0:1,y=n.length;D<y;D+=1)C=n[D],x=m?(B=U+C.y/2)?B/v:1:A?.2+N*U:C.y?Q?C.y/J:pb(C.y/J):1,B=w*x,
E=ca+(K-B)/2,L=b.getSmartText(C.displayValue,E,H),l=Ca(l,.5*B+L.width+r),U+=A?-(n[D+1]&&n[D+1].y||0):C.y;0<I?(u.rightLabelSpace=p-w,n=l-(.5*c-k.marginRight),0<n&&(k.marginRight+=n,k.marginLeft-=n),a.legend.enabled&&g===bb?k.marginLeft<G&&(k.marginLeft=G):(k.marginRight+=.5*u.rightLabelSpace,k.marginLeft+=.5*u.rightLabelSpace),p-=a.title.alignWithCanvas?u.rightLabelSpace:0):r=0;t.labelDistance=t.connectorWidth=r;this.titleSpaceManager(a,e,p,d/2);(s||!I)&&f<p&&(k.marginLeft+=.5*(p-f-r),k.marginRight+=
.5*(p-f-r));t.is2d||(k.marginTop+=u.top3DSpace=w*t.yScale*z/2,k.marginBottom+=u.bottom3DSpace=w*t.yScale*T/2)}},updateSnapPoints:function(){z.gaugebase.updateSnapPoints.apply(this,arguments);var a=this.snapLiterals,e=this._tempSnap||{};a.plotwidth=a.canvaswidth;a.plotsemiwidth=a.canvaswidth/2;a.plotheight=a.canvasheight+e.top3DSpace+e.bottom3DSpace;a.plotstartx=a.canvasstartx;a.plotstarty=a.canvasstarty-e.top3DSpace;a.plotendx=a.canvasendx;a.plotendy=a.canvasendy+e.bottom3DSpace;a.canvaswidth+=e.rightLabelSpace;
a.canvasheight=a.plotheight+e.topLabelSpace;a.canvasstarty=a.plotstarty-e.topLabelSpace;a.canvasendy=a.plotendy;a.canvasendx+=e.rightLabelSpace},eiMethods:{sliceDataItem:function(a){var e=this.jsVars.hcObj,c;if(e&&e.series&&(c=e.series[0])&&c.data&&c.data[a]&&c.data[a].slice)return c.data[c.xIncrement-1-a].slice()}},useSortedData:!0,creditLabel:!1},z.gaugebase);z("pyramid",{friendlyName:"Pyramid Chart",subTitleFontSizeExtender:0,drawAnnotations:!0,standaloneInit:!0,defaultSeriesType:"pyramid",defaultPlotShadow:1,
useSortedData:!1,isPyramid:1,creditLabel:!1,rendererId:"pyramid"},z.funnel);z("sparkbase",{defaultPlotShadow:0,useSortedData:!1,subTitleFontSizeExtender:0,subTitleFontWeight:0,drawAnnotations:!0,showYAxisValues:0,numdivlines:0,chartrightmargin:3,chartleftmargin:3,charttopmargin:3,chartbottommargin:3,decimals:2,showTrendlineLabel:0,zeroplanethickness:0,tooltippadding:1,useScaleRecursively:!0,showTrendlineLabels:0,showAxisLimitGridLines:0,styleApplicationDefinition_font:z.gaugebase.styleApplicationDefinition_font,
defaultPaletteOptions:wa(V({},Ya),{paletteColors:[["555555","A6A6A6","CCCCCC","E1E1E1","F0F0F0"],["A7AA95","C4C6B7","DEDFD7","F2F2EE"],["04C2E3","66E7FD","9CEFFE","CEF8FF"],["FA9101","FEB654","FED7A0","FFEDD5"],["FF2B60","FF6C92","FFB9CB","FFE8EE"]],bgColor:["FFFFFF","CFD4BE,F3F5DD","C5DADD,EDFBFE","A86402,FDC16D","FF7CA0,FFD1DD"],bgAngle:[270,270,270,270,270],bgRatio:["0,100","0,100","0,100","0,100","0,100"],bgAlpha:["100","60,50","40,20","20,10","30,30"],canvasBgColor:["FFFFFF","FFFFFF","FFFFFF",
"FFFFFF","FFFFFF"],canvasBgAngle:[0,0,0,0,0],canvasBgAlpha:["100","100","100","100","100"],canvasBgRatio:["","","","",""],canvasBorderColor:["BCBCBC","BEC5A7","93ADBF","C97901","FF97B1"],toolTipBgColor:["FFFFFF","FFFFFF","FFFFFF","FFFFFF","FFFFFF"],toolTipBorderColor:["545454","545454","415D6F","845001","68001B"],baseFontColor:["333333","60634E","025B6A","A15E01","68001B"],trendColor:["666666","60634E","415D6F","845001","68001B"],plotFillColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],borderColor:["767575",
"545454","415D6F","845001","68001B"],borderAlpha:[50,50,50,50,50],periodColor:["EEEEEE","ECEEE6","E6ECF0","FFF4E6","FFF2F5"],winColor:["666666","60634E","025B6A","A15E01","FF97B1"],lossColor:["CC0000","CC0000","CC0000","CC0000","CC0000"],drawColor:["666666","A5AE84","93ADBF","C97901","FF97B1"],scorelessColor:["FF0000","FF0000","FF0000","FF0000","FF0000"]}),preSeriesAddition:function(a,e){var c=a.plotOptions.series.dataLabels.style,d=a.chart,b=e.chart,c={fontFamily:c.fontFamily,fontSize:c.fontSize,
lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},f,k,g,p;if("sparkwinloss"==this.name&&(f=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data,k={w:1,l:-1,d:.1},0<(g=f&&f.length)))for(;g;)--g,p=f[g],p.value=k[p.value.toLowerCase()];d.borderWidth=h(b.showborder,this.showBorder,0)?h(b.borderthickness,1):0;d.plotBorderWidth=h(b.canvasborderthickness,1);f=d.openColor=ua(q(b.opencolor,"0099FF"));k=d.closeColor=ua(q(b.closecolor,"0099FF"));d.highColor=ua(q(b.highcolor,"00CC00"));d.lowColor=
ua(q(b.lowcolor,"CC0000"));d.openHoverColor=F(ua(q(b.openhovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(f,70))),h(b.openhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.closeHoverColor=F(ua(q(b.closehovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(k,70))),h(b.closehoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));d.highHoverColor=F(ua(q(b.highhovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(d.highColor,70))),h(b.highhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,
100));d.lowHoverColor=F(ua(q(b.lowhovercolor,b.anchorhovercolor,b.plotfillhovercolor,W(d.lowColor,70))),h(b.lowhoveralpha,b.anchorhoveralpha,b.plotfillhoveralpha,100));this.forceHoverEnable=q(b.openhovercolor,b.closehovercolor,b.highhovercolor,b.lowhovercolor,b.openhoveralpha,b.closehoveralpha,b.highhoveralpha,b.lowhoveralpha,b.winhovercolor,b.losshovercolor,b.drawhovercolor,b.scorelesshovercolor);a.chart.openValue={style:V({},c)};Ja(a.chart.openValue.style);a.chart.openValue.style.color=f;a.chart.closeValue=
{style:V({},c)};Ja(a.chart.openValue.style);a.chart.closeValue.style.color=k;a.chart.highLowValue={style:V({},c)};this.parseStyles(a);0===this.showCanvas&&(d.plotBackgroundColor=Ga);this.showCanvasBorder||(d.plotBorderWidth=0);d.useRoundEdges||(d.plotShadow=0);b.zeroplanethickness=q(b.zeroplanethickness,this.zeroplanethickness);delete b.yaxisname;delete b.xaxisname;b.showlabels=q(b.showlabels,jb)},spaceManager:function(a,e,c,d){var b=a[P],f=this.smartLabel||b.smartLabel,k=e.chart,g=a.series[0],p=
a.chart,m=c-(p.marginRight+p.marginLeft),l=h(k.canvasleftmargin),n=h(k.canvasrightmargin),s=a.valuePadding=h(k.valuepadding,2),r=a.plotOptions.series.dataLabels.style,t=parseInt(r.lineHeight,10),u=m,B=b=0,L,w;if(g){d=Fb(a,e,.7*m,d,void 0,c,d,this);u-=d.left+d.right;m=c-(p.marginRight+p.marginLeft);w=L=g=0;f.setStyle(r);da(p.openValue.label)&&(f.setStyle(p.openValue.style),t=h(parseInt(p.openValue.style.lineHeight,10),10),r=f.getSmartText(p.openValue.label,u,1.5*t),0<r.width&&(b=g=r.width+s,u-=g));
da(p.closeValue.label)&&(f.setStyle(p.closeValue.style),t=h(parseInt(p.closeValue.style.lineHeight,10),10),r=f.getSmartText(p.closeValue.label,u,1.5*t),0<r.width&&(B=L=r.width+s,u-=L));da(p.highLowValue.label)&&(f.setStyle(p.highLowValue.style),t=h(parseInt(p.highLowValue.style.lineHeight,10),10),f=f.getSmartText(p.highLowValue.label,u,1.5*t),0<f.width&&(B+=w=f.width+s));p.marginRight+=w+L;p.marginLeft+=g;da(l)?(p.spacingLeft=p.marginLeft=l,p.spacingLeft-=d.left+g):p.marginLeft+=d.left;da(n)?(p.spacingRight=
p.marginRight=n,p.spacingRight-=d.right+w+L):p.marginRight+=d.right;this.xAxisMinMaxSetter(a,e,m);p=a.xAxis;n=p.min;m=p.max;l=h(k.periodlength,0);k=F(q(k.periodcolor,this.colorManager.getColor("periodColor")),h(k.periodalpha,100));s=1;if(0<l)for(;n<=m;n+=l)s?(p.plotBands.push({color:k,from:n,to:Math.min(m,n+l),zIndex:1}),s=0):s=1;Gb(a,e,c,b,B,this)}}},Tb);z("sparkline",{friendlyName:"Spark Line Chart",standaloneInit:!0,defaultSeriesType:"line",rendererId:"sparkline",creditLabel:!1,showtooltip:0,showCanvas:0,
point:z.linebase.point,lineThickness:1,anchorRadius:2,anchorBorderThickness:0,postSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=a.series&&a.series[0],k=f&&a.series[0].data,g,p,m,l=this.highValue,n=this.lowValue,s=this.numberFormatter,r=c.openColor,t=c.closeColor,u=c.highColor,B=c.lowColor,L=c.openHoverColor,w=c.closeHoverColor,T=c.highHoverColor,x=c.lowHoverColor,y;y=ua(q(d.anchorcolor,b.getColor("plotFillColor")));var D=h(d.showopenanchor,d.drawanchors,d.showanchors,
1),C=h(d.showcloseanchor,d.drawanchors,d.showanchors,1),E=h(d.showhighanchor,d.drawanchors,d.showanchors,1),U=h(d.showlowanchor,d.drawanchors,d.showanchors,1),K=h(d.anchoralpha,100),ca,H=h(d.drawanchors,d.showanchors,0),I=H?h(d.anchoralpha,100):0,J,v,A=0,N=q(d.linecolor,b.getColor("plotFillColor")),z=h(d.linealpha,100),S,G;if(0<(b=g=k&&k.length)){p=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;f.color=F(N,z);S=k[0]&&k[0].y||O;for(G=k[b-1]&&k[b-1].y||O;g;)--g,f=k[g],m=p[g],y=void 0,ca=h(f.anchorbgalpha,
K),f.color=F(q(m.color,N),h(m.alpha,z)),f.marker.fillColor=F(q(f.anchorbgcolor,y),h(f.anchorbgalpha,I)),y=F(ua(q(d.anchorhovercolor,d.plotfillhovercolor,W(N,70))),h(d.lowhoveralpha,d.anchorhoveralpha,d.plotfillhoveralpha,100)),h(d.anchorhoverradius,f.marker.radius),f.marker.enabled=!!H,f.y==n&&(y=q(f.anchorbgcolor,B),f.marker.fillColor=F(y,ca),y=x,f.marker.enabled=!!U,v=s.dataLabels(f.y)),f.y==l&&(y=q(f.anchorbgcolor,u),f.marker.fillColor=F(y,ca),y=T,f.marker.enabled=!!E,J=s.dataLabels(f.y)),void 0!==
f.toolText&&(f.toolText=Xa(f.toolText,[54,55,56,57,58,59,60,61],{openDataValue:s.dataLabels(S),closeDataValue:s.dataLabels(G),highDataValue:s.dataLabels(l),lowDataValue:s.dataLabels(n),openValue:S,closeValue:G,highValue:l,lowValue:n},{},d)),h(m.showvalue,d.showvalue,d.showvalues,0)||(f.displayValue=O),da(f.y)&&(A=1),m=f.hoverEffects,f.marker.enabled&&m&&(m.anchorColor=y,m=f.rolloverProperties,m.radius=h(d.anchorhoverradius,f.marker.radius),m.lineWidth=0,m.lineColor=m.fillColor=y);f=k[0];f.marker.fillColor=
F(q(f.anchorbgcolor,r),ca);f.marker.enabled=!!D;m=f.hoverEffects;f.marker.enabled&&m&&(m.anchorColor=L,m=f.rolloverProperties,m.radius=h(d.anchorhoverradius,f.marker.radius),m.lineWidth=0,m.lineColor=m.fillColor=L);r=s.dataLabels(f.y);f.y==n&&U&&(f.marker.fillColor=F(q(f.anchorbgcolor,B),ca),f.marker.enabled=!!U);f.y==l&&E&&(f.marker.fillColor=F(q(f.anchorbgcolor,u),ca),f.marker.enabled=!!E);f=k[b-1];f.marker.fillColor=F(q(f.anchorbgcolor,t),ca);f.marker.enabled=!!C;m=f.hoverEffects;f.marker.enabled&&
m&&(m.anchorColor=w,m=f.rolloverProperties,m.radius=h(d.anchorhoverradius,f.marker.radius),m.lineWidth=0,m.lineColor=m.fillColor=w);k=s.dataLabels(f.y);f.y==n&&U&&(f.marker.fillColor=F(q(f.anchorbgcolor,B),ca),f.marker.enabled=!!U);f.y==l&&E&&(f.marker.fillColor=F(q(f.anchorbgcolor,u),ca),f.marker.enabled=!!E);c.openValue.label=c.closeValue.label=c.highLowValue.label=c.highLowValue.highLabel=void 0;A&&(c.openValue.label=h(d.showopenvalue,1)?r:O,c.closeValue.label=h(d.showclosevalue,1)?k:O,h(d.showhighlowvalue,
1)&&(c.highLowValue.label="["+J+" | "+v+"]",c.highLowValue.highLabel=J,c.highLowValue.lowLabel=v))}}},z.sparkbase);z("sparkcolumn",{friendlyName:"Spark Column Chart",standaloneInit:!0,rendererId:"cartesian",defaultSeriesType:"column",creditLabel:!1,showCanvasBorder:!0,point:z.column2dbase.point,useFlatColor:!0,postSeriesAddition:function(a,e){var c=e.chart,d=this.colorManager,b=a.series&&a.series[0]&&a.series[0].data,f,k,g,p,m=this.highValue,l=this.lowValue,n=this.numberFormatter,s=q(c.plotfillalpha,
Pa),r=q(c.plotfillcolor,d.getColor("plotFillColor")),t=q(c.plotborderalpha,Pa),u=q(c.plotbordercolor),B,L=q(c.highcolor,"000000"),w=q(c.lowcolor,"000000"),T=q(c.highbordercolor,u),x=q(c.lowbordercolor,u),y=h(c.showplotborder,0)?h(c.plotborderthickness,1):0,D,C,E,U,K,ca;if(0<(d=b&&b.length))for(k=e.data||e.dataset&&e.dataset[0]&&e.dataset[0].data;d;)--d,f=b[d],g=k[d],D=q(g.color,r),C=q(g.alpha,s),E=q(g.bordercolor,u),U=q(g.borderalpha,t),K=q(g.ratio,c.plotfillratio),ca=q(360-c.plotfillangle,90),f.y==
m&&(D=q(g.color,L),E=q(g.bordercolor,T),p=f.hoverEffects)&&(p.color=q(g.hovercolor,c.highhovercolor,c.plotfillhovercolor,W(D,70)),p.borderColor=q(g.borderhovercolor,c.highborderhovercolor,c.plotborderhovercolor,E),p.colorArr=p=this.getColumnColor(g,p.color,q(g.hoveralpha,c.highhoveralpha,c.plotfillhoveralpha,C),p.borderColor,U,K,ca,a.chart.useRoundEdges),B=f.rolloverProperties,B.color=p[0],B.borderColor=p[1]),f.y==l&&(D=q(g.color,w),E=q(g.bordercolor,x),p=f.hoverEffects)&&(p.color=q(g.hovercolor,
c.lowhovercolor,c.plotfillhovercolor,W(D,70)),p.borderColor=q(g.borderhovercolor,c.lowborderhovercolor,c.plotborderhovercolor,E),p.colorArr=p=this.getColumnColor(g,f.hoverEffects.color,q(g.hoveralpha,c.lowhoveralpha,c.plotfillhoveralpha,C),f.hoverEffects.borderColor,U,K,ca,a.chart.useRoundEdges),B=f.rolloverProperties,B.color=p[0],B.borderColor=p[1]),void 0!==f.toolText&&(f.toolText=Xa(f.toolText,[56,57,60,61],{highValue:m,lowValue:l,highDataValue:n.dataLabels(m),lowDataValue:n.dataLabels(l)},{},
c)),p=this.getColumnColor(g,D,C,E,U,K,ca,a.chart.useRoundEdges),f.color=p[0],f.borderColor=p[1],f.borderWidth=y,h(g.showvalue,c.showvalue,c.showvalues,0)||(f.displayValue=O)},getColumnColor:function(a,e,c,d,b,f,k,g,p,m){var l;d=q(d,ha(e,60));l=e.split(v);a=c.split(v);d=d.split(v);b=b.split(v);m?p={FCcolor:{color:l[0],alpha:a[0]}}:g?(e=l[0],c=a[0],p={FCcolor:{color:ha(e,75)+v+W(e,25)+v+ha(e,80)+v+W(e,65)+v+ha(e,80),alpha:c+v+c+v+c+v+c+v+c,ratio:"0,10,13,57,20",angle:p?"-180":"0"}},d=[ha(e,70)]):(c=
Ab(c,l.length),p={FCcolor:{color:e,alpha:c,ratio:f,angle:p?180-k:k}});return[p,{FCcolor:{color:d[0],alpha:b[0]}}]}},z.sparkbase);z("sparkwinloss",{friendlyName:"Spark Win-Loss Chart",standaloneInit:!0,defaultSeriesType:"column",rendererId:"sparkwinloss",creditLabel:!1,showCanvasBorder:!1,showCanvas:0,showtooltip:0,postSeriesAddition:function(a,e){var c=a.chart,d=e.chart,b=this.colorManager,f=a.series&&a.series[0]&&a.series[0].data,k=q(d.plotfillalpha,Pa),g=q(d.plotfillcolor,b.getColor("plotFillColor")),
p=q(d.plotborderalpha,Pa),m=q(d.plotbordercolor),l=h(d.showplotborder,0)?h(d.plotborderthickness,1):0,n=q(d.wincolor,b.getColor("winColor")),s=q(d.losscolor,b.getColor("lossColor")),r=q(d.drawcolor,b.getColor("drawColor")),b=q(d.scorelesscolor,b.getColor("scorelessColor")),t=d.winhovercolor,u=d.losshovercolor,B=d.drawhovercolor,L=d.scorelesshovercolor,w=O,T,x,y,D,C,E,U=0,K=0,ca=0;x=a.yAxis[0];var H,I,J,v,A,N;a.tooltip.enabled=!1;x.min=-1.1;x.max=1.1;if(0<(v=f&&f.length)){for(A=e.data||e.dataset&&
e.dataset[0]&&e.dataset[0].data;v;){--v;H=f[v];N=A[v];switch(N.value){case 1:w=q(N.color,n,g);T=q(N.hovercolor,t,w);U+=1;break;case -1:w=q(N.color,s,g);T=q(N.hovercolor,u,w);K+=1;break;case .1:w=q(N.color,r,g),T=q(N.hovercolor,B,w),ca+=1}1==N.scoreless&&(w=q(N.color,b,g),T=q(N.hovercolor,L,N.color,b,T));x=q(N.alpha,k);y=q(N.bordercolor,m);D=q(N.borderalpha,p);C=q(N.ratio,d.plotfillratio);E=q(360-d.plotfillangle,90);J=this.getColumnColor(N,w,x,y,D,C,E,a.chart.useRoundEdges);H.color=J[0];H.borderColor=
J[1];H.borderWidth=l;h(N.showvalue,0)||(H.displayValue=O);if(I=H.hoverEffects)H=H.rolloverProperties,I.color=W(T,70),J=I.colorArr=this.getColumnColor(N,I.color,x,y,D,C,E,a.chart.useRoundEdges),H.color=J[0],H.borderColor=J[1],I.borderThickness=l,H.borderWidth=l}1==h(d.showvalue,1)&&(c.closeValue.style=V({},a.plotOptions.series.dataLabels.style),c.closeValue.label=U+"-"+K+(0<ca?"-"+ca:O))}}},z.sparkcolumn);lb={realtimeEnabled:!0,canvasPaddingModifiers:null,linearDataParser:z.gaugebase.linearDataParser,
eiMethods:wa({},z.gaugebase.eiMethods),decimals:2,prepareRealtimeValueText:function(){var a=this.hcJSON,e=this.hcJSON[P],c=e.rtLabel,d=a.chart.realtimeValueSeparator,b=new RegExp(d+"$","g");c&&c.label&&(d=e.realtimeValues.join(d).replace(b,O),e=h(parseInt(e.outCanvasStyle.fontSize,10),10),c.label.y=.8*e+(a.xAxis.title.margin||0),c.label.text=d,a.xAxis.plotLines&&(a.xAxis.plotLines[0]=c))},chart:function(){var a=this.dataObj.chart,e=this.numberFormatter,c,d,b,f=h(a.showrealtimevalue,1),k=h(a.realtimevaluepadding),
g,p,a=this.dataObj.chart;a.adjustdiv="0";f&&(a.xaxisname=a.xaxisname?"<br/>"+a.xaxisname:"<br/>");c=z.msareabase.chart.apply(this,arguments);b=c.chart;d=c[P];g=c.series;d.isDual?(d._userPMin=h(a.pyaxisminvalue),d._userPMax=h(a.pyaxismaxvalue),d._userSMin=h(a.syaxisminvalue),d._userSMax=h(a.syaxismaxvalue)):(d._userMin=h(a.yaxisminvalue),d._userMax=h(a.yaxismaxvalue));b.dataStreamURL=q(a.datastreamurl,"");b.refreshInterval=h(a.refreshinterval,1);b.updateInterval=h(a.updateinterval,b.refreshInterval);
b.clearInterval=h(a.clearchartinterval,0);b.dataStamp=a.datastamp;b.useMessageLog=h(a.usemessagelog,0);b.messageLogWPercent=Ia(h(a.messagelogwpercent,80),100);b.messageLogHPercent=Ia(h(a.messageloghpercent,70),100);b.messageLogShowTitle=h(a.messagelogshowtitle,1);b.messageLogTitle=q(a.messagelogtitle,"Message Log");b.messageLogColor=q(a.messagelogcolor,"#fbfbfb");b.messageGoesToJS=h(a.messagegoestojs,0);b.messageGoesToLog=h(a.messagegoestolog,1);b.messageJSHandler=q(a.messagejshandler,"");b.messagePassAllToJS=
h(a.messagepassalltojs,0);b.messageLogIsCancelable=h(a.messagelogiscancelable,1);b.alwaysShowMessageLogMenu=h(a.alwaysshowmessagelogmenu,b.useMessageLog);b.showRTMenuItem=h(a.showrtmenuitem,0);b.showRealtimeValue=f;b.realtimeValueSeparator=q(a.realtimevaluesep,", ");b.realtimeValuePadding=k;b.realtimeValueFont=q(a.realtimevaluefont,"");b.realtimeValueFontBold=q(a.realtimevaluefontbold,0);b.realtimeValueFontColor=q(a.realtimevaluefontcolor,"");b.realtimeValueFontSize=h(a.realtimevaluefontsize,"");
if(f){if(!d.realtimeValues)for(d.realtimeValues=[],f=0,k=g.length;f<k;f++)a=g[f],p=(p=a.data)&&p.length&&p[p.length-1]&&p[p.length-1].y,d.realtimeValues[f]=e.dataLabels(p,a.yAxis);d.rtLabel||(e=V({},d.outCanvasStyle),e.fontWeight=b.realtimeValueFontBold?"bold":"normal",b.realtimeValueFontColor&&(e.color=b.realtimeValueFontColor.replace(kb,nb)),b.realtimeValueFontSize&&(e.fontSize=b.realtimeValueFontSize+ob),b.realtimeValueFont&&(e.fontFamily=b.realtimeValueFont),g=h(parseInt(e.fontSize,10),10),d.rtLabel=
{color:ka,alwaysVisible:!0,isTrend:!0,value:(d.x.catCount-1)/2,width:.01,label:{align:Ka,textAlign:Ka,rotation:0,textVAlign:La,text:" ",x:0,y:.8*g+(c.xAxis.title.margin|0),style:e}},c.xAxis.plotLines.splice(0,0,d.rtLabel))}b.showRTMenuItem?(c.callbacks||(c.callbacks=[])).push(this.drawRTMenuButtons):b.useMessageLog&&b.alwaysShowMessageLogMenu&&b.messageGoesToLog&&(c.callbacks||(c.callbacks=[])).push(this.drawMLMenuButtons);this.dataObj.alerts&&(this.hcJSON.alerts=this.parseAlertObj(this.dataObj.alerts));
return c},parseAlertObj:function(a){var e=this.numberFormatter,c=a&&a.alert,d=c.length,b={alert:[]},f,k,g,p,m;for(a=0;a<d;a+=1)p=c[a],f=e.getCleanValue(p.minvalue),k=e.getCleanValue(p.maxvalue),g=q(p.action,""),p=q(p.param,""),null!==f&&null!==k&&""!==g&&(f>k&&(m=k,k=f,f=m),b.alert.push({minvalue:f,maxvalue:k,param:p,action:g}));return b},drawMLMenuButtons:function(){var a=this.options,e=a.chart,c=this.menu||(this.menu=[]),d=this.toolbar,a=a[P],b;c.push(b=Ba({chart:this,basicStyle:a&&a.outCanvasStyle||
this.outCanvasStyle||{},items:[{text:"Show Log",visibility:"hidden",onclick:function(){A&&A.messageLogger&&A.messageLogger.open();b.showItem(4);b.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){A&&A.messageLogger&&A.messageLogger.close();b.showItem(3);b.hideItem(4)}}],position:{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15)}}));b.hideItem(1);this.elements.configureButton=d.add("loggerIcon",function(a,c){return function(){b.visible?
b.hide():b.show({x:a,y:c+1})}}(),{x:e.spacingLeft,y:this.chartHeight-e.spacingBottom+(e.showFormBtn||e.showRestoreBtn?10:-15),tooltip:"Show & Hide Message"})},drawRTMenuButtons:function(){var a=this.logic,e=a.chartInstance,c=this.options,d=c.chart,b=d&&d.alwaysShowMessageLogMenu,f=this.menu||(this.menu=[]),k=this.toolbar,c=(c=c[P])&&c.outCanvasStyle||this.outCanvasStyle||{},g,p=e.isUpdateActive||a.eiMethods.isUpdateActive,p=p&&p.call(e);f.push(g=Ba({chart:this,basicStyle:c,items:[{text:"Stop Update",
visibility:p?xb:"hidden",onclick:function(){g.hideItem(0);g.showItem(1);e.stopUpdate()}},{text:"Start Update",visibility:p?"hidden":xb,onclick:function(){g.hideItem(1);g.showItem(0);e.restartUpdate()}},{text:"Clear Chart",onclick:function(){e.clearChart()}},{text:"Show Log",visibility:"hidden",onclick:function(){A&&A.messageLogger&&A.messageLogger.open();g.showItem(4);g.hideItem(3)}},{text:"Hide Log",visibility:"hidden",onclick:function(){A&&A.messageLogger&&A.messageLogger.close();g.showItem(3);
g.hideItem(4)}}],position:{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15)}}));h(a.dataObj.chart.allowclear,1)||g.hideItem(2);g.hideItem(0);g.hideItem(1);!b&&g.hideItem(3);g.hideItem(4);g.showItem(p?0:1);this.elements.configureButton=k.add("configureIcon",function(a,b){return function(){g.visible?g.hide():g.show({x:a,y:b+1})}}(),{x:d.spacingLeft,y:this.chartHeight-d.spacingBottom+(d.showFormBtn||d.showRestoreBtn?10:-15),tooltip:"Manage RealTime Update"})},
shiftPlotLines:function(a,e,c,d){var b,f,k=[],g=d[0],p=g&&g.RTValueArr,m=p&&p.length||0,l=(d=d[1])&&d.RTValueArr,n=l&&l.length||0,s=a&&a.length||0,r;c=h(c,-.5);for(r=0;r<s;r+=1)if(b=a[r],b.isGrid||b.isVline)if(f=b.value+=e,f<c||f===c&&b.isVline)a.splice(r,1),b.isGrid&&k.push(b),--r,--s;if(g&&p&&m)for(p.splice(0,-e),m=p.length,delete g.min,delete g.max,r=0;r<m;r+=1)(a=p[r])&&void 0!==a.min&&(!1===g.min<a.min&&(g.min=a.min),!1===g.max>a.max&&(g.max=a.max));if(d&&l&&n)for(l.splice(0,-e),n=l.length,delete d.min,
delete d.max,r=0;r<n;r+=1)(a=l[r])&&void 0!==a.min&&(!1===d.min<a.min&&(d.min=a.min),!1===d.max>a.max&&(d.max=a.max));return k},configureAxis:function(a){var e=a[P],c=a.xAxis,d=e.x,b=e.axisGridManager,f=d.catCount,k=e.oriCatTmp,g=e[0],p=g&&g.RTValueArr,m=e[1],l=m&&m.RTValueArr,n=this.dataObj,s=n.chart||(n.chart={}),n=a.series,r=n[0].data.length,s=this.numDisplaySets=h(s.numdisplaysets,Ca(r,15)),t=c.plotLines,u=t&&t.length||0,B=[],q=this.chartInstance.jsVars._reflowData,w;q.hcJSON&&(w=q.hcJSON[P])&&
(g.min=w[0]&&w[0].min,g.max=w[0]&&w[0].max,m.min=w[1]&&w[1].min,m.max=w[1]&&w[1].max);m=((this.dataObj.categories||(this.dataObj.categories=[{category:[]}]))[0]||(this.dataObj.categories[0]={category:[]})).category||(this.dataObj.categories[0].category=[]);0===f&&(this.chartInstance.jsVars._forceReflow=!0);g=s-r;if(0<g){for(;u--;)t[u].value+=g;for(c.plotLines=[];g--;)B[g]={y:null},b.addXaxisCat(c,g,g," ",{},{},{}),p&&p.unshift(null),l&&l.unshift(null),k.unshift(null),m.unshift({label:" "});c.plotLines=
c.plotLines.reverse().concat(t)}else g&&(this.shiftPlotLines(c.plotLines,g,-.5,e),k.splice(0,-g));for(g=n.length;g--;)c=n[g],e=c.data,c.data=B.concat(e.slice(-s));this.needsRedraw=0===f;d.catCount=s;return z.msareabase.configureAxis&&z.msareabase.configureAxis.apply(this,arguments)},postSeriesAddition:function(a,e,c,d,b){e=a[P];c=e.isBar;d=a.chart.rotateValues&&!c?270:0;var f=e[0],k=f.RTValueArr,g=f&&f.stacking100Percent,p,m,l,n,h,r,t,u,B;if(this.isStacked&&k&&(e.showStackTotal||g))for(b=b||0,r=a.series,
t=V({},a.plotOptions.series.dataLabels.style),u=parseFloat(t.fontSize),B=!f.stacking100Percent,t.color=a.plotOptions.series.dataLabels.color,f=k.length;b<f;b+=1)if(m=k[b])if(h=(m.n||0)+(m.p||0),e.showStackTotal&&(p=b,m=0>h?m.n:m.p,a.xAxis.plotLines.push({value:p,width:0,isVline:B,isTrend:!B,zIndex:4,_isStackSum:1,_catPosition:b,label:{align:Ka,textAlign:270===d?0>h?bb:Ha:Ka,offsetScale:B?m:void 0,offsetScaleIndex:0,rotation:d,style:t,verticalAlign:La,y:c?0:0>h?270===d?4:u:-4,x:0,text:e.numberFormatter.yAxis(h)}})),
g)for(m=0,p=r.length;m<p;m+=1)if(r[m].data){l=r[m].data[b];if(l.y||0===l.y)n=l.y/h*100,l.y=n,l.showPercentValues&&(l.displayValue=this.numberFormatter.percentValue(n)),l.showPercentInToolTip&&(l.toolText=l.toolText+parseInt(100*n,10)/100+"%");if(l.previousY||0===l.previousY)l.previousY=l.previousY/h*100}},pointValueWatcher:function(a,e,c,d,b){if(null!==e){var f=a[P];a=f[c||(c=0)];var k;a||(a=f[c]={});c=a.RTValueArr;c||(c=a.RTValueArr=[]);(f=c[b])||(f=c[b]={});d&&(0<=e?f.p?(k=f.p,e=f.p+=e):f.p=e:f.n?
(k=f.n,e=f.n+=e):f.n=e);!1===f.max>e&&(f.max=e,!1===a.max>e&&(a.max=e));!1===f.min<e&&(f.min=e,!1===a.min<e&&(a.min=e));return k}},realtimeUpdate:function(a,e){var c=this.hcJSON,d=this.dataObj,b=d.chart,f="0"===b.allowclear?0:1,k=c[P],g=this.numberFormatter,p=k.x,m=p._labelY,l=p._labelX,n=p._yShipment,s=p._isStagger,r=p._rotation,t=p._textAlign,u=p._adjustedPx,B=p._staggerLines,q=p._labelHeight,w,T=k.axisGridManager,x=p.catCount,y=this.renderer,D=this.chartInstance.jsVars,C=a.values,E=a.labels||[],
U=a.showLabels||[],K=a.colors,v=a.toolTexts,H=a.links,I=c.xAxis,J="0"===d.chart.showlabels,z=c.chart.showRealtimeValue,F=d.categories,N=D._reflowData,Q=[],S=h(k._startIndex,0),R=p.stepValue,p=a.dimension>x?x:a.dimension,M=x-p,Q=[],ea=a.vlines,W=A.placeHorizontalAxis,Y,X,aa,ba,oa,fa,ta,sa,va,Ra,cb=new Date,Ma,ub,gb,hb,Ea,Z;a.clear&&f&&this.realtimeUpdate({dimension:this.numDisplaySets,values:[],labels:[]},0<a.dimension);if(a.dimension){c.plotOptions.series.animation=!1;ea?(Y=a.vlineColors||[],X=a.vlineLabels||
[],aa=a.vlineThickness||[],ba=a.vlineDashed||[]):ea=[];F||(F=d.categories=[]);F[0]?F[0].category||(F[0].category=[]):F[0]={category:[]};F=F[0].category;Q=this.shiftPlotLines(I.plotLines,-p,-.5,k);for(f=Q.length;f--;)(Ra=Q[f]).label&&(oa=Ra.label,oa.text="0"===U[f]||J?"":$(E[f]||O),w=M+f,Ra.value=w,ta=x+f+S,(w=0===ta%R)?(oa.style=I.labels.style,oa.y=s?m+ta/R%B*q:n,oa.x=l+(r?u:0),oa.rotation=r,oa.textAlign=t):oa.style=I.steppedLabels.style,I.plotLines.push(V({},Ra)),F.shift(),F.push({label:oa.text})),
"1"===ea[f]&&T.addVline(I,{color:Y[f]&&decodeURIComponent(Y[f]),label:X[f]&&decodeURIComponent(X[f]),thickness:aa[f]&&decodeURIComponent(aa[f]),dashed:ba[f]&&decodeURIComponent(ba[f])},M+f,c);Q=[];k._startIndex=(p+S)%(s?R*B:R);S=c.series&&c.series.length;p&&k.oriCatTmp.splice(0,p);k._skipValueWatcher=!1;for(f=0;f<S;f+=1){Y=c.series[f];aa=C&&C[f]||[];ba=K&&K[f]||[];R=H&&H[f]||[];M=v&&v[f]||[];U=Y.yAxis||0;k._rtCounter||(k._rtCounter=1);!Q[f]&&(Q[f]=[]);T=Q[f];X=Y.data;fa=X.length;J=fa-p;for(F=0;J<
fa;J+=1,F+=1)ea=decodeURIComponent(G(aa[F],null)),va=g.getCleanValue(ea),oa=decodeURIComponent(E[F]||""),k.oriCatTmp[J]=oa,X.shift(),ea=Y._dataParser({value:ea,label:oa,color:ba&&ba[F]&&decodeURIComponent(ba[F]),link:R&&R[F]&&decodeURIComponent(R[F]),tooltext:M&&M[F]&&decodeURIComponent(M[F])},J,va),ea.y=va,X.push(ea),T.push(ea),ea.previousY=this.pointValueWatcher(c,va,U,this.isStacked,J);z&&(k.realtimeValues[f]=g.dataLabels(va,Y.yAxis))}k._rtCounter+=p;this.postSeriesAddition(c,void 0,void 0,void 0,
fa-p);g=c.yAxis[0];C=k[0];v=h(this.isStacked?0:this.setAdaptiveYMin,b.setadaptiveymin,0);K=E=!v;H=(g.max-g.min)/4;if(k.isDual){if(C.max>g.max||C.min<g.min||(!K||0!==g.min)&&g.min!==k._userPMin&&C.min-g.min>H||(!E||0!==g.max)&&g.max!==k._userPMax&&g.max-C.max>H)D._forceReflow=!0,k._skipValueWatcher=!0;g=c.yAxis[1];C=k[1];K=E=!h(b.setadaptivesymin,v);H=(g.max-g.min)/4;if(C.max>g.max||C.min<g.min||(!K||0!==g.min)&&g.min!==k._userSMin&&C.min-g.min>H||(!E||0!==g.max)&&g.max!==k._userSMax&&g.max-C.max>
H)D._forceReflow=!0,k._skipValueWatcher=!0}else if(C.max>g.max||C.min<g.min||(!K||0!==g.min)&&g.min!==k._userMin&&C.min-g.min>H||(!E||0!==g.max)&&g.max!==k._userMax&&g.max-C.max>H)D._forceReflow=!0,k._skipValueWatcher=!0;Ma=k[0]&&k[0].RTValueArr;ub=k[1]&&k[1].RTValueArr;D._forceReflow&&(g=c.yAxis[0],C=k[0],gb=k[0]&&k[0].min,hb=k[0]&&k[0].max,Ea=k[1]&&k[1].min,Z=k[1]&&k[1].max,S=g.min,Y=g.max,H=h(k.numdivlines,b.numdivlines,this.numdivlines,4),fa=b.adjustdiv!==jb,va=h(k._userMax,k._userPMax),f=h(k._userMin,
k._userPMin),T=h(b.showyaxisvalues,b.showyaxisvalue,1),U=h(b.showlimits,T),J=h(b.showdivlinevalue,b.showdivlinevalues,T),F=h(parseInt(b.yaxisvaluesstep,10),parseInt(b.yaxisvaluestep,10),1),F=1>F?1:F,this.axisMinMaxSetter(g,C,va,f,E,K,H,fa),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(b,c,g,C,U,J,F,k.numberFormatter,!1),S===g.min&&Y===g.max&&(sa=!0),k.isDual?(va=k._userSMax,f=k._userSMin,
v=h(b.setadaptivesymin,v),K=E=!v,U=h(b.showsecondarylimits,U),J=h(b.showdivlinesecondaryvalue,T),g=c.yAxis[1],C=k[1],S=g.min,Y=g.max,this.axisMinMaxSetter(g,C,va,f,E,K,H,fa),g.plotLines=[],g.plotBands=[],g.labels.enabled=g.labels._enabled,g.gridLineWidth=g._gridLineWidth,g.alternateGridColor=g._alternateGridColor,this.configurePlotLines(b,c,g,C,U,J,F,k.numberFormatter,!0),S===g.min&&Y===g.max&&sa&&(D._forceReflow=!1)):sa&&(D._forceReflow=!1),d.trendlines&&ab(d.trendlines,c.yAxis,k,k.isDual,this.isBar));
N.hcJSON&&(b=N.hcJSON[P],delete N.hcJSON[P],V(c.series,N.hcJSON.series,!0),N.hcJSON[P]=b,b=null);V(N,{preReflowAdjustments:function(){this.dataObj.categories=d.categories},postReflowAdjustments:function(){var a,b=c.series,d=b&&b.length;this.hcJSON.xAxis.plotLines=I.plotLines;this.hcJSON._FCconf[0].RTValueArr=Ma;this.hcJSON._FCconf[1].RTValueArr=ub;if(b)for(a=0;a<d;a+=1)this.hcJSON.series[a].data=b[a].data},postHCJSONCreation:function(a){V(a,{_FCconf:{0:{min:gb,max:hb},1:{min:Ea,max:Z},_skipValueWatcher:!0,
realtimeValues:k.realtimeValues,rtvHTMLWrapper:k.rtvHTMLWrapper}},!0)},hcJSON:{_FCconf:{_userMax:k._userMax,_userMin:k._userMin,_userPMax:k._userPMax,_userSMax:k._userSMax,_userPMin:k._userPMin,_userSMin:k._userSMin,_chartState:k._chartState,_rtCounter:k._rtCounter,_startIndex:k._startIndex,oriCatTmp:k.oriCatTmp,x:{catCount:x,_labelY:m,_labelX:l,_yShipment:n,_isStagger:s,_rotation:r,_textAlign:t,_adjustedPx:u,_staggerLines:B,_labelHeight:q},0:{min:h(gb,k[0]&&k[0].min),max:h(hb,k[0]&&k[0].max)},1:{min:h(Ea,
k[1]&&k[1].min),max:h(Z,k[1]&&k[1].max)}}}},!0);if(!e){D._forceReflow&&(D._forceReflow=!1,g=c.yAxis[0],m=g.plotBands.concat(g.plotLines),ya(g,m),y.yAxis[0].realtimeUpdateY(g.min,g.max),k.isDual&&(g=c.yAxis[1],m=g.plotBands.concat(g.plotLines),ya(g,m),y.yAxis[1].realtimeUpdateY(g.min,g.max)),this.containerElement.resizeTo());W.call(this,c.xAxis,k.x,c,this.dataObj,k.x._canvasWidth,k.x._availableHeight,k.x._minCanvasWidth);z&&this.prepareRealtimeValueText();y.xAxis[0].realtimeUpdateX(p);f=0;for(J=Q.length;f<
J;f+=1)y.plots[f]&&y.plots[f].realtimeUpdate&&y.plots[f].realtimeUpdate(p,D._forceReflow);this.realtimeDrawingLatency=new Date-cb}}},extractTrendLines:function(a){var e=a.plotLines;a=a.plotBands;for(var c,d=e.length,b=[],f=[];d;)c=d-1,c=e[c],c.isTrend&&f.push(c),--d;for(d=a.length;d;)c=d-1,e=a[c],e.isTrend&&b.push(e),--d;return{trendLines:f,trendBands:b}}};wa(lb.eiMethods,{clearChart:function(a){a=a&&a.toString&&a.toString();this.feedData("clear=1");A.raiseEvent("ChartCleared",{source:a},this.FusionCharts,
[this.id,a])},getDataJSON:function(){return this.jsVars._rtLastUpdatedData||{values:[]}},getData:function(){var a=this.jsVars.hcObj.options,e=a[P].oriCatTmp,c,d=[],b,f,k,g;if(!a||!a.series)return d;a=a.series;b=[];for(k=a.length;k--;)for(c=a[k],b[c.index]=c.name,f=c.data,g=e.length;g--;)c=d[g]||(d[g]=[e[g]]),c[k+1]=f[g].y;b.unshift(null);d.unshift(b);return d}});z("realtimearea",wa({friendlyName:"Realtime Data Streaming Area Chart",standaloneInit:!0,multisetRealtime:!0,defaultPlotShadow:1,creditLabel:!1,
rendererId:"realtimecartesian"},lb),z.msareabase);z("realtimecolumn",wa({friendlyName:"Realtime Data Streaming Column Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:!1,rendererId:"realtimecartesian"},lb),z.mscolumn2dbase);z("realtimeline",wa({friendlyName:"Realtime Data Streaming Line Chart",standaloneInit:!0,multisetRealtime:!0,creditLabel:!1,rendererId:"realtimecartesian"},lb),z.mslinebase);z("realtimelinedy",wa({friendlyName:"Realtime Data Streaming Dual Y-Axis Line Chart",standaloneInit:!0,
multisetRealtime:!0,isDual:!0,creditLabel:!1,series:z.mscombibase,rendererId:"realtimecartesian"},lb),z.mslinebase);z("realtimestackedarea",{friendlyName:"Realtime Data Streaming Stacked Area Chart",isStacked:!0,showSum:0,areaAlpha:100,creditLabel:!1},z.realtimearea);z("realtimestackedcolumn",{friendlyName:"Realtime Data Streaming Column Chart",isStacked:!0,creditLabel:!1},z.realtimecolumn);Mb=function(a,e){return a.minvalue-e.minvalue};Wa.prototype={getColorObj:function(a){for(var e=this.colorArr,
c=0,d=e.length,b,f,k={};c<d;c+=1){k.index=c;b=e[c];f=e[c+1];if(a<b.minvalue)return k.nextObj=b,k;if(a>=b.minvalue&&a<=b.maxvalue)return k.colorObj=b,f&&a==f.minvalue&&(k.nextObj=f,k.isOnMeetPoint=!0),k;k.prevObj=b}k.index=c-1;return k},getColorRangeArr:function(a,e){var c,d=this.colorArr,b,f,k=[],g,p;if(!this.defaultAsigned&&(a>e&&(c=a,a=e,e=c),a<e&&(b=this.getColorObj(a),f=this.getColorObj(e),b&&f))){c=a;b=b.index;for(f=f.index;b<=f;b+=1)g=V({},d[b]),g.minvalue!==c&&(g.minvalue=c),k.push(g),p=g,
c=g.maxvalue;p.maxvalue=e}return k}};Wa.prototype.constructor=Wa;Nb=function(){var a={fluidHRatio:!0,fluidColor:!0,fluidAlpha:!0,fluidFill:!0},e=[],c=0,d=function(a){c=Boolean(a)?a.duration:0},b=function(b,d){var f,m,l=this,n,s,r=!1,t=!1,u=this._3dAttr;Za(b)&&da(d)&&(f=b,b={},b[f]=d);if(Za(b))l=a[b]?l._3dAttr[b]:l._attr(b);else for(f in b)m=b[f],a[f]?("fluidFill"===f?(m&&m.linearGradient&&m.stops&&m.stops[0]&&(m=m.stops[0][1]),yb.test(m)?(s=new sb(m),n=s.get("hex"),s=100*s.get("a")):m&&m.FCcolor?
(n=m.FCcolor.color.split(v)[0],s=m.FCcolor.alpha.split(v)[0]):vb.test(m)&&(n=m.replace(kb,nb)),u.fluidColor=q(n,u.fluidColor,"000000"),u.fluidAlpha=h(s,u.fluidAlpha,100),r=!0):"fluidColor"===f?(u.fluidColor=q(m,u.fluidColor,"000000"),r=!0):"fluidAlpha"===f?(u.fluidAlpha=h(m,u.fluidAlpha,100),r=!0):0<=m&&1>=m&&(u.fluidHRatio=m,t=!0),r&&(m=ha(u.fluidColor,u.is2D?80:70),l.fluid.attr({fill:F(m,u.fluidAlpha)}),l.fluidTop.attr({fill:F(m,u.fluidAlpha)}),l.topLight.attr({stroke:F(m,.4*u.fluidAlpha)}),l.topLightBorder.attr({fill:R({FCcolor:{color:m+
v+m,alpha:"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})})),t&&(m=u.scaleY+u.h*(1-u.fluidHRatio),c?(l.fluid.animate({path:u.fluidPath.concat(["L",u.lx2,m,u.lx1,m,"Z"])},c,"easeIn"),l.fluidTop.animate({path:e.concat(["M",u.lx1,m,"A",u.lCylWidthHalf,1,0,1,0,u.lx2,m,"Z"])},c,"easeIn")):(l.fluid.attr({path:u.fluidPath.concat(["L",u.lx2,m,u.lx1,m,"Z"])}),l.fluidTop.attr({path:e.concat(["M",u.lx1,m,"A",u.lCylWidthHalf,1,0,1,0,u.lx2,m,"Z"])})))):this._attr(f,m);return l},f=function(a,b,c){this.border.shadow(a,
b,c)};return function(a,c,p,m,l,n,s,r,t,u,B,L,w){var T,x,y,D,C,E,U,K,ca,H,I,J,A,z,N,Q;qb(a)&&(c=a.y,p=a.r,m=a.h,n=a.renderer,s=a.fluidHRatio,r=a.conColor,t=a.conBorderColor,u=a.conBorderThickness,B=a.fluidColor,L=a.fluidAlpha,w=a.is2D,a=a.x);0<=s&&1>=s||(s=0);r=q(r,"FFFFFF");t=q(t,"#000000");u=h(u,1);B=q(B,"000000");L=h(L,100);Q={x:a,y:c,r:p,h:m,renderer:n,fluidHRatio:s,conColor:r,conBorderColor:t,conBorderThickness:u,fluidStroke:3,fluidColor:B,is2D:w,fluidAlpha:L};l._attr=l.attr;l.attr=b;l._setAnimate=
d;l.shadow=f;l._3dAttr=Q;T=ha(r,80);B=ha(B,w?80:70);r=W(r,80);x=.643*p;y=.33*x;D=x-y;C=a-x;E=a+x;U=a-D;D=a+D;K=c+x;ca=K+m;H=ca+.766*p;I=c+y;m=K+m*(1-s);s=.9*x;J=p+s-x;A=a-s;z=a+s;H-=Math.abs(Math.sqrt(J*J-s*s));N=parseInt(a-.6*x,10);x=a+x/2;Q.fluidPath=["M",A,H,"A",J,J,0,1,0,z,H];Q.scaleY=K;Q.lx1=A;Q.lx2=z;Q.lCylWidthHalf=s;l.topLight=n.path(["M",A,K,"L",z,K],l).attr({"stroke-width":1,stroke:F(B,40)});l.topLightBorder=n.path(["M",A,K,"L",z,K,z,I,A,I,"Z"],l).attr({"stroke-width":0,fill:R({FCcolor:{color:B+
v+B,alpha:w?"0,0":"40,0",ratio:"0,80",radialGradient:!0,cx:.5,cy:1,r:"70%"}})});l.fluid=n.path(Q.fluidPath.concat(["L",z,m,A,m,"Z"]),l).attr({"stroke-width":0,fill:F(B,L)});l.fluidTop=n.path(e.concat(["M",A,m,"A",s,1,0,1,0,z,m,"Z"]),l).attr({"stroke-width":0,fill:F(B,L)});l.border=n.path(e.concat(["M",U,c,"A",y,y,0,0,0,C,I],["L",C,ca],["A",p,p,0,1,0,E,ca],["L",E,I],["A",y,y,0,0,0,D,c,"Z"]),l).attr({"stroke-width":u,stroke:t});w||(l.bulbBorderLight=n.path(e.concat(["M",C,ca,"A",p,p,0,0,1,E,ca],["M",
E,ca,"A",p,p,0,0,0,C,ca],["M",C,ca,"A",p,p,0,1,0,E,ca,"Z"]),l).attr({"stroke-width":0,stroke:"#00FF00",fill:R({FCcolor:{cx:.5,cy:.5,r:"50%",color:T+v+r,alpha:"0,50",ratio:"78,30",radialGradient:!0}})}),l.bulbTopLight=n.path(e.concat(["M",C,ca,"A",p,p,0,0,1,E,ca],["A",p,p,0,0,0,C,ca],["A",p,p,0,1,0,E,ca,"Z"]),l).attr({"stroke-width":0,fill:R({FCcolor:{cx:.3,cy:.1,r:"100%",color:r+v+T,alpha:"60,0",ratio:"0,30",radialGradient:!0}})}),l.bulbCenterLight=n.path(e.concat(["M",C,ca,"A",p,p,0,1,0,E,ca],["A",
p,p,0,0,0,C,ca],["A",p,p,0,0,1,E,ca,"Z"]),l).attr({"stroke-width":0,fill:R({FCcolor:{cx:.25,cy:.7,r:"100%",color:r+v+T,alpha:"80,0",ratio:"0,70",radialGradient:!0}})}),l.cylLeftLight=n.path(e.concat(["M",a,c,"L",U,c],["A",y,y,0,0,0,C,I],["L",C,ca,a,ca,"Z"]),l).attr({"stroke-width":0,fill:R({FCcolor:{color:r+v+T,alpha:"50,0",ratio:"0,80",angle:0}})}),l.cylRightLight=n.path(e.concat(["M",C,c,"L",D,c],["A",y,y,0,0,1,E,I],["L",E,ca,C,ca,"Z"]),l).attr({"stroke-width":0,fill:R({FCcolor:{color:r+v+T+v+T,
alpha:"50,0,0",ratio:"0,40,60",angle:180}})}),l.cylLeftLight1=n.path(["M",N,I,"L",C,I,C,ca,N,ca,"Z"],l).attr({"stroke-width":0,fill:R({FCcolor:{color:r+v+T,alpha:"60,0",ratio:"0,100",angle:180}})}),l.cylRightLight1=n.path(["M",N-.01,I,"L",x,I,x,ca,N-.01,ca,"Z"],l).attr({"stroke-width":0,fill:R({FCcolor:{color:r+v+T,alpha:"60,0",ratio:"0,100",angle:0}})}));return l}}();Ob=function(){var a={fluidHRatio:!0,color:!0,alpha:!0,fill:!0},e=[],c=0,d=function(a){c=Boolean(a)?a.duration:0},b=function(b,d){var f,
m,l=this,n,s,r=!1,t=!1,u=this._3dAttr,B,L,w,T,x,y,D,C;Za(b)&&da(d)&&(f=b,b={},b[f]=d);if(Za(b))l=a[b]?l._3dAttr[b]:l._attr(b);else for(f in b)m=b[f],a[f]?("fill"===f?(m&&m.linearGradient&&m.stops&&m.stops[0]&&(m=m.stops[0][1]),yb.test(m)?(s=new sb(m),n=s.get("hex"),s=100*s.get("a")):m&&m.FCcolor?(n=m.FCcolor.color.split(v)[0],s=m.FCcolor.alpha.split(v)[0]):vb.test(m)&&(n=m.replace(kb,nb)),u.fluidColor=q(n,u.fluidColor,"000000"),u.fluidAlpha=h(s,u.fluidAlpha,100),r=!0):"color"===f?(u.fluidColor=q(m,
u.fluidColor,"000000"),r=!0):"alpha"===f?(u.fluidAlpha=h(m,u.fluidAlpha,100),r=!0):0<=m&&1>=m&&(u.fluidHRatio=m,t=!0),r&&(m=ha(u.fluidColor,70),B=W(u.fluidColor,70),w=ha(u.conColor,80),L=W(u.conColor,80),s=u.fluidAlpha,T=s+v+s,l.fluid.attr({"stroke-width":0,fill:R({FCcolor:{cx:.5,cy:0,r:"100%",color:B+v+m,alpha:T,ratio:"0,100",radialGradient:!0}})}),l.fluidTop.attr({"stroke-width":3,stroke:F(B,s),fill:R({FCcolor:{cx:.5,cy:.7,r:"100%",color:B+v+m,alpha:T,ratio:"0,100",radialGradient:!0}})}),l.btnBorderLight.attr({fill:R({FCcolor:{color:L+
v+w+v+L+v+L+v+w+v+m+v+w+v+L,alpha:"50,50,50,50,50,"+.7*s+",50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})})),t&&(w=u.x,m=u.r,B=u.fluidStroke,L=B/2,x=u.h*u.fluidHRatio,B=w-m,w+=m,T=B+L,y=w-L,D=u.y+u.h,x=D-x,C=m*u.r3dFactor,L=m-L,c?(l.fluid.animate({path:e.concat(["M",B,D],["A",m,Ca(C,1),0,0,0,w,D],["L",w,x],["A",m,Ca(C,1),0,0,0,B,x,"Z"])},c,"easeIn"),l.fluidTop.animate({path:e.concat(["M",T,x],["A",L,C,0,0,0,y,x],["L",y,x],["A",L,C,0,0,0,T,x,"Z"])},c,"easeIn")):(l.fluid.attr({path:e.concat(["M",B,
D],["A",m,C,0,0,0,w,D],["L",w,x],["A",m,C,0,0,1,B,x,"Z"])}),l.fluidTop.attr({path:e.concat(["M",T,x],["A",L,C,0,0,0,y,x],["L",y,x],["A",L,C,0,0,0,T,x,"Z"])})))):this._attr(f,m);return l},f=function(){};return function(a,c,p,m,l,n,s,r,t,u,B,L,w){var T,x,y,D,C,E,U,K,ca,H,I,J,A,z,N,Q,S,G;qb(a)&&(c=a.y,p=a.r,m=a.h,l=a.r3dFactor,n=a.parentGroup,s=a.renderer,r=a.fluidHRatio,t=a.conColor,u=a.conAlpha,B=a.fluidColor,L=a.fluidAlpha,a=a.x);l=h(l,.15);za.vml&&(l=l||.001);0<=r&&1>=r||(r=0);t=q(t,"FFFFFF");u=
h(u,30);B=q(B,"000000");L=h(L,100);u={x:a,y:c,r:p,h:m,r3dFactor:l,renderer:s,fluidHRatio:r,conColor:t,conAlpha:u,fluidStroke:3,fluidColor:B,fluidAlpha:L};n=s.group("graphic",n);n._attr=n.attr;n.attr=b;n._setAnimate=d;n.shadow=f;n._3dAttr=u;l*=p;u=p-1.5;T=c+m;m=T-m*r;r=a-p;x=a+p;y=r+1.5;D=x-1.5;C=r-2;E=x+2;U=p+2;K=l+2;ca=T+4;H=ca+.001;I=ha(t,80);J=ha(t,90);t=W(t,80);A=ha(B,70);B=W(B,70);z=ha(A,90);N=.85*p;Q=a-N;a+=N;S=Math.sqrt((1-N*N/(p*p))*l*l);N=c+S;S=T+S;G=c-1;n.btnBorder=s.path(e.concat(["M",
C,ca],["A",U,K,0,0,0,E,ca],["L",E,H],["A",U,K,0,0,0,C,H,"Z"]),n).attr({"stroke-width":4,stroke:F(I,80)});n.btnBorder1=s.path(e.concat(["M",r,ca],["A",p,l,0,0,0,x,ca],["L",x,H],["A",p,l,0,0,0,r,H,"Z"]),n).attr({"stroke-width":4,stroke:F(I,50)});n.btnBorderLight=s.path(e.concat(["M",r,T],["A",p,l,0,0,0,x,T],["A",p,l,0,0,0,r,T,"Z"]),n).attr({"stroke-width":0,fill:R({FCcolor:{color:t+v+I+v+t+v+t+v+I+v+A+v+I+v+t,alpha:"50,50,50,50,50,70,50,50",ratio:"0,15,0,12,0,15,43,15",angle:0}})});C=w?t+v+I+v+t+v+
I+v+J+v+J+v+I+v+t:t+v+I+v+I+v+I+v+I+v+I+v+I+v+t;n.back=s.path(e.concat(["M",r,T],["A",p,l,0,0,0,x,T],["L",x,c],["A",p,l,0,0,0,r,c,"Z"]),n).attr({"stroke-width":1,stroke:F(I,50),fill:R({FCcolor:{color:C,alpha:"30,30,30,30,30,30,30,30",ratio:"0,15,43,15,0,12,0,15",angle:0}})});C=w?B+v+A:A+v+A;n.fluid=s.path(e.concat(["M",r,T],["A",p,Ca(l,1),0,0,0,x,T],["L",x,m],["A",p,Ca(l,1),0,0,0,r,m,"Z"]),n).attr({"stroke-width":0,fill:R({FCcolor:{cx:.5,cy:0,r:"100%",color:C,alpha:L+v+L,ratio:"0,100",radialGradient:!0}})});
C=w?B+v+A:A+v+A;n.fluidTop=s.path(e.concat(["M",y,m],["A",u,l,0,0,0,D,m],["L",D,m],["A",u,l,0,0,0,y,m,"Z"]),n).attr({"stroke-width":2,stroke:w?F(B,L):F(z),fill:R({FCcolor:{cx:.5,cy:.7,r:"100%",color:C,alpha:L+v+L,ratio:"0,100",radialGradient:!0}})});C=w?t+v+I+v+t+v+t+v+I+v+t+v+I+v+t:I+v+I+v+I+v+I+v+I+v+I+v+I+v+I;n.front=s.path(e.concat(["M",r,T],["A",p,l,0,0,0,x,T],["L",x,c],["A",p,l,0,0,1,r,c,"Z"]),n).attr({"stroke-width":1,stroke:F(I,50),fill:R({FCcolor:{color:C,alpha:"30,30,30,30,30,30,30,30",
ratio:"0,15,0,12,0,15,43,15",angle:0}})});w&&(n.frontLight=s.path(e.concat(["M",r,T],["A",p,l,1,0,0,Q,S],["L",Q,N],["A",p,l,0,0,1,r,c,"Z"]),n).attr({"stroke-width":0,stroke:"#"+I,fill:R({FCcolor:{color:C,alpha:"40,0",ratio:"0,100",angle:0}})}));w&&(n.frontLight1=s.path(e.concat(["M",a,S],["A",p,l,0,0,0,x,T],["L",x,c],["A",p,l,1,0,0,a,N,"Z"]),n).attr({"stroke-width":0,stroke:"#"+I,fill:R({FCcolor:{color:C,alpha:"40,0",ratio:"0,100",angle:180}})}));n.cylinterTop=s.path(e.concat(["M",r,G],["A",p,l,0,
0,0,x,G],["L",x,G],["A",p,l,0,0,0,r,G,"Z"]),n).attr({"stroke-width":2,stroke:F(I,40)});return n}}();Pb=function(){var a={value:!0},e=0,c=function(a){e=Boolean(a)?a.duration:0},d=function(b,c){var d,p,m=this,l=this._3dAttr,n,h,r,t,u,B,q;Za(b)&&da(c)&&(d=b,b={},b[d]=c);if(Za(b))m=a[b]?m._3dAttr[b]:m._attr(b);else for(d in b)if(p=b[d],a[d]){if(p>=l.minValue&&p<=l.maxValue){l[d]=p;n=(p-l.minValue)/l.perLEDValueLength;p=ra(n)*l.sizeGapSum-l.ledGap;if(l.LEDCase){h=m.colorArr;t=h.length;for(r=0;r<t;r+=1)u=
h[r],u.maxLEDNoFrac<=n?q=l.LEDLowerFN:B?q=l.LEDUpperFN:(q=void 0,B=u),q&&(u[q](),"show"===q&&u.attr(u.oriShapeArg));B||(B=u);B.show();B.attr(B.hoverShapeArg)}m.darkShade&&(n={},l.isXChange?(n.width=Math.ceil(l.w-p),l.isIncrement&&(n.x=l.x+p)):(n.height=Math.ceil(l.h-p),l.isIncrement&&(n.y=l.y+p)),e?m.darkShade.animate(n,e,"easeIn"):m.darkShade.attr(n))}}else this._attr(d,p);return m},b=function(){};return function(a,e,g,p,m,l,n,s,r,t,u,B,L,w,T,x,y,D,C,E,U){var K=function(a){var b=0,c,d;return function(){b=
0;for(c=a.colorArr.length;b<c;b+=1)d=a.colorArr[b],d.attr(d.data("rollover"))}},v=function(a){var b=0,c,d;return function(){b=0;for(c=a.colorArr.length;b<c;b+=1)d=a.colorArr[b],d.attr(d.data("rollout"))}},H,I,J,A,z,N,Q,S,G,M,O,P,Y,X,aa,ba,oa,fa,ta,sa,va,Ra,cb,Ma;qb(a)&&(e=a.y,g=a.w,p=a.h,m=a.wGroup,l=a.renderer,n=a.value,s=a.gaugeFillColor,r=a.gaugeBorderColor,t=a.gaugeBorderAlpha,u=a.gaugeBorderThickness,B=a.colorRangeManager,L=a.minValue,w=a.maxValue,T=a.useSameFillColor,x=a.useSameFillBgColor,
y=a.ledSize,D=a.ledGap,C=a.type,a=a.x);n>=L&&n<=w||(n=L);s=q(s,"FFFFFF");r=q(r,"000000").replace(kb,nb);t=h(t,1);u=h(u,2);Ma={x:a,y:e,w:g,h:p,wGroup:m,renderer:l,value:n,gaugeFillColor:s,gaugeBorderColor:r,gaugeBorderAlpha:t,gaugeBorderThickness:u,colorRangeManager:B,minValue:L,maxValue:w,ledGap:D,ledSize:y,type:C,useSameFillColor:T,useSameFillBgColor:x};m=l.group("graphic",m);m._attr=m.attr;m.attr=d;m._setAnimate=c;m.shadow=b;m._3dAttr=Ma;B=B.getColorRangeArr(L,w);H=a;I=e;A=J=!0;z=2===C||4===C?p:
g;N=D+y;Q=D/2;S=Q/2;G=z-y;M=w-L;w=0;O=B.length;X=Y=0;aa=!1;oa=ba="show";fa=a;ta=e;sa=u/2;va=a-sa;Ra=e-sa;cb=a+g+sa;sa=e+p+sa;T&&(X+=1,ba="hide");x&&(X+=2,oa="hide");0>G?(T=1,y=z):(T=parseInt(G/N,10)+1,y+=G%N/T,N=y+D);x=M/T;m.colorArr=[];z=[];1===C?fa+=N-D/2:2===C?(A=!1,ta+=N-D/2):3===C?(H=a+g,J=!1,fa+=N-D/2):(I=e+p,A=J=!1,ta+=N-D/2);Ma.ledGap=D;Ma.ledSize=y;Ma.sizeGapSum=N;Ma.perLEDValueLength=x;Ma.isIncrement=J;Ma.isXChange=A;Ma.LEDLowerFN=ba;Ma.LEDUpperFN=oa;(Ma.LEDCase=X)&&(3===X?P={x:a,y:e,width:g,
height:p}:aa=!0);for(m.border=l.path(["M",va,Ra,"L",cb,Ra,cb,sa,va,sa,"Z"],m).attr({stroke:F(r,t),"stroke-width":u}).shadow({apply:E});w<O;w+=1)if((r=B[w])&&da(r.maxvalue)&&(t=ra((r.maxvalue-L)/x),y=t-Y,Y=t,0<y)){u={r:0};aa&&(P={});y*=N;if(A)if(u.y=I,u.width=y-D,u.height=p,J?(u.x=H,H+=y):(u.x=H-u.width,H-=y),aa&&(P.width=u.x-a,J&&1===X||!J&&2===X?(P.x=a,P.width+=u.width):P.width=g-P.width),0===w||w===O-1){if(u.width+=S,J&&w===O-1||!J&&0===w)u.x-=S,u.width=Math.ceil(u.width)}else u.width+=Q,u.x-=S;
else if(u.x=H,u.width=g,u.height=y-D,J?(u.y=I,I+=y):(u.y=I-u.height,I-=y),aa&&(P.height=u.y-e,J&&1===X||!J&&2===X?(P.y=e,P.height+=u.height):P.height=p-P.height),0===w||w===O-1){if(u.height+=S,J&&w===O-1||!J&&0===w)u.y-=S,u.height=Math.ceil(u.height)}else u.height+=Q,u.y-=S;y=l.rect(u.x,u.y,u.width,u.height,m).attr({"stroke-width":0,fill:R({FCcolor:{color:q(r.code,"000000"),alpha:h(r.alpha,100)}})});y.oriShapeArg=u;y.hoverShapeArg=P;y.maxLEDNo=t;y.maxLEDNoFrac=(r.maxvalue-L)/x;U&&(y.data("rollover",
{"stroke-width":0,fill:R({FCcolor:{color:ha(q(r.code,"000000"),80)+","+W(q(r.code,"000000"),80),alpha:h(r.alpha,100),angle:C%2?90:0}})}),y.data("rollout",{"stroke-width":0,fill:R({FCcolor:{color:q(r.code,"000000"),alpha:h(r.alpha,100)}})}));m.colorArr.push(y)}m.darkShade=l.rect(a,e,g,p,0,m).attr({"stroke-width":0,fill:F(s,50)});for(w=1;w<T;w+=1)A?(z.push("M",fa,ta,"L",fa,ta+p),fa+=N):(z.push("M",fa,ta,"L",fa+g,ta),ta+=N);m.LEDGap=l.path(z,m).attr({stroke:F(s,100),"stroke-width":D});m.tracker=l.rect(a,
e,g,p,0,m).attr({fill:ka});U&&m.tracker.hover(K(m),v(m));m.attr({value:n});return m}}();z("renderer.drawingpad",{deleteme:function(a){this.container.innerHTML="called from drawingpad: "+a}},z["renderer.root"]);z("renderer.widgetbase",{drawLegend:function(){},drawGraph:function(){var a=this.elements,e=this.paper,c=this.layers,d=this.options,b=c.dataset;d.nativeMessage||(c.dataset||(b=a.widgetGroup=c.dataset=e.group("dataset"),c.tracker=e.group("hot"),c.tracker.insertAfter(c.dataset)),c.datalabels||
(c.datalabels=e.group("datalabels").insertAfter(b)),b.translate(this.canvasLeft,this.canvasTop),c.datalabels.translate(this.canvasLeft,this.canvasTop),d.tooltip&&!1!==d.tooltip.enabled&&e.tooltip(d.tooltip.style,d.tooltip.shadow,d.tooltip.constrain),this.drawWidget(),this.drawScale(),this.drawValue())},drawWidgetValue:function(){},drawValue:function(a,e){var c=this.options,d=e||c.plotOptions.series.animation,c=c.series&&c.series[0]&&c.series[0].data||[],b;if(c.length){if(a&&(b=a.length))for(;b--;)c[b]&&
(c[b]=a[b]);this.drawWidgetValue(c,d);this.drawWidgetLabel(c,d)}},drawWidgetLabel:function(a){var e=this.paper,c=this.options,d=c.chart,b=this.elements,f=this.layers;a=a[0];var f=f.datalabels||(f.datalabels=e.group("datalabels").insertAfter(f.dataset)),k=this.canvasWidth,g=this.canvasHeight,p=d.valuePadding,m=a.displayValue,l=h(d.yScaleRadius,0),c=c.plotOptions.series.dataLabels.style,n={fontFamily:c.fontFamily,fontSize:c.fontSize,lineHeight:c.lineHeight,fontWeight:c.fontWeight,fontStyle:c.fontStyle},
g=g+p+l;null!==a.y&&!isNaN(a.y)&&da(m)&&m!==O&&(b.dataLabel?b.dataLabel.attr({text:m}):b.dataLabel=e.text(f).attr({"vertical-align":"top",text:m,x:k/2,y:g,"text-anchor":xa[Da],fill:c.color,direction:d.textDirection,title:a.originalText||"","text-bound":[c.backgroundColor,c.borderColor,c.borderThickness,c.borderPadding,c.borderRadius,c.borderDash]}).css(n),e=b.dataLabel.getBBox(),0>e.x+d.spacingLeft&&(e=e.width-d.spacingLeft,d.origW<e&&(e=d.origW-d.spacingLeft),b.dataLabel.attr({x:e/2})))},drawScale:function(){var a=
this.paper,e=this.elements,c=this.layers.dataset,d=this.options,b=this.canvasWidth,f=this.canvasHeight,k=d.scale,g=k.minorTM,d=d.chart.textDirection,p=k.min,m=k.max,l=k.majorTM,n=k.axisPosition,h=k.minorTMHeight,r=k.majorTMHeight,t=k.connectorColor,u=k.connectorThickness,B=k.minorTMColor,q=k.minorTMThickness,w=k.majorTMColor,T=k.majorTMThickness,x=k.tickMarkDistance,y=k.tickValueDistance,D=k.placeTicksInside,C=k.placeValuesInside,E=Math.max(r,h),c=e.scaleGroup||(e.scaleGroup=a.group("scale",c)),U=
Ka,K=Da,v=k.reverseScale,H=p,I=q/2,J=T/2,p=m-p,A=0,z=0,N=0,Q=0,F=0,G=0,M=0,R=0,P=0,Y=0,X=0,aa=0,ba=0,oa=0,fa=0,ta=0,sa,va={};D?(x=-x,r=-r,h=-h,C?(E=-E,y=-y):E=-x):C&&(E=-x,y=-y);v&&(p=-p,H=m);switch(n){case 1:A=b/p;Q=-x;G=Q-J;R=Q-I;Y=Q-r;aa=Q-h;oa=Q-E-y;U=Ka;K=C?La:rb;break;case 2:z=f/p;N=x;F=N+J;M=N+I;P=N+r;X=N+h;ba=N+E+y;fa=b;U=C?bb:Ha;K=Da;break;case 3:A=b/p;Q=x;G=Q+J;R=Q+I;Y=Q+r;aa=Q+h;oa=Q+E+y;ta=f;U=Ka;K=C?rb:La;break;case 4:z=f/p,N=-x,F=N-J,M=N-I,P=N-r,X=N-h,ba=N-E-y,U=C?Ha:bb,K=Da}e.minorTM||
(e.minorTM=[]);e.majorTM||(e.majorTM=[]);this.tmLabel||(e.tmLabel=[]);if(h)for(b=0,m=g.length;b<m;b+=1)r=g[b]-H,x=r*A,r*=z,e.minorTM[b]=a.path(["M",x+M,r+R,"L",x+X,r+aa],c).attr({"shape-rendering":wb[1>q],stroke:B,"stroke-linecap":"round","stroke-width":q});b=0;for(m=l.length;b<m;b+=1)if(g=l[b],r=g.value-H,R=g.displayValue,x=r*A,r*=z,h&&(e.majorTM[b]=a.path(["M",x+F,r+G,"L",x+P,r+Y],c).attr({"shape-rendering":wb[1>T],stroke:w,"stroke-linecap":"round","stroke-width":T})),R!==O){q=0===b||b===m-1?k.limitValues.style:
k.tickValues.style;B=g.labelX||0;M=x+ba;R=this.smartLabel.getSmartText(R,Number.POSITIVE_INFINITY,f);va[b]=R.width;if(1===n||3===n)if(X=b===m-1?M+B-R.width:M-(R.width/2+B),0===b?aa=Number.NEGATIVE_INFINITY:(aa=void 0===sa?b-1:sa,y=y=x=void 0,0>aa?aa=Number.NEGATIVE_INFINITY:(x=e.tmLabel[aa],y=va[aa],y=0===aa?x?x.node.scrollWidth?x.node.scrollWidth>y?x.node.scrollWidth:y:y:0:x?x.node.scrollWidth?(x.node.scrollWidth>y?x.node.scrollWidth:y)/2:y/2:0,aa=x?x.attrs.x+y:0)),aa>=X)if(b===m-1)e.tmLabel[sa].remove();
else continue;else sa=b;e.tmLabel[b]=a.text(M+B,r+oa,R.text,c).attr({"text-anchor":xa[g.align||U],direction:d,"vertical-align":K,title:g.originalText||""}).css(q)}u&&(e.tmConnector=a.path(["M",N,Q,"L",p*A+N,p*z+Q],c).attr({"shape-rendering":wb[1>u],stroke:t,"stroke-linecap":"round","stroke-width":u}));c.translate(fa,ta);return c},realtimeUpdate:function(a){if(a===this.lastUpdatedObj)return!1;var e=this.options,c=e.series,d=this.logic,c=c&&c[0]&&c[0].data,b=a.values||[],f=a.labels||[],k=a.toolTexts||
[],g=a.showLabels||[],p=c&&c.length||0,m=[],l;if(p){for(;p--;)l={},void 0!==b[p]&&""!==b[p]?(l.value=b[p],l.hasNewData=!0):l.value=c[p].y,f[p]&&(l.displayvalue=f[p],l.hasNewData=!0),k[p]&&(l.tooltext=k[p],l.hasNewData=!0),l.hasNewData&&(m[p]=d.getPointStub(l,p,e,this.definition)),"0"!=g[p]&&c[p].displayValue||(m[p].displayValue=O);m.length&&(this.lastUpdatedObj=a)&&this.drawValue(m);return Boolean(m.length)}}},z["renderer.root"]);z("renderer.bulb",{drawWidget:function(){var a=this,e=a.options,c=e.chart,
d=a.paper,b=a.elements,f=c.gaugeRadius,e=e.series[0]&&e.series[0].data&&e.series[0].data[0]||{},k=e.rolloverProperties||{},g={cx:c.gaugeOriginX,cy:c.gaugeOriginY,stroke:e.borderColor,"stroke-linecap":"round","stroke-width":e.borderWidth,r:c.animation?.001:f},p={r:f},m;null===e.y||isNaN(e.y)||(m=b.bulb=(m=b.bulb)?m.attr(g):d.circle(g,a.layers.dataset),c.animation&&m.animate(p,c.animation.duration,"easeIn"),m.click(function(b){ma.call(this,a,b)}).hover(function(b){ma.call(this,a,b,"DataPlotRollOver")},
function(b){ma.call(this,a,b,"DataPlotRollOut")}),k.enabled&&m.mouseover(function(){m.attr(k.hoverAttr);k.hoverAnimAttr&&m.animate(k.hoverAnimAttr,100,"easeIn")}).data("hoverAttr",k.hoverAttr).mouseout(function(){m.attr(k.outAttr);k.hoverAnimAttr?m.animate(p,100,"easeIn"):m.attr(p)}).data("outAttr",k.outAttr))},drawWidgetValue:function(a){var e=this.elements;a=a[0];var c=a.rolloverProperties||{},d=c.hoverAttr,b=c.outAttr,f={fill:R(a.color),ishot:!0},e=e.bulb,k=e.data("hoverAttr"),g=e.data("outAttr");
c.enabled&&(d&&d.stroke&&(k.stroke=d.stroke,g.stroke=b.stroke),d&&d.fill&&(k.fill=d.fill,g.fill=b.fill));e||this.drawWidget();c={value:a.y,displayValue:a.displayValue,toolText:a.toolText};null===a.y||isNaN(a.y)||e.attr(f).tooltip(a.toolText).data("eventArgs",c)},drawScale:function(){},drawWidgetLabel:function(a){var e=this.options.chart,c=this.paper,d=this.elements,b=this.layers,f=e.gaugeRadius,k=e.gaugeOriginX,g=e.gaugeOriginY;a=a[0];var p=d.dataLabel,m=e.dataLabels.style,l={fontFamily:m.fontFamily,
fontSize:m.fontSize,lineHeight:m.lineHeight,fontWeight:m.fontWeight,fontStyle:m.fontStyle};b.datalabels||(b.datalabels=c.group("datalabels").insertAfter(b.dataset));e.placeValuesInside?(b=g,f=Da):(b=g+f+e.valuePadding,f=La);null===a.y||isNaN(a.y)||a.displayValue===O||(p||(d.dataLabel=p=c.text(this.layers.dataset)),p.attr({text:a.displayValue,"text-anchor":"middle",x:k,y:b,title:a.originalText||"","vertical-align":f,fill:m.color,direction:e.textDirection,"text-bound":[m.backgroundColor,m.borderColor,
m.borderThickness,m.borderPadding,m.borderRadius,m.borderDash]}).css(l))}},z["renderer.widgetbase"]);z("renderer.thermometer",{drawWidget:function(){var a=this.options,e=a.chart,c=this.paper,d=a.series[0].data[0],b=e.plotHoverEffects||{},f=e.thmBulbRadius,k=.643*f,g=new sb(d.color),p=g.get("hex").replace(kb,O),g=100*g.get("a"),m;d.minValue=a.scale.min;d.maxValue=a.scale.max;m=this.elements.thermometer=Nb(0+k,0-k,f,e.thmHeight,this.layers.dataset,c,0,e.thmGlassColor,e.gaugeBorderColor,e.gaugeBorderThickness,
p,g,e.use3DLighting);b.enabled&&m.data("hoverInAttrs",{fluidColor:b.thmFillHoverColor,fluidAlpha:b.thmFillHoverAlpha}).data("hoverOutAttrs",{fluidColor:p,fluidAlpha:g}).hover(function(){m.attr(m.data("hoverInAttrs"))},function(){m.attr(m.data("hoverOutAttrs"))})},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,k=b.min,b=a[0],f=(h(b.y,k)-k)/(f-k),g;d.thermometer||c.drawWidget();b.fluidHRatio=f;k={value:b.y,displayValue:b.displayValue,toolText:b.toolText};e&&d.thermometer._setAnimate(e);
d.thermometer.attr({fluidHRatio:f,ishot:!0}).click(function(a){ma.call(this,c,a)}).hover(function(a){ma.call(this,c,a,"DataPlotRollOver")},function(a){ma.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",k);if(b.toolText&&(g=d.thermometer.bottom)){do g.tooltip(b.toolText);while(g=g.next)}}},z["renderer.widgetbase"]);z("renderer.cylinder",{drawWidget:function(){var a=this.options,e=a.chart,c=e.plotHoverEffects||{},d=this.paper,b=this.elements,f=this.layers.dataset,k=a.scale,g=k.max,a=a.series[0].data[0],
p,m;a.minValue=k.min;a.maxValue=g;b.cylinder=Ob(e.cylRadius,0,e.cylRadius,e.cylHeight,e.cylYScale,f,d,0,e.cylGlassColor,"100",e.cylFillColor,e.cylFillAlpha,e.cyl3DLighting);c.enabled&&(p={color:c.cylFillHoverColor,alpha:c.cylFillHoverAlpha},m={color:e.cylFillColor,alpha:e.cylFillAlpha},b.cylinder.hover(function(){b.cylinder.attr(p)},function(){b.cylinder.attr(m)}))},drawWidgetValue:function(a,e){var c=this,d=c.elements,b=c.options.scale,f=b.max,k=b.min,b=a[0],f=(h(b.y,k)-k)/(f-k),g;d.cylinder||c.drawWidget();
k={value:b.y,displayValue:b.displayValue,toolText:b.toolText};b.fluidHRatio=f;e&&d.cylinder._setAnimate(e);d.cylinder.attr({fluidHRatio:f,ishot:!0}).click(function(a){ma.call(this,c,a)}).hover(function(a){ma.call(this,c,a,"DataPlotRollOver")},function(a){ma.call(this,c,a,"DataPlotRollOut")}).data("eventArgs",k);if(b.toolText&&(g=d.cylinder.bottom)){do g.tooltip(b.toolText);while(g=g.next)}}},z["renderer.widgetbase"]);z("renderer.led",{drawWidget:function(){var a=this.options,e=this.paper,c=this.logic,
d=a.chart,b=this.elements,f=a.scale,k=f.max,g=f.min,a=a.series[0].data[0],h=this.layers.dataset;a.minValue=g;a.maxValue=k;b.led=Pb(0,0,this.canvasWidth,this.canvasHeight,h,e,0,d.gaugeFillColor,d.gaugeBorderColor,d.gaugeBorderAlpha,d.gaugeBorderThickness,c.colorRangeGetter,g,k,d.useSameFillColor,d.useSameFillBgColor,d.ledSize,d.ledGap,c.isHorizontal?f.reverseScale?3:1:f.reverseScale?4:2,d.showShadow,d.plotHoverEffect)},drawWidgetValue:function(a,e){var c=this.elements,d=a[0].y;c.led||this.drawWidget();
e&&c.led._setAnimate(e);c.led.attr({value:d})}},z["renderer.widgetbase"]);z("renderer.bullet",{drawWidget:function(){var a=this.options,e=this.paper,c=this.logic,d=a.chart,b=a.scale,a=this.elements,f=this.layers.dataset,k=this.canvasWidth,g=this.canvasHeight,p=b.min,m=b.max,l=b&&b.trendPoint||[],n=d.colorRangeFillMix,s=d.colorRangeFillRatio,r=d.colorRangeBorderColor,t=d.colorRangeBorderAlpha,u=d.colorRangeBorderThickness,B=c.colorRangeGetter.getColorRangeArr(p,m),d=d.showShadow,q,w,T,x,y,D=c.colorManager,
C,E,U;a.linear||(a.linear=q=e.group("colorrange",f),a.outerRect=e.rect(q));a.outerRect.attr({x:0,y:0,width:k,height:g,stroke:"none",r:0});c=c.isHorizontal?b.reverseScale?3:1:b.reverseScale?4:2;1===c?(f=function(a,b){return{x:a*k/(m-p),y:0,width:(b-a)*k/(m-p),height:g}},w=270):2===c?(f=function(a,b){return{x:0,y:a*g/(m-p),width:k,height:(b-a)*g/(m-p)}},w=180):3===c?(f=function(a,b){return{x:k-b*k/(m-p),y:0,width:(b-a)*k/(m-p),height:g}},w=270):(f=function(a,b){return{x:0,y:g-b*g/(m-p),width:k,height:(b-
a)*g/(m-p)}},w=180);a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(b=B.length;c<b;c+=1)x=B[c],y=f(x.minvalue-p,x.maxvalue-p),x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height,T=x.code,T=F(ib(T,r),t),d&&Math.max(x.alpha,t),C=D.parseColorMix(x.code,n),E=D.parseAlphaList(x.alpha,C.length),U=h(x.borderAlpha,t),x=E.split(v),x=Ca.apply(Math,x),x=Ca(u&&U||0,x),a.colorRangeElems[c]||(a.colorRangeElems[c]=e.rect(q)),a.colorRangeElems[c].attr({x:y.x,y:y.y,width:y.width,height:y.height,r:0,"stroke-width":u,
stroke:T,fill:R({FCcolor:{color:C.toString(),ratio:s,alpha:E,angle:w}})}).shadow({apply:d,opacity:x/100});for(;a.colorRangeElems[c];)a.colorRangeElems[c].remove(),a.colorRangeElems.splice(c,1);a.trendObjElems||(a.trendObjElems=[]);c=0;for(b=l.length;c<b;c+=1)n=l[c],y=f(n.startValue-p,n.endValue-p),n.isZone?(a.trendObjElems[c]||(a.trendObjElems[c]=e.rect(q)),a.trendObjElems[c].attr({x:y.x,y:y.y,width:0<y.width?y.width:0,height:0<y.height?y.height:0,r:0,fill:R({FCcolor:{color:n.color,alpha:n.alpha}})})):
a.trendObjElems[c]=this.path(["M",y.x,y.y,"L",y.x,y.y+y.height],q).attr({stroke:F(n.color,n.alpha),"stroke-width":n.thickness,"stroke-dasharray":n.dashStyle});for(;a.trendObjElems[c];)a.trendObjElems[c].remove(),a.trendObjElems.splice(c,1)},drawWidgetValue:function(a){var e=this,c=e.paper,d=e.layers.dataset,b=e.canvasWidth,f=e.canvasHeight,k=e.options.scale,g=k.max,p=k.min,m=g-p,l=a[0],n=a[1],s=k&&k.trendPoint||[],r,t,u=n.borderWidth,q=e.logic.isHorizontal,L;t=a.length;var w=0,T=0,x=0,y=0,D=p,C,E,
v,K,A,H;q?(w=b/m,y=f/2):(T=f/m,x=b/2);k.reverseScale&&(w=-w,T=-T,D=g);for(;t--;)L=a[t],k=h(L.y,D)-D,L.plotX=L.origX=k*w+x,L.plotY=L.origY=k*T+y;for(t=s.length;t--;)L=s[t],k=L.startValue-p,L.plotX=L.origX=k*w+x,L.plotY=L.origY=k*T+y;k=function(a){a=h(a,D)-D;return{x:a*w+x,y:a*T+y}}(Math.min(Math.max(p,0),g));da(l.y)&&(l.plotAsDot?(s=t=l.plotFillPercent/100*(q?f:b),a=l.plotX-t/2,g=l.plotY-s/2,q?(l.animInitAttr={x:k.x},l.animAttr={x:a}):(l.animInitAttr={y:k.y},l.animAttr={y:g})):(a=Math.min(l.plotX,
k.x),g=Math.min(l.plotY,k.y),s=Math.abs(l.plotY-k.y),t=Math.abs(l.plotX-k.x),q?(l.animInitAttr={x:k.x,width:0},l.animAttr={x:a,width:t},s=l.plotFillPercent/100*f,g-=s/2):(l.animInitAttr={y:k.y,height:0},l.animAttr={y:g,height:s},t=l.plotFillPercent/100*b,a-=t/2)),p={link:L.link,value:l.y,displayValue:l.displayValue,toolText:L.toolText},L.shapeType="rect",L.shapeArgs={x:a,y:g,height:s,width:t,endY:r,r:0},v=l.rolloverProperties||{},v.enabled&&void 0!==v.plotFillHoverPercent&&(v.showHoverAnimation?(C=
{},E={}):(C=v.hoverAttr,E=v.outAttr),l.plotAsDot?(C.width=C.height=v.plotFillHoverPercent/100*(q?f:b),C.x=l.plotX-C.width/2,C.y=l.plotY-C.width/2,E.width=E.height=t,E.x=a,E.y=g):q?(C.height=v.plotFillHoverPercent/100*f,C.y=Math.min(l.plotY,k.y)-C.height/2,E.height=s,E.y=g):(C.width=v.plotFillHoverPercent/100*b,C.x=Math.min(l.plotX,k.x)-C.width/2,E.width=t,E.x=a)),L.graphic=c.rect(a,g,t,s,0,d).attr({fill:L.color,stroke:L.borderColor,ishot:!0,"stroke-width":L.borderWidth}).click(function(a){ma.call(this,
e,a)}).hover(function(a){ma.call(this,e,a,"DataPlotRollOver");v.enabled&&(this.attr(v.hoverAttr),v.showHoverAnimation&&this.animate(C,100,"easeOut"))},function(a){ma.call(this,e,a,"DataPlotRollOut");v.enabled&&(this.attr(v.outAttr),v.showHoverAnimation&&this.animate(E,100,"easeOut"))}).tooltip(L.toolText).data("eventArgs",p));da(n.y)&&(q?(t=f*n.targetFillPercent/100,s=t/2,l=a=n.plotX,p=g=n.plotY-s,r=n.plotY+s,s=t,t=u,L=a-u/2,k=[a+u,n.plotY]):(t=b*n.targetFillPercent/100,s=t/2,L=a=n.plotX-s,g=r=n.plotY,
l=n.plotX+s,s=u,p=g-u/2,k=[n.plotX,g+u+10]),n.shapeType="rect",n.tooltipPos=k,n.trackerArgs={x:L,y:p,height:s,width:t,r:0},n.shapeArgs=["M",a,g,"L",l,r],n.animInitAttr={d:["M",n.plotX,n.plotY,"L",n.plotX,n.plotY]},n.animAttr={d:n.shapeArgs},p={link:n.link,value:n.y,displayValue:n.displayValue,toolText:n.toolText},K=n.rolloverProperties||{},K.enabled&&void 0!==K.plotFillHoverPercent&&(K.showHoverAnimation?(H={},A={d:n.shapeArgs}):(H=K.hoverAttr,K.outAttr.d=n.shapeArgs),q?(t=f*n.plotFillHoverPercent/
100,s=t/2,H.d=["M",a,n.plotY-s,"L",l,n.plotY+s]):(t=b*n.plotFillHoverPercent/100,s=t/2,H.d=["M",n.plotX-s,g,"L",n.plotX+s,r])),n.graphic=c.path(n.shapeArgs,d).attr({stroke:n.borderColor,"stroke-width":u,"stroke-linecap":"round",ishot:!0,"shape-rendering":wb[1>u]}).click(function(a){ma.call(this,e,a)}).hover(function(a){ma.call(this,e,a,"DataPlotRollOver");K.enabled&&(this.attr(K.hoverAttr),K.showHoverAnimation&&this.animate(H,100,"easeOut"))},function(a){ma.call(this,e,a,"DataPlotRollOut");K.enabled&&
(this.attr(K.outAttr),K.showHoverAnimation&&this.animate(A,100,"easeOut"))}).tooltip(n.toolText).data("eventArgs",p))}},z["renderer.widgetbase"]);z("renderer.hbullet",{drawWidgetLabel:function(a){var e=this.options,c=e.chart,d=this.layers,b=this.paper,f=d.datalabels;a=a[0];var k=this.canvasWidth,g=this.canvasHeight,h=c.valuePadding,e=e.plotOptions.series.dataLabels.style,m={fontFamily:e.fontFamily,fontSize:e.fontSize,lineHeight:e.lineHeight,fontWeight:e.fontWeight,fontStyle:e.fontStyle};f||(f=d.datalabels=
b.group("datalabels").insertAfter(d.dataset));d=k+h;void 0===a.y||isNaN(a.y)||a.displayValue===O||(a.dataLabel=b.text(d,g/2,a.displayValue,f).attr({"text-anchor":xa[Ha],title:a.originalText||"",fill:e.color,direction:c.textDirection,"text-bound":[e.backgroundColor,e.borderColor,e.borderThickness,e.borderPadding,e.borderRadius,e.borderDash]}).css(m))}},z["renderer.bullet"]);z("renderer.hlinear",{drawWidget:function(){var a=this.options,e=this.paper,c=this.logic,d=a.chart,b=a.scale,a=this.elements,
f=this.layers.dataset,k=this.canvasWidth,g=this.canvasHeight,p=b.min,m=b.max,b=b&&b.trendPoint||[],l=d.colorRangeFillMix,n=d.colorRangeFillRatio,s=d.colorRangeBorderColor,r=d.colorRangeBorderAlpha,t=d.colorRangeBorderThickness,u=c.colorRangeGetter.getColorRangeArr(p,m),B=d.showShadow,L,w,T,x,y,D,C=this.pointOrientation={top:1,bottom:3},E=c.colorManager,U,K,A;a.linear||(a.linear=w=e.group("colorrange",f),a.outerRect=e.rect(w));a.outerRect.attr({x:0,y:0,width:k,height:g,stroke:"none",r:0});T=function(a,
b){return{x:a*k/(m-p),y:0,width:(b-a)*k/(m-p),height:g}};a.colorRangeElems||(a.colorRangeElems=[]);c=0;for(L=u.length;c<L;c+=1)y=u[c],D=T(y.minvalue-p,y.maxvalue-p),y.x=D.x,y.y=D.y,y.width=D.width,y.height=D.height,x=y.code,x=F(ib(q(y.bordercolor,x),s),h(y.borderalpha,r)),B&&Math.max(y.alpha,r),U=E.parseColorMix(y.code,l),K=E.parseAlphaList(y.alpha,U.length),y=h(y.borderAlpha,r),A=K.split(v),A=Ca.apply(Math,A),A=Ca(t&&y||0,A),a.colorRangeElems[c]||(a.colorRangeElems[c]=e.rect(w)),a.colorRangeElems[c].attr({x:D.x,
y:D.y,width:D.width,height:D.height,r:0,"stroke-width":t,stroke:x,fill:R({FCcolor:{color:U.toString(),ratio:n,alpha:K,angle:270}})}).shadow({apply:B,opacity:A/100});for(;a.colorRangeElems[c];)a.colorRangeElems[c].remove(),a.colorRangeElems.splice(c,1);a.trendObjElems||(a.trendObjElems=[]);c=0;for(L=b.length;c<L;c+=1)l=b[c],D=T(l.startValue-p,l.endValue-p),l.isZone?(a.trendObjElems[c]||(a.trendObjElems[c]=e.rect(w)),a.trendObjElems[c].attr({x:D.x,y:D.y,width:0<D.width?D.width:0,height:0<D.height?D.height:
0,r:0,"stroke-width":0,fill:R({FCcolor:{color:l.color,alpha:l.alpha}})}).tooltip(l.tooltext)):a.trendObjElems[c]=e.path(["M",D.x,D.y,"L",D.x,D.y+D.height],w).attr({stroke:F(l.color,l.alpha),"stroke-width":l.thickness,"stroke-dasharray":l.dashStyle}).tooltip(l.tooltext),l.useMarker&&(l.showOnTop?(s="bottom",n=0):(s="top",n=g),s=90*C[s],l.graphic=e.polypath(3,D.x,n,l.markerRadius,s,0,f).attr({fill:l.markerColor,stroke:l.markerBorderColor,"stroke-width":1}).shadow({apply:d.showShadow}).tooltip(l.tooltext));
for(;a.trendObjElems[c];)a.trendObjElems[c].remove(),a.trendObjElems.splice(c,1)},drawWidgetValue:function(a,e){var c=a&&a.length||0,d=this.options.chart,b=this.pointOrientation,f={point:[],showPointerShadow:d.showPointerShadow},d=d.pointerOnOpp?"top":"bottom";for(this.dataById={};c--;)f.point[c]={startAngle:90*b[d]};this.drawPointerValues(null,e,f)},drawPointerValues:function(a,e,c){var d=this;a=d.layers.dataset;var b=d.options,f=d.elements,k=d.paper,g=b.scale,p=b.series&&b.series[0]&&b.series[0].data||
[],m=d.canvasWidth,l=d.canvasHeight,l=b.chart.pointerOnOpp?l:0,n=b.chart.showPointerShadow,b=!1!==b.tooltip.enabled,s=(g.max-g.min)/m,r=g.min,t=g.max,u=p.length,q,L,w,v,x={pageX:0,pageY:0},y=function(a){L=d.fusionCharts.getDataJSON();this.dragStartX=a},D=function(){var a,b=d.fusionCharts;(a=b&&b.jsVars)&&(a._rtLastUpdatedData=b.getDataJSON());ja.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:L.values,source:"editMode",url:null},
b);try{na.FC_ChartUpdated&&na.FC_ChartUpdated(b.id)}catch(c){setTimeout(function(){throw c;},1)}this.graphic.tooltip(this.toolText)},C=function(a,b,c,e,f){a=Db&&(Db&&f.sourceEvent&&f.sourceEvent.touches&&f.sourceEvent.touches[0]||f)||x;b=h(this.y,g.min);e=b-(this.dragStartX-c)*s;var k=0,l=[];e<g.min?e=g.min:e>g.max&&(e=g.max);for(;k<this.index;k+=1)l.push("");l.push(e);b!==e&&d.realtimeUpdate({values:l},{duration:0})&&(this.updatedValStr=l.join("|"),this.dragStartX=c||f.pageX||a.pageX)},E,A,K,z,H,
I;z=function(a){ma.call(this,d,a)};H=function(a){var b=this.data("rolloverProperties");b.enabled&&(this.attr(b.hoverAttr),b.hoverAnimAttr&&this.animate(b.hoverAnimAttr,100,"easeIn"));ma.call(this,d,a,"DataPlotRollOver")};for(I=function(a){var b=this.data("rolloverProperties");b.enabled&&(this.attr(b.outAttr),b.outAnimAttr&&this.animate(b.outAnimAttr,100,"easeIn"));ma.call(this,d,a,"DataPlotRollOut")};u--;)q=p[u],A=q.rolloverProperties||{},v=c&&c.point[u]&&c.point[u].startAngle||q._startAngle,v+=.2,
f.pointers||(f.pointers=[]),f.pointers[u]||(void 0!==q.id&&(d.dataById[q.id]={index:u,point:q}),w=n?{opacity:Math.max(q.bgalpha,q.borderalpha)/100}:!1,E=q.editMode?void 0:q.link,K={link:E,value:q.y,displayValue:q.displayValue,toolText:q.toolText},q.graphic=f.pointers[u]=k.polypath(q.sides,0,l||0,q.radius,v,0,a).attr({fill:q.color,stroke:q.borderColor,ishot:!0,r:q.radius,"stroke-width":q.borderWidth}).shadow(!!w,w&&w.opacity).click(z).hover(H,I).data("eventArgs",K).data("rolloverProperties",A),E&&
q.graphic.css({cursor:"pointer",_cursor:"hand"}),q._startAngle=v,q.editMode&&(q.index=u,q.graphic.css({cursor:"pointer",_cursor:"hand"}).attr({ishot:!0}),q.graphic.drag(C,y,D,q,q,q))),q.graphic=f.pointers[u],b&&q.graphic.tooltip(q.toolText),e&&e.duration?q.graphic.animate({polypath:[q.sides,m*(h(q.y,r)-r)/(t-r),l||0,q.radius,v,0]},e.duration,"easeIn"):q.graphic.attr({polypath:[q.sides,m*(h(q.y,r)-r)/(t-r),l||0,q.radius,v,0]})},drawWidgetLabel:function(a,e){var c=this.options,d=c.scale,b=this.layers,
f=this.paper,k=c.chart,g=this.logic,b=b.datalabels||(b.datalabels=f.group("datalabels").insertAfter(b.dataset)),p=d.min,m=d.max,l=k.textDirection,n=g.colorRangeGetter.getColorRangeArr(p,m),g=g.numberFormatter,s=k.colorRangeStyle.style||{},r,t=this.canvasWidth,u=this.canvasHeight,d=d&&d.trendPoint||[],B=k.pointerOnOpp,L=k.valueInsideGauge;r=k.showGaugeLabels;var w=c.plotOptions.series.dataLabels.style,v,x,y,D,C,E,A,K,z;K=!1;var c=this.smartLabel,H,I,J;J=h(parseInt(w.fontHeight,10),parseInt(w.lineHeight,
10),12);var F=k.valuePadding+.5*J,k=k.valuePadding,G=F,w={fontFamily:w.fontFamily,fontSize:w.fontSize,lineHeight:w.lineHeight,fontWeight:w.fontWeight,fontStyle:w.fontStyle},F=L===B?F-J/4:F+J/4;c.setStyle(w);I=c.getOriSize("W...").width;D=this.getPointerLabelXY=function(a,b,c,d){return{x:(a-p)*t/(m-p),y:c?b?u-d-F:u+F:b?F:-(F+d),align:"middle"}};C=function(a,b){return{x:(a-p+(b-a)/2)*t/(m-p),y:u/2,width:(b-a)*t/(m-p),height:u}};if(a&&a.length)for(w=a.length;w--;)if(y=a[w],0!==y.showvalue&&y.displayValue!==
O&&(H=c.getOriSize(y.displayValue),y.setWidth&&(H=c.getSmartText(y.displayValue,y.setWidth,H.height,!0)),E=this.getPointerLabelXY(y.y,L,B,H.height/2),y.isLabelString)){K=!1;for(z=1;!K;){A=a[w+z];if(!A)break;A.isLabelString?K=!0:z+=1}A&&(K=c.getOriSize(A.displayValue),v=D(A.y,L,B,K.height/2),z=v.x-K.width/2-(E.x+H.width/2),v=v.x-E.x,0>z&&(x=H.width+z,x>v&&(y.setWidth=x=v),x>I?(E=y.setWidth&&y.setWidth<=x?c.getSmartText(y.displayValue,y.setWidth,H.height,!0):c.getSmartText(y.displayValue,x,H.height,
!0),y.displayValue=E.text,E.tooltext&&(y.originalText=E.tooltext)):(E=c.getSmartText(y.displayValue,I,H.height,!0),y.displayValue=E.text,E.tooltext&&(y.originalText=E.tooltext),z=2*z+I-4),y.setWidth=null,x=K.width+z-4,A.setWidth=x>v?v:x>I?x:I));y.setWidth&&(E=c.getSmartText(y.displayValue,y.setWidth,H.height,!0),y.displayValue=E.text,E.tooltext&&(y.originalText=E.tooltext),y.setWidth=null)}this.drawPointerLabels(null,e);s=s||{};c.setStyle(s);if(n&&r)for(w=0,B=n.length;w<B;w+=1)r=n[w],L=q(r.label,
r.name),da(L)&&L!==O&&(E=C(r.minvalue,r.maxvalue),H=E.width-4>I&&E.height-4>J?c.getSmartText(L,E.width-4,E.height-4):c.getSmartText(L,E.width,E.height),f.text(b).attr({"text-anchor":Da,title:H.tooltext||"","vertical-align":Da,text:H.text,x:E.x,y:E.y,direction:l,fill:s.color}).css(s));if(d)for(w=0,B=d.length;w<B;w+=1){n=d[w];n.displayValue=q(n.displayValue,g.dataLabels(n.startValue));c.setStyle(n.style);J=c.getOriSize("Wg").height;H=c.getOriSize(n.displayValue);E=D(n.startValue,0,!n.showOnTop);n.setWidth&&
(H=c.getSmartText(n.displayValue,n.setWidth,H.height,!0));K=!1;for(z=1;!K;){A=d[w+z];if(!A)break;A.showOnTop===n.showOnTop?K=!0:z+=1}A&&(K=c.getOriSize(A.displayValue),v=D(A.startValue,0,!A.showOnTop),z=v.x-K.width/2-(E.x+H.width/2),0>z&&(v=v.x-E.x,x=H.width+z,x>v&&(n.setWidth=x=v),x>I?(H=n.setWidth&&n.setWidth<=x?c.getSmartText(n.displayValue,n.setWidth,H.height,!0):c.getSmartText(n.displayValue,H.width+z-4,H.height,!0),n.displayValue=H.text,H.tooltext&&(n.originalText=H.tooltext)):(H=c.getSmartText(n.displayValue,
I,H.height,!0),n.displayValue=H.text,H.tooltext&&(n.originalText=H.tooltext),z=2*z+I-4),n.setWidth=null,x=K.width+z-4,A.setWidth=x>v?v:x>I?x:I));n.setWidth&&(H=c.getSmartText(n.displayValue,n.setWidth,H.height,!0),n.displayValue=H.text,H.tooltext&&(n.originalText=H.tooltext),n.setWidth=null);J=n.showOnTop?-(k+H.height/2):u+G;s=n.isZone?C(n.startValue,n.endValue).x:E.x;n.dataLabel=f.text(0,J,n.displayValue,b).attr({"text-anchor":xa[E.align],direction:l,title:n.originalText||""}).css(n.style);n.dataLabel.attr({x:s})}},
drawPointerLabels:function(a,e){for(var c=this.layers.datalabels,d=this.paper,b=this.options,f=b.chart,k=f.pointerOnOpp,g=f.valueInsideGauge,f=f.textDirection,h=this.smartLabel,m=b.series&&b.series[0]&&b.series[0].data||[],b=b.plotOptions.series.dataLabels.style,l=m.length,n={fontFamily:b.fontFamily,fontSize:b.fontSize,lineHeight:b.lineHeight,fontWeight:b.fontWeight,fontStyle:b.fontStyle},s,r,t;l--;)r=m[l],s=r.displayValue,0!==r.showvalue&&s!==O&&(t=h.getOriSize(s),t=this.getPointerLabelXY(r.y,g,
k,t.height/2),r.dataLabel?r.dataLabel.attr({text:s,title:r.originalText||""}):r.dataLabel=d.text(c).attr({"text-anchor":xa[t.align],title:r.originalText||"",text:s,x:0,y:t.y,fill:b.color,direction:f,"text-bound":[b.backgroundColor,b.borderColor,b.borderThickness,b.borderPadding,b.borderRadius,b.borderDash]}).css(n),e&&e.duration?r.dataLabel.animate({x:t.x},e.duration,"easeIn"):r.dataLabel.attr({x:t.x}))},realtimeUpdate:function(a,e){if(a===this.lastUpdatedObj)return!1;var c=this.options,d=c[P],b=
c.series,f=this.numberFormatter,b=b&&b[0]&&b[0].data,k=a.values||[],g=a.labels||[],h=a.toolTexts||[],m=a.showLabels||[],l=b&&b.length||0,n,s,r=null,t=[],u;e=e||c.plotOptions.series.animation;if(l){for(;l--;)c={},u={},n=b[l],void 0!==k[l]&&""!==k[l]?(c.value=u.value=k[l],r=u.displayvalue=u.tooltext=f.dataLabels(u.value),u.hasNewData=!0):u.value=n.y,g[l]&&(u.displayvalue=g[l],u.hasNewData=!0),"0"==m[l]&&(u.displayvalue=O,u.hasNewData=!0),s=G($(q(n._tooltext,d.tooltext))),h[l]&&(s=G($(h[l])),u.hasNewData=
!0),u.hasNewData&&(t[l]=u,V(n,{y:u.value,displayValue:n.displayValue||"1"==m[l]?u.displayvalue:O,toolText:void 0!==s?Xa(s,[1,2],{formattedValue:r},c):r}));t.length&&(this.lastUpdatedObj=a,this.drawPointerValues(b,e),this.drawPointerLabels(b,e));return Boolean(t.length)}}},z["renderer.widgetbase"]);z("renderer.angular",{drawWidget:function(){var a=this.options,e=a.chart,c=a.scale,d=a.series[0],a=this.paper,b=this.elements,f=this.layers.dataset,k=d.gaugeOuterRadius,g=d.gaugeInnerRadius,p=d.gaugeFillRatio,
m=e.gaugeBorderColor,l=e.gaugeBorderThickness,n=e.gaugeBorderAlpha,s=d.gaugeFillMix,r=d.gaugeOriginX,t=d.gaugeOriginY,u=e.gaugeStartAngle,B=e.gaugeEndAngle,L=e.showShadow,e=e.textDirection,w=c.min,A=c.max,x=this.logic,y=x.colorRangeGetter.getColorRangeArr(w,A),D=0,C=y.length,E=A-w,B=B-u,z,K,G=u,H=Math.cos(u),I=Math.sin(u),J=r+k*H;K=t+k*I;var H=r+g*H,I=t+g*I,Qa,c=c.trendPoint,P;b.trendPointGroup||(b.trendPointGroup=a.group("trendpoint",f));for(;D<C;D+=1)z=y[D],K=u+(Math.min(z.maxvalue,A)-w)/E*B,H=
x.parseColorMix(z.code,s),I=x.parseAlphaList(z.alpha,H.length),J=x.parseRatioList(g/k*100+p,H.length),P=z.bordercolor,Qa=h(z.borderAlpha,n),P=P&&-1==P.indexOf("{")?F(P,Qa):x.parseColorMix(z.code,q(P,m))[0],P=F(P,Qa),z=I.split(v),z=Ca.apply(Math,z),z=L?Ca(l&&Qa||0,z):0,Qa=K,G>K&&(G+=K,K=G-K,G-=K),a.ringpath(r,t,k,g,G,K,f).attr({fill:R({FCcolor:{cx:r,cy:t,r:k,gradientUnits:"userSpaceOnUse",color:H.join(),alpha:I,ratio:J,radialGradient:!0}}),"stroke-width":l,stroke:P}).shadow({apply:L,opacity:z/100}),
G=Qa;b.tickMarkGroup||(b.tickMarkGroup=a.group("tickmark",f));b.trendMarkerGroup||(b.trendMarkerGroup=a.group("trendmarker",f));b.pointGroup||(b.pointGroup=a.group("pointers",f).translate(r,t));b.pivot||(b.pivot=a.circle(f));b.pivot.attr({cx:r,cy:t,r:d.pivotRadius,fill:R({FCcolor:d.isRadialGradient?{color:d.pivotFillColor,alpha:d.pivotFillAlpha,ratio:d.pivotFillRatio,radialGradient:!0,angle:d.pivotFillAngle,cx:.5,cy:.5,r:"50%"}:{color:d.pivotFillColor,alpha:d.pivotFillAlpha,ratio:d.pivotFillRatio,
radialGradient:!1,angle:d.pivotFillAngle}}),"stroke-width":d.pivotBorderThickness,stroke:d.pivotBorderColor}).shadow({apply:L});f=Math.cos(89.99*db);p=-f;D=0;for(C=c.length;D<C;D+=1)d=c[D],L=d.isZone,s=u+(d.startValue-w)/E*B,m=h(d.radius,k),l=h(d.innerRadius,L?Math.max(g-15,0):g),n=h(d.trendValueDistance,0),H=Math.cos(s),I=Math.sin(s),J=r+m*H,K=t+m*I,H=r+l*H,I=t+l*I,L?(I=u+(d.endValue-w)/E*B,s>I&&(s+=I,I=s-I,s-=I),d.graphic=a.ringpath(r,t,m,l,s,I,b.trendPointGroup).attr({fill:F(d.color,d.alpha),"stroke-width":d.showBorder?
d.thickness:0,stroke:d.borderColor,"stroke-dasharray":d.dashStyle})):d.graphic=a.path(["M",J,K,"L",H,I],b.tickMarkGroup).attr({"stroke-width":d.showBorder?d.thickness:0,stroke:d.borderColor,"stroke-linecap":"round","stroke-dasharray":d.dashStyle}),d.useMarker&&(d.markerElement=a.polypath("3",J,K,d.markerRadius,(-s+Math.PI)/db,0,b.trendMarkerGroup).attr({fill:d.markerColor,"stroke-width":1,stroke:d.markerBorderColor}),""!==d.markerToolText&&d.markerElement.tooltip(d.markerToolText)),d.displayValue!==
O&&(K=(d.endValue+d.startValue)/2,I=u+(K-w)/E*B,H=Math.cos(I),I=Math.sin(I),d.valueInside?(K=l-2-n,m=H>f?bb:H<p?Ha:Ka):(K=m+2+n,m=H>f?Ha:H<p?bb:Ka),J=r+K*H,K=t+K*I,l=d.style,d.textElement=a.text(b.trendMarkerGroup).attr({x:J,y:K,text:d.displayValue,title:d.originalText||"",direction:e,"text-anchor":xa[d.align||m],"vertical-align":La}).css(l),J=d.textElement.getBBox(),J=J.height,K=H>f||H<p?K+(-(J/2)+.4*J*I*(d.valueInside?-1:1)):d.valueInside?K+-(0>I?0:J):K+-(0<I?0:J),d.textElement.attr({y:K}))},drawWidgetValue:function(a,
e){var c=this,d=c.options,b=d.chart,f=d.scale,k=d.series[0],g=c.paper,p=c.elements,m=Number(k.gaugeOriginX),l=Number(k.gaugeOriginY),n=b.gaugeStartAngle,s=b.gaugeEndAngle,b=b.showShadow,d=!1!==d.tooltip.enabled,r=f.min,t=f.max,q=p.pointGroup,B=t-r,L=s-n,w=B/L,v=0,x,y,D,C,E,A,z,F=a&&a.length,H,I=cc(n,s),J=$b(c.container),G=function(a,b){var d;d=[m,l];d=Lb(d[1]-b+J.top,d[0]-a+J.left);c.rotationStartAngle=d;H=c.fusionCharts.getDataJSON()},O=function(){var a=c.fusionCharts,b;(b=a&&a.jsVars)&&(b._rtLastUpdatedData=
a.getDataJSON());ja.raiseEvent("RealTimeUpdateComplete",{data:"&value="+this.updatedValStr,updateObject:{values:[this.updatedValStr]},prevData:H.values,source:"editMode",url:null},a);try{na.FC_ChartUpdated&&na.FC_ChartUpdated(a.id)}catch(d){setTimeout(function(){throw d;},1)}},N=function(a,b,d,e){a=[m,l];d=Lb(a[1]-e+J.top,a[0]-d+J.left);e=c.rotationStartAngle;var g;e=0>d&&0<e?Bb(d)-c.rotationStartAngle:0<d&&0>e?Bb(c.rotationStartAngle)-d:c.rotationStartAngle-d;e=this.y-e*w;a=[];b=0;g=this.index;e<
f.min?e=f.min:e>f.max&&(e=f.max);for(;b<g;b+=1)a.push("");a.push(e);e!==this.value&&c.realtimeUpdate({values:a},{duration:0})&&(this.updatedValStr=a.join("|"),c.rotationStartAngle=d)},Q,S,R,M,P,V,Y,X,aa,ba;void 0===c.dataById&&(c.dataById={});p.pointers||(p.pointers=[]);X=function(a){ma.call(this,c,a)};aa=function(a){var b=this.data("rolloverProperties");ma.call(this,c,a,"DataPlotRollOver");b.enabled&&(a=this.attr("transform"),this.attr("transform",""),this.attr(b.hoverAttr),this.attr("transform",
a))};for(ba=function(a){var b=this.data("rolloverProperties");ma.call(this,c,a,"DataPlotRollOut");b.enabled&&(a=this.attr("transform"),this.attr("transform",""),this.attr(b.outAttr),this.attr("transform",a))};v<F;v+=1)s=a[v],S=s.rolloverProperties||{},da(s.y)||(s.y=r,da(s.toolText)||(s.toolText=r)," "===s.displayValue&&(s.displayValue=r)),void 0!==s.id&&(c.dataById[s.id]={index:v,point:s}),s.index=v,x=h(s.radius,(Number(k.gaugeOuterRadius)+Number(k.gaugeInnerRadius))/2),y=s.baseWidth,A=y/2,D=s.topWidth,
z=D/2,E=s.rearExtension,C=s.baseRadius,s.tooltipPos=[m,l],p.pointers[v]?C=p.pointers[v]:(Q=s.editMode?void 0:s.link,R=["M",x,-z,"L",x,z,-E,A,-E,-A,"Z"],S.hasHoverSizeChange&&(S.outAttr.path=R,M=h(S.hoverRadius,x),P=S.baseHoverWidth,P/=2,V=S.topHoverWidth,V/=2,Y=S.rearHoverExtension,S.hoverAttr.path=["M",M,-V,"L",M,V,-Y,P,-Y,-P,"Z"]),Q={link:Q,value:s.y,displayValue:s.displayValue,toolText:s.toolText},p.pointers[v]=D?g.path(R,q):g.trianglepath(x,z,-E,A,-E,-A,0,C,C,q),s.graphic=C=p.pointers[v],s.graphic.attr({fill:s.color,
stroke:s.borderColor,ishot:!0,"stroke-width":s.borderThickness}).click(X).hover(aa,ba).data("eventArgs",Q).data("rolloverProperties",S),(y||D||s.borderThickness)&&s.graphic.shadow({apply:b}),C._attr=C.attr,C.attr=I,C._Attr={tooltipPos:s.tooltipPos,cx:m,cy:l,toolTipRadius:x-E,color:s.color},x=n/db,C.attr({angle:x}),s.editMode&&(s.index=v,s.graphic.css({cursor:"pointer",_cursor:"hand"}).attr({ishot:!0}),s.graphic.drag(N,G,O,s,s,s))),s.y>=r&&s.y<=t&&(x=(s.y-r)/B*L,x=(n+x)/db,C.attr({angle:x},null,e),
d&&C.tooltip(s.toolText))},drawWidgetLabel:function(a){var e=this.paper,c=this.layers,d=c.datalabels,b=this.options,f=b.series[0],k=b.plotOptions.series.dataLabels.style,g=f.pivotRadius,p=h(parseInt(k.lineHeight,10),12),m=f.valueBelowPivot,l=f.gaugeOriginX,n=b.chart.textDirection,s={fontFamily:k.fontFamily,fontSize:k.fontSize,lineHeight:k.lineHeight,fontWeight:k.fontWeight,fontStyle:k.fontStyle},r,t,q,B=f.gaugeOriginY+(m?p/2+g+2:-(p/2)-g-2);d||(d=c.datalabels=e.group("datalabels").insertAfter(c.dataset));
bc(a,function(a,b){r=a.displayValue;q=a.valueY;t=h(a.valueX,l);da(q)||(q=m?B+p*b:B-p*b);da(r)&&r!==O&&(a.dataLabel?a.dataLabel.attr({text:r,title:a.originalText||""}):a.dataLabel=e.text(d).attr({x:t,y:q,text:r,"text-anchor":xa[Ka],direction:n,title:a.originalText||"",fill:k.color,"text-bound":[k.backgroundColor,k.borderColor,k.borderThickness,k.borderPadding,k.borderRadius,k.borderDash]}).css(s))})},drawScale:function(){var a=this.options,e=a.chart,c=a.scale,d=this.paper,b=this.elements,f=a.series[0],
a=Number(f.gaugeOriginX),k=Number(f.gaugeOriginY),g=e.gaugeStartAngle,p=c.min,m=e.textDirection,l=Number(f.gaugeInnerRadius),n=Number(f.gaugeOuterRadius),f=c.max-p,e=e.gaugeEndAngle-g,s=0,r=c.majorTM,t=c.minorTM,q=b.tickMarkGroup,B,L,w,v,x,y,D=Math.cos,C=Math.sin,E=Number(c.minorTMHeight),A=Number(c.majorTMHeight),z=c.placeTicksInside,s=c.placeValuesInside;x=c.tickValueDistance;var G,H,I=c.limitValues.style,J=c.tickValues.style,O=.75*h(parseInt(I.lineHeight,10),12),R=.75*h(parseInt(J.lineHeight,10),
12);z?(z=l,E=z+E,A=z+A):(z=n,E=z-E,A=z-A);G=s?l-x:n+x;b.majorTM||(b.majorTM=[]);b.tmLabel||(b.tmLabel=[]);s=0;for(l=r.length;s<l;s+=1)n=r[s],B=n.value,x=n.displayValue,y=(B-p)*e/f+g,H=D(y),y=C(y),B=a+z*H,L=k+z*y,w=a+A*H,v=k+A*y,b.majorTM[s]=d.path(["M",B,L,"L",w,v],q).attr({stroke:F(c.majorTMColor,c.majorTMAlpha),"stroke-width":c.majorTMThickness,"stroke-linecap":"round"}),""!==x&&(0===s||s===l-1?(w=I,L=k+G*y+(n.y||0)-O):(w=J,L=k+G*y+(n.y||0)-R),B=a+G*H+(n.x||0),b.tmLabel[s]=d.text(B,L,x,q).attr({"text-anchor":xa[n.align||
Ka],title:n.originalText||"",direction:m,"vertical-align":La}).css(w));b.minorTM||(b.minorTM=[]);s=0;for(l=t.length;s<l;s+=1)B=t[s],y=(B-p)*e/f+g,B=a+z*D(y),L=k+z*C(y),w=a+E*D(y),v=k+E*C(y),b.minorTM[s]=d.path(["M",B,L,"L",w,v],q).attr({stroke:F(c.minorTMColor,c.minorTMAlpha),"stroke-width":c.minorTMThickness,"stroke-linecap":"round"})},realtimeUpdate:function(a,e){if(a===this.lastUpdatedObj)return!1;var c=this.options,d=c[P],b=c.series,f=this.numberFormatter,b=b&&b[0]&&b[0].data,k=a.values||[],g=
a.labels||[],h=a.toolTexts||[],m=a.showLabels||[],l=b&&b.length||0,n,s,r=null,t=[],u,B;e=e||c.plotOptions.series.animation;if(l){for(;l--;)u={},c={},B=!1,n=b[l],s=n.id&&(n.id.toLowerCase&&n.id.toLowerCase()||n.id),void 0!==k[l]&&""!==k[l]&&(B=!0)||s&&a[s]?(c.value=u.value=B?k[l]:a[s],r=u.displayvalue=u.tooltext=f.dataLabels(u.value),u.hasNewData=!0):u.value=n.y,g[l]&&(u.displayvalue=g[l],u.hasNewData=!0),"0"==m[l]&&(u.displayvalue=O,u.hasNewData=!0),s=G($(q(n._tooltext,d.tooltext))),h[l]&&(s=G($(h[l])),
u.hasNewData=!0),u.hasNewData&&(t[l]=u,V(n,{y:u.value,displayValue:n.displayValue||"1"===m[l]?u.displayvalue:O,toolText:void 0!==s?Xa(s,[1,2],{formattedValue:r},c):r}));t.length&&(this.lastUpdatedObj=a,this.drawWidgetValue(b,e),this.drawWidgetLabel(b,e));return Boolean(t.length)}}},z["renderer.widgetbase"]);z("renderer.funnel",{type:"funnel",pyramidFunnelShape:function(){var a={y:!0,R1:!0,R2:!0,h:!0,r3dFactor:!0,color:!0,opacity:!0,fill:!0,stroke:!0,strokeColor:!0,strokeAlpha:!0,"stroke-width":!0},
e=function(a,c,d,e,h,m,l,n,s,r){qb(a)&&(c=a.y,d=a.R1,e=a.R2,h=a.h,m=a.r3dFactor,l=a.is2D,r=a.isHollow,s=a.isFunnel,a=a.x);n=a-d;var t=a+d,q=a-e,B=a+e,v=c+h,w,z;if(l)w={silhuette:["M",n,c,"L",t,c,B,v,q,v,"Z"]},s||(w.lighterHalf=["M",n,c,"L",a,c,a,v,q,v,"Z"],w.darkerHalf=["M",a,c,"L",t,c,B,v,a,v,"Z"]);else if(s){q=a;B=c;c=d||.01;t=e||.01;a=r;n=c*m;m*=t;h=B+h;v=la(t,2)-la(c,2);d=-2*(la(t,2)*B-la(c,2)*h);e=la(c*m,2)+la(t*B,2)-la(t*n,2)-la(c*h,2);r=pb(la(d,2)-4*v*e);e=(-d+r)/(2*v);v=(-d-r)/(2*v);e<h&&
e>B?z=v:v<h&&v>B&&(z=e);e=pb((la(z-B,2)-la(n,2))/la(c,2));d=-e;v={x:ra(la(c,2)*e/(z-B)*100)/100,y:ra(100*(la(n,2)/(z-B)+B))/100};e={x:ra(la(t,2)*e/(z-h)*100)/100,y:ra(100*(la(m,2)/(z-h)+h))/100};r={x:ra(la(c,2)*d/(z-B)*100)/100,y:ra(100*(la(n,2)/(z-B)+B))/100};z={x:ra(la(t,2)*d/(z-h)*100)/100,y:ra(100*(la(m,2)/(z-h)+h))/100};v={topLeft:r,bottomLeft:z,topRight:v,bottomRight:e};for(w in v)if(isNaN(v[w].x)||isNaN(v[w].y))v[w].x="topLeft"===w||"bottomLeft"===w?-c:c,v[w].y="bottomRight"===w||"bottomLeft"===
w?h:B;h=v.topLeft;d=v.bottomLeft;w=q+h.x;z=q+v.topRight.x;B=q+d.x;q+=v.bottomRight.x;h=h.y;d=d.y;v=["A",c,n,0,0,0,z,h];e=["A",c,n,0,1,1,z,h];r=["A",t,m,0,0,1,B,d];t=["A",t,m,0,1,0,B,d];t={front:["M",w,h].concat(v,["L",q,d],r,["Z"]),back:["M",w,h].concat(e,["L",q,d],t,["Z"]),silhuette:["M",w,h].concat(e,["L",q,d],r,["Z"])};a||(t.top=["M",w,h].concat(v,["L",z,h],["A",c,n,0,1,0,w,h],["Z"]));w=t}else w=d*m,z=e*m,h=Ia(5,d),d=Ia(2,2*w),e=Ia(2,d),m=e/m,w={top:["M",n,c,"L",a,c+w,t,c,a,c-w,"Z"],front:["M",
n,c,"L",a,c+w,t,c,B,v,a,v+z,q,v,"Z"],topLight:["M",n,c+.5,"L",a,c+w+.5,a,c+w-d,n+m,c,"Z"],topLight1:["M",t,c+.5,"L",a,c+w+.5,a,c+w-e,t-m,c,"Z"],silhuette:["M",n,c,"L",a,c-w,t,c,B,v,a,v+z,q,v,"Z"],centerLight:["M",a,c+w,"L",a,v+z,a-5,v+z,a-h,c+w,"Z"],centerLight1:["M",a,c+w,"L",a,v+z,a+5,v+z,a+h,c+w,"Z"]};return w},c=function(b,c){var d,g,p=this,m,l,n=!1,s=!1,r=this._3dAttr,q;Za(b)&&da(c)&&(d=b,b={},b[d]=c);if(Za(b))p=a[b]?this._3dAttr[b]:this._attr(b);else{for(d in b)g=b[d],a[d]?(r[d]=g,"fill"===
d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),yb.test(g)?(l=new sb(g),m=l.get("hex"),l=100*l.get("a")):g&&g.FCcolor?(m=g.FCcolor.color.split(v)[0],l=g.FCcolor.opacity.split(v)[0]):vb.test(g)&&(m=g.replace(kb,nb),l=h(r.opacity,100)),r.color=m,r.opacity=l,s=!0):"color"===d||"opacity"===d?(r.fill=R(F(r.color,h(r.opacity,100))),s=!0):"stroke"===d||"strokeColor"===d||"strokeAlpha"===d?r.is2D&&("stroke"===d?(g&&g.linearGradient&&g.stops&&g.stops[0]&&(g=g.stops[0][1]),yb.test(g)?(l=new sb(g),
m=l.get("hex"),l=100*l.get("a")):g&&g.FCcolor?(m=g.FCcolor.color.split(v)[0],l=g.FCcolor.opacity.split(v)[0]):vb.test(g)&&(m=g.replace(kb,nb),l=h(r.opacity,100)),r.strokeColor=m,r.strokeAlpha=l):r.stroke=F(r.strokeColor,h(r.strokeAlpha,100)),r.isFunnel?this.funnel2D.attr("stroke",r.stroke):this.borderElement.attr("stroke",r.stroke)):"stroke-width"===d?r.is2D&&(r.isFunnel?this.funnel2D.attr(d,g):this.borderElement.attr(d,g)):n=!0):this._attr(d,g);r.is2D?(n&&(m=e(r.x,r.y,r.R1,r.R2,r.h,r.r3dFactor,r.is2D),
p.shadowElement.attr({path:m.silhuette}),r.isFunnel?p.funnel2D.attr({path:m.silhuette}):(p.lighterHalf.attr({path:m.lighterHalf}),p.darkerHalf.attr({path:m.darkerHalf}),p.borderElement.attr({path:m.silhuette}))),s&&(r.isFunnel?p.funnel2D.attr("fill",R(F(r.color,h(r.opacity,100)))):(m=ha(r.color,80),l=W(r.color,80),p.lighterHalf.attr("fill",R(F(l,h(r.opacity,100)))),p.darkerHalf.attr("fill",R(F(m,h(r.opacity,100))))))):(n&&(m=e(r.x,r.y,r.R1,r.R2,r.h,r.r3dFactor,r.is2D),p.shadowElement.attr("path",
m.silhuette),r.isFunnel?(p.front.attr("path",m.front),p.back.attr("path",m.back),p.toptop&&m.top&&p.toptop.attr("path",m.top)):(p.front.attr("path",m.front),p.toptop.attr("path",m.top),p.topLight.attr("path",m.topLight),p.topLight1.attr("path",m.topLight1),p.centerLight.attr("path",m.centerLight),p.centerLight1.attr("path",m.centerLight1))),s&&(m=r.color,l=r.opacity,r.isFunnel?(s=W(m,60),n=ha(m,60),p.back.attr("fill",R({FCcolor:{color:n+v+s+v+m,alpha:l+v+l+v+l,ratio:"0,60,40",angle:0}})),p.front.attr("fill",
R({FCcolor:{color:m+v+s+v+n,alpha:l+v+l+v+l,ratio:"0,40,60",angle:0}})),p.toptop&&p.toptop.attr("fill",R({FCcolor:{color:s+v+n,alpha:l+v+l,ratio:"0,100",angle:-65}}))):(s=W(m,80),d=W(m,70),n=ha(m,80),g="0,"+l,q=m+v+d,r=5/(r.R1*r.r3dFactor)*100,p.centerLight.attr("fill",R({FCcolor:{color:q,alpha:g,ratio:"0,100",angle:0}})),p.centerLight1.attr("fill",R({FCcolor:{color:q,alpha:g,ratio:"0,100",angle:180}})),p.topLight.attr("fill",R({FCcolor:{color:d+v+d+v+m+v+m,alpha:l+v+l+v+0+v+0,ratio:"0,50,"+r+v+(50-
r),angle:-45}})),p.topLight1.attr("fill",R({FCcolor:{color:d+v+m+v+n,alpha:l+v+l+v+l,ratio:"0,50,50",angle:0}})),p.front.attr("fill",R({FCcolor:{color:m+v+m+v+n+v+n,alpha:l+v+l+v+l+v+l,ratio:"0,50,0,50",angle:0}})),p.toptop.attr("fill",R({FCcolor:{color:s+v+m+v+n+v+n,alpha:l+v+l+v+l+v+l,ratio:"0,25,30,45",angle:-45}})))))}return p},d=function(){var a=this.shadowElement;d&&a.shadow.apply(a,arguments)};return function(a,f,k,g,p,m,l,n,s,r,q){var u=this.layers.dataset;qb(a)&&(f=a.y,k=a.R1,g=a.R2,p=a.h,
m=a.r3dFactor,l=a.gStr,n=a.is2D,s=a.renderer,q=a.isHollow,r=a.isFunnel,a=a.x);m=h(m,.15);a={x:a,y:f,R1:k,R2:g,h:p,r3dFactor:m,is2D:n,isHollow:q,isFunnel:r,renderer:s};f=e(a);l=s.group(l,u);l.Shapeargs=f;l.shadowElement=s.path(f.silhuette,l).attr({fill:ka,stroke:"none"});l._attr=l.attr;l.attr=c;l.shadow=d;l._3dAttr=a;r?n?l.funnel2D=s.path(f.silhuette,l):(l.back=s.path(f.back,l).attr({"stroke-width":0,stroke:"none"}),l.front=s.path(f.front,l).attr({"stroke-width":0,stroke:"none"}),f.top&&(l.toptop=
s.path(f.top,l).attr({"stroke-width":0,stroke:"none"}))):n?(l.lighterHalf=s.path(f.lighterHalf,l).attr({"stroke-width":0}),l.darkerHalf=s.path(f.darkerHalf,l).attr({"stroke-width":0}),l.borderElement=s.path(f.silhuette,l).attr({fill:ka,stroke:"none"})):(l.front=s.path(f.front,l).attr({"stroke-width":0}),l.centerLight=s.path(f.centerLight,l).attr({"stroke-width":0}),l.centerLight1=s.path(f.centerLight1,l).attr({"stroke-width":0}),l.toptop=s.path(f.top,l).attr({"stroke-width":0}),l.topLight=s.path(f.topLight,
l).attr({"stroke-width":0}),l.topLight1=s.path(f.topLight1,l).attr({"stroke-width":0}));return l}}(),getPlotData:function(a){var e=this.datasets[0],c=e.data[a],d=e.userData||(e.userData=[]),e="y name color alpha borderColor borderWidth link displayValue toolText".split(" "),b;if(d[a])a=d[a];else{a=d[a]={};for(d=0;d<e.length;d++)a[b=e[d]]=c[b];a.value=a.y;a.label=a.name;delete a.y;delete a.name}return a},translate:function(){function a(){var b=[],c=0;this.set=function(a,d){c++;b[a]=d};this.get=function(a){return b[a]};
this.getAll=function(){return b};this.mergeWith=function(c){var d,e,f=b.slice(0);if(!(c instanceof Array))if(c instanceof a)c=c.getAll();else return;for(d in c)e=c[d],f[d]||(f[d]=e);return f};this.getEffectiveLength=function(){return c}}function e(a){this.distributionLength=a;this.distributedMatrix=[];this.altDistributedMatrix=[];this.nonDistributedMatrix={};this.forcePushObj={};this.flags={exhaustion:!1}}function c(a,c){var e,f,h,m=!1,p=0,r;e={flag:!1,point:void 0,sLabel:void 0,setAll:function(a,
b,c){this.flag=a;this.point=b;this.sLabel=c}};var s={point:void 0,sLabel:void 0,set:function(a,b){return function(c,d){var e,f;c.dontPlot||(this.point&&this.sLabel?(e=a(this.point,this.sLabel),f=a(c,d),b(e,f)&&(this.point=c,this.sLabel=d)):(this.point=c,this.sLabel=d))}}},M={},S={},ba={},X={};ja.extend(M,e);ja.extend(S,e);M.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX-(e.oriTextWidth-e.width),d=b.labelX-(c.oriTextWidth-c.width),a>d&&(this.point=b,this.sLabel=
c)):(this.point=b,this.sLabel=c)};S.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX+e.oriTextWidth,d=b.labelX+c.oriTextWidth,a<d&&(this.point=b,this.sLabel=c)):(this.point=b,this.sLabel=c)};ja.extend(ba,s);ja.extend(X,s);ba.set=function(){return s.set.apply(ba,[function(a){return a.labelX},function(a,b){return a>b?!0:!1}])}();X.set=function(){return s.set.apply(X,[function(a,b){return a.labelX+b.oriTextWidth},function(a,b){return a<b?!0:!1}])}();e=0;for(f=a.length;e<
f;e++)if(h=a[e])(h.x=e)?(c&&(m=!m),h.isSliced&&(I=h.x,1<I&&!G[I]&&(G[I]=!0,J+=1),I<n&&(G[I+1]=!0,J+=1)),K?(z=1==k.useSameSlantAngle?q?l*h.y/q:l:q?l*pb(h.y/q):l,w=u*(g[e-1].y-h.y)||1):(C+=w=u*g[e].y,z=l*(1-C*H)),h.shapeArgs={x:O,y:A,R1:v,R2:z,h:w||1,r3dFactor:x,isHollow:y,gStr:"point",is2D:D,renderer:E,isFunnel:!0},b.smartLabel.setStyle(h.style),h.oriText=h.displayValue,r=r=b.smartLabel.getSmartText(h.displayValue,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),R?(h.labelAline="middle",h.labelX=
O,h.labelY=(D?A:A+x*v)+w/2+N):(h.labelAline="start",(h.alignmentSwitch=m)?(h.labelX=O-(F+z+3+r.width),ba.set(h,r)):(h.labelX=O+F+z+3,X.set(h,r)),h.distributionFactor=h.distributionFactor||0,p=h.distributionFactor*Q,h.labelY=A+N+w+p),c&&(m&&0>h.labelX?(p=h.labelX+r.width,p=b.smartLabel.getSmartText(h.displayValue,p,Number.POSITIVE_INFINITY,!0),h.labelX=2,h.isLabelTruncated=!0,h.displayValue=p.text,h.virtualWidth=p.maxWidth,M.setAll(!0,h,p)):!m&&h.labelX+r.width>b.chartWidth&&(p=b.smartLabel.getSmartText(h.displayValue,
b.chartWidth-h.labelX,Number.POSITIVE_INFINITY,!0),h.isLabelTruncated=!0,h.displayValue=p.text,h.virtualWidth=p.maxWidth,S.setAll(!0,h,p))),h.pWidth=h.virtualWidth=h.virtualWidth||r.width,A+=w,v=z):(h.oriText=h.displayValue,z=1==k.useSameSlantAngle?q?l*g[0].y/q:l:q?l*pb(g[0].y/q):l,h.labelWidht>2*z&&!c?(h.labelAline="start",h.labelX=0):(h.labelAline="middle",h.labelX=O),r=2*F,h.displayValue=b.smartLabel.getSmartText(h.displayValue,2*z+r,Number.POSITIVE_INFINITY,!0).text,h.labelY=(D?A:A-x*v)-N-3),
h.plotX=O,h.plotY=A;d(a,{lTrimmedInfo:M,rTrimmedInfo:S,lLargestLabel:ba,rLargestLabel:X})}function d(a,c){var d=0,e=c.lTrimmedInfo,f=c.rTrimmedInfo,g=c.lLargestLabel,h=c.rLargestLabel,k=0;if(!e.flag||!f.flag){if(f.flag){if(!g.point)return;d=f.sLabel;d=d.oriTextWidth-d.width;g=g.point.labelX-3;d=-Math.ceil(Math.min(d,g))}else if(e.flag){if(!h.point)return;d=e.sLabel;d=d.oriTextWidth-d.width;g=aa-(h.point.labelX+h.sLabel.width);d=Math.ceil(Math.min(d,g))}if(d)for(h=0,e=a.length;h<e;h++)g=a[h],!h&&K?
g.labelX+=d:(g.alignmentSwitch?(f=0>d?b.smartLabel.getSmartText(g.oriText,g.pWidth,Number.POSITIVE_INFINITY,!0):b.smartLabel.getSmartText(g.oriText,g.pWidth+d,Number.POSITIVE_INFINITY,!0),g.isLabelTruncated&&(k=f.width-g.pWidth)):f=0<d?b.smartLabel.getSmartText(g.oriText,g.pWidth,Number.POSITIVE_INFINITY,!0):b.smartLabel.getSmartText(g.oriText,g.pWidth-d,Number.POSITIVE_INFINITY,!0),g.virtualWidth=f.width,g.displayValue=f.text,g.labelX+=d-k,g.shapeArgs&&(g.shapeArgs.x+=d),k=0);else for(h=0,e=a.length;h<
e;h++)g=a[h],0<(k=g.labelX+g.pWidth-aa)&&(g.lOverflow=k,g.labelX-=k,b.isLegendRight?g.displayValue=b.smartLabel.getSmartText(g.oriText,g.pWidth-k,Number.POSITIVE_INFINITY,!0).text:(g.lOverflow=k,g.labelX-=k))}}var b=this,f=b.options,k=b.datasets[0],g=k.data,p=b.canvasWidth,m=b.canvasHeight,l=p/2,n=g.length-1,s=g[0],r=s&&g[n].y,q=s&&g[0].y,u,v,z,w,A=b.canvasTop,x=k.yScale,y=k.isHollow,D=k.is2d,C=0,E=b.paper,G={},K=k.streamlinedData,F=k.labelDistance,H=.8/m,I,J=0,O=l+b.canvasLeft,R=k.showLabelsAtCenter,
N=.3*h(parseInt(f.plotOptions.series.dataLabels.style.fontSize,10),10),Q=Number(b.options.plotOptions.series.dataLabels.style.lineHeight.split(/px/)[0]),S,P=0,M,ea,V,Y,X,aa=b.chartWidth-3,s=0,ba;Object.keys||(Object.keys=function(){var a=Object.prototype.hasOwnProperty,b=!{toString:null}.propertyIsEnumerable("toString"),c="toString toLocaleString valueOf hasOwnProperty isPrototypeOf propertyIsEnumerable constructor".split(" "),d=c.length;return function(e){if("object"!==typeof e&&("function"!==typeof e||
null===e))throw new TypeError("Object.keys called on non-object");var f=[],g;for(g in e)a.call(e,g)&&f.push(g);if(b)for(g=0;g<d;g++)a.call(e,c[g])&&f.push(c[g]);return f}}());Array.prototype.forEach||(Array.prototype.forEach=function(a,b){var c,d,e,f,g;if(null==this)throw new TypeError(" this is null or not defined");e=Object(this);f=e.length>>>0;if("function"!==typeof a)throw new TypeError(a+" is not a function");1<arguments.length&&(c=b);for(d=0;d<f;)d in e&&(g=e[d],a.call(c,g,d,e)),d++});if(K){u=
m/(q-r);M=0;for(r=g.length;M<r;M++)s+=g[M].y;M=s?m/s:m}else u=q?m/q:m;v=l;b.globalMinXShift=0;b.alignmentType={};try{Object.defineProperty(b.alignmentType,"default",{configurable:!1,enumerable:!0,get:function(){return 1}})}catch(oa){b.alignmentType["default"]=1}try{Object.defineProperty(b.alignmentType,"alternate",{configurable:!1,enumerable:!0,get:function(){return 2}})}catch(fa){b.alignmentType.alternate=2}a.prototype.constructor=a;e.prototype.constructor=e;e.prototype.push=function(a,b){this.nonDistributedMatrix[b]=
this.nonDistributedMatrix[b]||[];this.nonDistributedMatrix[b].push(a)};e.prototype.forcePush=function(a,b){this.forcePushObj[b]=a};e.prototype.distribute=function(b){var c,d=!0,e=new a,f=new a,h=new a,k=new a,l=this.flags,m,n,p,r,s,q=0;if(b){if(0<g.length-this.distributionLength)for(n in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[n],r=1;r<c.length;r++)s=c[r],s.dontPlot=!0,s.displayValue=""}else if(0<g.length-2*this.distributionLength)for(n in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[n],
r=1;r<c.length-1;r++)s=c[r],s.dontPlot=!0,s.displayValue="";if(g.length>this.distributionLength&&!b){l.exhaustion=!0;for(n in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[n],r=0,b=c.length;r<b;r++)s=c[r],s.dontPlot?d?m=h:m=k:(d?m=e:m=f,m.getEffectiveLength()>parseInt(n,10)?s.distributionFactor=m.getEffectiveLength()-1-n:s.distributionFactor=0),m.set(q++,s),d=!d;this.distributedMatrix=e.mergeWith(h);this.altDistributedMatrix=f.mergeWith(k)}else{for(p in this.nonDistributedMatrix)for(c=
this.nonDistributedMatrix[p],r=0,b=c.length;r<b;r++)s=c[r],s.dontPlot?m=h:(m=e,m.getEffectiveLength()>parseInt(p,10)?s.distributionFactor=m.getEffectiveLength()-1-p:s.distributionFactor=0),m.set(q++,s);this.distributedMatrix=e.mergeWith(h)}};e.prototype.getDistributedResult=function(){var a,c=[],d=(a=b.options.legend)&&"right"===a.align&&1||0;a.width?d&&(aa-=a.width+f.chart.spacingRight):d=0;b.isLegendRight=d;this.distribute(d);d?(a=b.alignmentType["default"],c.push(this.distributedMatrix)):(a=this.flags.exhaustion?
b.alignmentType.alternate:b.alignmentType["default"],this.flags.exhaustion?[].push.call(c,this.distributedMatrix,this.altDistributedMatrix):c.push(this.distributedMatrix));return{forceMatrix:this.forcePushObj,suggestion:a,matrix:c}};S=new e(Math.floor(m/Q));ba=K?M:u;g.forEach(function(a,b){var c;c=0;!K&&0===b||!K&&b===g.length-1?S.forcePush(a,b):(c=a.y*ba,P+=a.y*ba,c=P-c+c/2,c=Math.floor(c/Q),S.push(a,c))});m=S.getDistributedResult();g.length=0;if(void 0===m.matrix[1])[].push.apply(g,m.matrix[0]);
else for(M=m.matrix[0],ea=m.matrix[1],r=Math.max(M.length,ea.length),s=0;s<r;s++)Y=M[s],V=ea[s],g.push(Y?Y:V);if(0<Object.keys(m.forceMatrix).length)for(X in m.forceMatrix)[].splice.apply(g,[parseInt(X,10),0].concat(m.forceMatrix[X]));switch(m.suggestion){case b.alignmentType["default"]:c(g,!1);break;case b.alignmentType.alternate:b.labelAlignment=b.alignmentType.alternate,l=p/3,b.canvasLeft=b.chartWidth/2-l,O=b.canvasLeft+l,v=l,c(g,!0)}k._temp={slicingGapPosition:G,noOfGap:J}},drawPlotFunnel:function(a,
e){this.translate();var c=this,d=a.items,b=a.data,f=c.options,h=f.plotOptions,g=c.elements.plots[0],p=h.series.dataLabels,m=c.paper,l=f.tooltip||{},l=l&&!1!==l.enabled,n,h=h.series.animation.duration||0,s=c.layers,r=s.tracker,s=s.datalabels||(s.datalabels=m.group("datalabels").insertAfter(s.dataset)),q=g.showLabelsAtCenter,u=e._temp||{},v=u.slicingGapPosition,u=u.noOfGap,z=e.SlicingDistance,w,A=z/2,x=0,y=f.chart.issliced,f=f.chart.textDirection,D=p.style,D={fontFamily:D.fontFamily,fontSize:D.fontSize,
lineHeight:D.lineHeight,fontWeight:D.fontWeight,fontStyle:D.fontStyle},C=function(a,b){return function(d){a.graphic.attr(b);ma.call(this,c,d,"DataPlotRollOver")}},E=function(a,b){return function(d){a.graphic.attr(b);ma.call(this,c,d,"DataPlotRollOut")}},G,K,F,H,I,J,O,R;if(!(F=c.datasets[0].streamlinedData&&2>b.length)){u&&(w=Ia(1.5*A,z/u),x=A);z=function(a){return function(){c.legendClick(a,!0,!1)}};A=function(a){return function(){return c.getEventArgs(a)}};R=function(a){return function(){a.attr({visibility:"visible"})}};
b&&b.length||(b=[]);g.singletonCase=F&&2==b.length||1==b.length;e.data||(e.data=[]);for(O=b.length;O--;)H=b[O],G=H.y,K=H.displayValue,n=H.toolText,J=!!H.link,I=y?0:H.isSliced,null!==G&&void 0!==G&&H.shapeArgs?((F=d[O])||(e.data[O].plot=F=d[O]={value:G,displayValue:K,sliced:!!I,chart:c,plotItems:d,seriesData:g,cursor:J?"pointer":"",x:H.x,index:O,graphic:c.pyramidFunnelShape(H.shapeArgs).attr({fill:H.color,opacity:0,"stroke-width":H.borderWidth,stroke:H.borderColor}),dataLabel:m.text(s).attr({text:K,
title:H.originalText||"",ishot:!0,cursor:J?"pointer":"",direction:f,x:0,y:0}).css(D),trackerObj:m.path(r)},e.data[O].legendClick=z(F),e.data[O].getEventArgs=A(F),G=K={},H.hoverEffects&&(G={color:H.color,opacity:H.alpha,"stroke-width":H.borderWidth,stroke:H.borderColor},K=H.rolloverProperties,K={color:K.color,opacity:K.alpha,"stroke-width":K.borderWidth,stroke:K.borderColor}),!H.doNotSlice&&F.trackerObj.click(c.slice,F),F.trackerObj.mouseup(c.plotMouseUp,F),F.trackerObj.hover(C(F,K),E(F,G)),F.dataLabel.hover(C(F,
K),E(F,G)),l&&F.trackerObj.tooltip(n),!H.doNotSlice&&F.dataLabel.click(c.slice,F),F.dataLabel.mouseup(c.plotMouseUp,F),q&&0===O&&"funnel"==c.type&&g.streamlinedData||(F.connector=m.path(s).attr({"stroke-width":p.connectorWidth,stroke:p.connectorColor,ishot:!0,cursor:J?"pointer":""}).click(c.slice,F).mouseup(c.plotMouseUp,F).hover(C(F,K),E(F,G))),F.dy=0,u&&(x&&(F._startTranslateY=n="t0,"+x,F.dy=F.DistanceAvailed=x,F.graphic.attr({transform:n}),F.dataLabel.attr({transform:n}),F.connector.attr({transform:n})),
v[H.x]&&(x-=w))),h?(s.attr({visibility:"hidden"}),F.graphic.animate({opacity:H.alpha},h,"easeIn",O===b.length-1&&R(s))):F.graphic.attr({opacity:H.alpha})):e.data[O].plot=d[O]={dataLabel:m.text(s).attr({text:K,title:H.originalText||"",direction:f,x:0,y:0}).css(D)};c.drawDataLabels();c.drawTracker(a,e)}},slice:function(a,e,c,d){var b=this.chart;a=b.datasets[0].SlicingDistance/2;c=e=0;var f=this.plotItems,h=f.length,g,p,m,l,n,s,r,q;s={hcJSON:{chart:{issliced:!1},series:[]}};s.hcJSON.series[0]={data:m=
[]};d=this.sliced=da(d)?d:!this.sliced;r=-a;q=function(a,c){return function(){ja.raiseEvent("SlicingEnd",{slicedState:a,data:b.getPlotData(c)},b.logic.chartInstance)}};for(e=0;e<h;e+=1)p=f[e],p!==this?(p.sliced=!1,m[e]={isSliced:!1},l=!1):(m[e]={isSliced:d},l=!0,n=e),p.graphic&&(g=p.dy,g=-g,d&&(p.x<this.x?(g+=r,c+=1):p.x==this.x?c?e==h-1&&(g+=.5*a):g+=.5*-a:g+=a),p.graphic.attr({transform:"t0,"+p.dy}),p.dy+=g,g={transform:"...t0,"+g},l&&ja.raiseEvent("SlicingStart",{slicedState:!d,data:b.getPlotData(n)},
b.logic.chartInstance),p.graphic.animate(g,300,"easeIn",l&&q(d,n)),p.dataLabel&&p.dataLabel.animate(g,300,"easeIn"),p.connector&&p.connector.animate(g,300,"easeIn"),p.trackerObj&&p.trackerObj.animate(g,300,"easeIn"),1==e&&!f[0].graphic&&f[0].dataLabel&&f[0].dataLabel.animate(g,300,"easeIn"));V(b.logic.chartInstance.jsVars._reflowData,s,!0)},drawDataLabels:function(){var a=this.datasets[0],e=a.data,c=this.options.plotOptions.series.dataLabels,d=this.elements.plots[0].items,b,f,k,g,p=a.showLabelsAtCenter,
m=Number(c.style.lineHeight.split(/px/)[0]),l=h(parseInt(c.style.fontSize,10),10),n=.3*l,s=.3*m,r,q,u,v,z=a.labelDistance,w,A,x={};for(v=e.length-1;0<=v;--v)g=e[v],A=g.displayValue,c=d[v],f=g.labelY,b=g.labelX,k=g.labelAline,w=g.style,l=h(parseInt(w.fontSize,10),10),n=.3*l,l={fontFamily:w.fontFamily,fontSize:w.fontSize,lineHeight:w.lineHeight,fontWeight:w.fontWeight,fontStyle:w.fontStyle},p?f=0===v&&"funnel"==this.type&&a.streamlinedData?f-s+(d[1].DistanceAvailed||0):f-s+(c.DistanceAvailed||0):(u=
f-n-g.distributionFactor*m,n=f-n,q=x[g.alignmentSwitch],void 0!==r&&void 0!==q&&q-n<m&&(f=n=q-m),g.displayValue&&(x[g.alignmentSwitch]=n),r=g.plotY,this.labelAlignment===this.alignmentType.alternate?g.alignmentSwitch?(q=b+3+g.virtualWidth,g=q+z+g.distributionFactor*this.globalMinXShift):(q=b-3,g=q-(z-(g.lOverflow||0))-g.distributionFactor*this.globalMinXShift):(q=b-3,g=q-(z-(g.lOverflow||0))-g.distributionFactor*this.globalMinXShift),"undefined"===typeof A||A===O||0===v&&"funnel"==this.type&&a.streamlinedData||
(g=["M",g,u,"L",q,n],c.connector.attr({path:g,"shape-rendering":u===n&&1>n?"crisp":""})),f=0===v&&"funnel"==this.type&&a.streamlinedData?f+(d[1].DistanceAvailed||0):n+(c.DistanceAvailed||0)),A!==O&&c.dataLabel.attr({transform:"t"+b+","+f,"text-anchor":xa[k],text:A,fill:w.color,"font-size":w.fontSize,"text-bound":[w.backgroundColor,w.borderColor,w.borderThickness,w.borderPadding,w.borderRadius,w.borderDash]}).css(l)},drawTracker:function(a){var e=this.paper,c=a.items;a=a.data;for(var d,b,f=+new Date,
h=a.length-1,g,p=this.layers.tracker,m;0<=h;--h)g=c[h],m=a[h],b=g.trackerObj,g.graphic&&(d=g.graphic.Shapeargs.silhuette,m={link:m.link,value:m.y,displayValue:m.displayValue,categoryLabel:m.categoryLabel,toolText:m.toolText},b?b.attr({path:d,isTracker:f,fill:ka,stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}):g.trackerObj=e.path(d,p).attr({isTracker:f,fill:ka,stroke:"none",transform:"t0,"+(g._startTranslateY||0),ishot:!0,cursor:g.cursor}),b.data("eventArgs",m))},getEventArgs:function(a){return a.chart.getPlotData(a.index)},
legendClick:function(a){var e=a.chart;e.slice.call(e.plots[0].items[a.index])},plotMouseUp:function(a){ma.call(this.trackerObj,this.chart,a)}},z["renderer.piebase"]);z("renderer.pyramid",{type:"pyramid",translate:function(){function a(){var b=[],c=0;this.set=function(a,d){c++;b[a]=d};this.get=function(a){return b[a]};this.getAll=function(){return b};this.mergeWith=function(c){var d,e,f=b.slice(0);if(!(c instanceof Array))if(c instanceof a)c=c.getAll();else return;for(d in c)e=c[d],f[d]||(f[d]=e);
return f};this.getEffectiveLength=function(){return c}}function e(a){this.distributionLength=a;this.distributedMatrix=[];this.altDistributedMatrix=[];this.nonDistributedMatrix={};this.flags={exhaustion:!1}}function c(a,c){var e,f,g,h,k=0,m=!1;e={flag:!1,point:void 0,sLabel:void 0,setAll:function(a,b,c){this.flag=a;this.point=b;this.sLabel=c}};var p={point:void 0,sLabel:void 0,set:function(a,b){return function(c,d){var e,f;c.dontPlot||(this.point&&this.sLabel?(e=a(this.point,this.sLabel),f=a(c,d),
b(e,f)&&(this.point=c,this.sLabel=d)):(this.point=c,this.sLabel=d))}}},J={},N={},M={},O={};ja.extend(J,e);ja.extend(N,e);J.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX-(e.oriTextWidth-e.width),d=b.labelX-(c.oriTextWidth-c.width),a>d&&(this.point=b,this.sLabel=c)):(this.point=b,this.sLabel=c)};N.setAll=function(a,b,c){var d=this.point,e=this.sLabel;this.flag=a;d&&e?(a=d.labelX+e.oriTextWidth,d=b.labelX+c.oriTextWidth,a<d&&(this.point=b,this.sLabel=c)):(this.point=
b,this.sLabel=c)};ja.extend(M,p);ja.extend(O,p);M.set=function(){return p.set.apply(M,[function(a){return a.labelX},function(a,b){return a>b?!0:!1}])}();O.set=function(){return p.set.apply(O,[function(a,b){return a.labelX+b.oriTextWidth},function(a,b){return a<b?!0:!1}])}();e=0;for(f=a.length;e<f;e++)if(g=e,h=a[e])h.x=g,c&&(m=!m),h.isSliced&&((x=h.x)&&!y[x]&&(y[x]=!0,D+=1),x<n&&(y[x+1]=!0,D+=1)),h.oriText=h.displayValue,b.smartLabel.setStyle(h.style),g=b.smartLabel.getSmartText(h.displayValue,Number.POSITIVE_INFINITY,
Number.POSITIVE_INFINITY),A+=h.y,s=l*A/w,r=G*h.y,h.shapeArgs={x:K,y:q,R1:I,R2:s,h:r,r3dFactor:u,gStr:"point",is2D:v,renderer:z},E?(h.labelAline="middle",h.labelX=K,h.labelY=(v?q:q+u*I)+r/2+F):(h.labelAline="start",(h.alignmentSwitch=m)?(h.labelX=K-((I+s)/2+3+C+g.width),h.labelX-=h.distributionFactor*b.globalMinXShift,M.set(h,g)):(h.labelX=K+C+(I+s)/2+3,h.labelX+=h.distributionFactor*b.globalMinXShift,O.set(h,g)),c&&(m&&0>h.labelX?(k=h.labelX+g.width,k=b.smartLabel.getSmartText(h.displayValue,k,Number.POSITIVE_INFINITY,
!0),h.labelX=2,h.displayValue=k.text,h.virtualWidth=k.width,J.setAll(!0,h,k)):!m&&h.labelX+g.width>b.chartWidth&&(k=b.smartLabel.getSmartText(h.displayValue,b.chartWidth-h.labelX,Number.POSITIVE_INFINITY,!0),h.displayValue=k.text,h.virtualWidth=k.width,N.setAll(!0,h,k))),h.pWidth=h.virtualWidth||g.width,k=h.distributionFactor*H,h.labelY=q+F+r/2+k),q+=r,h.plotX=K,h.plotY=q-r/2,I=s,h.virtualWidth=h.virtualWidth||g.width;d(a,{lTrimmedInfo:J,rTrimmedInfo:N,lLargestLabel:M,rLargestLabel:O})}function d(a,
c){var d=0,e=c.lTrimmedInfo,f=c.rTrimmedInfo,g=c.lLargestLabel,h=c.rLargestLabel;if(!e.flag||!f.flag){if(f.flag){if(!g.point)return;d=f.sLabel;d=d.oriTextWidth-d.width;h=g.point.labelX-3;d=-Math.ceil(Math.min(d,h))}else if(e.flag){if(!h.point)return;g=e.point;d=e.sLabel;d=d.oriTextWidth-d.width;h=N-(h.point.labelX+h.sLabel.width);d=Math.ceil(Math.min(d,h));g.labelX-=d}if(d)for(g=0,e=a.length;g<e;g++)h=a[g],f=h.alignmentSwitch?0>d?b.smartLabel.getSmartText(h.oriText,h.pWidth,Number.POSITIVE_INFINITY,
!0):b.smartLabel.getSmartText(h.oriText,h.pWidth+d,Number.POSITIVE_INFINITY,!0):0<d?b.smartLabel.getSmartText(h.oriText,h.pWidth,Number.POSITIVE_INFINITY,!0):b.smartLabel.getSmartText(h.oriText,h.pWidth-d,Number.POSITIVE_INFINITY,!0),h.virtualWidth=f.width,h.displayValue=f.text,h.labelX+=d,h.shapeArgs.x+=d;else for(g=0,e=a.length;g<e;g++)h=a[g],0<(d=h.labelX+h.pWidth-N)&&(b.isLegendRight?h.displayValue=b.smartLabel.getSmartText(h.oriText,h.pWidth-d,Number.POSITIVE_INFINITY,!0).text:(h.lOverflow=d,
h.labelX-=d))}}var b=this,f=b.options,k=b.datasets[0],g=k.data,p=b.canvasWidth,m=b.canvasHeight,l=p/2,n=g.length-1,s,r,q=b.canvasTop,u=k.yScale,v=k.is2d,z=b.paper,w=k.valueSum?k.valueSum:1,A=0,x,y={},D=0,C=k.labelDistance,E=k.showLabelsAtCenter,F=.3*h(parseInt(f.plotOptions.series.dataLabels.style.fontSize,10),10),K=0,G=m/w,H=Number(b.options.plotOptions.series.dataLabels.style.lineHeight.split(/px/)[0]),I=0,J,O=0,R,N=b.chartWidth-3,Q,S,P,M,V;Array.prototype.forEach||(Array.prototype.forEach=function(a,
b){var c,d,e,f,g;if(null==this)throw new TypeError(" this is null or not defined");e=Object(this);f=e.length>>>0;if("function"!==typeof a)throw new TypeError(a+" is not a function");1<arguments.length&&(c=b);for(d=0;d<f;)d in e&&(g=e[d],a.call(c,g,d,e)),d++});R=Math.atan(l/2/m);b.globalMinXShift=Math.floor(H/Math.cos(R));b.alignmentType={};try{Object.defineProperty(b.alignmentType,"default",{configurable:!1,enumerable:!0,get:function(){return 1}})}catch(W){b.alignmentType["default"]=1}try{Object.defineProperty(b.alignmentType,
"alternate",{configurable:!1,enumerable:!0,get:function(){return 2}})}catch(Y){b.alignmentType.alternate=2}a.prototype.constructor=a;e.prototype.constructor=e;e.prototype.push=function(a,b){this.nonDistributedMatrix[b]=this.nonDistributedMatrix[b]||[];this.nonDistributedMatrix[b].push(a)};e.prototype.distribute=function(b){var c,d=!0,e=new a,f=new a,h=new a,k=new a,l=this.flags,m,n,p,r,q,s=0;if(b){if(0<g.length-this.distributionLength)for(n in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[n],
r=1;r<c.length;r++)q=c[r],q.dontPlot=!0,q.displayValue=""}else if(0<g.length-2*this.distributionLength)for(n in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[n],r=1;r<c.length-1;r++)q=c[r],q.dontPlot=!0,q.displayValue="";if(g.length>this.distributionLength&&!b){l.exhaustion=!0;for(n in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[n],r=0,b=c.length;r<b;r++)q=c[r],q.dontPlot?d?m=h:m=k:(d?m=e:m=f,m.getEffectiveLength()>parseInt(n,10)?q.distributionFactor=m.getEffectiveLength()-
1-n:q.distributionFactor=0),m.set(s++,q),d=!d;this.distributedMatrix=e.mergeWith(h);this.altDistributedMatrix=f.mergeWith(k)}else{for(p in this.nonDistributedMatrix)for(c=this.nonDistributedMatrix[p],r=0,b=c.length;r<b;r++)q=c[r],q.dontPlot?m=h:(m=e,m.getEffectiveLength()>parseInt(p,10)?q.distributionFactor=m.getEffectiveLength()-1-p:q.distributionFactor=0),m.set(s++,q);this.distributedMatrix=e.mergeWith(h)}};e.prototype.getDistributedResult=function(){var a,c=[],d=(a=b.options.legend)&&"right"===
a.align&&1||0;a.width?d&&(N-=a.width+f.chart.spacingRight):d=0;b.isLegendRight=d;this.distribute(d);d?(a=b.alignmentType["default"],c.push(this.distributedMatrix)):(a=this.flags.exhaustion?b.alignmentType.alternate:b.alignmentType["default"],this.flags.exhaustion?[].push.call(c,this.distributedMatrix,this.altDistributedMatrix):c.push(this.distributedMatrix));return{suggestion:a,matrix:c}};J=new e(Math.floor(m/H));g.forEach(function(a){var b=0,b=a.y*G;O+=a.y*G;J.push(a,Math.floor((O-b+b/2)/H))});m=
J.getDistributedResult();g.length=0;if(void 0===m.matrix[1])[].push.apply(g,m.matrix[0]);else for(Q=m.matrix[0],S=m.matrix[1],P=Math.max(Q.length,S.length),R=0;R<P;R++)V=Q[R],M=S[R],g.push(V?V:M);switch(m.suggestion){case b.alignmentType["default"]:K=b.canvasLeft+l;c(g,!1);break;case b.alignmentType.alternate:b.labelAlignment=b.alignmentType.alternate,l=p/3,b.canvasLeft=b.chartWidth/2-l,K=b.canvasLeft+l,c(g,!0)}k._temp={slicingGapPosition:y,noOfGap:D}},drawPlotPyramid:function(a,e){this.translate();
var c=this,d=a.items,b=a.data,f=c.options,h=f.plotOptions,g=c.elements.plots[0],p=c.datasets[0],m=h.series.dataLabels,l=g.showLabelsAtCenter,h=h.series.animation.duration||0,n=c.paper,q=f.tooltip||{},q=q&&!1!==q.enabled,r,t=c.layers,u=t.tracker,t=t.datalabels||(t.datalabels=n.group("datalabels").insertAfter(t.dataset)),v=p._temp||{},z=v.slicingGapPosition,v=v.noOfGap,w=p.SlicingDistance,A,x=w/2,p=0,y=f.chart.issliced,f=f.chart.textDirection,D=m.style,D={fontFamily:D.fontFamily,fontSize:D.fontSize,
lineHeight:D.lineHeight,fontWeight:D.fontWeight,fontStyle:D.fontStyle},C=function(a,b){return function(d){a.graphic.attr(b);ma.call(this,c,d,"DataPlotRollOver")}},E=function(a,b){return function(d){a.graphic.attr(b);ma.call(this,c,d,"DataPlotRollOut")}},F,K,G,H,I,J,O,R;J=function(a){return function(){c.legendClick(a,!0,!1)}};O=function(a){return function(){return c.getEventArgs(a)}};R=function(a){return function(){a.attr({visibility:"visible"})}};v&&(A=Ia(1.5*x,w/v),p=x);b&&b.length||(b=[]);g.singletonCase=
1==b.length;for(I=b.length;I--;)x=b[I],F=x.y,K=x.displayValue,r=x.toolText,G=!!x.link,H=y?0:x.isSliced,null!==F&&void 0!==F&&x.shapeArgs?((w=d[I])||(e.data[I].plot=w=d[I]={value:F,sliced:!!H,cursor:G?"pointer":"",chart:c,plotItems:d,seriesData:g,x:x.x,index:I,graphic:c.pyramidFunnelShape(x.shapeArgs).attr({fill:x.color,opacity:h?0:x.alpha,"stroke-width":x.borderWidth,stroke:x.borderColor}),dataLabel:n.text(t).attr({text:K,title:x.originalText||"",direction:f,ishot:!0,cursor:G?"pointer":"",x:0,y:0}).css(D),
trackerObj:n.path(u)},F=K={},x.hoverEffects&&(F={color:x.color,opacity:x.alpha,"stroke-width":x.borderWidth,stroke:x.borderColor},K=x.rolloverProperties,K={color:K.color,opacity:K.alpha,"stroke-width":K.borderWidth,stroke:K.borderColor}),e.data[I].legendClick=J(w),e.data[I].getEventArgs=O(w),!x.doNotSlice&&w.trackerObj.click(c.slice,w),w.trackerObj.mouseup(c.plotMouseUp,w).hover(C(w,K),E(w,F)),q&&w.trackerObj.tooltip(r),!x.doNotSlice&&w.dataLabel.click(c.slice,w),w.dataLabel.mouseup(c.plotMouseUp,
w).hover(C(w,K),E(w,F)),l&&0===I&&"funnel"==c.type&&g.streamlinedData||(w.connector=n.path(t).attr({"stroke-width":m.connectorWidth,stroke:m.connectorColor,ishot:!0,cursor:G?"pointer":""}).click(c.slice,w).mouseup(c.plotMouseUp,w).hover(C(w,K),E(w,F))),w.dy=0,v&&(p&&(w._startTranslateY=r="t,0,"+p,w.dy=w.DistanceAvailed=p,w.graphic.attr({transform:r}),w.dataLabel.attr({transform:r}),w.connector.attr({transform:r})),z[x.x]&&(p-=A))),h&&(t.attr("visibility","hidden"),w.graphic.animate({opacity:x.alpha},
h,"easeIn",I===b.length-1&&R(t)))):e.data[I].plot=d[I]={dataLabel:n.text(t).attr({text:K,title:x.originalText||"",direction:f,x:0,y:0}).css(D)};c.drawDataLabels();c.drawTracker(a,e)}},z["renderer.funnel"]);z("renderer.sparkline",{callbacks:[function(){if(!this.options.nativeMessage){var a=this.options,e=this.layers,c=this.paper,d=a.series[0]&&a.series[0].data&&a.series[0].data[0],b=e.limitlabels,f=this.smartLabel,a=a.chart,h=a.highLowValue.highLabel,g=a.highLowValue.lowLabel,p=a.valuePadding,m=this.canvasHeight/
2,l;d&&(b||(b=e.limitlabels=c.group("limitlabels").insertAfter(e.dataset)),b.translate(this.canvasLeft,this.canvasTop),da(a.openValue.label)&&(d.openValue=c.text(-p,m,a.openValue.label,b).attr({direction:a.textDirection,"text-anchor":xa[bb]}).css(a.openValue.style)),e=a.closeValue.label,l=this.canvasWidth+p,da(e)&&(d.closeValue=c.text(this.canvasWidth+p,m,e,b).attr({direction:a.textDirection,"text-anchor":xa[Ha]}).css(a.closeValue.style),f.setStyle(a.closeValue.style),l+=f.getOriSize(e).width+p),
da(h)&&(c.text(l,m,"[",b).attr({direction:a.textDirection,"text-anchor":xa[Ha]}).css(a.highLowValue.style),f.setStyle(a.highLowValue.style),l+=f.getOriSize("[").width+1,d.highLabel=c.text(l,m,h,b).attr({direction:a.textDirection,"text-anchor":xa[Ha]}).css(a.highLowValue.style).css({color:a.highColor}),l+=f.getOriSize(h).width+1),da(g)&&(c.text(l,m,"|",b).attr({direction:a.textDirection,"text-anchor":xa[Ha]}).css(a.highLowValue.style),l+=f.getOriSize("|").width+1,d.dataLabel=c.text(l,m,g,b).attr({direction:a.textDirection,
"text-anchor":xa[Ha]}).css(a.highLowValue.style).css({color:a.lowColor}),l+=f.getOriSize(g).width+1,c.text(l,m,"]",b).attr({direction:a.textDirection,"text-anchor":xa[Ha]}).css(a.highLowValue.style)))}}]},z["renderer.cartesian"]);z("renderer.sparkwinloss",{callbacks:[function(){if(!this.options.nativeMessage){var a=this.options,e=this.layers,c=this.paper,d=a.series[0]&&a.series[0].data&&a.series[0].data[0],b=e.limitlabels,f=a.plotOptions.series.dataLabels&&a.plotOptions.series.dataLabels.style||{},
a=a.chart,h=a.closeValue.label,g={fontFamily:f.fontFamily,fontSize:f.fontSize,lineHeight:f.lineHeight,fontWeight:f.fontWeight,fontStyle:f.fontStyle};d&&(b||(b=e.limitlabels=c.group("limitlabels").insertAfter(e.dataset)),b.translate(this.canvasLeft,this.canvasTop),da(h)&&h!==O&&(d.dataLabel=c.text(this.canvasWidth+a.valuePadding,this.canvasHeight/2,h,b).attr({"text-anchor":xa[Ha],fill:f.color,direction:a.textDirection,"text-bound":[f.backgroundColor,f.borderColor,f.borderThickness,f.borderPadding,
f.borderRadius,f.borderDash]}).css(g)))}}]},z["renderer.cartesian"]);z("renderer.realtimecartesian",{updatePlotColumn:function(a,e,c){var d=this,b=a.data,f=b.length,k=a.items,g=a.graphics||(a.graphics=[]),p=d.paper,m=d.layers,l=d.options,n=l.chart,q=!1!==(l.tooltip||{}).enabled,r=d.definition.chart,l=l.plotOptions.series,t=d.xAxis[e.xAxis||0],u=d.yAxis[e.yAxis||0],v=d.logic.isStacked,z=e.numColumns||1,w=e.columnPosition||0,A=n.canvasBorderOpacity=za.color(n.plotBorderColor).opacity,x=d.canvasBorderWidth,
A=n.isCanvasBorder||(n.isCanvasBorder=0!==A&&0<x),y,x=!1===e.visible?"hidden":"visible",D=n.overlapColumns,C=t.getAxisPosition(0),E=t.getAxisPosition(1)-C,F=r&&r.plotspacepercent,K=l.groupPadding,G=l.maxColWidth,C=h(r&&r.plotpaddingpercent),F=(1-.01*F)*E||Ia(E*(1-2*K),G*z),E=F/2,F=F/z,D=Ia(F-1,1<z?D||void 0!==C?0<C?F*C/100:0:4:0),z=F-D,w=w*F-E+D/2,E=u.max,F=u.min,D=0<E&&0<=F,C=0>=E&&0>F,E=0>E&&0>F?E:0<E&&0<F?F:0,n=h(n.useRoundEdges,0),H=m.dataset=m.dataset||p.group("dataset-orphan"),m=m.tracker,F=
d.canvasTop,K=d.canvasLeft,G=d.canvasBottom,I=d.canvasRight,J,P,V,N,Q,S,W,M,ea,Z,Y,X,aa,ba,$=h(r.variableindex,1),fa=-1,r=function(a,b){return function(c){a.attr(b);ma.call(this,d,c,"dataplotrollover")}};aa=function(a,b){return function(c){a.attr(b);ma.call(this,d,c,"dataplotrollout")}};ba=function(a){ma.call(this,d,a)};v&&(Z=H.shadows||(H.shadows=p.group("shadows",H).toBack()));H=H.column=H.column||p.group("columns",H);if(Y=c.numUpdate||0)for(c=0;c<Y;c+=1)(J=k.shift())&&delete J._state,J&&delete J.tracker,
k.push(J);for(c=0;c<f;c+=1){W=c+Y;P=b[c];S=P.y;J=h(P.x,c);M=t.getAxisPosition(J)+w;J=k[c];Q=P.toolText;V=P.link;N=P.displayValue||O;y=Wb(P.borderWidth)||0;ea=parseInt($)?J&&J.index||(fa+1)%f:c;X={index:ea,link:V,value:S,displayValue:P.displayValue,categoryLabel:P.categoryLabel,toolText:Q,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible};W>=f&&(J||(J=k[c]={index:ea,value:S,width:z,graphic:null,dataLabel:null,tracker:null}),J&&(J.valueBelowPlot=0>S),W=ea={},P.hoverEffects&&(W={fill:R(P.color),
stroke:R(P.borderColor),"stroke-width":y,"stroke-dasharray":P.dashStyle},ea=P.rolloverProperties,ea={fill:R(ea.color),stroke:R(ea.borderColor),"stroke-width":ea.borderWidth,"stroke-dasharray":ea.dashStyle}),J.graphic||(J.graphic=p.rect(H).attr({visibility:x}),g.push(J.graphic),J.graphic.shadow(l.shadow&&P.shadow,Z)),J.graphic.attr({r:n,fill:R(P.color||""),stroke:R(P.borderColor||""),"stroke-width":y,"stroke-dasharray":P.dashStyle,"stroke-linejoin":"miter"}),J.tracker||(J.tracker=p.rect(m).attr({stroke:ka,
fill:ka,visibility:x}),g.push(J.tracker)),J._attrHoverInFn&&J.tracker.unhover(J._attrHoverInFn,J._attrHoverOutFn),J._attrClickFn&&J.tracker.unclick(J._attrClickFn),J.tracker.attr({height:0,width:0,r:n,"stroke-width":y,stroke:ka,cursor:V?"pointer":"",ishot:!0}).data("eventArgs",X).click(J._attrClickFn=ba).hover(J._attrHoverInFn=r(J.graphic,ea),J._attrHoverOutFn=aa(J.graphic,W)).tooltip(Q));if(null===S)J&&(J.graphic&&J.graphic.attr({height:0,"stroke-width":0}),J.tracker&&J.tracker.attr({height:0,"stroke-width":0}),
J.dataLabel&&J.dataLabel.attr({text:""}));else if(W=P.previousY,ea=u.getAxisPosition(W||E),P=u.getAxisPosition(S+(W||0)),Q=Bb(P-ea),0>S&&(P=ea),Xb(P)<=F&&(Q-=F-P-+A,P=F-+A),ra(P+Q)>=G&&(Q-=ra(P+Q)-G+ +!!y+ +A),1>=y&&(ra(M)<=K&&(z+=M,M=K-y/2+ +!!y-+A,z-=M),ra(M+z)>=I&&(z=I-M+y/2-+!!y+ +A)),ea=za.crispBound(M,P,z,Q,y),M=ea.x,P=ea.y,z=ea.width,Q=ea.height,A&&!da(W)&&(C?(y=P-(F-y/2),Q+=y,P-=y):D&&(Q=G-P+y/2)),1>=Q&&(Q=1,P+=0>S?0:-Q),J&&J.graphic&&(J.graphic.attr({x:M,y:P,width:z,height:Q}).data("BBox",
ea),J.tracker.data("eventArgs",X),J.dataLabel&&J.dataLabel.attrs.text!==N&&J.dataLabel.attr({text:N}),d.drawPlotColumnLabel(a,e,c,M,P),V||q))!v&&Q<Eb&&(P-=(Eb-Q)/2,Q=Eb),J.tracker&&J.tracker.attr({x:M,y:P,width:z,height:Q});fa=J&&(fa=J.index)||fa}return a},updatePlotLine:function(a,e,c){var d=this,b=d.paper,f=d.options,k=f.chart,g=f.plotOptions.series,p=a.items,m=a.graphics||(a.graphics=[]),l,n=d.xAxis[e.xAxis||0],q=d.yAxis[e.yAxis||0],r=!1!==(f.tooltip||{}).enabled,f=a.data,t=!1===e.visible?"hidden":
"visible",u=f.length,z=g.connectNullData,A,w,F,x,y,D,C,E=null,G,K=e.lineWidth,P=e.color,H,I,J,V,W,N,Q,S,Z,M,ea=d.layers,$=ea.dataset=ea.dataset||b.group("dataset-orphan"),ea=ea.tracker,Y,X,aa,ba,oa,fa,ha,ga,da,ia,ja,la,pa,qa;ia=function(a){ma.call(this,d,a)};ja=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}};la=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}};qa=function(b,c,f,g,h,l,k,n,p){return function(){var l=f.imageUrl,q=f.imageScale,
s=f.imageAlpha,u=k.imageHoverAlpha,v=k.imageHoverScale,w=this.width*q*.01,x=this.width*v*.01;Z={x:b-this.width*q*.005,y:c-this.height*q*.005,width:w,height:this.height*q*.01,alpha:s};M={x:b-this.width*v*.005,y:c-this.height*v*.005,width:x,height:this.height*v*.01,alpha:u};u=x>w?M:Z;g.graphic&&g.graphic.attr(Z).attr("src",l).css({opacity:.01*s}).data("alwaysInvisible",0===q).data("setRolloverProperties",k).data("setRolloverAttr",M).data("setRolloutAttr",Z).data("anchorRadius",q).data("anchorHoverRadius",
v);if(p||r||k)g.tracker.attr(u).attr({cursor:p?"pointer":"",stroke:ka,"stroke-width":f.lineWidth,fill:ka,ishot:!0,visibility:t}).data("eventArgs",h),d.drawTracker&&d.drawTracker.call(d,a,e,n);(Y=g.dataLabel=d.drawPlotLineLabel(a,e,n,b,c))&&m.push(Y)}};pa=function(b,c,f,g,h,k,l,n){return function(){(Y=g.dataLabel=d.drawPlotLineLabel(a,e,n,b,c))&&m.push(Y)}};X=$.line||($.line=b.group("line-connector",$));aa=a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",X));ba=a.anchorShadowLayer||
(a.anchorShadowLayer=b.group("anchor-shadow",X));$=a.lineLayer||(a.lineLayer=b.group("connector",X));X=a.anchorLayer||(a.anchorLayer=b.group("anchors",X));if(ha=c.numUpdate||0)for(c=0;c<ha;c+=1)(l=p.shift())&&delete l._state,p.push(l);for(c=0;c<u;c+=1)if(fa=c+ha,A=f[c],D=A.y,y=h(A.x,c),y=n.getAxisPosition(y),x=A.toolText,w=A.link,F=A.displayValue||O,I=A.marker||{},J=V=I.radius||0,oa=I.shadow,W=I.lineWidth||0,N=I.fillColor||"",Q=I.lineColor||"",l=I.imageUrl,da=!!l,l=p[c],l._state||(l._state={}),fa>=
u&&(l||(l=p[c]={index:c,value:D,graphic:null,connector:null,dataLabel:null,tracker:null}),l.graphic&&"image"===l.graphic.type&&!da&&(l.graphic&&l.graphic.remove(),l.tracker&&l.tracker.remove(),l.graphic=l.tracker=null),l.graphic||(l.graphic=(da?b.image(X):b.polypath(X)).attr({visibility:t}),m.push(l.graphic)),da||l.graphic.attr({fill:R(N),"stroke-width":W,stroke:R(Q)}),l.connector||(l.connector=b.path($).attr({visibility:t}),l.connector.shadow(g.shadow&&A.shadow,aa),m.push(l.connector)),l.connector.attr({"stroke-dasharray":H,
stroke:R(G||P),"stroke-width":K,"stroke-linecap":"round","stroke-linejoin":2<K?"round":"miter"}),l.tracker||(l.tracker=(da?b.rect(ea):b.circle(ea)).attr({stroke:ka,fill:ka,visibility:t}),m.push(l.tracker)),V=Ca(V,S&&S.radius||0,k.anchorTrackingRadius),ga={index:c,link:w,value:A.y,displayValue:A.displayValue,categoryLabel:A.categoryLabel,toolText:A.toolText,id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},l._attrClickFn&&l.tracker.unclick(l._attrClickFn),l._attrHoverInFn&&l.tracker.unhover(l._attrHoverInFn,
l._attrHoverOutFn),l.tracker.attr({r:V,"stroke-width":W,stroke:ka,cursor:w?"pointer":"",ishot:!0}).data("eventArgs",ga).click(l._attrClickFn=ia).hover(l._attrHoverInFn=ja(l),l._attrHoverOutFn=la(l)).tooltip(x)),l&&(l.index=c),null===D)l&&(l.graphic&&l.graphic.attr({polypath:[2,0,0,0,0,0],"stroke-width":0}),l.dataLabel&&l.dataLabel.attr({text:""}),l.connector&&l.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0}),l.tracker&&l.tracker.attr({r:0,"stroke-width":0})),0===z&&(E=null);else{G=q.getAxisPosition(D);
if(I&&I.enabled)if(H=I.symbol.split("_"),D=l.graphic,Z=M={},S=A.rolloverProperties,da)fa>=u?(H=new na.Image,H.onload=qa(y,G,I,l,ga,x,S,c,w),H.onerror=pa(y,G,I,l,ga,x,S,c),H.src=I.imageUrl):(M=D.data("setRolloverAttr"),Z=D.data("setRolloutAttr"),M&&(M.x=y-.5*M.width,M.y=G-.5*M.height,D&&D.stop(),l.dataLabel&&l.dataLabel.stop(),Z.x=y-.5*Z.width,Z.y=G-.5*Z.height,D.attr(Z),l.tracker&&l.tracker.attr({x:Z.x,y:Z.y,fill:ka})));else{if(S=A.rolloverProperties)Z={polypath:[H[1]||2,y,G,J,I.startAngle,0],fill:R(I.fillColor),
"stroke-width":I.lineWidth,stroke:R(I.lineColor)},S=A.rolloverProperties,M={polypath:[S.sides||2,y,G,S.radius,S.startAngle,S.dip],fill:R(S.fillColor),"stroke-width":S.lineWidth,stroke:R(S.lineColor)};D&&D.attr({polypath:[H[1]||2,y,G,J,I.startAngle,0],visibility:0===J?"hidden":t}).data("isRealtime",!0).data("alwaysInvisible",0===J).data("setRolloverProperties",S).data("setRolloverAttr",M).data("setRolloutAttr",Z).data("anchorRadius",J).data("anchorHoverRadius",S&&S.radius).shadow(oa||!1,ba);(w||r)&&
l.tracker&&l.tracker.attr({cx:y,cy:G})}l.dataLabel&&l.dataLabel.attrs.text!=F&&l.dataLabel.attr({text:F});Y=d.drawPlotLineLabel(a,e,c,y,G);null!==E?(C=["M",C,v,E],C.push("L",y,v,G),(E=l.connector)&&E.attr({path:C,"stroke-width":K})):l.connector&&l.connector.attr({path:"M-9999,-9999Lh-1","stroke-width":0});C=y;E=G;G=A.color;H=A.dashStyle||e.dashStyle}return a},updatePlotArea:function(a,e,c){var d=this,b=d.paper,f=d.options,k=f.chart,g=d.logic,p=f.plotOptions.series,m=a.items,l=a.graphics||(a.graphics=
[]),n,q=d.xAxis[e.xAxis||0],r=d.yAxis[e.yAxis||0],t=r.axisData.reversed,u=g.isStacked,z=!1!==(f.tooltip||{}).enabled,f="0"===d.definition.chart.drawfullareaborder,g=a.data,A=!1===e.visible?"hidden":"visible",w=g.length,F=p.connectNullData,x,y,D,C,E,G,K,P=r.max,H=r.min,t=r.getAxisPosition(0<P&&0<H?t?P:H:0>P&&0>H?t?H:P:t?P:0),P=null,I,H=e.lineWidth,J=e.dashStyle,V=R(e.lineColor),W=0,N,Q,S,Z,M,ea,$,Y=[],X=[],aa=[],ba=d.layers,da=ba.dataset=ba.dataset||b.group("dataset-orphan"),ba=ba.tracker,fa,ga,ha,
ia,ja,la,pa,qa,ra,ua,wa,xa,ya,za;r.yBasePos=t;ua=function(a){ma.call(this,d,a)};wa=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOver",a,d)}};xa=function(a){return function(b){d.hoverPlotAnchor(this,b,"DataPlotRollOut",a,d)}};ya=function(b,c,f,g,h,k,m,n,p){return function(){var k=f.imageUrl,q=f.imageScale,r=f.imageAlpha,s=m.imageHoverAlpha,t=m.imageHoverScale,u=this.width*q*.01,v=this.width*t*.01;ea={x:b-this.width*q*.005,y:c-this.height*q*.005,width:u,height:this.height*q*
.01,alpha:r};$={x:b-this.width*t*.005,y:c-this.height*t*.005,width:v,height:this.height*t*.01,alpha:s};s=v>u?$:ea;g.graphic&&g.graphic.attr(ea).attr("src",k).css({opacity:.01*r}).data("alwaysInvisible",0===q).data("setRolloverProperties",m).data("setRolloverAttr",$).data("setRolloutAttr",ea).data("anchorRadius",q).data("anchorHoverRadius",t);if(p||z||m)g.tracker.attr(s).attr({cursor:p?"pointer":"",stroke:ka,"stroke-width":f.lineWidth,fill:ka,ishot:!0,visibility:A}).data("eventArgs",h),d.drawTracker&&
d.drawTracker.call(d,a,e,n);(ia=g.dataLabel=d.drawPlotLineLabel(a,e,n,b,c))&&l.push(ia)}};za=function(b,c,f,g,h,k,m,n){return function(){(ia=g.dataLabel=d.drawPlotLineLabel(a,e,n,b,c))&&l.push(ia)}};u&&(ha=da.shadows||(da.shadows=b.group("shadows",da).toBack()));fa=da.line||(da.line=b.group("line-connector",da));a.lineShadowLayer||(a.lineShadowLayer=b.group("connector-shadow",fa));da=a.anchorShadowLayer||(a.anchorShadowLayer=b.group("anchor-shadow",fa));u=a.lineLayer||(a.lineLayer=b.group("connector",
fa));fa=a.anchorLayer||(a.anchorLayer=b.group("anchors",fa));if(la=c.numUpdate||0)for(c=0;c<la;c+=1)(n=m.shift())&&delete n._state,m.push(n);for(c=0;c<w;c+=1)ja=c+la,x=g[c],E=x.y,n=h(x.x,c),I=q.getAxisPosition(n),C=x.toolText,y=x.link,D=x.displayValue||O,N=x.marker||{},Q=K=N.radius||0,ga=N.shadow,G=N.lineWidth||0,S=N.fillColor||"",Z=N.lineColor||"",qa=N.imageUrl,ra=!!qa,n=m[c],ja>=w&&(n||(n=m[c]={index:c,graphic:null,connector:null,dataLabel:null,tracker:null}),n.graphic&&"image"===n.graphic.type&&
!ra&&(n.graphic&&n.graphic.remove(),n.tracker&&n.tracker.remove(),n.graphic=n.tracker=null),n.graphic||(n.graphic=(ra?b.image(fa):b.polypath(fa)).attr({visibility:A}),l.push(n.graphic)),ra||n.graphic.attr({fill:R(S),"stroke-width":G,stroke:R(Z)}),n.tracker||(n.tracker=(ra?b.rect(ba):b.circle(ba)).attr({stroke:ka,fill:ka,visibility:A}),l.push(n.tracker)),K=Ca(K,M&&M.radius||0,k.anchorTrackingRadius),pa={index:c,link:y,value:x.y,displayValue:x.displayValue,categoryLabel:x.categoryLabel,toolText:x.toolText,
id:a.userID,datasetIndex:a.index,datasetName:a.name,visible:a.visible},n._attrHoverInFn&&n.tracker.unhover(n._attrHoverInFn,n._attrHoverOutFn),n._attrClickFn&&n.tracker.unclick(n._attrClickFn),n.tracker.attr({r:K,"stroke-width":G,cursor:y?"pointer":"",ishot:!0}).data("eventArgs",pa).click(n._attrClickFn=ua).hover(n._attrHoverInFn=wa(n),n._attrHoverOutFn=xa(n)).tooltip(C)),n&&(n.index=c),null===E?(n&&(n.graphic&&n.graphic.attr({polypath:[2,0,0,0,0,0],"stroke-width":0}),n.dataLabel&&n.dataLabel.attr({text:""}),
n.tracker&&n.tracker.attr({r:0,"stroke-width":0})),0===F&&(P=null,0<W&&(1===W?Y.splice(-8,8):(Y=Y.concat(X),Y.push("Z")),X=[]))):(y=x.link,G=x.previousY,K=(K=r.getAxisPosition(G)||null)||t,E=r.getAxisPosition(E+(G||0)),N&&N.enabled&&(G=N.symbol.split("_"),S=n.graphic,ea=$={},M=x.rolloverProperties,ra&&S?ja>=w?(ja=new na.Image,ja.onload=ya(I,E,N,n,pa,C,M,c,y),ja.onerror=za(I,E,N,n,pa,C,M,c),ja.src=qa):($=S.data("setRolloverAttr"),ea=S.data("setRolloutAttr"),S&&S.stop(),n.dataLabel&&n.dataLabel.stop(),
$&&($.x=I-.5*$.width,$.y=E-.5*$.height,ea.x=I-.5*ea.width,ea.y=E-.5*ea.height,S.attr(ea),n.tracker&&n.tracker.attr({x:ea.x,y:ea.y,fill:ka}))):(M&&(ea={polypath:[G[1]||2,I,E,Q,N.startAngle,0],fill:R(N.fillColor),"stroke-width":N.lineWidth,stroke:R(N.lineColor)},M=x.rolloverProperties,$={polypath:[M.sides||2,I,E,M.radius,M.startAngle,M.dip],fill:R(M.fillColor),"stroke-width":M.lineWidth,stroke:R(M.lineColor)}),S&&S.attr({polypath:[G[1]||2,I,E,Q,N.startAngle,0],visibility:0===Q?"hidden":A}).data("isRealtime",
!0).data("alwaysInvisible",0===Q).data("setRolloverProperties",M).data("setRolloverAttr",$).data("setRolloutAttr",ea).data("anchorRadius",Q).data("anchorHoverRadius",M&&M.radius).shadow(ga||!1,da),(y||z)&&n.tracker&&n.tracker.attr({cx:I,cy:E}))),n.dataLabel&&n.dataLabel.attrs.text!==D&&n.dataLabel.attr({text:D}),ia=d.drawPlotLineLabel(a,e,c,I,E),null===P?(aa.push("M",I,v,E),Y.push("M",I,v,K),W=0):aa.push("L",I,v,E),Y.push("L",I,v,E),X.unshift("L",I,v,K),W++,P=E);0<W&&(1===W?Y.splice(-8,8):(Y=Y.concat(X),
Y.push("Z")));a.graphic||(a.graphic=b.path(void 0).attr({"stroke-dasharray":J,"stroke-width":f?0:H,stroke:V,"stroke-linecap":"round","stroke-linejoin":2<H?"round":"miter"}).shadow(p.shadow&&x.shadow,ha),l.push(a.graphic));a.graphic.attr({path:Y});f&&(a.connector||(a.connector=b.path(u).attr({"stroke-dasharray":J,"stroke-width":H,stroke:V,"stroke-linecap":"round","stroke-linejoin":2<H?"round":"miter"}),l.push(a.connector)),a.connector.attr({path:aa}));return a}},z["renderer.cartesian"])},[3,2,0,"sr2"]]);
/*
 Carbon Theme v0.0.3
 FusionCharts JavaScript Library

 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>
*/
FusionCharts.register("theme",{name:"carbon",theme:{base:{chart:{paletteColors:"#444444,#666666,#888888,#aaaaaa,#cccccc,#555555,#777777,#999999,#bbbbbb,#dddddd",labelDisplay:"auto",baseFontColor:"#333333",baseFont:"Helvetica Neue,Arial",captionFontSize:"14",subcaptionFontSize:"14",subcaptionFontBold:"0",showBorder:"0",bgColor:"#ffffff",showShadow:"0",canvasBgColor:"#ffffff",showCanvasBorder:"0",useplotgradientcolor:"0",useRoundEdges:"0",showPlotBorder:"0",showAlternateHGridColor:"0",showAlternateVGridColor:"0",
toolTipColor:"#ffffff",toolTipBorderThickness:"0",toolTipBgColor:"#000000",toolTipBgAlpha:"80",toolTipBorderRadius:"2",toolTipPadding:"5",legendBgAlpha:"0",legendBorderAlpha:"0",legendShadow:"0",legendItemFontSize:"10",legendItemFontColor:"#666666",legendCaptionFontSize:"9",divlineAlpha:"100",divlineColor:"#999999",divlineThickness:"1",divLineIsDashed:"1",divLineDashLen:"1",divLineGapLen:"1",scrollheight:"10",flatScrollBars:"1",scrollShowButtons:"0",scrollColor:"#cccccc",showHoverEffect:"1",valueFontSize:"10",
showXAxisLine:"1",xAxisLineThickness:"1",xAxisLineColor:"#999999"},dataset:[{}],trendlines:[{}]},geo:{chart:{showLabels:"0",fillColor:"#444444",showBorder:"1",borderColor:"#eeeeee",borderThickness:"1",borderAlpha:"50",entityFillhoverColor:"#444444",entityFillhoverAlpha:"80",connectorColor:"#cccccc",connectorThickness:"1.5",markerFillHoverAlpha:"90"}},pie2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",captionPadding:"15"},data:function(c,a,b){a=window.Math;return{alpha:100-
(50<b?a.round(100/a.ceil(b/10)):20)*a.floor(c/10)}}},doughnut2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",centerLabelFontSize:"12",centerLabelBold:"1",centerLabelFontColor:"#333333",captionPadding:"15"},data:function(c,a,b){a=window.Math;return{alpha:100-(50<b?a.round(100/a.ceil(b/10)):20)*a.floor(c/10)}}},line:{chart:{lineThickness:"2"}},spline:{chart:{lineThickness:"2"}},column2d:{chart:{paletteColors:"#444444",valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},
bar2d:{chart:{paletteColors:"#444444",valueFontColor:"#ffffff",placeValuesInside:"1"}},column3d:{chart:{paletteColors:"#444444",valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},bar3d:{chart:{paletteColors:"#444444",valueFontColor:"#ffffff",placeValuesInside:"1"}},area2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},splinearea:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},mscolumn2d:{chart:{valueFontColor:"#ffffff",
placeValuesInside:"1",rotateValues:"1"}},mscolumn3d:{chart:{showValues:"0"}},msstackedcolumn2dlinedy:{chart:{showValues:"0"}},stackedcolumn2d:{chart:{showValues:"0"}},stackedarea2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},stackedbar2d:{chart:{showValues:"0"}},msstackedcolumn2d:{chart:{showValues:"0"}},mscombi3d:{chart:{showValues:"0"}},mscombi2d:{chart:{showValues:"0"}},mscolumn3dlinedy:{chart:{showValues:"0"}},stackedcolumn3dline:{chart:{showValues:"0"}},
stackedcolumn2dline:{chart:{showValues:"0"}},scrollstackedcolumn2d:{chart:{valueFontColor:"#ffffff"}},scrollcombi2d:{chart:{showValues:"0"}},scrollcombidy2d:{chart:{showValues:"0"}},logstackedcolumn2d:{chart:{showValues:"0"}},logmsline:{chart:{showValues:"0"}},logmscolumn2d:{chart:{showValues:"0"}},msstackedcombidy2d:{chart:{showValues:"0"}},scrollcolumn2d:{chart:{valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},pareto2d:{chart:{paletteColors:"#444444",showValues:"0"}},pareto3d:{chart:{paletteColors:"#444444",
showValues:"0"}},angulargauge:{chart:{pivotFillColor:"#ffffff",pivotRadius:"4",gaugeFillMix:"{light+0}",showTickValues:"1",majorTMHeight:"12",majorTMThickness:"2",majorTMColor:"#000000",minorTMNumber:"0",tickValueDistance:"10",valueFontSize:"24",valueFontBold:"1",gaugeInnerRadius:"50%",showHoverEffect:"0"},dials:{dial:[{baseWidth:"10",rearExtension:"7",bgColor:"#000000",bgAlpha:"100",borderColor:"#666666",bgHoverAlpha:"20"}]}},hlineargauge:{chart:{pointerFillColor:"#ffffff",gaugeFillMix:"{light+0}",
showTickValues:"1",majorTMHeight:"3",majorTMColor:"#000000",minorTMNumber:"0",valueFontSize:"18",valueFontBold:"1"},pointers:{pointer:[{}]}},bubble:{chart:{use3dlighting:"0",showplotborder:"0",showYAxisLine:"1",yAxisLineThickness:"1",yAxisLineColor:"#999999",showAlternateHGridColor:"0",showAlternateVGridColor:"0"},categories:[{verticalLineDashed:"1",verticalLineDashLen:"1",verticalLineDashGap:"1",verticalLineThickness:"1",verticalLineColor:"#000000",category:[{}]}],vtrendlines:[{line:[{alpha:"0"}]}]},
scatter:{chart:{use3dlighting:"0",showYAxisLine:"1",yAxisLineThickness:"1",yAxisLineColor:"#999999",showAlternateHGridColor:"0",showAlternateVGridColor:"0"},categories:[{verticalLineDashed:"1",verticalLineDashLen:"1",verticalLineDashGap:"1",verticalLineThickness:"1",verticalLineColor:"#000000",category:[{}]}],vtrendlines:[{line:[{alpha:"0"}]}]},boxandwhisker2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},thermometer:{chart:{gaugeFillColor:"#444444"}},
cylinder:{chart:{cylFillColor:"#444444"}},sparkline:{chart:{linecolor:"#444444"}},sparkcolumn:{chart:{plotFillColor:"#444444"}},sparkwinloss:{chart:{winColor:"#444444",lossColor:"#666666",drawColor:"#888888",scoreLessColor:"#aaaaaa"}},hbullet:{chart:{plotFillColor:"#444444",targetColor:"#666666"}},vbullet:{chart:{plotFillColor:"#444444",targetColor:"#666666"}}}});
/*
 Fint Theme v0.0.3
 FusionCharts JavaScript Library

 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>
*/
FusionCharts.register("theme",{name:"fint",theme:{base:{chart:{paletteColors:"#0075c2,#1aaf5d,#f2c500,#f45b00,#8e0000,#0e948c,#8cbb2c,#f3de00,#c02d00,#5b0101",labelDisplay:"auto",baseFontColor:"#333333",baseFont:"Helvetica Neue,Arial",captionFontSize:"14",subcaptionFontSize:"14",subcaptionFontBold:"0",showBorder:"0",bgColor:"#ffffff",showShadow:"0",canvasBgColor:"#ffffff",showCanvasBorder:"0",useplotgradientcolor:"0",useRoundEdges:"0",showPlotBorder:"0",showAlternateHGridColor:"0",showAlternateVGridColor:"0",
toolTipColor:"#ffffff",toolTipBorderThickness:"0",toolTipBgColor:"#000000",toolTipBgAlpha:"80",toolTipBorderRadius:"2",toolTipPadding:"5",legendBgAlpha:"0",legendBorderAlpha:"0",legendShadow:"0",legendItemFontSize:"10",legendItemFontColor:"#666666",legendCaptionFontSize:"9",divlineAlpha:"100",divlineColor:"#999999",divlineThickness:"1",divLineIsDashed:"1",divLineDashLen:"1",divLineGapLen:"1",scrollheight:"10",flatScrollBars:"1",scrollShowButtons:"0",scrollColor:"#cccccc",showHoverEffect:"1",valueFontSize:"10",
showXAxisLine:"1",xAxisLineThickness:"1",xAxisLineColor:"#999999"},dataset:[{}],trendlines:[{}]},geo:{chart:{showLabels:"0",fillColor:"#0075c2",showBorder:"1",borderColor:"#eeeeee",borderThickness:"1",borderAlpha:"50",entityFillhoverColor:"#0075c2",entityFillhoverAlpha:"80",connectorColor:"#cccccc",connectorThickness:"1.5",markerFillHoverAlpha:"90"}},pie2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",captionPadding:"15"},data:function(c,a,b){a=window.Math;return{alpha:100-
(50<b?a.round(100/a.ceil(b/10)):20)*a.floor(c/10)}}},doughnut2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",centerLabelFontSize:"12",centerLabelBold:"1",centerLabelFontColor:"#333333",captionPadding:"15"},data:function(c,a,b){a=window.Math;return{alpha:100-(50<b?a.round(100/a.ceil(b/10)):20)*a.floor(c/10)}}},line:{chart:{lineThickness:"2"}},spline:{chart:{lineThickness:"2"}},column2d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},
bar2d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1"}},column3d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},bar3d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1"}},area2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},splinearea:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},mscolumn2d:{chart:{valueFontColor:"#ffffff",
placeValuesInside:"1",rotateValues:"1"}},mscolumn3d:{chart:{showValues:"0"}},msstackedcolumn2dlinedy:{chart:{showValues:"0"}},stackedcolumn2d:{chart:{showValues:"0"}},stackedarea2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},stackedbar2d:{chart:{showValues:"0"}},msstackedcolumn2d:{chart:{showValues:"0"}},mscombi3d:{chart:{showValues:"0"}},mscombi2d:{chart:{showValues:"0"}},mscolumn3dlinedy:{chart:{showValues:"0"}},stackedcolumn3dline:{chart:{showValues:"0"}},
stackedcolumn2dline:{chart:{showValues:"0"}},scrollstackedcolumn2d:{chart:{valueFontColor:"#ffffff"}},scrollcombi2d:{chart:{showValues:"0"}},scrollcombidy2d:{chart:{showValues:"0"}},logstackedcolumn2d:{chart:{showValues:"0"}},logmsline:{chart:{showValues:"0"}},logmscolumn2d:{chart:{showValues:"0"}},msstackedcombidy2d:{chart:{showValues:"0"}},scrollcolumn2d:{chart:{valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},pareto2d:{chart:{paletteColors:"#0075c2",showValues:"0"}},pareto3d:{chart:{paletteColors:"#0075c2",
showValues:"0"}},angulargauge:{chart:{pivotFillColor:"#ffffff",pivotRadius:"4",gaugeFillMix:"{light+0}",showTickValues:"1",majorTMHeight:"12",majorTMThickness:"2",majorTMColor:"#000000",minorTMNumber:"0",tickValueDistance:"10",valueFontSize:"24",valueFontBold:"1",gaugeInnerRadius:"50%",showHoverEffect:"0"},dials:{dial:[{baseWidth:"10",rearExtension:"7",bgColor:"#000000",bgAlpha:"100",borderColor:"#666666",bgHoverAlpha:"20"}]}},hlineargauge:{chart:{pointerFillColor:"#ffffff",gaugeFillMix:"{light+0}",
showTickValues:"1",majorTMHeight:"3",majorTMColor:"#000000",minorTMNumber:"0",valueFontSize:"18",valueFontBold:"1"},pointers:{pointer:[{}]}},bubble:{chart:{use3dlighting:"0",showplotborder:"0",showYAxisLine:"1",yAxisLineThickness:"1",yAxisLineColor:"#999999",showAlternateHGridColor:"0",showAlternateVGridColor:"0",plotFillHoverColor:"#2b8ecf"},categories:[{verticalLineDashed:"1",verticalLineDashLen:"1",verticalLineDashGap:"1",verticalLineThickness:"1",verticalLineColor:"#000000",category:[{}]}],vtrendlines:[{line:[{alpha:"0"}]}]},
scatter:{chart:{use3dlighting:"0",showYAxisLine:"1",yAxisLineThickness:"1",yAxisLineColor:"#999999",showAlternateHGridColor:"0",showAlternateVGridColor:"0"},categories:[{verticalLineDashed:"1",verticalLineDashLen:"1",verticalLineDashGap:"1",verticalLineThickness:"1",verticalLineColor:"#000000",category:[{}]}],vtrendlines:[{line:[{alpha:"0"}]}]},boxandwhisker2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},thermometer:{chart:{gaugeFillColor:"#0075c2"}},
cylinder:{chart:{cylFillColor:"#0075c2"}},sparkline:{chart:{linecolor:"#0075c2"}},sparkcolumn:{chart:{plotFillColor:"#0075c2"}},sparkwinloss:{chart:{winColor:"#0075c2",lossColor:"#1aaf5d",drawColor:"#f2c500",scoreLessColor:"#f45b00"}},hbullet:{chart:{plotFillColor:"#0075c2",targetColor:"#1aaf5d"}},vbullet:{chart:{plotFillColor:"#0075c2",targetColor:"#1aaf5d"}}}});
/*
 Ocean Theme v0.0.3
 FusionCharts JavaScript Library

 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>
*/
FusionCharts.register("theme",{name:"ocean",theme:{base:{chart:{paletteColors:"#04476c,#4d998d,#77be99,#a7dca6,#cef19a,#0e948c,#64ad93,#8fcda0,#bbe7a0,#dcefc1",labelDisplay:"auto",baseFontColor:"#333333",baseFont:"Helvetica Neue,Arial",captionFontSize:"14",subcaptionFontSize:"14",subcaptionFontBold:"0",showBorder:"0",bgColor:"#ffffff",showShadow:"0",canvasBgColor:"#ffffff",showCanvasBorder:"0",useplotgradientcolor:"0",useRoundEdges:"0",showPlotBorder:"0",showAlternateHGridColor:"0",showAlternateVGridColor:"0",
toolTipColor:"#ffffff",toolTipBorderThickness:"0",toolTipBgColor:"#000000",toolTipBgAlpha:"80",toolTipBorderRadius:"2",toolTipPadding:"5",legendBgAlpha:"0",legendBorderAlpha:"0",legendShadow:"0",legendItemFontSize:"10",legendItemFontColor:"#666666",legendCaptionFontSize:"9",divlineAlpha:"100",divlineColor:"#999999",divlineThickness:"1",divLineIsDashed:"1",divLineDashLen:"1",divLineGapLen:"1",scrollheight:"10",flatScrollBars:"1",scrollShowButtons:"0",scrollColor:"#cccccc",showHoverEffect:"1",valueFontSize:"10",
showXAxisLine:"1",xAxisLineThickness:"1",xAxisLineColor:"#999999"},dataset:[{}],trendlines:[{}]},geo:{chart:{showLabels:"0",fillColor:"#04476c",showBorder:"1",borderColor:"#eeeeee",borderThickness:"1",borderAlpha:"50",entityFillhoverColor:"#04476c",entityFillhoverAlpha:"80",connectorColor:"#cccccc",connectorThickness:"1.5",markerFillHoverAlpha:"90"}},pie2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",captionPadding:"15"},data:function(c,a,b){a=window.Math;return{alpha:100-
(50<b?a.round(100/a.ceil(b/10)):20)*a.floor(c/10)}}},doughnut2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",centerLabelFontSize:"12",centerLabelBold:"1",centerLabelFontColor:"#333333",captionPadding:"15"},data:function(c,a,b){a=window.Math;return{alpha:100-(50<b?a.round(100/a.ceil(b/10)):20)*a.floor(c/10)}}},line:{chart:{lineThickness:"2"}},spline:{chart:{lineThickness:"2"}},column2d:{chart:{paletteColors:"#04476c",valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},
bar2d:{chart:{paletteColors:"#04476c",valueFontColor:"#ffffff",placeValuesInside:"1"}},column3d:{chart:{paletteColors:"#04476c",valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},bar3d:{chart:{paletteColors:"#04476c",valueFontColor:"#ffffff",placeValuesInside:"1"}},area2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},splinearea:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},mscolumn2d:{chart:{valueFontColor:"#ffffff",
placeValuesInside:"1",rotateValues:"1"}},mscolumn3d:{chart:{showValues:"0"}},msstackedcolumn2dlinedy:{chart:{showValues:"0"}},stackedcolumn2d:{chart:{showValues:"0"}},stackedarea2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},stackedbar2d:{chart:{showValues:"0"}},msstackedcolumn2d:{chart:{showValues:"0"}},mscombi3d:{chart:{showValues:"0"}},mscombi2d:{chart:{showValues:"0"}},mscolumn3dlinedy:{chart:{showValues:"0"}},stackedcolumn3dline:{chart:{showValues:"0"}},
stackedcolumn2dline:{chart:{showValues:"0"}},scrollstackedcolumn2d:{chart:{valueFontColor:"#ffffff"}},scrollcombi2d:{chart:{showValues:"0"}},scrollcombidy2d:{chart:{showValues:"0"}},logstackedcolumn2d:{chart:{showValues:"0"}},logmsline:{chart:{showValues:"0"}},logmscolumn2d:{chart:{showValues:"0"}},msstackedcombidy2d:{chart:{showValues:"0"}},scrollcolumn2d:{chart:{valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},pareto2d:{chart:{paletteColors:"#04476c",showValues:"0"}},pareto3d:{chart:{paletteColors:"#04476c",
showValues:"0"}},angulargauge:{chart:{pivotFillColor:"#ffffff",pivotRadius:"4",gaugeFillMix:"{light+0}",showTickValues:"1",majorTMHeight:"12",majorTMThickness:"2",majorTMColor:"#000000",minorTMNumber:"0",tickValueDistance:"10",valueFontSize:"24",valueFontBold:"1",gaugeInnerRadius:"50%",showHoverEffect:"0"},dials:{dial:[{baseWidth:"10",rearExtension:"7",bgColor:"#000000",bgAlpha:"100",borderColor:"#666666",bgHoverAlpha:"20"}]}},hlineargauge:{chart:{pointerFillColor:"#ffffff",gaugeFillMix:"{light+0}",
showTickValues:"1",majorTMHeight:"3",majorTMColor:"#000000",minorTMNumber:"0",valueFontSize:"18",valueFontBold:"1"},pointers:{pointer:[{}]}},bubble:{chart:{use3dlighting:"0",showplotborder:"0",showYAxisLine:"1",yAxisLineThickness:"1",yAxisLineColor:"#999999",showAlternateHGridColor:"0",showAlternateVGridColor:"0"},categories:[{verticalLineDashed:"1",verticalLineDashLen:"1",verticalLineDashGap:"1",verticalLineThickness:"1",verticalLineColor:"#000000",category:[{}]}],vtrendlines:[{line:[{alpha:"0"}]}]},
scatter:{chart:{use3dlighting:"0",showYAxisLine:"1",yAxisLineThickness:"1",yAxisLineColor:"#999999",showAlternateHGridColor:"0",showAlternateVGridColor:"0"},categories:[{verticalLineDashed:"1",verticalLineDashLen:"1",verticalLineDashGap:"1",verticalLineThickness:"1",verticalLineColor:"#000000",category:[{}]}],vtrendlines:[{line:[{alpha:"0"}]}]},boxandwhisker2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},thermometer:{chart:{gaugeFillColor:"#04476c"}},
cylinder:{chart:{cylFillColor:"#04476c"}},sparkline:{chart:{linecolor:"#04476c"}},sparkcolumn:{chart:{plotFillColor:"#04476c"}},sparkwinloss:{chart:{winColor:"#04476c",lossColor:"#4d998d",drawColor:"#77be99",scoreLessColor:"#a7dca6"}},hbullet:{chart:{plotFillColor:"#04476c",targetColor:"#4d998d"}},vbullet:{chart:{plotFillColor:"#04476c",targetColor:"#4d998d"}}}});
/*
 Zune Theme v0.0.3
 FusionCharts JavaScript Library

 Copyright FusionCharts Technologies LLP
 License Information at <http://www.fusioncharts.com/license>
*/
FusionCharts.register("theme",{name:"zune",theme:{base:{chart:{paletteColors:"#0075c2,#1aaf5d,#f2c500,#f45b00,#8e0000,#0e948c,#8cbb2c,#f3de00,#c02d00,#5b0101",labelDisplay:"auto",baseFontColor:"#333333",baseFont:"Helvetica Neue,Arial",captionFontSize:"14",subcaptionFontSize:"14",subcaptionFontBold:"0",showBorder:"0",bgColor:"#ffffff",showShadow:"0",canvasBgColor:"#ffffff",showCanvasBorder:"0",useplotgradientcolor:"0",useRoundEdges:"0",showPlotBorder:"0",showAlternateHGridColor:"0",showAlternateVGridColor:"0",
toolTipColor:"#ffffff",toolTipBorderThickness:"0",toolTipBgColor:"#000000",toolTipBgAlpha:"80",toolTipBorderRadius:"2",toolTipPadding:"5",legendBgAlpha:"0",legendBorderAlpha:"0",legendShadow:"0",legendItemFontSize:"10",legendItemFontColor:"#666666",legendCaptionFontSize:"9",divlineAlpha:"100",divlineColor:"#999999",divlineThickness:"1",divLineIsDashed:"1",divLineDashLen:"1",divLineGapLen:"1",scrollheight:"10",flatScrollBars:"1",scrollShowButtons:"0",scrollColor:"#cccccc",showHoverEffect:"1",valueFontSize:"10",
showXAxisLine:"1",xAxisLineThickness:"1",xAxisLineColor:"#999999"},dataset:[{}],trendlines:[{}]},geo:{chart:{showLabels:"0",fillColor:"#0075c2",showBorder:"1",borderColor:"#eeeeee",borderThickness:"1",borderAlpha:"50",entityFillhoverColor:"#0075c2",entityFillhoverAlpha:"80",connectorColor:"#cccccc",connectorThickness:"1.5",markerFillHoverAlpha:"90"}},pie2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",captionPadding:"15"},data:function(c,a,b){a=window.Math;return{alpha:100-
(50<b?a.round(100/a.ceil(b/10)):20)*a.floor(c/10)}}},doughnut2d:{chart:{placeValuesInside:"0",use3dlighting:"0",valueFontColor:"#333333",centerLabelFontSize:"12",centerLabelBold:"1",centerLabelFontColor:"#333333",captionPadding:"15"},data:function(c,a,b){a=window.Math;return{alpha:100-(50<b?a.round(100/a.ceil(b/10)):20)*a.floor(c/10)}}},line:{chart:{lineThickness:"2"}},spline:{chart:{lineThickness:"2"}},column2d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},
bar2d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1"}},column3d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},bar3d:{chart:{paletteColors:"#0075c2",valueFontColor:"#ffffff",placeValuesInside:"1"}},area2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},splinearea:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},mscolumn2d:{chart:{valueFontColor:"#ffffff",
placeValuesInside:"1",rotateValues:"1"}},mscolumn3d:{chart:{showValues:"0"}},msstackedcolumn2dlinedy:{chart:{showValues:"0"}},stackedcolumn2d:{chart:{showValues:"0"}},stackedarea2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},stackedbar2d:{chart:{showValues:"0"}},msstackedcolumn2d:{chart:{showValues:"0"}},mscombi3d:{chart:{showValues:"0"}},mscombi2d:{chart:{showValues:"0"}},mscolumn3dlinedy:{chart:{showValues:"0"}},stackedcolumn3dline:{chart:{showValues:"0"}},
stackedcolumn2dline:{chart:{showValues:"0"}},scrollstackedcolumn2d:{chart:{valueFontColor:"#ffffff"}},scrollcombi2d:{chart:{showValues:"0"}},scrollcombidy2d:{chart:{showValues:"0"}},logstackedcolumn2d:{chart:{showValues:"0"}},logmsline:{chart:{showValues:"0"}},logmscolumn2d:{chart:{showValues:"0"}},msstackedcombidy2d:{chart:{showValues:"0"}},scrollcolumn2d:{chart:{valueFontColor:"#ffffff",placeValuesInside:"1",rotateValues:"1"}},pareto2d:{chart:{paletteColors:"#0075c2",showValues:"0"}},pareto3d:{chart:{paletteColors:"#0075c2",
showValues:"0"}},angulargauge:{chart:{pivotFillColor:"#ffffff",pivotRadius:"4",gaugeFillMix:"{light+0}",showTickValues:"1",majorTMHeight:"12",majorTMThickness:"2",majorTMColor:"#000000",minorTMNumber:"0",tickValueDistance:"10",valueFontSize:"24",valueFontBold:"1",gaugeInnerRadius:"50%",showHoverEffect:"0"},dials:{dial:[{baseWidth:"10",rearExtension:"7",bgColor:"#000000",bgAlpha:"100",borderColor:"#666666",bgHoverAlpha:"20"}]}},hlineargauge:{chart:{pointerFillColor:"#ffffff",gaugeFillMix:"{light+0}",
showTickValues:"1",majorTMHeight:"3",majorTMColor:"#000000",minorTMNumber:"0",valueFontSize:"18",valueFontBold:"1"},pointers:{pointer:[{}]}},bubble:{chart:{use3dlighting:"0",showplotborder:"0",showYAxisLine:"1",yAxisLineThickness:"1",yAxisLineColor:"#999999",showAlternateHGridColor:"0",showAlternateVGridColor:"0"},categories:[{verticalLineDashed:"1",verticalLineDashLen:"1",verticalLineDashGap:"1",verticalLineThickness:"1",verticalLineColor:"#000000",category:[{}]}],vtrendlines:[{line:[{alpha:"0"}]}]},
scatter:{chart:{use3dlighting:"0",showYAxisLine:"1",yAxisLineThickness:"1",yAxisLineColor:"#999999",showAlternateHGridColor:"0",showAlternateVGridColor:"0"},categories:[{verticalLineDashed:"1",verticalLineDashLen:"1",verticalLineDashGap:"1",verticalLineThickness:"1",verticalLineColor:"#000000",category:[{}]}],vtrendlines:[{line:[{alpha:"0"}]}]},boxandwhisker2d:{chart:{valueBgColor:"#ffffff",valueBgAlpha:"90",valueBorderPadding:"-2",valueBorderRadius:"2"}},thermometer:{chart:{gaugeFillColor:"#0075c2"}},
cylinder:{chart:{cylFillColor:"#0075c2"}},sparkline:{chart:{linecolor:"#0075c2"}},sparkcolumn:{chart:{plotFillColor:"#0075c2"}},sparkwinloss:{chart:{winColor:"#0075c2",lossColor:"#1aaf5d",drawColor:"#f2c500",scoreLessColor:"#f45b00"}},hbullet:{chart:{plotFillColor:"#0075c2",targetColor:"#1aaf5d"}},vbullet:{chart:{plotFillColor:"#0075c2",targetColor:"#1aaf5d"}}}});
